web-core-tcm 0.0.52 → 0.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/node_modules/@alova/shared/dist/alova-shared.esm.js +249 -101
  2. package/dist/node_modules/@bufbuild/protobuf/dist/esm/clone.js +35 -0
  3. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +109 -0
  4. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +16 -0
  5. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +9 -0
  6. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +9 -10
  7. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +28 -0
  8. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +48 -0
  9. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +8 -0
  10. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +49 -0
  11. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +1 -0
  12. package/dist/node_modules/@bufbuild/protobuf/dist/esm/equals.js +127 -0
  13. package/dist/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +86 -0
  14. package/dist/node_modules/@bufbuild/protobuf/dist/esm/fields.js +11 -0
  15. package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +60 -56
  16. package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +434 -0
  17. package/dist/node_modules/@bufbuild/protobuf/dist/esm/index.js +49 -0
  18. package/dist/node_modules/@bufbuild/protobuf/dist/esm/merge.js +33 -0
  19. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +12 -3
  20. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +14 -10
  21. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +32 -12
  22. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +42 -6
  23. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +58 -50
  24. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +26 -4
  25. package/dist/node_modules/@bufbuild/protobuf/dist/esm/registry.js +130 -99
  26. package/dist/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +279 -0
  27. package/dist/node_modules/@bufbuild/protobuf/dist/esm/types.js +1 -0
  28. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +48 -27
  29. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +24 -0
  30. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +123 -0
  31. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +9 -5
  32. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +40 -0
  33. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +18 -0
  34. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +7 -0
  35. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +11 -0
  36. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +19 -0
  37. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +18 -0
  38. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +134 -60
  39. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +7 -0
  40. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +7 -0
  41. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +7 -0
  42. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +25 -0
  43. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +26 -0
  44. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +7 -0
  45. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +17 -0
  46. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +7 -0
  47. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +35 -0
  48. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +15 -0
  49. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +180 -0
  50. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +29 -0
  51. package/dist/node_modules/alova/dist/adapter/fetch.esm.js +10 -10
  52. package/dist/node_modules/alova/dist/alova.esm.js +263 -211
  53. package/dist/node_modules/alova/dist/clienthook/index.esm.js +2110 -70
  54. package/dist/node_modules/builder-pattern/dist/index.js +25 -13
  55. package/dist/node_modules/pinyin/lib/esm/pinyin.js +2 -2
  56. package/dist/node_modules/punycode/punycode.es6.js +17 -17
  57. package/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.js +4 -7
  58. package/dist/src/api/algorithm/alova/implement/index.js +12 -0
  59. package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.js +4 -7
  60. package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.js +7 -10
  61. package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +6 -9
  62. package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.js +7 -10
  63. package/dist/src/api/algorithm/alova/index.js +11 -15
  64. package/dist/src/api/algorithm/comprehensiveAlgorithm.js +5 -6
  65. package/dist/src/api/authorization/alova/globals.js +1 -0
  66. package/dist/src/api/authorization/alova/implement/index.js +4 -0
  67. package/dist/src/api/authorization/alova/index.js +10 -8
  68. package/dist/src/api/check/alova/globals.js +1 -0
  69. package/dist/src/api/check/alova/implement/index.js +5 -0
  70. package/dist/src/api/check/alova/index.js +5 -6
  71. package/dist/src/api/check/check.js +2 -2
  72. package/dist/src/api/config/index.d.ts +1 -1
  73. package/dist/src/api/config/index.js +2 -2
  74. package/dist/src/api/core/index.js +9 -0
  75. package/dist/src/api/device/device.d.ts +4 -5
  76. package/dist/src/api/device/device.js +20 -29
  77. package/dist/src/api/doctor/alova/globals.js +1 -0
  78. package/dist/src/api/doctor/alova/implement/index.js +4 -0
  79. package/dist/src/api/doctor/alova/index.js +10 -9
  80. package/dist/src/api/index.d.ts +12 -11
  81. package/dist/src/api/index.js +28 -0
  82. package/dist/src/api/metric/alova/implement/index.js +4 -0
  83. package/dist/src/api/metric/alova/index.js +1 -0
  84. package/dist/src/api/metric/index.js +5 -4
  85. package/dist/src/api/oauth/alova/globals.js +1 -0
  86. package/dist/src/api/oauth/alova/implement/index.js +4 -0
  87. package/dist/src/api/oauth/alova/index.js +13 -11
  88. package/dist/src/api/outpatient/alova/globals.js +1 -0
  89. package/dist/src/api/outpatient/alova/implement/index.js +4 -0
  90. package/dist/src/api/outpatient/alova/index.js +5 -5
  91. package/dist/src/api/patient/alova/globals.js +1 -0
  92. package/dist/src/api/patient/alova/implement/index.js +16 -0
  93. package/dist/src/api/patient/alova/index.js +9 -12
  94. package/dist/src/api/patient/meta.js +1 -0
  95. package/dist/src/api/prescription/alova/globals.js +1 -0
  96. package/dist/src/api/prescription/alova/implement/index.js +6 -0
  97. package/dist/src/api/prescription/alova/index.js +8 -7
  98. package/dist/src/api/scientist/alova/globals.js +1 -0
  99. package/dist/src/api/scientist/alova/implement/index.js +4 -0
  100. package/dist/src/api/scientist/alova/index.js +5 -5
  101. package/dist/src/index.d.ts +0 -1
  102. package/dist/src/index.js +34 -32
  103. package/dist/src/proto/index.js +10 -0
  104. package/dist/src/proto/types/Images_pb.js +7 -6
  105. package/dist/src/proto/types/WaveMap_pb.js +4 -3
  106. package/dist/src/util/helper.js +38 -2
  107. package/dist/src/util/string.js +47 -5
  108. package/package.json +66 -14
  109. package/dist/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +0 -556
  110. package/dist/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +0 -36
  111. package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -26
  112. package/dist/node_modules/quasar/src/composables/use-quasar/use-quasar.js +0 -8
  113. package/dist/node_modules/quasar/src/utils/private.symbols/symbols.js +0 -4
