superapp-miniapp-invoke-native 1.12.1 → 1.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/main.js CHANGED
@@ -1,130 +1,130 @@
1
1
  /* eslint-disable */
2
2
  /* global globalThis, AndroidInitialContext */
3
- var Br = Object.defineProperty, Hr = Object.defineProperties;
4
- var Ur = Object.getOwnPropertyDescriptors;
5
- var Ke = Object.getOwnPropertySymbols;
6
- var Fr = Object.prototype.hasOwnProperty, Wr = Object.prototype.propertyIsEnumerable;
7
- var Ae = (t, e, r) => e in t ? Br(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, k = (t, e) => {
3
+ var kr = Object.defineProperty, Lr = Object.defineProperties;
4
+ var br = Object.getOwnPropertyDescriptors;
5
+ var xe = Object.getOwnPropertySymbols;
6
+ var Tr = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable;
7
+ var Ie = (t, e, r) => e in t ? kr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, k = (t, e) => {
8
8
  for (var r in e || (e = {}))
9
- Fr.call(e, r) && Ae(t, r, e[r]);
10
- if (Ke)
11
- for (var r of Ke(e))
12
- Wr.call(e, r) && Ae(t, r, e[r]);
9
+ Tr.call(e, r) && Ie(t, r, e[r]);
10
+ if (xe)
11
+ for (var r of xe(e))
12
+ Br.call(e, r) && Ie(t, r, e[r]);
13
13
  return t;
14
- }, b = (t, e) => Hr(t, Ur(e));
15
- var P = (t, e, r) => (Ae(t, typeof e != "symbol" ? e + "" : e, r), r);
16
- var o = (t, e, r) => new Promise((n, a) => {
14
+ }, L = (t, e) => Lr(t, br(e));
15
+ var P = (t, e, r) => (Ie(t, typeof e != "symbol" ? e + "" : e, r), r);
16
+ var a = (t, e, r) => new Promise((n, o) => {
17
17
  var i = (l) => {
18
18
  try {
19
19
  s(r.next(l));
20
20
  } catch (u) {
21
- a(u);
21
+ o(u);
22
22
  }
23
23
  }, c = (l) => {
24
24
  try {
25
25
  s(r.throw(l));
26
26
  } catch (u) {
27
- a(u);
27
+ o(u);
28
28
  }
29
29
  }, s = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(i, c);
30
30
  s((r = r.apply(t, e)).next());
31
31
  });
32
32
  /*! Capacitor: https://capacitorjs.com/ - MIT License */
33
- const xr = (t) => t.CapacitorPlatforms = ((e) => {
33
+ const Vr = (t) => t.CapacitorPlatforms = ((e) => {
34
34
  const r = /* @__PURE__ */ new Map();
35
35
  r.set("web", { name: "web" });
36
36
  const n = e.CapacitorPlatforms || { currentPlatform: { name: "web" }, platforms: r };
37
- return n.addPlatform = (a, i) => {
38
- n.platforms.set(a, i);
39
- }, n.setPlatform = (a) => {
40
- n.platforms.has(a) && (n.currentPlatform = n.platforms.get(a));
37
+ return n.addPlatform = (o, i) => {
38
+ n.platforms.set(o, i);
39
+ }, n.setPlatform = (o) => {
40
+ n.platforms.has(o) && (n.currentPlatform = n.platforms.get(o));
41
41
  }, n;
42
- })(t), ze = xr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
43
- var j;
44
- ze.addPlatform, ze.setPlatform, function(t) {
42
+ })(t), $e = Vr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
43
+ var D;
44
+ $e.addPlatform, $e.setPlatform, function(t) {
45
45
  t.Unimplemented = "UNIMPLEMENTED", t.Unavailable = "UNAVAILABLE";
46
- }(j || (j = {}));
47
- class ve extends Error {
46
+ }(D || (D = {}));
47
+ class Oe extends Error {
48
48
  constructor(e, r, n) {
49
49
  super(e), this.message = e, this.code = r, this.data = n;
50
50
  }
51
51
  }
52
- const Dr = (t) => {
53
- var e, r, n, a, i;
54
- const c = t.CapacitorCustomPlatform || null, s = t.Capacitor || {}, l = s.Plugins = s.Plugins || {}, u = t.CapacitorPlatforms, _ = ((e = u == null ? void 0 : u.currentPlatform) === null || e === void 0 ? void 0 : e.getPlatform) || (() => c !== null ? c.name : ((h) => {
55
- var m, N;
56
- return h != null && h.androidBridge ? "android" : !((N = (m = h == null ? void 0 : h.webkit) === null || m === void 0 ? void 0 : m.messageHandlers) === null || N === void 0) && N.bridge ? "ios" : "web";
57
- })(t)), p = ((r = u == null ? void 0 : u.currentPlatform) === null || r === void 0 ? void 0 : r.isNativePlatform) || (() => _() !== "web"), f = ((n = u == null ? void 0 : u.currentPlatform) === null || n === void 0 ? void 0 : n.isPluginAvailable) || ((h) => {
58
- const m = I.get(h);
59
- return !!(m != null && m.platforms.has(_())) || !!v(h);
60
- }), v = ((a = u == null ? void 0 : u.currentPlatform) === null || a === void 0 ? void 0 : a.getPluginHeader) || ((h) => {
52
+ const Hr = (t) => {
53
+ var e, r, n, o, i;
54
+ const c = t.CapacitorCustomPlatform || null, s = t.Capacitor || {}, l = s.Plugins = s.Plugins || {}, u = t.CapacitorPlatforms, _ = ((e = u == null ? void 0 : u.currentPlatform) === null || e === void 0 ? void 0 : e.getPlatform) || (() => c !== null ? c.name : ((p) => {
55
+ var m, S;
56
+ return p != null && p.androidBridge ? "android" : !((S = (m = p == null ? void 0 : p.webkit) === null || m === void 0 ? void 0 : m.messageHandlers) === null || S === void 0) && S.bridge ? "ios" : "web";
57
+ })(t)), h = ((r = u == null ? void 0 : u.currentPlatform) === null || r === void 0 ? void 0 : r.isNativePlatform) || (() => _() !== "web"), M = ((n = u == null ? void 0 : u.currentPlatform) === null || n === void 0 ? void 0 : n.isPluginAvailable) || ((p) => {
58
+ const m = I.get(p);
59
+ return !!(m != null && m.platforms.has(_())) || !!E(p);
60
+ }), E = ((o = u == null ? void 0 : u.currentPlatform) === null || o === void 0 ? void 0 : o.getPluginHeader) || ((p) => {
61
61
  var m;
62
- return (m = s.PluginHeaders) === null || m === void 0 ? void 0 : m.find((N) => N.name === h);
63
- }), I = /* @__PURE__ */ new Map(), O = ((i = u == null ? void 0 : u.currentPlatform) === null || i === void 0 ? void 0 : i.registerPlugin) || ((h, m = {}) => {
64
- const N = I.get(h);
65
- if (N)
66
- return console.warn(`Capacitor plugin "${h}" already registered. Cannot register plugins twice.`), N.proxy;
67
- const C = _(), $ = v(h);
68
- let T;
69
- const fe = (E) => {
70
- let L;
71
- const D = (...Z) => {
72
- const q = (() => o(void 0, null, function* () {
73
- return !T && C in m ? T = T = typeof m[C] == "function" ? yield m[C]() : m[C] : c !== null && !T && "web" in m && (T = T = typeof m.web == "function" ? yield m.web() : m.web), T;
74
- }))().then((K) => {
75
- const $e = ((A, z) => {
76
- var Oe, Ce;
77
- if (!$) {
62
+ return (m = s.PluginHeaders) === null || m === void 0 ? void 0 : m.find((S) => S.name === p);
63
+ }), I = /* @__PURE__ */ new Map(), O = ((i = u == null ? void 0 : u.currentPlatform) === null || i === void 0 ? void 0 : i.registerPlugin) || ((p, m = {}) => {
64
+ const S = I.get(p);
65
+ if (S)
66
+ return console.warn(`Capacitor plugin "${p}" already registered. Cannot register plugins twice.`), S.proxy;
67
+ const C = _(), x = E(p);
68
+ let b;
69
+ const Ne = (R) => {
70
+ let v;
71
+ const W = (...J) => {
72
+ const $ = (() => a(void 0, null, function* () {
73
+ return !b && C in m ? b = b = typeof m[C] == "function" ? yield m[C]() : m[C] : c !== null && !b && "web" in m && (b = b = typeof m.web == "function" ? yield m.web() : m.web), b;
74
+ }))().then((j) => {
75
+ const We = ((A, q) => {
76
+ var Me, fe;
77
+ if (!x) {
78
78
  if (A)
79
- return (Ce = A[z]) === null || Ce === void 0 ? void 0 : Ce.bind(A);
80
- throw new ve(`"${h}" plugin is not implemented on ${C}`, j.Unimplemented);
79
+ return (fe = A[q]) === null || fe === void 0 ? void 0 : fe.bind(A);
80
+ throw new Oe(`"${p}" plugin is not implemented on ${C}`, D.Unimplemented);
81
81
  }
82
82
  {
83
- const qe = $ == null ? void 0 : $.methods.find((G) => z === G.name);
84
- if (qe)
85
- return qe.rtype === "promise" ? (G) => s.nativePromise(h, z.toString(), G) : (G, Vr) => s.nativeCallback(h, z.toString(), G, Vr);
83
+ const De = x == null ? void 0 : x.methods.find((K) => q === K.name);
84
+ if (De)
85
+ return De.rtype === "promise" ? (K) => s.nativePromise(p, q.toString(), K) : (K, vr) => s.nativeCallback(p, q.toString(), K, vr);
86
86
  if (A)
87
- return (Oe = A[z]) === null || Oe === void 0 ? void 0 : Oe.bind(A);
87
+ return (Me = A[q]) === null || Me === void 0 ? void 0 : Me.bind(A);
88
88
  }
89
- })(K, E);
90
- if ($e) {
91
- const A = $e(...Z);
92
- return L = A == null ? void 0 : A.remove, A;
89
+ })(j, R);
90
+ if (We) {
91
+ const A = We(...J);
92
+ return v = A == null ? void 0 : A.remove, A;
93
93
  }
94
- throw new ve(`"${h}.${E}()" is not implemented on ${C}`, j.Unimplemented);
94
+ throw new Oe(`"${p}.${R}()" is not implemented on ${C}`, D.Unimplemented);
95
95
  });
96
- return E === "addListener" && (q.remove = () => o(void 0, null, function* () {
97
- return L();
98
- })), q;
96
+ return R === "addListener" && ($.remove = () => a(void 0, null, function* () {
97
+ return v();
98
+ })), $;
99
99
  };
100
- return D.toString = () => `${E.toString()}() { [capacitor code] }`, Object.defineProperty(D, "name", { value: E, writable: !1, configurable: !1 }), D;
101
- }, De = fe("addListener"), je = fe("removeListener"), Tr = (E, L) => {
102
- const D = De({ eventName: E }, L), Z = () => o(void 0, null, function* () {
103
- const K = yield D;
104
- je({ eventName: E, callbackId: K }, L);
105
- }), q = new Promise((K) => D.then(() => K({ remove: Z })));
106
- return q.remove = () => o(void 0, null, function* () {
107
- console.warn("Using addListener() without 'await' is deprecated."), yield Z();
108
- }), q;
109
- }, Ie = new Proxy({}, { get(E, L) {
110
- switch (L) {
100
+ return W.toString = () => `${R.toString()}() { [capacitor code] }`, Object.defineProperty(W, "name", { value: R, writable: !1, configurable: !1 }), W;
101
+ }, Ue = Ne("addListener"), Fe = Ne("removeListener"), Rr = (R, v) => {
102
+ const W = Ue({ eventName: R }, v), J = () => a(void 0, null, function* () {
103
+ const j = yield W;
104
+ Fe({ eventName: R, callbackId: j }, v);
105
+ }), $ = new Promise((j) => W.then(() => j({ remove: J })));
106
+ return $.remove = () => a(void 0, null, function* () {
107
+ console.warn("Using addListener() without 'await' is deprecated."), yield J();
108
+ }), $;
109
+ }, Se = new Proxy({}, { get(R, v) {
110
+ switch (v) {
111
111
  case "$$typeof":
112
112
  return;
113
113
  case "toJSON":
114
114
  return () => ({});
115
115
  case "addListener":
116
- return $ ? Tr : De;
116
+ return x ? Rr : Ue;
117
117
  case "removeListener":
118
- return je;
118
+ return Fe;
119
119
  default:
120
- return fe(L);
120
+ return Ne(v);
121
121
  }
122
122
  } });
123
- return l[h] = Ie, I.set(h, { name: h, proxy: Ie, platforms: /* @__PURE__ */ new Set([...Object.keys(m), ...$ ? [C] : []]) }), Ie;
123
+ return l[p] = Se, I.set(p, { name: p, proxy: Se, platforms: /* @__PURE__ */ new Set([...Object.keys(m), ...x ? [C] : []]) }), Se;
124
124
  });
125
- return s.convertFileSrc || (s.convertFileSrc = (h) => h), s.getPlatform = _, s.handleError = (h) => t.console.error(h), s.isNativePlatform = p, s.isPluginAvailable = f, s.pluginMethodNoop = (h, m, N) => Promise.reject(`${N} does not have an implementation of "${m}".`), s.registerPlugin = O, s.Exception = ve, s.DEBUG = !!s.DEBUG, s.isLoggingEnabled = !!s.isLoggingEnabled, s.platform = s.getPlatform(), s.isNative = s.isNativePlatform(), s;
126
- }, jr = (t) => t.Capacitor = Dr(t), w = jr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {}), Fe = w.registerPlugin;
127
- w.Plugins;
125
+ return s.convertFileSrc || (s.convertFileSrc = (p) => p), s.getPlatform = _, s.handleError = (p) => t.console.error(p), s.isNativePlatform = h, s.isPluginAvailable = M, s.pluginMethodNoop = (p, m, S) => Promise.reject(`${S} does not have an implementation of "${m}".`), s.registerPlugin = O, s.Exception = Oe, s.DEBUG = !!s.DEBUG, s.isLoggingEnabled = !!s.isLoggingEnabled, s.platform = s.getPlatform(), s.isNative = s.isNativePlatform(), s;
126
+ }, Ur = (t) => t.Capacitor = Hr(t), d = Ur(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {}), Ve = d.registerPlugin;
127
+ d.Plugins;
128
128
  class y {
129
129
  constructor(e) {
130
130
  this.listeners = {}, this.windowListeners = {}, e && (console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`), this.config = e);
@@ -133,15 +133,15 @@ class y {
133
133
  this.listeners[e] || (this.listeners[e] = []), this.listeners[e].push(r);
134
134
  const n = this.windowListeners[e];
135
135
  n && !n.registered && this.addWindowListener(n);
136
- const a = () => o(this, null, function* () {
136
+ const o = () => a(this, null, function* () {
137
137
  return this.removeListener(e, r);
138
- }), i = Promise.resolve({ remove: a });
139
- return Object.defineProperty(i, "remove", { value: () => o(this, null, function* () {
140
- console.warn("Using addListener() without 'await' is deprecated."), yield a();
138
+ }), i = Promise.resolve({ remove: o });
139
+ return Object.defineProperty(i, "remove", { value: () => a(this, null, function* () {
140
+ console.warn("Using addListener() without 'await' is deprecated."), yield o();
141
141
  }) }), i;
142
142
  }
143
143
  removeAllListeners() {
144
- return o(this, null, function* () {
144
+ return a(this, null, function* () {
145
145
  this.listeners = {};
146
146
  for (const e in this.windowListeners)
147
147
  this.removeWindowListener(this.windowListeners[e]);
@@ -150,7 +150,7 @@ class y {
150
150
  }
151
151
  notifyListeners(e, r) {
152
152
  const n = this.listeners[e];
153
- n && n.forEach((a) => a(r));
153
+ n && n.forEach((o) => o(r));
154
154
  }
155
155
  hasListeners(e) {
156
156
  return !!this.listeners[e].length;
@@ -161,18 +161,18 @@ class y {
161
161
  } };
162
162
  }
163
163
  unimplemented(e = "not implemented") {
164
- return new w.Exception(e, j.Unimplemented);
164
+ return new d.Exception(e, D.Unimplemented);
165
165
  }
166
166
  unavailable(e = "not available") {
167
- return new w.Exception(e, j.Unavailable);
167
+ return new d.Exception(e, D.Unavailable);
168
168
  }
169
169
  removeListener(e, r) {
170
- return o(this, null, function* () {
170
+ return a(this, null, function* () {
171
171
  const n = this.listeners[e];
172
172
  if (!n)
173
173
  return;
174
- const a = n.indexOf(r);
175
- this.listeners[e].splice(a, 1), this.listeners[e].length || this.removeWindowListener(this.windowListeners[e]);
174
+ const o = n.indexOf(r);
175
+ this.listeners[e].splice(o, 1), this.listeners[e].length || this.removeWindowListener(this.windowListeners[e]);
176
176
  });
177
177
  }
178
178
  addWindowListener(e) {
@@ -182,31 +182,31 @@ class y {
182
182
  e && (window.removeEventListener(e.windowEventName, e.handler), e.registered = !1);
183
183
  }
184
184
  }
185
- const Ge = (t) => encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), Je = (t) => t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
186
- class $r extends y {
185
+ const je = (t) => encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), qe = (t) => t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
186
+ class Fr extends y {
187
187
  getCookies() {
188
- return o(this, null, function* () {
188
+ return a(this, null, function* () {
189
189
  const e = document.cookie, r = {};
190
190
  return e.split(";").forEach((n) => {
191
191
  if (n.length <= 0)
192
192
  return;
193
- let [a, i] = n.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
194
- a = Je(a).trim(), i = Je(i).trim(), r[a] = i;
193
+ let [o, i] = n.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
194
+ o = qe(o).trim(), i = qe(i).trim(), r[o] = i;
195
195
  }), r;
196
196
  });
197
197
  }
198
198
  setCookie(e) {
199
- return o(this, null, function* () {
199
+ return a(this, null, function* () {
200
200
  try {
201
- const r = Ge(e.key), n = Ge(e.value), a = `; expires=${(e.expires || "").replace("expires=", "")}`, i = (e.path || "/").replace("path=", ""), c = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
202
- document.cookie = `${r}=${n || ""}${a}; path=${i}; ${c};`;
201
+ const r = je(e.key), n = je(e.value), o = `; expires=${(e.expires || "").replace("expires=", "")}`, i = (e.path || "/").replace("path=", ""), c = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
202
+ document.cookie = `${r}=${n || ""}${o}; path=${i}; ${c};`;
203
203
  } catch (r) {
204
204
  return Promise.reject(r);
205
205
  }
206
206
  });
207
207
  }
208
208
  deleteCookie(e) {
209
- return o(this, null, function* () {
209
+ return a(this, null, function* () {
210
210
  try {
211
211
  document.cookie = `${e.key}=; Max-Age=0`;
212
212
  } catch (r) {
@@ -215,7 +215,7 @@ class $r extends y {
215
215
  });
216
216
  }
217
217
  clearCookies() {
218
- return o(this, null, function* () {
218
+ return a(this, null, function* () {
219
219
  try {
220
220
  const e = document.cookie.split(";") || [];
221
221
  for (const r of e)
@@ -226,7 +226,7 @@ class $r extends y {
226
226
  });
227
227
  }
228
228
  clearAllCookies() {
229
- return o(this, null, function* () {
229
+ return a(this, null, function* () {
230
230
  try {
231
231
  yield this.clearCookies();
232
232
  } catch (e) {
@@ -235,56 +235,56 @@ class $r extends y {
235
235
  });
236
236
  }
237
237
  }
238
- Fe("CapacitorCookies", { web: () => new $r() });
239
- const qr = (t, e = {}) => {
240
- const r = Object.assign({ method: t.method || "GET", headers: t.headers }, e), n = ((a = {}) => {
241
- const i = Object.keys(a);
242
- return Object.keys(a).map((c) => c.toLocaleLowerCase()).reduce((c, s, l) => (c[s] = a[i[l]], c), {});
238
+ Ve("CapacitorCookies", { web: () => new Fr() });
239
+ const Wr = (t, e = {}) => {
240
+ const r = Object.assign({ method: t.method || "GET", headers: t.headers }, e), n = ((o = {}) => {
241
+ const i = Object.keys(o);
242
+ return Object.keys(o).map((c) => c.toLocaleLowerCase()).reduce((c, s, l) => (c[s] = o[i[l]], c), {});
243
243
  })(t.headers)["content-type"] || "";
244
244
  if (typeof t.data == "string")
245
245
  r.body = t.data;
246
246
  else if (n.includes("application/x-www-form-urlencoded")) {
247
- const a = new URLSearchParams();
247
+ const o = new URLSearchParams();
248
248
  for (const [i, c] of Object.entries(t.data || {}))
249
- a.set(i, c);
250
- r.body = a.toString();
249
+ o.set(i, c);
250
+ r.body = o.toString();
251
251
  } else if (n.includes("multipart/form-data")) {
252
- const a = new FormData();
252
+ const o = new FormData();
253
253
  if (t.data instanceof FormData)
254
254
  t.data.forEach((c, s) => {
255
- a.append(s, c);
255
+ o.append(s, c);
256
256
  });
257
257
  else
258
258
  for (const c of Object.keys(t.data))
259
- a.append(c, t.data[c]);
260
- r.body = a;
259
+ o.append(c, t.data[c]);
260
+ r.body = o;
261
261
  const i = new Headers(r.headers);
262
262
  i.delete("content-type"), r.headers = i;
263
263
  } else
264
264
  (n.includes("application/json") || typeof t.data == "object") && (r.body = JSON.stringify(t.data));
265
265
  return r;
266
266
  };
267
- class Kr extends y {
267
+ class Dr extends y {
268
268
  request(e) {
269
- return o(this, null, function* () {
270
- const r = qr(e, e.webFetchExtra), n = ((p, f = !0) => p ? Object.entries(p).reduce((v, I) => {
271
- const [O, h] = I;
272
- let m, N;
273
- return Array.isArray(h) ? (N = "", h.forEach((C) => {
274
- m = f ? encodeURIComponent(C) : C, N += `${O}=${m}&`;
275
- }), N.slice(0, -1)) : (m = f ? encodeURIComponent(h) : h, N = `${O}=${m}`), `${v}&${N}`;
276
- }, "").substr(1) : null)(e.params, e.shouldEncodeUrlParams), a = n ? `${e.url}?${n}` : e.url, i = yield fetch(a, r), c = i.headers.get("content-type") || "";
269
+ return a(this, null, function* () {
270
+ const r = Wr(e, e.webFetchExtra), n = ((h, M = !0) => h ? Object.entries(h).reduce((E, I) => {
271
+ const [O, p] = I;
272
+ let m, S;
273
+ return Array.isArray(p) ? (S = "", p.forEach((C) => {
274
+ m = M ? encodeURIComponent(C) : C, S += `${O}=${m}&`;
275
+ }), S.slice(0, -1)) : (m = M ? encodeURIComponent(p) : p, S = `${O}=${m}`), `${E}&${S}`;
276
+ }, "").substr(1) : null)(e.params, e.shouldEncodeUrlParams), o = n ? `${e.url}?${n}` : e.url, i = yield fetch(o, r), c = i.headers.get("content-type") || "";
277
277
  let s, l, { responseType: u = "text" } = i.ok ? e : {};
278
278
  switch (c.includes("application/json") && (u = "json"), u) {
279
279
  case "arraybuffer":
280
280
  case "blob":
281
- l = yield i.blob(), s = yield ((p) => o(this, null, function* () {
282
- return new Promise((f, v) => {
281
+ l = yield i.blob(), s = yield ((h) => a(this, null, function* () {
282
+ return new Promise((M, E) => {
283
283
  const I = new FileReader();
284
284
  I.onload = () => {
285
285
  const O = I.result;
286
- f(O.indexOf(",") >= 0 ? O.split(",")[1] : O);
287
- }, I.onerror = (O) => v(O), I.readAsDataURL(p);
286
+ M(O.indexOf(",") >= 0 ? O.split(",")[1] : O);
287
+ }, I.onerror = (O) => E(O), I.readAsDataURL(h);
288
288
  });
289
289
  }))(l);
290
290
  break;
@@ -295,67 +295,67 @@ class Kr extends y {
295
295
  s = yield i.text();
296
296
  }
297
297
  const _ = {};
298
- return i.headers.forEach((p, f) => {
299
- _[f] = p;
298
+ return i.headers.forEach((h, M) => {
299
+ _[M] = h;
300
300
  }), { data: s, headers: _, status: i.status, url: i.url };
301
301
  });
302
302
  }
303
303
  get(e) {
304
- return o(this, null, function* () {
304
+ return a(this, null, function* () {
305
305
  return this.request(Object.assign(Object.assign({}, e), { method: "GET" }));
306
306
  });
307
307
  }
308
308
  post(e) {
309
- return o(this, null, function* () {
309
+ return a(this, null, function* () {
310
310
  return this.request(Object.assign(Object.assign({}, e), { method: "POST" }));
311
311
  });
312
312
  }
313
313
  put(e) {
314
- return o(this, null, function* () {
314
+ return a(this, null, function* () {
315
315
  return this.request(Object.assign(Object.assign({}, e), { method: "PUT" }));
316
316
  });
317
317
  }
318
318
  patch(e) {
319
- return o(this, null, function* () {
319
+ return a(this, null, function* () {
320
320
  return this.request(Object.assign(Object.assign({}, e), { method: "PATCH" }));
321
321
  });
322
322
  }
323
323
  delete(e) {
324
- return o(this, null, function* () {
324
+ return a(this, null, function* () {
325
325
  return this.request(Object.assign(Object.assign({}, e), { method: "DELETE" }));
326
326
  });
327
327
  }
328
328
  }
329
- function Ee() {
330
- return w.getPlatform() === "android" ? JSON.parse(AndroidInitialContext.initialContext()) : window.portalInitialContext;
329
+ function Ce() {
330
+ return d.getPlatform() === "android" ? JSON.parse(AndroidInitialContext.initialContext()) : window.portalInitialContext;
331
331
  }
332
- Fe("CapacitorHttp", { web: () => new Kr() }), /*! Ionic Portals: https://ionic.io/portals - Commercial License */
333
- Fe("Portals", { web: () => Promise.resolve().then(function() {
334
- return zr;
332
+ Ve("CapacitorHttp", { web: () => new Dr() }), /*! Ionic Portals: https://ionic.io/portals - Commercial License */
333
+ Ve("Portals", { web: () => Promise.resolve().then(function() {
334
+ return xr;
335
335
  }).then((t) => new t.PortalsWeb()) });
336
- const zr = Object.freeze({ __proto__: null, PortalsWeb: class extends y {
336
+ const xr = Object.freeze({ __proto__: null, PortalsWeb: class extends y {
337
337
  publishNative(t) {
338
- return o(this, null, function* () {
338
+ return a(this, null, function* () {
339
339
  });
340
340
  }
341
- } }), re = (t) => {
341
+ } }), Y = (t) => {
342
342
  var e, r, n;
343
343
  try {
344
344
  if (typeof window == "undefined")
345
345
  return;
346
- if (Ee && ((e = Ee()) != null && e.value)) {
347
- const a = (n = (r = Ee()) == null ? void 0 : r.value) != null ? n : null;
348
- if (!a)
346
+ if (Ce && ((e = Ce()) != null && e.value)) {
347
+ const o = (n = (r = Ce()) == null ? void 0 : r.value) != null ? n : null;
348
+ if (!o)
349
349
  return void console.error("native initialContext is undefine");
350
350
  if (!t)
351
351
  return void console.error("initialContext call back is undefine");
352
- t(a);
352
+ t(o);
353
353
  }
354
- } catch (a) {
355
- throw console.error("getInitialContextHandle error", a), a;
354
+ } catch (o) {
355
+ throw console.error("getInitialContextHandle error", o), o;
356
356
  }
357
357
  };
358
- class Gr {
358
+ class $r {
359
359
  isNative() {
360
360
  try {
361
361
  return (() => {
@@ -364,7 +364,7 @@ class Gr {
364
364
  return window.rawWindow.__mini_app_hook__.isNative();
365
365
  {
366
366
  let e = !1;
367
- return re((r) => {
367
+ return Y((r) => {
368
368
  e = !!(r != null && r.isNative);
369
369
  }), e;
370
370
  }
@@ -384,12 +384,12 @@ class Gr {
384
384
  return e.callBack(r);
385
385
  } else
386
386
  (({ callBack: r }) => {
387
- re((n) => {
388
- var a;
387
+ Y((n) => {
388
+ var o;
389
389
  try {
390
390
  if (!(n != null && n.params))
391
391
  return void console.info("initial context native params is undefine");
392
- const i = (a = n == null ? void 0 : n.params) != null ? a : null;
392
+ const i = (o = n == null ? void 0 : n.params) != null ? o : null;
393
393
  if (!i)
394
394
  return;
395
395
  if (!r)
@@ -410,15 +410,15 @@ class Gr {
410
410
  return this.isNative() ? window.__MICRO_APP_ENVIRONMENT__ ? (r = window.rawWindow.__mini_app_hook__.getNativeInfo(e)) != null ? r : {} : (() => {
411
411
  try {
412
412
  let n = null;
413
- return re((a) => {
414
- n = a != null ? a : null;
413
+ return Y((o) => {
414
+ n = o != null ? o : null;
415
415
  }), n;
416
416
  } catch (n) {
417
417
  throw console.error("getNativeInfoHandle error", n), n;
418
418
  }
419
419
  })() : ((n) => {
420
- var a;
421
- return (a = n == null ? void 0 : n.mockData) != null ? a : null;
420
+ var o;
421
+ return (o = n == null ? void 0 : n.mockData) != null ? o : null;
422
422
  })(e);
423
423
  } catch (n) {
424
424
  throw console.error("getNativeInfo error", n), n;
@@ -430,34 +430,34 @@ class Gr {
430
430
  });
431
431
  }
432
432
  }
433
- const M = () => {
433
+ const f = () => {
434
434
  try {
435
435
  let t = {};
436
436
  return typeof window != "undefined" && (t = window), t;
437
437
  } catch (t) {
438
438
  throw console.error("isWinHandle error", t), t;
439
439
  }
440
- }, R = "CommunicatePlugin", g = w.registerPlugin(R, { web: () => Promise.resolve().then(() => Mt).then((t) => new t.PluginsWeb()) }), te = M();
441
- te.removeAddListenerFab = () => null;
442
- const Jr = (t, e) => {
440
+ }, F = "CommunicatePlugin", g = d.registerPlugin(F, { web: () => Promise.resolve().then(() => gt).then((t) => new t.PluginsWeb()) }), Z = f();
441
+ Z.removeAddListenerFab = () => null;
442
+ const jr = (t, e) => {
443
443
  var r, n;
444
444
  try {
445
- te.removeAddListenerFab && te.removeAddListenerFab();
446
- const a = [];
447
- if ((r = g.showFABMenu) == null || r.call(g, { fabMenu: a, position: null }), !t || !((n = Object.keys(t)) != null && n.length))
445
+ Z.removeAddListenerFab && Z.removeAddListenerFab();
446
+ const o = [];
447
+ if ((r = g.showFABMenu) == null || r.call(g, { fabMenu: o, position: null }), !t || !((n = Object.keys(t)) != null && n.length))
448
448
  return;
449
449
  Object.keys(t).forEach((i) => {
450
- var c, s, l, u, _, p, f, v;
451
- a.push({ disable: (s = (c = t == null ? void 0 : t[i]) == null ? void 0 : c.disable) != null ? s : !1, icon: (u = (l = t == null ? void 0 : t[i]) == null ? void 0 : l.icon) != null ? u : "", id: (p = (_ = t == null ? void 0 : t[i]) == null ? void 0 : _.id) != null ? p : "", name: (v = (f = t == null ? void 0 : t[i]) == null ? void 0 : f.title) != null ? v : "" });
450
+ var c, s, l, u, _, h, M, E;
451
+ o.push({ disable: (s = (c = t == null ? void 0 : t[i]) == null ? void 0 : c.disable) != null ? s : !1, icon: (u = (l = t == null ? void 0 : t[i]) == null ? void 0 : l.icon) != null ? u : "", id: (h = (_ = t == null ? void 0 : t[i]) == null ? void 0 : _.id) != null ? h : "", name: (E = (M = t == null ? void 0 : t[i]) == null ? void 0 : M.title) != null ? E : "" });
452
452
  }), queueMicrotask(() => {
453
453
  var i;
454
- (i = g.showFABMenu) == null || i.call(g, { fabMenu: a, position: e != null ? e : null });
454
+ (i = g.showFABMenu) == null || i.call(g, { fabMenu: o, position: e != null ? e : null });
455
455
  }), setTimeout(() => {
456
- ((i) => o(void 0, null, function* () {
457
- i && (te.removeAddListenerFab = yield ((c) => o(void 0, null, function* () {
456
+ ((i) => a(void 0, null, function* () {
457
+ i && (Z.removeAddListenerFab = yield ((c) => a(void 0, null, function* () {
458
458
  try {
459
- if (w.addListener) {
460
- const s = yield w.addListener(R, "nativeSendFab", (l) => c && c(l));
459
+ if (d.addListener) {
460
+ const s = yield d.addListener(F, "nativeSendFab", (l) => c && c(l));
461
461
  return s != null && s.remove ? s.remove : () => null;
462
462
  }
463
463
  } catch (s) {
@@ -472,17 +472,17 @@ const Jr = (t, e) => {
472
472
  }), typeof c == "function" && c());
473
473
  });
474
474
  });
475
- } catch (a) {
476
- throw console.error("fabBtnHandle error", a), a;
475
+ } catch (o) {
476
+ throw console.error("fabBtnHandle error", o), o;
477
477
  }
478
- }, V = M();
479
- V.addListenerBackRemoveHandle = () => null;
480
- const Qe = (t = () => null) => o(void 0, null, function* () {
478
+ }, T = f();
479
+ T.addListenerBackRemoveHandle = () => null;
480
+ const Ke = (t = () => null) => a(void 0, null, function* () {
481
481
  try {
482
- V != null && V.addListenerBackRemoveHandle && typeof V.addListenerBackRemoveHandle == "function" && V.addListenerBackRemoveHandle(), V.addListenerBackRemoveHandle = yield ((e) => o(void 0, null, function* () {
482
+ T != null && T.addListenerBackRemoveHandle && typeof T.addListenerBackRemoveHandle == "function" && T.addListenerBackRemoveHandle(), T.addListenerBackRemoveHandle = yield ((e) => a(void 0, null, function* () {
483
483
  try {
484
- if (w.addListener) {
485
- const r = yield w.addListener(R, "nativeSendBack", (n) => e && e(n));
484
+ if (d.addListener) {
485
+ const r = yield d.addListener(F, "nativeSendBack", (n) => e && e(n));
486
486
  return r != null && r.remove ? r.remove : () => null;
487
487
  }
488
488
  } catch (r) {
@@ -492,16 +492,16 @@ const Qe = (t = () => null) => o(void 0, null, function* () {
492
492
  } catch (e) {
493
493
  throw console.error("initBackBtnFn error", e), e;
494
494
  }
495
- }), ne = M();
496
- ne.addListenerHomeHandle = () => null;
497
- const Qr = (t) => {
495
+ }), ee = f();
496
+ ee.addListenerHomeHandle = () => null;
497
+ const qr = (t) => {
498
498
  try {
499
- ne.addListenerHomeHandle && ne.addListenerHomeHandle(), setTimeout(() => {
500
- ((e) => o(void 0, null, function* () {
501
- e && (ne.addListenerHomeHandle = yield ((r) => o(void 0, null, function* () {
499
+ ee.addListenerHomeHandle && ee.addListenerHomeHandle(), setTimeout(() => {
500
+ ((e) => a(void 0, null, function* () {
501
+ e && (ee.addListenerHomeHandle = yield ((r) => a(void 0, null, function* () {
502
502
  try {
503
- if (w.addListener) {
504
- const n = yield w.addListener(R, "nativeSendHome", (a) => r && r(a));
503
+ if (d.addListener) {
504
+ const n = yield d.addListener(F, "nativeSendHome", (o) => r && r(o));
505
505
  return n != null && n.remove ? n.remove : () => null;
506
506
  }
507
507
  } catch (n) {
@@ -513,14 +513,14 @@ const Qr = (t) => {
513
513
  } catch (e) {
514
514
  throw console.error("homeFn error", e), e;
515
515
  }
516
- }, B = M();
516
+ }, B = f();
517
517
  B.addListenerTouchRemoveHandle = () => null;
518
- const Ye = (t = () => null) => o(void 0, null, function* () {
518
+ const ze = (t = () => null) => a(void 0, null, function* () {
519
519
  try {
520
- B != null && B.addListenerTouchRemoveHandle && typeof B.addListenerTouchRemoveHandle == "function" && B.addListenerTouchRemoveHandle(), B.addListenerTouchRemoveHandle = yield ((e) => o(void 0, null, function* () {
520
+ B != null && B.addListenerTouchRemoveHandle && typeof B.addListenerTouchRemoveHandle == "function" && B.addListenerTouchRemoveHandle(), B.addListenerTouchRemoveHandle = yield ((e) => a(void 0, null, function* () {
521
521
  try {
522
- if (w.addListener) {
523
- const r = yield w.addListener(R, "nativeTouchListener", (n) => e && e(n));
522
+ if (d.addListener) {
523
+ const r = yield d.addListener(F, "nativeTouchListener", (n) => e && e(n));
524
524
  return r != null && r.remove ? r.remove : () => null;
525
525
  }
526
526
  } catch (r) {
@@ -530,16 +530,16 @@ const Ye = (t = () => null) => o(void 0, null, function* () {
530
530
  } catch (e) {
531
531
  throw console.error("initTouchFn error", e), e;
532
532
  }
533
- }), H = M();
534
- H.addListenerSendDeepLinkRemoveHandle = () => null;
535
- const Ze = (t = () => null) => o(void 0, null, function* () {
533
+ }), V = f();
534
+ V.addListenerSendDeepLinkRemoveHandle = () => null;
535
+ const Ge = (t = () => null) => a(void 0, null, function* () {
536
536
  try {
537
- H != null && H.addListenerSendDeepLinkRemoveHandle && typeof H.addListenerSendDeepLinkRemoveHandle == "function" && H.addListenerSendDeepLinkRemoveHandle(), H.addListenerSendDeepLinkRemoveHandle = yield ((e) => o(void 0, null, function* () {
537
+ V != null && V.addListenerSendDeepLinkRemoveHandle && typeof V.addListenerSendDeepLinkRemoveHandle == "function" && V.addListenerSendDeepLinkRemoveHandle(), V.addListenerSendDeepLinkRemoveHandle = yield ((e) => a(void 0, null, function* () {
538
538
  try {
539
539
  if (window.__MICRO_APP_ENVIRONMENT__)
540
540
  return e && window.rawWindow.__mini_app_hook__.getDeeplinkParams(e), { remove: () => null };
541
- if (w.addListener) {
542
- const r = yield w.addListener(R, "nativeSendDeeplinkCallbackListener", (n) => e && e(n));
541
+ if (d.addListener) {
542
+ const r = yield d.addListener(F, "nativeSendDeeplinkCallbackListener", (n) => e && e(n));
543
543
  return r != null && r.remove ? r.remove : () => null;
544
544
  }
545
545
  } catch (r) {
@@ -549,35 +549,14 @@ const Ze = (t = () => null) => o(void 0, null, function* () {
549
549
  } catch (e) {
550
550
  throw console.error("initTouchFn error", e), e;
551
551
  }
552
- }), U = M();
553
- U.addListenerSwitchLanguageRemoveHandle = () => null;
554
- const Xe = (t = () => null) => o(void 0, null, function* () {
552
+ }), H = f();
553
+ H.addListenerSetupMiniAppRemoveHandle = () => null;
554
+ const Je = (t = () => null) => a(void 0, null, function* () {
555
555
  try {
556
- U != null && U.addListenerSwitchLanguageRemoveHandle && typeof U.addListenerSwitchLanguageRemoveHandle == "function" && U.addListenerSwitchLanguageRemoveHandle(), U.addListenerSwitchLanguageRemoveHandle = yield ((e) => o(void 0, null, function* () {
556
+ H != null && H.addListenerSetupMiniAppRemoveHandle && typeof H.addListenerSetupMiniAppRemoveHandle == "function" && H.addListenerSetupMiniAppRemoveHandle(), H.addListenerSetupMiniAppRemoveHandle = yield ((e) => a(void 0, null, function* () {
557
557
  try {
558
- if (w.addListener) {
559
- const r = yield w.addListener(R, "nativeSendSwitchLanguage", (n) => e && e(n));
560
- return r != null && r.remove ? r.remove : () => null;
561
- }
562
- if (window.__MICRO_APP_ENVIRONMENT__)
563
- return window.rawWindow.__mini_app_hook__.switchLanguage = e, { remove: () => {
564
- window.rawWindow.__mini_app_hook__.switchLanguage = null;
565
- } };
566
- } catch (r) {
567
- throw console.error("addListenerSwitchLanguageHandle error", r), r;
568
- }
569
- }))(t);
570
- } catch (e) {
571
- throw console.error("initSwitchLanguageFn error", e), e;
572
- }
573
- }), F = M();
574
- F.addListenerSetupMiniAppRemoveHandle = () => null;
575
- const er = (t = () => null) => o(void 0, null, function* () {
576
- try {
577
- F != null && F.addListenerSetupMiniAppRemoveHandle && typeof F.addListenerSetupMiniAppRemoveHandle == "function" && F.addListenerSetupMiniAppRemoveHandle(), F.addListenerSetupMiniAppRemoveHandle = yield ((e) => o(void 0, null, function* () {
578
- try {
579
- if (w.addListener) {
580
- const r = yield w.addListener(R, "nativeSetupMiniApp", (n) => e && e(n));
558
+ if (d.addListener) {
559
+ const r = yield d.addListener(F, "nativeSetupMiniApp", (n) => e && e(n));
581
560
  return r != null && r.remove ? r.remove : () => null;
582
561
  }
583
562
  } catch (r) {
@@ -587,34 +566,13 @@ const er = (t = () => null) => o(void 0, null, function* () {
587
566
  } catch (e) {
588
567
  throw console.error("initSetupMiniAppFn error", e), e;
589
568
  }
590
- }), W = M();
591
- W.addListenerSwitchStoreRemoveHandle = () => null;
592
- const rr = (t = () => null) => o(void 0, null, function* () {
593
- try {
594
- W != null && W.addListenerSwitchStoreRemoveHandle && typeof W.addListenerSwitchStoreRemoveHandle == "function" && W.addListenerSwitchStoreRemoveHandle(), W.addListenerSwitchStoreRemoveHandle = yield ((e) => o(void 0, null, function* () {
595
- try {
596
- if (w.addListener) {
597
- const r = yield w.addListener(R, "nativeSendSwitchStore", (n) => e && e(n));
598
- return r != null && r.remove ? r.remove : () => null;
599
- }
600
- if (window.__MICRO_APP_ENVIRONMENT__)
601
- return window.rawWindow.__mini_app_hook__.switchStore = e, { remove: () => {
602
- window.rawWindow.__mini_app_hook__.switchStore = null;
603
- } };
604
- } catch (r) {
605
- throw console.error("addListenerSwitchStoreHandle error", r), r;
606
- }
607
- }))(t);
608
- } catch (e) {
609
- throw console.error("initSwitchStoreFn error", e), e;
610
- }
611
569
  });
612
- class Yr {
570
+ class Kr {
613
571
  constructor() {
614
572
  this.homeBtnSwitch({ isClick: !0 });
615
573
  }
616
574
  homeBtnSwitch(e) {
617
- return o(this, null, function* () {
575
+ return a(this, null, function* () {
618
576
  var r;
619
577
  try {
620
578
  return yield (r = g.homeIsClick) == null ? void 0 : r.call(g, e);
@@ -627,11 +585,11 @@ class Yr {
627
585
  try {
628
586
  ((r) => {
629
587
  try {
630
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
588
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
631
589
  n(() => {
632
- Qe(i);
633
- }), a(() => {
634
- Qe();
590
+ Ke(i);
591
+ }), o(() => {
592
+ Ke();
635
593
  });
636
594
  } catch (n) {
637
595
  throw console.error("backBtnHandle error", n), n;
@@ -643,14 +601,14 @@ class Yr {
643
601
  }
644
602
  setHomeBtn(e) {
645
603
  try {
646
- window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setHomeBtn = e : Qr(e);
604
+ window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setHomeBtn = e : qr(e);
647
605
  } catch (r) {
648
606
  throw console.error("setHomeBtn error", r), r;
649
607
  }
650
608
  }
651
609
  setFabBtn(e, r) {
652
610
  try {
653
- window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setFabBtn(e, r) : Jr(e, r);
611
+ window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setFabBtn(e, r) : jr(e, r);
654
612
  } catch (n) {
655
613
  throw console.error("setFabBtn error", n), n;
656
614
  }
@@ -659,11 +617,11 @@ class Yr {
659
617
  try {
660
618
  ((r) => {
661
619
  try {
662
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
620
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
663
621
  n(() => {
664
- Ye(i);
665
- }), a(() => {
666
- Ye();
622
+ ze(i);
623
+ }), o(() => {
624
+ ze();
667
625
  });
668
626
  } catch (n) {
669
627
  throw console.error("touchListenerHandle error", n), n;
@@ -674,7 +632,7 @@ class Yr {
674
632
  }
675
633
  }
676
634
  disableFAB(e) {
677
- return o(this, null, function* () {
635
+ return a(this, null, function* () {
678
636
  try {
679
637
  return yield g.disableFAB(e);
680
638
  } catch (r) {
@@ -683,7 +641,7 @@ class Yr {
683
641
  });
684
642
  }
685
643
  disableBack(e) {
686
- return o(this, null, function* () {
644
+ return a(this, null, function* () {
687
645
  try {
688
646
  return yield g.disableBack(e);
689
647
  } catch (r) {
@@ -692,7 +650,7 @@ class Yr {
692
650
  });
693
651
  }
694
652
  openMiniApp(e) {
695
- return o(this, null, function* () {
653
+ return a(this, null, function* () {
696
654
  try {
697
655
  return yield g.openMiniApp(e);
698
656
  } catch (r) {
@@ -701,7 +659,7 @@ class Yr {
701
659
  });
702
660
  }
703
661
  showTitle(e) {
704
- return o(this, null, function* () {
662
+ return a(this, null, function* () {
705
663
  try {
706
664
  return yield g.showTitle(e);
707
665
  } catch (r) {
@@ -710,7 +668,7 @@ class Yr {
710
668
  });
711
669
  }
712
670
  showSubMask(e) {
713
- return o(this, null, function* () {
671
+ return a(this, null, function* () {
714
672
  try {
715
673
  return yield g.showSubMask(e);
716
674
  } catch (r) {
@@ -719,7 +677,7 @@ class Yr {
719
677
  });
720
678
  }
721
679
  setMiniAppVersion(e) {
722
- return o(this, null, function* () {
680
+ return a(this, null, function* () {
723
681
  try {
724
682
  return yield g.setMiniAppVersion(e);
725
683
  } catch (r) {
@@ -728,7 +686,7 @@ class Yr {
728
686
  });
729
687
  }
730
688
  showNativeLoading() {
731
- return o(this, null, function* () {
689
+ return a(this, null, function* () {
732
690
  try {
733
691
  return yield g.showDialog();
734
692
  } catch (e) {
@@ -737,7 +695,7 @@ class Yr {
737
695
  });
738
696
  }
739
697
  cancelNativeLoading() {
740
- return o(this, null, function* () {
698
+ return a(this, null, function* () {
741
699
  try {
742
700
  return yield g.cancelDialog();
743
701
  } catch (e) {
@@ -746,7 +704,7 @@ class Yr {
746
704
  });
747
705
  }
748
706
  getMiniAppKong(e) {
749
- return o(this, null, function* () {
707
+ return a(this, null, function* () {
750
708
  try {
751
709
  return yield g.getMiniAppKong(e);
752
710
  } catch (r) {
@@ -758,11 +716,11 @@ class Yr {
758
716
  try {
759
717
  ((r) => {
760
718
  try {
761
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
719
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
762
720
  n(() => {
763
- Ze(i);
764
- }), a(() => {
765
- Ze();
721
+ Ge(i);
722
+ }), o(() => {
723
+ Ge();
766
724
  });
767
725
  } catch (n) {
768
726
  throw console.error("sendDeepLinkListenerHandle error", n), n;
@@ -773,32 +731,17 @@ class Yr {
773
731
  }
774
732
  }
775
733
  switchLanguage(e) {
776
- try {
777
- ((r) => {
778
- try {
779
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
780
- n(() => {
781
- Xe(i);
782
- }), a(() => {
783
- Xe();
784
- });
785
- } catch (n) {
786
- throw console.error("sendSwitchLanguageHandle error", n), n;
787
- }
788
- })(e);
789
- } catch (r) {
790
- throw console.error("switchLanguage error", r), r;
791
- }
734
+ return console.info("sendSwitchLanguageParams", e), { errorMsg: "This method is deprecated" };
792
735
  }
793
736
  setupMiniApp(e) {
794
737
  try {
795
738
  ((r) => {
796
739
  try {
797
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
740
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
798
741
  n(() => {
799
- er(i);
800
- }), a(() => {
801
- er();
742
+ Je(i);
743
+ }), o(() => {
744
+ Je();
802
745
  });
803
746
  } catch (n) {
804
747
  throw console.error("setupMiniAppHandle error", n), n;
@@ -809,25 +752,10 @@ class Yr {
809
752
  }
810
753
  }
811
754
  switchStore(e) {
812
- try {
813
- ((r) => {
814
- try {
815
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
816
- n(() => {
817
- rr(i);
818
- }), a(() => {
819
- rr();
820
- });
821
- } catch (n) {
822
- throw console.error("sendSwitchStoreHandle error", n), n;
823
- }
824
- })(e);
825
- } catch (r) {
826
- throw console.error("switchStore error", r), r;
827
- }
755
+ return console.info("sendSwitchStoreParams", e), { errorMsg: "This method is deprecated" };
828
756
  }
829
757
  closeMiniApp() {
830
- return o(this, null, function* () {
758
+ return a(this, null, function* () {
831
759
  try {
832
760
  return yield g.closeMiniApp();
833
761
  } catch (e) {
@@ -836,7 +764,7 @@ class Yr {
836
764
  });
837
765
  }
838
766
  getStatus() {
839
- return o(this, null, function* () {
767
+ return a(this, null, function* () {
840
768
  try {
841
769
  return yield g.getStatus();
842
770
  } catch (e) {
@@ -845,7 +773,7 @@ class Yr {
845
773
  });
846
774
  }
847
775
  dispatchToShell(e) {
848
- return o(this, null, function* () {
776
+ return a(this, null, function* () {
849
777
  try {
850
778
  return yield g.dispatchToShell(e);
851
779
  } catch (r) {
@@ -854,7 +782,7 @@ class Yr {
854
782
  });
855
783
  }
856
784
  getMiniAppInfo(e) {
857
- return o(this, null, function* () {
785
+ return a(this, null, function* () {
858
786
  try {
859
787
  return yield g.getMiniAppInfo(e);
860
788
  } catch (r) {
@@ -863,26 +791,26 @@ class Yr {
863
791
  });
864
792
  }
865
793
  }
866
- let oe = null;
867
- var dr;
868
- window.__MICRO_APP_ENVIRONMENT__ && (oe = (dr = window.rawWindow.__mini_app_status_hook__) != null ? dr : {});
869
- const Re = w.registerPlugin("CameraScanPlugin", { web: new class extends y {
794
+ let re = null;
795
+ var ar;
796
+ window.__MICRO_APP_ENVIRONMENT__ && (re = (ar = window.rawWindow.__mini_app_status_hook__) != null ? ar : {});
797
+ const Ae = d.registerPlugin("CameraScanPlugin", { web: new class extends y {
870
798
  pickCameraScan(t) {
871
- return o(this, null, function* () {
799
+ return a(this, null, function* () {
872
800
  return new Promise((e) => {
873
801
  e(t);
874
802
  });
875
803
  });
876
804
  }
877
805
  setCameraScanState() {
878
- return o(this, null, function* () {
806
+ return a(this, null, function* () {
879
807
  });
880
808
  }
881
809
  getStatus() {
882
810
  try {
883
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
811
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
884
812
  var e, r;
885
- t((yield (r = (e = oe == null ? void 0 : oe.cameraScan) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
813
+ t((yield (r = (e = re == null ? void 0 : re.cameraScan) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
886
814
  })) : new Promise((t) => {
887
815
  t(null);
888
816
  });
@@ -892,52 +820,52 @@ const Re = w.registerPlugin("CameraScanPlugin", { web: new class extends y {
892
820
  }
893
821
  }() });
894
822
  window.removeAddListenerCameraScan = () => null;
895
- class Zr {
823
+ class zr {
896
824
  pickCameraScan(e) {
897
- return o(this, null, function* () {
825
+ return a(this, null, function* () {
898
826
  try {
899
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScan(e) : yield Re.pickCameraScan(e);
827
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScan(e) : yield Ae.pickCameraScan(e);
900
828
  } catch (r) {
901
829
  throw console.error("pickCameraScan error", r), r;
902
830
  }
903
831
  });
904
832
  }
905
833
  setCameraScanState(e) {
906
- return o(this, null, function* () {
834
+ return a(this, null, function* () {
907
835
  try {
908
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanState(e) : yield Re.setCameraScanState(e);
836
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanState(e) : yield Ae.setCameraScanState(e);
909
837
  } catch (r) {
910
838
  throw console.error("setCameraScanState error", r), r;
911
839
  }
912
840
  });
913
841
  }
914
842
  getStatus() {
915
- return o(this, null, function* () {
843
+ return a(this, null, function* () {
916
844
  try {
917
- return yield Re.getStatus();
845
+ return yield Ae.getStatus();
918
846
  } catch (e) {
919
847
  throw console.error("cameraScanPlugin getStatus error", e), e;
920
848
  }
921
849
  });
922
850
  }
923
851
  }
924
- let ae = null;
925
- var ur;
926
- window.__MICRO_APP_ENVIRONMENT__ && (ae = (ur = window.rawWindow.__mini_app_status_hook__) != null ? ur : {});
927
- const Le = w.registerPlugin("CameraScanMultiplePlugin", { web: new class extends y {
852
+ let te = null;
853
+ var ir;
854
+ window.__MICRO_APP_ENVIRONMENT__ && (te = (ir = window.rawWindow.__mini_app_status_hook__) != null ? ir : {});
855
+ const Ee = d.registerPlugin("CameraScanMultiplePlugin", { web: new class extends y {
928
856
  pickCameraScanMultiple() {
929
- return o(this, null, function* () {
857
+ return a(this, null, function* () {
930
858
  });
931
859
  }
932
860
  setCameraScanMultipleState() {
933
- return o(this, null, function* () {
861
+ return a(this, null, function* () {
934
862
  });
935
863
  }
936
864
  getStatus() {
937
865
  try {
938
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
866
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
939
867
  var e, r;
940
- t((yield (r = (e = ae == null ? void 0 : ae.cameraScanMultiple) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
868
+ t((yield (r = (e = te == null ? void 0 : te.cameraScanMultiple) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
941
869
  })) : new Promise((t) => {
942
870
  t(null);
943
871
  });
@@ -946,52 +874,52 @@ const Le = w.registerPlugin("CameraScanMultiplePlugin", { web: new class extends
946
874
  }
947
875
  }
948
876
  }() });
949
- class Xr {
877
+ class Gr {
950
878
  pickCameraScanMultiple(e) {
951
- return o(this, null, function* () {
879
+ return a(this, null, function* () {
952
880
  try {
953
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanMultiple(e) : yield Le.pickCameraScanMultiple(e);
881
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanMultiple(e) : yield Ee.pickCameraScanMultiple(e);
954
882
  } catch (r) {
955
883
  throw console.error("pickCameraScanMultiple error", r), r;
956
884
  }
957
885
  });
958
886
  }
959
887
  setCameraScanMultipleState(e) {
960
- return o(this, null, function* () {
888
+ return a(this, null, function* () {
961
889
  try {
962
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanMultipleState(e) : yield Le.setCameraScanMultipleState(e);
890
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanMultipleState(e) : yield Ee.setCameraScanMultipleState(e);
963
891
  } catch (r) {
964
892
  throw console.error("setCameraScanMultipleState error", r), r;
965
893
  }
966
894
  });
967
895
  }
968
896
  getStatus() {
969
- return o(this, null, function* () {
897
+ return a(this, null, function* () {
970
898
  try {
971
- return yield Le.getStatus();
899
+ return yield Ee.getStatus();
972
900
  } catch (e) {
973
901
  throw console.error("cameraScanMultiplePlugin getStatus error", e), e;
974
902
  }
975
903
  });
976
904
  }
977
905
  }
978
- let ie = null;
979
- var _r;
980
- window.__MICRO_APP_ENVIRONMENT__ && (ie = (_r = window.rawWindow.__mini_app_status_hook__) != null ? _r : {});
981
- const ke = w.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class extends y {
906
+ let ne = null;
907
+ var sr;
908
+ window.__MICRO_APP_ENVIRONMENT__ && (ne = (sr = window.rawWindow.__mini_app_status_hook__) != null ? sr : {});
909
+ const Re = d.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class extends y {
982
910
  pickCameraScanMultipleNoCount() {
983
- return o(this, null, function* () {
911
+ return a(this, null, function* () {
984
912
  });
985
913
  }
986
914
  setCameraScanMultipleNoCountState() {
987
- return o(this, null, function* () {
915
+ return a(this, null, function* () {
988
916
  });
989
917
  }
990
918
  getStatus() {
991
919
  try {
992
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
920
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
993
921
  var e, r;
994
- t((yield (r = (e = ie == null ? void 0 : ie.cameraScanMultipleNoCount) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
922
+ t((yield (r = (e = ne == null ? void 0 : ne.cameraScanMultipleNoCount) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
995
923
  })) : new Promise((t) => {
996
924
  t(null);
997
925
  });
@@ -1000,52 +928,52 @@ const ke = w.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class
1000
928
  }
1001
929
  }
1002
930
  }() });
1003
- class et {
931
+ class Jr {
1004
932
  pickCameraScanMultipleNoCount(e) {
1005
- return o(this, null, function* () {
933
+ return a(this, null, function* () {
1006
934
  try {
1007
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanMultipleNoCount(e) : yield ke.pickCameraScanMultipleNoCount(e);
935
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanMultipleNoCount(e) : yield Re.pickCameraScanMultipleNoCount(e);
1008
936
  } catch (r) {
1009
937
  throw console.error("pickCameraScanMultipleNoCount error", r), r;
1010
938
  }
1011
939
  });
1012
940
  }
1013
941
  setCameraScanMultipleNoCountState(e) {
1014
- return o(this, null, function* () {
942
+ return a(this, null, function* () {
1015
943
  try {
1016
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanMultipleNoCountState(e) : yield ke.setCameraScanMultipleNoCountState(e);
944
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraScanMultipleNoCountState(e) : yield Re.setCameraScanMultipleNoCountState(e);
1017
945
  } catch (r) {
1018
946
  throw console.error("setCameraScanMultipleNoCountState error", r), r;
1019
947
  }
1020
948
  });
1021
949
  }
1022
950
  getStatus() {
1023
- return o(this, null, function* () {
951
+ return a(this, null, function* () {
1024
952
  try {
1025
- return yield ke.getStatus();
953
+ return yield Re.getStatus();
1026
954
  } catch (e) {
1027
955
  throw console.error("cameraScanMultipleNoCountPlugin getStatus error", e), e;
1028
956
  }
1029
957
  });
1030
958
  }
1031
959
  }
1032
- let se = null;
1033
- var hr;
1034
- window.__MICRO_APP_ENVIRONMENT__ && (se = (hr = window.rawWindow.__mini_app_status_hook__) != null ? hr : {});
1035
- const be = w.registerPlugin("CameraScanSingleOrDualPlugin", { web: new class extends y {
960
+ let oe = null;
961
+ var cr;
962
+ window.__MICRO_APP_ENVIRONMENT__ && (oe = (cr = window.rawWindow.__mini_app_status_hook__) != null ? cr : {});
963
+ const ve = d.registerPlugin("CameraScanSingleOrDualPlugin", { web: new class extends y {
1036
964
  pickCameraScanSingleOrDual() {
1037
- return o(this, null, function* () {
965
+ return a(this, null, function* () {
1038
966
  });
1039
967
  }
1040
968
  setCameraScanSingleOrDualState() {
1041
- return o(this, null, function* () {
969
+ return a(this, null, function* () {
1042
970
  });
1043
971
  }
1044
972
  getStatus() {
1045
973
  try {
1046
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
974
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1047
975
  var e, r;
1048
- t((yield (r = (e = se == null ? void 0 : se.cameraScanSingleOrDual) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
976
+ t((yield (r = (e = oe == null ? void 0 : oe.cameraScanSingleOrDual) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1049
977
  })) : new Promise((t) => {
1050
978
  t(null);
1051
979
  });
@@ -1054,57 +982,57 @@ const be = w.registerPlugin("CameraScanSingleOrDualPlugin", { web: new class ext
1054
982
  }
1055
983
  }
1056
984
  }() });
1057
- class rt {
985
+ class Qr {
1058
986
  pickCameraScanSingleOrDual(e) {
1059
- return o(this, null, function* () {
987
+ return a(this, null, function* () {
1060
988
  try {
1061
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanSingleOrDual(e) : yield be.pickCameraScanSingleOrDual(e);
989
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraScanSingleOrDual(e) : yield ve.pickCameraScanSingleOrDual(e);
1062
990
  } catch (r) {
1063
991
  throw console.error("pickCameraScanSingleOrDual error", r), r;
1064
992
  }
1065
993
  });
1066
994
  }
1067
995
  setCameraScanSingleOrDualState(e) {
1068
- return o(this, null, function* () {
996
+ return a(this, null, function* () {
1069
997
  try {
1070
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.setCameraScanSingleOrDualState(e) : yield be.setCameraScanSingleOrDualState(e);
998
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.setCameraScanSingleOrDualState(e) : yield ve.setCameraScanSingleOrDualState(e);
1071
999
  } catch (r) {
1072
1000
  throw console.error("setCameraScanSingleOrDualState error", r), r;
1073
1001
  }
1074
1002
  });
1075
1003
  }
1076
1004
  getStatus() {
1077
- return o(this, null, function* () {
1005
+ return a(this, null, function* () {
1078
1006
  try {
1079
- return yield be.getStatus();
1007
+ return yield ve.getStatus();
1080
1008
  } catch (e) {
1081
1009
  throw console.error("cameraScanSingleOrDualPlugin getStatus error", e), e;
1082
1010
  }
1083
1011
  });
1084
1012
  }
1085
1013
  }
1086
- const vr = "LaserScanPlugin";
1087
- let ce = null;
1088
- var pr;
1089
- window.__MICRO_APP_ENVIRONMENT__ && (ce = (pr = window.rawWindow.__mini_app_status_hook__) != null ? pr : {});
1090
- const X = w.registerPlugin(vr, { web: new class extends y {
1014
+ const Mr = "LaserScanPlugin";
1015
+ let ae = null;
1016
+ var lr;
1017
+ window.__MICRO_APP_ENVIRONMENT__ && (ae = (lr = window.rawWindow.__mini_app_status_hook__) != null ? lr : {});
1018
+ const Q = d.registerPlugin(Mr, { web: new class extends y {
1091
1019
  pickLaserScan() {
1092
- return o(this, null, function* () {
1020
+ return a(this, null, function* () {
1093
1021
  });
1094
1022
  }
1095
1023
  unPickLaserScan() {
1096
- return o(this, null, function* () {
1024
+ return a(this, null, function* () {
1097
1025
  });
1098
1026
  }
1099
1027
  setLaserState() {
1100
- return o(this, null, function* () {
1028
+ return a(this, null, function* () {
1101
1029
  });
1102
1030
  }
1103
1031
  getStatus() {
1104
1032
  try {
1105
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1033
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1106
1034
  var e, r;
1107
- t((yield (r = (e = ce == null ? void 0 : ce.laserScan) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1035
+ t((yield (r = (e = ae == null ? void 0 : ae.laserScan) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1108
1036
  })) : new Promise((t) => {
1109
1037
  t(null);
1110
1038
  });
@@ -1112,20 +1040,20 @@ const X = w.registerPlugin(vr, { web: new class extends y {
1112
1040
  throw console.error("laserScan getStatus error", t), t;
1113
1041
  }
1114
1042
  }
1115
- }() }), le = M();
1116
- le.removeAddListenerLaserScan = () => null;
1117
- const tr = (t = () => null) => {
1043
+ }() }), ie = f();
1044
+ ie.removeAddListenerLaserScan = () => null;
1045
+ const Qe = (t = () => null) => {
1118
1046
  try {
1119
- le.removeAddListenerLaserScan && le.removeAddListenerLaserScan();
1120
- const e = (r) => o(void 0, null, function* () {
1121
- r && (le.removeAddListenerLaserScan = yield ((n) => o(void 0, null, function* () {
1047
+ ie.removeAddListenerLaserScan && ie.removeAddListenerLaserScan();
1048
+ const e = (r) => a(void 0, null, function* () {
1049
+ r && (ie.removeAddListenerLaserScan = yield ((n) => a(void 0, null, function* () {
1122
1050
  try {
1123
- if (w.addListener) {
1124
- const a = yield w.addListener(vr, "nativeSendLaser", (i) => n && n(i));
1125
- return a != null && a.remove ? a.remove : () => null;
1051
+ if (d.addListener) {
1052
+ const o = yield d.addListener(Mr, "nativeSendLaser", (i) => n && n(i));
1053
+ return o != null && o.remove ? o.remove : () => null;
1126
1054
  }
1127
- } catch (a) {
1128
- throw console.error("addListenerLaserHandle error", a), a;
1055
+ } catch (o) {
1056
+ throw console.error("addListenerLaserHandle error", o), o;
1129
1057
  }
1130
1058
  }))(r));
1131
1059
  });
@@ -1136,23 +1064,23 @@ const tr = (t = () => null) => {
1136
1064
  throw console.error("laserScanFn error", e), e;
1137
1065
  }
1138
1066
  };
1139
- class tt {
1067
+ class Xr {
1140
1068
  constructor() {
1141
1069
  this.pickLaserScan();
1142
1070
  }
1143
1071
  pickLaserScan() {
1144
- return o(this, null, function* () {
1072
+ return a(this, null, function* () {
1145
1073
  try {
1146
- return yield X.pickLaserScan({ isContinue: !1 });
1074
+ return yield Q.pickLaserScan({ isContinue: !1 });
1147
1075
  } catch (e) {
1148
1076
  throw console.error("pickLaserScan error", e), e;
1149
1077
  }
1150
1078
  });
1151
1079
  }
1152
1080
  unPickLaserScan() {
1153
- return o(this, null, function* () {
1081
+ return a(this, null, function* () {
1154
1082
  try {
1155
- return yield X.unPickLaserScan();
1083
+ return yield Q.unPickLaserScan();
1156
1084
  } catch (e) {
1157
1085
  throw console.error("unPickLaserScan error", e), e;
1158
1086
  }
@@ -1160,7 +1088,7 @@ class tt {
1160
1088
  }
1161
1089
  setLaserState(e) {
1162
1090
  try {
1163
- X.setLaserState(e);
1091
+ Q.setLaserState(e);
1164
1092
  } catch (r) {
1165
1093
  throw console.error("setLaserState error", r), r;
1166
1094
  }
@@ -1168,11 +1096,11 @@ class tt {
1168
1096
  setLaserScan(e) {
1169
1097
  ((r) => {
1170
1098
  try {
1171
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
1099
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
1172
1100
  n(() => {
1173
- tr(i);
1174
- }), a(() => {
1175
- tr();
1101
+ Qe(i);
1102
+ }), o(() => {
1103
+ Qe();
1176
1104
  });
1177
1105
  } catch (n) {
1178
1106
  throw console.error("laserScanApiParams error", n), n;
@@ -1180,22 +1108,22 @@ class tt {
1180
1108
  })(e);
1181
1109
  }
1182
1110
  getStatus() {
1183
- return o(this, null, function* () {
1111
+ return a(this, null, function* () {
1184
1112
  try {
1185
- return yield X.getStatus();
1113
+ return yield Q.getStatus();
1186
1114
  } catch (e) {
1187
1115
  throw console.error("getStatus error", e), e;
1188
1116
  }
1189
1117
  });
1190
1118
  }
1191
1119
  }
1192
- const Er = "CountAssistPlugin";
1193
- let we = null;
1194
- var mr;
1195
- window.__MICRO_APP_ENVIRONMENT__ && (we = (mr = window.rawWindow.__mini_app_status_hook__) != null ? mr : {});
1196
- const ee = w.registerPlugin(Er, { web: new class extends y {
1120
+ const fr = "CountAssistPlugin";
1121
+ let se = null;
1122
+ var wr;
1123
+ window.__MICRO_APP_ENVIRONMENT__ && (se = (wr = window.rawWindow.__mini_app_status_hook__) != null ? wr : {});
1124
+ const X = d.registerPlugin(fr, { web: new class extends y {
1197
1125
  setCountAssistState(t) {
1198
- return o(this, null, function* () {
1126
+ return a(this, null, function* () {
1199
1127
  try {
1200
1128
  return new Promise((e) => {
1201
1129
  e(t);
@@ -1206,7 +1134,7 @@ const ee = w.registerPlugin(Er, { web: new class extends y {
1206
1134
  });
1207
1135
  }
1208
1136
  toggleCountAssist(t) {
1209
- return o(this, null, function* () {
1137
+ return a(this, null, function* () {
1210
1138
  try {
1211
1139
  return new Promise((e) => {
1212
1140
  e(t);
@@ -1217,7 +1145,7 @@ const ee = w.registerPlugin(Er, { web: new class extends y {
1217
1145
  });
1218
1146
  }
1219
1147
  getCountAssistToggleState() {
1220
- return o(this, null, function* () {
1148
+ return a(this, null, function* () {
1221
1149
  try {
1222
1150
  return new Promise((t) => {
1223
1151
  t(void 0);
@@ -1229,9 +1157,9 @@ const ee = w.registerPlugin(Er, { web: new class extends y {
1229
1157
  }
1230
1158
  getStatus() {
1231
1159
  try {
1232
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1160
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1233
1161
  var e, r;
1234
- t((yield (r = (e = we == null ? void 0 : we.countAssist) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1162
+ t((yield (r = (e = se == null ? void 0 : se.countAssist) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1235
1163
  })) : new Promise((t) => {
1236
1164
  t(null);
1237
1165
  });
@@ -1239,14 +1167,14 @@ const ee = w.registerPlugin(Er, { web: new class extends y {
1239
1167
  throw console.error("countAssist getStatus error", t), t;
1240
1168
  }
1241
1169
  }
1242
- }() }), x = M();
1243
- x.addListenerCountAssistRemoveHandle = () => null;
1244
- const nr = (t = () => null) => o(void 0, null, function* () {
1170
+ }() }), U = f();
1171
+ U.addListenerCountAssistRemoveHandle = () => null;
1172
+ const Xe = (t = () => null) => a(void 0, null, function* () {
1245
1173
  try {
1246
- x != null && x.addListenerCountAssistRemoveHandle && typeof x.addListenerCountAssistRemoveHandle == "function" && x.addListenerCountAssistRemoveHandle(), x.addListenerCountAssistRemoveHandle = yield ((e) => o(void 0, null, function* () {
1174
+ U != null && U.addListenerCountAssistRemoveHandle && typeof U.addListenerCountAssistRemoveHandle == "function" && U.addListenerCountAssistRemoveHandle(), U.addListenerCountAssistRemoveHandle = yield ((e) => a(void 0, null, function* () {
1247
1175
  try {
1248
- if (w.addListener) {
1249
- const r = yield w.addListener(Er, "nativeSendCountAssist", (n) => e && e(n));
1176
+ if (d.addListener) {
1177
+ const r = yield d.addListener(fr, "nativeSendCountAssist", (n) => e && e(n));
1250
1178
  return r != null && r.remove ? r.remove : () => null;
1251
1179
  }
1252
1180
  } catch (r) {
@@ -1257,18 +1185,18 @@ const nr = (t = () => null) => o(void 0, null, function* () {
1257
1185
  throw console.error("initCountAssistFn error", e), e;
1258
1186
  }
1259
1187
  });
1260
- class nt {
1188
+ class Yr {
1261
1189
  setCountAssistState(e) {
1262
- return o(this, null, function* () {
1263
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.setCountAssistState(e) : yield ee.setCountAssistState(e);
1190
+ return a(this, null, function* () {
1191
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.setCountAssistState(e) : yield X.setCountAssistState(e);
1264
1192
  });
1265
1193
  }
1266
1194
  getCountAssistState(e) {
1267
1195
  return ((r) => {
1268
1196
  try {
1269
1197
  let n = r != null ? r : !1;
1270
- return re((a) => {
1271
- n = !!(a != null && a.countAssistState);
1198
+ return Y((o) => {
1199
+ n = !!(o != null && o.countAssistState);
1272
1200
  }), n;
1273
1201
  } catch (n) {
1274
1202
  throw console.error("getCountAssistStateHandle error", n), n;
@@ -1278,11 +1206,11 @@ class nt {
1278
1206
  setCountAssistBtn(e) {
1279
1207
  ((r) => {
1280
1208
  try {
1281
- const { mounted: n, beforeUnmount: a, callBack: i } = r;
1209
+ const { mounted: n, beforeUnmount: o, callBack: i } = r;
1282
1210
  n(() => {
1283
- nr(i);
1284
- }), a(() => {
1285
- nr();
1211
+ Xe(i);
1212
+ }), o(() => {
1213
+ Xe();
1286
1214
  });
1287
1215
  } catch (n) {
1288
1216
  throw console.error("setCountAssistBtnHandle error", n), n;
@@ -1290,38 +1218,38 @@ class nt {
1290
1218
  })(e);
1291
1219
  }
1292
1220
  toggleCountAssist(e) {
1293
- return o(this, null, function* () {
1294
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.toggleCountAssist(e) : yield ee.toggleCountAssist(e);
1221
+ return a(this, null, function* () {
1222
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.toggleCountAssist(e) : yield X.toggleCountAssist(e);
1295
1223
  });
1296
1224
  }
1297
1225
  getCountAssistToggleState() {
1298
- return o(this, null, function* () {
1299
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.getCountAssistToggleState() : yield ee.getCountAssistToggleState();
1226
+ return a(this, null, function* () {
1227
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.getCountAssistToggleState() : yield X.getCountAssistToggleState();
1300
1228
  });
1301
1229
  }
1302
1230
  getStatus() {
1303
- return o(this, null, function* () {
1231
+ return a(this, null, function* () {
1304
1232
  try {
1305
- return yield ee.getStatus();
1233
+ return yield X.getStatus();
1306
1234
  } catch (e) {
1307
1235
  throw console.error("countAssistPlugin getStatus error", e), e;
1308
1236
  }
1309
1237
  });
1310
1238
  }
1311
1239
  }
1312
- let de = null;
1313
- var gr;
1314
- window.__MICRO_APP_ENVIRONMENT__ && (de = (gr = window.rawWindow.__mini_app_status_hook__) != null ? gr : {});
1315
- const Te = w.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1240
+ let ce = null;
1241
+ var dr;
1242
+ window.__MICRO_APP_ENVIRONMENT__ && (ce = (dr = window.rawWindow.__mini_app_status_hook__) != null ? dr : {});
1243
+ const ke = d.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1316
1244
  init() {
1317
- return o(this, null, function* () {
1245
+ return a(this, null, function* () {
1318
1246
  return new Promise((t) => {
1319
1247
  t(null);
1320
1248
  });
1321
1249
  });
1322
1250
  }
1323
1251
  trace(t) {
1324
- return o(this, null, function* () {
1252
+ return a(this, null, function* () {
1325
1253
  var e, r;
1326
1254
  try {
1327
1255
  return window.__MICRO_APP_ENVIRONMENT__ && ((r = (e = window.rawWindow.__mini_app_hook__).clickStream) == null || r.call(e, t.data)), new Promise((n) => {
@@ -1334,9 +1262,9 @@ const Te = w.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1334
1262
  }
1335
1263
  getStatus() {
1336
1264
  try {
1337
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1265
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1338
1266
  var e, r;
1339
- t((yield (r = (e = de == null ? void 0 : de.clickStream) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1267
+ t((yield (r = (e = ce == null ? void 0 : ce.clickStream) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1340
1268
  })) : new Promise((t) => {
1341
1269
  t(null);
1342
1270
  });
@@ -1345,57 +1273,57 @@ const Te = w.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1345
1273
  }
1346
1274
  }
1347
1275
  }() });
1348
- class ot {
1276
+ class Zr {
1349
1277
  constructor() {
1350
1278
  this.init();
1351
1279
  }
1352
1280
  init() {
1353
- return o(this, null, function* () {
1281
+ return a(this, null, function* () {
1354
1282
  try {
1355
- return yield Te.init();
1283
+ return yield ke.init();
1356
1284
  } catch (e) {
1357
1285
  throw console.error("clickStreamPlugin, init error", e), e;
1358
1286
  }
1359
1287
  });
1360
1288
  }
1361
1289
  trace(e) {
1362
- return o(this, null, function* () {
1290
+ return a(this, null, function* () {
1363
1291
  try {
1364
- return yield Te.trace(e);
1292
+ return yield ke.trace(e);
1365
1293
  } catch (r) {
1366
1294
  throw console.error("clickStreamPlugin, trace error", r), r;
1367
1295
  }
1368
1296
  });
1369
1297
  }
1370
1298
  getStatus() {
1371
- return o(this, null, function* () {
1299
+ return a(this, null, function* () {
1372
1300
  try {
1373
- return yield Te.getStatus();
1301
+ return yield ke.getStatus();
1374
1302
  } catch (e) {
1375
1303
  throw console.error("clickStreamPlugin getStatus error", e), e;
1376
1304
  }
1377
1305
  });
1378
1306
  }
1379
1307
  }
1380
- const Rr = "MiniAppLifecyclePlugin";
1381
- let ue = null;
1382
- var Pr;
1383
- window.__MICRO_APP_ENVIRONMENT__ && (ue = (Pr = window.rawWindow.__mini_app_status_hook__) != null ? Pr : {});
1384
- var J = ((t) => (t.MINI_APP_BEFORE_UNMOUNT_PERMISSION = "mini_app_before_unmount_permission", t.MINI_APP_BEFORE_UNMOUNT_COMPLETION = "mini_app_before_unmount_completion", t))(J || {});
1385
- const Ve = w.registerPlugin(Rr, { web: new class extends y {
1308
+ const Ir = "MiniAppLifecyclePlugin";
1309
+ let le = null;
1310
+ var ur;
1311
+ window.__MICRO_APP_ENVIRONMENT__ && (le = (ur = window.rawWindow.__mini_app_status_hook__) != null ? ur : {});
1312
+ var z = ((t) => (t.MINI_APP_BEFORE_UNMOUNT_PERMISSION = "mini_app_before_unmount_permission", t.MINI_APP_BEFORE_UNMOUNT_COMPLETION = "mini_app_before_unmount_completion", t))(z || {});
1313
+ const Le = d.registerPlugin(Ir, { web: new class extends y {
1386
1314
  setNativeUsagePermission() {
1387
- return o(this, null, function* () {
1315
+ return a(this, null, function* () {
1388
1316
  });
1389
1317
  }
1390
1318
  authorizeWebCallback() {
1391
- return o(this, null, function* () {
1319
+ return a(this, null, function* () {
1392
1320
  });
1393
1321
  }
1394
1322
  getStatus() {
1395
1323
  try {
1396
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1324
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1397
1325
  var e, r;
1398
- t((yield (r = (e = ue == null ? void 0 : ue.lifecycle) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1326
+ t((yield (r = (e = le == null ? void 0 : le.lifecycle) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1399
1327
  })) : new Promise((t) => {
1400
1328
  t(null);
1401
1329
  });
@@ -1403,62 +1331,62 @@ const Ve = w.registerPlugin(Rr, { web: new class extends y {
1403
1331
  throw console.error("lifecycle getStatus error", t), t;
1404
1332
  }
1405
1333
  }
1406
- }() }), _e = M();
1407
- _e.removeAddListenerLifecycleMiniAppBeforeUnmount = () => null;
1408
- const or = (t = () => null) => {
1334
+ }() }), we = f();
1335
+ we.removeAddListenerLifecycleMiniAppBeforeUnmount = () => null;
1336
+ const Ye = (t = () => null) => {
1409
1337
  try {
1410
- _e.removeAddListenerLifecycleMiniAppBeforeUnmount && _e.removeAddListenerLifecycleMiniAppBeforeUnmount();
1411
- const e = (r) => o(void 0, null, function* () {
1412
- r && (_e.removeAddListenerLifecycleMiniAppBeforeUnmount = yield ((n) => o(void 0, null, function* () {
1338
+ we.removeAddListenerLifecycleMiniAppBeforeUnmount && we.removeAddListenerLifecycleMiniAppBeforeUnmount();
1339
+ const e = (r) => a(void 0, null, function* () {
1340
+ r && (we.removeAddListenerLifecycleMiniAppBeforeUnmount = yield ((n) => a(void 0, null, function* () {
1413
1341
  try {
1414
- if (w.addListener) {
1415
- const a = yield w.addListener(Rr, "miniAppBeforeUnmount", (i) => n && n(i));
1416
- return a != null && a.remove ? a.remove : () => null;
1342
+ if (d.addListener) {
1343
+ const o = yield d.addListener(Ir, "miniAppBeforeUnmount", (i) => n && n(i));
1344
+ return o != null && o.remove ? o.remove : () => null;
1417
1345
  }
1418
- } catch (a) {
1419
- throw console.error("miniAppBeforeUnmountHandle error", a), a;
1346
+ } catch (o) {
1347
+ throw console.error("miniAppBeforeUnmountHandle error", o), o;
1420
1348
  }
1421
1349
  }))(r));
1422
1350
  });
1423
- setTimeout(() => o(void 0, null, function* () {
1351
+ setTimeout(() => a(void 0, null, function* () {
1424
1352
  yield e(t);
1425
1353
  }));
1426
1354
  } catch (e) {
1427
1355
  throw console.error("laserScanFn error", e), e;
1428
1356
  }
1429
1357
  };
1430
- class at {
1358
+ class et {
1431
1359
  constructor() {
1432
1360
  }
1433
1361
  setNativeUsagePermission(e) {
1434
- return o(this, null, function* () {
1362
+ return a(this, null, function* () {
1435
1363
  try {
1436
- return yield Ve.setNativeUsagePermission(e);
1364
+ return yield Le.setNativeUsagePermission(e);
1437
1365
  } catch (r) {
1438
1366
  throw console.error("lifecyclePlugin.setNativeUsagePermission error", r), r;
1439
1367
  }
1440
1368
  });
1441
1369
  }
1442
1370
  authorizeWebCallback(e) {
1443
- return o(this, null, function* () {
1371
+ return a(this, null, function* () {
1444
1372
  try {
1445
- return yield Ve.authorizeWebCallback(e);
1373
+ return yield Le.authorizeWebCallback(e);
1446
1374
  } catch (r) {
1447
1375
  throw console.error("lifecyclePlugin.authorizeWebCallback error", r), r;
1448
1376
  }
1449
1377
  });
1450
1378
  }
1451
1379
  miniAppBeforeUnmount(e) {
1452
- this.setNativeUsagePermission({ action: J.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !0 }), ((r, n) => {
1380
+ this.setNativeUsagePermission({ action: z.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !0 }), ((r, n) => {
1453
1381
  try {
1454
- const { mounted: a, beforeUnmount: i, callBack: c } = r;
1455
- a(() => {
1456
- or((s) => o(this, null, function* () {
1382
+ const { mounted: o, beforeUnmount: i, callBack: c } = r;
1383
+ o(() => {
1384
+ Ye((s) => a(this, null, function* () {
1457
1385
  var l;
1458
1386
  if (c && c instanceof Function)
1459
1387
  try {
1460
- (l = c(s)) == null || l.then(() => o(this, null, function* () {
1461
- yield n.setNativeUsagePermission({ action: J.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 }), yield n.authorizeWebCallback({ action: J.MINI_APP_BEFORE_UNMOUNT_COMPLETION });
1388
+ (l = c(s)) == null || l.then(() => a(this, null, function* () {
1389
+ yield n.setNativeUsagePermission({ action: z.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 }), yield n.authorizeWebCallback({ action: z.MINI_APP_BEFORE_UNMOUNT_COMPLETION });
1462
1390
  }));
1463
1391
  } catch (u) {
1464
1392
  console.error("miniAppBeforeUnmount error callBack is not a function or promise");
@@ -1466,41 +1394,41 @@ class at {
1466
1394
  else
1467
1395
  console.error("miniAppBeforeUnmount error callBack is not a function or promise");
1468
1396
  }));
1469
- }), i(() => o(this, null, function* () {
1470
- or(), n.setNativeUsagePermission({ action: J.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 });
1397
+ }), i(() => a(this, null, function* () {
1398
+ Ye(), n.setNativeUsagePermission({ action: z.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 });
1471
1399
  }));
1472
- } catch (a) {
1473
- throw console.error("miniAppBeforeUnmount error", a), a;
1400
+ } catch (o) {
1401
+ throw console.error("miniAppBeforeUnmount error", o), o;
1474
1402
  }
1475
1403
  })(e, this);
1476
1404
  }
1477
1405
  getStatus() {
1478
- return o(this, null, function* () {
1406
+ return a(this, null, function* () {
1479
1407
  try {
1480
- return yield Ve.getStatus();
1408
+ return yield Le.getStatus();
1481
1409
  } catch (e) {
1482
1410
  throw console.error("getStatus error", e), e;
1483
1411
  }
1484
1412
  });
1485
1413
  }
1486
1414
  }
1487
- let he = null;
1488
- var yr;
1489
- window.__MICRO_APP_ENVIRONMENT__ && (he = (yr = window.rawWindow.__mini_app_status_hook__) != null ? yr : {});
1490
- const Be = w.registerPlugin("DeviceInteractionPlugin", { web: new class extends y {
1415
+ let de = null;
1416
+ var _r;
1417
+ window.__MICRO_APP_ENVIRONMENT__ && (de = (_r = window.rawWindow.__mini_app_status_hook__) != null ? _r : {});
1418
+ const be = d.registerPlugin("DeviceInteractionPlugin", { web: new class extends y {
1491
1419
  callVibrate() {
1492
- return o(this, null, function* () {
1420
+ return a(this, null, function* () {
1493
1421
  });
1494
1422
  }
1495
1423
  callErrorBeep() {
1496
- return o(this, null, function* () {
1424
+ return a(this, null, function* () {
1497
1425
  });
1498
1426
  }
1499
1427
  getStatus() {
1500
1428
  try {
1501
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1429
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1502
1430
  var e, r;
1503
- t((yield (r = (e = he == null ? void 0 : he.deviceInteraction) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1431
+ t((yield (r = (e = de == null ? void 0 : de.deviceInteraction) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1504
1432
  })) : new Promise((t) => {
1505
1433
  t(null);
1506
1434
  });
@@ -1509,53 +1437,53 @@ const Be = w.registerPlugin("DeviceInteractionPlugin", { web: new class extends
1509
1437
  }
1510
1438
  }
1511
1439
  }() });
1512
- class it {
1440
+ class rt {
1513
1441
  callVibrate() {
1514
- return o(this, null, function* () {
1442
+ return a(this, null, function* () {
1515
1443
  try {
1516
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.callVibrate() : yield Be.callVibrate();
1444
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.callVibrate() : yield be.callVibrate();
1517
1445
  } catch (e) {
1518
1446
  throw console.error("callVibrate error", e), e;
1519
1447
  }
1520
1448
  });
1521
1449
  }
1522
1450
  callErrorBeep() {
1523
- return o(this, null, function* () {
1451
+ return a(this, null, function* () {
1524
1452
  try {
1525
- return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.callErrorBeep() : yield Be.callErrorBeep();
1453
+ return window.__MICRO_APP_ENVIRONMENT__ ? yield window.rawWindow.__mini_app_hook__.callErrorBeep() : yield be.callErrorBeep();
1526
1454
  } catch (e) {
1527
1455
  throw console.error("callErrorBeep error", e), e;
1528
1456
  }
1529
1457
  });
1530
1458
  }
1531
1459
  getStatus() {
1532
- return o(this, null, function* () {
1460
+ return a(this, null, function* () {
1533
1461
  try {
1534
- return yield Be.getStatus();
1462
+ return yield be.getStatus();
1535
1463
  } catch (e) {
1536
1464
  throw console.error("deviceInteractionPlugin getStatus error", e), e;
1537
1465
  }
1538
1466
  });
1539
1467
  }
1540
1468
  }
1541
- const Lr = "PollingPlugin";
1542
- let pe = null;
1543
- var Sr;
1544
- window.__MICRO_APP_ENVIRONMENT__ && (pe = (Sr = window.rawWindow.__mini_app_status_hook__) != null ? Sr : {});
1545
- const He = w.registerPlugin(Lr, { web: new class extends y {
1469
+ const Or = "PollingPlugin";
1470
+ let ue = null;
1471
+ var pr;
1472
+ window.__MICRO_APP_ENVIRONMENT__ && (ue = (pr = window.rawWindow.__mini_app_status_hook__) != null ? pr : {});
1473
+ const Te = d.registerPlugin(Or, { web: new class extends y {
1546
1474
  create() {
1547
- return o(this, null, function* () {
1475
+ return a(this, null, function* () {
1548
1476
  });
1549
1477
  }
1550
1478
  destroy() {
1551
- return o(this, null, function* () {
1479
+ return a(this, null, function* () {
1552
1480
  });
1553
1481
  }
1554
1482
  getStatus() {
1555
1483
  try {
1556
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1484
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1557
1485
  var e, r;
1558
- t((yield (r = (e = pe == null ? void 0 : pe.polling) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1486
+ t((yield (r = (e = ue == null ? void 0 : ue.polling) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1559
1487
  })) : new Promise((t) => {
1560
1488
  t(null);
1561
1489
  });
@@ -1563,17 +1491,17 @@ const He = w.registerPlugin(Lr, { web: new class extends y {
1563
1491
  throw console.error("polling getStatus error", t), t;
1564
1492
  }
1565
1493
  }
1566
- }() }), me = M();
1567
- me.removeAddListenerPolling = () => null;
1568
- const st = (t, e) => {
1494
+ }() }), _e = f();
1495
+ _e.removeAddListenerPolling = () => null;
1496
+ const tt = (t, e) => {
1569
1497
  try {
1570
- me.removeAddListenerPolling && me.removeAddListenerPolling();
1498
+ _e.removeAddListenerPolling && _e.removeAddListenerPolling();
1571
1499
  const r = e.pollingId;
1572
- ((n) => o(void 0, null, function* () {
1573
- return n && (me.removeAddListenerPolling = yield ((a) => o(void 0, null, function* () {
1500
+ ((n) => a(void 0, null, function* () {
1501
+ return n && (_e.removeAddListenerPolling = yield ((o) => a(void 0, null, function* () {
1574
1502
  try {
1575
- if (w.addListener) {
1576
- const i = yield w.addListener(Lr, "nativeSendPolling", (c) => a && a(c));
1503
+ if (d.addListener) {
1504
+ const i = yield d.addListener(Or, "nativeSendPolling", (c) => o && o(c));
1577
1505
  return i != null && i.remove ? i.remove : () => null;
1578
1506
  }
1579
1507
  } catch (i) {
@@ -1581,21 +1509,21 @@ const st = (t, e) => {
1581
1509
  }
1582
1510
  }))(n));
1583
1511
  }))((n) => {
1584
- (n == null ? void 0 : n.pollingId) === r && (n != null && n.pollingId) && t.pollingList.forEach((a) => {
1585
- a != null && a.pollingId && (n == null ? void 0 : n.pollingId) === (a == null ? void 0 : a.pollingId) && typeof (a == null ? void 0 : a.callBack) == "function" && a.callBack(n);
1512
+ (n == null ? void 0 : n.pollingId) === r && (n != null && n.pollingId) && t.pollingList.forEach((o) => {
1513
+ o != null && o.pollingId && (n == null ? void 0 : n.pollingId) === (o == null ? void 0 : o.pollingId) && typeof (o == null ? void 0 : o.callBack) == "function" && o.callBack(n);
1586
1514
  });
1587
1515
  });
1588
1516
  } catch (r) {
1589
1517
  throw console.error("pollingFn error", r), r;
1590
1518
  }
1591
1519
  };
1592
- class ct {
1520
+ class nt {
1593
1521
  constructor() {
1594
1522
  P(this, "pollingList");
1595
1523
  this.pollingList = [];
1596
1524
  }
1597
1525
  create(e) {
1598
- var r, n, a;
1526
+ var r, n, o;
1599
1527
  if (window.__MICRO_APP_ENVIRONMENT__) {
1600
1528
  const { mounted: i, pollingParams: c, callBack: s } = e;
1601
1529
  return i(() => {
@@ -1607,11 +1535,11 @@ class ct {
1607
1535
  }
1608
1536
  try {
1609
1537
  (r = e == null ? void 0 : e.pollingParams) != null && r.pollingId && this.pollingList.push({ pollingId: (n = e == null ? void 0 : e.pollingParams) == null ? void 0 : n.pollingId, callBack: e == null ? void 0 : e.callBack }), this.pollingList = this.pollingList.filter((c, s, l) => s === l.findIndex((u) => u.pollingId === c.pollingId));
1610
- const i = ((a = e == null ? void 0 : e.pollingParams) == null ? void 0 : a.delay) / 1e3;
1611
- return He.create(b(k({}, e == null ? void 0 : e.pollingParams), { delay: i })), ((c, s) => {
1538
+ const i = ((o = e == null ? void 0 : e.pollingParams) == null ? void 0 : o.delay) / 1e3;
1539
+ return Te.create(L(k({}, e == null ? void 0 : e.pollingParams), { delay: i })), ((c, s) => {
1612
1540
  try {
1613
1541
  const { mounted: l, pollingParams: u } = c;
1614
- l(() => st(s, u));
1542
+ l(() => tt(s, u));
1615
1543
  } catch (l) {
1616
1544
  throw console.error("createPolling error", l), l;
1617
1545
  }
@@ -1624,34 +1552,34 @@ class ct {
1624
1552
  }
1625
1553
  }
1626
1554
  destroy(e) {
1627
- var r, n, a;
1555
+ var r, n, o;
1628
1556
  if (window.__MICRO_APP_ENVIRONMENT__) {
1629
1557
  const { pollingId: i } = e;
1630
1558
  (n = (r = window.rawWindow.__mini_app_hook__) == null ? void 0 : r.deletePolling) == null || n.call(r, i);
1631
1559
  } else
1632
1560
  try {
1633
1561
  const i = this.pollingList.map((c) => c.pollingId).indexOf(e.pollingId);
1634
- return (a = this.pollingList) != null && a.length && (Number(i) || Number(i) >= 0) && this.pollingList.splice(Number(i), 1), He.destroy(e);
1562
+ return (o = this.pollingList) != null && o.length && (Number(i) || Number(i) >= 0) && this.pollingList.splice(Number(i), 1), Te.destroy(e);
1635
1563
  } catch (i) {
1636
1564
  throw console.error("pollingPlugin destroy error", i), i;
1637
1565
  }
1638
1566
  }
1639
1567
  getStatus() {
1640
- return o(this, null, function* () {
1568
+ return a(this, null, function* () {
1641
1569
  try {
1642
- return yield He.getStatus();
1570
+ return yield Te.getStatus();
1643
1571
  } catch (e) {
1644
1572
  throw console.error("getStatus error", e), e;
1645
1573
  }
1646
1574
  });
1647
1575
  }
1648
1576
  }
1649
- let ge = null;
1650
- var Nr;
1651
- window.__MICRO_APP_ENVIRONMENT__ && (ge = (Nr = window.rawWindow.__mini_app_status_hook__) != null ? Nr : {});
1652
- const ar = w.registerPlugin("PaymentPlugin", { web: new class extends y {
1577
+ let pe = null;
1578
+ var hr;
1579
+ window.__MICRO_APP_ENVIRONMENT__ && (pe = (hr = window.rawWindow.__mini_app_status_hook__) != null ? hr : {});
1580
+ const Ze = d.registerPlugin("PaymentPlugin", { web: new class extends y {
1653
1581
  process(t) {
1654
- return o(this, null, function* () {
1582
+ return a(this, null, function* () {
1655
1583
  try {
1656
1584
  return new Promise((e) => {
1657
1585
  e(t);
@@ -1663,9 +1591,9 @@ const ar = w.registerPlugin("PaymentPlugin", { web: new class extends y {
1663
1591
  }
1664
1592
  getStatus() {
1665
1593
  try {
1666
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1594
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1667
1595
  var e, r;
1668
- t((yield (r = (e = ge == null ? void 0 : ge.payment) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1596
+ t((yield (r = (e = pe == null ? void 0 : pe.payment) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1669
1597
  })) : new Promise((t) => {
1670
1598
  t(null);
1671
1599
  });
@@ -1674,43 +1602,43 @@ const ar = w.registerPlugin("PaymentPlugin", { web: new class extends y {
1674
1602
  }
1675
1603
  }
1676
1604
  }() });
1677
- class lt {
1605
+ class ot {
1678
1606
  process(e) {
1679
- return o(this, null, function* () {
1607
+ return a(this, null, function* () {
1680
1608
  try {
1681
- return yield ar.process(e);
1609
+ return yield Ze.process(e);
1682
1610
  } catch (r) {
1683
1611
  throw console.error("paymentPlugins.process error", r), r;
1684
1612
  }
1685
1613
  });
1686
1614
  }
1687
1615
  getStatus() {
1688
- return o(this, null, function* () {
1616
+ return a(this, null, function* () {
1689
1617
  try {
1690
- return yield ar.getStatus();
1618
+ return yield Ze.getStatus();
1691
1619
  } catch (e) {
1692
1620
  throw console.error("getStatus error", e), e;
1693
1621
  }
1694
1622
  });
1695
1623
  }
1696
1624
  }
1697
- let Pe = null;
1698
- var Mr;
1699
- window.__MICRO_APP_ENVIRONMENT__ && (Pe = (Mr = window.rawWindow.__mini_app_status_hook__) != null ? Mr : {});
1700
- const Ue = w.registerPlugin("CameraForTakePhotoPlugin", { web: new class extends y {
1625
+ let he = null;
1626
+ var mr;
1627
+ window.__MICRO_APP_ENVIRONMENT__ && (he = (mr = window.rawWindow.__mini_app_status_hook__) != null ? mr : {});
1628
+ const Be = d.registerPlugin("CameraForTakePhotoPlugin", { web: new class extends y {
1701
1629
  pickCameraForTakePhoto() {
1702
- return o(this, null, function* () {
1630
+ return a(this, null, function* () {
1703
1631
  });
1704
1632
  }
1705
1633
  setCameraForTakePhotoState() {
1706
- return o(this, null, function* () {
1634
+ return a(this, null, function* () {
1707
1635
  });
1708
1636
  }
1709
1637
  getStatus() {
1710
1638
  try {
1711
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1639
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1712
1640
  var e, r;
1713
- t((yield (r = (e = Pe == null ? void 0 : Pe.cameraForTakePhoto) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1641
+ t((yield (r = (e = he == null ? void 0 : he.cameraForTakePhoto) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1714
1642
  })) : new Promise((t) => {
1715
1643
  t(null);
1716
1644
  });
@@ -1719,41 +1647,41 @@ const Ue = w.registerPlugin("CameraForTakePhotoPlugin", { web: new class extends
1719
1647
  }
1720
1648
  }
1721
1649
  }() });
1722
- class wt {
1650
+ class at {
1723
1651
  pickCameraForTakePhoto() {
1724
- return o(this, null, function* () {
1652
+ return a(this, null, function* () {
1725
1653
  try {
1726
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraForTakePhoto() : yield Ue.pickCameraForTakePhoto();
1654
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraForTakePhoto() : yield Be.pickCameraForTakePhoto();
1727
1655
  } catch (e) {
1728
1656
  throw console.error("pickCameraForTakePhoto error", e), e;
1729
1657
  }
1730
1658
  });
1731
1659
  }
1732
1660
  setCameraForTakePhotoState(e) {
1733
- return o(this, null, function* () {
1661
+ return a(this, null, function* () {
1734
1662
  try {
1735
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraForTakePhotoState(e) : yield Ue.setCameraForTakePhotoState(e);
1663
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraForTakePhotoState(e) : yield Be.setCameraForTakePhotoState(e);
1736
1664
  } catch (r) {
1737
1665
  throw console.error("setCameraForTakePhotoState error", r), r;
1738
1666
  }
1739
1667
  });
1740
1668
  }
1741
1669
  getStatus() {
1742
- return o(this, null, function* () {
1670
+ return a(this, null, function* () {
1743
1671
  try {
1744
- return yield Ue.getStatus();
1672
+ return yield Be.getStatus();
1745
1673
  } catch (e) {
1746
1674
  throw console.error("cameraForTakePhotoPlugin getStatus error", e), e;
1747
1675
  }
1748
1676
  });
1749
1677
  }
1750
1678
  }
1751
- let ye = null;
1752
- var fr;
1753
- window.__MICRO_APP_ENVIRONMENT__ && (ye = (fr = window.rawWindow.__mini_app_status_hook__) != null ? fr : {});
1754
- const ir = w.registerPlugin("HttpPlugin", { web: new class extends y {
1679
+ let me = null;
1680
+ var gr;
1681
+ window.__MICRO_APP_ENVIRONMENT__ && (me = (gr = window.rawWindow.__mini_app_status_hook__) != null ? gr : {});
1682
+ const er = d.registerPlugin("HttpPlugin", { web: new class extends y {
1755
1683
  request(t) {
1756
- return o(this, null, function* () {
1684
+ return a(this, null, function* () {
1757
1685
  return new Promise((e) => {
1758
1686
  e(t);
1759
1687
  });
@@ -1761,9 +1689,9 @@ const ir = w.registerPlugin("HttpPlugin", { web: new class extends y {
1761
1689
  }
1762
1690
  getStatus() {
1763
1691
  try {
1764
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1692
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1765
1693
  var e, r;
1766
- t((yield (r = (e = ye == null ? void 0 : ye.http) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1694
+ t((yield (r = (e = me == null ? void 0 : me.http) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1767
1695
  })) : new Promise((t) => {
1768
1696
  t(null);
1769
1697
  });
@@ -1772,15 +1700,15 @@ const ir = w.registerPlugin("HttpPlugin", { web: new class extends y {
1772
1700
  }
1773
1701
  }
1774
1702
  }() });
1775
- class dt {
1703
+ class it {
1776
1704
  request(e) {
1777
- return o(this, null, function* () {
1705
+ return a(this, null, function* () {
1778
1706
  try {
1779
1707
  if (window.__MICRO_APP_ENVIRONMENT__)
1780
1708
  return window.rawWindow.__mini_app_hook__.requestHttp(e);
1781
1709
  {
1782
1710
  let r = {};
1783
- return e.url && (r.url = e.url), e.method && (r.method = e.method), e.headers && (r.headers = e.headers), e.params && (r.urlParams = e.params), e.data && (typeof e.data == "string" ? r.bodyData = e.data : r.bodyParams = e.data), e.upload && (r.upload = e.upload), yield ir.request(r);
1711
+ return e.url && (r.url = e.url), e.method && (r.method = e.method), e.headers && (r.headers = e.headers), e.params && (r.urlParams = e.params), e.data && (typeof e.data == "string" ? r.bodyData = e.data : r.bodyParams = e.data), e.upload && (r.upload = e.upload), yield er.request(r);
1784
1712
  }
1785
1713
  } catch (r) {
1786
1714
  throw console.error("HttpPlugin, trace error", r), r;
@@ -1788,50 +1716,50 @@ class dt {
1788
1716
  });
1789
1717
  }
1790
1718
  getStatus() {
1791
- return o(this, null, function* () {
1719
+ return a(this, null, function* () {
1792
1720
  try {
1793
- return yield ir.getStatus();
1721
+ return yield er.getStatus();
1794
1722
  } catch (e) {
1795
1723
  throw console.error("HttpPlugin getStatus error", e), e;
1796
1724
  }
1797
1725
  });
1798
1726
  }
1799
1727
  }
1800
- const S = [];
1728
+ const N = [];
1801
1729
  for (let t = 0; t < 256; ++t)
1802
- S.push((t + 256).toString(16).slice(1));
1803
- const ut = new Uint8Array(16);
1804
- function _t(t, e, r) {
1805
- return e || t || !crypto.randomUUID ? function(n, a, i) {
1730
+ N.push((t + 256).toString(16).slice(1));
1731
+ const st = new Uint8Array(16);
1732
+ function ct(t, e, r) {
1733
+ return e || t || !crypto.randomUUID ? function(n, o, i) {
1806
1734
  var s, l, u;
1807
1735
  n = n || {};
1808
- const c = (u = (l = n.random) != null ? l : (s = n.rng) == null ? void 0 : s.call(n)) != null ? u : crypto.getRandomValues(ut);
1736
+ const c = (u = (l = n.random) != null ? l : (s = n.rng) == null ? void 0 : s.call(n)) != null ? u : crypto.getRandomValues(st);
1809
1737
  if (c.length < 16)
1810
1738
  throw new Error("Random bytes length must be >= 16");
1811
- if (c[6] = 15 & c[6] | 64, c[8] = 63 & c[8] | 128, a) {
1812
- if ((i = i || 0) < 0 || i + 16 > a.length)
1739
+ if (c[6] = 15 & c[6] | 64, c[8] = 63 & c[8] | 128, o) {
1740
+ if ((i = i || 0) < 0 || i + 16 > o.length)
1813
1741
  throw new RangeError(`UUID byte range ${i}:${i + 15} is out of buffer bounds`);
1814
1742
  for (let _ = 0; _ < 16; ++_)
1815
- a[i + _] = c[_];
1816
- return a;
1743
+ o[i + _] = c[_];
1744
+ return o;
1817
1745
  }
1818
- return function(_, p = 0) {
1819
- return (S[_[p + 0]] + S[_[p + 1]] + S[_[p + 2]] + S[_[p + 3]] + "-" + S[_[p + 4]] + S[_[p + 5]] + "-" + S[_[p + 6]] + S[_[p + 7]] + "-" + S[_[p + 8]] + S[_[p + 9]] + "-" + S[_[p + 10]] + S[_[p + 11]] + S[_[p + 12]] + S[_[p + 13]] + S[_[p + 14]] + S[_[p + 15]]).toLowerCase();
1746
+ return function(_, h = 0) {
1747
+ return (N[_[h + 0]] + N[_[h + 1]] + N[_[h + 2]] + N[_[h + 3]] + "-" + N[_[h + 4]] + N[_[h + 5]] + "-" + N[_[h + 6]] + N[_[h + 7]] + "-" + N[_[h + 8]] + N[_[h + 9]] + "-" + N[_[h + 10]] + N[_[h + 11]] + N[_[h + 12]] + N[_[h + 13]] + N[_[h + 14]] + N[_[h + 15]]).toLowerCase();
1820
1748
  }(c);
1821
1749
  }(t, e, r) : crypto.randomUUID();
1822
1750
  }
1823
- const kr = "PrintPlugin";
1824
- let Se = null;
1825
- var Ir;
1826
- window.__MICRO_APP_ENVIRONMENT__ && (Se = (Ir = window.rawWindow.__mini_app_status_hook__) != null ? Ir : {});
1827
- const sr = w.registerPlugin(kr, { web: new class extends y {
1751
+ const Cr = "PrintPlugin";
1752
+ let ge = null;
1753
+ var Pr;
1754
+ window.__MICRO_APP_ENVIRONMENT__ && (ge = (Pr = window.rawWindow.__mini_app_status_hook__) != null ? Pr : {});
1755
+ const rr = d.registerPlugin(Cr, { web: new class extends y {
1828
1756
  print() {
1829
1757
  }
1830
1758
  getStatus() {
1831
1759
  try {
1832
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1760
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1833
1761
  var e, r;
1834
- t((yield (r = (e = Se == null ? void 0 : Se.print) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1762
+ t((yield (r = (e = ge == null ? void 0 : ge.print) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1835
1763
  })) : new Promise((t) => {
1836
1764
  t(null);
1837
1765
  });
@@ -1839,17 +1767,17 @@ const sr = w.registerPlugin(kr, { web: new class extends y {
1839
1767
  throw console.error("print getStatus error", t), t;
1840
1768
  }
1841
1769
  }
1842
- }() }), Q = M();
1843
- Q.removeAddListenerPrintList = {};
1844
- const ht = (t, e) => {
1770
+ }() }), G = f();
1771
+ G.removeAddListenerPrintList = {};
1772
+ const lt = (t, e) => {
1845
1773
  try {
1846
1774
  const r = e.printId;
1847
- Q.removeAddListenerPrintList = b(k({}, Q.removeAddListenerPrintList), { printId: () => {
1848
- } }), ((n) => o(void 0, null, function* () {
1849
- return n && (Q.removeAddListenerPrintList[r] = yield ((a) => o(void 0, null, function* () {
1775
+ G.removeAddListenerPrintList = L(k({}, G.removeAddListenerPrintList), { printId: () => {
1776
+ } }), ((n) => a(void 0, null, function* () {
1777
+ return n && (G.removeAddListenerPrintList[r] = yield ((o) => a(void 0, null, function* () {
1850
1778
  try {
1851
- if (w.addListener) {
1852
- const i = yield w.addListener(kr, "nativeSendPrint", (c) => a && a(c));
1779
+ if (d.addListener) {
1780
+ const i = yield d.addListener(Cr, "nativeSendPrint", (c) => o && o(c));
1853
1781
  return i != null && i.remove ? i.remove : () => null;
1854
1782
  }
1855
1783
  } catch (i) {
@@ -1857,78 +1785,78 @@ const ht = (t, e) => {
1857
1785
  }
1858
1786
  }))(n));
1859
1787
  }))((n) => {
1860
- (n == null ? void 0 : n.printId) === r && (n != null && n.printId) && t.printList.forEach((a) => {
1788
+ (n == null ? void 0 : n.printId) === r && (n != null && n.printId) && t.printList.forEach((o) => {
1861
1789
  var i, c, s;
1862
- a != null && a.printId && (n == null ? void 0 : n.printId) === (a == null ? void 0 : a.printId) && (typeof (a == null ? void 0 : a.callBack) == "function" && a.callBack(n), (s = a.state == 5 || a.state == 6) != null || (c = (i = Q.removeAddListenerPrintList) == null ? void 0 : i[a == null ? void 0 : a.printId]) == null || c.call(i));
1790
+ o != null && o.printId && (n == null ? void 0 : n.printId) === (o == null ? void 0 : o.printId) && (typeof (o == null ? void 0 : o.callBack) == "function" && o.callBack(n), (s = o.state == 5 || o.state == 6) != null || (c = (i = G.removeAddListenerPrintList) == null ? void 0 : i[o == null ? void 0 : o.printId]) == null || c.call(i));
1863
1791
  });
1864
1792
  });
1865
1793
  } catch (r) {
1866
1794
  throw console.error("printFn error", r), r;
1867
1795
  }
1868
1796
  };
1869
- class pt {
1797
+ class wt {
1870
1798
  constructor() {
1871
1799
  P(this, "printList");
1872
1800
  this.printList = [];
1873
1801
  }
1874
1802
  print(e) {
1875
- var n, a, i, c;
1876
- const r = ((a = (n = e == null ? void 0 : e.printParams) == null ? void 0 : n.functionId) != null ? a : "") + _t().replace(/-/g, "");
1803
+ var n, o, i, c;
1804
+ const r = ((o = (n = e == null ? void 0 : e.printParams) == null ? void 0 : n.functionId) != null ? o : "") + ct().replace(/-/g, "");
1877
1805
  if (this.printList.push({ printId: r, callBack: e == null ? void 0 : e.callBack }), this.printList = this.printList.filter((s, l, u) => l === u.findIndex((_) => _.printId === s.printId)), window.__MICRO_APP_ENVIRONMENT__) {
1878
1806
  const { printParams: s, callBack: l } = e;
1879
- return (c = (i = window.rawWindow.__mini_app_hook__) == null ? void 0 : i.print) == null || c.call(i, b(k({}, s), { printId: r }), l), { id: r };
1807
+ return (c = (i = window.rawWindow.__mini_app_hook__) == null ? void 0 : i.print) == null || c.call(i, L(k({}, s), { printId: r }), l), { id: r };
1880
1808
  }
1881
1809
  try {
1882
- return sr.print(b(k({}, e == null ? void 0 : e.printParams), { printId: r })), ((s, l) => {
1810
+ return rr.print(L(k({}, e == null ? void 0 : e.printParams), { printId: r })), ((s, l) => {
1883
1811
  try {
1884
1812
  const { printParams: u } = s;
1885
- ht(l, u);
1813
+ lt(l, u);
1886
1814
  } catch (u) {
1887
1815
  throw console.error("createPrint error", u), u;
1888
1816
  }
1889
- })(b(k({}, e), { printParams: b(k({}, e.printParams), { printId: r }) }), this), { id: r };
1817
+ })(L(k({}, e), { printParams: L(k({}, e.printParams), { printId: r }) }), this), { id: r };
1890
1818
  } catch (s) {
1891
1819
  throw console.error("printPlugin create error", s), s;
1892
1820
  }
1893
1821
  }
1894
1822
  getStatus() {
1895
- return o(this, null, function* () {
1823
+ return a(this, null, function* () {
1896
1824
  try {
1897
- return yield sr.getStatus();
1825
+ return yield rr.getStatus();
1898
1826
  } catch (e) {
1899
1827
  throw console.error("getStatus error", e), e;
1900
1828
  }
1901
1829
  });
1902
1830
  }
1903
1831
  }
1904
- const br = typeof window != "undefined";
1905
- let Ne = null;
1906
- var Or;
1907
- br && window.__MICRO_APP_ENVIRONMENT__ && (Ne = (Or = window.rawWindow.__mini_app_status_hook__) != null ? Or : {});
1908
- const mt = (t) => {
1832
+ const Ar = typeof window != "undefined";
1833
+ let Pe = null;
1834
+ var yr;
1835
+ Ar && window.__MICRO_APP_ENVIRONMENT__ && (Pe = (yr = window.rawWindow.__mini_app_status_hook__) != null ? yr : {});
1836
+ const dt = (t) => {
1909
1837
  var e, r;
1910
1838
  if (!t)
1911
1839
  return "";
1912
1840
  try {
1913
- const n = decodeURIComponent(t).match(/\/([^/?#&=]+)(?=$|[?&#])/g), a = (r = (e = n == null ? void 0 : n.pop()) == null ? void 0 : e.slice(1)) != null ? r : "", i = a.lastIndexOf(".");
1914
- return i <= 0 ? a : a.slice(0, i);
1841
+ const n = decodeURIComponent(t).match(/\/([^/?#&=]+)(?=$|[?&#])/g), o = (r = (e = n == null ? void 0 : n.pop()) == null ? void 0 : e.slice(1)) != null ? r : "", i = o.lastIndexOf(".");
1842
+ return i <= 0 ? o : o.slice(0, i);
1915
1843
  } catch (n) {
1916
1844
  return "";
1917
1845
  }
1918
- }, cr = w.registerPlugin("DownloadFilePlugin", { web: new class extends y {
1846
+ }, tr = d.registerPlugin("DownloadFilePlugin", { web: new class extends y {
1919
1847
  downloadFile(t) {
1920
- return o(this, null, function* () {
1848
+ return a(this, null, function* () {
1921
1849
  return ((e, r, n = "") => ({ success: e, message: r, fileName: n }))(!1, "DownloadFilePlugin should be handled by shell", ((e) => {
1922
1850
  var n;
1923
- return ((n = e == null ? void 0 : e.fileName) == null ? void 0 : n.trim()) || `${mt(e == null ? void 0 : e.url)}_${Date.now()}`;
1851
+ return ((n = e == null ? void 0 : e.fileName) == null ? void 0 : n.trim()) || `${dt(e == null ? void 0 : e.url)}_${Date.now()}`;
1924
1852
  })(t));
1925
1853
  });
1926
1854
  }
1927
1855
  getStatus() {
1928
1856
  try {
1929
- return br && window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
1857
+ return Ar && window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
1930
1858
  var e, r;
1931
- t((yield (r = (e = Ne == null ? void 0 : Ne.downloadFile) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1859
+ t((yield (r = (e = Pe == null ? void 0 : Pe.downloadFile) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
1932
1860
  })) : new Promise((t) => {
1933
1861
  t(null);
1934
1862
  });
@@ -1936,142 +1864,141 @@ const mt = (t) => {
1936
1864
  throw console.error("downloadFile getStatus error", t), t;
1937
1865
  }
1938
1866
  }
1939
- }() }), gt = typeof window != "undefined", Pt = (t) => {
1867
+ }() }), ut = typeof window != "undefined", _t = (t) => {
1940
1868
  var r;
1941
1869
  const e = (r = t == null ? void 0 : t.fileName) == null ? void 0 : r.trim();
1942
1870
  return e || `${((n) => {
1943
- var a, i;
1871
+ var o, i;
1944
1872
  if (!n)
1945
1873
  return "";
1946
1874
  try {
1947
- const c = decodeURIComponent(n).match(/\/([^/?#&=]+)(?=$|[?&#])/g), s = (i = (a = c == null ? void 0 : c.pop()) == null ? void 0 : a.slice(1)) != null ? i : "", l = s.lastIndexOf(".");
1875
+ const c = decodeURIComponent(n).match(/\/([^/?#&=]+)(?=$|[?&#])/g), s = (i = (o = c == null ? void 0 : c.pop()) == null ? void 0 : o.slice(1)) != null ? i : "", l = s.lastIndexOf(".");
1948
1876
  return l <= 0 ? s : s.slice(0, l);
1949
1877
  } catch (c) {
1950
1878
  return "";
1951
1879
  }
1952
1880
  })(t == null ? void 0 : t.url)}_${Date.now()}`;
1953
- }, lr = (t, e) => ({ success: !1, message: e, fileName: Pt(t) });
1954
- class yt {
1881
+ }, nr = (t, e) => ({ success: !1, message: e, fileName: _t(t) });
1882
+ class pt {
1955
1883
  downloadFile(e) {
1956
- return o(this, null, function* () {
1884
+ return a(this, null, function* () {
1957
1885
  try {
1958
- if (gt && window.__MICRO_APP_ENVIRONMENT__) {
1886
+ if (ut && window.__MICRO_APP_ENVIRONMENT__) {
1959
1887
  const r = window.rawWindow.__mini_app_hook__.downloadFile;
1960
- return r ? yield r(e) : lr(e, "DownloadFilePlugin is not available");
1888
+ return r ? yield r(e) : nr(e, "DownloadFilePlugin is not available");
1961
1889
  }
1962
- return yield cr.downloadFile(e);
1890
+ return yield tr.downloadFile(e);
1963
1891
  } catch (r) {
1964
- return console.error("downloadFile error", r), lr(e, r instanceof Error ? r.message : "download failed");
1892
+ return console.error("downloadFile error", r), nr(e, r instanceof Error ? r.message : "download failed");
1965
1893
  }
1966
1894
  });
1967
1895
  }
1968
1896
  getStatus() {
1969
- return o(this, null, function* () {
1897
+ return a(this, null, function* () {
1970
1898
  try {
1971
- return yield cr.getStatus();
1899
+ return yield tr.getStatus();
1972
1900
  } catch (e) {
1973
1901
  throw console.error("downloadFile getStatus error", e), e;
1974
1902
  }
1975
1903
  });
1976
1904
  }
1977
1905
  }
1978
- const xe = "1.0";
1979
- function Y() {
1980
- return { recordTrace: !1, protocolVersion: xe, maxSpansPerTrace: 0, maxDepth: 0, maxAttributesPerSpan: 0, maxEventsPerSpan: 0, maxPayloadBytes: 0 };
1981
- }
1982
- function We() {
1983
- return { accepted: !1, code: "UNSUPPORTED", protocolVersion: xe };
1906
+ const Er = "1.0";
1907
+ function He() {
1908
+ return { accepted: !1, code: "UNSUPPORTED", protocolVersion: Er };
1984
1909
  }
1985
- const wr = w.registerPlugin("OtelPlugin", { web: new class extends y {
1910
+ const or = d.registerPlugin("OtelPlugin", { web: new class extends y {
1986
1911
  recordTrace(t) {
1987
- return o(this, null, function* () {
1912
+ return a(this, null, function* () {
1988
1913
  var r, n;
1989
1914
  if (!window.__MICRO_APP_ENVIRONMENT__)
1990
- return We();
1915
+ return He();
1991
1916
  const e = (n = (r = window.rawWindow) == null ? void 0 : r.__mini_app_hook__) == null ? void 0 : n.recordOtelTrace;
1992
1917
  if (typeof e != "function")
1993
- return We();
1918
+ return He();
1994
1919
  try {
1995
- return yield e(b(k({}, t), { miniappKey: window.__MICRO_APP_NAME__ }));
1996
- } catch (a) {
1997
- return console.warn("[OtelPlugin] Web Shell recordOtelTrace failed", a), { accepted: !1, code: "INTERNAL_ERROR", protocolVersion: xe };
1920
+ return yield e(L(k({}, t), { miniappKey: window.__MICRO_APP_NAME__ }));
1921
+ } catch (o) {
1922
+ return console.warn("[OtelPlugin] Web Shell recordOtelTrace failed", o), { accepted: !1, code: "INTERNAL_ERROR", protocolVersion: Er };
1998
1923
  }
1999
1924
  });
2000
1925
  }
2001
1926
  getStatus() {
2002
- return o(this, null, function* () {
1927
+ return a(this, null, function* () {
2003
1928
  var e, r, n;
2004
1929
  if (!window.__MICRO_APP_ENVIRONMENT__)
2005
- return Y();
1930
+ return { recordTrace: !1 };
2006
1931
  const t = (n = (r = (e = window.rawWindow) == null ? void 0 : e.__mini_app_status_hook__) == null ? void 0 : r.otel) == null ? void 0 : n.getStatus;
2007
1932
  if (typeof t != "function")
2008
- return Y();
1933
+ return { recordTrace: !1 };
2009
1934
  try {
2010
- return (yield t()) || Y();
2011
- } catch (a) {
2012
- return console.warn("[OtelPlugin] Web Shell getStatus failed", a), Y();
1935
+ const o = yield t();
1936
+ return { recordTrace: (o == null ? void 0 : o.recordTrace) === !0 };
1937
+ } catch (o) {
1938
+ return console.warn("[OtelPlugin] Web Shell getStatus failed", o), { recordTrace: !1 };
2013
1939
  }
2014
1940
  });
2015
1941
  }
2016
1942
  }() });
2017
- class St {
1943
+ class ht {
2018
1944
  recordTrace(e) {
2019
- return o(this, null, function* () {
1945
+ return a(this, null, function* () {
2020
1946
  try {
2021
- return yield wr.recordTrace({ span: e });
1947
+ return yield or.recordTrace({ span: e });
2022
1948
  } catch (r) {
2023
- return console.warn("[OtelPlugin] recordTrace is unavailable", r), We();
1949
+ return console.warn("[OtelPlugin] recordTrace is unavailable", r), He();
2024
1950
  }
2025
1951
  });
2026
1952
  }
2027
1953
  getStatus() {
2028
- return o(this, null, function* () {
1954
+ return a(this, null, function* () {
2029
1955
  try {
2030
- return yield wr.getStatus();
1956
+ const e = yield or.getStatus();
1957
+ return { recordTrace: (e == null ? void 0 : e.recordTrace) === !0 };
2031
1958
  } catch (e) {
2032
- return console.warn("[OtelPlugin] getStatus is unavailable", e), Y();
1959
+ return console.warn("[OtelPlugin] getStatus is unavailable", e), { recordTrace: !1 };
2033
1960
  }
2034
1961
  });
2035
1962
  }
2036
1963
  }
2037
- class Nt {
1964
+ class mt {
2038
1965
  constructor() {
2039
- P(this, "initialContextPlugins", new Gr());
2040
- P(this, "communicatePlugins", new Yr());
2041
- P(this, "cameraScanPlugins", new Zr());
2042
- P(this, "cameraScanMultiplePlugins", new Xr());
2043
- P(this, "cameraScanMultipleNoCountPlugins", new et());
2044
- P(this, "cameraScanSingleOrDualPlugins", new rt());
2045
- P(this, "laserScanPlugins", new tt());
2046
- P(this, "countAssistPlugins", new nt());
2047
- P(this, "clickStreamPlugins", new ot());
2048
- P(this, "lifecyclePlugins", new at());
2049
- P(this, "deviceInteractionPlugins", new it());
2050
- P(this, "pollingPlugins", new ct());
2051
- P(this, "paymentPlugins", new lt());
2052
- P(this, "cameraForTakePhotoPlugin", new wt());
2053
- P(this, "httpPlugin", new dt());
2054
- P(this, "printPlugins", new pt());
2055
- P(this, "downloadFilePlugin", new yt());
2056
- P(this, "otelPlugins", new St());
1966
+ P(this, "initialContextPlugins", new $r());
1967
+ P(this, "communicatePlugins", new Kr());
1968
+ P(this, "cameraScanPlugins", new zr());
1969
+ P(this, "cameraScanMultiplePlugins", new Gr());
1970
+ P(this, "cameraScanMultipleNoCountPlugins", new Jr());
1971
+ P(this, "cameraScanSingleOrDualPlugins", new Qr());
1972
+ P(this, "laserScanPlugins", new Xr());
1973
+ P(this, "countAssistPlugins", new Yr());
1974
+ P(this, "clickStreamPlugins", new Zr());
1975
+ P(this, "lifecyclePlugins", new et());
1976
+ P(this, "deviceInteractionPlugins", new rt());
1977
+ P(this, "pollingPlugins", new nt());
1978
+ P(this, "paymentPlugins", new ot());
1979
+ P(this, "cameraForTakePhotoPlugin", new at());
1980
+ P(this, "httpPlugin", new it());
1981
+ P(this, "printPlugins", new wt());
1982
+ P(this, "downloadFilePlugin", new pt());
1983
+ P(this, "otelPlugins", new ht());
2057
1984
  }
2058
1985
  }
2059
- const It = new Nt();
2060
- let d = null, Me = null;
2061
- var Cr, Ar;
2062
- window.__MICRO_APP_ENVIRONMENT__ && (d = (Cr = window.rawWindow.__mini_app_hook__) != null ? Cr : {}, Me = (Ar = window.rawWindow.__mini_app_status_hook__) != null ? Ar : {});
2063
- const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: class extends y {
1986
+ const yt = new mt();
1987
+ let w = null, ye = null;
1988
+ var Nr, Sr;
1989
+ window.__MICRO_APP_ENVIRONMENT__ && (w = (Nr = window.rawWindow.__mini_app_hook__) != null ? Nr : {}, ye = (Sr = window.rawWindow.__mini_app_status_hook__) != null ? Sr : {});
1990
+ const gt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: class extends y {
2064
1991
  homeIsClick(t) {
2065
- return o(this, null, function* () {
1992
+ return a(this, null, function* () {
2066
1993
  var e;
2067
- window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch homeIsClick", t), (e = d.disabledMenu) == null || e.call(d, t));
1994
+ window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch homeIsClick", t), (e = w.disabledMenu) == null || e.call(w, t));
2068
1995
  });
2069
1996
  }
2070
1997
  openMiniApp(t) {
2071
- return o(this, null, function* () {
1998
+ return a(this, null, function* () {
2072
1999
  var e;
2073
2000
  try {
2074
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.openMiniApp) == null || e.call(d, t)), new Promise((r) => {
2001
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.openMiniApp) == null || e.call(w, t)), new Promise((r) => {
2075
2002
  r(t);
2076
2003
  });
2077
2004
  } catch (r) {
@@ -2080,10 +2007,10 @@ const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2080
2007
  });
2081
2008
  }
2082
2009
  showTitle(t) {
2083
- return o(this, null, function* () {
2010
+ return a(this, null, function* () {
2084
2011
  var e;
2085
2012
  try {
2086
- return window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch showTitle", t), (e = d.showTitle) == null || e.call(d, t)), new Promise((r) => {
2013
+ return window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch showTitle", t), (e = w.showTitle) == null || e.call(w, t)), new Promise((r) => {
2087
2014
  r(t);
2088
2015
  });
2089
2016
  } catch (r) {
@@ -2092,10 +2019,10 @@ const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2092
2019
  });
2093
2020
  }
2094
2021
  showFABMenu(t) {
2095
- return o(this, null, function* () {
2022
+ return a(this, null, function* () {
2096
2023
  var e;
2097
2024
  try {
2098
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.showFABMenu) == null || e.call(d, t)), new Promise((r) => {
2025
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.showFABMenu) == null || e.call(w, t)), new Promise((r) => {
2099
2026
  r(t);
2100
2027
  });
2101
2028
  } catch (r) {
@@ -2104,10 +2031,10 @@ const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2104
2031
  });
2105
2032
  }
2106
2033
  disableFAB(t) {
2107
- return o(this, null, function* () {
2034
+ return a(this, null, function* () {
2108
2035
  var e;
2109
2036
  try {
2110
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.disableFAB) == null || e.call(d, t)), new Promise((r) => {
2037
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.disableFAB) == null || e.call(w, t)), new Promise((r) => {
2111
2038
  r(t);
2112
2039
  });
2113
2040
  } catch (r) {
@@ -2116,10 +2043,10 @@ const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2116
2043
  });
2117
2044
  }
2118
2045
  disableBack(t) {
2119
- return o(this, null, function* () {
2046
+ return a(this, null, function* () {
2120
2047
  var e;
2121
2048
  try {
2122
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.disableBack) == null || e.call(d, t)), new Promise((r) => {
2049
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.disableBack) == null || e.call(w, t)), new Promise((r) => {
2123
2050
  r(t);
2124
2051
  });
2125
2052
  } catch (r) {
@@ -2128,10 +2055,10 @@ const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2128
2055
  });
2129
2056
  }
2130
2057
  showSubMask(t) {
2131
- return o(this, null, function* () {
2058
+ return a(this, null, function* () {
2132
2059
  var e;
2133
2060
  try {
2134
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.showSubMask) == null || e.call(d, t)), new Promise((r) => {
2061
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.showSubMask) == null || e.call(w, t)), new Promise((r) => {
2135
2062
  r(t);
2136
2063
  });
2137
2064
  } catch (r) {
@@ -2140,10 +2067,10 @@ const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2140
2067
  });
2141
2068
  }
2142
2069
  setMiniAppVersion(t) {
2143
- return o(this, null, function* () {
2070
+ return a(this, null, function* () {
2144
2071
  var e;
2145
2072
  try {
2146
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.setMiniAppVersion) == null || e.call(d, t)), new Promise((r) => {
2073
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = w.setMiniAppVersion) == null || e.call(w, t)), new Promise((r) => {
2147
2074
  r(t);
2148
2075
  });
2149
2076
  } catch (r) {
@@ -2152,25 +2079,25 @@ const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2152
2079
  });
2153
2080
  }
2154
2081
  showDialog() {
2155
- return o(this, null, function* () {
2082
+ return a(this, null, function* () {
2156
2083
  var t;
2157
- window.__MICRO_APP_ENVIRONMENT__ && ((t = d.showDialog) == null || t.call(d));
2084
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = w.showDialog) == null || t.call(w));
2158
2085
  });
2159
2086
  }
2160
2087
  cancelDialog() {
2161
- return o(this, null, function* () {
2088
+ return a(this, null, function* () {
2162
2089
  var t;
2163
- window.__MICRO_APP_ENVIRONMENT__ && ((t = d.cancelDialog) == null || t.call(d));
2090
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = w.cancelDialog) == null || t.call(w));
2164
2091
  });
2165
2092
  }
2166
2093
  getMiniAppKong(t) {
2167
- return o(this, null, function* () {
2094
+ return a(this, null, function* () {
2168
2095
  var e, r;
2169
2096
  try {
2170
2097
  if (window.__MICRO_APP_ENVIRONMENT__) {
2171
- const n = (r = (e = d.getMiniAppKong) == null ? void 0 : e.call(d, t)) != null ? r : {};
2172
- return new Promise((a) => {
2173
- a(n);
2098
+ const n = (r = (e = w.getMiniAppKong) == null ? void 0 : e.call(w, t)) != null ? r : {};
2099
+ return new Promise((o) => {
2100
+ o(n);
2174
2101
  });
2175
2102
  }
2176
2103
  return new Promise((n) => {
@@ -2182,16 +2109,16 @@ const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2182
2109
  });
2183
2110
  }
2184
2111
  closeMiniApp() {
2185
- return o(this, null, function* () {
2112
+ return a(this, null, function* () {
2186
2113
  var t;
2187
- window.__MICRO_APP_ENVIRONMENT__ && ((t = d.closeMiniApp) == null || t.call(d));
2114
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = w.closeMiniApp) == null || t.call(w));
2188
2115
  });
2189
2116
  }
2190
2117
  getStatus() {
2191
2118
  try {
2192
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => o(this, null, function* () {
2119
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((t) => a(this, null, function* () {
2193
2120
  var e, r;
2194
- t((yield (r = (e = Me == null ? void 0 : Me.communicate) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
2121
+ t((yield (r = (e = ye == null ? void 0 : ye.communicate) == null ? void 0 : e.getStatus) == null ? void 0 : r.call(e)) || {});
2195
2122
  })) : new Promise((t) => {
2196
2123
  t(null);
2197
2124
  });
@@ -2201,9 +2128,9 @@ const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2201
2128
  }
2202
2129
  dispatchToShell(t) {
2203
2130
  try {
2204
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => o(this, null, function* () {
2131
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => a(this, null, function* () {
2205
2132
  var r;
2206
- e((yield (r = d == null ? void 0 : d.dispatchToShell) == null ? void 0 : r.call(d, t)) || {});
2133
+ e((yield (r = w == null ? void 0 : w.dispatchToShell) == null ? void 0 : r.call(w, t)) || {});
2207
2134
  })) : new Promise((e) => {
2208
2135
  e(t);
2209
2136
  });
@@ -2213,9 +2140,9 @@ const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2213
2140
  }
2214
2141
  getMiniAppInfo(t) {
2215
2142
  try {
2216
- return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => o(this, null, function* () {
2143
+ return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => a(this, null, function* () {
2217
2144
  var r;
2218
- e((yield (r = d == null ? void 0 : d.getMiniAppInfo) == null ? void 0 : r.call(d, t)) || {});
2145
+ e((yield (r = w == null ? void 0 : w.getMiniAppInfo) == null ? void 0 : r.call(w, t)) || {});
2219
2146
  })) : new Promise((e) => {
2220
2147
  e({});
2221
2148
  });
@@ -2225,7 +2152,7 @@ const Mt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2225
2152
  }
2226
2153
  } }, Symbol.toStringTag, { value: "Module" }));
2227
2154
  export {
2228
- Nt as NativeApi,
2229
- xe as OTEL_PLUGIN_PROTOCOL_VERSION,
2230
- It as default
2155
+ mt as NativeApi,
2156
+ Er as OTEL_PLUGIN_PROTOCOL_VERSION,
2157
+ yt as default
2231
2158
  };