mezon-js 2.13.66 → 2.13.68

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.
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
+ var __getProtoOf = Object.getPrototypeOf;
6
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
10
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -17,6 +19,9 @@ var __spreadValues = (a, b) => {
17
19
  }
18
20
  return a;
19
21
  };
22
+ var __commonJS = (cb, mod2) => function __require() {
23
+ return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
24
+ };
20
25
  var __export = (target, all) => {
21
26
  for (var name in all)
22
27
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -29,7 +34,15 @@ var __copyProps = (to, from, except, desc) => {
29
34
  }
30
35
  return to;
31
36
  };
32
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37
+ var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(
38
+ // If the importer is in node compatibility mode or this is not an ESM
39
+ // file that has been converted to a CommonJS file using a Babel-
40
+ // compatible transform (i.e. "__esModule" has not been set), then set
41
+ // "default" to the CommonJS "module.exports" for node compatibility.
42
+ isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
43
+ mod2
44
+ ));
45
+ var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
33
46
  var __async = (__this, __arguments, generator) => {
34
47
  return new Promise((resolve, reject) => {
35
48
  var fulfilled = (value) => {
@@ -51,6 +64,2228 @@ var __async = (__this, __arguments, generator) => {
51
64
  });
52
65
  };
53
66
 
67
+ // ../../node_modules/long/src/long.js
68
+ var require_long = __commonJS({
69
+ "../../node_modules/long/src/long.js"(exports2, module2) {
70
+ module2.exports = Long4;
71
+ var wasm = null;
72
+ try {
73
+ wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
74
+ 0,
75
+ 97,
76
+ 115,
77
+ 109,
78
+ 1,
79
+ 0,
80
+ 0,
81
+ 0,
82
+ 1,
83
+ 13,
84
+ 2,
85
+ 96,
86
+ 0,
87
+ 1,
88
+ 127,
89
+ 96,
90
+ 4,
91
+ 127,
92
+ 127,
93
+ 127,
94
+ 127,
95
+ 1,
96
+ 127,
97
+ 3,
98
+ 7,
99
+ 6,
100
+ 0,
101
+ 1,
102
+ 1,
103
+ 1,
104
+ 1,
105
+ 1,
106
+ 6,
107
+ 6,
108
+ 1,
109
+ 127,
110
+ 1,
111
+ 65,
112
+ 0,
113
+ 11,
114
+ 7,
115
+ 50,
116
+ 6,
117
+ 3,
118
+ 109,
119
+ 117,
120
+ 108,
121
+ 0,
122
+ 1,
123
+ 5,
124
+ 100,
125
+ 105,
126
+ 118,
127
+ 95,
128
+ 115,
129
+ 0,
130
+ 2,
131
+ 5,
132
+ 100,
133
+ 105,
134
+ 118,
135
+ 95,
136
+ 117,
137
+ 0,
138
+ 3,
139
+ 5,
140
+ 114,
141
+ 101,
142
+ 109,
143
+ 95,
144
+ 115,
145
+ 0,
146
+ 4,
147
+ 5,
148
+ 114,
149
+ 101,
150
+ 109,
151
+ 95,
152
+ 117,
153
+ 0,
154
+ 5,
155
+ 8,
156
+ 103,
157
+ 101,
158
+ 116,
159
+ 95,
160
+ 104,
161
+ 105,
162
+ 103,
163
+ 104,
164
+ 0,
165
+ 0,
166
+ 10,
167
+ 191,
168
+ 1,
169
+ 6,
170
+ 4,
171
+ 0,
172
+ 35,
173
+ 0,
174
+ 11,
175
+ 36,
176
+ 1,
177
+ 1,
178
+ 126,
179
+ 32,
180
+ 0,
181
+ 173,
182
+ 32,
183
+ 1,
184
+ 173,
185
+ 66,
186
+ 32,
187
+ 134,
188
+ 132,
189
+ 32,
190
+ 2,
191
+ 173,
192
+ 32,
193
+ 3,
194
+ 173,
195
+ 66,
196
+ 32,
197
+ 134,
198
+ 132,
199
+ 126,
200
+ 34,
201
+ 4,
202
+ 66,
203
+ 32,
204
+ 135,
205
+ 167,
206
+ 36,
207
+ 0,
208
+ 32,
209
+ 4,
210
+ 167,
211
+ 11,
212
+ 36,
213
+ 1,
214
+ 1,
215
+ 126,
216
+ 32,
217
+ 0,
218
+ 173,
219
+ 32,
220
+ 1,
221
+ 173,
222
+ 66,
223
+ 32,
224
+ 134,
225
+ 132,
226
+ 32,
227
+ 2,
228
+ 173,
229
+ 32,
230
+ 3,
231
+ 173,
232
+ 66,
233
+ 32,
234
+ 134,
235
+ 132,
236
+ 127,
237
+ 34,
238
+ 4,
239
+ 66,
240
+ 32,
241
+ 135,
242
+ 167,
243
+ 36,
244
+ 0,
245
+ 32,
246
+ 4,
247
+ 167,
248
+ 11,
249
+ 36,
250
+ 1,
251
+ 1,
252
+ 126,
253
+ 32,
254
+ 0,
255
+ 173,
256
+ 32,
257
+ 1,
258
+ 173,
259
+ 66,
260
+ 32,
261
+ 134,
262
+ 132,
263
+ 32,
264
+ 2,
265
+ 173,
266
+ 32,
267
+ 3,
268
+ 173,
269
+ 66,
270
+ 32,
271
+ 134,
272
+ 132,
273
+ 128,
274
+ 34,
275
+ 4,
276
+ 66,
277
+ 32,
278
+ 135,
279
+ 167,
280
+ 36,
281
+ 0,
282
+ 32,
283
+ 4,
284
+ 167,
285
+ 11,
286
+ 36,
287
+ 1,
288
+ 1,
289
+ 126,
290
+ 32,
291
+ 0,
292
+ 173,
293
+ 32,
294
+ 1,
295
+ 173,
296
+ 66,
297
+ 32,
298
+ 134,
299
+ 132,
300
+ 32,
301
+ 2,
302
+ 173,
303
+ 32,
304
+ 3,
305
+ 173,
306
+ 66,
307
+ 32,
308
+ 134,
309
+ 132,
310
+ 129,
311
+ 34,
312
+ 4,
313
+ 66,
314
+ 32,
315
+ 135,
316
+ 167,
317
+ 36,
318
+ 0,
319
+ 32,
320
+ 4,
321
+ 167,
322
+ 11,
323
+ 36,
324
+ 1,
325
+ 1,
326
+ 126,
327
+ 32,
328
+ 0,
329
+ 173,
330
+ 32,
331
+ 1,
332
+ 173,
333
+ 66,
334
+ 32,
335
+ 134,
336
+ 132,
337
+ 32,
338
+ 2,
339
+ 173,
340
+ 32,
341
+ 3,
342
+ 173,
343
+ 66,
344
+ 32,
345
+ 134,
346
+ 132,
347
+ 130,
348
+ 34,
349
+ 4,
350
+ 66,
351
+ 32,
352
+ 135,
353
+ 167,
354
+ 36,
355
+ 0,
356
+ 32,
357
+ 4,
358
+ 167,
359
+ 11
360
+ ])), {}).exports;
361
+ } catch (e) {
362
+ }
363
+ function Long4(low, high, unsigned) {
364
+ this.low = low | 0;
365
+ this.high = high | 0;
366
+ this.unsigned = !!unsigned;
367
+ }
368
+ Long4.prototype.__isLong__;
369
+ Object.defineProperty(Long4.prototype, "__isLong__", { value: true });
370
+ function isLong(obj) {
371
+ return (obj && obj["__isLong__"]) === true;
372
+ }
373
+ Long4.isLong = isLong;
374
+ var INT_CACHE = {};
375
+ var UINT_CACHE = {};
376
+ function fromInt(value, unsigned) {
377
+ var obj, cachedObj, cache;
378
+ if (unsigned) {
379
+ value >>>= 0;
380
+ if (cache = 0 <= value && value < 256) {
381
+ cachedObj = UINT_CACHE[value];
382
+ if (cachedObj)
383
+ return cachedObj;
384
+ }
385
+ obj = fromBits(value, (value | 0) < 0 ? -1 : 0, true);
386
+ if (cache)
387
+ UINT_CACHE[value] = obj;
388
+ return obj;
389
+ } else {
390
+ value |= 0;
391
+ if (cache = -128 <= value && value < 128) {
392
+ cachedObj = INT_CACHE[value];
393
+ if (cachedObj)
394
+ return cachedObj;
395
+ }
396
+ obj = fromBits(value, value < 0 ? -1 : 0, false);
397
+ if (cache)
398
+ INT_CACHE[value] = obj;
399
+ return obj;
400
+ }
401
+ }
402
+ Long4.fromInt = fromInt;
403
+ function fromNumber(value, unsigned) {
404
+ if (isNaN(value))
405
+ return unsigned ? UZERO : ZERO;
406
+ if (unsigned) {
407
+ if (value < 0)
408
+ return UZERO;
409
+ if (value >= TWO_PWR_64_DBL)
410
+ return MAX_UNSIGNED_VALUE;
411
+ } else {
412
+ if (value <= -TWO_PWR_63_DBL)
413
+ return MIN_VALUE;
414
+ if (value + 1 >= TWO_PWR_63_DBL)
415
+ return MAX_VALUE;
416
+ }
417
+ if (value < 0)
418
+ return fromNumber(-value, unsigned).neg();
419
+ return fromBits(value % TWO_PWR_32_DBL | 0, value / TWO_PWR_32_DBL | 0, unsigned);
420
+ }
421
+ Long4.fromNumber = fromNumber;
422
+ function fromBits(lowBits, highBits, unsigned) {
423
+ return new Long4(lowBits, highBits, unsigned);
424
+ }
425
+ Long4.fromBits = fromBits;
426
+ var pow_dbl = Math.pow;
427
+ function fromString(str, unsigned, radix) {
428
+ if (str.length === 0)
429
+ throw Error("empty string");
430
+ if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity")
431
+ return ZERO;
432
+ if (typeof unsigned === "number") {
433
+ radix = unsigned, unsigned = false;
434
+ } else {
435
+ unsigned = !!unsigned;
436
+ }
437
+ radix = radix || 10;
438
+ if (radix < 2 || 36 < radix)
439
+ throw RangeError("radix");
440
+ var p;
441
+ if ((p = str.indexOf("-")) > 0)
442
+ throw Error("interior hyphen");
443
+ else if (p === 0) {
444
+ return fromString(str.substring(1), unsigned, radix).neg();
445
+ }
446
+ var radixToPower = fromNumber(pow_dbl(radix, 8));
447
+ var result = ZERO;
448
+ for (var i = 0; i < str.length; i += 8) {
449
+ var size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);
450
+ if (size < 8) {
451
+ var power = fromNumber(pow_dbl(radix, size));
452
+ result = result.mul(power).add(fromNumber(value));
453
+ } else {
454
+ result = result.mul(radixToPower);
455
+ result = result.add(fromNumber(value));
456
+ }
457
+ }
458
+ result.unsigned = unsigned;
459
+ return result;
460
+ }
461
+ Long4.fromString = fromString;
462
+ function fromValue(val, unsigned) {
463
+ if (typeof val === "number")
464
+ return fromNumber(val, unsigned);
465
+ if (typeof val === "string")
466
+ return fromString(val, unsigned);
467
+ return fromBits(val.low, val.high, typeof unsigned === "boolean" ? unsigned : val.unsigned);
468
+ }
469
+ Long4.fromValue = fromValue;
470
+ var TWO_PWR_16_DBL = 1 << 16;
471
+ var TWO_PWR_24_DBL = 1 << 24;
472
+ var TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;
473
+ var TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;
474
+ var TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;
475
+ var TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);
476
+ var ZERO = fromInt(0);
477
+ Long4.ZERO = ZERO;
478
+ var UZERO = fromInt(0, true);
479
+ Long4.UZERO = UZERO;
480
+ var ONE = fromInt(1);
481
+ Long4.ONE = ONE;
482
+ var UONE = fromInt(1, true);
483
+ Long4.UONE = UONE;
484
+ var NEG_ONE = fromInt(-1);
485
+ Long4.NEG_ONE = NEG_ONE;
486
+ var MAX_VALUE = fromBits(4294967295 | 0, 2147483647 | 0, false);
487
+ Long4.MAX_VALUE = MAX_VALUE;
488
+ var MAX_UNSIGNED_VALUE = fromBits(4294967295 | 0, 4294967295 | 0, true);
489
+ Long4.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;
490
+ var MIN_VALUE = fromBits(0, 2147483648 | 0, false);
491
+ Long4.MIN_VALUE = MIN_VALUE;
492
+ var LongPrototype = Long4.prototype;
493
+ LongPrototype.toInt = function toInt() {
494
+ return this.unsigned ? this.low >>> 0 : this.low;
495
+ };
496
+ LongPrototype.toNumber = function toNumber() {
497
+ if (this.unsigned)
498
+ return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);
499
+ return this.high * TWO_PWR_32_DBL + (this.low >>> 0);
500
+ };
501
+ LongPrototype.toString = function toString(radix) {
502
+ radix = radix || 10;
503
+ if (radix < 2 || 36 < radix)
504
+ throw RangeError("radix");
505
+ if (this.isZero())
506
+ return "0";
507
+ if (this.isNegative()) {
508
+ if (this.eq(MIN_VALUE)) {
509
+ var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
510
+ return div.toString(radix) + rem1.toInt().toString(radix);
511
+ } else
512
+ return "-" + this.neg().toString(radix);
513
+ }
514
+ var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
515
+ var result = "";
516
+ while (true) {
517
+ var remDiv = rem.div(radixToPower), intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0, digits = intval.toString(radix);
518
+ rem = remDiv;
519
+ if (rem.isZero())
520
+ return digits + result;
521
+ else {
522
+ while (digits.length < 6)
523
+ digits = "0" + digits;
524
+ result = "" + digits + result;
525
+ }
526
+ }
527
+ };
528
+ LongPrototype.getHighBits = function getHighBits() {
529
+ return this.high;
530
+ };
531
+ LongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {
532
+ return this.high >>> 0;
533
+ };
534
+ LongPrototype.getLowBits = function getLowBits() {
535
+ return this.low;
536
+ };
537
+ LongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {
538
+ return this.low >>> 0;
539
+ };
540
+ LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
541
+ if (this.isNegative())
542
+ return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
543
+ var val = this.high != 0 ? this.high : this.low;
544
+ for (var bit = 31; bit > 0; bit--)
545
+ if ((val & 1 << bit) != 0)
546
+ break;
547
+ return this.high != 0 ? bit + 33 : bit + 1;
548
+ };
549
+ LongPrototype.isZero = function isZero() {
550
+ return this.high === 0 && this.low === 0;
551
+ };
552
+ LongPrototype.eqz = LongPrototype.isZero;
553
+ LongPrototype.isNegative = function isNegative() {
554
+ return !this.unsigned && this.high < 0;
555
+ };
556
+ LongPrototype.isPositive = function isPositive() {
557
+ return this.unsigned || this.high >= 0;
558
+ };
559
+ LongPrototype.isOdd = function isOdd() {
560
+ return (this.low & 1) === 1;
561
+ };
562
+ LongPrototype.isEven = function isEven() {
563
+ return (this.low & 1) === 0;
564
+ };
565
+ LongPrototype.equals = function equals(other) {
566
+ if (!isLong(other))
567
+ other = fromValue(other);
568
+ if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1)
569
+ return false;
570
+ return this.high === other.high && this.low === other.low;
571
+ };
572
+ LongPrototype.eq = LongPrototype.equals;
573
+ LongPrototype.notEquals = function notEquals(other) {
574
+ return !this.eq(
575
+ /* validates */
576
+ other
577
+ );
578
+ };
579
+ LongPrototype.neq = LongPrototype.notEquals;
580
+ LongPrototype.ne = LongPrototype.notEquals;
581
+ LongPrototype.lessThan = function lessThan(other) {
582
+ return this.comp(
583
+ /* validates */
584
+ other
585
+ ) < 0;
586
+ };
587
+ LongPrototype.lt = LongPrototype.lessThan;
588
+ LongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {
589
+ return this.comp(
590
+ /* validates */
591
+ other
592
+ ) <= 0;
593
+ };
594
+ LongPrototype.lte = LongPrototype.lessThanOrEqual;
595
+ LongPrototype.le = LongPrototype.lessThanOrEqual;
596
+ LongPrototype.greaterThan = function greaterThan(other) {
597
+ return this.comp(
598
+ /* validates */
599
+ other
600
+ ) > 0;
601
+ };
602
+ LongPrototype.gt = LongPrototype.greaterThan;
603
+ LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
604
+ return this.comp(
605
+ /* validates */
606
+ other
607
+ ) >= 0;
608
+ };
609
+ LongPrototype.gte = LongPrototype.greaterThanOrEqual;
610
+ LongPrototype.ge = LongPrototype.greaterThanOrEqual;
611
+ LongPrototype.compare = function compare(other) {
612
+ if (!isLong(other))
613
+ other = fromValue(other);
614
+ if (this.eq(other))
615
+ return 0;
616
+ var thisNeg = this.isNegative(), otherNeg = other.isNegative();
617
+ if (thisNeg && !otherNeg)
618
+ return -1;
619
+ if (!thisNeg && otherNeg)
620
+ return 1;
621
+ if (!this.unsigned)
622
+ return this.sub(other).isNegative() ? -1 : 1;
623
+ return other.high >>> 0 > this.high >>> 0 || other.high === this.high && other.low >>> 0 > this.low >>> 0 ? -1 : 1;
624
+ };
625
+ LongPrototype.comp = LongPrototype.compare;
626
+ LongPrototype.negate = function negate() {
627
+ if (!this.unsigned && this.eq(MIN_VALUE))
628
+ return MIN_VALUE;
629
+ return this.not().add(ONE);
630
+ };
631
+ LongPrototype.neg = LongPrototype.negate;
632
+ LongPrototype.add = function add(addend) {
633
+ if (!isLong(addend))
634
+ addend = fromValue(addend);
635
+ var a48 = this.high >>> 16;
636
+ var a32 = this.high & 65535;
637
+ var a16 = this.low >>> 16;
638
+ var a00 = this.low & 65535;
639
+ var b48 = addend.high >>> 16;
640
+ var b32 = addend.high & 65535;
641
+ var b16 = addend.low >>> 16;
642
+ var b00 = addend.low & 65535;
643
+ var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
644
+ c00 += a00 + b00;
645
+ c16 += c00 >>> 16;
646
+ c00 &= 65535;
647
+ c16 += a16 + b16;
648
+ c32 += c16 >>> 16;
649
+ c16 &= 65535;
650
+ c32 += a32 + b32;
651
+ c48 += c32 >>> 16;
652
+ c32 &= 65535;
653
+ c48 += a48 + b48;
654
+ c48 &= 65535;
655
+ return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
656
+ };
657
+ LongPrototype.subtract = function subtract(subtrahend) {
658
+ if (!isLong(subtrahend))
659
+ subtrahend = fromValue(subtrahend);
660
+ return this.add(subtrahend.neg());
661
+ };
662
+ LongPrototype.sub = LongPrototype.subtract;
663
+ LongPrototype.multiply = function multiply(multiplier) {
664
+ if (this.isZero())
665
+ return ZERO;
666
+ if (!isLong(multiplier))
667
+ multiplier = fromValue(multiplier);
668
+ if (wasm) {
669
+ var low = wasm.mul(
670
+ this.low,
671
+ this.high,
672
+ multiplier.low,
673
+ multiplier.high
674
+ );
675
+ return fromBits(low, wasm.get_high(), this.unsigned);
676
+ }
677
+ if (multiplier.isZero())
678
+ return ZERO;
679
+ if (this.eq(MIN_VALUE))
680
+ return multiplier.isOdd() ? MIN_VALUE : ZERO;
681
+ if (multiplier.eq(MIN_VALUE))
682
+ return this.isOdd() ? MIN_VALUE : ZERO;
683
+ if (this.isNegative()) {
684
+ if (multiplier.isNegative())
685
+ return this.neg().mul(multiplier.neg());
686
+ else
687
+ return this.neg().mul(multiplier).neg();
688
+ } else if (multiplier.isNegative())
689
+ return this.mul(multiplier.neg()).neg();
690
+ if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))
691
+ return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
692
+ var a48 = this.high >>> 16;
693
+ var a32 = this.high & 65535;
694
+ var a16 = this.low >>> 16;
695
+ var a00 = this.low & 65535;
696
+ var b48 = multiplier.high >>> 16;
697
+ var b32 = multiplier.high & 65535;
698
+ var b16 = multiplier.low >>> 16;
699
+ var b00 = multiplier.low & 65535;
700
+ var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
701
+ c00 += a00 * b00;
702
+ c16 += c00 >>> 16;
703
+ c00 &= 65535;
704
+ c16 += a16 * b00;
705
+ c32 += c16 >>> 16;
706
+ c16 &= 65535;
707
+ c16 += a00 * b16;
708
+ c32 += c16 >>> 16;
709
+ c16 &= 65535;
710
+ c32 += a32 * b00;
711
+ c48 += c32 >>> 16;
712
+ c32 &= 65535;
713
+ c32 += a16 * b16;
714
+ c48 += c32 >>> 16;
715
+ c32 &= 65535;
716
+ c32 += a00 * b32;
717
+ c48 += c32 >>> 16;
718
+ c32 &= 65535;
719
+ c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;
720
+ c48 &= 65535;
721
+ return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
722
+ };
723
+ LongPrototype.mul = LongPrototype.multiply;
724
+ LongPrototype.divide = function divide(divisor) {
725
+ if (!isLong(divisor))
726
+ divisor = fromValue(divisor);
727
+ if (divisor.isZero())
728
+ throw Error("division by zero");
729
+ if (wasm) {
730
+ if (!this.unsigned && this.high === -2147483648 && divisor.low === -1 && divisor.high === -1) {
731
+ return this;
732
+ }
733
+ var low = (this.unsigned ? wasm.div_u : wasm.div_s)(
734
+ this.low,
735
+ this.high,
736
+ divisor.low,
737
+ divisor.high
738
+ );
739
+ return fromBits(low, wasm.get_high(), this.unsigned);
740
+ }
741
+ if (this.isZero())
742
+ return this.unsigned ? UZERO : ZERO;
743
+ var approx, rem, res;
744
+ if (!this.unsigned) {
745
+ if (this.eq(MIN_VALUE)) {
746
+ if (divisor.eq(ONE) || divisor.eq(NEG_ONE))
747
+ return MIN_VALUE;
748
+ else if (divisor.eq(MIN_VALUE))
749
+ return ONE;
750
+ else {
751
+ var halfThis = this.shr(1);
752
+ approx = halfThis.div(divisor).shl(1);
753
+ if (approx.eq(ZERO)) {
754
+ return divisor.isNegative() ? ONE : NEG_ONE;
755
+ } else {
756
+ rem = this.sub(divisor.mul(approx));
757
+ res = approx.add(rem.div(divisor));
758
+ return res;
759
+ }
760
+ }
761
+ } else if (divisor.eq(MIN_VALUE))
762
+ return this.unsigned ? UZERO : ZERO;
763
+ if (this.isNegative()) {
764
+ if (divisor.isNegative())
765
+ return this.neg().div(divisor.neg());
766
+ return this.neg().div(divisor).neg();
767
+ } else if (divisor.isNegative())
768
+ return this.div(divisor.neg()).neg();
769
+ res = ZERO;
770
+ } else {
771
+ if (!divisor.unsigned)
772
+ divisor = divisor.toUnsigned();
773
+ if (divisor.gt(this))
774
+ return UZERO;
775
+ if (divisor.gt(this.shru(1)))
776
+ return UONE;
777
+ res = UZERO;
778
+ }
779
+ rem = this;
780
+ while (rem.gte(divisor)) {
781
+ approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));
782
+ 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);
783
+ while (approxRem.isNegative() || approxRem.gt(rem)) {
784
+ approx -= delta;
785
+ approxRes = fromNumber(approx, this.unsigned);
786
+ approxRem = approxRes.mul(divisor);
787
+ }
788
+ if (approxRes.isZero())
789
+ approxRes = ONE;
790
+ res = res.add(approxRes);
791
+ rem = rem.sub(approxRem);
792
+ }
793
+ return res;
794
+ };
795
+ LongPrototype.div = LongPrototype.divide;
796
+ LongPrototype.modulo = function modulo(divisor) {
797
+ if (!isLong(divisor))
798
+ divisor = fromValue(divisor);
799
+ if (wasm) {
800
+ var low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(
801
+ this.low,
802
+ this.high,
803
+ divisor.low,
804
+ divisor.high
805
+ );
806
+ return fromBits(low, wasm.get_high(), this.unsigned);
807
+ }
808
+ return this.sub(this.div(divisor).mul(divisor));
809
+ };
810
+ LongPrototype.mod = LongPrototype.modulo;
811
+ LongPrototype.rem = LongPrototype.modulo;
812
+ LongPrototype.not = function not() {
813
+ return fromBits(~this.low, ~this.high, this.unsigned);
814
+ };
815
+ LongPrototype.and = function and(other) {
816
+ if (!isLong(other))
817
+ other = fromValue(other);
818
+ return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
819
+ };
820
+ LongPrototype.or = function or(other) {
821
+ if (!isLong(other))
822
+ other = fromValue(other);
823
+ return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
824
+ };
825
+ LongPrototype.xor = function xor(other) {
826
+ if (!isLong(other))
827
+ other = fromValue(other);
828
+ return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
829
+ };
830
+ LongPrototype.shiftLeft = function shiftLeft(numBits) {
831
+ if (isLong(numBits))
832
+ numBits = numBits.toInt();
833
+ if ((numBits &= 63) === 0)
834
+ return this;
835
+ else if (numBits < 32)
836
+ return fromBits(this.low << numBits, this.high << numBits | this.low >>> 32 - numBits, this.unsigned);
837
+ else
838
+ return fromBits(0, this.low << numBits - 32, this.unsigned);
839
+ };
840
+ LongPrototype.shl = LongPrototype.shiftLeft;
841
+ LongPrototype.shiftRight = function shiftRight(numBits) {
842
+ if (isLong(numBits))
843
+ numBits = numBits.toInt();
844
+ if ((numBits &= 63) === 0)
845
+ return this;
846
+ else if (numBits < 32)
847
+ return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >> numBits, this.unsigned);
848
+ else
849
+ return fromBits(this.high >> numBits - 32, this.high >= 0 ? 0 : -1, this.unsigned);
850
+ };
851
+ LongPrototype.shr = LongPrototype.shiftRight;
852
+ LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
853
+ if (isLong(numBits))
854
+ numBits = numBits.toInt();
855
+ numBits &= 63;
856
+ if (numBits === 0)
857
+ return this;
858
+ else {
859
+ var high = this.high;
860
+ if (numBits < 32) {
861
+ var low = this.low;
862
+ return fromBits(low >>> numBits | high << 32 - numBits, high >>> numBits, this.unsigned);
863
+ } else if (numBits === 32)
864
+ return fromBits(high, 0, this.unsigned);
865
+ else
866
+ return fromBits(high >>> numBits - 32, 0, this.unsigned);
867
+ }
868
+ };
869
+ LongPrototype.shru = LongPrototype.shiftRightUnsigned;
870
+ LongPrototype.shr_u = LongPrototype.shiftRightUnsigned;
871
+ LongPrototype.toSigned = function toSigned() {
872
+ if (!this.unsigned)
873
+ return this;
874
+ return fromBits(this.low, this.high, false);
875
+ };
876
+ LongPrototype.toUnsigned = function toUnsigned() {
877
+ if (this.unsigned)
878
+ return this;
879
+ return fromBits(this.low, this.high, true);
880
+ };
881
+ LongPrototype.toBytes = function toBytes(le) {
882
+ return le ? this.toBytesLE() : this.toBytesBE();
883
+ };
884
+ LongPrototype.toBytesLE = function toBytesLE() {
885
+ var hi = this.high, lo = this.low;
886
+ return [
887
+ lo & 255,
888
+ lo >>> 8 & 255,
889
+ lo >>> 16 & 255,
890
+ lo >>> 24,
891
+ hi & 255,
892
+ hi >>> 8 & 255,
893
+ hi >>> 16 & 255,
894
+ hi >>> 24
895
+ ];
896
+ };
897
+ LongPrototype.toBytesBE = function toBytesBE() {
898
+ var hi = this.high, lo = this.low;
899
+ return [
900
+ hi >>> 24,
901
+ hi >>> 16 & 255,
902
+ hi >>> 8 & 255,
903
+ hi & 255,
904
+ lo >>> 24,
905
+ lo >>> 16 & 255,
906
+ lo >>> 8 & 255,
907
+ lo & 255
908
+ ];
909
+ };
910
+ Long4.fromBytes = function fromBytes(bytes, unsigned, le) {
911
+ return le ? Long4.fromBytesLE(bytes, unsigned) : Long4.fromBytesBE(bytes, unsigned);
912
+ };
913
+ Long4.fromBytesLE = function fromBytesLE(bytes, unsigned) {
914
+ return new Long4(
915
+ bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24,
916
+ bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24,
917
+ unsigned
918
+ );
919
+ };
920
+ Long4.fromBytesBE = function fromBytesBE(bytes, unsigned) {
921
+ return new Long4(
922
+ bytes[4] << 24 | bytes[5] << 16 | bytes[6] << 8 | bytes[7],
923
+ bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3],
924
+ unsigned
925
+ );
926
+ };
927
+ }
928
+ });
929
+
930
+ // ../../node_modules/@protobufjs/aspromise/index.js
931
+ var require_aspromise = __commonJS({
932
+ "../../node_modules/@protobufjs/aspromise/index.js"(exports2, module2) {
933
+ "use strict";
934
+ module2.exports = asPromise;
935
+ function asPromise(fn, ctx) {
936
+ var params = new Array(arguments.length - 1), offset = 0, index = 2, pending = true;
937
+ while (index < arguments.length)
938
+ params[offset++] = arguments[index++];
939
+ return new Promise(function executor(resolve, reject) {
940
+ params[offset] = function callback(err) {
941
+ if (pending) {
942
+ pending = false;
943
+ if (err)
944
+ reject(err);
945
+ else {
946
+ var params2 = new Array(arguments.length - 1), offset2 = 0;
947
+ while (offset2 < params2.length)
948
+ params2[offset2++] = arguments[offset2];
949
+ resolve.apply(null, params2);
950
+ }
951
+ }
952
+ };
953
+ try {
954
+ fn.apply(ctx || null, params);
955
+ } catch (err) {
956
+ if (pending) {
957
+ pending = false;
958
+ reject(err);
959
+ }
960
+ }
961
+ });
962
+ }
963
+ }
964
+ });
965
+
966
+ // ../../node_modules/@protobufjs/base64/index.js
967
+ var require_base64 = __commonJS({
968
+ "../../node_modules/@protobufjs/base64/index.js"(exports2) {
969
+ "use strict";
970
+ var base64 = exports2;
971
+ base64.length = function length(string) {
972
+ var p = string.length;
973
+ if (!p)
974
+ return 0;
975
+ var n = 0;
976
+ while (--p % 4 > 1 && string.charAt(p) === "=")
977
+ ++n;
978
+ return Math.ceil(string.length * 3) / 4 - n;
979
+ };
980
+ var b64 = new Array(64);
981
+ var s64 = new Array(123);
982
+ for (i = 0; i < 64; )
983
+ s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;
984
+ var i;
985
+ base64.encode = function encode3(buffer, start, end) {
986
+ var parts = null, chunk = [];
987
+ var i2 = 0, j = 0, t;
988
+ while (start < end) {
989
+ var b = buffer[start++];
990
+ switch (j) {
991
+ case 0:
992
+ chunk[i2++] = b64[b >> 2];
993
+ t = (b & 3) << 4;
994
+ j = 1;
995
+ break;
996
+ case 1:
997
+ chunk[i2++] = b64[t | b >> 4];
998
+ t = (b & 15) << 2;
999
+ j = 2;
1000
+ break;
1001
+ case 2:
1002
+ chunk[i2++] = b64[t | b >> 6];
1003
+ chunk[i2++] = b64[b & 63];
1004
+ j = 0;
1005
+ break;
1006
+ }
1007
+ if (i2 > 8191) {
1008
+ (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
1009
+ i2 = 0;
1010
+ }
1011
+ }
1012
+ if (j) {
1013
+ chunk[i2++] = b64[t];
1014
+ chunk[i2++] = 61;
1015
+ if (j === 1)
1016
+ chunk[i2++] = 61;
1017
+ }
1018
+ if (parts) {
1019
+ if (i2)
1020
+ parts.push(String.fromCharCode.apply(String, chunk.slice(0, i2)));
1021
+ return parts.join("");
1022
+ }
1023
+ return String.fromCharCode.apply(String, chunk.slice(0, i2));
1024
+ };
1025
+ var invalidEncoding = "invalid encoding";
1026
+ base64.decode = function decode4(string, buffer, offset) {
1027
+ var start = offset;
1028
+ var j = 0, t;
1029
+ for (var i2 = 0; i2 < string.length; ) {
1030
+ var c = string.charCodeAt(i2++);
1031
+ if (c === 61 && j > 1)
1032
+ break;
1033
+ if ((c = s64[c]) === void 0)
1034
+ throw Error(invalidEncoding);
1035
+ switch (j) {
1036
+ case 0:
1037
+ t = c;
1038
+ j = 1;
1039
+ break;
1040
+ case 1:
1041
+ buffer[offset++] = t << 2 | (c & 48) >> 4;
1042
+ t = c;
1043
+ j = 2;
1044
+ break;
1045
+ case 2:
1046
+ buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;
1047
+ t = c;
1048
+ j = 3;
1049
+ break;
1050
+ case 3:
1051
+ buffer[offset++] = (t & 3) << 6 | c;
1052
+ j = 0;
1053
+ break;
1054
+ }
1055
+ }
1056
+ if (j === 1)
1057
+ throw Error(invalidEncoding);
1058
+ return offset - start;
1059
+ };
1060
+ base64.test = function test(string) {
1061
+ return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);
1062
+ };
1063
+ }
1064
+ });
1065
+
1066
+ // ../../node_modules/@protobufjs/eventemitter/index.js
1067
+ var require_eventemitter = __commonJS({
1068
+ "../../node_modules/@protobufjs/eventemitter/index.js"(exports2, module2) {
1069
+ "use strict";
1070
+ module2.exports = EventEmitter;
1071
+ function EventEmitter() {
1072
+ this._listeners = {};
1073
+ }
1074
+ EventEmitter.prototype.on = function on(evt, fn, ctx) {
1075
+ (this._listeners[evt] || (this._listeners[evt] = [])).push({
1076
+ fn,
1077
+ ctx: ctx || this
1078
+ });
1079
+ return this;
1080
+ };
1081
+ EventEmitter.prototype.off = function off(evt, fn) {
1082
+ if (evt === void 0)
1083
+ this._listeners = {};
1084
+ else {
1085
+ if (fn === void 0)
1086
+ this._listeners[evt] = [];
1087
+ else {
1088
+ var listeners = this._listeners[evt];
1089
+ for (var i = 0; i < listeners.length; )
1090
+ if (listeners[i].fn === fn)
1091
+ listeners.splice(i, 1);
1092
+ else
1093
+ ++i;
1094
+ }
1095
+ }
1096
+ return this;
1097
+ };
1098
+ EventEmitter.prototype.emit = function emit(evt) {
1099
+ var listeners = this._listeners[evt];
1100
+ if (listeners) {
1101
+ var args = [], i = 1;
1102
+ for (; i < arguments.length; )
1103
+ args.push(arguments[i++]);
1104
+ for (i = 0; i < listeners.length; )
1105
+ listeners[i].fn.apply(listeners[i++].ctx, args);
1106
+ }
1107
+ return this;
1108
+ };
1109
+ }
1110
+ });
1111
+
1112
+ // ../../node_modules/@protobufjs/float/index.js
1113
+ var require_float = __commonJS({
1114
+ "../../node_modules/@protobufjs/float/index.js"(exports2, module2) {
1115
+ "use strict";
1116
+ module2.exports = factory(factory);
1117
+ function factory(exports3) {
1118
+ if (typeof Float32Array !== "undefined") (function() {
1119
+ var f32 = new Float32Array([-0]), f8b = new Uint8Array(f32.buffer), le = f8b[3] === 128;
1120
+ function writeFloat_f32_cpy(val, buf, pos) {
1121
+ f32[0] = val;
1122
+ buf[pos] = f8b[0];
1123
+ buf[pos + 1] = f8b[1];
1124
+ buf[pos + 2] = f8b[2];
1125
+ buf[pos + 3] = f8b[3];
1126
+ }
1127
+ function writeFloat_f32_rev(val, buf, pos) {
1128
+ f32[0] = val;
1129
+ buf[pos] = f8b[3];
1130
+ buf[pos + 1] = f8b[2];
1131
+ buf[pos + 2] = f8b[1];
1132
+ buf[pos + 3] = f8b[0];
1133
+ }
1134
+ exports3.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;
1135
+ exports3.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;
1136
+ function readFloat_f32_cpy(buf, pos) {
1137
+ f8b[0] = buf[pos];
1138
+ f8b[1] = buf[pos + 1];
1139
+ f8b[2] = buf[pos + 2];
1140
+ f8b[3] = buf[pos + 3];
1141
+ return f32[0];
1142
+ }
1143
+ function readFloat_f32_rev(buf, pos) {
1144
+ f8b[3] = buf[pos];
1145
+ f8b[2] = buf[pos + 1];
1146
+ f8b[1] = buf[pos + 2];
1147
+ f8b[0] = buf[pos + 3];
1148
+ return f32[0];
1149
+ }
1150
+ exports3.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;
1151
+ exports3.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;
1152
+ })();
1153
+ else (function() {
1154
+ function writeFloat_ieee754(writeUint, val, buf, pos) {
1155
+ var sign = val < 0 ? 1 : 0;
1156
+ if (sign)
1157
+ val = -val;
1158
+ if (val === 0)
1159
+ writeUint(1 / val > 0 ? (
1160
+ /* positive */
1161
+ 0
1162
+ ) : (
1163
+ /* negative 0 */
1164
+ 2147483648
1165
+ ), buf, pos);
1166
+ else if (isNaN(val))
1167
+ writeUint(2143289344, buf, pos);
1168
+ else if (val > 34028234663852886e22)
1169
+ writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);
1170
+ else if (val < 11754943508222875e-54)
1171
+ writeUint((sign << 31 | Math.round(val / 1401298464324817e-60)) >>> 0, buf, pos);
1172
+ else {
1173
+ var exponent = Math.floor(Math.log(val) / Math.LN2), mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;
1174
+ writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
1175
+ }
1176
+ }
1177
+ exports3.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
1178
+ exports3.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
1179
+ function readFloat_ieee754(readUint, buf, pos) {
1180
+ var uint = readUint(buf, pos), sign = (uint >> 31) * 2 + 1, exponent = uint >>> 23 & 255, mantissa = uint & 8388607;
1181
+ return exponent === 255 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 1401298464324817e-60 * mantissa : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);
1182
+ }
1183
+ exports3.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
1184
+ exports3.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
1185
+ })();
1186
+ if (typeof Float64Array !== "undefined") (function() {
1187
+ var f64 = new Float64Array([-0]), f8b = new Uint8Array(f64.buffer), le = f8b[7] === 128;
1188
+ function writeDouble_f64_cpy(val, buf, pos) {
1189
+ f64[0] = val;
1190
+ buf[pos] = f8b[0];
1191
+ buf[pos + 1] = f8b[1];
1192
+ buf[pos + 2] = f8b[2];
1193
+ buf[pos + 3] = f8b[3];
1194
+ buf[pos + 4] = f8b[4];
1195
+ buf[pos + 5] = f8b[5];
1196
+ buf[pos + 6] = f8b[6];
1197
+ buf[pos + 7] = f8b[7];
1198
+ }
1199
+ function writeDouble_f64_rev(val, buf, pos) {
1200
+ f64[0] = val;
1201
+ buf[pos] = f8b[7];
1202
+ buf[pos + 1] = f8b[6];
1203
+ buf[pos + 2] = f8b[5];
1204
+ buf[pos + 3] = f8b[4];
1205
+ buf[pos + 4] = f8b[3];
1206
+ buf[pos + 5] = f8b[2];
1207
+ buf[pos + 6] = f8b[1];
1208
+ buf[pos + 7] = f8b[0];
1209
+ }
1210
+ exports3.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;
1211
+ exports3.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;
1212
+ function readDouble_f64_cpy(buf, pos) {
1213
+ f8b[0] = buf[pos];
1214
+ f8b[1] = buf[pos + 1];
1215
+ f8b[2] = buf[pos + 2];
1216
+ f8b[3] = buf[pos + 3];
1217
+ f8b[4] = buf[pos + 4];
1218
+ f8b[5] = buf[pos + 5];
1219
+ f8b[6] = buf[pos + 6];
1220
+ f8b[7] = buf[pos + 7];
1221
+ return f64[0];
1222
+ }
1223
+ function readDouble_f64_rev(buf, pos) {
1224
+ f8b[7] = buf[pos];
1225
+ f8b[6] = buf[pos + 1];
1226
+ f8b[5] = buf[pos + 2];
1227
+ f8b[4] = buf[pos + 3];
1228
+ f8b[3] = buf[pos + 4];
1229
+ f8b[2] = buf[pos + 5];
1230
+ f8b[1] = buf[pos + 6];
1231
+ f8b[0] = buf[pos + 7];
1232
+ return f64[0];
1233
+ }
1234
+ exports3.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;
1235
+ exports3.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;
1236
+ })();
1237
+ else (function() {
1238
+ function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {
1239
+ var sign = val < 0 ? 1 : 0;
1240
+ if (sign)
1241
+ val = -val;
1242
+ if (val === 0) {
1243
+ writeUint(0, buf, pos + off0);
1244
+ writeUint(1 / val > 0 ? (
1245
+ /* positive */
1246
+ 0
1247
+ ) : (
1248
+ /* negative 0 */
1249
+ 2147483648
1250
+ ), buf, pos + off1);
1251
+ } else if (isNaN(val)) {
1252
+ writeUint(0, buf, pos + off0);
1253
+ writeUint(2146959360, buf, pos + off1);
1254
+ } else if (val > 17976931348623157e292) {
1255
+ writeUint(0, buf, pos + off0);
1256
+ writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);
1257
+ } else {
1258
+ var mantissa;
1259
+ if (val < 22250738585072014e-324) {
1260
+ mantissa = val / 5e-324;
1261
+ writeUint(mantissa >>> 0, buf, pos + off0);
1262
+ writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
1263
+ } else {
1264
+ var exponent = Math.floor(Math.log(val) / Math.LN2);
1265
+ if (exponent === 1024)
1266
+ exponent = 1023;
1267
+ mantissa = val * Math.pow(2, -exponent);
1268
+ writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);
1269
+ writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
1270
+ }
1271
+ }
1272
+ }
1273
+ exports3.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);
1274
+ exports3.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
1275
+ function readDouble_ieee754(readUint, off0, off1, buf, pos) {
1276
+ var lo = readUint(buf, pos + off0), hi = readUint(buf, pos + off1);
1277
+ var sign = (hi >> 31) * 2 + 1, exponent = hi >>> 20 & 2047, mantissa = 4294967296 * (hi & 1048575) + lo;
1278
+ return exponent === 2047 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 5e-324 * mantissa : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
1279
+ }
1280
+ exports3.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
1281
+ exports3.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
1282
+ })();
1283
+ return exports3;
1284
+ }
1285
+ function writeUintLE(val, buf, pos) {
1286
+ buf[pos] = val & 255;
1287
+ buf[pos + 1] = val >>> 8 & 255;
1288
+ buf[pos + 2] = val >>> 16 & 255;
1289
+ buf[pos + 3] = val >>> 24;
1290
+ }
1291
+ function writeUintBE(val, buf, pos) {
1292
+ buf[pos] = val >>> 24;
1293
+ buf[pos + 1] = val >>> 16 & 255;
1294
+ buf[pos + 2] = val >>> 8 & 255;
1295
+ buf[pos + 3] = val & 255;
1296
+ }
1297
+ function readUintLE(buf, pos) {
1298
+ return (buf[pos] | buf[pos + 1] << 8 | buf[pos + 2] << 16 | buf[pos + 3] << 24) >>> 0;
1299
+ }
1300
+ function readUintBE(buf, pos) {
1301
+ return (buf[pos] << 24 | buf[pos + 1] << 16 | buf[pos + 2] << 8 | buf[pos + 3]) >>> 0;
1302
+ }
1303
+ }
1304
+ });
1305
+
1306
+ // ../../node_modules/@protobufjs/inquire/index.js
1307
+ var require_inquire = __commonJS({
1308
+ "../../node_modules/@protobufjs/inquire/index.js"(exports, module) {
1309
+ "use strict";
1310
+ module.exports = inquire;
1311
+ function inquire(moduleName) {
1312
+ try {
1313
+ var mod = eval("quire".replace(/^/, "re"))(moduleName);
1314
+ if (mod && (mod.length || Object.keys(mod).length))
1315
+ return mod;
1316
+ } catch (e) {
1317
+ }
1318
+ return null;
1319
+ }
1320
+ }
1321
+ });
1322
+
1323
+ // ../../node_modules/@protobufjs/utf8/index.js
1324
+ var require_utf8 = __commonJS({
1325
+ "../../node_modules/@protobufjs/utf8/index.js"(exports2) {
1326
+ "use strict";
1327
+ var utf8 = exports2;
1328
+ utf8.length = function utf8_length(string) {
1329
+ var len = 0, c = 0;
1330
+ for (var i = 0; i < string.length; ++i) {
1331
+ c = string.charCodeAt(i);
1332
+ if (c < 128)
1333
+ len += 1;
1334
+ else if (c < 2048)
1335
+ len += 2;
1336
+ else if ((c & 64512) === 55296 && (string.charCodeAt(i + 1) & 64512) === 56320) {
1337
+ ++i;
1338
+ len += 4;
1339
+ } else
1340
+ len += 3;
1341
+ }
1342
+ return len;
1343
+ };
1344
+ utf8.read = function utf8_read(buffer, start, end) {
1345
+ var len = end - start;
1346
+ if (len < 1)
1347
+ return "";
1348
+ var parts = null, chunk = [], i = 0, t;
1349
+ while (start < end) {
1350
+ t = buffer[start++];
1351
+ if (t < 128)
1352
+ chunk[i++] = t;
1353
+ else if (t > 191 && t < 224)
1354
+ chunk[i++] = (t & 31) << 6 | buffer[start++] & 63;
1355
+ else if (t > 239 && t < 365) {
1356
+ t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 65536;
1357
+ chunk[i++] = 55296 + (t >> 10);
1358
+ chunk[i++] = 56320 + (t & 1023);
1359
+ } else
1360
+ chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63;
1361
+ if (i > 8191) {
1362
+ (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
1363
+ i = 0;
1364
+ }
1365
+ }
1366
+ if (parts) {
1367
+ if (i)
1368
+ parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
1369
+ return parts.join("");
1370
+ }
1371
+ return String.fromCharCode.apply(String, chunk.slice(0, i));
1372
+ };
1373
+ utf8.write = function utf8_write(string, buffer, offset) {
1374
+ var start = offset, c1, c2;
1375
+ for (var i = 0; i < string.length; ++i) {
1376
+ c1 = string.charCodeAt(i);
1377
+ if (c1 < 128) {
1378
+ buffer[offset++] = c1;
1379
+ } else if (c1 < 2048) {
1380
+ buffer[offset++] = c1 >> 6 | 192;
1381
+ buffer[offset++] = c1 & 63 | 128;
1382
+ } else if ((c1 & 64512) === 55296 && ((c2 = string.charCodeAt(i + 1)) & 64512) === 56320) {
1383
+ c1 = 65536 + ((c1 & 1023) << 10) + (c2 & 1023);
1384
+ ++i;
1385
+ buffer[offset++] = c1 >> 18 | 240;
1386
+ buffer[offset++] = c1 >> 12 & 63 | 128;
1387
+ buffer[offset++] = c1 >> 6 & 63 | 128;
1388
+ buffer[offset++] = c1 & 63 | 128;
1389
+ } else {
1390
+ buffer[offset++] = c1 >> 12 | 224;
1391
+ buffer[offset++] = c1 >> 6 & 63 | 128;
1392
+ buffer[offset++] = c1 & 63 | 128;
1393
+ }
1394
+ }
1395
+ return offset - start;
1396
+ };
1397
+ }
1398
+ });
1399
+
1400
+ // ../../node_modules/@protobufjs/pool/index.js
1401
+ var require_pool = __commonJS({
1402
+ "../../node_modules/@protobufjs/pool/index.js"(exports2, module2) {
1403
+ "use strict";
1404
+ module2.exports = pool;
1405
+ function pool(alloc, slice, size) {
1406
+ var SIZE = size || 8192;
1407
+ var MAX = SIZE >>> 1;
1408
+ var slab = null;
1409
+ var offset = SIZE;
1410
+ return function pool_alloc(size2) {
1411
+ if (size2 < 1 || size2 > MAX)
1412
+ return alloc(size2);
1413
+ if (offset + size2 > SIZE) {
1414
+ slab = alloc(SIZE);
1415
+ offset = 0;
1416
+ }
1417
+ var buf = slice.call(slab, offset, offset += size2);
1418
+ if (offset & 7)
1419
+ offset = (offset | 7) + 1;
1420
+ return buf;
1421
+ };
1422
+ }
1423
+ }
1424
+ });
1425
+
1426
+ // ../../node_modules/protobufjs/src/util/longbits.js
1427
+ var require_longbits = __commonJS({
1428
+ "../../node_modules/protobufjs/src/util/longbits.js"(exports2, module2) {
1429
+ "use strict";
1430
+ module2.exports = LongBits;
1431
+ var util = require_minimal();
1432
+ function LongBits(lo, hi) {
1433
+ this.lo = lo >>> 0;
1434
+ this.hi = hi >>> 0;
1435
+ }
1436
+ var zero = LongBits.zero = new LongBits(0, 0);
1437
+ zero.toNumber = function() {
1438
+ return 0;
1439
+ };
1440
+ zero.zzEncode = zero.zzDecode = function() {
1441
+ return this;
1442
+ };
1443
+ zero.length = function() {
1444
+ return 1;
1445
+ };
1446
+ var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0";
1447
+ LongBits.fromNumber = function fromNumber(value) {
1448
+ if (value === 0)
1449
+ return zero;
1450
+ var sign = value < 0;
1451
+ if (sign)
1452
+ value = -value;
1453
+ var lo = value >>> 0, hi = (value - lo) / 4294967296 >>> 0;
1454
+ if (sign) {
1455
+ hi = ~hi >>> 0;
1456
+ lo = ~lo >>> 0;
1457
+ if (++lo > 4294967295) {
1458
+ lo = 0;
1459
+ if (++hi > 4294967295)
1460
+ hi = 0;
1461
+ }
1462
+ }
1463
+ return new LongBits(lo, hi);
1464
+ };
1465
+ LongBits.from = function from(value) {
1466
+ if (typeof value === "number")
1467
+ return LongBits.fromNumber(value);
1468
+ if (util.isString(value)) {
1469
+ if (util.Long)
1470
+ value = util.Long.fromString(value);
1471
+ else
1472
+ return LongBits.fromNumber(parseInt(value, 10));
1473
+ }
1474
+ return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;
1475
+ };
1476
+ LongBits.prototype.toNumber = function toNumber(unsigned) {
1477
+ if (!unsigned && this.hi >>> 31) {
1478
+ var lo = ~this.lo + 1 >>> 0, hi = ~this.hi >>> 0;
1479
+ if (!lo)
1480
+ hi = hi + 1 >>> 0;
1481
+ return -(lo + hi * 4294967296);
1482
+ }
1483
+ return this.lo + this.hi * 4294967296;
1484
+ };
1485
+ LongBits.prototype.toLong = function toLong(unsigned) {
1486
+ 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) };
1487
+ };
1488
+ var charCodeAt = String.prototype.charCodeAt;
1489
+ LongBits.fromHash = function fromHash(hash) {
1490
+ if (hash === zeroHash)
1491
+ return zero;
1492
+ return new LongBits(
1493
+ (charCodeAt.call(hash, 0) | charCodeAt.call(hash, 1) << 8 | charCodeAt.call(hash, 2) << 16 | charCodeAt.call(hash, 3) << 24) >>> 0,
1494
+ (charCodeAt.call(hash, 4) | charCodeAt.call(hash, 5) << 8 | charCodeAt.call(hash, 6) << 16 | charCodeAt.call(hash, 7) << 24) >>> 0
1495
+ );
1496
+ };
1497
+ LongBits.prototype.toHash = function toHash() {
1498
+ return String.fromCharCode(
1499
+ this.lo & 255,
1500
+ this.lo >>> 8 & 255,
1501
+ this.lo >>> 16 & 255,
1502
+ this.lo >>> 24,
1503
+ this.hi & 255,
1504
+ this.hi >>> 8 & 255,
1505
+ this.hi >>> 16 & 255,
1506
+ this.hi >>> 24
1507
+ );
1508
+ };
1509
+ LongBits.prototype.zzEncode = function zzEncode() {
1510
+ var mask = this.hi >> 31;
1511
+ this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0;
1512
+ this.lo = (this.lo << 1 ^ mask) >>> 0;
1513
+ return this;
1514
+ };
1515
+ LongBits.prototype.zzDecode = function zzDecode() {
1516
+ var mask = -(this.lo & 1);
1517
+ this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0;
1518
+ this.hi = (this.hi >>> 1 ^ mask) >>> 0;
1519
+ return this;
1520
+ };
1521
+ LongBits.prototype.length = function length() {
1522
+ var part0 = this.lo, part1 = (this.lo >>> 28 | this.hi << 4) >>> 0, part2 = this.hi >>> 24;
1523
+ 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;
1524
+ };
1525
+ }
1526
+ });
1527
+
1528
+ // ../../node_modules/protobufjs/src/util/minimal.js
1529
+ var require_minimal = __commonJS({
1530
+ "../../node_modules/protobufjs/src/util/minimal.js"(exports2) {
1531
+ "use strict";
1532
+ var util = exports2;
1533
+ util.asPromise = require_aspromise();
1534
+ util.base64 = require_base64();
1535
+ util.EventEmitter = require_eventemitter();
1536
+ util.float = require_float();
1537
+ util.inquire = require_inquire();
1538
+ util.utf8 = require_utf8();
1539
+ util.pool = require_pool();
1540
+ util.LongBits = require_longbits();
1541
+ util.isNode = Boolean(typeof global !== "undefined" && global && global.process && global.process.versions && global.process.versions.node);
1542
+ util.global = util.isNode && global || typeof window !== "undefined" && window || typeof self !== "undefined" && self || exports2;
1543
+ util.emptyArray = Object.freeze ? Object.freeze([]) : (
1544
+ /* istanbul ignore next */
1545
+ []
1546
+ );
1547
+ util.emptyObject = Object.freeze ? Object.freeze({}) : (
1548
+ /* istanbul ignore next */
1549
+ {}
1550
+ );
1551
+ util.isInteger = Number.isInteger || /* istanbul ignore next */
1552
+ function isInteger(value) {
1553
+ return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
1554
+ };
1555
+ util.isString = function isString(value) {
1556
+ return typeof value === "string" || value instanceof String;
1557
+ };
1558
+ util.isObject = function isObject(value) {
1559
+ return value && typeof value === "object";
1560
+ };
1561
+ util.isset = /**
1562
+ * Checks if a property on a message is considered to be present.
1563
+ * @param {Object} obj Plain object or message instance
1564
+ * @param {string} prop Property name
1565
+ * @returns {boolean} `true` if considered to be present, otherwise `false`
1566
+ */
1567
+ util.isSet = function isSet3(obj, prop) {
1568
+ var value = obj[prop];
1569
+ if (value != null && obj.hasOwnProperty(prop))
1570
+ return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;
1571
+ return false;
1572
+ };
1573
+ util.Buffer = function() {
1574
+ try {
1575
+ var Buffer2 = util.inquire("buffer").Buffer;
1576
+ return Buffer2.prototype.utf8Write ? Buffer2 : (
1577
+ /* istanbul ignore next */
1578
+ null
1579
+ );
1580
+ } catch (e) {
1581
+ return null;
1582
+ }
1583
+ }();
1584
+ util._Buffer_from = null;
1585
+ util._Buffer_allocUnsafe = null;
1586
+ util.newBuffer = function newBuffer(sizeOrArray) {
1587
+ 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);
1588
+ };
1589
+ util.Array = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
1590
+ util.Long = /* istanbul ignore next */
1591
+ util.global.dcodeIO && /* istanbul ignore next */
1592
+ util.global.dcodeIO.Long || /* istanbul ignore next */
1593
+ util.global.Long || util.inquire("long");
1594
+ util.key2Re = /^true|false|0|1$/;
1595
+ util.key32Re = /^-?(?:0|[1-9][0-9]*)$/;
1596
+ util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;
1597
+ util.longToHash = function longToHash(value) {
1598
+ return value ? util.LongBits.from(value).toHash() : util.LongBits.zeroHash;
1599
+ };
1600
+ util.longFromHash = function longFromHash(hash, unsigned) {
1601
+ var bits = util.LongBits.fromHash(hash);
1602
+ if (util.Long)
1603
+ return util.Long.fromBits(bits.lo, bits.hi, unsigned);
1604
+ return bits.toNumber(Boolean(unsigned));
1605
+ };
1606
+ function merge(dst, src, ifNotSet) {
1607
+ for (var keys = Object.keys(src), i = 0; i < keys.length; ++i)
1608
+ if (dst[keys[i]] === void 0 || !ifNotSet)
1609
+ dst[keys[i]] = src[keys[i]];
1610
+ return dst;
1611
+ }
1612
+ util.merge = merge;
1613
+ util.lcFirst = function lcFirst(str) {
1614
+ return str.charAt(0).toLowerCase() + str.substring(1);
1615
+ };
1616
+ function newError(name) {
1617
+ function CustomError(message, properties) {
1618
+ if (!(this instanceof CustomError))
1619
+ return new CustomError(message, properties);
1620
+ Object.defineProperty(this, "message", { get: function() {
1621
+ return message;
1622
+ } });
1623
+ if (Error.captureStackTrace)
1624
+ Error.captureStackTrace(this, CustomError);
1625
+ else
1626
+ Object.defineProperty(this, "stack", { value: new Error().stack || "" });
1627
+ if (properties)
1628
+ merge(this, properties);
1629
+ }
1630
+ (CustomError.prototype = Object.create(Error.prototype)).constructor = CustomError;
1631
+ Object.defineProperty(CustomError.prototype, "name", { get: function() {
1632
+ return name;
1633
+ } });
1634
+ CustomError.prototype.toString = function toString() {
1635
+ return this.name + ": " + this.message;
1636
+ };
1637
+ return CustomError;
1638
+ }
1639
+ util.newError = newError;
1640
+ util.ProtocolError = newError("ProtocolError");
1641
+ util.oneOfGetter = function getOneOf(fieldNames) {
1642
+ var fieldMap = {};
1643
+ for (var i = 0; i < fieldNames.length; ++i)
1644
+ fieldMap[fieldNames[i]] = 1;
1645
+ return function() {
1646
+ for (var keys = Object.keys(this), i2 = keys.length - 1; i2 > -1; --i2)
1647
+ if (fieldMap[keys[i2]] === 1 && this[keys[i2]] !== void 0 && this[keys[i2]] !== null)
1648
+ return keys[i2];
1649
+ };
1650
+ };
1651
+ util.oneOfSetter = function setOneOf(fieldNames) {
1652
+ return function(name) {
1653
+ for (var i = 0; i < fieldNames.length; ++i)
1654
+ if (fieldNames[i] !== name)
1655
+ delete this[fieldNames[i]];
1656
+ };
1657
+ };
1658
+ util.toJSONOptions = {
1659
+ longs: String,
1660
+ enums: String,
1661
+ bytes: String,
1662
+ json: true
1663
+ };
1664
+ util._configure = function() {
1665
+ var Buffer2 = util.Buffer;
1666
+ if (!Buffer2) {
1667
+ util._Buffer_from = util._Buffer_allocUnsafe = null;
1668
+ return;
1669
+ }
1670
+ util._Buffer_from = Buffer2.from !== Uint8Array.from && Buffer2.from || /* istanbul ignore next */
1671
+ function Buffer_from(value, encoding) {
1672
+ return new Buffer2(value, encoding);
1673
+ };
1674
+ util._Buffer_allocUnsafe = Buffer2.allocUnsafe || /* istanbul ignore next */
1675
+ function Buffer_allocUnsafe(size) {
1676
+ return new Buffer2(size);
1677
+ };
1678
+ };
1679
+ }
1680
+ });
1681
+
1682
+ // ../../node_modules/protobufjs/src/writer.js
1683
+ var require_writer = __commonJS({
1684
+ "../../node_modules/protobufjs/src/writer.js"(exports2, module2) {
1685
+ "use strict";
1686
+ module2.exports = Writer;
1687
+ var util = require_minimal();
1688
+ var BufferWriter;
1689
+ var LongBits = util.LongBits;
1690
+ var base64 = util.base64;
1691
+ var utf8 = util.utf8;
1692
+ function Op(fn, len, val) {
1693
+ this.fn = fn;
1694
+ this.len = len;
1695
+ this.next = void 0;
1696
+ this.val = val;
1697
+ }
1698
+ function noop() {
1699
+ }
1700
+ function State(writer) {
1701
+ this.head = writer.head;
1702
+ this.tail = writer.tail;
1703
+ this.len = writer.len;
1704
+ this.next = writer.states;
1705
+ }
1706
+ function Writer() {
1707
+ this.len = 0;
1708
+ this.head = new Op(noop, 0, 0);
1709
+ this.tail = this.head;
1710
+ this.states = null;
1711
+ }
1712
+ var create = function create2() {
1713
+ return util.Buffer ? function create_buffer_setup() {
1714
+ return (Writer.create = function create_buffer() {
1715
+ return new BufferWriter();
1716
+ })();
1717
+ } : function create_array() {
1718
+ return new Writer();
1719
+ };
1720
+ };
1721
+ Writer.create = create();
1722
+ Writer.alloc = function alloc(size) {
1723
+ return new util.Array(size);
1724
+ };
1725
+ if (util.Array !== Array)
1726
+ Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);
1727
+ Writer.prototype._push = function push(fn, len, val) {
1728
+ this.tail = this.tail.next = new Op(fn, len, val);
1729
+ this.len += len;
1730
+ return this;
1731
+ };
1732
+ function writeByte(val, buf, pos) {
1733
+ buf[pos] = val & 255;
1734
+ }
1735
+ function writeVarint32(val, buf, pos) {
1736
+ while (val > 127) {
1737
+ buf[pos++] = val & 127 | 128;
1738
+ val >>>= 7;
1739
+ }
1740
+ buf[pos] = val;
1741
+ }
1742
+ function VarintOp(len, val) {
1743
+ this.len = len;
1744
+ this.next = void 0;
1745
+ this.val = val;
1746
+ }
1747
+ VarintOp.prototype = Object.create(Op.prototype);
1748
+ VarintOp.prototype.fn = writeVarint32;
1749
+ Writer.prototype.uint32 = function write_uint32(value) {
1750
+ this.len += (this.tail = this.tail.next = new VarintOp(
1751
+ (value = value >>> 0) < 128 ? 1 : value < 16384 ? 2 : value < 2097152 ? 3 : value < 268435456 ? 4 : 5,
1752
+ value
1753
+ )).len;
1754
+ return this;
1755
+ };
1756
+ Writer.prototype.int32 = function write_int32(value) {
1757
+ return value < 0 ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) : this.uint32(value);
1758
+ };
1759
+ Writer.prototype.sint32 = function write_sint32(value) {
1760
+ return this.uint32((value << 1 ^ value >> 31) >>> 0);
1761
+ };
1762
+ function writeVarint64(val, buf, pos) {
1763
+ while (val.hi) {
1764
+ buf[pos++] = val.lo & 127 | 128;
1765
+ val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;
1766
+ val.hi >>>= 7;
1767
+ }
1768
+ while (val.lo > 127) {
1769
+ buf[pos++] = val.lo & 127 | 128;
1770
+ val.lo = val.lo >>> 7;
1771
+ }
1772
+ buf[pos++] = val.lo;
1773
+ }
1774
+ Writer.prototype.uint64 = function write_uint64(value) {
1775
+ var bits = LongBits.from(value);
1776
+ return this._push(writeVarint64, bits.length(), bits);
1777
+ };
1778
+ Writer.prototype.int64 = Writer.prototype.uint64;
1779
+ Writer.prototype.sint64 = function write_sint64(value) {
1780
+ var bits = LongBits.from(value).zzEncode();
1781
+ return this._push(writeVarint64, bits.length(), bits);
1782
+ };
1783
+ Writer.prototype.bool = function write_bool(value) {
1784
+ return this._push(writeByte, 1, value ? 1 : 0);
1785
+ };
1786
+ function writeFixed32(val, buf, pos) {
1787
+ buf[pos] = val & 255;
1788
+ buf[pos + 1] = val >>> 8 & 255;
1789
+ buf[pos + 2] = val >>> 16 & 255;
1790
+ buf[pos + 3] = val >>> 24;
1791
+ }
1792
+ Writer.prototype.fixed32 = function write_fixed32(value) {
1793
+ return this._push(writeFixed32, 4, value >>> 0);
1794
+ };
1795
+ Writer.prototype.sfixed32 = Writer.prototype.fixed32;
1796
+ Writer.prototype.fixed64 = function write_fixed64(value) {
1797
+ var bits = LongBits.from(value);
1798
+ return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);
1799
+ };
1800
+ Writer.prototype.sfixed64 = Writer.prototype.fixed64;
1801
+ Writer.prototype.float = function write_float(value) {
1802
+ return this._push(util.float.writeFloatLE, 4, value);
1803
+ };
1804
+ Writer.prototype.double = function write_double(value) {
1805
+ return this._push(util.float.writeDoubleLE, 8, value);
1806
+ };
1807
+ var writeBytes = util.Array.prototype.set ? function writeBytes_set(val, buf, pos) {
1808
+ buf.set(val, pos);
1809
+ } : function writeBytes_for(val, buf, pos) {
1810
+ for (var i = 0; i < val.length; ++i)
1811
+ buf[pos + i] = val[i];
1812
+ };
1813
+ Writer.prototype.bytes = function write_bytes(value) {
1814
+ var len = value.length >>> 0;
1815
+ if (!len)
1816
+ return this._push(writeByte, 1, 0);
1817
+ if (util.isString(value)) {
1818
+ var buf = Writer.alloc(len = base64.length(value));
1819
+ base64.decode(value, buf, 0);
1820
+ value = buf;
1821
+ }
1822
+ return this.uint32(len)._push(writeBytes, len, value);
1823
+ };
1824
+ Writer.prototype.string = function write_string(value) {
1825
+ var len = utf8.length(value);
1826
+ return len ? this.uint32(len)._push(utf8.write, len, value) : this._push(writeByte, 1, 0);
1827
+ };
1828
+ Writer.prototype.fork = function fork() {
1829
+ this.states = new State(this);
1830
+ this.head = this.tail = new Op(noop, 0, 0);
1831
+ this.len = 0;
1832
+ return this;
1833
+ };
1834
+ Writer.prototype.reset = function reset() {
1835
+ if (this.states) {
1836
+ this.head = this.states.head;
1837
+ this.tail = this.states.tail;
1838
+ this.len = this.states.len;
1839
+ this.states = this.states.next;
1840
+ } else {
1841
+ this.head = this.tail = new Op(noop, 0, 0);
1842
+ this.len = 0;
1843
+ }
1844
+ return this;
1845
+ };
1846
+ Writer.prototype.ldelim = function ldelim() {
1847
+ var head = this.head, tail = this.tail, len = this.len;
1848
+ this.reset().uint32(len);
1849
+ if (len) {
1850
+ this.tail.next = head.next;
1851
+ this.tail = tail;
1852
+ this.len += len;
1853
+ }
1854
+ return this;
1855
+ };
1856
+ Writer.prototype.finish = function finish() {
1857
+ var head = this.head.next, buf = this.constructor.alloc(this.len), pos = 0;
1858
+ while (head) {
1859
+ head.fn(head.val, buf, pos);
1860
+ pos += head.len;
1861
+ head = head.next;
1862
+ }
1863
+ return buf;
1864
+ };
1865
+ Writer._configure = function(BufferWriter_) {
1866
+ BufferWriter = BufferWriter_;
1867
+ Writer.create = create();
1868
+ BufferWriter._configure();
1869
+ };
1870
+ }
1871
+ });
1872
+
1873
+ // ../../node_modules/protobufjs/src/writer_buffer.js
1874
+ var require_writer_buffer = __commonJS({
1875
+ "../../node_modules/protobufjs/src/writer_buffer.js"(exports2, module2) {
1876
+ "use strict";
1877
+ module2.exports = BufferWriter;
1878
+ var Writer = require_writer();
1879
+ (BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;
1880
+ var util = require_minimal();
1881
+ function BufferWriter() {
1882
+ Writer.call(this);
1883
+ }
1884
+ BufferWriter._configure = function() {
1885
+ BufferWriter.alloc = util._Buffer_allocUnsafe;
1886
+ BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === "set" ? function writeBytesBuffer_set(val, buf, pos) {
1887
+ buf.set(val, pos);
1888
+ } : function writeBytesBuffer_copy(val, buf, pos) {
1889
+ if (val.copy)
1890
+ val.copy(buf, pos, 0, val.length);
1891
+ else for (var i = 0; i < val.length; )
1892
+ buf[pos++] = val[i++];
1893
+ };
1894
+ };
1895
+ BufferWriter.prototype.bytes = function write_bytes_buffer(value) {
1896
+ if (util.isString(value))
1897
+ value = util._Buffer_from(value, "base64");
1898
+ var len = value.length >>> 0;
1899
+ this.uint32(len);
1900
+ if (len)
1901
+ this._push(BufferWriter.writeBytesBuffer, len, value);
1902
+ return this;
1903
+ };
1904
+ function writeStringBuffer(val, buf, pos) {
1905
+ if (val.length < 40)
1906
+ util.utf8.write(val, buf, pos);
1907
+ else if (buf.utf8Write)
1908
+ buf.utf8Write(val, pos);
1909
+ else
1910
+ buf.write(val, pos);
1911
+ }
1912
+ BufferWriter.prototype.string = function write_string_buffer(value) {
1913
+ var len = util.Buffer.byteLength(value);
1914
+ this.uint32(len);
1915
+ if (len)
1916
+ this._push(writeStringBuffer, len, value);
1917
+ return this;
1918
+ };
1919
+ BufferWriter._configure();
1920
+ }
1921
+ });
1922
+
1923
+ // ../../node_modules/protobufjs/src/reader.js
1924
+ var require_reader = __commonJS({
1925
+ "../../node_modules/protobufjs/src/reader.js"(exports2, module2) {
1926
+ "use strict";
1927
+ module2.exports = Reader;
1928
+ var util = require_minimal();
1929
+ var BufferReader;
1930
+ var LongBits = util.LongBits;
1931
+ var utf8 = util.utf8;
1932
+ function indexOutOfRange(reader, writeLength) {
1933
+ return RangeError("index out of range: " + reader.pos + " + " + (writeLength || 1) + " > " + reader.len);
1934
+ }
1935
+ function Reader(buffer) {
1936
+ this.buf = buffer;
1937
+ this.pos = 0;
1938
+ this.len = buffer.length;
1939
+ }
1940
+ var create_array = typeof Uint8Array !== "undefined" ? function create_typed_array(buffer) {
1941
+ if (buffer instanceof Uint8Array || Array.isArray(buffer))
1942
+ return new Reader(buffer);
1943
+ throw Error("illegal buffer");
1944
+ } : function create_array2(buffer) {
1945
+ if (Array.isArray(buffer))
1946
+ return new Reader(buffer);
1947
+ throw Error("illegal buffer");
1948
+ };
1949
+ var create = function create2() {
1950
+ return util.Buffer ? function create_buffer_setup(buffer) {
1951
+ return (Reader.create = function create_buffer(buffer2) {
1952
+ return util.Buffer.isBuffer(buffer2) ? new BufferReader(buffer2) : create_array(buffer2);
1953
+ })(buffer);
1954
+ } : create_array;
1955
+ };
1956
+ Reader.create = create();
1957
+ Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
1958
+ util.Array.prototype.slice;
1959
+ Reader.prototype.uint32 = /* @__PURE__ */ function read_uint32_setup() {
1960
+ var value = 4294967295;
1961
+ return function read_uint32() {
1962
+ value = (this.buf[this.pos] & 127) >>> 0;
1963
+ if (this.buf[this.pos++] < 128) return value;
1964
+ value = (value | (this.buf[this.pos] & 127) << 7) >>> 0;
1965
+ if (this.buf[this.pos++] < 128) return value;
1966
+ value = (value | (this.buf[this.pos] & 127) << 14) >>> 0;
1967
+ if (this.buf[this.pos++] < 128) return value;
1968
+ value = (value | (this.buf[this.pos] & 127) << 21) >>> 0;
1969
+ if (this.buf[this.pos++] < 128) return value;
1970
+ value = (value | (this.buf[this.pos] & 15) << 28) >>> 0;
1971
+ if (this.buf[this.pos++] < 128) return value;
1972
+ if ((this.pos += 5) > this.len) {
1973
+ this.pos = this.len;
1974
+ throw indexOutOfRange(this, 10);
1975
+ }
1976
+ return value;
1977
+ };
1978
+ }();
1979
+ Reader.prototype.int32 = function read_int32() {
1980
+ return this.uint32() | 0;
1981
+ };
1982
+ Reader.prototype.sint32 = function read_sint32() {
1983
+ var value = this.uint32();
1984
+ return value >>> 1 ^ -(value & 1) | 0;
1985
+ };
1986
+ function readLongVarint() {
1987
+ var bits = new LongBits(0, 0);
1988
+ var i = 0;
1989
+ if (this.len - this.pos > 4) {
1990
+ for (; i < 4; ++i) {
1991
+ bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
1992
+ if (this.buf[this.pos++] < 128)
1993
+ return bits;
1994
+ }
1995
+ bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0;
1996
+ bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0;
1997
+ if (this.buf[this.pos++] < 128)
1998
+ return bits;
1999
+ i = 0;
2000
+ } else {
2001
+ for (; i < 3; ++i) {
2002
+ if (this.pos >= this.len)
2003
+ throw indexOutOfRange(this);
2004
+ bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
2005
+ if (this.buf[this.pos++] < 128)
2006
+ return bits;
2007
+ }
2008
+ bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;
2009
+ return bits;
2010
+ }
2011
+ if (this.len - this.pos > 4) {
2012
+ for (; i < 5; ++i) {
2013
+ bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
2014
+ if (this.buf[this.pos++] < 128)
2015
+ return bits;
2016
+ }
2017
+ } else {
2018
+ for (; i < 5; ++i) {
2019
+ if (this.pos >= this.len)
2020
+ throw indexOutOfRange(this);
2021
+ bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
2022
+ if (this.buf[this.pos++] < 128)
2023
+ return bits;
2024
+ }
2025
+ }
2026
+ throw Error("invalid varint encoding");
2027
+ }
2028
+ Reader.prototype.bool = function read_bool() {
2029
+ return this.uint32() !== 0;
2030
+ };
2031
+ function readFixed32_end(buf, end) {
2032
+ return (buf[end - 4] | buf[end - 3] << 8 | buf[end - 2] << 16 | buf[end - 1] << 24) >>> 0;
2033
+ }
2034
+ Reader.prototype.fixed32 = function read_fixed32() {
2035
+ if (this.pos + 4 > this.len)
2036
+ throw indexOutOfRange(this, 4);
2037
+ return readFixed32_end(this.buf, this.pos += 4);
2038
+ };
2039
+ Reader.prototype.sfixed32 = function read_sfixed32() {
2040
+ if (this.pos + 4 > this.len)
2041
+ throw indexOutOfRange(this, 4);
2042
+ return readFixed32_end(this.buf, this.pos += 4) | 0;
2043
+ };
2044
+ function readFixed64() {
2045
+ if (this.pos + 8 > this.len)
2046
+ throw indexOutOfRange(this, 8);
2047
+ return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4));
2048
+ }
2049
+ Reader.prototype.float = function read_float() {
2050
+ if (this.pos + 4 > this.len)
2051
+ throw indexOutOfRange(this, 4);
2052
+ var value = util.float.readFloatLE(this.buf, this.pos);
2053
+ this.pos += 4;
2054
+ return value;
2055
+ };
2056
+ Reader.prototype.double = function read_double() {
2057
+ if (this.pos + 8 > this.len)
2058
+ throw indexOutOfRange(this, 4);
2059
+ var value = util.float.readDoubleLE(this.buf, this.pos);
2060
+ this.pos += 8;
2061
+ return value;
2062
+ };
2063
+ Reader.prototype.bytes = function read_bytes() {
2064
+ var length = this.uint32(), start = this.pos, end = this.pos + length;
2065
+ if (end > this.len)
2066
+ throw indexOutOfRange(this, length);
2067
+ this.pos += length;
2068
+ if (Array.isArray(this.buf))
2069
+ return this.buf.slice(start, end);
2070
+ return start === end ? new this.buf.constructor(0) : this._slice.call(this.buf, start, end);
2071
+ };
2072
+ Reader.prototype.string = function read_string() {
2073
+ var bytes = this.bytes();
2074
+ return utf8.read(bytes, 0, bytes.length);
2075
+ };
2076
+ Reader.prototype.skip = function skip(length) {
2077
+ if (typeof length === "number") {
2078
+ if (this.pos + length > this.len)
2079
+ throw indexOutOfRange(this, length);
2080
+ this.pos += length;
2081
+ } else {
2082
+ do {
2083
+ if (this.pos >= this.len)
2084
+ throw indexOutOfRange(this);
2085
+ } while (this.buf[this.pos++] & 128);
2086
+ }
2087
+ return this;
2088
+ };
2089
+ Reader.prototype.skipType = function(wireType) {
2090
+ switch (wireType) {
2091
+ case 0:
2092
+ this.skip();
2093
+ break;
2094
+ case 1:
2095
+ this.skip(8);
2096
+ break;
2097
+ case 2:
2098
+ this.skip(this.uint32());
2099
+ break;
2100
+ case 3:
2101
+ while ((wireType = this.uint32() & 7) !== 4) {
2102
+ this.skipType(wireType);
2103
+ }
2104
+ break;
2105
+ case 5:
2106
+ this.skip(4);
2107
+ break;
2108
+ /* istanbul ignore next */
2109
+ default:
2110
+ throw Error("invalid wire type " + wireType + " at offset " + this.pos);
2111
+ }
2112
+ return this;
2113
+ };
2114
+ Reader._configure = function(BufferReader_) {
2115
+ BufferReader = BufferReader_;
2116
+ Reader.create = create();
2117
+ BufferReader._configure();
2118
+ var fn = util.Long ? "toLong" : (
2119
+ /* istanbul ignore next */
2120
+ "toNumber"
2121
+ );
2122
+ util.merge(Reader.prototype, {
2123
+ int64: function read_int64() {
2124
+ return readLongVarint.call(this)[fn](false);
2125
+ },
2126
+ uint64: function read_uint64() {
2127
+ return readLongVarint.call(this)[fn](true);
2128
+ },
2129
+ sint64: function read_sint64() {
2130
+ return readLongVarint.call(this).zzDecode()[fn](false);
2131
+ },
2132
+ fixed64: function read_fixed64() {
2133
+ return readFixed64.call(this)[fn](true);
2134
+ },
2135
+ sfixed64: function read_sfixed64() {
2136
+ return readFixed64.call(this)[fn](false);
2137
+ }
2138
+ });
2139
+ };
2140
+ }
2141
+ });
2142
+
2143
+ // ../../node_modules/protobufjs/src/reader_buffer.js
2144
+ var require_reader_buffer = __commonJS({
2145
+ "../../node_modules/protobufjs/src/reader_buffer.js"(exports2, module2) {
2146
+ "use strict";
2147
+ module2.exports = BufferReader;
2148
+ var Reader = require_reader();
2149
+ (BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;
2150
+ var util = require_minimal();
2151
+ function BufferReader(buffer) {
2152
+ Reader.call(this, buffer);
2153
+ }
2154
+ BufferReader._configure = function() {
2155
+ if (util.Buffer)
2156
+ BufferReader.prototype._slice = util.Buffer.prototype.slice;
2157
+ };
2158
+ BufferReader.prototype.string = function read_string_buffer() {
2159
+ var len = this.uint32();
2160
+ 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));
2161
+ };
2162
+ BufferReader._configure();
2163
+ }
2164
+ });
2165
+
2166
+ // ../../node_modules/protobufjs/src/rpc/service.js
2167
+ var require_service = __commonJS({
2168
+ "../../node_modules/protobufjs/src/rpc/service.js"(exports2, module2) {
2169
+ "use strict";
2170
+ module2.exports = Service;
2171
+ var util = require_minimal();
2172
+ (Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;
2173
+ function Service(rpcImpl, requestDelimited, responseDelimited) {
2174
+ if (typeof rpcImpl !== "function")
2175
+ throw TypeError("rpcImpl must be a function");
2176
+ util.EventEmitter.call(this);
2177
+ this.rpcImpl = rpcImpl;
2178
+ this.requestDelimited = Boolean(requestDelimited);
2179
+ this.responseDelimited = Boolean(responseDelimited);
2180
+ }
2181
+ Service.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) {
2182
+ if (!request)
2183
+ throw TypeError("request must be specified");
2184
+ var self2 = this;
2185
+ if (!callback)
2186
+ return util.asPromise(rpcCall, self2, method, requestCtor, responseCtor, request);
2187
+ if (!self2.rpcImpl) {
2188
+ setTimeout(function() {
2189
+ callback(Error("already ended"));
2190
+ }, 0);
2191
+ return void 0;
2192
+ }
2193
+ try {
2194
+ return self2.rpcImpl(
2195
+ method,
2196
+ requestCtor[self2.requestDelimited ? "encodeDelimited" : "encode"](request).finish(),
2197
+ function rpcCallback(err, response) {
2198
+ if (err) {
2199
+ self2.emit("error", err, method);
2200
+ return callback(err);
2201
+ }
2202
+ if (response === null) {
2203
+ self2.end(
2204
+ /* endedByRPC */
2205
+ true
2206
+ );
2207
+ return void 0;
2208
+ }
2209
+ if (!(response instanceof responseCtor)) {
2210
+ try {
2211
+ response = responseCtor[self2.responseDelimited ? "decodeDelimited" : "decode"](response);
2212
+ } catch (err2) {
2213
+ self2.emit("error", err2, method);
2214
+ return callback(err2);
2215
+ }
2216
+ }
2217
+ self2.emit("data", response, method);
2218
+ return callback(null, response);
2219
+ }
2220
+ );
2221
+ } catch (err) {
2222
+ self2.emit("error", err, method);
2223
+ setTimeout(function() {
2224
+ callback(err);
2225
+ }, 0);
2226
+ return void 0;
2227
+ }
2228
+ };
2229
+ Service.prototype.end = function end(endedByRPC) {
2230
+ if (this.rpcImpl) {
2231
+ if (!endedByRPC)
2232
+ this.rpcImpl(null, null, null);
2233
+ this.rpcImpl = null;
2234
+ this.emit("end").off();
2235
+ }
2236
+ return this;
2237
+ };
2238
+ }
2239
+ });
2240
+
2241
+ // ../../node_modules/protobufjs/src/rpc.js
2242
+ var require_rpc = __commonJS({
2243
+ "../../node_modules/protobufjs/src/rpc.js"(exports2) {
2244
+ "use strict";
2245
+ var rpc = exports2;
2246
+ rpc.Service = require_service();
2247
+ }
2248
+ });
2249
+
2250
+ // ../../node_modules/protobufjs/src/roots.js
2251
+ var require_roots = __commonJS({
2252
+ "../../node_modules/protobufjs/src/roots.js"(exports2, module2) {
2253
+ "use strict";
2254
+ module2.exports = {};
2255
+ }
2256
+ });
2257
+
2258
+ // ../../node_modules/protobufjs/src/index-minimal.js
2259
+ var require_index_minimal = __commonJS({
2260
+ "../../node_modules/protobufjs/src/index-minimal.js"(exports2) {
2261
+ "use strict";
2262
+ var protobuf = exports2;
2263
+ protobuf.build = "minimal";
2264
+ protobuf.Writer = require_writer();
2265
+ protobuf.BufferWriter = require_writer_buffer();
2266
+ protobuf.Reader = require_reader();
2267
+ protobuf.BufferReader = require_reader_buffer();
2268
+ protobuf.util = require_minimal();
2269
+ protobuf.rpc = require_rpc();
2270
+ protobuf.roots = require_roots();
2271
+ protobuf.configure = configure;
2272
+ function configure() {
2273
+ protobuf.util._configure();
2274
+ protobuf.Writer._configure(protobuf.BufferWriter);
2275
+ protobuf.Reader._configure(protobuf.BufferReader);
2276
+ }
2277
+ configure();
2278
+ }
2279
+ });
2280
+
2281
+ // ../../node_modules/protobufjs/minimal.js
2282
+ var require_minimal2 = __commonJS({
2283
+ "../../node_modules/protobufjs/minimal.js"(exports2, module2) {
2284
+ "use strict";
2285
+ module2.exports = require_index_minimal();
2286
+ }
2287
+ });
2288
+
54
2289
  // index.ts
