superapp-miniapp-invoke-native 1.11.1 → 1.11.2

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,30 +1,30 @@
1
- /* eslint-disable no-restricted-globals */
2
- /* global globalThis */
1
+ /* eslint-disable no-restricted-globals, no-unused-expressions */
2
+ /* global globalThis, AndroidInitialContext */
3
3
  var Vr = Object.defineProperty, Hr = Object.defineProperties;
4
- var Ur = Object.getOwnPropertyDescriptors;
4
+ var Fr = Object.getOwnPropertyDescriptors;
5
5
  var qe = Object.getOwnPropertySymbols;
6
- var Fr = Object.prototype.hasOwnProperty, Wr = Object.prototype.propertyIsEnumerable;
7
- var Le = (t, e, r) => e in t ? Vr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, b = (t, e) => {
6
+ var Ur = Object.prototype.hasOwnProperty, Wr = Object.prototype.propertyIsEnumerable;
7
+ var ve = (t, e, r) => e in t ? Vr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, b = (t, e) => {
8
8
  for (var r in e || (e = {}))
9
- Fr.call(e, r) && Le(t, r, e[r]);
9
+ Ur.call(e, r) && ve(t, r, e[r]);
10
10
  if (qe)
11
11
  for (var r of qe(e))
12
- Wr.call(e, r) && Le(t, r, e[r]);
12
+ Wr.call(e, r) && ve(t, r, e[r]);
13
13
  return t;
14
- }, T = (t, e) => Hr(t, Ur(e));
15
- var P = (t, e, r) => (Le(t, typeof e != "symbol" ? e + "" : e, r), r);
14
+ }, T = (t, e) => Hr(t, Fr(e));
15
+ var P = (t, e, r) => (ve(t, typeof e != "symbol" ? e + "" : e, r), r);
16
16
  var a = (t, e, r) => new Promise((n, o) => {
17
17
  var i = (l) => {
18
18
  try {
19
19
  s(r.next(l));
20
- } catch (w) {
21
- o(w);
20
+ } catch (d) {
21
+ o(d);
22
22
  }
23
23
  }, c = (l) => {
24
24
  try {
25
25
  s(r.throw(l));
26
- } catch (w) {
27
- o(w);
26
+ } catch (d) {
27
+ o(d);
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());
@@ -39,73 +39,73 @@ const Dr = (t) => t.CapacitorPlatforms = ((e) => {
39
39
  }, n.setPlatform = (o) => {
40
40
  n.platforms.has(o) && (n.currentPlatform = n.platforms.get(o));
41
41
  }, n;
42
- })(t), Ke = Dr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
43
- var j;
44
- Ke.addPlatform, Ke.setPlatform, function(t) {
42
+ })(t), ze = Dr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
43
+ var $;
44
+ ze.addPlatform, ze.setPlatform, function(t) {
45
45
  t.Unimplemented = "UNIMPLEMENTED", t.Unavailable = "UNAVAILABLE";
46
- }(j || (j = {}));
47
- class ve extends Error {
46
+ }($ || ($ = {}));
47
+ class Le 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
52
  const xr = (t) => {
53
53
  var e, r, n, o, i;
54
- const c = t.CapacitorCustomPlatform || null, s = t.Capacitor || {}, l = s.Plugins = s.Plugins || {}, w = t.CapacitorPlatforms, _ = ((e = w == null ? void 0 : w.currentPlatform) === null || e === void 0 ? void 0 : e.getPlatform) || (() => c !== null ? c.name : ((h) => {
54
+ const c = t.CapacitorCustomPlatform || null, s = t.Capacitor || {}, l = s.Plugins = s.Plugins || {}, d = t.CapacitorPlatforms, w = ((e = d == null ? void 0 : d.currentPlatform) === null || e === void 0 ? void 0 : e.getPlatform) || (() => c !== null ? c.name : ((p) => {
55
55
  var m, N;
56
- return h != null && h.androidBridge ? "android" : !((N = (m = h == null ? void 0 : h.webkit) === null || m === void 0 ? void 0 : m.messageHandlers) === null || N === void 0) && N.bridge ? "ios" : "web";
57
- })(t)), p = ((r = w == null ? void 0 : w.currentPlatform) === null || r === void 0 ? void 0 : r.isNativePlatform) || (() => _() !== "web"), M = ((n = w == null ? void 0 : w.currentPlatform) === null || n === void 0 ? void 0 : n.isPluginAvailable) || ((h) => {
58
- const m = I.get(h);
59
- return !!(m != null && m.platforms.has(_())) || !!v(h);
60
- }), v = ((o = w == null ? void 0 : w.currentPlatform) === null || o === void 0 ? void 0 : o.getPluginHeader) || ((h) => {
56
+ return p != null && p.androidBridge ? "android" : !((N = (m = p == null ? void 0 : p.webkit) === null || m === void 0 ? void 0 : m.messageHandlers) === null || N === void 0) && N.bridge ? "ios" : "web";
57
+ })(t)), h = ((r = d == null ? void 0 : d.currentPlatform) === null || r === void 0 ? void 0 : r.isNativePlatform) || (() => w() !== "web"), f = ((n = d == null ? void 0 : d.currentPlatform) === null || n === void 0 ? void 0 : n.isPluginAvailable) || ((p) => {
58
+ const m = I.get(p);
59
+ return !!(m != null && m.platforms.has(w())) || !!M(p);
60
+ }), M = ((o = d == null ? void 0 : d.currentPlatform) === null || o === void 0 ? void 0 : o.getPluginHeader) || ((p) => {
61
61
  var m;
62
- return (m = s.PluginHeaders) === null || m === void 0 ? void 0 : m.find((N) => N.name === h);
63
- }), I = /* @__PURE__ */ new Map(), C = ((i = w == null ? void 0 : w.currentPlatform) === null || i === void 0 ? void 0 : i.registerPlugin) || ((h, m = {}) => {
64
- const N = I.get(h);
62
+ return (m = s.PluginHeaders) === null || m === void 0 ? void 0 : m.find((N) => N.name === p);
63
+ }), I = /* @__PURE__ */ new Map(), O = ((i = d == null ? void 0 : d.currentPlatform) === null || i === void 0 ? void 0 : i.registerPlugin) || ((p, m = {}) => {
64
+ const N = I.get(p);
65
65
  if (N)
66
- return console.warn(`Capacitor plugin "${h}" already registered. Cannot register plugins twice.`), N.proxy;
67
- const O = _(), $ = v(h);
66
+ return console.warn(`Capacitor plugin "${p}" already registered. Cannot register plugins twice.`), N.proxy;
67
+ const v = w(), q = M(p);
68
68
  let k;
69
69
  const Me = (A) => {
70
70
  let R;
71
- const x = (...Z) => {
72
- const q = (() => a(void 0, null, function* () {
73
- return !k && O in m ? k = k = typeof m[O] == "function" ? yield m[O]() : m[O] : c !== null && !k && "web" in m && (k = k = typeof m.web == "function" ? yield m.web() : m.web), k;
71
+ const x = (...Y) => {
72
+ const z = (() => a(void 0, null, function* () {
73
+ return !k && v in m ? k = k = typeof m[v] == "function" ? yield m[v]() : m[v] : c !== null && !k && "web" in m && (k = k = typeof m.web == "function" ? yield m.web() : m.web), k;
74
74
  }))().then((K) => {
75
- const je = ((L, z) => {
75
+ const je = ((L, G) => {
76
76
  var Ce, Oe;
77
- if (!$) {
77
+ if (!q) {
78
78
  if (L)
79
- return (Oe = L[z]) === null || Oe === void 0 ? void 0 : Oe.bind(L);
80
- throw new ve(`"${h}" plugin is not implemented on ${O}`, j.Unimplemented);
79
+ return (Oe = L[G]) === null || Oe === void 0 ? void 0 : Oe.bind(L);
80
+ throw new Le(`"${p}" plugin is not implemented on ${v}`, $.Unimplemented);
81
81
  }
82
82
  {
83
- const $e = $ == null ? void 0 : $.methods.find((G) => z === G.name);
83
+ const $e = q == null ? void 0 : q.methods.find((J) => G === J.name);
84
84
  if ($e)
85
- return $e.rtype === "promise" ? (G) => s.nativePromise(h, z.toString(), G) : (G, Br) => s.nativeCallback(h, z.toString(), G, Br);
85
+ return $e.rtype === "promise" ? (J) => s.nativePromise(p, G.toString(), J) : (J, Br) => s.nativeCallback(p, G.toString(), J, Br);
86
86
  if (L)
87
- return (Ce = L[z]) === null || Ce === void 0 ? void 0 : Ce.bind(L);
87
+ return (Ce = L[G]) === null || Ce === void 0 ? void 0 : Ce.bind(L);
88
88
  }
89
89
  })(K, A);
90
90
  if (je) {
91
- const L = je(...Z);
91
+ const L = je(...Y);
92
92
  return R = L == null ? void 0 : L.remove, L;
93
93
  }
94
- throw new ve(`"${h}.${A}()" is not implemented on ${O}`, j.Unimplemented);
94
+ throw new Le(`"${p}.${A}()" is not implemented on ${v}`, $.Unimplemented);
95
95
  });
96
- return A === "addListener" && (q.remove = () => a(void 0, null, function* () {
96
+ return A === "addListener" && (z.remove = () => a(void 0, null, function* () {
97
97
  return R();
98
- })), q;
98
+ })), z;
99
99
  };
100
100
  return x.toString = () => `${A.toString()}() { [capacitor code] }`, Object.defineProperty(x, "name", { value: A, writable: !1, configurable: !1 }), x;
101
101
  }, De = Me("addListener"), xe = Me("removeListener"), Tr = (A, R) => {
102
- const x = De({ eventName: A }, R), Z = () => a(void 0, null, function* () {
102
+ const x = De({ eventName: A }, R), Y = () => a(void 0, null, function* () {
103
103
  const K = yield x;
104
104
  xe({ eventName: A, callbackId: K }, R);
105
- }), q = new Promise((K) => x.then(() => K({ remove: Z })));
106
- return q.remove = () => a(void 0, null, function* () {
107
- console.warn("Using addListener() without 'await' is deprecated."), yield Z();
108
- }), q;
105
+ }), z = new Promise((K) => x.then(() => K({ remove: Y })));
106
+ return z.remove = () => a(void 0, null, function* () {
107
+ console.warn("Using addListener() without 'await' is deprecated."), yield Y();
108
+ }), z;
109
109
  }, Ie = new Proxy({}, { get(A, R) {
110
110
  switch (R) {
111
111
  case "$$typeof":
@@ -113,18 +113,18 @@ const xr = (t) => {
113
113
  case "toJSON":
114
114
  return () => ({});
115
115
  case "addListener":
116
- return $ ? Tr : De;
116
+ return q ? Tr : De;
117
117
  case "removeListener":
118
118
  return xe;
119
119
  default:
120
120
  return Me(R);
121
121
  }
122
122
  } });
123
- return l[h] = Ie, I.set(h, { name: h, proxy: Ie, platforms: /* @__PURE__ */ new Set([...Object.keys(m), ...$ ? [O] : []]) }), Ie;
123
+ return l[p] = Ie, I.set(p, { name: p, proxy: Ie, platforms: /* @__PURE__ */ new Set([...Object.keys(m), ...q ? [v] : []]) }), Ie;
124
124
  });
125
- return s.convertFileSrc || (s.convertFileSrc = (h) => h), s.getPlatform = _, s.handleError = (h) => t.console.error(h), s.isNativePlatform = p, s.isPluginAvailable = M, s.pluginMethodNoop = (h, m, N) => Promise.reject(`${N} does not have an implementation of "${m}".`), s.registerPlugin = C, s.Exception = ve, s.DEBUG = !!s.DEBUG, s.isLoggingEnabled = !!s.isLoggingEnabled, s.platform = s.getPlatform(), s.isNative = s.isNativePlatform(), s;
126
- }, jr = (t) => t.Capacitor = xr(t), u = jr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {}), Fe = u.registerPlugin;
127
- u.Plugins;
125
+ return s.convertFileSrc || (s.convertFileSrc = (p) => p), s.getPlatform = w, s.handleError = (p) => t.console.error(p), s.isNativePlatform = h, s.isPluginAvailable = f, s.pluginMethodNoop = (p, m, N) => Promise.reject(`${N} does not have an implementation of "${m}".`), s.registerPlugin = O, s.Exception = Le, s.DEBUG = !!s.DEBUG, s.isLoggingEnabled = !!s.isLoggingEnabled, s.platform = s.getPlatform(), s.isNative = s.isNativePlatform(), s;
126
+ }, jr = (t) => t.Capacitor = xr(t), _ = jr(typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {}), Ue = _.registerPlugin;
127
+ _.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);
@@ -161,10 +161,10 @@ class y {
161
161
  } };
162
162
  }
163
163
  unimplemented(e = "not implemented") {
164
- return new u.Exception(e, j.Unimplemented);
164
+ return new _.Exception(e, $.Unimplemented);
165
165
  }
166
166
  unavailable(e = "not available") {
167
- return new u.Exception(e, j.Unavailable);
167
+ return new _.Exception(e, $.Unavailable);
168
168
  }
169
169
  removeListener(e, r) {
170
170
  return a(this, null, function* () {
@@ -182,7 +182,7 @@ class y {
182
182
  e && (window.removeEventListener(e.windowEventName, e.handler), e.registered = !1);
183
183
  }
184
184
  }
185
- const ze = (t) => encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), Ge = (t) => t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
185
+ const Ke = (t) => encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), Ge = (t) => t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
186
186
  class $r extends y {
187
187
  getCookies() {
188
188
  return a(this, null, function* () {
@@ -198,7 +198,7 @@ class $r extends y {
198
198
  setCookie(e) {
199
199
  return a(this, null, function* () {
200
200
  try {
201
- const r = ze(e.key), n = ze(e.value), o = `; expires=${(e.expires || "").replace("expires=", "")}`, i = (e.path || "/").replace("path=", ""), c = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
201
+ const r = Ke(e.key), n = Ke(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
202
  document.cookie = `${r}=${n || ""}${o}; path=${i}; ${c};`;
203
203
  } catch (r) {
204
204
  return Promise.reject(r);
@@ -235,7 +235,7 @@ class $r extends y {
235
235
  });
236
236
  }
237
237
  }
238
- Fe("CapacitorCookies", { web: () => new $r() });
238
+ Ue("CapacitorCookies", { web: () => new $r() });
239
239
  const qr = (t, e = {}) => {
240
240
  const r = Object.assign({ method: t.method || "GET", headers: t.headers }, e), n = ((o = {}) => {
241
241
  const i = Object.keys(o);
@@ -264,27 +264,27 @@ const qr = (t, e = {}) => {
264
264
  (n.includes("application/json") || typeof t.data == "object") && (r.body = JSON.stringify(t.data));
265
265
  return r;
266
266
  };
267
- class Kr extends y {
267
+ class zr extends y {
268
268
  request(e) {
269
269
  return a(this, null, function* () {
270
- const r = qr(e, e.webFetchExtra), n = ((p, M = !0) => p ? Object.entries(p).reduce((v, I) => {
271
- const [C, h] = I;
270
+ const r = qr(e, e.webFetchExtra), n = ((h, f = !0) => h ? Object.entries(h).reduce((M, I) => {
271
+ const [O, p] = I;
272
272
  let m, N;
273
- return Array.isArray(h) ? (N = "", h.forEach((O) => {
274
- m = M ? encodeURIComponent(O) : O, N += `${C}=${m}&`;
275
- }), N.slice(0, -1)) : (m = M ? encodeURIComponent(h) : h, N = `${C}=${m}`), `${v}&${N}`;
273
+ return Array.isArray(p) ? (N = "", p.forEach((v) => {
274
+ m = f ? encodeURIComponent(v) : v, N += `${O}=${m}&`;
275
+ }), N.slice(0, -1)) : (m = f ? encodeURIComponent(p) : p, N = `${O}=${m}`), `${M}&${N}`;
276
276
  }, "").substr(1) : null)(e.params, e.shouldEncodeUrlParams), o = n ? `${e.url}?${n}` : e.url, i = yield fetch(o, r), c = i.headers.get("content-type") || "";
277
- let s, l, { responseType: w = "text" } = i.ok ? e : {};
278
- switch (c.includes("application/json") && (w = "json"), w) {
277
+ let s, l, { responseType: d = "text" } = i.ok ? e : {};
278
+ switch (c.includes("application/json") && (d = "json"), d) {
279
279
  case "arraybuffer":
280
280
  case "blob":
281
- l = yield i.blob(), s = yield ((p) => a(this, null, function* () {
282
- return new Promise((M, v) => {
281
+ l = yield i.blob(), s = yield ((h) => a(this, null, function* () {
282
+ return new Promise((f, M) => {
283
283
  const I = new FileReader();
284
284
  I.onload = () => {
285
- const C = I.result;
286
- M(C.indexOf(",") >= 0 ? C.split(",")[1] : C);
287
- }, I.onerror = (C) => v(C), I.readAsDataURL(p);
285
+ const O = I.result;
286
+ f(O.indexOf(",") >= 0 ? O.split(",")[1] : O);
287
+ }, I.onerror = (O) => M(O), I.readAsDataURL(h);
288
288
  });
289
289
  }))(l);
290
290
  break;
@@ -294,10 +294,10 @@ class Kr extends y {
294
294
  default:
295
295
  s = yield i.text();
296
296
  }
297
- const _ = {};
298
- return i.headers.forEach((p, M) => {
299
- _[M] = p;
300
- }), { data: s, headers: _, status: i.status, url: i.url };
297
+ const w = {};
298
+ return i.headers.forEach((h, f) => {
299
+ w[f] = h;
300
+ }), { data: s, headers: w, status: i.status, url: i.url };
301
301
  });
302
302
  }
303
303
  get(e) {
@@ -327,13 +327,13 @@ class Kr extends y {
327
327
  }
328
328
  }
329
329
  function Ae() {
330
- return u.getPlatform() === "android" ? JSON.parse(AndroidInitialContext.initialContext()) : window.portalInitialContext;
330
+ return _.getPlatform() === "android" ? JSON.parse(AndroidInitialContext.initialContext()) : window.portalInitialContext;
331
331
  }
332
- Fe("CapacitorHttp", { web: () => new Kr() }), /*! Ionic Portals: https://ionic.io/portals - Commercial License */
333
- Fe("Portals", { web: () => Promise.resolve().then(function() {
334
- return zr;
332
+ Ue("CapacitorHttp", { web: () => new zr() }), /*! Ionic Portals: https://ionic.io/portals - Commercial License */
333
+ Ue("Portals", { web: () => Promise.resolve().then(function() {
334
+ return Kr;
335
335
  }).then((t) => new t.PortalsWeb()) });
336
- const zr = Object.freeze({ __proto__: null, PortalsWeb: class extends y {
336
+ const Kr = Object.freeze({ __proto__: null, PortalsWeb: class extends y {
337
337
  publishNative(t) {
338
338
  return a(this, null, function* () {
339
339
  });
@@ -430,14 +430,14 @@ class Gr {
430
430
  });
431
431
  }
432
432
  }
433
- const f = () => {
433
+ const C = () => {
434
434
  try {
435
435
  let t = {};
436
436
  return typeof window != "undefined" && (t = window), t;
437
437
  } catch (t) {
438
438
  throw console.error("isWinHandle error", t), t;
439
439
  }
440
- }, E = "CommunicatePlugin", g = u.registerPlugin(E, { web: () => Promise.resolve().then(() => Pt).then((t) => new t.PluginsWeb()) }), te = f();
440
+ }, E = "CommunicatePlugin", g = _.registerPlugin(E, { web: () => Promise.resolve().then(() => Pt).then((t) => new t.PluginsWeb()) }), te = C();
441
441
  te.removeAddListenerFab = () => null;
442
442
  const Jr = (t, e) => {
443
443
  var r, n;
@@ -447,8 +447,8 @@ const Jr = (t, e) => {
447
447
  if ((r = g.showFABMenu) == null || r.call(g, { fabMenu: o, position: null }), !t || !((n = Object.keys(t)) != null && n.length))
448
448
  return;
449
449
  Object.keys(t).forEach((i) => {
450
- var c, s, l, w, _, p, M, v;
451
- o.push({ disable: (s = (c = t == null ? void 0 : t[i]) == null ? void 0 : c.disable) != null ? s : !1, icon: (w = (l = t == null ? void 0 : t[i]) == null ? void 0 : l.icon) != null ? w : "", id: (p = (_ = t == null ? void 0 : t[i]) == null ? void 0 : _.id) != null ? p : "", name: (v = (M = t == null ? void 0 : t[i]) == null ? void 0 : M.title) != null ? v : "" });
450
+ var c, s, l, d, w, h, f, M;
451
+ o.push({ disable: (s = (c = t == null ? void 0 : t[i]) == null ? void 0 : c.disable) != null ? s : !1, icon: (d = (l = t == null ? void 0 : t[i]) == null ? void 0 : l.icon) != null ? d : "", id: (h = (w = t == null ? void 0 : t[i]) == null ? void 0 : w.id) != null ? h : "", name: (M = (f = t == null ? void 0 : t[i]) == null ? void 0 : f.title) != null ? M : "" });
452
452
  }), queueMicrotask(() => {
453
453
  var i;
454
454
  (i = g.showFABMenu) == null || i.call(g, { fabMenu: o, position: e != null ? e : null });
@@ -456,8 +456,8 @@ const Jr = (t, e) => {
456
456
  ((i) => a(void 0, null, function* () {
457
457
  i && (te.removeAddListenerFab = yield ((c) => a(void 0, null, function* () {
458
458
  try {
459
- if (u.addListener) {
460
- const s = yield u.addListener(E, "nativeSendFab", (l) => c && c(l));
459
+ if (_.addListener) {
460
+ const s = yield _.addListener(E, "nativeSendFab", (l) => c && c(l));
461
461
  return s != null && s.remove ? s.remove : () => null;
462
462
  }
463
463
  } catch (s) {
@@ -467,22 +467,22 @@ const Jr = (t, e) => {
467
467
  }))((i) => {
468
468
  let c;
469
469
  i != null && i.disable || i != null && i.id && (Object.keys(t).forEach((s) => {
470
- var l, w, _;
471
- (l = t == null ? void 0 : t[s]) != null && l.id && i.id === t[s].id && (c = (_ = (w = t[s]) == null ? void 0 : w.fn) != null ? _ : () => null);
470
+ var l, d, w;
471
+ (l = t == null ? void 0 : t[s]) != null && l.id && i.id === t[s].id && (c = (w = (d = t[s]) == null ? void 0 : d.fn) != null ? w : () => null);
472
472
  }), typeof c == "function" && c());
473
473
  });
474
474
  });
475
475
  } catch (o) {
476
476
  throw console.error("fabBtnHandle error", o), o;
477
477
  }
478
- }, B = f();
478
+ }, B = C();
479
479
  B.addListenerBackRemoveHandle = () => null;
480
480
  const Je = (t = () => null) => a(void 0, null, function* () {
481
481
  try {
482
482
  B != null && B.addListenerBackRemoveHandle && typeof B.addListenerBackRemoveHandle == "function" && B.addListenerBackRemoveHandle(), B.addListenerBackRemoveHandle = yield ((e) => a(void 0, null, function* () {
483
483
  try {
484
- if (u.addListener) {
485
- const r = yield u.addListener(E, "nativeSendBack", (n) => e && e(n));
484
+ if (_.addListener) {
485
+ const r = yield _.addListener(E, "nativeSendBack", (n) => e && e(n));
486
486
  return r != null && r.remove ? r.remove : () => null;
487
487
  }
488
488
  } catch (r) {
@@ -492,16 +492,16 @@ const Je = (t = () => null) => a(void 0, null, function* () {
492
492
  } catch (e) {
493
493
  throw console.error("initBackBtnFn error", e), e;
494
494
  }
495
- }), ne = f();
495
+ }), ne = C();
496
496
  ne.addListenerHomeHandle = () => null;
497
- const Qr = (t) => {
497
+ const Zr = (t) => {
498
498
  try {
499
499
  ne.addListenerHomeHandle && ne.addListenerHomeHandle(), setTimeout(() => {
500
500
  ((e) => a(void 0, null, function* () {
501
501
  e && (ne.addListenerHomeHandle = yield ((r) => a(void 0, null, function* () {
502
502
  try {
503
- if (u.addListener) {
504
- const n = yield u.addListener(E, "nativeSendHome", (o) => r && r(o));
503
+ if (_.addListener) {
504
+ const n = yield _.addListener(E, "nativeSendHome", (o) => r && r(o));
505
505
  return n != null && n.remove ? n.remove : () => null;
506
506
  }
507
507
  } catch (n) {
@@ -513,14 +513,14 @@ const Qr = (t) => {
513
513
  } catch (e) {
514
514
  throw console.error("homeFn error", e), e;
515
515
  }
516
- }, V = f();
516
+ }, V = C();
517
517
  V.addListenerTouchRemoveHandle = () => null;
518
- const Qe = (t = () => null) => a(void 0, null, function* () {
518
+ const Ze = (t = () => null) => a(void 0, null, function* () {
519
519
  try {
520
520
  V != null && V.addListenerTouchRemoveHandle && typeof V.addListenerTouchRemoveHandle == "function" && V.addListenerTouchRemoveHandle(), V.addListenerTouchRemoveHandle = yield ((e) => a(void 0, null, function* () {
521
521
  try {
522
- if (u.addListener) {
523
- const r = yield u.addListener(E, "nativeTouchListener", (n) => e && e(n));
522
+ if (_.addListener) {
523
+ const r = yield _.addListener(E, "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 Qe = (t = () => null) => a(void 0, null, function* () {
530
530
  } catch (e) {
531
531
  throw console.error("initTouchFn error", e), e;
532
532
  }
533
- }), H = f();
533
+ }), H = C();
534
534
  H.addListenerSendDeepLinkRemoveHandle = () => null;
535
- const Ye = (t = () => null) => a(void 0, null, function* () {
535
+ const Xe = (t = () => null) => a(void 0, null, function* () {
536
536
  try {
537
537
  H != null && H.addListenerSendDeepLinkRemoveHandle && typeof H.addListenerSendDeepLinkRemoveHandle == "function" && H.addListenerSendDeepLinkRemoveHandle(), H.addListenerSendDeepLinkRemoveHandle = yield ((e) => a(void 0, null, function* () {
538
538
  try {
539
539
  if (window.__MICRO_APP_ENVIRONMENT__)
540
540
  return e && window.rawWindow.__mini_app_hook__.getDeeplinkParams(e), { remove: () => null };
541
- if (u.addListener) {
542
- const r = yield u.addListener(E, "nativeSendDeeplinkCallbackListener", (n) => e && e(n));
541
+ if (_.addListener) {
542
+ const r = yield _.addListener(E, "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 Ye = (t = () => null) => a(void 0, null, function* () {
549
549
  } catch (e) {
550
550
  throw console.error("initTouchFn error", e), e;
551
551
  }
552
- }), U = f();
553
- U.addListenerSwitchLanguageRemoveHandle = () => null;
554
- const Ze = (t = () => null) => a(void 0, null, function* () {
552
+ }), F = C();
553
+ F.addListenerSwitchLanguageRemoveHandle = () => null;
554
+ const Ye = (t = () => null) => a(void 0, null, function* () {
555
555
  try {
556
- U != null && U.addListenerSwitchLanguageRemoveHandle && typeof U.addListenerSwitchLanguageRemoveHandle == "function" && U.addListenerSwitchLanguageRemoveHandle(), U.addListenerSwitchLanguageRemoveHandle = yield ((e) => a(void 0, null, function* () {
556
+ F != null && F.addListenerSwitchLanguageRemoveHandle && typeof F.addListenerSwitchLanguageRemoveHandle == "function" && F.addListenerSwitchLanguageRemoveHandle(), F.addListenerSwitchLanguageRemoveHandle = yield ((e) => a(void 0, null, function* () {
557
557
  try {
558
- if (u.addListener) {
559
- const r = yield u.addListener(E, "nativeSendSwitchLanguage", (n) => e && e(n));
558
+ if (_.addListener) {
559
+ const r = yield _.addListener(E, "nativeSendSwitchLanguage", (n) => e && e(n));
560
560
  return r != null && r.remove ? r.remove : () => null;
561
561
  }
562
562
  if (window.__MICRO_APP_ENVIRONMENT__)
@@ -570,14 +570,14 @@ const Ze = (t = () => null) => a(void 0, null, function* () {
570
570
  } catch (e) {
571
571
  throw console.error("initSwitchLanguageFn error", e), e;
572
572
  }
573
- }), F = f();
574
- F.addListenerSetupMiniAppRemoveHandle = () => null;
575
- const Xe = (t = () => null) => a(void 0, null, function* () {
573
+ }), U = C();
574
+ U.addListenerSetupMiniAppRemoveHandle = () => null;
575
+ const Qe = (t = () => null) => a(void 0, null, function* () {
576
576
  try {
577
- F != null && F.addListenerSetupMiniAppRemoveHandle && typeof F.addListenerSetupMiniAppRemoveHandle == "function" && F.addListenerSetupMiniAppRemoveHandle(), F.addListenerSetupMiniAppRemoveHandle = yield ((e) => a(void 0, null, function* () {
577
+ U != null && U.addListenerSetupMiniAppRemoveHandle && typeof U.addListenerSetupMiniAppRemoveHandle == "function" && U.addListenerSetupMiniAppRemoveHandle(), U.addListenerSetupMiniAppRemoveHandle = yield ((e) => a(void 0, null, function* () {
578
578
  try {
579
- if (u.addListener) {
580
- const r = yield u.addListener(E, "nativeSetupMiniApp", (n) => e && e(n));
579
+ if (_.addListener) {
580
+ const r = yield _.addListener(E, "nativeSetupMiniApp", (n) => e && e(n));
581
581
  return r != null && r.remove ? r.remove : () => null;
582
582
  }
583
583
  } catch (r) {
@@ -587,14 +587,14 @@ const Xe = (t = () => null) => a(void 0, null, function* () {
587
587
  } catch (e) {
588
588
  throw console.error("initSetupMiniAppFn error", e), e;
589
589
  }
590
- }), W = f();
590
+ }), W = C();
591
591
  W.addListenerSwitchStoreRemoveHandle = () => null;
592
592
  const er = (t = () => null) => a(void 0, null, function* () {
593
593
  try {
594
594
  W != null && W.addListenerSwitchStoreRemoveHandle && typeof W.addListenerSwitchStoreRemoveHandle == "function" && W.addListenerSwitchStoreRemoveHandle(), W.addListenerSwitchStoreRemoveHandle = yield ((e) => a(void 0, null, function* () {
595
595
  try {
596
- if (u.addListener) {
597
- const r = yield u.addListener(E, "nativeSendSwitchStore", (n) => e && e(n));
596
+ if (_.addListener) {
597
+ const r = yield _.addListener(E, "nativeSendSwitchStore", (n) => e && e(n));
598
598
  return r != null && r.remove ? r.remove : () => null;
599
599
  }
600
600
  if (window.__MICRO_APP_ENVIRONMENT__)
@@ -609,7 +609,7 @@ const er = (t = () => null) => a(void 0, null, function* () {
609
609
  throw console.error("initSwitchStoreFn error", e), e;
610
610
  }
611
611
  });
612
- class Yr {
612
+ class Xr {
613
613
  constructor() {
614
614
  this.homeBtnSwitch({ isClick: !0 });
615
615
  }
@@ -643,7 +643,7 @@ class Yr {
643
643
  }
644
644
  setHomeBtn(e) {
645
645
  try {
646
- window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setHomeBtn = e : Qr(e);
646
+ window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setHomeBtn = e : Zr(e);
647
647
  } catch (r) {
648
648
  throw console.error("setHomeBtn error", r), r;
649
649
  }
@@ -661,9 +661,9 @@ class Yr {
661
661
  try {
662
662
  const { mounted: n, beforeUnmount: o, callBack: i } = r;
663
663
  n(() => {
664
- Qe(i);
664
+ Ze(i);
665
665
  }), o(() => {
666
- Qe();
666
+ Ze();
667
667
  });
668
668
  } catch (n) {
669
669
  throw console.error("touchListenerHandle error", n), n;
@@ -760,9 +760,9 @@ class Yr {
760
760
  try {
761
761
  const { mounted: n, beforeUnmount: o, callBack: i } = r;
762
762
  n(() => {
763
- Ye(i);
763
+ Xe(i);
764
764
  }), o(() => {
765
- Ye();
765
+ Xe();
766
766
  });
767
767
  } catch (n) {
768
768
  throw console.error("sendDeepLinkListenerHandle error", n), n;
@@ -778,9 +778,9 @@ class Yr {
778
778
  try {
779
779
  const { mounted: n, beforeUnmount: o, callBack: i } = r;
780
780
  n(() => {
781
- Ze(i);
781
+ Ye(i);
782
782
  }), o(() => {
783
- Ze();
783
+ Ye();
784
784
  });
785
785
  } catch (n) {
786
786
  throw console.error("sendSwitchLanguageHandle error", n), n;
@@ -796,9 +796,9 @@ class Yr {
796
796
  try {
797
797
  const { mounted: n, beforeUnmount: o, callBack: i } = r;
798
798
  n(() => {
799
- Xe(i);
799
+ Qe(i);
800
800
  }), o(() => {
801
- Xe();
801
+ Qe();
802
802
  });
803
803
  } catch (n) {
804
804
  throw console.error("setupMiniAppHandle error", n), n;
@@ -866,7 +866,7 @@ class Yr {
866
866
  let oe = null;
867
867
  var ur;
868
868
  window.__MICRO_APP_ENVIRONMENT__ && (oe = (ur = window.rawWindow.__mini_app_status_hook__) != null ? ur : {});
869
- const Ee = u.registerPlugin("CameraScanPlugin", { web: new class extends y {
869
+ const Ee = _.registerPlugin("CameraScanPlugin", { web: new class extends y {
870
870
  pickCameraScan(t) {
871
871
  return a(this, null, function* () {
872
872
  return new Promise((e) => {
@@ -892,7 +892,7 @@ const Ee = u.registerPlugin("CameraScanPlugin", { web: new class extends y {
892
892
  }
893
893
  }() });
894
894
  window.removeAddListenerCameraScan = () => null;
895
- class Zr {
895
+ class Yr {
896
896
  pickCameraScan(e) {
897
897
  return a(this, null, function* () {
898
898
  try {
@@ -924,7 +924,7 @@ class Zr {
924
924
  let ae = null;
925
925
  var _r;
926
926
  window.__MICRO_APP_ENVIRONMENT__ && (ae = (_r = window.rawWindow.__mini_app_status_hook__) != null ? _r : {});
927
- const Re = u.registerPlugin("CameraScanMultiplePlugin", { web: new class extends y {
927
+ const Re = _.registerPlugin("CameraScanMultiplePlugin", { web: new class extends y {
928
928
  pickCameraScanMultiple() {
929
929
  return a(this, null, function* () {
930
930
  });
@@ -946,7 +946,7 @@ const Re = u.registerPlugin("CameraScanMultiplePlugin", { web: new class extends
946
946
  }
947
947
  }
948
948
  }() });
949
- class Xr {
949
+ class Qr {
950
950
  pickCameraScanMultiple(e) {
951
951
  return a(this, null, function* () {
952
952
  try {
@@ -978,7 +978,7 @@ class Xr {
978
978
  let ie = null;
979
979
  var hr;
980
980
  window.__MICRO_APP_ENVIRONMENT__ && (ie = (hr = window.rawWindow.__mini_app_status_hook__) != null ? hr : {});
981
- const ke = u.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class extends y {
981
+ const ke = _.registerPlugin("CameraScanMultipleNoCountPlugin", { web: new class extends y {
982
982
  pickCameraScanMultipleNoCount() {
983
983
  return a(this, null, function* () {
984
984
  });
@@ -1032,7 +1032,7 @@ class et {
1032
1032
  let se = null;
1033
1033
  var pr;
1034
1034
  window.__MICRO_APP_ENVIRONMENT__ && (se = (pr = window.rawWindow.__mini_app_status_hook__) != null ? pr : {});
1035
- const be = u.registerPlugin("CameraScanSingleOrDualPlugin", { web: new class extends y {
1035
+ const be = _.registerPlugin("CameraScanSingleOrDualPlugin", { web: new class extends y {
1036
1036
  pickCameraScanSingleOrDual() {
1037
1037
  return a(this, null, function* () {
1038
1038
  });
@@ -1087,7 +1087,7 @@ const Ar = "LaserScanPlugin";
1087
1087
  let ce = null;
1088
1088
  var mr;
1089
1089
  window.__MICRO_APP_ENVIRONMENT__ && (ce = (mr = window.rawWindow.__mini_app_status_hook__) != null ? mr : {});
1090
- const X = u.registerPlugin(Ar, { web: new class extends y {
1090
+ const Q = _.registerPlugin(Ar, { web: new class extends y {
1091
1091
  pickLaserScan() {
1092
1092
  return a(this, null, function* () {
1093
1093
  });
@@ -1112,7 +1112,7 @@ const X = u.registerPlugin(Ar, { web: new class extends y {
1112
1112
  throw console.error("laserScan getStatus error", t), t;
1113
1113
  }
1114
1114
  }
1115
- }() }), le = f();
1115
+ }() }), le = C();
1116
1116
  le.removeAddListenerLaserScan = () => null;
1117
1117
  const rr = (t = () => null) => {
1118
1118
  try {
@@ -1120,8 +1120,8 @@ const rr = (t = () => null) => {
1120
1120
  const e = (r) => a(void 0, null, function* () {
1121
1121
  r && (le.removeAddListenerLaserScan = yield ((n) => a(void 0, null, function* () {
1122
1122
  try {
1123
- if (u.addListener) {
1124
- const o = yield u.addListener(Ar, "nativeSendLaser", (i) => n && n(i));
1123
+ if (_.addListener) {
1124
+ const o = yield _.addListener(Ar, "nativeSendLaser", (i) => n && n(i));
1125
1125
  return o != null && o.remove ? o.remove : () => null;
1126
1126
  }
1127
1127
  } catch (o) {
@@ -1143,7 +1143,7 @@ class tt {
1143
1143
  pickLaserScan() {
1144
1144
  return a(this, null, function* () {
1145
1145
  try {
1146
- return yield X.pickLaserScan({ isContinue: !1 });
1146
+ return yield Q.pickLaserScan({ isContinue: !1 });
1147
1147
  } catch (e) {
1148
1148
  throw console.error("pickLaserScan error", e), e;
1149
1149
  }
@@ -1152,7 +1152,7 @@ class tt {
1152
1152
  unPickLaserScan() {
1153
1153
  return a(this, null, function* () {
1154
1154
  try {
1155
- return yield X.unPickLaserScan();
1155
+ return yield Q.unPickLaserScan();
1156
1156
  } catch (e) {
1157
1157
  throw console.error("unPickLaserScan error", e), e;
1158
1158
  }
@@ -1160,7 +1160,7 @@ class tt {
1160
1160
  }
1161
1161
  setLaserState(e) {
1162
1162
  try {
1163
- X.setLaserState(e);
1163
+ Q.setLaserState(e);
1164
1164
  } catch (r) {
1165
1165
  throw console.error("setLaserState error", r), r;
1166
1166
  }
@@ -1182,7 +1182,7 @@ class tt {
1182
1182
  getStatus() {
1183
1183
  return a(this, null, function* () {
1184
1184
  try {
1185
- return yield X.getStatus();
1185
+ return yield Q.getStatus();
1186
1186
  } catch (e) {
1187
1187
  throw console.error("getStatus error", e), e;
1188
1188
  }
@@ -1193,7 +1193,7 @@ const Er = "CountAssistPlugin";
1193
1193
  let we = null;
1194
1194
  var gr;
1195
1195
  window.__MICRO_APP_ENVIRONMENT__ && (we = (gr = window.rawWindow.__mini_app_status_hook__) != null ? gr : {});
1196
- const ee = u.registerPlugin(Er, { web: new class extends y {
1196
+ const ee = _.registerPlugin(Er, { web: new class extends y {
1197
1197
  setCountAssistState(t) {
1198
1198
  return a(this, null, function* () {
1199
1199
  try {
@@ -1239,14 +1239,14 @@ const ee = u.registerPlugin(Er, { web: new class extends y {
1239
1239
  throw console.error("countAssist getStatus error", t), t;
1240
1240
  }
1241
1241
  }
1242
- }() }), D = f();
1242
+ }() }), D = C();
1243
1243
  D.addListenerCountAssistRemoveHandle = () => null;
1244
1244
  const tr = (t = () => null) => a(void 0, null, function* () {
1245
1245
  try {
1246
1246
  D != null && D.addListenerCountAssistRemoveHandle && typeof D.addListenerCountAssistRemoveHandle == "function" && D.addListenerCountAssistRemoveHandle(), D.addListenerCountAssistRemoveHandle = yield ((e) => a(void 0, null, function* () {
1247
1247
  try {
1248
- if (u.addListener) {
1249
- const r = yield u.addListener(Er, "nativeSendCountAssist", (n) => e && e(n));
1248
+ if (_.addListener) {
1249
+ const r = yield _.addListener(Er, "nativeSendCountAssist", (n) => e && e(n));
1250
1250
  return r != null && r.remove ? r.remove : () => null;
1251
1251
  }
1252
1252
  } catch (r) {
@@ -1312,7 +1312,7 @@ class nt {
1312
1312
  let de = null;
1313
1313
  var Pr;
1314
1314
  window.__MICRO_APP_ENVIRONMENT__ && (de = (Pr = window.rawWindow.__mini_app_status_hook__) != null ? Pr : {});
1315
- const Te = u.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1315
+ const Te = _.registerPlugin("ClickStreamPlugin", { web: new class extends y {
1316
1316
  init() {
1317
1317
  return a(this, null, function* () {
1318
1318
  return new Promise((t) => {
@@ -1381,8 +1381,8 @@ const Rr = "MiniAppLifecyclePlugin";
1381
1381
  let ue = null;
1382
1382
  var yr;
1383
1383
  window.__MICRO_APP_ENVIRONMENT__ && (ue = (yr = window.rawWindow.__mini_app_status_hook__) != null ? yr : {});
1384
- var Q = ((t) => (t.MINI_APP_BEFORE_UNMOUNT_PERMISSION = "mini_app_before_unmount_permission", t.MINI_APP_BEFORE_UNMOUNT_COMPLETION = "mini_app_before_unmount_completion", t))(Q || {});
1385
- const Be = u.registerPlugin(Rr, { web: new class extends y {
1384
+ 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 || {});
1385
+ const Be = _.registerPlugin(Rr, { web: new class extends y {
1386
1386
  setNativeUsagePermission() {
1387
1387
  return a(this, null, function* () {
1388
1388
  });
@@ -1403,7 +1403,7 @@ const Be = u.registerPlugin(Rr, { web: new class extends y {
1403
1403
  throw console.error("lifecycle getStatus error", t), t;
1404
1404
  }
1405
1405
  }
1406
- }() }), _e = f();
1406
+ }() }), _e = C();
1407
1407
  _e.removeAddListenerLifecycleMiniAppBeforeUnmount = () => null;
1408
1408
  const nr = (t = () => null) => {
1409
1409
  try {
@@ -1411,8 +1411,8 @@ const nr = (t = () => null) => {
1411
1411
  const e = (r) => a(void 0, null, function* () {
1412
1412
  r && (_e.removeAddListenerLifecycleMiniAppBeforeUnmount = yield ((n) => a(void 0, null, function* () {
1413
1413
  try {
1414
- if (u.addListener) {
1415
- const o = yield u.addListener(Rr, "miniAppBeforeUnmount", (i) => n && n(i));
1414
+ if (_.addListener) {
1415
+ const o = yield _.addListener(Rr, "miniAppBeforeUnmount", (i) => n && n(i));
1416
1416
  return o != null && o.remove ? o.remove : () => null;
1417
1417
  }
1418
1418
  } catch (o) {
@@ -1449,7 +1449,7 @@ class at {
1449
1449
  });
1450
1450
  }
1451
1451
  miniAppBeforeUnmount(e) {
1452
- this.setNativeUsagePermission({ action: Q.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !0 }), ((r, n) => {
1452
+ this.setNativeUsagePermission({ action: Z.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !0 }), ((r, n) => {
1453
1453
  try {
1454
1454
  const { mounted: o, beforeUnmount: i, callBack: c } = r;
1455
1455
  o(() => {
@@ -1458,16 +1458,16 @@ class at {
1458
1458
  if (c && c instanceof Function)
1459
1459
  try {
1460
1460
  (l = c(s)) == null || l.then(() => a(this, null, function* () {
1461
- yield n.setNativeUsagePermission({ action: Q.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 }), yield n.authorizeWebCallback({ action: Q.MINI_APP_BEFORE_UNMOUNT_COMPLETION });
1461
+ yield n.setNativeUsagePermission({ action: Z.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 }), yield n.authorizeWebCallback({ action: Z.MINI_APP_BEFORE_UNMOUNT_COMPLETION });
1462
1462
  }));
1463
- } catch (w) {
1463
+ } catch (d) {
1464
1464
  console.error("miniAppBeforeUnmount error callBack is not a function or promise");
1465
1465
  }
1466
1466
  else
1467
1467
  console.error("miniAppBeforeUnmount error callBack is not a function or promise");
1468
1468
  }));
1469
1469
  }), i(() => a(this, null, function* () {
1470
- nr(), n.setNativeUsagePermission({ action: Q.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 });
1470
+ nr(), n.setNativeUsagePermission({ action: Z.MINI_APP_BEFORE_UNMOUNT_PERMISSION, value: !1 });
1471
1471
  }));
1472
1472
  } catch (o) {
1473
1473
  throw console.error("miniAppBeforeUnmount error", o), o;
@@ -1487,7 +1487,7 @@ class at {
1487
1487
  let he = null;
1488
1488
  var Sr;
1489
1489
  window.__MICRO_APP_ENVIRONMENT__ && (he = (Sr = window.rawWindow.__mini_app_status_hook__) != null ? Sr : {});
1490
- const Ve = u.registerPlugin("DeviceInteractionPlugin", { web: new class extends y {
1490
+ const Ve = _.registerPlugin("DeviceInteractionPlugin", { web: new class extends y {
1491
1491
  callVibrate() {
1492
1492
  return a(this, null, function* () {
1493
1493
  });
@@ -1542,7 +1542,7 @@ const kr = "PollingPlugin";
1542
1542
  let pe = null;
1543
1543
  var Nr;
1544
1544
  window.__MICRO_APP_ENVIRONMENT__ && (pe = (Nr = window.rawWindow.__mini_app_status_hook__) != null ? Nr : {});
1545
- const He = u.registerPlugin(kr, { web: new class extends y {
1545
+ const He = _.registerPlugin(kr, { web: new class extends y {
1546
1546
  create() {
1547
1547
  return a(this, null, function* () {
1548
1548
  });
@@ -1563,7 +1563,7 @@ const He = u.registerPlugin(kr, { web: new class extends y {
1563
1563
  throw console.error("polling getStatus error", t), t;
1564
1564
  }
1565
1565
  }
1566
- }() }), me = f();
1566
+ }() }), me = C();
1567
1567
  me.removeAddListenerPolling = () => null;
1568
1568
  const st = (t, e) => {
1569
1569
  try {
@@ -1572,8 +1572,8 @@ const st = (t, e) => {
1572
1572
  ((n) => a(void 0, null, function* () {
1573
1573
  return n && (me.removeAddListenerPolling = yield ((o) => a(void 0, null, function* () {
1574
1574
  try {
1575
- if (u.addListener) {
1576
- const i = yield u.addListener(kr, "nativeSendPolling", (c) => o && o(c));
1575
+ if (_.addListener) {
1576
+ const i = yield _.addListener(kr, "nativeSendPolling", (c) => o && o(c));
1577
1577
  return i != null && i.remove ? i.remove : () => null;
1578
1578
  }
1579
1579
  } catch (i) {
@@ -1599,19 +1599,19 @@ class ct {
1599
1599
  if (window.__MICRO_APP_ENVIRONMENT__) {
1600
1600
  const { mounted: i, pollingParams: c, callBack: s } = e;
1601
1601
  return i(() => {
1602
- var l, w;
1603
- (w = (l = window.rawWindow.__mini_app_hook__) == null ? void 0 : l.addPolling) == null || w.call(l, c, s);
1602
+ var l, d;
1603
+ (d = (l = window.rawWindow.__mini_app_hook__) == null ? void 0 : l.addPolling) == null || d.call(l, c, s);
1604
1604
  }), () => {
1605
1605
  this.destroy({ pollingId: c.pollingId });
1606
1606
  };
1607
1607
  }
1608
1608
  try {
1609
- (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((w) => w.pollingId === c.pollingId));
1609
+ (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((d) => d.pollingId === c.pollingId));
1610
1610
  const i = ((o = e == null ? void 0 : e.pollingParams) == null ? void 0 : o.delay) / 1e3;
1611
1611
  return He.create(T(b({}, e == null ? void 0 : e.pollingParams), { delay: i })), ((c, s) => {
1612
1612
  try {
1613
- const { mounted: l, pollingParams: w } = c;
1614
- l(() => st(s, w));
1613
+ const { mounted: l, pollingParams: d } = c;
1614
+ l(() => st(s, d));
1615
1615
  } catch (l) {
1616
1616
  throw console.error("createPolling error", l), l;
1617
1617
  }
@@ -1649,7 +1649,7 @@ class ct {
1649
1649
  let ge = null;
1650
1650
  var fr;
1651
1651
  window.__MICRO_APP_ENVIRONMENT__ && (ge = (fr = window.rawWindow.__mini_app_status_hook__) != null ? fr : {});
1652
- const or = u.registerPlugin("PaymentPlugin", { web: new class extends y {
1652
+ const or = _.registerPlugin("PaymentPlugin", { web: new class extends y {
1653
1653
  process(t) {
1654
1654
  return a(this, null, function* () {
1655
1655
  try {
@@ -1697,7 +1697,7 @@ class lt {
1697
1697
  let Pe = null;
1698
1698
  var Mr;
1699
1699
  window.__MICRO_APP_ENVIRONMENT__ && (Pe = (Mr = window.rawWindow.__mini_app_status_hook__) != null ? Mr : {});
1700
- const Ue = u.registerPlugin("CameraForTakePhotoPlugin", { web: new class extends y {
1700
+ const Fe = _.registerPlugin("CameraForTakePhotoPlugin", { web: new class extends y {
1701
1701
  pickCameraForTakePhoto() {
1702
1702
  return a(this, null, function* () {
1703
1703
  });
@@ -1723,7 +1723,7 @@ class wt {
1723
1723
  pickCameraForTakePhoto() {
1724
1724
  return a(this, null, function* () {
1725
1725
  try {
1726
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraForTakePhoto() : yield Ue.pickCameraForTakePhoto();
1726
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.pickCameraForTakePhoto() : yield Fe.pickCameraForTakePhoto();
1727
1727
  } catch (e) {
1728
1728
  throw console.error("pickCameraForTakePhoto error", e), e;
1729
1729
  }
@@ -1732,7 +1732,7 @@ class wt {
1732
1732
  setCameraForTakePhotoState(e) {
1733
1733
  return a(this, null, function* () {
1734
1734
  try {
1735
- return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraForTakePhotoState(e) : yield Ue.setCameraForTakePhotoState(e);
1735
+ return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.__mini_app_hook__.setCameraForTakePhotoState(e) : yield Fe.setCameraForTakePhotoState(e);
1736
1736
  } catch (r) {
1737
1737
  throw console.error("setCameraForTakePhotoState error", r), r;
1738
1738
  }
@@ -1741,7 +1741,7 @@ class wt {
1741
1741
  getStatus() {
1742
1742
  return a(this, null, function* () {
1743
1743
  try {
1744
- return yield Ue.getStatus();
1744
+ return yield Fe.getStatus();
1745
1745
  } catch (e) {
1746
1746
  throw console.error("cameraForTakePhotoPlugin getStatus error", e), e;
1747
1747
  }
@@ -1751,7 +1751,7 @@ class wt {
1751
1751
  let ye = null;
1752
1752
  var Ir;
1753
1753
  window.__MICRO_APP_ENVIRONMENT__ && (ye = (Ir = window.rawWindow.__mini_app_status_hook__) != null ? Ir : {});
1754
- const ar = u.registerPlugin("HttpPlugin", { web: new class extends y {
1754
+ const ar = _.registerPlugin("HttpPlugin", { web: new class extends y {
1755
1755
  request(t) {
1756
1756
  return a(this, null, function* () {
1757
1757
  return new Promise((e) => {
@@ -1803,20 +1803,20 @@ for (let t = 0; t < 256; ++t)
1803
1803
  const ut = new Uint8Array(16);
1804
1804
  function _t(t, e, r) {
1805
1805
  return e || t || !crypto.randomUUID ? function(n, o, i) {
1806
- var s, l, w;
1806
+ var s, l, d;
1807
1807
  n = n || {};
1808
- const c = (w = (l = n.random) != null ? l : (s = n.rng) == null ? void 0 : s.call(n)) != null ? w : crypto.getRandomValues(ut);
1808
+ const c = (d = (l = n.random) != null ? l : (s = n.rng) == null ? void 0 : s.call(n)) != null ? d : crypto.getRandomValues(ut);
1809
1809
  if (c.length < 16)
1810
1810
  throw new Error("Random bytes length must be >= 16");
1811
1811
  if (c[6] = 15 & c[6] | 64, c[8] = 63 & c[8] | 128, o) {
1812
1812
  if ((i = i || 0) < 0 || i + 16 > o.length)
1813
1813
  throw new RangeError(`UUID byte range ${i}:${i + 15} is out of buffer bounds`);
1814
- for (let _ = 0; _ < 16; ++_)
1815
- o[i + _] = c[_];
1814
+ for (let w = 0; w < 16; ++w)
1815
+ o[i + w] = c[w];
1816
1816
  return o;
1817
1817
  }
1818
- return function(_, p = 0) {
1819
- return (S[_[p + 0]] + S[_[p + 1]] + S[_[p + 2]] + S[_[p + 3]] + "-" + S[_[p + 4]] + S[_[p + 5]] + "-" + S[_[p + 6]] + S[_[p + 7]] + "-" + S[_[p + 8]] + S[_[p + 9]] + "-" + S[_[p + 10]] + S[_[p + 11]] + S[_[p + 12]] + S[_[p + 13]] + S[_[p + 14]] + S[_[p + 15]]).toLowerCase();
1818
+ return function(w, h = 0) {
1819
+ return (S[w[h + 0]] + S[w[h + 1]] + S[w[h + 2]] + S[w[h + 3]] + "-" + S[w[h + 4]] + S[w[h + 5]] + "-" + S[w[h + 6]] + S[w[h + 7]] + "-" + S[w[h + 8]] + S[w[h + 9]] + "-" + S[w[h + 10]] + S[w[h + 11]] + S[w[h + 12]] + S[w[h + 13]] + S[w[h + 14]] + S[w[h + 15]]).toLowerCase();
1820
1820
  }(c);
1821
1821
  }(t, e, r) : crypto.randomUUID();
1822
1822
  }
@@ -1824,7 +1824,7 @@ const br = "PrintPlugin";
1824
1824
  let Se = null;
1825
1825
  var Cr;
1826
1826
  window.__MICRO_APP_ENVIRONMENT__ && (Se = (Cr = window.rawWindow.__mini_app_status_hook__) != null ? Cr : {});
1827
- const ir = u.registerPlugin(br, { web: new class extends y {
1827
+ const ir = _.registerPlugin(br, { web: new class extends y {
1828
1828
  print() {
1829
1829
  }
1830
1830
  getStatus() {
@@ -1839,17 +1839,17 @@ const ir = u.registerPlugin(br, { web: new class extends y {
1839
1839
  throw console.error("print getStatus error", t), t;
1840
1840
  }
1841
1841
  }
1842
- }() }), Y = f();
1843
- Y.removeAddListenerPrintList = {};
1842
+ }() }), X = C();
1843
+ X.removeAddListenerPrintList = {};
1844
1844
  const ht = (t, e) => {
1845
1845
  try {
1846
1846
  const r = e.printId;
1847
- Y.removeAddListenerPrintList = T(b({}, Y.removeAddListenerPrintList), { printId: () => {
1847
+ X.removeAddListenerPrintList = T(b({}, X.removeAddListenerPrintList), { printId: () => {
1848
1848
  } }), ((n) => a(void 0, null, function* () {
1849
- return n && (Y.removeAddListenerPrintList[r] = yield ((o) => a(void 0, null, function* () {
1849
+ return n && (X.removeAddListenerPrintList[r] = yield ((o) => a(void 0, null, function* () {
1850
1850
  try {
1851
- if (u.addListener) {
1852
- const i = yield u.addListener(br, "nativeSendPrint", (c) => o && o(c));
1851
+ if (_.addListener) {
1852
+ const i = yield _.addListener(br, "nativeSendPrint", (c) => o && o(c));
1853
1853
  return i != null && i.remove ? i.remove : () => null;
1854
1854
  }
1855
1855
  } catch (i) {
@@ -1859,7 +1859,7 @@ const ht = (t, e) => {
1859
1859
  }))((n) => {
1860
1860
  (n == null ? void 0 : n.printId) === r && (n != null && n.printId) && t.printList.forEach((o) => {
1861
1861
  var i, c, s;
1862
- 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 = Y.removeAddListenerPrintList) == null ? void 0 : i[o == null ? void 0 : o.printId]) == null || c.call(i));
1862
+ 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 = X.removeAddListenerPrintList) == null ? void 0 : i[o == null ? void 0 : o.printId]) == null || c.call(i));
1863
1863
  });
1864
1864
  });
1865
1865
  } catch (r) {
@@ -1874,17 +1874,17 @@ class pt {
1874
1874
  print(e) {
1875
1875
  var n, o, i, c;
1876
1876
  const r = ((o = (n = e == null ? void 0 : e.printParams) == null ? void 0 : n.functionId) != null ? o : "") + _t().replace(/-/g, "");
1877
- if (this.printList.push({ printId: r, callBack: e == null ? void 0 : e.callBack }), this.printList = this.printList.filter((s, l, w) => l === w.findIndex((_) => _.printId === s.printId)), window.__MICRO_APP_ENVIRONMENT__) {
1877
+ if (this.printList.push({ printId: r, callBack: e == null ? void 0 : e.callBack }), this.printList = this.printList.filter((s, l, d) => l === d.findIndex((w) => w.printId === s.printId)), window.__MICRO_APP_ENVIRONMENT__) {
1878
1878
  const { printParams: s, callBack: l } = e;
1879
1879
  return (c = (i = window.rawWindow.__mini_app_hook__) == null ? void 0 : i.print) == null || c.call(i, T(b({}, s), { printId: r }), l), { id: r };
1880
1880
  }
1881
1881
  try {
1882
1882
  return ir.print(T(b({}, e == null ? void 0 : e.printParams), { printId: r })), ((s, l) => {
1883
1883
  try {
1884
- const { printParams: w } = s;
1885
- ht(l, w);
1886
- } catch (w) {
1887
- throw console.error("createPrint error", w), w;
1884
+ const { printParams: d } = s;
1885
+ ht(l, d);
1886
+ } catch (d) {
1887
+ throw console.error("createPrint error", d), d;
1888
1888
  }
1889
1889
  })(T(b({}, e), { printParams: T(b({}, e.printParams), { printId: r }) }), this), { id: r };
1890
1890
  } catch (s) {
@@ -1904,51 +1904,54 @@ class pt {
1904
1904
  let Ne = null;
1905
1905
  var Or;
1906
1906
  window.__MICRO_APP_ENVIRONMENT__ && (Ne = (Or = window.rawWindow.__mini_app_status_hook__) != null ? Or : {});
1907
- const J = (t, e, r = "", n = "") => ({ success: t, message: e, type: r, fileName: n }), We = (t) => {
1907
+ const j = (t, e, r = "", n = "") => ({ success: t, message: e, type: r, fileName: n }), We = (t) => {
1908
1908
  var e;
1909
1909
  return (e = t == null ? void 0 : t.trim().replace(/^\.+/, "").toLowerCase()) != null ? e : "";
1910
1910
  }, sr = (t, e) => {
1911
1911
  const r = We(e);
1912
1912
  return !r || t.toLowerCase().endsWith(`.${r}`) ? t : `${t}.${r}`;
1913
1913
  }, cr = (t) => {
1914
- var o;
1915
- const e = ((i) => {
1916
- var _;
1917
- const c = (_ = i == null ? void 0 : i.trim()) != null ? _ : "", s = c.lastIndexOf(".");
1918
- if (s <= 0 || s === c.length - 1)
1919
- return { name: c, type: "", fileName: c };
1920
- const l = c.slice(0, s), w = We(c.slice(s + 1));
1921
- return { name: l, type: w, fileName: w ? sr(l, w) : c };
1922
- })(((i) => {
1923
- if (!i)
1914
+ var s, l;
1915
+ const e = ((d) => {
1916
+ var I;
1917
+ const w = (I = d == null ? void 0 : d.trim()) != null ? I : "", h = w.lastIndexOf(".");
1918
+ if (h <= 0 || h === w.length - 1)
1919
+ return { name: w, type: "", fileName: w };
1920
+ const f = w.slice(0, h), M = We(w.slice(h + 1));
1921
+ return { name: f, type: M, fileName: M ? sr(f, M) : w };
1922
+ })(((d) => {
1923
+ var w;
1924
+ if (!d)
1924
1925
  return "";
1925
1926
  try {
1926
- const c = new URL(i, window.location.href).pathname.split("/").filter(Boolean).pop();
1927
- return c ? decodeURIComponent(c) : "";
1928
- } catch (c) {
1927
+ const h = decodeURIComponent(d).match(/[^/?#&=]+\.[a-zA-Z0-9]+(?=$|[?&#])/g);
1928
+ return (w = h == null ? void 0 : h.pop()) != null ? w : "";
1929
+ } catch (h) {
1929
1930
  return "";
1930
1931
  }
1931
- })(t == null ? void 0 : t.url)), r = e.type || We(t == null ? void 0 : t.type), n = ((o = t == null ? void 0 : t.fileName) == null ? void 0 : o.trim()) || e.name || `path_${Date.now()}`;
1932
- return { type: r, fileName: n, downloadFileName: r ? sr(n, r) : n };
1933
- }, lr = u.registerPlugin("DownloadFilePlugin", { web: new class extends y {
1932
+ })(t == null ? void 0 : t.url)), r = We(t == null ? void 0 : t.type), n = (l = (s = t == null ? void 0 : t.fileName) == null ? void 0 : s.trim()) != null ? l : "", o = e.type || r, i = n || e.name || `path_${Date.now()}`, c = !r || !n;
1933
+ return { type: o, fileName: i, downloadFileName: o ? sr(i, o) : i, hasUrlFile: !!e.type, requiresUrlFile: c };
1934
+ }, lr = _.registerPlugin("DownloadFilePlugin", { web: new class extends y {
1934
1935
  downloadFile(t) {
1935
1936
  return a(this, null, function* () {
1936
1937
  var e;
1937
1938
  try {
1938
- const { type: r, fileName: n, downloadFileName: o } = cr(t), i = (e = t == null ? void 0 : t.url) == null ? void 0 : e.trim();
1939
+ const { type: r, fileName: n, downloadFileName: o, hasUrlFile: i, requiresUrlFile: c } = cr(t), s = (e = t == null ? void 0 : t.url) == null ? void 0 : e.trim();
1940
+ if (c && !i)
1941
+ return j(!1, "Missing file name or type in url", r, n);
1939
1942
  if (!r)
1940
- return J(!1, "Missing required parameter: type", r, n);
1941
- if (!i)
1942
- return J(!1, "Missing required parameter: url", r, n);
1943
- const c = yield fetch(i, t == null ? void 0 : t.fetchOptions);
1944
- if (!c.ok)
1945
- return J(!1, `HTTP error! status: ${c.status}`, r, n);
1946
- const s = yield c.blob(), l = window.URL.createObjectURL(s), w = document.createElement("a");
1947
- return w.href = l, w.download = o, document.body.appendChild(w), w.click(), w.remove(), window.setTimeout(() => window.URL.revokeObjectURL(l), 0), J(!0, "download success", r, n);
1943
+ return j(!1, "Missing required parameter: type", r, n);
1944
+ if (!s)
1945
+ return j(!1, "Missing required parameter: url", r, n);
1946
+ const l = yield fetch(s, t == null ? void 0 : t.fetchOptions);
1947
+ if (!l.ok)
1948
+ return j(!1, `HTTP error! status: ${l.status}`, r, n);
1949
+ const d = yield l.blob(), w = window.URL.createObjectURL(d), h = document.createElement("a");
1950
+ return h.href = w, h.download = o, document.body.appendChild(h), h.click(), h.remove(), window.setTimeout(() => window.URL.revokeObjectURL(w), 0), j(!0, "download success", r, n);
1948
1951
  } catch (r) {
1949
1952
  console.error("downloadFile error", r);
1950
1953
  const { type: n, fileName: o } = cr(t);
1951
- return J(!1, r instanceof Error ? r.message : "download failed", n, o);
1954
+ return j(!1, r instanceof Error ? r.message : "download failed", n, o);
1952
1955
  }
1953
1956
  });
1954
1957
  }
@@ -1974,12 +1977,13 @@ const J = (t, e, r = "", n = "") => ({ success: t, message: e, type: r, fileName
1974
1977
  const i = (s = o == null ? void 0 : o.trim()) != null ? s : "", c = i.lastIndexOf(".");
1975
1978
  return c <= 0 || c === i.length - 1 ? { name: i, type: "" } : { name: i.slice(0, c), type: wr(i.slice(c + 1)) };
1976
1979
  })(((o) => {
1980
+ var i;
1977
1981
  if (!o)
1978
1982
  return "";
1979
1983
  try {
1980
- const i = new URL(o, window.location.href).pathname.split("/").filter(Boolean).pop();
1981
- return i ? decodeURIComponent(i) : "";
1982
- } catch (i) {
1984
+ const c = decodeURIComponent(o).match(/[^/?#&=]+\.[a-zA-Z0-9]+(?=$|[?&#])/g);
1985
+ return (i = c == null ? void 0 : c.pop()) != null ? i : "";
1986
+ } catch (c) {
1983
1987
  return "";
1984
1988
  }
1985
1989
  })(t == null ? void 0 : t.url));
@@ -2012,9 +2016,9 @@ class mt {
2012
2016
  class gt {
2013
2017
  constructor() {
2014
2018
  P(this, "initialContextPlugins", new Gr());
2015
- P(this, "communicatePlugins", new Yr());
2016
- P(this, "cameraScanPlugins", new Zr());
2017
- P(this, "cameraScanMultiplePlugins", new Xr());
2019
+ P(this, "communicatePlugins", new Xr());
2020
+ P(this, "cameraScanPlugins", new Yr());
2021
+ P(this, "cameraScanMultiplePlugins", new Qr());
2018
2022
  P(this, "cameraScanMultipleNoCountPlugins", new et());
2019
2023
  P(this, "cameraScanSingleOrDualPlugins", new rt());
2020
2024
  P(this, "laserScanPlugins", new tt());
@@ -2031,21 +2035,21 @@ class gt {
2031
2035
  }
2032
2036
  }
2033
2037
  const St = new gt();
2034
- let d = null, fe = null;
2035
- var Lr, vr;
2036
- window.__MICRO_APP_ENVIRONMENT__ && (d = (Lr = window.rawWindow.__mini_app_hook__) != null ? Lr : {}, fe = (vr = window.rawWindow.__mini_app_status_hook__) != null ? vr : {});
2038
+ let u = null, fe = null;
2039
+ var vr, Lr;
2040
+ window.__MICRO_APP_ENVIRONMENT__ && (u = (vr = window.rawWindow.__mini_app_hook__) != null ? vr : {}, fe = (Lr = window.rawWindow.__mini_app_status_hook__) != null ? Lr : {});
2037
2041
  const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: class extends y {
2038
2042
  homeIsClick(t) {
2039
2043
  return a(this, null, function* () {
2040
2044
  var e;
2041
- window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch homeIsClick", t), (e = d.disabledMenu) == null || e.call(d, t));
2045
+ window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch homeIsClick", t), (e = u.disabledMenu) == null || e.call(u, t));
2042
2046
  });
2043
2047
  }
2044
2048
  openMiniApp(t) {
2045
2049
  return a(this, null, function* () {
2046
2050
  var e;
2047
2051
  try {
2048
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.openMiniApp) == null || e.call(d, t)), new Promise((r) => {
2052
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = u.openMiniApp) == null || e.call(u, t)), new Promise((r) => {
2049
2053
  r(t);
2050
2054
  });
2051
2055
  } catch (r) {
@@ -2057,7 +2061,7 @@ const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2057
2061
  return a(this, null, function* () {
2058
2062
  var e;
2059
2063
  try {
2060
- return window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch showTitle", t), (e = d.showTitle) == null || e.call(d, t)), new Promise((r) => {
2064
+ return window.__MICRO_APP_ENVIRONMENT__ && (console.log("window.microApp.forceDispatch showTitle", t), (e = u.showTitle) == null || e.call(u, t)), new Promise((r) => {
2061
2065
  r(t);
2062
2066
  });
2063
2067
  } catch (r) {
@@ -2069,7 +2073,7 @@ const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2069
2073
  return a(this, null, function* () {
2070
2074
  var e;
2071
2075
  try {
2072
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.showFABMenu) == null || e.call(d, t)), new Promise((r) => {
2076
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = u.showFABMenu) == null || e.call(u, t)), new Promise((r) => {
2073
2077
  r(t);
2074
2078
  });
2075
2079
  } catch (r) {
@@ -2081,7 +2085,7 @@ const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2081
2085
  return a(this, null, function* () {
2082
2086
  var e;
2083
2087
  try {
2084
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.disableFAB) == null || e.call(d, t)), new Promise((r) => {
2088
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = u.disableFAB) == null || e.call(u, t)), new Promise((r) => {
2085
2089
  r(t);
2086
2090
  });
2087
2091
  } catch (r) {
@@ -2093,7 +2097,7 @@ const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2093
2097
  return a(this, null, function* () {
2094
2098
  var e;
2095
2099
  try {
2096
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.disableBack) == null || e.call(d, t)), new Promise((r) => {
2100
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = u.disableBack) == null || e.call(u, t)), new Promise((r) => {
2097
2101
  r(t);
2098
2102
  });
2099
2103
  } catch (r) {
@@ -2105,7 +2109,7 @@ const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2105
2109
  return a(this, null, function* () {
2106
2110
  var e;
2107
2111
  try {
2108
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.showSubMask) == null || e.call(d, t)), new Promise((r) => {
2112
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = u.showSubMask) == null || e.call(u, t)), new Promise((r) => {
2109
2113
  r(t);
2110
2114
  });
2111
2115
  } catch (r) {
@@ -2117,7 +2121,7 @@ const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2117
2121
  return a(this, null, function* () {
2118
2122
  var e;
2119
2123
  try {
2120
- return window.__MICRO_APP_ENVIRONMENT__ && ((e = d.setMiniAppVersion) == null || e.call(d, t)), new Promise((r) => {
2124
+ return window.__MICRO_APP_ENVIRONMENT__ && ((e = u.setMiniAppVersion) == null || e.call(u, t)), new Promise((r) => {
2121
2125
  r(t);
2122
2126
  });
2123
2127
  } catch (r) {
@@ -2128,13 +2132,13 @@ const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2128
2132
  showDialog() {
2129
2133
  return a(this, null, function* () {
2130
2134
  var t;
2131
- window.__MICRO_APP_ENVIRONMENT__ && ((t = d.showDialog) == null || t.call(d));
2135
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = u.showDialog) == null || t.call(u));
2132
2136
  });
2133
2137
  }
2134
2138
  cancelDialog() {
2135
2139
  return a(this, null, function* () {
2136
2140
  var t;
2137
- window.__MICRO_APP_ENVIRONMENT__ && ((t = d.cancelDialog) == null || t.call(d));
2141
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = u.cancelDialog) == null || t.call(u));
2138
2142
  });
2139
2143
  }
2140
2144
  getMiniAppKong(t) {
@@ -2142,7 +2146,7 @@ const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2142
2146
  var e, r;
2143
2147
  try {
2144
2148
  if (window.__MICRO_APP_ENVIRONMENT__) {
2145
- const n = (r = (e = d.getMiniAppKong) == null ? void 0 : e.call(d, t)) != null ? r : {};
2149
+ const n = (r = (e = u.getMiniAppKong) == null ? void 0 : e.call(u, t)) != null ? r : {};
2146
2150
  return new Promise((o) => {
2147
2151
  o(n);
2148
2152
  });
@@ -2158,7 +2162,7 @@ const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2158
2162
  closeMiniApp() {
2159
2163
  return a(this, null, function* () {
2160
2164
  var t;
2161
- window.__MICRO_APP_ENVIRONMENT__ && ((t = d.closeMiniApp) == null || t.call(d));
2165
+ window.__MICRO_APP_ENVIRONMENT__ && ((t = u.closeMiniApp) == null || t.call(u));
2162
2166
  });
2163
2167
  }
2164
2168
  getStatus() {
@@ -2177,7 +2181,7 @@ const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2177
2181
  try {
2178
2182
  return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => a(this, null, function* () {
2179
2183
  var r;
2180
- e((yield (r = d == null ? void 0 : d.dispatchToShell) == null ? void 0 : r.call(d, t)) || {});
2184
+ e((yield (r = u == null ? void 0 : u.dispatchToShell) == null ? void 0 : r.call(u, t)) || {});
2181
2185
  })) : new Promise((e) => {
2182
2186
  e(t);
2183
2187
  });
@@ -2189,7 +2193,7 @@ const Pt = Object.freeze(Object.defineProperty({ __proto__: null, PluginsWeb: cl
2189
2193
  try {
2190
2194
  return window.__MICRO_APP_ENVIRONMENT__ ? new Promise((e) => a(this, null, function* () {
2191
2195
  var r;
2192
- e((yield (r = d == null ? void 0 : d.getMiniAppInfo) == null ? void 0 : r.call(d, t)) || {});
2196
+ e((yield (r = u == null ? void 0 : u.getMiniAppInfo) == null ? void 0 : r.call(u, t)) || {});
2193
2197
  })) : new Promise((e) => {
2194
2198
  e({});
2195
2199
  });