promogame-player 0.0.12 → 0.0.13
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/dist/components/PromogameGame/index.js +553 -549
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as es, Fragment as
|
|
1
|
+
import { jsx as es, Fragment as td } from "react/jsx-runtime";
|
|
2
2
|
import * as ts from "react";
|
|
3
|
-
import
|
|
3
|
+
import nd, { useMemo as ns, useEffect as rs } from "react";
|
|
4
4
|
import { graphql as Eo } from "../../gql/gql.js";
|
|
5
|
-
import { UnityGame as
|
|
6
|
-
function
|
|
5
|
+
import { UnityGame as rd } from "./unity-game.js";
|
|
6
|
+
function id(t, e) {
|
|
7
7
|
for (var n = 0; n < e.length; n++) {
|
|
8
8
|
const r = e[n];
|
|
9
9
|
if (typeof r != "string" && !Array.isArray(r)) {
|
|
@@ -144,7 +144,7 @@ function Oe(t, e, n) {
|
|
|
144
144
|
(a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
|
|
145
145
|
return t.concat(a || Array.prototype.slice.call(e));
|
|
146
146
|
}
|
|
147
|
-
var oi = "Invariant Violation", is = Object.setPrototypeOf,
|
|
147
|
+
var oi = "Invariant Violation", is = Object.setPrototypeOf, ad = is === void 0 ? function(t, e) {
|
|
148
148
|
return t.__proto__ = e, t;
|
|
149
149
|
} : is, lc = (
|
|
150
150
|
/** @class */
|
|
@@ -153,7 +153,7 @@ var oi = "Invariant Violation", is = Object.setPrototypeOf, id = is === void 0 ?
|
|
|
153
153
|
function e(n) {
|
|
154
154
|
n === void 0 && (n = oi);
|
|
155
155
|
var r = t.call(this, typeof n == "number" ? oi + ": " + n + " (see https://github.com/apollographql/invariant-packages)" : n) || this;
|
|
156
|
-
return r.framesToPop = 1, r.name = oi,
|
|
156
|
+
return r.framesToPop = 1, r.name = oi, ad(r, e.prototype), r;
|
|
157
157
|
}
|
|
158
158
|
return e;
|
|
159
159
|
}(Error)
|
|
@@ -162,10 +162,10 @@ function Mt(t, e) {
|
|
|
162
162
|
if (!t)
|
|
163
163
|
throw new lc(e);
|
|
164
164
|
}
|
|
165
|
-
var fc = ["debug", "log", "warn", "error", "silent"],
|
|
165
|
+
var fc = ["debug", "log", "warn", "error", "silent"], od = fc.indexOf("log");
|
|
166
166
|
function fr(t) {
|
|
167
167
|
return function() {
|
|
168
|
-
if (fc.indexOf(t) >=
|
|
168
|
+
if (fc.indexOf(t) >= od) {
|
|
169
169
|
var e = console[t] || console.log;
|
|
170
170
|
return e.apply(console, arguments);
|
|
171
171
|
}
|
|
@@ -258,7 +258,7 @@ function To(t, e) {
|
|
|
258
258
|
args: e.map(pc)
|
|
259
259
|
})));
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function sd(t, e) {
|
|
262
262
|
if (!!!t)
|
|
263
263
|
throw new Error(e);
|
|
264
264
|
}
|
|
@@ -336,10 +336,10 @@ const hc = {
|
|
|
336
336
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
337
337
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
338
338
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
339
|
-
},
|
|
339
|
+
}, ud = new Set(Object.keys(hc));
|
|
340
340
|
function ss(t) {
|
|
341
341
|
const e = t == null ? void 0 : t.kind;
|
|
342
|
-
return typeof e == "string" &&
|
|
342
|
+
return typeof e == "string" && ud.has(e);
|
|
343
343
|
}
|
|
344
344
|
var us;
|
|
345
345
|
(function(t) {
|
|
@@ -352,7 +352,7 @@ var fe;
|
|
|
352
352
|
function cs(t) {
|
|
353
353
|
return t === 9 || t === 32;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function cd(t, e) {
|
|
356
356
|
const n = t.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, a = r.length > 1 && r.slice(1).every((p) => p.length === 0 || cs(p.charCodeAt(0))), o = n.endsWith('\\"""'), s = t.endsWith('"') && !o, u = t.endsWith("\\"), c = s || u, l = (
|
|
357
357
|
// add leading and trailing new lines only if it improves readability
|
|
358
358
|
!i || t.length > 70 || c || a || o
|
|
@@ -363,8 +363,8 @@ function ud(t, e) {
|
|
|
363
363
|
`), f += n, (l || c) && (f += `
|
|
364
364
|
`), '"""' + f + '"""';
|
|
365
365
|
}
|
|
366
|
-
const
|
|
367
|
-
function
|
|
366
|
+
const ld = 10, vc = 2;
|
|
367
|
+
function fd(t) {
|
|
368
368
|
return qr(t, []);
|
|
369
369
|
}
|
|
370
370
|
function qr(t, e) {
|
|
@@ -374,45 +374,45 @@ function qr(t, e) {
|
|
|
374
374
|
case "function":
|
|
375
375
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
376
376
|
case "object":
|
|
377
|
-
return
|
|
377
|
+
return dd(t, e);
|
|
378
378
|
default:
|
|
379
379
|
return String(t);
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function dd(t, e) {
|
|
383
383
|
if (t === null)
|
|
384
384
|
return "null";
|
|
385
385
|
if (e.includes(t))
|
|
386
386
|
return "[Circular]";
|
|
387
387
|
const n = [...e, t];
|
|
388
|
-
if (
|
|
388
|
+
if (pd(t)) {
|
|
389
389
|
const r = t.toJSON();
|
|
390
390
|
if (r !== t)
|
|
391
391
|
return typeof r == "string" ? r : qr(r, n);
|
|
392
392
|
} else if (Array.isArray(t))
|
|
393
|
-
return
|
|
394
|
-
return
|
|
393
|
+
return vd(t, n);
|
|
394
|
+
return hd(t, n);
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function pd(t) {
|
|
397
397
|
return typeof t.toJSON == "function";
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function hd(t, e) {
|
|
400
400
|
const n = Object.entries(t);
|
|
401
|
-
return n.length === 0 ? "{}" : e.length > vc ? "[" +
|
|
401
|
+
return n.length === 0 ? "{}" : e.length > vc ? "[" + md(t) + "]" : "{ " + n.map(
|
|
402
402
|
([i, a]) => i + ": " + qr(a, e)
|
|
403
403
|
).join(", ") + " }";
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function vd(t, e) {
|
|
406
406
|
if (t.length === 0)
|
|
407
407
|
return "[]";
|
|
408
408
|
if (e.length > vc)
|
|
409
409
|
return "[Array]";
|
|
410
|
-
const n = Math.min(
|
|
410
|
+
const n = Math.min(ld, t.length), r = t.length - n, i = [];
|
|
411
411
|
for (let a = 0; a < n; ++a)
|
|
412
412
|
i.push(qr(t[a], e));
|
|
413
413
|
return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function md(t) {
|
|
416
416
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
417
417
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
418
418
|
const n = t.constructor.name;
|
|
@@ -421,14 +421,14 @@ function vd(t) {
|
|
|
421
421
|
}
|
|
422
422
|
return e;
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
return `"${t.replace(
|
|
424
|
+
function yd(t) {
|
|
425
|
+
return `"${t.replace(gd, _d)}"`;
|
|
426
426
|
}
|
|
427
|
-
const
|
|
428
|
-
function
|
|
429
|
-
return
|
|
427
|
+
const gd = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
428
|
+
function _d(t) {
|
|
429
|
+
return bd[t.charCodeAt(0)];
|
|
430
430
|
}
|
|
431
|
-
const
|
|
431
|
+
const bd = [
|
|
432
432
|
"\\u0000",
|
|
433
433
|
"\\u0001",
|
|
434
434
|
"\\u0002",
|
|
@@ -598,7 +598,7 @@ const _d = [
|
|
|
598
598
|
function qe(t, e, n = hc) {
|
|
599
599
|
const r = /* @__PURE__ */ new Map();
|
|
600
600
|
for (const m of Object.values(fe))
|
|
601
|
-
r.set(m,
|
|
601
|
+
r.set(m, Ed(e, m));
|
|
602
602
|
let i, a = Array.isArray(t), o = [t], s = -1, u = [], c = t, l, f;
|
|
603
603
|
const d = [], p = [];
|
|
604
604
|
do {
|
|
@@ -627,7 +627,7 @@ function qe(t, e, n = hc) {
|
|
|
627
627
|
let S;
|
|
628
628
|
if (!Array.isArray(c)) {
|
|
629
629
|
var y, g;
|
|
630
|
-
ss(c) ||
|
|
630
|
+
ss(c) || sd(!1, `Invalid AST Node: ${fd(c)}.`);
|
|
631
631
|
const O = m ? (y = r.get(c.kind)) === null || y === void 0 ? void 0 : y.leave : (g = r.get(c.kind)) === null || g === void 0 ? void 0 : g.enter;
|
|
632
632
|
if (S = O == null ? void 0 : O.call(e, c, l, f, d, p), S === Qr)
|
|
633
633
|
break;
|
|
@@ -659,7 +659,7 @@ function qe(t, e, n = hc) {
|
|
|
659
659
|
} while (i !== void 0);
|
|
660
660
|
return u.length !== 0 ? u[u.length - 1][1] : t;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Ed(t, e) {
|
|
663
663
|
const n = t[e];
|
|
664
664
|
return typeof n == "object" ? n : typeof n == "function" ? {
|
|
665
665
|
enter: n,
|
|
@@ -669,10 +669,10 @@ function bd(t, e) {
|
|
|
669
669
|
leave: t.leave
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
|
-
function
|
|
673
|
-
return qe(t,
|
|
672
|
+
function wd(t) {
|
|
673
|
+
return qe(t, Td);
|
|
674
674
|
}
|
|
675
|
-
const
|
|
675
|
+
const Sd = 80, Td = {
|
|
676
676
|
Name: {
|
|
677
677
|
leave: (t) => t.value
|
|
678
678
|
},
|
|
@@ -708,7 +708,7 @@ const wd = 80, Sd = {
|
|
|
708
708
|
leave({ alias: t, name: e, arguments: n, directives: r, selectionSet: i }) {
|
|
709
709
|
const a = te("", t, ": ") + e;
|
|
710
710
|
let o = a + te("(", j(n, ", "), ")");
|
|
711
|
-
return o.length >
|
|
711
|
+
return o.length > Sd && (o = a + te(`(
|
|
712
712
|
`, gr(j(n, `
|
|
713
713
|
`)), `
|
|
714
714
|
)`)), j([o, j(r, " "), i], " ");
|
|
@@ -746,7 +746,7 @@ const wd = 80, Sd = {
|
|
|
746
746
|
leave: ({ value: t }) => t
|
|
747
747
|
},
|
|
748
748
|
StringValue: {
|
|
749
|
-
leave: ({ value: t, block: e }) => e ?
|
|
749
|
+
leave: ({ value: t, block: e }) => e ? cd(t) : yd(t)
|
|
750
750
|
},
|
|
751
751
|
BooleanValue: {
|
|
752
752
|
leave: ({ value: t }) => t ? "true" : "false"
|
|
@@ -936,7 +936,7 @@ function fs(t) {
|
|
|
936
936
|
}
|
|
937
937
|
function ar(t, e) {
|
|
938
938
|
var n = t.directives;
|
|
939
|
-
return !n || !n.length ? !0 :
|
|
939
|
+
return !n || !n.length ? !0 : Pd(n).every(function(r) {
|
|
940
940
|
var i = r.directive, a = r.ifArgument, o = !1;
|
|
941
941
|
return a.value.kind === "Variable" ? (o = e && e[a.value.name.value], L(o !== void 0, 78, i.name.value)) : o = a.value.value, i.name.value === "skip" ? !o : o;
|
|
942
942
|
});
|
|
@@ -950,17 +950,17 @@ function Un(t, e, n) {
|
|
|
950
950
|
}
|
|
951
951
|
}), n ? !r.size : r.size < i;
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function Od(t) {
|
|
954
954
|
return t && Un(["client", "export"], t, !0);
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function Id(t) {
|
|
957
957
|
var e = t.name.value;
|
|
958
958
|
return e === "skip" || e === "include";
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function Pd(t) {
|
|
961
961
|
var e = [];
|
|
962
962
|
return t && t.length && t.forEach(function(n) {
|
|
963
|
-
if (
|
|
963
|
+
if (Id(n)) {
|
|
964
964
|
var r = n.arguments, i = n.name.value;
|
|
965
965
|
L(r && r.length === 1, 79, i);
|
|
966
966
|
var a = r[0];
|
|
@@ -970,7 +970,7 @@ function Id(t) {
|
|
|
970
970
|
}
|
|
971
971
|
}), e;
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function Ad(t) {
|
|
974
974
|
var e, n, r = (e = t.directives) === null || e === void 0 ? void 0 : e.find(function(a) {
|
|
975
975
|
var o = a.name;
|
|
976
976
|
return o.value === "unmask";
|
|
@@ -983,9 +983,9 @@ function Pd(t) {
|
|
|
983
983
|
});
|
|
984
984
|
return globalThis.__DEV__ !== !1 && i && (i.value.kind === fe.VARIABLE ? globalThis.__DEV__ !== !1 && L.warn(82) : i.value.kind !== fe.STRING ? globalThis.__DEV__ !== !1 && L.warn(83) : i.value.value !== "migrate" && globalThis.__DEV__ !== !1 && L.warn(84, i.value.value)), i && "value" in i.value && i.value.value === "migrate" ? "migrate" : "unmask";
|
|
985
985
|
}
|
|
986
|
-
const
|
|
986
|
+
const kd = () => /* @__PURE__ */ Object.create(null), { forEach: Cd, slice: ds } = Array.prototype, { hasOwnProperty: Nd } = Object.prototype;
|
|
987
987
|
class ht {
|
|
988
|
-
constructor(e = !0, n =
|
|
988
|
+
constructor(e = !0, n = kd) {
|
|
989
989
|
this.weakness = e, this.makeData = n;
|
|
990
990
|
}
|
|
991
991
|
lookup() {
|
|
@@ -993,7 +993,7 @@ class ht {
|
|
|
993
993
|
}
|
|
994
994
|
lookupArray(e) {
|
|
995
995
|
let n = this;
|
|
996
|
-
return
|
|
996
|
+
return Cd.call(e, (r) => n = n.getChildTrie(r)), Nd.call(n, "data") ? n.data : n.data = this.makeData(ds.call(e));
|
|
997
997
|
}
|
|
998
998
|
peek() {
|
|
999
999
|
return this.peekArray(arguments);
|
|
@@ -1024,10 +1024,10 @@ class ht {
|
|
|
1024
1024
|
return r || n.set(e, r = new ht(this.weakness, this.makeData)), r;
|
|
1025
1025
|
}
|
|
1026
1026
|
mapFor(e, n) {
|
|
1027
|
-
return this.weakness &&
|
|
1027
|
+
return this.weakness && Dd(e) ? this.weak || (n ? this.weak = /* @__PURE__ */ new WeakMap() : void 0) : this.strong || (n ? this.strong = /* @__PURE__ */ new Map() : void 0);
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Dd(t) {
|
|
1031
1031
|
switch (typeof t) {
|
|
1032
1032
|
case "object":
|
|
1033
1033
|
if (t === null)
|
|
@@ -1042,7 +1042,7 @@ var mc = Ve(function() {
|
|
|
1042
1042
|
return navigator.product;
|
|
1043
1043
|
}) == "ReactNative", Qt = typeof WeakMap == "function" && !(mc && !global.HermesInternal), Oo = typeof WeakSet == "function", Io = typeof Symbol == "function" && typeof Symbol.for == "function", Zr = Io && Symbol.asyncIterator, yc = typeof Ve(function() {
|
|
1044
1044
|
return window.document.createElement;
|
|
1045
|
-
}) == "function",
|
|
1045
|
+
}) == "function", Rd = (
|
|
1046
1046
|
// Following advice found in this comment from @domenic (maintainer of jsdom):
|
|
1047
1047
|
// https://github.com/jsdom/jsdom/issues/1537#issuecomment-229405327
|
|
1048
1048
|
//
|
|
@@ -1054,11 +1054,11 @@ var mc = Ve(function() {
|
|
|
1054
1054
|
Ve(function() {
|
|
1055
1055
|
return navigator.userAgent.indexOf("jsdom") >= 0;
|
|
1056
1056
|
}) || !1
|
|
1057
|
-
),
|
|
1057
|
+
), Md = (yc || mc) && !Rd;
|
|
1058
1058
|
function me(t) {
|
|
1059
1059
|
return t !== null && typeof t == "object";
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function xd(t, e) {
|
|
1062
1062
|
var n = e, r = [];
|
|
1063
1063
|
t.definitions.forEach(function(a) {
|
|
1064
1064
|
if (a.kind === "OperationDefinition")
|
|
@@ -1112,7 +1112,7 @@ function Gr(t, e) {
|
|
|
1112
1112
|
return null;
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Ld(t) {
|
|
1116
1116
|
var e = !0;
|
|
1117
1117
|
return qe(t, {
|
|
1118
1118
|
FragmentSpread: function(n) {
|
|
@@ -1123,10 +1123,10 @@ function xd(t) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
}), e;
|
|
1125
1125
|
}
|
|
1126
|
-
function
|
|
1126
|
+
function $d() {
|
|
1127
1127
|
}
|
|
1128
1128
|
class xi {
|
|
1129
|
-
constructor(e = 1 / 0, n =
|
|
1129
|
+
constructor(e = 1 / 0, n = $d) {
|
|
1130
1130
|
this.max = e, this.dispose = n, this.map = /* @__PURE__ */ new Map(), this.newest = null, this.oldest = null;
|
|
1131
1131
|
}
|
|
1132
1132
|
has(e) {
|
|
@@ -1167,28 +1167,28 @@ class xi {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
function Li() {
|
|
1169
1169
|
}
|
|
1170
|
-
const
|
|
1170
|
+
const jd = Li, Fd = typeof WeakRef < "u" ? WeakRef : function(t) {
|
|
1171
1171
|
return { deref: () => t };
|
|
1172
|
-
},
|
|
1172
|
+
}, Ud = typeof WeakMap < "u" ? WeakMap : Map, Vd = typeof FinalizationRegistry < "u" ? FinalizationRegistry : function() {
|
|
1173
1173
|
return {
|
|
1174
1174
|
register: Li,
|
|
1175
1175
|
unregister: Li
|
|
1176
1176
|
};
|
|
1177
|
-
},
|
|
1177
|
+
}, Bd = 10024;
|
|
1178
1178
|
class Or {
|
|
1179
|
-
constructor(e = 1 / 0, n =
|
|
1180
|
-
this.max = e, this.dispose = n, this.map = new
|
|
1179
|
+
constructor(e = 1 / 0, n = jd) {
|
|
1180
|
+
this.max = e, this.dispose = n, this.map = new Ud(), this.newest = null, this.oldest = null, this.unfinalizedNodes = /* @__PURE__ */ new Set(), this.finalizationScheduled = !1, this.size = 0, this.finalize = () => {
|
|
1181
1181
|
const r = this.unfinalizedNodes.values();
|
|
1182
|
-
for (let i = 0; i <
|
|
1182
|
+
for (let i = 0; i < Bd; i++) {
|
|
1183
1183
|
const a = r.next().value;
|
|
1184
1184
|
if (!a)
|
|
1185
1185
|
break;
|
|
1186
1186
|
this.unfinalizedNodes.delete(a);
|
|
1187
1187
|
const o = a.key;
|
|
1188
|
-
delete a.key, a.keyRef = new
|
|
1188
|
+
delete a.key, a.keyRef = new Fd(o), this.registry.register(o, a, a);
|
|
1189
1189
|
}
|
|
1190
1190
|
this.unfinalizedNodes.size > 0 ? queueMicrotask(this.finalize) : this.finalizationScheduled = !1;
|
|
1191
|
-
}, this.registry = new
|
|
1191
|
+
}, this.registry = new Vd(this.deleteNode.bind(this));
|
|
1192
1192
|
}
|
|
1193
1193
|
has(e) {
|
|
1194
1194
|
return this.map.has(e);
|
|
@@ -1243,18 +1243,18 @@ var Po = function(t, e) {
|
|
|
1243
1243
|
var a = Or.prototype.set.call(this, r, i);
|
|
1244
1244
|
return gc(this), a;
|
|
1245
1245
|
}, n;
|
|
1246
|
-
},
|
|
1246
|
+
}, zd = function(t, e) {
|
|
1247
1247
|
var n = new xi(t, e);
|
|
1248
1248
|
return n.set = function(r, i) {
|
|
1249
1249
|
var a = xi.prototype.set.call(this, r, i);
|
|
1250
1250
|
return gc(this), a;
|
|
1251
1251
|
}, n;
|
|
1252
|
-
},
|
|
1252
|
+
}, Wd = Symbol.for("apollo.cacheSize"), Ye = b({}, Ri[Wd]), Rt = {};
|
|
1253
1253
|
function Ao(t, e) {
|
|
1254
1254
|
Rt[t] = e;
|
|
1255
1255
|
}
|
|
1256
|
-
var
|
|
1257
|
-
function
|
|
1256
|
+
var qd = globalThis.__DEV__ !== !1 ? Hd : void 0, Qd = globalThis.__DEV__ !== !1 ? Jd : void 0, Zd = globalThis.__DEV__ !== !1 ? _c : void 0;
|
|
1257
|
+
function Gd() {
|
|
1258
1258
|
var t = {
|
|
1259
1259
|
parser: 1e3,
|
|
1260
1260
|
canonicalStringify: 1e3,
|
|
@@ -1279,12 +1279,12 @@ function Zd() {
|
|
|
1279
1279
|
];
|
|
1280
1280
|
}));
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function Hd() {
|
|
1283
1283
|
var t, e, n, r, i;
|
|
1284
1284
|
if (globalThis.__DEV__ === !1)
|
|
1285
1285
|
throw new Error("only supported in development mode");
|
|
1286
1286
|
return {
|
|
1287
|
-
limits:
|
|
1287
|
+
limits: Gd(),
|
|
1288
1288
|
sizes: b({ print: (t = Rt.print) === null || t === void 0 ? void 0 : t.call(Rt), parser: (e = Rt.parser) === null || e === void 0 ? void 0 : e.call(Rt), canonicalStringify: (n = Rt.canonicalStringify) === null || n === void 0 ? void 0 : n.call(Rt), links: ji(this.link), queryManager: {
|
|
1289
1289
|
getDocumentInfo: this.queryManager.transformCache.size,
|
|
1290
1290
|
documentTransforms: Ec(this.queryManager.documentTransform)
|
|
@@ -1298,7 +1298,7 @@ function _c() {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
};
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Jd() {
|
|
1302
1302
|
var t = this.config.fragments;
|
|
1303
1303
|
return b(b({}, _c.apply(this)), { addTypenameDocumentTransform: Ec(this.addTypenameTransform), inMemoryCache: {
|
|
1304
1304
|
executeSelectionSet: Et(this.storeReader.executeSelectionSet),
|
|
@@ -1310,11 +1310,11 @@ function Hd() {
|
|
|
1310
1310
|
transform: Et(t == null ? void 0 : t.transform)
|
|
1311
1311
|
} });
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Kd(t) {
|
|
1314
1314
|
return !!t && "dirtyKey" in t;
|
|
1315
1315
|
}
|
|
1316
1316
|
function Et(t) {
|
|
1317
|
-
return
|
|
1317
|
+
return Kd(t) ? t.size : void 0;
|
|
1318
1318
|
}
|
|
1319
1319
|
function bc(t) {
|
|
1320
1320
|
return t != null;
|
|
@@ -1336,10 +1336,10 @@ function ji(t) {
|
|
|
1336
1336
|
], ji(t == null ? void 0 : t.left), !0), ji(t == null ? void 0 : t.right), !0).filter(bc) : [];
|
|
1337
1337
|
}
|
|
1338
1338
|
var Tt = Object.assign(function(e) {
|
|
1339
|
-
return JSON.stringify(e,
|
|
1339
|
+
return JSON.stringify(e, Yd);
|
|
1340
1340
|
}, {
|
|
1341
1341
|
reset: function() {
|
|
1342
|
-
en = new
|
|
1342
|
+
en = new zd(
|
|
1343
1343
|
Ye.canonicalStringify || 1e3
|
|
1344
1344
|
/* defaultCacheSizes.canonicalStringify */
|
|
1345
1345
|
);
|
|
@@ -1350,12 +1350,12 @@ globalThis.__DEV__ !== !1 && Ao("canonicalStringify", function() {
|
|
|
1350
1350
|
});
|
|
1351
1351
|
var en;
|
|
1352
1352
|
Tt.reset();
|
|
1353
|
-
function
|
|
1353
|
+
function Yd(t, e) {
|
|
1354
1354
|
if (e && typeof e == "object") {
|
|
1355
1355
|
var n = Object.getPrototypeOf(e);
|
|
1356
1356
|
if (n === Object.prototype || n === null) {
|
|
1357
1357
|
var r = Object.keys(e);
|
|
1358
|
-
if (r.every(
|
|
1358
|
+
if (r.every(Xd))
|
|
1359
1359
|
return e;
|
|
1360
1360
|
var i = JSON.stringify(r), a = en.get(i);
|
|
1361
1361
|
if (!a) {
|
|
@@ -1371,7 +1371,7 @@ function Kd(t, e) {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
return e;
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function Xd(t, e, n) {
|
|
1375
1375
|
return e === 0 || n[e - 1] <= t;
|
|
1376
1376
|
}
|
|
1377
1377
|
function an(t) {
|
|
@@ -1380,62 +1380,62 @@ function an(t) {
|
|
|
1380
1380
|
function se(t) {
|
|
1381
1381
|
return !!(t && typeof t == "object" && typeof t.__ref == "string");
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function ep(t) {
|
|
1384
1384
|
return me(t) && t.kind === "Document" && Array.isArray(t.definitions);
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function tp(t) {
|
|
1387
1387
|
return t.kind === "StringValue";
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function np(t) {
|
|
1390
1390
|
return t.kind === "BooleanValue";
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function rp(t) {
|
|
1393
1393
|
return t.kind === "IntValue";
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function ip(t) {
|
|
1396
1396
|
return t.kind === "FloatValue";
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function ap(t) {
|
|
1399
1399
|
return t.kind === "Variable";
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function op(t) {
|
|
1402
1402
|
return t.kind === "ObjectValue";
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function sp(t) {
|
|
1405
1405
|
return t.kind === "ListValue";
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function up(t) {
|
|
1408
1408
|
return t.kind === "EnumValue";
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function cp(t) {
|
|
1411
1411
|
return t.kind === "NullValue";
|
|
1412
1412
|
}
|
|
1413
1413
|
function cn(t, e, n, r) {
|
|
1414
|
-
if (
|
|
1414
|
+
if (rp(n) || ip(n))
|
|
1415
1415
|
t[e.value] = Number(n.value);
|
|
1416
|
-
else if (
|
|
1416
|
+
else if (np(n) || tp(n))
|
|
1417
1417
|
t[e.value] = n.value;
|
|
1418
|
-
else if (
|
|
1418
|
+
else if (op(n)) {
|
|
1419
1419
|
var i = {};
|
|
1420
1420
|
n.fields.map(function(o) {
|
|
1421
1421
|
return cn(i, o.name, o.value, r);
|
|
1422
1422
|
}), t[e.value] = i;
|
|
1423
|
-
} else if (
|
|
1423
|
+
} else if (ap(n)) {
|
|
1424
1424
|
var a = (r || {})[n.name.value];
|
|
1425
1425
|
t[e.value] = a;
|
|
1426
|
-
} else if (
|
|
1426
|
+
} else if (sp(n))
|
|
1427
1427
|
t[e.value] = n.values.map(function(o) {
|
|
1428
1428
|
var s = {};
|
|
1429
1429
|
return cn(s, e, o, r), s[e.value];
|
|
1430
1430
|
});
|
|
1431
|
-
else if (sp(n))
|
|
1432
|
-
t[e.value] = n.value;
|
|
1433
1431
|
else if (up(n))
|
|
1432
|
+
t[e.value] = n.value;
|
|
1433
|
+
else if (cp(n))
|
|
1434
1434
|
t[e.value] = null;
|
|
1435
1435
|
else
|
|
1436
1436
|
throw Ae(96, e.value, n.kind);
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function lp(t, e) {
|
|
1439
1439
|
var n = null;
|
|
1440
1440
|
t.directives && (n = {}, t.directives.forEach(function(i) {
|
|
1441
1441
|
n[i.name.value] = {}, i.arguments && i.arguments.forEach(function(a) {
|
|
@@ -1449,7 +1449,7 @@ function cp(t, e) {
|
|
|
1449
1449
|
return cn(r, a, o, e);
|
|
1450
1450
|
})), wc(t.name.value, r, n);
|
|
1451
1451
|
}
|
|
1452
|
-
var
|
|
1452
|
+
var fp = [
|
|
1453
1453
|
"connection",
|
|
1454
1454
|
"include",
|
|
1455
1455
|
"skip",
|
|
@@ -1474,7 +1474,7 @@ var lp = [
|
|
|
1474
1474
|
a += "(".concat(o, ")");
|
|
1475
1475
|
}
|
|
1476
1476
|
return n && Object.keys(n).forEach(function(s) {
|
|
1477
|
-
|
|
1477
|
+
fp.indexOf(s) === -1 && (n[s] && Object.keys(n[s]).length ? a += "@".concat(s, "(").concat(Sn(n[s]), ")") : a += "@".concat(s));
|
|
1478
1478
|
}), a;
|
|
1479
1479
|
}, {
|
|
1480
1480
|
setStringify: function(t) {
|
|
@@ -1515,7 +1515,7 @@ function Fi(t, e, n) {
|
|
|
1515
1515
|
function It(t) {
|
|
1516
1516
|
return t.kind === "Field";
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1518
|
+
function dp(t) {
|
|
1519
1519
|
return t.kind === "InlineFragment";
|
|
1520
1520
|
}
|
|
1521
1521
|
function _n(t) {
|
|
@@ -1578,12 +1578,12 @@ function ko(t) {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
let Te = null;
|
|
1580
1580
|
const ps = {};
|
|
1581
|
-
let
|
|
1582
|
-
const
|
|
1581
|
+
let pp = 1;
|
|
1582
|
+
const hp = () => class {
|
|
1583
1583
|
constructor() {
|
|
1584
1584
|
this.id = [
|
|
1585
1585
|
"slot",
|
|
1586
|
-
|
|
1586
|
+
pp++,
|
|
1587
1587
|
Date.now(),
|
|
1588
1588
|
Math.random().toString(36).slice(2)
|
|
1589
1589
|
].join(":");
|
|
@@ -1646,7 +1646,7 @@ function hs(t) {
|
|
|
1646
1646
|
} catch {
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
|
-
const ui = "@wry/context:Slot",
|
|
1649
|
+
const ui = "@wry/context:Slot", vp = (
|
|
1650
1650
|
// Prefer globalThis when available.
|
|
1651
1651
|
// https://github.com/benjamn/wryware/issues/347
|
|
1652
1652
|
hs(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
|
|
@@ -1656,7 +1656,7 @@ const ui = "@wry/context:Slot", hp = (
|
|
|
1656
1656
|
// back to using the Array constructor as a namespace, but that was flagged in
|
|
1657
1657
|
// https://github.com/benjamn/wryware/issues/347, and can be avoided.
|
|
1658
1658
|
/* @__PURE__ */ Object.create(null)
|
|
1659
|
-
), vs =
|
|
1659
|
+
), vs = vp, sr = vs[ui] || // Earlier versions of this package stored the globalKey property on the Array
|
|
1660
1660
|
// constructor, so we check there as well, to prevent Slot class duplication.
|
|
1661
1661
|
Array[ui] || function(t) {
|
|
1662
1662
|
try {
|
|
@@ -1675,7 +1675,7 @@ Array[ui] || function(t) {
|
|
|
1675
1675
|
} finally {
|
|
1676
1676
|
return t;
|
|
1677
1677
|
}
|
|
1678
|
-
}(
|
|
1678
|
+
}(hp()), { bind: w0, noContext: S0 } = sr, Jr = new sr(), { hasOwnProperty: mp } = Object.prototype, Co = Array.from || function(t) {
|
|
1679
1679
|
const e = [];
|
|
1680
1680
|
return t.forEach((n) => e.push(n)), e;
|
|
1681
1681
|
};
|
|
@@ -1683,7 +1683,7 @@ function No(t) {
|
|
|
1683
1683
|
const { unsubscribe: e } = t;
|
|
1684
1684
|
typeof e == "function" && (t.unsubscribe = void 0, e());
|
|
1685
1685
|
}
|
|
1686
|
-
const Vn = [],
|
|
1686
|
+
const Vn = [], yp = 100;
|
|
1687
1687
|
function ln(t, e) {
|
|
1688
1688
|
if (!t)
|
|
1689
1689
|
throw new Error(e || "assertion failure");
|
|
@@ -1725,7 +1725,7 @@ class Kr {
|
|
|
1725
1725
|
// usually false, (2) this.dirtyChildren is usually null/empty, and thus
|
|
1726
1726
|
// (3) valueGet(this.value) is usually returned without recomputation.
|
|
1727
1727
|
recompute(e) {
|
|
1728
|
-
return ln(!this.recomputing, "already recomputing"), ms(this), Pt(this) ?
|
|
1728
|
+
return ln(!this.recomputing, "already recomputing"), ms(this), Pt(this) ? gp(this, e) : Ic(this.value);
|
|
1729
1729
|
}
|
|
1730
1730
|
setDirty() {
|
|
1731
1731
|
this.dirty || (this.dirty = !0, Ac(this), No(this));
|
|
@@ -1751,10 +1751,10 @@ function ms(t) {
|
|
|
1751
1751
|
if (e)
|
|
1752
1752
|
return t.parents.add(e), e.childValues.has(t) || e.childValues.set(t, []), Pt(t) ? Cc(e, t) : Nc(e, t), e;
|
|
1753
1753
|
}
|
|
1754
|
-
function yp(t, e) {
|
|
1755
|
-
return Rc(t), Jr.withValue(t, gp, [t, e]), bp(t, e) && _p(t), Ic(t.value);
|
|
1756
|
-
}
|
|
1757
1754
|
function gp(t, e) {
|
|
1755
|
+
return Rc(t), Jr.withValue(t, _p, [t, e]), Ep(t, e) && bp(t), Ic(t.value);
|
|
1756
|
+
}
|
|
1757
|
+
function _p(t, e) {
|
|
1758
1758
|
t.recomputing = !0;
|
|
1759
1759
|
const { normalizeResult: n } = t;
|
|
1760
1760
|
let r;
|
|
@@ -1773,7 +1773,7 @@ function gp(t, e) {
|
|
|
1773
1773
|
function Pt(t) {
|
|
1774
1774
|
return t.dirty || !!(t.dirtyChildren && t.dirtyChildren.size);
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1776
|
+
function bp(t) {
|
|
1777
1777
|
t.dirty = !1, !Pt(t) && kc(t);
|
|
1778
1778
|
}
|
|
1779
1779
|
function Ac(t) {
|
|
@@ -1806,7 +1806,7 @@ function Nc(t, e) {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
function Dc(t, e) {
|
|
1808
1808
|
const n = t.dirtyChildren;
|
|
1809
|
-
n && (n.delete(e), n.size === 0 && (Vn.length <
|
|
1809
|
+
n && (n.delete(e), n.size === 0 && (Vn.length < yp && Vn.push(n), t.dirtyChildren = null));
|
|
1810
1810
|
}
|
|
1811
1811
|
function Rc(t) {
|
|
1812
1812
|
t.childValues.size > 0 && t.childValues.forEach((e, n) => {
|
|
@@ -1816,7 +1816,7 @@ function Rc(t) {
|
|
|
1816
1816
|
function Mc(t, e) {
|
|
1817
1817
|
e.parents.delete(t), t.childValues.delete(e), Dc(t, e);
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function Ep(t, e) {
|
|
1820
1820
|
if (typeof t.subscribe == "function")
|
|
1821
1821
|
try {
|
|
1822
1822
|
No(t), t.unsubscribe = t.subscribe.apply(null, e);
|
|
@@ -1825,7 +1825,7 @@ function bp(t, e) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
return !0;
|
|
1827
1827
|
}
|
|
1828
|
-
const
|
|
1828
|
+
const wp = {
|
|
1829
1829
|
setDirty: !0,
|
|
1830
1830
|
dispose: !0,
|
|
1831
1831
|
forget: !0
|
|
@@ -1843,17 +1843,17 @@ function xc(t) {
|
|
|
1843
1843
|
return n.dirty = function(i, a) {
|
|
1844
1844
|
const o = e.get(i);
|
|
1845
1845
|
if (o) {
|
|
1846
|
-
const s = a &&
|
|
1846
|
+
const s = a && mp.call(wp, a) ? a : "setDirty";
|
|
1847
1847
|
Co(o).forEach((u) => u[s]()), e.delete(i), No(o);
|
|
1848
1848
|
}
|
|
1849
1849
|
}, n;
|
|
1850
1850
|
}
|
|
1851
1851
|
let ys;
|
|
1852
|
-
function
|
|
1852
|
+
function Sp(...t) {
|
|
1853
1853
|
return (ys || (ys = new ht(typeof WeakMap == "function"))).lookupArray(t);
|
|
1854
1854
|
}
|
|
1855
1855
|
const ci = /* @__PURE__ */ new Set();
|
|
1856
|
-
function Bn(t, { max: e = Math.pow(2, 16), keyArgs: n, makeCacheKey: r =
|
|
1856
|
+
function Bn(t, { max: e = Math.pow(2, 16), keyArgs: n, makeCacheKey: r = Sp, normalizeResult: i, subscribe: a, cache: o = xi } = /* @__PURE__ */ Object.create(null)) {
|
|
1857
1857
|
const s = typeof o == "function" ? new o(e, (d) => d.dispose()) : o, u = function() {
|
|
1858
1858
|
const d = r.apply(null, n ? n.apply(null, arguments) : arguments);
|
|
1859
1859
|
if (d === void 0)
|
|
@@ -1899,7 +1899,7 @@ function Bn(t, { max: e = Math.pow(2, 16), keyArgs: n, makeCacheKey: r = wp, nor
|
|
|
1899
1899
|
return r.apply(null, n.apply(null, arguments));
|
|
1900
1900
|
} : r, Object.freeze(u);
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function Tp(t) {
|
|
1903
1903
|
return t;
|
|
1904
1904
|
}
|
|
1905
1905
|
var Lc = (
|
|
@@ -1911,7 +1911,7 @@ var Lc = (
|
|
|
1911
1911
|
return t.prototype.getCacheKey = function(e) {
|
|
1912
1912
|
return [e];
|
|
1913
1913
|
}, t.identity = function() {
|
|
1914
|
-
return new t(
|
|
1914
|
+
return new t(Tp, { cache: !1 });
|
|
1915
1915
|
}, t.split = function(e, n, r) {
|
|
1916
1916
|
return r === void 0 && (r = t.identity()), Object.assign(new t(
|
|
1917
1917
|
function(i) {
|
|
@@ -1958,7 +1958,7 @@ var Lc = (
|
|
|
1958
1958
|
}()
|
|
1959
1959
|
), Nn, xt = Object.assign(function(t) {
|
|
1960
1960
|
var e = Nn.get(t);
|
|
1961
|
-
return e || (e =
|
|
1961
|
+
return e || (e = wd(t), Nn.set(t, e)), e;
|
|
1962
1962
|
}, {
|
|
1963
1963
|
reset: function() {
|
|
1964
1964
|
Nn = new Po(
|
|
@@ -1987,10 +1987,10 @@ function $c(t, e) {
|
|
|
1987
1987
|
return n.kind === fe.FRAGMENT_SPREAD && $c(e[n.name.value], e);
|
|
1988
1988
|
});
|
|
1989
1989
|
}
|
|
1990
|
-
function
|
|
1990
|
+
function Op(t) {
|
|
1991
1991
|
return $c(Ut(t) || Tc(t), gn(bn(t))) ? null : t;
|
|
1992
1992
|
}
|
|
1993
|
-
function
|
|
1993
|
+
function Ip(t) {
|
|
1994
1994
|
var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
1995
1995
|
return t.forEach(function(r) {
|
|
1996
1996
|
r && (r.name ? e.set(r.name, r) : r.test && n.set(r.test, r));
|
|
@@ -2029,7 +2029,7 @@ function jc(t, e) {
|
|
|
2029
2029
|
return globalThis.__DEV__ !== !1 && L.error(97), null;
|
|
2030
2030
|
}, a = 0, o = e.definitions.length - 1; o >= 0; --o)
|
|
2031
2031
|
e.definitions[o].kind === fe.OPERATION_DEFINITION && ++a;
|
|
2032
|
-
var s =
|
|
2032
|
+
var s = Ip(t), u = function(m) {
|
|
2033
2033
|
return Le(m) && m.map(s).some(function(E) {
|
|
2034
2034
|
return E && E.remove;
|
|
2035
2035
|
});
|
|
@@ -2120,7 +2120,7 @@ function jc(t, e) {
|
|
|
2120
2120
|
return null;
|
|
2121
2121
|
}
|
|
2122
2122
|
};
|
|
2123
|
-
return
|
|
2123
|
+
return Op(qe(d, {
|
|
2124
2124
|
// If the fragment is going to be removed, then leaving any dangling
|
|
2125
2125
|
// FragmentSpread nodes with the same name would be a mistake.
|
|
2126
2126
|
FragmentSpread: _,
|
|
@@ -2169,7 +2169,7 @@ var Ro = Object.assign(function(t) {
|
|
|
2169
2169
|
return t === gs;
|
|
2170
2170
|
}
|
|
2171
2171
|
});
|
|
2172
|
-
function
|
|
2172
|
+
function Pp(t) {
|
|
2173
2173
|
var e = or(t), n = e.operation;
|
|
2174
2174
|
if (n === "query")
|
|
2175
2175
|
return t;
|
|
@@ -2194,7 +2194,7 @@ function Fc(t) {
|
|
|
2194
2194
|
], t);
|
|
2195
2195
|
return e;
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function Ap(t) {
|
|
2198
2198
|
return _n(t), qe(t, {
|
|
2199
2199
|
FragmentSpread: function(e) {
|
|
2200
2200
|
var n;
|
|
@@ -2210,7 +2210,7 @@ function Pp(t) {
|
|
|
2210
2210
|
}
|
|
2211
2211
|
});
|
|
2212
2212
|
}
|
|
2213
|
-
var
|
|
2213
|
+
var kp = Object.prototype.hasOwnProperty;
|
|
2214
2214
|
function bs() {
|
|
2215
2215
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
2216
2216
|
t[e] = arguments[e];
|
|
@@ -2223,19 +2223,19 @@ function Yr(t) {
|
|
|
2223
2223
|
e = r.merge(e, t[i]);
|
|
2224
2224
|
return e;
|
|
2225
2225
|
}
|
|
2226
|
-
var
|
|
2226
|
+
var Cp = function(t, e, n) {
|
|
2227
2227
|
return this.merge(t[n], e[n]);
|
|
2228
2228
|
}, At = (
|
|
2229
2229
|
/** @class */
|
|
2230
2230
|
function() {
|
|
2231
2231
|
function t(e) {
|
|
2232
|
-
e === void 0 && (e =
|
|
2232
|
+
e === void 0 && (e = Cp), this.reconciler = e, this.isObject = me, this.pastCopies = /* @__PURE__ */ new Set();
|
|
2233
2233
|
}
|
|
2234
2234
|
return t.prototype.merge = function(e, n) {
|
|
2235
2235
|
for (var r = this, i = [], a = 2; a < arguments.length; a++)
|
|
2236
2236
|
i[a - 2] = arguments[a];
|
|
2237
2237
|
return me(n) && me(e) ? (Object.keys(n).forEach(function(o) {
|
|
2238
|
-
if (
|
|
2238
|
+
if (kp.call(e, o)) {
|
|
2239
2239
|
var s = e[o];
|
|
2240
2240
|
if (n[o] !== s) {
|
|
2241
2241
|
var u = r.reconciler.apply(r, Oe([
|
|
@@ -2253,10 +2253,10 @@ var kp = function(t, e, n) {
|
|
|
2253
2253
|
}, t;
|
|
2254
2254
|
}()
|
|
2255
2255
|
);
|
|
2256
|
-
function
|
|
2256
|
+
function Np(t, e) {
|
|
2257
2257
|
var n = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2258
2258
|
if (n) return (n = n.call(t)).next.bind(n);
|
|
2259
|
-
if (Array.isArray(t) || (n =
|
|
2259
|
+
if (Array.isArray(t) || (n = Dp(t)) || e) {
|
|
2260
2260
|
n && (t = n);
|
|
2261
2261
|
var r = 0;
|
|
2262
2262
|
return function() {
|
|
@@ -2266,7 +2266,7 @@ function Cp(t, e) {
|
|
|
2266
2266
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2267
2267
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function Dp(t, e) {
|
|
2270
2270
|
if (t) {
|
|
2271
2271
|
if (typeof t == "string") return Es(t, e);
|
|
2272
2272
|
var n = Object.prototype.toString.call(t).slice(8, -1);
|
|
@@ -2297,7 +2297,7 @@ var xo = function() {
|
|
|
2297
2297
|
return Lo(t) ? Symbol[t] : "@@" + t;
|
|
2298
2298
|
};
|
|
2299
2299
|
xo() && !Lo("observable") && (Symbol.observable = Symbol("observable"));
|
|
2300
|
-
var
|
|
2300
|
+
var Rp = $o("iterator"), Ui = $o("observable"), Uc = $o("species");
|
|
2301
2301
|
function Ir(t, e) {
|
|
2302
2302
|
var n = t[e];
|
|
2303
2303
|
if (n != null) {
|
|
@@ -2309,7 +2309,7 @@ function Tn(t) {
|
|
|
2309
2309
|
var e = t.constructor;
|
|
2310
2310
|
return e !== void 0 && (e = e[Uc], e === null && (e = void 0)), e !== void 0 ? e : le;
|
|
2311
2311
|
}
|
|
2312
|
-
function
|
|
2312
|
+
function Mp(t) {
|
|
2313
2313
|
return t instanceof le;
|
|
2314
2314
|
}
|
|
2315
2315
|
function fn(t) {
|
|
@@ -2343,7 +2343,7 @@ function Vc(t) {
|
|
|
2343
2343
|
function Vi(t) {
|
|
2344
2344
|
t._observer = void 0, t._queue = void 0, t._state = "closed";
|
|
2345
2345
|
}
|
|
2346
|
-
function
|
|
2346
|
+
function xp(t) {
|
|
2347
2347
|
var e = t._queue;
|
|
2348
2348
|
if (e) {
|
|
2349
2349
|
t._queue = void 0, t._state = "ready";
|
|
@@ -2387,17 +2387,17 @@ function li(t, e, n) {
|
|
|
2387
2387
|
type: e,
|
|
2388
2388
|
value: n
|
|
2389
2389
|
}], _r(function() {
|
|
2390
|
-
return
|
|
2390
|
+
return xp(t);
|
|
2391
2391
|
});
|
|
2392
2392
|
return;
|
|
2393
2393
|
}
|
|
2394
2394
|
Bc(t, e, n);
|
|
2395
2395
|
}
|
|
2396
2396
|
}
|
|
2397
|
-
var
|
|
2397
|
+
var Lp = /* @__PURE__ */ function() {
|
|
2398
2398
|
function t(n, r) {
|
|
2399
2399
|
this._cleanup = void 0, this._observer = n, this._queue = void 0, this._state = "initializing";
|
|
2400
|
-
var i = new
|
|
2400
|
+
var i = new $p(this);
|
|
2401
2401
|
try {
|
|
2402
2402
|
this._cleanup = r.call(void 0, i);
|
|
2403
2403
|
} catch (a) {
|
|
@@ -2414,7 +2414,7 @@ var xp = /* @__PURE__ */ function() {
|
|
|
2414
2414
|
return this._state === "closed";
|
|
2415
2415
|
}
|
|
2416
2416
|
}]), t;
|
|
2417
|
-
}(),
|
|
2417
|
+
}(), $p = /* @__PURE__ */ function() {
|
|
2418
2418
|
function t(n) {
|
|
2419
2419
|
this._subscription = n;
|
|
2420
2420
|
}
|
|
@@ -2443,7 +2443,7 @@ var xp = /* @__PURE__ */ function() {
|
|
|
2443
2443
|
next: r,
|
|
2444
2444
|
error: arguments[1],
|
|
2445
2445
|
complete: arguments[2]
|
|
2446
|
-
}), new
|
|
2446
|
+
}), new Lp(r, this._subscriber);
|
|
2447
2447
|
}, e.forEach = function(r) {
|
|
2448
2448
|
var i = this;
|
|
2449
2449
|
return new Promise(function(a, o) {
|
|
@@ -2611,15 +2611,15 @@ var xp = /* @__PURE__ */ function() {
|
|
|
2611
2611
|
if (a) {
|
|
2612
2612
|
var o = a.call(r);
|
|
2613
2613
|
if (Object(o) !== o) throw new TypeError(o + " is not an object");
|
|
2614
|
-
return
|
|
2614
|
+
return Mp(o) && o.constructor === i ? o : new i(function(s) {
|
|
2615
2615
|
return o.subscribe(s);
|
|
2616
2616
|
});
|
|
2617
2617
|
}
|
|
2618
|
-
if (Lo("iterator") && (a = Ir(r,
|
|
2618
|
+
if (Lo("iterator") && (a = Ir(r, Rp), a))
|
|
2619
2619
|
return new i(function(s) {
|
|
2620
2620
|
_r(function() {
|
|
2621
2621
|
if (!s.closed) {
|
|
2622
|
-
for (var u =
|
|
2622
|
+
for (var u = Np(a.call(r)), c; !(c = u()).done; ) {
|
|
2623
2623
|
var l = c.value;
|
|
2624
2624
|
if (s.next(l), s.closed) return;
|
|
2625
2625
|
}
|
|
@@ -2665,7 +2665,7 @@ xo() && Object.defineProperty(le, Symbol("extensions"), {
|
|
|
2665
2665
|
},
|
|
2666
2666
|
configurable: !0
|
|
2667
2667
|
});
|
|
2668
|
-
function
|
|
2668
|
+
function jp(t) {
|
|
2669
2669
|
var e, n = t.Symbol;
|
|
2670
2670
|
if (typeof n == "function")
|
|
2671
2671
|
if (n.observable)
|
|
@@ -2683,21 +2683,21 @@ function $p(t) {
|
|
|
2683
2683
|
}
|
|
2684
2684
|
var Kt;
|
|
2685
2685
|
typeof self < "u" ? Kt = self : typeof window < "u" ? Kt = window : typeof global < "u" ? Kt = global : typeof module < "u" ? Kt = module : Kt = Function("return this")();
|
|
2686
|
-
|
|
2686
|
+
jp(Kt);
|
|
2687
2687
|
var Ss = le.prototype, Ts = "@@observable";
|
|
2688
2688
|
Ss[Ts] || (Ss[Ts] = function() {
|
|
2689
2689
|
return this;
|
|
2690
2690
|
});
|
|
2691
|
-
function
|
|
2691
|
+
function Fp(t) {
|
|
2692
2692
|
return t.catch(function() {
|
|
2693
2693
|
}), t;
|
|
2694
2694
|
}
|
|
2695
|
-
var
|
|
2695
|
+
var Up = Object.prototype.toString;
|
|
2696
2696
|
function zc(t) {
|
|
2697
2697
|
return Bi(t);
|
|
2698
2698
|
}
|
|
2699
2699
|
function Bi(t, e) {
|
|
2700
|
-
switch (
|
|
2700
|
+
switch (Up.call(t)) {
|
|
2701
2701
|
case "[object Array]": {
|
|
2702
2702
|
if (e = e || /* @__PURE__ */ new Map(), e.has(t))
|
|
2703
2703
|
return e.get(t);
|
|
@@ -2718,15 +2718,15 @@ function Bi(t, e) {
|
|
|
2718
2718
|
return t;
|
|
2719
2719
|
}
|
|
2720
2720
|
}
|
|
2721
|
-
function
|
|
2721
|
+
function Vp(t) {
|
|
2722
2722
|
var e = /* @__PURE__ */ new Set([t]);
|
|
2723
2723
|
return e.forEach(function(n) {
|
|
2724
|
-
me(n) &&
|
|
2724
|
+
me(n) && Bp(n) === n && Object.getOwnPropertyNames(n).forEach(function(r) {
|
|
2725
2725
|
me(n[r]) && e.add(n[r]);
|
|
2726
2726
|
});
|
|
2727
2727
|
}), t;
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function Bp(t) {
|
|
2730
2730
|
if (globalThis.__DEV__ !== !1 && !Object.isFrozen(t))
|
|
2731
2731
|
try {
|
|
2732
2732
|
Object.freeze(t);
|
|
@@ -2738,7 +2738,7 @@ function Vp(t) {
|
|
|
2738
2738
|
return t;
|
|
2739
2739
|
}
|
|
2740
2740
|
function dn(t) {
|
|
2741
|
-
return globalThis.__DEV__ !== !1 &&
|
|
2741
|
+
return globalThis.__DEV__ !== !1 && Vp(t), t;
|
|
2742
2742
|
}
|
|
2743
2743
|
function Dn(t, e, n) {
|
|
2744
2744
|
var r = [];
|
|
@@ -2869,13 +2869,13 @@ Wc(Yt);
|
|
|
2869
2869
|
function on(t) {
|
|
2870
2870
|
return "incremental" in t;
|
|
2871
2871
|
}
|
|
2872
|
-
function Bp(t) {
|
|
2873
|
-
return "hasNext" in t && "data" in t;
|
|
2874
|
-
}
|
|
2875
2872
|
function zp(t) {
|
|
2876
|
-
return
|
|
2873
|
+
return "hasNext" in t && "data" in t;
|
|
2877
2874
|
}
|
|
2878
2875
|
function Wp(t) {
|
|
2876
|
+
return on(t) || zp(t);
|
|
2877
|
+
}
|
|
2878
|
+
function qp(t) {
|
|
2879
2879
|
return me(t) && "payload" in t;
|
|
2880
2880
|
}
|
|
2881
2881
|
function qc(t, e) {
|
|
@@ -2923,7 +2923,7 @@ var Qc = function(t, e, n) {
|
|
|
2923
2923
|
var r = new Error(n);
|
|
2924
2924
|
throw r.name = "ServerError", r.response = t, r.statusCode = t.status, r.result = e, r;
|
|
2925
2925
|
};
|
|
2926
|
-
function
|
|
2926
|
+
function Qp(t) {
|
|
2927
2927
|
for (var e = [
|
|
2928
2928
|
"query",
|
|
2929
2929
|
"operationName",
|
|
@@ -2937,7 +2937,7 @@ function qp(t) {
|
|
|
2937
2937
|
}
|
|
2938
2938
|
return t;
|
|
2939
2939
|
}
|
|
2940
|
-
function
|
|
2940
|
+
function Zp(t, e) {
|
|
2941
2941
|
var n = b({}, t), r = function(a) {
|
|
2942
2942
|
typeof a == "function" ? n = b(b({}, n), a(n)) : n = b(b({}, n), a);
|
|
2943
2943
|
}, i = function() {
|
|
@@ -2951,7 +2951,7 @@ function Qp(t, e) {
|
|
|
2951
2951
|
value: i
|
|
2952
2952
|
}), e;
|
|
2953
2953
|
}
|
|
2954
|
-
function
|
|
2954
|
+
function Gp(t) {
|
|
2955
2955
|
var e = {
|
|
2956
2956
|
variables: t.variables || {},
|
|
2957
2957
|
extensions: t.extensions || {},
|
|
@@ -2960,7 +2960,7 @@ function Zp(t) {
|
|
|
2960
2960
|
};
|
|
2961
2961
|
return e.operationName || (e.operationName = typeof e.query != "string" ? An(e.query) || void 0 : ""), e;
|
|
2962
2962
|
}
|
|
2963
|
-
function
|
|
2963
|
+
function Hp(t, e) {
|
|
2964
2964
|
var n = b({}, t), r = new Set(Object.keys(t));
|
|
2965
2965
|
return qe(e, {
|
|
2966
2966
|
Variable: function(i, a, o) {
|
|
@@ -3001,7 +3001,7 @@ var En = (
|
|
|
3001
3001
|
return e(s) ? i.request(s, u) || le.of() : a.request(s, u) || le.of();
|
|
3002
3002
|
}), Object.assign(o, { left: i, right: a });
|
|
3003
3003
|
}, t.execute = function(e, n) {
|
|
3004
|
-
return e.request(
|
|
3004
|
+
return e.request(Zp(n.context, Gp(Qp(n)))) || le.of();
|
|
3005
3005
|
}, t.concat = function(e, n) {
|
|
3006
3006
|
var r = On(e);
|
|
3007
3007
|
if (pr(r))
|
|
@@ -3031,7 +3031,7 @@ var En = (
|
|
|
3031
3031
|
}, t;
|
|
3032
3032
|
}()
|
|
3033
3033
|
), Wi = En.execute;
|
|
3034
|
-
function
|
|
3034
|
+
function Jp(t) {
|
|
3035
3035
|
var e, n = t[Symbol.asyncIterator]();
|
|
3036
3036
|
return e = {
|
|
3037
3037
|
next: function() {
|
|
@@ -3041,7 +3041,7 @@ function Hp(t) {
|
|
|
3041
3041
|
return this;
|
|
3042
3042
|
}, e;
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function Kp(t) {
|
|
3045
3045
|
var e = null, n = null, r = !1, i = [], a = [];
|
|
3046
3046
|
function o(f) {
|
|
3047
3047
|
if (!n) {
|
|
@@ -3090,7 +3090,7 @@ function Jp(t) {
|
|
|
3090
3090
|
return this;
|
|
3091
3091
|
}), l;
|
|
3092
3092
|
}
|
|
3093
|
-
function
|
|
3093
|
+
function Yp(t) {
|
|
3094
3094
|
var e = !1, n = {
|
|
3095
3095
|
next: function() {
|
|
3096
3096
|
return e ? Promise.resolve({
|
|
@@ -3117,46 +3117,46 @@ function Ps(t) {
|
|
|
3117
3117
|
return this;
|
|
3118
3118
|
}), e;
|
|
3119
3119
|
}
|
|
3120
|
-
function
|
|
3120
|
+
function Xp(t) {
|
|
3121
3121
|
return !!t.body;
|
|
3122
3122
|
}
|
|
3123
|
-
function
|
|
3123
|
+
function eh(t) {
|
|
3124
3124
|
return !!t.getReader;
|
|
3125
3125
|
}
|
|
3126
|
-
function
|
|
3126
|
+
function th(t) {
|
|
3127
3127
|
return !!(Zr && t[Symbol.asyncIterator]);
|
|
3128
3128
|
}
|
|
3129
|
-
function
|
|
3129
|
+
function nh(t) {
|
|
3130
3130
|
return !!t.stream;
|
|
3131
3131
|
}
|
|
3132
|
-
function
|
|
3132
|
+
function rh(t) {
|
|
3133
3133
|
return !!t.arrayBuffer;
|
|
3134
3134
|
}
|
|
3135
|
-
function
|
|
3135
|
+
function ih(t) {
|
|
3136
3136
|
return !!t.pipe;
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function ah(t) {
|
|
3139
3139
|
var e = t;
|
|
3140
|
-
if (
|
|
3141
|
-
return
|
|
3142
|
-
if (
|
|
3140
|
+
if (Xp(t) && (e = t.body), th(e))
|
|
3141
|
+
return Jp(e);
|
|
3142
|
+
if (eh(e))
|
|
3143
3143
|
return Ps(e.getReader());
|
|
3144
|
-
if (th(e))
|
|
3145
|
-
return Ps(e.stream().getReader());
|
|
3146
3144
|
if (nh(e))
|
|
3147
|
-
return
|
|
3145
|
+
return Ps(e.stream().getReader());
|
|
3148
3146
|
if (rh(e))
|
|
3149
|
-
return
|
|
3147
|
+
return Yp(e.arrayBuffer());
|
|
3148
|
+
if (ih(e))
|
|
3149
|
+
return Kp(e);
|
|
3150
3150
|
throw new Error("Unknown body type for responseIterator. Please pass a streamable response.");
|
|
3151
3151
|
}
|
|
3152
3152
|
var jo = Symbol();
|
|
3153
|
-
function
|
|
3153
|
+
function oh(t) {
|
|
3154
3154
|
return t.extensions ? Array.isArray(t.extensions[jo]) : !1;
|
|
3155
3155
|
}
|
|
3156
3156
|
function Zc(t) {
|
|
3157
3157
|
return t.hasOwnProperty("graphQLErrors");
|
|
3158
3158
|
}
|
|
3159
|
-
var
|
|
3159
|
+
var sh = function(t) {
|
|
3160
3160
|
var e = Oe(Oe(Oe([], t.graphQLErrors, !0), t.clientErrors, !0), t.protocolErrors, !0);
|
|
3161
3161
|
return t.networkError && e.push(t.networkError), e.map(function(n) {
|
|
3162
3162
|
return me(n) && n.message || "Error message not found.";
|
|
@@ -3168,7 +3168,7 @@ var oh = function(t) {
|
|
|
3168
3168
|
tt(e, t);
|
|
3169
3169
|
function e(n) {
|
|
3170
3170
|
var r = n.graphQLErrors, i = n.protocolErrors, a = n.clientErrors, o = n.networkError, s = n.errorMessage, u = n.extraInfo, c = t.call(this, s) || this;
|
|
3171
|
-
return c.name = "ApolloError", c.graphQLErrors = r || [], c.protocolErrors = i || [], c.clientErrors = a || [], c.networkError = o || null, c.message = s ||
|
|
3171
|
+
return c.name = "ApolloError", c.graphQLErrors = r || [], c.protocolErrors = i || [], c.clientErrors = a || [], c.networkError = o || null, c.message = s || sh(c), c.extraInfo = u, c.cause = Oe(Oe(Oe([
|
|
3172
3172
|
o
|
|
3173
3173
|
], r || [], !0), i || [], !0), a || [], !0).find(function(l) {
|
|
3174
3174
|
return !!l;
|
|
@@ -3177,7 +3177,7 @@ var oh = function(t) {
|
|
|
3177
3177
|
return e;
|
|
3178
3178
|
}(Error)
|
|
3179
3179
|
), As = Object.prototype.hasOwnProperty;
|
|
3180
|
-
function
|
|
3180
|
+
function uh(t, e) {
|
|
3181
3181
|
return _t(this, void 0, void 0, function() {
|
|
3182
3182
|
var n, r, i, a, o, s, u, c, l, f, d, p, y, g, _, m, E, S, O, I, A, N, M, U;
|
|
3183
3183
|
return bt(this, function(z) {
|
|
@@ -3186,7 +3186,7 @@ function sh(t, e) {
|
|
|
3186
3186
|
if (TextDecoder === void 0)
|
|
3187
3187
|
throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");
|
|
3188
3188
|
n = new TextDecoder("utf-8"), r = (U = t.headers) === null || U === void 0 ? void 0 : U.get("content-type"), i = "boundary=", a = r != null && r.includes(i) ? r == null ? void 0 : r.substring((r == null ? void 0 : r.indexOf(i)) + i.length).replace(/['"]/g, "").replace(/\;(.*)/gm, "").trim() : "-", o = `\r
|
|
3189
|
-
--`.concat(a), s = "", u =
|
|
3189
|
+
--`.concat(a), s = "", u = ah(t), c = !0, z.label = 1;
|
|
3190
3190
|
case 1:
|
|
3191
3191
|
return c ? [4, u.next()] : [3, 3];
|
|
3192
3192
|
case 2:
|
|
@@ -3196,11 +3196,11 @@ function sh(t, e) {
|
|
|
3196
3196
|
s.slice(g + o.length)
|
|
3197
3197
|
], _ = N[0], s = N[1], m = _.indexOf(`\r
|
|
3198
3198
|
\r
|
|
3199
|
-
`), E =
|
|
3199
|
+
`), E = ch(_.slice(0, m)), S = E["content-type"], S && S.toLowerCase().indexOf("application/json") === -1)
|
|
3200
3200
|
throw new Error("Unsupported patch content type: application/json is required.");
|
|
3201
3201
|
if (O = _.slice(m), O) {
|
|
3202
3202
|
if (I = Gc(t, O), Object.keys(I).length > 1 || "data" in I || "incremental" in I || "errors" in I || "payload" in I)
|
|
3203
|
-
if (
|
|
3203
|
+
if (qp(I)) {
|
|
3204
3204
|
if (A = {}, "payload" in I) {
|
|
3205
3205
|
if (Object.keys(I).length === 1 && I.payload === null)
|
|
3206
3206
|
return [
|
|
@@ -3234,7 +3234,7 @@ function sh(t, e) {
|
|
|
3234
3234
|
});
|
|
3235
3235
|
});
|
|
3236
3236
|
}
|
|
3237
|
-
function
|
|
3237
|
+
function ch(t) {
|
|
3238
3238
|
var e = {};
|
|
3239
3239
|
return t.split(`
|
|
3240
3240
|
`).forEach(function(n) {
|
|
@@ -3263,10 +3263,10 @@ function Gc(t, e) {
|
|
|
3263
3263
|
throw r.name = "ServerParseError", r.response = t, r.statusCode = t.status, r.bodyText = e, r;
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
3266
|
-
function
|
|
3266
|
+
function lh(t, e) {
|
|
3267
3267
|
t.result && t.result.errors && t.result.data && e.next(t.result), e.error(t);
|
|
3268
3268
|
}
|
|
3269
|
-
function
|
|
3269
|
+
function fh(t) {
|
|
3270
3270
|
return function(e) {
|
|
3271
3271
|
return e.text().then(function(n) {
|
|
3272
3272
|
return Gc(e, n);
|
|
@@ -3286,11 +3286,11 @@ var qi = function(t, e) {
|
|
|
3286
3286
|
throw r.parseError = i, r;
|
|
3287
3287
|
}
|
|
3288
3288
|
return n;
|
|
3289
|
-
},
|
|
3289
|
+
}, dh = {
|
|
3290
3290
|
includeQuery: !0,
|
|
3291
3291
|
includeExtensions: !1,
|
|
3292
3292
|
preserveHeaderCase: !1
|
|
3293
|
-
},
|
|
3293
|
+
}, ph = {
|
|
3294
3294
|
// headers are case insensitive (https://stackoverflow.com/a/5259004)
|
|
3295
3295
|
accept: "*/*",
|
|
3296
3296
|
// The content-type header describes the type of the body of the request, and
|
|
@@ -3306,29 +3306,29 @@ var qi = function(t, e) {
|
|
|
3306
3306
|
// https://www.apollographql.com/docs/apollo-server/security/cors/#preventing-cross-site-request-forgery-csrf
|
|
3307
3307
|
// for more details.
|
|
3308
3308
|
"content-type": "application/json"
|
|
3309
|
-
}, ph = {
|
|
3310
|
-
method: "POST"
|
|
3311
3309
|
}, hh = {
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3310
|
+
method: "POST"
|
|
3311
|
+
}, vh = {
|
|
3312
|
+
http: dh,
|
|
3313
|
+
headers: ph,
|
|
3314
|
+
options: hh
|
|
3315
|
+
}, mh = function(t, e) {
|
|
3316
3316
|
return e(t);
|
|
3317
3317
|
};
|
|
3318
|
-
function
|
|
3318
|
+
function yh(t, e) {
|
|
3319
3319
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
3320
3320
|
n[r - 2] = arguments[r];
|
|
3321
3321
|
var i = {}, a = {};
|
|
3322
3322
|
n.forEach(function(f) {
|
|
3323
3323
|
i = b(b(b({}, i), f.options), { headers: b(b({}, i.headers), f.headers) }), f.credentials && (i.credentials = f.credentials), a = b(b({}, a), f.http);
|
|
3324
|
-
}), i.headers && (i.headers =
|
|
3324
|
+
}), i.headers && (i.headers = gh(i.headers, a.preserveHeaderCase));
|
|
3325
3325
|
var o = t.operationName, s = t.extensions, u = t.variables, c = t.query, l = { operationName: o, variables: u };
|
|
3326
3326
|
return a.includeExtensions && (l.extensions = s), a.includeQuery && (l.query = e(c, xt)), {
|
|
3327
3327
|
options: i,
|
|
3328
3328
|
body: l
|
|
3329
3329
|
};
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function gh(t, e) {
|
|
3332
3332
|
if (!e) {
|
|
3333
3333
|
var n = {};
|
|
3334
3334
|
return Object.keys(Object(t)).forEach(function(a) {
|
|
@@ -3347,14 +3347,14 @@ function yh(t, e) {
|
|
|
3347
3347
|
i[r[a].originalName] = r[a].value;
|
|
3348
3348
|
}), i;
|
|
3349
3349
|
}
|
|
3350
|
-
var
|
|
3350
|
+
var _h = function(t) {
|
|
3351
3351
|
if (!t && typeof fetch > "u")
|
|
3352
3352
|
throw Ae(40);
|
|
3353
|
-
},
|
|
3353
|
+
}, bh = function(t, e) {
|
|
3354
3354
|
var n = t.getContext(), r = n.uri;
|
|
3355
3355
|
return r || (typeof e == "function" ? e(t) : e || "/graphql");
|
|
3356
3356
|
};
|
|
3357
|
-
function
|
|
3357
|
+
function Eh(t, e) {
|
|
3358
3358
|
var n = [], r = function(f, d) {
|
|
3359
3359
|
n.push("".concat(f, "=").concat(encodeURIComponent(d)));
|
|
3360
3360
|
};
|
|
@@ -3383,10 +3383,10 @@ function bh(t, e) {
|
|
|
3383
3383
|
}
|
|
3384
3384
|
var ks = Ve(function() {
|
|
3385
3385
|
return fetch;
|
|
3386
|
-
}),
|
|
3386
|
+
}), Hc = function(t) {
|
|
3387
3387
|
t === void 0 && (t = {});
|
|
3388
|
-
var e = t.uri, n = e === void 0 ? "/graphql" : e, r = t.fetch, i = t.print, a = i === void 0 ?
|
|
3389
|
-
globalThis.__DEV__ !== !1 &&
|
|
3388
|
+
var e = t.uri, n = e === void 0 ? "/graphql" : e, r = t.fetch, i = t.print, a = i === void 0 ? mh : i, o = t.includeExtensions, s = t.preserveHeaderCase, u = t.useGETForQueries, c = t.includeUnusedVariables, l = c === void 0 ? !1 : c, f = ze(t, ["uri", "fetch", "print", "includeExtensions", "preserveHeaderCase", "useGETForQueries", "includeUnusedVariables"]);
|
|
3389
|
+
globalThis.__DEV__ !== !1 && _h(r || ks);
|
|
3390
3390
|
var d = {
|
|
3391
3391
|
http: { includeExtensions: o, preserveHeaderCase: s },
|
|
3392
3392
|
options: f.fetchOptions,
|
|
@@ -3394,7 +3394,7 @@ var ks = Ve(function() {
|
|
|
3394
3394
|
headers: f.headers
|
|
3395
3395
|
};
|
|
3396
3396
|
return new En(function(p) {
|
|
3397
|
-
var y =
|
|
3397
|
+
var y = bh(p, n), g = p.getContext(), _ = {};
|
|
3398
3398
|
if (g.clientAwareness) {
|
|
3399
3399
|
var m = g.clientAwareness, E = m.name, S = m.version;
|
|
3400
3400
|
E && (_["apollographql-client-name"] = E), S && (_["apollographql-client-version"] = S);
|
|
@@ -3411,8 +3411,8 @@ var ks = Ve(function() {
|
|
|
3411
3411
|
return di(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));
|
|
3412
3412
|
p.query = A;
|
|
3413
3413
|
}
|
|
3414
|
-
var N =
|
|
3415
|
-
U.variables && !l && (U.variables =
|
|
3414
|
+
var N = yh(p, a, vh, d, I), M = N.options, U = N.body;
|
|
3415
|
+
U.variables && !l && (U.variables = Hp(U.variables, p.query));
|
|
3416
3416
|
var z;
|
|
3417
3417
|
!M.signal && typeof AbortController < "u" && (z = new AbortController(), M.signal = z.signal);
|
|
3418
3418
|
var K = function(Ee) {
|
|
@@ -3426,7 +3426,7 @@ var ks = Ve(function() {
|
|
|
3426
3426
|
J && X && globalThis.__DEV__ !== !1 && L.warn(41), J ? Pe += "boundary=graphql;subscriptionSpec=1.0,application/json" : X && (Pe += "deferSpec=20220824,application/json"), M.headers.accept = Pe;
|
|
3427
3427
|
}
|
|
3428
3428
|
if (M.method === "GET") {
|
|
3429
|
-
var je =
|
|
3429
|
+
var je = Eh(y, U), Qe = je.newURI, rt = je.parseError;
|
|
3430
3430
|
if (rt)
|
|
3431
3431
|
return di(rt);
|
|
3432
3432
|
y = Qe;
|
|
@@ -3444,11 +3444,11 @@ var ks = Ve(function() {
|
|
|
3444
3444
|
var ai;
|
|
3445
3445
|
p.setContext({ response: Ht });
|
|
3446
3446
|
var Xo = (ai = Ht.headers) === null || ai === void 0 ? void 0 : ai.get("content-type");
|
|
3447
|
-
return Xo !== null && /^multipart\/mixed/i.test(Xo) ?
|
|
3447
|
+
return Xo !== null && /^multipart\/mixed/i.test(Xo) ? uh(Ht, Gt) : fh(p)(Ht).then(Gt);
|
|
3448
3448
|
}).then(function() {
|
|
3449
3449
|
z = void 0, Ee.complete();
|
|
3450
3450
|
}).catch(function(Ht) {
|
|
3451
|
-
z = void 0,
|
|
3451
|
+
z = void 0, lh(Ht, Ee);
|
|
3452
3452
|
}), function() {
|
|
3453
3453
|
z && z.abort();
|
|
3454
3454
|
};
|
|
@@ -3460,7 +3460,7 @@ var ks = Ve(function() {
|
|
|
3460
3460
|
tt(e, t);
|
|
3461
3461
|
function e(n) {
|
|
3462
3462
|
n === void 0 && (n = {});
|
|
3463
|
-
var r = t.call(this,
|
|
3463
|
+
var r = t.call(this, Hc(n).request) || this;
|
|
3464
3464
|
return r.options = n, r;
|
|
3465
3465
|
}
|
|
3466
3466
|
return e;
|
|
@@ -3577,7 +3577,7 @@ function Rs(t, e) {
|
|
|
3577
3577
|
Qi.set(t, n = /* @__PURE__ */ new Set());
|
|
3578
3578
|
return n.add(e), !1;
|
|
3579
3579
|
}
|
|
3580
|
-
function
|
|
3580
|
+
function Jc(t, e, n, r) {
|
|
3581
3581
|
var i = e.data, a = ze(e, ["data"]), o = n.data, s = ze(n, ["data"]);
|
|
3582
3582
|
return ae(a, s) && Er(or(t).selectionSet, i, o, {
|
|
3583
3583
|
fragmentMap: gn(bn(t)),
|
|
@@ -3630,11 +3630,11 @@ function Ms(t) {
|
|
|
3630
3630
|
function Ph(t) {
|
|
3631
3631
|
return t.name.value === "nonreactive";
|
|
3632
3632
|
}
|
|
3633
|
-
var
|
|
3634
|
-
function
|
|
3633
|
+
var Kc = Qt ? WeakMap : Map, Yc = Oo ? WeakSet : Set, Fo = new sr(), xs = !1;
|
|
3634
|
+
function Xc() {
|
|
3635
3635
|
xs || (xs = !0, globalThis.__DEV__ !== !1 && L.warn(52));
|
|
3636
3636
|
}
|
|
3637
|
-
function
|
|
3637
|
+
function el(t, e, n) {
|
|
3638
3638
|
return Fo.withValue(!0, function() {
|
|
3639
3639
|
var r = kn(t, e, n, !1);
|
|
3640
3640
|
return Object.isFrozen(t) && dn(r), r;
|
|
@@ -3679,7 +3679,7 @@ function kn(t, e, n, r, i) {
|
|
|
3679
3679
|
if (_.kind === fe.INLINE_FRAGMENT && (!_.typeCondition || n.cache.fragmentMatches(_, t.__typename)) && (m = kn(t, _.selectionSet, n, r, i)), _.kind === fe.FRAGMENT_SPREAD) {
|
|
3680
3680
|
var O = _.name.value, I = n.fragmentMap[O] || (n.fragmentMap[O] = n.cache.lookupFragment(O));
|
|
3681
3681
|
L(I, 47, O);
|
|
3682
|
-
var A =
|
|
3682
|
+
var A = Ad(_);
|
|
3683
3683
|
A !== "mask" && (m = kn(t, I.selectionSet, n, A === "migrate", i));
|
|
3684
3684
|
}
|
|
3685
3685
|
o.has(m) && o.add(s);
|
|
@@ -3705,9 +3705,9 @@ function kh(t, e, n, r, i) {
|
|
|
3705
3705
|
configurable: !0
|
|
3706
3706
|
};
|
|
3707
3707
|
}
|
|
3708
|
-
function
|
|
3708
|
+
function tl(t, e, n, r) {
|
|
3709
3709
|
if (!n.fragmentMatches)
|
|
3710
|
-
return globalThis.__DEV__ !== !1 &&
|
|
3710
|
+
return globalThis.__DEV__ !== !1 && Xc(), t;
|
|
3711
3711
|
var i = e.definitions.filter(function(o) {
|
|
3712
3712
|
return o.kind === fe.FRAGMENT_DEFINITION;
|
|
3713
3713
|
});
|
|
@@ -3715,34 +3715,34 @@ function el(t, e, n, r) {
|
|
|
3715
3715
|
var a = i.find(function(o) {
|
|
3716
3716
|
return o.name.value === r;
|
|
3717
3717
|
});
|
|
3718
|
-
return L(!!a, 50, r), t == null || ae(t, {}) ? t :
|
|
3718
|
+
return L(!!a, 50, r), t == null || ae(t, {}) ? t : el(t, a.selectionSet, {
|
|
3719
3719
|
operationType: "fragment",
|
|
3720
3720
|
operationName: a.name.value,
|
|
3721
3721
|
fragmentMap: gn(bn(e)),
|
|
3722
3722
|
cache: n,
|
|
3723
|
-
mutableTargets: new
|
|
3724
|
-
knownChanged: new
|
|
3723
|
+
mutableTargets: new Kc(),
|
|
3724
|
+
knownChanged: new Yc()
|
|
3725
3725
|
});
|
|
3726
3726
|
}
|
|
3727
3727
|
function Ch(t, e, n) {
|
|
3728
3728
|
var r;
|
|
3729
3729
|
if (!n.fragmentMatches)
|
|
3730
|
-
return globalThis.__DEV__ !== !1 &&
|
|
3730
|
+
return globalThis.__DEV__ !== !1 && Xc(), t;
|
|
3731
3731
|
var i = Ut(e);
|
|
3732
|
-
return L(i, 51), t == null ? t :
|
|
3732
|
+
return L(i, 51), t == null ? t : el(t, i.selectionSet, {
|
|
3733
3733
|
operationType: i.operation,
|
|
3734
3734
|
operationName: (r = i.name) === null || r === void 0 ? void 0 : r.value,
|
|
3735
3735
|
fragmentMap: gn(bn(e)),
|
|
3736
3736
|
cache: n,
|
|
3737
|
-
mutableTargets: new
|
|
3738
|
-
knownChanged: new
|
|
3737
|
+
mutableTargets: new Kc(),
|
|
3738
|
+
knownChanged: new Yc()
|
|
3739
3739
|
});
|
|
3740
3740
|
}
|
|
3741
|
-
var
|
|
3741
|
+
var nl = (
|
|
3742
3742
|
/** @class */
|
|
3743
3743
|
function() {
|
|
3744
3744
|
function t() {
|
|
3745
|
-
this.assumeImmutableResults = !1, this.getFragmentDoc = Bn(
|
|
3745
|
+
this.assumeImmutableResults = !1, this.getFragmentDoc = Bn(xd, {
|
|
3746
3746
|
max: Ye["cache.fragmentQueryDocuments"] || 1e3,
|
|
3747
3747
|
cache: Or
|
|
3748
3748
|
});
|
|
@@ -3776,10 +3776,10 @@ var tl = (
|
|
|
3776
3776
|
var p = b(b({}, u), { returnPartialData: !0, id: l, query: c, optimistic: s }), y;
|
|
3777
3777
|
return new le(function(g) {
|
|
3778
3778
|
return n.watch(b(b({}, p), { immediate: !0, callback: function(_) {
|
|
3779
|
-
var m = f ?
|
|
3779
|
+
var m = f ? tl(_.result, r, n, i) : _.result;
|
|
3780
3780
|
if (
|
|
3781
3781
|
// Always ensure we deliver the first result
|
|
3782
|
-
!(y &&
|
|
3782
|
+
!(y && Jc(
|
|
3783
3783
|
c,
|
|
3784
3784
|
{ data: y.result },
|
|
3785
3785
|
{ data: m },
|
|
@@ -3830,8 +3830,8 @@ var tl = (
|
|
|
3830
3830
|
}, t;
|
|
3831
3831
|
}()
|
|
3832
3832
|
);
|
|
3833
|
-
globalThis.__DEV__ !== !1 && (
|
|
3834
|
-
var
|
|
3833
|
+
globalThis.__DEV__ !== !1 && (nl.prototype.getMemoryInternals = Zd);
|
|
3834
|
+
var rl = (
|
|
3835
3835
|
/** @class */
|
|
3836
3836
|
function(t) {
|
|
3837
3837
|
tt(e, t);
|
|
@@ -3851,13 +3851,13 @@ var nl = (
|
|
|
3851
3851
|
function In(t) {
|
|
3852
3852
|
return t == null;
|
|
3853
3853
|
}
|
|
3854
|
-
function
|
|
3854
|
+
function il(t, e) {
|
|
3855
3855
|
var n = t.__typename, r = t.id, i = t._id;
|
|
3856
3856
|
if (typeof n == "string" && (e && (e.keyObject = In(r) ? In(i) ? void 0 : { _id: i } : { id: r }), In(r) && !In(i) && (r = i), !In(r)))
|
|
3857
3857
|
return "".concat(n, ":").concat(typeof r == "number" || typeof r == "string" ? r : JSON.stringify(r));
|
|
3858
3858
|
}
|
|
3859
|
-
var
|
|
3860
|
-
dataIdFromObject:
|
|
3859
|
+
var al = {
|
|
3860
|
+
dataIdFromObject: il,
|
|
3861
3861
|
addTypename: !0,
|
|
3862
3862
|
resultCaching: !0,
|
|
3863
3863
|
// Thanks to the shouldCanonizeResults helper, this should be the only line
|
|
@@ -3865,18 +3865,18 @@ var il = {
|
|
|
3865
3865
|
canonizeResults: !1
|
|
3866
3866
|
};
|
|
3867
3867
|
function Nh(t) {
|
|
3868
|
-
return Vt(
|
|
3868
|
+
return Vt(al, t);
|
|
3869
3869
|
}
|
|
3870
|
-
function
|
|
3870
|
+
function ol(t) {
|
|
3871
3871
|
var e = t.canonizeResults;
|
|
3872
|
-
return e === void 0 ?
|
|
3872
|
+
return e === void 0 ? al.canonizeResults : e;
|
|
3873
3873
|
}
|
|
3874
3874
|
function Dh(t, e) {
|
|
3875
3875
|
return se(e) ? t.get(e.__ref, "__typename") : e && e.__typename;
|
|
3876
3876
|
}
|
|
3877
|
-
var
|
|
3877
|
+
var sl = /^[_a-z][_0-9a-z]*/i;
|
|
3878
3878
|
function kt(t) {
|
|
3879
|
-
var e = t.match(
|
|
3879
|
+
var e = t.match(sl);
|
|
3880
3880
|
return e ? e[0] : t;
|
|
3881
3881
|
}
|
|
3882
3882
|
function Gi(t, e, n) {
|
|
@@ -3896,7 +3896,7 @@ function tn(t) {
|
|
|
3896
3896
|
function Rh() {
|
|
3897
3897
|
return new At();
|
|
3898
3898
|
}
|
|
3899
|
-
function
|
|
3899
|
+
function ul(t, e) {
|
|
3900
3900
|
var n = gn(bn(t));
|
|
3901
3901
|
return {
|
|
3902
3902
|
fragmentMap: n,
|
|
@@ -4097,7 +4097,7 @@ var wr = /* @__PURE__ */ Object.create(null), pi = function() {
|
|
|
4097
4097
|
return this.group.keyMaker.lookupArray(arguments);
|
|
4098
4098
|
}, t;
|
|
4099
4099
|
}()
|
|
4100
|
-
),
|
|
4100
|
+
), cl = (
|
|
4101
4101
|
/** @class */
|
|
4102
4102
|
function() {
|
|
4103
4103
|
function t(e, n) {
|
|
@@ -4138,7 +4138,7 @@ function $s(t, e) {
|
|
|
4138
4138
|
function(n) {
|
|
4139
4139
|
tt(r, n);
|
|
4140
4140
|
function r(i) {
|
|
4141
|
-
var a = i.policies, o = i.resultCaching, s = o === void 0 ? !0 : o, u = i.seed, c = n.call(this, a, new
|
|
4141
|
+
var a = i.policies, o = i.resultCaching, s = o === void 0 ? !0 : o, u = i.seed, c = n.call(this, a, new cl(s)) || this;
|
|
4142
4142
|
return c.stump = new Mh(c), c.storageTrie = new ht(Qt), u && c.replace(u), c;
|
|
4143
4143
|
}
|
|
4144
4144
|
return r.prototype.addLayer = function(i, a) {
|
|
@@ -4193,7 +4193,7 @@ var gt = (
|
|
|
4193
4193
|
tt(e, t);
|
|
4194
4194
|
function e(n) {
|
|
4195
4195
|
return t.call(this, "EntityStore.Stump", n, function() {
|
|
4196
|
-
}, new
|
|
4196
|
+
}, new cl(n.group.caching, n.group)) || this;
|
|
4197
4197
|
}
|
|
4198
4198
|
return e.prototype.removeLayer = function() {
|
|
4199
4199
|
return this;
|
|
@@ -4293,7 +4293,7 @@ var jh = (
|
|
|
4293
4293
|
var n = this;
|
|
4294
4294
|
this.knownResults = new (Qt ? WeakMap : Map)(), this.config = Vt(e, {
|
|
4295
4295
|
addTypename: e.addTypename !== !1,
|
|
4296
|
-
canonizeResults:
|
|
4296
|
+
canonizeResults: ol(e)
|
|
4297
4297
|
}), this.canon = e.canon || new js(), this.executeSelectionSet = Bn(function(r) {
|
|
4298
4298
|
var i, a = r.context.canonizeResults, o = Fs(r);
|
|
4299
4299
|
o[3] = !a;
|
|
@@ -4332,10 +4332,10 @@ var jh = (
|
|
|
4332
4332
|
selectionSet: or(r).selectionSet,
|
|
4333
4333
|
objectOrReference: d,
|
|
4334
4334
|
enclosingRef: d,
|
|
4335
|
-
context: b({ store: n, query: r, policies: f, variables: o, varString: Tt(o), canonizeResults: l },
|
|
4335
|
+
context: b({ store: n, query: r, policies: f, variables: o, varString: Tt(o), canonizeResults: l }, ul(r, this.config.fragments))
|
|
4336
4336
|
}), y;
|
|
4337
4337
|
if (p.missing && (y = [
|
|
4338
|
-
new
|
|
4338
|
+
new rl(Fh(p.missing), p.missing, r, o)
|
|
4339
4339
|
], !u))
|
|
4340
4340
|
throw y[0];
|
|
4341
4341
|
return {
|
|
@@ -4521,7 +4521,7 @@ function zs(t) {
|
|
|
4521
4521
|
// custom read functions.
|
|
4522
4522
|
i
|
|
4523
4523
|
);
|
|
4524
|
-
return s === void 0 && n !== r.storeObject && we.call(n, o[0]) && (s = sn(n, o,
|
|
4524
|
+
return s === void 0 && n !== r.storeObject && we.call(n, o[0]) && (s = sn(n, o, fl)), L(s !== void 0, 5, o.join("."), n), s;
|
|
4525
4525
|
});
|
|
4526
4526
|
return "".concat(r.typename, ":").concat(JSON.stringify(a));
|
|
4527
4527
|
});
|
|
@@ -4562,7 +4562,7 @@ function Ws(t) {
|
|
|
4562
4562
|
}
|
|
4563
4563
|
function Bo(t, e) {
|
|
4564
4564
|
var n = new At();
|
|
4565
|
-
return
|
|
4565
|
+
return ll(t).reduce(function(r, i) {
|
|
4566
4566
|
var a, o = e(i);
|
|
4567
4567
|
if (o !== void 0) {
|
|
4568
4568
|
for (var s = i.length - 1; s >= 0; --s)
|
|
@@ -4572,30 +4572,30 @@ function Bo(t, e) {
|
|
|
4572
4572
|
return r;
|
|
4573
4573
|
}, /* @__PURE__ */ Object.create(null));
|
|
4574
4574
|
}
|
|
4575
|
-
function
|
|
4575
|
+
function ll(t) {
|
|
4576
4576
|
var e = Vo(t);
|
|
4577
4577
|
if (!e.paths) {
|
|
4578
4578
|
var n = e.paths = [], r = [];
|
|
4579
4579
|
t.forEach(function(i, a) {
|
|
4580
|
-
ye(i) ? (
|
|
4580
|
+
ye(i) ? (ll(i).forEach(function(o) {
|
|
4581
4581
|
return n.push(r.concat(o));
|
|
4582
4582
|
}), r.length = 0) : (r.push(i), ye(t[a + 1]) || (n.push(r.slice(0)), r.length = 0));
|
|
4583
4583
|
});
|
|
4584
4584
|
}
|
|
4585
4585
|
return e.paths;
|
|
4586
4586
|
}
|
|
4587
|
-
function
|
|
4587
|
+
function fl(t, e) {
|
|
4588
4588
|
return t[e];
|
|
4589
4589
|
}
|
|
4590
4590
|
function sn(t, e, n) {
|
|
4591
|
-
return n = n ||
|
|
4591
|
+
return n = n || fl, dl(e.reduce(function r(i, a) {
|
|
4592
4592
|
return ye(i) ? i.map(function(o) {
|
|
4593
4593
|
return r(o, a);
|
|
4594
4594
|
}) : i && n(i, a);
|
|
4595
4595
|
}, t));
|
|
4596
4596
|
}
|
|
4597
|
-
function
|
|
4598
|
-
return me(t) ? ye(t) ? t.map(
|
|
4597
|
+
function dl(t) {
|
|
4598
|
+
return me(t) ? ye(t) ? t.map(dl) : Bo(Object.keys(t).sort(), function(e) {
|
|
4599
4599
|
return sn(t, e);
|
|
4600
4600
|
}) : t;
|
|
4601
4601
|
}
|
|
@@ -4614,7 +4614,7 @@ var Wh = function() {
|
|
|
4614
4614
|
/** @class */
|
|
4615
4615
|
function() {
|
|
4616
4616
|
function t(e) {
|
|
4617
|
-
this.config = e, this.typePolicies = /* @__PURE__ */ Object.create(null), this.toBeAdded = /* @__PURE__ */ Object.create(null), this.supertypeMap = /* @__PURE__ */ new Map(), this.fuzzySubtypes = /* @__PURE__ */ new Map(), this.rootIdsByTypename = /* @__PURE__ */ Object.create(null), this.rootTypenamesById = /* @__PURE__ */ Object.create(null), this.usingPossibleTypes = !1, this.config = b({ dataIdFromObject:
|
|
4617
|
+
this.config = e, this.typePolicies = /* @__PURE__ */ Object.create(null), this.toBeAdded = /* @__PURE__ */ Object.create(null), this.supertypeMap = /* @__PURE__ */ new Map(), this.fuzzySubtypes = /* @__PURE__ */ new Map(), this.rootIdsByTypename = /* @__PURE__ */ Object.create(null), this.rootTypenamesById = /* @__PURE__ */ Object.create(null), this.usingPossibleTypes = !1, this.config = b({ dataIdFromObject: il }, e), this.cache = this.config.cache, this.setRootTypename("Query"), this.setRootTypename("Mutation"), this.setRootTypename("Subscription"), e.possibleTypes && this.addPossibleTypes(e.possibleTypes), e.typePolicies && this.addTypePolicies(e.typePolicies);
|
|
4618
4618
|
}
|
|
4619
4619
|
return t.prototype.identify = function(e, n) {
|
|
4620
4620
|
var r, i = this, a = n && (n.typename || ((r = n.storeObject) === null || r === void 0 ? void 0 : r.__typename)) || e.__typename;
|
|
@@ -4671,7 +4671,7 @@ var Wh = function() {
|
|
|
4671
4671
|
this.usingPossibleTypes = !0, Object.keys(e).forEach(function(r) {
|
|
4672
4672
|
n.getSupertypeSet(r, !0), e[r].forEach(function(i) {
|
|
4673
4673
|
n.getSupertypeSet(i, !0).add(r);
|
|
4674
|
-
var a = i.match(
|
|
4674
|
+
var a = i.match(sl);
|
|
4675
4675
|
(!a || a[0] !== i) && n.fuzzySubtypes.set(i, new RegExp(i));
|
|
4676
4676
|
});
|
|
4677
4677
|
});
|
|
@@ -4754,7 +4754,7 @@ var Wh = function() {
|
|
|
4754
4754
|
break;
|
|
4755
4755
|
}
|
|
4756
4756
|
}
|
|
4757
|
-
return a === void 0 && (a = e.field ?
|
|
4757
|
+
return a === void 0 && (a = e.field ? lp(e.field, e.variables) : wc(r, Hi(e))), a === !1 ? r : r === kt(a) ? a : r + ":" + a;
|
|
4758
4758
|
}, t.prototype.readField = function(e, n) {
|
|
4759
4759
|
var r = e.from;
|
|
4760
4760
|
if (r) {
|
|
@@ -4783,7 +4783,7 @@ var Wh = function() {
|
|
|
4783
4783
|
return !a && r && (i = this.getTypePolicy(r), a = i && i.merge), a;
|
|
4784
4784
|
}, t.prototype.runMergeFunction = function(e, n, r, i, a) {
|
|
4785
4785
|
var o = r.field, s = r.typename, u = r.merge;
|
|
4786
|
-
return u === Qs ?
|
|
4786
|
+
return u === Qs ? pl(i.store)(e, n) : u === Zs ? n : (i.overwrite && (e = void 0), u(e, n, Gs(
|
|
4787
4787
|
this,
|
|
4788
4788
|
// Unlike options.readField for read functions, we do not fall
|
|
4789
4789
|
// back to the current object if no foreignObjOrRef is provided,
|
|
@@ -4825,7 +4825,7 @@ function Gs(t, e, n, r, i) {
|
|
|
4825
4825
|
readField: function() {
|
|
4826
4826
|
return t.readField(zo(arguments, e, s), r);
|
|
4827
4827
|
},
|
|
4828
|
-
mergeObjects:
|
|
4828
|
+
mergeObjects: pl(r.store)
|
|
4829
4829
|
};
|
|
4830
4830
|
}
|
|
4831
4831
|
function zo(t, e, n) {
|
|
@@ -4838,7 +4838,7 @@ function zo(t, e, n) {
|
|
|
4838
4838
|
from: a > 1 ? i : e
|
|
4839
4839
|
} : (o = b({}, r), we.call(o, "from") || (o.from = e)), globalThis.__DEV__ !== !1 && o.from === void 0 && globalThis.__DEV__ !== !1 && L.warn(8, dc(Array.from(t))), o.variables === void 0 && (o.variables = n), o;
|
|
4840
4840
|
}
|
|
4841
|
-
function
|
|
4841
|
+
function pl(t) {
|
|
4842
4842
|
return function(n, r) {
|
|
4843
4843
|
if (ye(n) || ye(r))
|
|
4844
4844
|
throw Ae(9);
|
|
@@ -4871,7 +4871,7 @@ var Qh = (
|
|
|
4871
4871
|
s = b(b({}, ko(c)), s);
|
|
4872
4872
|
var f = b(b({ store: e, written: /* @__PURE__ */ Object.create(null), merge: function(p, y) {
|
|
4873
4873
|
return l.merge(p, y);
|
|
4874
|
-
}, variables: s, varString: Tt(s) },
|
|
4874
|
+
}, variables: s, varString: Tt(s) }, ul(i, this.fragments)), { overwrite: !!u, incomingById: /* @__PURE__ */ new Map(), clientOnly: !1, deferred: !1, flavors: /* @__PURE__ */ new Map() }), d = this.processSelectionSet({
|
|
4875
4875
|
result: a || /* @__PURE__ */ Object.create(null),
|
|
4876
4876
|
dataId: o,
|
|
4877
4877
|
selectionSet: c.selectionSet,
|
|
@@ -5067,10 +5067,10 @@ var Qh = (
|
|
|
5067
5067
|
return e.info ? this.cache.policies.runMergeFunction(n, r, e.info, i, a && (o = i.store).getStorage.apply(o, a)) : r;
|
|
5068
5068
|
}, t;
|
|
5069
5069
|
}()
|
|
5070
|
-
),
|
|
5070
|
+
), hl = [];
|
|
5071
5071
|
function Hs(t, e) {
|
|
5072
5072
|
var n = t.map;
|
|
5073
|
-
return n.has(e) || n.set(e,
|
|
5073
|
+
return n.has(e) || n.set(e, hl.pop() || { map: /* @__PURE__ */ new Map() }), n.get(e);
|
|
5074
5074
|
}
|
|
5075
5075
|
function Ji(t, e) {
|
|
5076
5076
|
if (t === e || !e || Pr(e))
|
|
@@ -5093,7 +5093,7 @@ function Pr(t) {
|
|
|
5093
5093
|
}
|
|
5094
5094
|
function Js(t, e) {
|
|
5095
5095
|
var n = t.map, r = n.get(e);
|
|
5096
|
-
r && Pr(r) && (
|
|
5096
|
+
r && Pr(r) && (hl.push(r), n.delete(e));
|
|
5097
5097
|
}
|
|
5098
5098
|
var Ks = /* @__PURE__ */ new Set();
|
|
5099
5099
|
function Zh(t, e, n, r) {
|
|
@@ -5118,7 +5118,7 @@ function Zh(t, e, n, r) {
|
|
|
5118
5118
|
}
|
|
5119
5119
|
}
|
|
5120
5120
|
}
|
|
5121
|
-
var
|
|
5121
|
+
var vl = (
|
|
5122
5122
|
/** @class */
|
|
5123
5123
|
function(t) {
|
|
5124
5124
|
tt(e, t);
|
|
@@ -5144,7 +5144,7 @@ var hl = (
|
|
|
5144
5144
|
cache: this,
|
|
5145
5145
|
addTypename: this.addTypename,
|
|
5146
5146
|
resultCacheMaxSize: this.config.resultCacheMaxSize,
|
|
5147
|
-
canonizeResults:
|
|
5147
|
+
canonizeResults: ol(this.config),
|
|
5148
5148
|
canon: n ? void 0 : i && i.canon,
|
|
5149
5149
|
fragments: a
|
|
5150
5150
|
}), a), this.maybeBroadcastWatch = Bn(function(o, s) {
|
|
@@ -5180,7 +5180,7 @@ var hl = (
|
|
|
5180
5180
|
try {
|
|
5181
5181
|
return this.storeReader.diffQueryAgainstStore(b(b({}, n), { store: n.optimistic ? this.optimisticData : this.data, config: this.config, returnPartialData: i })).result || null;
|
|
5182
5182
|
} catch (a) {
|
|
5183
|
-
if (a instanceof
|
|
5183
|
+
if (a instanceof rl)
|
|
5184
5184
|
return null;
|
|
5185
5185
|
throw a;
|
|
5186
5186
|
}
|
|
@@ -5286,9 +5286,9 @@ var hl = (
|
|
|
5286
5286
|
var i = n.lastDiff, a = this.diff(n);
|
|
5287
5287
|
r && (n.optimistic && typeof r.optimistic == "string" && (a.fromOptimisticTransaction = !0), r.onWatchUpdated && r.onWatchUpdated.call(this, n, a, i) === !1) || (!i || !ae(i.result, a.result)) && n.callback(n.lastDiff = a, i);
|
|
5288
5288
|
}, e;
|
|
5289
|
-
}(
|
|
5289
|
+
}(nl)
|
|
5290
5290
|
);
|
|
5291
|
-
globalThis.__DEV__ !== !1 && (
|
|
5291
|
+
globalThis.__DEV__ !== !1 && (vl.prototype.getMemoryInternals = Qd);
|
|
5292
5292
|
var re;
|
|
5293
5293
|
(function(t) {
|
|
5294
5294
|
t[t.loading = 1] = "loading", t[t.setVariables = 2] = "setVariables", t[t.fetchMore = 3] = "fetchMore", t[t.refetch = 4] = "refetch", t[t.poll = 6] = "poll", t[t.ready = 7] = "ready", t[t.error = 8] = "error";
|
|
@@ -5380,7 +5380,7 @@ var Ys = Object.assign, Gh = Object.hasOwnProperty, Ln = (
|
|
|
5380
5380
|
this.queryInfo.updateWatch();
|
|
5381
5381
|
else {
|
|
5382
5382
|
var u = this.queryInfo.getDiff();
|
|
5383
|
-
(u.complete || this.options.returnPartialData) && (a.data = u.result), ae(a.data, {}) && (a.data = void 0), u.complete ? (delete a.partial, u.complete && a.networkStatus === re.loading && (s === "cache-first" || s === "cache-only") && (a.networkStatus = re.ready, a.loading = !1)) : a.partial = !0, a.networkStatus === re.ready && (a.error || a.errors) && (a.networkStatus = re.error), globalThis.__DEV__ !== !1 && !u.complete && !this.options.partialRefetch && !a.loading && !a.data && !a.error &&
|
|
5383
|
+
(u.complete || this.options.returnPartialData) && (a.data = u.result), ae(a.data, {}) && (a.data = void 0), u.complete ? (delete a.partial, u.complete && a.networkStatus === re.loading && (s === "cache-first" || s === "cache-only") && (a.networkStatus = re.ready, a.loading = !1)) : a.partial = !0, a.networkStatus === re.ready && (a.error || a.errors) && (a.networkStatus = re.error), globalThis.__DEV__ !== !1 && !u.complete && !this.options.partialRefetch && !a.loading && !a.data && !a.error && ml(u.missing);
|
|
5384
5384
|
}
|
|
5385
5385
|
return n && this.updateLastResult(a), a;
|
|
5386
5386
|
}, e.prototype.getCurrentResult = function(n) {
|
|
@@ -5388,7 +5388,7 @@ var Ys = Object.assign, Gh = Object.hasOwnProperty, Ln = (
|
|
|
5388
5388
|
}, e.prototype.isDifferentFromLastResult = function(n, r) {
|
|
5389
5389
|
if (!this.last)
|
|
5390
5390
|
return !0;
|
|
5391
|
-
var i = this.queryManager.getDocumentInfo(this.query), a = this.queryManager.dataMasking, o = a ? i.nonReactiveQuery : this.query, s = a || i.hasNonreactiveDirective ? !
|
|
5391
|
+
var i = this.queryManager.getDocumentInfo(this.query), a = this.queryManager.dataMasking, o = a ? i.nonReactiveQuery : this.query, s = a || i.hasNonreactiveDirective ? !Jc(o, this.last.result, n, this.variables) : !ae(this.last.result, n);
|
|
5392
5392
|
return s || r && !ae(this.last.variables, r);
|
|
5393
5393
|
}, e.prototype.getLast = function(n, r) {
|
|
5394
5394
|
var i = this.last;
|
|
@@ -5604,7 +5604,7 @@ var Ys = Object.assign, Gh = Object.hasOwnProperty, Ln = (
|
|
|
5604
5604
|
};
|
|
5605
5605
|
return !a && (g || !this.concast) && (this.concast && this.observer && this.concast.removeObserver(this.observer), this.concast = y, this.observer = _), y.addObserver(_), y;
|
|
5606
5606
|
}, e.prototype.reobserve = function(n, r) {
|
|
5607
|
-
return
|
|
5607
|
+
return Fp(this.reobserveAsConcast(n, r).promise.then(this.maskResult));
|
|
5608
5608
|
}, e.prototype.resubscribeAfterError = function() {
|
|
5609
5609
|
for (var n = [], r = 0; r < arguments.length; r++)
|
|
5610
5610
|
n[r] = arguments[r];
|
|
@@ -5674,7 +5674,7 @@ Wc(Ln);
|
|
|
5674
5674
|
function Hh(t) {
|
|
5675
5675
|
globalThis.__DEV__ !== !1 && L.error(25, t.message, t.stack);
|
|
5676
5676
|
}
|
|
5677
|
-
function
|
|
5677
|
+
function ml(t) {
|
|
5678
5678
|
globalThis.__DEV__ !== !1 && t && globalThis.__DEV__ !== !1 && L.debug(26, t);
|
|
5679
5679
|
}
|
|
5680
5680
|
function mi(t) {
|
|
@@ -5969,7 +5969,7 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
|
|
|
5969
5969
|
o || a.forEach(function(g) {
|
|
5970
5970
|
return f.write(g);
|
|
5971
5971
|
});
|
|
5972
|
-
var d = e.update, p = !
|
|
5972
|
+
var d = e.update, p = !Wp(i) || on(i) && !i.hasNext;
|
|
5973
5973
|
if (d) {
|
|
5974
5974
|
if (!o) {
|
|
5975
5975
|
var y = f.diff({
|
|
@@ -6051,10 +6051,10 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
|
|
|
6051
6051
|
// of the transformed document. We should consider merging these
|
|
6052
6052
|
// traversals into a single pass in the future, though the work is
|
|
6053
6053
|
// cached after the first time.
|
|
6054
|
-
hasClientExports:
|
|
6054
|
+
hasClientExports: Od(e),
|
|
6055
6055
|
hasForcedResolvers: this.localState.shouldForceResolvers(e),
|
|
6056
6056
|
hasNonreactiveDirective: Un(["nonreactive"], e),
|
|
6057
|
-
nonReactiveQuery:
|
|
6057
|
+
nonReactiveQuery: Ap(e),
|
|
6058
6058
|
clientQuery: this.localState.clientQuery(e),
|
|
6059
6059
|
serverQuery: jc([
|
|
6060
6060
|
{ name: "client", remove: !0 },
|
|
@@ -6125,7 +6125,7 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
|
|
|
6125
6125
|
return Array.isArray(e) && e.forEach(function(s) {
|
|
6126
6126
|
if (typeof s == "string")
|
|
6127
6127
|
i.set(s, s), a.set(s, !1);
|
|
6128
|
-
else if (
|
|
6128
|
+
else if (ep(s)) {
|
|
6129
6129
|
var u = xt(n.transform(s));
|
|
6130
6130
|
i.set(u, An(s)), a.set(u, !1);
|
|
6131
6131
|
} else me(s) && s.query && o.add(s);
|
|
@@ -6176,7 +6176,7 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
|
|
|
6176
6176
|
dataId: "ROOT_SUBSCRIPTION",
|
|
6177
6177
|
variables: y
|
|
6178
6178
|
}), n.broadcastQueries());
|
|
6179
|
-
var _ = br(g), m =
|
|
6179
|
+
var _ = br(g), m = oh(g);
|
|
6180
6180
|
if (_ || m) {
|
|
6181
6181
|
var E = {};
|
|
6182
6182
|
if (_ && (E.graphQLErrors = g.errors), m && (E.protocolErrors = g.extensions[jo]), s === "none" || m)
|
|
@@ -6378,7 +6378,7 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
|
|
|
6378
6378
|
var n, r, i, a = e.document, o = e.data;
|
|
6379
6379
|
if (globalThis.__DEV__ !== !1) {
|
|
6380
6380
|
var s = e.fetchPolicy, u = e.id, c = (n = Ut(a)) === null || n === void 0 ? void 0 : n.operation, l = ((r = c == null ? void 0 : c[0]) !== null && r !== void 0 ? r : "o") + u;
|
|
6381
|
-
this.dataMasking && s === "no-cache" && !
|
|
6381
|
+
this.dataMasking && s === "no-cache" && !Ld(a) && !this.noCacheWarningsByQueryId.has(l) && (this.noCacheWarningsByQueryId.add(l), globalThis.__DEV__ !== !1 && L.warn(
|
|
6382
6382
|
37,
|
|
6383
6383
|
(i = An(a)) !== null && i !== void 0 ? i : "Unnamed ".concat(c ?? "operation")
|
|
6384
6384
|
));
|
|
@@ -6386,7 +6386,7 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
|
|
|
6386
6386
|
return this.dataMasking ? Ch(o, a, this.cache) : o;
|
|
6387
6387
|
}, t.prototype.maskFragment = function(e) {
|
|
6388
6388
|
var n = e.data, r = e.fragment, i = e.fragmentName;
|
|
6389
|
-
return this.dataMasking ?
|
|
6389
|
+
return this.dataMasking ? tl(n, r, this.cache, i) : n;
|
|
6390
6390
|
}, t.prototype.fetchQueryByPolicy = function(e, n, r) {
|
|
6391
6391
|
var i = this, a = n.query, o = n.variables, s = n.fetchPolicy, u = n.refetchWritePolicy, c = n.errorPolicy, l = n.returnPartialData, f = n.context, d = n.notifyOnNetworkStatusChange, p = e.networkStatus;
|
|
6392
6392
|
e.init({
|
|
@@ -6399,7 +6399,7 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
|
|
|
6399
6399
|
}, g = function(O, I) {
|
|
6400
6400
|
I === void 0 && (I = e.networkStatus || re.loading);
|
|
6401
6401
|
var A = O.result;
|
|
6402
|
-
globalThis.__DEV__ !== !1 && !l && !ae(A, {}) &&
|
|
6402
|
+
globalThis.__DEV__ !== !1 && !l && !ae(A, {}) && ml(O.missing);
|
|
6403
6403
|
var N = function(M) {
|
|
6404
6404
|
return le.of(b({ data: M, loading: nn(I), networkStatus: I }, O.complete ? null : { partial: !0 }));
|
|
6405
6405
|
};
|
|
@@ -6533,7 +6533,7 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
|
|
|
6533
6533
|
}), n;
|
|
6534
6534
|
}, t.prototype.buildRootValueFromCache = function(e, n) {
|
|
6535
6535
|
return this.cache.diff({
|
|
6536
|
-
query:
|
|
6536
|
+
query: Pp(e),
|
|
6537
6537
|
variables: n,
|
|
6538
6538
|
returnPartialData: !0,
|
|
6539
6539
|
optimistic: !1
|
|
@@ -6575,7 +6575,7 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
|
|
|
6575
6575
|
] : ar(d, s) ? It(d) ? [2, this.resolveField(d, n, r, i).then(function(_) {
|
|
6576
6576
|
var m;
|
|
6577
6577
|
typeof _ < "u" && u.push((m = {}, m[ct(d)] = _, m));
|
|
6578
|
-
})] : (
|
|
6578
|
+
})] : (dp(d) ? p = d : (p = a[d.name.value], L(p, 19, d.name.value)), p && p.typeCondition && (y = p.typeCondition.name.value, i.fragmentMatcher(r, y, o)) ? [2, this.resolveSelectionSet(p.selectionSet, n, r, i).then(function(_) {
|
|
6579
6579
|
u.push(_);
|
|
6580
6580
|
})] : [
|
|
6581
6581
|
2
|
|
@@ -6662,7 +6662,7 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
|
|
|
6662
6662
|
return a(e);
|
|
6663
6663
|
}, t;
|
|
6664
6664
|
}()
|
|
6665
|
-
), eu = !1,
|
|
6665
|
+
), eu = !1, yl = (
|
|
6666
6666
|
/** @class */
|
|
6667
6667
|
function() {
|
|
6668
6668
|
function t(e) {
|
|
@@ -6834,21 +6834,21 @@ var Jh = Object.prototype.hasOwnProperty, Xs = /* @__PURE__ */ Object.create(nul
|
|
|
6834
6834
|
}), t;
|
|
6835
6835
|
}()
|
|
6836
6836
|
);
|
|
6837
|
-
globalThis.__DEV__ !== !1 && (
|
|
6837
|
+
globalThis.__DEV__ !== !1 && (yl.prototype.getMemoryInternals = qd);
|
|
6838
6838
|
var _i = { exports: {} }, tu;
|
|
6839
6839
|
function Xh() {
|
|
6840
6840
|
return tu || (tu = 1, function(t) {
|
|
6841
|
-
t.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = void 0, t.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = void 0, t.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = void 0, Object.assign(t.exports,
|
|
6841
|
+
t.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = void 0, t.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = void 0, t.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = void 0, Object.assign(t.exports, nd);
|
|
6842
6842
|
}(_i)), _i.exports;
|
|
6843
6843
|
}
|
|
6844
6844
|
var pe = Xh();
|
|
6845
|
-
const ev = /* @__PURE__ */ Lh(pe),
|
|
6845
|
+
const ev = /* @__PURE__ */ Lh(pe), gl = /* @__PURE__ */ id({
|
|
6846
6846
|
__proto__: null,
|
|
6847
6847
|
default: ev
|
|
6848
6848
|
}, [pe]);
|
|
6849
6849
|
var nu = Io ? Symbol.for("__APOLLO_CONTEXT__") : "__APOLLO_CONTEXT__";
|
|
6850
|
-
function
|
|
6851
|
-
L("createContext" in
|
|
6850
|
+
function _l() {
|
|
6851
|
+
L("createContext" in gl, 54);
|
|
6852
6852
|
var t = pe.createContext[nu];
|
|
6853
6853
|
return t || (Object.defineProperty(pe.createContext, nu, {
|
|
6854
6854
|
value: t = pe.createContext({}),
|
|
@@ -6858,10 +6858,10 @@ function gl() {
|
|
|
6858
6858
|
}), t.displayName = "ApolloContext"), t;
|
|
6859
6859
|
}
|
|
6860
6860
|
function Wo(t) {
|
|
6861
|
-
var e = pe.useContext(
|
|
6861
|
+
var e = pe.useContext(_l()), n = t || e.client;
|
|
6862
6862
|
return L(!!n, 58), n;
|
|
6863
6863
|
}
|
|
6864
|
-
var ru = !1, tv = "useSyncExternalStore", nv =
|
|
6864
|
+
var ru = !1, tv = "useSyncExternalStore", nv = gl[tv], rv = nv || function(t, e, n) {
|
|
6865
6865
|
var r = e();
|
|
6866
6866
|
// DEVIATION: Using __DEV__
|
|
6867
6867
|
globalThis.__DEV__ !== !1 && !ru && // DEVIATION: Not using Object.is because we know our snapshots will never
|
|
@@ -6870,7 +6870,7 @@ var ru = !1, tv = "useSyncExternalStore", nv = yl[tv], rv = nv || function(t, e,
|
|
|
6870
6870
|
var i = pe.useState({
|
|
6871
6871
|
inst: { value: r, getSnapshot: e }
|
|
6872
6872
|
}), a = i[0].inst, o = i[1];
|
|
6873
|
-
return
|
|
6873
|
+
return Md ? pe.useLayoutEffect(function() {
|
|
6874
6874
|
Object.assign(a, { value: r, getSnapshot: e }), bi(a) && o({ inst: a });
|
|
6875
6875
|
}, [t, r, e]) : Object.assign(a, { value: r, getSnapshot: e }), pe.useEffect(function() {
|
|
6876
6876
|
return bi(a) && o({ inst: a }), t(function() {
|
|
@@ -6906,7 +6906,7 @@ function iu(t) {
|
|
|
6906
6906
|
}
|
|
6907
6907
|
return e;
|
|
6908
6908
|
}
|
|
6909
|
-
function
|
|
6909
|
+
function bl(t) {
|
|
6910
6910
|
Lt || (Lt = new Po(
|
|
6911
6911
|
Ye.parser || 1e3
|
|
6912
6912
|
/* defaultCacheSizes.parser */
|
|
@@ -6950,14 +6950,14 @@ function _l(t) {
|
|
|
6950
6950
|
var y = { name: i, type: r, variables: n };
|
|
6951
6951
|
return Lt.set(t, y), y;
|
|
6952
6952
|
}
|
|
6953
|
-
|
|
6953
|
+
bl.resetCache = function() {
|
|
6954
6954
|
Lt = void 0;
|
|
6955
6955
|
};
|
|
6956
6956
|
globalThis.__DEV__ !== !1 && Ao("parser", function() {
|
|
6957
6957
|
return Lt ? Lt.size : 0;
|
|
6958
6958
|
});
|
|
6959
|
-
function
|
|
6960
|
-
var n =
|
|
6959
|
+
function El(t, e) {
|
|
6960
|
+
var n = bl(t), r = iu(e), i = iu(n.type);
|
|
6961
6961
|
L(
|
|
6962
6962
|
n.type === e,
|
|
6963
6963
|
74,
|
|
@@ -6992,7 +6992,7 @@ function cv(t, e) {
|
|
|
6992
6992
|
function lv(t, e, n, r, i) {
|
|
6993
6993
|
function a(f) {
|
|
6994
6994
|
var d;
|
|
6995
|
-
|
|
6995
|
+
El(e, Je.Query);
|
|
6996
6996
|
var p = {
|
|
6997
6997
|
client: t,
|
|
6998
6998
|
query: e,
|
|
@@ -7001,7 +7001,7 @@ function lv(t, e, n, r, i) {
|
|
|
7001
7001
|
// data and if so, use it instead since it will contain the proper queryId
|
|
7002
7002
|
// to fetch the result set. This is used during SSR.
|
|
7003
7003
|
r && r.getSSRObservable(i()) || Ln.inactiveOnCreation.withValue(!r, function() {
|
|
7004
|
-
return t.watchQuery(
|
|
7004
|
+
return t.watchQuery(wl(void 0, t, n, i()));
|
|
7005
7005
|
})
|
|
7006
7006
|
),
|
|
7007
7007
|
resultData: {
|
|
@@ -7035,7 +7035,7 @@ function lv(t, e, n, r, i) {
|
|
|
7035
7035
|
return [s, c];
|
|
7036
7036
|
}
|
|
7037
7037
|
function fv(t, e) {
|
|
7038
|
-
var n = Wo(e.client), r = pe.useContext(
|
|
7038
|
+
var n = Wo(e.client), r = pe.useContext(_l()).renderPromises, i = !!r, a = n.disableNetworkFetches, o = e.ssr !== !1 && !e.skip, s = e.partialRefetch, u = vv(n, t, e, i), c = lv(n, t, e, r, u), l = c[0], f = l.observable, d = l.resultData, p = c[1], y = u(f);
|
|
7039
7039
|
hv(
|
|
7040
7040
|
d,
|
|
7041
7041
|
// might get mutated during render
|
|
@@ -7070,7 +7070,7 @@ function dv(t, e, n, r, i, a, o, s, u) {
|
|
|
7070
7070
|
var l = (s || a) && r.ssr === !1 && !r.skip ? (
|
|
7071
7071
|
// If SSR has been explicitly disabled, and this function has been called
|
|
7072
7072
|
// on the server side, return the default loading state.
|
|
7073
|
-
|
|
7073
|
+
Tl
|
|
7074
7074
|
) : r.skip || i.fetchPolicy === "standby" ? (
|
|
7075
7075
|
// When skipping a query (ie. we're not querying for data but still want to
|
|
7076
7076
|
// render children), make sure the `data` is cleared out and `loading` is
|
|
@@ -7082,9 +7082,9 @@ function dv(t, e, n, r, i, a, o, s, u) {
|
|
|
7082
7082
|
// previously received data is all of a sudden removed. Unfortunately,
|
|
7083
7083
|
// changing this is breaking, so we'll have to wait until Apollo Client 4.0
|
|
7084
7084
|
// to address this.
|
|
7085
|
-
|
|
7085
|
+
Ol
|
|
7086
7086
|
) : void 0, f = t.previousData, d = pe.useMemo(function() {
|
|
7087
|
-
return l &&
|
|
7087
|
+
return l && Sl(l, f, e, n);
|
|
7088
7088
|
}, [n, e, l, f]);
|
|
7089
7089
|
return rv(pe.useCallback(function(p) {
|
|
7090
7090
|
if (s)
|
|
@@ -7127,7 +7127,7 @@ function pv(t, e, n) {
|
|
|
7127
7127
|
}
|
|
7128
7128
|
function hv(t, e, n, r, i) {
|
|
7129
7129
|
var a;
|
|
7130
|
-
e[Sr] && !ae(e[Sr], i) && (e.reobserve(
|
|
7130
|
+
e[Sr] && !ae(e[Sr], i) && (e.reobserve(wl(e, n, r, i)), t.previousData = ((a = t.current) === null || a === void 0 ? void 0 : a.data) || t.previousData, t.current = void 0), e[Sr] = i;
|
|
7131
7131
|
}
|
|
7132
7132
|
function vv(t, e, n, r) {
|
|
7133
7133
|
n === void 0 && (n = {});
|
|
@@ -7139,13 +7139,13 @@ function vv(t, e, n, r) {
|
|
|
7139
7139
|
return r && (u.fetchPolicy === "network-only" || u.fetchPolicy === "cache-and-network") && (u.fetchPolicy = "cache-first"), u.variables || (u.variables = {}), i ? (u.initialFetchPolicy = u.initialFetchPolicy || u.fetchPolicy || su(a, t.defaultOptions), u.fetchPolicy = "standby") : u.fetchPolicy || (u.fetchPolicy = (s == null ? void 0 : s.options.initialFetchPolicy) || su(a, t.defaultOptions)), u;
|
|
7140
7140
|
};
|
|
7141
7141
|
}
|
|
7142
|
-
function
|
|
7142
|
+
function wl(t, e, n, r) {
|
|
7143
7143
|
var i = [], a = e.defaultOptions.watchQuery;
|
|
7144
7144
|
return a && i.push(a), n.defaultOptions && i.push(n.defaultOptions), i.push(Vt(t && t.options, r)), i.reduce(Rn);
|
|
7145
7145
|
}
|
|
7146
7146
|
function Yi(t, e, n, r, i, a, o) {
|
|
7147
7147
|
var s = e.current;
|
|
7148
|
-
s && s.data && (e.previousData = s.data), !t.error && Le(t.errors) && (t.error = new Ge({ graphQLErrors: t.errors })), e.current =
|
|
7148
|
+
s && s.data && (e.previousData = s.data), !t.error && Le(t.errors) && (t.error = new Ge({ graphQLErrors: t.errors })), e.current = Sl(gv(t, n, i), e.previousData, n, r), a(), mv(t, s == null ? void 0 : s.networkStatus, o);
|
|
7149
7149
|
}
|
|
7150
7150
|
function mv(t, e, n) {
|
|
7151
7151
|
if (!t.loading) {
|
|
@@ -7168,21 +7168,21 @@ function su(t, e) {
|
|
|
7168
7168
|
function yv(t) {
|
|
7169
7169
|
return Le(t.errors) ? new Ge({ graphQLErrors: t.errors }) : t.error;
|
|
7170
7170
|
}
|
|
7171
|
-
function
|
|
7171
|
+
function Sl(t, e, n, r) {
|
|
7172
7172
|
var i = t.data;
|
|
7173
7173
|
t.partial;
|
|
7174
|
-
var a = ze(t, ["data", "partial"]), o = b(b({ data: i }, a), { client: r, observable: n, variables: n.variables, called: t !==
|
|
7174
|
+
var a = ze(t, ["data", "partial"]), o = b(b({ data: i }, a), { client: r, observable: n, variables: n.variables, called: t !== Tl && t !== Ol, previousData: e });
|
|
7175
7175
|
return o;
|
|
7176
7176
|
}
|
|
7177
7177
|
function gv(t, e, n) {
|
|
7178
7178
|
return t.partial && n && !t.loading && (!t.data || Object.keys(t.data).length === 0) && e.options.fetchPolicy !== "cache-only" ? (e.refetch(), b(b({}, t), { loading: !0, networkStatus: re.refetch })) : t;
|
|
7179
7179
|
}
|
|
7180
|
-
var
|
|
7180
|
+
var Tl = dn({
|
|
7181
7181
|
loading: !0,
|
|
7182
7182
|
data: void 0,
|
|
7183
7183
|
error: void 0,
|
|
7184
7184
|
networkStatus: re.loading
|
|
7185
|
-
}),
|
|
7185
|
+
}), Ol = dn({
|
|
7186
7186
|
loading: !1,
|
|
7187
7187
|
data: void 0,
|
|
7188
7188
|
error: void 0,
|
|
@@ -7201,7 +7201,7 @@ function _v(t) {
|
|
|
7201
7201
|
}
|
|
7202
7202
|
function uu(t, e) {
|
|
7203
7203
|
var n = Wo(e == null ? void 0 : e.client);
|
|
7204
|
-
|
|
7204
|
+
El(t, Je.Mutation);
|
|
7205
7205
|
var r = pe.useState({
|
|
7206
7206
|
called: !1,
|
|
7207
7207
|
loading: !1,
|
|
@@ -7345,11 +7345,11 @@ var B = { isEmpty: function(t) {
|
|
|
7345
7345
|
return i === void 0 || i === t ? n : i;
|
|
7346
7346
|
}, isPromise: function(t) {
|
|
7347
7347
|
return !!t && (typeof t == "object" || typeof t == "function") && typeof t.then == "function";
|
|
7348
|
-
} }, qn,
|
|
7348
|
+
} }, qn, Il = 1048576, Tv = 1 * Il, vt = window.zAppID, be = window.APP_ID, Pl = "https://zalo.me/s", qo = "https://h5.zdn.vn/zapps", Ov = "h5.zdn.vn", Al = "/zapps", Se = { ZOAUTH: "h5.zdn.vn_zoauth", JS_TOKEN: "h5.zdn.vn_zlink3rd", ZOAUTH_VRF: "h5.zdn.vn_zoauth_vrf", DEVICE_ID: "h5.zdn.vn_deviceID", CONTEXT_ID: "h5.zdn.vn_contextID", CONTEXT_TYPE: "h5.zdn.vn_contextType", UTOKEN_ZPI: "h5.zdn.vn_utoken_zpi", GTOKEN_ZPI: "h5.zdn.vn_gtoken_zpi", ZPP_ZPI: "h5.zdn.vn_zpp_zpi", ZPT_ZPI: "h5.zdn.vn_zpt_zpi" }, lt = { GET_USER_INFO: "https://graph.zalo.me/v2.0/me", GET_ACCESS_TOKEN: "https://h5.zalo.me/openapi/access_token", GET_ACCESS_TOKEN_V3: "https://oauth.zaloapp.com/v3/access_token", GET_LIST_USER_INFO: "https://graph.zalo.me/v2.0/me/friends/list", CREATE_ORDER: "https://payment-mini.zalo.me/api/order/create", GET_APP_INFO: "https://h5.zalo.me/apps/get-info", SEND_ACTION_LOG: "https://h5.zalo.me/log/async", CREATE_SHARE_LINK: "https://h5.zalo.me/openapi/create-sharelink", CHECK_INTERACT_OA: "https://h5.zalo.me/openapi/check-interact-oa", GET_AUTH_SETTING: "https://h5.zalo.me/apis/users/auth-settings" };
|
|
7349
7349
|
(function(t) {
|
|
7350
7350
|
t.REQUEST = "REQUEST", t.MODIFIED_REQUEST = "MODIFIED_REQUEST", t.RESPONSE = "RESPONSE", t.MODIFIED_RESPONSE = "MODIFIED_RESPONSE", t.NOT_FOUND = "NOT_FOUND";
|
|
7351
7351
|
})(qn || (qn = {}));
|
|
7352
|
-
var Xi, Cr, Q = { SUCCESS: 0, UNKNOWN_ERROR: -2e3, BAD_REQUEST: -1400, INTERNAL_SERVER_ERROR: -1500, UNAUTHORIZED: -1401, FORBIDDEN: -1403, CLIENT_NOT_SUPPORT: -1404, TIME_OUT: -1408, FAIL_LIMIT: -1409, DUPLICATE_REQUEST: -1410, DECODE_FAILED: -2001, USER_DENIED: -2002, USER_CANCEL: -2003, MEDIA_PICKER_FAIL: -2004, SAVE_IMAGE_FAIL: -2005, SAVE_VIDEO_FAIL: -2006, SAVE_FILE_FAIL: -2007, DEVICE_NOT_SUPPORT: -600, SCAN_TIMEOUT: -601, SERVICE_NOT_READY: -602, UNREADABLE: -603, INVALID_MRZ: -604, PROCESSING: -605, CANCEL: -606, MPDS_ACTION_INVALID: -3e3, MPDS_SOURCE_INVALID: -3005, MPDS_APPID_INVALID: -3006 }, G = { SUCCESS: "Success", UNKNOWN_ERROR: "Unknown error. Please try again later.", FAIL_LIMIT: "Request limit exceeded. Please try again later.", DUPLICATE_REQUEST: "Duplicate request. Please try again later.", TIME_OUT: "Request timeout. Please try again later.", LOGIN_REQUIRED: "Please login (https://miniapp.zalo.me/docs/api/login) before to call this api", LOGIN_FAILED: "Login failed", NOT_PERMISSION: "You don't have permission to call this api", CLIENT_NOT_SUPPORT: "This API is not supported in this version of Zalo", DECODE_FAILED: "Can not decode id. Please check your params again.", USER_DENIED: "User denied", USER_CANCEL: "User cancel", NEED_USER_AUTH: "User Authentication Required. Please grant User Authentication permission before requesting User Permission", MEDIA_PICKER_FAIL: "Unable to pick media", SAVE_IMAGE_FAIL: "Unable to save image", SAVE_VIDEO_FAIL: "Unable to save video", SAVE_FILE_FAIL: "Unable to save file", DEVICE_NOT_SUPPORT: "This device does not support NFC", SERVICE_NOT_READY: "NFC service is not ready. Please check in your setting", UNREADABLE: "NFC tag is unreadable", INVALID_MRZ: "Invalid MRZ data. Please try again later.", PROCESSING: "Processing NFC tag. Please wait a moment.", CANCEL: "User cancel", SCAN_TIMEOUT: "NFC scan timeout. Please try again later.", MPDS_ACTION_INVALID: "Action name from input data does not match declared API actions", MPDS_SOURCE_INVALID: "This API not called from Mini App", MPDS_APPID_INVALID: "AppId from input data does not match the currently opened AppId" }, $ = { UNKNOWN_ERROR: { code: Q.UNKNOWN_ERROR, message: G.UNKNOWN_ERROR }, UNAUTHORIZED: { code: Q.UNAUTHORIZED, message: G.LOGIN_REQUIRED }, FORBIDDEN: { code: Q.FORBIDDEN, message: G.NOT_PERMISSION }, CLIENT_NOT_SUPPORT: { code: Q.CLIENT_NOT_SUPPORT, message: G.CLIENT_NOT_SUPPORT }, DECODE_FAILED: { code: Q.DECODE_FAILED, message: G.DECODE_FAILED }, TIME_OUT: { code: Q.TIME_OUT, message: G.TIME_OUT }, USER_DENIED: { code: Q.USER_DENIED, message: G.USER_DENIED }, USER_CANCEL: { code: Q.USER_CANCEL, message: G.USER_CANCEL }, DUPLICATE_REQUEST: { code: Q.DUPLICATE_REQUEST, message: G.DUPLICATE_REQUEST }, DEVICE_NOT_SUPPORT: { code: Q.DEVICE_NOT_SUPPORT, message: G.DEVICE_NOT_SUPPORT }, SERVICE_NOT_READY: { code: Q.SERVICE_NOT_READY, message: G.SERVICE_NOT_READY }, UNREADABLE: { code: Q.UNREADABLE, message: G.UNREADABLE }, INVALID_MRZ: { code: Q.INVALID_MRZ, message: G.INVALID_MRZ }, PROCESSING: { code: Q.PROCESSING, message: G.PROCESSING }, CANCEL: { code: Q.CANCEL, message: G.CANCEL }, SCAN_TIMEOUT: { code: Q.SCAN_TIMEOUT, message: G.SCAN_TIMEOUT }, MPDS_ACTION_INVALID: { code: Q.MPDS_ACTION_INVALID, message: G.MPDS_ACTION_INVALID }, MPDS_SOURCE_INVALID: { code: Q.MPDS_SOURCE_INVALID, message: G.MPDS_SOURCE_INVALID }, MPDS_APPID_INVALID: { code: Q.MPDS_APPID_INVALID, message: G.MPDS_APPID_INVALID } }, Al = { addRating: { limit: 1 }, authorize: {}, isAllowedInteractWithOA: {}, favoriteApp: {}, followOA: {}, getLocation: {}, getPhoneNumber: {}, getShareableLink: {}, getSetting: {}, getAppInfo: {}, getUserInfo: {}, interactOA: {}, openProfilePicker: {}, openShareSheet: {}, unfollowOA: {}, checkTransaction: { limit: 5 }, createOrder: { limit: 5 }, createOrderIAP: { limit: 5 }, selectPaymentMethod: {}, requestSendNotification: {} }, Qo = { GET_DOWNLOADED_STICKER: { haveCallback: !0 }, OPEN_SHARE_STICKER: {}, OPEN_PROFILE: { requireAccessToken: !0 }, OPEN_FEED_DETAIL: {}, OPEN_FRIEND_RADA: {}, OPEN_INAPP: {}, OPEN_OUTAPP: { requireAccessToken: !0 }, OPEN_PAGE: {}, OPEN_PHOTODETAIL: {}, OPEN_GALARY: {}, OPEN_GAMECENTER: {}, OPEN_GAMENEWS: {}, OPEN_TAB_CONTACT: {}, OPEN_TAB_SOCIAL: {}, OPEN_FRIENDSUGGEST: {}, OPEN_GROUPLIST: {}, OPEN_NEARBY: {}, OPEN_ROOM: {}, OPEN_STICKERSTORE: {}, OPEN_CREATECHAT: {}, COPY_LINK_CATESTICKER: {}, REQUEST_BUY_STICKER: {}, OPEN_CHAT: { requireAccessToken: !0 }, OPEN_TAB_CHAT: {}, OPEN_CHATGROUP: {}, OPEN_ADDFRIEND: {}, OPEN_TAB_MORE: {}, OPEN_POSTFEED: { requireAccessToken: !0 }, OPEN_LOGINDEVICES: {}, OPEN_SENDSTICKER: {}, REPORT_ABUSE: { haveCallback: !0 }, FOLLOW_OA: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, UNFOLLOW_OA: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, OPEN_GAMEDETAIL: {}, OPEN_SHARESHEET: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-101": { mapTo: $.CLIENT_NOT_SUPPORT } }, iOS: { "-101": { mapTo: $.CLIENT_NOT_SUPPORT } } } }, REQUEST_PERMISSION_CAMERA: { errorList: { android: { "-2": { mapTo: $.USER_DENIED } }, iOS: { "-2": { mapTo: $.USER_DENIED } } } }, CHANGE_TITLE_HEADER: { skipJump: !0 }, WEBVIEW_CLEARCACHE: {}, WEBVIEW_CONFIRMCACHE: {}, WEBVIEW_ISVISIBLE: {}, WEBVIEW_NETWORKTYPE: { skipJump: !0 }, CHANGE_BUTTON_HEADER: {}, CREATE_OPTIONS_MENU: { skipJump: !0, haveCallback: !0 }, CREATE_SHORTCUT: { requireAccessToken: !0 }, CHANGE_ACTIONBAR_LEFTBUTTON_TYPE: { skipJump: !0, haveCallback: !0 }, WINDOW_CLOSE: { skipJump: !0, haveCallback: !0 }, WEBVIEW_CHECKRESERROR: {}, IAP_REQUESTPAYMENT: { haveCallback: !0 }, ZBROWSER_GETSTATS: {}, ZBROWSER_JSBRIDGE: { skipJump: !0, haveCallback: !0 }, PROMPT_AUTHENTICATION: {}, CHANGE_ACTIONBAR_COLOR: { skipJump: !0 }, PROMPT_AUTHENTICATION_CHECK_STATE: {}, OPEN_APPSTORE: {}, GET_LOCATION: { haveCallback: !0, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, QUERY_LOCATION_HIDE: { haveCallback: !0 }, SHOW_TOAST: { haveCallback: !0, timeout: 2 }, OPEN_APP: {}, HIDE_KEYBOARD: {}, OPEN_PHONE: {}, OPEN_QR: {}, OPEN_SMS: { errorList: { iOS: { "-9": { mapTo: $.UNKNOWN_ERROR }, "-10": { mapTo: $.USER_CANCEL } } } }, VIEW_MYQR: { haveCallback: !0, timeout: !0, requireAccessToken: !0 }, KEEP_SCREEN: { haveCallback: !0, timeout: 2 }, CHANGE_AUTOROTATE: { skipJump: !0 }, CHECK_APP_INSTALLED: {}, QUERY_SHOW: {}, QUERY_HIDE: {}, OPEN_INAPPRW: {}, ZALORUN_GETTRACKINGSTATUS: { haveCallback: !0 }, ZALORUN_SETTRACKINGSTATUS: { haveCallback: !0 }, ZALORUN_GETDAYSTEP: { haveCallback: !0 }, ZALORUN_FORCESUBMITDATA: { haveCallback: !0 }, ZALORUN_SETWEIGHT: { haveCallback: !0 }, OPEN_PROFILE_EXT: {}, DOWNLOAD_CATE: { haveCallback: !0 }, JUMP_LOGIN: { skipJump: !0, whiteList: !0 }, OPEN_ADTIMA_ADS_INTERSTITIAL: {}, OPEN_ADTIMA_ADS: {}, GET_ADIDCLIENT: {}, SCAN_IBEACON: {}, SAVE_VIDEO_GALLERY: { versionLive: { iOS: 628 }, errorList: { android: { "-101": { mapTo: { code: Q.SAVE_VIDEO_FAIL, message: G.SAVE_VIDEO_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Q.SAVE_VIDEO_FAIL, message: G.SAVE_VIDEO_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.SAVE_VIDEO_FAIL, message: G.SAVE_VIDEO_FAIL }, needMoreDetail: !0 } } } }, INTERACTIVE_VIBRATION: {}, SAVE_IMAGE_GALLERY: { versionLive: { iOS: 408 }, errorList: { android: { "-101": { mapTo: { code: Q.SAVE_IMAGE_FAIL, message: G.SAVE_IMAGE_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Q.SAVE_IMAGE_FAIL, message: G.SAVE_IMAGE_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.SAVE_IMAGE_FAIL, message: G.SAVE_IMAGE_FAIL }, needMoreDetail: !0 } } } }, OPEN_MP: { versionLive: { iOS: 402 } }, CHANGE_ACTIONBAR: { haveCallback: !0, timeout: 2, versionLive: { iOS: 402 }, skipJump: !0 }, ZBROWSER_MPDS: { haveCallback: !0, timeout: 2, versionLive: { iOS: 402 }, errorList: { android: { "-100": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.UNKNOWN_ERROR }, "-105": { mapTo: $.MPDS_SOURCE_INVALID }, "-106": { mapTo: $.MPDS_APPID_INVALID } }, iOS: { "-10": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.MPDS_APPID_INVALID }, "-102": { mapTo: $.UNKNOWN_ERROR } } } }, ZBROWSER_MPDS_SYNC: { versionLive: { iOS: 402 }, errorList: { android: { "-100": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.UNKNOWN_ERROR }, "-105": { mapTo: $.MPDS_SOURCE_INVALID }, "-106": { mapTo: $.MPDS_APPID_INVALID } }, iOS: { "-10": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.MPDS_APPID_INVALID }, "-102": { mapTo: $.UNKNOWN_ERROR } } } }, WEBVIEW_SET_RESULT: { versionLive: { iOS: 416 } }, MP_GET_NUMBER: { versionLive: { iOS: 416 }, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-101": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-10": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_OPEN_PROFILE_PICKER: { requireAccessToken: !0, versionLive: { iOS: 432 }, errorList: { android: { "-101": { mapTo: $.USER_CANCEL } }, iOS: { "-101": { mapTo: $.USER_CANCEL } } } }, GET_SUPPORTED_ACTIONS: { whiteList: !0 }, MP_JOIN_WIFI: { haveCallback: !0, timeout: !0, versionLive: { android: 0, iOS: 0 }, havePermission: !1, whiteList: !1 }, PICK_MEDIA: { requireAccessToken: !0, versionLive: { iOS: 440 }, errorList: { android: { "-101": { mapTo: $.USER_CANCEL }, 999: { mapTo: { code: Q.MEDIA_PICKER_FAIL, message: G.MEDIA_PICKER_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.MEDIA_PICKER_FAIL, message: G.MEDIA_PICKER_FAIL } } } } }, MP_CLOSE_LOADINGVIEW: { skipJump: !0 }, CHANGE_BOTTOMBAR: { haveCallback: !0, timeout: 2, skipJump: !0 }, MA_MENU_MINIMIZE: { skipJump: !1, versionLive: { iOS: 520 } }, MA_MENU_PERMISSION: { skipJump: !1, versionLive: { iOS: 520 } }, MA_MENU_FAVORITES: { skipJump: !1, versionLive: { iOS: 520 } }, MP_SEND_NOTIFICATION: { skipJump: !1, versionLive: { iOS: 530 }, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_ADD_RATING: { skipJump: !1 }, MP_ADD_MYFAVORITES: { skipJump: !1 }, MP_INTERACT_OA: { skipJump: !1, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_USER_AUTHORIZE: { skipJump: !1, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_SELECT_PAYMENT_METHOD: { skipJump: !1 }, CHECK_NFC: { skipJump: !1, versionLive: { iOS: 626 }, errorList: { all: { "-1": { mapTo: $.UNKNOWN_ERROR }, "-600": { mapTo: $.DEVICE_NOT_SUPPORT }, "-602": { mapTo: $.SERVICE_NOT_READY } } } }, SCAN_NFC: { skipJump: !1, haveCallback: !0, timeout: 65, errorList: { all: { "-1": { mapTo: $.UNKNOWN_ERROR }, "-600": { mapTo: $.DEVICE_NOT_SUPPORT }, "-601": { mapTo: $.SCAN_TIMEOUT }, "-602": { mapTo: $.SERVICE_NOT_READY }, "-603": { mapTo: $.UNREADABLE }, "-604": { mapTo: $.INVALID_MRZ }, "-605": { mapTo: $.PROCESSING }, "-606": { mapTo: $.CANCEL } } } }, MP_CONFIRM_REQUEST_PAYMENT: { skipJump: !1 }, SAVE_FILE: { versionLive: { iOS: 628 }, skipJump: !1, errorList: { android: { "-101": { mapTo: { code: Q.SAVE_FILE_FAIL, message: G.SAVE_FILE_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Q.SAVE_FILE_FAIL, message: G.SAVE_FILE_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.SAVE_FILE_FAIL, message: G.SAVE_FILE_FAIL }, needMoreDetail: !0 } } } }, MP_APP_LIFECYCLE_TRACKING: { skipJump: !1 } }, Ei = { android: { "-4": $.DECODE_FAILED, "-5": $.CLIENT_NOT_SUPPORT, "-14": $.TIME_OUT }, iOS: { "-9": $.DECODE_FAILED, "-5": $.CLIENT_NOT_SUPPORT, "-14": $.TIME_OUT } }, Iv = { android: 12100615, iOS: 460, wp: 0, unknown: 0 }, Pv = { android: 12100571, iOS: 400, wp: 0, unknown: 0 }, $n = 5 * Ol, ei = { CREATE_ORDER: "https://payment-mini.zalo.me/api/order/create-v2", CREATE_IAP_ORDER: "https://payment-mini.zalo.me/api/order/iap-create", GET_TRANSACTION: "https://payment-mini.zalo.me/api/transaction", PURCHASE: "https://payment-mini.zalo.me/api/order/purchase" }, Av = "https://payment-mini.zalo.me", du = { DEFERRED: "DEFERRED", IMMEDIATE_AND_CHARGE_FULL_PRICE: "IMMEDIATE_AND_CHARGE_FULL_PRICE" }, mt = { SHOW_BACK: 0, HIDE_BACK: 3, SHOW_HOME: 1, HIDE_HOME: 0 }, wi = 5, hr = 6, kv = { LEFT: 0 }, Cv = "#1843EF", Nv = kv.LEFT, Dv = { "-12101": "Invalid params", "-12102": "Session expire", "-12103": "Not permission", "-12104": "Not Authorize", "-12105": "Unknown exception", "-12106": "Cannot create order", "-12107": "Transaction not found", "-12108": "Cannot update order", "-12109": "Cannot decode param", "-12110": "Version not support", "-12111": "Receipt expire", "-12112": "Product not found", "-12113": "Subscription other GW", "-12114": "Product already subcription", "-12115": "Not exist", "-12116": "Already exist", "-12117": "Not allow", "-12118": "Not permit", "-12119": "Internal error", "-2": "Unable to pay", "-6": "Unable to register", "-7": "Registered account", "-832": "Purchased by another account", "-833": "Register for another account", "-834": "Unable to register", "-2010": "System is maintaining", "-3999": "Not in Vietnam", "-12129": "Purchased by another account", 123: "An error has occurred" }, Rv = ["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"];
|
|
7352
|
+
var Xi, Cr, Q = { SUCCESS: 0, UNKNOWN_ERROR: -2e3, BAD_REQUEST: -1400, INTERNAL_SERVER_ERROR: -1500, UNAUTHORIZED: -1401, FORBIDDEN: -1403, CLIENT_NOT_SUPPORT: -1404, TIME_OUT: -1408, FAIL_LIMIT: -1409, DUPLICATE_REQUEST: -1410, DECODE_FAILED: -2001, USER_DENIED: -2002, USER_CANCEL: -2003, MEDIA_PICKER_FAIL: -2004, SAVE_IMAGE_FAIL: -2005, SAVE_VIDEO_FAIL: -2006, SAVE_FILE_FAIL: -2007, DEVICE_NOT_SUPPORT: -600, SCAN_TIMEOUT: -601, SERVICE_NOT_READY: -602, UNREADABLE: -603, INVALID_MRZ: -604, PROCESSING: -605, CANCEL: -606, MPDS_ACTION_INVALID: -3e3, MPDS_SOURCE_INVALID: -3005, MPDS_APPID_INVALID: -3006 }, G = { SUCCESS: "Success", UNKNOWN_ERROR: "Unknown error. Please try again later.", FAIL_LIMIT: "Request limit exceeded. Please try again later.", DUPLICATE_REQUEST: "Duplicate request. Please try again later.", TIME_OUT: "Request timeout. Please try again later.", LOGIN_REQUIRED: "Please login (https://miniapp.zalo.me/docs/api/login) before to call this api", LOGIN_FAILED: "Login failed", NOT_PERMISSION: "You don't have permission to call this api", CLIENT_NOT_SUPPORT: "This API is not supported in this version of Zalo", DECODE_FAILED: "Can not decode id. Please check your params again.", USER_DENIED: "User denied", USER_CANCEL: "User cancel", NEED_USER_AUTH: "User Authentication Required. Please grant User Authentication permission before requesting User Permission", MEDIA_PICKER_FAIL: "Unable to pick media", SAVE_IMAGE_FAIL: "Unable to save image", SAVE_VIDEO_FAIL: "Unable to save video", SAVE_FILE_FAIL: "Unable to save file", DEVICE_NOT_SUPPORT: "This device does not support NFC", SERVICE_NOT_READY: "NFC service is not ready. Please check in your setting", UNREADABLE: "NFC tag is unreadable", INVALID_MRZ: "Invalid MRZ data. Please try again later.", PROCESSING: "Processing NFC tag. Please wait a moment.", CANCEL: "User cancel", SCAN_TIMEOUT: "NFC scan timeout. Please try again later.", MPDS_ACTION_INVALID: "Action name from input data does not match declared API actions", MPDS_SOURCE_INVALID: "This API not called from Mini App", MPDS_APPID_INVALID: "AppId from input data does not match the currently opened AppId" }, $ = { UNKNOWN_ERROR: { code: Q.UNKNOWN_ERROR, message: G.UNKNOWN_ERROR }, UNAUTHORIZED: { code: Q.UNAUTHORIZED, message: G.LOGIN_REQUIRED }, FORBIDDEN: { code: Q.FORBIDDEN, message: G.NOT_PERMISSION }, CLIENT_NOT_SUPPORT: { code: Q.CLIENT_NOT_SUPPORT, message: G.CLIENT_NOT_SUPPORT }, DECODE_FAILED: { code: Q.DECODE_FAILED, message: G.DECODE_FAILED }, TIME_OUT: { code: Q.TIME_OUT, message: G.TIME_OUT }, USER_DENIED: { code: Q.USER_DENIED, message: G.USER_DENIED }, USER_CANCEL: { code: Q.USER_CANCEL, message: G.USER_CANCEL }, DUPLICATE_REQUEST: { code: Q.DUPLICATE_REQUEST, message: G.DUPLICATE_REQUEST }, DEVICE_NOT_SUPPORT: { code: Q.DEVICE_NOT_SUPPORT, message: G.DEVICE_NOT_SUPPORT }, SERVICE_NOT_READY: { code: Q.SERVICE_NOT_READY, message: G.SERVICE_NOT_READY }, UNREADABLE: { code: Q.UNREADABLE, message: G.UNREADABLE }, INVALID_MRZ: { code: Q.INVALID_MRZ, message: G.INVALID_MRZ }, PROCESSING: { code: Q.PROCESSING, message: G.PROCESSING }, CANCEL: { code: Q.CANCEL, message: G.CANCEL }, SCAN_TIMEOUT: { code: Q.SCAN_TIMEOUT, message: G.SCAN_TIMEOUT }, MPDS_ACTION_INVALID: { code: Q.MPDS_ACTION_INVALID, message: G.MPDS_ACTION_INVALID }, MPDS_SOURCE_INVALID: { code: Q.MPDS_SOURCE_INVALID, message: G.MPDS_SOURCE_INVALID }, MPDS_APPID_INVALID: { code: Q.MPDS_APPID_INVALID, message: G.MPDS_APPID_INVALID } }, kl = { addRating: { limit: 1 }, authorize: {}, isAllowedInteractWithOA: {}, favoriteApp: {}, followOA: {}, getLocation: {}, getPhoneNumber: {}, getShareableLink: {}, getSetting: {}, getAppInfo: {}, getUserInfo: {}, interactOA: {}, openProfilePicker: {}, openShareSheet: {}, unfollowOA: {}, checkTransaction: { limit: 5 }, createOrder: { limit: 5 }, createOrderIAP: { limit: 5 }, selectPaymentMethod: {}, requestSendNotification: {} }, Qo = { GET_DOWNLOADED_STICKER: { haveCallback: !0 }, OPEN_SHARE_STICKER: {}, OPEN_PROFILE: { requireAccessToken: !0 }, OPEN_FEED_DETAIL: {}, OPEN_FRIEND_RADA: {}, OPEN_INAPP: {}, OPEN_OUTAPP: { requireAccessToken: !0 }, OPEN_PAGE: {}, OPEN_PHOTODETAIL: {}, OPEN_GALARY: {}, OPEN_GAMECENTER: {}, OPEN_GAMENEWS: {}, OPEN_TAB_CONTACT: {}, OPEN_TAB_SOCIAL: {}, OPEN_FRIENDSUGGEST: {}, OPEN_GROUPLIST: {}, OPEN_NEARBY: {}, OPEN_ROOM: {}, OPEN_STICKERSTORE: {}, OPEN_CREATECHAT: {}, COPY_LINK_CATESTICKER: {}, REQUEST_BUY_STICKER: {}, OPEN_CHAT: { requireAccessToken: !0 }, OPEN_TAB_CHAT: {}, OPEN_CHATGROUP: {}, OPEN_ADDFRIEND: {}, OPEN_TAB_MORE: {}, OPEN_POSTFEED: { requireAccessToken: !0 }, OPEN_LOGINDEVICES: {}, OPEN_SENDSTICKER: {}, REPORT_ABUSE: { haveCallback: !0 }, FOLLOW_OA: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, UNFOLLOW_OA: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, OPEN_GAMEDETAIL: {}, OPEN_SHARESHEET: { haveCallback: !0, requireAccessToken: !0, errorList: { android: { "-101": { mapTo: $.CLIENT_NOT_SUPPORT } }, iOS: { "-101": { mapTo: $.CLIENT_NOT_SUPPORT } } } }, REQUEST_PERMISSION_CAMERA: { errorList: { android: { "-2": { mapTo: $.USER_DENIED } }, iOS: { "-2": { mapTo: $.USER_DENIED } } } }, CHANGE_TITLE_HEADER: { skipJump: !0 }, WEBVIEW_CLEARCACHE: {}, WEBVIEW_CONFIRMCACHE: {}, WEBVIEW_ISVISIBLE: {}, WEBVIEW_NETWORKTYPE: { skipJump: !0 }, CHANGE_BUTTON_HEADER: {}, CREATE_OPTIONS_MENU: { skipJump: !0, haveCallback: !0 }, CREATE_SHORTCUT: { requireAccessToken: !0 }, CHANGE_ACTIONBAR_LEFTBUTTON_TYPE: { skipJump: !0, haveCallback: !0 }, WINDOW_CLOSE: { skipJump: !0, haveCallback: !0 }, WEBVIEW_CHECKRESERROR: {}, IAP_REQUESTPAYMENT: { haveCallback: !0 }, ZBROWSER_GETSTATS: {}, ZBROWSER_JSBRIDGE: { skipJump: !0, haveCallback: !0 }, PROMPT_AUTHENTICATION: {}, CHANGE_ACTIONBAR_COLOR: { skipJump: !0 }, PROMPT_AUTHENTICATION_CHECK_STATE: {}, OPEN_APPSTORE: {}, GET_LOCATION: { haveCallback: !0, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, QUERY_LOCATION_HIDE: { haveCallback: !0 }, SHOW_TOAST: { haveCallback: !0, timeout: 2 }, OPEN_APP: {}, HIDE_KEYBOARD: {}, OPEN_PHONE: {}, OPEN_QR: {}, OPEN_SMS: { errorList: { iOS: { "-9": { mapTo: $.UNKNOWN_ERROR }, "-10": { mapTo: $.USER_CANCEL } } } }, VIEW_MYQR: { haveCallback: !0, timeout: !0, requireAccessToken: !0 }, KEEP_SCREEN: { haveCallback: !0, timeout: 2 }, CHANGE_AUTOROTATE: { skipJump: !0 }, CHECK_APP_INSTALLED: {}, QUERY_SHOW: {}, QUERY_HIDE: {}, OPEN_INAPPRW: {}, ZALORUN_GETTRACKINGSTATUS: { haveCallback: !0 }, ZALORUN_SETTRACKINGSTATUS: { haveCallback: !0 }, ZALORUN_GETDAYSTEP: { haveCallback: !0 }, ZALORUN_FORCESUBMITDATA: { haveCallback: !0 }, ZALORUN_SETWEIGHT: { haveCallback: !0 }, OPEN_PROFILE_EXT: {}, DOWNLOAD_CATE: { haveCallback: !0 }, JUMP_LOGIN: { skipJump: !0, whiteList: !0 }, OPEN_ADTIMA_ADS_INTERSTITIAL: {}, OPEN_ADTIMA_ADS: {}, GET_ADIDCLIENT: {}, SCAN_IBEACON: {}, SAVE_VIDEO_GALLERY: { versionLive: { iOS: 628 }, errorList: { android: { "-101": { mapTo: { code: Q.SAVE_VIDEO_FAIL, message: G.SAVE_VIDEO_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Q.SAVE_VIDEO_FAIL, message: G.SAVE_VIDEO_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.SAVE_VIDEO_FAIL, message: G.SAVE_VIDEO_FAIL }, needMoreDetail: !0 } } } }, INTERACTIVE_VIBRATION: {}, SAVE_IMAGE_GALLERY: { versionLive: { iOS: 408 }, errorList: { android: { "-101": { mapTo: { code: Q.SAVE_IMAGE_FAIL, message: G.SAVE_IMAGE_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Q.SAVE_IMAGE_FAIL, message: G.SAVE_IMAGE_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.SAVE_IMAGE_FAIL, message: G.SAVE_IMAGE_FAIL }, needMoreDetail: !0 } } } }, OPEN_MP: { versionLive: { iOS: 402 } }, CHANGE_ACTIONBAR: { haveCallback: !0, timeout: 2, versionLive: { iOS: 402 }, skipJump: !0 }, ZBROWSER_MPDS: { haveCallback: !0, timeout: 2, versionLive: { iOS: 402 }, errorList: { android: { "-100": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.UNKNOWN_ERROR }, "-105": { mapTo: $.MPDS_SOURCE_INVALID }, "-106": { mapTo: $.MPDS_APPID_INVALID } }, iOS: { "-10": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.MPDS_APPID_INVALID }, "-102": { mapTo: $.UNKNOWN_ERROR } } } }, ZBROWSER_MPDS_SYNC: { versionLive: { iOS: 402 }, errorList: { android: { "-100": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.UNKNOWN_ERROR }, "-105": { mapTo: $.MPDS_SOURCE_INVALID }, "-106": { mapTo: $.MPDS_APPID_INVALID } }, iOS: { "-10": { mapTo: $.MPDS_ACTION_INVALID }, "-101": { mapTo: $.MPDS_APPID_INVALID }, "-102": { mapTo: $.UNKNOWN_ERROR } } } }, WEBVIEW_SET_RESULT: { versionLive: { iOS: 416 } }, MP_GET_NUMBER: { versionLive: { iOS: 416 }, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-101": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-10": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_OPEN_PROFILE_PICKER: { requireAccessToken: !0, versionLive: { iOS: 432 }, errorList: { android: { "-101": { mapTo: $.USER_CANCEL } }, iOS: { "-101": { mapTo: $.USER_CANCEL } } } }, GET_SUPPORTED_ACTIONS: { whiteList: !0 }, MP_JOIN_WIFI: { haveCallback: !0, timeout: !0, versionLive: { android: 0, iOS: 0 }, havePermission: !1, whiteList: !1 }, PICK_MEDIA: { requireAccessToken: !0, versionLive: { iOS: 440 }, errorList: { android: { "-101": { mapTo: $.USER_CANCEL }, 999: { mapTo: { code: Q.MEDIA_PICKER_FAIL, message: G.MEDIA_PICKER_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.MEDIA_PICKER_FAIL, message: G.MEDIA_PICKER_FAIL } } } } }, MP_CLOSE_LOADINGVIEW: { skipJump: !0 }, CHANGE_BOTTOMBAR: { haveCallback: !0, timeout: 2, skipJump: !0 }, MA_MENU_MINIMIZE: { skipJump: !1, versionLive: { iOS: 520 } }, MA_MENU_PERMISSION: { skipJump: !1, versionLive: { iOS: 520 } }, MA_MENU_FAVORITES: { skipJump: !1, versionLive: { iOS: 520 } }, MP_SEND_NOTIFICATION: { skipJump: !1, versionLive: { iOS: 530 }, errorList: { android: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-1": { mapTo: $.USER_DENIED }, "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_ADD_RATING: { skipJump: !1 }, MP_ADD_MYFAVORITES: { skipJump: !1 }, MP_INTERACT_OA: { skipJump: !1, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_USER_AUTHORIZE: { skipJump: !1, errorList: { android: { "-400": { mapTo: $.DUPLICATE_REQUEST } }, iOS: { "-400": { mapTo: $.DUPLICATE_REQUEST } } } }, MP_SELECT_PAYMENT_METHOD: { skipJump: !1 }, CHECK_NFC: { skipJump: !1, versionLive: { iOS: 626 }, errorList: { all: { "-1": { mapTo: $.UNKNOWN_ERROR }, "-600": { mapTo: $.DEVICE_NOT_SUPPORT }, "-602": { mapTo: $.SERVICE_NOT_READY } } } }, SCAN_NFC: { skipJump: !1, haveCallback: !0, timeout: 65, errorList: { all: { "-1": { mapTo: $.UNKNOWN_ERROR }, "-600": { mapTo: $.DEVICE_NOT_SUPPORT }, "-601": { mapTo: $.SCAN_TIMEOUT }, "-602": { mapTo: $.SERVICE_NOT_READY }, "-603": { mapTo: $.UNREADABLE }, "-604": { mapTo: $.INVALID_MRZ }, "-605": { mapTo: $.PROCESSING }, "-606": { mapTo: $.CANCEL } } } }, MP_CONFIRM_REQUEST_PAYMENT: { skipJump: !1 }, SAVE_FILE: { versionLive: { iOS: 628 }, skipJump: !1, errorList: { android: { "-101": { mapTo: { code: Q.SAVE_FILE_FAIL, message: G.SAVE_FILE_FAIL }, needMoreDetail: !0 }, "-102": { mapTo: { code: Q.SAVE_FILE_FAIL, message: G.SAVE_FILE_FAIL }, needMoreDetail: !0 } }, iOS: { "-10": { mapTo: { code: Q.SAVE_FILE_FAIL, message: G.SAVE_FILE_FAIL }, needMoreDetail: !0 } } } }, MP_APP_LIFECYCLE_TRACKING: { skipJump: !1 } }, Ei = { android: { "-4": $.DECODE_FAILED, "-5": $.CLIENT_NOT_SUPPORT, "-14": $.TIME_OUT }, iOS: { "-9": $.DECODE_FAILED, "-5": $.CLIENT_NOT_SUPPORT, "-14": $.TIME_OUT } }, Iv = { android: 12100615, iOS: 460, wp: 0, unknown: 0 }, Pv = { android: 12100571, iOS: 400, wp: 0, unknown: 0 }, $n = 5 * Il, ei = { CREATE_ORDER: "https://payment-mini.zalo.me/api/order/create-v2", CREATE_IAP_ORDER: "https://payment-mini.zalo.me/api/order/iap-create", GET_TRANSACTION: "https://payment-mini.zalo.me/api/transaction", PURCHASE: "https://payment-mini.zalo.me/api/order/purchase" }, Av = "https://payment-mini.zalo.me", du = { DEFERRED: "DEFERRED", IMMEDIATE_AND_CHARGE_FULL_PRICE: "IMMEDIATE_AND_CHARGE_FULL_PRICE" }, mt = { SHOW_BACK: 0, HIDE_BACK: 3, SHOW_HOME: 1, HIDE_HOME: 0 }, wi = 5, hr = 6, kv = { LEFT: 0 }, Cv = "#1843EF", Nv = kv.LEFT, Dv = { "-12101": "Invalid params", "-12102": "Session expire", "-12103": "Not permission", "-12104": "Not Authorize", "-12105": "Unknown exception", "-12106": "Cannot create order", "-12107": "Transaction not found", "-12108": "Cannot update order", "-12109": "Cannot decode param", "-12110": "Version not support", "-12111": "Receipt expire", "-12112": "Product not found", "-12113": "Subscription other GW", "-12114": "Product already subcription", "-12115": "Not exist", "-12116": "Already exist", "-12117": "Not allow", "-12118": "Not permit", "-12119": "Internal error", "-2": "Unable to pay", "-6": "Unable to register", "-7": "Registered account", "-832": "Purchased by another account", "-833": "Register for another account", "-834": "Unable to register", "-2010": "System is maintaining", "-3999": "Not in Vietnam", "-12129": "Purchased by another account", 123: "An error has occurred" }, Rv = ["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"];
|
|
7353
7353
|
(function(t) {
|
|
7354
7354
|
t.DEV_TRACKING = "devTracking";
|
|
7355
7355
|
})(Xi || (Xi = {})), function(t) {
|
|
@@ -7371,7 +7371,7 @@ var ge = function() {
|
|
|
7371
7371
|
}(t, e) : function(n, r) {
|
|
7372
7372
|
return cu(n, Error) ? new ge(Q.UNKNOWN_ERROR, n.message, r).toJSON() : B.isEmpty(n == null ? void 0 : n.message) || B.isEmpty(n == null ? void 0 : n.code) ? new ge(Q.UNKNOWN_ERROR, G.UNKNOWN_ERROR, r, n).toJSON() : new ge(n.code, n.message, r, n.detail).toJSON();
|
|
7373
7373
|
}(t, e);
|
|
7374
|
-
},
|
|
7374
|
+
}, Cl = "2.46.2";
|
|
7375
7375
|
function ea(t, e) {
|
|
7376
7376
|
(e == null || e > t.length) && (e = t.length);
|
|
7377
7377
|
for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
|
|
@@ -7380,13 +7380,13 @@ function ea(t, e) {
|
|
|
7380
7380
|
function Mv(t) {
|
|
7381
7381
|
if (Array.isArray(t)) return ea(t);
|
|
7382
7382
|
}
|
|
7383
|
-
function
|
|
7383
|
+
function Nl(t) {
|
|
7384
7384
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
7385
7385
|
}
|
|
7386
7386
|
function xv() {
|
|
7387
7387
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7388
7388
|
}
|
|
7389
|
-
function
|
|
7389
|
+
function Dl(t, e) {
|
|
7390
7390
|
if (t) {
|
|
7391
7391
|
if (typeof t == "string") return ea(t, e);
|
|
7392
7392
|
var n = Object.prototype.toString.call(t).slice(8, -1);
|
|
@@ -7394,7 +7394,7 @@ function Nl(t, e) {
|
|
|
7394
7394
|
}
|
|
7395
7395
|
}
|
|
7396
7396
|
function ti(t) {
|
|
7397
|
-
return Mv(t) ||
|
|
7397
|
+
return Mv(t) || Nl(t) || Dl(t) || xv();
|
|
7398
7398
|
}
|
|
7399
7399
|
function pu(t, e, n, r, i, a, o) {
|
|
7400
7400
|
try {
|
|
@@ -7426,7 +7426,7 @@ function $v() {
|
|
|
7426
7426
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7427
7427
|
}
|
|
7428
7428
|
function ft(t, e) {
|
|
7429
|
-
return Lv(t) ||
|
|
7429
|
+
return Lv(t) || Nl(t) || Dl(t, e) || $v();
|
|
7430
7430
|
}
|
|
7431
7431
|
function pn(t) {
|
|
7432
7432
|
return t && t.constructor === Symbol ? "symbol" : typeof t;
|
|
@@ -7483,7 +7483,7 @@ function jv(t, e) {
|
|
|
7483
7483
|
function Fv(t, e, n) {
|
|
7484
7484
|
return e && jv(t.prototype, e), t;
|
|
7485
7485
|
}
|
|
7486
|
-
function
|
|
7486
|
+
function Rl(t, e, n) {
|
|
7487
7487
|
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
7488
7488
|
}
|
|
7489
7489
|
function ve(t) {
|
|
@@ -7492,7 +7492,7 @@ function ve(t) {
|
|
|
7492
7492
|
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
|
|
7493
7493
|
return Object.getOwnPropertyDescriptor(n, i).enumerable;
|
|
7494
7494
|
}))), r.forEach(function(i) {
|
|
7495
|
-
|
|
7495
|
+
Rl(t, i, n[i]);
|
|
7496
7496
|
});
|
|
7497
7497
|
}
|
|
7498
7498
|
return t;
|
|
@@ -7720,7 +7720,7 @@ window.onNativeMessage = function(t, e) {
|
|
|
7720
7720
|
}, window.zaloJSV2 = { zalo_h5_event_handler: function(t, e, n) {
|
|
7721
7721
|
var r = Zo("zmp:zalo_h5_event_handler");
|
|
7722
7722
|
r("eventId: ".concat(t, ", eventName: ").concat(e, ", eventData: ").concat(n));
|
|
7723
|
-
var i =
|
|
7723
|
+
var i = Ul(n);
|
|
7724
7724
|
r("stringToData", i);
|
|
7725
7725
|
var a = function(s, u) {
|
|
7726
7726
|
if (!u || typeof u == "string") return u;
|
|
@@ -7899,7 +7899,7 @@ function v(t, e) {
|
|
|
7899
7899
|
};
|
|
7900
7900
|
}
|
|
7901
7901
|
}
|
|
7902
|
-
function
|
|
7902
|
+
function Ml(t) {
|
|
7903
7903
|
return function() {
|
|
7904
7904
|
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++) n[r] = arguments[r];
|
|
7905
7905
|
try {
|
|
@@ -7909,7 +7909,7 @@ function Rl(t) {
|
|
|
7909
7909
|
}
|
|
7910
7910
|
};
|
|
7911
7911
|
}
|
|
7912
|
-
|
|
7912
|
+
Ml.async = function(t) {
|
|
7913
7913
|
return h(function() {
|
|
7914
7914
|
var e, n, r, i, a = arguments;
|
|
7915
7915
|
return v(this, function(o) {
|
|
@@ -7938,14 +7938,14 @@ function Yv(t) {
|
|
|
7938
7938
|
}
|
|
7939
7939
|
function ce() {
|
|
7940
7940
|
var t = function() {
|
|
7941
|
-
var e =
|
|
7941
|
+
var e = Ml(function() {
|
|
7942
7942
|
return window.navigator.userAgent.toLowerCase();
|
|
7943
7943
|
})();
|
|
7944
7944
|
if (e) {
|
|
7945
7945
|
var n, r = function(i) {
|
|
7946
7946
|
return { isAndroid: /android/i.test(i) && !/iemobile/.test(i), isIOS: /iphone|ios|ipad|ipod/.test(i) && !/iemobile/.test(i), isMobile: /android|iphone|ios|ipad|ipod|iemobile/.test(i), isZalo: /zalo/.test(i) };
|
|
7947
7947
|
}(e);
|
|
7948
|
-
return { appEnv: (n = new URL(window.location.href).searchParams.get("env"), { isMp: window.location.hostname.includes(Ov) && (n == "TESTING_LOCAL" || window.location.pathname.startsWith(
|
|
7948
|
+
return { appEnv: (n = new URL(window.location.href).searchParams.get("env"), { isMp: window.location.hostname.includes(Ov) && (n == "TESTING_LOCAL" || window.location.pathname.startsWith(Al)), isMpWeb: window.location.hostname.includes("localhost") }), platform: r, platformName: Kv(r), zaloVersion: Yv(e).trim() };
|
|
7949
7949
|
}
|
|
7950
7950
|
}();
|
|
7951
7951
|
if (t) return t;
|
|
@@ -7982,13 +7982,13 @@ var _u = function(t) {
|
|
|
7982
7982
|
return t.replace(/[A-Z]/g, function(e) {
|
|
7983
7983
|
return "_".concat(e.toLowerCase());
|
|
7984
7984
|
});
|
|
7985
|
-
},
|
|
7985
|
+
}, xl = function() {
|
|
7986
7986
|
var t;
|
|
7987
7987
|
return (((t = ce()) === null || t === void 0 ? void 0 : t.platformName) || "").toLowerCase() === "android";
|
|
7988
7988
|
}, em = function() {
|
|
7989
7989
|
var t;
|
|
7990
7990
|
return (((t = ce()) === null || t === void 0 ? void 0 : t.platformName) || "").toLowerCase() === "ios";
|
|
7991
|
-
},
|
|
7991
|
+
}, Ll = function() {
|
|
7992
7992
|
var t = 0;
|
|
7993
7993
|
if (window.zaloVersionCode) t = window.zaloVersionCode;
|
|
7994
7994
|
else {
|
|
@@ -8001,8 +8001,8 @@ var _u = function(t) {
|
|
|
8001
8001
|
}
|
|
8002
8002
|
return t;
|
|
8003
8003
|
}, Zt = function(t, e) {
|
|
8004
|
-
var n =
|
|
8005
|
-
return
|
|
8004
|
+
var n = Ll();
|
|
8005
|
+
return xl() && n < t || em() && n < e;
|
|
8006
8006
|
}, bu, tm = (bu = h(function(t) {
|
|
8007
8007
|
var e;
|
|
8008
8008
|
return v(this, function(n) {
|
|
@@ -8040,7 +8040,7 @@ var _u = function(t) {
|
|
|
8040
8040
|
}))];
|
|
8041
8041
|
var e;
|
|
8042
8042
|
});
|
|
8043
|
-
}), Si, Eu, it, Nt, yr, yt,
|
|
8043
|
+
}), Si, Eu, it, Nt, yr, yt, $l = (it = ce(), Nt = {}, yr = _e.getInstance(), yt = [], Hv(function(t) {
|
|
8044
8044
|
var e = t.serialId, n = im(t.result), r = ma(n == null ? void 0 : n.action), i = B.isEmpty(n == null ? void 0 : n.error_code) ? 0 : n == null ? void 0 : n.error_code, a = n == null ? void 0 : n.error_message, o = (n == null ? void 0 : n.data) || n;
|
|
8045
8045
|
if (r && i === 0) {
|
|
8046
8046
|
var s = JSON.parse(n == null ? void 0 : n.data);
|
|
@@ -8146,7 +8146,7 @@ var _u = function(t) {
|
|
|
8146
8146
|
return new ge(t, e || G.UNKNOWN_ERROR);
|
|
8147
8147
|
}, clientNotSupport: function() {
|
|
8148
8148
|
return new ge(Q.CLIENT_NOT_SUPPORT, G.CLIENT_NOT_SUPPORT);
|
|
8149
|
-
} } },
|
|
8149
|
+
} } }, jl = function(t) {
|
|
8150
8150
|
var e, n, r, i = (e = ce()) === null || e === void 0 ? void 0 : e.platformName, a = lm(t.action), o = Qo[a], s = (o == null ? void 0 : o.skipJump) || !1, u = (o == null ? void 0 : o.errorList) || {};
|
|
8151
8151
|
if (a === "JUMP_LOGIN") return new ge(Q.UNKNOWN_ERROR, "Can not get auth code: ".concat(t.error_message));
|
|
8152
8152
|
if (W.jumpStatus !== Ze.DONE && !s) return new ge($.UNAUTHORIZED.code, $.UNAUTHORIZED.message);
|
|
@@ -8163,15 +8163,15 @@ var _u = function(t) {
|
|
|
8163
8163
|
function c(l) {
|
|
8164
8164
|
return function(f) {
|
|
8165
8165
|
var d = B.isEmpty(u) ? void 0 : u[l];
|
|
8166
|
-
if (d) return Bt({ stage: qn.RESPONSE, type: "log", state: l, name: s, response: f }), d(l === "fail" ?
|
|
8166
|
+
if (d) return Bt({ stage: qn.RESPONSE, type: "log", state: l, name: s, response: f }), d(l === "fail" ? jl(f) : f == null ? void 0 : f.data);
|
|
8167
8167
|
};
|
|
8168
8168
|
}
|
|
8169
8169
|
return B.isUndefined(s) && (s = ""), Object.assign({}, { success: c("success"), fail: c("fail") });
|
|
8170
8170
|
}(t, n), a = Qo[t], o = (r == null ? void 0 : r.delay) || 0;
|
|
8171
8171
|
setTimeout(function() {
|
|
8172
|
-
|
|
8172
|
+
$l(t, e, i, ve({}, r, a));
|
|
8173
8173
|
}, o);
|
|
8174
|
-
}, wu,
|
|
8174
|
+
}, wu, Fl = (wu = h(function(t) {
|
|
8175
8175
|
return v(this, function(e) {
|
|
8176
8176
|
return [2, new Promise(function(n, r) {
|
|
8177
8177
|
V("MP_USER_AUTHORIZE", { scopes: t, forceUpdate: !0 }, { success: function(i) {
|
|
@@ -8189,7 +8189,7 @@ var _u = function(t) {
|
|
|
8189
8189
|
}
|
|
8190
8190
|
var e = t.prototype;
|
|
8191
8191
|
return e.initRetryLimit = function(n) {
|
|
8192
|
-
var r =
|
|
8192
|
+
var r = kl[n], i = { lastCall: (/* @__PURE__ */ new Date()).getTime(), limit: r && r.limit ? r.limit : 3, retry: 0 };
|
|
8193
8193
|
return this.retryLimitMap[n] = i, i;
|
|
8194
8194
|
}, e.resetRetryLimit = function(n) {
|
|
8195
8195
|
this.retryLimitMap[n].lastCall = (/* @__PURE__ */ new Date()).getTime(), this.retryLimitMap[n].retry = 0;
|
|
@@ -8203,7 +8203,7 @@ var _u = function(t) {
|
|
|
8203
8203
|
return h(function() {
|
|
8204
8204
|
return v(this, function(r) {
|
|
8205
8205
|
return [2, new Promise(function(i, a) {
|
|
8206
|
-
n._jumpStatus ? n._jumpStatus === Ze.DONE ? i(Ze.DONE) : i(Ze.DOING) : (n._jumpStatus = Ze.DOING, Bt({ stage: qn.REQUEST, type: "log", name: "jump" }),
|
|
8206
|
+
n._jumpStatus ? n._jumpStatus === Ze.DONE ? i(Ze.DONE) : i(Ze.DOING) : (n._jumpStatus = Ze.DOING, Bt({ stage: qn.REQUEST, type: "log", name: "jump" }), $l("JUMP_LOGIN", {}, { success: function(o) {
|
|
8207
8207
|
var s = o.data;
|
|
8208
8208
|
n._miniProgramConfig = (s == null ? void 0 : s.miniProgramConfig) || {};
|
|
8209
8209
|
var u = (s == null ? void 0 : s.cookiesOAuthLogins) || [], c = u.find(function(f) {
|
|
@@ -8348,7 +8348,7 @@ var _u = function(t) {
|
|
|
8348
8348
|
case 2:
|
|
8349
8349
|
return c.trys.push([2, 6, , 7]), (a = ma("action.mp.user.authorize")) && a.isSupported ? [4, Go()] : [3, 5];
|
|
8350
8350
|
case 3:
|
|
8351
|
-
return ((s = c.sent()) == null || (o = s.authSetting) === null || o === void 0 ? void 0 : o["scope.userInfo"]) !== !1 ? [3, 5] : [4,
|
|
8351
|
+
return ((s = c.sent()) == null || (o = s.authSetting) === null || o === void 0 ? void 0 : o["scope.userInfo"]) !== !1 ? [3, 5] : [4, Fl()];
|
|
8352
8352
|
case 4:
|
|
8353
8353
|
u = c.sent(), i = (u == null ? void 0 : u["scope.userInfo"]) || !1, c.label = 5;
|
|
8354
8354
|
case 5:
|
|
@@ -8438,7 +8438,7 @@ var _u = function(t) {
|
|
|
8438
8438
|
}, rm = function(t) {
|
|
8439
8439
|
var e, n, r = Qo[t], i = ((e = ce()) === null || e === void 0 ? void 0 : e.zaloVersion) || 0, a = "versionLive" in r && (r == null || (n = r.versionLive) === null || n === void 0 ? void 0 : n.iOS) || 0;
|
|
8440
8440
|
return !!(Array.isArray(window.ignoreCheckSupport) && window.ignoreCheckSupport.length > 0 && window.ignoreCheckSupport.includes(t)) || Number(i) >= a;
|
|
8441
|
-
},
|
|
8441
|
+
}, Ul = function(t) {
|
|
8442
8442
|
try {
|
|
8443
8443
|
if (t) {
|
|
8444
8444
|
Ti(t);
|
|
@@ -8462,10 +8462,10 @@ var _u = function(t) {
|
|
|
8462
8462
|
});
|
|
8463
8463
|
}
|
|
8464
8464
|
return B.isObject(t) ? t : new Function("return " + t)();
|
|
8465
|
-
},
|
|
8465
|
+
}, Vl = function(t) {
|
|
8466
8466
|
for (var e = document.getElementsByTagName("meta"), n = 0; n < e.length; n++) if (e[n].getAttribute("name") === t || e[n].getAttribute("property") === t) return e[n].getAttribute("content");
|
|
8467
8467
|
return "";
|
|
8468
|
-
},
|
|
8468
|
+
}, Bl = function(t) {
|
|
8469
8469
|
return btoa(encodeURIComponent(JSON.stringify(t)));
|
|
8470
8470
|
}, am = function(t, e) {
|
|
8471
8471
|
var n, r = 0;
|
|
@@ -8498,7 +8498,7 @@ var Su, sm = function(t) {
|
|
|
8498
8498
|
if (t === void 0) return !1;
|
|
8499
8499
|
var e = W.miniProgramConfig;
|
|
8500
8500
|
return ((e == null ? void 0 : e.requiredAuthenList) || []).indexOf(t) >= 0;
|
|
8501
|
-
},
|
|
8501
|
+
}, zl = (Su = h(function() {
|
|
8502
8502
|
return v(this, function(t) {
|
|
8503
8503
|
return [2, new Promise(function() {
|
|
8504
8504
|
var e = h(function(n, r) {
|
|
@@ -8542,7 +8542,7 @@ function pm(t) {
|
|
|
8542
8542
|
function P(t, e, n, r) {
|
|
8543
8543
|
var i, a;
|
|
8544
8544
|
(function(l, f) {
|
|
8545
|
-
if (
|
|
8545
|
+
if (kl[l]) {
|
|
8546
8546
|
var d = W.getRetryLimit(l);
|
|
8547
8547
|
d.lastCall && (/* @__PURE__ */ new Date()).getTime() - d.lastCall > 1e3 && W.resetRetryLimit(l);
|
|
8548
8548
|
var p = d.limit || 3;
|
|
@@ -8577,20 +8577,20 @@ function P(t, e, n, r) {
|
|
|
8577
8577
|
throw vr(l, t);
|
|
8578
8578
|
}
|
|
8579
8579
|
}
|
|
8580
|
-
function
|
|
8580
|
+
function Wl() {
|
|
8581
8581
|
return P("getVersion", [], [], function() {
|
|
8582
|
-
return
|
|
8582
|
+
return Cl;
|
|
8583
8583
|
});
|
|
8584
8584
|
}
|
|
8585
8585
|
var Oi, w = ((Oi = ce()) === null || Oi === void 0 ? void 0 : Oi.appEnv) || {}, D = function(t, e) {
|
|
8586
8586
|
var n, r = { error: -1404, errorMessage: "".concat(t, " is not found") };
|
|
8587
8587
|
e == null || (n = e.fail) === null || n === void 0 || n.call(e, r), Bt({ stage: qn.NOT_FOUND, type: "error", name: t, request: e, state: "fail", response: r });
|
|
8588
8588
|
};
|
|
8589
|
-
function
|
|
8590
|
-
return
|
|
8589
|
+
function ql(t) {
|
|
8590
|
+
return Ql.apply(this, arguments);
|
|
8591
8591
|
}
|
|
8592
|
-
function
|
|
8593
|
-
return (
|
|
8592
|
+
function Ql() {
|
|
8593
|
+
return (Ql = h(function(t) {
|
|
8594
8594
|
return v(this, function(e) {
|
|
8595
8595
|
return [2, P("login", [], [t], h(function() {
|
|
8596
8596
|
return v(this, function(n) {
|
|
@@ -8607,18 +8607,18 @@ function ql() {
|
|
|
8607
8607
|
});
|
|
8608
8608
|
})).apply(this, arguments);
|
|
8609
8609
|
}
|
|
8610
|
-
function
|
|
8611
|
-
return
|
|
8610
|
+
function Zl(t) {
|
|
8611
|
+
return Gl.apply(this, arguments);
|
|
8612
8612
|
}
|
|
8613
|
-
function
|
|
8614
|
-
return (
|
|
8613
|
+
function Gl() {
|
|
8614
|
+
return (Gl = h(function(t) {
|
|
8615
8615
|
return v(this, function(e) {
|
|
8616
8616
|
return [2, P("getAccessToken", [], [t], h(function() {
|
|
8617
8617
|
var n;
|
|
8618
8618
|
return v(this, function(r) {
|
|
8619
8619
|
switch (r.label) {
|
|
8620
8620
|
case 0:
|
|
8621
|
-
return w.isMp ? [4,
|
|
8621
|
+
return w.isMp ? [4, zl()] : [3, 3];
|
|
8622
8622
|
case 1:
|
|
8623
8623
|
return n = !r.sent(), [4, W.getAccessToken(n)];
|
|
8624
8624
|
case 2:
|
|
@@ -8631,13 +8631,13 @@ function Zl() {
|
|
|
8631
8631
|
});
|
|
8632
8632
|
})).apply(this, arguments);
|
|
8633
8633
|
}
|
|
8634
|
-
function
|
|
8634
|
+
function Hl() {
|
|
8635
8635
|
var t, e;
|
|
8636
|
-
return { version:
|
|
8636
|
+
return { version: Vl("version-id") || "", apiVersion: Cl, zaloVersion: ((t = ce()) === null || t === void 0 ? void 0 : t.zaloVersion) || "", platform: ((e = ce()) === null || e === void 0 ? void 0 : e.platformName) || "", language: navigator.language, zaloLanguage: window.zLanguage || "vi", zaloTheme: window.zTheme || "light" };
|
|
8637
8637
|
}
|
|
8638
8638
|
function hm() {
|
|
8639
8639
|
return P("getSystemInfo", [], [], function() {
|
|
8640
|
-
return
|
|
8640
|
+
return Hl();
|
|
8641
8641
|
});
|
|
8642
8642
|
}
|
|
8643
8643
|
var oe;
|
|
@@ -8793,12 +8793,12 @@ const Qn = (t, e) => {
|
|
|
8793
8793
|
}
|
|
8794
8794
|
return { message: n };
|
|
8795
8795
|
};
|
|
8796
|
-
let
|
|
8796
|
+
let Jl = Qn;
|
|
8797
8797
|
function mm(t) {
|
|
8798
|
-
|
|
8798
|
+
Jl = t;
|
|
8799
8799
|
}
|
|
8800
8800
|
function xr() {
|
|
8801
|
-
return
|
|
8801
|
+
return Jl;
|
|
8802
8802
|
}
|
|
8803
8803
|
const Lr = (t) => {
|
|
8804
8804
|
const { data: e, path: n, errorMaps: r, issueData: i } = t, a = [...n, ...i.path || []], o = { ...i, path: a };
|
|
@@ -8811,7 +8811,7 @@ function F(t, e) {
|
|
|
8811
8811
|
const n = Lr({ issueData: e, data: t.data, path: t.path, errorMaps: [t.common.contextualErrorMap, t.schemaErrorMap, xr(), Qn].filter((r) => !!r) });
|
|
8812
8812
|
t.common.issues.push(n);
|
|
8813
8813
|
}
|
|
8814
|
-
let De = class
|
|
8814
|
+
let De = class Kl {
|
|
8815
8815
|
constructor() {
|
|
8816
8816
|
this.value = "valid";
|
|
8817
8817
|
}
|
|
@@ -8832,7 +8832,7 @@ let De = class Jl {
|
|
|
8832
8832
|
static async mergeObjectAsync(e, n) {
|
|
8833
8833
|
const r = [];
|
|
8834
8834
|
for (const i of n) r.push({ key: await i.key, value: await i.value });
|
|
8835
|
-
return
|
|
8835
|
+
return Kl.mergeObjectSync(e, r);
|
|
8836
8836
|
}
|
|
8837
8837
|
static mergeObjectSync(e, n) {
|
|
8838
8838
|
const r = {};
|
|
@@ -8844,7 +8844,7 @@ let De = class Jl {
|
|
|
8844
8844
|
return { status: e.value, value: r };
|
|
8845
8845
|
}
|
|
8846
8846
|
};
|
|
8847
|
-
const Z = Object.freeze({ status: "aborted" }),
|
|
8847
|
+
const Z = Object.freeze({ status: "aborted" }), Yl = (t) => ({ status: "dirty", value: t }), Ie = (t) => ({ status: "valid", value: t }), ya = (t) => t.status === "aborted", ga = (t) => t.status === "dirty", $r = (t) => t.status === "valid", jr = (t) => typeof Promise < "u" && t instanceof Promise;
|
|
8848
8848
|
var ne;
|
|
8849
8849
|
(function(t) {
|
|
8850
8850
|
t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
@@ -8957,7 +8957,7 @@ class Y {
|
|
|
8957
8957
|
return new rr({ ...H(this._def), innerType: this, defaultValue: n, typeName: q.ZodDefault });
|
|
8958
8958
|
}
|
|
8959
8959
|
brand() {
|
|
8960
|
-
return new
|
|
8960
|
+
return new ef({ typeName: q.ZodBranded, type: this, ...H(this._def) });
|
|
8961
8961
|
}
|
|
8962
8962
|
catch(e) {
|
|
8963
8963
|
const n = typeof e == "function" ? e : () => e;
|
|
@@ -9428,7 +9428,7 @@ class he extends Y {
|
|
|
9428
9428
|
}), new he({ ...this._def, shape: () => n });
|
|
9429
9429
|
}
|
|
9430
9430
|
keyof() {
|
|
9431
|
-
return
|
|
9431
|
+
return Xl(oe.objectKeys(this.shape));
|
|
9432
9432
|
}
|
|
9433
9433
|
}
|
|
9434
9434
|
he.create = (t, e) => new he({ shape: () => t, unknownKeys: "strip", catchall: st.create(), typeName: q.ZodObject, ...H(e) }), he.strictCreate = (t, e) => new he({ shape: () => t, unknownKeys: "strict", catchall: st.create(), typeName: q.ZodObject, ...H(e) }), he.lazycreate = (t, e) => new he({ shape: t, unknownKeys: "strip", catchall: st.create(), typeName: q.ZodObject, ...H(e) });
|
|
@@ -9704,7 +9704,7 @@ class tr extends Y {
|
|
|
9704
9704
|
return this._def.value;
|
|
9705
9705
|
}
|
|
9706
9706
|
}
|
|
9707
|
-
function
|
|
9707
|
+
function Xl(t, e) {
|
|
9708
9708
|
return new Ct({ values: t, typeName: q.ZodEnum, ...H(e) });
|
|
9709
9709
|
}
|
|
9710
9710
|
tr.create = (t, e) => new tr({ value: t, typeName: q.ZodLiteral, ...H(e) });
|
|
@@ -9745,7 +9745,7 @@ class Ct extends Y {
|
|
|
9745
9745
|
return Ct.create(this.options.filter((n) => !e.includes(n)));
|
|
9746
9746
|
}
|
|
9747
9747
|
}
|
|
9748
|
-
Ct.create =
|
|
9748
|
+
Ct.create = Xl;
|
|
9749
9749
|
class nr extends Y {
|
|
9750
9750
|
_parse(e) {
|
|
9751
9751
|
const n = oe.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(e);
|
|
@@ -9871,7 +9871,7 @@ class Wr extends Y {
|
|
|
9871
9871
|
}
|
|
9872
9872
|
Wr.create = (t) => new Wr({ typeName: q.ZodNaN, ...H(t) });
|
|
9873
9873
|
const Sm = Symbol("zod_brand");
|
|
9874
|
-
class
|
|
9874
|
+
class ef extends Y {
|
|
9875
9875
|
_parse(e) {
|
|
9876
9876
|
const { ctx: n } = this._processInputParams(e), r = n.data;
|
|
9877
9877
|
return this._def.type._parse({ data: r, path: n.path, parent: n });
|
|
@@ -9886,7 +9886,7 @@ class lr extends Y {
|
|
|
9886
9886
|
if (r.common.async)
|
|
9887
9887
|
return (async () => {
|
|
9888
9888
|
const i = await this._def.in._parseAsync({ data: r.data, path: r.path, parent: r });
|
|
9889
|
-
return i.status === "aborted" ? Z : i.status === "dirty" ? (n.dirty(),
|
|
9889
|
+
return i.status === "aborted" ? Z : i.status === "dirty" ? (n.dirty(), Yl(i.value)) : this._def.out._parseAsync({ data: i.value, path: r.path, parent: r });
|
|
9890
9890
|
})();
|
|
9891
9891
|
{
|
|
9892
9892
|
const i = this._def.in._parseSync({ data: r.data, path: r.path, parent: r });
|
|
@@ -9897,7 +9897,7 @@ class lr extends Y {
|
|
|
9897
9897
|
return new lr({ in: e, out: n, typeName: q.ZodPipeline });
|
|
9898
9898
|
}
|
|
9899
9899
|
}
|
|
9900
|
-
const
|
|
9900
|
+
const tf = (t, e = {}, n) => t ? vn.create().superRefine((r, i) => {
|
|
9901
9901
|
if (!t(r)) {
|
|
9902
9902
|
const a = typeof e == "function" ? e(r) : e, o = typeof a == "string" ? { message: a } : a;
|
|
9903
9903
|
i.addIssue({ code: "custom", ...o, fatal: n });
|
|
@@ -9907,14 +9907,14 @@ var q;
|
|
|
9907
9907
|
(function(t) {
|
|
9908
9908
|
t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline";
|
|
9909
9909
|
})(q || (q = {}));
|
|
9910
|
-
const Om = (t, e = { message: `Input not instance of ${t.name}` }) =>
|
|
9911
|
-
var T = Object.freeze({ __proto__: null, defaultErrorMap: Qn, setErrorMap: mm, getErrorMap: xr, makeIssue: Lr, EMPTY_PATH: ym, addIssueToContext: F, ParseStatus: De, INVALID: Z, DIRTY:
|
|
9910
|
+
const Om = (t, e = { message: `Input not instance of ${t.name}` }) => tf((n) => n instanceof t, e, !0), C = hn.create, xe = Zn.create, Im = Wr.create, Pm = Gn.create, dt = Hn.create, Am = zt.create, km = Fr.create, Cm = Jn.create, Nm = Kn.create, Dm = vn.create, Rm = jt.create, Mm = st.create, xm = Ur.create, nf = We.create, k = he.create, Lm = he.strictCreate, $m = Yn.create, jm = ni.create, Fm = Xn.create, Um = et.create, Vm = ri.create, Bm = Br.create, zm = Wt.create, Wm = un.create, qm = er.create, Qm = tr.create, Zm = Ct.create, Gm = nr.create, Hm = mn.create, Ou = Be.create, Jm = ut.create, Km = qt.create, Ym = Be.createWithPreprocess, Xm = lr.create, ey = () => C().optional(), ty = () => xe().optional(), ny = () => dt().optional(), ry = { string: (t) => hn.create({ ...t, coerce: !0 }), number: (t) => Zn.create({ ...t, coerce: !0 }), boolean: (t) => Hn.create({ ...t, coerce: !0 }), bigint: (t) => Gn.create({ ...t, coerce: !0 }), date: (t) => zt.create({ ...t, coerce: !0 }) }, iy = Z;
|
|
9911
|
+
var T = Object.freeze({ __proto__: null, defaultErrorMap: Qn, setErrorMap: mm, getErrorMap: xr, makeIssue: Lr, EMPTY_PATH: ym, addIssueToContext: F, ParseStatus: De, INVALID: Z, DIRTY: Yl, OK: Ie, isAborted: ya, isDirty: ga, isValid: $r, isAsync: jr, get util() {
|
|
9912
9912
|
return oe;
|
|
9913
9913
|
}, ZodParsedType: x, getParsedType: St, ZodType: Y, ZodString: hn, ZodNumber: Zn, ZodBigInt: Gn, ZodBoolean: Hn, ZodDate: zt, ZodSymbol: Fr, ZodUndefined: Jn, ZodNull: Kn, ZodAny: vn, ZodUnknown: jt, ZodNever: st, ZodVoid: Ur, ZodArray: We, get objectUtil() {
|
|
9914
9914
|
return Vr;
|
|
9915
|
-
}, ZodObject: he, ZodUnion: Yn, ZodDiscriminatedUnion: ni, ZodIntersection: Xn, ZodTuple: et, ZodRecord: ri, ZodMap: Br, ZodSet: Wt, ZodFunction: un, ZodLazy: er, ZodLiteral: tr, ZodEnum: Ct, ZodNativeEnum: nr, ZodPromise: mn, ZodEffects: Be, ZodTransformer: Be, ZodOptional: ut, ZodNullable: qt, ZodDefault: rr, ZodCatch: zr, ZodNaN: Wr, BRAND: Sm, ZodBranded:
|
|
9915
|
+
}, ZodObject: he, ZodUnion: Yn, ZodDiscriminatedUnion: ni, ZodIntersection: Xn, ZodTuple: et, ZodRecord: ri, ZodMap: Br, ZodSet: Wt, ZodFunction: un, ZodLazy: er, ZodLiteral: tr, ZodEnum: Ct, ZodNativeEnum: nr, ZodPromise: mn, ZodEffects: Be, ZodTransformer: Be, ZodOptional: ut, ZodNullable: qt, ZodDefault: rr, ZodCatch: zr, ZodNaN: Wr, BRAND: Sm, ZodBranded: ef, ZodPipeline: lr, custom: tf, Schema: Y, ZodSchema: Y, late: Tm, get ZodFirstPartyTypeKind() {
|
|
9916
9916
|
return q;
|
|
9917
|
-
}, coerce: ry, any: Dm, array:
|
|
9917
|
+
}, coerce: ry, any: Dm, array: nf, bigint: Pm, boolean: dt, date: Am, discriminatedUnion: jm, effect: Ou, enum: Zm, function: Wm, instanceof: Om, intersection: Fm, lazy: qm, literal: Qm, map: Bm, nan: Im, nativeEnum: Gm, never: Mm, null: Nm, nullable: Km, number: xe, object: k, oboolean: ny, onumber: ty, optional: Jm, ostring: ey, pipeline: Xm, preprocess: Ym, promise: Hm, record: Vm, set: zm, strictObject: Lm, string: C, symbol: km, transformer: Ou, tuple: Um, undefined: Cm, union: $m, unknown: Rm, void: xm, NEVER: iy, ZodIssueCode: R, quotelessJson: vm, ZodError: ot }), Ne = function() {
|
|
9918
9918
|
function t() {
|
|
9919
9919
|
var n, r, i, a, o, s, u, c, l, f, d, p, y, g, _, m, E, S, O, I, A, N, M, U, z, K, ee;
|
|
9920
9920
|
$e(this, t), this.initConfig = window.APP_CONFIG;
|
|
@@ -10085,7 +10085,7 @@ function Ta() {
|
|
|
10085
10085
|
});
|
|
10086
10086
|
}), Ta.apply(this, arguments);
|
|
10087
10087
|
}
|
|
10088
|
-
function
|
|
10088
|
+
function rf(t, e, n) {
|
|
10089
10089
|
if (!e.has(t)) throw new TypeError("attempted to " + n + " private field on non-instance");
|
|
10090
10090
|
return e.get(t);
|
|
10091
10091
|
}
|
|
@@ -10093,7 +10093,7 @@ function fy(t, e) {
|
|
|
10093
10093
|
return e.get ? e.get.call(t) : e.value;
|
|
10094
10094
|
}
|
|
10095
10095
|
function ie(t, e) {
|
|
10096
|
-
var n =
|
|
10096
|
+
var n = rf(t, e, "get");
|
|
10097
10097
|
return fy(t, n);
|
|
10098
10098
|
}
|
|
10099
10099
|
function dy(t, e) {
|
|
@@ -10110,10 +10110,10 @@ function py(t, e, n) {
|
|
|
10110
10110
|
}
|
|
10111
10111
|
}
|
|
10112
10112
|
function yn(t, e, n) {
|
|
10113
|
-
var r =
|
|
10113
|
+
var r = rf(t, e, "set");
|
|
10114
10114
|
return py(t, r, n), n;
|
|
10115
10115
|
}
|
|
10116
|
-
var
|
|
10116
|
+
var af = function() {
|
|
10117
10117
|
function t() {
|
|
10118
10118
|
$e(this, t);
|
|
10119
10119
|
}
|
|
@@ -10130,7 +10130,7 @@ var rf = function() {
|
|
|
10130
10130
|
}, e.getItem = function(n) {
|
|
10131
10131
|
return this.getSynchronize([n]).get(n) || null;
|
|
10132
10132
|
}, e.setItem = function(n, r) {
|
|
10133
|
-
if (this.setSynchronize(
|
|
10133
|
+
if (this.setSynchronize(Rl({}, n, r)).errorKeys.length > 0) throw new Error("Failed to set item: ".concat(n));
|
|
10134
10134
|
}, e.removeItem = function(n) {
|
|
10135
10135
|
this.removeSynchronize([n]);
|
|
10136
10136
|
}, e.clear = function() {
|
|
@@ -10221,7 +10221,7 @@ var rf = function() {
|
|
|
10221
10221
|
}, r.clearSynchronize = function() {
|
|
10222
10222
|
this.clearSync();
|
|
10223
10223
|
}, n;
|
|
10224
|
-
}(
|
|
10224
|
+
}(af), Re = /* @__PURE__ */ new WeakMap(), Iu = /* @__PURE__ */ new WeakMap(), vy = function(t) {
|
|
10225
10225
|
ur(n, t);
|
|
10226
10226
|
var e = cr(n);
|
|
10227
10227
|
function n(i) {
|
|
@@ -10319,7 +10319,7 @@ var rf = function() {
|
|
|
10319
10319
|
var o = ZaloJavaScriptInterface.processActionMPDS(JSON.stringify(i));
|
|
10320
10320
|
if (o = JSON.parse(o)) {
|
|
10321
10321
|
if (o.error_code === 0) return o.data;
|
|
10322
|
-
a =
|
|
10322
|
+
a = jl(o).toJSON();
|
|
10323
10323
|
}
|
|
10324
10324
|
} catch (s) {
|
|
10325
10325
|
a = s;
|
|
@@ -10328,7 +10328,7 @@ var rf = function() {
|
|
|
10328
10328
|
}
|
|
10329
10329
|
return {};
|
|
10330
10330
|
}, n;
|
|
10331
|
-
}(
|
|
10331
|
+
}(af), Ii, Pi, Ai, of = function() {
|
|
10332
10332
|
function t() {
|
|
10333
10333
|
$e(this, t);
|
|
10334
10334
|
}
|
|
@@ -10343,7 +10343,7 @@ var rf = function() {
|
|
|
10343
10343
|
return [4, r.getInstance().get(n)];
|
|
10344
10344
|
case 1:
|
|
10345
10345
|
return i = o.sent(), a = {}, i.forEach(function(s, u) {
|
|
10346
|
-
a[u] =
|
|
10346
|
+
a[u] = Ul(s);
|
|
10347
10347
|
}), [2, a];
|
|
10348
10348
|
}
|
|
10349
10349
|
});
|
|
@@ -10359,7 +10359,7 @@ var rf = function() {
|
|
|
10359
10359
|
case 0:
|
|
10360
10360
|
return i = r.getInstance(), a = {}, Object.entries(n).forEach(function(s) {
|
|
10361
10361
|
var u = ft(s, 2), c = u[0], l = u[1];
|
|
10362
|
-
B.isUndefined(l) || B.isNull(l) || (a[c] =
|
|
10362
|
+
B.isUndefined(l) || B.isNull(l) || (a[c] = Bl(l));
|
|
10363
10363
|
}), [4, i.set(a)];
|
|
10364
10364
|
case 1:
|
|
10365
10365
|
return [2, o.sent()];
|
|
@@ -10421,7 +10421,7 @@ var rf = function() {
|
|
|
10421
10421
|
return n.prototype.getInstance = function() {
|
|
10422
10422
|
return new hy(ie(this, ki));
|
|
10423
10423
|
}, n;
|
|
10424
|
-
}(
|
|
10424
|
+
}(of), Ci = /* @__PURE__ */ new WeakMap(), yy = function(t) {
|
|
10425
10425
|
ur(n, t);
|
|
10426
10426
|
var e = cr(n);
|
|
10427
10427
|
function n(r) {
|
|
@@ -10431,9 +10431,9 @@ var rf = function() {
|
|
|
10431
10431
|
return n.prototype.getInstance = function() {
|
|
10432
10432
|
return new vy(ie(this, Ci));
|
|
10433
10433
|
}, n;
|
|
10434
|
-
}(
|
|
10435
|
-
B.isString(Pu) && parseInt(Pu, 10) >= Pv[gy] && (!((Ai = ce()) === null || Ai === void 0) && Ai.appEnv.isMp) && (
|
|
10436
|
-
var nt =
|
|
10434
|
+
}(of), sf = new my(be), Pu = ((Ii = ce()) === null || Ii === void 0 ? void 0 : Ii.zaloVersion) || "", gy = ((Pi = ce()) === null || Pi === void 0 ? void 0 : Pi.platformName) || "unknown";
|
|
10435
|
+
B.isString(Pu) && parseInt(Pu, 10) >= Pv[gy] && (!((Ai = ce()) === null || Ai === void 0) && Ai.appEnv.isMp) && (sf = new yy(be));
|
|
10436
|
+
var nt = sf, _y = [k({ data: T.record(C(), T.any()) }).optional()];
|
|
10437
10437
|
function by(t) {
|
|
10438
10438
|
return Oa.apply(this, arguments);
|
|
10439
10439
|
}
|
|
@@ -10484,10 +10484,10 @@ function Ia() {
|
|
|
10484
10484
|
}), Ia.apply(this, arguments);
|
|
10485
10485
|
}
|
|
10486
10486
|
function Sy(t) {
|
|
10487
|
-
return
|
|
10487
|
+
return uf.apply(this, arguments);
|
|
10488
10488
|
}
|
|
10489
|
-
function
|
|
10490
|
-
return (
|
|
10489
|
+
function uf() {
|
|
10490
|
+
return (uf = h(function(t) {
|
|
10491
10491
|
return v(this, function(e) {
|
|
10492
10492
|
return [2, P("getStorageInfo", [], [t], h(function() {
|
|
10493
10493
|
return v(this, function(n) {
|
|
@@ -10531,10 +10531,10 @@ function Pa() {
|
|
|
10531
10531
|
}
|
|
10532
10532
|
var Iy = [k({ prefix: C().optional() }).optional()];
|
|
10533
10533
|
function Py(t) {
|
|
10534
|
-
return
|
|
10534
|
+
return cf.apply(this, arguments);
|
|
10535
10535
|
}
|
|
10536
|
-
function
|
|
10537
|
-
return (
|
|
10536
|
+
function cf() {
|
|
10537
|
+
return (cf = h(function(t) {
|
|
10538
10538
|
return v(this, function(e) {
|
|
10539
10539
|
return [2, P("clearStorage", Iy, [t], h(function() {
|
|
10540
10540
|
return v(this, function(n) {
|
|
@@ -10556,7 +10556,7 @@ var Au, Ay = (Au = h(function(t, e) {
|
|
|
10556
10556
|
return v(this, function(o) {
|
|
10557
10557
|
switch (o.label) {
|
|
10558
10558
|
case 0:
|
|
10559
|
-
return (r = e) ? [3, 2] : [4,
|
|
10559
|
+
return (r = e) ? [3, 2] : [4, zl()];
|
|
10560
10560
|
case 1:
|
|
10561
10561
|
r = !o.sent(), o.label = 2;
|
|
10562
10562
|
case 2:
|
|
@@ -10618,7 +10618,7 @@ function Aa() {
|
|
|
10618
10618
|
}
|
|
10619
10619
|
var Pn = function(t) {
|
|
10620
10620
|
return { NONE: t ? -2 : 0, WIFI: t ? 0 : 1, "2G": 2, "3G": t ? 15 : 2, "4G": t ? 13 : 2 };
|
|
10621
|
-
},
|
|
10621
|
+
}, lf = h(function() {
|
|
10622
10622
|
return v(this, function(t) {
|
|
10623
10623
|
return [2, new Promise(function(e, n) {
|
|
10624
10624
|
V("WEBVIEW_NETWORKTYPE", { url: window.location.href, featureId: "" }, { success: function(r) {
|
|
@@ -10646,17 +10646,17 @@ var Pn = function(t) {
|
|
|
10646
10646
|
});
|
|
10647
10647
|
});
|
|
10648
10648
|
function Ny(t) {
|
|
10649
|
-
return
|
|
10649
|
+
return ff.apply(this, arguments);
|
|
10650
10650
|
}
|
|
10651
|
-
function
|
|
10652
|
-
return (
|
|
10651
|
+
function ff() {
|
|
10652
|
+
return (ff = h(function(t) {
|
|
10653
10653
|
return v(this, function(e) {
|
|
10654
10654
|
return [2, P("getNetworkType", [], [t], h(function() {
|
|
10655
10655
|
var n, r;
|
|
10656
10656
|
return v(this, function(i) {
|
|
10657
10657
|
switch (i.label) {
|
|
10658
10658
|
case 0:
|
|
10659
|
-
return w.isMp ? [4,
|
|
10659
|
+
return w.isMp ? [4, lf()] : [3, 2];
|
|
10660
10660
|
case 1:
|
|
10661
10661
|
return [2, { networkType: i.sent() }];
|
|
10662
10662
|
case 2:
|
|
@@ -10687,7 +10687,7 @@ function lf() {
|
|
|
10687
10687
|
function Dy(t) {
|
|
10688
10688
|
_e.getInstance().on(ue.NetworkChanged, function(e) {
|
|
10689
10689
|
var n = e == null ? void 0 : e.state;
|
|
10690
|
-
|
|
10690
|
+
lf().then(function(r) {
|
|
10691
10691
|
t({ isConnected: n === "CONNECTED", networkType: r });
|
|
10692
10692
|
});
|
|
10693
10693
|
});
|
|
@@ -10737,10 +10737,10 @@ var ku, xy = (ku = h(function(t) {
|
|
|
10737
10737
|
return [0, 1].includes(t);
|
|
10738
10738
|
}, { message: "The type must be either 0 or 1" }).default(0).optional(), expire: T.number().optional(), monitorInterval: T.number().optional(), domain: T.string().optional(), scanConfig: k({ scanTime: T.number().optional(), timeBetweenScan: T.number().optional(), beaconTimeout: T.number().optional(), delayCheckConnectedTimeout: T.number().optional(), beaconConnectedTimeout: T.number().optional() }).optional(), items: T.array(k({ id: T.string().optional(), distance: T.number().optional(), monitor: k({ enable: T.boolean().optional(), movingRange: T.number().optional() }).optional() })).optional(), scanFromSource: T.string().optional() }).optional()];
|
|
10739
10739
|
function $y(t) {
|
|
10740
|
-
return
|
|
10740
|
+
return df.apply(this, arguments);
|
|
10741
10741
|
}
|
|
10742
|
-
function
|
|
10743
|
-
return (
|
|
10742
|
+
function df() {
|
|
10743
|
+
return (df = h(function(t) {
|
|
10744
10744
|
return v(this, function(e) {
|
|
10745
10745
|
return [2, P("startBeaconDiscovery", Ly, [t], h(function() {
|
|
10746
10746
|
return v(this, function(n) {
|
|
@@ -10769,10 +10769,10 @@ var jy = h(function() {
|
|
|
10769
10769
|
});
|
|
10770
10770
|
});
|
|
10771
10771
|
function Fy(t) {
|
|
10772
|
-
return
|
|
10772
|
+
return pf.apply(this, arguments);
|
|
10773
10773
|
}
|
|
10774
|
-
function
|
|
10775
|
-
return (
|
|
10774
|
+
function pf() {
|
|
10775
|
+
return (pf = h(function(t) {
|
|
10776
10776
|
return v(this, function(e) {
|
|
10777
10777
|
return [2, P("stopBeaconDiscovery", [], [t], h(function() {
|
|
10778
10778
|
return v(this, function(n) {
|
|
@@ -10805,10 +10805,10 @@ var Uy = h(function() {
|
|
|
10805
10805
|
});
|
|
10806
10806
|
});
|
|
10807
10807
|
function Vy(t) {
|
|
10808
|
-
return
|
|
10808
|
+
return hf.apply(this, arguments);
|
|
10809
10809
|
}
|
|
10810
|
-
function
|
|
10811
|
-
return (
|
|
10810
|
+
function hf() {
|
|
10811
|
+
return (hf = h(function(t) {
|
|
10812
10812
|
return v(this, function(e) {
|
|
10813
10813
|
return [2, P("getBeacons", [], [t], h(function() {
|
|
10814
10814
|
return v(this, function(n) {
|
|
@@ -10837,10 +10837,10 @@ var By = h(function() {
|
|
|
10837
10837
|
});
|
|
10838
10838
|
});
|
|
10839
10839
|
function zy(t) {
|
|
10840
|
-
return
|
|
10840
|
+
return vf.apply(this, arguments);
|
|
10841
10841
|
}
|
|
10842
|
-
function
|
|
10843
|
-
return (
|
|
10842
|
+
function vf() {
|
|
10843
|
+
return (vf = h(function(t) {
|
|
10844
10844
|
return v(this, function(e) {
|
|
10845
10845
|
return [2, P("closeApp", [], [t], h(function() {
|
|
10846
10846
|
return v(this, function(n) {
|
|
@@ -10869,10 +10869,10 @@ var Wy = h(function() {
|
|
|
10869
10869
|
});
|
|
10870
10870
|
});
|
|
10871
10871
|
function qy(t) {
|
|
10872
|
-
return
|
|
10872
|
+
return mf.apply(this, arguments);
|
|
10873
10873
|
}
|
|
10874
|
-
function
|
|
10875
|
-
return (
|
|
10874
|
+
function mf() {
|
|
10875
|
+
return (mf = h(function(t) {
|
|
10876
10876
|
return v(this, function(e) {
|
|
10877
10877
|
return [2, P("scanQRCode", [], [t], h(function() {
|
|
10878
10878
|
return v(this, function(n) {
|
|
@@ -11103,12 +11103,12 @@ function Ra() {
|
|
|
11103
11103
|
});
|
|
11104
11104
|
}), Ra.apply(this, arguments);
|
|
11105
11105
|
}
|
|
11106
|
-
var xu,
|
|
11106
|
+
var xu, yf = (xu = h(function(t, e, n, r, i, a) {
|
|
11107
11107
|
var o, s, u, c, l, f, d, p;
|
|
11108
11108
|
return v(this, function(y) {
|
|
11109
11109
|
switch (y.label) {
|
|
11110
11110
|
case 0:
|
|
11111
|
-
return u = new URL(location.href), c = new URLSearchParams(), l = "".concat(u.pathname.replace(
|
|
11111
|
+
return u = new URL(location.href), c = new URLSearchParams(), l = "".concat(u.pathname.replace(Al, "")).concat(u.search), a && (l = "/".concat(t).concat(a[0] === "/" ? "" : "/").concat(a)), !(f = new URL("".concat(Pl).concat(l))).searchParams.has("env") && ((o = window.APP_ENV) === null || o === void 0 ? void 0 : o.length) > 0 && f.searchParams.set("env", window.APP_ENV), !f.searchParams.has("version") && ((s = window.APP_VERSION) === null || s === void 0 ? void 0 : s.length) > 0 && f.searchParams.set("version", window.APP_VERSION), c.append("title", n), c.append("description", r || ""), c.append("thumbnail", i || ""), c.append("url", f.href), c.append("accessToken", e || ""), d = { headers: { "Content-Type": "application/x-www-form-urlencoded" } }, [4, fetch(lt.CREATE_SHARE_LINK, ve({ method: "POST", body: c }, d))];
|
|
11112
11112
|
case 1:
|
|
11113
11113
|
return [4, y.sent().json()];
|
|
11114
11114
|
case 2:
|
|
@@ -11159,7 +11159,7 @@ var xu, mf = (xu = h(function(t, e, n, r, i, a) {
|
|
|
11159
11159
|
return [4, W.getAccessToken()];
|
|
11160
11160
|
case 8:
|
|
11161
11161
|
case 11:
|
|
11162
|
-
return i = y.sent(), [4,
|
|
11162
|
+
return i = y.sent(), [4, yf(be, i || "", (e == null ? void 0 : e.title) || "", (e == null ? void 0 : e.description) || "", (e == null ? void 0 : e.thumbnail) || "", e == null ? void 0 : e.path)];
|
|
11163
11163
|
case 9:
|
|
11164
11164
|
return l = y.sent(), n = { data: { ZInstantAPIInfo: { url: "".concat(l.zinstantApi), zinstantdata_id: "templateId=".concat(l.ztemplateId, "&appId=").concat(be, "&shareId=").concat(l.shareId) }, previewMsgText: { msg: { en: "Zalo Mini Program", vi: "Chương trình nhỏ" } }, enableReactions: 1 } }, [3, 14];
|
|
11165
11165
|
case 12:
|
|
@@ -11218,10 +11218,10 @@ var cg = h(function() {
|
|
|
11218
11218
|
});
|
|
11219
11219
|
});
|
|
11220
11220
|
function lg(t) {
|
|
11221
|
-
return
|
|
11221
|
+
return gf.apply(this, arguments);
|
|
11222
11222
|
}
|
|
11223
|
-
function
|
|
11224
|
-
return (
|
|
11223
|
+
function gf() {
|
|
11224
|
+
return (gf = h(function(t) {
|
|
11225
11225
|
return v(this, function(e) {
|
|
11226
11226
|
return [2, P("requestCameraPermission", [], [t], h(function() {
|
|
11227
11227
|
return v(this, function(n) {
|
|
@@ -11253,7 +11253,7 @@ var $u, fg = ($u = h(function(t, e, n) {
|
|
|
11253
11253
|
return v(this, function(i) {
|
|
11254
11254
|
switch (i.label) {
|
|
11255
11255
|
case 0:
|
|
11256
|
-
return t = r.length > 0 && r[0] !== void 0 ? r[0] : be, e = r.length > 1 && r[1] !== void 0 ? r[1] : 0, n =
|
|
11256
|
+
return t = r.length > 0 && r[0] !== void 0 ? r[0] : be, e = r.length > 1 && r[1] !== void 0 ? r[1] : 0, n = Hl(), [4, Xv(t, e, n.version)];
|
|
11257
11257
|
case 1:
|
|
11258
11258
|
return [2, i.sent()];
|
|
11259
11259
|
}
|
|
@@ -11284,11 +11284,11 @@ function xa() {
|
|
|
11284
11284
|
case 0:
|
|
11285
11285
|
return w.isMp ? [4, Jo(be, 0)] : [3, 6];
|
|
11286
11286
|
case 1:
|
|
11287
|
-
return o = d.sent(), s = (i = ce()) === null || i === void 0 || (a = i.platform) === null || a === void 0 ? void 0 : a.isIOS, u = o.logoUrl ||
|
|
11287
|
+
return o = d.sent(), s = (i = ce()) === null || i === void 0 || (a = i.platform) === null || a === void 0 ? void 0 : a.isIOS, u = o.logoUrl || Vl("og:image:url") || "", c = o.name || document.title, (l = r != null && r.params ? new URLSearchParams(r == null ? void 0 : r.params) : new URLSearchParams()).append("utm_source", "zalo-shortcut"), l.append("utm_medium", "default"), l.append("utm_campaign", "default"), s ? (l.append("appId", be), l.append("appName", c), l.append("appIcon", u), f = "https://mini.zalo.me/shortcut.html?".concat(l.toString()), [4, Ko(encodeURI(f))]) : [3, 3];
|
|
11288
11288
|
case 2:
|
|
11289
11289
|
return d.sent(), [3, 5];
|
|
11290
11290
|
case 3:
|
|
11291
|
-
return [4, fg("".concat(
|
|
11291
|
+
return [4, fg("".concat(Pl, "/").concat(be, "/?").concat(l.toString()), c, u)];
|
|
11292
11292
|
case 4:
|
|
11293
11293
|
d.sent(), d.label = 5;
|
|
11294
11294
|
case 5:
|
|
@@ -11355,10 +11355,10 @@ var yg = h(function() {
|
|
|
11355
11355
|
});
|
|
11356
11356
|
});
|
|
11357
11357
|
function gg(t) {
|
|
11358
|
-
return
|
|
11358
|
+
return _f.apply(this, arguments);
|
|
11359
11359
|
}
|
|
11360
|
-
function
|
|
11361
|
-
return (
|
|
11360
|
+
function _f() {
|
|
11361
|
+
return (_f = h(function(t) {
|
|
11362
11362
|
return v(this, function(e) {
|
|
11363
11363
|
return [2, P("checkStateBioAuthentication", [], [t], h(function() {
|
|
11364
11364
|
return v(this, function(n) {
|
|
@@ -11424,10 +11424,10 @@ var wg = h(function() {
|
|
|
11424
11424
|
});
|
|
11425
11425
|
});
|
|
11426
11426
|
function Sg(t) {
|
|
11427
|
-
return
|
|
11427
|
+
return bf.apply(this, arguments);
|
|
11428
11428
|
}
|
|
11429
|
-
function
|
|
11430
|
-
return (
|
|
11429
|
+
function bf() {
|
|
11430
|
+
return (bf = h(function(t) {
|
|
11431
11431
|
return v(this, function(e) {
|
|
11432
11432
|
return [2, P("hideKeyboard", [], [t], h(function() {
|
|
11433
11433
|
return v(this, function(n) {
|
|
@@ -11594,10 +11594,10 @@ function Va() {
|
|
|
11594
11594
|
}), Va.apply(this, arguments);
|
|
11595
11595
|
}
|
|
11596
11596
|
function xg(t) {
|
|
11597
|
-
return
|
|
11597
|
+
return Ef.apply(this, arguments);
|
|
11598
11598
|
}
|
|
11599
|
-
function
|
|
11600
|
-
return (
|
|
11599
|
+
function Ef() {
|
|
11600
|
+
return (Ef = h(function(t) {
|
|
11601
11601
|
return v(this, function(e) {
|
|
11602
11602
|
return [2, P("onKeepScreen", [], [t], h(function() {
|
|
11603
11603
|
return v(this, function(n) {
|
|
@@ -11615,10 +11615,10 @@ function bf() {
|
|
|
11615
11615
|
})).apply(this, arguments);
|
|
11616
11616
|
}
|
|
11617
11617
|
function Lg(t) {
|
|
11618
|
-
return
|
|
11618
|
+
return wf.apply(this, arguments);
|
|
11619
11619
|
}
|
|
11620
|
-
function
|
|
11621
|
-
return (
|
|
11620
|
+
function wf() {
|
|
11621
|
+
return (wf = h(function(t) {
|
|
11622
11622
|
return v(this, function(e) {
|
|
11623
11623
|
return [2, P("offKeepScreen", [], [t], h(function() {
|
|
11624
11624
|
return v(this, function(n) {
|
|
@@ -11804,7 +11804,7 @@ function qa() {
|
|
|
11804
11804
|
});
|
|
11805
11805
|
}), qa.apply(this, arguments);
|
|
11806
11806
|
}
|
|
11807
|
-
var Gu,
|
|
11807
|
+
var Gu, Sf = (Gu = h(function(t, e) {
|
|
11808
11808
|
var n, r, i, a;
|
|
11809
11809
|
return v(this, function(o) {
|
|
11810
11810
|
return n = new URL(t), r = n.href.includes("vnpay"), i = n.searchParams.get("typeInapp"), a = B.isEmpty(e) ? void 0 : { modal_style: e != null && e.style ? _u(e == null ? void 0 : e.style) : "bottom_sheet", left_button: e != null && e.leftButton ? _u(e == null ? void 0 : e.leftButton) : "back" }, !r && B.isEmpty(i) && n.searchParams.set("typeInapp", "1"), [2, new Promise(function(s, u) {
|
|
@@ -11828,7 +11828,7 @@ function Qa() {
|
|
|
11828
11828
|
return v(this, function(i) {
|
|
11829
11829
|
switch (i.label) {
|
|
11830
11830
|
case 0:
|
|
11831
|
-
return w.isMp ? [4,
|
|
11831
|
+
return w.isMp ? [4, Sf(r.url, r.config)] : [3, 2];
|
|
11832
11832
|
case 1:
|
|
11833
11833
|
return [2, i.sent()];
|
|
11834
11834
|
case 2:
|
|
@@ -11842,7 +11842,7 @@ function Qa() {
|
|
|
11842
11842
|
});
|
|
11843
11843
|
}), Qa.apply(this, arguments);
|
|
11844
11844
|
}
|
|
11845
|
-
function
|
|
11845
|
+
function Tf() {
|
|
11846
11846
|
var t = {}, e = window.location.href;
|
|
11847
11847
|
try {
|
|
11848
11848
|
var n = new URL(e).searchParams.toString();
|
|
@@ -11854,14 +11854,14 @@ function Sf() {
|
|
|
11854
11854
|
}
|
|
11855
11855
|
function Kg() {
|
|
11856
11856
|
return P("getRouteParams", [], [], function() {
|
|
11857
|
-
return
|
|
11857
|
+
return Tf();
|
|
11858
11858
|
});
|
|
11859
11859
|
}
|
|
11860
11860
|
function Yg(t) {
|
|
11861
|
-
return
|
|
11861
|
+
return Of.apply(this, arguments);
|
|
11862
11862
|
}
|
|
11863
|
-
function
|
|
11864
|
-
return (
|
|
11863
|
+
function Of() {
|
|
11864
|
+
return (Of = h(function(t) {
|
|
11865
11865
|
return v(this, function(e) {
|
|
11866
11866
|
return [2, P("getAppInfo", [], [t], h(function() {
|
|
11867
11867
|
return v(this, function(n) {
|
|
@@ -11881,7 +11881,7 @@ function Tf() {
|
|
|
11881
11881
|
var Hu, Xg = (Hu = h(function(t) {
|
|
11882
11882
|
return v(this, function(e) {
|
|
11883
11883
|
return [2, new Promise(function(n, r) {
|
|
11884
|
-
V("WEBVIEW_SET_RESULT", { result:
|
|
11884
|
+
V("WEBVIEW_SET_RESULT", { result: Bl(t) }, { success: function() {
|
|
11885
11885
|
n();
|
|
11886
11886
|
}, fail: function(i) {
|
|
11887
11887
|
r(i);
|
|
@@ -11930,10 +11930,10 @@ var n_ = h(function() {
|
|
|
11930
11930
|
});
|
|
11931
11931
|
});
|
|
11932
11932
|
function r_(t) {
|
|
11933
|
-
return
|
|
11933
|
+
return If.apply(this, arguments);
|
|
11934
11934
|
}
|
|
11935
|
-
function
|
|
11936
|
-
return (
|
|
11935
|
+
function If() {
|
|
11936
|
+
return (If = h(function(t) {
|
|
11937
11937
|
return v(this, function(e) {
|
|
11938
11938
|
return [2, P("getPhoneNumber", [], [t], h(function() {
|
|
11939
11939
|
return v(this, function(n) {
|
|
@@ -12099,7 +12099,7 @@ function Ka() {
|
|
|
12099
12099
|
case 0:
|
|
12100
12100
|
return [4, W.getAccessToken()];
|
|
12101
12101
|
case 1:
|
|
12102
|
-
return i = a.sent(), [4,
|
|
12102
|
+
return i = a.sent(), [4, yf(window.APP_ID, i || "", r.title, r.description, r.thumbnail, r.path)];
|
|
12103
12103
|
case 2:
|
|
12104
12104
|
return [2, a.sent().shareableLink];
|
|
12105
12105
|
}
|
|
@@ -12125,10 +12125,10 @@ var Yu, v_ = (Yu = h(function(t) {
|
|
|
12125
12125
|
return Yu.apply(this, arguments);
|
|
12126
12126
|
});
|
|
12127
12127
|
function m_(t) {
|
|
12128
|
-
return
|
|
12128
|
+
return Pf.apply(this, arguments);
|
|
12129
12129
|
}
|
|
12130
|
-
function
|
|
12131
|
-
return (
|
|
12130
|
+
function Pf() {
|
|
12131
|
+
return (Pf = h(function(t) {
|
|
12132
12132
|
return v(this, function(e) {
|
|
12133
12133
|
return [2, P("closeLoading", [], [t], h(function() {
|
|
12134
12134
|
return v(this, function(n) {
|
|
@@ -12146,10 +12146,10 @@ function If() {
|
|
|
12146
12146
|
})).apply(this, arguments);
|
|
12147
12147
|
}
|
|
12148
12148
|
function y_(t) {
|
|
12149
|
-
return
|
|
12149
|
+
return Af.apply(this, arguments);
|
|
12150
12150
|
}
|
|
12151
|
-
function
|
|
12152
|
-
return (
|
|
12151
|
+
function Af() {
|
|
12152
|
+
return (Af = h(function(t) {
|
|
12153
12153
|
return v(this, function(e) {
|
|
12154
12154
|
return [2, P("requestUpdateZalo", [], [t], h(function() {
|
|
12155
12155
|
var n, r, i;
|
|
@@ -12190,10 +12190,10 @@ function E_() {
|
|
|
12190
12190
|
});
|
|
12191
12191
|
}
|
|
12192
12192
|
function w_(t) {
|
|
12193
|
-
return
|
|
12193
|
+
return kf.apply(this, arguments);
|
|
12194
12194
|
}
|
|
12195
|
-
function
|
|
12196
|
-
return (
|
|
12195
|
+
function kf() {
|
|
12196
|
+
return (kf = h(function(t) {
|
|
12197
12197
|
return v(this, function(e) {
|
|
12198
12198
|
return [2, P("getDeviceIdAsync", [], [t], h(function() {
|
|
12199
12199
|
return v(this, function(n) {
|
|
@@ -12220,10 +12220,10 @@ function S_() {
|
|
|
12220
12220
|
});
|
|
12221
12221
|
}
|
|
12222
12222
|
function T_(t) {
|
|
12223
|
-
return
|
|
12223
|
+
return Cf.apply(this, arguments);
|
|
12224
12224
|
}
|
|
12225
|
-
function
|
|
12226
|
-
return (
|
|
12225
|
+
function Cf() {
|
|
12226
|
+
return (Cf = h(function(t) {
|
|
12227
12227
|
return v(this, function(e) {
|
|
12228
12228
|
return [2, P("getContextAsync", [], [t], h(function() {
|
|
12229
12229
|
var n;
|
|
@@ -12244,10 +12244,10 @@ function kf() {
|
|
|
12244
12244
|
})).apply(this, arguments);
|
|
12245
12245
|
}
|
|
12246
12246
|
function O_(t) {
|
|
12247
|
-
return
|
|
12247
|
+
return Nf.apply(this, arguments);
|
|
12248
12248
|
}
|
|
12249
|
-
function
|
|
12250
|
-
return (
|
|
12249
|
+
function Nf() {
|
|
12250
|
+
return (Nf = h(function(t) {
|
|
12251
12251
|
return v(this, function(e) {
|
|
12252
12252
|
return [2, P("getAuthCode", [], [t], h(function() {
|
|
12253
12253
|
var n, r;
|
|
@@ -12271,10 +12271,10 @@ function Cf() {
|
|
|
12271
12271
|
})).apply(this, arguments);
|
|
12272
12272
|
}
|
|
12273
12273
|
function I_(t) {
|
|
12274
|
-
return
|
|
12274
|
+
return Df.apply(this, arguments);
|
|
12275
12275
|
}
|
|
12276
|
-
function
|
|
12277
|
-
return (
|
|
12276
|
+
function Df() {
|
|
12277
|
+
return (Df = h(function(t) {
|
|
12278
12278
|
return v(this, function(e) {
|
|
12279
12279
|
return [2, P("getZPIToken", [], [t], h(function() {
|
|
12280
12280
|
var n, r, i, a;
|
|
@@ -12375,10 +12375,10 @@ var R_ = h(function() {
|
|
|
12375
12375
|
});
|
|
12376
12376
|
});
|
|
12377
12377
|
function M_(t) {
|
|
12378
|
-
return
|
|
12378
|
+
return Rf.apply(this, arguments);
|
|
12379
12379
|
}
|
|
12380
|
-
function
|
|
12381
|
-
return (
|
|
12380
|
+
function Rf() {
|
|
12381
|
+
return (Rf = h(function(t) {
|
|
12382
12382
|
return v(this, function(e) {
|
|
12383
12383
|
return [2, P("getLocation", [], [t], h(function() {
|
|
12384
12384
|
return v(this, function(n) {
|
|
@@ -12406,12 +12406,12 @@ function $_(t) {
|
|
|
12406
12406
|
x_(t);
|
|
12407
12407
|
});
|
|
12408
12408
|
}
|
|
12409
|
-
var Xu,
|
|
12409
|
+
var Xu, Mf = (Xu = h(function(t) {
|
|
12410
12410
|
var e, n, r, i, a, o, s, u, c, l, f;
|
|
12411
12411
|
return v(this, function(d) {
|
|
12412
12412
|
switch (d.label) {
|
|
12413
12413
|
case 0:
|
|
12414
|
-
return t || (t =
|
|
12414
|
+
return t || (t = Tf()), typeof t == "object" && ((n = t.zmpOrderId || t.orderId) || (e = t.appTransID || t.apptransid || t.transId)), typeof t == "string" && (r = Ot.getParameterByName("orderId", t), i = Ot.getParameterByName("appTransID", t) || Ot.getParameterByName("apptransid", t), e = r || i), a = { headers: { authorization: "Bearer " } }, [4, W.getAccessToken().catch(function() {
|
|
12415
12415
|
throw de.error.loginRequired;
|
|
12416
12416
|
})];
|
|
12417
12417
|
case 1:
|
|
@@ -12441,7 +12441,7 @@ var Xu, Rf = (Xu = h(function(t) {
|
|
|
12441
12441
|
return [4, K.sent().json()];
|
|
12442
12442
|
case 4:
|
|
12443
12443
|
if (!(p = K.sent()).data || p.err !== 0) throw de.error.badRequest(p.msg);
|
|
12444
|
-
return y = p.data.id, g = p.data.jwt, _ = p.data.messageToken || "", m = window.APP_VERSION, E = window.APP_ENV, S = { miniAppId: s, orderId: y }, O = p.data.method, I = p.data.isCustom, g && (S.token = g), m && (S.version = m), E && (S.env = E), O && (S.method = O), I && (S.isCustom = I), A = Ot.encode(S), N = new URL("?".concat(A), Av).toString(), M =
|
|
12444
|
+
return y = p.data.id, g = p.data.jwt, _ = p.data.messageToken || "", m = window.APP_VERSION, E = window.APP_ENV, S = { miniAppId: s, orderId: y }, O = p.data.method, I = p.data.isCustom, g && (S.token = g), m && (S.version = m), E && (S.env = E), O && (S.method = O), I && (S.isCustom = I), A = Ot.encode(S), N = new URL("?".concat(A), Av).toString(), M = Ll(), U = xl() && M < 742 ? "normal" : "bottomSheet", da.enablePaymentDone = _e.getInstance().eventNames().includes(ue.PaymentDone), [4, Sf(N, { style: U }).then(function() {
|
|
12445
12445
|
var ee = !1;
|
|
12446
12446
|
_e.getInstance().once(ue.WebviewClosed, function() {
|
|
12447
12447
|
setTimeout(h(function() {
|
|
@@ -12449,7 +12449,7 @@ var Xu, Rf = (Xu = h(function(t) {
|
|
|
12449
12449
|
return v(this, function(X) {
|
|
12450
12450
|
switch (X.label) {
|
|
12451
12451
|
case 0:
|
|
12452
|
-
return ee ? [3, 2] : (_e.getInstance().emit(ue.PaymentDone, y, { orderId: y }), [4,
|
|
12452
|
+
return ee ? [3, 2] : (_e.getInstance().emit(ue.PaymentDone, y, { orderId: y }), [4, Mf({ zmpOrderId: y })]);
|
|
12453
12453
|
case 1:
|
|
12454
12454
|
(J = X.sent()).err >= 0 && !J.isCustom && _e.getInstance().emit(ue.PaymentClose, J.err, pt(ve({}, J), { zmpOrderId: y })), X.label = 2;
|
|
12455
12455
|
case 2:
|
|
@@ -12474,7 +12474,7 @@ var Xu, Rf = (Xu = h(function(t) {
|
|
|
12474
12474
|
}), function(t, e, n, r, i, a, o) {
|
|
12475
12475
|
return ec.apply(this, arguments);
|
|
12476
12476
|
}), F_ = [k({ amount: T.union([C(), xe()]), item: T.array(T.record(C(), T.any())), desc: T.string(), mac: T.string(), extradata: T.any().optional(), payload: T.any().optional(), method: T.union([T.string(), T.object({ id: T.string(), isCustom: T.boolean() })]).optional() })];
|
|
12477
|
-
function
|
|
12477
|
+
function xf(t) {
|
|
12478
12478
|
return eo.apply(this, arguments);
|
|
12479
12479
|
}
|
|
12480
12480
|
function eo() {
|
|
@@ -12545,7 +12545,7 @@ var U_ = h(function() {
|
|
|
12545
12545
|
}), function(t, e, n, r, i) {
|
|
12546
12546
|
return tc.apply(this, arguments);
|
|
12547
12547
|
}), B_ = [k({ amount: T.union([T.string(), T.number()]), desc: T.string(), method: T.string(), transId: T.string().optional(), mac: T.string().optional() })];
|
|
12548
|
-
function
|
|
12548
|
+
function Lf(t) {
|
|
12549
12549
|
return to.apply(this, arguments);
|
|
12550
12550
|
}
|
|
12551
12551
|
function to() {
|
|
@@ -12582,8 +12582,8 @@ var nc, z_ = (nc = h(function(t, e) {
|
|
|
12582
12582
|
});
|
|
12583
12583
|
}), function(t, e) {
|
|
12584
12584
|
return nc.apply(this, arguments);
|
|
12585
|
-
}), W_ = [k({ channels:
|
|
12586
|
-
function
|
|
12585
|
+
}), W_ = [k({ channels: nf(k({ method: C(), subMethod: C().optional(), subInfo: C().optional() })).optional(), selectedMethod: k({ method: C(), subMethod: C().optional() }).optional() }).optional()];
|
|
12586
|
+
function $f(t) {
|
|
12587
12587
|
return no.apply(this, arguments);
|
|
12588
12588
|
}
|
|
12589
12589
|
function no() {
|
|
@@ -12609,7 +12609,7 @@ function no() {
|
|
|
12609
12609
|
}), no.apply(this, arguments);
|
|
12610
12610
|
}
|
|
12611
12611
|
var q_ = [k({ data: T.union([C(), T.record(C(), C().nullish())]) })];
|
|
12612
|
-
function
|
|
12612
|
+
function jf(t) {
|
|
12613
12613
|
return ro.apply(this, arguments);
|
|
12614
12614
|
}
|
|
12615
12615
|
function ro() {
|
|
@@ -12619,7 +12619,7 @@ function ro() {
|
|
|
12619
12619
|
return v(this, function(i) {
|
|
12620
12620
|
switch (i.label) {
|
|
12621
12621
|
case 0:
|
|
12622
|
-
return w.isMp ? [4,
|
|
12622
|
+
return w.isMp ? [4, Mf(r.data)] : [3, 2];
|
|
12623
12623
|
case 1:
|
|
12624
12624
|
return [2, i.sent()];
|
|
12625
12625
|
case 2:
|
|
@@ -12665,7 +12665,7 @@ var rc, Q_ = (rc = h(function(t, e, n, r, i, a) {
|
|
|
12665
12665
|
}), function(t, e, n, r, i, a) {
|
|
12666
12666
|
return rc.apply(this, arguments);
|
|
12667
12667
|
}), Z_ = [k({ productId: C(), payType: T.enum(["ONETIME", "SUBSCRIPTION"]).optional(), prorationMode: T.enum(["DEFERRED", "IMMEDIATE_AND_CHARGE_FULL_PRICE"]).default("DEFERRED").optional(), utm: C().optional(), method: T.enum(["IAP", "IAP_SANDBOX"]).optional(), merchantTransId: C().optional() })];
|
|
12668
|
-
function
|
|
12668
|
+
function Ff(t) {
|
|
12669
12669
|
return io.apply(this, arguments);
|
|
12670
12670
|
}
|
|
12671
12671
|
function io() {
|
|
@@ -12824,10 +12824,10 @@ var nb = h(function() {
|
|
|
12824
12824
|
});
|
|
12825
12825
|
});
|
|
12826
12826
|
function rb(t) {
|
|
12827
|
-
return
|
|
12827
|
+
return Uf.apply(this, arguments);
|
|
12828
12828
|
}
|
|
12829
|
-
function
|
|
12830
|
-
return (
|
|
12829
|
+
function Uf() {
|
|
12830
|
+
return (Uf = h(function(t) {
|
|
12831
12831
|
return v(this, function(e) {
|
|
12832
12832
|
return [2, P("minimizeApp", [], [t], h(function() {
|
|
12833
12833
|
return v(this, function(n) {
|
|
@@ -12856,10 +12856,10 @@ var ib = h(function() {
|
|
|
12856
12856
|
});
|
|
12857
12857
|
});
|
|
12858
12858
|
function ab(t) {
|
|
12859
|
-
return
|
|
12859
|
+
return Vf.apply(this, arguments);
|
|
12860
12860
|
}
|
|
12861
|
-
function
|
|
12862
|
-
return (
|
|
12861
|
+
function Vf() {
|
|
12862
|
+
return (Vf = h(function(t) {
|
|
12863
12863
|
return v(this, function(e) {
|
|
12864
12864
|
return [2, P("openPermissionSetting", [], [t], h(function() {
|
|
12865
12865
|
return v(this, function(n) {
|
|
@@ -12888,10 +12888,10 @@ var ob = h(function() {
|
|
|
12888
12888
|
});
|
|
12889
12889
|
});
|
|
12890
12890
|
function sb(t) {
|
|
12891
|
-
return
|
|
12891
|
+
return Bf.apply(this, arguments);
|
|
12892
12892
|
}
|
|
12893
|
-
function
|
|
12894
|
-
return (
|
|
12893
|
+
function Bf() {
|
|
12894
|
+
return (Bf = h(function(t) {
|
|
12895
12895
|
return v(this, function(e) {
|
|
12896
12896
|
return [2, P("favoriteApp", [], [t], h(function() {
|
|
12897
12897
|
return v(this, function(n) {
|
|
@@ -12920,10 +12920,10 @@ var ub = h(function() {
|
|
|
12920
12920
|
});
|
|
12921
12921
|
});
|
|
12922
12922
|
function cb(t) {
|
|
12923
|
-
return
|
|
12923
|
+
return zf.apply(this, arguments);
|
|
12924
12924
|
}
|
|
12925
|
-
function
|
|
12926
|
-
return (
|
|
12925
|
+
function zf() {
|
|
12926
|
+
return (zf = h(function(t) {
|
|
12927
12927
|
return v(this, function(e) {
|
|
12928
12928
|
return [2, P("openGroupList", [], [t], h(function() {
|
|
12929
12929
|
return v(this, function(n) {
|
|
@@ -12958,10 +12958,10 @@ var lb = h(function() {
|
|
|
12958
12958
|
});
|
|
12959
12959
|
});
|
|
12960
12960
|
function fb(t) {
|
|
12961
|
-
return
|
|
12961
|
+
return Wf.apply(this, arguments);
|
|
12962
12962
|
}
|
|
12963
|
-
function
|
|
12964
|
-
return (
|
|
12963
|
+
function Wf() {
|
|
12964
|
+
return (Wf = h(function(t) {
|
|
12965
12965
|
return v(this, function(e) {
|
|
12966
12966
|
return [2, P("requestSendNotification", [], [t], h(function() {
|
|
12967
12967
|
return v(this, function(n) {
|
|
@@ -12990,10 +12990,10 @@ var db = h(function() {
|
|
|
12990
12990
|
});
|
|
12991
12991
|
});
|
|
12992
12992
|
function pb(t) {
|
|
12993
|
-
return
|
|
12993
|
+
return qf.apply(this, arguments);
|
|
12994
12994
|
}
|
|
12995
|
-
function
|
|
12996
|
-
return (
|
|
12995
|
+
function qf() {
|
|
12996
|
+
return (qf = h(function(t) {
|
|
12997
12997
|
return v(this, function(e) {
|
|
12998
12998
|
return [2, P("addRating", [], [t], h(function() {
|
|
12999
12999
|
return v(this, function(n) {
|
|
@@ -13010,7 +13010,7 @@ function Wf() {
|
|
|
13010
13010
|
});
|
|
13011
13011
|
})).apply(this, arguments);
|
|
13012
13012
|
}
|
|
13013
|
-
var ic, ac,
|
|
13013
|
+
var ic, ac, Qf = (ic = h(function(t, e, n) {
|
|
13014
13014
|
var r, i;
|
|
13015
13015
|
return v(this, function(a) {
|
|
13016
13016
|
switch (a.label) {
|
|
@@ -13050,7 +13050,7 @@ function co() {
|
|
|
13050
13050
|
case 0:
|
|
13051
13051
|
return w.isMp ? (i = r.oaId, [4, W.getAccessToken()]) : [3, 5];
|
|
13052
13052
|
case 1:
|
|
13053
|
-
return !(a = s.sent()) || B.isEmpty(a) ? [3, 3] : [4,
|
|
13053
|
+
return !(a = s.sent()) || B.isEmpty(a) ? [3, 3] : [4, Qf(i, be, a)];
|
|
13054
13054
|
case 2:
|
|
13055
13055
|
if (((o = s.sent()) == null ? void 0 : o.err) === 0) return [2, Promise.resolve({})];
|
|
13056
13056
|
s.label = 3;
|
|
@@ -13083,7 +13083,7 @@ function lo() {
|
|
|
13083
13083
|
case 0:
|
|
13084
13084
|
return w.isMp ? (i = r.oaId, [4, W.getAccessToken()]) : [3, 4];
|
|
13085
13085
|
case 1:
|
|
13086
|
-
return !(a = s.sent()) || B.isEmpty(a) ? [3, 3] : [4,
|
|
13086
|
+
return !(a = s.sent()) || B.isEmpty(a) ? [3, 3] : [4, Qf(i, be, a)];
|
|
13087
13087
|
case 2:
|
|
13088
13088
|
return o = s.sent(), [2, Promise.resolve({ status: (o == null ? void 0 : o.err) === 0 })];
|
|
13089
13089
|
case 3:
|
|
@@ -13100,10 +13100,10 @@ function lo() {
|
|
|
13100
13100
|
}), lo.apply(this, arguments);
|
|
13101
13101
|
}
|
|
13102
13102
|
function gb(t) {
|
|
13103
|
-
return
|
|
13103
|
+
return Zf.apply(this, arguments);
|
|
13104
13104
|
}
|
|
13105
|
-
function
|
|
13106
|
-
return (
|
|
13105
|
+
function Zf() {
|
|
13106
|
+
return (Zf = h(function(t) {
|
|
13107
13107
|
return v(this, function(e) {
|
|
13108
13108
|
return [2, P("getSetting", [], [t], h(function() {
|
|
13109
13109
|
return v(this, function(n) {
|
|
@@ -13132,7 +13132,7 @@ function fo() {
|
|
|
13132
13132
|
return v(this, function(a) {
|
|
13133
13133
|
switch (a.label) {
|
|
13134
13134
|
case 0:
|
|
13135
|
-
return w.isMp ? (i = r == null ? void 0 : r.scopes, Zt(724, 573) ? [2, Promise.reject(de.error.clientNotSupport())] : [4,
|
|
13135
|
+
return w.isMp ? (i = r == null ? void 0 : r.scopes, Zt(724, 573) ? [2, Promise.reject(de.error.clientNotSupport())] : [4, Fl(i ?? void 0)]) : [3, 2];
|
|
13136
13136
|
case 1:
|
|
13137
13137
|
return [2, a.sent()];
|
|
13138
13138
|
case 2:
|
|
@@ -13201,10 +13201,10 @@ var Tb = h(function() {
|
|
|
13201
13201
|
});
|
|
13202
13202
|
});
|
|
13203
13203
|
function Ob(t) {
|
|
13204
|
-
return
|
|
13204
|
+
return Gf.apply(this, arguments);
|
|
13205
13205
|
}
|
|
13206
|
-
function
|
|
13207
|
-
return (
|
|
13206
|
+
function Gf() {
|
|
13207
|
+
return (Gf = h(function(t) {
|
|
13208
13208
|
return v(this, function(e) {
|
|
13209
13209
|
return [2, P("getUserID", [], [t], h(function() {
|
|
13210
13210
|
return v(this, function(n) {
|
|
@@ -13244,10 +13244,10 @@ var Ib = h(function() {
|
|
|
13244
13244
|
});
|
|
13245
13245
|
});
|
|
13246
13246
|
function Pb(t) {
|
|
13247
|
-
return
|
|
13247
|
+
return Hf.apply(this, arguments);
|
|
13248
13248
|
}
|
|
13249
|
-
function
|
|
13250
|
-
return (
|
|
13249
|
+
function Hf() {
|
|
13250
|
+
return (Hf = h(function(t) {
|
|
13251
13251
|
return v(this, function(e) {
|
|
13252
13252
|
return [2, P("getIDToken", [], [t], h(function() {
|
|
13253
13253
|
return v(this, function(n) {
|
|
@@ -13264,7 +13264,7 @@ function Gf() {
|
|
|
13264
13264
|
});
|
|
13265
13265
|
})).apply(this, arguments);
|
|
13266
13266
|
}
|
|
13267
|
-
var Ab = { format: Wn.JPEG, quality: Ar.NORMAL }, Jt = { width: 1024, height: 768, facingMode: Me.FRONT, mirrored: !1, audio: !1, video: !0 },
|
|
13267
|
+
var Ab = { format: Wn.JPEG, quality: Ar.NORMAL }, Jt = { width: 1024, height: 768, facingMode: Me.FRONT, mirrored: !1, audio: !1, video: !0 }, Jf = function() {
|
|
13268
13268
|
function t(n) {
|
|
13269
13269
|
var r, i, a, o, s, u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, c = this;
|
|
13270
13270
|
$e(this, t), this._videoEnabled = !0, this._audioEnabled = null, this.tick = function() {
|
|
@@ -13557,7 +13557,7 @@ var Ab = { format: Wn.JPEG, quality: Ar.NORMAL }, Jt = { width: 1024, height: 76
|
|
|
13557
13557
|
}, { message: "Invalid HTMLVideoElement" }), Cb = [k({ videoElement: kb, mediaConstraints: T.object({ width: T.number().min(100).optional(), height: T.number().min(100).optional(), facingMode: T.string().optional(), audio: T.boolean().optional(), video: T.boolean().optional(), deviceId: T.string().optional(), mirrored: T.boolean().optional() }).nullish() }).optional()];
|
|
13558
13558
|
function Nb(t) {
|
|
13559
13559
|
return P("createCameraContext", Cb, [t], function(e) {
|
|
13560
|
-
return new
|
|
13560
|
+
return new Jf(e.videoElement, e.mediaConstraints);
|
|
13561
13561
|
});
|
|
13562
13562
|
}
|
|
13563
13563
|
var ii = function() {
|
|
@@ -13595,10 +13595,10 @@ var ii = function() {
|
|
|
13595
13595
|
}, t;
|
|
13596
13596
|
}();
|
|
13597
13597
|
function Db(t) {
|
|
13598
|
-
return
|
|
13598
|
+
return Kf.apply(this, arguments);
|
|
13599
13599
|
}
|
|
13600
|
-
function
|
|
13601
|
-
return (
|
|
13600
|
+
function Kf() {
|
|
13601
|
+
return (Kf = h(function(t) {
|
|
13602
13602
|
return v(this, function(e) {
|
|
13603
13603
|
return [2, P("setupAd", [], [t], function() {
|
|
13604
13604
|
return ii.getInstance().loadSDK();
|
|
@@ -13735,7 +13735,7 @@ function yo() {
|
|
|
13735
13735
|
case 0:
|
|
13736
13736
|
return y = p.data, p.origin.startsWith("https://h5.zalo.me") ? (g = document.getElementById(c), _ = y.type, (m = new URL(y.href)).origin !== l.origin || m.pathname !== l.pathname || y.id !== c ? [3, 4] : _ !== "buttonClicked" ? [3, 3] : [4, W.jumpAndGetToken()]) : [3, 4];
|
|
13737
13737
|
case 1:
|
|
13738
|
-
return z.sent(), I = (E = W.miniProgramConfig) === null || E === void 0 ? void 0 : E.jwt, A = (S = W.miniProgramConfig) === null || S === void 0 ? void 0 : S.encryptKey, [4,
|
|
13738
|
+
return z.sent(), I = (E = W.miniProgramConfig) === null || E === void 0 ? void 0 : E.jwt, A = (S = W.miniProgramConfig) === null || S === void 0 ? void 0 : S.encryptKey, [4, Zl()];
|
|
13739
13739
|
case 2:
|
|
13740
13740
|
return N = z.sent(), g == null || (O = g.contentWindow) === null || O === void 0 || O.postMessage({ type: _, payload: { jwt: I, encryptKey: A, accessToken: N } }, "*"), [3, 4];
|
|
13741
13741
|
case 3:
|
|
@@ -13817,10 +13817,10 @@ var Qb = h(function() {
|
|
|
13817
13817
|
});
|
|
13818
13818
|
});
|
|
13819
13819
|
function Zb(t) {
|
|
13820
|
-
return
|
|
13820
|
+
return Yf.apply(this, arguments);
|
|
13821
13821
|
}
|
|
13822
|
-
function
|
|
13823
|
-
return (
|
|
13822
|
+
function Yf() {
|
|
13823
|
+
return (Yf = h(function(t) {
|
|
13824
13824
|
return v(this, function(e) {
|
|
13825
13825
|
return [2, P("checkNFC", [], [t], h(function() {
|
|
13826
13826
|
return v(this, function(n) {
|
|
@@ -13888,7 +13888,7 @@ function t0() {
|
|
|
13888
13888
|
throw D("getStorageInfoSync", {});
|
|
13889
13889
|
});
|
|
13890
13890
|
}
|
|
13891
|
-
var n0 = { getItem: Hb, setItem: Kb, clear: Yb, removeItem: e0, getStorageInfo: t0 },
|
|
13891
|
+
var n0 = { getItem: Hb, setItem: Kb, clear: Yb, removeItem: e0, getStorageInfo: t0 }, Xf = { purchase: Lf, createOrder: xf, checkTransaction: jf, createOrderIAP: Ff, selectPaymentMethod: $f }, r0 = Xf, uc, i0 = (uc = h(function(t, e) {
|
|
13892
13892
|
return v(this, function(n) {
|
|
13893
13893
|
return [2, new Promise(function(r, i) {
|
|
13894
13894
|
V("SAVE_FILE", { fileUrl: t, onProgress: e }, { success: function(a) {
|
|
@@ -13985,8 +13985,8 @@ function bo() {
|
|
|
13985
13985
|
});
|
|
13986
13986
|
}), bo.apply(this, arguments);
|
|
13987
13987
|
}
|
|
13988
|
-
window.ZaloMiniAppSDK = { getVersion:
|
|
13989
|
-
const
|
|
13988
|
+
window.ZaloMiniAppSDK = { getVersion: Wl }, ql();
|
|
13989
|
+
const ed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13990
13990
|
__proto__: null,
|
|
13991
13991
|
AppError: ge,
|
|
13992
13992
|
get CameraEvents() {
|
|
@@ -14002,7 +14002,7 @@ const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14002
14002
|
get FacingMode() {
|
|
14003
14003
|
return Me;
|
|
14004
14004
|
},
|
|
14005
|
-
Payment:
|
|
14005
|
+
Payment: Xf,
|
|
14006
14006
|
get PhotoFormat() {
|
|
14007
14007
|
return Wn;
|
|
14008
14008
|
},
|
|
@@ -14012,12 +14012,12 @@ const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14012
14012
|
get StreamType() {
|
|
14013
14013
|
return kr;
|
|
14014
14014
|
},
|
|
14015
|
-
ZMACameraImp:
|
|
14015
|
+
ZMACameraImp: Jf,
|
|
14016
14016
|
addRating: pb,
|
|
14017
14017
|
authorize: Eb,
|
|
14018
14018
|
checkNFC: Zb,
|
|
14019
14019
|
checkStateBioAuthentication: gg,
|
|
14020
|
-
checkTransaction:
|
|
14020
|
+
checkTransaction: jf,
|
|
14021
14021
|
checkZaloCameraPermission: Sb,
|
|
14022
14022
|
chooseImage: D_,
|
|
14023
14023
|
clearStorage: Py,
|
|
@@ -14026,15 +14026,15 @@ const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14026
14026
|
configAppView: tb,
|
|
14027
14027
|
connectWifi: c_,
|
|
14028
14028
|
createCameraContext: Nb,
|
|
14029
|
-
createOrder:
|
|
14030
|
-
createOrderIAP:
|
|
14029
|
+
createOrder: xf,
|
|
14030
|
+
createOrderIAP: Ff,
|
|
14031
14031
|
createShortcut: pg,
|
|
14032
14032
|
displayAd: Lb,
|
|
14033
14033
|
downloadFile: o0,
|
|
14034
14034
|
events: ir,
|
|
14035
14035
|
favoriteApp: sb,
|
|
14036
14036
|
followOA: ng,
|
|
14037
|
-
getAccessToken:
|
|
14037
|
+
getAccessToken: Zl,
|
|
14038
14038
|
getAppInfo: Yg,
|
|
14039
14039
|
getAuthCode: O_,
|
|
14040
14040
|
getBeacons: Vy,
|
|
@@ -14054,7 +14054,7 @@ const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14054
14054
|
getSystemInfo: hm,
|
|
14055
14055
|
getUserID: Ob,
|
|
14056
14056
|
getUserInfo: Cy,
|
|
14057
|
-
getVersion:
|
|
14057
|
+
getVersion: Wl,
|
|
14058
14058
|
getZPIToken: I_,
|
|
14059
14059
|
hideKeyboard: Sg,
|
|
14060
14060
|
interactOA: oc,
|
|
@@ -14062,7 +14062,7 @@ const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14062
14062
|
isAllowedInteractWithOA: yb,
|
|
14063
14063
|
keepScreen: Mg,
|
|
14064
14064
|
loadAd: Mb,
|
|
14065
|
-
login:
|
|
14065
|
+
login: ql,
|
|
14066
14066
|
minimizeApp: rb,
|
|
14067
14067
|
nativeStorage: n0,
|
|
14068
14068
|
offConfirmToExit: b_,
|
|
@@ -14085,7 +14085,7 @@ const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14085
14085
|
openSMS: kg,
|
|
14086
14086
|
openShareSheet: ug,
|
|
14087
14087
|
openWebview: Jg,
|
|
14088
|
-
purchase:
|
|
14088
|
+
purchase: Lf,
|
|
14089
14089
|
refreshAd: jb,
|
|
14090
14090
|
removeStorage: Oy,
|
|
14091
14091
|
requestCameraPermission: lg,
|
|
@@ -14095,7 +14095,7 @@ const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14095
14095
|
saveVideoToGallery: Bg,
|
|
14096
14096
|
scanNFC: qb,
|
|
14097
14097
|
scanQRCode: qy,
|
|
14098
|
-
selectPaymentMethod:
|
|
14098
|
+
selectPaymentMethod: $f,
|
|
14099
14099
|
sendDataToPreviousMiniApp: t_,
|
|
14100
14100
|
setAccessToken: A_,
|
|
14101
14101
|
setAndroidBottomNavigationBar: H_,
|
|
@@ -14117,8 +14117,8 @@ const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14117
14117
|
vibrate: Gg,
|
|
14118
14118
|
viewOAQr: Dg
|
|
14119
14119
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14120
|
-
var Ni, cc, p0 = Xr(
|
|
14121
|
-
(cc = (Ni = ce()) === null || Ni === void 0 ? void 0 : Ni.appEnv) != null && cc.isMp && (window.ZaloMiniAppSDK = {}, Object.assign(window.ZaloMiniAppSDK,
|
|
14120
|
+
var Ni, cc, p0 = Xr(ed, ["createOrder", "checkTransaction", "createOrderIAP", "selectPaymentMethod", "purchase"]);
|
|
14121
|
+
(cc = (Ni = ce()) === null || Ni === void 0 ? void 0 : Ni.appEnv) != null && cc.isMp && (window.ZaloMiniAppSDK = {}, Object.assign(window.ZaloMiniAppSDK, ed));
|
|
14122
14122
|
const h0 = Eo(`
|
|
14123
14123
|
query GetCampaign($id: String!, $zaloAppId: String) {
|
|
14124
14124
|
getCampaign(id: $id, zaloAppId: $zaloAppId) {
|
|
@@ -14178,19 +14178,23 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
14178
14178
|
() => e && i && a && o,
|
|
14179
14179
|
[e, i, a, o]
|
|
14180
14180
|
), p = ns(
|
|
14181
|
-
() => new
|
|
14181
|
+
() => new yl({
|
|
14182
14182
|
uri: n,
|
|
14183
|
-
cache: new
|
|
14184
|
-
link:
|
|
14185
|
-
|
|
14186
|
-
|
|
14187
|
-
|
|
14188
|
-
|
|
14189
|
-
|
|
14190
|
-
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
14183
|
+
cache: new vl(),
|
|
14184
|
+
link: Hc({
|
|
14185
|
+
uri: n
|
|
14186
|
+
}).concat(
|
|
14187
|
+
new En((N, M) => {
|
|
14188
|
+
console.log(`starting request for ${N.operationName}`), console.log(`forward is ${M}`);
|
|
14189
|
+
const U = window.__PROMOGAME_EXTERNAL_ACCESS_TOKEN;
|
|
14190
|
+
return U && N.setContext(({ headers: z }) => ({
|
|
14191
|
+
headers: {
|
|
14192
|
+
Authorization: `Bearer ${U}`,
|
|
14193
|
+
...z
|
|
14194
|
+
}
|
|
14195
|
+
})), M ? M(N) : null;
|
|
14196
|
+
})
|
|
14197
|
+
)
|
|
14194
14198
|
}),
|
|
14195
14199
|
[n]
|
|
14196
14200
|
), { data: y, error: g } = uv(h0, {
|
|
@@ -14242,7 +14246,7 @@ mutation UpdateParticipantInfo($email: String, $phone: String, $avatar: String,
|
|
|
14242
14246
|
u
|
|
14243
14247
|
]);
|
|
14244
14248
|
const O = (A = (I = y == null ? void 0 : y.getCampaign) == null ? void 0 : I.game) == null ? void 0 : A.gameLink;
|
|
14245
|
-
return console.log(O, "gameLink"), console.log(_, "sessionLoaded"), g && console.error(g), O && _ ? /* @__PURE__ */ es(
|
|
14249
|
+
return console.log(O, "gameLink"), console.log(_, "sessionLoaded"), g && console.error(g), O && _ ? /* @__PURE__ */ es(rd, { className: t, ref: f, gameLink: O, loadingComponent: r }) : /* @__PURE__ */ es(td, {});
|
|
14246
14250
|
}
|
|
14247
14251
|
);
|
|
14248
14252
|
export {
|