55
2290
  var index_exports = {};
56
2291
  __export(index_exports, {
@@ -699,36 +2934,684 @@ function buildFetchOptions(method, options, bodyJson) {
699
2934
  if (bodyJson) {
700
2935
  fetchOptions.body = bodyJson;
701
2936
  }
702
- return fetchOptions;
2937
+ return fetchOptions;
2938
+ }
2939
+ function b64EncodeUnicode(str) {
2940
+ return encode(encodeURIComponent(str).replace(
2941
+ /%([0-9A-F]{2})/g,
2942
+ function toSolidBytes(_match, p1) {
2943
+ return String.fromCharCode(Number("0x" + p1));
2944
+ }
2945
+ ));
2946
+ }
2947
+ function b64DecodeUnicode(str) {
2948
+ return decodeURIComponent(decode2(str).split("").map(function(c) {
2949
+ return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
2950
+ }).join(""));
2951
+ }
2952
+ function safeJSONParse(jsonStr) {
2953
+ try {
2954
+ return JSON.parse(jsonStr);
2955
+ } catch (error) {
2956
+ if (jsonStr !== "") {
2957
+ const fixedJsonStr = jsonStr.replace(/\n/g, "\\n");
2958
+ try {
2959
+ return JSON.parse(fixedJsonStr);
2960
+ } catch (e) {
2961
+ console.error("Error parsing JSON:", jsonStr, error);
2962
+ }
2963
+ }
2964
+ return { t: jsonStr };
2965
+ }
2966
+ }
2967
+
2968
+ // api/api.ts
2969
+ var import_long3 = __toESM(require_long());
2970
+ var import_minimal4 = __toESM(require_minimal2());
2971
+
2972
+ // google/protobuf/struct.ts
2973
+ var import_minimal = __toESM(require_minimal2());
2974
+
2975
+ // google/protobuf/timestamp.ts
2976
+ var import_long = __toESM(require_long());
2977
+ var import_minimal2 = __toESM(require_minimal2());
2978
+ function createBaseTimestamp() {
2979
+ return { seconds: 0, nanos: 0 };
2980
+ }
2981
+ var Timestamp = {
2982
+ encode(message, writer = import_minimal2.default.Writer.create()) {
2983
+ if (message.seconds !== 0) {
2984
+ writer.uint32(8).int64(message.seconds);
2985
+ }
2986
+ if (message.nanos !== 0) {
2987
+ writer.uint32(16).int32(message.nanos);
2988
+ }
2989
+ return writer;
2990
+ },
2991
+ decode(input, length) {
2992
+ const reader = input instanceof import_minimal2.default.Reader ? input : import_minimal2.default.Reader.create(input);
2993
+ let end = length === void 0 ? reader.len : reader.pos + length;
2994
+ const message = createBaseTimestamp();
2995
+ while (reader.pos < end) {
2996
+ const tag = reader.uint32();
2997
+ switch (tag >>> 3) {
2998
+ case 1:
2999
+ if (tag !== 8) {
3000
+ break;
3001
+ }
3002
+ message.seconds = longToNumber(reader.int64());
3003
+ continue;
3004
+ case 2:
3005
+ if (tag !== 16) {
3006
+ break;
3007
+ }
3008
+ message.nanos = reader.int32();
3009
+ continue;
3010
+ }
3011
+ if ((tag & 7) === 4 || tag === 0) {
3012
+ break;
3013
+ }
3014
+ reader.skipType(tag & 7);
3015
+ }
3016
+ return message;
3017
+ },
3018
+ fromJSON(object) {
3019
+ return {
3020
+ seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
3021
+ nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0
3022
+ };
3023
+ },
3024
+ toJSON(message) {
3025
+ const obj = {};
3026
+ if (message.seconds !== 0) {
3027
+ obj.seconds = Math.round(message.seconds);
3028
+ }
3029
+ if (message.nanos !== 0) {
3030
+ obj.nanos = Math.round(message.nanos);
3031
+ }
3032
+ return obj;
3033
+ },
3034
+ create(base) {
3035
+ return Timestamp.fromPartial(base != null ? base : {});
3036
+ },
3037
+ fromPartial(object) {
3038
+ var _a, _b;
3039
+ const message = createBaseTimestamp();
3040
+ message.seconds = (_a = object.seconds) != null ? _a : 0;
3041
+ message.nanos = (_b = object.nanos) != null ? _b : 0;
3042
+ return message;
3043
+ }
3044
+ };
3045
+ function longToNumber(long) {
3046
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
3047
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
3048
+ }
3049
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
3050
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
3051
+ }
3052
+ return long.toNumber();
3053
+ }
3054
+ if (import_minimal2.default.util.Long !== import_long.default) {
3055
+ import_minimal2.default.util.Long = import_long.default;
3056
+ import_minimal2.default.configure();
3057
+ }
3058
+ function isSet(value) {
3059
+ return value !== null && value !== void 0;
3060
+ }
3061
+
3062
+ // google/protobuf/wrappers.ts
3063
+ var import_long2 = __toESM(require_long());
3064
+ var import_minimal3 = __toESM(require_minimal2());
3065
+ if (import_minimal3.default.util.Long !== import_long2.default) {
3066
+ import_minimal3.default.util.Long = import_long2.default;
3067
+ import_minimal3.default.configure();
3068
+ }
3069
+
3070
+ // api/api.ts
3071
+ function createBaseAccount() {
3072
+ return {
3073
+ user: void 0,
3074
+ email: "",
3075
+ qr_code: "",
3076
+ verify_time: void 0,
3077
+ disable_time: void 0,
3078
+ logo: "",
3079
+ splash_screen: "",
3080
+ encrypt_private_key: "",
3081
+ password_setted: false
3082
+ };
3083
+ }
3084
+ var Account = {
3085
+ encode(message, writer = import_minimal4.default.Writer.create()) {
3086
+ if (message.user !== void 0) {
3087
+ User.encode(message.user, writer.uint32(10).fork()).ldelim();
3088
+ }
3089
+ if (message.email !== void 0 && message.email !== "") {
3090
+ writer.uint32(18).string(message.email);
3091
+ }
3092
+ if (message.qr_code !== void 0 && message.qr_code !== "") {
3093
+ writer.uint32(26).string(message.qr_code);
3094
+ }
3095
+ if (message.verify_time !== void 0) {
3096
+ Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(34).fork()).ldelim();
3097
+ }
3098
+ if (message.disable_time !== void 0) {
3099
+ Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(42).fork()).ldelim();
3100
+ }
3101
+ if (message.logo !== void 0 && message.logo !== "") {
3102
+ writer.uint32(50).string(message.logo);
3103
+ }
3104
+ if (message.splash_screen !== void 0 && message.splash_screen !== "") {
3105
+ writer.uint32(58).string(message.splash_screen);
3106
+ }
3107
+ if (message.encrypt_private_key !== void 0 && message.encrypt_private_key !== "") {
3108
+ writer.uint32(66).string(message.encrypt_private_key);
3109
+ }
3110
+ if (message.password_setted !== void 0 && message.password_setted !== false) {
3111
+ writer.uint32(72).bool(message.password_setted);
3112
+ }
3113
+ return writer;
3114
+ },
3115
+ decode(input, length) {
3116
+ const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
3117
+ let end = length === void 0 ? reader.len : reader.pos + length;
3118
+ const message = createBaseAccount();
3119
+ while (reader.pos < end) {
3120
+ const tag = reader.uint32();
3121
+ switch (tag >>> 3) {
3122
+ case 1:
3123
+ if (tag !== 10) {
3124
+ break;
3125
+ }
3126
+ message.user = User.decode(reader, reader.uint32());
3127
+ continue;
3128
+ case 2:
3129
+ if (tag !== 18) {
3130
+ break;
3131
+ }
3132
+ message.email = reader.string();
3133
+ continue;
3134
+ case 3:
3135
+ if (tag !== 26) {
3136
+ break;
3137
+ }
3138
+ message.qr_code = reader.string();
3139
+ continue;
3140
+ case 4:
3141
+ if (tag !== 34) {
3142
+ break;
3143
+ }
3144
+ message.verify_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3145
+ continue;
3146
+ case 5:
3147
+ if (tag !== 42) {
3148
+ break;
3149
+ }
3150
+ message.disable_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3151
+ continue;
3152
+ case 6:
3153
+ if (tag !== 50) {
3154
+ break;
3155
+ }
3156
+ message.logo = reader.string();
3157
+ continue;
3158
+ case 7:
3159
+ if (tag !== 58) {
3160
+ break;
3161
+ }
3162
+ message.splash_screen = reader.string();
3163
+ continue;
3164
+ case 8:
3165
+ if (tag !== 66) {
3166
+ break;
3167
+ }
3168
+ message.encrypt_private_key = reader.string();
3169
+ continue;
3170
+ case 9:
3171
+ if (tag !== 72) {
3172
+ break;
3173
+ }
3174
+ message.password_setted = reader.bool();
3175
+ continue;
3176
+ }
3177
+ if ((tag & 7) === 4 || tag === 0) {
3178
+ break;
3179
+ }
3180
+ reader.skipType(tag & 7);
3181
+ }
3182
+ return message;
3183
+ },
3184
+ fromJSON(object) {
3185
+ return {
3186
+ user: isSet2(object.user) ? User.fromJSON(object.user) : void 0,
3187
+ email: isSet2(object.email) ? globalThis.String(object.email) : "",
3188
+ qr_code: isSet2(object.qr_code) ? globalThis.String(object.qr_code) : "",
3189
+ verify_time: isSet2(object.verify_time) ? fromJsonTimestamp(object.verify_time) : void 0,
3190
+ disable_time: isSet2(object.disable_time) ? fromJsonTimestamp(object.disable_time) : void 0,
3191
+ logo: isSet2(object.logo) ? globalThis.String(object.logo) : "",
3192
+ splash_screen: isSet2(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
3193
+ encrypt_private_key: isSet2(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
3194
+ password_setted: isSet2(object.password_setted) ? globalThis.Boolean(object.password_setted) : false
3195
+ };
3196
+ },
3197
+ toJSON(message) {
3198
+ const obj = {};
3199
+ if (message.user !== void 0) {
3200
+ obj.user = User.toJSON(message.user);
3201
+ }
3202
+ if (message.email !== void 0 && message.email !== "") {
3203
+ obj.email = message.email;
3204
+ }
3205
+ if (message.qr_code !== void 0 && message.qr_code !== "") {
3206
+ obj.qr_code = message.qr_code;
3207
+ }
3208
+ if (message.verify_time !== void 0) {
3209
+ obj.verify_time = message.verify_time.toISOString();
3210
+ }
3211
+ if (message.disable_time !== void 0) {
3212
+ obj.disable_time = message.disable_time.toISOString();
3213
+ }
3214
+ if (message.logo !== void 0 && message.logo !== "") {
3215
+ obj.logo = message.logo;
3216
+ }
3217
+ if (message.splash_screen !== void 0 && message.splash_screen !== "") {
3218
+ obj.splash_screen = message.splash_screen;
3219
+ }
3220
+ if (message.encrypt_private_key !== void 0 && message.encrypt_private_key !== "") {
3221
+ obj.encrypt_private_key = message.encrypt_private_key;
3222
+ }
3223
+ if (message.password_setted !== void 0 && message.password_setted !== false) {
3224
+ obj.password_setted = message.password_setted;
3225
+ }
3226
+ return obj;
3227
+ },
3228
+ create(base) {
3229
+ return Account.fromPartial(base != null ? base : {});
3230
+ },
3231
+ fromPartial(object) {
3232
+ var _a, _b, _c, _d, _e, _f, _g, _h;
3233
+ const message = createBaseAccount();
3234
+ message.user = object.user !== void 0 && object.user !== null ? User.fromPartial(object.user) : void 0;
3235
+ message.email = (_a = object.email) != null ? _a : "";
3236
+ message.qr_code = (_b = object.qr_code) != null ? _b : "";
3237
+ message.verify_time = (_c = object.verify_time) != null ? _c : void 0;
3238
+ message.disable_time = (_d = object.disable_time) != null ? _d : void 0;
3239
+ message.logo = (_e = object.logo) != null ? _e : "";
3240
+ message.splash_screen = (_f = object.splash_screen) != null ? _f : "";
3241
+ message.encrypt_private_key = (_g = object.encrypt_private_key) != null ? _g : "";
3242
+ message.password_setted = (_h = object.password_setted) != null ? _h : false;
3243
+ return message;
3244
+ }
3245
+ };
3246
+ function createBaseUser() {
3247
+ return {
3248
+ id: "",
3249
+ username: "",
3250
+ display_name: "",
3251
+ avatar_url: "",
3252
+ lang_tag: "",
3253
+ location: "",
3254
+ timezone: "",
3255
+ user_status: "",
3256
+ online: false,
3257
+ phone_number: "",
3258
+ edge_count: 0,
3259
+ create_time: void 0,
3260
+ update_time: void 0,
3261
+ about_me: "",
3262
+ join_time: void 0,
3263
+ is_mobile: false,
3264
+ dob: void 0,
3265
+ mezon_id: "",
3266
+ list_nick_names: [],
3267
+ status: ""
3268
+ };
703
3269
  }
704
- function b64EncodeUnicode(str) {
705
- return encode(encodeURIComponent(str).replace(
706
- /%([0-9A-F]{2})/g,
707
- function toSolidBytes(_match, p1) {
708
- return String.fromCharCode(Number("0x" + p1));
3270
+ var User = {
3271
+ encode(message, writer = import_minimal4.default.Writer.create()) {
3272
+ if (message.id !== void 0 && message.id !== "") {
3273
+ writer.uint32(10).string(message.id);
709
3274
  }
710
- ));
711
- }
712
- function b64DecodeUnicode(str) {
713
- return decodeURIComponent(decode2(str).split("").map(function(c) {
714
- return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
715
- }).join(""));
716
- }
717
- function safeJSONParse(jsonStr) {
718
- try {
719
- return JSON.parse(jsonStr);
720
- } catch (error) {
721
- if (jsonStr !== "") {
722
- const fixedJsonStr = jsonStr.replace(/\n/g, "\\n");
723
- try {
724
- return JSON.parse(fixedJsonStr);
725
- } catch (e) {
726
- console.error("Error parsing JSON:", jsonStr, error);
3275
+ if (message.username !== void 0 && message.username !== "") {
3276
+ writer.uint32(18).string(message.username);
3277
+ }
3278
+ if (message.display_name !== void 0 && message.display_name !== "") {
3279
+ writer.uint32(26).string(message.display_name);
3280
+ }
3281
+ if (message.avatar_url !== void 0 && message.avatar_url !== "") {
3282
+ writer.uint32(34).string(message.avatar_url);
3283
+ }
3284
+ if (message.lang_tag !== void 0 && message.lang_tag !== "") {
3285
+ writer.uint32(42).string(message.lang_tag);
3286
+ }
3287
+ if (message.location !== void 0 && message.location !== "") {
3288
+ writer.uint32(50).string(message.location);
3289
+ }
3290
+ if (message.timezone !== void 0 && message.timezone !== "") {
3291
+ writer.uint32(58).string(message.timezone);
3292
+ }
3293
+ if (message.user_status !== void 0 && message.user_status !== "") {
3294
+ writer.uint32(66).string(message.user_status);
3295
+ }
3296
+ if (message.online !== void 0 && message.online !== false) {
3297
+ writer.uint32(72).bool(message.online);
3298
+ }
3299
+ if (message.phone_number !== void 0 && message.phone_number !== "") {
3300
+ writer.uint32(82).string(message.phone_number);
3301
+ }
3302
+ if (message.edge_count !== void 0 && message.edge_count !== 0) {
3303
+ writer.uint32(88).int32(message.edge_count);
3304
+ }
3305
+ if (message.create_time !== void 0) {
3306
+ Timestamp.encode(toTimestamp(message.create_time), writer.uint32(98).fork()).ldelim();
3307
+ }
3308
+ if (message.update_time !== void 0) {
3309
+ Timestamp.encode(toTimestamp(message.update_time), writer.uint32(106).fork()).ldelim();
3310
+ }
3311
+ if (message.about_me !== void 0 && message.about_me !== "") {
3312
+ writer.uint32(114).string(message.about_me);
3313
+ }
3314
+ if (message.join_time !== void 0) {
3315
+ Timestamp.encode(toTimestamp(message.join_time), writer.uint32(122).fork()).ldelim();
3316
+ }
3317
+ if (message.is_mobile !== void 0 && message.is_mobile !== false) {
3318
+ writer.uint32(128).bool(message.is_mobile);
3319
+ }
3320
+ if (message.dob !== void 0) {
3321
+ Timestamp.encode(toTimestamp(message.dob), writer.uint32(138).fork()).ldelim();
3322
+ }
3323
+ if (message.mezon_id !== void 0 && message.mezon_id !== "") {
3324
+ writer.uint32(146).string(message.mezon_id);
3325
+ }
3326
+ if (message.list_nick_names !== void 0 && message.list_nick_names.length !== 0) {
3327
+ for (const v of message.list_nick_names) {
3328
+ writer.uint32(154).string(v);
727
3329
  }
728
3330
  }
729
- return { t: jsonStr };
3331
+ if (message.status !== void 0 && message.status !== "") {
3332
+ writer.uint32(162).string(message.status);
3333
+ }
3334
+ return writer;
3335
+ },
3336
+ decode(input, length) {
3337
+ const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
3338
+ let end = length === void 0 ? reader.len : reader.pos + length;
3339
+ const message = createBaseUser();
3340
+ while (reader.pos < end) {
3341
+ const tag = reader.uint32();
3342
+ switch (tag >>> 3) {
3343
+ case 1:
3344
+ if (tag !== 10) {
3345
+ break;
3346
+ }
3347
+ message.id = reader.string();
3348
+ continue;
3349
+ case 2:
3350
+ if (tag !== 18) {
3351
+ break;
3352
+ }
3353
+ message.username = reader.string();
3354
+ continue;
3355
+ case 3:
3356
+ if (tag !== 26) {
3357
+ break;
3358
+ }
3359
+ message.display_name = reader.string();
3360
+ continue;
3361
+ case 4:
3362
+ if (tag !== 34) {
3363
+ break;
3364
+ }
3365
+ message.avatar_url = reader.string();
3366
+ continue;
3367
+ case 5:
3368
+ if (tag !== 42) {
3369
+ break;
3370
+ }
3371
+ message.lang_tag = reader.string();
3372
+ continue;
3373
+ case 6:
3374
+ if (tag !== 50) {
3375
+ break;
3376
+ }
3377
+ message.location = reader.string();
3378
+ continue;
3379
+ case 7:
3380
+ if (tag !== 58) {
3381
+ break;
3382
+ }
3383
+ message.timezone = reader.string();
3384
+ continue;
3385
+ case 8:
3386
+ if (tag !== 66) {
3387
+ break;
3388
+ }
3389
+ message.user_status = reader.string();
3390
+ continue;
3391
+ case 9:
3392
+ if (tag !== 72) {
3393
+ break;
3394
+ }
3395
+ message.online = reader.bool();
3396
+ continue;
3397
+ case 10:
3398
+ if (tag !== 82) {
3399
+ break;
3400
+ }
3401
+ message.phone_number = reader.string();
3402
+ continue;
3403
+ case 11:
3404
+ if (tag !== 88) {
3405
+ break;
3406
+ }
3407
+ message.edge_count = reader.int32();
3408
+ continue;
3409
+ case 12:
3410
+ if (tag !== 98) {
3411
+ break;
3412
+ }
3413
+ message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3414
+ continue;
3415
+ case 13:
3416
+ if (tag !== 106) {
3417
+ break;
3418
+ }
3419
+ message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3420
+ continue;
3421
+ case 14:
3422
+ if (tag !== 114) {
3423
+ break;
3424
+ }
3425
+ message.about_me = reader.string();
3426
+ continue;
3427
+ case 15:
3428
+ if (tag !== 122) {
3429
+ break;
3430
+ }
3431
+ message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3432
+ continue;
3433
+ case 16:
3434
+ if (tag !== 128) {
3435
+ break;
3436
+ }
3437
+ message.is_mobile = reader.bool();
3438
+ continue;
3439
+ case 17:
3440
+ if (tag !== 138) {
3441
+ break;
3442
+ }
3443
+ message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
3444
+ continue;
3445
+ case 18:
3446
+ if (tag !== 146) {
3447
+ break;
3448
+ }
3449
+ message.mezon_id = reader.string();
3450
+ continue;
3451
+ case 19:
3452
+ if (tag !== 154) {
3453
+ break;
3454
+ }
3455
+ message.list_nick_names.push(reader.string());
3456
+ continue;
3457
+ case 20:
3458
+ if (tag !== 162) {
3459
+ break;
3460
+ }
3461
+ message.status = reader.string();
3462
+ continue;
3463
+ }
3464
+ if ((tag & 7) === 4 || tag === 0) {
3465
+ break;
3466
+ }
3467
+ reader.skipType(tag & 7);
3468
+ }
3469
+ return message;
3470
+ },
3471
+ fromJSON(object) {
3472
+ return {
3473
+ id: isSet2(object.id) ? globalThis.String(object.id) : "",
3474
+ username: isSet2(object.username) ? globalThis.String(object.username) : "",
3475
+ display_name: isSet2(object.display_name) ? globalThis.String(object.display_name) : "",
3476
+ avatar_url: isSet2(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
3477
+ lang_tag: isSet2(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
3478
+ location: isSet2(object.location) ? globalThis.String(object.location) : "",
3479
+ timezone: isSet2(object.timezone) ? globalThis.String(object.timezone) : "",
3480
+ user_status: isSet2(object.user_status) ? globalThis.String(object.user_status) : "",
3481
+ online: isSet2(object.online) ? globalThis.Boolean(object.online) : false,
3482
+ phone_number: isSet2(object.phone_number) ? globalThis.String(object.phone_number) : "",
3483
+ edge_count: isSet2(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
3484
+ create_time: isSet2(object.create_time) ? fromJsonTimestamp(object.create_time) : void 0,
3485
+ update_time: isSet2(object.update_time) ? fromJsonTimestamp(object.update_time) : void 0,
3486
+ about_me: isSet2(object.about_me) ? globalThis.String(object.about_me) : "",
3487
+ join_time: isSet2(object.join_time) ? fromJsonTimestamp(object.join_time) : void 0,
3488
+ is_mobile: isSet2(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
3489
+ dob: isSet2(object.dob) ? fromJsonTimestamp(object.dob) : void 0,
3490
+ mezon_id: isSet2(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
3491
+ list_nick_names: globalThis.Array.isArray(object == null ? void 0 : object.list_nick_names) ? object.list_nick_names.map((e) => globalThis.String(e)) : [],
3492
+ status: isSet2(object.status) ? globalThis.String(object.status) : ""
3493
+ };
3494
+ },
3495
+ toJSON(message) {
3496
+ var _a;
3497
+ const obj = {};
3498
+ if (message.id !== void 0 && message.id !== "") {
3499
+ obj.id = message.id;
3500
+ }
3501
+ if (message.username !== void 0 && message.username !== "") {
3502
+ obj.username = message.username;
3503
+ }
3504
+ if (message.display_name !== void 0 && message.display_name !== "") {
3505
+ obj.display_name = message.display_name;
3506
+ }
3507
+ if (message.avatar_url !== void 0 && message.avatar_url !== "") {
3508
+ obj.avatar_url = message.avatar_url;
3509
+ }
3510
+ if (message.lang_tag !== void 0 && message.lang_tag !== "") {
3511
+ obj.lang_tag = message.lang_tag;
3512
+ }
3513
+ if (message.location !== void 0 && message.location !== "") {
3514
+ obj.location = message.location;
3515
+ }
3516
+ if (message.timezone !== void 0 && message.timezone !== "") {
3517
+ obj.timezone = message.timezone;
3518
+ }
3519
+ if (message.user_status !== void 0 && message.user_status !== "") {
3520
+ obj.user_status = message.user_status;
3521
+ }
3522
+ if (message.online !== void 0 && message.online !== false) {
3523
+ obj.online = message.online;
3524
+ }
3525
+ if (message.phone_number !== void 0 && message.phone_number !== "") {
3526
+ obj.phone_number = message.phone_number;
3527
+ }
3528
+ if (message.edge_count !== void 0 && message.edge_count !== 0) {
3529
+ obj.edge_count = Math.round(message.edge_count);
3530
+ }
3531
+ if (message.create_time !== void 0) {
3532
+ obj.create_time = message.create_time.toISOString();
3533
+ }
3534
+ if (message.update_time !== void 0) {
3535
+ obj.update_time = message.update_time.toISOString();
3536
+ }
3537
+ if (message.about_me !== void 0 && message.about_me !== "") {
3538
+ obj.about_me = message.about_me;
3539
+ }
3540
+ if (message.join_time !== void 0) {
3541
+ obj.join_time = message.join_time.toISOString();
3542
+ }
3543
+ if (message.is_mobile !== void 0 && message.is_mobile !== false) {
3544
+ obj.is_mobile = message.is_mobile;
3545
+ }
3546
+ if (message.dob !== void 0) {
3547
+ obj.dob = message.dob.toISOString();
3548
+ }
3549
+ if (message.mezon_id !== void 0 && message.mezon_id !== "") {
3550
+ obj.mezon_id = message.mezon_id;
3551
+ }
3552
+ if ((_a = message.list_nick_names) == null ? void 0 : _a.length) {
3553
+ obj.list_nick_names = message.list_nick_names;
3554
+ }
3555
+ if (message.status !== void 0 && message.status !== "") {
3556
+ obj.status = message.status;
3557
+ }
3558
+ return obj;
3559
+ },
3560
+ create(base) {
3561
+ return User.fromPartial(base != null ? base : {});
3562
+ },
3563
+ fromPartial(object) {
3564
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
3565
+ const message = createBaseUser();
3566
+ message.id = (_a = object.id) != null ? _a : "";
3567
+ message.username = (_b = object.username) != null ? _b : "";
3568
+ message.display_name = (_c = object.display_name) != null ? _c : "";
3569
+ message.avatar_url = (_d = object.avatar_url) != null ? _d : "";
3570
+ message.lang_tag = (_e = object.lang_tag) != null ? _e : "";
3571
+ message.location = (_f = object.location) != null ? _f : "";
3572
+ message.timezone = (_g = object.timezone) != null ? _g : "";
3573
+ message.user_status = (_h = object.user_status) != null ? _h : "";
3574
+ message.online = (_i = object.online) != null ? _i : false;
3575
+ message.phone_number = (_j = object.phone_number) != null ? _j : "";
3576
+ message.edge_count = (_k = object.edge_count) != null ? _k : 0;
3577
+ message.create_time = (_l = object.create_time) != null ? _l : void 0;
3578
+ message.update_time = (_m = object.update_time) != null ? _m : void 0;
3579
+ message.about_me = (_n = object.about_me) != null ? _n : "";
3580
+ message.join_time = (_o = object.join_time) != null ? _o : void 0;
3581
+ message.is_mobile = (_p = object.is_mobile) != null ? _p : false;
3582
+ message.dob = (_q = object.dob) != null ? _q : void 0;
3583
+ message.mezon_id = (_r = object.mezon_id) != null ? _r : "";
3584
+ message.list_nick_names = ((_s = object.list_nick_names) == null ? void 0 : _s.map((e) => e)) || [];
3585
+ message.status = (_t = object.status) != null ? _t : "";
3586
+ return message;
3587
+ }
3588
+ };
3589
+ function toTimestamp(date) {
3590
+ const seconds = Math.trunc(date.getTime() / 1e3);
3591
+ const nanos = date.getTime() % 1e3 * 1e6;
3592
+ return { seconds, nanos };
3593
+ }
3594
+ function fromTimestamp(t) {
3595
+ let millis = (t.seconds || 0) * 1e3;
3596
+ millis += (t.nanos || 0) / 1e6;
3597
+ return new globalThis.Date(millis);
3598
+ }
3599
+ function fromJsonTimestamp(o) {
3600
+ if (o instanceof globalThis.Date) {
3601
+ return o;
3602
+ } else if (typeof o === "string") {
3603
+ return new globalThis.Date(o);
3604
+ } else {
3605
+ return fromTimestamp(Timestamp.fromJSON(o));
730
3606
  }
731
3607
  }
3608
+ if (import_minimal4.default.util.Long !== import_long3.default) {
3609
+ import_minimal4.default.util.Long = import_long3.default;
3610
+ import_minimal4.default.configure();
3611
+ }
3612
+ function isSet2(value) {
3613
+ return value !== null && value !== void 0;
3614
+ }
732
3615
 
733
3616
  // api.gen.ts
734
3617
  var MezonApi = class {
@@ -800,18 +3683,20 @@ var MezonApi = class {
800
3683
  if (bearerToken) {
801
3684
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
802
3685
  }
3686
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
803
3687
  return Promise.race([
804
- fetch(fullUrl, fetchOptions).then((response) => {
3688
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
805
3689
  if (response.status == 204) {
806
- return response;
3690
+ return {};
807
3691
  } else if (response.status >= 200 && response.status < 300) {
808
- return response.json();
3692
+ const buffer = yield response.arrayBuffer();
3693
+ return Account.decode(new Uint8Array(buffer));
809
3694
  } else {
810
3695
  throw response;
811
3696
  }
812
- }),
3697
+ })),
813
3698
  new Promise(
814
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
3699
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
815
3700
  )
816
3701
  ]);
817
3702
  }
@@ -1880,18 +4765,20 @@ var MezonApi = class {
1880
4765
  if (bearerToken) {
1881
4766
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
1882
4767
  }
4768
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
1883
4769
  return Promise.race([
1884
- fetch(fullUrl, fetchOptions).then((response) => {
4770
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
1885
4771
  if (response.status == 204) {
1886
- return response;
4772
+ return {};
1887
4773
  } else if (response.status >= 200 && response.status < 300) {
1888
- return response.json();
4774
+ const buffer = yield response.arrayBuffer();
4775
+ return Account.decode(new Uint8Array(buffer));
1889
4776
  } else {
1890
4777
  throw response;
1891
4778
  }
1892
- }),
4779
+ })),
1893
4780
  new Promise(
1894
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
4781
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
1895
4782
  )
1896
4783
  ]);
1897
4784
  }
@@ -2154,18 +5041,20 @@ var MezonApi = class {
2154
5041
  if (bearerToken) {
2155
5042
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2156
5043
  }
5044
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
2157
5045
  return Promise.race([
2158
- fetch(fullUrl, fetchOptions).then((response) => {
5046
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
2159
5047
  if (response.status == 204) {
2160
- return response;
5048
+ return {};
2161
5049
  } else if (response.status >= 200 && response.status < 300) {
2162
- return response.json();
5050
+ const buffer = yield response.arrayBuffer();
5051
+ return Account.decode(new Uint8Array(buffer));
2163
5052
  } else {
2164
5053
  throw response;
2165
5054
  }
2166
- }),
5055
+ })),
2167
5056
  new Promise(
2168
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
5057
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
2169
5058
  )
2170
5059
  ]);
2171
5060
  }
@@ -2212,18 +5101,20 @@ var MezonApi = class {
2212
5101
  if (bearerToken) {
2213
5102
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2214
5103
  }
5104
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
2215
5105
  return Promise.race([
2216
- fetch(fullUrl, fetchOptions).then((response) => {
5106
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
2217
5107
  if (response.status == 204) {
2218
- return response;
5108
+ return {};
2219
5109
  } else if (response.status >= 200 && response.status < 300) {
2220
- return response.json();
5110
+ const buffer = yield response.arrayBuffer();
5111
+ return Account.decode(new Uint8Array(buffer));
2221
5112
  } else {
2222
5113
  throw response;
2223
5114
  }
2224
- }),
5115
+ })),
2225
5116
  new Promise(
2226
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
5117
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
2227
5118
  )
2228
5119
  ]);
2229
5120
  }
