@qwen-code/qwen-code 0.16.2 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/qc-helper/docs/configuration/settings.md +5 -1
- package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/feishu.md +170 -0
- package/chunks/{agent-RY5EB3XR.js → agent-KVXFGIOU.js} +17 -12
- package/chunks/{anthropicContentGenerator-LYI3OHBB.js → anthropicContentGenerator-L4HWAOIV.js} +5 -5
- package/chunks/{askUserQuestion-R3MKD2JT.js → askUserQuestion-DC6OWQIL.js} +5 -3
- package/chunks/chunk-24YKA2DA.js +233 -0
- package/chunks/{chunk-UFC57OYT.js → chunk-33RDTIU6.js} +5 -3
- package/chunks/{chunk-C6WMLUNB.js → chunk-3BJBCG2K.js} +1 -1
- package/chunks/chunk-3HX5LZ6R.js +1798 -0
- package/chunks/{chunk-GQXXO5HJ.js → chunk-4O2TWJK4.js} +25 -5
- package/chunks/{chunk-RDYWTWEM.js → chunk-5IFG2VC4.js} +299 -232
- package/chunks/chunk-6RQTH7UQ.js +115 -0
- package/chunks/{chunk-7HM6OB7M.js → chunk-7EHPK6TK.js} +1336 -5164
- package/chunks/{chunk-PJLEMR7N.js → chunk-7NNBQRV7.js} +6 -6
- package/chunks/{chunk-K5PGHDBN.js → chunk-AKBFRR6J.js} +112 -132
- package/chunks/{chunk-C27V5A2J.js → chunk-EMVEDSVZ.js} +1 -1
- package/chunks/{chunk-TXQI3VZ7.js → chunk-GJHMAWS7.js} +1 -1
- package/chunks/{chunk-K72FHBFO.js → chunk-HAQCNXSG.js} +1 -0
- package/chunks/{chunk-T4VD6OJ4.js → chunk-HCSJIOLR.js} +1 -1
- package/chunks/chunk-J37FGIOA.js +1623 -0
- package/chunks/chunk-J5VCSWPA.js +1467 -0
- package/chunks/{chunk-UE5LPQF7.js → chunk-JI7FDD65.js} +7 -7
- package/chunks/{chunk-4YNZFYJY.js → chunk-MEN6IEKX.js} +2533 -3943
- package/chunks/{chunk-USE2VQ5P.js → chunk-NP3ICQCN.js} +1 -1
- package/chunks/{chunk-66CJCYYZ.js → chunk-QEXSIXLX.js} +1 -1
- package/chunks/{chunk-YMDXEEOW.js → chunk-R2B65CAN.js} +1 -82
- package/chunks/chunk-SZOEIL6S.js +35 -0
- package/chunks/chunk-TI4GXJKO.js +4277 -0
- package/chunks/{chunk-E7E2MFYM.js → chunk-U2K6HDUJ.js} +434 -13
- package/chunks/{chunk-FO7BIVSR.js → chunk-UQRYJQBE.js} +5 -3
- package/chunks/{chunk-VMOWXTRC.js → chunk-V7LMZR76.js} +1 -1
- package/chunks/chunk-W57YDFU5.js +41 -0
- package/chunks/computer-use-2J5ZXEER.js +768 -0
- package/chunks/{contextCommand-DDGVLQSF.js → contextCommand-52NTEMCT.js} +19 -14
- package/chunks/{cron-create-BTEOGHPH.js → cron-create-FXRORK2U.js} +5 -3
- package/chunks/{cron-delete-56CEWELN.js → cron-delete-D24IN6CA.js} +5 -3
- package/chunks/{cron-list-SV6QRZW2.js → cron-list-SMOX26SL.js} +5 -3
- package/chunks/{devtools-WN62SQPV.js → devtools-IXE4UP72.js} +31 -3748
- package/chunks/{dist-MN2PDDPR.js → dist-6RUZ2JD6.js} +13 -1612
- package/chunks/{dist-R2SXPG74.js → dist-AHZNZWRI.js} +5 -4
- package/chunks/dist-GRQVFL3G.js +94147 -0
- package/chunks/{dist-BXDUQ2QY.js → dist-XTTPOFAH.js} +4 -3
- package/chunks/{edit-4LLGNYVZ.js → edit-RLFUTT5F.js} +20 -14
- package/chunks/{enter-worktree-E2R5XAFT.js → enter-worktree-CYRAPQKJ.js} +20 -14
- package/chunks/{exit-worktree-YVBYYYDD.js → exit-worktree-WQZM72QD.js} +20 -14
- package/chunks/{exitPlanMode-WD5IH7NS.js → exitPlanMode-STFEBQZE.js} +20 -14
- package/chunks/{geminiContentGenerator-LM65ADWM.js → geminiContentGenerator-DIV32SKO.js} +4 -3
- package/chunks/{glob-6X6OCEWE.js → glob-N3XO4RVI.js} +20 -14
- package/chunks/{grep-2UUPSSIQ.js → grep-AK5MP7P3.js} +20 -14
- package/chunks/{ls-MYXAM7LJ.js → ls-7FYQHPWF.js} +5 -3
- package/chunks/{lsp-PFGI35JL.js → lsp-DKG34USR.js} +5 -3
- package/chunks/{monitor-VUHPEGUW.js → monitor-IVBWJZEZ.js} +20 -14
- package/chunks/{notebook-edit-P4QVLW6I.js → notebook-edit-PM46AXFS.js} +21 -15
- package/chunks/{openaiContentGenerator-JH4YNZ3H.js → openaiContentGenerator-4QXCH7L2.js} +13 -10
- package/chunks/{qwenContentGenerator-5FE4UYUT.js → qwenContentGenerator-BLXQIIMX.js} +21 -16
- package/chunks/{read-file-J7DH4OKV.js → read-file-IEQAS3EZ.js} +10 -6
- package/chunks/{ripGrep-33DECY4F.js → ripGrep-HQO7IE4C.js} +17 -12
- package/chunks/{send-message-JUFP62VD.js → send-message-ZL7CDM7K.js} +5 -3
- package/chunks/{serve-7FX7MREA.js → serve-CYRAK4UM.js} +63 -1837
- package/chunks/{shell-ZNTQIRK6.js → shell-UZBGNO2Q.js} +17 -12
- package/chunks/{skill-CFCUIY23.js → skill-JVC34QYN.js} +24 -13
- package/chunks/{src-AHV2CWEQ.js → src-FOODLH7B.js} +49 -41
- package/chunks/{syntheticOutput-AKTXC6FR.js → syntheticOutput-U3YJ3GOO.js} +3 -2
- package/chunks/{task-stop-2NYFR2ES.js → task-stop-NPUI3YBA.js} +5 -3
- package/chunks/{todoWrite-WHZ2O2XP.js → todoWrite-Y6F7YEIM.js} +6 -4
- package/chunks/{tool-search-C2EMLFBJ.js → tool-search-P7PRPOW3.js} +13 -8
- package/chunks/{web-fetch-S6MZXPZ5.js → web-fetch-XWEK4TFX.js} +6 -4
- package/chunks/{write-file-EEPVRS4Q.js → write-file-SIIEUON5.js} +21 -15
- package/cli.js +412 -329
- package/package.json +2 -2
- package/chunks/chunk-JVD46YJV.js +0 -434
- package/chunks/undici-4ARNOH74.js +0 -8
|
@@ -0,0 +1,1467 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
init_esbuild_shims
|
|
5
|
+
} from "./chunk-A4BMJM77.js";
|
|
6
|
+
import {
|
|
7
|
+
__commonJS,
|
|
8
|
+
__name
|
|
9
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
10
|
+
|
|
11
|
+
// node_modules/@protobufjs/aspromise/index.js
|
|
12
|
+
var require_aspromise = __commonJS({
|
|
13
|
+
"node_modules/@protobufjs/aspromise/index.js"(exports2, module2) {
|
|
14
|
+
"use strict";
|
|
15
|
+
init_esbuild_shims();
|
|
16
|
+
module2.exports = asPromise;
|
|
17
|
+
function asPromise(fn, ctx) {
|
|
18
|
+
var params = new Array(arguments.length - 1), offset = 0, index = 2, pending = true;
|
|
19
|
+
while (index < arguments.length)
|
|
20
|
+
params[offset++] = arguments[index++];
|
|
21
|
+
return new Promise(/* @__PURE__ */ __name(function executor(resolve, reject) {
|
|
22
|
+
params[offset] = /* @__PURE__ */ __name(function callback(err) {
|
|
23
|
+
if (pending) {
|
|
24
|
+
pending = false;
|
|
25
|
+
if (err)
|
|
26
|
+
reject(err);
|
|
27
|
+
else {
|
|
28
|
+
var params2 = new Array(arguments.length - 1), offset2 = 0;
|
|
29
|
+
while (offset2 < params2.length)
|
|
30
|
+
params2[offset2++] = arguments[offset2];
|
|
31
|
+
resolve.apply(null, params2);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, "callback");
|
|
35
|
+
try {
|
|
36
|
+
fn.apply(ctx || null, params);
|
|
37
|
+
} catch (err) {
|
|
38
|
+
if (pending) {
|
|
39
|
+
pending = false;
|
|
40
|
+
reject(err);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}, "executor"));
|
|
44
|
+
}
|
|
45
|
+
__name(asPromise, "asPromise");
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// node_modules/@protobufjs/base64/index.js
|
|
50
|
+
var require_base64 = __commonJS({
|
|
51
|
+
"node_modules/@protobufjs/base64/index.js"(exports2) {
|
|
52
|
+
"use strict";
|
|
53
|
+
init_esbuild_shims();
|
|
54
|
+
var base64 = exports2;
|
|
55
|
+
base64.length = /* @__PURE__ */ __name(function length(string) {
|
|
56
|
+
var p = string.length;
|
|
57
|
+
if (!p)
|
|
58
|
+
return 0;
|
|
59
|
+
var n = 0;
|
|
60
|
+
while (--p % 4 > 1 && string.charAt(p) === "=")
|
|
61
|
+
++n;
|
|
62
|
+
return Math.ceil(string.length * 3) / 4 - n;
|
|
63
|
+
}, "length");
|
|
64
|
+
var b64 = new Array(64);
|
|
65
|
+
var s64 = new Array(123);
|
|
66
|
+
for (i = 0; i < 64; )
|
|
67
|
+
s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;
|
|
68
|
+
var i;
|
|
69
|
+
base64.encode = /* @__PURE__ */ __name(function encode(buffer, start, end) {
|
|
70
|
+
var parts = null, chunk = [];
|
|
71
|
+
var i2 = 0, j = 0, t;
|
|
72
|
+
while (start < end) {
|
|
73
|
+
var b = buffer[start++];
|
|
74
|
+
switch (j) {
|
|
75
|
+
case 0:
|
|
76
|
+
chunk[i2++] = b64[b >> 2];
|
|
77
|
+
t = (b & 3) << 4;
|
|
78
|
+
j = 1;
|
|
79
|
+
break;
|
|
80
|
+
case 1:
|
|
81
|
+
chunk[i2++] = b64[t | b >> 4];
|
|
82
|
+
t = (b & 15) << 2;
|
|
83
|
+
j = 2;
|
|
84
|
+
break;
|
|
85
|
+
case 2:
|
|
86
|
+
chunk[i2++] = b64[t | b >> 6];
|
|
87
|
+
chunk[i2++] = b64[b & 63];
|
|
88
|
+
j = 0;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
if (i2 > 8191) {
|
|
92
|
+
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
93
|
+
i2 = 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if (j) {
|
|
97
|
+
chunk[i2++] = b64[t];
|
|
98
|
+
chunk[i2++] = 61;
|
|
99
|
+
if (j === 1)
|
|
100
|
+
chunk[i2++] = 61;
|
|
101
|
+
}
|
|
102
|
+
if (parts) {
|
|
103
|
+
if (i2)
|
|
104
|
+
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i2)));
|
|
105
|
+
return parts.join("");
|
|
106
|
+
}
|
|
107
|
+
return String.fromCharCode.apply(String, chunk.slice(0, i2));
|
|
108
|
+
}, "encode");
|
|
109
|
+
var invalidEncoding = "invalid encoding";
|
|
110
|
+
base64.decode = /* @__PURE__ */ __name(function decode(string, buffer, offset) {
|
|
111
|
+
var start = offset;
|
|
112
|
+
var j = 0, t;
|
|
113
|
+
for (var i2 = 0; i2 < string.length; ) {
|
|
114
|
+
var c = string.charCodeAt(i2++);
|
|
115
|
+
if (c === 61 && j > 1)
|
|
116
|
+
break;
|
|
117
|
+
if ((c = s64[c]) === void 0)
|
|
118
|
+
throw Error(invalidEncoding);
|
|
119
|
+
switch (j) {
|
|
120
|
+
case 0:
|
|
121
|
+
t = c;
|
|
122
|
+
j = 1;
|
|
123
|
+
break;
|
|
124
|
+
case 1:
|
|
125
|
+
buffer[offset++] = t << 2 | (c & 48) >> 4;
|
|
126
|
+
t = c;
|
|
127
|
+
j = 2;
|
|
128
|
+
break;
|
|
129
|
+
case 2:
|
|
130
|
+
buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;
|
|
131
|
+
t = c;
|
|
132
|
+
j = 3;
|
|
133
|
+
break;
|
|
134
|
+
case 3:
|
|
135
|
+
buffer[offset++] = (t & 3) << 6 | c;
|
|
136
|
+
j = 0;
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if (j === 1)
|
|
141
|
+
throw Error(invalidEncoding);
|
|
142
|
+
return offset - start;
|
|
143
|
+
}, "decode");
|
|
144
|
+
base64.test = /* @__PURE__ */ __name(function test(string) {
|
|
145
|
+
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);
|
|
146
|
+
}, "test");
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
// node_modules/@protobufjs/eventemitter/index.js
|
|
151
|
+
var require_eventemitter = __commonJS({
|
|
152
|
+
"node_modules/@protobufjs/eventemitter/index.js"(exports2, module2) {
|
|
153
|
+
"use strict";
|
|
154
|
+
init_esbuild_shims();
|
|
155
|
+
module2.exports = EventEmitter;
|
|
156
|
+
function EventEmitter() {
|
|
157
|
+
this._listeners = {};
|
|
158
|
+
}
|
|
159
|
+
__name(EventEmitter, "EventEmitter");
|
|
160
|
+
EventEmitter.prototype.on = /* @__PURE__ */ __name(function on(evt, fn, ctx) {
|
|
161
|
+
(this._listeners[evt] || (this._listeners[evt] = [])).push({
|
|
162
|
+
fn,
|
|
163
|
+
ctx: ctx || this
|
|
164
|
+
});
|
|
165
|
+
return this;
|
|
166
|
+
}, "on");
|
|
167
|
+
EventEmitter.prototype.off = /* @__PURE__ */ __name(function off(evt, fn) {
|
|
168
|
+
if (evt === void 0)
|
|
169
|
+
this._listeners = {};
|
|
170
|
+
else {
|
|
171
|
+
if (fn === void 0)
|
|
172
|
+
this._listeners[evt] = [];
|
|
173
|
+
else {
|
|
174
|
+
var listeners = this._listeners[evt];
|
|
175
|
+
for (var i = 0; i < listeners.length; )
|
|
176
|
+
if (listeners[i].fn === fn)
|
|
177
|
+
listeners.splice(i, 1);
|
|
178
|
+
else
|
|
179
|
+
++i;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return this;
|
|
183
|
+
}, "off");
|
|
184
|
+
EventEmitter.prototype.emit = /* @__PURE__ */ __name(function emit(evt) {
|
|
185
|
+
var listeners = this._listeners[evt];
|
|
186
|
+
if (listeners) {
|
|
187
|
+
var args = [], i = 1;
|
|
188
|
+
for (; i < arguments.length; )
|
|
189
|
+
args.push(arguments[i++]);
|
|
190
|
+
for (i = 0; i < listeners.length; )
|
|
191
|
+
listeners[i].fn.apply(listeners[i++].ctx, args);
|
|
192
|
+
}
|
|
193
|
+
return this;
|
|
194
|
+
}, "emit");
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
// node_modules/@protobufjs/float/index.js
|
|
199
|
+
var require_float = __commonJS({
|
|
200
|
+
"node_modules/@protobufjs/float/index.js"(exports2, module2) {
|
|
201
|
+
"use strict";
|
|
202
|
+
init_esbuild_shims();
|
|
203
|
+
module2.exports = factory(factory);
|
|
204
|
+
function factory(exports3) {
|
|
205
|
+
if (typeof Float32Array !== "undefined") (function() {
|
|
206
|
+
var f32 = new Float32Array([-0]), f8b = new Uint8Array(f32.buffer), le = f8b[3] === 128;
|
|
207
|
+
function writeFloat_f32_cpy(val, buf, pos) {
|
|
208
|
+
f32[0] = val;
|
|
209
|
+
buf[pos] = f8b[0];
|
|
210
|
+
buf[pos + 1] = f8b[1];
|
|
211
|
+
buf[pos + 2] = f8b[2];
|
|
212
|
+
buf[pos + 3] = f8b[3];
|
|
213
|
+
}
|
|
214
|
+
__name(writeFloat_f32_cpy, "writeFloat_f32_cpy");
|
|
215
|
+
function writeFloat_f32_rev(val, buf, pos) {
|
|
216
|
+
f32[0] = val;
|
|
217
|
+
buf[pos] = f8b[3];
|
|
218
|
+
buf[pos + 1] = f8b[2];
|
|
219
|
+
buf[pos + 2] = f8b[1];
|
|
220
|
+
buf[pos + 3] = f8b[0];
|
|
221
|
+
}
|
|
222
|
+
__name(writeFloat_f32_rev, "writeFloat_f32_rev");
|
|
223
|
+
exports3.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;
|
|
224
|
+
exports3.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;
|
|
225
|
+
function readFloat_f32_cpy(buf, pos) {
|
|
226
|
+
f8b[0] = buf[pos];
|
|
227
|
+
f8b[1] = buf[pos + 1];
|
|
228
|
+
f8b[2] = buf[pos + 2];
|
|
229
|
+
f8b[3] = buf[pos + 3];
|
|
230
|
+
return f32[0];
|
|
231
|
+
}
|
|
232
|
+
__name(readFloat_f32_cpy, "readFloat_f32_cpy");
|
|
233
|
+
function readFloat_f32_rev(buf, pos) {
|
|
234
|
+
f8b[3] = buf[pos];
|
|
235
|
+
f8b[2] = buf[pos + 1];
|
|
236
|
+
f8b[1] = buf[pos + 2];
|
|
237
|
+
f8b[0] = buf[pos + 3];
|
|
238
|
+
return f32[0];
|
|
239
|
+
}
|
|
240
|
+
__name(readFloat_f32_rev, "readFloat_f32_rev");
|
|
241
|
+
exports3.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;
|
|
242
|
+
exports3.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;
|
|
243
|
+
})();
|
|
244
|
+
else (function() {
|
|
245
|
+
function writeFloat_ieee754(writeUint, val, buf, pos) {
|
|
246
|
+
var sign = val < 0 ? 1 : 0;
|
|
247
|
+
if (sign)
|
|
248
|
+
val = -val;
|
|
249
|
+
if (val === 0)
|
|
250
|
+
writeUint(1 / val > 0 ? (
|
|
251
|
+
/* positive */
|
|
252
|
+
0
|
|
253
|
+
) : (
|
|
254
|
+
/* negative 0 */
|
|
255
|
+
2147483648
|
|
256
|
+
), buf, pos);
|
|
257
|
+
else if (isNaN(val))
|
|
258
|
+
writeUint(2143289344, buf, pos);
|
|
259
|
+
else if (val > 34028234663852886e22)
|
|
260
|
+
writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);
|
|
261
|
+
else if (val < 11754943508222875e-54)
|
|
262
|
+
writeUint((sign << 31 | Math.round(val / 1401298464324817e-60)) >>> 0, buf, pos);
|
|
263
|
+
else {
|
|
264
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2), mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;
|
|
265
|
+
writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
__name(writeFloat_ieee754, "writeFloat_ieee754");
|
|
269
|
+
exports3.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
270
|
+
exports3.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
271
|
+
function readFloat_ieee754(readUint, buf, pos) {
|
|
272
|
+
var uint = readUint(buf, pos), sign = (uint >> 31) * 2 + 1, exponent = uint >>> 23 & 255, mantissa = uint & 8388607;
|
|
273
|
+
return exponent === 255 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 1401298464324817e-60 * mantissa : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
274
|
+
}
|
|
275
|
+
__name(readFloat_ieee754, "readFloat_ieee754");
|
|
276
|
+
exports3.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
277
|
+
exports3.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
278
|
+
})();
|
|
279
|
+
if (typeof Float64Array !== "undefined") (function() {
|
|
280
|
+
var f64 = new Float64Array([-0]), f8b = new Uint8Array(f64.buffer), le = f8b[7] === 128;
|
|
281
|
+
function writeDouble_f64_cpy(val, buf, pos) {
|
|
282
|
+
f64[0] = val;
|
|
283
|
+
buf[pos] = f8b[0];
|
|
284
|
+
buf[pos + 1] = f8b[1];
|
|
285
|
+
buf[pos + 2] = f8b[2];
|
|
286
|
+
buf[pos + 3] = f8b[3];
|
|
287
|
+
buf[pos + 4] = f8b[4];
|
|
288
|
+
buf[pos + 5] = f8b[5];
|
|
289
|
+
buf[pos + 6] = f8b[6];
|
|
290
|
+
buf[pos + 7] = f8b[7];
|
|
291
|
+
}
|
|
292
|
+
__name(writeDouble_f64_cpy, "writeDouble_f64_cpy");
|
|
293
|
+
function writeDouble_f64_rev(val, buf, pos) {
|
|
294
|
+
f64[0] = val;
|
|
295
|
+
buf[pos] = f8b[7];
|
|
296
|
+
buf[pos + 1] = f8b[6];
|
|
297
|
+
buf[pos + 2] = f8b[5];
|
|
298
|
+
buf[pos + 3] = f8b[4];
|
|
299
|
+
buf[pos + 4] = f8b[3];
|
|
300
|
+
buf[pos + 5] = f8b[2];
|
|
301
|
+
buf[pos + 6] = f8b[1];
|
|
302
|
+
buf[pos + 7] = f8b[0];
|
|
303
|
+
}
|
|
304
|
+
__name(writeDouble_f64_rev, "writeDouble_f64_rev");
|
|
305
|
+
exports3.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;
|
|
306
|
+
exports3.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;
|
|
307
|
+
function readDouble_f64_cpy(buf, pos) {
|
|
308
|
+
f8b[0] = buf[pos];
|
|
309
|
+
f8b[1] = buf[pos + 1];
|
|
310
|
+
f8b[2] = buf[pos + 2];
|
|
311
|
+
f8b[3] = buf[pos + 3];
|
|
312
|
+
f8b[4] = buf[pos + 4];
|
|
313
|
+
f8b[5] = buf[pos + 5];
|
|
314
|
+
f8b[6] = buf[pos + 6];
|
|
315
|
+
f8b[7] = buf[pos + 7];
|
|
316
|
+
return f64[0];
|
|
317
|
+
}
|
|
318
|
+
__name(readDouble_f64_cpy, "readDouble_f64_cpy");
|
|
319
|
+
function readDouble_f64_rev(buf, pos) {
|
|
320
|
+
f8b[7] = buf[pos];
|
|
321
|
+
f8b[6] = buf[pos + 1];
|
|
322
|
+
f8b[5] = buf[pos + 2];
|
|
323
|
+
f8b[4] = buf[pos + 3];
|
|
324
|
+
f8b[3] = buf[pos + 4];
|
|
325
|
+
f8b[2] = buf[pos + 5];
|
|
326
|
+
f8b[1] = buf[pos + 6];
|
|
327
|
+
f8b[0] = buf[pos + 7];
|
|
328
|
+
return f64[0];
|
|
329
|
+
}
|
|
330
|
+
__name(readDouble_f64_rev, "readDouble_f64_rev");
|
|
331
|
+
exports3.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;
|
|
332
|
+
exports3.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;
|
|
333
|
+
})();
|
|
334
|
+
else (function() {
|
|
335
|
+
function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {
|
|
336
|
+
var sign = val < 0 ? 1 : 0;
|
|
337
|
+
if (sign)
|
|
338
|
+
val = -val;
|
|
339
|
+
if (val === 0) {
|
|
340
|
+
writeUint(0, buf, pos + off0);
|
|
341
|
+
writeUint(1 / val > 0 ? (
|
|
342
|
+
/* positive */
|
|
343
|
+
0
|
|
344
|
+
) : (
|
|
345
|
+
/* negative 0 */
|
|
346
|
+
2147483648
|
|
347
|
+
), buf, pos + off1);
|
|
348
|
+
} else if (isNaN(val)) {
|
|
349
|
+
writeUint(0, buf, pos + off0);
|
|
350
|
+
writeUint(2146959360, buf, pos + off1);
|
|
351
|
+
} else if (val > 17976931348623157e292) {
|
|
352
|
+
writeUint(0, buf, pos + off0);
|
|
353
|
+
writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);
|
|
354
|
+
} else {
|
|
355
|
+
var mantissa;
|
|
356
|
+
if (val < 22250738585072014e-324) {
|
|
357
|
+
mantissa = val / 5e-324;
|
|
358
|
+
writeUint(mantissa >>> 0, buf, pos + off0);
|
|
359
|
+
writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
|
|
360
|
+
} else {
|
|
361
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2);
|
|
362
|
+
if (exponent === 1024)
|
|
363
|
+
exponent = 1023;
|
|
364
|
+
mantissa = val * Math.pow(2, -exponent);
|
|
365
|
+
writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);
|
|
366
|
+
writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
__name(writeDouble_ieee754, "writeDouble_ieee754");
|
|
371
|
+
exports3.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);
|
|
372
|
+
exports3.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
373
|
+
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
374
|
+
var lo = readUint(buf, pos + off0), hi = readUint(buf, pos + off1);
|
|
375
|
+
var sign = (hi >> 31) * 2 + 1, exponent = hi >>> 20 & 2047, mantissa = 4294967296 * (hi & 1048575) + lo;
|
|
376
|
+
return exponent === 2047 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 5e-324 * mantissa : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
377
|
+
}
|
|
378
|
+
__name(readDouble_ieee754, "readDouble_ieee754");
|
|
379
|
+
exports3.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
380
|
+
exports3.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
381
|
+
})();
|
|
382
|
+
return exports3;
|
|
383
|
+
}
|
|
384
|
+
__name(factory, "factory");
|
|
385
|
+
function writeUintLE(val, buf, pos) {
|
|
386
|
+
buf[pos] = val & 255;
|
|
387
|
+
buf[pos + 1] = val >>> 8 & 255;
|
|
388
|
+
buf[pos + 2] = val >>> 16 & 255;
|
|
389
|
+
buf[pos + 3] = val >>> 24;
|
|
390
|
+
}
|
|
391
|
+
__name(writeUintLE, "writeUintLE");
|
|
392
|
+
function writeUintBE(val, buf, pos) {
|
|
393
|
+
buf[pos] = val >>> 24;
|
|
394
|
+
buf[pos + 1] = val >>> 16 & 255;
|
|
395
|
+
buf[pos + 2] = val >>> 8 & 255;
|
|
396
|
+
buf[pos + 3] = val & 255;
|
|
397
|
+
}
|
|
398
|
+
__name(writeUintBE, "writeUintBE");
|
|
399
|
+
function readUintLE(buf, pos) {
|
|
400
|
+
return (buf[pos] | buf[pos + 1] << 8 | buf[pos + 2] << 16 | buf[pos + 3] << 24) >>> 0;
|
|
401
|
+
}
|
|
402
|
+
__name(readUintLE, "readUintLE");
|
|
403
|
+
function readUintBE(buf, pos) {
|
|
404
|
+
return (buf[pos] << 24 | buf[pos + 1] << 16 | buf[pos + 2] << 8 | buf[pos + 3]) >>> 0;
|
|
405
|
+
}
|
|
406
|
+
__name(readUintBE, "readUintBE");
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
// node_modules/@protobufjs/inquire/index.js
|
|
411
|
+
var require_inquire = __commonJS({
|
|
412
|
+
"node_modules/@protobufjs/inquire/index.js"(exports, module) {
|
|
413
|
+
"use strict";
|
|
414
|
+
init_esbuild_shims();
|
|
415
|
+
module.exports = inquire;
|
|
416
|
+
function inquire(moduleName) {
|
|
417
|
+
try {
|
|
418
|
+
var mod = eval("quire".replace(/^/, "re"))(moduleName);
|
|
419
|
+
if (mod && (mod.length || Object.keys(mod).length))
|
|
420
|
+
return mod;
|
|
421
|
+
} catch (e) {
|
|
422
|
+
}
|
|
423
|
+
return null;
|
|
424
|
+
}
|
|
425
|
+
__name(inquire, "inquire");
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
|
|
429
|
+
// node_modules/@protobufjs/utf8/index.js
|
|
430
|
+
var require_utf8 = __commonJS({
|
|
431
|
+
"node_modules/@protobufjs/utf8/index.js"(exports2) {
|
|
432
|
+
"use strict";
|
|
433
|
+
init_esbuild_shims();
|
|
434
|
+
var utf8 = exports2;
|
|
435
|
+
utf8.length = /* @__PURE__ */ __name(function utf8_length(string) {
|
|
436
|
+
var len = 0, c = 0;
|
|
437
|
+
for (var i = 0; i < string.length; ++i) {
|
|
438
|
+
c = string.charCodeAt(i);
|
|
439
|
+
if (c < 128)
|
|
440
|
+
len += 1;
|
|
441
|
+
else if (c < 2048)
|
|
442
|
+
len += 2;
|
|
443
|
+
else if ((c & 64512) === 55296 && (string.charCodeAt(i + 1) & 64512) === 56320) {
|
|
444
|
+
++i;
|
|
445
|
+
len += 4;
|
|
446
|
+
} else
|
|
447
|
+
len += 3;
|
|
448
|
+
}
|
|
449
|
+
return len;
|
|
450
|
+
}, "utf8_length");
|
|
451
|
+
utf8.read = /* @__PURE__ */ __name(function utf8_read(buffer, start, end) {
|
|
452
|
+
var len = end - start;
|
|
453
|
+
if (len < 1)
|
|
454
|
+
return "";
|
|
455
|
+
var parts = null, chunk = [], i = 0, t;
|
|
456
|
+
while (start < end) {
|
|
457
|
+
t = buffer[start++];
|
|
458
|
+
if (t < 128)
|
|
459
|
+
chunk[i++] = t;
|
|
460
|
+
else if (t > 191 && t < 224)
|
|
461
|
+
chunk[i++] = (t & 31) << 6 | buffer[start++] & 63;
|
|
462
|
+
else if (t > 239 && t < 365) {
|
|
463
|
+
t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 65536;
|
|
464
|
+
chunk[i++] = 55296 + (t >> 10);
|
|
465
|
+
chunk[i++] = 56320 + (t & 1023);
|
|
466
|
+
} else
|
|
467
|
+
chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63;
|
|
468
|
+
if (i > 8191) {
|
|
469
|
+
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
470
|
+
i = 0;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
if (parts) {
|
|
474
|
+
if (i)
|
|
475
|
+
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
|
|
476
|
+
return parts.join("");
|
|
477
|
+
}
|
|
478
|
+
return String.fromCharCode.apply(String, chunk.slice(0, i));
|
|
479
|
+
}, "utf8_read");
|
|
480
|
+
utf8.write = /* @__PURE__ */ __name(function utf8_write(string, buffer, offset) {
|
|
481
|
+
var start = offset, c1, c2;
|
|
482
|
+
for (var i = 0; i < string.length; ++i) {
|
|
483
|
+
c1 = string.charCodeAt(i);
|
|
484
|
+
if (c1 < 128) {
|
|
485
|
+
buffer[offset++] = c1;
|
|
486
|
+
} else if (c1 < 2048) {
|
|
487
|
+
buffer[offset++] = c1 >> 6 | 192;
|
|
488
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
489
|
+
} else if ((c1 & 64512) === 55296 && ((c2 = string.charCodeAt(i + 1)) & 64512) === 56320) {
|
|
490
|
+
c1 = 65536 + ((c1 & 1023) << 10) + (c2 & 1023);
|
|
491
|
+
++i;
|
|
492
|
+
buffer[offset++] = c1 >> 18 | 240;
|
|
493
|
+
buffer[offset++] = c1 >> 12 & 63 | 128;
|
|
494
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
495
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
496
|
+
} else {
|
|
497
|
+
buffer[offset++] = c1 >> 12 | 224;
|
|
498
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
499
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
return offset - start;
|
|
503
|
+
}, "utf8_write");
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
|
|
507
|
+
// node_modules/@protobufjs/pool/index.js
|
|
508
|
+
var require_pool = __commonJS({
|
|
509
|
+
"node_modules/@protobufjs/pool/index.js"(exports2, module2) {
|
|
510
|
+
"use strict";
|
|
511
|
+
init_esbuild_shims();
|
|
512
|
+
module2.exports = pool;
|
|
513
|
+
function pool(alloc, slice, size) {
|
|
514
|
+
var SIZE = size || 8192;
|
|
515
|
+
var MAX = SIZE >>> 1;
|
|
516
|
+
var slab = null;
|
|
517
|
+
var offset = SIZE;
|
|
518
|
+
return /* @__PURE__ */ __name(function pool_alloc(size2) {
|
|
519
|
+
if (size2 < 1 || size2 > MAX)
|
|
520
|
+
return alloc(size2);
|
|
521
|
+
if (offset + size2 > SIZE) {
|
|
522
|
+
slab = alloc(SIZE);
|
|
523
|
+
offset = 0;
|
|
524
|
+
}
|
|
525
|
+
var buf = slice.call(slab, offset, offset += size2);
|
|
526
|
+
if (offset & 7)
|
|
527
|
+
offset = (offset | 7) + 1;
|
|
528
|
+
return buf;
|
|
529
|
+
}, "pool_alloc");
|
|
530
|
+
}
|
|
531
|
+
__name(pool, "pool");
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
// node_modules/protobufjs/src/util/longbits.js
|
|
536
|
+
var require_longbits = __commonJS({
|
|
537
|
+
"node_modules/protobufjs/src/util/longbits.js"(exports2, module2) {
|
|
538
|
+
"use strict";
|
|
539
|
+
init_esbuild_shims();
|
|
540
|
+
module2.exports = LongBits;
|
|
541
|
+
var util = require_minimal();
|
|
542
|
+
function LongBits(lo, hi) {
|
|
543
|
+
this.lo = lo >>> 0;
|
|
544
|
+
this.hi = hi >>> 0;
|
|
545
|
+
}
|
|
546
|
+
__name(LongBits, "LongBits");
|
|
547
|
+
var zero = LongBits.zero = new LongBits(0, 0);
|
|
548
|
+
zero.toNumber = function() {
|
|
549
|
+
return 0;
|
|
550
|
+
};
|
|
551
|
+
zero.zzEncode = zero.zzDecode = function() {
|
|
552
|
+
return this;
|
|
553
|
+
};
|
|
554
|
+
zero.length = function() {
|
|
555
|
+
return 1;
|
|
556
|
+
};
|
|
557
|
+
var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0";
|
|
558
|
+
LongBits.fromNumber = /* @__PURE__ */ __name(function fromNumber(value) {
|
|
559
|
+
if (value === 0)
|
|
560
|
+
return zero;
|
|
561
|
+
var sign = value < 0;
|
|
562
|
+
if (sign)
|
|
563
|
+
value = -value;
|
|
564
|
+
var lo = value >>> 0, hi = (value - lo) / 4294967296 >>> 0;
|
|
565
|
+
if (sign) {
|
|
566
|
+
hi = ~hi >>> 0;
|
|
567
|
+
lo = ~lo >>> 0;
|
|
568
|
+
if (++lo > 4294967295) {
|
|
569
|
+
lo = 0;
|
|
570
|
+
if (++hi > 4294967295)
|
|
571
|
+
hi = 0;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
return new LongBits(lo, hi);
|
|
575
|
+
}, "fromNumber");
|
|
576
|
+
LongBits.from = /* @__PURE__ */ __name(function from(value) {
|
|
577
|
+
if (typeof value === "number")
|
|
578
|
+
return LongBits.fromNumber(value);
|
|
579
|
+
if (util.isString(value)) {
|
|
580
|
+
if (util.Long)
|
|
581
|
+
value = util.Long.fromString(value);
|
|
582
|
+
else
|
|
583
|
+
return LongBits.fromNumber(parseInt(value, 10));
|
|
584
|
+
}
|
|
585
|
+
return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;
|
|
586
|
+
}, "from");
|
|
587
|
+
LongBits.prototype.toNumber = /* @__PURE__ */ __name(function toNumber(unsigned) {
|
|
588
|
+
if (!unsigned && this.hi >>> 31) {
|
|
589
|
+
var lo = ~this.lo + 1 >>> 0, hi = ~this.hi >>> 0;
|
|
590
|
+
if (!lo)
|
|
591
|
+
hi = hi + 1 >>> 0;
|
|
592
|
+
return -(lo + hi * 4294967296);
|
|
593
|
+
}
|
|
594
|
+
return this.lo + this.hi * 4294967296;
|
|
595
|
+
}, "toNumber");
|
|
596
|
+
LongBits.prototype.toLong = /* @__PURE__ */ __name(function toLong(unsigned) {
|
|
597
|
+
return util.Long ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned)) : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) };
|
|
598
|
+
}, "toLong");
|
|
599
|
+
var charCodeAt = String.prototype.charCodeAt;
|
|
600
|
+
LongBits.fromHash = /* @__PURE__ */ __name(function fromHash(hash) {
|
|
601
|
+
if (hash === zeroHash)
|
|
602
|
+
return zero;
|
|
603
|
+
return new LongBits(
|
|
604
|
+
(charCodeAt.call(hash, 0) | charCodeAt.call(hash, 1) << 8 | charCodeAt.call(hash, 2) << 16 | charCodeAt.call(hash, 3) << 24) >>> 0,
|
|
605
|
+
(charCodeAt.call(hash, 4) | charCodeAt.call(hash, 5) << 8 | charCodeAt.call(hash, 6) << 16 | charCodeAt.call(hash, 7) << 24) >>> 0
|
|
606
|
+
);
|
|
607
|
+
}, "fromHash");
|
|
608
|
+
LongBits.prototype.toHash = /* @__PURE__ */ __name(function toHash() {
|
|
609
|
+
return String.fromCharCode(
|
|
610
|
+
this.lo & 255,
|
|
611
|
+
this.lo >>> 8 & 255,
|
|
612
|
+
this.lo >>> 16 & 255,
|
|
613
|
+
this.lo >>> 24,
|
|
614
|
+
this.hi & 255,
|
|
615
|
+
this.hi >>> 8 & 255,
|
|
616
|
+
this.hi >>> 16 & 255,
|
|
617
|
+
this.hi >>> 24
|
|
618
|
+
);
|
|
619
|
+
}, "toHash");
|
|
620
|
+
LongBits.prototype.zzEncode = /* @__PURE__ */ __name(function zzEncode() {
|
|
621
|
+
var mask = this.hi >> 31;
|
|
622
|
+
this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0;
|
|
623
|
+
this.lo = (this.lo << 1 ^ mask) >>> 0;
|
|
624
|
+
return this;
|
|
625
|
+
}, "zzEncode");
|
|
626
|
+
LongBits.prototype.zzDecode = /* @__PURE__ */ __name(function zzDecode() {
|
|
627
|
+
var mask = -(this.lo & 1);
|
|
628
|
+
this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0;
|
|
629
|
+
this.hi = (this.hi >>> 1 ^ mask) >>> 0;
|
|
630
|
+
return this;
|
|
631
|
+
}, "zzDecode");
|
|
632
|
+
LongBits.prototype.length = /* @__PURE__ */ __name(function length() {
|
|
633
|
+
var part0 = this.lo, part1 = (this.lo >>> 28 | this.hi << 4) >>> 0, part2 = this.hi >>> 24;
|
|
634
|
+
return part2 === 0 ? part1 === 0 ? part0 < 16384 ? part0 < 128 ? 1 : 2 : part0 < 2097152 ? 3 : 4 : part1 < 16384 ? part1 < 128 ? 5 : 6 : part1 < 2097152 ? 7 : 8 : part2 < 128 ? 9 : 10;
|
|
635
|
+
}, "length");
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
|
|
639
|
+
// node_modules/protobufjs/src/util/minimal.js
|
|
640
|
+
var require_minimal = __commonJS({
|
|
641
|
+
"node_modules/protobufjs/src/util/minimal.js"(exports2) {
|
|
642
|
+
"use strict";
|
|
643
|
+
init_esbuild_shims();
|
|
644
|
+
var util = exports2;
|
|
645
|
+
util.asPromise = require_aspromise();
|
|
646
|
+
util.base64 = require_base64();
|
|
647
|
+
util.EventEmitter = require_eventemitter();
|
|
648
|
+
util.float = require_float();
|
|
649
|
+
util.inquire = require_inquire();
|
|
650
|
+
util.utf8 = require_utf8();
|
|
651
|
+
util.pool = require_pool();
|
|
652
|
+
util.LongBits = require_longbits();
|
|
653
|
+
util.isNode = Boolean(typeof globalThis !== "undefined" && globalThis && globalThis.process && globalThis.process.versions && globalThis.process.versions.node);
|
|
654
|
+
util.global = util.isNode && globalThis || typeof window !== "undefined" && window || typeof self !== "undefined" && self || exports2;
|
|
655
|
+
util.emptyArray = Object.freeze ? Object.freeze([]) : (
|
|
656
|
+
/* istanbul ignore next */
|
|
657
|
+
[]
|
|
658
|
+
);
|
|
659
|
+
util.emptyObject = Object.freeze ? Object.freeze({}) : (
|
|
660
|
+
/* istanbul ignore next */
|
|
661
|
+
{}
|
|
662
|
+
);
|
|
663
|
+
util.isInteger = Number.isInteger || /* istanbul ignore next */
|
|
664
|
+
/* @__PURE__ */ __name(function isInteger(value) {
|
|
665
|
+
return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
|
|
666
|
+
}, "isInteger");
|
|
667
|
+
util.isString = /* @__PURE__ */ __name(function isString(value) {
|
|
668
|
+
return typeof value === "string" || value instanceof String;
|
|
669
|
+
}, "isString");
|
|
670
|
+
util.isObject = /* @__PURE__ */ __name(function isObject(value) {
|
|
671
|
+
return value && typeof value === "object";
|
|
672
|
+
}, "isObject");
|
|
673
|
+
util.isset = /**
|
|
674
|
+
* Checks if a property on a message is considered to be present.
|
|
675
|
+
* @param {Object} obj Plain object or message instance
|
|
676
|
+
* @param {string} prop Property name
|
|
677
|
+
* @returns {boolean} `true` if considered to be present, otherwise `false`
|
|
678
|
+
*/
|
|
679
|
+
util.isSet = /* @__PURE__ */ __name(function isSet(obj, prop) {
|
|
680
|
+
var value = obj[prop];
|
|
681
|
+
if (value != null && obj.hasOwnProperty(prop))
|
|
682
|
+
return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;
|
|
683
|
+
return false;
|
|
684
|
+
}, "isSet");
|
|
685
|
+
util.Buffer = function() {
|
|
686
|
+
try {
|
|
687
|
+
var Buffer = util.inquire("buffer").Buffer;
|
|
688
|
+
return Buffer.prototype.utf8Write ? Buffer : (
|
|
689
|
+
/* istanbul ignore next */
|
|
690
|
+
null
|
|
691
|
+
);
|
|
692
|
+
} catch (e) {
|
|
693
|
+
return null;
|
|
694
|
+
}
|
|
695
|
+
}();
|
|
696
|
+
util._Buffer_from = null;
|
|
697
|
+
util._Buffer_allocUnsafe = null;
|
|
698
|
+
util.newBuffer = /* @__PURE__ */ __name(function newBuffer(sizeOrArray) {
|
|
699
|
+
return typeof sizeOrArray === "number" ? util.Buffer ? util._Buffer_allocUnsafe(sizeOrArray) : new util.Array(sizeOrArray) : util.Buffer ? util._Buffer_from(sizeOrArray) : typeof Uint8Array === "undefined" ? sizeOrArray : new Uint8Array(sizeOrArray);
|
|
700
|
+
}, "newBuffer");
|
|
701
|
+
util.Array = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
702
|
+
util.Long = /* istanbul ignore next */
|
|
703
|
+
util.global.dcodeIO && /* istanbul ignore next */
|
|
704
|
+
util.global.dcodeIO.Long || /* istanbul ignore next */
|
|
705
|
+
util.global.Long || util.inquire("long");
|
|
706
|
+
util.key2Re = /^true|false|0|1$/;
|
|
707
|
+
util.key32Re = /^-?(?:0|[1-9][0-9]*)$/;
|
|
708
|
+
util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;
|
|
709
|
+
util.longToHash = /* @__PURE__ */ __name(function longToHash(value) {
|
|
710
|
+
return value ? util.LongBits.from(value).toHash() : util.LongBits.zeroHash;
|
|
711
|
+
}, "longToHash");
|
|
712
|
+
util.longFromHash = /* @__PURE__ */ __name(function longFromHash(hash, unsigned) {
|
|
713
|
+
var bits = util.LongBits.fromHash(hash);
|
|
714
|
+
if (util.Long)
|
|
715
|
+
return util.Long.fromBits(bits.lo, bits.hi, unsigned);
|
|
716
|
+
return bits.toNumber(Boolean(unsigned));
|
|
717
|
+
}, "longFromHash");
|
|
718
|
+
function merge(dst, src, ifNotSet) {
|
|
719
|
+
for (var keys = Object.keys(src), i = 0; i < keys.length; ++i)
|
|
720
|
+
if (dst[keys[i]] === void 0 || !ifNotSet)
|
|
721
|
+
dst[keys[i]] = src[keys[i]];
|
|
722
|
+
return dst;
|
|
723
|
+
}
|
|
724
|
+
__name(merge, "merge");
|
|
725
|
+
util.merge = merge;
|
|
726
|
+
util.lcFirst = /* @__PURE__ */ __name(function lcFirst(str) {
|
|
727
|
+
return str.charAt(0).toLowerCase() + str.substring(1);
|
|
728
|
+
}, "lcFirst");
|
|
729
|
+
function newError(name) {
|
|
730
|
+
function CustomError(message, properties) {
|
|
731
|
+
if (!(this instanceof CustomError))
|
|
732
|
+
return new CustomError(message, properties);
|
|
733
|
+
Object.defineProperty(this, "message", { get: /* @__PURE__ */ __name(function() {
|
|
734
|
+
return message;
|
|
735
|
+
}, "get") });
|
|
736
|
+
if (Error.captureStackTrace)
|
|
737
|
+
Error.captureStackTrace(this, CustomError);
|
|
738
|
+
else
|
|
739
|
+
Object.defineProperty(this, "stack", { value: new Error().stack || "" });
|
|
740
|
+
if (properties)
|
|
741
|
+
merge(this, properties);
|
|
742
|
+
}
|
|
743
|
+
__name(CustomError, "CustomError");
|
|
744
|
+
CustomError.prototype = Object.create(Error.prototype, {
|
|
745
|
+
constructor: {
|
|
746
|
+
value: CustomError,
|
|
747
|
+
writable: true,
|
|
748
|
+
enumerable: false,
|
|
749
|
+
configurable: true
|
|
750
|
+
},
|
|
751
|
+
name: {
|
|
752
|
+
get: /* @__PURE__ */ __name(function get() {
|
|
753
|
+
return name;
|
|
754
|
+
}, "get"),
|
|
755
|
+
set: void 0,
|
|
756
|
+
enumerable: false,
|
|
757
|
+
// configurable: false would accurately preserve the behavior of
|
|
758
|
+
// the original, but I'm guessing that was not intentional.
|
|
759
|
+
// For an actual error subclass, this property would
|
|
760
|
+
// be configurable.
|
|
761
|
+
configurable: true
|
|
762
|
+
},
|
|
763
|
+
toString: {
|
|
764
|
+
value: /* @__PURE__ */ __name(function value() {
|
|
765
|
+
return this.name + ": " + this.message;
|
|
766
|
+
}, "value"),
|
|
767
|
+
writable: true,
|
|
768
|
+
enumerable: false,
|
|
769
|
+
configurable: true
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
return CustomError;
|
|
773
|
+
}
|
|
774
|
+
__name(newError, "newError");
|
|
775
|
+
util.newError = newError;
|
|
776
|
+
util.ProtocolError = newError("ProtocolError");
|
|
777
|
+
util.oneOfGetter = /* @__PURE__ */ __name(function getOneOf(fieldNames) {
|
|
778
|
+
var fieldMap = {};
|
|
779
|
+
for (var i = 0; i < fieldNames.length; ++i)
|
|
780
|
+
fieldMap[fieldNames[i]] = 1;
|
|
781
|
+
return function() {
|
|
782
|
+
for (var keys = Object.keys(this), i2 = keys.length - 1; i2 > -1; --i2)
|
|
783
|
+
if (fieldMap[keys[i2]] === 1 && this[keys[i2]] !== void 0 && this[keys[i2]] !== null)
|
|
784
|
+
return keys[i2];
|
|
785
|
+
};
|
|
786
|
+
}, "getOneOf");
|
|
787
|
+
util.oneOfSetter = /* @__PURE__ */ __name(function setOneOf(fieldNames) {
|
|
788
|
+
return function(name) {
|
|
789
|
+
for (var i = 0; i < fieldNames.length; ++i)
|
|
790
|
+
if (fieldNames[i] !== name)
|
|
791
|
+
delete this[fieldNames[i]];
|
|
792
|
+
};
|
|
793
|
+
}, "setOneOf");
|
|
794
|
+
util.toJSONOptions = {
|
|
795
|
+
longs: String,
|
|
796
|
+
enums: String,
|
|
797
|
+
bytes: String,
|
|
798
|
+
json: true
|
|
799
|
+
};
|
|
800
|
+
util._configure = function() {
|
|
801
|
+
var Buffer = util.Buffer;
|
|
802
|
+
if (!Buffer) {
|
|
803
|
+
util._Buffer_from = util._Buffer_allocUnsafe = null;
|
|
804
|
+
return;
|
|
805
|
+
}
|
|
806
|
+
util._Buffer_from = Buffer.from !== Uint8Array.from && Buffer.from || /* istanbul ignore next */
|
|
807
|
+
/* @__PURE__ */ __name(function Buffer_from(value, encoding) {
|
|
808
|
+
return new Buffer(value, encoding);
|
|
809
|
+
}, "Buffer_from");
|
|
810
|
+
util._Buffer_allocUnsafe = Buffer.allocUnsafe || /* istanbul ignore next */
|
|
811
|
+
/* @__PURE__ */ __name(function Buffer_allocUnsafe(size) {
|
|
812
|
+
return new Buffer(size);
|
|
813
|
+
}, "Buffer_allocUnsafe");
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
|
|
818
|
+
// node_modules/protobufjs/src/writer.js
|
|
819
|
+
var require_writer = __commonJS({
|
|
820
|
+
"node_modules/protobufjs/src/writer.js"(exports2, module2) {
|
|
821
|
+
"use strict";
|
|
822
|
+
init_esbuild_shims();
|
|
823
|
+
module2.exports = Writer;
|
|
824
|
+
var util = require_minimal();
|
|
825
|
+
var BufferWriter;
|
|
826
|
+
var LongBits = util.LongBits;
|
|
827
|
+
var base64 = util.base64;
|
|
828
|
+
var utf8 = util.utf8;
|
|
829
|
+
function Op(fn, len, val) {
|
|
830
|
+
this.fn = fn;
|
|
831
|
+
this.len = len;
|
|
832
|
+
this.next = void 0;
|
|
833
|
+
this.val = val;
|
|
834
|
+
}
|
|
835
|
+
__name(Op, "Op");
|
|
836
|
+
function noop() {
|
|
837
|
+
}
|
|
838
|
+
__name(noop, "noop");
|
|
839
|
+
function State(writer) {
|
|
840
|
+
this.head = writer.head;
|
|
841
|
+
this.tail = writer.tail;
|
|
842
|
+
this.len = writer.len;
|
|
843
|
+
this.next = writer.states;
|
|
844
|
+
}
|
|
845
|
+
__name(State, "State");
|
|
846
|
+
function Writer() {
|
|
847
|
+
this.len = 0;
|
|
848
|
+
this.head = new Op(noop, 0, 0);
|
|
849
|
+
this.tail = this.head;
|
|
850
|
+
this.states = null;
|
|
851
|
+
}
|
|
852
|
+
__name(Writer, "Writer");
|
|
853
|
+
var create = /* @__PURE__ */ __name(function create2() {
|
|
854
|
+
return util.Buffer ? /* @__PURE__ */ __name(function create_buffer_setup() {
|
|
855
|
+
return (Writer.create = /* @__PURE__ */ __name(function create_buffer() {
|
|
856
|
+
return new BufferWriter();
|
|
857
|
+
}, "create_buffer"))();
|
|
858
|
+
}, "create_buffer_setup") : /* @__PURE__ */ __name(function create_array() {
|
|
859
|
+
return new Writer();
|
|
860
|
+
}, "create_array");
|
|
861
|
+
}, "create");
|
|
862
|
+
Writer.create = create();
|
|
863
|
+
Writer.alloc = /* @__PURE__ */ __name(function alloc(size) {
|
|
864
|
+
return new util.Array(size);
|
|
865
|
+
}, "alloc");
|
|
866
|
+
if (util.Array !== Array)
|
|
867
|
+
Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);
|
|
868
|
+
Writer.prototype._push = /* @__PURE__ */ __name(function push(fn, len, val) {
|
|
869
|
+
this.tail = this.tail.next = new Op(fn, len, val);
|
|
870
|
+
this.len += len;
|
|
871
|
+
return this;
|
|
872
|
+
}, "push");
|
|
873
|
+
function writeByte(val, buf, pos) {
|
|
874
|
+
buf[pos] = val & 255;
|
|
875
|
+
}
|
|
876
|
+
__name(writeByte, "writeByte");
|
|
877
|
+
function writeVarint32(val, buf, pos) {
|
|
878
|
+
while (val > 127) {
|
|
879
|
+
buf[pos++] = val & 127 | 128;
|
|
880
|
+
val >>>= 7;
|
|
881
|
+
}
|
|
882
|
+
buf[pos] = val;
|
|
883
|
+
}
|
|
884
|
+
__name(writeVarint32, "writeVarint32");
|
|
885
|
+
function VarintOp(len, val) {
|
|
886
|
+
this.len = len;
|
|
887
|
+
this.next = void 0;
|
|
888
|
+
this.val = val;
|
|
889
|
+
}
|
|
890
|
+
__name(VarintOp, "VarintOp");
|
|
891
|
+
VarintOp.prototype = Object.create(Op.prototype);
|
|
892
|
+
VarintOp.prototype.fn = writeVarint32;
|
|
893
|
+
Writer.prototype.uint32 = /* @__PURE__ */ __name(function write_uint32(value) {
|
|
894
|
+
this.len += (this.tail = this.tail.next = new VarintOp(
|
|
895
|
+
(value = value >>> 0) < 128 ? 1 : value < 16384 ? 2 : value < 2097152 ? 3 : value < 268435456 ? 4 : 5,
|
|
896
|
+
value
|
|
897
|
+
)).len;
|
|
898
|
+
return this;
|
|
899
|
+
}, "write_uint32");
|
|
900
|
+
Writer.prototype.int32 = /* @__PURE__ */ __name(function write_int32(value) {
|
|
901
|
+
return value < 0 ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) : this.uint32(value);
|
|
902
|
+
}, "write_int32");
|
|
903
|
+
Writer.prototype.sint32 = /* @__PURE__ */ __name(function write_sint32(value) {
|
|
904
|
+
return this.uint32((value << 1 ^ value >> 31) >>> 0);
|
|
905
|
+
}, "write_sint32");
|
|
906
|
+
function writeVarint64(val, buf, pos) {
|
|
907
|
+
while (val.hi) {
|
|
908
|
+
buf[pos++] = val.lo & 127 | 128;
|
|
909
|
+
val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;
|
|
910
|
+
val.hi >>>= 7;
|
|
911
|
+
}
|
|
912
|
+
while (val.lo > 127) {
|
|
913
|
+
buf[pos++] = val.lo & 127 | 128;
|
|
914
|
+
val.lo = val.lo >>> 7;
|
|
915
|
+
}
|
|
916
|
+
buf[pos++] = val.lo;
|
|
917
|
+
}
|
|
918
|
+
__name(writeVarint64, "writeVarint64");
|
|
919
|
+
Writer.prototype.uint64 = /* @__PURE__ */ __name(function write_uint64(value) {
|
|
920
|
+
var bits = LongBits.from(value);
|
|
921
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
922
|
+
}, "write_uint64");
|
|
923
|
+
Writer.prototype.int64 = Writer.prototype.uint64;
|
|
924
|
+
Writer.prototype.sint64 = /* @__PURE__ */ __name(function write_sint64(value) {
|
|
925
|
+
var bits = LongBits.from(value).zzEncode();
|
|
926
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
927
|
+
}, "write_sint64");
|
|
928
|
+
Writer.prototype.bool = /* @__PURE__ */ __name(function write_bool(value) {
|
|
929
|
+
return this._push(writeByte, 1, value ? 1 : 0);
|
|
930
|
+
}, "write_bool");
|
|
931
|
+
function writeFixed32(val, buf, pos) {
|
|
932
|
+
buf[pos] = val & 255;
|
|
933
|
+
buf[pos + 1] = val >>> 8 & 255;
|
|
934
|
+
buf[pos + 2] = val >>> 16 & 255;
|
|
935
|
+
buf[pos + 3] = val >>> 24;
|
|
936
|
+
}
|
|
937
|
+
__name(writeFixed32, "writeFixed32");
|
|
938
|
+
Writer.prototype.fixed32 = /* @__PURE__ */ __name(function write_fixed32(value) {
|
|
939
|
+
return this._push(writeFixed32, 4, value >>> 0);
|
|
940
|
+
}, "write_fixed32");
|
|
941
|
+
Writer.prototype.sfixed32 = Writer.prototype.fixed32;
|
|
942
|
+
Writer.prototype.fixed64 = /* @__PURE__ */ __name(function write_fixed64(value) {
|
|
943
|
+
var bits = LongBits.from(value);
|
|
944
|
+
return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);
|
|
945
|
+
}, "write_fixed64");
|
|
946
|
+
Writer.prototype.sfixed64 = Writer.prototype.fixed64;
|
|
947
|
+
Writer.prototype.float = /* @__PURE__ */ __name(function write_float(value) {
|
|
948
|
+
return this._push(util.float.writeFloatLE, 4, value);
|
|
949
|
+
}, "write_float");
|
|
950
|
+
Writer.prototype.double = /* @__PURE__ */ __name(function write_double(value) {
|
|
951
|
+
return this._push(util.float.writeDoubleLE, 8, value);
|
|
952
|
+
}, "write_double");
|
|
953
|
+
var writeBytes = util.Array.prototype.set ? /* @__PURE__ */ __name(function writeBytes_set(val, buf, pos) {
|
|
954
|
+
buf.set(val, pos);
|
|
955
|
+
}, "writeBytes_set") : /* @__PURE__ */ __name(function writeBytes_for(val, buf, pos) {
|
|
956
|
+
for (var i = 0; i < val.length; ++i)
|
|
957
|
+
buf[pos + i] = val[i];
|
|
958
|
+
}, "writeBytes_for");
|
|
959
|
+
Writer.prototype.bytes = /* @__PURE__ */ __name(function write_bytes(value) {
|
|
960
|
+
var len = value.length >>> 0;
|
|
961
|
+
if (!len)
|
|
962
|
+
return this._push(writeByte, 1, 0);
|
|
963
|
+
if (util.isString(value)) {
|
|
964
|
+
var buf = Writer.alloc(len = base64.length(value));
|
|
965
|
+
base64.decode(value, buf, 0);
|
|
966
|
+
value = buf;
|
|
967
|
+
}
|
|
968
|
+
return this.uint32(len)._push(writeBytes, len, value);
|
|
969
|
+
}, "write_bytes");
|
|
970
|
+
Writer.prototype.string = /* @__PURE__ */ __name(function write_string(value) {
|
|
971
|
+
var len = utf8.length(value);
|
|
972
|
+
return len ? this.uint32(len)._push(utf8.write, len, value) : this._push(writeByte, 1, 0);
|
|
973
|
+
}, "write_string");
|
|
974
|
+
Writer.prototype.fork = /* @__PURE__ */ __name(function fork() {
|
|
975
|
+
this.states = new State(this);
|
|
976
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
977
|
+
this.len = 0;
|
|
978
|
+
return this;
|
|
979
|
+
}, "fork");
|
|
980
|
+
Writer.prototype.reset = /* @__PURE__ */ __name(function reset() {
|
|
981
|
+
if (this.states) {
|
|
982
|
+
this.head = this.states.head;
|
|
983
|
+
this.tail = this.states.tail;
|
|
984
|
+
this.len = this.states.len;
|
|
985
|
+
this.states = this.states.next;
|
|
986
|
+
} else {
|
|
987
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
988
|
+
this.len = 0;
|
|
989
|
+
}
|
|
990
|
+
return this;
|
|
991
|
+
}, "reset");
|
|
992
|
+
Writer.prototype.ldelim = /* @__PURE__ */ __name(function ldelim() {
|
|
993
|
+
var head = this.head, tail = this.tail, len = this.len;
|
|
994
|
+
this.reset().uint32(len);
|
|
995
|
+
if (len) {
|
|
996
|
+
this.tail.next = head.next;
|
|
997
|
+
this.tail = tail;
|
|
998
|
+
this.len += len;
|
|
999
|
+
}
|
|
1000
|
+
return this;
|
|
1001
|
+
}, "ldelim");
|
|
1002
|
+
Writer.prototype.finish = /* @__PURE__ */ __name(function finish() {
|
|
1003
|
+
var head = this.head.next, buf = this.constructor.alloc(this.len), pos = 0;
|
|
1004
|
+
while (head) {
|
|
1005
|
+
head.fn(head.val, buf, pos);
|
|
1006
|
+
pos += head.len;
|
|
1007
|
+
head = head.next;
|
|
1008
|
+
}
|
|
1009
|
+
return buf;
|
|
1010
|
+
}, "finish");
|
|
1011
|
+
Writer._configure = function(BufferWriter_) {
|
|
1012
|
+
BufferWriter = BufferWriter_;
|
|
1013
|
+
Writer.create = create();
|
|
1014
|
+
BufferWriter._configure();
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
});
|
|
1018
|
+
|
|
1019
|
+
// node_modules/protobufjs/src/writer_buffer.js
|
|
1020
|
+
var require_writer_buffer = __commonJS({
|
|
1021
|
+
"node_modules/protobufjs/src/writer_buffer.js"(exports2, module2) {
|
|
1022
|
+
"use strict";
|
|
1023
|
+
init_esbuild_shims();
|
|
1024
|
+
module2.exports = BufferWriter;
|
|
1025
|
+
var Writer = require_writer();
|
|
1026
|
+
(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;
|
|
1027
|
+
var util = require_minimal();
|
|
1028
|
+
function BufferWriter() {
|
|
1029
|
+
Writer.call(this);
|
|
1030
|
+
}
|
|
1031
|
+
__name(BufferWriter, "BufferWriter");
|
|
1032
|
+
BufferWriter._configure = function() {
|
|
1033
|
+
BufferWriter.alloc = util._Buffer_allocUnsafe;
|
|
1034
|
+
BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === "set" ? /* @__PURE__ */ __name(function writeBytesBuffer_set(val, buf, pos) {
|
|
1035
|
+
buf.set(val, pos);
|
|
1036
|
+
}, "writeBytesBuffer_set") : /* @__PURE__ */ __name(function writeBytesBuffer_copy(val, buf, pos) {
|
|
1037
|
+
if (val.copy)
|
|
1038
|
+
val.copy(buf, pos, 0, val.length);
|
|
1039
|
+
else for (var i = 0; i < val.length; )
|
|
1040
|
+
buf[pos++] = val[i++];
|
|
1041
|
+
}, "writeBytesBuffer_copy");
|
|
1042
|
+
};
|
|
1043
|
+
BufferWriter.prototype.bytes = /* @__PURE__ */ __name(function write_bytes_buffer(value) {
|
|
1044
|
+
if (util.isString(value))
|
|
1045
|
+
value = util._Buffer_from(value, "base64");
|
|
1046
|
+
var len = value.length >>> 0;
|
|
1047
|
+
this.uint32(len);
|
|
1048
|
+
if (len)
|
|
1049
|
+
this._push(BufferWriter.writeBytesBuffer, len, value);
|
|
1050
|
+
return this;
|
|
1051
|
+
}, "write_bytes_buffer");
|
|
1052
|
+
function writeStringBuffer(val, buf, pos) {
|
|
1053
|
+
if (val.length < 40)
|
|
1054
|
+
util.utf8.write(val, buf, pos);
|
|
1055
|
+
else if (buf.utf8Write)
|
|
1056
|
+
buf.utf8Write(val, pos);
|
|
1057
|
+
else
|
|
1058
|
+
buf.write(val, pos);
|
|
1059
|
+
}
|
|
1060
|
+
__name(writeStringBuffer, "writeStringBuffer");
|
|
1061
|
+
BufferWriter.prototype.string = /* @__PURE__ */ __name(function write_string_buffer(value) {
|
|
1062
|
+
var len = util.Buffer.byteLength(value);
|
|
1063
|
+
this.uint32(len);
|
|
1064
|
+
if (len)
|
|
1065
|
+
this._push(writeStringBuffer, len, value);
|
|
1066
|
+
return this;
|
|
1067
|
+
}, "write_string_buffer");
|
|
1068
|
+
BufferWriter._configure();
|
|
1069
|
+
}
|
|
1070
|
+
});
|
|
1071
|
+
|
|
1072
|
+
// node_modules/protobufjs/src/reader.js
|
|
1073
|
+
var require_reader = __commonJS({
|
|
1074
|
+
"node_modules/protobufjs/src/reader.js"(exports2, module2) {
|
|
1075
|
+
"use strict";
|
|
1076
|
+
init_esbuild_shims();
|
|
1077
|
+
module2.exports = Reader;
|
|
1078
|
+
var util = require_minimal();
|
|
1079
|
+
var BufferReader;
|
|
1080
|
+
var LongBits = util.LongBits;
|
|
1081
|
+
var utf8 = util.utf8;
|
|
1082
|
+
function indexOutOfRange(reader, writeLength) {
|
|
1083
|
+
return RangeError("index out of range: " + reader.pos + " + " + (writeLength || 1) + " > " + reader.len);
|
|
1084
|
+
}
|
|
1085
|
+
__name(indexOutOfRange, "indexOutOfRange");
|
|
1086
|
+
function Reader(buffer) {
|
|
1087
|
+
this.buf = buffer;
|
|
1088
|
+
this.pos = 0;
|
|
1089
|
+
this.len = buffer.length;
|
|
1090
|
+
}
|
|
1091
|
+
__name(Reader, "Reader");
|
|
1092
|
+
var create_array = typeof Uint8Array !== "undefined" ? /* @__PURE__ */ __name(function create_typed_array(buffer) {
|
|
1093
|
+
if (buffer instanceof Uint8Array || Array.isArray(buffer))
|
|
1094
|
+
return new Reader(buffer);
|
|
1095
|
+
throw Error("illegal buffer");
|
|
1096
|
+
}, "create_typed_array") : /* @__PURE__ */ __name(function create_array2(buffer) {
|
|
1097
|
+
if (Array.isArray(buffer))
|
|
1098
|
+
return new Reader(buffer);
|
|
1099
|
+
throw Error("illegal buffer");
|
|
1100
|
+
}, "create_array");
|
|
1101
|
+
var create = /* @__PURE__ */ __name(function create2() {
|
|
1102
|
+
return util.Buffer ? /* @__PURE__ */ __name(function create_buffer_setup(buffer) {
|
|
1103
|
+
return (Reader.create = /* @__PURE__ */ __name(function create_buffer(buffer2) {
|
|
1104
|
+
return util.Buffer.isBuffer(buffer2) ? new BufferReader(buffer2) : create_array(buffer2);
|
|
1105
|
+
}, "create_buffer"))(buffer);
|
|
1106
|
+
}, "create_buffer_setup") : create_array;
|
|
1107
|
+
}, "create");
|
|
1108
|
+
Reader.create = create();
|
|
1109
|
+
Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
|
|
1110
|
+
util.Array.prototype.slice;
|
|
1111
|
+
Reader.prototype.uint32 = (/* @__PURE__ */ __name(function read_uint32_setup() {
|
|
1112
|
+
var value = 4294967295;
|
|
1113
|
+
return /* @__PURE__ */ __name(function read_uint32() {
|
|
1114
|
+
value = (this.buf[this.pos] & 127) >>> 0;
|
|
1115
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1116
|
+
value = (value | (this.buf[this.pos] & 127) << 7) >>> 0;
|
|
1117
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1118
|
+
value = (value | (this.buf[this.pos] & 127) << 14) >>> 0;
|
|
1119
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1120
|
+
value = (value | (this.buf[this.pos] & 127) << 21) >>> 0;
|
|
1121
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1122
|
+
value = (value | (this.buf[this.pos] & 15) << 28) >>> 0;
|
|
1123
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1124
|
+
if ((this.pos += 5) > this.len) {
|
|
1125
|
+
this.pos = this.len;
|
|
1126
|
+
throw indexOutOfRange(this, 10);
|
|
1127
|
+
}
|
|
1128
|
+
return value;
|
|
1129
|
+
}, "read_uint32");
|
|
1130
|
+
}, "read_uint32_setup"))();
|
|
1131
|
+
Reader.prototype.int32 = /* @__PURE__ */ __name(function read_int32() {
|
|
1132
|
+
return this.uint32() | 0;
|
|
1133
|
+
}, "read_int32");
|
|
1134
|
+
Reader.prototype.sint32 = /* @__PURE__ */ __name(function read_sint32() {
|
|
1135
|
+
var value = this.uint32();
|
|
1136
|
+
return value >>> 1 ^ -(value & 1) | 0;
|
|
1137
|
+
}, "read_sint32");
|
|
1138
|
+
function readLongVarint() {
|
|
1139
|
+
var bits = new LongBits(0, 0);
|
|
1140
|
+
var i = 0;
|
|
1141
|
+
if (this.len - this.pos > 4) {
|
|
1142
|
+
for (; i < 4; ++i) {
|
|
1143
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
1144
|
+
if (this.buf[this.pos++] < 128)
|
|
1145
|
+
return bits;
|
|
1146
|
+
}
|
|
1147
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0;
|
|
1148
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0;
|
|
1149
|
+
if (this.buf[this.pos++] < 128)
|
|
1150
|
+
return bits;
|
|
1151
|
+
i = 0;
|
|
1152
|
+
} else {
|
|
1153
|
+
for (; i < 3; ++i) {
|
|
1154
|
+
if (this.pos >= this.len)
|
|
1155
|
+
throw indexOutOfRange(this);
|
|
1156
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
1157
|
+
if (this.buf[this.pos++] < 128)
|
|
1158
|
+
return bits;
|
|
1159
|
+
}
|
|
1160
|
+
bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;
|
|
1161
|
+
return bits;
|
|
1162
|
+
}
|
|
1163
|
+
if (this.len - this.pos > 4) {
|
|
1164
|
+
for (; i < 5; ++i) {
|
|
1165
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
1166
|
+
if (this.buf[this.pos++] < 128)
|
|
1167
|
+
return bits;
|
|
1168
|
+
}
|
|
1169
|
+
} else {
|
|
1170
|
+
for (; i < 5; ++i) {
|
|
1171
|
+
if (this.pos >= this.len)
|
|
1172
|
+
throw indexOutOfRange(this);
|
|
1173
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
1174
|
+
if (this.buf[this.pos++] < 128)
|
|
1175
|
+
return bits;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
throw Error("invalid varint encoding");
|
|
1179
|
+
}
|
|
1180
|
+
__name(readLongVarint, "readLongVarint");
|
|
1181
|
+
Reader.prototype.bool = /* @__PURE__ */ __name(function read_bool() {
|
|
1182
|
+
return this.uint32() !== 0;
|
|
1183
|
+
}, "read_bool");
|
|
1184
|
+
function readFixed32_end(buf, end) {
|
|
1185
|
+
return (buf[end - 4] | buf[end - 3] << 8 | buf[end - 2] << 16 | buf[end - 1] << 24) >>> 0;
|
|
1186
|
+
}
|
|
1187
|
+
__name(readFixed32_end, "readFixed32_end");
|
|
1188
|
+
Reader.prototype.fixed32 = /* @__PURE__ */ __name(function read_fixed32() {
|
|
1189
|
+
if (this.pos + 4 > this.len)
|
|
1190
|
+
throw indexOutOfRange(this, 4);
|
|
1191
|
+
return readFixed32_end(this.buf, this.pos += 4);
|
|
1192
|
+
}, "read_fixed32");
|
|
1193
|
+
Reader.prototype.sfixed32 = /* @__PURE__ */ __name(function read_sfixed32() {
|
|
1194
|
+
if (this.pos + 4 > this.len)
|
|
1195
|
+
throw indexOutOfRange(this, 4);
|
|
1196
|
+
return readFixed32_end(this.buf, this.pos += 4) | 0;
|
|
1197
|
+
}, "read_sfixed32");
|
|
1198
|
+
function readFixed64() {
|
|
1199
|
+
if (this.pos + 8 > this.len)
|
|
1200
|
+
throw indexOutOfRange(this, 8);
|
|
1201
|
+
return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4));
|
|
1202
|
+
}
|
|
1203
|
+
__name(readFixed64, "readFixed64");
|
|
1204
|
+
Reader.prototype.float = /* @__PURE__ */ __name(function read_float() {
|
|
1205
|
+
if (this.pos + 4 > this.len)
|
|
1206
|
+
throw indexOutOfRange(this, 4);
|
|
1207
|
+
var value = util.float.readFloatLE(this.buf, this.pos);
|
|
1208
|
+
this.pos += 4;
|
|
1209
|
+
return value;
|
|
1210
|
+
}, "read_float");
|
|
1211
|
+
Reader.prototype.double = /* @__PURE__ */ __name(function read_double() {
|
|
1212
|
+
if (this.pos + 8 > this.len)
|
|
1213
|
+
throw indexOutOfRange(this, 4);
|
|
1214
|
+
var value = util.float.readDoubleLE(this.buf, this.pos);
|
|
1215
|
+
this.pos += 8;
|
|
1216
|
+
return value;
|
|
1217
|
+
}, "read_double");
|
|
1218
|
+
Reader.prototype.bytes = /* @__PURE__ */ __name(function read_bytes() {
|
|
1219
|
+
var length = this.uint32(), start = this.pos, end = this.pos + length;
|
|
1220
|
+
if (end > this.len)
|
|
1221
|
+
throw indexOutOfRange(this, length);
|
|
1222
|
+
this.pos += length;
|
|
1223
|
+
if (Array.isArray(this.buf))
|
|
1224
|
+
return this.buf.slice(start, end);
|
|
1225
|
+
if (start === end) {
|
|
1226
|
+
var nativeBuffer = util.Buffer;
|
|
1227
|
+
return nativeBuffer ? nativeBuffer.alloc(0) : new this.buf.constructor(0);
|
|
1228
|
+
}
|
|
1229
|
+
return this._slice.call(this.buf, start, end);
|
|
1230
|
+
}, "read_bytes");
|
|
1231
|
+
Reader.prototype.string = /* @__PURE__ */ __name(function read_string() {
|
|
1232
|
+
var bytes = this.bytes();
|
|
1233
|
+
return utf8.read(bytes, 0, bytes.length);
|
|
1234
|
+
}, "read_string");
|
|
1235
|
+
Reader.prototype.skip = /* @__PURE__ */ __name(function skip(length) {
|
|
1236
|
+
if (typeof length === "number") {
|
|
1237
|
+
if (this.pos + length > this.len)
|
|
1238
|
+
throw indexOutOfRange(this, length);
|
|
1239
|
+
this.pos += length;
|
|
1240
|
+
} else {
|
|
1241
|
+
do {
|
|
1242
|
+
if (this.pos >= this.len)
|
|
1243
|
+
throw indexOutOfRange(this);
|
|
1244
|
+
} while (this.buf[this.pos++] & 128);
|
|
1245
|
+
}
|
|
1246
|
+
return this;
|
|
1247
|
+
}, "skip");
|
|
1248
|
+
Reader.prototype.skipType = function(wireType) {
|
|
1249
|
+
switch (wireType) {
|
|
1250
|
+
case 0:
|
|
1251
|
+
this.skip();
|
|
1252
|
+
break;
|
|
1253
|
+
case 1:
|
|
1254
|
+
this.skip(8);
|
|
1255
|
+
break;
|
|
1256
|
+
case 2:
|
|
1257
|
+
this.skip(this.uint32());
|
|
1258
|
+
break;
|
|
1259
|
+
case 3:
|
|
1260
|
+
while ((wireType = this.uint32() & 7) !== 4) {
|
|
1261
|
+
this.skipType(wireType);
|
|
1262
|
+
}
|
|
1263
|
+
break;
|
|
1264
|
+
case 5:
|
|
1265
|
+
this.skip(4);
|
|
1266
|
+
break;
|
|
1267
|
+
/* istanbul ignore next */
|
|
1268
|
+
default:
|
|
1269
|
+
throw Error("invalid wire type " + wireType + " at offset " + this.pos);
|
|
1270
|
+
}
|
|
1271
|
+
return this;
|
|
1272
|
+
};
|
|
1273
|
+
Reader._configure = function(BufferReader_) {
|
|
1274
|
+
BufferReader = BufferReader_;
|
|
1275
|
+
Reader.create = create();
|
|
1276
|
+
BufferReader._configure();
|
|
1277
|
+
var fn = util.Long ? "toLong" : (
|
|
1278
|
+
/* istanbul ignore next */
|
|
1279
|
+
"toNumber"
|
|
1280
|
+
);
|
|
1281
|
+
util.merge(Reader.prototype, {
|
|
1282
|
+
int64: /* @__PURE__ */ __name(function read_int64() {
|
|
1283
|
+
return readLongVarint.call(this)[fn](false);
|
|
1284
|
+
}, "read_int64"),
|
|
1285
|
+
uint64: /* @__PURE__ */ __name(function read_uint64() {
|
|
1286
|
+
return readLongVarint.call(this)[fn](true);
|
|
1287
|
+
}, "read_uint64"),
|
|
1288
|
+
sint64: /* @__PURE__ */ __name(function read_sint64() {
|
|
1289
|
+
return readLongVarint.call(this).zzDecode()[fn](false);
|
|
1290
|
+
}, "read_sint64"),
|
|
1291
|
+
fixed64: /* @__PURE__ */ __name(function read_fixed64() {
|
|
1292
|
+
return readFixed64.call(this)[fn](true);
|
|
1293
|
+
}, "read_fixed64"),
|
|
1294
|
+
sfixed64: /* @__PURE__ */ __name(function read_sfixed64() {
|
|
1295
|
+
return readFixed64.call(this)[fn](false);
|
|
1296
|
+
}, "read_sfixed64")
|
|
1297
|
+
});
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
});
|
|
1301
|
+
|
|
1302
|
+
// node_modules/protobufjs/src/reader_buffer.js
|
|
1303
|
+
var require_reader_buffer = __commonJS({
|
|
1304
|
+
"node_modules/protobufjs/src/reader_buffer.js"(exports2, module2) {
|
|
1305
|
+
"use strict";
|
|
1306
|
+
init_esbuild_shims();
|
|
1307
|
+
module2.exports = BufferReader;
|
|
1308
|
+
var Reader = require_reader();
|
|
1309
|
+
(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;
|
|
1310
|
+
var util = require_minimal();
|
|
1311
|
+
function BufferReader(buffer) {
|
|
1312
|
+
Reader.call(this, buffer);
|
|
1313
|
+
}
|
|
1314
|
+
__name(BufferReader, "BufferReader");
|
|
1315
|
+
BufferReader._configure = function() {
|
|
1316
|
+
if (util.Buffer)
|
|
1317
|
+
BufferReader.prototype._slice = util.Buffer.prototype.slice;
|
|
1318
|
+
};
|
|
1319
|
+
BufferReader.prototype.string = /* @__PURE__ */ __name(function read_string_buffer() {
|
|
1320
|
+
var len = this.uint32();
|
|
1321
|
+
return this.buf.utf8Slice ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len)) : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + len, this.len));
|
|
1322
|
+
}, "read_string_buffer");
|
|
1323
|
+
BufferReader._configure();
|
|
1324
|
+
}
|
|
1325
|
+
});
|
|
1326
|
+
|
|
1327
|
+
// node_modules/protobufjs/src/rpc/service.js
|
|
1328
|
+
var require_service = __commonJS({
|
|
1329
|
+
"node_modules/protobufjs/src/rpc/service.js"(exports2, module2) {
|
|
1330
|
+
"use strict";
|
|
1331
|
+
init_esbuild_shims();
|
|
1332
|
+
module2.exports = Service;
|
|
1333
|
+
var util = require_minimal();
|
|
1334
|
+
(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;
|
|
1335
|
+
function Service(rpcImpl, requestDelimited, responseDelimited) {
|
|
1336
|
+
if (typeof rpcImpl !== "function")
|
|
1337
|
+
throw TypeError("rpcImpl must be a function");
|
|
1338
|
+
util.EventEmitter.call(this);
|
|
1339
|
+
this.rpcImpl = rpcImpl;
|
|
1340
|
+
this.requestDelimited = Boolean(requestDelimited);
|
|
1341
|
+
this.responseDelimited = Boolean(responseDelimited);
|
|
1342
|
+
}
|
|
1343
|
+
__name(Service, "Service");
|
|
1344
|
+
Service.prototype.rpcCall = /* @__PURE__ */ __name(function rpcCall(method, requestCtor, responseCtor, request, callback) {
|
|
1345
|
+
if (!request)
|
|
1346
|
+
throw TypeError("request must be specified");
|
|
1347
|
+
var self2 = this;
|
|
1348
|
+
if (!callback)
|
|
1349
|
+
return util.asPromise(rpcCall, self2, method, requestCtor, responseCtor, request);
|
|
1350
|
+
if (!self2.rpcImpl) {
|
|
1351
|
+
setTimeout(function() {
|
|
1352
|
+
callback(Error("already ended"));
|
|
1353
|
+
}, 0);
|
|
1354
|
+
return void 0;
|
|
1355
|
+
}
|
|
1356
|
+
try {
|
|
1357
|
+
return self2.rpcImpl(
|
|
1358
|
+
method,
|
|
1359
|
+
requestCtor[self2.requestDelimited ? "encodeDelimited" : "encode"](request).finish(),
|
|
1360
|
+
/* @__PURE__ */ __name(function rpcCallback(err, response) {
|
|
1361
|
+
if (err) {
|
|
1362
|
+
self2.emit("error", err, method);
|
|
1363
|
+
return callback(err);
|
|
1364
|
+
}
|
|
1365
|
+
if (response === null) {
|
|
1366
|
+
self2.end(
|
|
1367
|
+
/* endedByRPC */
|
|
1368
|
+
true
|
|
1369
|
+
);
|
|
1370
|
+
return void 0;
|
|
1371
|
+
}
|
|
1372
|
+
if (!(response instanceof responseCtor)) {
|
|
1373
|
+
try {
|
|
1374
|
+
response = responseCtor[self2.responseDelimited ? "decodeDelimited" : "decode"](response);
|
|
1375
|
+
} catch (err2) {
|
|
1376
|
+
self2.emit("error", err2, method);
|
|
1377
|
+
return callback(err2);
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
self2.emit("data", response, method);
|
|
1381
|
+
return callback(null, response);
|
|
1382
|
+
}, "rpcCallback")
|
|
1383
|
+
);
|
|
1384
|
+
} catch (err) {
|
|
1385
|
+
self2.emit("error", err, method);
|
|
1386
|
+
setTimeout(function() {
|
|
1387
|
+
callback(err);
|
|
1388
|
+
}, 0);
|
|
1389
|
+
return void 0;
|
|
1390
|
+
}
|
|
1391
|
+
}, "rpcCall");
|
|
1392
|
+
Service.prototype.end = /* @__PURE__ */ __name(function end(endedByRPC) {
|
|
1393
|
+
if (this.rpcImpl) {
|
|
1394
|
+
if (!endedByRPC)
|
|
1395
|
+
this.rpcImpl(null, null, null);
|
|
1396
|
+
this.rpcImpl = null;
|
|
1397
|
+
this.emit("end").off();
|
|
1398
|
+
}
|
|
1399
|
+
return this;
|
|
1400
|
+
}, "end");
|
|
1401
|
+
}
|
|
1402
|
+
});
|
|
1403
|
+
|
|
1404
|
+
// node_modules/protobufjs/src/rpc.js
|
|
1405
|
+
var require_rpc = __commonJS({
|
|
1406
|
+
"node_modules/protobufjs/src/rpc.js"(exports2) {
|
|
1407
|
+
"use strict";
|
|
1408
|
+
init_esbuild_shims();
|
|
1409
|
+
var rpc = exports2;
|
|
1410
|
+
rpc.Service = require_service();
|
|
1411
|
+
}
|
|
1412
|
+
});
|
|
1413
|
+
|
|
1414
|
+
// node_modules/protobufjs/src/roots.js
|
|
1415
|
+
var require_roots = __commonJS({
|
|
1416
|
+
"node_modules/protobufjs/src/roots.js"(exports2, module2) {
|
|
1417
|
+
"use strict";
|
|
1418
|
+
init_esbuild_shims();
|
|
1419
|
+
module2.exports = {};
|
|
1420
|
+
}
|
|
1421
|
+
});
|
|
1422
|
+
|
|
1423
|
+
// node_modules/protobufjs/src/index-minimal.js
|
|
1424
|
+
var require_index_minimal = __commonJS({
|
|
1425
|
+
"node_modules/protobufjs/src/index-minimal.js"(exports2) {
|
|
1426
|
+
"use strict";
|
|
1427
|
+
init_esbuild_shims();
|
|
1428
|
+
var protobuf = exports2;
|
|
1429
|
+
protobuf.build = "minimal";
|
|
1430
|
+
protobuf.Writer = require_writer();
|
|
1431
|
+
protobuf.BufferWriter = require_writer_buffer();
|
|
1432
|
+
protobuf.Reader = require_reader();
|
|
1433
|
+
protobuf.BufferReader = require_reader_buffer();
|
|
1434
|
+
protobuf.util = require_minimal();
|
|
1435
|
+
protobuf.rpc = require_rpc();
|
|
1436
|
+
protobuf.roots = require_roots();
|
|
1437
|
+
protobuf.configure = configure;
|
|
1438
|
+
function configure() {
|
|
1439
|
+
protobuf.util._configure();
|
|
1440
|
+
protobuf.Writer._configure(protobuf.BufferWriter);
|
|
1441
|
+
protobuf.Reader._configure(protobuf.BufferReader);
|
|
1442
|
+
}
|
|
1443
|
+
__name(configure, "configure");
|
|
1444
|
+
configure();
|
|
1445
|
+
}
|
|
1446
|
+
});
|
|
1447
|
+
|
|
1448
|
+
// node_modules/protobufjs/minimal.js
|
|
1449
|
+
var require_minimal2 = __commonJS({
|
|
1450
|
+
"node_modules/protobufjs/minimal.js"(exports2, module2) {
|
|
1451
|
+
"use strict";
|
|
1452
|
+
init_esbuild_shims();
|
|
1453
|
+
module2.exports = require_index_minimal();
|
|
1454
|
+
}
|
|
1455
|
+
});
|
|
1456
|
+
|
|
1457
|
+
export {
|
|
1458
|
+
require_aspromise,
|
|
1459
|
+
require_inquire,
|
|
1460
|
+
require_minimal,
|
|
1461
|
+
require_writer,
|
|
1462
|
+
require_reader,
|
|
1463
|
+
require_rpc,
|
|
1464
|
+
require_roots,
|
|
1465
|
+
require_index_minimal,
|
|
1466
|
+
require_minimal2
|
|
1467
|
+
};
|