@everymatrix/player-consents 1.74.2 → 1.74.3
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/components/{GeneralAnimationLoading-BMZE178n.js → GeneralAnimationLoading-CfVy1Wef.js} +4 -4
- package/components/{GeneralAnimationLoading-kMKGPw5f.js → GeneralAnimationLoading-DXjp5XQP.js} +4 -4
- package/components/{PlayerConsents-aPevdlSG.js → PlayerConsents-BnndxanX.js} +785 -810
- package/components/PlayerConsents-CTCXDjy8.cjs +16 -0
- package/components/{PlayerConsents-CHvr0_oJ.js → PlayerConsents-qUW5xtcz.js} +731 -702
- package/es2015/player-consents.cjs +1 -1
- package/es2015/player-consents.js +1 -1
- package/esnext/player-consents.js +1 -1
- package/package.json +1 -1
- package/components/PlayerConsents-CXlt0JBF.cjs +0 -16
|
@@ -1,50 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var Rr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var lt = (e, t, r) => t in e ? Ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, W = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
Rr.call(t, r) && lt(e, r, t[r]);
|
|
8
|
-
if (st)
|
|
9
|
-
for (var r of st(t))
|
|
10
|
-
Ur.call(t, r) && lt(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, ct = (e, t) => jr(e, Lr(t));
|
|
13
|
-
var de = (e, t, r) => new Promise((n, i) => {
|
|
14
|
-
var o = (h) => {
|
|
15
|
-
try {
|
|
16
|
-
s(r.next(h));
|
|
17
|
-
} catch (u) {
|
|
18
|
-
i(u);
|
|
19
|
-
}
|
|
20
|
-
}, a = (h) => {
|
|
21
|
-
try {
|
|
22
|
-
s(r.throw(h));
|
|
23
|
-
} catch (u) {
|
|
24
|
-
i(u);
|
|
25
|
-
}
|
|
26
|
-
}, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
|
|
27
|
-
s((r = r.apply(e, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import { n as q, s as Dr, r as Rt, a as Ke, i as Gr, c as Ut, S as Dt, b as Gt, d as ut, e as b, f as j, g as x, h as L, j as X, k as Fr, l as A, m as Vr, o as Xr, p as qr, q as Wr, t as ht, u as Zr, v as Jr, w as ee, x as $e, y as G, z as Qr, A as ge, B as _e, C as ye, D as Y, H as Ft } from "./GeneralAnimationLoading-kMKGPw5f.js";
|
|
30
|
-
const $ = [];
|
|
31
|
-
function Yr(e, t) {
|
|
1
|
+
import { n as q, s as Nr, r as Pt, a as Je, i as Ar, c as Bt, S as zt, b as Ot, d as nt, e as E, f as j, g as S, h as L, j as X, k as Hr, l as A, m as Pr, o as Br, p as zr, q as it, t as Or, u as Ir, v as jr, w as K, x as Qe, y as G, z as Lr, A as he, B as pe, C as ge, D as J, H as It } from "./GeneralAnimationLoading-CfVy1Wef.js";
|
|
2
|
+
const Y = [];
|
|
3
|
+
function Rr(e, t) {
|
|
32
4
|
return {
|
|
33
|
-
subscribe:
|
|
5
|
+
subscribe: we(e, t).subscribe
|
|
34
6
|
};
|
|
35
7
|
}
|
|
36
|
-
function
|
|
8
|
+
function we(e, t = q) {
|
|
37
9
|
let r;
|
|
38
10
|
const n = /* @__PURE__ */ new Set();
|
|
39
11
|
function i(s) {
|
|
40
|
-
if (
|
|
41
|
-
const h =
|
|
12
|
+
if (Je(e, s) && (e = s, r)) {
|
|
13
|
+
const h = !Y.length;
|
|
42
14
|
for (const u of n)
|
|
43
|
-
u[1](),
|
|
15
|
+
u[1](), Y.push(u, e);
|
|
44
16
|
if (h) {
|
|
45
|
-
for (let u = 0; u <
|
|
46
|
-
|
|
47
|
-
|
|
17
|
+
for (let u = 0; u < Y.length; u += 2)
|
|
18
|
+
Y[u][0](Y[u + 1]);
|
|
19
|
+
Y.length = 0;
|
|
48
20
|
}
|
|
49
21
|
}
|
|
50
22
|
}
|
|
@@ -59,12 +31,12 @@ function He(e, t = q) {
|
|
|
59
31
|
}
|
|
60
32
|
return { set: i, update: o, subscribe: a };
|
|
61
33
|
}
|
|
62
|
-
function
|
|
34
|
+
function ne(e, t, r) {
|
|
63
35
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
64
36
|
if (!i.every(Boolean))
|
|
65
37
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
66
38
|
const o = t.length < 2;
|
|
67
|
-
return
|
|
39
|
+
return Rr(r, (a, s) => {
|
|
68
40
|
let h = !1;
|
|
69
41
|
const u = [];
|
|
70
42
|
let l = 0, d = q;
|
|
@@ -73,97 +45,97 @@ function oe(e, t, r) {
|
|
|
73
45
|
return;
|
|
74
46
|
d();
|
|
75
47
|
const f = t(n ? u[0] : u, a, s);
|
|
76
|
-
o ? a(f) : d =
|
|
77
|
-
},
|
|
78
|
-
(f,
|
|
48
|
+
o ? a(f) : d = Ar(f) ? f : q;
|
|
49
|
+
}, v = i.map(
|
|
50
|
+
(f, p) => Nr(
|
|
79
51
|
f,
|
|
80
|
-
(
|
|
81
|
-
u[
|
|
52
|
+
(C) => {
|
|
53
|
+
u[p] = C, l &= ~(1 << p), h && m();
|
|
82
54
|
},
|
|
83
55
|
() => {
|
|
84
|
-
l |= 1 <<
|
|
56
|
+
l |= 1 << p;
|
|
85
57
|
}
|
|
86
58
|
)
|
|
87
59
|
);
|
|
88
60
|
return h = !0, m(), function() {
|
|
89
|
-
|
|
61
|
+
Pt(v), d(), h = !1;
|
|
90
62
|
};
|
|
91
63
|
});
|
|
92
64
|
}
|
|
93
|
-
function
|
|
94
|
-
return e
|
|
65
|
+
function Ur(e) {
|
|
66
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
95
67
|
}
|
|
96
|
-
var
|
|
97
|
-
return
|
|
68
|
+
var Dr = function(t) {
|
|
69
|
+
return Gr(t) && !Fr(t);
|
|
98
70
|
};
|
|
99
|
-
function
|
|
71
|
+
function Gr(e) {
|
|
100
72
|
return !!e && typeof e == "object";
|
|
101
73
|
}
|
|
102
|
-
function
|
|
74
|
+
function Fr(e) {
|
|
103
75
|
var t = Object.prototype.toString.call(e);
|
|
104
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
76
|
+
return t === "[object RegExp]" || t === "[object Date]" || qr(e);
|
|
105
77
|
}
|
|
106
|
-
var
|
|
107
|
-
function
|
|
108
|
-
return e.$$typeof ===
|
|
78
|
+
var Vr = typeof Symbol == "function" && Symbol.for, Xr = Vr ? Symbol.for("react.element") : 60103;
|
|
79
|
+
function qr(e) {
|
|
80
|
+
return e.$$typeof === Xr;
|
|
109
81
|
}
|
|
110
|
-
function
|
|
82
|
+
function Wr(e) {
|
|
111
83
|
return Array.isArray(e) ? [] : {};
|
|
112
84
|
}
|
|
113
|
-
function
|
|
114
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
85
|
+
function de(e, t) {
|
|
86
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $(Wr(e), e, t) : e;
|
|
115
87
|
}
|
|
116
|
-
function
|
|
88
|
+
function Zr(e, t, r) {
|
|
117
89
|
return e.concat(t).map(function(n) {
|
|
118
|
-
return
|
|
90
|
+
return de(n, r);
|
|
119
91
|
});
|
|
120
92
|
}
|
|
121
|
-
function
|
|
93
|
+
function Jr(e, t) {
|
|
122
94
|
if (!t.customMerge)
|
|
123
|
-
return
|
|
95
|
+
return $;
|
|
124
96
|
var r = t.customMerge(e);
|
|
125
|
-
return typeof r == "function" ? r :
|
|
97
|
+
return typeof r == "function" ? r : $;
|
|
126
98
|
}
|
|
127
|
-
function
|
|
99
|
+
function Qr(e) {
|
|
128
100
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
129
101
|
return Object.propertyIsEnumerable.call(e, t);
|
|
130
102
|
}) : [];
|
|
131
103
|
}
|
|
132
|
-
function
|
|
133
|
-
return Object.keys(e).concat(
|
|
104
|
+
function ot(e) {
|
|
105
|
+
return Object.keys(e).concat(Qr(e));
|
|
134
106
|
}
|
|
135
|
-
function
|
|
107
|
+
function jt(e, t) {
|
|
136
108
|
try {
|
|
137
109
|
return t in e;
|
|
138
|
-
} catch
|
|
110
|
+
} catch {
|
|
139
111
|
return !1;
|
|
140
112
|
}
|
|
141
113
|
}
|
|
142
|
-
function
|
|
143
|
-
return
|
|
114
|
+
function Yr(e, t) {
|
|
115
|
+
return jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
144
116
|
}
|
|
145
|
-
function
|
|
117
|
+
function Kr(e, t, r) {
|
|
146
118
|
var n = {};
|
|
147
|
-
return r.isMergeableObject(e) &&
|
|
148
|
-
n[i] =
|
|
149
|
-
}),
|
|
150
|
-
|
|
119
|
+
return r.isMergeableObject(e) && ot(e).forEach(function(i) {
|
|
120
|
+
n[i] = de(e[i], r);
|
|
121
|
+
}), ot(t).forEach(function(i) {
|
|
122
|
+
Yr(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jr(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
|
|
151
123
|
}), n;
|
|
152
124
|
}
|
|
153
|
-
function
|
|
154
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
125
|
+
function $(e, t, r) {
|
|
126
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Zr, r.isMergeableObject = r.isMergeableObject || Dr, r.cloneUnlessOtherwiseSpecified = de;
|
|
155
127
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
156
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
128
|
+
return o ? n ? r.arrayMerge(e, t, r) : Kr(e, t, r) : de(t, r);
|
|
157
129
|
}
|
|
158
|
-
|
|
130
|
+
$.all = function(t, r) {
|
|
159
131
|
if (!Array.isArray(t))
|
|
160
132
|
throw new Error("first argument should be an array");
|
|
161
133
|
return t.reduce(function(n, i) {
|
|
162
|
-
return
|
|
134
|
+
return $(n, i, r);
|
|
163
135
|
}, {});
|
|
164
136
|
};
|
|
165
|
-
var
|
|
166
|
-
const
|
|
137
|
+
var $r = $, en = $r;
|
|
138
|
+
const tn = /* @__PURE__ */ Ur(en);
|
|
167
139
|
/*! *****************************************************************************
|
|
168
140
|
Copyright (c) Microsoft Corporation.
|
|
169
141
|
|
|
@@ -178,18 +150,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
178
150
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
179
151
|
PERFORMANCE OF THIS SOFTWARE.
|
|
180
152
|
***************************************************************************** */
|
|
181
|
-
var
|
|
182
|
-
return
|
|
153
|
+
var Ue = function(e, t) {
|
|
154
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
183
155
|
r.__proto__ = n;
|
|
184
156
|
} || function(r, n) {
|
|
185
157
|
for (var i in n)
|
|
186
158
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
187
|
-
},
|
|
159
|
+
}, Ue(e, t);
|
|
188
160
|
};
|
|
189
|
-
function
|
|
161
|
+
function Ne(e, t) {
|
|
190
162
|
if (typeof t != "function" && t !== null)
|
|
191
163
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
192
|
-
|
|
164
|
+
Ue(e, t);
|
|
193
165
|
function r() {
|
|
194
166
|
this.constructor = e;
|
|
195
167
|
}
|
|
@@ -205,7 +177,7 @@ var H = function() {
|
|
|
205
177
|
return t;
|
|
206
178
|
}, H.apply(this, arguments);
|
|
207
179
|
};
|
|
208
|
-
function
|
|
180
|
+
function rn(e, t) {
|
|
209
181
|
var r = {};
|
|
210
182
|
for (var n in e)
|
|
211
183
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -214,62 +186,64 @@ function pn(e, t) {
|
|
|
214
186
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
215
187
|
return r;
|
|
216
188
|
}
|
|
217
|
-
function
|
|
189
|
+
function ze(e, t, r) {
|
|
218
190
|
if (arguments.length === 2)
|
|
219
191
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
220
192
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
221
193
|
return e.concat(o || t);
|
|
222
194
|
}
|
|
223
|
-
function
|
|
224
|
-
var r = t && t.cache ? t.cache :
|
|
195
|
+
function Oe(e, t) {
|
|
196
|
+
var r = t && t.cache ? t.cache : un, n = t && t.serializer ? t.serializer : ln, i = t && t.strategy ? t.strategy : on;
|
|
225
197
|
return i(e, {
|
|
226
198
|
cache: r,
|
|
227
199
|
serializer: n
|
|
228
200
|
});
|
|
229
201
|
}
|
|
230
|
-
function
|
|
202
|
+
function nn(e) {
|
|
231
203
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
232
204
|
}
|
|
233
|
-
function
|
|
234
|
-
var i =
|
|
235
|
-
return typeof o
|
|
205
|
+
function Lt(e, t, r, n) {
|
|
206
|
+
var i = nn(n) ? n : r(n), o = t.get(i);
|
|
207
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
236
208
|
}
|
|
237
|
-
function
|
|
209
|
+
function Rt(e, t, r) {
|
|
238
210
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
239
|
-
return typeof o
|
|
211
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
240
212
|
}
|
|
241
|
-
function
|
|
213
|
+
function Ye(e, t, r, n, i) {
|
|
242
214
|
return r.bind(t, e, n, i);
|
|
243
215
|
}
|
|
244
|
-
function
|
|
245
|
-
var r = e.length === 1 ?
|
|
246
|
-
return
|
|
216
|
+
function on(e, t) {
|
|
217
|
+
var r = e.length === 1 ? Lt : Rt;
|
|
218
|
+
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
247
219
|
}
|
|
248
|
-
function
|
|
249
|
-
return
|
|
220
|
+
function an(e, t) {
|
|
221
|
+
return Ye(e, this, Rt, t.cache.create(), t.serializer);
|
|
250
222
|
}
|
|
251
|
-
function
|
|
252
|
-
return
|
|
223
|
+
function sn(e, t) {
|
|
224
|
+
return Ye(e, this, Lt, t.cache.create(), t.serializer);
|
|
253
225
|
}
|
|
254
|
-
var
|
|
226
|
+
var ln = function() {
|
|
255
227
|
return JSON.stringify(arguments);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
228
|
+
}, cn = (
|
|
229
|
+
/** @class */
|
|
230
|
+
function() {
|
|
231
|
+
function e() {
|
|
232
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
233
|
+
}
|
|
234
|
+
return e.prototype.get = function(t) {
|
|
235
|
+
return this.cache[t];
|
|
236
|
+
}, e.prototype.set = function(t, r) {
|
|
237
|
+
this.cache[t] = r;
|
|
238
|
+
}, e;
|
|
239
|
+
}()
|
|
240
|
+
), un = {
|
|
267
241
|
create: function() {
|
|
268
|
-
return new
|
|
242
|
+
return new cn();
|
|
269
243
|
}
|
|
270
|
-
},
|
|
271
|
-
variadic:
|
|
272
|
-
monadic:
|
|
244
|
+
}, Ie = {
|
|
245
|
+
variadic: an,
|
|
246
|
+
monadic: sn
|
|
273
247
|
}, w;
|
|
274
248
|
(function(e) {
|
|
275
249
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
@@ -278,47 +252,47 @@ var B;
|
|
|
278
252
|
(function(e) {
|
|
279
253
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
280
254
|
})(B || (B = {}));
|
|
281
|
-
var
|
|
255
|
+
var ee;
|
|
282
256
|
(function(e) {
|
|
283
257
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
284
|
-
})(
|
|
285
|
-
function
|
|
258
|
+
})(ee || (ee = {}));
|
|
259
|
+
function at(e) {
|
|
286
260
|
return e.type === B.literal;
|
|
287
261
|
}
|
|
288
|
-
function
|
|
262
|
+
function hn(e) {
|
|
289
263
|
return e.type === B.argument;
|
|
290
264
|
}
|
|
291
|
-
function
|
|
265
|
+
function Ut(e) {
|
|
292
266
|
return e.type === B.number;
|
|
293
267
|
}
|
|
294
|
-
function
|
|
268
|
+
function Dt(e) {
|
|
295
269
|
return e.type === B.date;
|
|
296
270
|
}
|
|
297
|
-
function
|
|
271
|
+
function Gt(e) {
|
|
298
272
|
return e.type === B.time;
|
|
299
273
|
}
|
|
300
|
-
function
|
|
274
|
+
function Ft(e) {
|
|
301
275
|
return e.type === B.select;
|
|
302
276
|
}
|
|
303
|
-
function
|
|
277
|
+
function Vt(e) {
|
|
304
278
|
return e.type === B.plural;
|
|
305
279
|
}
|
|
306
|
-
function
|
|
280
|
+
function dn(e) {
|
|
307
281
|
return e.type === B.pound;
|
|
308
282
|
}
|
|
309
|
-
function
|
|
283
|
+
function Xt(e) {
|
|
310
284
|
return e.type === B.tag;
|
|
311
285
|
}
|
|
312
|
-
function
|
|
313
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
286
|
+
function qt(e) {
|
|
287
|
+
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
314
288
|
}
|
|
315
|
-
function
|
|
316
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
289
|
+
function De(e) {
|
|
290
|
+
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
317
291
|
}
|
|
318
|
-
var
|
|
319
|
-
function
|
|
292
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
293
|
+
function pn(e) {
|
|
320
294
|
var t = {};
|
|
321
|
-
return e.replace(
|
|
295
|
+
return e.replace(mn, function(r) {
|
|
322
296
|
var n = r.length;
|
|
323
297
|
switch (r[0]) {
|
|
324
298
|
case "G":
|
|
@@ -407,11 +381,11 @@ function xn(e) {
|
|
|
407
381
|
return "";
|
|
408
382
|
}), t;
|
|
409
383
|
}
|
|
410
|
-
var
|
|
411
|
-
function
|
|
384
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
385
|
+
function fn(e) {
|
|
412
386
|
if (e.length === 0)
|
|
413
387
|
throw new Error("Number skeleton cannot be empty");
|
|
414
|
-
for (var t = e.split(
|
|
388
|
+
for (var t = e.split(gn).filter(function(m) {
|
|
415
389
|
return m.length > 0;
|
|
416
390
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
417
391
|
var o = i[n], a = o.split("/");
|
|
@@ -426,17 +400,17 @@ function Tn(e) {
|
|
|
426
400
|
}
|
|
427
401
|
return r;
|
|
428
402
|
}
|
|
429
|
-
function
|
|
403
|
+
function _n(e) {
|
|
430
404
|
return e.replace(/^(.*?)-/, "");
|
|
431
405
|
}
|
|
432
|
-
var
|
|
433
|
-
function
|
|
406
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Jt = /^(0+)$/;
|
|
407
|
+
function lt(e) {
|
|
434
408
|
var t = {};
|
|
435
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
409
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
436
410
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
437
411
|
}), t;
|
|
438
412
|
}
|
|
439
|
-
function
|
|
413
|
+
function Qt(e) {
|
|
440
414
|
switch (e) {
|
|
441
415
|
case "sign-auto":
|
|
442
416
|
return {
|
|
@@ -476,7 +450,7 @@ function nr(e) {
|
|
|
476
450
|
};
|
|
477
451
|
}
|
|
478
452
|
}
|
|
479
|
-
function
|
|
453
|
+
function vn(e) {
|
|
480
454
|
var t;
|
|
481
455
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
482
456
|
notation: "engineering"
|
|
@@ -484,17 +458,17 @@ function An(e) {
|
|
|
484
458
|
notation: "scientific"
|
|
485
459
|
}, e = e.slice(1)), t) {
|
|
486
460
|
var r = e.slice(0, 2);
|
|
487
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
461
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jt.test(e))
|
|
488
462
|
throw new Error("Malformed concise eng/scientific notation");
|
|
489
463
|
t.minimumIntegerDigits = e.length;
|
|
490
464
|
}
|
|
491
465
|
return t;
|
|
492
466
|
}
|
|
493
|
-
function
|
|
494
|
-
var t = {}, r =
|
|
467
|
+
function ct(e) {
|
|
468
|
+
var t = {}, r = Qt(e);
|
|
495
469
|
return r || t;
|
|
496
470
|
}
|
|
497
|
-
function
|
|
471
|
+
function kn(e) {
|
|
498
472
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
499
473
|
var i = n[r];
|
|
500
474
|
switch (i.stem) {
|
|
@@ -518,7 +492,7 @@ function Hn(e) {
|
|
|
518
492
|
continue;
|
|
519
493
|
case "measure-unit":
|
|
520
494
|
case "unit":
|
|
521
|
-
t.style = "unit", t.unit =
|
|
495
|
+
t.style = "unit", t.unit = _n(i.options[0]);
|
|
522
496
|
continue;
|
|
523
497
|
case "compact-short":
|
|
524
498
|
case "K":
|
|
@@ -530,12 +504,12 @@ function Hn(e) {
|
|
|
530
504
|
continue;
|
|
531
505
|
case "scientific":
|
|
532
506
|
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
533
|
-
return H(H({}, h),
|
|
507
|
+
return H(H({}, h), ct(u));
|
|
534
508
|
}, {}));
|
|
535
509
|
continue;
|
|
536
510
|
case "engineering":
|
|
537
511
|
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
538
|
-
return H(H({}, h),
|
|
512
|
+
return H(H({}, h), ct(u));
|
|
539
513
|
}, {}));
|
|
540
514
|
continue;
|
|
541
515
|
case "notation-simple":
|
|
@@ -580,45 +554,45 @@ function Hn(e) {
|
|
|
580
554
|
case "integer-width":
|
|
581
555
|
if (i.options.length > 1)
|
|
582
556
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
583
|
-
i.options[0].replace(
|
|
557
|
+
i.options[0].replace(yn, function(h, u, l, d, m, v) {
|
|
584
558
|
if (u)
|
|
585
559
|
t.minimumIntegerDigits = l.length;
|
|
586
560
|
else {
|
|
587
561
|
if (d && m)
|
|
588
562
|
throw new Error("We currently do not support maximum integer digits");
|
|
589
|
-
if (
|
|
563
|
+
if (v)
|
|
590
564
|
throw new Error("We currently do not support exact integer digits");
|
|
591
565
|
}
|
|
592
566
|
return "";
|
|
593
567
|
});
|
|
594
568
|
continue;
|
|
595
569
|
}
|
|
596
|
-
if (
|
|
570
|
+
if (Jt.test(i.stem)) {
|
|
597
571
|
t.minimumIntegerDigits = i.stem.length;
|
|
598
572
|
continue;
|
|
599
573
|
}
|
|
600
|
-
if (
|
|
574
|
+
if (st.test(i.stem)) {
|
|
601
575
|
if (i.options.length > 1)
|
|
602
576
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
603
|
-
i.stem.replace(
|
|
604
|
-
return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m &&
|
|
577
|
+
i.stem.replace(st, function(h, u, l, d, m, v) {
|
|
578
|
+
return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && v ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + v.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
605
579
|
});
|
|
606
580
|
var o = i.options[0];
|
|
607
|
-
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t),
|
|
581
|
+
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), lt(o)));
|
|
608
582
|
continue;
|
|
609
583
|
}
|
|
610
|
-
if (
|
|
611
|
-
t = H(H({}, t),
|
|
584
|
+
if (Zt.test(i.stem)) {
|
|
585
|
+
t = H(H({}, t), lt(i.stem));
|
|
612
586
|
continue;
|
|
613
587
|
}
|
|
614
|
-
var a =
|
|
588
|
+
var a = Qt(i.stem);
|
|
615
589
|
a && (t = H(H({}, t), a));
|
|
616
|
-
var s =
|
|
590
|
+
var s = vn(i.stem);
|
|
617
591
|
s && (t = H(H({}, t), s));
|
|
618
592
|
}
|
|
619
593
|
return t;
|
|
620
594
|
}
|
|
621
|
-
var
|
|
595
|
+
var Ce = {
|
|
622
596
|
"001": [
|
|
623
597
|
"H",
|
|
624
598
|
"h"
|
|
@@ -2033,13 +2007,13 @@ var Me = {
|
|
|
2033
2007
|
"h"
|
|
2034
2008
|
]
|
|
2035
2009
|
};
|
|
2036
|
-
function
|
|
2010
|
+
function bn(e, t) {
|
|
2037
2011
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2038
2012
|
var i = e.charAt(n);
|
|
2039
2013
|
if (i === "j") {
|
|
2040
2014
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2041
2015
|
o++, n++;
|
|
2042
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2016
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = En(t);
|
|
2043
2017
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2044
2018
|
r += h;
|
|
2045
2019
|
for (; a-- > 0; )
|
|
@@ -2049,7 +2023,7 @@ function Pn(e, t) {
|
|
|
2049
2023
|
}
|
|
2050
2024
|
return r;
|
|
2051
2025
|
}
|
|
2052
|
-
function
|
|
2026
|
+
function En(e) {
|
|
2053
2027
|
var t = e.hourCycle;
|
|
2054
2028
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2055
2029
|
e.hourCycles && // @ts-ignore
|
|
@@ -2068,23 +2042,23 @@ function Bn(e) {
|
|
|
2068
2042
|
}
|
|
2069
2043
|
var r = e.language, n;
|
|
2070
2044
|
r !== "root" && (n = e.maximize().region);
|
|
2071
|
-
var i =
|
|
2045
|
+
var i = Ce[n || ""] || Ce[r || ""] || Ce["".concat(r, "-001")] || Ce["001"];
|
|
2072
2046
|
return i[0];
|
|
2073
2047
|
}
|
|
2074
|
-
var
|
|
2048
|
+
var je, Cn = new RegExp("^".concat(Wt.source, "*")), Sn = new RegExp("".concat(Wt.source, "*$"));
|
|
2075
2049
|
function N(e, t) {
|
|
2076
2050
|
return { start: e, end: t };
|
|
2077
2051
|
}
|
|
2078
|
-
var
|
|
2052
|
+
var xn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Mn = !!String.fromCodePoint, Tn = !!Object.fromEntries, wn = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, An = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Pn = Hn ? Number.isSafeInteger : function(e) {
|
|
2079
2053
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2080
|
-
},
|
|
2054
|
+
}, Ge = !0;
|
|
2081
2055
|
try {
|
|
2082
|
-
var
|
|
2083
|
-
|
|
2084
|
-
} catch
|
|
2085
|
-
|
|
2056
|
+
var Bn = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2057
|
+
Ge = ((je = Bn.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
|
|
2058
|
+
} catch {
|
|
2059
|
+
Ge = !1;
|
|
2086
2060
|
}
|
|
2087
|
-
var
|
|
2061
|
+
var ut = xn ? (
|
|
2088
2062
|
// Native
|
|
2089
2063
|
function(t, r, n) {
|
|
2090
2064
|
return t.startsWith(r, n);
|
|
@@ -2094,7 +2068,7 @@ var _t = In ? (
|
|
|
2094
2068
|
function(t, r, n) {
|
|
2095
2069
|
return t.slice(n, n + r.length) === r;
|
|
2096
2070
|
}
|
|
2097
|
-
),
|
|
2071
|
+
), Fe = Mn ? String.fromCodePoint : (
|
|
2098
2072
|
// IE11
|
|
2099
2073
|
function() {
|
|
2100
2074
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2106,9 +2080,9 @@ var _t = In ? (
|
|
|
2106
2080
|
}
|
|
2107
2081
|
return n;
|
|
2108
2082
|
}
|
|
2109
|
-
),
|
|
2083
|
+
), ht = (
|
|
2110
2084
|
// native
|
|
2111
|
-
|
|
2085
|
+
Tn ? Object.fromEntries : (
|
|
2112
2086
|
// Ponyfill
|
|
2113
2087
|
function(t) {
|
|
2114
2088
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2118,7 +2092,7 @@ var _t = In ? (
|
|
|
2118
2092
|
return r;
|
|
2119
2093
|
}
|
|
2120
2094
|
)
|
|
2121
|
-
),
|
|
2095
|
+
), Yt = wn ? (
|
|
2122
2096
|
// Native
|
|
2123
2097
|
function(t, r) {
|
|
2124
2098
|
return t.codePointAt(r);
|
|
@@ -2132,7 +2106,7 @@ var _t = In ? (
|
|
|
2132
2106
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2133
2107
|
}
|
|
2134
2108
|
}
|
|
2135
|
-
),
|
|
2109
|
+
), zn = Nn ? (
|
|
2136
2110
|
// Native
|
|
2137
2111
|
function(t) {
|
|
2138
2112
|
return t.trimStart();
|
|
@@ -2140,9 +2114,9 @@ var _t = In ? (
|
|
|
2140
2114
|
) : (
|
|
2141
2115
|
// Ponyfill
|
|
2142
2116
|
function(t) {
|
|
2143
|
-
return t.replace(
|
|
2117
|
+
return t.replace(Cn, "");
|
|
2144
2118
|
}
|
|
2145
|
-
),
|
|
2119
|
+
), On = An ? (
|
|
2146
2120
|
// Native
|
|
2147
2121
|
function(t) {
|
|
2148
2122
|
return t.trimEnd();
|
|
@@ -2150,32 +2124,32 @@ var _t = In ? (
|
|
|
2150
2124
|
) : (
|
|
2151
2125
|
// Ponyfill
|
|
2152
2126
|
function(t) {
|
|
2153
|
-
return t.replace(
|
|
2127
|
+
return t.replace(Sn, "");
|
|
2154
2128
|
}
|
|
2155
2129
|
);
|
|
2156
|
-
function
|
|
2130
|
+
function Kt(e, t) {
|
|
2157
2131
|
return new RegExp(e, t);
|
|
2158
2132
|
}
|
|
2159
|
-
var
|
|
2160
|
-
if (
|
|
2161
|
-
var
|
|
2162
|
-
|
|
2133
|
+
var Ve;
|
|
2134
|
+
if (Ge) {
|
|
2135
|
+
var dt = Kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2136
|
+
Ve = function(t, r) {
|
|
2163
2137
|
var n;
|
|
2164
|
-
|
|
2165
|
-
var i =
|
|
2138
|
+
dt.lastIndex = r;
|
|
2139
|
+
var i = dt.exec(t);
|
|
2166
2140
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2167
2141
|
};
|
|
2168
2142
|
} else
|
|
2169
|
-
|
|
2143
|
+
Ve = function(t, r) {
|
|
2170
2144
|
for (var n = []; ; ) {
|
|
2171
|
-
var i =
|
|
2172
|
-
if (i === void 0 ||
|
|
2145
|
+
var i = Yt(t, r);
|
|
2146
|
+
if (i === void 0 || $t(i) || Rn(i))
|
|
2173
2147
|
break;
|
|
2174
2148
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2175
2149
|
}
|
|
2176
|
-
return
|
|
2150
|
+
return Fe.apply(void 0, n);
|
|
2177
2151
|
};
|
|
2178
|
-
var
|
|
2152
|
+
var In = (
|
|
2179
2153
|
/** @class */
|
|
2180
2154
|
function() {
|
|
2181
2155
|
function e(t, r) {
|
|
@@ -2206,7 +2180,7 @@ var Wn = (
|
|
|
2206
2180
|
if (n)
|
|
2207
2181
|
break;
|
|
2208
2182
|
return this.error(w.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2209
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2183
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
2210
2184
|
var a = this.parseTag(t, r);
|
|
2211
2185
|
if (a.err)
|
|
2212
2186
|
return a;
|
|
@@ -2239,7 +2213,7 @@ var Wn = (
|
|
|
2239
2213
|
return o;
|
|
2240
2214
|
var a = o.val, s = this.clonePosition();
|
|
2241
2215
|
if (this.bumpIf("</")) {
|
|
2242
|
-
if (this.isEOF() || !
|
|
2216
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
2243
2217
|
return this.error(w.INVALID_TAG, N(s, this.clonePosition()));
|
|
2244
2218
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2245
2219
|
return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, N(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2257,7 +2231,7 @@ var Wn = (
|
|
|
2257
2231
|
return this.error(w.INVALID_TAG, N(n, this.clonePosition()));
|
|
2258
2232
|
}, e.prototype.parseTagName = function() {
|
|
2259
2233
|
var t = this.offset();
|
|
2260
|
-
for (this.bump(); !this.isEOF() &&
|
|
2234
|
+
for (this.bump(); !this.isEOF() && Ln(this.char()); )
|
|
2261
2235
|
this.bump();
|
|
2262
2236
|
return this.message.slice(t, this.offset());
|
|
2263
2237
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2286,7 +2260,7 @@ var Wn = (
|
|
|
2286
2260
|
};
|
|
2287
2261
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2288
2262
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2289
|
-
!
|
|
2263
|
+
!jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2290
2264
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2291
2265
|
if (this.isEOF() || this.char() !== 39)
|
|
2292
2266
|
return null;
|
|
@@ -2320,12 +2294,12 @@ var Wn = (
|
|
|
2320
2294
|
r.push(n);
|
|
2321
2295
|
this.bump();
|
|
2322
2296
|
}
|
|
2323
|
-
return
|
|
2297
|
+
return Fe.apply(void 0, r);
|
|
2324
2298
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2325
2299
|
if (this.isEOF())
|
|
2326
2300
|
return null;
|
|
2327
2301
|
var n = this.char();
|
|
2328
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2302
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2329
2303
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2330
2304
|
var n = this.clonePosition();
|
|
2331
2305
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2354,7 +2328,7 @@ var Wn = (
|
|
|
2354
2328
|
return this.error(w.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
2355
2329
|
}
|
|
2356
2330
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2357
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2331
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
2358
2332
|
this.bumpTo(i);
|
|
2359
2333
|
var o = this.clonePosition(), a = N(t, o);
|
|
2360
2334
|
return { value: n, location: a };
|
|
@@ -2373,37 +2347,37 @@ var Wn = (
|
|
|
2373
2347
|
var l = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2374
2348
|
if (d.err)
|
|
2375
2349
|
return d;
|
|
2376
|
-
var m =
|
|
2350
|
+
var m = On(d.val);
|
|
2377
2351
|
if (m.length === 0)
|
|
2378
2352
|
return this.error(w.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
2379
|
-
var
|
|
2380
|
-
u = { style: m, styleLocation:
|
|
2353
|
+
var v = N(l, this.clonePosition());
|
|
2354
|
+
u = { style: m, styleLocation: v };
|
|
2381
2355
|
}
|
|
2382
2356
|
var f = this.tryParseArgumentClose(i);
|
|
2383
2357
|
if (f.err)
|
|
2384
2358
|
return f;
|
|
2385
|
-
var
|
|
2386
|
-
if (u &&
|
|
2387
|
-
var
|
|
2359
|
+
var p = N(i, this.clonePosition());
|
|
2360
|
+
if (u && ut(u?.style, "::", 0)) {
|
|
2361
|
+
var C = zn(u.style.slice(2));
|
|
2388
2362
|
if (s === "number") {
|
|
2389
|
-
var d = this.parseNumberSkeletonFromString(
|
|
2363
|
+
var d = this.parseNumberSkeletonFromString(C, u.styleLocation);
|
|
2390
2364
|
return d.err ? d : {
|
|
2391
|
-
val: { type: B.number, value: n, location:
|
|
2365
|
+
val: { type: B.number, value: n, location: p, style: d.val },
|
|
2392
2366
|
err: null
|
|
2393
2367
|
};
|
|
2394
2368
|
} else {
|
|
2395
|
-
if (
|
|
2396
|
-
return this.error(w.EXPECT_DATE_TIME_SKELETON,
|
|
2397
|
-
var _ =
|
|
2398
|
-
this.locale && (_ =
|
|
2369
|
+
if (C.length === 0)
|
|
2370
|
+
return this.error(w.EXPECT_DATE_TIME_SKELETON, p);
|
|
2371
|
+
var _ = C;
|
|
2372
|
+
this.locale && (_ = bn(C, this.locale));
|
|
2399
2373
|
var m = {
|
|
2400
|
-
type:
|
|
2374
|
+
type: ee.dateTime,
|
|
2401
2375
|
pattern: _,
|
|
2402
2376
|
location: u.styleLocation,
|
|
2403
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2404
|
-
},
|
|
2377
|
+
parsedOptions: this.shouldParseSkeletons ? pn(_) : {}
|
|
2378
|
+
}, y = s === "date" ? B.date : B.time;
|
|
2405
2379
|
return {
|
|
2406
|
-
val: { type:
|
|
2380
|
+
val: { type: y, value: n, location: p, style: m },
|
|
2407
2381
|
err: null
|
|
2408
2382
|
};
|
|
2409
2383
|
}
|
|
@@ -2412,8 +2386,8 @@ var Wn = (
|
|
|
2412
2386
|
val: {
|
|
2413
2387
|
type: s === "number" ? B.number : s === "date" ? B.date : B.time,
|
|
2414
2388
|
value: n,
|
|
2415
|
-
location:
|
|
2416
|
-
style: (o = u
|
|
2389
|
+
location: p,
|
|
2390
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2417
2391
|
},
|
|
2418
2392
|
err: null
|
|
2419
2393
|
};
|
|
@@ -2421,11 +2395,11 @@ var Wn = (
|
|
|
2421
2395
|
case "plural":
|
|
2422
2396
|
case "selectordinal":
|
|
2423
2397
|
case "select": {
|
|
2424
|
-
var
|
|
2398
|
+
var x = this.clonePosition();
|
|
2425
2399
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2426
|
-
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(
|
|
2400
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(x, H({}, x)));
|
|
2427
2401
|
this.bumpSpace();
|
|
2428
|
-
var P = this.parseIdentifierIfPossible(),
|
|
2402
|
+
var P = this.parseIdentifierIfPossible(), b = 0;
|
|
2429
2403
|
if (s !== "select" && P.value === "offset") {
|
|
2430
2404
|
if (!this.bumpIf(":"))
|
|
2431
2405
|
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
|
|
@@ -2433,7 +2407,7 @@ var Wn = (
|
|
|
2433
2407
|
var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2434
2408
|
if (d.err)
|
|
2435
2409
|
return d;
|
|
2436
|
-
this.bumpSpace(), P = this.parseIdentifierIfPossible(),
|
|
2410
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), b = d.val;
|
|
2437
2411
|
}
|
|
2438
2412
|
var z = this.tryParsePluralOrSelectOptions(t, s, r, P);
|
|
2439
2413
|
if (z.err)
|
|
@@ -2441,23 +2415,23 @@ var Wn = (
|
|
|
2441
2415
|
var f = this.tryParseArgumentClose(i);
|
|
2442
2416
|
if (f.err)
|
|
2443
2417
|
return f;
|
|
2444
|
-
var
|
|
2418
|
+
var O = N(i, this.clonePosition());
|
|
2445
2419
|
return s === "select" ? {
|
|
2446
2420
|
val: {
|
|
2447
2421
|
type: B.select,
|
|
2448
2422
|
value: n,
|
|
2449
|
-
options:
|
|
2450
|
-
location:
|
|
2423
|
+
options: ht(z.val),
|
|
2424
|
+
location: O
|
|
2451
2425
|
},
|
|
2452
2426
|
err: null
|
|
2453
2427
|
} : {
|
|
2454
2428
|
val: {
|
|
2455
2429
|
type: B.plural,
|
|
2456
2430
|
value: n,
|
|
2457
|
-
options:
|
|
2458
|
-
offset:
|
|
2431
|
+
options: ht(z.val),
|
|
2432
|
+
offset: b,
|
|
2459
2433
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2460
|
-
location:
|
|
2434
|
+
location: O
|
|
2461
2435
|
},
|
|
2462
2436
|
err: null
|
|
2463
2437
|
};
|
|
@@ -2505,16 +2479,16 @@ var Wn = (
|
|
|
2505
2479
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2506
2480
|
var n = [];
|
|
2507
2481
|
try {
|
|
2508
|
-
n =
|
|
2509
|
-
} catch
|
|
2482
|
+
n = fn(t);
|
|
2483
|
+
} catch {
|
|
2510
2484
|
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
2511
2485
|
}
|
|
2512
2486
|
return {
|
|
2513
2487
|
val: {
|
|
2514
|
-
type:
|
|
2488
|
+
type: ee.number,
|
|
2515
2489
|
tokens: n,
|
|
2516
2490
|
location: r,
|
|
2517
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2491
|
+
parsedOptions: this.shouldParseSkeletons ? kn(n) : {}
|
|
2518
2492
|
},
|
|
2519
2493
|
err: null
|
|
2520
2494
|
};
|
|
@@ -2533,20 +2507,20 @@ var Wn = (
|
|
|
2533
2507
|
if (h.has(u))
|
|
2534
2508
|
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2535
2509
|
u === "other" && (a = !0), this.bumpSpace();
|
|
2536
|
-
var
|
|
2510
|
+
var v = this.clonePosition();
|
|
2537
2511
|
if (!this.bumpIf("{"))
|
|
2538
2512
|
return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
|
|
2539
2513
|
var f = this.parseMessage(t + 1, r, n);
|
|
2540
2514
|
if (f.err)
|
|
2541
2515
|
return f;
|
|
2542
|
-
var
|
|
2543
|
-
if (
|
|
2544
|
-
return
|
|
2516
|
+
var p = this.tryParseArgumentClose(v);
|
|
2517
|
+
if (p.err)
|
|
2518
|
+
return p;
|
|
2545
2519
|
s.push([
|
|
2546
2520
|
u,
|
|
2547
2521
|
{
|
|
2548
2522
|
value: f.val,
|
|
2549
|
-
location: N(
|
|
2523
|
+
location: N(v, this.clonePosition())
|
|
2550
2524
|
}
|
|
2551
2525
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
2552
2526
|
}
|
|
@@ -2562,7 +2536,7 @@ var Wn = (
|
|
|
2562
2536
|
break;
|
|
2563
2537
|
}
|
|
2564
2538
|
var h = N(i, this.clonePosition());
|
|
2565
|
-
return o ? (a *= n,
|
|
2539
|
+
return o ? (a *= n, Pn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2566
2540
|
}, e.prototype.offset = function() {
|
|
2567
2541
|
return this.position.offset;
|
|
2568
2542
|
}, e.prototype.isEOF = function() {
|
|
@@ -2577,7 +2551,7 @@ var Wn = (
|
|
|
2577
2551
|
var t = this.position.offset;
|
|
2578
2552
|
if (t >= this.message.length)
|
|
2579
2553
|
throw Error("out of bound");
|
|
2580
|
-
var r =
|
|
2554
|
+
var r = Yt(this.message, t);
|
|
2581
2555
|
if (r === void 0)
|
|
2582
2556
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2583
2557
|
return r;
|
|
@@ -2596,7 +2570,7 @@ var Wn = (
|
|
|
2596
2570
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
2597
2571
|
}
|
|
2598
2572
|
}, e.prototype.bumpIf = function(t) {
|
|
2599
|
-
if (
|
|
2573
|
+
if (ut(this.message, t, this.offset())) {
|
|
2600
2574
|
for (var r = 0; r < t.length; r++)
|
|
2601
2575
|
this.bump();
|
|
2602
2576
|
return !0;
|
|
@@ -2618,57 +2592,57 @@ var Wn = (
|
|
|
2618
2592
|
break;
|
|
2619
2593
|
}
|
|
2620
2594
|
}, e.prototype.bumpSpace = function() {
|
|
2621
|
-
for (; !this.isEOF() &&
|
|
2595
|
+
for (; !this.isEOF() && $t(this.char()); )
|
|
2622
2596
|
this.bump();
|
|
2623
2597
|
}, e.prototype.peek = function() {
|
|
2624
2598
|
if (this.isEOF())
|
|
2625
2599
|
return null;
|
|
2626
2600
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
2627
|
-
return n
|
|
2601
|
+
return n ?? null;
|
|
2628
2602
|
}, e;
|
|
2629
2603
|
}()
|
|
2630
2604
|
);
|
|
2631
|
-
function
|
|
2605
|
+
function Xe(e) {
|
|
2632
2606
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2633
2607
|
}
|
|
2634
|
-
function
|
|
2635
|
-
return
|
|
2608
|
+
function jn(e) {
|
|
2609
|
+
return Xe(e) || e === 47;
|
|
2636
2610
|
}
|
|
2637
|
-
function
|
|
2611
|
+
function Ln(e) {
|
|
2638
2612
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
2639
2613
|
}
|
|
2640
|
-
function
|
|
2614
|
+
function $t(e) {
|
|
2641
2615
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2642
2616
|
}
|
|
2643
|
-
function
|
|
2617
|
+
function Rn(e) {
|
|
2644
2618
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
2645
2619
|
}
|
|
2646
|
-
function
|
|
2620
|
+
function qe(e) {
|
|
2647
2621
|
e.forEach(function(t) {
|
|
2648
|
-
if (delete t.location,
|
|
2622
|
+
if (delete t.location, Ft(t) || Vt(t))
|
|
2649
2623
|
for (var r in t.options)
|
|
2650
|
-
delete t.options[r].location,
|
|
2624
|
+
delete t.options[r].location, qe(t.options[r].value);
|
|
2651
2625
|
else
|
|
2652
|
-
|
|
2626
|
+
Ut(t) && qt(t.style) || (Dt(t) || Gt(t)) && De(t.style) ? delete t.style.location : Xt(t) && qe(t.children);
|
|
2653
2627
|
});
|
|
2654
2628
|
}
|
|
2655
|
-
function
|
|
2629
|
+
function Un(e, t) {
|
|
2656
2630
|
t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
2657
|
-
var r = new
|
|
2631
|
+
var r = new In(e, t).parse();
|
|
2658
2632
|
if (r.err) {
|
|
2659
2633
|
var n = SyntaxError(w[r.err.kind]);
|
|
2660
2634
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
2661
2635
|
}
|
|
2662
|
-
return t
|
|
2636
|
+
return t?.captureLocation || qe(r.val), r.val;
|
|
2663
2637
|
}
|
|
2664
|
-
var
|
|
2638
|
+
var te;
|
|
2665
2639
|
(function(e) {
|
|
2666
2640
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
2667
|
-
})(
|
|
2668
|
-
var
|
|
2641
|
+
})(te || (te = {}));
|
|
2642
|
+
var Ae = (
|
|
2669
2643
|
/** @class */
|
|
2670
2644
|
function(e) {
|
|
2671
|
-
|
|
2645
|
+
Ne(t, e);
|
|
2672
2646
|
function t(r, n, i) {
|
|
2673
2647
|
var o = e.call(this, r) || this;
|
|
2674
2648
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -2677,48 +2651,48 @@ var Be = (
|
|
|
2677
2651
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
2678
2652
|
}, t;
|
|
2679
2653
|
}(Error)
|
|
2680
|
-
),
|
|
2654
|
+
), mt = (
|
|
2681
2655
|
/** @class */
|
|
2682
2656
|
function(e) {
|
|
2683
|
-
|
|
2657
|
+
Ne(t, e);
|
|
2684
2658
|
function t(r, n, i, o) {
|
|
2685
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
2659
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
|
|
2686
2660
|
}
|
|
2687
2661
|
return t;
|
|
2688
|
-
}(
|
|
2689
|
-
),
|
|
2662
|
+
}(Ae)
|
|
2663
|
+
), Dn = (
|
|
2690
2664
|
/** @class */
|
|
2691
2665
|
function(e) {
|
|
2692
|
-
|
|
2666
|
+
Ne(t, e);
|
|
2693
2667
|
function t(r, n, i) {
|
|
2694
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
2668
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
|
|
2695
2669
|
}
|
|
2696
2670
|
return t;
|
|
2697
|
-
}(
|
|
2698
|
-
),
|
|
2671
|
+
}(Ae)
|
|
2672
|
+
), Gn = (
|
|
2699
2673
|
/** @class */
|
|
2700
2674
|
function(e) {
|
|
2701
|
-
|
|
2675
|
+
Ne(t, e);
|
|
2702
2676
|
function t(r, n) {
|
|
2703
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
2677
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
|
|
2704
2678
|
}
|
|
2705
2679
|
return t;
|
|
2706
|
-
}(
|
|
2680
|
+
}(Ae)
|
|
2707
2681
|
), D;
|
|
2708
2682
|
(function(e) {
|
|
2709
2683
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
2710
2684
|
})(D || (D = {}));
|
|
2711
|
-
function
|
|
2685
|
+
function Fn(e) {
|
|
2712
2686
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
2713
2687
|
var n = t[t.length - 1];
|
|
2714
2688
|
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
2715
2689
|
}, []);
|
|
2716
2690
|
}
|
|
2717
|
-
function
|
|
2691
|
+
function Vn(e) {
|
|
2718
2692
|
return typeof e == "function";
|
|
2719
2693
|
}
|
|
2720
|
-
function
|
|
2721
|
-
if (e.length === 1 &&
|
|
2694
|
+
function Se(e, t, r, n, i, o, a) {
|
|
2695
|
+
if (e.length === 1 && at(e[0]))
|
|
2722
2696
|
return [
|
|
2723
2697
|
{
|
|
2724
2698
|
type: D.literal,
|
|
@@ -2727,14 +2701,14 @@ function Te(e, t, r, n, i, o, a) {
|
|
|
2727
2701
|
];
|
|
2728
2702
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
2729
2703
|
var l = u[h];
|
|
2730
|
-
if (
|
|
2704
|
+
if (at(l)) {
|
|
2731
2705
|
s.push({
|
|
2732
2706
|
type: D.literal,
|
|
2733
2707
|
value: l.value
|
|
2734
2708
|
});
|
|
2735
2709
|
continue;
|
|
2736
2710
|
}
|
|
2737
|
-
if (
|
|
2711
|
+
if (dn(l)) {
|
|
2738
2712
|
typeof o == "number" && s.push({
|
|
2739
2713
|
type: D.literal,
|
|
2740
2714
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -2743,89 +2717,89 @@ function Te(e, t, r, n, i, o, a) {
|
|
|
2743
2717
|
}
|
|
2744
2718
|
var d = l.value;
|
|
2745
2719
|
if (!(i && d in i))
|
|
2746
|
-
throw new
|
|
2720
|
+
throw new Gn(d, a);
|
|
2747
2721
|
var m = i[d];
|
|
2748
|
-
if (
|
|
2722
|
+
if (hn(l)) {
|
|
2749
2723
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
2750
2724
|
type: typeof m == "string" ? D.literal : D.object,
|
|
2751
2725
|
value: m
|
|
2752
2726
|
});
|
|
2753
2727
|
continue;
|
|
2754
2728
|
}
|
|
2755
|
-
if (
|
|
2756
|
-
var
|
|
2729
|
+
if (Dt(l)) {
|
|
2730
|
+
var v = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
2757
2731
|
s.push({
|
|
2758
2732
|
type: D.literal,
|
|
2759
|
-
value: r.getDateTimeFormat(t,
|
|
2733
|
+
value: r.getDateTimeFormat(t, v).format(m)
|
|
2760
2734
|
});
|
|
2761
2735
|
continue;
|
|
2762
2736
|
}
|
|
2763
|
-
if (
|
|
2764
|
-
var
|
|
2737
|
+
if (Gt(l)) {
|
|
2738
|
+
var v = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
2765
2739
|
s.push({
|
|
2766
2740
|
type: D.literal,
|
|
2767
|
-
value: r.getDateTimeFormat(t,
|
|
2741
|
+
value: r.getDateTimeFormat(t, v).format(m)
|
|
2768
2742
|
});
|
|
2769
2743
|
continue;
|
|
2770
2744
|
}
|
|
2771
|
-
if (
|
|
2772
|
-
var
|
|
2773
|
-
|
|
2745
|
+
if (Ut(l)) {
|
|
2746
|
+
var v = typeof l.style == "string" ? n.number[l.style] : qt(l.style) ? l.style.parsedOptions : void 0;
|
|
2747
|
+
v && v.scale && (m = m * (v.scale || 1)), s.push({
|
|
2774
2748
|
type: D.literal,
|
|
2775
|
-
value: r.getNumberFormat(t,
|
|
2749
|
+
value: r.getNumberFormat(t, v).format(m)
|
|
2776
2750
|
});
|
|
2777
2751
|
continue;
|
|
2778
2752
|
}
|
|
2779
|
-
if (
|
|
2780
|
-
var f = l.children,
|
|
2781
|
-
if (!
|
|
2782
|
-
throw new
|
|
2783
|
-
var _ =
|
|
2784
|
-
return
|
|
2753
|
+
if (Xt(l)) {
|
|
2754
|
+
var f = l.children, p = l.value, C = i[p];
|
|
2755
|
+
if (!Vn(C))
|
|
2756
|
+
throw new Dn(p, "function", a);
|
|
2757
|
+
var _ = Se(f, t, r, n, i, o), y = C(_.map(function(b) {
|
|
2758
|
+
return b.value;
|
|
2785
2759
|
}));
|
|
2786
|
-
Array.isArray(
|
|
2760
|
+
Array.isArray(y) || (y = [y]), s.push.apply(s, y.map(function(b) {
|
|
2787
2761
|
return {
|
|
2788
|
-
type: typeof
|
|
2789
|
-
value:
|
|
2762
|
+
type: typeof b == "string" ? D.literal : D.object,
|
|
2763
|
+
value: b
|
|
2790
2764
|
};
|
|
2791
2765
|
}));
|
|
2792
2766
|
}
|
|
2793
|
-
if (
|
|
2794
|
-
var
|
|
2795
|
-
if (!
|
|
2796
|
-
throw new
|
|
2797
|
-
s.push.apply(s,
|
|
2767
|
+
if (Ft(l)) {
|
|
2768
|
+
var x = l.options[m] || l.options.other;
|
|
2769
|
+
if (!x)
|
|
2770
|
+
throw new mt(l.value, m, Object.keys(l.options), a);
|
|
2771
|
+
s.push.apply(s, Se(x.value, t, r, n, i));
|
|
2798
2772
|
continue;
|
|
2799
2773
|
}
|
|
2800
|
-
if (
|
|
2801
|
-
var
|
|
2802
|
-
if (!
|
|
2774
|
+
if (Vt(l)) {
|
|
2775
|
+
var x = l.options["=".concat(m)];
|
|
2776
|
+
if (!x) {
|
|
2803
2777
|
if (!Intl.PluralRules)
|
|
2804
|
-
throw new
|
|
2778
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
2805
2779
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2806
|
-
`,
|
|
2780
|
+
`, te.MISSING_INTL_API, a);
|
|
2807
2781
|
var P = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
|
|
2808
|
-
|
|
2782
|
+
x = l.options[P] || l.options.other;
|
|
2809
2783
|
}
|
|
2810
|
-
if (!
|
|
2811
|
-
throw new
|
|
2812
|
-
s.push.apply(s,
|
|
2784
|
+
if (!x)
|
|
2785
|
+
throw new mt(l.value, m, Object.keys(l.options), a);
|
|
2786
|
+
s.push.apply(s, Se(x.value, t, r, n, i, m - (l.offset || 0)));
|
|
2813
2787
|
continue;
|
|
2814
2788
|
}
|
|
2815
2789
|
}
|
|
2816
|
-
return
|
|
2790
|
+
return Fn(s);
|
|
2817
2791
|
}
|
|
2818
|
-
function
|
|
2792
|
+
function Xn(e, t) {
|
|
2819
2793
|
return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
2820
2794
|
return r[n] = H(H({}, e[n]), t[n] || {}), r;
|
|
2821
2795
|
}, {})) : e;
|
|
2822
2796
|
}
|
|
2823
|
-
function
|
|
2797
|
+
function qn(e, t) {
|
|
2824
2798
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
2825
|
-
return r[n] =
|
|
2799
|
+
return r[n] = Xn(e[n], t[n]), r;
|
|
2826
2800
|
}, H({}, e)) : e;
|
|
2827
2801
|
}
|
|
2828
|
-
function
|
|
2802
|
+
function Le(e) {
|
|
2829
2803
|
return {
|
|
2830
2804
|
create: function() {
|
|
2831
2805
|
return {
|
|
@@ -2839,39 +2813,39 @@ function De(e) {
|
|
|
2839
2813
|
}
|
|
2840
2814
|
};
|
|
2841
2815
|
}
|
|
2842
|
-
function
|
|
2816
|
+
function Wn(e) {
|
|
2843
2817
|
return e === void 0 && (e = {
|
|
2844
2818
|
number: {},
|
|
2845
2819
|
dateTime: {},
|
|
2846
2820
|
pluralRules: {}
|
|
2847
2821
|
}), {
|
|
2848
|
-
getNumberFormat:
|
|
2822
|
+
getNumberFormat: Oe(function() {
|
|
2849
2823
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2850
2824
|
r[n] = arguments[n];
|
|
2851
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
2825
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ze([void 0], r, !1)))();
|
|
2852
2826
|
}, {
|
|
2853
|
-
cache:
|
|
2854
|
-
strategy:
|
|
2827
|
+
cache: Le(e.number),
|
|
2828
|
+
strategy: Ie.variadic
|
|
2855
2829
|
}),
|
|
2856
|
-
getDateTimeFormat:
|
|
2830
|
+
getDateTimeFormat: Oe(function() {
|
|
2857
2831
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2858
2832
|
r[n] = arguments[n];
|
|
2859
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
2833
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ze([void 0], r, !1)))();
|
|
2860
2834
|
}, {
|
|
2861
|
-
cache:
|
|
2862
|
-
strategy:
|
|
2835
|
+
cache: Le(e.dateTime),
|
|
2836
|
+
strategy: Ie.variadic
|
|
2863
2837
|
}),
|
|
2864
|
-
getPluralRules:
|
|
2838
|
+
getPluralRules: Oe(function() {
|
|
2865
2839
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2866
2840
|
r[n] = arguments[n];
|
|
2867
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
2841
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ze([void 0], r, !1)))();
|
|
2868
2842
|
}, {
|
|
2869
|
-
cache:
|
|
2870
|
-
strategy:
|
|
2843
|
+
cache: Le(e.pluralRules),
|
|
2844
|
+
strategy: Ie.variadic
|
|
2871
2845
|
})
|
|
2872
2846
|
};
|
|
2873
2847
|
}
|
|
2874
|
-
var
|
|
2848
|
+
var Zn = (
|
|
2875
2849
|
/** @class */
|
|
2876
2850
|
function() {
|
|
2877
2851
|
function e(t, r, n, i) {
|
|
@@ -2890,7 +2864,7 @@ var oi = (
|
|
|
2890
2864
|
}, []);
|
|
2891
2865
|
return l.length <= 1 ? l[0] || "" : l;
|
|
2892
2866
|
}, this.formatToParts = function(h) {
|
|
2893
|
-
return
|
|
2867
|
+
return Se(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
2894
2868
|
}, this.resolvedOptions = function() {
|
|
2895
2869
|
var h;
|
|
2896
2870
|
return {
|
|
@@ -2903,13 +2877,13 @@ var oi = (
|
|
|
2903
2877
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
2904
2878
|
var a = i || {};
|
|
2905
2879
|
a.formatters;
|
|
2906
|
-
var s =
|
|
2880
|
+
var s = rn(a, ["formatters"]);
|
|
2907
2881
|
this.ast = e.__parse(t, H(H({}, s), { locale: this.resolvedLocale }));
|
|
2908
2882
|
} else
|
|
2909
2883
|
this.ast = t;
|
|
2910
2884
|
if (!Array.isArray(this.ast))
|
|
2911
2885
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
2912
|
-
this.formats =
|
|
2886
|
+
this.formats = qn(e.formats, n), this.formatters = i && i.formatters || Wn(this.formatterCache);
|
|
2913
2887
|
}
|
|
2914
2888
|
return Object.defineProperty(e, "defaultLocale", {
|
|
2915
2889
|
get: function() {
|
|
@@ -2918,11 +2892,11 @@ var oi = (
|
|
|
2918
2892
|
enumerable: !1,
|
|
2919
2893
|
configurable: !0
|
|
2920
2894
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
2921
|
-
if (typeof Intl.Locale
|
|
2895
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
2922
2896
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
2923
2897
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
2924
2898
|
}
|
|
2925
|
-
}, e.__parse =
|
|
2899
|
+
}, e.__parse = Un, e.formats = {
|
|
2926
2900
|
number: {
|
|
2927
2901
|
integer: {
|
|
2928
2902
|
maximumFractionDigits: 0
|
|
@@ -2983,7 +2957,7 @@ var oi = (
|
|
|
2983
2957
|
}, e;
|
|
2984
2958
|
}()
|
|
2985
2959
|
);
|
|
2986
|
-
function
|
|
2960
|
+
function Jn(e, t) {
|
|
2987
2961
|
if (t == null)
|
|
2988
2962
|
return;
|
|
2989
2963
|
if (t in e)
|
|
@@ -3004,92 +2978,92 @@ function ai(e, t) {
|
|
|
3004
2978
|
n = void 0;
|
|
3005
2979
|
return n;
|
|
3006
2980
|
}
|
|
3007
|
-
const
|
|
2981
|
+
const Z = {}, Qn = (e, t, r) => r && (t in Z || (Z[t] = {}), e in Z[t] || (Z[t][e] = r), r), er = (e, t) => {
|
|
3008
2982
|
if (t == null)
|
|
3009
2983
|
return;
|
|
3010
|
-
if (t in
|
|
3011
|
-
return
|
|
3012
|
-
const r =
|
|
2984
|
+
if (t in Z && e in Z[t])
|
|
2985
|
+
return Z[t][e];
|
|
2986
|
+
const r = He(t);
|
|
3013
2987
|
for (let n = 0; n < r.length; n++) {
|
|
3014
|
-
const i = r[n], o =
|
|
2988
|
+
const i = r[n], o = Kn(i, e);
|
|
3015
2989
|
if (o)
|
|
3016
|
-
return
|
|
2990
|
+
return Qn(e, t, o);
|
|
3017
2991
|
}
|
|
3018
2992
|
};
|
|
3019
|
-
let
|
|
3020
|
-
const
|
|
3021
|
-
function
|
|
3022
|
-
return
|
|
2993
|
+
let Ke;
|
|
2994
|
+
const fe = we({});
|
|
2995
|
+
function Yn(e) {
|
|
2996
|
+
return Ke[e] || null;
|
|
3023
2997
|
}
|
|
3024
|
-
function
|
|
3025
|
-
return e in
|
|
2998
|
+
function tr(e) {
|
|
2999
|
+
return e in Ke;
|
|
3026
3000
|
}
|
|
3027
|
-
function
|
|
3028
|
-
if (!
|
|
3001
|
+
function Kn(e, t) {
|
|
3002
|
+
if (!tr(e))
|
|
3029
3003
|
return null;
|
|
3030
|
-
const r =
|
|
3031
|
-
return
|
|
3004
|
+
const r = Yn(e);
|
|
3005
|
+
return Jn(r, t);
|
|
3032
3006
|
}
|
|
3033
|
-
function
|
|
3007
|
+
function $n(e) {
|
|
3034
3008
|
if (e == null)
|
|
3035
3009
|
return;
|
|
3036
|
-
const t =
|
|
3010
|
+
const t = He(e);
|
|
3037
3011
|
for (let r = 0; r < t.length; r++) {
|
|
3038
3012
|
const n = t[r];
|
|
3039
|
-
if (
|
|
3013
|
+
if (tr(n))
|
|
3040
3014
|
return n;
|
|
3041
3015
|
}
|
|
3042
3016
|
}
|
|
3043
|
-
function
|
|
3044
|
-
delete
|
|
3017
|
+
function rr(e, ...t) {
|
|
3018
|
+
delete Z[e], fe.update((r) => (r[e] = tn.all([r[e] || {}, ...t]), r));
|
|
3045
3019
|
}
|
|
3046
|
-
|
|
3047
|
-
[
|
|
3020
|
+
ne(
|
|
3021
|
+
[fe],
|
|
3048
3022
|
([e]) => Object.keys(e)
|
|
3049
3023
|
);
|
|
3050
|
-
|
|
3051
|
-
const
|
|
3052
|
-
function
|
|
3053
|
-
|
|
3024
|
+
fe.subscribe((e) => Ke = e);
|
|
3025
|
+
const xe = {};
|
|
3026
|
+
function ei(e, t) {
|
|
3027
|
+
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3054
3028
|
}
|
|
3055
|
-
function
|
|
3056
|
-
return
|
|
3029
|
+
function nr(e) {
|
|
3030
|
+
return xe[e];
|
|
3057
3031
|
}
|
|
3058
|
-
function
|
|
3059
|
-
return
|
|
3060
|
-
const r =
|
|
3032
|
+
function ti(e) {
|
|
3033
|
+
return He(e).map((t) => {
|
|
3034
|
+
const r = nr(t);
|
|
3061
3035
|
return [t, r ? [...r] : []];
|
|
3062
3036
|
}).filter(([, t]) => t.length > 0);
|
|
3063
3037
|
}
|
|
3064
|
-
function
|
|
3065
|
-
return e == null ? !1 :
|
|
3038
|
+
function We(e) {
|
|
3039
|
+
return e == null ? !1 : He(e).some(
|
|
3066
3040
|
(t) => {
|
|
3067
3041
|
var r;
|
|
3068
|
-
return (r =
|
|
3042
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3069
3043
|
}
|
|
3070
3044
|
);
|
|
3071
3045
|
}
|
|
3072
|
-
function
|
|
3046
|
+
function ri(e, t) {
|
|
3073
3047
|
return Promise.all(
|
|
3074
|
-
t.map((n) => (
|
|
3075
|
-
).then((n) =>
|
|
3048
|
+
t.map((n) => (ei(e, n), n().then((i) => i.default || i)))
|
|
3049
|
+
).then((n) => rr(e, ...n));
|
|
3076
3050
|
}
|
|
3077
|
-
const
|
|
3078
|
-
function
|
|
3079
|
-
if (!
|
|
3080
|
-
return e in
|
|
3081
|
-
const t =
|
|
3082
|
-
return
|
|
3051
|
+
const ue = {};
|
|
3052
|
+
function ir(e) {
|
|
3053
|
+
if (!We(e))
|
|
3054
|
+
return e in ue ? ue[e] : Promise.resolve();
|
|
3055
|
+
const t = ti(e);
|
|
3056
|
+
return ue[e] = Promise.all(
|
|
3083
3057
|
t.map(
|
|
3084
|
-
([r, n]) =>
|
|
3058
|
+
([r, n]) => ri(r, n)
|
|
3085
3059
|
)
|
|
3086
3060
|
).then(() => {
|
|
3087
|
-
if (
|
|
3088
|
-
return
|
|
3089
|
-
delete
|
|
3090
|
-
}),
|
|
3061
|
+
if (We(e))
|
|
3062
|
+
return ir(e);
|
|
3063
|
+
delete ue[e];
|
|
3064
|
+
}), ue[e];
|
|
3091
3065
|
}
|
|
3092
|
-
const
|
|
3066
|
+
const ni = {
|
|
3093
3067
|
number: {
|
|
3094
3068
|
scientific: { notation: "scientific" },
|
|
3095
3069
|
engineering: { notation: "engineering" },
|
|
@@ -3118,150 +3092,150 @@ const gi = {
|
|
|
3118
3092
|
timeZoneName: "short"
|
|
3119
3093
|
}
|
|
3120
3094
|
}
|
|
3121
|
-
},
|
|
3095
|
+
}, ii = {
|
|
3122
3096
|
fallbackLocale: null,
|
|
3123
3097
|
loadingDelay: 200,
|
|
3124
|
-
formats:
|
|
3098
|
+
formats: ni,
|
|
3125
3099
|
warnOnMissingMessages: !0,
|
|
3126
3100
|
handleMissingMessage: void 0,
|
|
3127
3101
|
ignoreTag: !0
|
|
3128
|
-
},
|
|
3129
|
-
function
|
|
3130
|
-
return
|
|
3102
|
+
}, oi = ii;
|
|
3103
|
+
function re() {
|
|
3104
|
+
return oi;
|
|
3131
3105
|
}
|
|
3132
|
-
const
|
|
3133
|
-
var
|
|
3134
|
-
for (var r in t
|
|
3135
|
-
|
|
3136
|
-
if (
|
|
3137
|
-
for (var r of
|
|
3138
|
-
|
|
3106
|
+
const Re = we(!1);
|
|
3107
|
+
var ai = Object.defineProperty, si = Object.defineProperties, li = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
|
|
3108
|
+
for (var r in t)
|
|
3109
|
+
ci.call(t, r) && gt(e, r, t[r]);
|
|
3110
|
+
if (pt)
|
|
3111
|
+
for (var r of pt(t))
|
|
3112
|
+
ui.call(t, r) && gt(e, r, t[r]);
|
|
3139
3113
|
return e;
|
|
3140
|
-
},
|
|
3141
|
-
let
|
|
3142
|
-
const
|
|
3143
|
-
function
|
|
3114
|
+
}, di = (e, t) => si(e, li(t));
|
|
3115
|
+
let Ze;
|
|
3116
|
+
const Me = we(null);
|
|
3117
|
+
function ft(e) {
|
|
3144
3118
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3145
3119
|
}
|
|
3146
|
-
function
|
|
3147
|
-
const r =
|
|
3148
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3120
|
+
function He(e, t = re().fallbackLocale) {
|
|
3121
|
+
const r = ft(e);
|
|
3122
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
|
|
3149
3123
|
}
|
|
3150
|
-
function
|
|
3151
|
-
return
|
|
3124
|
+
function Q() {
|
|
3125
|
+
return Ze ?? void 0;
|
|
3152
3126
|
}
|
|
3153
|
-
|
|
3154
|
-
|
|
3127
|
+
Me.subscribe((e) => {
|
|
3128
|
+
Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3155
3129
|
});
|
|
3156
|
-
const
|
|
3157
|
-
if (e &&
|
|
3158
|
-
const { loadingDelay: t } =
|
|
3130
|
+
const mi = (e) => {
|
|
3131
|
+
if (e && $n(e) && We(e)) {
|
|
3132
|
+
const { loadingDelay: t } = re();
|
|
3159
3133
|
let r;
|
|
3160
|
-
return typeof window
|
|
3161
|
-
() =>
|
|
3134
|
+
return typeof window < "u" && Q() != null && t ? r = window.setTimeout(
|
|
3135
|
+
() => Re.set(!0),
|
|
3162
3136
|
t
|
|
3163
|
-
) :
|
|
3164
|
-
|
|
3137
|
+
) : Re.set(!0), ir(e).then(() => {
|
|
3138
|
+
Me.set(e);
|
|
3165
3139
|
}).finally(() => {
|
|
3166
|
-
clearTimeout(r),
|
|
3140
|
+
clearTimeout(r), Re.set(!1);
|
|
3167
3141
|
});
|
|
3168
3142
|
}
|
|
3169
|
-
return
|
|
3170
|
-
},
|
|
3171
|
-
set:
|
|
3172
|
-
}),
|
|
3143
|
+
return Me.set(e);
|
|
3144
|
+
}, ie = di(hi({}, Me), {
|
|
3145
|
+
set: mi
|
|
3146
|
+
}), Pe = (e) => {
|
|
3173
3147
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3174
3148
|
return (n) => {
|
|
3175
3149
|
const i = JSON.stringify(n);
|
|
3176
3150
|
return i in t ? t[i] : t[i] = e(n);
|
|
3177
3151
|
};
|
|
3178
3152
|
};
|
|
3179
|
-
var
|
|
3153
|
+
var pi = Object.defineProperty, Te = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $e = (e, t) => {
|
|
3180
3154
|
for (var r in t || (t = {}))
|
|
3181
|
-
|
|
3182
|
-
if (
|
|
3183
|
-
for (var r of
|
|
3184
|
-
|
|
3155
|
+
or.call(t, r) && _t(e, r, t[r]);
|
|
3156
|
+
if (Te)
|
|
3157
|
+
for (var r of Te(t))
|
|
3158
|
+
ar.call(t, r) && _t(e, r, t[r]);
|
|
3185
3159
|
return e;
|
|
3186
|
-
},
|
|
3160
|
+
}, oe = (e, t) => {
|
|
3187
3161
|
var r = {};
|
|
3188
3162
|
for (var n in e)
|
|
3189
|
-
|
|
3190
|
-
if (e != null &&
|
|
3191
|
-
for (var n of
|
|
3192
|
-
t.indexOf(n) < 0 &&
|
|
3163
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3164
|
+
if (e != null && Te)
|
|
3165
|
+
for (var n of Te(e))
|
|
3166
|
+
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
3193
3167
|
return r;
|
|
3194
3168
|
};
|
|
3195
|
-
const
|
|
3196
|
-
const { formats: r } =
|
|
3169
|
+
const me = (e, t) => {
|
|
3170
|
+
const { formats: r } = re();
|
|
3197
3171
|
if (e in r && t in r[e])
|
|
3198
3172
|
return r[e][t];
|
|
3199
3173
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3200
|
-
},
|
|
3174
|
+
}, gi = Pe(
|
|
3201
3175
|
(e) => {
|
|
3202
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3176
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3203
3177
|
if (r == null)
|
|
3204
3178
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3205
|
-
return n && (i =
|
|
3179
|
+
return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
|
|
3206
3180
|
}
|
|
3207
|
-
),
|
|
3181
|
+
), fi = Pe(
|
|
3208
3182
|
(e) => {
|
|
3209
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3183
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3210
3184
|
if (r == null)
|
|
3211
3185
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3212
|
-
return n ? i =
|
|
3186
|
+
return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3213
3187
|
}
|
|
3214
|
-
),
|
|
3188
|
+
), _i = Pe(
|
|
3215
3189
|
(e) => {
|
|
3216
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3190
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
3217
3191
|
if (r == null)
|
|
3218
3192
|
throw new Error(
|
|
3219
3193
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3220
3194
|
);
|
|
3221
|
-
return n ? i =
|
|
3195
|
+
return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3222
3196
|
}
|
|
3223
|
-
),
|
|
3197
|
+
), yi = (e = {}) => {
|
|
3224
3198
|
var t = e, {
|
|
3225
|
-
locale: r =
|
|
3226
|
-
} = t, n =
|
|
3199
|
+
locale: r = Q()
|
|
3200
|
+
} = t, n = oe(t, [
|
|
3227
3201
|
"locale"
|
|
3228
3202
|
]);
|
|
3229
|
-
return
|
|
3230
|
-
},
|
|
3203
|
+
return gi($e({ locale: r }, n));
|
|
3204
|
+
}, vi = (e = {}) => {
|
|
3231
3205
|
var t = e, {
|
|
3232
|
-
locale: r =
|
|
3233
|
-
} = t, n =
|
|
3206
|
+
locale: r = Q()
|
|
3207
|
+
} = t, n = oe(t, [
|
|
3234
3208
|
"locale"
|
|
3235
3209
|
]);
|
|
3236
|
-
return
|
|
3237
|
-
},
|
|
3210
|
+
return fi($e({ locale: r }, n));
|
|
3211
|
+
}, ki = (e = {}) => {
|
|
3238
3212
|
var t = e, {
|
|
3239
|
-
locale: r =
|
|
3240
|
-
} = t, n =
|
|
3213
|
+
locale: r = Q()
|
|
3214
|
+
} = t, n = oe(t, [
|
|
3241
3215
|
"locale"
|
|
3242
3216
|
]);
|
|
3243
|
-
return
|
|
3244
|
-
},
|
|
3217
|
+
return _i($e({ locale: r }, n));
|
|
3218
|
+
}, bi = Pe(
|
|
3245
3219
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3246
|
-
(e, t =
|
|
3247
|
-
ignoreTag:
|
|
3220
|
+
(e, t = Q()) => new Zn(e, t, re().formats, {
|
|
3221
|
+
ignoreTag: re().ignoreTag
|
|
3248
3222
|
})
|
|
3249
|
-
),
|
|
3223
|
+
), Ei = (e, t = {}) => {
|
|
3250
3224
|
var r, n, i, o;
|
|
3251
3225
|
let a = t;
|
|
3252
3226
|
typeof e == "object" && (a = e, e = a.id);
|
|
3253
3227
|
const {
|
|
3254
3228
|
values: s,
|
|
3255
|
-
locale: h =
|
|
3229
|
+
locale: h = Q(),
|
|
3256
3230
|
default: u
|
|
3257
3231
|
} = a;
|
|
3258
3232
|
if (h == null)
|
|
3259
3233
|
throw new Error(
|
|
3260
3234
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3261
3235
|
);
|
|
3262
|
-
let l =
|
|
3236
|
+
let l = er(e, h);
|
|
3263
3237
|
if (!l)
|
|
3264
|
-
l = (o = (i = (n = (r =
|
|
3238
|
+
l = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3265
3239
|
else if (typeof l != "string")
|
|
3266
3240
|
return console.warn(
|
|
3267
3241
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3270,7 +3244,7 @@ const fe = (e, t) => {
|
|
|
3270
3244
|
return l;
|
|
3271
3245
|
let d = l;
|
|
3272
3246
|
try {
|
|
3273
|
-
d =
|
|
3247
|
+
d = bi(l, h).format(s);
|
|
3274
3248
|
} catch (m) {
|
|
3275
3249
|
m instanceof Error && console.warn(
|
|
3276
3250
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3278,18 +3252,18 @@ const fe = (e, t) => {
|
|
|
3278
3252
|
);
|
|
3279
3253
|
}
|
|
3280
3254
|
return d;
|
|
3281
|
-
},
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
function
|
|
3287
|
-
|
|
3255
|
+
}, Ci = (e, t) => ki(t).format(e), Si = (e, t) => vi(t).format(e), xi = (e, t) => yi(t).format(e), Mi = (e, t = Q()) => er(e, t), Ti = ne([ie, fe], () => Ei);
|
|
3256
|
+
ne([ie], () => Ci);
|
|
3257
|
+
ne([ie], () => Si);
|
|
3258
|
+
ne([ie], () => xi);
|
|
3259
|
+
ne([ie, fe], () => Mi);
|
|
3260
|
+
function yt(e, t) {
|
|
3261
|
+
rr(e, t);
|
|
3288
3262
|
}
|
|
3289
|
-
function
|
|
3290
|
-
|
|
3263
|
+
function wi(e) {
|
|
3264
|
+
ie.set(e);
|
|
3291
3265
|
}
|
|
3292
|
-
const
|
|
3266
|
+
const vt = {
|
|
3293
3267
|
en: {
|
|
3294
3268
|
invalidUrl: "Failed to construct 'URL': Invalid URL",
|
|
3295
3269
|
fetchConsentsError: "Error: Could not fetch consents.",
|
|
@@ -3849,7 +3823,7 @@ const Mt = {
|
|
|
3849
3823
|
wrongModalConfig: "Houve um erro na configuração! Nenhum consentimento expirado encontrado."
|
|
3850
3824
|
}
|
|
3851
3825
|
};
|
|
3852
|
-
if (typeof window
|
|
3826
|
+
if (typeof window < "u") {
|
|
3853
3827
|
let e = function(t) {
|
|
3854
3828
|
return function(...r) {
|
|
3855
3829
|
try {
|
|
@@ -3861,18 +3835,18 @@ if (typeof window != "undefined") {
|
|
|
3861
3835
|
}
|
|
3862
3836
|
};
|
|
3863
3837
|
};
|
|
3864
|
-
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-
|
|
3838
|
+
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-CfVy1Wef.js").then((t) => t.G).then(({ default: t }) => {
|
|
3865
3839
|
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
|
|
3866
3840
|
});
|
|
3867
3841
|
}
|
|
3868
|
-
function
|
|
3842
|
+
function Ni(e) {
|
|
3869
3843
|
let t, r;
|
|
3870
3844
|
return {
|
|
3871
3845
|
c() {
|
|
3872
|
-
t =
|
|
3846
|
+
t = nt("svg"), r = nt("path"), E(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), E(t, "xmlns", "http://www.w3.org/2000/svg"), E(t, "viewBox", "0 0 512 512");
|
|
3873
3847
|
},
|
|
3874
3848
|
m(n, i) {
|
|
3875
|
-
j(n, t, i),
|
|
3849
|
+
j(n, t, i), S(t, r);
|
|
3876
3850
|
},
|
|
3877
3851
|
p: q,
|
|
3878
3852
|
i: q,
|
|
@@ -3882,43 +3856,43 @@ function Ui(e) {
|
|
|
3882
3856
|
}
|
|
3883
3857
|
};
|
|
3884
3858
|
}
|
|
3885
|
-
class
|
|
3859
|
+
class Ai extends zt {
|
|
3886
3860
|
constructor(t) {
|
|
3887
|
-
super(),
|
|
3861
|
+
super(), Ot(this, t, null, Ni, Je, {});
|
|
3888
3862
|
}
|
|
3889
3863
|
}
|
|
3890
|
-
customElements.define("circle-exclamation-icon",
|
|
3891
|
-
function
|
|
3892
|
-
|
|
3864
|
+
customElements.define("circle-exclamation-icon", Bt(Ai, {}, [], [], !0));
|
|
3865
|
+
function Hi(e) {
|
|
3866
|
+
Hr(e, "svelte-etk3ty", '.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');
|
|
3893
3867
|
}
|
|
3894
|
-
function
|
|
3868
|
+
function kt(e, t, r) {
|
|
3895
3869
|
const n = e.slice();
|
|
3896
3870
|
return n[64] = t[r], n;
|
|
3897
3871
|
}
|
|
3898
|
-
function
|
|
3872
|
+
function bt(e, t, r) {
|
|
3899
3873
|
const n = e.slice();
|
|
3900
3874
|
return n[61] = t[r], n[62] = t, n[63] = r, n;
|
|
3901
3875
|
}
|
|
3902
|
-
function
|
|
3876
|
+
function Et(e, t, r) {
|
|
3903
3877
|
const n = e.slice();
|
|
3904
3878
|
return n[64] = t[r], n;
|
|
3905
3879
|
}
|
|
3906
|
-
function
|
|
3907
|
-
let t, r, n =
|
|
3880
|
+
function Pi(e) {
|
|
3881
|
+
let t, r, n = K(
|
|
3908
3882
|
/*playerConsents*/
|
|
3909
3883
|
e[9]
|
|
3910
3884
|
), i = [];
|
|
3911
3885
|
for (let o = 0; o < n.length; o += 1)
|
|
3912
|
-
i[o] =
|
|
3886
|
+
i[o] = Ct(kt(e, n, o));
|
|
3913
3887
|
return {
|
|
3914
3888
|
c() {
|
|
3915
3889
|
t = A("div"), r = A("form");
|
|
3916
3890
|
for (let o = 0; o < i.length; o += 1)
|
|
3917
3891
|
i[o].c();
|
|
3918
|
-
|
|
3892
|
+
E(r, "class", "checkbox svelte-etk3ty"), E(t, "class", "legacyStyle");
|
|
3919
3893
|
},
|
|
3920
3894
|
m(o, a) {
|
|
3921
|
-
j(o, t, a),
|
|
3895
|
+
j(o, t, a), S(t, r);
|
|
3922
3896
|
for (let s = 0; s < i.length; s += 1)
|
|
3923
3897
|
i[s] && i[s].m(r, null);
|
|
3924
3898
|
e[31](r);
|
|
@@ -3926,14 +3900,14 @@ function Fi(e) {
|
|
|
3926
3900
|
p(o, a) {
|
|
3927
3901
|
if (a[0] & /*playerConsents, $_, handleInput*/
|
|
3928
3902
|
590336) {
|
|
3929
|
-
n =
|
|
3903
|
+
n = K(
|
|
3930
3904
|
/*playerConsents*/
|
|
3931
3905
|
o[9]
|
|
3932
3906
|
);
|
|
3933
3907
|
let s;
|
|
3934
3908
|
for (s = 0; s < n.length; s += 1) {
|
|
3935
|
-
const h =
|
|
3936
|
-
i[s] ? i[s].p(h, a) : (i[s] =
|
|
3909
|
+
const h = kt(o, n, s);
|
|
3910
|
+
i[s] ? i[s].p(h, a) : (i[s] = Ct(h), i[s].c(), i[s].m(r, null));
|
|
3937
3911
|
}
|
|
3938
3912
|
for (; s < i.length; s += 1)
|
|
3939
3913
|
i[s].d(1);
|
|
@@ -3941,11 +3915,11 @@ function Fi(e) {
|
|
|
3941
3915
|
}
|
|
3942
3916
|
},
|
|
3943
3917
|
d(o) {
|
|
3944
|
-
o && L(t),
|
|
3918
|
+
o && L(t), Qe(i, o), e[31](null);
|
|
3945
3919
|
}
|
|
3946
3920
|
};
|
|
3947
3921
|
}
|
|
3948
|
-
function
|
|
3922
|
+
function Bi(e) {
|
|
3949
3923
|
let t = (
|
|
3950
3924
|
/*$_*/
|
|
3951
3925
|
e[16]("title") || /*$_*/
|
|
@@ -3953,81 +3927,81 @@ function Vi(e) {
|
|
|
3953
3927
|
), r, n, i, o = (
|
|
3954
3928
|
/*$_*/
|
|
3955
3929
|
(e[16]("saveButtonContent") || "Save Consents") + ""
|
|
3956
|
-
), a, s, h, u, l, d = t &&
|
|
3930
|
+
), a, s, h, u, l, d = t && St(e), m = K(
|
|
3957
3931
|
/*consentsCategories*/
|
|
3958
3932
|
e[8]
|
|
3959
|
-
),
|
|
3960
|
-
for (let
|
|
3961
|
-
|
|
3933
|
+
), v = [];
|
|
3934
|
+
for (let p = 0; p < m.length; p += 1)
|
|
3935
|
+
v[p] = At(bt(e, m, p));
|
|
3962
3936
|
let f = (
|
|
3963
3937
|
/*errorMessage*/
|
|
3964
|
-
e[6] &&
|
|
3938
|
+
e[6] && Ht(e)
|
|
3965
3939
|
);
|
|
3966
3940
|
return {
|
|
3967
3941
|
c() {
|
|
3968
3942
|
d && d.c(), r = G();
|
|
3969
|
-
for (let
|
|
3970
|
-
|
|
3971
|
-
n = G(), i = A("button"), s = G(), f && f.c(), h =
|
|
3943
|
+
for (let p = 0; p < v.length; p += 1)
|
|
3944
|
+
v[p].c();
|
|
3945
|
+
n = G(), i = A("button"), s = G(), f && f.c(), h = Lr(), E(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
|
|
3972
3946
|
e[14];
|
|
3973
3947
|
},
|
|
3974
|
-
m(
|
|
3975
|
-
d && d.m(
|
|
3976
|
-
for (let _ = 0; _ <
|
|
3977
|
-
|
|
3978
|
-
j(
|
|
3948
|
+
m(p, C) {
|
|
3949
|
+
d && d.m(p, C), j(p, r, C);
|
|
3950
|
+
for (let _ = 0; _ < v.length; _ += 1)
|
|
3951
|
+
v[_] && v[_].m(p, C);
|
|
3952
|
+
j(p, n, C), j(p, i, C), i.innerHTML = o, j(p, s, C), f && f.m(p, C), j(p, h, C), u || (l = he(
|
|
3979
3953
|
i,
|
|
3980
3954
|
"click",
|
|
3981
3955
|
/*saveChanges*/
|
|
3982
3956
|
e[17]
|
|
3983
3957
|
), u = !0);
|
|
3984
3958
|
},
|
|
3985
|
-
p(
|
|
3986
|
-
if (
|
|
3959
|
+
p(p, C) {
|
|
3960
|
+
if (C[0] & /*$_*/
|
|
3987
3961
|
65536 && (t = /*$_*/
|
|
3988
|
-
|
|
3989
|
-
|
|
3962
|
+
p[16]("title") || /*$_*/
|
|
3963
|
+
p[16]("description")), t ? d ? d.p(p, C) : (d = St(p), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), C[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
|
|
3990
3964
|
867088) {
|
|
3991
|
-
m =
|
|
3965
|
+
m = K(
|
|
3992
3966
|
/*consentsCategories*/
|
|
3993
|
-
|
|
3967
|
+
p[8]
|
|
3994
3968
|
);
|
|
3995
3969
|
let _;
|
|
3996
3970
|
for (_ = 0; _ < m.length; _ += 1) {
|
|
3997
|
-
const
|
|
3998
|
-
|
|
3971
|
+
const y = bt(p, m, _);
|
|
3972
|
+
v[_] ? v[_].p(y, C) : (v[_] = At(y), v[_].c(), v[_].m(n.parentNode, n));
|
|
3999
3973
|
}
|
|
4000
|
-
for (; _ <
|
|
4001
|
-
|
|
4002
|
-
|
|
3974
|
+
for (; _ < v.length; _ += 1)
|
|
3975
|
+
v[_].d(1);
|
|
3976
|
+
v.length = m.length;
|
|
4003
3977
|
}
|
|
4004
|
-
|
|
3978
|
+
C[0] & /*$_*/
|
|
4005
3979
|
65536 && o !== (o = /*$_*/
|
|
4006
|
-
(
|
|
3980
|
+
(p[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), C[0] & /*isValid*/
|
|
4007
3981
|
16384 && a !== (a = !/*isValid*/
|
|
4008
|
-
|
|
4009
|
-
|
|
3982
|
+
p[14]) && (i.disabled = a), /*errorMessage*/
|
|
3983
|
+
p[6] ? f ? f.p(p, C) : (f = Ht(p), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
|
|
4010
3984
|
},
|
|
4011
|
-
d(
|
|
4012
|
-
|
|
3985
|
+
d(p) {
|
|
3986
|
+
p && (L(r), L(n), L(i), L(s), L(h)), d && d.d(p), Qe(v, p), f && f.d(p), u = !1, l();
|
|
4013
3987
|
}
|
|
4014
3988
|
};
|
|
4015
3989
|
}
|
|
4016
|
-
function
|
|
3990
|
+
function zi(e) {
|
|
4017
3991
|
let t, r, n;
|
|
4018
3992
|
return {
|
|
4019
3993
|
c() {
|
|
4020
|
-
t = A("div"), r = A("strong"), n =
|
|
3994
|
+
t = A("div"), r = A("strong"), n = pe(
|
|
4021
3995
|
/*fatalError*/
|
|
4022
3996
|
e[7]
|
|
4023
|
-
),
|
|
3997
|
+
), E(r, "class", "ErrorMessage svelte-etk3ty"), E(t, "class", "ContainerCenter svelte-etk3ty");
|
|
4024
3998
|
},
|
|
4025
3999
|
m(i, o) {
|
|
4026
|
-
j(i, t, o),
|
|
4000
|
+
j(i, t, o), S(t, r), S(r, n);
|
|
4027
4001
|
},
|
|
4028
4002
|
p(i, o) {
|
|
4029
4003
|
o[0] & /*fatalError*/
|
|
4030
|
-
128 &&
|
|
4004
|
+
128 && ge(
|
|
4031
4005
|
n,
|
|
4032
4006
|
/*fatalError*/
|
|
4033
4007
|
i[7]
|
|
@@ -4038,21 +4012,21 @@ function Xi(e) {
|
|
|
4038
4012
|
}
|
|
4039
4013
|
};
|
|
4040
4014
|
}
|
|
4041
|
-
function
|
|
4015
|
+
function Oi(e) {
|
|
4042
4016
|
let t;
|
|
4043
4017
|
return {
|
|
4044
4018
|
c() {
|
|
4045
|
-
t = A("general-animation-loading"),
|
|
4019
|
+
t = A("general-animation-loading"), J(
|
|
4046
4020
|
t,
|
|
4047
4021
|
"clientstyling",
|
|
4048
4022
|
/*clientstyling*/
|
|
4049
4023
|
e[1]
|
|
4050
|
-
),
|
|
4024
|
+
), J(
|
|
4051
4025
|
t,
|
|
4052
4026
|
"clientstylingurl",
|
|
4053
4027
|
/*clientstylingurl*/
|
|
4054
4028
|
e[2]
|
|
4055
|
-
),
|
|
4029
|
+
), J(
|
|
4056
4030
|
t,
|
|
4057
4031
|
"mbsource",
|
|
4058
4032
|
/*mbsource*/
|
|
@@ -4064,19 +4038,19 @@ function qi(e) {
|
|
|
4064
4038
|
},
|
|
4065
4039
|
p(r, n) {
|
|
4066
4040
|
n[0] & /*clientstyling*/
|
|
4067
|
-
2 &&
|
|
4041
|
+
2 && J(
|
|
4068
4042
|
t,
|
|
4069
4043
|
"clientstyling",
|
|
4070
4044
|
/*clientstyling*/
|
|
4071
4045
|
r[1]
|
|
4072
4046
|
), n[0] & /*clientstylingurl*/
|
|
4073
|
-
4 &&
|
|
4047
|
+
4 && J(
|
|
4074
4048
|
t,
|
|
4075
4049
|
"clientstylingurl",
|
|
4076
4050
|
/*clientstylingurl*/
|
|
4077
4051
|
r[2]
|
|
4078
4052
|
), n[0] & /*mbsource*/
|
|
4079
|
-
8 &&
|
|
4053
|
+
8 && J(
|
|
4080
4054
|
t,
|
|
4081
4055
|
"mbsource",
|
|
4082
4056
|
/*mbsource*/
|
|
@@ -4088,7 +4062,7 @@ function qi(e) {
|
|
|
4088
4062
|
}
|
|
4089
4063
|
};
|
|
4090
4064
|
}
|
|
4091
|
-
function
|
|
4065
|
+
function Ct(e) {
|
|
4092
4066
|
let t, r, n, i, o, a, s, h, u = (
|
|
4093
4067
|
/*$_*/
|
|
4094
4068
|
(e[16](`${/*consent*/
|
|
@@ -4097,129 +4071,129 @@ function At(e) {
|
|
|
4097
4071
|
), l = (
|
|
4098
4072
|
/*consent*/
|
|
4099
4073
|
e[64].mustAccept ? " *" : ""
|
|
4100
|
-
), d, m,
|
|
4101
|
-
function P(...
|
|
4074
|
+
), d, m, v, f, p, C, _, y, x;
|
|
4075
|
+
function P(...b) {
|
|
4102
4076
|
return (
|
|
4103
4077
|
/*input_handler_1*/
|
|
4104
4078
|
e[30](
|
|
4105
4079
|
/*consent*/
|
|
4106
4080
|
e[64],
|
|
4107
|
-
...
|
|
4081
|
+
...b
|
|
4108
4082
|
)
|
|
4109
4083
|
);
|
|
4110
4084
|
}
|
|
4111
4085
|
return {
|
|
4112
4086
|
c() {
|
|
4113
|
-
t = A("div"), r = A("input"), o = G(), a = A("label"), s = A("div"), h = new
|
|
4114
|
-
e[64].status === "1",
|
|
4115
|
-
e[64].tagCode}__input`), h.a = d,
|
|
4116
|
-
e[64].tagCode}__input`),
|
|
4117
|
-
e[64].tagCode),
|
|
4087
|
+
t = A("div"), r = A("input"), o = G(), a = A("label"), s = A("div"), h = new It(!1), d = pe(l), v = G(), f = A("small"), C = G(), E(r, "class", "checkbox__input svelte-etk3ty"), E(r, "type", "checkbox"), r.checked = n = /*consent*/
|
|
4088
|
+
e[64].status === "1", E(r, "id", i = `${/*consent*/
|
|
4089
|
+
e[64].tagCode}__input`), h.a = d, E(s, "class", "checkbox__label-text svelte-etk3ty"), E(a, "class", "checkbox__label svelte-etk3ty"), E(a, "for", m = `${/*consent*/
|
|
4090
|
+
e[64].tagCode}__input`), E(f, "class", "checkbox__error-message svelte-etk3ty"), E(f, "id", p = "checkBoxError__" + /*consent*/
|
|
4091
|
+
e[64].tagCode), E(t, "class", _ = "checkbox__wrapper " + /*consent*/
|
|
4118
4092
|
e[64].tagCode + "__input svelte-etk3ty");
|
|
4119
4093
|
},
|
|
4120
|
-
m(
|
|
4121
|
-
j(
|
|
4094
|
+
m(b, z) {
|
|
4095
|
+
j(b, t, z), S(t, r), S(t, o), S(t, a), S(a, s), h.m(u, s), S(s, d), S(t, v), S(t, f), S(t, C), y || (x = he(r, "input", P), y = !0);
|
|
4122
4096
|
},
|
|
4123
|
-
p(
|
|
4124
|
-
e =
|
|
4097
|
+
p(b, z) {
|
|
4098
|
+
e = b, z[0] & /*playerConsents*/
|
|
4125
4099
|
512 && n !== (n = /*consent*/
|
|
4126
4100
|
e[64].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
|
|
4127
4101
|
512 && i !== (i = `${/*consent*/
|
|
4128
|
-
e[64].tagCode}__input`) &&
|
|
4102
|
+
e[64].tagCode}__input`) && E(r, "id", i), z[0] & /*$_, playerConsents*/
|
|
4129
4103
|
66048 && u !== (u = /*$_*/
|
|
4130
4104
|
(e[16](`${/*consent*/
|
|
4131
4105
|
e[64].tagCode}__description`) || /*consent*/
|
|
4132
4106
|
e[64].tagCode) + "") && h.p(u), z[0] & /*playerConsents*/
|
|
4133
4107
|
512 && l !== (l = /*consent*/
|
|
4134
|
-
e[64].mustAccept ? " *" : "") &&
|
|
4108
|
+
e[64].mustAccept ? " *" : "") && ge(d, l), z[0] & /*playerConsents*/
|
|
4135
4109
|
512 && m !== (m = `${/*consent*/
|
|
4136
|
-
e[64].tagCode}__input`) &&
|
|
4137
|
-
512 &&
|
|
4138
|
-
e[64].tagCode) &&
|
|
4110
|
+
e[64].tagCode}__input`) && E(a, "for", m), z[0] & /*playerConsents*/
|
|
4111
|
+
512 && p !== (p = "checkBoxError__" + /*consent*/
|
|
4112
|
+
e[64].tagCode) && E(f, "id", p), z[0] & /*playerConsents*/
|
|
4139
4113
|
512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
|
|
4140
|
-
e[64].tagCode + "__input svelte-etk3ty") &&
|
|
4114
|
+
e[64].tagCode + "__input svelte-etk3ty") && E(t, "class", _);
|
|
4141
4115
|
},
|
|
4142
|
-
d(
|
|
4143
|
-
|
|
4116
|
+
d(b) {
|
|
4117
|
+
b && L(t), y = !1, x();
|
|
4144
4118
|
}
|
|
4145
4119
|
};
|
|
4146
4120
|
}
|
|
4147
|
-
function
|
|
4121
|
+
function St(e) {
|
|
4148
4122
|
let t, r = (
|
|
4149
4123
|
/*$_*/
|
|
4150
4124
|
e[16]("title")
|
|
4151
4125
|
), n, i = (
|
|
4152
4126
|
/*$_*/
|
|
4153
4127
|
e[16]("description")
|
|
4154
|
-
), o = r &&
|
|
4128
|
+
), o = r && xt(e), a = i && Mt(e);
|
|
4155
4129
|
return {
|
|
4156
4130
|
c() {
|
|
4157
|
-
t = A("div"), o && o.c(), n = G(), a && a.c(),
|
|
4131
|
+
t = A("div"), o && o.c(), n = G(), a && a.c(), E(t, "class", "PlayerConsentsHeader svelte-etk3ty");
|
|
4158
4132
|
},
|
|
4159
4133
|
m(s, h) {
|
|
4160
|
-
j(s, t, h), o && o.m(t, null),
|
|
4134
|
+
j(s, t, h), o && o.m(t, null), S(t, n), a && a.m(t, null);
|
|
4161
4135
|
},
|
|
4162
4136
|
p(s, h) {
|
|
4163
4137
|
h[0] & /*$_*/
|
|
4164
4138
|
65536 && (r = /*$_*/
|
|
4165
|
-
s[16]("title")), r ? o ? o.p(s, h) : (o =
|
|
4139
|
+
s[16]("title")), r ? o ? o.p(s, h) : (o = xt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
|
|
4166
4140
|
65536 && (i = /*$_*/
|
|
4167
|
-
s[16]("description")), i ? a ? a.p(s, h) : (a =
|
|
4141
|
+
s[16]("description")), i ? a ? a.p(s, h) : (a = Mt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4168
4142
|
},
|
|
4169
4143
|
d(s) {
|
|
4170
4144
|
s && L(t), o && o.d(), a && a.d();
|
|
4171
4145
|
}
|
|
4172
4146
|
};
|
|
4173
4147
|
}
|
|
4174
|
-
function
|
|
4148
|
+
function xt(e) {
|
|
4175
4149
|
let t, r = (
|
|
4176
4150
|
/*$_*/
|
|
4177
4151
|
e[16]("title") + ""
|
|
4178
4152
|
), n;
|
|
4179
4153
|
return {
|
|
4180
4154
|
c() {
|
|
4181
|
-
t = A("h2"), n =
|
|
4155
|
+
t = A("h2"), n = pe(r), E(t, "class", "PlayerConsentsTitle");
|
|
4182
4156
|
},
|
|
4183
4157
|
m(i, o) {
|
|
4184
|
-
j(i, t, o),
|
|
4158
|
+
j(i, t, o), S(t, n);
|
|
4185
4159
|
},
|
|
4186
4160
|
p(i, o) {
|
|
4187
4161
|
o[0] & /*$_*/
|
|
4188
4162
|
65536 && r !== (r = /*$_*/
|
|
4189
|
-
i[16]("title") + "") &&
|
|
4163
|
+
i[16]("title") + "") && ge(n, r);
|
|
4190
4164
|
},
|
|
4191
4165
|
d(i) {
|
|
4192
4166
|
i && L(t);
|
|
4193
4167
|
}
|
|
4194
4168
|
};
|
|
4195
4169
|
}
|
|
4196
|
-
function
|
|
4170
|
+
function Mt(e) {
|
|
4197
4171
|
let t, r = (
|
|
4198
4172
|
/*$_*/
|
|
4199
4173
|
e[16]("description") + ""
|
|
4200
4174
|
), n;
|
|
4201
4175
|
return {
|
|
4202
4176
|
c() {
|
|
4203
|
-
t = A("p"), n =
|
|
4177
|
+
t = A("p"), n = pe(r), E(t, "class", "PlayerConsentsDescription");
|
|
4204
4178
|
},
|
|
4205
4179
|
m(i, o) {
|
|
4206
|
-
j(i, t, o),
|
|
4180
|
+
j(i, t, o), S(t, n);
|
|
4207
4181
|
},
|
|
4208
4182
|
p(i, o) {
|
|
4209
4183
|
o[0] & /*$_*/
|
|
4210
4184
|
65536 && r !== (r = /*$_*/
|
|
4211
|
-
i[16]("description") + "") &&
|
|
4185
|
+
i[16]("description") + "") && ge(n, r);
|
|
4212
4186
|
},
|
|
4213
4187
|
d(i) {
|
|
4214
4188
|
i && L(t);
|
|
4215
4189
|
}
|
|
4216
4190
|
};
|
|
4217
4191
|
}
|
|
4218
|
-
function
|
|
4192
|
+
function Tt(e) {
|
|
4219
4193
|
let t;
|
|
4220
4194
|
return {
|
|
4221
4195
|
c() {
|
|
4222
|
-
t = A("sup"), t.textContent = "*",
|
|
4196
|
+
t = A("sup"), t.textContent = "*", E(t, "class", "ConsentRequired svelte-etk3ty");
|
|
4223
4197
|
},
|
|
4224
4198
|
m(r, n) {
|
|
4225
4199
|
j(r, t, n);
|
|
@@ -4229,7 +4203,7 @@ function zt(e) {
|
|
|
4229
4203
|
}
|
|
4230
4204
|
};
|
|
4231
4205
|
}
|
|
4232
|
-
function
|
|
4206
|
+
function wt(e) {
|
|
4233
4207
|
let t, r = (
|
|
4234
4208
|
/*$_*/
|
|
4235
4209
|
(e[16](`${/*consent*/
|
|
@@ -4238,7 +4212,7 @@ function Ot(e) {
|
|
|
4238
4212
|
);
|
|
4239
4213
|
return {
|
|
4240
4214
|
c() {
|
|
4241
|
-
t = A("p"),
|
|
4215
|
+
t = A("p"), E(t, "class", "ConsentDescription svelte-etk3ty");
|
|
4242
4216
|
},
|
|
4243
4217
|
m(n, i) {
|
|
4244
4218
|
j(n, t, i), t.innerHTML = r;
|
|
@@ -4255,20 +4229,20 @@ function Ot(e) {
|
|
|
4255
4229
|
}
|
|
4256
4230
|
};
|
|
4257
4231
|
}
|
|
4258
|
-
function
|
|
4232
|
+
function Nt(e) {
|
|
4259
4233
|
let t, r, n, i, o = (
|
|
4260
4234
|
/*$_*/
|
|
4261
4235
|
(e[16](`${/*consent*/
|
|
4262
4236
|
e[64].tagCode}__name`) || /*consent*/
|
|
4263
4237
|
e[64].friendlyName) + ""
|
|
4264
|
-
), a, s, h, u, l, d, m,
|
|
4238
|
+
), a, s, h, u, l, d, m, v, f, p, C, _ = (
|
|
4265
4239
|
/*consent*/
|
|
4266
|
-
e[64].mustAccept === !0 &&
|
|
4267
|
-
),
|
|
4240
|
+
e[64].mustAccept === !0 && Tt()
|
|
4241
|
+
), y = (
|
|
4268
4242
|
/*displayconsentdescription*/
|
|
4269
|
-
e[4] === "true" &&
|
|
4243
|
+
e[4] === "true" && wt(e)
|
|
4270
4244
|
);
|
|
4271
|
-
function
|
|
4245
|
+
function x(...P) {
|
|
4272
4246
|
return (
|
|
4273
4247
|
/*input_handler*/
|
|
4274
4248
|
e[29](
|
|
@@ -4280,7 +4254,7 @@ function It(e) {
|
|
|
4280
4254
|
}
|
|
4281
4255
|
return {
|
|
4282
4256
|
c() {
|
|
4283
|
-
t = A("div"), r = A("div"), n = A("h4"), i = new
|
|
4257
|
+
t = A("div"), r = A("div"), n = A("h4"), i = new It(!1), a = G(), _ && _.c(), s = G(), y && y.c(), h = G(), u = A("label"), l = A("input"), v = G(), f = A("span"), i.a = a, E(n, "class", "ConsentName svelte-etk3ty"), E(r, "class", "ConsentContent"), E(l, "type", "checkbox"), l.disabled = d = /*consent*/
|
|
4284
4258
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4285
4259
|
e[12][
|
|
4286
4260
|
/*consent*/
|
|
@@ -4289,25 +4263,25 @@ function It(e) {
|
|
|
4289
4263
|
e[13][
|
|
4290
4264
|
/*consent*/
|
|
4291
4265
|
e[64].tagCode
|
|
4292
|
-
],
|
|
4266
|
+
], E(l, "class", "svelte-etk3ty"), E(f, "class", "Slider Round svelte-etk3ty"), E(u, "class", "ToggleSwitch svelte-etk3ty"), E(t, "class", "ConsentItem svelte-etk3ty");
|
|
4293
4267
|
},
|
|
4294
|
-
m(P,
|
|
4295
|
-
j(P, t,
|
|
4268
|
+
m(P, b) {
|
|
4269
|
+
j(P, t, b), S(t, r), S(r, n), i.m(o, n), S(n, a), _ && _.m(n, null), S(r, s), y && y.m(r, null), S(t, h), S(t, u), S(u, l), S(u, v), S(u, f), p || (C = he(l, "input", x), p = !0);
|
|
4296
4270
|
},
|
|
4297
|
-
p(P,
|
|
4298
|
-
e = P,
|
|
4271
|
+
p(P, b) {
|
|
4272
|
+
e = P, b[0] & /*$_, playerConsents, consentsCategories*/
|
|
4299
4273
|
66304 && o !== (o = /*$_*/
|
|
4300
4274
|
(e[16](`${/*consent*/
|
|
4301
4275
|
e[64].tagCode}__name`) || /*consent*/
|
|
4302
4276
|
e[64].friendlyName) + "") && i.p(o), /*consent*/
|
|
4303
|
-
e[64].mustAccept === !0 ? _ || (_ =
|
|
4304
|
-
e[4] === "true" ?
|
|
4277
|
+
e[64].mustAccept === !0 ? _ || (_ = Tt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
|
|
4278
|
+
e[4] === "true" ? y ? y.p(e, b) : (y = wt(e), y.c(), y.m(r, null)) : y && (y.d(1), y = null), b[0] & /*playerConsents, consentsCategories, initialConsentsState*/
|
|
4305
4279
|
4864 && d !== (d = /*consent*/
|
|
4306
4280
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4307
4281
|
e[12][
|
|
4308
4282
|
/*consent*/
|
|
4309
4283
|
e[64].tagCode
|
|
4310
|
-
] === !0) && (l.disabled = d),
|
|
4284
|
+
] === !0) && (l.disabled = d), b[0] & /*consentsState, playerConsents, consentsCategories*/
|
|
4311
4285
|
8960 && m !== (m = /*consentsState*/
|
|
4312
4286
|
e[13][
|
|
4313
4287
|
/*consent*/
|
|
@@ -4315,17 +4289,17 @@ function It(e) {
|
|
|
4315
4289
|
]) && (l.checked = m);
|
|
4316
4290
|
},
|
|
4317
4291
|
d(P) {
|
|
4318
|
-
P && L(t), _ && _.d(),
|
|
4292
|
+
P && L(t), _ && _.d(), y && y.d(), p = !1, C();
|
|
4319
4293
|
}
|
|
4320
4294
|
};
|
|
4321
4295
|
}
|
|
4322
|
-
function
|
|
4296
|
+
function At(e) {
|
|
4323
4297
|
let t, r, n, i = (
|
|
4324
4298
|
/*$_*/
|
|
4325
4299
|
(e[16](`${/*category*/
|
|
4326
4300
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
4327
4301
|
e[61].friendlyName) + ""
|
|
4328
|
-
), o, a, s, h, u, l, d, m,
|
|
4302
|
+
), o, a, s, h, u, l, d, m, v;
|
|
4329
4303
|
function f() {
|
|
4330
4304
|
e[26].call(
|
|
4331
4305
|
s,
|
|
@@ -4333,7 +4307,7 @@ function jt(e) {
|
|
|
4333
4307
|
e[61]
|
|
4334
4308
|
);
|
|
4335
4309
|
}
|
|
4336
|
-
function
|
|
4310
|
+
function p() {
|
|
4337
4311
|
return (
|
|
4338
4312
|
/*change_handler*/
|
|
4339
4313
|
e[27](
|
|
@@ -4342,44 +4316,44 @@ function jt(e) {
|
|
|
4342
4316
|
)
|
|
4343
4317
|
);
|
|
4344
4318
|
}
|
|
4345
|
-
function
|
|
4319
|
+
function C(...x) {
|
|
4346
4320
|
return (
|
|
4347
4321
|
/*func*/
|
|
4348
4322
|
e[28](
|
|
4349
4323
|
/*category*/
|
|
4350
4324
|
e[61],
|
|
4351
|
-
...
|
|
4325
|
+
...x
|
|
4352
4326
|
)
|
|
4353
4327
|
);
|
|
4354
4328
|
}
|
|
4355
|
-
let _ =
|
|
4329
|
+
let _ = K(
|
|
4356
4330
|
/*playerConsents*/
|
|
4357
|
-
e[9].filter(
|
|
4358
|
-
),
|
|
4359
|
-
for (let
|
|
4360
|
-
|
|
4331
|
+
e[9].filter(C)
|
|
4332
|
+
), y = [];
|
|
4333
|
+
for (let x = 0; x < _.length; x += 1)
|
|
4334
|
+
y[x] = Nt(Et(e, _, x));
|
|
4361
4335
|
return {
|
|
4362
4336
|
c() {
|
|
4363
4337
|
t = A("div"), r = A("div"), n = A("h3"), o = G(), a = A("label"), s = A("input"), h = G(), u = A("span"), l = G(), d = A("div");
|
|
4364
|
-
for (let
|
|
4365
|
-
|
|
4366
|
-
|
|
4338
|
+
for (let x = 0; x < y.length; x += 1)
|
|
4339
|
+
y[x].c();
|
|
4340
|
+
E(s, "type", "checkbox"), E(s, "class", "svelte-etk3ty"), E(u, "class", "Slider Round svelte-etk3ty"), E(a, "class", "ToggleSwitch Big svelte-etk3ty"), E(r, "class", "AccordionHeader svelte-etk3ty"), E(d, "class", "AccordionContent svelte-etk3ty"), E(t, "class", "AccordionItem svelte-etk3ty");
|
|
4367
4341
|
},
|
|
4368
|
-
m(
|
|
4369
|
-
j(
|
|
4342
|
+
m(x, P) {
|
|
4343
|
+
j(x, t, P), S(t, r), S(r, n), n.innerHTML = i, S(r, o), S(r, a), S(a, s), s.checked = /*categoryToggle*/
|
|
4370
4344
|
e[11][
|
|
4371
4345
|
/*category*/
|
|
4372
4346
|
e[61].categoryTagCode
|
|
4373
|
-
],
|
|
4374
|
-
for (let
|
|
4375
|
-
|
|
4376
|
-
m || (
|
|
4377
|
-
|
|
4378
|
-
|
|
4347
|
+
], S(a, h), S(a, u), S(t, l), S(t, d);
|
|
4348
|
+
for (let b = 0; b < y.length; b += 1)
|
|
4349
|
+
y[b] && y[b].m(d, null);
|
|
4350
|
+
m || (v = [
|
|
4351
|
+
he(s, "change", f),
|
|
4352
|
+
he(s, "change", p)
|
|
4379
4353
|
], m = !0);
|
|
4380
4354
|
},
|
|
4381
|
-
p(
|
|
4382
|
-
if (e =
|
|
4355
|
+
p(x, P) {
|
|
4356
|
+
if (e = x, P[0] & /*$_, consentsCategories*/
|
|
4383
4357
|
65792 && i !== (i = /*$_*/
|
|
4384
4358
|
(e[16](`${/*category*/
|
|
4385
4359
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
@@ -4390,40 +4364,40 @@ function jt(e) {
|
|
|
4390
4364
|
e[61].categoryTagCode
|
|
4391
4365
|
]), P[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
|
|
4392
4366
|
602896) {
|
|
4393
|
-
_ =
|
|
4367
|
+
_ = K(
|
|
4394
4368
|
/*playerConsents*/
|
|
4395
|
-
e[9].filter(
|
|
4369
|
+
e[9].filter(C)
|
|
4396
4370
|
);
|
|
4397
|
-
let
|
|
4398
|
-
for (
|
|
4399
|
-
const z =
|
|
4400
|
-
|
|
4371
|
+
let b;
|
|
4372
|
+
for (b = 0; b < _.length; b += 1) {
|
|
4373
|
+
const z = Et(e, _, b);
|
|
4374
|
+
y[b] ? y[b].p(z, P) : (y[b] = Nt(z), y[b].c(), y[b].m(d, null));
|
|
4401
4375
|
}
|
|
4402
|
-
for (;
|
|
4403
|
-
|
|
4404
|
-
|
|
4376
|
+
for (; b < y.length; b += 1)
|
|
4377
|
+
y[b].d(1);
|
|
4378
|
+
y.length = _.length;
|
|
4405
4379
|
}
|
|
4406
4380
|
},
|
|
4407
|
-
d(
|
|
4408
|
-
|
|
4381
|
+
d(x) {
|
|
4382
|
+
x && L(t), Qe(y, x), m = !1, Pt(v);
|
|
4409
4383
|
}
|
|
4410
4384
|
};
|
|
4411
4385
|
}
|
|
4412
|
-
function
|
|
4386
|
+
function Ht(e) {
|
|
4413
4387
|
let t, r, n, i, o;
|
|
4414
4388
|
return {
|
|
4415
4389
|
c() {
|
|
4416
|
-
t = A("div"), r = A("circle-exclamation-icon"), n = G(), i = A("strong"), o =
|
|
4390
|
+
t = A("div"), r = A("circle-exclamation-icon"), n = G(), i = A("strong"), o = pe(
|
|
4417
4391
|
/*errorMessage*/
|
|
4418
4392
|
e[6]
|
|
4419
|
-
),
|
|
4393
|
+
), J(r, "class", "svelte-etk3ty"), E(i, "class", "ErrorMessage svelte-etk3ty"), E(t, "class", "ConsentErrorContainer svelte-etk3ty");
|
|
4420
4394
|
},
|
|
4421
4395
|
m(a, s) {
|
|
4422
|
-
j(a, t, s),
|
|
4396
|
+
j(a, t, s), S(t, r), S(t, n), S(t, i), S(i, o);
|
|
4423
4397
|
},
|
|
4424
4398
|
p(a, s) {
|
|
4425
4399
|
s[0] & /*errorMessage*/
|
|
4426
|
-
64 &&
|
|
4400
|
+
64 && ge(
|
|
4427
4401
|
o,
|
|
4428
4402
|
/*errorMessage*/
|
|
4429
4403
|
a[6]
|
|
@@ -4434,35 +4408,35 @@ function Lt(e) {
|
|
|
4434
4408
|
}
|
|
4435
4409
|
};
|
|
4436
4410
|
}
|
|
4437
|
-
function
|
|
4411
|
+
function Ii(e) {
|
|
4438
4412
|
let t, r;
|
|
4439
4413
|
function n(a, s) {
|
|
4440
4414
|
if (
|
|
4441
4415
|
/*isLoading*/
|
|
4442
4416
|
a[10]
|
|
4443
4417
|
)
|
|
4444
|
-
return
|
|
4418
|
+
return Oi;
|
|
4445
4419
|
if (
|
|
4446
4420
|
/*fatalError*/
|
|
4447
4421
|
a[7]
|
|
4448
4422
|
)
|
|
4449
|
-
return
|
|
4423
|
+
return zi;
|
|
4450
4424
|
if (
|
|
4451
4425
|
/*session*/
|
|
4452
4426
|
a[0]
|
|
4453
4427
|
)
|
|
4454
|
-
return
|
|
4428
|
+
return Bi;
|
|
4455
4429
|
if (!/*session*/
|
|
4456
4430
|
a[0])
|
|
4457
|
-
return
|
|
4431
|
+
return Pi;
|
|
4458
4432
|
}
|
|
4459
4433
|
let i = n(e), o = i && i(e);
|
|
4460
4434
|
return {
|
|
4461
4435
|
c() {
|
|
4462
|
-
t = A("div"), r = A("div"), o && o.c(),
|
|
4436
|
+
t = A("div"), r = A("div"), o && o.c(), E(r, "class", "ConsentsContainer svelte-etk3ty"), E(t, "class", zr("") + " svelte-etk3ty");
|
|
4463
4437
|
},
|
|
4464
4438
|
m(a, s) {
|
|
4465
|
-
j(a, t, s),
|
|
4439
|
+
j(a, t, s), S(t, r), o && o.m(r, null), e[32](r);
|
|
4466
4440
|
},
|
|
4467
4441
|
p(a, s) {
|
|
4468
4442
|
i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
|
|
@@ -4474,99 +4448,100 @@ function Wi(e) {
|
|
|
4474
4448
|
}
|
|
4475
4449
|
};
|
|
4476
4450
|
}
|
|
4477
|
-
function
|
|
4451
|
+
function ji(e, t, r) {
|
|
4478
4452
|
let n;
|
|
4479
|
-
|
|
4480
|
-
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents:
|
|
4453
|
+
Pr(e, Ti, (c) => r(16, n = c));
|
|
4454
|
+
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: v = "false" } = t, f, p = !1, C = !1, _ = "", y = "", x = "", P = "", b = [], z = [], O = [], ae = !0, _e = !0, F = {}, ye = {}, W = {}, U = {}, se, ve, R = {
|
|
4481
4455
|
none: { key: "0", value: "None" },
|
|
4482
4456
|
accepted: { key: "1", value: "Accepted" },
|
|
4483
4457
|
expired: { key: "2", value: "Expired" },
|
|
4484
4458
|
denied: { key: "3", value: "Denied" },
|
|
4485
4459
|
suspended: { key: "4", value: "Suspended" }
|
|
4486
|
-
},
|
|
4487
|
-
Object.keys(
|
|
4488
|
-
|
|
4460
|
+
}, ke = !1;
|
|
4461
|
+
Object.keys(vt).forEach((c) => {
|
|
4462
|
+
yt(c, vt[c]);
|
|
4489
4463
|
});
|
|
4490
|
-
const
|
|
4491
|
-
|
|
4492
|
-
},
|
|
4464
|
+
const sr = () => {
|
|
4465
|
+
wi(l);
|
|
4466
|
+
}, lr = () => {
|
|
4493
4467
|
let c = new URL(m);
|
|
4494
|
-
fetch(c.href).then((
|
|
4495
|
-
Object.keys(
|
|
4496
|
-
|
|
4468
|
+
fetch(c.href).then((g) => g.json()).then((g) => {
|
|
4469
|
+
Object.keys(g).forEach((T) => {
|
|
4470
|
+
yt(T, g[T]);
|
|
4497
4471
|
});
|
|
4498
|
-
}).catch((
|
|
4499
|
-
console.log(
|
|
4472
|
+
}).catch((g) => {
|
|
4473
|
+
console.log(g);
|
|
4500
4474
|
});
|
|
4501
|
-
},
|
|
4502
|
-
i && (
|
|
4503
|
-
},
|
|
4504
|
-
|
|
4505
|
-
},
|
|
4475
|
+
}, cr = () => {
|
|
4476
|
+
i && (_ = i, C = !0), o && (y = o);
|
|
4477
|
+
}, be = (c, g = !1) => {
|
|
4478
|
+
g ? r(7, P = c) : (gr(), r(6, x = c));
|
|
4479
|
+
}, le = async (c, g, T, k = !1) => {
|
|
4506
4480
|
try {
|
|
4507
|
-
const M =
|
|
4481
|
+
const M = await fetch(c, T);
|
|
4508
4482
|
if (!M.ok)
|
|
4509
|
-
throw new Error(n(
|
|
4510
|
-
const I =
|
|
4511
|
-
return
|
|
4483
|
+
throw new Error(n(g));
|
|
4484
|
+
const I = await M.json();
|
|
4485
|
+
return C ? I : I.filter((V) => V.showOnRegister === !0);
|
|
4512
4486
|
} catch (M) {
|
|
4513
|
-
throw
|
|
4514
|
-
M instanceof TypeError ? n(
|
|
4487
|
+
throw be(
|
|
4488
|
+
M instanceof TypeError ? n(g) : M.message,
|
|
4515
4489
|
k
|
|
4516
4490
|
), M;
|
|
4517
4491
|
}
|
|
4518
|
-
}
|
|
4492
|
+
}, ur = async () => {
|
|
4519
4493
|
try {
|
|
4520
|
-
let c = [],
|
|
4521
|
-
if (
|
|
4494
|
+
let c = [], g = [];
|
|
4495
|
+
if (C ? [c, g] = await et() : c = await et(), r(10, ae = !1), z = [...c], r(8, b = dr(z).sort((T, k) => T.categoryTagCode.localeCompare(k.categoryTagCode))), r(11, F = mr(b)), ye = { ...F }, r(9, O = [...g]), z.forEach((T) => {
|
|
4522
4496
|
let k = O.find((M) => M.tagCode === T.tagCode);
|
|
4523
|
-
k || (k =
|
|
4497
|
+
k || (k = {
|
|
4498
|
+
...T,
|
|
4524
4499
|
status: R.denied.value
|
|
4525
|
-
}
|
|
4526
|
-
}),
|
|
4500
|
+
}, O.push(k)), k.description = T.description, k.orderNumber = T.orderNumber;
|
|
4501
|
+
}), v === "true") {
|
|
4527
4502
|
if (r(9, O = O.filter((T) => T.status === R.expired.value)), O.length !== 0)
|
|
4528
4503
|
return;
|
|
4529
|
-
|
|
4504
|
+
be(n("wrongModalConfig"), !0);
|
|
4530
4505
|
}
|
|
4531
|
-
|
|
4506
|
+
pr();
|
|
4532
4507
|
} catch (c) {
|
|
4533
|
-
throw r(10,
|
|
4508
|
+
throw r(10, ae = !1), be(
|
|
4534
4509
|
c instanceof TypeError ? n("invalidUrl") : c.message,
|
|
4535
4510
|
!0
|
|
4536
4511
|
), c;
|
|
4537
4512
|
}
|
|
4538
|
-
}
|
|
4513
|
+
}, et = async () => {
|
|
4539
4514
|
const c = new URL(`${a}/api/v1/gm/consents`);
|
|
4540
|
-
if (c.searchParams.append("Status", "Active"), !
|
|
4541
|
-
return
|
|
4542
|
-
const
|
|
4543
|
-
return
|
|
4544
|
-
|
|
4545
|
-
|
|
4515
|
+
if (c.searchParams.append("Status", "Active"), !C)
|
|
4516
|
+
return await le(c.href, "fetchConsentsError", { method: "GET" }, !0);
|
|
4517
|
+
const g = new URL(`${a}/api/v1/gm/user-consents/${y}`);
|
|
4518
|
+
return await Promise.all([
|
|
4519
|
+
le(c.href, "fetchConsentsError", { method: "GET" }, !0),
|
|
4520
|
+
le(g.href, "fetchPlayerConsentsError", {
|
|
4546
4521
|
method: "GET",
|
|
4547
4522
|
headers: {
|
|
4548
|
-
"X-SessionId":
|
|
4523
|
+
"X-SessionId": _,
|
|
4549
4524
|
"Content-Type": "application/json"
|
|
4550
4525
|
}
|
|
4551
4526
|
})
|
|
4552
4527
|
]);
|
|
4553
|
-
}
|
|
4554
|
-
|
|
4555
|
-
const c = new URL(`${a}/api/v2/gm/legislation/consents`),
|
|
4528
|
+
}, hr = () => {
|
|
4529
|
+
ke = !1;
|
|
4530
|
+
const c = new URL(`${a}/api/v2/gm/legislation/consents`), g = {
|
|
4556
4531
|
"Content-Type": "application/json",
|
|
4557
4532
|
Accept: "application/json"
|
|
4558
|
-
}, T = { method: "GET", headers:
|
|
4559
|
-
fetch(c.href, T).then((k) => k.ok ? k.json() : (
|
|
4560
|
-
if (!
|
|
4561
|
-
if (
|
|
4533
|
+
}, T = { method: "GET", headers: g };
|
|
4534
|
+
fetch(c.href, T).then((k) => k.ok ? k.json() : (ke = !0, k.json().then((M) => (console.error(M), Ee(M))))).then((k) => {
|
|
4535
|
+
if (!ke) {
|
|
4536
|
+
if (z = k, localStorage.getItem("playerConsents")) {
|
|
4562
4537
|
try {
|
|
4563
4538
|
r(9, O = JSON.parse(localStorage.getItem("playerConsents")));
|
|
4564
4539
|
} catch (M) {
|
|
4565
|
-
return console.error(M),
|
|
4540
|
+
return console.error(M), Ee(M);
|
|
4566
4541
|
}
|
|
4567
4542
|
return;
|
|
4568
4543
|
}
|
|
4569
|
-
return r(9, O =
|
|
4544
|
+
return r(9, O = z.map((M) => ({
|
|
4570
4545
|
id: M.id,
|
|
4571
4546
|
status: R.denied.key,
|
|
4572
4547
|
friendlyName: M.friendlyName,
|
|
@@ -4575,69 +4550,69 @@ function Zi(e, t, r) {
|
|
|
4575
4550
|
mustAccept: M.mustAccept
|
|
4576
4551
|
}))), localStorage.setItem("playerConsents", JSON.stringify(O)), O;
|
|
4577
4552
|
}
|
|
4578
|
-
}).catch((k) => (console.error(k),
|
|
4579
|
-
r(10,
|
|
4553
|
+
}).catch((k) => (console.error(k), Ee(k))).finally(() => {
|
|
4554
|
+
r(10, ae = !1);
|
|
4580
4555
|
});
|
|
4581
|
-
},
|
|
4582
|
-
const
|
|
4556
|
+
}, dr = (c) => {
|
|
4557
|
+
const g = /* @__PURE__ */ new Map();
|
|
4583
4558
|
return c.forEach((T) => {
|
|
4584
|
-
|
|
4585
|
-
}), Array.from(
|
|
4586
|
-
},
|
|
4587
|
-
const
|
|
4588
|
-
if (
|
|
4559
|
+
g.has(T.category.categoryTagCode) || g.set(T.category.categoryTagCode, T.category);
|
|
4560
|
+
}), Array.from(g.values());
|
|
4561
|
+
}, mr = (c) => {
|
|
4562
|
+
const g = localStorage.getItem("categoryToggle" + y);
|
|
4563
|
+
if (g === null) {
|
|
4589
4564
|
const T = c.reduce(
|
|
4590
4565
|
(k, M) => (k[M.categoryTagCode] = !1, k),
|
|
4591
4566
|
{}
|
|
4592
4567
|
);
|
|
4593
|
-
return localStorage.setItem("categoryToggle" +
|
|
4568
|
+
return localStorage.setItem("categoryToggle" + y, JSON.stringify(T)), T;
|
|
4594
4569
|
} else
|
|
4595
|
-
return JSON.parse(
|
|
4596
|
-
},
|
|
4570
|
+
return JSON.parse(g);
|
|
4571
|
+
}, pr = () => {
|
|
4597
4572
|
O.forEach((c) => {
|
|
4598
|
-
r(12,
|
|
4599
|
-
}), r(13, U = W
|
|
4600
|
-
},
|
|
4601
|
-
r(13, U = W
|
|
4602
|
-
},
|
|
4603
|
-
if (!
|
|
4573
|
+
r(12, W[c.tagCode] = c.status === R.accepted.value, W);
|
|
4574
|
+
}), r(13, U = { ...W });
|
|
4575
|
+
}, gr = () => {
|
|
4576
|
+
r(13, U = { ...W }), r(11, F = { ...ye });
|
|
4577
|
+
}, fr = async () => {
|
|
4578
|
+
if (!_e)
|
|
4604
4579
|
return;
|
|
4605
|
-
|
|
4606
|
-
const c = [],
|
|
4580
|
+
_e = !1;
|
|
4581
|
+
const c = [], g = [];
|
|
4607
4582
|
if (Object.keys(U).forEach((k) => {
|
|
4608
4583
|
const M = O.find((I) => I.tagCode === k);
|
|
4609
|
-
U[k] !==
|
|
4584
|
+
U[k] !== W[k] && (M ? c.push({
|
|
4610
4585
|
tagCode: k,
|
|
4611
4586
|
status: U[k] ? R.accepted.value : R.denied.value
|
|
4612
|
-
}) :
|
|
4587
|
+
}) : g.push({
|
|
4613
4588
|
tagCode: k,
|
|
4614
4589
|
status: U[k] ? R.accepted.value : R.denied.value
|
|
4615
4590
|
}));
|
|
4616
|
-
}), !
|
|
4617
|
-
localStorage.setItem("categoryToggle" +
|
|
4591
|
+
}), !C) {
|
|
4592
|
+
localStorage.setItem("categoryToggle" + y, JSON.stringify(F)), ye = { ...F }, window.postMessage(
|
|
4618
4593
|
{
|
|
4619
4594
|
type: "NewPlayerConsentData",
|
|
4620
|
-
data: JSON.stringify(
|
|
4595
|
+
data: JSON.stringify(g)
|
|
4621
4596
|
},
|
|
4622
4597
|
window.location.href
|
|
4623
|
-
),
|
|
4598
|
+
), _e = !0;
|
|
4624
4599
|
return;
|
|
4625
4600
|
}
|
|
4626
|
-
const T = new URL(`${a}/api/v1/gm/user-consents/${
|
|
4601
|
+
const T = new URL(`${a}/api/v1/gm/user-consents/${y}`);
|
|
4627
4602
|
try {
|
|
4628
|
-
const k =
|
|
4629
|
-
|
|
4603
|
+
const k = await Promise.allSettled([
|
|
4604
|
+
g.length > 0 && le(T.href, "updateConsentsError", {
|
|
4630
4605
|
method: "POST",
|
|
4631
4606
|
headers: {
|
|
4632
|
-
"X-SessionId":
|
|
4607
|
+
"X-SessionId": _,
|
|
4633
4608
|
"Content-Type": "application/json"
|
|
4634
4609
|
},
|
|
4635
|
-
body: JSON.stringify({ userConsents:
|
|
4610
|
+
body: JSON.stringify({ userConsents: g })
|
|
4636
4611
|
}),
|
|
4637
|
-
c.length > 0 &&
|
|
4612
|
+
c.length > 0 && le(T.href, "updateConsentsError", {
|
|
4638
4613
|
method: "PATCH",
|
|
4639
4614
|
headers: {
|
|
4640
|
-
"X-SessionId":
|
|
4615
|
+
"X-SessionId": _,
|
|
4641
4616
|
"Content-Type": "application/json"
|
|
4642
4617
|
},
|
|
4643
4618
|
body: JSON.stringify({ userConsents: c })
|
|
@@ -4645,18 +4620,18 @@ function Zi(e, t, r) {
|
|
|
4645
4620
|
]);
|
|
4646
4621
|
k.forEach((M, I) => {
|
|
4647
4622
|
if (M.status === "rejected" || M.value.ok === !1) {
|
|
4648
|
-
const V = I <
|
|
4649
|
-
r(13, U[V.tagCode] =
|
|
4623
|
+
const V = I < g.length ? g[I] : c[I - g.length];
|
|
4624
|
+
r(13, U[V.tagCode] = W[V.tagCode], U);
|
|
4650
4625
|
}
|
|
4651
|
-
}), k.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" +
|
|
4626
|
+
}), k.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + y, JSON.stringify(F)), ye = { ...F }, window.postMessage(
|
|
4652
4627
|
{
|
|
4653
4628
|
type: "PlayerConsentUpdated",
|
|
4654
4629
|
success: !0
|
|
4655
4630
|
},
|
|
4656
4631
|
window.location.href
|
|
4657
|
-
), r(12,
|
|
4632
|
+
), r(12, W = { ...U }));
|
|
4658
4633
|
} catch (k) {
|
|
4659
|
-
|
|
4634
|
+
be(k instanceof TypeError ? n("saveChangesError") : k.message), window.postMessage(
|
|
4660
4635
|
{
|
|
4661
4636
|
type: "PlayerConsentUpdated",
|
|
4662
4637
|
success: !1
|
|
@@ -4664,10 +4639,10 @@ function Zi(e, t, r) {
|
|
|
4664
4639
|
window.location.href
|
|
4665
4640
|
);
|
|
4666
4641
|
} finally {
|
|
4667
|
-
|
|
4642
|
+
_e = !0, r(14, se = !1);
|
|
4668
4643
|
}
|
|
4669
|
-
}
|
|
4670
|
-
const
|
|
4644
|
+
}, _r = (c) => {
|
|
4645
|
+
const g = new URL(`${a}/api/v2/gm/legislation/consents`), T = {
|
|
4671
4646
|
"Content-Type": "application/json",
|
|
4672
4647
|
Accept: "application/json"
|
|
4673
4648
|
}, k = {
|
|
@@ -4678,31 +4653,31 @@ function Zi(e, t, r) {
|
|
|
4678
4653
|
body: JSON.stringify(k),
|
|
4679
4654
|
headers: T
|
|
4680
4655
|
};
|
|
4681
|
-
fetch(
|
|
4682
|
-
I.ok || (
|
|
4683
|
-
}).catch((I) => (console.error(I),
|
|
4684
|
-
r(10,
|
|
4656
|
+
fetch(g.href, M).then((I) => {
|
|
4657
|
+
I.ok || (ke = !0);
|
|
4658
|
+
}).catch((I) => (console.error(I), Ee(I))).finally(() => {
|
|
4659
|
+
r(10, ae = !1);
|
|
4685
4660
|
});
|
|
4686
|
-
},
|
|
4687
|
-
O.filter((
|
|
4688
|
-
|
|
4689
|
-
}), r(14,
|
|
4690
|
-
},
|
|
4691
|
-
const k = O.find((V) => V.id === T), M =
|
|
4661
|
+
}, tt = (c) => {
|
|
4662
|
+
O.filter((g) => g.category.categoryTagCode === c).forEach((g) => {
|
|
4663
|
+
g.status = g.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[g.tagCode] = F[c] || !1, U);
|
|
4664
|
+
}), r(14, se = rt());
|
|
4665
|
+
}, Be = (c, g, T) => {
|
|
4666
|
+
const k = O.find((V) => V.id === T), M = g ? "value" : "key";
|
|
4692
4667
|
let I;
|
|
4693
|
-
if (!
|
|
4694
|
-
const V = Array.from(
|
|
4695
|
-
for (const
|
|
4696
|
-
if (I = Array.from(
|
|
4668
|
+
if (!g && k.mustAccept) {
|
|
4669
|
+
const V = Array.from(ve.children);
|
|
4670
|
+
for (const ce of V)
|
|
4671
|
+
if (I = Array.from(ce.children).find((wr) => wr.getAttribute("id") === `checkBoxError__${k.tagCode}`), I)
|
|
4697
4672
|
break;
|
|
4698
4673
|
}
|
|
4699
|
-
if (k.status === R.accepted[M] ? (k.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (k.status = R.accepted[M], I && (I.innerHTML = "")),
|
|
4674
|
+
if (k.status === R.accepted[M] ? (k.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (k.status = R.accepted[M], I && (I.innerHTML = "")), g) {
|
|
4700
4675
|
r(13, U[k.tagCode] = !U[k.tagCode], U);
|
|
4701
|
-
const V = O.filter((
|
|
4702
|
-
r(11, F[
|
|
4676
|
+
const V = O.filter((ce) => ce.category.categoryTagCode === g.categoryTagCode).every((ce) => ce.status !== R.denied.value);
|
|
4677
|
+
r(11, F[g.categoryTagCode] = V, F);
|
|
4703
4678
|
}
|
|
4704
|
-
|
|
4705
|
-
},
|
|
4679
|
+
yr();
|
|
4680
|
+
}, yr = ((c, g) => {
|
|
4706
4681
|
let T;
|
|
4707
4682
|
return function(...k) {
|
|
4708
4683
|
const M = this;
|
|
@@ -4710,12 +4685,12 @@ function Zi(e, t, r) {
|
|
|
4710
4685
|
() => {
|
|
4711
4686
|
c.apply(M, k);
|
|
4712
4687
|
},
|
|
4713
|
-
|
|
4688
|
+
g
|
|
4714
4689
|
);
|
|
4715
4690
|
};
|
|
4716
|
-
})(() =>
|
|
4717
|
-
r(14,
|
|
4718
|
-
},
|
|
4691
|
+
})(() => vr(), 500), vr = () => {
|
|
4692
|
+
r(14, se = rt()), i || (window.postMessage({ type: "isConsentsValid", isValid: se }), localStorage.setItem("playerConsents", JSON.stringify(O)));
|
|
4693
|
+
}, rt = () => O.filter((g) => O.some((T) => g.tagCode === T.tagCode && T.mustAccept && (g.status === R.denied.key || g.status === R.denied.value))).length === 0, Ee = (c) => {
|
|
4719
4694
|
window.postMessage(
|
|
4720
4695
|
{
|
|
4721
4696
|
type: "WidgetNotification",
|
|
@@ -4723,46 +4698,46 @@ function Zi(e, t, r) {
|
|
|
4723
4698
|
},
|
|
4724
4699
|
window.location.href
|
|
4725
4700
|
);
|
|
4726
|
-
},
|
|
4727
|
-
c.data && c.data.type !== "setUpPlayerConsents" ||
|
|
4701
|
+
}, kr = (c) => {
|
|
4702
|
+
c.data && c.data.type !== "setUpPlayerConsents" || _r(c.data.registerid);
|
|
4728
4703
|
};
|
|
4729
|
-
|
|
4704
|
+
Br(() => {
|
|
4730
4705
|
setTimeout(
|
|
4731
4706
|
() => {
|
|
4732
|
-
r(25,
|
|
4707
|
+
r(25, p = !0);
|
|
4733
4708
|
},
|
|
4734
4709
|
50
|
|
4735
4710
|
);
|
|
4736
|
-
const c = (
|
|
4711
|
+
const c = (g) => kr(g);
|
|
4737
4712
|
return window.addEventListener("message", c), () => {
|
|
4738
|
-
window.
|
|
4713
|
+
window.removeEventListener("message", c);
|
|
4739
4714
|
};
|
|
4740
4715
|
});
|
|
4741
|
-
function
|
|
4716
|
+
function br(c) {
|
|
4742
4717
|
F[c.categoryTagCode] = this.checked, r(11, F);
|
|
4743
4718
|
}
|
|
4744
|
-
const
|
|
4745
|
-
function
|
|
4746
|
-
|
|
4747
|
-
|
|
4719
|
+
const Er = (c) => tt(c.categoryTagCode), Cr = (c, g) => g.category.categoryTagCode === c.categoryTagCode, Sr = (c, g) => Be(g, c.category, c.id), xr = (c, g) => Be(g, null, c.id);
|
|
4720
|
+
function Mr(c) {
|
|
4721
|
+
it[c ? "unshift" : "push"](() => {
|
|
4722
|
+
ve = c, r(15, ve);
|
|
4748
4723
|
});
|
|
4749
4724
|
}
|
|
4750
|
-
function
|
|
4751
|
-
|
|
4725
|
+
function Tr(c) {
|
|
4726
|
+
it[c ? "unshift" : "push"](() => {
|
|
4752
4727
|
f = c, r(5, f);
|
|
4753
4728
|
});
|
|
4754
4729
|
}
|
|
4755
4730
|
return e.$$set = (c) => {
|
|
4756
|
-
"session" in c && r(0, i = c.session), "userid" in c && r(20, o = c.userid), "endpoint" in c && r(21, a = c.endpoint), "clientstyling" in c && r(1, s = c.clientstyling), "clientstylingurl" in c && r(2, h = c.clientstylingurl), "mbsource" in c && r(3, u = c.mbsource), "lang" in c && r(22, l = c.lang), "displayconsentdescription" in c && r(4, d = c.displayconsentdescription), "translationurl" in c && r(23, m = c.translationurl), "modalconsents" in c && r(24,
|
|
4731
|
+
"session" in c && r(0, i = c.session), "userid" in c && r(20, o = c.userid), "endpoint" in c && r(21, a = c.endpoint), "clientstyling" in c && r(1, s = c.clientstyling), "clientstylingurl" in c && r(2, h = c.clientstylingurl), "mbsource" in c && r(3, u = c.mbsource), "lang" in c && r(22, l = c.lang), "displayconsentdescription" in c && r(4, d = c.displayconsentdescription), "translationurl" in c && r(23, m = c.translationurl), "modalconsents" in c && r(24, v = c.modalconsents);
|
|
4757
4732
|
}, e.$$.update = () => {
|
|
4758
4733
|
e.$$.dirty[0] & /*isMounted, session*/
|
|
4759
|
-
33554433 &&
|
|
4760
|
-
1 && (i ||
|
|
4761
|
-
34 && s && f &&
|
|
4762
|
-
36 && h && f &&
|
|
4763
|
-
40 && f &&
|
|
4764
|
-
4194304 && l &&
|
|
4765
|
-
8388608 && m &&
|
|
4734
|
+
33554433 && p && i && (cr(), ur()), e.$$.dirty[0] & /*session*/
|
|
4735
|
+
1 && (i || hr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4736
|
+
34 && s && f && Or(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4737
|
+
36 && h && f && Ir(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4738
|
+
40 && f && jr(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
|
|
4739
|
+
4194304 && l && sr(), e.$$.dirty[0] & /*translationurl*/
|
|
4740
|
+
8388608 && m && lr();
|
|
4766
4741
|
}, [
|
|
4767
4742
|
i,
|
|
4768
4743
|
s,
|
|
@@ -4770,43 +4745,43 @@ function Zi(e, t, r) {
|
|
|
4770
4745
|
u,
|
|
4771
4746
|
d,
|
|
4772
4747
|
f,
|
|
4748
|
+
x,
|
|
4773
4749
|
P,
|
|
4774
|
-
|
|
4775
|
-
z,
|
|
4750
|
+
b,
|
|
4776
4751
|
O,
|
|
4777
|
-
|
|
4752
|
+
ae,
|
|
4778
4753
|
F,
|
|
4779
|
-
|
|
4754
|
+
W,
|
|
4780
4755
|
U,
|
|
4781
|
-
|
|
4782
|
-
|
|
4756
|
+
se,
|
|
4757
|
+
ve,
|
|
4783
4758
|
n,
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4759
|
+
fr,
|
|
4760
|
+
tt,
|
|
4761
|
+
Be,
|
|
4787
4762
|
o,
|
|
4788
4763
|
a,
|
|
4789
4764
|
l,
|
|
4790
4765
|
m,
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4766
|
+
v,
|
|
4767
|
+
p,
|
|
4768
|
+
br,
|
|
4769
|
+
Er,
|
|
4770
|
+
Cr,
|
|
4771
|
+
Sr,
|
|
4772
|
+
xr,
|
|
4773
|
+
Mr,
|
|
4774
|
+
Tr
|
|
4800
4775
|
];
|
|
4801
4776
|
}
|
|
4802
|
-
class
|
|
4777
|
+
class Li extends zt {
|
|
4803
4778
|
constructor(t) {
|
|
4804
|
-
super(),
|
|
4779
|
+
super(), Ot(
|
|
4805
4780
|
this,
|
|
4806
4781
|
t,
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4782
|
+
ji,
|
|
4783
|
+
Ii,
|
|
4784
|
+
Je,
|
|
4810
4785
|
{
|
|
4811
4786
|
session: 0,
|
|
4812
4787
|
userid: 20,
|
|
@@ -4819,7 +4794,7 @@ class Ji extends Dt {
|
|
|
4819
4794
|
translationurl: 23,
|
|
4820
4795
|
modalconsents: 24
|
|
4821
4796
|
},
|
|
4822
|
-
|
|
4797
|
+
Hi,
|
|
4823
4798
|
[-1, -1, -1]
|
|
4824
4799
|
);
|
|
4825
4800
|
}
|
|
@@ -4884,7 +4859,7 @@ class Ji extends Dt {
|
|
|
4884
4859
|
this.$$set({ modalconsents: t }), X();
|
|
4885
4860
|
}
|
|
4886
4861
|
}
|
|
4887
|
-
|
|
4862
|
+
Bt(Li, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
|
|
4888
4863
|
export {
|
|
4889
|
-
|
|
4864
|
+
Li as P
|
|
4890
4865
|
};
|