@@ -2315,18 +5206,20 @@ var MezonApi = class {
2315
5206
  if (bearerToken) {
2316
5207
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2317
5208
  }
5209
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
2318
5210
  return Promise.race([
2319
- fetch(fullUrl, fetchOptions).then((response) => {
5211
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
2320
5212
  if (response.status == 204) {
2321
- return response;
5213
+ return {};
2322
5214
  } else if (response.status >= 200 && response.status < 300) {
2323
- return response.json();
5215
+ const buffer = yield response.arrayBuffer();
5216
+ return Account.decode(new Uint8Array(buffer));
2324
5217
  } else {
2325
5218
  throw response;
2326
5219
  }
2327
- }),
5220
+ })),
2328
5221
  new Promise(
2329
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
5222
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
2330
5223
  )
2331
5224
  ]);
2332
5225
  }
@@ -2346,18 +5239,20 @@ var MezonApi = class {
2346
5239
  if (bearerToken) {
2347
5240
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2348
5241
  }
5242
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
2349
5243
  return Promise.race([
2350
- fetch(fullUrl, fetchOptions).then((response) => {
5244
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
2351
5245
  if (response.status == 204) {
2352
- return response;
5246
+ return {};
2353
5247
  } else if (response.status >= 200 && response.status < 300) {
2354
- return response.json();
5248
+ const buffer = yield response.arrayBuffer();
5249
+ return Account.decode(new Uint8Array(buffer));
2355
5250
  } else {
2356
5251
  throw response;
2357
5252
  }
2358
- }),
5253
+ })),
2359
5254
  new Promise(
2360
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
5255
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
2361
5256
  )
