@sesamy/sesamy-js 1.19.2 → 1.19.4
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/sesamy-js.cjs +5 -5
- package/dist/sesamy-js.d.ts +7 -0
- package/dist/sesamy-js.iife.js +5 -5
- package/dist/sesamy-js.mjs +740 -737
- package/package.json +2 -1
package/dist/sesamy-js.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var oe = (e, t, r) =>
|
|
1
|
+
var Ol = Object.defineProperty;
|
|
2
|
+
var _l = (e, t, r) => t in e ? Ol(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var oe = (e, t, r) => _l(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ne = function(e) {
|
|
5
5
|
try {
|
|
6
6
|
return !!e();
|
|
7
7
|
} catch {
|
|
8
8
|
return !0;
|
|
9
9
|
}
|
|
10
|
-
},
|
|
10
|
+
}, Rl = ne, za = !Rl(function() {
|
|
11
11
|
var e = (function() {
|
|
12
12
|
}).bind();
|
|
13
13
|
return typeof e != "function" || e.hasOwnProperty("prototype");
|
|
14
|
-
}),
|
|
14
|
+
}), lc = za, fc = Function.prototype, fa = fc.call, Cl = lc && fc.bind.bind(fa, fa), K = lc ? Cl : function(e) {
|
|
15
15
|
return function() {
|
|
16
16
|
return fa.apply(e, arguments);
|
|
17
17
|
};
|
|
18
|
-
},
|
|
19
|
-
return jl(
|
|
20
|
-
},
|
|
18
|
+
}, dc = K, jl = dc({}.toString), Al = dc("".slice), Ha = function(e) {
|
|
19
|
+
return Al(jl(e), 8, -1);
|
|
20
|
+
}, Ll = K, xl = ne, Ul = Ha, dn = Object, Nl = Ll("".split), hc = xl(function() {
|
|
21
21
|
return !dn("z").propertyIsEnumerable(0);
|
|
22
22
|
}) ? function(e) {
|
|
23
|
-
return
|
|
23
|
+
return Ul(e) === "String" ? Nl(e, "") : dn(e);
|
|
24
24
|
} : dn, Ba = function(e) {
|
|
25
25
|
return e == null;
|
|
26
|
-
},
|
|
27
|
-
if (
|
|
26
|
+
}, Dl = Ba, Ml = TypeError, Yr = function(e) {
|
|
27
|
+
if (Dl(e)) throw new Ml("Can't call method on " + e);
|
|
28
28
|
return e;
|
|
29
|
-
},
|
|
30
|
-
return
|
|
29
|
+
}, Fl = hc, zl = Yr, nr = function(e) {
|
|
30
|
+
return Fl(zl(e));
|
|
31
31
|
}, Lt = function(e) {
|
|
32
32
|
return e && e.Math === Math && e;
|
|
33
33
|
}, Q = (
|
|
@@ -37,14 +37,14 @@ var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
37
37
|
/* @__PURE__ */ function() {
|
|
38
38
|
return this;
|
|
39
39
|
}() || Function("return this")()
|
|
40
|
-
),
|
|
40
|
+
), vc = { exports: {} }, Hl = !1, Li = Q, Bl = Object.defineProperty, Ka = function(e, t) {
|
|
41
41
|
try {
|
|
42
|
-
|
|
42
|
+
Bl(Li, e, { value: t, configurable: !0, writable: !0 });
|
|
43
43
|
} catch {
|
|
44
44
|
Li[e] = t;
|
|
45
45
|
}
|
|
46
46
|
return t;
|
|
47
|
-
},
|
|
47
|
+
}, Kl = Q, Gl = Ka, xi = "__core-js_shared__", Ui = vc.exports = Kl[xi] || Gl(xi, {});
|
|
48
48
|
(Ui.versions || (Ui.versions = [])).push({
|
|
49
49
|
version: "3.37.1",
|
|
50
50
|
mode: "global",
|
|
@@ -52,92 +52,92 @@ var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
52
52
|
license: "https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",
|
|
53
53
|
source: "https://github.com/zloirock/core-js"
|
|
54
54
|
});
|
|
55
|
-
var Ga =
|
|
55
|
+
var Ga = vc.exports, Ni = Ga, pc = function(e, t) {
|
|
56
56
|
return Ni[e] || (Ni[e] = t || {});
|
|
57
|
-
},
|
|
58
|
-
return Wl(
|
|
59
|
-
},
|
|
60
|
-
return Yl(
|
|
61
|
-
},
|
|
62
|
-
return "Symbol(" + (e === void 0 ? "" : e) + ")_" +
|
|
63
|
-
},
|
|
57
|
+
}, Wl = Yr, Vl = Object, Jr = function(e) {
|
|
58
|
+
return Vl(Wl(e));
|
|
59
|
+
}, Zl = K, Yl = Jr, Jl = Zl({}.hasOwnProperty), we = Object.hasOwn || function(t, r) {
|
|
60
|
+
return Jl(Yl(t), r);
|
|
61
|
+
}, Xl = K, ql = 0, Ql = Math.random(), ef = Xl(1 .toString), mc = function(e) {
|
|
62
|
+
return "Symbol(" + (e === void 0 ? "" : e) + ")_" + ef(++ql + Ql, 36);
|
|
63
|
+
}, tf = typeof navigator < "u" && String(navigator.userAgent) || "", gc = Q, hn = tf, Di = gc.process, Mi = gc.Deno, Fi = Di && Di.versions || Mi && Mi.version, zi = Fi && Fi.v8, me, Nr;
|
|
64
64
|
zi && (me = zi.split("."), Nr = me[0] > 0 && me[0] < 4 ? 1 : +(me[0] + me[1]));
|
|
65
65
|
!Nr && hn && (me = hn.match(/Edge\/(\d+)/), (!me || me[1] >= 74) && (me = hn.match(/Chrome\/(\d+)/), me && (Nr = +me[1])));
|
|
66
|
-
var
|
|
66
|
+
var rf = Nr, Hi = rf, nf = ne, af = Q, of = af.String, yc = !!Object.getOwnPropertySymbols && !nf(function() {
|
|
67
67
|
var e = Symbol("symbol detection");
|
|
68
|
-
return !
|
|
68
|
+
return !of(e) || !(Object(e) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
69
69
|
!Symbol.sham && Hi && Hi < 41;
|
|
70
|
-
}),
|
|
71
|
-
return Bi(vn, e) || (vn[e] =
|
|
70
|
+
}), sf = yc, wc = sf && !Symbol.sham && typeof Symbol.iterator == "symbol", cf = Q, uf = pc, Bi = we, lf = mc, ff = yc, df = wc, vt = cf.Symbol, vn = uf("wks"), hf = df ? vt.for || vt : vt && vt.withoutSetter || lf, de = function(e) {
|
|
71
|
+
return Bi(vn, e) || (vn[e] = ff && Bi(vt, e) ? vt[e] : hf("Symbol." + e)), vn[e];
|
|
72
72
|
}, pn = typeof document == "object" && document.all, Y = typeof pn > "u" && pn !== void 0 ? function(e) {
|
|
73
73
|
return typeof e == "function" || e === pn;
|
|
74
74
|
} : function(e) {
|
|
75
75
|
return typeof e == "function";
|
|
76
|
-
},
|
|
77
|
-
return typeof e == "object" ? e !== null :
|
|
78
|
-
},
|
|
79
|
-
if (
|
|
80
|
-
throw new mf(
|
|
81
|
-
},
|
|
76
|
+
}, vf = Y, je = function(e) {
|
|
77
|
+
return typeof e == "object" ? e !== null : vf(e);
|
|
78
|
+
}, pf = je, mf = String, gf = TypeError, He = function(e) {
|
|
79
|
+
if (pf(e)) return e;
|
|
80
|
+
throw new gf(mf(e) + " is not an object");
|
|
81
|
+
}, bc = {}, yf = ne, J = !yf(function() {
|
|
82
82
|
return Object.defineProperty({}, 1, { get: function() {
|
|
83
83
|
return 7;
|
|
84
84
|
} })[1] !== 7;
|
|
85
|
-
}),
|
|
85
|
+
}), wf = J, bf = ne, Sc = wf && bf(function() {
|
|
86
86
|
return Object.defineProperty(function() {
|
|
87
87
|
}, "prototype", {
|
|
88
88
|
value: 42,
|
|
89
89
|
writable: !1
|
|
90
90
|
}).prototype !== 42;
|
|
91
|
-
}), ke = {},
|
|
92
|
-
return
|
|
93
|
-
},
|
|
94
|
-
return Object.defineProperty(
|
|
91
|
+
}), ke = {}, Sf = Q, Ki = je, da = Sf.document, If = Ki(da) && Ki(da.createElement), Wa = function(e) {
|
|
92
|
+
return If ? da.createElement(e) : {};
|
|
93
|
+
}, $f = J, kf = ne, Pf = Wa, Ic = !$f && !kf(function() {
|
|
94
|
+
return Object.defineProperty(Pf("div"), "a", {
|
|
95
95
|
get: function() {
|
|
96
96
|
return 7;
|
|
97
97
|
}
|
|
98
98
|
}).a !== 7;
|
|
99
|
-
}),
|
|
99
|
+
}), Tf = za, fr = Function.prototype.call, Pe = Tf ? fr.bind(fr) : function() {
|
|
100
100
|
return fr.apply(fr, arguments);
|
|
101
|
-
}, mn = Q,
|
|
102
|
-
return
|
|
101
|
+
}, mn = Q, Ef = Y, Of = function(e) {
|
|
102
|
+
return Ef(e) ? e : void 0;
|
|
103
103
|
}, Ot = function(e, t) {
|
|
104
|
-
return arguments.length < 2 ?
|
|
105
|
-
},
|
|
104
|
+
return arguments.length < 2 ? Of(mn[e]) : mn[e] && mn[e][t];
|
|
105
|
+
}, _f = K, $c = _f({}.isPrototypeOf), Rf = Ot, Cf = Y, jf = $c, Af = wc, Lf = Object, kc = Af ? function(e) {
|
|
106
106
|
return typeof e == "symbol";
|
|
107
107
|
} : function(e) {
|
|
108
|
-
var t =
|
|
109
|
-
return
|
|
110
|
-
},
|
|
108
|
+
var t = Rf("Symbol");
|
|
109
|
+
return Cf(t) && jf(t.prototype, Lf(e));
|
|
110
|
+
}, xf = String, Pc = function(e) {
|
|
111
111
|
try {
|
|
112
|
-
return
|
|
112
|
+
return xf(e);
|
|
113
113
|
} catch {
|
|
114
114
|
return "Object";
|
|
115
115
|
}
|
|
116
|
-
},
|
|
117
|
-
if (
|
|
118
|
-
throw new Nf(
|
|
119
|
-
},
|
|
116
|
+
}, Uf = Y, Nf = Pc, Df = TypeError, Xr = function(e) {
|
|
117
|
+
if (Uf(e)) return e;
|
|
118
|
+
throw new Df(Nf(e) + " is not a function");
|
|
119
|
+
}, Mf = Xr, Ff = Ba, Va = function(e, t) {
|
|
120
120
|
var r = e[t];
|
|
121
|
-
return
|
|
122
|
-
}, gn = Pe, yn = Y, wn = je,
|
|
121
|
+
return Ff(r) ? void 0 : Mf(r);
|
|
122
|
+
}, gn = Pe, yn = Y, wn = je, zf = TypeError, Hf = function(e, t) {
|
|
123
123
|
var r, n;
|
|
124
124
|
if (t === "string" && yn(r = e.toString) && !wn(n = gn(r, e)) || yn(r = e.valueOf) && !wn(n = gn(r, e)) || t !== "string" && yn(r = e.toString) && !wn(n = gn(r, e))) return n;
|
|
125
|
-
throw new
|
|
126
|
-
},
|
|
125
|
+
throw new zf("Can't convert object to primitive value");
|
|
126
|
+
}, Bf = Pe, Gi = je, Wi = kc, Kf = Va, Gf = Hf, Wf = de, Vf = TypeError, Zf = Wf("toPrimitive"), Yf = function(e, t) {
|
|
127
127
|
if (!Gi(e) || Wi(e)) return e;
|
|
128
|
-
var r =
|
|
128
|
+
var r = Kf(e, Zf), n;
|
|
129
129
|
if (r) {
|
|
130
|
-
if (t === void 0 && (t = "default"), n =
|
|
131
|
-
throw new
|
|
132
|
-
}
|
|
133
|
-
return t === void 0 && (t = "number"),
|
|
134
|
-
},
|
|
135
|
-
var t =
|
|
136
|
-
return
|
|
137
|
-
},
|
|
138
|
-
ke.f =
|
|
130
|
+
if (t === void 0 && (t = "default"), n = Bf(r, e, t), !Gi(n) || Wi(n)) return n;
|
|
131
|
+
throw new Vf("Can't convert object to primitive value");
|
|
132
|
+
}
|
|
133
|
+
return t === void 0 && (t = "number"), Gf(e, t);
|
|
134
|
+
}, Jf = Yf, Xf = kc, Tc = function(e) {
|
|
135
|
+
var t = Jf(e, "string");
|
|
136
|
+
return Xf(t) ? t : t + "";
|
|
137
|
+
}, qf = J, Qf = Ic, ed = Sc, dr = He, Vi = Tc, td = TypeError, bn = Object.defineProperty, rd = Object.getOwnPropertyDescriptor, Sn = "enumerable", In = "configurable", $n = "writable";
|
|
138
|
+
ke.f = qf ? ed ? function(t, r, n) {
|
|
139
139
|
if (dr(t), r = Vi(r), dr(n), typeof t == "function" && r === "prototype" && "value" in n && $n in n && !n[$n]) {
|
|
140
|
-
var a =
|
|
140
|
+
var a = rd(t, r);
|
|
141
141
|
a && a[$n] && (t[r] = n.value, n = {
|
|
142
142
|
configurable: In in n ? n[In] : a[In],
|
|
143
143
|
enumerable: Sn in n ? n[Sn] : a[Sn],
|
|
@@ -146,32 +146,32 @@ ke.f = Xf ? Qf ? function(t, r, n) {
|
|
|
146
146
|
}
|
|
147
147
|
return bn(t, r, n);
|
|
148
148
|
} : bn : function(t, r, n) {
|
|
149
|
-
if (dr(t), r = Vi(r), dr(n),
|
|
149
|
+
if (dr(t), r = Vi(r), dr(n), Qf) try {
|
|
150
150
|
return bn(t, r, n);
|
|
151
151
|
} catch {
|
|
152
152
|
}
|
|
153
|
-
if ("get" in n || "set" in n) throw new
|
|
153
|
+
if ("get" in n || "set" in n) throw new td("Accessors not supported");
|
|
154
154
|
return "value" in n && (t[r] = n.value), t;
|
|
155
155
|
};
|
|
156
|
-
var
|
|
156
|
+
var nd = Math.ceil, ad = Math.floor, id = Math.trunc || function(t) {
|
|
157
157
|
var r = +t;
|
|
158
|
-
return (r > 0 ?
|
|
159
|
-
},
|
|
158
|
+
return (r > 0 ? ad : nd)(r);
|
|
159
|
+
}, od = id, Za = function(e) {
|
|
160
160
|
var t = +e;
|
|
161
|
-
return t !== t || t === 0 ? 0 :
|
|
162
|
-
},
|
|
163
|
-
var r =
|
|
164
|
-
return r < 0 ?
|
|
165
|
-
},
|
|
166
|
-
var t =
|
|
167
|
-
return t > 0 ?
|
|
168
|
-
},
|
|
169
|
-
return
|
|
170
|
-
},
|
|
161
|
+
return t !== t || t === 0 ? 0 : od(t);
|
|
162
|
+
}, sd = Za, cd = Math.max, ud = Math.min, ld = function(e, t) {
|
|
163
|
+
var r = sd(e);
|
|
164
|
+
return r < 0 ? cd(r + t, 0) : ud(r, t);
|
|
165
|
+
}, fd = Za, dd = Math.min, hd = function(e) {
|
|
166
|
+
var t = fd(e);
|
|
167
|
+
return t > 0 ? dd(t, 9007199254740991) : 0;
|
|
168
|
+
}, vd = hd, Ec = function(e) {
|
|
169
|
+
return vd(e.length);
|
|
170
|
+
}, pd = nr, md = ld, gd = Ec, Zi = function(e) {
|
|
171
171
|
return function(t, r, n) {
|
|
172
|
-
var a =
|
|
172
|
+
var a = pd(t), i = gd(a);
|
|
173
173
|
if (i === 0) return !e && -1;
|
|
174
|
-
var o =
|
|
174
|
+
var o = md(n, i), c;
|
|
175
175
|
if (e && r !== r) {
|
|
176
176
|
for (; i > o; )
|
|
177
177
|
if (c = a[o++], c !== c) return !0;
|
|
@@ -179,17 +179,17 @@ var rd = Math.ceil, nd = Math.floor, ad = Math.trunc || function(t) {
|
|
|
179
179
|
if ((e || o in a) && a[o] === r) return e || o || 0;
|
|
180
180
|
return !e && -1;
|
|
181
181
|
};
|
|
182
|
-
},
|
|
182
|
+
}, yd = {
|
|
183
183
|
// `Array.prototype.includes` method
|
|
184
184
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
185
185
|
includes: Zi(!0),
|
|
186
186
|
// `Array.prototype.indexOf` method
|
|
187
187
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
188
188
|
indexOf: Zi(!1)
|
|
189
|
-
}, Ya = {},
|
|
190
|
-
var r =
|
|
191
|
-
for (i in r) !kn(
|
|
192
|
-
for (; t.length > n; ) kn(r, i = t[n++]) && (~
|
|
189
|
+
}, Ya = {}, wd = K, kn = we, bd = nr, Sd = yd.indexOf, Id = Ya, Yi = wd([].push), Oc = function(e, t) {
|
|
190
|
+
var r = bd(e), n = 0, a = [], i;
|
|
191
|
+
for (i in r) !kn(Id, i) && kn(r, i) && Yi(a, i);
|
|
192
|
+
for (; t.length > n; ) kn(r, i = t[n++]) && (~Sd(a, i) || Yi(a, i));
|
|
193
193
|
return a;
|
|
194
194
|
}, Ja = [
|
|
195
195
|
"constructor",
|
|
@@ -199,69 +199,69 @@ var rd = Math.ceil, nd = Math.floor, ad = Math.trunc || function(t) {
|
|
|
199
199
|
"toLocaleString",
|
|
200
200
|
"toString",
|
|
201
201
|
"valueOf"
|
|
202
|
-
],
|
|
203
|
-
return
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
for (var n =
|
|
202
|
+
], $d = Oc, kd = Ja, _c = Object.keys || function(t) {
|
|
203
|
+
return $d(t, kd);
|
|
204
|
+
}, Pd = J, Td = Sc, Ed = ke, Od = He, _d = nr, Rd = _c;
|
|
205
|
+
bc.f = Pd && !Td ? Object.defineProperties : function(t, r) {
|
|
206
|
+
Od(t);
|
|
207
|
+
for (var n = _d(r), a = Rd(r), i = a.length, o = 0, c; i > o; ) Ed.f(t, c = a[o++], n[c]);
|
|
208
208
|
return t;
|
|
209
209
|
};
|
|
210
|
-
var
|
|
211
|
-
return Ji[e] || (Ji[e] =
|
|
212
|
-
},
|
|
213
|
-
},
|
|
210
|
+
var Cd = Ot, jd = Cd("document", "documentElement"), Ad = pc, Ld = mc, Ji = Ad("keys"), Xa = function(e) {
|
|
211
|
+
return Ji[e] || (Ji[e] = Ld(e));
|
|
212
|
+
}, xd = He, Ud = bc, Xi = Ja, Nd = Ya, Dd = jd, Md = Wa, Fd = Xa, qi = ">", Qi = "<", ha = "prototype", va = "script", Rc = Fd("IE_PROTO"), Pn = function() {
|
|
213
|
+
}, Cc = function(e) {
|
|
214
214
|
return Qi + va + qi + e + Qi + "/" + va + qi;
|
|
215
215
|
}, eo = function(e) {
|
|
216
|
-
e.write(
|
|
216
|
+
e.write(Cc("")), e.close();
|
|
217
217
|
var t = e.parentWindow.Object;
|
|
218
218
|
return e = null, t;
|
|
219
|
-
},
|
|
220
|
-
var e =
|
|
221
|
-
return e.style.display = "none",
|
|
219
|
+
}, zd = function() {
|
|
220
|
+
var e = Md("iframe"), t = "java" + va + ":", r;
|
|
221
|
+
return e.style.display = "none", Dd.appendChild(e), e.src = String(t), r = e.contentWindow.document, r.open(), r.write(Cc("document.F=Object")), r.close(), r.F;
|
|
222
222
|
}, hr, Cr = function() {
|
|
223
223
|
try {
|
|
224
224
|
hr = new ActiveXObject("htmlfile");
|
|
225
225
|
} catch {
|
|
226
226
|
}
|
|
227
|
-
Cr = typeof document < "u" ? document.domain && hr ? eo(hr) :
|
|
227
|
+
Cr = typeof document < "u" ? document.domain && hr ? eo(hr) : zd() : eo(hr);
|
|
228
228
|
for (var e = Xi.length; e--; ) delete Cr[ha][Xi[e]];
|
|
229
229
|
return Cr();
|
|
230
230
|
};
|
|
231
|
-
|
|
231
|
+
Nd[Rc] = !0;
|
|
232
232
|
var qa = Object.create || function(t, r) {
|
|
233
233
|
var n;
|
|
234
|
-
return t !== null ? (Pn[ha] =
|
|
235
|
-
},
|
|
236
|
-
ma[pa] === void 0 &&
|
|
234
|
+
return t !== null ? (Pn[ha] = xd(t), n = new Pn(), Pn[ha] = null, n[Rc] = t) : n = Cr(), r === void 0 ? n : Ud.f(n, r);
|
|
235
|
+
}, Hd = de, Bd = qa, Kd = ke.f, pa = Hd("unscopables"), ma = Array.prototype;
|
|
236
|
+
ma[pa] === void 0 && Kd(ma, pa, {
|
|
237
237
|
configurable: !0,
|
|
238
|
-
value:
|
|
238
|
+
value: Bd(null)
|
|
239
239
|
});
|
|
240
|
-
var
|
|
240
|
+
var Gd = function(e) {
|
|
241
241
|
ma[pa][e] = !0;
|
|
242
|
-
}, ar = {},
|
|
242
|
+
}, ar = {}, Wd = Q, Vd = Y, to = Wd.WeakMap, Zd = Vd(to) && /native code/.test(String(to)), ir = function(e, t) {
|
|
243
243
|
return {
|
|
244
244
|
enumerable: !(e & 1),
|
|
245
245
|
configurable: !(e & 2),
|
|
246
246
|
writable: !(e & 4),
|
|
247
247
|
value: t
|
|
248
248
|
};
|
|
249
|
-
},
|
|
250
|
-
return
|
|
249
|
+
}, Yd = J, Jd = ke, Xd = ir, qr = Yd ? function(e, t, r) {
|
|
250
|
+
return Jd.f(e, t, Xd(1, r));
|
|
251
251
|
} : function(e, t, r) {
|
|
252
252
|
return e[t] = r, e;
|
|
253
|
-
},
|
|
253
|
+
}, qd = Zd, jc = Q, Qd = je, eh = qr, Tn = we, En = Ga, th = Xa, rh = Ya, ro = "Object already initialized", ga = jc.TypeError, nh = jc.WeakMap, Dr, tr, Mr, ah = function(e) {
|
|
254
254
|
return Mr(e) ? tr(e) : Dr(e, {});
|
|
255
|
-
},
|
|
255
|
+
}, ih = function(e) {
|
|
256
256
|
return function(t) {
|
|
257
257
|
var r;
|
|
258
|
-
if (!
|
|
258
|
+
if (!Qd(t) || (r = tr(t)).type !== e)
|
|
259
259
|
throw new ga("Incompatible receiver, " + e + " required");
|
|
260
260
|
return r;
|
|
261
261
|
};
|
|
262
262
|
};
|
|
263
|
-
if (
|
|
264
|
-
var be = En.state || (En.state = new
|
|
263
|
+
if (qd || En.state) {
|
|
264
|
+
var be = En.state || (En.state = new nh());
|
|
265
265
|
be.get = be.get, be.has = be.has, be.set = be.set, Dr = function(e, t) {
|
|
266
266
|
if (be.has(e)) throw new ga(ro);
|
|
267
267
|
return t.facade = e, be.set(e, t), t;
|
|
@@ -271,10 +271,10 @@ if (Xd || En.state) {
|
|
|
271
271
|
return be.has(e);
|
|
272
272
|
};
|
|
273
273
|
} else {
|
|
274
|
-
var ot =
|
|
275
|
-
|
|
274
|
+
var ot = th("state");
|
|
275
|
+
rh[ot] = !0, Dr = function(e, t) {
|
|
276
276
|
if (Tn(e, ot)) throw new ga(ro);
|
|
277
|
-
return t.facade = e,
|
|
277
|
+
return t.facade = e, eh(e, ot, t), t;
|
|
278
278
|
}, tr = function(e) {
|
|
279
279
|
return Tn(e, ot) ? e[ot] : {};
|
|
280
280
|
}, Mr = function(e) {
|
|
@@ -285,56 +285,56 @@ var or = {
|
|
|
285
285
|
set: Dr,
|
|
286
286
|
get: tr,
|
|
287
287
|
has: Mr,
|
|
288
|
-
enforce:
|
|
289
|
-
getterFor:
|
|
290
|
-
}, Qa = {}, ei = {},
|
|
291
|
-
ei.f =
|
|
292
|
-
var r =
|
|
288
|
+
enforce: ah,
|
|
289
|
+
getterFor: ih
|
|
290
|
+
}, Qa = {}, ei = {}, Ac = {}.propertyIsEnumerable, Lc = Object.getOwnPropertyDescriptor, oh = Lc && !Ac.call({ 1: 2 }, 1);
|
|
291
|
+
ei.f = oh ? function(t) {
|
|
292
|
+
var r = Lc(this, t);
|
|
293
293
|
return !!r && r.enumerable;
|
|
294
|
-
} :
|
|
295
|
-
var
|
|
296
|
-
Qa.f =
|
|
297
|
-
if (t =
|
|
294
|
+
} : Ac;
|
|
295
|
+
var sh = J, ch = Pe, uh = ei, lh = ir, fh = nr, dh = Tc, hh = we, vh = Ic, no = Object.getOwnPropertyDescriptor;
|
|
296
|
+
Qa.f = sh ? no : function(t, r) {
|
|
297
|
+
if (t = fh(t), r = dh(r), vh) try {
|
|
298
298
|
return no(t, r);
|
|
299
299
|
} catch {
|
|
300
300
|
}
|
|
301
|
-
if (
|
|
301
|
+
if (hh(t, r)) return lh(!ch(uh.f, t, r), t[r]);
|
|
302
302
|
};
|
|
303
|
-
var
|
|
304
|
-
}).name === "something",
|
|
303
|
+
var xc = { exports: {} }, ya = J, ph = we, Uc = Function.prototype, mh = ya && Object.getOwnPropertyDescriptor, ti = ph(Uc, "name"), gh = ti && (function() {
|
|
304
|
+
}).name === "something", yh = ti && (!ya || ya && mh(Uc, "name").configurable), Nc = {
|
|
305
305
|
EXISTS: ti,
|
|
306
|
-
PROPER:
|
|
307
|
-
CONFIGURABLE:
|
|
308
|
-
},
|
|
309
|
-
|
|
310
|
-
return
|
|
306
|
+
PROPER: gh,
|
|
307
|
+
CONFIGURABLE: yh
|
|
308
|
+
}, wh = K, bh = Y, wa = Ga, Sh = wh(Function.toString);
|
|
309
|
+
bh(wa.inspectSource) || (wa.inspectSource = function(e) {
|
|
310
|
+
return Sh(e);
|
|
311
311
|
});
|
|
312
|
-
var
|
|
312
|
+
var Dc = wa.inspectSource, ri = K, Ih = ne, $h = Y, vr = we, ba = J, kh = Nc.CONFIGURABLE, Ph = Dc, Mc = or, Th = Mc.enforce, Eh = Mc.get, ao = String, jr = Object.defineProperty, Oh = ri("".slice), _h = ri("".replace), Rh = ri([].join), Ch = ba && !Ih(function() {
|
|
313
313
|
return jr(function() {
|
|
314
314
|
}, "length", { value: 8 }).length !== 8;
|
|
315
|
-
}),
|
|
316
|
-
|
|
315
|
+
}), jh = String(String).split("String"), Ah = xc.exports = function(e, t, r) {
|
|
316
|
+
Oh(ao(t), 0, 7) === "Symbol(" && (t = "[" + _h(ao(t), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), r && r.getter && (t = "get " + t), r && r.setter && (t = "set " + t), (!vr(e, "name") || kh && e.name !== t) && (ba ? jr(e, "name", { value: t, configurable: !0 }) : e.name = t), Ch && r && vr(r, "arity") && e.length !== r.arity && jr(e, "length", { value: r.arity });
|
|
317
317
|
try {
|
|
318
318
|
r && vr(r, "constructor") && r.constructor ? ba && jr(e, "prototype", { writable: !1 }) : e.prototype && (e.prototype = void 0);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
|
-
var n =
|
|
322
|
-
return vr(n, "source") || (n.source =
|
|
321
|
+
var n = Th(e);
|
|
322
|
+
return vr(n, "source") || (n.source = Rh(jh, typeof t == "string" ? t : "")), e;
|
|
323
323
|
};
|
|
324
|
-
Function.prototype.toString =
|
|
325
|
-
return
|
|
324
|
+
Function.prototype.toString = Ah(function() {
|
|
325
|
+
return $h(this) && Eh(this).source || Ph(this);
|
|
326
326
|
}, "toString");
|
|
327
|
-
var
|
|
327
|
+
var Fc = xc.exports, Lh = Y, xh = ke, Uh = Fc, Nh = Ka, Be = function(e, t, r, n) {
|
|
328
328
|
n || (n = {});
|
|
329
329
|
var a = n.enumerable, i = n.name !== void 0 ? n.name : t;
|
|
330
|
-
if (
|
|
331
|
-
a ? e[t] = r :
|
|
330
|
+
if (Lh(r) && Uh(r, i, n), n.global)
|
|
331
|
+
a ? e[t] = r : Nh(t, r);
|
|
332
332
|
else {
|
|
333
333
|
try {
|
|
334
334
|
n.unsafe ? e[t] && (a = !0) : delete e[t];
|
|
335
335
|
} catch {
|
|
336
336
|
}
|
|
337
|
-
a ? e[t] = r :
|
|
337
|
+
a ? e[t] = r : xh.f(e, t, {
|
|
338
338
|
value: r,
|
|
339
339
|
enumerable: !1,
|
|
340
340
|
configurable: !n.nonConfigurable,
|
|
@@ -342,86 +342,86 @@ var Mc = Lc.exports, Ah = Y, Lh = ke, xh = Mc, Uh = Ka, Be = function(e, t, r, n
|
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
344
|
return e;
|
|
345
|
-
},
|
|
346
|
-
|
|
347
|
-
return
|
|
345
|
+
}, zc = {}, Dh = Oc, Mh = Ja, Fh = Mh.concat("length", "prototype");
|
|
346
|
+
zc.f = Object.getOwnPropertyNames || function(t) {
|
|
347
|
+
return Dh(t, Fh);
|
|
348
348
|
};
|
|
349
349
|
var ni = {};
|
|
350
350
|
ni.f = Object.getOwnPropertySymbols;
|
|
351
|
-
var
|
|
352
|
-
var r =
|
|
353
|
-
return n ?
|
|
354
|
-
}, io = we,
|
|
355
|
-
for (var n =
|
|
351
|
+
var zh = Ot, Hh = K, Bh = zc, Kh = ni, Gh = He, Wh = Hh([].concat), Vh = zh("Reflect", "ownKeys") || function(t) {
|
|
352
|
+
var r = Bh.f(Gh(t)), n = Kh.f;
|
|
353
|
+
return n ? Wh(r, n(t)) : r;
|
|
354
|
+
}, io = we, Zh = Vh, Yh = Qa, Jh = ke, Xh = function(e, t, r) {
|
|
355
|
+
for (var n = Zh(t), a = Jh.f, i = Yh.f, o = 0; o < n.length; o++) {
|
|
356
356
|
var c = n[o];
|
|
357
357
|
!io(e, c) && !(r && io(r, c)) && a(e, c, i(t, c));
|
|
358
358
|
}
|
|
359
|
-
},
|
|
360
|
-
var r = tv
|
|
361
|
-
return r ===
|
|
362
|
-
},
|
|
363
|
-
return String(e).replace(
|
|
364
|
-
},
|
|
359
|
+
}, qh = ne, Qh = Y, ev = /#|\.prototype\./, sr = function(e, t) {
|
|
360
|
+
var r = rv[tv(e)];
|
|
361
|
+
return r === av ? !0 : r === nv ? !1 : Qh(t) ? qh(t) : !!t;
|
|
362
|
+
}, tv = sr.normalize = function(e) {
|
|
363
|
+
return String(e).replace(ev, ".").toLowerCase();
|
|
364
|
+
}, rv = sr.data = {}, nv = sr.NATIVE = "N", av = sr.POLYFILL = "P", iv = sr, pr = Q, ov = Qa.f, sv = qr, cv = Be, uv = Ka, lv = Xh, fv = iv, _t = function(e, t) {
|
|
365
365
|
var r = e.target, n = e.global, a = e.stat, i, o, c, l, f, u;
|
|
366
|
-
if (n ? o = pr : a ? o = pr[r] ||
|
|
367
|
-
if (f = t[c], e.dontCallGetSet ? (u =
|
|
366
|
+
if (n ? o = pr : a ? o = pr[r] || uv(r, {}) : o = pr[r] && pr[r].prototype, o) for (c in t) {
|
|
367
|
+
if (f = t[c], e.dontCallGetSet ? (u = ov(o, c), l = u && u.value) : l = o[c], i = fv(n ? c : r + (a ? "." : "#") + c, e.forced), !i && l !== void 0) {
|
|
368
368
|
if (typeof f == typeof l) continue;
|
|
369
|
-
|
|
369
|
+
lv(f, l);
|
|
370
370
|
}
|
|
371
|
-
(e.sham || l && l.sham) &&
|
|
371
|
+
(e.sham || l && l.sham) && sv(f, "sham", !0), cv(o, c, f, e);
|
|
372
372
|
}
|
|
373
|
-
},
|
|
373
|
+
}, dv = ne, hv = !dv(function() {
|
|
374
374
|
function e() {
|
|
375
375
|
}
|
|
376
376
|
return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
|
|
377
|
-
}),
|
|
378
|
-
var t =
|
|
379
|
-
if (
|
|
377
|
+
}), vv = we, pv = Y, mv = Jr, gv = Xa, yv = hv, oo = gv("IE_PROTO"), Sa = Object, wv = Sa.prototype, Hc = yv ? Sa.getPrototypeOf : function(e) {
|
|
378
|
+
var t = mv(e);
|
|
379
|
+
if (vv(t, oo)) return t[oo];
|
|
380
380
|
var r = t.constructor;
|
|
381
|
-
return
|
|
382
|
-
},
|
|
383
|
-
[].keys && (_n = [].keys(), "next" in _n ? (On = so(so(_n)), On !== Object.prototype && (tt = On)) :
|
|
384
|
-
var
|
|
381
|
+
return pv(r) && t instanceof r ? r.prototype : t instanceof Sa ? wv : null;
|
|
382
|
+
}, bv = ne, Sv = Y, Iv = je, so = Hc, $v = Be, kv = de, Ia = kv("iterator"), Bc = !1, tt, On, _n;
|
|
383
|
+
[].keys && (_n = [].keys(), "next" in _n ? (On = so(so(_n)), On !== Object.prototype && (tt = On)) : Bc = !0);
|
|
384
|
+
var Pv = !Iv(tt) || bv(function() {
|
|
385
385
|
var e = {};
|
|
386
386
|
return tt[Ia].call(e) !== e;
|
|
387
387
|
});
|
|
388
|
-
|
|
389
|
-
|
|
388
|
+
Pv && (tt = {});
|
|
389
|
+
Sv(tt[Ia]) || $v(tt, Ia, function() {
|
|
390
390
|
return this;
|
|
391
391
|
});
|
|
392
|
-
var
|
|
392
|
+
var Kc = {
|
|
393
393
|
IteratorPrototype: tt,
|
|
394
|
-
BUGGY_SAFARI_ITERATORS:
|
|
395
|
-
},
|
|
396
|
-
e && !r && (e = e.prototype), e && !
|
|
397
|
-
},
|
|
394
|
+
BUGGY_SAFARI_ITERATORS: Bc
|
|
395
|
+
}, Tv = ke.f, Ev = we, Ov = de, co = Ov("toStringTag"), cr = function(e, t, r) {
|
|
396
|
+
e && !r && (e = e.prototype), e && !Ev(e, co) && Tv(e, co, { configurable: !0, value: t });
|
|
397
|
+
}, _v = Kc.IteratorPrototype, Rv = qa, Cv = ir, jv = cr, Av = ar, Lv = function() {
|
|
398
398
|
return this;
|
|
399
|
-
},
|
|
399
|
+
}, Gc = function(e, t, r, n) {
|
|
400
400
|
var a = t + " Iterator";
|
|
401
|
-
return e.prototype = _v
|
|
402
|
-
},
|
|
401
|
+
return e.prototype = Rv(_v, { next: Cv(+!n, r) }), jv(e, a, !1), Av[a] = Lv, e;
|
|
402
|
+
}, xv = K, Uv = Xr, Nv = function(e, t, r) {
|
|
403
403
|
try {
|
|
404
|
-
return
|
|
404
|
+
return xv(Uv(Object.getOwnPropertyDescriptor(e, t)[r]));
|
|
405
405
|
} catch {
|
|
406
406
|
}
|
|
407
|
-
},
|
|
408
|
-
return
|
|
409
|
-
},
|
|
410
|
-
if (
|
|
411
|
-
throw new
|
|
412
|
-
},
|
|
407
|
+
}, Dv = je, Mv = function(e) {
|
|
408
|
+
return Dv(e) || e === null;
|
|
409
|
+
}, Fv = Mv, zv = String, Hv = TypeError, Bv = function(e) {
|
|
410
|
+
if (Fv(e)) return e;
|
|
411
|
+
throw new Hv("Can't set " + zv(e) + " as a prototype");
|
|
412
|
+
}, Kv = Nv, Gv = je, Wv = Yr, Vv = Bv, Zv = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
413
413
|
var e = !1, t = {}, r;
|
|
414
414
|
try {
|
|
415
|
-
r =
|
|
415
|
+
r = Kv(Object.prototype, "__proto__", "set"), r(t, []), e = t instanceof Array;
|
|
416
416
|
} catch {
|
|
417
417
|
}
|
|
418
418
|
return function(a, i) {
|
|
419
|
-
return
|
|
419
|
+
return Wv(a), Vv(i), Gv(a) && (e ? r(a, i) : a.__proto__ = i), a;
|
|
420
420
|
};
|
|
421
|
-
}() : void 0),
|
|
421
|
+
}() : void 0), Yv = _t, Jv = Pe, Wc = Nc, Xv = Y, qv = Gc, uo = Hc, lo = Zv, Qv = cr, ep = qr, Rn = Be, tp = de, rp = ar, Vc = Kc, np = Wc.PROPER, ap = Wc.CONFIGURABLE, fo = Vc.IteratorPrototype, mr = Vc.BUGGY_SAFARI_ITERATORS, xt = tp("iterator"), ho = "keys", Ut = "values", vo = "entries", ip = function() {
|
|
422
422
|
return this;
|
|
423
|
-
},
|
|
424
|
-
|
|
423
|
+
}, Zc = function(e, t, r, n, a, i, o) {
|
|
424
|
+
qv(r, t, n);
|
|
425
425
|
var c = function($) {
|
|
426
426
|
if ($ === a && d) return d;
|
|
427
427
|
if (!mr && $ && $ in u) return u[$];
|
|
@@ -443,8 +443,8 @@ var Bc = {
|
|
|
443
443
|
return new r(this);
|
|
444
444
|
};
|
|
445
445
|
}, l = t + " Iterator", f = !1, u = e.prototype, s = u[xt] || u["@@iterator"] || a && u[a], d = !mr && s || c(a), h = t === "Array" && u.entries || s, m, S, g;
|
|
446
|
-
if (h && (m = uo(h.call(new e())), m !== Object.prototype && m.next && (uo(m) !== fo && (lo ? lo(m, fo) :
|
|
447
|
-
return
|
|
446
|
+
if (h && (m = uo(h.call(new e())), m !== Object.prototype && m.next && (uo(m) !== fo && (lo ? lo(m, fo) : Xv(m[xt]) || Rn(m, xt, ip)), Qv(m, l, !0))), np && a === Ut && s && s.name !== Ut && (ap ? ep(u, "name", Ut) : (f = !0, d = function() {
|
|
447
|
+
return Jv(s, this);
|
|
448
448
|
})), a)
|
|
449
449
|
if (S = {
|
|
450
450
|
values: c(Ut),
|
|
@@ -452,14 +452,14 @@ var Bc = {
|
|
|
452
452
|
entries: c(vo)
|
|
453
453
|
}, o) for (g in S)
|
|
454
454
|
(mr || f || !(g in u)) && Rn(u, g, S[g]);
|
|
455
|
-
else
|
|
456
|
-
return u[xt] !== d && Rn(u, xt, d, { name: a }),
|
|
455
|
+
else Yv({ target: t, proto: !0, forced: mr || f }, S);
|
|
456
|
+
return u[xt] !== d && Rn(u, xt, d, { name: a }), rp[t] = d, S;
|
|
457
457
|
}, ai = function(e, t) {
|
|
458
458
|
return { value: e, done: t };
|
|
459
|
-
},
|
|
460
|
-
|
|
461
|
-
type:
|
|
462
|
-
target:
|
|
459
|
+
}, op = nr, ii = Gd, po = ar, Yc = or, sp = ke.f, cp = Zc, gr = ai, up = J, Jc = "Array Iterator", lp = Yc.set, fp = Yc.getterFor(Jc), dp = cp(Array, "Array", function(e, t) {
|
|
460
|
+
lp(this, {
|
|
461
|
+
type: Jc,
|
|
462
|
+
target: op(e),
|
|
463
463
|
// target
|
|
464
464
|
index: 0,
|
|
465
465
|
// next index
|
|
@@ -467,7 +467,7 @@ var Bc = {
|
|
|
467
467
|
// kind
|
|
468
468
|
});
|
|
469
469
|
}, function() {
|
|
470
|
-
var e =
|
|
470
|
+
var e = fp(this), t = e.target, r = e.index++;
|
|
471
471
|
if (!t || r >= t.length)
|
|
472
472
|
return e.target = void 0, gr(void 0, !0);
|
|
473
473
|
switch (e.kind) {
|
|
@@ -481,58 +481,58 @@ var Bc = {
|
|
|
481
481
|
ii("keys");
|
|
482
482
|
ii("values");
|
|
483
483
|
ii("entries");
|
|
484
|
-
if (
|
|
485
|
-
|
|
484
|
+
if (up && mo.name !== "values") try {
|
|
485
|
+
sp(mo, "name", { value: "values" });
|
|
486
486
|
} catch {
|
|
487
487
|
}
|
|
488
|
-
var go = Q,
|
|
489
|
-
if (!
|
|
490
|
-
var t =
|
|
488
|
+
var go = Q, hp = J, vp = Object.getOwnPropertyDescriptor, pp = function(e) {
|
|
489
|
+
if (!hp) return go[e];
|
|
490
|
+
var t = vp(go, e);
|
|
491
491
|
return t && t.value;
|
|
492
|
-
},
|
|
492
|
+
}, mp = ne, gp = de, yp = J, yo = Hl, wp = gp("iterator"), Qr = !mp(function() {
|
|
493
493
|
var e = new URL("b?a=1&b=2&c=3", "http://a"), t = e.searchParams, r = new URLSearchParams("a=1&a=2&b=3"), n = "";
|
|
494
494
|
return e.pathname = "c%20d", t.forEach(function(a, i) {
|
|
495
495
|
t.delete("b"), n += i + a;
|
|
496
|
-
}), r.delete("a", 2), r.delete("b", void 0), yo && (!e.toJSON || !r.has("a", 1) || r.has("a", 2) || !r.has("a", void 0) || r.has("b")) || !t.size && (yo || !
|
|
497
|
-
}), wo =
|
|
498
|
-
return r.get && wo(r.get, t, { getter: !0 }), r.set && wo(r.set, t, { setter: !0 }),
|
|
499
|
-
},
|
|
500
|
-
for (var n in t)
|
|
496
|
+
}), r.delete("a", 2), r.delete("b", void 0), yo && (!e.toJSON || !r.has("a", 1) || r.has("a", 2) || !r.has("a", void 0) || r.has("b")) || !t.size && (yo || !yp) || !t.sort || e.href !== "http://a/c%20d?a=1&c=3" || t.get("c") !== "3" || String(new URLSearchParams("?a=1")) !== "a=1" || !t[wp] || new URL("https://a@b").username !== "a" || new URLSearchParams(new URLSearchParams("a=b")).get("a") !== "b" || new URL("http://тест").host !== "xn--e1aybc" || new URL("http://a#б").hash !== "#%D0%B1" || n !== "a1c3" || new URL("http://x", void 0).host !== "x";
|
|
497
|
+
}), wo = Fc, bp = ke, oi = function(e, t, r) {
|
|
498
|
+
return r.get && wo(r.get, t, { getter: !0 }), r.set && wo(r.set, t, { setter: !0 }), bp.f(e, t, r);
|
|
499
|
+
}, Sp = Be, Ip = function(e, t, r) {
|
|
500
|
+
for (var n in t) Sp(e, n, t[n], r);
|
|
501
501
|
return e;
|
|
502
|
-
},
|
|
503
|
-
if (
|
|
504
|
-
throw new
|
|
505
|
-
},
|
|
506
|
-
if (
|
|
507
|
-
}, bo =
|
|
508
|
-
return
|
|
502
|
+
}, $p = $c, kp = TypeError, Xc = function(e, t) {
|
|
503
|
+
if ($p(t, e)) return e;
|
|
504
|
+
throw new kp("Incorrect invocation");
|
|
505
|
+
}, Pp = Ha, Tp = K, Ep = function(e) {
|
|
506
|
+
if (Pp(e) === "Function") return Tp(e);
|
|
507
|
+
}, bo = Ep, Op = Xr, _p = za, Rp = bo(bo.bind), si = function(e, t) {
|
|
508
|
+
return Op(e), t === void 0 ? e : _p ? Rp(e, t) : function() {
|
|
509
509
|
return e.apply(t, arguments);
|
|
510
510
|
};
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
var
|
|
511
|
+
}, Cp = de, jp = Cp("toStringTag"), qc = {};
|
|
512
|
+
qc[jp] = "z";
|
|
513
|
+
var Ap = String(qc) === "[object z]", Lp = Ap, xp = Y, Ar = Ha, Up = de, Np = Up("toStringTag"), Dp = Object, Mp = Ar(/* @__PURE__ */ function() {
|
|
514
514
|
return arguments;
|
|
515
|
-
}()) === "Arguments",
|
|
515
|
+
}()) === "Arguments", Fp = function(e, t) {
|
|
516
516
|
try {
|
|
517
517
|
return e[t];
|
|
518
518
|
} catch {
|
|
519
519
|
}
|
|
520
|
-
}, en =
|
|
520
|
+
}, en = Lp ? Ar : function(e) {
|
|
521
521
|
var t, r, n;
|
|
522
|
-
return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (r =
|
|
523
|
-
},
|
|
524
|
-
if (
|
|
525
|
-
return
|
|
526
|
-
},
|
|
527
|
-
if (!
|
|
528
|
-
},
|
|
529
|
-
var r = arguments.length < 2 ?
|
|
530
|
-
if (
|
|
531
|
-
throw new
|
|
532
|
-
},
|
|
533
|
-
if (e < t) throw new
|
|
522
|
+
return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (r = Fp(t = Dp(e), Np)) == "string" ? r : Mp ? Ar(t) : (n = Ar(t)) === "Object" && xp(t.callee) ? "Arguments" : n;
|
|
523
|
+
}, zp = en, Hp = String, Ke = function(e) {
|
|
524
|
+
if (zp(e) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
|
|
525
|
+
return Hp(e);
|
|
526
|
+
}, Bp = en, So = Va, Kp = Ba, Gp = ar, Wp = de, Vp = Wp("iterator"), ci = function(e) {
|
|
527
|
+
if (!Kp(e)) return So(e, Vp) || So(e, "@@iterator") || Gp[Bp(e)];
|
|
528
|
+
}, Zp = Pe, Yp = Xr, Jp = He, Xp = Pc, qp = ci, Qp = TypeError, Qc = function(e, t) {
|
|
529
|
+
var r = arguments.length < 2 ? qp(e) : t;
|
|
530
|
+
if (Yp(r)) return Jp(Zp(r, e));
|
|
531
|
+
throw new Qp(Xp(e) + " is not iterable");
|
|
532
|
+
}, em = TypeError, Rt = function(e, t) {
|
|
533
|
+
if (e < t) throw new em("Not enough arguments");
|
|
534
534
|
return e;
|
|
535
|
-
},
|
|
535
|
+
}, tm = K, eu = tm([].slice), Io = eu, rm = Math.floor, $a = function(e, t) {
|
|
536
536
|
var r = e.length;
|
|
537
537
|
if (r < 8)
|
|
538
538
|
for (var n = 1, a, i; n < r; ) {
|
|
@@ -541,46 +541,46 @@ var jp = String(Xc) === "[object z]", Ap = jp, Lp = Y, Ar = Ha, xp = de, Up = xp
|
|
|
541
541
|
i !== n++ && (e[i] = a);
|
|
542
542
|
}
|
|
543
543
|
else
|
|
544
|
-
for (var o =
|
|
544
|
+
for (var o = rm(r / 2), c = $a(Io(e, 0, o), t), l = $a(Io(e, o), t), f = c.length, u = l.length, s = 0, d = 0; s < f || d < u; )
|
|
545
545
|
e[s + d] = s < f && d < u ? t(c[s], l[d]) <= 0 ? c[s++] : l[d++] : s < f ? c[s++] : l[d++];
|
|
546
546
|
return e;
|
|
547
|
-
},
|
|
548
|
-
return Ro[e - 1] || (Ro[e - 1] =
|
|
549
|
-
},
|
|
547
|
+
}, nm = $a, ka = _t, tn = Q, ui = pp, yr = Pe, $e = K, Vt = J, tu = Qr, ru = Be, am = oi, im = Ip, om = cr, sm = Gc, li = or, nu = Xc, Cn = Y, cm = we, um = si, lm = en, fm = He, au = je, q = Ke, dm = qa, $o = ir, ko = Qc, hm = ci, wr = ai, st = Rt, vm = de, pm = nm, mm = vm("iterator"), Ct = "URLSearchParams", iu = Ct + "Iterator", ou = li.set, le = li.getterFor(Ct), gm = li.getterFor(iu), Po = ui("fetch"), Fr = ui("Request"), Zt = ui("Headers"), jn = Fr && Fr.prototype, To = Zt && Zt.prototype, ym = tn.RegExp, wm = tn.TypeError, su = tn.decodeURIComponent, bm = tn.encodeURIComponent, Sm = $e("".charAt), Eo = $e([].join), Je = $e([].push), Pa = $e("".replace), Im = $e([].shift), Oo = $e([].splice), _o = $e("".split), $m = $e("".slice), km = /\+/g, Ro = Array(4), Pm = function(e) {
|
|
548
|
+
return Ro[e - 1] || (Ro[e - 1] = ym("((?:%[\\da-f]{2}){" + e + "})", "gi"));
|
|
549
|
+
}, Tm = function(e) {
|
|
550
550
|
try {
|
|
551
|
-
return
|
|
551
|
+
return su(e);
|
|
552
552
|
} catch {
|
|
553
553
|
return e;
|
|
554
554
|
}
|
|
555
555
|
}, Co = function(e) {
|
|
556
|
-
var t = Pa(e,
|
|
556
|
+
var t = Pa(e, km, " "), r = 4;
|
|
557
557
|
try {
|
|
558
|
-
return
|
|
558
|
+
return su(t);
|
|
559
559
|
} catch {
|
|
560
560
|
for (; r; )
|
|
561
|
-
t = Pa(t,
|
|
561
|
+
t = Pa(t, Pm(r--), Tm);
|
|
562
562
|
return t;
|
|
563
563
|
}
|
|
564
|
-
},
|
|
564
|
+
}, Em = /[!'()~]|%20/g, Om = {
|
|
565
565
|
"!": "%21",
|
|
566
566
|
"'": "%27",
|
|
567
567
|
"(": "%28",
|
|
568
568
|
")": "%29",
|
|
569
569
|
"~": "%7E",
|
|
570
570
|
"%20": "+"
|
|
571
|
-
},
|
|
572
|
-
return
|
|
571
|
+
}, _m = function(e) {
|
|
572
|
+
return Om[e];
|
|
573
573
|
}, jo = function(e) {
|
|
574
|
-
return Pa(
|
|
575
|
-
}, An =
|
|
576
|
-
|
|
577
|
-
type:
|
|
574
|
+
return Pa(bm(e), Em, _m);
|
|
575
|
+
}, An = sm(function(t, r) {
|
|
576
|
+
ou(this, {
|
|
577
|
+
type: iu,
|
|
578
578
|
target: le(t).entries,
|
|
579
579
|
index: 0,
|
|
580
580
|
kind: r
|
|
581
581
|
});
|
|
582
582
|
}, Ct, function() {
|
|
583
|
-
var t =
|
|
583
|
+
var t = gm(this), r = t.target, n = t.index++;
|
|
584
584
|
if (!r || n >= r.length)
|
|
585
585
|
return t.target = void 0, wr(void 0, !0);
|
|
586
586
|
var a = r[n];
|
|
@@ -591,28 +591,28 @@ var jp = String(Xc) === "[object z]", Ap = jp, Lp = Y, Ar = Ha, xp = de, Up = xp
|
|
|
591
591
|
return wr(a.value, !1);
|
|
592
592
|
}
|
|
593
593
|
return wr([a.key, a.value], !1);
|
|
594
|
-
}, !0),
|
|
595
|
-
this.entries = [], this.url = null, e !== void 0 && (
|
|
594
|
+
}, !0), cu = function(e) {
|
|
595
|
+
this.entries = [], this.url = null, e !== void 0 && (au(e) ? this.parseObject(e) : this.parseQuery(typeof e == "string" ? Sm(e, 0) === "?" ? $m(e, 1) : e : q(e)));
|
|
596
596
|
};
|
|
597
|
-
|
|
597
|
+
cu.prototype = {
|
|
598
598
|
type: Ct,
|
|
599
599
|
bindURL: function(e) {
|
|
600
600
|
this.url = e, this.update();
|
|
601
601
|
},
|
|
602
602
|
parseObject: function(e) {
|
|
603
|
-
var t = this.entries, r =
|
|
603
|
+
var t = this.entries, r = hm(e), n, a, i, o, c, l, f;
|
|
604
604
|
if (r)
|
|
605
605
|
for (n = ko(e, r), a = n.next; !(i = yr(a, n)).done; ) {
|
|
606
|
-
if (o = ko(
|
|
606
|
+
if (o = ko(fm(i.value)), c = o.next, (l = yr(c, o)).done || (f = yr(c, o)).done || !yr(c, o).done) throw new wm("Expected sequence with length 2");
|
|
607
607
|
Je(t, { key: q(l.value), value: q(f.value) });
|
|
608
608
|
}
|
|
609
|
-
else for (var u in e)
|
|
609
|
+
else for (var u in e) cm(e, u) && Je(t, { key: u, value: q(e[u]) });
|
|
610
610
|
},
|
|
611
611
|
parseQuery: function(e) {
|
|
612
612
|
if (e)
|
|
613
613
|
for (var t = this.entries, r = _o(e, "&"), n = 0, a, i; n < r.length; )
|
|
614
614
|
a = r[n++], a.length && (i = _o(a, "="), Je(t, {
|
|
615
|
-
key: Co(
|
|
615
|
+
key: Co(Im(i)),
|
|
616
616
|
value: Co(Eo(i, "="))
|
|
617
617
|
}));
|
|
618
618
|
},
|
|
@@ -629,11 +629,11 @@ su.prototype = {
|
|
|
629
629
|
}
|
|
630
630
|
};
|
|
631
631
|
var rn = function() {
|
|
632
|
-
|
|
633
|
-
var t = arguments.length > 0 ? arguments[0] : void 0, r =
|
|
632
|
+
nu(this, St);
|
|
633
|
+
var t = arguments.length > 0 ? arguments[0] : void 0, r = ou(this, new cu(t));
|
|
634
634
|
Vt || (this.size = r.entries.length);
|
|
635
635
|
}, St = rn.prototype;
|
|
636
|
-
|
|
636
|
+
im(St, {
|
|
637
637
|
// `URLSearchParams.prototype.append` method
|
|
638
638
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
639
639
|
append: function(t, r) {
|
|
@@ -691,13 +691,13 @@ am(St, {
|
|
|
691
691
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
|
|
692
692
|
sort: function() {
|
|
693
693
|
var t = le(this);
|
|
694
|
-
|
|
694
|
+
pm(t.entries, function(r, n) {
|
|
695
695
|
return r.key > n.key ? 1 : -1;
|
|
696
696
|
}), t.updateURL();
|
|
697
697
|
},
|
|
698
698
|
// `URLSearchParams.prototype.forEach` method
|
|
699
699
|
forEach: function(t) {
|
|
700
|
-
for (var r = le(this).entries, n =
|
|
700
|
+
for (var r = le(this).entries, n = um(t, arguments.length > 1 ? arguments[1] : void 0), a = 0, i; a < r.length; )
|
|
701
701
|
i = r[a++], n(i.value, i.key, this);
|
|
702
702
|
},
|
|
703
703
|
// `URLSearchParams.prototype.keys` method
|
|
@@ -713,27 +713,27 @@ am(St, {
|
|
|
713
713
|
return new An(this, "entries");
|
|
714
714
|
}
|
|
715
715
|
}, { enumerable: !0 });
|
|
716
|
-
|
|
717
|
-
|
|
716
|
+
ru(St, mm, St.entries, { name: "entries" });
|
|
717
|
+
ru(St, "toString", function() {
|
|
718
718
|
return le(this).serialize();
|
|
719
719
|
}, { enumerable: !0 });
|
|
720
|
-
Vt &&
|
|
720
|
+
Vt && am(St, "size", {
|
|
721
721
|
get: function() {
|
|
722
722
|
return le(this).entries.length;
|
|
723
723
|
},
|
|
724
724
|
configurable: !0,
|
|
725
725
|
enumerable: !0
|
|
726
726
|
});
|
|
727
|
-
|
|
728
|
-
ka({ global: !0, constructor: !0, forced: !
|
|
727
|
+
om(rn, Ct);
|
|
728
|
+
ka({ global: !0, constructor: !0, forced: !tu }, {
|
|
729
729
|
URLSearchParams: rn
|
|
730
730
|
});
|
|
731
|
-
if (!
|
|
732
|
-
var
|
|
733
|
-
if (
|
|
731
|
+
if (!tu && Cn(Zt)) {
|
|
732
|
+
var Rm = $e(To.has), Cm = $e(To.set), Ao = function(e) {
|
|
733
|
+
if (au(e)) {
|
|
734
734
|
var t = e.body, r;
|
|
735
|
-
if (
|
|
736
|
-
return r = e.headers ? new Zt(e.headers) : new Zt(),
|
|
735
|
+
if (lm(t) === Ct)
|
|
736
|
+
return r = e.headers ? new Zt(e.headers) : new Zt(), Rm(r, "content-type") || Cm(r, "content-type", "application/x-www-form-urlencoded;charset=UTF-8"), dm(e, {
|
|
737
737
|
body: $o(0, q(t)),
|
|
738
738
|
headers: $o(0, r)
|
|
739
739
|
});
|
|
@@ -746,78 +746,78 @@ if (!eu && Cn(Zt)) {
|
|
|
746
746
|
}
|
|
747
747
|
}), Cn(Fr)) {
|
|
748
748
|
var Ln = function(t) {
|
|
749
|
-
return
|
|
749
|
+
return nu(this, jn), new Fr(t, arguments.length > 1 ? Ao(arguments[1]) : {});
|
|
750
750
|
};
|
|
751
751
|
jn.constructor = Ln, Ln.prototype = jn, ka({ global: !0, constructor: !0, dontCallGetSet: !0, forced: !0 }, {
|
|
752
752
|
Request: Ln
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
|
-
var
|
|
756
|
+
var jm = {
|
|
757
757
|
URLSearchParams: rn,
|
|
758
758
|
getState: le
|
|
759
|
-
},
|
|
759
|
+
}, Am = Be, nn = K, Lo = Ke, Lm = Rt, uu = URLSearchParams, an = uu.prototype, xm = nn(an.append), xo = nn(an.delete), Um = nn(an.forEach), Nm = nn([].push), fi = new uu("a=1&a=2&b=3");
|
|
760
760
|
fi.delete("a", 1);
|
|
761
761
|
fi.delete("b", void 0);
|
|
762
|
-
fi + "" != "a=2" &&
|
|
762
|
+
fi + "" != "a=2" && Am(an, "delete", function(e) {
|
|
763
763
|
var t = arguments.length, r = t < 2 ? void 0 : arguments[1];
|
|
764
764
|
if (t && r === void 0) return xo(this, e);
|
|
765
765
|
var n = [];
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
}),
|
|
766
|
+
Um(this, function(s, d) {
|
|
767
|
+
Nm(n, { key: d, value: s });
|
|
768
|
+
}), Lm(t, 1);
|
|
769
769
|
for (var a = Lo(e), i = Lo(r), o = 0, c = 0, l = !1, f = n.length, u; o < f; )
|
|
770
770
|
u = n[o++], l || u.key === a ? (l = !0, xo(this, u.key)) : c++;
|
|
771
771
|
for (; c < f; )
|
|
772
|
-
u = n[c++], u.key === a && u.value === i ||
|
|
772
|
+
u = n[c++], u.key === a && u.value === i || xm(this, u.key, u.value);
|
|
773
773
|
}, { enumerable: !0, unsafe: !0 });
|
|
774
|
-
var
|
|
775
|
-
(Uo.has("a", 2) || !Uo.has("a", void 0)) &&
|
|
774
|
+
var Dm = Be, lu = K, Mm = Ke, Fm = Rt, fu = URLSearchParams, di = fu.prototype, zm = lu(di.getAll), Hm = lu(di.has), Uo = new fu("a=1");
|
|
775
|
+
(Uo.has("a", 2) || !Uo.has("a", void 0)) && Dm(di, "has", function(t) {
|
|
776
776
|
var r = arguments.length, n = r < 2 ? void 0 : arguments[1];
|
|
777
|
-
if (r && n === void 0) return
|
|
778
|
-
var a =
|
|
779
|
-
|
|
780
|
-
for (var i =
|
|
777
|
+
if (r && n === void 0) return Hm(this, t);
|
|
778
|
+
var a = zm(this, t);
|
|
779
|
+
Fm(r, 1);
|
|
780
|
+
for (var i = Mm(n), o = 0; o < a.length; )
|
|
781
781
|
if (a[o++] === i) return !0;
|
|
782
782
|
return !1;
|
|
783
783
|
}, { enumerable: !0, unsafe: !0 });
|
|
784
|
-
var
|
|
785
|
-
|
|
784
|
+
var Bm = J, Km = K, Gm = oi, Ta = URLSearchParams.prototype, Wm = Km(Ta.forEach);
|
|
785
|
+
Bm && !("size" in Ta) && Gm(Ta, "size", {
|
|
786
786
|
get: function() {
|
|
787
787
|
var t = 0;
|
|
788
|
-
return
|
|
788
|
+
return Wm(this, function() {
|
|
789
789
|
t++;
|
|
790
790
|
}), t;
|
|
791
791
|
},
|
|
792
792
|
configurable: !0,
|
|
793
793
|
enumerable: !0
|
|
794
794
|
});
|
|
795
|
-
var
|
|
796
|
-
|
|
797
|
-
var hi = K,
|
|
795
|
+
var Vm = Q, du = Vm, Zm = du;
|
|
796
|
+
Zm.URLSearchParams;
|
|
797
|
+
var hi = K, Ym = Za, Jm = Ke, Xm = Yr, qm = hi("".charAt), No = hi("".charCodeAt), Qm = hi("".slice), Do = function(e) {
|
|
798
798
|
return function(t, r) {
|
|
799
|
-
var n =
|
|
800
|
-
return a < 0 || a >= i ? e ? "" : void 0 : (o = No(n, a), o < 55296 || o > 56319 || a + 1 === i || (c = No(n, a + 1)) < 56320 || c > 57343 ? e ?
|
|
799
|
+
var n = Jm(Xm(t)), a = Ym(r), i = n.length, o, c;
|
|
800
|
+
return a < 0 || a >= i ? e ? "" : void 0 : (o = No(n, a), o < 55296 || o > 56319 || a + 1 === i || (c = No(n, a + 1)) < 56320 || c > 57343 ? e ? qm(n, a) : o : e ? Qm(n, a, a + 2) : (o - 55296 << 10) + (c - 56320) + 65536);
|
|
801
801
|
};
|
|
802
|
-
},
|
|
802
|
+
}, hu = {
|
|
803
803
|
// `String.prototype.codePointAt` method
|
|
804
804
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
805
805
|
codeAt: Do(!1),
|
|
806
806
|
// `String.prototype.at` method
|
|
807
807
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
808
808
|
charAt: Do(!0)
|
|
809
|
-
},
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
type:
|
|
813
|
-
string:
|
|
809
|
+
}, eg = hu.charAt, tg = Ke, vu = or, rg = Zc, Mo = ai, pu = "String Iterator", ng = vu.set, ag = vu.getterFor(pu);
|
|
810
|
+
rg(String, "String", function(e) {
|
|
811
|
+
ng(this, {
|
|
812
|
+
type: pu,
|
|
813
|
+
string: tg(e),
|
|
814
814
|
index: 0
|
|
815
815
|
});
|
|
816
816
|
}, function() {
|
|
817
|
-
var t =
|
|
818
|
-
return n >= r.length ? Mo(void 0, !0) : (a =
|
|
817
|
+
var t = ag(this), r = t.string, n = t.index, a;
|
|
818
|
+
return n >= r.length ? Mo(void 0, !0) : (a = eg(r, n), t.index += a.length, Mo(a, !1));
|
|
819
819
|
});
|
|
820
|
-
var Fo = J,
|
|
820
|
+
var Fo = J, ig = K, og = Pe, sg = ne, xn = _c, cg = ni, ug = ei, lg = Jr, fg = hc, ct = Object.assign, zo = Object.defineProperty, dg = ig([].concat), hg = !ct || sg(function() {
|
|
821
821
|
if (Fo && ct({ b: 1 }, ct(zo({}, "a", {
|
|
822
822
|
enumerable: !0,
|
|
823
823
|
get: function() {
|
|
@@ -832,75 +832,75 @@ var Fo = J, ag = K, ig = Pe, og = ne, xn = Oc, sg = ni, cg = ei, ug = Jr, lg = d
|
|
|
832
832
|
t[a] = a;
|
|
833
833
|
}), ct({}, e)[r] !== 7 || xn(ct({}, t)).join("") !== n;
|
|
834
834
|
}) ? function(t, r) {
|
|
835
|
-
for (var n =
|
|
836
|
-
for (var l =
|
|
837
|
-
d = f[s++], (!Fo ||
|
|
835
|
+
for (var n = lg(t), a = arguments.length, i = 1, o = cg.f, c = ug.f; a > i; )
|
|
836
|
+
for (var l = fg(arguments[i++]), f = o ? dg(xn(l), o(l)) : xn(l), u = f.length, s = 0, d; u > s; )
|
|
837
|
+
d = f[s++], (!Fo || og(c, l, d)) && (n[d] = l[d]);
|
|
838
838
|
return n;
|
|
839
|
-
} : ct,
|
|
839
|
+
} : ct, vg = Pe, Ho = He, pg = Va, mg = function(e, t, r) {
|
|
840
840
|
var n, a;
|
|
841
841
|
Ho(e);
|
|
842
842
|
try {
|
|
843
|
-
if (n =
|
|
843
|
+
if (n = pg(e, "return"), !n) {
|
|
844
844
|
if (t === "throw") throw r;
|
|
845
845
|
return r;
|
|
846
846
|
}
|
|
847
|
-
n =
|
|
847
|
+
n = vg(n, e);
|
|
848
848
|
} catch (i) {
|
|
849
849
|
a = !0, n = i;
|
|
850
850
|
}
|
|
851
851
|
if (t === "throw") throw r;
|
|
852
852
|
if (a) throw n;
|
|
853
853
|
return Ho(n), r;
|
|
854
|
-
},
|
|
854
|
+
}, gg = He, yg = mg, wg = function(e, t, r, n) {
|
|
855
855
|
try {
|
|
856
|
-
return n ? t(
|
|
856
|
+
return n ? t(gg(r)[0], r[1]) : t(r);
|
|
857
857
|
} catch (a) {
|
|
858
|
-
|
|
858
|
+
yg(e, "throw", a);
|
|
859
859
|
}
|
|
860
|
-
},
|
|
861
|
-
return e !== void 0 && (
|
|
862
|
-
},
|
|
863
|
-
},
|
|
864
|
-
if (!
|
|
860
|
+
}, bg = de, Sg = ar, Ig = bg("iterator"), $g = Array.prototype, kg = function(e) {
|
|
861
|
+
return e !== void 0 && (Sg.Array === e || $g[Ig] === e);
|
|
862
|
+
}, Pg = K, Tg = ne, mu = Y, Eg = en, Og = Ot, _g = Dc, gu = function() {
|
|
863
|
+
}, yu = Og("Reflect", "construct"), vi = /^\s*(?:class|function)\b/, Rg = Pg(vi.exec), Cg = !vi.test(gu), Nt = function(t) {
|
|
864
|
+
if (!mu(t)) return !1;
|
|
865
865
|
try {
|
|
866
|
-
return gu
|
|
866
|
+
return yu(gu, [], t), !0;
|
|
867
867
|
} catch {
|
|
868
868
|
return !1;
|
|
869
869
|
}
|
|
870
|
-
},
|
|
871
|
-
if (!
|
|
872
|
-
switch (
|
|
870
|
+
}, wu = function(t) {
|
|
871
|
+
if (!mu(t)) return !1;
|
|
872
|
+
switch (Eg(t)) {
|
|
873
873
|
case "AsyncFunction":
|
|
874
874
|
case "GeneratorFunction":
|
|
875
875
|
case "AsyncGeneratorFunction":
|
|
876
876
|
return !1;
|
|
877
877
|
}
|
|
878
878
|
try {
|
|
879
|
-
return
|
|
879
|
+
return Cg || !!Rg(vi, _g(t));
|
|
880
880
|
} catch {
|
|
881
881
|
return !0;
|
|
882
882
|
}
|
|
883
883
|
};
|
|
884
|
-
|
|
885
|
-
var
|
|
884
|
+
wu.sham = !0;
|
|
885
|
+
var jg = !yu || Tg(function() {
|
|
886
886
|
var e;
|
|
887
887
|
return Nt(Nt.call) || !Nt(Object) || !Nt(function() {
|
|
888
888
|
e = !0;
|
|
889
889
|
}) || e;
|
|
890
|
-
}) ?
|
|
891
|
-
|
|
892
|
-
},
|
|
893
|
-
var r =
|
|
894
|
-
o && (i =
|
|
895
|
-
var c =
|
|
896
|
-
if (c && !(this === Ko &&
|
|
897
|
-
for (u = n ? new this() : [], d =
|
|
898
|
-
m = o ?
|
|
890
|
+
}) ? wu : Nt, Ag = J, Lg = ke, xg = ir, Ug = function(e, t, r) {
|
|
891
|
+
Ag ? Lg.f(e, t, xg(0, r)) : e[t] = r;
|
|
892
|
+
}, Ng = si, Dg = Pe, Mg = Jr, Fg = wg, zg = kg, Hg = jg, Bg = Ec, Bo = Ug, Kg = Qc, Gg = ci, Ko = Array, Wg = function(t) {
|
|
893
|
+
var r = Mg(t), n = Hg(this), a = arguments.length, i = a > 1 ? arguments[1] : void 0, o = i !== void 0;
|
|
894
|
+
o && (i = Ng(i, a > 2 ? arguments[2] : void 0));
|
|
895
|
+
var c = Gg(r), l = 0, f, u, s, d, h, m;
|
|
896
|
+
if (c && !(this === Ko && zg(c)))
|
|
897
|
+
for (u = n ? new this() : [], d = Kg(r, c), h = d.next; !(s = Dg(h, d)).done; l++)
|
|
898
|
+
m = o ? Fg(d, i, [s.value, l], !0) : s.value, Bo(u, l, m);
|
|
899
899
|
else
|
|
900
|
-
for (f =
|
|
900
|
+
for (f = Bg(r), u = n ? new this(f) : Ko(f); f > l; l++)
|
|
901
901
|
m = o ? i(r[l], l) : r[l], Bo(u, l, m);
|
|
902
902
|
return u.length = l, u;
|
|
903
|
-
}, it = K, Un = 2147483647, Yt = 36,
|
|
903
|
+
}, it = K, Un = 2147483647, Yt = 36, bu = 1, Ea = 26, Vg = 38, Zg = 700, Yg = 72, Jg = 128, Xg = "-", qg = /[^\0-\u007E]/, Su = /[.\u3002\uFF0E\uFF61]/g, Go = "Overflow: input needs wider integers to process", Nn = Yt - bu, Wo = RangeError, Qg = it(Su.exec), pt = Math.floor, Dn = String.fromCharCode, Vo = it("".charCodeAt), Iu = it([].join), De = it([].push), ey = it("".replace), ty = it("".split), ry = it("".toLowerCase), ny = function(e) {
|
|
904
904
|
for (var t = [], r = 0, n = e.length; r < n; ) {
|
|
905
905
|
var a = Vo(e, r++);
|
|
906
906
|
if (a >= 55296 && a <= 56319 && r < n) {
|
|
@@ -912,19 +912,19 @@ var Cg = !gu || Pg(function() {
|
|
|
912
912
|
return t;
|
|
913
913
|
}, Zo = function(e) {
|
|
914
914
|
return e + 22 + 75 * (e < 26);
|
|
915
|
-
},
|
|
915
|
+
}, ay = function(e, t, r) {
|
|
916
916
|
var n = 0;
|
|
917
|
-
for (e = r ? pt(e /
|
|
917
|
+
for (e = r ? pt(e / Zg) : e >> 1, e += pt(e / t); e > Nn * Ea >> 1; )
|
|
918
918
|
e = pt(e / Nn), n += Yt;
|
|
919
|
-
return pt(n + (Nn + 1) * e / (e +
|
|
920
|
-
},
|
|
919
|
+
return pt(n + (Nn + 1) * e / (e + Vg));
|
|
920
|
+
}, iy = function(e) {
|
|
921
921
|
var t = [];
|
|
922
|
-
e =
|
|
923
|
-
var r = e.length, n =
|
|
922
|
+
e = ny(e);
|
|
923
|
+
var r = e.length, n = Jg, a = 0, i = Yg, o, c;
|
|
924
924
|
for (o = 0; o < e.length; o++)
|
|
925
925
|
c = e[o], c < 128 && De(t, Dn(c));
|
|
926
926
|
var l = t.length, f = l;
|
|
927
|
-
for (l && De(t,
|
|
927
|
+
for (l && De(t, Xg); f < r; ) {
|
|
928
928
|
var u = Un;
|
|
929
929
|
for (o = 0; o < e.length; o++)
|
|
930
930
|
c = e[o], c >= n && c < u && (u = c);
|
|
@@ -936,31 +936,31 @@ var Cg = !gu || Pg(function() {
|
|
|
936
936
|
throw new Wo(Go);
|
|
937
937
|
if (c === n) {
|
|
938
938
|
for (var d = a, h = Yt; ; ) {
|
|
939
|
-
var m = h <= i ?
|
|
939
|
+
var m = h <= i ? bu : h >= i + Ea ? Ea : h - i;
|
|
940
940
|
if (d < m) break;
|
|
941
941
|
var S = d - m, g = Yt - m;
|
|
942
942
|
De(t, Dn(Zo(m + S % g))), d = pt(S / g), h += Yt;
|
|
943
943
|
}
|
|
944
|
-
De(t, Dn(Zo(d))), i =
|
|
944
|
+
De(t, Dn(Zo(d))), i = ay(a, s, f === l), a = 0, f++;
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
947
|
a++, n++;
|
|
948
948
|
}
|
|
949
|
-
return
|
|
950
|
-
},
|
|
951
|
-
var t = [], r = ey(
|
|
949
|
+
return Iu(t, "");
|
|
950
|
+
}, oy = function(e) {
|
|
951
|
+
var t = [], r = ty(ey(ry(e), Su, "."), "."), n, a;
|
|
952
952
|
for (n = 0; n < r.length; n++)
|
|
953
|
-
a = r[n], De(t, qg
|
|
954
|
-
return
|
|
955
|
-
},
|
|
956
|
-
var t =
|
|
953
|
+
a = r[n], De(t, Qg(qg, a) ? "xn--" + iy(a) : a);
|
|
954
|
+
return Iu(t, ".");
|
|
955
|
+
}, sy = _t, pi = J, cy = Qr, mi = Q, Yo = si, he = K, zr = Be, se = oi, uy = Xc, Oa = we, gi = hg, ut = Wg, ve = eu, ly = hu.codeAt, fy = oy, Oe = Ke, dy = cr, hy = Rt, $u = jm, ku = or, vy = ku.set, Hr = ku.getterFor("URL"), py = $u.URLSearchParams, my = $u.getState, Dt = mi.URL, _a = mi.TypeError, Br = mi.parseInt, gy = Math.floor, Jo = Math.pow, fe = he("".charAt), ge = he(/./.exec), Bt = he([].join), yy = he(1 .toString), wy = he([].pop), dt = he([].push), Mn = he("".replace), by = he([].shift), Sy = he("".split), Jt = he("".slice), Kr = he("".toLowerCase), Iy = he([].unshift), $y = "Invalid authority", Fn = "Invalid scheme", Ge = "Invalid host", Xo = "Invalid port", Pu = /[a-z]/i, ky = /[\d+-.a-z]/i, Ra = /\d/, Py = /^0x/i, Ty = /^[0-7]+$/, Ey = /^\d+$/, Tu = /^[\da-f]+$/i, Oy = /[\0\t\n\r #%/:<>?@[\\\]^|]/, _y = /[\0\t\n\r #/:<>?@[\\\]^|]/, Ry = /^[\u0000-\u0020]+/, Cy = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/, jy = /[\t\n\r]/g, ce, Ay = function(e) {
|
|
956
|
+
var t = Sy(e, "."), r, n, a, i, o, c, l;
|
|
957
957
|
if (t.length && t[t.length - 1] === "" && t.length--, r = t.length, r > 4) return e;
|
|
958
958
|
for (n = [], a = 0; a < r; a++) {
|
|
959
959
|
if (i = t[a], i === "") return e;
|
|
960
|
-
if (o = 10, i.length > 1 && fe(i, 0) === "0" && (o = ge(
|
|
960
|
+
if (o = 10, i.length > 1 && fe(i, 0) === "0" && (o = ge(Py, i) ? 16 : 8, i = Jt(i, o === 8 ? 1 : 2)), i === "")
|
|
961
961
|
c = 0;
|
|
962
962
|
else {
|
|
963
|
-
if (!ge(o === 10 ?
|
|
963
|
+
if (!ge(o === 10 ? Ey : o === 8 ? Ty : Tu, i)) return e;
|
|
964
964
|
c = Br(i, o);
|
|
965
965
|
}
|
|
966
966
|
dt(n, c);
|
|
@@ -969,10 +969,10 @@ var Cg = !gu || Pg(function() {
|
|
|
969
969
|
if (c = n[a], a === r - 1) {
|
|
970
970
|
if (c >= Jo(256, 5 - r)) return null;
|
|
971
971
|
} else if (c > 255) return null;
|
|
972
|
-
for (l =
|
|
972
|
+
for (l = wy(n), a = 0; a < n.length; a++)
|
|
973
973
|
l += n[a] * Jo(256, 3 - a);
|
|
974
974
|
return l;
|
|
975
|
-
},
|
|
975
|
+
}, Ly = function(e) {
|
|
976
976
|
var t = [0, 0, 0, 0, 0, 0, 0, 0], r = 0, n = null, a = 0, i, o, c, l, f, u, s, d = function() {
|
|
977
977
|
return fe(e, a);
|
|
978
978
|
};
|
|
@@ -987,7 +987,7 @@ var Cg = !gu || Pg(function() {
|
|
|
987
987
|
a++, r++, n = r;
|
|
988
988
|
continue;
|
|
989
989
|
}
|
|
990
|
-
for (i = o = 0; o < 4 && ge(
|
|
990
|
+
for (i = o = 0; o < 4 && ge(Tu, d()); )
|
|
991
991
|
i = i * 16 + Br(d(), 16), a++, o++;
|
|
992
992
|
if (d() === ".") {
|
|
993
993
|
if (o === 0 || (a -= o, r > 6)) return;
|
|
@@ -1019,7 +1019,7 @@ var Cg = !gu || Pg(function() {
|
|
|
1019
1019
|
s = t[r], t[r--] = t[n + u - 1], t[n + --u] = s;
|
|
1020
1020
|
else if (r !== 8) return;
|
|
1021
1021
|
return t;
|
|
1022
|
-
},
|
|
1022
|
+
}, xy = function(e) {
|
|
1023
1023
|
for (var t = null, r = 1, n = null, a = 0, i = 0; i < 8; i++)
|
|
1024
1024
|
e[i] !== 0 ? (a > r && (t = n, r = a), n = null, a = 0) : (n === null && (n = i), ++a);
|
|
1025
1025
|
return a > r && (t = n, r = a), t;
|
|
@@ -1027,26 +1027,26 @@ var Cg = !gu || Pg(function() {
|
|
|
1027
1027
|
var t, r, n, a;
|
|
1028
1028
|
if (typeof e == "number") {
|
|
1029
1029
|
for (t = [], r = 0; r < 4; r++)
|
|
1030
|
-
|
|
1030
|
+
Iy(t, e % 256), e = gy(e / 256);
|
|
1031
1031
|
return Bt(t, ".");
|
|
1032
1032
|
} else if (typeof e == "object") {
|
|
1033
|
-
for (t = "", n =
|
|
1034
|
-
a && e[r] === 0 || (a && (a = !1), n === r ? (t += r ? ":" : "::", a = !0) : (t +=
|
|
1033
|
+
for (t = "", n = xy(e), r = 0; r < 8; r++)
|
|
1034
|
+
a && e[r] === 0 || (a && (a = !1), n === r ? (t += r ? ":" : "::", a = !0) : (t += yy(e[r], 16), r < 7 && (t += ":")));
|
|
1035
1035
|
return "[" + t + "]";
|
|
1036
1036
|
}
|
|
1037
1037
|
return e;
|
|
1038
|
-
}, Lr = {},
|
|
1038
|
+
}, Lr = {}, Eu = gi({}, Lr, {
|
|
1039
1039
|
" ": 1,
|
|
1040
1040
|
'"': 1,
|
|
1041
1041
|
"<": 1,
|
|
1042
1042
|
">": 1,
|
|
1043
1043
|
"`": 1
|
|
1044
|
-
}),
|
|
1044
|
+
}), Ou = gi({}, Eu, {
|
|
1045
1045
|
"#": 1,
|
|
1046
1046
|
"?": 1,
|
|
1047
1047
|
"{": 1,
|
|
1048
1048
|
"}": 1
|
|
1049
|
-
}), zn = gi({},
|
|
1049
|
+
}), zn = gi({}, Ou, {
|
|
1050
1050
|
"/": 1,
|
|
1051
1051
|
":": 1,
|
|
1052
1052
|
";": 1,
|
|
@@ -1058,7 +1058,7 @@ var Cg = !gu || Pg(function() {
|
|
|
1058
1058
|
"^": 1,
|
|
1059
1059
|
"|": 1
|
|
1060
1060
|
}), Le = function(e, t) {
|
|
1061
|
-
var r =
|
|
1061
|
+
var r = ly(e, 0);
|
|
1062
1062
|
return r > 32 && r < 127 && !Oa(t, e) ? e : encodeURIComponent(e);
|
|
1063
1063
|
}, br = {
|
|
1064
1064
|
ftp: 21,
|
|
@@ -1069,13 +1069,13 @@ var Cg = !gu || Pg(function() {
|
|
|
1069
1069
|
wss: 443
|
|
1070
1070
|
}, Kt = function(e, t) {
|
|
1071
1071
|
var r;
|
|
1072
|
-
return e.length === 2 && ge(
|
|
1072
|
+
return e.length === 2 && ge(Pu, fe(e, 0)) && ((r = fe(e, 1)) === ":" || !t && r === "|");
|
|
1073
1073
|
}, qo = function(e) {
|
|
1074
1074
|
var t;
|
|
1075
1075
|
return e.length > 1 && Kt(Jt(e, 0, 2)) && (e.length === 2 || (t = fe(e, 2)) === "/" || t === "\\" || t === "?" || t === "#");
|
|
1076
|
-
}, xy = function(e) {
|
|
1077
|
-
return e === "." || Kr(e) === "%2e";
|
|
1078
1076
|
}, Uy = function(e) {
|
|
1077
|
+
return e === "." || Kr(e) === "%2e";
|
|
1078
|
+
}, Ny = function(e) {
|
|
1079
1079
|
return e = Kr(e), e === ".." || e === "%2e." || e === ".%2e" || e === "%2e%2e";
|
|
1080
1080
|
}, Hn = {}, Qo = {}, Bn = {}, es = {}, ts = {}, Kn = {}, rs = {}, ns = {}, Sr = {}, Ir = {}, Gn = {}, Wn = {}, Vn = {}, Zn = {}, as = {}, Yn = {}, lt = {}, Se = {}, is = {}, We = {}, Ee = {}, yi = function(e, t, r) {
|
|
1081
1081
|
var n = Oe(e), a, i, o;
|
|
@@ -1084,7 +1084,7 @@ var Cg = !gu || Pg(function() {
|
|
|
1084
1084
|
this.searchParams = null;
|
|
1085
1085
|
} else {
|
|
1086
1086
|
if (r !== void 0 && (a = new yi(r, !0)), i = this.parse(n, null, a), i) throw new _a(i);
|
|
1087
|
-
o =
|
|
1087
|
+
o = my(new py()), o.bindURL(this), this.searchParams = o;
|
|
1088
1088
|
}
|
|
1089
1089
|
};
|
|
1090
1090
|
yi.prototype = {
|
|
@@ -1093,10 +1093,10 @@ yi.prototype = {
|
|
|
1093
1093
|
// eslint-disable-next-line max-statements -- TODO
|
|
1094
1094
|
parse: function(e, t, r) {
|
|
1095
1095
|
var n = this, a = t || Hn, i = 0, o = "", c = !1, l = !1, f = !1, u, s, d, h;
|
|
1096
|
-
for (e = Oe(e), t || (n.scheme = "", n.username = "", n.password = "", n.host = null, n.port = null, n.path = [], n.query = null, n.fragment = null, n.cannotBeABaseURL = !1, e = Mn(e,
|
|
1096
|
+
for (e = Oe(e), t || (n.scheme = "", n.username = "", n.password = "", n.host = null, n.port = null, n.path = [], n.query = null, n.fragment = null, n.cannotBeABaseURL = !1, e = Mn(e, Ry, ""), e = Mn(e, Cy, "$1")), e = Mn(e, jy, ""), u = ut(e); i <= u.length; ) {
|
|
1097
1097
|
switch (s = u[i], a) {
|
|
1098
1098
|
case Hn:
|
|
1099
|
-
if (s && ge(
|
|
1099
|
+
if (s && ge(Pu, s))
|
|
1100
1100
|
o += Kr(s), a = Qo;
|
|
1101
1101
|
else {
|
|
1102
1102
|
if (t)
|
|
@@ -1106,7 +1106,7 @@ yi.prototype = {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
break;
|
|
1108
1108
|
case Qo:
|
|
1109
|
-
if (s && (ge(
|
|
1109
|
+
if (s && (ge(ky, s) || s === "+" || s === "-" || s === "."))
|
|
1110
1110
|
o += Kr(s);
|
|
1111
1111
|
else if (s === ":") {
|
|
1112
1112
|
if (t && (n.isSpecial() !== Oa(br, o) || o === "file" && (n.includesCredentials() || n.port !== null) || n.scheme === "file" && !n.host)) return;
|
|
@@ -1194,7 +1194,7 @@ yi.prototype = {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
o = "";
|
|
1196
1196
|
} else if (s === ce || s === "/" || s === "?" || s === "#" || s === "\\" && n.isSpecial()) {
|
|
1197
|
-
if (c && o === "") return
|
|
1197
|
+
if (c && o === "") return $y;
|
|
1198
1198
|
i -= ut(o).length + 1, o = "", a = Gn;
|
|
1199
1199
|
} else o += s;
|
|
1200
1200
|
break;
|
|
@@ -1286,12 +1286,12 @@ yi.prototype = {
|
|
|
1286
1286
|
break;
|
|
1287
1287
|
case Se:
|
|
1288
1288
|
if (s === ce || s === "/" || s === "\\" && n.isSpecial() || !t && (s === "?" || s === "#")) {
|
|
1289
|
-
if (
|
|
1289
|
+
if (Ny(o) ? (n.shortenPath(), s !== "/" && !(s === "\\" && n.isSpecial()) && dt(n.path, "")) : Uy(o) ? s !== "/" && !(s === "\\" && n.isSpecial()) && dt(n.path, "") : (n.scheme === "file" && !n.path.length && Kt(o) && (n.host && (n.host = ""), o = fe(o, 0) + ":"), dt(n.path, o)), o = "", n.scheme === "file" && (s === ce || s === "?" || s === "#"))
|
|
1290
1290
|
for (; n.path.length > 1 && n.path[0] === ""; )
|
|
1291
|
-
|
|
1291
|
+
by(n.path);
|
|
1292
1292
|
s === "?" ? (n.query = "", a = We) : s === "#" && (n.fragment = "", a = Ee);
|
|
1293
1293
|
} else
|
|
1294
|
-
o += Le(s,
|
|
1294
|
+
o += Le(s, Ou);
|
|
1295
1295
|
break;
|
|
1296
1296
|
case is:
|
|
1297
1297
|
s === "?" ? (n.query = "", a = We) : s === "#" ? (n.fragment = "", a = Ee) : s !== ce && (n.path[0] += Le(s, Lr));
|
|
@@ -1300,7 +1300,7 @@ yi.prototype = {
|
|
|
1300
1300
|
!t && s === "#" ? (n.fragment = "", a = Ee) : s !== ce && (s === "'" && n.isSpecial() ? n.query += "%27" : s === "#" ? n.query += "%23" : n.query += Le(s, Lr));
|
|
1301
1301
|
break;
|
|
1302
1302
|
case Ee:
|
|
1303
|
-
s !== ce && (n.fragment += Le(s,
|
|
1303
|
+
s !== ce && (n.fragment += Le(s, Eu));
|
|
1304
1304
|
break;
|
|
1305
1305
|
}
|
|
1306
1306
|
i++;
|
|
@@ -1310,13 +1310,13 @@ yi.prototype = {
|
|
|
1310
1310
|
parseHost: function(e) {
|
|
1311
1311
|
var t, r, n;
|
|
1312
1312
|
if (fe(e, 0) === "[") {
|
|
1313
|
-
if (fe(e, e.length - 1) !== "]" || (t =
|
|
1313
|
+
if (fe(e, e.length - 1) !== "]" || (t = Ly(Jt(e, 1, -1)), !t)) return Ge;
|
|
1314
1314
|
this.host = t;
|
|
1315
1315
|
} else if (this.isSpecial()) {
|
|
1316
|
-
if (e =
|
|
1316
|
+
if (e = fy(e), ge(Oy, e) || (t = Ay(e), t === null)) return Ge;
|
|
1317
1317
|
this.host = t;
|
|
1318
1318
|
} else {
|
|
1319
|
-
if (ge(
|
|
1319
|
+
if (ge(_y, e)) return Ge;
|
|
1320
1320
|
for (t = "", r = ut(e), n = 0; n < r.length; n++)
|
|
1321
1321
|
t += Le(r[n], Lr);
|
|
1322
1322
|
this.host = t;
|
|
@@ -1452,7 +1452,7 @@ yi.prototype = {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
};
|
|
1454
1454
|
var It = function(t) {
|
|
1455
|
-
var r =
|
|
1455
|
+
var r = uy(this, X), n = hy(arguments.length, 1) > 1 ? arguments[1] : void 0, a = vy(r, new yi(t, !1, n));
|
|
1456
1456
|
pi || (r.href = a.serialize(), r.origin = a.getOrigin(), r.protocol = a.getProtocol(), r.username = a.getUsername(), r.password = a.getPassword(), r.host = a.getHost(), r.hostname = a.getHostname(), r.port = a.getPort(), r.pathname = a.getPathname(), r.search = a.getSearch(), r.searchParams = a.getSearchParams(), r.hash = a.getHash());
|
|
1457
1457
|
}, X = It.prototype, ue = function(e, t) {
|
|
1458
1458
|
return {
|
|
@@ -1477,18 +1477,18 @@ if (Dt) {
|
|
|
1477
1477
|
var os = Dt.createObjectURL, ss = Dt.revokeObjectURL;
|
|
1478
1478
|
os && zr(It, "createObjectURL", Yo(os, Dt)), ss && zr(It, "revokeObjectURL", Yo(ss, Dt));
|
|
1479
1479
|
}
|
|
1480
|
-
|
|
1481
|
-
|
|
1480
|
+
dy(It, "URL");
|
|
1481
|
+
sy({ global: !0, constructor: !0, forced: !cy, sham: !pi }, {
|
|
1482
1482
|
URL: It
|
|
1483
1483
|
});
|
|
1484
|
-
var
|
|
1484
|
+
var Dy = _t, My = Ot, _u = ne, Fy = Rt, cs = Ke, zy = Qr, wi = My("URL"), Hy = zy && _u(function() {
|
|
1485
1485
|
wi.canParse();
|
|
1486
|
-
}),
|
|
1486
|
+
}), By = _u(function() {
|
|
1487
1487
|
return wi.canParse.length !== 1;
|
|
1488
1488
|
});
|
|
1489
|
-
|
|
1489
|
+
Dy({ target: "URL", stat: !0, forced: !Hy || By }, {
|
|
1490
1490
|
canParse: function(t) {
|
|
1491
|
-
var r =
|
|
1491
|
+
var r = Fy(arguments.length, 1), n = cs(t), a = r < 2 || arguments[1] === void 0 ? void 0 : cs(arguments[1]);
|
|
1492
1492
|
try {
|
|
1493
1493
|
return !!new wi(n, a);
|
|
1494
1494
|
} catch {
|
|
@@ -1496,26 +1496,26 @@ Ny({ target: "URL", stat: !0, forced: !zy || Hy }, {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
1498
|
});
|
|
1499
|
-
var
|
|
1500
|
-
|
|
1499
|
+
var Ky = _t, Gy = Ot, Wy = Rt, us = Ke, Vy = Qr, Zy = Gy("URL");
|
|
1500
|
+
Ky({ target: "URL", stat: !0, forced: !Vy }, {
|
|
1501
1501
|
parse: function(t) {
|
|
1502
|
-
var r =
|
|
1502
|
+
var r = Wy(arguments.length, 1), n = us(t), a = r < 2 || arguments[1] === void 0 ? void 0 : us(arguments[1]);
|
|
1503
1503
|
try {
|
|
1504
|
-
return new
|
|
1504
|
+
return new Zy(n, a);
|
|
1505
1505
|
} catch {
|
|
1506
1506
|
return null;
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
1509
|
});
|
|
1510
|
-
var
|
|
1511
|
-
|
|
1510
|
+
var Yy = _t, Jy = Pe;
|
|
1511
|
+
Yy({ target: "URL", proto: !0, enumerable: !0 }, {
|
|
1512
1512
|
toJSON: function() {
|
|
1513
|
-
return
|
|
1513
|
+
return Jy(URL.prototype.toString, this);
|
|
1514
1514
|
}
|
|
1515
1515
|
});
|
|
1516
|
-
var
|
|
1517
|
-
|
|
1518
|
-
var
|
|
1516
|
+
var Xy = du;
|
|
1517
|
+
Xy.URL;
|
|
1518
|
+
var qy = {
|
|
1519
1519
|
CSSRuleList: 0,
|
|
1520
1520
|
CSSStyleDeclaration: 0,
|
|
1521
1521
|
CSSValueList: 0,
|
|
@@ -1547,14 +1547,14 @@ var Xy = {
|
|
|
1547
1547
|
TextTrackCueList: 0,
|
|
1548
1548
|
TextTrackList: 0,
|
|
1549
1549
|
TouchList: 0
|
|
1550
|
-
},
|
|
1550
|
+
}, Qy = Wa, Jn = Qy("span").classList, ls = Jn && Jn.constructor && Jn.constructor.prototype, ew = ls === Object.prototype ? void 0 : ls, fs = Q, Ru = qy, tw = ew, Gt = dp, ds = qr, rw = cr, nw = de, Xn = nw("iterator"), qn = Gt.values, Cu = function(e, t) {
|
|
1551
1551
|
if (e) {
|
|
1552
1552
|
if (e[Xn] !== qn) try {
|
|
1553
1553
|
ds(e, Xn, qn);
|
|
1554
1554
|
} catch {
|
|
1555
1555
|
e[Xn] = qn;
|
|
1556
1556
|
}
|
|
1557
|
-
if (
|
|
1557
|
+
if (rw(e, t, !0), Ru[t]) {
|
|
1558
1558
|
for (var r in Gt)
|
|
1559
1559
|
if (e[r] !== Gt[r]) try {
|
|
1560
1560
|
ds(e, r, Gt[r]);
|
|
@@ -1564,10 +1564,12 @@ var Xy = {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
};
|
|
1567
|
-
for (var Qn in
|
|
1568
|
-
|
|
1569
|
-
|
|
1567
|
+
for (var Qn in Ru)
|
|
1568
|
+
Cu(fs[Qn] && fs[Qn].prototype, Qn);
|
|
1569
|
+
Cu(tw, "DOMTokenList");
|
|
1570
1570
|
function ze(e, t) {
|
|
1571
|
+
if (typeof window > "u")
|
|
1572
|
+
return;
|
|
1571
1573
|
const r = new CustomEvent(e, {
|
|
1572
1574
|
detail: t,
|
|
1573
1575
|
bubbles: !0,
|
|
@@ -1622,7 +1624,7 @@ var Ve = Si(function(e, t) {
|
|
|
1622
1624
|
};
|
|
1623
1625
|
});
|
|
1624
1626
|
bi(Ve);
|
|
1625
|
-
var
|
|
1627
|
+
var aw = bi(Si(function(e, t) {
|
|
1626
1628
|
var r = Ze && Ze.__awaiter || function(u, s, d, h) {
|
|
1627
1629
|
return new (d || (d = Promise))(function(m, S) {
|
|
1628
1630
|
function g(b) {
|
|
@@ -1884,7 +1886,7 @@ var nw = bi(Si(function(e, t) {
|
|
|
1884
1886
|
}();
|
|
1885
1887
|
t.default = f;
|
|
1886
1888
|
}));
|
|
1887
|
-
const
|
|
1889
|
+
const iw = { timeoutInSeconds: 60 }, ju = { name: "auth0-spa-js", version: "2.1.3" }, Au = () => Date.now();
|
|
1888
1890
|
let ae = class Ca extends Error {
|
|
1889
1891
|
constructor(t, r) {
|
|
1890
1892
|
super(r), this.error = t, this.error_description = r, Object.setPrototypeOf(this, Ca.prototype);
|
|
@@ -1892,29 +1894,29 @@ let ae = class Ca extends Error {
|
|
|
1892
1894
|
static fromPayload({ error: t, error_description: r }) {
|
|
1893
1895
|
return new Ca(t, r);
|
|
1894
1896
|
}
|
|
1895
|
-
},
|
|
1897
|
+
}, ow = class Lu extends ae {
|
|
1896
1898
|
constructor(t, r, n, a = null) {
|
|
1897
|
-
super(t, r), this.state = n, this.appState = a, Object.setPrototypeOf(this,
|
|
1899
|
+
super(t, r), this.state = n, this.appState = a, Object.setPrototypeOf(this, Lu.prototype);
|
|
1898
1900
|
}
|
|
1899
|
-
}, ja = class
|
|
1901
|
+
}, ja = class xu extends ae {
|
|
1900
1902
|
constructor() {
|
|
1901
|
-
super("timeout", "Timeout"), Object.setPrototypeOf(this,
|
|
1903
|
+
super("timeout", "Timeout"), Object.setPrototypeOf(this, xu.prototype);
|
|
1902
1904
|
}
|
|
1903
|
-
},
|
|
1905
|
+
}, sw = class Uu extends ja {
|
|
1904
1906
|
constructor(t) {
|
|
1905
|
-
super(), this.popup = t, Object.setPrototypeOf(this,
|
|
1907
|
+
super(), this.popup = t, Object.setPrototypeOf(this, Uu.prototype);
|
|
1906
1908
|
}
|
|
1907
|
-
},
|
|
1909
|
+
}, cw = class Nu extends ae {
|
|
1908
1910
|
constructor(t) {
|
|
1909
|
-
super("cancelled", "Popup closed"), this.popup = t, Object.setPrototypeOf(this,
|
|
1911
|
+
super("cancelled", "Popup closed"), this.popup = t, Object.setPrototypeOf(this, Nu.prototype);
|
|
1910
1912
|
}
|
|
1911
|
-
},
|
|
1913
|
+
}, uw = class Du extends ae {
|
|
1912
1914
|
constructor(t, r, n) {
|
|
1913
|
-
super(t, r), this.mfa_token = n, Object.setPrototypeOf(this,
|
|
1915
|
+
super(t, r), this.mfa_token = n, Object.setPrototypeOf(this, Du.prototype);
|
|
1914
1916
|
}
|
|
1915
|
-
},
|
|
1917
|
+
}, Mu = class Fu extends ae {
|
|
1916
1918
|
constructor(t, r) {
|
|
1917
|
-
super("missing_refresh_token", `Missing Refresh Token (audience: '${hs(t, ["default"])}', scope: '${hs(r)}')`), this.audience = t, this.scope = r, Object.setPrototypeOf(this,
|
|
1919
|
+
super("missing_refresh_token", `Missing Refresh Token (audience: '${hs(t, ["default"])}', scope: '${hs(r)}')`), this.audience = t, this.scope = r, Object.setPrototypeOf(this, Fu.prototype);
|
|
1918
1920
|
}
|
|
1919
1921
|
};
|
|
1920
1922
|
function hs(e, t = []) {
|
|
@@ -1927,20 +1929,20 @@ const xr = () => window.crypto, ea = () => {
|
|
|
1927
1929
|
}, vs = (e) => btoa(e), Aa = (e) => {
|
|
1928
1930
|
var { clientId: t } = e, r = Ie(e, ["clientId"]);
|
|
1929
1931
|
return new URLSearchParams(((n) => Object.keys(n).filter((a) => n[a] !== void 0).reduce((a, i) => Object.assign(Object.assign({}, a), { [i]: n[i] }), {}))(Object.assign({ client_id: t }, r))).toString();
|
|
1930
|
-
}, ps = (e) => ((t) => decodeURIComponent(atob(t).split("").map((r) => "%" + ("00" + r.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g, "/").replace(/-/g, "+")),
|
|
1932
|
+
}, ps = (e) => ((t) => decodeURIComponent(atob(t).split("").map((r) => "%" + ("00" + r.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g, "/").replace(/-/g, "+")), lw = async (e, t) => {
|
|
1931
1933
|
const r = await fetch(e, t);
|
|
1932
1934
|
return { ok: r.ok, json: await r.json() };
|
|
1933
|
-
},
|
|
1935
|
+
}, fw = async (e, t, r) => {
|
|
1934
1936
|
const n = new AbortController();
|
|
1935
1937
|
let a;
|
|
1936
|
-
return t.signal = n.signal, Promise.race([
|
|
1938
|
+
return t.signal = n.signal, Promise.race([lw(e, t), new Promise((i, o) => {
|
|
1937
1939
|
a = setTimeout(() => {
|
|
1938
1940
|
n.abort(), o(new Error("Timeout when executing 'fetch'"));
|
|
1939
1941
|
}, r);
|
|
1940
1942
|
})]).finally(() => {
|
|
1941
1943
|
clearTimeout(a);
|
|
1942
1944
|
});
|
|
1943
|
-
},
|
|
1945
|
+
}, dw = async (e, t, r, n, a, i, o) => {
|
|
1944
1946
|
return c = { auth: { audience: t, scope: r }, timeout: a, fetchUrl: e, fetchOptions: n, useFormData: o }, l = i, new Promise(function(f, u) {
|
|
1945
1947
|
const s = new MessageChannel();
|
|
1946
1948
|
s.port1.onmessage = function(d) {
|
|
@@ -1948,14 +1950,14 @@ const xr = () => window.crypto, ea = () => {
|
|
|
1948
1950
|
}, l.postMessage(c, [s.port2]);
|
|
1949
1951
|
});
|
|
1950
1952
|
var c, l;
|
|
1951
|
-
},
|
|
1952
|
-
async function
|
|
1953
|
+
}, hw = async (e, t, r, n, a, i, o = 1e4) => a ? dw(e, t, r, n, o, a, i) : fw(e, n, o);
|
|
1954
|
+
async function vw(e, t) {
|
|
1953
1955
|
var { baseUrl: r, timeout: n, audience: a, scope: i, auth0Client: o, useFormData: c } = e, l = Ie(e, ["baseUrl", "timeout", "audience", "scope", "auth0Client", "useFormData"]);
|
|
1954
1956
|
const f = c ? Aa(l) : JSON.stringify(l);
|
|
1955
1957
|
return await async function(u, s, d, h, m, S, g) {
|
|
1956
1958
|
let $, P = null;
|
|
1957
1959
|
for (let C = 0; C < 3; C++) try {
|
|
1958
|
-
$ = await
|
|
1960
|
+
$ = await hw(u, d, h, m, S, g, s), P = null;
|
|
1959
1961
|
break;
|
|
1960
1962
|
} catch (M) {
|
|
1961
1963
|
P = M;
|
|
@@ -1964,10 +1966,10 @@ async function hw(e, t) {
|
|
|
1964
1966
|
const b = $.json, { error: v, error_description: I } = b, O = Ie(b, ["error", "error_description"]), { ok: _ } = $;
|
|
1965
1967
|
if (!_) {
|
|
1966
1968
|
const C = I || `HTTP error. Unable to fetch ${u}`;
|
|
1967
|
-
throw v === "mfa_required" ? new
|
|
1969
|
+
throw v === "mfa_required" ? new uw(v, C, O.mfa_token) : v === "missing_refresh_token" ? new Mu(d, h) : new ae(v || "request_error", C);
|
|
1968
1970
|
}
|
|
1969
1971
|
return O;
|
|
1970
|
-
}(`${r}/oauth/token`, n, a || "default", i, { method: "POST", body: f, headers: { "Content-Type": c ? "application/x-www-form-urlencoded" : "application/json", "Auth0-Client": btoa(JSON.stringify(o ||
|
|
1972
|
+
}(`${r}/oauth/token`, n, a || "default", i, { method: "POST", body: f, headers: { "Content-Type": c ? "application/x-www-form-urlencoded" : "application/json", "Auth0-Client": btoa(JSON.stringify(o || ju)) } }, t, c);
|
|
1971
1973
|
}
|
|
1972
1974
|
const $r = (...e) => {
|
|
1973
1975
|
return (t = e.filter(Boolean).join(" ").trim().split(/\s+/), Array.from(new Set(t))).join(" ");
|
|
@@ -1988,7 +1990,7 @@ let Xe = class La {
|
|
|
1988
1990
|
const { scope: r, audience: n, client_id: a } = t;
|
|
1989
1991
|
return new La({ scope: r, audience: n, clientId: a });
|
|
1990
1992
|
}
|
|
1991
|
-
},
|
|
1993
|
+
}, pw = class {
|
|
1992
1994
|
set(t, r) {
|
|
1993
1995
|
localStorage.setItem(t, JSON.stringify(r));
|
|
1994
1996
|
}
|
|
@@ -2006,7 +2008,7 @@ let Xe = class La {
|
|
|
2006
2008
|
allKeys() {
|
|
2007
2009
|
return Object.keys(window.localStorage).filter((t) => t.startsWith("@@auth0spajs@@"));
|
|
2008
2010
|
}
|
|
2009
|
-
},
|
|
2011
|
+
}, zu = class {
|
|
2010
2012
|
constructor() {
|
|
2011
2013
|
this.enclosedCache = /* @__PURE__ */ function() {
|
|
2012
2014
|
let t = {};
|
|
@@ -2020,9 +2022,9 @@ let Xe = class La {
|
|
|
2020
2022
|
}, allKeys: () => Object.keys(t) };
|
|
2021
2023
|
}();
|
|
2022
2024
|
}
|
|
2023
|
-
},
|
|
2025
|
+
}, mw = class {
|
|
2024
2026
|
constructor(t, r, n) {
|
|
2025
|
-
this.cache = t, this.keyManifest = r, this.nowProvider = n ||
|
|
2027
|
+
this.cache = t, this.keyManifest = r, this.nowProvider = n || Au;
|
|
2026
2028
|
}
|
|
2027
2029
|
async setIdToken(t, r, n) {
|
|
2028
2030
|
var a;
|
|
@@ -2080,7 +2082,7 @@ let Xe = class La {
|
|
|
2080
2082
|
return i.prefix === "@@auth0spajs@@" && i.clientId === t.clientId && i.audience === t.audience && l;
|
|
2081
2083
|
})[0];
|
|
2082
2084
|
}
|
|
2083
|
-
},
|
|
2085
|
+
}, gw = class {
|
|
2084
2086
|
constructor(t, r, n) {
|
|
2085
2087
|
this.storage = t, this.clientId = r, this.cookieDomain = n, this.storageKey = `a0.spajs.txs.${this.clientId}`;
|
|
2086
2088
|
}
|
|
@@ -2094,14 +2096,14 @@ let Xe = class La {
|
|
|
2094
2096
|
this.storage.remove(this.storageKey, { cookieDomain: this.cookieDomain });
|
|
2095
2097
|
}
|
|
2096
2098
|
};
|
|
2097
|
-
const Ft = (e) => typeof e == "number",
|
|
2099
|
+
const Ft = (e) => typeof e == "number", yw = ["iss", "aud", "exp", "nbf", "iat", "jti", "azp", "nonce", "auth_time", "at_hash", "c_hash", "acr", "amr", "sub_jwk", "cnf", "sip_from_tag", "sip_date", "sip_callid", "sip_cseq_num", "sip_via_branch", "orig", "dest", "mky", "events", "toe", "txn", "rph", "sid", "vot", "vtm"], ww = (e) => {
|
|
2098
2100
|
if (!e.id_token) throw new Error("ID token is required but missing");
|
|
2099
2101
|
const t = ((i) => {
|
|
2100
2102
|
const o = i.split("."), [c, l, f] = o;
|
|
2101
2103
|
if (o.length !== 3 || !c || !l || !f) throw new Error("ID token could not be decoded");
|
|
2102
2104
|
const u = JSON.parse(ps(l)), s = { __raw: i }, d = {};
|
|
2103
2105
|
return Object.keys(u).forEach((h) => {
|
|
2104
|
-
s[h] = u[h],
|
|
2106
|
+
s[h] = u[h], yw.includes(h) || (d[h] = u[h]);
|
|
2105
2107
|
}), { encoded: { header: c, payload: l, signature: f }, header: JSON.parse(ps(c)), claims: s, user: d };
|
|
2106
2108
|
})(e.id_token);
|
|
2107
2109
|
if (!t.claims.iss) throw new Error("Issuer (iss) claim must be a string present in the ID token");
|
|
@@ -2192,25 +2194,25 @@ var qe = Si(function(e, t) {
|
|
|
2192
2194
|
};
|
|
2193
2195
|
});
|
|
2194
2196
|
bi(qe), qe.encode, qe.parse, qe.getAll;
|
|
2195
|
-
var
|
|
2197
|
+
var bw = qe.get, Hu = qe.set, Bu = qe.remove;
|
|
2196
2198
|
const ht = { get(e) {
|
|
2197
|
-
const t =
|
|
2199
|
+
const t = bw(e);
|
|
2198
2200
|
if (t !== void 0) return JSON.parse(t);
|
|
2199
2201
|
}, save(e, t, r) {
|
|
2200
2202
|
let n = {};
|
|
2201
|
-
window.location.protocol === "https:" && (n = { secure: !0, sameSite: "none" }), r != null && r.daysUntilExpire && (n.expires = r.daysUntilExpire), r != null && r.cookieDomain && (n.domain = r.cookieDomain),
|
|
2203
|
+
window.location.protocol === "https:" && (n = { secure: !0, sameSite: "none" }), r != null && r.daysUntilExpire && (n.expires = r.daysUntilExpire), r != null && r.cookieDomain && (n.domain = r.cookieDomain), Hu(e, JSON.stringify(t), n);
|
|
2202
2204
|
}, remove(e, t) {
|
|
2203
2205
|
let r = {};
|
|
2204
|
-
t != null && t.cookieDomain && (r.domain = t.cookieDomain),
|
|
2205
|
-
} },
|
|
2206
|
+
t != null && t.cookieDomain && (r.domain = t.cookieDomain), Bu(e, r);
|
|
2207
|
+
} }, Sw = { get(e) {
|
|
2206
2208
|
return ht.get(e) || ht.get(`_legacy_${e}`);
|
|
2207
2209
|
}, save(e, t, r) {
|
|
2208
2210
|
let n = {};
|
|
2209
|
-
window.location.protocol === "https:" && (n = { secure: !0 }), r != null && r.daysUntilExpire && (n.expires = r.daysUntilExpire), r != null && r.cookieDomain && (n.domain = r.cookieDomain),
|
|
2211
|
+
window.location.protocol === "https:" && (n = { secure: !0 }), r != null && r.daysUntilExpire && (n.expires = r.daysUntilExpire), r != null && r.cookieDomain && (n.domain = r.cookieDomain), Hu(`_legacy_${e}`, JSON.stringify(t), n), ht.save(e, t, r);
|
|
2210
2212
|
}, remove(e, t) {
|
|
2211
2213
|
let r = {};
|
|
2212
|
-
t != null && t.cookieDomain && (r.domain = t.cookieDomain),
|
|
2213
|
-
} },
|
|
2214
|
+
t != null && t.cookieDomain && (r.domain = t.cookieDomain), Bu(e, r), ht.remove(e, t), ht.remove(`_legacy_${e}`, t);
|
|
2215
|
+
} }, Iw = { get(e) {
|
|
2214
2216
|
if (typeof sessionStorage > "u") return;
|
|
2215
2217
|
const t = sessionStorage.getItem(e);
|
|
2216
2218
|
return t != null ? JSON.parse(t) : void 0;
|
|
@@ -2219,7 +2221,7 @@ const ht = { get(e) {
|
|
|
2219
2221
|
}, remove(e) {
|
|
2220
2222
|
sessionStorage.removeItem(e);
|
|
2221
2223
|
} };
|
|
2222
|
-
function
|
|
2224
|
+
function $w(e, t, r) {
|
|
2223
2225
|
var n = t === void 0 ? null : t, a = function(l, f) {
|
|
2224
2226
|
var u = atob(l);
|
|
2225
2227
|
if (f) {
|
|
@@ -2231,11 +2233,11 @@ function Iw(e, t, r) {
|
|
|
2231
2233
|
`, 10) + 1, o = a.substring(i) + (n ? "//# sourceMappingURL=" + n : ""), c = new Blob([o], { type: "application/javascript" });
|
|
2232
2234
|
return URL.createObjectURL(c);
|
|
2233
2235
|
}
|
|
2234
|
-
var ms, gs, ys, ta,
|
|
2235
|
-
return ta = ta ||
|
|
2236
|
+
var ms, gs, ys, ta, kw = (ms = "Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=", gs = null, ys = !1, function(e) {
|
|
2237
|
+
return ta = ta || $w(ms, gs, ys), new Worker(ta, e);
|
|
2236
2238
|
});
|
|
2237
2239
|
const ra = {};
|
|
2238
|
-
let
|
|
2240
|
+
let Pw = class {
|
|
2239
2241
|
constructor(t, r) {
|
|
2240
2242
|
this.cache = t, this.clientId = r, this.manifestKey = this.createManifestKeyFrom(this.clientId);
|
|
2241
2243
|
}
|
|
@@ -2261,14 +2263,14 @@ let kw = class {
|
|
|
2261
2263
|
return `@@auth0spajs@@::${t}`;
|
|
2262
2264
|
}
|
|
2263
2265
|
};
|
|
2264
|
-
const
|
|
2266
|
+
const Tw = { memory: () => new zu().enclosedCache, localstorage: () => new pw() }, ws = (e) => Tw[e], bs = (e) => {
|
|
2265
2267
|
const { openUrl: t, onRedirect: r } = e, n = Ie(e, ["openUrl", "onRedirect"]);
|
|
2266
2268
|
return Object.assign(Object.assign({}, n), { openUrl: t === !1 || t ? t : r });
|
|
2267
|
-
}, na = new
|
|
2268
|
-
let
|
|
2269
|
+
}, na = new aw();
|
|
2270
|
+
let Ew = class {
|
|
2269
2271
|
constructor(t) {
|
|
2270
2272
|
let r, n;
|
|
2271
|
-
if (this.userCache = new
|
|
2273
|
+
if (this.userCache = new zu().enclosedCache, this.defaultOptions = { authorizationParams: { scope: "openid profile email" }, useRefreshTokensFallback: !1, useFormData: !0 }, this._releaseLockOnPageHide = async () => {
|
|
2272
2274
|
await na.releaseLock("auth0.lock.getTokenSilently"), window.removeEventListener("pagehide", this._releaseLockOnPageHide);
|
|
2273
2275
|
}, this.options = Object.assign(Object.assign(Object.assign({}, this.defaultOptions), t), { authorizationParams: Object.assign(Object.assign({}, this.defaultOptions.authorizationParams), t.authorizationParams) }), typeof window < "u" && (() => {
|
|
2274
2276
|
if (!xr()) throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");
|
|
@@ -2280,13 +2282,13 @@ let Tw = class {
|
|
|
2280
2282
|
if (r = t.cacheLocation || "memory", !ws(r)) throw new Error(`Invalid cache location "${r}"`);
|
|
2281
2283
|
n = ws(r)();
|
|
2282
2284
|
}
|
|
2283
|
-
this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? ht :
|
|
2284
|
-
const a = t.useCookiesForTransactions ? this.cookieStorage :
|
|
2285
|
+
this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? ht : Sw, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((o) => `auth0.${o}.is.authenticated`)(this.options.clientId), this.sessionCheckExpiryDays = t.sessionCheckExpiryDays || 1;
|
|
2286
|
+
const a = t.useCookiesForTransactions ? this.cookieStorage : Iw;
|
|
2285
2287
|
var i;
|
|
2286
|
-
this.scope = $r("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new
|
|
2288
|
+
this.scope = $r("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new gw(a, this.options.clientId, this.options.cookieDomain), this.nowProvider = this.options.nowProvider || Au, this.cacheManager = new mw(n, n.allKeys ? void 0 : new Pw(n, this.options.clientId), this.nowProvider), this.domainUrl = (i = this.options.domain, /^https?:\/\//.test(i) ? i : `https://${i}`), this.tokenIssuer = ((o, c) => o ? o.startsWith("https://") ? o : `https://${o}/` : `${c}/`)(this.options.issuer, this.domainUrl), typeof window < "u" && window.Worker && this.options.useRefreshTokens && r === "memory" && (this.options.workerUrl ? this.worker = new Worker(this.options.workerUrl) : this.worker = new kw());
|
|
2287
2289
|
}
|
|
2288
2290
|
_url(t) {
|
|
2289
|
-
const r = encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client ||
|
|
2291
|
+
const r = encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client || ju)));
|
|
2290
2292
|
return `${this.domainUrl}${t}&auth0Client=${r}`;
|
|
2291
2293
|
}
|
|
2292
2294
|
_authorizeUrl(t) {
|
|
@@ -2294,7 +2296,7 @@ let Tw = class {
|
|
|
2294
2296
|
}
|
|
2295
2297
|
async _verifyIdToken(t, r, n) {
|
|
2296
2298
|
const a = await this.nowProvider();
|
|
2297
|
-
return
|
|
2299
|
+
return ww({ iss: this.tokenIssuer, aud: this.options.clientId, id_token: t, nonce: r, organization: n, leeway: this.options.leeway, max_age: (i = this.options.authorizationParams.max_age, typeof i != "string" ? i : parseInt(i, 10) || void 0), now: a });
|
|
2298
2300
|
var i;
|
|
2299
2301
|
}
|
|
2300
2302
|
_processOrgHint(t) {
|
|
@@ -2321,9 +2323,9 @@ let Tw = class {
|
|
|
2321
2323
|
const i = await ((c) => new Promise((l, f) => {
|
|
2322
2324
|
let u;
|
|
2323
2325
|
const s = setInterval(() => {
|
|
2324
|
-
c.popup && c.popup.closed && (clearInterval(s), clearTimeout(d), window.removeEventListener("message", u, !1), f(new
|
|
2326
|
+
c.popup && c.popup.closed && (clearInterval(s), clearTimeout(d), window.removeEventListener("message", u, !1), f(new cw(c.popup)));
|
|
2325
2327
|
}, 1e3), d = setTimeout(() => {
|
|
2326
|
-
clearInterval(s), f(new
|
|
2328
|
+
clearInterval(s), f(new sw(c.popup)), window.removeEventListener("message", u, !1);
|
|
2327
2329
|
}, 1e3 * (c.timeoutInSeconds || 60));
|
|
2328
2330
|
u = function(h) {
|
|
2329
2331
|
if (h.data && h.data.type === "authorization_response") {
|
|
@@ -2362,7 +2364,7 @@ let Tw = class {
|
|
|
2362
2364
|
return { state: d.get("state"), code: d.get("code") || void 0, error: d.get("error") || void 0, error_description: d.get("error_description") || void 0 };
|
|
2363
2365
|
})(r.join("")), c = this.transactionManager.get();
|
|
2364
2366
|
if (!c) throw new ae("missing_transaction", "Invalid state");
|
|
2365
|
-
if (this.transactionManager.remove(), i) throw new
|
|
2367
|
+
if (this.transactionManager.remove(), i) throw new ow(i, o || i, n, c.appState);
|
|
2366
2368
|
if (!c.code_verifier || c.state && c.state !== n) throw new ae("state_mismatch", "Invalid state");
|
|
2367
2369
|
const l = c.organization, f = c.nonce, u = c.redirect_uri;
|
|
2368
2370
|
return await this._requestToken(Object.assign({ audience: c.audience, scope: c.scope, code_verifier: c.code_verifier, grant_type: "authorization_code", code: a }, u ? { redirect_uri: u } : {}), { nonceIn: f, organization: l }), { appState: c.appState };
|
|
@@ -2413,7 +2415,7 @@ let Tw = class {
|
|
|
2413
2415
|
async getTokenWithPopup(t = {}, r = {}) {
|
|
2414
2416
|
var n;
|
|
2415
2417
|
const a = Object.assign(Object.assign({}, t), { authorizationParams: Object.assign(Object.assign(Object.assign({}, this.options.authorizationParams), t.authorizationParams), { scope: $r(this.scope, (n = t.authorizationParams) === null || n === void 0 ? void 0 : n.scope) }) });
|
|
2416
|
-
return r = Object.assign(Object.assign({},
|
|
2418
|
+
return r = Object.assign(Object.assign({}, iw), r), await this.loginWithPopup(a, r), (await this.cacheManager.get(new Xe({ scope: a.authorizationParams.scope, audience: a.authorizationParams.audience || "default", clientId: this.options.clientId }))).access_token;
|
|
2417
2419
|
}
|
|
2418
2420
|
async isAuthenticated() {
|
|
2419
2421
|
return !!await this.getUser();
|
|
@@ -2462,7 +2464,7 @@ let Tw = class {
|
|
|
2462
2464
|
const r = await this.cacheManager.get(new Xe({ scope: t.authorizationParams.scope, audience: t.authorizationParams.audience || "default", clientId: this.options.clientId }));
|
|
2463
2465
|
if (!(r && r.refresh_token || this.worker)) {
|
|
2464
2466
|
if (this.options.useRefreshTokensFallback) return await this._getTokenFromIFrame(t);
|
|
2465
|
-
throw new
|
|
2467
|
+
throw new Mu(t.authorizationParams.audience || "default", t.authorizationParams.scope);
|
|
2466
2468
|
}
|
|
2467
2469
|
const n = t.authorizationParams.redirect_uri || this.options.authorizationParams.redirect_uri || window.location.origin, a = typeof t.timeoutInSeconds == "number" ? 1e3 * t.timeoutInSeconds : null;
|
|
2468
2470
|
try {
|
|
@@ -2489,22 +2491,22 @@ let Tw = class {
|
|
|
2489
2491
|
}
|
|
2490
2492
|
}
|
|
2491
2493
|
async _requestToken(t, r) {
|
|
2492
|
-
const { nonceIn: n, organization: a } = r || {}, i = await
|
|
2494
|
+
const { nonceIn: n, organization: a } = r || {}, i = await vw(Object.assign({ baseUrl: this.domainUrl, client_id: this.options.clientId, auth0Client: this.options.auth0Client, useFormData: this.options.useFormData, timeout: this.httpTimeoutMs }, t), this.worker), o = await this._verifyIdToken(i.id_token, n, a);
|
|
2493
2495
|
return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({}, i), { decodedToken: o, scope: t.scope, audience: t.audience || "default" }), i.scope ? { oauthTokenScope: i.scope } : null), { client_id: this.options.clientId })), this.cookieStorage.save(this.isAuthenticatedCookieName, !0, { daysUntilExpire: this.sessionCheckExpiryDays, cookieDomain: this.options.cookieDomain }), this._processOrgHint(a || o.claims.org_id), Object.assign(Object.assign({}, i), { decodedToken: o });
|
|
2494
2496
|
}
|
|
2495
2497
|
};
|
|
2496
|
-
async function
|
|
2497
|
-
const t = new
|
|
2498
|
+
async function Ow(e) {
|
|
2499
|
+
const t = new Ew(e);
|
|
2498
2500
|
return await t.checkSession(), t;
|
|
2499
2501
|
}
|
|
2500
2502
|
var ye = /* @__PURE__ */ ((e) => (e.READY = "sesamyJsReady", e.AUTHENTICATED = "sesamyJsAuthenticated", e.LOGOUT = "sesamyJsLogout", e.CLEAR_CACHE = "sesamyJsClearCache", e.USER_ATTRIBUTE_CHANGED = "sesamyUserAttributeChanged", e.PURCHASE = "sesamyJsPurchase", e))(ye || {});
|
|
2501
|
-
const
|
|
2503
|
+
const _w = "sesamy.com", Rw = "sesamy.dev", Cw = "https://sesa.my", xa = "sesamyCacheTimestamp";
|
|
2502
2504
|
function Ue(e, t) {
|
|
2503
|
-
return `https://${e}.${t === "dev" ?
|
|
2505
|
+
return `https://${e}.${t === "dev" ? Rw : _w}`;
|
|
2504
2506
|
}
|
|
2505
|
-
let ie,
|
|
2507
|
+
let ie, Ku;
|
|
2506
2508
|
const $t = "sesamyAccessToken", aa = "sesamyRefreshToken";
|
|
2507
|
-
async function
|
|
2509
|
+
async function jw(e) {
|
|
2508
2510
|
if (!e)
|
|
2509
2511
|
return null;
|
|
2510
2512
|
const t = localStorage.getItem(aa);
|
|
@@ -2527,16 +2529,16 @@ async function Cw(e) {
|
|
|
2527
2529
|
const i = await a.json();
|
|
2528
2530
|
return localStorage.setItem(aa, i.refresh_token), localStorage.setItem($t, i.access_token), i.access_token;
|
|
2529
2531
|
} catch {
|
|
2530
|
-
|
|
2532
|
+
Gu();
|
|
2531
2533
|
}
|
|
2532
2534
|
}
|
|
2533
2535
|
async function Ii() {
|
|
2534
2536
|
const e = localStorage.getItem($t);
|
|
2535
2537
|
if (!e)
|
|
2536
2538
|
return null;
|
|
2537
|
-
const t =
|
|
2539
|
+
const t = Wu(e);
|
|
2538
2540
|
if (!t || !t.exp || t.exp < (/* @__PURE__ */ new Date()).getTime() / 1e3) {
|
|
2539
|
-
const r = await
|
|
2541
|
+
const r = await jw(t);
|
|
2540
2542
|
if (r)
|
|
2541
2543
|
return r;
|
|
2542
2544
|
localStorage.removeItem($t);
|
|
@@ -2551,16 +2553,16 @@ function Ss(e) {
|
|
|
2551
2553
|
return null;
|
|
2552
2554
|
}
|
|
2553
2555
|
}
|
|
2554
|
-
async function
|
|
2556
|
+
async function Aw(e) {
|
|
2555
2557
|
if (e.enabled === !1)
|
|
2556
2558
|
return;
|
|
2557
|
-
|
|
2559
|
+
Ku = e.organization;
|
|
2558
2560
|
const t = {
|
|
2559
2561
|
domain: Ue("token", e.environment),
|
|
2560
2562
|
clientId: e.clientId,
|
|
2561
2563
|
useCookiesForTransactions: !0
|
|
2562
2564
|
};
|
|
2563
|
-
if (Ss(window.location.href) !== Ss(Ue("auth", e.environment)) && (t.cacheLocation = "localstorage", t.useRefreshTokens = !0), ie = await
|
|
2565
|
+
if (Ss(window.location.href) !== Ss(Ue("auth", e.environment)) && (t.cacheLocation = "localstorage", t.useRefreshTokens = !0), ie = await Ow(t), window.location.search.includes("code="))
|
|
2564
2566
|
try {
|
|
2565
2567
|
await ie.handleRedirectCallback();
|
|
2566
2568
|
const r = await ie.getUser();
|
|
@@ -2574,7 +2576,7 @@ async function jw(e) {
|
|
|
2574
2576
|
async function $i() {
|
|
2575
2577
|
return await Ii() ? !0 : ie ? ie.isAuthenticated() : !1;
|
|
2576
2578
|
}
|
|
2577
|
-
async function
|
|
2579
|
+
async function Lw() {
|
|
2578
2580
|
return await Ii() ? {
|
|
2579
2581
|
sub: "local",
|
|
2580
2582
|
name: "Local User"
|
|
@@ -2587,7 +2589,7 @@ function ki(e) {
|
|
|
2587
2589
|
return ie.loginWithRedirect({
|
|
2588
2590
|
...e,
|
|
2589
2591
|
authorizationParams: {
|
|
2590
|
-
organization:
|
|
2592
|
+
organization: Ku,
|
|
2591
2593
|
redirect_uri: window.location.href,
|
|
2592
2594
|
...t
|
|
2593
2595
|
}
|
|
@@ -2605,7 +2607,7 @@ async function zt(e = !0) {
|
|
|
2605
2607
|
return null;
|
|
2606
2608
|
}
|
|
2607
2609
|
}
|
|
2608
|
-
async function
|
|
2610
|
+
async function Gu(e = {}) {
|
|
2609
2611
|
if (localStorage.removeItem($t), ze(ye.LOGOUT, {}), !!ie)
|
|
2610
2612
|
return ie.logout({
|
|
2611
2613
|
...e,
|
|
@@ -2613,7 +2615,7 @@ async function Ku(e = {}) {
|
|
|
2613
2615
|
logoutParams: { returnTo: window.location.href, ...e.logoutParams }
|
|
2614
2616
|
});
|
|
2615
2617
|
}
|
|
2616
|
-
function
|
|
2618
|
+
function Wu(e) {
|
|
2617
2619
|
const t = e.split(".");
|
|
2618
2620
|
if (t.length !== 3)
|
|
2619
2621
|
return null;
|
|
@@ -2624,13 +2626,13 @@ function Gu(e) {
|
|
|
2624
2626
|
);
|
|
2625
2627
|
return JSON.parse(a);
|
|
2626
2628
|
}
|
|
2627
|
-
async function
|
|
2628
|
-
const t =
|
|
2629
|
+
async function Vu(e) {
|
|
2630
|
+
const t = Wu(e);
|
|
2629
2631
|
if (!t || !t.exp || t.exp < (/* @__PURE__ */ new Date()).getTime() / 1e3)
|
|
2630
2632
|
throw new Error("Invalid token");
|
|
2631
2633
|
localStorage.setItem($t, e), ze(ye.AUTHENTICATED, t);
|
|
2632
2634
|
}
|
|
2633
|
-
const
|
|
2635
|
+
const xw = (e, t) => t.skipDedupe || t.method !== "GET", Uw = (e, t) => t.method + "@" + e, Nw = (e) => e.clone(), Is = ({ skip: e = xw, key: t = Uw, resolver: r = Nw } = {}) => {
|
|
2634
2636
|
const n = /* @__PURE__ */ new Map();
|
|
2635
2637
|
return (a) => (i, o) => {
|
|
2636
2638
|
if (e(i, o))
|
|
@@ -2650,7 +2652,7 @@ const Lw = (e, t) => t.skipDedupe || t.method !== "GET", xw = (e, t) => t.method
|
|
|
2650
2652
|
return n.delete(c), Promise.reject(l);
|
|
2651
2653
|
}
|
|
2652
2654
|
};
|
|
2653
|
-
},
|
|
2655
|
+
}, Dw = (e, t) => e * t, Mw = (e) => e && e.ok, $s = ({ delayTimer: e = 500, delayRamp: t = Dw, maxAttempts: r = 10, until: n = Mw, onRetry: a = null, retryOnNetworkError: i = !1, resolveWithLatestResponse: o = !1, skip: c } = {}) => (l) => (f, u) => {
|
|
2654
2656
|
let s = 0;
|
|
2655
2657
|
if (c && c(f, u))
|
|
2656
2658
|
return l(f, u);
|
|
@@ -2677,10 +2679,10 @@ const Lw = (e, t) => t.skipDedupe || t.method !== "GET", xw = (e, t) => t.method
|
|
|
2677
2679
|
throw h;
|
|
2678
2680
|
return d(null, h);
|
|
2679
2681
|
});
|
|
2680
|
-
},
|
|
2682
|
+
}, Fw = "application/json", Zu = "Content-Type", ft = Symbol(), Yu = Symbol();
|
|
2681
2683
|
function ks(e = {}) {
|
|
2682
2684
|
var t;
|
|
2683
|
-
return (t = Object.entries(e).find(([r]) => r.toLowerCase() ===
|
|
2685
|
+
return (t = Object.entries(e).find(([r]) => r.toLowerCase() === Zu.toLowerCase())) === null || t === void 0 ? void 0 : t[1];
|
|
2684
2686
|
}
|
|
2685
2687
|
function Ps(e) {
|
|
2686
2688
|
return /^application\/.*json.*/.test(e);
|
|
@@ -2712,28 +2714,28 @@ const Qe = function(e, t, r = !1) {
|
|
|
2712
2714
|
return r && a ? new a(...n) : a;
|
|
2713
2715
|
}
|
|
2714
2716
|
};
|
|
2715
|
-
function
|
|
2717
|
+
function zw(e, t = !1) {
|
|
2716
2718
|
kt.options = t ? e : Qe(kt.options, e);
|
|
2717
2719
|
}
|
|
2718
|
-
function
|
|
2720
|
+
function Hw(e, t = !1) {
|
|
2719
2721
|
kt.polyfills = t ? e : Qe(kt.polyfills, e);
|
|
2720
2722
|
}
|
|
2721
|
-
function
|
|
2723
|
+
function Bw(e) {
|
|
2722
2724
|
kt.errorType = e;
|
|
2723
2725
|
}
|
|
2724
|
-
const
|
|
2725
|
-
class
|
|
2726
|
+
const Kw = (e) => (t) => e.reduceRight((r, n) => n(r), t) || t;
|
|
2727
|
+
class Ju extends Error {
|
|
2726
2728
|
}
|
|
2727
|
-
const
|
|
2729
|
+
const Gw = (e) => {
|
|
2728
2730
|
const t = /* @__PURE__ */ Object.create(null);
|
|
2729
2731
|
e = e._addons.reduce((b, v) => v.beforeRequest && v.beforeRequest(b, e._options, t) || b, e);
|
|
2730
2732
|
const { _url: r, _options: n, _config: a, _catchers: i, _resolvers: o, _middlewares: c, _addons: l } = e, f = new Map(i), u = Qe(a.options, n);
|
|
2731
2733
|
let s = r;
|
|
2732
|
-
const d =
|
|
2734
|
+
const d = Kw(c)((b, v) => (s = b, a.polyfill("fetch")(b, v)))(r, u), h = new Error(), m = d.catch((b) => {
|
|
2733
2735
|
throw { [ft]: b };
|
|
2734
2736
|
}).then((b) => {
|
|
2735
2737
|
if (!b.ok) {
|
|
2736
|
-
const v = new
|
|
2738
|
+
const v = new Ju();
|
|
2737
2739
|
if (v.cause = h, v.stack = v.stack + `
|
|
2738
2740
|
CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
2739
2741
|
throw v;
|
|
@@ -2752,7 +2754,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2752
2754
|
const I = v.hasOwnProperty(ft), O = I ? v[ft] : v, _ = (O == null ? void 0 : O.status) && f.get(O.status) || f.get(O == null ? void 0 : O.name) || I && f.has(ft) && f.get(ft);
|
|
2753
2755
|
if (_)
|
|
2754
2756
|
return _(O, e);
|
|
2755
|
-
const C = f.get(
|
|
2757
|
+
const C = f.get(Yu);
|
|
2756
2758
|
if (C)
|
|
2757
2759
|
return C(O, e);
|
|
2758
2760
|
throw O;
|
|
@@ -2795,7 +2797,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2795
2797
|
...typeof v.resolver == "function" ? v.resolver(b) : v.resolver
|
|
2796
2798
|
}), $);
|
|
2797
2799
|
return o.reduce((b, v) => v(b, e), P);
|
|
2798
|
-
},
|
|
2800
|
+
}, Ww = {
|
|
2799
2801
|
_url: "",
|
|
2800
2802
|
_options: {},
|
|
2801
2803
|
_config: kt,
|
|
@@ -2845,7 +2847,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2845
2847
|
return this.headers({ Accept: e });
|
|
2846
2848
|
},
|
|
2847
2849
|
content(e) {
|
|
2848
|
-
return this.headers({ [
|
|
2850
|
+
return this.headers({ [Zu]: e });
|
|
2849
2851
|
},
|
|
2850
2852
|
auth(e) {
|
|
2851
2853
|
return this.headers({ Authorization: e });
|
|
@@ -2855,7 +2857,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2855
2857
|
return r.set(e, t), { ...this, _catchers: r };
|
|
2856
2858
|
},
|
|
2857
2859
|
catcherFallback(e) {
|
|
2858
|
-
return this.catcher(
|
|
2860
|
+
return this.catcher(Yu, e);
|
|
2859
2861
|
},
|
|
2860
2862
|
resolve(e, t = !1) {
|
|
2861
2863
|
return { ...this, _resolvers: t ? [e] : [...this._resolvers, e] };
|
|
@@ -2875,7 +2877,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2875
2877
|
fetch(e = this._options.method, t = "", r = null) {
|
|
2876
2878
|
let n = this.url(t).options({ method: e });
|
|
2877
2879
|
const a = ks(n._options.headers), i = this._config.polyfill("FormData", !1), o = typeof r == "object" && !(i && r instanceof i) && (!n._options.headers || !a || Ps(a));
|
|
2878
|
-
return n = r ? o ? n.json(r, a) : n.body(r) : n,
|
|
2880
|
+
return n = r ? o ? n.json(r, a) : n.body(r) : n, Gw(n._deferred.reduce((c, l) => l(c, c._url, c._options), n));
|
|
2879
2881
|
},
|
|
2880
2882
|
get(e = "") {
|
|
2881
2883
|
return this.fetch("GET", e);
|
|
@@ -2903,17 +2905,17 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2903
2905
|
},
|
|
2904
2906
|
json(e, t) {
|
|
2905
2907
|
const r = ks(this._options.headers);
|
|
2906
|
-
return this.content(t || Ps(r) && r ||
|
|
2908
|
+
return this.content(t || Ps(r) && r || Fw).body(JSON.stringify(e));
|
|
2907
2909
|
}
|
|
2908
2910
|
};
|
|
2909
2911
|
function Ce(e = "", t = {}) {
|
|
2910
|
-
return { ...
|
|
2912
|
+
return { ...Ww, _url: e, _options: t };
|
|
2911
2913
|
}
|
|
2912
2914
|
Ce.default = Ce;
|
|
2913
|
-
Ce.options =
|
|
2914
|
-
Ce.errorType =
|
|
2915
|
-
Ce.polyfills =
|
|
2916
|
-
Ce.WretchError =
|
|
2915
|
+
Ce.options = zw;
|
|
2916
|
+
Ce.errorType = Bw;
|
|
2917
|
+
Ce.polyfills = Hw;
|
|
2918
|
+
Ce.WretchError = Ju;
|
|
2917
2919
|
function pe() {
|
|
2918
2920
|
sessionStorage.removeItem(xa), ze(ye.CLEAR_CACHE, {});
|
|
2919
2921
|
}
|
|
@@ -2921,7 +2923,7 @@ function Ts() {
|
|
|
2921
2923
|
var r;
|
|
2922
2924
|
return (r = (document.documentElement.getAttribute("lang") ?? "en").split("-")[0]) == null ? void 0 : r.toLocaleLowerCase();
|
|
2923
2925
|
}
|
|
2924
|
-
function
|
|
2926
|
+
function Vw(e) {
|
|
2925
2927
|
const t = Ue("api2", e.environment), r = (w) => async (k, T) => {
|
|
2926
2928
|
let H = sessionStorage.getItem(xa);
|
|
2927
2929
|
H || (H = Date.now().toString(), sessionStorage.setItem(xa, H));
|
|
@@ -3086,7 +3088,7 @@ function Ww(e) {
|
|
|
3086
3088
|
return k.length && pe(), k;
|
|
3087
3089
|
}
|
|
3088
3090
|
async function y(w, k = 3600) {
|
|
3089
|
-
const { shortlink: T } = await Ce(
|
|
3091
|
+
const { shortlink: T } = await Ce(Cw).post({ url: w, ttl: k }).json();
|
|
3090
3092
|
return T;
|
|
3091
3093
|
}
|
|
3092
3094
|
async function E(w) {
|
|
@@ -3155,75 +3157,75 @@ function Ww(e) {
|
|
|
3155
3157
|
openHostedAccountPage: W
|
|
3156
3158
|
};
|
|
3157
3159
|
}
|
|
3158
|
-
const
|
|
3160
|
+
const Xu = "@sesamy/sesamy-js", Pi = "1.19.1";
|
|
3159
3161
|
function Es(e, t, r, n, a) {
|
|
3160
3162
|
for (t = t.split ? t.split(".") : t, n = 0; n < t.length; n++) e = e ? e[t[n]] : a;
|
|
3161
3163
|
return e === a ? r : e;
|
|
3162
3164
|
}
|
|
3163
3165
|
var kr = "undefined", Os = "object", Ua = function() {
|
|
3164
|
-
},
|
|
3166
|
+
}, qu = "any", Qu = "*", rt = "__", Gr = typeof process < "u" ? process : {};
|
|
3165
3167
|
Gr.env && Gr.env.NODE_ENV;
|
|
3166
3168
|
var Z = typeof document < "u";
|
|
3167
3169
|
Gr.versions != null && Gr.versions.node != null;
|
|
3168
3170
|
typeof Deno < "u" && Deno.core;
|
|
3169
3171
|
Z && window.name === "nodejs" || typeof navigator < "u" && navigator.userAgent !== void 0 && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom"));
|
|
3170
|
-
function
|
|
3172
|
+
function el(e, t) {
|
|
3171
3173
|
return t.charAt(0)[e]() + t.slice(1);
|
|
3172
3174
|
}
|
|
3173
|
-
var
|
|
3174
|
-
function
|
|
3175
|
-
return
|
|
3175
|
+
var Zw = el.bind(null, "toUpperCase"), Yw = el.bind(null, "toLowerCase");
|
|
3176
|
+
function Jw(e) {
|
|
3177
|
+
return tl(e) ? Zw("null") : typeof e == "object" ? eb(e) : Object.prototype.toString.call(e).slice(8, -1);
|
|
3176
3178
|
}
|
|
3177
3179
|
function Wr(e, t) {
|
|
3178
3180
|
t === void 0 && (t = !0);
|
|
3179
|
-
var r =
|
|
3180
|
-
return t ?
|
|
3181
|
+
var r = Jw(e);
|
|
3182
|
+
return t ? Yw(r) : r;
|
|
3181
3183
|
}
|
|
3182
3184
|
function ur(e, t) {
|
|
3183
3185
|
return typeof t === e;
|
|
3184
3186
|
}
|
|
3185
|
-
var re = ur.bind(null, "function"), Me = ur.bind(null, "string"), mt = ur.bind(null, "undefined"),
|
|
3187
|
+
var re = ur.bind(null, "function"), Me = ur.bind(null, "string"), mt = ur.bind(null, "undefined"), Xw = ur.bind(null, "boolean");
|
|
3186
3188
|
ur.bind(null, "symbol");
|
|
3187
|
-
function
|
|
3189
|
+
function tl(e) {
|
|
3188
3190
|
return e === null;
|
|
3189
3191
|
}
|
|
3190
|
-
function
|
|
3192
|
+
function qw(e) {
|
|
3191
3193
|
return Wr(e) === "number" && !isNaN(e);
|
|
3192
3194
|
}
|
|
3193
|
-
function
|
|
3195
|
+
function rl(e) {
|
|
3194
3196
|
return Wr(e) === "array";
|
|
3195
3197
|
}
|
|
3196
3198
|
function te(e) {
|
|
3197
|
-
if (!
|
|
3199
|
+
if (!Qw(e)) return !1;
|
|
3198
3200
|
for (var t = e; Object.getPrototypeOf(t) !== null; ) t = Object.getPrototypeOf(t);
|
|
3199
3201
|
return Object.getPrototypeOf(e) === t;
|
|
3200
3202
|
}
|
|
3201
|
-
function
|
|
3203
|
+
function Qw(e) {
|
|
3202
3204
|
return e && (typeof e == "object" || e !== null);
|
|
3203
3205
|
}
|
|
3204
|
-
function
|
|
3206
|
+
function eb(e) {
|
|
3205
3207
|
return re(e.constructor) ? e.constructor.name : null;
|
|
3206
3208
|
}
|
|
3207
|
-
function
|
|
3208
|
-
return e instanceof Error || Me(e.message) && e.constructor &&
|
|
3209
|
+
function tb(e) {
|
|
3210
|
+
return e instanceof Error || Me(e.message) && e.constructor && qw(e.constructor.stackTraceLimit);
|
|
3209
3211
|
}
|
|
3210
|
-
function
|
|
3211
|
-
if (typeof t != "object" ||
|
|
3212
|
+
function nl(e, t) {
|
|
3213
|
+
if (typeof t != "object" || tl(t)) return !1;
|
|
3212
3214
|
if (t instanceof e) return !0;
|
|
3213
3215
|
var r = Wr(new e(""));
|
|
3214
|
-
if (
|
|
3216
|
+
if (tb(t)) for (; t; ) {
|
|
3215
3217
|
if (Wr(t) === r) return !0;
|
|
3216
3218
|
t = Object.getPrototypeOf(t);
|
|
3217
3219
|
}
|
|
3218
3220
|
return !1;
|
|
3219
3221
|
}
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
+
nl.bind(null, TypeError);
|
|
3223
|
+
nl.bind(null, SyntaxError);
|
|
3222
3224
|
function on(e, t) {
|
|
3223
3225
|
var r = e instanceof Element || e instanceof HTMLDocument;
|
|
3224
|
-
return r && t ?
|
|
3226
|
+
return r && t ? rb(e, t) : r;
|
|
3225
3227
|
}
|
|
3226
|
-
function
|
|
3228
|
+
function rb(e, t) {
|
|
3227
3229
|
return t === void 0 && (t = ""), e && e.nodeName === t.toUpperCase();
|
|
3228
3230
|
}
|
|
3229
3231
|
function sn(e) {
|
|
@@ -3236,8 +3238,8 @@ sn(on, "form");
|
|
|
3236
3238
|
sn(on, "button");
|
|
3237
3239
|
sn(on, "input");
|
|
3238
3240
|
sn(on, "select");
|
|
3239
|
-
function
|
|
3240
|
-
return e ?
|
|
3241
|
+
function nb(e) {
|
|
3242
|
+
return e ? rl(e) ? e : [e] : [];
|
|
3241
3243
|
}
|
|
3242
3244
|
function _s(e) {
|
|
3243
3245
|
try {
|
|
@@ -3246,19 +3248,19 @@ function _s(e) {
|
|
|
3246
3248
|
return null;
|
|
3247
3249
|
}
|
|
3248
3250
|
}
|
|
3249
|
-
function
|
|
3251
|
+
function ab() {
|
|
3250
3252
|
if (Z) {
|
|
3251
3253
|
var e = navigator, t = e.languages;
|
|
3252
3254
|
return e.userLanguage || (t && t.length ? t[0] : e.language);
|
|
3253
3255
|
}
|
|
3254
3256
|
}
|
|
3255
|
-
function
|
|
3257
|
+
function ib() {
|
|
3256
3258
|
try {
|
|
3257
3259
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3258
3260
|
} catch {
|
|
3259
3261
|
}
|
|
3260
3262
|
}
|
|
3261
|
-
function
|
|
3263
|
+
function ob(e) {
|
|
3262
3264
|
return function(t) {
|
|
3263
3265
|
for (var r, n = /* @__PURE__ */ Object.create(null), a = /([^&=]+)=?([^&]*)/g; r = a.exec(t); ) {
|
|
3264
3266
|
var i = _s(r[1]), o = _s(r[2]);
|
|
@@ -3266,7 +3268,7 @@ function ib(e) {
|
|
|
3266
3268
|
}
|
|
3267
3269
|
for (var c in n) {
|
|
3268
3270
|
var l = c.split("[");
|
|
3269
|
-
l.length > 1 && (
|
|
3271
|
+
l.length > 1 && (sb(n, l.map(function(f) {
|
|
3270
3272
|
return f.replace(/[?[\]\\ ]/g, "");
|
|
3271
3273
|
}), n[c]), delete n[c]);
|
|
3272
3274
|
}
|
|
@@ -3275,7 +3277,7 @@ function ib(e) {
|
|
|
3275
3277
|
return Z && window.location.search.substring(1);
|
|
3276
3278
|
}());
|
|
3277
3279
|
}
|
|
3278
|
-
function
|
|
3280
|
+
function sb(e, t, r) {
|
|
3279
3281
|
for (var n = t.length - 1, a = 0; a < n; ++a) {
|
|
3280
3282
|
var i = t[a];
|
|
3281
3283
|
if (i === "__proto__" || i === "constructor") break;
|
|
@@ -3290,7 +3292,7 @@ function cn() {
|
|
|
3290
3292
|
}
|
|
3291
3293
|
return e;
|
|
3292
3294
|
}
|
|
3293
|
-
function
|
|
3295
|
+
function cb(e, t) {
|
|
3294
3296
|
var r, n, a, i = null, o = 0, c = function() {
|
|
3295
3297
|
o = /* @__PURE__ */ new Date(), i = null, a = e.apply(r, n);
|
|
3296
3298
|
};
|
|
@@ -3343,14 +3345,14 @@ function A() {
|
|
|
3343
3345
|
return e;
|
|
3344
3346
|
}, A.apply(this, arguments);
|
|
3345
3347
|
}
|
|
3346
|
-
var Ne = "function", Re = "undefined",
|
|
3348
|
+
var Ne = "function", Re = "undefined", ub = "@@redux/" + Math.random().toString(36), Rs = /* @__PURE__ */ function() {
|
|
3347
3349
|
return typeof Symbol === Ne && Symbol.observable || "@@observable";
|
|
3348
3350
|
}(), Tr = " != " + Ne;
|
|
3349
|
-
function
|
|
3351
|
+
function al(e, t, r) {
|
|
3350
3352
|
var n;
|
|
3351
3353
|
if (typeof t === Ne && typeof r === Re && (r = t, t = void 0), typeof r !== Re) {
|
|
3352
3354
|
if (typeof r !== Ne) throw new Error("enhancer" + Tr);
|
|
3353
|
-
return r(
|
|
3355
|
+
return r(al)(e, t);
|
|
3354
3356
|
}
|
|
3355
3357
|
if (typeof e !== Ne) throw new Error("reducer" + Tr);
|
|
3356
3358
|
var a = e, i = t, o = [], c = o, l = !1;
|
|
@@ -3399,7 +3401,7 @@ function nl(e, t, r) {
|
|
|
3399
3401
|
}, h;
|
|
3400
3402
|
}, n;
|
|
3401
3403
|
}
|
|
3402
|
-
function
|
|
3404
|
+
function lb(e, t) {
|
|
3403
3405
|
var r = t && t.type;
|
|
3404
3406
|
return "action " + (r && r.toString() || "?") + "reducer " + e + " returns " + Re;
|
|
3405
3407
|
}
|
|
@@ -3413,7 +3415,7 @@ function Et() {
|
|
|
3413
3415
|
};
|
|
3414
3416
|
});
|
|
3415
3417
|
}
|
|
3416
|
-
function
|
|
3418
|
+
function fb() {
|
|
3417
3419
|
var e = arguments;
|
|
3418
3420
|
return function(t) {
|
|
3419
3421
|
return function(r, n, a) {
|
|
@@ -3433,7 +3435,7 @@ var Fe = rt + "anon_id", et = rt + "user_id", yt = rt + "user_traits", xe = "use
|
|
|
3433
3435
|
}, pluginReadyType: function(e) {
|
|
3434
3436
|
return "ready:" + e;
|
|
3435
3437
|
} }), Cs = /^utm_/, js = /^an_prop_/, As = /^an_trait_/;
|
|
3436
|
-
function
|
|
3438
|
+
function db(e) {
|
|
3437
3439
|
var t = e.storage.setItem;
|
|
3438
3440
|
return function(r) {
|
|
3439
3441
|
return function(n) {
|
|
@@ -3462,7 +3464,7 @@ function fb(e) {
|
|
|
3462
3464
|
};
|
|
3463
3465
|
};
|
|
3464
3466
|
}
|
|
3465
|
-
function
|
|
3467
|
+
function hb(e) {
|
|
3466
3468
|
return function(t, r) {
|
|
3467
3469
|
if (t === void 0 && (t = {}), r === void 0 && (r = {}), r.type === j.setItemEnd) {
|
|
3468
3470
|
if (r.key === Fe) return A({}, t, { anonymousId: r.value });
|
|
@@ -3486,7 +3488,7 @@ function Ls(e) {
|
|
|
3486
3488
|
var Da = function(e) {
|
|
3487
3489
|
return rt + "TEMP" + rt + e;
|
|
3488
3490
|
};
|
|
3489
|
-
function
|
|
3491
|
+
function vb(e) {
|
|
3490
3492
|
var t = e.storage, r = t.setItem, n = t.removeItem, a = t.getItem;
|
|
3491
3493
|
return function(i) {
|
|
3492
3494
|
return function(o) {
|
|
@@ -3510,19 +3512,19 @@ var Wt = {};
|
|
|
3510
3512
|
function xs(e, t) {
|
|
3511
3513
|
Wt[e] && re(Wt[e]) && (Wt[e](t), delete Wt[e]);
|
|
3512
3514
|
}
|
|
3513
|
-
function
|
|
3515
|
+
function il(e, t, r) {
|
|
3514
3516
|
return new Promise(function(n, a) {
|
|
3515
3517
|
return t() ? n(e) : r < 1 ? a(A({}, e, { queue: !0 })) : new Promise(function(i) {
|
|
3516
3518
|
return setTimeout(i, 10);
|
|
3517
3519
|
}).then(function(i) {
|
|
3518
|
-
return
|
|
3520
|
+
return il(e, t, r - 10).then(n, a);
|
|
3519
3521
|
});
|
|
3520
3522
|
});
|
|
3521
3523
|
}
|
|
3522
|
-
function
|
|
3524
|
+
function pb(e) {
|
|
3523
3525
|
return { abort: e };
|
|
3524
3526
|
}
|
|
3525
|
-
function
|
|
3527
|
+
function ol(e, t, r) {
|
|
3526
3528
|
var n = {}, a = t(), i = e.getState(), o = i.plugins, c = i.queue, l = i.user;
|
|
3527
3529
|
if (!i.context.offline && c && c.actions && c.actions.length) {
|
|
3528
3530
|
var f = c.actions.reduce(function(s, d, h) {
|
|
@@ -3537,7 +3539,7 @@ function il(e, t, r) {
|
|
|
3537
3539
|
return v.hasOwnProperty(_) && I[_] && I[_] !== v[_] && (O[_] = I[_]), O;
|
|
3538
3540
|
}, v);
|
|
3539
3541
|
}(d.payload, l), P = n[$.meta.rid];
|
|
3540
|
-
if (!P && (g = S({ payload: $, config: o[h].config, instance: r, abort:
|
|
3542
|
+
if (!P && (g = S({ payload: $, config: o[h].config, instance: r, abort: pb })) && te(g) && g.abort) return void (n[$.meta.rid] = !0);
|
|
3541
3543
|
if (!P) {
|
|
3542
3544
|
var b = m + ":" + h;
|
|
3543
3545
|
e.dispatch(A({}, $, { type: b, _: { called: b, from: "queueDrain" } }));
|
|
@@ -3575,7 +3577,7 @@ var ia = function(e) {
|
|
|
3575
3577
|
throw new Error(M.type + " action not cancellable. Remove abort in " + F);
|
|
3576
3578
|
};
|
|
3577
3579
|
}(P, _);
|
|
3578
|
-
return { payload:
|
|
3580
|
+
return { payload: mb(P), instance: g, config: I || {}, abort: C };
|
|
3579
3581
|
};
|
|
3580
3582
|
}(n, h), S = t.exact.reduce(function(g, $) {
|
|
3581
3583
|
var P = $.pluginName, b = $.methodName, v = !1;
|
|
@@ -3647,7 +3649,7 @@ var ia = function(e) {
|
|
|
3647
3649
|
if (!(s.match(wt) || s.match(/^registerPlugin/) || s.match(Ns) || s.match(Us) || s.match(/^params/) || s.match(/^userIdChanged/))) {
|
|
3648
3650
|
if (l.plugins.includes(s), $._ && $._.originalAction === s) return $;
|
|
3649
3651
|
var P = A({}, $, { _: { originalAction: $.type, called: $.type, from: "engineEnd" } });
|
|
3650
|
-
|
|
3652
|
+
sl($, t.exact.length) && !s.match(/End$/) && (P = A({}, P, { type: $.type + "Aborted" })), c.dispatch(P);
|
|
3651
3653
|
}
|
|
3652
3654
|
return $;
|
|
3653
3655
|
});
|
|
@@ -3677,7 +3679,7 @@ function sa(e, t) {
|
|
|
3677
3679
|
var r = e.abort;
|
|
3678
3680
|
return !!r && (r === !0 || zs(r, t) || r && zs(r.plugins, t));
|
|
3679
3681
|
}
|
|
3680
|
-
function
|
|
3682
|
+
function sl(e, t) {
|
|
3681
3683
|
var r = e.abort;
|
|
3682
3684
|
if (!r) return !1;
|
|
3683
3685
|
if (r === !0 || Me(r)) return !0;
|
|
@@ -3694,12 +3696,12 @@ function Hs(e) {
|
|
|
3694
3696
|
var t = e.match(/(.*):(.*)/);
|
|
3695
3697
|
return !!t && { method: t[1], name: t[2] };
|
|
3696
3698
|
}
|
|
3697
|
-
function
|
|
3699
|
+
function mb(e) {
|
|
3698
3700
|
return Object.keys(e).reduce(function(t, r) {
|
|
3699
3701
|
return r === "type" || (t[r] = te(e[r]) ? Object.assign({}, e[r]) : e[r]), t;
|
|
3700
3702
|
}, {});
|
|
3701
3703
|
}
|
|
3702
|
-
function
|
|
3704
|
+
function gb(e, t, r) {
|
|
3703
3705
|
var n = {};
|
|
3704
3706
|
return function(a) {
|
|
3705
3707
|
return function(i) {
|
|
@@ -3718,7 +3720,7 @@ function mb(e, t, r) {
|
|
|
3718
3720
|
return d[v];
|
|
3719
3721
|
}), S = [], g = [], $ = o.disabled, P = m.map(function(v) {
|
|
3720
3722
|
var I = v.loaded, O = v.name, _ = v.config;
|
|
3721
|
-
return
|
|
3723
|
+
return il(v, function() {
|
|
3722
3724
|
return I({ config: _ });
|
|
3723
3725
|
}, 1e4).then(function(C) {
|
|
3724
3726
|
return n[O] || (a.dispatch({ type: j.pluginReadyType(O), name: O, events: Object.keys(v).filter(function(M) {
|
|
@@ -3738,14 +3740,14 @@ function mb(e, t, r) {
|
|
|
3738
3740
|
}
|
|
3739
3741
|
var b = function() {
|
|
3740
3742
|
if (f !== j.bootstrap) return /^ready:([^:]*)$/.test(f) && setTimeout(function() {
|
|
3741
|
-
return
|
|
3743
|
+
return ol(a, t, e);
|
|
3742
3744
|
}, 0), Promise.resolve(function(v, I, O, _, C) {
|
|
3743
3745
|
try {
|
|
3744
3746
|
var M = re(I) ? I() : I, F = v.type, G = F.replace(wt, "");
|
|
3745
3747
|
if (v._ && v._.called) return Promise.resolve(v);
|
|
3746
3748
|
var L = O.getState(), N = (B = M, (V = L.plugins) === void 0 && (V = {}), (Te = v.options) === void 0 && (Te = {}), Object.keys(B).filter(function(p) {
|
|
3747
3749
|
var y = Te.plugins || {};
|
|
3748
|
-
return
|
|
3750
|
+
return Xw(y[p]) ? y[p] : y.all !== !1 && (!V[p] || V[p].enabled !== !1);
|
|
3749
3751
|
}).map(function(p) {
|
|
3750
3752
|
return B[p];
|
|
3751
3753
|
}));
|
|
@@ -3779,7 +3781,7 @@ function mb(e, t, r) {
|
|
|
3779
3781
|
return p;
|
|
3780
3782
|
}) : p;
|
|
3781
3783
|
}
|
|
3782
|
-
if (
|
|
3784
|
+
if (sl(p, z.length)) return p;
|
|
3783
3785
|
var E, x = function() {
|
|
3784
3786
|
if (F !== G) return Promise.resolve(ia({ action: A({}, p, { type: G }), data: { exact: R.during, namespaced: R.duringNS }, state: L, allPlugins: M, allMatches: R, instance: O, store: _, EVENTS: C })).then(function(U) {
|
|
3785
3787
|
E = U;
|
|
@@ -3804,7 +3806,7 @@ function mb(e, t, r) {
|
|
|
3804
3806
|
};
|
|
3805
3807
|
};
|
|
3806
3808
|
}
|
|
3807
|
-
function
|
|
3809
|
+
function yb(e) {
|
|
3808
3810
|
return function(t) {
|
|
3809
3811
|
return function(r) {
|
|
3810
3812
|
return function(n) {
|
|
@@ -3818,7 +3820,7 @@ function gb(e) {
|
|
|
3818
3820
|
};
|
|
3819
3821
|
};
|
|
3820
3822
|
}
|
|
3821
|
-
var
|
|
3823
|
+
var wb = function() {
|
|
3822
3824
|
var e = this;
|
|
3823
3825
|
this.before = [], this.after = [], this.addMiddleware = function(t, r) {
|
|
3824
3826
|
e[r] = e[r].concat(t);
|
|
@@ -3842,7 +3844,7 @@ var yb = function() {
|
|
|
3842
3844
|
};
|
|
3843
3845
|
};
|
|
3844
3846
|
};
|
|
3845
|
-
function
|
|
3847
|
+
function bb(e) {
|
|
3846
3848
|
return function(t, r) {
|
|
3847
3849
|
t === void 0 && (t = {});
|
|
3848
3850
|
var n = {};
|
|
@@ -3876,26 +3878,26 @@ function Ks(e, t, r) {
|
|
|
3876
3878
|
return n[a] = A({}, r[a], { enabled: t }), n;
|
|
3877
3879
|
}, r);
|
|
3878
3880
|
}
|
|
3879
|
-
function
|
|
3881
|
+
function cl(e) {
|
|
3880
3882
|
try {
|
|
3881
3883
|
return JSON.parse(JSON.stringify(e));
|
|
3882
3884
|
} catch {
|
|
3883
3885
|
}
|
|
3884
3886
|
return e;
|
|
3885
3887
|
}
|
|
3886
|
-
var
|
|
3887
|
-
function
|
|
3888
|
-
e === void 0 && (e =
|
|
3888
|
+
var Sb = { last: {}, history: [] };
|
|
3889
|
+
function Ib(e, t) {
|
|
3890
|
+
e === void 0 && (e = Sb);
|
|
3889
3891
|
var r = t.options, n = t.meta;
|
|
3890
3892
|
if (t.type === j.track) {
|
|
3891
|
-
var a =
|
|
3893
|
+
var a = cl(A({ event: t.event, properties: t.properties }, Object.keys(r).length && { options: r }, { meta: n }));
|
|
3892
3894
|
return A({}, e, { last: a, history: e.history.concat(a) });
|
|
3893
3895
|
}
|
|
3894
3896
|
return e;
|
|
3895
3897
|
}
|
|
3896
|
-
var
|
|
3897
|
-
function
|
|
3898
|
-
e === void 0 && (e =
|
|
3898
|
+
var $b = { actions: [] };
|
|
3899
|
+
function kb(e, t) {
|
|
3900
|
+
e === void 0 && (e = $b);
|
|
3899
3901
|
var r = t.payload;
|
|
3900
3902
|
switch (t.type) {
|
|
3901
3903
|
case "queue":
|
|
@@ -3907,12 +3909,12 @@ function $b(e, t) {
|
|
|
3907
3909
|
return e;
|
|
3908
3910
|
}
|
|
3909
3911
|
}
|
|
3910
|
-
var
|
|
3911
|
-
function
|
|
3912
|
+
var ul = /#.*$/;
|
|
3913
|
+
function Pb(e) {
|
|
3912
3914
|
var t = /(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(e);
|
|
3913
|
-
return "/" + (t && t[3] ? t[3].split("?")[0].replace(
|
|
3915
|
+
return "/" + (t && t[3] ? t[3].split("?")[0].replace(ul, "") : "");
|
|
3914
3916
|
}
|
|
3915
|
-
var
|
|
3917
|
+
var ll, fl, dl, hl, Tb = function(e) {
|
|
3916
3918
|
if (e === void 0 && (e = {}), !Z) return e;
|
|
3917
3919
|
var t = document, r = t.title, n = t.referrer, a = window, i = a.location, o = a.innerWidth, c = a.innerHeight, l = i.hash, f = i.search, u = function(d) {
|
|
3918
3920
|
var h = function() {
|
|
@@ -3920,26 +3922,26 @@ var ul, ll, fl, dl, Pb = function(e) {
|
|
|
3920
3922
|
for (var m, S = document.getElementsByTagName("link"), g = 0; m = S[g]; g++) if (m.getAttribute("rel") === "canonical") return m.getAttribute("href");
|
|
3921
3923
|
}
|
|
3922
3924
|
}();
|
|
3923
|
-
return h ? h.match(/\?/) ? h : h + d : window.location.href.replace(
|
|
3924
|
-
}(f), s = { title: r, url: u, path:
|
|
3925
|
+
return h ? h.match(/\?/) ? h : h + d : window.location.href.replace(ul, "");
|
|
3926
|
+
}(f), s = { title: r, url: u, path: Pb(u), hash: l, search: f, width: o, height: c };
|
|
3925
3927
|
return n && n !== "" && (s.referrer = n), A({}, s, e);
|
|
3926
|
-
},
|
|
3927
|
-
function
|
|
3928
|
-
e === void 0 && (e =
|
|
3928
|
+
}, Eb = { last: {}, history: [] };
|
|
3929
|
+
function Ob(e, t) {
|
|
3930
|
+
e === void 0 && (e = Eb);
|
|
3929
3931
|
var r = t.options;
|
|
3930
3932
|
if (t.type === j.page) {
|
|
3931
|
-
var n =
|
|
3933
|
+
var n = cl(A({ properties: t.properties, meta: t.meta }, Object.keys(r).length && { options: r }));
|
|
3932
3934
|
return A({}, e, { last: n, history: e.history.concat(n) });
|
|
3933
3935
|
}
|
|
3934
3936
|
return e;
|
|
3935
3937
|
}
|
|
3936
|
-
|
|
3938
|
+
ll = function() {
|
|
3937
3939
|
if (!Z) return !1;
|
|
3938
3940
|
var e = navigator.appVersion;
|
|
3939
3941
|
return ~e.indexOf("Win") ? "Windows" : ~e.indexOf("Mac") ? "MacOS" : ~e.indexOf("X11") ? "UNIX" : ~e.indexOf("Linux") ? "Linux" : "Unknown OS";
|
|
3940
|
-
}(),
|
|
3941
|
-
var Gs = { initialized: !1, sessionId: cn(), app: null, version: null, debug: !1, offline: !!Z && !navigator.onLine, os: { name:
|
|
3942
|
-
function
|
|
3942
|
+
}(), fl = Z ? document.referrer : null, dl = ab(), hl = ib();
|
|
3943
|
+
var Gs = { initialized: !1, sessionId: cn(), app: null, version: null, debug: !1, offline: !!Z && !navigator.onLine, os: { name: ll }, userAgent: Z ? navigator.userAgent : "node", library: { name: "analytics", version: "0.12.13" }, timezone: hl, locale: dl, campaign: {}, referrer: fl };
|
|
3944
|
+
function _b(e, t) {
|
|
3943
3945
|
e === void 0 && (e = Gs);
|
|
3944
3946
|
var r = e.initialized, n = t.campaign;
|
|
3945
3947
|
switch (t.type) {
|
|
@@ -3953,8 +3955,8 @@ function Ob(e, t) {
|
|
|
3953
3955
|
return r ? e : A({}, Gs, e, { initialized: !0 });
|
|
3954
3956
|
}
|
|
3955
3957
|
}
|
|
3956
|
-
var
|
|
3957
|
-
function
|
|
3958
|
+
var Rb = ["plugins", "reducers", "storage"];
|
|
3959
|
+
function Cb(e, t, r) {
|
|
3958
3960
|
if (Z) {
|
|
3959
3961
|
var n = window[(r ? "add" : "remove") + "EventListener"];
|
|
3960
3962
|
e.split(" ").forEach(function(a) {
|
|
@@ -3962,15 +3964,15 @@ function Rb(e, t, r) {
|
|
|
3962
3964
|
});
|
|
3963
3965
|
}
|
|
3964
3966
|
}
|
|
3965
|
-
function
|
|
3966
|
-
var t =
|
|
3967
|
+
function jb(e) {
|
|
3968
|
+
var t = Cb.bind(null, "online offline", function(r) {
|
|
3967
3969
|
return Promise.resolve(!navigator.onLine).then(e);
|
|
3968
3970
|
});
|
|
3969
3971
|
return t(!0), function(r) {
|
|
3970
3972
|
return t(!1);
|
|
3971
3973
|
};
|
|
3972
3974
|
}
|
|
3973
|
-
function
|
|
3975
|
+
function vl() {
|
|
3974
3976
|
return at("analytics", []), function(e) {
|
|
3975
3977
|
return function(t, r, n) {
|
|
3976
3978
|
var a = e(t, r, n), i = a.dispatch;
|
|
@@ -3982,11 +3984,11 @@ function hl() {
|
|
|
3982
3984
|
}
|
|
3983
3985
|
function Ws(e) {
|
|
3984
3986
|
return function() {
|
|
3985
|
-
return Et(Et.apply(null, arguments),
|
|
3987
|
+
return Et(Et.apply(null, arguments), vl());
|
|
3986
3988
|
};
|
|
3987
3989
|
}
|
|
3988
3990
|
function ca(e) {
|
|
3989
|
-
return e ?
|
|
3991
|
+
return e ? rl(e) ? e : [e] : [];
|
|
3990
3992
|
}
|
|
3991
3993
|
function Vs(e, t, r) {
|
|
3992
3994
|
e === void 0 && (e = {});
|
|
@@ -4001,7 +4003,7 @@ function Vs(e, t, r) {
|
|
|
4001
4003
|
a && a(o), n(o);
|
|
4002
4004
|
})), A({}, e, { rid: i, ts: (/* @__PURE__ */ new Date()).getTime() }, t ? { hasCallback: !0 } : {});
|
|
4003
4005
|
}
|
|
4004
|
-
function
|
|
4006
|
+
function Ab(e) {
|
|
4005
4007
|
e === void 0 && (e = {});
|
|
4006
4008
|
var t = e.reducers || {}, r = e.initialUser || {}, n = (e.plugins || []).reduce(function(p, y) {
|
|
4007
4009
|
if (re(y)) return p.middlewares = p.middlewares.concat(y), p;
|
|
@@ -4032,9 +4034,9 @@ function jb(e) {
|
|
|
4032
4034
|
return !Na.includes(p);
|
|
4033
4035
|
})), f = Array.from(l).sort(), u = function() {
|
|
4034
4036
|
return o;
|
|
4035
|
-
}, s = new
|
|
4037
|
+
}, s = new wb(), d = s.addMiddleware, h = s.removeMiddleware, m = s.dynamicMiddlewares, S = function() {
|
|
4036
4038
|
throw new Error("Abort disabled inListener");
|
|
4037
|
-
}, g =
|
|
4039
|
+
}, g = ob(), $ = Ls(a), P = A({}, $, r, g.an_uid ? { userId: g.an_uid } : {}, g.an_aid ? { anonymousId: g.an_aid } : {});
|
|
4038
4040
|
P.anonymousId || (P.anonymousId = cn());
|
|
4039
4041
|
var b = A({ enable: function(p, y) {
|
|
4040
4042
|
return new Promise(function(E) {
|
|
@@ -4070,7 +4072,7 @@ function jb(e) {
|
|
|
4070
4072
|
try {
|
|
4071
4073
|
var x = te(p) ? p : {}, U = te(y) ? y : {};
|
|
4072
4074
|
return Promise.resolve(new Promise(function(D) {
|
|
4073
|
-
R.dispatch({ type: j.pageStart, properties:
|
|
4075
|
+
R.dispatch({ type: j.pageStart, properties: Tb(x), options: U, userId: i(xe, I, x), anonymousId: i(gt, I, x) }, D, [p, y, E]);
|
|
4074
4076
|
}));
|
|
4075
4077
|
} catch (D) {
|
|
4076
4078
|
return Promise.reject(D);
|
|
@@ -4147,21 +4149,21 @@ function jb(e) {
|
|
|
4147
4149
|
return E.meta || (E.meta = Vs()), y(E);
|
|
4148
4150
|
};
|
|
4149
4151
|
};
|
|
4150
|
-
}, m(Er),
|
|
4152
|
+
}, m(Er), gb(I, u, { all: f, plugins: c }), yb(a), db(I), vb(I), m(Or)]), _ = { context: _b, user: hb(a), page: Ob, track: Ib, plugins: bb(u), queue: kb }, C = Et, M = Et;
|
|
4151
4153
|
if (Z && e.debug) {
|
|
4152
4154
|
var F = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
|
|
4153
4155
|
F && (C = F({ trace: !0, traceLimit: 25 })), M = function() {
|
|
4154
|
-
return arguments.length === 0 ?
|
|
4156
|
+
return arguments.length === 0 ? vl() : te(typeof arguments[0]) ? Ws() : Ws().apply(null, arguments);
|
|
4155
4157
|
};
|
|
4156
4158
|
}
|
|
4157
4159
|
var G, L = function(p) {
|
|
4158
4160
|
return Object.keys(p).reduce(function(y, E) {
|
|
4159
|
-
return
|
|
4161
|
+
return Rb.includes(E) || (y[E] = p[E]), y;
|
|
4160
4162
|
}, {});
|
|
4161
4163
|
}(e), N = n.pluginsArray.reduce(function(p, y) {
|
|
4162
4164
|
var E = y.name, x = y.config, U = y.loaded, D = n.pluginEnabled[E];
|
|
4163
4165
|
return p[E] = { enabled: D, initialized: !!D && !y.initialize, loaded: !!U({ config: x }), config: x }, p;
|
|
4164
|
-
}, {}), z = { context: L, user: P, plugins: N }, R =
|
|
4166
|
+
}, {}), z = { context: L, user: P, plugins: N }, R = al(function(p) {
|
|
4165
4167
|
for (var y = Object.keys(p), E = {}, x = 0; x < y.length; x++) {
|
|
4166
4168
|
var U = y[x];
|
|
4167
4169
|
typeof p[U] === Ne && (E[U] = p[U]);
|
|
@@ -4171,7 +4173,7 @@ function jb(e) {
|
|
|
4171
4173
|
(function(w) {
|
|
4172
4174
|
Object.keys(w).forEach(function(k) {
|
|
4173
4175
|
var T = w[k];
|
|
4174
|
-
if (typeof T(void 0, { type: "@@redux/INIT" }) === Re || typeof T(void 0, { type:
|
|
4176
|
+
if (typeof T(void 0, { type: "@@redux/INIT" }) === Re || typeof T(void 0, { type: ub }) === Re) throw new Error("reducer " + k + " " + Re);
|
|
4175
4177
|
});
|
|
4176
4178
|
})(E);
|
|
4177
4179
|
} catch (w) {
|
|
@@ -4182,14 +4184,14 @@ function jb(e) {
|
|
|
4182
4184
|
for (var T = !1, H = {}, ee = 0; ee < W.length; ee++) {
|
|
4183
4185
|
var Ae = W[ee], Ai = w[Ae], fn = (0, E[Ae])(Ai, k);
|
|
4184
4186
|
if (typeof fn === Re) {
|
|
4185
|
-
var
|
|
4186
|
-
throw new Error(
|
|
4187
|
+
var El = lb(Ae, k);
|
|
4188
|
+
throw new Error(El);
|
|
4187
4189
|
}
|
|
4188
4190
|
H[Ae] = fn, T = T || fn !== Ai;
|
|
4189
4191
|
}
|
|
4190
4192
|
return T ? H : w;
|
|
4191
4193
|
};
|
|
4192
|
-
}(A({}, _, t)), z, M(C(
|
|
4194
|
+
}(A({}, _, t)), z, M(C(fb.apply(void 0, O))));
|
|
4193
4195
|
R.dispatch = (G = R.dispatch, function(p, y, E) {
|
|
4194
4196
|
var x = A({}, p, { meta: Vs(p.meta, y, ca(E)) });
|
|
4195
4197
|
return G.apply(null, [x]);
|
|
@@ -4204,23 +4206,23 @@ function jb(e) {
|
|
|
4204
4206
|
return R.dispatch({ type: j.registerPlugins, plugins: B, enabled: n.pluginEnabled }), n.pluginsArray.map(function(p, y) {
|
|
4205
4207
|
var E = p.bootstrap, x = p.config, U = p.name;
|
|
4206
4208
|
E && re(E) && E({ instance: I, config: x, payload: p }), R.dispatch({ type: j.registerPluginType(U), name: U, enabled: n.pluginEnabled[U], plugin: p }), n.pluginsArray.length === y + 1 && R.dispatch({ type: j.initializeStart, plugins: V, disabled: Te });
|
|
4207
|
-
}),
|
|
4209
|
+
}), jb(function(p) {
|
|
4208
4210
|
R.dispatch({ type: p ? j.offline : j.online });
|
|
4209
4211
|
}), function(p, y, E) {
|
|
4210
4212
|
setInterval(function() {
|
|
4211
|
-
return
|
|
4213
|
+
return ol(p, y, E);
|
|
4212
4214
|
}, 3e3);
|
|
4213
4215
|
}(R, u, I), I;
|
|
4214
4216
|
}
|
|
4215
|
-
var Er = "before", Or = "after", qt = "cookie", Ye =
|
|
4216
|
-
function
|
|
4217
|
+
var Er = "before", Or = "after", qt = "cookie", Ye = gl(), pl = un, Lb = un;
|
|
4218
|
+
function ml(e) {
|
|
4217
4219
|
return Ye ? un(e, "", -1) : jt(e);
|
|
4218
4220
|
}
|
|
4219
|
-
function
|
|
4221
|
+
function gl() {
|
|
4220
4222
|
if (Ye !== void 0) return Ye;
|
|
4221
4223
|
var e = "cookiecookie";
|
|
4222
4224
|
try {
|
|
4223
|
-
un(e, e), Ye = document.cookie.indexOf(e) !== -1,
|
|
4225
|
+
un(e, e), Ye = document.cookie.indexOf(e) !== -1, ml(e);
|
|
4224
4226
|
} catch {
|
|
4225
4227
|
Ye = !1;
|
|
4226
4228
|
}
|
|
@@ -4232,11 +4234,11 @@ function un(e, t, r, n, a, i) {
|
|
|
4232
4234
|
return Ye === !1 && (o ? at(e, t) : nt(e)), o ? document.cookie = e + "=" + encodeURIComponent(t) + (r ? "; expires=" + new Date(+/* @__PURE__ */ new Date() + 1e3 * r).toUTCString() + (n ? "; path=" + n : "") + (a ? "; domain=" + a : "") + (i ? "; secure" : "") : "") : decodeURIComponent((("; " + document.cookie).split("; " + e + "=")[1] || "").split(";")[0]);
|
|
4233
4235
|
}
|
|
4234
4236
|
}
|
|
4235
|
-
var Qt = "localStorage",
|
|
4237
|
+
var Qt = "localStorage", xb = Ti.bind(null, "localStorage");
|
|
4236
4238
|
At("localStorage", "getItem", nt);
|
|
4237
4239
|
At("localStorage", "setItem", at);
|
|
4238
4240
|
At("localStorage", "removeItem", jt);
|
|
4239
|
-
var er = "sessionStorage",
|
|
4241
|
+
var er = "sessionStorage", Ub = Ti.bind(null, "sessionStorage");
|
|
4240
4242
|
At("sessionStorage", "getItem", nt);
|
|
4241
4243
|
At("sessionStorage", "setItem", at);
|
|
4242
4244
|
At("sessionStorage", "removeItem", jt);
|
|
@@ -4251,12 +4253,12 @@ function bt(e) {
|
|
|
4251
4253
|
}
|
|
4252
4254
|
if (t !== null && t !== "") return t;
|
|
4253
4255
|
}
|
|
4254
|
-
var
|
|
4255
|
-
function
|
|
4256
|
+
var Nb = xb(), Db = Ub(), Mb = gl();
|
|
4257
|
+
function yl(e, t) {
|
|
4256
4258
|
if (e) {
|
|
4257
4259
|
var r = Ei(t), n = !Ci(r), a = Oi(r) ? bt(localStorage.getItem(e)) : void 0;
|
|
4258
4260
|
if (n && !mt(a)) return a;
|
|
4259
|
-
var i = _i(r) ? bt(
|
|
4261
|
+
var i = _i(r) ? bt(pl(e)) : void 0;
|
|
4260
4262
|
if (n && i) return i;
|
|
4261
4263
|
var o = Ri(r) ? bt(sessionStorage.getItem(e)) : void 0;
|
|
4262
4264
|
if (n && o) return o;
|
|
@@ -4264,41 +4266,41 @@ function gl(e, t) {
|
|
|
4264
4266
|
return n ? c : { localStorage: a, sessionStorage: o, cookie: i, global: c };
|
|
4265
4267
|
}
|
|
4266
4268
|
}
|
|
4267
|
-
function
|
|
4269
|
+
function Fb(e, t, r) {
|
|
4268
4270
|
if (e && !mt(t)) {
|
|
4269
4271
|
var n = {}, a = Ei(r), i = JSON.stringify(t), o = !Ci(a);
|
|
4270
|
-
return Oi(a) && (n[Qt] = _r(Qt, t, bt(localStorage.getItem(e))), localStorage.setItem(e, i), o) ? n[Qt] : _i(a) && (n[qt] = _r(qt, t, bt(
|
|
4272
|
+
return Oi(a) && (n[Qt] = _r(Qt, t, bt(localStorage.getItem(e))), localStorage.setItem(e, i), o) ? n[Qt] : _i(a) && (n[qt] = _r(qt, t, bt(pl(e))), Lb(e, i), o) ? n[qt] : Ri(a) && (n[er] = _r(er, t, bt(sessionStorage.getItem(e))), sessionStorage.setItem(e, i), o) ? n[er] : (n[Xt] = _r(Xt, t, nt(e)), at(e, t), o ? n[Xt] : n);
|
|
4271
4273
|
}
|
|
4272
4274
|
}
|
|
4273
|
-
function
|
|
4275
|
+
function zb(e, t) {
|
|
4274
4276
|
if (e) {
|
|
4275
|
-
var r = Ei(t), n =
|
|
4276
|
-
return !mt(n.localStorage) && Oi(r) && (localStorage.removeItem(e), a[Qt] = n.localStorage), !mt(n.cookie) && _i(r) && (
|
|
4277
|
+
var r = Ei(t), n = yl(e, Qu), a = {};
|
|
4278
|
+
return !mt(n.localStorage) && Oi(r) && (localStorage.removeItem(e), a[Qt] = n.localStorage), !mt(n.cookie) && _i(r) && (ml(e), a[qt] = n.cookie), !mt(n.sessionStorage) && Ri(r) && (sessionStorage.removeItem(e), a[er] = n.sessionStorage), !mt(n.global) && ln(r, Xt) && (jt(e), a[Xt] = n.global), a;
|
|
4277
4279
|
}
|
|
4278
4280
|
}
|
|
4279
4281
|
function Ei(e) {
|
|
4280
|
-
return e ? Me(e) ? e : e.storage :
|
|
4282
|
+
return e ? Me(e) ? e : e.storage : qu;
|
|
4281
4283
|
}
|
|
4282
4284
|
function Oi(e) {
|
|
4283
|
-
return
|
|
4285
|
+
return Nb && ln(e, Qt);
|
|
4284
4286
|
}
|
|
4285
4287
|
function _i(e) {
|
|
4286
|
-
return
|
|
4288
|
+
return Mb && ln(e, qt);
|
|
4287
4289
|
}
|
|
4288
4290
|
function Ri(e) {
|
|
4289
|
-
return
|
|
4291
|
+
return Db && ln(e, er);
|
|
4290
4292
|
}
|
|
4291
4293
|
function Ci(e) {
|
|
4292
|
-
return e ===
|
|
4294
|
+
return e === Qu || e === "all";
|
|
4293
4295
|
}
|
|
4294
4296
|
function ln(e, t) {
|
|
4295
|
-
return e ===
|
|
4297
|
+
return e === qu || e === t || Ci(e);
|
|
4296
4298
|
}
|
|
4297
4299
|
function _r(e, t, r) {
|
|
4298
4300
|
return { location: e, current: t, previous: r };
|
|
4299
4301
|
}
|
|
4300
|
-
var
|
|
4301
|
-
function
|
|
4302
|
+
var Hb = { setItem: Fb, getItem: yl, removeItem: zb };
|
|
4303
|
+
function Bb(e, t, r) {
|
|
4302
4304
|
return t in e ? Object.defineProperty(e, t, {
|
|
4303
4305
|
value: r,
|
|
4304
4306
|
enumerable: !0,
|
|
@@ -4320,20 +4322,20 @@ function Ys(e) {
|
|
|
4320
4322
|
for (var t = 1; t < arguments.length; t++) {
|
|
4321
4323
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
4322
4324
|
t % 2 ? Zs(Object(r), !0).forEach(function(n) {
|
|
4323
|
-
|
|
4325
|
+
Bb(e, n, r[n]);
|
|
4324
4326
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Zs(Object(r)).forEach(function(n) {
|
|
4325
4327
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4326
4328
|
});
|
|
4327
4329
|
}
|
|
4328
4330
|
return e;
|
|
4329
4331
|
}
|
|
4330
|
-
function
|
|
4332
|
+
function Kb() {
|
|
4331
4333
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = {
|
|
4332
|
-
storage:
|
|
4334
|
+
storage: Hb
|
|
4333
4335
|
};
|
|
4334
|
-
return
|
|
4336
|
+
return Ab(Ys(Ys({}, t), e));
|
|
4335
4337
|
}
|
|
4336
|
-
function
|
|
4338
|
+
function Gb(e, t) {
|
|
4337
4339
|
t = t || {};
|
|
4338
4340
|
var r, n, a = [], i = t.max || 1 / 0;
|
|
4339
4341
|
function o() {
|
|
@@ -4355,7 +4357,7 @@ function Kb(e, t) {
|
|
|
4355
4357
|
}
|
|
4356
4358
|
};
|
|
4357
4359
|
}
|
|
4358
|
-
function
|
|
4360
|
+
function Wb(e) {
|
|
4359
4361
|
if (typeof window > "u") return;
|
|
4360
4362
|
const { addEventListener: t, history: r, location: n } = window;
|
|
4361
4363
|
let a = n.pathname;
|
|
@@ -4365,30 +4367,30 @@ function Gb(e) {
|
|
|
4365
4367
|
const c = r[o];
|
|
4366
4368
|
r[o] = function(...l) {
|
|
4367
4369
|
var s;
|
|
4368
|
-
const f = ((s = l[2]) == null ? void 0 : s.toString()) || "", u =
|
|
4370
|
+
const f = ((s = l[2]) == null ? void 0 : s.toString()) || "", u = Zb(f);
|
|
4369
4371
|
return a !== u && (a = u, setTimeout(() => e(f), 0)), c.apply(r, l);
|
|
4370
4372
|
};
|
|
4371
4373
|
});
|
|
4372
4374
|
}
|
|
4373
|
-
function
|
|
4375
|
+
function Vb(e, t) {
|
|
4374
4376
|
const r = e.indexOf(t);
|
|
4375
4377
|
return r > -1 ? e.slice(0, r) : e;
|
|
4376
4378
|
}
|
|
4377
|
-
function
|
|
4378
|
-
return ["#", "?"].forEach((t) => e =
|
|
4379
|
+
function Zb(e) {
|
|
4380
|
+
return ["#", "?"].forEach((t) => e = Vb(e, t)), e;
|
|
4379
4381
|
}
|
|
4380
|
-
function
|
|
4381
|
-
|
|
4382
|
+
function Yb() {
|
|
4383
|
+
Wb(() => {
|
|
4382
4384
|
_e.page();
|
|
4383
4385
|
});
|
|
4384
4386
|
}
|
|
4385
|
-
function
|
|
4387
|
+
function Jb(e) {
|
|
4386
4388
|
if (e === void 0 && (e = {}), !Z) return Ua;
|
|
4387
4389
|
var t = Xs(), r = Ma(), n = Js(), a = Rr(n, t), i = Rr(r, t), o = [], c = [], l = [], f = n, u = a, s = i, d = Object.keys(e);
|
|
4388
4390
|
if (!d.length) return Ua;
|
|
4389
4391
|
var h = d.map(function(S) {
|
|
4390
4392
|
return Number(S);
|
|
4391
|
-
}), m =
|
|
4393
|
+
}), m = cb(function() {
|
|
4392
4394
|
var S = Xs(), g = function(L, N) {
|
|
4393
4395
|
return N.map(function(z) {
|
|
4394
4396
|
return z === 100 ? L - 5 : L * (z / 100);
|
|
@@ -4420,11 +4422,11 @@ function Yb(e) {
|
|
|
4420
4422
|
function Ma() {
|
|
4421
4423
|
return Z ? document.body.scrollTop || document.documentElement.scrollTop : 0;
|
|
4422
4424
|
}
|
|
4423
|
-
function
|
|
4425
|
+
function Xb() {
|
|
4424
4426
|
return Z ? window.innerHeight || document.documentElement.clientHeight : 0;
|
|
4425
4427
|
}
|
|
4426
4428
|
function Js() {
|
|
4427
|
-
return Math.round(Ma() +
|
|
4429
|
+
return Math.round(Ma() + Xb());
|
|
4428
4430
|
}
|
|
4429
4431
|
function Xs() {
|
|
4430
4432
|
if (!Z) return 0;
|
|
@@ -4435,7 +4437,7 @@ function Rr(e, t) {
|
|
|
4435
4437
|
return Math.round(e / t * 100);
|
|
4436
4438
|
}
|
|
4437
4439
|
var qs = "EventListener";
|
|
4438
|
-
function
|
|
4440
|
+
function qb(e) {
|
|
4439
4441
|
return function(t, r, n, a) {
|
|
4440
4442
|
var i = n || Ua, o = a || !1;
|
|
4441
4443
|
if (!Z) return i;
|
|
@@ -4447,7 +4449,7 @@ function Xb(e) {
|
|
|
4447
4449
|
s && (f = []);
|
|
4448
4450
|
for (var d = s ? "add" + qs : "remove" + qs, h = 0; h < l.length; h++) {
|
|
4449
4451
|
var m = l[h];
|
|
4450
|
-
f[h] = s ? o && o.once ?
|
|
4452
|
+
f[h] = s ? o && o.once ? Qb(i) : i : f[h] || i;
|
|
4451
4453
|
for (var S = 0; S < c.length; S++) m[d] ? m["on" + c[S]] = s ? f[h] : null : m[d](c[S], f[h], o);
|
|
4452
4454
|
}
|
|
4453
4455
|
return u.bind(null, !s);
|
|
@@ -4463,30 +4465,30 @@ function Vr(e, t) {
|
|
|
4463
4465
|
for (var n = [], a = e.length >>> 0; a--; ) n[a] = e[a];
|
|
4464
4466
|
return n;
|
|
4465
4467
|
}
|
|
4466
|
-
var i =
|
|
4468
|
+
var i = nb(e);
|
|
4467
4469
|
return t ? i.map(function(o) {
|
|
4468
4470
|
return Me(o) ? Vr(o, !0) : o;
|
|
4469
4471
|
}).flat() : i;
|
|
4470
4472
|
}
|
|
4471
|
-
function
|
|
4473
|
+
function Qb(e, t) {
|
|
4472
4474
|
var r;
|
|
4473
4475
|
return function() {
|
|
4474
4476
|
return e && (r = e.apply(this, arguments), e = null), r;
|
|
4475
4477
|
};
|
|
4476
4478
|
}
|
|
4477
|
-
var ua =
|
|
4478
|
-
function
|
|
4479
|
+
var ua = qb("Event");
|
|
4480
|
+
function wl(e, t) {
|
|
4479
4481
|
return Z && re(window[e]) ? (r = window[e], n = t, (a = window) === void 0 && (a = null), re(r) ? function() {
|
|
4480
4482
|
r.apply(a, arguments), n.apply(a, arguments);
|
|
4481
4483
|
} : n) : window[e] = t;
|
|
4482
4484
|
var r, n, a;
|
|
4483
4485
|
}
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
var
|
|
4487
|
-
function
|
|
4488
|
-
if (
|
|
4489
|
-
var t =
|
|
4486
|
+
wl.bind(null, "onerror");
|
|
4487
|
+
wl.bind(null, "onload");
|
|
4488
|
+
var bl = typeof window > "u", Qs = "hidden";
|
|
4489
|
+
function eS(e) {
|
|
4490
|
+
if (bl) return !1;
|
|
4491
|
+
var t = tS(), r = "".concat(t.replace(/[H|h]idden/, ""), "visibilitychange"), n = function() {
|
|
4490
4492
|
return e(!!document[t]);
|
|
4491
4493
|
}, a = function() {
|
|
4492
4494
|
return document.addEventListener(r, n);
|
|
@@ -4495,15 +4497,15 @@ function Qb(e) {
|
|
|
4495
4497
|
return document.removeEventListener(r, n), a;
|
|
4496
4498
|
};
|
|
4497
4499
|
}
|
|
4498
|
-
function
|
|
4500
|
+
function tS() {
|
|
4499
4501
|
var e = ["webkit", "moz", "ms", "o"];
|
|
4500
|
-
return
|
|
4502
|
+
return bl || Qs in document ? Qs : e.reduce(function(t, r) {
|
|
4501
4503
|
var n = r + "Hidden";
|
|
4502
4504
|
return !t && n in document ? n : t;
|
|
4503
4505
|
}, null);
|
|
4504
4506
|
}
|
|
4505
|
-
var
|
|
4506
|
-
function
|
|
4507
|
+
var rS = ["mousemove", "mousedown", "touchmove", "touchstart", "touchend", "keydown"];
|
|
4508
|
+
function nS(e, t) {
|
|
4507
4509
|
t === void 0 && (t = {});
|
|
4508
4510
|
var r = /* @__PURE__ */ function(o, c) {
|
|
4509
4511
|
var l = this, f = !1;
|
|
@@ -4514,10 +4516,10 @@ function rS(e, t) {
|
|
|
4514
4516
|
};
|
|
4515
4517
|
}(e, t.throttle || 1e4), n = [];
|
|
4516
4518
|
function a() {
|
|
4517
|
-
var o =
|
|
4519
|
+
var o = eS(function(c) {
|
|
4518
4520
|
c || r({ type: "tabVisible" });
|
|
4519
4521
|
});
|
|
4520
|
-
return n = [o].concat(
|
|
4522
|
+
return n = [o].concat(rS.map(function(c) {
|
|
4521
4523
|
return ua(document, c, r);
|
|
4522
4524
|
})).concat(ua(window, "load", r)).concat(ua(window, "scroll", r, { capture: !0, passive: !0 })), i;
|
|
4523
4525
|
}
|
|
@@ -4530,7 +4532,7 @@ function rS(e, t) {
|
|
|
4530
4532
|
return i(), a;
|
|
4531
4533
|
};
|
|
4532
4534
|
}
|
|
4533
|
-
function
|
|
4535
|
+
function aS(e) {
|
|
4534
4536
|
var t, r, n = e.onIdle, a = e.onWakeUp, i = e.onHeartbeat, o = e.timeout, c = o === void 0 ? 1e4 : o, l = e.throttle, f = l === void 0 ? 2e3 : l, u = !1, s = !1, d = /* @__PURE__ */ new Date(), h = function() {
|
|
4535
4537
|
return clearTimeout(t);
|
|
4536
4538
|
};
|
|
@@ -4539,7 +4541,7 @@ function nS(e) {
|
|
|
4539
4541
|
u = !0, n && (r = /* @__PURE__ */ new Date(), n(Ht(d), g));
|
|
4540
4542
|
}, c);
|
|
4541
4543
|
}
|
|
4542
|
-
var S =
|
|
4544
|
+
var S = nS(m, { throttle: f });
|
|
4543
4545
|
return { disable: function() {
|
|
4544
4546
|
s = !0, u = !1, h();
|
|
4545
4547
|
var g = S();
|
|
@@ -4554,7 +4556,7 @@ function Ht(e, t) {
|
|
|
4554
4556
|
return t ? 0 : Math.round((/* @__PURE__ */ new Date() - e) / 1e3);
|
|
4555
4557
|
}
|
|
4556
4558
|
const ec = 5e3;
|
|
4557
|
-
class
|
|
4559
|
+
class iS {
|
|
4558
4560
|
constructor(t) {
|
|
4559
4561
|
oe(this, "element");
|
|
4560
4562
|
oe(this, "isInViewport", !1);
|
|
@@ -4576,11 +4578,11 @@ class aS {
|
|
|
4576
4578
|
{
|
|
4577
4579
|
threshold: 0
|
|
4578
4580
|
}
|
|
4579
|
-
), this.observer.observe(this.element),
|
|
4581
|
+
), this.observer.observe(this.element), aS({
|
|
4580
4582
|
onIdle: (r) => this.handleAwake(!1, r),
|
|
4581
4583
|
onWakeUp: (r) => this.handleAwake(!0, r),
|
|
4582
4584
|
timeout: ec
|
|
4583
|
-
}),
|
|
4585
|
+
}), Jb({
|
|
4584
4586
|
25: this.handleScroll.bind(this),
|
|
4585
4587
|
50: this.handleScroll.bind(this),
|
|
4586
4588
|
75: this.handleScroll.bind(this),
|
|
@@ -4616,16 +4618,25 @@ class aS {
|
|
|
4616
4618
|
}
|
|
4617
4619
|
}
|
|
4618
4620
|
const tc = "sesamy_session_id";
|
|
4619
|
-
function
|
|
4621
|
+
function oS() {
|
|
4620
4622
|
let e = sessionStorage.getItem(tc);
|
|
4621
4623
|
return e || (e = Math.random().toString(36).slice(2, 9), sessionStorage.setItem(tc, e)), e;
|
|
4622
4624
|
}
|
|
4623
|
-
let
|
|
4624
|
-
|
|
4625
|
+
let Sl = !1, Fa, rc, Zr;
|
|
4626
|
+
const Il = /* @__PURE__ */ new Map();
|
|
4627
|
+
function sS({ clientId: e, enabled: t = !0, environment: r }) {
|
|
4625
4628
|
if (Fa = e, rc = t, Zr = `${Ue("logs", r)}/events`, !rc)
|
|
4626
4629
|
return;
|
|
4627
|
-
|
|
4628
|
-
|
|
4630
|
+
window.addEventListener("beforeunload", () => {
|
|
4631
|
+
kl.forEach((a, i) => {
|
|
4632
|
+
a.bind(i)();
|
|
4633
|
+
}), uS();
|
|
4634
|
+
}), window.addEventListener("visibilitychange", () => {
|
|
4635
|
+
document.visibilityState !== "visible" && Il.forEach((a, i) => {
|
|
4636
|
+
a.bind(i)();
|
|
4637
|
+
});
|
|
4638
|
+
}), Yb();
|
|
4639
|
+
const n = new iS({
|
|
4629
4640
|
element: document.body,
|
|
4630
4641
|
viewCallback: () => {
|
|
4631
4642
|
_e.page();
|
|
@@ -4650,9 +4661,9 @@ function oS({ clientId: e, enabled: t = !0, environment: r }) {
|
|
|
4650
4661
|
});
|
|
4651
4662
|
}
|
|
4652
4663
|
});
|
|
4653
|
-
|
|
4664
|
+
lS(document.body, () => {
|
|
4654
4665
|
n.flush();
|
|
4655
|
-
}),
|
|
4666
|
+
}), fS(document.body, () => {
|
|
4656
4667
|
n.handleVisibilityChange();
|
|
4657
4668
|
}), window.addEventListener(ye.AUTHENTICATED, async (a) => {
|
|
4658
4669
|
const i = a;
|
|
@@ -4661,13 +4672,13 @@ function oS({ clientId: e, enabled: t = !0, environment: r }) {
|
|
|
4661
4672
|
await _e.track("logout", {}), ji.flush(), await _e.reset();
|
|
4662
4673
|
});
|
|
4663
4674
|
}
|
|
4664
|
-
function
|
|
4675
|
+
function $l(e) {
|
|
4665
4676
|
return JSON.stringify(
|
|
4666
4677
|
e.map((t) => ({
|
|
4667
4678
|
...t,
|
|
4668
4679
|
clientId: Fa,
|
|
4669
4680
|
requestId: Math.random().toString(36).slice(2, 9),
|
|
4670
|
-
sessionId:
|
|
4681
|
+
sessionId: oS(),
|
|
4671
4682
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4672
4683
|
version: Pi,
|
|
4673
4684
|
event: t.event,
|
|
@@ -4680,18 +4691,18 @@ function Sl(e) {
|
|
|
4680
4691
|
referrer: document.referrer
|
|
4681
4692
|
},
|
|
4682
4693
|
locale: navigator.language,
|
|
4683
|
-
library:
|
|
4694
|
+
library: Xu,
|
|
4684
4695
|
userAgent: navigator.userAgent,
|
|
4685
4696
|
clientId: Fa
|
|
4686
4697
|
}
|
|
4687
4698
|
}))
|
|
4688
4699
|
);
|
|
4689
4700
|
}
|
|
4690
|
-
const ji =
|
|
4701
|
+
const ji = Gb(
|
|
4691
4702
|
async (e) => {
|
|
4692
4703
|
if (e.length > 0) {
|
|
4693
|
-
const t =
|
|
4694
|
-
|
|
4704
|
+
const t = $l(e);
|
|
4705
|
+
Sl ? navigator.sendBeacon(Zr, t) : (await fetch(Zr, {
|
|
4695
4706
|
method: "POST",
|
|
4696
4707
|
body: t,
|
|
4697
4708
|
headers: {
|
|
@@ -4711,12 +4722,12 @@ function la(e) {
|
|
|
4711
4722
|
var t;
|
|
4712
4723
|
if (e.anonymousId) if ((t = e.properties) != null && t.flushing) {
|
|
4713
4724
|
const r = { ...e };
|
|
4714
|
-
delete r.properties.flushing, navigator.sendBeacon(Zr,
|
|
4725
|
+
delete r.properties.flushing, navigator.sendBeacon(Zr, $l([r]));
|
|
4715
4726
|
} else
|
|
4716
4727
|
ji.push(e);
|
|
4717
4728
|
}
|
|
4718
|
-
const _e =
|
|
4719
|
-
app:
|
|
4729
|
+
const _e = Kb({
|
|
4730
|
+
app: Xu,
|
|
4720
4731
|
// @ts-expect-error The type in the library is incorrect. It should be a string.
|
|
4721
4732
|
version: Pi,
|
|
4722
4733
|
plugins: [
|
|
@@ -4754,40 +4765,29 @@ const _e = Bb({
|
|
|
4754
4765
|
}
|
|
4755
4766
|
]
|
|
4756
4767
|
});
|
|
4757
|
-
function
|
|
4768
|
+
function cS(e, t) {
|
|
4758
4769
|
_e.track(e, t);
|
|
4759
4770
|
}
|
|
4760
|
-
function
|
|
4761
|
-
return
|
|
4762
|
-
}
|
|
4763
|
-
const Il = /* @__PURE__ */ new Map();
|
|
4764
|
-
function uS(e, t) {
|
|
4765
|
-
Il.set(e, t);
|
|
4771
|
+
function uS() {
|
|
4772
|
+
return Sl = !0, ji.flush();
|
|
4766
4773
|
}
|
|
4767
|
-
|
|
4768
|
-
Il.forEach((e, t) => {
|
|
4769
|
-
e.bind(t)();
|
|
4770
|
-
}), cS();
|
|
4771
|
-
});
|
|
4772
|
-
const $l = /* @__PURE__ */ new Map();
|
|
4774
|
+
const kl = /* @__PURE__ */ new Map();
|
|
4773
4775
|
function lS(e, t) {
|
|
4774
|
-
|
|
4776
|
+
kl.set(e, t);
|
|
4775
4777
|
}
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
e.bind(t)();
|
|
4779
|
-
});
|
|
4780
|
-
});
|
|
4781
|
-
const kl = "sesamySignedURLs";
|
|
4782
|
-
function Pl() {
|
|
4783
|
-
const e = sessionStorage.getItem(kl);
|
|
4784
|
-
return e ? JSON.parse(e) : [];
|
|
4778
|
+
function fS(e, t) {
|
|
4779
|
+
Il.set(e, t);
|
|
4785
4780
|
}
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4781
|
+
const Pl = "sesamySignedURLs";
|
|
4782
|
+
function Tl() {
|
|
4783
|
+
const e = sessionStorage.getItem(Pl);
|
|
4784
|
+
return e ? JSON.parse(e) : [];
|
|
4789
4785
|
}
|
|
4790
4786
|
function dS(e) {
|
|
4787
|
+
const t = Tl();
|
|
4788
|
+
t.push(e), sessionStorage.setItem(Pl, JSON.stringify(t));
|
|
4789
|
+
}
|
|
4790
|
+
function hS(e) {
|
|
4791
4791
|
const {
|
|
4792
4792
|
createCheckout: t,
|
|
4793
4793
|
getCheckout: r,
|
|
@@ -4823,13 +4823,13 @@ function dS(e) {
|
|
|
4823
4823
|
autoOnboardProduct: B,
|
|
4824
4824
|
openHostedAccountPage: V,
|
|
4825
4825
|
generateLink: Te
|
|
4826
|
-
} =
|
|
4826
|
+
} = Vw(e), p = {
|
|
4827
4827
|
auth: {
|
|
4828
4828
|
getUser: m,
|
|
4829
4829
|
isAuthenticated: $i,
|
|
4830
4830
|
loginWithRedirect: ki,
|
|
4831
|
-
logout:
|
|
4832
|
-
setToken:
|
|
4831
|
+
logout: Gu,
|
|
4832
|
+
setToken: Vu
|
|
4833
4833
|
},
|
|
4834
4834
|
checkouts: {
|
|
4835
4835
|
get: r,
|
|
@@ -4844,7 +4844,7 @@ function dS(e) {
|
|
|
4844
4844
|
unlinkSpotify: z
|
|
4845
4845
|
},
|
|
4846
4846
|
analytics: {
|
|
4847
|
-
track:
|
|
4847
|
+
track: cS
|
|
4848
4848
|
},
|
|
4849
4849
|
tags: {
|
|
4850
4850
|
list: g,
|
|
@@ -4855,7 +4855,7 @@ function dS(e) {
|
|
|
4855
4855
|
get: a,
|
|
4856
4856
|
list: i,
|
|
4857
4857
|
access: o,
|
|
4858
|
-
signedLinks:
|
|
4858
|
+
signedLinks: Tl
|
|
4859
4859
|
},
|
|
4860
4860
|
contracts: {
|
|
4861
4861
|
get: l,
|
|
@@ -4889,17 +4889,17 @@ function dS(e) {
|
|
|
4889
4889
|
autoOnboard: B,
|
|
4890
4890
|
linkSpotify: R
|
|
4891
4891
|
},
|
|
4892
|
-
getVersion:
|
|
4892
|
+
getVersion: vS,
|
|
4893
4893
|
getPaymentIssues: L,
|
|
4894
4894
|
generateLink: Te,
|
|
4895
4895
|
clearCache: pe
|
|
4896
4896
|
};
|
|
4897
4897
|
return e.namespace && (window[e.namespace] = p), p;
|
|
4898
4898
|
}
|
|
4899
|
-
function
|
|
4899
|
+
function vS() {
|
|
4900
4900
|
return Pi;
|
|
4901
4901
|
}
|
|
4902
|
-
async function
|
|
4902
|
+
async function pS({ enabled: e = !1, rules: t }) {
|
|
4903
4903
|
if (!e)
|
|
4904
4904
|
return;
|
|
4905
4905
|
const r = await $i(), n = window.location.href;
|
|
@@ -4944,30 +4944,30 @@ async function nc(e) {
|
|
|
4944
4944
|
return console.error(`Error fetching content from ${e}:`, t), null;
|
|
4945
4945
|
}
|
|
4946
4946
|
}
|
|
4947
|
-
function
|
|
4947
|
+
function mS() {
|
|
4948
4948
|
const e = new URLSearchParams(window.location.hash.substring(1)), t = e.get("access_token");
|
|
4949
4949
|
if (t) {
|
|
4950
|
-
|
|
4950
|
+
Vu(t);
|
|
4951
4951
|
const r = new URL(window.location.href);
|
|
4952
4952
|
e.delete("access_token"), r.hash = e.toString(), window.history.replaceState(null, "", r);
|
|
4953
4953
|
}
|
|
4954
4954
|
}
|
|
4955
4955
|
const ac = "sesamy-refresh", ic = "force-refetch-entitlements";
|
|
4956
|
-
function
|
|
4956
|
+
function gS() {
|
|
4957
4957
|
const e = new URLSearchParams(window.location.search), t = e.get(ic), r = e.get(ac);
|
|
4958
4958
|
if (t !== null || r !== null) {
|
|
4959
4959
|
const n = new URL(window.location.href);
|
|
4960
4960
|
e.delete(ic), e.delete(ac), n.search = e.toString(), pe(), window.history.replaceState(null, "", n);
|
|
4961
4961
|
}
|
|
4962
4962
|
}
|
|
4963
|
-
function
|
|
4963
|
+
function yS() {
|
|
4964
4964
|
const e = new URLSearchParams(window.location.search), t = e.get("token"), r = e.get("se");
|
|
4965
4965
|
if (!r || !t)
|
|
4966
4966
|
return;
|
|
4967
4967
|
const n = parseInt(r, 10);
|
|
4968
4968
|
if (Number.isNaN(n) || n < Date.now())
|
|
4969
4969
|
return;
|
|
4970
|
-
|
|
4970
|
+
dS({
|
|
4971
4971
|
url: window.location.href.split("?")[0],
|
|
4972
4972
|
token: t,
|
|
4973
4973
|
expiresAt: n,
|
|
@@ -4977,17 +4977,17 @@ function gS() {
|
|
|
4977
4977
|
a.searchParams.delete("ss"), a.searchParams.delete("se"), a.searchParams.delete("sp"), a.searchParams.delete("so"), a.searchParams.delete("token"), window.history.replaceState(null, "", a);
|
|
4978
4978
|
}
|
|
4979
4979
|
const oc = "sesamy-user";
|
|
4980
|
-
async function
|
|
4980
|
+
async function wS() {
|
|
4981
4981
|
const t = new URLSearchParams(window.location.search).get(oc);
|
|
4982
4982
|
if (!t)
|
|
4983
4983
|
return;
|
|
4984
|
-
const r = await
|
|
4984
|
+
const r = await Lw();
|
|
4985
4985
|
(r == null ? void 0 : r.email) !== t && (pe(), ki({ authorizationParams: { email_hint: t, login_hint: t } }));
|
|
4986
4986
|
const n = new URL(window.location.href);
|
|
4987
4987
|
n.searchParams.delete(oc), window.history.replaceState(null, "", n);
|
|
4988
4988
|
}
|
|
4989
4989
|
const sc = "sesamy-purchase";
|
|
4990
|
-
function
|
|
4990
|
+
function bS() {
|
|
4991
4991
|
const e = new URLSearchParams(window.location.search), t = e.get(sc);
|
|
4992
4992
|
if (t !== null) {
|
|
4993
4993
|
const r = new URL(window.location.href);
|
|
@@ -4995,39 +4995,42 @@ function wS() {
|
|
|
4995
4995
|
}
|
|
4996
4996
|
}
|
|
4997
4997
|
const cc = "sesamy-login";
|
|
4998
|
-
async function
|
|
4998
|
+
async function SS() {
|
|
4999
4999
|
if (!new URLSearchParams(window.location.search).get(cc))
|
|
5000
5000
|
return;
|
|
5001
5001
|
await $i() || ki();
|
|
5002
5002
|
const n = new URL(window.location.href);
|
|
5003
5003
|
n.searchParams.delete(cc), window.history.replaceState(null, "", n);
|
|
5004
5004
|
}
|
|
5005
|
-
|
|
5006
|
-
|
|
5005
|
+
const IS = typeof window < "u";
|
|
5006
|
+
async function uc(e) {
|
|
5007
|
+
sS({
|
|
5007
5008
|
clientId: e.clientId,
|
|
5008
5009
|
environment: e.environment,
|
|
5009
5010
|
// The default client id can be overridden by the config
|
|
5010
5011
|
...e.analytics
|
|
5011
|
-
}), await
|
|
5012
|
+
}), await Aw({
|
|
5012
5013
|
clientId: e.clientId,
|
|
5013
5014
|
organization: e.organization,
|
|
5014
5015
|
environment: e.environment,
|
|
5015
5016
|
// The default client id can be overridden by the config
|
|
5016
5017
|
...e.auth
|
|
5017
|
-
}), e.transform && await
|
|
5018
|
-
|
|
5019
|
-
|
|
5018
|
+
}), e.transform && await pS(e.transform), mS(), gS(), yS(), await SS(), await wS(), bS();
|
|
5019
|
+
}
|
|
5020
|
+
async function $S(e) {
|
|
5021
|
+
const t = hS({ clientId: e.clientId, environment: e.environment, ...e.api });
|
|
5022
|
+
return ze(ye.READY, {}), IS && (e.awaitAllServices ? await uc(e) : uc(e)), t;
|
|
5020
5023
|
}
|
|
5021
5024
|
if (typeof document < "u") {
|
|
5022
5025
|
const e = document.getElementById("sesamy-js");
|
|
5023
5026
|
if (e != null && e.textContent)
|
|
5024
5027
|
try {
|
|
5025
5028
|
const t = JSON.parse(e.textContent);
|
|
5026
|
-
|
|
5029
|
+
$S(t);
|
|
5027
5030
|
} catch (t) {
|
|
5028
5031
|
console.error("Failed to parse config", t);
|
|
5029
5032
|
}
|
|
5030
5033
|
}
|
|
5031
5034
|
export {
|
|
5032
|
-
|
|
5035
|
+
$S as init
|
|
5033
5036
|
};
|