@everymatrix/player-consents 1.86.2 → 1.86.4

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