2362
5257
  ]);
2363
5258
  }
@@ -2374,18 +5269,20 @@ var MezonApi = class {
2374
5269
  if (bearerToken) {
2375
5270
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2376
5271
  }
5272
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
2377
5273
  return Promise.race([
2378
- fetch(fullUrl, fetchOptions).then((response) => {
5274
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
2379
5275
  if (response.status == 204) {
2380
- return response;
5276
+ return {};
2381
5277
  } else if (response.status >= 200 && response.status < 300) {
2382
- return response.json();
5278
+ const buffer = yield response.arrayBuffer();
5279
+ return Account.decode(new Uint8Array(buffer));
2383
5280
  } else {
2384
5281
  throw response;
2385
5282
  }
2386
- }),
5283
+ })),
2387
5284
  new Promise(
2388
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
5285
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
2389
5286
  )
2390
5287
  ]);
2391
5288
  }
@@ -2402,18 +5299,20 @@ var MezonApi = class {
2402
5299
  if (bearerToken) {
2403
5300
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2404
5301
  }
5302
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
2405
5303
  return Promise.race([
2406
- fetch(fullUrl, fetchOptions).then((response) => {
5304
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
2407
5305
  if (response.status == 204) {
2408
- return response;
5306
+ return {};
2409
5307
  } else if (response.status >= 200 && response.status < 300) {
2410
- return response.json();
5308
+ const buffer = yield response.arrayBuffer();
5309
+ return Account.decode(new Uint8Array(buffer));
2411
5310
  } else {
2412
5311
  throw response;
2413
5312
  }
2414
- }),
5313
+ })),
2415
5314
  new Promise(
2416
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
5315
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
2417
5316
  )
