@everymatrix/player-account-product-restriction 1.76.0 → 1.76.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/components/{PlayerAccountGeneralConfirmationModal-B5YXlgy2.js → PlayerAccountGeneralConfirmationModal-CdayZyQN.js} +1374 -1409
  2. package/components/PlayerAccountGeneralConfirmationModal-CxQoiMM0.cjs +21 -0
  3. package/components/{PlayerAccountGeneralConfirmationModal-2ovv4Md_.js → PlayerAccountGeneralConfirmationModal-DHhULFrg.js} +915 -950
  4. package/components/{PlayerAccountModal-h55amKkM.js → PlayerAccountModal-606jJf8b.js} +17 -17
  5. package/components/{PlayerAccountModal-Bj4WVhh1.cjs → PlayerAccountModal-CawVD9Xq.cjs} +1 -1
  6. package/components/{PlayerAccountModal-DVL1hHz_.js → PlayerAccountModal-K8N-hYP_.js} +18 -18
  7. package/components/{PlayerAccountProductRestriction-BEPc9MzF.js → PlayerAccountProductRestriction-6eWyBNib.js} +4423 -9493
  8. package/components/PlayerAccountProductRestriction-Cp_082PL.cjs +6061 -0
  9. package/components/{PlayerAccountProductRestriction-DmOQxhUj.js → PlayerAccountProductRestriction-tPTxtHxX.js} +4395 -9465
  10. package/es2015/player-account-product-restriction.cjs +1 -1
  11. package/es2015/player-account-product-restriction.js +1 -1
  12. package/esnext/player-account-product-restriction.js +1 -1
  13. package/package.json +1 -1
  14. package/stencil/index-b2193545-BbCeNxUG.js +519 -0
  15. package/stencil/index-b2193545-C9PH-6qK.js +503 -0
  16. package/stencil/index-b2193545-D-u-gzj3.cjs +1 -0
  17. package/stencil/{ui-skeleton-hI4GeaLk.js → ui-skeleton-BKDs0-7H.js} +2 -2
  18. package/stencil/{ui-skeleton-Ca5rz3Hv.js → ui-skeleton-CJbkvgG7.js} +2 -2
  19. package/stencil/{ui-skeleton-ae35c6f2-xLf3HyeB.cjs → ui-skeleton-ae35c6f2-CXlvqczG.cjs} +1 -1
  20. package/stencil/{ui-skeleton-ae35c6f2-BDBUiN3S.js → ui-skeleton-ae35c6f2-ZB0isFAq.js} +1 -1
  21. package/stencil/{ui-skeleton-ae35c6f2-Cn0ZM_hs.js → ui-skeleton-ae35c6f2-gun6WX2F.js} +1 -1
  22. package/stencil/{ui-skeleton-BL4789dS.cjs → ui-skeleton-bhljBTS7.cjs} +1 -1
  23. package/components/PlayerAccountGeneralConfirmationModal-PCbzMqfA.cjs +0 -21
  24. package/components/PlayerAccountProductRestriction-mBykHBrS.cjs +0 -7968
  25. package/stencil/index-b2193545-BeKKnKhR.js +0 -519
  26. package/stencil/index-b2193545-HC0t7mHa.js +0 -503
  27. package/stencil/index-b2193545-YW9b062G.cjs +0 -1
