@everymatrix/player-consents 1.86.4 → 1.86.6

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,15 +1,15 @@
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) => {
1
+ var zr = Object.defineProperty, Ir = Object.defineProperties;
2
+ var jr = Object.getOwnPropertyDescriptors;
3
+ var at = Object.getOwnPropertySymbols;
4
+ var Lr = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable;
5
+ var st = (e, t, r) => t in e ? zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Z = (e, t) => {
6
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]);
7
+ Lr.call(t, r) && st(e, r, t[r]);
8
+ if (at)
9
+ for (var r of at(t))
10
+ Rr.call(t, r) && st(e, r, t[r]);
11
11
  return e;
12
- }, ct = (e, t) => jr(e, Lr(t));
12
+ }, lt = (e, t) => Ir(e, jr(t));
13
13
  var de = (e, t, r) => new Promise((n, i) => {
14
14
  var o = (h) => {
15
15
  try {
@@ -26,18 +26,18 @@ var de = (e, t, r) => new Promise((n, i) => {
26
26
  }, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
27
27
  s((r = r.apply(e, t)).next());
28
28
  });
29
- import { n as q, s as Dr, r as Rt, a as Ke, i as Gr, c as Ut, S as Dt, b as Gt, d as ut, e as b, f as j, g as x, h as L, j as X, k as Fr, l as A, m as Vr, o as Xr, p as qr, q as ht, t as Wr, u as Zr, v as Jr, w as ee, x as $e, y as G, z as Qr, A as ge, B as _e, C as ye, D as Y, H as Ft } from "./GeneralAnimationLoading-BtioJF6y.js";
29
+ import { n as W, s as $e, a as Ur, r as Lt, i as Dr, c as Rt, S as Ut, b as Dt, d as j, e as L, f as S, g as ct, h as E, j as X, k as Gr, l as A, m as Fr, o as Vr, p as ut, q as Y, t as _e, u as ye, v as ee, w as et, x as pe, y as G, z as Xr, H as Gt, A as qr, B as Wr, C as Zr, D as Jr } from "./GeneralAnimationLoading-CnE7clu4.js";
30
30
  const $ = [];
31
- function Yr(e, t) {
31
+ function Qr(e, t) {
32
32
  return {
33
- subscribe: He(e, t).subscribe
33
+ subscribe: Pe(e, t).subscribe
34
34
  };
35
35
  }
36
- function He(e, t = q) {
36
+ function Pe(e, t = W) {
37
37
  let r;
38
38
  const n = /* @__PURE__ */ new Set();
39
39
  function i(s) {
40
- if (Ke(e, s) && (e = s, r)) {
40
+ if ($e(e, s) && (e = s, r)) {
41
41
  const h = !$.length;
42
42
  for (const u of n)
43
43
  u[1](), $.push(u, e);
@@ -51,9 +51,9 @@ function He(e, t = q) {
51
51
  function o(s) {
52
52
  i(s(e));
53
53
  }
54
- function a(s, h = q) {
54
+ function a(s, h = W) {
55
55
  const u = [s, h];
56
- return n.add(u), n.size === 1 && (r = t(i, o) || q), s(e), () => {
56
+ return n.add(u), n.size === 1 && (r = t(i, o) || W), s(e), () => {
57
57
  n.delete(u), n.size === 0 && r && (r(), r = null);
58
58
  };
59
59
  }
@@ -64,96 +64,96 @@ function oe(e, t, r) {
64
64
  if (!i.every(Boolean))
65
65
  throw new Error("derived() expects stores as input, got a falsy value");
66
66
  const o = t.length < 2;
67
- return Yr(r, (a, s) => {
67
+ return Qr(r, (a, s) => {
68
68
  let h = !1;
69
69
  const u = [];
70
- let l = 0, d = q;
70
+ let l = 0, d = W;
71
71
  const m = () => {
72
72
  if (l)
73
73
  return;
74
74
  d();
75
75
  const f = t(n ? u[0] : u, a, s);
76
- o ? a(f) : d = Gr(f) ? f : q;
77
- }, y = i.map(
78
- (f, g) => Dr(
76
+ o ? a(f) : d = Dr(f) ? f : W;
77
+ }, v = i.map(
78
+ (f, p) => Ur(
79
79
  f,
80
- (S) => {
81
- u[g] = S, l &= ~(1 << g), h && m();
80
+ (C) => {
81
+ u[p] = C, l &= ~(1 << p), h && m();
82
82
  },
83
83
  () => {
84
- l |= 1 << g;
84
+ l |= 1 << p;
85
85
  }
86
86
  )
87
87
  );
88
88
  return h = !0, m(), function() {
89
- Rt(y), d(), h = !1;
89
+ Lt(v), d(), h = !1;
90
90
  };
91
91
  });
92
92
  }
93
- function Kr(e) {
93
+ function Yr(e) {
94
94
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
95
95
  }
96
- var $r = function(t) {
97
- return en(t) && !tn(t);
96
+ var Kr = function(t) {
97
+ return $r(t) && !en(t);
98
98
  };
99
- function en(e) {
99
+ function $r(e) {
100
100
  return !!e && typeof e == "object";
101
101
  }
102
- function tn(e) {
102
+ function en(e) {
103
103
  var t = Object.prototype.toString.call(e);
104
- return t === "[object RegExp]" || t === "[object Date]" || on(e);
104
+ return t === "[object RegExp]" || t === "[object Date]" || nn(e);
105
105
  }
106
- var rn = typeof Symbol == "function" && Symbol.for, nn = rn ? Symbol.for("react.element") : 60103;
107
- function on(e) {
108
- return e.$$typeof === nn;
106
+ var tn = typeof Symbol == "function" && Symbol.for, rn = tn ? Symbol.for("react.element") : 60103;
107
+ function nn(e) {
108
+ return e.$$typeof === rn;
109
109
  }
110
- function an(e) {
110
+ function on(e) {
111
111
  return Array.isArray(e) ? [] : {};
112
112
  }
113
- function pe(e, t) {
114
- return t.clone !== !1 && t.isMergeableObject(e) ? te(an(e), e, t) : e;
113
+ function ge(e, t) {
114
+ return t.clone !== !1 && t.isMergeableObject(e) ? te(on(e), e, t) : e;
115
115
  }
116
- function sn(e, t, r) {
116
+ function an(e, t, r) {
117
117
  return e.concat(t).map(function(n) {
118
- return pe(n, r);
118
+ return ge(n, r);
119
119
  });
120
120
  }
121
- function ln(e, t) {
121
+ function sn(e, t) {
122
122
  if (!t.customMerge)
123
123
  return te;
124
124
  var r = t.customMerge(e);
125
125
  return typeof r == "function" ? r : te;
126
126
  }
127
- function cn(e) {
127
+ function ln(e) {
128
128
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
129
129
  return Object.propertyIsEnumerable.call(e, t);
130
130
  }) : [];
131
131
  }
132
- function dt(e) {
133
- return Object.keys(e).concat(cn(e));
132
+ function ht(e) {
133
+ return Object.keys(e).concat(ln(e));
134
134
  }
135
- function Vt(e, t) {
135
+ function Ft(e, t) {
136
136
  try {
137
137
  return t in e;
138
138
  } catch (r) {
139
139
  return !1;
140
140
  }
141
141
  }
142
- function un(e, t) {
143
- return Vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
142
+ function cn(e, t) {
143
+ return Ft(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
144
144
  }
145
- function hn(e, t, r) {
145
+ function un(e, t, r) {
146
146
  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) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = pe(t[i], r));
147
+ return r.isMergeableObject(e) && ht(e).forEach(function(i) {
148
+ n[i] = ge(e[i], r);
149
+ }), ht(t).forEach(function(i) {
150
+ cn(e, i) || (Ft(e, i) && r.isMergeableObject(t[i]) ? n[i] = sn(i, r)(e[i], t[i], r) : n[i] = ge(t[i], r));
151
151
  }), n;
152
152
  }
153
153
  function te(e, t, r) {
154
- r = r || {}, r.arrayMerge = r.arrayMerge || sn, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = pe;
154
+ r = r || {}, r.arrayMerge = r.arrayMerge || an, r.isMergeableObject = r.isMergeableObject || Kr, r.cloneUnlessOtherwiseSpecified = ge;
155
155
  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);
156
+ return o ? n ? r.arrayMerge(e, t, r) : un(e, t, r) : ge(t, r);
157
157
  }
158
158
  te.all = function(t, r) {
159
159
  if (!Array.isArray(t))
@@ -162,48 +162,34 @@ te.all = function(t, r) {
162
162
  return te(n, i, r);
163
163
  }, {});
164
164
  };
165
- var dn = te, mn = dn;
166
- const gn = /* @__PURE__ */ Kr(mn);
167
- /*! *****************************************************************************
168
- Copyright (c) Microsoft Corporation.
169
-
170
- Permission to use, copy, modify, and/or distribute this software for any
171
- purpose with or without fee is hereby granted.
172
-
173
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
174
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
175
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
176
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
177
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
178
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
179
- PERFORMANCE OF THIS SOFTWARE.
180
- ***************************************************************************** */
181
- var Fe = function(e, t) {
182
- return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
165
+ var hn = te, dn = hn;
166
+ const mn = /* @__PURE__ */ Yr(dn);
167
+ var Ve = function(e, t) {
168
+ return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
183
169
  r.__proto__ = n;
184
170
  } || function(r, n) {
185
171
  for (var i in n)
186
172
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
187
- }, Fe(e, t);
173
+ }, Ve(e, t);
188
174
  };
189
- function Pe(e, t) {
175
+ function Be(e, t) {
190
176
  if (typeof t != "function" && t !== null)
191
177
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
192
- Fe(e, t);
178
+ Ve(e, t);
193
179
  function r() {
194
180
  this.constructor = e;
195
181
  }
196
182
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
197
183
  }
198
- var H = function() {
199
- return H = Object.assign || function(t) {
184
+ var q = function() {
185
+ return q = Object.assign || function(t) {
200
186
  for (var r, n = 1, i = arguments.length; n < i; n++) {
201
187
  r = arguments[n];
202
188
  for (var o in r)
203
189
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
204
190
  }
205
191
  return t;
206
- }, H.apply(this, arguments);
192
+ }, q.apply(this, arguments);
207
193
  };
208
194
  function pn(e, t) {
209
195
  var r = {};
@@ -214,108 +200,116 @@ function pn(e, t) {
214
200
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
215
201
  return r;
216
202
  }
217
- function je(e, t, r) {
218
- if (arguments.length === 2)
203
+ function Le(e, t, r) {
204
+ if (r || arguments.length === 2)
219
205
  for (var n = 0, i = t.length, o; n < i; n++)
220
206
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
221
- return e.concat(o || t);
207
+ return e.concat(o || Array.prototype.slice.call(t));
222
208
  }
223
- function Le(e, t) {
224
- var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : kn, i = t && t.strategy ? t.strategy : _n;
209
+ function Re(e, t) {
210
+ var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : _n;
225
211
  return i(e, {
226
212
  cache: r,
227
213
  serializer: n
228
214
  });
229
215
  }
230
- function fn(e) {
216
+ function gn(e) {
231
217
  return e == null || typeof e == "number" || typeof e == "boolean";
232
218
  }
233
- function Xt(e, t, r, n) {
234
- var i = fn(n) ? n : r(n), o = t.get(i);
219
+ function fn(e, t, r, n) {
220
+ var i = gn(n) ? n : r(n), o = t.get(i);
235
221
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
236
222
  }
237
- function qt(e, t, r) {
223
+ function Vt(e, t, r) {
238
224
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
239
225
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
240
226
  }
241
- function et(e, t, r, n, i) {
227
+ function Xt(e, t, r, n, i) {
242
228
  return r.bind(t, e, n, i);
243
229
  }
244
230
  function _n(e, t) {
245
- var r = e.length === 1 ? Xt : qt;
246
- return et(e, this, r, t.cache.create(), t.serializer);
231
+ var r = e.length === 1 ? fn : Vt;
232
+ return Xt(e, this, r, t.cache.create(), t.serializer);
247
233
  }
248
234
  function yn(e, t) {
249
- return et(e, this, qt, t.cache.create(), t.serializer);
250
- }
251
- function vn(e, t) {
252
- return et(e, this, Xt, t.cache.create(), t.serializer);
235
+ return Xt(e, this, Vt, t.cache.create(), t.serializer);
253
236
  }
254
- var kn = function() {
237
+ var vn = function() {
255
238
  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 bn = {
239
+ }, kn = (
240
+ /** @class */
241
+ function() {
242
+ function e() {
243
+ this.cache = /* @__PURE__ */ Object.create(null);
244
+ }
245
+ return e.prototype.get = function(t) {
246
+ return this.cache[t];
247
+ }, e.prototype.set = function(t, r) {
248
+ this.cache[t] = r;
249
+ }, e;
250
+ }()
251
+ ), bn = {
267
252
  create: function() {
268
- return new tt();
253
+ return new kn();
269
254
  }
270
- }, Re = {
271
- variadic: yn,
272
- monadic: vn
273
- }, w;
255
+ }, Ue = {
256
+ variadic: yn
257
+ }, Ne = function() {
258
+ return Ne = Object.assign || function(t) {
259
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
260
+ r = arguments[n];
261
+ for (var o in r)
262
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
263
+ }
264
+ return t;
265
+ }, Ne.apply(this, arguments);
266
+ };
267
+ var w;
274
268
  (function(e) {
275
269
  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";
276
270
  })(w || (w = {}));
277
- var B;
271
+ var P;
278
272
  (function(e) {
279
273
  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
- })(B || (B = {}));
274
+ })(P || (P = {}));
281
275
  var re;
282
276
  (function(e) {
283
277
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
284
278
  })(re || (re = {}));
285
- function mt(e) {
286
- return e.type === B.literal;
279
+ function dt(e) {
280
+ return e.type === P.literal;
287
281
  }
288
282
  function En(e) {
289
- return e.type === B.argument;
283
+ return e.type === P.argument;
284
+ }
285
+ function qt(e) {
286
+ return e.type === P.number;
290
287
  }
291
288
  function Wt(e) {
292
- return e.type === B.number;
289
+ return e.type === P.date;
293
290
  }
294
291
  function Zt(e) {
295
- return e.type === B.date;
292
+ return e.type === P.time;
296
293
  }
297
294
  function Jt(e) {
298
- return e.type === B.time;
295
+ return e.type === P.select;
299
296
  }
300
297
  function Qt(e) {
301
- return e.type === B.select;
302
- }
303
- function Yt(e) {
304
- return e.type === B.plural;
298
+ return e.type === P.plural;
305
299
  }
306
300
  function Cn(e) {
307
- return e.type === B.pound;
301
+ return e.type === P.pound;
308
302
  }
309
- function Kt(e) {
310
- return e.type === B.tag;
303
+ function Yt(e) {
304
+ return e.type === P.tag;
311
305
  }
312
- function $t(e) {
306
+ function Kt(e) {
313
307
  return !!(e && typeof e == "object" && e.type === re.number);
314
308
  }
315
- function Ve(e) {
309
+ function Xe(e) {
316
310
  return !!(e && typeof e == "object" && e.type === re.dateTime);
317
311
  }
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;
312
+ var $t = /[ \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
313
  function xn(e) {
320
314
  var t = {};
321
315
  return e.replace(Sn, function(r) {
@@ -407,11 +401,21 @@ function xn(e) {
407
401
  return "";
408
402
  }), t;
409
403
  }
410
- var Mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
411
- function Tn(e) {
404
+ var z = function() {
405
+ return z = Object.assign || function(t) {
406
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
407
+ r = arguments[n];
408
+ for (var o in r)
409
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
410
+ }
411
+ return t;
412
+ }, z.apply(this, arguments);
413
+ };
414
+ var Tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
415
+ function Mn(e) {
412
416
  if (e.length === 0)
413
417
  throw new Error("Number skeleton cannot be empty");
414
- for (var t = e.split(Mn).filter(function(m) {
418
+ for (var t = e.split(Tn).filter(function(m) {
415
419
  return m.length > 0;
416
420
  }), r = [], n = 0, i = t; n < i.length; n++) {
417
421
  var o = i[n], a = o.split("/");
@@ -429,14 +433,14 @@ function Tn(e) {
429
433
  function wn(e) {
430
434
  return e.replace(/^(.*?)-/, "");
431
435
  }
432
- var gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tr = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
436
+ var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
433
437
  function pt(e) {
434
438
  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) {
439
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
436
440
  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
441
  }), t;
438
442
  }
439
- function nr(e) {
443
+ function rr(e) {
440
444
  switch (e) {
441
445
  case "sign-auto":
442
446
  return {
@@ -484,14 +488,14 @@ function An(e) {
484
488
  notation: "scientific"
485
489
  }, e = e.slice(1)), t) {
486
490
  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))
491
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
488
492
  throw new Error("Malformed concise eng/scientific notation");
489
493
  t.minimumIntegerDigits = e.length;
490
494
  }
491
495
  return t;
492
496
  }
493
- function ft(e) {
494
- var t = {}, r = nr(e);
497
+ function gt(e) {
498
+ var t = {}, r = rr(e);
495
499
  return r || t;
496
500
  }
497
501
  function Hn(e) {
@@ -529,13 +533,13 @@ function Hn(e) {
529
533
  t.notation = "compact", t.compactDisplay = "long";
530
534
  continue;
531
535
  case "scientific":
532
- t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
533
- return H(H({}, h), ft(u));
536
+ t = z(z(z({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
537
+ return z(z({}, h), gt(u));
534
538
  }, {}));
535
539
  continue;
536
540
  case "engineering":
537
- t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
538
- return H(H({}, h), ft(u));
541
+ t = z(z(z({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
542
+ return z(z({}, h), gt(u));
539
543
  }, {}));
540
544
  continue;
541
545
  case "notation-simple":
@@ -580,45 +584,45 @@ function Hn(e) {
580
584
  case "integer-width":
581
585
  if (i.options.length > 1)
582
586
  throw new RangeError("integer-width stems only accept a single optional option");
583
- i.options[0].replace(Nn, function(h, u, l, d, m, y) {
587
+ i.options[0].replace(Nn, function(h, u, l, d, m, v) {
584
588
  if (u)
585
589
  t.minimumIntegerDigits = l.length;
586
590
  else {
587
591
  if (d && m)
588
592
  throw new Error("We currently do not support maximum integer digits");
589
- if (y)
593
+ if (v)
590
594
  throw new Error("We currently do not support exact integer digits");
591
595
  }
592
596
  return "";
593
597
  });
594
598
  continue;
595
599
  }
596
- if (rr.test(i.stem)) {
600
+ if (tr.test(i.stem)) {
597
601
  t.minimumIntegerDigits = i.stem.length;
598
602
  continue;
599
603
  }
600
- if (gt.test(i.stem)) {
604
+ if (mt.test(i.stem)) {
601
605
  if (i.options.length > 1)
602
606
  throw new RangeError("Fraction-precision stems only accept a single optional option");
603
- i.stem.replace(gt, function(h, u, l, d, m, y) {
604
- return l === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
607
+ i.stem.replace(mt, function(h, u, l, d, m, v) {
608
+ 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
609
  });
606
610
  var o = i.options[0];
607
- o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), pt(o)));
611
+ o === "w" ? t = z(z({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = z(z({}, t), pt(o)));
608
612
  continue;
609
613
  }
610
- if (tr.test(i.stem)) {
611
- t = H(H({}, t), pt(i.stem));
614
+ if (er.test(i.stem)) {
615
+ t = z(z({}, t), pt(i.stem));
612
616
  continue;
613
617
  }
614
- var a = nr(i.stem);
615
- a && (t = H(H({}, t), a));
618
+ var a = rr(i.stem);
619
+ a && (t = z(z({}, t), a));
616
620
  var s = An(i.stem);
617
- s && (t = H(H({}, t), s));
621
+ s && (t = z(z({}, t), s));
618
622
  }
619
623
  return t;
620
624
  }
621
- var Me = {
625
+ var Te = {
622
626
  "001": [
623
627
  "H",
624
628
  "h"
@@ -2068,23 +2072,23 @@ function Bn(e) {
2068
2072
  }
2069
2073
  var r = e.language, n;
2070
2074
  r !== "root" && (n = e.maximize().region);
2071
- var i = Me[n || ""] || Me[r || ""] || Me["".concat(r, "-001")] || Me["001"];
2075
+ var i = Te[n || ""] || Te[r || ""] || Te["".concat(r, "-001")] || Te["001"];
2072
2076
  return i[0];
2073
2077
  }
2074
- var Ue, zn = new RegExp("^".concat(er.source, "*")), On = new RegExp("".concat(er.source, "*$"));
2078
+ var De, On = new RegExp("^".concat($t.source, "*")), zn = new RegExp("".concat($t.source, "*$"));
2075
2079
  function N(e, t) {
2076
2080
  return { start: e, end: t };
2077
2081
  }
2078
2082
  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, Gn = !!Number.isSafeInteger, Fn = Gn ? Number.isSafeInteger : function(e) {
2079
2083
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2080
- }, Xe = !0;
2084
+ }, qe = !0;
2081
2085
  try {
2082
- var Vn = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2083
- Xe = ((Ue = Vn.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
2086
+ var Vn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2087
+ qe = ((De = Vn.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
2084
2088
  } catch (e) {
2085
- Xe = !1;
2089
+ qe = !1;
2086
2090
  }
2087
- var _t = In ? (
2091
+ var ft = In ? (
2088
2092
  // Native
2089
2093
  function(t, r, n) {
2090
2094
  return t.startsWith(r, n);
@@ -2094,7 +2098,7 @@ var _t = In ? (
2094
2098
  function(t, r, n) {
2095
2099
  return t.slice(n, n + r.length) === r;
2096
2100
  }
2097
- ), qe = jn ? String.fromCodePoint : (
2101
+ ), We = jn ? String.fromCodePoint : (
2098
2102
  // IE11
2099
2103
  function() {
2100
2104
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2106,7 +2110,7 @@ var _t = In ? (
2106
2110
  }
2107
2111
  return n;
2108
2112
  }
2109
- ), yt = (
2113
+ ), _t = (
2110
2114
  // native
2111
2115
  Ln ? Object.fromEntries : (
2112
2116
  // Ponyfill
@@ -2118,7 +2122,7 @@ var _t = In ? (
2118
2122
  return r;
2119
2123
  }
2120
2124
  )
2121
- ), ir = Rn ? (
2125
+ ), nr = Rn ? (
2122
2126
  // Native
2123
2127
  function(t, r) {
2124
2128
  return t.codePointAt(r);
@@ -2140,7 +2144,7 @@ var _t = In ? (
2140
2144
  ) : (
2141
2145
  // Ponyfill
2142
2146
  function(t) {
2143
- return t.replace(zn, "");
2147
+ return t.replace(On, "");
2144
2148
  }
2145
2149
  ), qn = Dn ? (
2146
2150
  // Native
@@ -2150,30 +2154,30 @@ var _t = In ? (
2150
2154
  ) : (
2151
2155
  // Ponyfill
2152
2156
  function(t) {
2153
- return t.replace(On, "");
2157
+ return t.replace(zn, "");
2154
2158
  }
2155
2159
  );
2156
- function or(e, t) {
2160
+ function ir(e, t) {
2157
2161
  return new RegExp(e, t);
2158
2162
  }
2159
- var We;
2160
- if (Xe) {
2161
- var vt = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2162
- We = function(t, r) {
2163
+ var Ze;
2164
+ if (qe) {
2165
+ var yt = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2166
+ Ze = function(t, r) {
2163
2167
  var n;
2164
- vt.lastIndex = r;
2165
- var i = vt.exec(t);
2168
+ yt.lastIndex = r;
2169
+ var i = yt.exec(t);
2166
2170
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2167
2171
  };
2168
2172
  } else
2169
- We = function(t, r) {
2173
+ Ze = function(t, r) {
2170
2174
  for (var n = []; ; ) {
2171
- var i = ir(t, r);
2172
- if (i === void 0 || ar(i) || Qn(i))
2175
+ var i = nr(t, r);
2176
+ if (i === void 0 || or(i) || Qn(i))
2173
2177
  break;
2174
2178
  n.push(i), r += i >= 65536 ? 2 : 1;
2175
2179
  }
2176
- return qe.apply(void 0, n);
2180
+ return We.apply(void 0, n);
2177
2181
  };
2178
2182
  var Wn = (
2179
2183
  /** @class */
@@ -2199,14 +2203,14 @@ var Wn = (
2199
2203
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2200
2204
  var s = this.clonePosition();
2201
2205
  this.bump(), i.push({
2202
- type: B.pound,
2206
+ type: P.pound,
2203
2207
  location: N(s, this.clonePosition())
2204
2208
  });
2205
2209
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2206
2210
  if (n)
2207
2211
  break;
2208
2212
  return this.error(w.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
2209
- } else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
2213
+ } else if (o === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
2210
2214
  var a = this.parseTag(t, r);
2211
2215
  if (a.err)
2212
2216
  return a;
@@ -2227,7 +2231,7 @@ var Wn = (
2227
2231
  if (this.bumpSpace(), this.bumpIf("/>"))
2228
2232
  return {
2229
2233
  val: {
2230
- type: B.literal,
2234
+ type: P.literal,
2231
2235
  value: "<".concat(i, "/>"),
2232
2236
  location: N(n, this.clonePosition())
2233
2237
  },
@@ -2239,12 +2243,12 @@ var Wn = (
2239
2243
  return o;
2240
2244
  var a = o.val, s = this.clonePosition();
2241
2245
  if (this.bumpIf("</")) {
2242
- if (this.isEOF() || !Ze(this.char()))
2246
+ if (this.isEOF() || !Je(this.char()))
2243
2247
  return this.error(w.INVALID_TAG, N(s, this.clonePosition()));
2244
2248
  var h = this.clonePosition(), u = this.parseTagName();
2245
2249
  return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, N(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2246
2250
  val: {
2247
- type: B.tag,
2251
+ type: P.tag,
2248
2252
  value: i,
2249
2253
  children: a,
2250
2254
  location: N(n, this.clonePosition())
@@ -2281,7 +2285,7 @@ var Wn = (
2281
2285
  }
2282
2286
  var h = N(n, this.clonePosition());
2283
2287
  return {
2284
- val: { type: B.literal, value: i, location: h },
2288
+ val: { type: P.literal, value: i, location: h },
2285
2289
  err: null
2286
2290
  };
2287
2291
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -2320,12 +2324,12 @@ var Wn = (
2320
2324
  r.push(n);
2321
2325
  this.bump();
2322
2326
  }
2323
- return qe.apply(void 0, r);
2327
+ return We.apply(void 0, r);
2324
2328
  }, e.prototype.tryParseUnquoted = function(t, r) {
2325
2329
  if (this.isEOF())
2326
2330
  return null;
2327
2331
  var n = this.char();
2328
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
2332
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
2329
2333
  }, e.prototype.parseArgument = function(t, r) {
2330
2334
  var n = this.clonePosition();
2331
2335
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2341,7 +2345,7 @@ var Wn = (
2341
2345
  case 125:
2342
2346
  return this.bump(), {
2343
2347
  val: {
2344
- type: B.argument,
2348
+ type: P.argument,
2345
2349
  // value does not include the opening and closing braces.
2346
2350
  value: i,
2347
2351
  location: N(n, this.clonePosition())
@@ -2354,7 +2358,7 @@ var Wn = (
2354
2358
  return this.error(w.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
2355
2359
  }
2356
2360
  }, e.prototype.parseIdentifierIfPossible = function() {
2357
- var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
2361
+ var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
2358
2362
  this.bumpTo(i);
2359
2363
  var o = this.clonePosition(), a = N(t, o);
2360
2364
  return { value: n, location: a };
@@ -2376,43 +2380,43 @@ var Wn = (
2376
2380
  var m = qn(d.val);
2377
2381
  if (m.length === 0)
2378
2382
  return this.error(w.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
2379
- var y = N(l, this.clonePosition());
2380
- u = { style: m, styleLocation: y };
2383
+ var v = N(l, this.clonePosition());
2384
+ u = { style: m, styleLocation: v };
2381
2385
  }
2382
2386
  var f = this.tryParseArgumentClose(i);
2383
2387
  if (f.err)
2384
2388
  return f;
2385
- var g = N(i, this.clonePosition());
2386
- if (u && _t(u == null ? void 0 : u.style, "::", 0)) {
2387
- var S = Xn(u.style.slice(2));
2389
+ var p = N(i, this.clonePosition());
2390
+ if (u && ft(u == null ? void 0 : u.style, "::", 0)) {
2391
+ var C = Xn(u.style.slice(2));
2388
2392
  if (s === "number") {
2389
- var d = this.parseNumberSkeletonFromString(S, u.styleLocation);
2393
+ var d = this.parseNumberSkeletonFromString(C, u.styleLocation);
2390
2394
  return d.err ? d : {
2391
- val: { type: B.number, value: n, location: g, style: d.val },
2395
+ val: { type: P.number, value: n, location: p, style: d.val },
2392
2396
  err: null
2393
2397
  };
2394
2398
  } else {
2395
- if (S.length === 0)
2396
- return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
2397
- var _ = S;
2398
- this.locale && (_ = Pn(S, this.locale));
2399
+ if (C.length === 0)
2400
+ return this.error(w.EXPECT_DATE_TIME_SKELETON, p);
2401
+ var _ = C;
2402
+ this.locale && (_ = Pn(C, this.locale));
2399
2403
  var m = {
2400
2404
  type: re.dateTime,
2401
2405
  pattern: _,
2402
2406
  location: u.styleLocation,
2403
2407
  parsedOptions: this.shouldParseSkeletons ? xn(_) : {}
2404
- }, v = s === "date" ? B.date : B.time;
2408
+ }, y = s === "date" ? P.date : P.time;
2405
2409
  return {
2406
- val: { type: v, value: n, location: g, style: m },
2410
+ val: { type: y, value: n, location: p, style: m },
2407
2411
  err: null
2408
2412
  };
2409
2413
  }
2410
2414
  }
2411
2415
  return {
2412
2416
  val: {
2413
- type: s === "number" ? B.number : s === "date" ? B.date : B.time,
2417
+ type: s === "number" ? P.number : s === "date" ? P.date : P.time,
2414
2418
  value: n,
2415
- location: g,
2419
+ location: p,
2416
2420
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2417
2421
  },
2418
2422
  err: null
@@ -2421,43 +2425,43 @@ var Wn = (
2421
2425
  case "plural":
2422
2426
  case "selectordinal":
2423
2427
  case "select": {
2424
- var C = this.clonePosition();
2428
+ var x = this.clonePosition();
2425
2429
  if (this.bumpSpace(), !this.bumpIf(","))
2426
- return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(C, H({}, C)));
2430
+ return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, N(x, Ne({}, x)));
2427
2431
  this.bumpSpace();
2428
- var P = this.parseIdentifierIfPossible(), E = 0;
2429
- if (s !== "select" && P.value === "offset") {
2432
+ var H = this.parseIdentifierIfPossible(), b = 0;
2433
+ if (s !== "select" && H.value === "offset") {
2430
2434
  if (!this.bumpIf(":"))
2431
2435
  return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
2432
2436
  this.bumpSpace();
2433
2437
  var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2434
2438
  if (d.err)
2435
2439
  return d;
2436
- this.bumpSpace(), P = this.parseIdentifierIfPossible(), E = d.val;
2440
+ this.bumpSpace(), H = this.parseIdentifierIfPossible(), b = d.val;
2437
2441
  }
2438
- var z = this.tryParsePluralOrSelectOptions(t, s, r, P);
2439
- if (z.err)
2440
- return z;
2442
+ var B = this.tryParsePluralOrSelectOptions(t, s, r, H);
2443
+ if (B.err)
2444
+ return B;
2441
2445
  var f = this.tryParseArgumentClose(i);
2442
2446
  if (f.err)
2443
2447
  return f;
2444
- var Z = N(i, this.clonePosition());
2448
+ var O = N(i, this.clonePosition());
2445
2449
  return s === "select" ? {
2446
2450
  val: {
2447
- type: B.select,
2451
+ type: P.select,
2448
2452
  value: n,
2449
- options: yt(z.val),
2450
- location: Z
2453
+ options: _t(B.val),
2454
+ location: O
2451
2455
  },
2452
2456
  err: null
2453
2457
  } : {
2454
2458
  val: {
2455
- type: B.plural,
2459
+ type: P.plural,
2456
2460
  value: n,
2457
- options: yt(z.val),
2458
- offset: E,
2461
+ options: _t(B.val),
2462
+ offset: b,
2459
2463
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2460
- location: Z
2464
+ location: O
2461
2465
  },
2462
2466
  err: null
2463
2467
  };
@@ -2505,7 +2509,7 @@ var Wn = (
2505
2509
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2506
2510
  var n = [];
2507
2511
  try {
2508
- n = Tn(t);
2512
+ n = Mn(t);
2509
2513
  } catch (i) {
2510
2514
  return this.error(w.INVALID_NUMBER_SKELETON, r);
2511
2515
  }
@@ -2533,20 +2537,20 @@ var Wn = (
2533
2537
  if (h.has(u))
2534
2538
  return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2535
2539
  u === "other" && (a = !0), this.bumpSpace();
2536
- var y = this.clonePosition();
2540
+ var v = this.clonePosition();
2537
2541
  if (!this.bumpIf("{"))
2538
2542
  return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
2539
2543
  var f = this.parseMessage(t + 1, r, n);
2540
2544
  if (f.err)
2541
2545
  return f;
2542
- var g = this.tryParseArgumentClose(y);
2543
- if (g.err)
2544
- return g;
2546
+ var p = this.tryParseArgumentClose(v);
2547
+ if (p.err)
2548
+ return p;
2545
2549
  s.push([
2546
2550
  u,
2547
2551
  {
2548
2552
  value: f.val,
2549
- location: N(y, this.clonePosition())
2553
+ location: N(v, this.clonePosition())
2550
2554
  }
2551
2555
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
2552
2556
  }
@@ -2577,7 +2581,7 @@ var Wn = (
2577
2581
  var t = this.position.offset;
2578
2582
  if (t >= this.message.length)
2579
2583
  throw Error("out of bound");
2580
- var r = ir(this.message, t);
2584
+ var r = nr(this.message, t);
2581
2585
  if (r === void 0)
2582
2586
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2583
2587
  return r;
@@ -2596,7 +2600,7 @@ var Wn = (
2596
2600
  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
2601
  }
2598
2602
  }, e.prototype.bumpIf = function(t) {
2599
- if (_t(this.message, t, this.offset())) {
2603
+ if (ft(this.message, t, this.offset())) {
2600
2604
  for (var r = 0; r < t.length; r++)
2601
2605
  this.bump();
2602
2606
  return !0;
@@ -2618,7 +2622,7 @@ var Wn = (
2618
2622
  break;
2619
2623
  }
2620
2624
  }, e.prototype.bumpSpace = function() {
2621
- for (; !this.isEOF() && ar(this.char()); )
2625
+ for (; !this.isEOF() && or(this.char()); )
2622
2626
  this.bump();
2623
2627
  }, e.prototype.peek = function() {
2624
2628
  if (this.isEOF())
@@ -2628,47 +2632,47 @@ var Wn = (
2628
2632
  }, e;
2629
2633
  }()
2630
2634
  );
2631
- function Ze(e) {
2635
+ function Je(e) {
2632
2636
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2633
2637
  }
2634
2638
  function Zn(e) {
2635
- return Ze(e) || e === 47;
2639
+ return Je(e) || e === 47;
2636
2640
  }
2637
2641
  function Jn(e) {
2638
2642
  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
2643
  }
2640
- function ar(e) {
2644
+ function or(e) {
2641
2645
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
2642
2646
  }
2643
2647
  function Qn(e) {
2644
2648
  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
2649
  }
2646
- function Je(e) {
2650
+ function Qe(e) {
2647
2651
  e.forEach(function(t) {
2648
- if (delete t.location, Qt(t) || Yt(t))
2652
+ if (delete t.location, Jt(t) || Qt(t))
2649
2653
  for (var r in t.options)
2650
- delete t.options[r].location, Je(t.options[r].value);
2654
+ delete t.options[r].location, Qe(t.options[r].value);
2651
2655
  else
2652
- Wt(t) && $t(t.style) || (Zt(t) || Jt(t)) && Ve(t.style) ? delete t.style.location : Kt(t) && Je(t.children);
2656
+ qt(t) && Kt(t.style) || (Wt(t) || Zt(t)) && Xe(t.style) ? delete t.style.location : Yt(t) && Qe(t.children);
2653
2657
  });
2654
2658
  }
2655
2659
  function Yn(e, t) {
2656
- t === void 0 && (t = {}), t = H({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2660
+ t === void 0 && (t = {}), t = Ne({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2657
2661
  var r = new Wn(e, t).parse();
2658
2662
  if (r.err) {
2659
2663
  var n = SyntaxError(w[r.err.kind]);
2660
2664
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
2661
2665
  }
2662
- return t != null && t.captureLocation || Je(r.val), r.val;
2666
+ return t != null && t.captureLocation || Qe(r.val), r.val;
2663
2667
  }
2664
2668
  var ne;
2665
2669
  (function(e) {
2666
2670
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
2667
2671
  })(ne || (ne = {}));
2668
- var Be = (
2672
+ var Oe = (
2669
2673
  /** @class */
2670
2674
  function(e) {
2671
- Pe(t, e);
2675
+ Be(t, e);
2672
2676
  function t(r, n, i) {
2673
2677
  var o = e.call(this, r) || this;
2674
2678
  return o.code = n, o.originalMessage = i, o;
@@ -2677,33 +2681,33 @@ var Be = (
2677
2681
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
2678
2682
  }, t;
2679
2683
  }(Error)
2680
- ), kt = (
2684
+ ), vt = (
2681
2685
  /** @class */
2682
2686
  function(e) {
2683
- Pe(t, e);
2687
+ Be(t, e);
2684
2688
  function t(r, n, i, o) {
2685
2689
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
2686
2690
  }
2687
2691
  return t;
2688
- }(Be)
2692
+ }(Oe)
2689
2693
  ), Kn = (
2690
2694
  /** @class */
2691
2695
  function(e) {
2692
- Pe(t, e);
2696
+ Be(t, e);
2693
2697
  function t(r, n, i) {
2694
2698
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
2695
2699
  }
2696
2700
  return t;
2697
- }(Be)
2701
+ }(Oe)
2698
2702
  ), $n = (
2699
2703
  /** @class */
2700
2704
  function(e) {
2701
- Pe(t, e);
2705
+ Be(t, e);
2702
2706
  function t(r, n) {
2703
2707
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
2704
2708
  }
2705
2709
  return t;
2706
- }(Be)
2710
+ }(Oe)
2707
2711
  ), D;
2708
2712
  (function(e) {
2709
2713
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
@@ -2717,8 +2721,8 @@ function ei(e) {
2717
2721
  function ti(e) {
2718
2722
  return typeof e == "function";
2719
2723
  }
2720
- function Te(e, t, r, n, i, o, a) {
2721
- if (e.length === 1 && mt(e[0]))
2724
+ function Me(e, t, r, n, i, o, a) {
2725
+ if (e.length === 1 && dt(e[0]))
2722
2726
  return [
2723
2727
  {
2724
2728
  type: D.literal,
@@ -2727,7 +2731,7 @@ function Te(e, t, r, n, i, o, a) {
2727
2731
  ];
2728
2732
  for (var s = [], h = 0, u = e; h < u.length; h++) {
2729
2733
  var l = u[h];
2730
- if (mt(l)) {
2734
+ if (dt(l)) {
2731
2735
  s.push({
2732
2736
  type: D.literal,
2733
2737
  value: l.value
@@ -2752,80 +2756,80 @@ function Te(e, t, r, n, i, o, a) {
2752
2756
  });
2753
2757
  continue;
2754
2758
  }
2755
- if (Zt(l)) {
2756
- var y = typeof l.style == "string" ? n.date[l.style] : Ve(l.style) ? l.style.parsedOptions : void 0;
2759
+ if (Wt(l)) {
2760
+ var v = typeof l.style == "string" ? n.date[l.style] : Xe(l.style) ? l.style.parsedOptions : void 0;
2757
2761
  s.push({
2758
2762
  type: D.literal,
2759
- value: r.getDateTimeFormat(t, y).format(m)
2763
+ value: r.getDateTimeFormat(t, v).format(m)
2760
2764
  });
2761
2765
  continue;
2762
2766
  }
2763
- if (Jt(l)) {
2764
- var y = typeof l.style == "string" ? n.time[l.style] : Ve(l.style) ? l.style.parsedOptions : n.time.medium;
2767
+ if (Zt(l)) {
2768
+ var v = typeof l.style == "string" ? n.time[l.style] : Xe(l.style) ? l.style.parsedOptions : n.time.medium;
2765
2769
  s.push({
2766
2770
  type: D.literal,
2767
- value: r.getDateTimeFormat(t, y).format(m)
2771
+ value: r.getDateTimeFormat(t, v).format(m)
2768
2772
  });
2769
2773
  continue;
2770
2774
  }
2771
- if (Wt(l)) {
2772
- var y = typeof l.style == "string" ? n.number[l.style] : $t(l.style) ? l.style.parsedOptions : void 0;
2773
- y && y.scale && (m = m * (y.scale || 1)), s.push({
2775
+ if (qt(l)) {
2776
+ var v = typeof l.style == "string" ? n.number[l.style] : Kt(l.style) ? l.style.parsedOptions : void 0;
2777
+ v && v.scale && (m = m * (v.scale || 1)), s.push({
2774
2778
  type: D.literal,
2775
- value: r.getNumberFormat(t, y).format(m)
2779
+ value: r.getNumberFormat(t, v).format(m)
2776
2780
  });
2777
2781
  continue;
2778
2782
  }
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(E) {
2784
- return E.value;
2783
+ if (Yt(l)) {
2784
+ var f = l.children, p = l.value, C = i[p];
2785
+ if (!ti(C))
2786
+ throw new Kn(p, "function", a);
2787
+ var _ = Me(f, t, r, n, i, o), y = C(_.map(function(b) {
2788
+ return b.value;
2785
2789
  }));
2786
- Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(E) {
2790
+ Array.isArray(y) || (y = [y]), s.push.apply(s, y.map(function(b) {
2787
2791
  return {
2788
- type: typeof E == "string" ? D.literal : D.object,
2789
- value: E
2792
+ type: typeof b == "string" ? D.literal : D.object,
2793
+ value: b
2790
2794
  };
2791
2795
  }));
2792
2796
  }
2793
- if (Qt(l)) {
2794
- var C = l.options[m] || l.options.other;
2795
- if (!C)
2796
- throw new kt(l.value, m, Object.keys(l.options), a);
2797
- s.push.apply(s, Te(C.value, t, r, n, i));
2797
+ if (Jt(l)) {
2798
+ var x = l.options[m] || l.options.other;
2799
+ if (!x)
2800
+ throw new vt(l.value, m, Object.keys(l.options), a);
2801
+ s.push.apply(s, Me(x.value, t, r, n, i));
2798
2802
  continue;
2799
2803
  }
2800
- if (Yt(l)) {
2801
- var C = l.options["=".concat(m)];
2802
- if (!C) {
2804
+ if (Qt(l)) {
2805
+ var x = l.options["=".concat(m)];
2806
+ if (!x) {
2803
2807
  if (!Intl.PluralRules)
2804
- throw new Be(`Intl.PluralRules is not available in this environment.
2808
+ throw new Oe(`Intl.PluralRules is not available in this environment.
2805
2809
  Try polyfilling it using "@formatjs/intl-pluralrules"
2806
2810
  `, ne.MISSING_INTL_API, a);
2807
- var P = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
2808
- C = l.options[P] || l.options.other;
2811
+ var H = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
2812
+ x = l.options[H] || l.options.other;
2809
2813
  }
2810
- if (!C)
2811
- throw new kt(l.value, m, Object.keys(l.options), a);
2812
- s.push.apply(s, Te(C.value, t, r, n, i, m - (l.offset || 0)));
2814
+ if (!x)
2815
+ throw new vt(l.value, m, Object.keys(l.options), a);
2816
+ s.push.apply(s, Me(x.value, t, r, n, i, m - (l.offset || 0)));
2813
2817
  continue;
2814
2818
  }
2815
2819
  }
2816
2820
  return ei(s);
2817
2821
  }
2818
2822
  function ri(e, t) {
2819
- return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
2820
- return r[n] = H(H({}, e[n]), t[n] || {}), r;
2823
+ return t ? q(q(q({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
2824
+ return r[n] = q(q({}, e[n]), t[n] || {}), r;
2821
2825
  }, {})) : e;
2822
2826
  }
2823
2827
  function ni(e, t) {
2824
2828
  return t ? Object.keys(e).reduce(function(r, n) {
2825
2829
  return r[n] = ri(e[n], t[n]), r;
2826
- }, H({}, e)) : e;
2830
+ }, q({}, e)) : e;
2827
2831
  }
2828
- function De(e) {
2832
+ function Ge(e) {
2829
2833
  return {
2830
2834
  create: function() {
2831
2835
  return {
@@ -2845,29 +2849,29 @@ function ii(e) {
2845
2849
  dateTime: {},
2846
2850
  pluralRules: {}
2847
2851
  }), {
2848
- getNumberFormat: Le(function() {
2852
+ getNumberFormat: Re(function() {
2849
2853
  for (var t, r = [], n = 0; n < arguments.length; n++)
2850
2854
  r[n] = arguments[n];
2851
- return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], r, !1)))();
2855
+ return new ((t = Intl.NumberFormat).bind.apply(t, Le([void 0], r, !1)))();
2852
2856
  }, {
2853
- cache: De(e.number),
2854
- strategy: Re.variadic
2857
+ cache: Ge(e.number),
2858
+ strategy: Ue.variadic
2855
2859
  }),
2856
- getDateTimeFormat: Le(function() {
2860
+ getDateTimeFormat: Re(function() {
2857
2861
  for (var t, r = [], n = 0; n < arguments.length; n++)
2858
2862
  r[n] = arguments[n];
2859
- return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], r, !1)))();
2863
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Le([void 0], r, !1)))();
2860
2864
  }, {
2861
- cache: De(e.dateTime),
2862
- strategy: Re.variadic
2865
+ cache: Ge(e.dateTime),
2866
+ strategy: Ue.variadic
2863
2867
  }),
2864
- getPluralRules: Le(function() {
2868
+ getPluralRules: Re(function() {
2865
2869
  for (var t, r = [], n = 0; n < arguments.length; n++)
2866
2870
  r[n] = arguments[n];
2867
- return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], r, !1)))();
2871
+ return new ((t = Intl.PluralRules).bind.apply(t, Le([void 0], r, !1)))();
2868
2872
  }, {
2869
- cache: De(e.pluralRules),
2870
- strategy: Re.variadic
2873
+ cache: Ge(e.pluralRules),
2874
+ strategy: Ue.variadic
2871
2875
  })
2872
2876
  };
2873
2877
  }
@@ -2890,7 +2894,7 @@ var oi = (
2890
2894
  }, []);
2891
2895
  return l.length <= 1 ? l[0] || "" : l;
2892
2896
  }, this.formatToParts = function(h) {
2893
- return Te(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
2897
+ return Me(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
2894
2898
  }, this.resolvedOptions = function() {
2895
2899
  var h;
2896
2900
  return {
@@ -2904,7 +2908,7 @@ var oi = (
2904
2908
  var a = i || {};
2905
2909
  a.formatters;
2906
2910
  var s = pn(a, ["formatters"]);
2907
- this.ast = e.__parse(t, H(H({}, s), { locale: this.resolvedLocale }));
2911
+ this.ast = e.__parse(t, q(q({}, s), { locale: this.resolvedLocale }));
2908
2912
  } else
2909
2913
  this.ast = t;
2910
2914
  if (!Array.isArray(this.ast))
@@ -3004,7 +3008,7 @@ function ai(e, t) {
3004
3008
  n = void 0;
3005
3009
  return n;
3006
3010
  }
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) => {
3011
+ const Q = {}, si = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), ar = (e, t) => {
3008
3012
  if (t == null)
3009
3013
  return;
3010
3014
  if (t in Q && e in Q[t])
@@ -3016,16 +3020,16 @@ const Q = {}, si = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][
3016
3020
  return si(e, t, o);
3017
3021
  }
3018
3022
  };
3019
- let rt;
3020
- const ve = He({});
3023
+ let tt;
3024
+ const ve = Pe({});
3021
3025
  function li(e) {
3022
- return rt[e] || null;
3026
+ return tt[e] || null;
3023
3027
  }
3024
- function lr(e) {
3025
- return e in rt;
3028
+ function sr(e) {
3029
+ return e in tt;
3026
3030
  }
3027
3031
  function ci(e, t) {
3028
- if (!lr(e))
3032
+ if (!sr(e))
3029
3033
  return null;
3030
3034
  const r = li(e);
3031
3035
  return ai(r, t);
@@ -3036,47 +3040,47 @@ function ui(e) {
3036
3040
  const t = ze(e);
3037
3041
  for (let r = 0; r < t.length; r++) {
3038
3042
  const n = t[r];
3039
- if (lr(n))
3043
+ if (sr(n))
3040
3044
  return n;
3041
3045
  }
3042
3046
  }
3043
- function cr(e, ...t) {
3044
- delete Q[e], ve.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
3047
+ function lr(e, ...t) {
3048
+ delete Q[e], ve.update((r) => (r[e] = mn.all([r[e] || {}, ...t]), r));
3045
3049
  }
3046
3050
  oe(
3047
3051
  [ve],
3048
3052
  ([e]) => Object.keys(e)
3049
3053
  );
3050
- ve.subscribe((e) => rt = e);
3054
+ ve.subscribe((e) => tt = e);
3051
3055
  const we = {};
3052
3056
  function hi(e, t) {
3053
3057
  we[e].delete(t), we[e].size === 0 && delete we[e];
3054
3058
  }
3055
- function ur(e) {
3059
+ function cr(e) {
3056
3060
  return we[e];
3057
3061
  }
3058
3062
  function di(e) {
3059
3063
  return ze(e).map((t) => {
3060
- const r = ur(t);
3064
+ const r = cr(t);
3061
3065
  return [t, r ? [...r] : []];
3062
3066
  }).filter(([, t]) => t.length > 0);
3063
3067
  }
3064
- function Qe(e) {
3068
+ function Ye(e) {
3065
3069
  return e == null ? !1 : ze(e).some(
3066
3070
  (t) => {
3067
3071
  var r;
3068
- return (r = ur(t)) == null ? void 0 : r.size;
3072
+ return (r = cr(t)) == null ? void 0 : r.size;
3069
3073
  }
3070
3074
  );
3071
3075
  }
3072
3076
  function mi(e, t) {
3073
3077
  return Promise.all(
3074
3078
  t.map((n) => (hi(e, n), n().then((i) => i.default || i)))
3075
- ).then((n) => cr(e, ...n));
3079
+ ).then((n) => lr(e, ...n));
3076
3080
  }
3077
3081
  const me = {};
3078
- function hr(e) {
3079
- if (!Qe(e))
3082
+ function ur(e) {
3083
+ if (!Ye(e))
3080
3084
  return e in me ? me[e] : Promise.resolve();
3081
3085
  const t = di(e);
3082
3086
  return me[e] = Promise.all(
@@ -3084,12 +3088,12 @@ function hr(e) {
3084
3088
  ([r, n]) => mi(r, n)
3085
3089
  )
3086
3090
  ).then(() => {
3087
- if (Qe(e))
3088
- return hr(e);
3091
+ if (Ye(e))
3092
+ return ur(e);
3089
3093
  delete me[e];
3090
3094
  }), me[e];
3091
3095
  }
3092
- const gi = {
3096
+ const pi = {
3093
3097
  number: {
3094
3098
  scientific: { notation: "scientific" },
3095
3099
  engineering: { notation: "engineering" },
@@ -3118,78 +3122,78 @@ const gi = {
3118
3122
  timeZoneName: "short"
3119
3123
  }
3120
3124
  }
3121
- }, pi = {
3125
+ }, gi = {
3122
3126
  fallbackLocale: null,
3123
3127
  loadingDelay: 200,
3124
- formats: gi,
3128
+ formats: pi,
3125
3129
  warnOnMissingMessages: !0,
3126
3130
  handleMissingMessage: void 0,
3127
3131
  ignoreTag: !0
3128
- }, fi = pi;
3132
+ }, fi = gi;
3129
3133
  function ie() {
3130
3134
  return fi;
3131
3135
  }
3132
- const Ge = He(!1);
3133
- var _i = Object.defineProperty, yi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, ki = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
3136
+ const Fe = Pe(!1);
3137
+ var _i = Object.defineProperty, yi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, kt = Object.getOwnPropertySymbols, ki = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
3134
3138
  for (var r in t || (t = {}))
3135
- ki.call(t, r) && Et(e, r, t[r]);
3136
- if (bt)
3137
- for (var r of bt(t))
3138
- bi.call(t, r) && Et(e, r, t[r]);
3139
+ ki.call(t, r) && bt(e, r, t[r]);
3140
+ if (kt)
3141
+ for (var r of kt(t))
3142
+ bi.call(t, r) && bt(e, r, t[r]);
3139
3143
  return e;
3140
3144
  }, Ci = (e, t) => yi(e, vi(t));
3141
- let Ye;
3142
- const Ne = He(null);
3143
- function Ct(e) {
3145
+ let Ke;
3146
+ const Ae = Pe(null);
3147
+ function Et(e) {
3144
3148
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3145
3149
  }
3146
3150
  function ze(e, t = ie().fallbackLocale) {
3147
- const r = Ct(e);
3148
- return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
3151
+ const r = Et(e);
3152
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
3149
3153
  }
3150
3154
  function K() {
3151
- return Ye != null ? Ye : void 0;
3155
+ return Ke != null ? Ke : void 0;
3152
3156
  }
3153
- Ne.subscribe((e) => {
3154
- Ye = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3157
+ Ae.subscribe((e) => {
3158
+ Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3155
3159
  });
3156
3160
  const Si = (e) => {
3157
- if (e && ui(e) && Qe(e)) {
3161
+ if (e && ui(e) && Ye(e)) {
3158
3162
  const { loadingDelay: t } = ie();
3159
3163
  let r;
3160
3164
  return typeof window != "undefined" && K() != null && t ? r = window.setTimeout(
3161
- () => Ge.set(!0),
3165
+ () => Fe.set(!0),
3162
3166
  t
3163
- ) : Ge.set(!0), hr(e).then(() => {
3164
- Ne.set(e);
3167
+ ) : Fe.set(!0), ur(e).then(() => {
3168
+ Ae.set(e);
3165
3169
  }).finally(() => {
3166
- clearTimeout(r), Ge.set(!1);
3170
+ clearTimeout(r), Fe.set(!1);
3167
3171
  });
3168
3172
  }
3169
- return Ne.set(e);
3170
- }, ae = Ci(Ei({}, Ne), {
3173
+ return Ae.set(e);
3174
+ }, ae = Ci(Ei({}, Ae), {
3171
3175
  set: Si
3172
- }), Oe = (e) => {
3176
+ }), Ie = (e) => {
3173
3177
  const t = /* @__PURE__ */ Object.create(null);
3174
3178
  return (n) => {
3175
3179
  const i = JSON.stringify(n);
3176
3180
  return i in t ? t[i] : t[i] = e(n);
3177
3181
  };
3178
3182
  };
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) => {
3183
+ var xi = Object.defineProperty, He = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
3180
3184
  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]);
3185
+ hr.call(t, r) && Ct(e, r, t[r]);
3186
+ if (He)
3187
+ for (var r of He(t))
3188
+ dr.call(t, r) && Ct(e, r, t[r]);
3185
3189
  return e;
3186
3190
  }, se = (e, t) => {
3187
3191
  var r = {};
3188
3192
  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]);
3193
+ hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3194
+ if (e != null && He)
3195
+ for (var n of He(e))
3196
+ t.indexOf(n) < 0 && dr.call(e, n) && (r[n] = e[n]);
3193
3197
  return r;
3194
3198
  };
3195
3199
  const fe = (e, t) => {
@@ -3197,21 +3201,21 @@ const fe = (e, t) => {
3197
3201
  if (e in r && t in r[e])
3198
3202
  return r[e][t];
3199
3203
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3200
- }, Mi = Oe(
3204
+ }, Ti = Ie(
3201
3205
  (e) => {
3202
3206
  var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3203
3207
  if (r == null)
3204
3208
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3205
3209
  return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
3206
3210
  }
3207
- ), Ti = Oe(
3211
+ ), Mi = Ie(
3208
3212
  (e) => {
3209
3213
  var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3210
3214
  if (r == null)
3211
3215
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3212
3216
  return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
3213
3217
  }
3214
- ), wi = Oe(
3218
+ ), wi = Ie(
3215
3219
  (e) => {
3216
3220
  var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3217
3221
  if (r == null)
@@ -3226,22 +3230,22 @@ const fe = (e, t) => {
3226
3230
  } = t, n = se(t, [
3227
3231
  "locale"
3228
3232
  ]);
3229
- return Mi(nt({ locale: r }, n));
3233
+ return Ti(rt({ locale: r }, n));
3230
3234
  }, Ai = (e = {}) => {
3231
3235
  var t = e, {
3232
3236
  locale: r = K()
3233
3237
  } = t, n = se(t, [
3234
3238
  "locale"
3235
3239
  ]);
3236
- return Ti(nt({ locale: r }, n));
3240
+ return Mi(rt({ locale: r }, n));
3237
3241
  }, Hi = (e = {}) => {
3238
3242
  var t = e, {
3239
3243
  locale: r = K()
3240
3244
  } = t, n = se(t, [
3241
3245
  "locale"
3242
3246
  ]);
3243
- return wi(nt({ locale: r }, n));
3244
- }, Pi = Oe(
3247
+ return wi(rt({ locale: r }, n));
3248
+ }, Pi = Ie(
3245
3249
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3246
3250
  (e, t = K()) => new oi(e, t, ie().formats, {
3247
3251
  ignoreTag: ie().ignoreTag
@@ -3259,7 +3263,7 @@ const fe = (e, t) => {
3259
3263
  throw new Error(
3260
3264
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3261
3265
  );
3262
- let l = sr(e, h);
3266
+ let l = ar(e, h);
3263
3267
  if (!l)
3264
3268
  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;
3265
3269
  else if (typeof l != "string")
@@ -3278,18 +3282,18 @@ const fe = (e, t) => {
3278
3282
  );
3279
3283
  }
3280
3284
  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);
3285
+ }, Oi = (e, t) => Hi(t).format(e), zi = (e, t) => Ai(t).format(e), Ii = (e, t) => Ni(t).format(e), ji = (e, t = K()) => ar(e, t), Li = oe([ae, ve], () => Bi);
3283
3286
  oe([ae], () => Oi);
3287
+ oe([ae], () => zi);
3284
3288
  oe([ae], () => Ii);
3285
3289
  oe([ae, ve], () => ji);
3286
- function xt(e, t) {
3287
- cr(e, t);
3290
+ function St(e, t) {
3291
+ lr(e, t);
3288
3292
  }
3289
3293
  function Ri(e) {
3290
3294
  ae.set(e);
3291
3295
  }
3292
- const Mt = {
3296
+ const xt = {
3293
3297
  en: {
3294
3298
  invalidUrl: "Failed to construct 'URL': Invalid URL",
3295
3299
  fetchConsentsError: "Error: Could not fetch consents.",
@@ -3861,7 +3865,7 @@ if (typeof window != "undefined") {
3861
3865
  }
3862
3866
  };
3863
3867
  };
3864
- customElements.define = e(customElements.define), import("./GeneralAnimationLoading-BtioJF6y.js").then((t) => t.G).then(({ default: t }) => {
3868
+ customElements.define = e(customElements.define), import("./GeneralAnimationLoading-CnE7clu4.js").then((t) => t.G).then(({ default: t }) => {
3865
3869
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
3866
3870
  });
3867
3871
  }
@@ -3869,37 +3873,37 @@ function Ui(e) {
3869
3873
  let t, r;
3870
3874
  return {
3871
3875
  c() {
3872
- t = ut("svg"), r = ut("path"), b(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"), b(t, "xmlns", "http://www.w3.org/2000/svg"), b(t, "viewBox", "0 0 512 512");
3876
+ t = ct("svg"), r = ct("path"), E(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), E(t, "xmlns", "http://www.w3.org/2000/svg"), E(t, "viewBox", "0 0 512 512");
3873
3877
  },
3874
3878
  m(n, i) {
3875
- j(n, t, i), x(t, r);
3879
+ L(n, t, i), S(t, r);
3876
3880
  },
3877
- p: q,
3878
- i: q,
3879
- o: q,
3881
+ p: W,
3882
+ i: W,
3883
+ o: W,
3880
3884
  d(n) {
3881
- n && L(t);
3885
+ n && j(t);
3882
3886
  }
3883
3887
  };
3884
3888
  }
3885
- class Di extends Dt {
3889
+ class Di extends Ut {
3886
3890
  constructor(t) {
3887
- super(), Gt(this, t, null, Ui, Ke, {});
3891
+ super(), Dt(this, t, null, Ui, $e, {});
3888
3892
  }
3889
3893
  }
3890
- customElements.define("circle-exclamation-icon", Ut(Di, {}, [], [], !0));
3894
+ customElements.define("circle-exclamation-icon", Rt(Di, {}, [], [], !0));
3891
3895
  function Gi(e) {
3892
- Fr(e, "svelte-etk3ty", '.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');
3896
+ Gr(e, "svelte-etk3ty", '.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');
3893
3897
  }
3894
3898
  function Tt(e, t, r) {
3895
3899
  const n = e.slice();
3896
3900
  return n[64] = t[r], n;
3897
3901
  }
3898
- function wt(e, t, r) {
3902
+ function Mt(e, t, r) {
3899
3903
  const n = e.slice();
3900
3904
  return n[61] = t[r], n[62] = t, n[63] = r, n;
3901
3905
  }
3902
- function Nt(e, t, r) {
3906
+ function wt(e, t, r) {
3903
3907
  const n = e.slice();
3904
3908
  return n[64] = t[r], n;
3905
3909
  }
@@ -3909,16 +3913,16 @@ function Fi(e) {
3909
3913
  e[9]
3910
3914
  ), i = [];
3911
3915
  for (let o = 0; o < n.length; o += 1)
3912
- i[o] = At(Tt(e, n, o));
3916
+ i[o] = Nt(Tt(e, n, o));
3913
3917
  return {
3914
3918
  c() {
3915
3919
  t = A("div"), r = A("form");
3916
3920
  for (let o = 0; o < i.length; o += 1)
3917
3921
  i[o].c();
3918
- b(r, "class", "checkbox svelte-etk3ty"), b(t, "class", "legacyStyle");
3922
+ E(r, "class", "checkbox svelte-etk3ty"), E(t, "class", "legacyStyle");
3919
3923
  },
3920
3924
  m(o, a) {
3921
- j(o, t, a), x(t, r);
3925
+ L(o, t, a), S(t, r);
3922
3926
  for (let s = 0; s < i.length; s += 1)
3923
3927
  i[s] && i[s].m(r, null);
3924
3928
  e[31](r);
@@ -3933,7 +3937,7 @@ function Fi(e) {
3933
3937
  let s;
3934
3938
  for (s = 0; s < n.length; s += 1) {
3935
3939
  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));
3940
+ i[s] ? i[s].p(h, a) : (i[s] = Nt(h), i[s].c(), i[s].m(r, null));
3937
3941
  }
3938
3942
  for (; s < i.length; s += 1)
3939
3943
  i[s].d(1);
@@ -3941,7 +3945,7 @@ function Fi(e) {
3941
3945
  }
3942
3946
  },
3943
3947
  d(o) {
3944
- o && L(t), $e(i, o), e[31](null);
3948
+ o && j(t), et(i, o), e[31](null);
3945
3949
  }
3946
3950
  };
3947
3951
  }
@@ -3953,63 +3957,63 @@ function Vi(e) {
3953
3957
  ), r, n, i, o = (
3954
3958
  /*$_*/
3955
3959
  (e[16]("saveButtonContent") || "Save Consents") + ""
3956
- ), a, s, h, u, l, d = t && Ht(e), m = ee(
3960
+ ), a, s, h, u, l, d = t && At(e), m = ee(
3957
3961
  /*consentsCategories*/
3958
3962
  e[8]
3959
- ), y = [];
3960
- for (let g = 0; g < m.length; g += 1)
3961
- y[g] = jt(wt(e, m, g));
3963
+ ), v = [];
3964
+ for (let p = 0; p < m.length; p += 1)
3965
+ v[p] = It(Mt(e, m, p));
3962
3966
  let f = (
3963
3967
  /*errorMessage*/
3964
- e[6] && Lt(e)
3968
+ e[6] && jt(e)
3965
3969
  );
3966
3970
  return {
3967
3971
  c() {
3968
3972
  d && d.c(), r = G();
3969
- for (let g = 0; g < y.length; g += 1)
3970
- y[g].c();
3971
- n = G(), i = A("button"), s = G(), f && f.c(), h = Qr(), b(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
3973
+ for (let p = 0; p < v.length; p += 1)
3974
+ v[p].c();
3975
+ n = G(), i = A("button"), s = G(), f && f.c(), h = Xr(), E(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
3972
3976
  e[14];
3973
3977
  },
3974
- m(g, S) {
3975
- d && d.m(g, S), j(g, r, S);
3976
- for (let _ = 0; _ < y.length; _ += 1)
3977
- y[_] && y[_].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(
3978
+ m(p, C) {
3979
+ d && d.m(p, C), L(p, r, C);
3980
+ for (let _ = 0; _ < v.length; _ += 1)
3981
+ v[_] && v[_].m(p, C);
3982
+ L(p, n, C), L(p, i, C), i.innerHTML = o, L(p, s, C), f && f.m(p, C), L(p, h, C), u || (l = pe(
3979
3983
  i,
3980
3984
  "click",
3981
3985
  /*saveChanges*/
3982
3986
  e[17]
3983
3987
  ), u = !0);
3984
3988
  },
3985
- p(g, S) {
3986
- if (S[0] & /*$_*/
3989
+ p(p, C) {
3990
+ if (C[0] & /*$_*/
3987
3991
  65536 && (t = /*$_*/
3988
- 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*/
3992
+ p[16]("title") || /*$_*/
3993
+ p[16]("description")), t ? d ? d.p(p, C) : (d = At(p), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), C[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
3990
3994
  867088) {
3991
3995
  m = ee(
3992
3996
  /*consentsCategories*/
3993
- g[8]
3997
+ p[8]
3994
3998
  );
3995
3999
  let _;
3996
4000
  for (_ = 0; _ < m.length; _ += 1) {
3997
- const v = wt(g, m, _);
3998
- y[_] ? y[_].p(v, S) : (y[_] = jt(v), y[_].c(), y[_].m(n.parentNode, n));
4001
+ const y = Mt(p, m, _);
4002
+ v[_] ? v[_].p(y, C) : (v[_] = It(y), v[_].c(), v[_].m(n.parentNode, n));
3999
4003
  }
4000
- for (; _ < y.length; _ += 1)
4001
- y[_].d(1);
4002
- y.length = m.length;
4004
+ for (; _ < v.length; _ += 1)
4005
+ v[_].d(1);
4006
+ v.length = m.length;
4003
4007
  }
4004
- S[0] & /*$_*/
4008
+ C[0] & /*$_*/
4005
4009
  65536 && o !== (o = /*$_*/
4006
- (g[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
4010
+ (p[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), C[0] & /*isValid*/
4007
4011
  16384 && a !== (a = !/*isValid*/
4008
- 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);
4012
+ p[14]) && (i.disabled = a), /*errorMessage*/
4013
+ p[6] ? f ? f.p(p, C) : (f = jt(p), f.c(), f.m(h.parentNode, h)) : f && (f.d(1), f = null);
4010
4014
  },
4011
- d(g) {
4012
- g && (L(r), L(n), L(i), L(s), L(h)), d && d.d(g), $e(y, g), f && f.d(g), u = !1, l();
4015
+ d(p) {
4016
+ p && (j(r), j(n), j(i), j(s), j(h)), d && d.d(p), et(v, p), f && f.d(p), u = !1, l();
4013
4017
  }
4014
4018
  };
4015
4019
  }
@@ -4017,24 +4021,24 @@ function Xi(e) {
4017
4021
  let t, r, n;
4018
4022
  return {
4019
4023
  c() {
4020
- t = A("div"), r = A("strong"), n = _e(
4024
+ t = A("div"), r = A("strong"), n = ye(
4021
4025
  /*fatalError*/
4022
4026
  e[7]
4023
- ), b(r, "class", "ErrorMessage svelte-etk3ty"), b(t, "class", "ContainerCenter svelte-etk3ty");
4027
+ ), E(r, "class", "ErrorMessage svelte-etk3ty"), E(t, "class", "ContainerCenter svelte-etk3ty");
4024
4028
  },
4025
4029
  m(i, o) {
4026
- j(i, t, o), x(t, r), x(r, n);
4030
+ L(i, t, o), S(t, r), S(r, n);
4027
4031
  },
4028
4032
  p(i, o) {
4029
4033
  o[0] & /*fatalError*/
4030
- 128 && ye(
4034
+ 128 && _e(
4031
4035
  n,
4032
4036
  /*fatalError*/
4033
4037
  i[7]
4034
4038
  );
4035
4039
  },
4036
4040
  d(i) {
4037
- i && L(t);
4041
+ i && j(t);
4038
4042
  }
4039
4043
  };
4040
4044
  }
@@ -4060,7 +4064,7 @@ function qi(e) {
4060
4064
  );
4061
4065
  },
4062
4066
  m(r, n) {
4063
- j(r, t, n);
4067
+ L(r, t, n);
4064
4068
  },
4065
4069
  p(r, n) {
4066
4070
  n[0] & /*clientstyling*/
@@ -4084,11 +4088,11 @@ function qi(e) {
4084
4088
  );
4085
4089
  },
4086
4090
  d(r) {
4087
- r && L(t);
4091
+ r && j(t);
4088
4092
  }
4089
4093
  };
4090
4094
  }
4091
- function At(e) {
4095
+ function Nt(e) {
4092
4096
  let t, r, n, i, o, a, s, h, u = (
4093
4097
  /*$_*/
4094
4098
  (e[16](`${/*consent*/
@@ -4097,135 +4101,135 @@ function At(e) {
4097
4101
  ), l = (
4098
4102
  /*consent*/
4099
4103
  e[64].mustAccept ? " *" : ""
4100
- ), d, m, y, f, g, S, _, v, C;
4101
- function P(...E) {
4104
+ ), d, m, v, f, p, C, _, y, x;
4105
+ function H(...b) {
4102
4106
  return (
4103
4107
  /*input_handler_1*/
4104
4108
  e[30](
4105
4109
  /*consent*/
4106
4110
  e[64],
4107
- ...E
4111
+ ...b
4108
4112
  )
4109
4113
  );
4110
4114
  }
4111
4115
  return {
4112
4116
  c() {
4113
- t = A("div"), r = A("input"), o = G(), a = A("label"), s = A("div"), h = new Ft(!1), d = _e(l), y = G(), f = A("small"), S = G(), b(r, "class", "checkbox__input svelte-etk3ty"), b(r, "type", "checkbox"), r.checked = n = /*consent*/
4114
- e[64].status === "1", b(r, "id", i = `${/*consent*/
4115
- e[64].tagCode}__input`), h.a = d, b(s, "class", "checkbox__label-text svelte-etk3ty"), b(a, "class", "checkbox__label svelte-etk3ty"), b(a, "for", m = `${/*consent*/
4116
- e[64].tagCode}__input`), b(f, "class", "checkbox__error-message svelte-etk3ty"), b(f, "id", g = "checkBoxError__" + /*consent*/
4117
- e[64].tagCode), b(t, "class", _ = "checkbox__wrapper " + /*consent*/
4117
+ t = A("div"), r = A("input"), o = G(), a = A("label"), s = A("div"), h = new Gt(!1), d = ye(l), v = G(), f = A("small"), C = G(), E(r, "class", "checkbox__input svelte-etk3ty"), E(r, "type", "checkbox"), r.checked = n = /*consent*/
4118
+ e[64].status === "1", E(r, "id", i = `${/*consent*/
4119
+ e[64].tagCode}__input`), h.a = d, E(s, "class", "checkbox__label-text svelte-etk3ty"), E(a, "class", "checkbox__label svelte-etk3ty"), E(a, "for", m = `${/*consent*/
4120
+ e[64].tagCode}__input`), E(f, "class", "checkbox__error-message svelte-etk3ty"), E(f, "id", p = "checkBoxError__" + /*consent*/
4121
+ e[64].tagCode), E(t, "class", _ = "checkbox__wrapper " + /*consent*/
4118
4122
  e[64].tagCode + "__input svelte-etk3ty");
4119
4123
  },
4120
- m(E, z) {
4121
- j(E, t, z), x(t, r), x(t, o), x(t, a), x(a, s), h.m(u, s), x(s, d), x(t, y), x(t, f), x(t, S), v || (C = ge(r, "input", P), v = !0);
4124
+ m(b, B) {
4125
+ L(b, t, B), S(t, r), S(t, o), S(t, a), S(a, s), h.m(u, s), S(s, d), S(t, v), S(t, f), S(t, C), y || (x = pe(r, "input", H), y = !0);
4122
4126
  },
4123
- p(E, z) {
4124
- e = E, z[0] & /*playerConsents*/
4127
+ p(b, B) {
4128
+ e = b, B[0] & /*playerConsents*/
4125
4129
  512 && n !== (n = /*consent*/
4126
- e[64].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
4130
+ e[64].status === "1") && (r.checked = n), B[0] & /*playerConsents*/
4127
4131
  512 && i !== (i = `${/*consent*/
4128
- e[64].tagCode}__input`) && b(r, "id", i), z[0] & /*$_, playerConsents*/
4132
+ e[64].tagCode}__input`) && E(r, "id", i), B[0] & /*$_, playerConsents*/
4129
4133
  66048 && u !== (u = /*$_*/
4130
4134
  (e[16](`${/*consent*/
4131
4135
  e[64].tagCode}__description`) || /*consent*/
4132
- e[64].tagCode) + "") && h.p(u), z[0] & /*playerConsents*/
4136
+ e[64].tagCode) + "") && h.p(u), B[0] & /*playerConsents*/
4133
4137
  512 && l !== (l = /*consent*/
4134
- e[64].mustAccept ? " *" : "") && ye(d, l), z[0] & /*playerConsents*/
4138
+ e[64].mustAccept ? " *" : "") && _e(d, l), B[0] & /*playerConsents*/
4135
4139
  512 && m !== (m = `${/*consent*/
4136
- e[64].tagCode}__input`) && b(a, "for", m), z[0] & /*playerConsents*/
4137
- 512 && g !== (g = "checkBoxError__" + /*consent*/
4138
- e[64].tagCode) && b(f, "id", g), z[0] & /*playerConsents*/
4140
+ e[64].tagCode}__input`) && E(a, "for", m), B[0] & /*playerConsents*/
4141
+ 512 && p !== (p = "checkBoxError__" + /*consent*/
4142
+ e[64].tagCode) && E(f, "id", p), B[0] & /*playerConsents*/
4139
4143
  512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
4140
- e[64].tagCode + "__input svelte-etk3ty") && b(t, "class", _);
4144
+ e[64].tagCode + "__input svelte-etk3ty") && E(t, "class", _);
4141
4145
  },
4142
- d(E) {
4143
- E && L(t), v = !1, C();
4146
+ d(b) {
4147
+ b && j(t), y = !1, x();
4144
4148
  }
4145
4149
  };
4146
4150
  }
4147
- function Ht(e) {
4151
+ function At(e) {
4148
4152
  let t, r = (
4149
4153
  /*$_*/
4150
4154
  e[16]("title")
4151
4155
  ), n, i = (
4152
4156
  /*$_*/
4153
4157
  e[16]("description")
4154
- ), o = r && Pt(e), a = i && Bt(e);
4158
+ ), o = r && Ht(e), a = i && Pt(e);
4155
4159
  return {
4156
4160
  c() {
4157
- t = A("div"), o && o.c(), n = G(), a && a.c(), b(t, "class", "PlayerConsentsHeader svelte-etk3ty");
4161
+ t = A("div"), o && o.c(), n = G(), a && a.c(), E(t, "class", "PlayerConsentsHeader svelte-etk3ty");
4158
4162
  },
4159
4163
  m(s, h) {
4160
- j(s, t, h), o && o.m(t, null), x(t, n), a && a.m(t, null);
4164
+ L(s, t, h), o && o.m(t, null), S(t, n), a && a.m(t, null);
4161
4165
  },
4162
4166
  p(s, h) {
4163
4167
  h[0] & /*$_*/
4164
4168
  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] & /*$_*/
4169
+ s[16]("title")), r ? o ? o.p(s, h) : (o = Ht(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), h[0] & /*$_*/
4166
4170
  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);
4171
+ s[16]("description")), i ? a ? a.p(s, h) : (a = Pt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4168
4172
  },
4169
4173
  d(s) {
4170
- s && L(t), o && o.d(), a && a.d();
4174
+ s && j(t), o && o.d(), a && a.d();
4171
4175
  }
4172
4176
  };
4173
4177
  }
4174
- function Pt(e) {
4178
+ function Ht(e) {
4175
4179
  let t, r = (
4176
4180
  /*$_*/
4177
4181
  e[16]("title") + ""
4178
4182
  ), n;
4179
4183
  return {
4180
4184
  c() {
4181
- t = A("h2"), n = _e(r), b(t, "class", "PlayerConsentsTitle");
4185
+ t = A("h2"), n = ye(r), E(t, "class", "PlayerConsentsTitle");
4182
4186
  },
4183
4187
  m(i, o) {
4184
- j(i, t, o), x(t, n);
4188
+ L(i, t, o), S(t, n);
4185
4189
  },
4186
4190
  p(i, o) {
4187
4191
  o[0] & /*$_*/
4188
4192
  65536 && r !== (r = /*$_*/
4189
- i[16]("title") + "") && ye(n, r);
4193
+ i[16]("title") + "") && _e(n, r);
4190
4194
  },
4191
4195
  d(i) {
4192
- i && L(t);
4196
+ i && j(t);
4193
4197
  }
4194
4198
  };
4195
4199
  }
4196
- function Bt(e) {
4200
+ function Pt(e) {
4197
4201
  let t, r = (
4198
4202
  /*$_*/
4199
4203
  e[16]("description") + ""
4200
4204
  ), n;
4201
4205
  return {
4202
4206
  c() {
4203
- t = A("p"), n = _e(r), b(t, "class", "PlayerConsentsDescription");
4207
+ t = A("p"), n = ye(r), E(t, "class", "PlayerConsentsDescription");
4204
4208
  },
4205
4209
  m(i, o) {
4206
- j(i, t, o), x(t, n);
4210
+ L(i, t, o), S(t, n);
4207
4211
  },
4208
4212
  p(i, o) {
4209
4213
  o[0] & /*$_*/
4210
4214
  65536 && r !== (r = /*$_*/
4211
- i[16]("description") + "") && ye(n, r);
4215
+ i[16]("description") + "") && _e(n, r);
4212
4216
  },
4213
4217
  d(i) {
4214
- i && L(t);
4218
+ i && j(t);
4215
4219
  }
4216
4220
  };
4217
4221
  }
4218
- function zt(e) {
4222
+ function Bt(e) {
4219
4223
  let t;
4220
4224
  return {
4221
4225
  c() {
4222
- t = A("sup"), t.textContent = "*", b(t, "class", "ConsentRequired svelte-etk3ty");
4226
+ t = A("sup"), t.textContent = "*", E(t, "class", "ConsentRequired svelte-etk3ty");
4223
4227
  },
4224
4228
  m(r, n) {
4225
- j(r, t, n);
4229
+ L(r, t, n);
4226
4230
  },
4227
4231
  d(r) {
4228
- r && L(t);
4232
+ r && j(t);
4229
4233
  }
4230
4234
  };
4231
4235
  }
@@ -4238,10 +4242,10 @@ function Ot(e) {
4238
4242
  );
4239
4243
  return {
4240
4244
  c() {
4241
- t = A("p"), b(t, "class", "ConsentDescription svelte-etk3ty");
4245
+ t = A("p"), E(t, "class", "ConsentDescription svelte-etk3ty");
4242
4246
  },
4243
4247
  m(n, i) {
4244
- j(n, t, i), t.innerHTML = r;
4248
+ L(n, t, i), t.innerHTML = r;
4245
4249
  },
4246
4250
  p(n, i) {
4247
4251
  i[0] & /*$_, playerConsents, consentsCategories*/
@@ -4251,36 +4255,36 @@ function Ot(e) {
4251
4255
  n[64].description) + "") && (t.innerHTML = r);
4252
4256
  },
4253
4257
  d(n) {
4254
- n && L(t);
4258
+ n && j(t);
4255
4259
  }
4256
4260
  };
4257
4261
  }
4258
- function It(e) {
4262
+ function zt(e) {
4259
4263
  let t, r, n, i, o = (
4260
4264
  /*$_*/
4261
4265
  (e[16](`${/*consent*/
4262
4266
  e[64].tagCode}__name`) || /*consent*/
4263
4267
  e[64].friendlyName) + ""
4264
- ), a, s, h, u, l, d, m, y, f, g, S, _ = (
4268
+ ), a, s, h, u, l, d, m, v, f, p, C, _ = (
4265
4269
  /*consent*/
4266
- e[64].mustAccept === !0 && zt()
4267
- ), v = (
4270
+ e[64].mustAccept === !0 && Bt()
4271
+ ), y = (
4268
4272
  /*displayconsentdescription*/
4269
4273
  e[4] === "true" && Ot(e)
4270
4274
  );
4271
- function C(...P) {
4275
+ function x(...H) {
4272
4276
  return (
4273
4277
  /*input_handler*/
4274
4278
  e[29](
4275
4279
  /*consent*/
4276
4280
  e[64],
4277
- ...P
4281
+ ...H
4278
4282
  )
4279
4283
  );
4280
4284
  }
4281
4285
  return {
4282
4286
  c() {
4283
- t = A("div"), r = A("div"), n = A("h4"), i = new Ft(!1), a = G(), _ && _.c(), s = G(), v && v.c(), h = G(), u = A("label"), l = A("input"), y = G(), f = A("span"), i.a = a, b(n, "class", "ConsentName svelte-etk3ty"), b(r, "class", "ConsentContent"), b(l, "type", "checkbox"), l.disabled = d = /*consent*/
4287
+ t = A("div"), r = A("div"), n = A("h4"), i = new Gt(!1), a = G(), _ && _.c(), s = G(), y && y.c(), h = G(), u = A("label"), l = A("input"), v = G(), f = A("span"), i.a = a, E(n, "class", "ConsentName svelte-etk3ty"), E(r, "class", "ConsentContent"), E(l, "type", "checkbox"), l.disabled = d = /*consent*/
4284
4288
  e[64].mustAccept === !0 && /*initialConsentsState*/
4285
4289
  e[12][
4286
4290
  /*consent*/
@@ -4289,43 +4293,43 @@ function It(e) {
4289
4293
  e[13][
4290
4294
  /*consent*/
4291
4295
  e[64].tagCode
4292
- ], b(l, "class", "svelte-etk3ty"), b(f, "class", "Slider Round svelte-etk3ty"), b(u, "class", "ToggleSwitch svelte-etk3ty"), b(t, "class", "ConsentItem svelte-etk3ty");
4296
+ ], E(l, "class", "svelte-etk3ty"), E(f, "class", "Slider Round svelte-etk3ty"), E(u, "class", "ToggleSwitch svelte-etk3ty"), E(t, "class", "ConsentItem svelte-etk3ty");
4293
4297
  },
4294
- m(P, E) {
4295
- j(P, t, E), 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, y), x(u, f), g || (S = ge(l, "input", C), g = !0);
4298
+ m(H, b) {
4299
+ L(H, t, b), S(t, r), S(r, n), i.m(o, n), S(n, a), _ && _.m(n, null), S(r, s), y && y.m(r, null), S(t, h), S(t, u), S(u, l), S(u, v), S(u, f), p || (C = pe(l, "input", x), p = !0);
4296
4300
  },
4297
- p(P, E) {
4298
- e = P, E[0] & /*$_, playerConsents, consentsCategories*/
4301
+ p(H, b) {
4302
+ e = H, b[0] & /*$_, playerConsents, consentsCategories*/
4299
4303
  66304 && o !== (o = /*$_*/
4300
4304
  (e[16](`${/*consent*/
4301
4305
  e[64].tagCode}__name`) || /*consent*/
4302
4306
  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, E) : (v = Ot(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
4307
+ e[64].mustAccept === !0 ? _ || (_ = Bt(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
4308
+ e[4] === "true" ? y ? y.p(e, b) : (y = Ot(e), y.c(), y.m(r, null)) : y && (y.d(1), y = null), b[0] & /*playerConsents, consentsCategories, initialConsentsState*/
4305
4309
  4864 && d !== (d = /*consent*/
4306
4310
  e[64].mustAccept === !0 && /*initialConsentsState*/
4307
4311
  e[12][
4308
4312
  /*consent*/
4309
4313
  e[64].tagCode
4310
- ] === !0) && (l.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
4314
+ ] === !0) && (l.disabled = d), b[0] & /*consentsState, playerConsents, consentsCategories*/
4311
4315
  8960 && m !== (m = /*consentsState*/
4312
4316
  e[13][
4313
4317
  /*consent*/
4314
4318
  e[64].tagCode
4315
4319
  ]) && (l.checked = m);
4316
4320
  },
4317
- d(P) {
4318
- P && L(t), _ && _.d(), v && v.d(), g = !1, S();
4321
+ d(H) {
4322
+ H && j(t), _ && _.d(), y && y.d(), p = !1, C();
4319
4323
  }
4320
4324
  };
4321
4325
  }
4322
- function jt(e) {
4326
+ function It(e) {
4323
4327
  let t, r, n, i = (
4324
4328
  /*$_*/
4325
4329
  (e[16](`${/*category*/
4326
4330
  e[61].categoryTagCode}__category`) || /*category*/
4327
4331
  e[61].friendlyName) + ""
4328
- ), o, a, s, h, u, l, d, m, y;
4332
+ ), o, a, s, h, u, l, d, m, v;
4329
4333
  function f() {
4330
4334
  e[26].call(
4331
4335
  s,
@@ -4333,7 +4337,7 @@ function jt(e) {
4333
4337
  e[61]
4334
4338
  );
4335
4339
  }
4336
- function g() {
4340
+ function p() {
4337
4341
  return (
4338
4342
  /*change_handler*/
4339
4343
  e[27](
@@ -4342,95 +4346,95 @@ function jt(e) {
4342
4346
  )
4343
4347
  );
4344
4348
  }
4345
- function S(...C) {
4349
+ function C(...x) {
4346
4350
  return (
4347
4351
  /*func*/
4348
4352
  e[28](
4349
4353
  /*category*/
4350
4354
  e[61],
4351
- ...C
4355
+ ...x
4352
4356
  )
4353
4357
  );
4354
4358
  }
4355
4359
  let _ = ee(
4356
4360
  /*playerConsents*/
4357
- e[9].filter(S)
4358
- ), v = [];
4359
- for (let C = 0; C < _.length; C += 1)
4360
- v[C] = It(Nt(e, _, C));
4361
+ e[9].filter(C)
4362
+ ), y = [];
4363
+ for (let x = 0; x < _.length; x += 1)
4364
+ y[x] = zt(wt(e, _, x));
4361
4365
  return {
4362
4366
  c() {
4363
4367
  t = A("div"), r = A("div"), n = A("h3"), o = G(), a = A("label"), s = A("input"), h = G(), u = A("span"), l = G(), d = A("div");
4364
- for (let C = 0; C < v.length; C += 1)
4365
- v[C].c();
4366
- b(s, "type", "checkbox"), b(s, "class", "svelte-etk3ty"), b(u, "class", "Slider Round svelte-etk3ty"), b(a, "class", "ToggleSwitch Big svelte-etk3ty"), b(r, "class", "AccordionHeader svelte-etk3ty"), b(d, "class", "AccordionContent svelte-etk3ty"), b(t, "class", "AccordionItem svelte-etk3ty");
4368
+ for (let x = 0; x < y.length; x += 1)
4369
+ y[x].c();
4370
+ E(s, "type", "checkbox"), E(s, "class", "svelte-etk3ty"), E(u, "class", "Slider Round svelte-etk3ty"), E(a, "class", "ToggleSwitch Big svelte-etk3ty"), E(r, "class", "AccordionHeader svelte-etk3ty"), E(d, "class", "AccordionContent svelte-etk3ty"), E(t, "class", "AccordionItem svelte-etk3ty");
4367
4371
  },
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*/
4372
+ m(x, H) {
4373
+ L(x, t, H), S(t, r), S(r, n), n.innerHTML = i, S(r, o), S(r, a), S(a, s), s.checked = /*categoryToggle*/
4370
4374
  e[11][
4371
4375
  /*category*/
4372
4376
  e[61].categoryTagCode
4373
- ], x(a, h), x(a, u), x(t, l), x(t, d);
4374
- for (let E = 0; E < v.length; E += 1)
4375
- v[E] && v[E].m(d, null);
4376
- m || (y = [
4377
- ge(s, "change", f),
4378
- ge(s, "change", g)
4377
+ ], S(a, h), S(a, u), S(t, l), S(t, d);
4378
+ for (let b = 0; b < y.length; b += 1)
4379
+ y[b] && y[b].m(d, null);
4380
+ m || (v = [
4381
+ pe(s, "change", f),
4382
+ pe(s, "change", p)
4379
4383
  ], m = !0);
4380
4384
  },
4381
- p(C, P) {
4382
- if (e = C, P[0] & /*$_, consentsCategories*/
4385
+ p(x, H) {
4386
+ if (e = x, H[0] & /*$_, consentsCategories*/
4383
4387
  65792 && i !== (i = /*$_*/
4384
4388
  (e[16](`${/*category*/
4385
4389
  e[61].categoryTagCode}__category`) || /*category*/
4386
- e[61].friendlyName) + "") && (n.innerHTML = i), P[0] & /*categoryToggle, consentsCategories*/
4390
+ e[61].friendlyName) + "") && (n.innerHTML = i), H[0] & /*categoryToggle, consentsCategories*/
4387
4391
  2304 && (s.checked = /*categoryToggle*/
4388
4392
  e[11][
4389
4393
  /*category*/
4390
4394
  e[61].categoryTagCode
4391
- ]), P[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
4395
+ ]), H[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
4392
4396
  602896) {
4393
4397
  _ = ee(
4394
4398
  /*playerConsents*/
4395
- e[9].filter(S)
4399
+ e[9].filter(C)
4396
4400
  );
4397
- let E;
4398
- for (E = 0; E < _.length; E += 1) {
4399
- const z = Nt(e, _, E);
4400
- v[E] ? v[E].p(z, P) : (v[E] = It(z), v[E].c(), v[E].m(d, null));
4401
+ let b;
4402
+ for (b = 0; b < _.length; b += 1) {
4403
+ const B = wt(e, _, b);
4404
+ y[b] ? y[b].p(B, H) : (y[b] = zt(B), y[b].c(), y[b].m(d, null));
4401
4405
  }
4402
- for (; E < v.length; E += 1)
4403
- v[E].d(1);
4404
- v.length = _.length;
4406
+ for (; b < y.length; b += 1)
4407
+ y[b].d(1);
4408
+ y.length = _.length;
4405
4409
  }
4406
4410
  },
4407
- d(C) {
4408
- C && L(t), $e(v, C), m = !1, Rt(y);
4411
+ d(x) {
4412
+ x && j(t), et(y, x), m = !1, Lt(v);
4409
4413
  }
4410
4414
  };
4411
4415
  }
4412
- function Lt(e) {
4416
+ function jt(e) {
4413
4417
  let t, r, n, i, o;
4414
4418
  return {
4415
4419
  c() {
4416
- t = A("div"), r = A("circle-exclamation-icon"), n = G(), i = A("strong"), o = _e(
4420
+ t = A("div"), r = A("circle-exclamation-icon"), n = G(), i = A("strong"), o = ye(
4417
4421
  /*errorMessage*/
4418
4422
  e[6]
4419
- ), Y(r, "class", "svelte-etk3ty"), b(i, "class", "ErrorMessage svelte-etk3ty"), b(t, "class", "ConsentErrorContainer svelte-etk3ty");
4423
+ ), Y(r, "class", "svelte-etk3ty"), E(i, "class", "ErrorMessage svelte-etk3ty"), E(t, "class", "ConsentErrorContainer svelte-etk3ty");
4420
4424
  },
4421
4425
  m(a, s) {
4422
- j(a, t, s), x(t, r), x(t, n), x(t, i), x(i, o);
4426
+ L(a, t, s), S(t, r), S(t, n), S(t, i), S(i, o);
4423
4427
  },
4424
4428
  p(a, s) {
4425
4429
  s[0] & /*errorMessage*/
4426
- 64 && ye(
4430
+ 64 && _e(
4427
4431
  o,
4428
4432
  /*errorMessage*/
4429
4433
  a[6]
4430
4434
  );
4431
4435
  },
4432
4436
  d(a) {
4433
- a && L(t);
4437
+ a && j(t);
4434
4438
  }
4435
4439
  };
4436
4440
  }
@@ -4459,202 +4463,202 @@ function Wi(e) {
4459
4463
  let i = n(e), o = i && i(e);
4460
4464
  return {
4461
4465
  c() {
4462
- t = A("div"), r = A("div"), o && o.c(), b(r, "class", "ConsentsContainer svelte-etk3ty"), b(t, "class", qr("") + " svelte-etk3ty");
4466
+ t = A("div"), r = A("div"), o && o.c(), E(r, "class", "ConsentsContainer svelte-etk3ty"), E(t, "class", qr("") + " svelte-etk3ty");
4463
4467
  },
4464
4468
  m(a, s) {
4465
- j(a, t, s), x(t, r), o && o.m(r, null), e[32](r);
4469
+ L(a, t, s), S(t, r), o && o.m(r, null), e[32](r);
4466
4470
  },
4467
4471
  p(a, s) {
4468
4472
  i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
4469
4473
  },
4470
- i: q,
4471
- o: q,
4474
+ i: W,
4475
+ o: W,
4472
4476
  d(a) {
4473
- a && L(t), o && o.d(), e[32](null);
4477
+ a && j(t), o && o.d(), e[32](null);
4474
4478
  }
4475
4479
  };
4476
4480
  }
4477
4481
  function Zi(e, t, r) {
4478
4482
  let n;
4479
- Vr(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: y = "false" } = t, f, g, S = !1, _ = !1, v = "", C = "", P = "", E = "", z = [], Z = [], O = [], le = !0, ke = !0, F = {}, be = {}, J = {}, U = {}, ce, Ee, R = {
4483
+ Fr(e, Li, (c) => r(16, n = c));
4484
+ let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: v = "false" } = t, f, p = !1, C = !1, _ = "", y = "", x = "", H = "", b = [], B = [], O = [], le = !0, ke = !0, F = {}, be = {}, J = {}, U = {}, ce, Ee, R = {
4481
4485
  none: { key: "0", value: "None" },
4482
4486
  accepted: { key: "1", value: "Accepted" },
4483
4487
  expired: { key: "2", value: "Expired" },
4484
4488
  denied: { key: "3", value: "Denied" },
4485
4489
  suspended: { key: "4", value: "Suspended" }
4486
4490
  }, Ce = !1;
4487
- Object.keys(Mt).forEach((c) => {
4488
- xt(c, Mt[c]);
4491
+ Object.keys(xt).forEach((c) => {
4492
+ St(c, xt[c]);
4489
4493
  });
4490
- const gr = () => {
4494
+ const mr = () => {
4491
4495
  Ri(l);
4492
4496
  }, pr = () => {
4493
4497
  let c = new URL(m);
4494
- fetch(c.href).then((p) => p.json()).then((p) => {
4495
- Object.keys(p).forEach((T) => {
4496
- xt(T, p[T]);
4498
+ fetch(c.href).then((g) => g.json()).then((g) => {
4499
+ Object.keys(g).forEach((M) => {
4500
+ St(M, g[M]);
4497
4501
  });
4498
- }).catch((p) => {
4499
- console.log(p);
4502
+ }).catch((g) => {
4503
+ console.log(g);
4500
4504
  });
4501
- }, fr = () => {
4502
- i && (v = i, _ = !0), o && (C = o);
4503
- }, Se = (c, p = !1) => {
4504
- p ? r(7, E = c) : (Er(), r(6, P = c));
4505
- }, ue = (c, p, T, k = !1) => de(this, null, function* () {
4505
+ }, gr = () => {
4506
+ i && (_ = i, C = !0), o && (y = o);
4507
+ }, Se = (c, g = !1) => {
4508
+ g ? r(7, H = c) : (br(), r(6, x = c));
4509
+ }, ue = (c, g, M, k = !1) => de(this, null, function* () {
4506
4510
  try {
4507
- const M = yield fetch(c, T);
4508
- if (!M.ok)
4509
- throw new Error(n(p));
4510
- const I = yield M.json();
4511
- return _ ? I : I.filter((V) => V.showOnRegister === !0);
4512
- } catch (M) {
4511
+ const T = yield fetch(c, M);
4512
+ if (!T.ok)
4513
+ throw new Error(n(g));
4514
+ const I = yield T.json();
4515
+ return C ? I : I.filter((V) => V.showOnRegister === !0);
4516
+ } catch (T) {
4513
4517
  throw Se(
4514
- M instanceof TypeError ? n(p) : M.message,
4518
+ T instanceof TypeError ? n(g) : T.message,
4515
4519
  k
4516
- ), M;
4520
+ ), T;
4517
4521
  }
4518
- }), _r = () => de(this, null, function* () {
4522
+ }), fr = () => de(this, null, function* () {
4519
4523
  try {
4520
- 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, k) => T.categoryTagCode.localeCompare(k.categoryTagCode))), r(11, F = kr(z)), be = W({}, F), r(9, O = [...p]), Z.forEach((T) => {
4522
- let k = O.find((M) => M.tagCode === T.tagCode);
4523
- k || (k = ct(W({}, T), {
4524
+ let c = [], g = [];
4525
+ if (C ? [c, g] = yield nt() : c = yield nt(), r(10, le = !1), B = [...c], r(8, b = yr(B).sort((M, k) => M.categoryTagCode.localeCompare(k.categoryTagCode))), r(11, F = vr(b)), be = Z({}, F), r(9, O = [...g]), B.forEach((M) => {
4526
+ let k = O.find((T) => T.tagCode === M.tagCode);
4527
+ k || (k = lt(Z({}, M), {
4524
4528
  status: R.denied.value
4525
- }), O.push(k)), k.description = T.description, k.orderNumber = T.orderNumber;
4526
- }), y === "true") {
4527
- if (r(9, O = O.filter((T) => T.status === R.expired.value)), O.length !== 0)
4529
+ }), O.push(k)), k.description = M.description, k.orderNumber = M.orderNumber;
4530
+ }), v === "true") {
4531
+ if (r(9, O = O.filter((M) => M.status === R.expired.value)), O.length !== 0)
4528
4532
  return;
4529
4533
  Se(n("wrongModalConfig"), !0);
4530
4534
  }
4531
- br();
4535
+ kr();
4532
4536
  } catch (c) {
4533
4537
  throw r(10, le = !1), Se(
4534
4538
  c instanceof TypeError ? n("invalidUrl") : c.message,
4535
4539
  !0
4536
4540
  ), c;
4537
4541
  }
4538
- }), it = () => de(this, null, function* () {
4542
+ }), nt = () => de(this, null, function* () {
4539
4543
  const c = new URL(`${a}/api/v1/gm/consents`);
4540
- if (c.searchParams.append("Status", "Active"), !_)
4544
+ if (c.searchParams.append("Status", "Active"), !C)
4541
4545
  return yield ue(c.href, "fetchConsentsError", { method: "GET" }, !0);
4542
- const p = new URL(`${a}/api/v1/gm/user-consents/${C}`);
4546
+ const g = new URL(`${a}/api/v1/gm/user-consents/${y}`);
4543
4547
  return yield Promise.all([
4544
4548
  ue(c.href, "fetchConsentsError", { method: "GET" }, !0),
4545
- ue(p.href, "fetchPlayerConsentsError", {
4549
+ ue(g.href, "fetchPlayerConsentsError", {
4546
4550
  method: "GET",
4547
4551
  headers: {
4548
- "X-SessionId": v,
4552
+ "X-SessionId": _,
4549
4553
  "Content-Type": "application/json"
4550
4554
  }
4551
4555
  })
4552
4556
  ]);
4553
- }), yr = () => {
4557
+ }), _r = () => {
4554
4558
  Ce = !1;
4555
- const c = new URL(`${a}/api/v2/gm/legislation/consents`), p = {
4559
+ const c = new URL(`${a}/api/v2/gm/legislation/consents`), g = {
4556
4560
  "Content-Type": "application/json",
4557
4561
  Accept: "application/json"
4558
- }, T = { method: "GET", headers: p };
4559
- fetch(c.href, T).then((k) => k.ok ? k.json() : (Ce = !0, k.json().then((M) => (console.error(M), xe(M))))).then((k) => {
4562
+ }, M = { method: "GET", headers: g };
4563
+ fetch(c.href, M).then((k) => k.ok ? k.json() : (Ce = !0, k.json().then((T) => (console.error(T), xe(T))))).then((k) => {
4560
4564
  if (!Ce) {
4561
- if (Z = k, localStorage.getItem("playerConsents")) {
4565
+ if (B = k, localStorage.getItem("playerConsents")) {
4562
4566
  try {
4563
4567
  r(9, O = JSON.parse(localStorage.getItem("playerConsents")));
4564
- } catch (M) {
4565
- return console.error(M), xe(M);
4568
+ } catch (T) {
4569
+ return console.error(T), xe(T);
4566
4570
  }
4567
4571
  return;
4568
4572
  }
4569
- return r(9, O = Z.map((M) => ({
4570
- id: M.id,
4573
+ return r(9, O = B.map((T) => ({
4574
+ id: T.id,
4571
4575
  status: R.denied.key,
4572
- friendlyName: M.friendlyName,
4573
- tagCode: M.tagCode,
4576
+ friendlyName: T.friendlyName,
4577
+ tagCode: T.tagCode,
4574
4578
  selected: null,
4575
- mustAccept: M.mustAccept
4579
+ mustAccept: T.mustAccept
4576
4580
  }))), localStorage.setItem("playerConsents", JSON.stringify(O)), O;
4577
4581
  }
4578
4582
  }).catch((k) => (console.error(k), xe(k))).finally(() => {
4579
4583
  r(10, le = !1);
4580
4584
  });
4585
+ }, yr = (c) => {
4586
+ const g = /* @__PURE__ */ new Map();
4587
+ return c.forEach((M) => {
4588
+ g.has(M.category.categoryTagCode) || g.set(M.category.categoryTagCode, M.category);
4589
+ }), Array.from(g.values());
4581
4590
  }, vr = (c) => {
4582
- const p = /* @__PURE__ */ new Map();
4583
- return c.forEach((T) => {
4584
- p.has(T.category.categoryTagCode) || p.set(T.category.categoryTagCode, T.category);
4585
- }), Array.from(p.values());
4586
- }, kr = (c) => {
4587
- const p = localStorage.getItem("categoryToggle" + C);
4588
- if (p === null) {
4589
- const T = c.reduce(
4590
- (k, M) => (k[M.categoryTagCode] = !1, k),
4591
+ const g = localStorage.getItem("categoryToggle" + y);
4592
+ if (g === null) {
4593
+ const M = c.reduce(
4594
+ (k, T) => (k[T.categoryTagCode] = !1, k),
4591
4595
  {}
4592
4596
  );
4593
- return localStorage.setItem("categoryToggle" + C, JSON.stringify(T)), T;
4597
+ return localStorage.setItem("categoryToggle" + y, JSON.stringify(M)), M;
4594
4598
  } else
4595
- return JSON.parse(p);
4596
- }, br = () => {
4599
+ return JSON.parse(g);
4600
+ }, kr = () => {
4597
4601
  O.forEach((c) => {
4598
4602
  r(12, J[c.tagCode] = c.status === R.accepted.value, J);
4599
- }), r(13, U = W({}, J));
4600
- }, Er = () => {
4601
- r(13, U = W({}, J)), r(11, F = W({}, be));
4602
- }, Cr = () => de(this, null, function* () {
4603
+ }), r(13, U = Z({}, J));
4604
+ }, br = () => {
4605
+ r(13, U = Z({}, J)), r(11, F = Z({}, be));
4606
+ }, Er = () => de(this, null, function* () {
4603
4607
  if (!ke)
4604
4608
  return;
4605
4609
  ke = !1;
4606
- const c = [], p = [];
4610
+ const c = [], g = [];
4607
4611
  if (Object.keys(U).forEach((k) => {
4608
- const M = O.find((I) => I.tagCode === k);
4609
- U[k] !== J[k] && (M ? c.push({
4612
+ const T = O.find((I) => I.tagCode === k);
4613
+ U[k] !== J[k] && (T ? c.push({
4610
4614
  tagCode: k,
4611
4615
  status: U[k] ? R.accepted.value : R.denied.value
4612
- }) : p.push({
4616
+ }) : g.push({
4613
4617
  tagCode: k,
4614
4618
  status: U[k] ? R.accepted.value : R.denied.value
4615
4619
  }));
4616
- }), !_) {
4617
- localStorage.setItem("categoryToggle" + C, JSON.stringify(F)), be = W({}, F), window.postMessage(
4620
+ }), !C) {
4621
+ localStorage.setItem("categoryToggle" + y, JSON.stringify(F)), be = Z({}, F), window.postMessage(
4618
4622
  {
4619
4623
  type: "NewPlayerConsentData",
4620
- data: JSON.stringify(p)
4624
+ data: JSON.stringify(g)
4621
4625
  },
4622
4626
  window.location.href
4623
4627
  ), ke = !0;
4624
4628
  return;
4625
4629
  }
4626
- const T = new URL(`${a}/api/v1/gm/user-consents/${C}`);
4630
+ const M = new URL(`${a}/api/v1/gm/user-consents/${y}`);
4627
4631
  try {
4628
4632
  const k = yield Promise.allSettled([
4629
- p.length > 0 && ue(T.href, "updateConsentsError", {
4633
+ g.length > 0 && ue(M.href, "updateConsentsError", {
4630
4634
  method: "POST",
4631
4635
  headers: {
4632
- "X-SessionId": v,
4636
+ "X-SessionId": _,
4633
4637
  "Content-Type": "application/json"
4634
4638
  },
4635
- body: JSON.stringify({ userConsents: p })
4639
+ body: JSON.stringify({ userConsents: g })
4636
4640
  }),
4637
- c.length > 0 && ue(T.href, "updateConsentsError", {
4641
+ c.length > 0 && ue(M.href, "updateConsentsError", {
4638
4642
  method: "PATCH",
4639
4643
  headers: {
4640
- "X-SessionId": v,
4644
+ "X-SessionId": _,
4641
4645
  "Content-Type": "application/json"
4642
4646
  },
4643
4647
  body: JSON.stringify({ userConsents: c })
4644
4648
  })
4645
4649
  ]);
4646
- k.forEach((M, I) => {
4647
- if (M.status === "rejected" || M.value.ok === !1) {
4648
- const V = I < p.length ? p[I] : c[I - p.length];
4650
+ k.forEach((T, I) => {
4651
+ if (T.status === "rejected" || T.value.ok === !1) {
4652
+ const V = I < g.length ? g[I] : c[I - g.length];
4649
4653
  r(13, U[V.tagCode] = J[V.tagCode], U);
4650
4654
  }
4651
- }), k.every((M) => M.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify(F)), be = W({}, F), window.postMessage(
4655
+ }), k.every((T) => T.status === "fulfilled") && (localStorage.setItem("categoryToggle" + y, JSON.stringify(F)), be = Z({}, F), window.postMessage(
4652
4656
  {
4653
4657
  type: "PlayerConsentUpdated",
4654
4658
  success: !0
4655
4659
  },
4656
4660
  window.location.href
4657
- ), r(12, J = W({}, U)));
4661
+ ), r(12, J = Z({}, U)));
4658
4662
  } catch (k) {
4659
4663
  Se(k instanceof TypeError ? n("saveChangesError") : k.message), window.postMessage(
4660
4664
  {
@@ -4666,56 +4670,56 @@ function Zi(e, t, r) {
4666
4670
  } finally {
4667
4671
  ke = !0, r(14, ce = !1);
4668
4672
  }
4669
- }), Sr = (c) => {
4670
- const p = new URL(`${a}/api/v2/gm/legislation/consents`), T = {
4673
+ }), Cr = (c) => {
4674
+ const g = new URL(`${a}/api/v2/gm/legislation/consents`), M = {
4671
4675
  "Content-Type": "application/json",
4672
4676
  Accept: "application/json"
4673
4677
  }, k = {
4674
4678
  playerConsents: O,
4675
4679
  registrationId: c
4676
- }, M = {
4680
+ }, T = {
4677
4681
  method: "POST",
4678
4682
  body: JSON.stringify(k),
4679
- headers: T
4683
+ headers: M
4680
4684
  };
4681
- fetch(p.href, M).then((I) => {
4685
+ fetch(g.href, T).then((I) => {
4682
4686
  I.ok || (Ce = !0);
4683
4687
  }).catch((I) => (console.error(I), xe(I))).finally(() => {
4684
4688
  r(10, le = !1);
4685
4689
  });
4686
- }, ot = (c) => {
4687
- O.filter((p) => p.category.categoryTagCode === c).forEach((p) => {
4688
- p.status = p.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[p.tagCode] = F[c] || !1, U);
4689
- }), r(14, ce = at());
4690
- }, Ie = (c, p, T) => {
4691
- const k = O.find((V) => V.id === T), M = p ? "value" : "key";
4690
+ }, it = (c) => {
4691
+ O.filter((g) => g.category.categoryTagCode === c).forEach((g) => {
4692
+ g.status = g.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[g.tagCode] = F[c] || !1, U);
4693
+ }), r(14, ce = ot());
4694
+ }, je = (c, g, M) => {
4695
+ const k = O.find((V) => V.id === M), T = g ? "value" : "key";
4692
4696
  let I;
4693
- if (!p && k.mustAccept) {
4697
+ if (!g && k.mustAccept) {
4694
4698
  const V = Array.from(Ee.children);
4695
4699
  for (const he of V)
4696
4700
  if (I = Array.from(he.children).find((Or) => Or.getAttribute("id") === `checkBoxError__${k.tagCode}`), I)
4697
4701
  break;
4698
4702
  }
4699
- if (k.status === R.accepted[M] ? (k.status = R.denied[M], I && (I.innerHTML = n("requiredError"))) : (k.status = R.accepted[M], I && (I.innerHTML = "")), p) {
4703
+ if (k.status === R.accepted[T] ? (k.status = R.denied[T], I && (I.innerHTML = n("requiredError"))) : (k.status = R.accepted[T], I && (I.innerHTML = "")), g) {
4700
4704
  r(13, U[k.tagCode] = !U[k.tagCode], U);
4701
- const V = O.filter((he) => he.category.categoryTagCode === p.categoryTagCode).every((he) => he.status !== R.denied.value);
4702
- r(11, F[p.categoryTagCode] = V, F);
4705
+ const V = O.filter((he) => he.category.categoryTagCode === g.categoryTagCode).every((he) => he.status !== R.denied.value);
4706
+ r(11, F[g.categoryTagCode] = V, F);
4703
4707
  }
4704
- xr();
4705
- }, xr = ((c, p) => {
4706
- let T;
4708
+ Sr();
4709
+ }, Sr = ((c, g) => {
4710
+ let M;
4707
4711
  return function(...k) {
4708
- const M = this;
4709
- clearTimeout(T), T = setTimeout(
4712
+ const T = this;
4713
+ clearTimeout(M), M = setTimeout(
4710
4714
  () => {
4711
- c.apply(M, k);
4715
+ c.apply(T, k);
4712
4716
  },
4713
- p
4717
+ g
4714
4718
  );
4715
4719
  };
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) => {
4720
+ })(() => xr(), 500), xr = () => {
4721
+ r(14, ce = ot()), i || (window.postMessage({ type: "isConsentsValid", isValid: ce }), localStorage.setItem("playerConsents", JSON.stringify(O)));
4722
+ }, ot = () => O.filter((g) => O.some((M) => g.tagCode === M.tagCode && M.mustAccept && (g.status === R.denied.key || g.status === R.denied.value))).length === 0, xe = (c) => {
4719
4723
  window.postMessage(
4720
4724
  {
4721
4725
  type: "WidgetNotification",
@@ -4724,44 +4728,44 @@ function Zi(e, t, r) {
4724
4728
  window.location.href
4725
4729
  );
4726
4730
  }, Tr = (c) => {
4727
- c.data && c.data.type !== "setUpPlayerConsents" || Sr(c.data.registerid);
4731
+ c.data && c.data.type !== "setUpPlayerConsents" || Cr(c.data.registerid);
4728
4732
  };
4729
- Xr(() => {
4733
+ Vr(() => {
4730
4734
  setTimeout(
4731
4735
  () => {
4732
- r(25, S = !0);
4736
+ r(25, p = !0);
4733
4737
  },
4734
4738
  50
4735
4739
  );
4736
- const c = (p) => Tr(p);
4740
+ const c = (g) => Tr(g);
4737
4741
  return window.addEventListener("message", c), () => {
4738
- window.emMessageBus && g && g.unsubscribe(), window.removeEventListener("message", c);
4742
+ window.removeEventListener("message", c);
4739
4743
  };
4740
4744
  });
4741
- function wr(c) {
4745
+ function Mr(c) {
4742
4746
  F[c.categoryTagCode] = this.checked, r(11, F);
4743
4747
  }
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"](() => {
4748
+ const wr = (c) => it(c.categoryTagCode), Nr = (c, g) => g.category.categoryTagCode === c.categoryTagCode, Ar = (c, g) => je(g, c.category, c.id), Hr = (c, g) => je(g, null, c.id);
4749
+ function Pr(c) {
4750
+ ut[c ? "unshift" : "push"](() => {
4747
4751
  Ee = c, r(15, Ee);
4748
4752
  });
4749
4753
  }
4750
- function zr(c) {
4751
- ht[c ? "unshift" : "push"](() => {
4754
+ function Br(c) {
4755
+ ut[c ? "unshift" : "push"](() => {
4752
4756
  f = c, r(5, f);
4753
4757
  });
4754
4758
  }
4755
4759
  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, y = c.modalconsents);
4760
+ "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
4761
  }, e.$$.update = () => {
4758
4762
  e.$$.dirty[0] & /*isMounted, session*/
4759
- 33554433 && S && i && (fr(), _r()), e.$$.dirty[0] & /*session*/
4760
- 1 && (i || yr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4763
+ 33554433 && p && i && (gr(), fr()), e.$$.dirty[0] & /*session*/
4764
+ 1 && (i || _r()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4761
4765
  34 && s && f && Wr(f, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4762
4766
  36 && h && f && Zr(f, h), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4763
4767
  40 && f && Jr(f, `${u}.Style`), e.$$.dirty[0] & /*lang*/
4764
- 4194304 && l && gr(), e.$$.dirty[0] & /*translationurl*/
4768
+ 4194304 && l && mr(), e.$$.dirty[0] & /*translationurl*/
4765
4769
  8388608 && m && pr();
4766
4770
  }, [
4767
4771
  i,
@@ -4770,9 +4774,9 @@ function Zi(e, t, r) {
4770
4774
  u,
4771
4775
  d,
4772
4776
  f,
4773
- P,
4774
- E,
4775
- z,
4777
+ x,
4778
+ H,
4779
+ b,
4776
4780
  O,
4777
4781
  le,
4778
4782
  F,
@@ -4781,32 +4785,32 @@ function Zi(e, t, r) {
4781
4785
  ce,
4782
4786
  Ee,
4783
4787
  n,
4784
- Cr,
4785
- ot,
4786
- Ie,
4788
+ Er,
4789
+ it,
4790
+ je,
4787
4791
  o,
4788
4792
  a,
4789
4793
  l,
4790
4794
  m,
4791
- y,
4792
- S,
4795
+ v,
4796
+ p,
4797
+ Mr,
4793
4798
  wr,
4794
4799
  Nr,
4795
4800
  Ar,
4796
4801
  Hr,
4797
4802
  Pr,
4798
- Br,
4799
- zr
4803
+ Br
4800
4804
  ];
4801
4805
  }
4802
- class Ji extends Dt {
4806
+ class Ji extends Ut {
4803
4807
  constructor(t) {
4804
- super(), Gt(
4808
+ super(), Dt(
4805
4809
  this,
4806
4810
  t,
4807
4811
  Zi,
4808
4812
  Wi,
4809
- Ke,
4813
+ $e,
4810
4814
  {
4811
4815
  session: 0,
4812
4816
  userid: 20,
@@ -4884,7 +4888,7 @@ class Ji extends Dt {
4884
4888
  this.$$set({ modalconsents: t }), X();
4885
4889
  }
4886
4890
  }
4887
- Ut(Ji, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
4891
+ Rt(Ji, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
4888
4892
  export {
4889
4893
  Ji as default
4890
4894
  };