2418
5317
  ]);
2419
5318
  }
@@ -2661,18 +5560,20 @@ var MezonApi = class {
2661
5560
  if (bearerToken) {
2662
5561
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2663
5562
  }
5563
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
2664
5564
  return Promise.race([
2665
- fetch(fullUrl, fetchOptions).then((response) => {
5565
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
2666
5566
  if (response.status == 204) {
2667
- return response;
5567
+ return {};
2668
5568
  } else if (response.status >= 200 && response.status < 300) {
2669
- return response.json();
5569
+ const buffer = yield response.arrayBuffer();
5570
+ return Account.decode(new Uint8Array(buffer));
2670
5571
  } else {
2671
5572
  throw response;
2672
5573
  }
2673
- }),
5574
+ })),
2674
5575
  new Promise(
2675
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
5576
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
2676
5577
  )
2677
5578
  ]);
2678
5579
  }
@@ -3012,18 +5913,20 @@ var MezonApi = class {
3012
5913
  if (bearerToken) {
3013
5914
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3014
5915
  }
5916
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3015
5917
  return Promise.race([
3016
- fetch(fullUrl, fetchOptions).then((response) => {
5918
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
3017
5919
  if (response.status == 204) {
3018
- return response;
5920
+ return {};
3019
5921
  } else if (response.status >= 200 && response.status < 300) {
3020
- return response.json();
5922
+ const buffer = yield response.arrayBuffer();
5923
+ return Account.decode(new Uint8Array(buffer));
3021
5924
  } else {
3022
5925
  throw response;
3023
5926
  }
3024
- }),
5927
+ })),
3025
5928
  new Promise(
3026
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
5929
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3027
5930
  )