@@ -1,85 +1,85 @@
1
- var Nr = Object.defineProperty, Lr = Object.defineProperties;
2
- var $r = Object.getOwnPropertyDescriptors;
3
- var mt = Object.getOwnPropertySymbols;
4
- var Rr = Object.prototype.hasOwnProperty, Gr = Object.prototype.propertyIsEnumerable;
5
- var Me = (e, t, r) => t in e ? Nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pt = (e, t) => {
6
- for (var r in t || (t = {}))
7
- Rr.call(t, r) && Me(e, r, t[r]);
8
- if (mt)
9
- for (var r of mt(t))
10
- Gr.call(t, r) && Me(e, r, t[r]);
1
+ var On = Object.defineProperty, In = Object.defineProperties;
2
+ var Mn = Object.getOwnPropertyDescriptors;
3
+ var lt = Object.getOwnPropertySymbols;
4
+ var Nn = Object.prototype.hasOwnProperty, Ln = Object.prototype.propertyIsEnumerable;
5
+ var Oe = (e, t, n) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ht = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ Nn.call(t, n) && Oe(e, n, t[n]);
8
+ if (lt)
9
+ for (var n of lt(t))
10
+ Ln.call(t, n) && Oe(e, n, t[n]);
11
11
  return e;
12
- }, dt = (e, t) => Lr(e, $r(t));
13
- var O = (e, t, r) => (Me(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var bt = (e, t, r) => new Promise((n, i) => {
12
+ }, ft = (e, t) => In(e, Mn(t));
13
+ var O = (e, t, n) => (Oe(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var ct = (e, t, n) => new Promise((r, i) => {
15
15
  var o = (l) => {
16
16
  try {
17
- a(r.next(l));
17
+ a(n.next(l));
18
18
  } catch (u) {
19
19
  i(u);
20
20
  }
21
21
  }, s = (l) => {
22
22
  try {
23
- a(r.throw(l));
23
+ a(n.throw(l));
24
24
  } catch (u) {
25
25
  i(u);
26
26
  }
27
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
- a((r = r.apply(e, t)).next());
27
+ }, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
28
+ a((n = n.apply(e, t)).next());
29
29
  });
30
30
  function N() {
31
31
  }
32
- const Ur = (e) => e;
33
- function Dr(e, t) {
34
- for (const r in t)
35
- e[r] = t[r];
32
+ const Rn = (e) => e;
33
+ function $n(e, t) {
34
+ for (const n in t)
35
+ e[n] = t[n];
36
36
  return (
37
37
  /** @type {T & S} */
38
38
  e
39
39
  );
40
40
  }
41
- function zt(e) {
41
+ function jt(e) {
42
42
  return e();
43
43
  }
44
- function gt() {
44
+ function dt() {
45
45
  return /* @__PURE__ */ Object.create(null);
46
46
  }
47
47
  function U(e) {
48
- e.forEach(zt);
48
+ e.forEach(jt);
49
49
  }
50
- function He(e) {
50
+ function Te(e) {
51
51
  return typeof e == "function";
52
52
  }
53
- function Wt(e, t) {
53
+ function kt(e, t) {
54
54
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
55
55
  }
56
- function Fr(e) {
56
+ function Gn(e) {
57
57
  return Object.keys(e).length === 0;
58
58
  }
59
- function Zt(e, ...t) {
59
+ function Vt(e, ...t) {
60
60
  if (e == null) {
61
- for (const n of t)
62
- n(void 0);
61
+ for (const r of t)
62
+ r(void 0);
63
63
  return N;
64
64
  }
65
- const r = e.subscribe(...t);
66
- return r.unsubscribe ? () => r.unsubscribe() : r;
65
+ const n = e.subscribe(...t);
66
+ return n.unsubscribe ? () => n.unsubscribe() : n;
67
67
  }
68
- function jr(e, t, r) {
69
- e.$$.on_destroy.push(Zt(t, r));
68
+ function Un(e, t, n) {
69
+ e.$$.on_destroy.push(Vt(t, n));
70
70
  }
71
- function kr(e, t, r, n) {
71
+ function Dn(e, t, n, r) {
72
72
  if (e) {
73
- const i = Qt(e, t, r, n);
73
+ const i = Xt(e, t, n, r);
74
74
  return e[0](i);
75
75
  }
76
76
  }
77
- function Qt(e, t, r, n) {
78
- return e[1] && n ? Dr(r.ctx.slice(), e[1](n(t))) : r.ctx;
77
+ function Xt(e, t, n, r) {
78
+ return e[1] && r ? $n(n.ctx.slice(), e[1](r(t))) : n.ctx;
79
79
  }
80
- function Vr(e, t, r, n) {
81
- if (e[2] && n) {
82
- const i = e[2](n(r));
80
+ function Fn(e, t, n, r) {
81
+ if (e[2] && r) {
82
+ const i = e[2](r(n));
83
83
  if (t.dirty === void 0)
84
84
  return i;
85
85
  if (typeof i == "object") {
@@ -92,34 +92,34 @@ function Vr(e, t, r, n) {
92
92
  }
93
93
  return t.dirty;
94
94
  }
95
- function Xr(e, t, r, n, i, o) {
95
+ function jn(e, t, n, r, i, o) {
96
96
  if (i) {
97
- const s = Qt(t, r, n, o);
97
+ const s = Xt(t, n, r, o);
98
98
  e.p(s, i);
99
99
  }
100
100
  }
101
- function zr(e) {
101
+ function kn(e) {
102
102
  if (e.ctx.length > 32) {
103
- const t = [], r = e.ctx.length / 32;
104
- for (let n = 0; n < r; n++)
105
- t[n] = -1;
103
+ const t = [], n = e.ctx.length / 32;
104
+ for (let r = 0; r < n; r++)
105
+ t[r] = -1;
106
106
  return t;
107
107
  }
108
108
  return -1;
109
109
  }
110
- const Jt = typeof window != "undefined";
111
- let Wr = Jt ? () => window.performance.now() : () => Date.now(), at = Jt ? (e) => requestAnimationFrame(e) : N;
110
+ const zt = typeof window != "undefined";
111
+ let Vn = zt ? () => window.performance.now() : () => Date.now(), nt = zt ? (e) => requestAnimationFrame(e) : N;
112
112
  const z = /* @__PURE__ */ new Set();
113
- function qt(e) {
113
+ function Wt(e) {
114
114
  z.forEach((t) => {
115
115
  t.c(e) || (z.delete(t), t.f());
116
- }), z.size !== 0 && at(qt);
116
+ }), z.size !== 0 && nt(Wt);
117
117
  }
118
- function Zr(e) {
118
+ function Xn(e) {
119
119
  let t;
120
- return z.size === 0 && at(qt), {
121
- promise: new Promise((r) => {
122
- z.add(t = { c: e, f: r });
120
+ return z.size === 0 && nt(Wt), {
121
+ promise: new Promise((n) => {
122
+ z.add(t = { c: e, f: n });
123
123
  }),
124
124
  abort() {
125
125
  z.delete(t);
@@ -129,14 +129,14 @@ function Zr(e) {
129
129
  function C(e, t) {
130
130
  e.appendChild(t);
131
131
  }
132
- function Qr(e, t, r) {
133
- const n = ut(e);
134
- if (!n.getElementById(t)) {
132
+ function zn(e, t, n) {
133
+ const r = rt(e);
134
+ if (!r.getElementById(t)) {
135
135
  const i = M("style");
136
- i.id = t, i.textContent = r, Yt(n, i);
136
+ i.id = t, i.textContent = n, Zt(r, i);
137
137
  }
138
138
  }
139
- function ut(e) {
139
+ function rt(e) {
140
140
  if (!e)
141
141
  return document;
142
142
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -146,295 +146,295 @@ function ut(e) {
146
146
  t
147
147
  ) : e.ownerDocument;
148
148
  }
149
- function Jr(e) {
149
+ function Wn(e) {
150
150
  const t = M("style");
151
- return t.textContent = "/* empty */", Yt(ut(e), t), t.sheet;
151
+ return t.textContent = "/* empty */", Zt(rt(e), t), t.sheet;
152
152
  }
153
- function Yt(e, t) {
153
+ function Zt(e, t) {
154
154
  return C(
155
155
  /** @type {Document} */
156
156
  e.head || e,
157
157
  t
158
158
  ), t.sheet;
159
159
  }
160
- function ae(e, t, r) {
161
- e.insertBefore(t, r || null);
160
+ function ue(e, t, n) {
161
+ e.insertBefore(t, n || null);
162
162
  }
163
163
  function D(e) {
164
164
  e.parentNode && e.parentNode.removeChild(e);
165
165
  }
166
- function Lo(e, t) {
167
- for (let r = 0; r < e.length; r += 1)
168
- e[r] && e[r].d(t);
166
+ function Oo(e, t) {
167
+ for (let n = 0; n < e.length; n += 1)
168
+ e[n] && e[n].d(t);
169
169
  }
170
170
  function M(e) {
171
171
  return document.createElement(e);
172
172
  }
173
- function yt(e) {
173
+ function mt(e) {
174
174
  return document.createElementNS("http://www.w3.org/2000/svg", e);
175
175
  }
176
- function ue(e) {
176
+ function le(e) {
177
177
  return document.createTextNode(e);
178
178
  }
179
- function fe() {
180
- return ue(" ");
179
+ function ce() {
180
+ return le(" ");
181
181
  }
182
- function $o() {
183
- return ue("");
182
+ function Io() {
183
+ return le("");
184
184
  }
185
- function ke(e, t, r, n) {
186
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
185
+ function De(e, t, n, r) {
186
+ return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
187
187
  }
188
- function H(e, t, r) {
189
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
188
+ function T(e, t, n) {
189
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
190
190
  }
191
- function Ro(e, t, r) {
192
- const n = t.toLowerCase();
193
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
191
+ function Mo(e, t, n) {
192
+ const r = t.toLowerCase();
193
+ r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : T(e, t, n);
194
194
  }
195
- function qr(e) {
195
+ function Zn(e) {
196
196
  return Array.from(e.childNodes);
197
197
  }
198
- function lt(e, t) {
198
+ function it(e, t) {
199
199
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
200
200
  t);
201
201
  }
202
- function Go(e, t, r) {
203
- e.classList.toggle(t, !!r);
202
+ function No(e, t, n) {
203
+ e.classList.toggle(t, !!n);
204
204
  }
205
- function Yr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
206
- return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
205
+ function Qn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
206
+ return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
207
207
  }
208
- function Kr(e) {
208
+ function Jn(e) {
209
209
  const t = {};
210
210
  return e.childNodes.forEach(
211
211
  /** @param {Element} node */
212
- (r) => {
213
- t[r.slot || "default"] = !0;
212
+ (n) => {
213
+ t[n.slot || "default"] = !0;
214
214
  }
215
215
  ), t;
216
216
  }
217
217
  const _e = /* @__PURE__ */ new Map();
218
218
  let xe = 0;
219
- function en(e) {
220
- let t = 5381, r = e.length;
221
- for (; r--; )
222
- t = (t << 5) - t ^ e.charCodeAt(r);
219
+ function qn(e) {
220
+ let t = 5381, n = e.length;
221
+ for (; n--; )
222
+ t = (t << 5) - t ^ e.charCodeAt(n);
223
223
  return t >>> 0;
224
224
  }
225
- function tn(e, t) {
226
- const r = { stylesheet: Jr(t), rules: {} };
227
- return _e.set(e, r), r;
225
+ function Yn(e, t) {
226
+ const n = { stylesheet: Wn(t), rules: {} };
227
+ return _e.set(e, n), n;
228
228
  }
229
- function vt(e, t, r, n, i, o, s, a = 0) {
230
- const l = 16.666 / n;
229
+ function pt(e, t, n, r, i, o, s, a = 0) {
230
+ const l = 16.666 / r;
231
231
  let u = `{
232
232
  `;
233
233
  for (let g = 0; g <= 1; g += l) {
234
- const A = t + (r - t) * o(g);
235
- u += g * 100 + `%{${s(A, 1 - A)}}
234
+ const H = t + (n - t) * o(g);
235
+ u += g * 100 + `%{${s(H, 1 - H)}}
236
236
  `;
237
237
  }
238
- const h = u + `100% {${s(r, 1 - r)}}
239
- }`, c = `__svelte_${en(h)}_${a}`, f = ut(e), { stylesheet: p, rules: m } = _e.get(f) || tn(f, e);
240
- m[c] || (m[c] = !0, p.insertRule(`@keyframes ${c} ${h}`, p.cssRules.length));
241
- const d = e.style.animation || "";
242
- return e.style.animation = `${d ? `${d}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, xe += 1, c;
243
- }
244
- function rn(e, t) {
245
- const r = (e.style.animation || "").split(", "), n = r.filter(
238
+ const h = u + `100% {${s(n, 1 - n)}}
239
+ }`, f = `__svelte_${qn(h)}_${a}`, c = rt(e), { stylesheet: m, rules: d } = _e.get(c) || Yn(c, e);
240
+ d[f] || (d[f] = !0, m.insertRule(`@keyframes ${f} ${h}`, m.cssRules.length));
241
+ const p = e.style.animation || "";
242
+ return e.style.animation = `${p ? `${p}, ` : ""}${f} ${r}ms linear ${i}ms 1 both`, xe += 1, f;
243
+ }
244
+ function Kn(e, t) {
245
+ const n = (e.style.animation || "").split(", "), r = n.filter(
246
246
  t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
247
247
  // remove all Svelte animations
248
- ), i = r.length - n.length;
249
- i && (e.style.animation = n.join(", "), xe -= i, xe || nn());
248
+ ), i = n.length - r.length;
249
+ i && (e.style.animation = r.join(", "), xe -= i, xe || er());
250
250
  }
251
- function nn() {
252
- at(() => {
251
+ function er() {
252
+ nt(() => {
253
253
  xe || (_e.forEach((e) => {
254
254
  const { ownerNode: t } = e.stylesheet;
255
255
  t && D(t);
256
256
  }), _e.clear());
257
257
  });
258
258
  }
259
- let ie;
260
- function ne(e) {
261
- ie = e;
259
+ let oe;
260
+ function ie(e) {
261
+ oe = e;
262
262
  }
263
- function on() {
264
- if (!ie)
263
+ function tr() {
264
+ if (!oe)
265
265
  throw new Error("Function called outside component initialization");
266
- return ie;
266
+ return oe;
267
267
  }
268
- function sn(e) {
269
- on().$$.on_mount.push(e);
268
+ function nr(e) {
269
+ tr().$$.on_mount.push(e);
270
270
  }
271
- const X = [], Ve = [];
271
+ const X = [], Fe = [];
272
272
  let W = [];
273
- const _t = [], an = /* @__PURE__ */ Promise.resolve();
274
- let Xe = !1;
275
- function un() {
276
- Xe || (Xe = !0, an.then(I));
273
+ const bt = [], rr = /* @__PURE__ */ Promise.resolve();
274
+ let je = !1;
275
+ function ir() {
276
+ je || (je = !0, rr.then(I));
277
277
  }
278
278
  function Ee(e) {
279
279
  W.push(e);
280
280
  }
281
- const Ne = /* @__PURE__ */ new Set();
281
+ const Ie = /* @__PURE__ */ new Set();
282
282
  let k = 0;
283
283
  function I() {
284
284
  if (k !== 0)
285
285
  return;
286
- const e = ie;
286
+ const e = oe;
287
287
  do {
288
288
  try {
289
289
  for (; k < X.length; ) {
290
290
  const t = X[k];
291
- k++, ne(t), ln(t.$$);
291
+ k++, ie(t), or(t.$$);
292
292
  }
293
293
  } catch (t) {
294
294
  throw X.length = 0, k = 0, t;
295
295
  }
296
- for (ne(null), X.length = 0, k = 0; Ve.length; )
297
- Ve.pop()();
296
+ for (ie(null), X.length = 0, k = 0; Fe.length; )
297
+ Fe.pop()();
298
298
  for (let t = 0; t < W.length; t += 1) {
299
- const r = W[t];
300
- Ne.has(r) || (Ne.add(r), r());
299
+ const n = W[t];
300
+ Ie.has(n) || (Ie.add(n), n());
301
301
  }
302
302
  W.length = 0;
303
303
  } while (X.length);
304
- for (; _t.length; )
305
- _t.pop()();
306
- Xe = !1, Ne.clear(), ne(e);
304
+ for (; bt.length; )
305
+ bt.pop()();
306
+ je = !1, Ie.clear(), ie(e);
307
307
  }
308
- function ln(e) {
308
+ function or(e) {
309
309
  if (e.fragment !== null) {
310
310
  e.update(), U(e.before_update);
311
311
  const t = e.dirty;
312
312
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ee);
313
313
  }
314
314
  }
315
- function hn(e) {
316
- const t = [], r = [];
317
- W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
318
- }
319
- let te;
320
- function cn() {
321
- return te || (te = Promise.resolve(), te.then(() => {
322
- te = null;
323
- })), te;
324
- }
325
- function Le(e, t, r) {
326
- e.dispatchEvent(Yr(`${t ? "intro" : "outro"}${r}`));
327
- }
328
- const de = /* @__PURE__ */ new Set();
329
- let $;
330
- function Uo() {
331
- $ = {
315
+ function sr(e) {
316
+ const t = [], n = [];
317
+ W.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), W = t;
318
+ }
319
+ let ne;
320
+ function ar() {
321
+ return ne || (ne = Promise.resolve(), ne.then(() => {
322
+ ne = null;
323
+ })), ne;
324
+ }
325
+ function Me(e, t, n) {
326
+ e.dispatchEvent(Qn(`${t ? "intro" : "outro"}${n}`));
327
+ }
328
+ const pe = /* @__PURE__ */ new Set();
329
+ let L;
330
+ function Lo() {
331
+ L = {
332
332
  r: 0,
333
333
  c: [],
334
- p: $
334
+ p: L
335
335
  // parent group
336
336
  };
337
337
  }
338
- function Do() {
339
- $.r || U($.c), $ = $.p;
338
+ function Ro() {
339
+ L.r || U(L.c), L = L.p;
340
340
  }
341
- function Kt(e, t) {
342
- e && e.i && (de.delete(e), e.i(t));
341
+ function Qt(e, t) {
342
+ e && e.i && (pe.delete(e), e.i(t));
343
343
  }
344
- function fn(e, t, r, n) {
344
+ function ur(e, t, n, r) {
345
345
  if (e && e.o) {
346
- if (de.has(e))
346
+ if (pe.has(e))
347
347
  return;
348
- de.add(e), $.c.push(() => {
349
- de.delete(e), n && (r && e.d(1), n());
348
+ pe.add(e), L.c.push(() => {
349
+ pe.delete(e), r && (n && e.d(1), r());
350
350
  }), e.o(t);
351
351
  } else
352
- n && n();
352
+ r && r();
353
353
  }
354
- const mn = { duration: 0 };
355
- function Fo(e, t, r, n) {
356
- let o = t(e, r, { direction: "both" }), s = n ? 0 : 1, a = null, l = null, u = null, h;
357
- function c() {
358
- u && rn(e, u);
354
+ const lr = { duration: 0 };
355
+ function $o(e, t, n, r) {
356
+ let o = t(e, n, { direction: "both" }), s = r ? 0 : 1, a = null, l = null, u = null, h;
357
+ function f() {
358
+ u && Kn(e, u);
359
359
  }
360
- function f(m, d) {
360
+ function c(d, p) {
361
361
  const g = (
362
362
  /** @type {Program['d']} */
363
- m.b - s
363
+ d.b - s
364
364
  );
365
- return d *= Math.abs(g), {
365
+ return p *= Math.abs(g), {
366
366
  a: s,
367
- b: m.b,
367
+ b: d.b,
368
368
  d: g,
369
- duration: d,
370
- start: m.start,
371
- end: m.start + d,
372
- group: m.group
369
+ duration: p,
370
+ start: d.start,
371
+ end: d.start + p,
372
+ group: d.group
373
373
  };
374
374
  }
375
- function p(m) {
375
+ function m(d) {
376
376
  const {
377
- delay: d = 0,
377
+ delay: p = 0,
378
378
  duration: g = 300,
379
- easing: A = Ur,
380
- tick: T = N,
379
+ easing: H = Rn,
380
+ tick: A = N,
381
381
  css: x
382
- } = o || mn, E = {
383
- start: Wr() + d,
384
- b: m
382
+ } = o || lr, w = {
383
+ start: Vn() + p,
384
+ b: d
385
385
  };
386
- m || (E.group = $, $.r += 1), "inert" in e && (m ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
387
- e.inert, e.inert = !0)), a || l ? l = E : (x && (c(), u = vt(e, s, m, g, d, A, x)), m && T(0, 1), a = f(E, g), Ee(() => Le(e, m, "start")), Zr((b) => {
388
- if (l && b > l.start && (a = f(l, g), l = null, Le(e, a.b, "start"), x && (c(), u = vt(
386
+ d || (w.group = L, L.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
387
+ e.inert, e.inert = !0)), a || l ? l = w : (x && (f(), u = pt(e, s, d, g, p, H, x)), d && A(0, 1), a = c(w, g), Ee(() => Me(e, d, "start")), Xn((b) => {
388
+ if (l && b > l.start && (a = c(l, g), l = null, Me(e, a.b, "start"), x && (f(), u = pt(
389
389
  e,
390
390
  s,
391
391
  a.b,
392
392
  a.duration,
393
393
  0,
394
- A,
394
+ H,
395
395
  o.css
396
396
  ))), a) {
397
397
  if (b >= a.end)
398
- T(s = a.b, 1 - s), Le(e, a.b, "end"), l || (a.b ? c() : --a.group.r || U(a.group.c)), a = null;
398
+ A(s = a.b, 1 - s), Me(e, a.b, "end"), l || (a.b ? f() : --a.group.r || U(a.group.c)), a = null;
399
399
  else if (b >= a.start) {
400
400
  const B = b - a.start;
401
- s = a.a + a.d * A(B / a.duration), T(s, 1 - s);
401
+ s = a.a + a.d * H(B / a.duration), A(s, 1 - s);
402
402
  }
403
403
  }
404
404
  return !!(a || l);
405
405
  }));
406
406
  }
407
407
  return {
408
- run(m) {
409
- He(o) ? cn().then(() => {
410
- o = o({ direction: m ? "in" : "out" }), p(m);
411
- }) : p(m);
408
+ run(d) {
409
+ Te(o) ? ar().then(() => {
410
+ o = o({ direction: d ? "in" : "out" }), m(d);
411
+ }) : m(d);
412
412
  },
413
413
  end() {
414
- c(), a = l = null;
414
+ f(), a = l = null;
415
415
  }
416
416
  };
417
417
  }
418
- function jo(e) {
418
+ function Go(e) {
419
419
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
420
420
  }
421
- function pn(e, t, r) {
422
- const { fragment: n, after_update: i } = e.$$;
423
- n && n.m(t, r), Ee(() => {
424
- const o = e.$$.on_mount.map(zt).filter(He);
421
+ function hr(e, t, n) {
422
+ const { fragment: r, after_update: i } = e.$$;
423
+ r && r.m(t, n), Ee(() => {
424
+ const o = e.$$.on_mount.map(jt).filter(Te);
425
425
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : U(o), e.$$.on_mount = [];
426
426
  }), i.forEach(Ee);
427
427
  }
428
- function dn(e, t) {
429
- const r = e.$$;
430
- r.fragment !== null && (hn(r.after_update), U(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
428
+ function fr(e, t) {
429
+ const n = e.$$;
430
+ n.fragment !== null && (sr(n.after_update), U(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
431
431
  }
432
- function bn(e, t) {
433
- e.$$.dirty[0] === -1 && (X.push(e), un(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
432
+ function cr(e, t) {
433
+ e.$$.dirty[0] === -1 && (X.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
434
434
  }
435
- function gn(e, t, r, n, i, o, s = null, a = [-1]) {
436
- const l = ie;
437
- ne(e);
435
+ function dr(e, t, n, r, i, o, s = null, a = [-1]) {
436
+ const l = oe;
437
+ ie(e);
438
438
  const u = e.$$ = {
439
439
  fragment: null,
440
440
  ctx: [],
@@ -442,7 +442,7 @@ function gn(e, t, r, n, i, o, s = null, a = [-1]) {
442
442
  props: o,
443
443
  update: N,
444
444
  not_equal: i,
445
- bound: gt(),
445
+ bound: dt(),
446
446
  // lifecycle
447
447
  on_mount: [],
448
448
  on_destroy: [],
@@ -451,29 +451,29 @@ function gn(e, t, r, n, i, o, s = null, a = [-1]) {
451
451
  after_update: [],
452
452
  context: new Map(t.context || (l ? l.$$.context : [])),
453
453
  // everything else
454
- callbacks: gt(),
454
+ callbacks: dt(),
455
455
  dirty: a,
456
456
  skip_bound: !1,
457
457
  root: t.target || l.$$.root
458
458
  };
459
459
  s && s(u.root);
460
460
  let h = !1;
461
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
462
- const m = p.length ? p[0] : f;
463
- return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && bn(e, c)), f;
464
- }) : [], u.update(), h = !0, U(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
461
+ if (u.ctx = n ? n(e, t.props || {}, (f, c, ...m) => {
462
+ const d = m.length ? m[0] : c;
463
+ return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && cr(e, f)), c;
464
+ }) : [], u.update(), h = !0, U(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
465
465
  if (t.hydrate) {
466
- const c = qr(t.target);
467
- u.fragment && u.fragment.l(c), c.forEach(D);
466
+ const f = Zn(t.target);
467
+ u.fragment && u.fragment.l(f), f.forEach(D);
468
468
  } else
469
469
  u.fragment && u.fragment.c();
470
- t.intro && Kt(e.$$.fragment), pn(e, t.target, t.anchor), I();
470
+ t.intro && Qt(e.$$.fragment), hr(e, t.target, t.anchor), I();
471
471
  }
472
- ne(l);
472
+ ie(l);
473
473
  }
474
- let er;
475
- typeof HTMLElement == "function" && (er = class extends HTMLElement {
476
- constructor(t, r, n) {
474
+ let Jt;
475
+ typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
476
+ constructor(t, n, r) {
477
477
  super();
478
478
  /** The Svelte component constructor */
479
479
  O(this, "$$ctor");
@@ -493,37 +493,37 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
493
493
  O(this, "$$l", {});
494
494
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
495
495
  O(this, "$$l_u", /* @__PURE__ */ new Map());
496
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
496
+ this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
497
497
  }
498
- addEventListener(t, r, n) {
499
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
500
- const i = this.$$c.$on(t, r);
501
- this.$$l_u.set(r, i);
498
+ addEventListener(t, n, r) {
499
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
500
+ const i = this.$$c.$on(t, n);
501
+ this.$$l_u.set(n, i);
502
502
  }
503
- super.addEventListener(t, r, n);
503
+ super.addEventListener(t, n, r);
504
504
  }
505
- removeEventListener(t, r, n) {
506
- if (super.removeEventListener(t, r, n), this.$$c) {
507
- const i = this.$$l_u.get(r);
508
- i && (i(), this.$$l_u.delete(r));
505
+ removeEventListener(t, n, r) {
506
+ if (super.removeEventListener(t, n, r), this.$$c) {
507
+ const i = this.$$l_u.get(n);
508
+ i && (i(), this.$$l_u.delete(n));
509
509
  }
510
510
  }
511
511
  connectedCallback() {
512
- return bt(this, null, function* () {
512
+ return ct(this, null, function* () {
513
513
  if (this.$$cn = !0, !this.$$c) {
514
514
  let t = function(o) {
515
515
  return () => {
516
516
  let s;
517
517
  return {
518
518
  c: function() {
519
- s = M("slot"), o !== "default" && H(s, "name", o);
519
+ s = M("slot"), o !== "default" && T(s, "name", o);
520
520
  },
521
521
  /**
522
522
  * @param {HTMLElement} target
523
523
  * @param {HTMLElement} [anchor]
524
524
  */
525
525
  m: function(u, h) {
526
- ae(u, s, h);
526
+ ue(u, s, h);
527
527
  },
528
528
  d: function(u) {
529
529
  u && D(s);
@@ -533,9 +533,9 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
533
533
  };
534
534
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
535
535
  return;
536
- const r = {}, n = Kr(this);
536
+ const n = {}, r = Jn(this);
537
537
  for (const o of this.$$s)
538
- o in n && (r[o] = [t(o)]);
538
+ o in r && (n[o] = [t(o)]);
539
539
  for (const o of this.attributes) {
540
540
  const s = this.$$g_p(o.name);
541
541
  s in this.$$d || (this.$$d[s] = be(s, o.value, this.$$p_d, "toProp"));
@@ -544,8 +544,8 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
544
544
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
545
545
  this.$$c = new this.$$ctor({
546
546
  target: this.shadowRoot || this,
547
- props: dt(pt({}, this.$$d), {
548
- $$slots: r,
547
+ props: ft(ht({}, this.$$d), {
548
+ $$slots: n,
549
549
  $$scope: {
550
550
  ctx: []
551
551
  }
@@ -577,9 +577,9 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
577
577
  }
578
578
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
579
579
  // and setting attributes through setAttribute etc, this is helpful
580
- attributeChangedCallback(t, r, n) {
580
+ attributeChangedCallback(t, n, r) {
581
581
  var i;
582
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = be(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
582
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = be(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
583
583
  }
584
584
  disconnectedCallback() {
585
585
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -588,16 +588,16 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
588
588
  }
589
589
  $$g_p(t) {
590
590
  return Object.keys(this.$$p_d).find(
591
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
591
+ (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
592
592
  ) || t;
593
593
  }
594
594
  });
595
- function be(e, t, r, n) {
595
+ function be(e, t, n, r) {
596
596
  var o;
597
- const i = (o = r[e]) == null ? void 0 : o.type;
598
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
597
+ const i = (o = n[e]) == null ? void 0 : o.type;
598
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
599
599
  return t;
600
- if (n === "toAttribute")
600
+ if (r === "toAttribute")
601
601
  switch (i) {
602
602
  case "Object":
603
603
  case "Array":
@@ -622,10 +622,10 @@ function be(e, t, r, n) {
622
622
  return t;
623
623
  }
624
624
  }
625
- function yn(e, t, r, n, i, o) {
626
- let s = class extends er {
625
+ function mr(e, t, n, r, i, o) {
626
+ let s = class extends Jt {
627
627
  constructor() {
628
- super(e, r, i), this.$$p_d = t;
628
+ super(e, n, i), this.$$p_d = t;
629
629
  }
630
630
  static get observedAttributes() {
631
631
  return Object.keys(t).map(
@@ -643,7 +643,7 @@ function yn(e, t, r, n, i, o) {
643
643
  l = be(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
644
644
  }
645
645
  });
646
- }), n.forEach((a) => {
646
+ }), r.forEach((a) => {
647
647
  Object.defineProperty(s.prototype, a, {
648
648
  get() {
649
649
  var l;
@@ -653,7 +653,7 @@ function yn(e, t, r, n, i, o) {
653
653
  }), e.element = /** @type {any} */
654
654
  s, s;
655
655
  }
656
- class vn {
656
+ class pr {
657
657
  constructor() {
658
658
  /**
659
659
  * ### PRIVATE API
@@ -674,7 +674,7 @@ class vn {
674
674
  }
675
675
  /** @returns {void} */
676
676
  $destroy() {
677
- dn(this, 1), this.$destroy = N;
677
+ fr(this, 1), this.$destroy = N;
678
678
  }
679
679
  /**
680
680
  * @template {Extract<keyof Events, string>} K
@@ -682,13 +682,13 @@ class vn {
682
682
  * @param {((e: Events[K]) => void) | null | undefined} callback
683
683
  * @returns {() => void}
684
684
  */
685
- $on(t, r) {
686
- if (!He(r))
685
+ $on(t, n) {
686
+ if (!Te(n))
687
687
  return N;
688
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
689
- return n.push(r), () => {
690
- const i = n.indexOf(r);
691
- i !== -1 && n.splice(i, 1);
688
+ const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
689
+ return r.push(n), () => {
690
+ const i = r.indexOf(n);
691
+ i !== -1 && r.splice(i, 1);
692
692
  };
693
693
  }
694
694
  /**
@@ -696,11 +696,11 @@ class vn {
696
696
  * @returns {void}
697
697
  */
698
698
  $set(t) {
699
- this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
699
+ this.$$set && !Gn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
700
700
  }
701
701
  }
702
- const _n = "4";
703
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_n);
702
+ const br = "4";
703
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(br);
704
704
  /*! *****************************************************************************
705
705
  Copyright (c) Microsoft Corporation.
706
706
 
@@ -715,48 +715,67 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
715
715
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
716
716
  PERFORMANCE OF THIS SOFTWARE.
717
717
  ***************************************************************************** */
718
- var ze = function(e, t) {
719
- return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
720
- r.__proto__ = n;
721
- } || function(r, n) {
722
- for (var i in n)
723
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
724
- }, ze(e, t);
718
+ var ke = function(e, t) {
719
+ return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
720
+ n.__proto__ = r;
721
+ } || function(n, r) {
722
+ for (var i in r)
723
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
724
+ }, ke(e, t);
725
725
  };
726
- function le(e, t) {
726
+ function $(e, t) {
727
727
  if (typeof t != "function" && t !== null)
728
728
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
729
- ze(e, t);
730
- function r() {
729
+ ke(e, t);
730
+ function n() {
731
731
  this.constructor = e;
732
732
  }
733
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
733
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
734
+ }
735
+ var E = function() {
736
+ return E = Object.assign || function(t) {
737
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
738
+ n = arguments[r];
739
+ for (var o in n)
740
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
741
+ }
742
+ return t;
743
+ }, E.apply(this, arguments);
744
+ };
745
+ function gr(e, t) {
746
+ var n = {};
747
+ for (var r in e)
748
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
749
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
750
+ for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
751
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
752
+ return n;
734
753
  }
735
- function We(e) {
736
- var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
737
- if (r)
738
- return r.call(e);
754
+ function Ve(e) {
755
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
756
+ if (n)
757
+ return n.call(e);
739
758
  if (e && typeof e.length == "number")
740
759
  return {
741
760
  next: function() {
742
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
761
+ return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
743
762
  }
744
763
  };
745
764
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
746
765
  }
747
- function Ze(e, t) {
748
- var r = typeof Symbol == "function" && e[Symbol.iterator];
749
- if (!r)
766
+ function Xe(e, t) {
767
+ var n = typeof Symbol == "function" && e[Symbol.iterator];
768
+ if (!n)
750
769
  return e;
751
- var n = r.call(e), i, o = [], s;
770
+ var r = n.call(e), i, o = [], s;
752
771
  try {
753
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
772
+ for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
754
773
  o.push(i.value);
755
774
  } catch (a) {
756
775
  s = { error: a };
757
776
  } finally {
758
777
  try {
759
- i && !i.done && (r = n.return) && r.call(n);
778
+ i && !i.done && (n = r.return) && n.call(r);
760
779
  } finally {
761
780
  if (s)
762
781
  throw s.error;
@@ -764,57 +783,57 @@ function Ze(e, t) {
764
783
  }
765
784
  return o;
766
785
  }
767
- function Qe(e, t, r) {
768
- if (arguments.length === 2)
769
- for (var n = 0, i = t.length, o; n < i; n++)
770
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
786
+ function Z(e, t, n) {
787
+ if (n || arguments.length === 2)
788
+ for (var r = 0, i = t.length, o; r < i; r++)
789
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
771
790
  return e.concat(o || t);
772
791
  }
773
792
  function R(e) {
774
793
  return typeof e == "function";
775
794
  }
776
- function tr(e) {
777
- var t = function(n) {
778
- Error.call(n), n.stack = new Error().stack;
779
- }, r = e(t);
780
- return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
781
- }
782
- var $e = tr(function(e) {
783
- return function(r) {
784
- e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
785
- ` + r.map(function(n, i) {
786
- return i + 1 + ") " + n.toString();
795
+ function qt(e) {
796
+ var t = function(r) {
797
+ Error.call(r), r.stack = new Error().stack;
798
+ }, n = e(t);
799
+ return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
800
+ }
801
+ var Ne = qt(function(e) {
802
+ return function(n) {
803
+ e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
804
+ ` + n.map(function(r, i) {
805
+ return i + 1 + ") " + r.toString();
787
806
  }).join(`
788
- `) : "", this.name = "UnsubscriptionError", this.errors = r;
807
+ `) : "", this.name = "UnsubscriptionError", this.errors = n;
789
808
  };
790
809
  });
791
- function Je(e, t) {
810
+ function ze(e, t) {
792
811
  if (e) {
793
- var r = e.indexOf(t);
794
- 0 <= r && e.splice(r, 1);
812
+ var n = e.indexOf(t);
813
+ 0 <= n && e.splice(n, 1);
795
814
  }
796
815
  }
797
- var Ae = function() {
816
+ var He = function() {
798
817
  function e(t) {
799
818
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
800
819
  }
801
820
  return e.prototype.unsubscribe = function() {
802
- var t, r, n, i, o;
821
+ var t, n, r, i, o;
803
822
  if (!this.closed) {
804
823
  this.closed = !0;
805
824
  var s = this._parentage;
806
825
  if (s)
807
826
  if (this._parentage = null, Array.isArray(s))
808
827
  try {
809
- for (var a = We(s), l = a.next(); !l.done; l = a.next()) {
828
+ for (var a = Ve(s), l = a.next(); !l.done; l = a.next()) {
810
829
  var u = l.value;
811
830
  u.remove(this);
812
831
  }
813
- } catch (d) {
814
- t = { error: d };
832
+ } catch (p) {
833
+ t = { error: p };
815
834
  } finally {
816
835
  try {
817
- l && !l.done && (r = a.return) && r.call(a);
836
+ l && !l.done && (n = a.return) && n.call(a);
818
837
  } finally {
819
838
  if (t)
820
839
  throw t.error;
@@ -826,115 +845,119 @@ var Ae = function() {
826
845
  if (R(h))
827
846
  try {
828
847
  h();
829
- } catch (d) {
830
- o = d instanceof $e ? d.errors : [d];
848
+ } catch (p) {
849
+ o = p instanceof Ne ? p.errors : [p];
831
850
  }
832
- var c = this._finalizers;
833
- if (c) {
851
+ var f = this._finalizers;
852
+ if (f) {
834
853
  this._finalizers = null;
835
854
  try {
836
- for (var f = We(c), p = f.next(); !p.done; p = f.next()) {
837
- var m = p.value;
855
+ for (var c = Ve(f), m = c.next(); !m.done; m = c.next()) {
856
+ var d = m.value;
838
857
  try {
839
- xt(m);
840
- } catch (d) {
841
- o = o != null ? o : [], d instanceof $e ? o = Qe(Qe([], Ze(o)), Ze(d.errors)) : o.push(d);
858
+ gt(d);
859
+ } catch (p) {
860
+ o = o != null ? o : [], p instanceof Ne ? o = Z(Z([], Xe(o)), Xe(p.errors)) : o.push(p);
842
861
  }
843
862
  }
844
- } catch (d) {
845
- n = { error: d };
863
+ } catch (p) {
864
+ r = { error: p };
846
865
  } finally {
847
866
  try {
848
- p && !p.done && (i = f.return) && i.call(f);
867
+ m && !m.done && (i = c.return) && i.call(c);
849
868
  } finally {
850
- if (n)
851
- throw n.error;
869
+ if (r)
870
+ throw r.error;
852
871
  }
853
872
  }
854
873
  }
855
874
  if (o)
856
- throw new $e(o);
875
+ throw new Ne(o);
857
876
  }
858
877
  }, e.prototype.add = function(t) {
859
- var r;
878
+ var n;
860
879
  if (t && t !== this)
861
880
  if (this.closed)
862
- xt(t);
881
+ gt(t);
863
882
  else {
864
883
  if (t instanceof e) {
865
884
  if (t.closed || t._hasParent(this))
866
885
  return;
867
886
  t._addParent(this);
868
887
  }
869
- (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
888
+ (this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
870
889
  }
871
890
  }, e.prototype._hasParent = function(t) {
872
- var r = this._parentage;
873
- return r === t || Array.isArray(r) && r.includes(t);
891
+ var n = this._parentage;
892
+ return n === t || Array.isArray(n) && n.includes(t);
874
893
  }, e.prototype._addParent = function(t) {
875
- var r = this._parentage;
876
- this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
894
+ var n = this._parentage;
895
+ this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
877
896
  }, e.prototype._removeParent = function(t) {
878
- var r = this._parentage;
879
- r === t ? this._parentage = null : Array.isArray(r) && Je(r, t);
897
+ var n = this._parentage;
898
+ n === t ? this._parentage = null : Array.isArray(n) && ze(n, t);
880
899
  }, e.prototype.remove = function(t) {
881
- var r = this._finalizers;
882
- r && Je(r, t), t instanceof e && t._removeParent(this);
900
+ var n = this._finalizers;
901
+ n && ze(n, t), t instanceof e && t._removeParent(this);
883
902
  }, e.EMPTY = function() {
884
903
  var t = new e();
885
904
  return t.closed = !0, t;
886
905
  }(), e;
887
- }(), rr = Ae.EMPTY;
888
- function nr(e) {
889
- return e instanceof Ae || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
906
+ }(), Yt = He.EMPTY;
907
+ function Kt(e) {
908
+ return e instanceof He || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
890
909
  }
891
- function xt(e) {
910
+ function gt(e) {
892
911
  R(e) ? e() : e.unsubscribe();
893
912
  }
894
- var xn = {
895
- Promise: void 0
896
- }, En = {
913
+ var yr = {
914
+ onUnhandledError: null,
915
+ onStoppedNotification: null,
916
+ Promise: void 0,
917
+ useDeprecatedSynchronousErrorHandling: !1,
918
+ useDeprecatedNextContext: !1
919
+ }, vr = {
897
920
  setTimeout: function(e, t) {
898
- for (var r = [], n = 2; n < arguments.length; n++)
899
- r[n - 2] = arguments[n];
900
- return setTimeout.apply(void 0, Qe([e, t], Ze(r)));
921
+ for (var n = [], r = 2; r < arguments.length; r++)
922
+ n[r - 2] = arguments[r];
923
+ return setTimeout.apply(void 0, Z([e, t], Xe(n)));
901
924
  },
902
925
  clearTimeout: function(e) {
903
926
  return clearTimeout(e);
904
927
  },
905
928
  delegate: void 0
906
929
  };
907
- function wn(e) {
908
- En.setTimeout(function() {
930
+ function _r(e) {
931
+ vr.setTimeout(function() {
909
932
  throw e;
910
933
  });
911
934
  }
912
- function Et() {
935
+ function yt() {
913
936
  }
914
937
  function ge(e) {
915
938
  e();
916
939
  }
917
- var ir = function(e) {
918
- le(t, e);
919
- function t(r) {
920
- var n = e.call(this) || this;
921
- return n.isStopped = !1, r ? (n.destination = r, nr(r) && r.add(n)) : n.destination = Hn, n;
940
+ var en = function(e) {
941
+ $(t, e);
942
+ function t(n) {
943
+ var r = e.call(this) || this;
944
+ return r.isStopped = !1, n ? (r.destination = n, Kt(n) && n.add(r)) : r.destination = wr, r;
922
945
  }
923
- return t.create = function(r, n, i) {
924
- return new qe(r, n, i);
925
- }, t.prototype.next = function(r) {
926
- this.isStopped || this._next(r);
927
- }, t.prototype.error = function(r) {
928
- this.isStopped || (this.isStopped = !0, this._error(r));
946
+ return t.create = function(n, r, i) {
947
+ return new We(n, r, i);
948
+ }, t.prototype.next = function(n) {
949
+ this.isStopped || this._next(n);
950
+ }, t.prototype.error = function(n) {
951
+ this.isStopped || (this.isStopped = !0, this._error(n));
929
952
  }, t.prototype.complete = function() {
930
953
  this.isStopped || (this.isStopped = !0, this._complete());
931
954
  }, t.prototype.unsubscribe = function() {
932
955
  this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
933
- }, t.prototype._next = function(r) {
934
- this.destination.next(r);
935
- }, t.prototype._error = function(r) {
956
+ }, t.prototype._next = function(n) {
957
+ this.destination.next(n);
958
+ }, t.prototype._error = function(n) {
936
959
  try {
937
- this.destination.error(r);
960
+ this.destination.error(n);
938
961
  } finally {
939
962
  this.unsubscribe();
940
963
  }
@@ -945,82 +968,82 @@ var ir = function(e) {
945
968
  this.unsubscribe();
946
969
  }
947
970
  }, t;
948
- }(Ae), Sn = function() {
971
+ }(He), xr = function() {
949
972
  function e(t) {
950
973
  this.partialObserver = t;
951
974
  }
952
975
  return e.prototype.next = function(t) {
953
- var r = this.partialObserver;
954
- if (r.next)
976
+ var n = this.partialObserver;
977
+ if (n.next)
955
978
  try {
956
- r.next(t);
957
- } catch (n) {
958
- me(n);
979
+ n.next(t);
980
+ } catch (r) {
981
+ de(r);
959
982
  }
960
983
  }, e.prototype.error = function(t) {
961
- var r = this.partialObserver;
962
- if (r.error)
984
+ var n = this.partialObserver;
985
+ if (n.error)
963
986
  try {
964
- r.error(t);
965
- } catch (n) {
966
- me(n);
987
+ n.error(t);
988
+ } catch (r) {
989
+ de(r);
967
990
  }
968
991
  else
969
- me(t);
992
+ de(t);
970
993
  }, e.prototype.complete = function() {
971
994
  var t = this.partialObserver;
972
995
  if (t.complete)
973
996
  try {
974
997
  t.complete();
975
- } catch (r) {
976
- me(r);
998
+ } catch (n) {
999
+ de(n);
977
1000
  }
978
1001
  }, e;
979
- }(), qe = function(e) {
980
- le(t, e);
981
- function t(r, n, i) {
1002
+ }(), We = function(e) {
1003
+ $(t, e);
1004
+ function t(n, r, i) {
982
1005
  var o = e.call(this) || this, s;
983
- return R(r) || !r ? s = {
984
- next: r != null ? r : void 0,
985
- error: n != null ? n : void 0,
1006
+ return R(n) || !n ? s = {
1007
+ next: n != null ? n : void 0,
1008
+ error: r != null ? r : void 0,
986
1009
  complete: i != null ? i : void 0
987
- } : s = r, o.destination = new Sn(s), o;
1010
+ } : s = n, o.destination = new xr(s), o;
988
1011
  }
989
1012
  return t;
990
- }(ir);
991
- function me(e) {
992
- wn(e);
1013
+ }(en);
1014
+ function de(e) {
1015
+ _r(e);
993
1016
  }
994
- function Tn(e) {
1017
+ function Er(e) {
995
1018
  throw e;
996
1019
  }
997
- var Hn = {
1020
+ var wr = {
998
1021
  closed: !0,
999
- next: Et,
1000
- error: Tn,
1001
- complete: Et
1002
- }, An = function() {
1022
+ next: yt,
1023
+ error: Er,
1024
+ complete: yt
1025
+ }, Sr = function() {
1003
1026
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
1004
1027
  }();
1005
- function Bn(e) {
1028
+ function Tr(e) {
1006
1029
  return e;
1007
1030
  }
1008
- function Cn(e) {
1009
- return e.length === 0 ? Bn : e.length === 1 ? e[0] : function(r) {
1010
- return e.reduce(function(n, i) {
1011
- return i(n);
1012
- }, r);
1031
+ function Hr(e) {
1032
+ return e.length === 0 ? Tr : e.length === 1 ? e[0] : function(n) {
1033
+ return e.reduce(function(r, i) {
1034
+ return i(r);
1035
+ }, n);
1013
1036
  };
1014
1037
  }
1015
- var wt = function() {
1038
+ var vt = function() {
1016
1039
  function e(t) {
1017
1040
  t && (this._subscribe = t);
1018
1041
  }
1019
1042
  return e.prototype.lift = function(t) {
1020
- var r = new e();
1021
- return r.source = this, r.operator = t, r;
1022
- }, e.prototype.subscribe = function(t, r, n) {
1023
- var i = this, o = On(t) ? t : new qe(t, r, n);
1043
+ var n = new e();
1044
+ return n.source = this, n.operator = t, n;
1045
+ }, e.prototype.subscribe = function(t, n, r) {
1046
+ var i = this, o = Br(t) ? t : new We(t, n, r);
1024
1047
  return ge(function() {
1025
1048
  var s = i, a = s.operator, l = s.source;
1026
1049
  o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
@@ -1028,13 +1051,13 @@ var wt = function() {
1028
1051
  }, e.prototype._trySubscribe = function(t) {
1029
1052
  try {
1030
1053
  return this._subscribe(t);
1031
- } catch (r) {
1032
- t.error(r);
1054
+ } catch (n) {
1055
+ t.error(n);
1033
1056
  }
1034
- }, e.prototype.forEach = function(t, r) {
1035
- var n = this;
1036
- return r = St(r), new r(function(i, o) {
1037
- var s = new qe({
1057
+ }, e.prototype.forEach = function(t, n) {
1058
+ var r = this;
1059
+ return n = _t(n), new n(function(i, o) {
1060
+ var s = new We({
1038
1061
  next: function(a) {
1039
1062
  try {
1040
1063
  t(a);
@@ -1045,69 +1068,69 @@ var wt = function() {
1045
1068
  error: o,
1046
1069
  complete: i
1047
1070
  });
1048
- n.subscribe(s);
1071
+ r.subscribe(s);
1049
1072
  });
1050
1073
  }, e.prototype._subscribe = function(t) {
1051
- var r;
1052
- return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
1053
- }, e.prototype[An] = function() {
1074
+ var n;
1075
+ return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
1076
+ }, e.prototype[Sr] = function() {
1054
1077
  return this;
1055
1078
  }, e.prototype.pipe = function() {
1056
- for (var t = [], r = 0; r < arguments.length; r++)
1057
- t[r] = arguments[r];
1058
- return Cn(t)(this);
1079
+ for (var t = [], n = 0; n < arguments.length; n++)
1080
+ t[n] = arguments[n];
1081
+ return Hr(t)(this);
1059
1082
  }, e.prototype.toPromise = function(t) {
1060
- var r = this;
1061
- return t = St(t), new t(function(n, i) {
1083
+ var n = this;
1084
+ return t = _t(t), new t(function(r, i) {
1062
1085
  var o;
1063
- r.subscribe(function(s) {
1086
+ n.subscribe(function(s) {
1064
1087
  return o = s;
1065
1088
  }, function(s) {
1066
1089
  return i(s);
1067
1090
  }, function() {
1068
- return n(o);
1091
+ return r(o);
1069
1092
  });
1070
1093
  });
1071
1094
  }, e.create = function(t) {
1072
1095
  return new e(t);
1073
1096
  }, e;
1074
1097
  }();
1075
- function St(e) {
1098
+ function _t(e) {
1076
1099
  var t;
1077
- return (t = e != null ? e : xn.Promise) !== null && t !== void 0 ? t : Promise;
1100
+ return (t = e != null ? e : yr.Promise) !== null && t !== void 0 ? t : Promise;
1078
1101
  }
1079
- function Pn(e) {
1102
+ function Ar(e) {
1080
1103
  return e && R(e.next) && R(e.error) && R(e.complete);
1081
1104
  }
1082
- function On(e) {
1083
- return e && e instanceof ir || Pn(e) && nr(e);
1105
+ function Br(e) {
1106
+ return e && e instanceof en || Ar(e) && Kt(e);
1084
1107
  }
1085
- var In = tr(function(e) {
1108
+ var Cr = qt(function(e) {
1086
1109
  return function() {
1087
1110
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1088
1111
  };
1089
- }), or = function(e) {
1090
- le(t, e);
1112
+ }), tn = function(e) {
1113
+ $(t, e);
1091
1114
  function t() {
1092
- var r = e.call(this) || this;
1093
- return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
1115
+ var n = e.call(this) || this;
1116
+ return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
1094
1117
  }
1095
- return t.prototype.lift = function(r) {
1096
- var n = new Tt(this, this);
1097
- return n.operator = r, n;
1118
+ return t.prototype.lift = function(n) {
1119
+ var r = new xt(this, this);
1120
+ return r.operator = n, r;
1098
1121
  }, t.prototype._throwIfClosed = function() {
1099
1122
  if (this.closed)
1100
- throw new In();
1101
- }, t.prototype.next = function(r) {
1102
- var n = this;
1123
+ throw new Cr();
1124
+ }, t.prototype.next = function(n) {
1125
+ var r = this;
1103
1126
  ge(function() {
1104
1127
  var i, o;
1105
- if (n._throwIfClosed(), !n.isStopped) {
1106
- n.currentObservers || (n.currentObservers = Array.from(n.observers));
1128
+ if (r._throwIfClosed(), !r.isStopped) {
1129
+ r.currentObservers || (r.currentObservers = Array.from(r.observers));
1107
1130
  try {
1108
- for (var s = We(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
1131
+ for (var s = Ve(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
1109
1132
  var l = a.value;
1110
- l.next(r);
1133
+ l.next(n);
1111
1134
  }
1112
1135
  } catch (u) {
1113
1136
  i = { error: u };
@@ -1121,118 +1144,118 @@ var In = tr(function(e) {
1121
1144
  }
1122
1145
  }
1123
1146
  });
1124
- }, t.prototype.error = function(r) {
1125
- var n = this;
1147
+ }, t.prototype.error = function(n) {
1148
+ var r = this;
1126
1149
  ge(function() {
1127
- if (n._throwIfClosed(), !n.isStopped) {
1128
- n.hasError = n.isStopped = !0, n.thrownError = r;
1129
- for (var i = n.observers; i.length; )
1130
- i.shift().error(r);
1150
+ if (r._throwIfClosed(), !r.isStopped) {
1151
+ r.hasError = r.isStopped = !0, r.thrownError = n;
1152
+ for (var i = r.observers; i.length; )
1153
+ i.shift().error(n);
1131
1154
  }
1132
1155
  });
1133
1156
  }, t.prototype.complete = function() {
1134
- var r = this;
1157
+ var n = this;
1135
1158
  ge(function() {
1136
- if (r._throwIfClosed(), !r.isStopped) {
1137
- r.isStopped = !0;
1138
- for (var n = r.observers; n.length; )
1139
- n.shift().complete();
1159
+ if (n._throwIfClosed(), !n.isStopped) {
1160
+ n.isStopped = !0;
1161
+ for (var r = n.observers; r.length; )
1162
+ r.shift().complete();
1140
1163
  }
1141
1164
  });
1142
1165
  }, t.prototype.unsubscribe = function() {
1143
1166
  this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
1144
1167
  }, Object.defineProperty(t.prototype, "observed", {
1145
1168
  get: function() {
1146
- var r;
1147
- return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
1169
+ var n;
1170
+ return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
1148
1171
  },
1149
1172
  enumerable: !1,
1150
1173
  configurable: !0
1151
- }), t.prototype._trySubscribe = function(r) {
1152
- return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
1153
- }, t.prototype._subscribe = function(r) {
1154
- return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1155
- }, t.prototype._innerSubscribe = function(r) {
1156
- var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
1157
- return o || s ? rr : (this.currentObservers = null, a.push(r), new Ae(function() {
1158
- n.currentObservers = null, Je(a, r);
1174
+ }), t.prototype._trySubscribe = function(n) {
1175
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
1176
+ }, t.prototype._subscribe = function(n) {
1177
+ return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
1178
+ }, t.prototype._innerSubscribe = function(n) {
1179
+ var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
1180
+ return o || s ? Yt : (this.currentObservers = null, a.push(n), new He(function() {
1181
+ r.currentObservers = null, ze(a, n);
1159
1182
  }));
1160
- }, t.prototype._checkFinalizedStatuses = function(r) {
1161
- var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
1162
- i ? r.error(o) : s && r.complete();
1183
+ }, t.prototype._checkFinalizedStatuses = function(n) {
1184
+ var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
1185
+ i ? n.error(o) : s && n.complete();
1163
1186
  }, t.prototype.asObservable = function() {
1164
- var r = new wt();
1165
- return r.source = this, r;
1166
- }, t.create = function(r, n) {
1167
- return new Tt(r, n);
1187
+ var n = new vt();
1188
+ return n.source = this, n;
1189
+ }, t.create = function(n, r) {
1190
+ return new xt(n, r);
1168
1191
  }, t;
1169
- }(wt), Tt = function(e) {
1170
- le(t, e);
1171
- function t(r, n) {
1192
+ }(vt), xt = function(e) {
1193
+ $(t, e);
1194
+ function t(n, r) {
1172
1195
  var i = e.call(this) || this;
1173
- return i.destination = r, i.source = n, i;
1196
+ return i.destination = n, i.source = r, i;
1174
1197
  }
1175
- return t.prototype.next = function(r) {
1176
- var n, i;
1177
- (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
1178
- }, t.prototype.error = function(r) {
1179
- var n, i;
1180
- (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
1198
+ return t.prototype.next = function(n) {
1199
+ var r, i;
1200
+ (i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
1201
+ }, t.prototype.error = function(n) {
1202
+ var r, i;
1203
+ (i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
1181
1204
  }, t.prototype.complete = function() {
1182
- var r, n;
1183
- (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1184
- }, t.prototype._subscribe = function(r) {
1185
- var n, i;
1186
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : rr;
1205
+ var n, r;
1206
+ (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
1207
+ }, t.prototype._subscribe = function(n) {
1208
+ var r, i;
1209
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Yt;
1187
1210
  }, t;
1188
- }(or), sr = {
1211
+ }(tn), nn = {
1189
1212
  now: function() {
1190
- return (sr.delegate || Date).now();
1213
+ return (nn.delegate || Date).now();
1191
1214
  },
1192
1215
  delegate: void 0
1193
- }, Mn = function(e) {
1194
- le(t, e);
1195
- function t(r, n, i) {
1196
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = sr);
1216
+ }, Pr = function(e) {
1217
+ $(t, e);
1218
+ function t(n, r, i) {
1219
+ n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = nn);
1197
1220
  var o = e.call(this) || this;
1198
- return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
1221
+ return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
1199
1222
  }
1200
- return t.prototype.next = function(r) {
1201
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
1202
- i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
1203
- }, t.prototype._subscribe = function(r) {
1223
+ return t.prototype.next = function(n) {
1224
+ var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, l = r._windowTime;
1225
+ i || (o.push(n), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, n);
1226
+ }, t.prototype._subscribe = function(n) {
1204
1227
  this._throwIfClosed(), this._trimBuffer();
1205
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
1206
- r.next(a[l]);
1207
- return this._checkFinalizedStatuses(r), n;
1228
+ for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !n.closed; l += o ? 1 : 2)
1229
+ n.next(a[l]);
1230
+ return this._checkFinalizedStatuses(n), r;
1208
1231
  }, t.prototype._trimBuffer = function() {
1209
- var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
1210
- if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1232
+ var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
1233
+ if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1211
1234
  for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
1212
1235
  u = h;
1213
1236
  u && o.splice(0, u + 1);
1214
1237
  }
1215
1238
  }, t;
1216
- }(or);
1217
- const Ht = [], At = {}, Nn = (e, t = 0) => {
1218
- if (Ht.indexOf(e) == -1) {
1219
- const r = new Mn(t);
1220
- At[e] = r, Ht.push(e);
1239
+ }(tn);
1240
+ const Et = [], wt = {}, Or = (e, t = 0) => {
1241
+ if (Et.indexOf(e) == -1) {
1242
+ const n = new Pr(t);
1243
+ wt[e] = n, Et.push(e);
1221
1244
  }
1222
- return At[e];
1245
+ return wt[e];
1223
1246
  }, V = [];
1224
- function Ln(e, t) {
1247
+ function Ir(e, t) {
1225
1248
  return {
1226
- subscribe: Be(e, t).subscribe
1249
+ subscribe: Ae(e, t).subscribe
1227
1250
  };
1228
1251
  }
1229
- function Be(e, t = N) {
1230
- let r;
1231
- const n = /* @__PURE__ */ new Set();
1252
+ function Ae(e, t = N) {
1253
+ let n;
1254
+ const r = /* @__PURE__ */ new Set();
1232
1255
  function i(a) {
1233
- if (Wt(e, a) && (e = a, r)) {
1256
+ if (kt(e, a) && (e = a, n)) {
1234
1257
  const l = !V.length;
1235
- for (const u of n)
1258
+ for (const u of r)
1236
1259
  u[1](), V.push(u, e);
1237
1260
  if (l) {
1238
1261
  for (let u = 0; u < V.length; u += 2)
@@ -1246,191 +1269,152 @@ function Be(e, t = N) {
1246
1269
  }
1247
1270
  function s(a, l = N) {
1248
1271
  const u = [a, l];
1249
- return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
1250
- n.delete(u), n.size === 0 && r && (r(), r = null);
1272
+ return r.add(u), r.size === 1 && (n = t(i, o) || N), a(e), () => {
1273
+ r.delete(u), r.size === 0 && n && (n(), n = null);
1251
1274
  };
1252
1275
  }
1253
1276
  return { set: i, update: o, subscribe: s };
1254
1277
  }
1255
- function Y(e, t, r) {
1256
- const n = !Array.isArray(e), i = n ? [e] : e;
1278
+ function K(e, t, n) {
1279
+ const r = !Array.isArray(e), i = r ? [e] : e;
1257
1280
  if (!i.every(Boolean))
1258
1281
  throw new Error("derived() expects stores as input, got a falsy value");
1259
1282
  const o = t.length < 2;
1260
- return Ln(r, (s, a) => {
1283
+ return Ir(n, (s, a) => {
1261
1284
  let l = !1;
1262
1285
  const u = [];
1263
- let h = 0, c = N;
1264
- const f = () => {
1286
+ let h = 0, f = N;
1287
+ const c = () => {
1265
1288
  if (h)
1266
1289
  return;
1267
- c();
1268
- const m = t(n ? u[0] : u, s, a);
1269
- o ? s(m) : c = He(m) ? m : N;
1270
- }, p = i.map(
1271
- (m, d) => Zt(
1272
- m,
1290
+ f();
1291
+ const d = t(r ? u[0] : u, s, a);
1292
+ o ? s(d) : f = Te(d) ? d : N;
1293
+ }, m = i.map(
1294
+ (d, p) => Vt(
1295
+ d,
1273
1296
  (g) => {
1274
- u[d] = g, h &= ~(1 << d), l && f();
1297
+ u[p] = g, h &= ~(1 << p), l && c();
1275
1298
  },
1276
1299
  () => {
1277
- h |= 1 << d;
1300
+ h |= 1 << p;
1278
1301
  }
1279
1302
  )
1280
1303
  );
1281
- return l = !0, f(), function() {
1282
- U(p), c(), l = !1;
1304
+ return l = !0, c(), function() {
1305
+ U(m), f(), l = !1;
1283
1306
  };
1284
1307
  });
1285
1308
  }
1286
- var ko = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
1287
- function $n(e) {
1309
+ var Uo = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
1310
+ function Mr(e) {
1288
1311
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1289
1312
  }
1290
- var Rn = function(t) {
1291
- return Gn(t) && !Un(t);
1313
+ var Nr = function(t) {
1314
+ return Lr(t) && !Rr(t);
1292
1315
  };
1293
- function Gn(e) {
1316
+ function Lr(e) {
1294
1317
  return !!e && typeof e == "object";
1295
1318
  }
1296
- function Un(e) {
1319
+ function Rr(e) {
1297
1320
  var t = Object.prototype.toString.call(e);
1298
- return t === "[object RegExp]" || t === "[object Date]" || jn(e);
1321
+ return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
1299
1322
  }
1300
- var Dn = typeof Symbol == "function" && Symbol.for, Fn = Dn ? Symbol.for("react.element") : 60103;
1301
- function jn(e) {
1302
- return e.$$typeof === Fn;
1323
+ var $r = typeof Symbol == "function" && Symbol.for, Gr = $r ? Symbol.for("react.element") : 60103;
1324
+ function Ur(e) {
1325
+ return e.$$typeof === Gr;
1303
1326
  }
1304
- function kn(e) {
1327
+ function Dr(e) {
1305
1328
  return Array.isArray(e) ? [] : {};
1306
1329
  }
1307
- function oe(e, t) {
1308
- return t.clone !== !1 && t.isMergeableObject(e) ? Z(kn(e), e, t) : e;
1330
+ function se(e, t) {
1331
+ return t.clone !== !1 && t.isMergeableObject(e) ? Q(Dr(e), e, t) : e;
1309
1332
  }
1310
- function Vn(e, t, r) {
1311
- return e.concat(t).map(function(n) {
1312
- return oe(n, r);
1333
+ function Fr(e, t, n) {
1334
+ return e.concat(t).map(function(r) {
1335
+ return se(r, n);
1313
1336
  });
1314
1337
  }
1315
- function Xn(e, t) {
1338
+ function jr(e, t) {
1316
1339
  if (!t.customMerge)
1317
- return Z;
1318
- var r = t.customMerge(e);
1319
- return typeof r == "function" ? r : Z;
1340
+ return Q;
1341
+ var n = t.customMerge(e);
1342
+ return typeof n == "function" ? n : Q;
1320
1343
  }
1321
- function zn(e) {
1344
+ function kr(e) {
1322
1345
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1323
1346
  return Object.propertyIsEnumerable.call(e, t);
1324
1347
  }) : [];
1325
1348
  }
1326
- function Bt(e) {
1327
- return Object.keys(e).concat(zn(e));
1349
+ function St(e) {
1350
+ return Object.keys(e).concat(kr(e));
1328
1351
  }
1329
- function ar(e, t) {
1352
+ function rn(e, t) {
1330
1353
  try {
1331
1354
  return t in e;
1332
- } catch (r) {
1355
+ } catch (n) {
1333
1356
  return !1;
1334
1357
  }
1335
1358
  }
1336
- function Wn(e, t) {
1337
- return ar(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1359
+ function Vr(e, t) {
1360
+ return rn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1338
1361
  }
1339
- function Zn(e, t, r) {
1340
- var n = {};
1341
- return r.isMergeableObject(e) && Bt(e).forEach(function(i) {
1342
- n[i] = oe(e[i], r);
1343
- }), Bt(t).forEach(function(i) {
1344
- Wn(e, i) || (ar(e, i) && r.isMergeableObject(t[i]) ? n[i] = Xn(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
1345
- }), n;
1346
- }
1347
- function Z(e, t, r) {
1348
- r = r || {}, r.arrayMerge = r.arrayMerge || Vn, r.isMergeableObject = r.isMergeableObject || Rn, r.cloneUnlessOtherwiseSpecified = oe;
1349
- var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1350
- return o ? n ? r.arrayMerge(e, t, r) : Zn(e, t, r) : oe(t, r);
1351
- }
1352
- Z.all = function(t, r) {
1362
+ function Xr(e, t, n) {
1363
+ var r = {};
1364
+ return n.isMergeableObject(e) && St(e).forEach(function(i) {
1365
+ r[i] = se(e[i], n);
1366
+ }), St(t).forEach(function(i) {
1367
+ Vr(e, i) || (rn(e, i) && n.isMergeableObject(t[i]) ? r[i] = jr(i, n)(e[i], t[i], n) : r[i] = se(t[i], n));
1368
+ }), r;
1369
+ }
1370
+ function Q(e, t, n) {
1371
+ n = n || {}, n.arrayMerge = n.arrayMerge || Fr, n.isMergeableObject = n.isMergeableObject || Nr, n.cloneUnlessOtherwiseSpecified = se;
1372
+ var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
1373
+ return o ? r ? n.arrayMerge(e, t, n) : Xr(e, t, n) : se(t, n);
1374
+ }
1375
+ Q.all = function(t, n) {
1353
1376
  if (!Array.isArray(t))
1354
1377
  throw new Error("first argument should be an array");
1355
- return t.reduce(function(n, i) {
1356
- return Z(n, i, r);
1378
+ return t.reduce(function(r, i) {
1379
+ return Q(r, i, n);
1357
1380
  }, {});
1358
1381
  };
1359
- var Qn = Z, Jn = Qn;
1360
- const qn = /* @__PURE__ */ $n(Jn);
1361
- var Ye = function(e, t) {
1362
- return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1363
- r.__proto__ = n;
1364
- } || function(r, n) {
1365
- for (var i in n)
1366
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1367
- }, Ye(e, t);
1368
- };
1369
- function Ce(e, t) {
1370
- if (typeof t != "function" && t !== null)
1371
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1372
- Ye(e, t);
1373
- function r() {
1374
- this.constructor = e;
1375
- }
1376
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1377
- }
1378
- var L = function() {
1379
- return L = Object.assign || function(t) {
1380
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1381
- r = arguments[n];
1382
- for (var o in r)
1383
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1384
- }
1385
- return t;
1386
- }, L.apply(this, arguments);
1387
- };
1388
- function Yn(e, t) {
1389
- var r = {};
1390
- for (var n in e)
1391
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1392
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1393
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1394
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1395
- return r;
1396
- }
1397
- function Re(e, t, r) {
1398
- if (r || arguments.length === 2)
1399
- for (var n = 0, i = t.length, o; n < i; n++)
1400
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1401
- return e.concat(o || Array.prototype.slice.call(t));
1402
- }
1403
- function Ge(e, t) {
1404
- var r = t && t.cache ? t.cache : oi, n = t && t.serializer ? t.serializer : ni, i = t && t.strategy ? t.strategy : ti;
1382
+ var zr = Q, Wr = zr;
1383
+ const Zr = /* @__PURE__ */ Mr(Wr);
1384
+ function Le(e, t) {
1385
+ var n = t && t.cache ? t.cache : ti, r = t && t.serializer ? t.serializer : Kr, i = t && t.strategy ? t.strategy : Jr;
1405
1386
  return i(e, {
1406
- cache: r,
1407
- serializer: n
1387
+ cache: n,
1388
+ serializer: r
1408
1389
  });
1409
1390
  }
1410
- function Kn(e) {
1391
+ function Qr(e) {
1411
1392
  return e == null || typeof e == "number" || typeof e == "boolean";
1412
1393
  }
1413
- function ei(e, t, r, n) {
1414
- var i = Kn(n) ? n : r(n), o = t.get(i);
1415
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1394
+ function on(e, t, n, r) {
1395
+ var i = Qr(r) ? r : n(r), o = t.get(i);
1396
+ return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
1416
1397
  }
1417
- function ur(e, t, r) {
1418
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1419
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1398
+ function sn(e, t, n) {
1399
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
1400
+ return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
1420
1401
  }
1421
- function lr(e, t, r, n, i) {
1422
- return r.bind(t, e, n, i);
1402
+ function ot(e, t, n, r, i) {
1403
+ return n.bind(t, e, r, i);
1423
1404
  }
1424
- function ti(e, t) {
1425
- var r = e.length === 1 ? ei : ur;
1426
- return lr(e, this, r, t.cache.create(), t.serializer);
1405
+ function Jr(e, t) {
1406
+ var n = e.length === 1 ? on : sn;
1407
+ return ot(e, this, n, t.cache.create(), t.serializer);
1427
1408
  }
1428
- function ri(e, t) {
1429
- return lr(e, this, ur, t.cache.create(), t.serializer);
1409
+ function qr(e, t) {
1410
+ return ot(e, this, sn, t.cache.create(), t.serializer);
1430
1411
  }
1431
- var ni = function() {
1412
+ function Yr(e, t) {
1413
+ return ot(e, this, on, t.cache.create(), t.serializer);
1414
+ }
1415
+ var Kr = function() {
1432
1416
  return JSON.stringify(arguments);
1433
- }, ii = (
1417
+ }, ei = (
1434
1418
  /** @class */
1435
1419
  function() {
1436
1420
  function e() {
@@ -1438,82 +1422,73 @@ var ni = function() {
1438
1422
  }
1439
1423
  return e.prototype.get = function(t) {
1440
1424
  return this.cache[t];
1441
- }, e.prototype.set = function(t, r) {
1442
- this.cache[t] = r;
1425
+ }, e.prototype.set = function(t, n) {
1426
+ this.cache[t] = n;
1443
1427
  }, e;
1444
1428
  }()
1445
- ), oi = {
1429
+ ), ti = {
1446
1430
  create: function() {
1447
- return new ii();
1431
+ return new ei();
1448
1432
  }
1449
- }, Ue = {
1450
- variadic: ri
1451
- }, we = function() {
1452
- return we = Object.assign || function(t) {
1453
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1454
- r = arguments[n];
1455
- for (var o in r)
1456
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1457
- }
1458
- return t;
1459
- }, we.apply(this, arguments);
1460
- };
1461
- var y;
1433
+ }, Re = {
1434
+ variadic: qr,
1435
+ monadic: Yr
1436
+ }, y;
1462
1437
  (function(e) {
1463
1438
  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";
1464
1439
  })(y || (y = {}));
1465
- var w;
1440
+ var S;
1466
1441
  (function(e) {
1467
1442
  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";
1468
- })(w || (w = {}));
1469
- var Q;
1443
+ })(S || (S = {}));
1444
+ var J;
1470
1445
  (function(e) {
1471
1446
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1472
- })(Q || (Q = {}));
1473
- function Ct(e) {
1474
- return e.type === w.literal;
1447
+ })(J || (J = {}));
1448
+ function Tt(e) {
1449
+ return e.type === S.literal;
1475
1450
  }
1476
- function si(e) {
1477
- return e.type === w.argument;
1451
+ function ni(e) {
1452
+ return e.type === S.argument;
1478
1453
  }
1479
- function hr(e) {
1480
- return e.type === w.number;
1454
+ function an(e) {
1455
+ return e.type === S.number;
1481
1456
  }
1482
- function cr(e) {
1483
- return e.type === w.date;
1457
+ function un(e) {
1458
+ return e.type === S.date;
1484
1459
  }
1485
- function fr(e) {
1486
- return e.type === w.time;
1460
+ function ln(e) {
1461
+ return e.type === S.time;
1487
1462
  }
1488
- function mr(e) {
1489
- return e.type === w.select;
1463
+ function hn(e) {
1464
+ return e.type === S.select;
1490
1465
  }
1491
- function pr(e) {
1492
- return e.type === w.plural;
1466
+ function fn(e) {
1467
+ return e.type === S.plural;
1493
1468
  }
1494
- function ai(e) {
1495
- return e.type === w.pound;
1469
+ function ri(e) {
1470
+ return e.type === S.pound;
1496
1471
  }
1497
- function dr(e) {
1498
- return e.type === w.tag;
1472
+ function cn(e) {
1473
+ return e.type === S.tag;
1499
1474
  }
1500
- function br(e) {
1501
- return !!(e && typeof e == "object" && e.type === Q.number);
1475
+ function dn(e) {
1476
+ return !!(e && typeof e == "object" && e.type === J.number);
1502
1477
  }
1503
- function Ke(e) {
1504
- return !!(e && typeof e == "object" && e.type === Q.dateTime);
1478
+ function Ze(e) {
1479
+ return !!(e && typeof e == "object" && e.type === J.dateTime);
1505
1480
  }
1506
- var gr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ui = /(?:[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;
1507
- function li(e) {
1481
+ var mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
1482
+ function oi(e) {
1508
1483
  var t = {};
1509
- return e.replace(ui, function(r) {
1510
- var n = r.length;
1511
- switch (r[0]) {
1484
+ return e.replace(ii, function(n) {
1485
+ var r = n.length;
1486
+ switch (n[0]) {
1512
1487
  case "G":
1513
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1488
+ t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1514
1489
  break;
1515
1490
  case "y":
1516
- t.year = n === 2 ? "2-digit" : "numeric";
1491
+ t.year = r === 2 ? "2-digit" : "numeric";
1517
1492
  break;
1518
1493
  case "Y":
1519
1494
  case "u":
@@ -1525,30 +1500,30 @@ function li(e) {
1525
1500
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
1526
1501
  case "M":
1527
1502
  case "L":
1528
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1503
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
1529
1504
  break;
1530
1505
  case "w":
1531
1506
  case "W":
1532
1507
  throw new RangeError("`w/W` (week) patterns are not supported");
1533
1508
  case "d":
1534
- t.day = ["numeric", "2-digit"][n - 1];
1509
+ t.day = ["numeric", "2-digit"][r - 1];
1535
1510
  break;
1536
1511
  case "D":
1537
1512
  case "F":
1538
1513
  case "g":
1539
1514
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1540
1515
  case "E":
1541
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1516
+ t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
1542
1517
  break;
1543
1518
  case "e":
1544
- if (n < 4)
1519
+ if (r < 4)
1545
1520
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
1546
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1521
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
1547
1522
  break;
1548
1523
  case "c":
1549
- if (n < 4)
1524
+ if (r < 4)
1550
1525
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1551
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1526
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
1552
1527
  break;
1553
1528
  case "a":
1554
1529
  t.hour12 = !0;
@@ -1557,32 +1532,32 @@ function li(e) {
1557
1532
  case "B":
1558
1533
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1559
1534
  case "h":
1560
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1535
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
1561
1536
  break;
1562
1537
  case "H":
1563
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1538
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
1564
1539
  break;
1565
1540
  case "K":
1566
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1541
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
1567
1542
  break;
1568
1543
  case "k":
1569
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1544
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
1570
1545
  break;
1571
1546
  case "j":
1572
1547
  case "J":
1573
1548
  case "C":
1574
1549
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1575
1550
  case "m":
1576
- t.minute = ["numeric", "2-digit"][n - 1];
1551
+ t.minute = ["numeric", "2-digit"][r - 1];
1577
1552
  break;
1578
1553
  case "s":
1579
- t.second = ["numeric", "2-digit"][n - 1];
1554
+ t.second = ["numeric", "2-digit"][r - 1];
1580
1555
  break;
1581
1556
  case "S":
1582
1557
  case "A":
1583
1558
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1584
1559
  case "z":
1585
- t.timeZoneName = n < 4 ? "short" : "long";
1560
+ t.timeZoneName = r < 4 ? "short" : "long";
1586
1561
  break;
1587
1562
  case "Z":
1588
1563
  case "O":
@@ -1595,46 +1570,36 @@ function li(e) {
1595
1570
  return "";
1596
1571
  }), t;
1597
1572
  }
1598
- var S = function() {
1599
- return S = Object.assign || function(t) {
1600
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1601
- r = arguments[n];
1602
- for (var o in r)
1603
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1604
- }
1605
- return t;
1606
- }, S.apply(this, arguments);
1607
- };
1608
- var hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1609
- function ci(e) {
1573
+ var si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1574
+ function ai(e) {
1610
1575
  if (e.length === 0)
1611
1576
  throw new Error("Number skeleton cannot be empty");
1612
- for (var t = e.split(hi).filter(function(f) {
1613
- return f.length > 0;
1614
- }), r = [], n = 0, i = t; n < i.length; n++) {
1615
- var o = i[n], s = o.split("/");
1577
+ for (var t = e.split(si).filter(function(c) {
1578
+ return c.length > 0;
1579
+ }), n = [], r = 0, i = t; r < i.length; r++) {
1580
+ var o = i[r], s = o.split("/");
1616
1581
  if (s.length === 0)
1617
1582
  throw new Error("Invalid number skeleton");
1618
1583
  for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
1619
- var c = h[u];
1620
- if (c.length === 0)
1584
+ var f = h[u];
1585
+ if (f.length === 0)
1621
1586
  throw new Error("Invalid number skeleton");
1622
1587
  }
1623
- r.push({ stem: a, options: l });
1588
+ n.push({ stem: a, options: l });
1624
1589
  }
1625
- return r;
1590
+ return n;
1626
1591
  }
1627
- function fi(e) {
1592
+ function ui(e) {
1628
1593
  return e.replace(/^(.*?)-/, "");
1629
1594
  }
1630
- var Pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yr = /^(@+)?(\+|#+)?[rs]?$/g, mi = /(\*)(0+)|(#+)(0+)|(0+)/g, vr = /^(0+)$/;
1631
- function Ot(e) {
1595
+ var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pn = /^(@+)?(\+|#+)?[rs]?$/g, li = /(\*)(0+)|(#+)(0+)|(0+)/g, bn = /^(0+)$/;
1596
+ function At(e) {
1632
1597
  var t = {};
1633
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yr, function(r, n, i) {
1634
- return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1598
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pn, function(n, r, i) {
1599
+ return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
1635
1600
  }), t;
1636
1601
  }
1637
- function _r(e) {
1602
+ function gn(e) {
1638
1603
  switch (e) {
1639
1604
  case "sign-auto":
1640
1605
  return {
@@ -1674,27 +1639,27 @@ function _r(e) {
1674
1639
  };
1675
1640
  }
1676
1641
  }
1677
- function pi(e) {
1642
+ function hi(e) {
1678
1643
  var t;
1679
1644
  if (e[0] === "E" && e[1] === "E" ? (t = {
1680
1645
  notation: "engineering"
1681
1646
  }, e = e.slice(2)) : e[0] === "E" && (t = {
1682
1647
  notation: "scientific"
1683
1648
  }, e = e.slice(1)), t) {
1684
- var r = e.slice(0, 2);
1685
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vr.test(e))
1649
+ var n = e.slice(0, 2);
1650
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !bn.test(e))
1686
1651
  throw new Error("Malformed concise eng/scientific notation");
1687
1652
  t.minimumIntegerDigits = e.length;
1688
1653
  }
1689
1654
  return t;
1690
1655
  }
1691
- function It(e) {
1692
- var t = {}, r = _r(e);
1693
- return r || t;
1656
+ function Bt(e) {
1657
+ var t = {}, n = gn(e);
1658
+ return n || t;
1694
1659
  }
1695
- function di(e) {
1696
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
1697
- var i = n[r];
1660
+ function fi(e) {
1661
+ for (var t = {}, n = 0, r = e; n < r.length; n++) {
1662
+ var i = r[n];
1698
1663
  switch (i.stem) {
1699
1664
  case "percent":
1700
1665
  case "%":
@@ -1716,7 +1681,7 @@ function di(e) {
1716
1681
  continue;
1717
1682
  case "measure-unit":
1718
1683
  case "unit":
1719
- t.style = "unit", t.unit = fi(i.options[0]);
1684
+ t.style = "unit", t.unit = ui(i.options[0]);
1720
1685
  continue;
1721
1686
  case "compact-short":
1722
1687
  case "K":
@@ -1727,13 +1692,13 @@ function di(e) {
1727
1692
  t.notation = "compact", t.compactDisplay = "long";
1728
1693
  continue;
1729
1694
  case "scientific":
1730
- t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1731
- return S(S({}, l), It(u));
1695
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1696
+ return E(E({}, l), Bt(u));
1732
1697
  }, {}));
1733
1698
  continue;
1734
1699
  case "engineering":
1735
- t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1736
- return S(S({}, l), It(u));
1700
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1701
+ return E(E({}, l), Bt(u));
1737
1702
  }, {}));
1738
1703
  continue;
1739
1704
  case "notation-simple":
@@ -1778,45 +1743,45 @@ function di(e) {
1778
1743
  case "integer-width":
1779
1744
  if (i.options.length > 1)
1780
1745
  throw new RangeError("integer-width stems only accept a single optional option");
1781
- i.options[0].replace(mi, function(l, u, h, c, f, p) {
1746
+ i.options[0].replace(li, function(l, u, h, f, c, m) {
1782
1747
  if (u)
1783
1748
  t.minimumIntegerDigits = h.length;
1784
1749
  else {
1785
- if (c && f)
1750
+ if (f && c)
1786
1751
  throw new Error("We currently do not support maximum integer digits");
1787
- if (p)
1752
+ if (m)
1788
1753
  throw new Error("We currently do not support exact integer digits");
1789
1754
  }
1790
1755
  return "";
1791
1756
  });
1792
1757
  continue;
1793
1758
  }
1794
- if (vr.test(i.stem)) {
1759
+ if (bn.test(i.stem)) {
1795
1760
  t.minimumIntegerDigits = i.stem.length;
1796
1761
  continue;
1797
1762
  }
1798
- if (Pt.test(i.stem)) {
1763
+ if (Ht.test(i.stem)) {
1799
1764
  if (i.options.length > 1)
1800
1765
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1801
- i.stem.replace(Pt, function(l, u, h, c, f, p) {
1802
- return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1766
+ i.stem.replace(Ht, function(l, u, h, f, c, m) {
1767
+ return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1803
1768
  });
1804
1769
  var o = i.options[0];
1805
- o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Ot(o)));
1770
+ o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), At(o)));
1806
1771
  continue;
1807
1772
  }
1808
- if (yr.test(i.stem)) {
1809
- t = S(S({}, t), Ot(i.stem));
1773
+ if (pn.test(i.stem)) {
1774
+ t = E(E({}, t), At(i.stem));
1810
1775
  continue;
1811
1776
  }
1812
- var s = _r(i.stem);
1813
- s && (t = S(S({}, t), s));
1814
- var a = pi(i.stem);
1815
- a && (t = S(S({}, t), a));
1777
+ var s = gn(i.stem);
1778
+ s && (t = E(E({}, t), s));
1779
+ var a = hi(i.stem);
1780
+ a && (t = E(E({}, t), a));
1816
1781
  }
1817
1782
  return t;
1818
1783
  }
1819
- var pe = {
1784
+ var me = {
1820
1785
  "001": [
1821
1786
  "H",
1822
1787
  "h"
@@ -3231,23 +3196,23 @@ var pe = {
3231
3196
  "h"
3232
3197
  ]
3233
3198
  };
3234
- function bi(e, t) {
3235
- for (var r = "", n = 0; n < e.length; n++) {
3236
- var i = e.charAt(n);
3199
+ function ci(e, t) {
3200
+ for (var n = "", r = 0; r < e.length; r++) {
3201
+ var i = e.charAt(r);
3237
3202
  if (i === "j") {
3238
- for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3239
- o++, n++;
3240
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = gi(t);
3203
+ for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
3204
+ o++, r++;
3205
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = di(t);
3241
3206
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3242
- r += l;
3207
+ n += l;
3243
3208
  for (; s-- > 0; )
3244
- r = u + r;
3209
+ n = u + n;
3245
3210
  } else
3246
- i === "J" ? r += "H" : r += i;
3211
+ i === "J" ? n += "H" : n += i;
3247
3212
  }
3248
- return r;
3213
+ return n;
3249
3214
  }
3250
- function gi(e) {
3215
+ function di(e) {
3251
3216
  var t = e.hourCycle;
3252
3217
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3253
3218
  e.hourCycles && // @ts-ignore
@@ -3264,73 +3229,73 @@ function gi(e) {
3264
3229
  default:
3265
3230
  throw new Error("Invalid hourCycle");
3266
3231
  }
3267
- var r = e.language, n;
3268
- r !== "root" && (n = e.maximize().region);
3269
- var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
3232
+ var n = e.language, r;
3233
+ n !== "root" && (r = e.maximize().region);
3234
+ var i = me[r || ""] || me[n || ""] || me["".concat(n, "-001")] || me["001"];
3270
3235
  return i[0];
3271
3236
  }
3272
- var De, yi = new RegExp("^".concat(gr.source, "*")), vi = new RegExp("".concat(gr.source, "*$"));
3237
+ var $e, mi = new RegExp("^".concat(mn.source, "*")), pi = new RegExp("".concat(mn.source, "*$"));
3273
3238
  function _(e, t) {
3274
3239
  return { start: e, end: t };
3275
3240
  }
3276
- var _i = !!String.prototype.startsWith && "_a".startsWith("a", 1), xi = !!String.fromCodePoint, Ei = !!Object.fromEntries, wi = !!String.prototype.codePointAt, Si = !!String.prototype.trimStart, Ti = !!String.prototype.trimEnd, Hi = !!Number.isSafeInteger, Ai = Hi ? Number.isSafeInteger : function(e) {
3241
+ var bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), gi = !!String.fromCodePoint, yi = !!Object.fromEntries, vi = !!String.prototype.codePointAt, _i = !!String.prototype.trimStart, xi = !!String.prototype.trimEnd, Ei = !!Number.isSafeInteger, wi = Ei ? Number.isSafeInteger : function(e) {
3277
3242
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3278
- }, et = !0;
3243
+ }, Qe = !0;
3279
3244
  try {
3280
- var Bi = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3281
- et = ((De = Bi.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
3245
+ var Si = vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3246
+ Qe = (($e = Si.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
3282
3247
  } catch (e) {
3283
- et = !1;
3248
+ Qe = !1;
3284
3249
  }
3285
- var Mt = _i ? (
3250
+ var Ct = bi ? (
3286
3251
  // Native
3287
- function(t, r, n) {
3288
- return t.startsWith(r, n);
3252
+ function(t, n, r) {
3253
+ return t.startsWith(n, r);
3289
3254
  }
3290
3255
  ) : (
3291
3256
  // For IE11
3292
- function(t, r, n) {
3293
- return t.slice(n, n + r.length) === r;
3257
+ function(t, n, r) {
3258
+ return t.slice(r, r + n.length) === n;
3294
3259
  }
3295
- ), tt = xi ? String.fromCodePoint : (
3260
+ ), Je = gi ? String.fromCodePoint : (
3296
3261
  // IE11
3297
3262
  function() {
3298
- for (var t = [], r = 0; r < arguments.length; r++)
3299
- t[r] = arguments[r];
3300
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
3263
+ for (var t = [], n = 0; n < arguments.length; n++)
3264
+ t[n] = arguments[n];
3265
+ for (var r = "", i = t.length, o = 0, s; i > o; ) {
3301
3266
  if (s = t[o++], s > 1114111)
3302
3267
  throw RangeError(s + " is not a valid code point");
3303
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3268
+ r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
3304
3269
  }
3305
- return n;
3270
+ return r;
3306
3271
  }
3307
- ), Nt = (
3272
+ ), Pt = (
3308
3273
  // native
3309
- Ei ? Object.fromEntries : (
3274
+ yi ? Object.fromEntries : (
3310
3275
  // Ponyfill
3311
3276
  function(t) {
3312
- for (var r = {}, n = 0, i = t; n < i.length; n++) {
3313
- var o = i[n], s = o[0], a = o[1];
3314
- r[s] = a;
3277
+ for (var n = {}, r = 0, i = t; r < i.length; r++) {
3278
+ var o = i[r], s = o[0], a = o[1];
3279
+ n[s] = a;
3315
3280
  }
3316
- return r;
3281
+ return n;
3317
3282
  }
3318
3283
  )
3319
- ), xr = wi ? (
3284
+ ), yn = vi ? (
3320
3285
  // Native
3321
- function(t, r) {
3322
- return t.codePointAt(r);
3286
+ function(t, n) {
3287
+ return t.codePointAt(n);
3323
3288
  }
3324
3289
  ) : (
3325
3290
  // IE 11
3326
- function(t, r) {
3327
- var n = t.length;
3328
- if (!(r < 0 || r >= n)) {
3329
- var i = t.charCodeAt(r), o;
3330
- return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3291
+ function(t, n) {
3292
+ var r = t.length;
3293
+ if (!(n < 0 || n >= r)) {
3294
+ var i = t.charCodeAt(n), o;
3295
+ return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3331
3296
  }
3332
3297
  }
3333
- ), Ci = Si ? (
3298
+ ), Ti = _i ? (
3334
3299
  // Native
3335
3300
  function(t) {
3336
3301
  return t.trimStart();
@@ -3338,9 +3303,9 @@ var Mt = _i ? (
3338
3303
  ) : (
3339
3304
  // Ponyfill
3340
3305
  function(t) {
3341
- return t.replace(yi, "");
3306
+ return t.replace(mi, "");
3342
3307
  }
3343
- ), Pi = Ti ? (
3308
+ ), Hi = xi ? (
3344
3309
  // Native
3345
3310
  function(t) {
3346
3311
  return t.trimEnd();
@@ -3348,69 +3313,69 @@ var Mt = _i ? (
3348
3313
  ) : (
3349
3314
  // Ponyfill
3350
3315
  function(t) {
3351
- return t.replace(vi, "");
3316
+ return t.replace(pi, "");
3352
3317
  }
3353
3318
  );
3354
- function Er(e, t) {
3319
+ function vn(e, t) {
3355
3320
  return new RegExp(e, t);
3356
3321
  }
3357
- var rt;
3358
- if (et) {
3359
- var Lt = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3360
- rt = function(t, r) {
3361
- var n;
3362
- Lt.lastIndex = r;
3363
- var i = Lt.exec(t);
3364
- return (n = i[1]) !== null && n !== void 0 ? n : "";
3322
+ var qe;
3323
+ if (Qe) {
3324
+ var Ot = vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3325
+ qe = function(t, n) {
3326
+ var r;
3327
+ Ot.lastIndex = n;
3328
+ var i = Ot.exec(t);
3329
+ return (r = i[1]) !== null && r !== void 0 ? r : "";
3365
3330
  };
3366
3331
  } else
3367
- rt = function(t, r) {
3368
- for (var n = []; ; ) {
3369
- var i = xr(t, r);
3370
- if (i === void 0 || wr(i) || Ni(i))
3332
+ qe = function(t, n) {
3333
+ for (var r = []; ; ) {
3334
+ var i = yn(t, n);
3335
+ if (i === void 0 || _n(i) || Pi(i))
3371
3336
  break;
3372
- n.push(i), r += i >= 65536 ? 2 : 1;
3337
+ r.push(i), n += i >= 65536 ? 2 : 1;
3373
3338
  }
3374
- return tt.apply(void 0, n);
3339
+ return Je.apply(void 0, r);
3375
3340
  };
3376
- var Oi = (
3341
+ var Ai = (
3377
3342
  /** @class */
3378
3343
  function() {
3379
- function e(t, r) {
3380
- r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
3344
+ function e(t, n) {
3345
+ n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
3381
3346
  }
3382
3347
  return e.prototype.parse = function() {
3383
3348
  if (this.offset() !== 0)
3384
3349
  throw Error("parser can only be used once");
3385
3350
  return this.parseMessage(0, "", !1);
3386
- }, e.prototype.parseMessage = function(t, r, n) {
3351
+ }, e.prototype.parseMessage = function(t, n, r) {
3387
3352
  for (var i = []; !this.isEOF(); ) {
3388
3353
  var o = this.char();
3389
3354
  if (o === 123) {
3390
- var s = this.parseArgument(t, n);
3355
+ var s = this.parseArgument(t, r);
3391
3356
  if (s.err)
3392
3357
  return s;
3393
3358
  i.push(s.val);
3394
3359
  } else {
3395
3360
  if (o === 125 && t > 0)
3396
3361
  break;
3397
- if (o === 35 && (r === "plural" || r === "selectordinal")) {
3362
+ if (o === 35 && (n === "plural" || n === "selectordinal")) {
3398
3363
  var a = this.clonePosition();
3399
3364
  this.bump(), i.push({
3400
- type: w.pound,
3365
+ type: S.pound,
3401
3366
  location: _(a, this.clonePosition())
3402
3367
  });
3403
3368
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3404
- if (n)
3369
+ if (r)
3405
3370
  break;
3406
3371
  return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
3407
- } else if (o === 60 && !this.ignoreTag && nt(this.peek() || 0)) {
3408
- var s = this.parseTag(t, r);
3372
+ } else if (o === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
3373
+ var s = this.parseTag(t, n);
3409
3374
  if (s.err)
3410
3375
  return s;
3411
3376
  i.push(s.val);
3412
3377
  } else {
3413
- var s = this.parseLiteral(t, r);
3378
+ var s = this.parseLiteral(t, n);
3414
3379
  if (s.err)
3415
3380
  return s;
3416
3381
  i.push(s.val);
@@ -3418,54 +3383,54 @@ var Oi = (
3418
3383
  }
3419
3384
  }
3420
3385
  return { val: i, err: null };
3421
- }, e.prototype.parseTag = function(t, r) {
3422
- var n = this.clonePosition();
3386
+ }, e.prototype.parseTag = function(t, n) {
3387
+ var r = this.clonePosition();
3423
3388
  this.bump();
3424
3389
  var i = this.parseTagName();
3425
3390
  if (this.bumpSpace(), this.bumpIf("/>"))
3426
3391
  return {
3427
3392
  val: {
3428
- type: w.literal,
3393
+ type: S.literal,
3429
3394
  value: "<".concat(i, "/>"),
3430
- location: _(n, this.clonePosition())
3395
+ location: _(r, this.clonePosition())
3431
3396
  },
3432
3397
  err: null
3433
3398
  };
3434
3399
  if (this.bumpIf(">")) {
3435
- var o = this.parseMessage(t + 1, r, !0);
3400
+ var o = this.parseMessage(t + 1, n, !0);
3436
3401
  if (o.err)
3437
3402
  return o;
3438
3403
  var s = o.val, a = this.clonePosition();
3439
3404
  if (this.bumpIf("</")) {
3440
- if (this.isEOF() || !nt(this.char()))
3405
+ if (this.isEOF() || !Ye(this.char()))
3441
3406
  return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
3442
3407
  var l = this.clonePosition(), u = this.parseTagName();
3443
3408
  return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3444
3409
  val: {
3445
- type: w.tag,
3410
+ type: S.tag,
3446
3411
  value: i,
3447
3412
  children: s,
3448
- location: _(n, this.clonePosition())
3413
+ location: _(r, this.clonePosition())
3449
3414
  },
3450
3415
  err: null
3451
3416
  } : this.error(y.INVALID_TAG, _(a, this.clonePosition())));
3452
3417
  } else
3453
- return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
3418
+ return this.error(y.UNCLOSED_TAG, _(r, this.clonePosition()));
3454
3419
  } else
3455
- return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
3420
+ return this.error(y.INVALID_TAG, _(r, this.clonePosition()));
3456
3421
  }, e.prototype.parseTagName = function() {
3457
3422
  var t = this.offset();
3458
- for (this.bump(); !this.isEOF() && Mi(this.char()); )
3423
+ for (this.bump(); !this.isEOF() && Ci(this.char()); )
3459
3424
  this.bump();
3460
3425
  return this.message.slice(t, this.offset());
3461
- }, e.prototype.parseLiteral = function(t, r) {
3462
- for (var n = this.clonePosition(), i = ""; ; ) {
3463
- var o = this.tryParseQuote(r);
3426
+ }, e.prototype.parseLiteral = function(t, n) {
3427
+ for (var r = this.clonePosition(), i = ""; ; ) {
3428
+ var o = this.tryParseQuote(n);
3464
3429
  if (o) {
3465
3430
  i += o;
3466
3431
  continue;
3467
3432
  }
3468
- var s = this.tryParseUnquoted(t, r);
3433
+ var s = this.tryParseUnquoted(t, n);
3469
3434
  if (s) {
3470
3435
  i += s;
3471
3436
  continue;
@@ -3477,14 +3442,14 @@ var Oi = (
3477
3442
  }
3478
3443
  break;
3479
3444
  }
3480
- var l = _(n, this.clonePosition());
3445
+ var l = _(r, this.clonePosition());
3481
3446
  return {
3482
- val: { type: w.literal, value: i, location: l },
3447
+ val: { type: S.literal, value: i, location: l },
3483
3448
  err: null
3484
3449
  };
3485
3450
  }, e.prototype.tryParseLeftAngleBracket = function() {
3486
3451
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3487
- !Ii(this.peek() || 0)) ? (this.bump(), "<") : null;
3452
+ !Bi(this.peek() || 0)) ? (this.bump(), "<") : null;
3488
3453
  }, e.prototype.tryParseQuote = function(t) {
3489
3454
  if (this.isEOF() || this.char() !== 39)
3490
3455
  return null;
@@ -3504,59 +3469,59 @@ var Oi = (
3504
3469
  return null;
3505
3470
  }
3506
3471
  this.bump();
3507
- var r = [this.char()];
3472
+ var n = [this.char()];
3508
3473
  for (this.bump(); !this.isEOF(); ) {
3509
- var n = this.char();
3510
- if (n === 39)
3474
+ var r = this.char();
3475
+ if (r === 39)
3511
3476
  if (this.peek() === 39)
3512
- r.push(39), this.bump();
3477
+ n.push(39), this.bump();
3513
3478
  else {
3514
3479
  this.bump();
3515
3480
  break;
3516
3481
  }
3517
3482
  else
3518
- r.push(n);
3483
+ n.push(r);
3519
3484
  this.bump();
3520
3485
  }
3521
- return tt.apply(void 0, r);
3522
- }, e.prototype.tryParseUnquoted = function(t, r) {
3486
+ return Je.apply(void 0, n);
3487
+ }, e.prototype.tryParseUnquoted = function(t, n) {
3523
3488
  if (this.isEOF())
3524
3489
  return null;
3525
- var n = this.char();
3526
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tt(n));
3527
- }, e.prototype.parseArgument = function(t, r) {
3528
- var n = this.clonePosition();
3490
+ var r = this.char();
3491
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Je(r));
3492
+ }, e.prototype.parseArgument = function(t, n) {
3493
+ var r = this.clonePosition();
3529
3494
  if (this.bump(), this.bumpSpace(), this.isEOF())
3530
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3495
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition()));
3531
3496
  if (this.char() === 125)
3532
- return this.bump(), this.error(y.EMPTY_ARGUMENT, _(n, this.clonePosition()));
3497
+ return this.bump(), this.error(y.EMPTY_ARGUMENT, _(r, this.clonePosition()));
3533
3498
  var i = this.parseIdentifierIfPossible().value;
3534
3499
  if (!i)
3535
- return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3500
+ return this.error(y.MALFORMED_ARGUMENT, _(r, this.clonePosition()));
3536
3501
  if (this.bumpSpace(), this.isEOF())
3537
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3502
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition()));
3538
3503
  switch (this.char()) {
3539
3504
  case 125:
3540
3505
  return this.bump(), {
3541
3506
  val: {
3542
- type: w.argument,
3507
+ type: S.argument,
3543
3508
  // value does not include the opening and closing braces.
3544
3509
  value: i,
3545
- location: _(n, this.clonePosition())
3510
+ location: _(r, this.clonePosition())
3546
3511
  },
3547
3512
  err: null
3548
3513
  };
3549
3514
  case 44:
3550
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3515
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
3551
3516
  default:
3552
- return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3517
+ return this.error(y.MALFORMED_ARGUMENT, _(r, this.clonePosition()));
3553
3518
  }
3554
3519
  }, e.prototype.parseIdentifierIfPossible = function() {
3555
- var t = this.clonePosition(), r = this.offset(), n = rt(this.message, r), i = r + n.length;
3520
+ var t = this.clonePosition(), n = this.offset(), r = qe(this.message, n), i = n + r.length;
3556
3521
  this.bumpTo(i);
3557
3522
  var o = this.clonePosition(), s = _(t, o);
3558
- return { value: n, location: s };
3559
- }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3523
+ return { value: r, location: s };
3524
+ }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
3560
3525
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3561
3526
  switch (a) {
3562
3527
  case "":
@@ -3568,49 +3533,49 @@ var Oi = (
3568
3533
  var u = null;
3569
3534
  if (this.bumpIf(",")) {
3570
3535
  this.bumpSpace();
3571
- var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3572
- if (c.err)
3573
- return c;
3574
- var f = Pi(c.val);
3575
- if (f.length === 0)
3536
+ var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3537
+ if (f.err)
3538
+ return f;
3539
+ var c = Hi(f.val);
3540
+ if (c.length === 0)
3576
3541
  return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3577
- var p = _(h, this.clonePosition());
3578
- u = { style: f, styleLocation: p };
3542
+ var m = _(h, this.clonePosition());
3543
+ u = { style: c, styleLocation: m };
3579
3544
  }
3580
- var m = this.tryParseArgumentClose(i);
3581
- if (m.err)
3582
- return m;
3583
- var d = _(i, this.clonePosition());
3584
- if (u && Mt(u == null ? void 0 : u.style, "::", 0)) {
3585
- var g = Ci(u.style.slice(2));
3545
+ var d = this.tryParseArgumentClose(i);
3546
+ if (d.err)
3547
+ return d;
3548
+ var p = _(i, this.clonePosition());
3549
+ if (u && Ct(u == null ? void 0 : u.style, "::", 0)) {
3550
+ var g = Ti(u.style.slice(2));
3586
3551
  if (a === "number") {
3587
- var c = this.parseNumberSkeletonFromString(g, u.styleLocation);
3588
- return c.err ? c : {
3589
- val: { type: w.number, value: n, location: d, style: c.val },
3552
+ var f = this.parseNumberSkeletonFromString(g, u.styleLocation);
3553
+ return f.err ? f : {
3554
+ val: { type: S.number, value: r, location: p, style: f.val },
3590
3555
  err: null
3591
3556
  };
3592
3557
  } else {
3593
3558
  if (g.length === 0)
3594
- return this.error(y.EXPECT_DATE_TIME_SKELETON, d);
3595
- var A = g;
3596
- this.locale && (A = bi(g, this.locale));
3597
- var f = {
3598
- type: Q.dateTime,
3599
- pattern: A,
3559
+ return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
3560
+ var H = g;
3561
+ this.locale && (H = ci(g, this.locale));
3562
+ var c = {
3563
+ type: J.dateTime,
3564
+ pattern: H,
3600
3565
  location: u.styleLocation,
3601
- parsedOptions: this.shouldParseSkeletons ? li(A) : {}
3602
- }, T = a === "date" ? w.date : w.time;
3566
+ parsedOptions: this.shouldParseSkeletons ? oi(H) : {}
3567
+ }, A = a === "date" ? S.date : S.time;
3603
3568
  return {
3604
- val: { type: T, value: n, location: d, style: f },
3569
+ val: { type: A, value: r, location: p, style: c },
3605
3570
  err: null
3606
3571
  };
3607
3572
  }
3608
3573
  }
3609
3574
  return {
3610
3575
  val: {
3611
- type: a === "number" ? w.number : a === "date" ? w.date : w.time,
3612
- value: n,
3613
- location: d,
3576
+ type: a === "number" ? S.number : a === "date" ? S.date : S.time,
3577
+ value: r,
3578
+ location: p,
3614
3579
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3615
3580
  },
3616
3581
  err: null
@@ -3621,41 +3586,41 @@ var Oi = (
3621
3586
  case "select": {
3622
3587
  var x = this.clonePosition();
3623
3588
  if (this.bumpSpace(), !this.bumpIf(","))
3624
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(x, we({}, x)));
3589
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(x, E({}, x)));
3625
3590
  this.bumpSpace();
3626
- var E = this.parseIdentifierIfPossible(), b = 0;
3627
- if (a !== "select" && E.value === "offset") {
3591
+ var w = this.parseIdentifierIfPossible(), b = 0;
3592
+ if (a !== "select" && w.value === "offset") {
3628
3593
  if (!this.bumpIf(":"))
3629
3594
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
3630
3595
  this.bumpSpace();
3631
- var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3632
- if (c.err)
3633
- return c;
3634
- this.bumpSpace(), E = this.parseIdentifierIfPossible(), b = c.val;
3596
+ var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3597
+ if (f.err)
3598
+ return f;
3599
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), b = f.val;
3635
3600
  }
3636
- var B = this.tryParsePluralOrSelectOptions(t, a, r, E);
3601
+ var B = this.tryParsePluralOrSelectOptions(t, a, n, w);
3637
3602
  if (B.err)
3638
3603
  return B;
3639
- var m = this.tryParseArgumentClose(i);
3640
- if (m.err)
3641
- return m;
3642
- var ce = _(i, this.clonePosition());
3604
+ var d = this.tryParseArgumentClose(i);
3605
+ if (d.err)
3606
+ return d;
3607
+ var fe = _(i, this.clonePosition());
3643
3608
  return a === "select" ? {
3644
3609
  val: {
3645
- type: w.select,
3646
- value: n,
3647
- options: Nt(B.val),
3648
- location: ce
3610
+ type: S.select,
3611
+ value: r,
3612
+ options: Pt(B.val),
3613
+ location: fe
3649
3614
  },
3650
3615
  err: null
3651
3616
  } : {
3652
3617
  val: {
3653
- type: w.plural,
3654
- value: n,
3655
- options: Nt(B.val),
3618
+ type: S.plural,
3619
+ value: r,
3620
+ options: Pt(B.val),
3656
3621
  offset: b,
3657
3622
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3658
- location: ce
3623
+ location: fe
3659
3624
  },
3660
3625
  err: null
3661
3626
  };
@@ -3666,9 +3631,9 @@ var Oi = (
3666
3631
  }, e.prototype.tryParseArgumentClose = function(t) {
3667
3632
  return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3668
3633
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3669
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3670
- var n = this.char();
3671
- switch (n) {
3634
+ for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
3635
+ var r = this.char();
3636
+ switch (r) {
3672
3637
  case 39: {
3673
3638
  this.bump();
3674
3639
  var i = this.clonePosition();
@@ -3686,7 +3651,7 @@ var Oi = (
3686
3651
  t -= 1;
3687
3652
  else
3688
3653
  return {
3689
- val: this.message.slice(r.offset, this.offset()),
3654
+ val: this.message.slice(n.offset, this.offset()),
3690
3655
  err: null
3691
3656
  };
3692
3657
  break;
@@ -3697,61 +3662,61 @@ var Oi = (
3697
3662
  }
3698
3663
  }
3699
3664
  return {
3700
- val: this.message.slice(r.offset, this.offset()),
3665
+ val: this.message.slice(n.offset, this.offset()),
3701
3666
  err: null
3702
3667
  };
3703
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3704
- var n = [];
3668
+ }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3669
+ var r = [];
3705
3670
  try {
3706
- n = ci(t);
3671
+ r = ai(t);
3707
3672
  } catch (i) {
3708
- return this.error(y.INVALID_NUMBER_SKELETON, r);
3673
+ return this.error(y.INVALID_NUMBER_SKELETON, n);
3709
3674
  }
3710
3675
  return {
3711
3676
  val: {
3712
- type: Q.number,
3713
- tokens: n,
3714
- location: r,
3715
- parsedOptions: this.shouldParseSkeletons ? di(n) : {}
3677
+ type: J.number,
3678
+ tokens: r,
3679
+ location: n,
3680
+ parsedOptions: this.shouldParseSkeletons ? fi(r) : {}
3716
3681
  },
3717
3682
  err: null
3718
3683
  };
3719
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3684
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3720
3685
  for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3721
3686
  if (u.length === 0) {
3722
- var c = this.clonePosition();
3723
- if (r !== "select" && this.bumpIf("=")) {
3724
- var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3725
- if (f.err)
3726
- return f;
3727
- h = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3687
+ var f = this.clonePosition();
3688
+ if (n !== "select" && this.bumpIf("=")) {
3689
+ var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3690
+ if (c.err)
3691
+ return c;
3692
+ h = _(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3728
3693
  } else
3729
3694
  break;
3730
3695
  }
3731
3696
  if (l.has(u))
3732
- return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3697
+ return this.error(n === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3733
3698
  u === "other" && (s = !0), this.bumpSpace();
3734
- var p = this.clonePosition();
3699
+ var m = this.clonePosition();
3735
3700
  if (!this.bumpIf("{"))
3736
- return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
3737
- var m = this.parseMessage(t + 1, r, n);
3738
- if (m.err)
3739
- return m;
3740
- var d = this.tryParseArgumentClose(p);
3701
+ return this.error(n === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
3702
+ var d = this.parseMessage(t + 1, n, r);
3741
3703
  if (d.err)
3742
3704
  return d;
3705
+ var p = this.tryParseArgumentClose(m);
3706
+ if (p.err)
3707
+ return p;
3743
3708
  a.push([
3744
3709
  u,
3745
3710
  {
3746
- value: m.val,
3747
- location: _(p, this.clonePosition())
3711
+ value: d.val,
3712
+ location: _(m, this.clonePosition())
3748
3713
  }
3749
3714
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3750
3715
  }
3751
- return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3752
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
3753
- var n = 1, i = this.clonePosition();
3754
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3716
+ return a.length === 0 ? this.error(n === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3717
+ }, e.prototype.tryParseDecimalInteger = function(t, n) {
3718
+ var r = 1, i = this.clonePosition();
3719
+ this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3755
3720
  for (var o = !1, s = 0; !this.isEOF(); ) {
3756
3721
  var a = this.char();
3757
3722
  if (a >= 48 && a <= 57)
@@ -3760,7 +3725,7 @@ var Oi = (
3760
3725
  break;
3761
3726
  }
3762
3727
  var l = _(i, this.clonePosition());
3763
- return o ? (s *= n, Ai(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3728
+ return o ? (s *= r, wi(s) ? { val: s, err: null } : this.error(n, l)) : this.error(t, l);
3764
3729
  }, e.prototype.offset = function() {
3765
3730
  return this.position.offset;
3766
3731
  }, e.prototype.isEOF = function() {
@@ -3775,17 +3740,17 @@ var Oi = (
3775
3740
  var t = this.position.offset;
3776
3741
  if (t >= this.message.length)
3777
3742
  throw Error("out of bound");
3778
- var r = xr(this.message, t);
3779
- if (r === void 0)
3743
+ var n = yn(this.message, t);
3744
+ if (n === void 0)
3780
3745
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3781
- return r;
3782
- }, e.prototype.error = function(t, r) {
3746
+ return n;
3747
+ }, e.prototype.error = function(t, n) {
3783
3748
  return {
3784
3749
  val: null,
3785
3750
  err: {
3786
3751
  kind: t,
3787
3752
  message: this.message,
3788
- location: r
3753
+ location: n
3789
3754
  }
3790
3755
  };
3791
3756
  }, e.prototype.bump = function() {
@@ -3794,129 +3759,129 @@ var Oi = (
3794
3759
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3795
3760
  }
3796
3761
  }, e.prototype.bumpIf = function(t) {
3797
- if (Mt(this.message, t, this.offset())) {
3798
- for (var r = 0; r < t.length; r++)
3762
+ if (Ct(this.message, t, this.offset())) {
3763
+ for (var n = 0; n < t.length; n++)
3799
3764
  this.bump();
3800
3765
  return !0;
3801
3766
  }
3802
3767
  return !1;
3803
3768
  }, e.prototype.bumpUntil = function(t) {
3804
- var r = this.offset(), n = this.message.indexOf(t, r);
3805
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3769
+ var n = this.offset(), r = this.message.indexOf(t, n);
3770
+ return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3806
3771
  }, e.prototype.bumpTo = function(t) {
3807
3772
  if (this.offset() > t)
3808
3773
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3809
3774
  for (t = Math.min(t, this.message.length); ; ) {
3810
- var r = this.offset();
3811
- if (r === t)
3775
+ var n = this.offset();
3776
+ if (n === t)
3812
3777
  break;
3813
- if (r > t)
3778
+ if (n > t)
3814
3779
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3815
3780
  if (this.bump(), this.isEOF())
3816
3781
  break;
3817
3782
  }
3818
3783
  }, e.prototype.bumpSpace = function() {
3819
- for (; !this.isEOF() && wr(this.char()); )
3784
+ for (; !this.isEOF() && _n(this.char()); )
3820
3785
  this.bump();
3821
3786
  }, e.prototype.peek = function() {
3822
3787
  if (this.isEOF())
3823
3788
  return null;
3824
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3825
- return n != null ? n : null;
3789
+ var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3790
+ return r != null ? r : null;
3826
3791
  }, e;
3827
3792
  }()
3828
3793
  );
3829
- function nt(e) {
3794
+ function Ye(e) {
3830
3795
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3831
3796
  }
3832
- function Ii(e) {
3833
- return nt(e) || e === 47;
3797
+ function Bi(e) {
3798
+ return Ye(e) || e === 47;
3834
3799
  }
3835
- function Mi(e) {
3800
+ function Ci(e) {
3836
3801
  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;
3837
3802
  }
3838
- function wr(e) {
3803
+ function _n(e) {
3839
3804
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3840
3805
  }
3841
- function Ni(e) {
3806
+ function Pi(e) {
3842
3807
  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;
3843
3808
  }
3844
- function it(e) {
3809
+ function Ke(e) {
3845
3810
  e.forEach(function(t) {
3846
- if (delete t.location, mr(t) || pr(t))
3847
- for (var r in t.options)
3848
- delete t.options[r].location, it(t.options[r].value);
3811
+ if (delete t.location, hn(t) || fn(t))
3812
+ for (var n in t.options)
3813
+ delete t.options[n].location, Ke(t.options[n].value);
3849
3814
  else
3850
- hr(t) && br(t.style) || (cr(t) || fr(t)) && Ke(t.style) ? delete t.style.location : dr(t) && it(t.children);
3815
+ an(t) && dn(t.style) || (un(t) || ln(t)) && Ze(t.style) ? delete t.style.location : cn(t) && Ke(t.children);
3851
3816
  });
3852
3817
  }
3853
- function Li(e, t) {
3854
- t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3855
- var r = new Oi(e, t).parse();
3856
- if (r.err) {
3857
- var n = SyntaxError(y[r.err.kind]);
3858
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3818
+ function Oi(e, t) {
3819
+ t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3820
+ var n = new Ai(e, t).parse();
3821
+ if (n.err) {
3822
+ var r = SyntaxError(y[n.err.kind]);
3823
+ throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3859
3824
  }
3860
- return t != null && t.captureLocation || it(r.val), r.val;
3825
+ return t != null && t.captureLocation || Ke(n.val), n.val;
3861
3826
  }
3862
- var J;
3827
+ var q;
3863
3828
  (function(e) {
3864
3829
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3865
- })(J || (J = {}));
3866
- var Pe = (
3830
+ })(q || (q = {}));
3831
+ var Be = (
3867
3832
  /** @class */
3868
3833
  function(e) {
3869
- Ce(t, e);
3870
- function t(r, n, i) {
3871
- var o = e.call(this, r) || this;
3872
- return o.code = n, o.originalMessage = i, o;
3834
+ $(t, e);
3835
+ function t(n, r, i) {
3836
+ var o = e.call(this, n) || this;
3837
+ return o.code = r, o.originalMessage = i, o;
3873
3838
  }
3874
3839
  return t.prototype.toString = function() {
3875
3840
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3876
3841
  }, t;
3877
3842
  }(Error)
3878
- ), $t = (
3843
+ ), It = (
3879
3844
  /** @class */
3880
3845
  function(e) {
3881
- Ce(t, e);
3882
- function t(r, n, i, o) {
3883
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, o) || this;
3846
+ $(t, e);
3847
+ function t(n, r, i, o) {
3848
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
3884
3849
  }
3885
3850
  return t;
3886
- }(Pe)
3887
- ), $i = (
3851
+ }(Be)
3852
+ ), Ii = (
3888
3853
  /** @class */
3889
3854
  function(e) {
3890
- Ce(t, e);
3891
- function t(r, n, i) {
3892
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
3855
+ $(t, e);
3856
+ function t(n, r, i) {
3857
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), q.INVALID_VALUE, i) || this;
3893
3858
  }
3894
3859
  return t;
3895
- }(Pe)
3896
- ), Ri = (
3860
+ }(Be)
3861
+ ), Mi = (
3897
3862
  /** @class */
3898
3863
  function(e) {
3899
- Ce(t, e);
3900
- function t(r, n) {
3901
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
3864
+ $(t, e);
3865
+ function t(n, r) {
3866
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), q.MISSING_VALUE, r) || this;
3902
3867
  }
3903
3868
  return t;
3904
- }(Pe)
3869
+ }(Be)
3905
3870
  ), P;
3906
3871
  (function(e) {
3907
3872
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3908
3873
  })(P || (P = {}));
3909
- function Gi(e) {
3910
- return e.length < 2 ? e : e.reduce(function(t, r) {
3911
- var n = t[t.length - 1];
3912
- return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
3874
+ function Ni(e) {
3875
+ return e.length < 2 ? e : e.reduce(function(t, n) {
3876
+ var r = t[t.length - 1];
3877
+ return !r || r.type !== P.literal || n.type !== P.literal ? t.push(n) : r.value += n.value, t;
3913
3878
  }, []);
3914
3879
  }
3915
- function Ui(e) {
3880
+ function Li(e) {
3916
3881
  return typeof e == "function";
3917
3882
  }
3918
- function ye(e, t, r, n, i, o, s) {
3919
- if (e.length === 1 && Ct(e[0]))
3883
+ function ye(e, t, n, r, i, o, s) {
3884
+ if (e.length === 1 && Tt(e[0]))
3920
3885
  return [
3921
3886
  {
3922
3887
  type: P.literal,
@@ -3925,155 +3890,155 @@ function ye(e, t, r, n, i, o, s) {
3925
3890
  ];
3926
3891
  for (var a = [], l = 0, u = e; l < u.length; l++) {
3927
3892
  var h = u[l];
3928
- if (Ct(h)) {
3893
+ if (Tt(h)) {
3929
3894
  a.push({
3930
3895
  type: P.literal,
3931
3896
  value: h.value
3932
3897
  });
3933
3898
  continue;
3934
3899
  }
3935
- if (ai(h)) {
3900
+ if (ri(h)) {
3936
3901
  typeof o == "number" && a.push({
3937
3902
  type: P.literal,
3938
- value: r.getNumberFormat(t).format(o)
3903
+ value: n.getNumberFormat(t).format(o)
3939
3904
  });
3940
3905
  continue;
3941
3906
  }
3942
- var c = h.value;
3943
- if (!(i && c in i))
3944
- throw new Ri(c, s);
3945
- var f = i[c];
3946
- if (si(h)) {
3947
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3948
- type: typeof f == "string" ? P.literal : P.object,
3949
- value: f
3907
+ var f = h.value;
3908
+ if (!(i && f in i))
3909
+ throw new Mi(f, s);
3910
+ var c = i[f];
3911
+ if (ni(h)) {
3912
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3913
+ type: typeof c == "string" ? P.literal : P.object,
3914
+ value: c
3950
3915
  });
3951
3916
  continue;
3952
3917
  }
3953
- if (cr(h)) {
3954
- var p = typeof h.style == "string" ? n.date[h.style] : Ke(h.style) ? h.style.parsedOptions : void 0;
3918
+ if (un(h)) {
3919
+ var m = typeof h.style == "string" ? r.date[h.style] : Ze(h.style) ? h.style.parsedOptions : void 0;
3955
3920
  a.push({
3956
3921
  type: P.literal,
3957
- value: r.getDateTimeFormat(t, p).format(f)
3922
+ value: n.getDateTimeFormat(t, m).format(c)
3958
3923
  });
3959
3924
  continue;
3960
3925
  }
3961
- if (fr(h)) {
3962
- var p = typeof h.style == "string" ? n.time[h.style] : Ke(h.style) ? h.style.parsedOptions : n.time.medium;
3926
+ if (ln(h)) {
3927
+ var m = typeof h.style == "string" ? r.time[h.style] : Ze(h.style) ? h.style.parsedOptions : r.time.medium;
3963
3928
  a.push({
3964
3929
  type: P.literal,
3965
- value: r.getDateTimeFormat(t, p).format(f)
3930
+ value: n.getDateTimeFormat(t, m).format(c)
3966
3931
  });
3967
3932
  continue;
3968
3933
  }
3969
- if (hr(h)) {
3970
- var p = typeof h.style == "string" ? n.number[h.style] : br(h.style) ? h.style.parsedOptions : void 0;
3971
- p && p.scale && (f = f * (p.scale || 1)), a.push({
3934
+ if (an(h)) {
3935
+ var m = typeof h.style == "string" ? r.number[h.style] : dn(h.style) ? h.style.parsedOptions : void 0;
3936
+ m && m.scale && (c = c * (m.scale || 1)), a.push({
3972
3937
  type: P.literal,
3973
- value: r.getNumberFormat(t, p).format(f)
3938
+ value: n.getNumberFormat(t, m).format(c)
3974
3939
  });
3975
3940
  continue;
3976
3941
  }
3977
- if (dr(h)) {
3978
- var m = h.children, d = h.value, g = i[d];
3979
- if (!Ui(g))
3980
- throw new $i(d, "function", s);
3981
- var A = ye(m, t, r, n, i, o), T = g(A.map(function(b) {
3942
+ if (cn(h)) {
3943
+ var d = h.children, p = h.value, g = i[p];
3944
+ if (!Li(g))
3945
+ throw new Ii(p, "function", s);
3946
+ var H = ye(d, t, n, r, i, o), A = g(H.map(function(b) {
3982
3947
  return b.value;
3983
3948
  }));
3984
- Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(b) {
3949
+ Array.isArray(A) || (A = [A]), a.push.apply(a, A.map(function(b) {
3985
3950
  return {
3986
3951
  type: typeof b == "string" ? P.literal : P.object,
3987
3952
  value: b
3988
3953
  };
3989
3954
  }));
3990
3955
  }
3991
- if (mr(h)) {
3992
- var x = h.options[f] || h.options.other;
3956
+ if (hn(h)) {
3957
+ var x = h.options[c] || h.options.other;
3993
3958
  if (!x)
3994
- throw new $t(h.value, f, Object.keys(h.options), s);
3995
- a.push.apply(a, ye(x.value, t, r, n, i));
3959
+ throw new It(h.value, c, Object.keys(h.options), s);
3960
+ a.push.apply(a, ye(x.value, t, n, r, i));
3996
3961
  continue;
3997
3962
  }
3998
- if (pr(h)) {
3999
- var x = h.options["=".concat(f)];
3963
+ if (fn(h)) {
3964
+ var x = h.options["=".concat(c)];
4000
3965
  if (!x) {
4001
3966
  if (!Intl.PluralRules)
4002
- throw new Pe(`Intl.PluralRules is not available in this environment.
3967
+ throw new Be(`Intl.PluralRules is not available in this environment.
4003
3968
  Try polyfilling it using "@formatjs/intl-pluralrules"
4004
- `, J.MISSING_INTL_API, s);
4005
- var E = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
4006
- x = h.options[E] || h.options.other;
3969
+ `, q.MISSING_INTL_API, s);
3970
+ var w = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3971
+ x = h.options[w] || h.options.other;
4007
3972
  }
4008
3973
  if (!x)
4009
- throw new $t(h.value, f, Object.keys(h.options), s);
4010
- a.push.apply(a, ye(x.value, t, r, n, i, f - (h.offset || 0)));
3974
+ throw new It(h.value, c, Object.keys(h.options), s);
3975
+ a.push.apply(a, ye(x.value, t, n, r, i, c - (h.offset || 0)));
4011
3976
  continue;
4012
3977
  }
4013
3978
  }
4014
- return Gi(a);
3979
+ return Ni(a);
4015
3980
  }
4016
- function Di(e, t) {
4017
- return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4018
- return r[n] = L(L({}, e[n]), t[n] || {}), r;
3981
+ function Ri(e, t) {
3982
+ return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3983
+ return n[r] = E(E({}, e[r]), t[r] || {}), n;
4019
3984
  }, {})) : e;
4020
3985
  }
4021
- function Fi(e, t) {
4022
- return t ? Object.keys(e).reduce(function(r, n) {
4023
- return r[n] = Di(e[n], t[n]), r;
4024
- }, L({}, e)) : e;
3986
+ function $i(e, t) {
3987
+ return t ? Object.keys(e).reduce(function(n, r) {
3988
+ return n[r] = Ri(e[r], t[r]), n;
3989
+ }, E({}, e)) : e;
4025
3990
  }
4026
- function Fe(e) {
3991
+ function Ge(e) {
4027
3992
  return {
4028
3993
  create: function() {
4029
3994
  return {
4030
3995
  get: function(t) {
4031
3996
  return e[t];
4032
3997
  },
4033
- set: function(t, r) {
4034
- e[t] = r;
3998
+ set: function(t, n) {
3999
+ e[t] = n;
4035
4000
  }
4036
4001
  };
4037
4002
  }
4038
4003
  };
4039
4004
  }
4040
- function ji(e) {
4005
+ function Gi(e) {
4041
4006
  return e === void 0 && (e = {
4042
4007
  number: {},
4043
4008
  dateTime: {},
4044
4009
  pluralRules: {}
4045
4010
  }), {
4046
- getNumberFormat: Ge(function() {
4047
- for (var t, r = [], n = 0; n < arguments.length; n++)
4048
- r[n] = arguments[n];
4049
- return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
4011
+ getNumberFormat: Le(function() {
4012
+ for (var t, n = [], r = 0; r < arguments.length; r++)
4013
+ n[r] = arguments[r];
4014
+ return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0], n, !1)))();
4050
4015
  }, {
4051
- cache: Fe(e.number),
4052
- strategy: Ue.variadic
4016
+ cache: Ge(e.number),
4017
+ strategy: Re.variadic
4053
4018
  }),
4054
- getDateTimeFormat: Ge(function() {
4055
- for (var t, r = [], n = 0; n < arguments.length; n++)
4056
- r[n] = arguments[n];
4057
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
4019
+ getDateTimeFormat: Le(function() {
4020
+ for (var t, n = [], r = 0; r < arguments.length; r++)
4021
+ n[r] = arguments[r];
4022
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0], n, !1)))();
4058
4023
  }, {
4059
- cache: Fe(e.dateTime),
4060
- strategy: Ue.variadic
4024
+ cache: Ge(e.dateTime),
4025
+ strategy: Re.variadic
4061
4026
  }),
4062
- getPluralRules: Ge(function() {
4063
- for (var t, r = [], n = 0; n < arguments.length; n++)
4064
- r[n] = arguments[n];
4065
- return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
4027
+ getPluralRules: Le(function() {
4028
+ for (var t, n = [], r = 0; r < arguments.length; r++)
4029
+ n[r] = arguments[r];
4030
+ return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0], n, !1)))();
4066
4031
  }, {
4067
- cache: Fe(e.pluralRules),
4068
- strategy: Ue.variadic
4032
+ cache: Ge(e.pluralRules),
4033
+ strategy: Re.variadic
4069
4034
  })
4070
4035
  };
4071
4036
  }
4072
- var ki = (
4037
+ var Ui = (
4073
4038
  /** @class */
4074
4039
  function() {
4075
- function e(t, r, n, i) {
4076
- r === void 0 && (r = e.defaultLocale);
4040
+ function e(t, n, r, i) {
4041
+ n === void 0 && (n = e.defaultLocale);
4077
4042
  var o = this;
4078
4043
  if (this.formatterCache = {
4079
4044
  number: {},
@@ -4083,8 +4048,8 @@ var ki = (
4083
4048
  var u = o.formatToParts(l);
4084
4049
  if (u.length === 1)
4085
4050
  return u[0].value;
4086
- var h = u.reduce(function(c, f) {
4087
- return !c.length || f.type !== P.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
4051
+ var h = u.reduce(function(f, c) {
4052
+ return !f.length || c.type !== P.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
4088
4053
  }, []);
4089
4054
  return h.length <= 1 ? h[0] || "" : h;
4090
4055
  }, this.formatToParts = function(l) {
@@ -4096,18 +4061,18 @@ var ki = (
4096
4061
  };
4097
4062
  }, this.getAst = function() {
4098
4063
  return o.ast;
4099
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
4064
+ }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
4100
4065
  if (this.message = t, !e.__parse)
4101
4066
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4102
4067
  var s = i || {};
4103
4068
  s.formatters;
4104
- var a = Yn(s, ["formatters"]);
4105
- this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
4069
+ var a = gr(s, ["formatters"]);
4070
+ this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
4106
4071
  } else
4107
4072
  this.ast = t;
4108
4073
  if (!Array.isArray(this.ast))
4109
4074
  throw new TypeError("A message must be provided as a String or AST.");
4110
- this.formats = Fi(e.formats, n), this.formatters = i && i.formatters || ji(this.formatterCache);
4075
+ this.formats = $i(e.formats, r), this.formatters = i && i.formatters || Gi(this.formatterCache);
4111
4076
  }
4112
4077
  return Object.defineProperty(e, "defaultLocale", {
4113
4078
  get: function() {
@@ -4117,10 +4082,10 @@ var ki = (
4117
4082
  configurable: !0
4118
4083
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
4119
4084
  if (typeof Intl.Locale != "undefined") {
4120
- var r = Intl.NumberFormat.supportedLocalesOf(t);
4121
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4085
+ var n = Intl.NumberFormat.supportedLocalesOf(t);
4086
+ return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4122
4087
  }
4123
- }, e.__parse = Li, e.formats = {
4088
+ }, e.__parse = Oi, e.formats = {
4124
4089
  number: {
4125
4090
  integer: {
4126
4091
  maximumFractionDigits: 0
@@ -4181,113 +4146,113 @@ var ki = (
4181
4146
  }, e;
4182
4147
  }()
4183
4148
  );
4184
- function Vi(e, t) {
4149
+ function Di(e, t) {
4185
4150
  if (t == null)
4186
4151
  return;
4187
4152
  if (t in e)
4188
4153
  return e[t];
4189
- const r = t.split(".");
4190
- let n = e;
4191
- for (let i = 0; i < r.length; i++)
4192
- if (typeof n == "object") {
4154
+ const n = t.split(".");
4155
+ let r = e;
4156
+ for (let i = 0; i < n.length; i++)
4157
+ if (typeof r == "object") {
4193
4158
  if (i > 0) {
4194
- const o = r.slice(i, r.length).join(".");
4195
- if (o in n) {
4196
- n = n[o];
4159
+ const o = n.slice(i, n.length).join(".");
4160
+ if (o in r) {
4161
+ r = r[o];
4197
4162
  break;
4198
4163
  }
4199
4164
  }
4200
- n = n[r[i]];
4165
+ r = r[n[i]];
4201
4166
  } else
4202
- n = void 0;
4203
- return n;
4167
+ r = void 0;
4168
+ return r;
4204
4169
  }
4205
- const G = {}, Xi = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Sr = (e, t) => {
4170
+ const G = {}, Fi = (e, t, n) => n && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = n), n), xn = (e, t) => {
4206
4171
  if (t == null)
4207
4172
  return;
4208
4173
  if (t in G && e in G[t])
4209
4174
  return G[t][e];
4210
- const r = Oe(t);
4211
- for (let n = 0; n < r.length; n++) {
4212
- const i = r[n], o = Wi(i, e);
4175
+ const n = Ce(t);
4176
+ for (let r = 0; r < n.length; r++) {
4177
+ const i = n[r], o = ki(i, e);
4213
4178
  if (o)
4214
- return Xi(e, t, o);
4179
+ return Fi(e, t, o);
4215
4180
  }
4216
4181
  };
4217
- let ht;
4218
- const he = Be({});
4219
- function zi(e) {
4220
- return ht[e] || null;
4182
+ let st;
4183
+ const he = Ae({});
4184
+ function ji(e) {
4185
+ return st[e] || null;
4221
4186
  }
4222
- function Tr(e) {
4223
- return e in ht;
4187
+ function En(e) {
4188
+ return e in st;
4224
4189
  }
4225
- function Wi(e, t) {
4226
- if (!Tr(e))
4190
+ function ki(e, t) {
4191
+ if (!En(e))
4227
4192
  return null;
4228
- const r = zi(e);
4229
- return Vi(r, t);
4193
+ const n = ji(e);
4194
+ return Di(n, t);
4230
4195
  }
4231
- function Zi(e) {
4196
+ function Vi(e) {
4232
4197
  if (e == null)
4233
4198
  return;
4234
- const t = Oe(e);
4235
- for (let r = 0; r < t.length; r++) {
4236
- const n = t[r];
4237
- if (Tr(n))
4238
- return n;
4199
+ const t = Ce(e);
4200
+ for (let n = 0; n < t.length; n++) {
4201
+ const r = t[n];
4202
+ if (En(r))
4203
+ return r;
4239
4204
  }
4240
4205
  }
4241
- function Hr(e, ...t) {
4242
- delete G[e], he.update((r) => (r[e] = qn.all([r[e] || {}, ...t]), r));
4206
+ function wn(e, ...t) {
4207
+ delete G[e], he.update((n) => (n[e] = Zr.all([n[e] || {}, ...t]), n));
4243
4208
  }
4244
- Y(
4209
+ K(
4245
4210
  [he],
4246
4211
  ([e]) => Object.keys(e)
4247
4212
  );
4248
- he.subscribe((e) => ht = e);
4213
+ he.subscribe((e) => st = e);
4249
4214
  const ve = {};
4250
- function Qi(e, t) {
4215
+ function Xi(e, t) {
4251
4216
  ve[e].delete(t), ve[e].size === 0 && delete ve[e];
4252
4217
  }
4253
- function Ar(e) {
4218
+ function Sn(e) {
4254
4219
  return ve[e];
4255
4220
  }
4256
- function Ji(e) {
4257
- return Oe(e).map((t) => {
4258
- const r = Ar(t);
4259
- return [t, r ? [...r] : []];
4221
+ function zi(e) {
4222
+ return Ce(e).map((t) => {
4223
+ const n = Sn(t);
4224
+ return [t, n ? [...n] : []];
4260
4225
  }).filter(([, t]) => t.length > 0);
4261
4226
  }
4262
- function ot(e) {
4263
- return e == null ? !1 : Oe(e).some(
4227
+ function et(e) {
4228
+ return e == null ? !1 : Ce(e).some(
4264
4229
  (t) => {
4265
- var r;
4266
- return (r = Ar(t)) == null ? void 0 : r.size;
4230
+ var n;
4231
+ return (n = Sn(t)) == null ? void 0 : n.size;
4267
4232
  }
4268
4233
  );
4269
4234
  }
4270
- function qi(e, t) {
4235
+ function Wi(e, t) {
4271
4236
  return Promise.all(
4272
- t.map((n) => (Qi(e, n), n().then((i) => i.default || i)))
4273
- ).then((n) => Hr(e, ...n));
4237
+ t.map((r) => (Xi(e, r), r().then((i) => i.default || i)))
4238
+ ).then((r) => wn(e, ...r));
4274
4239
  }
4275
4240
  const re = {};
4276
- function Br(e) {
4277
- if (!ot(e))
4241
+ function Tn(e) {
4242
+ if (!et(e))
4278
4243
  return e in re ? re[e] : Promise.resolve();
4279
- const t = Ji(e);
4244
+ const t = zi(e);
4280
4245
  return re[e] = Promise.all(
4281
4246
  t.map(
4282
- ([r, n]) => qi(r, n)
4247
+ ([n, r]) => Wi(n, r)
4283
4248
  )
4284
4249
  ).then(() => {
4285
- if (ot(e))
4286
- return Br(e);
4250
+ if (et(e))
4251
+ return Tn(e);
4287
4252
  delete re[e];
4288
4253
  }), re[e];
4289
4254
  }
4290
- const Yi = {
4255
+ const Zi = {
4291
4256
  number: {
4292
4257
  scientific: { notation: "scientific" },
4293
4258
  engineering: { notation: "engineering" },
@@ -4316,136 +4281,136 @@ const Yi = {
4316
4281
  timeZoneName: "short"
4317
4282
  }
4318
4283
  }
4319
- }, Ki = {
4284
+ }, Qi = {
4320
4285
  fallbackLocale: null,
4321
4286
  loadingDelay: 200,
4322
- formats: Yi,
4287
+ formats: Zi,
4323
4288
  warnOnMissingMessages: !0,
4324
4289
  handleMissingMessage: void 0,
4325
4290
  ignoreTag: !0
4326
- }, eo = Ki;
4327
- function q() {
4328
- return eo;
4329
- }
4330
- const je = Be(!1);
4331
- var to = Object.defineProperty, ro = Object.defineProperties, no = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, io = Object.prototype.hasOwnProperty, oo = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? to(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, so = (e, t) => {
4332
- for (var r in t || (t = {}))
4333
- io.call(t, r) && Gt(e, r, t[r]);
4334
- if (Rt)
4335
- for (var r of Rt(t))
4336
- oo.call(t, r) && Gt(e, r, t[r]);
4291
+ }, Ji = Qi;
4292
+ function Y() {
4293
+ return Ji;
4294
+ }
4295
+ const Ue = Ae(!1);
4296
+ var qi = Object.defineProperty, Yi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, Mt = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, Nt = (e, t, n) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, no = (e, t) => {
4297
+ for (var n in t)
4298
+ eo.call(t, n) && Nt(e, n, t[n]);
4299
+ if (Mt)
4300
+ for (var n of Mt(t))
4301
+ to.call(t, n) && Nt(e, n, t[n]);
4337
4302
  return e;
4338
- }, ao = (e, t) => ro(e, no(t));
4339
- let st;
4340
- const Se = Be(null);
4341
- function Ut(e) {
4342
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4303
+ }, ro = (e, t) => Yi(e, Ki(t));
4304
+ let tt;
4305
+ const we = Ae(null);
4306
+ function Lt(e) {
4307
+ return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
4343
4308
  }
4344
- function Oe(e, t = q().fallbackLocale) {
4345
- const r = Ut(e);
4346
- return t ? [.../* @__PURE__ */ new Set([...r, ...Ut(t)])] : r;
4309
+ function Ce(e, t = Y().fallbackLocale) {
4310
+ const n = Lt(e);
4311
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Lt(t)])] : n;
4347
4312
  }
4348
4313
  function F() {
4349
- return st != null ? st : void 0;
4314
+ return tt != null ? tt : void 0;
4350
4315
  }
4351
- Se.subscribe((e) => {
4352
- st = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4316
+ we.subscribe((e) => {
4317
+ tt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4353
4318
  });
4354
- const uo = (e) => {
4355
- if (e && Zi(e) && ot(e)) {
4356
- const { loadingDelay: t } = q();
4357
- let r;
4358
- return typeof window != "undefined" && F() != null && t ? r = window.setTimeout(
4359
- () => je.set(!0),
4319
+ const io = (e) => {
4320
+ if (e && Vi(e) && et(e)) {
4321
+ const { loadingDelay: t } = Y();
4322
+ let n;
4323
+ return typeof window != "undefined" && F() != null && t ? n = window.setTimeout(
4324
+ () => Ue.set(!0),
4360
4325
  t
4361
- ) : je.set(!0), Br(e).then(() => {
4362
- Se.set(e);
4326
+ ) : Ue.set(!0), Tn(e).then(() => {
4327
+ we.set(e);
4363
4328
  }).finally(() => {
4364
- clearTimeout(r), je.set(!1);
4329
+ clearTimeout(n), Ue.set(!1);
4365
4330
  });
4366
4331
  }
4367
- return Se.set(e);
4368
- }, K = ao(so({}, Se), {
4369
- set: uo
4370
- }), Ie = (e) => {
4332
+ return we.set(e);
4333
+ }, ee = ro(no({}, we), {
4334
+ set: io
4335
+ }), Pe = (e) => {
4371
4336
  const t = /* @__PURE__ */ Object.create(null);
4372
- return (n) => {
4373
- const i = JSON.stringify(n);
4374
- return i in t ? t[i] : t[i] = e(n);
4337
+ return (r) => {
4338
+ const i = JSON.stringify(r);
4339
+ return i in t ? t[i] : t[i] = e(r);
4375
4340
  };
4376
4341
  };
4377
- var lo = Object.defineProperty, Te = Object.getOwnPropertySymbols, Cr = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, Dt = (e, t, r) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
4378
- for (var r in t || (t = {}))
4379
- Cr.call(t, r) && Dt(e, r, t[r]);
4380
- if (Te)
4381
- for (var r of Te(t))
4382
- Pr.call(t, r) && Dt(e, r, t[r]);
4342
+ var oo = Object.defineProperty, Se = Object.getOwnPropertySymbols, Hn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, Rt = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, at = (e, t) => {
4343
+ for (var n in t || (t = {}))
4344
+ Hn.call(t, n) && Rt(e, n, t[n]);
4345
+ if (Se)
4346
+ for (var n of Se(t))
4347
+ An.call(t, n) && Rt(e, n, t[n]);
4383
4348
  return e;
4384
- }, ee = (e, t) => {
4385
- var r = {};
4386
- for (var n in e)
4387
- Cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4388
- if (e != null && Te)
4389
- for (var n of Te(e))
4390
- t.indexOf(n) < 0 && Pr.call(e, n) && (r[n] = e[n]);
4391
- return r;
4349
+ }, te = (e, t) => {
4350
+ var n = {};
4351
+ for (var r in e)
4352
+ Hn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
4353
+ if (e != null && Se)
4354
+ for (var r of Se(e))
4355
+ t.indexOf(r) < 0 && An.call(e, r) && (n[r] = e[r]);
4356
+ return n;
4392
4357
  };
4393
- const se = (e, t) => {
4394
- const { formats: r } = q();
4395
- if (e in r && t in r[e])
4396
- return r[e][t];
4358
+ const ae = (e, t) => {
4359
+ const { formats: n } = Y();
4360
+ if (e in n && t in n[e])
4361
+ return n[e][t];
4397
4362
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4398
- }, ho = Ie(
4363
+ }, so = Pe(
4399
4364
  (e) => {
4400
- var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
4401
- if (r == null)
4365
+ var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
4366
+ if (n == null)
4402
4367
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4403
- return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
4368
+ return r && (i = ae("number", r)), new Intl.NumberFormat(n, i);
4404
4369
  }
4405
- ), co = Ie(
4370
+ ), ao = Pe(
4406
4371
  (e) => {
4407
- var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
4408
- if (r == null)
4372
+ var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
4373
+ if (n == null)
4409
4374
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4410
- return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
4375
+ return r ? i = ae("date", r) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(n, i);
4411
4376
  }
4412
- ), fo = Ie(
4377
+ ), uo = Pe(
4413
4378
  (e) => {
4414
- var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
4415
- if (r == null)
4379
+ var t = e, { locale: n, format: r } = t, i = te(t, ["locale", "format"]);
4380
+ if (n == null)
4416
4381
  throw new Error(
4417
4382
  '[svelte-i18n] A "locale" must be set to format time values'
4418
4383
  );
4419
- return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
4384
+ return r ? i = ae("time", r) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(n, i);
4420
4385
  }
4421
- ), mo = (e = {}) => {
4386
+ ), lo = (e = {}) => {
4422
4387
  var t = e, {
4423
- locale: r = F()
4424
- } = t, n = ee(t, [
4388
+ locale: n = F()
4389
+ } = t, r = te(t, [
4425
4390
  "locale"
4426
4391
  ]);
4427
- return ho(ct({ locale: r }, n));
4428
- }, po = (e = {}) => {
4392
+ return so(at({ locale: n }, r));
4393
+ }, ho = (e = {}) => {
4429
4394
  var t = e, {
4430
- locale: r = F()
4431
- } = t, n = ee(t, [
4395
+ locale: n = F()
4396
+ } = t, r = te(t, [
4432
4397
  "locale"
4433
4398
  ]);
4434
- return co(ct({ locale: r }, n));
4435
- }, bo = (e = {}) => {
4399
+ return ao(at({ locale: n }, r));
4400
+ }, fo = (e = {}) => {
4436
4401
  var t = e, {
4437
- locale: r = F()
4438
- } = t, n = ee(t, [
4402
+ locale: n = F()
4403
+ } = t, r = te(t, [
4439
4404
  "locale"
4440
4405
  ]);
4441
- return fo(ct({ locale: r }, n));
4442
- }, go = Ie(
4406
+ return uo(at({ locale: n }, r));
4407
+ }, co = Pe(
4443
4408
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4444
- (e, t = F()) => new ki(e, t, q().formats, {
4445
- ignoreTag: q().ignoreTag
4409
+ (e, t = F()) => new Ui(e, t, Y().formats, {
4410
+ ignoreTag: Y().ignoreTag
4446
4411
  })
4447
- ), yo = (e, t = {}) => {
4448
- var r, n, i, o;
4412
+ ), mo = (e, t = {}) => {
4413
+ var n, r, i, o;
4449
4414
  let s = t;
4450
4415
  typeof e == "object" && (s = e, e = s.id);
4451
4416
  const {
@@ -4457,62 +4422,62 @@ const se = (e, t) => {
4457
4422
  throw new Error(
4458
4423
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4459
4424
  );
4460
- let h = Sr(e, l);
4425
+ let h = xn(e, l);
4461
4426
  if (!h)
4462
- h = (o = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4427
+ h = (o = (i = (r = (n = Y()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4463
4428
  else if (typeof h != "string")
4464
4429
  return console.warn(
4465
4430
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4466
4431
  ), h;
4467
4432
  if (!a)
4468
4433
  return h;
4469
- let c = h;
4434
+ let f = h;
4470
4435
  try {
4471
- c = go(h, l).format(a);
4472
- } catch (f) {
4473
- f instanceof Error && console.warn(
4436
+ f = co(h, l).format(a);
4437
+ } catch (c) {
4438
+ c instanceof Error && console.warn(
4474
4439
  `[svelte-i18n] Message "${e}" has syntax error:`,
4475
- f.message
4440
+ c.message
4476
4441
  );
4477
4442
  }
4478
- return c;
4479
- }, vo = (e, t) => bo(t).format(e), _o = (e, t) => po(t).format(e), xo = (e, t) => mo(t).format(e), Eo = (e, t = F()) => Sr(e, t), wo = Y([K, he], () => yo);
4480
- Y([K], () => vo);
4481
- Y([K], () => _o);
4482
- Y([K], () => xo);
4483
- Y([K, he], () => Eo);
4484
- window.emWidgets = { topic: Nn };
4485
- const So = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4486
- function To(e, t) {
4443
+ return f;
4444
+ }, po = (e, t) => fo(t).format(e), bo = (e, t) => ho(t).format(e), go = (e, t) => lo(t).format(e), yo = (e, t = F()) => xn(e, t), vo = K([ee, he], () => mo);
4445
+ K([ee], () => po);
4446
+ K([ee], () => bo);
4447
+ K([ee], () => go);
4448
+ K([ee, he], () => yo);
4449
+ window.emWidgets = { topic: Or };
4450
+ const _o = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4451
+ function xo(e, t) {
4487
4452
  if (e) {
4488
- const r = document.createElement("style");
4489
- r.innerHTML = t, e.appendChild(r);
4453
+ const n = document.createElement("style");
4454
+ n.innerHTML = t, e.appendChild(n);
4490
4455
  }
4491
4456
  }
4492
- function Ho(e, t) {
4493
- const r = new URL(t);
4494
- fetch(r.href).then((n) => n.text()).then((n) => {
4457
+ function Eo(e, t) {
4458
+ const n = new URL(t);
4459
+ fetch(n.href).then((r) => r.text()).then((r) => {
4495
4460
  const i = document.createElement("style");
4496
- i.innerHTML = n, e && e.appendChild(i);
4497
- }).catch((n) => {
4498
- console.error("There was an error while trying to load client styling from URL", n);
4461
+ i.innerHTML = r, e && e.appendChild(i);
4462
+ }).catch((r) => {
4463
+ console.error("There was an error while trying to load client styling from URL", r);
4499
4464
  });
4500
4465
  }
4501
- function Ao(e, t, r) {
4466
+ function wo(e, t, n) {
4502
4467
  if (window.emMessageBus) {
4503
- const n = document.createElement("style");
4468
+ const r = document.createElement("style");
4504
4469
  window.emMessageBus.subscribe(t, (i) => {
4505
- n.innerHTML = i, e && e.appendChild(n);
4470
+ r.innerHTML = i, e && e.appendChild(r);
4506
4471
  });
4507
4472
  }
4508
4473
  }
4509
- function Ft(e, t) {
4510
- Hr(e, t);
4474
+ function $t(e, t) {
4475
+ wn(e, t);
4511
4476
  }
4512
- function Bo(e) {
4513
- K.set(e);
4477
+ function So(e) {
4478
+ ee.set(e);
4514
4479
  }
4515
- const jt = {
4480
+ const Gt = {
4516
4481
  en: {
4517
4482
  cancel: "Cancel",
4518
4483
  confirm: "Confirm"
@@ -4558,41 +4523,41 @@ const jt = {
4558
4523
  confirm: "Confirm"
4559
4524
  }
4560
4525
  };
4561
- function Co(e) {
4562
- Qr(e, "svelte-8g0wf4", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013e5c));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-secondary, #e98b0f) 80%, black 20%), #22b04e);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013e5c) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
4526
+ function To(e) {
4527
+ zn(e, "svelte-8g0wf4", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013e5c));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-secondary, #e98b0f) 80%, black 20%), #22b04e);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013e5c) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
4563
4528
  }
4564
- const Po = (e) => ({}), kt = (e) => ({});
4565
- function Oo(e) {
4566
- let t, r;
4529
+ const Ho = (e) => ({}), Ut = (e) => ({});
4530
+ function Ao(e) {
4531
+ let t, n;
4567
4532
  return {
4568
4533
  c() {
4569
- t = yt("svg"), r = yt("path"), H(r, "stroke-linecap", "round"), H(r, "stroke-linejoin", "round"), H(r, "stroke-width", "2"), H(r, "d", "M6 18L18 6M6 6l12 12"), H(t, "class", "w-6 h-6"), H(t, "fill", "none"), H(t, "stroke", "currentColor"), H(t, "viewBox", "0 0 24 24"), H(t, "xmlns", "http://www.w3.org/2000/svg");
4534
+ t = mt("svg"), n = mt("path"), T(n, "stroke-linecap", "round"), T(n, "stroke-linejoin", "round"), T(n, "stroke-width", "2"), T(n, "d", "M6 18L18 6M6 6l12 12"), T(t, "class", "w-6 h-6"), T(t, "fill", "none"), T(t, "stroke", "currentColor"), T(t, "viewBox", "0 0 24 24"), T(t, "xmlns", "http://www.w3.org/2000/svg");
4570
4535
  },
4571
- m(n, i) {
4572
- ae(n, t, i), C(t, r);
4536
+ m(r, i) {
4537
+ ue(r, t, i), C(t, n);
4573
4538
  },
4574
4539
  p: N,
4575
- d(n) {
4576
- n && D(t);
4540
+ d(r) {
4541
+ r && D(t);
4577
4542
  }
4578
4543
  };
4579
4544
  }
4580
- function Vt(e) {
4581
- let t, r, n;
4545
+ function Dt(e) {
4546
+ let t, n, r;
4582
4547
  return {
4583
4548
  c() {
4584
- t = M("div"), r = M("h2"), n = ue(
4549
+ t = M("div"), n = M("h2"), r = le(
4585
4550
  /*modaltitle*/
4586
4551
  e[1]
4587
- ), H(t, "class", "GeneralConfirmationTitle");
4552
+ ), T(t, "class", "GeneralConfirmationTitle");
4588
4553
  },
4589
4554
  m(i, o) {
4590
- ae(i, t, o), C(t, r), C(r, n);
4555
+ ue(i, t, o), C(t, n), C(n, r);
4591
4556
  },
4592
4557
  p(i, o) {
4593
4558
  o & /*modaltitle*/
4594
- 2 && lt(
4595
- n,
4559
+ 2 && it(
4560
+ r,
4596
4561
  /*modaltitle*/
4597
4562
  i[1]
4598
4563
  );
@@ -4602,17 +4567,17 @@ function Vt(e) {
4602
4567
  }
4603
4568
  };
4604
4569
  }
4605
- function Xt(e) {
4606
- let t, r = (
4570
+ function Ft(e) {
4571
+ let t, n = (
4607
4572
  /*$_*/
4608
4573
  e[4]("cancel") + ""
4609
- ), n, i, o;
4574
+ ), r, i, o;
4610
4575
  return {
4611
4576
  c() {
4612
- t = M("button"), n = ue(r), H(t, "class", "GeneralCancelButton");
4577
+ t = M("button"), r = le(n), T(t, "class", "GeneralCancelButton");
4613
4578
  },
4614
4579
  m(s, a) {
4615
- ae(s, t, a), C(t, n), i || (o = ke(
4580
+ ue(s, t, a), C(t, r), i || (o = De(
4616
4581
  t,
4617
4582
  "click",
4618
4583
  /*click_handler*/
@@ -4621,169 +4586,169 @@ function Xt(e) {
4621
4586
  },
4622
4587
  p(s, a) {
4623
4588
  a & /*$_*/
4624
- 16 && r !== (r = /*$_*/
4625
- s[4]("cancel") + "") && lt(n, r);
4589
+ 16 && n !== (n = /*$_*/
4590
+ s[4]("cancel") + "") && it(r, n);
4626
4591
  },
4627
4592
  d(s) {
4628
4593
  s && D(t), i = !1, o();
4629
4594
  }
4630
4595
  };
4631
4596
  }
4632
- function Io(e) {
4633
- let t, r, n, i, o, s, a, l, u, h, c = (
4597
+ function Bo(e) {
4598
+ let t, n, r, i, o, s, a, l, u, h, f = (
4634
4599
  /*$_*/
4635
4600
  e[4]("confirm") + ""
4636
- ), f, p, m, d;
4601
+ ), c, m, d, p;
4637
4602
  const g = (
4638
4603
  /*#slots*/
4639
4604
  e[16].close
4640
- ), A = kr(
4605
+ ), H = Dn(
4641
4606
  g,
4642
4607
  e,
4643
4608
  /*$$scope*/
4644
4609
  e[15],
4645
- kt
4646
- ), T = A || Oo();
4610
+ Ut
4611
+ ), A = H || Ao();
4647
4612
  let x = (
4648
4613
  /*modaltitle*/
4649
- e[1] && Vt(e)
4650
- ), E = (
4614
+ e[1] && Dt(e)
4615
+ ), w = (
4651
4616
  /*hascancelbutton*/
4652
- e[2] && Xt(e)
4617
+ e[2] && Ft(e)
4653
4618
  );
4654
4619
  return {
4655
4620
  c() {
4656
- t = M("div"), r = M("div"), n = M("span"), T && T.c(), i = fe(), x && x.c(), o = fe(), s = M("div"), a = fe(), l = M("div"), E && E.c(), u = fe(), h = M("button"), f = ue(c), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(s, "class", "GeneralConfirmationContent"), H(h, "class", "GeneralConfirmButton"), H(l, "class", "GeneralConfirmationControlArea " + /*isMobile*/
4657
- (e[5] ? "GeneralConfirmationControlAreaMobile" : "")), H(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
4658
- (e[5] ? "GeneralConfirmationContainerMobile" : "")), H(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
4621
+ t = M("div"), n = M("div"), r = M("span"), A.c(), i = ce(), x && x.c(), o = ce(), s = M("div"), a = ce(), l = M("div"), w && w.c(), u = ce(), h = M("button"), c = le(f), T(r, "class", "ModalCloseBtn"), T(r, "role", "button"), T(s, "class", "GeneralConfirmationContent"), T(h, "class", "GeneralConfirmButton"), T(l, "class", "GeneralConfirmationControlArea " + /*isMobile*/
4622
+ (e[5] ? "GeneralConfirmationControlAreaMobile" : "")), T(n, "class", "GeneralConfirmationContainer " + /*isMobile*/
4623
+ (e[5] ? "GeneralConfirmationContainerMobile" : "")), T(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
4659
4624
  (e[5] ? "GeneralConfirmationMobileWrapper" : ""));
4660
4625
  },
4661
4626
  m(b, B) {
4662
- ae(b, t, B), C(t, r), C(r, n), T && T.m(n, null), C(r, i), x && x.m(r, null), C(r, o), C(r, s), s.innerHTML = /*modaltext*/
4663
- e[0], C(r, a), C(r, l), E && E.m(l, null), C(l, u), C(l, h), C(h, f), e[19](t), p = !0, m || (d = [
4664
- ke(
4665
- n,
4627
+ ue(b, t, B), C(t, n), C(n, r), A.m(r, null), C(n, i), x && x.m(n, null), C(n, o), C(n, s), s.innerHTML = /*modaltext*/
4628
+ e[0], C(n, a), C(n, l), w && w.m(l, null), C(l, u), C(l, h), C(h, c), e[19](t), m = !0, d || (p = [
4629
+ De(
4630
+ r,
4666
4631
  "click",
4667
4632
  /*close*/
4668
4633
  e[6]
4669
4634
  ),
4670
- ke(
4635
+ De(
4671
4636
  h,
4672
4637
  "click",
4673
4638
  /*click_handler_1*/
4674
4639
  e[18]
4675
4640
  )
4676
- ], m = !0);
4641
+ ], d = !0);
4677
4642
  },
4678
4643
  p(b, [B]) {
4679
- A && A.p && (!p || B & /*$$scope*/
4680
- 32768) && Xr(
4681
- A,
4644
+ H && H.p && (!m || B & /*$$scope*/
4645
+ 32768) && jn(
4646
+ H,
4682
4647
  g,
4683
4648
  b,
4684
4649
  /*$$scope*/
4685
4650
  b[15],
4686
- p ? Vr(
4651
+ m ? Fn(
4687
4652
  g,
4688
4653
  /*$$scope*/
4689
4654
  b[15],
4690
4655
  B,
4691
- Po
4692
- ) : zr(
4656
+ Ho
4657
+ ) : kn(
4693
4658
  /*$$scope*/
4694
4659
  b[15]
4695
4660
  ),
4696
- kt
4661
+ Ut
4697
4662
  ), /*modaltitle*/
4698
- b[1] ? x ? x.p(b, B) : (x = Vt(b), x.c(), x.m(r, o)) : x && (x.d(1), x = null), (!p || B & /*modaltext*/
4663
+ b[1] ? x ? x.p(b, B) : (x = Dt(b), x.c(), x.m(n, o)) : x && (x.d(1), x = null), (!m || B & /*modaltext*/
4699
4664
  1) && (s.innerHTML = /*modaltext*/
4700
4665
  b[0]), /*hascancelbutton*/
4701
- b[2] ? E ? E.p(b, B) : (E = Xt(b), E.c(), E.m(l, u)) : E && (E.d(1), E = null), (!p || B & /*$_*/
4702
- 16) && c !== (c = /*$_*/
4703
- b[4]("confirm") + "") && lt(f, c);
4666
+ b[2] ? w ? w.p(b, B) : (w = Ft(b), w.c(), w.m(l, u)) : w && (w.d(1), w = null), (!m || B & /*$_*/
4667
+ 16) && f !== (f = /*$_*/
4668
+ b[4]("confirm") + "") && it(c, f);
4704
4669
  },
4705
4670
  i(b) {
4706
- p || (Kt(T, b), p = !0);
4671
+ m || (Qt(A, b), m = !0);
4707
4672
  },
4708
4673
  o(b) {
4709
- fn(T, b), p = !1;
4674
+ ur(A, b), m = !1;
4710
4675
  },
4711
4676
  d(b) {
4712
- b && D(t), T && T.d(b), x && x.d(), E && E.d(), e[19](null), m = !1, U(d);
4677
+ b && D(t), A.d(b), x && x.d(), w && w.d(), e[19](null), d = !1, U(p);
4713
4678
  }
4714
4679
  };
4715
4680
  }
4716
- function Mo(e, t, r) {
4717
- let n;
4718
- jr(e, wo, (v) => r(4, n = v));
4719
- let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: m = "" } = t, { mbsource: d } = t, g, A = window.navigator.userAgent, T = So(A) !== "PC";
4681
+ function Co(e, t, n) {
4682
+ let r;
4683
+ Un(e, vo, (v) => n(4, r = v));
4684
+ let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: f = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: d = "" } = t, { mbsource: p } = t, g, H = window.navigator.userAgent, A = _o(H) !== "PC";
4720
4685
  const x = () => {
4721
4686
  window.postMessage({ type: "ModalClosed" }, window.location.href);
4722
- }, E = (v) => {
4687
+ }, w = (v) => {
4723
4688
  v === "confirm" && u && window.postMessage(u, window.location.href), v === "cancel" && h && window.postMessage(h, window.location.href), x();
4724
4689
  }, b = () => {
4725
- fetch(m).then((j) => j.json()).then((j) => {
4726
- Object.keys(j).forEach((ft) => {
4727
- Ft(ft, j[ft]);
4690
+ fetch(d).then((j) => j.json()).then((j) => {
4691
+ Object.keys(j).forEach((ut) => {
4692
+ $t(ut, j[ut]);
4728
4693
  });
4729
4694
  }).catch((j) => {
4730
4695
  console.log(j);
4731
4696
  });
4732
4697
  };
4733
- Object.keys(jt).forEach((v) => {
4734
- Ft(v, jt[v]);
4698
+ Object.keys(Gt).forEach((v) => {
4699
+ $t(v, Gt[v]);
4735
4700
  });
4736
4701
  const B = () => {
4737
- Bo(c);
4702
+ So(f);
4738
4703
  };
4739
- sn(() => () => {
4704
+ nr(() => () => {
4740
4705
  });
4741
- const ce = () => E("cancel"), Ir = () => E("confirm");
4742
- function Mr(v) {
4743
- Ve[v ? "unshift" : "push"](() => {
4744
- g = v, r(3, g);
4706
+ const fe = () => w("cancel"), Cn = () => w("confirm");
4707
+ function Pn(v) {
4708
+ Fe[v ? "unshift" : "push"](() => {
4709
+ g = v, n(3, g);
4745
4710
  });
4746
4711
  }
4747
4712
  return e.$$set = (v) => {
4748
- "modaltext" in v && r(0, s = v.modaltext), "modaltitle" in v && r(1, a = v.modaltitle), "hascancelbutton" in v && r(2, l = v.hascancelbutton), "modalconfirmevent" in v && r(8, u = v.modalconfirmevent), "modalcancelevent" in v && r(9, h = v.modalcancelevent), "lang" in v && r(10, c = v.lang), "clientstyling" in v && r(11, f = v.clientstyling), "clientstylingurl" in v && r(12, p = v.clientstylingurl), "translationurl" in v && r(13, m = v.translationurl), "mbsource" in v && r(14, d = v.mbsource), "$$scope" in v && r(15, o = v.$$scope);
4713
+ "modaltext" in v && n(0, s = v.modaltext), "modaltitle" in v && n(1, a = v.modaltitle), "hascancelbutton" in v && n(2, l = v.hascancelbutton), "modalconfirmevent" in v && n(8, u = v.modalconfirmevent), "modalcancelevent" in v && n(9, h = v.modalcancelevent), "lang" in v && n(10, f = v.lang), "clientstyling" in v && n(11, c = v.clientstyling), "clientstylingurl" in v && n(12, m = v.clientstylingurl), "translationurl" in v && n(13, d = v.translationurl), "mbsource" in v && n(14, p = v.mbsource), "$$scope" in v && n(15, o = v.$$scope);
4749
4714
  }, e.$$.update = () => {
4750
4715
  e.$$.dirty & /*modaltext, lang*/
4751
- 1025 && s && c && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4752
- 2056 && f && g && To(g, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4753
- 4104 && p && g && Ho(g, p), e.$$.dirty & /*mbsource, customStylingContainer*/
4754
- 16392 && d && g && Ao(g, `${d}.Style`), e.$$.dirty & /*translationurl*/
4755
- 8192 && m && b();
4716
+ 1025 && s && f && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4717
+ 2056 && c && g && xo(g, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4718
+ 4104 && m && g && Eo(g, m), e.$$.dirty & /*mbsource, customStylingContainer*/
4719
+ 16392 && p && g && wo(g, `${p}.Style`), e.$$.dirty & /*translationurl*/
4720
+ 8192 && d && b();
4756
4721
  }, [
4757
4722
  s,
4758
4723
  a,
4759
4724
  l,
4760
4725
  g,
4761
- n,
4762
- T,
4726
+ r,
4727
+ A,
4763
4728
  x,
4764
- E,
4729
+ w,
4765
4730
  u,
4766
4731
  h,
4767
- c,
4768
4732
  f,
4769
- p,
4733
+ c,
4770
4734
  m,
4771
4735
  d,
4736
+ p,
4772
4737
  o,
4773
4738
  i,
4774
- ce,
4775
- Ir,
4776
- Mr
4739
+ fe,
4740
+ Cn,
4741
+ Pn
4777
4742
  ];
4778
4743
  }
4779
- class Or extends vn {
4744
+ class Bn extends pr {
4780
4745
  constructor(t) {
4781
- super(), gn(
4746
+ super(), dr(
4782
4747
  this,
4783
4748
  t,
4784
- Mo,
4785
- Io,
4786
- Wt,
4749
+ Co,
4750
+ Bo,
4751
+ kt,
4787
4752
  {
4788
4753
  modaltext: 0,
4789
4754
  modaltitle: 1,
@@ -4796,7 +4761,7 @@ class Or extends vn {
4796
4761
  translationurl: 13,
4797
4762
  mbsource: 14
4798
4763
  },
4799
- Co
4764
+ To
4800
4765
  );
4801
4766
  }
4802
4767
  get modaltext() {
@@ -4860,57 +4825,57 @@ class Or extends vn {
4860
4825
  this.$$set({ mbsource: t }), I();
4861
4826
  }
4862
4827
  }
4863
- yn(Or, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
4864
- const Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4828
+ mr(Bn, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["close"], [], !0);
4829
+ const Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4865
4830
  __proto__: null,
4866
- default: Or
4831
+ default: Bn
4867
4832
  }, Symbol.toStringTag, { value: "Module" }));
4868
4833
  export {
4869
- K as $,
4870
- yn as A,
4871
- ko as B,
4872
- $n as C,
4873
- Hr as D,
4834
+ ee as $,
4835
+ wo as A,
4836
+ Uo as B,
4837
+ Mr as C,
4838
+ wn as D,
4874
4839
  N as E,
4875
- jr as F,
4876
- So as G,
4877
- jo as H,
4878
- Lo as I,
4879
- fe as J,
4880
- Ro as K,
4881
- U as L,
4882
- lt as M,
4883
- Go as N,
4884
- ke as O,
4885
- ue as P,
4886
- yt as Q,
4887
- wo as R,
4888
- vn as S,
4889
- Vo as T,
4890
- gn as a,
4891
- Qr as b,
4892
- Kt as c,
4893
- D as d,
4894
- Do as e,
4840
+ Un as F,
4841
+ _o as G,
4842
+ Go as H,
4843
+ ce as I,
4844
+ le as J,
4845
+ mt as K,
4846
+ No as L,
4847
+ De as M,
4848
+ it as N,
4849
+ Oo as O,
4850
+ U as P,
4851
+ Mo as Q,
4852
+ vo as R,
4853
+ pr as S,
4854
+ Do as T,
4855
+ dr as a,
4856
+ zn as b,
4857
+ mr as c,
4858
+ ue as d,
4859
+ Io as e,
4895
4860
  I as f,
4896
- ae as g,
4897
- $o as h,
4898
- Ur as i,
4899
- kr as j,
4900
- Fo as k,
4901
- Ee as l,
4902
- zr as m,
4903
- Vr as n,
4904
- sn as o,
4905
- C as p,
4906
- M as q,
4907
- H as r,
4908
- Wt as s,
4909
- fn as t,
4910
- Xr as u,
4911
- Ve as v,
4912
- Uo as w,
4913
- To as x,
4914
- Ho as y,
4915
- Ao as z
4861
+ ur as g,
4862
+ Ro as h,
4863
+ Rn as i,
4864
+ D as j,
4865
+ Dn as k,
4866
+ M as l,
4867
+ T as m,
4868
+ C as n,
4869
+ nr as o,
4870
+ kn as p,
4871
+ Fn as q,
4872
+ Ee as r,
4873
+ kt as s,
4874
+ Qt as t,
4875
+ jn as u,
4876
+ $o as v,
4877
+ Lo as w,
4878
+ Fe as x,
4879
+ xo as y,
4880
+ Eo as z
4916
4881
  };