@cimulate/copilot-widget 1.50.2 → 1.50.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dist/messaging.es.js +3683 -3710
- package/dist/messaging.umd.js +45 -48
- package/dist/o11y-sdk.umd.js +4 -0
- package/package.json +1 -1
- package/dist/client-BjHA3vv5.js +0 -1964
- package/dist/collectors-DLVG7H_C.js +0 -2053
- package/dist/sf_embeddedMessaging-B3h7hoYD.js +0 -18
- package/dist/shared-B0BNUnWB.js +0 -661
|
@@ -1,2053 +0,0 @@
|
|
|
1
|
-
var $ = (b, g, j) => new Promise((f, v) => {
|
|
2
|
-
var O = (n) => {
|
|
3
|
-
try {
|
|
4
|
-
a(j.next(n));
|
|
5
|
-
} catch (i) {
|
|
6
|
-
v(i);
|
|
7
|
-
}
|
|
8
|
-
}, l = (n) => {
|
|
9
|
-
try {
|
|
10
|
-
a(j.throw(n));
|
|
11
|
-
} catch (i) {
|
|
12
|
-
v(i);
|
|
13
|
-
}
|
|
14
|
-
}, a = (n) => n.done ? f(n.value) : Promise.resolve(n.value).then(O, l);
|
|
15
|
-
a((j = j.apply(b, g)).next());
|
|
16
|
-
});
|
|
17
|
-
import { m as H, u as D, s as F, L as Z } from "./shared-B0BNUnWB.js";
|
|
18
|
-
const Y = { pbjsSchema: { nested: { sf: { nested: { instrumentation: { nested: { MessageBundle: { fields: { messages: { rule: "repeated", id: 2, type: "LogMessage" }, schemaName: { id: 1, type: "string" } } }, Metrics: { fields: { globalMetricTags: { rule: "repeated", id: 4, type: "MetricTag" }, bucketHistograms: { rule: "repeated", id: 3, type: "BucketHistogram" }, valueRecorders: { rule: "repeated", id: 2, type: "ValueRecorder" }, upCounters: {
|
|
19
|
-
rule: "repeated",
|
|
20
|
-
id: 1,
|
|
21
|
-
type: "UpCounter"
|
|
22
|
-
} } }, CoreEnvelopeDiagnostics: { fields: { schemaVersion: { id: 6, type: "string" }, generatedTimestamp: { id: 2, type: "double" }, bundleCount: { id: 3, type: "uint32" }, upCounterCount: { id: 4, type: "uint32" }, valueRecorderCount: { id: 5, type: "uint32" }, key: { id: 1, type: "string" }, bucketHistogramCount: { id: 7, type: "uint32" } } }, LogMessage: { fields: { data: { id: 2, type: "bytes" }, rootId: { id: 4, type: "string" }, csId: { id: 12, type: "string" }, recCsId: {
|
|
23
|
-
id: 13,
|
|
24
|
-
type: "string"
|
|
25
|
-
}, pagePayload: { id: 7, type: "Payload" }, connectionType: { id: 9, type: "string" }, appPayload: { id: 10, type: "Payload" }, tenantClass: { id: 15, type: "string" }, loggerAppName: { id: 8, type: "string" }, sseq: { id: 11, type: "uint32" }, recRootId: { id: 14, type: "string" }, loggerName: { id: 6, type: "string" }, age: { id: 3, type: "double" }, seq: { id: 5, type: "uint32" }, timestamp: { id: 1, type: "double" } } }, CoreEnvelope: { fields: {
|
|
26
|
-
diagnostics: { id: 1, type: "CoreEnvelopeDiagnostics" },
|
|
27
|
-
bundles: { rule: "repeated", id: 2, type: "MessageBundle" },
|
|
28
|
-
metrics: { id: 3, type: "Metrics" },
|
|
29
|
-
staticAttributes: { id: 4, type: "StaticAttributes" }
|
|
30
|
-
} }, MetricTag: { fields: { name: { id: 1, type: "string" }, value: { id: 2, type: "string" } } }, BucketHistogram: { fields: { lastUpdatedTimestamp: { id: 3, type: "double" }, ownerName: { id: 7, type: "string" }, ownerAppName: { id: 8, type: "string" }, createdTimestamp: { id: 2, type: "double" }, values: { rule: "repeated", id: 4, type: "double" }, buckets: {
|
|
31
|
-
rule: "repeated",
|
|
32
|
-
id: 5,
|
|
33
|
-
type: "uint32"
|
|
34
|
-
}, name: { id: 1, type: "string" }, tags: { rule: "repeated", id: 6, type: "MetricTag" } } }, ValueRecorder: { fields: { lastUpdatedTimestamp: { id: 3, type: "double" }, ownerName: { id: 6, type: "string" }, ownerAppName: { id: 7, type: "string" }, createdTimestamp: { id: 2, type: "double" }, values: { rule: "repeated", id: 4, type: "double" }, name: { id: 1, type: "string" }, tags: { rule: "repeated", id: 5, type: "MetricTag" } } }, StaticAttributes: { fields: {
|
|
35
|
-
appVersion: { id: 2, type: "string" },
|
|
36
|
-
appName: { id: 1, type: "string" },
|
|
37
|
-
deviceModel: { id: 5, type: "string" },
|
|
38
|
-
sdkVersion: { id: 6, type: "string" },
|
|
39
|
-
deviceId: { id: 4, type: "string" },
|
|
40
|
-
appExperience: { id: 3, type: "string" }
|
|
41
|
-
} }, Payload: { fields: { payload: { id: 2, type: "bytes" }, schemaName: { id: 1, type: "string" } } }, UpCounter: { fields: {
|
|
42
|
-
lastUpdatedTimestamp: { id: 3, type: "double" },
|
|
43
|
-
ownerName: { id: 6, type: "string" },
|
|
44
|
-
ownerAppName: { id: 7, type: "string" },
|
|
45
|
-
createdTimestamp: { id: 2, type: "double" },
|
|
46
|
-
name: { id: 1, type: "string" },
|
|
47
|
-
value: { id: 4, type: "uint32" },
|
|
48
|
-
tags: { rule: "repeated", id: 5, type: "MetricTag" }
|
|
49
|
-
} } } } } } } } }, Q = "264.105.0", ee = "o11y";
|
|
50
|
-
class q {
|
|
51
|
-
constructor() {
|
|
52
|
-
this._envelope = {
|
|
53
|
-
diagnostics: {
|
|
54
|
-
key: ee,
|
|
55
|
-
generatedTimestamp: void 0,
|
|
56
|
-
bundleCount: 0,
|
|
57
|
-
bucketHistogramCount: 0,
|
|
58
|
-
upCounterCount: 0,
|
|
59
|
-
valueRecorderCount: 0,
|
|
60
|
-
schemaVersion: Q
|
|
61
|
-
},
|
|
62
|
-
bundles: [],
|
|
63
|
-
metrics: {
|
|
64
|
-
bucketHistograms: [],
|
|
65
|
-
upCounters: [],
|
|
66
|
-
valueRecorders: []
|
|
67
|
-
},
|
|
68
|
-
staticAttributes: {}
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
withStaticAttributes(g) {
|
|
72
|
-
return this._envelope.staticAttributes = g, this;
|
|
73
|
-
}
|
|
74
|
-
withLogs(g, j) {
|
|
75
|
-
let f = this._envelope.bundles.find((v) => v.schemaName === g);
|
|
76
|
-
if (f)
|
|
77
|
-
for (const v of j)
|
|
78
|
-
f.messages.push(v);
|
|
79
|
-
else
|
|
80
|
-
f = {
|
|
81
|
-
schemaName: g,
|
|
82
|
-
messages: j
|
|
83
|
-
}, this._envelope.bundles.push(f);
|
|
84
|
-
return this._envelope.diagnostics.bundleCount = this._envelope.bundles.length, this;
|
|
85
|
-
}
|
|
86
|
-
static getUpCounters(g, j = !0) {
|
|
87
|
-
return H.getUpCounters(g, j);
|
|
88
|
-
}
|
|
89
|
-
static getValueRecorders(g, j = !0) {
|
|
90
|
-
return H.getValueRecorders(g, j);
|
|
91
|
-
}
|
|
92
|
-
static getBucketHistograms(g, j = !0) {
|
|
93
|
-
return H.getBucketHistograms(g, j);
|
|
94
|
-
}
|
|
95
|
-
withUpCounters(g) {
|
|
96
|
-
for (const j of g)
|
|
97
|
-
this._envelope.metrics.upCounters.push(j);
|
|
98
|
-
return this._envelope.diagnostics.upCounterCount = this._envelope.metrics.upCounters.length, this;
|
|
99
|
-
}
|
|
100
|
-
withValueRecorders(g) {
|
|
101
|
-
for (const j of g)
|
|
102
|
-
this._envelope.metrics.valueRecorders.push(j);
|
|
103
|
-
return this._envelope.diagnostics.valueRecorderCount = this._envelope.metrics.valueRecorders.length, this;
|
|
104
|
-
}
|
|
105
|
-
withBucketHistograms(g) {
|
|
106
|
-
for (const j of g)
|
|
107
|
-
this._envelope.metrics.bucketHistograms.push(j);
|
|
108
|
-
return this._envelope.diagnostics.bucketHistogramCount = this._envelope.metrics.bucketHistograms.length, this;
|
|
109
|
-
}
|
|
110
|
-
build() {
|
|
111
|
-
return this._envelope.diagnostics.generatedTimestamp = D.time().tsNow, this._envelope;
|
|
112
|
-
}
|
|
113
|
-
static buildFrom(g) {
|
|
114
|
-
const j = new q();
|
|
115
|
-
return g.staticAttributes && j.withStaticAttributes(g.staticAttributes), g.messages && g.messages.forEach((f, v) => {
|
|
116
|
-
j.withLogs(F.getSchemaId(v), f);
|
|
117
|
-
}), g.upCounters && j.withUpCounters(g.upCounters), g.valueRecorders && j.withValueRecorders(g.valueRecorders), g.bucketHistograms && j.withBucketHistograms(g.bucketHistograms), j.build();
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
var V;
|
|
121
|
-
(function(b) {
|
|
122
|
-
var g, j;
|
|
123
|
-
g = { 1: [function(f, v, O) {
|
|
124
|
-
v.exports = function(l, a) {
|
|
125
|
-
for (var n = Array(arguments.length - 1), i = 0, e = 2, t = !0; e < arguments.length; ) n[i++] = arguments[e++];
|
|
126
|
-
return new Promise(function(s, r) {
|
|
127
|
-
n[i] = function(o) {
|
|
128
|
-
if (t) if (t = !1, o) r(o);
|
|
129
|
-
else {
|
|
130
|
-
for (var c = Array(arguments.length - 1), u = 0; u < c.length; ) c[u++] = arguments[u];
|
|
131
|
-
s.apply(null, c);
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
try {
|
|
135
|
-
l.apply(a || null, n);
|
|
136
|
-
} catch (o) {
|
|
137
|
-
t && (t = !1, r(o));
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
}, {}], 2: [function(f, v, O) {
|
|
142
|
-
O.length = function(e) {
|
|
143
|
-
var t = e.length;
|
|
144
|
-
if (!t) return 0;
|
|
145
|
-
for (var s = 0; 1 < --t % 4 && (e[0 | t] || "") == "="; ) ++s;
|
|
146
|
-
return Math.ceil(3 * e.length) / 4 - s;
|
|
147
|
-
};
|
|
148
|
-
for (var l = Array(64), a = Array(123), n = 0; n < 64; ) a[l[n] = n < 26 ? n + 65 : n < 52 ? n + 71 : n < 62 ? n - 4 : n - 59 | 43] = n++;
|
|
149
|
-
O.encode = function(e, t, s) {
|
|
150
|
-
for (var r, o = null, c = [], u = 0, d = 0; t < s; ) {
|
|
151
|
-
var p = e[t++];
|
|
152
|
-
switch (d) {
|
|
153
|
-
case 0:
|
|
154
|
-
c[u++] = l[p >> 2], r = (3 & p) << 4, d = 1;
|
|
155
|
-
break;
|
|
156
|
-
case 1:
|
|
157
|
-
c[u++] = l[r | p >> 4], r = (15 & p) << 2, d = 2;
|
|
158
|
-
break;
|
|
159
|
-
case 2:
|
|
160
|
-
c[u++] = l[r | p >> 6], c[u++] = l[63 & p], d = 0;
|
|
161
|
-
}
|
|
162
|
-
8191 < u && ((o = o || []).push(String.fromCharCode.apply(String, c)), u = 0);
|
|
163
|
-
}
|
|
164
|
-
return d && (c[u++] = l[r], c[u++] = 61, d === 1 && (c[u++] = 61)), o ? (u && o.push(String.fromCharCode.apply(String, c.slice(0, u))), o.join("")) : String.fromCharCode.apply(String, c.slice(0, u));
|
|
165
|
-
};
|
|
166
|
-
var i = "invalid encoding";
|
|
167
|
-
O.decode = function(e, t, s) {
|
|
168
|
-
for (var r, o = s, c = 0, u = 0; u < e.length; ) {
|
|
169
|
-
var d = e.charCodeAt(u++);
|
|
170
|
-
if (d == 61 && 1 < c) break;
|
|
171
|
-
if ((d = a[d]) === b) throw Error(i);
|
|
172
|
-
switch (c) {
|
|
173
|
-
case 0:
|
|
174
|
-
r = d, c = 1;
|
|
175
|
-
break;
|
|
176
|
-
case 1:
|
|
177
|
-
t[s++] = r << 2 | (48 & d) >> 4, r = d, c = 2;
|
|
178
|
-
break;
|
|
179
|
-
case 2:
|
|
180
|
-
t[s++] = (15 & r) << 4 | (60 & d) >> 2, r = d, c = 3;
|
|
181
|
-
break;
|
|
182
|
-
case 3:
|
|
183
|
-
t[s++] = (3 & r) << 6 | d, c = 0;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
if (c === 1) throw Error(i);
|
|
187
|
-
return s - o;
|
|
188
|
-
}, O.test = function(e) {
|
|
189
|
-
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e);
|
|
190
|
-
};
|
|
191
|
-
}, {}], 3: [function(f, v, O) {
|
|
192
|
-
v.exports = a;
|
|
193
|
-
var l = /^(?: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)$/;
|
|
194
|
-
function a(n, i) {
|
|
195
|
-
typeof n == "string" && (i = n, n = b);
|
|
196
|
-
var e = [];
|
|
197
|
-
function t(r) {
|
|
198
|
-
if (typeof r != "string") {
|
|
199
|
-
var o = s();
|
|
200
|
-
if (a.verbose && console.log("codegen: " + o), o = "return " + o, r) {
|
|
201
|
-
for (var c = Object.keys(r), u = Array(c.length + 1), d = Array(c.length), p = 0; p < c.length; ) u[p] = c[p], d[p] = r[c[p++]];
|
|
202
|
-
return u[p] = o, Function.apply(null, u).apply(null, d);
|
|
203
|
-
}
|
|
204
|
-
return Function(o)();
|
|
205
|
-
}
|
|
206
|
-
for (var y = Array(arguments.length - 1), k = 0; k < y.length; ) y[k] = arguments[++k];
|
|
207
|
-
if (k = 0, r = r.replace(/%([%dfijs])/g, function(h, E) {
|
|
208
|
-
var m = y[k++];
|
|
209
|
-
switch (E) {
|
|
210
|
-
case "d":
|
|
211
|
-
case "f":
|
|
212
|
-
return "" + +("" + m);
|
|
213
|
-
case "i":
|
|
214
|
-
return "" + Math.floor(m);
|
|
215
|
-
case "j":
|
|
216
|
-
return JSON.stringify(m);
|
|
217
|
-
case "s":
|
|
218
|
-
return "" + m;
|
|
219
|
-
}
|
|
220
|
-
return "%";
|
|
221
|
-
}), k !== y.length) throw Error("parameter count mismatch");
|
|
222
|
-
return e.push(r), t;
|
|
223
|
-
}
|
|
224
|
-
function s(r) {
|
|
225
|
-
return "function " + (function(o) {
|
|
226
|
-
return !o || !(o = ("" + o).replace(/[^\w$]/g, "")) ? "" : (/^\d/.test(o) && (o = "_" + o), l.test(o) ? o + "_" : o);
|
|
227
|
-
})(r || i) + "(" + (n && n.join(",") || "") + `){
|
|
228
|
-
` + e.join(`
|
|
229
|
-
`) + `
|
|
230
|
-
}`;
|
|
231
|
-
}
|
|
232
|
-
return t.toString = s, t;
|
|
233
|
-
}
|
|
234
|
-
a.verbose = !1;
|
|
235
|
-
}, {}], 4: [function(f, v, O) {
|
|
236
|
-
function l() {
|
|
237
|
-
this.t = {};
|
|
238
|
-
}
|
|
239
|
-
(v.exports = l).prototype.on = function(a, n, i) {
|
|
240
|
-
return (this.t[a] || (this.t[a] = [])).push({ fn: n, ctx: i || this }), this;
|
|
241
|
-
}, l.prototype.off = function(a, n) {
|
|
242
|
-
if (a === b) this.t = {};
|
|
243
|
-
else if (n === b) this.t[a] = [];
|
|
244
|
-
else for (var i = this.t[a], e = 0; e < i.length; ) i[e].fn === n ? i.splice(e, 1) : ++e;
|
|
245
|
-
return this;
|
|
246
|
-
}, l.prototype.emit = function(a) {
|
|
247
|
-
var n = this.t[a];
|
|
248
|
-
if (n) {
|
|
249
|
-
for (var i = [], e = 1; e < arguments.length; ) i.push(arguments[e++]);
|
|
250
|
-
for (e = 0; e < n.length; ) n[e].fn.apply(n[e++].ctx, i);
|
|
251
|
-
}
|
|
252
|
-
return this;
|
|
253
|
-
};
|
|
254
|
-
}, {}], 5: [function(f, v, O) {
|
|
255
|
-
v.exports = n;
|
|
256
|
-
var l = f(1), a = f(7)("fs");
|
|
257
|
-
function n(i, e, t) {
|
|
258
|
-
return e = typeof e == "function" ? (t = e, {}) : e || {}, t ? !e.xhr && a && a.readFile ? a.readFile(i, function(s, r) {
|
|
259
|
-
return s && typeof XMLHttpRequest != "undefined" ? n.xhr(i, e, t) : s ? t(s) : t(null, e.binary ? r : r.toString("utf8"));
|
|
260
|
-
}) : n.xhr(i, e, t) : l(n, this, i, e);
|
|
261
|
-
}
|
|
262
|
-
n.xhr = function(i, e, t) {
|
|
263
|
-
var s = new XMLHttpRequest();
|
|
264
|
-
s.onreadystatechange = function() {
|
|
265
|
-
if (s.readyState !== 4) return b;
|
|
266
|
-
if (s.status !== 0 && s.status !== 200) return t(Error("status " + s.status));
|
|
267
|
-
if (e.binary) {
|
|
268
|
-
if (!(r = s.response)) for (var r = [], o = 0; o < s.responseText.length; ++o) r.push(255 & s.responseText.charCodeAt(o));
|
|
269
|
-
return t(null, typeof Uint8Array != "undefined" ? new Uint8Array(r) : r);
|
|
270
|
-
}
|
|
271
|
-
return t(null, s.responseText);
|
|
272
|
-
}, e.binary && ("overrideMimeType" in s && s.overrideMimeType("text/plain; charset=x-user-defined"), s.responseType = "arraybuffer"), s.open("GET", i), s.send();
|
|
273
|
-
};
|
|
274
|
-
}, { 1: 1, 7: 7 }], 6: [function(f, v, O) {
|
|
275
|
-
function l(t) {
|
|
276
|
-
function s(T, _, A, N) {
|
|
277
|
-
var C = _ < 0 ? 1 : 0;
|
|
278
|
-
T((_ = C ? -_ : _) === 0 ? 0 < 1 / _ ? 0 : 2147483648 : isNaN(_) ? 2143289344 : 34028234663852886e22 < _ ? (C << 31 | 2139095040) >>> 0 : _ < 11754943508222875e-54 ? (C << 31 | Math.round(_ / 1401298464324817e-60)) >>> 0 : (C << 31 | 127 + (T = Math.floor(Math.log(_) / Math.LN2)) << 23 | 8388607 & Math.round(_ * Math.pow(2, -T) * 8388608)) >>> 0, A, N);
|
|
279
|
-
}
|
|
280
|
-
function r(T, _, A) {
|
|
281
|
-
return T = T(_, A), _ = 2 * (T >> 31) + 1, A = T >>> 23 & 255, T &= 8388607, A == 255 ? T ? NaN : 1 / 0 * _ : A == 0 ? 1401298464324817e-60 * _ * T : _ * Math.pow(2, A - 150) * (8388608 + T);
|
|
282
|
-
}
|
|
283
|
-
function o(T, _, A) {
|
|
284
|
-
p[0] = T, _[A] = y[0], _[A + 1] = y[1], _[A + 2] = y[2], _[A + 3] = y[3];
|
|
285
|
-
}
|
|
286
|
-
function c(T, _, A) {
|
|
287
|
-
p[0] = T, _[A] = y[3], _[A + 1] = y[2], _[A + 2] = y[1], _[A + 3] = y[0];
|
|
288
|
-
}
|
|
289
|
-
function u(T, _) {
|
|
290
|
-
return y[0] = T[_], y[1] = T[_ + 1], y[2] = T[_ + 2], y[3] = T[_ + 3], p[0];
|
|
291
|
-
}
|
|
292
|
-
function d(T, _) {
|
|
293
|
-
return y[3] = T[_], y[2] = T[_ + 1], y[1] = T[_ + 2], y[0] = T[_ + 3], p[0];
|
|
294
|
-
}
|
|
295
|
-
var p, y, k, h, E;
|
|
296
|
-
function m(T, _, A, N, C, P) {
|
|
297
|
-
var L, U = N < 0 ? 1 : 0;
|
|
298
|
-
(N = U ? -N : N) === 0 ? (T(0, C, P + _), T(0 < 1 / N ? 0 : 2147483648, C, P + A)) : isNaN(N) ? (T(0, C, P + _), T(2146959360, C, P + A)) : 17976931348623157e292 < N ? (T(0, C, P + _), T((U << 31 | 2146435072) >>> 0, C, P + A)) : N < 22250738585072014e-324 ? (T((L = N / 5e-324) >>> 0, C, P + _), T((U << 31 | L / 4294967296) >>> 0, C, P + A)) : (T(4503599627370496 * (L = N * Math.pow(2, -(N = (N = Math.floor(Math.log(N) / Math.LN2)) === 1024 ? 1023 : N))) >>> 0, C, P + _), T((U << 31 | N + 1023 << 20 | 1048576 * L & 1048575) >>> 0, C, P + A));
|
|
299
|
-
}
|
|
300
|
-
function w(T, _, A, N, C) {
|
|
301
|
-
return _ = T(N, C + _), T = T(N, C + A), N = 2 * (T >> 31) + 1, C = T >>> 20 & 2047, A = 4294967296 * (1048575 & T) + _, C == 2047 ? A ? NaN : 1 / 0 * N : C == 0 ? 5e-324 * N * A : N * Math.pow(2, C - 1075) * (A + 4503599627370496);
|
|
302
|
-
}
|
|
303
|
-
function S(T, _, A) {
|
|
304
|
-
k[0] = T, _[A] = h[0], _[A + 1] = h[1], _[A + 2] = h[2], _[A + 3] = h[3], _[A + 4] = h[4], _[A + 5] = h[5], _[A + 6] = h[6], _[A + 7] = h[7];
|
|
305
|
-
}
|
|
306
|
-
function x(T, _, A) {
|
|
307
|
-
k[0] = T, _[A] = h[7], _[A + 1] = h[6], _[A + 2] = h[5], _[A + 3] = h[4], _[A + 4] = h[3], _[A + 5] = h[2], _[A + 6] = h[1], _[A + 7] = h[0];
|
|
308
|
-
}
|
|
309
|
-
function I(T, _) {
|
|
310
|
-
return h[0] = T[_], h[1] = T[_ + 1], h[2] = T[_ + 2], h[3] = T[_ + 3], h[4] = T[_ + 4], h[5] = T[_ + 5], h[6] = T[_ + 6], h[7] = T[_ + 7], k[0];
|
|
311
|
-
}
|
|
312
|
-
function R(T, _) {
|
|
313
|
-
return h[7] = T[_], h[6] = T[_ + 1], h[5] = T[_ + 2], h[4] = T[_ + 3], h[3] = T[_ + 4], h[2] = T[_ + 5], h[1] = T[_ + 6], h[0] = T[_ + 7], k[0];
|
|
314
|
-
}
|
|
315
|
-
return typeof Float32Array != "undefined" ? (p = new Float32Array([-0]), y = new Uint8Array(p.buffer), E = y[3] === 128, t.writeFloatLE = E ? o : c, t.writeFloatBE = E ? c : o, t.readFloatLE = E ? u : d, t.readFloatBE = E ? d : u) : (t.writeFloatLE = s.bind(null, a), t.writeFloatBE = s.bind(null, n), t.readFloatLE = r.bind(null, i), t.readFloatBE = r.bind(null, e)), typeof Float64Array != "undefined" ? (k = new Float64Array([-0]), h = new Uint8Array(k.buffer), E = h[7] === 128, t.writeDoubleLE = E ? S : x, t.writeDoubleBE = E ? x : S, t.readDoubleLE = E ? I : R, t.readDoubleBE = E ? R : I) : (t.writeDoubleLE = m.bind(null, a, 0, 4), t.writeDoubleBE = m.bind(null, n, 4, 0), t.readDoubleLE = w.bind(null, i, 0, 4), t.readDoubleBE = w.bind(null, e, 4, 0)), t;
|
|
316
|
-
}
|
|
317
|
-
function a(t, s, r) {
|
|
318
|
-
s[r] = 255 & t, s[r + 1] = t >>> 8 & 255, s[r + 2] = t >>> 16 & 255, s[r + 3] = t >>> 24;
|
|
319
|
-
}
|
|
320
|
-
function n(t, s, r) {
|
|
321
|
-
s[r] = t >>> 24, s[r + 1] = t >>> 16 & 255, s[r + 2] = t >>> 8 & 255, s[r + 3] = 255 & t;
|
|
322
|
-
}
|
|
323
|
-
function i(t, s) {
|
|
324
|
-
return (t[s] | t[s + 1] << 8 | t[s + 2] << 16 | t[s + 3] << 24) >>> 0;
|
|
325
|
-
}
|
|
326
|
-
function e(t, s) {
|
|
327
|
-
return (t[s] << 24 | t[s + 1] << 16 | t[s + 2] << 8 | t[s + 3]) >>> 0;
|
|
328
|
-
}
|
|
329
|
-
v.exports = l(l);
|
|
330
|
-
}, {}], 7: [function(f, v, O) {
|
|
331
|
-
v.exports = function(l) {
|
|
332
|
-
try {
|
|
333
|
-
var a;
|
|
334
|
-
return typeof f != "function" ? null : (a = f(l)) && (a.length || Object.keys(a).length) ? a : null;
|
|
335
|
-
} catch (n) {
|
|
336
|
-
return null;
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
}, {}], 8: [function(f, v, O) {
|
|
340
|
-
var l = O.isAbsolute = function(n) {
|
|
341
|
-
return /^(?:\/|\w+:)/.test(n);
|
|
342
|
-
}, a = O.normalize = function(t) {
|
|
343
|
-
var i = (t = t.replace(/\\/g, "/").replace(/\/{2,}/g, "/")).split("/"), e = l(t), t = "";
|
|
344
|
-
e && (t = i.shift() + "/");
|
|
345
|
-
for (var s = 0; s < i.length; ) i[s] === ".." ? 0 < s && i[s - 1] !== ".." ? i.splice(--s, 2) : e ? i.splice(s, 1) : ++s : i[s] === "." ? i.splice(s, 1) : ++s;
|
|
346
|
-
return t + i.join("/");
|
|
347
|
-
};
|
|
348
|
-
O.resolve = function(n, i, e) {
|
|
349
|
-
return e || (i = a(i)), !l(i) && (n = (n = e ? n : a(n)).replace(/(?:\/|^)[^/]+$/, "")).length ? a(n + "/" + i) : i;
|
|
350
|
-
};
|
|
351
|
-
}, {}], 9: [function(f, v, O) {
|
|
352
|
-
v.exports = function(l, a, n) {
|
|
353
|
-
var i = n || 8192, e = i >>> 1, t = null, s = i;
|
|
354
|
-
return function(r) {
|
|
355
|
-
return r < 1 || e < r ? l(r) : (i < s + r && (t = l(i), s = 0), r = a.call(t, s, s += r), 7 & s && (s = 1 + (7 | s)), r);
|
|
356
|
-
};
|
|
357
|
-
};
|
|
358
|
-
}, {}], 10: [function(f, v, O) {
|
|
359
|
-
O.length = function(l) {
|
|
360
|
-
for (var a, n = 0, i = 0; i < l.length; ++i) (a = l.charCodeAt(i)) < 128 ? n += 1 : a < 2048 ? n += 2 : (64512 & a) == 55296 && (64512 & l.charCodeAt(i + 1)) == 56320 ? (++i, n += 4) : n += 3;
|
|
361
|
-
return n;
|
|
362
|
-
}, O.read = function(l, a, n) {
|
|
363
|
-
if (n - a < 1) return "";
|
|
364
|
-
for (var i = "", e = a; e < n; ) {
|
|
365
|
-
var t, s = l[e++];
|
|
366
|
-
s <= 127 ? i += String.fromCharCode(s) : 192 <= s && s < 224 ? i += 128 <= (t = (31 & s) << 6 | 63 & l[e++]) ? String.fromCharCode(t) : "�" : 224 <= s && s < 240 ? i += 2048 <= (t = (15 & s) << 12 | (63 & l[e++]) << 6 | 63 & l[e++]) ? String.fromCharCode(t) : "�" : 240 <= s && ((s = (7 & s) << 18 | (63 & l[e++]) << 12 | (63 & l[e++]) << 6 | 63 & l[e++]) < 65536 || 1114111 < s ? i += "�" : i = i + String.fromCharCode(55296 + ((s -= 65536) >> 10)) + String.fromCharCode(56320 + (1023 & s)));
|
|
367
|
-
}
|
|
368
|
-
return i;
|
|
369
|
-
}, O.write = function(l, a, n) {
|
|
370
|
-
for (var i, e, t = n, s = 0; s < l.length; ++s) (i = l.charCodeAt(s)) < 128 ? a[n++] = i : (i < 2048 ? a[n++] = i >> 6 | 192 : ((64512 & i) == 55296 && (64512 & (e = l.charCodeAt(s + 1))) == 56320 ? (++s, a[n++] = (i = 65536 + ((1023 & i) << 10) + (1023 & e)) >> 18 | 240, a[n++] = i >> 12 & 63 | 128) : a[n++] = i >> 12 | 224, a[n++] = i >> 6 & 63 | 128), a[n++] = 63 & i | 128);
|
|
371
|
-
return n - t;
|
|
372
|
-
};
|
|
373
|
-
}, {}], 11: [function(f, v, O) {
|
|
374
|
-
var l = f(14), a = f(33);
|
|
375
|
-
function n(e, t, s, r) {
|
|
376
|
-
var o = !1;
|
|
377
|
-
if (t.resolvedType) if (t.resolvedType instanceof l) {
|
|
378
|
-
e("switch(d%s){", r);
|
|
379
|
-
for (var c = t.resolvedType.values, u = Object.keys(c), d = 0; d < u.length; ++d) c[u[d]] !== t.typeDefault || o || (e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}', r, r, r), t.repeated || e("break"), o = !0), e("case%j:", u[d])("case %i:", c[u[d]])("m%s=%j", r, c[u[d]])("break");
|
|
380
|
-
e("}");
|
|
381
|
-
} else e('if(typeof d%s!=="object")', r)("throw TypeError(%j)", t.fullName + ": object expected")("m%s=types[%i].fromObject(d%s,n+1)", r, s, r);
|
|
382
|
-
else {
|
|
383
|
-
var p = !1;
|
|
384
|
-
switch (t.type) {
|
|
385
|
-
case "double":
|
|
386
|
-
case "float":
|
|
387
|
-
e("m%s=Number(d%s)", r, r);
|
|
388
|
-
break;
|
|
389
|
-
case "uint32":
|
|
390
|
-
case "fixed32":
|
|
391
|
-
e("m%s=d%s>>>0", r, r);
|
|
392
|
-
break;
|
|
393
|
-
case "int32":
|
|
394
|
-
case "sint32":
|
|
395
|
-
case "sfixed32":
|
|
396
|
-
e("m%s=d%s|0", r, r);
|
|
397
|
-
break;
|
|
398
|
-
case "uint64":
|
|
399
|
-
p = !0;
|
|
400
|
-
case "int64":
|
|
401
|
-
case "sint64":
|
|
402
|
-
case "fixed64":
|
|
403
|
-
case "sfixed64":
|
|
404
|
-
e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j", r, r, p)('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, p ? "true" : "");
|
|
405
|
-
break;
|
|
406
|
-
case "bytes":
|
|
407
|
-
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);
|
|
408
|
-
break;
|
|
409
|
-
case "string":
|
|
410
|
-
e("m%s=String(d%s)", r, r);
|
|
411
|
-
break;
|
|
412
|
-
case "bool":
|
|
413
|
-
e("m%s=Boolean(d%s)", r, r);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
return e;
|
|
417
|
-
}
|
|
418
|
-
function i(e, t, s, r) {
|
|
419
|
-
if (t.resolvedType) t.resolvedType instanceof l ? e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s", r, s, r, r, s, r, r) : e("d%s=types[%i].toObject(m%s,o)", r, s, r);
|
|
420
|
-
else {
|
|
421
|
-
var o = !1;
|
|
422
|
-
switch (t.type) {
|
|
423
|
-
case "double":
|
|
424
|
-
case "float":
|
|
425
|
-
e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s", r, r, r, r);
|
|
426
|
-
break;
|
|
427
|
-
case "uint64":
|
|
428
|
-
o = !0;
|
|
429
|
-
case "int64":
|
|
430
|
-
case "sint64":
|
|
431
|
-
case "fixed64":
|
|
432
|
-
case "sfixed64":
|
|
433
|
-
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, o ? "true" : "", r);
|
|
434
|
-
break;
|
|
435
|
-
case "bytes":
|
|
436
|
-
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);
|
|
437
|
-
break;
|
|
438
|
-
default:
|
|
439
|
-
e("d%s=m%s", r, r);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
return e;
|
|
443
|
-
}
|
|
444
|
-
O.fromObject = function(e) {
|
|
445
|
-
var t = e.fieldsArray, s = a.codegen(["d", "n"], e.name + "$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');
|
|
446
|
-
if (!t.length) return s("return new this.ctor");
|
|
447
|
-
s("var m=new this.ctor");
|
|
448
|
-
for (var r = 0; r < t.length; ++r) {
|
|
449
|
-
var o = t[r].resolve(), c = a.safeProp(o.name);
|
|
450
|
-
o.map ? (s("if(d%s){", c)('if(typeof d%s!=="object")', c)("throw TypeError(%j)", o.fullName + ": object expected")("m%s={}", c)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){", c), s('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])", c), n(s, o, r, c + "[ks[i]]")("}")("}")) : o.repeated ? (s("if(d%s){", c)("if(!Array.isArray(d%s))", c)("throw TypeError(%j)", o.fullName + ": array expected")("m%s=[]", c)("for(var i=0;i<d%s.length;++i){", c), n(s, o, r, c + "[i]")("}")("}")) : (o.resolvedType instanceof l || s("if(d%s!=null){", c), n(s, o, r, c), o.resolvedType instanceof l || s("}"));
|
|
451
|
-
}
|
|
452
|
-
return s("return m");
|
|
453
|
-
}, O.toObject = function(e) {
|
|
454
|
-
var t = e.fieldsArray.slice().sort(a.compareFieldsById);
|
|
455
|
-
if (!t.length) return a.codegen()("return {}");
|
|
456
|
-
for (var s = a.codegen(["m", "o"], e.name + "$toObject")("if(!o)")("o={}")("var d={}"), r = [], o = [], c = [], u = 0; u < t.length; ++u) t[u].partOf || (t[u].resolve().repeated ? r : t[u].map ? o : c).push(t[u]);
|
|
457
|
-
if (r.length) {
|
|
458
|
-
for (s("if(o.arrays||o.defaults){"), u = 0; u < r.length; ++u) s("d%s=[]", a.safeProp(r[u].name));
|
|
459
|
-
s("}");
|
|
460
|
-
}
|
|
461
|
-
if (o.length) {
|
|
462
|
-
for (s("if(o.objects||o.defaults){"), u = 0; u < o.length; ++u) s("d%s={}", a.safeProp(o[u].name));
|
|
463
|
-
s("}");
|
|
464
|
-
}
|
|
465
|
-
if (c.length) {
|
|
466
|
-
for (s("if(o.defaults){"), u = 0; u < c.length; ++u) {
|
|
467
|
-
var d, p = c[u], y = a.safeProp(p.name);
|
|
468
|
-
p.resolvedType instanceof l ? s("d%s=o.enums===String?%j:%j", y, p.resolvedType.valuesById[p.typeDefault], p.typeDefault) : p.long ? s("if(util.Long){")("var n=new util.Long(%i,%i,%j)", p.typeDefault.low, p.typeDefault.high, p.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, p.typeDefault.toString(), p.typeDefault.toNumber()) : p.bytes ? (d = Array.prototype.slice.call(p.typeDefault), s("if(o.bytes===String)d%s=%j", y, String.fromCharCode.apply(String, p.typeDefault))("else{")("d%s=%j", y, d)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", y, y)("}")) : s("d%s=%j", y, p.typeDefault);
|
|
469
|
-
}
|
|
470
|
-
s("}");
|
|
471
|
-
}
|
|
472
|
-
for (var k = !1, u = 0; u < t.length; ++u) {
|
|
473
|
-
var p = t[u], h = e.i.indexOf(p), y = a.safeProp(p.name);
|
|
474
|
-
p.map ? (k || (k = !0, s("var ks2")), s("if(m%s&&(ks2=Object.keys(m%s)).length){", y, y)("d%s={}", y)("for(var j=0;j<ks2.length;++j){"), s('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])", y), i(s, p, h, y + "[ks2[j]]")("}")) : p.repeated ? (s("if(m%s&&m%s.length){", y, y)("d%s=[]", y)("for(var j=0;j<m%s.length;++j){", y), i(s, p, h, y + "[j]")("}")) : (s("if(m%s!=null&&m.hasOwnProperty(%j)){", y, p.name), i(s, p, h, y), p.partOf && s("if(o.oneofs)")("d%s=%j", a.safeProp(p.partOf.name), p.name)), s("}");
|
|
475
|
-
}
|
|
476
|
-
return s("return d");
|
|
477
|
-
};
|
|
478
|
-
}, { 14: 14, 33: 33 }], 12: [function(f, v, O) {
|
|
479
|
-
v.exports = function(i) {
|
|
480
|
-
for (var e = n.codegen(["r", "l", "e", "n"], i.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" + (i.fieldsArray.filter(function(u) {
|
|
481
|
-
return u.map;
|
|
482
|
-
}).length ? ",k,value" : ""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"), t = 0; t < i.fieldsArray.length; ++t) {
|
|
483
|
-
var s = i.i[t].resolve(), r = s.resolvedType instanceof l ? "int32" : s.type, o = "m" + n.safeProp(s.name);
|
|
484
|
-
e("case %i: {", s.id), s.map ? (e("if(%s===util.emptyObject)", o)("%s={}", o)("var c2 = r.uint32()+r.pos"), a.defaults[s.keyType] !== b ? e("k=%j", a.defaults[s.keyType]) : e("k=null"), a.defaults[r] !== b ? 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", s.keyType)("case 2:"), a.basic[r] === b ? e("value=types[%i].decode(r,r.uint32(),undefined,n+1)", t) : e("value=r.%s()", r), e("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"), a.long[s.keyType] !== b ? e('%s[typeof k==="object"?util.longToHash(k):k]=value', o) : (s.keyType === "string" && e('if(k==="__proto__")')("util.makeProp(%s,k)", o), e("%s[k]=value", o))) : s.repeated ? (e("if(!(%s&&%s.length))", o, o)("%s=[]", o), a.packed[r] !== b && e("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())", o, r)("}else"), a.basic[r] === b ? e(s.delimited ? "%s.push(types[%i].decode(r,undefined,((t&~7)|4),n+1))" : "%s.push(types[%i].decode(r,r.uint32(),undefined,n+1))", o, t) : e("%s.push(r.%s())", o, r)) : a.basic[r] === b ? e(s.delimited ? "%s=types[%i].decode(r,undefined,((t&~7)|4),n+1)" : "%s=types[%i].decode(r,r.uint32(),undefined,n+1)", o, t) : e("%s=r.%s()", o, r), e("break")("}");
|
|
485
|
-
}
|
|
486
|
-
for (e("default:")("r.skipType(t&7,n)")("break")("}")("}"), t = 0; t < i.i.length; ++t) {
|
|
487
|
-
var c = i.i[t];
|
|
488
|
-
c.required && e("if(!m.hasOwnProperty(%j))", c.name)("throw util.ProtocolError(%j,{instance:m})", "missing required '" + c.name + "'");
|
|
489
|
-
}
|
|
490
|
-
return e("return m");
|
|
491
|
-
};
|
|
492
|
-
var l = f(14), a = f(32), n = f(33);
|
|
493
|
-
}, { 14: 14, 32: 32, 33: 33 }], 13: [function(f, v, O) {
|
|
494
|
-
v.exports = function(e) {
|
|
495
|
-
for (var t, s = n.codegen(["m", "w"], e.name + "$encode")("if(!w)")("w=Writer.create()"), r = e.fieldsArray.slice().sort(n.compareFieldsById), o = 0; o < r.length; ++o) {
|
|
496
|
-
var c = r[o].resolve(), u = e.i.indexOf(c), d = c.resolvedType instanceof l ? "int32" : c.type, p = a.basic[d];
|
|
497
|
-
t = "m" + n.safeProp(c.name), c.map ? (s("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", t, c.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){", t)("w.uint32(%i).fork().uint32(%i).%s(ks[i])", (c.id << 3 | 2) >>> 0, 8 | a.mapKey[c.keyType], c.keyType), p === b ? s("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()", u, t) : s(".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | p, d, t), s("}")("}")) : c.repeated ? (s("if(%s!=null&&%s.length){", t, t), c.packed && a.packed[d] !== b ? s("w.uint32(%i).fork()", (c.id << 3 | 2) >>> 0)("for(var i=0;i<%s.length;++i)", t)("w.%s(%s[i])", d, t)("w.ldelim()") : (s("for(var i=0;i<%s.length;++i)", t), p === b ? i(s, c, u, t + "[i]") : s("w.uint32(%i).%s(%s[i])", (c.id << 3 | p) >>> 0, d, t)), s("}")) : (c.optional && s("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", t, c.name), p === b ? i(s, c, u, t) : s("w.uint32(%i).%s(%s)", (c.id << 3 | p) >>> 0, d, t));
|
|
498
|
-
}
|
|
499
|
-
return s("return w");
|
|
500
|
-
};
|
|
501
|
-
var l = f(14), a = f(32), n = f(33);
|
|
502
|
-
function i(e, t, s, r) {
|
|
503
|
-
t.delimited ? e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)", s, r, (t.id << 3 | 3) >>> 0, (t.id << 3 | 4) >>> 0) : e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()", s, r, (t.id << 3 | 2) >>> 0);
|
|
504
|
-
}
|
|
505
|
-
}, { 14: 14, 32: 32, 33: 33 }], 14: [function(f, v, O) {
|
|
506
|
-
v.exports = i;
|
|
507
|
-
var l = f(22), a = (((i.prototype = Object.create(l.prototype)).constructor = i).className = "Enum", f(21)), n = f(33);
|
|
508
|
-
function i(e, t, s, r, o, c) {
|
|
509
|
-
if (l.call(this, e, s), t && typeof t != "object") throw TypeError("values must be an object");
|
|
510
|
-
if (this.valuesById = {}, this.values = Object.create(this.valuesById), this.comment = r, this.comments = o || {}, this.valuesOptions = c, this.n = {}, this.reserved = b, t) for (var u = Object.keys(t), d = 0; d < u.length; ++d) u[d] !== "__proto__" && typeof t[u[d]] == "number" && (this.valuesById[this.values[u[d]] = t[u[d]]] = u[d]);
|
|
511
|
-
}
|
|
512
|
-
i.prototype.r = function(e) {
|
|
513
|
-
return e = this.e || e, l.prototype.r.call(this, e), Object.keys(this.values).forEach((t) => {
|
|
514
|
-
var s = Object.assign({}, this.o);
|
|
515
|
-
this.n[t] = Object.assign(s, this.valuesOptions && this.valuesOptions[t] && this.valuesOptions[t].features);
|
|
516
|
-
}), this;
|
|
517
|
-
}, i.fromJSON = function(e, t) {
|
|
518
|
-
return e = new i(e, t.values, t.options, t.comment, t.comments), e.reserved = t.reserved, t.edition && (e.e = t.edition), e.u = "proto3", e;
|
|
519
|
-
}, i.prototype.toJSON = function(e) {
|
|
520
|
-
return e = !!e && !!e.keepComments, n.toObject(["edition", this.h(), "options", this.options, "valuesOptions", this.valuesOptions, "values", this.values, "reserved", this.reserved && this.reserved.length ? this.reserved : b, "comment", e ? this.comment : b, "comments", e ? this.comments : b]);
|
|
521
|
-
}, i.prototype.add = function(e, t, s, r) {
|
|
522
|
-
if (!n.isString(e)) throw TypeError("name must be a string");
|
|
523
|
-
if (!n.isInteger(t)) throw TypeError("id must be an integer");
|
|
524
|
-
if (e !== "__proto__") {
|
|
525
|
-
if (this.values[e] !== b) throw Error("duplicate name '" + e + "' in " + this);
|
|
526
|
-
if (this.isReservedId(t)) throw Error("id " + t + " is reserved in " + this);
|
|
527
|
-
if (this.isReservedName(e)) throw Error("name '" + e + "' is reserved in " + this);
|
|
528
|
-
if (this.valuesById[t] !== b) {
|
|
529
|
-
if (!this.options || !this.options.allow_alias) throw Error("duplicate id " + t + " in " + this);
|
|
530
|
-
this.values[e] = t;
|
|
531
|
-
} else this.valuesById[this.values[e] = t] = e;
|
|
532
|
-
r && (this.valuesOptions === b && (this.valuesOptions = {}), this.valuesOptions[e] = r || null), this.comments[e] = s || null;
|
|
533
|
-
}
|
|
534
|
-
return this;
|
|
535
|
-
}, i.prototype.remove = function(e) {
|
|
536
|
-
if (!n.isString(e)) throw TypeError("name must be a string");
|
|
537
|
-
var t = this.values[e];
|
|
538
|
-
if (t == null) throw Error("name '" + e + "' does not exist in " + this);
|
|
539
|
-
return delete this.valuesById[t], delete this.values[e], delete this.comments[e], this.valuesOptions && delete this.valuesOptions[e], this;
|
|
540
|
-
}, i.prototype.isReservedId = function(e) {
|
|
541
|
-
return a.isReservedId(this.reserved, e);
|
|
542
|
-
}, i.prototype.isReservedName = function(e) {
|
|
543
|
-
return a.isReservedName(this.reserved, e);
|
|
544
|
-
};
|
|
545
|
-
}, { 21: 21, 22: 22, 33: 33 }], 15: [function(f, v, O) {
|
|
546
|
-
v.exports = s;
|
|
547
|
-
var l, a = f(22), n = (((s.prototype = Object.create(a.prototype)).constructor = s).className = "Field", f(14)), i = f(32), e = f(33), t = /^required|optional|repeated$/;
|
|
548
|
-
function s(r, o, c, u, d, p, y) {
|
|
549
|
-
if (e.isObject(u) ? (y = d, p = u, u = d = b) : e.isObject(d) && (y = p, p = d, d = b), a.call(this, r, p), !e.isInteger(o) || o < 0) throw TypeError("id must be a non-negative integer");
|
|
550
|
-
if (!e.isString(c)) throw TypeError("type must be a string");
|
|
551
|
-
if (u !== b && !t.test(u = u.toString().toLowerCase())) throw TypeError("rule must be a string rule");
|
|
552
|
-
if (d !== b && !e.isString(d)) throw TypeError("extend must be a string");
|
|
553
|
-
this.rule = (u = u === "proto3_optional" ? "optional" : u) && u !== "optional" ? u : b, this.type = c, this.id = o, this.extend = d || b, this.repeated = u === "repeated", this.map = !1, this.message = null, this.partOf = null, this.typeDefault = null, this.defaultValue = null, this.long = !!e.Long && i.long[c] !== b, this.bytes = c === "bytes", this.resolvedType = null, this.extensionField = null, this.declaringField = null, this.comment = y;
|
|
554
|
-
}
|
|
555
|
-
s.fromJSON = function(r, o) {
|
|
556
|
-
return r = new s(r, o.id, o.type, o.rule, o.extend, o.options, o.comment), o.edition && (r.e = o.edition), r.u = "proto3", r;
|
|
557
|
-
}, Object.defineProperty(s.prototype, "required", { get: function() {
|
|
558
|
-
return this.o.field_presence === "LEGACY_REQUIRED";
|
|
559
|
-
} }), Object.defineProperty(s.prototype, "optional", { get: function() {
|
|
560
|
-
return !this.required;
|
|
561
|
-
} }), Object.defineProperty(s.prototype, "delimited", { get: function() {
|
|
562
|
-
return this.resolvedType instanceof l && this.o.message_encoding === "DELIMITED";
|
|
563
|
-
} }), Object.defineProperty(s.prototype, "packed", { get: function() {
|
|
564
|
-
return this.o.repeated_field_encoding === "PACKED";
|
|
565
|
-
} }), Object.defineProperty(s.prototype, "hasPresence", { get: function() {
|
|
566
|
-
return !this.repeated && !this.map && (this.partOf || this.declaringField || this.extensionField || this.o.field_presence !== "IMPLICIT");
|
|
567
|
-
} }), s.prototype.setOption = function(r, o, c) {
|
|
568
|
-
return a.prototype.setOption.call(this, r, o, c);
|
|
569
|
-
}, s.prototype.toJSON = function(r) {
|
|
570
|
-
return r = !!r && !!r.keepComments, e.toObject(["edition", this.h(), "rule", this.rule !== "optional" && this.rule || b, "type", this.type, "id", this.id, "extend", this.extend, "options", this.options, "comment", r ? this.comment : b]);
|
|
571
|
-
}, s.prototype.resolve = function() {
|
|
572
|
-
var r;
|
|
573
|
-
return this.resolved ? this : ((this.typeDefault = i.defaults[this.type]) === b ? (this.resolvedType = (this.declaringField || 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 n && typeof this.typeDefault == "string" && (this.typeDefault = this.resolvedType.values[this.typeDefault])), this.options && (this.options.packed === b || !this.resolvedType || this.resolvedType instanceof n || delete this.options.packed, Object.keys(this.options).length || (this.options = b)), this.long ? (this.typeDefault = e.Long.fromNumber(this.typeDefault, (this.type[0] || "") == "u"), Object.freeze && Object.freeze(this.typeDefault)) : this.bytes && typeof this.typeDefault == "string" && (e.base64.test(this.typeDefault) ? e.base64.decode(this.typeDefault, r = e.newBuffer(e.base64.length(this.typeDefault)), 0) : e.utf8.write(this.typeDefault, r = e.newBuffer(e.utf8.length(this.typeDefault)), 0), this.typeDefault = r), this.map ? this.defaultValue = e.emptyObject : this.repeated ? this.defaultValue = e.emptyArray : this.defaultValue = this.typeDefault, this.parent instanceof l && (this.parent.ctor.prototype[this.name] = this.defaultValue), a.prototype.resolve.call(this));
|
|
574
|
-
}, s.prototype.f = function(r) {
|
|
575
|
-
var o;
|
|
576
|
-
return r !== "proto2" && r !== "proto3" ? {} : (r = {}, this.rule === "required" && (r.field_presence = "LEGACY_REQUIRED"), this.parent && i.defaults[this.type] === b && (o = this.parent.get(this.type.split(".").pop())) && o instanceof l && o.group && (r.message_encoding = "DELIMITED"), this.getOption("packed") === !0 ? r.repeated_field_encoding = "PACKED" : this.getOption("packed") === !1 && (r.repeated_field_encoding = "EXPANDED"), r);
|
|
577
|
-
}, s.prototype.r = function(r) {
|
|
578
|
-
return a.prototype.r.call(this, this.e || r);
|
|
579
|
-
}, s.d = function(r, o, c, u) {
|
|
580
|
-
return typeof o == "function" ? o = e.decorateType(o).name : o && typeof o == "object" && (o = e.decorateEnum(o).name), function(d, p) {
|
|
581
|
-
e.decorateType(d.constructor).add(new s(p, r, o, c, { default: u }));
|
|
582
|
-
};
|
|
583
|
-
}, s.c = function(r) {
|
|
584
|
-
l = r;
|
|
585
|
-
};
|
|
586
|
-
}, { 14: 14, 22: 22, 32: 32, 33: 33 }], 16: [function(f, v, O) {
|
|
587
|
-
var l = v.exports = f(17);
|
|
588
|
-
l.build = "light", l.load = function(a, n, i) {
|
|
589
|
-
return (n = typeof n == "function" ? (i = n, new l.Root()) : n || new l.Root()).load(a, i);
|
|
590
|
-
}, l.loadSync = function(a, n) {
|
|
591
|
-
return (n = n || new l.Root()).loadSync(a);
|
|
592
|
-
}, l.encoder = f(13), l.decoder = f(12), l.verifier = f(37), l.converter = f(11), l.ReflectionObject = f(22), l.Namespace = f(21), l.Root = f(26), l.Enum = f(14), l.Type = f(31), l.Field = f(15), l.OneOf = f(23), l.MapField = f(18), l.Service = f(30), l.Method = f(20), l.Message = f(19), l.wrappers = f(38), l.types = f(32), l.util = f(33), l.ReflectionObject.c(l.Root), l.Namespace.c(l.Type, l.Service, l.Enum), l.Root.c(l.Type), l.Field.c(l.Type);
|
|
593
|
-
}, { 11: 11, 12: 12, 13: 13, 14: 14, 15: 15, 17: 17, 18: 18, 19: 19, 20: 20, 21: 21, 22: 22, 23: 23, 26: 26, 30: 30, 31: 31, 32: 32, 33: 33, 37: 37, 38: 38 }], 17: [function(f, v, O) {
|
|
594
|
-
var l = O;
|
|
595
|
-
function a() {
|
|
596
|
-
l.util.c(), l.Writer.c(l.BufferWriter), l.Reader.c(l.BufferReader);
|
|
597
|
-
}
|
|
598
|
-
l.build = "minimal", l.Writer = f(39), l.BufferWriter = f(40), l.Reader = f(24), l.BufferReader = f(25), l.util = f(35), l.rpc = f(28), l.roots = f(27), l.configure = a, a();
|
|
599
|
-
}, { 24: 24, 25: 25, 27: 27, 28: 28, 35: 35, 39: 39, 40: 40 }], 18: [function(f, v, O) {
|
|
600
|
-
v.exports = i;
|
|
601
|
-
var l = f(15), a = (((i.prototype = Object.create(l.prototype)).constructor = i).className = "MapField", f(32)), n = f(33);
|
|
602
|
-
function i(e, t, s, r, o, c) {
|
|
603
|
-
if (l.call(this, e, t, r, b, b, o, c), !n.isString(s)) throw TypeError("keyType must be a string");
|
|
604
|
-
this.keyType = s, this.resolvedKeyType = null, this.map = !0;
|
|
605
|
-
}
|
|
606
|
-
i.fromJSON = function(e, t) {
|
|
607
|
-
return new i(e, t.id, t.keyType, t.type, t.options, t.comment);
|
|
608
|
-
}, i.prototype.toJSON = function(e) {
|
|
609
|
-
return e = !!e && !!e.keepComments, n.toObject(["keyType", this.keyType, "type", this.type, "id", this.id, "extend", this.extend, "options", this.options, "comment", e ? this.comment : b]);
|
|
610
|
-
}, i.prototype.resolve = function() {
|
|
611
|
-
if (this.resolved) return this;
|
|
612
|
-
if (a.mapKey[this.keyType] === b) throw Error("invalid key type: " + this.keyType);
|
|
613
|
-
return l.prototype.resolve.call(this);
|
|
614
|
-
}, i.d = function(e, t, s) {
|
|
615
|
-
return typeof s == "function" ? s = n.decorateType(s).name : s && typeof s == "object" && (s = n.decorateEnum(s).name), function(r, o) {
|
|
616
|
-
n.decorateType(r.constructor).add(new i(o, e, t, s));
|
|
617
|
-
};
|
|
618
|
-
};
|
|
619
|
-
}, { 15: 15, 32: 32, 33: 33 }], 19: [function(f, v, O) {
|
|
620
|
-
v.exports = a;
|
|
621
|
-
var l = f(35);
|
|
622
|
-
function a(n) {
|
|
623
|
-
if (n) for (var i = Object.keys(n), e = 0; e < i.length; ++e) {
|
|
624
|
-
var t = i[e];
|
|
625
|
-
t !== "__proto__" && (this[t] = n[t]);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
a.create = function(n) {
|
|
629
|
-
return this.$type.create(n);
|
|
630
|
-
}, a.encode = function(n, i) {
|
|
631
|
-
return this.$type.encode(n, i);
|
|
632
|
-
}, a.encodeDelimited = function(n, i) {
|
|
633
|
-
return this.$type.encodeDelimited(n, i);
|
|
634
|
-
}, a.decode = function(n) {
|
|
635
|
-
return this.$type.decode(n);
|
|
636
|
-
}, a.decodeDelimited = function(n) {
|
|
637
|
-
return this.$type.decodeDelimited(n);
|
|
638
|
-
}, a.verify = function(n) {
|
|
639
|
-
return this.$type.verify(n);
|
|
640
|
-
}, a.fromObject = function(n) {
|
|
641
|
-
return this.$type.fromObject(n);
|
|
642
|
-
}, a.toObject = function(n, i) {
|
|
643
|
-
return this.$type.toObject(n, i);
|
|
644
|
-
}, a.prototype.toJSON = function() {
|
|
645
|
-
return this.$type.toObject(this, l.toJSONOptions);
|
|
646
|
-
};
|
|
647
|
-
}, { 35: 35 }], 20: [function(f, v, O) {
|
|
648
|
-
v.exports = n;
|
|
649
|
-
var l = f(22), a = (((n.prototype = Object.create(l.prototype)).constructor = n).className = "Method", f(33));
|
|
650
|
-
function n(i, e, t, s, r, o, c, u, d) {
|
|
651
|
-
if (a.isObject(r) ? (c = r, r = o = b) : a.isObject(o) && (c = o, o = b), e !== b && !a.isString(e)) throw TypeError("type must be a string");
|
|
652
|
-
if (!a.isString(t)) throw TypeError("requestType must be a string");
|
|
653
|
-
if (!a.isString(s)) throw TypeError("responseType must be a string");
|
|
654
|
-
l.call(this, i, c), this.type = e || "rpc", this.requestType = t, this.requestStream = !!r || b, this.responseType = s, this.responseStream = !!o || b, this.resolvedRequestType = null, this.resolvedResponseType = null, this.comment = u, this.parsedOptions = d;
|
|
655
|
-
}
|
|
656
|
-
n.fromJSON = function(i, e) {
|
|
657
|
-
return new n(i, e.type, e.requestType, e.responseType, e.requestStream, e.responseStream, e.options, e.comment, e.parsedOptions);
|
|
658
|
-
}, n.prototype.toJSON = function(i) {
|
|
659
|
-
return i = !!i && !!i.keepComments, a.toObject(["type", this.type !== "rpc" && this.type || b, "requestType", this.requestType, "requestStream", this.requestStream, "responseType", this.responseType, "responseStream", this.responseStream, "options", this.options, "comment", i ? this.comment : b, "parsedOptions", this.parsedOptions]);
|
|
660
|
-
}, n.prototype.resolve = function() {
|
|
661
|
-
return this.resolved ? this : (this.resolvedRequestType = this.parent.lookupType(this.requestType), this.resolvedResponseType = this.parent.lookupType(this.responseType), l.prototype.resolve.call(this));
|
|
662
|
-
};
|
|
663
|
-
}, { 22: 22, 33: 33 }], 21: [function(f, v, O) {
|
|
664
|
-
v.exports = o;
|
|
665
|
-
var l, a, n, i = f(22), e = (((o.prototype = Object.create(i.prototype)).constructor = o).className = "Namespace", f(15)), t = f(33), s = f(23);
|
|
666
|
-
function r(u, d) {
|
|
667
|
-
if (!u || !u.length) return b;
|
|
668
|
-
for (var p = {}, y = 0; y < u.length; ++y) p[u[y].name] = u[y].toJSON(d);
|
|
669
|
-
return p;
|
|
670
|
-
}
|
|
671
|
-
function o(u, d) {
|
|
672
|
-
i.call(this, u, d), this.nested = b, this.a = null, this.l = /* @__PURE__ */ Object.create(null), this.p = !0, this.b = !0;
|
|
673
|
-
}
|
|
674
|
-
function c(u) {
|
|
675
|
-
u.a = null, u.l = /* @__PURE__ */ Object.create(null);
|
|
676
|
-
for (var d = u; d = d.parent; ) d.l = /* @__PURE__ */ Object.create(null);
|
|
677
|
-
return u;
|
|
678
|
-
}
|
|
679
|
-
o.fromJSON = function(u, d) {
|
|
680
|
-
return new o(u, d.options).addJSON(d.nested);
|
|
681
|
-
}, o.arrayToJSON = r, o.isReservedId = function(u, d) {
|
|
682
|
-
if (u) {
|
|
683
|
-
for (var p = 0; p < u.length; ++p) if (typeof u[p] != "string" && u[p][0] <= d && u[p][1] > d) return !0;
|
|
684
|
-
}
|
|
685
|
-
return !1;
|
|
686
|
-
}, o.isReservedName = function(u, d) {
|
|
687
|
-
if (u) {
|
|
688
|
-
for (var p = 0; p < u.length; ++p) if (u[p] === d) return !0;
|
|
689
|
-
}
|
|
690
|
-
return !1;
|
|
691
|
-
}, Object.defineProperty(o.prototype, "nestedArray", { get: function() {
|
|
692
|
-
return this.a || (this.a = t.toArray(this.nested));
|
|
693
|
-
} }), o.prototype.toJSON = function(u) {
|
|
694
|
-
return t.toObject(["options", this.options, "nested", r(this.nestedArray, u)]);
|
|
695
|
-
}, o.prototype.addJSON = function(u) {
|
|
696
|
-
if (u) for (var d, p = Object.keys(u), y = 0; y < p.length; ++y) d = u[p[y]], this.add((d.fields !== b ? l : d.values !== b ? n : d.methods !== b ? a : d.id !== b ? e : o).fromJSON(p[y], d));
|
|
697
|
-
return this;
|
|
698
|
-
}, o.prototype.get = function(u) {
|
|
699
|
-
return this.nested && Object.prototype.hasOwnProperty.call(this.nested, u) ? this.nested[u] : null;
|
|
700
|
-
}, o.prototype.getEnum = function(u) {
|
|
701
|
-
if (this.nested && Object.prototype.hasOwnProperty.call(this.nested, u) && this.nested[u] instanceof n) return this.nested[u].values;
|
|
702
|
-
throw Error("no such enum: " + u);
|
|
703
|
-
}, o.prototype.add = function(u) {
|
|
704
|
-
if (!(u instanceof e && u.extend !== b || u instanceof l || u instanceof s || u instanceof n || u instanceof a || u instanceof o)) throw TypeError("object must be a valid nested object");
|
|
705
|
-
if (u.name === "__proto__") return this;
|
|
706
|
-
if (this.nested) {
|
|
707
|
-
var d = this.get(u.name);
|
|
708
|
-
if (d) {
|
|
709
|
-
if (!(d instanceof o && u instanceof o) || d instanceof l || d instanceof a) throw Error("duplicate name '" + u.name + "' in " + this);
|
|
710
|
-
for (var p = d.nestedArray, y = 0; y < p.length; ++y) u.add(p[y]);
|
|
711
|
-
this.remove(d), this.nested || (this.nested = {}), u.setOptions(d.options, !0);
|
|
712
|
-
}
|
|
713
|
-
} else this.nested = {};
|
|
714
|
-
this.nested[u.name] = u, this instanceof l || this instanceof a || this instanceof n || this instanceof e || u.e || (u.e = u.u), this.p = !0, this.b = !0;
|
|
715
|
-
for (var k = this; k = k.parent; ) k.p = !0, k.b = !0;
|
|
716
|
-
return u.onAdd(this), c(this);
|
|
717
|
-
}, o.prototype.remove = function(u) {
|
|
718
|
-
if (!(u instanceof i)) throw TypeError("object must be a ReflectionObject");
|
|
719
|
-
if (u.parent !== this) throw Error(u + " is not a member of " + this);
|
|
720
|
-
return delete this.nested[u.name], Object.keys(this.nested).length || (this.nested = b), u.onRemove(this), c(this);
|
|
721
|
-
}, o.prototype.define = function(u, d) {
|
|
722
|
-
if (t.isString(u)) u = u.split(".");
|
|
723
|
-
else if (!Array.isArray(u)) throw TypeError("illegal path");
|
|
724
|
-
if (u && u.length && u[0] === "") throw Error("path must be relative");
|
|
725
|
-
for (var p = this; 0 < u.length; ) {
|
|
726
|
-
var y = u.shift();
|
|
727
|
-
if (p.nested && p.nested[y]) {
|
|
728
|
-
if (!((p = p.nested[y]) instanceof o)) throw Error("path conflicts with non-namespace objects");
|
|
729
|
-
} else p.add(p = new o(y));
|
|
730
|
-
}
|
|
731
|
-
return d && p.addJSON(d), p;
|
|
732
|
-
}, o.prototype.resolveAll = function() {
|
|
733
|
-
if (this.b) {
|
|
734
|
-
this.v(this.e);
|
|
735
|
-
var u = this.nestedArray, d = 0;
|
|
736
|
-
for (this.resolve(); d < u.length; ) u[d] instanceof o ? u[d++].resolveAll() : u[d++].resolve();
|
|
737
|
-
this.b = !1;
|
|
738
|
-
}
|
|
739
|
-
return this;
|
|
740
|
-
}, o.prototype.v = function(u) {
|
|
741
|
-
return this.p && (this.p = !1, u = this.e || u, i.prototype.v.call(this, u), this.nestedArray.forEach((d) => {
|
|
742
|
-
d.v(u);
|
|
743
|
-
})), this;
|
|
744
|
-
}, o.prototype.lookup = function(u, d, p) {
|
|
745
|
-
if (typeof d == "boolean" ? (p = d, d = b) : d && !Array.isArray(d) && (d = [d]), t.isString(u) && u.length) {
|
|
746
|
-
if (u === ".") return this.root;
|
|
747
|
-
u = u.split(".");
|
|
748
|
-
} else if (!u.length) return this;
|
|
749
|
-
var y = u.join(".");
|
|
750
|
-
if (u[0] === "") return this.root.lookup(u.slice(1), d);
|
|
751
|
-
var k = this.root.y && this.root.y["." + y];
|
|
752
|
-
if (k && (!d || ~d.indexOf(k.constructor)) || (k = this.w(u, y)) && (!d || ~d.indexOf(k.constructor))) return k;
|
|
753
|
-
if (!p) for (var h = this; h.parent; ) {
|
|
754
|
-
if ((k = h.parent.w(u, y)) && (!d || ~d.indexOf(k.constructor))) return k;
|
|
755
|
-
h = h.parent;
|
|
756
|
-
}
|
|
757
|
-
return null;
|
|
758
|
-
}, o.prototype.w = function(u, d) {
|
|
759
|
-
if (Object.prototype.hasOwnProperty.call(this.l, d)) return this.l[d];
|
|
760
|
-
var p = this.get(u[0]), y = null;
|
|
761
|
-
if (p) u.length === 1 ? y = p : p instanceof o && (u = u.slice(1), y = p.w(u, u.join(".")));
|
|
762
|
-
else for (var k = 0; k < this.nestedArray.length; ++k) this.a[k] instanceof o && (p = this.a[k].w(u, d)) && (y = p);
|
|
763
|
-
return this.l[d] = y;
|
|
764
|
-
}, o.prototype.lookupType = function(u) {
|
|
765
|
-
var d = this.lookup(u, [l]);
|
|
766
|
-
if (d) return d;
|
|
767
|
-
throw Error("no such type: " + u);
|
|
768
|
-
}, o.prototype.lookupEnum = function(u) {
|
|
769
|
-
var d = this.lookup(u, [n]);
|
|
770
|
-
if (d) return d;
|
|
771
|
-
throw Error("no such Enum '" + u + "' in " + this);
|
|
772
|
-
}, o.prototype.lookupTypeOrEnum = function(u) {
|
|
773
|
-
var d = this.lookup(u, [l, n]);
|
|
774
|
-
if (d) return d;
|
|
775
|
-
throw Error("no such Type or Enum '" + u + "' in " + this);
|
|
776
|
-
}, o.prototype.lookupService = function(u) {
|
|
777
|
-
var d = this.lookup(u, [a]);
|
|
778
|
-
if (d) return d;
|
|
779
|
-
throw Error("no such Service '" + u + "' in " + this);
|
|
780
|
-
}, o.c = function(u, d, p) {
|
|
781
|
-
l = u, a = d, n = p;
|
|
782
|
-
};
|
|
783
|
-
}, { 15: 15, 22: 22, 23: 23, 33: 33 }], 22: [function(f, v, O) {
|
|
784
|
-
(v.exports = s).className = "ReflectionObject";
|
|
785
|
-
const l = f(23);
|
|
786
|
-
var a, n = f(33), i = { enum_type: "OPEN", field_presence: "EXPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY" }, e = { enum_type: "CLOSED", field_presence: "EXPLICIT", json_format: "LEGACY_BEST_EFFORT", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "EXPANDED", utf8_validation: "NONE" }, t = { enum_type: "OPEN", field_presence: "IMPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY" };
|
|
787
|
-
function s(r, o) {
|
|
788
|
-
if (!n.isString(r)) throw TypeError("name must be a string");
|
|
789
|
-
if (o && !n.isObject(o)) throw TypeError("options must be an object");
|
|
790
|
-
this.options = o, this.parsedOptions = null, this.name = r, this.e = null, this.u = "proto2", this.o = {}, this.g = !1, this.parent = null, this.resolved = !1, this.comment = null, this.filename = null;
|
|
791
|
-
}
|
|
792
|
-
Object.defineProperties(s.prototype, { root: { get: function() {
|
|
793
|
-
for (var r = this; r.parent !== null; ) r = r.parent;
|
|
794
|
-
return r;
|
|
795
|
-
} }, fullName: { get: function() {
|
|
796
|
-
for (var r = [this.name], o = this.parent; o; ) r.unshift(o.name), o = o.parent;
|
|
797
|
-
return r.join(".");
|
|
798
|
-
} } }), s.prototype.toJSON = function() {
|
|
799
|
-
throw Error();
|
|
800
|
-
}, s.prototype.onAdd = function(r) {
|
|
801
|
-
this.parent && this.parent !== r && this.parent.remove(this), this.parent = r, this.resolved = !1, r = r.root, r instanceof a && r.j(this);
|
|
802
|
-
}, s.prototype.onRemove = function(r) {
|
|
803
|
-
r = r.root, r instanceof a && r.O(this), this.parent = null, this.resolved = !1;
|
|
804
|
-
}, s.prototype.resolve = function() {
|
|
805
|
-
return this.resolved || this.root instanceof a && (this.resolved = !0), this;
|
|
806
|
-
}, s.prototype.v = function(r) {
|
|
807
|
-
return this.r(this.e || r);
|
|
808
|
-
}, s.prototype.r = function(r) {
|
|
809
|
-
if (!this.g) {
|
|
810
|
-
var o = {};
|
|
811
|
-
if (!r) throw Error("Unknown edition for " + this.fullName);
|
|
812
|
-
var c = Object.assign(this.options ? Object.assign({}, this.options.features) : {}, this.f(r));
|
|
813
|
-
if (this.e) {
|
|
814
|
-
if (r === "proto2") o = Object.assign({}, e);
|
|
815
|
-
else if (r === "proto3") o = Object.assign({}, t);
|
|
816
|
-
else {
|
|
817
|
-
if (r !== "2023") throw Error("Unknown edition: " + r);
|
|
818
|
-
o = Object.assign({}, i);
|
|
819
|
-
}
|
|
820
|
-
this.o = Object.assign(o, c || {});
|
|
821
|
-
} else {
|
|
822
|
-
if (this.partOf instanceof l)
|
|
823
|
-
r = Object.assign({}, this.partOf.o), this.o = Object.assign(r, c || {});
|
|
824
|
-
else if (!this.declaringField) {
|
|
825
|
-
if (!this.parent) throw Error("Unable to find a parent for " + this.fullName);
|
|
826
|
-
o = Object.assign({}, this.parent.o), this.o = Object.assign(o, c || {});
|
|
827
|
-
}
|
|
828
|
-
this.extensionField && (this.extensionField.o = this.o);
|
|
829
|
-
}
|
|
830
|
-
this.g = !0;
|
|
831
|
-
}
|
|
832
|
-
}, s.prototype.f = function() {
|
|
833
|
-
return {};
|
|
834
|
-
}, s.prototype.getOption = function(r) {
|
|
835
|
-
return this.options ? this.options[r] : b;
|
|
836
|
-
}, s.prototype.setOption = function(r, o, c) {
|
|
837
|
-
return r !== "__proto__" && (this.options || (this.options = {}), /^features\./.test(r) ? n.setProperty(this.options, r, o, c) : c && this.options[r] !== b || (this.getOption(r) !== o && (this.resolved = !1), this.options[r] = o)), this;
|
|
838
|
-
}, s.prototype.setParsedOption = function(r, o, c) {
|
|
839
|
-
var u, d, p;
|
|
840
|
-
return r !== "__proto__" && (this.parsedOptions || (this.parsedOptions = []), u = this.parsedOptions, c ? (d = u.find(function(y) {
|
|
841
|
-
return Object.prototype.hasOwnProperty.call(y, r);
|
|
842
|
-
})) ? (p = d[r], n.setProperty(p, c, o)) : ((d = {})[r] = n.setProperty({}, c, o), u.push(d)) : ((p = {})[r] = o, u.push(p))), this;
|
|
843
|
-
}, s.prototype.setOptions = function(r, o) {
|
|
844
|
-
if (r) for (var c = Object.keys(r), u = 0; u < c.length; ++u) this.setOption(c[u], r[c[u]], o);
|
|
845
|
-
return this;
|
|
846
|
-
}, s.prototype.toString = function() {
|
|
847
|
-
var r = this.constructor.className, o = this.fullName;
|
|
848
|
-
return o.length ? r + " " + o : r;
|
|
849
|
-
}, s.prototype.h = function() {
|
|
850
|
-
return this.e && this.e !== "proto3" ? this.e : b;
|
|
851
|
-
}, s.c = function(r) {
|
|
852
|
-
a = r;
|
|
853
|
-
};
|
|
854
|
-
}, { 23: 23, 33: 33 }], 23: [function(f, v, O) {
|
|
855
|
-
v.exports = i;
|
|
856
|
-
var l = f(22), a = (((i.prototype = Object.create(l.prototype)).constructor = i).className = "OneOf", f(15)), n = f(33);
|
|
857
|
-
function i(t, s, r, o) {
|
|
858
|
-
if (Array.isArray(s) || (r = s, s = b), l.call(this, t, r), s !== b && !Array.isArray(s)) throw TypeError("fieldNames must be an Array");
|
|
859
|
-
this.oneof = s || [], this.fieldsArray = [], this.comment = o;
|
|
860
|
-
}
|
|
861
|
-
function e(t) {
|
|
862
|
-
if (t.parent) for (var s = 0; s < t.fieldsArray.length; ++s) t.fieldsArray[s].parent || t.parent.add(t.fieldsArray[s]);
|
|
863
|
-
}
|
|
864
|
-
i.fromJSON = function(t, s) {
|
|
865
|
-
return new i(t, s.oneof, s.options, s.comment);
|
|
866
|
-
}, i.prototype.toJSON = function(t) {
|
|
867
|
-
return t = !!t && !!t.keepComments, n.toObject(["options", this.options, "oneof", this.oneof, "comment", t ? this.comment : b]);
|
|
868
|
-
}, i.prototype.add = function(t) {
|
|
869
|
-
if (t instanceof a) return t.parent && t.parent !== this.parent && t.parent.remove(t), this.oneof.push(t.name), this.fieldsArray.push(t), e(t.partOf = this), this;
|
|
870
|
-
throw TypeError("field must be a Field");
|
|
871
|
-
}, i.prototype.remove = function(t) {
|
|
872
|
-
if (!(t instanceof a)) throw TypeError("field must be a Field");
|
|
873
|
-
var s = this.fieldsArray.indexOf(t);
|
|
874
|
-
if (s < 0) throw Error(t + " is not a member of " + this);
|
|
875
|
-
return this.fieldsArray.splice(s, 1), -1 < (s = this.oneof.indexOf(t.name)) && this.oneof.splice(s, 1), t.partOf = null, this;
|
|
876
|
-
}, i.prototype.onAdd = function(t) {
|
|
877
|
-
l.prototype.onAdd.call(this, t);
|
|
878
|
-
for (var s = 0; s < this.oneof.length; ++s) {
|
|
879
|
-
var r = t.get(this.oneof[s]);
|
|
880
|
-
r && !r.partOf && (r.partOf = this).fieldsArray.push(r);
|
|
881
|
-
}
|
|
882
|
-
e(this);
|
|
883
|
-
}, i.prototype.onRemove = function(t) {
|
|
884
|
-
for (var s, r = 0; r < this.fieldsArray.length; ++r) (s = this.fieldsArray[r]).parent && s.parent.remove(s);
|
|
885
|
-
l.prototype.onRemove.call(this, t);
|
|
886
|
-
}, Object.defineProperty(i.prototype, "isProto3Optional", { get: function() {
|
|
887
|
-
var t;
|
|
888
|
-
return this.fieldsArray != null && this.fieldsArray.length === 1 && (t = this.fieldsArray[0]).options != null && t.options.proto3_optional === !0;
|
|
889
|
-
} }), i.d = function() {
|
|
890
|
-
for (var t = Array(arguments.length), s = 0; s < arguments.length; ) t[s] = arguments[s++];
|
|
891
|
-
return function(r, o) {
|
|
892
|
-
n.decorateType(r.constructor).add(new i(o, t)), Object.defineProperty(r, o, { get: n.oneOfGetter(t), set: n.oneOfSetter(t) });
|
|
893
|
-
};
|
|
894
|
-
};
|
|
895
|
-
}, { 15: 15, 22: 22, 33: 33 }], 24: [function(f, v, O) {
|
|
896
|
-
v.exports = t;
|
|
897
|
-
var l, a = f(35), n = a.LongBits, i = a.utf8;
|
|
898
|
-
function e(p, y) {
|
|
899
|
-
return RangeError("index out of range: " + p.pos + " + " + (y || 1) + " > " + p.len);
|
|
900
|
-
}
|
|
901
|
-
function t(p) {
|
|
902
|
-
this.buf = p, this.pos = 0, this.len = p.length;
|
|
903
|
-
}
|
|
904
|
-
function s() {
|
|
905
|
-
return a.Buffer ? function(p) {
|
|
906
|
-
return (t.create = function(y) {
|
|
907
|
-
return a.Buffer.isBuffer(y) ? new l(y) : o(y);
|
|
908
|
-
})(p);
|
|
909
|
-
} : o;
|
|
910
|
-
}
|
|
911
|
-
var r, o = typeof Uint8Array != "undefined" ? function(p) {
|
|
912
|
-
if (p instanceof Uint8Array || Array.isArray(p)) return new t(p);
|
|
913
|
-
throw Error("illegal buffer");
|
|
914
|
-
} : function(p) {
|
|
915
|
-
if (Array.isArray(p)) return new t(p);
|
|
916
|
-
throw Error("illegal buffer");
|
|
917
|
-
};
|
|
918
|
-
function c() {
|
|
919
|
-
var p = new n(0, 0), y = 0;
|
|
920
|
-
if (!(4 < this.len - this.pos)) {
|
|
921
|
-
for (; y < 3; ++y) {
|
|
922
|
-
if (this.pos >= this.len) throw e(this);
|
|
923
|
-
if (p.lo = (p.lo | (127 & this.buf[this.pos]) << 7 * y) >>> 0, this.buf[this.pos++] < 128) return p;
|
|
924
|
-
}
|
|
925
|
-
return p.lo = (p.lo | (127 & this.buf[this.pos++]) << 7 * y) >>> 0, p;
|
|
926
|
-
}
|
|
927
|
-
for (; y < 4; ++y) if (p.lo = (p.lo | (127 & this.buf[this.pos]) << 7 * y) >>> 0, this.buf[this.pos++] < 128) return p;
|
|
928
|
-
if (p.lo = (p.lo | (127 & this.buf[this.pos]) << 28) >>> 0, p.hi = (p.hi | (127 & this.buf[this.pos]) >> 4) >>> 0, this.buf[this.pos++] < 128) return p;
|
|
929
|
-
if (y = 0, 4 < this.len - this.pos) {
|
|
930
|
-
for (; y < 5; ++y) if (p.hi = (p.hi | (127 & this.buf[this.pos]) << 7 * y + 3) >>> 0, this.buf[this.pos++] < 128) return p;
|
|
931
|
-
} else for (; y < 5; ++y) {
|
|
932
|
-
if (this.pos >= this.len) throw e(this);
|
|
933
|
-
if (p.hi = (p.hi | (127 & this.buf[this.pos]) << 7 * y + 3) >>> 0, this.buf[this.pos++] < 128) return p;
|
|
934
|
-
}
|
|
935
|
-
throw Error("invalid varint encoding");
|
|
936
|
-
}
|
|
937
|
-
function u(p, y) {
|
|
938
|
-
return (p[y - 4] | p[y - 3] << 8 | p[y - 2] << 16 | p[y - 1] << 24) >>> 0;
|
|
939
|
-
}
|
|
940
|
-
function d() {
|
|
941
|
-
if (this.pos + 8 > this.len) throw e(this, 8);
|
|
942
|
-
return new n(u(this.buf, this.pos += 4), u(this.buf, this.pos += 4));
|
|
943
|
-
}
|
|
944
|
-
t.create = s(), t.prototype.k = a.Array.prototype.subarray || a.Array.prototype.slice, t.prototype.uint32 = (r = 4294967295, function() {
|
|
945
|
-
if (r = (127 & this.buf[this.pos]) >>> 0, this.buf[this.pos++] < 128 || (r = (r | (127 & this.buf[this.pos]) << 7) >>> 0, this.buf[this.pos++] < 128 || (r = (r | (127 & this.buf[this.pos]) << 14) >>> 0, this.buf[this.pos++] < 128 || (r = (r | (127 & this.buf[this.pos]) << 21) >>> 0, this.buf[this.pos++] < 128 || (r = (r | (15 & this.buf[this.pos]) << 28) >>> 0, this.buf[this.pos++] < 128 || !((this.pos += 5) > this.len)))))) return r;
|
|
946
|
-
throw this.pos = this.len, e(this, 10);
|
|
947
|
-
}), t.prototype.int32 = function() {
|
|
948
|
-
return 0 | this.uint32();
|
|
949
|
-
}, t.prototype.sint32 = function() {
|
|
950
|
-
var p = this.uint32();
|
|
951
|
-
return p >>> 1 ^ -(1 & p) | 0;
|
|
952
|
-
}, t.prototype.bool = function() {
|
|
953
|
-
return this.uint32() !== 0;
|
|
954
|
-
}, t.prototype.fixed32 = function() {
|
|
955
|
-
if (this.pos + 4 > this.len) throw e(this, 4);
|
|
956
|
-
return u(this.buf, this.pos += 4);
|
|
957
|
-
}, t.prototype.sfixed32 = function() {
|
|
958
|
-
if (this.pos + 4 > this.len) throw e(this, 4);
|
|
959
|
-
return 0 | u(this.buf, this.pos += 4);
|
|
960
|
-
}, t.prototype.float = function() {
|
|
961
|
-
if (this.pos + 4 > this.len) throw e(this, 4);
|
|
962
|
-
var p = a.float.readFloatLE(this.buf, this.pos);
|
|
963
|
-
return this.pos += 4, p;
|
|
964
|
-
}, t.prototype.double = function() {
|
|
965
|
-
if (this.pos + 8 > this.len) throw e(this, 4);
|
|
966
|
-
var p = a.float.readDoubleLE(this.buf, this.pos);
|
|
967
|
-
return this.pos += 8, p;
|
|
968
|
-
}, t.prototype.bytes = function() {
|
|
969
|
-
var p = this.uint32(), y = this.pos, k = this.pos + p;
|
|
970
|
-
if (k > this.len) throw e(this, p);
|
|
971
|
-
return this.pos += p, Array.isArray(this.buf) ? this.buf.slice(y, k) : y === k ? (p = a.Buffer) ? p.alloc(0) : new this.buf.constructor(0) : this.k.call(this.buf, y, k);
|
|
972
|
-
}, t.prototype.string = function() {
|
|
973
|
-
var p = this.bytes();
|
|
974
|
-
return i.read(p, 0, p.length);
|
|
975
|
-
}, t.prototype.skip = function(p) {
|
|
976
|
-
if (typeof p == "number") {
|
|
977
|
-
if (this.pos + p > this.len) throw e(this, p);
|
|
978
|
-
this.pos += p;
|
|
979
|
-
} else do
|
|
980
|
-
if (this.pos >= this.len) throw e(this);
|
|
981
|
-
while (128 & this.buf[this.pos++]);
|
|
982
|
-
return this;
|
|
983
|
-
}, t.recursionLimit = a.recursionLimit, t.prototype.skipType = function(p, y) {
|
|
984
|
-
if (t.recursionLimit < (y = y === b ? 0 : y)) throw Error("maximum nesting depth exceeded");
|
|
985
|
-
switch (p) {
|
|
986
|
-
case 0:
|
|
987
|
-
this.skip();
|
|
988
|
-
break;
|
|
989
|
-
case 1:
|
|
990
|
-
this.skip(8);
|
|
991
|
-
break;
|
|
992
|
-
case 2:
|
|
993
|
-
this.skip(this.uint32());
|
|
994
|
-
break;
|
|
995
|
-
case 3:
|
|
996
|
-
for (; (p = 7 & this.uint32()) != 4; ) this.skipType(p, y + 1);
|
|
997
|
-
break;
|
|
998
|
-
case 5:
|
|
999
|
-
this.skip(4);
|
|
1000
|
-
break;
|
|
1001
|
-
default:
|
|
1002
|
-
throw Error("invalid wire type " + p + " at offset " + this.pos);
|
|
1003
|
-
}
|
|
1004
|
-
return this;
|
|
1005
|
-
}, t.c = function(p) {
|
|
1006
|
-
l = p, t.create = s(), l.c();
|
|
1007
|
-
var y = a.Long ? "toLong" : "toNumber";
|
|
1008
|
-
a.merge(t.prototype, { int64: function() {
|
|
1009
|
-
return c.call(this)[y](!1);
|
|
1010
|
-
}, uint64: function() {
|
|
1011
|
-
return c.call(this)[y](!0);
|
|
1012
|
-
}, sint64: function() {
|
|
1013
|
-
return c.call(this).zzDecode()[y](!1);
|
|
1014
|
-
}, fixed64: function() {
|
|
1015
|
-
return d.call(this)[y](!0);
|
|
1016
|
-
}, sfixed64: function() {
|
|
1017
|
-
return d.call(this)[y](!1);
|
|
1018
|
-
} });
|
|
1019
|
-
};
|
|
1020
|
-
}, { 35: 35 }], 25: [function(f, v, O) {
|
|
1021
|
-
v.exports = n;
|
|
1022
|
-
var l = f(24), a = ((n.prototype = Object.create(l.prototype)).constructor = n, f(35));
|
|
1023
|
-
function n(i) {
|
|
1024
|
-
l.call(this, i);
|
|
1025
|
-
}
|
|
1026
|
-
n.c = function() {
|
|
1027
|
-
a.Buffer && (n.prototype.k = a.Buffer.prototype.slice);
|
|
1028
|
-
}, n.prototype.string = function() {
|
|
1029
|
-
var i = this.uint32();
|
|
1030
|
-
return this.buf.utf8Slice ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + i, this.len)) : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + i, this.len));
|
|
1031
|
-
}, n.c();
|
|
1032
|
-
}, { 24: 24, 35: 35 }], 26: [function(f, v, O) {
|
|
1033
|
-
v.exports = o;
|
|
1034
|
-
var l, a, n, i = f(21), e = (((o.prototype = Object.create(i.prototype)).constructor = o).className = "Root", f(15)), t = f(14), s = f(23), r = f(33);
|
|
1035
|
-
function o(p) {
|
|
1036
|
-
i.call(this, "", p), this.deferred = [], this.files = [], this.e = "proto2", this.y = {};
|
|
1037
|
-
}
|
|
1038
|
-
function c() {
|
|
1039
|
-
}
|
|
1040
|
-
o.fromJSON = function(p, y) {
|
|
1041
|
-
return y = y || new o(), p.options && y.setOptions(p.options), y.addJSON(p.nested).resolveAll();
|
|
1042
|
-
}, o.prototype.resolvePath = r.path.resolve, o.prototype.fetch = r.fetch, o.prototype.load = function p(y, k, h) {
|
|
1043
|
-
typeof k == "function" && (h = k, k = b);
|
|
1044
|
-
var E = this;
|
|
1045
|
-
if (!h) return r.asPromise(p, E, y, k);
|
|
1046
|
-
var m = h === c;
|
|
1047
|
-
function w(A, N) {
|
|
1048
|
-
if (h) {
|
|
1049
|
-
if (m) throw A;
|
|
1050
|
-
N && N.resolveAll();
|
|
1051
|
-
var C = h;
|
|
1052
|
-
h = null, C(A, N);
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
function S(A) {
|
|
1056
|
-
var N = A.lastIndexOf("google/protobuf/");
|
|
1057
|
-
return -1 < N && (A = A.substring(N), A in n) ? A : null;
|
|
1058
|
-
}
|
|
1059
|
-
function x(A, N) {
|
|
1060
|
-
try {
|
|
1061
|
-
if (r.isString(N) && (N[0] || "") == "{" && (N = JSON.parse(N)), r.isString(N)) {
|
|
1062
|
-
a.filename = A;
|
|
1063
|
-
var C, P = a(N, E, k), L = 0;
|
|
1064
|
-
if (P.imports) for (; L < P.imports.length; ++L) (C = S(P.imports[L]) || E.resolvePath(A, P.imports[L])) && I(C);
|
|
1065
|
-
if (P.weakImports) for (L = 0; L < P.weakImports.length; ++L) (C = S(P.weakImports[L]) || E.resolvePath(A, P.weakImports[L])) && I(C, !0);
|
|
1066
|
-
} else E.setOptions(N.options).addJSON(N.nested);
|
|
1067
|
-
} catch (U) {
|
|
1068
|
-
w(U);
|
|
1069
|
-
}
|
|
1070
|
-
m || R || w(null, E);
|
|
1071
|
-
}
|
|
1072
|
-
function I(A, N) {
|
|
1073
|
-
if (A = S(A) || A, !~E.files.indexOf(A)) if (E.files.push(A), A in n) m ? x(A, n[A]) : (++R, setTimeout(function() {
|
|
1074
|
-
--R, x(A, n[A]);
|
|
1075
|
-
}));
|
|
1076
|
-
else if (m) {
|
|
1077
|
-
var C;
|
|
1078
|
-
try {
|
|
1079
|
-
C = r.fs.readFileSync(A).toString("utf8");
|
|
1080
|
-
} catch (P) {
|
|
1081
|
-
return void (N || w(P));
|
|
1082
|
-
}
|
|
1083
|
-
x(A, C);
|
|
1084
|
-
} else ++R, E.fetch(A, function(P, L) {
|
|
1085
|
-
--R, h && (P ? N ? R || w(null, E) : w(P) : x(A, L));
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
var R = 0;
|
|
1089
|
-
r.isString(y) && (y = [y]);
|
|
1090
|
-
for (var T, _ = 0; _ < y.length; ++_) (T = E.resolvePath("", y[_])) && I(T);
|
|
1091
|
-
return m ? E.resolveAll() : R || w(null, E), E;
|
|
1092
|
-
}, o.prototype.loadSync = function(p, y) {
|
|
1093
|
-
if (r.isNode) return this.load(p, y, c);
|
|
1094
|
-
throw Error("not supported");
|
|
1095
|
-
}, o.prototype.resolveAll = function() {
|
|
1096
|
-
if (!this.b) return this;
|
|
1097
|
-
if (this.deferred.length) throw Error("unresolvable extensions: " + this.deferred.map(function(p) {
|
|
1098
|
-
return "'extend " + p.extend + "' in " + p.parent.fullName;
|
|
1099
|
-
}).join(", "));
|
|
1100
|
-
return i.prototype.resolveAll.call(this);
|
|
1101
|
-
};
|
|
1102
|
-
var u = /^[A-Z]/;
|
|
1103
|
-
function d(p, y) {
|
|
1104
|
-
var k, h = y.parent.lookup(y.extend);
|
|
1105
|
-
if (h) return k = new e(y.fullName, y.id, y.type, y.rule, b, y.options), h.get(k.name) || ((k.declaringField = y).extensionField = k, h.add(k)), 1;
|
|
1106
|
-
}
|
|
1107
|
-
o.prototype.j = function(p) {
|
|
1108
|
-
if (p instanceof e) p.extend === b || p.extensionField || d(0, p) || this.deferred.push(p);
|
|
1109
|
-
else if (p instanceof t) u.test(p.name) && (p.parent[p.name] = p.values);
|
|
1110
|
-
else if (!(p instanceof s)) {
|
|
1111
|
-
if (p instanceof l) for (var y = 0; y < this.deferred.length; ) d(0, this.deferred[y]) ? this.deferred.splice(y, 1) : ++y;
|
|
1112
|
-
for (var k = 0; k < p.nestedArray.length; ++k) this.j(p.a[k]);
|
|
1113
|
-
u.test(p.name) && (p.parent[p.name] = p);
|
|
1114
|
-
}
|
|
1115
|
-
(p instanceof l || p instanceof t || p instanceof e) && (this.y[p.fullName] = p);
|
|
1116
|
-
}, o.prototype.O = function(p) {
|
|
1117
|
-
var y;
|
|
1118
|
-
if (p instanceof e) p.extend !== b && (p.extensionField ? (p.extensionField.parent.remove(p.extensionField), p.extensionField = null) : -1 < (y = this.deferred.indexOf(p)) && this.deferred.splice(y, 1));
|
|
1119
|
-
else if (p instanceof t) u.test(p.name) && delete p.parent[p.name];
|
|
1120
|
-
else if (p instanceof i) {
|
|
1121
|
-
for (var k = 0; k < p.nestedArray.length; ++k) this.O(p.a[k]);
|
|
1122
|
-
u.test(p.name) && delete p.parent[p.name];
|
|
1123
|
-
}
|
|
1124
|
-
delete this.y[p.fullName];
|
|
1125
|
-
}, o.c = function(p, y, k) {
|
|
1126
|
-
l = p, a = y, n = k;
|
|
1127
|
-
};
|
|
1128
|
-
}, { 14: 14, 15: 15, 21: 21, 23: 23, 33: 33 }], 27: [function(f, v, O) {
|
|
1129
|
-
v.exports = {};
|
|
1130
|
-
}, {}], 28: [function(f, v, O) {
|
|
1131
|
-
O.Service = f(29);
|
|
1132
|
-
}, { 29: 29 }], 29: [function(f, v, O) {
|
|
1133
|
-
v.exports = a;
|
|
1134
|
-
var l = f(35);
|
|
1135
|
-
function a(n, i, e) {
|
|
1136
|
-
if (typeof n != "function") throw TypeError("rpcImpl must be a function");
|
|
1137
|
-
l.EventEmitter.call(this), this.rpcImpl = n, this.requestDelimited = !!i, this.responseDelimited = !!e;
|
|
1138
|
-
}
|
|
1139
|
-
((a.prototype = Object.create(l.EventEmitter.prototype)).constructor = a).prototype.rpcCall = function n(i, e, t, s, r) {
|
|
1140
|
-
if (!s) throw TypeError("request must be specified");
|
|
1141
|
-
var o = this;
|
|
1142
|
-
if (!r) return l.asPromise(n, o, i, e, t, s);
|
|
1143
|
-
if (!o.rpcImpl) return setTimeout(function() {
|
|
1144
|
-
r(Error("already ended"));
|
|
1145
|
-
}, 0), b;
|
|
1146
|
-
try {
|
|
1147
|
-
return o.rpcImpl(i, e[o.requestDelimited ? "encodeDelimited" : "encode"](s).finish(), function(c, u) {
|
|
1148
|
-
if (c) return o.emit("error", c, i), r(c);
|
|
1149
|
-
if (u === null) return o.end(!0), b;
|
|
1150
|
-
if (!(u instanceof t)) try {
|
|
1151
|
-
u = t[o.responseDelimited ? "decodeDelimited" : "decode"](u);
|
|
1152
|
-
} catch (d) {
|
|
1153
|
-
return o.emit("error", d, i), r(d);
|
|
1154
|
-
}
|
|
1155
|
-
return o.emit("data", u, i), r(null, u);
|
|
1156
|
-
});
|
|
1157
|
-
} catch (c) {
|
|
1158
|
-
return o.emit("error", c, i), setTimeout(function() {
|
|
1159
|
-
r(c);
|
|
1160
|
-
}, 0), b;
|
|
1161
|
-
}
|
|
1162
|
-
}, a.prototype.end = function(n) {
|
|
1163
|
-
return this.rpcImpl && (n || this.rpcImpl(null, null, null), this.rpcImpl = null, this.emit("end").off()), this;
|
|
1164
|
-
};
|
|
1165
|
-
}, { 35: 35 }], 30: [function(f, v, O) {
|
|
1166
|
-
v.exports = t;
|
|
1167
|
-
var l = f(21), a = (((t.prototype = Object.create(l.prototype)).constructor = t).className = "Service", f(20)), n = f(33), i = f(28), e = n.patterns.reservedRe;
|
|
1168
|
-
function t(r, o) {
|
|
1169
|
-
l.call(this, r, o), this.methods = {}, this._ = null;
|
|
1170
|
-
}
|
|
1171
|
-
function s(r) {
|
|
1172
|
-
return r._ = null, r;
|
|
1173
|
-
}
|
|
1174
|
-
t.fromJSON = function(r, o) {
|
|
1175
|
-
var c = new t(r, o.options);
|
|
1176
|
-
if (o.methods) for (var u = Object.keys(o.methods), d = 0; d < u.length; ++d) c.add(a.fromJSON(u[d], o.methods[u[d]]));
|
|
1177
|
-
return o.nested && c.addJSON(o.nested), o.edition && (c.e = o.edition), c.comment = o.comment, c.u = "proto3", c;
|
|
1178
|
-
}, t.prototype.toJSON = function(r) {
|
|
1179
|
-
var o = l.prototype.toJSON.call(this, r), c = !!r && !!r.keepComments;
|
|
1180
|
-
return n.toObject(["edition", this.h(), "options", o && o.options || b, "methods", l.arrayToJSON(this.methodsArray, r) || {}, "nested", o && o.nested || b, "comment", c ? this.comment : b]);
|
|
1181
|
-
}, Object.defineProperty(t.prototype, "methodsArray", { get: function() {
|
|
1182
|
-
return this._ || (this._ = n.toArray(this.methods));
|
|
1183
|
-
} }), t.prototype.get = function(r) {
|
|
1184
|
-
return Object.prototype.hasOwnProperty.call(this.methods, r) ? this.methods[r] : l.prototype.get.call(this, r);
|
|
1185
|
-
}, t.prototype.resolveAll = function() {
|
|
1186
|
-
if (this.b) {
|
|
1187
|
-
l.prototype.resolve.call(this);
|
|
1188
|
-
for (var r = this.methodsArray, o = 0; o < r.length; ++o) r[o].resolve();
|
|
1189
|
-
}
|
|
1190
|
-
return this;
|
|
1191
|
-
}, t.prototype.v = function(r) {
|
|
1192
|
-
return this.p && (r = this.e || r, l.prototype.v.call(this, r), this.methodsArray.forEach((o) => {
|
|
1193
|
-
o.v(r);
|
|
1194
|
-
})), this;
|
|
1195
|
-
}, t.prototype.add = function(r) {
|
|
1196
|
-
if (this.get(r.name)) throw Error("duplicate name '" + r.name + "' in " + this);
|
|
1197
|
-
return r instanceof a ? r.name === "__proto__" ? this : s((this.methods[r.name] = r).parent = this) : l.prototype.add.call(this, r);
|
|
1198
|
-
}, t.prototype.remove = function(r) {
|
|
1199
|
-
if (r instanceof a) {
|
|
1200
|
-
if (this.methods[r.name] !== r) throw Error(r + " is not a member of " + this);
|
|
1201
|
-
return delete this.methods[r.name], r.parent = null, s(this);
|
|
1202
|
-
}
|
|
1203
|
-
return l.prototype.remove.call(this, r);
|
|
1204
|
-
}, t.prototype.create = function(r, o, c) {
|
|
1205
|
-
for (var u, d = new i.Service(r, o, c), p = 0; p < this.methodsArray.length; ++p) {
|
|
1206
|
-
var y = n.lcFirst((u = this._[p]).resolve().name).replace(/[^$\w_]/g, "");
|
|
1207
|
-
d[y] = n.codegen(["r", "c"], e.test(y) ? y + "_" : y)("return this.rpcCall(m,q,s,r,c)")({ m: u, q: u.resolvedRequestType.ctor, s: u.resolvedResponseType.ctor });
|
|
1208
|
-
}
|
|
1209
|
-
return d;
|
|
1210
|
-
};
|
|
1211
|
-
}, { 20: 20, 21: 21, 28: 28, 33: 33 }], 31: [function(f, v, O) {
|
|
1212
|
-
v.exports = h;
|
|
1213
|
-
var l = f(21), a = (((h.prototype = Object.create(l.prototype)).constructor = h).className = "Type", f(14)), n = f(23), i = f(15), e = f(18), t = f(30), s = f(19), r = f(24), o = f(39), c = f(33), u = f(13), d = f(12), p = f(37), y = f(11), k = f(38);
|
|
1214
|
-
function h(m, w) {
|
|
1215
|
-
m = m.replace(/\W/g, ""), l.call(this, m, w), this.fields = {}, this.oneofs = b, this.extensions = b, this.reserved = b, this.group = b, this.A = null, this.i = null, this.T = null, this.x = null;
|
|
1216
|
-
}
|
|
1217
|
-
function E(m) {
|
|
1218
|
-
return m.A = m.i = m.T = null, delete m.encode, delete m.decode, delete m.verify, m;
|
|
1219
|
-
}
|
|
1220
|
-
Object.defineProperties(h.prototype, { fieldsById: { get: function() {
|
|
1221
|
-
if (!this.A) {
|
|
1222
|
-
this.A = {};
|
|
1223
|
-
for (var m = Object.keys(this.fields), w = 0; w < m.length; ++w) {
|
|
1224
|
-
var S = this.fields[m[w]], x = S.id;
|
|
1225
|
-
if (this.A[x]) throw Error("duplicate id " + x + " in " + this);
|
|
1226
|
-
this.A[x] = S;
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
return this.A;
|
|
1230
|
-
} }, fieldsArray: { get: function() {
|
|
1231
|
-
return this.i || (this.i = c.toArray(this.fields));
|
|
1232
|
-
} }, oneofsArray: { get: function() {
|
|
1233
|
-
return this.T || (this.T = c.toArray(this.oneofs));
|
|
1234
|
-
} }, ctor: { get: function() {
|
|
1235
|
-
return this.x || (this.ctor = h.generateConstructor(this)());
|
|
1236
|
-
}, set: function(m) {
|
|
1237
|
-
for (var w = m.prototype, S = (w instanceof s || ((m.prototype = new s()).constructor = m, c.merge(m.prototype, w)), m.$type = m.prototype.$type = this, c.merge(m, s, !0), this.x = m, 0); S < this.fieldsArray.length; ++S) this.i[S].resolve();
|
|
1238
|
-
for (var x = {}, S = 0; S < this.oneofsArray.length; ++S) x[this.T[S].resolve().name] = { get: c.oneOfGetter(this.T[S].oneof), set: c.oneOfSetter(this.T[S].oneof) };
|
|
1239
|
-
S && Object.defineProperties(m.prototype, x);
|
|
1240
|
-
} } }), h.generateConstructor = function(m) {
|
|
1241
|
-
for (var w, S = c.codegen(["p"], m.name), x = 0; x < m.fieldsArray.length; ++x) (w = m.i[x]).map ? S("this%s={}", c.safeProp(w.name)) : w.repeated && S("this%s=[]", c.safeProp(w.name));
|
|
1242
|
-
return S('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]]");
|
|
1243
|
-
}, h.fromJSON = function(m, w) {
|
|
1244
|
-
for (var S = new h(m, w.options), x = (S.extensions = w.extensions, S.reserved = w.reserved, Object.keys(w.fields)), I = 0; I < x.length; ++I) S.add((w.fields[x[I]].keyType !== void 0 ? e : i).fromJSON(x[I], w.fields[x[I]]));
|
|
1245
|
-
if (w.oneofs) for (x = Object.keys(w.oneofs), I = 0; I < x.length; ++I) S.add(n.fromJSON(x[I], w.oneofs[x[I]]));
|
|
1246
|
-
if (w.nested) for (x = Object.keys(w.nested), I = 0; I < x.length; ++I) {
|
|
1247
|
-
var R = w.nested[x[I]];
|
|
1248
|
-
S.add((R.id !== b ? i : R.fields !== b ? h : R.values !== b ? a : R.methods !== b ? t : l).fromJSON(x[I], R));
|
|
1249
|
-
}
|
|
1250
|
-
return w.extensions && w.extensions.length && (S.extensions = w.extensions), w.reserved && w.reserved.length && (S.reserved = w.reserved), w.group && (S.group = !0), w.comment && (S.comment = w.comment), w.edition && (S.e = w.edition), S.u = "proto3", S;
|
|
1251
|
-
}, h.prototype.toJSON = function(m) {
|
|
1252
|
-
var w = l.prototype.toJSON.call(this, m), S = !!m && !!m.keepComments;
|
|
1253
|
-
return c.toObject(["edition", this.h(), "options", w && w.options || b, "oneofs", l.arrayToJSON(this.oneofsArray, m), "fields", l.arrayToJSON(this.fieldsArray.filter(function(x) {
|
|
1254
|
-
return !x.declaringField;
|
|
1255
|
-
}), m) || {}, "extensions", this.extensions && this.extensions.length ? this.extensions : b, "reserved", this.reserved && this.reserved.length ? this.reserved : b, "group", this.group || b, "nested", w && w.nested || b, "comment", S ? this.comment : b]);
|
|
1256
|
-
}, h.prototype.resolveAll = function() {
|
|
1257
|
-
if (this.b) {
|
|
1258
|
-
l.prototype.resolveAll.call(this);
|
|
1259
|
-
for (var m = this.oneofsArray, w = 0; w < m.length; ) m[w++].resolve();
|
|
1260
|
-
for (var S = this.fieldsArray, w = 0; w < S.length; ) S[w++].resolve();
|
|
1261
|
-
}
|
|
1262
|
-
return this;
|
|
1263
|
-
}, h.prototype.v = function(m) {
|
|
1264
|
-
return this.p && (m = this.e || m, l.prototype.v.call(this, m), this.oneofsArray.forEach((w) => {
|
|
1265
|
-
w.r(m);
|
|
1266
|
-
}), this.fieldsArray.forEach((w) => {
|
|
1267
|
-
w.r(m);
|
|
1268
|
-
})), this;
|
|
1269
|
-
}, h.prototype.get = function(m) {
|
|
1270
|
-
return Object.prototype.hasOwnProperty.call(this.fields, m) ? this.fields[m] : this.oneofs && Object.prototype.hasOwnProperty.call(this.oneofs, m) ? this.oneofs[m] : this.nested && Object.prototype.hasOwnProperty.call(this.nested, m) ? this.nested[m] : null;
|
|
1271
|
-
}, h.prototype.add = function(m) {
|
|
1272
|
-
if (this.get(m.name)) throw Error("duplicate name '" + m.name + "' in " + this);
|
|
1273
|
-
if (m instanceof i && m.extend === b) {
|
|
1274
|
-
if ((this.A || this.fieldsById)[m.id]) throw Error("duplicate id " + m.id + " in " + this);
|
|
1275
|
-
if (this.isReservedId(m.id)) throw Error("id " + m.id + " is reserved in " + this);
|
|
1276
|
-
if (this.isReservedName(m.name)) throw Error("name '" + m.name + "' is reserved in " + this);
|
|
1277
|
-
return m.name === "__proto__" ? this : (m.parent && m.parent.remove(m), (this.fields[m.name] = m).message = this, m.onAdd(this), E(this));
|
|
1278
|
-
}
|
|
1279
|
-
return m instanceof n ? m.name === "__proto__" ? this : (this.oneofs || (this.oneofs = {}), (this.oneofs[m.name] = m).onAdd(this), E(this)) : l.prototype.add.call(this, m);
|
|
1280
|
-
}, h.prototype.remove = function(m) {
|
|
1281
|
-
if (m instanceof i && m.extend === b) {
|
|
1282
|
-
if (this.fields && this.fields[m.name] === m) return delete this.fields[m.name], m.parent = null, m.onRemove(this), E(this);
|
|
1283
|
-
throw Error(m + " is not a member of " + this);
|
|
1284
|
-
}
|
|
1285
|
-
if (m instanceof n) {
|
|
1286
|
-
if (this.oneofs && this.oneofs[m.name] === m) return delete this.oneofs[m.name], m.parent = null, m.onRemove(this), E(this);
|
|
1287
|
-
throw Error(m + " is not a member of " + this);
|
|
1288
|
-
}
|
|
1289
|
-
return l.prototype.remove.call(this, m);
|
|
1290
|
-
}, h.prototype.isReservedId = function(m) {
|
|
1291
|
-
return l.isReservedId(this.reserved, m);
|
|
1292
|
-
}, h.prototype.isReservedName = function(m) {
|
|
1293
|
-
return l.isReservedName(this.reserved, m);
|
|
1294
|
-
}, h.prototype.create = function(m) {
|
|
1295
|
-
return new this.ctor(m);
|
|
1296
|
-
}, h.prototype.setup = function() {
|
|
1297
|
-
for (var x = this.fullName, m = [], w = 0; w < this.fieldsArray.length; ++w) m.push(this.i[w].resolve().resolvedType);
|
|
1298
|
-
this.encode = u(this)({ Writer: o, types: m, util: c }), this.decode = d(this)({ Reader: r, types: m, util: c }), this.verify = p(this)({ types: m, util: c }), this.fromObject = y.fromObject(this)({ types: m, util: c }), this.toObject = y.toObject(this)({ types: m, util: c });
|
|
1299
|
-
var S, x = k[x];
|
|
1300
|
-
return x && ((S = Object.create(this)).fromObject = this.fromObject, this.fromObject = x.fromObject.bind(S), S.toObject = this.toObject, this.toObject = x.toObject.bind(S)), this;
|
|
1301
|
-
}, h.prototype.encode = function(m, w) {
|
|
1302
|
-
return this.setup().encode(m, w);
|
|
1303
|
-
}, h.prototype.encodeDelimited = function(m, w) {
|
|
1304
|
-
return this.encode(m, w && w.len ? w.fork() : w).ldelim();
|
|
1305
|
-
}, h.prototype.decode = function(m, w, S, x) {
|
|
1306
|
-
return this.setup().decode(m, w, S, x);
|
|
1307
|
-
}, h.prototype.decodeDelimited = function(m) {
|
|
1308
|
-
return m instanceof r || (m = r.create(m)), this.decode(m, m.uint32());
|
|
1309
|
-
}, h.prototype.verify = function(m, w) {
|
|
1310
|
-
return this.setup().verify(m, w);
|
|
1311
|
-
}, h.prototype.fromObject = function(m, w) {
|
|
1312
|
-
return this.setup().fromObject(m, w);
|
|
1313
|
-
}, h.prototype.toObject = function(m, w) {
|
|
1314
|
-
return this.setup().toObject(m, w);
|
|
1315
|
-
}, h.d = function(m) {
|
|
1316
|
-
return function(w) {
|
|
1317
|
-
c.decorateType(w, m);
|
|
1318
|
-
};
|
|
1319
|
-
};
|
|
1320
|
-
}, { 11: 11, 12: 12, 13: 13, 14: 14, 15: 15, 18: 18, 19: 19, 21: 21, 23: 23, 24: 24, 30: 30, 33: 33, 37: 37, 38: 38, 39: 39 }], 32: [function(l, v, O) {
|
|
1321
|
-
var l = l(33), a = ["double", "float", "int32", "uint32", "sint32", "fixed32", "sfixed32", "int64", "uint64", "sint64", "fixed64", "sfixed64", "bool", "string", "bytes"];
|
|
1322
|
-
function n(i, e) {
|
|
1323
|
-
var t = 0, s = /* @__PURE__ */ Object.create(null);
|
|
1324
|
-
for (e |= 0; t < i.length; ) s[a[t + e]] = i[t++];
|
|
1325
|
-
return s;
|
|
1326
|
-
}
|
|
1327
|
-
O.basic = n([1, 5, 0, 0, 0, 5, 5, 0, 0, 0, 1, 1, 0, 2, 2]), O.defaults = n([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, !1, "", l.emptyArray, null]), O.long = n([0, 0, 0, 1, 1], 7), O.mapKey = n([0, 0, 0, 5, 5, 0, 0, 0, 1, 1, 0, 2], 2), O.packed = n([1, 5, 0, 0, 0, 5, 5, 0, 0, 0, 1, 1, 0]);
|
|
1328
|
-
}, { 33: 33 }], 33: [function(f, v, O) {
|
|
1329
|
-
var l, a, n = v.exports = f(35), i = f(27), e = (n.codegen = f(3), n.fetch = f(5), n.path = f(8), n.patterns = f(36), n.patterns.reservedRe), t = n.patterns.unsafePropertyRe, s = (n.fs = n.inquire("fs"), n.toArray = function(o) {
|
|
1330
|
-
if (o) {
|
|
1331
|
-
for (var c = Object.keys(o), u = Array(c.length), d = 0; d < c.length; ) u[d] = o[c[d++]];
|
|
1332
|
-
return u;
|
|
1333
|
-
}
|
|
1334
|
-
return [];
|
|
1335
|
-
}, n.toObject = function(o) {
|
|
1336
|
-
for (var c = {}, u = 0; u < o.length; ) {
|
|
1337
|
-
var d = o[u++], p = o[u++];
|
|
1338
|
-
p !== b && (c[d] = p);
|
|
1339
|
-
}
|
|
1340
|
-
return c;
|
|
1341
|
-
}, n.isReserved = function(o) {
|
|
1342
|
-
return e.test(o);
|
|
1343
|
-
}, n.safeProp = function(o) {
|
|
1344
|
-
return !/^[$\w_]+$/.test(o) || e.test(o) ? "[" + JSON.stringify(o) + "]" : "." + o;
|
|
1345
|
-
}, n.ucFirst = function(o) {
|
|
1346
|
-
return (o[0] || "").toUpperCase() + o.substring(1);
|
|
1347
|
-
}, /_([a-z])/g), r = (n.camelCase = function(o) {
|
|
1348
|
-
return o.substring(0, 1) + o.substring(1).replace(s, function(c, u) {
|
|
1349
|
-
return u.toUpperCase();
|
|
1350
|
-
});
|
|
1351
|
-
}, n.compareFieldsById = function(o, c) {
|
|
1352
|
-
return o.id - c.id;
|
|
1353
|
-
}, n.decorateType = function(o, c) {
|
|
1354
|
-
return o.$type ? (c && o.$type.name !== c && (n.decorateRoot.remove(o.$type), o.$type.name = c, n.decorateRoot.add(o.$type)), o.$type) : (c = new (l = l || f(31))(c || o.name), n.decorateRoot.add(c), c.ctor = o, Object.defineProperty(o, "$type", { value: c, enumerable: !1 }), Object.defineProperty(o.prototype, "$type", { value: c, enumerable: !1 }), c);
|
|
1355
|
-
}, 0);
|
|
1356
|
-
n.decorateEnum = function(o) {
|
|
1357
|
-
var c;
|
|
1358
|
-
return o.$type || (c = new (a = a || f(14))("Enum" + r++, o), n.decorateRoot.add(c), Object.defineProperty(o, "$type", { value: c, enumerable: !1 }), c);
|
|
1359
|
-
}, n.setProperty = function(o, c, u, d) {
|
|
1360
|
-
if (typeof o != "object") throw TypeError("dst must be an object");
|
|
1361
|
-
if (c) return (function p(y, k, h) {
|
|
1362
|
-
var E = k.shift();
|
|
1363
|
-
if (!t.test(E)) if (0 < k.length) y[E] = p(y[E] || {}, k, h);
|
|
1364
|
-
else {
|
|
1365
|
-
if ((k = y[E]) && d) return y;
|
|
1366
|
-
k && (h = [].concat(k).concat(h)), y[E] = h;
|
|
1367
|
-
}
|
|
1368
|
-
return y;
|
|
1369
|
-
})(o, c = c.split("."), u);
|
|
1370
|
-
throw TypeError("path must be specified");
|
|
1371
|
-
}, Object.defineProperty(n, "decorateRoot", { get: function() {
|
|
1372
|
-
return i.decorated || (i.decorated = new (f(26))());
|
|
1373
|
-
} });
|
|
1374
|
-
}, { 14: 14, 26: 26, 27: 27, 3: 3, 31: 31, 35: 35, 36: 36, 5: 5, 8: 8 }], 34: [function(f, v, O) {
|
|
1375
|
-
v.exports = a;
|
|
1376
|
-
var l = f(35);
|
|
1377
|
-
function a(e, t) {
|
|
1378
|
-
this.lo = e >>> 0, this.hi = t >>> 0;
|
|
1379
|
-
}
|
|
1380
|
-
var n = a.zero = new a(0, 0), i = (n.toNumber = function() {
|
|
1381
|
-
return 0;
|
|
1382
|
-
}, n.zzEncode = n.zzDecode = function() {
|
|
1383
|
-
return this;
|
|
1384
|
-
}, n.length = function() {
|
|
1385
|
-
return 1;
|
|
1386
|
-
}, a.zeroHash = "\0\0\0\0\0\0\0\0", a.fromNumber = function(e) {
|
|
1387
|
-
var t, s;
|
|
1388
|
-
return e === 0 ? n : (s = (e = (t = e < 0) ? -e : e) >>> 0, e = (e - s) / 4294967296 >>> 0, t && (e = ~e >>> 0, s = ~s >>> 0, 4294967295 < ++s && (s = 0, 4294967295 < ++e && (e = 0))), new a(s, e));
|
|
1389
|
-
}, a.from = function(e) {
|
|
1390
|
-
if (typeof e == "number") return a.fromNumber(e);
|
|
1391
|
-
if (l.isString(e)) {
|
|
1392
|
-
if (!l.Long) return a.fromNumber(parseInt(e, 10));
|
|
1393
|
-
e = l.Long.fromString(e);
|
|
1394
|
-
}
|
|
1395
|
-
return e.low || e.high ? new a(e.low >>> 0, e.high >>> 0) : n;
|
|
1396
|
-
}, a.prototype.toNumber = function(e) {
|
|
1397
|
-
var t;
|
|
1398
|
-
return !e && this.hi >>> 31 ? (e = 1 + ~this.lo >>> 0, t = ~this.hi >>> 0, -(e + 4294967296 * (t = e ? t : t + 1 >>> 0))) : this.lo + 4294967296 * this.hi;
|
|
1399
|
-
}, a.prototype.toLong = function(e) {
|
|
1400
|
-
return l.Long ? new l.Long(0 | this.lo, 0 | this.hi, !!e) : { low: 0 | this.lo, high: 0 | this.hi, unsigned: !!e };
|
|
1401
|
-
}, String.prototype.charCodeAt);
|
|
1402
|
-
a.fromHash = function(e) {
|
|
1403
|
-
return e === "\0\0\0\0\0\0\0\0" ? n : new a((i.call(e, 0) | i.call(e, 1) << 8 | i.call(e, 2) << 16 | i.call(e, 3) << 24) >>> 0, (i.call(e, 4) | i.call(e, 5) << 8 | i.call(e, 6) << 16 | i.call(e, 7) << 24) >>> 0);
|
|
1404
|
-
}, a.prototype.toHash = function() {
|
|
1405
|
-
return String.fromCharCode(255 & this.lo, this.lo >>> 8 & 255, this.lo >>> 16 & 255, this.lo >>> 24, 255 & this.hi, this.hi >>> 8 & 255, this.hi >>> 16 & 255, this.hi >>> 24);
|
|
1406
|
-
}, a.prototype.zzEncode = function() {
|
|
1407
|
-
var e = this.hi >> 31;
|
|
1408
|
-
return this.hi = ((this.hi << 1 | this.lo >>> 31) ^ e) >>> 0, this.lo = (this.lo << 1 ^ e) >>> 0, this;
|
|
1409
|
-
}, a.prototype.zzDecode = function() {
|
|
1410
|
-
var e = -(1 & this.lo);
|
|
1411
|
-
return this.lo = ((this.lo >>> 1 | this.hi << 31) ^ e) >>> 0, this.hi = (this.hi >>> 1 ^ e) >>> 0, this;
|
|
1412
|
-
}, a.prototype.length = function() {
|
|
1413
|
-
var e = this.lo, t = (this.lo >>> 28 | this.hi << 4) >>> 0, s = this.hi >>> 24;
|
|
1414
|
-
return s == 0 ? t == 0 ? e < 16384 ? e < 128 ? 1 : 2 : e < 2097152 ? 3 : 4 : t < 16384 ? t < 128 ? 5 : 6 : t < 2097152 ? 7 : 8 : s < 128 ? 9 : 10;
|
|
1415
|
-
};
|
|
1416
|
-
}, { 35: 35 }], 35: [function(f, v, O) {
|
|
1417
|
-
var l = O;
|
|
1418
|
-
function a(i, e, t) {
|
|
1419
|
-
for (var s = Object.keys(e), r = 0; r < s.length; ++r) i[s[r]] !== b && t || s[r] !== "__proto__" && (i[s[r]] = e[s[r]]);
|
|
1420
|
-
return i;
|
|
1421
|
-
}
|
|
1422
|
-
function n(i) {
|
|
1423
|
-
function e(t, s) {
|
|
1424
|
-
if (!(this instanceof e)) return new e(t, s);
|
|
1425
|
-
Object.defineProperty(this, "message", { get: function() {
|
|
1426
|
-
return t;
|
|
1427
|
-
} }), Error.captureStackTrace ? Error.captureStackTrace(this, e) : Object.defineProperty(this, "stack", { value: Error().stack || "" }), s && a(this, s);
|
|
1428
|
-
}
|
|
1429
|
-
return e.prototype = Object.create(Error.prototype, { constructor: { value: e, writable: !0, enumerable: !1, configurable: !0 }, name: { get: function() {
|
|
1430
|
-
return i;
|
|
1431
|
-
}, set: b, enumerable: !1, configurable: !0 }, toString: { value: function() {
|
|
1432
|
-
return this.name + ": " + this.message;
|
|
1433
|
-
}, writable: !0, enumerable: !1, configurable: !0 } }), e;
|
|
1434
|
-
}
|
|
1435
|
-
l.asPromise = f(1), l.base64 = f(2), l.EventEmitter = f(4), l.float = f(6), l.inquire = f(7), l.utf8 = f(10), l.pool = f(9), l.LongBits = f(34), l.isNode = !!(typeof global != "undefined" && global && global.process && global.process.versions && global.process.versions.node), l.global = l.isNode && global || typeof window != "undefined" && window || typeof self != "undefined" && self || this, l.emptyArray = Object.freeze ? Object.freeze([]) : [], l.emptyObject = Object.freeze ? Object.freeze({}) : {}, l.isInteger = Number.isInteger || function(i) {
|
|
1436
|
-
return typeof i == "number" && isFinite(i) && Math.floor(i) === i;
|
|
1437
|
-
}, l.isString = function(i) {
|
|
1438
|
-
return typeof i == "string" || i instanceof String;
|
|
1439
|
-
}, l.isObject = function(i) {
|
|
1440
|
-
return i && typeof i == "object";
|
|
1441
|
-
}, l.isset = l.isSet = function(i, e) {
|
|
1442
|
-
var t = i[e];
|
|
1443
|
-
return t != null && i.hasOwnProperty(e) && (typeof t != "object" || 0 < (Array.isArray(t) ? t : Object.keys(t)).length);
|
|
1444
|
-
}, l.Buffer = null, l.S = null, l.L = null, l.newBuffer = function(i) {
|
|
1445
|
-
return typeof i == "number" ? l.Buffer ? l.L(i) : new l.Array(i) : l.Buffer ? l.S(i) : typeof Uint8Array == "undefined" ? i : new Uint8Array(i);
|
|
1446
|
-
}, l.Array = typeof Uint8Array != "undefined" ? Uint8Array : Array, l.Long = l.global.dcodeIO && l.global.dcodeIO.Long || l.global.Long || l.inquire("long"), l.key2Re = /^true|false|0|1$/, l.key32Re = /^-?(?:0|[1-9][0-9]*)$/, l.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/, l.longToHash = function(i) {
|
|
1447
|
-
return i ? l.LongBits.from(i).toHash() : l.LongBits.zeroHash;
|
|
1448
|
-
}, l.longFromHash = function(i, e) {
|
|
1449
|
-
return i = l.LongBits.fromHash(i), l.Long ? l.Long.fromBits(i.lo, i.hi, e) : i.toNumber(!!e);
|
|
1450
|
-
}, l.merge = a, l.recursionLimit = 100, l.makeProp = function(i, e) {
|
|
1451
|
-
Object.defineProperty(i, e, { enumerable: !0, configurable: !0, writable: !0 });
|
|
1452
|
-
}, l.lcFirst = function(i) {
|
|
1453
|
-
return (i[0] || "").toLowerCase() + i.substring(1);
|
|
1454
|
-
}, l.newError = n, l.ProtocolError = n("ProtocolError"), l.oneOfGetter = function(i) {
|
|
1455
|
-
for (var e = {}, t = 0; t < i.length; ++t) e[i[t]] = 1;
|
|
1456
|
-
return function() {
|
|
1457
|
-
for (var s = Object.keys(this), r = s.length - 1; -1 < r; --r) if (e[s[r]] === 1 && this[s[r]] !== b && this[s[r]] !== null) return s[r];
|
|
1458
|
-
};
|
|
1459
|
-
}, l.oneOfSetter = function(i) {
|
|
1460
|
-
return function(e) {
|
|
1461
|
-
for (var t = 0; t < i.length; ++t) i[t] !== e && delete this[i[t]];
|
|
1462
|
-
};
|
|
1463
|
-
}, l.toJSONOptions = { longs: String, enums: String, bytes: String, json: !0 }, l.c = function() {
|
|
1464
|
-
var i = l.Buffer;
|
|
1465
|
-
i ? (l.S = i.from !== Uint8Array.from && i.from || function(e, t) {
|
|
1466
|
-
return new i(e, t);
|
|
1467
|
-
}, l.L = i.allocUnsafe || function(e) {
|
|
1468
|
-
return new i(e);
|
|
1469
|
-
}) : l.S = l.L = null;
|
|
1470
|
-
};
|
|
1471
|
-
}, { 1: 1, 10: 10, 2: 2, 34: 34, 4: 4, 6: 6, 7: 7, 9: 9 }], 36: [function(f, v, O) {
|
|
1472
|
-
O.numberRe = /^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/, O.typeRefRe = /^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/, O.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)$/, O.unsafePropertyRe = /^(?:__proto__|prototype|constructor)$/;
|
|
1473
|
-
}, {}], 37: [function(f, v, O) {
|
|
1474
|
-
v.exports = function(e) {
|
|
1475
|
-
var t = 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"), s = e.oneofsArray, r = {};
|
|
1476
|
-
s.length && t("var p={}");
|
|
1477
|
-
for (var o = 0; o < e.fieldsArray.length; ++o) {
|
|
1478
|
-
var c, u = e.i[o].resolve(), d = "m" + a.safeProp(u.name);
|
|
1479
|
-
u.optional && t("if(%s!=null&&m.hasOwnProperty(%j)){", d, u.name), u.map ? (t("if(!util.isObject(%s))", d)("return%j", n(u, "object"))("var k=Object.keys(%s)", d)("for(var i=0;i<k.length;++i){"), (function(p, y, k) {
|
|
1480
|
-
switch (y.keyType) {
|
|
1481
|
-
case "int32":
|
|
1482
|
-
case "uint32":
|
|
1483
|
-
case "sint32":
|
|
1484
|
-
case "fixed32":
|
|
1485
|
-
case "sfixed32":
|
|
1486
|
-
p("if(!util.key32Re.test(%s))", k)("return%j", n(y, "integer key"));
|
|
1487
|
-
break;
|
|
1488
|
-
case "int64":
|
|
1489
|
-
case "uint64":
|
|
1490
|
-
case "sint64":
|
|
1491
|
-
case "fixed64":
|
|
1492
|
-
case "sfixed64":
|
|
1493
|
-
p("if(!util.key64Re.test(%s))", k)("return%j", n(y, "integer|Long key"));
|
|
1494
|
-
break;
|
|
1495
|
-
case "bool":
|
|
1496
|
-
p("if(!util.key2Re.test(%s))", k)("return%j", n(y, "boolean key"));
|
|
1497
|
-
}
|
|
1498
|
-
})(t, u, "k[i]"), i(t, u, o, d + "[k[i]]")("}")) : u.repeated ? (t("if(!Array.isArray(%s))", d)("return%j", n(u, "array"))("for(var i=0;i<%s.length;++i){", d), i(t, u, o, d + "[i]")("}")) : (u.partOf && (c = a.safeProp(u.partOf.name), r[u.partOf.name] === 1 && t("if(p%s===1)", c)("return%j", u.partOf.name + ": multiple values"), r[u.partOf.name] = 1, t("p%s=1", c)), i(t, u, o, d)), u.optional && t("}");
|
|
1499
|
-
}
|
|
1500
|
-
return t("return null");
|
|
1501
|
-
};
|
|
1502
|
-
var l = f(14), a = f(33);
|
|
1503
|
-
function n(e, t) {
|
|
1504
|
-
return e.name + ": " + t + (e.repeated && t !== "array" ? "[]" : e.map && t !== "object" ? "{k:" + e.keyType + "}" : "") + " expected";
|
|
1505
|
-
}
|
|
1506
|
-
function i(e, t, s, r) {
|
|
1507
|
-
if (t.resolvedType) if (t.resolvedType instanceof l) {
|
|
1508
|
-
e("switch(%s){", r)("default:")("return%j", n(t, "enum value"));
|
|
1509
|
-
for (var o = Object.keys(t.resolvedType.values), c = 0; c < o.length; ++c) e("case %i:", t.resolvedType.values[o[c]]);
|
|
1510
|
-
e("break")("}");
|
|
1511
|
-
} else e("{")("var e=types[%i].verify(%s,n+1);", s, r)("if(e)")("return%j+e", t.name + ".")("}");
|
|
1512
|
-
else switch (t.type) {
|
|
1513
|
-
case "int32":
|
|
1514
|
-
case "uint32":
|
|
1515
|
-
case "sint32":
|
|
1516
|
-
case "fixed32":
|
|
1517
|
-
case "sfixed32":
|
|
1518
|
-
e("if(!util.isInteger(%s))", r)("return%j", n(t, "integer"));
|
|
1519
|
-
break;
|
|
1520
|
-
case "int64":
|
|
1521
|
-
case "uint64":
|
|
1522
|
-
case "sint64":
|
|
1523
|
-
case "fixed64":
|
|
1524
|
-
case "sfixed64":
|
|
1525
|
-
e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))", r, r, r, r)("return%j", n(t, "integer|Long"));
|
|
1526
|
-
break;
|
|
1527
|
-
case "float":
|
|
1528
|
-
case "double":
|
|
1529
|
-
e('if(typeof %s!=="number")', r)("return%j", n(t, "number"));
|
|
1530
|
-
break;
|
|
1531
|
-
case "bool":
|
|
1532
|
-
e('if(typeof %s!=="boolean")', r)("return%j", n(t, "boolean"));
|
|
1533
|
-
break;
|
|
1534
|
-
case "string":
|
|
1535
|
-
e("if(!util.isString(%s))", r)("return%j", n(t, "string"));
|
|
1536
|
-
break;
|
|
1537
|
-
case "bytes":
|
|
1538
|
-
e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))', r, r, r)("return%j", n(t, "buffer"));
|
|
1539
|
-
}
|
|
1540
|
-
return e;
|
|
1541
|
-
}
|
|
1542
|
-
}, { 14: 14, 33: 33 }], 38: [function(f, v, O) {
|
|
1543
|
-
var l = f(19);
|
|
1544
|
-
O[".google.protobuf.Any"] = { fromObject: function(a, n) {
|
|
1545
|
-
if (a && a["@type"]) {
|
|
1546
|
-
var i, e = a["@type"].substring(1 + a["@type"].lastIndexOf("/")), e = this.lookup(e);
|
|
1547
|
-
if (e) return ~(i = (a["@type"][0] || "") == "." ? a["@type"].slice(1) : a["@type"]).indexOf("/") || (i = "/" + i), this.create({ type_url: i, value: e.encode(e.fromObject(a, n === b ? 1 : n + 1)).finish() });
|
|
1548
|
-
}
|
|
1549
|
-
return this.fromObject(a, n);
|
|
1550
|
-
}, toObject: function(a, n) {
|
|
1551
|
-
var i, e, t = "", s = "";
|
|
1552
|
-
return n && n.json && a.type_url && a.value && (s = a.type_url.substring(1 + a.type_url.lastIndexOf("/")), t = a.type_url.substring(0, 1 + a.type_url.lastIndexOf("/")), (i = this.lookup(s)) && (a = i.decode(a.value))), !(a instanceof this.ctor) && a instanceof l ? (i = a.$type.toObject(a, n), e = a.$type.fullName[0] === "." ? a.$type.fullName.slice(1) : a.$type.fullName, i["@type"] = s = (t = t === "" ? "type.googleapis.com/" : t) + e, i) : this.toObject(a, n);
|
|
1553
|
-
} };
|
|
1554
|
-
}, { 19: 19 }], 39: [function(f, v, O) {
|
|
1555
|
-
v.exports = o;
|
|
1556
|
-
var l, a = f(35), n = a.LongBits, i = a.base64, e = a.utf8;
|
|
1557
|
-
function t(h, E, m) {
|
|
1558
|
-
this.fn = h, this.len = E, this.next = b, this.val = m;
|
|
1559
|
-
}
|
|
1560
|
-
function s() {
|
|
1561
|
-
}
|
|
1562
|
-
function r(h) {
|
|
1563
|
-
this.head = h.head, this.tail = h.tail, this.len = h.len, this.next = h.states;
|
|
1564
|
-
}
|
|
1565
|
-
function o() {
|
|
1566
|
-
this.len = 0, this.head = new t(s, 0, 0), this.tail = this.head, this.states = null;
|
|
1567
|
-
}
|
|
1568
|
-
function c() {
|
|
1569
|
-
return a.Buffer ? function() {
|
|
1570
|
-
return (o.create = function() {
|
|
1571
|
-
return new l();
|
|
1572
|
-
})();
|
|
1573
|
-
} : function() {
|
|
1574
|
-
return new o();
|
|
1575
|
-
};
|
|
1576
|
-
}
|
|
1577
|
-
function u(h, E, m) {
|
|
1578
|
-
E[m] = 255 & h;
|
|
1579
|
-
}
|
|
1580
|
-
function d(h, E) {
|
|
1581
|
-
this.len = h, this.next = b, this.val = E;
|
|
1582
|
-
}
|
|
1583
|
-
function p(h, E, m) {
|
|
1584
|
-
for (; h.hi; ) E[m++] = 127 & h.lo | 128, h.lo = (h.lo >>> 7 | h.hi << 25) >>> 0, h.hi >>>= 7;
|
|
1585
|
-
for (; 127 < h.lo; ) E[m++] = 127 & h.lo | 128, h.lo = h.lo >>> 7;
|
|
1586
|
-
E[m++] = h.lo;
|
|
1587
|
-
}
|
|
1588
|
-
function y(h, E, m) {
|
|
1589
|
-
E[m] = 255 & h, E[m + 1] = h >>> 8 & 255, E[m + 2] = h >>> 16 & 255, E[m + 3] = h >>> 24;
|
|
1590
|
-
}
|
|
1591
|
-
o.create = c(), o.alloc = function(h) {
|
|
1592
|
-
return new a.Array(h);
|
|
1593
|
-
}, a.Array !== Array && (o.alloc = a.pool(o.alloc, a.Array.prototype.subarray)), o.prototype.N = function(h, E, m) {
|
|
1594
|
-
return this.tail = this.tail.next = new t(h, E, m), this.len += E, this;
|
|
1595
|
-
}, (d.prototype = Object.create(t.prototype)).fn = function(h, E, m) {
|
|
1596
|
-
for (; 127 < h; ) E[m++] = 127 & h | 128, h >>>= 7;
|
|
1597
|
-
E[m] = h;
|
|
1598
|
-
}, o.prototype.uint32 = function(h) {
|
|
1599
|
-
return this.len += (this.tail = this.tail.next = new d((h >>>= 0) < 128 ? 1 : h < 16384 ? 2 : h < 2097152 ? 3 : h < 268435456 ? 4 : 5, h)).len, this;
|
|
1600
|
-
}, o.prototype.int32 = function(h) {
|
|
1601
|
-
return h < 0 ? this.N(p, 10, n.fromNumber(h)) : this.uint32(h);
|
|
1602
|
-
}, o.prototype.sint32 = function(h) {
|
|
1603
|
-
return this.uint32((h << 1 ^ h >> 31) >>> 0);
|
|
1604
|
-
}, o.prototype.int64 = o.prototype.uint64 = function(h) {
|
|
1605
|
-
return h = n.from(h), this.N(p, h.length(), h);
|
|
1606
|
-
}, o.prototype.sint64 = function(h) {
|
|
1607
|
-
return h = n.from(h).zzEncode(), this.N(p, h.length(), h);
|
|
1608
|
-
}, o.prototype.bool = function(h) {
|
|
1609
|
-
return this.N(u, 1, h ? 1 : 0);
|
|
1610
|
-
}, o.prototype.sfixed32 = o.prototype.fixed32 = function(h) {
|
|
1611
|
-
return this.N(y, 4, h >>> 0);
|
|
1612
|
-
}, o.prototype.sfixed64 = o.prototype.fixed64 = function(h) {
|
|
1613
|
-
return h = n.from(h), this.N(y, 4, h.lo).N(y, 4, h.hi);
|
|
1614
|
-
}, o.prototype.float = function(h) {
|
|
1615
|
-
return this.N(a.float.writeFloatLE, 4, h);
|
|
1616
|
-
}, o.prototype.double = function(h) {
|
|
1617
|
-
return this.N(a.float.writeDoubleLE, 8, h);
|
|
1618
|
-
};
|
|
1619
|
-
var k = a.Array.prototype.set ? function(h, E, m) {
|
|
1620
|
-
E.set(h, m);
|
|
1621
|
-
} : function(h, E, m) {
|
|
1622
|
-
for (var w = 0; w < h.length; ++w) E[m + w] = h[w];
|
|
1623
|
-
};
|
|
1624
|
-
o.prototype.bytes = function(h) {
|
|
1625
|
-
var E, m = h.length >>> 0;
|
|
1626
|
-
return m ? (a.isString(h) && (E = o.alloc(m = i.length(h)), i.decode(h, E, 0), h = E), this.uint32(m).N(k, m, h)) : this.N(u, 1, 0);
|
|
1627
|
-
}, o.prototype.string = function(h) {
|
|
1628
|
-
var E = e.length(h);
|
|
1629
|
-
return E ? this.uint32(E).N(e.write, E, h) : this.N(u, 1, 0);
|
|
1630
|
-
}, o.prototype.fork = function() {
|
|
1631
|
-
return this.states = new r(this), this.head = this.tail = new t(s, 0, 0), this.len = 0, this;
|
|
1632
|
-
}, o.prototype.reset = function() {
|
|
1633
|
-
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 t(s, 0, 0), this.len = 0), this;
|
|
1634
|
-
}, o.prototype.ldelim = function() {
|
|
1635
|
-
var h = this.head, E = this.tail, m = this.len;
|
|
1636
|
-
return this.reset().uint32(m), m && (this.tail.next = h.next, this.tail = E, this.len += m), this;
|
|
1637
|
-
}, o.prototype.finish = function() {
|
|
1638
|
-
for (var h = this.head.next, E = this.constructor.alloc(this.len), m = 0; h; ) h.fn(h.val, E, m), m += h.len, h = h.next;
|
|
1639
|
-
return E;
|
|
1640
|
-
}, o.c = function(h) {
|
|
1641
|
-
l = h, o.create = c(), l.c();
|
|
1642
|
-
};
|
|
1643
|
-
}, { 35: 35 }], 40: [function(f, v, O) {
|
|
1644
|
-
v.exports = n;
|
|
1645
|
-
var l = f(39), a = ((n.prototype = Object.create(l.prototype)).constructor = n, f(35));
|
|
1646
|
-
function n() {
|
|
1647
|
-
l.call(this);
|
|
1648
|
-
}
|
|
1649
|
-
function i(e, t, s) {
|
|
1650
|
-
e.length < 40 ? a.utf8.write(e, t, s) : t.utf8Write ? t.utf8Write(e, s) : t.write(e, s);
|
|
1651
|
-
}
|
|
1652
|
-
n.c = function() {
|
|
1653
|
-
n.alloc = a.L, n.writeBytesBuffer = a.Buffer && a.Buffer.prototype instanceof Uint8Array && a.Buffer.prototype.set.name === "set" ? function(e, t, s) {
|
|
1654
|
-
t.set(e, s);
|
|
1655
|
-
} : function(e, t, s) {
|
|
1656
|
-
if (e.copy) e.copy(t, s, 0, e.length);
|
|
1657
|
-
else for (var r = 0; r < e.length; ) t[s++] = e[r++];
|
|
1658
|
-
};
|
|
1659
|
-
}, n.prototype.bytes = function(e) {
|
|
1660
|
-
var t = (e = a.isString(e) ? a.S(e, "base64") : e).length >>> 0;
|
|
1661
|
-
return this.uint32(t), t && this.N(n.writeBytesBuffer, t, e), this;
|
|
1662
|
-
}, n.prototype.string = function(e) {
|
|
1663
|
-
var t = a.Buffer.byteLength(e);
|
|
1664
|
-
return this.uint32(t), t && this.N(i, t, e), this;
|
|
1665
|
-
}, n.c();
|
|
1666
|
-
}, { 35: 35, 39: 39 }] }, j = {}, V = (function f(v) {
|
|
1667
|
-
var O = j[v];
|
|
1668
|
-
return O || g[v][0].call(O = j[v] = { exports: {} }, f, O, O.exports), O.exports;
|
|
1669
|
-
})([16][0]);
|
|
1670
|
-
})();
|
|
1671
|
-
class te {
|
|
1672
|
-
constructor() {
|
|
1673
|
-
this._typeStore = /* @__PURE__ */ new Map();
|
|
1674
|
-
}
|
|
1675
|
-
getSchemaType(g) {
|
|
1676
|
-
D.requireArgument(g, "schema");
|
|
1677
|
-
const j = F.getSchemaId(g);
|
|
1678
|
-
let f = this._typeStore.get(j);
|
|
1679
|
-
return f || (f = V.Root.fromJSON(g.pbjsSchema).lookupType(j), this._typeStore.set(j, f)), f;
|
|
1680
|
-
}
|
|
1681
|
-
validate(g, j) {
|
|
1682
|
-
D.requireArgument(g, "schema"), D.requireArgument(j, "data");
|
|
1683
|
-
const f = this.getSchemaType(g), v = f.verify(j);
|
|
1684
|
-
if (v)
|
|
1685
|
-
throw new Error(`Data is invalid for ${f.fullName}: ${v}`);
|
|
1686
|
-
return f;
|
|
1687
|
-
}
|
|
1688
|
-
encode(g, j) {
|
|
1689
|
-
const f = this.validate(g, j), v = f.fromObject(j);
|
|
1690
|
-
return f.encode(v).finish();
|
|
1691
|
-
}
|
|
1692
|
-
encodePayload(g) {
|
|
1693
|
-
if (g != null && g.schema && g.payload)
|
|
1694
|
-
return {
|
|
1695
|
-
schemaName: F.getSchemaId(g.schema),
|
|
1696
|
-
payload: this.encode(g.schema, g.payload)
|
|
1697
|
-
};
|
|
1698
|
-
}
|
|
1699
|
-
getLogMessage(g, j, f) {
|
|
1700
|
-
return {
|
|
1701
|
-
timestamp: f.timestamp,
|
|
1702
|
-
data: this.encode(g, j),
|
|
1703
|
-
age: f.age,
|
|
1704
|
-
rootId: f.rootId,
|
|
1705
|
-
seq: f.sequence,
|
|
1706
|
-
sseq: f.schemaSequence,
|
|
1707
|
-
loggerName: f.loggerName,
|
|
1708
|
-
pagePayload: this.encodePayload(f.pagePayload),
|
|
1709
|
-
loggerAppName: f.loggerAppName,
|
|
1710
|
-
connectionType: f.connectionType,
|
|
1711
|
-
appPayload: this.encodePayload(f.appPayload),
|
|
1712
|
-
csId: f.clientSessionId,
|
|
1713
|
-
recCsId: f.receiverClientSessionId,
|
|
1714
|
-
recRootId: f.receiverRootId,
|
|
1715
|
-
tenantClass: f.tenantClass
|
|
1716
|
-
};
|
|
1717
|
-
}
|
|
1718
|
-
processRawLogMessage(g, j) {
|
|
1719
|
-
const f = j.data ? Object.assign({}, j.data) : {};
|
|
1720
|
-
return F.isInternal(g) && f.userPayload && (f.userPayload = this.encodePayload(f.userPayload)), Object.assign({}, j, {
|
|
1721
|
-
data: this.encode(g, f),
|
|
1722
|
-
pagePayload: this.encodePayload(j.pagePayload),
|
|
1723
|
-
appPayload: this.encodePayload(j.appPayload)
|
|
1724
|
-
});
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
const M = new te(), re = V.Root.fromJSON(Y.pbjsSchema), K = re.lookupType("CoreEnvelope");
|
|
1728
|
-
function se(b) {
|
|
1729
|
-
const g = Object.assign({}, b, {
|
|
1730
|
-
messages: /* @__PURE__ */ new Map()
|
|
1731
|
-
});
|
|
1732
|
-
return b.messages.forEach(function(j, f) {
|
|
1733
|
-
g.messages.set(f, j.map((v) => M.processRawLogMessage(f, v)));
|
|
1734
|
-
}), g;
|
|
1735
|
-
}
|
|
1736
|
-
function J(b) {
|
|
1737
|
-
return q.buildFrom(b);
|
|
1738
|
-
}
|
|
1739
|
-
function z(b) {
|
|
1740
|
-
const g = K.verify(b);
|
|
1741
|
-
if (g)
|
|
1742
|
-
throw new Error(`Invalid CoreEnvelope: ${g}`);
|
|
1743
|
-
return K.encode(b).finish();
|
|
1744
|
-
}
|
|
1745
|
-
function pe(b) {
|
|
1746
|
-
const g = se(b), j = J(g);
|
|
1747
|
-
return z(j);
|
|
1748
|
-
}
|
|
1749
|
-
var B;
|
|
1750
|
-
(function(b) {
|
|
1751
|
-
b[b.fetchBinary = 0] = "fetchBinary", b[b.fetchFile = 1] = "fetchFile", b[b.noUpload = 2] = "noUpload";
|
|
1752
|
-
})(B || (B = {}));
|
|
1753
|
-
const W = "telemetry", oe = 1e4, G = 1e4, ne = 10, ie = 10, X = B.fetchBinary;
|
|
1754
|
-
class fe {
|
|
1755
|
-
constructor(g, j, f, v) {
|
|
1756
|
-
this._messagesLimit = ne, this._metricsLimit = ie, this._formDataKey = W, this._uploadInterval = G, this._messageSize = 0, this.uploadEndpoint = g, this.uploadMode = j == null ? X : j, f && (this._staticAttributes = {
|
|
1757
|
-
appName: f.appName,
|
|
1758
|
-
appVersion: f.appVersion,
|
|
1759
|
-
appExperience: f.appExperience,
|
|
1760
|
-
deviceId: f.deviceId,
|
|
1761
|
-
deviceModel: f.deviceModel,
|
|
1762
|
-
sdkVersion: f.sdkVersion
|
|
1763
|
-
});
|
|
1764
|
-
let O = oe;
|
|
1765
|
-
if (v) {
|
|
1766
|
-
const l = v.maxUniqueSchemas;
|
|
1767
|
-
if (l !== void 0) {
|
|
1768
|
-
if (typeof l != "number" || !(l > 0))
|
|
1769
|
-
throw new Error("options.maxUniqueSchemas, if defined, must be > 0");
|
|
1770
|
-
O = l;
|
|
1771
|
-
}
|
|
1772
|
-
const a = v.messagesLimit;
|
|
1773
|
-
if (a !== void 0) {
|
|
1774
|
-
if (typeof a != "number" || !(a > 0))
|
|
1775
|
-
throw new Error("options.messagesLimit, if defined, must be > 0");
|
|
1776
|
-
this._messagesLimit = a;
|
|
1777
|
-
}
|
|
1778
|
-
const n = v.metricsLimit;
|
|
1779
|
-
if (n !== void 0) {
|
|
1780
|
-
if (typeof n != "number" || !(n > 0))
|
|
1781
|
-
throw new Error("options.metricsLimit, if defined, must be > 0");
|
|
1782
|
-
this._metricsLimit = n;
|
|
1783
|
-
}
|
|
1784
|
-
D.requireArgumentIfDefined(v.formDataKeyName, "options.formDataKeyName", "string") && (this._formDataKey = v.formDataKeyName), D.requireArgumentIfDefined(v.uploadFailedListener, "options.uploadFailedListener", "function") && (this._uploadFailedListener = v.uploadFailedListener), D.requireArgumentIfDefined(v.apiKey, "options.apiKey", "string") && (this._apiKey = v.apiKey);
|
|
1785
|
-
}
|
|
1786
|
-
this._messageBuffers = new Z(O), this._emptySize = this.getByteSize(1), this._restartTimer();
|
|
1787
|
-
}
|
|
1788
|
-
get uploadInterval() {
|
|
1789
|
-
return this._uploadInterval;
|
|
1790
|
-
}
|
|
1791
|
-
set uploadInterval(g) {
|
|
1792
|
-
if (g === void 0 && (g = G), typeof g != "number" || !(g > 0))
|
|
1793
|
-
throw new Error("uploadInterval, if defined, must be > 0");
|
|
1794
|
-
g !== this._uploadInterval && (this._uploadInterval = g, this._restartTimer());
|
|
1795
|
-
}
|
|
1796
|
-
get uploadEndpoint() {
|
|
1797
|
-
return this._uploadEndpoint;
|
|
1798
|
-
}
|
|
1799
|
-
set uploadEndpoint(g) {
|
|
1800
|
-
D.requireArgumentIfDefined(g, "uploadEndpoint", "string"), this._uploadEndpoint = g;
|
|
1801
|
-
}
|
|
1802
|
-
get uploadOptionsCallback() {
|
|
1803
|
-
return this._uploadOptionsCallback;
|
|
1804
|
-
}
|
|
1805
|
-
set uploadOptionsCallback(g) {
|
|
1806
|
-
D.requireArgumentIfDefined(g, "uploadOptionsCallback", "function"), this._uploadOptionsCallback = g;
|
|
1807
|
-
}
|
|
1808
|
-
get uploadMode() {
|
|
1809
|
-
return this._uploadMode;
|
|
1810
|
-
}
|
|
1811
|
-
set uploadMode(g) {
|
|
1812
|
-
if (D.requireArgumentIfDefined(g, "uploadMode", "number"), g === void 0 && (g = X), !(g in B))
|
|
1813
|
-
throw new Error(`Unsupported upload mode: ${g}`);
|
|
1814
|
-
this._uploadMode = g;
|
|
1815
|
-
}
|
|
1816
|
-
getByteSize(g) {
|
|
1817
|
-
return g >= 1 ? this._buildProtoEncodedCoreEnvelope(!1).byteLength : g >= 0.5 ? this._emptySize + this._messageSize + this.metricsCount * 8 : this._emptySize + this._messageSize;
|
|
1818
|
-
}
|
|
1819
|
-
_stopTimer() {
|
|
1820
|
-
this._intervalHandle !== void 0 && (clearInterval(this._intervalHandle), this._intervalHandle = void 0);
|
|
1821
|
-
}
|
|
1822
|
-
_restartTimer() {
|
|
1823
|
-
this._stopTimer(), this._intervalHandle = setInterval(() => {
|
|
1824
|
-
this.hasData && this._upload();
|
|
1825
|
-
}, this._uploadInterval);
|
|
1826
|
-
}
|
|
1827
|
-
collect(g, j, f) {
|
|
1828
|
-
return $(this, null, function* () {
|
|
1829
|
-
F.isInternal(g) && j.userPayload && (j.userPayload = M.encodePayload(j.userPayload));
|
|
1830
|
-
const v = M.getLogMessage(g, j, f);
|
|
1831
|
-
if (!this._messageBuffers.push(g, v))
|
|
1832
|
-
throw new Error(`Buffer is full. Refusing schemaId ${F.getSchemaId(g)}`);
|
|
1833
|
-
if (this._messageSize += D.estimateObjectSize(v), this._shouldUpload())
|
|
1834
|
-
return this._upload();
|
|
1835
|
-
});
|
|
1836
|
-
}
|
|
1837
|
-
_shouldUpload() {
|
|
1838
|
-
return this._immediateUpload && this.hasData || this.messagesCount >= this._messagesLimit || this.metricsCount >= this._metricsLimit;
|
|
1839
|
-
}
|
|
1840
|
-
_upload(g) {
|
|
1841
|
-
return $(this, null, function* () {
|
|
1842
|
-
if (this._restartTimer(), !this._uploadEndpoint || this._uploadMode === B.noUpload)
|
|
1843
|
-
return;
|
|
1844
|
-
const j = this._getContentsOfCoreEnvelope(!0);
|
|
1845
|
-
return this._uploadContents(j, g);
|
|
1846
|
-
});
|
|
1847
|
-
}
|
|
1848
|
-
_uploadContents(g, j) {
|
|
1849
|
-
return $(this, null, function* () {
|
|
1850
|
-
let f = this._getRequestInit(g);
|
|
1851
|
-
const v = {
|
|
1852
|
-
envelopeContents: g
|
|
1853
|
-
};
|
|
1854
|
-
try {
|
|
1855
|
-
if (this._apiKey && (f.headers["x-o11y-api-key"] = this._apiKey), this._uploadOptionsCallback) {
|
|
1856
|
-
const O = this._uploadOptionsCallback() || {};
|
|
1857
|
-
if (O) {
|
|
1858
|
-
if (O.headers && f.headers)
|
|
1859
|
-
if (O.headers instanceof Headers)
|
|
1860
|
-
for (const l in f.headers)
|
|
1861
|
-
Object.prototype.hasOwnProperty.call(f.headers, l) && O.headers.set(l, f.headers[l]);
|
|
1862
|
-
else {
|
|
1863
|
-
if (Array.isArray(O.headers))
|
|
1864
|
-
throw new Error("Headers as array is not supported.");
|
|
1865
|
-
Object.assign(O.headers, f.headers);
|
|
1866
|
-
}
|
|
1867
|
-
O.method = f.method, O.body = f.body, f = O;
|
|
1868
|
-
}
|
|
1869
|
-
}
|
|
1870
|
-
if (v.response = yield fetch(this._uploadEndpoint, f), !v.response.ok)
|
|
1871
|
-
throw new Error("HTTP Not OK");
|
|
1872
|
-
return v;
|
|
1873
|
-
} catch (O) {
|
|
1874
|
-
if (v.error = O, !j && this._uploadFailedListener)
|
|
1875
|
-
try {
|
|
1876
|
-
this._uploadFailedListener(v);
|
|
1877
|
-
} catch (l) {
|
|
1878
|
-
}
|
|
1879
|
-
throw v;
|
|
1880
|
-
}
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
_getRequestInit(g) {
|
|
1884
|
-
const j = J(g), f = z(j);
|
|
1885
|
-
let v;
|
|
1886
|
-
switch (this._uploadMode) {
|
|
1887
|
-
case B.fetchBinary:
|
|
1888
|
-
v = {
|
|
1889
|
-
method: "POST",
|
|
1890
|
-
headers: {
|
|
1891
|
-
"Content-Type": "application/octet-stream"
|
|
1892
|
-
},
|
|
1893
|
-
body: f
|
|
1894
|
-
};
|
|
1895
|
-
break;
|
|
1896
|
-
case void 0:
|
|
1897
|
-
case B.fetchFile:
|
|
1898
|
-
if (typeof FormData != "function")
|
|
1899
|
-
throw new Error("FormData is not a function in the global namespace.");
|
|
1900
|
-
const O = new FormData();
|
|
1901
|
-
O.append(this._formDataKey || W, new Blob([f])), v = {
|
|
1902
|
-
method: "POST",
|
|
1903
|
-
body: O
|
|
1904
|
-
};
|
|
1905
|
-
break;
|
|
1906
|
-
case B.noUpload:
|
|
1907
|
-
default:
|
|
1908
|
-
throw new Error("Invalid uploadMode");
|
|
1909
|
-
}
|
|
1910
|
-
return v;
|
|
1911
|
-
}
|
|
1912
|
-
_checkUploadState() {
|
|
1913
|
-
if (this._uploadEndpoint === void 0)
|
|
1914
|
-
throw new Error("Upload endpoint is unset");
|
|
1915
|
-
if (this._uploadMode === B.noUpload)
|
|
1916
|
-
throw new Error("Upload mode is unset");
|
|
1917
|
-
}
|
|
1918
|
-
upload(g) {
|
|
1919
|
-
return $(this, null, function* () {
|
|
1920
|
-
return this._checkUploadState(), D.requireArgumentIfDefined(g, "contents", "object") ? this._uploadContents(g, !0) : this.hasData ? this._upload(!0) : void 0;
|
|
1921
|
-
});
|
|
1922
|
-
}
|
|
1923
|
-
get hasData() {
|
|
1924
|
-
return this.messagesCount > 0 || this.metricsCount > 0;
|
|
1925
|
-
}
|
|
1926
|
-
get messagesCount() {
|
|
1927
|
-
return this._messageBuffers.totalItemCount;
|
|
1928
|
-
}
|
|
1929
|
-
get metricsCount() {
|
|
1930
|
-
let g = 0;
|
|
1931
|
-
return this._metricsExtractors && (g += this._metricsExtractors.getAllUpCounters().length || 0, g += this._metricsExtractors.getAllValueRecorders().length || 0, g += this._metricsExtractors.getAllBucketHistograms().length || 0), g;
|
|
1932
|
-
}
|
|
1933
|
-
getProtoEncodedCoreEnvelope() {
|
|
1934
|
-
return this._buildProtoEncodedCoreEnvelope(!0);
|
|
1935
|
-
}
|
|
1936
|
-
getContentsOfCoreEnvelope() {
|
|
1937
|
-
return this._getContentsOfCoreEnvelope(!0);
|
|
1938
|
-
}
|
|
1939
|
-
_getContentsOfCoreEnvelope(g) {
|
|
1940
|
-
const j = {
|
|
1941
|
-
staticAttributes: this._staticAttributes,
|
|
1942
|
-
messages: this._messageBuffers.getAllMessages(g)
|
|
1943
|
-
};
|
|
1944
|
-
return this._metricsExtractors && (j.upCounters = q.getUpCounters(this._metricsExtractors.getAllUpCounters(), g), j.valueRecorders = q.getValueRecorders(this._metricsExtractors.getAllValueRecorders(), g), j.bucketHistograms = q.getBucketHistograms(this._metricsExtractors.getAllBucketHistograms(), g)), g && (this._messageSize = 0), j;
|
|
1945
|
-
}
|
|
1946
|
-
_buildProtoEncodedCoreEnvelope(g) {
|
|
1947
|
-
const j = this._getContentsOfCoreEnvelope(g), f = J(j);
|
|
1948
|
-
return z(f);
|
|
1949
|
-
}
|
|
1950
|
-
receiveMetricsExtractors(g) {
|
|
1951
|
-
this._metricsExtractors = g;
|
|
1952
|
-
}
|
|
1953
|
-
}
|
|
1954
|
-
const ae = 3e4;
|
|
1955
|
-
class ce {
|
|
1956
|
-
constructor() {
|
|
1957
|
-
if (typeof __nimbus == "undefined")
|
|
1958
|
-
throw new Error("Nimbus is unavailable");
|
|
1959
|
-
if (!__nimbus.plugins || !__nimbus.plugins.observability)
|
|
1960
|
-
throw new Error("Observability plugin not found in Nimbus plugins");
|
|
1961
|
-
this._observability = __nimbus.plugins.observability, setInterval(() => {
|
|
1962
|
-
this._collectMetrics();
|
|
1963
|
-
}, ae);
|
|
1964
|
-
}
|
|
1965
|
-
collect(g, j, f) {
|
|
1966
|
-
F.isInternal(g) && j.userPayload && (j.userPayload = M.encodePayload(j.userPayload));
|
|
1967
|
-
const v = M.getLogMessage(g, j, f), O = {
|
|
1968
|
-
timestamp: f.timestamp,
|
|
1969
|
-
rootId: f.rootId,
|
|
1970
|
-
sequence: f.sequence,
|
|
1971
|
-
schemaSequence: f.schemaSequence,
|
|
1972
|
-
loggerName: f.loggerName,
|
|
1973
|
-
pagePayload: v.pagePayload,
|
|
1974
|
-
loggerAppName: f.loggerAppName,
|
|
1975
|
-
connectionType: f.connectionType,
|
|
1976
|
-
appPayload: v.appPayload,
|
|
1977
|
-
clientSessionId: f.clientSessionId,
|
|
1978
|
-
age: f.age,
|
|
1979
|
-
receiverClientSessionId: f.receiverClientSessionId,
|
|
1980
|
-
receiverRootId: f.receiverRootId
|
|
1981
|
-
};
|
|
1982
|
-
this._observability.log(F.getSchemaId(g), v.data, O);
|
|
1983
|
-
}
|
|
1984
|
-
receiveMetricsExtractors(g) {
|
|
1985
|
-
this._metricsExtractors = g;
|
|
1986
|
-
}
|
|
1987
|
-
notifyIdleDetected(g) {
|
|
1988
|
-
this._observability.idleDetected(g);
|
|
1989
|
-
}
|
|
1990
|
-
_collectMetrics() {
|
|
1991
|
-
if (this._metricsExtractors) {
|
|
1992
|
-
const g = this._metricsExtractors.getAllUpCounters(), j = this._metricsExtractors.getAllValueRecorders(), f = this._metricsExtractors.getAllBucketHistograms(), v = [], O = [], l = [];
|
|
1993
|
-
for (const a of j) {
|
|
1994
|
-
const n = {
|
|
1995
|
-
name: a.getName(),
|
|
1996
|
-
createdTimestamp: a.getCreatedOn(),
|
|
1997
|
-
lastUpdatedTimestamp: a.getLastUpdatedOn(),
|
|
1998
|
-
values: a.getData(),
|
|
1999
|
-
ownerName: a.getOwnerName(),
|
|
2000
|
-
ownerAppName: a.getOwnerAppName(),
|
|
2001
|
-
tags: this._getMetricTags(a)
|
|
2002
|
-
};
|
|
2003
|
-
v.push(n), a.reset();
|
|
2004
|
-
}
|
|
2005
|
-
for (const a of g) {
|
|
2006
|
-
const n = {
|
|
2007
|
-
name: a.getName(),
|
|
2008
|
-
createdTimestamp: a.getCreatedOn(),
|
|
2009
|
-
lastUpdatedTimestamp: a.getLastUpdatedOn(),
|
|
2010
|
-
value: a.getData(),
|
|
2011
|
-
ownerName: a.getOwnerName(),
|
|
2012
|
-
ownerAppName: a.getOwnerAppName(),
|
|
2013
|
-
tags: this._getMetricTags(a)
|
|
2014
|
-
};
|
|
2015
|
-
O.push(n), a.reset();
|
|
2016
|
-
}
|
|
2017
|
-
for (const a of f) {
|
|
2018
|
-
const n = {
|
|
2019
|
-
name: a.getName(),
|
|
2020
|
-
createdTimestamp: a.getCreatedOn(),
|
|
2021
|
-
lastUpdatedTimestamp: a.getLastUpdatedOn(),
|
|
2022
|
-
values: a.getData(),
|
|
2023
|
-
buckets: a.getBuckets(),
|
|
2024
|
-
ownerName: a.getOwnerName(),
|
|
2025
|
-
ownerAppName: a.getOwnerAppName(),
|
|
2026
|
-
tags: this._getMetricTags(a)
|
|
2027
|
-
};
|
|
2028
|
-
l.push(n), a.reset();
|
|
2029
|
-
}
|
|
2030
|
-
if (v.length > 0 || O.length > 0) {
|
|
2031
|
-
const a = {
|
|
2032
|
-
upCounters: O,
|
|
2033
|
-
valueRecorders: v,
|
|
2034
|
-
bucketHistograms: l
|
|
2035
|
-
};
|
|
2036
|
-
this._observability.logMetrics(a);
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
_getMetricTags(g) {
|
|
2041
|
-
const j = g.getTags();
|
|
2042
|
-
return j ? Object.entries(j).map((f) => ({
|
|
2043
|
-
name: f[0],
|
|
2044
|
-
value: f[1].toString()
|
|
2045
|
-
})) : [];
|
|
2046
|
-
}
|
|
2047
|
-
}
|
|
2048
|
-
export {
|
|
2049
|
-
fe as CoreCollector,
|
|
2050
|
-
ce as HybridCollector,
|
|
2051
|
-
pe as encodeCoreEnvelopeContentsRaw,
|
|
2052
|
-
se as processRawContents
|
|
2053
|
-
};
|