@revenuecat/purchases-js 1.26.3 → 1.26.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/Purchases.es.d.ts +2 -0
- package/dist/Purchases.es.js +701 -691
- package/dist/Purchases.umd.js +35 -35
- package/package.json +1 -1
package/dist/Purchases.es.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var vp = Object.create;
|
|
2
2
|
var Qo = Object.defineProperty;
|
|
3
3
|
var kp = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var
|
|
4
|
+
var sl = (e, r) => (r = Symbol[e]) ? r : Symbol.for("Symbol." + e), Mn = (e) => {
|
|
5
5
|
throw TypeError(e);
|
|
6
6
|
};
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
7
|
+
var ll = (e, r, t) => r in e ? Qo(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
8
|
+
var il = (e, r) => Qo(e, "name", { value: r, configurable: !0 });
|
|
9
|
+
var cl = (e) => [, , , vp((e == null ? void 0 : e[sl("metadata")]) ?? null)], ul = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ma = (e) => e !== void 0 && typeof e != "function" ? Mn("Function expected") : e, wp = (e, r, t, n, a) => ({ kind: ul[e], name: r, metadata: n, addInitializer: (o) => t._ ? Mn("Already initialized") : a.push(ma(o || null)) }), ei = (e, r) => ll(r, sl("metadata"), e[3]), dl = (e, r, t, n) => {
|
|
10
10
|
for (var a = 0, o = e[r >> 1], s = o && o.length; a < s; a++) r & 1 ? o[a].call(t) : n = o[a].call(t, n);
|
|
11
11
|
return n;
|
|
12
12
|
}, ri = (e, r, t, n, a, o) => {
|
|
13
|
-
var s, l, c, u, d, p = r & 7, _ = !!(r & 8), g = !!(r & 16), f = p > 3 ? e.length + 1 : p ? _ ? 1 : 2 : 0, w =
|
|
13
|
+
var s, l, c, u, d, p = r & 7, _ = !!(r & 8), g = !!(r & 16), f = p > 3 ? e.length + 1 : p ? _ ? 1 : 2 : 0, w = ul[p + 5], k = p > 3 && (e[f - 1] = []), m = e[f] || (e[f] = []), h = p && (!g && !_ && (a = a.prototype), p < 5 && (p > 3 || !g) && kp(p < 4 ? a : { get [t]() {
|
|
14
14
|
return O(this, o);
|
|
15
15
|
}, set [t](b) {
|
|
16
16
|
return be(this, o, b);
|
|
17
17
|
} }, t));
|
|
18
|
-
p ? g && p < 4 &&
|
|
18
|
+
p ? g && p < 4 && il(o, (p > 2 ? "set " : p > 1 ? "get " : "") + t) : il(a, t);
|
|
19
19
|
for (var v = n.length - 1; v >= 0; v--)
|
|
20
20
|
u = wp(p, t, c = {}, e[3], m), p && (u.static = _, u.private = g, d = u.access = { has: g ? (b) => Pp(a, b) : (b) => t in b }, p ^ 3 && (d.get = g ? (b) => (p ^ 1 ? O : ar)(b, a, p ^ 4 ? o : h.get) : (b) => b[t]), p > 2 && (d.set = g ? (b, E) => be(b, a, E, p ^ 4 ? o : h.set) : (b, E) => b[t] = E)), l = (0, n[v])(p ? p < 4 ? g ? o : h[w] : p > 4 ? void 0 : { get: h.get, set: h.set } : a, u), c._ = 1, p ^ 4 || l === void 0 ? ma(l) && (p > 4 ? k.unshift(l) : p ? g ? o = l : h[w] = l : a = l) : typeof l != "object" || l === null ? Mn("Object expected") : (ma(s = l.get) && (h.get = s), ma(s = l.set) && (h.set = s), ma(s = l.init) && k.unshift(s));
|
|
21
21
|
return p || ei(e, a), h && Qo(a, t, h), g ? p ^ 4 ? o : h : a;
|
|
22
|
-
}, V = (e, r, t) =>
|
|
22
|
+
}, V = (e, r, t) => ll(e, typeof r != "symbol" ? r + "" : r, t), ti = (e, r, t) => r.has(e) || Mn("Cannot " + t), Pp = (e, r) => Object(r) !== r ? Mn('Cannot use the "in" operator on this value') : e.has(r), O = (e, r, t) => (ti(e, r, "read from private field"), t ? t.call(e) : r.get(e)), ke = (e, r, t) => r.has(e) ? Mn("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, t), be = (e, r, t, n) => (ti(e, r, "write to private field"), n ? n.call(e, t) : r.set(e, t), t), ar = (e, r, t) => (ti(e, r, "access private method"), t);
|
|
23
23
|
const xp = "5";
|
|
24
|
-
var
|
|
25
|
-
typeof window < "u" && ((
|
|
26
|
-
const Ep = 1, Sp = 2,
|
|
27
|
-
var Bo = Array.isArray, Up = Array.prototype.indexOf, Uo = Array.from,
|
|
24
|
+
var Mc;
|
|
25
|
+
typeof window < "u" && ((Mc = window.__svelte ?? (window.__svelte = {})).v ?? (Mc.v = /* @__PURE__ */ new Set())).add(xp);
|
|
26
|
+
const Ep = 1, Sp = 2, Oc = 4, Tp = 8, Ip = 16, Dp = 1, Cp = 2, Ap = 4, qp = 8, zp = 16, Fp = 1, Mp = 2, Np = 4, Lc = 1, jp = 2, ur = Symbol(), Op = "http://www.w3.org/1999/xhtml", Lp = "http://www.w3.org/2000/svg", Bp = "@attach", ji = !1;
|
|
27
|
+
var Bo = Array.isArray, Up = Array.prototype.indexOf, Uo = Array.from, Bc = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, Uc = Object.getOwnPropertyDescriptors, Rp = Object.prototype, Vp = Array.prototype, ys = Object.getPrototypeOf, pl = Object.isExtensible;
|
|
28
28
|
function Ln(e) {
|
|
29
29
|
return typeof e == "function";
|
|
30
30
|
}
|
|
@@ -37,7 +37,7 @@ function yo(e) {
|
|
|
37
37
|
for (var r = 0; r < e.length; r++)
|
|
38
38
|
e[r]();
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Rc() {
|
|
41
41
|
var e, r, t = new Promise((n, a) => {
|
|
42
42
|
e = n, r = a;
|
|
43
43
|
});
|
|
@@ -53,14 +53,14 @@ function Ro(e, r) {
|
|
|
53
53
|
if (t.push(n), t.length === r) break;
|
|
54
54
|
return t;
|
|
55
55
|
}
|
|
56
|
-
const br = 2, bo = 4, Wa = 8,
|
|
56
|
+
const br = 2, bo = 4, Wa = 8, bs = 1 << 24, At = 16, Ht = 32, Sn = 64, vs = 128, Jr = 512, hr = 1024, Sr = 2048, qt = 4096, Ur = 8192, Ot = 16384, Vo = 32768, Dt = 65536, _l = 1 << 17, Vc = 1 << 18, la = 1 << 19, Hc = 1 << 20, Mt = 1 << 25, Ca = 32768, Oi = 1 << 21, ks = 1 << 22, en = 1 << 23, Et = Symbol("$state"), Wc = Symbol("legacy props"), Wp = Symbol(""), Un = new class extends Error {
|
|
57
57
|
constructor() {
|
|
58
58
|
super(...arguments);
|
|
59
59
|
V(this, "name", "StaleReactionError");
|
|
60
60
|
V(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
61
61
|
}
|
|
62
62
|
}();
|
|
63
|
-
function
|
|
63
|
+
function ws(e) {
|
|
64
64
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
65
65
|
}
|
|
66
66
|
function Yp() {
|
|
@@ -99,14 +99,14 @@ function t_() {
|
|
|
99
99
|
function n_() {
|
|
100
100
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Yc(e) {
|
|
103
103
|
return e === this.v;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Ps(e, r) {
|
|
106
106
|
return e != e ? r == r : e !== r || e !== null && typeof e == "object" || typeof e == "function";
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return !
|
|
108
|
+
function Gc(e) {
|
|
109
|
+
return !Ps(e, this.v);
|
|
110
110
|
}
|
|
111
111
|
let ca = !1, a_ = !1;
|
|
112
112
|
function o_() {
|
|
@@ -119,11 +119,11 @@ function ta(e) {
|
|
|
119
119
|
function Be(e) {
|
|
120
120
|
return (
|
|
121
121
|
/** @type {T} */
|
|
122
|
-
|
|
122
|
+
Kc().get(e)
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
function or(e, r) {
|
|
126
|
-
return
|
|
126
|
+
return Kc().set(e, r), r;
|
|
127
127
|
}
|
|
128
128
|
function re(e, r = !1, t) {
|
|
129
129
|
Le = {
|
|
@@ -144,7 +144,7 @@ function te(e) {
|
|
|
144
144
|
if (t !== null) {
|
|
145
145
|
r.e = null;
|
|
146
146
|
for (var n of t)
|
|
147
|
-
|
|
147
|
+
gu(n);
|
|
148
148
|
}
|
|
149
149
|
return e !== void 0 && (r.x = e), r.i = !0, Le = r.p, e ?? /** @type {T} */
|
|
150
150
|
{};
|
|
@@ -152,8 +152,8 @@ function te(e) {
|
|
|
152
152
|
function Ya() {
|
|
153
153
|
return !ca || Le !== null && Le.l === null;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return Le === null &&
|
|
155
|
+
function Kc(e) {
|
|
156
|
+
return Le === null && ws(), Le.c ?? (Le.c = new Map(i_(Le) || void 0));
|
|
157
157
|
}
|
|
158
158
|
function i_(e) {
|
|
159
159
|
let r = e.p;
|
|
@@ -179,12 +179,12 @@ function on(e) {
|
|
|
179
179
|
}
|
|
180
180
|
Rn.push(e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function $c(e) {
|
|
183
183
|
var r = Fe;
|
|
184
184
|
if (r === null)
|
|
185
185
|
return Se.f |= en, e;
|
|
186
186
|
if ((r.f & Vo) === 0) {
|
|
187
|
-
if ((r.f &
|
|
187
|
+
if ((r.f & vs) === 0)
|
|
188
188
|
throw e;
|
|
189
189
|
r.b.error(e);
|
|
190
190
|
} else
|
|
@@ -192,7 +192,7 @@ function Kc(e) {
|
|
|
192
192
|
}
|
|
193
193
|
function na(e, r) {
|
|
194
194
|
for (; r !== null; ) {
|
|
195
|
-
if ((r.f &
|
|
195
|
+
if ((r.f & vs) !== 0)
|
|
196
196
|
try {
|
|
197
197
|
r.b.error(e);
|
|
198
198
|
return;
|
|
@@ -207,23 +207,23 @@ const l_ = -7169;
|
|
|
207
207
|
function ir(e, r) {
|
|
208
208
|
e.f = e.f & l_ | r;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function xs(e) {
|
|
211
211
|
(e.f & Jr) !== 0 || e.deps === null ? ir(e, hr) : ir(e, qt);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Xc(e) {
|
|
214
214
|
if (e !== null)
|
|
215
215
|
for (const r of e)
|
|
216
|
-
(r.f & br) === 0 || (r.f & Ca) === 0 || (r.f ^= Ca,
|
|
216
|
+
(r.f & br) === 0 || (r.f & Ca) === 0 || (r.f ^= Ca, Xc(
|
|
217
217
|
/** @type {Derived} */
|
|
218
218
|
r.deps
|
|
219
219
|
));
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
(e.f & Sr) !== 0 ? r.add(e) : (e.f & qt) !== 0 && t.add(e),
|
|
221
|
+
function Zc(e, r, t) {
|
|
222
|
+
(e.f & Sr) !== 0 ? r.add(e) : (e.f & qt) !== 0 && t.add(e), Xc(e.deps), ir(e, hr);
|
|
223
223
|
}
|
|
224
224
|
const eo = /* @__PURE__ */ new Set();
|
|
225
|
-
let Ve = null, fr = null, bt = [],
|
|
226
|
-
var Kn, $n, gn, fn, La, Xn, Zn, Qr, Bi, Ui,
|
|
225
|
+
let Ve = null, fr = null, bt = [], Es = null, Li = !1;
|
|
226
|
+
var Kn, $n, gn, fn, La, Xn, Zn, Qr, Bi, Ui, Jc, Qc;
|
|
227
227
|
const Mo = class Mo {
|
|
228
228
|
constructor() {
|
|
229
229
|
ke(this, Qr);
|
|
@@ -296,7 +296,7 @@ const Mo = class Mo {
|
|
|
296
296
|
var t = [], n = [];
|
|
297
297
|
for (const o of r)
|
|
298
298
|
ar(this, Qr, Bi).call(this, o, t, n);
|
|
299
|
-
this.is_fork || ar(this, Qr,
|
|
299
|
+
this.is_fork || ar(this, Qr, Jc).call(this), this.is_deferred() ? (ar(this, Qr, Ui).call(this, n), ar(this, Qr, Ui).call(this, t)) : (Ve = null, gl(n), gl(t), (a = O(this, La)) == null || a.resolve()), fr = null;
|
|
300
300
|
}
|
|
301
301
|
/**
|
|
302
302
|
* Associate a change to a given source with the current
|
|
@@ -354,7 +354,7 @@ const Mo = class Mo {
|
|
|
354
354
|
O(this, $n).add(r);
|
|
355
355
|
}
|
|
356
356
|
settled() {
|
|
357
|
-
return (O(this, La) ?? be(this, La,
|
|
357
|
+
return (O(this, La) ?? be(this, La, Rc())).promise;
|
|
358
358
|
}
|
|
359
359
|
static ensure() {
|
|
360
360
|
if (Ve === null) {
|
|
@@ -384,7 +384,7 @@ Bi = function(r, t, n) {
|
|
|
384
384
|
for (var a = r.first, o = null; a !== null; ) {
|
|
385
385
|
var s = a.f, l = (s & (Ht | Sn)) !== 0, c = l && (s & hr) !== 0, u = c || (s & Ur) !== 0 || this.skipped_effects.has(a);
|
|
386
386
|
if (!u && a.fn !== null) {
|
|
387
|
-
l ? a.f ^= hr : o !== null && (s & (bo | Wa |
|
|
387
|
+
l ? a.f ^= hr : o !== null && (s & (bo | Wa | bs)) !== 0 ? o.b.defer_effect(a) : (s & bo) !== 0 ? t.push(a) : pa(a) && ((s & At) !== 0 && O(this, Xn).add(a), oa(a));
|
|
388
388
|
var d = a.first;
|
|
389
389
|
if (d !== null) {
|
|
390
390
|
a = d;
|
|
@@ -400,14 +400,14 @@ Bi = function(r, t, n) {
|
|
|
400
400
|
*/
|
|
401
401
|
Ui = function(r) {
|
|
402
402
|
for (var t = 0; t < r.length; t += 1)
|
|
403
|
-
|
|
404
|
-
},
|
|
403
|
+
Zc(r[t], O(this, Xn), O(this, Zn));
|
|
404
|
+
}, Jc = function() {
|
|
405
405
|
if (O(this, fn) === 0) {
|
|
406
406
|
for (const r of O(this, Kn)) r();
|
|
407
407
|
O(this, Kn).clear();
|
|
408
408
|
}
|
|
409
|
-
O(this, gn) === 0 && ar(this, Qr,
|
|
410
|
-
},
|
|
409
|
+
O(this, gn) === 0 && ar(this, Qr, Qc).call(this);
|
|
410
|
+
}, Qc = function() {
|
|
411
411
|
var a;
|
|
412
412
|
if (eo.size > 1) {
|
|
413
413
|
this.previous.clear();
|
|
@@ -434,7 +434,7 @@ Ui = function(r) {
|
|
|
434
434
|
bt = [];
|
|
435
435
|
const c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
|
|
436
436
|
for (const d of s)
|
|
437
|
-
|
|
437
|
+
eu(d, l, c, u);
|
|
438
438
|
if (bt.length > 0) {
|
|
439
439
|
Ve = o, o.apply();
|
|
440
440
|
for (const d of bt)
|
|
@@ -464,23 +464,23 @@ function c_() {
|
|
|
464
464
|
n.process(bt), rn.clear();
|
|
465
465
|
}
|
|
466
466
|
} finally {
|
|
467
|
-
Li = !1, ko(e),
|
|
467
|
+
Li = !1, ko(e), Es = null;
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
function u_() {
|
|
471
471
|
try {
|
|
472
472
|
Xp();
|
|
473
473
|
} catch (e) {
|
|
474
|
-
na(e,
|
|
474
|
+
na(e, Es);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
let at = null;
|
|
478
|
-
function
|
|
478
|
+
function gl(e) {
|
|
479
479
|
var r = e.length;
|
|
480
480
|
if (r !== 0) {
|
|
481
481
|
for (var t = 0; t < r; ) {
|
|
482
482
|
var n = e[t++];
|
|
483
|
-
if ((n.f & (Ot | Ur)) === 0 && pa(n) && (at = /* @__PURE__ */ new Set(), oa(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ?
|
|
483
|
+
if ((n.f & (Ot | Ur)) === 0 && pa(n) && (at = /* @__PURE__ */ new Set(), oa(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? bu(n) : n.fn = null), (at == null ? void 0 : at.size) > 0)) {
|
|
484
484
|
rn.clear();
|
|
485
485
|
for (const a of at) {
|
|
486
486
|
if ((a.f & (Ot | Ur)) !== 0) continue;
|
|
@@ -499,30 +499,30 @@ function _l(e) {
|
|
|
499
499
|
at = null;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function eu(e, r, t, n) {
|
|
503
503
|
if (!t.has(e) && (t.add(e), e.reactions !== null))
|
|
504
504
|
for (const a of e.reactions) {
|
|
505
505
|
const o = a.f;
|
|
506
|
-
(o & br) !== 0 ?
|
|
506
|
+
(o & br) !== 0 ? eu(
|
|
507
507
|
/** @type {Derived} */
|
|
508
508
|
a,
|
|
509
509
|
r,
|
|
510
510
|
t,
|
|
511
511
|
n
|
|
512
|
-
) : (o & (
|
|
512
|
+
) : (o & (ks | At)) !== 0 && (o & Sr) === 0 && ru(a, r, n) && (ir(a, Sr), Rt(
|
|
513
513
|
/** @type {Effect} */
|
|
514
514
|
a
|
|
515
515
|
));
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function ru(e, r, t) {
|
|
519
519
|
const n = t.get(e);
|
|
520
520
|
if (n !== void 0) return n;
|
|
521
521
|
if (e.deps !== null)
|
|
522
522
|
for (const a of e.deps) {
|
|
523
523
|
if (r.includes(a))
|
|
524
524
|
return !0;
|
|
525
|
-
if ((a.f & br) !== 0 &&
|
|
525
|
+
if ((a.f & br) !== 0 && ru(
|
|
526
526
|
/** @type {Derived} */
|
|
527
527
|
a,
|
|
528
528
|
r,
|
|
@@ -537,10 +537,10 @@ function eu(e, r, t) {
|
|
|
537
537
|
return t.set(e, !1), !1;
|
|
538
538
|
}
|
|
539
539
|
function Rt(e) {
|
|
540
|
-
for (var r =
|
|
540
|
+
for (var r = Es = e; r.parent !== null; ) {
|
|
541
541
|
r = r.parent;
|
|
542
542
|
var t = r.f;
|
|
543
|
-
if (Li && r === Fe && (t & At) !== 0 && (t &
|
|
543
|
+
if (Li && r === Fe && (t & At) !== 0 && (t & Vc) === 0)
|
|
544
544
|
return;
|
|
545
545
|
if ((t & (Sn | Ht)) !== 0) {
|
|
546
546
|
if ((t & hr) === 0) return;
|
|
@@ -549,21 +549,21 @@ function Rt(e) {
|
|
|
549
549
|
}
|
|
550
550
|
bt.push(r);
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function tu(e) {
|
|
553
553
|
let r = 0, t = Pn(0), n;
|
|
554
554
|
return () => {
|
|
555
|
-
|
|
555
|
+
Ts() && (i(t), Xa(() => (r === 0 && (n = Ue(() => e(() => Ea(t)))), r += 1, () => {
|
|
556
556
|
on(() => {
|
|
557
557
|
r -= 1, r === 0 && (n == null || n(), n = void 0, Ea(t));
|
|
558
558
|
});
|
|
559
559
|
})));
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
var d_ = Dt | la |
|
|
563
|
-
function
|
|
562
|
+
var d_ = Dt | la | vs;
|
|
563
|
+
function nu(e, r, t) {
|
|
564
564
|
new p_(e, r, t);
|
|
565
565
|
}
|
|
566
|
-
var Kr,
|
|
566
|
+
var Kr, hs, kt, mn, wt, $r, Dr, Pt, zt, $t, hn, Xt, yn, Jn, Qn, Zt, No, pr, __, g_, Ri, fo, mo, Vi;
|
|
567
567
|
class p_ {
|
|
568
568
|
/**
|
|
569
569
|
* @param {TemplateNode} node
|
|
@@ -578,7 +578,7 @@ class p_ {
|
|
|
578
578
|
/** @type {TemplateNode} */
|
|
579
579
|
ke(this, Kr);
|
|
580
580
|
/** @type {TemplateNode | null} */
|
|
581
|
-
ke(this,
|
|
581
|
+
ke(this, hs, null);
|
|
582
582
|
/** @type {BoundaryProps} */
|
|
583
583
|
ke(this, kt);
|
|
584
584
|
/** @type {((anchor: Node) => void)} */
|
|
@@ -610,7 +610,7 @@ class p_ {
|
|
|
610
610
|
* @type {Source<number> | null}
|
|
611
611
|
*/
|
|
612
612
|
ke(this, Zt, null);
|
|
613
|
-
ke(this, No,
|
|
613
|
+
ke(this, No, tu(() => (be(this, Zt, Pn(O(this, hn))), () => {
|
|
614
614
|
be(this, Zt, null);
|
|
615
615
|
})));
|
|
616
616
|
be(this, Kr, r), be(this, kt, t), be(this, mn, n), this.parent = /** @type {Effect} */
|
|
@@ -636,7 +636,7 @@ class p_ {
|
|
|
636
636
|
* @param {Effect} effect
|
|
637
637
|
*/
|
|
638
638
|
defer_effect(r) {
|
|
639
|
-
|
|
639
|
+
Zc(r, O(this, Jn), O(this, Qn));
|
|
640
640
|
}
|
|
641
641
|
/**
|
|
642
642
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -712,7 +712,7 @@ class p_ {
|
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
|
-
Kr = new WeakMap(),
|
|
715
|
+
Kr = new WeakMap(), hs = new WeakMap(), kt = new WeakMap(), mn = new WeakMap(), wt = new WeakMap(), $r = new WeakMap(), Dr = new WeakMap(), Pt = new WeakMap(), zt = new WeakMap(), $t = new WeakMap(), hn = new WeakMap(), Xt = new WeakMap(), yn = new WeakMap(), Jn = new WeakMap(), Qn = new WeakMap(), Zt = new WeakMap(), No = new WeakMap(), pr = new WeakSet(), __ = function() {
|
|
716
716
|
try {
|
|
717
717
|
be(this, $r, Cr(() => O(this, mn).call(this, O(this, Kr))));
|
|
718
718
|
} catch (r) {
|
|
@@ -742,7 +742,7 @@ fo = function(r) {
|
|
|
742
742
|
try {
|
|
743
743
|
return r();
|
|
744
744
|
} catch (o) {
|
|
745
|
-
return
|
|
745
|
+
return $c(o), null;
|
|
746
746
|
} finally {
|
|
747
747
|
Ct(t), qr(n), ta(a);
|
|
748
748
|
}
|
|
@@ -754,7 +754,7 @@ fo = function(r) {
|
|
|
754
754
|
O(this, $r) !== null && (be(this, zt, document.createDocumentFragment()), O(this, zt).append(
|
|
755
755
|
/** @type {TemplateNode} */
|
|
756
756
|
O(this, $t)
|
|
757
|
-
),
|
|
757
|
+
), wu(O(this, $r), O(this, zt))), O(this, Dr) === null && be(this, Dr, Cr(() => r(O(this, Kr))));
|
|
758
758
|
}, /**
|
|
759
759
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
760
760
|
* if any, such that we can replace the snippet with content once work is done
|
|
@@ -777,7 +777,7 @@ Vi = function(r) {
|
|
|
777
777
|
}), O(this, zt) && (O(this, Kr).before(O(this, zt)), be(this, zt, null));
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
|
-
function
|
|
780
|
+
function au(e, r, t, n) {
|
|
781
781
|
const a = Ya() ? Ga : Lt;
|
|
782
782
|
if (t.length === 0 && e.length === 0) {
|
|
783
783
|
n(r.map(a));
|
|
@@ -828,7 +828,7 @@ function Ga(e) {
|
|
|
828
828
|
ctx: Le,
|
|
829
829
|
deps: null,
|
|
830
830
|
effects: null,
|
|
831
|
-
equals:
|
|
831
|
+
equals: Yc,
|
|
832
832
|
f: r,
|
|
833
833
|
fn: e,
|
|
834
834
|
reactions: null,
|
|
@@ -862,7 +862,7 @@ function m_(e, r, t) {
|
|
|
862
862
|
), l = !Se, c = /* @__PURE__ */ new Map();
|
|
863
863
|
return T_(() => {
|
|
864
864
|
var g;
|
|
865
|
-
var u =
|
|
865
|
+
var u = Rc();
|
|
866
866
|
o = u.promise;
|
|
867
867
|
try {
|
|
868
868
|
Promise.resolve(e()).then(u.resolve, u.reject).then(() => {
|
|
@@ -908,14 +908,14 @@ function m_(e, r, t) {
|
|
|
908
908
|
// @__NO_SIDE_EFFECTS__
|
|
909
909
|
function y(e) {
|
|
910
910
|
const r = /* @__PURE__ */ Ga(e);
|
|
911
|
-
return
|
|
911
|
+
return Pu(r), r;
|
|
912
912
|
}
|
|
913
913
|
// @__NO_SIDE_EFFECTS__
|
|
914
914
|
function Lt(e) {
|
|
915
915
|
const r = /* @__PURE__ */ Ga(e);
|
|
916
|
-
return r.equals =
|
|
916
|
+
return r.equals = Gc, r;
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function ou(e) {
|
|
919
919
|
var r = e.effects;
|
|
920
920
|
if (r !== null) {
|
|
921
921
|
e.effects = null;
|
|
@@ -937,34 +937,34 @@ function h_(e) {
|
|
|
937
937
|
}
|
|
938
938
|
return null;
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function Ss(e) {
|
|
941
941
|
var r, t = Fe;
|
|
942
942
|
Ct(h_(e));
|
|
943
943
|
try {
|
|
944
|
-
e.f &= ~Ca,
|
|
944
|
+
e.f &= ~Ca, ou(e), r = Tu(e);
|
|
945
945
|
} finally {
|
|
946
946
|
Ct(t);
|
|
947
947
|
}
|
|
948
948
|
return r;
|
|
949
949
|
}
|
|
950
|
-
function
|
|
951
|
-
var r =
|
|
952
|
-
if (!e.equals(r) && (e.wv =
|
|
950
|
+
function iu(e) {
|
|
951
|
+
var r = Ss(e);
|
|
952
|
+
if (!e.equals(r) && (e.wv = Eu(), (!(Ve != null && Ve.is_fork) || e.deps === null) && (e.v = r, e.deps === null))) {
|
|
953
953
|
ir(e, hr);
|
|
954
954
|
return;
|
|
955
955
|
}
|
|
956
|
-
nn || (fr !== null ? (
|
|
956
|
+
nn || (fr !== null ? (Ts() || Ve != null && Ve.is_fork) && fr.set(e, r) : xs(e));
|
|
957
957
|
}
|
|
958
958
|
let Hi = /* @__PURE__ */ new Set();
|
|
959
959
|
const rn = /* @__PURE__ */ new Map();
|
|
960
|
-
let
|
|
960
|
+
let su = !1;
|
|
961
961
|
function Pn(e, r) {
|
|
962
962
|
var t = {
|
|
963
963
|
f: 0,
|
|
964
964
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
965
965
|
v: e,
|
|
966
966
|
reactions: null,
|
|
967
|
-
equals:
|
|
967
|
+
equals: Yc,
|
|
968
968
|
rv: 0,
|
|
969
969
|
wv: 0
|
|
970
970
|
};
|
|
@@ -973,18 +973,18 @@ function Pn(e, r) {
|
|
|
973
973
|
// @__NO_SIDE_EFFECTS__
|
|
974
974
|
function X(e, r) {
|
|
975
975
|
const t = Pn(e);
|
|
976
|
-
return
|
|
976
|
+
return Pu(t), t;
|
|
977
977
|
}
|
|
978
978
|
// @__NO_SIDE_EFFECTS__
|
|
979
979
|
function jr(e, r = !1, t = !0) {
|
|
980
980
|
var a;
|
|
981
981
|
const n = Pn(e);
|
|
982
|
-
return r || (n.equals =
|
|
982
|
+
return r || (n.equals = Gc), ca && t && Le !== null && Le.l !== null && ((a = Le.l).s ?? (a.s = [])).push(n), n;
|
|
983
983
|
}
|
|
984
984
|
function L(e, r, t = !1) {
|
|
985
985
|
Se !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
986
986
|
// to ensure we error if state is set inside an inspect effect
|
|
987
|
-
(!it || (Se.f &
|
|
987
|
+
(!it || (Se.f & _l) !== 0) && Ya() && (Se.f & (br | At | ks | _l)) !== 0 && !(Er != null && Er.includes(e)) && e_();
|
|
988
988
|
let n = t ? $e(r) : r;
|
|
989
989
|
return aa(e, n);
|
|
990
990
|
}
|
|
@@ -998,14 +998,14 @@ function aa(e, r) {
|
|
|
998
998
|
/** @type {Derived} */
|
|
999
999
|
e
|
|
1000
1000
|
);
|
|
1001
|
-
(e.f & Sr) !== 0 &&
|
|
1001
|
+
(e.f & Sr) !== 0 && Ss(a), xs(a);
|
|
1002
1002
|
}
|
|
1003
|
-
e.wv =
|
|
1003
|
+
e.wv = Eu(), lu(e, Sr), Ya() && Fe !== null && (Fe.f & hr) !== 0 && (Fe.f & (Ht | Sn)) === 0 && (Gr === null ? D_([e]) : Gr.push(e)), !n.is_fork && Hi.size > 0 && !su && y_();
|
|
1004
1004
|
}
|
|
1005
1005
|
return r;
|
|
1006
1006
|
}
|
|
1007
1007
|
function y_() {
|
|
1008
|
-
|
|
1008
|
+
su = !1;
|
|
1009
1009
|
var e = kn;
|
|
1010
1010
|
ko(!0);
|
|
1011
1011
|
const r = Array.from(Hi);
|
|
@@ -1020,7 +1020,7 @@ function y_() {
|
|
|
1020
1020
|
function Ea(e) {
|
|
1021
1021
|
L(e, e.v + 1);
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function lu(e, r) {
|
|
1024
1024
|
var t = e.reactions;
|
|
1025
1025
|
if (t !== null)
|
|
1026
1026
|
for (var n = Ya(), a = t.length, o = 0; o < a; o++) {
|
|
@@ -1032,7 +1032,7 @@ function su(e, r) {
|
|
|
1032
1032
|
/** @type {Derived} */
|
|
1033
1033
|
s
|
|
1034
1034
|
);
|
|
1035
|
-
fr == null || fr.delete(u), (l & Ca) === 0 && (l & Jr && (s.f |= Ca),
|
|
1035
|
+
fr == null || fr.delete(u), (l & Ca) === 0 && (l & Jr && (s.f |= Ca), lu(u, qt));
|
|
1036
1036
|
} else c && ((l & At) !== 0 && at !== null && at.add(
|
|
1037
1037
|
/** @type {Effect} */
|
|
1038
1038
|
s
|
|
@@ -1046,16 +1046,16 @@ function su(e, r) {
|
|
|
1046
1046
|
function $e(e) {
|
|
1047
1047
|
if (typeof e != "object" || e === null || Et in e)
|
|
1048
1048
|
return e;
|
|
1049
|
-
const r =
|
|
1049
|
+
const r = ys(e);
|
|
1050
1050
|
if (r !== Rp && r !== Vp)
|
|
1051
1051
|
return e;
|
|
1052
1052
|
var t = /* @__PURE__ */ new Map(), n = Bo(e), a = /* @__PURE__ */ X(0), o = wn, s = (l) => {
|
|
1053
1053
|
if (wn === o)
|
|
1054
1054
|
return l();
|
|
1055
1055
|
var c = Se, u = wn;
|
|
1056
|
-
qr(null),
|
|
1056
|
+
qr(null), yl(o);
|
|
1057
1057
|
var d = l();
|
|
1058
|
-
return qr(c),
|
|
1058
|
+
return qr(c), yl(u), d;
|
|
1059
1059
|
};
|
|
1060
1060
|
return n && t.set("length", /* @__PURE__ */ X(
|
|
1061
1061
|
/** @type {any[]} */
|
|
@@ -1175,7 +1175,7 @@ function $e(e) {
|
|
|
1175
1175
|
}
|
|
1176
1176
|
);
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function fl(e) {
|
|
1179
1179
|
try {
|
|
1180
1180
|
if (e !== null && typeof e == "object" && Et in e)
|
|
1181
1181
|
return e[Et];
|
|
@@ -1184,14 +1184,14 @@ function gl(e) {
|
|
|
1184
1184
|
return e;
|
|
1185
1185
|
}
|
|
1186
1186
|
function b_(e, r) {
|
|
1187
|
-
return Object.is(
|
|
1187
|
+
return Object.is(fl(e), fl(r));
|
|
1188
1188
|
}
|
|
1189
|
-
var
|
|
1189
|
+
var ml, cu, uu, du;
|
|
1190
1190
|
function v_() {
|
|
1191
|
-
if (
|
|
1192
|
-
|
|
1191
|
+
if (ml === void 0) {
|
|
1192
|
+
ml = window, cu = /Firefox/.test(navigator.userAgent);
|
|
1193
1193
|
var e = Element.prototype, r = Node.prototype, t = Text.prototype;
|
|
1194
|
-
|
|
1194
|
+
uu = Qt(r, "firstChild").get, du = Qt(r, "nextSibling").get, pl(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), pl(t) && (t.__t = void 0);
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
1197
|
function St(e = "") {
|
|
@@ -1201,14 +1201,14 @@ function St(e = "") {
|
|
|
1201
1201
|
function Lr(e) {
|
|
1202
1202
|
return (
|
|
1203
1203
|
/** @type {TemplateNode | null} */
|
|
1204
|
-
|
|
1204
|
+
uu.call(e)
|
|
1205
1205
|
);
|
|
1206
1206
|
}
|
|
1207
1207
|
// @__NO_SIDE_EFFECTS__
|
|
1208
1208
|
function Ka(e) {
|
|
1209
1209
|
return (
|
|
1210
1210
|
/** @type {TemplateNode | null} */
|
|
1211
|
-
|
|
1211
|
+
du.call(e)
|
|
1212
1212
|
);
|
|
1213
1213
|
}
|
|
1214
1214
|
function z(e, r) {
|
|
@@ -1230,7 +1230,7 @@ function R(e, r = 1, t = !1) {
|
|
|
1230
1230
|
function k_(e) {
|
|
1231
1231
|
e.textContent = "";
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function pu() {
|
|
1234
1234
|
return !1;
|
|
1235
1235
|
}
|
|
1236
1236
|
function w_(e, r) {
|
|
@@ -1250,7 +1250,7 @@ function $a(e) {
|
|
|
1250
1250
|
qr(r), Ct(t);
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function _u(e) {
|
|
1254
1254
|
Fe === null && (Se === null && $p(), Kp()), nn && Gp();
|
|
1255
1255
|
}
|
|
1256
1256
|
function P_(e, r) {
|
|
@@ -1294,7 +1294,7 @@ function lt(e, r, t) {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
return a;
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function Ts() {
|
|
1298
1298
|
return Se !== null && !it;
|
|
1299
1299
|
}
|
|
1300
1300
|
function ua(e) {
|
|
@@ -1302,7 +1302,7 @@ function ua(e) {
|
|
|
1302
1302
|
return ir(r, hr), r.teardown = e, r;
|
|
1303
1303
|
}
|
|
1304
1304
|
function xr(e) {
|
|
1305
|
-
|
|
1305
|
+
_u();
|
|
1306
1306
|
var r = (
|
|
1307
1307
|
/** @type {Effect} */
|
|
1308
1308
|
Fe.f
|
|
@@ -1314,13 +1314,13 @@ function xr(e) {
|
|
|
1314
1314
|
);
|
|
1315
1315
|
(n.e ?? (n.e = [])).push(e);
|
|
1316
1316
|
} else
|
|
1317
|
-
return
|
|
1317
|
+
return gu(e);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return lt(bo |
|
|
1319
|
+
function gu(e) {
|
|
1320
|
+
return lt(bo | Hc, e, !1);
|
|
1321
1321
|
}
|
|
1322
1322
|
function x_(e) {
|
|
1323
|
-
return
|
|
1323
|
+
return _u(), lt(Wa | Hc, e, !0);
|
|
1324
1324
|
}
|
|
1325
1325
|
function E_(e) {
|
|
1326
1326
|
Nt.ensure();
|
|
@@ -1357,13 +1357,13 @@ function S_() {
|
|
|
1357
1357
|
});
|
|
1358
1358
|
}
|
|
1359
1359
|
function T_(e) {
|
|
1360
|
-
return lt(
|
|
1360
|
+
return lt(ks | la, e, !0);
|
|
1361
1361
|
}
|
|
1362
1362
|
function Xa(e, r = 0) {
|
|
1363
1363
|
return lt(Wa | r, e, !0);
|
|
1364
1364
|
}
|
|
1365
1365
|
function U(e, r = [], t = [], n = []) {
|
|
1366
|
-
|
|
1366
|
+
au(n, r, t, (a) => {
|
|
1367
1367
|
lt(Wa, () => e(...a.map(i)), !0);
|
|
1368
1368
|
});
|
|
1369
1369
|
}
|
|
@@ -1371,26 +1371,26 @@ function da(e, r = 0) {
|
|
|
1371
1371
|
var t = lt(At | r, e, !0);
|
|
1372
1372
|
return t;
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1375
|
-
var t = lt(
|
|
1374
|
+
function fu(e, r = 0) {
|
|
1375
|
+
var t = lt(bs | r, e, !0);
|
|
1376
1376
|
return t;
|
|
1377
1377
|
}
|
|
1378
1378
|
function Cr(e) {
|
|
1379
1379
|
return lt(Ht | la, e, !0);
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function mu(e) {
|
|
1382
1382
|
var r = e.teardown;
|
|
1383
1383
|
if (r !== null) {
|
|
1384
1384
|
const t = nn, n = Se;
|
|
1385
|
-
|
|
1385
|
+
hl(!0), qr(null);
|
|
1386
1386
|
try {
|
|
1387
1387
|
r.call(null);
|
|
1388
1388
|
} finally {
|
|
1389
|
-
|
|
1389
|
+
hl(t), qr(n);
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function hu(e, r = !1) {
|
|
1394
1394
|
var t = e.first;
|
|
1395
1395
|
for (e.first = e.last = null; t !== null; ) {
|
|
1396
1396
|
const a = t.ac;
|
|
@@ -1409,32 +1409,32 @@ function I_(e) {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
function yr(e, r = !0) {
|
|
1411
1411
|
var t = !1;
|
|
1412
|
-
(r || (e.f &
|
|
1412
|
+
(r || (e.f & Vc) !== 0) && e.nodes !== null && e.nodes.end !== null && (yu(
|
|
1413
1413
|
e.nodes.start,
|
|
1414
1414
|
/** @type {TemplateNode} */
|
|
1415
1415
|
e.nodes.end
|
|
1416
|
-
), t = !0),
|
|
1416
|
+
), t = !0), hu(e, r && !t), wo(e, 0), ir(e, Ot);
|
|
1417
1417
|
var n = e.nodes && e.nodes.t;
|
|
1418
1418
|
if (n !== null)
|
|
1419
1419
|
for (const o of n)
|
|
1420
1420
|
o.stop();
|
|
1421
|
-
|
|
1421
|
+
mu(e);
|
|
1422
1422
|
var a = e.parent;
|
|
1423
|
-
a !== null && a.first !== null &&
|
|
1423
|
+
a !== null && a.first !== null && bu(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function yu(e, r) {
|
|
1426
1426
|
for (; e !== null; ) {
|
|
1427
1427
|
var t = e === r ? null : /* @__PURE__ */ Ka(e);
|
|
1428
1428
|
e.remove(), e = t;
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function bu(e) {
|
|
1432
1432
|
var r = e.parent, t = e.prev, n = e.next;
|
|
1433
1433
|
t !== null && (t.next = n), n !== null && (n.prev = t), r !== null && (r.first === e && (r.first = n), r.last === e && (r.last = t));
|
|
1434
1434
|
}
|
|
1435
1435
|
function vn(e, r, t = !0) {
|
|
1436
1436
|
var n = [];
|
|
1437
|
-
|
|
1437
|
+
vu(e, n, !0);
|
|
1438
1438
|
var a = () => {
|
|
1439
1439
|
t && yr(e), r && r();
|
|
1440
1440
|
}, o = n.length;
|
|
@@ -1445,7 +1445,7 @@ function vn(e, r, t = !0) {
|
|
|
1445
1445
|
} else
|
|
1446
1446
|
a();
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function vu(e, r, t) {
|
|
1449
1449
|
if ((e.f & Ur) === 0) {
|
|
1450
1450
|
e.f ^= Ur;
|
|
1451
1451
|
var n = e.nodes && e.nodes.t;
|
|
@@ -1457,19 +1457,19 @@ function bu(e, r, t) {
|
|
|
1457
1457
|
// it means the parent block effect was pruned. In that case,
|
|
1458
1458
|
// transparency information was transferred to the branch effect.
|
|
1459
1459
|
(a.f & Ht) !== 0 && (e.f & At) !== 0;
|
|
1460
|
-
|
|
1460
|
+
vu(a, r, s ? t : !1), a = o;
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1465
|
-
|
|
1464
|
+
function Is(e) {
|
|
1465
|
+
ku(e, !0);
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function ku(e, r) {
|
|
1468
1468
|
if ((e.f & Ur) !== 0) {
|
|
1469
1469
|
e.f ^= Ur, (e.f & hr) === 0 && (ir(e, Sr), Rt(e));
|
|
1470
1470
|
for (var t = e.first; t !== null; ) {
|
|
1471
1471
|
var n = t.next, a = (t.f & Dt) !== 0 || (t.f & Ht) !== 0;
|
|
1472
|
-
|
|
1472
|
+
ku(t, a ? r : !1), t = n;
|
|
1473
1473
|
}
|
|
1474
1474
|
var o = e.nodes && e.nodes.t;
|
|
1475
1475
|
if (o !== null)
|
|
@@ -1477,7 +1477,7 @@ function vu(e, r) {
|
|
|
1477
1477
|
(s.is_global || r) && s.in();
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function wu(e, r) {
|
|
1481
1481
|
if (e.nodes)
|
|
1482
1482
|
for (var t = e.nodes.start, n = e.nodes.end; t !== null; ) {
|
|
1483
1483
|
var a = t === n ? null : /* @__PURE__ */ Ka(t);
|
|
@@ -1489,7 +1489,7 @@ function ko(e) {
|
|
|
1489
1489
|
kn = e;
|
|
1490
1490
|
}
|
|
1491
1491
|
let nn = !1;
|
|
1492
|
-
function
|
|
1492
|
+
function hl(e) {
|
|
1493
1493
|
nn = e;
|
|
1494
1494
|
}
|
|
1495
1495
|
let Se = null, it = !1;
|
|
@@ -1501,19 +1501,19 @@ function Ct(e) {
|
|
|
1501
1501
|
Fe = e;
|
|
1502
1502
|
}
|
|
1503
1503
|
let Er = null;
|
|
1504
|
-
function
|
|
1504
|
+
function Pu(e) {
|
|
1505
1505
|
Se !== null && (Er === null ? Er = [e] : Er.push(e));
|
|
1506
1506
|
}
|
|
1507
1507
|
let Pr = null, Nr = 0, Gr = null;
|
|
1508
1508
|
function D_(e) {
|
|
1509
1509
|
Gr = e;
|
|
1510
1510
|
}
|
|
1511
|
-
let
|
|
1512
|
-
function
|
|
1511
|
+
let xu = 1, Aa = 0, wn = Aa;
|
|
1512
|
+
function yl(e) {
|
|
1513
1513
|
wn = e;
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1516
|
-
return ++
|
|
1515
|
+
function Eu() {
|
|
1516
|
+
return ++xu;
|
|
1517
1517
|
}
|
|
1518
1518
|
function pa(e) {
|
|
1519
1519
|
var r = e.f;
|
|
@@ -1528,7 +1528,7 @@ function pa(e) {
|
|
|
1528
1528
|
if (pa(
|
|
1529
1529
|
/** @type {Derived} */
|
|
1530
1530
|
o
|
|
1531
|
-
) &&
|
|
1531
|
+
) && iu(
|
|
1532
1532
|
/** @type {Derived} */
|
|
1533
1533
|
o
|
|
1534
1534
|
), o.wv > e.wv)
|
|
@@ -1540,12 +1540,12 @@ function pa(e) {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
return !1;
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function Su(e, r, t = !0) {
|
|
1544
1544
|
var n = e.reactions;
|
|
1545
1545
|
if (n !== null && !(Er != null && Er.includes(e)))
|
|
1546
1546
|
for (var a = 0; a < n.length; a++) {
|
|
1547
1547
|
var o = n[a];
|
|
1548
|
-
(o.f & br) !== 0 ?
|
|
1548
|
+
(o.f & br) !== 0 ? Su(
|
|
1549
1549
|
/** @type {Derived} */
|
|
1550
1550
|
o,
|
|
1551
1551
|
r,
|
|
@@ -1556,7 +1556,7 @@ function Eu(e, r, t = !0) {
|
|
|
1556
1556
|
));
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1559
|
+
function Tu(e) {
|
|
1560
1560
|
var f;
|
|
1561
1561
|
var r = Pr, t = Nr, n = Gr, a = Se, o = Er, s = Le, l = it, c = wn, u = e.f;
|
|
1562
1562
|
Pr = /** @type {null | Value[]} */
|
|
@@ -1576,14 +1576,14 @@ function Su(e) {
|
|
|
1576
1576
|
_[Nr + g] = Pr[g];
|
|
1577
1577
|
else
|
|
1578
1578
|
e.deps = _ = Pr;
|
|
1579
|
-
if (
|
|
1579
|
+
if (Ts() && (e.f & Jr) !== 0)
|
|
1580
1580
|
for (g = Nr; g < _.length; g++)
|
|
1581
1581
|
((f = _[g]).reactions ?? (f.reactions = [])).push(e);
|
|
1582
1582
|
} else _ !== null && Nr < _.length && (wo(e, Nr), _.length = Nr);
|
|
1583
1583
|
if (Ya() && Gr !== null && !it && _ !== null && (e.f & (br | qt | Sr)) === 0)
|
|
1584
1584
|
for (g = 0; g < /** @type {Source[]} */
|
|
1585
1585
|
Gr.length; g++)
|
|
1586
|
-
|
|
1586
|
+
Su(
|
|
1587
1587
|
Gr[g],
|
|
1588
1588
|
/** @type {Effect} */
|
|
1589
1589
|
e
|
|
@@ -1591,7 +1591,7 @@ function Su(e) {
|
|
|
1591
1591
|
return a !== null && a !== e && (Aa++, Gr !== null && (n === null ? n = Gr : n.push(.../** @type {Source[]} */
|
|
1592
1592
|
Gr))), (e.f & en) !== 0 && (e.f ^= en), p;
|
|
1593
1593
|
} catch (w) {
|
|
1594
|
-
return
|
|
1594
|
+
return $c(w);
|
|
1595
1595
|
} finally {
|
|
1596
1596
|
e.f ^= Oi, Pr = r, Nr = t, Gr = n, Se = a, Er = o, ta(s), it = l, wn = c;
|
|
1597
1597
|
}
|
|
@@ -1613,7 +1613,7 @@ function C_(e, r) {
|
|
|
1613
1613
|
/** @type {Derived} */
|
|
1614
1614
|
r
|
|
1615
1615
|
);
|
|
1616
|
-
(o.f & Jr) !== 0 && (o.f ^= Jr, o.f &= -32769),
|
|
1616
|
+
(o.f & Jr) !== 0 && (o.f ^= Jr, o.f &= -32769), xs(o), ou(o), wo(o, 0);
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
1619
|
function wo(e, r) {
|
|
@@ -1629,9 +1629,9 @@ function oa(e) {
|
|
|
1629
1629
|
var t = Fe, n = kn;
|
|
1630
1630
|
Fe = e, kn = !0;
|
|
1631
1631
|
try {
|
|
1632
|
-
(r & (At |
|
|
1633
|
-
var a =
|
|
1634
|
-
e.teardown = typeof a == "function" ? a : null, e.wv =
|
|
1632
|
+
(r & (At | bs)) !== 0 ? I_(e) : hu(e), mu(e);
|
|
1633
|
+
var a = Tu(e);
|
|
1634
|
+
e.teardown = typeof a == "function" ? a : null, e.wv = xu;
|
|
1635
1635
|
var o;
|
|
1636
1636
|
ji && a_ && (e.f & Sr) !== 0 && e.deps;
|
|
1637
1637
|
} finally {
|
|
@@ -1663,10 +1663,10 @@ function i(e) {
|
|
|
1663
1663
|
);
|
|
1664
1664
|
if (nn) {
|
|
1665
1665
|
var l = s.v;
|
|
1666
|
-
return ((s.f & hr) === 0 && s.reactions !== null ||
|
|
1666
|
+
return ((s.f & hr) === 0 && s.reactions !== null || Du(s)) && (l = Ss(s)), rn.set(s, l), l;
|
|
1667
1667
|
}
|
|
1668
1668
|
var c = (s.f & Jr) === 0 && !it && Se !== null && (kn || (Se.f & Jr) !== 0), u = s.deps === null;
|
|
1669
|
-
pa(s) && (c && (s.f |= Jr),
|
|
1669
|
+
pa(s) && (c && (s.f |= Jr), iu(s)), c && !u && Iu(s);
|
|
1670
1670
|
}
|
|
1671
1671
|
if (fr != null && fr.has(e))
|
|
1672
1672
|
return fr.get(e);
|
|
@@ -1674,21 +1674,21 @@ function i(e) {
|
|
|
1674
1674
|
throw e.v;
|
|
1675
1675
|
return e.v;
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function Iu(e) {
|
|
1678
1678
|
if (e.deps !== null) {
|
|
1679
1679
|
e.f |= Jr;
|
|
1680
1680
|
for (const r of e.deps)
|
|
1681
|
-
(r.reactions ?? (r.reactions = [])).push(e), (r.f & br) !== 0 && (r.f & Jr) === 0 &&
|
|
1681
|
+
(r.reactions ?? (r.reactions = [])).push(e), (r.f & br) !== 0 && (r.f & Jr) === 0 && Iu(
|
|
1682
1682
|
/** @type {Derived} */
|
|
1683
1683
|
r
|
|
1684
1684
|
);
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1687
|
+
function Du(e) {
|
|
1688
1688
|
if (e.v === ur) return !0;
|
|
1689
1689
|
if (e.deps === null) return !1;
|
|
1690
1690
|
for (const r of e.deps)
|
|
1691
|
-
if (rn.has(r) || (r.f & br) !== 0 &&
|
|
1691
|
+
if (rn.has(r) || (r.f & br) !== 0 && Du(
|
|
1692
1692
|
/** @type {Derived} */
|
|
1693
1693
|
r
|
|
1694
1694
|
))
|
|
@@ -1731,9 +1731,9 @@ function Wi(e, r = /* @__PURE__ */ new Set()) {
|
|
|
1731
1731
|
Wi(e[n], r);
|
|
1732
1732
|
} catch {
|
|
1733
1733
|
}
|
|
1734
|
-
const t =
|
|
1734
|
+
const t = ys(e);
|
|
1735
1735
|
if (t !== Object.prototype && t !== Array.prototype && t !== Map.prototype && t !== Set.prototype && t !== Date.prototype) {
|
|
1736
|
-
const n =
|
|
1736
|
+
const n = Uc(t);
|
|
1737
1737
|
for (let a in n) {
|
|
1738
1738
|
const o = n[a].get;
|
|
1739
1739
|
if (o)
|
|
@@ -1745,8 +1745,8 @@ function Wi(e, r = /* @__PURE__ */ new Set()) {
|
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
|
-
const
|
|
1749
|
-
function
|
|
1748
|
+
const Cu = /* @__PURE__ */ new Set(), Yi = /* @__PURE__ */ new Set();
|
|
1749
|
+
function Ds(e, r, t, n = {}) {
|
|
1750
1750
|
function a(o) {
|
|
1751
1751
|
if (n.capture || wa.call(r, o), !o.cancelBubble)
|
|
1752
1752
|
return $a(() => t == null ? void 0 : t.call(this, o));
|
|
@@ -1756,13 +1756,13 @@ function Is(e, r, t, n = {}) {
|
|
|
1756
1756
|
}) : r.addEventListener(e, a, n), a;
|
|
1757
1757
|
}
|
|
1758
1758
|
function q_(e, r, t, n = {}) {
|
|
1759
|
-
var a =
|
|
1759
|
+
var a = Ds(r, e, t, n);
|
|
1760
1760
|
return () => {
|
|
1761
1761
|
e.removeEventListener(r, a, n);
|
|
1762
1762
|
};
|
|
1763
1763
|
}
|
|
1764
1764
|
function Br(e, r, t, n, a) {
|
|
1765
|
-
var o = { capture: n, passive: a }, s =
|
|
1765
|
+
var o = { capture: n, passive: a }, s = Ds(e, r, t, o);
|
|
1766
1766
|
(r === document.body || // @ts-ignore
|
|
1767
1767
|
r === window || // @ts-ignore
|
|
1768
1768
|
r === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
|
|
@@ -1772,11 +1772,11 @@ function Br(e, r, t, n, a) {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
function Za(e) {
|
|
1774
1774
|
for (var r = 0; r < e.length; r++)
|
|
1775
|
-
|
|
1775
|
+
Cu.add(e[r]);
|
|
1776
1776
|
for (var t of Yi)
|
|
1777
1777
|
t(e);
|
|
1778
1778
|
}
|
|
1779
|
-
let
|
|
1779
|
+
let bl = null;
|
|
1780
1780
|
function wa(e) {
|
|
1781
1781
|
var k;
|
|
1782
1782
|
var r = this, t = (
|
|
@@ -1786,8 +1786,8 @@ function wa(e) {
|
|
|
1786
1786
|
/** @type {null | Element} */
|
|
1787
1787
|
a[0] || e.target
|
|
1788
1788
|
);
|
|
1789
|
-
|
|
1790
|
-
var s = 0, l =
|
|
1789
|
+
bl = e;
|
|
1790
|
+
var s = 0, l = bl === e && e.__root;
|
|
1791
1791
|
if (l) {
|
|
1792
1792
|
var c = a.indexOf(l);
|
|
1793
1793
|
if (c !== -1 && (r === document || r === /** @type {any} */
|
|
@@ -1802,7 +1802,7 @@ function wa(e) {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
if (o = /** @type {Element} */
|
|
1804
1804
|
a[s] || e.target, o !== r) {
|
|
1805
|
-
|
|
1805
|
+
Bc(e, "currentTarget", {
|
|
1806
1806
|
configurable: !0,
|
|
1807
1807
|
get() {
|
|
1808
1808
|
return o || t;
|
|
@@ -1839,7 +1839,7 @@ function wa(e) {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function Cs(e) {
|
|
1843
1843
|
var r = document.createElement("template");
|
|
1844
1844
|
return r.innerHTML = e.replaceAll("<!>", "<!---->"), r.content;
|
|
1845
1845
|
}
|
|
@@ -1852,13 +1852,13 @@ function an(e, r) {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
// @__NO_SIDE_EFFECTS__
|
|
1854
1854
|
function B(e, r) {
|
|
1855
|
-
var t = (r &
|
|
1855
|
+
var t = (r & Lc) !== 0, n = (r & jp) !== 0, a, o = !e.startsWith("<!>");
|
|
1856
1856
|
return () => {
|
|
1857
|
-
a === void 0 && (a =
|
|
1857
|
+
a === void 0 && (a = Cs(o ? e : "<!>" + e), t || (a = /** @type {TemplateNode} */
|
|
1858
1858
|
/* @__PURE__ */ Lr(a)));
|
|
1859
1859
|
var s = (
|
|
1860
1860
|
/** @type {TemplateNode} */
|
|
1861
|
-
n ||
|
|
1861
|
+
n || cu ? document.importNode(a, !0) : a.cloneNode(!0)
|
|
1862
1862
|
);
|
|
1863
1863
|
if (t) {
|
|
1864
1864
|
var l = (
|
|
@@ -1876,12 +1876,12 @@ function B(e, r) {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
// @__NO_SIDE_EFFECTS__
|
|
1878
1878
|
function z_(e, r, t = "svg") {
|
|
1879
|
-
var n = !e.startsWith("<!>"), a = (r &
|
|
1879
|
+
var n = !e.startsWith("<!>"), a = (r & Lc) !== 0, o = `<${t}>${n ? e : "<!>" + e}</${t}>`, s;
|
|
1880
1880
|
return () => {
|
|
1881
1881
|
if (!s) {
|
|
1882
1882
|
var l = (
|
|
1883
1883
|
/** @type {DocumentFragment} */
|
|
1884
|
-
|
|
1884
|
+
Cs(o)
|
|
1885
1885
|
), c = (
|
|
1886
1886
|
/** @type {Element} */
|
|
1887
1887
|
/* @__PURE__ */ Lr(l)
|
|
@@ -2013,10 +2013,10 @@ function U_(e, { target: r, anchor: t, props: n = {}, events: a, context: o, int
|
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
2015
|
};
|
|
2016
|
-
c(Uo(
|
|
2016
|
+
c(Uo(Cu)), Yi.add(c);
|
|
2017
2017
|
var u = void 0, d = E_(() => {
|
|
2018
2018
|
var p = t ?? r.appendChild(St());
|
|
2019
|
-
return
|
|
2019
|
+
return nu(
|
|
2020
2020
|
/** @type {TemplateNode} */
|
|
2021
2021
|
p,
|
|
2022
2022
|
{
|
|
@@ -2107,7 +2107,7 @@ class Ho {
|
|
|
2107
2107
|
O(this, ot).get(r)
|
|
2108
2108
|
), n = O(this, xt).get(t);
|
|
2109
2109
|
if (n)
|
|
2110
|
-
|
|
2110
|
+
Is(n), O(this, bn).delete(t);
|
|
2111
2111
|
else {
|
|
2112
2112
|
var a = O(this, Or).get(t);
|
|
2113
2113
|
a && (O(this, xt).set(t, a.effect), O(this, Or).delete(t), a.fragment.lastChild.remove(), this.anchor.before(a.fragment), n = a.effect);
|
|
@@ -2123,7 +2123,7 @@ class Ho {
|
|
|
2123
2123
|
const l = () => {
|
|
2124
2124
|
if (Array.from(O(this, ot).values()).includes(o)) {
|
|
2125
2125
|
var u = document.createDocumentFragment();
|
|
2126
|
-
|
|
2126
|
+
wu(s, u), u.append(St()), O(this, Or).set(o, { effect: s, fragment: u });
|
|
2127
2127
|
} else
|
|
2128
2128
|
yr(s);
|
|
2129
2129
|
O(this, bn).delete(o), O(this, xt).delete(o);
|
|
@@ -2152,7 +2152,7 @@ class Ho {
|
|
|
2152
2152
|
var n = (
|
|
2153
2153
|
/** @type {Batch} */
|
|
2154
2154
|
Ve
|
|
2155
|
-
), a =
|
|
2155
|
+
), a = pu();
|
|
2156
2156
|
if (t && !O(this, xt).has(r) && !O(this, Or).has(r))
|
|
2157
2157
|
if (a) {
|
|
2158
2158
|
var o = document.createDocumentFragment(), s = St();
|
|
@@ -2184,7 +2184,7 @@ function Xe(e, r, ...t) {
|
|
|
2184
2184
|
}, Dt);
|
|
2185
2185
|
}
|
|
2186
2186
|
function _r(e) {
|
|
2187
|
-
Le === null &&
|
|
2187
|
+
Le === null && ws(), ca && Le.l !== null ? R_(Le).m.push(e) : xr(() => {
|
|
2188
2188
|
const r = Ue(e);
|
|
2189
2189
|
if (typeof r == "function") return (
|
|
2190
2190
|
/** @type {() => void} */
|
|
@@ -2193,7 +2193,7 @@ function _r(e) {
|
|
|
2193
2193
|
});
|
|
2194
2194
|
}
|
|
2195
2195
|
function sn(e) {
|
|
2196
|
-
Le === null &&
|
|
2196
|
+
Le === null && ws(), _r(() => () => Ue(e));
|
|
2197
2197
|
}
|
|
2198
2198
|
function R_(e) {
|
|
2199
2199
|
var r = (
|
|
@@ -2260,9 +2260,9 @@ function Ki(e, r = !0) {
|
|
|
2260
2260
|
for (var t = 0; t < e.length; t++)
|
|
2261
2261
|
yr(e[t], r);
|
|
2262
2262
|
}
|
|
2263
|
-
var
|
|
2263
|
+
var vl;
|
|
2264
2264
|
function Tt(e, r, t, n, a, o = null) {
|
|
2265
|
-
var s = e, l = /* @__PURE__ */ new Map(), c = (r &
|
|
2265
|
+
var s = e, l = /* @__PURE__ */ new Map(), c = (r & Oc) !== 0;
|
|
2266
2266
|
if (c) {
|
|
2267
2267
|
var u = (
|
|
2268
2268
|
/** @type {Element} */
|
|
@@ -2275,7 +2275,7 @@ function Tt(e, r, t, n, a, o = null) {
|
|
|
2275
2275
|
return Bo(m) ? m : m == null ? [] : Uo(m);
|
|
2276
2276
|
}), _, g = !0;
|
|
2277
2277
|
function f() {
|
|
2278
|
-
k.fallback = d, H_(k, _, s, r, n), d !== null && (_.length === 0 ? (d.f & Mt) === 0 ?
|
|
2278
|
+
k.fallback = d, H_(k, _, s, r, n), d !== null && (_.length === 0 ? (d.f & Mt) === 0 ? Is(d) : (d.f ^= Mt, Pa(d, null, s)) : vn(d, () => {
|
|
2279
2279
|
d = null;
|
|
2280
2280
|
}));
|
|
2281
2281
|
}
|
|
@@ -2285,11 +2285,11 @@ function Tt(e, r, t, n, a, o = null) {
|
|
|
2285
2285
|
for (var m = _.length, h = /* @__PURE__ */ new Set(), v = (
|
|
2286
2286
|
/** @type {Batch} */
|
|
2287
2287
|
Ve
|
|
2288
|
-
), b =
|
|
2288
|
+
), b = pu(), E = 0; E < m; E += 1) {
|
|
2289
2289
|
var T = _[E], x = n(T, E), P = g ? null : l.get(x);
|
|
2290
2290
|
P ? (P.v && aa(P.v, T), P.i && aa(P.i, E), b && v.skipped_effects.delete(P.e)) : (P = W_(
|
|
2291
2291
|
l,
|
|
2292
|
-
g ? s :
|
|
2292
|
+
g ? s : vl ?? (vl = St()),
|
|
2293
2293
|
T,
|
|
2294
2294
|
x,
|
|
2295
2295
|
E,
|
|
@@ -2298,7 +2298,7 @@ function Tt(e, r, t, n, a, o = null) {
|
|
|
2298
2298
|
t
|
|
2299
2299
|
), g || (P.e.f |= Mt), l.set(x, P)), h.add(x);
|
|
2300
2300
|
}
|
|
2301
|
-
if (m === 0 && o && !d && (g ? d = Cr(() => o(s)) : (d = Cr(() => o(
|
|
2301
|
+
if (m === 0 && o && !d && (g ? d = Cr(() => o(s)) : (d = Cr(() => o(vl ?? (vl = St()))), d.f |= Mt)), !g)
|
|
2302
2302
|
if (b) {
|
|
2303
2303
|
for (const [I, A] of l)
|
|
2304
2304
|
h.has(I) || v.skipped_effects.add(A.e);
|
|
@@ -2330,7 +2330,7 @@ function H_(e, r, t, n, a) {
|
|
|
2330
2330
|
k === e.effect.last && (e.effect.last = k.prev), k.prev && (k.prev.next = k.next), k.next && (k.next.prev = k.prev), Gt(e, d, k), Gt(e, k, h), Pa(k, h, t), d = k, _ = [], g = [], c = d.next;
|
|
2331
2331
|
continue;
|
|
2332
2332
|
}
|
|
2333
|
-
if ((k.f & Ur) !== 0 && (
|
|
2333
|
+
if ((k.f & Ur) !== 0 && (Is(k), o && ((D = (M = k.nodes) == null ? void 0 : M.a) == null || D.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(k))), k !== c) {
|
|
2334
2334
|
if (u !== void 0 && u.has(k)) {
|
|
2335
2335
|
if (_.length < g.length) {
|
|
2336
2336
|
var v = g[0], b;
|
|
@@ -2366,7 +2366,7 @@ function H_(e, r, t, n, a) {
|
|
|
2366
2366
|
(c.f & Ur) === 0 && c !== e.fallback && x.push(c), c = c.next;
|
|
2367
2367
|
var P = x.length;
|
|
2368
2368
|
if (P > 0) {
|
|
2369
|
-
var I = (n &
|
|
2369
|
+
var I = (n & Oc) !== 0 && s === 0 ? t : null;
|
|
2370
2370
|
if (o) {
|
|
2371
2371
|
for (m = 0; m < P; m += 1)
|
|
2372
2372
|
(C = (H = x[m].nodes) == null ? void 0 : H.a) == null || C.measure();
|
|
@@ -2418,14 +2418,14 @@ function ln(e, r, t = !1, n = !1, a = !1) {
|
|
|
2418
2418
|
/** @type {Effect} */
|
|
2419
2419
|
Fe
|
|
2420
2420
|
);
|
|
2421
|
-
if (s !== (s = r() ?? "") && (l.nodes !== null && (
|
|
2421
|
+
if (s !== (s = r() ?? "") && (l.nodes !== null && (yu(
|
|
2422
2422
|
l.nodes.start,
|
|
2423
2423
|
/** @type {TemplateNode} */
|
|
2424
2424
|
l.nodes.end
|
|
2425
2425
|
), l.nodes = null), s !== "")) {
|
|
2426
2426
|
var c = s + "";
|
|
2427
2427
|
t ? c = `<svg>${c}</svg>` : n && (c = `<math>${c}</math>`);
|
|
2428
|
-
var u =
|
|
2428
|
+
var u = Cs(c);
|
|
2429
2429
|
if ((t || n) && (u = /** @type {Element} */
|
|
2430
2430
|
/* @__PURE__ */ Lr(u)), an(
|
|
2431
2431
|
/** @type {TemplateNode} */
|
|
@@ -2461,15 +2461,15 @@ const G_ = () => performance.now(), Ft = {
|
|
|
2461
2461
|
now: () => G_(),
|
|
2462
2462
|
tasks: /* @__PURE__ */ new Set()
|
|
2463
2463
|
};
|
|
2464
|
-
function
|
|
2464
|
+
function Au() {
|
|
2465
2465
|
const e = Ft.now();
|
|
2466
2466
|
Ft.tasks.forEach((r) => {
|
|
2467
2467
|
r.c(e) || (Ft.tasks.delete(r), r.f());
|
|
2468
|
-
}), Ft.tasks.size !== 0 && Ft.tick(
|
|
2468
|
+
}), Ft.tasks.size !== 0 && Ft.tick(Au);
|
|
2469
2469
|
}
|
|
2470
2470
|
function K_(e) {
|
|
2471
2471
|
let r;
|
|
2472
|
-
return Ft.tasks.size === 0 && Ft.tick(
|
|
2472
|
+
return Ft.tasks.size === 0 && Ft.tick(Au), {
|
|
2473
2473
|
promise: new Promise((t) => {
|
|
2474
2474
|
Ft.tasks.add(r = { c: e, f: t });
|
|
2475
2475
|
}),
|
|
@@ -2493,7 +2493,7 @@ function $_(e) {
|
|
|
2493
2493
|
(t) => t[0].toUpperCase() + t.slice(1)
|
|
2494
2494
|
).join("");
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2496
|
+
function kl(e) {
|
|
2497
2497
|
const r = {}, t = e.split(";");
|
|
2498
2498
|
for (const n of t) {
|
|
2499
2499
|
const [a, o] = n.split(":");
|
|
@@ -2504,7 +2504,7 @@ function vl(e) {
|
|
|
2504
2504
|
return r;
|
|
2505
2505
|
}
|
|
2506
2506
|
const X_ = (e) => e;
|
|
2507
|
-
function
|
|
2507
|
+
function qu(e, r, t, n) {
|
|
2508
2508
|
var v;
|
|
2509
2509
|
var a = (e & Fp) !== 0, o = (e & Mp) !== 0, s = a && o, l = (e & Np) !== 0, c = s ? "both" : a ? "in" : "out", u, d = r.inert, p = r.style.overflow, _, g;
|
|
2510
2510
|
function f() {
|
|
@@ -2585,7 +2585,7 @@ function $i(e, r, t, n, a) {
|
|
|
2585
2585
|
const { delay: c = 0, css: u, tick: d, easing: p = X_ } = r;
|
|
2586
2586
|
var _ = [];
|
|
2587
2587
|
if (o && t === void 0 && (d && d(0, 1), u)) {
|
|
2588
|
-
var g =
|
|
2588
|
+
var g = kl(u(0, 1));
|
|
2589
2589
|
_.push(g, g);
|
|
2590
2590
|
}
|
|
2591
2591
|
var f = () => 1 - n, w = e.animate(_, { duration: c, fill: "forwards" });
|
|
@@ -2601,7 +2601,7 @@ function $i(e, r, t, n, a) {
|
|
|
2601
2601
|
var b = !1;
|
|
2602
2602
|
if (u)
|
|
2603
2603
|
for (var E = Math.ceil(h / 16.666666666666668), T = 0; T <= E; T += 1) {
|
|
2604
|
-
var x = k + m * p(T / E), P =
|
|
2604
|
+
var x = k + m * p(T / E), P = kl(u(x, 1 - x));
|
|
2605
2605
|
v.push(P), b || (b = P.overflow === "hidden");
|
|
2606
2606
|
}
|
|
2607
2607
|
b && (e.style.overflow = "hidden"), f = () => {
|
|
@@ -2633,7 +2633,7 @@ function $i(e, r, t, n, a) {
|
|
|
2633
2633
|
t: () => f()
|
|
2634
2634
|
};
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2636
|
+
function As(e, r, t, n, a, o) {
|
|
2637
2637
|
var s = null, l = (
|
|
2638
2638
|
/** @type {TemplateNode} */
|
|
2639
2639
|
e
|
|
@@ -2689,7 +2689,7 @@ function Z_(e, r, t) {
|
|
|
2689
2689
|
);
|
|
2690
2690
|
Xa(() => {
|
|
2691
2691
|
var s = t();
|
|
2692
|
-
We(s), a &&
|
|
2692
|
+
We(s), a && Ps(o, s) && (o = s, n.update(s));
|
|
2693
2693
|
}), a = !0;
|
|
2694
2694
|
}
|
|
2695
2695
|
if (n != null && n.destroy)
|
|
@@ -2701,7 +2701,7 @@ function Z_(e, r, t) {
|
|
|
2701
2701
|
}
|
|
2702
2702
|
function J_(e, r) {
|
|
2703
2703
|
var t = void 0, n;
|
|
2704
|
-
|
|
2704
|
+
fu(() => {
|
|
2705
2705
|
t !== (t = r()) && (n && (yr(n), n = null), t && (n = Cr(() => {
|
|
2706
2706
|
Tn(() => (
|
|
2707
2707
|
/** @type {(node: Element) => void} */
|
|
@@ -2710,23 +2710,23 @@ function J_(e, r) {
|
|
|
2710
2710
|
})));
|
|
2711
2711
|
});
|
|
2712
2712
|
}
|
|
2713
|
-
function
|
|
2713
|
+
function zu(e) {
|
|
2714
2714
|
var r, t, n = "";
|
|
2715
2715
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
2716
2716
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
2717
2717
|
var a = e.length;
|
|
2718
|
-
for (r = 0; r < a; r++) e[r] && (t =
|
|
2718
|
+
for (r = 0; r < a; r++) e[r] && (t = zu(e[r])) && (n && (n += " "), n += t);
|
|
2719
2719
|
} else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
2720
2720
|
return n;
|
|
2721
2721
|
}
|
|
2722
2722
|
function Q_() {
|
|
2723
|
-
for (var e, r, t = 0, n = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r =
|
|
2723
|
+
for (var e, r, t = 0, n = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = zu(e)) && (n && (n += " "), n += r);
|
|
2724
2724
|
return n;
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2726
|
+
function qs(e) {
|
|
2727
2727
|
return typeof e == "object" ? Q_(e) : e ?? "";
|
|
2728
2728
|
}
|
|
2729
|
-
const
|
|
2729
|
+
const wl = [...`
|
|
2730
2730
|
\r\f \v\uFEFF`];
|
|
2731
2731
|
function eg(e, r, t) {
|
|
2732
2732
|
var n = e == null ? "" : "" + e;
|
|
@@ -2737,12 +2737,12 @@ function eg(e, r, t) {
|
|
|
2737
2737
|
else if (n.length)
|
|
2738
2738
|
for (var o = a.length, s = 0; (s = n.indexOf(a, s)) >= 0; ) {
|
|
2739
2739
|
var l = s + o;
|
|
2740
|
-
(s === 0 ||
|
|
2740
|
+
(s === 0 || wl.includes(n[s - 1])) && (l === n.length || wl.includes(n[l])) ? n = (s === 0 ? "" : n.substring(0, s)) + n.substring(l + 1) : s = l;
|
|
2741
2741
|
}
|
|
2742
2742
|
}
|
|
2743
2743
|
return n === "" ? null : n;
|
|
2744
2744
|
}
|
|
2745
|
-
function
|
|
2745
|
+
function Pl(e, r = !1) {
|
|
2746
2746
|
var t = r ? " !important;" : ";", n = "";
|
|
2747
2747
|
for (var a in e) {
|
|
2748
2748
|
var o = e[a];
|
|
@@ -2781,7 +2781,7 @@ function rg(e, r) {
|
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
2783
|
}
|
|
2784
|
-
return n && (t +=
|
|
2784
|
+
return n && (t += Pl(n)), a && (t += Pl(a, !0)), t = t.trim(), t === "" ? null : t;
|
|
2785
2785
|
}
|
|
2786
2786
|
return e == null ? null : String(e);
|
|
2787
2787
|
}
|
|
@@ -2818,11 +2818,11 @@ function Xi(e, r, t = !1) {
|
|
|
2818
2818
|
if (!Bo(r))
|
|
2819
2819
|
return t_();
|
|
2820
2820
|
for (var n of e.options)
|
|
2821
|
-
n.selected = r.includes(
|
|
2821
|
+
n.selected = r.includes(xl(n));
|
|
2822
2822
|
return;
|
|
2823
2823
|
}
|
|
2824
2824
|
for (n of e.options) {
|
|
2825
|
-
var a =
|
|
2825
|
+
var a = xl(n);
|
|
2826
2826
|
if (b_(a, r)) {
|
|
2827
2827
|
n.selected = !0;
|
|
2828
2828
|
return;
|
|
@@ -2848,23 +2848,23 @@ function tg(e) {
|
|
|
2848
2848
|
r.disconnect();
|
|
2849
2849
|
});
|
|
2850
2850
|
}
|
|
2851
|
-
function
|
|
2851
|
+
function xl(e) {
|
|
2852
2852
|
return "__value" in e ? e.__value : e.value;
|
|
2853
2853
|
}
|
|
2854
|
-
const ha = Symbol("class"), ya = Symbol("style"),
|
|
2854
|
+
const ha = Symbol("class"), ya = Symbol("style"), Fu = Symbol("is custom element"), Mu = Symbol("is html");
|
|
2855
2855
|
function ng(e, r) {
|
|
2856
2856
|
r ? e.hasAttribute("selected") || e.setAttribute("selected", "") : e.removeAttribute("selected");
|
|
2857
2857
|
}
|
|
2858
2858
|
function oe(e, r, t, n) {
|
|
2859
|
-
var a =
|
|
2860
|
-
a[r] !== (a[r] = t) && (r === "loading" && (e[Wp] = t), t == null ? e.removeAttribute(r) : typeof t != "string" &&
|
|
2859
|
+
var a = Nu(e);
|
|
2860
|
+
a[r] !== (a[r] = t) && (r === "loading" && (e[Wp] = t), t == null ? e.removeAttribute(r) : typeof t != "string" && ju(e).includes(r) ? e[r] = t : e.setAttribute(r, t));
|
|
2861
2861
|
}
|
|
2862
2862
|
function ag(e, r, t, n, a = !1, o = !1) {
|
|
2863
|
-
var s =
|
|
2863
|
+
var s = Nu(e), l = s[Fu], c = !s[Mu], u = r || {}, d = e.tagName === "OPTION";
|
|
2864
2864
|
for (var p in r)
|
|
2865
2865
|
p in t || (t[p] = null);
|
|
2866
|
-
t.class ? t.class =
|
|
2867
|
-
var _ =
|
|
2866
|
+
t.class ? t.class = qs(t.class) : (n || t[ha]) && (t.class = null), t[ya] && (t.style ?? (t.style = null));
|
|
2867
|
+
var _ = ju(e);
|
|
2868
2868
|
for (const v in t) {
|
|
2869
2869
|
let b = t[v];
|
|
2870
2870
|
if (d && v === "value" && b == null) {
|
|
@@ -2900,7 +2900,7 @@ function ag(e, r, t, n, a = !1, o = !1) {
|
|
|
2900
2900
|
let P = function(I) {
|
|
2901
2901
|
u[v].call(this, I);
|
|
2902
2902
|
};
|
|
2903
|
-
u[T] =
|
|
2903
|
+
u[T] = Ds(x, e, P, E);
|
|
2904
2904
|
}
|
|
2905
2905
|
else k && (e[`__${x}`] = void 0);
|
|
2906
2906
|
} else if (v === "style")
|
|
@@ -2945,10 +2945,10 @@ function ag(e, r, t, n, a = !1, o = !1) {
|
|
|
2945
2945
|
}
|
|
2946
2946
|
return u;
|
|
2947
2947
|
}
|
|
2948
|
-
function
|
|
2949
|
-
|
|
2948
|
+
function zs(e, r, t = [], n = [], a = [], o, s = !1, l = !1) {
|
|
2949
|
+
au(a, t, n, (c) => {
|
|
2950
2950
|
var u = void 0, d = {}, p = e.nodeName === "SELECT", _ = !1;
|
|
2951
|
-
if (
|
|
2951
|
+
if (fu(() => {
|
|
2952
2952
|
var f = r(...c.map(i)), w = ag(
|
|
2953
2953
|
e,
|
|
2954
2954
|
u,
|
|
@@ -2986,30 +2986,30 @@ function qs(e, r, t = [], n = [], a = [], o, s = !1, l = !1) {
|
|
|
2986
2986
|
_ = !0;
|
|
2987
2987
|
});
|
|
2988
2988
|
}
|
|
2989
|
-
function
|
|
2989
|
+
function Nu(e) {
|
|
2990
2990
|
return (
|
|
2991
2991
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2992
2992
|
// @ts-expect-error
|
|
2993
2993
|
e.__attributes ?? (e.__attributes = {
|
|
2994
|
-
[
|
|
2995
|
-
[
|
|
2994
|
+
[Fu]: e.nodeName.includes("-"),
|
|
2995
|
+
[Mu]: e.namespaceURI === Op
|
|
2996
2996
|
})
|
|
2997
2997
|
);
|
|
2998
2998
|
}
|
|
2999
|
-
var
|
|
3000
|
-
function
|
|
3001
|
-
var r = e.getAttribute("is") || e.nodeName, t =
|
|
2999
|
+
var El = /* @__PURE__ */ new Map();
|
|
3000
|
+
function ju(e) {
|
|
3001
|
+
var r = e.getAttribute("is") || e.nodeName, t = El.get(r);
|
|
3002
3002
|
if (t) return t;
|
|
3003
|
-
|
|
3003
|
+
El.set(r, t = []);
|
|
3004
3004
|
for (var n, a = e, o = Element.prototype; o !== a; ) {
|
|
3005
|
-
n =
|
|
3005
|
+
n = Uc(a);
|
|
3006
3006
|
for (var s in n)
|
|
3007
3007
|
n[s].set && t.push(s);
|
|
3008
|
-
a =
|
|
3008
|
+
a = ys(a);
|
|
3009
3009
|
}
|
|
3010
3010
|
return t;
|
|
3011
3011
|
}
|
|
3012
|
-
var Jt, ea, Ra, Oo,
|
|
3012
|
+
var Jt, ea, Ra, Oo, Ou;
|
|
3013
3013
|
const Lo = class Lo {
|
|
3014
3014
|
/** @param {ResizeObserverOptions} options */
|
|
3015
3015
|
constructor(r) {
|
|
@@ -3028,13 +3028,13 @@ const Lo = class Lo {
|
|
|
3028
3028
|
*/
|
|
3029
3029
|
observe(r, t) {
|
|
3030
3030
|
var n = O(this, Jt).get(r) || /* @__PURE__ */ new Set();
|
|
3031
|
-
return n.add(t), O(this, Jt).set(r, n), ar(this, Oo,
|
|
3031
|
+
return n.add(t), O(this, Jt).set(r, n), ar(this, Oo, Ou).call(this).observe(r, O(this, Ra)), () => {
|
|
3032
3032
|
var a = O(this, Jt).get(r);
|
|
3033
3033
|
a.delete(t), a.size === 0 && (O(this, Jt).delete(r), O(this, ea).unobserve(r));
|
|
3034
3034
|
};
|
|
3035
3035
|
}
|
|
3036
3036
|
};
|
|
3037
|
-
Jt = new WeakMap(), ea = new WeakMap(), Ra = new WeakMap(), Oo = new WeakSet(),
|
|
3037
|
+
Jt = new WeakMap(), ea = new WeakMap(), Ra = new WeakMap(), Oo = new WeakSet(), Ou = function() {
|
|
3038
3038
|
return O(this, ea) ?? be(this, ea, new ResizeObserver(
|
|
3039
3039
|
/** @param {any} entries */
|
|
3040
3040
|
(r) => {
|
|
@@ -3053,7 +3053,7 @@ var og = /* @__PURE__ */ new xo({
|
|
|
3053
3053
|
}), ig = /* @__PURE__ */ new xo({
|
|
3054
3054
|
box: "border-box"
|
|
3055
3055
|
});
|
|
3056
|
-
function
|
|
3056
|
+
function Lu(e, r, t) {
|
|
3057
3057
|
var n = og, a = n.observe(
|
|
3058
3058
|
e,
|
|
3059
3059
|
/** @param {any} entry */
|
|
@@ -3061,11 +3061,11 @@ function Ou(e, r, t) {
|
|
|
3061
3061
|
);
|
|
3062
3062
|
ua(a);
|
|
3063
3063
|
}
|
|
3064
|
-
function
|
|
3064
|
+
function Fs(e, r, t) {
|
|
3065
3065
|
var n = ig.observe(e, () => t(e[r]));
|
|
3066
3066
|
Tn(() => (Ue(() => t(e[r])), n));
|
|
3067
3067
|
}
|
|
3068
|
-
function
|
|
3068
|
+
function Sl(e, r) {
|
|
3069
3069
|
return e === r || (e == null ? void 0 : e[Et]) === r;
|
|
3070
3070
|
}
|
|
3071
3071
|
function Wo(e = {}, r, t, n) {
|
|
@@ -3073,11 +3073,11 @@ function Wo(e = {}, r, t, n) {
|
|
|
3073
3073
|
var a, o;
|
|
3074
3074
|
return Xa(() => {
|
|
3075
3075
|
a = o, o = [], Ue(() => {
|
|
3076
|
-
e !== t(...o) && (r(e, ...o), a &&
|
|
3076
|
+
e !== t(...o) && (r(e, ...o), a && Sl(t(...a), e) && r(null, ...a));
|
|
3077
3077
|
});
|
|
3078
3078
|
}), () => {
|
|
3079
3079
|
on(() => {
|
|
3080
|
-
o &&
|
|
3080
|
+
o && Sl(t(...o), e) && r(null, ...o);
|
|
3081
3081
|
});
|
|
3082
3082
|
};
|
|
3083
3083
|
}), e;
|
|
@@ -3104,7 +3104,7 @@ function In(e = !1) {
|
|
|
3104
3104
|
n = () => i(s);
|
|
3105
3105
|
}
|
|
3106
3106
|
t.b.length && x_(() => {
|
|
3107
|
-
|
|
3107
|
+
Tl(r, n), yo(t.b);
|
|
3108
3108
|
}), xr(() => {
|
|
3109
3109
|
const a = Ue(() => t.m.map(Hp));
|
|
3110
3110
|
return () => {
|
|
@@ -3112,15 +3112,15 @@ function In(e = !1) {
|
|
|
3112
3112
|
typeof o == "function" && o();
|
|
3113
3113
|
};
|
|
3114
3114
|
}), t.a.length && xr(() => {
|
|
3115
|
-
|
|
3115
|
+
Tl(r, n), yo(t.a);
|
|
3116
3116
|
});
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3118
|
+
function Tl(e, r) {
|
|
3119
3119
|
if (e.l.s)
|
|
3120
3120
|
for (const t of e.l.s) i(t);
|
|
3121
3121
|
r();
|
|
3122
3122
|
}
|
|
3123
|
-
function
|
|
3123
|
+
function Bu(e, r) {
|
|
3124
3124
|
var o;
|
|
3125
3125
|
var t = (
|
|
3126
3126
|
/** @type {Record<string, Function[] | Function>} */
|
|
@@ -3129,7 +3129,7 @@ function Lu(e, r) {
|
|
|
3129
3129
|
for (var a of n)
|
|
3130
3130
|
a.call(this, r);
|
|
3131
3131
|
}
|
|
3132
|
-
function
|
|
3132
|
+
function Ms(e, r, t) {
|
|
3133
3133
|
if (e == null)
|
|
3134
3134
|
return r(void 0), t && t(void 0), ze;
|
|
3135
3135
|
const n = Ue(
|
|
@@ -3151,7 +3151,7 @@ function Rr(e, r = ze) {
|
|
|
3151
3151
|
let t = null;
|
|
3152
3152
|
const n = /* @__PURE__ */ new Set();
|
|
3153
3153
|
function a(l) {
|
|
3154
|
-
if (
|
|
3154
|
+
if (Ps(e, l) && (e = l, t)) {
|
|
3155
3155
|
const c = !jn.length;
|
|
3156
3156
|
for (const u of n)
|
|
3157
3157
|
u[1](), jn.push(u, e);
|
|
@@ -3195,7 +3195,7 @@ function st(e, r, t) {
|
|
|
3195
3195
|
const f = r(n ? u[0] : u, s, l);
|
|
3196
3196
|
o ? s(f) : p = typeof f == "function" ? f : ze;
|
|
3197
3197
|
}, g = a.map(
|
|
3198
|
-
(f, w) =>
|
|
3198
|
+
(f, w) => Ms(
|
|
3199
3199
|
f,
|
|
3200
3200
|
(k) => {
|
|
3201
3201
|
u[w] = k, d &= ~(1 << w), c && _();
|
|
@@ -3212,7 +3212,7 @@ function st(e, r, t) {
|
|
|
3212
3212
|
}
|
|
3213
3213
|
function sg(e) {
|
|
3214
3214
|
let r;
|
|
3215
|
-
return
|
|
3215
|
+
return Ms(e, (t) => r = t)(), r;
|
|
3216
3216
|
}
|
|
3217
3217
|
let no = !1, Zi = Symbol();
|
|
3218
3218
|
function ve(e, r, t) {
|
|
@@ -3226,13 +3226,13 @@ function ve(e, r, t) {
|
|
|
3226
3226
|
n.source.v = void 0, n.unsubscribe = ze;
|
|
3227
3227
|
else {
|
|
3228
3228
|
var a = !0;
|
|
3229
|
-
n.unsubscribe =
|
|
3229
|
+
n.unsubscribe = Ms(e, (o) => {
|
|
3230
3230
|
a ? n.source.v = o : L(n.source, o);
|
|
3231
3231
|
}), a = !1;
|
|
3232
3232
|
}
|
|
3233
3233
|
return e && Zi in t ? sg(e) : i(n.source);
|
|
3234
3234
|
}
|
|
3235
|
-
function
|
|
3235
|
+
function Il(e, r) {
|
|
3236
3236
|
return e.set(r), r;
|
|
3237
3237
|
}
|
|
3238
3238
|
function Ne() {
|
|
@@ -3241,7 +3241,7 @@ function Ne() {
|
|
|
3241
3241
|
ua(() => {
|
|
3242
3242
|
for (var t in e)
|
|
3243
3243
|
e[t].unsubscribe();
|
|
3244
|
-
|
|
3244
|
+
Bc(e, Zi, {
|
|
3245
3245
|
enumerable: !1,
|
|
3246
3246
|
value: !0
|
|
3247
3247
|
});
|
|
@@ -3317,7 +3317,7 @@ const ug = {
|
|
|
3317
3317
|
}
|
|
3318
3318
|
},
|
|
3319
3319
|
has(e, r) {
|
|
3320
|
-
if (r === Et || r ===
|
|
3320
|
+
if (r === Et || r === Wc) return !1;
|
|
3321
3321
|
for (let t of e.props)
|
|
3322
3322
|
if (Ln(t) && (t = t()), t != null && r in t) return !0;
|
|
3323
3323
|
return !1;
|
|
@@ -3350,7 +3350,7 @@ function K(e, r, t, n) {
|
|
|
3350
3350
|
n
|
|
3351
3351
|
)), l), d;
|
|
3352
3352
|
if (o) {
|
|
3353
|
-
var p = Et in e ||
|
|
3353
|
+
var p = Et in e || Wc in e;
|
|
3354
3354
|
d = ((v = Qt(e, r)) == null ? void 0 : v.set) ?? (p && r in e ? (b) => e[r] = b : void 0);
|
|
3355
3355
|
}
|
|
3356
3356
|
var _, g = !1;
|
|
@@ -3627,13 +3627,13 @@ class se {
|
|
|
3627
3627
|
}
|
|
3628
3628
|
}
|
|
3629
3629
|
V(se, "logLevel", Mr.Silent), V(se, "logHandler", null);
|
|
3630
|
-
function
|
|
3630
|
+
function Uu(e) {
|
|
3631
3631
|
var r;
|
|
3632
3632
|
return e.operation.redemption_info ? {
|
|
3633
3633
|
redeemUrl: ((r = e.operation.redemption_info) == null ? void 0 : r.redeem_url) ?? null
|
|
3634
3634
|
} : null;
|
|
3635
3635
|
}
|
|
3636
|
-
function
|
|
3636
|
+
function Ru(e, r) {
|
|
3637
3637
|
if (e == null) {
|
|
3638
3638
|
r(
|
|
3639
3639
|
new ae(
|
|
@@ -3885,7 +3885,7 @@ class pg {
|
|
|
3885
3885
|
return;
|
|
3886
3886
|
}
|
|
3887
3887
|
t({
|
|
3888
|
-
redemptionInfo:
|
|
3888
|
+
redemptionInfo: Uu(s),
|
|
3889
3889
|
operationSessionId: r,
|
|
3890
3890
|
storeTransactionIdentifier: l,
|
|
3891
3891
|
productIdentifier: c,
|
|
@@ -3893,7 +3893,7 @@ class pg {
|
|
|
3893
3893
|
});
|
|
3894
3894
|
return;
|
|
3895
3895
|
case jt.Failed:
|
|
3896
|
-
this.clearPurchaseInProgress(),
|
|
3896
|
+
this.clearPurchaseInProgress(), Ru(
|
|
3897
3897
|
s.operation.error,
|
|
3898
3898
|
n
|
|
3899
3899
|
);
|
|
@@ -7318,7 +7318,7 @@ const Yg = {
|
|
|
7318
7318
|
vi: Wg
|
|
7319
7319
|
};
|
|
7320
7320
|
var ce = /* @__PURE__ */ ((e) => (e.Year = "year", e.Month = "month", e.Week = "week", e.Day = "day", e))(ce || {});
|
|
7321
|
-
function
|
|
7321
|
+
function Ns(e) {
|
|
7322
7322
|
const r = e.match(/^PT?([0-9]+)([MDYW])$/);
|
|
7323
7323
|
if (!r || r.length < 3)
|
|
7324
7324
|
return se.errorLog(`Invalid ISO 8601 duration format: ${e}`), null;
|
|
@@ -7412,7 +7412,7 @@ const Hn = (e) => {
|
|
|
7412
7412
|
o
|
|
7413
7413
|
).format(a).replace("US$", "$");
|
|
7414
7414
|
}, Kg = (e, r) => {
|
|
7415
|
-
const t =
|
|
7415
|
+
const t = Ns(e);
|
|
7416
7416
|
return t ? r.translatePeriod(t.number, t.unit) || `${t.number} ${t.unit}s` : e;
|
|
7417
7417
|
}, $g = (e) => {
|
|
7418
7418
|
try {
|
|
@@ -7423,7 +7423,7 @@ const Hn = (e) => {
|
|
|
7423
7423
|
}, Wn = {
|
|
7424
7424
|
noWhitespace: !1,
|
|
7425
7425
|
short: !1
|
|
7426
|
-
},
|
|
7426
|
+
}, Vu = {
|
|
7427
7427
|
useMultipleWords: !1
|
|
7428
7428
|
};
|
|
7429
7429
|
class xn {
|
|
@@ -7432,7 +7432,7 @@ class xn {
|
|
|
7432
7432
|
this.selectedLocale = t, this.defaultLocale = n;
|
|
7433
7433
|
const a = {};
|
|
7434
7434
|
Object.entries(Yg).forEach(([o, s]) => {
|
|
7435
|
-
a[o] = new
|
|
7435
|
+
a[o] = new Dl(s, o);
|
|
7436
7436
|
}), this.locales = a, r && this.override(r);
|
|
7437
7437
|
}
|
|
7438
7438
|
static fallback() {
|
|
@@ -7440,7 +7440,7 @@ class xn {
|
|
|
7440
7440
|
}
|
|
7441
7441
|
override(r) {
|
|
7442
7442
|
Object.entries(r).forEach(([t, n]) => {
|
|
7443
|
-
this.locales[t] = new
|
|
7443
|
+
this.locales[t] = new Dl(
|
|
7444
7444
|
{
|
|
7445
7445
|
...this.locales[t].labels || {},
|
|
7446
7446
|
...n
|
|
@@ -7526,7 +7526,7 @@ class xn {
|
|
|
7526
7526
|
const n = this.getLocaleInstance(this.selectedLocale), a = this.getLocaleInstance(this.defaultLocale);
|
|
7527
7527
|
return (n == null ? void 0 : n.translatePeriodUnit(r, t)) || (a == null ? void 0 : a.translatePeriodUnit(r, t));
|
|
7528
7528
|
}
|
|
7529
|
-
translatePeriodFrequency(r, t, n =
|
|
7529
|
+
translatePeriodFrequency(r, t, n = Vu) {
|
|
7530
7530
|
const a = this.getLocaleInstance(this.selectedLocale), o = this.getLocaleInstance(this.defaultLocale);
|
|
7531
7531
|
return (a == null ? void 0 : a.translatePeriodFrequency(r, t, n)) || (o == null ? void 0 : o.translatePeriodFrequency(r, t, n));
|
|
7532
7532
|
}
|
|
@@ -7535,7 +7535,7 @@ class xn {
|
|
|
7535
7535
|
return (n == null ? void 0 : n.translateDate(r, t)) || (a == null ? void 0 : a.translateDate(r, t));
|
|
7536
7536
|
}
|
|
7537
7537
|
}
|
|
7538
|
-
class
|
|
7538
|
+
class Dl {
|
|
7539
7539
|
constructor(r = {}, t) {
|
|
7540
7540
|
this.labels = r, this.localeKey = t;
|
|
7541
7541
|
}
|
|
@@ -7574,7 +7574,7 @@ class Il {
|
|
|
7574
7574
|
n ? "" : " "
|
|
7575
7575
|
);
|
|
7576
7576
|
}
|
|
7577
|
-
translatePeriodFrequency(r, t, n =
|
|
7577
|
+
translatePeriodFrequency(r, t, n = Vu) {
|
|
7578
7578
|
const a = n == null ? void 0 : n.useMultipleWords, o = Math.abs(r) === 1 ? `periods.${a === !0 ? "per" : ""}${a ? $g(t.toString()) : t}Frequency` : `periods.${t}FrequencyPlural`;
|
|
7579
7579
|
return this.translate(o, {
|
|
7580
7580
|
amount: r.toString()
|
|
@@ -7592,11 +7592,11 @@ const Xg = `<svg viewBox="0 0 124 124" fill="var(--rc-color-grey-text-dark)" xml
|
|
|
7592
7592
|
</svg>
|
|
7593
7593
|
`;
|
|
7594
7594
|
var Zg = /* @__PURE__ */ B('<div style="color:var(--rc-color-primary);"><!></div>');
|
|
7595
|
-
function
|
|
7595
|
+
function Hu(e) {
|
|
7596
7596
|
var r = Zg(), t = z(r);
|
|
7597
7597
|
ln(t, () => Xg), S(e, r);
|
|
7598
7598
|
}
|
|
7599
|
-
const
|
|
7599
|
+
const Wu = Symbol("inputValidation"), Yu = Symbol("initialInputSelections");
|
|
7600
7600
|
function Jg() {
|
|
7601
7601
|
const e = Rr(!0);
|
|
7602
7602
|
return {
|
|
@@ -7607,33 +7607,33 @@ function Jg() {
|
|
|
7607
7607
|
};
|
|
7608
7608
|
}
|
|
7609
7609
|
function Qg(e) {
|
|
7610
|
-
or(
|
|
7610
|
+
or(Wu, e);
|
|
7611
7611
|
}
|
|
7612
|
-
function
|
|
7613
|
-
return Be(
|
|
7612
|
+
function js() {
|
|
7613
|
+
return Be(Wu);
|
|
7614
7614
|
}
|
|
7615
7615
|
function ef(e) {
|
|
7616
|
-
or(
|
|
7616
|
+
or(Yu, e);
|
|
7617
7617
|
}
|
|
7618
|
-
function
|
|
7619
|
-
return Be(
|
|
7618
|
+
function Gu() {
|
|
7619
|
+
return Be(Yu) ?? {};
|
|
7620
7620
|
}
|
|
7621
|
-
const
|
|
7622
|
-
function
|
|
7623
|
-
or(
|
|
7621
|
+
const Ku = Symbol("paywall");
|
|
7622
|
+
function $u(e) {
|
|
7623
|
+
or(Ku, e);
|
|
7624
7624
|
}
|
|
7625
7625
|
function cn() {
|
|
7626
|
-
const e = Be(
|
|
7626
|
+
const e = Be(Ku);
|
|
7627
7627
|
if (e === void 0)
|
|
7628
7628
|
throw new Error("Paywall context not found");
|
|
7629
7629
|
return e;
|
|
7630
7630
|
}
|
|
7631
|
-
const
|
|
7631
|
+
const Xu = Symbol("selected");
|
|
7632
7632
|
function Yo(e) {
|
|
7633
|
-
or(
|
|
7633
|
+
or(Xu, e);
|
|
7634
7634
|
}
|
|
7635
7635
|
function et() {
|
|
7636
|
-
return Be(
|
|
7636
|
+
return Be(Xu) ?? Vt(!1);
|
|
7637
7637
|
}
|
|
7638
7638
|
function rf({ stack: e, sticky_footer: r }) {
|
|
7639
7639
|
const t = (a) => {
|
|
@@ -7680,7 +7680,7 @@ function af(e, r) {
|
|
|
7680
7680
|
const t = () => ve(l, "$selectedState", a), n = () => ve(g, "$inputSatisfied", a), [a, o] = Ne(), s = /* @__PURE__ */ lr(r, ["$$slots", "$$events", "$$legacy"]), l = et(), c = /* @__PURE__ */ y(() => ({
|
|
7681
7681
|
...s,
|
|
7682
7682
|
...rt(t(), r.overrides)
|
|
7683
|
-
})), u = /* @__PURE__ */ y(() => i(c).action), { onButtonAction: d, hideBackButtons: p } = cn(), _ =
|
|
7683
|
+
})), u = /* @__PURE__ */ y(() => i(c).action), { onButtonAction: d, hideBackButtons: p } = cn(), _ = js(), g = (_ == null ? void 0 : _.isSatisfied) ?? Vt(!0), f = /* @__PURE__ */ y(() => i(u).type === "workflow" && !n()), w = () => {
|
|
7684
7684
|
var v;
|
|
7685
7685
|
if (i(f)) return;
|
|
7686
7686
|
const h = (v = r.triggers) == null ? void 0 : v.on_press;
|
|
@@ -7713,8 +7713,8 @@ function af(e, r) {
|
|
|
7713
7713
|
}
|
|
7714
7714
|
})), te(), o();
|
|
7715
7715
|
}
|
|
7716
|
-
const
|
|
7717
|
-
function
|
|
7716
|
+
const Zu = Symbol("inputChoice");
|
|
7717
|
+
function Ju(e, r, t = !1, n = null, a = []) {
|
|
7718
7718
|
const o = Rr(new Set(a)), s = st(o, (d) => (n == null ? void 0 : n.max) == null ? !1 : d.size >= n.max), l = st(o, (d) => {
|
|
7719
7719
|
const p = d.size;
|
|
7720
7720
|
return !t && n == null ? !0 : t && n == null ? p >= 1 : t && n != null ? n.min === n.max ? p === n.min : p >= n.min && p <= n.max : !0;
|
|
@@ -7738,17 +7738,17 @@ function Zu(e, r, t = !1, n = null, a = []) {
|
|
|
7738
7738
|
isSatisfied: l
|
|
7739
7739
|
};
|
|
7740
7740
|
}
|
|
7741
|
-
function
|
|
7742
|
-
or(
|
|
7741
|
+
function Qu(e) {
|
|
7742
|
+
or(Zu, e);
|
|
7743
7743
|
}
|
|
7744
7744
|
function of() {
|
|
7745
|
-
return Be(
|
|
7745
|
+
return Be(Zu);
|
|
7746
7746
|
}
|
|
7747
7747
|
function sf(e, r) {
|
|
7748
7748
|
re(r, !0);
|
|
7749
|
-
const t = /* @__PURE__ */ lr(r, ["$$slots", "$$events", "$$legacy"]), { stack: n, field_id: a, required: o = !1, selection_range: s = null } = t, c =
|
|
7750
|
-
|
|
7751
|
-
const d =
|
|
7749
|
+
const t = /* @__PURE__ */ lr(r, ["$$slots", "$$events", "$$legacy"]), { stack: n, field_id: a, required: o = !1, selection_range: s = null } = t, c = Gu()[a] ?? [], u = Ju(a, "multiple", o, s, c);
|
|
7750
|
+
Qu(u);
|
|
7751
|
+
const d = js();
|
|
7752
7752
|
if (d) {
|
|
7753
7753
|
const p = u.isSatisfied.subscribe((_) => {
|
|
7754
7754
|
d.updateSatisfaction(_);
|
|
@@ -7761,12 +7761,12 @@ function sf(e, r) {
|
|
|
7761
7761
|
}
|
|
7762
7762
|
}), te();
|
|
7763
7763
|
}
|
|
7764
|
-
const
|
|
7764
|
+
const ed = Symbol("hover");
|
|
7765
7765
|
function lf(e) {
|
|
7766
|
-
or(
|
|
7766
|
+
or(ed, e);
|
|
7767
7767
|
}
|
|
7768
7768
|
function cf() {
|
|
7769
|
-
return Be(
|
|
7769
|
+
return Be(ed) ?? Vt(!1);
|
|
7770
7770
|
}
|
|
7771
7771
|
var uf = /* @__PURE__ */ B('<div class="option-wrapper svelte-1rv5t5k"><!></div>');
|
|
7772
7772
|
const df = {
|
|
@@ -7795,9 +7795,9 @@ function pf(e, r) {
|
|
|
7795
7795
|
}
|
|
7796
7796
|
function _f(e, r) {
|
|
7797
7797
|
re(r, !0);
|
|
7798
|
-
const t = /* @__PURE__ */ lr(r, ["$$slots", "$$events", "$$legacy"]), { stack: n, field_id: a, required: o = !1, selection_range: s = null } = t, c =
|
|
7799
|
-
|
|
7800
|
-
const d =
|
|
7798
|
+
const t = /* @__PURE__ */ lr(r, ["$$slots", "$$events", "$$legacy"]), { stack: n, field_id: a, required: o = !1, selection_range: s = null } = t, c = Gu()[a] ?? [], u = Ju(a, "single", o, s, c);
|
|
7799
|
+
Qu(u);
|
|
7800
|
+
const d = js();
|
|
7801
7801
|
if (d) {
|
|
7802
7802
|
const p = u.isSatisfied.subscribe((_) => {
|
|
7803
7803
|
d.updateSatisfaction(_);
|
|
@@ -7810,12 +7810,12 @@ function _f(e, r) {
|
|
|
7810
7810
|
}
|
|
7811
7811
|
}), te();
|
|
7812
7812
|
}
|
|
7813
|
-
const
|
|
7814
|
-
function
|
|
7815
|
-
or(
|
|
7813
|
+
const rd = Symbol("variables");
|
|
7814
|
+
function Os(e) {
|
|
7815
|
+
or(rd, e);
|
|
7816
7816
|
}
|
|
7817
7817
|
function Go() {
|
|
7818
|
-
const e = Be(
|
|
7818
|
+
const e = Be(rd);
|
|
7819
7819
|
if (e === void 0)
|
|
7820
7820
|
throw new Error("Variables context not found");
|
|
7821
7821
|
return e;
|
|
@@ -7823,16 +7823,16 @@ function Go() {
|
|
|
7823
7823
|
function gf(e) {
|
|
7824
7824
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7825
7825
|
}
|
|
7826
|
-
var On = {}, oi,
|
|
7826
|
+
var On = {}, oi, Cl;
|
|
7827
7827
|
function ff() {
|
|
7828
|
-
return
|
|
7828
|
+
return Cl || (Cl = 1, oi = function() {
|
|
7829
7829
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
7830
7830
|
}), oi;
|
|
7831
7831
|
}
|
|
7832
|
-
var ii = {}, Kt = {},
|
|
7832
|
+
var ii = {}, Kt = {}, Al;
|
|
7833
7833
|
function Dn() {
|
|
7834
|
-
if (
|
|
7835
|
-
|
|
7834
|
+
if (Al) return Kt;
|
|
7835
|
+
Al = 1;
|
|
7836
7836
|
let e;
|
|
7837
7837
|
const r = [
|
|
7838
7838
|
0,
|
|
@@ -7899,9 +7899,9 @@ function Dn() {
|
|
|
7899
7899
|
return e(n);
|
|
7900
7900
|
}, Kt;
|
|
7901
7901
|
}
|
|
7902
|
-
var si = {},
|
|
7903
|
-
function
|
|
7904
|
-
return
|
|
7902
|
+
var si = {}, ql;
|
|
7903
|
+
function Ls() {
|
|
7904
|
+
return ql || (ql = 1, function(e) {
|
|
7905
7905
|
e.L = { bit: 1 }, e.M = { bit: 0 }, e.Q = { bit: 3 }, e.H = { bit: 2 };
|
|
7906
7906
|
function r(t) {
|
|
7907
7907
|
if (typeof t != "string")
|
|
@@ -7936,10 +7936,10 @@ function Os() {
|
|
|
7936
7936
|
};
|
|
7937
7937
|
}(si)), si;
|
|
7938
7938
|
}
|
|
7939
|
-
var li,
|
|
7939
|
+
var li, zl;
|
|
7940
7940
|
function mf() {
|
|
7941
|
-
if (
|
|
7942
|
-
|
|
7941
|
+
if (zl) return li;
|
|
7942
|
+
zl = 1;
|
|
7943
7943
|
function e() {
|
|
7944
7944
|
this.buffer = [], this.length = 0;
|
|
7945
7945
|
}
|
|
@@ -7961,10 +7961,10 @@ function mf() {
|
|
|
7961
7961
|
}
|
|
7962
7962
|
}, li = e, li;
|
|
7963
7963
|
}
|
|
7964
|
-
var ci,
|
|
7964
|
+
var ci, Fl;
|
|
7965
7965
|
function hf() {
|
|
7966
|
-
if (
|
|
7967
|
-
|
|
7966
|
+
if (Fl) return ci;
|
|
7967
|
+
Fl = 1;
|
|
7968
7968
|
function e(r) {
|
|
7969
7969
|
if (!r || r < 1)
|
|
7970
7970
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
@@ -7981,9 +7981,9 @@ function hf() {
|
|
|
7981
7981
|
return this.reservedBit[r * this.size + t];
|
|
7982
7982
|
}, ci = e, ci;
|
|
7983
7983
|
}
|
|
7984
|
-
var ui = {},
|
|
7984
|
+
var ui = {}, Ml;
|
|
7985
7985
|
function yf() {
|
|
7986
|
-
return
|
|
7986
|
+
return Ml || (Ml = 1, function(e) {
|
|
7987
7987
|
const r = Dn().getSymbolSize;
|
|
7988
7988
|
e.getRowColCoords = function(n) {
|
|
7989
7989
|
if (n === 1) return [];
|
|
@@ -8002,10 +8002,10 @@ function yf() {
|
|
|
8002
8002
|
};
|
|
8003
8003
|
}(ui)), ui;
|
|
8004
8004
|
}
|
|
8005
|
-
var di = {},
|
|
8005
|
+
var di = {}, Nl;
|
|
8006
8006
|
function bf() {
|
|
8007
|
-
if (
|
|
8008
|
-
|
|
8007
|
+
if (Nl) return di;
|
|
8008
|
+
Nl = 1;
|
|
8009
8009
|
const e = Dn().getSymbolSize, r = 7;
|
|
8010
8010
|
return di.getPositions = function(n) {
|
|
8011
8011
|
const a = e(n);
|
|
@@ -8019,9 +8019,9 @@ function bf() {
|
|
|
8019
8019
|
];
|
|
8020
8020
|
}, di;
|
|
8021
8021
|
}
|
|
8022
|
-
var pi = {},
|
|
8022
|
+
var pi = {}, jl;
|
|
8023
8023
|
function vf() {
|
|
8024
|
-
return
|
|
8024
|
+
return jl || (jl = 1, function(e) {
|
|
8025
8025
|
e.Patterns = {
|
|
8026
8026
|
PATTERN000: 0,
|
|
8027
8027
|
PATTERN001: 1,
|
|
@@ -8117,11 +8117,11 @@ function vf() {
|
|
|
8117
8117
|
};
|
|
8118
8118
|
}(pi)), pi;
|
|
8119
8119
|
}
|
|
8120
|
-
var ao = {},
|
|
8121
|
-
function
|
|
8122
|
-
if (
|
|
8123
|
-
|
|
8124
|
-
const e =
|
|
8120
|
+
var ao = {}, Ol;
|
|
8121
|
+
function td() {
|
|
8122
|
+
if (Ol) return ao;
|
|
8123
|
+
Ol = 1;
|
|
8124
|
+
const e = Ls(), r = [
|
|
8125
8125
|
// L M Q H
|
|
8126
8126
|
1,
|
|
8127
8127
|
1,
|
|
@@ -8474,10 +8474,10 @@ function rd() {
|
|
|
8474
8474
|
}
|
|
8475
8475
|
}, ao;
|
|
8476
8476
|
}
|
|
8477
|
-
var _i = {}, ba = {},
|
|
8477
|
+
var _i = {}, ba = {}, Ll;
|
|
8478
8478
|
function kf() {
|
|
8479
|
-
if (
|
|
8480
|
-
|
|
8479
|
+
if (Ll) return ba;
|
|
8480
|
+
Ll = 1;
|
|
8481
8481
|
const e = new Uint8Array(512), r = new Uint8Array(256);
|
|
8482
8482
|
return function() {
|
|
8483
8483
|
let n = 1;
|
|
@@ -8494,9 +8494,9 @@ function kf() {
|
|
|
8494
8494
|
return n === 0 || a === 0 ? 0 : e[r[n] + r[a]];
|
|
8495
8495
|
}, ba;
|
|
8496
8496
|
}
|
|
8497
|
-
var
|
|
8497
|
+
var Bl;
|
|
8498
8498
|
function wf() {
|
|
8499
|
-
return
|
|
8499
|
+
return Bl || (Bl = 1, function(e) {
|
|
8500
8500
|
const r = kf();
|
|
8501
8501
|
e.mul = function(n, a) {
|
|
8502
8502
|
const o = new Uint8Array(n.length + a.length - 1);
|
|
@@ -8523,10 +8523,10 @@ function wf() {
|
|
|
8523
8523
|
};
|
|
8524
8524
|
}(_i)), _i;
|
|
8525
8525
|
}
|
|
8526
|
-
var gi,
|
|
8526
|
+
var gi, Ul;
|
|
8527
8527
|
function Pf() {
|
|
8528
|
-
if (
|
|
8529
|
-
|
|
8528
|
+
if (Ul) return gi;
|
|
8529
|
+
Ul = 1;
|
|
8530
8530
|
const e = wf();
|
|
8531
8531
|
function r(t) {
|
|
8532
8532
|
this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
|
|
@@ -8546,16 +8546,16 @@ function Pf() {
|
|
|
8546
8546
|
return o;
|
|
8547
8547
|
}, gi = r, gi;
|
|
8548
8548
|
}
|
|
8549
|
-
var fi = {}, mi = {}, hi = {},
|
|
8550
|
-
function
|
|
8551
|
-
return
|
|
8549
|
+
var fi = {}, mi = {}, hi = {}, Rl;
|
|
8550
|
+
function nd() {
|
|
8551
|
+
return Rl || (Rl = 1, hi.isValid = function(r) {
|
|
8552
8552
|
return !isNaN(r) && r >= 1 && r <= 40;
|
|
8553
8553
|
}), hi;
|
|
8554
8554
|
}
|
|
8555
|
-
var ut = {},
|
|
8556
|
-
function
|
|
8557
|
-
if (
|
|
8558
|
-
|
|
8555
|
+
var ut = {}, Vl;
|
|
8556
|
+
function ad() {
|
|
8557
|
+
if (Vl) return ut;
|
|
8558
|
+
Vl = 1;
|
|
8559
8559
|
const e = "[0-9]+", r = "[A-Z $%*+\\-./:]+";
|
|
8560
8560
|
let t = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
8561
8561
|
t = t.replace(/u/g, "\\u");
|
|
@@ -8571,10 +8571,10 @@ function nd() {
|
|
|
8571
8571
|
return s.test(c);
|
|
8572
8572
|
}, ut;
|
|
8573
8573
|
}
|
|
8574
|
-
var
|
|
8574
|
+
var Hl;
|
|
8575
8575
|
function Cn() {
|
|
8576
|
-
return
|
|
8577
|
-
const r =
|
|
8576
|
+
return Hl || (Hl = 1, function(e) {
|
|
8577
|
+
const r = nd(), t = ad();
|
|
8578
8578
|
e.NUMERIC = {
|
|
8579
8579
|
id: "Numeric",
|
|
8580
8580
|
bit: 1,
|
|
@@ -8633,10 +8633,10 @@ function Cn() {
|
|
|
8633
8633
|
};
|
|
8634
8634
|
}(mi)), mi;
|
|
8635
8635
|
}
|
|
8636
|
-
var
|
|
8636
|
+
var Wl;
|
|
8637
8637
|
function xf() {
|
|
8638
|
-
return
|
|
8639
|
-
const r = Dn(), t =
|
|
8638
|
+
return Wl || (Wl = 1, function(e) {
|
|
8639
|
+
const r = Dn(), t = td(), n = Ls(), a = Cn(), o = nd(), s = 7973, l = r.getBCHDigit(s);
|
|
8640
8640
|
function c(_, g, f) {
|
|
8641
8641
|
for (let w = 1; w <= 40; w++)
|
|
8642
8642
|
if (g <= e.getCapacity(w, f, _))
|
|
@@ -8699,10 +8699,10 @@ function xf() {
|
|
|
8699
8699
|
};
|
|
8700
8700
|
}(fi)), fi;
|
|
8701
8701
|
}
|
|
8702
|
-
var yi = {},
|
|
8702
|
+
var yi = {}, Yl;
|
|
8703
8703
|
function Ef() {
|
|
8704
|
-
if (
|
|
8705
|
-
|
|
8704
|
+
if (Yl) return yi;
|
|
8705
|
+
Yl = 1;
|
|
8706
8706
|
const e = Dn(), r = 1335, t = 21522, n = e.getBCHDigit(r);
|
|
8707
8707
|
return yi.getEncodedBits = function(o, s) {
|
|
8708
8708
|
const l = o.bit << 3 | s;
|
|
@@ -8712,10 +8712,10 @@ function Ef() {
|
|
|
8712
8712
|
return (l << 10 | c) ^ t;
|
|
8713
8713
|
}, yi;
|
|
8714
8714
|
}
|
|
8715
|
-
var bi = {}, vi,
|
|
8715
|
+
var bi = {}, vi, Gl;
|
|
8716
8716
|
function Sf() {
|
|
8717
|
-
if (
|
|
8718
|
-
|
|
8717
|
+
if (Gl) return vi;
|
|
8718
|
+
Gl = 1;
|
|
8719
8719
|
const e = Cn();
|
|
8720
8720
|
function r(t) {
|
|
8721
8721
|
this.mode = e.NUMERIC, this.data = t.toString();
|
|
@@ -8734,10 +8734,10 @@ function Sf() {
|
|
|
8734
8734
|
l > 0 && (o = this.data.substr(a), s = parseInt(o, 10), n.put(s, l * 3 + 1));
|
|
8735
8735
|
}, vi = r, vi;
|
|
8736
8736
|
}
|
|
8737
|
-
var ki,
|
|
8737
|
+
var ki, Kl;
|
|
8738
8738
|
function Tf() {
|
|
8739
|
-
if (
|
|
8740
|
-
|
|
8739
|
+
if (Kl) return ki;
|
|
8740
|
+
Kl = 1;
|
|
8741
8741
|
const e = Cn(), r = [
|
|
8742
8742
|
"0",
|
|
8743
8743
|
"1",
|
|
@@ -8803,10 +8803,10 @@ function Tf() {
|
|
|
8803
8803
|
this.data.length % 2 && a.put(r.indexOf(this.data[o]), 6);
|
|
8804
8804
|
}, ki = t, ki;
|
|
8805
8805
|
}
|
|
8806
|
-
var wi,
|
|
8806
|
+
var wi, $l;
|
|
8807
8807
|
function If() {
|
|
8808
|
-
if (
|
|
8809
|
-
|
|
8808
|
+
if ($l) return wi;
|
|
8809
|
+
$l = 1;
|
|
8810
8810
|
const e = Cn();
|
|
8811
8811
|
function r(t) {
|
|
8812
8812
|
this.mode = e.BYTE, typeof t == "string" ? this.data = new TextEncoder().encode(t) : this.data = new Uint8Array(t);
|
|
@@ -8822,10 +8822,10 @@ function If() {
|
|
|
8822
8822
|
t.put(this.data[n], 8);
|
|
8823
8823
|
}, wi = r, wi;
|
|
8824
8824
|
}
|
|
8825
|
-
var Pi,
|
|
8825
|
+
var Pi, Xl;
|
|
8826
8826
|
function Df() {
|
|
8827
|
-
if (
|
|
8828
|
-
|
|
8827
|
+
if (Xl) return Pi;
|
|
8828
|
+
Xl = 1;
|
|
8829
8829
|
const e = Cn(), r = Dn();
|
|
8830
8830
|
function t(n) {
|
|
8831
8831
|
this.mode = e.KANJI, this.data = n;
|
|
@@ -8853,9 +8853,9 @@ Make sure your charset is UTF-8`
|
|
|
8853
8853
|
}
|
|
8854
8854
|
}, Pi = t, Pi;
|
|
8855
8855
|
}
|
|
8856
|
-
var xi = { exports: {} },
|
|
8856
|
+
var xi = { exports: {} }, Zl;
|
|
8857
8857
|
function Cf() {
|
|
8858
|
-
return
|
|
8858
|
+
return Zl || (Zl = 1, function(e) {
|
|
8859
8859
|
var r = {
|
|
8860
8860
|
single_source_shortest_paths: function(t, n, a) {
|
|
8861
8861
|
var o = {}, s = {};
|
|
@@ -8921,10 +8921,10 @@ function Cf() {
|
|
|
8921
8921
|
e.exports = r;
|
|
8922
8922
|
}(xi)), xi.exports;
|
|
8923
8923
|
}
|
|
8924
|
-
var
|
|
8924
|
+
var Jl;
|
|
8925
8925
|
function Af() {
|
|
8926
|
-
return
|
|
8927
|
-
const r = Cn(), t = Sf(), n = Tf(), a = If(), o = Df(), s =
|
|
8926
|
+
return Jl || (Jl = 1, function(e) {
|
|
8927
|
+
const r = Cn(), t = Sf(), n = Tf(), a = If(), o = Df(), s = ad(), l = Dn(), c = Cf();
|
|
8928
8928
|
function u(m) {
|
|
8929
8929
|
return unescape(encodeURIComponent(m)).length;
|
|
8930
8930
|
}
|
|
@@ -9055,11 +9055,11 @@ function Af() {
|
|
|
9055
9055
|
};
|
|
9056
9056
|
}(bi)), bi;
|
|
9057
9057
|
}
|
|
9058
|
-
var
|
|
9058
|
+
var Ql;
|
|
9059
9059
|
function qf() {
|
|
9060
|
-
if (
|
|
9061
|
-
|
|
9062
|
-
const e = Dn(), r =
|
|
9060
|
+
if (Ql) return ii;
|
|
9061
|
+
Ql = 1;
|
|
9062
|
+
const e = Dn(), r = Ls(), t = mf(), n = hf(), a = yf(), o = bf(), s = vf(), l = td(), c = Pf(), u = xf(), d = Ef(), p = Cn(), _ = Af();
|
|
9063
9063
|
function g(T, x) {
|
|
9064
9064
|
const P = T.size, I = o.getPositions(x);
|
|
9065
9065
|
for (let A = 0; A < I.length; A++) {
|
|
@@ -9192,9 +9192,9 @@ Minimum version required to store current data is: ` + j + `.
|
|
|
9192
9192
|
return typeof P < "u" && (I = r.from(P.errorCorrectionLevel, r.M), A = u.from(P.version), j = s.from(P.maskPattern), P.toSJISFunc && e.setToSJISFunction(P.toSJISFunc)), E(x, A, I, j);
|
|
9193
9193
|
}, ii;
|
|
9194
9194
|
}
|
|
9195
|
-
var Ei = {}, Si = {},
|
|
9196
|
-
function
|
|
9197
|
-
return
|
|
9195
|
+
var Ei = {}, Si = {}, ec;
|
|
9196
|
+
function od() {
|
|
9197
|
+
return ec || (ec = 1, function(e) {
|
|
9198
9198
|
function r(t) {
|
|
9199
9199
|
if (typeof t == "number" && (t = t.toString()), typeof t != "string")
|
|
9200
9200
|
throw new Error("Color should be defined as hex string");
|
|
@@ -9246,10 +9246,10 @@ function ad() {
|
|
|
9246
9246
|
};
|
|
9247
9247
|
}(Si)), Si;
|
|
9248
9248
|
}
|
|
9249
|
-
var
|
|
9249
|
+
var rc;
|
|
9250
9250
|
function zf() {
|
|
9251
|
-
return
|
|
9252
|
-
const r =
|
|
9251
|
+
return rc || (rc = 1, function(e) {
|
|
9252
|
+
const r = od();
|
|
9253
9253
|
function t(a, o, s) {
|
|
9254
9254
|
a.clearRect(0, 0, o.width, o.height), o.style || (o.style = {}), o.height = s, o.width = s, o.style.height = s + "px", o.style.width = s + "px";
|
|
9255
9255
|
}
|
|
@@ -9273,11 +9273,11 @@ function zf() {
|
|
|
9273
9273
|
};
|
|
9274
9274
|
}(Ei)), Ei;
|
|
9275
9275
|
}
|
|
9276
|
-
var Ti = {},
|
|
9276
|
+
var Ti = {}, tc;
|
|
9277
9277
|
function Ff() {
|
|
9278
|
-
if (
|
|
9279
|
-
|
|
9280
|
-
const e =
|
|
9278
|
+
if (tc) return Ti;
|
|
9279
|
+
tc = 1;
|
|
9280
|
+
const e = od();
|
|
9281
9281
|
function r(a, o) {
|
|
9282
9282
|
const s = a.a / 255, l = o + '="' + a.hex + '"';
|
|
9283
9283
|
return s < 1 ? l + " " + o + '-opacity="' + s.toFixed(2).slice(1) + '"' : l;
|
|
@@ -9300,10 +9300,10 @@ function Ff() {
|
|
|
9300
9300
|
return typeof l == "function" && l(null, k), k;
|
|
9301
9301
|
}, Ti;
|
|
9302
9302
|
}
|
|
9303
|
-
var
|
|
9303
|
+
var nc;
|
|
9304
9304
|
function Mf() {
|
|
9305
|
-
if (
|
|
9306
|
-
|
|
9305
|
+
if (nc) return On;
|
|
9306
|
+
nc = 1;
|
|
9307
9307
|
const e = ff(), r = qf(), t = zf(), n = Ff();
|
|
9308
9308
|
function a(o, s, l, c, u) {
|
|
9309
9309
|
const d = [].slice.call(arguments, 1), p = d.length, _ = typeof d[p - 1] == "function";
|
|
@@ -9402,10 +9402,10 @@ function Bf(e, r) {
|
|
|
9402
9402
|
}
|
|
9403
9403
|
S(e, d), te(), a();
|
|
9404
9404
|
}
|
|
9405
|
-
var
|
|
9405
|
+
var ac;
|
|
9406
9406
|
(function(e) {
|
|
9407
9407
|
e.body_s = "p", e.body_m = "p", e.body_l = "p", e.body_xl = "p", e.heading_xs = "h6", e.heading_s = "h5", e.heading_m = "h4", e.heading_l = "h3", e.heading_xl = "h2", e.heading_xxl = "h1";
|
|
9408
|
-
})(
|
|
9408
|
+
})(ac || (ac = {}));
|
|
9409
9409
|
var Eo;
|
|
9410
9410
|
(function(e) {
|
|
9411
9411
|
e[e.extra_light = 100] = "extra_light", e[e.thin = 200] = "thin", e[e.light = 300] = "light", e[e.regular = 400] = "regular", e[e.medium = 500] = "medium", e[e.semibold = 600] = "semibold", e[e.bold = 700] = "bold", e[e.extra_bold = 800] = "extra_bold", e[e.black = 900] = "black";
|
|
@@ -9418,18 +9418,18 @@ var To;
|
|
|
9418
9418
|
(function(e) {
|
|
9419
9419
|
e.leading = "start", e.center = "center", e.trailing = "end";
|
|
9420
9420
|
})(To || (To = {}));
|
|
9421
|
-
var ac;
|
|
9422
|
-
(function(e) {
|
|
9423
|
-
e.vertical = "column", e.horizontal = "row", e.zlayer = "zstack";
|
|
9424
|
-
})(ac || (ac = {}));
|
|
9425
9421
|
var oc;
|
|
9426
9422
|
(function(e) {
|
|
9427
|
-
e.
|
|
9423
|
+
e.vertical = "column", e.horizontal = "row", e.zlayer = "zstack";
|
|
9428
9424
|
})(oc || (oc = {}));
|
|
9429
9425
|
var ic;
|
|
9430
9426
|
(function(e) {
|
|
9431
|
-
e.
|
|
9427
|
+
e.top = "flex-start", e.leading = "flex-start", e.center = "center", e.bottom = "flex-end", e.trailing = "flex-end";
|
|
9432
9428
|
})(ic || (ic = {}));
|
|
9429
|
+
var sc;
|
|
9430
|
+
(function(e) {
|
|
9431
|
+
e.space_between = "space-between", e.space_around = "space-around", e.space_evenly = "space-evenly", e.start = "flex-start", e.center = "center", e.end = "flex-end";
|
|
9432
|
+
})(sc || (sc = {}));
|
|
9433
9433
|
const Qi = "light", Uf = "#000000", qa = {
|
|
9434
9434
|
top: 0,
|
|
9435
9435
|
bottom: 0,
|
|
@@ -9442,7 +9442,7 @@ function Re(e) {
|
|
|
9442
9442
|
function gr(e) {
|
|
9443
9443
|
return `${e}px`;
|
|
9444
9444
|
}
|
|
9445
|
-
function
|
|
9445
|
+
function id(...e) {
|
|
9446
9446
|
return e.map(gr).join(" ");
|
|
9447
9447
|
}
|
|
9448
9448
|
function Ut(e, r) {
|
|
@@ -9462,9 +9462,9 @@ function sr(e) {
|
|
|
9462
9462
|
}
|
|
9463
9463
|
function rr(e) {
|
|
9464
9464
|
const { top: r, bottom: t, leading: n, trailing: a } = e ?? qa;
|
|
9465
|
-
return
|
|
9465
|
+
return id(r, a, t, n);
|
|
9466
9466
|
}
|
|
9467
|
-
function
|
|
9467
|
+
function sd(e) {
|
|
9468
9468
|
if (e.type === "alias" || e.type === "hex")
|
|
9469
9469
|
return e.value;
|
|
9470
9470
|
const r = e.points.map((t) => `${t.color} ${t.percent}%`).join(", ");
|
|
@@ -9479,7 +9479,7 @@ function mr(e, r) {
|
|
|
9479
9479
|
if (r == null)
|
|
9480
9480
|
return "transparent";
|
|
9481
9481
|
const t = Ut(e, r);
|
|
9482
|
-
return
|
|
9482
|
+
return sd(t);
|
|
9483
9483
|
}
|
|
9484
9484
|
function Rf(e, r) {
|
|
9485
9485
|
return r == null ? "transparent" : mr(e, r);
|
|
@@ -9494,7 +9494,7 @@ function Vf(e) {
|
|
|
9494
9494
|
if (e == null)
|
|
9495
9495
|
return "0";
|
|
9496
9496
|
const { top_leading: r, top_trailing: t, bottom_trailing: n, bottom_leading: a } = e;
|
|
9497
|
-
return
|
|
9497
|
+
return id(r, t, n, a);
|
|
9498
9498
|
}
|
|
9499
9499
|
function _a(e) {
|
|
9500
9500
|
switch (e == null ? void 0 : e.type) {
|
|
@@ -9588,7 +9588,7 @@ const $f = {
|
|
|
9588
9588
|
light: { type: "hex", value: Uf }
|
|
9589
9589
|
};
|
|
9590
9590
|
function Xf(e, r) {
|
|
9591
|
-
const t = Ut(e, r), n =
|
|
9591
|
+
const t = Ut(e, r), n = sd(t);
|
|
9592
9592
|
switch (t.type) {
|
|
9593
9593
|
case "alias":
|
|
9594
9594
|
case "hex":
|
|
@@ -9647,8 +9647,8 @@ function Qf(e) {
|
|
|
9647
9647
|
function em(e, r) {
|
|
9648
9648
|
const t = K(r, "style", 3, ""), n = K(r, "component", 3, "p");
|
|
9649
9649
|
var a = xe(), o = ee(a);
|
|
9650
|
-
|
|
9651
|
-
|
|
9650
|
+
As(o, n, !1, (s, l) => {
|
|
9651
|
+
zs(s, () => ({ style: t() }));
|
|
9652
9652
|
var c = xe(), u = ee(c);
|
|
9653
9653
|
Xe(u, () => r.children ?? ze), S(l, c);
|
|
9654
9654
|
}), S(e, a);
|
|
@@ -9663,7 +9663,7 @@ class rm {
|
|
|
9663
9663
|
constructor(r, t) {
|
|
9664
9664
|
ke(this, Va);
|
|
9665
9665
|
ke(this, Ha);
|
|
9666
|
-
be(this, Va, r), be(this, Ha,
|
|
9666
|
+
be(this, Va, r), be(this, Ha, tu(t));
|
|
9667
9667
|
}
|
|
9668
9668
|
get current() {
|
|
9669
9669
|
return O(this, Ha).call(this), O(this, Va).call(this);
|
|
@@ -9686,15 +9686,15 @@ class am extends rm {
|
|
|
9686
9686
|
);
|
|
9687
9687
|
}
|
|
9688
9688
|
}
|
|
9689
|
-
const
|
|
9689
|
+
const ld = Symbol("color-mode");
|
|
9690
9690
|
function om(e) {
|
|
9691
9691
|
const r = new am("prefers-color-scheme: dark", ((e == null ? void 0 : e()) ?? Qi) === "dark"), t = () => (e == null ? void 0 : e()) ?? (r.current ? "dark" : Qi);
|
|
9692
|
-
return or(
|
|
9692
|
+
return or(ld, t), t;
|
|
9693
9693
|
}
|
|
9694
9694
|
function tt() {
|
|
9695
|
-
return Be(
|
|
9695
|
+
return Be(ld) ?? (() => Qi);
|
|
9696
9696
|
}
|
|
9697
|
-
const
|
|
9697
|
+
const cd = Symbol("localization");
|
|
9698
9698
|
function im(e) {
|
|
9699
9699
|
const t = {
|
|
9700
9700
|
getLocalizedString: (n) => {
|
|
@@ -9705,10 +9705,10 @@ function im(e) {
|
|
|
9705
9705
|
return c ?? u;
|
|
9706
9706
|
}
|
|
9707
9707
|
};
|
|
9708
|
-
return or(
|
|
9708
|
+
return or(cd, t), t;
|
|
9709
9709
|
}
|
|
9710
9710
|
function sm() {
|
|
9711
|
-
const e = Be(
|
|
9711
|
+
const e = Be(cd);
|
|
9712
9712
|
if (e === void 0)
|
|
9713
9713
|
throw new Error("Localization context not found");
|
|
9714
9714
|
return e;
|
|
@@ -9737,12 +9737,12 @@ function um(e, r) {
|
|
|
9737
9737
|
function dm(e = "", r) {
|
|
9738
9738
|
return r === void 0 ? e : um(e, r);
|
|
9739
9739
|
}
|
|
9740
|
-
const
|
|
9741
|
-
function
|
|
9742
|
-
or(
|
|
9740
|
+
const ud = Symbol("packageInfo");
|
|
9741
|
+
function dd(e) {
|
|
9742
|
+
or(ud, e);
|
|
9743
9743
|
}
|
|
9744
|
-
function
|
|
9745
|
-
const e = Be(
|
|
9744
|
+
function pd() {
|
|
9745
|
+
const e = Be(ud);
|
|
9746
9746
|
if (e === void 0)
|
|
9747
9747
|
throw new Error("PackageInfo context not found");
|
|
9748
9748
|
return e;
|
|
@@ -9750,7 +9750,7 @@ function dd() {
|
|
|
9750
9750
|
var pm = /* @__PURE__ */ B("<span><!></span>");
|
|
9751
9751
|
function rs(e, r) {
|
|
9752
9752
|
re(r, !0);
|
|
9753
|
-
const t = () => ve(c, "$selectedState", o), n = () => ve(u, "$packageInfo", o), a = () => ve(k, "$variables", o), [o, s] = Ne(), l = /* @__PURE__ */ lr(r, ["$$slots", "$$events", "$$legacy"]), c = et(), u =
|
|
9753
|
+
const t = () => ve(c, "$selectedState", o), n = () => ve(u, "$packageInfo", o), a = () => ve(k, "$variables", o), [o, s] = Ne(), l = /* @__PURE__ */ lr(r, ["$$slots", "$$events", "$$legacy"]), c = et(), u = pd(), d = /* @__PURE__ */ y(() => {
|
|
9754
9754
|
var T, x;
|
|
9755
9755
|
return {
|
|
9756
9756
|
...l,
|
|
@@ -10033,11 +10033,11 @@ function Pm(e, r) {
|
|
|
10033
10033
|
}
|
|
10034
10034
|
U(() => {
|
|
10035
10035
|
Pe(ye, i(P)), Pe(Ie, i(I));
|
|
10036
|
-
}), Br("transitionend", Ie, me),
|
|
10036
|
+
}), Br("transitionend", Ie, me), Fs(Ie, "clientWidth", (ne) => L(F, ne)), S(e, ye), te(), a();
|
|
10037
10037
|
}
|
|
10038
10038
|
Za(["pointerdown", "pointerup", "pointermove"]);
|
|
10039
10039
|
var xm = /* @__PURE__ */ B("<div><div></div></div>");
|
|
10040
|
-
function
|
|
10040
|
+
function _d(e, r) {
|
|
10041
10041
|
re(r, !0);
|
|
10042
10042
|
const t = () => ve(s, "$selectedState", n), [n, a] = Ne(), o = /* @__PURE__ */ lr(r, ["$$slots", "$$events", "$$legacy"]), s = et(), l = /* @__PURE__ */ y(() => ({
|
|
10043
10043
|
...o,
|
|
@@ -10076,24 +10076,24 @@ function pd(e, r) {
|
|
|
10076
10076
|
Pe(b, i(m)), Pe(E, i(v));
|
|
10077
10077
|
}), S(e, b), te(), a();
|
|
10078
10078
|
}
|
|
10079
|
-
const
|
|
10079
|
+
const gd = Symbol("selected");
|
|
10080
10080
|
function Em(e) {
|
|
10081
|
-
or(
|
|
10081
|
+
or(gd, e);
|
|
10082
10082
|
}
|
|
10083
|
-
function
|
|
10084
|
-
const e = Be(
|
|
10083
|
+
function Bs() {
|
|
10084
|
+
const e = Be(gd);
|
|
10085
10085
|
if (e === void 0)
|
|
10086
10086
|
throw new Error("Tabs context not found");
|
|
10087
10087
|
return e;
|
|
10088
10088
|
}
|
|
10089
10089
|
function Sm(e, r) {
|
|
10090
10090
|
re(r, !0);
|
|
10091
|
-
const t = () => ve(o, "$control", n), [n, a] = Ne(), { control: o } =
|
|
10091
|
+
const t = () => ve(o, "$control", n), [n, a] = Ne(), { control: o } = Bs();
|
|
10092
10092
|
dr(e, He(() => t().stack)), te(), a();
|
|
10093
10093
|
}
|
|
10094
10094
|
function Tm(e, r) {
|
|
10095
10095
|
re(r, !0);
|
|
10096
|
-
const { selectedTabId: t, selectTab: n } =
|
|
10096
|
+
const { selectedTabId: t, selectTab: n } = Bs();
|
|
10097
10097
|
Yo(st(t, (o) => o === r.tab_id)), dr(e, He(() => r.stack, { onclick: () => {
|
|
10098
10098
|
n(r.tab_id, r.tab_index);
|
|
10099
10099
|
} })), te();
|
|
@@ -10110,7 +10110,7 @@ function Cm(e, r) {
|
|
|
10110
10110
|
const t = () => ve(l, "$selectedState", a), n = () => ve(g, "$isActive", a), [a, o] = Ne(), s = /* @__PURE__ */ lr(r, ["$$slots", "$$events", "$$legacy"]), l = et(), c = /* @__PURE__ */ y(() => ({
|
|
10111
10111
|
...s,
|
|
10112
10112
|
...rt(t(), r.overrides)
|
|
10113
|
-
})), u = /* @__PURE__ */ y(() => i(c).thumb_color_on), d = /* @__PURE__ */ y(() => i(c).thumb_color_off), p = /* @__PURE__ */ y(() => i(c).track_color_on), _ = /* @__PURE__ */ y(() => i(c).track_color_off), { isActive: g, selectTab: f } =
|
|
10113
|
+
})), u = /* @__PURE__ */ y(() => i(c).thumb_color_on), d = /* @__PURE__ */ y(() => i(c).thumb_color_off), p = /* @__PURE__ */ y(() => i(c).track_color_on), _ = /* @__PURE__ */ y(() => i(c).track_color_off), { isActive: g, selectTab: f } = Bs();
|
|
10114
10114
|
Yo(g);
|
|
10115
10115
|
const w = tt(), k = /* @__PURE__ */ y(w), m = /* @__PURE__ */ y(() => Re({
|
|
10116
10116
|
background: n() ? mr(i(k), i(p)) : mr(i(k), i(_))
|
|
@@ -10180,7 +10180,7 @@ const zm = Object.freeze({
|
|
|
10180
10180
|
center: "center",
|
|
10181
10181
|
end: "flex-end"
|
|
10182
10182
|
});
|
|
10183
|
-
function
|
|
10183
|
+
function Us(e) {
|
|
10184
10184
|
if (e.type === "zlayer")
|
|
10185
10185
|
return {};
|
|
10186
10186
|
const r = e.type === "vertical" ? "column" : "row", t = Fm[e.distribution] || "center", n = zm[e.alignment] || "center";
|
|
@@ -10255,7 +10255,7 @@ function Lm(e, r) {
|
|
|
10255
10255
|
position: "relative",
|
|
10256
10256
|
width: sr(i(p).width),
|
|
10257
10257
|
height: sr(i(p).height),
|
|
10258
|
-
...
|
|
10258
|
+
...Us(i(_)),
|
|
10259
10259
|
gap: gr(i(g)),
|
|
10260
10260
|
margin: rr({
|
|
10261
10261
|
...i(f) ? { ...i(f) } : { ...qa }
|
|
@@ -10318,7 +10318,7 @@ function Rm(e, r) {
|
|
|
10318
10318
|
position: "relative",
|
|
10319
10319
|
width: sr(i(o).width),
|
|
10320
10320
|
height: sr(i(o).height),
|
|
10321
|
-
...
|
|
10321
|
+
...Us(i(s)),
|
|
10322
10322
|
gap: gr(i(l)),
|
|
10323
10323
|
margin: rr({
|
|
10324
10324
|
...i(c) ? {
|
|
@@ -10349,7 +10349,7 @@ function Hm(e, r) {
|
|
|
10349
10349
|
...l
|
|
10350
10350
|
} = t, { walletButtonRender: c, ...u } = cn();
|
|
10351
10351
|
let d = /* @__PURE__ */ X(void 0), p = /* @__PURE__ */ X(!!c);
|
|
10352
|
-
|
|
10352
|
+
$u({ walletButtonRender: c, ...u, onWalletButtonReady: (k) => {
|
|
10353
10353
|
L(d, k, !0), L(p, !1);
|
|
10354
10354
|
} });
|
|
10355
10355
|
const g = /* @__PURE__ */ y(() => !i(d) || !a), f = /* @__PURE__ */ y(() => !!(a && i(d) && !i(p))), w = {
|
|
@@ -10407,8 +10407,8 @@ function Ta(e, r) {
|
|
|
10407
10407
|
carousel: Pm,
|
|
10408
10408
|
countdown: Xm,
|
|
10409
10409
|
express_purchase_button: Hm,
|
|
10410
|
-
footer:
|
|
10411
|
-
icon:
|
|
10410
|
+
footer: fd,
|
|
10411
|
+
icon: _d,
|
|
10412
10412
|
image: fh,
|
|
10413
10413
|
input_multiple_choice: sf,
|
|
10414
10414
|
input_option: pf,
|
|
@@ -10463,7 +10463,7 @@ function dr(e, r) {
|
|
|
10463
10463
|
position: "relative",
|
|
10464
10464
|
width: sr(i(f).width),
|
|
10465
10465
|
height: sr(i(f).height),
|
|
10466
|
-
...
|
|
10466
|
+
...Us(i(w)),
|
|
10467
10467
|
gap: gr(i(k)),
|
|
10468
10468
|
margin: rr(i(m)),
|
|
10469
10469
|
padding: rr(i(h)),
|
|
@@ -10490,8 +10490,8 @@ function dr(e, r) {
|
|
|
10490
10490
|
return Re(jm(i(P), (C = i(E)) == null ? void 0 : C.width));
|
|
10491
10491
|
});
|
|
10492
10492
|
var F = xe(), H = ee(F);
|
|
10493
|
-
|
|
10494
|
-
|
|
10493
|
+
As(H, () => l !== void 0 ? "button" : "div", !1, (C, q) => {
|
|
10494
|
+
zs(
|
|
10495
10495
|
C,
|
|
10496
10496
|
(me) => ({
|
|
10497
10497
|
role: l !== void 0 ? "button" : void 0,
|
|
@@ -10554,7 +10554,7 @@ function io(e) {
|
|
|
10554
10554
|
function so(e) {
|
|
10555
10555
|
return `${e}`;
|
|
10556
10556
|
}
|
|
10557
|
-
function
|
|
10557
|
+
function lc(e) {
|
|
10558
10558
|
const r = /* @__PURE__ */ new Date(), n = new Date(e).getTime() - r.getTime();
|
|
10559
10559
|
if (n <= 0)
|
|
10560
10560
|
return {
|
|
@@ -10579,19 +10579,19 @@ function sc(e) {
|
|
|
10579
10579
|
count_seconds_without_zero: so(p)
|
|
10580
10580
|
};
|
|
10581
10581
|
}
|
|
10582
|
-
function
|
|
10582
|
+
function cc(e) {
|
|
10583
10583
|
const r = /* @__PURE__ */ new Date();
|
|
10584
10584
|
return new Date(e).getTime() <= r.getTime();
|
|
10585
10585
|
}
|
|
10586
10586
|
function Xm(e, r) {
|
|
10587
10587
|
re(r, !0);
|
|
10588
10588
|
const t = /* @__PURE__ */ lr(r, ["$$slots", "$$events", "$$legacy"]), { countdown_stack: n, end_stack: a } = t;
|
|
10589
|
-
let o = /* @__PURE__ */ X($e(
|
|
10589
|
+
let o = /* @__PURE__ */ X($e(lc(r.style.date))), s = /* @__PURE__ */ X($e(cc(r.style.date)));
|
|
10590
10590
|
const l = Go(), c = Rr(i(o)), u = st([l, c], ([p, _]) => ({ ...p, ..._ }));
|
|
10591
|
-
|
|
10591
|
+
Os(u), xr(() => {
|
|
10592
10592
|
const p = setInterval(
|
|
10593
10593
|
() => {
|
|
10594
|
-
L(o,
|
|
10594
|
+
L(o, lc(r.style.date), !0), L(s, cc(r.style.date), !0), c.set(i(o));
|
|
10595
10595
|
},
|
|
10596
10596
|
1e3
|
|
10597
10597
|
);
|
|
@@ -10605,7 +10605,7 @@ const Jm = {
|
|
|
10605
10605
|
hash: "svelte-oqnaq9",
|
|
10606
10606
|
code: "div.svelte-oqnaq9 {position:sticky;bottom:0;width:100%;z-index:1000;display:flex;flex-direction:row;justify-content:center;}"
|
|
10607
10607
|
};
|
|
10608
|
-
function
|
|
10608
|
+
function fd(e, r) {
|
|
10609
10609
|
ie(e, Jm);
|
|
10610
10610
|
var t = Zm(), n = z(t);
|
|
10611
10611
|
dr(n, He(() => r.stack)), S(e, t);
|
|
@@ -10680,7 +10680,7 @@ function Do(e, r) {
|
|
|
10680
10680
|
S(e, c), te();
|
|
10681
10681
|
}
|
|
10682
10682
|
var ah = /* @__PURE__ */ tr('<linearGradient x1="0" y1="0" x2="100%" y2="100%"><stop offset="0%"></stop><stop offset="100%"></stop></linearGradient>'), oh = /* @__PURE__ */ tr("<stop></stop>"), ih = /* @__PURE__ */ tr("<linearGradient></linearGradient>"), sh = /* @__PURE__ */ tr("<stop></stop>"), lh = /* @__PURE__ */ tr("<radialGradient></radialGradient>"), ch = /* @__PURE__ */ tr("<!><!><!>", 1);
|
|
10683
|
-
function
|
|
10683
|
+
function md(e, r) {
|
|
10684
10684
|
re(r, !0);
|
|
10685
10685
|
var t = ch(), n = ee(t);
|
|
10686
10686
|
{
|
|
@@ -10803,7 +10803,7 @@ function fh(e, r) {
|
|
|
10803
10803
|
var he = R(le);
|
|
10804
10804
|
{
|
|
10805
10805
|
let de = /* @__PURE__ */ y(() => `${i(c)}-overlay`);
|
|
10806
|
-
|
|
10806
|
+
md(he, {
|
|
10807
10807
|
get id() {
|
|
10808
10808
|
return i(de);
|
|
10809
10809
|
},
|
|
@@ -10852,34 +10852,34 @@ function fh(e, r) {
|
|
|
10852
10852
|
Pe(q, i(P)), oe(N, "viewBox", i(F)), Pe(N, i(H)), oe(W, "id", `${i(c)}-path`), oe(le, "id", `${i(c)}-border`), oe(ge, "clip-path", `url(#${i(c)}-path)`), oe(Ce, "src", i(b).original), Pe(Ce, `object-fit:${de ?? ""}`);
|
|
10853
10853
|
},
|
|
10854
10854
|
[() => Io(i(_))]
|
|
10855
|
-
),
|
|
10855
|
+
), Lu(N, "contentRect", (de) => L(I, de)), Fs(q, "clientWidth", (de) => L(E, de)), S(e, q), te(), a();
|
|
10856
10856
|
}
|
|
10857
10857
|
function mh(e, r) {
|
|
10858
10858
|
re(r, !0);
|
|
10859
10859
|
const t = () => ve(u, "$selectedPackageId", l), n = () => ve(d, "$variablesPerPackage", l), a = () => ve(w, "$fallbackVariables", l), o = () => ve(p, "$infoPerPackage", l), s = () => ve(h, "$fallbackPackageInfo", l), [l, c] = Ne(), { selectedPackageId: u, variablesPerPackage: d, infoPerPackage: p } = cn();
|
|
10860
10860
|
_r(() => {
|
|
10861
|
-
r.is_selected_by_default &&
|
|
10861
|
+
r.is_selected_by_default && Il(u, r.package_id);
|
|
10862
10862
|
});
|
|
10863
10863
|
const _ = /* @__PURE__ */ y(() => t() === r.package_id), g = Rr(i(_));
|
|
10864
10864
|
xr(() => {
|
|
10865
10865
|
g.set(i(_));
|
|
10866
10866
|
}), Yo(g);
|
|
10867
10867
|
const f = () => {
|
|
10868
|
-
|
|
10868
|
+
Il(u, r.package_id);
|
|
10869
10869
|
}, w = Go(), k = /* @__PURE__ */ y(() => {
|
|
10870
10870
|
var E;
|
|
10871
10871
|
return ((E = n()) == null ? void 0 : E[r.package_id]) ?? a();
|
|
10872
10872
|
}), m = Rr(i(k));
|
|
10873
10873
|
xr(() => {
|
|
10874
10874
|
m.set(i(k));
|
|
10875
|
-
}),
|
|
10876
|
-
const h =
|
|
10875
|
+
}), Os(m);
|
|
10876
|
+
const h = pd(), v = /* @__PURE__ */ y(() => {
|
|
10877
10877
|
var E;
|
|
10878
10878
|
return ((E = o()) == null ? void 0 : E[r.package_id]) ?? s();
|
|
10879
10879
|
}), b = Rr(i(v));
|
|
10880
10880
|
xr(() => {
|
|
10881
10881
|
b.set(i(v));
|
|
10882
|
-
}),
|
|
10882
|
+
}), dd(b), dr(e, He(() => r.stack, { onclick: f })), te(), c();
|
|
10883
10883
|
}
|
|
10884
10884
|
var hh = /* @__PURE__ */ B('<div class="backdrop svelte-55xk8e" role="presentation" tabindex="-1" aria-hidden="true"><div role="dialog" aria-modal="true"><!></div></div>');
|
|
10885
10885
|
const yh = {
|
|
@@ -10915,7 +10915,7 @@ function bh(e, r) {
|
|
|
10915
10915
|
P.__click = E, P.__keydown = T;
|
|
10916
10916
|
var I = z(P), A = z(I);
|
|
10917
10917
|
dr(A, He(() => s)), Wo(I, (j) => m = j, () => m), U(() => {
|
|
10918
|
-
Pe(P, i(f)), er(I, 1,
|
|
10918
|
+
Pe(P, i(f)), er(I, 1, qs(i(x)), "svelte-55xk8e"), Pe(I, i(w));
|
|
10919
10919
|
}), Br("transitionend", I, b), S(e, P), te(), a();
|
|
10920
10920
|
}
|
|
10921
10921
|
Za(["click", "keydown"]);
|
|
@@ -10991,7 +10991,7 @@ function wh(e, r) {
|
|
|
10991
10991
|
return;
|
|
10992
10992
|
}
|
|
10993
10993
|
};
|
|
10994
|
-
|
|
10994
|
+
$u({
|
|
10995
10995
|
selectedPackageId: m,
|
|
10996
10996
|
variablesPerPackage: Vt(o()),
|
|
10997
10997
|
infoPerPackage: Vt(l()),
|
|
@@ -11007,16 +11007,16 @@ function wh(e, r) {
|
|
|
11007
11007
|
const H = o()[F || ""];
|
|
11008
11008
|
return { ...s(), ...H };
|
|
11009
11009
|
});
|
|
11010
|
-
|
|
11010
|
+
Os(T);
|
|
11011
11011
|
const x = st(m, (F) => l()[F || ""]);
|
|
11012
|
-
|
|
11012
|
+
dd(x);
|
|
11013
11013
|
const P = /* @__PURE__ */ y(() => Re(An(i(p), null, w.background)));
|
|
11014
11014
|
_r(() => {
|
|
11015
11015
|
Kf(r.uiConfig);
|
|
11016
11016
|
});
|
|
11017
11017
|
const I = /* @__PURE__ */ y(() => i(v) ? "paywall blur" : "paywall"), { stack: A, sticky_footer: j } = w;
|
|
11018
11018
|
var M = xe(), D = ee(M);
|
|
11019
|
-
|
|
11019
|
+
nu(
|
|
11020
11020
|
D,
|
|
11021
11021
|
{
|
|
11022
11022
|
get onerror() {
|
|
@@ -11029,7 +11029,7 @@ function wh(e, r) {
|
|
|
11029
11029
|
var G = R(N, 2);
|
|
11030
11030
|
{
|
|
11031
11031
|
var W = (ue) => {
|
|
11032
|
-
|
|
11032
|
+
fd(ue, He(() => j));
|
|
11033
11033
|
};
|
|
11034
11034
|
Y(G, (ue) => {
|
|
11035
11035
|
j && ue(W);
|
|
@@ -11045,7 +11045,7 @@ function wh(e, r) {
|
|
|
11045
11045
|
});
|
|
11046
11046
|
}
|
|
11047
11047
|
U(() => {
|
|
11048
|
-
er(C, 1,
|
|
11048
|
+
er(C, 1, qs(i(I)), "svelte-qmn1lh"), Pe(C, i(P)), Pe(q, r.maxContentWidth ? `max-width: ${r.maxContentWidth}; margin-inline: auto;` : "");
|
|
11049
11049
|
}), S(F, H);
|
|
11050
11050
|
}
|
|
11051
11051
|
), S(e, M), te(), a();
|
|
@@ -11125,7 +11125,7 @@ function Ih(e, r) {
|
|
|
11125
11125
|
});
|
|
11126
11126
|
}
|
|
11127
11127
|
var I = R(x, 2), A = z(I);
|
|
11128
|
-
|
|
11128
|
+
_d(A, He(() => i(c)));
|
|
11129
11129
|
var j = R(T, 2), M = z(j);
|
|
11130
11130
|
rs(M, He(() => i(u)));
|
|
11131
11131
|
var D = R(M, 2);
|
|
@@ -11294,7 +11294,7 @@ function Oh(e, r) {
|
|
|
11294
11294
|
var cr = R(Ie);
|
|
11295
11295
|
{
|
|
11296
11296
|
let pe = /* @__PURE__ */ y(() => `${i(c)}-overlay`);
|
|
11297
|
-
|
|
11297
|
+
md(cr, {
|
|
11298
11298
|
get id() {
|
|
11299
11299
|
return i(pe);
|
|
11300
11300
|
},
|
|
@@ -11376,7 +11376,7 @@ function Oh(e, r) {
|
|
|
11376
11376
|
}
|
|
11377
11377
|
U(() => {
|
|
11378
11378
|
Pe(_e, i(C)), oe(ge, "viewBox", i(le)), Pe(ge, i(ue)), oe(Ce, "id", `${i(c)}-path`), oe(Ie, "id", `${i(c)}-border`), oe(Ir, "clip-path", `url(#${i(c)}-path)`);
|
|
11379
|
-
}),
|
|
11379
|
+
}), Lu(ge, "contentRect", (pe) => L(q, pe)), Fs(_e, "clientWidth", (pe) => L(j, pe)), S(e, _e), te(), a();
|
|
11380
11380
|
}
|
|
11381
11381
|
var Lh = /* @__PURE__ */ B("<span><!></span>");
|
|
11382
11382
|
const Bh = {
|
|
@@ -11471,7 +11471,7 @@ const Rh = {
|
|
|
11471
11471
|
mobile: "0.70rem",
|
|
11472
11472
|
desktop: "1rem"
|
|
11473
11473
|
}
|
|
11474
|
-
},
|
|
11474
|
+
}, uc = "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", dt = {
|
|
11475
11475
|
regular: "400",
|
|
11476
11476
|
medium: "500",
|
|
11477
11477
|
semibold: "600"
|
|
@@ -11660,20 +11660,20 @@ const Rh = {
|
|
|
11660
11660
|
"grey-ui-light": "rgba(0,0,0,0.1)",
|
|
11661
11661
|
"input-background": "white",
|
|
11662
11662
|
background: "#EFF3FA"
|
|
11663
|
-
},
|
|
11663
|
+
}, hd = {
|
|
11664
11664
|
error: "color_error",
|
|
11665
11665
|
focus: "color_accent",
|
|
11666
11666
|
accent: "color_accent",
|
|
11667
11667
|
primary: "color_buttons_primary"
|
|
11668
11668
|
}, Yh = {
|
|
11669
|
-
...
|
|
11669
|
+
...hd,
|
|
11670
11670
|
"input-background": "color_form_bg",
|
|
11671
11671
|
background: "color_form_bg"
|
|
11672
11672
|
}, Gh = {
|
|
11673
|
-
...
|
|
11673
|
+
...hd,
|
|
11674
11674
|
"input-background": "color_product_info_bg",
|
|
11675
11675
|
background: "color_product_info_bg"
|
|
11676
|
-
},
|
|
11676
|
+
}, yd = {
|
|
11677
11677
|
"input-border-radius": "4px",
|
|
11678
11678
|
"input-button-border-radius": "8px"
|
|
11679
11679
|
}, Kh = {
|
|
@@ -11682,7 +11682,7 @@ const Rh = {
|
|
|
11682
11682
|
}, $h = {
|
|
11683
11683
|
"input-border-radius": "12px",
|
|
11684
11684
|
"input-button-border-radius": "9999px"
|
|
11685
|
-
},
|
|
11685
|
+
}, dc = yd, za = (e) => e.length == 7 ? {
|
|
11686
11686
|
r: parseInt(e.slice(1, 3), 16),
|
|
11687
11687
|
g: parseInt(e.slice(3, 5), 16),
|
|
11688
11688
|
b: parseInt(e.slice(5, 7), 16)
|
|
@@ -11690,11 +11690,11 @@ const Rh = {
|
|
|
11690
11690
|
r: parseInt(e[1], 16),
|
|
11691
11691
|
g: parseInt(e[2], 16),
|
|
11692
11692
|
b: parseInt(e[3], 16)
|
|
11693
|
-
} : null,
|
|
11693
|
+
} : null, Rs = ({ r: e, g: r, b: t, luminanceThreshold: n }) => {
|
|
11694
11694
|
const a = (s) => (s = s / 255, s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4));
|
|
11695
11695
|
return 0.2126 * a(e) + 0.7152 * a(r) + 0.0722 * a(t) > n;
|
|
11696
|
-
},
|
|
11697
|
-
const t =
|
|
11696
|
+
}, Vs = 0.37, Xh = (e, r = Vs) => {
|
|
11697
|
+
const t = Rs({ ...e, luminanceThreshold: r }) ? "0,0,0" : "255,255,255";
|
|
11698
11698
|
return {
|
|
11699
11699
|
"grey-text-dark": `rgb(${t})`,
|
|
11700
11700
|
"grey-text-light": `rgba(${t},0.70)`,
|
|
@@ -11706,20 +11706,20 @@ function Zh(e, r, t) {
|
|
|
11706
11706
|
const n = za(e) || { r: 0, g: 0, b: 0 }, a = za(r) || { r: 255, g: 255, b: 255 }, o = Math.round(a.r * t + n.r * (1 - t)), s = Math.round(a.g * t + n.g * (1 - t)), l = Math.round(a.b * t + n.b * (1 - t));
|
|
11707
11707
|
return `#${Di(o)}${Di(s)}${Di(l)}`;
|
|
11708
11708
|
}
|
|
11709
|
-
function
|
|
11709
|
+
function pc(e, r) {
|
|
11710
11710
|
const t = { r: 255, g: 255, b: 255 }, n = Math.max(0, Math.min(1, r));
|
|
11711
11711
|
let a = e, o = za(e) || t;
|
|
11712
11712
|
(isNaN(o.r) || isNaN(o.g) || isNaN(o.b)) && (o = t, a = "#FFFFFF");
|
|
11713
|
-
const l =
|
|
11713
|
+
const l = Rs({
|
|
11714
11714
|
...o,
|
|
11715
|
-
luminanceThreshold:
|
|
11715
|
+
luminanceThreshold: Vs
|
|
11716
11716
|
}) ? "#000000" : "#FFFFFF";
|
|
11717
11717
|
return Zh(a, l, n);
|
|
11718
11718
|
}
|
|
11719
11719
|
function Di(e) {
|
|
11720
11720
|
return e.toString(16).padStart(2, "0").toUpperCase();
|
|
11721
11721
|
}
|
|
11722
|
-
const Jh = (e, r, t, n =
|
|
11722
|
+
const Jh = (e, r, t, n = Vs) => {
|
|
11723
11723
|
const a = {
|
|
11724
11724
|
"grey-text-dark": t["grey-text-dark"],
|
|
11725
11725
|
"grey-text-light": t["grey-text-light"],
|
|
@@ -11733,19 +11733,19 @@ const Jh = (e, r, t, n = Rs) => {
|
|
|
11733
11733
|
}
|
|
11734
11734
|
if (r != null && r.startsWith("#")) {
|
|
11735
11735
|
const o = za(r);
|
|
11736
|
-
o !== null && (a["primary-text"] =
|
|
11736
|
+
o !== null && (a["primary-text"] = Rs({ ...o, luminanceThreshold: n }) ? "black" : "white");
|
|
11737
11737
|
}
|
|
11738
11738
|
return a;
|
|
11739
11739
|
}, Qh = (e) => ({
|
|
11740
|
-
"primary-hover":
|
|
11741
|
-
"primary-pressed":
|
|
11740
|
+
"primary-hover": pc(e, 0.1),
|
|
11741
|
+
"primary-pressed": pc(e, 0.15)
|
|
11742
11742
|
}), ey = (e, r) => e || r, ry = (e, r, t) => {
|
|
11743
11743
|
const n = Object.entries(e).map(([a, o]) => [
|
|
11744
11744
|
a,
|
|
11745
11745
|
ey(t ? t[o] : null, r[a])
|
|
11746
11746
|
]);
|
|
11747
11747
|
return Object.fromEntries(n);
|
|
11748
|
-
},
|
|
11748
|
+
}, bd = (e, r, t) => {
|
|
11749
11749
|
const n = ry(e, r, t);
|
|
11750
11750
|
return t ? {
|
|
11751
11751
|
...r,
|
|
@@ -11753,28 +11753,28 @@ const Jh = (e, r, t, n = Rs) => {
|
|
|
11753
11753
|
...Jh(n.background, n.primary, r),
|
|
11754
11754
|
...Qh(n.primary)
|
|
11755
11755
|
} : { ...r };
|
|
11756
|
-
}, ty = (e) =>
|
|
11756
|
+
}, ty = (e) => bd(Gh, Wh, e), vd = (e) => bd(Yh, Hh, e), Hs = (e) => {
|
|
11757
11757
|
if (!e)
|
|
11758
|
-
return
|
|
11758
|
+
return dc;
|
|
11759
11759
|
switch (e.shapes) {
|
|
11760
11760
|
case "rounded":
|
|
11761
|
-
return
|
|
11761
|
+
return yd;
|
|
11762
11762
|
case "rectangle":
|
|
11763
11763
|
return Kh;
|
|
11764
11764
|
case "pill":
|
|
11765
11765
|
return $h;
|
|
11766
11766
|
default:
|
|
11767
|
-
return
|
|
11767
|
+
return dc;
|
|
11768
11768
|
}
|
|
11769
11769
|
}, Co = (e = "", r) => r.map(([t, n]) => `--rc-${e}-${t}: ${n}`).join("; "), ny = (e) => {
|
|
11770
|
-
const r = Co("color", Object.entries(ty(e))), t = Co("shape", Object.entries(
|
|
11770
|
+
const r = Co("color", Object.entries(ty(e))), t = Co("shape", Object.entries(Hs(e)));
|
|
11771
11771
|
return [r, t].join("; ");
|
|
11772
11772
|
}, ay = (e) => {
|
|
11773
|
-
const r = Co("color", Object.entries(
|
|
11773
|
+
const r = Co("color", Object.entries(vd(e))), t = Co("shape", Object.entries(Hs(e)));
|
|
11774
11774
|
return [r, t].join("; ");
|
|
11775
11775
|
}, oy = (e = "", r) => Object.entries(r).flatMap(([t, { desktop: n, mobile: a }]) => [
|
|
11776
|
-
`--rc-${e}-${t}-desktop: normal normal ${n.fontWeight} ${n.fontSize}/${n.lineHeight} ${
|
|
11777
|
-
`--rc-${e}-${t}-mobile: normal normal ${a.fontWeight} ${a.fontSize}/${a.lineHeight} ${
|
|
11776
|
+
`--rc-${e}-${t}-desktop: normal normal ${n.fontWeight} ${n.fontSize}/${n.lineHeight} ${uc}`,
|
|
11777
|
+
`--rc-${e}-${t}-mobile: normal normal ${a.fontWeight} ${a.fontSize}/${a.lineHeight} ${uc}`,
|
|
11778
11778
|
`--rc-${e}-${t}-desktop-font-size: ${n.fontSize}`,
|
|
11779
11779
|
`--rc-${e}-${t}-mobile-font-size: ${a.fontSize}`
|
|
11780
11780
|
]).join("; "), iy = (e = "", r) => Object.entries(r).map(([t, { mobile: n, desktop: a }]) => `--rc-${e}-${t}-mobile: ${n}; --rc-${e}-${t}-desktop: ${a};`).join(" ");
|
|
@@ -11784,10 +11784,10 @@ let sy = class {
|
|
|
11784
11784
|
r ? this.brandingAppearance = r : this.brandingAppearance = void 0;
|
|
11785
11785
|
}
|
|
11786
11786
|
get shape() {
|
|
11787
|
-
return
|
|
11787
|
+
return Hs(this.brandingAppearance);
|
|
11788
11788
|
}
|
|
11789
11789
|
get formColors() {
|
|
11790
|
-
return
|
|
11790
|
+
return vd(this.brandingAppearance);
|
|
11791
11791
|
}
|
|
11792
11792
|
get formStyleVars() {
|
|
11793
11793
|
return ay(this.brandingAppearance);
|
|
@@ -11869,7 +11869,7 @@ const py = {
|
|
|
11869
11869
|
/* focus-visible is triggered only when focused with keyboard/reader */button.svelte-1gh6wm4:focus-visible {outline:2px solid var(--rc-color-focus);}button.intent-primary.svelte-1gh6wm4 {background-color:var(--rc-color-primary);color:var(--rc-color-primary-text);}button.svelte-1gh6wm4:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark);outline:none;}button.intent-primary.svelte-1gh6wm4:not(:disabled):hover {background-color:var(--rc-color-primary-hover);}button.intent-primary.svelte-1gh6wm4:not(:disabled):active,
|
|
11870
11870
|
button.svelte-1gh6wm4:active {background-color:var(--rc-color-primary-pressed);outline:none;}button.intent-primary.svelte-1gh6wm4:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark);}`
|
|
11871
11871
|
};
|
|
11872
|
-
function
|
|
11872
|
+
function kd(e, r) {
|
|
11873
11873
|
re(r, !0), ie(e, py);
|
|
11874
11874
|
const t = K(r, "intent", 3, "primary"), n = K(r, "disabled", 3, !1), a = K(r, "loading", 3, !1), o = /* @__PURE__ */ y(() => new sy(r.brandingAppearance)), s = /* @__PURE__ */ y(() => i(o).textStyleVars), l = /* @__PURE__ */ y(() => i(o).spacingStyleVars), c = /* @__PURE__ */ y(() => i(o).productInfoStyleVars), u = /* @__PURE__ */ y(() => i(o).formStyleVars), d = /* @__PURE__ */ y(() => [
|
|
11875
11875
|
r.styleOverrides,
|
|
@@ -11925,8 +11925,8 @@ function hy(e, r) {
|
|
|
11925
11925
|
ie(e, my);
|
|
11926
11926
|
let t = K(r, "as", 8, "section"), n = K(r, "children", 8);
|
|
11927
11927
|
var a = xe(), o = ee(a);
|
|
11928
|
-
|
|
11929
|
-
|
|
11928
|
+
As(o, t, !1, (s, l) => {
|
|
11929
|
+
zs(s, () => ({ class: "rcb-modal-section" }), void 0, void 0, void 0, "svelte-1lkpm18");
|
|
11930
11930
|
var c = xe(), u = ee(c);
|
|
11931
11931
|
Xe(u, () => n() ?? ze), S(l, c);
|
|
11932
11932
|
}), S(e, a);
|
|
@@ -11939,7 +11939,7 @@ const by = {
|
|
|
11939
11939
|
@container layout-query-container (width >= 768px) {.rcb-column.gap-small.svelte-7lmlfa {gap:var(--rc-spacing-gapSmall-desktop);}.rcb-column.gap-medium.svelte-7lmlfa {gap:var(--rc-spacing-gapLarge-desktop);}.rcb-column.gap-large.svelte-7lmlfa {gap:var(--rc-spacing-gapXXLarge-desktop);}
|
|
11940
11940
|
}`
|
|
11941
11941
|
};
|
|
11942
|
-
function
|
|
11942
|
+
function Ws(e, r) {
|
|
11943
11943
|
ie(e, by);
|
|
11944
11944
|
let t = K(r, "gap", 8, "small"), n = K(r, "justify", 8, "start"), a = K(r, "align", 8, "start"), o = K(r, "children", 8);
|
|
11945
11945
|
var s = yy(), l = z(s);
|
|
@@ -12029,7 +12029,7 @@ function Ay(e, r) {
|
|
|
12029
12029
|
l == null || l.disconnect();
|
|
12030
12030
|
}));
|
|
12031
12031
|
var c = Dy(), u = z(c);
|
|
12032
|
-
|
|
12032
|
+
Ws(u, {
|
|
12033
12033
|
gap: "medium",
|
|
12034
12034
|
justify: "start",
|
|
12035
12035
|
children: (d, p) => {
|
|
@@ -12100,7 +12100,7 @@ function Ny(e, r) {
|
|
|
12100
12100
|
ie(e, My);
|
|
12101
12101
|
const t = K(r, "title", 3, null), n = K(r, "icon", 3, null);
|
|
12102
12102
|
var a = Fy(), o = z(a);
|
|
12103
|
-
|
|
12103
|
+
Ws(o, {
|
|
12104
12104
|
gap: "large",
|
|
12105
12105
|
justify: "center",
|
|
12106
12106
|
children: (s, l) => {
|
|
@@ -12150,7 +12150,7 @@ const Oy = {
|
|
|
12150
12150
|
@media (min-width: 768px) {.message-layout-full-width.svelte-clabfx {width:544px;}
|
|
12151
12151
|
}`
|
|
12152
12152
|
};
|
|
12153
|
-
function
|
|
12153
|
+
function Ys(e, r) {
|
|
12154
12154
|
re(r, !0), ie(e, Oy);
|
|
12155
12155
|
let t = K(r, "title", 3, null), n = K(r, "closeButtonTitle", 3, "Go back to app"), a = K(r, "icon", 3, null), o = K(r, "message", 3, null), s = K(r, "fullWidth", 3, !1);
|
|
12156
12156
|
const l = Be(Ja);
|
|
@@ -12197,7 +12197,7 @@ function Ws(e, r) {
|
|
|
12197
12197
|
var g = R(p, 2), f = z(g);
|
|
12198
12198
|
fy(f, {
|
|
12199
12199
|
children: (w, k) => {
|
|
12200
|
-
|
|
12200
|
+
kd(w, {
|
|
12201
12201
|
onclick: c,
|
|
12202
12202
|
type: "submit",
|
|
12203
12203
|
get brandingAppearance() {
|
|
@@ -12354,19 +12354,19 @@ function Wy(e, r) {
|
|
|
12354
12354
|
$$slots: { default: !0 }
|
|
12355
12355
|
}), S(e, T), te(), a();
|
|
12356
12356
|
}
|
|
12357
|
-
var zr = /* @__PURE__ */ ((e) => (e.SDKInitialized = "sdk_initialized", e.CheckoutSessionStart = "checkout_session_start", e.CheckoutSessionEnd = "checkout_session_end", e.CheckoutFlowError = "checkout_flow_error", e.CheckoutPaymentTaxCalculation = "checkout_payment_tax_calculation", e.CheckoutPaymentFormImpression = "checkout_payment_form_impression", e.CheckoutPaymentFormError = "checkout_payment_form_error", e.CheckoutPaymentFormDismiss = "checkout_payment_form_dismiss", e.CheckoutPaymentFormSubmit = "checkout_payment_form_submit", e.CheckoutPaymentFormGatewayError = "checkout_payment_form_gateway_error", e.CheckoutPurchaseSuccessfulImpression = "checkout_purchase_successful_impression", e.CheckoutPurchaseSuccessfulDismiss = "checkout_purchase_successful_dismiss", e))(zr || {}),
|
|
12358
|
-
function
|
|
12357
|
+
var zr = /* @__PURE__ */ ((e) => (e.SDKInitialized = "sdk_initialized", e.CheckoutSessionStart = "checkout_session_start", e.CheckoutSessionEnd = "checkout_session_end", e.CheckoutFlowError = "checkout_flow_error", e.CheckoutPaymentTaxCalculation = "checkout_payment_tax_calculation", e.CheckoutPaymentFormImpression = "checkout_payment_form_impression", e.CheckoutPaymentFormError = "checkout_payment_form_error", e.CheckoutPaymentFormDismiss = "checkout_payment_form_dismiss", e.CheckoutPaymentFormSubmit = "checkout_payment_form_submit", e.CheckoutPaymentFormGatewayError = "checkout_payment_form_gateway_error", e.CheckoutPurchaseSuccessfulImpression = "checkout_purchase_successful_impression", e.CheckoutPurchaseSuccessfulDismiss = "checkout_purchase_successful_dismiss", e))(zr || {}), Gs = /* @__PURE__ */ ((e) => (e.tax_collection_disabled = "tax_collection_disabled", e.invalid_tax_location = "invalid_tax_location", e.rate_limit_exceeded = "rate_limit_exceeded", e.missing_required_permission = "missing_required_permission", e.invalid_origin_address = "invalid_origin_address", e.taxes_not_active = "taxes_not_active", e.unexpected_gateway_error = "unexpected_gateway_error", e))(Gs || {});
|
|
12358
|
+
function wd(e) {
|
|
12359
12359
|
const r = {};
|
|
12360
12360
|
for (const t in e)
|
|
12361
12361
|
if (Object.prototype.hasOwnProperty.call(e, t)) {
|
|
12362
12362
|
const n = t.replace(/([A-Z])/g, "_$1").toLowerCase(), a = e[t];
|
|
12363
|
-
a && typeof a == "object" && !Array.isArray(a) ? r[n] =
|
|
12363
|
+
a && typeof a == "object" && !Array.isArray(a) ? r[n] = wd(
|
|
12364
12364
|
a
|
|
12365
12365
|
) : r[n] = a;
|
|
12366
12366
|
}
|
|
12367
12367
|
return r;
|
|
12368
12368
|
}
|
|
12369
|
-
function
|
|
12369
|
+
function _c(e) {
|
|
12370
12370
|
for (let r = 0; r < e.length; r++)
|
|
12371
12371
|
e[r] = Math.floor(Math.random() * 256);
|
|
12372
12372
|
}
|
|
@@ -12376,11 +12376,11 @@ function Fa() {
|
|
|
12376
12376
|
return e.randomUUID();
|
|
12377
12377
|
const r = new Uint8Array(16);
|
|
12378
12378
|
try {
|
|
12379
|
-
e && e.getRandomValues ? e.getRandomValues(r) :
|
|
12379
|
+
e && e.getRandomValues ? e.getRandomValues(r) : _c(r);
|
|
12380
12380
|
} catch (n) {
|
|
12381
12381
|
console.log(
|
|
12382
12382
|
`Error using crypto.getRandomValues(), falling back to Math.random. + ${n}`
|
|
12383
|
-
),
|
|
12383
|
+
), _c(r);
|
|
12384
12384
|
}
|
|
12385
12385
|
r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128;
|
|
12386
12386
|
const t = Array.from(r).map((n) => n.toString(16).padStart(2, "0"));
|
|
@@ -12402,7 +12402,7 @@ class Yy {
|
|
|
12402
12402
|
this.id = Fa(), this.timestampMs = Date.now(), this.data = r;
|
|
12403
12403
|
}
|
|
12404
12404
|
toJSON() {
|
|
12405
|
-
return
|
|
12405
|
+
return wd({
|
|
12406
12406
|
id: this.id,
|
|
12407
12407
|
timestampMs: this.timestampMs,
|
|
12408
12408
|
type: this.EVENT_TYPE,
|
|
@@ -12419,7 +12419,7 @@ class Yy {
|
|
|
12419
12419
|
});
|
|
12420
12420
|
}
|
|
12421
12421
|
}
|
|
12422
|
-
function
|
|
12422
|
+
function Pd({
|
|
12423
12423
|
errorCode: e,
|
|
12424
12424
|
errorMessage: r,
|
|
12425
12425
|
mode: t = Tr
|
|
@@ -12477,7 +12477,7 @@ function ts({
|
|
|
12477
12477
|
}
|
|
12478
12478
|
};
|
|
12479
12479
|
}
|
|
12480
|
-
function
|
|
12480
|
+
function gc({
|
|
12481
12481
|
redemptionInfo: e,
|
|
12482
12482
|
mode: r = Tr
|
|
12483
12483
|
}) {
|
|
@@ -12490,7 +12490,7 @@ function _c({
|
|
|
12490
12490
|
}
|
|
12491
12491
|
};
|
|
12492
12492
|
}
|
|
12493
|
-
function
|
|
12493
|
+
function xd(e) {
|
|
12494
12494
|
return {
|
|
12495
12495
|
eventName: zr.CheckoutSessionEnd,
|
|
12496
12496
|
properties: {
|
|
@@ -12499,7 +12499,7 @@ function Pd(e) {
|
|
|
12499
12499
|
}
|
|
12500
12500
|
};
|
|
12501
12501
|
}
|
|
12502
|
-
function
|
|
12502
|
+
function fc({
|
|
12503
12503
|
errorCode: e,
|
|
12504
12504
|
errorMessage: r,
|
|
12505
12505
|
mode: t = Tr
|
|
@@ -12514,12 +12514,12 @@ function gc({
|
|
|
12514
12514
|
}
|
|
12515
12515
|
};
|
|
12516
12516
|
}
|
|
12517
|
-
function
|
|
12517
|
+
function Ed({
|
|
12518
12518
|
taxCalculation: e,
|
|
12519
12519
|
taxCustomerDetails: r,
|
|
12520
12520
|
mode: t = Tr
|
|
12521
12521
|
}) {
|
|
12522
|
-
const n = e.failed_reason ===
|
|
12522
|
+
const n = e.failed_reason === Gs.tax_collection_disabled ? "disabled" : e.failed_reason ? "failed" : e.tax_amount_in_micros === 0 ? "not-taxed" : "taxed", a = r === null ? "auto" : "form";
|
|
12523
12523
|
return {
|
|
12524
12524
|
eventName: zr.CheckoutPaymentTaxCalculation,
|
|
12525
12525
|
properties: {
|
|
@@ -12531,7 +12531,7 @@ function xd({
|
|
|
12531
12531
|
}
|
|
12532
12532
|
};
|
|
12533
12533
|
}
|
|
12534
|
-
function
|
|
12534
|
+
function Sd({
|
|
12535
12535
|
selectedPaymentMethod: e,
|
|
12536
12536
|
mode: r = Tr
|
|
12537
12537
|
}) {
|
|
@@ -12617,7 +12617,7 @@ const Jy = {
|
|
|
12617
12617
|
-o-animation: svelte-6k29hu-rotating 2s ease-in-out infinite;
|
|
12618
12618
|
animation: svelte-6k29hu-rotating 2s ease-in-out infinite;}`
|
|
12619
12619
|
};
|
|
12620
|
-
function
|
|
12620
|
+
function Td(e, r) {
|
|
12621
12621
|
ie(e, Jy);
|
|
12622
12622
|
const t = K(r, "color", 3, "var(--rc-color-accent)");
|
|
12623
12623
|
var n = Zy(), a = z(n);
|
|
@@ -12631,16 +12631,16 @@ const eb = {
|
|
|
12631
12631
|
@container layout-query-container (width >= 768px) {.rcb-modal-loader.svelte-rhstd0 {align-items:flex-start;margin-top:calc(var(--rc-spacing-gapXXLarge-desktop) * 6);}
|
|
12632
12632
|
}`
|
|
12633
12633
|
};
|
|
12634
|
-
function
|
|
12634
|
+
function Id(e) {
|
|
12635
12635
|
ie(e, eb);
|
|
12636
12636
|
var r = Qy(), t = z(r);
|
|
12637
|
-
|
|
12637
|
+
Td(t, {}), S(e, r);
|
|
12638
12638
|
}
|
|
12639
12639
|
function rb(e, r) {
|
|
12640
12640
|
var d, p;
|
|
12641
12641
|
re(r, !0);
|
|
12642
12642
|
const t = () => ve(o, "$translator", n), [n, a] = Ne(), o = Be(vr), s = Be(Ja), l = /* @__PURE__ */ y(() => r.priceBreakdown ? t().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency) : null), c = (p = (d = r.subscriptionOption) == null ? void 0 : d.trial) == null ? void 0 : p.period, u = /* @__PURE__ */ y(() => c ? t().translatePeriod(c.number, c.unit) : null);
|
|
12643
|
-
|
|
12643
|
+
kd(e, {
|
|
12644
12644
|
get disabled() {
|
|
12645
12645
|
return r.disabled;
|
|
12646
12646
|
},
|
|
@@ -12705,19 +12705,19 @@ function rb(e, r) {
|
|
|
12705
12705
|
$$slots: { default: !0 }
|
|
12706
12706
|
}), te(), a();
|
|
12707
12707
|
}
|
|
12708
|
-
var
|
|
12708
|
+
var Dd = "basil", tb = function(r) {
|
|
12709
12709
|
return r === 3 ? "v3" : r;
|
|
12710
|
-
},
|
|
12710
|
+
}, Cd = "https://js.stripe.com", nb = "".concat(Cd, "/").concat(Dd, "/stripe.js"), ab = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, ob = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;
|
|
12711
12711
|
var ib = function(r) {
|
|
12712
12712
|
return ab.test(r) || ob.test(r);
|
|
12713
12713
|
}, sb = function() {
|
|
12714
|
-
for (var r = document.querySelectorAll('script[src^="'.concat(
|
|
12714
|
+
for (var r = document.querySelectorAll('script[src^="'.concat(Cd, '"]')), t = 0; t < r.length; t++) {
|
|
12715
12715
|
var n = r[t];
|
|
12716
12716
|
if (ib(n.src))
|
|
12717
12717
|
return n;
|
|
12718
12718
|
}
|
|
12719
12719
|
return null;
|
|
12720
|
-
},
|
|
12720
|
+
}, mc = function(r) {
|
|
12721
12721
|
var t = "", n = document.createElement("script");
|
|
12722
12722
|
n.src = "".concat(nb).concat(t);
|
|
12723
12723
|
var a = document.head || document.body;
|
|
@@ -12754,10 +12754,10 @@ var ib = function(r) {
|
|
|
12754
12754
|
var a = sb();
|
|
12755
12755
|
if (!(a && r)) {
|
|
12756
12756
|
if (!a)
|
|
12757
|
-
a =
|
|
12757
|
+
a = mc(r);
|
|
12758
12758
|
else if (a && co !== null && lo !== null) {
|
|
12759
12759
|
var o;
|
|
12760
|
-
a.removeEventListener("load", co), a.removeEventListener("error", lo), (o = a.parentNode) === null || o === void 0 || o.removeChild(a), a =
|
|
12760
|
+
a.removeEventListener("load", co), a.removeEventListener("error", lo), (o = a.parentNode) === null || o === void 0 || o.removeChild(a), a = mc(r);
|
|
12761
12761
|
}
|
|
12762
12762
|
}
|
|
12763
12763
|
co = ub(t, n), lo = cb(n), a.addEventListener("load", co), a.addEventListener("error", lo);
|
|
@@ -12771,26 +12771,26 @@ var ib = function(r) {
|
|
|
12771
12771
|
}, pb = function(r, t, n) {
|
|
12772
12772
|
if (r === null)
|
|
12773
12773
|
return null;
|
|
12774
|
-
var a = t[0], o = a.match(/^pk_test/), s = tb(r.version), l =
|
|
12774
|
+
var a = t[0], o = a.match(/^pk_test/), s = tb(r.version), l = Dd;
|
|
12775
12775
|
o && s !== l && console.warn("Stripe.js@".concat(s, " was loaded on the page, but @stripe/stripe-js@").concat("7.3.1", " expected Stripe.js@").concat(l, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
12776
12776
|
var c = r.apply(void 0, t);
|
|
12777
12777
|
return lb(c, n), c;
|
|
12778
|
-
}, ka,
|
|
12778
|
+
}, ka, Ad = !1, qd = function() {
|
|
12779
12779
|
return ka || (ka = db(null).catch(function(r) {
|
|
12780
12780
|
return ka = null, Promise.reject(r);
|
|
12781
12781
|
}), ka);
|
|
12782
12782
|
};
|
|
12783
12783
|
Promise.resolve().then(function() {
|
|
12784
|
-
return
|
|
12784
|
+
return qd();
|
|
12785
12785
|
}).catch(function(e) {
|
|
12786
|
-
|
|
12786
|
+
Ad || console.warn(e);
|
|
12787
12787
|
});
|
|
12788
12788
|
var _b = function() {
|
|
12789
12789
|
for (var r = arguments.length, t = new Array(r), n = 0; n < r; n++)
|
|
12790
12790
|
t[n] = arguments[n];
|
|
12791
|
-
|
|
12791
|
+
Ad = !0;
|
|
12792
12792
|
var a = Date.now();
|
|
12793
|
-
return
|
|
12793
|
+
return qd().then(function(o) {
|
|
12794
12794
|
return pb(o, t, a);
|
|
12795
12795
|
});
|
|
12796
12796
|
};
|
|
@@ -12842,24 +12842,24 @@ const gb = {
|
|
|
12842
12842
|
"grey-ui-light": "rgba(0,0,0,0.1)",
|
|
12843
12843
|
"input-background": "white",
|
|
12844
12844
|
background: "#ffffff"
|
|
12845
|
-
},
|
|
12845
|
+
}, Ks = {
|
|
12846
12846
|
error: "color_error",
|
|
12847
12847
|
focus: "color_accent",
|
|
12848
12848
|
accent: "color_accent",
|
|
12849
12849
|
primary: "color_buttons_primary"
|
|
12850
12850
|
}, hb = {
|
|
12851
|
-
...
|
|
12851
|
+
...Ks,
|
|
12852
12852
|
"input-background": "color_form_bg",
|
|
12853
12853
|
background: "color_form_bg"
|
|
12854
12854
|
}, yb = {
|
|
12855
|
-
...
|
|
12855
|
+
...Ks,
|
|
12856
12856
|
"input-background": "color_product_info_bg",
|
|
12857
12857
|
background: "color_product_info_bg"
|
|
12858
12858
|
}, bb = {
|
|
12859
|
-
...
|
|
12859
|
+
...Ks,
|
|
12860
12860
|
"input-background": "color_page_bg",
|
|
12861
12861
|
background: "color_page_bg"
|
|
12862
|
-
},
|
|
12862
|
+
}, zd = {
|
|
12863
12863
|
"input-border-radius": "4px",
|
|
12864
12864
|
"input-button-border-radius": "8px"
|
|
12865
12865
|
}, vb = {
|
|
@@ -12868,7 +12868,7 @@ const gb = {
|
|
|
12868
12868
|
}, kb = {
|
|
12869
12869
|
"input-border-radius": "12px",
|
|
12870
12870
|
"input-button-border-radius": "9999px"
|
|
12871
|
-
},
|
|
12871
|
+
}, hc = zd, Ma = "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", Fd = "BrandCustomFont", yc = `${Fd}, ${Ma}`, ft = {
|
|
12872
12872
|
regular: "400",
|
|
12873
12873
|
medium: "500",
|
|
12874
12874
|
semibold: "600"
|
|
@@ -13033,7 +13033,7 @@ const gb = {
|
|
|
13033
13033
|
r: parseInt(e[1], 16),
|
|
13034
13034
|
g: parseInt(e[2], 16),
|
|
13035
13035
|
b: parseInt(e[3], 16)
|
|
13036
|
-
} : null,
|
|
13036
|
+
} : null, $s = ({
|
|
13037
13037
|
r: e,
|
|
13038
13038
|
g: r,
|
|
13039
13039
|
b: t,
|
|
@@ -13041,8 +13041,8 @@ const gb = {
|
|
|
13041
13041
|
}) => {
|
|
13042
13042
|
const a = (s) => (s = s / 255, s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4));
|
|
13043
13043
|
return 0.2126 * a(e) + 0.7152 * a(r) + 0.0722 * a(t) > n;
|
|
13044
|
-
},
|
|
13045
|
-
const t =
|
|
13044
|
+
}, Xs = 0.37, wb = (e, r = Xs) => {
|
|
13045
|
+
const t = $s({ ...e, luminanceThreshold: r }) ? "0,0,0" : "255,255,255";
|
|
13046
13046
|
return {
|
|
13047
13047
|
"grey-text-dark": `rgb(${t})`,
|
|
13048
13048
|
"grey-text-light": `rgba(${t},0.70)`,
|
|
@@ -13054,20 +13054,20 @@ function Pb(e, r, t) {
|
|
|
13054
13054
|
const n = Na(e) || { r: 0, g: 0, b: 0 }, a = Na(r) || { r: 255, g: 255, b: 255 }, o = Math.round(a.r * t + n.r * (1 - t)), s = Math.round(a.g * t + n.g * (1 - t)), l = Math.round(a.b * t + n.b * (1 - t));
|
|
13055
13055
|
return `#${Ci(o)}${Ci(s)}${Ci(l)}`;
|
|
13056
13056
|
}
|
|
13057
|
-
function
|
|
13057
|
+
function bc(e, r) {
|
|
13058
13058
|
const t = { r: 255, g: 255, b: 255 }, n = Math.max(0, Math.min(1, r));
|
|
13059
13059
|
let a = e, o = Na(e) || t;
|
|
13060
13060
|
(isNaN(o.r) || isNaN(o.g) || isNaN(o.b)) && (o = t, a = "#FFFFFF");
|
|
13061
|
-
const l =
|
|
13061
|
+
const l = $s({
|
|
13062
13062
|
...o,
|
|
13063
|
-
luminanceThreshold:
|
|
13063
|
+
luminanceThreshold: Xs
|
|
13064
13064
|
}) ? "#000000" : "#FFFFFF";
|
|
13065
13065
|
return Pb(a, l, n);
|
|
13066
13066
|
}
|
|
13067
13067
|
function Ci(e) {
|
|
13068
13068
|
return e.toString(16).padStart(2, "0").toUpperCase();
|
|
13069
13069
|
}
|
|
13070
|
-
const xb = (e, r, t, n =
|
|
13070
|
+
const xb = (e, r, t, n = Xs) => {
|
|
13071
13071
|
const a = {
|
|
13072
13072
|
"grey-text-dark": t["grey-text-dark"],
|
|
13073
13073
|
"grey-text-light": t["grey-text-light"],
|
|
@@ -13081,12 +13081,12 @@ const xb = (e, r, t, n = $s) => {
|
|
|
13081
13081
|
}
|
|
13082
13082
|
if (r != null && r.startsWith("#")) {
|
|
13083
13083
|
const o = Na(r);
|
|
13084
|
-
o !== null && (a["primary-text"] =
|
|
13084
|
+
o !== null && (a["primary-text"] = $s({ ...o, luminanceThreshold: n }) ? "black" : "white");
|
|
13085
13085
|
}
|
|
13086
13086
|
return a;
|
|
13087
13087
|
}, Eb = (e) => ({
|
|
13088
|
-
"primary-hover":
|
|
13089
|
-
"primary-pressed":
|
|
13088
|
+
"primary-hover": bc(e, 0.1),
|
|
13089
|
+
"primary-pressed": bc(e, 0.15)
|
|
13090
13090
|
}), Sb = (e, r) => e || r, Tb = (e, r, t) => {
|
|
13091
13091
|
const n = Object.entries(e).map(([a, o]) => [
|
|
13092
13092
|
a,
|
|
@@ -13096,7 +13096,7 @@ const xb = (e, r, t, n = $s) => {
|
|
|
13096
13096
|
)
|
|
13097
13097
|
]);
|
|
13098
13098
|
return Object.fromEntries(n);
|
|
13099
|
-
},
|
|
13099
|
+
}, Zs = (e, r, t) => {
|
|
13100
13100
|
const n = Tb(
|
|
13101
13101
|
e,
|
|
13102
13102
|
r,
|
|
@@ -13112,32 +13112,32 @@ const xb = (e, r, t, n = $s) => {
|
|
|
13112
13112
|
),
|
|
13113
13113
|
...Eb(n.primary)
|
|
13114
13114
|
} : { ...r };
|
|
13115
|
-
}, Ib = (e) =>
|
|
13115
|
+
}, Ib = (e) => Zs(
|
|
13116
13116
|
yb,
|
|
13117
13117
|
fb,
|
|
13118
13118
|
e
|
|
13119
|
-
),
|
|
13119
|
+
), Md = (e) => Zs(
|
|
13120
13120
|
hb,
|
|
13121
13121
|
gb,
|
|
13122
13122
|
e
|
|
13123
|
-
), Db = (e) =>
|
|
13123
|
+
), Db = (e) => Zs(
|
|
13124
13124
|
bb,
|
|
13125
13125
|
mb,
|
|
13126
13126
|
e
|
|
13127
13127
|
), $o = (e) => {
|
|
13128
13128
|
if (!e)
|
|
13129
|
-
return
|
|
13129
|
+
return hc;
|
|
13130
13130
|
switch (e.shapes) {
|
|
13131
13131
|
case "rounded":
|
|
13132
|
-
return
|
|
13132
|
+
return zd;
|
|
13133
13133
|
case "rectangle":
|
|
13134
13134
|
return vb;
|
|
13135
13135
|
case "pill":
|
|
13136
13136
|
return kb;
|
|
13137
13137
|
default:
|
|
13138
|
-
return
|
|
13138
|
+
return hc;
|
|
13139
13139
|
}
|
|
13140
|
-
}, ia = (e = "", r) => r.map(([t, n]) => `--rc-${e}-${t}: ${n}`).join("; "),
|
|
13140
|
+
}, ia = (e = "", r) => r.map(([t, n]) => `--rc-${e}-${t}: ${n}`).join("; "), Nd = (e) => {
|
|
13141
13141
|
const r = ia(
|
|
13142
13142
|
"color",
|
|
13143
13143
|
Object.entries(Ib(e))
|
|
@@ -13149,7 +13149,7 @@ const xb = (e, r, t, n = $s) => {
|
|
|
13149
13149
|
}, Cb = (e) => {
|
|
13150
13150
|
const r = ia(
|
|
13151
13151
|
"color",
|
|
13152
|
-
Object.entries(
|
|
13152
|
+
Object.entries(Md(e))
|
|
13153
13153
|
), t = ia(
|
|
13154
13154
|
"shape",
|
|
13155
13155
|
Object.entries($o(e))
|
|
@@ -13165,7 +13165,7 @@ const xb = (e, r, t, n = $s) => {
|
|
|
13165
13165
|
);
|
|
13166
13166
|
return [r, t].join("; ");
|
|
13167
13167
|
}, qb = (e = "", r, t) => Object.entries(r).flatMap(([n, { desktop: a, mobile: o }]) => {
|
|
13168
|
-
const s = `normal normal ${a.fontWeight} ${a.fontSize}/${a.lineHeight} ${Ma}`, l = `normal normal ${o.fontWeight} ${o.fontSize}/${o.lineHeight} ${Ma}`, c = `normal normal ${t == null ? void 0 : t.desktop.font_weight} ${t == null ? void 0 : t.desktop.font_size} ${
|
|
13168
|
+
const s = `normal normal ${a.fontWeight} ${a.fontSize}/${a.lineHeight} ${Ma}`, l = `normal normal ${o.fontWeight} ${o.fontSize}/${o.lineHeight} ${Ma}`, c = `normal normal ${t == null ? void 0 : t.desktop.font_weight} ${t == null ? void 0 : t.desktop.font_size} ${yc}`, u = `normal normal ${t == null ? void 0 : t.mobile.font_weight} ${t == null ? void 0 : t.mobile.font_size} ${yc}`;
|
|
13169
13169
|
return [
|
|
13170
13170
|
`--rc-${e}-${n}-desktop: ${s}`,
|
|
13171
13171
|
`--rc-${e}-${n}-mobile: ${l}`,
|
|
@@ -13244,13 +13244,13 @@ class sa {
|
|
|
13244
13244
|
return $o(this.brandingAppearance);
|
|
13245
13245
|
}
|
|
13246
13246
|
get formColors() {
|
|
13247
|
-
return
|
|
13247
|
+
return Md(this.brandingAppearance);
|
|
13248
13248
|
}
|
|
13249
13249
|
get formStyleVars() {
|
|
13250
13250
|
return Cb(this.brandingAppearance);
|
|
13251
13251
|
}
|
|
13252
13252
|
get productInfoStyleVars() {
|
|
13253
|
-
return
|
|
13253
|
+
return Nd(this.brandingAppearance);
|
|
13254
13254
|
}
|
|
13255
13255
|
get pageStyleVars() {
|
|
13256
13256
|
return Ab(this.brandingAppearance);
|
|
@@ -13607,7 +13607,7 @@ function Ub(e, r) {
|
|
|
13607
13607
|
}), S(e, n);
|
|
13608
13608
|
}
|
|
13609
13609
|
var Rb = /* @__PURE__ */ B("<div></div> <!>", 1);
|
|
13610
|
-
function
|
|
13610
|
+
function jd(e, r) {
|
|
13611
13611
|
re(r, !0);
|
|
13612
13612
|
const t = () => ve(s, "$translator", n), [n, a] = Ne(), o = K(r, "hideCheckoutSeparator", 3, !1), s = Be(vr);
|
|
13613
13613
|
let l = null, c = /* @__PURE__ */ X(!1);
|
|
@@ -13736,7 +13736,7 @@ function Wb(e, r) {
|
|
|
13736
13736
|
{
|
|
13737
13737
|
var I = (A) => {
|
|
13738
13738
|
var j = Vb(), M = z(j);
|
|
13739
|
-
|
|
13739
|
+
jd(M, {
|
|
13740
13740
|
get elements() {
|
|
13741
13741
|
return s();
|
|
13742
13742
|
},
|
|
@@ -13798,7 +13798,7 @@ const Kb = {
|
|
|
13798
13798
|
hash: "svelte-a15aei",
|
|
13799
13799
|
code: ".rcb-ui-asset-icon.svelte-a15aei {display:inline-block;width:1em;height:1em;}"
|
|
13800
13800
|
};
|
|
13801
|
-
function
|
|
13801
|
+
function Od(e) {
|
|
13802
13802
|
ie(e, Kb);
|
|
13803
13803
|
var r = Gb(), t = z(r);
|
|
13804
13804
|
ln(t, () => Yb), S(e, r);
|
|
@@ -13814,7 +13814,7 @@ const Xb = {
|
|
|
13814
13814
|
function Zb(e, r) {
|
|
13815
13815
|
ie(e, Xb);
|
|
13816
13816
|
var t = $b(), n = z(t), a = z(n);
|
|
13817
|
-
|
|
13817
|
+
Od(a);
|
|
13818
13818
|
var o = R(n, 2), s = z(o), l = z(s);
|
|
13819
13819
|
we(l, {
|
|
13820
13820
|
size: "body-small",
|
|
@@ -13853,7 +13853,7 @@ function Jb(e, r) {
|
|
|
13853
13853
|
}
|
|
13854
13854
|
te(), a();
|
|
13855
13855
|
}
|
|
13856
|
-
function
|
|
13856
|
+
function Js(e, r) {
|
|
13857
13857
|
var n, a, o;
|
|
13858
13858
|
if (e.productType === "subscription") {
|
|
13859
13859
|
const s = r, l = ((n = s.discount) == null ? void 0 : n.price) ?? ((a = s.introPrice) == null ? void 0 : a.price) ?? s.base.price;
|
|
@@ -13865,7 +13865,7 @@ function Zs(e, r) {
|
|
|
13865
13865
|
}
|
|
13866
13866
|
return e.price;
|
|
13867
13867
|
}
|
|
13868
|
-
class
|
|
13868
|
+
class vc extends Error {
|
|
13869
13869
|
}
|
|
13870
13870
|
var Qb = /* @__PURE__ */ B('<div class="rc-loading svelte-zfhfge"><!></div>'), ev = /* @__PURE__ */ B('<div class="rc-checkout-container svelte-zfhfge"><!> <!> <form data-testid="payment-form" class="rc-checkout-form svelte-zfhfge"><div><div class="rc-elements-container svelte-zfhfge"><!></div> <div><!></div> <div><!> <div class="rc-checkout-secure-container svelte-zfhfge"><!></div></div></div></form></div>');
|
|
13871
13871
|
const rv = {
|
|
@@ -13881,10 +13881,10 @@ const rv = {
|
|
|
13881
13881
|
}form.svelte-zfhfge {display:flex;flex-direction:column;flex-grow:1;}`
|
|
13882
13882
|
};
|
|
13883
13883
|
function tv(e, r) {
|
|
13884
|
-
var Fn,
|
|
13884
|
+
var Fn, al, ol;
|
|
13885
13885
|
re(r, !0), ie(e, rv);
|
|
13886
|
-
const t = () => ve(s, "$translator", n), [n, a] = Ne(), o = Be(Ko), s = Be(vr), l = (Fn = r.productDetails.subscriptionOptions) == null ? void 0 : Fn[r.purchaseOption.id], c =
|
|
13887
|
-
let u = /* @__PURE__ */ X($e(((
|
|
13886
|
+
const t = () => ve(s, "$translator", n), [n, a] = Ne(), o = Be(Ko), s = Be(vr), l = (Fn = r.productDetails.subscriptionOptions) == null ? void 0 : Fn[r.purchaseOption.id], c = Js(r.productDetails, r.purchaseOption);
|
|
13887
|
+
let u = /* @__PURE__ */ X($e(((al = r.defaultPriceBreakdown) == null ? void 0 : al.taxCalculationStatus) ?? ((ol = r.brandingInfo) != null && ol.gateway_tax_collection_enabled ? "unavailable" : "disabled"))), d = /* @__PURE__ */ X(null), p = /* @__PURE__ */ X(null), _ = /* @__PURE__ */ X($e(c.amountMicros)), g = /* @__PURE__ */ X($e(c.amountMicros)), f = /* @__PURE__ */ y(() => r.defaultPriceBreakdown ?? {
|
|
13888
13888
|
currency: c.currency,
|
|
13889
13889
|
totalAmountInMicros: i(g),
|
|
13890
13890
|
totalExcludingTaxInMicros: i(_),
|
|
@@ -13901,8 +13901,8 @@ function tv(e, r) {
|
|
|
13901
13901
|
});
|
|
13902
13902
|
async function C($, Ee) {
|
|
13903
13903
|
await r.purchaseOperationHelper.checkoutCalculateTax($ == null ? void 0 : $.countryCode, $ == null ? void 0 : $.postalCode, Ee).then((qe) => {
|
|
13904
|
-
const Yt =
|
|
13905
|
-
o.trackSDKEvent(Yt), Ee == null || Ee.throwIfAborted(), qe.failed_reason ? !$ && qe.failed_reason ===
|
|
13904
|
+
const Yt = Ed({ taxCalculation: qe, taxCustomerDetails: $ });
|
|
13905
|
+
o.trackSDKEvent(Yt), Ee == null || Ee.throwIfAborted(), qe.failed_reason ? !$ && qe.failed_reason === Gs.invalid_tax_location ? L(u, "pending") : L(u, "disabled") : L(u, "calculated"), L(d, qe.tax_amount_in_micros, !0), L(_, qe.total_excluding_tax_in_micros, !0), L(g, qe.total_amount_in_micros, !0), L(p, qe.tax_breakdown, !0), L(w, qe.gateway_params.elements_configuration, !0), L(k, $, !0);
|
|
13906
13906
|
});
|
|
13907
13907
|
}
|
|
13908
13908
|
function q() {
|
|
@@ -13919,7 +13919,7 @@ function tv(e, r) {
|
|
|
13919
13919
|
}
|
|
13920
13920
|
async function W($) {
|
|
13921
13921
|
if ($ == null || $.preventDefault(), i(A)) return;
|
|
13922
|
-
const Ee =
|
|
13922
|
+
const Ee = Sd({ selectedPaymentMethod: i(x) ?? null });
|
|
13923
13923
|
o.trackSDKEvent(Ee), L(A, !0), await ue() ? r.onContinue() : L(A, !1);
|
|
13924
13924
|
}
|
|
13925
13925
|
async function J($, Ee) {
|
|
@@ -13970,7 +13970,7 @@ function tv(e, r) {
|
|
|
13970
13970
|
function ge($) {
|
|
13971
13971
|
return () => {
|
|
13972
13972
|
if (i(g) !== $)
|
|
13973
|
-
throw new
|
|
13973
|
+
throw new vc();
|
|
13974
13974
|
};
|
|
13975
13975
|
}
|
|
13976
13976
|
async function Te() {
|
|
@@ -13982,7 +13982,7 @@ function tv(e, r) {
|
|
|
13982
13982
|
!i(m) || !i(h) || !i(I) || await Ge.confirmElements(i(m), i(h), i(I), $);
|
|
13983
13983
|
}
|
|
13984
13984
|
async function ye($) {
|
|
13985
|
-
if ($ instanceof
|
|
13985
|
+
if ($ instanceof vc)
|
|
13986
13986
|
L(u, "miss-match");
|
|
13987
13987
|
else if ($ instanceof ae) {
|
|
13988
13988
|
const Ee = Gy({
|
|
@@ -14009,7 +14009,7 @@ function tv(e, r) {
|
|
|
14009
14009
|
{
|
|
14010
14010
|
var Me = ($) => {
|
|
14011
14011
|
var Ee = Qb(), qe = z(Ee);
|
|
14012
|
-
|
|
14012
|
+
Id(qe), S($, Ee);
|
|
14013
14013
|
};
|
|
14014
14014
|
Y(de, ($) => {
|
|
14015
14015
|
i(M) === "loading" && $(Me);
|
|
@@ -14020,13 +14020,13 @@ function tv(e, r) {
|
|
|
14020
14020
|
var ne = ($) => {
|
|
14021
14021
|
{
|
|
14022
14022
|
const Ee = (dn) => {
|
|
14023
|
-
|
|
14023
|
+
Hu(dn);
|
|
14024
14024
|
}, qe = (dn) => {
|
|
14025
14025
|
var fa = De();
|
|
14026
14026
|
U(() => fe(fa, i(P))), S(dn, fa);
|
|
14027
14027
|
};
|
|
14028
14028
|
let Yt = /* @__PURE__ */ y(() => t().translate(Z.ErrorButtonTryAgain));
|
|
14029
|
-
|
|
14029
|
+
Ys($, {
|
|
14030
14030
|
title: null,
|
|
14031
14031
|
type: "error",
|
|
14032
14032
|
get closeButtonTitle() {
|
|
@@ -14141,13 +14141,13 @@ function nv(e) {
|
|
|
14141
14141
|
return e != null;
|
|
14142
14142
|
}
|
|
14143
14143
|
var av = /* @__PURE__ */ ((e) => (e.Unknown = "unknown", e.Custom = "custom", e.Lifetime = "$rc_lifetime", e.Annual = "$rc_annual", e.SixMonth = "$rc_six_month", e.ThreeMonth = "$rc_three_month", e.TwoMonth = "$rc_two_month", e.Monthly = "$rc_monthly", e.Weekly = "$rc_weekly", e))(av || {}), It = /* @__PURE__ */ ((e) => (e.Subscription = "subscription", e.Consumable = "consumable", e.NonConsumable = "non_consumable", e))(It || {});
|
|
14144
|
-
const
|
|
14144
|
+
const is = (e, r) => ({
|
|
14145
14145
|
amount: e / 1e4,
|
|
14146
14146
|
amountMicros: e,
|
|
14147
14147
|
currency: r,
|
|
14148
14148
|
formattedPrice: tn(e, r)
|
|
14149
|
-
}), Ld = (e) =>
|
|
14150
|
-
const r = e.period_duration, t = e.price ? Ld(e.price) : null, n = r ?
|
|
14149
|
+
}), Ld = (e) => is(e.amount_micros, e.currency), Ai = (e) => {
|
|
14150
|
+
const r = e.period_duration, t = e.price ? Ld(e.price) : null, n = r ? Ns(r) : null;
|
|
14151
14151
|
let a = null, o = null, s = null;
|
|
14152
14152
|
if (t !== null && n !== null) {
|
|
14153
14153
|
const l = ov(n), c = 1e4, u = Math.round(t.amountMicros * l.toWeek);
|
|
@@ -14186,15 +14186,21 @@ const Od = (e, r) => ({
|
|
|
14186
14186
|
let n = e.time_window ?? null;
|
|
14187
14187
|
(t === "one_time" || t === "forever") && n === null && r !== null && (n = r);
|
|
14188
14188
|
let a = null, o = null;
|
|
14189
|
-
const s = n ?
|
|
14189
|
+
const s = n ? Ns(n) : null;
|
|
14190
14190
|
return s && (a = { number: 1, unit: s.unit }, o = t === "forever" ? 0 : s.number), {
|
|
14191
14191
|
timeWindow: e.time_window,
|
|
14192
14192
|
durationMode: t,
|
|
14193
|
-
price:
|
|
14193
|
+
price: is(e.amount_micros, e.currency),
|
|
14194
14194
|
name: e.name,
|
|
14195
14195
|
period: a,
|
|
14196
14196
|
cycleCount: o ?? 0,
|
|
14197
|
-
periodDuration: n
|
|
14197
|
+
periodDuration: n,
|
|
14198
|
+
discountType: e.discount_type,
|
|
14199
|
+
percentage: e.percentage ?? null,
|
|
14200
|
+
fixedAmount: e.fixed_amount_micros != null ? is(
|
|
14201
|
+
e.fixed_amount_micros,
|
|
14202
|
+
e.currency
|
|
14203
|
+
) : null
|
|
14198
14204
|
};
|
|
14199
14205
|
};
|
|
14200
14206
|
function ov(e) {
|
|
@@ -14460,11 +14466,11 @@ function Cv(e) {
|
|
|
14460
14466
|
}
|
|
14461
14467
|
const Av = {
|
|
14462
14468
|
cart: kv,
|
|
14463
|
-
error:
|
|
14469
|
+
error: Hu,
|
|
14464
14470
|
lock: Ev,
|
|
14465
14471
|
success: Ud,
|
|
14466
14472
|
back: yv,
|
|
14467
|
-
info:
|
|
14473
|
+
info: Od,
|
|
14468
14474
|
close: Cv,
|
|
14469
14475
|
"chevron-left": uo,
|
|
14470
14476
|
"chevron-right": uo,
|
|
@@ -14586,7 +14592,7 @@ function Rd(e, r) {
|
|
|
14586
14592
|
U((I) => fe(T, ` ${I ?? ""} `), [p]), S(h, v);
|
|
14587
14593
|
};
|
|
14588
14594
|
let k = /* @__PURE__ */ y(d), m = /* @__PURE__ */ y(u);
|
|
14589
|
-
|
|
14595
|
+
Ys(e, {
|
|
14590
14596
|
get title() {
|
|
14591
14597
|
return i(k);
|
|
14592
14598
|
},
|
|
@@ -14623,7 +14629,7 @@ function Vd(e, r) {
|
|
|
14623
14629
|
Ud(w);
|
|
14624
14630
|
};
|
|
14625
14631
|
let g = /* @__PURE__ */ Lt(() => (We(s()), t(), We(Z), Ue(() => s() ?? t().translate(Z.SuccessPagePurchaseSuccessful)))), f = /* @__PURE__ */ Lt(() => (We(l()), t(), We(Z), Ue(() => l() ?? t().translate(Z.SuccessPageButtonClose))));
|
|
14626
|
-
|
|
14632
|
+
Ys(e, {
|
|
14627
14633
|
type: "success",
|
|
14628
14634
|
get title() {
|
|
14629
14635
|
return i(g);
|
|
@@ -14642,7 +14648,7 @@ function Vd(e, r) {
|
|
|
14642
14648
|
te(), a();
|
|
14643
14649
|
}
|
|
14644
14650
|
function Nv(e) {
|
|
14645
|
-
|
|
14651
|
+
Id(e);
|
|
14646
14652
|
}
|
|
14647
14653
|
var jv = /* @__PURE__ */ B('<div class="rcb-pricing-dropdown svelte-v5skdw"><div class="rcb-pricing-dropdown-header svelte-v5skdw" tabindex="0" role="button"><!> <span class="rcb-pricing-dropdown-toggle svelte-v5skdw"><!></span></div> <div><div class="rcb-pricing-dropdown-content-inner svelte-v5skdw"><!></div></div></div>');
|
|
14648
14654
|
const Ov = {
|
|
@@ -14730,15 +14736,15 @@ function Rv(e, r) {
|
|
|
14730
14736
|
var n = Bv(), a = z(n);
|
|
14731
14737
|
Xe(a, () => t() ?? ze), S(e, n);
|
|
14732
14738
|
}
|
|
14733
|
-
const
|
|
14734
|
-
function
|
|
14739
|
+
const Qs = 7, Xo = 30, el = 365, Zo = 4.33, rl = 52, Jo = 12;
|
|
14740
|
+
function ss(e) {
|
|
14735
14741
|
switch (e.unit) {
|
|
14736
14742
|
case ce.Year:
|
|
14737
|
-
return e.number *
|
|
14743
|
+
return e.number * el;
|
|
14738
14744
|
case ce.Month:
|
|
14739
14745
|
return e.number * Xo;
|
|
14740
14746
|
case ce.Week:
|
|
14741
|
-
return e.number *
|
|
14747
|
+
return e.number * Qs;
|
|
14742
14748
|
case ce.Day:
|
|
14743
14749
|
return e.number;
|
|
14744
14750
|
}
|
|
@@ -14746,7 +14752,7 @@ function is(e) {
|
|
|
14746
14752
|
function Vv(e) {
|
|
14747
14753
|
switch (e.unit) {
|
|
14748
14754
|
case ce.Year:
|
|
14749
|
-
return e.number *
|
|
14755
|
+
return e.number * rl;
|
|
14750
14756
|
case ce.Month:
|
|
14751
14757
|
return e.number * Zo;
|
|
14752
14758
|
case ce.Week:
|
|
@@ -14776,7 +14782,7 @@ function Wv(e) {
|
|
|
14776
14782
|
return 0;
|
|
14777
14783
|
}
|
|
14778
14784
|
}
|
|
14779
|
-
function
|
|
14785
|
+
function ls(e, r) {
|
|
14780
14786
|
const { unit: t, number: n } = e;
|
|
14781
14787
|
return {
|
|
14782
14788
|
period: r.translatePeriodUnit(t, { noWhitespace: !0 }) ?? "",
|
|
@@ -14785,7 +14791,7 @@ function ss(e, r) {
|
|
|
14785
14791
|
short: !0
|
|
14786
14792
|
}) ?? "",
|
|
14787
14793
|
periodWithUnit: r.translatePeriod(n, t) ?? "",
|
|
14788
|
-
periodInDays:
|
|
14794
|
+
periodInDays: ss(e).toString(),
|
|
14789
14795
|
periodInWeeks: Vv(e).toString(),
|
|
14790
14796
|
periodInMonths: Hv(e).toString(),
|
|
14791
14797
|
periodInYears: Wv(e).toString()
|
|
@@ -15058,7 +15064,7 @@ function ek(e, r) {
|
|
|
15058
15064
|
const m = (T = r.basePhase) == null ? void 0 : T.period, h = r.promotionalPricePhase.period;
|
|
15059
15065
|
if (!m || !h || r.promotionalPricePhase.cycleCount <= 0)
|
|
15060
15066
|
return "";
|
|
15061
|
-
const v =
|
|
15067
|
+
const v = ss(m), b = ss({
|
|
15062
15068
|
number: h.number * r.promotionalPricePhase.cycleCount,
|
|
15063
15069
|
unit: h.unit
|
|
15064
15070
|
});
|
|
@@ -15453,7 +15459,7 @@ function Hd(e, r) {
|
|
|
15453
15459
|
return (g = n()) != null && g.font_url ? xa(n().font_url) : null;
|
|
15454
15460
|
}), u = async (g) => {
|
|
15455
15461
|
try {
|
|
15456
|
-
const f = new FontFace(
|
|
15462
|
+
const f = new FontFace(Fd, `url(${g})`);
|
|
15457
15463
|
await f.load(), document.fonts.add(f);
|
|
15458
15464
|
} catch (f) {
|
|
15459
15465
|
console.error("Failed to set brand font:", f);
|
|
@@ -15491,7 +15497,7 @@ function wk(e) {
|
|
|
15491
15497
|
const r = e - 1;
|
|
15492
15498
|
return r * r * r + 1;
|
|
15493
15499
|
}
|
|
15494
|
-
function
|
|
15500
|
+
function kc(e) {
|
|
15495
15501
|
const r = typeof e == "string" && e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
|
|
15496
15502
|
return r ? [parseFloat(r[1]), r[2] || "px"] : [
|
|
15497
15503
|
/** @type {number} */
|
|
@@ -15509,7 +15515,7 @@ function Pk(e, { delay: r = 0, duration: t = 400, easing: n = kk } = {}) {
|
|
|
15509
15515
|
};
|
|
15510
15516
|
}
|
|
15511
15517
|
function xk(e, { delay: r = 0, duration: t = 400, easing: n = wk, x: a = 0, y: o = 0, opacity: s = 0 } = {}) {
|
|
15512
|
-
const l = getComputedStyle(e), c = +l.opacity, u = l.transform === "none" ? "" : l.transform, d = c * (1 - s), [p, _] =
|
|
15518
|
+
const l = getComputedStyle(e), c = +l.opacity, u = l.transform === "none" ? "" : l.transform, d = c * (1 - s), [p, _] = kc(a), [g, f] = kc(o);
|
|
15513
15519
|
return {
|
|
15514
15520
|
delay: r,
|
|
15515
15521
|
duration: t,
|
|
@@ -15536,7 +15542,7 @@ function Wd(e, r) {
|
|
|
15536
15542
|
var n = Ek(), a = z(n), o = z(a), s = z(o);
|
|
15537
15543
|
Xe(s, () => r.children ?? ze), U(() => {
|
|
15538
15544
|
er(n, 1, `layout-wrapper-outer ${t}`, "svelte-13h5jq9"), er(o, 1, `layout-content ${t}`, "svelte-13h5jq9");
|
|
15539
|
-
}),
|
|
15545
|
+
}), qu(3, o, () => Pk, () => ({ duration: 500, delay: 50 })), S(e, n);
|
|
15540
15546
|
}
|
|
15541
15547
|
var Tk = /* @__PURE__ */ B('<div class="navbar-body svelte-191m2u3"><!></div>'), Ik = /* @__PURE__ */ B('<div class="navbar-header svelte-191m2u3"><!></div> <!>', 1), Dk = /* @__PURE__ */ B('<div class="rcb-ui-navbar svelte-191m2u3"><!></div>');
|
|
15542
15548
|
const Ck = {
|
|
@@ -15581,7 +15587,7 @@ function Yd(e, r) {
|
|
|
15581
15587
|
ie(e, zk);
|
|
15582
15588
|
var t = qk(), n = z(t);
|
|
15583
15589
|
ja(n, { name: "close" }), Br("click", t, function(a) {
|
|
15584
|
-
|
|
15590
|
+
Bu.call(this, r, a);
|
|
15585
15591
|
}), S(e, t);
|
|
15586
15592
|
}
|
|
15587
15593
|
const Fk = `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
|
|
@@ -15660,7 +15666,7 @@ function Gd(e, r) {
|
|
|
15660
15666
|
var h = R(k, 2);
|
|
15661
15667
|
Yd(h, { $$events: { click: s } }), U(() => {
|
|
15662
15668
|
_ = er(p, 1, "rcb-ui-sandbox-banner svelte-bwwvt4", null, _, { isInElement: n() }), Pe(p, t());
|
|
15663
|
-
}),
|
|
15669
|
+
}), qu(2, p, () => xk, () => ({ y: -100, duration: 300 })), S(d, p);
|
|
15664
15670
|
};
|
|
15665
15671
|
Y(c, (d) => {
|
|
15666
15672
|
i(o) && d(u);
|
|
@@ -15690,7 +15696,7 @@ function Kk(e, r) {
|
|
|
15690
15696
|
re(r, !0);
|
|
15691
15697
|
const t = /* @__PURE__ */ y(() => {
|
|
15692
15698
|
var n;
|
|
15693
|
-
return
|
|
15699
|
+
return Nd((n = r.brandingInfo) == null ? void 0 : n.appearance) ?? "";
|
|
15694
15700
|
});
|
|
15695
15701
|
{
|
|
15696
15702
|
let n = /* @__PURE__ */ y(() => {
|
|
@@ -15850,7 +15856,7 @@ function tw(e, r) {
|
|
|
15850
15856
|
let t = K(r, "disabled", 3, !1);
|
|
15851
15857
|
var n = ew(), a = z(n);
|
|
15852
15858
|
ja(a, { name: "back" }), U(() => n.disabled = t()), Br("click", n, function(o) {
|
|
15853
|
-
|
|
15859
|
+
Bu.call(this, r, o);
|
|
15854
15860
|
}), S(e, n);
|
|
15855
15861
|
}
|
|
15856
15862
|
var nw = /* @__PURE__ */ B('<source type="image/webp" class="rcb-app-icon svelte-7clux6"/>'), aw = /* @__PURE__ */ B('<picture class="rcb-app-icon svelte-7clux6"><!> <img class="rcb-app-icon svelte-7clux6" alt="App icon"/></picture>');
|
|
@@ -15974,7 +15980,7 @@ function uw(e, r) {
|
|
|
15974
15980
|
var dw = /* @__PURE__ */ B("<!> <!> <!> <!>", 1);
|
|
15975
15981
|
function pw(e, r) {
|
|
15976
15982
|
re(r, !0);
|
|
15977
|
-
const t = K(r, "onClose", 3, void 0), n =
|
|
15983
|
+
const t = K(r, "onClose", 3, void 0), n = Js(r.productDetails, r.purchaseOptionToUse);
|
|
15978
15984
|
let a = /* @__PURE__ */ X($e(r.defaultPriceBreakdown ?? {
|
|
15979
15985
|
currency: n.currency,
|
|
15980
15986
|
totalAmountInMicros: n.amountMicros,
|
|
@@ -16209,7 +16215,7 @@ function fw(e, r) {
|
|
|
16209
16215
|
}
|
|
16210
16216
|
L(u, "success");
|
|
16211
16217
|
}, b = (x) => {
|
|
16212
|
-
const P =
|
|
16218
|
+
const P = Pd({
|
|
16213
16219
|
errorCode: x.getErrorCode().toString(),
|
|
16214
16220
|
errorMessage: x.message
|
|
16215
16221
|
});
|
|
@@ -16269,7 +16275,7 @@ function fw(e, r) {
|
|
|
16269
16275
|
}
|
|
16270
16276
|
te();
|
|
16271
16277
|
}
|
|
16272
|
-
function
|
|
16278
|
+
function wc(e, r, t, n, a, o, s) {
|
|
16273
16279
|
try {
|
|
16274
16280
|
var l = e[o](s), c = l.value;
|
|
16275
16281
|
} catch (u) {
|
|
@@ -16283,10 +16289,10 @@ function mw(e) {
|
|
|
16283
16289
|
return new Promise(function(n, a) {
|
|
16284
16290
|
var o = e.apply(r, t);
|
|
16285
16291
|
function s(c) {
|
|
16286
|
-
|
|
16292
|
+
wc(o, n, a, s, l, "next", c);
|
|
16287
16293
|
}
|
|
16288
16294
|
function l(c) {
|
|
16289
|
-
|
|
16295
|
+
wc(o, n, a, s, l, "throw", c);
|
|
16290
16296
|
}
|
|
16291
16297
|
s(void 0);
|
|
16292
16298
|
});
|
|
@@ -16300,7 +16306,7 @@ function hw(e, r, t) {
|
|
|
16300
16306
|
writable: !0
|
|
16301
16307
|
}) : e[r] = t, e;
|
|
16302
16308
|
}
|
|
16303
|
-
function
|
|
16309
|
+
function Pc(e, r) {
|
|
16304
16310
|
var t = Object.keys(e);
|
|
16305
16311
|
if (Object.getOwnPropertySymbols) {
|
|
16306
16312
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -16310,12 +16316,12 @@ function wc(e, r) {
|
|
|
16310
16316
|
}
|
|
16311
16317
|
return t;
|
|
16312
16318
|
}
|
|
16313
|
-
function
|
|
16319
|
+
function cs(e) {
|
|
16314
16320
|
for (var r = 1; r < arguments.length; r++) {
|
|
16315
16321
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
16316
|
-
r % 2 ?
|
|
16322
|
+
r % 2 ? Pc(Object(t), !0).forEach(function(n) {
|
|
16317
16323
|
hw(e, n, t[n]);
|
|
16318
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
16324
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Pc(Object(t)).forEach(function(n) {
|
|
16319
16325
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
16320
16326
|
});
|
|
16321
16327
|
}
|
|
@@ -16339,8 +16345,8 @@ function yw(e, r) {
|
|
|
16339
16345
|
}
|
|
16340
16346
|
return t;
|
|
16341
16347
|
}
|
|
16342
|
-
function
|
|
16343
|
-
|
|
16348
|
+
function us() {
|
|
16349
|
+
us = function() {
|
|
16344
16350
|
return r;
|
|
16345
16351
|
};
|
|
16346
16352
|
var e, r = {}, t = Object.prototype, n = t.hasOwnProperty, a = Object.defineProperty || function(C, q, N) {
|
|
@@ -16703,7 +16709,7 @@ function zw(e, r) {
|
|
|
16703
16709
|
e.version;
|
|
16704
16710
|
var n = Zd(e, Aw);
|
|
16705
16711
|
try {
|
|
16706
|
-
t && r.Environment.set(t), r.Initialized ? r.Update(
|
|
16712
|
+
t && r.Environment.set(t), r.Initialized ? r.Update(cs({}, n)) : r.Initialize(cs({}, n));
|
|
16707
16713
|
} catch (a) {
|
|
16708
16714
|
console.warn("[Paddle] Paddle Initialization failed. Please check the inputs", a);
|
|
16709
16715
|
}
|
|
@@ -16713,7 +16719,7 @@ function Fw(e, r) {
|
|
|
16713
16719
|
e.version;
|
|
16714
16720
|
var n = Zd(e, qw);
|
|
16715
16721
|
try {
|
|
16716
|
-
t && r.Environment.set(t), r.Setup(
|
|
16722
|
+
t && r.Environment.set(t), r.Setup(cs({}, n));
|
|
16717
16723
|
} catch (a) {
|
|
16718
16724
|
console.warn("[Paddle] Paddle Initialization failed. Please check the inputs", a);
|
|
16719
16725
|
}
|
|
@@ -16722,29 +16728,29 @@ var Da;
|
|
|
16722
16728
|
(function(e) {
|
|
16723
16729
|
e.CHECKOUT_LOADED = "checkout.loaded", e.CHECKOUT_CLOSED = "checkout.closed", e.CHECKOUT_UPDATED = "checkout.updated", e.CHECKOUT_COMPLETED = "checkout.completed", e.CHECKOUT_ERROR = "checkout.error", e.CHECKOUT_FAILED = "checkout.failed", e.CHECKOUT_ITEMS_UPDATED = "checkout.items.updated", e.CHECKOUT_ITEMS_REMOVED = "checkout.items.removed", e.CHECKOUT_CUSTOMER_CREATED = "checkout.customer.created", e.CHECKOUT_CUSTOMER_UPDATED = "checkout.customer.updated", e.CHECKOUT_CUSTOMER_REMOVED = "checkout.customer.removed", e.CHECKOUT_PAYMENT_SELECTED = "checkout.payment.selected", e.CHECKOUT_PAYMENT_INITIATED = "checkout.payment.initiated", e.CHECKOUT_PAYMENT_FAILED = "checkout.payment.failed", e.CHECKOUT_DISCOUNT_APPLIED = "checkout.discount.applied", e.CHECKOUT_DISCOUNT_REMOVED = "checkout.discount.removed", e.CHECKOUT_UPSELL_CANCELED = "checkout.upsell.canceled";
|
|
16724
16730
|
})(Da || (Da = {}));
|
|
16725
|
-
var Pc;
|
|
16726
|
-
(function(e) {
|
|
16727
|
-
e.DAY = "day", e.WEEK = "week", e.MONTH = "month", e.YEAR = "year";
|
|
16728
|
-
})(Pc || (Pc = {}));
|
|
16729
16731
|
var xc;
|
|
16730
16732
|
(function(e) {
|
|
16731
|
-
e.
|
|
16733
|
+
e.DAY = "day", e.WEEK = "week", e.MONTH = "month", e.YEAR = "year";
|
|
16732
16734
|
})(xc || (xc = {}));
|
|
16733
16735
|
var Ec;
|
|
16734
16736
|
(function(e) {
|
|
16735
|
-
e.
|
|
16737
|
+
e.ALIPAY = "alipay", e.APPLE_PAY = "apple-pay", e.CARD = "card", e.GOOGLE_PAY = "google-pay", e.IDEAL = "ideal", e.PAYPAL = "paypal", e.WIRE_TRANSFER = "wire-transfer", e.NONE = "none";
|
|
16736
16738
|
})(Ec || (Ec = {}));
|
|
16737
16739
|
var Sc;
|
|
16738
16740
|
(function(e) {
|
|
16739
|
-
e.
|
|
16741
|
+
e.AMERICAN_EXPRESS = "american_express", e.DINERS_CLUB = "diners_club", e.DISCOVER = "discover", e.JCB = "jcb", e.MADA = "mada", e.MAESTRO = "maestro", e.MASTER_CARD = "mastercard", e.UNION_PAY = "union_pay", e.VISA = "visa", e.UNKNOWN = "unknown";
|
|
16740
16742
|
})(Sc || (Sc = {}));
|
|
16743
|
+
var Tc;
|
|
16744
|
+
(function(e) {
|
|
16745
|
+
e.DRAFT = "draft", e.READY = "ready", e.COMPLETED = "completed", e.BILLED = "billed", e.canceled = "canceled", e.PAST_DUE = "past_due";
|
|
16746
|
+
})(Tc || (Tc = {}));
|
|
16741
16747
|
function Mw(e) {
|
|
16742
|
-
return
|
|
16748
|
+
return ds.apply(this, arguments);
|
|
16743
16749
|
}
|
|
16744
|
-
function
|
|
16745
|
-
return
|
|
16750
|
+
function ds() {
|
|
16751
|
+
return ds = mw(/* @__PURE__ */ us().mark(function e(r) {
|
|
16746
16752
|
var t, n;
|
|
16747
|
-
return
|
|
16753
|
+
return us().wrap(function(o) {
|
|
16748
16754
|
for (; ; ) switch (o.prev = o.next) {
|
|
16749
16755
|
case 0:
|
|
16750
16756
|
return t = (r == null ? void 0 : r.version) || kw, o.next = 3, Dw(t);
|
|
@@ -16761,7 +16767,7 @@ function us() {
|
|
|
16761
16767
|
return o.stop();
|
|
16762
16768
|
}
|
|
16763
16769
|
}, e);
|
|
16764
|
-
})),
|
|
16770
|
+
})), ds.apply(this, arguments);
|
|
16765
16771
|
}
|
|
16766
16772
|
class Nw {
|
|
16767
16773
|
constructor(r, t, n = 10) {
|
|
@@ -16939,7 +16945,7 @@ class Nw {
|
|
|
16939
16945
|
return;
|
|
16940
16946
|
}
|
|
16941
16947
|
t({
|
|
16942
|
-
redemptionInfo:
|
|
16948
|
+
redemptionInfo: Uu(s),
|
|
16943
16949
|
operationSessionId: r,
|
|
16944
16950
|
storeTransactionIdentifier: l ?? "",
|
|
16945
16951
|
productIdentifier: c,
|
|
@@ -16947,7 +16953,7 @@ class Nw {
|
|
|
16947
16953
|
});
|
|
16948
16954
|
return;
|
|
16949
16955
|
case jt.Failed:
|
|
16950
|
-
|
|
16956
|
+
Ru(
|
|
16951
16957
|
s.operation.error,
|
|
16952
16958
|
n
|
|
16953
16959
|
);
|
|
@@ -17129,12 +17135,12 @@ function Vw(e, r) {
|
|
|
17129
17135
|
{
|
|
17130
17136
|
var d = (_) => {
|
|
17131
17137
|
var g = Uw(), f = z(g);
|
|
17132
|
-
|
|
17138
|
+
Ws(f, {
|
|
17133
17139
|
gap: "medium",
|
|
17134
17140
|
align: "center",
|
|
17135
17141
|
children: (w, k) => {
|
|
17136
17142
|
var m = Bw(), h = ee(m);
|
|
17137
|
-
|
|
17143
|
+
Td(h, { color: "var(--rc-color-grey-text-dark)" });
|
|
17138
17144
|
var v = R(h, 2);
|
|
17139
17145
|
we(v, {
|
|
17140
17146
|
size: "heading-md",
|
|
@@ -17418,7 +17424,7 @@ function Kw(e, r, t) {
|
|
|
17418
17424
|
function vt(e) {
|
|
17419
17425
|
return e == null ? null : new Date(e);
|
|
17420
17426
|
}
|
|
17421
|
-
function
|
|
17427
|
+
function ps(e) {
|
|
17422
17428
|
const r = Xw(e), t = e.subscriber, n = Jw(
|
|
17423
17429
|
t.non_subscriptions
|
|
17424
17430
|
), a = Object.entries(e.subscriber.non_subscriptions).flatMap(
|
|
@@ -17533,7 +17539,7 @@ function Jw(e) {
|
|
|
17533
17539
|
}
|
|
17534
17540
|
return r;
|
|
17535
17541
|
}
|
|
17536
|
-
const ep = "1.26.
|
|
17542
|
+
const ep = "1.26.4", Qw = "https://api.revenuecat.com", eP = "https://e.revenue.cat";
|
|
17537
17543
|
var Ao;
|
|
17538
17544
|
(function(e) {
|
|
17539
17545
|
e[e.CONTINUE = 100] = "CONTINUE", e[e.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", e[e.PROCESSING = 102] = "PROCESSING", e[e.EARLY_HINTS = 103] = "EARLY_HINTS", e[e.OK = 200] = "OK", e[e.CREATED = 201] = "CREATED", e[e.ACCEPTED = 202] = "ACCEPTED", e[e.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", e[e.NO_CONTENT = 204] = "NO_CONTENT", e[e.RESET_CONTENT = 205] = "RESET_CONTENT", e[e.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", e[e.MULTI_STATUS = 207] = "MULTI_STATUS", e[e.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", e[e.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", e[e.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", e[e.SEE_OTHER = 303] = "SEE_OTHER", e[e.NOT_MODIFIED = 304] = "NOT_MODIFIED", e[e.USE_PROXY = 305] = "USE_PROXY", e[e.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", e[e.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", e[e.BAD_REQUEST = 400] = "BAD_REQUEST", e[e.UNAUTHORIZED = 401] = "UNAUTHORIZED", e[e.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", e[e.FORBIDDEN = 403] = "FORBIDDEN", e[e.NOT_FOUND = 404] = "NOT_FOUND", e[e.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", e[e.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", e[e.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", e[e.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", e[e.CONFLICT = 409] = "CONFLICT", e[e.GONE = 410] = "GONE", e[e.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", e[e.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", e[e.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", e[e.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", e[e.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", e[e.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", e[e.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", e[e.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", e[e.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", e[e.METHOD_FAILURE = 420] = "METHOD_FAILURE", e[e.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", e[e.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", e[e.LOCKED = 423] = "LOCKED", e[e.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", e[e.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", e[e.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", e[e.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", e[e.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", e[e.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", e[e.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", e[e.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", e[e.BAD_GATEWAY = 502] = "BAD_GATEWAY", e[e.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", e[e.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", e[e.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", e[e.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", e[e.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
@@ -17542,7 +17548,7 @@ const rP = /^rcb_[a-zA-Z0-9_.-]+$/, tP = /^pdl_[a-zA-Z0-9_.-]+$/, nP = /^test_[a
|
|
|
17542
17548
|
function qo(e) {
|
|
17543
17549
|
return e ? e.startsWith("rcb_sb_") : !1;
|
|
17544
17550
|
}
|
|
17545
|
-
function
|
|
17551
|
+
function _s(e) {
|
|
17546
17552
|
return e ? rP.test(e) : !1;
|
|
17547
17553
|
}
|
|
17548
17554
|
function rp(e) {
|
|
@@ -17632,7 +17638,7 @@ function dp(e, r, t) {
|
|
|
17632
17638
|
[sp]: ep,
|
|
17633
17639
|
[up]: `${qo(e)}`
|
|
17634
17640
|
};
|
|
17635
|
-
const a =
|
|
17641
|
+
const a = ms.getPlatformInfo();
|
|
17636
17642
|
if (a) {
|
|
17637
17643
|
const o = {
|
|
17638
17644
|
[lp]: a.flavor,
|
|
@@ -17656,17 +17662,18 @@ class sP {
|
|
|
17656
17662
|
}
|
|
17657
17663
|
}
|
|
17658
17664
|
class lP {
|
|
17659
|
-
constructor(r, t, n) {
|
|
17665
|
+
constructor(r, t, n, a) {
|
|
17660
17666
|
V(this, "method", "GET");
|
|
17661
17667
|
V(this, "name", "getProducts");
|
|
17662
17668
|
V(this, "appUserId");
|
|
17663
17669
|
V(this, "productIds");
|
|
17664
17670
|
V(this, "currency");
|
|
17665
|
-
this
|
|
17671
|
+
V(this, "discountCode");
|
|
17672
|
+
this.appUserId = r, this.productIds = t, this.currency = n, this.discountCode = a;
|
|
17666
17673
|
}
|
|
17667
17674
|
urlPath() {
|
|
17668
|
-
const r = encodeURIComponent(this.appUserId), t = this.productIds.map(encodeURIComponent).join("&id="), n = this.currency ? `¤cy=${this.currency}` : "";
|
|
17669
|
-
return `${qn}/subscribers/${r}/products?
|
|
17675
|
+
const r = encodeURIComponent(this.appUserId), t = this.productIds.map(encodeURIComponent).join("&id="), n = this.currency ? `¤cy=${this.currency}` : "", a = this.discountCode ? `&discount_code=${encodeURIComponent(this.discountCode)}` : "";
|
|
17676
|
+
return `${qn}/subscribers/${r}/products?id=${t}${n}${a}`;
|
|
17670
17677
|
}
|
|
17671
17678
|
}
|
|
17672
17679
|
class cP {
|
|
@@ -17783,9 +17790,9 @@ class bP {
|
|
|
17783
17790
|
return `${Qa}/${r}/virtual_currencies`;
|
|
17784
17791
|
}
|
|
17785
17792
|
}
|
|
17786
|
-
const
|
|
17793
|
+
const gs = {};
|
|
17787
17794
|
class vP {
|
|
17788
|
-
constructor(r, t =
|
|
17795
|
+
constructor(r, t = gs, n) {
|
|
17789
17796
|
V(this, "API_KEY");
|
|
17790
17797
|
V(this, "httpConfig");
|
|
17791
17798
|
V(this, "isSandbox");
|
|
@@ -17827,9 +17834,9 @@ class vP {
|
|
|
17827
17834
|
was_created: o
|
|
17828
17835
|
};
|
|
17829
17836
|
}
|
|
17830
|
-
async getProducts(r, t, n) {
|
|
17837
|
+
async getProducts(r, t, n, a) {
|
|
17831
17838
|
return await Yr(
|
|
17832
|
-
new lP(r, t, n),
|
|
17839
|
+
new lP(r, t, n, a),
|
|
17833
17840
|
{
|
|
17834
17841
|
apiKey: this.API_KEY,
|
|
17835
17842
|
httpConfig: this.httpConfig
|
|
@@ -17972,7 +17979,7 @@ class vP {
|
|
|
17972
17979
|
}
|
|
17973
17980
|
}
|
|
17974
17981
|
function kP(e) {
|
|
17975
|
-
if (!(
|
|
17982
|
+
if (!(_s(e) || _n(e) || rp(e)))
|
|
17976
17983
|
throw new Oe(
|
|
17977
17984
|
Ye.InvalidCredentialsError,
|
|
17978
17985
|
"Invalid API key. Use your Web Billing API key."
|
|
@@ -18015,7 +18022,7 @@ function PP(e) {
|
|
|
18015
18022
|
}
|
|
18016
18023
|
}
|
|
18017
18024
|
var pp = /* @__PURE__ */ ((e) => (e.Current = "current", e))(pp || {});
|
|
18018
|
-
function
|
|
18025
|
+
function Ic(e, r) {
|
|
18019
18026
|
async function t(...n) {
|
|
18020
18027
|
return await this.preload(), await e.call(this, ...n);
|
|
18021
18028
|
}
|
|
@@ -18111,13 +18118,13 @@ const SP = 1000001;
|
|
|
18111
18118
|
function TP(e, r, t) {
|
|
18112
18119
|
const n = t.formatPrice(e.amountMicros, e.currency);
|
|
18113
18120
|
return r ? r.unit === ce.Year ? t.formatPrice(
|
|
18114
|
-
e.amountMicros /
|
|
18121
|
+
e.amountMicros / el / r.number,
|
|
18115
18122
|
e.currency
|
|
18116
18123
|
) : r.unit === ce.Month ? t.formatPrice(
|
|
18117
18124
|
e.amountMicros / Xo / r.number,
|
|
18118
18125
|
e.currency
|
|
18119
18126
|
) : r.unit === ce.Week ? t.formatPrice(
|
|
18120
|
-
e.amountMicros /
|
|
18127
|
+
e.amountMicros / Qs / r.number,
|
|
18121
18128
|
e.currency
|
|
18122
18129
|
) : r.unit === ce.Day ? t.formatPrice(
|
|
18123
18130
|
e.amountMicros / r.number,
|
|
@@ -18127,7 +18134,7 @@ function TP(e, r, t) {
|
|
|
18127
18134
|
function IP(e, r, t) {
|
|
18128
18135
|
const n = t.formatPrice(e.amountMicros, e.currency);
|
|
18129
18136
|
return r ? r.unit === ce.Year ? t.formatPrice(
|
|
18130
|
-
e.amountMicros /
|
|
18137
|
+
e.amountMicros / rl / r.number,
|
|
18131
18138
|
e.currency
|
|
18132
18139
|
) : r.unit === ce.Month ? t.formatPrice(
|
|
18133
18140
|
e.amountMicros / Zo / r.number,
|
|
@@ -18136,7 +18143,7 @@ function IP(e, r, t) {
|
|
|
18136
18143
|
e.amountMicros / r.number,
|
|
18137
18144
|
e.currency
|
|
18138
18145
|
) : r.unit === ce.Day ? t.formatPrice(
|
|
18139
|
-
e.amountMicros *
|
|
18146
|
+
e.amountMicros * Qs / r.number,
|
|
18140
18147
|
e.currency
|
|
18141
18148
|
) : n : n;
|
|
18142
18149
|
}
|
|
@@ -18167,10 +18174,10 @@ function CP(e, r, t) {
|
|
|
18167
18174
|
e.amountMicros * Jo / r.number,
|
|
18168
18175
|
e.currency
|
|
18169
18176
|
) : r.unit === ce.Week ? t.formatPrice(
|
|
18170
|
-
e.amountMicros *
|
|
18177
|
+
e.amountMicros * rl / r.number,
|
|
18171
18178
|
e.currency
|
|
18172
18179
|
) : r.unit === ce.Day ? t.formatPrice(
|
|
18173
|
-
e.amountMicros *
|
|
18180
|
+
e.amountMicros * el / r.number,
|
|
18174
18181
|
e.currency
|
|
18175
18182
|
) : n : n;
|
|
18176
18183
|
}
|
|
@@ -18213,14 +18220,14 @@ function qP(e, r, t) {
|
|
|
18213
18220
|
), t["product.offer_price_per_day"] = l.pricePerDay, t["product.offer_price_per_week"] = l.pricePerWeek, t["product.offer_price_per_month"] = l.pricePerMonth, t["product.offer_price_per_year"] = l.pricePerYear;
|
|
18214
18221
|
}
|
|
18215
18222
|
if (o !== null) {
|
|
18216
|
-
const l =
|
|
18223
|
+
const l = ls(o, r);
|
|
18217
18224
|
t["product.offer_period"] = l.period, t["product.offer_period_abbreviated"] = l.periodAbbreviated, t["product.offer_period_with_unit"] = l.periodWithUnit, t["product.offer_period_in_days"] = l.periodInDays, t["product.offer_period_in_weeks"] = l.periodInWeeks, t["product.offer_period_in_months"] = l.periodInMonths, t["product.offer_period_in_years"] = l.periodInYears, t["product.offer_end_date"] = AP(o, r);
|
|
18218
18225
|
}
|
|
18219
18226
|
if (a !== null && (a.price !== null && (t["product.secondary_offer_price"] = r.formatPrice(
|
|
18220
18227
|
a.price.amountMicros,
|
|
18221
18228
|
a.price.currency
|
|
18222
18229
|
)), a.period !== null)) {
|
|
18223
|
-
const l =
|
|
18230
|
+
const l = ls(a.period, r);
|
|
18224
18231
|
t["product.secondary_offer_period"] = l.period, t["product.secondary_offer_period_abbreviated"] = l.periodAbbreviated;
|
|
18225
18232
|
}
|
|
18226
18233
|
}
|
|
@@ -18232,16 +18239,16 @@ function zP(e, r, t) {
|
|
|
18232
18239
|
n.currency
|
|
18233
18240
|
));
|
|
18234
18241
|
}
|
|
18235
|
-
function
|
|
18242
|
+
function Dc(e, r = {}) {
|
|
18236
18243
|
var a;
|
|
18237
18244
|
if (r.translator)
|
|
18238
|
-
return
|
|
18245
|
+
return Ac(e, r.translator);
|
|
18239
18246
|
const t = ((a = e.paywallComponents) == null ? void 0 : a.default_locale) || Ar, n = new xn(
|
|
18240
18247
|
r.customTranslations ?? {},
|
|
18241
18248
|
r.selectedLocale ?? t,
|
|
18242
18249
|
r.fallbackLocale ?? t
|
|
18243
18250
|
);
|
|
18244
|
-
return
|
|
18251
|
+
return Ac(e, n);
|
|
18245
18252
|
}
|
|
18246
18253
|
function zo(e) {
|
|
18247
18254
|
var a;
|
|
@@ -18270,7 +18277,7 @@ function FP(e, r) {
|
|
|
18270
18277
|
function MP(e, r) {
|
|
18271
18278
|
return e !== It.Subscription && r != null;
|
|
18272
18279
|
}
|
|
18273
|
-
function
|
|
18280
|
+
function Cc(e, r, t, n = !1) {
|
|
18274
18281
|
return t.translate(Z.PaywallVariablesPricePerPeriod, {
|
|
18275
18282
|
formattedPrice: e,
|
|
18276
18283
|
period: r.base.period ? r.base.period.number === 1 ? t.translatePeriodUnit(r.base.period.unit, {
|
|
@@ -18286,7 +18293,7 @@ function Dc(e, r, t, n = !1) {
|
|
|
18286
18293
|
) : ""
|
|
18287
18294
|
});
|
|
18288
18295
|
}
|
|
18289
|
-
function
|
|
18296
|
+
function Ac(e, r) {
|
|
18290
18297
|
const t = e.availablePackages, n = t.reduce((a, o) => {
|
|
18291
18298
|
const s = zo(a), l = zo(o);
|
|
18292
18299
|
return s > l ? a : o;
|
|
@@ -18342,11 +18349,11 @@ function NP(e, r, t) {
|
|
|
18342
18349
|
"product.relative_discount": ""
|
|
18343
18350
|
};
|
|
18344
18351
|
if (FP(l, s)) {
|
|
18345
|
-
c["product.price_per_period_abbreviated"] =
|
|
18352
|
+
c["product.price_per_period_abbreviated"] = Cc(
|
|
18346
18353
|
o,
|
|
18347
18354
|
s,
|
|
18348
18355
|
t
|
|
18349
|
-
), c["product.price_per_period"] =
|
|
18356
|
+
), c["product.price_per_period"] = Cc(
|
|
18350
18357
|
o,
|
|
18351
18358
|
s,
|
|
18352
18359
|
t,
|
|
@@ -18358,7 +18365,7 @@ function NP(e, r, t) {
|
|
|
18358
18365
|
t
|
|
18359
18366
|
);
|
|
18360
18367
|
if (c["product.price_per_day"] = d.pricePerDay, c["product.price_per_week"] = d.pricePerWeek, c["product.price_per_month"] = d.pricePerMonth, c["product.price_per_year"] = d.pricePerYear, u) {
|
|
18361
|
-
const f =
|
|
18368
|
+
const f = ls(u, t);
|
|
18362
18369
|
c["product.period"] = f.period, c["product.period_abbreviated"] = f.periodAbbreviated, c["product.period_with_unit"] = f.periodWithUnit, c["product.period_in_days"] = f.periodInDays, c["product.period_in_weeks"] = f.periodInWeeks, c["product.period_in_months"] = f.periodInMonths, c["product.period_in_years"] = f.periodInYears, c["product.periodly"] = t.translatePeriodFrequency(
|
|
18363
18370
|
u.number,
|
|
18364
18371
|
u.unit
|
|
@@ -18398,7 +18405,7 @@ function OP(e, r) {
|
|
|
18398
18405
|
}
|
|
18399
18406
|
}
|
|
18400
18407
|
}
|
|
18401
|
-
function
|
|
18408
|
+
function tl(e, ...r) {
|
|
18402
18409
|
if (r.length === 0)
|
|
18403
18410
|
return e;
|
|
18404
18411
|
let t = 0, n = e.replace(
|
|
@@ -18421,7 +18428,7 @@ function BP(e) {
|
|
|
18421
18428
|
}
|
|
18422
18429
|
var UP = class extends Error {
|
|
18423
18430
|
constructor(e, ...r) {
|
|
18424
|
-
super(e), this.message = e, this.name = "Invariant Violation", this.message =
|
|
18431
|
+
super(e), this.message = e, this.name = "Invariant Violation", this.message = tl(e, ...r), BP(this);
|
|
18425
18432
|
}
|
|
18426
18433
|
}, mp = (e, r, ...t) => {
|
|
18427
18434
|
if (!e)
|
|
@@ -18429,7 +18436,7 @@ var UP = class extends Error {
|
|
|
18429
18436
|
};
|
|
18430
18437
|
mp.as = (e, r, t, ...n) => {
|
|
18431
18438
|
if (!r) {
|
|
18432
|
-
const a = n.length === 0 ? t :
|
|
18439
|
+
const a = n.length === 0 ? t : tl(t, ...n);
|
|
18433
18440
|
let o;
|
|
18434
18441
|
try {
|
|
18435
18442
|
o = Reflect.construct(e, [
|
|
@@ -18442,18 +18449,18 @@ mp.as = (e, r, t, ...n) => {
|
|
|
18442
18449
|
}
|
|
18443
18450
|
};
|
|
18444
18451
|
const RP = "[MSW]";
|
|
18445
|
-
function
|
|
18446
|
-
const t =
|
|
18452
|
+
function nl(e, ...r) {
|
|
18453
|
+
const t = tl(e, ...r);
|
|
18447
18454
|
return `${RP} ${t}`;
|
|
18448
18455
|
}
|
|
18449
18456
|
function VP(e, ...r) {
|
|
18450
|
-
console.warn(
|
|
18457
|
+
console.warn(nl(e, ...r));
|
|
18451
18458
|
}
|
|
18452
18459
|
function HP(e, ...r) {
|
|
18453
|
-
console.error(
|
|
18460
|
+
console.error(nl(e, ...r));
|
|
18454
18461
|
}
|
|
18455
18462
|
const WP = {
|
|
18456
|
-
formatMessage:
|
|
18463
|
+
formatMessage: nl,
|
|
18457
18464
|
warn: VP,
|
|
18458
18465
|
error: HP
|
|
18459
18466
|
};
|
|
@@ -18587,7 +18594,7 @@ function Fo() {
|
|
|
18587
18594
|
if (typeof window < "u")
|
|
18588
18595
|
return window;
|
|
18589
18596
|
}
|
|
18590
|
-
function
|
|
18597
|
+
function fs() {
|
|
18591
18598
|
if (typeof document < "u")
|
|
18592
18599
|
return document;
|
|
18593
18600
|
throw new Oe(
|
|
@@ -18624,7 +18631,7 @@ function $P(e, r) {
|
|
|
18624
18631
|
rcSource: r
|
|
18625
18632
|
};
|
|
18626
18633
|
}
|
|
18627
|
-
const XP = 2e3, ZP = 5 * 6e4, JP = 0.1,
|
|
18634
|
+
const XP = 2e3, ZP = 5 * 6e4, JP = 0.1, qc = 50 * 1024;
|
|
18628
18635
|
class QP {
|
|
18629
18636
|
constructor(r) {
|
|
18630
18637
|
V(this, "apiKey");
|
|
@@ -18637,7 +18644,8 @@ class QP {
|
|
|
18637
18644
|
V(this, "rcSource");
|
|
18638
18645
|
V(this, "workflowContext");
|
|
18639
18646
|
V(this, "isDisposed", !1);
|
|
18640
|
-
|
|
18647
|
+
var t;
|
|
18648
|
+
this.apiKey = r.apiKey, this.eventsUrl = `${((t = r.httpConfig) == null ? void 0 : t.eventsURL) ?? eP}/v1/events`, this.appUserId = r.appUserId, this.isSilent = r.silent || !1, this.rcSource = r.rcSource, this.workflowContext = r.workflowContext, this.traceId = r.trace_id || Fa(), this.flushManager = new GP(
|
|
18641
18649
|
XP,
|
|
18642
18650
|
ZP,
|
|
18643
18651
|
JP,
|
|
@@ -18692,7 +18700,7 @@ class QP {
|
|
|
18692
18700
|
try {
|
|
18693
18701
|
return JSON.stringify(r).length;
|
|
18694
18702
|
} catch {
|
|
18695
|
-
return
|
|
18703
|
+
return qc;
|
|
18696
18704
|
}
|
|
18697
18705
|
}
|
|
18698
18706
|
/**
|
|
@@ -18706,7 +18714,7 @@ class QP {
|
|
|
18706
18714
|
let t = 16;
|
|
18707
18715
|
for (const n of this.eventsQueue) {
|
|
18708
18716
|
const a = this.estimateSingleEventSize(n), o = r.length > 0 ? 1 : 0, s = t + a + o;
|
|
18709
|
-
if (s <=
|
|
18717
|
+
if (s <= qc)
|
|
18710
18718
|
r.push(n), t = s;
|
|
18711
18719
|
else {
|
|
18712
18720
|
if (r.length === 0)
|
|
@@ -18827,7 +18835,7 @@ async function yp(e, r, t) {
|
|
|
18827
18835
|
"purchase"
|
|
18828
18836
|
);
|
|
18829
18837
|
return {
|
|
18830
|
-
customerInfo:
|
|
18838
|
+
customerInfo: ps(c),
|
|
18831
18839
|
redemptionInfo: null,
|
|
18832
18840
|
operationSessionId: o,
|
|
18833
18841
|
storeTransaction: l
|
|
@@ -18837,7 +18845,7 @@ function s1(e, r, t) {
|
|
|
18837
18845
|
const n = e.rcPackage.webBillingProduct, a = n.productType, o = n.freeTrialPhase, s = n.introPricePhase, l = n.discountPhase, c = n.price, u = (d) => d ? `${d.number} ${d.unit}${d.number > 1 ? "s" : ""}` : "N/A";
|
|
18838
18846
|
return new Promise((d, p) => {
|
|
18839
18847
|
var k, m;
|
|
18840
|
-
const _ =
|
|
18848
|
+
const _ = fs(), g = _.createElement("div");
|
|
18841
18849
|
_.body.appendChild(g);
|
|
18842
18850
|
const f = () => {
|
|
18843
18851
|
w && ho(w), _.body.removeChild(g);
|
|
@@ -18968,7 +18976,7 @@ const _1 = (e, r) => {
|
|
|
18968
18976
|
throw new ae(Q.ErrorSettingUpPurchase);
|
|
18969
18977
|
return t;
|
|
18970
18978
|
}, g1 = (e, r) => {
|
|
18971
|
-
const t =
|
|
18979
|
+
const t = Js(
|
|
18972
18980
|
e,
|
|
18973
18981
|
r
|
|
18974
18982
|
);
|
|
@@ -19000,7 +19008,7 @@ const _1 = (e, r) => {
|
|
|
19000
19008
|
2,
|
|
19001
19009
|
1
|
|
19002
19010
|
);
|
|
19003
|
-
},
|
|
19011
|
+
}, zc = (e, r, t, n, a, o) => {
|
|
19004
19012
|
if (!r.elements_configuration)
|
|
19005
19013
|
throw new ae(Q.ErrorSettingUpPurchase);
|
|
19006
19014
|
return Ge.updateElementsConfiguration(
|
|
@@ -19057,7 +19065,7 @@ function y1(e, r) {
|
|
|
19057
19065
|
or(vr, n), or(Ja, (x = r.brandingInfo) == null ? void 0 : x.appearance);
|
|
19058
19066
|
let a = /* @__PURE__ */ X(!0), o = /* @__PURE__ */ X(!1), s = /* @__PURE__ */ X(null), l = /* @__PURE__ */ X(null), c = /* @__PURE__ */ X(null);
|
|
19059
19067
|
const u = (P) => {
|
|
19060
|
-
const I =
|
|
19068
|
+
const I = Pd({
|
|
19061
19069
|
errorCode: P.getErrorCode().toString(),
|
|
19062
19070
|
errorMessage: P.message,
|
|
19063
19071
|
mode: t
|
|
@@ -19087,7 +19095,7 @@ function y1(e, r) {
|
|
|
19087
19095
|
const { stripeInstance: A, elementsInstance: j, expOptions: M } = await m1(P.stripe_gateway_params, I, r.rcPackage, r.purchaseOption, r.translator, r.brandingInfo);
|
|
19088
19096
|
L(l, A, !0), L(s, j, !0), L(c, M, !0);
|
|
19089
19097
|
} else {
|
|
19090
|
-
const { expOptions: A } =
|
|
19098
|
+
const { expOptions: A } = zc(i(s), P.stripe_gateway_params, I, r.rcPackage, r.purchaseOption, r.translator);
|
|
19091
19099
|
L(c, A, !0);
|
|
19092
19100
|
}
|
|
19093
19101
|
} catch (A) {
|
|
@@ -19114,7 +19122,7 @@ function y1(e, r) {
|
|
|
19114
19122
|
confirmationTokenId: j
|
|
19115
19123
|
} = await Ge.extractTaxCustomerDetails(P, I);
|
|
19116
19124
|
if ((M = r.brandingInfo) != null && M.gateway_tax_collection_enabled) {
|
|
19117
|
-
const D = await r.purchaseOperationHelper.checkoutCalculateTax(A.countryCode, A.postalCode), F =
|
|
19125
|
+
const D = await r.purchaseOperationHelper.checkoutCalculateTax(A.countryCode, A.postalCode), F = Ed({ taxCalculation: D, taxCustomerDetails: A, mode: t });
|
|
19118
19126
|
r.eventsTracker.trackSDKEvent(F);
|
|
19119
19127
|
}
|
|
19120
19128
|
return j;
|
|
@@ -19132,7 +19140,7 @@ function y1(e, r) {
|
|
|
19132
19140
|
const w = async (P, I, A) => {
|
|
19133
19141
|
if (i(o))
|
|
19134
19142
|
return;
|
|
19135
|
-
const j =
|
|
19143
|
+
const j = Sd({ selectedPaymentMethod: P ?? null, mode: t });
|
|
19136
19144
|
r.eventsTracker.trackSDKEvent(j), L(o, !0);
|
|
19137
19145
|
try {
|
|
19138
19146
|
const M = await f(I);
|
|
@@ -19167,7 +19175,7 @@ function y1(e, r) {
|
|
|
19167
19175
|
const A = await r.purchaseOperationHelper.checkoutStart(r.appUserId, r.rcPackage.webBillingProduct.identifier, r.purchaseOption, r.rcPackage.webBillingProduct.presentedOfferingContext, r.customerEmail, r.metadata), j = A.management_url;
|
|
19168
19176
|
if (!i(s))
|
|
19169
19177
|
throw new ae(Q.ErrorSettingUpPurchase);
|
|
19170
|
-
const { expOptions: M } =
|
|
19178
|
+
const { expOptions: M } = zc(i(s), A.gateway_params, j, r.rcPackage, r.purchaseOption, r.translator);
|
|
19171
19179
|
return { applePay: M.applePay };
|
|
19172
19180
|
} catch (A) {
|
|
19173
19181
|
throw u(A instanceof ae ? A : new ae(Q.ErrorSettingUpPurchase)), A;
|
|
@@ -19175,7 +19183,7 @@ function y1(e, r) {
|
|
|
19175
19183
|
}, m = (P) => {
|
|
19176
19184
|
k().then((I) => P.resolve(I));
|
|
19177
19185
|
}, h = () => {
|
|
19178
|
-
r.eventsTracker.trackSDKEvent(
|
|
19186
|
+
r.eventsTracker.trackSDKEvent(xd({ mode: "express_purchase_button" }));
|
|
19179
19187
|
};
|
|
19180
19188
|
function v(P) {
|
|
19181
19189
|
var A, j;
|
|
@@ -19190,7 +19198,7 @@ function y1(e, r) {
|
|
|
19190
19198
|
var A;
|
|
19191
19199
|
return (A = r.brandingInfo) == null ? void 0 : A.gateway_tax_collection_enabled;
|
|
19192
19200
|
});
|
|
19193
|
-
|
|
19201
|
+
jd(P, {
|
|
19194
19202
|
get elements() {
|
|
19195
19203
|
return i(s);
|
|
19196
19204
|
},
|
|
@@ -19241,13 +19249,13 @@ class b1 {
|
|
|
19241
19249
|
}
|
|
19242
19250
|
ra = new WeakMap();
|
|
19243
19251
|
var v1 = /* @__PURE__ */ ((e) => (e.DisplayName = "$displayName", e.Email = "$email", e.PhoneNumber = "$phoneNumber", e.IDFA = "$idfa", e.IDFV = "$idfv", e.GPSAdId = "$gpsAdId", e.AndroidId = "$androidId", e.AmazonAdId = "$amazonAdId", e.IP = "$ip", e.AdjustId = "$adjustId", e.AmplitudeDeviceId = "$amplitudeDeviceId", e.AmplitudeUserId = "$amplitudeUserId", e.AppsflyerId = "$appsflyerId", e.AppsflyerSharingFilter = "$appsflyerSharingFilter", e.BranchId = "$branchId", e.BrazeAliasName = "$brazeAliasName", e.BrazeAliasLabel = "$brazeAliasLabel", e.ClevertapId = "$clevertapId", e.FbAnonId = "$fbAnonId", e.MparticleId = "$mparticleId", e.OnesignalId = "$onesignalId", e.OnesignalUserId = "$onesignalUserId", e.IntercomContactId = "$intercomContactId", e.MediaSource = "$mediaSource", e.Campaign = "$campaign", e.AdGroup = "$adGroup", e.AdId = "$ad", e.Keyword = "$keyword", e.Creative = "$creative", e.APNSTokens = "$apnsTokens", e.FCMTokens = "$fcmTokens", e.AirshipChannelId = "$airshipChannelId", e.SegmentId = "$segmentId", e.IterableUserId = "$iterableUserId", e.IterableCampaignId = "$iterableCampaignId", e.IterableTemplateId = "$iterableTemplateId", e.FirebaseAppInstanceId = "$firebaseAppInstanceId", e.MixpanelDistinctId = "$mixpanelDistinctId", e.ATTConsentStatus = "$attConsentStatus", e.KochavaDeviceId = "$kochavaDeviceId", e.DeviceVersion = "$deviceVersion", e.PosthogUserId = "$posthogUserId", e.TelemetryDeckUserId = "$telemetryDeckUserId", e.TelemetryDeckAppId = "$telemetryDeckAppId", e.AppleRefundHandlingPreference = "$appleRefundHandlingPreference", e.CustomerioId = "$customerioId", e.TenjinId = "$tenjinId", e))(v1 || {});
|
|
19244
|
-
const
|
|
19245
|
-
var
|
|
19246
|
-
|
|
19252
|
+
const Fc = "$RCAnonymousID:";
|
|
19253
|
+
var Nc, jc, go;
|
|
19254
|
+
jc = [Ic], Nc = [Ic];
|
|
19247
19255
|
const Ze = class Ze {
|
|
19248
19256
|
/** @internal */
|
|
19249
|
-
constructor(r, t, n =
|
|
19250
|
-
|
|
19257
|
+
constructor(r, t, n = gs, a = Ni, o, s) {
|
|
19258
|
+
dl(go, 5, this);
|
|
19251
19259
|
/** @internal */
|
|
19252
19260
|
V(this, "_API_KEY");
|
|
19253
19261
|
/** @internal */
|
|
@@ -19277,7 +19285,8 @@ const Ze = class Ze {
|
|
|
19277
19285
|
silent: !this._flags.collectAnalyticsEvents,
|
|
19278
19286
|
rcSource: this._flags.rcSource ?? null,
|
|
19279
19287
|
workflowContext: (l = this._context) == null ? void 0 : l.workflowContext,
|
|
19280
|
-
trace_id: s
|
|
19288
|
+
trace_id: s,
|
|
19289
|
+
httpConfig: n
|
|
19281
19290
|
}), this.backend = new vP(this._API_KEY, n, this._context), this.inMemoryCache = new l1(), this.purchaseOperationHelper = new pg(
|
|
19282
19291
|
this.backend,
|
|
19283
19292
|
this.eventsTracker
|
|
@@ -19315,7 +19324,7 @@ const Ze = class Ze {
|
|
|
19315
19324
|
* @internal
|
|
19316
19325
|
*/
|
|
19317
19326
|
static buildVariablesPerPackage(r, t = {}) {
|
|
19318
|
-
return
|
|
19327
|
+
return Dc(r, t);
|
|
19319
19328
|
}
|
|
19320
19329
|
/** @internal */
|
|
19321
19330
|
static getPlatformInfo() {
|
|
@@ -19365,7 +19374,7 @@ const Ze = class Ze {
|
|
|
19365
19374
|
return Ze.configureInternal(o), Ze.getSharedInstance();
|
|
19366
19375
|
}
|
|
19367
19376
|
static configureInternal(r) {
|
|
19368
|
-
const { apiKey: t, appUserId: n, httpConfig: a, flags: o, context: s, trace_id: l } = r, c = a ??
|
|
19377
|
+
const { apiKey: t, appUserId: n, httpConfig: a, flags: o, context: s, trace_id: l } = r, c = a ?? gs, u = o ?? Ni;
|
|
19369
19378
|
Ze.validateConfig(r), Ze.instance = new Ze(
|
|
19370
19379
|
t,
|
|
19371
19380
|
n,
|
|
@@ -19423,7 +19432,7 @@ const Ze = class Ze {
|
|
|
19423
19432
|
async presentPaywall(r) {
|
|
19424
19433
|
const t = r.htmlTarget;
|
|
19425
19434
|
let n = !1;
|
|
19426
|
-
const a =
|
|
19435
|
+
const a = fs();
|
|
19427
19436
|
let o = t ?? a.getElementById("rcb-ui-pw-root");
|
|
19428
19437
|
if (o === null) {
|
|
19429
19438
|
n = !0;
|
|
@@ -19489,7 +19498,7 @@ const Ze = class Ze {
|
|
|
19489
19498
|
r.onVisitCustomerCenter();
|
|
19490
19499
|
return;
|
|
19491
19500
|
}
|
|
19492
|
-
}, k =
|
|
19501
|
+
}, k = Dc(l, {
|
|
19493
19502
|
translator: p
|
|
19494
19503
|
}), m = p1(l);
|
|
19495
19504
|
return new Promise((h, v) => {
|
|
@@ -19498,7 +19507,7 @@ const Ze = class Ze {
|
|
|
19498
19507
|
b && ho(b), s.innerHTML = "", n && s.parentNode && s.parentNode.removeChild(s);
|
|
19499
19508
|
}, T = () => {
|
|
19500
19509
|
se.debugLog("Purchase cancelled by user"), E(), v(new Oe(Ye.UserCancelledError));
|
|
19501
|
-
}, x =
|
|
19510
|
+
}, x = _s(this._API_KEY) ? (P, {
|
|
19502
19511
|
selectedPackageId: I,
|
|
19503
19512
|
onReady: A
|
|
19504
19513
|
}) => {
|
|
@@ -19604,7 +19613,8 @@ const Ze = class Ze {
|
|
|
19604
19613
|
const a = r.offerings.flatMap((s) => s.packages).map((s) => s.platform_product_identifier), o = await this.backend.getProducts(
|
|
19605
19614
|
t,
|
|
19606
19615
|
a,
|
|
19607
|
-
n == null ? void 0 : n.currency
|
|
19616
|
+
n == null ? void 0 : n.currency,
|
|
19617
|
+
n == null ? void 0 : n.discountCode
|
|
19608
19618
|
);
|
|
19609
19619
|
return this.logMissingProductIds(a, o.product_details), EP(r, o);
|
|
19610
19620
|
}
|
|
@@ -19655,14 +19665,14 @@ const Ze = class Ze {
|
|
|
19655
19665
|
"htmlTarget is required for presentExpressPurchaseButton"
|
|
19656
19666
|
);
|
|
19657
19667
|
const u = this._appUserId;
|
|
19658
|
-
if (!
|
|
19668
|
+
if (!_s(this._API_KEY))
|
|
19659
19669
|
throw new Error(
|
|
19660
19670
|
"The Express Purchase button is only available with Web Billing API Keys."
|
|
19661
19671
|
);
|
|
19662
19672
|
const d = n ?? t.webBillingProduct.defaultPurchaseOption, _ = { ...this._flags.autoCollectUTMAsMetadata ? Mi() : {}, ...r.metadata || {} }, g = new xn({}, s, l);
|
|
19663
19673
|
return new Promise((f, w) => {
|
|
19664
19674
|
const k = async (h) => {
|
|
19665
|
-
const v =
|
|
19675
|
+
const v = gc({
|
|
19666
19676
|
redemptionInfo: h.redemptionInfo,
|
|
19667
19677
|
mode: "express_purchase_button"
|
|
19668
19678
|
});
|
|
@@ -19680,7 +19690,7 @@ const Ze = class Ze {
|
|
|
19680
19690
|
f(b);
|
|
19681
19691
|
}, m = (h) => {
|
|
19682
19692
|
var b;
|
|
19683
|
-
const v =
|
|
19693
|
+
const v = fc({
|
|
19684
19694
|
errorCode: (b = h.errorCode) == null ? void 0 : b.toString(),
|
|
19685
19695
|
errorMessage: h.message,
|
|
19686
19696
|
mode: "express_purchase_button"
|
|
@@ -19861,7 +19871,7 @@ const Ze = class Ze {
|
|
|
19861
19871
|
* If no element is found, creates a new div with className "rcb-ui-root".
|
|
19862
19872
|
*/
|
|
19863
19873
|
resolveHTMLTarget(r) {
|
|
19864
|
-
const t =
|
|
19874
|
+
const t = fs();
|
|
19865
19875
|
let n = r ?? t.getElementById("rcb-ui-root");
|
|
19866
19876
|
if (n === null) {
|
|
19867
19877
|
const a = t.createElement("div");
|
|
@@ -19877,14 +19887,14 @@ const Ze = class Ze {
|
|
|
19877
19887
|
if (this._flags.rcSource && e1.includes(this._flags.rcSource))
|
|
19878
19888
|
return;
|
|
19879
19889
|
const a = () => {
|
|
19880
|
-
const o =
|
|
19890
|
+
const o = xd();
|
|
19881
19891
|
this.eventsTracker.trackSDKEvent(o), _o().removeEventListener("popstate", a), t == null || t(), se.debugLog("Purchase cancelled by user"), r(new Oe(Ye.UserCancelledError));
|
|
19882
19892
|
};
|
|
19883
19893
|
return a;
|
|
19884
19894
|
}
|
|
19885
19895
|
createCheckoutOnFinishedHandler(r, t, n, a) {
|
|
19886
19896
|
return async (s) => {
|
|
19887
|
-
const l =
|
|
19897
|
+
const l = gc({
|
|
19888
19898
|
redemptionInfo: s.redemptionInfo
|
|
19889
19899
|
});
|
|
19890
19900
|
this.eventsTracker.trackSDKEvent(l), this.inMemoryCache.invalidateAllCaches(), se.debugLog("Purchase finished"), a == null || a();
|
|
@@ -19904,7 +19914,7 @@ const Ze = class Ze {
|
|
|
19904
19914
|
createCheckoutOnErrorHandler(r, t) {
|
|
19905
19915
|
return (a) => {
|
|
19906
19916
|
var s;
|
|
19907
|
-
const o =
|
|
19917
|
+
const o = fc({
|
|
19908
19918
|
errorCode: (s = a.errorCode) == null ? void 0 : s.toString(),
|
|
19909
19919
|
errorMessage: a.message
|
|
19910
19920
|
});
|
|
@@ -19998,7 +20008,7 @@ const Ze = class Ze {
|
|
|
19998
20008
|
};
|
|
19999
20009
|
const t = await this.backend.identify(this._appUserId, r);
|
|
20000
20010
|
return await this.replaceUserId(r), {
|
|
20001
|
-
customerInfo:
|
|
20011
|
+
customerInfo: ps(t),
|
|
20002
20012
|
wasCreated: t.was_created
|
|
20003
20013
|
};
|
|
20004
20014
|
}
|
|
@@ -20030,7 +20040,7 @@ const Ze = class Ze {
|
|
|
20030
20040
|
* @returns Whether the current user is anonymous.
|
|
20031
20041
|
*/
|
|
20032
20042
|
isAnonymous() {
|
|
20033
|
-
return this._appUserId.startsWith(
|
|
20043
|
+
return this._appUserId.startsWith(Fc);
|
|
20034
20044
|
}
|
|
20035
20045
|
/**
|
|
20036
20046
|
* Fetches the virtual currencies for the current subscriber.
|
|
@@ -20072,7 +20082,7 @@ const Ze = class Ze {
|
|
|
20072
20082
|
/** @internal */
|
|
20073
20083
|
async _getCustomerInfoForUserId(r) {
|
|
20074
20084
|
const t = await this.backend.getCustomerInfo(r);
|
|
20075
|
-
return
|
|
20085
|
+
return ps(t);
|
|
20076
20086
|
}
|
|
20077
20087
|
/** @internal */
|
|
20078
20088
|
async _getVirtualCurrenciesForUserId(r) {
|
|
@@ -20091,7 +20101,7 @@ const Ze = class Ze {
|
|
|
20091
20101
|
* @public
|
|
20092
20102
|
*/
|
|
20093
20103
|
static generateRevenueCatAnonymousAppUserId() {
|
|
20094
|
-
return `${
|
|
20104
|
+
return `${Fc}${Fa().replace(/-/g, "")}`;
|
|
20095
20105
|
}
|
|
20096
20106
|
/**
|
|
20097
20107
|
* Track an event.
|
|
@@ -20122,10 +20132,10 @@ const Ze = class Ze {
|
|
|
20122
20132
|
return this.eventsTracker.flushAllEvents();
|
|
20123
20133
|
}
|
|
20124
20134
|
};
|
|
20125
|
-
go =
|
|
20135
|
+
go = cl(null), ri(go, 1, "presentExpressPurchaseButton", jc, Ze), ri(go, 1, "purchase", Nc, Ze), ei(go, Ze), /** @internal */
|
|
20126
20136
|
V(Ze, "_platformInfo"), /** @internal */
|
|
20127
20137
|
V(Ze, "instance");
|
|
20128
|
-
let
|
|
20138
|
+
let ms = Ze;
|
|
20129
20139
|
export {
|
|
20130
20140
|
Ye as ErrorCode,
|
|
20131
20141
|
Mr as LogLevel,
|
|
@@ -20133,7 +20143,7 @@ export {
|
|
|
20133
20143
|
av as PackageType,
|
|
20134
20144
|
ce as PeriodUnit,
|
|
20135
20145
|
It as ProductType,
|
|
20136
|
-
|
|
20146
|
+
ms as Purchases,
|
|
20137
20147
|
Oe as PurchasesError,
|
|
20138
20148
|
v1 as ReservedCustomerAttribute,
|
|
20139
20149
|
dg as UninitializedPurchasesError
|