@everymatrix/player-email-verification 1.54.0 → 1.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,80 +1,51 @@
1
- var It = Object.defineProperty, wt = Object.defineProperties;
2
- var $t = Object.getOwnPropertyDescriptors;
3
- var $e = Object.getOwnPropertySymbols;
4
- var Lt = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable;
5
- var ae = (e, t, r) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Le = (e, t) => {
6
- for (var r in t || (t = {}))
7
- Lt.call(t, r) && ae(e, r, t[r]);
8
- if ($e)
9
- for (var r of $e(t))
10
- Mt.call(t, r) && ae(e, r, t[r]);
11
- return e;
12
- }, Me = (e, t) => wt(e, $t(t));
13
- var _ = (e, t, r) => ae(e, typeof t != "symbol" ? t + "" : t, r);
14
- var Ce = (e, t, r) => new Promise((n, i) => {
15
- var s = (h) => {
16
- try {
17
- u(r.next(h));
18
- } catch (a) {
19
- i(a);
20
- }
21
- }, o = (h) => {
22
- try {
23
- u(r.throw(h));
24
- } catch (a) {
25
- i(a);
26
- }
27
- }, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
28
- u((r = r.apply(e, t)).next());
29
- });
30
- function v() {
1
+ function _() {
31
2
  }
32
- function tt(e) {
3
+ function Qe(e) {
33
4
  return e();
34
5
  }
35
- function Re() {
6
+ function Ie() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function z(e) {
39
- e.forEach(tt);
9
+ function W(e) {
10
+ e.forEach(Qe);
40
11
  }
41
- function Be(e) {
12
+ function Te(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function rt(e, t) {
15
+ function Je(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- function Ct(e) {
18
+ function St(e) {
48
19
  return Object.keys(e).length === 0;
49
20
  }
50
- function nt(e, ...t) {
21
+ function qe(e, ...t) {
51
22
  if (e == null) {
52
23
  for (const n of t)
53
24
  n(void 0);
54
- return v;
25
+ return _;
55
26
  }
56
27
  const r = e.subscribe(...t);
57
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
29
  }
59
- function Rt(e, t, r) {
60
- e.$$.on_destroy.push(nt(t, r));
30
+ function Bt(e, t, r) {
31
+ e.$$.on_destroy.push(qe(t, r));
61
32
  }
62
- function it(e, t, r) {
33
+ function Ye(e, t, r) {
63
34
  e.insertBefore(t, r || null);
64
35
  }
65
- function Ae(e) {
36
+ function Se(e) {
66
37
  e.parentNode && e.parentNode.removeChild(e);
67
38
  }
68
- function st(e) {
39
+ function Ke(e) {
69
40
  return document.createElement(e);
70
41
  }
71
- function Ut(e, t, r) {
42
+ function At(e, t, r) {
72
43
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
73
44
  }
74
- function Gt(e) {
45
+ function Pt(e) {
75
46
  return Array.from(e.childNodes);
76
47
  }
77
- function Dt(e) {
48
+ function Nt(e) {
78
49
  const t = {};
79
50
  return e.childNodes.forEach(
80
51
  /** @param {Element} node */
@@ -83,238 +54,234 @@ function Dt(e) {
83
54
  }
84
55
  ), t;
85
56
  }
86
- let Pe;
87
- function k(e) {
88
- Pe = e;
57
+ let Be;
58
+ function V(e) {
59
+ Be = e;
89
60
  }
90
- const I = [], Ue = [];
91
- let $ = [];
92
- const Ge = [], Ft = /* @__PURE__ */ Promise.resolve();
93
- let de = !1;
94
- function jt() {
95
- de || (de = !0, Ft.then(w));
61
+ const O = [], we = [];
62
+ let w = [];
63
+ const $e = [], Ot = /* @__PURE__ */ Promise.resolve();
64
+ let me = !1;
65
+ function It() {
66
+ me || (me = !0, Ot.then(I));
96
67
  }
97
- function be(e) {
98
- $.push(e);
68
+ function pe(e) {
69
+ w.push(e);
99
70
  }
100
- const ue = /* @__PURE__ */ new Set();
101
- let N = 0;
102
- function w() {
103
- if (N !== 0)
71
+ const oe = /* @__PURE__ */ new Set();
72
+ let P = 0;
73
+ function I() {
74
+ if (P !== 0)
104
75
  return;
105
- const e = Pe;
76
+ const e = Be;
106
77
  do {
107
78
  try {
108
- for (; N < I.length; ) {
109
- const t = I[N];
110
- N++, k(t), Vt(t.$$);
79
+ for (; P < O.length; ) {
80
+ const t = O[P];
81
+ P++, V(t), wt(t.$$);
111
82
  }
112
83
  } catch (t) {
113
- throw I.length = 0, N = 0, t;
84
+ throw O.length = 0, P = 0, t;
114
85
  }
115
- for (k(null), I.length = 0, N = 0; Ue.length; ) Ue.pop()();
116
- for (let t = 0; t < $.length; t += 1) {
117
- const r = $[t];
118
- ue.has(r) || (ue.add(r), r());
86
+ for (V(null), O.length = 0, P = 0; we.length; ) we.pop()();
87
+ for (let t = 0; t < w.length; t += 1) {
88
+ const r = w[t];
89
+ oe.has(r) || (oe.add(r), r());
119
90
  }
120
- $.length = 0;
121
- } while (I.length);
122
- for (; Ge.length; )
123
- Ge.pop()();
124
- de = !1, ue.clear(), k(e);
91
+ w.length = 0;
92
+ } while (O.length);
93
+ for (; $e.length; )
94
+ $e.pop()();
95
+ me = !1, oe.clear(), V(e);
125
96
  }
126
- function Vt(e) {
97
+ function wt(e) {
127
98
  if (e.fragment !== null) {
128
- e.update(), z(e.before_update);
99
+ e.update(), W(e.before_update);
129
100
  const t = e.dirty;
130
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(be);
101
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(pe);
131
102
  }
132
103
  }
133
- function kt(e) {
104
+ function $t(e) {
134
105
  const t = [], r = [];
135
- $.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), $ = t;
106
+ w.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), w = t;
136
107
  }
137
- const Xt = /* @__PURE__ */ new Set();
138
- function Wt(e, t) {
139
- e && e.i && (Xt.delete(e), e.i(t));
108
+ const Lt = /* @__PURE__ */ new Set();
109
+ function Mt(e, t) {
110
+ e && e.i && (Lt.delete(e), e.i(t));
140
111
  }
141
- function zt(e, t, r) {
112
+ function Ct(e, t, r) {
142
113
  const { fragment: n, after_update: i } = e.$$;
143
- n && n.m(t, r), be(() => {
144
- const s = e.$$.on_mount.map(tt).filter(Be);
145
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : z(s), e.$$.on_mount = [];
146
- }), i.forEach(be);
114
+ n && n.m(t, r), pe(() => {
115
+ const s = e.$$.on_mount.map(Qe).filter(Te);
116
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
117
+ }), i.forEach(pe);
147
118
  }
148
- function Zt(e, t) {
119
+ function Rt(e, t) {
149
120
  const r = e.$$;
150
- r.fragment !== null && (kt(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
121
+ r.fragment !== null && ($t(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
151
122
  }
152
- function Qt(e, t) {
153
- e.$$.dirty[0] === -1 && (I.push(e), jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
123
+ function Ut(e, t) {
124
+ e.$$.dirty[0] === -1 && (O.push(e), It(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
154
125
  }
155
- function Jt(e, t, r, n, i, s, o = null, u = [-1]) {
156
- const h = Pe;
157
- k(e);
126
+ function Gt(e, t, r, n, i, s, u = null, o = [-1]) {
127
+ const f = Be;
128
+ V(e);
158
129
  const a = e.$$ = {
159
130
  fragment: null,
160
131
  ctx: [],
161
132
  // state
162
133
  props: s,
163
- update: v,
134
+ update: _,
164
135
  not_equal: i,
165
- bound: Re(),
136
+ bound: Ie(),
166
137
  // lifecycle
167
138
  on_mount: [],
168
139
  on_destroy: [],
169
140
  on_disconnect: [],
170
141
  before_update: [],
171
142
  after_update: [],
172
- context: new Map(t.context || (h ? h.$$.context : [])),
143
+ context: new Map(t.context || (f ? f.$$.context : [])),
173
144
  // everything else
174
- callbacks: Re(),
175
- dirty: u,
145
+ callbacks: Ie(),
146
+ dirty: o,
176
147
  skip_bound: !1,
177
- root: t.target || h.$$.root
148
+ root: t.target || f.$$.root
178
149
  };
179
- o && o(a.root);
180
- let l = !1;
181
- if (a.ctx = r(e, t.props || {}, (f, c, ...b) => {
150
+ u && u(a.root);
151
+ let h = !1;
152
+ if (a.ctx = r(e, t.props || {}, (l, c, ...b) => {
182
153
  const g = b.length ? b[0] : c;
183
- return a.ctx && i(a.ctx[f], a.ctx[f] = g) && (!a.skip_bound && a.bound[f] && a.bound[f](g), l && Qt(e, f)), c;
184
- }), a.update(), l = !0, z(a.before_update), a.fragment = n(a.ctx), t.target) {
154
+ return a.ctx && i(a.ctx[l], a.ctx[l] = g) && (!a.skip_bound && a.bound[l] && a.bound[l](g), h && Ut(e, l)), c;
155
+ }), a.update(), h = !0, W(a.before_update), a.fragment = n(a.ctx), t.target) {
185
156
  if (t.hydrate) {
186
- const f = Gt(t.target);
187
- a.fragment && a.fragment.l(f), f.forEach(Ae);
157
+ const l = Pt(t.target);
158
+ a.fragment && a.fragment.l(l), l.forEach(Se);
188
159
  } else
189
160
  a.fragment && a.fragment.c();
190
- t.intro && Wt(e.$$.fragment), zt(e, t.target, t.anchor), w();
161
+ t.intro && Mt(e.$$.fragment), Ct(e, t.target, t.anchor), I();
191
162
  }
192
- k(h);
193
- }
194
- let ot;
195
- typeof HTMLElement == "function" && (ot = class extends HTMLElement {
196
- constructor(t, r, n) {
197
- super();
198
- /** The Svelte component constructor */
199
- _(this, "$$ctor");
200
- /** Slots */
201
- _(this, "$$s");
202
- /** The Svelte component instance */
203
- _(this, "$$c");
204
- /** Whether or not the custom element is connected */
205
- _(this, "$$cn", !1);
206
- /** Component props data */
207
- _(this, "$$d", {});
208
- /** `true` if currently in the process of reflecting component props back to attributes */
209
- _(this, "$$r", !1);
210
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
211
- _(this, "$$p_d", {});
212
- /** @type {Record<string, Function[]>} Event listeners */
213
- _(this, "$$l", {});
214
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
215
- _(this, "$$l_u", /* @__PURE__ */ new Map());
216
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
163
+ V(f);
164
+ }
165
+ let et;
166
+ typeof HTMLElement == "function" && (et = class extends HTMLElement {
167
+ /** The Svelte component constructor */
168
+ $$ctor;
169
+ /** Slots */
170
+ $$s;
171
+ /** The Svelte component instance */
172
+ $$c;
173
+ /** Whether or not the custom element is connected */
174
+ $$cn = !1;
175
+ /** Component props data */
176
+ $$d = {};
177
+ /** `true` if currently in the process of reflecting component props back to attributes */
178
+ $$r = !1;
179
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
180
+ $$p_d = {};
181
+ /** @type {Record<string, Function[]>} Event listeners */
182
+ $$l = {};
183
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
184
+ $$l_u = /* @__PURE__ */ new Map();
185
+ constructor(e, t, r) {
186
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
217
187
  }
218
- addEventListener(t, r, n) {
219
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
220
- const i = this.$$c.$on(t, r);
221
- this.$$l_u.set(r, i);
188
+ addEventListener(e, t, r) {
189
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
190
+ const n = this.$$c.$on(e, t);
191
+ this.$$l_u.set(t, n);
222
192
  }
223
- super.addEventListener(t, r, n);
193
+ super.addEventListener(e, t, r);
224
194
  }
225
- removeEventListener(t, r, n) {
226
- if (super.removeEventListener(t, r, n), this.$$c) {
227
- const i = this.$$l_u.get(r);
228
- i && (i(), this.$$l_u.delete(r));
195
+ removeEventListener(e, t, r) {
196
+ if (super.removeEventListener(e, t, r), this.$$c) {
197
+ const n = this.$$l_u.get(t);
198
+ n && (n(), this.$$l_u.delete(t));
229
199
  }
230
200
  }
231
- connectedCallback() {
232
- return Ce(this, null, function* () {
233
- if (this.$$cn = !0, !this.$$c) {
234
- let t = function(s) {
235
- return () => {
236
- let o;
237
- return {
238
- c: function() {
239
- o = st("slot"), s !== "default" && Ut(o, "name", s);
240
- },
241
- /**
242
- * @param {HTMLElement} target
243
- * @param {HTMLElement} [anchor]
244
- */
245
- m: function(a, l) {
246
- it(a, o, l);
247
- },
248
- d: function(a) {
249
- a && Ae(o);
250
- }
251
- };
201
+ async connectedCallback() {
202
+ if (this.$$cn = !0, !this.$$c) {
203
+ let e = function(i) {
204
+ return () => {
205
+ let s;
206
+ return {
207
+ c: function() {
208
+ s = Ke("slot"), i !== "default" && At(s, "name", i);
209
+ },
210
+ /**
211
+ * @param {HTMLElement} target
212
+ * @param {HTMLElement} [anchor]
213
+ */
214
+ m: function(f, a) {
215
+ Ye(f, s, a);
216
+ },
217
+ d: function(f) {
218
+ f && Se(s);
219
+ }
252
220
  };
253
221
  };
254
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
255
- return;
256
- const r = {}, n = Dt(this);
257
- for (const s of this.$$s)
258
- s in n && (r[s] = [t(s)]);
259
- for (const s of this.attributes) {
260
- const o = this.$$g_p(s.name);
261
- o in this.$$d || (this.$$d[o] = q(o, s.value, this.$$p_d, "toProp"));
222
+ };
223
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
224
+ return;
225
+ const t = {}, r = Nt(this);
226
+ for (const i of this.$$s)
227
+ i in r && (t[i] = [e(i)]);
228
+ for (const i of this.attributes) {
229
+ const s = this.$$g_p(i.name);
230
+ s in this.$$d || (this.$$d[s] = J(s, i.value, this.$$p_d, "toProp"));
231
+ }
232
+ for (const i in this.$$p_d)
233
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
234
+ this.$$c = new this.$$ctor({
235
+ target: this.shadowRoot || this,
236
+ props: {
237
+ ...this.$$d,
238
+ $$slots: t,
239
+ $$scope: {
240
+ ctx: []
241
+ }
262
242
  }
263
- for (const s in this.$$p_d)
264
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
265
- this.$$c = new this.$$ctor({
266
- target: this.shadowRoot || this,
267
- props: Me(Le({}, this.$$d), {
268
- $$slots: r,
269
- $$scope: {
270
- ctx: []
271
- }
272
- })
273
- });
274
- const i = () => {
275
- this.$$r = !0;
276
- for (const s in this.$$p_d)
277
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
278
- const o = q(
279
- s,
280
- this.$$d[s],
281
- this.$$p_d,
282
- "toAttribute"
283
- );
284
- o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
285
- }
286
- this.$$r = !1;
287
- };
288
- this.$$c.$$.after_update.push(i), i();
289
- for (const s in this.$$l)
290
- for (const o of this.$$l[s]) {
291
- const u = this.$$c.$on(s, o);
292
- this.$$l_u.set(o, u);
243
+ });
244
+ const n = () => {
245
+ this.$$r = !0;
246
+ for (const i in this.$$p_d)
247
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
248
+ const s = J(
249
+ i,
250
+ this.$$d[i],
251
+ this.$$p_d,
252
+ "toAttribute"
253
+ );
254
+ s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
293
255
  }
294
- this.$$l = {};
295
- }
296
- });
256
+ this.$$r = !1;
257
+ };
258
+ this.$$c.$$.after_update.push(n), n();
259
+ for (const i in this.$$l)
260
+ for (const s of this.$$l[i]) {
261
+ const u = this.$$c.$on(i, s);
262
+ this.$$l_u.set(s, u);
263
+ }
264
+ this.$$l = {};
265
+ }
297
266
  }
298
267
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
299
268
  // and setting attributes through setAttribute etc, this is helpful
300
- attributeChangedCallback(t, r, n) {
301
- var i;
302
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = q(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
269
+ attributeChangedCallback(e, t, r) {
270
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = J(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
303
271
  }
304
272
  disconnectedCallback() {
305
273
  this.$$cn = !1, Promise.resolve().then(() => {
306
274
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
307
275
  });
308
276
  }
309
- $$g_p(t) {
277
+ $$g_p(e) {
310
278
  return Object.keys(this.$$p_d).find(
311
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
312
- ) || t;
279
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
280
+ ) || e;
313
281
  }
314
282
  });
315
- function q(e, t, r, n) {
316
- var s;
317
- const i = (s = r[e]) == null ? void 0 : s.type;
283
+ function J(e, t, r, n) {
284
+ const i = r[e]?.type;
318
285
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
319
286
  return t;
320
287
  if (n === "toAttribute")
@@ -325,7 +292,7 @@ function q(e, t, r, n) {
325
292
  case "Boolean":
326
293
  return t ? "" : null;
327
294
  case "Number":
328
- return t == null ? null : t;
295
+ return t ?? null;
329
296
  default:
330
297
  return t;
331
298
  }
@@ -342,59 +309,55 @@ function q(e, t, r, n) {
342
309
  return t;
343
310
  }
344
311
  }
345
- function qt(e, t, r, n, i, s) {
346
- let o = class extends ot {
312
+ function Dt(e, t, r, n, i, s) {
313
+ let u = class extends et {
347
314
  constructor() {
348
315
  super(e, r, i), this.$$p_d = t;
349
316
  }
350
317
  static get observedAttributes() {
351
318
  return Object.keys(t).map(
352
- (u) => (t[u].attribute || u).toLowerCase()
319
+ (o) => (t[o].attribute || o).toLowerCase()
353
320
  );
354
321
  }
355
322
  };
356
- return Object.keys(t).forEach((u) => {
357
- Object.defineProperty(o.prototype, u, {
323
+ return Object.keys(t).forEach((o) => {
324
+ Object.defineProperty(u.prototype, o, {
358
325
  get() {
359
- return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
326
+ return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
360
327
  },
361
- set(h) {
362
- var a;
363
- h = q(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
328
+ set(f) {
329
+ f = J(o, f, t), this.$$d[o] = f, this.$$c?.$set({ [o]: f });
364
330
  }
365
331
  });
366
- }), n.forEach((u) => {
367
- Object.defineProperty(o.prototype, u, {
332
+ }), n.forEach((o) => {
333
+ Object.defineProperty(u.prototype, o, {
368
334
  get() {
369
- var h;
370
- return (h = this.$$c) == null ? void 0 : h[u];
335
+ return this.$$c?.[o];
371
336
  }
372
337
  });
373
338
  }), e.element = /** @type {any} */
374
- o, o;
375
- }
376
- class Yt {
377
- constructor() {
378
- /**
379
- * ### PRIVATE API
380
- *
381
- * Do not use, may change at any time
382
- *
383
- * @type {any}
384
- */
385
- _(this, "$$");
386
- /**
387
- * ### PRIVATE API
388
- *
389
- * Do not use, may change at any time
390
- *
391
- * @type {any}
392
- */
393
- _(this, "$$set");
394
- }
339
+ u, u;
340
+ }
341
+ class Ft {
342
+ /**
343
+ * ### PRIVATE API
344
+ *
345
+ * Do not use, may change at any time
346
+ *
347
+ * @type {any}
348
+ */
349
+ $$ = void 0;
350
+ /**
351
+ * ### PRIVATE API
352
+ *
353
+ * Do not use, may change at any time
354
+ *
355
+ * @type {any}
356
+ */
357
+ $$set = void 0;
395
358
  /** @returns {void} */
396
359
  $destroy() {
397
- Zt(this, 1), this.$destroy = v;
360
+ Rt(this, 1), this.$destroy = _;
398
361
  }
399
362
  /**
400
363
  * @template {Extract<keyof Events, string>} K
@@ -403,8 +366,8 @@ class Yt {
403
366
  * @returns {() => void}
404
367
  */
405
368
  $on(t, r) {
406
- if (!Be(r))
407
- return v;
369
+ if (!Te(r))
370
+ return _;
408
371
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
409
372
  return n.push(r), () => {
410
373
  const i = n.indexOf(r);
@@ -416,159 +379,159 @@ class Yt {
416
379
  * @returns {void}
417
380
  */
418
381
  $set(t) {
419
- this.$$set && !Ct(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
382
+ this.$$set && !St(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
420
383
  }
421
384
  }
422
- const Kt = "4";
423
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kt);
424
- const O = [];
425
- function er(e, t) {
385
+ const jt = "4";
386
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jt);
387
+ const N = [];
388
+ function Vt(e, t) {
426
389
  return {
427
- subscribe: re(e, t).subscribe
390
+ subscribe: te(e, t).subscribe
428
391
  };
429
392
  }
430
- function re(e, t = v) {
393
+ function te(e, t = _) {
431
394
  let r;
432
395
  const n = /* @__PURE__ */ new Set();
433
- function i(u) {
434
- if (rt(e, u) && (e = u, r)) {
435
- const h = !O.length;
396
+ function i(o) {
397
+ if (Je(e, o) && (e = o, r)) {
398
+ const f = !N.length;
436
399
  for (const a of n)
437
- a[1](), O.push(a, e);
438
- if (h) {
439
- for (let a = 0; a < O.length; a += 2)
440
- O[a][0](O[a + 1]);
441
- O.length = 0;
400
+ a[1](), N.push(a, e);
401
+ if (f) {
402
+ for (let a = 0; a < N.length; a += 2)
403
+ N[a][0](N[a + 1]);
404
+ N.length = 0;
442
405
  }
443
406
  }
444
407
  }
445
- function s(u) {
446
- i(u(e));
408
+ function s(o) {
409
+ i(o(e));
447
410
  }
448
- function o(u, h = v) {
449
- const a = [u, h];
450
- return n.add(a), n.size === 1 && (r = t(i, s) || v), u(e), () => {
411
+ function u(o, f = _) {
412
+ const a = [o, f];
413
+ return n.add(a), n.size === 1 && (r = t(i, s) || _), o(e), () => {
451
414
  n.delete(a), n.size === 0 && r && (r(), r = null);
452
415
  };
453
416
  }
454
- return { set: i, update: s, subscribe: o };
417
+ return { set: i, update: s, subscribe: u };
455
418
  }
456
- function U(e, t, r) {
419
+ function R(e, t, r) {
457
420
  const n = !Array.isArray(e), i = n ? [e] : e;
458
421
  if (!i.every(Boolean))
459
422
  throw new Error("derived() expects stores as input, got a falsy value");
460
423
  const s = t.length < 2;
461
- return er(r, (o, u) => {
462
- let h = !1;
424
+ return Vt(r, (u, o) => {
425
+ let f = !1;
463
426
  const a = [];
464
- let l = 0, f = v;
427
+ let h = 0, l = _;
465
428
  const c = () => {
466
- if (l)
429
+ if (h)
467
430
  return;
468
- f();
469
- const g = t(n ? a[0] : a, o, u);
470
- s ? o(g) : f = Be(g) ? g : v;
431
+ l();
432
+ const g = t(n ? a[0] : a, u, o);
433
+ s ? u(g) : l = Te(g) ? g : _;
471
434
  }, b = i.map(
472
- (g, y) => nt(
435
+ (g, y) => qe(
473
436
  g,
474
- (T) => {
475
- a[y] = T, l &= ~(1 << y), h && c();
437
+ (H) => {
438
+ a[y] = H, h &= ~(1 << y), f && c();
476
439
  },
477
440
  () => {
478
- l |= 1 << y;
441
+ h |= 1 << y;
479
442
  }
480
443
  )
481
444
  );
482
- return h = !0, c(), function() {
483
- z(b), f(), h = !1;
445
+ return f = !0, c(), function() {
446
+ W(b), l(), f = !1;
484
447
  };
485
448
  });
486
449
  }
487
- function tr(e) {
450
+ function kt(e) {
488
451
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
489
452
  }
490
- var rr = function(t) {
491
- return nr(t) && !ir(t);
453
+ var Xt = function(t) {
454
+ return Wt(t) && !zt(t);
492
455
  };
493
- function nr(e) {
456
+ function Wt(e) {
494
457
  return !!e && typeof e == "object";
495
458
  }
496
- function ir(e) {
459
+ function zt(e) {
497
460
  var t = Object.prototype.toString.call(e);
498
- return t === "[object RegExp]" || t === "[object Date]" || ar(e);
461
+ return t === "[object RegExp]" || t === "[object Date]" || Jt(e);
499
462
  }
500
- var sr = typeof Symbol == "function" && Symbol.for, or = sr ? Symbol.for("react.element") : 60103;
501
- function ar(e) {
502
- return e.$$typeof === or;
463
+ var Zt = typeof Symbol == "function" && Symbol.for, Qt = Zt ? Symbol.for("react.element") : 60103;
464
+ function Jt(e) {
465
+ return e.$$typeof === Qt;
503
466
  }
504
- function ur(e) {
467
+ function qt(e) {
505
468
  return Array.isArray(e) ? [] : {};
506
469
  }
507
- function X(e, t) {
508
- return t.clone !== !1 && t.isMergeableObject(e) ? L(ur(e), e, t) : e;
470
+ function k(e, t) {
471
+ return t.clone !== !1 && t.isMergeableObject(e) ? $(qt(e), e, t) : e;
509
472
  }
510
- function hr(e, t, r) {
473
+ function Yt(e, t, r) {
511
474
  return e.concat(t).map(function(n) {
512
- return X(n, r);
475
+ return k(n, r);
513
476
  });
514
477
  }
515
- function lr(e, t) {
478
+ function Kt(e, t) {
516
479
  if (!t.customMerge)
517
- return L;
480
+ return $;
518
481
  var r = t.customMerge(e);
519
- return typeof r == "function" ? r : L;
482
+ return typeof r == "function" ? r : $;
520
483
  }
521
- function fr(e) {
484
+ function er(e) {
522
485
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
523
486
  return Object.propertyIsEnumerable.call(e, t);
524
487
  }) : [];
525
488
  }
526
- function De(e) {
527
- return Object.keys(e).concat(fr(e));
489
+ function Le(e) {
490
+ return Object.keys(e).concat(er(e));
528
491
  }
529
- function at(e, t) {
492
+ function tt(e, t) {
530
493
  try {
531
494
  return t in e;
532
- } catch (r) {
495
+ } catch {
533
496
  return !1;
534
497
  }
535
498
  }
536
- function cr(e, t) {
537
- return at(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
499
+ function tr(e, t) {
500
+ return tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
538
501
  }
539
- function mr(e, t, r) {
502
+ function rr(e, t, r) {
540
503
  var n = {};
541
- return r.isMergeableObject(e) && De(e).forEach(function(i) {
542
- n[i] = X(e[i], r);
543
- }), De(t).forEach(function(i) {
544
- cr(e, i) || (at(e, i) && r.isMergeableObject(t[i]) ? n[i] = lr(i, r)(e[i], t[i], r) : n[i] = X(t[i], r));
504
+ return r.isMergeableObject(e) && Le(e).forEach(function(i) {
505
+ n[i] = k(e[i], r);
506
+ }), Le(t).forEach(function(i) {
507
+ tr(e, i) || (tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kt(i, r)(e[i], t[i], r) : n[i] = k(t[i], r));
545
508
  }), n;
546
509
  }
547
- function L(e, t, r) {
548
- r = r || {}, r.arrayMerge = r.arrayMerge || hr, r.isMergeableObject = r.isMergeableObject || rr, r.cloneUnlessOtherwiseSpecified = X;
510
+ function $(e, t, r) {
511
+ r = r || {}, r.arrayMerge = r.arrayMerge || Yt, r.isMergeableObject = r.isMergeableObject || Xt, r.cloneUnlessOtherwiseSpecified = k;
549
512
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
550
- return s ? n ? r.arrayMerge(e, t, r) : mr(e, t, r) : X(t, r);
513
+ return s ? n ? r.arrayMerge(e, t, r) : rr(e, t, r) : k(t, r);
551
514
  }
552
- L.all = function(t, r) {
515
+ $.all = function(t, r) {
553
516
  if (!Array.isArray(t))
554
517
  throw new Error("first argument should be an array");
555
518
  return t.reduce(function(n, i) {
556
- return L(n, i, r);
519
+ return $(n, i, r);
557
520
  }, {});
558
521
  };
559
- var pr = L, dr = pr;
560
- const br = /* @__PURE__ */ tr(dr);
561
- var ge = function(e, t) {
562
- return ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
522
+ var nr = $, ir = nr;
523
+ const sr = /* @__PURE__ */ kt(ir);
524
+ var de = function(e, t) {
525
+ return de = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
563
526
  r.__proto__ = n;
564
527
  } || function(r, n) {
565
528
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
566
- }, ge(e, t);
529
+ }, de(e, t);
567
530
  };
568
- function ne(e, t) {
531
+ function re(e, t) {
569
532
  if (typeof t != "function" && t !== null)
570
533
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
571
- ge(e, t);
534
+ de(e, t);
572
535
  function r() {
573
536
  this.constructor = e;
574
537
  }
@@ -583,7 +546,7 @@ var d = function() {
583
546
  return t;
584
547
  }, d.apply(this, arguments);
585
548
  };
586
- function gr(e, t) {
549
+ function or(e, t) {
587
550
  var r = {};
588
551
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
589
552
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -591,45 +554,45 @@ function gr(e, t) {
591
554
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
592
555
  return r;
593
556
  }
594
- function he(e, t, r) {
557
+ function ae(e, t, r) {
595
558
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
596
559
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
597
560
  return e.concat(s || Array.prototype.slice.call(t));
598
561
  }
599
- function le(e, t) {
600
- var r = t && t.cache ? t.cache : Tr, n = t && t.serializer ? t.serializer : vr, i = t && t.strategy ? t.strategy : xr;
562
+ function ue(e, t) {
563
+ var r = t && t.cache ? t.cache : mr, n = t && t.serializer ? t.serializer : fr, i = t && t.strategy ? t.strategy : ur;
601
564
  return i(e, {
602
565
  cache: r,
603
566
  serializer: n
604
567
  });
605
568
  }
606
- function Er(e) {
569
+ function ar(e) {
607
570
  return e == null || typeof e == "number" || typeof e == "boolean";
608
571
  }
609
- function ut(e, t, r, n) {
610
- var i = Er(n) ? n : r(n), s = t.get(i);
611
- return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
572
+ function rt(e, t, r, n) {
573
+ var i = ar(n) ? n : r(n), s = t.get(i);
574
+ return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
612
575
  }
613
- function ht(e, t, r) {
576
+ function nt(e, t, r) {
614
577
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
615
- return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
578
+ return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
616
579
  }
617
- function Ne(e, t, r, n, i) {
580
+ function Ae(e, t, r, n, i) {
618
581
  return r.bind(t, e, n, i);
619
582
  }
620
- function xr(e, t) {
621
- var r = e.length === 1 ? ut : ht;
622
- return Ne(e, this, r, t.cache.create(), t.serializer);
583
+ function ur(e, t) {
584
+ var r = e.length === 1 ? rt : nt;
585
+ return Ae(e, this, r, t.cache.create(), t.serializer);
623
586
  }
624
- function yr(e, t) {
625
- return Ne(e, this, ht, t.cache.create(), t.serializer);
587
+ function hr(e, t) {
588
+ return Ae(e, this, nt, t.cache.create(), t.serializer);
626
589
  }
627
- function _r(e, t) {
628
- return Ne(e, this, ut, t.cache.create(), t.serializer);
590
+ function lr(e, t) {
591
+ return Ae(e, this, rt, t.cache.create(), t.serializer);
629
592
  }
630
- var vr = function() {
593
+ var fr = function() {
631
594
  return JSON.stringify(arguments);
632
- }, Hr = (
595
+ }, cr = (
633
596
  /** @class */
634
597
  function() {
635
598
  function e() {
@@ -641,13 +604,13 @@ var vr = function() {
641
604
  this.cache[t] = r;
642
605
  }, e;
643
606
  }()
644
- ), Tr = {
607
+ ), mr = {
645
608
  create: function() {
646
- return new Hr();
609
+ return new cr();
647
610
  }
648
- }, fe = {
649
- variadic: yr,
650
- monadic: _r
611
+ }, he = {
612
+ variadic: hr,
613
+ monadic: lr
651
614
  }, m;
652
615
  (function(e) {
653
616
  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";
@@ -656,47 +619,47 @@ var E;
656
619
  (function(e) {
657
620
  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";
658
621
  })(E || (E = {}));
659
- var M;
622
+ var L;
660
623
  (function(e) {
661
624
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
662
- })(M || (M = {}));
663
- function Fe(e) {
625
+ })(L || (L = {}));
626
+ function Me(e) {
664
627
  return e.type === E.literal;
665
628
  }
666
- function Sr(e) {
629
+ function pr(e) {
667
630
  return e.type === E.argument;
668
631
  }
669
- function lt(e) {
632
+ function it(e) {
670
633
  return e.type === E.number;
671
634
  }
672
- function ft(e) {
635
+ function st(e) {
673
636
  return e.type === E.date;
674
637
  }
675
- function ct(e) {
638
+ function ot(e) {
676
639
  return e.type === E.time;
677
640
  }
678
- function mt(e) {
641
+ function at(e) {
679
642
  return e.type === E.select;
680
643
  }
681
- function pt(e) {
644
+ function ut(e) {
682
645
  return e.type === E.plural;
683
646
  }
684
- function Br(e) {
647
+ function dr(e) {
685
648
  return e.type === E.pound;
686
649
  }
687
- function dt(e) {
650
+ function ht(e) {
688
651
  return e.type === E.tag;
689
652
  }
690
- function bt(e) {
691
- return !!(e && typeof e == "object" && e.type === M.number);
653
+ function lt(e) {
654
+ return !!(e && typeof e == "object" && e.type === L.number);
692
655
  }
693
- function Ee(e) {
694
- return !!(e && typeof e == "object" && e.type === M.dateTime);
656
+ function be(e) {
657
+ return !!(e && typeof e == "object" && e.type === L.dateTime);
695
658
  }
696
- var gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ar = /(?:[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;
697
- function Pr(e) {
659
+ var ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, br = /(?:[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;
660
+ function gr(e) {
698
661
  var t = {};
699
- return e.replace(Ar, function(r) {
662
+ return e.replace(br, function(r) {
700
663
  var n = r.length;
701
664
  switch (r[0]) {
702
665
  case "G":
@@ -785,36 +748,36 @@ function Pr(e) {
785
748
  return "";
786
749
  }), t;
787
750
  }
788
- var Nr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
789
- function Or(e) {
751
+ var Er = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
752
+ function xr(e) {
790
753
  if (e.length === 0)
791
754
  throw new Error("Number skeleton cannot be empty");
792
- for (var t = e.split(Nr).filter(function(c) {
755
+ for (var t = e.split(Er).filter(function(c) {
793
756
  return c.length > 0;
794
757
  }), r = [], n = 0, i = t; n < i.length; n++) {
795
- var s = i[n], o = s.split("/");
796
- if (o.length === 0)
758
+ var s = i[n], u = s.split("/");
759
+ if (u.length === 0)
797
760
  throw new Error("Invalid number skeleton");
798
- for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
799
- var f = l[a];
800
- if (f.length === 0)
761
+ for (var o = u[0], f = u.slice(1), a = 0, h = f; a < h.length; a++) {
762
+ var l = h[a];
763
+ if (l.length === 0)
801
764
  throw new Error("Invalid number skeleton");
802
765
  }
803
- r.push({ stem: u, options: h });
766
+ r.push({ stem: o, options: f });
804
767
  }
805
768
  return r;
806
769
  }
807
- function Ir(e) {
770
+ function yr(e) {
808
771
  return e.replace(/^(.*?)-/, "");
809
772
  }
810
- var je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Et = /^(@+)?(\+|#+)?[rs]?$/g, wr = /(\*)(0+)|(#+)(0+)|(0+)/g, xt = /^(0+)$/;
811
- function Ve(e) {
773
+ var Ce = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ct = /^(@+)?(\+|#+)?[rs]?$/g, _r = /(\*)(0+)|(#+)(0+)|(0+)/g, mt = /^(0+)$/;
774
+ function Re(e) {
812
775
  var t = {};
813
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Et, function(r, n, i) {
776
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ct, function(r, n, i) {
814
777
  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)), "";
815
778
  }), t;
816
779
  }
817
- function yt(e) {
780
+ function pt(e) {
818
781
  switch (e) {
819
782
  case "sign-auto":
820
783
  return {
@@ -854,7 +817,7 @@ function yt(e) {
854
817
  };
855
818
  }
856
819
  }
857
- function $r(e) {
820
+ function vr(e) {
858
821
  var t;
859
822
  if (e[0] === "E" && e[1] === "E" ? (t = {
860
823
  notation: "engineering"
@@ -862,17 +825,17 @@ function $r(e) {
862
825
  notation: "scientific"
863
826
  }, e = e.slice(1)), t) {
864
827
  var r = e.slice(0, 2);
865
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !xt.test(e))
828
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mt.test(e))
866
829
  throw new Error("Malformed concise eng/scientific notation");
867
830
  t.minimumIntegerDigits = e.length;
868
831
  }
869
832
  return t;
870
833
  }
871
- function ke(e) {
872
- var t = {}, r = yt(e);
834
+ function Ue(e) {
835
+ var t = {}, r = pt(e);
873
836
  return r || t;
874
837
  }
875
- function Lr(e) {
838
+ function Hr(e) {
876
839
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
877
840
  var i = n[r];
878
841
  switch (i.stem) {
@@ -896,7 +859,7 @@ function Lr(e) {
896
859
  continue;
897
860
  case "measure-unit":
898
861
  case "unit":
899
- t.style = "unit", t.unit = Ir(i.options[0]);
862
+ t.style = "unit", t.unit = yr(i.options[0]);
900
863
  continue;
901
864
  case "compact-short":
902
865
  case "K":
@@ -907,13 +870,13 @@ function Lr(e) {
907
870
  t.notation = "compact", t.compactDisplay = "long";
908
871
  continue;
909
872
  case "scientific":
910
- t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
911
- return d(d({}, h), ke(a));
873
+ t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(f, a) {
874
+ return d(d({}, f), Ue(a));
912
875
  }, {}));
913
876
  continue;
914
877
  case "engineering":
915
- t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
916
- return d(d({}, h), ke(a));
878
+ t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(f, a) {
879
+ return d(d({}, f), Ue(a));
917
880
  }, {}));
918
881
  continue;
919
882
  case "notation-simple":
@@ -958,11 +921,11 @@ function Lr(e) {
958
921
  case "integer-width":
959
922
  if (i.options.length > 1)
960
923
  throw new RangeError("integer-width stems only accept a single optional option");
961
- i.options[0].replace(wr, function(h, a, l, f, c, b) {
924
+ i.options[0].replace(_r, function(f, a, h, l, c, b) {
962
925
  if (a)
963
- t.minimumIntegerDigits = l.length;
926
+ t.minimumIntegerDigits = h.length;
964
927
  else {
965
- if (f && c)
928
+ if (l && c)
966
929
  throw new Error("We currently do not support maximum integer digits");
967
930
  if (b)
968
931
  throw new Error("We currently do not support exact integer digits");
@@ -971,32 +934,32 @@ function Lr(e) {
971
934
  });
972
935
  continue;
973
936
  }
974
- if (xt.test(i.stem)) {
937
+ if (mt.test(i.stem)) {
975
938
  t.minimumIntegerDigits = i.stem.length;
976
939
  continue;
977
940
  }
978
- if (je.test(i.stem)) {
941
+ if (Ce.test(i.stem)) {
979
942
  if (i.options.length > 1)
980
943
  throw new RangeError("Fraction-precision stems only accept a single optional option");
981
- i.stem.replace(je, function(h, a, l, f, c, b) {
982
- return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
944
+ i.stem.replace(Ce, function(f, a, h, l, c, b) {
945
+ return h === "*" ? t.minimumFractionDigits = a.length : l && l[0] === "#" ? t.maximumFractionDigits = l.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
983
946
  });
984
947
  var s = i.options[0];
985
- s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Ve(s)));
948
+ s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Re(s)));
986
949
  continue;
987
950
  }
988
- if (Et.test(i.stem)) {
989
- t = d(d({}, t), Ve(i.stem));
951
+ if (ct.test(i.stem)) {
952
+ t = d(d({}, t), Re(i.stem));
990
953
  continue;
991
954
  }
992
- var o = yt(i.stem);
993
- o && (t = d(d({}, t), o));
994
- var u = $r(i.stem);
955
+ var u = pt(i.stem);
995
956
  u && (t = d(d({}, t), u));
957
+ var o = vr(i.stem);
958
+ o && (t = d(d({}, t), o));
996
959
  }
997
960
  return t;
998
961
  }
999
- var J = {
962
+ var Q = {
1000
963
  "001": [
1001
964
  "H",
1002
965
  "h"
@@ -2411,22 +2374,22 @@ var J = {
2411
2374
  "h"
2412
2375
  ]
2413
2376
  };
2414
- function Mr(e, t) {
2377
+ function Tr(e, t) {
2415
2378
  for (var r = "", n = 0; n < e.length; n++) {
2416
2379
  var i = e.charAt(n);
2417
2380
  if (i === "j") {
2418
2381
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2419
2382
  s++, n++;
2420
- var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = Cr(t);
2421
- for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
2422
- r += h;
2423
- for (; o-- > 0; )
2383
+ var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), f = "a", a = Sr(t);
2384
+ for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
2385
+ r += f;
2386
+ for (; u-- > 0; )
2424
2387
  r = a + r;
2425
2388
  } else i === "J" ? r += "H" : r += i;
2426
2389
  }
2427
2390
  return r;
2428
2391
  }
2429
- function Cr(e) {
2392
+ function Sr(e) {
2430
2393
  var t = e.hourCycle;
2431
2394
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2432
2395
  e.hourCycles && // @ts-ignore
@@ -2445,23 +2408,23 @@ function Cr(e) {
2445
2408
  }
2446
2409
  var r = e.language, n;
2447
2410
  r !== "root" && (n = e.maximize().region);
2448
- var i = J[n || ""] || J[r || ""] || J["".concat(r, "-001")] || J["001"];
2411
+ var i = Q[n || ""] || Q[r || ""] || Q["".concat(r, "-001")] || Q["001"];
2449
2412
  return i[0];
2450
2413
  }
2451
- var ce, Rr = new RegExp("^".concat(gt.source, "*")), Ur = new RegExp("".concat(gt.source, "*$"));
2414
+ var le, Br = new RegExp("^".concat(ft.source, "*")), Ar = new RegExp("".concat(ft.source, "*$"));
2452
2415
  function p(e, t) {
2453
2416
  return { start: e, end: t };
2454
2417
  }
2455
- var Gr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dr = !!String.fromCodePoint, Fr = !!Object.fromEntries, jr = !!String.prototype.codePointAt, Vr = !!String.prototype.trimStart, kr = !!String.prototype.trimEnd, Xr = !!Number.isSafeInteger, Wr = Xr ? Number.isSafeInteger : function(e) {
2418
+ var Pr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nr = !!String.fromCodePoint, Or = !!Object.fromEntries, Ir = !!String.prototype.codePointAt, wr = !!String.prototype.trimStart, $r = !!String.prototype.trimEnd, Lr = !!Number.isSafeInteger, Mr = Lr ? Number.isSafeInteger : function(e) {
2456
2419
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2457
- }, xe = !0;
2420
+ }, ge = !0;
2458
2421
  try {
2459
- var zr = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2460
- xe = ((ce = zr.exec("a")) === null || ce === void 0 ? void 0 : ce[0]) === "a";
2461
- } catch (e) {
2462
- xe = !1;
2422
+ var Cr = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2423
+ ge = ((le = Cr.exec("a")) === null || le === void 0 ? void 0 : le[0]) === "a";
2424
+ } catch {
2425
+ ge = !1;
2463
2426
  }
2464
- var Xe = Gr ? (
2427
+ var Ge = Pr ? (
2465
2428
  // Native
2466
2429
  function(t, r, n) {
2467
2430
  return t.startsWith(r, n);
@@ -2471,31 +2434,31 @@ var Xe = Gr ? (
2471
2434
  function(t, r, n) {
2472
2435
  return t.slice(n, n + r.length) === r;
2473
2436
  }
2474
- ), ye = Dr ? String.fromCodePoint : (
2437
+ ), Ee = Nr ? String.fromCodePoint : (
2475
2438
  // IE11
2476
2439
  function() {
2477
2440
  for (var t = [], r = 0; r < arguments.length; r++)
2478
2441
  t[r] = arguments[r];
2479
- for (var n = "", i = t.length, s = 0, o; i > s; ) {
2480
- if (o = t[s++], o > 1114111)
2481
- throw RangeError(o + " is not a valid code point");
2482
- n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2442
+ for (var n = "", i = t.length, s = 0, u; i > s; ) {
2443
+ if (u = t[s++], u > 1114111)
2444
+ throw RangeError(u + " is not a valid code point");
2445
+ n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
2483
2446
  }
2484
2447
  return n;
2485
2448
  }
2486
- ), We = (
2449
+ ), De = (
2487
2450
  // native
2488
- Fr ? Object.fromEntries : (
2451
+ Or ? Object.fromEntries : (
2489
2452
  // Ponyfill
2490
2453
  function(t) {
2491
2454
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2492
- var s = i[n], o = s[0], u = s[1];
2493
- r[o] = u;
2455
+ var s = i[n], u = s[0], o = s[1];
2456
+ r[u] = o;
2494
2457
  }
2495
2458
  return r;
2496
2459
  }
2497
2460
  )
2498
- ), _t = jr ? (
2461
+ ), dt = Ir ? (
2499
2462
  // Native
2500
2463
  function(t, r) {
2501
2464
  return t.codePointAt(r);
@@ -2509,7 +2472,7 @@ var Xe = Gr ? (
2509
2472
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2510
2473
  }
2511
2474
  }
2512
- ), Zr = Vr ? (
2475
+ ), Rr = wr ? (
2513
2476
  // Native
2514
2477
  function(t) {
2515
2478
  return t.trimStart();
@@ -2517,9 +2480,9 @@ var Xe = Gr ? (
2517
2480
  ) : (
2518
2481
  // Ponyfill
2519
2482
  function(t) {
2520
- return t.replace(Rr, "");
2483
+ return t.replace(Br, "");
2521
2484
  }
2522
- ), Qr = kr ? (
2485
+ ), Ur = $r ? (
2523
2486
  // Native
2524
2487
  function(t) {
2525
2488
  return t.trimEnd();
@@ -2527,32 +2490,32 @@ var Xe = Gr ? (
2527
2490
  ) : (
2528
2491
  // Ponyfill
2529
2492
  function(t) {
2530
- return t.replace(Ur, "");
2493
+ return t.replace(Ar, "");
2531
2494
  }
2532
2495
  );
2533
- function vt(e, t) {
2496
+ function bt(e, t) {
2534
2497
  return new RegExp(e, t);
2535
2498
  }
2536
- var _e;
2537
- if (xe) {
2538
- var ze = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2539
- _e = function(t, r) {
2499
+ var xe;
2500
+ if (ge) {
2501
+ var Fe = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2502
+ xe = function(t, r) {
2540
2503
  var n;
2541
- ze.lastIndex = r;
2542
- var i = ze.exec(t);
2504
+ Fe.lastIndex = r;
2505
+ var i = Fe.exec(t);
2543
2506
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2544
2507
  };
2545
2508
  } else
2546
- _e = function(t, r) {
2509
+ xe = function(t, r) {
2547
2510
  for (var n = []; ; ) {
2548
- var i = _t(t, r);
2549
- if (i === void 0 || Ht(i) || Kr(i))
2511
+ var i = dt(t, r);
2512
+ if (i === void 0 || gt(i) || jr(i))
2550
2513
  break;
2551
2514
  n.push(i), r += i >= 65536 ? 2 : 1;
2552
2515
  }
2553
- return ye.apply(void 0, n);
2516
+ return Ee.apply(void 0, n);
2554
2517
  };
2555
- var Jr = (
2518
+ var Gr = (
2556
2519
  /** @class */
2557
2520
  function() {
2558
2521
  function e(t, r) {
@@ -2566,33 +2529,33 @@ var Jr = (
2566
2529
  for (var i = []; !this.isEOF(); ) {
2567
2530
  var s = this.char();
2568
2531
  if (s === 123) {
2569
- var o = this.parseArgument(t, n);
2570
- if (o.err)
2571
- return o;
2572
- i.push(o.val);
2532
+ var u = this.parseArgument(t, n);
2533
+ if (u.err)
2534
+ return u;
2535
+ i.push(u.val);
2573
2536
  } else {
2574
2537
  if (s === 125 && t > 0)
2575
2538
  break;
2576
2539
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2577
- var u = this.clonePosition();
2540
+ var o = this.clonePosition();
2578
2541
  this.bump(), i.push({
2579
2542
  type: E.pound,
2580
- location: p(u, this.clonePosition())
2543
+ location: p(o, this.clonePosition())
2581
2544
  });
2582
2545
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2583
2546
  if (n)
2584
2547
  break;
2585
2548
  return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2586
- } else if (s === 60 && !this.ignoreTag && ve(this.peek() || 0)) {
2587
- var o = this.parseTag(t, r);
2588
- if (o.err)
2589
- return o;
2590
- i.push(o.val);
2549
+ } else if (s === 60 && !this.ignoreTag && ye(this.peek() || 0)) {
2550
+ var u = this.parseTag(t, r);
2551
+ if (u.err)
2552
+ return u;
2553
+ i.push(u.val);
2591
2554
  } else {
2592
- var o = this.parseLiteral(t, r);
2593
- if (o.err)
2594
- return o;
2595
- i.push(o.val);
2555
+ var u = this.parseLiteral(t, r);
2556
+ if (u.err)
2557
+ return u;
2558
+ i.push(u.val);
2596
2559
  }
2597
2560
  }
2598
2561
  }
@@ -2614,27 +2577,27 @@ var Jr = (
2614
2577
  var s = this.parseMessage(t + 1, r, !0);
2615
2578
  if (s.err)
2616
2579
  return s;
2617
- var o = s.val, u = this.clonePosition();
2580
+ var u = s.val, o = this.clonePosition();
2618
2581
  if (this.bumpIf("</")) {
2619
- if (this.isEOF() || !ve(this.char()))
2620
- return this.error(m.INVALID_TAG, p(u, this.clonePosition()));
2621
- var h = this.clonePosition(), a = this.parseTagName();
2622
- return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2582
+ if (this.isEOF() || !ye(this.char()))
2583
+ return this.error(m.INVALID_TAG, p(o, this.clonePosition()));
2584
+ var f = this.clonePosition(), a = this.parseTagName();
2585
+ return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2623
2586
  val: {
2624
2587
  type: E.tag,
2625
2588
  value: i,
2626
- children: o,
2589
+ children: u,
2627
2590
  location: p(n, this.clonePosition())
2628
2591
  },
2629
2592
  err: null
2630
- } : this.error(m.INVALID_TAG, p(u, this.clonePosition())));
2593
+ } : this.error(m.INVALID_TAG, p(o, this.clonePosition())));
2631
2594
  } else
2632
2595
  return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
2633
2596
  } else
2634
2597
  return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
2635
2598
  }, e.prototype.parseTagName = function() {
2636
2599
  var t = this.offset();
2637
- for (this.bump(); !this.isEOF() && Yr(this.char()); )
2600
+ for (this.bump(); !this.isEOF() && Fr(this.char()); )
2638
2601
  this.bump();
2639
2602
  return this.message.slice(t, this.offset());
2640
2603
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2644,26 +2607,26 @@ var Jr = (
2644
2607
  i += s;
2645
2608
  continue;
2646
2609
  }
2647
- var o = this.tryParseUnquoted(t, r);
2648
- if (o) {
2649
- i += o;
2650
- continue;
2651
- }
2652
- var u = this.tryParseLeftAngleBracket();
2610
+ var u = this.tryParseUnquoted(t, r);
2653
2611
  if (u) {
2654
2612
  i += u;
2655
2613
  continue;
2656
2614
  }
2615
+ var o = this.tryParseLeftAngleBracket();
2616
+ if (o) {
2617
+ i += o;
2618
+ continue;
2619
+ }
2657
2620
  break;
2658
2621
  }
2659
- var h = p(n, this.clonePosition());
2622
+ var f = p(n, this.clonePosition());
2660
2623
  return {
2661
- val: { type: E.literal, value: i, location: h },
2624
+ val: { type: E.literal, value: i, location: f },
2662
2625
  err: null
2663
2626
  };
2664
2627
  }, e.prototype.tryParseLeftAngleBracket = function() {
2665
2628
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2666
- !qr(this.peek() || 0)) ? (this.bump(), "<") : null;
2629
+ !Dr(this.peek() || 0)) ? (this.bump(), "<") : null;
2667
2630
  }, e.prototype.tryParseQuote = function(t) {
2668
2631
  if (this.isEOF() || this.char() !== 39)
2669
2632
  return null;
@@ -2697,12 +2660,12 @@ var Jr = (
2697
2660
  r.push(n);
2698
2661
  this.bump();
2699
2662
  }
2700
- return ye.apply(void 0, r);
2663
+ return Ee.apply(void 0, r);
2701
2664
  }, e.prototype.tryParseUnquoted = function(t, r) {
2702
2665
  if (this.isEOF())
2703
2666
  return null;
2704
2667
  var n = this.char();
2705
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ye(n));
2668
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ee(n));
2706
2669
  }, e.prototype.parseArgument = function(t, r) {
2707
2670
  var n = this.clonePosition();
2708
2671
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2731,15 +2694,15 @@ var Jr = (
2731
2694
  return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2732
2695
  }
2733
2696
  }, e.prototype.parseIdentifierIfPossible = function() {
2734
- var t = this.clonePosition(), r = this.offset(), n = _e(this.message, r), i = r + n.length;
2697
+ var t = this.clonePosition(), r = this.offset(), n = xe(this.message, r), i = r + n.length;
2735
2698
  this.bumpTo(i);
2736
- var s = this.clonePosition(), o = p(t, s);
2737
- return { value: n, location: o };
2699
+ var s = this.clonePosition(), u = p(t, s);
2700
+ return { value: n, location: u };
2738
2701
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2739
- var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2740
- switch (u) {
2702
+ var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, f = this.clonePosition();
2703
+ switch (o) {
2741
2704
  case "":
2742
- return this.error(m.EXPECT_ARGUMENT_TYPE, p(o, h));
2705
+ return this.error(m.EXPECT_ARGUMENT_TYPE, p(u, f));
2743
2706
  case "number":
2744
2707
  case "date":
2745
2708
  case "time": {
@@ -2747,50 +2710,50 @@ var Jr = (
2747
2710
  var a = null;
2748
2711
  if (this.bumpIf(",")) {
2749
2712
  this.bumpSpace();
2750
- var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2751
- if (f.err)
2752
- return f;
2753
- var c = Qr(f.val);
2713
+ var h = this.clonePosition(), l = this.parseSimpleArgStyleIfPossible();
2714
+ if (l.err)
2715
+ return l;
2716
+ var c = Ur(l.val);
2754
2717
  if (c.length === 0)
2755
2718
  return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2756
- var b = p(l, this.clonePosition());
2719
+ var b = p(h, this.clonePosition());
2757
2720
  a = { style: c, styleLocation: b };
2758
2721
  }
2759
2722
  var g = this.tryParseArgumentClose(i);
2760
2723
  if (g.err)
2761
2724
  return g;
2762
2725
  var y = p(i, this.clonePosition());
2763
- if (a && Xe(a == null ? void 0 : a.style, "::", 0)) {
2764
- var T = Zr(a.style.slice(2));
2765
- if (u === "number") {
2766
- var f = this.parseNumberSkeletonFromString(T, a.styleLocation);
2767
- return f.err ? f : {
2768
- val: { type: E.number, value: n, location: y, style: f.val },
2726
+ if (a && Ge(a?.style, "::", 0)) {
2727
+ var H = Rr(a.style.slice(2));
2728
+ if (o === "number") {
2729
+ var l = this.parseNumberSkeletonFromString(H, a.styleLocation);
2730
+ return l.err ? l : {
2731
+ val: { type: E.number, value: n, location: y, style: l.val },
2769
2732
  err: null
2770
2733
  };
2771
2734
  } else {
2772
- if (T.length === 0)
2735
+ if (H.length === 0)
2773
2736
  return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
2774
- var F = T;
2775
- this.locale && (F = Mr(T, this.locale));
2737
+ var D = H;
2738
+ this.locale && (D = Tr(H, this.locale));
2776
2739
  var c = {
2777
- type: M.dateTime,
2778
- pattern: F,
2740
+ type: L.dateTime,
2741
+ pattern: D,
2779
2742
  location: a.styleLocation,
2780
- parsedOptions: this.shouldParseSkeletons ? Pr(F) : {}
2781
- }, P = u === "date" ? E.date : E.time;
2743
+ parsedOptions: this.shouldParseSkeletons ? gr(D) : {}
2744
+ }, A = o === "date" ? E.date : E.time;
2782
2745
  return {
2783
- val: { type: P, value: n, location: y, style: c },
2746
+ val: { type: A, value: n, location: y, style: c },
2784
2747
  err: null
2785
2748
  };
2786
2749
  }
2787
2750
  }
2788
2751
  return {
2789
2752
  val: {
2790
- type: u === "number" ? E.number : u === "date" ? E.date : E.time,
2753
+ type: o === "number" ? E.number : o === "date" ? E.date : E.time,
2791
2754
  value: n,
2792
2755
  location: y,
2793
- style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
2756
+ style: (s = a?.style) !== null && s !== void 0 ? s : null
2794
2757
  },
2795
2758
  err: null
2796
2759
  };
@@ -2798,49 +2761,49 @@ var Jr = (
2798
2761
  case "plural":
2799
2762
  case "selectordinal":
2800
2763
  case "select": {
2801
- var H = this.clonePosition();
2764
+ var v = this.clonePosition();
2802
2765
  if (this.bumpSpace(), !this.bumpIf(","))
2803
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, d({}, H)));
2766
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(v, d({}, v)));
2804
2767
  this.bumpSpace();
2805
- var j = this.parseIdentifierIfPossible(), B = 0;
2806
- if (u !== "select" && j.value === "offset") {
2768
+ var F = this.parseIdentifierIfPossible(), S = 0;
2769
+ if (o !== "select" && F.value === "offset") {
2807
2770
  if (!this.bumpIf(":"))
2808
2771
  return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2809
2772
  this.bumpSpace();
2810
- var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2811
- if (f.err)
2812
- return f;
2813
- this.bumpSpace(), j = this.parseIdentifierIfPossible(), B = f.val;
2773
+ var l = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2774
+ if (l.err)
2775
+ return l;
2776
+ this.bumpSpace(), F = this.parseIdentifierIfPossible(), S = l.val;
2814
2777
  }
2815
- var Q = this.tryParsePluralOrSelectOptions(t, u, r, j);
2816
- if (Q.err)
2817
- return Q;
2778
+ var Z = this.tryParsePluralOrSelectOptions(t, o, r, F);
2779
+ if (Z.err)
2780
+ return Z;
2818
2781
  var g = this.tryParseArgumentClose(i);
2819
2782
  if (g.err)
2820
2783
  return g;
2821
- var we = p(i, this.clonePosition());
2822
- return u === "select" ? {
2784
+ var Oe = p(i, this.clonePosition());
2785
+ return o === "select" ? {
2823
2786
  val: {
2824
2787
  type: E.select,
2825
2788
  value: n,
2826
- options: We(Q.val),
2827
- location: we
2789
+ options: De(Z.val),
2790
+ location: Oe
2828
2791
  },
2829
2792
  err: null
2830
2793
  } : {
2831
2794
  val: {
2832
2795
  type: E.plural,
2833
2796
  value: n,
2834
- options: We(Q.val),
2835
- offset: B,
2836
- pluralType: u === "plural" ? "cardinal" : "ordinal",
2837
- location: we
2797
+ options: De(Z.val),
2798
+ offset: S,
2799
+ pluralType: o === "plural" ? "cardinal" : "ordinal",
2800
+ location: Oe
2838
2801
  },
2839
2802
  err: null
2840
2803
  };
2841
2804
  }
2842
2805
  default:
2843
- return this.error(m.INVALID_ARGUMENT_TYPE, p(o, h));
2806
+ return this.error(m.INVALID_ARGUMENT_TYPE, p(u, f));
2844
2807
  }
2845
2808
  }, e.prototype.tryParseArgumentClose = function(t) {
2846
2809
  return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2882,34 +2845,34 @@ var Jr = (
2882
2845
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2883
2846
  var n = [];
2884
2847
  try {
2885
- n = Or(t);
2886
- } catch (i) {
2848
+ n = xr(t);
2849
+ } catch {
2887
2850
  return this.error(m.INVALID_NUMBER_SKELETON, r);
2888
2851
  }
2889
2852
  return {
2890
2853
  val: {
2891
- type: M.number,
2854
+ type: L.number,
2892
2855
  tokens: n,
2893
2856
  location: r,
2894
- parsedOptions: this.shouldParseSkeletons ? Lr(n) : {}
2857
+ parsedOptions: this.shouldParseSkeletons ? Hr(n) : {}
2895
2858
  },
2896
2859
  err: null
2897
2860
  };
2898
2861
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2899
- for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
2862
+ for (var s, u = !1, o = [], f = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
2900
2863
  if (a.length === 0) {
2901
- var f = this.clonePosition();
2864
+ var l = this.clonePosition();
2902
2865
  if (r !== "select" && this.bumpIf("=")) {
2903
2866
  var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
2904
2867
  if (c.err)
2905
2868
  return c;
2906
- l = p(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
2869
+ h = p(l, this.clonePosition()), a = this.message.slice(l.offset, this.offset());
2907
2870
  } else
2908
2871
  break;
2909
2872
  }
2910
- if (h.has(a))
2911
- return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2912
- a === "other" && (o = !0), this.bumpSpace();
2873
+ if (f.has(a))
2874
+ return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2875
+ a === "other" && (u = !0), this.bumpSpace();
2913
2876
  var b = this.clonePosition();
2914
2877
  if (!this.bumpIf("{"))
2915
2878
  return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
@@ -2919,27 +2882,27 @@ var Jr = (
2919
2882
  var y = this.tryParseArgumentClose(b);
2920
2883
  if (y.err)
2921
2884
  return y;
2922
- u.push([
2885
+ o.push([
2923
2886
  a,
2924
2887
  {
2925
2888
  value: g.val,
2926
2889
  location: p(b, this.clonePosition())
2927
2890
  }
2928
- ]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
2891
+ ]), f.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
2929
2892
  }
2930
- return u.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
2893
+ return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
2931
2894
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2932
2895
  var n = 1, i = this.clonePosition();
2933
2896
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2934
- for (var s = !1, o = 0; !this.isEOF(); ) {
2935
- var u = this.char();
2936
- if (u >= 48 && u <= 57)
2937
- s = !0, o = o * 10 + (u - 48), this.bump();
2897
+ for (var s = !1, u = 0; !this.isEOF(); ) {
2898
+ var o = this.char();
2899
+ if (o >= 48 && o <= 57)
2900
+ s = !0, u = u * 10 + (o - 48), this.bump();
2938
2901
  else
2939
2902
  break;
2940
2903
  }
2941
- var h = p(i, this.clonePosition());
2942
- return s ? (o *= n, Wr(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
2904
+ var f = p(i, this.clonePosition());
2905
+ return s ? (u *= n, Mr(u) ? { val: u, err: null } : this.error(r, f)) : this.error(t, f);
2943
2906
  }, e.prototype.offset = function() {
2944
2907
  return this.position.offset;
2945
2908
  }, e.prototype.isEOF = function() {
@@ -2954,7 +2917,7 @@ var Jr = (
2954
2917
  var t = this.position.offset;
2955
2918
  if (t >= this.message.length)
2956
2919
  throw Error("out of bound");
2957
- var r = _t(this.message, t);
2920
+ var r = dt(this.message, t);
2958
2921
  if (r === void 0)
2959
2922
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2960
2923
  return r;
@@ -2973,7 +2936,7 @@ var Jr = (
2973
2936
  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);
2974
2937
  }
2975
2938
  }, e.prototype.bumpIf = function(t) {
2976
- if (Xe(this.message, t, this.offset())) {
2939
+ if (Ge(this.message, t, this.offset())) {
2977
2940
  for (var r = 0; r < t.length; r++)
2978
2941
  this.bump();
2979
2942
  return !0;
@@ -2995,56 +2958,56 @@ var Jr = (
2995
2958
  break;
2996
2959
  }
2997
2960
  }, e.prototype.bumpSpace = function() {
2998
- for (; !this.isEOF() && Ht(this.char()); )
2961
+ for (; !this.isEOF() && gt(this.char()); )
2999
2962
  this.bump();
3000
2963
  }, e.prototype.peek = function() {
3001
2964
  if (this.isEOF())
3002
2965
  return null;
3003
2966
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3004
- return n != null ? n : null;
2967
+ return n ?? null;
3005
2968
  }, e;
3006
2969
  }()
3007
2970
  );
3008
- function ve(e) {
2971
+ function ye(e) {
3009
2972
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3010
2973
  }
3011
- function qr(e) {
3012
- return ve(e) || e === 47;
2974
+ function Dr(e) {
2975
+ return ye(e) || e === 47;
3013
2976
  }
3014
- function Yr(e) {
2977
+ function Fr(e) {
3015
2978
  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;
3016
2979
  }
3017
- function Ht(e) {
2980
+ function gt(e) {
3018
2981
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3019
2982
  }
3020
- function Kr(e) {
2983
+ function jr(e) {
3021
2984
  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;
3022
2985
  }
3023
- function He(e) {
2986
+ function _e(e) {
3024
2987
  e.forEach(function(t) {
3025
- if (delete t.location, mt(t) || pt(t))
2988
+ if (delete t.location, at(t) || ut(t))
3026
2989
  for (var r in t.options)
3027
- delete t.options[r].location, He(t.options[r].value);
3028
- else lt(t) && bt(t.style) || (ft(t) || ct(t)) && Ee(t.style) ? delete t.style.location : dt(t) && He(t.children);
2990
+ delete t.options[r].location, _e(t.options[r].value);
2991
+ else it(t) && lt(t.style) || (st(t) || ot(t)) && be(t.style) ? delete t.style.location : ht(t) && _e(t.children);
3029
2992
  });
3030
2993
  }
3031
- function en(e, t) {
2994
+ function Vr(e, t) {
3032
2995
  t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3033
- var r = new Jr(e, t).parse();
2996
+ var r = new Gr(e, t).parse();
3034
2997
  if (r.err) {
3035
2998
  var n = SyntaxError(m[r.err.kind]);
3036
2999
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3037
3000
  }
3038
- return t != null && t.captureLocation || He(r.val), r.val;
3001
+ return t?.captureLocation || _e(r.val), r.val;
3039
3002
  }
3040
- var C;
3003
+ var M;
3041
3004
  (function(e) {
3042
3005
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3043
- })(C || (C = {}));
3044
- var ie = (
3006
+ })(M || (M = {}));
3007
+ var ne = (
3045
3008
  /** @class */
3046
3009
  function(e) {
3047
- ne(t, e);
3010
+ re(t, e);
3048
3011
  function t(r, n, i) {
3049
3012
  var s = e.call(this, r) || this;
3050
3013
  return s.code = n, s.originalMessage = i, s;
@@ -3053,155 +3016,155 @@ var ie = (
3053
3016
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3054
3017
  }, t;
3055
3018
  }(Error)
3056
- ), Ze = (
3019
+ ), je = (
3057
3020
  /** @class */
3058
3021
  function(e) {
3059
- ne(t, e);
3022
+ re(t, e);
3060
3023
  function t(r, n, i, s) {
3061
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), C.INVALID_VALUE, s) || this;
3024
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), M.INVALID_VALUE, s) || this;
3062
3025
  }
3063
3026
  return t;
3064
- }(ie)
3065
- ), tn = (
3027
+ }(ne)
3028
+ ), kr = (
3066
3029
  /** @class */
3067
3030
  function(e) {
3068
- ne(t, e);
3031
+ re(t, e);
3069
3032
  function t(r, n, i) {
3070
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), C.INVALID_VALUE, i) || this;
3033
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), M.INVALID_VALUE, i) || this;
3071
3034
  }
3072
3035
  return t;
3073
- }(ie)
3074
- ), rn = (
3036
+ }(ne)
3037
+ ), Xr = (
3075
3038
  /** @class */
3076
3039
  function(e) {
3077
- ne(t, e);
3040
+ re(t, e);
3078
3041
  function t(r, n) {
3079
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), C.MISSING_VALUE, n) || this;
3042
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), M.MISSING_VALUE, n) || this;
3080
3043
  }
3081
3044
  return t;
3082
- }(ie)
3045
+ }(ne)
3083
3046
  ), x;
3084
3047
  (function(e) {
3085
3048
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3086
3049
  })(x || (x = {}));
3087
- function nn(e) {
3050
+ function Wr(e) {
3088
3051
  return e.length < 2 ? e : e.reduce(function(t, r) {
3089
3052
  var n = t[t.length - 1];
3090
3053
  return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3091
3054
  }, []);
3092
3055
  }
3093
- function sn(e) {
3056
+ function zr(e) {
3094
3057
  return typeof e == "function";
3095
3058
  }
3096
- function Y(e, t, r, n, i, s, o) {
3097
- if (e.length === 1 && Fe(e[0]))
3059
+ function q(e, t, r, n, i, s, u) {
3060
+ if (e.length === 1 && Me(e[0]))
3098
3061
  return [
3099
3062
  {
3100
3063
  type: x.literal,
3101
3064
  value: e[0].value
3102
3065
  }
3103
3066
  ];
3104
- for (var u = [], h = 0, a = e; h < a.length; h++) {
3105
- var l = a[h];
3106
- if (Fe(l)) {
3107
- u.push({
3067
+ for (var o = [], f = 0, a = e; f < a.length; f++) {
3068
+ var h = a[f];
3069
+ if (Me(h)) {
3070
+ o.push({
3108
3071
  type: x.literal,
3109
- value: l.value
3072
+ value: h.value
3110
3073
  });
3111
3074
  continue;
3112
3075
  }
3113
- if (Br(l)) {
3114
- typeof s == "number" && u.push({
3076
+ if (dr(h)) {
3077
+ typeof s == "number" && o.push({
3115
3078
  type: x.literal,
3116
3079
  value: r.getNumberFormat(t).format(s)
3117
3080
  });
3118
3081
  continue;
3119
3082
  }
3120
- var f = l.value;
3121
- if (!(i && f in i))
3122
- throw new rn(f, o);
3123
- var c = i[f];
3124
- if (Sr(l)) {
3125
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
3083
+ var l = h.value;
3084
+ if (!(i && l in i))
3085
+ throw new Xr(l, u);
3086
+ var c = i[l];
3087
+ if (pr(h)) {
3088
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3126
3089
  type: typeof c == "string" ? x.literal : x.object,
3127
3090
  value: c
3128
3091
  });
3129
3092
  continue;
3130
3093
  }
3131
- if (ft(l)) {
3132
- var b = typeof l.style == "string" ? n.date[l.style] : Ee(l.style) ? l.style.parsedOptions : void 0;
3133
- u.push({
3094
+ if (st(h)) {
3095
+ var b = typeof h.style == "string" ? n.date[h.style] : be(h.style) ? h.style.parsedOptions : void 0;
3096
+ o.push({
3134
3097
  type: x.literal,
3135
3098
  value: r.getDateTimeFormat(t, b).format(c)
3136
3099
  });
3137
3100
  continue;
3138
3101
  }
3139
- if (ct(l)) {
3140
- var b = typeof l.style == "string" ? n.time[l.style] : Ee(l.style) ? l.style.parsedOptions : n.time.medium;
3141
- u.push({
3102
+ if (ot(h)) {
3103
+ var b = typeof h.style == "string" ? n.time[h.style] : be(h.style) ? h.style.parsedOptions : n.time.medium;
3104
+ o.push({
3142
3105
  type: x.literal,
3143
3106
  value: r.getDateTimeFormat(t, b).format(c)
3144
3107
  });
3145
3108
  continue;
3146
3109
  }
3147
- if (lt(l)) {
3148
- var b = typeof l.style == "string" ? n.number[l.style] : bt(l.style) ? l.style.parsedOptions : void 0;
3149
- b && b.scale && (c = c * (b.scale || 1)), u.push({
3110
+ if (it(h)) {
3111
+ var b = typeof h.style == "string" ? n.number[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
3112
+ b && b.scale && (c = c * (b.scale || 1)), o.push({
3150
3113
  type: x.literal,
3151
3114
  value: r.getNumberFormat(t, b).format(c)
3152
3115
  });
3153
3116
  continue;
3154
3117
  }
3155
- if (dt(l)) {
3156
- var g = l.children, y = l.value, T = i[y];
3157
- if (!sn(T))
3158
- throw new tn(y, "function", o);
3159
- var F = Y(g, t, r, n, i, s), P = T(F.map(function(B) {
3160
- return B.value;
3118
+ if (ht(h)) {
3119
+ var g = h.children, y = h.value, H = i[y];
3120
+ if (!zr(H))
3121
+ throw new kr(y, "function", u);
3122
+ var D = q(g, t, r, n, i, s), A = H(D.map(function(S) {
3123
+ return S.value;
3161
3124
  }));
3162
- Array.isArray(P) || (P = [P]), u.push.apply(u, P.map(function(B) {
3125
+ Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(S) {
3163
3126
  return {
3164
- type: typeof B == "string" ? x.literal : x.object,
3165
- value: B
3127
+ type: typeof S == "string" ? x.literal : x.object,
3128
+ value: S
3166
3129
  };
3167
3130
  }));
3168
3131
  }
3169
- if (mt(l)) {
3170
- var H = l.options[c] || l.options.other;
3171
- if (!H)
3172
- throw new Ze(l.value, c, Object.keys(l.options), o);
3173
- u.push.apply(u, Y(H.value, t, r, n, i));
3132
+ if (at(h)) {
3133
+ var v = h.options[c] || h.options.other;
3134
+ if (!v)
3135
+ throw new je(h.value, c, Object.keys(h.options), u);
3136
+ o.push.apply(o, q(v.value, t, r, n, i));
3174
3137
  continue;
3175
3138
  }
3176
- if (pt(l)) {
3177
- var H = l.options["=".concat(c)];
3178
- if (!H) {
3139
+ if (ut(h)) {
3140
+ var v = h.options["=".concat(c)];
3141
+ if (!v) {
3179
3142
  if (!Intl.PluralRules)
3180
- throw new ie(`Intl.PluralRules is not available in this environment.
3143
+ throw new ne(`Intl.PluralRules is not available in this environment.
3181
3144
  Try polyfilling it using "@formatjs/intl-pluralrules"
3182
- `, C.MISSING_INTL_API, o);
3183
- var j = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3184
- H = l.options[j] || l.options.other;
3145
+ `, M.MISSING_INTL_API, u);
3146
+ var F = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3147
+ v = h.options[F] || h.options.other;
3185
3148
  }
3186
- if (!H)
3187
- throw new Ze(l.value, c, Object.keys(l.options), o);
3188
- u.push.apply(u, Y(H.value, t, r, n, i, c - (l.offset || 0)));
3149
+ if (!v)
3150
+ throw new je(h.value, c, Object.keys(h.options), u);
3151
+ o.push.apply(o, q(v.value, t, r, n, i, c - (h.offset || 0)));
3189
3152
  continue;
3190
3153
  }
3191
3154
  }
3192
- return nn(u);
3155
+ return Wr(o);
3193
3156
  }
3194
- function on(e, t) {
3157
+ function Zr(e, t) {
3195
3158
  return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3196
3159
  return r[n] = d(d({}, e[n]), t[n] || {}), r;
3197
3160
  }, {})) : e;
3198
3161
  }
3199
- function an(e, t) {
3162
+ function Qr(e, t) {
3200
3163
  return t ? Object.keys(e).reduce(function(r, n) {
3201
- return r[n] = on(e[n], t[n]), r;
3164
+ return r[n] = Zr(e[n], t[n]), r;
3202
3165
  }, d({}, e)) : e;
3203
3166
  }
3204
- function me(e) {
3167
+ function fe(e) {
3205
3168
  return {
3206
3169
  create: function() {
3207
3170
  return {
@@ -3215,39 +3178,39 @@ function me(e) {
3215
3178
  }
3216
3179
  };
3217
3180
  }
3218
- function un(e) {
3181
+ function Jr(e) {
3219
3182
  return e === void 0 && (e = {
3220
3183
  number: {},
3221
3184
  dateTime: {},
3222
3185
  pluralRules: {}
3223
3186
  }), {
3224
- getNumberFormat: le(function() {
3187
+ getNumberFormat: ue(function() {
3225
3188
  for (var t, r = [], n = 0; n < arguments.length; n++)
3226
3189
  r[n] = arguments[n];
3227
- return new ((t = Intl.NumberFormat).bind.apply(t, he([void 0], r, !1)))();
3190
+ return new ((t = Intl.NumberFormat).bind.apply(t, ae([void 0], r, !1)))();
3228
3191
  }, {
3229
- cache: me(e.number),
3230
- strategy: fe.variadic
3192
+ cache: fe(e.number),
3193
+ strategy: he.variadic
3231
3194
  }),
3232
- getDateTimeFormat: le(function() {
3195
+ getDateTimeFormat: ue(function() {
3233
3196
  for (var t, r = [], n = 0; n < arguments.length; n++)
3234
3197
  r[n] = arguments[n];
3235
- return new ((t = Intl.DateTimeFormat).bind.apply(t, he([void 0], r, !1)))();
3198
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, ae([void 0], r, !1)))();
3236
3199
  }, {
3237
- cache: me(e.dateTime),
3238
- strategy: fe.variadic
3200
+ cache: fe(e.dateTime),
3201
+ strategy: he.variadic
3239
3202
  }),
3240
- getPluralRules: le(function() {
3203
+ getPluralRules: ue(function() {
3241
3204
  for (var t, r = [], n = 0; n < arguments.length; n++)
3242
3205
  r[n] = arguments[n];
3243
- return new ((t = Intl.PluralRules).bind.apply(t, he([void 0], r, !1)))();
3206
+ return new ((t = Intl.PluralRules).bind.apply(t, ae([void 0], r, !1)))();
3244
3207
  }, {
3245
- cache: me(e.pluralRules),
3246
- strategy: fe.variadic
3208
+ cache: fe(e.pluralRules),
3209
+ strategy: he.variadic
3247
3210
  })
3248
3211
  };
3249
3212
  }
3250
- var hn = (
3213
+ var qr = (
3251
3214
  /** @class */
3252
3215
  function() {
3253
3216
  function e(t, r, n, i) {
@@ -3257,35 +3220,35 @@ var hn = (
3257
3220
  number: {},
3258
3221
  dateTime: {},
3259
3222
  pluralRules: {}
3260
- }, this.format = function(h) {
3261
- var a = s.formatToParts(h);
3223
+ }, this.format = function(f) {
3224
+ var a = s.formatToParts(f);
3262
3225
  if (a.length === 1)
3263
3226
  return a[0].value;
3264
- var l = a.reduce(function(f, c) {
3265
- return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3227
+ var h = a.reduce(function(l, c) {
3228
+ return !l.length || c.type !== x.literal || typeof l[l.length - 1] != "string" ? l.push(c.value) : l[l.length - 1] += c.value, l;
3266
3229
  }, []);
3267
- return l.length <= 1 ? l[0] || "" : l;
3268
- }, this.formatToParts = function(h) {
3269
- return Y(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3230
+ return h.length <= 1 ? h[0] || "" : h;
3231
+ }, this.formatToParts = function(f) {
3232
+ return q(s.ast, s.locales, s.formatters, s.formats, f, void 0, s.message);
3270
3233
  }, this.resolvedOptions = function() {
3271
- var h;
3234
+ var f;
3272
3235
  return {
3273
- locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3236
+ locale: ((f = s.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3274
3237
  };
3275
3238
  }, this.getAst = function() {
3276
3239
  return s.ast;
3277
3240
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3278
3241
  if (this.message = t, !e.__parse)
3279
3242
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3280
- var o = i || {};
3281
- o.formatters;
3282
- var u = gr(o, ["formatters"]);
3283
- this.ast = e.__parse(t, d(d({}, u), { locale: this.resolvedLocale }));
3243
+ var u = i || {};
3244
+ u.formatters;
3245
+ var o = or(u, ["formatters"]);
3246
+ this.ast = e.__parse(t, d(d({}, o), { locale: this.resolvedLocale }));
3284
3247
  } else
3285
3248
  this.ast = t;
3286
3249
  if (!Array.isArray(this.ast))
3287
3250
  throw new TypeError("A message must be provided as a String or AST.");
3288
- this.formats = an(e.formats, n), this.formatters = i && i.formatters || un(this.formatterCache);
3251
+ this.formats = Qr(e.formats, n), this.formatters = i && i.formatters || Jr(this.formatterCache);
3289
3252
  }
3290
3253
  return Object.defineProperty(e, "defaultLocale", {
3291
3254
  get: function() {
@@ -3294,11 +3257,11 @@ var hn = (
3294
3257
  enumerable: !1,
3295
3258
  configurable: !0
3296
3259
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3297
- if (typeof Intl.Locale != "undefined") {
3260
+ if (!(typeof Intl.Locale > "u")) {
3298
3261
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3299
3262
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3300
3263
  }
3301
- }, e.__parse = en, e.formats = {
3264
+ }, e.__parse = Vr, e.formats = {
3302
3265
  number: {
3303
3266
  integer: {
3304
3267
  maximumFractionDigits: 0
@@ -3359,7 +3322,7 @@ var hn = (
3359
3322
  }, e;
3360
3323
  }()
3361
3324
  );
3362
- function ln(e, t) {
3325
+ function Yr(e, t) {
3363
3326
  if (t == null)
3364
3327
  return;
3365
3328
  if (t in e)
@@ -3380,92 +3343,92 @@ function ln(e, t) {
3380
3343
  n = void 0;
3381
3344
  return n;
3382
3345
  }
3383
- const S = {}, fn = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][e] = r), r), Tt = (e, t) => {
3346
+ const T = {}, Kr = (e, t, r) => r && (t in T || (T[t] = {}), e in T[t] || (T[t][e] = r), r), Et = (e, t) => {
3384
3347
  if (t == null)
3385
3348
  return;
3386
- if (t in S && e in S[t])
3387
- return S[t][e];
3388
- const r = se(t);
3349
+ if (t in T && e in T[t])
3350
+ return T[t][e];
3351
+ const r = ie(t);
3389
3352
  for (let n = 0; n < r.length; n++) {
3390
- const i = r[n], s = mn(i, e);
3353
+ const i = r[n], s = tn(i, e);
3391
3354
  if (s)
3392
- return fn(e, t, s);
3355
+ return Kr(e, t, s);
3393
3356
  }
3394
3357
  };
3395
- let Oe;
3396
- const Z = re({});
3397
- function cn(e) {
3398
- return Oe[e] || null;
3358
+ let Pe;
3359
+ const z = te({});
3360
+ function en(e) {
3361
+ return Pe[e] || null;
3399
3362
  }
3400
- function St(e) {
3401
- return e in Oe;
3363
+ function xt(e) {
3364
+ return e in Pe;
3402
3365
  }
3403
- function mn(e, t) {
3404
- if (!St(e))
3366
+ function tn(e, t) {
3367
+ if (!xt(e))
3405
3368
  return null;
3406
- const r = cn(e);
3407
- return ln(r, t);
3369
+ const r = en(e);
3370
+ return Yr(r, t);
3408
3371
  }
3409
- function pn(e) {
3372
+ function rn(e) {
3410
3373
  if (e == null)
3411
3374
  return;
3412
- const t = se(e);
3375
+ const t = ie(e);
3413
3376
  for (let r = 0; r < t.length; r++) {
3414
3377
  const n = t[r];
3415
- if (St(n))
3378
+ if (xt(n))
3416
3379
  return n;
3417
3380
  }
3418
3381
  }
3419
- function Bt(e, ...t) {
3420
- delete S[e], Z.update((r) => (r[e] = br.all([r[e] || {}, ...t]), r));
3382
+ function yt(e, ...t) {
3383
+ delete T[e], z.update((r) => (r[e] = sr.all([r[e] || {}, ...t]), r));
3421
3384
  }
3422
- U(
3423
- [Z],
3385
+ R(
3386
+ [z],
3424
3387
  ([e]) => Object.keys(e)
3425
3388
  );
3426
- Z.subscribe((e) => Oe = e);
3427
- const K = {};
3428
- function dn(e, t) {
3429
- K[e].delete(t), K[e].size === 0 && delete K[e];
3389
+ z.subscribe((e) => Pe = e);
3390
+ const Y = {};
3391
+ function nn(e, t) {
3392
+ Y[e].delete(t), Y[e].size === 0 && delete Y[e];
3430
3393
  }
3431
- function At(e) {
3432
- return K[e];
3394
+ function _t(e) {
3395
+ return Y[e];
3433
3396
  }
3434
- function bn(e) {
3435
- return se(e).map((t) => {
3436
- const r = At(t);
3397
+ function sn(e) {
3398
+ return ie(e).map((t) => {
3399
+ const r = _t(t);
3437
3400
  return [t, r ? [...r] : []];
3438
3401
  }).filter(([, t]) => t.length > 0);
3439
3402
  }
3440
- function Te(e) {
3441
- return e == null ? !1 : se(e).some(
3403
+ function ve(e) {
3404
+ return e == null ? !1 : ie(e).some(
3442
3405
  (t) => {
3443
3406
  var r;
3444
- return (r = At(t)) == null ? void 0 : r.size;
3407
+ return (r = _t(t)) == null ? void 0 : r.size;
3445
3408
  }
3446
3409
  );
3447
3410
  }
3448
- function gn(e, t) {
3411
+ function on(e, t) {
3449
3412
  return Promise.all(
3450
- t.map((n) => (dn(e, n), n().then((i) => i.default || i)))
3451
- ).then((n) => Bt(e, ...n));
3452
- }
3453
- const V = {};
3454
- function Pt(e) {
3455
- if (!Te(e))
3456
- return e in V ? V[e] : Promise.resolve();
3457
- const t = bn(e);
3458
- return V[e] = Promise.all(
3413
+ t.map((n) => (nn(e, n), n().then((i) => i.default || i)))
3414
+ ).then((n) => yt(e, ...n));
3415
+ }
3416
+ const j = {};
3417
+ function vt(e) {
3418
+ if (!ve(e))
3419
+ return e in j ? j[e] : Promise.resolve();
3420
+ const t = sn(e);
3421
+ return j[e] = Promise.all(
3459
3422
  t.map(
3460
- ([r, n]) => gn(r, n)
3423
+ ([r, n]) => on(r, n)
3461
3424
  )
3462
3425
  ).then(() => {
3463
- if (Te(e))
3464
- return Pt(e);
3465
- delete V[e];
3466
- }), V[e];
3426
+ if (ve(e))
3427
+ return vt(e);
3428
+ delete j[e];
3429
+ }), j[e];
3467
3430
  }
3468
- const En = {
3431
+ const an = {
3469
3432
  number: {
3470
3433
  scientific: { notation: "scientific" },
3471
3434
  engineering: { notation: "engineering" },
@@ -3494,178 +3457,178 @@ const En = {
3494
3457
  timeZoneName: "short"
3495
3458
  }
3496
3459
  }
3497
- }, xn = {
3460
+ }, un = {
3498
3461
  fallbackLocale: null,
3499
3462
  loadingDelay: 200,
3500
- formats: En,
3463
+ formats: an,
3501
3464
  warnOnMissingMessages: !0,
3502
3465
  handleMissingMessage: void 0,
3503
3466
  ignoreTag: !0
3504
- }, yn = xn;
3505
- function R() {
3506
- return yn;
3467
+ }, hn = un;
3468
+ function C() {
3469
+ return hn;
3507
3470
  }
3508
- const pe = re(!1);
3509
- var _n = Object.defineProperty, vn = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, Je = (e, t, r) => t in e ? _n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bn = (e, t) => {
3471
+ const ce = te(!1);
3472
+ var ln = Object.defineProperty, fn = Object.defineProperties, cn = Object.getOwnPropertyDescriptors, Ve = Object.getOwnPropertySymbols, mn = Object.prototype.hasOwnProperty, pn = Object.prototype.propertyIsEnumerable, ke = (e, t, r) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dn = (e, t) => {
3510
3473
  for (var r in t)
3511
- Tn.call(t, r) && Je(e, r, t[r]);
3512
- if (Qe)
3513
- for (var r of Qe(t))
3514
- Sn.call(t, r) && Je(e, r, t[r]);
3474
+ mn.call(t, r) && ke(e, r, t[r]);
3475
+ if (Ve)
3476
+ for (var r of Ve(t))
3477
+ pn.call(t, r) && ke(e, r, t[r]);
3515
3478
  return e;
3516
- }, An = (e, t) => vn(e, Hn(t));
3517
- let Se;
3518
- const ee = re(null);
3519
- function qe(e) {
3479
+ }, bn = (e, t) => fn(e, cn(t));
3480
+ let He;
3481
+ const K = te(null);
3482
+ function Xe(e) {
3520
3483
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3521
3484
  }
3522
- function se(e, t = R().fallbackLocale) {
3523
- const r = qe(e);
3524
- return t ? [.../* @__PURE__ */ new Set([...r, ...qe(t)])] : r;
3485
+ function ie(e, t = C().fallbackLocale) {
3486
+ const r = Xe(e);
3487
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Xe(t)])] : r;
3525
3488
  }
3526
- function A() {
3527
- return Se != null ? Se : void 0;
3489
+ function B() {
3490
+ return He ?? void 0;
3528
3491
  }
3529
- ee.subscribe((e) => {
3530
- Se = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3492
+ K.subscribe((e) => {
3493
+ He = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3531
3494
  });
3532
- const Pn = (e) => {
3533
- if (e && pn(e) && Te(e)) {
3534
- const { loadingDelay: t } = R();
3495
+ const gn = (e) => {
3496
+ if (e && rn(e) && ve(e)) {
3497
+ const { loadingDelay: t } = C();
3535
3498
  let r;
3536
- return typeof window != "undefined" && A() != null && t ? r = window.setTimeout(
3537
- () => pe.set(!0),
3499
+ return typeof window < "u" && B() != null && t ? r = window.setTimeout(
3500
+ () => ce.set(!0),
3538
3501
  t
3539
- ) : pe.set(!0), Pt(e).then(() => {
3540
- ee.set(e);
3502
+ ) : ce.set(!0), vt(e).then(() => {
3503
+ K.set(e);
3541
3504
  }).finally(() => {
3542
- clearTimeout(r), pe.set(!1);
3505
+ clearTimeout(r), ce.set(!1);
3543
3506
  });
3544
3507
  }
3545
- return ee.set(e);
3546
- }, G = An(Bn({}, ee), {
3547
- set: Pn
3548
- }), oe = (e) => {
3508
+ return K.set(e);
3509
+ }, U = bn(dn({}, K), {
3510
+ set: gn
3511
+ }), se = (e) => {
3549
3512
  const t = /* @__PURE__ */ Object.create(null);
3550
3513
  return (n) => {
3551
3514
  const i = JSON.stringify(n);
3552
3515
  return i in t ? t[i] : t[i] = e(n);
3553
3516
  };
3554
3517
  };
3555
- var Nn = Object.defineProperty, te = Object.getOwnPropertySymbols, Nt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable, Ye = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ie = (e, t) => {
3518
+ var En = Object.defineProperty, ee = Object.getOwnPropertySymbols, Ht = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, We = (e, t, r) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ne = (e, t) => {
3556
3519
  for (var r in t || (t = {}))
3557
- Nt.call(t, r) && Ye(e, r, t[r]);
3558
- if (te)
3559
- for (var r of te(t))
3560
- Ot.call(t, r) && Ye(e, r, t[r]);
3520
+ Ht.call(t, r) && We(e, r, t[r]);
3521
+ if (ee)
3522
+ for (var r of ee(t))
3523
+ Tt.call(t, r) && We(e, r, t[r]);
3561
3524
  return e;
3562
- }, D = (e, t) => {
3525
+ }, G = (e, t) => {
3563
3526
  var r = {};
3564
3527
  for (var n in e)
3565
- Nt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3566
- if (e != null && te)
3567
- for (var n of te(e))
3568
- t.indexOf(n) < 0 && Ot.call(e, n) && (r[n] = e[n]);
3528
+ Ht.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3529
+ if (e != null && ee)
3530
+ for (var n of ee(e))
3531
+ t.indexOf(n) < 0 && Tt.call(e, n) && (r[n] = e[n]);
3569
3532
  return r;
3570
3533
  };
3571
- const W = (e, t) => {
3572
- const { formats: r } = R();
3534
+ const X = (e, t) => {
3535
+ const { formats: r } = C();
3573
3536
  if (e in r && t in r[e])
3574
3537
  return r[e][t];
3575
3538
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3576
- }, On = oe(
3539
+ }, xn = se(
3577
3540
  (e) => {
3578
- var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
3541
+ var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
3579
3542
  if (r == null)
3580
3543
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3581
- return n && (i = W("number", n)), new Intl.NumberFormat(r, i);
3544
+ return n && (i = X("number", n)), new Intl.NumberFormat(r, i);
3582
3545
  }
3583
- ), In = oe(
3546
+ ), yn = se(
3584
3547
  (e) => {
3585
- var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
3548
+ var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
3586
3549
  if (r == null)
3587
3550
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3588
- return n ? i = W("date", n) : Object.keys(i).length === 0 && (i = W("date", "short")), new Intl.DateTimeFormat(r, i);
3551
+ return n ? i = X("date", n) : Object.keys(i).length === 0 && (i = X("date", "short")), new Intl.DateTimeFormat(r, i);
3589
3552
  }
3590
- ), wn = oe(
3553
+ ), _n = se(
3591
3554
  (e) => {
3592
- var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
3555
+ var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
3593
3556
  if (r == null)
3594
3557
  throw new Error(
3595
3558
  '[svelte-i18n] A "locale" must be set to format time values'
3596
3559
  );
3597
- return n ? i = W("time", n) : Object.keys(i).length === 0 && (i = W("time", "short")), new Intl.DateTimeFormat(r, i);
3560
+ return n ? i = X("time", n) : Object.keys(i).length === 0 && (i = X("time", "short")), new Intl.DateTimeFormat(r, i);
3598
3561
  }
3599
- ), $n = (e = {}) => {
3562
+ ), vn = (e = {}) => {
3600
3563
  var t = e, {
3601
- locale: r = A()
3602
- } = t, n = D(t, [
3564
+ locale: r = B()
3565
+ } = t, n = G(t, [
3603
3566
  "locale"
3604
3567
  ]);
3605
- return On(Ie({ locale: r }, n));
3606
- }, Ln = (e = {}) => {
3568
+ return xn(Ne({ locale: r }, n));
3569
+ }, Hn = (e = {}) => {
3607
3570
  var t = e, {
3608
- locale: r = A()
3609
- } = t, n = D(t, [
3571
+ locale: r = B()
3572
+ } = t, n = G(t, [
3610
3573
  "locale"
3611
3574
  ]);
3612
- return In(Ie({ locale: r }, n));
3613
- }, Mn = (e = {}) => {
3575
+ return yn(Ne({ locale: r }, n));
3576
+ }, Tn = (e = {}) => {
3614
3577
  var t = e, {
3615
- locale: r = A()
3616
- } = t, n = D(t, [
3578
+ locale: r = B()
3579
+ } = t, n = G(t, [
3617
3580
  "locale"
3618
3581
  ]);
3619
- return wn(Ie({ locale: r }, n));
3620
- }, Cn = oe(
3582
+ return _n(Ne({ locale: r }, n));
3583
+ }, Sn = se(
3621
3584
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3622
- (e, t = A()) => new hn(e, t, R().formats, {
3623
- ignoreTag: R().ignoreTag
3585
+ (e, t = B()) => new qr(e, t, C().formats, {
3586
+ ignoreTag: C().ignoreTag
3624
3587
  })
3625
- ), Rn = (e, t = {}) => {
3588
+ ), Bn = (e, t = {}) => {
3626
3589
  var r, n, i, s;
3627
- let o = t;
3628
- typeof e == "object" && (o = e, e = o.id);
3590
+ let u = t;
3591
+ typeof e == "object" && (u = e, e = u.id);
3629
3592
  const {
3630
- values: u,
3631
- locale: h = A(),
3593
+ values: o,
3594
+ locale: f = B(),
3632
3595
  default: a
3633
- } = o;
3634
- if (h == null)
3596
+ } = u;
3597
+ if (f == null)
3635
3598
  throw new Error(
3636
3599
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3637
3600
  );
3638
- let l = Tt(e, h);
3639
- if (!l)
3640
- l = (s = (i = (n = (r = R()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3641
- else if (typeof l != "string")
3601
+ let h = Et(e, f);
3602
+ if (!h)
3603
+ h = (s = (i = (n = (r = C()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3604
+ else if (typeof h != "string")
3642
3605
  return console.warn(
3643
- `[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.`
3644
- ), l;
3645
- if (!u)
3646
- return l;
3647
- let f = l;
3606
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3607
+ ), h;
3608
+ if (!o)
3609
+ return h;
3610
+ let l = h;
3648
3611
  try {
3649
- f = Cn(l, h).format(u);
3612
+ l = Sn(h, f).format(o);
3650
3613
  } catch (c) {
3651
3614
  c instanceof Error && console.warn(
3652
3615
  `[svelte-i18n] Message "${e}" has syntax error:`,
3653
3616
  c.message
3654
3617
  );
3655
3618
  }
3656
- return f;
3657
- }, Un = (e, t) => Mn(t).format(e), Gn = (e, t) => Ln(t).format(e), Dn = (e, t) => $n(t).format(e), Fn = (e, t = A()) => Tt(e, t), jn = U([G, Z], () => Rn);
3658
- U([G], () => Un);
3659
- U([G], () => Gn);
3660
- U([G], () => Dn);
3661
- U([G, Z], () => Fn);
3662
- function Ke(e, t) {
3663
- Bt(e, t);
3664
- }
3665
- function Vn(e) {
3666
- G.set(e);
3667
- }
3668
- const et = {
3619
+ return l;
3620
+ }, An = (e, t) => Tn(t).format(e), Pn = (e, t) => Hn(t).format(e), Nn = (e, t) => vn(t).format(e), On = (e, t = B()) => Et(e, t), In = R([U, z], () => Bn);
3621
+ R([U], () => An);
3622
+ R([U], () => Pn);
3623
+ R([U], () => Nn);
3624
+ R([U, z], () => On);
3625
+ function ze(e, t) {
3626
+ yt(e, t);
3627
+ }
3628
+ function wn(e) {
3629
+ U.set(e);
3630
+ }
3631
+ const Ze = {
3669
3632
  en: {
3670
3633
  errServerUnavailable: "Server unavailable",
3671
3634
  errEmailVerification: "Sorry! Your e-mail could not be verified. Please try again",
@@ -3679,51 +3642,51 @@ const et = {
3679
3642
  msgEmailVerificationSuccess: "Succes! E-mailul tău a fost verificat cu succes"
3680
3643
  }
3681
3644
  };
3682
- function kn(e) {
3645
+ function $n(e) {
3683
3646
  let t;
3684
3647
  return {
3685
3648
  c() {
3686
- t = st("div");
3649
+ t = Ke("div");
3687
3650
  },
3688
3651
  m(r, n) {
3689
- it(r, t, n);
3652
+ Ye(r, t, n);
3690
3653
  },
3691
- p: v,
3692
- i: v,
3693
- o: v,
3654
+ p: _,
3655
+ i: _,
3656
+ o: _,
3694
3657
  d(r) {
3695
- r && Ae(t);
3658
+ r && Se(t);
3696
3659
  }
3697
3660
  };
3698
3661
  }
3699
- function Xn(e, t, r) {
3662
+ function Ln(e, t, r) {
3700
3663
  let n;
3701
- Rt(e, jn, (f) => r(4, n = f));
3702
- let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: o = "" } = t, { translationurl: u = "" } = t;
3703
- const h = () => {
3704
- fetch(u).then((c) => c.json()).then((c) => {
3664
+ Bt(e, In, (l) => r(4, n = l));
3665
+ let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: u = "" } = t, { translationurl: o = "" } = t;
3666
+ const f = () => {
3667
+ fetch(o).then((c) => c.json()).then((c) => {
3705
3668
  Object.keys(c).forEach((b) => {
3706
- Ke(b, c[b]);
3669
+ ze(b, c[b]);
3707
3670
  });
3708
3671
  }).catch((c) => {
3709
3672
  console.log(c);
3710
3673
  });
3711
3674
  };
3712
- Object.keys(et).forEach((f) => {
3713
- Ke(f, et[f]);
3675
+ Object.keys(Ze).forEach((l) => {
3676
+ ze(l, Ze[l]);
3714
3677
  });
3715
3678
  const a = () => {
3716
- Vn(i);
3717
- }, l = () => {
3718
- let f = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
3679
+ wn(i);
3680
+ }, h = () => {
3681
+ let l = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
3719
3682
  method: "POST",
3720
3683
  headers: {
3721
3684
  "Content-Type": "application/json",
3722
3685
  Accept: "application/json"
3723
3686
  },
3724
- body: JSON.stringify({ hashKey: o })
3687
+ body: JSON.stringify({ hashKey: u })
3725
3688
  };
3726
- fetch(f.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
3689
+ fetch(l.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
3727
3690
  {
3728
3691
  type: "WidgetNotification",
3729
3692
  data: {
@@ -3763,18 +3726,18 @@ function Xn(e, t, r) {
3763
3726
  );
3764
3727
  });
3765
3728
  };
3766
- return e.$$set = (f) => {
3767
- "lang" in f && r(0, i = f.lang), "endpoint" in f && r(1, s = f.endpoint), "key" in f && r(2, o = f.key), "translationurl" in f && r(3, u = f.translationurl);
3729
+ return e.$$set = (l) => {
3730
+ "lang" in l && r(0, i = l.lang), "endpoint" in l && r(1, s = l.endpoint), "key" in l && r(2, u = l.key), "translationurl" in l && r(3, o = l.translationurl);
3768
3731
  }, e.$$.update = () => {
3769
3732
  e.$$.dirty & /*lang*/
3770
3733
  1 && i && a(), e.$$.dirty & /*translationurl*/
3771
- 8 && u && h(), e.$$.dirty & /*endpoint, key*/
3772
- 6 && s && o && l();
3773
- }, [i, s, o, u];
3734
+ 8 && o && f(), e.$$.dirty & /*endpoint, key*/
3735
+ 6 && s && u && h();
3736
+ }, [i, s, u, o];
3774
3737
  }
3775
- class Wn extends Yt {
3738
+ class Mn extends Ft {
3776
3739
  constructor(t) {
3777
- super(), Jt(this, t, Xn, kn, rt, {
3740
+ super(), Gt(this, t, Ln, $n, Je, {
3778
3741
  lang: 0,
3779
3742
  endpoint: 1,
3780
3743
  key: 2,
@@ -3785,28 +3748,28 @@ class Wn extends Yt {
3785
3748
  return this.$$.ctx[0];
3786
3749
  }
3787
3750
  set lang(t) {
3788
- this.$$set({ lang: t }), w();
3751
+ this.$$set({ lang: t }), I();
3789
3752
  }
3790
3753
  get endpoint() {
3791
3754
  return this.$$.ctx[1];
3792
3755
  }
3793
3756
  set endpoint(t) {
3794
- this.$$set({ endpoint: t }), w();
3757
+ this.$$set({ endpoint: t }), I();
3795
3758
  }
3796
3759
  get key() {
3797
3760
  return this.$$.ctx[2];
3798
3761
  }
3799
3762
  set key(t) {
3800
- this.$$set({ key: t }), w();
3763
+ this.$$set({ key: t }), I();
3801
3764
  }
3802
3765
  get translationurl() {
3803
3766
  return this.$$.ctx[3];
3804
3767
  }
3805
3768
  set translationurl(t) {
3806
- this.$$set({ translationurl: t }), w();
3769
+ this.$$set({ translationurl: t }), I();
3807
3770
  }
3808
3771
  }
3809
- qt(Wn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
3772
+ Dt(Mn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
3810
3773
  export {
3811
- Wn as default
3774
+ Mn as P
3812
3775
  };