or-tools-wasm 0.5.0 → 0.7.0

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.
Files changed (52) hide show
  1. package/README.md +173 -55
  2. package/build/javascript/browser/cp_sat_module_loader.js +53 -0
  3. package/build/javascript/browser/cpsat_worker.js +135 -0
  4. package/build/javascript/browser/cpsat_worker_types.js +0 -0
  5. package/build/javascript/browser/index.js +5910 -0
  6. package/build/javascript/lib/assets/cp_sat_runtime-BcQ-oG9G.js +2568 -0
  7. package/build/javascript/lib/assets/cp_sat_runtime-BcQ-oG9G.js.map +1 -0
  8. package/build/javascript/lib/assets/{cp_sat_runtime-BUuF8d7w.wasm → cp_sat_runtime.wasm} +0 -0
  9. package/build/javascript/lib/assets/cp_sat_runtime.wasm.map +1 -0
  10. package/build/javascript/lib/assets/cp_sat_runtime_asyncify-CebveWgj.js +2642 -0
  11. package/build/javascript/lib/assets/cp_sat_runtime_asyncify-CebveWgj.js.map +1 -0
  12. package/build/javascript/lib/assets/{cp_sat_runtime_asyncify-CjMVqM1A.wasm → cp_sat_runtime_asyncify.wasm} +0 -0
  13. package/build/javascript/lib/assets/cp_sat_runtime_asyncify.wasm.map +1 -0
  14. package/build/javascript/lib/assets/cpsat_worker-CxyMtsph.js +145 -0
  15. package/build/javascript/lib/assets/cpsat_worker-CxyMtsph.js.map +1 -0
  16. package/build/javascript/lib/chunks/cp_sat_runtime-D-Bi0Puh.js +2568 -0
  17. package/build/javascript/lib/chunks/cp_sat_runtime-D-Bi0Puh.js.map +1 -0
  18. package/build/javascript/lib/chunks/cp_sat_runtime_asyncify-pyd1qgFK.js +2642 -0
  19. package/build/javascript/lib/chunks/cp_sat_runtime_asyncify-pyd1qgFK.js.map +1 -0
  20. package/build/javascript/lib/cp_sat_api.d.ts +277 -98
  21. package/build/javascript/lib/cp_sat_api.js +3364 -219
  22. package/build/javascript/lib/cp_sat_api.js.map +1 -1
  23. package/build/javascript/wasm/cp_sat_runtime.d.ts +51 -0
  24. package/build/javascript/wasm/cp_sat_runtime.js +10 -0
  25. package/build/javascript/wasm/cp_sat_runtime.wasm +0 -0
  26. package/build/javascript/wasm/cp_sat_runtime.wasm.map +1 -0
  27. package/build/javascript/wasm/cp_sat_runtime_asyncify.js +10 -0
  28. package/build/javascript/wasm/cp_sat_runtime_asyncify.wasm +0 -0
  29. package/build/javascript/wasm/cp_sat_runtime_asyncify.wasm.map +1 -0
  30. package/javascript/lib/cp_sat_api.ts +475 -0
  31. package/javascript/lib/cp_sat_module_loader.bundled.ts +58 -0
  32. package/javascript/lib/cp_sat_module_loader.ts +57 -0
  33. package/javascript/lib/cpsat_worker.ts +160 -0
  34. package/javascript/lib/cpsat_worker_types.ts +32 -0
  35. package/javascript/lib/generated/sat_parameters.ts +2760 -0
  36. package/javascript/lib/index.ts +8 -0
  37. package/javascript/lib/internal_wasm_asyncify.d.ts +15 -0
  38. package/javascript/lib/vite-shims.d.ts +25 -0
  39. package/javascript/lib/webassembly_promising.d.ts +7 -0
  40. package/package.json +46 -7
  41. package/build/javascript/lib/assets/cp_sat_runtime-N6mpxHFm.js +0 -2565
  42. package/build/javascript/lib/assets/cp_sat_runtime-N6mpxHFm.js.map +0 -1
  43. package/build/javascript/lib/assets/cp_sat_runtime_asyncify-DAFhCUmM.js +0 -2639
  44. package/build/javascript/lib/assets/cp_sat_runtime_asyncify-DAFhCUmM.js.map +0 -1
  45. package/build/javascript/lib/assets/cpsat_worker-Bc6EW-gj.js +0 -139
  46. package/build/javascript/lib/assets/cpsat_worker-Bc6EW-gj.js.map +0 -1
  47. package/build/javascript/lib/chunks/cp_sat_runtime-B9zhYjnh.js +0 -2565
  48. package/build/javascript/lib/chunks/cp_sat_runtime-B9zhYjnh.js.map +0 -1
  49. package/build/javascript/lib/chunks/cp_sat_runtime_asyncify-BaxdGqjW.js +0 -2639
  50. package/build/javascript/lib/chunks/cp_sat_runtime_asyncify-BaxdGqjW.js.map +0 -1
  51. package/build/javascript/lib/chunks/index-Cq3lJx2c.js +0 -3815
  52. package/build/javascript/lib/chunks/index-Cq3lJx2c.js.map +0 -1
