@everymatrix/player-consents 1.57.0 → 1.59.0

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