@everymatrix/player-consents 1.77.18 → 1.77.20

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