@@ -1,3815 +0,0 @@
1
- function Lr(h, a) {
2
- for (var p = 0; p < a.length; p++) {
3
- const c = a[p];
4
- if (typeof c != "string" && !Array.isArray(c)) {
5
- for (const l in c)
6
- if (l !== "default" && !(l in h)) {
7
- const n = Object.getOwnPropertyDescriptor(c, l);
8
- n && Object.defineProperty(h, l, n.get ? n : {
9
- enumerable: !0,
10
- get: () => c[l]
11
- });
12
- }
13
- }
14
- }
15
- return Object.freeze(Object.defineProperty(h, Symbol.toStringTag, { value: "Module" }));
16
- }
17
- var ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
- function jr(h) {
19
- return h && h.__esModule && Object.prototype.hasOwnProperty.call(h, "default") ? h.default : h;
20
- }
21
- var we = { exports: {} }, Oe = { exports: {} }, be = {}, pe = {}, Re, Ot;
22
- function dr() {
23
- if (Ot) return Re;
24
- Ot = 1, Re = h;
25
- function h(a, p) {
26
- for (var c = new Array(arguments.length - 1), l = 0, n = 2, e = !0; n < arguments.length; )
27
- c[l++] = arguments[n++];
28
- return new Promise(function(t, r) {
29
- c[l] = function(s) {
30
- if (e)
31
- if (e = !1, s)
32
- r(s);
33
- else {
34
- for (var u = new Array(arguments.length - 1), o = 0; o < u.length; )
35
- u[o++] = arguments[o];
36
- t.apply(null, u);
37
- }
38
- };
39
- try {
40
- a.apply(p || null, c);
41
- } catch (f) {
42
- e && (e = !1, r(f));
43
- }
44
- });
45
- }
46
- return Re;
47
- }
48
- var Ee = {}, bt;
49
- function Jr() {
50
- return bt || (bt = 1, (function(h) {
51
- var a = h;
52
- a.length = function(i) {
53
- var t = i.length;
54
- if (!t)
55
- return 0;
56
- for (var r = 0; --t % 4 > 1 && i.charAt(t) === "="; )
57
- ++r;
58
- return Math.ceil(i.length * 3) / 4 - r;
59
- };
60
- for (var p = new Array(64), c = new Array(123), l = 0; l < 64; )
61
- c[p[l] = l < 26 ? l + 65 : l < 52 ? l + 71 : l < 62 ? l - 4 : l - 59 | 43] = l++;
62
- a.encode = function(i, t, r) {
63
- for (var f = null, s = [], u = 0, o = 0, d; t < r; ) {
64
- var y = i[t++];
65
- switch (o) {
66
- case 0:
67
- s[u++] = p[y >> 2], d = (y & 3) << 4, o = 1;
68
- break;
69
- case 1:
70
- s[u++] = p[d | y >> 4], d = (y & 15) << 2, o = 2;
71
- break;
72
- case 2:
73
- s[u++] = p[d | y >> 6], s[u++] = p[y & 63], o = 0;
74
- break;
75
- }
76
- u > 8191 && ((f || (f = [])).push(String.fromCharCode.apply(String, s)), u = 0);
77
- }
78
- return o && (s[u++] = p[d], s[u++] = 61, o === 1 && (s[u++] = 61)), f ? (u && f.push(String.fromCharCode.apply(String, s.slice(0, u))), f.join("")) : String.fromCharCode.apply(String, s.slice(0, u));
79
- };
80
- var n = "invalid encoding";
81
- a.decode = function(i, t, r) {
82
- for (var f = r, s = 0, u, o = 0; o < i.length; ) {
83
- var d = i.charCodeAt(o++);
84
- if (d === 61 && s > 1)
85
- break;
86
- if ((d = c[d]) === void 0)
87
- throw Error(n);
88
- switch (s) {
89
- case 0:
90
- u = d, s = 1;
91
- break;
92
- case 1:
93
- t[r++] = u << 2 | (d & 48) >> 4, u = d, s = 2;
94
- break;
95
- case 2:
96
- t[r++] = (u & 15) << 4 | (d & 60) >> 2, u = d, s = 3;
97
- break;
98
- case 3:
99
- t[r++] = (u & 3) << 6 | d, s = 0;
100
- break;
101
- }
102
- }
103
- if (s === 1)
104
- throw Error(n);
105
- return r - f;
106
- }, a.test = function(i) {
107
- return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(i);
108
- };
109
- })(Ee)), Ee;
110
- }
111
- var Ae, Rt;
112
- function Mr() {
113
- if (Rt) return Ae;
114
- Rt = 1, Ae = h;
115
- function h() {
116
- this._listeners = {};
117
- }
118
- return h.prototype.on = function(p, c, l) {
119
- return (this._listeners[p] || (this._listeners[p] = [])).push({
120
- fn: c,
121
- ctx: l || this
122
- }), this;
123
- }, h.prototype.off = function(p, c) {
124
- if (p === void 0)
125
- this._listeners = {};
126
- else if (c === void 0)
127
- this._listeners[p] = [];
128
- else
129
- for (var l = this._listeners[p], n = 0; n < l.length; )
130
- l[n].fn === c ? l.splice(n, 1) : ++n;
131
- return this;
132
- }, h.prototype.emit = function(p) {
133
- var c = this._listeners[p];
134
- if (c) {
135
- for (var l = [], n = 1; n < arguments.length; )
136
- l.push(arguments[n++]);
137
- for (n = 0; n < c.length; )
138
- c[n].fn.apply(c[n++].ctx, l);
139
- }
140
- return this;
141
- }, Ae;
142
- }
143
- var xe, Et;
144
- function $r() {
145
- if (Et) return xe;
146
- Et = 1, xe = h(h);
147
- function h(n) {
148
- return typeof Float32Array < "u" ? (function() {
149
- var e = new Float32Array([-0]), i = new Uint8Array(e.buffer), t = i[3] === 128;
150
- function r(o, d, y) {
151
- e[0] = o, d[y] = i[0], d[y + 1] = i[1], d[y + 2] = i[2], d[y + 3] = i[3];
152
- }
153
- function f(o, d, y) {
154
- e[0] = o, d[y] = i[3], d[y + 1] = i[2], d[y + 2] = i[1], d[y + 3] = i[0];
155
- }
156
- n.writeFloatLE = t ? r : f, n.writeFloatBE = t ? f : r;
157
- function s(o, d) {
158
- return i[0] = o[d], i[1] = o[d + 1], i[2] = o[d + 2], i[3] = o[d + 3], e[0];
159
- }
160
- function u(o, d) {
161
- return i[3] = o[d], i[2] = o[d + 1], i[1] = o[d + 2], i[0] = o[d + 3], e[0];
162
- }
163
- n.readFloatLE = t ? s : u, n.readFloatBE = t ? u : s;
164
- })() : (function() {
165
- function e(t, r, f, s) {
166
- var u = r < 0 ? 1 : 0;
167
- if (u && (r = -r), r === 0)
168
- t(1 / r > 0 ? (
169
- /* positive */
170
- 0
171
- ) : (
172
- /* negative 0 */
173
- 2147483648
174
- ), f, s);
175
- else if (isNaN(r))
176
- t(2143289344, f, s);
177
- else if (r > 34028234663852886e22)
178
- t((u << 31 | 2139095040) >>> 0, f, s);
179
- else if (r < 11754943508222875e-54)
180
- t((u << 31 | Math.round(r / 1401298464324817e-60)) >>> 0, f, s);
181
- else {
182
- var o = Math.floor(Math.log(r) / Math.LN2), d = Math.round(r * Math.pow(2, -o) * 8388608) & 8388607;
183
- t((u << 31 | o + 127 << 23 | d) >>> 0, f, s);
184
- }
185
- }
186
- n.writeFloatLE = e.bind(null, a), n.writeFloatBE = e.bind(null, p);
187
- function i(t, r, f) {
188
- var s = t(r, f), u = (s >> 31) * 2 + 1, o = s >>> 23 & 255, d = s & 8388607;
189
- return o === 255 ? d ? NaN : u * (1 / 0) : o === 0 ? u * 1401298464324817e-60 * d : u * Math.pow(2, o - 150) * (d + 8388608);
190
- }
191
- n.readFloatLE = i.bind(null, c), n.readFloatBE = i.bind(null, l);
192
- })(), typeof Float64Array < "u" ? (function() {
193
- var e = new Float64Array([-0]), i = new Uint8Array(e.buffer), t = i[7] === 128;
194
- function r(o, d, y) {
195
- e[0] = o, d[y] = i[0], d[y + 1] = i[1], d[y + 2] = i[2], d[y + 3] = i[3], d[y + 4] = i[4], d[y + 5] = i[5], d[y + 6] = i[6], d[y + 7] = i[7];
196
- }
197
- function f(o, d, y) {
198
- e[0] = o, d[y] = i[7], d[y + 1] = i[6], d[y + 2] = i[5], d[y + 3] = i[4], d[y + 4] = i[3], d[y + 5] = i[2], d[y + 6] = i[1], d[y + 7] = i[0];
199
- }
200
- n.writeDoubleLE = t ? r : f, n.writeDoubleBE = t ? f : r;
201
- function s(o, d) {
202
- return i[0] = o[d], i[1] = o[d + 1], i[2] = o[d + 2], i[3] = o[d + 3], i[4] = o[d + 4], i[5] = o[d + 5], i[6] = o[d + 6], i[7] = o[d + 7], e[0];
203
- }
204
- function u(o, d) {
205
- return i[7] = o[d], i[6] = o[d + 1], i[5] = o[d + 2], i[4] = o[d + 3], i[3] = o[d + 4], i[2] = o[d + 5], i[1] = o[d + 6], i[0] = o[d + 7], e[0];
206
- }
207
- n.readDoubleLE = t ? s : u, n.readDoubleBE = t ? u : s;
208
- })() : (function() {
209
- function e(t, r, f, s, u, o) {
210
- var d = s < 0 ? 1 : 0;
211
- if (d && (s = -s), s === 0)
212
- t(0, u, o + r), t(1 / s > 0 ? (
213
- /* positive */
214
- 0
215
- ) : (
216
- /* negative 0 */
217
- 2147483648
218
- ), u, o + f);
219
- else if (isNaN(s))
220
- t(0, u, o + r), t(2146959360, u, o + f);
221
- else if (s > 17976931348623157e292)
222
- t(0, u, o + r), t((d << 31 | 2146435072) >>> 0, u, o + f);
223
- else {
224
- var y;
225
- if (s < 22250738585072014e-324)
226
- y = s / 5e-324, t(y >>> 0, u, o + r), t((d << 31 | y / 4294967296) >>> 0, u, o + f);
227
- else {
228
- var _ = Math.floor(Math.log(s) / Math.LN2);
229
- _ === 1024 && (_ = 1023), y = s * Math.pow(2, -_), t(y * 4503599627370496 >>> 0, u, o + r), t((d << 31 | _ + 1023 << 20 | y * 1048576 & 1048575) >>> 0, u, o + f);
230
- }
231
- }
232
- }
233
- n.writeDoubleLE = e.bind(null, a, 0, 4), n.writeDoubleBE = e.bind(null, p, 4, 0);
234
- function i(t, r, f, s, u) {
235
- var o = t(s, u + r), d = t(s, u + f), y = (d >> 31) * 2 + 1, _ = d >>> 20 & 2047, m = 4294967296 * (d & 1048575) + o;
236
- return _ === 2047 ? m ? NaN : y * (1 / 0) : _ === 0 ? y * 5e-324 * m : y * Math.pow(2, _ - 1075) * (m + 4503599627370496);
237
- }
238
- n.readDoubleLE = i.bind(null, c, 0, 4), n.readDoubleBE = i.bind(null, l, 4, 0);
239
- })(), n;
240
- }
241
- function a(n, e, i) {
242
- e[i] = n & 255, e[i + 1] = n >>> 8 & 255, e[i + 2] = n >>> 16 & 255, e[i + 3] = n >>> 24;
243
- }
244
- function p(n, e, i) {
245
- e[i] = n >>> 24, e[i + 1] = n >>> 16 & 255, e[i + 2] = n >>> 8 & 255, e[i + 3] = n & 255;
246
- }
247
- function c(n, e) {
248
- return (n[e] | n[e + 1] << 8 | n[e + 2] << 16 | n[e + 3] << 24) >>> 0;
249
- }
250
- function l(n, e) {
251
- return (n[e] << 24 | n[e + 1] << 16 | n[e + 2] << 8 | n[e + 3]) >>> 0;
252
- }
253
- return xe;
254
- }
255
- function At(h) {
256
- throw new Error('Could not dynamically require "' + h + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
257
- }
258
- var ke, xt;
259
- function pr() {
260
- if (xt) return ke;
261
- xt = 1, ke = h;
262
- function h(a) {
263
- try {
264
- if (typeof At != "function")
265
- return null;
266
- var p = At(a);
267
- return p && (p.length || Object.keys(p).length) ? p : null;
268
- } catch {
269
- return null;
270
- }
271
- }
272
- return ke;
273
- }
274
- var Fe = {}, kt;
275
- function Vr() {
276
- return kt || (kt = 1, (function(h) {
277
- var a = h, p = "�";
278
- a.length = function(l) {
279
- for (var n = 0, e = 0, i = 0; i < l.length; ++i)
280
- e = l.charCodeAt(i), e < 128 ? n += 1 : e < 2048 ? n += 2 : (e & 64512) === 55296 && (l.charCodeAt(i + 1) & 64512) === 56320 ? (++i, n += 4) : n += 3;
281
- return n;
282
- }, a.read = function(l, n, e) {
283
- if (e - n < 1)
284
- return "";
285
- for (var i = "", t = n; t < e; ) {
286
- var r = l[t++];
287
- if (r <= 127)
288
- i += String.fromCharCode(r);
289
- else if (r >= 192 && r < 224) {
290
- var f = (r & 31) << 6 | l[t++] & 63;
291
- i += f >= 128 ? String.fromCharCode(f) : p;
292
- } else if (r >= 224 && r < 240) {
293
- var s = (r & 15) << 12 | (l[t++] & 63) << 6 | l[t++] & 63;
294
- i += s >= 2048 ? String.fromCharCode(s) : p;
295
- } else if (r >= 240) {
296
- var u = (r & 7) << 18 | (l[t++] & 63) << 12 | (l[t++] & 63) << 6 | l[t++] & 63;
297
- u < 65536 || u > 1114111 ? i += p : (u -= 65536, i += String.fromCharCode(55296 + (u >> 10)), i += String.fromCharCode(56320 + (u & 1023)));
298
- }
299
- }
300
- return i;
301
- }, a.write = function(l, n, e) {
302
- for (var i = e, t, r, f = 0; f < l.length; ++f)
303
- t = l.charCodeAt(f), t < 128 ? n[e++] = t : t < 2048 ? (n[e++] = t >> 6 | 192, n[e++] = t & 63 | 128) : (t & 64512) === 55296 && ((r = l.charCodeAt(f + 1)) & 64512) === 56320 ? (t = 65536 + ((t & 1023) << 10) + (r & 1023), ++f, n[e++] = t >> 18 | 240, n[e++] = t >> 12 & 63 | 128, n[e++] = t >> 6 & 63 | 128, n[e++] = t & 63 | 128) : (n[e++] = t >> 12 | 224, n[e++] = t >> 6 & 63 | 128, n[e++] = t & 63 | 128);
304
- return e - i;
305
- };
306
- })(Fe)), Fe;
307
- }
308
- var Se, Ft;
309
- function zr() {
310
- if (Ft) return Se;
311
- Ft = 1, Se = h;
312
- function h(a, p, c) {
313
- var l = c || 8192, n = l >>> 1, e = null, i = l;
314
- return function(r) {
315
- if (r < 1 || r > n)
316
- return a(r);
317
- i + r > l && (e = a(l), i = 0);
318
- var f = p.call(e, i, i += r);
319
- return i & 7 && (i = (i | 7) + 1), f;
320
- };
321
- }
322
- return Se;
323
- }
324
- var Ne, St;
325
- function Wr() {
326
- if (St) return Ne;
327
- St = 1, Ne = a;
328
- var h = ie();
329
- function a(n, e) {
330
- this.lo = n >>> 0, this.hi = e >>> 0;
331
- }
332
- var p = a.zero = new a(0, 0);
333
- p.toNumber = function() {
334
- return 0;
335
- }, p.zzEncode = p.zzDecode = function() {
336
- return this;
337
- }, p.length = function() {
338
- return 1;
339
- };
340
- var c = a.zeroHash = "\0\0\0\0\0\0\0\0";
341
- a.fromNumber = function(e) {
342
- if (e === 0)
343
- return p;
344
- var i = e < 0;
345
- i && (e = -e);
346
- var t = e >>> 0, r = (e - t) / 4294967296 >>> 0;
347
- return i && (r = ~r >>> 0, t = ~t >>> 0, ++t > 4294967295 && (t = 0, ++r > 4294967295 && (r = 0))), new a(t, r);
348
- }, a.from = function(e) {
349
- if (typeof e == "number")
350
- return a.fromNumber(e);
351
- if (h.isString(e))
352
- if (h.Long)
353
- e = h.Long.fromString(e);
354
- else
355
- return a.fromNumber(parseInt(e, 10));
356
- return e.low || e.high ? new a(e.low >>> 0, e.high >>> 0) : p;
357
- }, a.prototype.toNumber = function(e) {
358
- if (!e && this.hi >>> 31) {
359
- var i = ~this.lo + 1 >>> 0, t = ~this.hi >>> 0;
360
- return i || (t = t + 1 >>> 0), -(i + t * 4294967296);
361
- }
362
- return this.lo + this.hi * 4294967296;
363
- }, a.prototype.toLong = function(e) {
364
- return h.Long ? new h.Long(this.lo | 0, this.hi | 0, !!e) : { low: this.lo | 0, high: this.hi | 0, unsigned: !!e };
365
- };
366
- var l = String.prototype.charCodeAt;
367
- return a.fromHash = function(e) {
368
- return e === c ? p : new a(
369
- (l.call(e, 0) | l.call(e, 1) << 8 | l.call(e, 2) << 16 | l.call(e, 3) << 24) >>> 0,
370
- (l.call(e, 4) | l.call(e, 5) << 8 | l.call(e, 6) << 16 | l.call(e, 7) << 24) >>> 0
371
- );
372
- }, a.prototype.toHash = function() {
373
- return String.fromCharCode(
374
- this.lo & 255,
375
- this.lo >>> 8 & 255,
376
- this.lo >>> 16 & 255,
377
- this.lo >>> 24,
378
- this.hi & 255,
379
- this.hi >>> 8 & 255,
380
- this.hi >>> 16 & 255,
381
- this.hi >>> 24
382
- );
383
- }, a.prototype.zzEncode = function() {
384
- var e = this.hi >> 31;
385
- return this.hi = ((this.hi << 1 | this.lo >>> 31) ^ e) >>> 0, this.lo = (this.lo << 1 ^ e) >>> 0, this;
386
- }, a.prototype.zzDecode = function() {
387
- var e = -(this.lo & 1);
388
- return this.lo = ((this.lo >>> 1 | this.hi << 31) ^ e) >>> 0, this.hi = (this.hi >>> 1 ^ e) >>> 0, this;
389
- }, a.prototype.length = function() {
390
- var e = this.lo, i = (this.lo >>> 28 | this.hi << 4) >>> 0, t = this.hi >>> 24;
391
- return t === 0 ? i === 0 ? e < 16384 ? e < 128 ? 1 : 2 : e < 2097152 ? 3 : 4 : i < 16384 ? i < 128 ? 5 : 6 : i < 2097152 ? 7 : 8 : t < 128 ? 9 : 10;
392
- }, Ne;
393
- }
394
- var Nt;
395
- function ie() {
396
- return Nt || (Nt = 1, (function(h) {
397
- var a = h;
398
- a.asPromise = dr(), a.base64 = Jr(), a.EventEmitter = Mr(), a.float = $r(), a.inquire = pr(), a.utf8 = Vr(), a.pool = zr(), a.LongBits = Wr(), a.isNode = !!(typeof ue < "u" && ue && ue.process && ue.process.versions && ue.process.versions.node), a.global = a.isNode && ue || typeof window < "u" && window || typeof self < "u" && self || pe, a.emptyArray = Object.freeze ? Object.freeze([]) : (
399
- /* istanbul ignore next */
400
- []
401
- ), a.emptyObject = Object.freeze ? Object.freeze({}) : (
402
- /* istanbul ignore next */
403
- {}
404
- ), a.isInteger = Number.isInteger || /* istanbul ignore next */
405
- function(n) {
406
- return typeof n == "number" && isFinite(n) && Math.floor(n) === n;
407
- }, a.isString = function(n) {
408
- return typeof n == "string" || n instanceof String;
409
- }, a.isObject = function(n) {
410
- return n && typeof n == "object";
411
- }, a.isset = /**
412
- * Checks if a property on a message is considered to be present.
413
- * @param {Object} obj Plain object or message instance
414
- * @param {string} prop Property name
415
- * @returns {boolean} `true` if considered to be present, otherwise `false`
416
- */
417
- a.isSet = function(n, e) {
418
- var i = n[e];
419
- return i != null && n.hasOwnProperty(e) ? typeof i != "object" || (Array.isArray(i) ? i.length : Object.keys(i).length) > 0 : !1;
420
- }, a.Buffer = (function() {
421
- try {
422
- var l = a.inquire("buffer").Buffer;
423
- return l.prototype.utf8Write ? l : (
424
- /* istanbul ignore next */
425
- null
426
- );
427
- } catch {
428
- return null;
429
- }
430
- })(), a._Buffer_from = null, a._Buffer_allocUnsafe = null, a.newBuffer = function(n) {
431
- return typeof n == "number" ? a.Buffer ? a._Buffer_allocUnsafe(n) : new a.Array(n) : a.Buffer ? a._Buffer_from(n) : typeof Uint8Array > "u" ? n : new Uint8Array(n);
432
- }, a.Array = typeof Uint8Array < "u" ? Uint8Array : Array, a.Long = /* istanbul ignore next */
433
- a.global.dcodeIO && /* istanbul ignore next */
434
- a.global.dcodeIO.Long || /* istanbul ignore next */
435
- a.global.Long || a.inquire("long"), a.key2Re = /^true|false|0|1$/, a.key32Re = /^-?(?:0|[1-9][0-9]*)$/, a.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/, a.longToHash = function(n) {
436
- return n ? a.LongBits.from(n).toHash() : a.LongBits.zeroHash;
437
- }, a.longFromHash = function(n, e) {
438
- var i = a.LongBits.fromHash(n);
439
- return a.Long ? a.Long.fromBits(i.lo, i.hi, e) : i.toNumber(!!e);
440
- };
441
- function p(l, n, e) {
442
- for (var i = Object.keys(n), t = 0; t < i.length; ++t)
443
- (l[i[t]] === void 0 || !e) && i[t] !== "__proto__" && (l[i[t]] = n[i[t]]);
444
- return l;
445
- }
446
- a.merge = p, a.recursionLimit = 100, a.makeProp = function(n, e) {
447
- Object.defineProperty(n, e, {
448
- enumerable: !0,
449
- configurable: !0,
450
- writable: !0
451
- });
452
- }, a.lcFirst = function(n) {
453
- return n.charAt(0).toLowerCase() + n.substring(1);
454
- };
455
- function c(l) {
456
- function n(e, i) {
457
- if (!(this instanceof n))
458
- return new n(e, i);
459
- Object.defineProperty(this, "message", { get: function() {
460
- return e;
461
- } }), Error.captureStackTrace ? Error.captureStackTrace(this, n) : Object.defineProperty(this, "stack", { value: new Error().stack || "" }), i && p(this, i);
462
- }
463
- return n.prototype = Object.create(Error.prototype, {
464
- constructor: {
465
- value: n,
466
- writable: !0,
467
- enumerable: !1,
468
- configurable: !0
469
- },
470
- name: {
471
- get: function() {
472
- return l;
473
- },
474
- set: void 0,
475
- enumerable: !1,
476
- // configurable: false would accurately preserve the behavior of
477
- // the original, but I'm guessing that was not intentional.
478
- // For an actual error subclass, this property would
479
- // be configurable.
480
- configurable: !0
481
- },
482
- toString: {
483
- value: function() {
484
- return this.name + ": " + this.message;
485
- },
486
- writable: !0,
487
- enumerable: !1,
488
- configurable: !0
489
- }
490
- }), n;
491
- }
492
- a.newError = c, a.ProtocolError = c("ProtocolError"), a.oneOfGetter = function(n) {
493
- for (var e = {}, i = 0; i < n.length; ++i)
494
- e[n[i]] = 1;
495
- return function() {
496
- for (var t = Object.keys(this), r = t.length - 1; r > -1; --r)
497
- if (e[t[r]] === 1 && this[t[r]] !== void 0 && this[t[r]] !== null)
498
- return t[r];
499
- };
500
- }, a.oneOfSetter = function(n) {
501
- return function(e) {
502
- for (var i = 0; i < n.length; ++i)
503
- n[i] !== e && delete this[n[i]];
504
- };
505
- }, a.toJSONOptions = {
506
- longs: String,
507
- enums: String,
508
- bytes: String,
509
- json: !0
510
- }, a._configure = function() {
511
- var l = a.Buffer;
512
- if (!l) {
513
- a._Buffer_from = a._Buffer_allocUnsafe = null;
514
- return;
515
- }
516
- a._Buffer_from = l.from !== Uint8Array.from && l.from || /* istanbul ignore next */
517
- function(e, i) {
518
- return new l(e, i);
519
- }, a._Buffer_allocUnsafe = l.allocUnsafe || /* istanbul ignore next */
520
- function(e) {
521
- return new l(e);
522
- };
523
- };
524
- })(pe)), pe;
525
- }
526
- var Te, Tt;
527
- function lt() {
528
- if (Tt) return Te;
529
- Tt = 1, Te = t;
530
- var h = ie(), a, p = h.LongBits, c = h.base64, l = h.utf8;
531
- function n(_, m, v) {
532
- this.fn = _, this.len = m, this.next = void 0, this.val = v;
533
- }
534
- function e() {
535
- }
536
- function i(_) {
537
- this.head = _.head, this.tail = _.tail, this.len = _.len, this.next = _.states;
538
- }
539
- function t() {
540
- this.len = 0, this.head = new n(e, 0, 0), this.tail = this.head, this.states = null;
541
- }
542
- var r = function() {
543
- return h.Buffer ? function() {
544
- return (t.create = function() {
545
- return new a();
546
- })();
547
- } : function() {
548
- return new t();
549
- };
550
- };
551
- t.create = r(), t.alloc = function(m) {
552
- return new h.Array(m);
553
- }, h.Array !== Array && (t.alloc = h.pool(t.alloc, h.Array.prototype.subarray)), t.prototype._push = function(m, v, g) {
554
- return this.tail = this.tail.next = new n(m, v, g), this.len += v, this;
555
- };
556
- function f(_, m, v) {
557
- m[v] = _ & 255;
558
- }
559
- function s(_, m, v) {
560
- for (; _ > 127; )
561
- m[v++] = _ & 127 | 128, _ >>>= 7;
562
- m[v] = _;
563
- }
564
- function u(_, m) {
565
- this.len = _, this.next = void 0, this.val = m;
566
- }
567
- u.prototype = Object.create(n.prototype), u.prototype.fn = s, t.prototype.uint32 = function(m) {
568
- return this.len += (this.tail = this.tail.next = new u(
569
- (m = m >>> 0) < 128 ? 1 : m < 16384 ? 2 : m < 2097152 ? 3 : m < 268435456 ? 4 : 5,
570
- m
571
- )).len, this;
572
- }, t.prototype.int32 = function(m) {
573
- return m < 0 ? this._push(o, 10, p.fromNumber(m)) : this.uint32(m);
574
- }, t.prototype.sint32 = function(m) {
575
- return this.uint32((m << 1 ^ m >> 31) >>> 0);
576
- };
577
- function o(_, m, v) {
578
- for (; _.hi; )
579
- m[v++] = _.lo & 127 | 128, _.lo = (_.lo >>> 7 | _.hi << 25) >>> 0, _.hi >>>= 7;
580
- for (; _.lo > 127; )
581
- m[v++] = _.lo & 127 | 128, _.lo = _.lo >>> 7;
582
- m[v++] = _.lo;
583
- }
584
- t.prototype.uint64 = function(m) {
585
- var v = p.from(m);
586
- return this._push(o, v.length(), v);
587
- }, t.prototype.int64 = t.prototype.uint64, t.prototype.sint64 = function(m) {
588
- var v = p.from(m).zzEncode();
589
- return this._push(o, v.length(), v);
590
- }, t.prototype.bool = function(m) {
591
- return this._push(f, 1, m ? 1 : 0);
592
- };
593
- function d(_, m, v) {
594
- m[v] = _ & 255, m[v + 1] = _ >>> 8 & 255, m[v + 2] = _ >>> 16 & 255, m[v + 3] = _ >>> 24;
595
- }
596
- t.prototype.fixed32 = function(m) {
597
- return this._push(d, 4, m >>> 0);
598
- }, t.prototype.sfixed32 = t.prototype.fixed32, t.prototype.fixed64 = function(m) {
599
- var v = p.from(m);
600
- return this._push(d, 4, v.lo)._push(d, 4, v.hi);
601
- }, t.prototype.sfixed64 = t.prototype.fixed64, t.prototype.float = function(m) {
602
- return this._push(h.float.writeFloatLE, 4, m);
603
- }, t.prototype.double = function(m) {
604
- return this._push(h.float.writeDoubleLE, 8, m);
605
- };
606
- var y = h.Array.prototype.set ? function(m, v, g) {
607
- v.set(m, g);
608
- } : function(m, v, g) {
609
- for (var E = 0; E < m.length; ++E)
610
- v[g + E] = m[E];
611
- };
612
- return t.prototype.bytes = function(m) {
613
- var v = m.length >>> 0;
614
- if (!v)
615
- return this._push(f, 1, 0);
616
- if (h.isString(m)) {
617
- var g = t.alloc(v = c.length(m));
618
- c.decode(m, g, 0), m = g;
619
- }
620
- return this.uint32(v)._push(y, v, m);
621
- }, t.prototype.string = function(m) {
622
- var v = l.length(m);
623
- return v ? this.uint32(v)._push(l.write, v, m) : this._push(f, 1, 0);
624
- }, t.prototype.fork = function() {
625
- return this.states = new i(this), this.head = this.tail = new n(e, 0, 0), this.len = 0, this;
626
- }, t.prototype.reset = function() {
627
- return this.states ? (this.head = this.states.head, this.tail = this.states.tail, this.len = this.states.len, this.states = this.states.next) : (this.head = this.tail = new n(e, 0, 0), this.len = 0), this;
628
- }, t.prototype.ldelim = function() {
629
- var m = this.head, v = this.tail, g = this.len;
630
- return this.reset().uint32(g), g && (this.tail.next = m.next, this.tail = v, this.len += g), this;
631
- }, t.prototype.finish = function() {
632
- for (var m = this.head.next, v = this.constructor.alloc(this.len), g = 0; m; )
633
- m.fn(m.val, v, g), g += m.len, m = m.next;
634
- return v;
635
- }, t._configure = function(_) {
636
- a = _, t.create = r(), a._configure();
637
- }, Te;
638
- }
639
- var qe, qt;
640
- function Ur() {
641
- if (qt) return qe;
642
- qt = 1, qe = p;
643
- var h = lt();
644
- (p.prototype = Object.create(h.prototype)).constructor = p;
645
- var a = ie();
646
- function p() {
647
- h.call(this);
648
- }
649
- p._configure = function() {
650
- p.alloc = a._Buffer_allocUnsafe, p.writeBytesBuffer = a.Buffer && a.Buffer.prototype instanceof Uint8Array && a.Buffer.prototype.set.name === "set" ? function(n, e, i) {
651
- e.set(n, i);
652
- } : function(n, e, i) {
653
- if (n.copy)
654
- n.copy(e, i, 0, n.length);
655
- else for (var t = 0; t < n.length; )
656
- e[i++] = n[t++];
657
- };
658
- }, p.prototype.bytes = function(n) {
659
- a.isString(n) && (n = a._Buffer_from(n, "base64"));
660
- var e = n.length >>> 0;
661
- return this.uint32(e), e && this._push(p.writeBytesBuffer, e, n), this;
662
- };
663
- function c(l, n, e) {
664
- l.length < 40 ? a.utf8.write(l, n, e) : n.utf8Write ? n.utf8Write(l, e) : n.write(l, e);
665
- }
666
- return p.prototype.string = function(n) {
667
- var e = a.Buffer.byteLength(n);
668
- return this.uint32(e), e && this._push(c, e, n), this;
669
- }, p._configure(), qe;
670
- }
671
- var De, Dt;
672
- function ct() {
673
- if (Dt) return De;
674
- Dt = 1, De = n;
675
- var h = ie(), a, p = h.LongBits, c = h.utf8;
676
- function l(s, u) {
677
- return RangeError("index out of range: " + s.pos + " + " + (u || 1) + " > " + s.len);
678
- }
679
- function n(s) {
680
- this.buf = s, this.pos = 0, this.len = s.length;
681
- }
682
- var e = typeof Uint8Array < "u" ? function(u) {
683
- if (u instanceof Uint8Array || Array.isArray(u))
684
- return new n(u);
685
- throw Error("illegal buffer");
686
- } : function(u) {
687
- if (Array.isArray(u))
688
- return new n(u);
689
- throw Error("illegal buffer");
690
- }, i = function() {
691
- return h.Buffer ? function(o) {
692
- return (n.create = function(y) {
693
- return h.Buffer.isBuffer(y) ? new a(y) : e(y);
694
- })(o);
695
- } : e;
696
- };
697
- n.create = i(), n.prototype._slice = h.Array.prototype.subarray || /* istanbul ignore next */
698
- h.Array.prototype.slice, n.prototype.uint32 = /* @__PURE__ */ (function() {
699
- var u = 4294967295;
700
- return function() {
701
- if (u = (this.buf[this.pos] & 127) >>> 0, this.buf[this.pos++] < 128 || (u = (u | (this.buf[this.pos] & 127) << 7) >>> 0, this.buf[this.pos++] < 128) || (u = (u | (this.buf[this.pos] & 127) << 14) >>> 0, this.buf[this.pos++] < 128) || (u = (u | (this.buf[this.pos] & 127) << 21) >>> 0, this.buf[this.pos++] < 128) || (u = (u | (this.buf[this.pos] & 15) << 28) >>> 0, this.buf[this.pos++] < 128)) return u;
702
- if ((this.pos += 5) > this.len)
703
- throw this.pos = this.len, l(this, 10);
704
- return u;
705
- };
706
- })(), n.prototype.int32 = function() {
707
- return this.uint32() | 0;
708
- }, n.prototype.sint32 = function() {
709
- var u = this.uint32();
710
- return u >>> 1 ^ -(u & 1) | 0;
711
- };
712
- function t() {
713
- var s = new p(0, 0), u = 0;
714
- if (this.len - this.pos > 4) {
715
- for (; u < 4; ++u)
716
- if (s.lo = (s.lo | (this.buf[this.pos] & 127) << u * 7) >>> 0, this.buf[this.pos++] < 128)
717
- return s;
718
- if (s.lo = (s.lo | (this.buf[this.pos] & 127) << 28) >>> 0, s.hi = (s.hi | (this.buf[this.pos] & 127) >> 4) >>> 0, this.buf[this.pos++] < 128)
719
- return s;
720
- u = 0;
721
- } else {
722
- for (; u < 3; ++u) {
723
- if (this.pos >= this.len)
724
- throw l(this);
725
- if (s.lo = (s.lo | (this.buf[this.pos] & 127) << u * 7) >>> 0, this.buf[this.pos++] < 128)
726
- return s;
727
- }
728
- return s.lo = (s.lo | (this.buf[this.pos++] & 127) << u * 7) >>> 0, s;
729
- }
730
- if (this.len - this.pos > 4) {
731
- for (; u < 5; ++u)
732
- if (s.hi = (s.hi | (this.buf[this.pos] & 127) << u * 7 + 3) >>> 0, this.buf[this.pos++] < 128)
733
- return s;
734
- } else
735
- for (; u < 5; ++u) {
736
- if (this.pos >= this.len)
737
- throw l(this);
738
- if (s.hi = (s.hi | (this.buf[this.pos] & 127) << u * 7 + 3) >>> 0, this.buf[this.pos++] < 128)
739
- return s;
740
- }
741
- throw Error("invalid varint encoding");
742
- }
743
- n.prototype.bool = function() {
744
- return this.uint32() !== 0;
745
- };
746
- function r(s, u) {
747
- return (s[u - 4] | s[u - 3] << 8 | s[u - 2] << 16 | s[u - 1] << 24) >>> 0;
748
- }
749
- n.prototype.fixed32 = function() {
750
- if (this.pos + 4 > this.len)
751
- throw l(this, 4);
752
- return r(this.buf, this.pos += 4);
753
- }, n.prototype.sfixed32 = function() {
754
- if (this.pos + 4 > this.len)
755
- throw l(this, 4);
756
- return r(this.buf, this.pos += 4) | 0;
757
- };
758
- function f() {
759
- if (this.pos + 8 > this.len)
760
- throw l(this, 8);
761
- return new p(r(this.buf, this.pos += 4), r(this.buf, this.pos += 4));
762
- }
763
- return n.prototype.float = function() {
764
- if (this.pos + 4 > this.len)
765
- throw l(this, 4);
766
- var u = h.float.readFloatLE(this.buf, this.pos);
767
- return this.pos += 4, u;
768
- }, n.prototype.double = function() {
769
- if (this.pos + 8 > this.len)
770
- throw l(this, 4);
771
- var u = h.float.readDoubleLE(this.buf, this.pos);
772
- return this.pos += 8, u;
773
- }, n.prototype.bytes = function() {
774
- var u = this.uint32(), o = this.pos, d = this.pos + u;
775
- if (d > this.len)
776
- throw l(this, u);
777
- if (this.pos += u, Array.isArray(this.buf))
778
- return this.buf.slice(o, d);
779
- if (o === d) {
780
- var y = h.Buffer;
781
- return y ? y.alloc(0) : new this.buf.constructor(0);
782
- }
783
- return this._slice.call(this.buf, o, d);
784
- }, n.prototype.string = function() {
785
- var u = this.bytes();
786
- return c.read(u, 0, u.length);
787
- }, n.prototype.skip = function(u) {
788
- if (typeof u == "number") {
789
- if (this.pos + u > this.len)
790
- throw l(this, u);
791
- this.pos += u;
792
- } else
793
- do
794
- if (this.pos >= this.len)
795
- throw l(this);
796
- while (this.buf[this.pos++] & 128);
797
- return this;
798
- }, n.recursionLimit = h.recursionLimit, n.prototype.skipType = function(s, u) {
799
- if (u === void 0 && (u = 0), u > n.recursionLimit)
800
- throw Error("maximum nesting depth exceeded");
801
- switch (s) {
802
- case 0:
803
- this.skip();
804
- break;
805
- case 1:
806
- this.skip(8);
807
- break;
808
- case 2:
809
- this.skip(this.uint32());
810
- break;
811
- case 3:
812
- for (; (s = this.uint32() & 7) !== 4; )
813
- this.skipType(s, u + 1);
814
- break;
815
- case 5:
816
- this.skip(4);
817
- break;
818
- /* istanbul ignore next */
819
- default:
820
- throw Error("invalid wire type " + s + " at offset " + this.pos);
821
- }
822
- return this;
823
- }, n._configure = function(s) {
824
- a = s, n.create = i(), a._configure();
825
- var u = h.Long ? "toLong" : (
826
- /* istanbul ignore next */
827
- "toNumber"
828
- );
829
- h.merge(n.prototype, {
830
- int64: function() {
831
- return t.call(this)[u](!1);
832
- },
833
- uint64: function() {
834
- return t.call(this)[u](!0);
835
- },
836
- sint64: function() {
837
- return t.call(this).zzDecode()[u](!1);
838
- },
839
- fixed64: function() {
840
- return f.call(this)[u](!0);
841
- },
842
- sfixed64: function() {
843
- return f.call(this)[u](!1);
844
- }
845
- });
846
- }, De;
847
- }
848
- var Be, Bt;
849
- function Hr() {
850
- if (Bt) return Be;
851
- Bt = 1, Be = p;
852
- var h = ct();
853
- (p.prototype = Object.create(h.prototype)).constructor = p;
854
- var a = ie();
855
- function p(c) {
856
- h.call(this, c);
857
- }
858
- return p._configure = function() {
859
- a.Buffer && (p.prototype._slice = a.Buffer.prototype.slice);
860
- }, p.prototype.string = function() {
861
- var l = this.uint32();
862
- return this.buf.utf8Slice ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + l, this.len)) : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + l, this.len));
863
- }, p._configure(), Be;
864
- }
865
- var Ie = {}, Ce, It;
866
- function Gr() {
867
- if (It) return Ce;
868
- It = 1, Ce = a;
869
- var h = ie();
870
- (a.prototype = Object.create(h.EventEmitter.prototype)).constructor = a;
871
- function a(p, c, l) {
872
- if (typeof p != "function")
873
- throw TypeError("rpcImpl must be a function");
874
- h.EventEmitter.call(this), this.rpcImpl = p, this.requestDelimited = !!c, this.responseDelimited = !!l;
875
- }
876
- return a.prototype.rpcCall = function p(c, l, n, e, i) {
877
- if (!e)
878
- throw TypeError("request must be specified");
879
- var t = this;
880
- if (!i)
881
- return h.asPromise(p, t, c, l, n, e);
882
- if (!t.rpcImpl) {
883
- setTimeout(function() {
884
- i(Error("already ended"));
885
- }, 0);
886
- return;
887
- }
888
- try {
889
- return t.rpcImpl(
890
- c,
891
- l[t.requestDelimited ? "encodeDelimited" : "encode"](e).finish(),
892
- function(f, s) {
893
- if (f)
894
- return t.emit("error", f, c), i(f);
895
- if (s === null) {
896
- t.end(
897
- /* endedByRPC */
898
- !0
899
- );
900
- return;
901
- }
902
- if (!(s instanceof n))
903
- try {
904
- s = n[t.responseDelimited ? "decodeDelimited" : "decode"](s);
905
- } catch (u) {
906
- return t.emit("error", u, c), i(u);
907
- }
908
- return t.emit("data", s, c), i(null, s);
909
- }
910
- );
911
- } catch (r) {
912
- t.emit("error", r, c), setTimeout(function() {
913
- i(r);
914
- }, 0);
915
- return;
916
- }
917
- }, a.prototype.end = function(c) {
918
- return this.rpcImpl && (c || this.rpcImpl(null, null, null), this.rpcImpl = null, this.emit("end").off()), this;
919
- }, Ce;
920
- }
921
- var Ct;
922
- function yr() {
923
- return Ct || (Ct = 1, (function(h) {
924
- var a = h;
925
- a.Service = Gr();
926
- })(Ie)), Ie;
927
- }
928
- var Pe, Pt;
929
- function vr() {
930
- return Pt || (Pt = 1, Pe = {}), Pe;
931
- }
932
- var Lt;
933
- function Xr() {
934
- return Lt || (Lt = 1, (function(h) {
935
- var a = h;
936
- a.build = "minimal", a.Writer = lt(), a.BufferWriter = Ur(), a.Reader = ct(), a.BufferReader = Hr(), a.util = ie(), a.rpc = yr(), a.roots = vr(), a.configure = p;
937
- function p() {
938
- a.util._configure(), a.Writer._configure(a.BufferWriter), a.Reader._configure(a.BufferReader);
939
- }
940
- p();
941
- })(be)), be;
942
- }
943
- var Le = {}, je = { exports: {} }, Je, jt;
944
- function Zr() {
945
- if (jt) return Je;
946
- jt = 1, Je = a;
947
- var h = /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;
948
- function a(c, l) {
949
- typeof c == "string" && (l = c, c = void 0);
950
- var n = [];
951
- function e(t) {
952
- if (typeof t != "string") {
953
- var r = i();
954
- if (a.verbose && console.log("codegen: " + r), r = "return " + r, t) {
955
- for (var f = Object.keys(t), s = new Array(f.length + 1), u = new Array(f.length), o = 0; o < f.length; )
956
- s[o] = f[o], u[o] = t[f[o++]];
957
- return s[o] = r, Function.apply(null, s).apply(null, u);
958
- }
959
- return Function(r)();
960
- }
961
- for (var d = new Array(arguments.length - 1), y = 0; y < d.length; )
962
- d[y] = arguments[++y];
963
- if (y = 0, t = t.replace(/%([%dfijs])/g, function(m, v) {
964
- var g = d[y++];
965
- switch (v) {
966
- case "d":
967
- case "f":
968
- return String(Number(g));
969
- case "i":
970
- return String(Math.floor(g));
971
- case "j":
972
- return JSON.stringify(g);
973
- case "s":
974
- return String(g);
975
- }
976
- return "%";
977
- }), y !== d.length)
978
- throw Error("parameter count mismatch");
979
- return n.push(t), e;
980
- }
981
- function i(t) {
982
- return "function " + p(t || l) + "(" + (c && c.join(",") || "") + `){
983
- ` + n.join(`
984
- `) + `
985
- }`;
986
- }
987
- return e.toString = i, e;
988
- }
989
- a.verbose = !1;
990
- function p(c) {
991
- return !c || (c = String(c).replace(/[^\w$]/g, ""), !c) ? "" : (/^\d/.test(c) && (c = "_" + c), h.test(c) ? c + "_" : c);
992
- }
993
- return Je;
994
- }
995
- var Me, Jt;
996
- function Kr() {
997
- if (Jt) return Me;
998
- Jt = 1, Me = c;
999
- var h = dr(), a = pr(), p = a("fs");
1000
- function c(l, n, e) {
1001
- return typeof n == "function" ? (e = n, n = {}) : n || (n = {}), e ? !n.xhr && p && p.readFile ? p.readFile(l, function(t, r) {
1002
- return t && typeof XMLHttpRequest < "u" ? c.xhr(l, n, e) : t ? e(t) : e(null, n.binary ? r : r.toString("utf8"));
1003
- }) : c.xhr(l, n, e) : h(c, this, l, n);
1004
- }
1005
- return c.xhr = function(n, e, i) {
1006
- var t = new XMLHttpRequest();
1007
- t.onreadystatechange = function() {
1008
- if (t.readyState === 4) {
1009
- if (t.status !== 0 && t.status !== 200)
1010
- return i(Error("status " + t.status));
1011
- if (e.binary) {
1012
- var f = t.response;
1013
- if (!f) {
1014
- f = [];
1015
- for (var s = 0; s < t.responseText.length; ++s)
1016
- f.push(t.responseText.charCodeAt(s) & 255);
1017
- }
1018
- return i(null, typeof Uint8Array < "u" ? new Uint8Array(f) : f);
1019
- }
1020
- return i(null, t.responseText);
1021
- }
1022
- }, e.binary && ("overrideMimeType" in t && t.overrideMimeType("text/plain; charset=x-user-defined"), t.responseType = "arraybuffer"), t.open("GET", n), t.send();
1023
- }, Me;
1024
- }
1025
- var $e = {}, Mt;
1026
- function Qr() {
1027
- return Mt || (Mt = 1, (function(h) {
1028
- var a = h, p = (
1029
- /**
1030
- * Tests if the specified path is absolute.
1031
- * @param {string} path Path to test
1032
- * @returns {boolean} `true` if path is absolute
1033
- */
1034
- a.isAbsolute = function(n) {
1035
- return /^(?:\/|\w+:)/.test(n);
1036
- }
1037
- ), c = (
1038
- /**
1039
- * Normalizes the specified path.
1040
- * @param {string} path Path to normalize
1041
- * @returns {string} Normalized path
1042
- */
1043
- a.normalize = function(n) {
1044
- n = n.replace(/\\/g, "/").replace(/\/{2,}/g, "/");
1045
- var e = n.split("/"), i = p(n), t = "";
1046
- i && (t = e.shift() + "/");
1047
- for (var r = 0; r < e.length; )
1048
- e[r] === ".." ? r > 0 && e[r - 1] !== ".." ? e.splice(--r, 2) : i ? e.splice(r, 1) : ++r : e[r] === "." ? e.splice(r, 1) : ++r;
1049
- return t + e.join("/");
1050
- }
1051
- );
1052
- a.resolve = function(n, e, i) {
1053
- return i || (e = c(e)), p(e) ? e : (i || (n = c(n)), (n = n.replace(/(?:\/|^)[^/]+$/, "")).length ? c(n + "/" + e) : e);
1054
- };
1055
- })($e)), $e;
1056
- }
1057
- var Ve = {}, $t;
1058
- function Yr() {
1059
- return $t || ($t = 1, (function(h) {
1060
- var a = h;
1061
- a.numberRe = /^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/, a.typeRefRe = /^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/, a.reservedRe = /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/, a.unsafePropertyRe = /^(?:__proto__|prototype|constructor)$/;
1062
- })(Ve)), Ve;
1063
- }
1064
- var ze, Vt;
1065
- function ce() {
1066
- if (Vt) return ze;
1067
- Vt = 1, ze = t;
1068
- var h = se();
1069
- ((t.prototype = Object.create(h.prototype)).constructor = t).className = "Namespace";
1070
- var a = ne(), p = H(), c = fe(), l, n, e;
1071
- t.fromJSON = function(s, u, o) {
1072
- return o = p.checkDepth(o), new t(s, u.options).addJSON(u.nested, o);
1073
- };
1074
- function i(f, s) {
1075
- if (f && f.length) {
1076
- for (var u = {}, o = 0; o < f.length; ++o)
1077
- u[f[o].name] = f[o].toJSON(s);
1078
- return u;
1079
- }
1080
- }
1081
- t.arrayToJSON = i, t.isReservedId = function(s, u) {
1082
- if (s) {
1083
- for (var o = 0; o < s.length; ++o)
1084
- if (typeof s[o] != "string" && s[o][0] <= u && s[o][1] > u)
1085
- return !0;
1086
- }
1087
- return !1;
1088
- }, t.isReservedName = function(s, u) {
1089
- if (s) {
1090
- for (var o = 0; o < s.length; ++o)
1091
- if (s[o] === u)
1092
- return !0;
1093
- }
1094
- return !1;
1095
- };
1096
- function t(f, s) {
1097
- h.call(this, f, s), this.nested = void 0, this._nestedArray = null, this._lookupCache = /* @__PURE__ */ Object.create(null), this._needsRecursiveFeatureResolution = !0, this._needsRecursiveResolve = !0;
1098
- }
1099
- function r(f) {
1100
- f._nestedArray = null, f._lookupCache = /* @__PURE__ */ Object.create(null);
1101
- for (var s = f; s = s.parent; )
1102
- s._lookupCache = /* @__PURE__ */ Object.create(null);
1103
- return f;
1104
- }
1105
- return Object.defineProperty(t.prototype, "nestedArray", {
1106
- get: function() {
1107
- return this._nestedArray || (this._nestedArray = p.toArray(this.nested));
1108
- }
1109
- }), t.prototype.toJSON = function(s) {
1110
- return p.toObject([
1111
- "options",
1112
- this.options,
1113
- "nested",
1114
- i(this.nestedArray, s)
1115
- ]);
1116
- }, t.prototype.addJSON = function(s, u) {
1117
- u = p.checkDepth(u);
1118
- var o = this;
1119
- if (s)
1120
- for (var d = Object.keys(s), y = 0, _; y < d.length; ++y)
1121
- _ = s[d[y]], o.add(
1122
- // most to least likely
1123
- (_.fields !== void 0 ? l.fromJSON : _.values !== void 0 ? e.fromJSON : _.methods !== void 0 ? n.fromJSON : _.id !== void 0 ? a.fromJSON : t.fromJSON)(d[y], _, u + 1)
1124
- );
1125
- return this;
1126
- }, t.prototype.get = function(s) {
1127
- return this.nested && Object.prototype.hasOwnProperty.call(this.nested, s) ? this.nested[s] : null;
1128
- }, t.prototype.getEnum = function(s) {
1129
- if (this.nested && Object.prototype.hasOwnProperty.call(this.nested, s) && this.nested[s] instanceof e)
1130
- return this.nested[s].values;
1131
- throw Error("no such enum: " + s);
1132
- }, t.prototype.add = function(s) {
1133
- if (!(s instanceof a && s.extend !== void 0 || s instanceof l || s instanceof c || s instanceof e || s instanceof n || s instanceof t))
1134
- throw TypeError("object must be a valid nested object");
1135
- if (s.name === "__proto__")
1136
- return this;
1137
- if (!this.nested)
1138
- this.nested = {};
1139
- else {
1140
- var u = this.get(s.name);
1141
- if (u)
1142
- if (u instanceof t && s instanceof t && !(u instanceof l || u instanceof n)) {
1143
- for (var o = u.nestedArray, d = 0; d < o.length; ++d)
1144
- s.add(o[d]);
1145
- this.remove(u), this.nested || (this.nested = {}), s.setOptions(u.options, !0);
1146
- } else
1147
- throw Error("duplicate name '" + s.name + "' in " + this);
1148
- }
1149
- this.nested[s.name] = s, this instanceof l || this instanceof n || this instanceof e || this instanceof a || s._edition || (s._edition = s._defaultEdition), this._needsRecursiveFeatureResolution = !0, this._needsRecursiveResolve = !0;
1150
- for (var y = this; y = y.parent; )
1151
- y._needsRecursiveFeatureResolution = !0, y._needsRecursiveResolve = !0;
1152
- return s.onAdd(this), r(this);
1153
- }, t.prototype.remove = function(s) {
1154
- if (!(s instanceof h))
1155
- throw TypeError("object must be a ReflectionObject");
1156
- if (s.parent !== this)
1157
- throw Error(s + " is not a member of " + this);
1158
- return delete this.nested[s.name], Object.keys(this.nested).length || (this.nested = void 0), s.onRemove(this), r(this);
1159
- }, t.prototype.define = function(s, u) {
1160
- if (p.isString(s))
1161
- s = s.split(".");
1162
- else if (!Array.isArray(s))
1163
- throw TypeError("illegal path");
1164
- if (s && s.length && s[0] === "")
1165
- throw Error("path must be relative");
1166
- for (var o = this; s.length > 0; ) {
1167
- var d = s.shift();
1168
- if (o.nested && o.nested[d]) {
1169
- if (o = o.nested[d], !(o instanceof t))
1170
- throw Error("path conflicts with non-namespace objects");
1171
- } else
1172
- o.add(o = new t(d));
1173
- }
1174
- return u && o.addJSON(u), o;
1175
- }, t.prototype.resolveAll = function() {
1176
- if (!this._needsRecursiveResolve) return this;
1177
- this._resolveFeaturesRecursive(this._edition);
1178
- var s = this.nestedArray, u = 0;
1179
- for (this.resolve(); u < s.length; )
1180
- s[u] instanceof t ? s[u++].resolveAll() : s[u++].resolve();
1181
- return this._needsRecursiveResolve = !1, this;
1182
- }, t.prototype._resolveFeaturesRecursive = function(s) {
1183
- return this._needsRecursiveFeatureResolution ? (this._needsRecursiveFeatureResolution = !1, s = this._edition || s, h.prototype._resolveFeaturesRecursive.call(this, s), this.nestedArray.forEach((u) => {
1184
- u._resolveFeaturesRecursive(s);
1185
- }), this) : this;
1186
- }, t.prototype.lookup = function(s, u, o) {
1187
- if (typeof u == "boolean" ? (o = u, u = void 0) : u && !Array.isArray(u) && (u = [u]), p.isString(s) && s.length) {
1188
- if (s === ".")
1189
- return this.root;
1190
- s = s.split(".");
1191
- } else if (!s.length)
1192
- return this;
1193
- var d = s.join(".");
1194
- if (s[0] === "")
1195
- return this.root.lookup(s.slice(1), u);
1196
- var y = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects["." + d];
1197
- if (y && (!u || u.indexOf(y.constructor) > -1) || (y = this._lookupImpl(s, d), y && (!u || u.indexOf(y.constructor) > -1)))
1198
- return y;
1199
- if (o)
1200
- return null;
1201
- for (var _ = this; _.parent; ) {
1202
- if (y = _.parent._lookupImpl(s, d), y && (!u || u.indexOf(y.constructor) > -1))
1203
- return y;
1204
- _ = _.parent;
1205
- }
1206
- return null;
1207
- }, t.prototype._lookupImpl = function(s, u) {
1208
- if (Object.prototype.hasOwnProperty.call(this._lookupCache, u))
1209
- return this._lookupCache[u];
1210
- var o = this.get(s[0]), d = null;
1211
- if (o)
1212
- s.length === 1 ? d = o : o instanceof t && (s = s.slice(1), d = o._lookupImpl(s, s.join(".")));
1213
- else
1214
- for (var y = 0; y < this.nestedArray.length; ++y)
1215
- if (this._nestedArray[y] instanceof t && (o = this._nestedArray[y]._lookupImpl(s, u))) {
1216
- d = o;
1217
- break;
1218
- }
1219
- return this._lookupCache[u] = d, d;
1220
- }, t.prototype.lookupType = function(s) {
1221
- var u = this.lookup(s, [l]);
1222
- if (!u)
1223
- throw Error("no such type: " + s);
1224
- return u;
1225
- }, t.prototype.lookupEnum = function(s) {
1226
- var u = this.lookup(s, [e]);
1227
- if (!u)
1228
- throw Error("no such Enum '" + s + "' in " + this);
1229
- return u;
1230
- }, t.prototype.lookupTypeOrEnum = function(s) {
1231
- var u = this.lookup(s, [l, e]);
1232
- if (!u)
1233
- throw Error("no such Type or Enum '" + s + "' in " + this);
1234
- return u;
1235
- }, t.prototype.lookupService = function(s) {
1236
- var u = this.lookup(s, [n]);
1237
- if (!u)
1238
- throw Error("no such Service '" + s + "' in " + this);
1239
- return u;
1240
- }, t._configure = function(f, s, u) {
1241
- l = f, n = s, e = u;
1242
- }, ze;
1243
- }
1244
- var We, zt;
1245
- function ht() {
1246
- if (zt) return We;
1247
- zt = 1, We = c;
1248
- var h = ne();
1249
- ((c.prototype = Object.create(h.prototype)).constructor = c).className = "MapField";
1250
- var a = ae(), p = H();
1251
- function c(l, n, e, i, t, r) {
1252
- if (h.call(this, l, n, i, void 0, void 0, t, r), !p.isString(e))
1253
- throw TypeError("keyType must be a string");
1254
- this.keyType = e, this.resolvedKeyType = null, this.map = !0;
1255
- }
1256
- return c.fromJSON = function(n, e) {
1257
- return new c(n, e.id, e.keyType, e.type, e.options, e.comment);
1258
- }, c.prototype.toJSON = function(n) {
1259
- var e = n ? !!n.keepComments : !1;
1260
- return p.toObject([
1261
- "keyType",
1262
- this.keyType,
1263
- "type",
1264
- this.type,
1265
- "id",
1266
- this.id,
1267
- "extend",
1268
- this.extend,
1269
- "options",
1270
- this.options,
1271
- "comment",
1272
- e ? this.comment : void 0
1273
- ]);
1274
- }, c.prototype.resolve = function() {
1275
- if (this.resolved)
1276
- return this;
1277
- if (a.mapKey[this.keyType] === void 0)
1278
- throw Error("invalid key type: " + this.keyType);
1279
- return h.prototype.resolve.call(this);
1280
- }, c.d = function(n, e, i) {
1281
- return typeof i == "function" ? i = p.decorateType(i).name : i && typeof i == "object" && (i = p.decorateEnum(i).name), function(r, f) {
1282
- p.decorateType(r.constructor).add(new c(f, n, e, i));
1283
- };
1284
- }, We;
1285
- }
1286
- var Ue, Wt;
1287
- function dt() {
1288
- if (Wt) return Ue;
1289
- Wt = 1, Ue = p;
1290
- var h = se();
1291
- ((p.prototype = Object.create(h.prototype)).constructor = p).className = "Method";
1292
- var a = H();
1293
- function p(c, l, n, e, i, t, r, f, s) {
1294
- if (a.isObject(i) ? (r = i, i = t = void 0) : a.isObject(t) && (r = t, t = void 0), !(l === void 0 || a.isString(l)))
1295
- throw TypeError("type must be a string");
1296
- if (!a.isString(n))
1297
- throw TypeError("requestType must be a string");
1298
- if (!a.isString(e))
1299
- throw TypeError("responseType must be a string");
1300
- h.call(this, c, r), this.type = l || "rpc", this.requestType = n, this.requestStream = i ? !0 : void 0, this.responseType = e, this.responseStream = t ? !0 : void 0, this.resolvedRequestType = null, this.resolvedResponseType = null, this.comment = f, this.parsedOptions = s;
1301
- }
1302
- return p.fromJSON = function(l, n) {
1303
- return new p(l, n.type, n.requestType, n.responseType, n.requestStream, n.responseStream, n.options, n.comment, n.parsedOptions);
1304
- }, p.prototype.toJSON = function(l) {
1305
- var n = l ? !!l.keepComments : !1;
1306
- return a.toObject([
1307
- "type",
1308
- this.type !== "rpc" && /* istanbul ignore next */
1309
- this.type || void 0,
1310
- "requestType",
1311
- this.requestType,
1312
- "requestStream",
1313
- this.requestStream,
1314
- "responseType",
1315
- this.responseType,
1316
- "responseStream",
1317
- this.responseStream,
1318
- "options",
1319
- this.options,
1320
- "comment",
1321
- n ? this.comment : void 0,
1322
- "parsedOptions",
1323
- this.parsedOptions
1324
- ]);
1325
- }, p.prototype.resolve = function() {
1326
- return this.resolved ? this : (this.resolvedRequestType = this.parent.lookupType(this.requestType), this.resolvedResponseType = this.parent.lookupType(this.responseType), h.prototype.resolve.call(this));
1327
- }, Ue;
1328
- }
1329
- var He, Ut;
1330
- function pt() {
1331
- if (Ut) return He;
1332
- Ut = 1, He = n;
1333
- var h = ce();
1334
- ((n.prototype = Object.create(h.prototype)).constructor = n).className = "Service";
1335
- var a = dt(), p = H(), c = yr(), l = p.patterns.reservedRe;
1336
- function n(i, t) {
1337
- h.call(this, i, t), this.methods = {}, this._methodsArray = null;
1338
- }
1339
- n.fromJSON = function(t, r, f) {
1340
- f = p.checkDepth(f);
1341
- var s = new n(t, r.options);
1342
- if (r.methods)
1343
- for (var u = Object.keys(r.methods), o = 0; o < u.length; ++o)
1344
- s.add(a.fromJSON(u[o], r.methods[u[o]]));
1345
- return r.nested && s.addJSON(r.nested, f), r.edition && (s._edition = r.edition), s.comment = r.comment, s._defaultEdition = "proto3", s;
1346
- }, n.prototype.toJSON = function(t) {
1347
- var r = h.prototype.toJSON.call(this, t), f = t ? !!t.keepComments : !1;
1348
- return p.toObject([
1349
- "edition",
1350
- this._editionToJSON(),
1351
- "options",
1352
- r && r.options || void 0,
1353
- "methods",
1354
- h.arrayToJSON(this.methodsArray, t) || /* istanbul ignore next */
1355
- {},
1356
- "nested",
1357
- r && r.nested || void 0,
1358
- "comment",
1359
- f ? this.comment : void 0
1360
- ]);
1361
- }, Object.defineProperty(n.prototype, "methodsArray", {
1362
- get: function() {
1363
- return this._methodsArray || (this._methodsArray = p.toArray(this.methods));
1364
- }
1365
- });
1366
- function e(i) {
1367
- return i._methodsArray = null, i;
1368
- }
1369
- return n.prototype.get = function(t) {
1370
- return Object.prototype.hasOwnProperty.call(this.methods, t) ? this.methods[t] : h.prototype.get.call(this, t);
1371
- }, n.prototype.resolveAll = function() {
1372
- if (!this._needsRecursiveResolve) return this;
1373
- h.prototype.resolve.call(this);
1374
- for (var t = this.methodsArray, r = 0; r < t.length; ++r)
1375
- t[r].resolve();
1376
- return this;
1377
- }, n.prototype._resolveFeaturesRecursive = function(t) {
1378
- return this._needsRecursiveFeatureResolution ? (t = this._edition || t, h.prototype._resolveFeaturesRecursive.call(this, t), this.methodsArray.forEach((r) => {
1379
- r._resolveFeaturesRecursive(t);
1380
- }), this) : this;
1381
- }, n.prototype.add = function(t) {
1382
- if (this.get(t.name))
1383
- throw Error("duplicate name '" + t.name + "' in " + this);
1384
- return t instanceof a ? t.name === "__proto__" ? this : (this.methods[t.name] = t, t.parent = this, e(this)) : h.prototype.add.call(this, t);
1385
- }, n.prototype.remove = function(t) {
1386
- if (t instanceof a) {
1387
- if (this.methods[t.name] !== t)
1388
- throw Error(t + " is not a member of " + this);
1389
- return delete this.methods[t.name], t.parent = null, e(this);
1390
- }
1391
- return h.prototype.remove.call(this, t);
1392
- }, n.prototype.create = function(t, r, f) {
1393
- for (var s = new c.Service(t, r, f), u = 0, o; u < /* initializes */
1394
- this.methodsArray.length; ++u) {
1395
- var d = p.lcFirst((o = this._methodsArray[u]).resolve().name).replace(/[^$\w_]/g, "");
1396
- s[d] = p.codegen(["r", "c"], l.test(d) ? d + "_" : d)("return this.rpcCall(m,q,s,r,c)")({
1397
- m: o,
1398
- q: o.resolvedRequestType.ctor,
1399
- s: o.resolvedResponseType.ctor
1400
- });
1401
- }
1402
- return s;
1403
- }, He;
1404
- }
1405
- var Ge, Ht;
1406
- function yt() {
1407
- if (Ht) return Ge;
1408
- Ht = 1, Ge = a;
1409
- var h = ie();
1410
- function a(p) {
1411
- if (p)
1412
- for (var c = Object.keys(p), l = 0; l < c.length; ++l) {
1413
- var n = c[l];
1414
- n !== "__proto__" && (this[n] = p[n]);
1415
- }
1416
- }
1417
- return a.create = function(c) {
1418
- return this.$type.create(c);
1419
- }, a.encode = function(c, l) {
1420
- return this.$type.encode(c, l);
1421
- }, a.encodeDelimited = function(c, l) {
1422
- return this.$type.encodeDelimited(c, l);
1423
- }, a.decode = function(c) {
1424
- return this.$type.decode(c);
1425
- }, a.decodeDelimited = function(c) {
1426
- return this.$type.decodeDelimited(c);
1427
- }, a.verify = function(c) {
1428
- return this.$type.verify(c);
1429
- }, a.fromObject = function(c) {
1430
- return this.$type.fromObject(c);
1431
- }, a.toObject = function(c, l) {
1432
- return this.$type.toObject(c, l);
1433
- }, a.prototype.toJSON = function() {
1434
- return this.$type.toObject(this, h.toJSONOptions);
1435
- }, Ge;
1436
- }
1437
- var Xe, Gt;
1438
- function mr() {
1439
- if (Gt) return Xe;
1440
- Gt = 1, Xe = l;
1441
- var h = re(), a = ae(), p = H();
1442
- function c(n) {
1443
- return "missing required '" + n.name + "'";
1444
- }
1445
- function l(n) {
1446
- for (var e = p.codegen(["r", "l", "e", "n"], n.name + "$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("if(n===undefined)n=0")("if(n>Reader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor" + (n.fieldsArray.filter(function(u) {
1447
- return u.map;
1448
- }).length ? ",k,value" : ""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"), i = 0; i < /* initializes */
1449
- n.fieldsArray.length; ++i) {
1450
- var t = n._fieldsArray[i].resolve(), r = t.resolvedType instanceof h ? "int32" : t.type, f = "m" + p.safeProp(t.name);
1451
- e("case %i: {", t.id), t.map ? (e("if(%s===util.emptyObject)", f)("%s={}", f)("var c2 = r.uint32()+r.pos"), a.defaults[t.keyType] !== void 0 ? e("k=%j", a.defaults[t.keyType]) : e("k=null"), a.defaults[r] !== void 0 ? e("value=%j", a.defaults[r]) : e("value=null"), e("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break", t.keyType)("case 2:"), a.basic[r] === void 0 ? e("value=types[%i].decode(r,r.uint32(),undefined,n+1)", i) : e("value=r.%s()", r), e("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"), a.long[t.keyType] !== void 0 ? e('%s[typeof k==="object"?util.longToHash(k):k]=value', f) : (t.keyType === "string" && e('if(k==="__proto__")')("util.makeProp(%s,k)", f), e("%s[k]=value", f))) : t.repeated ? (e("if(!(%s&&%s.length))", f, f)("%s=[]", f), a.packed[r] !== void 0 && e("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())", f, r)("}else"), a.basic[r] === void 0 ? e(t.delimited ? "%s.push(types[%i].decode(r,undefined,((t&~7)|4),n+1))" : "%s.push(types[%i].decode(r,r.uint32(),undefined,n+1))", f, i) : e("%s.push(r.%s())", f, r)) : a.basic[r] === void 0 ? e(t.delimited ? "%s=types[%i].decode(r,undefined,((t&~7)|4),n+1)" : "%s=types[%i].decode(r,r.uint32(),undefined,n+1)", f, i) : e("%s=r.%s()", f, r), e("break")("}");
1452
- }
1453
- for (e("default:")("r.skipType(t&7,n)")("break")("}")("}"), i = 0; i < n._fieldsArray.length; ++i) {
1454
- var s = n._fieldsArray[i];
1455
- s.required && e("if(!m.hasOwnProperty(%j))", s.name)("throw util.ProtocolError(%j,{instance:m})", c(s));
1456
- }
1457
- return e("return m");
1458
- }
1459
- return Xe;
1460
- }
1461
- var Ze, Xt;
1462
- function gr() {
1463
- if (Xt) return Ze;
1464
- Xt = 1, Ze = n;
1465
- var h = re(), a = H();
1466
- function p(e, i) {
1467
- return e.name + ": " + i + (e.repeated && i !== "array" ? "[]" : e.map && i !== "object" ? "{k:" + e.keyType + "}" : "") + " expected";
1468
- }
1469
- function c(e, i, t, r) {
1470
- if (i.resolvedType)
1471
- if (i.resolvedType instanceof h) {
1472
- e("switch(%s){", r)("default:")("return%j", p(i, "enum value"));
1473
- for (var f = Object.keys(i.resolvedType.values), s = 0; s < f.length; ++s) e("case %i:", i.resolvedType.values[f[s]]);
1474
- e("break")("}");
1475
- } else
1476
- e("{")("var e=types[%i].verify(%s,n+1);", t, r)("if(e)")("return%j+e", i.name + ".")("}");
1477
- else
1478
- switch (i.type) {
1479
- case "int32":
1480
- case "uint32":
1481
- case "sint32":
1482
- case "fixed32":
1483
- case "sfixed32":
1484
- e("if(!util.isInteger(%s))", r)("return%j", p(i, "integer"));
1485
- break;
1486
- case "int64":
1487
- case "uint64":
1488
- case "sint64":
1489
- case "fixed64":
1490
- case "sfixed64":
1491
- e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))", r, r, r, r)("return%j", p(i, "integer|Long"));
1492
- break;
1493
- case "float":
1494
- case "double":
1495
- e('if(typeof %s!=="number")', r)("return%j", p(i, "number"));
1496
- break;
1497
- case "bool":
1498
- e('if(typeof %s!=="boolean")', r)("return%j", p(i, "boolean"));
1499
- break;
1500
- case "string":
1501
- e("if(!util.isString(%s))", r)("return%j", p(i, "string"));
1502
- break;
1503
- case "bytes":
1504
- e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))', r, r, r)("return%j", p(i, "buffer"));
1505
- break;
1506
- }
1507
- return e;
1508
- }
1509
- function l(e, i, t) {
1510
- switch (i.keyType) {
1511
- case "int32":
1512
- case "uint32":
1513
- case "sint32":
1514
- case "fixed32":
1515
- case "sfixed32":
1516
- e("if(!util.key32Re.test(%s))", t)("return%j", p(i, "integer key"));
1517
- break;
1518
- case "int64":
1519
- case "uint64":
1520
- case "sint64":
1521
- case "fixed64":
1522
- case "sfixed64":
1523
- e("if(!util.key64Re.test(%s))", t)("return%j", p(i, "integer|Long key"));
1524
- break;
1525
- case "bool":
1526
- e("if(!util.key2Re.test(%s))", t)("return%j", p(i, "boolean key"));
1527
- break;
1528
- }
1529
- return e;
1530
- }
1531
- function n(e) {
1532
- var i = a.codegen(["m", "n"], e.name + "$verify")('if(typeof m!=="object"||m===null)')("return%j", "object expected")("if(n===undefined)n=0")("if(n>util.recursionLimit)")("return%j", "maximum nesting depth exceeded"), t = e.oneofsArray, r = {};
1533
- t.length && i("var p={}");
1534
- for (var f = 0; f < /* initializes */
1535
- e.fieldsArray.length; ++f) {
1536
- var s = e._fieldsArray[f].resolve(), u = "m" + a.safeProp(s.name);
1537
- if (s.optional && i("if(%s!=null&&m.hasOwnProperty(%j)){", u, s.name), s.map)
1538
- i("if(!util.isObject(%s))", u)("return%j", p(s, "object"))("var k=Object.keys(%s)", u)("for(var i=0;i<k.length;++i){"), l(i, s, "k[i]"), c(i, s, f, u + "[k[i]]")("}");
1539
- else if (s.repeated)
1540
- i("if(!Array.isArray(%s))", u)("return%j", p(s, "array"))("for(var i=0;i<%s.length;++i){", u), c(i, s, f, u + "[i]")("}");
1541
- else {
1542
- if (s.partOf) {
1543
- var o = a.safeProp(s.partOf.name);
1544
- r[s.partOf.name] === 1 && i("if(p%s===1)", o)("return%j", s.partOf.name + ": multiple values"), r[s.partOf.name] = 1, i("p%s=1", o);
1545
- }
1546
- c(i, s, f, u);
1547
- }
1548
- s.optional && i("}");
1549
- }
1550
- return i("return null");
1551
- }
1552
- return Ze;
1553
- }
1554
- var Ke = {}, Zt;
1555
- function _r() {
1556
- return Zt || (Zt = 1, (function(h) {
1557
- var a = h, p = re(), c = H();
1558
- function l(e, i, t, r) {
1559
- var f = !1;
1560
- if (i.resolvedType)
1561
- if (i.resolvedType instanceof p) {
1562
- e("switch(d%s){", r);
1563
- for (var s = i.resolvedType.values, u = Object.keys(s), o = 0; o < u.length; ++o)
1564
- s[u[o]] === i.typeDefault && !f && (e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}', r, r, r), i.repeated || e("break"), f = !0), e("case%j:", u[o])("case %i:", s[u[o]])("m%s=%j", r, s[u[o]])("break");
1565
- e("}");
1566
- } else e('if(typeof d%s!=="object")', r)("throw TypeError(%j)", i.fullName + ": object expected")("m%s=types[%i].fromObject(d%s,n+1)", r, t, r);
1567
- else {
1568
- var d = !1;
1569
- switch (i.type) {
1570
- case "double":
1571
- case "float":
1572
- e("m%s=Number(d%s)", r, r);
1573
- break;
1574
- case "uint32":
1575
- case "fixed32":
1576
- e("m%s=d%s>>>0", r, r);
1577
- break;
1578
- case "int32":
1579
- case "sint32":
1580
- case "sfixed32":
1581
- e("m%s=d%s|0", r, r);
1582
- break;
1583
- case "uint64":
1584
- d = !0;
1585
- // eslint-disable-next-line no-fallthrough
1586
- case "int64":
1587
- case "sint64":
1588
- case "fixed64":
1589
- case "sfixed64":
1590
- e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j", r, r, d)('else if(typeof d%s==="string")', r)("m%s=parseInt(d%s,10)", r, r)('else if(typeof d%s==="number")', r)("m%s=d%s", r, r)('else if(typeof d%s==="object")', r)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)", r, r, r, d ? "true" : "");
1591
- break;
1592
- case "bytes":
1593
- e('if(typeof d%s==="string")', r)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)", r, r, r)("else if(d%s.length >= 0)", r)("m%s=d%s", r, r);
1594
- break;
1595
- case "string":
1596
- e("m%s=String(d%s)", r, r);
1597
- break;
1598
- case "bool":
1599
- e("m%s=Boolean(d%s)", r, r);
1600
- break;
1601
- }
1602
- }
1603
- return e;
1604
- }
1605
- a.fromObject = function(i) {
1606
- var t = i.fieldsArray, r = c.codegen(["d", "n"], i.name + "$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');
1607
- if (!t.length) return r("return new this.ctor");
1608
- r("var m=new this.ctor");
1609
- for (var f = 0; f < t.length; ++f) {
1610
- var s = t[f].resolve(), u = c.safeProp(s.name);
1611
- s.map ? (r("if(d%s){", u)('if(typeof d%s!=="object")', u)("throw TypeError(%j)", s.fullName + ": object expected")("m%s={}", u)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", u), r('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])", u), l(
1612
- r,
1613
- s,
1614
- /* not sorted */
1615
- f,
1616
- u + "[ks[i]]"
1617
- )("}")("}")) : s.repeated ? (r("if(d%s){", u)("if(!Array.isArray(d%s))", u)("throw TypeError(%j)", s.fullName + ": array expected")("m%s=[]", u)("for(var i=0;i<d%s.length;++i){", u), l(
1618
- r,
1619
- s,
1620
- /* not sorted */
1621
- f,
1622
- u + "[i]"
1623
- )("}")("}")) : (s.resolvedType instanceof p || r("if(d%s!=null){", u), l(
1624
- r,
1625
- s,
1626
- /* not sorted */
1627
- f,
1628
- u
1629
- ), s.resolvedType instanceof p || r("}"));
1630
- }
1631
- return r("return m");
1632
- };
1633
- function n(e, i, t, r) {
1634
- if (i.resolvedType)
1635
- i.resolvedType instanceof p ? e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s", r, t, r, r, t, r, r) : e("d%s=types[%i].toObject(m%s,o)", r, t, r);
1636
- else {
1637
- var f = !1;
1638
- switch (i.type) {
1639
- case "double":
1640
- case "float":
1641
- e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s", r, r, r, r);
1642
- break;
1643
- case "uint64":
1644
- f = !0;
1645
- // eslint-disable-next-line no-fallthrough
1646
- case "int64":
1647
- case "sint64":
1648
- case "fixed64":
1649
- case "sfixed64":
1650
- e('if(typeof m%s==="number")', r)("d%s=o.longs===String?String(m%s):m%s", r, r, r)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s", r, r, r, r, f ? "true" : "", r);
1651
- break;
1652
- case "bytes":
1653
- e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s", r, r, r, r, r);
1654
- break;
1655
- default:
1656
- e("d%s=m%s", r, r);
1657
- break;
1658
- }
1659
- }
1660
- return e;
1661
- }
1662
- a.toObject = function(i) {
1663
- var t = i.fieldsArray.slice().sort(c.compareFieldsById);
1664
- if (!t.length)
1665
- return c.codegen()("return {}");
1666
- for (var r = c.codegen(["m", "o"], i.name + "$toObject")("if(!o)")("o={}")("var d={}"), f = [], s = [], u = [], o = 0; o < t.length; ++o)
1667
- t[o].partOf || (t[o].resolve().repeated ? f : t[o].map ? s : u).push(t[o]);
1668
- if (f.length) {
1669
- for (r("if(o.arrays||o.defaults){"), o = 0; o < f.length; ++o) r("d%s=[]", c.safeProp(f[o].name));
1670
- r("}");
1671
- }
1672
- if (s.length) {
1673
- for (r("if(o.objects||o.defaults){"), o = 0; o < s.length; ++o) r("d%s={}", c.safeProp(s[o].name));
1674
- r("}");
1675
- }
1676
- if (u.length) {
1677
- for (r("if(o.defaults){"), o = 0; o < u.length; ++o) {
1678
- var d = u[o], y = c.safeProp(d.name);
1679
- if (d.resolvedType instanceof p) r("d%s=o.enums===String?%j:%j", y, d.resolvedType.valuesById[d.typeDefault], d.typeDefault);
1680
- else if (d.long) r("if(util.Long){")("var n=new util.Long(%i,%i,%j)", d.typeDefault.low, d.typeDefault.high, d.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n", y)("}else")("d%s=o.longs===String?%j:%i", y, d.typeDefault.toString(), d.typeDefault.toNumber());
1681
- else if (d.bytes) {
1682
- var _ = Array.prototype.slice.call(d.typeDefault);
1683
- r("if(o.bytes===String)d%s=%j", y, String.fromCharCode.apply(String, d.typeDefault))("else{")("d%s=%j", y, _)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", y, y)("}");
1684
- } else r("d%s=%j", y, d.typeDefault);
1685
- }
1686
- r("}");
1687
- }
1688
- var m = !1;
1689
- for (o = 0; o < t.length; ++o) {
1690
- var d = t[o], v = i._fieldsArray.indexOf(d), y = c.safeProp(d.name);
1691
- d.map ? (m || (m = !0, r("var ks2")), r("if(m%s&&(ks2=Object.keys(m%s)).length){", y, y)("d%s={}", y)("for(var j=0;j<ks2.length;++j){"), r('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])", y), n(
1692
- r,
1693
- d,
1694
- /* sorted */
1695
- v,
1696
- y + "[ks2[j]]"
1697
- )("}")) : d.repeated ? (r("if(m%s&&m%s.length){", y, y)("d%s=[]", y)("for(var j=0;j<m%s.length;++j){", y), n(
1698
- r,
1699
- d,
1700
- /* sorted */
1701
- v,
1702
- y + "[j]"
1703
- )("}")) : (r("if(m%s!=null&&m.hasOwnProperty(%j)){", y, d.name), n(
1704
- r,
1705
- d,
1706
- /* sorted */
1707
- v,
1708
- y
1709
- ), d.partOf && r("if(o.oneofs)")("d%s=%j", c.safeProp(d.partOf.name), d.name)), r("}");
1710
- }
1711
- return r("return d");
1712
- };
1713
- })(Ke)), Ke;
1714
- }
1715
- var Qe = {}, Kt;
1716
- function wr() {
1717
- return Kt || (Kt = 1, (function(h) {
1718
- var a = h, p = yt();
1719
- a[".google.protobuf.Any"] = {
1720
- fromObject: function(c, l) {
1721
- if (c && c["@type"]) {
1722
- var n = c["@type"].substring(c["@type"].lastIndexOf("/") + 1), e = this.lookup(n);
1723
- if (e) {
1724
- var i = c["@type"].charAt(0) === "." ? c["@type"].slice(1) : c["@type"];
1725
- i.indexOf("/") === -1 && (i = "/" + i);
1726
- var t = l === void 0 ? 1 : l + 1;
1727
- return this.create({
1728
- type_url: i,
1729
- value: e.encode(e.fromObject(c, t)).finish()
1730
- });
1731
- }
1732
- }
1733
- return this.fromObject(c, l);
1734
- },
1735
- toObject: function(c, l) {
1736
- var n = "type.googleapis.com/", e = "", i = "";
1737
- if (l && l.json && c.type_url && c.value) {
1738
- i = c.type_url.substring(c.type_url.lastIndexOf("/") + 1), e = c.type_url.substring(0, c.type_url.lastIndexOf("/") + 1);
1739
- var t = this.lookup(i);
1740
- t && (c = t.decode(c.value));
1741
- }
1742
- if (!(c instanceof this.ctor) && c instanceof p) {
1743
- var r = c.$type.toObject(c, l), f = c.$type.fullName[0] === "." ? c.$type.fullName.slice(1) : c.$type.fullName;
1744
- return e === "" && (e = n), i = e + f, r["@type"] = i, r;
1745
- }
1746
- return this.toObject(c, l);
1747
- }
1748
- };
1749
- })(Qe)), Qe;
1750
- }
1751
- var Ye, Qt;
1752
- function vt() {
1753
- if (Qt) return Ye;
1754
- Qt = 1, Ye = y;
1755
- var h = ce();
1756
- ((y.prototype = Object.create(h.prototype)).constructor = y).className = "Type";
1757
- var a = re(), p = fe(), c = ne(), l = ht(), n = pt(), e = yt(), i = ct(), t = lt(), r = H(), f = Or(), s = mr(), u = gr(), o = _r(), d = wr();
1758
- function y(m, v) {
1759
- m = m.replace(/\W/g, ""), h.call(this, m, v), this.fields = {}, this.oneofs = void 0, this.extensions = void 0, this.reserved = void 0, this.group = void 0, this._fieldsById = null, this._fieldsArray = null, this._oneofsArray = null, this._ctor = null;
1760
- }
1761
- Object.defineProperties(y.prototype, {
1762
- /**
1763
- * Message fields by id.
1764
- * @name Type#fieldsById
1765
- * @type {Object.<number,Field>}
1766
- * @readonly
1767
- */
1768
- fieldsById: {
1769
- get: function() {
1770
- if (this._fieldsById)
1771
- return this._fieldsById;
1772
- this._fieldsById = {};
1773
- for (var m = Object.keys(this.fields), v = 0; v < m.length; ++v) {
1774
- var g = this.fields[m[v]], E = g.id;
1775
- if (this._fieldsById[E])
1776
- throw Error("duplicate id " + E + " in " + this);
1777
- this._fieldsById[E] = g;
1778
- }
1779
- return this._fieldsById;
1780
- }
1781
- },
1782
- /**
1783
- * Fields of this message as an array for iteration.
1784
- * @name Type#fieldsArray
1785
- * @type {Field[]}
1786
- * @readonly
1787
- */
1788
- fieldsArray: {
1789
- get: function() {
1790
- return this._fieldsArray || (this._fieldsArray = r.toArray(this.fields));
1791
- }
1792
- },
1793
- /**
1794
- * Oneofs of this message as an array for iteration.
1795
- * @name Type#oneofsArray
1796
- * @type {OneOf[]}
1797
- * @readonly
1798
- */
1799
- oneofsArray: {
1800
- get: function() {
1801
- return this._oneofsArray || (this._oneofsArray = r.toArray(this.oneofs));
1802
- }
1803
- },
1804
- /**
1805
- * The registered constructor, if any registered, otherwise a generic constructor.
1806
- * Assigning a function replaces the internal constructor. If the function does not extend {@link Message} yet, its prototype will be setup accordingly and static methods will be populated. If it already extends {@link Message}, it will just replace the internal constructor.
1807
- * @name Type#ctor
1808
- * @type {Constructor<{}>}
1809
- */
1810
- ctor: {
1811
- get: function() {
1812
- return this._ctor || (this.ctor = y.generateConstructor(this)());
1813
- },
1814
- set: function(m) {
1815
- var v = m.prototype;
1816
- v instanceof e || ((m.prototype = new e()).constructor = m, r.merge(m.prototype, v)), m.$type = m.prototype.$type = this, r.merge(m, e, !0), this._ctor = m;
1817
- for (var g = 0; g < /* initializes */
1818
- this.fieldsArray.length; ++g)
1819
- this._fieldsArray[g].resolve();
1820
- var E = {};
1821
- for (g = 0; g < /* initializes */
1822
- this.oneofsArray.length; ++g)
1823
- E[this._oneofsArray[g].resolve().name] = {
1824
- get: r.oneOfGetter(this._oneofsArray[g].oneof),
1825
- set: r.oneOfSetter(this._oneofsArray[g].oneof)
1826
- };
1827
- g && Object.defineProperties(m.prototype, E);
1828
- }
1829
- }
1830
- }), y.generateConstructor = function(v) {
1831
- for (var g = r.codegen(["p"], v.name), E = 0, N; E < v.fieldsArray.length; ++E)
1832
- (N = v._fieldsArray[E]).map ? g("this%s={}", r.safeProp(N.name)) : N.repeated && g("this%s=[]", r.safeProp(N.name));
1833
- return g('if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null&&ks[i]!=="__proto__")')("this[ks[i]]=p[ks[i]]");
1834
- };
1835
- function _(m) {
1836
- return m._fieldsById = m._fieldsArray = m._oneofsArray = null, delete m.encode, delete m.decode, delete m.verify, m;
1837
- }
1838
- return y.fromJSON = function(v, g, E) {
1839
- E = r.checkDepth(E);
1840
- var N = new y(v, g.options);
1841
- N.extensions = g.extensions, N.reserved = g.reserved;
1842
- for (var q = Object.keys(g.fields), P = 0; P < q.length; ++P)
1843
- N.add(
1844
- (typeof g.fields[q[P]].keyType < "u" ? l.fromJSON : c.fromJSON)(q[P], g.fields[q[P]])
1845
- );
1846
- if (g.oneofs)
1847
- for (q = Object.keys(g.oneofs), P = 0; P < q.length; ++P)
1848
- N.add(p.fromJSON(q[P], g.oneofs[q[P]]));
1849
- if (g.nested)
1850
- for (q = Object.keys(g.nested), P = 0; P < q.length; ++P) {
1851
- var z = g.nested[q[P]];
1852
- N.add(
1853
- // most to least likely
1854
- (z.id !== void 0 ? c.fromJSON : z.fields !== void 0 ? y.fromJSON : z.values !== void 0 ? a.fromJSON : z.methods !== void 0 ? n.fromJSON : h.fromJSON)(q[P], z, E + 1)
1855
- );
1856
- }
1857
- return g.extensions && g.extensions.length && (N.extensions = g.extensions), g.reserved && g.reserved.length && (N.reserved = g.reserved), g.group && (N.group = !0), g.comment && (N.comment = g.comment), g.edition && (N._edition = g.edition), N._defaultEdition = "proto3", N;
1858
- }, y.prototype.toJSON = function(v) {
1859
- var g = h.prototype.toJSON.call(this, v), E = v ? !!v.keepComments : !1;
1860
- return r.toObject([
1861
- "edition",
1862
- this._editionToJSON(),
1863
- "options",
1864
- g && g.options || void 0,
1865
- "oneofs",
1866
- h.arrayToJSON(this.oneofsArray, v),
1867
- "fields",
1868
- h.arrayToJSON(this.fieldsArray.filter(function(N) {
1869
- return !N.declaringField;
1870
- }), v) || {},
1871
- "extensions",
1872
- this.extensions && this.extensions.length ? this.extensions : void 0,
1873
- "reserved",
1874
- this.reserved && this.reserved.length ? this.reserved : void 0,
1875
- "group",
1876
- this.group || void 0,
1877
- "nested",
1878
- g && g.nested || void 0,
1879
- "comment",
1880
- E ? this.comment : void 0
1881
- ]);
1882
- }, y.prototype.resolveAll = function() {
1883
- if (!this._needsRecursiveResolve) return this;
1884
- h.prototype.resolveAll.call(this);
1885
- var v = this.oneofsArray;
1886
- for (E = 0; E < v.length; )
1887
- v[E++].resolve();
1888
- for (var g = this.fieldsArray, E = 0; E < g.length; )
1889
- g[E++].resolve();
1890
- return this;
1891
- }, y.prototype._resolveFeaturesRecursive = function(v) {
1892
- return this._needsRecursiveFeatureResolution ? (v = this._edition || v, h.prototype._resolveFeaturesRecursive.call(this, v), this.oneofsArray.forEach((g) => {
1893
- g._resolveFeatures(v);
1894
- }), this.fieldsArray.forEach((g) => {
1895
- g._resolveFeatures(v);
1896
- }), this) : this;
1897
- }, y.prototype.get = function(v) {
1898
- return Object.prototype.hasOwnProperty.call(this.fields, v) ? this.fields[v] : this.oneofs && Object.prototype.hasOwnProperty.call(this.oneofs, v) ? this.oneofs[v] : this.nested && Object.prototype.hasOwnProperty.call(this.nested, v) ? this.nested[v] : null;
1899
- }, y.prototype.add = function(v) {
1900
- if (this.get(v.name))
1901
- throw Error("duplicate name '" + v.name + "' in " + this);
1902
- if (v instanceof c && v.extend === void 0) {
1903
- if (this._fieldsById ? (
1904
- /* istanbul ignore next */
1905
- this._fieldsById[v.id]
1906
- ) : this.fieldsById[v.id])
1907
- throw Error("duplicate id " + v.id + " in " + this);
1908
- if (this.isReservedId(v.id))
1909
- throw Error("id " + v.id + " is reserved in " + this);
1910
- if (this.isReservedName(v.name))
1911
- throw Error("name '" + v.name + "' is reserved in " + this);
1912
- return v.name === "__proto__" ? this : (v.parent && v.parent.remove(v), this.fields[v.name] = v, v.message = this, v.onAdd(this), _(this));
1913
- }
1914
- return v instanceof p ? v.name === "__proto__" ? this : (this.oneofs || (this.oneofs = {}), this.oneofs[v.name] = v, v.onAdd(this), _(this)) : h.prototype.add.call(this, v);
1915
- }, y.prototype.remove = function(v) {
1916
- if (v instanceof c && v.extend === void 0) {
1917
- if (!this.fields || this.fields[v.name] !== v)
1918
- throw Error(v + " is not a member of " + this);
1919
- return delete this.fields[v.name], v.parent = null, v.onRemove(this), _(this);
1920
- }
1921
- if (v instanceof p) {
1922
- if (!this.oneofs || this.oneofs[v.name] !== v)
1923
- throw Error(v + " is not a member of " + this);
1924
- return delete this.oneofs[v.name], v.parent = null, v.onRemove(this), _(this);
1925
- }
1926
- return h.prototype.remove.call(this, v);
1927
- }, y.prototype.isReservedId = function(v) {
1928
- return h.isReservedId(this.reserved, v);
1929
- }, y.prototype.isReservedName = function(v) {
1930
- return h.isReservedName(this.reserved, v);
1931
- }, y.prototype.create = function(v) {
1932
- return new this.ctor(v);
1933
- }, y.prototype.setup = function() {
1934
- for (var v = this.fullName, g = [], E = 0; E < /* initializes */
1935
- this.fieldsArray.length; ++E)
1936
- g.push(this._fieldsArray[E].resolve().resolvedType);
1937
- this.encode = f(this)({
1938
- Writer: t,
1939
- types: g,
1940
- util: r
1941
- }), this.decode = s(this)({
1942
- Reader: i,
1943
- types: g,
1944
- util: r
1945
- }), this.verify = u(this)({
1946
- types: g,
1947
- util: r
1948
- }), this.fromObject = o.fromObject(this)({
1949
- types: g,
1950
- util: r
1951
- }), this.toObject = o.toObject(this)({
1952
- types: g,
1953
- util: r
1954
- });
1955
- var N = d[v];
1956
- if (N) {
1957
- var q = Object.create(this);
1958
- q.fromObject = this.fromObject, this.fromObject = N.fromObject.bind(q), q.toObject = this.toObject, this.toObject = N.toObject.bind(q);
1959
- }
1960
- return this;
1961
- }, y.prototype.encode = function(v, g) {
1962
- return this.setup().encode(v, g);
1963
- }, y.prototype.encodeDelimited = function(v, g) {
1964
- return this.encode(v, g && g.len ? g.fork() : g).ldelim();
1965
- }, y.prototype.decode = function(v, g, E, N) {
1966
- return this.setup().decode(v, g, E, N);
1967
- }, y.prototype.decodeDelimited = function(v) {
1968
- return v instanceof i || (v = i.create(v)), this.decode(v, v.uint32());
1969
- }, y.prototype.verify = function(v, g) {
1970
- return this.setup().verify(v, g);
1971
- }, y.prototype.fromObject = function(v, g) {
1972
- return this.setup().fromObject(v, g);
1973
- }, y.prototype.toObject = function(v, g) {
1974
- return this.setup().toObject(v, g);
1975
- }, y.d = function(v) {
1976
- return function(E) {
1977
- r.decorateType(E, v);
1978
- };
1979
- }, Ye;
1980
- }
1981
- var et, Yt;
1982
- function mt() {
1983
- if (Yt) return et;
1984
- Yt = 1, et = t;
1985
- var h = ce();
1986
- ((t.prototype = Object.create(h.prototype)).constructor = t).className = "Root";
1987
- var a = ne(), p = re(), c = fe(), l = H(), n, e, i;
1988
- function t(u) {
1989
- h.call(this, "", u), this.deferred = [], this.files = [], this._edition = "proto2", this._fullyQualifiedObjects = {};
1990
- }
1991
- t.fromJSON = function(o, d, y) {
1992
- return y = l.checkDepth(y), d || (d = new t()), o.options && d.setOptions(o.options), d.addJSON(o.nested, y).resolveAll();
1993
- }, t.prototype.resolvePath = l.path.resolve, t.prototype.fetch = l.fetch;
1994
- function r() {
1995
- }
1996
- t.prototype.load = function u(o, d, y) {
1997
- typeof d == "function" && (y = d, d = void 0);
1998
- var _ = this;
1999
- if (!y)
2000
- return l.asPromise(u, _, o, d);
2001
- var m = y === r;
2002
- function v(I, C) {
2003
- if (y) {
2004
- if (m)
2005
- throw I;
2006
- C && C.resolveAll();
2007
- var x = y;
2008
- y = null, x(I, C);
2009
- }
2010
- }
2011
- function g(I) {
2012
- var C = I.lastIndexOf("google/protobuf/");
2013
- if (C > -1) {
2014
- var x = I.substring(C);
2015
- if (x in i) return x;
2016
- }
2017
- return null;
2018
- }
2019
- function E(I, C) {
2020
- try {
2021
- if (l.isString(C) && C.charAt(0) === "{" && (C = JSON.parse(C)), !l.isString(C))
2022
- _.setOptions(C.options).addJSON(C.nested);
2023
- else {
2024
- e.filename = I;
2025
- var x = e(C, _, d), W, J = 0;
2026
- if (x.imports)
2027
- for (; J < x.imports.length; ++J)
2028
- (W = g(x.imports[J]) || _.resolvePath(I, x.imports[J])) && N(W);
2029
- if (x.weakImports)
2030
- for (J = 0; J < x.weakImports.length; ++J)
2031
- (W = g(x.weakImports[J]) || _.resolvePath(I, x.weakImports[J])) && N(W, !0);
2032
- }
2033
- } catch (k) {
2034
- v(k);
2035
- }
2036
- !m && !q && v(null, _);
2037
- }
2038
- function N(I, C) {
2039
- if (I = g(I) || I, !(_.files.indexOf(I) > -1)) {
2040
- if (_.files.push(I), I in i) {
2041
- m ? E(I, i[I]) : (++q, setTimeout(function() {
2042
- --q, E(I, i[I]);
2043
- }));
2044
- return;
2045
- }
2046
- if (m) {
2047
- var x;
2048
- try {
2049
- x = l.fs.readFileSync(I).toString("utf8");
2050
- } catch (W) {
2051
- C || v(W);
2052
- return;
2053
- }
2054
- E(I, x);
2055
- } else
2056
- ++q, _.fetch(I, function(W, J) {
2057
- if (--q, !!y) {
2058
- if (W) {
2059
- C ? q || v(null, _) : v(W);
2060
- return;
2061
- }
2062
- E(I, J);
2063
- }
2064
- });
2065
- }
2066
- }
2067
- var q = 0;
2068
- l.isString(o) && (o = [o]);
2069
- for (var P = 0, z; P < o.length; ++P)
2070
- (z = _.resolvePath("", o[P])) && N(z);
2071
- return m ? (_.resolveAll(), _) : (q || v(null, _), _);
2072
- }, t.prototype.loadSync = function(o, d) {
2073
- if (!l.isNode)
2074
- throw Error("not supported");
2075
- return this.load(o, d, r);
2076
- }, t.prototype.resolveAll = function() {
2077
- if (!this._needsRecursiveResolve) return this;
2078
- if (this.deferred.length)
2079
- throw Error("unresolvable extensions: " + this.deferred.map(function(o) {
2080
- return "'extend " + o.extend + "' in " + o.parent.fullName;
2081
- }).join(", "));
2082
- return h.prototype.resolveAll.call(this);
2083
- };
2084
- var f = /^[A-Z]/;
2085
- function s(u, o) {
2086
- var d = o.parent.lookup(o.extend);
2087
- if (d) {
2088
- var y = new a(o.fullName, o.id, o.type, o.rule, void 0, o.options);
2089
- return d.get(y.name) || (y.declaringField = o, o.extensionField = y, d.add(y)), !0;
2090
- }
2091
- return !1;
2092
- }
2093
- return t.prototype._handleAdd = function(o) {
2094
- if (o instanceof a)
2095
- /* an extension field (implies not part of a oneof) */
2096
- o.extend !== void 0 && /* not already handled */
2097
- !o.extensionField && (s(this, o) || this.deferred.push(o));
2098
- else if (o instanceof p)
2099
- f.test(o.name) && (o.parent[o.name] = o.values);
2100
- else if (!(o instanceof c)) {
2101
- if (o instanceof n)
2102
- for (var d = 0; d < this.deferred.length; )
2103
- s(this, this.deferred[d]) ? this.deferred.splice(d, 1) : ++d;
2104
- for (var y = 0; y < /* initializes */
2105
- o.nestedArray.length; ++y)
2106
- this._handleAdd(o._nestedArray[y]);
2107
- f.test(o.name) && (o.parent[o.name] = o);
2108
- }
2109
- (o instanceof n || o instanceof p || o instanceof a) && (this._fullyQualifiedObjects[o.fullName] = o);
2110
- }, t.prototype._handleRemove = function(o) {
2111
- if (o instanceof a) {
2112
- if (
2113
- /* an extension field */
2114
- o.extend !== void 0
2115
- )
2116
- if (
2117
- /* already handled */
2118
- o.extensionField
2119
- )
2120
- o.extensionField.parent.remove(o.extensionField), o.extensionField = null;
2121
- else {
2122
- var d = this.deferred.indexOf(o);
2123
- d > -1 && this.deferred.splice(d, 1);
2124
- }
2125
- } else if (o instanceof p)
2126
- f.test(o.name) && delete o.parent[o.name];
2127
- else if (o instanceof h) {
2128
- for (var y = 0; y < /* initializes */
2129
- o.nestedArray.length; ++y)
2130
- this._handleRemove(o._nestedArray[y]);
2131
- f.test(o.name) && delete o.parent[o.name];
2132
- }
2133
- delete this._fullyQualifiedObjects[o.fullName];
2134
- }, t._configure = function(u, o, d) {
2135
- n = u, e = o, i = d;
2136
- }, et;
2137
- }
2138
- var er;
2139
- function H() {
2140
- if (er) return je.exports;
2141
- er = 1;
2142
- var h = je.exports = ie(), a = vr(), p, c;
2143
- h.codegen = Zr(), h.fetch = Kr(), h.path = Qr(), h.patterns = Yr();
2144
- var l = h.patterns.reservedRe, n = h.patterns.unsafePropertyRe;
2145
- h.fs = h.inquire("fs"), h.checkDepth = function(r) {
2146
- if (r === void 0 && (r = 0), r > h.recursionLimit)
2147
- throw Error("max depth exceeded");
2148
- return r;
2149
- }, h.toArray = function(r) {
2150
- if (r) {
2151
- for (var f = Object.keys(r), s = new Array(f.length), u = 0; u < f.length; )
2152
- s[u] = r[f[u++]];
2153
- return s;
2154
- }
2155
- return [];
2156
- }, h.toObject = function(r) {
2157
- for (var f = {}, s = 0; s < r.length; ) {
2158
- var u = r[s++], o = r[s++];
2159
- o !== void 0 && (f[u] = o);
2160
- }
2161
- return f;
2162
- }, h.isReserved = function(r) {
2163
- return l.test(r);
2164
- }, h.safeProp = function(r) {
2165
- return !/^[$\w_]+$/.test(r) || l.test(r) ? "[" + JSON.stringify(r) + "]" : "." + r;
2166
- }, h.ucFirst = function(r) {
2167
- return r.charAt(0).toUpperCase() + r.substring(1);
2168
- };
2169
- var e = /_([a-z])/g;
2170
- h.camelCase = function(r) {
2171
- return r.substring(0, 1) + r.substring(1).replace(e, function(f, s) {
2172
- return s.toUpperCase();
2173
- });
2174
- }, h.compareFieldsById = function(r, f) {
2175
- return r.id - f.id;
2176
- }, h.decorateType = function(r, f) {
2177
- if (r.$type)
2178
- return f && r.$type.name !== f && (h.decorateRoot.remove(r.$type), r.$type.name = f, h.decorateRoot.add(r.$type)), r.$type;
2179
- p || (p = vt());
2180
- var s = new p(f || r.name);
2181
- return h.decorateRoot.add(s), s.ctor = r, Object.defineProperty(r, "$type", { value: s, enumerable: !1 }), Object.defineProperty(r.prototype, "$type", { value: s, enumerable: !1 }), s;
2182
- };
2183
- var i = 0;
2184
- return h.decorateEnum = function(r) {
2185
- if (r.$type)
2186
- return r.$type;
2187
- c || (c = re());
2188
- var f = new c("Enum" + i++, r);
2189
- return h.decorateRoot.add(f), Object.defineProperty(r, "$type", { value: f, enumerable: !1 }), f;
2190
- }, h.setProperty = function(r, f, s, u) {
2191
- function o(d, y, _) {
2192
- var m = y.shift();
2193
- if (n.test(m))
2194
- return d;
2195
- if (y.length > 0)
2196
- d[m] = o(d[m] || {}, y, _);
2197
- else {
2198
- var v = d[m];
2199
- if (v && u)
2200
- return d;
2201
- v && (_ = [].concat(v).concat(_)), d[m] = _;
2202
- }
2203
- return d;
2204
- }
2205
- if (typeof r != "object")
2206
- throw TypeError("dst must be an object");
2207
- if (!f)
2208
- throw TypeError("path must be specified");
2209
- return f = f.split("."), o(r, f, s);
2210
- }, Object.defineProperty(h, "decorateRoot", {
2211
- get: function() {
2212
- return a.decorated || (a.decorated = new (mt())());
2213
- }
2214
- }), je.exports;
2215
- }
2216
- var tr;
2217
- function ae() {
2218
- return tr || (tr = 1, (function(h) {
2219
- var a = h, p = H(), c = [
2220
- "double",
2221
- // 0
2222
- "float",
2223
- // 1
2224
- "int32",
2225
- // 2
2226
- "uint32",
2227
- // 3
2228
- "sint32",
2229
- // 4
2230
- "fixed32",
2231
- // 5
2232
- "sfixed32",
2233
- // 6
2234
- "int64",
2235
- // 7
2236
- "uint64",
2237
- // 8
2238
- "sint64",
2239
- // 9
2240
- "fixed64",
2241
- // 10
2242
- "sfixed64",
2243
- // 11
2244
- "bool",
2245
- // 12
2246
- "string",
2247
- // 13
2248
- "bytes"
2249
- // 14
2250
- ];
2251
- function l(n, e) {
2252
- var i = 0, t = /* @__PURE__ */ Object.create(null);
2253
- for (e |= 0; i < n.length; ) t[c[i + e]] = n[i++];
2254
- return t;
2255
- }
2256
- a.basic = l([
2257
- /* double */
2258
- 1,
2259
- /* float */
2260
- 5,
2261
- /* int32 */
2262
- 0,
2263
- /* uint32 */
2264
- 0,
2265
- /* sint32 */
2266
- 0,
2267
- /* fixed32 */
2268
- 5,
2269
- /* sfixed32 */
2270
- 5,
2271
- /* int64 */
2272
- 0,
2273
- /* uint64 */
2274
- 0,
2275
- /* sint64 */
2276
- 0,
2277
- /* fixed64 */
2278
- 1,
2279
- /* sfixed64 */
2280
- 1,
2281
- /* bool */
2282
- 0,
2283
- /* string */
2284
- 2,
2285
- /* bytes */
2286
- 2
2287
- ]), a.defaults = l([
2288
- /* double */
2289
- 0,
2290
- /* float */
2291
- 0,
2292
- /* int32 */
2293
- 0,
2294
- /* uint32 */
2295
- 0,
2296
- /* sint32 */
2297
- 0,
2298
- /* fixed32 */
2299
- 0,
2300
- /* sfixed32 */
2301
- 0,
2302
- /* int64 */
2303
- 0,
2304
- /* uint64 */
2305
- 0,
2306
- /* sint64 */
2307
- 0,
2308
- /* fixed64 */
2309
- 0,
2310
- /* sfixed64 */
2311
- 0,
2312
- /* bool */
2313
- !1,
2314
- /* string */
2315
- "",
2316
- /* bytes */
2317
- p.emptyArray,
2318
- /* message */
2319
- null
2320
- ]), a.long = l([
2321
- /* int64 */
2322
- 0,
2323
- /* uint64 */
2324
- 0,
2325
- /* sint64 */
2326
- 0,
2327
- /* fixed64 */
2328
- 1,
2329
- /* sfixed64 */
2330
- 1
2331
- ], 7), a.mapKey = l([
2332
- /* int32 */
2333
- 0,
2334
- /* uint32 */
2335
- 0,
2336
- /* sint32 */
2337
- 0,
2338
- /* fixed32 */
2339
- 5,
2340
- /* sfixed32 */
2341
- 5,
2342
- /* int64 */
2343
- 0,
2344
- /* uint64 */
2345
- 0,
2346
- /* sint64 */
2347
- 0,
2348
- /* fixed64 */
2349
- 1,
2350
- /* sfixed64 */
2351
- 1,
2352
- /* bool */
2353
- 0,
2354
- /* string */
2355
- 2
2356
- ], 2), a.packed = l([
2357
- /* double */
2358
- 1,
2359
- /* float */
2360
- 5,
2361
- /* int32 */
2362
- 0,
2363
- /* uint32 */
2364
- 0,
2365
- /* sint32 */
2366
- 0,
2367
- /* fixed32 */
2368
- 5,
2369
- /* sfixed32 */
2370
- 5,
2371
- /* int64 */
2372
- 0,
2373
- /* uint64 */
2374
- 0,
2375
- /* sint64 */
2376
- 0,
2377
- /* fixed64 */
2378
- 1,
2379
- /* sfixed64 */
2380
- 1,
2381
- /* bool */
2382
- 0
2383
- ]);
2384
- })(Le)), Le;
2385
- }
2386
- var tt, rr;
2387
- function ne() {
2388
- if (rr) return tt;
2389
- rr = 1, tt = e;
2390
- var h = se();
2391
- ((e.prototype = Object.create(h.prototype)).constructor = e).className = "Field";
2392
- var a = re(), p = ae(), c = H(), l, n = /^required|optional|repeated$/;
2393
- e.fromJSON = function(t, r) {
2394
- var f = new e(t, r.id, r.type, r.rule, r.extend, r.options, r.comment);
2395
- return r.edition && (f._edition = r.edition), f._defaultEdition = "proto3", f;
2396
- };
2397
- function e(i, t, r, f, s, u, o) {
2398
- if (c.isObject(f) ? (o = s, u = f, f = s = void 0) : c.isObject(s) && (o = u, u = s, s = void 0), h.call(this, i, u), !c.isInteger(t) || t < 0)
2399
- throw TypeError("id must be a non-negative integer");
2400
- if (!c.isString(r))
2401
- throw TypeError("type must be a string");
2402
- if (f !== void 0 && !n.test(f = f.toString().toLowerCase()))
2403
- throw TypeError("rule must be a string rule");
2404
- if (s !== void 0 && !c.isString(s))
2405
- throw TypeError("extend must be a string");
2406
- f === "proto3_optional" && (f = "optional"), this.rule = f && f !== "optional" ? f : void 0, this.type = r, this.id = t, this.extend = s || void 0, this.repeated = f === "repeated", this.map = !1, this.message = null, this.partOf = null, this.typeDefault = null, this.defaultValue = null, this.long = c.Long ? p.long[r] !== void 0 : (
2407
- /* istanbul ignore next */
2408
- !1
2409
- ), this.bytes = r === "bytes", this.resolvedType = null, this.extensionField = null, this.declaringField = null, this.comment = o;
2410
- }
2411
- return Object.defineProperty(e.prototype, "required", {
2412
- get: function() {
2413
- return this._features.field_presence === "LEGACY_REQUIRED";
2414
- }
2415
- }), Object.defineProperty(e.prototype, "optional", {
2416
- get: function() {
2417
- return !this.required;
2418
- }
2419
- }), Object.defineProperty(e.prototype, "delimited", {
2420
- get: function() {
2421
- return this.resolvedType instanceof l && this._features.message_encoding === "DELIMITED";
2422
- }
2423
- }), Object.defineProperty(e.prototype, "packed", {
2424
- get: function() {
2425
- return this._features.repeated_field_encoding === "PACKED";
2426
- }
2427
- }), Object.defineProperty(e.prototype, "hasPresence", {
2428
- get: function() {
2429
- return this.repeated || this.map ? !1 : this.partOf || // oneofs
2430
- this.declaringField || this.extensionField || // extensions
2431
- this._features.field_presence !== "IMPLICIT";
2432
- }
2433
- }), e.prototype.setOption = function(t, r, f) {
2434
- return h.prototype.setOption.call(this, t, r, f);
2435
- }, e.prototype.toJSON = function(t) {
2436
- var r = t ? !!t.keepComments : !1;
2437
- return c.toObject([
2438
- "edition",
2439
- this._editionToJSON(),
2440
- "rule",
2441
- this.rule !== "optional" && this.rule || void 0,
2442
- "type",
2443
- this.type,
2444
- "id",
2445
- this.id,
2446
- "extend",
2447
- this.extend,
2448
- "options",
2449
- this.options,
2450
- "comment",
2451
- r ? this.comment : void 0
2452
- ]);
2453
- }, e.prototype.resolve = function() {
2454
- if (this.resolved)
2455
- return this;
2456
- if ((this.typeDefault = p.defaults[this.type]) === void 0 ? (this.resolvedType = (this.declaringField ? this.declaringField.parent : this.parent).lookupTypeOrEnum(this.type), this.resolvedType instanceof l ? this.typeDefault = null : this.typeDefault = this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]) : this.options && this.options.proto3_optional && (this.typeDefault = null), this.options && this.options.default != null && (this.typeDefault = this.options.default, this.resolvedType instanceof a && typeof this.typeDefault == "string" && (this.typeDefault = this.resolvedType.values[this.typeDefault])), this.options && (this.options.packed !== void 0 && this.resolvedType && !(this.resolvedType instanceof a) && delete this.options.packed, Object.keys(this.options).length || (this.options = void 0)), this.long)
2457
- this.typeDefault = c.Long.fromNumber(this.typeDefault, this.type.charAt(0) === "u"), Object.freeze && Object.freeze(this.typeDefault);
2458
- else if (this.bytes && typeof this.typeDefault == "string") {
2459
- var t;
2460
- c.base64.test(this.typeDefault) ? c.base64.decode(this.typeDefault, t = c.newBuffer(c.base64.length(this.typeDefault)), 0) : c.utf8.write(this.typeDefault, t = c.newBuffer(c.utf8.length(this.typeDefault)), 0), this.typeDefault = t;
2461
- }
2462
- return this.map ? this.defaultValue = c.emptyObject : this.repeated ? this.defaultValue = c.emptyArray : this.defaultValue = this.typeDefault, this.parent instanceof l && (this.parent.ctor.prototype[this.name] = this.defaultValue), h.prototype.resolve.call(this);
2463
- }, e.prototype._inferLegacyProtoFeatures = function(t) {
2464
- if (t !== "proto2" && t !== "proto3")
2465
- return {};
2466
- var r = {};
2467
- if (this.rule === "required" && (r.field_presence = "LEGACY_REQUIRED"), this.parent && p.defaults[this.type] === void 0) {
2468
- var f = this.parent.get(this.type.split(".").pop());
2469
- f && f instanceof l && f.group && (r.message_encoding = "DELIMITED");
2470
- }
2471
- return this.getOption("packed") === !0 ? r.repeated_field_encoding = "PACKED" : this.getOption("packed") === !1 && (r.repeated_field_encoding = "EXPANDED"), r;
2472
- }, e.prototype._resolveFeatures = function(t) {
2473
- return h.prototype._resolveFeatures.call(this, this._edition || t);
2474
- }, e.d = function(t, r, f, s) {
2475
- return typeof r == "function" ? r = c.decorateType(r).name : r && typeof r == "object" && (r = c.decorateEnum(r).name), function(o, d) {
2476
- c.decorateType(o.constructor).add(new e(d, t, r, f, { default: s }));
2477
- };
2478
- }, e._configure = function(t) {
2479
- l = t;
2480
- }, tt;
2481
- }
2482
- var rt, ir;
2483
- function fe() {
2484
- if (ir) return rt;
2485
- ir = 1, rt = c;
2486
- var h = se();
2487
- ((c.prototype = Object.create(h.prototype)).constructor = c).className = "OneOf";
2488
- var a = ne(), p = H();
2489
- function c(n, e, i, t) {
2490
- if (Array.isArray(e) || (i = e, e = void 0), h.call(this, n, i), !(e === void 0 || Array.isArray(e)))
2491
- throw TypeError("fieldNames must be an Array");
2492
- this.oneof = e || [], this.fieldsArray = [], this.comment = t;
2493
- }
2494
- c.fromJSON = function(e, i) {
2495
- return new c(e, i.oneof, i.options, i.comment);
2496
- }, c.prototype.toJSON = function(e) {
2497
- var i = e ? !!e.keepComments : !1;
2498
- return p.toObject([
2499
- "options",
2500
- this.options,
2501
- "oneof",
2502
- this.oneof,
2503
- "comment",
2504
- i ? this.comment : void 0
2505
- ]);
2506
- };
2507
- function l(n) {
2508
- if (n.parent)
2509
- for (var e = 0; e < n.fieldsArray.length; ++e)
2510
- n.fieldsArray[e].parent || n.parent.add(n.fieldsArray[e]);
2511
- }
2512
- return c.prototype.add = function(e) {
2513
- if (!(e instanceof a))
2514
- throw TypeError("field must be a Field");
2515
- return e.parent && e.parent !== this.parent && e.parent.remove(e), this.oneof.push(e.name), this.fieldsArray.push(e), e.partOf = this, l(this), this;
2516
- }, c.prototype.remove = function(e) {
2517
- if (!(e instanceof a))
2518
- throw TypeError("field must be a Field");
2519
- var i = this.fieldsArray.indexOf(e);
2520
- if (i < 0)
2521
- throw Error(e + " is not a member of " + this);
2522
- return this.fieldsArray.splice(i, 1), i = this.oneof.indexOf(e.name), i > -1 && this.oneof.splice(i, 1), e.partOf = null, this;
2523
- }, c.prototype.onAdd = function(e) {
2524
- h.prototype.onAdd.call(this, e);
2525
- for (var i = this, t = 0; t < this.oneof.length; ++t) {
2526
- var r = e.get(this.oneof[t]);
2527
- r && !r.partOf && (r.partOf = i, i.fieldsArray.push(r));
2528
- }
2529
- l(this);
2530
- }, c.prototype.onRemove = function(e) {
2531
- for (var i = 0, t; i < this.fieldsArray.length; ++i)
2532
- (t = this.fieldsArray[i]).parent && t.parent.remove(t);
2533
- h.prototype.onRemove.call(this, e);
2534
- }, Object.defineProperty(c.prototype, "isProto3Optional", {
2535
- get: function() {
2536
- if (this.fieldsArray == null || this.fieldsArray.length !== 1)
2537
- return !1;
2538
- var n = this.fieldsArray[0];
2539
- return n.options != null && n.options.proto3_optional === !0;
2540
- }
2541
- }), c.d = function() {
2542
- for (var e = new Array(arguments.length), i = 0; i < arguments.length; )
2543
- e[i] = arguments[i++];
2544
- return function(r, f) {
2545
- p.decorateType(r.constructor).add(new c(f, e)), Object.defineProperty(r, f, {
2546
- get: p.oneOfGetter(e),
2547
- set: p.oneOfSetter(e)
2548
- });
2549
- };
2550
- }, rt;
2551
- }
2552
- var it, nr;
2553
- function se() {
2554
- if (nr) return it;
2555
- nr = 1, it = e, e.className = "ReflectionObject";
2556
- const h = fe();
2557
- var a = H(), p, c = { enum_type: "OPEN", field_presence: "EXPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY" }, l = { enum_type: "CLOSED", field_presence: "EXPLICIT", json_format: "LEGACY_BEST_EFFORT", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "EXPANDED", utf8_validation: "NONE" }, n = { enum_type: "OPEN", field_presence: "IMPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY" };
2558
- function e(i, t) {
2559
- if (!a.isString(i))
2560
- throw TypeError("name must be a string");
2561
- if (t && !a.isObject(t))
2562
- throw TypeError("options must be an object");
2563
- this.options = t, this.parsedOptions = null, this.name = i, this._edition = null, this._defaultEdition = "proto2", this._features = {}, this._featuresResolved = !1, this.parent = null, this.resolved = !1, this.comment = null, this.filename = null;
2564
- }
2565
- return Object.defineProperties(e.prototype, {
2566
- /**
2567
- * Reference to the root namespace.
2568
- * @name ReflectionObject#root
2569
- * @type {Root}
2570
- * @readonly
2571
- */
2572
- root: {
2573
- get: function() {
2574
- for (var i = this; i.parent !== null; )
2575
- i = i.parent;
2576
- return i;
2577
- }
2578
- },
2579
- /**
2580
- * Full name including leading dot.
2581
- * @name ReflectionObject#fullName
2582
- * @type {string}
2583
- * @readonly
2584
- */
2585
- fullName: {
2586
- get: function() {
2587
- for (var i = [this.name], t = this.parent; t; )
2588
- i.unshift(t.name), t = t.parent;
2589
- return i.join(".");
2590
- }
2591
- }
2592
- }), e.prototype.toJSON = /* istanbul ignore next */
2593
- function() {
2594
- throw Error();
2595
- }, e.prototype.onAdd = function(t) {
2596
- this.parent && this.parent !== t && this.parent.remove(this), this.parent = t, this.resolved = !1;
2597
- var r = t.root;
2598
- r instanceof p && r._handleAdd(this);
2599
- }, e.prototype.onRemove = function(t) {
2600
- var r = t.root;
2601
- r instanceof p && r._handleRemove(this), this.parent = null, this.resolved = !1;
2602
- }, e.prototype.resolve = function() {
2603
- return this.resolved ? this : (this.root instanceof p && (this.resolved = !0), this);
2604
- }, e.prototype._resolveFeaturesRecursive = function(t) {
2605
- return this._resolveFeatures(this._edition || t);
2606
- }, e.prototype._resolveFeatures = function(t) {
2607
- if (!this._featuresResolved) {
2608
- var r = {};
2609
- if (!t)
2610
- throw new Error("Unknown edition for " + this.fullName);
2611
- var f = Object.assign(
2612
- this.options ? Object.assign({}, this.options.features) : {},
2613
- this._inferLegacyProtoFeatures(t)
2614
- );
2615
- if (this._edition) {
2616
- if (t === "proto2")
2617
- r = Object.assign({}, l);
2618
- else if (t === "proto3")
2619
- r = Object.assign({}, n);
2620
- else if (t === "2023")
2621
- r = Object.assign({}, c);
2622
- else
2623
- throw new Error("Unknown edition: " + t);
2624
- this._features = Object.assign(r, f || {}), this._featuresResolved = !0;
2625
- return;
2626
- }
2627
- if (this.partOf instanceof h) {
2628
- var s = Object.assign({}, this.partOf._features);
2629
- this._features = Object.assign(s, f || {});
2630
- } else if (!this.declaringField) if (this.parent) {
2631
- var u = Object.assign({}, this.parent._features);
2632
- this._features = Object.assign(u, f || {});
2633
- } else
2634
- throw new Error("Unable to find a parent for " + this.fullName);
2635
- this.extensionField && (this.extensionField._features = this._features), this._featuresResolved = !0;
2636
- }
2637
- }, e.prototype._inferLegacyProtoFeatures = function() {
2638
- return {};
2639
- }, e.prototype.getOption = function(t) {
2640
- if (this.options)
2641
- return this.options[t];
2642
- }, e.prototype.setOption = function(t, r, f) {
2643
- return t === "__proto__" ? this : (this.options || (this.options = {}), /^features\./.test(t) ? a.setProperty(this.options, t, r, f) : (!f || this.options[t] === void 0) && (this.getOption(t) !== r && (this.resolved = !1), this.options[t] = r), this);
2644
- }, e.prototype.setParsedOption = function(t, r, f) {
2645
- if (t === "__proto__")
2646
- return this;
2647
- this.parsedOptions || (this.parsedOptions = []);
2648
- var s = this.parsedOptions;
2649
- if (f) {
2650
- var u = s.find(function(y) {
2651
- return Object.prototype.hasOwnProperty.call(y, t);
2652
- });
2653
- if (u) {
2654
- var o = u[t];
2655
- a.setProperty(o, f, r);
2656
- } else
2657
- u = {}, u[t] = a.setProperty({}, f, r), s.push(u);
2658
- } else {
2659
- var d = {};
2660
- d[t] = r, s.push(d);
2661
- }
2662
- return this;
2663
- }, e.prototype.setOptions = function(t, r) {
2664
- if (t)
2665
- for (var f = Object.keys(t), s = 0; s < f.length; ++s)
2666
- this.setOption(f[s], t[f[s]], r);
2667
- return this;
2668
- }, e.prototype.toString = function() {
2669
- var t = this.constructor.className, r = this.fullName;
2670
- return r.length ? t + " " + r : t;
2671
- }, e.prototype._editionToJSON = function() {
2672
- if (!(!this._edition || this._edition === "proto3"))
2673
- return this._edition;
2674
- }, e._configure = function(i) {
2675
- p = i;
2676
- }, it;
2677
- }
2678
- var nt, sr;
2679
- function re() {
2680
- if (sr) return nt;
2681
- sr = 1, nt = c;
2682
- var h = se();
2683
- ((c.prototype = Object.create(h.prototype)).constructor = c).className = "Enum";
2684
- var a = ce(), p = H();
2685
- function c(l, n, e, i, t, r) {
2686
- if (h.call(this, l, e), n && typeof n != "object")
2687
- throw TypeError("values must be an object");
2688
- if (this.valuesById = {}, this.values = Object.create(this.valuesById), this.comment = i, this.comments = t || {}, this.valuesOptions = r, this._valuesFeatures = {}, this.reserved = void 0, n)
2689
- for (var f = Object.keys(n), s = 0; s < f.length; ++s)
2690
- f[s] !== "__proto__" && typeof n[f[s]] == "number" && (this.valuesById[this.values[f[s]] = n[f[s]]] = f[s]);
2691
- }
2692
- return c.prototype._resolveFeatures = function(n) {
2693
- return n = this._edition || n, h.prototype._resolveFeatures.call(this, n), Object.keys(this.values).forEach((e) => {
2694
- var i = Object.assign({}, this._features);
2695
- this._valuesFeatures[e] = Object.assign(i, this.valuesOptions && this.valuesOptions[e] && this.valuesOptions[e].features);
2696
- }), this;
2697
- }, c.fromJSON = function(n, e) {
2698
- var i = new c(n, e.values, e.options, e.comment, e.comments);
2699
- return i.reserved = e.reserved, e.edition && (i._edition = e.edition), i._defaultEdition = "proto3", i;
2700
- }, c.prototype.toJSON = function(n) {
2701
- var e = n ? !!n.keepComments : !1;
2702
- return p.toObject([
2703
- "edition",
2704
- this._editionToJSON(),
2705
- "options",
2706
- this.options,
2707
- "valuesOptions",
2708
- this.valuesOptions,
2709
- "values",
2710
- this.values,
2711
- "reserved",
2712
- this.reserved && this.reserved.length ? this.reserved : void 0,
2713
- "comment",
2714
- e ? this.comment : void 0,
2715
- "comments",
2716
- e ? this.comments : void 0
2717
- ]);
2718
- }, c.prototype.add = function(n, e, i, t) {
2719
- if (!p.isString(n))
2720
- throw TypeError("name must be a string");
2721
- if (!p.isInteger(e))
2722
- throw TypeError("id must be an integer");
2723
- if (n === "__proto__")
2724
- return this;
2725
- if (this.values[n] !== void 0)
2726
- throw Error("duplicate name '" + n + "' in " + this);
2727
- if (this.isReservedId(e))
2728
- throw Error("id " + e + " is reserved in " + this);
2729
- if (this.isReservedName(n))
2730
- throw Error("name '" + n + "' is reserved in " + this);
2731
- if (this.valuesById[e] !== void 0) {
2732
- if (!(this.options && this.options.allow_alias))
2733
- throw Error("duplicate id " + e + " in " + this);
2734
- this.values[n] = e;
2735
- } else
2736
- this.valuesById[this.values[n] = e] = n;
2737
- return t && (this.valuesOptions === void 0 && (this.valuesOptions = {}), this.valuesOptions[n] = t || null), this.comments[n] = i || null, this;
2738
- }, c.prototype.remove = function(n) {
2739
- if (!p.isString(n))
2740
- throw TypeError("name must be a string");
2741
- var e = this.values[n];
2742
- if (e == null)
2743
- throw Error("name '" + n + "' does not exist in " + this);
2744
- return delete this.valuesById[e], delete this.values[n], delete this.comments[n], this.valuesOptions && delete this.valuesOptions[n], this;
2745
- }, c.prototype.isReservedId = function(n) {
2746
- return a.isReservedId(this.reserved, n);
2747
- }, c.prototype.isReservedName = function(n) {
2748
- return a.isReservedName(this.reserved, n);
2749
- }, nt;
2750
- }
2751
- var st, or;
2752
- function Or() {
2753
- if (or) return st;
2754
- or = 1, st = l;
2755
- var h = re(), a = ae(), p = H();
2756
- function c(n, e, i, t) {
2757
- return e.delimited ? n("types[%i].encode(%s,w.uint32(%i)).uint32(%i)", i, t, (e.id << 3 | 3) >>> 0, (e.id << 3 | 4) >>> 0) : n("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()", i, t, (e.id << 3 | 2) >>> 0);
2758
- }
2759
- function l(n) {
2760
- for (var e = p.codegen(["m", "w"], n.name + "$encode")("if(!w)")("w=Writer.create()"), i, t, r = (
2761
- /* initializes */
2762
- n.fieldsArray.slice().sort(p.compareFieldsById)
2763
- ), i = 0; i < r.length; ++i) {
2764
- var f = r[i].resolve(), s = n._fieldsArray.indexOf(f), u = f.resolvedType instanceof h ? "int32" : f.type, o = a.basic[u];
2765
- t = "m" + p.safeProp(f.name), f.map ? (e("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", t, f.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){", t)("w.uint32(%i).fork().uint32(%i).%s(ks[i])", (f.id << 3 | 2) >>> 0, 8 | a.mapKey[f.keyType], f.keyType), o === void 0 ? e("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()", s, t) : e(".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | o, u, t), e("}")("}")) : f.repeated ? (e("if(%s!=null&&%s.length){", t, t), f.packed && a.packed[u] !== void 0 ? e("w.uint32(%i).fork()", (f.id << 3 | 2) >>> 0)("for(var i=0;i<%s.length;++i)", t)("w.%s(%s[i])", u, t)("w.ldelim()") : (e("for(var i=0;i<%s.length;++i)", t), o === void 0 ? c(e, f, s, t + "[i]") : e("w.uint32(%i).%s(%s[i])", (f.id << 3 | o) >>> 0, u, t)), e("}")) : (f.optional && e("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", t, f.name), o === void 0 ? c(e, f, s, t) : e("w.uint32(%i).%s(%s)", (f.id << 3 | o) >>> 0, u, t));
2766
- }
2767
- return e("return w");
2768
- }
2769
- return st;
2770
- }
2771
- var ur;
2772
- function ei() {
2773
- if (ur) return Oe.exports;
2774
- ur = 1;
2775
- var h = Oe.exports = Xr();
2776
- h.build = "light";
2777
- function a(c, l, n) {
2778
- return typeof l == "function" ? (n = l, l = new h.Root()) : l || (l = new h.Root()), l.load(c, n);
2779
- }
2780
- h.load = a;
2781
- function p(c, l) {
2782
- return l || (l = new h.Root()), l.loadSync(c);
2783
- }
2784
- return h.loadSync = p, h.encoder = Or(), h.decoder = mr(), h.verifier = gr(), h.converter = _r(), h.ReflectionObject = se(), h.Namespace = ce(), h.Root = mt(), h.Enum = re(), h.Type = vt(), h.Field = ne(), h.OneOf = fe(), h.MapField = ht(), h.Service = pt(), h.Method = dt(), h.Message = yt(), h.wrappers = wr(), h.types = ae(), h.util = H(), h.ReflectionObject._configure(h.Root), h.Namespace._configure(h.Type, h.Service, h.Enum), h.Root._configure(h.Type), h.Field._configure(h.Type), Oe.exports;
2785
- }
2786
- var ot, ar;
2787
- function br() {
2788
- if (ar) return ot;
2789
- ar = 1, ot = f;
2790
- var h = /[\s{}=;:[\],'"()<>]/g, a = /(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g, p = /(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g, c = /^ *[*/]+ */, l = /^\s*\*?\/*/, n = /\n/g, e = /\s/, i = /\\(.?)/g, t = {
2791
- 0: "\0",
2792
- r: "\r",
2793
- n: `
2794
- `,
2795
- t: " "
2796
- };
2797
- function r(s) {
2798
- return s.replace(i, function(u, o) {
2799
- switch (o) {
2800
- case "\\":
2801
- case "":
2802
- return o;
2803
- default:
2804
- return t[o] || "";
2805
- }
2806
- });
2807
- }
2808
- f.unescape = r;
2809
- function f(s, u) {
2810
- s = s.toString();
2811
- var o = 0, d = s.length, y = 1, _ = 0, m = {}, v = [], g = null;
2812
- function E(D) {
2813
- return Error("illegal " + D + " (line " + y + ")");
2814
- }
2815
- function N() {
2816
- var D = g === "'" ? p : a;
2817
- D.lastIndex = o - 1;
2818
- var j = D.exec(s);
2819
- if (!j)
2820
- throw E("string");
2821
- return o = D.lastIndex, x(g), g = null, r(j[1]);
2822
- }
2823
- function q(D) {
2824
- return s.charAt(D);
2825
- }
2826
- function P(D, j, B) {
2827
- var M = {
2828
- type: s.charAt(D++),
2829
- lineEmpty: !1,
2830
- leading: B
2831
- }, G;
2832
- u ? G = 2 : G = 3;
2833
- var L = D - G, $;
2834
- do
2835
- if (--L < 0 || ($ = s.charAt(L)) === `
2836
- `) {
2837
- M.lineEmpty = !0;
2838
- break;
2839
- }
2840
- while ($ === " " || $ === " ");
2841
- for (var K = s.substring(D, j).split(n), Z = 0; Z < K.length; ++Z)
2842
- K[Z] = K[Z].replace(u ? l : c, "").trim();
2843
- M.text = K.join(`
2844
- `).trim(), m[y] = M, _ = y;
2845
- }
2846
- function z(D) {
2847
- var j = I(D), B = s.substring(D, j), M = /^\s*\/\//.test(B);
2848
- return M;
2849
- }
2850
- function I(D) {
2851
- for (var j = D; j < d && q(j) !== `
2852
- `; )
2853
- j++;
2854
- return j;
2855
- }
2856
- function C() {
2857
- if (v.length > 0)
2858
- return v.shift();
2859
- if (g)
2860
- return N();
2861
- var D, j, B, M, G, L = o === 0;
2862
- do {
2863
- if (o === d)
2864
- return null;
2865
- for (D = !1; e.test(B = q(o)); )
2866
- if (B === `
2867
- ` && (L = !0, ++y), ++o === d)
2868
- return null;
2869
- if (q(o) === "/") {
2870
- if (++o === d)
2871
- throw E("comment");
2872
- if (q(o) === "/")
2873
- if (u) {
2874
- if (M = o, G = !1, z(o - 1)) {
2875
- G = !0;
2876
- do
2877
- if (o = I(o), o === d || (o++, !L))
2878
- break;
2879
- while (z(o));
2880
- } else
2881
- o = Math.min(d, I(o) + 1);
2882
- G && (P(M, o, L), L = !0), y++, D = !0;
2883
- } else {
2884
- for (G = q(M = o + 1) === "/"; q(++o) !== `
2885
- `; )
2886
- if (o === d)
2887
- return null;
2888
- ++o, G && (P(M, o - 1, L), L = !0), ++y, D = !0;
2889
- }
2890
- else if ((B = q(o)) === "*") {
2891
- M = o + 1, G = u || q(M) === "*";
2892
- do {
2893
- if (B === `
2894
- ` && ++y, ++o === d)
2895
- throw E("comment");
2896
- j = B, B = q(o);
2897
- } while (j !== "*" || B !== "/");
2898
- ++o, G && (P(M, o - 2, L), L = !0), D = !0;
2899
- } else
2900
- return "/";
2901
- }
2902
- } while (D);
2903
- var $ = o;
2904
- h.lastIndex = 0;
2905
- var K = h.test(q($++));
2906
- if (!K)
2907
- for (; $ < d && !h.test(q($)); )
2908
- ++$;
2909
- var Z = s.substring(o, o = $);
2910
- return (Z === '"' || Z === "'") && (g = Z), Z;
2911
- }
2912
- function x(D) {
2913
- v.push(D);
2914
- }
2915
- function W() {
2916
- if (!v.length) {
2917
- var D = C();
2918
- if (D === null)
2919
- return null;
2920
- x(D);
2921
- }
2922
- return v[0];
2923
- }
2924
- function J(D, j) {
2925
- var B = W(), M = B === D;
2926
- if (M)
2927
- return C(), !0;
2928
- if (!j)
2929
- throw E("token '" + B + "', '" + D + "' expected");
2930
- return !1;
2931
- }
2932
- function k(D) {
2933
- var j = null, B;
2934
- return D === void 0 ? (B = m[y - 1], delete m[y - 1], B && (u || B.type === "*" || B.lineEmpty) && (j = B.leading ? B.text : null)) : (_ < D && W(), B = m[D], delete m[D], B && !B.lineEmpty && (u || B.type === "/") && (j = B.leading ? null : B.text)), j;
2935
- }
2936
- return Object.defineProperty({
2937
- next: C,
2938
- peek: W,
2939
- push: x,
2940
- skip: J,
2941
- cmnt: k
2942
- }, "line", {
2943
- get: function() {
2944
- return y;
2945
- }
2946
- });
2947
- }
2948
- return ot;
2949
- }
2950
- var ut, fr;
2951
- function ti() {
2952
- if (fr) return ut;
2953
- fr = 1, ut = N, N.filename = null, N.defaults = { keepCase: !1 };
2954
- var h = br(), a = mt(), p = vt(), c = ne(), l = ht(), n = fe(), e = re(), i = pt(), t = dt(), r = se(), f = ae(), s = H(), u = /^[1-9][0-9]*$/, o = /^-?[1-9][0-9]*$/, d = /^0[x][0-9a-fA-F]+$/, y = /^-?0[x][0-9a-fA-F]+$/, _ = /^0[0-7]+$/, m = /^-?0[0-7]+$/, v = s.patterns.numberRe, g = /^[a-zA-Z_][a-zA-Z_0-9]*$/, E = s.patterns.typeRefRe;
2955
- function N(q, P, z) {
2956
- P instanceof a || (z = P, P = new a()), z || (z = N.defaults);
2957
- var I = z.preferTrailingComment || !1, C = h(q, z.alternateCommentMode || !1), x = C.next, W = C.push, J = C.peek, k = C.skip, D = C.cmnt, j = !0, B, M, G, L = "proto2", $ = P, K = [], Z = {}, ye = z.keepCase ? function(O) {
2958
- return O;
2959
- } : s.camelCase;
2960
- function Er() {
2961
- K.forEach((O) => {
2962
- O._edition = L, Object.keys(Z).forEach((w) => {
2963
- O.getOption(w) === void 0 && O.setOption(w, Z[w], !0);
2964
- });
2965
- });
2966
- }
2967
- function S(O, w, b) {
2968
- var R = N.filename;
2969
- return b || (N.filename = null), Error("illegal " + (w || "token") + " '" + O + "' (" + (R ? R + ", " : "") + "line " + C.line + ")");
2970
- }
2971
- function le() {
2972
- var O = [], w;
2973
- do {
2974
- if ((w = x()) !== '"' && w !== "'")
2975
- throw S(w);
2976
- O.push(x()), k(w), w = J();
2977
- } while (w === '"' || w === "'");
2978
- return O.join("");
2979
- }
2980
- function ve(O) {
2981
- var w = x();
2982
- switch (w) {
2983
- case "'":
2984
- case '"':
2985
- return W(w), le();
2986
- case "true":
2987
- case "TRUE":
2988
- return !0;
2989
- case "false":
2990
- case "FALSE":
2991
- return !1;
2992
- }
2993
- try {
2994
- return Ar(
2995
- w,
2996
- /* insideTryCatch */
2997
- !0
2998
- );
2999
- } catch {
3000
- if (E.test(w))
3001
- return w;
3002
- throw S(w, "value");
3003
- }
3004
- }
3005
- function he(O, w) {
3006
- var b, R;
3007
- do
3008
- if (w && ((b = J()) === '"' || b === "'")) {
3009
- var F = le();
3010
- if (O.push(F), L >= 2023)
3011
- throw S(F, "id");
3012
- } else
3013
- try {
3014
- O.push([R = oe(x()), k("to", !0) ? oe(x()) : R]);
3015
- } catch (T) {
3016
- if (w && E.test(b) && L >= 2023)
3017
- O.push(b);
3018
- else
3019
- throw T;
3020
- }
3021
- while (k(",", !0));
3022
- var A = { options: void 0 };
3023
- A.setOption = function(T, V) {
3024
- this.options === void 0 && (this.options = {}), this.options[T] = V;
3025
- }, Y(
3026
- A,
3027
- function(V) {
3028
- if (V === "option")
3029
- ee(A, V), k(";");
3030
- else
3031
- throw S(V);
3032
- },
3033
- function() {
3034
- de(A);
3035
- }
3036
- );
3037
- }
3038
- function Ar(O, w) {
3039
- var b = 1;
3040
- switch (O.charAt(0) === "-" && (b = -1, O = O.substring(1)), O) {
3041
- case "inf":
3042
- case "INF":
3043
- case "Inf":
3044
- return b * (1 / 0);
3045
- case "nan":
3046
- case "NAN":
3047
- case "Nan":
3048
- case "NaN":
3049
- return NaN;
3050
- case "0":
3051
- return 0;
3052
- }
3053
- if (u.test(O))
3054
- return b * parseInt(O, 10);
3055
- if (d.test(O))
3056
- return b * parseInt(O, 16);
3057
- if (_.test(O))
3058
- return b * parseInt(O, 8);
3059
- if (v.test(O))
3060
- return b * parseFloat(O);
3061
- throw S(O, "number", w);
3062
- }
3063
- function oe(O, w) {
3064
- switch (O) {
3065
- case "max":
3066
- case "MAX":
3067
- case "Max":
3068
- return 536870911;
3069
- case "0":
3070
- return 0;
3071
- }
3072
- if (!w && O.charAt(0) === "-")
3073
- throw S(O, "id");
3074
- if (o.test(O))
3075
- return parseInt(O, 10);
3076
- if (y.test(O))
3077
- return parseInt(O, 16);
3078
- if (m.test(O))
3079
- return parseInt(O, 8);
3080
- throw S(O, "id");
3081
- }
3082
- function xr() {
3083
- if (B !== void 0)
3084
- throw S("package");
3085
- if (B = x(), !E.test(B))
3086
- throw S(B, "name");
3087
- $ = $.define(B), k(";");
3088
- }
3089
- function kr() {
3090
- var O = J(), w;
3091
- switch (O) {
3092
- case "weak":
3093
- w = G || (G = []), x();
3094
- break;
3095
- case "public":
3096
- x();
3097
- // eslint-disable-next-line no-fallthrough
3098
- default:
3099
- w = M || (M = []);
3100
- break;
3101
- }
3102
- O = le(), k(";"), w.push(O);
3103
- }
3104
- function Fr() {
3105
- if (k("="), L = le(), L < 2023)
3106
- throw S(L, "syntax");
3107
- k(";");
3108
- }
3109
- function Sr() {
3110
- if (k("="), L = le(), !["2023"].includes(L))
3111
- throw S(L, "edition");
3112
- k(";");
3113
- }
3114
- function me(O, w, b) {
3115
- switch (b = s.checkDepth(b), w) {
3116
- case "option":
3117
- return ee(O, w), k(";"), !0;
3118
- case "message":
3119
- return gt(O, w, b + 1), !0;
3120
- case "enum":
3121
- return _t(O, w), !0;
3122
- case "service":
3123
- return Ir(O, w, b + 1), !0;
3124
- case "extend":
3125
- return Pr(O, w, b), !0;
3126
- }
3127
- return !1;
3128
- }
3129
- function Y(O, w, b) {
3130
- var R = C.line;
3131
- if (O && (typeof O.comment != "string" && (O.comment = D()), O.filename = N.filename), k("{", !0)) {
3132
- for (var F; (F = x()) !== "}"; )
3133
- w(F);
3134
- k(";", !0);
3135
- } else
3136
- b && b(), k(";"), O && (typeof O.comment != "string" || I) && (O.comment = D(R) || O.comment);
3137
- }
3138
- function gt(O, w, b) {
3139
- if (b = s.checkDepth(b), !g.test(w = x()))
3140
- throw S(w, "type name");
3141
- var R = new p(w);
3142
- Y(R, function(A) {
3143
- if (!me(R, A, b))
3144
- switch (A) {
3145
- case "map":
3146
- Tr(R);
3147
- break;
3148
- case "required":
3149
- if (L !== "proto2")
3150
- throw S(A);
3151
- /* eslint-disable no-fallthrough */
3152
- case "repeated":
3153
- Q(R, A, void 0, b + 1);
3154
- break;
3155
- case "optional":
3156
- if (L === "proto3")
3157
- Q(R, "proto3_optional", void 0, b + 1);
3158
- else {
3159
- if (L !== "proto2")
3160
- throw S(A);
3161
- Q(R, "optional", void 0, b + 1);
3162
- }
3163
- break;
3164
- case "oneof":
3165
- qr(R, A, b + 1);
3166
- break;
3167
- case "extensions":
3168
- he(R.extensions || (R.extensions = []));
3169
- break;
3170
- case "reserved":
3171
- he(R.reserved || (R.reserved = []), !0);
3172
- break;
3173
- default:
3174
- if (L === "proto2" || !E.test(A))
3175
- throw S(A);
3176
- W(A), Q(R, "optional", void 0, b + 1);
3177
- break;
3178
- }
3179
- }), O.add(R), O === $ && K.push(R);
3180
- }
3181
- function Q(O, w, b, R) {
3182
- var F = x();
3183
- if (F === "group") {
3184
- Nr(O, w, R);
3185
- return;
3186
- }
3187
- for (; F.endsWith(".") || J().startsWith("."); )
3188
- F += x();
3189
- if (!E.test(F))
3190
- throw S(F, "type");
3191
- var A = x();
3192
- if (!g.test(A))
3193
- throw S(A, "name");
3194
- A = ye(A), k("=");
3195
- var T = new c(A, oe(x()), F, w, b);
3196
- if (Y(T, function(X) {
3197
- if (X === "option")
3198
- ee(T, X), k(";");
3199
- else
3200
- throw S(X);
3201
- }, function() {
3202
- de(T);
3203
- }), w === "proto3_optional") {
3204
- var V = new n("_" + A);
3205
- T.setOption("proto3_optional", !0), V.add(T), O.add(V);
3206
- } else
3207
- O.add(T);
3208
- O === $ && K.push(T);
3209
- }
3210
- function Nr(O, w, b) {
3211
- if (b = s.checkDepth(b), L >= 2023)
3212
- throw S("group");
3213
- var R = x();
3214
- if (!g.test(R))
3215
- throw S(R, "name");
3216
- var F = s.lcFirst(R);
3217
- R === F && (R = s.ucFirst(R)), k("=");
3218
- var A = oe(x()), T = new p(R);
3219
- T.group = !0;
3220
- var V = new c(F, A, R, w);
3221
- V.filename = N.filename, Y(T, function(X) {
3222
- switch (X) {
3223
- case "option":
3224
- ee(T, X), k(";");
3225
- break;
3226
- case "required":
3227
- case "repeated":
3228
- Q(T, X, void 0, b + 1);
3229
- break;
3230
- case "optional":
3231
- L === "proto3" ? Q(T, "proto3_optional", void 0, b + 1) : Q(T, "optional", void 0, b + 1);
3232
- break;
3233
- case "message":
3234
- gt(T, X, b + 1);
3235
- break;
3236
- case "enum":
3237
- _t(T, X);
3238
- break;
3239
- case "reserved":
3240
- he(T.reserved || (T.reserved = []), !0);
3241
- break;
3242
- /* istanbul ignore next */
3243
- default:
3244
- throw S(X);
3245
- }
3246
- }), O.add(T).add(V);
3247
- }
3248
- function Tr(O) {
3249
- k("<");
3250
- var w = x();
3251
- if (f.mapKey[w] === void 0)
3252
- throw S(w, "type");
3253
- k(",");
3254
- var b = x();
3255
- if (!E.test(b))
3256
- throw S(b, "type");
3257
- k(">");
3258
- var R = x();
3259
- if (!g.test(R))
3260
- throw S(R, "name");
3261
- k("=");
3262
- var F = new l(ye(R), oe(x()), w, b);
3263
- Y(F, function(T) {
3264
- if (T === "option")
3265
- ee(F, T), k(";");
3266
- else
3267
- throw S(T);
3268
- }, function() {
3269
- de(F);
3270
- }), O.add(F);
3271
- }
3272
- function qr(O, w, b) {
3273
- if (!g.test(w = x()))
3274
- throw S(w, "name");
3275
- var R = new n(ye(w));
3276
- Y(R, function(A) {
3277
- A === "option" ? (ee(R, A), k(";")) : (W(A), Q(R, "optional", void 0, b));
3278
- }), O.add(R);
3279
- }
3280
- function _t(O, w) {
3281
- if (!g.test(w = x()))
3282
- throw S(w, "name");
3283
- var b = new e(w);
3284
- Y(b, function(F) {
3285
- switch (F) {
3286
- case "option":
3287
- ee(b, F), k(";");
3288
- break;
3289
- case "reserved":
3290
- he(b.reserved || (b.reserved = []), !0), b.reserved === void 0 && (b.reserved = []);
3291
- break;
3292
- default:
3293
- Dr(b, F);
3294
- }
3295
- }), O.add(b), O === $ && K.push(b);
3296
- }
3297
- function Dr(O, w) {
3298
- if (!g.test(w))
3299
- throw S(w, "name");
3300
- k("=");
3301
- var b = oe(x(), !0), R = {
3302
- options: void 0
3303
- };
3304
- R.getOption = function(F) {
3305
- return this.options[F];
3306
- }, R.setOption = function(F, A) {
3307
- r.prototype.setOption.call(R, F, A);
3308
- }, R.setParsedOption = function() {
3309
- }, Y(R, function(A) {
3310
- if (A === "option")
3311
- ee(R, A), k(";");
3312
- else
3313
- throw S(A);
3314
- }, function() {
3315
- de(R);
3316
- }), O.add(w, b, R.comment, R.parsedOptions || R.options);
3317
- }
3318
- function ee(O, w) {
3319
- var b, R, F = !0;
3320
- for (w === "option" && (w = x()); w !== "="; ) {
3321
- if (w === "(") {
3322
- var A = x();
3323
- k(")"), w = "(" + A + ")";
3324
- }
3325
- if (F) {
3326
- if (F = !1, w.includes(".") && !w.includes("(")) {
3327
- var T = w.split(".");
3328
- b = T[0] + ".", w = T[1];
3329
- continue;
3330
- }
3331
- b = w;
3332
- } else
3333
- R = R ? R += w : w;
3334
- w = x();
3335
- }
3336
- var V = R ? b.concat(R) : b, te = wt(O, V);
3337
- R = R && R[0] === "." ? R.slice(1) : R, b = b && b[b.length - 1] === "." ? b.slice(0, -1) : b, Br(O, b, te, R);
3338
- }
3339
- function wt(O, w, b) {
3340
- if (b = s.checkDepth(b), k("{", !0)) {
3341
- for (var R = {}; !k("}", !0); ) {
3342
- if (!g.test(U = x()))
3343
- throw S(U, "name");
3344
- if (U === null)
3345
- throw S(U, "end of input");
3346
- var F, A = U;
3347
- if (k(":", !0), J() === "{")
3348
- F = wt(O, w + "." + U, b + 1);
3349
- else if (J() === "[") {
3350
- F = [];
3351
- var T;
3352
- if (k("[", !0)) {
3353
- do
3354
- T = ve(), F.push(T);
3355
- while (k(",", !0));
3356
- k("]"), typeof T < "u" && ge(O, w + "." + U, T);
3357
- }
3358
- } else
3359
- F = ve(), ge(O, w + "." + U, F);
3360
- var V = R[A];
3361
- V && (F = [].concat(V).concat(F)), A !== "__proto__" && (R[A] = F), k(",", !0), k(";", !0);
3362
- }
3363
- return R;
3364
- }
3365
- var te = ve();
3366
- return ge(O, w, te), te;
3367
- }
3368
- function ge(O, w, b) {
3369
- if ($ === O && /^features\./.test(w)) {
3370
- Z[w] = b;
3371
- return;
3372
- }
3373
- O.setOption && O.setOption(w, b);
3374
- }
3375
- function Br(O, w, b, R) {
3376
- O.setParsedOption && O.setParsedOption(w, b, R);
3377
- }
3378
- function de(O) {
3379
- if (k("[", !0)) {
3380
- do
3381
- ee(O, "option");
3382
- while (k(",", !0));
3383
- k("]");
3384
- }
3385
- return O;
3386
- }
3387
- function Ir(O, w, b) {
3388
- if (b = s.checkDepth(b), !g.test(w = x()))
3389
- throw S(w, "service name");
3390
- var R = new i(w);
3391
- Y(R, function(A) {
3392
- if (!me(R, A, b))
3393
- if (A === "rpc")
3394
- Cr(R, A);
3395
- else
3396
- throw S(A);
3397
- }), O.add(R), O === $ && K.push(R);
3398
- }
3399
- function Cr(O, w) {
3400
- var b = D(), R = w;
3401
- if (!g.test(w = x()))
3402
- throw S(w, "name");
3403
- var F = w, A, T, V, te;
3404
- if (k("("), k("stream", !0) && (T = !0), !E.test(w = x()) || (A = w, k(")"), k("returns"), k("("), k("stream", !0) && (te = !0), !E.test(w = x())))
3405
- throw S(w);
3406
- V = w, k(")");
3407
- var X = new t(F, R, A, V, T, te);
3408
- X.comment = b, Y(X, function(_e) {
3409
- if (_e === "option")
3410
- ee(X, _e), k(";");
3411
- else
3412
- throw S(_e);
3413
- }), O.add(X);
3414
- }
3415
- function Pr(O, w, b) {
3416
- if (!E.test(w = x()))
3417
- throw S(w, "reference");
3418
- var R = w;
3419
- Y(null, function(A) {
3420
- switch (A) {
3421
- case "required":
3422
- case "repeated":
3423
- Q(O, A, R, b + 1);
3424
- break;
3425
- case "optional":
3426
- L === "proto3" ? Q(O, "proto3_optional", R, b + 1) : Q(O, "optional", R, b + 1);
3427
- break;
3428
- default:
3429
- if (L === "proto2" || !E.test(A))
3430
- throw S(A);
3431
- W(A), Q(O, "optional", R, b + 1);
3432
- break;
3433
- }
3434
- });
3435
- }
3436
- for (var U; (U = x()) !== null; )
3437
- switch (U) {
3438
- case "package":
3439
- if (!j)
3440
- throw S(U);
3441
- xr();
3442
- break;
3443
- case "import":
3444
- if (!j)
3445
- throw S(U);
3446
- kr();
3447
- break;
3448
- case "syntax":
3449
- if (!j)
3450
- throw S(U);
3451
- Fr();
3452
- break;
3453
- case "edition":
3454
- if (!j)
3455
- throw S(U);
3456
- Sr();
3457
- break;
3458
- case "option":
3459
- ee($, U), k(";", !0);
3460
- break;
3461
- default:
3462
- if (me($, U, 0)) {
3463
- j = !1;
3464
- continue;
3465
- }
3466
- throw S(U);
3467
- }
3468
- return Er(), N.filename = null, {
3469
- package: B,
3470
- imports: M,
3471
- weakImports: G,
3472
- root: P
3473
- };
3474
- }
3475
- return ut;
3476
- }
3477
- var at, lr;
3478
- function ri() {
3479
- if (lr) return at;
3480
- lr = 1, at = a;
3481
- var h = /\/|\./;
3482
- function a(c, l) {
3483
- h.test(c) || (c = "google/protobuf/" + c + ".proto", l = { nested: { google: { nested: { protobuf: { nested: l } } } } }), a[c] = l;
3484
- }
3485
- a("any", {
3486
- /**
3487
- * Properties of a google.protobuf.Any message.
3488
- * @interface IAny
3489
- * @type {Object}
3490
- * @property {string} [typeUrl]
3491
- * @property {Uint8Array} [bytes]
3492
- * @memberof common
3493
- */
3494
- Any: {
3495
- fields: {
3496
- type_url: {
3497
- type: "string",
3498
- id: 1
3499
- },
3500
- value: {
3501
- type: "bytes",
3502
- id: 2
3503
- }
3504
- }
3505
- }
3506
- });
3507
- var p;
3508
- return a("duration", {
3509
- /**
3510
- * Properties of a google.protobuf.Duration message.
3511
- * @interface IDuration
3512
- * @type {Object}
3513
- * @property {number|Long} [seconds]
3514
- * @property {number} [nanos]
3515
- * @memberof common
3516
- */
3517
- Duration: p = {
3518
- fields: {
3519
- seconds: {
3520
- type: "int64",
3521
- id: 1
3522
- },
3523
- nanos: {
3524
- type: "int32",
3525
- id: 2
3526
- }
3527
- }
3528
- }
3529
- }), a("timestamp", {
3530
- /**
3531
- * Properties of a google.protobuf.Timestamp message.
3532
- * @interface ITimestamp
3533
- * @type {Object}
3534
- * @property {number|Long} [seconds]
3535
- * @property {number} [nanos]
3536
- * @memberof common
3537
- */
3538
- Timestamp: p
3539
- }), a("empty", {
3540
- /**
3541
- * Properties of a google.protobuf.Empty message.
3542
- * @interface IEmpty
3543
- * @memberof common
3544
- */
3545
- Empty: {
3546
- fields: {}
3547
- }
3548
- }), a("struct", {
3549
- /**
3550
- * Properties of a google.protobuf.Struct message.
3551
- * @interface IStruct
3552
- * @type {Object}
3553
- * @property {Object.<string,IValue>} [fields]
3554
- * @memberof common
3555
- */
3556
- Struct: {
3557
- fields: {
3558
- fields: {
3559
- keyType: "string",
3560
- type: "Value",
3561
- id: 1
3562
- }
3563
- }
3564
- },
3565
- /**
3566
- * Properties of a google.protobuf.Value message.
3567
- * @interface IValue
3568
- * @type {Object}
3569
- * @property {string} [kind]
3570
- * @property {0} [nullValue]
3571
- * @property {number} [numberValue]
3572
- * @property {string} [stringValue]
3573
- * @property {boolean} [boolValue]
3574
- * @property {IStruct} [structValue]
3575
- * @property {IListValue} [listValue]
3576
- * @memberof common
3577
- */
3578
- Value: {
3579
- oneofs: {
3580
- kind: {
3581
- oneof: [
3582
- "nullValue",
3583
- "numberValue",
3584
- "stringValue",
3585
- "boolValue",
3586
- "structValue",
3587
- "listValue"
3588
- ]
3589
- }
3590
- },
3591
- fields: {
3592
- nullValue: {
3593
- type: "NullValue",
3594
- id: 1
3595
- },
3596
- numberValue: {
3597
- type: "double",
3598
- id: 2
3599
- },
3600
- stringValue: {
3601
- type: "string",
3602
- id: 3
3603
- },
3604
- boolValue: {
3605
- type: "bool",
3606
- id: 4
3607
- },
3608
- structValue: {
3609
- type: "Struct",
3610
- id: 5
3611
- },
3612
- listValue: {
3613
- type: "ListValue",
3614
- id: 6
3615
- }
3616
- }
3617
- },
3618
- NullValue: {
3619
- values: {
3620
- NULL_VALUE: 0
3621
- }
3622
- },
3623
- /**
3624
- * Properties of a google.protobuf.ListValue message.
3625
- * @interface IListValue
3626
- * @type {Object}
3627
- * @property {Array.<IValue>} [values]
3628
- * @memberof common
3629
- */
3630
- ListValue: {
3631
- fields: {
3632
- values: {
3633
- rule: "repeated",
3634
- type: "Value",
3635
- id: 1
3636
- }
3637
- }
3638
- }
3639
- }), a("wrappers", {
3640
- /**
3641
- * Properties of a google.protobuf.DoubleValue message.
3642
- * @interface IDoubleValue
3643
- * @type {Object}
3644
- * @property {number} [value]
3645
- * @memberof common
3646
- */
3647
- DoubleValue: {
3648
- fields: {
3649
- value: {
3650
- type: "double",
3651
- id: 1
3652
- }
3653
- }
3654
- },
3655
- /**
3656
- * Properties of a google.protobuf.FloatValue message.
3657
- * @interface IFloatValue
3658
- * @type {Object}
3659
- * @property {number} [value]
3660
- * @memberof common
3661
- */
3662
- FloatValue: {
3663
- fields: {
3664
- value: {
3665
- type: "float",
3666
- id: 1
3667
- }
3668
- }
3669
- },
3670
- /**
3671
- * Properties of a google.protobuf.Int64Value message.
3672
- * @interface IInt64Value
3673
- * @type {Object}
3674
- * @property {number|Long} [value]
3675
- * @memberof common
3676
- */
3677
- Int64Value: {
3678
- fields: {
3679
- value: {
3680
- type: "int64",
3681
- id: 1
3682
- }
3683
- }
3684
- },
3685
- /**
3686
- * Properties of a google.protobuf.UInt64Value message.
3687
- * @interface IUInt64Value
3688
- * @type {Object}
3689
- * @property {number|Long} [value]
3690
- * @memberof common
3691
- */
3692
- UInt64Value: {
3693
- fields: {
3694
- value: {
3695
- type: "uint64",
3696
- id: 1
3697
- }
3698
- }
3699
- },
3700
- /**
3701
- * Properties of a google.protobuf.Int32Value message.
3702
- * @interface IInt32Value
3703
- * @type {Object}
3704
- * @property {number} [value]
3705
- * @memberof common
3706
- */
3707
- Int32Value: {
3708
- fields: {
3709
- value: {
3710
- type: "int32",
3711
- id: 1
3712
- }
3713
- }
3714
- },
3715
- /**
3716
- * Properties of a google.protobuf.UInt32Value message.
3717
- * @interface IUInt32Value
3718
- * @type {Object}
3719
- * @property {number} [value]
3720
- * @memberof common
3721
- */
3722
- UInt32Value: {
3723
- fields: {
3724
- value: {
3725
- type: "uint32",
3726
- id: 1
3727
- }
3728
- }
3729
- },
3730
- /**
3731
- * Properties of a google.protobuf.BoolValue message.
3732
- * @interface IBoolValue
3733
- * @type {Object}
3734
- * @property {boolean} [value]
3735
- * @memberof common
3736
- */
3737
- BoolValue: {
3738
- fields: {
3739
- value: {
3740
- type: "bool",
3741
- id: 1
3742
- }
3743
- }
3744
- },
3745
- /**
3746
- * Properties of a google.protobuf.StringValue message.
3747
- * @interface IStringValue
3748
- * @type {Object}
3749
- * @property {string} [value]
3750
- * @memberof common
3751
- */
3752
- StringValue: {
3753
- fields: {
3754
- value: {
3755
- type: "string",
3756
- id: 1
3757
- }
3758
- }
3759
- },
3760
- /**
3761
- * Properties of a google.protobuf.BytesValue message.
3762
- * @interface IBytesValue
3763
- * @type {Object}
3764
- * @property {Uint8Array} [value]
3765
- * @memberof common
3766
- */
3767
- BytesValue: {
3768
- fields: {
3769
- value: {
3770
- type: "bytes",
3771
- id: 1
3772
- }
3773
- }
3774
- }
3775
- }), a("field_mask", {
3776
- /**
3777
- * Properties of a google.protobuf.FieldMask message.
3778
- * @interface IDoubleValue
3779
- * @type {Object}
3780
- * @property {number} [value]
3781
- * @memberof common
3782
- */
3783
- FieldMask: {
3784
- fields: {
3785
- paths: {
3786
- rule: "repeated",
3787
- type: "string",
3788
- id: 1
3789
- }
3790
- }
3791
- }
3792
- }), a.get = function(l) {
3793
- return a[l] || null;
3794
- }, at;
3795
- }
3796
- var cr;
3797
- function ii() {
3798
- if (cr) return we.exports;
3799
- cr = 1;
3800
- var h = we.exports = ei();
3801
- return h.build = "full", h.tokenize = br(), h.parse = ti(), h.common = ri(), h.Root._configure(h.Type, h.parse, h.common), we.exports;
3802
- }
3803
- var ft, hr;
3804
- function ni() {
3805
- return hr || (hr = 1, ft = ii()), ft;
3806
- }
3807
- var Rr = ni();
3808
- const si = /* @__PURE__ */ jr(Rr), ui = /* @__PURE__ */ Lr({
3809
- __proto__: null,
3810
- default: si
3811
- }, [Rr]);
3812
- export {
3813
- ui as i
3814
- };
3815
- //# sourceMappingURL=index-Cq3lJx2c.js.map