@everymatrix/general-player-sms-verification-form 1.53.0 → 1.53.11

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,75 +1,46 @@
1
- var Kt = Object.defineProperty, er = Object.defineProperties;
2
- var tr = Object.getOwnPropertyDescriptors;
3
- var tt = Object.getOwnPropertySymbols;
4
- var rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
5
- var Ce = (e, t, r) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
6
- for (var r in t || (t = {}))
7
- rr.call(t, r) && Ce(e, r, t[r]);
8
- if (tt)
9
- for (var r of tt(t))
10
- nr.call(t, r) && Ce(e, r, t[r]);
11
- return e;
12
- }, nt = (e, t) => er(e, tr(t));
13
- var $ = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
14
- var ge = (e, t, r) => new Promise((n, i) => {
15
- var o = (l) => {
16
- try {
17
- a(r.next(l));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, s = (l) => {
22
- try {
23
- a(r.throw(l));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
- a((r = r.apply(e, t)).next());
29
- });
30
- function U() {
1
+ function $() {
31
2
  }
32
- function Ht(e) {
3
+ function vt(e) {
33
4
  return e();
34
5
  }
35
- function it() {
6
+ function qe() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function se(e) {
39
- e.forEach(Ht);
9
+ function oe(e) {
10
+ e.forEach(vt);
40
11
  }
41
- function Qe(e) {
12
+ function We(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function At(e, t) {
15
+ function yt(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- function ir(e) {
18
+ function zt(e) {
48
19
  return Object.keys(e).length === 0;
49
20
  }
50
- function Bt(e, ...t) {
21
+ function Et(e, ...t) {
51
22
  if (e == null) {
52
23
  for (const n of t)
53
24
  n(void 0);
54
- return U;
25
+ return $;
55
26
  }
56
27
  const r = e.subscribe(...t);
57
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
29
  }
59
- function or(e, t, r) {
60
- e.$$.on_destroy.push(Bt(t, r));
30
+ function Wt(e, t, r) {
31
+ e.$$.on_destroy.push(Et(t, r));
61
32
  }
62
33
  function E(e, t) {
63
34
  e.appendChild(t);
64
35
  }
65
- function sr(e, t, r) {
66
- const n = ar(e);
36
+ function Zt(e, t, r) {
37
+ const n = Jt(e);
67
38
  if (!n.getElementById(t)) {
68
39
  const i = M("style");
69
- i.id = t, i.textContent = r, ur(n, i);
40
+ i.id = t, i.textContent = r, Qt(n, i);
70
41
  }
71
42
  }
72
- function ar(e) {
43
+ function Jt(e) {
73
44
  if (!e) return document;
74
45
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
46
  return t && /** @type {ShadowRoot} */
@@ -78,17 +49,17 @@ function ar(e) {
78
49
  t
79
50
  ) : e.ownerDocument;
80
51
  }
81
- function ur(e, t) {
52
+ function Qt(e, t) {
82
53
  return E(
83
54
  /** @type {Document} */
84
55
  e.head || e,
85
56
  t
86
57
  ), t.sheet;
87
58
  }
88
- function Z(e, t, r) {
59
+ function W(e, t, r) {
89
60
  e.insertBefore(t, r || null);
90
61
  }
91
- function j(e) {
62
+ function k(e) {
92
63
  e.parentNode && e.parentNode.removeChild(e);
93
64
  }
94
65
  function M(e) {
@@ -97,26 +68,26 @@ function M(e) {
97
68
  function L(e) {
98
69
  return document.createTextNode(e);
99
70
  }
100
- function z() {
71
+ function X() {
101
72
  return L(" ");
102
73
  }
103
- function ve(e, t, r, n) {
74
+ function be(e, t, r, n) {
104
75
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
105
76
  }
106
77
  function A(e, t, r) {
107
78
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
108
79
  }
109
- function lr(e) {
80
+ function qt(e) {
110
81
  return Array.from(e.childNodes);
111
82
  }
112
- function G(e, t) {
83
+ function F(e, t) {
113
84
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
114
85
  t);
115
86
  }
116
- function ot(e, t) {
117
- e.value = t == null ? "" : t;
87
+ function Ye(e, t) {
88
+ e.value = t ?? "";
118
89
  }
119
- function hr(e) {
90
+ function Yt(e) {
120
91
  const t = {};
121
92
  return e.childNodes.forEach(
122
93
  /** @param {Element} node */
@@ -125,245 +96,241 @@ function hr(e) {
125
96
  }
126
97
  ), t;
127
98
  }
128
- let fe;
129
- function ce(e) {
130
- fe = e;
99
+ let ce;
100
+ function he(e) {
101
+ ce = e;
131
102
  }
132
- function cr() {
133
- if (!fe) throw new Error("Function called outside component initialization");
134
- return fe;
103
+ function Kt() {
104
+ if (!ce) throw new Error("Function called outside component initialization");
105
+ return ce;
135
106
  }
136
- function fr(e) {
137
- cr().$$.on_mount.push(e);
107
+ function er(e) {
108
+ Kt().$$.on_mount.push(e);
138
109
  }
139
- const ee = [], Ue = [];
140
- let te = [];
141
- const st = [], dr = /* @__PURE__ */ Promise.resolve();
142
- let De = !1;
143
- function mr() {
144
- De || (De = !0, dr.then(F));
110
+ const K = [], Le = [];
111
+ let ee = [];
112
+ const Ke = [], tr = /* @__PURE__ */ Promise.resolve();
113
+ let Re = !1;
114
+ function rr() {
115
+ Re || (Re = !0, tr.then(D));
145
116
  }
146
- function Fe(e) {
147
- te.push(e);
117
+ function $e(e) {
118
+ ee.push(e);
148
119
  }
149
- const Ie = /* @__PURE__ */ new Set();
150
- let Y = 0;
151
- function F() {
152
- if (Y !== 0)
120
+ const we = /* @__PURE__ */ new Set();
121
+ let q = 0;
122
+ function D() {
123
+ if (q !== 0)
153
124
  return;
154
- const e = fe;
125
+ const e = ce;
155
126
  do {
156
127
  try {
157
- for (; Y < ee.length; ) {
158
- const t = ee[Y];
159
- Y++, ce(t), pr(t.$$);
128
+ for (; q < K.length; ) {
129
+ const t = K[q];
130
+ q++, he(t), nr(t.$$);
160
131
  }
161
132
  } catch (t) {
162
- throw ee.length = 0, Y = 0, t;
133
+ throw K.length = 0, q = 0, t;
163
134
  }
164
- for (ce(null), ee.length = 0, Y = 0; Ue.length; ) Ue.pop()();
165
- for (let t = 0; t < te.length; t += 1) {
166
- const r = te[t];
167
- Ie.has(r) || (Ie.add(r), r());
135
+ for (he(null), K.length = 0, q = 0; Le.length; ) Le.pop()();
136
+ for (let t = 0; t < ee.length; t += 1) {
137
+ const r = ee[t];
138
+ we.has(r) || (we.add(r), r());
168
139
  }
169
- te.length = 0;
170
- } while (ee.length);
171
- for (; st.length; )
172
- st.pop()();
173
- De = !1, Ie.clear(), ce(e);
140
+ ee.length = 0;
141
+ } while (K.length);
142
+ for (; Ke.length; )
143
+ Ke.pop()();
144
+ Re = !1, we.clear(), he(e);
174
145
  }
175
- function pr(e) {
146
+ function nr(e) {
176
147
  if (e.fragment !== null) {
177
- e.update(), se(e.before_update);
148
+ e.update(), oe(e.before_update);
178
149
  const t = e.dirty;
179
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
150
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
180
151
  }
181
152
  }
182
- function br(e) {
153
+ function ir(e) {
183
154
  const t = [], r = [];
184
- te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
155
+ ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
185
156
  }
186
- const gr = /* @__PURE__ */ new Set();
187
- function vr(e, t) {
188
- e && e.i && (gr.delete(e), e.i(t));
157
+ const or = /* @__PURE__ */ new Set();
158
+ function sr(e, t) {
159
+ e && e.i && (or.delete(e), e.i(t));
189
160
  }
190
- function yr(e, t, r) {
161
+ function ar(e, t, r) {
191
162
  const { fragment: n, after_update: i } = e.$$;
192
- n && n.m(t, r), Fe(() => {
193
- const o = e.$$.on_mount.map(Ht).filter(Qe);
194
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
195
- }), i.forEach(Fe);
163
+ n && n.m(t, r), $e(() => {
164
+ const o = e.$$.on_mount.map(vt).filter(We);
165
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
166
+ }), i.forEach($e);
196
167
  }
197
- function Er(e, t) {
168
+ function ur(e, t) {
198
169
  const r = e.$$;
199
- r.fragment !== null && (br(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
170
+ r.fragment !== null && (ir(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
200
171
  }
201
- function xr(e, t) {
202
- e.$$.dirty[0] === -1 && (ee.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
172
+ function lr(e, t) {
173
+ e.$$.dirty[0] === -1 && (K.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
203
174
  }
204
- function _r(e, t, r, n, i, o, s = null, a = [-1]) {
205
- const l = fe;
206
- ce(e);
175
+ function hr(e, t, r, n, i, o, a = null, s = [-1]) {
176
+ const h = ce;
177
+ he(e);
207
178
  const u = e.$$ = {
208
179
  fragment: null,
209
180
  ctx: [],
210
181
  // state
211
182
  props: o,
212
- update: U,
183
+ update: $,
213
184
  not_equal: i,
214
- bound: it(),
185
+ bound: qe(),
215
186
  // lifecycle
216
187
  on_mount: [],
217
188
  on_destroy: [],
218
189
  on_disconnect: [],
219
190
  before_update: [],
220
191
  after_update: [],
221
- context: new Map(t.context || (l ? l.$$.context : [])),
192
+ context: new Map(t.context || (h ? h.$$.context : [])),
222
193
  // everything else
223
- callbacks: it(),
224
- dirty: a,
194
+ callbacks: qe(),
195
+ dirty: s,
225
196
  skip_bound: !1,
226
- root: t.target || l.$$.root
197
+ root: t.target || h.$$.root
227
198
  };
228
- s && s(u.root);
229
- let h = !1;
230
- if (u.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
199
+ a && a(u.root);
200
+ let l = !1;
201
+ if (u.ctx = r(e, t.props || {}, (f, d, ...b) => {
231
202
  const v = b.length ? b[0] : d;
232
- return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), h && xr(e, f)), d;
233
- }) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
203
+ return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && lr(e, f)), d;
204
+ }), u.update(), l = !0, oe(u.before_update), u.fragment = n(u.ctx), t.target) {
234
205
  if (t.hydrate) {
235
- const f = lr(t.target);
236
- u.fragment && u.fragment.l(f), f.forEach(j);
206
+ const f = qt(t.target);
207
+ u.fragment && u.fragment.l(f), f.forEach(k);
237
208
  } else
238
209
  u.fragment && u.fragment.c();
239
- t.intro && vr(e.$$.fragment), yr(e, t.target, t.anchor), F();
210
+ t.intro && sr(e.$$.fragment), ar(e, t.target, t.anchor), D();
240
211
  }
241
- ce(l);
242
- }
243
- let wt;
244
- typeof HTMLElement == "function" && (wt = class extends HTMLElement {
245
- constructor(t, r, n) {
246
- super();
247
- /** The Svelte component constructor */
248
- $(this, "$$ctor");
249
- /** Slots */
250
- $(this, "$$s");
251
- /** The Svelte component instance */
252
- $(this, "$$c");
253
- /** Whether or not the custom element is connected */
254
- $(this, "$$cn", !1);
255
- /** Component props data */
256
- $(this, "$$d", {});
257
- /** `true` if currently in the process of reflecting component props back to attributes */
258
- $(this, "$$r", !1);
259
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
260
- $(this, "$$p_d", {});
261
- /** @type {Record<string, Function[]>} Event listeners */
262
- $(this, "$$l", {});
263
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
264
- $(this, "$$l_u", /* @__PURE__ */ new Map());
265
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
212
+ he(h);
213
+ }
214
+ let xt;
215
+ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
216
+ /** The Svelte component constructor */
217
+ $$ctor;
218
+ /** Slots */
219
+ $$s;
220
+ /** The Svelte component instance */
221
+ $$c;
222
+ /** Whether or not the custom element is connected */
223
+ $$cn = !1;
224
+ /** Component props data */
225
+ $$d = {};
226
+ /** `true` if currently in the process of reflecting component props back to attributes */
227
+ $$r = !1;
228
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
229
+ $$p_d = {};
230
+ /** @type {Record<string, Function[]>} Event listeners */
231
+ $$l = {};
232
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
233
+ $$l_u = /* @__PURE__ */ new Map();
234
+ constructor(e, t, r) {
235
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
266
236
  }
267
- addEventListener(t, r, n) {
268
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
269
- const i = this.$$c.$on(t, r);
270
- this.$$l_u.set(r, i);
237
+ addEventListener(e, t, r) {
238
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
239
+ const n = this.$$c.$on(e, t);
240
+ this.$$l_u.set(t, n);
271
241
  }
272
- super.addEventListener(t, r, n);
242
+ super.addEventListener(e, t, r);
273
243
  }
274
- removeEventListener(t, r, n) {
275
- if (super.removeEventListener(t, r, n), this.$$c) {
276
- const i = this.$$l_u.get(r);
277
- i && (i(), this.$$l_u.delete(r));
244
+ removeEventListener(e, t, r) {
245
+ if (super.removeEventListener(e, t, r), this.$$c) {
246
+ const n = this.$$l_u.get(t);
247
+ n && (n(), this.$$l_u.delete(t));
278
248
  }
279
249
  }
280
- connectedCallback() {
281
- return ge(this, null, function* () {
282
- if (this.$$cn = !0, !this.$$c) {
283
- let t = function(o) {
284
- return () => {
285
- let s;
286
- return {
287
- c: function() {
288
- s = M("slot"), o !== "default" && A(s, "name", o);
289
- },
290
- /**
291
- * @param {HTMLElement} target
292
- * @param {HTMLElement} [anchor]
293
- */
294
- m: function(u, h) {
295
- Z(u, s, h);
296
- },
297
- d: function(u) {
298
- u && j(s);
299
- }
300
- };
250
+ async connectedCallback() {
251
+ if (this.$$cn = !0, !this.$$c) {
252
+ let e = function(i) {
253
+ return () => {
254
+ let o;
255
+ return {
256
+ c: function() {
257
+ o = M("slot"), i !== "default" && A(o, "name", i);
258
+ },
259
+ /**
260
+ * @param {HTMLElement} target
261
+ * @param {HTMLElement} [anchor]
262
+ */
263
+ m: function(h, u) {
264
+ W(h, o, u);
265
+ },
266
+ d: function(h) {
267
+ h && k(o);
268
+ }
301
269
  };
302
270
  };
303
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
304
- return;
305
- const r = {}, n = hr(this);
306
- for (const o of this.$$s)
307
- o in n && (r[o] = [t(o)]);
308
- for (const o of this.attributes) {
309
- const s = this.$$g_p(o.name);
310
- s in this.$$d || (this.$$d[s] = Ee(s, o.value, this.$$p_d, "toProp"));
271
+ };
272
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
273
+ return;
274
+ const t = {}, r = Yt(this);
275
+ for (const i of this.$$s)
276
+ i in r && (t[i] = [e(i)]);
277
+ for (const i of this.attributes) {
278
+ const o = this.$$g_p(i.name);
279
+ o in this.$$d || (this.$$d[o] = ve(o, i.value, this.$$p_d, "toProp"));
280
+ }
281
+ for (const i in this.$$p_d)
282
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
283
+ this.$$c = new this.$$ctor({
284
+ target: this.shadowRoot || this,
285
+ props: {
286
+ ...this.$$d,
287
+ $$slots: t,
288
+ $$scope: {
289
+ ctx: []
290
+ }
311
291
  }
312
- for (const o in this.$$p_d)
313
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
314
- this.$$c = new this.$$ctor({
315
- target: this.shadowRoot || this,
316
- props: nt(rt({}, this.$$d), {
317
- $$slots: r,
318
- $$scope: {
319
- ctx: []
320
- }
321
- })
322
- });
323
- const i = () => {
324
- this.$$r = !0;
325
- for (const o in this.$$p_d)
326
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
327
- const s = Ee(
328
- o,
329
- this.$$d[o],
330
- this.$$p_d,
331
- "toAttribute"
332
- );
333
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
334
- }
335
- this.$$r = !1;
336
- };
337
- this.$$c.$$.after_update.push(i), i();
338
- for (const o in this.$$l)
339
- for (const s of this.$$l[o]) {
340
- const a = this.$$c.$on(o, s);
341
- this.$$l_u.set(s, a);
292
+ });
293
+ const n = () => {
294
+ this.$$r = !0;
295
+ for (const i in this.$$p_d)
296
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
297
+ const o = ve(
298
+ i,
299
+ this.$$d[i],
300
+ this.$$p_d,
301
+ "toAttribute"
302
+ );
303
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
342
304
  }
343
- this.$$l = {};
344
- }
345
- });
305
+ this.$$r = !1;
306
+ };
307
+ this.$$c.$$.after_update.push(n), n();
308
+ for (const i in this.$$l)
309
+ for (const o of this.$$l[i]) {
310
+ const a = this.$$c.$on(i, o);
311
+ this.$$l_u.set(o, a);
312
+ }
313
+ this.$$l = {};
314
+ }
346
315
  }
347
316
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
348
317
  // and setting attributes through setAttribute etc, this is helpful
349
- attributeChangedCallback(t, r, n) {
350
- var i;
351
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ee(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
318
+ attributeChangedCallback(e, t, r) {
319
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
352
320
  }
353
321
  disconnectedCallback() {
354
322
  this.$$cn = !1, Promise.resolve().then(() => {
355
323
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
356
324
  });
357
325
  }
358
- $$g_p(t) {
326
+ $$g_p(e) {
359
327
  return Object.keys(this.$$p_d).find(
360
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
361
- ) || t;
328
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
329
+ ) || e;
362
330
  }
363
331
  });
364
- function Ee(e, t, r, n) {
365
- var o;
366
- const i = (o = r[e]) == null ? void 0 : o.type;
332
+ function ve(e, t, r, n) {
333
+ const i = r[e]?.type;
367
334
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
368
335
  return t;
369
336
  if (n === "toAttribute")
@@ -374,7 +341,7 @@ function Ee(e, t, r, n) {
374
341
  case "Boolean":
375
342
  return t ? "" : null;
376
343
  case "Number":
377
- return t == null ? null : t;
344
+ return t ?? null;
378
345
  default:
379
346
  return t;
380
347
  }
@@ -391,59 +358,55 @@ function Ee(e, t, r, n) {
391
358
  return t;
392
359
  }
393
360
  }
394
- function Sr(e, t, r, n, i, o) {
395
- let s = class extends wt {
361
+ function cr(e, t, r, n, i, o) {
362
+ let a = class extends xt {
396
363
  constructor() {
397
364
  super(e, r, i), this.$$p_d = t;
398
365
  }
399
366
  static get observedAttributes() {
400
367
  return Object.keys(t).map(
401
- (a) => (t[a].attribute || a).toLowerCase()
368
+ (s) => (t[s].attribute || s).toLowerCase()
402
369
  );
403
370
  }
404
371
  };
405
- return Object.keys(t).forEach((a) => {
406
- Object.defineProperty(s.prototype, a, {
372
+ return Object.keys(t).forEach((s) => {
373
+ Object.defineProperty(a.prototype, s, {
407
374
  get() {
408
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
375
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
409
376
  },
410
- set(l) {
411
- var u;
412
- l = Ee(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
377
+ set(h) {
378
+ h = ve(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
413
379
  }
414
380
  });
415
- }), n.forEach((a) => {
416
- Object.defineProperty(s.prototype, a, {
381
+ }), n.forEach((s) => {
382
+ Object.defineProperty(a.prototype, s, {
417
383
  get() {
418
- var l;
419
- return (l = this.$$c) == null ? void 0 : l[a];
384
+ return this.$$c?.[s];
420
385
  }
421
386
  });
422
387
  }), e.element = /** @type {any} */
423
- s, s;
424
- }
425
- class Tr {
426
- constructor() {
427
- /**
428
- * ### PRIVATE API
429
- *
430
- * Do not use, may change at any time
431
- *
432
- * @type {any}
433
- */
434
- $(this, "$$");
435
- /**
436
- * ### PRIVATE API
437
- *
438
- * Do not use, may change at any time
439
- *
440
- * @type {any}
441
- */
442
- $(this, "$$set");
443
- }
388
+ a, a;
389
+ }
390
+ class fr {
391
+ /**
392
+ * ### PRIVATE API
393
+ *
394
+ * Do not use, may change at any time
395
+ *
396
+ * @type {any}
397
+ */
398
+ $$ = void 0;
399
+ /**
400
+ * ### PRIVATE API
401
+ *
402
+ * Do not use, may change at any time
403
+ *
404
+ * @type {any}
405
+ */
406
+ $$set = void 0;
444
407
  /** @returns {void} */
445
408
  $destroy() {
446
- Er(this, 1), this.$destroy = U;
409
+ ur(this, 1), this.$destroy = $;
447
410
  }
448
411
  /**
449
412
  * @template {Extract<keyof Events, string>} K
@@ -452,8 +415,8 @@ class Tr {
452
415
  * @returns {() => void}
453
416
  */
454
417
  $on(t, r) {
455
- if (!Qe(r))
456
- return U;
418
+ if (!We(r))
419
+ return $;
457
420
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
458
421
  return n.push(r), () => {
459
422
  const i = n.indexOf(r);
@@ -465,159 +428,159 @@ class Tr {
465
428
  * @returns {void}
466
429
  */
467
430
  $set(t) {
468
- this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
431
+ this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
469
432
  }
470
433
  }
471
- const Hr = "4";
472
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
473
- const K = [];
474
- function Ar(e, t) {
434
+ const dr = "4";
435
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
436
+ const Y = [];
437
+ function mr(e, t) {
475
438
  return {
476
- subscribe: He(e, t).subscribe
439
+ subscribe: Se(e, t).subscribe
477
440
  };
478
441
  }
479
- function He(e, t = U) {
442
+ function Se(e, t = $) {
480
443
  let r;
481
444
  const n = /* @__PURE__ */ new Set();
482
- function i(a) {
483
- if (At(e, a) && (e = a, r)) {
484
- const l = !K.length;
445
+ function i(s) {
446
+ if (yt(e, s) && (e = s, r)) {
447
+ const h = !Y.length;
485
448
  for (const u of n)
486
- u[1](), K.push(u, e);
487
- if (l) {
488
- for (let u = 0; u < K.length; u += 2)
489
- K[u][0](K[u + 1]);
490
- K.length = 0;
449
+ u[1](), Y.push(u, e);
450
+ if (h) {
451
+ for (let u = 0; u < Y.length; u += 2)
452
+ Y[u][0](Y[u + 1]);
453
+ Y.length = 0;
491
454
  }
492
455
  }
493
456
  }
494
- function o(a) {
495
- i(a(e));
457
+ function o(s) {
458
+ i(s(e));
496
459
  }
497
- function s(a, l = U) {
498
- const u = [a, l];
499
- return n.add(u), n.size === 1 && (r = t(i, o) || U), a(e), () => {
460
+ function a(s, h = $) {
461
+ const u = [s, h];
462
+ return n.add(u), n.size === 1 && (r = t(i, o) || $), s(e), () => {
500
463
  n.delete(u), n.size === 0 && r && (r(), r = null);
501
464
  };
502
465
  }
503
- return { set: i, update: o, subscribe: s };
466
+ return { set: i, update: o, subscribe: a };
504
467
  }
505
- function ae(e, t, r) {
468
+ function se(e, t, r) {
506
469
  const n = !Array.isArray(e), i = n ? [e] : e;
507
470
  if (!i.every(Boolean))
508
471
  throw new Error("derived() expects stores as input, got a falsy value");
509
472
  const o = t.length < 2;
510
- return Ar(r, (s, a) => {
511
- let l = !1;
473
+ return mr(r, (a, s) => {
474
+ let h = !1;
512
475
  const u = [];
513
- let h = 0, f = U;
476
+ let l = 0, f = $;
514
477
  const d = () => {
515
- if (h)
478
+ if (l)
516
479
  return;
517
480
  f();
518
- const v = t(n ? u[0] : u, s, a);
519
- o ? s(v) : f = Qe(v) ? v : U;
481
+ const v = t(n ? u[0] : u, a, s);
482
+ o ? a(v) : f = We(v) ? v : $;
520
483
  }, b = i.map(
521
- (v, _) => Bt(
484
+ (v, _) => Et(
522
485
  v,
523
486
  (S) => {
524
- u[_] = S, h &= ~(1 << _), l && d();
487
+ u[_] = S, l &= ~(1 << _), h && d();
525
488
  },
526
489
  () => {
527
- h |= 1 << _;
490
+ l |= 1 << _;
528
491
  }
529
492
  )
530
493
  );
531
- return l = !0, d(), function() {
532
- se(b), f(), l = !1;
494
+ return h = !0, d(), function() {
495
+ oe(b), f(), h = !1;
533
496
  };
534
497
  });
535
498
  }
536
- function Br(e) {
537
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
499
+ function pr(e) {
500
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
538
501
  }
539
- var wr = function(t) {
540
- return Pr(t) && !Cr(t);
502
+ var br = function(t) {
503
+ return gr(t) && !vr(t);
541
504
  };
542
- function Pr(e) {
505
+ function gr(e) {
543
506
  return !!e && typeof e == "object";
544
507
  }
545
- function Cr(e) {
508
+ function vr(e) {
546
509
  var t = Object.prototype.toString.call(e);
547
- return t === "[object RegExp]" || t === "[object Date]" || Or(e);
510
+ return t === "[object RegExp]" || t === "[object Date]" || xr(e);
548
511
  }
549
- var Ir = typeof Symbol == "function" && Symbol.for, Nr = Ir ? Symbol.for("react.element") : 60103;
550
- function Or(e) {
551
- return e.$$typeof === Nr;
512
+ var yr = typeof Symbol == "function" && Symbol.for, Er = yr ? Symbol.for("react.element") : 60103;
513
+ function xr(e) {
514
+ return e.$$typeof === Er;
552
515
  }
553
- function Mr(e) {
516
+ function _r(e) {
554
517
  return Array.isArray(e) ? [] : {};
555
518
  }
556
- function de(e, t) {
557
- return t.clone !== !1 && t.isMergeableObject(e) ? re(Mr(e), e, t) : e;
519
+ function fe(e, t) {
520
+ return t.clone !== !1 && t.isMergeableObject(e) ? te(_r(e), e, t) : e;
558
521
  }
559
- function Lr(e, t, r) {
522
+ function Sr(e, t, r) {
560
523
  return e.concat(t).map(function(n) {
561
- return de(n, r);
524
+ return fe(n, r);
562
525
  });
563
526
  }
564
- function Rr(e, t) {
527
+ function Tr(e, t) {
565
528
  if (!t.customMerge)
566
- return re;
529
+ return te;
567
530
  var r = t.customMerge(e);
568
- return typeof r == "function" ? r : re;
531
+ return typeof r == "function" ? r : te;
569
532
  }
570
- function $r(e) {
533
+ function Hr(e) {
571
534
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
572
535
  return Object.propertyIsEnumerable.call(e, t);
573
536
  }) : [];
574
537
  }
575
- function at(e) {
576
- return Object.keys(e).concat($r(e));
538
+ function et(e) {
539
+ return Object.keys(e).concat(Hr(e));
577
540
  }
578
- function Pt(e, t) {
541
+ function _t(e, t) {
579
542
  try {
580
543
  return t in e;
581
- } catch (r) {
544
+ } catch {
582
545
  return !1;
583
546
  }
584
547
  }
585
- function Ur(e, t) {
586
- return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
548
+ function Ar(e, t) {
549
+ return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
587
550
  }
588
- function Dr(e, t, r) {
551
+ function Br(e, t, r) {
589
552
  var n = {};
590
- return r.isMergeableObject(e) && at(e).forEach(function(i) {
591
- n[i] = de(e[i], r);
592
- }), at(t).forEach(function(i) {
593
- Ur(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Rr(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
553
+ return r.isMergeableObject(e) && et(e).forEach(function(i) {
554
+ n[i] = fe(e[i], r);
555
+ }), et(t).forEach(function(i) {
556
+ Ar(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
594
557
  }), n;
595
558
  }
596
- function re(e, t, r) {
597
- r = r || {}, r.arrayMerge = r.arrayMerge || Lr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = de;
559
+ function te(e, t, r) {
560
+ r = r || {}, r.arrayMerge = r.arrayMerge || Sr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = fe;
598
561
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
599
- return o ? n ? r.arrayMerge(e, t, r) : Dr(e, t, r) : de(t, r);
562
+ return o ? n ? r.arrayMerge(e, t, r) : Br(e, t, r) : fe(t, r);
600
563
  }
601
- re.all = function(t, r) {
564
+ te.all = function(t, r) {
602
565
  if (!Array.isArray(t))
603
566
  throw new Error("first argument should be an array");
604
567
  return t.reduce(function(n, i) {
605
- return re(n, i, r);
568
+ return te(n, i, r);
606
569
  }, {});
607
570
  };
608
- var Fr = re, Gr = Fr;
609
- const kr = /* @__PURE__ */ Br(Gr);
610
- var Ge = function(e, t) {
611
- return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
571
+ var wr = te, Pr = wr;
572
+ const Cr = /* @__PURE__ */ pr(Pr);
573
+ var Ue = function(e, t) {
574
+ return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
612
575
  r.__proto__ = n;
613
576
  } || function(r, n) {
614
577
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
615
- }, Ge(e, t);
578
+ }, Ue(e, t);
616
579
  };
617
- function Ae(e, t) {
580
+ function Te(e, t) {
618
581
  if (typeof t != "function" && t !== null)
619
582
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
620
- Ge(e, t);
583
+ Ue(e, t);
621
584
  function r() {
622
585
  this.constructor = e;
623
586
  }
@@ -632,7 +595,7 @@ var g = function() {
632
595
  return t;
633
596
  }, g.apply(this, arguments);
634
597
  };
635
- function jr(e, t) {
598
+ function Ir(e, t) {
636
599
  var r = {};
637
600
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
638
601
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -640,61 +603,63 @@ function jr(e, t) {
640
603
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
641
604
  return r;
642
605
  }
643
- function Ne(e, t, r) {
606
+ function Pe(e, t, r) {
644
607
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
645
608
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
646
609
  return e.concat(o || Array.prototype.slice.call(t));
647
610
  }
648
- function Oe(e, t) {
649
- var r = t && t.cache ? t.cache : Jr, n = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : Xr;
611
+ function Ce(e, t) {
612
+ var r = t && t.cache ? t.cache : Ur, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Or;
650
613
  return i(e, {
651
614
  cache: r,
652
615
  serializer: n
653
616
  });
654
617
  }
655
- function Vr(e) {
618
+ function Nr(e) {
656
619
  return e == null || typeof e == "number" || typeof e == "boolean";
657
620
  }
658
- function Ct(e, t, r, n) {
659
- var i = Vr(n) ? n : r(n), o = t.get(i);
660
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
621
+ function St(e, t, r, n) {
622
+ var i = Nr(n) ? n : r(n), o = t.get(i);
623
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
661
624
  }
662
- function It(e, t, r) {
625
+ function Tt(e, t, r) {
663
626
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
664
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
627
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
665
628
  }
666
- function qe(e, t, r, n, i) {
629
+ function Ze(e, t, r, n, i) {
667
630
  return r.bind(t, e, n, i);
668
631
  }
669
- function Xr(e, t) {
670
- var r = e.length === 1 ? Ct : It;
671
- return qe(e, this, r, t.cache.create(), t.serializer);
632
+ function Or(e, t) {
633
+ var r = e.length === 1 ? St : Tt;
634
+ return Ze(e, this, r, t.cache.create(), t.serializer);
672
635
  }
673
- function zr(e, t) {
674
- return qe(e, this, It, t.cache.create(), t.serializer);
636
+ function Mr(e, t) {
637
+ return Ze(e, this, Tt, t.cache.create(), t.serializer);
675
638
  }
676
- function Wr(e, t) {
677
- return qe(e, this, Ct, t.cache.create(), t.serializer);
639
+ function Lr(e, t) {
640
+ return Ze(e, this, St, t.cache.create(), t.serializer);
678
641
  }
679
- var Zr = function() {
642
+ var Rr = function() {
680
643
  return JSON.stringify(arguments);
681
- };
682
- function Ye() {
683
- this.cache = /* @__PURE__ */ Object.create(null);
684
- }
685
- Ye.prototype.get = function(e) {
686
- return this.cache[e];
687
- };
688
- Ye.prototype.set = function(e, t) {
689
- this.cache[e] = t;
690
- };
691
- var Jr = {
644
+ }, $r = (
645
+ /** @class */
646
+ function() {
647
+ function e() {
648
+ this.cache = /* @__PURE__ */ Object.create(null);
649
+ }
650
+ return e.prototype.get = function(t) {
651
+ return this.cache[t];
652
+ }, e.prototype.set = function(t, r) {
653
+ this.cache[t] = r;
654
+ }, e;
655
+ }()
656
+ ), Ur = {
692
657
  create: function() {
693
- return new Ye();
658
+ return new $r();
694
659
  }
695
- }, Me = {
696
- variadic: zr,
697
- monadic: Wr
660
+ }, Ie = {
661
+ variadic: Mr,
662
+ monadic: Lr
698
663
  }, m;
699
664
  (function(e) {
700
665
  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";
@@ -703,47 +668,47 @@ var x;
703
668
  (function(e) {
704
669
  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";
705
670
  })(x || (x = {}));
706
- var ne;
671
+ var re;
707
672
  (function(e) {
708
673
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
709
- })(ne || (ne = {}));
710
- function ut(e) {
674
+ })(re || (re = {}));
675
+ function tt(e) {
711
676
  return e.type === x.literal;
712
677
  }
713
- function Qr(e) {
678
+ function Dr(e) {
714
679
  return e.type === x.argument;
715
680
  }
716
- function Nt(e) {
681
+ function Ht(e) {
717
682
  return e.type === x.number;
718
683
  }
719
- function Ot(e) {
684
+ function At(e) {
720
685
  return e.type === x.date;
721
686
  }
722
- function Mt(e) {
687
+ function Bt(e) {
723
688
  return e.type === x.time;
724
689
  }
725
- function Lt(e) {
690
+ function wt(e) {
726
691
  return e.type === x.select;
727
692
  }
728
- function Rt(e) {
693
+ function Pt(e) {
729
694
  return e.type === x.plural;
730
695
  }
731
- function qr(e) {
696
+ function Fr(e) {
732
697
  return e.type === x.pound;
733
698
  }
734
- function $t(e) {
699
+ function Ct(e) {
735
700
  return e.type === x.tag;
736
701
  }
737
- function Ut(e) {
738
- return !!(e && typeof e == "object" && e.type === ne.number);
702
+ function It(e) {
703
+ return !!(e && typeof e == "object" && e.type === re.number);
739
704
  }
740
- function ke(e) {
741
- return !!(e && typeof e == "object" && e.type === ne.dateTime);
705
+ function De(e) {
706
+ return !!(e && typeof e == "object" && e.type === re.dateTime);
742
707
  }
743
- var Dt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Yr = /(?:[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;
744
- function Kr(e) {
708
+ var Nt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gr = /(?:[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;
709
+ function kr(e) {
745
710
  var t = {};
746
- return e.replace(Yr, function(r) {
711
+ return e.replace(Gr, function(r) {
747
712
  var n = r.length;
748
713
  switch (r[0]) {
749
714
  case "G":
@@ -832,36 +797,36 @@ function Kr(e) {
832
797
  return "";
833
798
  }), t;
834
799
  }
835
- var en = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
836
- function tn(e) {
800
+ var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
801
+ function Vr(e) {
837
802
  if (e.length === 0)
838
803
  throw new Error("Number skeleton cannot be empty");
839
- for (var t = e.split(en).filter(function(d) {
804
+ for (var t = e.split(jr).filter(function(d) {
840
805
  return d.length > 0;
841
806
  }), r = [], n = 0, i = t; n < i.length; n++) {
842
- var o = i[n], s = o.split("/");
843
- if (s.length === 0)
807
+ var o = i[n], a = o.split("/");
808
+ if (a.length === 0)
844
809
  throw new Error("Invalid number skeleton");
845
- for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
846
- var f = h[u];
810
+ for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
811
+ var f = l[u];
847
812
  if (f.length === 0)
848
813
  throw new Error("Invalid number skeleton");
849
814
  }
850
- r.push({ stem: a, options: l });
815
+ r.push({ stem: s, options: h });
851
816
  }
852
817
  return r;
853
818
  }
854
- function rn(e) {
819
+ function Xr(e) {
855
820
  return e.replace(/^(.*?)-/, "");
856
821
  }
857
- var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, nn = /(\*)(0+)|(#+)(0+)|(0+)/g, Gt = /^(0+)$/;
858
- function ht(e) {
822
+ var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ot = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
823
+ function nt(e) {
859
824
  var t = {};
860
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
825
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ot, function(r, n, i) {
861
826
  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)), "";
862
827
  }), t;
863
828
  }
864
- function kt(e) {
829
+ function Lt(e) {
865
830
  switch (e) {
866
831
  case "sign-auto":
867
832
  return {
@@ -901,7 +866,7 @@ function kt(e) {
901
866
  };
902
867
  }
903
868
  }
904
- function on(e) {
869
+ function Wr(e) {
905
870
  var t;
906
871
  if (e[0] === "E" && e[1] === "E" ? (t = {
907
872
  notation: "engineering"
@@ -909,17 +874,17 @@ function on(e) {
909
874
  notation: "scientific"
910
875
  }, e = e.slice(1)), t) {
911
876
  var r = e.slice(0, 2);
912
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Gt.test(e))
877
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Mt.test(e))
913
878
  throw new Error("Malformed concise eng/scientific notation");
914
879
  t.minimumIntegerDigits = e.length;
915
880
  }
916
881
  return t;
917
882
  }
918
- function ct(e) {
919
- var t = {}, r = kt(e);
883
+ function it(e) {
884
+ var t = {}, r = Lt(e);
920
885
  return r || t;
921
886
  }
922
- function sn(e) {
887
+ function Zr(e) {
923
888
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
924
889
  var i = n[r];
925
890
  switch (i.stem) {
@@ -943,7 +908,7 @@ function sn(e) {
943
908
  continue;
944
909
  case "measure-unit":
945
910
  case "unit":
946
- t.style = "unit", t.unit = rn(i.options[0]);
911
+ t.style = "unit", t.unit = Xr(i.options[0]);
947
912
  continue;
948
913
  case "compact-short":
949
914
  case "K":
@@ -954,13 +919,13 @@ function sn(e) {
954
919
  t.notation = "compact", t.compactDisplay = "long";
955
920
  continue;
956
921
  case "scientific":
957
- t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
958
- return g(g({}, l), ct(u));
922
+ t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
923
+ return g(g({}, h), it(u));
959
924
  }, {}));
960
925
  continue;
961
926
  case "engineering":
962
- t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
963
- return g(g({}, l), ct(u));
927
+ t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
928
+ return g(g({}, h), it(u));
964
929
  }, {}));
965
930
  continue;
966
931
  case "notation-simple":
@@ -1005,9 +970,9 @@ function sn(e) {
1005
970
  case "integer-width":
1006
971
  if (i.options.length > 1)
1007
972
  throw new RangeError("integer-width stems only accept a single optional option");
1008
- i.options[0].replace(nn, function(l, u, h, f, d, b) {
973
+ i.options[0].replace(zr, function(h, u, l, f, d, b) {
1009
974
  if (u)
1010
- t.minimumIntegerDigits = h.length;
975
+ t.minimumIntegerDigits = l.length;
1011
976
  else {
1012
977
  if (f && d)
1013
978
  throw new Error("We currently do not support maximum integer digits");
@@ -1018,32 +983,32 @@ function sn(e) {
1018
983
  });
1019
984
  continue;
1020
985
  }
1021
- if (Gt.test(i.stem)) {
986
+ if (Mt.test(i.stem)) {
1022
987
  t.minimumIntegerDigits = i.stem.length;
1023
988
  continue;
1024
989
  }
1025
- if (lt.test(i.stem)) {
990
+ if (rt.test(i.stem)) {
1026
991
  if (i.options.length > 1)
1027
992
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1028
- i.stem.replace(lt, function(l, u, h, f, d, b) {
1029
- return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
993
+ i.stem.replace(rt, function(h, u, l, f, d, b) {
994
+ return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1030
995
  });
1031
996
  var o = i.options[0];
1032
- o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), ht(o)));
997
+ o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), nt(o)));
1033
998
  continue;
1034
999
  }
1035
- if (Ft.test(i.stem)) {
1036
- t = g(g({}, t), ht(i.stem));
1000
+ if (Ot.test(i.stem)) {
1001
+ t = g(g({}, t), nt(i.stem));
1037
1002
  continue;
1038
1003
  }
1039
- var s = kt(i.stem);
1040
- s && (t = g(g({}, t), s));
1041
- var a = on(i.stem);
1004
+ var a = Lt(i.stem);
1042
1005
  a && (t = g(g({}, t), a));
1006
+ var s = Wr(i.stem);
1007
+ s && (t = g(g({}, t), s));
1043
1008
  }
1044
1009
  return t;
1045
1010
  }
1046
- var ye = {
1011
+ var ge = {
1047
1012
  "001": [
1048
1013
  "H",
1049
1014
  "h"
@@ -2458,22 +2423,22 @@ var ye = {
2458
2423
  "h"
2459
2424
  ]
2460
2425
  };
2461
- function an(e, t) {
2426
+ function Jr(e, t) {
2462
2427
  for (var r = "", n = 0; n < e.length; n++) {
2463
2428
  var i = e.charAt(n);
2464
2429
  if (i === "j") {
2465
2430
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2466
2431
  o++, n++;
2467
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = un(t);
2468
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2469
- r += l;
2470
- for (; s-- > 0; )
2432
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Qr(t);
2433
+ for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2434
+ r += h;
2435
+ for (; a-- > 0; )
2471
2436
  r = u + r;
2472
2437
  } else i === "J" ? r += "H" : r += i;
2473
2438
  }
2474
2439
  return r;
2475
2440
  }
2476
- function un(e) {
2441
+ function Qr(e) {
2477
2442
  var t = e.hourCycle;
2478
2443
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2479
2444
  e.hourCycles && // @ts-ignore
@@ -2492,23 +2457,23 @@ function un(e) {
2492
2457
  }
2493
2458
  var r = e.language, n;
2494
2459
  r !== "root" && (n = e.maximize().region);
2495
- var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
2460
+ var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
2496
2461
  return i[0];
2497
2462
  }
2498
- var Le, ln = new RegExp("^".concat(Dt.source, "*")), hn = new RegExp("".concat(Dt.source, "*$"));
2463
+ var Ne, qr = new RegExp("^".concat(Nt.source, "*")), Yr = new RegExp("".concat(Nt.source, "*$"));
2499
2464
  function p(e, t) {
2500
2465
  return { start: e, end: t };
2501
2466
  }
2502
- var cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), fn = !!String.fromCodePoint, dn = !!Object.fromEntries, mn = !!String.prototype.codePointAt, pn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, gn = !!Number.isSafeInteger, vn = gn ? Number.isSafeInteger : function(e) {
2467
+ var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), en = !!String.fromCodePoint, tn = !!Object.fromEntries, rn = !!String.prototype.codePointAt, nn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, an = sn ? Number.isSafeInteger : function(e) {
2503
2468
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2504
- }, je = !0;
2469
+ }, Fe = !0;
2505
2470
  try {
2506
- var yn = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2507
- je = ((Le = yn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2508
- } catch (e) {
2509
- je = !1;
2471
+ var un = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2472
+ Fe = ((Ne = un.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
2473
+ } catch {
2474
+ Fe = !1;
2510
2475
  }
2511
- var ft = cn ? (
2476
+ var ot = Kr ? (
2512
2477
  // Native
2513
2478
  function(t, r, n) {
2514
2479
  return t.startsWith(r, n);
@@ -2518,31 +2483,31 @@ var ft = cn ? (
2518
2483
  function(t, r, n) {
2519
2484
  return t.slice(n, n + r.length) === r;
2520
2485
  }
2521
- ), Ve = fn ? String.fromCodePoint : (
2486
+ ), Ge = en ? String.fromCodePoint : (
2522
2487
  // IE11
2523
2488
  function() {
2524
2489
  for (var t = [], r = 0; r < arguments.length; r++)
2525
2490
  t[r] = arguments[r];
2526
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
2527
- if (s = t[o++], s > 1114111)
2528
- throw RangeError(s + " is not a valid code point");
2529
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2491
+ for (var n = "", i = t.length, o = 0, a; i > o; ) {
2492
+ if (a = t[o++], a > 1114111)
2493
+ throw RangeError(a + " is not a valid code point");
2494
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2530
2495
  }
2531
2496
  return n;
2532
2497
  }
2533
- ), dt = (
2498
+ ), st = (
2534
2499
  // native
2535
- dn ? Object.fromEntries : (
2500
+ tn ? Object.fromEntries : (
2536
2501
  // Ponyfill
2537
2502
  function(t) {
2538
2503
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2539
- var o = i[n], s = o[0], a = o[1];
2540
- r[s] = a;
2504
+ var o = i[n], a = o[0], s = o[1];
2505
+ r[a] = s;
2541
2506
  }
2542
2507
  return r;
2543
2508
  }
2544
2509
  )
2545
- ), jt = mn ? (
2510
+ ), Rt = rn ? (
2546
2511
  // Native
2547
2512
  function(t, r) {
2548
2513
  return t.codePointAt(r);
@@ -2556,7 +2521,7 @@ var ft = cn ? (
2556
2521
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2557
2522
  }
2558
2523
  }
2559
- ), En = pn ? (
2524
+ ), ln = nn ? (
2560
2525
  // Native
2561
2526
  function(t) {
2562
2527
  return t.trimStart();
@@ -2564,9 +2529,9 @@ var ft = cn ? (
2564
2529
  ) : (
2565
2530
  // Ponyfill
2566
2531
  function(t) {
2567
- return t.replace(ln, "");
2532
+ return t.replace(qr, "");
2568
2533
  }
2569
- ), xn = bn ? (
2534
+ ), hn = on ? (
2570
2535
  // Native
2571
2536
  function(t) {
2572
2537
  return t.trimEnd();
@@ -2574,32 +2539,32 @@ var ft = cn ? (
2574
2539
  ) : (
2575
2540
  // Ponyfill
2576
2541
  function(t) {
2577
- return t.replace(hn, "");
2542
+ return t.replace(Yr, "");
2578
2543
  }
2579
2544
  );
2580
- function Vt(e, t) {
2545
+ function $t(e, t) {
2581
2546
  return new RegExp(e, t);
2582
2547
  }
2583
- var Xe;
2584
- if (je) {
2585
- var mt = Vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2586
- Xe = function(t, r) {
2548
+ var ke;
2549
+ if (Fe) {
2550
+ var at = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2551
+ ke = function(t, r) {
2587
2552
  var n;
2588
- mt.lastIndex = r;
2589
- var i = mt.exec(t);
2553
+ at.lastIndex = r;
2554
+ var i = at.exec(t);
2590
2555
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2591
2556
  };
2592
2557
  } else
2593
- Xe = function(t, r) {
2558
+ ke = function(t, r) {
2594
2559
  for (var n = []; ; ) {
2595
- var i = jt(t, r);
2596
- if (i === void 0 || Xt(i) || Hn(i))
2560
+ var i = Rt(t, r);
2561
+ if (i === void 0 || Ut(i) || mn(i))
2597
2562
  break;
2598
2563
  n.push(i), r += i >= 65536 ? 2 : 1;
2599
2564
  }
2600
- return Ve.apply(void 0, n);
2565
+ return Ge.apply(void 0, n);
2601
2566
  };
2602
- var _n = (
2567
+ var cn = (
2603
2568
  /** @class */
2604
2569
  function() {
2605
2570
  function e(t, r) {
@@ -2613,33 +2578,33 @@ var _n = (
2613
2578
  for (var i = []; !this.isEOF(); ) {
2614
2579
  var o = this.char();
2615
2580
  if (o === 123) {
2616
- var s = this.parseArgument(t, n);
2617
- if (s.err)
2618
- return s;
2619
- i.push(s.val);
2581
+ var a = this.parseArgument(t, n);
2582
+ if (a.err)
2583
+ return a;
2584
+ i.push(a.val);
2620
2585
  } else {
2621
2586
  if (o === 125 && t > 0)
2622
2587
  break;
2623
2588
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2624
- var a = this.clonePosition();
2589
+ var s = this.clonePosition();
2625
2590
  this.bump(), i.push({
2626
2591
  type: x.pound,
2627
- location: p(a, this.clonePosition())
2592
+ location: p(s, this.clonePosition())
2628
2593
  });
2629
2594
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2630
2595
  if (n)
2631
2596
  break;
2632
2597
  return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2633
- } else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
2634
- var s = this.parseTag(t, r);
2635
- if (s.err)
2636
- return s;
2637
- i.push(s.val);
2598
+ } else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
2599
+ var a = this.parseTag(t, r);
2600
+ if (a.err)
2601
+ return a;
2602
+ i.push(a.val);
2638
2603
  } else {
2639
- var s = this.parseLiteral(t, r);
2640
- if (s.err)
2641
- return s;
2642
- i.push(s.val);
2604
+ var a = this.parseLiteral(t, r);
2605
+ if (a.err)
2606
+ return a;
2607
+ i.push(a.val);
2643
2608
  }
2644
2609
  }
2645
2610
  }
@@ -2661,27 +2626,27 @@ var _n = (
2661
2626
  var o = this.parseMessage(t + 1, r, !0);
2662
2627
  if (o.err)
2663
2628
  return o;
2664
- var s = o.val, a = this.clonePosition();
2629
+ var a = o.val, s = this.clonePosition();
2665
2630
  if (this.bumpIf("</")) {
2666
- if (this.isEOF() || !ze(this.char()))
2667
- return this.error(m.INVALID_TAG, p(a, this.clonePosition()));
2668
- var l = this.clonePosition(), u = this.parseTagName();
2669
- return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2631
+ if (this.isEOF() || !je(this.char()))
2632
+ return this.error(m.INVALID_TAG, p(s, this.clonePosition()));
2633
+ var h = this.clonePosition(), u = this.parseTagName();
2634
+ return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, p(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2670
2635
  val: {
2671
2636
  type: x.tag,
2672
2637
  value: i,
2673
- children: s,
2638
+ children: a,
2674
2639
  location: p(n, this.clonePosition())
2675
2640
  },
2676
2641
  err: null
2677
- } : this.error(m.INVALID_TAG, p(a, this.clonePosition())));
2642
+ } : this.error(m.INVALID_TAG, p(s, this.clonePosition())));
2678
2643
  } else
2679
2644
  return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
2680
2645
  } else
2681
2646
  return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
2682
2647
  }, e.prototype.parseTagName = function() {
2683
2648
  var t = this.offset();
2684
- for (this.bump(); !this.isEOF() && Tn(this.char()); )
2649
+ for (this.bump(); !this.isEOF() && dn(this.char()); )
2685
2650
  this.bump();
2686
2651
  return this.message.slice(t, this.offset());
2687
2652
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2691,26 +2656,26 @@ var _n = (
2691
2656
  i += o;
2692
2657
  continue;
2693
2658
  }
2694
- var s = this.tryParseUnquoted(t, r);
2695
- if (s) {
2696
- i += s;
2697
- continue;
2698
- }
2699
- var a = this.tryParseLeftAngleBracket();
2659
+ var a = this.tryParseUnquoted(t, r);
2700
2660
  if (a) {
2701
2661
  i += a;
2702
2662
  continue;
2703
2663
  }
2664
+ var s = this.tryParseLeftAngleBracket();
2665
+ if (s) {
2666
+ i += s;
2667
+ continue;
2668
+ }
2704
2669
  break;
2705
2670
  }
2706
- var l = p(n, this.clonePosition());
2671
+ var h = p(n, this.clonePosition());
2707
2672
  return {
2708
- val: { type: x.literal, value: i, location: l },
2673
+ val: { type: x.literal, value: i, location: h },
2709
2674
  err: null
2710
2675
  };
2711
2676
  }, e.prototype.tryParseLeftAngleBracket = function() {
2712
2677
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2713
- !Sn(this.peek() || 0)) ? (this.bump(), "<") : null;
2678
+ !fn(this.peek() || 0)) ? (this.bump(), "<") : null;
2714
2679
  }, e.prototype.tryParseQuote = function(t) {
2715
2680
  if (this.isEOF() || this.char() !== 39)
2716
2681
  return null;
@@ -2744,12 +2709,12 @@ var _n = (
2744
2709
  r.push(n);
2745
2710
  this.bump();
2746
2711
  }
2747
- return Ve.apply(void 0, r);
2712
+ return Ge.apply(void 0, r);
2748
2713
  }, e.prototype.tryParseUnquoted = function(t, r) {
2749
2714
  if (this.isEOF())
2750
2715
  return null;
2751
2716
  var n = this.char();
2752
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
2717
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
2753
2718
  }, e.prototype.parseArgument = function(t, r) {
2754
2719
  var n = this.clonePosition();
2755
2720
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2778,15 +2743,15 @@ var _n = (
2778
2743
  return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2779
2744
  }
2780
2745
  }, e.prototype.parseIdentifierIfPossible = function() {
2781
- var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
2746
+ var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
2782
2747
  this.bumpTo(i);
2783
- var o = this.clonePosition(), s = p(t, o);
2784
- return { value: n, location: s };
2748
+ var o = this.clonePosition(), a = p(t, o);
2749
+ return { value: n, location: a };
2785
2750
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2786
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2787
- switch (a) {
2751
+ var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2752
+ switch (s) {
2788
2753
  case "":
2789
- return this.error(m.EXPECT_ARGUMENT_TYPE, p(s, l));
2754
+ return this.error(m.EXPECT_ARGUMENT_TYPE, p(a, h));
2790
2755
  case "number":
2791
2756
  case "date":
2792
2757
  case "time": {
@@ -2794,22 +2759,22 @@ var _n = (
2794
2759
  var u = null;
2795
2760
  if (this.bumpIf(",")) {
2796
2761
  this.bumpSpace();
2797
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2762
+ var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2798
2763
  if (f.err)
2799
2764
  return f;
2800
- var d = xn(f.val);
2765
+ var d = hn(f.val);
2801
2766
  if (d.length === 0)
2802
2767
  return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2803
- var b = p(h, this.clonePosition());
2768
+ var b = p(l, this.clonePosition());
2804
2769
  u = { style: d, styleLocation: b };
2805
2770
  }
2806
2771
  var v = this.tryParseArgumentClose(i);
2807
2772
  if (v.err)
2808
2773
  return v;
2809
2774
  var _ = p(i, this.clonePosition());
2810
- if (u && ft(u == null ? void 0 : u.style, "::", 0)) {
2811
- var S = En(u.style.slice(2));
2812
- if (a === "number") {
2775
+ if (u && ot(u?.style, "::", 0)) {
2776
+ var S = ln(u.style.slice(2));
2777
+ if (s === "number") {
2813
2778
  var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
2814
2779
  return f.err ? f : {
2815
2780
  val: { type: x.number, value: n, location: _, style: f.val },
@@ -2819,13 +2784,13 @@ var _n = (
2819
2784
  if (S.length === 0)
2820
2785
  return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
2821
2786
  var R = S;
2822
- this.locale && (R = an(S, this.locale));
2787
+ this.locale && (R = Jr(S, this.locale));
2823
2788
  var d = {
2824
- type: ne.dateTime,
2789
+ type: re.dateTime,
2825
2790
  pattern: R,
2826
2791
  location: u.styleLocation,
2827
- parsedOptions: this.shouldParseSkeletons ? Kr(R) : {}
2828
- }, N = a === "date" ? x.date : x.time;
2792
+ parsedOptions: this.shouldParseSkeletons ? kr(R) : {}
2793
+ }, N = s === "date" ? x.date : x.time;
2829
2794
  return {
2830
2795
  val: { type: N, value: n, location: _, style: d },
2831
2796
  err: null
@@ -2834,10 +2799,10 @@ var _n = (
2834
2799
  }
2835
2800
  return {
2836
2801
  val: {
2837
- type: a === "number" ? x.number : a === "date" ? x.date : x.time,
2802
+ type: s === "number" ? x.number : s === "date" ? x.date : x.time,
2838
2803
  value: n,
2839
2804
  location: _,
2840
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2805
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
2841
2806
  },
2842
2807
  err: null
2843
2808
  };
@@ -2850,7 +2815,7 @@ var _n = (
2850
2815
  return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(T, g({}, T)));
2851
2816
  this.bumpSpace();
2852
2817
  var H = this.parseIdentifierIfPossible(), I = 0;
2853
- if (a !== "select" && H.value === "offset") {
2818
+ if (s !== "select" && H.value === "offset") {
2854
2819
  if (!this.bumpIf(":"))
2855
2820
  return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2856
2821
  this.bumpSpace();
@@ -2859,35 +2824,35 @@ var _n = (
2859
2824
  return f;
2860
2825
  this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = f.val;
2861
2826
  }
2862
- var D = this.tryParsePluralOrSelectOptions(t, a, r, H);
2863
- if (D.err)
2864
- return D;
2827
+ var U = this.tryParsePluralOrSelectOptions(t, s, r, H);
2828
+ if (U.err)
2829
+ return U;
2865
2830
  var v = this.tryParseArgumentClose(i);
2866
2831
  if (v.err)
2867
2832
  return v;
2868
- var V = p(i, this.clonePosition());
2869
- return a === "select" ? {
2833
+ var j = p(i, this.clonePosition());
2834
+ return s === "select" ? {
2870
2835
  val: {
2871
2836
  type: x.select,
2872
2837
  value: n,
2873
- options: dt(D.val),
2874
- location: V
2838
+ options: st(U.val),
2839
+ location: j
2875
2840
  },
2876
2841
  err: null
2877
2842
  } : {
2878
2843
  val: {
2879
2844
  type: x.plural,
2880
2845
  value: n,
2881
- options: dt(D.val),
2846
+ options: st(U.val),
2882
2847
  offset: I,
2883
- pluralType: a === "plural" ? "cardinal" : "ordinal",
2884
- location: V
2848
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
2849
+ location: j
2885
2850
  },
2886
2851
  err: null
2887
2852
  };
2888
2853
  }
2889
2854
  default:
2890
- return this.error(m.INVALID_ARGUMENT_TYPE, p(s, l));
2855
+ return this.error(m.INVALID_ARGUMENT_TYPE, p(a, h));
2891
2856
  }
2892
2857
  }, e.prototype.tryParseArgumentClose = function(t) {
2893
2858
  return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2929,34 +2894,34 @@ var _n = (
2929
2894
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2930
2895
  var n = [];
2931
2896
  try {
2932
- n = tn(t);
2933
- } catch (i) {
2897
+ n = Vr(t);
2898
+ } catch {
2934
2899
  return this.error(m.INVALID_NUMBER_SKELETON, r);
2935
2900
  }
2936
2901
  return {
2937
2902
  val: {
2938
- type: ne.number,
2903
+ type: re.number,
2939
2904
  tokens: n,
2940
2905
  location: r,
2941
- parsedOptions: this.shouldParseSkeletons ? sn(n) : {}
2906
+ parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
2942
2907
  },
2943
2908
  err: null
2944
2909
  };
2945
2910
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2946
- for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2911
+ for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
2947
2912
  if (u.length === 0) {
2948
2913
  var f = this.clonePosition();
2949
2914
  if (r !== "select" && this.bumpIf("=")) {
2950
2915
  var d = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
2951
2916
  if (d.err)
2952
2917
  return d;
2953
- h = p(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2918
+ l = p(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2954
2919
  } else
2955
2920
  break;
2956
2921
  }
2957
- if (l.has(u))
2958
- return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2959
- u === "other" && (s = !0), this.bumpSpace();
2922
+ if (h.has(u))
2923
+ return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2924
+ u === "other" && (a = !0), this.bumpSpace();
2960
2925
  var b = this.clonePosition();
2961
2926
  if (!this.bumpIf("{"))
2962
2927
  return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
@@ -2966,27 +2931,27 @@ var _n = (
2966
2931
  var _ = this.tryParseArgumentClose(b);
2967
2932
  if (_.err)
2968
2933
  return _;
2969
- a.push([
2934
+ s.push([
2970
2935
  u,
2971
2936
  {
2972
2937
  value: v.val,
2973
2938
  location: p(b, this.clonePosition())
2974
2939
  }
2975
- ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
2940
+ ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
2976
2941
  }
2977
- return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2942
+ return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2978
2943
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2979
2944
  var n = 1, i = this.clonePosition();
2980
2945
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2981
- for (var o = !1, s = 0; !this.isEOF(); ) {
2982
- var a = this.char();
2983
- if (a >= 48 && a <= 57)
2984
- o = !0, s = s * 10 + (a - 48), this.bump();
2946
+ for (var o = !1, a = 0; !this.isEOF(); ) {
2947
+ var s = this.char();
2948
+ if (s >= 48 && s <= 57)
2949
+ o = !0, a = a * 10 + (s - 48), this.bump();
2985
2950
  else
2986
2951
  break;
2987
2952
  }
2988
- var l = p(i, this.clonePosition());
2989
- return o ? (s *= n, vn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
2953
+ var h = p(i, this.clonePosition());
2954
+ return o ? (a *= n, an(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2990
2955
  }, e.prototype.offset = function() {
2991
2956
  return this.position.offset;
2992
2957
  }, e.prototype.isEOF = function() {
@@ -3001,7 +2966,7 @@ var _n = (
3001
2966
  var t = this.position.offset;
3002
2967
  if (t >= this.message.length)
3003
2968
  throw Error("out of bound");
3004
- var r = jt(this.message, t);
2969
+ var r = Rt(this.message, t);
3005
2970
  if (r === void 0)
3006
2971
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3007
2972
  return r;
@@ -3020,7 +2985,7 @@ var _n = (
3020
2985
  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);
3021
2986
  }
3022
2987
  }, e.prototype.bumpIf = function(t) {
3023
- if (ft(this.message, t, this.offset())) {
2988
+ if (ot(this.message, t, this.offset())) {
3024
2989
  for (var r = 0; r < t.length; r++)
3025
2990
  this.bump();
3026
2991
  return !0;
@@ -3042,56 +3007,56 @@ var _n = (
3042
3007
  break;
3043
3008
  }
3044
3009
  }, e.prototype.bumpSpace = function() {
3045
- for (; !this.isEOF() && Xt(this.char()); )
3010
+ for (; !this.isEOF() && Ut(this.char()); )
3046
3011
  this.bump();
3047
3012
  }, e.prototype.peek = function() {
3048
3013
  if (this.isEOF())
3049
3014
  return null;
3050
3015
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3051
- return n != null ? n : null;
3016
+ return n ?? null;
3052
3017
  }, e;
3053
3018
  }()
3054
3019
  );
3055
- function ze(e) {
3020
+ function je(e) {
3056
3021
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3057
3022
  }
3058
- function Sn(e) {
3059
- return ze(e) || e === 47;
3023
+ function fn(e) {
3024
+ return je(e) || e === 47;
3060
3025
  }
3061
- function Tn(e) {
3026
+ function dn(e) {
3062
3027
  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;
3063
3028
  }
3064
- function Xt(e) {
3029
+ function Ut(e) {
3065
3030
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3066
3031
  }
3067
- function Hn(e) {
3032
+ function mn(e) {
3068
3033
  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;
3069
3034
  }
3070
- function We(e) {
3035
+ function Ve(e) {
3071
3036
  e.forEach(function(t) {
3072
- if (delete t.location, Lt(t) || Rt(t))
3037
+ if (delete t.location, wt(t) || Pt(t))
3073
3038
  for (var r in t.options)
3074
- delete t.options[r].location, We(t.options[r].value);
3075
- else Nt(t) && Ut(t.style) || (Ot(t) || Mt(t)) && ke(t.style) ? delete t.style.location : $t(t) && We(t.children);
3039
+ delete t.options[r].location, Ve(t.options[r].value);
3040
+ else Ht(t) && It(t.style) || (At(t) || Bt(t)) && De(t.style) ? delete t.style.location : Ct(t) && Ve(t.children);
3076
3041
  });
3077
3042
  }
3078
- function An(e, t) {
3043
+ function pn(e, t) {
3079
3044
  t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3080
- var r = new _n(e, t).parse();
3045
+ var r = new cn(e, t).parse();
3081
3046
  if (r.err) {
3082
3047
  var n = SyntaxError(m[r.err.kind]);
3083
3048
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3084
3049
  }
3085
- return t != null && t.captureLocation || We(r.val), r.val;
3050
+ return t?.captureLocation || Ve(r.val), r.val;
3086
3051
  }
3087
- var ie;
3052
+ var ne;
3088
3053
  (function(e) {
3089
3054
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3090
- })(ie || (ie = {}));
3091
- var Be = (
3055
+ })(ne || (ne = {}));
3056
+ var He = (
3092
3057
  /** @class */
3093
3058
  function(e) {
3094
- Ae(t, e);
3059
+ Te(t, e);
3095
3060
  function t(r, n, i) {
3096
3061
  var o = e.call(this, r) || this;
3097
3062
  return o.code = n, o.originalMessage = i, o;
@@ -3100,155 +3065,155 @@ var Be = (
3100
3065
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3101
3066
  }, t;
3102
3067
  }(Error)
3103
- ), pt = (
3068
+ ), ut = (
3104
3069
  /** @class */
3105
3070
  function(e) {
3106
- Ae(t, e);
3071
+ Te(t, e);
3107
3072
  function t(r, n, i, o) {
3108
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
3073
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
3109
3074
  }
3110
3075
  return t;
3111
- }(Be)
3112
- ), Bn = (
3076
+ }(He)
3077
+ ), bn = (
3113
3078
  /** @class */
3114
3079
  function(e) {
3115
- Ae(t, e);
3080
+ Te(t, e);
3116
3081
  function t(r, n, i) {
3117
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
3082
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
3118
3083
  }
3119
3084
  return t;
3120
- }(Be)
3121
- ), wn = (
3085
+ }(He)
3086
+ ), gn = (
3122
3087
  /** @class */
3123
3088
  function(e) {
3124
- Ae(t, e);
3089
+ Te(t, e);
3125
3090
  function t(r, n) {
3126
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
3091
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
3127
3092
  }
3128
3093
  return t;
3129
- }(Be)
3094
+ }(He)
3130
3095
  ), C;
3131
3096
  (function(e) {
3132
3097
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3133
3098
  })(C || (C = {}));
3134
- function Pn(e) {
3099
+ function vn(e) {
3135
3100
  return e.length < 2 ? e : e.reduce(function(t, r) {
3136
3101
  var n = t[t.length - 1];
3137
3102
  return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
3138
3103
  }, []);
3139
3104
  }
3140
- function Cn(e) {
3105
+ function yn(e) {
3141
3106
  return typeof e == "function";
3142
3107
  }
3143
- function xe(e, t, r, n, i, o, s) {
3144
- if (e.length === 1 && ut(e[0]))
3108
+ function ye(e, t, r, n, i, o, a) {
3109
+ if (e.length === 1 && tt(e[0]))
3145
3110
  return [
3146
3111
  {
3147
3112
  type: C.literal,
3148
3113
  value: e[0].value
3149
3114
  }
3150
3115
  ];
3151
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3152
- var h = u[l];
3153
- if (ut(h)) {
3154
- a.push({
3116
+ for (var s = [], h = 0, u = e; h < u.length; h++) {
3117
+ var l = u[h];
3118
+ if (tt(l)) {
3119
+ s.push({
3155
3120
  type: C.literal,
3156
- value: h.value
3121
+ value: l.value
3157
3122
  });
3158
3123
  continue;
3159
3124
  }
3160
- if (qr(h)) {
3161
- typeof o == "number" && a.push({
3125
+ if (Fr(l)) {
3126
+ typeof o == "number" && s.push({
3162
3127
  type: C.literal,
3163
3128
  value: r.getNumberFormat(t).format(o)
3164
3129
  });
3165
3130
  continue;
3166
3131
  }
3167
- var f = h.value;
3132
+ var f = l.value;
3168
3133
  if (!(i && f in i))
3169
- throw new wn(f, s);
3134
+ throw new gn(f, a);
3170
3135
  var d = i[f];
3171
- if (Qr(h)) {
3172
- (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
3136
+ if (Dr(l)) {
3137
+ (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3173
3138
  type: typeof d == "string" ? C.literal : C.object,
3174
3139
  value: d
3175
3140
  });
3176
3141
  continue;
3177
3142
  }
3178
- if (Ot(h)) {
3179
- var b = typeof h.style == "string" ? n.date[h.style] : ke(h.style) ? h.style.parsedOptions : void 0;
3180
- a.push({
3143
+ if (At(l)) {
3144
+ var b = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3145
+ s.push({
3181
3146
  type: C.literal,
3182
3147
  value: r.getDateTimeFormat(t, b).format(d)
3183
3148
  });
3184
3149
  continue;
3185
3150
  }
3186
- if (Mt(h)) {
3187
- var b = typeof h.style == "string" ? n.time[h.style] : ke(h.style) ? h.style.parsedOptions : n.time.medium;
3188
- a.push({
3151
+ if (Bt(l)) {
3152
+ var b = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3153
+ s.push({
3189
3154
  type: C.literal,
3190
3155
  value: r.getDateTimeFormat(t, b).format(d)
3191
3156
  });
3192
3157
  continue;
3193
3158
  }
3194
- if (Nt(h)) {
3195
- var b = typeof h.style == "string" ? n.number[h.style] : Ut(h.style) ? h.style.parsedOptions : void 0;
3196
- b && b.scale && (d = d * (b.scale || 1)), a.push({
3159
+ if (Ht(l)) {
3160
+ var b = typeof l.style == "string" ? n.number[l.style] : It(l.style) ? l.style.parsedOptions : void 0;
3161
+ b && b.scale && (d = d * (b.scale || 1)), s.push({
3197
3162
  type: C.literal,
3198
3163
  value: r.getNumberFormat(t, b).format(d)
3199
3164
  });
3200
3165
  continue;
3201
3166
  }
3202
- if ($t(h)) {
3203
- var v = h.children, _ = h.value, S = i[_];
3204
- if (!Cn(S))
3205
- throw new Bn(_, "function", s);
3206
- var R = xe(v, t, r, n, i, o), N = S(R.map(function(I) {
3167
+ if (Ct(l)) {
3168
+ var v = l.children, _ = l.value, S = i[_];
3169
+ if (!yn(S))
3170
+ throw new bn(_, "function", a);
3171
+ var R = ye(v, t, r, n, i, o), N = S(R.map(function(I) {
3207
3172
  return I.value;
3208
3173
  }));
3209
- Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(I) {
3174
+ Array.isArray(N) || (N = [N]), s.push.apply(s, N.map(function(I) {
3210
3175
  return {
3211
3176
  type: typeof I == "string" ? C.literal : C.object,
3212
3177
  value: I
3213
3178
  };
3214
3179
  }));
3215
3180
  }
3216
- if (Lt(h)) {
3217
- var T = h.options[d] || h.options.other;
3181
+ if (wt(l)) {
3182
+ var T = l.options[d] || l.options.other;
3218
3183
  if (!T)
3219
- throw new pt(h.value, d, Object.keys(h.options), s);
3220
- a.push.apply(a, xe(T.value, t, r, n, i));
3184
+ throw new ut(l.value, d, Object.keys(l.options), a);
3185
+ s.push.apply(s, ye(T.value, t, r, n, i));
3221
3186
  continue;
3222
3187
  }
3223
- if (Rt(h)) {
3224
- var T = h.options["=".concat(d)];
3188
+ if (Pt(l)) {
3189
+ var T = l.options["=".concat(d)];
3225
3190
  if (!T) {
3226
3191
  if (!Intl.PluralRules)
3227
- throw new Be(`Intl.PluralRules is not available in this environment.
3192
+ throw new He(`Intl.PluralRules is not available in this environment.
3228
3193
  Try polyfilling it using "@formatjs/intl-pluralrules"
3229
- `, ie.MISSING_INTL_API, s);
3230
- var H = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
3231
- T = h.options[H] || h.options.other;
3194
+ `, ne.MISSING_INTL_API, a);
3195
+ var H = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
3196
+ T = l.options[H] || l.options.other;
3232
3197
  }
3233
3198
  if (!T)
3234
- throw new pt(h.value, d, Object.keys(h.options), s);
3235
- a.push.apply(a, xe(T.value, t, r, n, i, d - (h.offset || 0)));
3199
+ throw new ut(l.value, d, Object.keys(l.options), a);
3200
+ s.push.apply(s, ye(T.value, t, r, n, i, d - (l.offset || 0)));
3236
3201
  continue;
3237
3202
  }
3238
3203
  }
3239
- return Pn(a);
3204
+ return vn(s);
3240
3205
  }
3241
- function In(e, t) {
3206
+ function En(e, t) {
3242
3207
  return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3243
3208
  return r[n] = g(g({}, e[n]), t[n] || {}), r;
3244
3209
  }, {})) : e;
3245
3210
  }
3246
- function Nn(e, t) {
3211
+ function xn(e, t) {
3247
3212
  return t ? Object.keys(e).reduce(function(r, n) {
3248
- return r[n] = In(e[n], t[n]), r;
3213
+ return r[n] = En(e[n], t[n]), r;
3249
3214
  }, g({}, e)) : e;
3250
3215
  }
3251
- function Re(e) {
3216
+ function Oe(e) {
3252
3217
  return {
3253
3218
  create: function() {
3254
3219
  return {
@@ -3262,39 +3227,39 @@ function Re(e) {
3262
3227
  }
3263
3228
  };
3264
3229
  }
3265
- function On(e) {
3230
+ function _n(e) {
3266
3231
  return e === void 0 && (e = {
3267
3232
  number: {},
3268
3233
  dateTime: {},
3269
3234
  pluralRules: {}
3270
3235
  }), {
3271
- getNumberFormat: Oe(function() {
3236
+ getNumberFormat: Ce(function() {
3272
3237
  for (var t, r = [], n = 0; n < arguments.length; n++)
3273
3238
  r[n] = arguments[n];
3274
- return new ((t = Intl.NumberFormat).bind.apply(t, Ne([void 0], r, !1)))();
3239
+ return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
3275
3240
  }, {
3276
- cache: Re(e.number),
3277
- strategy: Me.variadic
3241
+ cache: Oe(e.number),
3242
+ strategy: Ie.variadic
3278
3243
  }),
3279
- getDateTimeFormat: Oe(function() {
3244
+ getDateTimeFormat: Ce(function() {
3280
3245
  for (var t, r = [], n = 0; n < arguments.length; n++)
3281
3246
  r[n] = arguments[n];
3282
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ne([void 0], r, !1)))();
3247
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
3283
3248
  }, {
3284
- cache: Re(e.dateTime),
3285
- strategy: Me.variadic
3249
+ cache: Oe(e.dateTime),
3250
+ strategy: Ie.variadic
3286
3251
  }),
3287
- getPluralRules: Oe(function() {
3252
+ getPluralRules: Ce(function() {
3288
3253
  for (var t, r = [], n = 0; n < arguments.length; n++)
3289
3254
  r[n] = arguments[n];
3290
- return new ((t = Intl.PluralRules).bind.apply(t, Ne([void 0], r, !1)))();
3255
+ return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
3291
3256
  }, {
3292
- cache: Re(e.pluralRules),
3293
- strategy: Me.variadic
3257
+ cache: Oe(e.pluralRules),
3258
+ strategy: Ie.variadic
3294
3259
  })
3295
3260
  };
3296
3261
  }
3297
- var Mn = (
3262
+ var Sn = (
3298
3263
  /** @class */
3299
3264
  function() {
3300
3265
  function e(t, r, n, i) {
@@ -3304,35 +3269,35 @@ var Mn = (
3304
3269
  number: {},
3305
3270
  dateTime: {},
3306
3271
  pluralRules: {}
3307
- }, this.format = function(l) {
3308
- var u = o.formatToParts(l);
3272
+ }, this.format = function(h) {
3273
+ var u = o.formatToParts(h);
3309
3274
  if (u.length === 1)
3310
3275
  return u[0].value;
3311
- var h = u.reduce(function(f, d) {
3276
+ var l = u.reduce(function(f, d) {
3312
3277
  return !f.length || d.type !== C.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
3313
3278
  }, []);
3314
- return h.length <= 1 ? h[0] || "" : h;
3315
- }, this.formatToParts = function(l) {
3316
- return xe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3279
+ return l.length <= 1 ? l[0] || "" : l;
3280
+ }, this.formatToParts = function(h) {
3281
+ return ye(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3317
3282
  }, this.resolvedOptions = function() {
3318
- var l;
3283
+ var h;
3319
3284
  return {
3320
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3285
+ locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3321
3286
  };
3322
3287
  }, this.getAst = function() {
3323
3288
  return o.ast;
3324
3289
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3325
3290
  if (this.message = t, !e.__parse)
3326
3291
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3327
- var s = i || {};
3328
- s.formatters;
3329
- var a = jr(s, ["formatters"]);
3330
- this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
3292
+ var a = i || {};
3293
+ a.formatters;
3294
+ var s = Ir(a, ["formatters"]);
3295
+ this.ast = e.__parse(t, g(g({}, s), { locale: this.resolvedLocale }));
3331
3296
  } else
3332
3297
  this.ast = t;
3333
3298
  if (!Array.isArray(this.ast))
3334
3299
  throw new TypeError("A message must be provided as a String or AST.");
3335
- this.formats = Nn(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
3300
+ this.formats = xn(e.formats, n), this.formatters = i && i.formatters || _n(this.formatterCache);
3336
3301
  }
3337
3302
  return Object.defineProperty(e, "defaultLocale", {
3338
3303
  get: function() {
@@ -3341,11 +3306,11 @@ var Mn = (
3341
3306
  enumerable: !1,
3342
3307
  configurable: !0
3343
3308
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3344
- if (typeof Intl.Locale != "undefined") {
3309
+ if (!(typeof Intl.Locale > "u")) {
3345
3310
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3346
3311
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3347
3312
  }
3348
- }, e.__parse = An, e.formats = {
3313
+ }, e.__parse = pn, e.formats = {
3349
3314
  number: {
3350
3315
  integer: {
3351
3316
  maximumFractionDigits: 0
@@ -3406,7 +3371,7 @@ var Mn = (
3406
3371
  }, e;
3407
3372
  }()
3408
3373
  );
3409
- function Ln(e, t) {
3374
+ function Tn(e, t) {
3410
3375
  if (t == null)
3411
3376
  return;
3412
3377
  if (t in e)
@@ -3427,92 +3392,92 @@ function Ln(e, t) {
3427
3392
  n = void 0;
3428
3393
  return n;
3429
3394
  }
3430
- const k = {}, Rn = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), zt = (e, t) => {
3395
+ const G = {}, Hn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Dt = (e, t) => {
3431
3396
  if (t == null)
3432
3397
  return;
3433
- if (t in k && e in k[t])
3434
- return k[t][e];
3435
- const r = we(t);
3398
+ if (t in G && e in G[t])
3399
+ return G[t][e];
3400
+ const r = Ae(t);
3436
3401
  for (let n = 0; n < r.length; n++) {
3437
- const i = r[n], o = Un(i, e);
3402
+ const i = r[n], o = Bn(i, e);
3438
3403
  if (o)
3439
- return Rn(e, t, o);
3404
+ return Hn(e, t, o);
3440
3405
  }
3441
3406
  };
3442
- let Ke;
3443
- const ue = He({});
3444
- function $n(e) {
3445
- return Ke[e] || null;
3407
+ let Je;
3408
+ const ae = Se({});
3409
+ function An(e) {
3410
+ return Je[e] || null;
3446
3411
  }
3447
- function Wt(e) {
3448
- return e in Ke;
3412
+ function Ft(e) {
3413
+ return e in Je;
3449
3414
  }
3450
- function Un(e, t) {
3451
- if (!Wt(e))
3415
+ function Bn(e, t) {
3416
+ if (!Ft(e))
3452
3417
  return null;
3453
- const r = $n(e);
3454
- return Ln(r, t);
3418
+ const r = An(e);
3419
+ return Tn(r, t);
3455
3420
  }
3456
- function Dn(e) {
3421
+ function wn(e) {
3457
3422
  if (e == null)
3458
3423
  return;
3459
- const t = we(e);
3424
+ const t = Ae(e);
3460
3425
  for (let r = 0; r < t.length; r++) {
3461
3426
  const n = t[r];
3462
- if (Wt(n))
3427
+ if (Ft(n))
3463
3428
  return n;
3464
3429
  }
3465
3430
  }
3466
- function Zt(e, ...t) {
3467
- delete k[e], ue.update((r) => (r[e] = kr.all([r[e] || {}, ...t]), r));
3431
+ function Gt(e, ...t) {
3432
+ delete G[e], ae.update((r) => (r[e] = Cr.all([r[e] || {}, ...t]), r));
3468
3433
  }
3469
- ae(
3470
- [ue],
3434
+ se(
3435
+ [ae],
3471
3436
  ([e]) => Object.keys(e)
3472
3437
  );
3473
- ue.subscribe((e) => Ke = e);
3474
- const _e = {};
3475
- function Fn(e, t) {
3476
- _e[e].delete(t), _e[e].size === 0 && delete _e[e];
3438
+ ae.subscribe((e) => Je = e);
3439
+ const Ee = {};
3440
+ function Pn(e, t) {
3441
+ Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
3477
3442
  }
3478
- function Jt(e) {
3479
- return _e[e];
3443
+ function kt(e) {
3444
+ return Ee[e];
3480
3445
  }
3481
- function Gn(e) {
3482
- return we(e).map((t) => {
3483
- const r = Jt(t);
3446
+ function Cn(e) {
3447
+ return Ae(e).map((t) => {
3448
+ const r = kt(t);
3484
3449
  return [t, r ? [...r] : []];
3485
3450
  }).filter(([, t]) => t.length > 0);
3486
3451
  }
3487
- function Ze(e) {
3488
- return e == null ? !1 : we(e).some(
3452
+ function Xe(e) {
3453
+ return e == null ? !1 : Ae(e).some(
3489
3454
  (t) => {
3490
3455
  var r;
3491
- return (r = Jt(t)) == null ? void 0 : r.size;
3456
+ return (r = kt(t)) == null ? void 0 : r.size;
3492
3457
  }
3493
3458
  );
3494
3459
  }
3495
- function kn(e, t) {
3460
+ function In(e, t) {
3496
3461
  return Promise.all(
3497
- t.map((n) => (Fn(e, n), n().then((i) => i.default || i)))
3498
- ).then((n) => Zt(e, ...n));
3499
- }
3500
- const he = {};
3501
- function Qt(e) {
3502
- if (!Ze(e))
3503
- return e in he ? he[e] : Promise.resolve();
3504
- const t = Gn(e);
3505
- return he[e] = Promise.all(
3462
+ t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
3463
+ ).then((n) => Gt(e, ...n));
3464
+ }
3465
+ const le = {};
3466
+ function jt(e) {
3467
+ if (!Xe(e))
3468
+ return e in le ? le[e] : Promise.resolve();
3469
+ const t = Cn(e);
3470
+ return le[e] = Promise.all(
3506
3471
  t.map(
3507
- ([r, n]) => kn(r, n)
3472
+ ([r, n]) => In(r, n)
3508
3473
  )
3509
3474
  ).then(() => {
3510
- if (Ze(e))
3511
- return Qt(e);
3512
- delete he[e];
3513
- }), he[e];
3475
+ if (Xe(e))
3476
+ return jt(e);
3477
+ delete le[e];
3478
+ }), le[e];
3514
3479
  }
3515
- const jn = {
3480
+ const Nn = {
3516
3481
  number: {
3517
3482
  scientific: { notation: "scientific" },
3518
3483
  engineering: { notation: "engineering" },
@@ -3541,159 +3506,159 @@ const jn = {
3541
3506
  timeZoneName: "short"
3542
3507
  }
3543
3508
  }
3544
- }, Vn = {
3509
+ }, On = {
3545
3510
  fallbackLocale: null,
3546
3511
  loadingDelay: 200,
3547
- formats: jn,
3512
+ formats: Nn,
3548
3513
  warnOnMissingMessages: !0,
3549
3514
  handleMissingMessage: void 0,
3550
3515
  ignoreTag: !0
3551
- }, Xn = Vn;
3552
- function oe() {
3553
- return Xn;
3554
- }
3555
- const $e = He(!1);
3556
- var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qn = (e, t) => {
3557
- for (var r in t || (t = {}))
3558
- Jn.call(t, r) && gt(e, r, t[r]);
3559
- if (bt)
3560
- for (var r of bt(t))
3561
- Qn.call(t, r) && gt(e, r, t[r]);
3516
+ }, Mn = On;
3517
+ function ie() {
3518
+ return Mn;
3519
+ }
3520
+ const Me = Se(!1);
3521
+ var Ln = Object.defineProperty, Rn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, lt = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
3522
+ for (var r in t)
3523
+ Un.call(t, r) && ht(e, r, t[r]);
3524
+ if (lt)
3525
+ for (var r of lt(t))
3526
+ Dn.call(t, r) && ht(e, r, t[r]);
3562
3527
  return e;
3563
- }, Yn = (e, t) => Wn(e, Zn(t));
3564
- let Je;
3565
- const Se = He(null);
3566
- function vt(e) {
3528
+ }, Gn = (e, t) => Rn(e, $n(t));
3529
+ let ze;
3530
+ const xe = Se(null);
3531
+ function ct(e) {
3567
3532
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3568
3533
  }
3569
- function we(e, t = oe().fallbackLocale) {
3570
- const r = vt(e);
3571
- return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
3534
+ function Ae(e, t = ie().fallbackLocale) {
3535
+ const r = ct(e);
3536
+ return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
3572
3537
  }
3573
- function J() {
3574
- return Je != null ? Je : void 0;
3538
+ function Z() {
3539
+ return ze ?? void 0;
3575
3540
  }
3576
- Se.subscribe((e) => {
3577
- Je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3541
+ xe.subscribe((e) => {
3542
+ ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3578
3543
  });
3579
- const Kn = (e) => {
3580
- if (e && Dn(e) && Ze(e)) {
3581
- const { loadingDelay: t } = oe();
3544
+ const kn = (e) => {
3545
+ if (e && wn(e) && Xe(e)) {
3546
+ const { loadingDelay: t } = ie();
3582
3547
  let r;
3583
- return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
3584
- () => $e.set(!0),
3548
+ return typeof window < "u" && Z() != null && t ? r = window.setTimeout(
3549
+ () => Me.set(!0),
3585
3550
  t
3586
- ) : $e.set(!0), Qt(e).then(() => {
3587
- Se.set(e);
3551
+ ) : Me.set(!0), jt(e).then(() => {
3552
+ xe.set(e);
3588
3553
  }).finally(() => {
3589
- clearTimeout(r), $e.set(!1);
3554
+ clearTimeout(r), Me.set(!1);
3590
3555
  });
3591
3556
  }
3592
- return Se.set(e);
3593
- }, W = Yn(qn({}, Se), {
3594
- set: Kn
3595
- }), Pe = (e) => {
3557
+ return xe.set(e);
3558
+ }, z = Gn(Fn({}, xe), {
3559
+ set: kn
3560
+ }), Be = (e) => {
3596
3561
  const t = /* @__PURE__ */ Object.create(null);
3597
3562
  return (n) => {
3598
3563
  const i = JSON.stringify(n);
3599
3564
  return i in t ? t[i] : t[i] = e(n);
3600
3565
  };
3601
3566
  };
3602
- var ei = Object.defineProperty, Te = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
3567
+ var jn = Object.defineProperty, _e = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3603
3568
  for (var r in t || (t = {}))
3604
- qt.call(t, r) && yt(e, r, t[r]);
3605
- if (Te)
3606
- for (var r of Te(t))
3607
- Yt.call(t, r) && yt(e, r, t[r]);
3569
+ Vt.call(t, r) && ft(e, r, t[r]);
3570
+ if (_e)
3571
+ for (var r of _e(t))
3572
+ Xt.call(t, r) && ft(e, r, t[r]);
3608
3573
  return e;
3609
- }, le = (e, t) => {
3574
+ }, ue = (e, t) => {
3610
3575
  var r = {};
3611
3576
  for (var n in e)
3612
- qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3613
- if (e != null && Te)
3614
- for (var n of Te(e))
3615
- t.indexOf(n) < 0 && Yt.call(e, n) && (r[n] = e[n]);
3577
+ Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3578
+ if (e != null && _e)
3579
+ for (var n of _e(e))
3580
+ t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
3616
3581
  return r;
3617
3582
  };
3618
- const me = (e, t) => {
3619
- const { formats: r } = oe();
3583
+ const de = (e, t) => {
3584
+ const { formats: r } = ie();
3620
3585
  if (e in r && t in r[e])
3621
3586
  return r[e][t];
3622
3587
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3623
- }, ti = Pe(
3588
+ }, Vn = Be(
3624
3589
  (e) => {
3625
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3590
+ var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3626
3591
  if (r == null)
3627
3592
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3628
- return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
3593
+ return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
3629
3594
  }
3630
- ), ri = Pe(
3595
+ ), Xn = Be(
3631
3596
  (e) => {
3632
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3597
+ var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3633
3598
  if (r == null)
3634
3599
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3635
- return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
3600
+ return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
3636
3601
  }
3637
- ), ni = Pe(
3602
+ ), zn = Be(
3638
3603
  (e) => {
3639
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3604
+ var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3640
3605
  if (r == null)
3641
3606
  throw new Error(
3642
3607
  '[svelte-i18n] A "locale" must be set to format time values'
3643
3608
  );
3644
- return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
3609
+ return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
3645
3610
  }
3646
- ), ii = (e = {}) => {
3611
+ ), Wn = (e = {}) => {
3647
3612
  var t = e, {
3648
- locale: r = J()
3649
- } = t, n = le(t, [
3613
+ locale: r = Z()
3614
+ } = t, n = ue(t, [
3650
3615
  "locale"
3651
3616
  ]);
3652
- return ti(et({ locale: r }, n));
3653
- }, oi = (e = {}) => {
3617
+ return Vn(Qe({ locale: r }, n));
3618
+ }, Zn = (e = {}) => {
3654
3619
  var t = e, {
3655
- locale: r = J()
3656
- } = t, n = le(t, [
3620
+ locale: r = Z()
3621
+ } = t, n = ue(t, [
3657
3622
  "locale"
3658
3623
  ]);
3659
- return ri(et({ locale: r }, n));
3660
- }, si = (e = {}) => {
3624
+ return Xn(Qe({ locale: r }, n));
3625
+ }, Jn = (e = {}) => {
3661
3626
  var t = e, {
3662
- locale: r = J()
3663
- } = t, n = le(t, [
3627
+ locale: r = Z()
3628
+ } = t, n = ue(t, [
3664
3629
  "locale"
3665
3630
  ]);
3666
- return ni(et({ locale: r }, n));
3667
- }, ai = Pe(
3631
+ return zn(Qe({ locale: r }, n));
3632
+ }, Qn = Be(
3668
3633
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3669
- (e, t = J()) => new Mn(e, t, oe().formats, {
3670
- ignoreTag: oe().ignoreTag
3634
+ (e, t = Z()) => new Sn(e, t, ie().formats, {
3635
+ ignoreTag: ie().ignoreTag
3671
3636
  })
3672
- ), ui = (e, t = {}) => {
3637
+ ), qn = (e, t = {}) => {
3673
3638
  var r, n, i, o;
3674
- let s = t;
3675
- typeof e == "object" && (s = e, e = s.id);
3639
+ let a = t;
3640
+ typeof e == "object" && (a = e, e = a.id);
3676
3641
  const {
3677
- values: a,
3678
- locale: l = J(),
3642
+ values: s,
3643
+ locale: h = Z(),
3679
3644
  default: u
3680
- } = s;
3681
- if (l == null)
3645
+ } = a;
3646
+ if (h == null)
3682
3647
  throw new Error(
3683
3648
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3684
3649
  );
3685
- let h = zt(e, l);
3686
- if (!h)
3687
- h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3688
- else if (typeof h != "string")
3650
+ let l = Dt(e, h);
3651
+ if (!l)
3652
+ l = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3653
+ else if (typeof l != "string")
3689
3654
  return console.warn(
3690
- `[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.`
3691
- ), h;
3692
- if (!a)
3693
- return h;
3694
- let f = h;
3655
+ `[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.`
3656
+ ), l;
3657
+ if (!s)
3658
+ return l;
3659
+ let f = l;
3695
3660
  try {
3696
- f = ai(h, l).format(a);
3661
+ f = Qn(l, h).format(s);
3697
3662
  } catch (d) {
3698
3663
  d instanceof Error && console.warn(
3699
3664
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3701,20 +3666,20 @@ const me = (e, t) => {
3701
3666
  );
3702
3667
  }
3703
3668
  return f;
3704
- }, li = (e, t) => si(t).format(e), hi = (e, t) => oi(t).format(e), ci = (e, t) => ii(t).format(e), fi = (e, t = J()) => zt(e, t), di = ae([W, ue], () => ui);
3705
- ae([W], () => li);
3706
- ae([W], () => hi);
3707
- ae([W], () => ci);
3708
- ae([W, ue], () => fi);
3709
- function mi({ withLocale: e, translations: t }) {
3710
- W.subscribe((r) => {
3711
- r == null && (ue.set(t), W.set(e));
3669
+ }, Yn = (e, t) => Jn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => Wn(t).format(e), ti = (e, t = Z()) => Dt(e, t), ri = se([z, ae], () => qn);
3670
+ se([z], () => Yn);
3671
+ se([z], () => Kn);
3672
+ se([z], () => ei);
3673
+ se([z, ae], () => ti);
3674
+ function ni({ withLocale: e, translations: t }) {
3675
+ z.subscribe((r) => {
3676
+ r == null && (ae.set(t), z.set(e));
3712
3677
  });
3713
3678
  }
3714
- function Et(e, t) {
3715
- Zt(e, t);
3679
+ function dt(e, t) {
3680
+ Gt(e, t);
3716
3681
  }
3717
- const xt = {
3682
+ const mt = {
3718
3683
  en: {
3719
3684
  title: "Please enter the verification code you received on your number",
3720
3685
  errorTitle: "Your code was invalid, you can resend the code and try again",
@@ -3821,10 +3786,10 @@ const xt = {
3821
3786
  loginSMSHint: "A new verification code has been sent to your phone number"
3822
3787
  }
3823
3788
  };
3824
- function pi(e) {
3825
- sr(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
3789
+ function ii(e) {
3790
+ Zt(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
3826
3791
  }
3827
- function bi(e) {
3792
+ function oi(e) {
3828
3793
  let t = (
3829
3794
  /*$_*/
3830
3795
  e[5]("errorTitle") + ""
@@ -3834,19 +3799,19 @@ function bi(e) {
3834
3799
  r = L(t);
3835
3800
  },
3836
3801
  m(n, i) {
3837
- Z(n, r, i);
3802
+ W(n, r, i);
3838
3803
  },
3839
3804
  p(n, i) {
3840
3805
  i & /*$_*/
3841
3806
  32 && t !== (t = /*$_*/
3842
- n[5]("errorTitle") + "") && G(r, t);
3807
+ n[5]("errorTitle") + "") && F(r, t);
3843
3808
  },
3844
3809
  d(n) {
3845
- n && j(r);
3810
+ n && k(r);
3846
3811
  }
3847
3812
  };
3848
3813
  }
3849
- function gi(e) {
3814
+ function si(e) {
3850
3815
  let t = (
3851
3816
  /*$_*/
3852
3817
  e[5]("title") + ""
@@ -3856,19 +3821,19 @@ function gi(e) {
3856
3821
  r = L(t);
3857
3822
  },
3858
3823
  m(n, i) {
3859
- Z(n, r, i);
3824
+ W(n, r, i);
3860
3825
  },
3861
3826
  p(n, i) {
3862
3827
  i & /*$_*/
3863
3828
  32 && t !== (t = /*$_*/
3864
- n[5]("title") + "") && G(r, t);
3829
+ n[5]("title") + "") && F(r, t);
3865
3830
  },
3866
3831
  d(n) {
3867
- n && j(r);
3832
+ n && k(r);
3868
3833
  }
3869
3834
  };
3870
3835
  }
3871
- function _t(e) {
3836
+ function pt(e) {
3872
3837
  let t, r = (
3873
3838
  /*$_*/
3874
3839
  e[5]("smsCodeError") + ""
@@ -3878,19 +3843,19 @@ function _t(e) {
3878
3843
  t = M("p"), n = L(r), A(t, "class", "InvalidInput");
3879
3844
  },
3880
3845
  m(i, o) {
3881
- Z(i, t, o), E(t, n);
3846
+ W(i, t, o), E(t, n);
3882
3847
  },
3883
3848
  p(i, o) {
3884
3849
  o & /*$_*/
3885
3850
  32 && r !== (r = /*$_*/
3886
- i[5]("smsCodeError") + "") && G(n, r);
3851
+ i[5]("smsCodeError") + "") && F(n, r);
3887
3852
  },
3888
3853
  d(i) {
3889
- i && j(t);
3854
+ i && k(t);
3890
3855
  }
3891
3856
  };
3892
3857
  }
3893
- function St(e) {
3858
+ function bt(e) {
3894
3859
  let t, r = (
3895
3860
  /*$_*/
3896
3861
  e[5]("resendMessage") + ""
@@ -3900,161 +3865,161 @@ function St(e) {
3900
3865
  t = M("p"), n = L(r), A(t, "class", "SmsVerificationResendMessage");
3901
3866
  },
3902
3867
  m(i, o) {
3903
- Z(i, t, o), E(t, n);
3868
+ W(i, t, o), E(t, n);
3904
3869
  },
3905
3870
  p(i, o) {
3906
3871
  o & /*$_*/
3907
3872
  32 && r !== (r = /*$_*/
3908
- i[5]("resendMessage") + "") && G(n, r);
3873
+ i[5]("resendMessage") + "") && F(n, r);
3909
3874
  },
3910
3875
  d(i) {
3911
- i && j(t);
3876
+ i && k(t);
3912
3877
  }
3913
3878
  };
3914
3879
  }
3915
- function Tt(e) {
3880
+ function gt(e) {
3916
3881
  let t, r, n = (
3917
3882
  /*secondsLeft*/
3918
3883
  e[4] < 10 ? "0" : ""
3919
- ), i, o, s;
3884
+ ), i, o, a;
3920
3885
  return {
3921
3886
  c() {
3922
3887
  t = M("span"), r = L("(0:"), i = L(n), o = L(
3923
3888
  /*secondsLeft*/
3924
3889
  e[4]
3925
- ), s = L(")"), A(t, "class", "SmsVerificationResendTimer");
3890
+ ), a = L(")"), A(t, "class", "SmsVerificationResendTimer");
3926
3891
  },
3927
- m(a, l) {
3928
- Z(a, t, l), E(t, r), E(t, i), E(t, o), E(t, s);
3892
+ m(s, h) {
3893
+ W(s, t, h), E(t, r), E(t, i), E(t, o), E(t, a);
3929
3894
  },
3930
- p(a, l) {
3931
- l & /*secondsLeft*/
3895
+ p(s, h) {
3896
+ h & /*secondsLeft*/
3932
3897
  16 && n !== (n = /*secondsLeft*/
3933
- a[4] < 10 ? "0" : "") && G(i, n), l & /*secondsLeft*/
3934
- 16 && G(
3898
+ s[4] < 10 ? "0" : "") && F(i, n), h & /*secondsLeft*/
3899
+ 16 && F(
3935
3900
  o,
3936
3901
  /*secondsLeft*/
3937
- a[4]
3902
+ s[4]
3938
3903
  );
3939
3904
  },
3940
- d(a) {
3941
- a && j(t);
3905
+ d(s) {
3906
+ s && k(t);
3942
3907
  }
3943
3908
  };
3944
3909
  }
3945
- function vi(e) {
3946
- let t, r, n, i, o, s = (
3910
+ function ai(e) {
3911
+ let t, r, n, i, o, a = (
3947
3912
  /*$_*/
3948
3913
  e[5]("code") + ""
3949
- ), a, l, u, h, f, d, b, v, _, S, R = (
3914
+ ), s, h, u, l, f, d, b, v, _, S, R = (
3950
3915
  /*$_*/
3951
3916
  e[5]("activate") + ""
3952
3917
  ), N, T, H, I = (
3953
3918
  /*$_*/
3954
3919
  e[5]("resend") + ""
3955
- ), D, V, Q, pe;
3956
- function be(c, y) {
3920
+ ), U, j, J, me;
3921
+ function pe(c, y) {
3957
3922
  return (
3958
3923
  /*isSmsValid*/
3959
- c[2] ? gi : bi
3924
+ c[2] ? si : oi
3960
3925
  );
3961
3926
  }
3962
- let X = be(e), O = X(e), B = !/*isSmsValid*/
3963
- e[2] && _t(e), w = (
3927
+ let V = pe(e), O = V(e), B = !/*isSmsValid*/
3928
+ e[2] && pt(e), w = (
3964
3929
  /*timer*/
3965
- e[3] && St(e)
3930
+ e[3] && bt(e)
3966
3931
  ), P = (
3967
3932
  /*timer*/
3968
- e[3] && Tt(e)
3933
+ e[3] && gt(e)
3969
3934
  );
3970
3935
  return {
3971
3936
  c() {
3972
- t = M("div"), r = M("h3"), O.c(), n = z(), i = M("div"), o = M("label"), a = L(s), l = L(":"), u = M("span"), u.textContent = "*", h = z(), f = M("input"), d = z(), B && B.c(), v = z(), w && w.c(), _ = z(), S = M("button"), N = L(R), T = z(), H = M("button"), D = L(I), V = z(), P && P.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(f, "type", "text"), A(f, "id", "SmsCode"), A(f, "inputmode", "numeric"), A(f, "pattern", "[0-9]*"), A(f, "maxlength", "6"), A(i, "class", b = "Field SmsVerificationField " + (/*isSmsValid*/
3937
+ t = M("div"), r = M("h3"), O.c(), n = X(), i = M("div"), o = M("label"), s = L(a), h = L(":"), u = M("span"), u.textContent = "*", l = X(), f = M("input"), d = X(), B && B.c(), v = X(), w && w.c(), _ = X(), S = M("button"), N = L(R), T = X(), H = M("button"), U = L(I), j = X(), P && P.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(f, "type", "text"), A(f, "id", "SmsCode"), A(f, "inputmode", "numeric"), A(f, "pattern", "[0-9]*"), A(f, "maxlength", "6"), A(i, "class", b = "Field SmsVerificationField " + (/*isSmsValid*/
3973
3938
  e[2] ? "" : "InvalidField")), A(S, "class", "Button SmsVerificationValidate"), A(H, "class", "Button SmsVerificationResend"), H.disabled = /*timer*/
3974
3939
  e[3], A(t, "class", "Container SmsVerificationContainer");
3975
3940
  },
3976
3941
  m(c, y) {
3977
- Z(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, a), E(o, l), E(o, u), E(i, h), E(i, f), ot(
3942
+ W(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, f), Ye(
3978
3943
  f,
3979
3944
  /*smsCode*/
3980
3945
  e[1]
3981
- ), E(i, d), B && B.m(i, null), E(t, v), w && w.m(t, null), E(t, _), E(t, S), E(S, N), E(t, T), E(t, H), E(H, D), E(H, V), P && P.m(H, null), e[19](t), Q || (pe = [
3982
- ve(
3946
+ ), E(i, d), B && B.m(i, null), E(t, v), w && w.m(t, null), E(t, _), E(t, S), E(S, N), E(t, T), E(t, H), E(H, U), E(H, j), P && P.m(H, null), e[19](t), J || (me = [
3947
+ be(
3983
3948
  f,
3984
3949
  "input",
3985
3950
  /*input_input_handler*/
3986
3951
  e[17]
3987
3952
  ),
3988
- ve(
3953
+ be(
3989
3954
  f,
3990
3955
  "keydown",
3991
3956
  /*keydown_handler*/
3992
3957
  e[18]
3993
3958
  ),
3994
- ve(
3959
+ be(
3995
3960
  S,
3996
3961
  "click",
3997
3962
  /*activateUser*/
3998
3963
  e[6]
3999
3964
  ),
4000
- ve(
3965
+ be(
4001
3966
  H,
4002
3967
  "click",
4003
3968
  /*resendCode*/
4004
3969
  e[7]
4005
3970
  )
4006
- ], Q = !0);
3971
+ ], J = !0);
4007
3972
  },
4008
3973
  p(c, [y]) {
4009
- X === (X = be(c)) && O ? O.p(c, y) : (O.d(1), O = X(c), O && (O.c(), O.m(r, null))), y & /*$_*/
4010
- 32 && s !== (s = /*$_*/
4011
- c[5]("code") + "") && G(a, s), y & /*smsCode*/
3974
+ V === (V = pe(c)) && O ? O.p(c, y) : (O.d(1), O = V(c), O && (O.c(), O.m(r, null))), y & /*$_*/
3975
+ 32 && a !== (a = /*$_*/
3976
+ c[5]("code") + "") && F(s, a), y & /*smsCode*/
4012
3977
  2 && f.value !== /*smsCode*/
4013
- c[1] && ot(
3978
+ c[1] && Ye(
4014
3979
  f,
4015
3980
  /*smsCode*/
4016
3981
  c[1]
4017
3982
  ), /*isSmsValid*/
4018
- c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B = _t(c), B.c(), B.m(i, null)), y & /*isSmsValid*/
3983
+ c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B = pt(c), B.c(), B.m(i, null)), y & /*isSmsValid*/
4019
3984
  4 && b !== (b = "Field SmsVerificationField " + (/*isSmsValid*/
4020
3985
  c[2] ? "" : "InvalidField")) && A(i, "class", b), /*timer*/
4021
- c[3] ? w ? w.p(c, y) : (w = St(c), w.c(), w.m(t, _)) : w && (w.d(1), w = null), y & /*$_*/
3986
+ c[3] ? w ? w.p(c, y) : (w = bt(c), w.c(), w.m(t, _)) : w && (w.d(1), w = null), y & /*$_*/
4022
3987
  32 && R !== (R = /*$_*/
4023
- c[5]("activate") + "") && G(N, R), y & /*$_*/
3988
+ c[5]("activate") + "") && F(N, R), y & /*$_*/
4024
3989
  32 && I !== (I = /*$_*/
4025
- c[5]("resend") + "") && G(D, I), /*timer*/
4026
- c[3] ? P ? P.p(c, y) : (P = Tt(c), P.c(), P.m(H, null)) : P && (P.d(1), P = null), y & /*timer*/
3990
+ c[5]("resend") + "") && F(U, I), /*timer*/
3991
+ c[3] ? P ? P.p(c, y) : (P = gt(c), P.c(), P.m(H, null)) : P && (P.d(1), P = null), y & /*timer*/
4027
3992
  8 && (H.disabled = /*timer*/
4028
3993
  c[3]);
4029
3994
  },
4030
- i: U,
4031
- o: U,
3995
+ i: $,
3996
+ o: $,
4032
3997
  d(c) {
4033
- c && j(t), O.d(), B && B.d(), w && w.d(), P && P.d(), e[19](null), Q = !1, se(pe);
3998
+ c && k(t), O.d(), B && B.d(), w && w.d(), P && P.d(), e[19](null), J = !1, oe(me);
4034
3999
  }
4035
4000
  };
4036
4001
  }
4037
- function yi(e, t, r) {
4002
+ function ui(e, t, r) {
4038
4003
  let n;
4039
- or(e, di, (c) => r(5, n = c));
4040
- let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: s = "" } = t, { smstemplate: a = "Please use this code {0} to activate your accout" } = t, { number: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, d, b = !0, v = !1, _, S, R = +localStorage.getItem("smsTimer") || 0, N = Date.now() / 1e3 - R, T = 60 - Math.floor(N);
4004
+ Wt(e, ri, (c) => r(5, n = c));
4005
+ let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, d, b = !0, v = !1, _, S, R = +localStorage.getItem("smsTimer") || 0, N = Date.now() / 1e3 - R, T = 60 - Math.floor(N);
4041
4006
  const H = { numeric: /^[0-9]{0,6}$/ };
4042
- mi({ withLocale: "en", translations: {} });
4007
+ ni({ withLocale: "en", translations: {} });
4043
4008
  const I = () => {
4044
4009
  fetch(f).then((y) => y.json()).then((y) => {
4045
- Object.keys(y).forEach((q) => {
4046
- Et(q, y[q]);
4010
+ Object.keys(y).forEach((Q) => {
4011
+ dt(Q, y[Q]);
4047
4012
  });
4048
4013
  }).catch((y) => {
4049
4014
  console.log(y);
4050
4015
  });
4051
4016
  };
4052
- Object.keys(xt).forEach((c) => {
4053
- Et(c, xt[c]);
4017
+ Object.keys(mt).forEach((c) => {
4018
+ dt(c, mt[c]);
4054
4019
  });
4055
- const D = () => ge(this, null, function* () {
4020
+ const U = async () => {
4056
4021
  try {
4057
- if ((yield fetch(`${i}/v1/player/${s}/activateSMS?tokenId=${o}&validationCode=${d}`, {
4022
+ if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${d}`, {
4058
4023
  headers: {
4059
4024
  "Content-Type": "application/json",
4060
4025
  accept: "application/json"
@@ -4075,37 +4040,37 @@ function yi(e, t, r) {
4075
4040
  } catch (c) {
4076
4041
  console.log(c);
4077
4042
  }
4078
- }), V = () => ge(this, null, function* () {
4079
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), X();
4043
+ }, j = async () => {
4044
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), V();
4080
4045
  try {
4081
- const c = yield fetch(`${i}/v1/player/sms/token`, {
4046
+ const c = await fetch(`${i}/v1/player/sms/token`, {
4082
4047
  method: "POST",
4083
4048
  headers: {
4084
4049
  "Content-Type": "application/json",
4085
4050
  accept: "application/json"
4086
4051
  },
4087
4052
  body: JSON.stringify({
4088
- userId: s,
4089
- messageTemplate: a,
4090
- destination: l
4053
+ userId: a,
4054
+ messageTemplate: s,
4055
+ destination: h
4091
4056
  })
4092
- }), y = yield c.json();
4057
+ }), y = await c.json();
4093
4058
  if (c.ok)
4094
- r(9, o = y.id), v = !1, Q();
4059
+ r(9, o = y.id), v = !1, J();
4095
4060
  else
4096
4061
  throw v = !0, new Error("Failed to fetch");
4097
4062
  } catch (c) {
4098
4063
  v = !0, console.error(c);
4099
4064
  }
4100
- }), Q = () => {
4065
+ }, J = () => {
4101
4066
  T > 0 ? r(4, T--, T) : (clearInterval(_), r(3, _ = !1), r(4, T = 60));
4102
- }, pe = () => {
4067
+ }, me = () => {
4103
4068
  let c = document.createElement("style");
4104
4069
  c.innerHTML = u, S.appendChild(c);
4105
- }, be = () => {
4106
- let c = new URL(h), y = document.createElement("style");
4107
- fetch(c.href).then((q) => q.text()).then((q) => {
4108
- y.innerHTML = q, setTimeout(
4070
+ }, pe = () => {
4071
+ let c = new URL(l), y = document.createElement("style");
4072
+ fetch(c.href).then((Q) => Q.text()).then((Q) => {
4073
+ y.innerHTML = Q, setTimeout(
4109
4074
  () => {
4110
4075
  S.appendChild(y);
4111
4076
  },
@@ -4116,39 +4081,39 @@ function yi(e, t, r) {
4116
4081
  500
4117
4082
  );
4118
4083
  });
4119
- }, X = () => {
4084
+ }, V = () => {
4120
4085
  N < 60 && r(3, _ = setInterval(
4121
4086
  () => {
4122
- Q();
4087
+ J();
4123
4088
  },
4124
4089
  1e3
4125
4090
  ));
4126
4091
  }, O = (c) => {
4127
4092
  !H.numeric.test(c.key) && c.keyCode !== 8 && c.keyCode !== 9 && c.keyCode !== 46 && c.preventDefault();
4128
4093
  };
4129
- fr(() => {
4130
- if (!s || !l) {
4094
+ er(() => {
4095
+ if (!a || !h) {
4131
4096
  let c = JSON.parse(localStorage.getItem("playerData"));
4132
- r(10, s = c.playerid), r(11, l = c.number);
4097
+ r(10, a = c.playerid), r(11, h = c.number);
4133
4098
  }
4134
- X();
4099
+ V();
4135
4100
  });
4136
4101
  function B() {
4137
4102
  d = this.value, r(1, d);
4138
4103
  }
4139
4104
  const w = (c) => O(c);
4140
4105
  function P(c) {
4141
- Ue[c ? "unshift" : "push"](() => {
4106
+ Le[c ? "unshift" : "push"](() => {
4142
4107
  S = c, r(0, S);
4143
4108
  });
4144
4109
  }
4145
4110
  return e.$$set = (c) => {
4146
- "endpoint" in c && r(12, i = c.endpoint), "tokenid" in c && r(9, o = c.tokenid), "playerid" in c && r(10, s = c.playerid), "smstemplate" in c && r(13, a = c.smstemplate), "number" in c && r(11, l = c.number), "clientstyling" in c && r(14, u = c.clientstyling), "clientstylingurl" in c && r(15, h = c.clientstylingurl), "translationurl" in c && r(16, f = c.translationurl);
4111
+ "endpoint" in c && r(12, i = c.endpoint), "tokenid" in c && r(9, o = c.tokenid), "playerid" in c && r(10, a = c.playerid), "smstemplate" in c && r(13, s = c.smstemplate), "number" in c && r(11, h = c.number), "clientstyling" in c && r(14, u = c.clientstyling), "clientstylingurl" in c && r(15, l = c.clientstylingurl), "translationurl" in c && r(16, f = c.translationurl);
4147
4112
  }, e.$$.update = () => {
4148
4113
  e.$$.dirty & /*tokenid, playerid, endpoint*/
4149
4114
  5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
4150
- 16385 && u && S && pe(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4151
- 32769 && h && S && be(), e.$$.dirty & /*translationurl*/
4115
+ 16385 && u && S && me(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4116
+ 32769 && l && S && pe(), e.$$.dirty & /*translationurl*/
4152
4117
  65536 && f && I();
4153
4118
  }, [
4154
4119
  S,
@@ -4157,30 +4122,30 @@ function yi(e, t, r) {
4157
4122
  _,
4158
4123
  T,
4159
4124
  n,
4160
- D,
4161
- V,
4125
+ U,
4126
+ j,
4162
4127
  O,
4163
4128
  o,
4164
- s,
4165
- l,
4166
- i,
4167
4129
  a,
4168
- u,
4169
4130
  h,
4131
+ i,
4132
+ s,
4133
+ u,
4134
+ l,
4170
4135
  f,
4171
4136
  B,
4172
4137
  w,
4173
4138
  P
4174
4139
  ];
4175
4140
  }
4176
- class Ei extends Tr {
4141
+ class li extends fr {
4177
4142
  constructor(t) {
4178
- super(), _r(
4143
+ super(), hr(
4179
4144
  this,
4180
4145
  t,
4181
- yi,
4182
- vi,
4183
- At,
4146
+ ui,
4147
+ ai,
4148
+ yt,
4184
4149
  {
4185
4150
  endpoint: 12,
4186
4151
  tokenid: 9,
@@ -4191,59 +4156,59 @@ class Ei extends Tr {
4191
4156
  clientstylingurl: 15,
4192
4157
  translationurl: 16
4193
4158
  },
4194
- pi
4159
+ ii
4195
4160
  );
4196
4161
  }
4197
4162
  get endpoint() {
4198
4163
  return this.$$.ctx[12];
4199
4164
  }
4200
4165
  set endpoint(t) {
4201
- this.$$set({ endpoint: t }), F();
4166
+ this.$$set({ endpoint: t }), D();
4202
4167
  }
4203
4168
  get tokenid() {
4204
4169
  return this.$$.ctx[9];
4205
4170
  }
4206
4171
  set tokenid(t) {
4207
- this.$$set({ tokenid: t }), F();
4172
+ this.$$set({ tokenid: t }), D();
4208
4173
  }
4209
4174
  get playerid() {
4210
4175
  return this.$$.ctx[10];
4211
4176
  }
4212
4177
  set playerid(t) {
4213
- this.$$set({ playerid: t }), F();
4178
+ this.$$set({ playerid: t }), D();
4214
4179
  }
4215
4180
  get smstemplate() {
4216
4181
  return this.$$.ctx[13];
4217
4182
  }
4218
4183
  set smstemplate(t) {
4219
- this.$$set({ smstemplate: t }), F();
4184
+ this.$$set({ smstemplate: t }), D();
4220
4185
  }
4221
4186
  get number() {
4222
4187
  return this.$$.ctx[11];
4223
4188
  }
4224
4189
  set number(t) {
4225
- this.$$set({ number: t }), F();
4190
+ this.$$set({ number: t }), D();
4226
4191
  }
4227
4192
  get clientstyling() {
4228
4193
  return this.$$.ctx[14];
4229
4194
  }
4230
4195
  set clientstyling(t) {
4231
- this.$$set({ clientstyling: t }), F();
4196
+ this.$$set({ clientstyling: t }), D();
4232
4197
  }
4233
4198
  get clientstylingurl() {
4234
4199
  return this.$$.ctx[15];
4235
4200
  }
4236
4201
  set clientstylingurl(t) {
4237
- this.$$set({ clientstylingurl: t }), F();
4202
+ this.$$set({ clientstylingurl: t }), D();
4238
4203
  }
4239
4204
  get translationurl() {
4240
4205
  return this.$$.ctx[16];
4241
4206
  }
4242
4207
  set translationurl(t) {
4243
- this.$$set({ translationurl: t }), F();
4208
+ this.$$set({ translationurl: t }), D();
4244
4209
  }
4245
4210
  }
4246
- Sr(Ei, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4211
+ cr(li, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4247
4212
  export {
4248
- Ei as default
4213
+ li as G
4249
4214
  };