@everymatrix/cashier-error 1.86.1 → 1.86.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import "../stencil/ui-image-Ch-GHki1.js";
1
+ import "../stencil/ui-image-wH6lu7wS.js";
2
2
  function B() {
3
3
  }
4
4
  function qt(e, t) {
@@ -15,18 +15,18 @@ function _t(e) {
15
15
  function Je() {
16
16
  return /* @__PURE__ */ Object.create(null);
17
17
  }
18
- function te(e) {
18
+ function ee(e) {
19
19
  e.forEach(_t);
20
20
  }
21
- function Ve(e) {
21
+ function je(e) {
22
22
  return typeof e == "function";
23
23
  }
24
24
  function Et(e, t) {
25
25
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
26
26
  }
27
- let oe;
27
+ let ie;
28
28
  function qe(e, t) {
29
- return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
29
+ return e === t ? !0 : (ie || (ie = document.createElement("a")), ie.href = t, e === ie.href);
30
30
  }
31
31
  function Qt(e) {
32
32
  return Object.keys(e).length === 0;
@@ -43,7 +43,7 @@ function vt(e, ...t) {
43
43
  function Yt(e, t, r) {
44
44
  e.$$.on_destroy.push(vt(t, r));
45
45
  }
46
- function se(e, t, r, n) {
46
+ function ae(e, t, r, n) {
47
47
  if (e) {
48
48
  const i = xt(e, t, r, n);
49
49
  return e[0](i);
@@ -52,28 +52,28 @@ function se(e, t, r, n) {
52
52
  function xt(e, t, r, n) {
53
53
  return e[1] && n ? qt(r.ctx.slice(), e[1](n(t))) : r.ctx;
54
54
  }
55
- function ae(e, t, r, n) {
55
+ function oe(e, t, r, n) {
56
56
  if (e[2] && n) {
57
57
  const i = e[2](n(r));
58
58
  if (t.dirty === void 0)
59
59
  return i;
60
60
  if (typeof i == "object") {
61
- const o = [], s = Math.max(t.dirty.length, i.length);
62
- for (let a = 0; a < s; a += 1)
63
- o[a] = t.dirty[a] | i[a];
64
- return o;
61
+ const a = [], o = Math.max(t.dirty.length, i.length);
62
+ for (let s = 0; s < o; s += 1)
63
+ a[s] = t.dirty[s] | i[s];
64
+ return a;
65
65
  }
66
66
  return t.dirty | i;
67
67
  }
68
68
  return t.dirty;
69
69
  }
70
- function ue(e, t, r, n, i, o) {
70
+ function se(e, t, r, n, i, a) {
71
71
  if (i) {
72
- const s = xt(t, r, n, o);
73
- e.p(s, i);
72
+ const o = xt(t, r, n, a);
73
+ e.p(o, i);
74
74
  }
75
75
  }
76
- function le(e) {
76
+ function ue(e) {
77
77
  if (e.ctx.length > 32) {
78
78
  const t = [], r = e.ctx.length / 32;
79
79
  for (let n = 0; n < r; n++)
@@ -82,13 +82,13 @@ function le(e) {
82
82
  }
83
83
  return -1;
84
84
  }
85
- function P(e, t) {
85
+ function A(e, t) {
86
86
  e.appendChild(t);
87
87
  }
88
88
  function Kt(e, t, r) {
89
89
  const n = er(e);
90
90
  if (!n.getElementById(t)) {
91
- const i = I("style");
91
+ const i = O("style");
92
92
  i.id = t, i.textContent = r, tr(n, i);
93
93
  }
94
94
  }
@@ -103,39 +103,39 @@ function er(e) {
103
103
  ) : e.ownerDocument;
104
104
  }
105
105
  function tr(e, t) {
106
- return P(
106
+ return A(
107
107
  /** @type {Document} */
108
108
  e.head || e,
109
109
  t
110
110
  ), t.sheet;
111
111
  }
112
- function V(e, t, r) {
112
+ function z(e, t, r) {
113
113
  e.insertBefore(t, r || null);
114
114
  }
115
- function L(e) {
115
+ function N(e) {
116
116
  e.parentNode && e.parentNode.removeChild(e);
117
117
  }
118
- function I(e) {
118
+ function O(e) {
119
119
  return document.createElement(e);
120
120
  }
121
- function ve(e) {
121
+ function _e(e) {
122
122
  return document.createTextNode(e);
123
123
  }
124
- function Se() {
125
- return ve(" ");
124
+ function He() {
125
+ return _e(" ");
126
126
  }
127
127
  function rr() {
128
- return ve("");
128
+ return _e("");
129
129
  }
130
130
  function nr(e, t, r, n) {
131
131
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
132
132
  }
133
- function G(e, t, r) {
133
+ function U(e, t, r) {
134
134
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
135
135
  }
136
- function he(e, t, r) {
136
+ function le(e, t, r) {
137
137
  const n = t.toLowerCase();
138
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : G(e, t, r);
138
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : U(e, t, r);
139
139
  }
140
140
  function ir(e) {
141
141
  return Array.from(e.childNodes);
@@ -144,7 +144,7 @@ function Tt(e, t) {
144
144
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
145
145
  t);
146
146
  }
147
- function or(e) {
147
+ function ar(e) {
148
148
  const t = {};
149
149
  return e.childNodes.forEach(
150
150
  /** @param {Element} node */
@@ -153,102 +153,102 @@ function or(e) {
153
153
  }
154
154
  ), t;
155
155
  }
156
- let Y;
157
- function Q(e) {
158
- Y = e;
156
+ let Q;
157
+ function q(e) {
158
+ Q = e;
159
159
  }
160
- function sr() {
161
- if (!Y)
160
+ function or() {
161
+ if (!Q)
162
162
  throw new Error("Function called outside component initialization");
163
- return Y;
163
+ return Q;
164
164
  }
165
- function ar(e) {
166
- sr().$$.on_mount.push(e);
165
+ function sr(e) {
166
+ or().$$.on_mount.push(e);
167
167
  }
168
- const D = [], Le = [];
169
- let U = [];
168
+ const R = [], Ce = [];
169
+ let D = [];
170
170
  const Qe = [], ur = /* @__PURE__ */ Promise.resolve();
171
- let Me = !1;
171
+ let Ne = !1;
172
172
  function lr() {
173
- Me || (Me = !0, ur.then(S));
173
+ Ne || (Ne = !0, ur.then(w));
174
174
  }
175
- function $e(e) {
176
- U.push(e);
175
+ function Le(e) {
176
+ D.push(e);
177
177
  }
178
- const Be = /* @__PURE__ */ new Set();
179
- let $ = 0;
180
- function S() {
181
- if ($ !== 0)
178
+ const we = /* @__PURE__ */ new Set();
179
+ let M = 0;
180
+ function w() {
181
+ if (M !== 0)
182
182
  return;
183
- const e = Y;
183
+ const e = Q;
184
184
  do {
185
185
  try {
186
- for (; $ < D.length; ) {
187
- const t = D[$];
188
- $++, Q(t), hr(t.$$);
186
+ for (; M < R.length; ) {
187
+ const t = R[M];
188
+ M++, q(t), hr(t.$$);
189
189
  }
190
190
  } catch (t) {
191
- throw D.length = 0, $ = 0, t;
191
+ throw R.length = 0, M = 0, t;
192
192
  }
193
- for (Q(null), D.length = 0, $ = 0; Le.length; )
194
- Le.pop()();
195
- for (let t = 0; t < U.length; t += 1) {
196
- const r = U[t];
197
- Be.has(r) || (Be.add(r), r());
193
+ for (q(null), R.length = 0, M = 0; Ce.length; )
194
+ Ce.pop()();
195
+ for (let t = 0; t < D.length; t += 1) {
196
+ const r = D[t];
197
+ we.has(r) || (we.add(r), r());
198
198
  }
199
- U.length = 0;
200
- } while (D.length);
199
+ D.length = 0;
200
+ } while (R.length);
201
201
  for (; Qe.length; )
202
202
  Qe.pop()();
203
- Me = !1, Be.clear(), Q(e);
203
+ Ne = !1, we.clear(), q(e);
204
204
  }
205
205
  function hr(e) {
206
206
  if (e.fragment !== null) {
207
- e.update(), te(e.before_update);
207
+ e.update(), ee(e.before_update);
208
208
  const t = e.dirty;
209
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
209
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
210
210
  }
211
211
  }
212
212
  function cr(e) {
213
213
  const t = [], r = [];
214
- U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
214
+ D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
215
215
  }
216
- const me = /* @__PURE__ */ new Set();
216
+ const fe = /* @__PURE__ */ new Set();
217
217
  let fr;
218
- function J(e, t) {
219
- e && e.i && (me.delete(e), e.i(t));
218
+ function Z(e, t) {
219
+ e && e.i && (fe.delete(e), e.i(t));
220
220
  }
221
- function ce(e, t, r, n) {
221
+ function he(e, t, r, n) {
222
222
  if (e && e.o) {
223
- if (me.has(e))
223
+ if (fe.has(e))
224
224
  return;
225
- me.add(e), fr.c.push(() => {
226
- me.delete(e);
225
+ fe.add(e), fr.c.push(() => {
226
+ fe.delete(e);
227
227
  }), e.o(t);
228
228
  }
229
229
  }
230
230
  function mr(e, t, r) {
231
231
  const { fragment: n, after_update: i } = e.$$;
232
- n && n.m(t, r), $e(() => {
233
- const o = e.$$.on_mount.map(_t).filter(Ve);
234
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
235
- }), i.forEach($e);
232
+ n && n.m(t, r), Le(() => {
233
+ const a = e.$$.on_mount.map(_t).filter(je);
234
+ e.$$.on_destroy ? e.$$.on_destroy.push(...a) : ee(a), e.$$.on_mount = [];
235
+ }), i.forEach(Le);
236
236
  }
237
237
  function dr(e, t) {
238
238
  const r = e.$$;
239
- r.fragment !== null && (cr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
239
+ r.fragment !== null && (cr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
240
240
  }
241
241
  function pr(e, t) {
242
- e.$$.dirty[0] === -1 && (D.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
242
+ e.$$.dirty[0] === -1 && (R.push(e), lr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
243
243
  }
244
- function br(e, t, r, n, i, o, s = null, a = [-1]) {
245
- const h = Y;
246
- Q(e);
244
+ function br(e, t, r, n, i, a, o = null, s = [-1]) {
245
+ const h = Q;
246
+ q(e);
247
247
  const u = e.$$ = {
248
248
  fragment: null,
249
249
  ctx: [],
250
250
  // state
251
- props: o,
251
+ props: a,
252
252
  update: B,
253
253
  not_equal: i,
254
254
  bound: Je(),
@@ -261,24 +261,24 @@ function br(e, t, r, n, i, o, s = null, a = [-1]) {
261
261
  context: new Map(t.context || (h ? h.$$.context : [])),
262
262
  // everything else
263
263
  callbacks: Je(),
264
- dirty: a,
264
+ dirty: s,
265
265
  skip_bound: !1,
266
266
  root: t.target || h.$$.root
267
267
  };
268
- s && s(u.root);
268
+ o && o(u.root);
269
269
  let l = !1;
270
270
  if (u.ctx = r ? r(e, t.props || {}, (f, m, ...d) => {
271
271
  const p = d.length ? d[0] : m;
272
272
  return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), l && pr(e, f)), m;
273
- }) : [], u.update(), l = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
273
+ }) : [], u.update(), l = !0, ee(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
274
274
  if (t.hydrate) {
275
275
  const f = ir(t.target);
276
- u.fragment && u.fragment.l(f), f.forEach(L);
276
+ u.fragment && u.fragment.l(f), f.forEach(N);
277
277
  } else
278
278
  u.fragment && u.fragment.c();
279
- t.intro && J(e.$$.fragment), mr(e, t.target, t.anchor), S();
279
+ t.intro && Z(e.$$.fragment), mr(e, t.target, t.anchor), w();
280
280
  }
281
- Q(h);
281
+ q(h);
282
282
  }
283
283
  let Ht;
284
284
  typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
@@ -320,32 +320,32 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
320
320
  if (this.$$cn = !0, !this.$$c) {
321
321
  let e = function(i) {
322
322
  return () => {
323
- let o;
323
+ let a;
324
324
  return {
325
325
  c: function() {
326
- o = I("slot"), i !== "default" && G(o, "name", i);
326
+ a = O("slot"), i !== "default" && U(a, "name", i);
327
327
  },
328
328
  /**
329
329
  * @param {HTMLElement} target
330
330
  * @param {HTMLElement} [anchor]
331
331
  */
332
332
  m: function(h, u) {
333
- V(h, o, u);
333
+ z(h, a, u);
334
334
  },
335
335
  d: function(h) {
336
- h && L(o);
336
+ h && N(a);
337
337
  }
338
338
  };
339
339
  };
340
340
  };
341
341
  if (await Promise.resolve(), !this.$$cn || this.$$c)
342
342
  return;
343
- const t = {}, r = or(this);
343
+ const t = {}, r = ar(this);
344
344
  for (const i of this.$$s)
345
345
  i in r && (t[i] = [e(i)]);
346
346
  for (const i of this.attributes) {
347
- const o = this.$$g_p(i.name);
348
- o in this.$$d || (this.$$d[o] = de(o, i.value, this.$$p_d, "toProp"));
347
+ const a = this.$$g_p(i.name);
348
+ a in this.$$d || (this.$$d[a] = me(a, i.value, this.$$p_d, "toProp"));
349
349
  }
350
350
  for (const i in this.$$p_d)
351
351
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -363,21 +363,21 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
363
363
  this.$$r = !0;
364
364
  for (const i in this.$$p_d)
365
365
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
366
- const o = de(
366
+ const a = me(
367
367
  i,
368
368
  this.$$d[i],
369
369
  this.$$p_d,
370
370
  "toAttribute"
371
371
  );
372
- o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
372
+ a == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, a);
373
373
  }
374
374
  this.$$r = !1;
375
375
  };
376
376
  this.$$c.$$.after_update.push(n), n();
377
377
  for (const i in this.$$l)
378
- for (const o of this.$$l[i]) {
379
- const s = this.$$c.$on(i, o);
380
- this.$$l_u.set(o, s);
378
+ for (const a of this.$$l[i]) {
379
+ const o = this.$$c.$on(i, a);
380
+ this.$$l_u.set(a, o);
381
381
  }
382
382
  this.$$l = {};
383
383
  }
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
385
385
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
386
386
  // and setting attributes through setAttribute etc, this is helpful
387
387
  attributeChangedCallback(e, t, r) {
388
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = de(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
388
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
389
389
  }
390
390
  disconnectedCallback() {
391
391
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -398,7 +398,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
398
398
  ) || e;
399
399
  }
400
400
  });
401
- function de(e, t, r, n) {
401
+ function me(e, t, r, n) {
402
402
  const i = r[e]?.type;
403
403
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
404
404
  return t;
@@ -427,34 +427,34 @@ function de(e, t, r, n) {
427
427
  return t;
428
428
  }
429
429
  }
430
- function gr(e, t, r, n, i, o) {
431
- let s = class extends Ht {
430
+ function gr(e, t, r, n, i, a) {
431
+ let o = class extends Ht {
432
432
  constructor() {
433
433
  super(e, r, i), this.$$p_d = t;
434
434
  }
435
435
  static get observedAttributes() {
436
436
  return Object.keys(t).map(
437
- (a) => (t[a].attribute || a).toLowerCase()
437
+ (s) => (t[s].attribute || s).toLowerCase()
438
438
  );
439
439
  }
440
440
  };
441
- return Object.keys(t).forEach((a) => {
442
- Object.defineProperty(s.prototype, a, {
441
+ return Object.keys(t).forEach((s) => {
442
+ Object.defineProperty(o.prototype, s, {
443
443
  get() {
444
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
444
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
445
445
  },
446
446
  set(h) {
447
- h = de(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
447
+ h = me(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
448
448
  }
449
449
  });
450
- }), n.forEach((a) => {
451
- Object.defineProperty(s.prototype, a, {
450
+ }), n.forEach((s) => {
451
+ Object.defineProperty(o.prototype, s, {
452
452
  get() {
453
- return this.$$c?.[a];
453
+ return this.$$c?.[s];
454
454
  }
455
455
  });
456
456
  }), e.element = /** @type {any} */
457
- s, s;
457
+ o, o;
458
458
  }
459
459
  class yr {
460
460
  /**
@@ -484,7 +484,7 @@ class yr {
484
484
  * @returns {() => void}
485
485
  */
486
486
  $on(t, r) {
487
- if (!Ve(r))
487
+ if (!je(r))
488
488
  return B;
489
489
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
490
490
  return n.push(r), () => {
@@ -527,44 +527,44 @@ function xr(e, t, r) {
527
527
  });
528
528
  }
529
529
  }
530
- const R = [];
530
+ const $ = [];
531
531
  function Tr(e, t) {
532
532
  return {
533
- subscribe: xe(e, t).subscribe
533
+ subscribe: Ee(e, t).subscribe
534
534
  };
535
535
  }
536
- function xe(e, t = B) {
536
+ function Ee(e, t = B) {
537
537
  let r;
538
538
  const n = /* @__PURE__ */ new Set();
539
- function i(a) {
540
- if (Et(e, a) && (e = a, r)) {
541
- const h = !R.length;
539
+ function i(s) {
540
+ if (Et(e, s) && (e = s, r)) {
541
+ const h = !$.length;
542
542
  for (const u of n)
543
- u[1](), R.push(u, e);
543
+ u[1](), $.push(u, e);
544
544
  if (h) {
545
- for (let u = 0; u < R.length; u += 2)
546
- R[u][0](R[u + 1]);
547
- R.length = 0;
545
+ for (let u = 0; u < $.length; u += 2)
546
+ $[u][0]($[u + 1]);
547
+ $.length = 0;
548
548
  }
549
549
  }
550
550
  }
551
- function o(a) {
552
- i(a(e));
551
+ function a(s) {
552
+ i(s(e));
553
553
  }
554
- function s(a, h = B) {
555
- const u = [a, h];
556
- return n.add(u), n.size === 1 && (r = t(i, o) || B), a(e), () => {
554
+ function o(s, h = B) {
555
+ const u = [s, h];
556
+ return n.add(u), n.size === 1 && (r = t(i, a) || B), s(e), () => {
557
557
  n.delete(u), n.size === 0 && r && (r(), r = null);
558
558
  };
559
559
  }
560
- return { set: i, update: o, subscribe: s };
560
+ return { set: i, update: a, subscribe: o };
561
561
  }
562
- function X(e, t, r) {
562
+ function V(e, t, r) {
563
563
  const n = !Array.isArray(e), i = n ? [e] : e;
564
564
  if (!i.every(Boolean))
565
565
  throw new Error("derived() expects stores as input, got a falsy value");
566
- const o = t.length < 2;
567
- return Tr(r, (s, a) => {
566
+ const a = t.length < 2;
567
+ return Tr(r, (o, s) => {
568
568
  let h = !1;
569
569
  const u = [];
570
570
  let l = 0, f = B;
@@ -572,8 +572,8 @@ function X(e, t, r) {
572
572
  if (l)
573
573
  return;
574
574
  f();
575
- const p = t(n ? u[0] : u, s, a);
576
- o ? s(p) : f = Ve(p) ? p : B;
575
+ const p = t(n ? u[0] : u, o, s);
576
+ a ? o(p) : f = je(p) ? p : B;
577
577
  }, d = i.map(
578
578
  (p, v) => vt(
579
579
  p,
@@ -586,7 +586,7 @@ function X(e, t, r) {
586
586
  )
587
587
  );
588
588
  return h = !0, m(), function() {
589
- te(d), f(), h = !1;
589
+ ee(d), f(), h = !1;
590
590
  };
591
591
  });
592
592
  }
@@ -594,12 +594,12 @@ function Hr(e) {
594
594
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
595
595
  }
596
596
  var wr = function(t) {
597
- return Sr(t) && !Br(t);
597
+ return Br(t) && !Sr(t);
598
598
  };
599
- function Sr(e) {
599
+ function Br(e) {
600
600
  return !!e && typeof e == "object";
601
601
  }
602
- function Br(e) {
602
+ function Sr(e) {
603
603
  var t = Object.prototype.toString.call(e);
604
604
  return t === "[object RegExp]" || t === "[object Date]" || Or(e);
605
605
  }
@@ -610,19 +610,19 @@ function Or(e) {
610
610
  function Ir(e) {
611
611
  return Array.isArray(e) ? [] : {};
612
612
  }
613
- function K(e, t) {
614
- return t.clone !== !1 && t.isMergeableObject(e) ? k(Ir(e), e, t) : e;
613
+ function Y(e, t) {
614
+ return t.clone !== !1 && t.isMergeableObject(e) ? G(Ir(e), e, t) : e;
615
615
  }
616
616
  function Cr(e, t, r) {
617
617
  return e.concat(t).map(function(n) {
618
- return K(n, r);
618
+ return Y(n, r);
619
619
  });
620
620
  }
621
621
  function Nr(e, t) {
622
622
  if (!t.customMerge)
623
- return k;
623
+ return G;
624
624
  var r = t.customMerge(e);
625
- return typeof r == "function" ? r : k;
625
+ return typeof r == "function" ? r : G;
626
626
  }
627
627
  function Lr(e) {
628
628
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -645,51 +645,65 @@ function Mr(e, t) {
645
645
  function $r(e, t, r) {
646
646
  var n = {};
647
647
  return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
648
- n[i] = K(e[i], r);
648
+ n[i] = Y(e[i], r);
649
649
  }), Ye(t).forEach(function(i) {
650
- Mr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
650
+ Mr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
651
651
  }), n;
652
652
  }
653
- function k(e, t, r) {
654
- r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = K;
655
- var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
656
- return o ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : K(t, r);
653
+ function G(e, t, r) {
654
+ r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || wr, r.cloneUnlessOtherwiseSpecified = Y;
655
+ var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
656
+ return a ? n ? r.arrayMerge(e, t, r) : $r(e, t, r) : Y(t, r);
657
657
  }
658
- k.all = function(t, r) {
658
+ G.all = function(t, r) {
659
659
  if (!Array.isArray(t))
660
660
  throw new Error("first argument should be an array");
661
661
  return t.reduce(function(n, i) {
662
- return k(n, i, r);
662
+ return G(n, i, r);
663
663
  }, {});
664
664
  };
665
- var Rr = k, Dr = Rr;
665
+ var Rr = G, Dr = Rr;
666
666
  const Ur = /* @__PURE__ */ Hr(Dr);
667
- var Re = function(e, t) {
668
- return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
667
+ /*! *****************************************************************************
668
+ Copyright (c) Microsoft Corporation.
669
+
670
+ Permission to use, copy, modify, and/or distribute this software for any
671
+ purpose with or without fee is hereby granted.
672
+
673
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
674
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
675
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
676
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
677
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
678
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
679
+ PERFORMANCE OF THIS SOFTWARE.
680
+ ***************************************************************************** */
681
+ var Me = function(e, t) {
682
+ return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
669
683
  r.__proto__ = n;
670
684
  } || function(r, n) {
671
685
  for (var i in n)
672
686
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
673
- }, Re(e, t);
687
+ }, Me(e, t);
674
688
  };
675
- function Te(e, t) {
689
+ function ve(e, t) {
676
690
  if (typeof t != "function" && t !== null)
677
691
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
678
- Re(e, t);
692
+ Me(e, t);
679
693
  function r() {
680
694
  this.constructor = e;
681
695
  }
682
696
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
683
697
  }
684
- var w = function() {
685
- return w = Object.assign || function(t) {
698
+ var _ = function() {
699
+ return _ = Object.assign || function(t) {
686
700
  for (var r, n = 1, i = arguments.length; n < i; n++) {
687
701
  r = arguments[n];
688
- for (var o in r)
689
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
702
+ for (var a in r)
703
+ Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
690
704
  }
691
705
  return t;
692
- }, w.apply(this, arguments);
706
+ }, _.apply(this, arguments);
693
707
  };
694
708
  function Gr(e, t) {
695
709
  var r = {};
@@ -700,14 +714,14 @@ function Gr(e, t) {
700
714
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
701
715
  return r;
702
716
  }
703
- function Ae(e, t, r) {
704
- if (r || arguments.length === 2)
705
- for (var n = 0, i = t.length, o; n < i; n++)
706
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
707
- return e.concat(o || Array.prototype.slice.call(t));
717
+ function Be(e, t, r) {
718
+ if (arguments.length === 2)
719
+ for (var n = 0, i = t.length, a; n < i; n++)
720
+ (a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
721
+ return e.concat(a || t);
708
722
  }
709
- function Pe(e, t) {
710
- var r = t && t.cache ? t.cache : Wr, n = t && t.serializer ? t.serializer : Vr, i = t && t.strategy ? t.strategy : jr;
723
+ function Se(e, t) {
724
+ var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : Vr, i = t && t.strategy ? t.strategy : Fr;
711
725
  return i(e, {
712
726
  cache: r,
713
727
  serializer: n
@@ -716,103 +730,95 @@ function Pe(e, t) {
716
730
  function kr(e) {
717
731
  return e == null || typeof e == "number" || typeof e == "boolean";
718
732
  }
719
- function Fr(e, t, r, n) {
720
- var i = kr(n) ? n : r(n), o = t.get(i);
721
- return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
733
+ function Bt(e, t, r, n) {
734
+ var i = kr(n) ? n : r(n), a = t.get(i);
735
+ return typeof a > "u" && (a = e.call(this, n), t.set(i, a)), a;
722
736
  }
723
737
  function St(e, t, r) {
724
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
725
- return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
738
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
739
+ return typeof a > "u" && (a = e.apply(this, n), t.set(i, a)), a;
726
740
  }
727
- function Bt(e, t, r, n, i) {
741
+ function ze(e, t, r, n, i) {
728
742
  return r.bind(t, e, n, i);
729
743
  }
744
+ function Fr(e, t) {
745
+ var r = e.length === 1 ? Bt : St;
746
+ return ze(e, this, r, t.cache.create(), t.serializer);
747
+ }
730
748
  function jr(e, t) {
731
- var r = e.length === 1 ? Fr : St;
732
- return Bt(e, this, r, t.cache.create(), t.serializer);
749
+ return ze(e, this, St, t.cache.create(), t.serializer);
733
750
  }
734
751
  function zr(e, t) {
735
- return Bt(e, this, St, t.cache.create(), t.serializer);
752
+ return ze(e, this, Bt, t.cache.create(), t.serializer);
736
753
  }
737
754
  var Vr = function() {
738
755
  return JSON.stringify(arguments);
739
- }, Xr = (
740
- /** @class */
741
- function() {
742
- function e() {
743
- this.cache = /* @__PURE__ */ Object.create(null);
744
- }
745
- return e.prototype.get = function(t) {
746
- return this.cache[t];
747
- }, e.prototype.set = function(t, r) {
748
- this.cache[t] = r;
749
- }, e;
750
- }()
751
- ), Wr = {
756
+ };
757
+ function Ve() {
758
+ this.cache = /* @__PURE__ */ Object.create(null);
759
+ }
760
+ Ve.prototype.get = function(e) {
761
+ return this.cache[e];
762
+ };
763
+ Ve.prototype.set = function(e, t) {
764
+ this.cache[e] = t;
765
+ };
766
+ var Xr = {
752
767
  create: function() {
753
- return new Xr();
768
+ return new Ve();
754
769
  }
755
- }, Oe = {
756
- variadic: zr
757
- }, ge = function() {
758
- return ge = Object.assign || function(t) {
759
- for (var r, n = 1, i = arguments.length; n < i; n++) {
760
- r = arguments[n];
761
- for (var o in r)
762
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
763
- }
764
- return t;
765
- }, ge.apply(this, arguments);
766
- };
767
- var b;
770
+ }, Ae = {
771
+ variadic: jr,
772
+ monadic: zr
773
+ }, b;
768
774
  (function(e) {
769
775
  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";
770
776
  })(b || (b = {}));
771
- var _;
777
+ var E;
772
778
  (function(e) {
773
779
  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";
774
- })(_ || (_ = {}));
775
- var F;
780
+ })(E || (E = {}));
781
+ var k;
776
782
  (function(e) {
777
783
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
778
- })(F || (F = {}));
784
+ })(k || (k = {}));
779
785
  function Ke(e) {
780
- return e.type === _.literal;
786
+ return e.type === E.literal;
781
787
  }
782
- function Zr(e) {
783
- return e.type === _.argument;
788
+ function Wr(e) {
789
+ return e.type === E.argument;
784
790
  }
785
791
  function At(e) {
786
- return e.type === _.number;
792
+ return e.type === E.number;
787
793
  }
788
794
  function Pt(e) {
789
- return e.type === _.date;
795
+ return e.type === E.date;
790
796
  }
791
797
  function Ot(e) {
792
- return e.type === _.time;
798
+ return e.type === E.time;
793
799
  }
794
800
  function It(e) {
795
- return e.type === _.select;
801
+ return e.type === E.select;
796
802
  }
797
803
  function Ct(e) {
798
- return e.type === _.plural;
804
+ return e.type === E.plural;
799
805
  }
800
- function Jr(e) {
801
- return e.type === _.pound;
806
+ function Zr(e) {
807
+ return e.type === E.pound;
802
808
  }
803
809
  function Nt(e) {
804
- return e.type === _.tag;
810
+ return e.type === E.tag;
805
811
  }
806
812
  function Lt(e) {
807
- return !!(e && typeof e == "object" && e.type === F.number);
813
+ return !!(e && typeof e == "object" && e.type === k.number);
808
814
  }
809
- function De(e) {
810
- return !!(e && typeof e == "object" && e.type === F.dateTime);
815
+ function $e(e) {
816
+ return !!(e && typeof e == "object" && e.type === k.dateTime);
811
817
  }
812
- var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, qr = /(?:[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;
813
- function Qr(e) {
818
+ var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Jr = /(?:[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;
819
+ function qr(e) {
814
820
  var t = {};
815
- return e.replace(qr, function(r) {
821
+ return e.replace(Jr, function(r) {
816
822
  var n = r.length;
817
823
  switch (r[0]) {
818
824
  case "G":
@@ -901,39 +907,29 @@ function Qr(e) {
901
907
  return "";
902
908
  }), t;
903
909
  }
904
- var E = function() {
905
- return E = Object.assign || function(t) {
906
- for (var r, n = 1, i = arguments.length; n < i; n++) {
907
- r = arguments[n];
908
- for (var o in r)
909
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
910
- }
911
- return t;
912
- }, E.apply(this, arguments);
913
- };
914
- var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
915
- function Kr(e) {
910
+ var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
911
+ function Yr(e) {
916
912
  if (e.length === 0)
917
913
  throw new Error("Number skeleton cannot be empty");
918
- for (var t = e.split(Yr).filter(function(m) {
914
+ for (var t = e.split(Qr).filter(function(m) {
919
915
  return m.length > 0;
920
916
  }), r = [], n = 0, i = t; n < i.length; n++) {
921
- var o = i[n], s = o.split("/");
922
- if (s.length === 0)
917
+ var a = i[n], o = a.split("/");
918
+ if (o.length === 0)
923
919
  throw new Error("Invalid number skeleton");
924
- for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
920
+ for (var s = o[0], h = o.slice(1), u = 0, l = h; u < l.length; u++) {
925
921
  var f = l[u];
926
922
  if (f.length === 0)
927
923
  throw new Error("Invalid number skeleton");
928
924
  }
929
- r.push({ stem: a, options: h });
925
+ r.push({ stem: s, options: h });
930
926
  }
931
927
  return r;
932
928
  }
933
- function en(e) {
929
+ function Kr(e) {
934
930
  return e.replace(/^(.*?)-/, "");
935
931
  }
936
- var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
932
+ var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, en = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
937
933
  function tt(e) {
938
934
  var t = {};
939
935
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
@@ -980,7 +976,7 @@ function Dt(e) {
980
976
  };
981
977
  }
982
978
  }
983
- function rn(e) {
979
+ function tn(e) {
984
980
  var t;
985
981
  if (e[0] === "E" && e[1] === "E" ? (t = {
986
982
  notation: "engineering"
@@ -998,7 +994,7 @@ function rt(e) {
998
994
  var t = {}, r = Dt(e);
999
995
  return r || t;
1000
996
  }
1001
- function nn(e) {
997
+ function rn(e) {
1002
998
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1003
999
  var i = n[r];
1004
1000
  switch (i.stem) {
@@ -1022,7 +1018,7 @@ function nn(e) {
1022
1018
  continue;
1023
1019
  case "measure-unit":
1024
1020
  case "unit":
1025
- t.style = "unit", t.unit = en(i.options[0]);
1021
+ t.style = "unit", t.unit = Kr(i.options[0]);
1026
1022
  continue;
1027
1023
  case "compact-short":
1028
1024
  case "K":
@@ -1033,13 +1029,13 @@ function nn(e) {
1033
1029
  t.notation = "compact", t.compactDisplay = "long";
1034
1030
  continue;
1035
1031
  case "scientific":
1036
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1037
- return E(E({}, h), rt(u));
1032
+ t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1033
+ return _(_({}, h), rt(u));
1038
1034
  }, {}));
1039
1035
  continue;
1040
1036
  case "engineering":
1041
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1042
- return E(E({}, h), rt(u));
1037
+ t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1038
+ return _(_({}, h), rt(u));
1043
1039
  }, {}));
1044
1040
  continue;
1045
1041
  case "notation-simple":
@@ -1084,7 +1080,7 @@ function nn(e) {
1084
1080
  case "integer-width":
1085
1081
  if (i.options.length > 1)
1086
1082
  throw new RangeError("integer-width stems only accept a single optional option");
1087
- i.options[0].replace(tn, function(h, u, l, f, m, d) {
1083
+ i.options[0].replace(en, function(h, u, l, f, m, d) {
1088
1084
  if (u)
1089
1085
  t.minimumIntegerDigits = l.length;
1090
1086
  else {
@@ -1107,22 +1103,22 @@ function nn(e) {
1107
1103
  i.stem.replace(et, function(h, u, l, f, m, d) {
1108
1104
  return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1109
1105
  });
1110
- var o = i.options[0];
1111
- o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), tt(o)));
1106
+ var a = i.options[0];
1107
+ a === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = _(_({}, t), tt(a)));
1112
1108
  continue;
1113
1109
  }
1114
1110
  if ($t.test(i.stem)) {
1115
- t = E(E({}, t), tt(i.stem));
1111
+ t = _(_({}, t), tt(i.stem));
1116
1112
  continue;
1117
1113
  }
1118
- var s = Dt(i.stem);
1119
- s && (t = E(E({}, t), s));
1120
- var a = rn(i.stem);
1121
- a && (t = E(E({}, t), a));
1114
+ var o = Dt(i.stem);
1115
+ o && (t = _(_({}, t), o));
1116
+ var s = tn(i.stem);
1117
+ s && (t = _(_({}, t), s));
1122
1118
  }
1123
1119
  return t;
1124
1120
  }
1125
- var fe = {
1121
+ var ce = {
1126
1122
  "001": [
1127
1123
  "H",
1128
1124
  "h"
@@ -2537,23 +2533,23 @@ var fe = {
2537
2533
  "h"
2538
2534
  ]
2539
2535
  };
2540
- function on(e, t) {
2536
+ function nn(e, t) {
2541
2537
  for (var r = "", n = 0; n < e.length; n++) {
2542
2538
  var i = e.charAt(n);
2543
2539
  if (i === "j") {
2544
- for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2545
- o++, n++;
2546
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = sn(t);
2547
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2540
+ for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2541
+ a++, n++;
2542
+ var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), h = "a", u = an(t);
2543
+ for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2548
2544
  r += h;
2549
- for (; s-- > 0; )
2545
+ for (; o-- > 0; )
2550
2546
  r = u + r;
2551
2547
  } else
2552
2548
  i === "J" ? r += "H" : r += i;
2553
2549
  }
2554
2550
  return r;
2555
2551
  }
2556
- function sn(e) {
2552
+ function an(e) {
2557
2553
  var t = e.hourCycle;
2558
2554
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2559
2555
  e.hourCycles && // @ts-ignore
@@ -2572,23 +2568,23 @@ function sn(e) {
2572
2568
  }
2573
2569
  var r = e.language, n;
2574
2570
  r !== "root" && (n = e.maximize().region);
2575
- var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2571
+ var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2576
2572
  return i[0];
2577
2573
  }
2578
- var Ie, an = new RegExp("^".concat(Mt.source, "*")), un = new RegExp("".concat(Mt.source, "*$"));
2574
+ var Pe, on = new RegExp("^".concat(Mt.source, "*")), sn = new RegExp("".concat(Mt.source, "*$"));
2579
2575
  function y(e, t) {
2580
2576
  return { start: e, end: t };
2581
2577
  }
2582
- var ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, cn = !!Object.fromEntries, fn = !!String.prototype.codePointAt, mn = !!String.prototype.trimStart, dn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, bn = pn ? Number.isSafeInteger : function(e) {
2578
+ var un = !!String.prototype.startsWith && "_a".startsWith("a", 1), ln = !!String.fromCodePoint, hn = !!Object.fromEntries, cn = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, dn = !!Number.isSafeInteger, pn = dn ? Number.isSafeInteger : function(e) {
2583
2579
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2584
- }, Ue = !0;
2580
+ }, Re = !0;
2585
2581
  try {
2586
- var gn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2587
- Ue = ((Ie = gn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
2582
+ var bn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2583
+ Re = ((Pe = bn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2588
2584
  } catch {
2589
- Ue = !1;
2585
+ Re = !1;
2590
2586
  }
2591
- var nt = ln ? (
2587
+ var nt = un ? (
2592
2588
  // Native
2593
2589
  function(t, r, n) {
2594
2590
  return t.startsWith(r, n);
@@ -2598,31 +2594,31 @@ var nt = ln ? (
2598
2594
  function(t, r, n) {
2599
2595
  return t.slice(n, n + r.length) === r;
2600
2596
  }
2601
- ), Ge = hn ? String.fromCodePoint : (
2597
+ ), De = ln ? String.fromCodePoint : (
2602
2598
  // IE11
2603
2599
  function() {
2604
2600
  for (var t = [], r = 0; r < arguments.length; r++)
2605
2601
  t[r] = arguments[r];
2606
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
2607
- if (s = t[o++], s > 1114111)
2608
- throw RangeError(s + " is not a valid code point");
2609
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2602
+ for (var n = "", i = t.length, a = 0, o; i > a; ) {
2603
+ if (o = t[a++], o > 1114111)
2604
+ throw RangeError(o + " is not a valid code point");
2605
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2610
2606
  }
2611
2607
  return n;
2612
2608
  }
2613
2609
  ), it = (
2614
2610
  // native
2615
- cn ? Object.fromEntries : (
2611
+ hn ? Object.fromEntries : (
2616
2612
  // Ponyfill
2617
2613
  function(t) {
2618
2614
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2619
- var o = i[n], s = o[0], a = o[1];
2620
- r[s] = a;
2615
+ var a = i[n], o = a[0], s = a[1];
2616
+ r[o] = s;
2621
2617
  }
2622
2618
  return r;
2623
2619
  }
2624
2620
  )
2625
- ), Ut = fn ? (
2621
+ ), Ut = cn ? (
2626
2622
  // Native
2627
2623
  function(t, r) {
2628
2624
  return t.codePointAt(r);
@@ -2632,11 +2628,11 @@ var nt = ln ? (
2632
2628
  function(t, r) {
2633
2629
  var n = t.length;
2634
2630
  if (!(r < 0 || r >= n)) {
2635
- var i = t.charCodeAt(r), o;
2636
- return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2631
+ var i = t.charCodeAt(r), a;
2632
+ return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2637
2633
  }
2638
2634
  }
2639
- ), yn = mn ? (
2635
+ ), gn = fn ? (
2640
2636
  // Native
2641
2637
  function(t) {
2642
2638
  return t.trimStart();
@@ -2644,9 +2640,9 @@ var nt = ln ? (
2644
2640
  ) : (
2645
2641
  // Ponyfill
2646
2642
  function(t) {
2647
- return t.replace(an, "");
2643
+ return t.replace(on, "");
2648
2644
  }
2649
- ), _n = dn ? (
2645
+ ), yn = mn ? (
2650
2646
  // Native
2651
2647
  function(t) {
2652
2648
  return t.trimEnd();
@@ -2654,32 +2650,32 @@ var nt = ln ? (
2654
2650
  ) : (
2655
2651
  // Ponyfill
2656
2652
  function(t) {
2657
- return t.replace(un, "");
2653
+ return t.replace(sn, "");
2658
2654
  }
2659
2655
  );
2660
2656
  function Gt(e, t) {
2661
2657
  return new RegExp(e, t);
2662
2658
  }
2663
- var ke;
2664
- if (Ue) {
2665
- var ot = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2666
- ke = function(t, r) {
2659
+ var Ue;
2660
+ if (Re) {
2661
+ var at = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2662
+ Ue = function(t, r) {
2667
2663
  var n;
2668
- ot.lastIndex = r;
2669
- var i = ot.exec(t);
2664
+ at.lastIndex = r;
2665
+ var i = at.exec(t);
2670
2666
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2671
2667
  };
2672
2668
  } else
2673
- ke = function(t, r) {
2669
+ Ue = function(t, r) {
2674
2670
  for (var n = []; ; ) {
2675
2671
  var i = Ut(t, r);
2676
- if (i === void 0 || kt(i) || Tn(i))
2672
+ if (i === void 0 || kt(i) || xn(i))
2677
2673
  break;
2678
2674
  n.push(i), r += i >= 65536 ? 2 : 1;
2679
2675
  }
2680
- return Ge.apply(void 0, n);
2676
+ return De.apply(void 0, n);
2681
2677
  };
2682
- var En = (
2678
+ var _n = (
2683
2679
  /** @class */
2684
2680
  function() {
2685
2681
  function e(t, r) {
@@ -2691,35 +2687,35 @@ var En = (
2691
2687
  return this.parseMessage(0, "", !1);
2692
2688
  }, e.prototype.parseMessage = function(t, r, n) {
2693
2689
  for (var i = []; !this.isEOF(); ) {
2694
- var o = this.char();
2695
- if (o === 123) {
2696
- var s = this.parseArgument(t, n);
2697
- if (s.err)
2698
- return s;
2699
- i.push(s.val);
2690
+ var a = this.char();
2691
+ if (a === 123) {
2692
+ var o = this.parseArgument(t, n);
2693
+ if (o.err)
2694
+ return o;
2695
+ i.push(o.val);
2700
2696
  } else {
2701
- if (o === 125 && t > 0)
2697
+ if (a === 125 && t > 0)
2702
2698
  break;
2703
- if (o === 35 && (r === "plural" || r === "selectordinal")) {
2704
- var a = this.clonePosition();
2699
+ if (a === 35 && (r === "plural" || r === "selectordinal")) {
2700
+ var s = this.clonePosition();
2705
2701
  this.bump(), i.push({
2706
- type: _.pound,
2707
- location: y(a, this.clonePosition())
2702
+ type: E.pound,
2703
+ location: y(s, this.clonePosition())
2708
2704
  });
2709
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2705
+ } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2710
2706
  if (n)
2711
2707
  break;
2712
2708
  return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
2713
- } else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
2714
- var s = this.parseTag(t, r);
2715
- if (s.err)
2716
- return s;
2717
- i.push(s.val);
2709
+ } else if (a === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
2710
+ var o = this.parseTag(t, r);
2711
+ if (o.err)
2712
+ return o;
2713
+ i.push(o.val);
2718
2714
  } else {
2719
- var s = this.parseLiteral(t, r);
2720
- if (s.err)
2721
- return s;
2722
- i.push(s.val);
2715
+ var o = this.parseLiteral(t, r);
2716
+ if (o.err)
2717
+ return o;
2718
+ i.push(o.val);
2723
2719
  }
2724
2720
  }
2725
2721
  }
@@ -2731,66 +2727,66 @@ var En = (
2731
2727
  if (this.bumpSpace(), this.bumpIf("/>"))
2732
2728
  return {
2733
2729
  val: {
2734
- type: _.literal,
2730
+ type: E.literal,
2735
2731
  value: "<".concat(i, "/>"),
2736
2732
  location: y(n, this.clonePosition())
2737
2733
  },
2738
2734
  err: null
2739
2735
  };
2740
2736
  if (this.bumpIf(">")) {
2741
- var o = this.parseMessage(t + 1, r, !0);
2742
- if (o.err)
2743
- return o;
2744
- var s = o.val, a = this.clonePosition();
2737
+ var a = this.parseMessage(t + 1, r, !0);
2738
+ if (a.err)
2739
+ return a;
2740
+ var o = a.val, s = this.clonePosition();
2745
2741
  if (this.bumpIf("</")) {
2746
- if (this.isEOF() || !Fe(this.char()))
2747
- return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
2742
+ if (this.isEOF() || !Ge(this.char()))
2743
+ return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
2748
2744
  var h = this.clonePosition(), u = this.parseTagName();
2749
2745
  return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2750
2746
  val: {
2751
- type: _.tag,
2747
+ type: E.tag,
2752
2748
  value: i,
2753
- children: s,
2749
+ children: o,
2754
2750
  location: y(n, this.clonePosition())
2755
2751
  },
2756
2752
  err: null
2757
- } : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
2753
+ } : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
2758
2754
  } else
2759
2755
  return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
2760
2756
  } else
2761
2757
  return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
2762
2758
  }, e.prototype.parseTagName = function() {
2763
2759
  var t = this.offset();
2764
- for (this.bump(); !this.isEOF() && xn(this.char()); )
2760
+ for (this.bump(); !this.isEOF() && vn(this.char()); )
2765
2761
  this.bump();
2766
2762
  return this.message.slice(t, this.offset());
2767
2763
  }, e.prototype.parseLiteral = function(t, r) {
2768
2764
  for (var n = this.clonePosition(), i = ""; ; ) {
2769
- var o = this.tryParseQuote(r);
2765
+ var a = this.tryParseQuote(r);
2766
+ if (a) {
2767
+ i += a;
2768
+ continue;
2769
+ }
2770
+ var o = this.tryParseUnquoted(t, r);
2770
2771
  if (o) {
2771
2772
  i += o;
2772
2773
  continue;
2773
2774
  }
2774
- var s = this.tryParseUnquoted(t, r);
2775
+ var s = this.tryParseLeftAngleBracket();
2775
2776
  if (s) {
2776
2777
  i += s;
2777
2778
  continue;
2778
2779
  }
2779
- var a = this.tryParseLeftAngleBracket();
2780
- if (a) {
2781
- i += a;
2782
- continue;
2783
- }
2784
2780
  break;
2785
2781
  }
2786
2782
  var h = y(n, this.clonePosition());
2787
2783
  return {
2788
- val: { type: _.literal, value: i, location: h },
2784
+ val: { type: E.literal, value: i, location: h },
2789
2785
  err: null
2790
2786
  };
2791
2787
  }, e.prototype.tryParseLeftAngleBracket = function() {
2792
2788
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2793
- !vn(this.peek() || 0)) ? (this.bump(), "<") : null;
2789
+ !En(this.peek() || 0)) ? (this.bump(), "<") : null;
2794
2790
  }, e.prototype.tryParseQuote = function(t) {
2795
2791
  if (this.isEOF() || this.char() !== 39)
2796
2792
  return null;
@@ -2824,12 +2820,12 @@ var En = (
2824
2820
  r.push(n);
2825
2821
  this.bump();
2826
2822
  }
2827
- return Ge.apply(void 0, r);
2823
+ return De.apply(void 0, r);
2828
2824
  }, e.prototype.tryParseUnquoted = function(t, r) {
2829
2825
  if (this.isEOF())
2830
2826
  return null;
2831
2827
  var n = this.char();
2832
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
2828
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
2833
2829
  }, e.prototype.parseArgument = function(t, r) {
2834
2830
  var n = this.clonePosition();
2835
2831
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2845,7 +2841,7 @@ var En = (
2845
2841
  case 125:
2846
2842
  return this.bump(), {
2847
2843
  val: {
2848
- type: _.argument,
2844
+ type: E.argument,
2849
2845
  // value does not include the opening and closing braces.
2850
2846
  value: i,
2851
2847
  location: y(n, this.clonePosition())
@@ -2858,15 +2854,15 @@ var En = (
2858
2854
  return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2859
2855
  }
2860
2856
  }, e.prototype.parseIdentifierIfPossible = function() {
2861
- var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
2857
+ var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
2862
2858
  this.bumpTo(i);
2863
- var o = this.clonePosition(), s = y(t, o);
2864
- return { value: n, location: s };
2859
+ var a = this.clonePosition(), o = y(t, a);
2860
+ return { value: n, location: o };
2865
2861
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2866
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2867
- switch (a) {
2862
+ var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2863
+ switch (s) {
2868
2864
  case "":
2869
- return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, h));
2865
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(o, h));
2870
2866
  case "number":
2871
2867
  case "date":
2872
2868
  case "time": {
@@ -2877,7 +2873,7 @@ var En = (
2877
2873
  var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2878
2874
  if (f.err)
2879
2875
  return f;
2880
- var m = _n(f.val);
2876
+ var m = yn(f.val);
2881
2877
  if (m.length === 0)
2882
2878
  return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2883
2879
  var d = y(l, this.clonePosition());
@@ -2888,24 +2884,24 @@ var En = (
2888
2884
  return p;
2889
2885
  var v = y(i, this.clonePosition());
2890
2886
  if (u && nt(u?.style, "::", 0)) {
2891
- var T = yn(u.style.slice(2));
2892
- if (a === "number") {
2887
+ var T = gn(u.style.slice(2));
2888
+ if (s === "number") {
2893
2889
  var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
2894
2890
  return f.err ? f : {
2895
- val: { type: _.number, value: n, location: v, style: f.val },
2891
+ val: { type: E.number, value: n, location: v, style: f.val },
2896
2892
  err: null
2897
2893
  };
2898
2894
  } else {
2899
2895
  if (T.length === 0)
2900
2896
  return this.error(b.EXPECT_DATE_TIME_SKELETON, v);
2901
2897
  var x = T;
2902
- this.locale && (x = on(T, this.locale));
2898
+ this.locale && (x = nn(T, this.locale));
2903
2899
  var m = {
2904
- type: F.dateTime,
2900
+ type: k.dateTime,
2905
2901
  pattern: x,
2906
2902
  location: u.styleLocation,
2907
- parsedOptions: this.shouldParseSkeletons ? Qr(x) : {}
2908
- }, c = a === "date" ? _.date : _.time;
2903
+ parsedOptions: this.shouldParseSkeletons ? qr(x) : {}
2904
+ }, c = s === "date" ? E.date : E.time;
2909
2905
  return {
2910
2906
  val: { type: c, value: n, location: v, style: m },
2911
2907
  err: null
@@ -2914,10 +2910,10 @@ var En = (
2914
2910
  }
2915
2911
  return {
2916
2912
  val: {
2917
- type: a === "number" ? _.number : a === "date" ? _.date : _.time,
2913
+ type: s === "number" ? E.number : s === "date" ? E.date : E.time,
2918
2914
  value: n,
2919
2915
  location: v,
2920
- style: (o = u?.style) !== null && o !== void 0 ? o : null
2916
+ style: (a = u?.style) !== null && a !== void 0 ? a : null
2921
2917
  },
2922
2918
  err: null
2923
2919
  };
@@ -2927,47 +2923,47 @@ var En = (
2927
2923
  case "select": {
2928
2924
  var g = this.clonePosition();
2929
2925
  if (this.bumpSpace(), !this.bumpIf(","))
2930
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, ge({}, g)));
2926
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(g, _({}, g)));
2931
2927
  this.bumpSpace();
2932
- var A = this.parseIdentifierIfPossible(), N = 0;
2933
- if (a !== "select" && A.value === "offset") {
2928
+ var S = this.parseIdentifierIfPossible(), C = 0;
2929
+ if (s !== "select" && S.value === "offset") {
2934
2930
  if (!this.bumpIf(":"))
2935
2931
  return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
2936
2932
  this.bumpSpace();
2937
2933
  var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2938
2934
  if (f.err)
2939
2935
  return f;
2940
- this.bumpSpace(), A = this.parseIdentifierIfPossible(), N = f.val;
2936
+ this.bumpSpace(), S = this.parseIdentifierIfPossible(), C = f.val;
2941
2937
  }
2942
- var ie = this.tryParsePluralOrSelectOptions(t, a, r, A);
2943
- if (ie.err)
2944
- return ie;
2938
+ var ne = this.tryParsePluralOrSelectOptions(t, s, r, S);
2939
+ if (ne.err)
2940
+ return ne;
2945
2941
  var p = this.tryParseArgumentClose(i);
2946
2942
  if (p.err)
2947
2943
  return p;
2948
2944
  var Ze = y(i, this.clonePosition());
2949
- return a === "select" ? {
2945
+ return s === "select" ? {
2950
2946
  val: {
2951
- type: _.select,
2947
+ type: E.select,
2952
2948
  value: n,
2953
- options: it(ie.val),
2949
+ options: it(ne.val),
2954
2950
  location: Ze
2955
2951
  },
2956
2952
  err: null
2957
2953
  } : {
2958
2954
  val: {
2959
- type: _.plural,
2955
+ type: E.plural,
2960
2956
  value: n,
2961
- options: it(ie.val),
2962
- offset: N,
2963
- pluralType: a === "plural" ? "cardinal" : "ordinal",
2957
+ options: it(ne.val),
2958
+ offset: C,
2959
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
2964
2960
  location: Ze
2965
2961
  },
2966
2962
  err: null
2967
2963
  };
2968
2964
  }
2969
2965
  default:
2970
- return this.error(b.INVALID_ARGUMENT_TYPE, y(s, h));
2966
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(o, h));
2971
2967
  }
2972
2968
  }, e.prototype.tryParseArgumentClose = function(t) {
2973
2969
  return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3009,21 +3005,21 @@ var En = (
3009
3005
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3010
3006
  var n = [];
3011
3007
  try {
3012
- n = Kr(t);
3008
+ n = Yr(t);
3013
3009
  } catch {
3014
3010
  return this.error(b.INVALID_NUMBER_SKELETON, r);
3015
3011
  }
3016
3012
  return {
3017
3013
  val: {
3018
- type: F.number,
3014
+ type: k.number,
3019
3015
  tokens: n,
3020
3016
  location: r,
3021
- parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
3017
+ parsedOptions: this.shouldParseSkeletons ? rn(n) : {}
3022
3018
  },
3023
3019
  err: null
3024
3020
  };
3025
3021
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3026
- for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3022
+ for (var a, o = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3027
3023
  if (u.length === 0) {
3028
3024
  var f = this.clonePosition();
3029
3025
  if (r !== "select" && this.bumpIf("=")) {
@@ -3036,7 +3032,7 @@ var En = (
3036
3032
  }
3037
3033
  if (h.has(u))
3038
3034
  return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3039
- u === "other" && (s = !0), this.bumpSpace();
3035
+ u === "other" && (o = !0), this.bumpSpace();
3040
3036
  var d = this.clonePosition();
3041
3037
  if (!this.bumpIf("{"))
3042
3038
  return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
@@ -3046,27 +3042,27 @@ var En = (
3046
3042
  var v = this.tryParseArgumentClose(d);
3047
3043
  if (v.err)
3048
3044
  return v;
3049
- a.push([
3045
+ s.push([
3050
3046
  u,
3051
3047
  {
3052
3048
  value: p.val,
3053
3049
  location: y(d, this.clonePosition())
3054
3050
  }
3055
- ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3051
+ ]), h.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, l = a.location;
3056
3052
  }
3057
- return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3053
+ return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3058
3054
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3059
3055
  var n = 1, i = this.clonePosition();
3060
3056
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3061
- for (var o = !1, s = 0; !this.isEOF(); ) {
3062
- var a = this.char();
3063
- if (a >= 48 && a <= 57)
3064
- o = !0, s = s * 10 + (a - 48), this.bump();
3057
+ for (var a = !1, o = 0; !this.isEOF(); ) {
3058
+ var s = this.char();
3059
+ if (s >= 48 && s <= 57)
3060
+ a = !0, o = o * 10 + (s - 48), this.bump();
3065
3061
  else
3066
3062
  break;
3067
3063
  }
3068
3064
  var h = y(i, this.clonePosition());
3069
- return o ? (s *= n, bn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3065
+ return a ? (o *= n, pn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3070
3066
  }, e.prototype.offset = function() {
3071
3067
  return this.position.offset;
3072
3068
  }, e.prototype.isEOF = function() {
@@ -3132,82 +3128,82 @@ var En = (
3132
3128
  }, e;
3133
3129
  }()
3134
3130
  );
3135
- function Fe(e) {
3131
+ function Ge(e) {
3136
3132
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3137
3133
  }
3138
- function vn(e) {
3139
- return Fe(e) || e === 47;
3134
+ function En(e) {
3135
+ return Ge(e) || e === 47;
3140
3136
  }
3141
- function xn(e) {
3137
+ function vn(e) {
3142
3138
  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;
3143
3139
  }
3144
3140
  function kt(e) {
3145
3141
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3146
3142
  }
3147
- function Tn(e) {
3143
+ function xn(e) {
3148
3144
  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;
3149
3145
  }
3150
- function je(e) {
3146
+ function ke(e) {
3151
3147
  e.forEach(function(t) {
3152
3148
  if (delete t.location, It(t) || Ct(t))
3153
3149
  for (var r in t.options)
3154
- delete t.options[r].location, je(t.options[r].value);
3150
+ delete t.options[r].location, ke(t.options[r].value);
3155
3151
  else
3156
- At(t) && Lt(t.style) || (Pt(t) || Ot(t)) && De(t.style) ? delete t.style.location : Nt(t) && je(t.children);
3152
+ At(t) && Lt(t.style) || (Pt(t) || Ot(t)) && $e(t.style) ? delete t.style.location : Nt(t) && ke(t.children);
3157
3153
  });
3158
3154
  }
3159
- function Hn(e, t) {
3160
- t === void 0 && (t = {}), t = ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3161
- var r = new En(e, t).parse();
3155
+ function Tn(e, t) {
3156
+ t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3157
+ var r = new _n(e, t).parse();
3162
3158
  if (r.err) {
3163
3159
  var n = SyntaxError(b[r.err.kind]);
3164
3160
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3165
3161
  }
3166
- return t?.captureLocation || je(r.val), r.val;
3162
+ return t?.captureLocation || ke(r.val), r.val;
3167
3163
  }
3168
- var j;
3164
+ var F;
3169
3165
  (function(e) {
3170
3166
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3171
- })(j || (j = {}));
3172
- var He = (
3167
+ })(F || (F = {}));
3168
+ var xe = (
3173
3169
  /** @class */
3174
3170
  function(e) {
3175
- Te(t, e);
3171
+ ve(t, e);
3176
3172
  function t(r, n, i) {
3177
- var o = e.call(this, r) || this;
3178
- return o.code = n, o.originalMessage = i, o;
3173
+ var a = e.call(this, r) || this;
3174
+ return a.code = n, a.originalMessage = i, a;
3179
3175
  }
3180
3176
  return t.prototype.toString = function() {
3181
3177
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3182
3178
  }, t;
3183
3179
  }(Error)
3184
- ), st = (
3180
+ ), ot = (
3185
3181
  /** @class */
3186
3182
  function(e) {
3187
- Te(t, e);
3188
- function t(r, n, i, o) {
3189
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
3183
+ ve(t, e);
3184
+ function t(r, n, i, a) {
3185
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), F.INVALID_VALUE, a) || this;
3190
3186
  }
3191
3187
  return t;
3192
- }(He)
3193
- ), wn = (
3188
+ }(xe)
3189
+ ), Hn = (
3194
3190
  /** @class */
3195
3191
  function(e) {
3196
- Te(t, e);
3192
+ ve(t, e);
3197
3193
  function t(r, n, i) {
3198
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
3194
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), F.INVALID_VALUE, i) || this;
3199
3195
  }
3200
3196
  return t;
3201
- }(He)
3202
- ), Sn = (
3197
+ }(xe)
3198
+ ), wn = (
3203
3199
  /** @class */
3204
3200
  function(e) {
3205
- Te(t, e);
3201
+ ve(t, e);
3206
3202
  function t(r, n) {
3207
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
3203
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), F.MISSING_VALUE, n) || this;
3208
3204
  }
3209
3205
  return t;
3210
- }(He)
3206
+ }(xe)
3211
3207
  ), H;
3212
3208
  (function(e) {
3213
3209
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
@@ -3218,10 +3214,10 @@ function Bn(e) {
3218
3214
  return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
3219
3215
  }, []);
3220
3216
  }
3221
- function An(e) {
3217
+ function Sn(e) {
3222
3218
  return typeof e == "function";
3223
3219
  }
3224
- function pe(e, t, r, n, i, o, s) {
3220
+ function de(e, t, r, n, i, a, o) {
3225
3221
  if (e.length === 1 && Ke(e[0]))
3226
3222
  return [
3227
3223
  {
@@ -3229,44 +3225,44 @@ function pe(e, t, r, n, i, o, s) {
3229
3225
  value: e[0].value
3230
3226
  }
3231
3227
  ];
3232
- for (var a = [], h = 0, u = e; h < u.length; h++) {
3228
+ for (var s = [], h = 0, u = e; h < u.length; h++) {
3233
3229
  var l = u[h];
3234
3230
  if (Ke(l)) {
3235
- a.push({
3231
+ s.push({
3236
3232
  type: H.literal,
3237
3233
  value: l.value
3238
3234
  });
3239
3235
  continue;
3240
3236
  }
3241
- if (Jr(l)) {
3242
- typeof o == "number" && a.push({
3237
+ if (Zr(l)) {
3238
+ typeof a == "number" && s.push({
3243
3239
  type: H.literal,
3244
- value: r.getNumberFormat(t).format(o)
3240
+ value: r.getNumberFormat(t).format(a)
3245
3241
  });
3246
3242
  continue;
3247
3243
  }
3248
3244
  var f = l.value;
3249
3245
  if (!(i && f in i))
3250
- throw new Sn(f, s);
3246
+ throw new wn(f, o);
3251
3247
  var m = i[f];
3252
- if (Zr(l)) {
3253
- (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3248
+ if (Wr(l)) {
3249
+ (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
3254
3250
  type: typeof m == "string" ? H.literal : H.object,
3255
3251
  value: m
3256
3252
  });
3257
3253
  continue;
3258
3254
  }
3259
3255
  if (Pt(l)) {
3260
- var d = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3261
- a.push({
3256
+ var d = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
3257
+ s.push({
3262
3258
  type: H.literal,
3263
3259
  value: r.getDateTimeFormat(t, d).format(m)
3264
3260
  });
3265
3261
  continue;
3266
3262
  }
3267
3263
  if (Ot(l)) {
3268
- var d = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3269
- a.push({
3264
+ var d = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
3265
+ s.push({
3270
3266
  type: H.literal,
3271
3267
  value: r.getDateTimeFormat(t, d).format(m)
3272
3268
  });
@@ -3274,7 +3270,7 @@ function pe(e, t, r, n, i, o, s) {
3274
3270
  }
3275
3271
  if (At(l)) {
3276
3272
  var d = typeof l.style == "string" ? n.number[l.style] : Lt(l.style) ? l.style.parsedOptions : void 0;
3277
- d && d.scale && (m = m * (d.scale || 1)), a.push({
3273
+ d && d.scale && (m = m * (d.scale || 1)), s.push({
3278
3274
  type: H.literal,
3279
3275
  value: r.getNumberFormat(t, d).format(m)
3280
3276
  });
@@ -3282,54 +3278,54 @@ function pe(e, t, r, n, i, o, s) {
3282
3278
  }
3283
3279
  if (Nt(l)) {
3284
3280
  var p = l.children, v = l.value, T = i[v];
3285
- if (!An(T))
3286
- throw new wn(v, "function", s);
3287
- var x = pe(p, t, r, n, i, o), c = T(x.map(function(N) {
3288
- return N.value;
3281
+ if (!Sn(T))
3282
+ throw new Hn(v, "function", o);
3283
+ var x = de(p, t, r, n, i, a), c = T(x.map(function(C) {
3284
+ return C.value;
3289
3285
  }));
3290
- Array.isArray(c) || (c = [c]), a.push.apply(a, c.map(function(N) {
3286
+ Array.isArray(c) || (c = [c]), s.push.apply(s, c.map(function(C) {
3291
3287
  return {
3292
- type: typeof N == "string" ? H.literal : H.object,
3293
- value: N
3288
+ type: typeof C == "string" ? H.literal : H.object,
3289
+ value: C
3294
3290
  };
3295
3291
  }));
3296
3292
  }
3297
3293
  if (It(l)) {
3298
3294
  var g = l.options[m] || l.options.other;
3299
3295
  if (!g)
3300
- throw new st(l.value, m, Object.keys(l.options), s);
3301
- a.push.apply(a, pe(g.value, t, r, n, i));
3296
+ throw new ot(l.value, m, Object.keys(l.options), o);
3297
+ s.push.apply(s, de(g.value, t, r, n, i));
3302
3298
  continue;
3303
3299
  }
3304
3300
  if (Ct(l)) {
3305
3301
  var g = l.options["=".concat(m)];
3306
3302
  if (!g) {
3307
3303
  if (!Intl.PluralRules)
3308
- throw new He(`Intl.PluralRules is not available in this environment.
3304
+ throw new xe(`Intl.PluralRules is not available in this environment.
3309
3305
  Try polyfilling it using "@formatjs/intl-pluralrules"
3310
- `, j.MISSING_INTL_API, s);
3311
- var A = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
3312
- g = l.options[A] || l.options.other;
3306
+ `, F.MISSING_INTL_API, o);
3307
+ var S = r.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
3308
+ g = l.options[S] || l.options.other;
3313
3309
  }
3314
3310
  if (!g)
3315
- throw new st(l.value, m, Object.keys(l.options), s);
3316
- a.push.apply(a, pe(g.value, t, r, n, i, m - (l.offset || 0)));
3311
+ throw new ot(l.value, m, Object.keys(l.options), o);
3312
+ s.push.apply(s, de(g.value, t, r, n, i, m - (l.offset || 0)));
3317
3313
  continue;
3318
3314
  }
3319
3315
  }
3320
- return Bn(a);
3316
+ return Bn(s);
3321
3317
  }
3322
- function Pn(e, t) {
3323
- return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3324
- return r[n] = w(w({}, e[n]), t[n] || {}), r;
3318
+ function An(e, t) {
3319
+ return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3320
+ return r[n] = _(_({}, e[n]), t[n] || {}), r;
3325
3321
  }, {})) : e;
3326
3322
  }
3327
- function On(e, t) {
3323
+ function Pn(e, t) {
3328
3324
  return t ? Object.keys(e).reduce(function(r, n) {
3329
- return r[n] = Pn(e[n], t[n]), r;
3330
- }, w({}, e)) : e;
3325
+ return r[n] = An(e[n], t[n]), r;
3326
+ }, _({}, e)) : e;
3331
3327
  }
3332
- function Ce(e) {
3328
+ function Oe(e) {
3333
3329
  return {
3334
3330
  create: function() {
3335
3331
  return {
@@ -3343,35 +3339,35 @@ function Ce(e) {
3343
3339
  }
3344
3340
  };
3345
3341
  }
3346
- function In(e) {
3342
+ function On(e) {
3347
3343
  return e === void 0 && (e = {
3348
3344
  number: {},
3349
3345
  dateTime: {},
3350
3346
  pluralRules: {}
3351
3347
  }), {
3352
- getNumberFormat: Pe(function() {
3348
+ getNumberFormat: Se(function() {
3353
3349
  for (var t, r = [], n = 0; n < arguments.length; n++)
3354
3350
  r[n] = arguments[n];
3355
- return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
3351
+ return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
3356
3352
  }, {
3357
- cache: Ce(e.number),
3358
- strategy: Oe.variadic
3353
+ cache: Oe(e.number),
3354
+ strategy: Ae.variadic
3359
3355
  }),
3360
- getDateTimeFormat: Pe(function() {
3356
+ getDateTimeFormat: Se(function() {
3361
3357
  for (var t, r = [], n = 0; n < arguments.length; n++)
3362
3358
  r[n] = arguments[n];
3363
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
3359
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
3364
3360
  }, {
3365
- cache: Ce(e.dateTime),
3366
- strategy: Oe.variadic
3361
+ cache: Oe(e.dateTime),
3362
+ strategy: Ae.variadic
3367
3363
  }),
3368
- getPluralRules: Pe(function() {
3364
+ getPluralRules: Se(function() {
3369
3365
  for (var t, r = [], n = 0; n < arguments.length; n++)
3370
3366
  r[n] = arguments[n];
3371
- return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
3367
+ return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
3372
3368
  }, {
3373
- cache: Ce(e.pluralRules),
3374
- strategy: Oe.variadic
3369
+ cache: Oe(e.pluralRules),
3370
+ strategy: Ae.variadic
3375
3371
  })
3376
3372
  };
3377
3373
  }
@@ -3380,13 +3376,13 @@ var Ft = (
3380
3376
  function() {
3381
3377
  function e(t, r, n, i) {
3382
3378
  r === void 0 && (r = e.defaultLocale);
3383
- var o = this;
3379
+ var a = this;
3384
3380
  if (this.formatterCache = {
3385
3381
  number: {},
3386
3382
  dateTime: {},
3387
3383
  pluralRules: {}
3388
3384
  }, this.format = function(h) {
3389
- var u = o.formatToParts(h);
3385
+ var u = a.formatToParts(h);
3390
3386
  if (u.length === 1)
3391
3387
  return u[0].value;
3392
3388
  var l = u.reduce(function(f, m) {
@@ -3394,26 +3390,26 @@ var Ft = (
3394
3390
  }, []);
3395
3391
  return l.length <= 1 ? l[0] || "" : l;
3396
3392
  }, this.formatToParts = function(h) {
3397
- return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3393
+ return de(a.ast, a.locales, a.formatters, a.formats, h, void 0, a.message);
3398
3394
  }, this.resolvedOptions = function() {
3399
3395
  var h;
3400
3396
  return {
3401
- locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3397
+ locale: ((h = a.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3402
3398
  };
3403
3399
  }, this.getAst = function() {
3404
- return o.ast;
3400
+ return a.ast;
3405
3401
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3406
3402
  if (this.message = t, !e.__parse)
3407
3403
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3408
- var s = i || {};
3409
- s.formatters;
3410
- var a = Gr(s, ["formatters"]);
3411
- this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
3404
+ var o = i || {};
3405
+ o.formatters;
3406
+ var s = Gr(o, ["formatters"]);
3407
+ this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
3412
3408
  } else
3413
3409
  this.ast = t;
3414
3410
  if (!Array.isArray(this.ast))
3415
3411
  throw new TypeError("A message must be provided as a String or AST.");
3416
- this.formats = On(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
3412
+ this.formats = Pn(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
3417
3413
  }
3418
3414
  return Object.defineProperty(e, "defaultLocale", {
3419
3415
  get: function() {
@@ -3426,7 +3422,7 @@ var Ft = (
3426
3422
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3427
3423
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3428
3424
  }
3429
- }, e.__parse = Hn, e.formats = {
3425
+ }, e.__parse = Tn, e.formats = {
3430
3426
  number: {
3431
3427
  integer: {
3432
3428
  maximumFractionDigits: 0
@@ -3487,7 +3483,7 @@ var Ft = (
3487
3483
  }, e;
3488
3484
  }()
3489
3485
  );
3490
- function Cn(e, t) {
3486
+ function In(e, t) {
3491
3487
  if (t == null)
3492
3488
  return;
3493
3489
  if (t in e)
@@ -3497,9 +3493,9 @@ function Cn(e, t) {
3497
3493
  for (let i = 0; i < r.length; i++)
3498
3494
  if (typeof n == "object") {
3499
3495
  if (i > 0) {
3500
- const o = r.slice(i, r.length).join(".");
3501
- if (o in n) {
3502
- n = n[o];
3496
+ const a = r.slice(i, r.length).join(".");
3497
+ if (a in n) {
3498
+ n = n[a];
3503
3499
  break;
3504
3500
  }
3505
3501
  }
@@ -3508,36 +3504,36 @@ function Cn(e, t) {
3508
3504
  n = void 0;
3509
3505
  return n;
3510
3506
  }
3511
- const O = {}, Nn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), jt = (e, t) => {
3507
+ const P = {}, Cn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), jt = (e, t) => {
3512
3508
  if (t == null)
3513
3509
  return;
3514
- if (t in O && e in O[t])
3515
- return O[t][e];
3516
- const r = ne(t);
3510
+ if (t in P && e in P[t])
3511
+ return P[t][e];
3512
+ const r = re(t);
3517
3513
  for (let n = 0; n < r.length; n++) {
3518
- const i = r[n], o = Mn(i, e);
3519
- if (o)
3520
- return Nn(e, t, o);
3514
+ const i = r[n], a = Ln(i, e);
3515
+ if (a)
3516
+ return Cn(e, t, a);
3521
3517
  }
3522
3518
  };
3523
3519
  let Xe;
3524
- const re = xe({});
3525
- function Ln(e) {
3520
+ const te = Ee({});
3521
+ function Nn(e) {
3526
3522
  return Xe[e] || null;
3527
3523
  }
3528
3524
  function zt(e) {
3529
3525
  return e in Xe;
3530
3526
  }
3531
- function Mn(e, t) {
3527
+ function Ln(e, t) {
3532
3528
  if (!zt(e))
3533
3529
  return null;
3534
- const r = Ln(e);
3535
- return Cn(r, t);
3530
+ const r = Nn(e);
3531
+ return In(r, t);
3536
3532
  }
3537
- function $n(e) {
3533
+ function Mn(e) {
3538
3534
  if (e == null)
3539
3535
  return;
3540
- const t = ne(e);
3536
+ const t = re(e);
3541
3537
  for (let r = 0; r < t.length; r++) {
3542
3538
  const n = t[r];
3543
3539
  if (zt(n))
@@ -3545,64 +3541,64 @@ function $n(e) {
3545
3541
  }
3546
3542
  }
3547
3543
  function Vt(e, ...t) {
3548
- delete O[e], re.update((r) => (r[e] = Ur.all([r[e] || {}, ...t]), r));
3544
+ delete P[e], te.update((r) => (r[e] = Ur.all([r[e] || {}, ...t]), r));
3549
3545
  }
3550
- X(
3551
- [re],
3546
+ V(
3547
+ [te],
3552
3548
  ([e]) => Object.keys(e)
3553
3549
  );
3554
- re.subscribe((e) => Xe = e);
3555
- const be = {};
3556
- function Rn(e, t) {
3557
- be[e].delete(t), be[e].size === 0 && delete be[e];
3550
+ te.subscribe((e) => Xe = e);
3551
+ const pe = {};
3552
+ function $n(e, t) {
3553
+ pe[e].delete(t), pe[e].size === 0 && delete pe[e];
3558
3554
  }
3559
3555
  function Xt(e) {
3560
- return be[e];
3556
+ return pe[e];
3561
3557
  }
3562
- function Dn(e) {
3563
- return ne(e).map((t) => {
3558
+ function Rn(e) {
3559
+ return re(e).map((t) => {
3564
3560
  const r = Xt(t);
3565
3561
  return [t, r ? [...r] : []];
3566
3562
  }).filter(([, t]) => t.length > 0);
3567
3563
  }
3568
- function ye(e) {
3569
- return e == null ? !1 : ne(e).some(
3564
+ function be(e) {
3565
+ return e == null ? !1 : re(e).some(
3570
3566
  (t) => {
3571
3567
  var r;
3572
3568
  return (r = Xt(t)) == null ? void 0 : r.size;
3573
3569
  }
3574
3570
  );
3575
3571
  }
3576
- function Un(e, t) {
3572
+ function Dn(e, t) {
3577
3573
  return Promise.all(
3578
- t.map((n) => (Rn(e, n), n().then((i) => i.default || i)))
3574
+ t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
3579
3575
  ).then((n) => Vt(e, ...n));
3580
3576
  }
3581
- const Z = {};
3577
+ const W = {};
3582
3578
  function Wt(e) {
3583
- if (!ye(e))
3584
- return e in Z ? Z[e] : Promise.resolve();
3585
- const t = Dn(e);
3586
- return Z[e] = Promise.all(
3579
+ if (!be(e))
3580
+ return e in W ? W[e] : Promise.resolve();
3581
+ const t = Rn(e);
3582
+ return W[e] = Promise.all(
3587
3583
  t.map(
3588
- ([r, n]) => Un(r, n)
3584
+ ([r, n]) => Dn(r, n)
3589
3585
  )
3590
3586
  ).then(() => {
3591
- if (ye(e))
3587
+ if (be(e))
3592
3588
  return Wt(e);
3593
- delete Z[e];
3594
- }), Z[e];
3589
+ delete W[e];
3590
+ }), W[e];
3595
3591
  }
3596
- var at = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, kn = Object.prototype.propertyIsEnumerable, Fn = (e, t) => {
3592
+ var st = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, kn = (e, t) => {
3597
3593
  var r = {};
3598
3594
  for (var n in e)
3599
- Gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3600
- if (e != null && at)
3601
- for (var n of at(e))
3602
- t.indexOf(n) < 0 && kn.call(e, n) && (r[n] = e[n]);
3595
+ Un.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3596
+ if (e != null && st)
3597
+ for (var n of st(e))
3598
+ t.indexOf(n) < 0 && Gn.call(e, n) && (r[n] = e[n]);
3603
3599
  return r;
3604
3600
  };
3605
- const jn = {
3601
+ const Fn = {
3606
3602
  number: {
3607
3603
  scientific: { notation: "scientific" },
3608
3604
  engineering: { notation: "engineering" },
@@ -3632,28 +3628,28 @@ const jn = {
3632
3628
  }
3633
3629
  }
3634
3630
  };
3635
- function zn({ locale: e, id: t }) {
3631
+ function jn({ locale: e, id: t }) {
3636
3632
  console.warn(
3637
- `[svelte-i18n] The message "${t}" was not found in "${ne(
3633
+ `[svelte-i18n] The message "${t}" was not found in "${re(
3638
3634
  e
3639
- ).join('", "')}".${ye(C()) ? `
3635
+ ).join('", "')}".${be(I()) ? `
3640
3636
 
3641
3637
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3642
3638
  );
3643
3639
  }
3644
- const Vn = {
3640
+ const zn = {
3645
3641
  fallbackLocale: null,
3646
3642
  loadingDelay: 200,
3647
- formats: jn,
3643
+ formats: Fn,
3648
3644
  warnOnMissingMessages: !0,
3649
3645
  handleMissingMessage: void 0,
3650
3646
  ignoreTag: !0
3651
- }, q = Vn;
3652
- function z() {
3653
- return q;
3647
+ }, J = zn;
3648
+ function j() {
3649
+ return J;
3654
3650
  }
3655
- function Xn(e) {
3656
- const t = e, { formats: r } = t, n = Fn(t, ["formats"]);
3651
+ function Vn(e) {
3652
+ const t = e, { formats: r } = t, n = kn(t, ["formats"]);
3657
3653
  let i = e.fallbackLocale;
3658
3654
  if (e.initialLocale)
3659
3655
  try {
@@ -3663,152 +3659,152 @@ function Xn(e) {
3663
3659
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3664
3660
  );
3665
3661
  }
3666
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = zn : console.warn(
3662
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = jn : console.warn(
3667
3663
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3668
- )), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), M.set(i);
3664
+ )), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), L.set(i);
3669
3665
  }
3670
- const Ne = xe(!1);
3671
- var Wn = Object.defineProperty, Zn = Object.defineProperties, Jn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
3666
+ const Ie = Ee(!1);
3667
+ var Xn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, qn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qn = (e, t) => {
3672
3668
  for (var r in t || (t = {}))
3673
- qn.call(t, r) && lt(e, r, t[r]);
3669
+ Jn.call(t, r) && lt(e, r, t[r]);
3674
3670
  if (ut)
3675
3671
  for (var r of ut(t))
3676
- Qn.call(t, r) && lt(e, r, t[r]);
3672
+ qn.call(t, r) && lt(e, r, t[r]);
3677
3673
  return e;
3678
- }, Kn = (e, t) => Zn(e, Jn(t));
3679
- let ze;
3680
- const _e = xe(null);
3674
+ }, Yn = (e, t) => Wn(e, Zn(t));
3675
+ let Fe;
3676
+ const ge = Ee(null);
3681
3677
  function ht(e) {
3682
3678
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3683
3679
  }
3684
- function ne(e, t = z().fallbackLocale) {
3680
+ function re(e, t = j().fallbackLocale) {
3685
3681
  const r = ht(e);
3686
3682
  return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
3687
3683
  }
3688
- function C() {
3689
- return ze ?? void 0;
3684
+ function I() {
3685
+ return Fe ?? void 0;
3690
3686
  }
3691
- _e.subscribe((e) => {
3692
- ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3687
+ ge.subscribe((e) => {
3688
+ Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3693
3689
  });
3694
- const ei = (e) => {
3695
- if (e && $n(e) && ye(e)) {
3696
- const { loadingDelay: t } = z();
3690
+ const Kn = (e) => {
3691
+ if (e && Mn(e) && be(e)) {
3692
+ const { loadingDelay: t } = j();
3697
3693
  let r;
3698
- return typeof window < "u" && C() != null && t ? r = window.setTimeout(
3699
- () => Ne.set(!0),
3694
+ return typeof window < "u" && I() != null && t ? r = window.setTimeout(
3695
+ () => Ie.set(!0),
3700
3696
  t
3701
- ) : Ne.set(!0), Wt(e).then(() => {
3702
- _e.set(e);
3697
+ ) : Ie.set(!0), Wt(e).then(() => {
3698
+ ge.set(e);
3703
3699
  }).finally(() => {
3704
- clearTimeout(r), Ne.set(!1);
3700
+ clearTimeout(r), Ie.set(!1);
3705
3701
  });
3706
3702
  }
3707
- return _e.set(e);
3708
- }, M = Kn(Yn({}, _e), {
3709
- set: ei
3710
- }), we = (e) => {
3703
+ return ge.set(e);
3704
+ }, L = Yn(Qn({}, ge), {
3705
+ set: Kn
3706
+ }), Te = (e) => {
3711
3707
  const t = /* @__PURE__ */ Object.create(null);
3712
3708
  return (n) => {
3713
3709
  const i = JSON.stringify(n);
3714
3710
  return i in t ? t[i] : t[i] = e(n);
3715
3711
  };
3716
3712
  };
3717
- var ti = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3713
+ var ei = Object.defineProperty, ye = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
3718
3714
  for (var r in t || (t = {}))
3719
3715
  Zt.call(t, r) && ct(e, r, t[r]);
3720
- if (Ee)
3721
- for (var r of Ee(t))
3716
+ if (ye)
3717
+ for (var r of ye(t))
3722
3718
  Jt.call(t, r) && ct(e, r, t[r]);
3723
3719
  return e;
3724
- }, W = (e, t) => {
3720
+ }, X = (e, t) => {
3725
3721
  var r = {};
3726
3722
  for (var n in e)
3727
3723
  Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3728
- if (e != null && Ee)
3729
- for (var n of Ee(e))
3724
+ if (e != null && ye)
3725
+ for (var n of ye(e))
3730
3726
  t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3731
3727
  return r;
3732
3728
  };
3733
- const ee = (e, t) => {
3734
- const { formats: r } = z();
3729
+ const K = (e, t) => {
3730
+ const { formats: r } = j();
3735
3731
  if (e in r && t in r[e])
3736
3732
  return r[e][t];
3737
3733
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3738
- }, ri = we(
3734
+ }, ti = Te(
3739
3735
  (e) => {
3740
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
3736
+ var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
3741
3737
  if (r == null)
3742
3738
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3743
- return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
3739
+ return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
3744
3740
  }
3745
- ), ni = we(
3741
+ ), ri = Te(
3746
3742
  (e) => {
3747
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
3743
+ var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
3748
3744
  if (r == null)
3749
3745
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3750
- return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
3746
+ return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
3751
3747
  }
3752
- ), ii = we(
3748
+ ), ni = Te(
3753
3749
  (e) => {
3754
- var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
3750
+ var t = e, { locale: r, format: n } = t, i = X(t, ["locale", "format"]);
3755
3751
  if (r == null)
3756
3752
  throw new Error(
3757
3753
  '[svelte-i18n] A "locale" must be set to format time values'
3758
3754
  );
3759
- return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
3755
+ return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
3760
3756
  }
3761
- ), oi = (e = {}) => {
3757
+ ), ii = (e = {}) => {
3762
3758
  var t = e, {
3763
- locale: r = C()
3764
- } = t, n = W(t, [
3759
+ locale: r = I()
3760
+ } = t, n = X(t, [
3765
3761
  "locale"
3766
3762
  ]);
3767
- return ri(We({ locale: r }, n));
3768
- }, si = (e = {}) => {
3763
+ return ti(We({ locale: r }, n));
3764
+ }, ai = (e = {}) => {
3769
3765
  var t = e, {
3770
- locale: r = C()
3771
- } = t, n = W(t, [
3766
+ locale: r = I()
3767
+ } = t, n = X(t, [
3772
3768
  "locale"
3773
3769
  ]);
3774
- return ni(We({ locale: r }, n));
3775
- }, ai = (e = {}) => {
3770
+ return ri(We({ locale: r }, n));
3771
+ }, oi = (e = {}) => {
3776
3772
  var t = e, {
3777
- locale: r = C()
3778
- } = t, n = W(t, [
3773
+ locale: r = I()
3774
+ } = t, n = X(t, [
3779
3775
  "locale"
3780
3776
  ]);
3781
- return ii(We({ locale: r }, n));
3782
- }, ui = we(
3777
+ return ni(We({ locale: r }, n));
3778
+ }, si = Te(
3783
3779
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3784
- (e, t = C()) => new Ft(e, t, z().formats, {
3785
- ignoreTag: z().ignoreTag
3780
+ (e, t = I()) => new Ft(e, t, j().formats, {
3781
+ ignoreTag: j().ignoreTag
3786
3782
  })
3787
- ), li = (e, t = {}) => {
3788
- var r, n, i, o;
3789
- let s = t;
3790
- typeof e == "object" && (s = e, e = s.id);
3783
+ ), ui = (e, t = {}) => {
3784
+ var r, n, i, a;
3785
+ let o = t;
3786
+ typeof e == "object" && (o = e, e = o.id);
3791
3787
  const {
3792
- values: a,
3793
- locale: h = C(),
3788
+ values: s,
3789
+ locale: h = I(),
3794
3790
  default: u
3795
- } = s;
3791
+ } = o;
3796
3792
  if (h == null)
3797
3793
  throw new Error(
3798
3794
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3799
3795
  );
3800
3796
  let l = jt(e, h);
3801
3797
  if (!l)
3802
- l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3798
+ l = (a = (i = (n = (r = j()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3803
3799
  else if (typeof l != "string")
3804
3800
  return console.warn(
3805
3801
  `[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.`
3806
3802
  ), l;
3807
- if (!a)
3803
+ if (!s)
3808
3804
  return l;
3809
3805
  let f = l;
3810
3806
  try {
3811
- f = ui(l, h).format(a);
3807
+ f = si(l, h).format(s);
3812
3808
  } catch (m) {
3813
3809
  m instanceof Error && console.warn(
3814
3810
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3816,18 +3812,18 @@ const ee = (e, t) => {
3816
3812
  );
3817
3813
  }
3818
3814
  return f;
3819
- }, hi = (e, t) => ai(t).format(e), ci = (e, t) => si(t).format(e), fi = (e, t) => oi(t).format(e), mi = (e, t = C()) => jt(e, t), di = X([M, re], () => li);
3820
- X([M], () => hi);
3821
- X([M], () => ci);
3822
- X([M], () => fi);
3823
- X([M, re], () => mi);
3815
+ }, li = (e, t) => oi(t).format(e), hi = (e, t) => ai(t).format(e), ci = (e, t) => ii(t).format(e), fi = (e, t = I()) => jt(e, t), mi = V([L, te], () => ui);
3816
+ V([L], () => li);
3817
+ V([L], () => hi);
3818
+ V([L], () => ci);
3819
+ V([L, te], () => fi);
3824
3820
  function ft(e, t) {
3825
3821
  Vt(e, t);
3826
3822
  }
3827
- function pi(e) {
3828
- Xn({
3823
+ function di(e) {
3824
+ Vn({
3829
3825
  fallbackLocale: "en"
3830
- }), M.set(e);
3826
+ }), L.set(e);
3831
3827
  }
3832
3828
  const mt = {
3833
3829
  en: {
@@ -3883,31 +3879,31 @@ const mt = {
3883
3879
  DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin."
3884
3880
  }
3885
3881
  };
3886
- function bi(e) {
3882
+ function pi(e) {
3887
3883
  Kt(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
3888
3884
  }
3889
- const gi = (e) => ({}), dt = (e) => ({}), yi = (e) => ({}), pt = (e) => ({}), _i = (e) => ({}), bt = (e) => ({}), Ei = (e) => ({}), gt = (e) => ({ class: "CashierErrorIcon" });
3885
+ const bi = (e) => ({}), dt = (e) => ({}), gi = (e) => ({}), pt = (e) => ({}), yi = (e) => ({}), bt = (e) => ({}), _i = (e) => ({}), gt = (e) => ({ class: "CashierErrorIcon" });
3890
3886
  function yt(e) {
3891
3887
  let t, r;
3892
3888
  return {
3893
3889
  c() {
3894
- t = I("ui-image"), qe(t.src, r = `${/*assetsurl*/
3895
- e[0]}/error-general-icon.png`) || he(t, "src", r), he(t, "width", "300px"), he(t, "alt", "error");
3890
+ t = O("ui-image"), qe(t.src, r = `${/*assetsurl*/
3891
+ e[0]}/error-general-icon.png`) || le(t, "src", r), le(t, "width", "300px"), le(t, "alt", "error");
3896
3892
  },
3897
3893
  m(n, i) {
3898
- V(n, t, i);
3894
+ z(n, t, i);
3899
3895
  },
3900
3896
  p(n, i) {
3901
3897
  i & /*assetsurl*/
3902
3898
  1 && !qe(t.src, r = `${/*assetsurl*/
3903
- n[0]}/error-general-icon.png`) && he(t, "src", r);
3899
+ n[0]}/error-general-icon.png`) && le(t, "src", r);
3904
3900
  },
3905
3901
  d(n) {
3906
- n && L(t);
3902
+ n && N(t);
3907
3903
  }
3908
3904
  };
3909
3905
  }
3910
- function vi(e) {
3906
+ function Ei(e) {
3911
3907
  let t, r = (
3912
3908
  /*assetsurl*/
3913
3909
  e[0] && yt(e)
@@ -3917,18 +3913,18 @@ function vi(e) {
3917
3913
  r && r.c(), t = rr();
3918
3914
  },
3919
3915
  m(n, i) {
3920
- r && r.m(n, i), V(n, t, i);
3916
+ r && r.m(n, i), z(n, t, i);
3921
3917
  },
3922
3918
  p(n, i) {
3923
3919
  /*assetsurl*/
3924
3920
  n[0] ? r ? r.p(n, i) : (r = yt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3925
3921
  },
3926
3922
  d(n) {
3927
- n && L(t), r && r.d(n);
3923
+ n && N(t), r && r.d(n);
3928
3924
  }
3929
3925
  };
3930
3926
  }
3931
- function xi(e) {
3927
+ function vi(e) {
3932
3928
  let t, r = (
3933
3929
  /*$_*/
3934
3930
  e[3](`${/*errorcode*/
@@ -3936,64 +3932,64 @@ function xi(e) {
3936
3932
  ), n;
3937
3933
  return {
3938
3934
  c() {
3939
- t = I("span"), n = ve(r), G(t, "class", "CashierErrorText");
3935
+ t = O("span"), n = _e(r), U(t, "class", "CashierErrorText");
3940
3936
  },
3941
- m(i, o) {
3942
- V(i, t, o), P(t, n);
3937
+ m(i, a) {
3938
+ z(i, t, a), A(t, n);
3943
3939
  },
3944
- p(i, o) {
3945
- o & /*$_, errorcode*/
3940
+ p(i, a) {
3941
+ a & /*$_, errorcode*/
3946
3942
  10 && r !== (r = /*$_*/
3947
3943
  i[3](`${/*errorcode*/
3948
3944
  i[1] || "errorGeneralText"}`) + "") && Tt(n, r);
3949
3945
  },
3950
3946
  d(i) {
3951
- i && L(t);
3947
+ i && N(t);
3952
3948
  }
3953
3949
  };
3954
3950
  }
3955
- function Ti(e) {
3951
+ function xi(e) {
3956
3952
  let t, r, n = (
3957
3953
  /*$_*/
3958
3954
  e[3]("errorGeneralButton") + ""
3959
- ), i, o, s;
3955
+ ), i, a, o;
3960
3956
  return {
3961
3957
  c() {
3962
- t = I("button"), r = I("span"), i = ve(n), G(t, "class", "CashierErrorButton");
3958
+ t = O("button"), r = O("span"), i = _e(n), U(t, "class", "CashierErrorButton");
3963
3959
  },
3964
- m(a, h) {
3965
- V(a, t, h), P(t, r), P(r, i), o || (s = nr(
3960
+ m(s, h) {
3961
+ z(s, t, h), A(t, r), A(r, i), a || (o = nr(
3966
3962
  t,
3967
3963
  "click",
3968
3964
  /*close*/
3969
3965
  e[4]
3970
- ), o = !0);
3966
+ ), a = !0);
3971
3967
  },
3972
- p(a, h) {
3968
+ p(s, h) {
3973
3969
  h & /*$_*/
3974
3970
  8 && n !== (n = /*$_*/
3975
- a[3]("errorGeneralButton") + "") && Tt(i, n);
3971
+ s[3]("errorGeneralButton") + "") && Tt(i, n);
3976
3972
  },
3977
- d(a) {
3978
- a && L(t), o = !1, s();
3973
+ d(s) {
3974
+ s && N(t), a = !1, o();
3979
3975
  }
3980
3976
  };
3981
3977
  }
3982
- function Hi(e) {
3983
- let t, r, n, i, o, s;
3984
- const a = (
3978
+ function Ti(e) {
3979
+ let t, r, n, i, a, o;
3980
+ const s = (
3985
3981
  /*#slots*/
3986
3982
  e[11].icon
3987
- ), h = se(
3988
- a,
3983
+ ), h = ae(
3984
+ s,
3989
3985
  e,
3990
3986
  /*$$scope*/
3991
3987
  e[10],
3992
3988
  gt
3993
- ), u = h || vi(e), l = (
3989
+ ), u = h || Ei(e), l = (
3994
3990
  /*#slots*/
3995
3991
  e[11].title
3996
- ), f = se(
3992
+ ), f = ae(
3997
3993
  l,
3998
3994
  e,
3999
3995
  /*$$scope*/
@@ -4002,128 +3998,128 @@ function Hi(e) {
4002
3998
  ), m = (
4003
3999
  /*#slots*/
4004
4000
  e[11].text
4005
- ), d = se(
4001
+ ), d = ae(
4006
4002
  m,
4007
4003
  e,
4008
4004
  /*$$scope*/
4009
4005
  e[10],
4010
4006
  pt
4011
- ), p = d || xi(e), v = (
4007
+ ), p = d || vi(e), v = (
4012
4008
  /*#slots*/
4013
4009
  e[11].button
4014
- ), T = se(
4010
+ ), T = ae(
4015
4011
  v,
4016
4012
  e,
4017
4013
  /*$$scope*/
4018
4014
  e[10],
4019
4015
  dt
4020
- ), x = T || Ti(e);
4016
+ ), x = T || xi(e);
4021
4017
  return {
4022
4018
  c() {
4023
- t = I("div"), r = I("div"), u && u.c(), n = Se(), f && f.c(), i = Se(), p && p.c(), o = Se(), x && x.c(), G(r, "class", "CashierErrorContent"), G(t, "class", "CashierError");
4019
+ t = O("div"), r = O("div"), u && u.c(), n = He(), f && f.c(), i = He(), p && p.c(), a = He(), x && x.c(), U(r, "class", "CashierErrorContent"), U(t, "class", "CashierError");
4024
4020
  },
4025
4021
  m(c, g) {
4026
- V(c, t, g), P(t, r), u && u.m(r, null), P(r, n), f && f.m(r, null), P(r, i), p && p.m(r, null), P(r, o), x && x.m(r, null), e[12](t), s = !0;
4022
+ z(c, t, g), A(t, r), u && u.m(r, null), A(r, n), f && f.m(r, null), A(r, i), p && p.m(r, null), A(r, a), x && x.m(r, null), e[12](t), o = !0;
4027
4023
  },
4028
4024
  p(c, [g]) {
4029
- h ? h.p && (!s || g & /*$$scope*/
4030
- 1024) && ue(
4025
+ h ? h.p && (!o || g & /*$$scope*/
4026
+ 1024) && se(
4031
4027
  h,
4032
- a,
4028
+ s,
4033
4029
  c,
4034
4030
  /*$$scope*/
4035
4031
  c[10],
4036
- s ? ae(
4037
- a,
4032
+ o ? oe(
4033
+ s,
4038
4034
  /*$$scope*/
4039
4035
  c[10],
4040
4036
  g,
4041
- Ei
4042
- ) : le(
4037
+ _i
4038
+ ) : ue(
4043
4039
  /*$$scope*/
4044
4040
  c[10]
4045
4041
  ),
4046
4042
  gt
4047
- ) : u && u.p && (!s || g & /*assetsurl*/
4048
- 1) && u.p(c, s ? g : -1), f && f.p && (!s || g & /*$$scope*/
4049
- 1024) && ue(
4043
+ ) : u && u.p && (!o || g & /*assetsurl*/
4044
+ 1) && u.p(c, o ? g : -1), f && f.p && (!o || g & /*$$scope*/
4045
+ 1024) && se(
4050
4046
  f,
4051
4047
  l,
4052
4048
  c,
4053
4049
  /*$$scope*/
4054
4050
  c[10],
4055
- s ? ae(
4051
+ o ? oe(
4056
4052
  l,
4057
4053
  /*$$scope*/
4058
4054
  c[10],
4059
4055
  g,
4060
- _i
4061
- ) : le(
4056
+ yi
4057
+ ) : ue(
4062
4058
  /*$$scope*/
4063
4059
  c[10]
4064
4060
  ),
4065
4061
  bt
4066
- ), d ? d.p && (!s || g & /*$$scope*/
4067
- 1024) && ue(
4062
+ ), d ? d.p && (!o || g & /*$$scope*/
4063
+ 1024) && se(
4068
4064
  d,
4069
4065
  m,
4070
4066
  c,
4071
4067
  /*$$scope*/
4072
4068
  c[10],
4073
- s ? ae(
4069
+ o ? oe(
4074
4070
  m,
4075
4071
  /*$$scope*/
4076
4072
  c[10],
4077
4073
  g,
4078
- yi
4079
- ) : le(
4074
+ gi
4075
+ ) : ue(
4080
4076
  /*$$scope*/
4081
4077
  c[10]
4082
4078
  ),
4083
4079
  pt
4084
- ) : p && p.p && (!s || g & /*$_, errorcode*/
4085
- 10) && p.p(c, s ? g : -1), T ? T.p && (!s || g & /*$$scope*/
4086
- 1024) && ue(
4080
+ ) : p && p.p && (!o || g & /*$_, errorcode*/
4081
+ 10) && p.p(c, o ? g : -1), T ? T.p && (!o || g & /*$$scope*/
4082
+ 1024) && se(
4087
4083
  T,
4088
4084
  v,
4089
4085
  c,
4090
4086
  /*$$scope*/
4091
4087
  c[10],
4092
- s ? ae(
4088
+ o ? oe(
4093
4089
  v,
4094
4090
  /*$$scope*/
4095
4091
  c[10],
4096
4092
  g,
4097
- gi
4098
- ) : le(
4093
+ bi
4094
+ ) : ue(
4099
4095
  /*$$scope*/
4100
4096
  c[10]
4101
4097
  ),
4102
4098
  dt
4103
- ) : x && x.p && (!s || g & /*$_*/
4104
- 8) && x.p(c, s ? g : -1);
4099
+ ) : x && x.p && (!o || g & /*$_*/
4100
+ 8) && x.p(c, o ? g : -1);
4105
4101
  },
4106
4102
  i(c) {
4107
- s || (J(u, c), J(f, c), J(p, c), J(x, c), s = !0);
4103
+ o || (Z(u, c), Z(f, c), Z(p, c), Z(x, c), o = !0);
4108
4104
  },
4109
4105
  o(c) {
4110
- ce(u, c), ce(f, c), ce(p, c), ce(x, c), s = !1;
4106
+ he(u, c), he(f, c), he(p, c), he(x, c), o = !1;
4111
4107
  },
4112
4108
  d(c) {
4113
- c && L(t), u && u.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
4109
+ c && N(t), u && u.d(c), f && f.d(c), p && p.d(c), x && x.d(c), e[12](null);
4114
4110
  }
4115
4111
  };
4116
4112
  }
4117
- function wi(e, t, r) {
4113
+ function Hi(e, t, r) {
4118
4114
  let n;
4119
- Yt(e, di, (c) => r(3, n = c));
4120
- let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
4115
+ Yt(e, mi, (c) => r(3, n = c));
4116
+ let { $$slots: i = {}, $$scope: a } = t, { assetsurl: o = "" } = t, { lang: s = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { mbsource: m = "" } = t, d;
4121
4117
  const p = () => {
4122
- pi(a);
4118
+ di(s);
4123
4119
  }, v = () => {
4124
4120
  fetch(f).then((g) => g.json()).then((g) => {
4125
- Object.keys(g).forEach((A) => {
4126
- ft(A, g[A]);
4121
+ Object.keys(g).forEach((S) => {
4122
+ ft(S, g[S]);
4127
4123
  });
4128
4124
  }).catch((g) => {
4129
4125
  console.error(g);
@@ -4135,45 +4131,45 @@ function wi(e, t, r) {
4135
4131
  const T = () => {
4136
4132
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4137
4133
  };
4138
- ar(() => () => {
4134
+ sr(() => () => {
4139
4135
  });
4140
4136
  function x(c) {
4141
- Le[c ? "unshift" : "push"](() => {
4137
+ Ce[c ? "unshift" : "push"](() => {
4142
4138
  d = c, r(2, d);
4143
4139
  });
4144
4140
  }
4145
4141
  return e.$$set = (c) => {
4146
- "assetsurl" in c && r(0, s = c.assetsurl), "lang" in c && r(5, a = c.lang), "errorcode" in c && r(1, h = c.errorcode), "clientstyling" in c && r(6, u = c.clientstyling), "clientstylingurl" in c && r(7, l = c.clientstylingurl), "translationurl" in c && r(8, f = c.translationurl), "mbsource" in c && r(9, m = c.mbsource), "$$scope" in c && r(10, o = c.$$scope);
4142
+ "assetsurl" in c && r(0, o = c.assetsurl), "lang" in c && r(5, s = c.lang), "errorcode" in c && r(1, h = c.errorcode), "clientstyling" in c && r(6, u = c.clientstyling), "clientstylingurl" in c && r(7, l = c.clientstylingurl), "translationurl" in c && r(8, f = c.translationurl), "mbsource" in c && r(9, m = c.mbsource), "$$scope" in c && r(10, a = c.$$scope);
4147
4143
  }, e.$$.update = () => {
4148
4144
  e.$$.dirty & /*lang*/
4149
- 32 && a && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4145
+ 32 && s && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4150
4146
  68 && u && d && Er(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4151
4147
  132 && l && d && vr(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4152
4148
  516 && m && d && xr(d, `${m}.Style`), e.$$.dirty & /*translationurl*/
4153
4149
  256 && f && v();
4154
4150
  }, [
4155
- s,
4151
+ o,
4156
4152
  h,
4157
4153
  d,
4158
4154
  n,
4159
4155
  T,
4160
- a,
4156
+ s,
4161
4157
  u,
4162
4158
  l,
4163
4159
  f,
4164
4160
  m,
4165
- o,
4161
+ a,
4166
4162
  i,
4167
4163
  x
4168
4164
  ];
4169
4165
  }
4170
- class Si extends yr {
4166
+ class wi extends yr {
4171
4167
  constructor(t) {
4172
4168
  super(), br(
4173
4169
  this,
4174
4170
  t,
4175
- wi,
4176
4171
  Hi,
4172
+ Ti,
4177
4173
  Et,
4178
4174
  {
4179
4175
  assetsurl: 0,
@@ -4184,53 +4180,53 @@ class Si extends yr {
4184
4180
  translationurl: 8,
4185
4181
  mbsource: 9
4186
4182
  },
4187
- bi
4183
+ pi
4188
4184
  );
4189
4185
  }
4190
4186
  get assetsurl() {
4191
4187
  return this.$$.ctx[0];
4192
4188
  }
4193
4189
  set assetsurl(t) {
4194
- this.$$set({ assetsurl: t }), S();
4190
+ this.$$set({ assetsurl: t }), w();
4195
4191
  }
4196
4192
  get lang() {
4197
4193
  return this.$$.ctx[5];
4198
4194
  }
4199
4195
  set lang(t) {
4200
- this.$$set({ lang: t }), S();
4196
+ this.$$set({ lang: t }), w();
4201
4197
  }
4202
4198
  get errorcode() {
4203
4199
  return this.$$.ctx[1];
4204
4200
  }
4205
4201
  set errorcode(t) {
4206
- this.$$set({ errorcode: t }), S();
4202
+ this.$$set({ errorcode: t }), w();
4207
4203
  }
4208
4204
  get clientstyling() {
4209
4205
  return this.$$.ctx[6];
4210
4206
  }
4211
4207
  set clientstyling(t) {
4212
- this.$$set({ clientstyling: t }), S();
4208
+ this.$$set({ clientstyling: t }), w();
4213
4209
  }
4214
4210
  get clientstylingurl() {
4215
4211
  return this.$$.ctx[7];
4216
4212
  }
4217
4213
  set clientstylingurl(t) {
4218
- this.$$set({ clientstylingurl: t }), S();
4214
+ this.$$set({ clientstylingurl: t }), w();
4219
4215
  }
4220
4216
  get translationurl() {
4221
4217
  return this.$$.ctx[8];
4222
4218
  }
4223
4219
  set translationurl(t) {
4224
- this.$$set({ translationurl: t }), S();
4220
+ this.$$set({ translationurl: t }), w();
4225
4221
  }
4226
4222
  get mbsource() {
4227
4223
  return this.$$.ctx[9];
4228
4224
  }
4229
4225
  set mbsource(t) {
4230
- this.$$set({ mbsource: t }), S();
4226
+ this.$$set({ mbsource: t }), w();
4231
4227
  }
4232
4228
  }
4233
- gr(Si, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4229
+ gr(wi, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4234
4230
  export {
4235
- Si as C
4231
+ wi as C
4236
4232
  };