@caronashow/api 0.4.0 → 0.4.1

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/dist/index.cjs ADDED
@@ -0,0 +1,3099 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ function __accessProp(key) {
6
+ return this[key];
7
+ }
8
+ var __toCommonJS = (from) => {
9
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
10
+ if (entry)
11
+ return entry;
12
+ entry = __defProp({}, "__esModule", { value: true });
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(entry, key))
16
+ __defProp(entry, key, {
17
+ get: __accessProp.bind(from, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ __moduleCache.set(from, entry);
22
+ return entry;
23
+ };
24
+ var __moduleCache;
25
+ var __returnValue = (v) => v;
26
+ function __exportSetter(name, newValue) {
27
+ this[name] = __returnValue.bind(null, newValue);
28
+ }
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, {
32
+ get: all[name],
33
+ enumerable: true,
34
+ configurable: true,
35
+ set: __exportSetter.bind(all, name)
36
+ });
37
+ };
38
+
39
+ // src/index.ts
40
+ var exports_src = {};
41
+ __export(exports_src, {
42
+ file_google_type_latlng: () => file_google_type_latlng,
43
+ file_caronashow_types_v1_user: () => file_caronashow_types_v1_user,
44
+ file_caronashow_service_v1_map: () => file_caronashow_service_v1_map,
45
+ file_caronashow_pooler_v1_pooler: () => file_caronashow_pooler_v1_pooler,
46
+ file_caronashow_poc_v1_routes: () => file_caronashow_poc_v1_routes,
47
+ file_caronashow_poc_v1_points: () => file_caronashow_poc_v1_points,
48
+ file_caronashow_poc_v1_poc: () => file_caronashow_poc_v1_poc,
49
+ file_caronashow_poc_v1_groups: () => file_caronashow_poc_v1_groups,
50
+ VehicleSchema: () => VehicleSchema,
51
+ UserSchema: () => UserSchema,
52
+ RouteTargetTypeSchema: () => RouteTargetTypeSchema,
53
+ RouteTargetType: () => RouteTargetType,
54
+ PoolerService: () => PoolerService,
55
+ PocService: () => PocService,
56
+ PersonSchema: () => PersonSchema,
57
+ PersonRankSchema: () => PersonRankSchema,
58
+ PersonRank: () => PersonRank,
59
+ PersonIconSchema: () => PersonIconSchema,
60
+ PersonIcon: () => PersonIcon,
61
+ PassengerPointSchema: () => PassengerPointSchema,
62
+ OrganizationPointSchema: () => OrganizationPointSchema,
63
+ OptimizedRouteSchema: () => OptimizedRouteSchema,
64
+ OperationStateSchema: () => OperationStateSchema,
65
+ OperationState: () => OperationState,
66
+ OperationSchema: () => OperationSchema,
67
+ MatchingAlgorithmSchema: () => MatchingAlgorithmSchema,
68
+ MatchingAlgorithm: () => MatchingAlgorithm,
69
+ MatchGroupSchema: () => MatchGroupSchema,
70
+ MapService: () => MapService,
71
+ ListOperationsResponseSchema: () => ListOperationsResponseSchema,
72
+ ListOperationsRequestSchema: () => ListOperationsRequestSchema,
73
+ LatLngSchema: () => LatLngSchema,
74
+ GetStateOfOperationResponseSchema: () => GetStateOfOperationResponseSchema,
75
+ GetStateOfOperationRequestSchema: () => GetStateOfOperationRequestSchema,
76
+ GetOptimizedRoutesResponseSchema: () => GetOptimizedRoutesResponseSchema,
77
+ GetOptimizedRoutesRequestSchema: () => GetOptimizedRoutesRequestSchema,
78
+ GetMapPointsResponseSchema: () => GetMapPointsResponseSchema,
79
+ GetMapPointsRequestSchema: () => GetMapPointsRequestSchema,
80
+ GetMapPointGroupsResponseSchema: () => GetMapPointGroupsResponseSchema,
81
+ GetMapPointGroupsRequestSchema: () => GetMapPointGroupsRequestSchema,
82
+ GetDirectRoutesResponseSchema: () => GetDirectRoutesResponseSchema,
83
+ GetDirectRoutesRequestSchema: () => GetDirectRoutesRequestSchema,
84
+ ExecuteMatchingAlgorithmOnDatasetResponseSchema: () => ExecuteMatchingAlgorithmOnDatasetResponseSchema,
85
+ ExecuteMatchingAlgorithmOnDatasetRequestSchema: () => ExecuteMatchingAlgorithmOnDatasetRequestSchema,
86
+ DriverPointSchema: () => DriverPointSchema,
87
+ DirectRouteSchema: () => DirectRouteSchema,
88
+ DatasetSchema: () => DatasetSchema,
89
+ Dataset: () => Dataset,
90
+ AddressSchema: () => AddressSchema
91
+ });
92
+ module.exports = __toCommonJS(exports_src);
93
+
94
+ // node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js
95
+ function protoCamelCase(snakeCase) {
96
+ let capNext = false;
97
+ const b = [];
98
+ for (let i = 0;i < snakeCase.length; i++) {
99
+ let c = snakeCase.charAt(i);
100
+ switch (c) {
101
+ case "_":
102
+ capNext = true;
103
+ break;
104
+ case "0":
105
+ case "1":
106
+ case "2":
107
+ case "3":
108
+ case "4":
109
+ case "5":
110
+ case "6":
111
+ case "7":
112
+ case "8":
113
+ case "9":
114
+ b.push(c);
115
+ capNext = false;
116
+ break;
117
+ default:
118
+ if (capNext) {
119
+ capNext = false;
120
+ c = c.toUpperCase();
121
+ }
122
+ b.push(c);
123
+ break;
124
+ }
125
+ }
126
+ return b.join("");
127
+ }
128
+ var reservedObjectProperties = new Set([
129
+ "constructor",
130
+ "toString",
131
+ "toJSON",
132
+ "valueOf"
133
+ ]);
134
+ function safeObjectProperty(name) {
135
+ return reservedObjectProperties.has(name) ? name + "$" : name;
136
+ }
137
+
138
+ // node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js
139
+ function varint64read() {
140
+ let lowBits = 0;
141
+ let highBits = 0;
142
+ for (let shift = 0;shift < 28; shift += 7) {
143
+ let b = this.buf[this.pos++];
144
+ lowBits |= (b & 127) << shift;
145
+ if ((b & 128) == 0) {
146
+ this.assertBounds();
147
+ return [lowBits, highBits];
148
+ }
149
+ }
150
+ let middleByte = this.buf[this.pos++];
151
+ lowBits |= (middleByte & 15) << 28;
152
+ highBits = (middleByte & 112) >> 4;
153
+ if ((middleByte & 128) == 0) {
154
+ this.assertBounds();
155
+ return [lowBits, highBits];
156
+ }
157
+ for (let shift = 3;shift <= 31; shift += 7) {
158
+ let b = this.buf[this.pos++];
159
+ highBits |= (b & 127) << shift;
160
+ if ((b & 128) == 0) {
161
+ this.assertBounds();
162
+ return [lowBits, highBits];
163
+ }
164
+ }
165
+ throw new Error("invalid varint");
166
+ }
167
+ var TWO_PWR_32_DBL = 4294967296;
168
+ function int64FromString(dec) {
169
+ const minus = dec[0] === "-";
170
+ if (minus) {
171
+ dec = dec.slice(1);
172
+ }
173
+ const base = 1e6;
174
+ let lowBits = 0;
175
+ let highBits = 0;
176
+ function add1e6digit(begin, end) {
177
+ const digit1e6 = Number(dec.slice(begin, end));
178
+ highBits *= base;
179
+ lowBits = lowBits * base + digit1e6;
180
+ if (lowBits >= TWO_PWR_32_DBL) {
181
+ highBits = highBits + (lowBits / TWO_PWR_32_DBL | 0);
182
+ lowBits = lowBits % TWO_PWR_32_DBL;
183
+ }
184
+ }
185
+ add1e6digit(-24, -18);
186
+ add1e6digit(-18, -12);
187
+ add1e6digit(-12, -6);
188
+ add1e6digit(-6);
189
+ return minus ? negate(lowBits, highBits) : newBits(lowBits, highBits);
190
+ }
191
+ function int64ToString(lo, hi) {
192
+ let bits = newBits(lo, hi);
193
+ const negative = bits.hi & 2147483648;
194
+ if (negative) {
195
+ bits = negate(bits.lo, bits.hi);
196
+ }
197
+ const result = uInt64ToString(bits.lo, bits.hi);
198
+ return negative ? "-" + result : result;
199
+ }
200
+ function uInt64ToString(lo, hi) {
201
+ ({ lo, hi } = toUnsigned(lo, hi));
202
+ if (hi <= 2097151) {
203
+ return String(TWO_PWR_32_DBL * hi + lo);
204
+ }
205
+ const low = lo & 16777215;
206
+ const mid = (lo >>> 24 | hi << 8) & 16777215;
207
+ const high = hi >> 16 & 65535;
208
+ let digitA = low + mid * 6777216 + high * 6710656;
209
+ let digitB = mid + high * 8147497;
210
+ let digitC = high * 2;
211
+ const base = 1e7;
212
+ if (digitA >= base) {
213
+ digitB += Math.floor(digitA / base);
214
+ digitA %= base;
215
+ }
216
+ if (digitB >= base) {
217
+ digitC += Math.floor(digitB / base);
218
+ digitB %= base;
219
+ }
220
+ return digitC.toString() + decimalFrom1e7WithLeadingZeros(digitB) + decimalFrom1e7WithLeadingZeros(digitA);
221
+ }
222
+ function toUnsigned(lo, hi) {
223
+ return { lo: lo >>> 0, hi: hi >>> 0 };
224
+ }
225
+ function newBits(lo, hi) {
226
+ return { lo: lo | 0, hi: hi | 0 };
227
+ }
228
+ function negate(lowBits, highBits) {
229
+ highBits = ~highBits;
230
+ if (lowBits) {
231
+ lowBits = ~lowBits + 1;
232
+ } else {
233
+ highBits += 1;
234
+ }
235
+ return newBits(lowBits, highBits);
236
+ }
237
+ var decimalFrom1e7WithLeadingZeros = (digit1e7) => {
238
+ const partial = String(digit1e7);
239
+ return "0000000".slice(partial.length) + partial;
240
+ };
241
+ function varint32write(value, bytes) {
242
+ if (value >= 0) {
243
+ while (value > 127) {
244
+ bytes.push(value & 127 | 128);
245
+ value = value >>> 7;
246
+ }
247
+ bytes.push(value);
248
+ } else {
249
+ for (let i = 0;i < 9; i++) {
250
+ bytes.push(value & 127 | 128);
251
+ value = value >> 7;
252
+ }
253
+ bytes.push(1);
254
+ }
255
+ }
256
+ function varint32read() {
257
+ let b = this.buf[this.pos++];
258
+ let result = b & 127;
259
+ if ((b & 128) == 0) {
260
+ this.assertBounds();
261
+ return result;
262
+ }
263
+ b = this.buf[this.pos++];
264
+ result |= (b & 127) << 7;
265
+ if ((b & 128) == 0) {
266
+ this.assertBounds();
267
+ return result;
268
+ }
269
+ b = this.buf[this.pos++];
270
+ result |= (b & 127) << 14;
271
+ if ((b & 128) == 0) {
272
+ this.assertBounds();
273
+ return result;
274
+ }
275
+ b = this.buf[this.pos++];
276
+ result |= (b & 127) << 21;
277
+ if ((b & 128) == 0) {
278
+ this.assertBounds();
279
+ return result;
280
+ }
281
+ b = this.buf[this.pos++];
282
+ result |= (b & 15) << 28;
283
+ for (let readBytes = 5;(b & 128) !== 0 && readBytes < 10; readBytes++)
284
+ b = this.buf[this.pos++];
285
+ if ((b & 128) != 0)
286
+ throw new Error("invalid varint");
287
+ this.assertBounds();
288
+ return result >>> 0;
289
+ }
290
+
291
+ // node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js
292
+ var protoInt64 = /* @__PURE__ */ makeInt64Support();
293
+ function makeInt64Support() {
294
+ const dv = new DataView(new ArrayBuffer(8));
295
+ const ok = typeof BigInt === "function" && typeof dv.getBigInt64 === "function" && typeof dv.getBigUint64 === "function" && typeof dv.setBigInt64 === "function" && typeof dv.setBigUint64 === "function" && (!!globalThis.Deno || typeof process != "object" || typeof process.env != "object" || process.env.BUF_BIGINT_DISABLE !== "1");
296
+ if (ok) {
297
+ const MIN = BigInt("-9223372036854775808");
298
+ const MAX = BigInt("9223372036854775807");
299
+ const UMIN = BigInt("0");
300
+ const UMAX = BigInt("18446744073709551615");
301
+ return {
302
+ zero: BigInt(0),
303
+ supported: true,
304
+ parse(value) {
305
+ const bi = typeof value == "bigint" ? value : BigInt(value);
306
+ if (bi > MAX || bi < MIN) {
307
+ throw new Error(`invalid int64: ${value}`);
308
+ }
309
+ return bi;
310
+ },
311
+ uParse(value) {
312
+ const bi = typeof value == "bigint" ? value : BigInt(value);
313
+ if (bi > UMAX || bi < UMIN) {
314
+ throw new Error(`invalid uint64: ${value}`);
315
+ }
316
+ return bi;
317
+ },
318
+ enc(value) {
319
+ dv.setBigInt64(0, this.parse(value), true);
320
+ return {
321
+ lo: dv.getInt32(0, true),
322
+ hi: dv.getInt32(4, true)
323
+ };
324
+ },
325
+ uEnc(value) {
326
+ dv.setBigInt64(0, this.uParse(value), true);
327
+ return {
328
+ lo: dv.getInt32(0, true),
329
+ hi: dv.getInt32(4, true)
330
+ };
331
+ },
332
+ dec(lo, hi) {
333
+ dv.setInt32(0, lo, true);
334
+ dv.setInt32(4, hi, true);
335
+ return dv.getBigInt64(0, true);
336
+ },
337
+ uDec(lo, hi) {
338
+ dv.setInt32(0, lo, true);
339
+ dv.setInt32(4, hi, true);
340
+ return dv.getBigUint64(0, true);
341
+ }
342
+ };
343
+ }
344
+ return {
345
+ zero: "0",
346
+ supported: false,
347
+ parse(value) {
348
+ if (typeof value != "string") {
349
+ value = value.toString();
350
+ }
351
+ assertInt64String(value);
352
+ return value;
353
+ },
354
+ uParse(value) {
355
+ if (typeof value != "string") {
356
+ value = value.toString();
357
+ }
358
+ assertUInt64String(value);
359
+ return value;
360
+ },
361
+ enc(value) {
362
+ if (typeof value != "string") {
363
+ value = value.toString();
364
+ }
365
+ assertInt64String(value);
366
+ return int64FromString(value);
367
+ },
368
+ uEnc(value) {
369
+ if (typeof value != "string") {
370
+ value = value.toString();
371
+ }
372
+ assertUInt64String(value);
373
+ return int64FromString(value);
374
+ },
375
+ dec(lo, hi) {
376
+ return int64ToString(lo, hi);
377
+ },
378
+ uDec(lo, hi) {
379
+ return uInt64ToString(lo, hi);
380
+ }
381
+ };
382
+ }
383
+ function assertInt64String(value) {
384
+ if (!/^-?[0-9]+$/.test(value)) {
385
+ throw new Error("invalid int64: " + value);
386
+ }
387
+ }
388
+ function assertUInt64String(value) {
389
+ if (!/^[0-9]+$/.test(value)) {
390
+ throw new Error("invalid uint64: " + value);
391
+ }
392
+ }
393
+
394
+ // node_modules/@bufbuild/protobuf/dist/esm/descriptors.js
395
+ var ScalarType;
396
+ (function(ScalarType2) {
397
+ ScalarType2[ScalarType2["DOUBLE"] = 1] = "DOUBLE";
398
+ ScalarType2[ScalarType2["FLOAT"] = 2] = "FLOAT";
399
+ ScalarType2[ScalarType2["INT64"] = 3] = "INT64";
400
+ ScalarType2[ScalarType2["UINT64"] = 4] = "UINT64";
401
+ ScalarType2[ScalarType2["INT32"] = 5] = "INT32";
402
+ ScalarType2[ScalarType2["FIXED64"] = 6] = "FIXED64";
403
+ ScalarType2[ScalarType2["FIXED32"] = 7] = "FIXED32";
404
+ ScalarType2[ScalarType2["BOOL"] = 8] = "BOOL";
405
+ ScalarType2[ScalarType2["STRING"] = 9] = "STRING";
406
+ ScalarType2[ScalarType2["BYTES"] = 12] = "BYTES";
407
+ ScalarType2[ScalarType2["UINT32"] = 13] = "UINT32";
408
+ ScalarType2[ScalarType2["SFIXED32"] = 15] = "SFIXED32";
409
+ ScalarType2[ScalarType2["SFIXED64"] = 16] = "SFIXED64";
410
+ ScalarType2[ScalarType2["SINT32"] = 17] = "SINT32";
411
+ ScalarType2[ScalarType2["SINT64"] = 18] = "SINT64";
412
+ })(ScalarType || (ScalarType = {}));
413
+
414
+ // node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js
415
+ function scalarZeroValue(type, longAsString) {
416
+ switch (type) {
417
+ case ScalarType.STRING:
418
+ return "";
419
+ case ScalarType.BOOL:
420
+ return false;
421
+ case ScalarType.DOUBLE:
422
+ case ScalarType.FLOAT:
423
+ return 0;
424
+ case ScalarType.INT64:
425
+ case ScalarType.UINT64:
426
+ case ScalarType.SFIXED64:
427
+ case ScalarType.FIXED64:
428
+ case ScalarType.SINT64:
429
+ return longAsString ? "0" : protoInt64.zero;
430
+ case ScalarType.BYTES:
431
+ return new Uint8Array(0);
432
+ default:
433
+ return 0;
434
+ }
435
+ }
436
+ function isScalarZeroValue(type, value) {
437
+ switch (type) {
438
+ case ScalarType.BOOL:
439
+ return value === false;
440
+ case ScalarType.STRING:
441
+ return value === "";
442
+ case ScalarType.BYTES:
443
+ return value instanceof Uint8Array && !value.byteLength;
444
+ default:
445
+ return value == 0;
446
+ }
447
+ }
448
+
449
+ // node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js
450
+ var IMPLICIT = 2;
451
+ var unsafeLocal = Symbol.for("reflect unsafe local");
452
+ function unsafeOneofCase(target, oneof) {
453
+ const c = target[oneof.localName].case;
454
+ if (c === undefined) {
455
+ return c;
456
+ }
457
+ return oneof.fields.find((f) => f.localName === c);
458
+ }
459
+ function unsafeIsSet(target, field) {
460
+ const name = field.localName;
461
+ if (field.oneof) {
462
+ return target[field.oneof.localName].case === name;
463
+ }
464
+ if (field.presence != IMPLICIT) {
465
+ return target[name] !== undefined && Object.prototype.hasOwnProperty.call(target, name);
466
+ }
467
+ switch (field.fieldKind) {
468
+ case "list":
469
+ return target[name].length > 0;
470
+ case "map":
471
+ return Object.keys(target[name]).length > 0;
472
+ case "scalar":
473
+ return !isScalarZeroValue(field.scalar, target[name]);
474
+ case "enum":
475
+ return target[name] !== field.enum.values[0].number;
476
+ }
477
+ throw new Error("message field with implicit presence");
478
+ }
479
+ function unsafeIsSetExplicit(target, localName) {
480
+ return Object.prototype.hasOwnProperty.call(target, localName) && target[localName] !== undefined;
481
+ }
482
+ function unsafeGet(target, field) {
483
+ if (field.oneof) {
484
+ const oneof = target[field.oneof.localName];
485
+ if (oneof.case === field.localName) {
486
+ return oneof.value;
487
+ }
488
+ return;
489
+ }
490
+ return target[field.localName];
491
+ }
492
+ function unsafeSet(target, field, value) {
493
+ if (field.oneof) {
494
+ target[field.oneof.localName] = {
495
+ case: field.localName,
496
+ value
497
+ };
498
+ } else {
499
+ target[field.localName] = value;
500
+ }
501
+ }
502
+ function unsafeClear(target, field) {
503
+ const name = field.localName;
504
+ if (field.oneof) {
505
+ const oneofLocalName = field.oneof.localName;
506
+ if (target[oneofLocalName].case === name) {
507
+ target[oneofLocalName] = { case: undefined };
508
+ }
509
+ } else if (field.presence != IMPLICIT) {
510
+ delete target[name];
511
+ } else {
512
+ switch (field.fieldKind) {
513
+ case "map":
514
+ target[name] = {};
515
+ break;
516
+ case "list":
517
+ target[name] = [];
518
+ break;
519
+ case "enum":
520
+ target[name] = field.enum.values[0].number;
521
+ break;
522
+ case "scalar":
523
+ target[name] = scalarZeroValue(field.scalar, field.longAsString);
524
+ break;
525
+ }
526
+ }
527
+ }
528
+
529
+ // node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js
530
+ function restoreJsonNames(message) {
531
+ for (const f of message.field) {
532
+ if (!unsafeIsSetExplicit(f, "jsonName")) {
533
+ f.jsonName = protoCamelCase(f.name);
534
+ }
535
+ }
536
+ message.nestedType.forEach(restoreJsonNames);
537
+ }
538
+
539
+ // node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js
540
+ function parseTextFormatEnumValue(descEnum, value) {
541
+ const enumValue = descEnum.values.find((v) => v.name === value);
542
+ if (!enumValue) {
543
+ throw new Error(`cannot parse ${descEnum} default value: ${value}`);
544
+ }
545
+ return enumValue.number;
546
+ }
547
+ function parseTextFormatScalarValue(type, value) {
548
+ switch (type) {
549
+ case ScalarType.STRING:
550
+ return value;
551
+ case ScalarType.BYTES: {
552
+ const u = unescapeBytesDefaultValue(value);
553
+ if (u === false) {
554
+ throw new Error(`cannot parse ${ScalarType[type]} default value: ${value}`);
555
+ }
556
+ return u;
557
+ }
558
+ case ScalarType.INT64:
559
+ case ScalarType.SFIXED64:
560
+ case ScalarType.SINT64:
561
+ return protoInt64.parse(value);
562
+ case ScalarType.UINT64:
563
+ case ScalarType.FIXED64:
564
+ return protoInt64.uParse(value);
565
+ case ScalarType.DOUBLE:
566
+ case ScalarType.FLOAT:
567
+ switch (value) {
568
+ case "inf":
569
+ return Number.POSITIVE_INFINITY;
570
+ case "-inf":
571
+ return Number.NEGATIVE_INFINITY;
572
+ case "nan":
573
+ return Number.NaN;
574
+ default:
575
+ return parseFloat(value);
576
+ }
577
+ case ScalarType.BOOL:
578
+ return value === "true";
579
+ case ScalarType.INT32:
580
+ case ScalarType.UINT32:
581
+ case ScalarType.SINT32:
582
+ case ScalarType.FIXED32:
583
+ case ScalarType.SFIXED32:
584
+ return parseInt(value, 10);
585
+ }
586
+ }
587
+ function unescapeBytesDefaultValue(str) {
588
+ const b = [];
589
+ const input = {
590
+ tail: str,
591
+ c: "",
592
+ next() {
593
+ if (this.tail.length == 0) {
594
+ return false;
595
+ }
596
+ this.c = this.tail[0];
597
+ this.tail = this.tail.substring(1);
598
+ return true;
599
+ },
600
+ take(n) {
601
+ if (this.tail.length >= n) {
602
+ const r = this.tail.substring(0, n);
603
+ this.tail = this.tail.substring(n);
604
+ return r;
605
+ }
606
+ return false;
607
+ }
608
+ };
609
+ while (input.next()) {
610
+ switch (input.c) {
611
+ case "\\":
612
+ if (input.next()) {
613
+ switch (input.c) {
614
+ case "\\":
615
+ b.push(input.c.charCodeAt(0));
616
+ break;
617
+ case "b":
618
+ b.push(8);
619
+ break;
620
+ case "f":
621
+ b.push(12);
622
+ break;
623
+ case "n":
624
+ b.push(10);
625
+ break;
626
+ case "r":
627
+ b.push(13);
628
+ break;
629
+ case "t":
630
+ b.push(9);
631
+ break;
632
+ case "v":
633
+ b.push(11);
634
+ break;
635
+ case "0":
636
+ case "1":
637
+ case "2":
638
+ case "3":
639
+ case "4":
640
+ case "5":
641
+ case "6":
642
+ case "7": {
643
+ const s = input.c;
644
+ const t = input.take(2);
645
+ if (t === false) {
646
+ return false;
647
+ }
648
+ const n = parseInt(s + t, 8);
649
+ if (Number.isNaN(n)) {
650
+ return false;
651
+ }
652
+ b.push(n);
653
+ break;
654
+ }
655
+ case "x": {
656
+ const s = input.c;
657
+ const t = input.take(2);
658
+ if (t === false) {
659
+ return false;
660
+ }
661
+ const n = parseInt(s + t, 16);
662
+ if (Number.isNaN(n)) {
663
+ return false;
664
+ }
665
+ b.push(n);
666
+ break;
667
+ }
668
+ case "u": {
669
+ const s = input.c;
670
+ const t = input.take(4);
671
+ if (t === false) {
672
+ return false;
673
+ }
674
+ const n = parseInt(s + t, 16);
675
+ if (Number.isNaN(n)) {
676
+ return false;
677
+ }
678
+ const chunk = new Uint8Array(4);
679
+ const view = new DataView(chunk.buffer);
680
+ view.setInt32(0, n, true);
681
+ b.push(chunk[0], chunk[1], chunk[2], chunk[3]);
682
+ break;
683
+ }
684
+ case "U": {
685
+ const s = input.c;
686
+ const t = input.take(8);
687
+ if (t === false) {
688
+ return false;
689
+ }
690
+ const tc = protoInt64.uEnc(s + t);
691
+ const chunk = new Uint8Array(8);
692
+ const view = new DataView(chunk.buffer);
693
+ view.setInt32(0, tc.lo, true);
694
+ view.setInt32(4, tc.hi, true);
695
+ b.push(chunk[0], chunk[1], chunk[2], chunk[3], chunk[4], chunk[5], chunk[6], chunk[7]);
696
+ break;
697
+ }
698
+ }
699
+ }
700
+ break;
701
+ default:
702
+ b.push(input.c.charCodeAt(0));
703
+ }
704
+ }
705
+ return new Uint8Array(b);
706
+ }
707
+
708
+ // node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js
709
+ function* nestedTypes(desc) {
710
+ switch (desc.kind) {
711
+ case "file":
712
+ for (const message of desc.messages) {
713
+ yield message;
714
+ yield* nestedTypes(message);
715
+ }
716
+ yield* desc.enums;
717
+ yield* desc.services;
718
+ yield* desc.extensions;
719
+ break;
720
+ case "message":
721
+ for (const message of desc.nestedMessages) {
722
+ yield message;
723
+ yield* nestedTypes(message);
724
+ }
725
+ yield* desc.nestedEnums;
726
+ yield* desc.nestedExtensions;
727
+ break;
728
+ }
729
+ }
730
+
731
+ // node_modules/@bufbuild/protobuf/dist/esm/registry.js
732
+ function createFileRegistry(...args) {
733
+ const registry = createBaseRegistry();
734
+ if (!args.length) {
735
+ return registry;
736
+ }
737
+ if ("$typeName" in args[0] && args[0].$typeName == "google.protobuf.FileDescriptorSet") {
738
+ for (const file of args[0].file) {
739
+ addFile(file, registry);
740
+ }
741
+ return registry;
742
+ }
743
+ if ("$typeName" in args[0]) {
744
+ let recurseDeps = function(file) {
745
+ const deps = [];
746
+ for (const protoFileName of file.dependency) {
747
+ if (registry.getFile(protoFileName) != null) {
748
+ continue;
749
+ }
750
+ if (seen.has(protoFileName)) {
751
+ continue;
752
+ }
753
+ const dep = resolve(protoFileName);
754
+ if (!dep) {
755
+ throw new Error(`Unable to resolve ${protoFileName}, imported by ${file.name}`);
756
+ }
757
+ if ("kind" in dep) {
758
+ registry.addFile(dep, false, true);
759
+ } else {
760
+ seen.add(dep.name);
761
+ deps.push(dep);
762
+ }
763
+ }
764
+ return deps.concat(...deps.map(recurseDeps));
765
+ };
766
+ const input = args[0];
767
+ const resolve = args[1];
768
+ const seen = new Set;
769
+ for (const file of [input, ...recurseDeps(input)].reverse()) {
770
+ addFile(file, registry);
771
+ }
772
+ } else {
773
+ for (const fileReg of args) {
774
+ for (const file of fileReg.files) {
775
+ registry.addFile(file);
776
+ }
777
+ }
778
+ }
779
+ return registry;
780
+ }
781
+ function createBaseRegistry() {
782
+ const types = new Map;
783
+ const extendees = new Map;
784
+ const files = new Map;
785
+ return {
786
+ kind: "registry",
787
+ types,
788
+ extendees,
789
+ [Symbol.iterator]() {
790
+ return types.values();
791
+ },
792
+ get files() {
793
+ return files.values();
794
+ },
795
+ addFile(file, skipTypes, withDeps) {
796
+ files.set(file.proto.name, file);
797
+ if (!skipTypes) {
798
+ for (const type of nestedTypes(file)) {
799
+ this.add(type);
800
+ }
801
+ }
802
+ if (withDeps) {
803
+ for (const f of file.dependencies) {
804
+ this.addFile(f, skipTypes, withDeps);
805
+ }
806
+ }
807
+ },
808
+ add(desc) {
809
+ if (desc.kind == "extension") {
810
+ let numberToExt = extendees.get(desc.extendee.typeName);
811
+ if (!numberToExt) {
812
+ extendees.set(desc.extendee.typeName, numberToExt = new Map);
813
+ }
814
+ numberToExt.set(desc.number, desc);
815
+ }
816
+ types.set(desc.typeName, desc);
817
+ },
818
+ get(typeName) {
819
+ return types.get(typeName);
820
+ },
821
+ getFile(fileName) {
822
+ return files.get(fileName);
823
+ },
824
+ getMessage(typeName) {
825
+ const t = types.get(typeName);
826
+ return (t === null || t === undefined ? undefined : t.kind) == "message" ? t : undefined;
827
+ },
828
+ getEnum(typeName) {
829
+ const t = types.get(typeName);
830
+ return (t === null || t === undefined ? undefined : t.kind) == "enum" ? t : undefined;
831
+ },
832
+ getExtension(typeName) {
833
+ const t = types.get(typeName);
834
+ return (t === null || t === undefined ? undefined : t.kind) == "extension" ? t : undefined;
835
+ },
836
+ getExtensionFor(extendee, no) {
837
+ var _a;
838
+ return (_a = extendees.get(extendee.typeName)) === null || _a === undefined ? undefined : _a.get(no);
839
+ },
840
+ getService(typeName) {
841
+ const t = types.get(typeName);
842
+ return (t === null || t === undefined ? undefined : t.kind) == "service" ? t : undefined;
843
+ }
844
+ };
845
+ }
846
+ var EDITION_PROTO2 = 998;
847
+ var EDITION_PROTO3 = 999;
848
+ var TYPE_STRING = 9;
849
+ var TYPE_GROUP = 10;
850
+ var TYPE_MESSAGE = 11;
851
+ var TYPE_BYTES = 12;
852
+ var TYPE_ENUM = 14;
853
+ var LABEL_REPEATED = 3;
854
+ var LABEL_REQUIRED = 2;
855
+ var JS_STRING = 1;
856
+ var IDEMPOTENCY_UNKNOWN = 0;
857
+ var EXPLICIT = 1;
858
+ var IMPLICIT2 = 2;
859
+ var LEGACY_REQUIRED = 3;
860
+ var PACKED = 1;
861
+ var DELIMITED = 2;
862
+ var OPEN = 1;
863
+ var featureDefaults = {
864
+ 998: {
865
+ fieldPresence: 1,
866
+ enumType: 2,
867
+ repeatedFieldEncoding: 2,
868
+ utf8Validation: 3,
869
+ messageEncoding: 1,
870
+ jsonFormat: 2,
871
+ enforceNamingStyle: 2,
872
+ defaultSymbolVisibility: 1
873
+ },
874
+ 999: {
875
+ fieldPresence: 2,
876
+ enumType: 1,
877
+ repeatedFieldEncoding: 1,
878
+ utf8Validation: 2,
879
+ messageEncoding: 1,
880
+ jsonFormat: 1,
881
+ enforceNamingStyle: 2,
882
+ defaultSymbolVisibility: 1
883
+ },
884
+ 1000: {
885
+ fieldPresence: 1,
886
+ enumType: 1,
887
+ repeatedFieldEncoding: 1,
888
+ utf8Validation: 2,
889
+ messageEncoding: 1,
890
+ jsonFormat: 1,
891
+ enforceNamingStyle: 2,
892
+ defaultSymbolVisibility: 1
893
+ },
894
+ 1001: {
895
+ fieldPresence: 1,
896
+ enumType: 1,
897
+ repeatedFieldEncoding: 1,
898
+ utf8Validation: 2,
899
+ messageEncoding: 1,
900
+ jsonFormat: 1,
901
+ enforceNamingStyle: 1,
902
+ defaultSymbolVisibility: 2
903
+ }
904
+ };
905
+ function addFile(proto, reg) {
906
+ var _a, _b;
907
+ const file = {
908
+ kind: "file",
909
+ proto,
910
+ deprecated: (_b = (_a = proto.options) === null || _a === undefined ? undefined : _a.deprecated) !== null && _b !== undefined ? _b : false,
911
+ edition: getFileEdition(proto),
912
+ name: proto.name.replace(/\.proto$/, ""),
913
+ dependencies: findFileDependencies(proto, reg),
914
+ enums: [],
915
+ messages: [],
916
+ extensions: [],
917
+ services: [],
918
+ toString() {
919
+ return `file ${proto.name}`;
920
+ }
921
+ };
922
+ const mapEntriesStore = new Map;
923
+ const mapEntries = {
924
+ get(typeName) {
925
+ return mapEntriesStore.get(typeName);
926
+ },
927
+ add(desc) {
928
+ var _a2;
929
+ assert(((_a2 = desc.proto.options) === null || _a2 === undefined ? undefined : _a2.mapEntry) === true);
930
+ mapEntriesStore.set(desc.typeName, desc);
931
+ }
932
+ };
933
+ for (const enumProto of proto.enumType) {
934
+ addEnum(enumProto, file, undefined, reg);
935
+ }
936
+ for (const messageProto of proto.messageType) {
937
+ addMessage(messageProto, file, undefined, reg, mapEntries);
938
+ }
939
+ for (const serviceProto of proto.service) {
940
+ addService(serviceProto, file, reg);
941
+ }
942
+ addExtensions(file, reg);
943
+ for (const mapEntry of mapEntriesStore.values()) {
944
+ addFields(mapEntry, reg, mapEntries);
945
+ }
946
+ for (const message of file.messages) {
947
+ addFields(message, reg, mapEntries);
948
+ addExtensions(message, reg);
949
+ }
950
+ reg.addFile(file, true);
951
+ }
952
+ function addExtensions(desc, reg) {
953
+ switch (desc.kind) {
954
+ case "file":
955
+ for (const proto of desc.proto.extension) {
956
+ const ext = newField(proto, desc, reg);
957
+ desc.extensions.push(ext);
958
+ reg.add(ext);
959
+ }
960
+ break;
961
+ case "message":
962
+ for (const proto of desc.proto.extension) {
963
+ const ext = newField(proto, desc, reg);
964
+ desc.nestedExtensions.push(ext);
965
+ reg.add(ext);
966
+ }
967
+ for (const message of desc.nestedMessages) {
968
+ addExtensions(message, reg);
969
+ }
970
+ break;
971
+ }
972
+ }
973
+ function addFields(message, reg, mapEntries) {
974
+ const allOneofs = message.proto.oneofDecl.map((proto) => newOneof(proto, message));
975
+ const oneofsSeen = new Set;
976
+ for (const proto of message.proto.field) {
977
+ const oneof = findOneof(proto, allOneofs);
978
+ const field = newField(proto, message, reg, oneof, mapEntries);
979
+ message.fields.push(field);
980
+ message.field[field.localName] = field;
981
+ if (oneof === undefined) {
982
+ message.members.push(field);
983
+ } else {
984
+ oneof.fields.push(field);
985
+ if (!oneofsSeen.has(oneof)) {
986
+ oneofsSeen.add(oneof);
987
+ message.members.push(oneof);
988
+ }
989
+ }
990
+ }
991
+ for (const oneof of allOneofs.filter((o) => oneofsSeen.has(o))) {
992
+ message.oneofs.push(oneof);
993
+ }
994
+ for (const child of message.nestedMessages) {
995
+ addFields(child, reg, mapEntries);
996
+ }
997
+ }
998
+ function addEnum(proto, file, parent, reg) {
999
+ var _a, _b, _c, _d, _e;
1000
+ const sharedPrefix = findEnumSharedPrefix(proto.name, proto.value);
1001
+ const desc = {
1002
+ kind: "enum",
1003
+ proto,
1004
+ deprecated: (_b = (_a = proto.options) === null || _a === undefined ? undefined : _a.deprecated) !== null && _b !== undefined ? _b : false,
1005
+ file,
1006
+ parent,
1007
+ open: true,
1008
+ name: proto.name,
1009
+ typeName: makeTypeName(proto, parent, file),
1010
+ value: {},
1011
+ values: [],
1012
+ sharedPrefix,
1013
+ toString() {
1014
+ return `enum ${this.typeName}`;
1015
+ }
1016
+ };
1017
+ desc.open = isEnumOpen(desc);
1018
+ reg.add(desc);
1019
+ for (const p of proto.value) {
1020
+ const name = p.name;
1021
+ desc.values.push(desc.value[p.number] = {
1022
+ kind: "enum_value",
1023
+ proto: p,
1024
+ deprecated: (_d = (_c = p.options) === null || _c === undefined ? undefined : _c.deprecated) !== null && _d !== undefined ? _d : false,
1025
+ parent: desc,
1026
+ name,
1027
+ localName: safeObjectProperty(sharedPrefix == undefined ? name : name.substring(sharedPrefix.length)),
1028
+ number: p.number,
1029
+ toString() {
1030
+ return `enum value ${desc.typeName}.${name}`;
1031
+ }
1032
+ });
1033
+ }
1034
+ ((_e = parent === null || parent === undefined ? undefined : parent.nestedEnums) !== null && _e !== undefined ? _e : file.enums).push(desc);
1035
+ }
1036
+ function addMessage(proto, file, parent, reg, mapEntries) {
1037
+ var _a, _b, _c, _d;
1038
+ const desc = {
1039
+ kind: "message",
1040
+ proto,
1041
+ deprecated: (_b = (_a = proto.options) === null || _a === undefined ? undefined : _a.deprecated) !== null && _b !== undefined ? _b : false,
1042
+ file,
1043
+ parent,
1044
+ name: proto.name,
1045
+ typeName: makeTypeName(proto, parent, file),
1046
+ fields: [],
1047
+ field: {},
1048
+ oneofs: [],
1049
+ members: [],
1050
+ nestedEnums: [],
1051
+ nestedMessages: [],
1052
+ nestedExtensions: [],
1053
+ toString() {
1054
+ return `message ${this.typeName}`;
1055
+ }
1056
+ };
1057
+ if (((_c = proto.options) === null || _c === undefined ? undefined : _c.mapEntry) === true) {
1058
+ mapEntries.add(desc);
1059
+ } else {
1060
+ ((_d = parent === null || parent === undefined ? undefined : parent.nestedMessages) !== null && _d !== undefined ? _d : file.messages).push(desc);
1061
+ reg.add(desc);
1062
+ }
1063
+ for (const enumProto of proto.enumType) {
1064
+ addEnum(enumProto, file, desc, reg);
1065
+ }
1066
+ for (const messageProto of proto.nestedType) {
1067
+ addMessage(messageProto, file, desc, reg, mapEntries);
1068
+ }
1069
+ }
1070
+ function addService(proto, file, reg) {
1071
+ var _a, _b;
1072
+ const desc = {
1073
+ kind: "service",
1074
+ proto,
1075
+ deprecated: (_b = (_a = proto.options) === null || _a === undefined ? undefined : _a.deprecated) !== null && _b !== undefined ? _b : false,
1076
+ file,
1077
+ name: proto.name,
1078
+ typeName: makeTypeName(proto, undefined, file),
1079
+ methods: [],
1080
+ method: {},
1081
+ toString() {
1082
+ return `service ${this.typeName}`;
1083
+ }
1084
+ };
1085
+ file.services.push(desc);
1086
+ reg.add(desc);
1087
+ for (const methodProto of proto.method) {
1088
+ const method = newMethod(methodProto, desc, reg);
1089
+ desc.methods.push(method);
1090
+ desc.method[method.localName] = method;
1091
+ }
1092
+ }
1093
+ function newMethod(proto, parent, reg) {
1094
+ var _a, _b, _c, _d;
1095
+ let methodKind;
1096
+ if (proto.clientStreaming && proto.serverStreaming) {
1097
+ methodKind = "bidi_streaming";
1098
+ } else if (proto.clientStreaming) {
1099
+ methodKind = "client_streaming";
1100
+ } else if (proto.serverStreaming) {
1101
+ methodKind = "server_streaming";
1102
+ } else {
1103
+ methodKind = "unary";
1104
+ }
1105
+ const input = reg.getMessage(trimLeadingDot(proto.inputType));
1106
+ const output = reg.getMessage(trimLeadingDot(proto.outputType));
1107
+ assert(input, `invalid MethodDescriptorProto: input_type ${proto.inputType} not found`);
1108
+ assert(output, `invalid MethodDescriptorProto: output_type ${proto.inputType} not found`);
1109
+ const name = proto.name;
1110
+ return {
1111
+ kind: "rpc",
1112
+ proto,
1113
+ deprecated: (_b = (_a = proto.options) === null || _a === undefined ? undefined : _a.deprecated) !== null && _b !== undefined ? _b : false,
1114
+ parent,
1115
+ name,
1116
+ localName: safeObjectProperty(name.length ? safeObjectProperty(name[0].toLowerCase() + name.substring(1)) : name),
1117
+ methodKind,
1118
+ input,
1119
+ output,
1120
+ idempotency: (_d = (_c = proto.options) === null || _c === undefined ? undefined : _c.idempotencyLevel) !== null && _d !== undefined ? _d : IDEMPOTENCY_UNKNOWN,
1121
+ toString() {
1122
+ return `rpc ${parent.typeName}.${name}`;
1123
+ }
1124
+ };
1125
+ }
1126
+ function newOneof(proto, parent) {
1127
+ return {
1128
+ kind: "oneof",
1129
+ proto,
1130
+ deprecated: false,
1131
+ parent,
1132
+ fields: [],
1133
+ name: proto.name,
1134
+ localName: safeObjectProperty(protoCamelCase(proto.name)),
1135
+ toString() {
1136
+ return `oneof ${parent.typeName}.${this.name}`;
1137
+ }
1138
+ };
1139
+ }
1140
+ function newField(proto, parentOrFile, reg, oneof, mapEntries) {
1141
+ var _a, _b, _c;
1142
+ const isExtension = mapEntries === undefined;
1143
+ const field = {
1144
+ kind: "field",
1145
+ proto,
1146
+ deprecated: (_b = (_a = proto.options) === null || _a === undefined ? undefined : _a.deprecated) !== null && _b !== undefined ? _b : false,
1147
+ name: proto.name,
1148
+ number: proto.number,
1149
+ scalar: undefined,
1150
+ message: undefined,
1151
+ enum: undefined,
1152
+ presence: getFieldPresence(proto, oneof, isExtension, parentOrFile),
1153
+ listKind: undefined,
1154
+ mapKind: undefined,
1155
+ mapKey: undefined,
1156
+ delimitedEncoding: undefined,
1157
+ packed: undefined,
1158
+ longAsString: false,
1159
+ getDefaultValue: undefined
1160
+ };
1161
+ if (isExtension) {
1162
+ const file = parentOrFile.kind == "file" ? parentOrFile : parentOrFile.file;
1163
+ const parent = parentOrFile.kind == "file" ? undefined : parentOrFile;
1164
+ const typeName = makeTypeName(proto, parent, file);
1165
+ field.kind = "extension";
1166
+ field.file = file;
1167
+ field.parent = parent;
1168
+ field.oneof = undefined;
1169
+ field.typeName = typeName;
1170
+ field.jsonName = `[${typeName}]`;
1171
+ field.toString = () => `extension ${typeName}`;
1172
+ const extendee = reg.getMessage(trimLeadingDot(proto.extendee));
1173
+ assert(extendee, `invalid FieldDescriptorProto: extendee ${proto.extendee} not found`);
1174
+ field.extendee = extendee;
1175
+ } else {
1176
+ const parent = parentOrFile;
1177
+ assert(parent.kind == "message");
1178
+ field.parent = parent;
1179
+ field.oneof = oneof;
1180
+ field.localName = oneof ? protoCamelCase(proto.name) : safeObjectProperty(protoCamelCase(proto.name));
1181
+ field.jsonName = proto.jsonName;
1182
+ field.toString = () => `field ${parent.typeName}.${proto.name}`;
1183
+ }
1184
+ const label = proto.label;
1185
+ const type = proto.type;
1186
+ const jstype = (_c = proto.options) === null || _c === undefined ? undefined : _c.jstype;
1187
+ if (label === LABEL_REPEATED) {
1188
+ const mapEntry = type == TYPE_MESSAGE ? mapEntries === null || mapEntries === undefined ? undefined : mapEntries.get(trimLeadingDot(proto.typeName)) : undefined;
1189
+ if (mapEntry) {
1190
+ field.fieldKind = "map";
1191
+ const { key, value } = findMapEntryFields(mapEntry);
1192
+ field.mapKey = key.scalar;
1193
+ field.mapKind = value.fieldKind;
1194
+ field.message = value.message;
1195
+ field.delimitedEncoding = false;
1196
+ field.enum = value.enum;
1197
+ field.scalar = value.scalar;
1198
+ return field;
1199
+ }
1200
+ field.fieldKind = "list";
1201
+ switch (type) {
1202
+ case TYPE_MESSAGE:
1203
+ case TYPE_GROUP:
1204
+ field.listKind = "message";
1205
+ field.message = reg.getMessage(trimLeadingDot(proto.typeName));
1206
+ assert(field.message);
1207
+ field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile);
1208
+ break;
1209
+ case TYPE_ENUM:
1210
+ field.listKind = "enum";
1211
+ field.enum = reg.getEnum(trimLeadingDot(proto.typeName));
1212
+ assert(field.enum);
1213
+ break;
1214
+ default:
1215
+ field.listKind = "scalar";
1216
+ field.scalar = type;
1217
+ field.longAsString = jstype == JS_STRING;
1218
+ break;
1219
+ }
1220
+ field.packed = isPackedField(proto, parentOrFile);
1221
+ return field;
1222
+ }
1223
+ switch (type) {
1224
+ case TYPE_MESSAGE:
1225
+ case TYPE_GROUP:
1226
+ field.fieldKind = "message";
1227
+ field.message = reg.getMessage(trimLeadingDot(proto.typeName));
1228
+ assert(field.message, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`);
1229
+ field.delimitedEncoding = isDelimitedEncoding(proto, parentOrFile);
1230
+ field.getDefaultValue = () => {
1231
+ return;
1232
+ };
1233
+ break;
1234
+ case TYPE_ENUM: {
1235
+ const enumeration = reg.getEnum(trimLeadingDot(proto.typeName));
1236
+ assert(enumeration !== undefined, `invalid FieldDescriptorProto: type_name ${proto.typeName} not found`);
1237
+ field.fieldKind = "enum";
1238
+ field.enum = reg.getEnum(trimLeadingDot(proto.typeName));
1239
+ field.getDefaultValue = () => {
1240
+ return unsafeIsSetExplicit(proto, "defaultValue") ? parseTextFormatEnumValue(enumeration, proto.defaultValue) : undefined;
1241
+ };
1242
+ break;
1243
+ }
1244
+ default: {
1245
+ field.fieldKind = "scalar";
1246
+ field.scalar = type;
1247
+ field.longAsString = jstype == JS_STRING;
1248
+ field.getDefaultValue = () => {
1249
+ return unsafeIsSetExplicit(proto, "defaultValue") ? parseTextFormatScalarValue(type, proto.defaultValue) : undefined;
1250
+ };
1251
+ break;
1252
+ }
1253
+ }
1254
+ return field;
1255
+ }
1256
+ function getFileEdition(proto) {
1257
+ switch (proto.syntax) {
1258
+ case "":
1259
+ case "proto2":
1260
+ return EDITION_PROTO2;
1261
+ case "proto3":
1262
+ return EDITION_PROTO3;
1263
+ case "editions":
1264
+ if (proto.edition in featureDefaults) {
1265
+ return proto.edition;
1266
+ }
1267
+ throw new Error(`${proto.name}: unsupported edition`);
1268
+ default:
1269
+ throw new Error(`${proto.name}: unsupported syntax "${proto.syntax}"`);
1270
+ }
1271
+ }
1272
+ function findFileDependencies(proto, reg) {
1273
+ return proto.dependency.map((wantName) => {
1274
+ const dep = reg.getFile(wantName);
1275
+ if (!dep) {
1276
+ throw new Error(`Cannot find ${wantName}, imported by ${proto.name}`);
1277
+ }
1278
+ return dep;
1279
+ });
1280
+ }
1281
+ function findEnumSharedPrefix(enumName, values) {
1282
+ const prefix = camelToSnakeCase(enumName) + "_";
1283
+ for (const value of values) {
1284
+ if (!value.name.toLowerCase().startsWith(prefix)) {
1285
+ return;
1286
+ }
1287
+ const shortName = value.name.substring(prefix.length);
1288
+ if (shortName.length == 0) {
1289
+ return;
1290
+ }
1291
+ if (/^\d/.test(shortName)) {
1292
+ return;
1293
+ }
1294
+ }
1295
+ return prefix;
1296
+ }
1297
+ function camelToSnakeCase(camel) {
1298
+ return (camel.substring(0, 1) + camel.substring(1).replace(/[A-Z]/g, (c) => "_" + c)).toLowerCase();
1299
+ }
1300
+ function makeTypeName(proto, parent, file) {
1301
+ let typeName;
1302
+ if (parent) {
1303
+ typeName = `${parent.typeName}.${proto.name}`;
1304
+ } else if (file.proto.package.length > 0) {
1305
+ typeName = `${file.proto.package}.${proto.name}`;
1306
+ } else {
1307
+ typeName = `${proto.name}`;
1308
+ }
1309
+ return typeName;
1310
+ }
1311
+ function trimLeadingDot(typeName) {
1312
+ return typeName.startsWith(".") ? typeName.substring(1) : typeName;
1313
+ }
1314
+ function findOneof(proto, allOneofs) {
1315
+ if (!unsafeIsSetExplicit(proto, "oneofIndex")) {
1316
+ return;
1317
+ }
1318
+ if (proto.proto3Optional) {
1319
+ return;
1320
+ }
1321
+ const oneof = allOneofs[proto.oneofIndex];
1322
+ assert(oneof, `invalid FieldDescriptorProto: oneof #${proto.oneofIndex} for field #${proto.number} not found`);
1323
+ return oneof;
1324
+ }
1325
+ function getFieldPresence(proto, oneof, isExtension, parent) {
1326
+ if (proto.label == LABEL_REQUIRED) {
1327
+ return LEGACY_REQUIRED;
1328
+ }
1329
+ if (proto.label == LABEL_REPEATED) {
1330
+ return IMPLICIT2;
1331
+ }
1332
+ if (!!oneof || proto.proto3Optional) {
1333
+ return EXPLICIT;
1334
+ }
1335
+ if (isExtension) {
1336
+ return EXPLICIT;
1337
+ }
1338
+ const resolved = resolveFeature("fieldPresence", { proto, parent });
1339
+ if (resolved == IMPLICIT2 && (proto.type == TYPE_MESSAGE || proto.type == TYPE_GROUP)) {
1340
+ return EXPLICIT;
1341
+ }
1342
+ return resolved;
1343
+ }
1344
+ function isPackedField(proto, parent) {
1345
+ if (proto.label != LABEL_REPEATED) {
1346
+ return false;
1347
+ }
1348
+ switch (proto.type) {
1349
+ case TYPE_STRING:
1350
+ case TYPE_BYTES:
1351
+ case TYPE_GROUP:
1352
+ case TYPE_MESSAGE:
1353
+ return false;
1354
+ }
1355
+ const o = proto.options;
1356
+ if (o && unsafeIsSetExplicit(o, "packed")) {
1357
+ return o.packed;
1358
+ }
1359
+ return PACKED == resolveFeature("repeatedFieldEncoding", {
1360
+ proto,
1361
+ parent
1362
+ });
1363
+ }
1364
+ function findMapEntryFields(mapEntry) {
1365
+ const key = mapEntry.fields.find((f) => f.number === 1);
1366
+ const value = mapEntry.fields.find((f) => f.number === 2);
1367
+ assert(key && key.fieldKind == "scalar" && key.scalar != ScalarType.BYTES && key.scalar != ScalarType.FLOAT && key.scalar != ScalarType.DOUBLE && value && value.fieldKind != "list" && value.fieldKind != "map");
1368
+ return { key, value };
1369
+ }
1370
+ function isEnumOpen(desc) {
1371
+ var _a;
1372
+ return OPEN == resolveFeature("enumType", {
1373
+ proto: desc.proto,
1374
+ parent: (_a = desc.parent) !== null && _a !== undefined ? _a : desc.file
1375
+ });
1376
+ }
1377
+ function isDelimitedEncoding(proto, parent) {
1378
+ if (proto.type == TYPE_GROUP) {
1379
+ return true;
1380
+ }
1381
+ return DELIMITED == resolveFeature("messageEncoding", {
1382
+ proto,
1383
+ parent
1384
+ });
1385
+ }
1386
+ function resolveFeature(name, ref) {
1387
+ var _a, _b;
1388
+ const featureSet = (_a = ref.proto.options) === null || _a === undefined ? undefined : _a.features;
1389
+ if (featureSet) {
1390
+ const val = featureSet[name];
1391
+ if (val != 0) {
1392
+ return val;
1393
+ }
1394
+ }
1395
+ if ("kind" in ref) {
1396
+ if (ref.kind == "message") {
1397
+ return resolveFeature(name, (_b = ref.parent) !== null && _b !== undefined ? _b : ref.file);
1398
+ }
1399
+ const editionDefaults = featureDefaults[ref.edition];
1400
+ if (!editionDefaults) {
1401
+ throw new Error(`feature default for edition ${ref.edition} not found`);
1402
+ }
1403
+ return editionDefaults[name];
1404
+ }
1405
+ return resolveFeature(name, ref.parent);
1406
+ }
1407
+ function assert(condition, msg) {
1408
+ if (!condition) {
1409
+ throw new Error(msg);
1410
+ }
1411
+ }
1412
+
1413
+ // node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js
1414
+ function boot(boot2) {
1415
+ const root = bootFileDescriptorProto(boot2);
1416
+ root.messageType.forEach(restoreJsonNames);
1417
+ const reg = createFileRegistry(root, () => {
1418
+ return;
1419
+ });
1420
+ return reg.getFile(root.name);
1421
+ }
1422
+ function bootFileDescriptorProto(init) {
1423
+ const proto = Object.create({
1424
+ syntax: "",
1425
+ edition: 0
1426
+ });
1427
+ return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FileDescriptorProto", dependency: [], publicDependency: [], weakDependency: [], optionDependency: [], service: [], extension: [] }, init), { messageType: init.messageType.map(bootDescriptorProto), enumType: init.enumType.map(bootEnumDescriptorProto) }));
1428
+ }
1429
+ function bootDescriptorProto(init) {
1430
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1431
+ const proto = Object.create({
1432
+ visibility: 0
1433
+ });
1434
+ return Object.assign(proto, {
1435
+ $typeName: "google.protobuf.DescriptorProto",
1436
+ name: init.name,
1437
+ field: (_b = (_a = init.field) === null || _a === undefined ? undefined : _a.map(bootFieldDescriptorProto)) !== null && _b !== undefined ? _b : [],
1438
+ extension: [],
1439
+ nestedType: (_d = (_c = init.nestedType) === null || _c === undefined ? undefined : _c.map(bootDescriptorProto)) !== null && _d !== undefined ? _d : [],
1440
+ enumType: (_f = (_e = init.enumType) === null || _e === undefined ? undefined : _e.map(bootEnumDescriptorProto)) !== null && _f !== undefined ? _f : [],
1441
+ extensionRange: (_h = (_g = init.extensionRange) === null || _g === undefined ? undefined : _g.map((e) => Object.assign({ $typeName: "google.protobuf.DescriptorProto.ExtensionRange" }, e))) !== null && _h !== undefined ? _h : [],
1442
+ oneofDecl: [],
1443
+ reservedRange: [],
1444
+ reservedName: []
1445
+ });
1446
+ }
1447
+ function bootFieldDescriptorProto(init) {
1448
+ const proto = Object.create({
1449
+ label: 1,
1450
+ typeName: "",
1451
+ extendee: "",
1452
+ defaultValue: "",
1453
+ oneofIndex: 0,
1454
+ jsonName: "",
1455
+ proto3Optional: false
1456
+ });
1457
+ return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FieldDescriptorProto" }, init), { options: init.options ? bootFieldOptions(init.options) : undefined }));
1458
+ }
1459
+ function bootFieldOptions(init) {
1460
+ var _a, _b, _c;
1461
+ const proto = Object.create({
1462
+ ctype: 0,
1463
+ packed: false,
1464
+ jstype: 0,
1465
+ lazy: false,
1466
+ unverifiedLazy: false,
1467
+ deprecated: false,
1468
+ weak: false,
1469
+ debugRedact: false,
1470
+ retention: 0
1471
+ });
1472
+ return Object.assign(proto, Object.assign(Object.assign({ $typeName: "google.protobuf.FieldOptions" }, init), { targets: (_a = init.targets) !== null && _a !== undefined ? _a : [], editionDefaults: (_c = (_b = init.editionDefaults) === null || _b === undefined ? undefined : _b.map((e) => Object.assign({ $typeName: "google.protobuf.FieldOptions.EditionDefault" }, e))) !== null && _c !== undefined ? _c : [], uninterpretedOption: [] }));
1473
+ }
1474
+ function bootEnumDescriptorProto(init) {
1475
+ const proto = Object.create({
1476
+ visibility: 0
1477
+ });
1478
+ return Object.assign(proto, {
1479
+ $typeName: "google.protobuf.EnumDescriptorProto",
1480
+ name: init.name,
1481
+ reservedName: [],
1482
+ reservedRange: [],
1483
+ value: init.value.map((e) => Object.assign({ $typeName: "google.protobuf.EnumValueDescriptorProto" }, e))
1484
+ });
1485
+ }
1486
+
1487
+ // node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js
1488
+ function base64Decode(base64Str) {
1489
+ const table = getDecodeTable();
1490
+ let es = base64Str.length * 3 / 4;
1491
+ if (base64Str[base64Str.length - 2] == "=")
1492
+ es -= 2;
1493
+ else if (base64Str[base64Str.length - 1] == "=")
1494
+ es -= 1;
1495
+ let bytes = new Uint8Array(es), bytePos = 0, groupPos = 0, b, p = 0;
1496
+ for (let i = 0;i < base64Str.length; i++) {
1497
+ b = table[base64Str.charCodeAt(i)];
1498
+ if (b === undefined) {
1499
+ switch (base64Str[i]) {
1500
+ case "=":
1501
+ groupPos = 0;
1502
+ case `
1503
+ `:
1504
+ case "\r":
1505
+ case "\t":
1506
+ case " ":
1507
+ continue;
1508
+ default:
1509
+ throw Error("invalid base64 string");
1510
+ }
1511
+ }
1512
+ switch (groupPos) {
1513
+ case 0:
1514
+ p = b;
1515
+ groupPos = 1;
1516
+ break;
1517
+ case 1:
1518
+ bytes[bytePos++] = p << 2 | (b & 48) >> 4;
1519
+ p = b;
1520
+ groupPos = 2;
1521
+ break;
1522
+ case 2:
1523
+ bytes[bytePos++] = (p & 15) << 4 | (b & 60) >> 2;
1524
+ p = b;
1525
+ groupPos = 3;
1526
+ break;
1527
+ case 3:
1528
+ bytes[bytePos++] = (p & 3) << 6 | b;
1529
+ groupPos = 0;
1530
+ break;
1531
+ }
1532
+ }
1533
+ if (groupPos == 1)
1534
+ throw Error("invalid base64 string");
1535
+ return bytes.subarray(0, bytePos);
1536
+ }
1537
+ var encodeTableStd;
1538
+ var encodeTableUrl;
1539
+ var decodeTable;
1540
+ function getEncodeTable(encoding) {
1541
+ if (!encodeTableStd) {
1542
+ encodeTableStd = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
1543
+ encodeTableUrl = encodeTableStd.slice(0, -2).concat("-", "_");
1544
+ }
1545
+ return encoding == "url" ? encodeTableUrl : encodeTableStd;
1546
+ }
1547
+ function getDecodeTable() {
1548
+ if (!decodeTable) {
1549
+ decodeTable = [];
1550
+ const encodeTable = getEncodeTable("std");
1551
+ for (let i = 0;i < encodeTable.length; i++)
1552
+ decodeTable[encodeTable[i].charCodeAt(0)] = i;
1553
+ decodeTable[45] = encodeTable.indexOf("+");
1554
+ decodeTable[95] = encodeTable.indexOf("/");
1555
+ }
1556
+ return decodeTable;
1557
+ }
1558
+
1559
+ // node_modules/@bufbuild/protobuf/dist/esm/is-message.js
1560
+ function isMessage(arg, schema) {
1561
+ const isMessage2 = arg !== null && typeof arg == "object" && "$typeName" in arg && typeof arg.$typeName == "string";
1562
+ if (!isMessage2) {
1563
+ return false;
1564
+ }
1565
+ if (schema === undefined) {
1566
+ return true;
1567
+ }
1568
+ return schema.typeName === arg.$typeName;
1569
+ }
1570
+
1571
+ // node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js
1572
+ class FieldError extends Error {
1573
+ constructor(fieldOrOneof, message, name = "FieldValueInvalidError") {
1574
+ super(message);
1575
+ this.name = name;
1576
+ this.field = () => fieldOrOneof;
1577
+ }
1578
+ }
1579
+
1580
+ // node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js
1581
+ function isObject(arg) {
1582
+ return arg !== null && typeof arg == "object" && !Array.isArray(arg);
1583
+ }
1584
+ function isReflectList(arg, field) {
1585
+ var _a, _b, _c, _d;
1586
+ if (isObject(arg) && unsafeLocal in arg && "add" in arg && "field" in arg && typeof arg.field == "function") {
1587
+ if (field !== undefined) {
1588
+ const a = field;
1589
+ const b = arg.field();
1590
+ return a.listKind == b.listKind && a.scalar === b.scalar && ((_a = a.message) === null || _a === undefined ? undefined : _a.typeName) === ((_b = b.message) === null || _b === undefined ? undefined : _b.typeName) && ((_c = a.enum) === null || _c === undefined ? undefined : _c.typeName) === ((_d = b.enum) === null || _d === undefined ? undefined : _d.typeName);
1591
+ }
1592
+ return true;
1593
+ }
1594
+ return false;
1595
+ }
1596
+ function isReflectMap(arg, field) {
1597
+ var _a, _b, _c, _d;
1598
+ if (isObject(arg) && unsafeLocal in arg && "has" in arg && "field" in arg && typeof arg.field == "function") {
1599
+ if (field !== undefined) {
1600
+ const a = field, b = arg.field();
1601
+ return a.mapKey === b.mapKey && a.mapKind == b.mapKind && a.scalar === b.scalar && ((_a = a.message) === null || _a === undefined ? undefined : _a.typeName) === ((_b = b.message) === null || _b === undefined ? undefined : _b.typeName) && ((_c = a.enum) === null || _c === undefined ? undefined : _c.typeName) === ((_d = b.enum) === null || _d === undefined ? undefined : _d.typeName);
1602
+ }
1603
+ return true;
1604
+ }
1605
+ return false;
1606
+ }
1607
+ function isReflectMessage(arg, messageDesc) {
1608
+ return isObject(arg) && unsafeLocal in arg && "desc" in arg && isObject(arg.desc) && arg.desc.kind === "message" && (messageDesc === undefined || arg.desc.typeName == messageDesc.typeName);
1609
+ }
1610
+
1611
+ // node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js
1612
+ var symbol = Symbol.for("@bufbuild/protobuf/text-encoding");
1613
+ function getTextEncoding() {
1614
+ if (globalThis[symbol] == undefined) {
1615
+ const te = new globalThis.TextEncoder;
1616
+ const td = new globalThis.TextDecoder;
1617
+ globalThis[symbol] = {
1618
+ encodeUtf8(text) {
1619
+ return te.encode(text);
1620
+ },
1621
+ decodeUtf8(bytes) {
1622
+ return td.decode(bytes);
1623
+ },
1624
+ checkUtf8(text) {
1625
+ try {
1626
+ encodeURIComponent(text);
1627
+ return true;
1628
+ } catch (_) {
1629
+ return false;
1630
+ }
1631
+ }
1632
+ };
1633
+ }
1634
+ return globalThis[symbol];
1635
+ }
1636
+
1637
+ // node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js
1638
+ var WireType;
1639
+ (function(WireType2) {
1640
+ WireType2[WireType2["Varint"] = 0] = "Varint";
1641
+ WireType2[WireType2["Bit64"] = 1] = "Bit64";
1642
+ WireType2[WireType2["LengthDelimited"] = 2] = "LengthDelimited";
1643
+ WireType2[WireType2["StartGroup"] = 3] = "StartGroup";
1644
+ WireType2[WireType2["EndGroup"] = 4] = "EndGroup";
1645
+ WireType2[WireType2["Bit32"] = 5] = "Bit32";
1646
+ })(WireType || (WireType = {}));
1647
+ var FLOAT32_MAX = 340282346638528860000000000000000000000;
1648
+ var FLOAT32_MIN = -340282346638528860000000000000000000000;
1649
+ var UINT32_MAX = 4294967295;
1650
+ var INT32_MAX = 2147483647;
1651
+ var INT32_MIN = -2147483648;
1652
+ class BinaryReader {
1653
+ constructor(buf, decodeUtf8 = getTextEncoding().decodeUtf8) {
1654
+ this.decodeUtf8 = decodeUtf8;
1655
+ this.varint64 = varint64read;
1656
+ this.uint32 = varint32read;
1657
+ this.buf = buf;
1658
+ this.len = buf.length;
1659
+ this.pos = 0;
1660
+ this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
1661
+ }
1662
+ tag() {
1663
+ let tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7;
1664
+ if (fieldNo <= 0 || wireType < 0 || wireType > 5)
1665
+ throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType);
1666
+ return [fieldNo, wireType];
1667
+ }
1668
+ skip(wireType, fieldNo) {
1669
+ let start = this.pos;
1670
+ switch (wireType) {
1671
+ case WireType.Varint:
1672
+ while (this.buf[this.pos++] & 128) {}
1673
+ break;
1674
+ case WireType.Bit64:
1675
+ this.pos += 4;
1676
+ case WireType.Bit32:
1677
+ this.pos += 4;
1678
+ break;
1679
+ case WireType.LengthDelimited:
1680
+ let len = this.uint32();
1681
+ this.pos += len;
1682
+ break;
1683
+ case WireType.StartGroup:
1684
+ for (;; ) {
1685
+ const [fn, wt] = this.tag();
1686
+ if (wt === WireType.EndGroup) {
1687
+ if (fieldNo !== undefined && fn !== fieldNo) {
1688
+ throw new Error("invalid end group tag");
1689
+ }
1690
+ break;
1691
+ }
1692
+ this.skip(wt, fn);
1693
+ }
1694
+ break;
1695
+ default:
1696
+ throw new Error("cant skip wire type " + wireType);
1697
+ }
1698
+ this.assertBounds();
1699
+ return this.buf.subarray(start, this.pos);
1700
+ }
1701
+ assertBounds() {
1702
+ if (this.pos > this.len)
1703
+ throw new RangeError("premature EOF");
1704
+ }
1705
+ int32() {
1706
+ return this.uint32() | 0;
1707
+ }
1708
+ sint32() {
1709
+ let zze = this.uint32();
1710
+ return zze >>> 1 ^ -(zze & 1);
1711
+ }
1712
+ int64() {
1713
+ return protoInt64.dec(...this.varint64());
1714
+ }
1715
+ uint64() {
1716
+ return protoInt64.uDec(...this.varint64());
1717
+ }
1718
+ sint64() {
1719
+ let [lo, hi] = this.varint64();
1720
+ let s = -(lo & 1);
1721
+ lo = (lo >>> 1 | (hi & 1) << 31) ^ s;
1722
+ hi = hi >>> 1 ^ s;
1723
+ return protoInt64.dec(lo, hi);
1724
+ }
1725
+ bool() {
1726
+ let [lo, hi] = this.varint64();
1727
+ return lo !== 0 || hi !== 0;
1728
+ }
1729
+ fixed32() {
1730
+ return this.view.getUint32((this.pos += 4) - 4, true);
1731
+ }
1732
+ sfixed32() {
1733
+ return this.view.getInt32((this.pos += 4) - 4, true);
1734
+ }
1735
+ fixed64() {
1736
+ return protoInt64.uDec(this.sfixed32(), this.sfixed32());
1737
+ }
1738
+ sfixed64() {
1739
+ return protoInt64.dec(this.sfixed32(), this.sfixed32());
1740
+ }
1741
+ float() {
1742
+ return this.view.getFloat32((this.pos += 4) - 4, true);
1743
+ }
1744
+ double() {
1745
+ return this.view.getFloat64((this.pos += 8) - 8, true);
1746
+ }
1747
+ bytes() {
1748
+ let len = this.uint32(), start = this.pos;
1749
+ this.pos += len;
1750
+ this.assertBounds();
1751
+ return this.buf.subarray(start, start + len);
1752
+ }
1753
+ string() {
1754
+ return this.decodeUtf8(this.bytes());
1755
+ }
1756
+ }
1757
+
1758
+ // node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js
1759
+ function checkField(field, value) {
1760
+ const check = field.fieldKind == "list" ? isReflectList(value, field) : field.fieldKind == "map" ? isReflectMap(value, field) : checkSingular(field, value);
1761
+ if (check === true) {
1762
+ return;
1763
+ }
1764
+ let reason;
1765
+ switch (field.fieldKind) {
1766
+ case "list":
1767
+ reason = `expected ${formatReflectList(field)}, got ${formatVal(value)}`;
1768
+ break;
1769
+ case "map":
1770
+ reason = `expected ${formatReflectMap(field)}, got ${formatVal(value)}`;
1771
+ break;
1772
+ default: {
1773
+ reason = reasonSingular(field, value, check);
1774
+ }
1775
+ }
1776
+ return new FieldError(field, reason);
1777
+ }
1778
+ function checkListItem(field, index, value) {
1779
+ const check = checkSingular(field, value);
1780
+ if (check !== true) {
1781
+ return new FieldError(field, `list item #${index + 1}: ${reasonSingular(field, value, check)}`);
1782
+ }
1783
+ return;
1784
+ }
1785
+ function checkMapEntry(field, key, value) {
1786
+ const checkKey = checkScalarValue(key, field.mapKey);
1787
+ if (checkKey !== true) {
1788
+ return new FieldError(field, `invalid map key: ${reasonSingular({ scalar: field.mapKey }, key, checkKey)}`);
1789
+ }
1790
+ const checkVal = checkSingular(field, value);
1791
+ if (checkVal !== true) {
1792
+ return new FieldError(field, `map entry ${formatVal(key)}: ${reasonSingular(field, value, checkVal)}`);
1793
+ }
1794
+ return;
1795
+ }
1796
+ function checkSingular(field, value) {
1797
+ if (field.scalar !== undefined) {
1798
+ return checkScalarValue(value, field.scalar);
1799
+ }
1800
+ if (field.enum !== undefined) {
1801
+ if (field.enum.open) {
1802
+ return Number.isInteger(value);
1803
+ }
1804
+ return field.enum.values.some((v) => v.number === value);
1805
+ }
1806
+ return isReflectMessage(value, field.message);
1807
+ }
1808
+ function checkScalarValue(value, scalar) {
1809
+ switch (scalar) {
1810
+ case ScalarType.DOUBLE:
1811
+ return typeof value == "number";
1812
+ case ScalarType.FLOAT:
1813
+ if (typeof value != "number") {
1814
+ return false;
1815
+ }
1816
+ if (Number.isNaN(value) || !Number.isFinite(value)) {
1817
+ return true;
1818
+ }
1819
+ if (value > FLOAT32_MAX || value < FLOAT32_MIN) {
1820
+ return `${value.toFixed()} out of range`;
1821
+ }
1822
+ return true;
1823
+ case ScalarType.INT32:
1824
+ case ScalarType.SFIXED32:
1825
+ case ScalarType.SINT32:
1826
+ if (typeof value !== "number" || !Number.isInteger(value)) {
1827
+ return false;
1828
+ }
1829
+ if (value > INT32_MAX || value < INT32_MIN) {
1830
+ return `${value.toFixed()} out of range`;
1831
+ }
1832
+ return true;
1833
+ case ScalarType.FIXED32:
1834
+ case ScalarType.UINT32:
1835
+ if (typeof value !== "number" || !Number.isInteger(value)) {
1836
+ return false;
1837
+ }
1838
+ if (value > UINT32_MAX || value < 0) {
1839
+ return `${value.toFixed()} out of range`;
1840
+ }
1841
+ return true;
1842
+ case ScalarType.BOOL:
1843
+ return typeof value == "boolean";
1844
+ case ScalarType.STRING:
1845
+ if (typeof value != "string") {
1846
+ return false;
1847
+ }
1848
+ return getTextEncoding().checkUtf8(value) || "invalid UTF8";
1849
+ case ScalarType.BYTES:
1850
+ return value instanceof Uint8Array;
1851
+ case ScalarType.INT64:
1852
+ case ScalarType.SFIXED64:
1853
+ case ScalarType.SINT64:
1854
+ if (typeof value == "bigint" || typeof value == "number" || typeof value == "string" && value.length > 0) {
1855
+ try {
1856
+ protoInt64.parse(value);
1857
+ return true;
1858
+ } catch (_) {
1859
+ return `${value} out of range`;
1860
+ }
1861
+ }
1862
+ return false;
1863
+ case ScalarType.FIXED64:
1864
+ case ScalarType.UINT64:
1865
+ if (typeof value == "bigint" || typeof value == "number" || typeof value == "string" && value.length > 0) {
1866
+ try {
1867
+ protoInt64.uParse(value);
1868
+ return true;
1869
+ } catch (_) {
1870
+ return `${value} out of range`;
1871
+ }
1872
+ }
1873
+ return false;
1874
+ }
1875
+ }
1876
+ function reasonSingular(field, val, details) {
1877
+ details = typeof details == "string" ? `: ${details}` : `, got ${formatVal(val)}`;
1878
+ if (field.scalar !== undefined) {
1879
+ return `expected ${scalarTypeDescription(field.scalar)}` + details;
1880
+ }
1881
+ if (field.enum !== undefined) {
1882
+ return `expected ${field.enum.toString()}` + details;
1883
+ }
1884
+ return `expected ${formatReflectMessage(field.message)}` + details;
1885
+ }
1886
+ function formatVal(val) {
1887
+ switch (typeof val) {
1888
+ case "object":
1889
+ if (val === null) {
1890
+ return "null";
1891
+ }
1892
+ if (val instanceof Uint8Array) {
1893
+ return `Uint8Array(${val.length})`;
1894
+ }
1895
+ if (Array.isArray(val)) {
1896
+ return `Array(${val.length})`;
1897
+ }
1898
+ if (isReflectList(val)) {
1899
+ return formatReflectList(val.field());
1900
+ }
1901
+ if (isReflectMap(val)) {
1902
+ return formatReflectMap(val.field());
1903
+ }
1904
+ if (isReflectMessage(val)) {
1905
+ return formatReflectMessage(val.desc);
1906
+ }
1907
+ if (isMessage(val)) {
1908
+ return `message ${val.$typeName}`;
1909
+ }
1910
+ return "object";
1911
+ case "string":
1912
+ return val.length > 30 ? "string" : `"${val.split('"').join("\\\"")}"`;
1913
+ case "boolean":
1914
+ return String(val);
1915
+ case "number":
1916
+ return String(val);
1917
+ case "bigint":
1918
+ return String(val) + "n";
1919
+ default:
1920
+ return typeof val;
1921
+ }
1922
+ }
1923
+ function formatReflectMessage(desc) {
1924
+ return `ReflectMessage (${desc.typeName})`;
1925
+ }
1926
+ function formatReflectList(field) {
1927
+ switch (field.listKind) {
1928
+ case "message":
1929
+ return `ReflectList (${field.message.toString()})`;
1930
+ case "enum":
1931
+ return `ReflectList (${field.enum.toString()})`;
1932
+ case "scalar":
1933
+ return `ReflectList (${ScalarType[field.scalar]})`;
1934
+ }
1935
+ }
1936
+ function formatReflectMap(field) {
1937
+ switch (field.mapKind) {
1938
+ case "message":
1939
+ return `ReflectMap (${ScalarType[field.mapKey]}, ${field.message.toString()})`;
1940
+ case "enum":
1941
+ return `ReflectMap (${ScalarType[field.mapKey]}, ${field.enum.toString()})`;
1942
+ case "scalar":
1943
+ return `ReflectMap (${ScalarType[field.mapKey]}, ${ScalarType[field.scalar]})`;
1944
+ }
1945
+ }
1946
+ function scalarTypeDescription(scalar) {
1947
+ switch (scalar) {
1948
+ case ScalarType.STRING:
1949
+ return "string";
1950
+ case ScalarType.BOOL:
1951
+ return "boolean";
1952
+ case ScalarType.INT64:
1953
+ case ScalarType.SINT64:
1954
+ case ScalarType.SFIXED64:
1955
+ return "bigint (int64)";
1956
+ case ScalarType.UINT64:
1957
+ case ScalarType.FIXED64:
1958
+ return "bigint (uint64)";
1959
+ case ScalarType.BYTES:
1960
+ return "Uint8Array";
1961
+ case ScalarType.DOUBLE:
1962
+ return "number (float64)";
1963
+ case ScalarType.FLOAT:
1964
+ return "number (float32)";
1965
+ case ScalarType.FIXED32:
1966
+ case ScalarType.UINT32:
1967
+ return "number (uint32)";
1968
+ case ScalarType.INT32:
1969
+ case ScalarType.SFIXED32:
1970
+ case ScalarType.SINT32:
1971
+ return "number (int32)";
1972
+ }
1973
+ }
1974
+
1975
+ // node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js
1976
+ function isWrapper(arg) {
1977
+ return isWrapperTypeName(arg.$typeName);
1978
+ }
1979
+ function isWrapperDesc(messageDesc) {
1980
+ const f = messageDesc.fields[0];
1981
+ return isWrapperTypeName(messageDesc.typeName) && f !== undefined && f.fieldKind == "scalar" && f.name == "value" && f.number == 1;
1982
+ }
1983
+ function isWrapperTypeName(name) {
1984
+ return name.startsWith("google.protobuf.") && [
1985
+ "DoubleValue",
1986
+ "FloatValue",
1987
+ "Int64Value",
1988
+ "UInt64Value",
1989
+ "Int32Value",
1990
+ "UInt32Value",
1991
+ "BoolValue",
1992
+ "StringValue",
1993
+ "BytesValue"
1994
+ ].includes(name.substring(16));
1995
+ }
1996
+
1997
+ // node_modules/@bufbuild/protobuf/dist/esm/create.js
1998
+ var EDITION_PROTO32 = 999;
1999
+ var EDITION_PROTO22 = 998;
2000
+ var IMPLICIT3 = 2;
2001
+ function create(schema, init) {
2002
+ if (isMessage(init, schema)) {
2003
+ return init;
2004
+ }
2005
+ const message = createZeroMessage(schema);
2006
+ if (init !== undefined) {
2007
+ initMessage(schema, message, init);
2008
+ }
2009
+ return message;
2010
+ }
2011
+ function initMessage(messageDesc, message, init) {
2012
+ for (const member of messageDesc.members) {
2013
+ let value = init[member.localName];
2014
+ if (value == null) {
2015
+ continue;
2016
+ }
2017
+ let field;
2018
+ if (member.kind == "oneof") {
2019
+ const oneofField = unsafeOneofCase(init, member);
2020
+ if (!oneofField) {
2021
+ continue;
2022
+ }
2023
+ field = oneofField;
2024
+ value = unsafeGet(init, oneofField);
2025
+ } else {
2026
+ field = member;
2027
+ }
2028
+ switch (field.fieldKind) {
2029
+ case "message":
2030
+ value = toMessage(field, value);
2031
+ break;
2032
+ case "scalar":
2033
+ value = initScalar(field, value);
2034
+ break;
2035
+ case "list":
2036
+ value = initList(field, value);
2037
+ break;
2038
+ case "map":
2039
+ value = initMap(field, value);
2040
+ break;
2041
+ }
2042
+ unsafeSet(message, field, value);
2043
+ }
2044
+ return message;
2045
+ }
2046
+ function initScalar(field, value) {
2047
+ if (field.scalar == ScalarType.BYTES) {
2048
+ return toU8Arr(value);
2049
+ }
2050
+ return value;
2051
+ }
2052
+ function initMap(field, value) {
2053
+ if (isObject(value)) {
2054
+ if (field.scalar == ScalarType.BYTES) {
2055
+ return convertObjectValues(value, toU8Arr);
2056
+ }
2057
+ if (field.mapKind == "message") {
2058
+ return convertObjectValues(value, (val) => toMessage(field, val));
2059
+ }
2060
+ }
2061
+ return value;
2062
+ }
2063
+ function initList(field, value) {
2064
+ if (Array.isArray(value)) {
2065
+ if (field.scalar == ScalarType.BYTES) {
2066
+ return value.map(toU8Arr);
2067
+ }
2068
+ if (field.listKind == "message") {
2069
+ return value.map((item) => toMessage(field, item));
2070
+ }
2071
+ }
2072
+ return value;
2073
+ }
2074
+ function toMessage(field, value) {
2075
+ if (field.fieldKind == "message" && !field.oneof && isWrapperDesc(field.message)) {
2076
+ return initScalar(field.message.fields[0], value);
2077
+ }
2078
+ if (isObject(value)) {
2079
+ if (field.message.typeName == "google.protobuf.Struct" && field.parent.typeName !== "google.protobuf.Value") {
2080
+ return value;
2081
+ }
2082
+ if (!isMessage(value, field.message)) {
2083
+ return create(field.message, value);
2084
+ }
2085
+ }
2086
+ return value;
2087
+ }
2088
+ function toU8Arr(value) {
2089
+ return Array.isArray(value) ? new Uint8Array(value) : value;
2090
+ }
2091
+ function convertObjectValues(obj, fn) {
2092
+ const ret = {};
2093
+ for (const entry of Object.entries(obj)) {
2094
+ ret[entry[0]] = fn(entry[1]);
2095
+ }
2096
+ return ret;
2097
+ }
2098
+ var tokenZeroMessageField = Symbol();
2099
+ var messagePrototypes = new WeakMap;
2100
+ function createZeroMessage(desc) {
2101
+ let msg;
2102
+ if (!needsPrototypeChain(desc)) {
2103
+ msg = {
2104
+ $typeName: desc.typeName
2105
+ };
2106
+ for (const member of desc.members) {
2107
+ if (member.kind == "oneof" || member.presence == IMPLICIT3) {
2108
+ msg[member.localName] = createZeroField(member);
2109
+ }
2110
+ }
2111
+ } else {
2112
+ const cached = messagePrototypes.get(desc);
2113
+ let prototype;
2114
+ let members;
2115
+ if (cached) {
2116
+ ({ prototype, members } = cached);
2117
+ } else {
2118
+ prototype = {};
2119
+ members = new Set;
2120
+ for (const member of desc.members) {
2121
+ if (member.kind == "oneof") {
2122
+ continue;
2123
+ }
2124
+ if (member.fieldKind != "scalar" && member.fieldKind != "enum") {
2125
+ continue;
2126
+ }
2127
+ if (member.presence == IMPLICIT3) {
2128
+ continue;
2129
+ }
2130
+ members.add(member);
2131
+ prototype[member.localName] = createZeroField(member);
2132
+ }
2133
+ messagePrototypes.set(desc, { prototype, members });
2134
+ }
2135
+ msg = Object.create(prototype);
2136
+ msg.$typeName = desc.typeName;
2137
+ for (const member of desc.members) {
2138
+ if (members.has(member)) {
2139
+ continue;
2140
+ }
2141
+ if (member.kind == "field") {
2142
+ if (member.fieldKind == "message") {
2143
+ continue;
2144
+ }
2145
+ if (member.fieldKind == "scalar" || member.fieldKind == "enum") {
2146
+ if (member.presence != IMPLICIT3) {
2147
+ continue;
2148
+ }
2149
+ }
2150
+ }
2151
+ msg[member.localName] = createZeroField(member);
2152
+ }
2153
+ }
2154
+ return msg;
2155
+ }
2156
+ function needsPrototypeChain(desc) {
2157
+ switch (desc.file.edition) {
2158
+ case EDITION_PROTO32:
2159
+ return false;
2160
+ case EDITION_PROTO22:
2161
+ return true;
2162
+ default:
2163
+ return desc.fields.some((f) => f.presence != IMPLICIT3 && f.fieldKind != "message" && !f.oneof);
2164
+ }
2165
+ }
2166
+ function createZeroField(field) {
2167
+ if (field.kind == "oneof") {
2168
+ return { case: undefined };
2169
+ }
2170
+ if (field.fieldKind == "list") {
2171
+ return [];
2172
+ }
2173
+ if (field.fieldKind == "map") {
2174
+ return {};
2175
+ }
2176
+ if (field.fieldKind == "message") {
2177
+ return tokenZeroMessageField;
2178
+ }
2179
+ const defaultValue = field.getDefaultValue();
2180
+ if (defaultValue !== undefined) {
2181
+ return field.fieldKind == "scalar" && field.longAsString ? defaultValue.toString() : defaultValue;
2182
+ }
2183
+ return field.fieldKind == "scalar" ? scalarZeroValue(field.scalar, field.longAsString) : field.enum.values[0].number;
2184
+ }
2185
+
2186
+ // node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js
2187
+ function reflect(messageDesc, message, check = true) {
2188
+ return new ReflectMessageImpl(messageDesc, message, check);
2189
+ }
2190
+ var messageSortedFields = new WeakMap;
2191
+
2192
+ class ReflectMessageImpl {
2193
+ get sortedFields() {
2194
+ const cached = messageSortedFields.get(this.desc);
2195
+ if (cached) {
2196
+ return cached;
2197
+ }
2198
+ const sortedFields = this.desc.fields.concat().sort((a, b) => a.number - b.number);
2199
+ messageSortedFields.set(this.desc, sortedFields);
2200
+ return sortedFields;
2201
+ }
2202
+ constructor(messageDesc, message, check = true) {
2203
+ this.lists = new Map;
2204
+ this.maps = new Map;
2205
+ this.check = check;
2206
+ this.desc = messageDesc;
2207
+ this.message = this[unsafeLocal] = message !== null && message !== undefined ? message : create(messageDesc);
2208
+ this.fields = messageDesc.fields;
2209
+ this.oneofs = messageDesc.oneofs;
2210
+ this.members = messageDesc.members;
2211
+ }
2212
+ findNumber(number) {
2213
+ if (!this._fieldsByNumber) {
2214
+ this._fieldsByNumber = new Map(this.desc.fields.map((f) => [f.number, f]));
2215
+ }
2216
+ return this._fieldsByNumber.get(number);
2217
+ }
2218
+ oneofCase(oneof) {
2219
+ assertOwn(this.message, oneof);
2220
+ return unsafeOneofCase(this.message, oneof);
2221
+ }
2222
+ isSet(field) {
2223
+ assertOwn(this.message, field);
2224
+ return unsafeIsSet(this.message, field);
2225
+ }
2226
+ clear(field) {
2227
+ assertOwn(this.message, field);
2228
+ unsafeClear(this.message, field);
2229
+ }
2230
+ get(field) {
2231
+ assertOwn(this.message, field);
2232
+ const value = unsafeGet(this.message, field);
2233
+ switch (field.fieldKind) {
2234
+ case "list":
2235
+ let list = this.lists.get(field);
2236
+ if (!list || list[unsafeLocal] !== value) {
2237
+ this.lists.set(field, list = new ReflectListImpl(field, value, this.check));
2238
+ }
2239
+ return list;
2240
+ case "map":
2241
+ let map = this.maps.get(field);
2242
+ if (!map || map[unsafeLocal] !== value) {
2243
+ this.maps.set(field, map = new ReflectMapImpl(field, value, this.check));
2244
+ }
2245
+ return map;
2246
+ case "message":
2247
+ return messageToReflect(field, value, this.check);
2248
+ case "scalar":
2249
+ return value === undefined ? scalarZeroValue(field.scalar, false) : longToReflect(field, value);
2250
+ case "enum":
2251
+ return value !== null && value !== undefined ? value : field.enum.values[0].number;
2252
+ }
2253
+ }
2254
+ set(field, value) {
2255
+ assertOwn(this.message, field);
2256
+ if (this.check) {
2257
+ const err = checkField(field, value);
2258
+ if (err) {
2259
+ throw err;
2260
+ }
2261
+ }
2262
+ let local;
2263
+ if (field.fieldKind == "message") {
2264
+ local = messageToLocal(field, value);
2265
+ } else if (isReflectMap(value) || isReflectList(value)) {
2266
+ local = value[unsafeLocal];
2267
+ } else {
2268
+ local = longToLocal(field, value);
2269
+ }
2270
+ unsafeSet(this.message, field, local);
2271
+ }
2272
+ getUnknown() {
2273
+ return this.message.$unknown;
2274
+ }
2275
+ setUnknown(value) {
2276
+ this.message.$unknown = value;
2277
+ }
2278
+ }
2279
+ function assertOwn(owner, member) {
2280
+ if (member.parent.typeName !== owner.$typeName) {
2281
+ throw new FieldError(member, `cannot use ${member.toString()} with message ${owner.$typeName}`, "ForeignFieldError");
2282
+ }
2283
+ }
2284
+ class ReflectListImpl {
2285
+ field() {
2286
+ return this._field;
2287
+ }
2288
+ get size() {
2289
+ return this._arr.length;
2290
+ }
2291
+ constructor(field, unsafeInput, check) {
2292
+ this._field = field;
2293
+ this._arr = this[unsafeLocal] = unsafeInput;
2294
+ this.check = check;
2295
+ }
2296
+ get(index) {
2297
+ const item = this._arr[index];
2298
+ return item === undefined ? undefined : listItemToReflect(this._field, item, this.check);
2299
+ }
2300
+ set(index, item) {
2301
+ if (index < 0 || index >= this._arr.length) {
2302
+ throw new FieldError(this._field, `list item #${index + 1}: out of range`);
2303
+ }
2304
+ if (this.check) {
2305
+ const err = checkListItem(this._field, index, item);
2306
+ if (err) {
2307
+ throw err;
2308
+ }
2309
+ }
2310
+ this._arr[index] = listItemToLocal(this._field, item);
2311
+ }
2312
+ add(item) {
2313
+ if (this.check) {
2314
+ const err = checkListItem(this._field, this._arr.length, item);
2315
+ if (err) {
2316
+ throw err;
2317
+ }
2318
+ }
2319
+ this._arr.push(listItemToLocal(this._field, item));
2320
+ return;
2321
+ }
2322
+ clear() {
2323
+ this._arr.splice(0, this._arr.length);
2324
+ }
2325
+ [Symbol.iterator]() {
2326
+ return this.values();
2327
+ }
2328
+ keys() {
2329
+ return this._arr.keys();
2330
+ }
2331
+ *values() {
2332
+ for (const item of this._arr) {
2333
+ yield listItemToReflect(this._field, item, this.check);
2334
+ }
2335
+ }
2336
+ *entries() {
2337
+ for (let i = 0;i < this._arr.length; i++) {
2338
+ yield [i, listItemToReflect(this._field, this._arr[i], this.check)];
2339
+ }
2340
+ }
2341
+ }
2342
+ class ReflectMapImpl {
2343
+ constructor(field, unsafeInput, check = true) {
2344
+ this.obj = this[unsafeLocal] = unsafeInput !== null && unsafeInput !== undefined ? unsafeInput : {};
2345
+ this.check = check;
2346
+ this._field = field;
2347
+ }
2348
+ field() {
2349
+ return this._field;
2350
+ }
2351
+ set(key, value) {
2352
+ if (this.check) {
2353
+ const err = checkMapEntry(this._field, key, value);
2354
+ if (err) {
2355
+ throw err;
2356
+ }
2357
+ }
2358
+ this.obj[mapKeyToLocal(key)] = mapValueToLocal(this._field, value);
2359
+ return this;
2360
+ }
2361
+ delete(key) {
2362
+ const k = mapKeyToLocal(key);
2363
+ const has = Object.prototype.hasOwnProperty.call(this.obj, k);
2364
+ if (has) {
2365
+ delete this.obj[k];
2366
+ }
2367
+ return has;
2368
+ }
2369
+ clear() {
2370
+ for (const key of Object.keys(this.obj)) {
2371
+ delete this.obj[key];
2372
+ }
2373
+ }
2374
+ get(key) {
2375
+ let val = this.obj[mapKeyToLocal(key)];
2376
+ if (val !== undefined) {
2377
+ val = mapValueToReflect(this._field, val, this.check);
2378
+ }
2379
+ return val;
2380
+ }
2381
+ has(key) {
2382
+ return Object.prototype.hasOwnProperty.call(this.obj, mapKeyToLocal(key));
2383
+ }
2384
+ *keys() {
2385
+ for (const objKey of Object.keys(this.obj)) {
2386
+ yield mapKeyToReflect(objKey, this._field.mapKey);
2387
+ }
2388
+ }
2389
+ *entries() {
2390
+ for (const objEntry of Object.entries(this.obj)) {
2391
+ yield [
2392
+ mapKeyToReflect(objEntry[0], this._field.mapKey),
2393
+ mapValueToReflect(this._field, objEntry[1], this.check)
2394
+ ];
2395
+ }
2396
+ }
2397
+ [Symbol.iterator]() {
2398
+ return this.entries();
2399
+ }
2400
+ get size() {
2401
+ return Object.keys(this.obj).length;
2402
+ }
2403
+ *values() {
2404
+ for (const val of Object.values(this.obj)) {
2405
+ yield mapValueToReflect(this._field, val, this.check);
2406
+ }
2407
+ }
2408
+ forEach(callbackfn, thisArg) {
2409
+ for (const mapEntry of this.entries()) {
2410
+ callbackfn.call(thisArg, mapEntry[1], mapEntry[0], this);
2411
+ }
2412
+ }
2413
+ }
2414
+ function messageToLocal(field, value) {
2415
+ if (!isReflectMessage(value)) {
2416
+ return value;
2417
+ }
2418
+ if (isWrapper(value.message) && !field.oneof && field.fieldKind == "message") {
2419
+ return value.message.value;
2420
+ }
2421
+ if (value.desc.typeName == "google.protobuf.Struct" && field.parent.typeName != "google.protobuf.Value") {
2422
+ return wktStructToLocal(value.message);
2423
+ }
2424
+ return value.message;
2425
+ }
2426
+ function messageToReflect(field, value, check) {
2427
+ if (value !== undefined) {
2428
+ if (isWrapperDesc(field.message) && !field.oneof && field.fieldKind == "message") {
2429
+ value = {
2430
+ $typeName: field.message.typeName,
2431
+ value: longToReflect(field.message.fields[0], value)
2432
+ };
2433
+ } else if (field.message.typeName == "google.protobuf.Struct" && field.parent.typeName != "google.protobuf.Value" && isObject(value)) {
2434
+ value = wktStructToReflect(value);
2435
+ }
2436
+ }
2437
+ return new ReflectMessageImpl(field.message, value, check);
2438
+ }
2439
+ function listItemToLocal(field, value) {
2440
+ if (field.listKind == "message") {
2441
+ return messageToLocal(field, value);
2442
+ }
2443
+ return longToLocal(field, value);
2444
+ }
2445
+ function listItemToReflect(field, value, check) {
2446
+ if (field.listKind == "message") {
2447
+ return messageToReflect(field, value, check);
2448
+ }
2449
+ return longToReflect(field, value);
2450
+ }
2451
+ function mapValueToLocal(field, value) {
2452
+ if (field.mapKind == "message") {
2453
+ return messageToLocal(field, value);
2454
+ }
2455
+ return longToLocal(field, value);
2456
+ }
2457
+ function mapValueToReflect(field, value, check) {
2458
+ if (field.mapKind == "message") {
2459
+ return messageToReflect(field, value, check);
2460
+ }
2461
+ return value;
2462
+ }
2463
+ function mapKeyToLocal(key) {
2464
+ return typeof key == "string" || typeof key == "number" ? key : String(key);
2465
+ }
2466
+ function mapKeyToReflect(key, type) {
2467
+ switch (type) {
2468
+ case ScalarType.STRING:
2469
+ return key;
2470
+ case ScalarType.INT32:
2471
+ case ScalarType.FIXED32:
2472
+ case ScalarType.UINT32:
2473
+ case ScalarType.SFIXED32:
2474
+ case ScalarType.SINT32: {
2475
+ const n = Number.parseInt(key);
2476
+ if (Number.isFinite(n)) {
2477
+ return n;
2478
+ }
2479
+ break;
2480
+ }
2481
+ case ScalarType.BOOL:
2482
+ switch (key) {
2483
+ case "true":
2484
+ return true;
2485
+ case "false":
2486
+ return false;
2487
+ }
2488
+ break;
2489
+ case ScalarType.UINT64:
2490
+ case ScalarType.FIXED64:
2491
+ try {
2492
+ return protoInt64.uParse(key);
2493
+ } catch (_a) {}
2494
+ break;
2495
+ default:
2496
+ try {
2497
+ return protoInt64.parse(key);
2498
+ } catch (_b) {}
2499
+ break;
2500
+ }
2501
+ return key;
2502
+ }
2503
+ function longToReflect(field, value) {
2504
+ switch (field.scalar) {
2505
+ case ScalarType.INT64:
2506
+ case ScalarType.SFIXED64:
2507
+ case ScalarType.SINT64:
2508
+ if ("longAsString" in field && field.longAsString && typeof value == "string") {
2509
+ value = protoInt64.parse(value);
2510
+ }
2511
+ break;
2512
+ case ScalarType.FIXED64:
2513
+ case ScalarType.UINT64:
2514
+ if ("longAsString" in field && field.longAsString && typeof value == "string") {
2515
+ value = protoInt64.uParse(value);
2516
+ }
2517
+ break;
2518
+ }
2519
+ return value;
2520
+ }
2521
+ function longToLocal(field, value) {
2522
+ switch (field.scalar) {
2523
+ case ScalarType.INT64:
2524
+ case ScalarType.SFIXED64:
2525
+ case ScalarType.SINT64:
2526
+ if ("longAsString" in field && field.longAsString) {
2527
+ value = String(value);
2528
+ } else if (typeof value == "string" || typeof value == "number") {
2529
+ value = protoInt64.parse(value);
2530
+ }
2531
+ break;
2532
+ case ScalarType.FIXED64:
2533
+ case ScalarType.UINT64:
2534
+ if ("longAsString" in field && field.longAsString) {
2535
+ value = String(value);
2536
+ } else if (typeof value == "string" || typeof value == "number") {
2537
+ value = protoInt64.uParse(value);
2538
+ }
2539
+ break;
2540
+ }
2541
+ return value;
2542
+ }
2543
+ function wktStructToReflect(json) {
2544
+ const struct = {
2545
+ $typeName: "google.protobuf.Struct",
2546
+ fields: {}
2547
+ };
2548
+ if (isObject(json)) {
2549
+ for (const [k, v] of Object.entries(json)) {
2550
+ struct.fields[k] = wktValueToReflect(v);
2551
+ }
2552
+ }
2553
+ return struct;
2554
+ }
2555
+ function wktStructToLocal(val) {
2556
+ const json = {};
2557
+ for (const [k, v] of Object.entries(val.fields)) {
2558
+ json[k] = wktValueToLocal(v);
2559
+ }
2560
+ return json;
2561
+ }
2562
+ function wktValueToLocal(val) {
2563
+ switch (val.kind.case) {
2564
+ case "structValue":
2565
+ return wktStructToLocal(val.kind.value);
2566
+ case "listValue":
2567
+ return val.kind.value.values.map(wktValueToLocal);
2568
+ case "nullValue":
2569
+ case undefined:
2570
+ return null;
2571
+ default:
2572
+ return val.kind.value;
2573
+ }
2574
+ }
2575
+ function wktValueToReflect(json) {
2576
+ const value = {
2577
+ $typeName: "google.protobuf.Value",
2578
+ kind: { case: undefined }
2579
+ };
2580
+ switch (typeof json) {
2581
+ case "number":
2582
+ value.kind = { case: "numberValue", value: json };
2583
+ break;
2584
+ case "string":
2585
+ value.kind = { case: "stringValue", value: json };
2586
+ break;
2587
+ case "boolean":
2588
+ value.kind = { case: "boolValue", value: json };
2589
+ break;
2590
+ case "object":
2591
+ if (json === null) {
2592
+ const nullValue = 0;
2593
+ value.kind = { case: "nullValue", value: nullValue };
2594
+ } else if (Array.isArray(json)) {
2595
+ const listValue = {
2596
+ $typeName: "google.protobuf.ListValue",
2597
+ values: []
2598
+ };
2599
+ if (Array.isArray(json)) {
2600
+ for (const e of json) {
2601
+ listValue.values.push(wktValueToReflect(e));
2602
+ }
2603
+ }
2604
+ value.kind = {
2605
+ case: "listValue",
2606
+ value: listValue
2607
+ };
2608
+ } else {
2609
+ value.kind = {
2610
+ case: "structValue",
2611
+ value: wktStructToReflect(json)
2612
+ };
2613
+ }
2614
+ break;
2615
+ }
2616
+ return value;
2617
+ }
2618
+
2619
+ // node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js
2620
+ function messageDesc(file, path, ...paths) {
2621
+ return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]);
2622
+ }
2623
+
2624
+ // node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js
2625
+ function enumDesc(file, path, ...paths) {
2626
+ if (paths.length == 0) {
2627
+ return file.enums[path];
2628
+ }
2629
+ const e = paths.pop();
2630
+ return paths.reduce((acc, cur) => acc.nestedMessages[cur], file.messages[path]).nestedEnums[e];
2631
+ }
2632
+
2633
+ // node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js
2634
+ var file_google_protobuf_descriptor = /* @__PURE__ */ boot({ name: "google/protobuf/descriptor.proto", package: "google.protobuf", messageType: [{ name: "FileDescriptorSet", field: [{ name: "file", number: 1, type: 11, label: 3, typeName: ".google.protobuf.FileDescriptorProto" }], extensionRange: [{ start: 536000000, end: 536000001 }] }, { name: "FileDescriptorProto", field: [{ name: "name", number: 1, type: 9, label: 1 }, { name: "package", number: 2, type: 9, label: 1 }, { name: "dependency", number: 3, type: 9, label: 3 }, { name: "public_dependency", number: 10, type: 5, label: 3 }, { name: "weak_dependency", number: 11, type: 5, label: 3 }, { name: "option_dependency", number: 15, type: 9, label: 3 }, { name: "message_type", number: 4, type: 11, label: 3, typeName: ".google.protobuf.DescriptorProto" }, { name: "enum_type", number: 5, type: 11, label: 3, typeName: ".google.protobuf.EnumDescriptorProto" }, { name: "service", number: 6, type: 11, label: 3, typeName: ".google.protobuf.ServiceDescriptorProto" }, { name: "extension", number: 7, type: 11, label: 3, typeName: ".google.protobuf.FieldDescriptorProto" }, { name: "options", number: 8, type: 11, label: 1, typeName: ".google.protobuf.FileOptions" }, { name: "source_code_info", number: 9, type: 11, label: 1, typeName: ".google.protobuf.SourceCodeInfo" }, { name: "syntax", number: 12, type: 9, label: 1 }, { name: "edition", number: 14, type: 14, label: 1, typeName: ".google.protobuf.Edition" }] }, { name: "DescriptorProto", field: [{ name: "name", number: 1, type: 9, label: 1 }, { name: "field", number: 2, type: 11, label: 3, typeName: ".google.protobuf.FieldDescriptorProto" }, { name: "extension", number: 6, type: 11, label: 3, typeName: ".google.protobuf.FieldDescriptorProto" }, { name: "nested_type", number: 3, type: 11, label: 3, typeName: ".google.protobuf.DescriptorProto" }, { name: "enum_type", number: 4, type: 11, label: 3, typeName: ".google.protobuf.EnumDescriptorProto" }, { name: "extension_range", number: 5, type: 11, label: 3, typeName: ".google.protobuf.DescriptorProto.ExtensionRange" }, { name: "oneof_decl", number: 8, type: 11, label: 3, typeName: ".google.protobuf.OneofDescriptorProto" }, { name: "options", number: 7, type: 11, label: 1, typeName: ".google.protobuf.MessageOptions" }, { name: "reserved_range", number: 9, type: 11, label: 3, typeName: ".google.protobuf.DescriptorProto.ReservedRange" }, { name: "reserved_name", number: 10, type: 9, label: 3 }, { name: "visibility", number: 11, type: 14, label: 1, typeName: ".google.protobuf.SymbolVisibility" }], nestedType: [{ name: "ExtensionRange", field: [{ name: "start", number: 1, type: 5, label: 1 }, { name: "end", number: 2, type: 5, label: 1 }, { name: "options", number: 3, type: 11, label: 1, typeName: ".google.protobuf.ExtensionRangeOptions" }] }, { name: "ReservedRange", field: [{ name: "start", number: 1, type: 5, label: 1 }, { name: "end", number: 2, type: 5, label: 1 }] }] }, { name: "ExtensionRangeOptions", field: [{ name: "uninterpreted_option", number: 999, type: 11, label: 3, typeName: ".google.protobuf.UninterpretedOption" }, { name: "declaration", number: 2, type: 11, label: 3, typeName: ".google.protobuf.ExtensionRangeOptions.Declaration", options: { retention: 2 } }, { name: "features", number: 50, type: 11, label: 1, typeName: ".google.protobuf.FeatureSet" }, { name: "verification", number: 3, type: 14, label: 1, typeName: ".google.protobuf.ExtensionRangeOptions.VerificationState", defaultValue: "UNVERIFIED", options: { retention: 2 } }], nestedType: [{ name: "Declaration", field: [{ name: "number", number: 1, type: 5, label: 1 }, { name: "full_name", number: 2, type: 9, label: 1 }, { name: "type", number: 3, type: 9, label: 1 }, { name: "reserved", number: 5, type: 8, label: 1 }, { name: "repeated", number: 6, type: 8, label: 1 }] }], enumType: [{ name: "VerificationState", value: [{ name: "DECLARATION", number: 0 }, { name: "UNVERIFIED", number: 1 }] }], extensionRange: [{ start: 1000, end: 536870912 }] }, { name: "FieldDescriptorProto", field: [{ name: "name", number: 1, type: 9, label: 1 }, { name: "number", number: 3, type: 5, label: 1 }, { name: "label", number: 4, type: 14, label: 1, typeName: ".google.protobuf.FieldDescriptorProto.Label" }, { name: "type", number: 5, type: 14, label: 1, typeName: ".google.protobuf.FieldDescriptorProto.Type" }, { name: "type_name", number: 6, type: 9, label: 1 }, { name: "extendee", number: 2, type: 9, label: 1 }, { name: "default_value", number: 7, type: 9, label: 1 }, { name: "oneof_index", number: 9, type: 5, label: 1 }, { name: "json_name", number: 10, type: 9, label: 1 }, { name: "options", number: 8, type: 11, label: 1, typeName: ".google.protobuf.FieldOptions" }, { name: "proto3_optional", number: 17, type: 8, label: 1 }], enumType: [{ name: "Type", value: [{ name: "TYPE_DOUBLE", number: 1 }, { name: "TYPE_FLOAT", number: 2 }, { name: "TYPE_INT64", number: 3 }, { name: "TYPE_UINT64", number: 4 }, { name: "TYPE_INT32", number: 5 }, { name: "TYPE_FIXED64", number: 6 }, { name: "TYPE_FIXED32", number: 7 }, { name: "TYPE_BOOL", number: 8 }, { name: "TYPE_STRING", number: 9 }, { name: "TYPE_GROUP", number: 10 }, { name: "TYPE_MESSAGE", number: 11 }, { name: "TYPE_BYTES", number: 12 }, { name: "TYPE_UINT32", number: 13 }, { name: "TYPE_ENUM", number: 14 }, { name: "TYPE_SFIXED32", number: 15 }, { name: "TYPE_SFIXED64", number: 16 }, { name: "TYPE_SINT32", number: 17 }, { name: "TYPE_SINT64", number: 18 }] }, { name: "Label", value: [{ name: "LABEL_OPTIONAL", number: 1 }, { name: "LABEL_REPEATED", number: 3 }, { name: "LABEL_REQUIRED", number: 2 }] }] }, { name: "OneofDescriptorProto", field: [{ name: "name", number: 1, type: 9, label: 1 }, { name: "options", number: 2, type: 11, label: 1, typeName: ".google.protobuf.OneofOptions" }] }, { name: "EnumDescriptorProto", field: [{ name: "name", number: 1, type: 9, label: 1 }, { name: "value", number: 2, type: 11, label: 3, typeName: ".google.protobuf.EnumValueDescriptorProto" }, { name: "options", number: 3, type: 11, label: 1, typeName: ".google.protobuf.EnumOptions" }, { name: "reserved_range", number: 4, type: 11, label: 3, typeName: ".google.protobuf.EnumDescriptorProto.EnumReservedRange" }, { name: "reserved_name", number: 5, type: 9, label: 3 }, { name: "visibility", number: 6, type: 14, label: 1, typeName: ".google.protobuf.SymbolVisibility" }], nestedType: [{ name: "EnumReservedRange", field: [{ name: "start", number: 1, type: 5, label: 1 }, { name: "end", number: 2, type: 5, label: 1 }] }] }, { name: "EnumValueDescriptorProto", field: [{ name: "name", number: 1, type: 9, label: 1 }, { name: "number", number: 2, type: 5, label: 1 }, { name: "options", number: 3, type: 11, label: 1, typeName: ".google.protobuf.EnumValueOptions" }] }, { name: "ServiceDescriptorProto", field: [{ name: "name", number: 1, type: 9, label: 1 }, { name: "method", number: 2, type: 11, label: 3, typeName: ".google.protobuf.MethodDescriptorProto" }, { name: "options", number: 3, type: 11, label: 1, typeName: ".google.protobuf.ServiceOptions" }] }, { name: "MethodDescriptorProto", field: [{ name: "name", number: 1, type: 9, label: 1 }, { name: "input_type", number: 2, type: 9, label: 1 }, { name: "output_type", number: 3, type: 9, label: 1 }, { name: "options", number: 4, type: 11, label: 1, typeName: ".google.protobuf.MethodOptions" }, { name: "client_streaming", number: 5, type: 8, label: 1, defaultValue: "false" }, { name: "server_streaming", number: 6, type: 8, label: 1, defaultValue: "false" }] }, { name: "FileOptions", field: [{ name: "java_package", number: 1, type: 9, label: 1 }, { name: "java_outer_classname", number: 8, type: 9, label: 1 }, { name: "java_multiple_files", number: 10, type: 8, label: 1, defaultValue: "false" }, { name: "java_generate_equals_and_hash", number: 20, type: 8, label: 1, options: { deprecated: true } }, { name: "java_string_check_utf8", number: 27, type: 8, label: 1, defaultValue: "false" }, { name: "optimize_for", number: 9, type: 14, label: 1, typeName: ".google.protobuf.FileOptions.OptimizeMode", defaultValue: "SPEED" }, { name: "go_package", number: 11, type: 9, label: 1 }, { name: "cc_generic_services", number: 16, type: 8, label: 1, defaultValue: "false" }, { name: "java_generic_services", number: 17, type: 8, label: 1, defaultValue: "false" }, { name: "py_generic_services", number: 18, type: 8, label: 1, defaultValue: "false" }, { name: "deprecated", number: 23, type: 8, label: 1, defaultValue: "false" }, { name: "cc_enable_arenas", number: 31, type: 8, label: 1, defaultValue: "true" }, { name: "objc_class_prefix", number: 36, type: 9, label: 1 }, { name: "csharp_namespace", number: 37, type: 9, label: 1 }, { name: "swift_prefix", number: 39, type: 9, label: 1 }, { name: "php_class_prefix", number: 40, type: 9, label: 1 }, { name: "php_namespace", number: 41, type: 9, label: 1 }, { name: "php_metadata_namespace", number: 44, type: 9, label: 1 }, { name: "ruby_package", number: 45, type: 9, label: 1 }, { name: "features", number: 50, type: 11, label: 1, typeName: ".google.protobuf.FeatureSet" }, { name: "uninterpreted_option", number: 999, type: 11, label: 3, typeName: ".google.protobuf.UninterpretedOption" }], enumType: [{ name: "OptimizeMode", value: [{ name: "SPEED", number: 1 }, { name: "CODE_SIZE", number: 2 }, { name: "LITE_RUNTIME", number: 3 }] }], extensionRange: [{ start: 1000, end: 536870912 }] }, { name: "MessageOptions", field: [{ name: "message_set_wire_format", number: 1, type: 8, label: 1, defaultValue: "false" }, { name: "no_standard_descriptor_accessor", number: 2, type: 8, label: 1, defaultValue: "false" }, { name: "deprecated", number: 3, type: 8, label: 1, defaultValue: "false" }, { name: "map_entry", number: 7, type: 8, label: 1 }, { name: "deprecated_legacy_json_field_conflicts", number: 11, type: 8, label: 1, options: { deprecated: true } }, { name: "features", number: 12, type: 11, label: 1, typeName: ".google.protobuf.FeatureSet" }, { name: "uninterpreted_option", number: 999, type: 11, label: 3, typeName: ".google.protobuf.UninterpretedOption" }], extensionRange: [{ start: 1000, end: 536870912 }] }, { name: "FieldOptions", field: [{ name: "ctype", number: 1, type: 14, label: 1, typeName: ".google.protobuf.FieldOptions.CType", defaultValue: "STRING" }, { name: "packed", number: 2, type: 8, label: 1 }, { name: "jstype", number: 6, type: 14, label: 1, typeName: ".google.protobuf.FieldOptions.JSType", defaultValue: "JS_NORMAL" }, { name: "lazy", number: 5, type: 8, label: 1, defaultValue: "false" }, { name: "unverified_lazy", number: 15, type: 8, label: 1, defaultValue: "false" }, { name: "deprecated", number: 3, type: 8, label: 1, defaultValue: "false" }, { name: "weak", number: 10, type: 8, label: 1, defaultValue: "false", options: { deprecated: true } }, { name: "debug_redact", number: 16, type: 8, label: 1, defaultValue: "false" }, { name: "retention", number: 17, type: 14, label: 1, typeName: ".google.protobuf.FieldOptions.OptionRetention" }, { name: "targets", number: 19, type: 14, label: 3, typeName: ".google.protobuf.FieldOptions.OptionTargetType" }, { name: "edition_defaults", number: 20, type: 11, label: 3, typeName: ".google.protobuf.FieldOptions.EditionDefault" }, { name: "features", number: 21, type: 11, label: 1, typeName: ".google.protobuf.FeatureSet" }, { name: "feature_support", number: 22, type: 11, label: 1, typeName: ".google.protobuf.FieldOptions.FeatureSupport" }, { name: "uninterpreted_option", number: 999, type: 11, label: 3, typeName: ".google.protobuf.UninterpretedOption" }], nestedType: [{ name: "EditionDefault", field: [{ name: "edition", number: 3, type: 14, label: 1, typeName: ".google.protobuf.Edition" }, { name: "value", number: 2, type: 9, label: 1 }] }, { name: "FeatureSupport", field: [{ name: "edition_introduced", number: 1, type: 14, label: 1, typeName: ".google.protobuf.Edition" }, { name: "edition_deprecated", number: 2, type: 14, label: 1, typeName: ".google.protobuf.Edition" }, { name: "deprecation_warning", number: 3, type: 9, label: 1 }, { name: "edition_removed", number: 4, type: 14, label: 1, typeName: ".google.protobuf.Edition" }] }], enumType: [{ name: "CType", value: [{ name: "STRING", number: 0 }, { name: "CORD", number: 1 }, { name: "STRING_PIECE", number: 2 }] }, { name: "JSType", value: [{ name: "JS_NORMAL", number: 0 }, { name: "JS_STRING", number: 1 }, { name: "JS_NUMBER", number: 2 }] }, { name: "OptionRetention", value: [{ name: "RETENTION_UNKNOWN", number: 0 }, { name: "RETENTION_RUNTIME", number: 1 }, { name: "RETENTION_SOURCE", number: 2 }] }, { name: "OptionTargetType", value: [{ name: "TARGET_TYPE_UNKNOWN", number: 0 }, { name: "TARGET_TYPE_FILE", number: 1 }, { name: "TARGET_TYPE_EXTENSION_RANGE", number: 2 }, { name: "TARGET_TYPE_MESSAGE", number: 3 }, { name: "TARGET_TYPE_FIELD", number: 4 }, { name: "TARGET_TYPE_ONEOF", number: 5 }, { name: "TARGET_TYPE_ENUM", number: 6 }, { name: "TARGET_TYPE_ENUM_ENTRY", number: 7 }, { name: "TARGET_TYPE_SERVICE", number: 8 }, { name: "TARGET_TYPE_METHOD", number: 9 }] }], extensionRange: [{ start: 1000, end: 536870912 }] }, { name: "OneofOptions", field: [{ name: "features", number: 1, type: 11, label: 1, typeName: ".google.protobuf.FeatureSet" }, { name: "uninterpreted_option", number: 999, type: 11, label: 3, typeName: ".google.protobuf.UninterpretedOption" }], extensionRange: [{ start: 1000, end: 536870912 }] }, { name: "EnumOptions", field: [{ name: "allow_alias", number: 2, type: 8, label: 1 }, { name: "deprecated", number: 3, type: 8, label: 1, defaultValue: "false" }, { name: "deprecated_legacy_json_field_conflicts", number: 6, type: 8, label: 1, options: { deprecated: true } }, { name: "features", number: 7, type: 11, label: 1, typeName: ".google.protobuf.FeatureSet" }, { name: "uninterpreted_option", number: 999, type: 11, label: 3, typeName: ".google.protobuf.UninterpretedOption" }], extensionRange: [{ start: 1000, end: 536870912 }] }, { name: "EnumValueOptions", field: [{ name: "deprecated", number: 1, type: 8, label: 1, defaultValue: "false" }, { name: "features", number: 2, type: 11, label: 1, typeName: ".google.protobuf.FeatureSet" }, { name: "debug_redact", number: 3, type: 8, label: 1, defaultValue: "false" }, { name: "feature_support", number: 4, type: 11, label: 1, typeName: ".google.protobuf.FieldOptions.FeatureSupport" }, { name: "uninterpreted_option", number: 999, type: 11, label: 3, typeName: ".google.protobuf.UninterpretedOption" }], extensionRange: [{ start: 1000, end: 536870912 }] }, { name: "ServiceOptions", field: [{ name: "features", number: 34, type: 11, label: 1, typeName: ".google.protobuf.FeatureSet" }, { name: "deprecated", number: 33, type: 8, label: 1, defaultValue: "false" }, { name: "uninterpreted_option", number: 999, type: 11, label: 3, typeName: ".google.protobuf.UninterpretedOption" }], extensionRange: [{ start: 1000, end: 536870912 }] }, { name: "MethodOptions", field: [{ name: "deprecated", number: 33, type: 8, label: 1, defaultValue: "false" }, { name: "idempotency_level", number: 34, type: 14, label: 1, typeName: ".google.protobuf.MethodOptions.IdempotencyLevel", defaultValue: "IDEMPOTENCY_UNKNOWN" }, { name: "features", number: 35, type: 11, label: 1, typeName: ".google.protobuf.FeatureSet" }, { name: "uninterpreted_option", number: 999, type: 11, label: 3, typeName: ".google.protobuf.UninterpretedOption" }], enumType: [{ name: "IdempotencyLevel", value: [{ name: "IDEMPOTENCY_UNKNOWN", number: 0 }, { name: "NO_SIDE_EFFECTS", number: 1 }, { name: "IDEMPOTENT", number: 2 }] }], extensionRange: [{ start: 1000, end: 536870912 }] }, { name: "UninterpretedOption", field: [{ name: "name", number: 2, type: 11, label: 3, typeName: ".google.protobuf.UninterpretedOption.NamePart" }, { name: "identifier_value", number: 3, type: 9, label: 1 }, { name: "positive_int_value", number: 4, type: 4, label: 1 }, { name: "negative_int_value", number: 5, type: 3, label: 1 }, { name: "double_value", number: 6, type: 1, label: 1 }, { name: "string_value", number: 7, type: 12, label: 1 }, { name: "aggregate_value", number: 8, type: 9, label: 1 }], nestedType: [{ name: "NamePart", field: [{ name: "name_part", number: 1, type: 9, label: 2 }, { name: "is_extension", number: 2, type: 8, label: 2 }] }] }, { name: "FeatureSet", field: [{ name: "field_presence", number: 1, type: 14, label: 1, typeName: ".google.protobuf.FeatureSet.FieldPresence", options: { retention: 1, targets: [4, 1], editionDefaults: [{ value: "EXPLICIT", edition: 900 }, { value: "IMPLICIT", edition: 999 }, { value: "EXPLICIT", edition: 1000 }] } }, { name: "enum_type", number: 2, type: 14, label: 1, typeName: ".google.protobuf.FeatureSet.EnumType", options: { retention: 1, targets: [6, 1], editionDefaults: [{ value: "CLOSED", edition: 900 }, { value: "OPEN", edition: 999 }] } }, { name: "repeated_field_encoding", number: 3, type: 14, label: 1, typeName: ".google.protobuf.FeatureSet.RepeatedFieldEncoding", options: { retention: 1, targets: [4, 1], editionDefaults: [{ value: "EXPANDED", edition: 900 }, { value: "PACKED", edition: 999 }] } }, { name: "utf8_validation", number: 4, type: 14, label: 1, typeName: ".google.protobuf.FeatureSet.Utf8Validation", options: { retention: 1, targets: [4, 1], editionDefaults: [{ value: "NONE", edition: 900 }, { value: "VERIFY", edition: 999 }] } }, { name: "message_encoding", number: 5, type: 14, label: 1, typeName: ".google.protobuf.FeatureSet.MessageEncoding", options: { retention: 1, targets: [4, 1], editionDefaults: [{ value: "LENGTH_PREFIXED", edition: 900 }] } }, { name: "json_format", number: 6, type: 14, label: 1, typeName: ".google.protobuf.FeatureSet.JsonFormat", options: { retention: 1, targets: [3, 6, 1], editionDefaults: [{ value: "LEGACY_BEST_EFFORT", edition: 900 }, { value: "ALLOW", edition: 999 }] } }, { name: "enforce_naming_style", number: 7, type: 14, label: 1, typeName: ".google.protobuf.FeatureSet.EnforceNamingStyle", options: { retention: 2, targets: [1, 2, 3, 4, 5, 6, 7, 8, 9], editionDefaults: [{ value: "STYLE_LEGACY", edition: 900 }, { value: "STYLE2024", edition: 1001 }] } }, { name: "default_symbol_visibility", number: 8, type: 14, label: 1, typeName: ".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility", options: { retention: 2, targets: [1], editionDefaults: [{ value: "EXPORT_ALL", edition: 900 }, { value: "EXPORT_TOP_LEVEL", edition: 1001 }] } }], nestedType: [{ name: "VisibilityFeature", enumType: [{ name: "DefaultSymbolVisibility", value: [{ name: "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN", number: 0 }, { name: "EXPORT_ALL", number: 1 }, { name: "EXPORT_TOP_LEVEL", number: 2 }, { name: "LOCAL_ALL", number: 3 }, { name: "STRICT", number: 4 }] }] }], enumType: [{ name: "FieldPresence", value: [{ name: "FIELD_PRESENCE_UNKNOWN", number: 0 }, { name: "EXPLICIT", number: 1 }, { name: "IMPLICIT", number: 2 }, { name: "LEGACY_REQUIRED", number: 3 }] }, { name: "EnumType", value: [{ name: "ENUM_TYPE_UNKNOWN", number: 0 }, { name: "OPEN", number: 1 }, { name: "CLOSED", number: 2 }] }, { name: "RepeatedFieldEncoding", value: [{ name: "REPEATED_FIELD_ENCODING_UNKNOWN", number: 0 }, { name: "PACKED", number: 1 }, { name: "EXPANDED", number: 2 }] }, { name: "Utf8Validation", value: [{ name: "UTF8_VALIDATION_UNKNOWN", number: 0 }, { name: "VERIFY", number: 2 }, { name: "NONE", number: 3 }] }, { name: "MessageEncoding", value: [{ name: "MESSAGE_ENCODING_UNKNOWN", number: 0 }, { name: "LENGTH_PREFIXED", number: 1 }, { name: "DELIMITED", number: 2 }] }, { name: "JsonFormat", value: [{ name: "JSON_FORMAT_UNKNOWN", number: 0 }, { name: "ALLOW", number: 1 }, { name: "LEGACY_BEST_EFFORT", number: 2 }] }, { name: "EnforceNamingStyle", value: [{ name: "ENFORCE_NAMING_STYLE_UNKNOWN", number: 0 }, { name: "STYLE2024", number: 1 }, { name: "STYLE_LEGACY", number: 2 }] }], extensionRange: [{ start: 1000, end: 9995 }, { start: 9995, end: 1e4 }, { start: 1e4, end: 10001 }] }, { name: "FeatureSetDefaults", field: [{ name: "defaults", number: 1, type: 11, label: 3, typeName: ".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault" }, { name: "minimum_edition", number: 4, type: 14, label: 1, typeName: ".google.protobuf.Edition" }, { name: "maximum_edition", number: 5, type: 14, label: 1, typeName: ".google.protobuf.Edition" }], nestedType: [{ name: "FeatureSetEditionDefault", field: [{ name: "edition", number: 3, type: 14, label: 1, typeName: ".google.protobuf.Edition" }, { name: "overridable_features", number: 4, type: 11, label: 1, typeName: ".google.protobuf.FeatureSet" }, { name: "fixed_features", number: 5, type: 11, label: 1, typeName: ".google.protobuf.FeatureSet" }] }] }, { name: "SourceCodeInfo", field: [{ name: "location", number: 1, type: 11, label: 3, typeName: ".google.protobuf.SourceCodeInfo.Location" }], nestedType: [{ name: "Location", field: [{ name: "path", number: 1, type: 5, label: 3, options: { packed: true } }, { name: "span", number: 2, type: 5, label: 3, options: { packed: true } }, { name: "leading_comments", number: 3, type: 9, label: 1 }, { name: "trailing_comments", number: 4, type: 9, label: 1 }, { name: "leading_detached_comments", number: 6, type: 9, label: 3 }] }], extensionRange: [{ start: 536000000, end: 536000001 }] }, { name: "GeneratedCodeInfo", field: [{ name: "annotation", number: 1, type: 11, label: 3, typeName: ".google.protobuf.GeneratedCodeInfo.Annotation" }], nestedType: [{ name: "Annotation", field: [{ name: "path", number: 1, type: 5, label: 3, options: { packed: true } }, { name: "source_file", number: 2, type: 9, label: 1 }, { name: "begin", number: 3, type: 5, label: 1 }, { name: "end", number: 4, type: 5, label: 1 }, { name: "semantic", number: 5, type: 14, label: 1, typeName: ".google.protobuf.GeneratedCodeInfo.Annotation.Semantic" }], enumType: [{ name: "Semantic", value: [{ name: "NONE", number: 0 }, { name: "SET", number: 1 }, { name: "ALIAS", number: 2 }] }] }] }], enumType: [{ name: "Edition", value: [{ name: "EDITION_UNKNOWN", number: 0 }, { name: "EDITION_LEGACY", number: 900 }, { name: "EDITION_PROTO2", number: 998 }, { name: "EDITION_PROTO3", number: 999 }, { name: "EDITION_2023", number: 1000 }, { name: "EDITION_2024", number: 1001 }, { name: "EDITION_UNSTABLE", number: 9999 }, { name: "EDITION_1_TEST_ONLY", number: 1 }, { name: "EDITION_2_TEST_ONLY", number: 2 }, { name: "EDITION_99997_TEST_ONLY", number: 99997 }, { name: "EDITION_99998_TEST_ONLY", number: 99998 }, { name: "EDITION_99999_TEST_ONLY", number: 99999 }, { name: "EDITION_MAX", number: 2147483647 }] }, { name: "SymbolVisibility", value: [{ name: "VISIBILITY_UNSET", number: 0 }, { name: "VISIBILITY_LOCAL", number: 1 }, { name: "VISIBILITY_EXPORT", number: 2 }] }] });
2635
+ var FileDescriptorProtoSchema = /* @__PURE__ */ messageDesc(file_google_protobuf_descriptor, 1);
2636
+ var ExtensionRangeOptions_VerificationState;
2637
+ (function(ExtensionRangeOptions_VerificationState2) {
2638
+ ExtensionRangeOptions_VerificationState2[ExtensionRangeOptions_VerificationState2["DECLARATION"] = 0] = "DECLARATION";
2639
+ ExtensionRangeOptions_VerificationState2[ExtensionRangeOptions_VerificationState2["UNVERIFIED"] = 1] = "UNVERIFIED";
2640
+ })(ExtensionRangeOptions_VerificationState || (ExtensionRangeOptions_VerificationState = {}));
2641
+ var FieldDescriptorProto_Type;
2642
+ (function(FieldDescriptorProto_Type2) {
2643
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["DOUBLE"] = 1] = "DOUBLE";
2644
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["FLOAT"] = 2] = "FLOAT";
2645
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["INT64"] = 3] = "INT64";
2646
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["UINT64"] = 4] = "UINT64";
2647
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["INT32"] = 5] = "INT32";
2648
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["FIXED64"] = 6] = "FIXED64";
2649
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["FIXED32"] = 7] = "FIXED32";
2650
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["BOOL"] = 8] = "BOOL";
2651
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["STRING"] = 9] = "STRING";
2652
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["GROUP"] = 10] = "GROUP";
2653
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["MESSAGE"] = 11] = "MESSAGE";
2654
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["BYTES"] = 12] = "BYTES";
2655
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["UINT32"] = 13] = "UINT32";
2656
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["ENUM"] = 14] = "ENUM";
2657
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["SFIXED32"] = 15] = "SFIXED32";
2658
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["SFIXED64"] = 16] = "SFIXED64";
2659
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["SINT32"] = 17] = "SINT32";
2660
+ FieldDescriptorProto_Type2[FieldDescriptorProto_Type2["SINT64"] = 18] = "SINT64";
2661
+ })(FieldDescriptorProto_Type || (FieldDescriptorProto_Type = {}));
2662
+ var FieldDescriptorProto_Label;
2663
+ (function(FieldDescriptorProto_Label2) {
2664
+ FieldDescriptorProto_Label2[FieldDescriptorProto_Label2["OPTIONAL"] = 1] = "OPTIONAL";
2665
+ FieldDescriptorProto_Label2[FieldDescriptorProto_Label2["REPEATED"] = 3] = "REPEATED";
2666
+ FieldDescriptorProto_Label2[FieldDescriptorProto_Label2["REQUIRED"] = 2] = "REQUIRED";
2667
+ })(FieldDescriptorProto_Label || (FieldDescriptorProto_Label = {}));
2668
+ var FileOptions_OptimizeMode;
2669
+ (function(FileOptions_OptimizeMode2) {
2670
+ FileOptions_OptimizeMode2[FileOptions_OptimizeMode2["SPEED"] = 1] = "SPEED";
2671
+ FileOptions_OptimizeMode2[FileOptions_OptimizeMode2["CODE_SIZE"] = 2] = "CODE_SIZE";
2672
+ FileOptions_OptimizeMode2[FileOptions_OptimizeMode2["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
2673
+ })(FileOptions_OptimizeMode || (FileOptions_OptimizeMode = {}));
2674
+ var FieldOptions_CType;
2675
+ (function(FieldOptions_CType2) {
2676
+ FieldOptions_CType2[FieldOptions_CType2["STRING"] = 0] = "STRING";
2677
+ FieldOptions_CType2[FieldOptions_CType2["CORD"] = 1] = "CORD";
2678
+ FieldOptions_CType2[FieldOptions_CType2["STRING_PIECE"] = 2] = "STRING_PIECE";
2679
+ })(FieldOptions_CType || (FieldOptions_CType = {}));
2680
+ var FieldOptions_JSType;
2681
+ (function(FieldOptions_JSType2) {
2682
+ FieldOptions_JSType2[FieldOptions_JSType2["JS_NORMAL"] = 0] = "JS_NORMAL";
2683
+ FieldOptions_JSType2[FieldOptions_JSType2["JS_STRING"] = 1] = "JS_STRING";
2684
+ FieldOptions_JSType2[FieldOptions_JSType2["JS_NUMBER"] = 2] = "JS_NUMBER";
2685
+ })(FieldOptions_JSType || (FieldOptions_JSType = {}));
2686
+ var FieldOptions_OptionRetention;
2687
+ (function(FieldOptions_OptionRetention2) {
2688
+ FieldOptions_OptionRetention2[FieldOptions_OptionRetention2["RETENTION_UNKNOWN"] = 0] = "RETENTION_UNKNOWN";
2689
+ FieldOptions_OptionRetention2[FieldOptions_OptionRetention2["RETENTION_RUNTIME"] = 1] = "RETENTION_RUNTIME";
2690
+ FieldOptions_OptionRetention2[FieldOptions_OptionRetention2["RETENTION_SOURCE"] = 2] = "RETENTION_SOURCE";
2691
+ })(FieldOptions_OptionRetention || (FieldOptions_OptionRetention = {}));
2692
+ var FieldOptions_OptionTargetType;
2693
+ (function(FieldOptions_OptionTargetType2) {
2694
+ FieldOptions_OptionTargetType2[FieldOptions_OptionTargetType2["TARGET_TYPE_UNKNOWN"] = 0] = "TARGET_TYPE_UNKNOWN";
2695
+ FieldOptions_OptionTargetType2[FieldOptions_OptionTargetType2["TARGET_TYPE_FILE"] = 1] = "TARGET_TYPE_FILE";
2696
+ FieldOptions_OptionTargetType2[FieldOptions_OptionTargetType2["TARGET_TYPE_EXTENSION_RANGE"] = 2] = "TARGET_TYPE_EXTENSION_RANGE";
2697
+ FieldOptions_OptionTargetType2[FieldOptions_OptionTargetType2["TARGET_TYPE_MESSAGE"] = 3] = "TARGET_TYPE_MESSAGE";
2698
+ FieldOptions_OptionTargetType2[FieldOptions_OptionTargetType2["TARGET_TYPE_FIELD"] = 4] = "TARGET_TYPE_FIELD";
2699
+ FieldOptions_OptionTargetType2[FieldOptions_OptionTargetType2["TARGET_TYPE_ONEOF"] = 5] = "TARGET_TYPE_ONEOF";
2700
+ FieldOptions_OptionTargetType2[FieldOptions_OptionTargetType2["TARGET_TYPE_ENUM"] = 6] = "TARGET_TYPE_ENUM";
2701
+ FieldOptions_OptionTargetType2[FieldOptions_OptionTargetType2["TARGET_TYPE_ENUM_ENTRY"] = 7] = "TARGET_TYPE_ENUM_ENTRY";
2702
+ FieldOptions_OptionTargetType2[FieldOptions_OptionTargetType2["TARGET_TYPE_SERVICE"] = 8] = "TARGET_TYPE_SERVICE";
2703
+ FieldOptions_OptionTargetType2[FieldOptions_OptionTargetType2["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD";
2704
+ })(FieldOptions_OptionTargetType || (FieldOptions_OptionTargetType = {}));
2705
+ var MethodOptions_IdempotencyLevel;
2706
+ (function(MethodOptions_IdempotencyLevel2) {
2707
+ MethodOptions_IdempotencyLevel2[MethodOptions_IdempotencyLevel2["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN";
2708
+ MethodOptions_IdempotencyLevel2[MethodOptions_IdempotencyLevel2["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS";
2709
+ MethodOptions_IdempotencyLevel2[MethodOptions_IdempotencyLevel2["IDEMPOTENT"] = 2] = "IDEMPOTENT";
2710
+ })(MethodOptions_IdempotencyLevel || (MethodOptions_IdempotencyLevel = {}));
2711
+ var FeatureSet_VisibilityFeature_DefaultSymbolVisibility;
2712
+ (function(FeatureSet_VisibilityFeature_DefaultSymbolVisibility2) {
2713
+ FeatureSet_VisibilityFeature_DefaultSymbolVisibility2[FeatureSet_VisibilityFeature_DefaultSymbolVisibility2["DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN";
2714
+ FeatureSet_VisibilityFeature_DefaultSymbolVisibility2[FeatureSet_VisibilityFeature_DefaultSymbolVisibility2["EXPORT_ALL"] = 1] = "EXPORT_ALL";
2715
+ FeatureSet_VisibilityFeature_DefaultSymbolVisibility2[FeatureSet_VisibilityFeature_DefaultSymbolVisibility2["EXPORT_TOP_LEVEL"] = 2] = "EXPORT_TOP_LEVEL";
2716
+ FeatureSet_VisibilityFeature_DefaultSymbolVisibility2[FeatureSet_VisibilityFeature_DefaultSymbolVisibility2["LOCAL_ALL"] = 3] = "LOCAL_ALL";
2717
+ FeatureSet_VisibilityFeature_DefaultSymbolVisibility2[FeatureSet_VisibilityFeature_DefaultSymbolVisibility2["STRICT"] = 4] = "STRICT";
2718
+ })(FeatureSet_VisibilityFeature_DefaultSymbolVisibility || (FeatureSet_VisibilityFeature_DefaultSymbolVisibility = {}));
2719
+ var FeatureSet_FieldPresence;
2720
+ (function(FeatureSet_FieldPresence2) {
2721
+ FeatureSet_FieldPresence2[FeatureSet_FieldPresence2["FIELD_PRESENCE_UNKNOWN"] = 0] = "FIELD_PRESENCE_UNKNOWN";
2722
+ FeatureSet_FieldPresence2[FeatureSet_FieldPresence2["EXPLICIT"] = 1] = "EXPLICIT";
2723
+ FeatureSet_FieldPresence2[FeatureSet_FieldPresence2["IMPLICIT"] = 2] = "IMPLICIT";
2724
+ FeatureSet_FieldPresence2[FeatureSet_FieldPresence2["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED";
2725
+ })(FeatureSet_FieldPresence || (FeatureSet_FieldPresence = {}));
2726
+ var FeatureSet_EnumType;
2727
+ (function(FeatureSet_EnumType2) {
2728
+ FeatureSet_EnumType2[FeatureSet_EnumType2["ENUM_TYPE_UNKNOWN"] = 0] = "ENUM_TYPE_UNKNOWN";
2729
+ FeatureSet_EnumType2[FeatureSet_EnumType2["OPEN"] = 1] = "OPEN";
2730
+ FeatureSet_EnumType2[FeatureSet_EnumType2["CLOSED"] = 2] = "CLOSED";
2731
+ })(FeatureSet_EnumType || (FeatureSet_EnumType = {}));
2732
+ var FeatureSet_RepeatedFieldEncoding;
2733
+ (function(FeatureSet_RepeatedFieldEncoding2) {
2734
+ FeatureSet_RepeatedFieldEncoding2[FeatureSet_RepeatedFieldEncoding2["REPEATED_FIELD_ENCODING_UNKNOWN"] = 0] = "REPEATED_FIELD_ENCODING_UNKNOWN";
2735
+ FeatureSet_RepeatedFieldEncoding2[FeatureSet_RepeatedFieldEncoding2["PACKED"] = 1] = "PACKED";
2736
+ FeatureSet_RepeatedFieldEncoding2[FeatureSet_RepeatedFieldEncoding2["EXPANDED"] = 2] = "EXPANDED";
2737
+ })(FeatureSet_RepeatedFieldEncoding || (FeatureSet_RepeatedFieldEncoding = {}));
2738
+ var FeatureSet_Utf8Validation;
2739
+ (function(FeatureSet_Utf8Validation2) {
2740
+ FeatureSet_Utf8Validation2[FeatureSet_Utf8Validation2["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
2741
+ FeatureSet_Utf8Validation2[FeatureSet_Utf8Validation2["VERIFY"] = 2] = "VERIFY";
2742
+ FeatureSet_Utf8Validation2[FeatureSet_Utf8Validation2["NONE"] = 3] = "NONE";
2743
+ })(FeatureSet_Utf8Validation || (FeatureSet_Utf8Validation = {}));
2744
+ var FeatureSet_MessageEncoding;
2745
+ (function(FeatureSet_MessageEncoding2) {
2746
+ FeatureSet_MessageEncoding2[FeatureSet_MessageEncoding2["MESSAGE_ENCODING_UNKNOWN"] = 0] = "MESSAGE_ENCODING_UNKNOWN";
2747
+ FeatureSet_MessageEncoding2[FeatureSet_MessageEncoding2["LENGTH_PREFIXED"] = 1] = "LENGTH_PREFIXED";
2748
+ FeatureSet_MessageEncoding2[FeatureSet_MessageEncoding2["DELIMITED"] = 2] = "DELIMITED";
2749
+ })(FeatureSet_MessageEncoding || (FeatureSet_MessageEncoding = {}));
2750
+ var FeatureSet_JsonFormat;
2751
+ (function(FeatureSet_JsonFormat2) {
2752
+ FeatureSet_JsonFormat2[FeatureSet_JsonFormat2["JSON_FORMAT_UNKNOWN"] = 0] = "JSON_FORMAT_UNKNOWN";
2753
+ FeatureSet_JsonFormat2[FeatureSet_JsonFormat2["ALLOW"] = 1] = "ALLOW";
2754
+ FeatureSet_JsonFormat2[FeatureSet_JsonFormat2["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT";
2755
+ })(FeatureSet_JsonFormat || (FeatureSet_JsonFormat = {}));
2756
+ var FeatureSet_EnforceNamingStyle;
2757
+ (function(FeatureSet_EnforceNamingStyle2) {
2758
+ FeatureSet_EnforceNamingStyle2[FeatureSet_EnforceNamingStyle2["ENFORCE_NAMING_STYLE_UNKNOWN"] = 0] = "ENFORCE_NAMING_STYLE_UNKNOWN";
2759
+ FeatureSet_EnforceNamingStyle2[FeatureSet_EnforceNamingStyle2["STYLE2024"] = 1] = "STYLE2024";
2760
+ FeatureSet_EnforceNamingStyle2[FeatureSet_EnforceNamingStyle2["STYLE_LEGACY"] = 2] = "STYLE_LEGACY";
2761
+ })(FeatureSet_EnforceNamingStyle || (FeatureSet_EnforceNamingStyle = {}));
2762
+ var GeneratedCodeInfo_Annotation_Semantic;
2763
+ (function(GeneratedCodeInfo_Annotation_Semantic2) {
2764
+ GeneratedCodeInfo_Annotation_Semantic2[GeneratedCodeInfo_Annotation_Semantic2["NONE"] = 0] = "NONE";
2765
+ GeneratedCodeInfo_Annotation_Semantic2[GeneratedCodeInfo_Annotation_Semantic2["SET"] = 1] = "SET";
2766
+ GeneratedCodeInfo_Annotation_Semantic2[GeneratedCodeInfo_Annotation_Semantic2["ALIAS"] = 2] = "ALIAS";
2767
+ })(GeneratedCodeInfo_Annotation_Semantic || (GeneratedCodeInfo_Annotation_Semantic = {}));
2768
+ var Edition;
2769
+ (function(Edition2) {
2770
+ Edition2[Edition2["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN";
2771
+ Edition2[Edition2["EDITION_LEGACY"] = 900] = "EDITION_LEGACY";
2772
+ Edition2[Edition2["EDITION_PROTO2"] = 998] = "EDITION_PROTO2";
2773
+ Edition2[Edition2["EDITION_PROTO3"] = 999] = "EDITION_PROTO3";
2774
+ Edition2[Edition2["EDITION_2023"] = 1000] = "EDITION_2023";
2775
+ Edition2[Edition2["EDITION_2024"] = 1001] = "EDITION_2024";
2776
+ Edition2[Edition2["EDITION_UNSTABLE"] = 9999] = "EDITION_UNSTABLE";
2777
+ Edition2[Edition2["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY";
2778
+ Edition2[Edition2["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY";
2779
+ Edition2[Edition2["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY";
2780
+ Edition2[Edition2["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY";
2781
+ Edition2[Edition2["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY";
2782
+ Edition2[Edition2["EDITION_MAX"] = 2147483647] = "EDITION_MAX";
2783
+ })(Edition || (Edition = {}));
2784
+ var SymbolVisibility;
2785
+ (function(SymbolVisibility2) {
2786
+ SymbolVisibility2[SymbolVisibility2["VISIBILITY_UNSET"] = 0] = "VISIBILITY_UNSET";
2787
+ SymbolVisibility2[SymbolVisibility2["VISIBILITY_LOCAL"] = 1] = "VISIBILITY_LOCAL";
2788
+ SymbolVisibility2[SymbolVisibility2["VISIBILITY_EXPORT"] = 2] = "VISIBILITY_EXPORT";
2789
+ })(SymbolVisibility || (SymbolVisibility = {}));
2790
+
2791
+ // node_modules/@bufbuild/protobuf/dist/esm/from-binary.js
2792
+ var readDefaults = {
2793
+ readUnknownFields: true
2794
+ };
2795
+ function makeReadOptions(options) {
2796
+ return options ? Object.assign(Object.assign({}, readDefaults), options) : readDefaults;
2797
+ }
2798
+ function fromBinary(schema, bytes, options) {
2799
+ const msg = reflect(schema, undefined, false);
2800
+ readMessage(msg, new BinaryReader(bytes), makeReadOptions(options), false, bytes.byteLength);
2801
+ return msg.message;
2802
+ }
2803
+ function readMessage(message, reader, options, delimited, lengthOrDelimitedFieldNo) {
2804
+ var _a;
2805
+ const end = delimited ? reader.len : reader.pos + lengthOrDelimitedFieldNo;
2806
+ let fieldNo;
2807
+ let wireType;
2808
+ const unknownFields = (_a = message.getUnknown()) !== null && _a !== undefined ? _a : [];
2809
+ while (reader.pos < end) {
2810
+ [fieldNo, wireType] = reader.tag();
2811
+ if (delimited && wireType == WireType.EndGroup) {
2812
+ break;
2813
+ }
2814
+ const field = message.findNumber(fieldNo);
2815
+ if (!field) {
2816
+ const data = reader.skip(wireType, fieldNo);
2817
+ if (options.readUnknownFields) {
2818
+ unknownFields.push({ no: fieldNo, wireType, data });
2819
+ }
2820
+ continue;
2821
+ }
2822
+ readField(message, reader, field, wireType, options);
2823
+ }
2824
+ if (delimited) {
2825
+ if (wireType != WireType.EndGroup || fieldNo !== lengthOrDelimitedFieldNo) {
2826
+ throw new Error("invalid end group tag");
2827
+ }
2828
+ }
2829
+ if (unknownFields.length > 0) {
2830
+ message.setUnknown(unknownFields);
2831
+ }
2832
+ }
2833
+ function readField(message, reader, field, wireType, options) {
2834
+ var _a;
2835
+ switch (field.fieldKind) {
2836
+ case "scalar":
2837
+ message.set(field, readScalar(reader, field.scalar));
2838
+ break;
2839
+ case "enum":
2840
+ const val = readScalar(reader, ScalarType.INT32);
2841
+ if (field.enum.open) {
2842
+ message.set(field, val);
2843
+ } else {
2844
+ const ok = field.enum.values.some((v) => v.number === val);
2845
+ if (ok) {
2846
+ message.set(field, val);
2847
+ } else if (options.readUnknownFields) {
2848
+ const bytes = [];
2849
+ varint32write(val, bytes);
2850
+ const unknownFields = (_a = message.getUnknown()) !== null && _a !== undefined ? _a : [];
2851
+ unknownFields.push({
2852
+ no: field.number,
2853
+ wireType,
2854
+ data: new Uint8Array(bytes)
2855
+ });
2856
+ message.setUnknown(unknownFields);
2857
+ }
2858
+ }
2859
+ break;
2860
+ case "message":
2861
+ message.set(field, readMessageField(reader, options, field, message.get(field)));
2862
+ break;
2863
+ case "list":
2864
+ readListField(reader, wireType, message.get(field), options);
2865
+ break;
2866
+ case "map":
2867
+ readMapEntry(reader, message.get(field), options);
2868
+ break;
2869
+ }
2870
+ }
2871
+ function readMapEntry(reader, map, options) {
2872
+ const field = map.field();
2873
+ let key;
2874
+ let val;
2875
+ const len = reader.uint32();
2876
+ const end = reader.pos + len;
2877
+ while (reader.pos < end) {
2878
+ const [fieldNo] = reader.tag();
2879
+ switch (fieldNo) {
2880
+ case 1:
2881
+ key = readScalar(reader, field.mapKey);
2882
+ break;
2883
+ case 2:
2884
+ switch (field.mapKind) {
2885
+ case "scalar":
2886
+ val = readScalar(reader, field.scalar);
2887
+ break;
2888
+ case "enum":
2889
+ val = reader.int32();
2890
+ break;
2891
+ case "message":
2892
+ val = readMessageField(reader, options, field);
2893
+ break;
2894
+ }
2895
+ break;
2896
+ }
2897
+ }
2898
+ if (key === undefined) {
2899
+ key = scalarZeroValue(field.mapKey, false);
2900
+ }
2901
+ if (val === undefined) {
2902
+ switch (field.mapKind) {
2903
+ case "scalar":
2904
+ val = scalarZeroValue(field.scalar, false);
2905
+ break;
2906
+ case "enum":
2907
+ val = field.enum.values[0].number;
2908
+ break;
2909
+ case "message":
2910
+ val = reflect(field.message, undefined, false);
2911
+ break;
2912
+ }
2913
+ }
2914
+ map.set(key, val);
2915
+ }
2916
+ function readListField(reader, wireType, list, options) {
2917
+ var _a;
2918
+ const field = list.field();
2919
+ if (field.listKind === "message") {
2920
+ list.add(readMessageField(reader, options, field));
2921
+ return;
2922
+ }
2923
+ const scalarType = (_a = field.scalar) !== null && _a !== undefined ? _a : ScalarType.INT32;
2924
+ const packed = wireType == WireType.LengthDelimited && scalarType != ScalarType.STRING && scalarType != ScalarType.BYTES;
2925
+ if (!packed) {
2926
+ list.add(readScalar(reader, scalarType));
2927
+ return;
2928
+ }
2929
+ const e = reader.uint32() + reader.pos;
2930
+ while (reader.pos < e) {
2931
+ list.add(readScalar(reader, scalarType));
2932
+ }
2933
+ }
2934
+ function readMessageField(reader, options, field, mergeMessage) {
2935
+ const delimited = field.delimitedEncoding;
2936
+ const message = mergeMessage !== null && mergeMessage !== undefined ? mergeMessage : reflect(field.message, undefined, false);
2937
+ readMessage(message, reader, options, delimited, delimited ? field.number : reader.uint32());
2938
+ return message;
2939
+ }
2940
+ function readScalar(reader, type) {
2941
+ switch (type) {
2942
+ case ScalarType.STRING:
2943
+ return reader.string();
2944
+ case ScalarType.BOOL:
2945
+ return reader.bool();
2946
+ case ScalarType.DOUBLE:
2947
+ return reader.double();
2948
+ case ScalarType.FLOAT:
2949
+ return reader.float();
2950
+ case ScalarType.INT32:
2951
+ return reader.int32();
2952
+ case ScalarType.INT64:
2953
+ return reader.int64();
2954
+ case ScalarType.UINT64:
2955
+ return reader.uint64();
2956
+ case ScalarType.FIXED64:
2957
+ return reader.fixed64();
2958
+ case ScalarType.BYTES:
2959
+ return reader.bytes();
2960
+ case ScalarType.FIXED32:
2961
+ return reader.fixed32();
2962
+ case ScalarType.SFIXED32:
2963
+ return reader.sfixed32();
2964
+ case ScalarType.SFIXED64:
2965
+ return reader.sfixed64();
2966
+ case ScalarType.SINT64:
2967
+ return reader.sint64();
2968
+ case ScalarType.UINT32:
2969
+ return reader.uint32();
2970
+ case ScalarType.SINT32:
2971
+ return reader.sint32();
2972
+ }
2973
+ }
2974
+
2975
+ // node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js
2976
+ function fileDesc(b64, imports) {
2977
+ var _a;
2978
+ const root = fromBinary(FileDescriptorProtoSchema, base64Decode(b64));
2979
+ root.messageType.forEach(restoreJsonNames);
2980
+ root.dependency = (_a = imports === null || imports === undefined ? undefined : imports.map((f) => f.proto.name)) !== null && _a !== undefined ? _a : [];
2981
+ const reg = createFileRegistry(root, (protoFileName) => imports === null || imports === undefined ? undefined : imports.find((f) => f.proto.name === protoFileName));
2982
+ return reg.getFile(root.name);
2983
+ }
2984
+
2985
+ // node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js
2986
+ function serviceDesc(file, path, ...paths) {
2987
+ if (paths.length > 0) {
2988
+ throw new Error;
2989
+ }
2990
+ return file.services[path];
2991
+ }
2992
+
2993
+ // node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js
2994
+ var file_google_protobuf_timestamp = /* @__PURE__ */ fileDesc("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
2995
+
2996
+ // node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js
2997
+ var file_google_protobuf_duration = /* @__PURE__ */ fileDesc("Ch5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIqCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIgASgFQoMBChNjb20uZ29vZ2xlLnByb3RvYnVmQg1EdXJhdGlvblByb3RvUAFaMWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2R1cmF0aW9ucGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw");
2998
+
2999
+ // src/gen/google/type/latlng_pb.ts
3000
+ var file_google_type_latlng = /* @__PURE__ */ fileDesc("Chhnb29nbGUvdHlwZS9sYXRsbmcucHJvdG8SC2dvb2dsZS50eXBlIi0KBkxhdExuZxIQCghsYXRpdHVkZRgBIAEoARIRCglsb25naXR1ZGUYAiABKAFCYAoPY29tLmdvb2dsZS50eXBlQgtMYXRMbmdQcm90b1ABWjhnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL3R5cGUvbGF0bG5nO2xhdGxuZ6ICA0dUUGIGcHJvdG8z");
3001
+ var LatLngSchema = /* @__PURE__ */ messageDesc(file_google_type_latlng, 0);
3002
+
3003
+ // src/gen/caronashow/poc/v1/points_pb.ts
3004
+ var file_caronashow_poc_v1_points = /* @__PURE__ */ fileDesc("Ch5jYXJvbmFzaG93L3BvYy92MS9wb2ludHMucHJvdG8SEWNhcm9uYXNob3cucG9jLnYxIkYKB0FkZHJlc3MSJQoIcG9zaXRpb24YASABKAsyEy5nb29nbGUudHlwZS5MYXRMbmcSFAoMZnVsbF9hZGRyZXNzGAIgASgJIj4KB1ZlaGljbGUSFQoNbGljZW5zZV9wbGF0ZRgBIAEoCRINCgVtb2RlbBgCIAEoCRINCgVjb2xvchgDIAEoCSKCAgoGUGVyc29uEgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkSDgoGcmF0aW5nGAMgASgBEisKBHJhbmsYBCABKA4yHS5jYXJvbmFzaG93LnBvYy52MS5QZXJzb25SYW5rEisKBGljb24YBSABKA4yHS5jYXJvbmFzaG93LnBvYy52MS5QZXJzb25JY29uEjYKEmRlcGFydHVyZV9mcm9tX29yZxgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASPAoZZGVwYXJ0dXJlX3dpbmRvd19mcm9tX29yZxgHIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbiKFAQoOUGFzc2VuZ2VyUG9pbnQSCgoCaWQYASABKAkSKwoHYWRkcmVzcxgCIAEoCzIaLmNhcm9uYXNob3cucG9jLnYxLkFkZHJlc3MSKQoGcGVyc29uGAMgASgLMhkuY2Fyb25hc2hvdy5wb2MudjEuUGVyc29uEg8KB2NvbW1lbnQYBCABKAki3wEKC0RyaXZlclBvaW50EgoKAmlkGAEgASgJEisKB2FkZHJlc3MYAiABKAsyGi5jYXJvbmFzaG93LnBvYy52MS5BZGRyZXNzEikKBnBlcnNvbhgDIAEoCzIZLmNhcm9uYXNob3cucG9jLnYxLlBlcnNvbhIrCgd2ZWhpY2xlGAQgASgLMhouY2Fyb25hc2hvdy5wb2MudjEuVmVoaWNsZRIPCgdjb21tZW50GAUgASgJEhUKDXNlYXRzX29mZmVyZWQYBiABKAUSFwoPc2VhdHNfYXZhaWxhYmxlGAcgASgFIloKEU9yZ2FuaXphdGlvblBvaW50EgoKAmlkGAEgASgJEisKB2FkZHJlc3MYAiABKAsyGi5jYXJvbmFzaG93LnBvYy52MS5BZGRyZXNzEgwKBG5hbWUYAyABKAkqogEKClBlcnNvblJhbmsSGwoXUEVSU09OX1JBTktfVU5TUEVDSUZJRUQQABIWChJQRVJTT05fUkFOS19CUk9OWkUQARIWChJQRVJTT05fUkFOS19TSUxWRVIQAhIUChBQRVJTT05fUkFOS19HT0xEEAMSGAoUUEVSU09OX1JBTktfUExBVElOVU0QBBIXChNQRVJTT05fUkFOS19ESUFNT05EEAUqpwEKClBlcnNvbkljb24SGwoXUEVSU09OX0lDT05fVU5TUEVDSUZJRUQQABIWChJQRVJTT05fSUNPTl9NQUxFXzEQARIWChJQRVJTT05fSUNPTl9NQUxFXzIQAhIYChRQRVJTT05fSUNPTl9GRU1BTEVfMRADEhgKFFBFUlNPTl9JQ09OX0ZFTUFMRV8yEAQSGAoUUEVSU09OX0lDT05fRkVNQUxFXzMQBULEAQoVY29tLmNhcm9uYXNob3cucG9jLnYxQgtQb2ludHNQcm90b1ABWjhnaXRsYWIuY29tL2Nhcm9uYXNob3cvYXBpL2dvL2dlbi9jYXJvbmFzaG93L3BvYy92MTtwb2N2MaICA0NQWKoCEUNhcm9uYXNob3cuUG9jLlYxygIRQ2Fyb25hc2hvd1xQb2NcVjHiAh1DYXJvbmFzaG93XFBvY1xWMVxHUEJNZXRhZGF0YeoCE0Nhcm9uYXNob3c6OlBvYzo6VjFiBnByb3RvMw", [file_google_protobuf_duration, file_google_protobuf_timestamp, file_google_type_latlng]);
3005
+ var AddressSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_points, 0);
3006
+ var VehicleSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_points, 1);
3007
+ var PersonSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_points, 2);
3008
+ var PassengerPointSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_points, 3);
3009
+ var DriverPointSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_points, 4);
3010
+ var OrganizationPointSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_points, 5);
3011
+ var PersonRank;
3012
+ ((PersonRank2) => {
3013
+ PersonRank2[PersonRank2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
3014
+ PersonRank2[PersonRank2["BRONZE"] = 1] = "BRONZE";
3015
+ PersonRank2[PersonRank2["SILVER"] = 2] = "SILVER";
3016
+ PersonRank2[PersonRank2["GOLD"] = 3] = "GOLD";
3017
+ PersonRank2[PersonRank2["PLATINUM"] = 4] = "PLATINUM";
3018
+ PersonRank2[PersonRank2["DIAMOND"] = 5] = "DIAMOND";
3019
+ })(PersonRank ||= {});
3020
+ var PersonRankSchema = /* @__PURE__ */ enumDesc(file_caronashow_poc_v1_points, 0);
3021
+ var PersonIcon;
3022
+ ((PersonIcon2) => {
3023
+ PersonIcon2[PersonIcon2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
3024
+ PersonIcon2[PersonIcon2["MALE_1"] = 1] = "MALE_1";
3025
+ PersonIcon2[PersonIcon2["MALE_2"] = 2] = "MALE_2";
3026
+ PersonIcon2[PersonIcon2["FEMALE_1"] = 3] = "FEMALE_1";
3027
+ PersonIcon2[PersonIcon2["FEMALE_2"] = 4] = "FEMALE_2";
3028
+ PersonIcon2[PersonIcon2["FEMALE_3"] = 5] = "FEMALE_3";
3029
+ })(PersonIcon ||= {});
3030
+ var PersonIconSchema = /* @__PURE__ */ enumDesc(file_caronashow_poc_v1_points, 1);
3031
+
3032
+ // src/gen/caronashow/poc/v1/groups_pb.ts
3033
+ var file_caronashow_poc_v1_groups = /* @__PURE__ */ fileDesc("Ch5jYXJvbmFzaG93L3BvYy92MS9ncm91cHMucHJvdG8SEWNhcm9uYXNob3cucG9jLnYxIn8KCk1hdGNoR3JvdXASCgoCaWQYASABKAkSLgoGZHJpdmVyGAIgAygLMh4uY2Fyb25hc2hvdy5wb2MudjEuRHJpdmVyUG9pbnQSNQoKcGFzc2VuZ2VycxgDIAMoCzIhLmNhcm9uYXNob3cucG9jLnYxLlBhc3NlbmdlclBvaW50QsQBChVjb20uY2Fyb25hc2hvdy5wb2MudjFCC0dyb3Vwc1Byb3RvUAFaOGdpdGxhYi5jb20vY2Fyb25hc2hvdy9hcGkvZ28vZ2VuL2Nhcm9uYXNob3cvcG9jL3YxO3BvY3YxogIDQ1BYqgIRQ2Fyb25hc2hvdy5Qb2MuVjHKAhFDYXJvbmFzaG93XFBvY1xWMeICHUNhcm9uYXNob3dcUG9jXFYxXEdQQk1ldGFkYXRh6gITQ2Fyb25hc2hvdzo6UG9jOjpWMWIGcHJvdG8z", [file_caronashow_poc_v1_points]);
3034
+ var MatchGroupSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_groups, 0);
3035
+ // src/gen/caronashow/poc/v1/routes_pb.ts
3036
+ var file_caronashow_poc_v1_routes = /* @__PURE__ */ fileDesc("Ch5jYXJvbmFzaG93L3BvYy92MS9yb3V0ZXMucHJvdG8SEWNhcm9uYXNob3cucG9jLnYxIq8CCgtEaXJlY3RSb3V0ZRIRCgl0YXJnZXRfaWQYASABKAkSNwoLdGFyZ2V0X3R5cGUYAiABKA4yIi5jYXJvbmFzaG93LnBvYy52MS5Sb3V0ZVRhcmdldFR5cGUSFwoPZGlzdGFuY2VfbWV0ZXJzGAMgASgFEisKCGR1cmF0aW9uGAQgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEjYKEmRlcGFydHVyZV9mcm9tX29yZxgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASPAoZZGVwYXJ0dXJlX3dpbmRvd19mcm9tX29yZxgGIAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbhIYChBlbmNvZGVkX3BvbHlsaW5lGAcgASgJIoQCCg5PcHRpbWl6ZWRSb3V0ZRIcChR0YXJnZXRfcGFzc2VuZ2VyX2lkcxgBIAMoCRIXCg9kaXN0YW5jZV9tZXRlcnMYAyABKAUSKwoIZHVyYXRpb24YBCABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24SNgoSZGVwYXJ0dXJlX2Zyb21fb3JnGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI8ChlkZXBhcnR1cmVfd2luZG93X2Zyb21fb3JnGAYgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEhgKEGVuY29kZWRfcG9seWxpbmUYByABKAkqcwoPUm91dGVUYXJnZXRUeXBlEiEKHVJPVVRFX1RBUkdFVF9UWVBFX1VOU1BFQ0lGSUVEEAASHwobUk9VVEVfVEFSR0VUX1RZUEVfUEFTU0VOR0VSEAESHAoYUk9VVEVfVEFSR0VUX1RZUEVfRFJJVkVSEAJCxAEKFWNvbS5jYXJvbmFzaG93LnBvYy52MUILUm91dGVzUHJvdG9QAVo4Z2l0bGFiLmNvbS9jYXJvbmFzaG93L2FwaS9nby9nZW4vY2Fyb25hc2hvdy9wb2MvdjE7cG9jdjGiAgNDUFiqAhFDYXJvbmFzaG93LlBvYy5WMcoCEUNhcm9uYXNob3dcUG9jXFYx4gIdQ2Fyb25hc2hvd1xQb2NcVjFcR1BCTWV0YWRhdGHqAhNDYXJvbmFzaG93OjpQb2M6OlYxYgZwcm90bzM", [file_google_protobuf_duration, file_google_protobuf_timestamp]);
3037
+ var DirectRouteSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_routes, 0);
3038
+ var OptimizedRouteSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_routes, 1);
3039
+ var RouteTargetType;
3040
+ ((RouteTargetType2) => {
3041
+ RouteTargetType2[RouteTargetType2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
3042
+ RouteTargetType2[RouteTargetType2["PASSENGER"] = 1] = "PASSENGER";
3043
+ RouteTargetType2[RouteTargetType2["DRIVER"] = 2] = "DRIVER";
3044
+ })(RouteTargetType ||= {});
3045
+ var RouteTargetTypeSchema = /* @__PURE__ */ enumDesc(file_caronashow_poc_v1_routes, 0);
3046
+
3047
+ // src/gen/caronashow/poc/v1/poc_pb.ts
3048
+ var file_caronashow_poc_v1_poc = /* @__PURE__ */ fileDesc("ChtjYXJvbmFzaG93L3BvYy92MS9wb2MucHJvdG8SEWNhcm9uYXNob3cucG9jLnYxIkIKE0dldE1hcFBvaW50c1JlcXVlc3QSKwoHZGF0YXNldBgBIAEoDjIaLmNhcm9uYXNob3cucG9jLnYxLkRhdGFzZXQiugEKFEdldE1hcFBvaW50c1Jlc3BvbnNlEjUKCnBhc3NlbmdlcnMYASADKAsyIS5jYXJvbmFzaG93LnBvYy52MS5QYXNzZW5nZXJQb2ludBIvCgdkcml2ZXJzGAIgAygLMh4uY2Fyb25hc2hvdy5wb2MudjEuRHJpdmVyUG9pbnQSOgoMb3JnYW5pemF0aW9uGAMgASgLMiQuY2Fyb25hc2hvdy5wb2MudjEuT3JnYW5pemF0aW9uUG9pbnQiRQoWR2V0RGlyZWN0Um91dGVzUmVxdWVzdBIrCgdkYXRhc2V0GAEgASgOMhouY2Fyb25hc2hvdy5wb2MudjEuRGF0YXNldCJJChdHZXREaXJlY3RSb3V0ZXNSZXNwb25zZRIuCgZyb3V0ZXMYASADKAsyHi5jYXJvbmFzaG93LnBvYy52MS5EaXJlY3RSb3V0ZSJHChhHZXRNYXBQb2ludEdyb3Vwc1JlcXVlc3QSKwoHZGF0YXNldBgBIAEoDjIaLmNhcm9uYXNob3cucG9jLnYxLkRhdGFzZXQiSgoZR2V0TWFwUG9pbnRHcm91cHNSZXNwb25zZRItCgZncm91cHMYASADKAsyHS5jYXJvbmFzaG93LnBvYy52MS5NYXRjaEdyb3VwIkgKGUdldE9wdGltaXplZFJvdXRlc1JlcXVlc3QSKwoHZGF0YXNldBgBIAEoDjIaLmNhcm9uYXNob3cucG9jLnYxLkRhdGFzZXQiTwoaR2V0T3B0aW1pemVkUm91dGVzUmVzcG9uc2USMQoGcm91dGVzGAEgAygLMiEuY2Fyb25hc2hvdy5wb2MudjEuT3B0aW1pemVkUm91dGUqagoHRGF0YXNldBIXChNEQVRBU0VUX1VOU1BFQ0lGSUVEEAASFgoSREFUQVNFVF9BVExBTlRBXzEwEAESFgoSREFUQVNFVF9BVExBTlRBXzI1EAISFgoSREFUQVNFVF9BVExBTlRBXzUwEAMywgMKClBvY1NlcnZpY2USYQoMR2V0TWFwUG9pbnRzEiYuY2Fyb25hc2hvdy5wb2MudjEuR2V0TWFwUG9pbnRzUmVxdWVzdBonLmNhcm9uYXNob3cucG9jLnYxLkdldE1hcFBvaW50c1Jlc3BvbnNlIgASagoPR2V0RGlyZWN0Um91dGVzEikuY2Fyb25hc2hvdy5wb2MudjEuR2V0RGlyZWN0Um91dGVzUmVxdWVzdBoqLmNhcm9uYXNob3cucG9jLnYxLkdldERpcmVjdFJvdXRlc1Jlc3BvbnNlIgAScAoRR2V0TWFwUG9pbnRHcm91cHMSKy5jYXJvbmFzaG93LnBvYy52MS5HZXRNYXBQb2ludEdyb3Vwc1JlcXVlc3QaLC5jYXJvbmFzaG93LnBvYy52MS5HZXRNYXBQb2ludEdyb3Vwc1Jlc3BvbnNlIgAScwoSR2V0T3B0aW1pemVkUm91dGVzEiwuY2Fyb25hc2hvdy5wb2MudjEuR2V0T3B0aW1pemVkUm91dGVzUmVxdWVzdBotLmNhcm9uYXNob3cucG9jLnYxLkdldE9wdGltaXplZFJvdXRlc1Jlc3BvbnNlIgBCwQEKFWNvbS5jYXJvbmFzaG93LnBvYy52MUIIUG9jUHJvdG9QAVo4Z2l0bGFiLmNvbS9jYXJvbmFzaG93L2FwaS9nby9nZW4vY2Fyb25hc2hvdy9wb2MvdjE7cG9jdjGiAgNDUFiqAhFDYXJvbmFzaG93LlBvYy5WMcoCEUNhcm9uYXNob3dcUG9jXFYx4gIdQ2Fyb25hc2hvd1xQb2NcVjFcR1BCTWV0YWRhdGHqAhNDYXJvbmFzaG93OjpQb2M6OlYxYgZwcm90bzM", [file_caronashow_poc_v1_groups, file_caronashow_poc_v1_points, file_caronashow_poc_v1_routes]);
3049
+ var GetMapPointsRequestSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_poc, 0);
3050
+ var GetMapPointsResponseSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_poc, 1);
3051
+ var GetDirectRoutesRequestSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_poc, 2);
3052
+ var GetDirectRoutesResponseSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_poc, 3);
3053
+ var GetMapPointGroupsRequestSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_poc, 4);
3054
+ var GetMapPointGroupsResponseSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_poc, 5);
3055
+ var GetOptimizedRoutesRequestSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_poc, 6);
3056
+ var GetOptimizedRoutesResponseSchema = /* @__PURE__ */ messageDesc(file_caronashow_poc_v1_poc, 7);
3057
+ var Dataset;
3058
+ ((Dataset2) => {
3059
+ Dataset2[Dataset2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
3060
+ Dataset2[Dataset2["ATLANTA_10"] = 1] = "ATLANTA_10";
3061
+ Dataset2[Dataset2["ATLANTA_25"] = 2] = "ATLANTA_25";
3062
+ Dataset2[Dataset2["ATLANTA_50"] = 3] = "ATLANTA_50";
3063
+ })(Dataset ||= {});
3064
+ var DatasetSchema = /* @__PURE__ */ enumDesc(file_caronashow_poc_v1_poc, 0);
3065
+ var PocService = /* @__PURE__ */ serviceDesc(file_caronashow_poc_v1_poc, 0);
3066
+ // src/gen/caronashow/pooler/v1/pooler_pb.ts
3067
+ var file_caronashow_pooler_v1_pooler = /* @__PURE__ */ fileDesc("CiFjYXJvbmFzaG93L3Bvb2xlci92MS9wb29sZXIucHJvdG8SFGNhcm9uYXNob3cucG9vbGVyLnYxIssBCglPcGVyYXRpb24SFAoMb3BlcmF0aW9uX2lkGAEgASgJEhIKCmRhdGFzZXRfaWQYAiABKAkSLgoKc3RhcnRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoMdGltZV9lbGFwc2VkGAQgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEjMKBXN0YXRlGAUgASgOMiQuY2Fyb25hc2hvdy5wb29sZXIudjEuT3BlcmF0aW9uU3RhdGUiegooRXhlY3V0ZU1hdGNoaW5nQWxnb3JpdGhtT25EYXRhc2V0UmVxdWVzdBISCgpkYXRhc2V0X2lkGAEgASgJEjoKCWFsZ29yaXRobRgCIAEoDjInLmNhcm9uYXNob3cucG9vbGVyLnYxLk1hdGNoaW5nQWxnb3JpdGhtIl8KKUV4ZWN1dGVNYXRjaGluZ0FsZ29yaXRobU9uRGF0YXNldFJlc3BvbnNlEjIKCW9wZXJhdGlvbhgBIAEoCzIfLmNhcm9uYXNob3cucG9vbGVyLnYxLk9wZXJhdGlvbiJ5ChVMaXN0T3BlcmF0aW9uc1JlcXVlc3QSEgoFbGltaXQYASABKAVIAIgBARI4CgVzdGF0ZRgCIAEoDjIkLmNhcm9uYXNob3cucG9vbGVyLnYxLk9wZXJhdGlvblN0YXRlSAGIAQFCCAoGX2xpbWl0QggKBl9zdGF0ZSJNChZMaXN0T3BlcmF0aW9uc1Jlc3BvbnNlEjMKCm9wZXJhdGlvbnMYASADKAsyHy5jYXJvbmFzaG93LnBvb2xlci52MS5PcGVyYXRpb24iMgoaR2V0U3RhdGVPZk9wZXJhdGlvblJlcXVlc3QSFAoMb3BlcmF0aW9uX2lkGAEgASgJIlEKG0dldFN0YXRlT2ZPcGVyYXRpb25SZXNwb25zZRIyCglvcGVyYXRpb24YASABKAsyHy5jYXJvbmFzaG93LnBvb2xlci52MS5PcGVyYXRpb24qwwEKEU1hdGNoaW5nQWxnb3JpdGhtEiIKHk1BVENISU5HX0FMR09SSVRITV9VTlNQRUNJRklFRBAAEh0KGU1BVENISU5HX0FMR09SSVRITV9SQU5ET00QARInCiNNQVRDSElOR19BTEdPUklUSE1fUk9VVEVfU0lNSUxBUklUWRACEiUKIU1BVENISU5HX0FMR09SSVRITV9QT0lOVF9ESVNUQU5DRRADEhsKF01BVENISU5HX0FMR09SSVRITV9GVUxMEAQqpgEKDk9wZXJhdGlvblN0YXRlEh8KG09QRVJBVElPTl9TVEFURV9VTlNQRUNJRklFRBAAEhsKF09QRVJBVElPTl9TVEFURV9QRU5ESU5HEAESGwoXT1BFUkFUSU9OX1NUQVRFX1JVTk5JTkcQAhIdChlPUEVSQVRJT05fU1RBVEVfU1VDQ0VFREVEEAMSGgoWT1BFUkFUSU9OX1NUQVRFX0ZBSUxFRBAEMqUDCg1Qb29sZXJTZXJ2aWNlEqYBCiFFeGVjdXRlTWF0Y2hpbmdBbGdvcml0aG1PbkRhdGFzZXQSPi5jYXJvbmFzaG93LnBvb2xlci52MS5FeGVjdXRlTWF0Y2hpbmdBbGdvcml0aG1PbkRhdGFzZXRSZXF1ZXN0Gj8uY2Fyb25hc2hvdy5wb29sZXIudjEuRXhlY3V0ZU1hdGNoaW5nQWxnb3JpdGhtT25EYXRhc2V0UmVzcG9uc2UiABJtCg5MaXN0T3BlcmF0aW9ucxIrLmNhcm9uYXNob3cucG9vbGVyLnYxLkxpc3RPcGVyYXRpb25zUmVxdWVzdBosLmNhcm9uYXNob3cucG9vbGVyLnYxLkxpc3RPcGVyYXRpb25zUmVzcG9uc2UiABJ8ChNHZXRTdGF0ZU9mT3BlcmF0aW9uEjAuY2Fyb25hc2hvdy5wb29sZXIudjEuR2V0U3RhdGVPZk9wZXJhdGlvblJlcXVlc3QaMS5jYXJvbmFzaG93LnBvb2xlci52MS5HZXRTdGF0ZU9mT3BlcmF0aW9uUmVzcG9uc2UiAELZAQoYY29tLmNhcm9uYXNob3cucG9vbGVyLnYxQgtQb29sZXJQcm90b1ABWj5naXRsYWIuY29tL2Nhcm9uYXNob3cvYXBpL2dvL2dlbi9jYXJvbmFzaG93L3Bvb2xlci92MTtwb29sZXJ2MaICA0NQWKoCFENhcm9uYXNob3cuUG9vbGVyLlYxygIUQ2Fyb25hc2hvd1xQb29sZXJcVjHiAiBDYXJvbmFzaG93XFBvb2xlclxWMVxHUEJNZXRhZGF0YeoCFkNhcm9uYXNob3c6OlBvb2xlcjo6VjFiBnByb3RvMw", [file_google_protobuf_duration, file_google_protobuf_timestamp]);
3068
+ var OperationSchema = /* @__PURE__ */ messageDesc(file_caronashow_pooler_v1_pooler, 0);
3069
+ var ExecuteMatchingAlgorithmOnDatasetRequestSchema = /* @__PURE__ */ messageDesc(file_caronashow_pooler_v1_pooler, 1);
3070
+ var ExecuteMatchingAlgorithmOnDatasetResponseSchema = /* @__PURE__ */ messageDesc(file_caronashow_pooler_v1_pooler, 2);
3071
+ var ListOperationsRequestSchema = /* @__PURE__ */ messageDesc(file_caronashow_pooler_v1_pooler, 3);
3072
+ var ListOperationsResponseSchema = /* @__PURE__ */ messageDesc(file_caronashow_pooler_v1_pooler, 4);
3073
+ var GetStateOfOperationRequestSchema = /* @__PURE__ */ messageDesc(file_caronashow_pooler_v1_pooler, 5);
3074
+ var GetStateOfOperationResponseSchema = /* @__PURE__ */ messageDesc(file_caronashow_pooler_v1_pooler, 6);
3075
+ var MatchingAlgorithm;
3076
+ ((MatchingAlgorithm2) => {
3077
+ MatchingAlgorithm2[MatchingAlgorithm2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
3078
+ MatchingAlgorithm2[MatchingAlgorithm2["RANDOM"] = 1] = "RANDOM";
3079
+ MatchingAlgorithm2[MatchingAlgorithm2["ROUTE_SIMILARITY"] = 2] = "ROUTE_SIMILARITY";
3080
+ MatchingAlgorithm2[MatchingAlgorithm2["POINT_DISTANCE"] = 3] = "POINT_DISTANCE";
3081
+ MatchingAlgorithm2[MatchingAlgorithm2["FULL"] = 4] = "FULL";
3082
+ })(MatchingAlgorithm ||= {});
3083
+ var MatchingAlgorithmSchema = /* @__PURE__ */ enumDesc(file_caronashow_pooler_v1_pooler, 0);
3084
+ var OperationState;
3085
+ ((OperationState2) => {
3086
+ OperationState2[OperationState2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
3087
+ OperationState2[OperationState2["PENDING"] = 1] = "PENDING";
3088
+ OperationState2[OperationState2["RUNNING"] = 2] = "RUNNING";
3089
+ OperationState2[OperationState2["SUCCEEDED"] = 3] = "SUCCEEDED";
3090
+ OperationState2[OperationState2["FAILED"] = 4] = "FAILED";
3091
+ })(OperationState ||= {});
3092
+ var OperationStateSchema = /* @__PURE__ */ enumDesc(file_caronashow_pooler_v1_pooler, 1);
3093
+ var PoolerService = /* @__PURE__ */ serviceDesc(file_caronashow_pooler_v1_pooler, 0);
3094
+ // src/gen/caronashow/service/v1/map_pb.ts
3095
+ var file_caronashow_service_v1_map = /* @__PURE__ */ fileDesc("Ch9jYXJvbmFzaG93L3NlcnZpY2UvdjEvbWFwLnByb3RvEhVjYXJvbmFzaG93LnNlcnZpY2UudjEyDAoKTWFwU2VydmljZULdAQoZY29tLmNhcm9uYXNob3cuc2VydmljZS52MUIITWFwUHJvdG9QAVpAZ2l0bGFiLmNvbS9jYXJvbmFzaG93L2FwaS9nby9nZW4vY2Fyb25hc2hvdy9zZXJ2aWNlL3YxO3NlcnZpY2V2MaICA0NTWKoCFUNhcm9uYXNob3cuU2VydmljZS5WMcoCFUNhcm9uYXNob3dcU2VydmljZVxWMeICIUNhcm9uYXNob3dcU2VydmljZVxWMVxHUEJNZXRhZGF0YeoCF0Nhcm9uYXNob3c6OlNlcnZpY2U6OlYxYgZwcm90bzM");
3096
+ var MapService = /* @__PURE__ */ serviceDesc(file_caronashow_service_v1_map, 0);
3097
+ // src/gen/caronashow/types/v1/user_pb.ts
3098
+ var file_caronashow_types_v1_user = /* @__PURE__ */ fileDesc("Ch5jYXJvbmFzaG93L3R5cGVzL3YxL3VzZXIucHJvdG8SE2Nhcm9uYXNob3cudHlwZXMudjEiWgoEVXNlchIKCgJpZBgBIAEoCRIQCgh1c2VybmFtZRgCIAEoCRISCgpmaXJzdF9uYW1lGAMgASgJEhEKCWxhc3RfbmFtZRgEIAEoCRINCgVlbWFpbBgFIAEoCULQAQoXY29tLmNhcm9uYXNob3cudHlwZXMudjFCCVVzZXJQcm90b1ABWjxnaXRsYWIuY29tL2Nhcm9uYXNob3cvYXBpL2dvL2dlbi9jYXJvbmFzaG93L3R5cGVzL3YxO3R5cGVzdjGiAgNDVFiqAhNDYXJvbmFzaG93LlR5cGVzLlYxygITQ2Fyb25hc2hvd1xUeXBlc1xWMeICH0Nhcm9uYXNob3dcVHlwZXNcVjFcR1BCTWV0YWRhdGHqAhVDYXJvbmFzaG93OjpUeXBlczo6VjFiBnByb3RvMw");
3099
+ var UserSchema = /* @__PURE__ */ messageDesc(file_caronashow_types_v1_user, 0);