@everymatrix/player-consents 0.7.3 → 0.7.5

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.
@@ -0,0 +1,4290 @@
1
+ var Er = Object.defineProperty;
2
+ var tt = Object.getOwnPropertySymbols;
3
+ var yr = Object.prototype.hasOwnProperty, xr = Object.prototype.propertyIsEnumerable;
4
+ var rt = (e, t, r) => t in e ? Er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Z = (e, t) => {
5
+ for (var r in t || (t = {}))
6
+ yr.call(t, r) && rt(e, r, t[r]);
7
+ if (tt)
8
+ for (var r of tt(t))
9
+ xr.call(t, r) && rt(e, r, t[r]);
10
+ return e;
11
+ };
12
+ var le = (e, t, r) => new Promise((n, s) => {
13
+ var i = (l) => {
14
+ try {
15
+ a(r.next(l));
16
+ } catch (h) {
17
+ s(h);
18
+ }
19
+ }, o = (l) => {
20
+ try {
21
+ a(r.throw(l));
22
+ } catch (h) {
23
+ s(h);
24
+ }
25
+ }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(i, o);
26
+ a((r = r.apply(e, t)).next());
27
+ });
28
+ import { n as j, s as _r, r as Ve, a as Xe, i as Cr, c as wt, S as Bt, b as Pt, d as nt, e as H, f as U, g as y, h as M, j as W, k as Tr, l as w, m as st, o as Hr, p as Sr, q as Ar, t as ye, u as G, v as Nr, w as It, x as Q, y as Y, z as he, A as xe } from "./GeneralAnimationLoading-CZAWpbQR.js";
29
+ const $ = [];
30
+ function wr(e, t) {
31
+ return {
32
+ subscribe: Te(e, t).subscribe
33
+ };
34
+ }
35
+ function Te(e, t = j) {
36
+ let r;
37
+ const n = /* @__PURE__ */ new Set();
38
+ function s(a) {
39
+ if (Xe(e, a) && (e = a, r)) {
40
+ const l = !$.length;
41
+ for (const h of n)
42
+ h[1](), $.push(h, e);
43
+ if (l) {
44
+ for (let h = 0; h < $.length; h += 2)
45
+ $[h][0]($[h + 1]);
46
+ $.length = 0;
47
+ }
48
+ }
49
+ }
50
+ function i(a) {
51
+ s(a(e));
52
+ }
53
+ function o(a, l = j) {
54
+ const h = [a, l];
55
+ return n.add(h), n.size === 1 && (r = t(s, i) || j), a(e), () => {
56
+ n.delete(h), n.size === 0 && r && (r(), r = null);
57
+ };
58
+ }
59
+ return { set: s, update: i, subscribe: o };
60
+ }
61
+ function se(e, t, r) {
62
+ const n = !Array.isArray(e), s = n ? [e] : e;
63
+ if (!s.every(Boolean))
64
+ throw new Error("derived() expects stores as input, got a falsy value");
65
+ const i = t.length < 2;
66
+ return wr(r, (o, a) => {
67
+ let l = !1;
68
+ const h = [];
69
+ let u = 0, d = j;
70
+ const f = () => {
71
+ if (u)
72
+ return;
73
+ d();
74
+ const T = t(n ? h[0] : h, o, a);
75
+ i ? o(T) : d = Cr(T) ? T : j;
76
+ }, p = s.map(
77
+ (T, B) => _r(
78
+ T,
79
+ (C) => {
80
+ h[B] = C, u &= ~(1 << B), l && f();
81
+ },
82
+ () => {
83
+ u |= 1 << B;
84
+ }
85
+ )
86
+ );
87
+ return l = !0, f(), function() {
88
+ Ve(p), d(), l = !1;
89
+ };
90
+ });
91
+ }
92
+ function Br(e) {
93
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
94
+ }
95
+ var Pr = function(t) {
96
+ return Ir(t) && !Lr(t);
97
+ };
98
+ function Ir(e) {
99
+ return !!e && typeof e == "object";
100
+ }
101
+ function Lr(e) {
102
+ var t = Object.prototype.toString.call(e);
103
+ return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
104
+ }
105
+ var Or = typeof Symbol == "function" && Symbol.for, Rr = Or ? Symbol.for("react.element") : 60103;
106
+ function Ur(e) {
107
+ return e.$$typeof === Rr;
108
+ }
109
+ function Mr(e) {
110
+ return Array.isArray(e) ? [] : {};
111
+ }
112
+ function ce(e, t) {
113
+ return t.clone !== !1 && t.isMergeableObject(e) ? ee(Mr(e), e, t) : e;
114
+ }
115
+ function kr(e, t, r) {
116
+ return e.concat(t).map(function(n) {
117
+ return ce(n, r);
118
+ });
119
+ }
120
+ function Dr(e, t) {
121
+ if (!t.customMerge)
122
+ return ee;
123
+ var r = t.customMerge(e);
124
+ return typeof r == "function" ? r : ee;
125
+ }
126
+ function Gr(e) {
127
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
128
+ return Object.propertyIsEnumerable.call(e, t);
129
+ }) : [];
130
+ }
131
+ function it(e) {
132
+ return Object.keys(e).concat(Gr(e));
133
+ }
134
+ function Lt(e, t) {
135
+ try {
136
+ return t in e;
137
+ } catch (r) {
138
+ return !1;
139
+ }
140
+ }
141
+ function jr(e, t) {
142
+ return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
143
+ }
144
+ function zr(e, t, r) {
145
+ var n = {};
146
+ return r.isMergeableObject(e) && it(e).forEach(function(s) {
147
+ n[s] = ce(e[s], r);
148
+ }), it(t).forEach(function(s) {
149
+ jr(e, s) || (Lt(e, s) && r.isMergeableObject(t[s]) ? n[s] = Dr(s, r)(e[s], t[s], r) : n[s] = ce(t[s], r));
150
+ }), n;
151
+ }
152
+ function ee(e, t, r) {
153
+ r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || Pr, r.cloneUnlessOtherwiseSpecified = ce;
154
+ var n = Array.isArray(t), s = Array.isArray(e), i = n === s;
155
+ return i ? n ? r.arrayMerge(e, t, r) : zr(e, t, r) : ce(t, r);
156
+ }
157
+ ee.all = function(t, r) {
158
+ if (!Array.isArray(t))
159
+ throw new Error("first argument should be an array");
160
+ return t.reduce(function(n, s) {
161
+ return ee(n, s, r);
162
+ }, {});
163
+ };
164
+ var Fr = ee, Vr = Fr;
165
+ const Xr = /* @__PURE__ */ Br(Vr);
166
+ var Re = function(e, t) {
167
+ return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
168
+ r.__proto__ = n;
169
+ } || function(r, n) {
170
+ for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (r[s] = n[s]);
171
+ }, Re(e, t);
172
+ };
173
+ function He(e, t) {
174
+ if (typeof t != "function" && t !== null)
175
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
176
+ Re(e, t);
177
+ function r() {
178
+ this.constructor = e;
179
+ }
180
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
181
+ }
182
+ var E = function() {
183
+ return E = Object.assign || function(t) {
184
+ for (var r, n = 1, s = arguments.length; n < s; n++) {
185
+ r = arguments[n];
186
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
187
+ }
188
+ return t;
189
+ }, E.apply(this, arguments);
190
+ };
191
+ function Zr(e, t) {
192
+ var r = {};
193
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
194
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
195
+ for (var s = 0, n = Object.getOwnPropertySymbols(e); s < n.length; s++)
196
+ t.indexOf(n[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[s]) && (r[n[s]] = e[n[s]]);
197
+ return r;
198
+ }
199
+ function we(e, t, r) {
200
+ if (r || arguments.length === 2) for (var n = 0, s = t.length, i; n < s; n++)
201
+ (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
202
+ return e.concat(i || Array.prototype.slice.call(t));
203
+ }
204
+ function Be(e, t) {
205
+ var r = t && t.cache ? t.cache : Kr, n = t && t.serializer ? t.serializer : Yr, s = t && t.strategy ? t.strategy : qr;
206
+ return s(e, {
207
+ cache: r,
208
+ serializer: n
209
+ });
210
+ }
211
+ function Wr(e) {
212
+ return e == null || typeof e == "number" || typeof e == "boolean";
213
+ }
214
+ function Ot(e, t, r, n) {
215
+ var s = Wr(n) ? n : r(n), i = t.get(s);
216
+ return typeof i == "undefined" && (i = e.call(this, n), t.set(s, i)), i;
217
+ }
218
+ function Rt(e, t, r) {
219
+ var n = Array.prototype.slice.call(arguments, 3), s = r(n), i = t.get(s);
220
+ return typeof i == "undefined" && (i = e.apply(this, n), t.set(s, i)), i;
221
+ }
222
+ function Ze(e, t, r, n, s) {
223
+ return r.bind(t, e, n, s);
224
+ }
225
+ function qr(e, t) {
226
+ var r = e.length === 1 ? Ot : Rt;
227
+ return Ze(e, this, r, t.cache.create(), t.serializer);
228
+ }
229
+ function Jr(e, t) {
230
+ return Ze(e, this, Rt, t.cache.create(), t.serializer);
231
+ }
232
+ function Qr(e, t) {
233
+ return Ze(e, this, Ot, t.cache.create(), t.serializer);
234
+ }
235
+ var Yr = function() {
236
+ return JSON.stringify(arguments);
237
+ };
238
+ function We() {
239
+ this.cache = /* @__PURE__ */ Object.create(null);
240
+ }
241
+ We.prototype.get = function(e) {
242
+ return this.cache[e];
243
+ };
244
+ We.prototype.set = function(e, t) {
245
+ this.cache[e] = t;
246
+ };
247
+ var Kr = {
248
+ create: function() {
249
+ return new We();
250
+ }
251
+ }, Pe = {
252
+ variadic: Jr,
253
+ monadic: Qr
254
+ }, g;
255
+ (function(e) {
256
+ 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";
257
+ })(g || (g = {}));
258
+ var P;
259
+ (function(e) {
260
+ 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";
261
+ })(P || (P = {}));
262
+ var te;
263
+ (function(e) {
264
+ e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
265
+ })(te || (te = {}));
266
+ function ot(e) {
267
+ return e.type === P.literal;
268
+ }
269
+ function $r(e) {
270
+ return e.type === P.argument;
271
+ }
272
+ function Ut(e) {
273
+ return e.type === P.number;
274
+ }
275
+ function Mt(e) {
276
+ return e.type === P.date;
277
+ }
278
+ function kt(e) {
279
+ return e.type === P.time;
280
+ }
281
+ function Dt(e) {
282
+ return e.type === P.select;
283
+ }
284
+ function Gt(e) {
285
+ return e.type === P.plural;
286
+ }
287
+ function en(e) {
288
+ return e.type === P.pound;
289
+ }
290
+ function jt(e) {
291
+ return e.type === P.tag;
292
+ }
293
+ function zt(e) {
294
+ return !!(e && typeof e == "object" && e.type === te.number);
295
+ }
296
+ function Ue(e) {
297
+ return !!(e && typeof e == "object" && e.type === te.dateTime);
298
+ }
299
+ var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tn = /(?:[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;
300
+ function rn(e) {
301
+ var t = {};
302
+ return e.replace(tn, function(r) {
303
+ var n = r.length;
304
+ switch (r[0]) {
305
+ case "G":
306
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
307
+ break;
308
+ case "y":
309
+ t.year = n === 2 ? "2-digit" : "numeric";
310
+ break;
311
+ case "Y":
312
+ case "u":
313
+ case "U":
314
+ case "r":
315
+ throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
316
+ case "q":
317
+ case "Q":
318
+ throw new RangeError("`q/Q` (quarter) patterns are not supported");
319
+ case "M":
320
+ case "L":
321
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
322
+ break;
323
+ case "w":
324
+ case "W":
325
+ throw new RangeError("`w/W` (week) patterns are not supported");
326
+ case "d":
327
+ t.day = ["numeric", "2-digit"][n - 1];
328
+ break;
329
+ case "D":
330
+ case "F":
331
+ case "g":
332
+ throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
333
+ case "E":
334
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
335
+ break;
336
+ case "e":
337
+ if (n < 4)
338
+ throw new RangeError("`e..eee` (weekday) patterns are not supported");
339
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
340
+ break;
341
+ case "c":
342
+ if (n < 4)
343
+ throw new RangeError("`c..ccc` (weekday) patterns are not supported");
344
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
345
+ break;
346
+ case "a":
347
+ t.hour12 = !0;
348
+ break;
349
+ case "b":
350
+ case "B":
351
+ throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
352
+ case "h":
353
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
354
+ break;
355
+ case "H":
356
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
357
+ break;
358
+ case "K":
359
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
360
+ break;
361
+ case "k":
362
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
363
+ break;
364
+ case "j":
365
+ case "J":
366
+ case "C":
367
+ throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
368
+ case "m":
369
+ t.minute = ["numeric", "2-digit"][n - 1];
370
+ break;
371
+ case "s":
372
+ t.second = ["numeric", "2-digit"][n - 1];
373
+ break;
374
+ case "S":
375
+ case "A":
376
+ throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
377
+ case "z":
378
+ t.timeZoneName = n < 4 ? "short" : "long";
379
+ break;
380
+ case "Z":
381
+ case "O":
382
+ case "v":
383
+ case "V":
384
+ case "X":
385
+ case "x":
386
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
387
+ }
388
+ return "";
389
+ }), t;
390
+ }
391
+ var nn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
392
+ function sn(e) {
393
+ if (e.length === 0)
394
+ throw new Error("Number skeleton cannot be empty");
395
+ for (var t = e.split(nn).filter(function(f) {
396
+ return f.length > 0;
397
+ }), r = [], n = 0, s = t; n < s.length; n++) {
398
+ var i = s[n], o = i.split("/");
399
+ if (o.length === 0)
400
+ throw new Error("Invalid number skeleton");
401
+ for (var a = o[0], l = o.slice(1), h = 0, u = l; h < u.length; h++) {
402
+ var d = u[h];
403
+ if (d.length === 0)
404
+ throw new Error("Invalid number skeleton");
405
+ }
406
+ r.push({ stem: a, options: l });
407
+ }
408
+ return r;
409
+ }
410
+ function on(e) {
411
+ return e.replace(/^(.*?)-/, "");
412
+ }
413
+ var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, an = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
414
+ function lt(e) {
415
+ var t = {};
416
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, s) {
417
+ return typeof s != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : s === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof s == "string" ? s.length : 0)), "";
418
+ }), t;
419
+ }
420
+ function Zt(e) {
421
+ switch (e) {
422
+ case "sign-auto":
423
+ return {
424
+ signDisplay: "auto"
425
+ };
426
+ case "sign-accounting":
427
+ case "()":
428
+ return {
429
+ currencySign: "accounting"
430
+ };
431
+ case "sign-always":
432
+ case "+!":
433
+ return {
434
+ signDisplay: "always"
435
+ };
436
+ case "sign-accounting-always":
437
+ case "()!":
438
+ return {
439
+ signDisplay: "always",
440
+ currencySign: "accounting"
441
+ };
442
+ case "sign-except-zero":
443
+ case "+?":
444
+ return {
445
+ signDisplay: "exceptZero"
446
+ };
447
+ case "sign-accounting-except-zero":
448
+ case "()?":
449
+ return {
450
+ signDisplay: "exceptZero",
451
+ currencySign: "accounting"
452
+ };
453
+ case "sign-never":
454
+ case "+_":
455
+ return {
456
+ signDisplay: "never"
457
+ };
458
+ }
459
+ }
460
+ function ln(e) {
461
+ var t;
462
+ if (e[0] === "E" && e[1] === "E" ? (t = {
463
+ notation: "engineering"
464
+ }, e = e.slice(2)) : e[0] === "E" && (t = {
465
+ notation: "scientific"
466
+ }, e = e.slice(1)), t) {
467
+ var r = e.slice(0, 2);
468
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
469
+ throw new Error("Malformed concise eng/scientific notation");
470
+ t.minimumIntegerDigits = e.length;
471
+ }
472
+ return t;
473
+ }
474
+ function ut(e) {
475
+ var t = {}, r = Zt(e);
476
+ return r || t;
477
+ }
478
+ function un(e) {
479
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
480
+ var s = n[r];
481
+ switch (s.stem) {
482
+ case "percent":
483
+ case "%":
484
+ t.style = "percent";
485
+ continue;
486
+ case "%x100":
487
+ t.style = "percent", t.scale = 100;
488
+ continue;
489
+ case "currency":
490
+ t.style = "currency", t.currency = s.options[0];
491
+ continue;
492
+ case "group-off":
493
+ case ",_":
494
+ t.useGrouping = !1;
495
+ continue;
496
+ case "precision-integer":
497
+ case ".":
498
+ t.maximumFractionDigits = 0;
499
+ continue;
500
+ case "measure-unit":
501
+ case "unit":
502
+ t.style = "unit", t.unit = on(s.options[0]);
503
+ continue;
504
+ case "compact-short":
505
+ case "K":
506
+ t.notation = "compact", t.compactDisplay = "short";
507
+ continue;
508
+ case "compact-long":
509
+ case "KK":
510
+ t.notation = "compact", t.compactDisplay = "long";
511
+ continue;
512
+ case "scientific":
513
+ t = E(E(E({}, t), { notation: "scientific" }), s.options.reduce(function(l, h) {
514
+ return E(E({}, l), ut(h));
515
+ }, {}));
516
+ continue;
517
+ case "engineering":
518
+ t = E(E(E({}, t), { notation: "engineering" }), s.options.reduce(function(l, h) {
519
+ return E(E({}, l), ut(h));
520
+ }, {}));
521
+ continue;
522
+ case "notation-simple":
523
+ t.notation = "standard";
524
+ continue;
525
+ case "unit-width-narrow":
526
+ t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
527
+ continue;
528
+ case "unit-width-short":
529
+ t.currencyDisplay = "code", t.unitDisplay = "short";
530
+ continue;
531
+ case "unit-width-full-name":
532
+ t.currencyDisplay = "name", t.unitDisplay = "long";
533
+ continue;
534
+ case "unit-width-iso-code":
535
+ t.currencyDisplay = "symbol";
536
+ continue;
537
+ case "scale":
538
+ t.scale = parseFloat(s.options[0]);
539
+ continue;
540
+ case "rounding-mode-floor":
541
+ t.roundingMode = "floor";
542
+ continue;
543
+ case "rounding-mode-ceiling":
544
+ t.roundingMode = "ceil";
545
+ continue;
546
+ case "rounding-mode-down":
547
+ t.roundingMode = "trunc";
548
+ continue;
549
+ case "rounding-mode-up":
550
+ t.roundingMode = "expand";
551
+ continue;
552
+ case "rounding-mode-half-even":
553
+ t.roundingMode = "halfEven";
554
+ continue;
555
+ case "rounding-mode-half-down":
556
+ t.roundingMode = "halfTrunc";
557
+ continue;
558
+ case "rounding-mode-half-up":
559
+ t.roundingMode = "halfExpand";
560
+ continue;
561
+ case "integer-width":
562
+ if (s.options.length > 1)
563
+ throw new RangeError("integer-width stems only accept a single optional option");
564
+ s.options[0].replace(an, function(l, h, u, d, f, p) {
565
+ if (h)
566
+ t.minimumIntegerDigits = u.length;
567
+ else {
568
+ if (d && f)
569
+ throw new Error("We currently do not support maximum integer digits");
570
+ if (p)
571
+ throw new Error("We currently do not support exact integer digits");
572
+ }
573
+ return "";
574
+ });
575
+ continue;
576
+ }
577
+ if (Xt.test(s.stem)) {
578
+ t.minimumIntegerDigits = s.stem.length;
579
+ continue;
580
+ }
581
+ if (at.test(s.stem)) {
582
+ if (s.options.length > 1)
583
+ throw new RangeError("Fraction-precision stems only accept a single optional option");
584
+ s.stem.replace(at, function(l, h, u, d, f, p) {
585
+ return u === "*" ? t.minimumFractionDigits = h.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
586
+ });
587
+ var i = s.options[0];
588
+ i === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = E(E({}, t), lt(i)));
589
+ continue;
590
+ }
591
+ if (Vt.test(s.stem)) {
592
+ t = E(E({}, t), lt(s.stem));
593
+ continue;
594
+ }
595
+ var o = Zt(s.stem);
596
+ o && (t = E(E({}, t), o));
597
+ var a = ln(s.stem);
598
+ a && (t = E(E({}, t), a));
599
+ }
600
+ return t;
601
+ }
602
+ var ve = {
603
+ "001": [
604
+ "H",
605
+ "h"
606
+ ],
607
+ 419: [
608
+ "h",
609
+ "H",
610
+ "hB",
611
+ "hb"
612
+ ],
613
+ AC: [
614
+ "H",
615
+ "h",
616
+ "hb",
617
+ "hB"
618
+ ],
619
+ AD: [
620
+ "H",
621
+ "hB"
622
+ ],
623
+ AE: [
624
+ "h",
625
+ "hB",
626
+ "hb",
627
+ "H"
628
+ ],
629
+ AF: [
630
+ "H",
631
+ "hb",
632
+ "hB",
633
+ "h"
634
+ ],
635
+ AG: [
636
+ "h",
637
+ "hb",
638
+ "H",
639
+ "hB"
640
+ ],
641
+ AI: [
642
+ "H",
643
+ "h",
644
+ "hb",
645
+ "hB"
646
+ ],
647
+ AL: [
648
+ "h",
649
+ "H",
650
+ "hB"
651
+ ],
652
+ AM: [
653
+ "H",
654
+ "hB"
655
+ ],
656
+ AO: [
657
+ "H",
658
+ "hB"
659
+ ],
660
+ AR: [
661
+ "h",
662
+ "H",
663
+ "hB",
664
+ "hb"
665
+ ],
666
+ AS: [
667
+ "h",
668
+ "H"
669
+ ],
670
+ AT: [
671
+ "H",
672
+ "hB"
673
+ ],
674
+ AU: [
675
+ "h",
676
+ "hb",
677
+ "H",
678
+ "hB"
679
+ ],
680
+ AW: [
681
+ "H",
682
+ "hB"
683
+ ],
684
+ AX: [
685
+ "H"
686
+ ],
687
+ AZ: [
688
+ "H",
689
+ "hB",
690
+ "h"
691
+ ],
692
+ BA: [
693
+ "H",
694
+ "hB",
695
+ "h"
696
+ ],
697
+ BB: [
698
+ "h",
699
+ "hb",
700
+ "H",
701
+ "hB"
702
+ ],
703
+ BD: [
704
+ "h",
705
+ "hB",
706
+ "H"
707
+ ],
708
+ BE: [
709
+ "H",
710
+ "hB"
711
+ ],
712
+ BF: [
713
+ "H",
714
+ "hB"
715
+ ],
716
+ BG: [
717
+ "H",
718
+ "hB",
719
+ "h"
720
+ ],
721
+ BH: [
722
+ "h",
723
+ "hB",
724
+ "hb",
725
+ "H"
726
+ ],
727
+ BI: [
728
+ "H",
729
+ "h"
730
+ ],
731
+ BJ: [
732
+ "H",
733
+ "hB"
734
+ ],
735
+ BL: [
736
+ "H",
737
+ "hB"
738
+ ],
739
+ BM: [
740
+ "h",
741
+ "hb",
742
+ "H",
743
+ "hB"
744
+ ],
745
+ BN: [
746
+ "hb",
747
+ "hB",
748
+ "h",
749
+ "H"
750
+ ],
751
+ BO: [
752
+ "h",
753
+ "H",
754
+ "hB",
755
+ "hb"
756
+ ],
757
+ BQ: [
758
+ "H"
759
+ ],
760
+ BR: [
761
+ "H",
762
+ "hB"
763
+ ],
764
+ BS: [
765
+ "h",
766
+ "hb",
767
+ "H",
768
+ "hB"
769
+ ],
770
+ BT: [
771
+ "h",
772
+ "H"
773
+ ],
774
+ BW: [
775
+ "H",
776
+ "h",
777
+ "hb",
778
+ "hB"
779
+ ],
780
+ BY: [
781
+ "H",
782
+ "h"
783
+ ],
784
+ BZ: [
785
+ "H",
786
+ "h",
787
+ "hb",
788
+ "hB"
789
+ ],
790
+ CA: [
791
+ "h",
792
+ "hb",
793
+ "H",
794
+ "hB"
795
+ ],
796
+ CC: [
797
+ "H",
798
+ "h",
799
+ "hb",
800
+ "hB"
801
+ ],
802
+ CD: [
803
+ "hB",
804
+ "H"
805
+ ],
806
+ CF: [
807
+ "H",
808
+ "h",
809
+ "hB"
810
+ ],
811
+ CG: [
812
+ "H",
813
+ "hB"
814
+ ],
815
+ CH: [
816
+ "H",
817
+ "hB",
818
+ "h"
819
+ ],
820
+ CI: [
821
+ "H",
822
+ "hB"
823
+ ],
824
+ CK: [
825
+ "H",
826
+ "h",
827
+ "hb",
828
+ "hB"
829
+ ],
830
+ CL: [
831
+ "h",
832
+ "H",
833
+ "hB",
834
+ "hb"
835
+ ],
836
+ CM: [
837
+ "H",
838
+ "h",
839
+ "hB"
840
+ ],
841
+ CN: [
842
+ "H",
843
+ "hB",
844
+ "hb",
845
+ "h"
846
+ ],
847
+ CO: [
848
+ "h",
849
+ "H",
850
+ "hB",
851
+ "hb"
852
+ ],
853
+ CP: [
854
+ "H"
855
+ ],
856
+ CR: [
857
+ "h",
858
+ "H",
859
+ "hB",
860
+ "hb"
861
+ ],
862
+ CU: [
863
+ "h",
864
+ "H",
865
+ "hB",
866
+ "hb"
867
+ ],
868
+ CV: [
869
+ "H",
870
+ "hB"
871
+ ],
872
+ CW: [
873
+ "H",
874
+ "hB"
875
+ ],
876
+ CX: [
877
+ "H",
878
+ "h",
879
+ "hb",
880
+ "hB"
881
+ ],
882
+ CY: [
883
+ "h",
884
+ "H",
885
+ "hb",
886
+ "hB"
887
+ ],
888
+ CZ: [
889
+ "H"
890
+ ],
891
+ DE: [
892
+ "H",
893
+ "hB"
894
+ ],
895
+ DG: [
896
+ "H",
897
+ "h",
898
+ "hb",
899
+ "hB"
900
+ ],
901
+ DJ: [
902
+ "h",
903
+ "H"
904
+ ],
905
+ DK: [
906
+ "H"
907
+ ],
908
+ DM: [
909
+ "h",
910
+ "hb",
911
+ "H",
912
+ "hB"
913
+ ],
914
+ DO: [
915
+ "h",
916
+ "H",
917
+ "hB",
918
+ "hb"
919
+ ],
920
+ DZ: [
921
+ "h",
922
+ "hB",
923
+ "hb",
924
+ "H"
925
+ ],
926
+ EA: [
927
+ "H",
928
+ "h",
929
+ "hB",
930
+ "hb"
931
+ ],
932
+ EC: [
933
+ "h",
934
+ "H",
935
+ "hB",
936
+ "hb"
937
+ ],
938
+ EE: [
939
+ "H",
940
+ "hB"
941
+ ],
942
+ EG: [
943
+ "h",
944
+ "hB",
945
+ "hb",
946
+ "H"
947
+ ],
948
+ EH: [
949
+ "h",
950
+ "hB",
951
+ "hb",
952
+ "H"
953
+ ],
954
+ ER: [
955
+ "h",
956
+ "H"
957
+ ],
958
+ ES: [
959
+ "H",
960
+ "hB",
961
+ "h",
962
+ "hb"
963
+ ],
964
+ ET: [
965
+ "hB",
966
+ "hb",
967
+ "h",
968
+ "H"
969
+ ],
970
+ FI: [
971
+ "H"
972
+ ],
973
+ FJ: [
974
+ "h",
975
+ "hb",
976
+ "H",
977
+ "hB"
978
+ ],
979
+ FK: [
980
+ "H",
981
+ "h",
982
+ "hb",
983
+ "hB"
984
+ ],
985
+ FM: [
986
+ "h",
987
+ "hb",
988
+ "H",
989
+ "hB"
990
+ ],
991
+ FO: [
992
+ "H",
993
+ "h"
994
+ ],
995
+ FR: [
996
+ "H",
997
+ "hB"
998
+ ],
999
+ GA: [
1000
+ "H",
1001
+ "hB"
1002
+ ],
1003
+ GB: [
1004
+ "H",
1005
+ "h",
1006
+ "hb",
1007
+ "hB"
1008
+ ],
1009
+ GD: [
1010
+ "h",
1011
+ "hb",
1012
+ "H",
1013
+ "hB"
1014
+ ],
1015
+ GE: [
1016
+ "H",
1017
+ "hB",
1018
+ "h"
1019
+ ],
1020
+ GF: [
1021
+ "H",
1022
+ "hB"
1023
+ ],
1024
+ GG: [
1025
+ "H",
1026
+ "h",
1027
+ "hb",
1028
+ "hB"
1029
+ ],
1030
+ GH: [
1031
+ "h",
1032
+ "H"
1033
+ ],
1034
+ GI: [
1035
+ "H",
1036
+ "h",
1037
+ "hb",
1038
+ "hB"
1039
+ ],
1040
+ GL: [
1041
+ "H",
1042
+ "h"
1043
+ ],
1044
+ GM: [
1045
+ "h",
1046
+ "hb",
1047
+ "H",
1048
+ "hB"
1049
+ ],
1050
+ GN: [
1051
+ "H",
1052
+ "hB"
1053
+ ],
1054
+ GP: [
1055
+ "H",
1056
+ "hB"
1057
+ ],
1058
+ GQ: [
1059
+ "H",
1060
+ "hB",
1061
+ "h",
1062
+ "hb"
1063
+ ],
1064
+ GR: [
1065
+ "h",
1066
+ "H",
1067
+ "hb",
1068
+ "hB"
1069
+ ],
1070
+ GT: [
1071
+ "h",
1072
+ "H",
1073
+ "hB",
1074
+ "hb"
1075
+ ],
1076
+ GU: [
1077
+ "h",
1078
+ "hb",
1079
+ "H",
1080
+ "hB"
1081
+ ],
1082
+ GW: [
1083
+ "H",
1084
+ "hB"
1085
+ ],
1086
+ GY: [
1087
+ "h",
1088
+ "hb",
1089
+ "H",
1090
+ "hB"
1091
+ ],
1092
+ HK: [
1093
+ "h",
1094
+ "hB",
1095
+ "hb",
1096
+ "H"
1097
+ ],
1098
+ HN: [
1099
+ "h",
1100
+ "H",
1101
+ "hB",
1102
+ "hb"
1103
+ ],
1104
+ HR: [
1105
+ "H",
1106
+ "hB"
1107
+ ],
1108
+ HU: [
1109
+ "H",
1110
+ "h"
1111
+ ],
1112
+ IC: [
1113
+ "H",
1114
+ "h",
1115
+ "hB",
1116
+ "hb"
1117
+ ],
1118
+ ID: [
1119
+ "H"
1120
+ ],
1121
+ IE: [
1122
+ "H",
1123
+ "h",
1124
+ "hb",
1125
+ "hB"
1126
+ ],
1127
+ IL: [
1128
+ "H",
1129
+ "hB"
1130
+ ],
1131
+ IM: [
1132
+ "H",
1133
+ "h",
1134
+ "hb",
1135
+ "hB"
1136
+ ],
1137
+ IN: [
1138
+ "h",
1139
+ "H"
1140
+ ],
1141
+ IO: [
1142
+ "H",
1143
+ "h",
1144
+ "hb",
1145
+ "hB"
1146
+ ],
1147
+ IQ: [
1148
+ "h",
1149
+ "hB",
1150
+ "hb",
1151
+ "H"
1152
+ ],
1153
+ IR: [
1154
+ "hB",
1155
+ "H"
1156
+ ],
1157
+ IS: [
1158
+ "H"
1159
+ ],
1160
+ IT: [
1161
+ "H",
1162
+ "hB"
1163
+ ],
1164
+ JE: [
1165
+ "H",
1166
+ "h",
1167
+ "hb",
1168
+ "hB"
1169
+ ],
1170
+ JM: [
1171
+ "h",
1172
+ "hb",
1173
+ "H",
1174
+ "hB"
1175
+ ],
1176
+ JO: [
1177
+ "h",
1178
+ "hB",
1179
+ "hb",
1180
+ "H"
1181
+ ],
1182
+ JP: [
1183
+ "H",
1184
+ "K",
1185
+ "h"
1186
+ ],
1187
+ KE: [
1188
+ "hB",
1189
+ "hb",
1190
+ "H",
1191
+ "h"
1192
+ ],
1193
+ KG: [
1194
+ "H",
1195
+ "h",
1196
+ "hB",
1197
+ "hb"
1198
+ ],
1199
+ KH: [
1200
+ "hB",
1201
+ "h",
1202
+ "H",
1203
+ "hb"
1204
+ ],
1205
+ KI: [
1206
+ "h",
1207
+ "hb",
1208
+ "H",
1209
+ "hB"
1210
+ ],
1211
+ KM: [
1212
+ "H",
1213
+ "h",
1214
+ "hB",
1215
+ "hb"
1216
+ ],
1217
+ KN: [
1218
+ "h",
1219
+ "hb",
1220
+ "H",
1221
+ "hB"
1222
+ ],
1223
+ KP: [
1224
+ "h",
1225
+ "H",
1226
+ "hB",
1227
+ "hb"
1228
+ ],
1229
+ KR: [
1230
+ "h",
1231
+ "H",
1232
+ "hB",
1233
+ "hb"
1234
+ ],
1235
+ KW: [
1236
+ "h",
1237
+ "hB",
1238
+ "hb",
1239
+ "H"
1240
+ ],
1241
+ KY: [
1242
+ "h",
1243
+ "hb",
1244
+ "H",
1245
+ "hB"
1246
+ ],
1247
+ KZ: [
1248
+ "H",
1249
+ "hB"
1250
+ ],
1251
+ LA: [
1252
+ "H",
1253
+ "hb",
1254
+ "hB",
1255
+ "h"
1256
+ ],
1257
+ LB: [
1258
+ "h",
1259
+ "hB",
1260
+ "hb",
1261
+ "H"
1262
+ ],
1263
+ LC: [
1264
+ "h",
1265
+ "hb",
1266
+ "H",
1267
+ "hB"
1268
+ ],
1269
+ LI: [
1270
+ "H",
1271
+ "hB",
1272
+ "h"
1273
+ ],
1274
+ LK: [
1275
+ "H",
1276
+ "h",
1277
+ "hB",
1278
+ "hb"
1279
+ ],
1280
+ LR: [
1281
+ "h",
1282
+ "hb",
1283
+ "H",
1284
+ "hB"
1285
+ ],
1286
+ LS: [
1287
+ "h",
1288
+ "H"
1289
+ ],
1290
+ LT: [
1291
+ "H",
1292
+ "h",
1293
+ "hb",
1294
+ "hB"
1295
+ ],
1296
+ LU: [
1297
+ "H",
1298
+ "h",
1299
+ "hB"
1300
+ ],
1301
+ LV: [
1302
+ "H",
1303
+ "hB",
1304
+ "hb",
1305
+ "h"
1306
+ ],
1307
+ LY: [
1308
+ "h",
1309
+ "hB",
1310
+ "hb",
1311
+ "H"
1312
+ ],
1313
+ MA: [
1314
+ "H",
1315
+ "h",
1316
+ "hB",
1317
+ "hb"
1318
+ ],
1319
+ MC: [
1320
+ "H",
1321
+ "hB"
1322
+ ],
1323
+ MD: [
1324
+ "H",
1325
+ "hB"
1326
+ ],
1327
+ ME: [
1328
+ "H",
1329
+ "hB",
1330
+ "h"
1331
+ ],
1332
+ MF: [
1333
+ "H",
1334
+ "hB"
1335
+ ],
1336
+ MG: [
1337
+ "H",
1338
+ "h"
1339
+ ],
1340
+ MH: [
1341
+ "h",
1342
+ "hb",
1343
+ "H",
1344
+ "hB"
1345
+ ],
1346
+ MK: [
1347
+ "H",
1348
+ "h",
1349
+ "hb",
1350
+ "hB"
1351
+ ],
1352
+ ML: [
1353
+ "H"
1354
+ ],
1355
+ MM: [
1356
+ "hB",
1357
+ "hb",
1358
+ "H",
1359
+ "h"
1360
+ ],
1361
+ MN: [
1362
+ "H",
1363
+ "h",
1364
+ "hb",
1365
+ "hB"
1366
+ ],
1367
+ MO: [
1368
+ "h",
1369
+ "hB",
1370
+ "hb",
1371
+ "H"
1372
+ ],
1373
+ MP: [
1374
+ "h",
1375
+ "hb",
1376
+ "H",
1377
+ "hB"
1378
+ ],
1379
+ MQ: [
1380
+ "H",
1381
+ "hB"
1382
+ ],
1383
+ MR: [
1384
+ "h",
1385
+ "hB",
1386
+ "hb",
1387
+ "H"
1388
+ ],
1389
+ MS: [
1390
+ "H",
1391
+ "h",
1392
+ "hb",
1393
+ "hB"
1394
+ ],
1395
+ MT: [
1396
+ "H",
1397
+ "h"
1398
+ ],
1399
+ MU: [
1400
+ "H",
1401
+ "h"
1402
+ ],
1403
+ MV: [
1404
+ "H",
1405
+ "h"
1406
+ ],
1407
+ MW: [
1408
+ "h",
1409
+ "hb",
1410
+ "H",
1411
+ "hB"
1412
+ ],
1413
+ MX: [
1414
+ "h",
1415
+ "H",
1416
+ "hB",
1417
+ "hb"
1418
+ ],
1419
+ MY: [
1420
+ "hb",
1421
+ "hB",
1422
+ "h",
1423
+ "H"
1424
+ ],
1425
+ MZ: [
1426
+ "H",
1427
+ "hB"
1428
+ ],
1429
+ NA: [
1430
+ "h",
1431
+ "H",
1432
+ "hB",
1433
+ "hb"
1434
+ ],
1435
+ NC: [
1436
+ "H",
1437
+ "hB"
1438
+ ],
1439
+ NE: [
1440
+ "H"
1441
+ ],
1442
+ NF: [
1443
+ "H",
1444
+ "h",
1445
+ "hb",
1446
+ "hB"
1447
+ ],
1448
+ NG: [
1449
+ "H",
1450
+ "h",
1451
+ "hb",
1452
+ "hB"
1453
+ ],
1454
+ NI: [
1455
+ "h",
1456
+ "H",
1457
+ "hB",
1458
+ "hb"
1459
+ ],
1460
+ NL: [
1461
+ "H",
1462
+ "hB"
1463
+ ],
1464
+ NO: [
1465
+ "H",
1466
+ "h"
1467
+ ],
1468
+ NP: [
1469
+ "H",
1470
+ "h",
1471
+ "hB"
1472
+ ],
1473
+ NR: [
1474
+ "H",
1475
+ "h",
1476
+ "hb",
1477
+ "hB"
1478
+ ],
1479
+ NU: [
1480
+ "H",
1481
+ "h",
1482
+ "hb",
1483
+ "hB"
1484
+ ],
1485
+ NZ: [
1486
+ "h",
1487
+ "hb",
1488
+ "H",
1489
+ "hB"
1490
+ ],
1491
+ OM: [
1492
+ "h",
1493
+ "hB",
1494
+ "hb",
1495
+ "H"
1496
+ ],
1497
+ PA: [
1498
+ "h",
1499
+ "H",
1500
+ "hB",
1501
+ "hb"
1502
+ ],
1503
+ PE: [
1504
+ "h",
1505
+ "H",
1506
+ "hB",
1507
+ "hb"
1508
+ ],
1509
+ PF: [
1510
+ "H",
1511
+ "h",
1512
+ "hB"
1513
+ ],
1514
+ PG: [
1515
+ "h",
1516
+ "H"
1517
+ ],
1518
+ PH: [
1519
+ "h",
1520
+ "hB",
1521
+ "hb",
1522
+ "H"
1523
+ ],
1524
+ PK: [
1525
+ "h",
1526
+ "hB",
1527
+ "H"
1528
+ ],
1529
+ PL: [
1530
+ "H",
1531
+ "h"
1532
+ ],
1533
+ PM: [
1534
+ "H",
1535
+ "hB"
1536
+ ],
1537
+ PN: [
1538
+ "H",
1539
+ "h",
1540
+ "hb",
1541
+ "hB"
1542
+ ],
1543
+ PR: [
1544
+ "h",
1545
+ "H",
1546
+ "hB",
1547
+ "hb"
1548
+ ],
1549
+ PS: [
1550
+ "h",
1551
+ "hB",
1552
+ "hb",
1553
+ "H"
1554
+ ],
1555
+ PT: [
1556
+ "H",
1557
+ "hB"
1558
+ ],
1559
+ PW: [
1560
+ "h",
1561
+ "H"
1562
+ ],
1563
+ PY: [
1564
+ "h",
1565
+ "H",
1566
+ "hB",
1567
+ "hb"
1568
+ ],
1569
+ QA: [
1570
+ "h",
1571
+ "hB",
1572
+ "hb",
1573
+ "H"
1574
+ ],
1575
+ RE: [
1576
+ "H",
1577
+ "hB"
1578
+ ],
1579
+ RO: [
1580
+ "H",
1581
+ "hB"
1582
+ ],
1583
+ RS: [
1584
+ "H",
1585
+ "hB",
1586
+ "h"
1587
+ ],
1588
+ RU: [
1589
+ "H"
1590
+ ],
1591
+ RW: [
1592
+ "H",
1593
+ "h"
1594
+ ],
1595
+ SA: [
1596
+ "h",
1597
+ "hB",
1598
+ "hb",
1599
+ "H"
1600
+ ],
1601
+ SB: [
1602
+ "h",
1603
+ "hb",
1604
+ "H",
1605
+ "hB"
1606
+ ],
1607
+ SC: [
1608
+ "H",
1609
+ "h",
1610
+ "hB"
1611
+ ],
1612
+ SD: [
1613
+ "h",
1614
+ "hB",
1615
+ "hb",
1616
+ "H"
1617
+ ],
1618
+ SE: [
1619
+ "H"
1620
+ ],
1621
+ SG: [
1622
+ "h",
1623
+ "hb",
1624
+ "H",
1625
+ "hB"
1626
+ ],
1627
+ SH: [
1628
+ "H",
1629
+ "h",
1630
+ "hb",
1631
+ "hB"
1632
+ ],
1633
+ SI: [
1634
+ "H",
1635
+ "hB"
1636
+ ],
1637
+ SJ: [
1638
+ "H"
1639
+ ],
1640
+ SK: [
1641
+ "H"
1642
+ ],
1643
+ SL: [
1644
+ "h",
1645
+ "hb",
1646
+ "H",
1647
+ "hB"
1648
+ ],
1649
+ SM: [
1650
+ "H",
1651
+ "h",
1652
+ "hB"
1653
+ ],
1654
+ SN: [
1655
+ "H",
1656
+ "h",
1657
+ "hB"
1658
+ ],
1659
+ SO: [
1660
+ "h",
1661
+ "H"
1662
+ ],
1663
+ SR: [
1664
+ "H",
1665
+ "hB"
1666
+ ],
1667
+ SS: [
1668
+ "h",
1669
+ "hb",
1670
+ "H",
1671
+ "hB"
1672
+ ],
1673
+ ST: [
1674
+ "H",
1675
+ "hB"
1676
+ ],
1677
+ SV: [
1678
+ "h",
1679
+ "H",
1680
+ "hB",
1681
+ "hb"
1682
+ ],
1683
+ SX: [
1684
+ "H",
1685
+ "h",
1686
+ "hb",
1687
+ "hB"
1688
+ ],
1689
+ SY: [
1690
+ "h",
1691
+ "hB",
1692
+ "hb",
1693
+ "H"
1694
+ ],
1695
+ SZ: [
1696
+ "h",
1697
+ "hb",
1698
+ "H",
1699
+ "hB"
1700
+ ],
1701
+ TA: [
1702
+ "H",
1703
+ "h",
1704
+ "hb",
1705
+ "hB"
1706
+ ],
1707
+ TC: [
1708
+ "h",
1709
+ "hb",
1710
+ "H",
1711
+ "hB"
1712
+ ],
1713
+ TD: [
1714
+ "h",
1715
+ "H",
1716
+ "hB"
1717
+ ],
1718
+ TF: [
1719
+ "H",
1720
+ "h",
1721
+ "hB"
1722
+ ],
1723
+ TG: [
1724
+ "H",
1725
+ "hB"
1726
+ ],
1727
+ TH: [
1728
+ "H",
1729
+ "h"
1730
+ ],
1731
+ TJ: [
1732
+ "H",
1733
+ "h"
1734
+ ],
1735
+ TL: [
1736
+ "H",
1737
+ "hB",
1738
+ "hb",
1739
+ "h"
1740
+ ],
1741
+ TM: [
1742
+ "H",
1743
+ "h"
1744
+ ],
1745
+ TN: [
1746
+ "h",
1747
+ "hB",
1748
+ "hb",
1749
+ "H"
1750
+ ],
1751
+ TO: [
1752
+ "h",
1753
+ "H"
1754
+ ],
1755
+ TR: [
1756
+ "H",
1757
+ "hB"
1758
+ ],
1759
+ TT: [
1760
+ "h",
1761
+ "hb",
1762
+ "H",
1763
+ "hB"
1764
+ ],
1765
+ TW: [
1766
+ "hB",
1767
+ "hb",
1768
+ "h",
1769
+ "H"
1770
+ ],
1771
+ TZ: [
1772
+ "hB",
1773
+ "hb",
1774
+ "H",
1775
+ "h"
1776
+ ],
1777
+ UA: [
1778
+ "H",
1779
+ "hB",
1780
+ "h"
1781
+ ],
1782
+ UG: [
1783
+ "hB",
1784
+ "hb",
1785
+ "H",
1786
+ "h"
1787
+ ],
1788
+ UM: [
1789
+ "h",
1790
+ "hb",
1791
+ "H",
1792
+ "hB"
1793
+ ],
1794
+ US: [
1795
+ "h",
1796
+ "hb",
1797
+ "H",
1798
+ "hB"
1799
+ ],
1800
+ UY: [
1801
+ "h",
1802
+ "H",
1803
+ "hB",
1804
+ "hb"
1805
+ ],
1806
+ UZ: [
1807
+ "H",
1808
+ "hB",
1809
+ "h"
1810
+ ],
1811
+ VA: [
1812
+ "H",
1813
+ "h",
1814
+ "hB"
1815
+ ],
1816
+ VC: [
1817
+ "h",
1818
+ "hb",
1819
+ "H",
1820
+ "hB"
1821
+ ],
1822
+ VE: [
1823
+ "h",
1824
+ "H",
1825
+ "hB",
1826
+ "hb"
1827
+ ],
1828
+ VG: [
1829
+ "h",
1830
+ "hb",
1831
+ "H",
1832
+ "hB"
1833
+ ],
1834
+ VI: [
1835
+ "h",
1836
+ "hb",
1837
+ "H",
1838
+ "hB"
1839
+ ],
1840
+ VN: [
1841
+ "H",
1842
+ "h"
1843
+ ],
1844
+ VU: [
1845
+ "h",
1846
+ "H"
1847
+ ],
1848
+ WF: [
1849
+ "H",
1850
+ "hB"
1851
+ ],
1852
+ WS: [
1853
+ "h",
1854
+ "H"
1855
+ ],
1856
+ XK: [
1857
+ "H",
1858
+ "hB",
1859
+ "h"
1860
+ ],
1861
+ YE: [
1862
+ "h",
1863
+ "hB",
1864
+ "hb",
1865
+ "H"
1866
+ ],
1867
+ YT: [
1868
+ "H",
1869
+ "hB"
1870
+ ],
1871
+ ZA: [
1872
+ "H",
1873
+ "h",
1874
+ "hb",
1875
+ "hB"
1876
+ ],
1877
+ ZM: [
1878
+ "h",
1879
+ "hb",
1880
+ "H",
1881
+ "hB"
1882
+ ],
1883
+ ZW: [
1884
+ "H",
1885
+ "h"
1886
+ ],
1887
+ "af-ZA": [
1888
+ "H",
1889
+ "h",
1890
+ "hB",
1891
+ "hb"
1892
+ ],
1893
+ "ar-001": [
1894
+ "h",
1895
+ "hB",
1896
+ "hb",
1897
+ "H"
1898
+ ],
1899
+ "ca-ES": [
1900
+ "H",
1901
+ "h",
1902
+ "hB"
1903
+ ],
1904
+ "en-001": [
1905
+ "h",
1906
+ "hb",
1907
+ "H",
1908
+ "hB"
1909
+ ],
1910
+ "en-HK": [
1911
+ "h",
1912
+ "hb",
1913
+ "H",
1914
+ "hB"
1915
+ ],
1916
+ "en-IL": [
1917
+ "H",
1918
+ "h",
1919
+ "hb",
1920
+ "hB"
1921
+ ],
1922
+ "en-MY": [
1923
+ "h",
1924
+ "hb",
1925
+ "H",
1926
+ "hB"
1927
+ ],
1928
+ "es-BR": [
1929
+ "H",
1930
+ "h",
1931
+ "hB",
1932
+ "hb"
1933
+ ],
1934
+ "es-ES": [
1935
+ "H",
1936
+ "h",
1937
+ "hB",
1938
+ "hb"
1939
+ ],
1940
+ "es-GQ": [
1941
+ "H",
1942
+ "h",
1943
+ "hB",
1944
+ "hb"
1945
+ ],
1946
+ "fr-CA": [
1947
+ "H",
1948
+ "h",
1949
+ "hB"
1950
+ ],
1951
+ "gl-ES": [
1952
+ "H",
1953
+ "h",
1954
+ "hB"
1955
+ ],
1956
+ "gu-IN": [
1957
+ "hB",
1958
+ "hb",
1959
+ "h",
1960
+ "H"
1961
+ ],
1962
+ "hi-IN": [
1963
+ "hB",
1964
+ "h",
1965
+ "H"
1966
+ ],
1967
+ "it-CH": [
1968
+ "H",
1969
+ "h",
1970
+ "hB"
1971
+ ],
1972
+ "it-IT": [
1973
+ "H",
1974
+ "h",
1975
+ "hB"
1976
+ ],
1977
+ "kn-IN": [
1978
+ "hB",
1979
+ "h",
1980
+ "H"
1981
+ ],
1982
+ "ml-IN": [
1983
+ "hB",
1984
+ "h",
1985
+ "H"
1986
+ ],
1987
+ "mr-IN": [
1988
+ "hB",
1989
+ "hb",
1990
+ "h",
1991
+ "H"
1992
+ ],
1993
+ "pa-IN": [
1994
+ "hB",
1995
+ "hb",
1996
+ "h",
1997
+ "H"
1998
+ ],
1999
+ "ta-IN": [
2000
+ "hB",
2001
+ "h",
2002
+ "hb",
2003
+ "H"
2004
+ ],
2005
+ "te-IN": [
2006
+ "hB",
2007
+ "h",
2008
+ "H"
2009
+ ],
2010
+ "zu-ZA": [
2011
+ "H",
2012
+ "hB",
2013
+ "hb",
2014
+ "h"
2015
+ ]
2016
+ };
2017
+ function hn(e, t) {
2018
+ for (var r = "", n = 0; n < e.length; n++) {
2019
+ var s = e.charAt(n);
2020
+ if (s === "j") {
2021
+ for (var i = 0; n + 1 < e.length && e.charAt(n + 1) === s; )
2022
+ i++, n++;
2023
+ var o = 1 + (i & 1), a = i < 2 ? 1 : 3 + (i >> 1), l = "a", h = cn(t);
2024
+ for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
2025
+ r += l;
2026
+ for (; o-- > 0; )
2027
+ r = h + r;
2028
+ } else s === "J" ? r += "H" : r += s;
2029
+ }
2030
+ return r;
2031
+ }
2032
+ function cn(e) {
2033
+ var t = e.hourCycle;
2034
+ if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2035
+ e.hourCycles && // @ts-ignore
2036
+ e.hourCycles.length && (t = e.hourCycles[0]), t)
2037
+ switch (t) {
2038
+ case "h24":
2039
+ return "k";
2040
+ case "h23":
2041
+ return "H";
2042
+ case "h12":
2043
+ return "h";
2044
+ case "h11":
2045
+ return "K";
2046
+ default:
2047
+ throw new Error("Invalid hourCycle");
2048
+ }
2049
+ var r = e.language, n;
2050
+ r !== "root" && (n = e.maximize().region);
2051
+ var s = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
2052
+ return s[0];
2053
+ }
2054
+ var Ie, fn = new RegExp("^".concat(Ft.source, "*")), dn = new RegExp("".concat(Ft.source, "*$"));
2055
+ function v(e, t) {
2056
+ return { start: e, end: t };
2057
+ }
2058
+ var mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), pn = !!String.fromCodePoint, gn = !!Object.fromEntries, vn = !!String.prototype.codePointAt, bn = !!String.prototype.trimStart, En = !!String.prototype.trimEnd, yn = !!Number.isSafeInteger, xn = yn ? Number.isSafeInteger : function(e) {
2059
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2060
+ }, Me = !0;
2061
+ try {
2062
+ var _n = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2063
+ Me = ((Ie = _n.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
2064
+ } catch (e) {
2065
+ Me = !1;
2066
+ }
2067
+ var ht = mn ? (
2068
+ // Native
2069
+ function(t, r, n) {
2070
+ return t.startsWith(r, n);
2071
+ }
2072
+ ) : (
2073
+ // For IE11
2074
+ function(t, r, n) {
2075
+ return t.slice(n, n + r.length) === r;
2076
+ }
2077
+ ), ke = pn ? String.fromCodePoint : (
2078
+ // IE11
2079
+ function() {
2080
+ for (var t = [], r = 0; r < arguments.length; r++)
2081
+ t[r] = arguments[r];
2082
+ for (var n = "", s = t.length, i = 0, o; s > i; ) {
2083
+ if (o = t[i++], o > 1114111)
2084
+ throw RangeError(o + " is not a valid code point");
2085
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2086
+ }
2087
+ return n;
2088
+ }
2089
+ ), ct = (
2090
+ // native
2091
+ gn ? Object.fromEntries : (
2092
+ // Ponyfill
2093
+ function(t) {
2094
+ for (var r = {}, n = 0, s = t; n < s.length; n++) {
2095
+ var i = s[n], o = i[0], a = i[1];
2096
+ r[o] = a;
2097
+ }
2098
+ return r;
2099
+ }
2100
+ )
2101
+ ), Wt = vn ? (
2102
+ // Native
2103
+ function(t, r) {
2104
+ return t.codePointAt(r);
2105
+ }
2106
+ ) : (
2107
+ // IE 11
2108
+ function(t, r) {
2109
+ var n = t.length;
2110
+ if (!(r < 0 || r >= n)) {
2111
+ var s = t.charCodeAt(r), i;
2112
+ return s < 55296 || s > 56319 || r + 1 === n || (i = t.charCodeAt(r + 1)) < 56320 || i > 57343 ? s : (s - 55296 << 10) + (i - 56320) + 65536;
2113
+ }
2114
+ }
2115
+ ), Cn = bn ? (
2116
+ // Native
2117
+ function(t) {
2118
+ return t.trimStart();
2119
+ }
2120
+ ) : (
2121
+ // Ponyfill
2122
+ function(t) {
2123
+ return t.replace(fn, "");
2124
+ }
2125
+ ), Tn = En ? (
2126
+ // Native
2127
+ function(t) {
2128
+ return t.trimEnd();
2129
+ }
2130
+ ) : (
2131
+ // Ponyfill
2132
+ function(t) {
2133
+ return t.replace(dn, "");
2134
+ }
2135
+ );
2136
+ function qt(e, t) {
2137
+ return new RegExp(e, t);
2138
+ }
2139
+ var De;
2140
+ if (Me) {
2141
+ var ft = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2142
+ De = function(t, r) {
2143
+ var n;
2144
+ ft.lastIndex = r;
2145
+ var s = ft.exec(t);
2146
+ return (n = s[1]) !== null && n !== void 0 ? n : "";
2147
+ };
2148
+ } else
2149
+ De = function(t, r) {
2150
+ for (var n = []; ; ) {
2151
+ var s = Wt(t, r);
2152
+ if (s === void 0 || Jt(s) || Nn(s))
2153
+ break;
2154
+ n.push(s), r += s >= 65536 ? 2 : 1;
2155
+ }
2156
+ return ke.apply(void 0, n);
2157
+ };
2158
+ var Hn = (
2159
+ /** @class */
2160
+ function() {
2161
+ function e(t, r) {
2162
+ r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
2163
+ }
2164
+ return e.prototype.parse = function() {
2165
+ if (this.offset() !== 0)
2166
+ throw Error("parser can only be used once");
2167
+ return this.parseMessage(0, "", !1);
2168
+ }, e.prototype.parseMessage = function(t, r, n) {
2169
+ for (var s = []; !this.isEOF(); ) {
2170
+ var i = this.char();
2171
+ if (i === 123) {
2172
+ var o = this.parseArgument(t, n);
2173
+ if (o.err)
2174
+ return o;
2175
+ s.push(o.val);
2176
+ } else {
2177
+ if (i === 125 && t > 0)
2178
+ break;
2179
+ if (i === 35 && (r === "plural" || r === "selectordinal")) {
2180
+ var a = this.clonePosition();
2181
+ this.bump(), s.push({
2182
+ type: P.pound,
2183
+ location: v(a, this.clonePosition())
2184
+ });
2185
+ } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
2186
+ if (n)
2187
+ break;
2188
+ return this.error(g.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
2189
+ } else if (i === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
2190
+ var o = this.parseTag(t, r);
2191
+ if (o.err)
2192
+ return o;
2193
+ s.push(o.val);
2194
+ } else {
2195
+ var o = this.parseLiteral(t, r);
2196
+ if (o.err)
2197
+ return o;
2198
+ s.push(o.val);
2199
+ }
2200
+ }
2201
+ }
2202
+ return { val: s, err: null };
2203
+ }, e.prototype.parseTag = function(t, r) {
2204
+ var n = this.clonePosition();
2205
+ this.bump();
2206
+ var s = this.parseTagName();
2207
+ if (this.bumpSpace(), this.bumpIf("/>"))
2208
+ return {
2209
+ val: {
2210
+ type: P.literal,
2211
+ value: "<".concat(s, "/>"),
2212
+ location: v(n, this.clonePosition())
2213
+ },
2214
+ err: null
2215
+ };
2216
+ if (this.bumpIf(">")) {
2217
+ var i = this.parseMessage(t + 1, r, !0);
2218
+ if (i.err)
2219
+ return i;
2220
+ var o = i.val, a = this.clonePosition();
2221
+ if (this.bumpIf("</")) {
2222
+ if (this.isEOF() || !Ge(this.char()))
2223
+ return this.error(g.INVALID_TAG, v(a, this.clonePosition()));
2224
+ var l = this.clonePosition(), h = this.parseTagName();
2225
+ return s !== h ? this.error(g.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2226
+ val: {
2227
+ type: P.tag,
2228
+ value: s,
2229
+ children: o,
2230
+ location: v(n, this.clonePosition())
2231
+ },
2232
+ err: null
2233
+ } : this.error(g.INVALID_TAG, v(a, this.clonePosition())));
2234
+ } else
2235
+ return this.error(g.UNCLOSED_TAG, v(n, this.clonePosition()));
2236
+ } else
2237
+ return this.error(g.INVALID_TAG, v(n, this.clonePosition()));
2238
+ }, e.prototype.parseTagName = function() {
2239
+ var t = this.offset();
2240
+ for (this.bump(); !this.isEOF() && An(this.char()); )
2241
+ this.bump();
2242
+ return this.message.slice(t, this.offset());
2243
+ }, e.prototype.parseLiteral = function(t, r) {
2244
+ for (var n = this.clonePosition(), s = ""; ; ) {
2245
+ var i = this.tryParseQuote(r);
2246
+ if (i) {
2247
+ s += i;
2248
+ continue;
2249
+ }
2250
+ var o = this.tryParseUnquoted(t, r);
2251
+ if (o) {
2252
+ s += o;
2253
+ continue;
2254
+ }
2255
+ var a = this.tryParseLeftAngleBracket();
2256
+ if (a) {
2257
+ s += a;
2258
+ continue;
2259
+ }
2260
+ break;
2261
+ }
2262
+ var l = v(n, this.clonePosition());
2263
+ return {
2264
+ val: { type: P.literal, value: s, location: l },
2265
+ err: null
2266
+ };
2267
+ }, e.prototype.tryParseLeftAngleBracket = function() {
2268
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2269
+ !Sn(this.peek() || 0)) ? (this.bump(), "<") : null;
2270
+ }, e.prototype.tryParseQuote = function(t) {
2271
+ if (this.isEOF() || this.char() !== 39)
2272
+ return null;
2273
+ switch (this.peek()) {
2274
+ case 39:
2275
+ return this.bump(), this.bump(), "'";
2276
+ case 123:
2277
+ case 60:
2278
+ case 62:
2279
+ case 125:
2280
+ break;
2281
+ case 35:
2282
+ if (t === "plural" || t === "selectordinal")
2283
+ break;
2284
+ return null;
2285
+ default:
2286
+ return null;
2287
+ }
2288
+ this.bump();
2289
+ var r = [this.char()];
2290
+ for (this.bump(); !this.isEOF(); ) {
2291
+ var n = this.char();
2292
+ if (n === 39)
2293
+ if (this.peek() === 39)
2294
+ r.push(39), this.bump();
2295
+ else {
2296
+ this.bump();
2297
+ break;
2298
+ }
2299
+ else
2300
+ r.push(n);
2301
+ this.bump();
2302
+ }
2303
+ return ke.apply(void 0, r);
2304
+ }, e.prototype.tryParseUnquoted = function(t, r) {
2305
+ if (this.isEOF())
2306
+ return null;
2307
+ var n = this.char();
2308
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
2309
+ }, e.prototype.parseArgument = function(t, r) {
2310
+ var n = this.clonePosition();
2311
+ if (this.bump(), this.bumpSpace(), this.isEOF())
2312
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
2313
+ if (this.char() === 125)
2314
+ return this.bump(), this.error(g.EMPTY_ARGUMENT, v(n, this.clonePosition()));
2315
+ var s = this.parseIdentifierIfPossible().value;
2316
+ if (!s)
2317
+ return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
2318
+ if (this.bumpSpace(), this.isEOF())
2319
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
2320
+ switch (this.char()) {
2321
+ case 125:
2322
+ return this.bump(), {
2323
+ val: {
2324
+ type: P.argument,
2325
+ // value does not include the opening and closing braces.
2326
+ value: s,
2327
+ location: v(n, this.clonePosition())
2328
+ },
2329
+ err: null
2330
+ };
2331
+ case 44:
2332
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, s, n);
2333
+ default:
2334
+ return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
2335
+ }
2336
+ }, e.prototype.parseIdentifierIfPossible = function() {
2337
+ var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), s = r + n.length;
2338
+ this.bumpTo(s);
2339
+ var i = this.clonePosition(), o = v(t, i);
2340
+ return { value: n, location: o };
2341
+ }, e.prototype.parseArgumentOptions = function(t, r, n, s) {
2342
+ var i, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2343
+ switch (a) {
2344
+ case "":
2345
+ return this.error(g.EXPECT_ARGUMENT_TYPE, v(o, l));
2346
+ case "number":
2347
+ case "date":
2348
+ case "time": {
2349
+ this.bumpSpace();
2350
+ var h = null;
2351
+ if (this.bumpIf(",")) {
2352
+ this.bumpSpace();
2353
+ var u = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
2354
+ if (d.err)
2355
+ return d;
2356
+ var f = Tn(d.val);
2357
+ if (f.length === 0)
2358
+ return this.error(g.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2359
+ var p = v(u, this.clonePosition());
2360
+ h = { style: f, styleLocation: p };
2361
+ }
2362
+ var T = this.tryParseArgumentClose(s);
2363
+ if (T.err)
2364
+ return T;
2365
+ var B = v(s, this.clonePosition());
2366
+ if (h && ht(h == null ? void 0 : h.style, "::", 0)) {
2367
+ var C = Cn(h.style.slice(2));
2368
+ if (a === "number") {
2369
+ var d = this.parseNumberSkeletonFromString(C, h.styleLocation);
2370
+ return d.err ? d : {
2371
+ val: { type: P.number, value: n, location: B, style: d.val },
2372
+ err: null
2373
+ };
2374
+ } else {
2375
+ if (C.length === 0)
2376
+ return this.error(g.EXPECT_DATE_TIME_SKELETON, B);
2377
+ var x = C;
2378
+ this.locale && (x = hn(C, this.locale));
2379
+ var f = {
2380
+ type: te.dateTime,
2381
+ pattern: x,
2382
+ location: h.styleLocation,
2383
+ parsedOptions: this.shouldParseSkeletons ? rn(x) : {}
2384
+ }, L = a === "date" ? P.date : P.time;
2385
+ return {
2386
+ val: { type: L, value: n, location: B, style: f },
2387
+ err: null
2388
+ };
2389
+ }
2390
+ }
2391
+ return {
2392
+ val: {
2393
+ type: a === "number" ? P.number : a === "date" ? P.date : P.time,
2394
+ value: n,
2395
+ location: B,
2396
+ style: (i = h == null ? void 0 : h.style) !== null && i !== void 0 ? i : null
2397
+ },
2398
+ err: null
2399
+ };
2400
+ }
2401
+ case "plural":
2402
+ case "selectordinal":
2403
+ case "select": {
2404
+ var _ = this.clonePosition();
2405
+ if (this.bumpSpace(), !this.bumpIf(","))
2406
+ return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, v(_, E({}, _)));
2407
+ this.bumpSpace();
2408
+ var b = this.parseIdentifierIfPossible(), S = 0;
2409
+ if (a !== "select" && b.value === "offset") {
2410
+ if (!this.bumpIf(":"))
2411
+ return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
2412
+ this.bumpSpace();
2413
+ var d = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2414
+ if (d.err)
2415
+ return d;
2416
+ this.bumpSpace(), b = this.parseIdentifierIfPossible(), S = d.val;
2417
+ }
2418
+ var A = this.tryParsePluralOrSelectOptions(t, a, r, b);
2419
+ if (A.err)
2420
+ return A;
2421
+ var T = this.tryParseArgumentClose(s);
2422
+ if (T.err)
2423
+ return T;
2424
+ var z = v(s, this.clonePosition());
2425
+ return a === "select" ? {
2426
+ val: {
2427
+ type: P.select,
2428
+ value: n,
2429
+ options: ct(A.val),
2430
+ location: z
2431
+ },
2432
+ err: null
2433
+ } : {
2434
+ val: {
2435
+ type: P.plural,
2436
+ value: n,
2437
+ options: ct(A.val),
2438
+ offset: S,
2439
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2440
+ location: z
2441
+ },
2442
+ err: null
2443
+ };
2444
+ }
2445
+ default:
2446
+ return this.error(g.INVALID_ARGUMENT_TYPE, v(o, l));
2447
+ }
2448
+ }, e.prototype.tryParseArgumentClose = function(t) {
2449
+ return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2450
+ }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2451
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2452
+ var n = this.char();
2453
+ switch (n) {
2454
+ case 39: {
2455
+ this.bump();
2456
+ var s = this.clonePosition();
2457
+ if (!this.bumpUntil("'"))
2458
+ return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(s, this.clonePosition()));
2459
+ this.bump();
2460
+ break;
2461
+ }
2462
+ case 123: {
2463
+ t += 1, this.bump();
2464
+ break;
2465
+ }
2466
+ case 125: {
2467
+ if (t > 0)
2468
+ t -= 1;
2469
+ else
2470
+ return {
2471
+ val: this.message.slice(r.offset, this.offset()),
2472
+ err: null
2473
+ };
2474
+ break;
2475
+ }
2476
+ default:
2477
+ this.bump();
2478
+ break;
2479
+ }
2480
+ }
2481
+ return {
2482
+ val: this.message.slice(r.offset, this.offset()),
2483
+ err: null
2484
+ };
2485
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2486
+ var n = [];
2487
+ try {
2488
+ n = sn(t);
2489
+ } catch (s) {
2490
+ return this.error(g.INVALID_NUMBER_SKELETON, r);
2491
+ }
2492
+ return {
2493
+ val: {
2494
+ type: te.number,
2495
+ tokens: n,
2496
+ location: r,
2497
+ parsedOptions: this.shouldParseSkeletons ? un(n) : {}
2498
+ },
2499
+ err: null
2500
+ };
2501
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, s) {
2502
+ for (var i, o = !1, a = [], l = /* @__PURE__ */ new Set(), h = s.value, u = s.location; ; ) {
2503
+ if (h.length === 0) {
2504
+ var d = this.clonePosition();
2505
+ if (r !== "select" && this.bumpIf("=")) {
2506
+ var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
2507
+ if (f.err)
2508
+ return f;
2509
+ u = v(d, this.clonePosition()), h = this.message.slice(d.offset, this.offset());
2510
+ } else
2511
+ break;
2512
+ }
2513
+ if (l.has(h))
2514
+ return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2515
+ h === "other" && (o = !0), this.bumpSpace();
2516
+ var p = this.clonePosition();
2517
+ if (!this.bumpIf("{"))
2518
+ return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
2519
+ var T = this.parseMessage(t + 1, r, n);
2520
+ if (T.err)
2521
+ return T;
2522
+ var B = this.tryParseArgumentClose(p);
2523
+ if (B.err)
2524
+ return B;
2525
+ a.push([
2526
+ h,
2527
+ {
2528
+ value: T.val,
2529
+ location: v(p, this.clonePosition())
2530
+ }
2531
+ ]), l.add(h), this.bumpSpace(), i = this.parseIdentifierIfPossible(), h = i.value, u = i.location;
2532
+ }
2533
+ return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(g.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2534
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
2535
+ var n = 1, s = this.clonePosition();
2536
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2537
+ for (var i = !1, o = 0; !this.isEOF(); ) {
2538
+ var a = this.char();
2539
+ if (a >= 48 && a <= 57)
2540
+ i = !0, o = o * 10 + (a - 48), this.bump();
2541
+ else
2542
+ break;
2543
+ }
2544
+ var l = v(s, this.clonePosition());
2545
+ return i ? (o *= n, xn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
2546
+ }, e.prototype.offset = function() {
2547
+ return this.position.offset;
2548
+ }, e.prototype.isEOF = function() {
2549
+ return this.offset() === this.message.length;
2550
+ }, e.prototype.clonePosition = function() {
2551
+ return {
2552
+ offset: this.position.offset,
2553
+ line: this.position.line,
2554
+ column: this.position.column
2555
+ };
2556
+ }, e.prototype.char = function() {
2557
+ var t = this.position.offset;
2558
+ if (t >= this.message.length)
2559
+ throw Error("out of bound");
2560
+ var r = Wt(this.message, t);
2561
+ if (r === void 0)
2562
+ throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2563
+ return r;
2564
+ }, e.prototype.error = function(t, r) {
2565
+ return {
2566
+ val: null,
2567
+ err: {
2568
+ kind: t,
2569
+ message: this.message,
2570
+ location: r
2571
+ }
2572
+ };
2573
+ }, e.prototype.bump = function() {
2574
+ if (!this.isEOF()) {
2575
+ var t = this.char();
2576
+ 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);
2577
+ }
2578
+ }, e.prototype.bumpIf = function(t) {
2579
+ if (ht(this.message, t, this.offset())) {
2580
+ for (var r = 0; r < t.length; r++)
2581
+ this.bump();
2582
+ return !0;
2583
+ }
2584
+ return !1;
2585
+ }, e.prototype.bumpUntil = function(t) {
2586
+ var r = this.offset(), n = this.message.indexOf(t, r);
2587
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
2588
+ }, e.prototype.bumpTo = function(t) {
2589
+ if (this.offset() > t)
2590
+ throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
2591
+ for (t = Math.min(t, this.message.length); ; ) {
2592
+ var r = this.offset();
2593
+ if (r === t)
2594
+ break;
2595
+ if (r > t)
2596
+ throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2597
+ if (this.bump(), this.isEOF())
2598
+ break;
2599
+ }
2600
+ }, e.prototype.bumpSpace = function() {
2601
+ for (; !this.isEOF() && Jt(this.char()); )
2602
+ this.bump();
2603
+ }, e.prototype.peek = function() {
2604
+ if (this.isEOF())
2605
+ return null;
2606
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
2607
+ return n != null ? n : null;
2608
+ }, e;
2609
+ }()
2610
+ );
2611
+ function Ge(e) {
2612
+ return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2613
+ }
2614
+ function Sn(e) {
2615
+ return Ge(e) || e === 47;
2616
+ }
2617
+ function An(e) {
2618
+ 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;
2619
+ }
2620
+ function Jt(e) {
2621
+ return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
2622
+ }
2623
+ function Nn(e) {
2624
+ 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;
2625
+ }
2626
+ function je(e) {
2627
+ e.forEach(function(t) {
2628
+ if (delete t.location, Dt(t) || Gt(t))
2629
+ for (var r in t.options)
2630
+ delete t.options[r].location, je(t.options[r].value);
2631
+ else Ut(t) && zt(t.style) || (Mt(t) || kt(t)) && Ue(t.style) ? delete t.style.location : jt(t) && je(t.children);
2632
+ });
2633
+ }
2634
+ function wn(e, t) {
2635
+ t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2636
+ var r = new Hn(e, t).parse();
2637
+ if (r.err) {
2638
+ var n = SyntaxError(g[r.err.kind]);
2639
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
2640
+ }
2641
+ return t != null && t.captureLocation || je(r.val), r.val;
2642
+ }
2643
+ var re;
2644
+ (function(e) {
2645
+ e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
2646
+ })(re || (re = {}));
2647
+ var Se = (
2648
+ /** @class */
2649
+ function(e) {
2650
+ He(t, e);
2651
+ function t(r, n, s) {
2652
+ var i = e.call(this, r) || this;
2653
+ return i.code = n, i.originalMessage = s, i;
2654
+ }
2655
+ return t.prototype.toString = function() {
2656
+ return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
2657
+ }, t;
2658
+ }(Error)
2659
+ ), dt = (
2660
+ /** @class */
2661
+ function(e) {
2662
+ He(t, e);
2663
+ function t(r, n, s, i) {
2664
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(s).join('", "'), '"'), re.INVALID_VALUE, i) || this;
2665
+ }
2666
+ return t;
2667
+ }(Se)
2668
+ ), Bn = (
2669
+ /** @class */
2670
+ function(e) {
2671
+ He(t, e);
2672
+ function t(r, n, s) {
2673
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, s) || this;
2674
+ }
2675
+ return t;
2676
+ }(Se)
2677
+ ), Pn = (
2678
+ /** @class */
2679
+ function(e) {
2680
+ He(t, e);
2681
+ function t(r, n) {
2682
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
2683
+ }
2684
+ return t;
2685
+ }(Se)
2686
+ ), R;
2687
+ (function(e) {
2688
+ e[e.literal = 0] = "literal", e[e.object = 1] = "object";
2689
+ })(R || (R = {}));
2690
+ function In(e) {
2691
+ return e.length < 2 ? e : e.reduce(function(t, r) {
2692
+ var n = t[t.length - 1];
2693
+ return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
2694
+ }, []);
2695
+ }
2696
+ function Ln(e) {
2697
+ return typeof e == "function";
2698
+ }
2699
+ function be(e, t, r, n, s, i, o) {
2700
+ if (e.length === 1 && ot(e[0]))
2701
+ return [
2702
+ {
2703
+ type: R.literal,
2704
+ value: e[0].value
2705
+ }
2706
+ ];
2707
+ for (var a = [], l = 0, h = e; l < h.length; l++) {
2708
+ var u = h[l];
2709
+ if (ot(u)) {
2710
+ a.push({
2711
+ type: R.literal,
2712
+ value: u.value
2713
+ });
2714
+ continue;
2715
+ }
2716
+ if (en(u)) {
2717
+ typeof i == "number" && a.push({
2718
+ type: R.literal,
2719
+ value: r.getNumberFormat(t).format(i)
2720
+ });
2721
+ continue;
2722
+ }
2723
+ var d = u.value;
2724
+ if (!(s && d in s))
2725
+ throw new Pn(d, o);
2726
+ var f = s[d];
2727
+ if ($r(u)) {
2728
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
2729
+ type: typeof f == "string" ? R.literal : R.object,
2730
+ value: f
2731
+ });
2732
+ continue;
2733
+ }
2734
+ if (Mt(u)) {
2735
+ var p = typeof u.style == "string" ? n.date[u.style] : Ue(u.style) ? u.style.parsedOptions : void 0;
2736
+ a.push({
2737
+ type: R.literal,
2738
+ value: r.getDateTimeFormat(t, p).format(f)
2739
+ });
2740
+ continue;
2741
+ }
2742
+ if (kt(u)) {
2743
+ var p = typeof u.style == "string" ? n.time[u.style] : Ue(u.style) ? u.style.parsedOptions : n.time.medium;
2744
+ a.push({
2745
+ type: R.literal,
2746
+ value: r.getDateTimeFormat(t, p).format(f)
2747
+ });
2748
+ continue;
2749
+ }
2750
+ if (Ut(u)) {
2751
+ var p = typeof u.style == "string" ? n.number[u.style] : zt(u.style) ? u.style.parsedOptions : void 0;
2752
+ p && p.scale && (f = f * (p.scale || 1)), a.push({
2753
+ type: R.literal,
2754
+ value: r.getNumberFormat(t, p).format(f)
2755
+ });
2756
+ continue;
2757
+ }
2758
+ if (jt(u)) {
2759
+ var T = u.children, B = u.value, C = s[B];
2760
+ if (!Ln(C))
2761
+ throw new Bn(B, "function", o);
2762
+ var x = be(T, t, r, n, s, i), L = C(x.map(function(S) {
2763
+ return S.value;
2764
+ }));
2765
+ Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(S) {
2766
+ return {
2767
+ type: typeof S == "string" ? R.literal : R.object,
2768
+ value: S
2769
+ };
2770
+ }));
2771
+ }
2772
+ if (Dt(u)) {
2773
+ var _ = u.options[f] || u.options.other;
2774
+ if (!_)
2775
+ throw new dt(u.value, f, Object.keys(u.options), o);
2776
+ a.push.apply(a, be(_.value, t, r, n, s));
2777
+ continue;
2778
+ }
2779
+ if (Gt(u)) {
2780
+ var _ = u.options["=".concat(f)];
2781
+ if (!_) {
2782
+ if (!Intl.PluralRules)
2783
+ throw new Se(`Intl.PluralRules is not available in this environment.
2784
+ Try polyfilling it using "@formatjs/intl-pluralrules"
2785
+ `, re.MISSING_INTL_API, o);
2786
+ var b = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
2787
+ _ = u.options[b] || u.options.other;
2788
+ }
2789
+ if (!_)
2790
+ throw new dt(u.value, f, Object.keys(u.options), o);
2791
+ a.push.apply(a, be(_.value, t, r, n, s, f - (u.offset || 0)));
2792
+ continue;
2793
+ }
2794
+ }
2795
+ return In(a);
2796
+ }
2797
+ function On(e, t) {
2798
+ return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
2799
+ return r[n] = E(E({}, e[n]), t[n] || {}), r;
2800
+ }, {})) : e;
2801
+ }
2802
+ function Rn(e, t) {
2803
+ return t ? Object.keys(e).reduce(function(r, n) {
2804
+ return r[n] = On(e[n], t[n]), r;
2805
+ }, E({}, e)) : e;
2806
+ }
2807
+ function Le(e) {
2808
+ return {
2809
+ create: function() {
2810
+ return {
2811
+ get: function(t) {
2812
+ return e[t];
2813
+ },
2814
+ set: function(t, r) {
2815
+ e[t] = r;
2816
+ }
2817
+ };
2818
+ }
2819
+ };
2820
+ }
2821
+ function Un(e) {
2822
+ return e === void 0 && (e = {
2823
+ number: {},
2824
+ dateTime: {},
2825
+ pluralRules: {}
2826
+ }), {
2827
+ getNumberFormat: Be(function() {
2828
+ for (var t, r = [], n = 0; n < arguments.length; n++)
2829
+ r[n] = arguments[n];
2830
+ return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
2831
+ }, {
2832
+ cache: Le(e.number),
2833
+ strategy: Pe.variadic
2834
+ }),
2835
+ getDateTimeFormat: Be(function() {
2836
+ for (var t, r = [], n = 0; n < arguments.length; n++)
2837
+ r[n] = arguments[n];
2838
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
2839
+ }, {
2840
+ cache: Le(e.dateTime),
2841
+ strategy: Pe.variadic
2842
+ }),
2843
+ getPluralRules: Be(function() {
2844
+ for (var t, r = [], n = 0; n < arguments.length; n++)
2845
+ r[n] = arguments[n];
2846
+ return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
2847
+ }, {
2848
+ cache: Le(e.pluralRules),
2849
+ strategy: Pe.variadic
2850
+ })
2851
+ };
2852
+ }
2853
+ var Mn = (
2854
+ /** @class */
2855
+ function() {
2856
+ function e(t, r, n, s) {
2857
+ r === void 0 && (r = e.defaultLocale);
2858
+ var i = this;
2859
+ if (this.formatterCache = {
2860
+ number: {},
2861
+ dateTime: {},
2862
+ pluralRules: {}
2863
+ }, this.format = function(l) {
2864
+ var h = i.formatToParts(l);
2865
+ if (h.length === 1)
2866
+ return h[0].value;
2867
+ var u = h.reduce(function(d, f) {
2868
+ return !d.length || f.type !== R.literal || typeof d[d.length - 1] != "string" ? d.push(f.value) : d[d.length - 1] += f.value, d;
2869
+ }, []);
2870
+ return u.length <= 1 ? u[0] || "" : u;
2871
+ }, this.formatToParts = function(l) {
2872
+ return be(i.ast, i.locales, i.formatters, i.formats, l, void 0, i.message);
2873
+ }, this.resolvedOptions = function() {
2874
+ var l;
2875
+ return {
2876
+ locale: ((l = i.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(i.locales)[0]
2877
+ };
2878
+ }, this.getAst = function() {
2879
+ return i.ast;
2880
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
2881
+ if (this.message = t, !e.__parse)
2882
+ throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
2883
+ var o = s || {};
2884
+ o.formatters;
2885
+ var a = Zr(o, ["formatters"]);
2886
+ this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
2887
+ } else
2888
+ this.ast = t;
2889
+ if (!Array.isArray(this.ast))
2890
+ throw new TypeError("A message must be provided as a String or AST.");
2891
+ this.formats = Rn(e.formats, n), this.formatters = s && s.formatters || Un(this.formatterCache);
2892
+ }
2893
+ return Object.defineProperty(e, "defaultLocale", {
2894
+ get: function() {
2895
+ return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
2896
+ },
2897
+ enumerable: !1,
2898
+ configurable: !0
2899
+ }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
2900
+ if (typeof Intl.Locale != "undefined") {
2901
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
2902
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
2903
+ }
2904
+ }, e.__parse = wn, e.formats = {
2905
+ number: {
2906
+ integer: {
2907
+ maximumFractionDigits: 0
2908
+ },
2909
+ currency: {
2910
+ style: "currency"
2911
+ },
2912
+ percent: {
2913
+ style: "percent"
2914
+ }
2915
+ },
2916
+ date: {
2917
+ short: {
2918
+ month: "numeric",
2919
+ day: "numeric",
2920
+ year: "2-digit"
2921
+ },
2922
+ medium: {
2923
+ month: "short",
2924
+ day: "numeric",
2925
+ year: "numeric"
2926
+ },
2927
+ long: {
2928
+ month: "long",
2929
+ day: "numeric",
2930
+ year: "numeric"
2931
+ },
2932
+ full: {
2933
+ weekday: "long",
2934
+ month: "long",
2935
+ day: "numeric",
2936
+ year: "numeric"
2937
+ }
2938
+ },
2939
+ time: {
2940
+ short: {
2941
+ hour: "numeric",
2942
+ minute: "numeric"
2943
+ },
2944
+ medium: {
2945
+ hour: "numeric",
2946
+ minute: "numeric",
2947
+ second: "numeric"
2948
+ },
2949
+ long: {
2950
+ hour: "numeric",
2951
+ minute: "numeric",
2952
+ second: "numeric",
2953
+ timeZoneName: "short"
2954
+ },
2955
+ full: {
2956
+ hour: "numeric",
2957
+ minute: "numeric",
2958
+ second: "numeric",
2959
+ timeZoneName: "short"
2960
+ }
2961
+ }
2962
+ }, e;
2963
+ }()
2964
+ );
2965
+ function kn(e, t) {
2966
+ if (t == null)
2967
+ return;
2968
+ if (t in e)
2969
+ return e[t];
2970
+ const r = t.split(".");
2971
+ let n = e;
2972
+ for (let s = 0; s < r.length; s++)
2973
+ if (typeof n == "object") {
2974
+ if (s > 0) {
2975
+ const i = r.slice(s, r.length).join(".");
2976
+ if (i in n) {
2977
+ n = n[i];
2978
+ break;
2979
+ }
2980
+ }
2981
+ n = n[r[s]];
2982
+ } else
2983
+ n = void 0;
2984
+ return n;
2985
+ }
2986
+ const q = {}, Dn = (e, t, r) => r && (t in q || (q[t] = {}), e in q[t] || (q[t][e] = r), r), Qt = (e, t) => {
2987
+ if (t == null)
2988
+ return;
2989
+ if (t in q && e in q[t])
2990
+ return q[t][e];
2991
+ const r = Ae(t);
2992
+ for (let n = 0; n < r.length; n++) {
2993
+ const s = r[n], i = jn(s, e);
2994
+ if (i)
2995
+ return Dn(e, t, i);
2996
+ }
2997
+ };
2998
+ let qe;
2999
+ const de = Te({});
3000
+ function Gn(e) {
3001
+ return qe[e] || null;
3002
+ }
3003
+ function Yt(e) {
3004
+ return e in qe;
3005
+ }
3006
+ function jn(e, t) {
3007
+ if (!Yt(e))
3008
+ return null;
3009
+ const r = Gn(e);
3010
+ return kn(r, t);
3011
+ }
3012
+ function zn(e) {
3013
+ if (e == null)
3014
+ return;
3015
+ const t = Ae(e);
3016
+ for (let r = 0; r < t.length; r++) {
3017
+ const n = t[r];
3018
+ if (Yt(n))
3019
+ return n;
3020
+ }
3021
+ }
3022
+ function Kt(e, ...t) {
3023
+ delete q[e], de.update((r) => (r[e] = Xr.all([r[e] || {}, ...t]), r));
3024
+ }
3025
+ se(
3026
+ [de],
3027
+ ([e]) => Object.keys(e)
3028
+ );
3029
+ de.subscribe((e) => qe = e);
3030
+ const Ee = {};
3031
+ function Fn(e, t) {
3032
+ Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
3033
+ }
3034
+ function $t(e) {
3035
+ return Ee[e];
3036
+ }
3037
+ function Vn(e) {
3038
+ return Ae(e).map((t) => {
3039
+ const r = $t(t);
3040
+ return [t, r ? [...r] : []];
3041
+ }).filter(([, t]) => t.length > 0);
3042
+ }
3043
+ function ze(e) {
3044
+ return e == null ? !1 : Ae(e).some(
3045
+ (t) => {
3046
+ var r;
3047
+ return (r = $t(t)) == null ? void 0 : r.size;
3048
+ }
3049
+ );
3050
+ }
3051
+ function Xn(e, t) {
3052
+ return Promise.all(
3053
+ t.map((n) => (Fn(e, n), n().then((s) => s.default || s)))
3054
+ ).then((n) => Kt(e, ...n));
3055
+ }
3056
+ const ue = {};
3057
+ function er(e) {
3058
+ if (!ze(e))
3059
+ return e in ue ? ue[e] : Promise.resolve();
3060
+ const t = Vn(e);
3061
+ return ue[e] = Promise.all(
3062
+ t.map(
3063
+ ([r, n]) => Xn(r, n)
3064
+ )
3065
+ ).then(() => {
3066
+ if (ze(e))
3067
+ return er(e);
3068
+ delete ue[e];
3069
+ }), ue[e];
3070
+ }
3071
+ const Zn = {
3072
+ number: {
3073
+ scientific: { notation: "scientific" },
3074
+ engineering: { notation: "engineering" },
3075
+ compactLong: { notation: "compact", compactDisplay: "long" },
3076
+ compactShort: { notation: "compact", compactDisplay: "short" }
3077
+ },
3078
+ date: {
3079
+ short: { month: "numeric", day: "numeric", year: "2-digit" },
3080
+ medium: { month: "short", day: "numeric", year: "numeric" },
3081
+ long: { month: "long", day: "numeric", year: "numeric" },
3082
+ full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
3083
+ },
3084
+ time: {
3085
+ short: { hour: "numeric", minute: "numeric" },
3086
+ medium: { hour: "numeric", minute: "numeric", second: "numeric" },
3087
+ long: {
3088
+ hour: "numeric",
3089
+ minute: "numeric",
3090
+ second: "numeric",
3091
+ timeZoneName: "short"
3092
+ },
3093
+ full: {
3094
+ hour: "numeric",
3095
+ minute: "numeric",
3096
+ second: "numeric",
3097
+ timeZoneName: "short"
3098
+ }
3099
+ }
3100
+ }, Wn = {
3101
+ fallbackLocale: null,
3102
+ loadingDelay: 200,
3103
+ formats: Zn,
3104
+ warnOnMissingMessages: !0,
3105
+ handleMissingMessage: void 0,
3106
+ ignoreTag: !0
3107
+ }, qn = Wn;
3108
+ function ne() {
3109
+ return qn;
3110
+ }
3111
+ const Oe = Te(!1);
3112
+ var Jn = Object.defineProperty, Qn = Object.defineProperties, Yn = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? Jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, es = (e, t) => {
3113
+ for (var r in t || (t = {}))
3114
+ Kn.call(t, r) && pt(e, r, t[r]);
3115
+ if (mt)
3116
+ for (var r of mt(t))
3117
+ $n.call(t, r) && pt(e, r, t[r]);
3118
+ return e;
3119
+ }, ts = (e, t) => Qn(e, Yn(t));
3120
+ let Fe;
3121
+ const _e = Te(null);
3122
+ function gt(e) {
3123
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3124
+ }
3125
+ function Ae(e, t = ne().fallbackLocale) {
3126
+ const r = gt(e);
3127
+ return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
3128
+ }
3129
+ function K() {
3130
+ return Fe != null ? Fe : void 0;
3131
+ }
3132
+ _e.subscribe((e) => {
3133
+ Fe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3134
+ });
3135
+ const rs = (e) => {
3136
+ if (e && zn(e) && ze(e)) {
3137
+ const { loadingDelay: t } = ne();
3138
+ let r;
3139
+ return typeof window != "undefined" && K() != null && t ? r = window.setTimeout(
3140
+ () => Oe.set(!0),
3141
+ t
3142
+ ) : Oe.set(!0), er(e).then(() => {
3143
+ _e.set(e);
3144
+ }).finally(() => {
3145
+ clearTimeout(r), Oe.set(!1);
3146
+ });
3147
+ }
3148
+ return _e.set(e);
3149
+ }, ie = ts(es({}, _e), {
3150
+ set: rs
3151
+ }), Ne = (e) => {
3152
+ const t = /* @__PURE__ */ Object.create(null);
3153
+ return (n) => {
3154
+ const s = JSON.stringify(n);
3155
+ return s in t ? t[s] : t[s] = e(n);
3156
+ };
3157
+ };
3158
+ var ns = Object.defineProperty, Ce = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? ns(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
3159
+ for (var r in t || (t = {}))
3160
+ tr.call(t, r) && vt(e, r, t[r]);
3161
+ if (Ce)
3162
+ for (var r of Ce(t))
3163
+ rr.call(t, r) && vt(e, r, t[r]);
3164
+ return e;
3165
+ }, oe = (e, t) => {
3166
+ var r = {};
3167
+ for (var n in e)
3168
+ tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3169
+ if (e != null && Ce)
3170
+ for (var n of Ce(e))
3171
+ t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
3172
+ return r;
3173
+ };
3174
+ const fe = (e, t) => {
3175
+ const { formats: r } = ne();
3176
+ if (e in r && t in r[e])
3177
+ return r[e][t];
3178
+ throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3179
+ }, ss = Ne(
3180
+ (e) => {
3181
+ var t = e, { locale: r, format: n } = t, s = oe(t, ["locale", "format"]);
3182
+ if (r == null)
3183
+ throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3184
+ return n && (s = fe("number", n)), new Intl.NumberFormat(r, s);
3185
+ }
3186
+ ), is = Ne(
3187
+ (e) => {
3188
+ var t = e, { locale: r, format: n } = t, s = oe(t, ["locale", "format"]);
3189
+ if (r == null)
3190
+ throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3191
+ return n ? s = fe("date", n) : Object.keys(s).length === 0 && (s = fe("date", "short")), new Intl.DateTimeFormat(r, s);
3192
+ }
3193
+ ), os = Ne(
3194
+ (e) => {
3195
+ var t = e, { locale: r, format: n } = t, s = oe(t, ["locale", "format"]);
3196
+ if (r == null)
3197
+ throw new Error(
3198
+ '[svelte-i18n] A "locale" must be set to format time values'
3199
+ );
3200
+ return n ? s = fe("time", n) : Object.keys(s).length === 0 && (s = fe("time", "short")), new Intl.DateTimeFormat(r, s);
3201
+ }
3202
+ ), as = (e = {}) => {
3203
+ var t = e, {
3204
+ locale: r = K()
3205
+ } = t, n = oe(t, [
3206
+ "locale"
3207
+ ]);
3208
+ return ss(Je({ locale: r }, n));
3209
+ }, ls = (e = {}) => {
3210
+ var t = e, {
3211
+ locale: r = K()
3212
+ } = t, n = oe(t, [
3213
+ "locale"
3214
+ ]);
3215
+ return is(Je({ locale: r }, n));
3216
+ }, us = (e = {}) => {
3217
+ var t = e, {
3218
+ locale: r = K()
3219
+ } = t, n = oe(t, [
3220
+ "locale"
3221
+ ]);
3222
+ return os(Je({ locale: r }, n));
3223
+ }, hs = Ne(
3224
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3225
+ (e, t = K()) => new Mn(e, t, ne().formats, {
3226
+ ignoreTag: ne().ignoreTag
3227
+ })
3228
+ ), cs = (e, t = {}) => {
3229
+ var r, n, s, i;
3230
+ let o = t;
3231
+ typeof e == "object" && (o = e, e = o.id);
3232
+ const {
3233
+ values: a,
3234
+ locale: l = K(),
3235
+ default: h
3236
+ } = o;
3237
+ if (l == null)
3238
+ throw new Error(
3239
+ "[svelte-i18n] Cannot format a message without first setting the initial locale."
3240
+ );
3241
+ let u = Qt(e, l);
3242
+ if (!u)
3243
+ u = (i = (s = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: h })) != null ? s : h) != null ? i : e;
3244
+ else if (typeof u != "string")
3245
+ return console.warn(
3246
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3247
+ ), u;
3248
+ if (!a)
3249
+ return u;
3250
+ let d = u;
3251
+ try {
3252
+ d = hs(u, l).format(a);
3253
+ } catch (f) {
3254
+ f instanceof Error && console.warn(
3255
+ `[svelte-i18n] Message "${e}" has syntax error:`,
3256
+ f.message
3257
+ );
3258
+ }
3259
+ return d;
3260
+ }, fs = (e, t) => us(t).format(e), ds = (e, t) => ls(t).format(e), ms = (e, t) => as(t).format(e), ps = (e, t = K()) => Qt(e, t), gs = se([ie, de], () => cs);
3261
+ se([ie], () => fs);
3262
+ se([ie], () => ds);
3263
+ se([ie], () => ms);
3264
+ se([ie, de], () => ps);
3265
+ function bt(e, t) {
3266
+ Kt(e, t);
3267
+ }
3268
+ function vs(e) {
3269
+ ie.set(e);
3270
+ }
3271
+ const k = {
3272
+ en: {
3273
+ invalidUrl: "Failed to construct 'URL': Invalid URL",
3274
+ fetchConsentsError: "Error: Could not fetch consents.",
3275
+ fetchPlayerConsentsError: "Error: Could not fetch player consents.",
3276
+ fetchConsentsCategoriesError: "Error: Could not fetch consents categories",
3277
+ updateConsentsError: "Error: Could not update consents.",
3278
+ saveChangesError: "Error: Could not save changes.",
3279
+ mustAcceptError: "Mandatory consents must be accepted.",
3280
+ title: "Consents",
3281
+ description: "Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience."
3282
+ },
3283
+ "zh-hk": {
3284
+ invalidUrl: "構建URL失敗:無效的URL",
3285
+ fetchConsentsError: "錯誤:無法獲取同意。",
3286
+ fetchPlayerConsentsError: "錯誤:無法獲取玩家同意。",
3287
+ fetchConsentsCategoriesError: "錯誤:無法獲取同意類別",
3288
+ updateConsentsError: "錯誤:無法更新同意。",
3289
+ saveChangesError: "錯誤:無法保存更改。",
3290
+ mustAcceptError: "必須接受強制同意。",
3291
+ title: "同意",
3292
+ description: "在這裡,您可以探索和管理有關我們如何收集和利用您的數據的偏好。您的隱私對我們很重要,這個工具使您能夠就您的在線體驗做出知情選擇。"
3293
+ },
3294
+ de: {
3295
+ invalidUrl: "Fehler beim Erstellen der URL: Ungültige URL",
3296
+ fetchConsentsError: "Fehler: Konnte Zustimmungen nicht abrufen.",
3297
+ fetchPlayerConsentsError: "Fehler: Spielerzustimmungen konnten nicht abgerufen werden.",
3298
+ fetchConsentsCategoriesError: "Fehler: Zustimmungskategorien konnten nicht abgerufen werden",
3299
+ updateConsentsError: "Fehler: Zustimmungen konnten nicht aktualisiert werden.",
3300
+ saveChangesError: "Fehler: Änderungen konnten nicht gespeichert werden.",
3301
+ mustAcceptError: "Obligatorische Zustimmungen müssen akzeptiert werden.",
3302
+ title: "Zustimmungen",
3303
+ description: "Hier können Sie Ihre Präferenzen erkunden und verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen."
3304
+ },
3305
+ it: {
3306
+ invalidUrl: "Impossibile costruire l'URL: URL non valido",
3307
+ fetchConsentsError: "Errore: Impossibile recuperare i consensi.",
3308
+ fetchPlayerConsentsError: "Errore: Impossibile recuperare i consensi del giocatore.",
3309
+ fetchConsentsCategoriesError: "Errore: Impossibile recuperare le categorie di consenso",
3310
+ updateConsentsError: "Errore: Impossibile aggiornare i consensi.",
3311
+ saveChangesError: "Errore: Impossibile salvare le modifiche.",
3312
+ mustAcceptError: "I consensi obbligatori devono essere accettati.",
3313
+ title: "Consenso",
3314
+ description: "Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti permette di fare scelte informate sul tuo esperienza online."
3315
+ },
3316
+ fr: {
3317
+ invalidUrl: "Impossible de construire l'URL : URL non valide",
3318
+ fetchConsentsError: "Erreur : Impossible de récupérer les consentements.",
3319
+ fetchPlayerConsentsError: "Erreur : Impossible de récupérer les consentements du joueur.",
3320
+ fetchConsentsCategoriesError: "Erreur : Impossible de récupérer les catégories de consentement",
3321
+ updateConsentsError: "Erreur : Impossible de mettre à jour les consentements.",
3322
+ saveChangesError: "Erreur : Impossible d'enregistrer les modifications.",
3323
+ mustAcceptError: "Les consentements obligatoires doivent être acceptés.",
3324
+ title: "Consentements",
3325
+ description: "Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée nous tient à cœur, et cet outil vous permet de prendre des décisions éclairées sur votre expérience en ligne."
3326
+ },
3327
+ es: {
3328
+ invalidUrl: "Error al construir la URL: URL no válida",
3329
+ fetchConsentsError: "Error: No se pudieron obtener los consentimientos.",
3330
+ fetchPlayerConsentsError: "Error: No se pudieron obtener los consentimientos del jugador.",
3331
+ fetchConsentsCategoriesError: "Error: No se pudieron obtener las categorías de consentimiento",
3332
+ updateConsentsError: "Error: No se pudieron actualizar los consentimientos.",
3333
+ saveChangesError: "Error: No se pudieron guardar los cambios.",
3334
+ mustAcceptError: "Se deben aceptar los consentimientos obligatorios.",
3335
+ title: "Consentimientos",
3336
+ description: "Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea."
3337
+ },
3338
+ el: {
3339
+ invalidUrl: "Αποτυχία κατασκευής URL: Μη έγκυρο URL",
3340
+ fetchConsentsError: "Σφάλμα: Αδυναμία ανάκτησης συναινέσεων.",
3341
+ fetchPlayerConsentsError: "Σφάλμα: Αδυναμία ανάκτησης συναινέσεων παίκτη.",
3342
+ fetchConsentsCategoriesError: "Σφάλμα: Αδυναμία ανάκτησης κατηγοριών συναίνεσης",
3343
+ updateConsentsError: "Σφάλμα: Αδυναμία ενημέρωσης συναινέσεων.",
3344
+ saveChangesError: "Σφάλμα: Αδυναμία αποθήκευσης αλλαγών.",
3345
+ mustAcceptError: "Οι υποχρεωτικές συναινέσεις πρέπει να γίνουν αποδεκτές.",
3346
+ title: "Συναινέσεις",
3347
+ description: "Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με τον τρόπο με τον οποίο συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας είναι σημαντική για εμάς, και αυτό το εργαλείο σας επιτρέπει να λαμβάνετε ενημερωμένες αποφάσεις σχετικά με την online εμπειρία σας."
3348
+ },
3349
+ tr: {
3350
+ invalidUrl: "URL oluşturulamadı: Geçersiz URL",
3351
+ fetchConsentsError: "Hata: Onaylar alınamadı.",
3352
+ fetchPlayerConsentsError: "Hata: Oyuncu onayları alınamadı.",
3353
+ fetchConsentsCategoriesError: "Hata: Onay kategorileri alınamadı",
3354
+ updateConsentsError: "Hata: Onaylar güncellenemedi.",
3355
+ saveChangesError: "Hata: Değişiklikler kaydedilemedi.",
3356
+ mustAcceptError: "Zorunlu onaylar kabul edilmelidir.",
3357
+ title: "Onaylar",
3358
+ description: "Burada, verilerinizi nasıl topladığımız ve kullandığımız konusundaki tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemli ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli kararlar almanıza olanak tanır."
3359
+ },
3360
+ ru: {
3361
+ invalidUrl: "Не удалось построить URL: Неверный URL",
3362
+ fetchConsentsError: "Ошибка: Не удалось получить согласия.",
3363
+ fetchPlayerConsentsError: "Ошибка: Не удалось получить согласия игрока.",
3364
+ fetchConsentsCategoriesError: "Ошибка: Не удалось получить категории согласий",
3365
+ updateConsentsError: "Ошибка: Не удалось обновить согласия.",
3366
+ saveChangesError: "Ошибка: Не удалось сохранить изменения.",
3367
+ mustAcceptError: "Необходимо принять обязательные согласия.",
3368
+ title: "Согласия",
3369
+ description: "Здесь вы можете исследовать и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность имеет для нас значение, и этот инструмент позволяет вам принимать обоснованные решения о вашем онлайн-опыте."
3370
+ },
3371
+ ro: {
3372
+ invalidUrl: "Nu s-a putut construi URL-ul: URL invalid",
3373
+ fetchConsentsError: "Eroare: Nu s-au putut obține consimțăminte.",
3374
+ fetchPlayerConsentsError: "Eroare: Nu s-au putut obține consimțăminte ale jucătorului.",
3375
+ fetchConsentsCategoriesError: "Eroare: Nu s-au putut obține categoriile de consimțământ",
3376
+ updateConsentsError: "Eroare: Nu s-au putut actualiza consimțăminte.",
3377
+ saveChangesError: "Eroare: Nu s-au putut salva modificările.",
3378
+ mustAcceptError: "Consimțământele obligatorii trebuie acceptate.",
3379
+ title: "Consimțăminte",
3380
+ description: "Aici puteți explora și gestiona preferințele dvs. referitoare la modul în care colectăm și utilizăm datele dvs. Confidențialitatea dvs. este importantă pentru noi, iar acest instrument vă permite să luați decizii informate despre experiența dvs. online."
3381
+ },
3382
+ hr: {
3383
+ invalidUrl: "Neuspjelo sastavljanje URL-a: Nevaljani URL",
3384
+ fetchConsentsError: "Greška: Nije moguće dohvatiti suglasnosti.",
3385
+ fetchPlayerConsentsError: "Greška: Nije moguće dohvatiti suglasnosti igrača.",
3386
+ fetchConsentsCategoriesError: "Greška: Nije moguće dohvatiti kategorije suglasnosti",
3387
+ updateConsentsError: "Greška: Nije moguće ažurirati suglasnosti.",
3388
+ saveChangesError: "Greška: Nije moguće spremiti promjene.",
3389
+ mustAcceptError: "Obavezna suglasnost mora biti prihvaćena.",
3390
+ title: "Suglasnosti",
3391
+ description: "Ovdje možete istražiti i upravljati svojim preferencijama u vezi s načinom na koji prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat omogućuje vam donošenje informiranih odluka o vašem online iskustvu."
3392
+ },
3393
+ hu: {
3394
+ invalidUrl: "Nem sikerült URL-t létrehozni: Érvénytelen URL",
3395
+ fetchConsentsError: "Hiba: Nem sikerült lekérni a hozzájárulásokat.",
3396
+ fetchPlayerConsentsError: "Hiba: Nem sikerült lekérni a játékos hozzájárulásait.",
3397
+ fetchConsentsCategoriesError: "Hiba: Nem sikerült lekérni a hozzájárulás kategóriákat",
3398
+ updateConsentsError: "Hiba: Nem sikerült frissíteni a hozzájárulásokat.",
3399
+ saveChangesError: "Hiba: Nem sikerült menteni a változásokat.",
3400
+ mustAcceptError: "Kötelező hozzájárulásokat el kell fogadni.",
3401
+ title: "Hozzájárulások",
3402
+ description: "Itt felfedezheti és kezelheti az adatainak gyűjtésére és felhasználására vonatkozó preferenciáit. Fontos számunkra a magánélete, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élménye kapcsán."
3403
+ },
3404
+ pl: {
3405
+ invalidUrl: "Nie udało się skonstruować URL: Nieprawidłowy URL",
3406
+ fetchConsentsError: "Błąd: Nie można pobrać zgód.",
3407
+ fetchPlayerConsentsError: "Błąd: Nie można pobrać zgód gracza.",
3408
+ fetchConsentsCategoriesError: "Błąd: Nie można pobrać kategorii zgód",
3409
+ updateConsentsError: "Błąd: Nie można zaktualizować zgód.",
3410
+ saveChangesError: "Błąd: Nie można zapisać zmian.",
3411
+ mustAcceptError: "Wymagane zgody muszą zostać zaakceptowane.",
3412
+ title: "Zgody",
3413
+ description: "Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi sposobu, w jaki zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a ten narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online."
3414
+ },
3415
+ pt: {
3416
+ invalidUrl: "Falha ao construir URL: URL inválido",
3417
+ fetchConsentsError: "Erro: Não foi possível obter consentimentos.",
3418
+ fetchPlayerConsentsError: "Erro: Não foi possível obter consentimentos do jogador.",
3419
+ fetchConsentsCategoriesError: "Erro: Não foi possível obter categorias de consentimento",
3420
+ updateConsentsError: "Erro: Não foi possível atualizar consentimentos.",
3421
+ saveChangesError: "Erro: Não foi possível salvar alterações.",
3422
+ mustAcceptError: "Os consentimentos obrigatórios devem ser aceitos.",
3423
+ title: "Consentimentos",
3424
+ description: "Aqui, você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você faça escolhas informadas sobre sua experiência online."
3425
+ },
3426
+ sl: {
3427
+ invalidUrl: "Napaka pri gradnji URL: Neveljaven URL",
3428
+ fetchConsentsError: "Napaka: Ne morem pridobiti soglasij.",
3429
+ fetchPlayerConsentsError: "Napaka: Ne morem pridobiti soglasij igralca.",
3430
+ fetchConsentsCategoriesError: "Napaka: Ne morem pridobiti kategorij soglasja",
3431
+ updateConsentsError: "Napaka: Ne morem posodobiti soglasij.",
3432
+ saveChangesError: "Napaka: Spremembe ni mogoče shraniti.",
3433
+ mustAcceptError: "Obvezna soglasja je treba sprejeti.",
3434
+ title: "Soglasja",
3435
+ description: "Tu lahko raziščete in upravljate svoje preference glede načina, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost nam je pomembna, ta orodje pa vam omogoča, da sprejemate informirane odločitve o svoji spletni izkušnji."
3436
+ },
3437
+ sr: {
3438
+ invalidUrl: "Неуспело конструисање URL-а: Неважећи URL",
3439
+ fetchConsentsError: "Грешка: Није могуће добити сагласности.",
3440
+ fetchPlayerConsentsError: "Грешка: Није могуће добити сагласности играча.",
3441
+ fetchConsentsCategoriesError: "Грешка: Није могуће добити категорије сагласности",
3442
+ updateConsentsError: "Грешка: Није могуће ажурирати сагласности.",
3443
+ saveChangesError: "Грешка: Промене није могуће сачувати.",
3444
+ mustAcceptError: "Обавезне сагласности морају бити прихваћене.",
3445
+ title: "Сагласности",
3446
+ description: "Овде можете истражити и управљати вашим преференцијама у вези са тим како сакупљамо и користимо ваше податке. Ваша приватност је важна за нас, а ова алатка вам омогућава да донесете информисане одлуке о свом онлајн искуству."
3447
+ },
3448
+ "es-mx": {
3449
+ invalidUrl: "Error al construir URL: URL no válida",
3450
+ fetchConsentsError: "Error: No se pudieron obtener los consentimientos.",
3451
+ fetchPlayerConsentsError: "Error: No se pudieron obtener los consentimientos del jugador.",
3452
+ fetchConsentsCategoriesError: "Error: No se pudieron obtener las categorías de consentimiento",
3453
+ updateConsentsError: "Error: No se pudieron actualizar los consentimientos.",
3454
+ saveChangesError: "Error: No se pudieron guardar los cambios.",
3455
+ mustAcceptError: "Se deben aceptar los consentimientos obligatorios.",
3456
+ title: "Consentimientos",
3457
+ description: "Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea."
3458
+ },
3459
+ "pt-br": {
3460
+ invalidUrl: "Falha ao construir URL: URL inválido",
3461
+ fetchConsentsError: "Erro: Não foi possível obter consentimentos.",
3462
+ fetchPlayerConsentsError: "Erro: Não foi possível obter consentimentos do jogador.",
3463
+ fetchConsentsCategoriesError: "Erro: Não foi possível obter categorias de consentimento",
3464
+ updateConsentsError: "Erro: Não foi possível atualizar consentimentos.",
3465
+ saveChangesError: "Erro: Não foi possível salvar alterações.",
3466
+ mustAcceptError: "Os consentimentos obrigatórios devem ser aceitos.",
3467
+ title: "Consentimentos",
3468
+ description: "Aqui, você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você faça escolhas informadas sobre sua experiência online."
3469
+ }
3470
+ };
3471
+ if (typeof window != "undefined") {
3472
+ let e = function(t) {
3473
+ return function(...r) {
3474
+ try {
3475
+ return t.apply(this, r);
3476
+ } catch (n) {
3477
+ if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
3478
+ return !1;
3479
+ throw n;
3480
+ }
3481
+ };
3482
+ };
3483
+ customElements.define = e(customElements.define), import("./GeneralAnimationLoading-CZAWpbQR.js").then((t) => t.G).then(({ default: t }) => {
3484
+ !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
3485
+ });
3486
+ }
3487
+ function bs(e) {
3488
+ let t, r;
3489
+ return {
3490
+ c() {
3491
+ t = nt("svg"), r = nt("path"), H(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"), H(t, "xmlns", "http://www.w3.org/2000/svg"), H(t, "viewBox", "0 0 512 512");
3492
+ },
3493
+ m(n, s) {
3494
+ U(n, t, s), y(t, r);
3495
+ },
3496
+ p: j,
3497
+ i: j,
3498
+ o: j,
3499
+ d(n) {
3500
+ n && M(t);
3501
+ }
3502
+ };
3503
+ }
3504
+ class Es extends Bt {
3505
+ constructor(t) {
3506
+ super(), Pt(this, t, null, bs, Xe, {});
3507
+ }
3508
+ }
3509
+ customElements.define("circle-exclamation-icon", wt(Es, {}, [], [], !0));
3510
+ function ys(e) {
3511
+ Tr(e, "svelte-ltld8s", '.DisplayNone.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{display:none}.ContainerCenter.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{margin-bottom:30px}.AccordionHeader.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{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-ltld8s.svelte-ltld8s.svelte-ltld8s{margin-bottom:10px}.AccordionContent.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{display:block;padding:10px 0}.AccordionContent.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s:last-of-type{padding-bottom:0}.ConsentItem.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s:last-of-type{margin-bottom:0}.ConsentItem.svelte-ltld8s .ConsentName.svelte-ltld8s.svelte-ltld8s{margin:0}.ConsentItem.svelte-ltld8s .ConsentDescription.svelte-ltld8s.svelte-ltld8s{font-size:0.8rem}.ToggleSwitch.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{width:53px;height:30px}.ToggleSwitch.Big.svelte-ltld8s .Slider.svelte-ltld8s.svelte-ltld8s:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-ltld8s input.svelte-ltld8s:checked+.Slider.svelte-ltld8s:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-ltld8s input.svelte-ltld8s.svelte-ltld8s{opacity:0;width:0;height:0}.ToggleSwitch.svelte-ltld8s input.svelte-ltld8s:checked+.Slider.svelte-ltld8s{background-color:var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltld8s input.svelte-ltld8s:disabled+.Slider.svelte-ltld8s{opacity:0.1}.ToggleSwitch.svelte-ltld8s input.svelte-ltld8s:checked+.Slider.svelte-ltld8s:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-ltld8s input.svelte-ltld8s:focus+.Slider.svelte-ltld8s{box-shadow:0 0 1px var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltld8s .Slider.svelte-ltld8s.svelte-ltld8s{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-ltld8s .Slider.svelte-ltld8s.svelte-ltld8s: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-ltld8s .Slider.Round.svelte-ltld8s.svelte-ltld8s{border-radius:34px}.ToggleSwitch.svelte-ltld8s .Slider.Round.svelte-ltld8s.svelte-ltld8s:before{border-radius:50%}.ConsentErrorContainer.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-ltld8s circle-exclamation-icon.svelte-ltld8s.svelte-ltld8s{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-ltld8s.svelte-ltld8s.svelte-ltld8s{color:var(--emw--color-error, #ed0909)}');
3512
+ }
3513
+ function Et(e, t, r) {
3514
+ const n = e.slice();
3515
+ return n[48] = t[r], n[49] = t, n[50] = r, n;
3516
+ }
3517
+ function yt(e, t, r) {
3518
+ const n = e.slice();
3519
+ return n[51] = t[r], n[52] = t, n[53] = r, n;
3520
+ }
3521
+ function xs(e) {
3522
+ let t, r, n, s = (k[
3523
+ /*lang*/
3524
+ e[2]
3525
+ ].title || k[
3526
+ /*lang*/
3527
+ e[2]
3528
+ ].description) && xt(e), i = ye(
3529
+ /*consentsCategories*/
3530
+ e[8]
3531
+ ), o = [];
3532
+ for (let l = 0; l < i.length; l += 1)
3533
+ o[l] = At(Et(e, i, l));
3534
+ let a = (
3535
+ /*errorMessage*/
3536
+ e[6] && Nt(e)
3537
+ );
3538
+ return {
3539
+ c() {
3540
+ s && s.c(), t = G();
3541
+ for (let l = 0; l < o.length; l += 1)
3542
+ o[l].c();
3543
+ r = G(), a && a.c(), n = Nr();
3544
+ },
3545
+ m(l, h) {
3546
+ s && s.m(l, h), U(l, t, h);
3547
+ for (let u = 0; u < o.length; u += 1)
3548
+ o[u] && o[u].m(l, h);
3549
+ U(l, r, h), a && a.m(l, h), U(l, n, h);
3550
+ },
3551
+ p(l, h) {
3552
+ if (k[
3553
+ /*lang*/
3554
+ l[2]
3555
+ ].title || k[
3556
+ /*lang*/
3557
+ l[2]
3558
+ ].description ? s ? s.p(l, h) : (s = xt(l), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), h[0] & /*consentsList, consentsCategories, initialConsentsState, consentsState, toggleConsent, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
3559
+ 64264) {
3560
+ i = ye(
3561
+ /*consentsCategories*/
3562
+ l[8]
3563
+ );
3564
+ let u;
3565
+ for (u = 0; u < i.length; u += 1) {
3566
+ const d = Et(l, i, u);
3567
+ o[u] ? o[u].p(d, h) : (o[u] = At(d), o[u].c(), o[u].m(r.parentNode, r));
3568
+ }
3569
+ for (; u < o.length; u += 1)
3570
+ o[u].d(1);
3571
+ o.length = i.length;
3572
+ }
3573
+ /*errorMessage*/
3574
+ l[6] ? a ? a.p(l, h) : (a = Nt(l), a.c(), a.m(n.parentNode, n)) : a && (a.d(1), a = null);
3575
+ },
3576
+ d(l) {
3577
+ l && (M(t), M(r), M(n)), s && s.d(l), It(o, l), a && a.d(l);
3578
+ }
3579
+ };
3580
+ }
3581
+ function _s(e) {
3582
+ let t, r, n;
3583
+ return {
3584
+ c() {
3585
+ t = w("div"), r = w("strong"), n = Q(
3586
+ /*fatalError*/
3587
+ e[7]
3588
+ ), H(r, "class", "ErrorMessage svelte-ltld8s"), H(t, "class", "ContainerCenter svelte-ltld8s");
3589
+ },
3590
+ m(s, i) {
3591
+ U(s, t, i), y(t, r), y(r, n);
3592
+ },
3593
+ p(s, i) {
3594
+ i[0] & /*fatalError*/
3595
+ 128 && Y(
3596
+ n,
3597
+ /*fatalError*/
3598
+ s[7]
3599
+ );
3600
+ },
3601
+ d(s) {
3602
+ s && M(t);
3603
+ }
3604
+ };
3605
+ }
3606
+ function Cs(e) {
3607
+ let t;
3608
+ return {
3609
+ c() {
3610
+ t = w("general-animation-loading"), he(
3611
+ t,
3612
+ "clientstyling",
3613
+ /*clientstyling*/
3614
+ e[0]
3615
+ ), he(
3616
+ t,
3617
+ "clientstylingurl",
3618
+ /*clientstylingurl*/
3619
+ e[1]
3620
+ );
3621
+ },
3622
+ m(r, n) {
3623
+ U(r, t, n);
3624
+ },
3625
+ p(r, n) {
3626
+ n[0] & /*clientstyling*/
3627
+ 1 && he(
3628
+ t,
3629
+ "clientstyling",
3630
+ /*clientstyling*/
3631
+ r[0]
3632
+ ), n[0] & /*clientstylingurl*/
3633
+ 2 && he(
3634
+ t,
3635
+ "clientstylingurl",
3636
+ /*clientstylingurl*/
3637
+ r[1]
3638
+ );
3639
+ },
3640
+ d(r) {
3641
+ r && M(t);
3642
+ }
3643
+ };
3644
+ }
3645
+ function xt(e) {
3646
+ let t, r, n = k[
3647
+ /*lang*/
3648
+ e[2]
3649
+ ].title && _t(e), s = k[
3650
+ /*lang*/
3651
+ e[2]
3652
+ ].description && Ct(e);
3653
+ return {
3654
+ c() {
3655
+ t = w("div"), n && n.c(), r = G(), s && s.c(), H(t, "class", "PlayerConsentsHeader svelte-ltld8s");
3656
+ },
3657
+ m(i, o) {
3658
+ U(i, t, o), n && n.m(t, null), y(t, r), s && s.m(t, null);
3659
+ },
3660
+ p(i, o) {
3661
+ k[
3662
+ /*lang*/
3663
+ i[2]
3664
+ ].title ? n ? n.p(i, o) : (n = _t(i), n.c(), n.m(t, r)) : n && (n.d(1), n = null), k[
3665
+ /*lang*/
3666
+ i[2]
3667
+ ].description ? s ? s.p(i, o) : (s = Ct(i), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
3668
+ },
3669
+ d(i) {
3670
+ i && M(t), n && n.d(), s && s.d();
3671
+ }
3672
+ };
3673
+ }
3674
+ function _t(e) {
3675
+ let t, r = k[
3676
+ /*lang*/
3677
+ e[2]
3678
+ ].title + "", n;
3679
+ return {
3680
+ c() {
3681
+ t = w("h2"), n = Q(r), H(t, "class", "PlayerConsentsTitle");
3682
+ },
3683
+ m(s, i) {
3684
+ U(s, t, i), y(t, n);
3685
+ },
3686
+ p(s, i) {
3687
+ i[0] & /*lang*/
3688
+ 4 && r !== (r = k[
3689
+ /*lang*/
3690
+ s[2]
3691
+ ].title + "") && Y(n, r);
3692
+ },
3693
+ d(s) {
3694
+ s && M(t);
3695
+ }
3696
+ };
3697
+ }
3698
+ function Ct(e) {
3699
+ let t, r = k[
3700
+ /*lang*/
3701
+ e[2]
3702
+ ].description + "", n;
3703
+ return {
3704
+ c() {
3705
+ t = w("p"), n = Q(r), H(t, "class", "PlayerConsentsDescription");
3706
+ },
3707
+ m(s, i) {
3708
+ U(s, t, i), y(t, n);
3709
+ },
3710
+ p(s, i) {
3711
+ i[0] & /*lang*/
3712
+ 4 && r !== (r = k[
3713
+ /*lang*/
3714
+ s[2]
3715
+ ].description + "") && Y(n, r);
3716
+ },
3717
+ d(s) {
3718
+ s && M(t);
3719
+ }
3720
+ };
3721
+ }
3722
+ function Tt(e) {
3723
+ let t;
3724
+ return {
3725
+ c() {
3726
+ t = w("sup"), t.textContent = "*", H(t, "class", "ConsentRequired svelte-ltld8s");
3727
+ },
3728
+ m(r, n) {
3729
+ U(r, t, n);
3730
+ },
3731
+ d(r) {
3732
+ r && M(t);
3733
+ }
3734
+ };
3735
+ }
3736
+ function Ht(e) {
3737
+ let t, r = (
3738
+ /*consent*/
3739
+ e[51].description + ""
3740
+ ), n;
3741
+ return {
3742
+ c() {
3743
+ t = w("p"), n = Q(r), H(t, "class", "ConsentDescription svelte-ltld8s");
3744
+ },
3745
+ m(s, i) {
3746
+ U(s, t, i), y(t, n);
3747
+ },
3748
+ p(s, i) {
3749
+ i[0] & /*consentsList, consentsCategories*/
3750
+ 768 && r !== (r = /*consent*/
3751
+ s[51].description + "") && Y(n, r);
3752
+ },
3753
+ d(s) {
3754
+ s && M(t);
3755
+ }
3756
+ };
3757
+ }
3758
+ function St(e) {
3759
+ let t, r, n, s = (
3760
+ /*consent*/
3761
+ e[51].friendlyName + ""
3762
+ ), i, o, a, l, h, u, d, f, p, T, B, C = (
3763
+ /*consent*/
3764
+ e[51].mustAccept === !0 && Tt()
3765
+ ), x = (
3766
+ /*displayconsentdescription*/
3767
+ e[3] === "true" && Ht(e)
3768
+ );
3769
+ function L() {
3770
+ e[24].call(
3771
+ u,
3772
+ /*consent*/
3773
+ e[51]
3774
+ );
3775
+ }
3776
+ function _() {
3777
+ return (
3778
+ /*change_handler_1*/
3779
+ e[25](
3780
+ /*consent*/
3781
+ e[51]
3782
+ )
3783
+ );
3784
+ }
3785
+ return {
3786
+ c() {
3787
+ t = w("div"), r = w("div"), n = w("h4"), i = Q(s), o = G(), C && C.c(), a = G(), x && x.c(), l = G(), h = w("label"), u = w("input"), f = G(), p = w("span"), H(n, "class", "ConsentName svelte-ltld8s"), H(r, "class", "ConsentContent"), H(u, "type", "checkbox"), u.disabled = d = /*consent*/
3788
+ e[51].mustAccept === !0 && /*initialConsentsState*/
3789
+ e[12][
3790
+ /*consent*/
3791
+ e[51].tagCode
3792
+ ] === !0, H(u, "class", "svelte-ltld8s"), H(p, "class", "Slider Round svelte-ltld8s"), H(h, "class", "ToggleSwitch svelte-ltld8s"), H(t, "class", "ConsentItem svelte-ltld8s");
3793
+ },
3794
+ m(b, S) {
3795
+ U(b, t, S), y(t, r), y(r, n), y(n, i), y(n, o), C && C.m(n, null), y(r, a), x && x.m(r, null), y(t, l), y(t, h), y(h, u), u.checked = /*consentsState*/
3796
+ e[13][
3797
+ /*consent*/
3798
+ e[51].tagCode
3799
+ ], y(h, f), y(h, p), T || (B = [
3800
+ xe(u, "change", L),
3801
+ xe(u, "change", _)
3802
+ ], T = !0);
3803
+ },
3804
+ p(b, S) {
3805
+ e = b, S[0] & /*consentsList, consentsCategories*/
3806
+ 768 && s !== (s = /*consent*/
3807
+ e[51].friendlyName + "") && Y(i, s), /*consent*/
3808
+ e[51].mustAccept === !0 ? C || (C = Tt(), C.c(), C.m(n, null)) : C && (C.d(1), C = null), /*displayconsentdescription*/
3809
+ e[3] === "true" ? x ? x.p(e, S) : (x = Ht(e), x.c(), x.m(r, null)) : x && (x.d(1), x = null), S[0] & /*consentsList, consentsCategories, initialConsentsState*/
3810
+ 4864 && d !== (d = /*consent*/
3811
+ e[51].mustAccept === !0 && /*initialConsentsState*/
3812
+ e[12][
3813
+ /*consent*/
3814
+ e[51].tagCode
3815
+ ] === !0) && (u.disabled = d), S[0] & /*consentsState, consentsList, consentsCategories*/
3816
+ 8960 && (u.checked = /*consentsState*/
3817
+ e[13][
3818
+ /*consent*/
3819
+ e[51].tagCode
3820
+ ]);
3821
+ },
3822
+ d(b) {
3823
+ b && M(t), C && C.d(), x && x.d(), T = !1, Ve(B);
3824
+ }
3825
+ };
3826
+ }
3827
+ function At(e) {
3828
+ let t, r, n, s = (
3829
+ /*category*/
3830
+ e[48].friendlyName + ""
3831
+ ), i, o, a, l, h, u, d, f, p, T;
3832
+ function B() {
3833
+ e[21].call(
3834
+ l,
3835
+ /*category*/
3836
+ e[48]
3837
+ );
3838
+ }
3839
+ function C() {
3840
+ return (
3841
+ /*change_handler*/
3842
+ e[22](
3843
+ /*category*/
3844
+ e[48]
3845
+ )
3846
+ );
3847
+ }
3848
+ function x(...b) {
3849
+ return (
3850
+ /*func*/
3851
+ e[23](
3852
+ /*category*/
3853
+ e[48],
3854
+ ...b
3855
+ )
3856
+ );
3857
+ }
3858
+ let L = ye(
3859
+ /*consentsList*/
3860
+ e[9].filter(x)
3861
+ ), _ = [];
3862
+ for (let b = 0; b < L.length; b += 1)
3863
+ _[b] = St(yt(e, L, b));
3864
+ return {
3865
+ c() {
3866
+ t = w("div"), r = w("div"), n = w("h3"), i = Q(s), o = G(), a = w("label"), l = w("input"), h = G(), u = w("span"), d = G(), f = w("div");
3867
+ for (let b = 0; b < _.length; b += 1)
3868
+ _[b].c();
3869
+ H(l, "type", "checkbox"), H(l, "class", "svelte-ltld8s"), H(u, "class", "Slider Round svelte-ltld8s"), H(a, "class", "ToggleSwitch Big svelte-ltld8s"), H(r, "class", "AccordionHeader svelte-ltld8s"), H(f, "class", "AccordionContent svelte-ltld8s"), H(t, "class", "AccordionItem svelte-ltld8s");
3870
+ },
3871
+ m(b, S) {
3872
+ U(b, t, S), y(t, r), y(r, n), y(n, i), y(r, o), y(r, a), y(a, l), l.checked = /*categoryToggle*/
3873
+ e[11][
3874
+ /*category*/
3875
+ e[48].categoryTagCode
3876
+ ], y(a, h), y(a, u), y(t, d), y(t, f);
3877
+ for (let A = 0; A < _.length; A += 1)
3878
+ _[A] && _[A].m(f, null);
3879
+ p || (T = [
3880
+ xe(l, "change", B),
3881
+ xe(l, "change", C)
3882
+ ], p = !0);
3883
+ },
3884
+ p(b, S) {
3885
+ if (e = b, S[0] & /*consentsCategories*/
3886
+ 256 && s !== (s = /*category*/
3887
+ e[48].friendlyName + "") && Y(i, s), S[0] & /*categoryToggle, consentsCategories*/
3888
+ 2304 && (l.checked = /*categoryToggle*/
3889
+ e[11][
3890
+ /*category*/
3891
+ e[48].categoryTagCode
3892
+ ]), S[0] & /*consentsList, consentsCategories, initialConsentsState, consentsState, toggleConsent, displayconsentdescription*/
3893
+ 45832) {
3894
+ L = ye(
3895
+ /*consentsList*/
3896
+ e[9].filter(x)
3897
+ );
3898
+ let A;
3899
+ for (A = 0; A < L.length; A += 1) {
3900
+ const z = yt(e, L, A);
3901
+ _[A] ? _[A].p(z, S) : (_[A] = St(z), _[A].c(), _[A].m(f, null));
3902
+ }
3903
+ for (; A < _.length; A += 1)
3904
+ _[A].d(1);
3905
+ _.length = L.length;
3906
+ }
3907
+ },
3908
+ d(b) {
3909
+ b && M(t), It(_, b), p = !1, Ve(T);
3910
+ }
3911
+ };
3912
+ }
3913
+ function Nt(e) {
3914
+ let t, r, n, s, i;
3915
+ return {
3916
+ c() {
3917
+ t = w("div"), r = w("circle-exclamation-icon"), n = G(), s = w("strong"), i = Q(
3918
+ /*errorMessage*/
3919
+ e[6]
3920
+ ), he(r, "class", "svelte-ltld8s"), H(s, "class", "ErrorMessage svelte-ltld8s"), H(t, "class", "ConsentErrorContainer svelte-ltld8s");
3921
+ },
3922
+ m(o, a) {
3923
+ U(o, t, a), y(t, r), y(t, n), y(t, s), y(s, i);
3924
+ },
3925
+ p(o, a) {
3926
+ a[0] & /*errorMessage*/
3927
+ 64 && Y(
3928
+ i,
3929
+ /*errorMessage*/
3930
+ o[6]
3931
+ );
3932
+ },
3933
+ d(o) {
3934
+ o && M(t);
3935
+ }
3936
+ };
3937
+ }
3938
+ function Ts(e) {
3939
+ let t, r, n;
3940
+ function s(a, l) {
3941
+ return (
3942
+ /*isLoading*/
3943
+ a[10] ? Cs : (
3944
+ /*fatalError*/
3945
+ a[7] ? _s : xs
3946
+ )
3947
+ );
3948
+ }
3949
+ let i = s(e), o = i(e);
3950
+ return {
3951
+ c() {
3952
+ t = w("div"), r = w("div"), o.c(), H(r, "class", "ConsentsContainer"), H(t, "class", n = st(
3953
+ /*displayNone*/
3954
+ e[5] ? "DisplayNone" : ""
3955
+ ) + " svelte-ltld8s");
3956
+ },
3957
+ m(a, l) {
3958
+ U(a, t, l), y(t, r), o.m(r, null), e[26](r);
3959
+ },
3960
+ p(a, l) {
3961
+ i === (i = s(a)) && o ? o.p(a, l) : (o.d(1), o = i(a), o && (o.c(), o.m(r, null))), l[0] & /*displayNone*/
3962
+ 32 && n !== (n = st(
3963
+ /*displayNone*/
3964
+ a[5] ? "DisplayNone" : ""
3965
+ ) + " svelte-ltld8s") && H(t, "class", n);
3966
+ },
3967
+ i: j,
3968
+ o: j,
3969
+ d(a) {
3970
+ a && M(t), o.d(), e[26](null);
3971
+ }
3972
+ };
3973
+ }
3974
+ function Hs(e, t, r) {
3975
+ let n;
3976
+ Hr(e, gs, (c) => r(33, n = c));
3977
+ let { session: s = "" } = t, { userid: i = "" } = t, { endpoint: o = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { lang: h = "en" } = t, { displayconsentdescription: u = "" } = t, { translationurl: d = "" } = t, f = !1, p, T = !1, B = !1, C = "", x = "", L = "", _ = "", b = [], S = [], A = [], z = !0, me = !0, D = {}, pe = {}, F = {}, O = {};
3978
+ Object.keys(k).forEach((c) => {
3979
+ bt(c, k[c]);
3980
+ });
3981
+ const nr = () => {
3982
+ vs(h);
3983
+ }, sr = () => {
3984
+ let c = new URL(d);
3985
+ fetch(c.href).then((m) => m.json()).then((m) => {
3986
+ Object.keys(m).forEach((I) => {
3987
+ bt(I, m[I]);
3988
+ });
3989
+ }).catch((m) => {
3990
+ console.log(m);
3991
+ });
3992
+ }, ir = () => {
3993
+ let c = document.createElement("style");
3994
+ c.innerHTML = a, p.appendChild(c);
3995
+ }, or = () => {
3996
+ try {
3997
+ r(5, f = !0);
3998
+ let c = new URL(l), m = document.createElement("style");
3999
+ fetch(c.href).then((I) => I.text()).then((I) => {
4000
+ m.innerHTML = I, setTimeout(
4001
+ () => {
4002
+ p.appendChild(m);
4003
+ },
4004
+ 1
4005
+ ), setTimeout(
4006
+ () => {
4007
+ r(5, f = !1);
4008
+ },
4009
+ 500
4010
+ );
4011
+ });
4012
+ } catch (c) {
4013
+ const m = c instanceof TypeError ? n("invalidUrl") : c.message;
4014
+ ge(m);
4015
+ }
4016
+ }, ar = () => {
4017
+ s && (C = s, B = !0), i && (x = i);
4018
+ }, ge = (c, m = !1) => {
4019
+ m ? r(7, _ = c) : (fr(), r(6, L = c));
4020
+ }, ae = (c, m, I, V = !1) => le(this, null, function* () {
4021
+ try {
4022
+ const N = yield fetch(c, I);
4023
+ if (!N.ok)
4024
+ throw new Error(n(m));
4025
+ const X = yield N.json();
4026
+ return B ? X : X.filter((J) => J.showOnRegister === !0);
4027
+ } catch (N) {
4028
+ throw ge(
4029
+ N instanceof TypeError ? n(m) : N.message,
4030
+ V
4031
+ ), N;
4032
+ }
4033
+ }), lr = () => le(this, null, function* () {
4034
+ try {
4035
+ let c = [], m = [];
4036
+ B ? [c, m] = yield Qe() : c = yield Qe(), r(10, z = !1), r(9, S = [...c]), r(8, b = ur(S).sort((I, V) => I.categoryTagCode.localeCompare(V.categoryTagCode))), r(11, D = hr(b)), pe = Z({}, D), A = [...m], cr();
4037
+ } catch (c) {
4038
+ throw r(10, z = !1), ge(
4039
+ c instanceof TypeError ? n("invalidUrl") : c.message,
4040
+ !0
4041
+ ), c;
4042
+ }
4043
+ }), Qe = () => le(this, null, function* () {
4044
+ const c = new URL(`${o}/api/v1/gm/consents`);
4045
+ if (c.searchParams.append("Status", "Active"), !B)
4046
+ return yield ae(c.href, "fetchConsentsError", { method: "GET" }, !0);
4047
+ const m = new URL(`${o}/api/v1/gm/user-consents/${x}`);
4048
+ return yield Promise.all([
4049
+ ae(c.href, "fetchConsentsError", { method: "GET" }, !0),
4050
+ ae(m.href, "fetchPlayerConsentsError", {
4051
+ method: "GET",
4052
+ headers: {
4053
+ "X-SessionId": C,
4054
+ "Content-Type": "application/json"
4055
+ }
4056
+ })
4057
+ ]);
4058
+ }), ur = (c) => {
4059
+ const m = /* @__PURE__ */ new Map();
4060
+ return c.forEach((I) => {
4061
+ m.has(I.category.categoryTagCode) || m.set(I.category.categoryTagCode, I.category);
4062
+ }), Array.from(m.values());
4063
+ }, hr = (c) => {
4064
+ const m = localStorage.getItem("categoryToggle" + x);
4065
+ if (m === null) {
4066
+ const I = c.reduce(
4067
+ (V, N) => (V[N.categoryTagCode] = !1, V),
4068
+ {}
4069
+ );
4070
+ return localStorage.setItem("categoryToggle" + x, JSON.stringify(I)), I;
4071
+ } else
4072
+ return JSON.parse(m);
4073
+ }, cr = () => {
4074
+ S.forEach((c) => {
4075
+ const m = A.find((I) => I.tagCode === c.tagCode);
4076
+ r(12, F[c.tagCode] = m && m.status === "Accepted", F);
4077
+ }), r(13, O = Z({}, F));
4078
+ }, fr = () => {
4079
+ r(13, O = Z({}, F)), r(11, D = Z({}, pe));
4080
+ }, Ye = () => le(this, null, function* () {
4081
+ if (!me)
4082
+ return;
4083
+ me = !1;
4084
+ const c = [], m = [], I = S.filter((N) => N.mustAccept === !0 && (!O[N.tagCode] || O[N.tagCode] === !1));
4085
+ if (window.postMessage({
4086
+ type: "HasMandatoryConsents",
4087
+ data: I.length > 0
4088
+ }), Object.keys(O).forEach((N) => {
4089
+ const X = A.find((J) => J.tagCode === N);
4090
+ O[N] !== F[N] && (X ? c.push({
4091
+ tagCode: N,
4092
+ status: O[N] ? "Accepted" : "Denied"
4093
+ }) : m.push({
4094
+ tagCode: N,
4095
+ status: O[N] ? "Accepted" : "Denied"
4096
+ }));
4097
+ }), !B) {
4098
+ localStorage.setItem("categoryToggle" + x, JSON.stringify(D)), pe = Z({}, D), window.postMessage(
4099
+ {
4100
+ type: "NewPlayerConsentData",
4101
+ data: JSON.stringify(m)
4102
+ },
4103
+ window.location.href
4104
+ ), me = !0;
4105
+ return;
4106
+ }
4107
+ const V = new URL(`${o}/api/v1/gm/user-consents/${x}`);
4108
+ try {
4109
+ const N = yield Promise.allSettled([
4110
+ m.length > 0 && ae(V.href, "updateConsentsError", {
4111
+ method: "POST",
4112
+ headers: {
4113
+ "X-SessionId": C,
4114
+ "Content-Type": "application/json"
4115
+ },
4116
+ body: JSON.stringify({ userConsents: m })
4117
+ }),
4118
+ c.length > 0 && ae(V.href, "updateConsentsError", {
4119
+ method: "PATCH",
4120
+ headers: {
4121
+ "X-SessionId": C,
4122
+ "Content-Type": "application/json"
4123
+ },
4124
+ body: JSON.stringify({ userConsents: c })
4125
+ })
4126
+ ]);
4127
+ N.forEach((X, J) => {
4128
+ if (X.status === "rejected" || X.value.ok === !1) {
4129
+ const et = J < m.length ? m[J] : c[J - m.length];
4130
+ r(13, O[et.tagCode] = F[et.tagCode], O);
4131
+ }
4132
+ }), N.every((X) => X.status === "fulfilled") && (localStorage.setItem("categoryToggle" + x, JSON.stringify(D)), pe = Z({}, D), window.postMessage(
4133
+ {
4134
+ type: "PlayerConsentUpdated",
4135
+ success: !0
4136
+ },
4137
+ window.location.href
4138
+ ), r(12, F = Z({}, O)));
4139
+ } catch (N) {
4140
+ ge(N instanceof TypeError ? n("saveChangesError") : N.message), window.postMessage(
4141
+ {
4142
+ type: "PlayerConsentUpdated",
4143
+ success: !1
4144
+ },
4145
+ window.location.href
4146
+ );
4147
+ } finally {
4148
+ me = !0;
4149
+ }
4150
+ }), Ke = (c) => {
4151
+ S.filter((m) => m.category.categoryTagCode === c).forEach((m) => {
4152
+ m.mustAccept && F[m.tagCode] === !0 || r(13, O[m.tagCode] = D[c] || !1, O);
4153
+ }), Ye();
4154
+ }, $e = (c) => {
4155
+ r(11, D[c.categoryTagCode] = !1, D), Ye();
4156
+ };
4157
+ Sr(() => {
4158
+ setTimeout(
4159
+ () => {
4160
+ r(20, T = !0);
4161
+ },
4162
+ 50
4163
+ );
4164
+ });
4165
+ function dr(c) {
4166
+ D[c.categoryTagCode] = this.checked, r(11, D);
4167
+ }
4168
+ const mr = (c) => Ke(c.categoryTagCode), pr = (c, m) => m.category.categoryTagCode === c.categoryTagCode;
4169
+ function gr(c) {
4170
+ O[c.tagCode] = this.checked, r(13, O);
4171
+ }
4172
+ const vr = (c) => $e(c.category);
4173
+ function br(c) {
4174
+ Ar[c ? "unshift" : "push"](() => {
4175
+ p = c, r(4, p);
4176
+ });
4177
+ }
4178
+ return e.$$set = (c) => {
4179
+ "session" in c && r(16, s = c.session), "userid" in c && r(17, i = c.userid), "endpoint" in c && r(18, o = c.endpoint), "clientstyling" in c && r(0, a = c.clientstyling), "clientstylingurl" in c && r(1, l = c.clientstylingurl), "lang" in c && r(2, h = c.lang), "displayconsentdescription" in c && r(3, u = c.displayconsentdescription), "translationurl" in c && r(19, d = c.translationurl);
4180
+ }, e.$$.update = () => {
4181
+ e.$$.dirty[0] & /*isMounted*/
4182
+ 1048576 && T && (ar(), lr()), e.$$.dirty[0] & /*customStylingContainer, clientstyling, clientstylingurl*/
4183
+ 19 && p && (a && ir(), l && or()), e.$$.dirty[0] & /*lang*/
4184
+ 4 && h && nr(), e.$$.dirty[0] & /*translationurl*/
4185
+ 524288 && d && sr();
4186
+ }, [
4187
+ a,
4188
+ l,
4189
+ h,
4190
+ u,
4191
+ p,
4192
+ f,
4193
+ L,
4194
+ _,
4195
+ b,
4196
+ S,
4197
+ z,
4198
+ D,
4199
+ F,
4200
+ O,
4201
+ Ke,
4202
+ $e,
4203
+ s,
4204
+ i,
4205
+ o,
4206
+ d,
4207
+ T,
4208
+ dr,
4209
+ mr,
4210
+ pr,
4211
+ gr,
4212
+ vr,
4213
+ br
4214
+ ];
4215
+ }
4216
+ class Ss extends Bt {
4217
+ constructor(t) {
4218
+ super(), Pt(
4219
+ this,
4220
+ t,
4221
+ Hs,
4222
+ Ts,
4223
+ Xe,
4224
+ {
4225
+ session: 16,
4226
+ userid: 17,
4227
+ endpoint: 18,
4228
+ clientstyling: 0,
4229
+ clientstylingurl: 1,
4230
+ lang: 2,
4231
+ displayconsentdescription: 3,
4232
+ translationurl: 19
4233
+ },
4234
+ ys,
4235
+ [-1, -1]
4236
+ );
4237
+ }
4238
+ get session() {
4239
+ return this.$$.ctx[16];
4240
+ }
4241
+ set session(t) {
4242
+ this.$$set({ session: t }), W();
4243
+ }
4244
+ get userid() {
4245
+ return this.$$.ctx[17];
4246
+ }
4247
+ set userid(t) {
4248
+ this.$$set({ userid: t }), W();
4249
+ }
4250
+ get endpoint() {
4251
+ return this.$$.ctx[18];
4252
+ }
4253
+ set endpoint(t) {
4254
+ this.$$set({ endpoint: t }), W();
4255
+ }
4256
+ get clientstyling() {
4257
+ return this.$$.ctx[0];
4258
+ }
4259
+ set clientstyling(t) {
4260
+ this.$$set({ clientstyling: t }), W();
4261
+ }
4262
+ get clientstylingurl() {
4263
+ return this.$$.ctx[1];
4264
+ }
4265
+ set clientstylingurl(t) {
4266
+ this.$$set({ clientstylingurl: t }), W();
4267
+ }
4268
+ get lang() {
4269
+ return this.$$.ctx[2];
4270
+ }
4271
+ set lang(t) {
4272
+ this.$$set({ lang: t }), W();
4273
+ }
4274
+ get displayconsentdescription() {
4275
+ return this.$$.ctx[3];
4276
+ }
4277
+ set displayconsentdescription(t) {
4278
+ this.$$set({ displayconsentdescription: t }), W();
4279
+ }
4280
+ get translationurl() {
4281
+ return this.$$.ctx[19];
4282
+ }
4283
+ set translationurl(t) {
4284
+ this.$$set({ translationurl: t }), W();
4285
+ }
4286
+ }
4287
+ wt(Ss, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, lang: {}, displayconsentdescription: {}, translationurl: {} }, [], [], !0);
4288
+ export {
4289
+ Ss as default
4290
+ };