superapp-miniapp-invoke-native 1.12.3 → 1.13.0

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