@everymatrix/player-consents 1.56.0 → 1.56.2

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