3028
5931
  ]);
3029
5932
  }
@@ -3037,18 +5940,20 @@ var MezonApi = class {
3037
5940
  if (bearerToken) {
3038
5941
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3039
5942
  }
5943
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3040
5944
  return Promise.race([
3041
- fetch(fullUrl, fetchOptions).then((response) => {
5945
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
3042
5946
  if (response.status == 204) {
3043
- return response;
5947
+ return {};
3044
5948
  } else if (response.status >= 200 && response.status < 300) {
3045
- return response.json();
5949
+ const buffer = yield response.arrayBuffer();
5950
+ return Account.decode(new Uint8Array(buffer));
3046
5951
  } else {
3047
5952
  throw response;
3048
5953
  }
3049
- }),
5954
+ })),
3050
5955
  new Promise(
3051
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
5956
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3052
5957
  )
3053
5958
  ]);
3054
5959
  }
@@ -3125,18 +6030,20 @@ var MezonApi = class {
3125
6030
  if (bearerToken) {
3126
6031
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3127
6032
  }
6033
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3128
6034
  return Promise.race([
3129
- fetch(fullUrl, fetchOptions).then((response) => {
6035
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
3130
6036
  if (response.status == 204) {
3131
- return response;
6037
+ return {};
3132
6038
  } else if (response.status >= 200 && response.status < 300) {
3133
- return response.json();
6039
+ const buffer = yield response.arrayBuffer();
6040
+ return Account.decode(new Uint8Array(buffer));
3134
6041
  } else {
3135
6042
  throw response;
3136
6043
  }
3137
- }),
6044
+ })),
3138
6045
  new Promise(
3139
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
6046
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3140
6047
  )
