@everymatrix/player-consents 1.76.0 → 1.76.3

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