web-core-tcm 0.0.52 → 0.0.53

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 +1 -1
  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,134 +1,282 @@
1
- const u = "undefined", R = Promise, q = (t) => R.reject(t), f = Object, G = RegExp, a = void 0, P = null, Y = !0, T = !1, _ = (t, e, n) => t.then(e, n), z = (t, e) => t.catch(e), H = (t, e) => t.finally(e), b = (t, e, n) => JSON.stringify(t, e, n), L = (t) => JSON.parse(t), Q = (t, e = 0) => setTimeout(t, e), X = (t) => clearTimeout(t), C = (t) => f.keys(t), w = (t, e) => t.forEach(e), F = (t, ...e) => t.push(...e), m = (t, e) => t.map(e), $ = (t, e) => t.filter(e), Z = (t, e, n = 0, ...o) => t.splice(e, n, ...o), U = (t) => t.length, j = (t) => Array.isArray(t), tt = (t, e) => delete t[e], g = (t) => typeof t, et = typeof window === u && (typeof process !== u ? !process.browser : typeof Deno !== u), y = "memory", v = "restore", M = () => {
2
- }, nt = (t) => t, p = (t) => g(t) === "function", J = (t) => g(t) === "number" && !Number.isNaN(t), K = (t) => g(t) === "string", x = (t) => f.prototype.toString.call(t), E = (t) => x(t) === "[object Object]", V = (t, e) => t instanceof e, S = (t) => t ? t.getTime() : Date.now(), B = (t) => t.context, A = (t) => t.config, D = (t) => t.options, ot = (t) => D(B(t)), st = (t) => {
3
- const { params: e, headers: n } = A(t);
4
- return b([t.type, t.url, e, t.data, n]);
5
- }, ct = (t) => t.key, rt = (t) => {
1
+ const y = "undefined", m = Promise, et = (t) => m.resolve(t), st = (t) => m.reject(t), f = Object, nt = RegExp, u = void 0, $ = null, R = !0, a = !1, E = (t, e, s) => t.then(e, s), ot = (t, e) => t.catch(e), ct = (t, e) => t.finally(e), it = (t) => m.all(t), M = (t, e, s) => JSON.stringify(t, e, s), rt = (t) => JSON.parse(t), N = (t, e = 0) => setTimeout(t, e), lt = (t) => clearTimeout(t), P = (t) => f.keys(t), ut = (t) => f.values(t), D = (t, e) => t.forEach(e), T = (t, ...e) => t.push(...e), b = (t, e) => t.map(e), w = (t, e) => t.filter(e), J = (t) => t.shift(), at = (t, e, s) => t.slice(e, s), ht = (t, e, s = 0, ...n) => t.splice(e, s, ...n), V = (t) => t.length, B = (t) => Array.isArray(t), ft = (t, e) => delete t[e], g = (t) => typeof t, pt = (t, e) => t.test(`${e}`), dt = (t, e) => t.includes(e), K = (t, e = a) => ({ value: t, writable: e }), mt = (t, e, s, n = a) => f.defineProperty(t, e, n ? s : K(s, a)), gt = typeof window === y && (typeof process !== y ? !process.browser : typeof Deno !== y), O = "memory", W = "restore", q = () => {
2
+ }, yt = (t) => t, p = (t) => g(t) === "function", I = (t) => g(t) === "number" && !Number.isNaN(t), G = (t) => g(t) === "string", Y = (t) => t !== $ && g(t) === "object", x = (t) => f.prototype.toString.call(t), j = (t) => x(t) === "[object Object]", k = (t, e) => t instanceof e, C = (t) => t ? t.getTime() : Date.now(), _ = (t) => t.context, Q = (t) => t.config, z = (t) => t.options, bt = (t) => z(_(t)), St = (t) => {
3
+ const { params: e, headers: s } = Q(t);
4
+ return M([t.type, t.url, e, t.data, s]);
5
+ }, H = () => {
6
+ const t = (/* @__PURE__ */ new Date()).getTime();
7
+ return Math.floor(Math.random() * t).toString(36);
8
+ }, Ot = (t) => t.key, Ct = (t, e, s = []) => {
9
+ const n = p(t) ? t(...s) : t;
10
+ return e(!!n.key, "hook handler must be a method instance or a function that returns method instance"), n;
11
+ }, vt = (t) => {
6
12
  const e = x(t);
7
- return /^\[object (Blob|FormData|ReadableStream|URLSearchParams)\]$/i.test(e) || V(t, ArrayBuffer);
8
- }, it = (t, ...e) => f.assign(t, ...e), lt = (t) => {
9
- const { cacheFor: e } = A(t), n = (c) => J(c) ? S() + c : S(c || a);
10
- let o = y, s = () => 0, i = T, r = a;
11
- const d = p(e);
12
- if (!d) {
13
- let c = e;
14
- if (E(e)) {
15
- const { mode: l = y, expire: N, tag: h } = e || {};
16
- o = l, i = l === v, r = h ? h.toString() : a, c = N;
13
+ return /^\[object (Blob|FormData|ReadableStream|URLSearchParams)\]$/i.test(e) || k(t, ArrayBuffer);
14
+ }, $t = (t, ...e) => f.assign(t, ...e), Rt = (t, ...e) => {
15
+ const s = {};
16
+ for (const n in t)
17
+ e.includes(n) || (s[n] = t[n]);
18
+ return s;
19
+ };
20
+ function Pt() {
21
+ let t, e;
22
+ return { promise: new Promise((n, o) => {
23
+ t = n, e = o;
24
+ }), resolve: t, reject: e };
25
+ }
26
+ const Tt = (t) => {
27
+ const { cacheFor: e } = Q(t), s = (r) => I(r) ? C() + r : C(r || u);
28
+ let n = O, o = () => 0, i = a, c = u;
29
+ const l = p(e);
30
+ if (!l) {
31
+ let r = e;
32
+ if (j(e)) {
33
+ const { mode: h = O, expire: S, tag: d } = e || {};
34
+ n = h, i = h === W, c = d ? d.toString() : u, r = S;
17
35
  }
18
- s = (l) => n(p(c) ? c({ method: t, mode: l }) : c);
36
+ o = (h) => s(p(r) ? r({ method: t, mode: h }) : r);
19
37
  }
20
38
  return {
21
39
  f: e,
22
- c: d,
23
- e: s,
24
- m: o,
40
+ c: l,
41
+ e: o,
42
+ m: n,
25
43
  s: i,
26
- t: r
44
+ t: c
45
+ };
46
+ }, F = (t, ...e) => new t(...e), wt = (t, e = []) => p(t) ? t(...e) : t, xt = (t, e) => p(t) ? t : [a, $].includes(t) ? q : e, jt = (t = 0) => {
47
+ let e = u;
48
+ return (s) => {
49
+ e && clearTimeout(e), e = N(s, t);
50
+ };
51
+ }, kt = (t = a) => {
52
+ const e = [];
53
+ let s = u, n = !1;
54
+ const o = async () => {
55
+ for (n = R; V(e) > 0; ) {
56
+ const l = J(e);
57
+ l && await l();
58
+ }
59
+ s && s(), n = a;
60
+ };
61
+ return {
62
+ addQueue: (l) => F(m, (r, h) => {
63
+ T(e, () => E(l(), r, (d) => {
64
+ t ? r(u) : h(d);
65
+ })), n || o();
66
+ }),
67
+ onComplete: (l) => {
68
+ s = l;
69
+ }
70
+ };
71
+ }, L = (t, e, s = R, n, o) => {
72
+ const i = () => {
73
+ o && n && (t = e(t, n, o), t !== o[n] && (o[n] = t));
27
74
  };
28
- }, W = (t, ...e) => new t(...e), at = (t, e) => p(t) ? t : [T, P].includes(t) ? M : e, I = "$a.", ft = (t, e) => I + t + e, ut = (t, e, n) => {
29
- const o = /^https?:\/\//i.test(e);
30
- o || (t = t.endsWith("/") ? t.slice(0, -1) : t, e !== "" && (e = e.startsWith("/") ? e : `/${e}`));
31
- const s = o ? e : t + e, i = K(n) ? n : m($(C(n), (r) => n[r] !== a), (r) => `${r}=${n[r]}`).join("&");
32
- return i ? +s.includes("?") ? `${s}&${i}` : `${s}?${i}` : s;
33
- }, O = (t) => {
34
- if (j(t))
35
- return m(t, O);
36
- if (E(t) && t.constructor === f) {
75
+ if (s && i(), Y(t))
76
+ for (const c in t)
77
+ k(t, String) || L(t[c], e, s, c, t);
78
+ return !s && i(), t;
79
+ }, X = "$a.", Qt = (t, e) => X + t + e, Ft = (t, e) => {
80
+ let { startQuiver: s, endQuiver: n } = t;
81
+ const { delay: o, multiplier: i = 1 } = t;
82
+ let c = (o || 0) * i ** (e - 1);
83
+ return (s || n) && (s = s || 0, n = n || 1, c += c * s + Math.random() * c * (n - s), c = Math.floor(c)), c;
84
+ }, At = (t, e, s) => {
85
+ const n = /^https?:\/\//i.test(e);
86
+ n || (t = t.endsWith("/") ? t.slice(0, -1) : t, e !== "" && (e = e.startsWith("/") ? e : `/${e}`));
87
+ const o = n ? e : t + e, i = G(s) ? s : b(w(P(s), (c) => s[c] !== u), (c) => `${c}=${s[c]}`).join("&");
88
+ return i ? +o.includes("?") ? `${o}&${i}` : `${o}?${i}` : o;
89
+ }, v = (t) => {
90
+ if (B(t))
91
+ return b(t, v);
92
+ if (j(t) && t.constructor === f) {
37
93
  const e = {};
38
- return w(C(t), (n) => {
39
- e[n] = O(t[n]);
94
+ return D(P(t), (s) => {
95
+ e[s] = v(t[s]);
40
96
  }), e;
41
97
  }
42
98
  return t;
43
99
  };
44
- class k extends Error {
45
- constructor(e, n, o) {
46
- super(n + (o ? `
100
+ class Z extends Error {
101
+ constructor(e, s, n) {
102
+ super(s + (n ? `
47
103
 
48
- For detailed: https://alova.js.org/error#${o}` : "")), this.name = `[alova${e ? `/${e}` : ""}]`;
104
+ For detailed: https://alova.js.org/error#${n}` : "")), this.name = `[alova${e ? `/${e}` : ""}]`;
49
105
  }
50
106
  }
51
- const pt = (t = "") => (e, n, o) => {
107
+ const Et = (t = "") => (e, s, n) => {
52
108
  if (!e)
53
- throw W(k, t, n, o);
54
- }, mt = () => {
109
+ throw F(Z, t, s, n);
110
+ }, A = JSON.parse, Mt = (t) => {
111
+ A.bridgeData = t;
112
+ }, Nt = () => A.bridgeData || {}, U = () => {
55
113
  const t = {};
56
114
  return {
57
115
  eventMap: t,
58
- on(e, n) {
59
- const o = t[e] = t[e] || [];
60
- return F(o, n), () => {
61
- t[e] = $(o, (s) => s !== n);
116
+ on(e, s) {
117
+ const n = t[e] = t[e] || [];
118
+ return T(n, s), () => {
119
+ t[e] = w(n, (o) => o !== s);
62
120
  };
63
121
  },
64
- off(e, n) {
65
- const o = t[e];
66
- if (o)
67
- if (n) {
68
- const s = o.indexOf(n);
69
- s > -1 && o.splice(s, 1);
122
+ off(e, s) {
123
+ const n = t[e];
124
+ if (n)
125
+ if (s) {
126
+ const o = n.indexOf(s);
127
+ o > -1 && n.splice(o, 1);
70
128
  } else
71
129
  delete t[e];
72
130
  },
73
- emit(e, n) {
74
- const o = t[e] || [];
75
- return m(o, (s) => s(n));
131
+ emit(e, s) {
132
+ const n = t[e] || [];
133
+ return b(n, (o) => o(s));
76
134
  }
77
135
  };
136
+ }, Dt = (t, e) => {
137
+ const s = U(), n = H(), o = t((i) => s.emit(n, i));
138
+ return (i) => (s.on(n, (c) => {
139
+ e(i, c);
140
+ }), o);
78
141
  };
142
+ class tt {
143
+ constructor(e, s, n, o) {
144
+ this.s = e, this.k = s, this.$dhy = n, this.$exp = o;
145
+ }
146
+ get v() {
147
+ return this.$dhy(this.s);
148
+ }
149
+ get e() {
150
+ return this.$exp(this.s);
151
+ }
152
+ }
153
+ class Jt extends tt {
154
+ constructor(e, s, n, o, i) {
155
+ super(e, s, n, o), this.$upd = i;
156
+ }
157
+ set v(e) {
158
+ this.$upd(this.s, e);
159
+ }
160
+ get v() {
161
+ return this.$dhy(this.s);
162
+ }
163
+ }
164
+ class Vt {
165
+ /**
166
+ * @param [limit=null] no limit if set undefined or null
167
+ * @param [initialProcessing=false]
168
+ */
169
+ constructor(e, s = !1) {
170
+ this.limit = e, this.callbackQueue = [], this.isProcessing = !1, this.interrupt = !1, this.isProcessing = s;
171
+ }
172
+ /**
173
+ * Adds a callback function to the callback queue.
174
+ * If a limit is set and the queue has reached its limit, the callback will not be added.
175
+ * @param callback The callback function to be added to the queue.
176
+ */
177
+ queueCallback(e) {
178
+ this.limit && this.callbackQueue.length >= this.limit || (this.callbackQueue.push(e), this.isProcessing || this.tryRunQueueCallback());
179
+ }
180
+ /**
181
+ * Tries to run the callbacks in the queue.
182
+ * If there are callbacks in the queue, it removes the first callback and executes it.
183
+ * This method is called recursively until there are no more callbacks in the queue.
184
+ */
185
+ async tryRunQueueCallback() {
186
+ for (this.isProcessing = !0, this.interrupt = !1; this.callbackQueue.length > 0 && !this.interrupt; ) {
187
+ const e = this.callbackQueue.shift();
188
+ await e?.();
189
+ }
190
+ this.isProcessing = !1;
191
+ }
192
+ /**
193
+ * If set the param `state` to true, it will interrupt the current job (whether or not the current processing state is true)
194
+ * If set the param `state` to false, then get on with the rest of the work
195
+ */
196
+ setProcessingState(e) {
197
+ this.isProcessing = e, e ? this.interrupt = !0 : this.tryRunQueueCallback();
198
+ }
199
+ }
200
+ const Bt = {};
79
201
  export {
80
- nt as $self,
81
- k as AlovaError,
82
- L as JSONParse,
83
- b as JSONStringify,
84
- y as MEMORY,
202
+ yt as $self,
203
+ Z as AlovaError,
204
+ tt as FrameworkReadableState,
205
+ Jt as FrameworkState,
206
+ rt as JSONParse,
207
+ M as JSONStringify,
208
+ O as MEMORY,
85
209
  f as ObjectCls,
86
- R as PromiseCls,
87
- G as RegExpCls,
88
- v as STORAGE_RESTORE,
89
- ut as buildCompletedURL,
90
- ft as buildNamespacedCacheKey,
91
- X as clearTimeoutTimer,
92
- pt as createAssert,
93
- mt as createEventManager,
94
- O as deepClone,
95
- tt as deleteAttr,
96
- T as falseValue,
97
- $ as filterItem,
98
- w as forEach,
99
- A as getConfig,
100
- B as getContext,
101
- D as getContextOptions,
102
- lt as getLocalCacheConfigParam,
103
- ct as getMethodInternalKey,
104
- ot as getOptions,
105
- S as getTime,
210
+ m as PromiseCls,
211
+ Vt as QueueCallback,
212
+ nt as RegExpCls,
213
+ W as STORAGE_RESTORE,
214
+ At as buildCompletedURL,
215
+ Qt as buildNamespacedCacheKey,
216
+ lt as clearTimeoutTimer,
217
+ Et as createAssert,
218
+ kt as createAsyncQueue,
219
+ U as createEventManager,
220
+ jt as createSyncOnceRunner,
221
+ Dt as decorateEvent,
222
+ v as deepClone,
223
+ mt as defineProperty,
224
+ Ft as delayWithBackoff,
225
+ ft as deleteAttr,
226
+ a as falseValue,
227
+ w as filterItem,
228
+ D as forEach,
229
+ Q as getConfig,
230
+ _ as getContext,
231
+ z as getContextOptions,
232
+ Ct as getHandlerMethod,
233
+ Tt as getLocalCacheConfigParam,
234
+ Ot as getMethodInternalKey,
235
+ bt as getOptions,
236
+ C as getTime,
106
237
  x as globalToString,
107
- V as instanceOf,
108
- j as isArray,
238
+ dt as includes,
239
+ Nt as injectReferingObject,
240
+ k as instanceOf,
241
+ B as isArray,
109
242
  p as isFn,
110
- J as isNumber,
111
- E as isPlainObject,
112
- et as isSSR,
113
- rt as isSpecialRequestBody,
114
- K as isString,
115
- st as key,
116
- U as len,
117
- m as mapItem,
118
- W as newInstance,
119
- M as noop,
120
- P as nullValue,
121
- it as objAssign,
122
- C as objectKeys,
123
- z as promiseCatch,
124
- H as promiseFinally,
125
- q as promiseReject,
126
- _ as promiseThen,
127
- F as pushItem,
128
- Q as setTimeoutFn,
129
- at as sloughFunction,
130
- Z as splice,
131
- Y as trueValue,
243
+ I as isNumber,
244
+ Y as isObject,
245
+ j as isPlainObject,
246
+ gt as isSSR,
247
+ vt as isSpecialRequestBody,
248
+ G as isString,
249
+ St as key,
250
+ V as len,
251
+ b as mapItem,
252
+ F as newInstance,
253
+ q as noop,
254
+ $ as nullValue,
255
+ $t as objAssign,
256
+ P as objectKeys,
257
+ ut as objectValues,
258
+ Rt as omit,
259
+ it as promiseAll,
260
+ ot as promiseCatch,
261
+ ct as promiseFinally,
262
+ st as promiseReject,
263
+ et as promiseResolve,
264
+ E as promiseThen,
265
+ Mt as provideReferingObject,
266
+ T as pushItem,
267
+ pt as regexpTest,
268
+ N as setTimeoutFn,
269
+ J as shift,
270
+ at as slice,
271
+ wt as sloughConfig,
272
+ xt as sloughFunction,
273
+ ht as splice,
274
+ R as trueValue,
275
+ Bt as type,
132
276
  g as typeOf,
133
- a as undefinedValue
277
+ u as undefinedValue,
278
+ Pt as usePromise,
279
+ H as uuid,
280
+ K as valueObject,
281
+ L as walkObject
134
282
  };
@@ -0,0 +1,35 @@
1
+ import { ScalarType as g } from "./descriptors.js";
2
+ import { reflect as c } from "./reflect/reflect.js";
3
+ import { isReflectMessage as l } from "./reflect/guard.js";
4
+ function p(t, e) {
5
+ return f(c(t, e)).message;
6
+ }
7
+ function f(t) {
8
+ const e = c(t.desc);
9
+ for (const n of t.fields)
10
+ if (t.isSet(n))
11
+ switch (n.fieldKind) {
12
+ case "list":
13
+ const i = e.get(n);
14
+ for (const o of t.get(n))
15
+ i.add(s(n, o));
16
+ break;
17
+ case "map":
18
+ const a = e.get(n);
19
+ for (const o of t.get(n).entries())
20
+ a.set(o[0], s(n, o[1]));
21
+ break;
22
+ default: {
23
+ e.set(n, s(n, t.get(n)));
24
+ break;
25
+ }
26
+ }
27
+ const r = t.getUnknown();
28
+ return r && r.length > 0 && e.setUnknown([...r]), e;
29
+ }
30
+ function s(t, e) {
31
+ return t.message !== void 0 && l(e) ? f(e) : t.scalar == g.BYTES && e instanceof Uint8Array ? e.slice() : e;
32
+ }
33
+ export {
34
+ p as clone
35
+ };
@@ -0,0 +1,109 @@
1
+ import { protoCamelCase as g } from "../reflect/names.js";
2
+ import { clearField as c, isFieldSet as t } from "../fields.js";
3
+ import { base64Encode as p } from "../wire/base64-encoding.js";
4
+ import { toBinary as x } from "../to-binary.js";
5
+ import { clone as D } from "../clone.js";
6
+ import { FileDescriptorProtoSchema as m, FieldDescriptorProtoSchema as f, Edition as O, DescriptorProtoSchema as T, FieldOptionsSchema as s, EnumDescriptorProtoSchema as N } from "../wkt/gen/google/protobuf/descriptor_pb.js";
7
+ function S(e) {
8
+ const n = {
9
+ bootable: !1,
10
+ proto() {
11
+ const a = D(m, e);
12
+ return c(a, m.field.dependency), c(a, m.field.sourceCodeInfo), a.messageType.map(y), a;
13
+ },
14
+ base64() {
15
+ const a = x(m, this.proto());
16
+ return p(a, "std_raw");
17
+ }
18
+ };
19
+ return e.name == "google/protobuf/descriptor.proto" ? Object.assign(Object.assign({}, n), { bootable: !0, boot() {
20
+ return k(this.proto());
21
+ } }) : n;
22
+ }
23
+ function y(e) {
24
+ for (const n of e.field)
25
+ n.jsonName === g(n.name) && c(n, f.field.jsonName);
26
+ for (const n of e.nestedType)
27
+ y(n);
28
+ }
29
+ function C(e) {
30
+ if (e.kind == "service")
31
+ return [e.file.services.indexOf(e)];
32
+ const n = e.parent;
33
+ if (n == null)
34
+ switch (e.kind) {
35
+ case "enum":
36
+ return [e.file.enums.indexOf(e)];
37
+ case "message":
38
+ return [e.file.messages.indexOf(e)];
39
+ case "extension":
40
+ return [e.file.extensions.indexOf(e)];
41
+ }
42
+ function a(d) {
43
+ const r = [];
44
+ for (let l = d.parent; l; ) {
45
+ const h = l.nestedMessages.indexOf(d);
46
+ r.unshift(h), d = l, l = d.parent;
47
+ }
48
+ return r.unshift(d.file.messages.indexOf(d)), r;
49
+ }
50
+ const u = a(n);
51
+ switch (e.kind) {
52
+ case "extension":
53
+ return [...u, n.nestedExtensions.indexOf(e)];
54
+ case "message":
55
+ return [...u, n.nestedMessages.indexOf(e)];
56
+ case "enum":
57
+ return [...u, n.nestedEnums.indexOf(e)];
58
+ }
59
+ }
60
+ function k(e) {
61
+ var n;
62
+ return i(e.name == "google/protobuf/descriptor.proto"), i(e.package == "google.protobuf"), i(!e.dependency.length), i(!e.publicDependency.length), i(!e.weakDependency.length), i(!e.optionDependency.length), i(!e.service.length), i(!e.extension.length), i(e.sourceCodeInfo === void 0), i(e.syntax == "" || e.syntax == "proto2"), i(!(!((n = e.options) === null || n === void 0) && n.features)), i(e.edition === O.EDITION_UNKNOWN), {
63
+ name: e.name,
64
+ package: e.package,
65
+ messageType: e.messageType.map(b),
66
+ enumType: e.enumType.map(o)
67
+ };
68
+ }
69
+ function b(e) {
70
+ i(e.extension.length == 0), i(!e.oneofDecl.length), i(!e.options), i(!t(e, T.field.visibility));
71
+ const n = {
72
+ name: e.name
73
+ };
74
+ return e.field.length && (n.field = e.field.map(v)), e.nestedType.length && (n.nestedType = e.nestedType.map(b)), e.enumType.length && (n.enumType = e.enumType.map(o)), e.extensionRange.length && (n.extensionRange = e.extensionRange.map((a) => (i(!a.options), { start: a.start, end: a.end }))), n;
75
+ }
76
+ function v(e) {
77
+ i(t(e, f.field.name)), i(t(e, f.field.number)), i(t(e, f.field.type)), i(!t(e, f.field.oneofIndex)), i(!t(e, f.field.jsonName) || e.jsonName === g(e.name));
78
+ const n = {
79
+ name: e.name,
80
+ number: e.number,
81
+ type: e.type
82
+ };
83
+ return t(e, f.field.label) && (n.label = e.label), t(e, f.field.typeName) && (n.typeName = e.typeName), t(e, f.field.extendee) && (n.extendee = e.extendee), t(e, f.field.defaultValue) && (n.defaultValue = e.defaultValue), e.options && (n.options = F(e.options)), n;
84
+ }
85
+ function F(e) {
86
+ const n = {};
87
+ return i(!t(e, s.field.ctype)), t(e, s.field.packed) && (n.packed = e.packed), i(!t(e, s.field.jstype)), i(!t(e, s.field.lazy)), i(!t(e, s.field.unverifiedLazy)), t(e, s.field.deprecated) && (n.deprecated = e.deprecated), i(!t(e, s.field.weak)), i(!t(e, s.field.debugRedact)), t(e, s.field.retention) && (n.retention = e.retention), e.targets.length && (n.targets = e.targets), e.editionDefaults.length && (n.editionDefaults = e.editionDefaults.map((a) => ({
88
+ value: a.value,
89
+ edition: a.edition
90
+ }))), i(!t(e, s.field.features)), i(!t(e, s.field.uninterpretedOption)), n;
91
+ }
92
+ function o(e) {
93
+ return i(!e.options), i(!t(e, N.field.visibility)), {
94
+ name: e.name,
95
+ value: e.value.map((n) => (i(!n.options), {
96
+ name: n.name,
97
+ number: n.number
98
+ }))
99
+ };
100
+ }
101
+ function i(e) {
102
+ if (!e)
103
+ throw new Error();
104
+ }
105
+ export {
106
+ k as createFileDescriptorProtoBoot,
107
+ S as embedFileDesc,
108
+ C as pathInFileDesc
109
+ };
@@ -0,0 +1,16 @@
1
+ function t(u, n, ...e) {
2
+ if (e.length == 0)
3
+ return u.enums[n];
4
+ const s = e.pop();
5
+ return e.reduce((o, r) => o.nestedMessages[r], u.messages[n]).nestedEnums[s];
6
+ }
7
+ function c(u) {
8
+ const n = {};
9
+ for (const e of u.values)
10
+ n[e.localName] = e.number, n[e.number] = e.localName;
11
+ return n;
12
+ }
13
+ export {
14
+ t as enumDesc,
15
+ c as tsEnum
16
+ };
@@ -0,0 +1,9 @@
1
+ function c(n, s, ...e) {
2
+ if (e.length == 0)
3
+ return n.extensions[s];
4
+ const t = e.pop();
5
+ return e.reduce((o, r) => o.nestedMessages[r], n.messages[s]).nestedExtensions[t];
6
+ }
7
+ export {
8
+ c as extDesc
9
+ };
@@ -1,13 +1,12 @@
1
- import { base64Decode as t } from "../wire/base64-encoding.js";
2
- import { FileDescriptorProtoSchema as i } from "../wkt/gen/google/protobuf/descriptor_pb.js";
3
- import { createFileRegistry as m } from "../registry.js";
4
- import { restoreJsonNames as s } from "./restore-json-names.js";
5
- import { fromBinary as a } from "../from-binary.js";
6
- function y(r, n) {
7
- var o;
8
- const e = a(i, t(r));
9
- return e.messageType.forEach(s), e.dependency = (o = void 0) !== null && o !== void 0 ? o : [], m(e, (c) => {
10
- }).getFile(e.name);
1
+ import { base64Decode as a } from "../wire/base64-encoding.js";
2
+ import { FileDescriptorProtoSchema as m } from "../wkt/gen/google/protobuf/descriptor_pb.js";
3
+ import { createFileRegistry as c } from "../registry.js";
4
+ import { restoreJsonNames as f } from "./restore-json-names.js";
5
+ import { fromBinary as l } from "../from-binary.js";
6
+ function y(i, e) {
7
+ var r;
8
+ const o = l(m, a(i));
9
+ return o.messageType.forEach(f), o.dependency = (r = e?.map((n) => n.proto.name)) !== null && r !== void 0 ? r : [], c(o, (n) => e?.find((t) => t.proto.name === n)).getFile(o.name);
11
10
  }
12
11
  export {
13
12
  y as fileDesc
@@ -0,0 +1,28 @@
1
+ import { boot as t, bootFileDescriptorProto as p } from "./boot.js";
2
+ import { createFileDescriptorProtoBoot as m, embedFileDesc as c, pathInFileDesc as a } from "./embed.js";
3
+ import { enumDesc as f, tsEnum as x } from "./enum.js";
4
+ import { extDesc as D } from "./extension.js";
5
+ import { fileDesc as n } from "./file.js";
6
+ import { messageDesc as F } from "./message.js";
7
+ import { serviceDesc as u } from "./service.js";
8
+ import { packageName as g, symbols as h, wktPublicImportPaths as k } from "./symbols.js";
9
+ import { scalarJsonType as d, scalarTypeScriptType as v } from "./scalar.js";
10
+ import "./types.js";
11
+ export {
12
+ t as boot,
13
+ p as bootFileDescriptorProto,
14
+ m as createFileDescriptorProtoBoot,
15
+ c as embedFileDesc,
16
+ f as enumDesc,
17
+ D as extDesc,
18
+ n as fileDesc,
19
+ F as messageDesc,
20
+ g as packageName,
21
+ a as pathInFileDesc,
22
+ d as scalarJsonType,
23
+ v as scalarTypeScriptType,
24
+ u as serviceDesc,
25
+ h as symbols,
26
+ x as tsEnum,
27
+ k as wktPublicImportPaths
28
+ };
@@ -0,0 +1,48 @@
1
+ import { ScalarType as e } from "../descriptors.js";
2
+ function n(r, a) {
3
+ switch (r) {
4
+ case e.STRING:
5
+ return "string";
6
+ case e.BOOL:
7
+ return "boolean";
8
+ case e.UINT64:
9
+ case e.SFIXED64:
10
+ case e.FIXED64:
11
+ case e.SINT64:
12
+ case e.INT64:
13
+ return a ? "string" : "bigint";
14
+ case e.BYTES:
15
+ return "Uint8Array";
16
+ default:
17
+ return "number";
18
+ }
19
+ }
20
+ function c(r) {
21
+ switch (r) {
22
+ case e.DOUBLE:
23
+ case e.FLOAT:
24
+ return 'number | "NaN" | "Infinity" | "-Infinity"';
25
+ case e.UINT64:
26
+ case e.SFIXED64:
27
+ case e.FIXED64:
28
+ case e.SINT64:
29
+ case e.INT64:
30
+ return "string";
31
+ case e.INT32:
32
+ case e.FIXED32:
33
+ case e.UINT32:
34
+ case e.SFIXED32:
35
+ case e.SINT32:
36
+ return "number";
37
+ case e.STRING:
38
+ return "string";
39
+ case e.BOOL:
40
+ return "boolean";
41
+ case e.BYTES:
42
+ return "string";
43
+ }
44
+ }
45
+ export {
46
+ c as scalarJsonType,
47
+ n as scalarTypeScriptType
48
+ };
@@ -0,0 +1,8 @@
1
+ function t(e, r, ...n) {
2
+ if (n.length > 0)
3
+ throw new Error();
4
+ return e.services[r];
5
+ }
6
+ export {
7
+ t as serviceDesc
8
+ };