3141
6048
  ]);
3142
6049
  }
@@ -3318,18 +6225,20 @@ var MezonApi = class {
3318
6225
  if (bearerToken) {
3319
6226
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3320
6227
  }
6228
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3321
6229
  return Promise.race([
3322
- fetch(fullUrl, fetchOptions).then((response) => {
6230
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
3323
6231
  if (response.status == 204) {
3324
- return response;
6232
+ return {};
3325
6233
  } else if (response.status >= 200 && response.status < 300) {
3326
- return response.json();
6234
+ const buffer = yield response.arrayBuffer();
6235
+ return Account.decode(new Uint8Array(buffer));
3327
6236
  } else {
3328
6237
  throw response;
3329
6238
  }
3330
- }),
6239
+ })),
3331
6240
  new Promise(
3332
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
6241
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3333
6242
  )
3334
6243
  ]);
3335
6244
  }
@@ -3425,18 +6334,20 @@ var MezonApi = class {
3425
6334
  if (bearerToken) {
3426
6335
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3427
6336
  }
6337
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3428
6338
  return Promise.race([
3429
- fetch(fullUrl, fetchOptions).then((response) => {
6339
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
3430
6340
  if (response.status == 204) {
3431
- return response;
6341
+ return {};
3432
6342
  } else if (response.status >= 200 && response.status < 300) {
3433
- return response.json();
6343
+ const buffer = yield response.arrayBuffer();
6344
+ return Account.decode(new Uint8Array(buffer));
3434
6345
  } else {
3435
6346
  throw response;
3436
6347
  }
3437
- }),
6348
+ })),
3438
6349
  new Promise(
3439
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
6350
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3440
6351
  )
3441
6352
  ]);
3442
6353
  }
@@ -3484,18 +6395,20 @@ var MezonApi = class {
3484
6395
  if (bearerToken) {
3485
6396
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3486
6397
  }
6398
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3487
6399
  return Promise.race([
3488
- fetch(fullUrl, fetchOptions).then((response) => {
6400
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
3489
6401
  if (response.status == 204) {
3490
- return response;
6402
+ return {};
3491
6403
  } else if (response.status >= 200 && response.status < 300) {
3492
- return response.json();
6404
+ const buffer = yield response.arrayBuffer();
6405
+ return Account.decode(new Uint8Array(buffer));
3493
6406
  } else {
3494
6407
  throw response;
3495
6408
  }
3496
- }),
6409
+ })),
3497
6410
  new Promise(
3498
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
6411
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3499
6412
  )
3500
6413
  ]);
3501
6414
  }
@@ -3510,18 +6423,20 @@ var MezonApi = class {
3510
6423
  if (bearerToken) {
3511
6424
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3512
6425
  }
6426
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3513
6427
  return Promise.race([
3514
- fetch(fullUrl, fetchOptions).then((response) => {
6428
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
3515
6429
  if (response.status == 204) {
3516
- return response;
6430
+ return {};
3517
6431
  } else if (response.status >= 200 && response.status < 300) {
3518
- return response.json();
6432
+ const buffer = yield response.arrayBuffer();
6433
+ return Account.decode(new Uint8Array(buffer));
3519
6434
  } else {
3520
6435
  throw response;
3521
6436
  }
3522
- }),
6437
+ })),
3523
6438
  new Promise(
3524
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
6439
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3525
6440
  )