@@ -1,10 +1,20 @@
1
- import { ScalarType as k } from "./descriptors.js";
2
- import { parseTextFormatScalarValue as j, parseTextFormatEnumValue as O } from "./wire/text-format.js";
3
- import { nestedTypes as Y } from "./reflect/nested-types.js";
1
+ import { ScalarType as S } from "./descriptors.js";
2
+ import { parseTextFormatScalarValue as Y, parseTextFormatEnumValue as B } from "./wire/text-format.js";
3
+ import { nestedTypes as U } from "./reflect/nested-types.js";
4
4
  import { unsafeIsSetExplicit as _ } from "./reflect/unsafe.js";
5
- import { safeObjectProperty as h, protoCamelCase as T } from "./reflect/names.js";
6
- function ye(...e) {
7
- const n = U();
5
+ import { safeObjectProperty as b, protoCamelCase as T } from "./reflect/names.js";
6
+ function Ee(...e) {
7
+ return j(e);
8
+ }
9
+ function be(...e) {
10
+ const n = j(e);
11
+ return Object.assign(Object.assign({}, n), { remove(i) {
12
+ var t;
13
+ i.kind == "extension" && ((t = n.extendees.get(i.extendee.typeName)) === null || t === void 0 || t.delete(i.number)), n.types.delete(i.typeName);
14
+ } });
15
+ }
16
+ function he(...e) {
17
+ const n = L();
8
18
  if (!e.length)
9
19
  return n;
10
20
  if ("$typeName" in e[0] && e[0].$typeName == "google.protobuf.FileDescriptorSet") {
@@ -15,12 +25,12 @@ function ye(...e) {
15
25
  if ("$typeName" in e[0]) {
16
26
  let a = function(u) {
17
27
  const o = [];
18
- for (const l of u.dependency) {
19
- if (n.getFile(l) != null || s.has(l))
28
+ for (const r of u.dependency) {
29
+ if (n.getFile(r) != null || s.has(r))
20
30
  continue;
21
- const d = t(l);
31
+ const d = t(r);
22
32
  if (!d)
23
- throw new Error(`Unable to resolve ${l}, imported by ${u.name}`);
33
+ throw new Error(`Unable to resolve ${r}, imported by ${u.name}`);
24
34
  "kind" in d ? n.addFile(d, !1, !0) : (s.add(d.name), o.push(d));
25
35
  }
26
36
  return o.concat(...o.map(a));
@@ -34,7 +44,7 @@ function ye(...e) {
34
44
  n.addFile(t);
35
45
  return n;
36
46
  }
37
- function U() {
47
+ function L() {
38
48
  const e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
39
49
  return {
40
50
  kind: "registry",
@@ -48,7 +58,7 @@ function U() {
48
58
  },
49
59
  addFile(t, s, a) {
50
60
  if (i.set(t.proto.name, t), !s)
51
- for (const u of Y(t))
61
+ for (const u of U(t))
52
62
  this.add(u);
53
63
  if (a)
54
64
  for (const u of t.dependencies)
@@ -93,7 +103,24 @@ function U() {
93
103
  }
94
104
  };
95
105
  }
96
- const B = 998, G = 999, W = 9, b = 10, E = 11, Q = 12, M = 14, F = 3, J = 2, I = 1, X = 0, x = 1, K = 2, Z = 3, q = 1, z = 2, H = 1, R = {
106
+ function j(e) {
107
+ const n = L();
108
+ for (const i of e)
109
+ switch (i.kind) {
110
+ case "registry":
111
+ for (const t of i)
112
+ n.add(t);
113
+ break;
114
+ case "file":
115
+ n.addFile(i);
116
+ break;
117
+ default:
118
+ n.add(i);
119
+ break;
120
+ }
121
+ return n;
122
+ }
123
+ const G = 998, W = 999, Q = 9, h = 10, E = 11, J = 12, M = 14, F = 3, X = 2, I = 1, Z = 0, x = 1, K = 2, q = 3, z = 1, H = 2, ee = 1, Ne = 998, _e = 1001, C = {
97
124
  // EDITION_PROTO2
98
125
  998: {
99
126
  fieldPresence: 1,
@@ -177,9 +204,9 @@ function V(e, n) {
177
204
  kind: "file",
178
205
  proto: e,
179
206
  deprecated: (t = (i = e.options) === null || i === void 0 ? void 0 : i.deprecated) !== null && t !== void 0 ? t : !1,
180
- edition: ie(e),
207
+ edition: se(e),
181
208
  name: e.name.replace(/\.proto$/, ""),
182
- dependencies: se(e, n),
209
+ dependencies: de(e, n),
183
210
  enums: [],
184
211
  messages: [],
185
212
  extensions: [],
@@ -192,16 +219,16 @@ function V(e, n) {
192
219
  return a.get(o);
193
220
  },
194
221
  add(o) {
195
- var l;
196
- m(((l = o.proto.options) === null || l === void 0 ? void 0 : l.mapEntry) === !0), a.set(o.typeName, o);
222
+ var r;
223
+ m(((r = o.proto.options) === null || r === void 0 ? void 0 : r.mapEntry) === !0), a.set(o.typeName, o);
197
224
  }
198
225
  };
199
226
  for (const o of e.enumType)
200
- C(o, s, void 0, n);
227
+ O(o, s, void 0, n);
201
228
  for (const o of e.messageType)
202
229
  A(o, s, void 0, n, u);
203
230
  for (const o of e.service)
204
- ee(o, s, n);
231
+ ne(o, s, n);
205
232
  $(s, n);
206
233
  for (const o of a.values())
207
234
  P(o, n, u);
@@ -228,9 +255,9 @@ function $(e, n) {
228
255
  }
229
256
  }
230
257
  function P(e, n, i) {
231
- const t = e.proto.oneofDecl.map((a) => te(a, e)), s = /* @__PURE__ */ new Set();
258
+ const t = e.proto.oneofDecl.map((a) => ie(a, e)), s = /* @__PURE__ */ new Set();
232
259
  for (const a of e.proto.field) {
233
- const u = oe(a, t), o = w(a, e, n, u, i);
260
+ const u = ue(a, t), o = w(a, e, n, u, i);
234
261
  e.fields.push(o), e.field[o.localName] = o, u === void 0 ? e.members.push(o) : (u.fields.push(o), s.has(u) || (s.add(u), e.members.push(u)));
235
262
  }
236
263
  for (const a of t.filter((u) => s.has(u)))
@@ -238,9 +265,9 @@ function P(e, n, i) {
238
265
  for (const a of e.nestedMessages)
239
266
  P(a, n, i);
240
267
  }
241
- function C(e, n, i, t) {
242
- var s, a, u, o, l;
243
- const d = de(e.name, e.value), r = {
268
+ function O(e, n, i, t) {
269
+ var s, a, u, o, r;
270
+ const d = ae(e.name, e.value), l = {
244
271
  kind: "enum",
245
272
  proto: e,
246
273
  deprecated: (a = (s = e.options) === null || s === void 0 ? void 0 : s.deprecated) !== null && a !== void 0 ? a : !1,
@@ -248,7 +275,7 @@ function C(e, n, i, t) {
248
275
  parent: i,
249
276
  open: !0,
250
277
  name: e.name,
251
- typeName: S(e, i, n),
278
+ typeName: k(e, i, n),
252
279
  value: {},
253
280
  values: [],
254
281
  sharedPrefix: d,
@@ -256,29 +283,29 @@ function C(e, n, i, t) {
256
283
  return `enum ${this.typeName}`;
257
284
  }
258
285
  };
259
- r.open = fe(r), t.add(r);
286
+ l.open = ce(l), t.add(l);
260
287
  for (const f of e.value) {
261
288
  const v = f.name;
262
- r.values.push(
289
+ l.values.push(
263
290
  // biome-ignore lint/suspicious/noAssignInExpressions: no
264
- r.value[f.number] = {
291
+ l.value[f.number] = {
265
292
  kind: "enum_value",
266
293
  proto: f,
267
294
  deprecated: (o = (u = f.options) === null || u === void 0 ? void 0 : u.deprecated) !== null && o !== void 0 ? o : !1,
268
- parent: r,
295
+ parent: l,
269
296
  name: v,
270
- localName: h(d == null ? v : v.substring(d.length)),
297
+ localName: b(d == null ? v : v.substring(d.length)),
271
298
  number: f.number,
272
299
  toString() {
273
- return `enum value ${r.typeName}.${v}`;
300
+ return `enum value ${l.typeName}.${v}`;
274
301
  }
275
302
  }
276
303
  );
277
304
  }
278
- ((l = i?.nestedEnums) !== null && l !== void 0 ? l : n.enums).push(r);
305
+ ((r = i?.nestedEnums) !== null && r !== void 0 ? r : n.enums).push(l);
279
306
  }
280
307
  function A(e, n, i, t, s) {
281
- var a, u, o, l;
308
+ var a, u, o, r;
282
309
  const d = {
283
310
  kind: "message",
284
311
  proto: e,
@@ -286,7 +313,7 @@ function A(e, n, i, t, s) {
286
313
  file: n,
287
314
  parent: i,
288
315
  name: e.name,
289
- typeName: S(e, i, n),
316
+ typeName: k(e, i, n),
290
317
  fields: [],
291
318
  field: {},
292
319
  oneofs: [],
@@ -298,13 +325,13 @@ function A(e, n, i, t, s) {
298
325
  return `message ${this.typeName}`;
299
326
  }
300
327
  };
301
- ((o = e.options) === null || o === void 0 ? void 0 : o.mapEntry) === !0 ? s.add(d) : (((l = i?.nestedMessages) !== null && l !== void 0 ? l : n.messages).push(d), t.add(d));
302
- for (const r of e.enumType)
303
- C(r, n, d, t);
304
- for (const r of e.nestedType)
305
- A(r, n, d, t, s);
328
+ ((o = e.options) === null || o === void 0 ? void 0 : o.mapEntry) === !0 ? s.add(d) : (((r = i?.nestedMessages) !== null && r !== void 0 ? r : n.messages).push(d), t.add(d));
329
+ for (const l of e.enumType)
330
+ O(l, n, d, t);
331
+ for (const l of e.nestedType)
332
+ A(l, n, d, t, s);
306
333
  }
307
- function ee(e, n, i) {
334
+ function ne(e, n, i) {
308
335
  var t, s;
309
336
  const a = {
310
337
  kind: "service",
@@ -312,7 +339,7 @@ function ee(e, n, i) {
312
339
  deprecated: (s = (t = e.options) === null || t === void 0 ? void 0 : t.deprecated) !== null && s !== void 0 ? s : !1,
313
340
  file: n,
314
341
  name: e.name,
315
- typeName: S(e, void 0, n),
342
+ typeName: k(e, void 0, n),
316
343
  methods: [],
317
344
  method: {},
318
345
  toString() {
@@ -321,34 +348,34 @@ function ee(e, n, i) {
321
348
  };
322
349
  n.services.push(a), i.add(a);
323
350
  for (const u of e.method) {
324
- const o = ne(u, a, i);
351
+ const o = te(u, a, i);
325
352
  a.methods.push(o), a.method[o.localName] = o;
326
353
  }
327
354
  }
328
- function ne(e, n, i) {
355
+ function te(e, n, i) {
329
356
  var t, s, a, u;
330
357
  let o;
331
358
  e.clientStreaming && e.serverStreaming ? o = "bidi_streaming" : e.clientStreaming ? o = "client_streaming" : e.serverStreaming ? o = "server_streaming" : o = "unary";
332
- const l = i.getMessage(p(e.inputType)), d = i.getMessage(p(e.outputType));
333
- m(l, `invalid MethodDescriptorProto: input_type ${e.inputType} not found`), m(d, `invalid MethodDescriptorProto: output_type ${e.inputType} not found`);
334
- const r = e.name;
359
+ const r = i.getMessage(g(e.inputType)), d = i.getMessage(g(e.outputType));
360
+ m(r, `invalid MethodDescriptorProto: input_type ${e.inputType} not found`), m(d, `invalid MethodDescriptorProto: output_type ${e.inputType} not found`);
361
+ const l = e.name;
335
362
  return {
336
363
  kind: "rpc",
337
364
  proto: e,
338
365
  deprecated: (s = (t = e.options) === null || t === void 0 ? void 0 : t.deprecated) !== null && s !== void 0 ? s : !1,
339
366
  parent: n,
340
- name: r,
341
- localName: h(r.length ? h(r[0].toLowerCase() + r.substring(1)) : r),
367
+ name: l,
368
+ localName: b(l.length ? b(l[0].toLowerCase() + l.substring(1)) : l),
342
369
  methodKind: o,
343
- input: l,
370
+ input: r,
344
371
  output: d,
345
- idempotency: (u = (a = e.options) === null || a === void 0 ? void 0 : a.idempotencyLevel) !== null && u !== void 0 ? u : X,
372
+ idempotency: (u = (a = e.options) === null || a === void 0 ? void 0 : a.idempotencyLevel) !== null && u !== void 0 ? u : Z,
346
373
  toString() {
347
- return `rpc ${n.typeName}.${r}`;
374
+ return `rpc ${n.typeName}.${l}`;
348
375
  }
349
376
  };
350
377
  }
351
- function te(e, n) {
378
+ function ie(e, n) {
352
379
  return {
353
380
  kind: "oneof",
354
381
  proto: e,
@@ -356,7 +383,7 @@ function te(e, n) {
356
383
  parent: n,
357
384
  fields: [],
358
385
  name: e.name,
359
- localName: h(T(e.name)),
386
+ localName: b(T(e.name)),
360
387
  toString() {
361
388
  return `oneof ${n.typeName}.${this.name}`;
362
389
  }
@@ -364,7 +391,7 @@ function te(e, n) {
364
391
  }
365
392
  function w(e, n, i, t, s) {
366
393
  var a, u, o;
367
- const l = s === void 0, d = {
394
+ const r = s === void 0, d = {
368
395
  kind: "field",
369
396
  proto: e,
370
397
  deprecated: (u = (a = e.options) === null || a === void 0 ? void 0 : a.deprecated) !== null && u !== void 0 ? u : !1,
@@ -373,7 +400,7 @@ function w(e, n, i, t, s) {
373
400
  scalar: void 0,
374
401
  message: void 0,
375
402
  enum: void 0,
376
- presence: ue(e, t, l, n),
403
+ presence: re(e, t, r, n),
377
404
  listKind: void 0,
378
405
  mapKind: void 0,
379
406
  mapKey: void 0,
@@ -382,30 +409,30 @@ function w(e, n, i, t, s) {
382
409
  longAsString: !1,
383
410
  getDefaultValue: void 0
384
411
  };
385
- if (l) {
386
- const c = n.kind == "file" ? n : n.file, N = n.kind == "file" ? void 0 : n, g = S(e, N, c);
387
- d.kind = "extension", d.file = c, d.parent = N, d.oneof = void 0, d.typeName = g, d.jsonName = `[${g}]`, d.toString = () => `extension ${g}`;
388
- const D = i.getMessage(p(e.extendee));
412
+ if (r) {
413
+ const c = n.kind == "file" ? n : n.file, N = n.kind == "file" ? void 0 : n, p = k(e, N, c);
414
+ d.kind = "extension", d.file = c, d.parent = N, d.oneof = void 0, d.typeName = p, d.jsonName = `[${p}]`, d.toString = () => `extension ${p}`;
415
+ const D = i.getMessage(g(e.extendee));
389
416
  m(D, `invalid FieldDescriptorProto: extendee ${e.extendee} not found`), d.extendee = D;
390
417
  } else {
391
418
  const c = n;
392
- m(c.kind == "message"), d.parent = c, d.oneof = t, d.localName = t ? T(e.name) : h(T(e.name)), d.jsonName = e.jsonName, d.toString = () => `field ${c.typeName}.${e.name}`;
419
+ m(c.kind == "message"), d.parent = c, d.oneof = t, d.localName = t ? T(e.name) : b(T(e.name)), d.jsonName = e.jsonName, d.toString = () => `field ${c.typeName}.${e.name}`;
393
420
  }
394
- const r = e.label, f = e.type, v = (o = e.options) === null || o === void 0 ? void 0 : o.jstype;
395
- if (r === F) {
396
- const c = f == E ? s?.get(p(e.typeName)) : void 0;
421
+ const l = e.label, f = e.type, v = (o = e.options) === null || o === void 0 ? void 0 : o.jstype;
422
+ if (l === F) {
423
+ const c = f == E ? s?.get(g(e.typeName)) : void 0;
397
424
  if (c) {
398
425
  d.fieldKind = "map";
399
- const { key: N, value: g } = re(c);
400
- return d.mapKey = N.scalar, d.mapKind = g.fieldKind, d.message = g.message, d.delimitedEncoding = !1, d.enum = g.enum, d.scalar = g.scalar, d;
426
+ const { key: N, value: p } = fe(c);
427
+ return d.mapKey = N.scalar, d.mapKind = p.fieldKind, d.message = p.message, d.delimitedEncoding = !1, d.enum = p.enum, d.scalar = p.scalar, d;
401
428
  }
402
429
  switch (d.fieldKind = "list", f) {
403
430
  case E:
404
- case b:
405
- d.listKind = "message", d.message = i.getMessage(p(e.typeName)), m(d.message), d.delimitedEncoding = L(e, n);
431
+ case h:
432
+ d.listKind = "message", d.message = i.getMessage(g(e.typeName)), m(d.message), d.delimitedEncoding = R(e, n);
406
433
  break;
407
434
  case M:
408
- d.listKind = "enum", d.enum = i.getEnum(p(e.typeName)), m(d.enum);
435
+ d.listKind = "enum", d.enum = i.getEnum(g(e.typeName)), m(d.enum);
409
436
  break;
410
437
  default:
411
438
  d.listKind = "scalar", d.scalar = f, d.longAsString = v == I;
@@ -415,38 +442,38 @@ function w(e, n, i, t, s) {
415
442
  }
416
443
  switch (f) {
417
444
  case E:
418
- case b:
419
- d.fieldKind = "message", d.message = i.getMessage(p(e.typeName)), m(d.message, `invalid FieldDescriptorProto: type_name ${e.typeName} not found`), d.delimitedEncoding = L(e, n), d.getDefaultValue = () => {
445
+ case h:
446
+ d.fieldKind = "message", d.message = i.getMessage(g(e.typeName)), m(d.message, `invalid FieldDescriptorProto: type_name ${e.typeName} not found`), d.delimitedEncoding = R(e, n), d.getDefaultValue = () => {
420
447
  };
421
448
  break;
422
449
  case M: {
423
- const c = i.getEnum(p(e.typeName));
424
- m(c !== void 0, `invalid FieldDescriptorProto: type_name ${e.typeName} not found`), d.fieldKind = "enum", d.enum = i.getEnum(p(e.typeName)), d.getDefaultValue = () => _(e, "defaultValue") ? O(c, e.defaultValue) : void 0;
450
+ const c = i.getEnum(g(e.typeName));
451
+ m(c !== void 0, `invalid FieldDescriptorProto: type_name ${e.typeName} not found`), d.fieldKind = "enum", d.enum = i.getEnum(g(e.typeName)), d.getDefaultValue = () => _(e, "defaultValue") ? B(c, e.defaultValue) : void 0;
425
452
  break;
426
453
  }
427
454
  default: {
428
- d.fieldKind = "scalar", d.scalar = f, d.longAsString = v == I, d.getDefaultValue = () => _(e, "defaultValue") ? j(f, e.defaultValue) : void 0;
455
+ d.fieldKind = "scalar", d.scalar = f, d.longAsString = v == I, d.getDefaultValue = () => _(e, "defaultValue") ? Y(f, e.defaultValue) : void 0;
429
456
  break;
430
457
  }
431
458
  }
432
459
  return d;
433
460
  }
434
- function ie(e) {
461
+ function se(e) {
435
462
  switch (e.syntax) {
436
463
  case "":
437
464
  case "proto2":
438
- return B;
439
- case "proto3":
440
465
  return G;
466
+ case "proto3":
467
+ return W;
441
468
  case "editions":
442
- if (e.edition in R)
469
+ if (e.edition in C)
443
470
  return e.edition;
444
471
  throw new Error(`${e.name}: unsupported edition`);
445
472
  default:
446
473
  throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`);
447
474
  }
448
475
  }
449
- function se(e, n) {
476
+ function de(e, n) {
450
477
  return e.dependency.map((i) => {
451
478
  const t = n.getFile(i);
452
479
  if (!t)
@@ -454,8 +481,8 @@ function se(e, n) {
454
481
  return t;
455
482
  });
456
483
  }
457
- function de(e, n) {
458
- const i = ae(e) + "_";
484
+ function ae(e, n) {
485
+ const i = oe(e) + "_";
459
486
  for (const t of n) {
460
487
  if (!t.name.toLowerCase().startsWith(i))
461
488
  return;
@@ -465,61 +492,61 @@ function de(e, n) {
465
492
  }
466
493
  return i;
467
494
  }
468
- function ae(e) {
495
+ function oe(e) {
469
496
  return (e.substring(0, 1) + e.substring(1).replace(/[A-Z]/g, (n) => "_" + n)).toLowerCase();
470
497
  }
471
- function S(e, n, i) {
498
+ function k(e, n, i) {
472
499
  let t;
473
500
  return n ? t = `${n.typeName}.${e.name}` : i.proto.package.length > 0 ? t = `${i.proto.package}.${e.name}` : t = `${e.name}`, t;
474
501
  }
475
- function p(e) {
502
+ function g(e) {
476
503
  return e.startsWith(".") ? e.substring(1) : e;
477
504
  }
478
- function oe(e, n) {
505
+ function ue(e, n) {
479
506
  if (!_(e, "oneofIndex") || e.proto3Optional)
480
507
  return;
481
508
  const i = n[e.oneofIndex];
482
509
  return m(i, `invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`), i;
483
510
  }
484
- function ue(e, n, i, t) {
485
- if (e.label == J)
486
- return Z;
511
+ function re(e, n, i, t) {
512
+ if (e.label == X)
513
+ return q;
487
514
  if (e.label == F)
488
515
  return K;
489
516
  if (n || e.proto3Optional || i)
490
517
  return x;
491
518
  const s = y("fieldPresence", { proto: e, parent: t });
492
- return s == K && (e.type == E || e.type == b) ? x : s;
519
+ return s == K && (e.type == E || e.type == h) ? x : s;
493
520
  }
494
521
  function le(e, n) {
495
522
  if (e.label != F)
496
523
  return !1;
497
524
  switch (e.type) {
498
- case W:
499
525
  case Q:
500
- case b:
526
+ case J:
527
+ case h:
501
528
  case E:
502
529
  return !1;
503
530
  }
504
531
  const i = e.options;
505
- return i && _(i, "packed") ? i.packed : q == y("repeatedFieldEncoding", {
532
+ return i && _(i, "packed") ? i.packed : z == y("repeatedFieldEncoding", {
506
533
  proto: e,
507
534
  parent: n
508
535
  });
509
536
  }
510
- function re(e) {
537
+ function fe(e) {
511
538
  const n = e.fields.find((t) => t.number === 1), i = e.fields.find((t) => t.number === 2);
512
- return m(n && n.fieldKind == "scalar" && n.scalar != k.BYTES && n.scalar != k.FLOAT && n.scalar != k.DOUBLE && i && i.fieldKind != "list" && i.fieldKind != "map"), { key: n, value: i };
539
+ return m(n && n.fieldKind == "scalar" && n.scalar != S.BYTES && n.scalar != S.FLOAT && n.scalar != S.DOUBLE && i && i.fieldKind != "list" && i.fieldKind != "map"), { key: n, value: i };
513
540
  }
514
- function fe(e) {
541
+ function ce(e) {
515
542
  var n;
516
- return H == y("enumType", {
543
+ return ee == y("enumType", {
517
544
  proto: e.proto,
518
545
  parent: (n = e.parent) !== null && n !== void 0 ? n : e.file
519
546
  });
520
547
  }
521
- function L(e, n) {
522
- return e.type == b ? !0 : z == y("messageEncoding", {
548
+ function R(e, n) {
549
+ return e.type == h ? !0 : H == y("messageEncoding", {
523
550
  proto: e,
524
551
  parent: n
525
552
  });
@@ -535,7 +562,7 @@ function y(e, n) {
535
562
  if ("kind" in n) {
536
563
  if (n.kind == "message")
537
564
  return y(e, (t = n.parent) !== null && t !== void 0 ? t : n.file);
538
- const a = R[n.edition];
565
+ const a = C[n.edition];
539
566
  if (!a)
540
567
  throw new Error(`feature default for edition ${n.edition} not found`);
541
568
  return a[e];
@@ -547,5 +574,9 @@ function m(e, n) {
547
574
  throw new Error(n);
548
575
  }
549
576
  export {
550
- ye as createFileRegistry
577
+ he as createFileRegistry,
578
+ be as createMutableRegistry,
579
+ Ee as createRegistry,
580
+ _e as maximumEdition,
581
+ Ne as minimumEdition
551
582
  };