3526
6441
  ]);
3527
6442
  }
@@ -3536,18 +6451,20 @@ var MezonApi = class {
3536
6451
  if (bearerToken) {
3537
6452
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3538
6453
  }
6454
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3539
6455
  return Promise.race([
3540
- fetch(fullUrl, fetchOptions).then((response) => {
6456
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
3541
6457
  if (response.status == 204) {
3542
- return response;
6458
+ return {};
3543
6459
  } else if (response.status >= 200 && response.status < 300) {
3544
- return response.json();
6460
+ const buffer = yield response.arrayBuffer();
6461
+ return Account.decode(new Uint8Array(buffer));
3545
6462
  } else {
3546
6463
  throw response;
3547
6464
  }
3548
- }),
6465
+ })),
3549
6466
  new Promise(
3550
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
6467
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3551
6468
  )
3552
6469
  ]);
3553
6470
  }
@@ -3767,18 +6684,20 @@ var MezonApi = class {
3767
6684
  if (bearerToken) {
3768
6685
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3769
6686
  }
6687
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3770
6688
  return Promise.race([
3771
- fetch(fullUrl, fetchOptions).then((response) => {
6689
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
3772
6690
  if (response.status == 204) {
3773
- return response;
6691
+ return {};
3774
6692
  } else if (response.status >= 200 && response.status < 300) {
3775
- return response.json();
6693
+ const buffer = yield response.arrayBuffer();
6694
+ return Account.decode(new Uint8Array(buffer));
3776
6695
  } else {
3777
6696
  throw response;
3778
6697
  }
3779
- }),
6698
+ })),
3780
6699
  new Promise(
3781
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
6700
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3782
6701
  )
3783
6702
  ]);
3784
6703
  }
@@ -3942,18 +6861,20 @@ var MezonApi = class {
3942
6861
  if (bearerToken) {
3943
6862
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3944
6863
  }
6864
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3945
6865
  return Promise.race([
3946
- fetch(fullUrl, fetchOptions).then((response) => {
6866
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
3947
6867
  if (response.status == 204) {
3948
- return response;
6868
+ return {};
3949
6869
  } else if (response.status >= 200 && response.status < 300) {
3950
- return response.json();
6870
+ const buffer = yield response.arrayBuffer();
6871
+ return Account.decode(new Uint8Array(buffer));
3951
6872
  } else {
3952
6873
  throw response;
3953
6874
  }
3954
- }),
6875
+ })),
3955
6876
  new Promise(
3956
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
6877
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3957
6878
  )
3958
6879
  ]);
3959
6880
  }
@@ -4231,18 +7152,20 @@ var MezonApi = class {
4231
7152
  if (bearerToken) {
4232
7153
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
4233
7154
  }
7155
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
4234
7156
  return Promise.race([
4235
- fetch(fullUrl, fetchOptions).then((response) => {
7157
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
4236
7158
  if (response.status == 204) {
4237
- return response;
7159
+ return {};
4238
7160
  } else if (response.status >= 200 && response.status < 300) {
4239
- return response.json();
7161
+ const buffer = yield response.arrayBuffer();
7162
+ return Account.decode(new Uint8Array(buffer));
4240
7163
  } else {
4241
7164
  throw response;
4242
7165
  }
4243
- }),
7166
+ })),
4244
7167
  new Promise(
4245
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
7168
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
4246
7169
  )
4247
7170
  ]);
4248
7171
  }
@@ -4259,18 +7182,20 @@ var MezonApi = class {
4259
7182
  if (bearerToken) {
4260
7183
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
4261
7184
  }
7185
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
4262
7186
  return Promise.race([
4263
- fetch(fullUrl, fetchOptions).then((response) => {
7187
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
4264
7188
  if (response.status == 204) {
4265
- return response;
7189
+ return {};
4266
7190
  } else if (response.status >= 200 && response.status < 300) {
4267
- return response.json();
7191
+ const buffer = yield response.arrayBuffer();
7192
+ return Account.decode(new Uint8Array(buffer));
4268
7193
  } else {
4269
7194
  throw response;
4270
7195
  }
4271
- }),
7196
+ })),
4272
7197
  new Promise(
4273
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
7198
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
4274
7199
  )
4275
7200
  ]);
4276
7201
  }
@@ -4316,18 +7241,20 @@ var MezonApi = class {
4316
7241
  if (bearerToken) {
4317
7242
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
4318
7243
  }
7244
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
4319
7245
  return Promise.race([
4320
- fetch(fullUrl, fetchOptions).then((response) => {
7246
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
4321
7247
  if (response.status == 204) {
4322
- return response;
7248
+ return {};
4323
7249
  } else if (response.status >= 200 && response.status < 300) {
4324
- return response.json();
7250
+ const buffer = yield response.arrayBuffer();
7251
+ return Account.decode(new Uint8Array(buffer));
4325
7252
  } else {
4326
7253
  throw response;
4327
7254
  }
4328
- }),
7255
+ })),
4329
7256
  new Promise(
4330
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
7257
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
4331
7258
  )
4332
7259
  ]);
4333
7260
  }
@@ -4563,18 +7490,20 @@ var MezonApi = class {
4563
7490
  if (bearerToken) {
4564
7491
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
4565
7492
  }
7493
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
4566
7494
  return Promise.race([
4567
- fetch(fullUrl, fetchOptions).then((response) => {
7495
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
4568
7496
  if (response.status == 204) {
4569
- return response;
7497
+ return {};
4570
7498
  } else if (response.status >= 200 && response.status < 300) {
4571
- return response.json();
7499
+ const buffer = yield response.arrayBuffer();
7500
+ return Account.decode(new Uint8Array(buffer));
4572
7501
  } else {
4573
7502
  throw response;
4574
7503
  }
4575
- }),
7504
+ })),
4576
7505
  new Promise(
4577
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
7506
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
4578
7507
  )
4579
7508
  ]);
4580
7509
  }
@@ -4741,18 +7670,20 @@ var MezonApi = class {
4741
7670
  if (bearerToken) {
4742
7671
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
4743
7672
  }
7673
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
4744
7674
  return Promise.race([
4745
- fetch(fullUrl, fetchOptions).then((response) => {
7675
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
4746
7676
  if (response.status == 204) {
4747
- return response;
7677
+ return {};
4748
7678
  } else if (response.status >= 200 && response.status < 300) {
4749
- return response.json();
7679
+ const buffer = yield response.arrayBuffer();
7680
+ return Account.decode(new Uint8Array(buffer));
4750
7681
  } else {
4751
7682
  throw response;
4752
7683
  }
4753
- }),
7684
+ })),
4754
7685
  new Promise(
4755
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
7686
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
4756
7687
  )
4757
7688
  ]);
4758
7689
  }
@@ -4776,18 +7707,20 @@ var MezonApi = class {
4776
7707
  if (bearerToken) {
4777
7708
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
4778
7709
  }
7710
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
4779
7711
  return Promise.race([
4780
- fetch(fullUrl, fetchOptions).then((response) => {
7712
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
4781
7713
  if (response.status == 204) {
4782
- return response;
7714
+ return {};
4783
7715
  } else if (response.status >= 200 && response.status < 300) {
4784
- return response.json();
7716
+ const buffer = yield response.arrayBuffer();
7717
+ return Account.decode(new Uint8Array(buffer));
4785
7718
  } else {
4786
7719
  throw response;
4787
7720
  }
4788
- }),
7721
+ })),
4789
7722
  new Promise(
4790
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
7723
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
4791
7724
  )
4792
7725
  ]);
4793
7726
  }
@@ -4810,18 +7743,20 @@ var MezonApi = class {
4810
7743
  if (bearerToken) {
4811
7744
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
4812
7745
  }
7746
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
4813
7747
  return Promise.race([
4814
- fetch(fullUrl, fetchOptions).then((response) => {
7748
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
4815
7749
  if (response.status == 204) {
4816
- return response;
7750
+ return {};
4817
7751
  } else if (response.status >= 200 && response.status < 300) {
4818
- return response.json();
7752
+ const buffer = yield response.arrayBuffer();
7753
+ return Account.decode(new Uint8Array(buffer));
4819
7754
  } else {
4820
7755
  throw response;
4821
7756
  }
4822
- }),
7757
+ })),
4823
7758
  new Promise(
4824
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
7759
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
4825
7760
  )
4826
7761
  ]);
4827
7762
  }
@@ -5103,18 +8038,20 @@ var MezonApi = class {
5103
8038
  if (bearerToken) {
5104
8039
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5105
8040
  }
8041
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
5106
8042
  return Promise.race([
5107
- fetch(fullUrl, fetchOptions).then((response) => {
8043
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
5108
8044
  if (response.status == 204) {
5109
- return response;
8045
+ return {};
5110
8046
  } else if (response.status >= 200 && response.status < 300) {
5111
- return response.json();
8047
+ const buffer = yield response.arrayBuffer();
8048
+ return Account.decode(new Uint8Array(buffer));
5112
8049
  } else {
5113
8050
  throw response;
5114
8051
  }
5115
- }),
8052
+ })),
5116
8053
  new Promise(
5117
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
8054
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
5118
8055
  )
5119
8056
  ]);
5120
8057
  }
@@ -5129,18 +8066,20 @@ var MezonApi = class {
5129
8066
  if (bearerToken) {
5130
8067
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5131
8068
  }
8069
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
5132
8070
  return Promise.race([
5133
- fetch(fullUrl, fetchOptions).then((response) => {
8071
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
5134
8072
  if (response.status == 204) {
5135
- return response;
8073
+ return {};
5136
8074
  } else if (response.status >= 200 && response.status < 300) {
5137
- return response.json();
8075
+ const buffer = yield response.arrayBuffer();
8076
+ return Account.decode(new Uint8Array(buffer));
5138
8077
  } else {
5139
8078
  throw response;
5140
8079
  }
5141
- }),
8080
+ })),
5142
8081
  new Promise(
5143
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
8082
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
5144
8083
  )
5145
8084
  ]);
5146
8085
  }
@@ -5191,18 +8130,20 @@ var MezonApi = class {
5191
8130
  if (bearerToken) {
5192
8131
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5193
8132
  }
8133
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
5194
8134
  return Promise.race([
5195
- fetch(fullUrl, fetchOptions).then((response) => {
8135
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
5196
8136
  if (response.status == 204) {
5197
- return response;
8137
+ return {};
5198
8138
  } else if (response.status >= 200 && response.status < 300) {
5199
- return response.json();
8139
+ const buffer = yield response.arrayBuffer();
8140
+ return Account.decode(new Uint8Array(buffer));
5200
8141
  } else {
5201
8142
  throw response;
5202
8143
  }
5203
- }),
8144
+ })),
5204
8145
  new Promise(
5205
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
8146
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
5206
8147
  )
5207
8148
  ]);
5208
8149
  }
@@ -5216,18 +8157,20 @@ var MezonApi = class {
5216
8157
  if (bearerToken) {
5217
8158
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5218
8159
  }
8160
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
5219
8161
  return Promise.race([
5220
- fetch(fullUrl, fetchOptions).then((response) => {
8162
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
5221
8163
  if (response.status == 204) {
5222
- return response;
8164
+ return {};
5223
8165
  } else if (response.status >= 200 && response.status < 300) {
5224
- return response.json();
8166
+ const buffer = yield response.arrayBuffer();
8167
+ return Account.decode(new Uint8Array(buffer));
5225
8168
  } else {
5226
8169
  throw response;
5227
8170
  }
5228
- }),
8171
+ })),
5229
8172
  new Promise(
5230
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
8173
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
5231
8174
  )
5232
8175
  ]);
5233
8176
  }
@@ -5274,18 +8217,20 @@ var MezonApi = class {
5274
8217
  if (bearerToken) {
5275
8218
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5276
8219
  }
8220
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
5277
8221
  return Promise.race([
5278
- fetch(fullUrl, fetchOptions).then((response) => {
8222
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
5279
8223
  if (response.status == 204) {
5280
- return response;
8224
+ return {};
5281
8225
  } else if (response.status >= 200 && response.status < 300) {
5282
- return response.json();
8226
+ const buffer = yield response.arrayBuffer();
8227
+ return Account.decode(new Uint8Array(buffer));
5283
8228
  } else {
5284
8229
  throw response;
5285
8230
  }
5286
- }),
8231
+ })),
5287
8232
  new Promise(
5288
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
8233
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
5289
8234
  )
5290
8235
  ]);
5291
8236
  }
@@ -5448,18 +8393,20 @@ var MezonApi = class {
5448
8393
  if (bearerToken) {
5449
8394
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5450
8395
  }
8396
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
5451
8397
  return Promise.race([
5452
- fetch(fullUrl, fetchOptions).then((response) => {
8398
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
5453
8399
  if (response.status == 204) {
5454
- return response;
8400
+ return {};
5455
8401
  } else if (response.status >= 200 && response.status < 300) {
5456
- return response.json();
8402
+ const buffer = yield response.arrayBuffer();
8403
+ return Account.decode(new Uint8Array(buffer));
5457
8404
  } else {
5458
8405
  throw response;
5459
8406
  }
5460
- }),
8407
+ })),
5461
8408
  new Promise(
5462
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
8409
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
5463
8410
  )
5464
8411
  ]);
5465
8412
  }
@@ -5673,18 +8620,20 @@ var MezonApi = class {
5673
8620
  if (bearerToken) {
5674
8621
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5675
8622
  }
8623
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
5676
8624
  return Promise.race([
5677
- fetch(fullUrl, fetchOptions).then((response) => {
8625
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
5678
8626
  if (response.status == 204) {
5679
- return response;
8627
+ return {};
5680
8628
  } else if (response.status >= 200 && response.status < 300) {
5681
- return response.json();
8629
+ const buffer = yield response.arrayBuffer();
8630
+ return Account.decode(new Uint8Array(buffer));
5682
8631
  } else {
5683
8632
  throw response;
5684
8633
  }
5685
- }),
8634
+ })),
5686
8635
  new Promise(
5687
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
8636
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
5688
8637
  )
5689
8638
  ]);
5690
8639
  }
@@ -6124,18 +9073,20 @@ var MezonApi = class {
6124
9073
  if (bearerToken) {
6125
9074
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
6126
9075
  }
9076
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
6127
9077
  return Promise.race([
6128
- fetch(fullUrl, fetchOptions).then((response) => {
9078
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
6129
9079
  if (response.status == 204) {
6130
- return response;
9080
+ return {};
6131
9081
  } else if (response.status >= 200 && response.status < 300) {
6132
- return response.json();
9082
+ const buffer = yield response.arrayBuffer();
9083
+ return Account.decode(new Uint8Array(buffer));
6133
9084
  } else {
6134
9085
  throw response;
6135
9086
  }
6136
- }),
9087
+ })),
6137
9088
  new Promise(
6138
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
9089
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
6139
9090
  )
6140
9091
  ]);
6141
9092
  }
@@ -6443,18 +9394,20 @@ var MezonApi = class {
6443
9394
  if (bearerToken) {
6444
9395
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
6445
9396
  }
9397
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
6446
9398
  return Promise.race([
6447
- fetch(fullUrl, fetchOptions).then((response) => {
9399
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
6448
9400
  if (response.status == 204) {
6449
- return response;
9401
+ return {};
6450
9402
  } else if (response.status >= 200 && response.status < 300) {
6451
- return response.json();
9403
+ const buffer = yield response.arrayBuffer();
9404
+ return Account.decode(new Uint8Array(buffer));
6452
9405
  } else {
6453
9406
  throw response;
6454
9407
  }
6455
- }),
9408
+ })),
6456
9409
  new Promise(
6457
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
9410
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
6458
9411
  )
6459
9412
  ]);
6460
9413
  }
@@ -6965,18 +9918,20 @@ var MezonApi = class {
6965
9918
  if (bearerToken) {
6966
9919
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
6967
9920
  }
9921
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
6968
9922
  return Promise.race([
6969
- fetch(fullUrl, fetchOptions).then((response) => {
9923
+ fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
6970
9924
  if (response.status == 204) {
6971
- return response;
9925
+ return {};
6972
9926
  } else if (response.status >= 200 && response.status < 300) {
6973
- return response.json();
9927
+ const buffer = yield response.arrayBuffer();
9928
+ return Account.decode(new Uint8Array(buffer));
6974
9929
  } else {
6975
9930
  throw response;
6976
9931
  }
6977
- }),
9932
+ })),
6978
9933
  new Promise(
6979
- (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
9934
+ (_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
6980
9935
  )
6981
9936
  ]);
6982
9937
  }
@@ -9325,12 +12280,16 @@ var Client = class {
9325
12280
  lang_tag: gu.user.lang_tag,
9326
12281
  location: gu.user.location,
9327
12282
  online: gu.user.online,
9328
- is_mobile: (_a = gu.user) == null ? void 0 : _a.is_mobile,
12283
+ is_mobile: ((_a = gu.user) == null ? void 0 : _a.is_mobile) || false,
9329
12284
  timezone: gu.user.timezone,
9330
12285
  update_time: gu.user.update_time,
9331
12286
  username: gu.user.username,
9332
12287
  user_status: gu.user.user_status,
9333
- status: gu.user.status
12288
+ status: gu.user.status,
12289
+ about_me: gu.user.about_me,
12290
+ mezon_id: gu.user.mezon_id,
12291
+ list_nick_names: gu.user.list_nick_names,
12292
+ phone_number: gu.user.phone_number
9334
12293
  },
9335
12294
  role_id: gu.role_id,
9336
12295
  clan_nick: gu.clan_nick,
@@ -9575,9 +12534,13 @@ var Client = class {
9575
12534
  timezone: f.user.timezone,
9576
12535
  update_time: f.user.update_time,
9577
12536
  username: f.user.username,
9578
- is_mobile: (_a = f.user) == null ? void 0 : _a.is_mobile,
12537
+ is_mobile: ((_a = f.user) == null ? void 0 : _a.is_mobile) || false,
9579
12538
  user_status: f.user.user_status,
9580
- status: f.user.status
12539
+ status: f.user.status,
12540
+ mezon_id: f.user.mezon_id,
12541
+ list_nick_names: f.user.list_nick_names,
12542
+ phone_number: f.user.phone_number,
12543
+ about_me: f.user.about_me
9581
12544
  },
9582
12545
  state: f.state,
9583
12546
  source_id: f.source_id