@everymatrix/cashier-error 1.99.22 → 1.99.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,35 @@
1
- var fn = Object.defineProperty, gn = Object.defineProperties;
2
- var pn = Object.getOwnPropertyDescriptors;
1
+ var Tn = Object.defineProperty, wn = Object.defineProperties;
2
+ var In = Object.getOwnPropertyDescriptors;
3
3
  var it = Object.getOwnPropertySymbols;
4
- var bn = Object.prototype.hasOwnProperty, yn = Object.prototype.propertyIsEnumerable;
5
- var Pe = (e, t, n) => t in e ? fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, at = (e, t) => {
4
+ var An = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable;
5
+ var Pe = (e, t, n) => t in e ? Tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, at = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- bn.call(t, n) && Pe(e, n, t[n]);
7
+ An.call(t, n) && Pe(e, n, t[n]);
8
8
  if (it)
9
9
  for (var n of it(t))
10
- yn.call(t, n) && Pe(e, n, t[n]);
10
+ Sn.call(t, n) && Pe(e, n, t[n]);
11
11
  return e;
12
- }, st = (e, t) => gn(e, pn(t));
13
- var S = (e, t, n) => (Pe(e, typeof t != "symbol" ? t + "" : t, n), n);
12
+ }, st = (e, t) => wn(e, In(t));
13
+ var A = (e, t, n) => (Pe(e, typeof t != "symbol" ? t + "" : t, n), n);
14
14
  var ot = (e, t, n) => new Promise((r, i) => {
15
- var a = (l) => {
15
+ var a = (u) => {
16
16
  try {
17
- o(n.next(l));
18
- } catch (u) {
19
- i(u);
17
+ o(n.next(u));
18
+ } catch (l) {
19
+ i(l);
20
20
  }
21
- }, s = (l) => {
21
+ }, s = (u) => {
22
22
  try {
23
- o(n.throw(l));
24
- } catch (u) {
25
- i(u);
23
+ o(n.throw(u));
24
+ } catch (l) {
25
+ i(l);
26
26
  }
27
- }, o = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(a, s);
27
+ }, o = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(a, s);
28
28
  o((n = n.apply(e, t)).next());
29
29
  });
30
- import "../stencil/ui-image-CP8Lp7fB.js";
31
30
  function P() {
32
31
  }
33
- function vn(e, t) {
32
+ function Cn(e, t) {
34
33
  for (const n in t)
35
34
  e[n] = t[n];
36
35
  return (
@@ -38,26 +37,26 @@ function vn(e, t) {
38
37
  e
39
38
  );
40
39
  }
41
- function Ot(e) {
40
+ function Dt(e) {
42
41
  return e();
43
42
  }
44
43
  function lt() {
45
44
  return /* @__PURE__ */ Object.create(null);
46
45
  }
47
46
  function re(e) {
48
- e.forEach(Ot);
47
+ e.forEach(Dt);
49
48
  }
50
49
  function Qe(e) {
51
50
  return typeof e == "function";
52
51
  }
53
- function Dt(e, t) {
52
+ function et(e, t) {
54
53
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
55
54
  }
56
55
  let ge;
57
56
  function ut(e, t) {
58
57
  return e === t ? !0 : (ge || (ge = document.createElement("a")), ge.href = t, e === ge.href);
59
58
  }
60
- function En(e) {
59
+ function Bn(e) {
61
60
  return Object.keys(e).length === 0;
62
61
  }
63
62
  function Nt(e, ...t) {
@@ -69,17 +68,17 @@ function Nt(e, ...t) {
69
68
  const n = e.subscribe(...t);
70
69
  return n.unsubscribe ? () => n.unsubscribe() : n;
71
70
  }
72
- function _n(e, t, n) {
71
+ function Ln(e, t, n) {
73
72
  e.$$.on_destroy.push(Nt(t, n));
74
73
  }
75
74
  function pe(e, t, n, r) {
76
75
  if (e) {
77
- const i = Rt(e, t, n, r);
76
+ const i = zt(e, t, n, r);
78
77
  return e[0](i);
79
78
  }
80
79
  }
81
- function Rt(e, t, n, r) {
82
- return e[1] && r ? vn(n.ctx.slice(), e[1](r(t))) : n.ctx;
80
+ function zt(e, t, n, r) {
81
+ return e[1] && r ? Cn(n.ctx.slice(), e[1](r(t))) : n.ctx;
83
82
  }
84
83
  function be(e, t, n, r) {
85
84
  if (e[2] && r) {
@@ -98,7 +97,7 @@ function be(e, t, n, r) {
98
97
  }
99
98
  function ye(e, t, n, r, i, a) {
100
99
  if (i) {
101
- const s = Rt(t, n, r, a);
100
+ const s = zt(t, n, r, a);
102
101
  e.p(s, i);
103
102
  }
104
103
  }
@@ -111,17 +110,17 @@ function ve(e) {
111
110
  }
112
111
  return -1;
113
112
  }
114
- function B(e, t) {
113
+ function M(e, t) {
115
114
  e.appendChild(t);
116
115
  }
117
- function xn(e, t, n) {
118
- const r = kn(e);
116
+ function Rt(e, t, n) {
117
+ const r = Hn(e);
119
118
  if (!r.getElementById(t)) {
120
- const i = C("style");
121
- i.id = t, i.textContent = n, Tn(r, i);
119
+ const i = L("style");
120
+ i.id = t, i.textContent = n, Mn(r, i);
122
121
  }
123
122
  }
124
- function kn(e) {
123
+ function Hn(e) {
125
124
  if (!e)
126
125
  return document;
127
126
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -131,49 +130,118 @@ function kn(e) {
131
130
  t
132
131
  ) : e.ownerDocument;
133
132
  }
134
- function Tn(e, t) {
135
- return B(
133
+ function Mn(e, t) {
134
+ return M(
136
135
  /** @type {Document} */
137
136
  e.head || e,
138
137
  t
139
138
  ), t.sheet;
140
139
  }
141
- function A(e, t, n) {
140
+ function I(e, t, n) {
142
141
  e.insertBefore(t, n || null);
143
142
  }
144
- function T(e) {
143
+ function w(e) {
145
144
  e.parentNode && e.parentNode.removeChild(e);
146
145
  }
147
- function C(e) {
146
+ function L(e) {
148
147
  return document.createElement(e);
149
148
  }
149
+ function Pn(e) {
150
+ return document.createElementNS("http://www.w3.org/2000/svg", e);
151
+ }
150
152
  function R(e) {
151
153
  return document.createTextNode(e);
152
154
  }
153
- function J() {
155
+ function $() {
154
156
  return R(" ");
155
157
  }
156
- function et() {
158
+ function Ce() {
157
159
  return R("");
158
160
  }
159
- function wn(e, t, n, r) {
161
+ function Ut(e, t, n, r) {
160
162
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
161
163
  }
162
- function O(e, t, n) {
164
+ function T(e, t, n) {
163
165
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
164
166
  }
165
- function Ee(e, t, n) {
166
- const r = t.toLowerCase();
167
- r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : O(e, t, n);
168
- }
169
- function In(e) {
167
+ function On(e) {
170
168
  return Array.from(e.childNodes);
171
169
  }
172
170
  function Y(e, t) {
173
171
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
174
172
  t);
175
173
  }
176
- function An(e) {
174
+ class Dn {
175
+ constructor(t = !1) {
176
+ /**
177
+ * @private
178
+ * @default false
179
+ */
180
+ A(this, "is_svg", !1);
181
+ /** parent for creating node */
182
+ A(this, "e");
183
+ /** html tag nodes */
184
+ A(this, "n");
185
+ /** target */
186
+ A(this, "t");
187
+ /** anchor */
188
+ A(this, "a");
189
+ this.is_svg = t, this.e = this.n = null;
190
+ }
191
+ /**
192
+ * @param {string} html
193
+ * @returns {void}
194
+ */
195
+ c(t) {
196
+ this.h(t);
197
+ }
198
+ /**
199
+ * @param {string} html
200
+ * @param {HTMLElement | SVGElement} target
201
+ * @param {HTMLElement | SVGElement} anchor
202
+ * @returns {void}
203
+ */
204
+ m(t, n, r = null) {
205
+ this.e || (this.is_svg ? this.e = Pn(
206
+ /** @type {keyof SVGElementTagNameMap} */
207
+ n.nodeName
208
+ ) : this.e = L(
209
+ /** @type {keyof HTMLElementTagNameMap} */
210
+ n.nodeType === 11 ? "TEMPLATE" : n.nodeName
211
+ ), this.t = n.tagName !== "TEMPLATE" ? n : (
212
+ /** @type {HTMLTemplateElement} */
213
+ n.content
214
+ ), this.c(t)), this.i(r);
215
+ }
216
+ /**
217
+ * @param {string} html
218
+ * @returns {void}
219
+ */
220
+ h(t) {
221
+ this.e.innerHTML = t, this.n = Array.from(
222
+ this.e.nodeName === "TEMPLATE" ? this.e.content.childNodes : this.e.childNodes
223
+ );
224
+ }
225
+ /**
226
+ * @returns {void} */
227
+ i(t) {
228
+ for (let n = 0; n < this.n.length; n += 1)
229
+ I(this.t, this.n[n], t);
230
+ }
231
+ /**
232
+ * @param {string} html
233
+ * @returns {void}
234
+ */
235
+ p(t) {
236
+ this.d(), this.h(t), this.i(this.a);
237
+ }
238
+ /**
239
+ * @returns {void} */
240
+ d() {
241
+ this.n.forEach(w);
242
+ }
243
+ }
244
+ function Nn(e) {
177
245
  const t = {};
178
246
  return e.childNodes.forEach(
179
247
  /** @param {Element} node */
@@ -186,106 +254,109 @@ let ce;
186
254
  function ue(e) {
187
255
  ce = e;
188
256
  }
189
- function Sn() {
257
+ function zn() {
190
258
  if (!ce)
191
259
  throw new Error("Function called outside component initialization");
192
260
  return ce;
193
261
  }
194
- function Bn(e) {
195
- Sn().$$.on_mount.push(e);
262
+ function Rn(e) {
263
+ zn().$$.on_mount.push(e);
196
264
  }
197
- const q = [], Ge = [];
265
+ const Z = [], Ge = [];
198
266
  let K = [];
199
- const ct = [], Cn = /* @__PURE__ */ Promise.resolve();
267
+ const ct = [], Un = /* @__PURE__ */ Promise.resolve();
200
268
  let $e = !1;
201
- function Ln() {
202
- $e || ($e = !0, Cn.then(L));
269
+ function Fn() {
270
+ $e || ($e = !0, Un.then(B));
203
271
  }
204
272
  function je(e) {
205
273
  K.push(e);
206
274
  }
207
275
  const Oe = /* @__PURE__ */ new Set();
208
- let V = 0;
209
- function L() {
210
- if (V !== 0)
276
+ let q = 0;
277
+ function B() {
278
+ if (q !== 0)
211
279
  return;
212
280
  const e = ce;
213
281
  do {
214
282
  try {
215
- for (; V < q.length; ) {
216
- const t = q[V];
217
- V++, ue(t), Hn(t.$$);
283
+ for (; q < Z.length; ) {
284
+ const t = Z[q];
285
+ q++, ue(t), Gn(t.$$);
218
286
  }
219
287
  } catch (t) {
220
- throw q.length = 0, V = 0, t;
288
+ throw Z.length = 0, q = 0, t;
221
289
  }
222
- for (ue(null), q.length = 0, V = 0; Ge.length; )
290
+ for (ue(null), Z.length = 0, q = 0; Ge.length; )
223
291
  Ge.pop()();
224
292
  for (let t = 0; t < K.length; t += 1) {
225
293
  const n = K[t];
226
294
  Oe.has(n) || (Oe.add(n), n());
227
295
  }
228
296
  K.length = 0;
229
- } while (q.length);
297
+ } while (Z.length);
230
298
  for (; ct.length; )
231
299
  ct.pop()();
232
300
  $e = !1, Oe.clear(), ue(e);
233
301
  }
234
- function Hn(e) {
302
+ function Gn(e) {
235
303
  if (e.fragment !== null) {
236
304
  e.update(), re(e.before_update);
237
305
  const t = e.dirty;
238
306
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
239
307
  }
240
308
  }
241
- function Mn(e) {
309
+ function $n(e) {
242
310
  const t = [], n = [];
243
311
  K.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), K = t;
244
312
  }
245
- const xe = /* @__PURE__ */ new Set();
246
- let F;
247
- function Pn() {
248
- F = {
313
+ const _e = /* @__PURE__ */ new Set();
314
+ let G;
315
+ function Ft() {
316
+ G = {
249
317
  r: 0,
250
318
  c: [],
251
- p: F
319
+ p: G
252
320
  // parent group
253
321
  };
254
322
  }
255
- function On() {
256
- F.r || re(F.c), F = F.p;
323
+ function Gt() {
324
+ G.r || re(G.c), G = G.p;
257
325
  }
258
- function D(e, t) {
259
- e && e.i && (xe.delete(e), e.i(t));
326
+ function H(e, t) {
327
+ e && e.i && (_e.delete(e), e.i(t));
260
328
  }
261
- function Z(e, t, n, r) {
329
+ function N(e, t, n, r) {
262
330
  if (e && e.o) {
263
- if (xe.has(e))
331
+ if (_e.has(e))
264
332
  return;
265
- xe.add(e), F.c.push(() => {
266
- xe.delete(e), r && (n && e.d(1), r());
333
+ _e.add(e), G.c.push(() => {
334
+ _e.delete(e), r && (n && e.d(1), r());
267
335
  }), e.o(t);
268
336
  } else
269
337
  r && r();
270
338
  }
271
- function Dn(e, t, n) {
339
+ function jn(e) {
340
+ e && e.c();
341
+ }
342
+ function $t(e, t, n) {
272
343
  const { fragment: r, after_update: i } = e.$$;
273
344
  r && r.m(t, n), je(() => {
274
- const a = e.$$.on_mount.map(Ot).filter(Qe);
345
+ const a = e.$$.on_mount.map(Dt).filter(Qe);
275
346
  e.$$.on_destroy ? e.$$.on_destroy.push(...a) : re(a), e.$$.on_mount = [];
276
347
  }), i.forEach(je);
277
348
  }
278
- function Nn(e, t) {
349
+ function jt(e, t) {
279
350
  const n = e.$$;
280
- n.fragment !== null && (Mn(n.after_update), re(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
351
+ n.fragment !== null && ($n(n.after_update), re(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
281
352
  }
282
- function Rn(e, t) {
283
- e.$$.dirty[0] === -1 && (q.push(e), Ln(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
353
+ function Vn(e, t) {
354
+ e.$$.dirty[0] === -1 && (Z.push(e), Fn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
284
355
  }
285
- function zn(e, t, n, r, i, a, s = null, o = [-1]) {
286
- const l = ce;
356
+ function Vt(e, t, n, r, i, a, s = null, o = [-1]) {
357
+ const u = ce;
287
358
  ue(e);
288
- const u = e.$$ = {
359
+ const l = e.$$ = {
289
360
  fragment: null,
290
361
  ctx: [],
291
362
  // state
@@ -299,50 +370,50 @@ function zn(e, t, n, r, i, a, s = null, o = [-1]) {
299
370
  on_disconnect: [],
300
371
  before_update: [],
301
372
  after_update: [],
302
- context: new Map(t.context || (l ? l.$$.context : [])),
373
+ context: new Map(t.context || (u ? u.$$.context : [])),
303
374
  // everything else
304
375
  callbacks: lt(),
305
376
  dirty: o,
306
377
  skip_bound: !1,
307
- root: t.target || l.$$.root
378
+ root: t.target || u.$$.root
308
379
  };
309
- s && s(u.root);
380
+ s && s(l.root);
310
381
  let c = !1;
311
- if (u.ctx = n ? n(e, t.props || {}, (h, d, ...f) => {
382
+ if (l.ctx = n ? n(e, t.props || {}, (h, d, ...f) => {
312
383
  const g = f.length ? f[0] : d;
313
- return u.ctx && i(u.ctx[h], u.ctx[h] = g) && (!u.skip_bound && u.bound[h] && u.bound[h](g), c && Rn(e, h)), d;
314
- }) : [], u.update(), c = !0, re(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
384
+ return l.ctx && i(l.ctx[h], l.ctx[h] = g) && (!l.skip_bound && l.bound[h] && l.bound[h](g), c && Vn(e, h)), d;
385
+ }) : [], l.update(), c = !0, re(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
315
386
  if (t.hydrate) {
316
- const h = In(t.target);
317
- u.fragment && u.fragment.l(h), h.forEach(T);
387
+ const h = On(t.target);
388
+ l.fragment && l.fragment.l(h), h.forEach(w);
318
389
  } else
319
- u.fragment && u.fragment.c();
320
- t.intro && D(e.$$.fragment), Dn(e, t.target, t.anchor), L();
390
+ l.fragment && l.fragment.c();
391
+ t.intro && H(e.$$.fragment), $t(e, t.target, t.anchor), B();
321
392
  }
322
- ue(l);
393
+ ue(u);
323
394
  }
324
- let zt;
325
- typeof HTMLElement == "function" && (zt = class extends HTMLElement {
395
+ let Wt;
396
+ typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
326
397
  constructor(t, n, r) {
327
398
  super();
328
399
  /** The Svelte component constructor */
329
- S(this, "$$ctor");
400
+ A(this, "$$ctor");
330
401
  /** Slots */
331
- S(this, "$$s");
402
+ A(this, "$$s");
332
403
  /** The Svelte component instance */
333
- S(this, "$$c");
404
+ A(this, "$$c");
334
405
  /** Whether or not the custom element is connected */
335
- S(this, "$$cn", !1);
406
+ A(this, "$$cn", !1);
336
407
  /** Component props data */
337
- S(this, "$$d", {});
408
+ A(this, "$$d", {});
338
409
  /** `true` if currently in the process of reflecting component props back to attributes */
339
- S(this, "$$r", !1);
410
+ A(this, "$$r", !1);
340
411
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
341
- S(this, "$$p_d", {});
412
+ A(this, "$$p_d", {});
342
413
  /** @type {Record<string, Function[]>} Event listeners */
343
- S(this, "$$l", {});
414
+ A(this, "$$l", {});
344
415
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
345
- S(this, "$$l_u", /* @__PURE__ */ new Map());
416
+ A(this, "$$l_u", /* @__PURE__ */ new Map());
346
417
  this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
347
418
  }
348
419
  addEventListener(t, n, r) {
@@ -366,29 +437,29 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
366
437
  let s;
367
438
  return {
368
439
  c: function() {
369
- s = C("slot"), a !== "default" && O(s, "name", a);
440
+ s = L("slot"), a !== "default" && T(s, "name", a);
370
441
  },
371
442
  /**
372
443
  * @param {HTMLElement} target
373
444
  * @param {HTMLElement} [anchor]
374
445
  */
375
- m: function(u, c) {
376
- A(u, s, c);
446
+ m: function(l, c) {
447
+ I(l, s, c);
377
448
  },
378
- d: function(u) {
379
- u && T(s);
449
+ d: function(l) {
450
+ l && w(s);
380
451
  }
381
452
  };
382
453
  };
383
454
  };
384
455
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
385
456
  return;
386
- const n = {}, r = An(this);
457
+ const n = {}, r = Nn(this);
387
458
  for (const a of this.$$s)
388
459
  a in r && (n[a] = [t(a)]);
389
460
  for (const a of this.attributes) {
390
461
  const s = this.$$g_p(a.name);
391
- s in this.$$d || (this.$$d[s] = ke(s, a.value, this.$$p_d, "toProp"));
462
+ s in this.$$d || (this.$$d[s] = xe(s, a.value, this.$$p_d, "toProp"));
392
463
  }
393
464
  for (const a in this.$$p_d)
394
465
  !(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
@@ -405,7 +476,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
405
476
  this.$$r = !0;
406
477
  for (const a in this.$$p_d)
407
478
  if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
408
- const s = ke(
479
+ const s = xe(
409
480
  a,
410
481
  this.$$d[a],
411
482
  this.$$p_d,
@@ -429,7 +500,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
429
500
  // and setting attributes through setAttribute etc, this is helpful
430
501
  attributeChangedCallback(t, n, r) {
431
502
  var i;
432
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ke(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
503
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = xe(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
433
504
  }
434
505
  disconnectedCallback() {
435
506
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -442,7 +513,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
442
513
  ) || t;
443
514
  }
444
515
  });
445
- function ke(e, t, n, r) {
516
+ function xe(e, t, n, r) {
446
517
  var a;
447
518
  const i = (a = n[e]) == null ? void 0 : a.type;
448
519
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -472,8 +543,8 @@ function ke(e, t, n, r) {
472
543
  return t;
473
544
  }
474
545
  }
475
- function Un(e, t, n, r, i, a) {
476
- let s = class extends zt {
546
+ function qt(e, t, n, r, i, a) {
547
+ let s = class extends Wt {
477
548
  constructor() {
478
549
  super(e, n, i), this.$$p_d = t;
479
550
  }
@@ -488,22 +559,22 @@ function Un(e, t, n, r, i, a) {
488
559
  get() {
489
560
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
490
561
  },
491
- set(l) {
492
- var u;
493
- l = ke(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
562
+ set(u) {
563
+ var l;
564
+ u = xe(o, u, t), this.$$d[o] = u, (l = this.$$c) == null || l.$set({ [o]: u });
494
565
  }
495
566
  });
496
567
  }), r.forEach((o) => {
497
568
  Object.defineProperty(s.prototype, o, {
498
569
  get() {
499
- var l;
500
- return (l = this.$$c) == null ? void 0 : l[o];
570
+ var u;
571
+ return (u = this.$$c) == null ? void 0 : u[o];
501
572
  }
502
573
  });
503
574
  }), e.element = /** @type {any} */
504
575
  s, s;
505
576
  }
506
- class Fn {
577
+ class Xt {
507
578
  constructor() {
508
579
  /**
509
580
  * ### PRIVATE API
@@ -512,7 +583,7 @@ class Fn {
512
583
  *
513
584
  * @type {any}
514
585
  */
515
- S(this, "$$");
586
+ A(this, "$$");
516
587
  /**
517
588
  * ### PRIVATE API
518
589
  *
@@ -520,11 +591,11 @@ class Fn {
520
591
  *
521
592
  * @type {any}
522
593
  */
523
- S(this, "$$set");
594
+ A(this, "$$set");
524
595
  }
525
596
  /** @returns {void} */
526
597
  $destroy() {
527
- Nn(this, 1), this.$destroy = P;
598
+ jt(this, 1), this.$destroy = P;
528
599
  }
529
600
  /**
530
601
  * @template {Extract<keyof Events, string>} K
@@ -546,19 +617,19 @@ class Fn {
546
617
  * @returns {void}
547
618
  */
548
619
  $set(t) {
549
- this.$$set && !En(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
620
+ this.$$set && !Bn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
550
621
  }
551
622
  }
552
- const Gn = "4";
553
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gn);
554
- const X = "__WIDGET_GLOBAL_STYLE_CACHE__";
555
- function $n(e, t) {
623
+ const Wn = "4";
624
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Wn);
625
+ const J = "__WIDGET_GLOBAL_STYLE_CACHE__";
626
+ function qn(e, t) {
556
627
  if (e) {
557
628
  const n = document.createElement("style");
558
629
  n.innerHTML = t, e.appendChild(n);
559
630
  }
560
631
  }
561
- function jn(e, t) {
632
+ function Xn(e, t) {
562
633
  if (!e || !t)
563
634
  return;
564
635
  const n = new URL(t);
@@ -569,32 +640,32 @@ function jn(e, t) {
569
640
  console.error("There was an error while trying to load client styling from URL", r);
570
641
  });
571
642
  }
572
- function Vn(e, t, n, r = !1) {
643
+ function Zn(e, t, n, r = !1) {
573
644
  if (!window.emMessageBus)
574
645
  return;
575
646
  if (!("adoptedStyleSheets" in Document.prototype) || !r)
576
- return n = Wn(e, t), n;
577
- window[X] || (window[X] = {}), n = qn(e, t);
647
+ return n = Jn(e, t), n;
648
+ window[J] || (window[J] = {}), n = Kn(e, t);
578
649
  const a = n.unsubscribe.bind(n), s = () => {
579
- if (window[X][t]) {
580
- const o = window[X][t];
581
- o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[X][t];
650
+ if (window[J][t]) {
651
+ const o = window[J][t];
652
+ o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[J][t];
582
653
  }
583
654
  a();
584
655
  };
585
656
  return n.unsubscribe = s, n;
586
657
  }
587
- function Wn(e, t) {
658
+ function Jn(e, t) {
588
659
  const n = document.createElement("style");
589
660
  return window.emMessageBus.subscribe(t, (r) => {
590
661
  e && (n.innerHTML = r, e.appendChild(n));
591
662
  });
592
663
  }
593
- function qn(e, t) {
664
+ function Kn(e, t) {
594
665
  return window.emMessageBus.subscribe(t, (n) => {
595
666
  if (!e)
596
667
  return;
597
- const r = e.getRootNode(), i = window[X];
668
+ const r = e.getRootNode(), i = window[J];
598
669
  let a = i[t] && i[t].sheet;
599
670
  a ? i[t].refCount = i[t].refCount + 1 : (a = new CSSStyleSheet(), a.replaceSync(n), i[t] = {
600
671
  sheet: a,
@@ -604,34 +675,153 @@ function qn(e, t) {
604
675
  s.includes(a) || (r.adoptedStyleSheets = [...s, a]);
605
676
  });
606
677
  }
607
- const W = [];
608
- function Xn(e, t) {
678
+ function Yn(e) {
679
+ Rt(e, "svelte-1nr7vqj", ".HostContainer.svelte-1nr7vqj{display:block}.UiContainer.svelte-1nr7vqj{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.Hidden.svelte-1nr7vqj{opacity:0;transition:opacity 0.5s ease-in-out}.Visible.svelte-1nr7vqj{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}.Skeleton.svelte-1nr7vqj{animation:svelte-1nr7vqj-skeleton-loading 1s linear infinite alternate}.SkeletonImage.svelte-1nr7vqj{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}@keyframes svelte-1nr7vqj-skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}");
680
+ }
681
+ function ht(e) {
682
+ let t;
683
+ return {
684
+ c() {
685
+ t = L("div"), t.innerHTML = '<div class="SkeletonImage Skeleton svelte-1nr7vqj"></div>', T(t, "class", "UiContainer svelte-1nr7vqj");
686
+ },
687
+ m(n, r) {
688
+ I(n, t, r);
689
+ },
690
+ d(n) {
691
+ n && w(t);
692
+ }
693
+ };
694
+ }
695
+ function Qn(e) {
696
+ let t, n, r, i, a, s, o, u = !/*imgLoaded*/
697
+ e[4] && ht();
698
+ return {
699
+ c() {
700
+ t = L("div"), u && u.c(), n = $(), r = L("img"), ut(r.src, i = /*src*/
701
+ e[0]) || T(r, "src", i), T(
702
+ r,
703
+ "alt",
704
+ /*alt*/
705
+ e[1]
706
+ ), T(
707
+ r,
708
+ "width",
709
+ /*width*/
710
+ e[2]
711
+ ), T(
712
+ r,
713
+ "height",
714
+ /*height*/
715
+ e[3]
716
+ ), T(r, "class", a = "UiContainer " + /*imgLoaded*/
717
+ (e[4] ? "Visible" : "Hidden") + " svelte-1nr7vqj"), T(r, "loading", "lazy"), T(t, "class", "HostContainer hydrated svelte-1nr7vqj");
718
+ },
719
+ m(l, c) {
720
+ I(l, t, c), u && u.m(t, null), M(t, n), M(t, r), s || (o = Ut(
721
+ r,
722
+ "load",
723
+ /*load_handler*/
724
+ e[5]
725
+ ), s = !0);
726
+ },
727
+ p(l, [c]) {
728
+ /*imgLoaded*/
729
+ l[4] ? u && (u.d(1), u = null) : u || (u = ht(), u.c(), u.m(t, n)), c & /*src*/
730
+ 1 && !ut(r.src, i = /*src*/
731
+ l[0]) && T(r, "src", i), c & /*alt*/
732
+ 2 && T(
733
+ r,
734
+ "alt",
735
+ /*alt*/
736
+ l[1]
737
+ ), c & /*width*/
738
+ 4 && T(
739
+ r,
740
+ "width",
741
+ /*width*/
742
+ l[2]
743
+ ), c & /*height*/
744
+ 8 && T(
745
+ r,
746
+ "height",
747
+ /*height*/
748
+ l[3]
749
+ ), c & /*imgLoaded*/
750
+ 16 && a !== (a = "UiContainer " + /*imgLoaded*/
751
+ (l[4] ? "Visible" : "Hidden") + " svelte-1nr7vqj") && T(r, "class", a);
752
+ },
753
+ i: P,
754
+ o: P,
755
+ d(l) {
756
+ l && w(t), u && u.d(), s = !1, o();
757
+ }
758
+ };
759
+ }
760
+ function er(e, t, n) {
761
+ let { src: r } = t, { alt: i = void 0 } = t, { width: a = void 0 } = t, { height: s = void 0 } = t, o = !1;
762
+ const u = () => n(4, o = !0);
763
+ return e.$$set = (l) => {
764
+ "src" in l && n(0, r = l.src), "alt" in l && n(1, i = l.alt), "width" in l && n(2, a = l.width), "height" in l && n(3, s = l.height);
765
+ }, [r, i, a, s, o, u];
766
+ }
767
+ class Zt extends Xt {
768
+ constructor(t) {
769
+ super(), Vt(this, t, er, Qn, et, { src: 0, alt: 1, width: 2, height: 3 }, Yn);
770
+ }
771
+ get src() {
772
+ return this.$$.ctx[0];
773
+ }
774
+ set src(t) {
775
+ this.$$set({ src: t }), B();
776
+ }
777
+ get alt() {
778
+ return this.$$.ctx[1];
779
+ }
780
+ set alt(t) {
781
+ this.$$set({ alt: t }), B();
782
+ }
783
+ get width() {
784
+ return this.$$.ctx[2];
785
+ }
786
+ set width(t) {
787
+ this.$$set({ width: t }), B();
788
+ }
789
+ get height() {
790
+ return this.$$.ctx[3];
791
+ }
792
+ set height(t) {
793
+ this.$$set({ height: t }), B();
794
+ }
795
+ }
796
+ qt(Zt, { src: {}, alt: {}, width: {}, height: {} }, [], [], !0);
797
+ const X = [];
798
+ function tr(e, t) {
609
799
  return {
610
- subscribe: Ce(e, t).subscribe
800
+ subscribe: Be(e, t).subscribe
611
801
  };
612
802
  }
613
- function Ce(e, t = P) {
803
+ function Be(e, t = P) {
614
804
  let n;
615
805
  const r = /* @__PURE__ */ new Set();
616
806
  function i(o) {
617
- if (Dt(e, o) && (e = o, n)) {
618
- const l = !W.length;
619
- for (const u of r)
620
- u[1](), W.push(u, e);
621
- if (l) {
622
- for (let u = 0; u < W.length; u += 2)
623
- W[u][0](W[u + 1]);
624
- W.length = 0;
807
+ if (et(e, o) && (e = o, n)) {
808
+ const u = !X.length;
809
+ for (const l of r)
810
+ l[1](), X.push(l, e);
811
+ if (u) {
812
+ for (let l = 0; l < X.length; l += 2)
813
+ X[l][0](X[l + 1]);
814
+ X.length = 0;
625
815
  }
626
816
  }
627
817
  }
628
818
  function a(o) {
629
819
  i(o(e));
630
820
  }
631
- function s(o, l = P) {
632
- const u = [o, l];
633
- return r.add(u), r.size === 1 && (n = t(i, a) || P), o(e), () => {
634
- r.delete(u), r.size === 0 && n && (n(), n = null);
821
+ function s(o, u = P) {
822
+ const l = [o, u];
823
+ return r.add(l), r.size === 1 && (n = t(i, a) || P), o(e), () => {
824
+ r.delete(l), r.size === 0 && n && (n(), n = null);
635
825
  };
636
826
  }
637
827
  return { set: i, update: a, subscribe: s };
@@ -641,96 +831,96 @@ function ie(e, t, n) {
641
831
  if (!i.every(Boolean))
642
832
  throw new Error("derived() expects stores as input, got a falsy value");
643
833
  const a = t.length < 2;
644
- return Xn(n, (s, o) => {
645
- let l = !1;
646
- const u = [];
834
+ return tr(n, (s, o) => {
835
+ let u = !1;
836
+ const l = [];
647
837
  let c = 0, h = P;
648
838
  const d = () => {
649
839
  if (c)
650
840
  return;
651
841
  h();
652
- const g = t(r ? u[0] : u, s, o);
842
+ const g = t(r ? l[0] : l, s, o);
653
843
  a ? s(g) : h = Qe(g) ? g : P;
654
844
  }, f = i.map(
655
845
  (g, k) => Nt(
656
846
  g,
657
847
  (E) => {
658
- u[k] = E, c &= ~(1 << k), l && d();
848
+ l[k] = E, c &= ~(1 << k), u && d();
659
849
  },
660
850
  () => {
661
851
  c |= 1 << k;
662
852
  }
663
853
  )
664
854
  );
665
- return l = !0, d(), function() {
666
- re(f), h(), l = !1;
855
+ return u = !0, d(), function() {
856
+ re(f), h(), u = !1;
667
857
  };
668
858
  });
669
859
  }
670
- function Zn(e) {
860
+ function nr(e) {
671
861
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
672
862
  }
673
- var Jn = function(t) {
674
- return Kn(t) && !Yn(t);
863
+ var rr = function(t) {
864
+ return ir(t) && !ar(t);
675
865
  };
676
- function Kn(e) {
866
+ function ir(e) {
677
867
  return !!e && typeof e == "object";
678
868
  }
679
- function Yn(e) {
869
+ function ar(e) {
680
870
  var t = Object.prototype.toString.call(e);
681
- return t === "[object RegExp]" || t === "[object Date]" || tr(e);
871
+ return t === "[object RegExp]" || t === "[object Date]" || lr(e);
682
872
  }
683
- var Qn = typeof Symbol == "function" && Symbol.for, er = Qn ? Symbol.for("react.element") : 60103;
684
- function tr(e) {
685
- return e.$$typeof === er;
873
+ var sr = typeof Symbol == "function" && Symbol.for, or = sr ? Symbol.for("react.element") : 60103;
874
+ function lr(e) {
875
+ return e.$$typeof === or;
686
876
  }
687
- function nr(e) {
877
+ function ur(e) {
688
878
  return Array.isArray(e) ? [] : {};
689
879
  }
690
880
  function he(e, t) {
691
- return t.clone !== !1 && t.isMergeableObject(e) ? Q(nr(e), e, t) : e;
881
+ return t.clone !== !1 && t.isMergeableObject(e) ? Q(ur(e), e, t) : e;
692
882
  }
693
- function rr(e, t, n) {
883
+ function cr(e, t, n) {
694
884
  return e.concat(t).map(function(r) {
695
885
  return he(r, n);
696
886
  });
697
887
  }
698
- function ir(e, t) {
888
+ function hr(e, t) {
699
889
  if (!t.customMerge)
700
890
  return Q;
701
891
  var n = t.customMerge(e);
702
892
  return typeof n == "function" ? n : Q;
703
893
  }
704
- function ar(e) {
894
+ function dr(e) {
705
895
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
706
896
  return Object.propertyIsEnumerable.call(e, t);
707
897
  }) : [];
708
898
  }
709
- function ht(e) {
710
- return Object.keys(e).concat(ar(e));
899
+ function dt(e) {
900
+ return Object.keys(e).concat(dr(e));
711
901
  }
712
- function Ut(e, t) {
902
+ function Jt(e, t) {
713
903
  try {
714
904
  return t in e;
715
905
  } catch (n) {
716
906
  return !1;
717
907
  }
718
908
  }
719
- function sr(e, t) {
720
- return Ut(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
909
+ function mr(e, t) {
910
+ return Jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
721
911
  }
722
- function or(e, t, n) {
912
+ function fr(e, t, n) {
723
913
  var r = {};
724
- return n.isMergeableObject(e) && ht(e).forEach(function(i) {
914
+ return n.isMergeableObject(e) && dt(e).forEach(function(i) {
725
915
  r[i] = he(e[i], n);
726
- }), ht(t).forEach(function(i) {
727
- sr(e, i) || (Ut(e, i) && n.isMergeableObject(t[i]) ? r[i] = ir(i, n)(e[i], t[i], n) : r[i] = he(t[i], n));
916
+ }), dt(t).forEach(function(i) {
917
+ mr(e, i) || (Jt(e, i) && n.isMergeableObject(t[i]) ? r[i] = hr(i, n)(e[i], t[i], n) : r[i] = he(t[i], n));
728
918
  }), r;
729
919
  }
730
920
  function Q(e, t, n) {
731
- n = n || {}, n.arrayMerge = n.arrayMerge || rr, n.isMergeableObject = n.isMergeableObject || Jn, n.cloneUnlessOtherwiseSpecified = he;
921
+ n = n || {}, n.arrayMerge = n.arrayMerge || cr, n.isMergeableObject = n.isMergeableObject || rr, n.cloneUnlessOtherwiseSpecified = he;
732
922
  var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
733
- return a ? r ? n.arrayMerge(e, t, n) : or(e, t, n) : he(t, n);
923
+ return a ? r ? n.arrayMerge(e, t, n) : fr(e, t, n) : he(t, n);
734
924
  }
735
925
  Q.all = function(t, n) {
736
926
  if (!Array.isArray(t))
@@ -739,8 +929,8 @@ Q.all = function(t, n) {
739
929
  return Q(r, i, n);
740
930
  }, {});
741
931
  };
742
- var lr = Q, ur = lr;
743
- const cr = /* @__PURE__ */ Zn(ur);
932
+ var gr = Q, pr = gr;
933
+ const br = /* @__PURE__ */ nr(pr);
744
934
  var Ve = function(e, t) {
745
935
  return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
746
936
  n.__proto__ = r;
@@ -758,17 +948,17 @@ function Le(e, t) {
758
948
  }
759
949
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
760
950
  }
761
- var H = function() {
762
- return H = Object.assign || function(t) {
951
+ var O = function() {
952
+ return O = Object.assign || function(t) {
763
953
  for (var n, r = 1, i = arguments.length; r < i; r++) {
764
954
  n = arguments[r];
765
955
  for (var a in n)
766
956
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
767
957
  }
768
958
  return t;
769
- }, H.apply(this, arguments);
959
+ }, O.apply(this, arguments);
770
960
  };
771
- function hr(e, t) {
961
+ function yr(e, t) {
772
962
  var n = {};
773
963
  for (var r in e)
774
964
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -784,36 +974,36 @@ function De(e, t, n) {
784
974
  return e.concat(a || Array.prototype.slice.call(t));
785
975
  }
786
976
  function Ne(e, t) {
787
- var n = t && t.cache ? t.cache : yr, r = t && t.serializer ? t.serializer : pr, i = t && t.strategy ? t.strategy : fr;
977
+ var n = t && t.cache ? t.cache : wr, r = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : _r;
788
978
  return i(e, {
789
979
  cache: n,
790
980
  serializer: r
791
981
  });
792
982
  }
793
- function dr(e) {
983
+ function vr(e) {
794
984
  return e == null || typeof e == "number" || typeof e == "boolean";
795
985
  }
796
- function mr(e, t, n, r) {
797
- var i = dr(r) ? r : n(r), a = t.get(i);
986
+ function Er(e, t, n, r) {
987
+ var i = vr(r) ? r : n(r), a = t.get(i);
798
988
  return typeof a == "undefined" && (a = e.call(this, r), t.set(i, a)), a;
799
989
  }
800
- function Ft(e, t, n) {
990
+ function Kt(e, t, n) {
801
991
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
802
992
  return typeof a == "undefined" && (a = e.apply(this, r), t.set(i, a)), a;
803
993
  }
804
- function Gt(e, t, n, r, i) {
994
+ function Yt(e, t, n, r, i) {
805
995
  return n.bind(t, e, r, i);
806
996
  }
807
- function fr(e, t) {
808
- var n = e.length === 1 ? mr : Ft;
809
- return Gt(e, this, n, t.cache.create(), t.serializer);
997
+ function _r(e, t) {
998
+ var n = e.length === 1 ? Er : Kt;
999
+ return Yt(e, this, n, t.cache.create(), t.serializer);
810
1000
  }
811
- function gr(e, t) {
812
- return Gt(e, this, Ft, t.cache.create(), t.serializer);
1001
+ function xr(e, t) {
1002
+ return Yt(e, this, Kt, t.cache.create(), t.serializer);
813
1003
  }
814
- var pr = function() {
1004
+ var kr = function() {
815
1005
  return JSON.stringify(arguments);
816
- }, br = (
1006
+ }, Tr = (
817
1007
  /** @class */
818
1008
  function() {
819
1009
  function e() {
@@ -825,21 +1015,21 @@ var pr = function() {
825
1015
  this.cache[t] = n;
826
1016
  }, e;
827
1017
  }()
828
- ), yr = {
1018
+ ), wr = {
829
1019
  create: function() {
830
- return new br();
1020
+ return new Tr();
831
1021
  }
832
- }, Re = {
833
- variadic: gr
834
- }, Ie = function() {
835
- return Ie = Object.assign || function(t) {
1022
+ }, ze = {
1023
+ variadic: xr
1024
+ }, we = function() {
1025
+ return we = Object.assign || function(t) {
836
1026
  for (var n, r = 1, i = arguments.length; r < i; r++) {
837
1027
  n = arguments[r];
838
1028
  for (var a in n)
839
1029
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
840
1030
  }
841
1031
  return t;
842
- }, Ie.apply(this, arguments);
1032
+ }, we.apply(this, arguments);
843
1033
  };
844
1034
  var p;
845
1035
  (function(e) {
@@ -853,43 +1043,43 @@ var ee;
853
1043
  (function(e) {
854
1044
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
855
1045
  })(ee || (ee = {}));
856
- function dt(e) {
1046
+ function mt(e) {
857
1047
  return e.type === _.literal;
858
1048
  }
859
- function vr(e) {
1049
+ function Ir(e) {
860
1050
  return e.type === _.argument;
861
1051
  }
862
- function $t(e) {
1052
+ function Qt(e) {
863
1053
  return e.type === _.number;
864
1054
  }
865
- function jt(e) {
1055
+ function en(e) {
866
1056
  return e.type === _.date;
867
1057
  }
868
- function Vt(e) {
1058
+ function tn(e) {
869
1059
  return e.type === _.time;
870
1060
  }
871
- function Wt(e) {
1061
+ function nn(e) {
872
1062
  return e.type === _.select;
873
1063
  }
874
- function qt(e) {
1064
+ function rn(e) {
875
1065
  return e.type === _.plural;
876
1066
  }
877
- function Er(e) {
1067
+ function Ar(e) {
878
1068
  return e.type === _.pound;
879
1069
  }
880
- function Xt(e) {
1070
+ function an(e) {
881
1071
  return e.type === _.tag;
882
1072
  }
883
- function Zt(e) {
1073
+ function sn(e) {
884
1074
  return !!(e && typeof e == "object" && e.type === ee.number);
885
1075
  }
886
1076
  function We(e) {
887
1077
  return !!(e && typeof e == "object" && e.type === ee.dateTime);
888
1078
  }
889
- var Jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _r = /(?:[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;
890
- function xr(e) {
1079
+ var on = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Sr = /(?:[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;
1080
+ function Cr(e) {
891
1081
  var t = {};
892
- return e.replace(_r, function(n) {
1082
+ return e.replace(Sr, function(n) {
893
1083
  var r = n.length;
894
1084
  switch (n[0]) {
895
1085
  case "G":
@@ -988,36 +1178,36 @@ var x = function() {
988
1178
  return t;
989
1179
  }, x.apply(this, arguments);
990
1180
  };
991
- var kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
992
- function Tr(e) {
1181
+ var Br = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1182
+ function Lr(e) {
993
1183
  if (e.length === 0)
994
1184
  throw new Error("Number skeleton cannot be empty");
995
- for (var t = e.split(kr).filter(function(d) {
1185
+ for (var t = e.split(Br).filter(function(d) {
996
1186
  return d.length > 0;
997
1187
  }), n = [], r = 0, i = t; r < i.length; r++) {
998
1188
  var a = i[r], s = a.split("/");
999
1189
  if (s.length === 0)
1000
1190
  throw new Error("Invalid number skeleton");
1001
- for (var o = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
1002
- var h = c[u];
1191
+ for (var o = s[0], u = s.slice(1), l = 0, c = u; l < c.length; l++) {
1192
+ var h = c[l];
1003
1193
  if (h.length === 0)
1004
1194
  throw new Error("Invalid number skeleton");
1005
1195
  }
1006
- n.push({ stem: o, options: l });
1196
+ n.push({ stem: o, options: u });
1007
1197
  }
1008
1198
  return n;
1009
1199
  }
1010
- function wr(e) {
1200
+ function Hr(e) {
1011
1201
  return e.replace(/^(.*?)-/, "");
1012
1202
  }
1013
- var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Ir = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
1014
- function ft(e) {
1203
+ var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ln = /^(@+)?(\+|#+)?[rs]?$/g, Mr = /(\*)(0+)|(#+)(0+)|(0+)/g, un = /^(0+)$/;
1204
+ function gt(e) {
1015
1205
  var t = {};
1016
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(n, r, i) {
1206
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ln, function(n, r, i) {
1017
1207
  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)), "";
1018
1208
  }), t;
1019
1209
  }
1020
- function Qt(e) {
1210
+ function cn(e) {
1021
1211
  switch (e) {
1022
1212
  case "sign-auto":
1023
1213
  return {
@@ -1057,7 +1247,7 @@ function Qt(e) {
1057
1247
  };
1058
1248
  }
1059
1249
  }
1060
- function Ar(e) {
1250
+ function Pr(e) {
1061
1251
  var t;
1062
1252
  if (e[0] === "E" && e[1] === "E" ? (t = {
1063
1253
  notation: "engineering"
@@ -1065,17 +1255,17 @@ function Ar(e) {
1065
1255
  notation: "scientific"
1066
1256
  }, e = e.slice(1)), t) {
1067
1257
  var n = e.slice(0, 2);
1068
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
1258
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !un.test(e))
1069
1259
  throw new Error("Malformed concise eng/scientific notation");
1070
1260
  t.minimumIntegerDigits = e.length;
1071
1261
  }
1072
1262
  return t;
1073
1263
  }
1074
- function gt(e) {
1075
- var t = {}, n = Qt(e);
1264
+ function pt(e) {
1265
+ var t = {}, n = cn(e);
1076
1266
  return n || t;
1077
1267
  }
1078
- function Sr(e) {
1268
+ function Or(e) {
1079
1269
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
1080
1270
  var i = r[n];
1081
1271
  switch (i.stem) {
@@ -1099,7 +1289,7 @@ function Sr(e) {
1099
1289
  continue;
1100
1290
  case "measure-unit":
1101
1291
  case "unit":
1102
- t.style = "unit", t.unit = wr(i.options[0]);
1292
+ t.style = "unit", t.unit = Hr(i.options[0]);
1103
1293
  continue;
1104
1294
  case "compact-short":
1105
1295
  case "K":
@@ -1110,13 +1300,13 @@ function Sr(e) {
1110
1300
  t.notation = "compact", t.compactDisplay = "long";
1111
1301
  continue;
1112
1302
  case "scientific":
1113
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1114
- return x(x({}, l), gt(u));
1303
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1304
+ return x(x({}, u), pt(l));
1115
1305
  }, {}));
1116
1306
  continue;
1117
1307
  case "engineering":
1118
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1119
- return x(x({}, l), gt(u));
1308
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1309
+ return x(x({}, u), pt(l));
1120
1310
  }, {}));
1121
1311
  continue;
1122
1312
  case "notation-simple":
@@ -1161,8 +1351,8 @@ function Sr(e) {
1161
1351
  case "integer-width":
1162
1352
  if (i.options.length > 1)
1163
1353
  throw new RangeError("integer-width stems only accept a single optional option");
1164
- i.options[0].replace(Ir, function(l, u, c, h, d, f) {
1165
- if (u)
1354
+ i.options[0].replace(Mr, function(u, l, c, h, d, f) {
1355
+ if (l)
1166
1356
  t.minimumIntegerDigits = c.length;
1167
1357
  else {
1168
1358
  if (h && d)
@@ -1174,32 +1364,32 @@ function Sr(e) {
1174
1364
  });
1175
1365
  continue;
1176
1366
  }
1177
- if (Yt.test(i.stem)) {
1367
+ if (un.test(i.stem)) {
1178
1368
  t.minimumIntegerDigits = i.stem.length;
1179
1369
  continue;
1180
1370
  }
1181
- if (mt.test(i.stem)) {
1371
+ if (ft.test(i.stem)) {
1182
1372
  if (i.options.length > 1)
1183
1373
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1184
- i.stem.replace(mt, function(l, u, c, h, d, f) {
1185
- return c === "*" ? t.minimumFractionDigits = u.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && f ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + f.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1374
+ i.stem.replace(ft, function(u, l, c, h, d, f) {
1375
+ return c === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && f ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + f.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1186
1376
  });
1187
1377
  var a = i.options[0];
1188
- a === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = x(x({}, t), ft(a)));
1378
+ a === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = x(x({}, t), gt(a)));
1189
1379
  continue;
1190
1380
  }
1191
- if (Kt.test(i.stem)) {
1192
- t = x(x({}, t), ft(i.stem));
1381
+ if (ln.test(i.stem)) {
1382
+ t = x(x({}, t), gt(i.stem));
1193
1383
  continue;
1194
1384
  }
1195
- var s = Qt(i.stem);
1385
+ var s = cn(i.stem);
1196
1386
  s && (t = x(x({}, t), s));
1197
- var o = Ar(i.stem);
1387
+ var o = Pr(i.stem);
1198
1388
  o && (t = x(x({}, t), o));
1199
1389
  }
1200
1390
  return t;
1201
1391
  }
1202
- var _e = {
1392
+ var Ee = {
1203
1393
  "001": [
1204
1394
  "H",
1205
1395
  "h"
@@ -2614,23 +2804,23 @@ var _e = {
2614
2804
  "h"
2615
2805
  ]
2616
2806
  };
2617
- function Br(e, t) {
2807
+ function Dr(e, t) {
2618
2808
  for (var n = "", r = 0; r < e.length; r++) {
2619
2809
  var i = e.charAt(r);
2620
2810
  if (i === "j") {
2621
2811
  for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2622
2812
  a++, r++;
2623
- var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), l = "a", u = Cr(t);
2624
- for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2625
- n += l;
2813
+ var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), u = "a", l = Nr(t);
2814
+ for ((l == "H" || l == "k") && (o = 0); o-- > 0; )
2815
+ n += u;
2626
2816
  for (; s-- > 0; )
2627
- n = u + n;
2817
+ n = l + n;
2628
2818
  } else
2629
2819
  i === "J" ? n += "H" : n += i;
2630
2820
  }
2631
2821
  return n;
2632
2822
  }
2633
- function Cr(e) {
2823
+ function Nr(e) {
2634
2824
  var t = e.hourCycle;
2635
2825
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2636
2826
  e.hourCycles && // @ts-ignore
@@ -2649,23 +2839,23 @@ function Cr(e) {
2649
2839
  }
2650
2840
  var n = e.language, r;
2651
2841
  n !== "root" && (r = e.maximize().region);
2652
- var i = _e[r || ""] || _e[n || ""] || _e["".concat(n, "-001")] || _e["001"];
2842
+ var i = Ee[r || ""] || Ee[n || ""] || Ee["".concat(n, "-001")] || Ee["001"];
2653
2843
  return i[0];
2654
2844
  }
2655
- var ze, Lr = new RegExp("^".concat(Jt.source, "*")), Hr = new RegExp("".concat(Jt.source, "*$"));
2845
+ var Re, zr = new RegExp("^".concat(on.source, "*")), Rr = new RegExp("".concat(on.source, "*$"));
2656
2846
  function y(e, t) {
2657
2847
  return { start: e, end: t };
2658
2848
  }
2659
- var Mr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pr = !!String.fromCodePoint, Or = !!Object.fromEntries, Dr = !!String.prototype.codePointAt, Nr = !!String.prototype.trimStart, Rr = !!String.prototype.trimEnd, zr = !!Number.isSafeInteger, Ur = zr ? Number.isSafeInteger : function(e) {
2849
+ var Ur = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fr = !!String.fromCodePoint, Gr = !!Object.fromEntries, $r = !!String.prototype.codePointAt, jr = !!String.prototype.trimStart, Vr = !!String.prototype.trimEnd, Wr = !!Number.isSafeInteger, qr = Wr ? Number.isSafeInteger : function(e) {
2660
2850
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2661
2851
  }, qe = !0;
2662
2852
  try {
2663
- var Fr = tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2664
- qe = ((ze = Fr.exec("a")) === null || ze === void 0 ? void 0 : ze[0]) === "a";
2853
+ var Xr = dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2854
+ qe = ((Re = Xr.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
2665
2855
  } catch (e) {
2666
2856
  qe = !1;
2667
2857
  }
2668
- var pt = Mr ? (
2858
+ var bt = Ur ? (
2669
2859
  // Native
2670
2860
  function(t, n, r) {
2671
2861
  return t.startsWith(n, r);
@@ -2675,7 +2865,7 @@ var pt = Mr ? (
2675
2865
  function(t, n, r) {
2676
2866
  return t.slice(r, r + n.length) === n;
2677
2867
  }
2678
- ), Xe = Pr ? String.fromCodePoint : (
2868
+ ), Xe = Fr ? String.fromCodePoint : (
2679
2869
  // IE11
2680
2870
  function() {
2681
2871
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2687,9 +2877,9 @@ var pt = Mr ? (
2687
2877
  }
2688
2878
  return r;
2689
2879
  }
2690
- ), bt = (
2880
+ ), yt = (
2691
2881
  // native
2692
- Or ? Object.fromEntries : (
2882
+ Gr ? Object.fromEntries : (
2693
2883
  // Ponyfill
2694
2884
  function(t) {
2695
2885
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2699,7 +2889,7 @@ var pt = Mr ? (
2699
2889
  return n;
2700
2890
  }
2701
2891
  )
2702
- ), en = Dr ? (
2892
+ ), hn = $r ? (
2703
2893
  // Native
2704
2894
  function(t, n) {
2705
2895
  return t.codePointAt(n);
@@ -2713,7 +2903,7 @@ var pt = Mr ? (
2713
2903
  return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2714
2904
  }
2715
2905
  }
2716
- ), Gr = Nr ? (
2906
+ ), Zr = jr ? (
2717
2907
  // Native
2718
2908
  function(t) {
2719
2909
  return t.trimStart();
@@ -2721,9 +2911,9 @@ var pt = Mr ? (
2721
2911
  ) : (
2722
2912
  // Ponyfill
2723
2913
  function(t) {
2724
- return t.replace(Lr, "");
2914
+ return t.replace(zr, "");
2725
2915
  }
2726
- ), $r = Rr ? (
2916
+ ), Jr = Vr ? (
2727
2917
  // Native
2728
2918
  function(t) {
2729
2919
  return t.trimEnd();
@@ -2731,32 +2921,32 @@ var pt = Mr ? (
2731
2921
  ) : (
2732
2922
  // Ponyfill
2733
2923
  function(t) {
2734
- return t.replace(Hr, "");
2924
+ return t.replace(Rr, "");
2735
2925
  }
2736
2926
  );
2737
- function tn(e, t) {
2927
+ function dn(e, t) {
2738
2928
  return new RegExp(e, t);
2739
2929
  }
2740
2930
  var Ze;
2741
2931
  if (qe) {
2742
- var yt = tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2932
+ var vt = dn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2743
2933
  Ze = function(t, n) {
2744
2934
  var r;
2745
- yt.lastIndex = n;
2746
- var i = yt.exec(t);
2935
+ vt.lastIndex = n;
2936
+ var i = vt.exec(t);
2747
2937
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2748
2938
  };
2749
2939
  } else
2750
2940
  Ze = function(t, n) {
2751
2941
  for (var r = []; ; ) {
2752
- var i = en(t, n);
2753
- if (i === void 0 || nn(i) || qr(i))
2942
+ var i = hn(t, n);
2943
+ if (i === void 0 || mn(i) || ei(i))
2754
2944
  break;
2755
2945
  r.push(i), n += i >= 65536 ? 2 : 1;
2756
2946
  }
2757
2947
  return Xe.apply(void 0, r);
2758
2948
  };
2759
- var jr = (
2949
+ var Kr = (
2760
2950
  /** @class */
2761
2951
  function() {
2762
2952
  function e(t, n) {
@@ -2822,8 +3012,8 @@ var jr = (
2822
3012
  if (this.bumpIf("</")) {
2823
3013
  if (this.isEOF() || !Je(this.char()))
2824
3014
  return this.error(p.INVALID_TAG, y(o, this.clonePosition()));
2825
- var l = this.clonePosition(), u = this.parseTagName();
2826
- return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3015
+ var u = this.clonePosition(), l = this.parseTagName();
3016
+ return i !== l ? this.error(p.UNMATCHED_CLOSING_TAG, y(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2827
3017
  val: {
2828
3018
  type: _.tag,
2829
3019
  value: i,
@@ -2838,7 +3028,7 @@ var jr = (
2838
3028
  return this.error(p.INVALID_TAG, y(r, this.clonePosition()));
2839
3029
  }, e.prototype.parseTagName = function() {
2840
3030
  var t = this.offset();
2841
- for (this.bump(); !this.isEOF() && Wr(this.char()); )
3031
+ for (this.bump(); !this.isEOF() && Qr(this.char()); )
2842
3032
  this.bump();
2843
3033
  return this.message.slice(t, this.offset());
2844
3034
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2860,14 +3050,14 @@ var jr = (
2860
3050
  }
2861
3051
  break;
2862
3052
  }
2863
- var l = y(r, this.clonePosition());
3053
+ var u = y(r, this.clonePosition());
2864
3054
  return {
2865
- val: { type: _.literal, value: i, location: l },
3055
+ val: { type: _.literal, value: i, location: u },
2866
3056
  err: null
2867
3057
  };
2868
3058
  }, e.prototype.tryParseLeftAngleBracket = function() {
2869
3059
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2870
- !Vr(this.peek() || 0)) ? (this.bump(), "<") : null;
3060
+ !Yr(this.peek() || 0)) ? (this.bump(), "<") : null;
2871
3061
  }, e.prototype.tryParseQuote = function(t) {
2872
3062
  if (this.isEOF() || this.char() !== 39)
2873
3063
  return null;
@@ -2940,34 +3130,34 @@ var jr = (
2940
3130
  var a = this.clonePosition(), s = y(t, a);
2941
3131
  return { value: r, location: s };
2942
3132
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2943
- var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3133
+ var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2944
3134
  switch (o) {
2945
3135
  case "":
2946
- return this.error(p.EXPECT_ARGUMENT_TYPE, y(s, l));
3136
+ return this.error(p.EXPECT_ARGUMENT_TYPE, y(s, u));
2947
3137
  case "number":
2948
3138
  case "date":
2949
3139
  case "time": {
2950
3140
  this.bumpSpace();
2951
- var u = null;
3141
+ var l = null;
2952
3142
  if (this.bumpIf(",")) {
2953
3143
  this.bumpSpace();
2954
3144
  var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
2955
3145
  if (h.err)
2956
3146
  return h;
2957
- var d = $r(h.val);
3147
+ var d = Jr(h.val);
2958
3148
  if (d.length === 0)
2959
3149
  return this.error(p.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2960
3150
  var f = y(c, this.clonePosition());
2961
- u = { style: d, styleLocation: f };
3151
+ l = { style: d, styleLocation: f };
2962
3152
  }
2963
3153
  var g = this.tryParseArgumentClose(i);
2964
3154
  if (g.err)
2965
3155
  return g;
2966
3156
  var k = y(i, this.clonePosition());
2967
- if (u && pt(u == null ? void 0 : u.style, "::", 0)) {
2968
- var E = Gr(u.style.slice(2));
3157
+ if (l && bt(l == null ? void 0 : l.style, "::", 0)) {
3158
+ var E = Zr(l.style.slice(2));
2969
3159
  if (o === "number") {
2970
- var h = this.parseNumberSkeletonFromString(E, u.styleLocation);
3160
+ var h = this.parseNumberSkeletonFromString(E, l.styleLocation);
2971
3161
  return h.err ? h : {
2972
3162
  val: { type: _.number, value: r, location: k, style: h.val },
2973
3163
  err: null
@@ -2976,12 +3166,12 @@ var jr = (
2976
3166
  if (E.length === 0)
2977
3167
  return this.error(p.EXPECT_DATE_TIME_SKELETON, k);
2978
3168
  var m = E;
2979
- this.locale && (m = Br(E, this.locale));
3169
+ this.locale && (m = Dr(E, this.locale));
2980
3170
  var d = {
2981
3171
  type: ee.dateTime,
2982
3172
  pattern: m,
2983
- location: u.styleLocation,
2984
- parsedOptions: this.shouldParseSkeletons ? xr(m) : {}
3173
+ location: l.styleLocation,
3174
+ parsedOptions: this.shouldParseSkeletons ? Cr(m) : {}
2985
3175
  }, v = o === "date" ? _.date : _.time;
2986
3176
  return {
2987
3177
  val: { type: v, value: r, location: k, style: d },
@@ -2994,7 +3184,7 @@ var jr = (
2994
3184
  type: o === "number" ? _.number : o === "date" ? _.date : _.time,
2995
3185
  value: r,
2996
3186
  location: k,
2997
- style: (a = u == null ? void 0 : u.style) !== null && a !== void 0 ? a : null
3187
+ style: (a = l == null ? void 0 : l.style) !== null && a !== void 0 ? a : null
2998
3188
  },
2999
3189
  err: null
3000
3190
  };
@@ -3002,23 +3192,23 @@ var jr = (
3002
3192
  case "plural":
3003
3193
  case "selectordinal":
3004
3194
  case "select": {
3005
- var w = this.clonePosition();
3195
+ var S = this.clonePosition();
3006
3196
  if (this.bumpSpace(), !this.bumpIf(","))
3007
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, y(w, Ie({}, w)));
3197
+ return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, y(S, we({}, S)));
3008
3198
  this.bumpSpace();
3009
- var U = this.parseIdentifierIfPossible(), M = 0;
3010
- if (o !== "select" && U.value === "offset") {
3199
+ var F = this.parseIdentifierIfPossible(), D = 0;
3200
+ if (o !== "select" && F.value === "offset") {
3011
3201
  if (!this.bumpIf(":"))
3012
3202
  return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3013
3203
  this.bumpSpace();
3014
3204
  var h = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3015
3205
  if (h.err)
3016
3206
  return h;
3017
- this.bumpSpace(), U = this.parseIdentifierIfPossible(), M = h.val;
3207
+ this.bumpSpace(), F = this.parseIdentifierIfPossible(), D = h.val;
3018
3208
  }
3019
- var $ = this.tryParsePluralOrSelectOptions(t, o, n, U);
3020
- if ($.err)
3021
- return $;
3209
+ var V = this.tryParsePluralOrSelectOptions(t, o, n, F);
3210
+ if (V.err)
3211
+ return V;
3022
3212
  var g = this.tryParseArgumentClose(i);
3023
3213
  if (g.err)
3024
3214
  return g;
@@ -3027,7 +3217,7 @@ var jr = (
3027
3217
  val: {
3028
3218
  type: _.select,
3029
3219
  value: r,
3030
- options: bt($.val),
3220
+ options: yt(V.val),
3031
3221
  location: se
3032
3222
  },
3033
3223
  err: null
@@ -3035,8 +3225,8 @@ var jr = (
3035
3225
  val: {
3036
3226
  type: _.plural,
3037
3227
  value: r,
3038
- options: bt($.val),
3039
- offset: M,
3228
+ options: yt(V.val),
3229
+ offset: D,
3040
3230
  pluralType: o === "plural" ? "cardinal" : "ordinal",
3041
3231
  location: se
3042
3232
  },
@@ -3044,7 +3234,7 @@ var jr = (
3044
3234
  };
3045
3235
  }
3046
3236
  default:
3047
- return this.error(p.INVALID_ARGUMENT_TYPE, y(s, l));
3237
+ return this.error(p.INVALID_ARGUMENT_TYPE, y(s, u));
3048
3238
  }
3049
3239
  }, e.prototype.tryParseArgumentClose = function(t) {
3050
3240
  return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3086,7 +3276,7 @@ var jr = (
3086
3276
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3087
3277
  var r = [];
3088
3278
  try {
3089
- r = Tr(t);
3279
+ r = Lr(t);
3090
3280
  } catch (i) {
3091
3281
  return this.error(p.INVALID_NUMBER_SKELETON, n);
3092
3282
  }
@@ -3095,25 +3285,25 @@ var jr = (
3095
3285
  type: ee.number,
3096
3286
  tokens: r,
3097
3287
  location: n,
3098
- parsedOptions: this.shouldParseSkeletons ? Sr(r) : {}
3288
+ parsedOptions: this.shouldParseSkeletons ? Or(r) : {}
3099
3289
  },
3100
3290
  err: null
3101
3291
  };
3102
3292
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3103
- for (var a, s = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
3104
- if (u.length === 0) {
3293
+ for (var a, s = !1, o = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
3294
+ if (l.length === 0) {
3105
3295
  var h = this.clonePosition();
3106
3296
  if (n !== "select" && this.bumpIf("=")) {
3107
3297
  var d = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
3108
3298
  if (d.err)
3109
3299
  return d;
3110
- c = y(h, this.clonePosition()), u = this.message.slice(h.offset, this.offset());
3300
+ c = y(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
3111
3301
  } else
3112
3302
  break;
3113
3303
  }
3114
- if (l.has(u))
3304
+ if (u.has(l))
3115
3305
  return this.error(n === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3116
- u === "other" && (s = !0), this.bumpSpace();
3306
+ l === "other" && (s = !0), this.bumpSpace();
3117
3307
  var f = this.clonePosition();
3118
3308
  if (!this.bumpIf("{"))
3119
3309
  return this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
@@ -3124,12 +3314,12 @@ var jr = (
3124
3314
  if (k.err)
3125
3315
  return k;
3126
3316
  o.push([
3127
- u,
3317
+ l,
3128
3318
  {
3129
3319
  value: g.val,
3130
3320
  location: y(f, this.clonePosition())
3131
3321
  }
3132
- ]), l.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, c = a.location;
3322
+ ]), u.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, c = a.location;
3133
3323
  }
3134
3324
  return o.length === 0 ? this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3135
3325
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
@@ -3142,8 +3332,8 @@ var jr = (
3142
3332
  else
3143
3333
  break;
3144
3334
  }
3145
- var l = y(i, this.clonePosition());
3146
- return a ? (s *= r, Ur(s) ? { val: s, err: null } : this.error(n, l)) : this.error(t, l);
3335
+ var u = y(i, this.clonePosition());
3336
+ return a ? (s *= r, qr(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
3147
3337
  }, e.prototype.offset = function() {
3148
3338
  return this.position.offset;
3149
3339
  }, e.prototype.isEOF = function() {
@@ -3158,7 +3348,7 @@ var jr = (
3158
3348
  var t = this.position.offset;
3159
3349
  if (t >= this.message.length)
3160
3350
  throw Error("out of bound");
3161
- var n = en(this.message, t);
3351
+ var n = hn(this.message, t);
3162
3352
  if (n === void 0)
3163
3353
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3164
3354
  return n;
@@ -3177,7 +3367,7 @@ var jr = (
3177
3367
  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);
3178
3368
  }
3179
3369
  }, e.prototype.bumpIf = function(t) {
3180
- if (pt(this.message, t, this.offset())) {
3370
+ if (bt(this.message, t, this.offset())) {
3181
3371
  for (var n = 0; n < t.length; n++)
3182
3372
  this.bump();
3183
3373
  return !0;
@@ -3199,7 +3389,7 @@ var jr = (
3199
3389
  break;
3200
3390
  }
3201
3391
  }, e.prototype.bumpSpace = function() {
3202
- for (; !this.isEOF() && nn(this.char()); )
3392
+ for (; !this.isEOF() && mn(this.char()); )
3203
3393
  this.bump();
3204
3394
  }, e.prototype.peek = function() {
3205
3395
  if (this.isEOF())
@@ -3212,30 +3402,30 @@ var jr = (
3212
3402
  function Je(e) {
3213
3403
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3214
3404
  }
3215
- function Vr(e) {
3405
+ function Yr(e) {
3216
3406
  return Je(e) || e === 47;
3217
3407
  }
3218
- function Wr(e) {
3408
+ function Qr(e) {
3219
3409
  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;
3220
3410
  }
3221
- function nn(e) {
3411
+ function mn(e) {
3222
3412
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3223
3413
  }
3224
- function qr(e) {
3414
+ function ei(e) {
3225
3415
  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;
3226
3416
  }
3227
3417
  function Ke(e) {
3228
3418
  e.forEach(function(t) {
3229
- if (delete t.location, Wt(t) || qt(t))
3419
+ if (delete t.location, nn(t) || rn(t))
3230
3420
  for (var n in t.options)
3231
3421
  delete t.options[n].location, Ke(t.options[n].value);
3232
3422
  else
3233
- $t(t) && Zt(t.style) || (jt(t) || Vt(t)) && We(t.style) ? delete t.style.location : Xt(t) && Ke(t.children);
3423
+ Qt(t) && sn(t.style) || (en(t) || tn(t)) && We(t.style) ? delete t.style.location : an(t) && Ke(t.children);
3234
3424
  });
3235
3425
  }
3236
- function Xr(e, t) {
3237
- t === void 0 && (t = {}), t = Ie({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3238
- var n = new jr(e, t).parse();
3426
+ function ti(e, t) {
3427
+ t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3428
+ var n = new Kr(e, t).parse();
3239
3429
  if (n.err) {
3240
3430
  var r = SyntaxError(p[n.err.kind]);
3241
3431
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
@@ -3258,7 +3448,7 @@ var He = (
3258
3448
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3259
3449
  }, t;
3260
3450
  }(Error)
3261
- ), vt = (
3451
+ ), Et = (
3262
3452
  /** @class */
3263
3453
  function(e) {
3264
3454
  Le(t, e);
@@ -3267,7 +3457,7 @@ var He = (
3267
3457
  }
3268
3458
  return t;
3269
3459
  }(He)
3270
- ), Zr = (
3460
+ ), ni = (
3271
3461
  /** @class */
3272
3462
  function(e) {
3273
3463
  Le(t, e);
@@ -3276,7 +3466,7 @@ var He = (
3276
3466
  }
3277
3467
  return t;
3278
3468
  }(He)
3279
- ), Jr = (
3469
+ ), ri = (
3280
3470
  /** @class */
3281
3471
  function(e) {
3282
3472
  Le(t, e);
@@ -3285,126 +3475,126 @@ var He = (
3285
3475
  }
3286
3476
  return t;
3287
3477
  }(He)
3288
- ), I;
3478
+ ), C;
3289
3479
  (function(e) {
3290
3480
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3291
- })(I || (I = {}));
3292
- function Kr(e) {
3481
+ })(C || (C = {}));
3482
+ function ii(e) {
3293
3483
  return e.length < 2 ? e : e.reduce(function(t, n) {
3294
3484
  var r = t[t.length - 1];
3295
- return !r || r.type !== I.literal || n.type !== I.literal ? t.push(n) : r.value += n.value, t;
3485
+ return !r || r.type !== C.literal || n.type !== C.literal ? t.push(n) : r.value += n.value, t;
3296
3486
  }, []);
3297
3487
  }
3298
- function Yr(e) {
3488
+ function ai(e) {
3299
3489
  return typeof e == "function";
3300
3490
  }
3301
- function Te(e, t, n, r, i, a, s) {
3302
- if (e.length === 1 && dt(e[0]))
3491
+ function ke(e, t, n, r, i, a, s) {
3492
+ if (e.length === 1 && mt(e[0]))
3303
3493
  return [
3304
3494
  {
3305
- type: I.literal,
3495
+ type: C.literal,
3306
3496
  value: e[0].value
3307
3497
  }
3308
3498
  ];
3309
- for (var o = [], l = 0, u = e; l < u.length; l++) {
3310
- var c = u[l];
3311
- if (dt(c)) {
3499
+ for (var o = [], u = 0, l = e; u < l.length; u++) {
3500
+ var c = l[u];
3501
+ if (mt(c)) {
3312
3502
  o.push({
3313
- type: I.literal,
3503
+ type: C.literal,
3314
3504
  value: c.value
3315
3505
  });
3316
3506
  continue;
3317
3507
  }
3318
- if (Er(c)) {
3508
+ if (Ar(c)) {
3319
3509
  typeof a == "number" && o.push({
3320
- type: I.literal,
3510
+ type: C.literal,
3321
3511
  value: n.getNumberFormat(t).format(a)
3322
3512
  });
3323
3513
  continue;
3324
3514
  }
3325
3515
  var h = c.value;
3326
3516
  if (!(i && h in i))
3327
- throw new Jr(h, s);
3517
+ throw new ri(h, s);
3328
3518
  var d = i[h];
3329
- if (vr(c)) {
3519
+ if (Ir(c)) {
3330
3520
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), o.push({
3331
- type: typeof d == "string" ? I.literal : I.object,
3521
+ type: typeof d == "string" ? C.literal : C.object,
3332
3522
  value: d
3333
3523
  });
3334
3524
  continue;
3335
3525
  }
3336
- if (jt(c)) {
3526
+ if (en(c)) {
3337
3527
  var f = typeof c.style == "string" ? r.date[c.style] : We(c.style) ? c.style.parsedOptions : void 0;
3338
3528
  o.push({
3339
- type: I.literal,
3529
+ type: C.literal,
3340
3530
  value: n.getDateTimeFormat(t, f).format(d)
3341
3531
  });
3342
3532
  continue;
3343
3533
  }
3344
- if (Vt(c)) {
3534
+ if (tn(c)) {
3345
3535
  var f = typeof c.style == "string" ? r.time[c.style] : We(c.style) ? c.style.parsedOptions : r.time.medium;
3346
3536
  o.push({
3347
- type: I.literal,
3537
+ type: C.literal,
3348
3538
  value: n.getDateTimeFormat(t, f).format(d)
3349
3539
  });
3350
3540
  continue;
3351
3541
  }
3352
- if ($t(c)) {
3353
- var f = typeof c.style == "string" ? r.number[c.style] : Zt(c.style) ? c.style.parsedOptions : void 0;
3542
+ if (Qt(c)) {
3543
+ var f = typeof c.style == "string" ? r.number[c.style] : sn(c.style) ? c.style.parsedOptions : void 0;
3354
3544
  f && f.scale && (d = d * (f.scale || 1)), o.push({
3355
- type: I.literal,
3545
+ type: C.literal,
3356
3546
  value: n.getNumberFormat(t, f).format(d)
3357
3547
  });
3358
3548
  continue;
3359
3549
  }
3360
- if (Xt(c)) {
3550
+ if (an(c)) {
3361
3551
  var g = c.children, k = c.value, E = i[k];
3362
- if (!Yr(E))
3363
- throw new Zr(k, "function", s);
3364
- var m = Te(g, t, n, r, i, a), v = E(m.map(function(M) {
3365
- return M.value;
3552
+ if (!ai(E))
3553
+ throw new ni(k, "function", s);
3554
+ var m = ke(g, t, n, r, i, a), v = E(m.map(function(D) {
3555
+ return D.value;
3366
3556
  }));
3367
- Array.isArray(v) || (v = [v]), o.push.apply(o, v.map(function(M) {
3557
+ Array.isArray(v) || (v = [v]), o.push.apply(o, v.map(function(D) {
3368
3558
  return {
3369
- type: typeof M == "string" ? I.literal : I.object,
3370
- value: M
3559
+ type: typeof D == "string" ? C.literal : C.object,
3560
+ value: D
3371
3561
  };
3372
3562
  }));
3373
3563
  }
3374
- if (Wt(c)) {
3375
- var w = c.options[d] || c.options.other;
3376
- if (!w)
3377
- throw new vt(c.value, d, Object.keys(c.options), s);
3378
- o.push.apply(o, Te(w.value, t, n, r, i));
3564
+ if (nn(c)) {
3565
+ var S = c.options[d] || c.options.other;
3566
+ if (!S)
3567
+ throw new Et(c.value, d, Object.keys(c.options), s);
3568
+ o.push.apply(o, ke(S.value, t, n, r, i));
3379
3569
  continue;
3380
3570
  }
3381
- if (qt(c)) {
3382
- var w = c.options["=".concat(d)];
3383
- if (!w) {
3571
+ if (rn(c)) {
3572
+ var S = c.options["=".concat(d)];
3573
+ if (!S) {
3384
3574
  if (!Intl.PluralRules)
3385
3575
  throw new He(`Intl.PluralRules is not available in this environment.
3386
3576
  Try polyfilling it using "@formatjs/intl-pluralrules"
3387
3577
  `, te.MISSING_INTL_API, s);
3388
- var U = n.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
3389
- w = c.options[U] || c.options.other;
3578
+ var F = n.getPluralRules(t, { type: c.pluralType }).select(d - (c.offset || 0));
3579
+ S = c.options[F] || c.options.other;
3390
3580
  }
3391
- if (!w)
3392
- throw new vt(c.value, d, Object.keys(c.options), s);
3393
- o.push.apply(o, Te(w.value, t, n, r, i, d - (c.offset || 0)));
3581
+ if (!S)
3582
+ throw new Et(c.value, d, Object.keys(c.options), s);
3583
+ o.push.apply(o, ke(S.value, t, n, r, i, d - (c.offset || 0)));
3394
3584
  continue;
3395
3585
  }
3396
3586
  }
3397
- return Kr(o);
3587
+ return ii(o);
3398
3588
  }
3399
- function Qr(e, t) {
3400
- return t ? H(H(H({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3401
- return n[r] = H(H({}, e[r]), t[r] || {}), n;
3589
+ function si(e, t) {
3590
+ return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3591
+ return n[r] = O(O({}, e[r]), t[r] || {}), n;
3402
3592
  }, {})) : e;
3403
3593
  }
3404
- function ei(e, t) {
3594
+ function oi(e, t) {
3405
3595
  return t ? Object.keys(e).reduce(function(n, r) {
3406
- return n[r] = Qr(e[r], t[r]), n;
3407
- }, H({}, e)) : e;
3596
+ return n[r] = si(e[r], t[r]), n;
3597
+ }, O({}, e)) : e;
3408
3598
  }
3409
3599
  function Ue(e) {
3410
3600
  return {
@@ -3420,7 +3610,7 @@ function Ue(e) {
3420
3610
  }
3421
3611
  };
3422
3612
  }
3423
- function ti(e) {
3613
+ function li(e) {
3424
3614
  return e === void 0 && (e = {
3425
3615
  number: {},
3426
3616
  dateTime: {},
@@ -3432,7 +3622,7 @@ function ti(e) {
3432
3622
  return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], n, !1)))();
3433
3623
  }, {
3434
3624
  cache: Ue(e.number),
3435
- strategy: Re.variadic
3625
+ strategy: ze.variadic
3436
3626
  }),
3437
3627
  getDateTimeFormat: Ne(function() {
3438
3628
  for (var t, n = [], r = 0; r < arguments.length; r++)
@@ -3440,7 +3630,7 @@ function ti(e) {
3440
3630
  return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], n, !1)))();
3441
3631
  }, {
3442
3632
  cache: Ue(e.dateTime),
3443
- strategy: Re.variadic
3633
+ strategy: ze.variadic
3444
3634
  }),
3445
3635
  getPluralRules: Ne(function() {
3446
3636
  for (var t, n = [], r = 0; r < arguments.length; r++)
@@ -3448,11 +3638,11 @@ function ti(e) {
3448
3638
  return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], n, !1)))();
3449
3639
  }, {
3450
3640
  cache: Ue(e.pluralRules),
3451
- strategy: Re.variadic
3641
+ strategy: ze.variadic
3452
3642
  })
3453
3643
  };
3454
3644
  }
3455
- var rn = (
3645
+ var fn = (
3456
3646
  /** @class */
3457
3647
  function() {
3458
3648
  function e(t, n, r, i) {
@@ -3462,20 +3652,20 @@ var rn = (
3462
3652
  number: {},
3463
3653
  dateTime: {},
3464
3654
  pluralRules: {}
3465
- }, this.format = function(l) {
3466
- var u = a.formatToParts(l);
3467
- if (u.length === 1)
3468
- return u[0].value;
3469
- var c = u.reduce(function(h, d) {
3470
- return !h.length || d.type !== I.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3655
+ }, this.format = function(u) {
3656
+ var l = a.formatToParts(u);
3657
+ if (l.length === 1)
3658
+ return l[0].value;
3659
+ var c = l.reduce(function(h, d) {
3660
+ return !h.length || d.type !== C.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3471
3661
  }, []);
3472
3662
  return c.length <= 1 ? c[0] || "" : c;
3473
- }, this.formatToParts = function(l) {
3474
- return Te(a.ast, a.locales, a.formatters, a.formats, l, void 0, a.message);
3663
+ }, this.formatToParts = function(u) {
3664
+ return ke(a.ast, a.locales, a.formatters, a.formats, u, void 0, a.message);
3475
3665
  }, this.resolvedOptions = function() {
3476
- var l;
3666
+ var u;
3477
3667
  return {
3478
- locale: ((l = a.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3668
+ locale: ((u = a.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3479
3669
  };
3480
3670
  }, this.getAst = function() {
3481
3671
  return a.ast;
@@ -3484,13 +3674,13 @@ var rn = (
3484
3674
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3485
3675
  var s = i || {};
3486
3676
  s.formatters;
3487
- var o = hr(s, ["formatters"]);
3488
- this.ast = e.__parse(t, H(H({}, o), { locale: this.resolvedLocale }));
3677
+ var o = yr(s, ["formatters"]);
3678
+ this.ast = e.__parse(t, O(O({}, o), { locale: this.resolvedLocale }));
3489
3679
  } else
3490
3680
  this.ast = t;
3491
3681
  if (!Array.isArray(this.ast))
3492
3682
  throw new TypeError("A message must be provided as a String or AST.");
3493
- this.formats = ei(e.formats, r), this.formatters = i && i.formatters || ti(this.formatterCache);
3683
+ this.formats = oi(e.formats, r), this.formatters = i && i.formatters || li(this.formatterCache);
3494
3684
  }
3495
3685
  return Object.defineProperty(e, "defaultLocale", {
3496
3686
  get: function() {
@@ -3503,7 +3693,7 @@ var rn = (
3503
3693
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3504
3694
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3505
3695
  }
3506
- }, e.__parse = Xr, e.formats = {
3696
+ }, e.__parse = ti, e.formats = {
3507
3697
  number: {
3508
3698
  integer: {
3509
3699
  maximumFractionDigits: 0
@@ -3564,7 +3754,7 @@ var rn = (
3564
3754
  }, e;
3565
3755
  }()
3566
3756
  );
3567
- function ni(e, t) {
3757
+ function ui(e, t) {
3568
3758
  if (t == null)
3569
3759
  return;
3570
3760
  if (t in e)
@@ -3585,101 +3775,101 @@ function ni(e, t) {
3585
3775
  r = void 0;
3586
3776
  return r;
3587
3777
  }
3588
- const N = {}, ri = (e, t, n) => n && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = n), n), an = (e, t) => {
3778
+ const z = {}, ci = (e, t, n) => n && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = n), n), gn = (e, t) => {
3589
3779
  if (t == null)
3590
3780
  return;
3591
- if (t in N && e in N[t])
3592
- return N[t][e];
3781
+ if (t in z && e in z[t])
3782
+ return z[t][e];
3593
3783
  const n = fe(t);
3594
3784
  for (let r = 0; r < n.length; r++) {
3595
- const i = n[r], a = ai(i, e);
3785
+ const i = n[r], a = di(i, e);
3596
3786
  if (a)
3597
- return ri(e, t, a);
3787
+ return ci(e, t, a);
3598
3788
  }
3599
3789
  };
3600
3790
  let tt;
3601
- const me = Ce({});
3602
- function ii(e) {
3791
+ const me = Be({});
3792
+ function hi(e) {
3603
3793
  return tt[e] || null;
3604
3794
  }
3605
- function sn(e) {
3795
+ function pn(e) {
3606
3796
  return e in tt;
3607
3797
  }
3608
- function ai(e, t) {
3609
- if (!sn(e))
3798
+ function di(e, t) {
3799
+ if (!pn(e))
3610
3800
  return null;
3611
- const n = ii(e);
3612
- return ni(n, t);
3801
+ const n = hi(e);
3802
+ return ui(n, t);
3613
3803
  }
3614
- function si(e) {
3804
+ function mi(e) {
3615
3805
  if (e == null)
3616
3806
  return;
3617
3807
  const t = fe(e);
3618
3808
  for (let n = 0; n < t.length; n++) {
3619
3809
  const r = t[n];
3620
- if (sn(r))
3810
+ if (pn(r))
3621
3811
  return r;
3622
3812
  }
3623
3813
  }
3624
- function on(e, ...t) {
3625
- delete N[e], me.update((n) => (n[e] = cr.all([n[e] || {}, ...t]), n));
3814
+ function bn(e, ...t) {
3815
+ delete z[e], me.update((n) => (n[e] = br.all([n[e] || {}, ...t]), n));
3626
3816
  }
3627
3817
  ie(
3628
3818
  [me],
3629
3819
  ([e]) => Object.keys(e)
3630
3820
  );
3631
3821
  me.subscribe((e) => tt = e);
3632
- const we = {};
3633
- function oi(e, t) {
3634
- we[e].delete(t), we[e].size === 0 && delete we[e];
3822
+ const Te = {};
3823
+ function fi(e, t) {
3824
+ Te[e].delete(t), Te[e].size === 0 && delete Te[e];
3635
3825
  }
3636
- function ln(e) {
3637
- return we[e];
3826
+ function yn(e) {
3827
+ return Te[e];
3638
3828
  }
3639
- function li(e) {
3829
+ function gi(e) {
3640
3830
  return fe(e).map((t) => {
3641
- const n = ln(t);
3831
+ const n = yn(t);
3642
3832
  return [t, n ? [...n] : []];
3643
3833
  }).filter(([, t]) => t.length > 0);
3644
3834
  }
3645
- function Ae(e) {
3835
+ function Ie(e) {
3646
3836
  return e == null ? !1 : fe(e).some(
3647
3837
  (t) => {
3648
3838
  var n;
3649
- return (n = ln(t)) == null ? void 0 : n.size;
3839
+ return (n = yn(t)) == null ? void 0 : n.size;
3650
3840
  }
3651
3841
  );
3652
3842
  }
3653
- function ui(e, t) {
3843
+ function pi(e, t) {
3654
3844
  return Promise.all(
3655
- t.map((r) => (oi(e, r), r().then((i) => i.default || i)))
3656
- ).then((r) => on(e, ...r));
3845
+ t.map((r) => (fi(e, r), r().then((i) => i.default || i)))
3846
+ ).then((r) => bn(e, ...r));
3657
3847
  }
3658
3848
  const oe = {};
3659
- function un(e) {
3660
- if (!Ae(e))
3849
+ function vn(e) {
3850
+ if (!Ie(e))
3661
3851
  return e in oe ? oe[e] : Promise.resolve();
3662
- const t = li(e);
3852
+ const t = gi(e);
3663
3853
  return oe[e] = Promise.all(
3664
3854
  t.map(
3665
- ([n, r]) => ui(n, r)
3855
+ ([n, r]) => pi(n, r)
3666
3856
  )
3667
3857
  ).then(() => {
3668
- if (Ae(e))
3669
- return un(e);
3858
+ if (Ie(e))
3859
+ return vn(e);
3670
3860
  delete oe[e];
3671
3861
  }), oe[e];
3672
3862
  }
3673
- var Et = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, di = (e, t) => {
3863
+ var _t = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, yi = Object.prototype.propertyIsEnumerable, vi = (e, t) => {
3674
3864
  var n = {};
3675
3865
  for (var r in e)
3676
- ci.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3677
- if (e != null && Et)
3678
- for (var r of Et(e))
3679
- t.indexOf(r) < 0 && hi.call(e, r) && (n[r] = e[r]);
3866
+ bi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3867
+ if (e != null && _t)
3868
+ for (var r of _t(e))
3869
+ t.indexOf(r) < 0 && yi.call(e, r) && (n[r] = e[r]);
3680
3870
  return n;
3681
3871
  };
3682
- const mi = {
3872
+ const Ei = {
3683
3873
  number: {
3684
3874
  scientific: { notation: "scientific" },
3685
3875
  engineering: { notation: "engineering" },
@@ -3709,81 +3899,81 @@ const mi = {
3709
3899
  }
3710
3900
  }
3711
3901
  };
3712
- function fi({ locale: e, id: t }) {
3902
+ function _i({ locale: e, id: t }) {
3713
3903
  console.warn(
3714
3904
  `[svelte-i18n] The message "${t}" was not found in "${fe(
3715
3905
  e
3716
- ).join('", "')}".${Ae(z()) ? `
3906
+ ).join('", "')}".${Ie(U()) ? `
3717
3907
 
3718
3908
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3719
3909
  );
3720
3910
  }
3721
- const gi = {
3911
+ const xi = {
3722
3912
  fallbackLocale: null,
3723
3913
  loadingDelay: 200,
3724
- formats: mi,
3914
+ formats: Ei,
3725
3915
  warnOnMissingMessages: !0,
3726
3916
  handleMissingMessage: void 0,
3727
3917
  ignoreTag: !0
3728
- }, le = gi;
3918
+ }, le = xi;
3729
3919
  function ne() {
3730
3920
  return le;
3731
3921
  }
3732
- function pi(e) {
3733
- const t = e, { formats: n } = t, r = di(t, ["formats"]);
3922
+ function ki(e) {
3923
+ const t = e, { formats: n } = t, r = vi(t, ["formats"]);
3734
3924
  let i = e.fallbackLocale;
3735
3925
  if (e.initialLocale)
3736
3926
  try {
3737
- rn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3927
+ fn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3738
3928
  } catch (a) {
3739
3929
  console.warn(
3740
3930
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3741
3931
  );
3742
3932
  }
3743
- return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = fi : console.warn(
3933
+ return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = _i : console.warn(
3744
3934
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3745
- )), Object.assign(le, r, { initialLocale: i }), n && ("number" in n && Object.assign(le.formats.number, n.number), "date" in n && Object.assign(le.formats.date, n.date), "time" in n && Object.assign(le.formats.time, n.time)), G.set(i);
3935
+ )), Object.assign(le, r, { initialLocale: i }), n && ("number" in n && Object.assign(le.formats.number, n.number), "date" in n && Object.assign(le.formats.date, n.date), "time" in n && Object.assign(le.formats.time, n.time)), j.set(i);
3746
3936
  }
3747
- const Fe = Ce(!1);
3748
- var bi = Object.defineProperty, yi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, Ei = Object.prototype.hasOwnProperty, _i = Object.prototype.propertyIsEnumerable, xt = (e, t, n) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, xi = (e, t) => {
3937
+ const Fe = Be(!1);
3938
+ var Ti = Object.defineProperty, wi = Object.defineProperties, Ii = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Si = Object.prototype.propertyIsEnumerable, kt = (e, t, n) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ci = (e, t) => {
3749
3939
  for (var n in t || (t = {}))
3750
- Ei.call(t, n) && xt(e, n, t[n]);
3751
- if (_t)
3752
- for (var n of _t(t))
3753
- _i.call(t, n) && xt(e, n, t[n]);
3940
+ Ai.call(t, n) && kt(e, n, t[n]);
3941
+ if (xt)
3942
+ for (var n of xt(t))
3943
+ Si.call(t, n) && kt(e, n, t[n]);
3754
3944
  return e;
3755
- }, ki = (e, t) => yi(e, vi(t));
3945
+ }, Bi = (e, t) => wi(e, Ii(t));
3756
3946
  let Ye;
3757
- const Se = Ce(null);
3758
- function kt(e) {
3947
+ const Ae = Be(null);
3948
+ function Tt(e) {
3759
3949
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3760
3950
  }
3761
3951
  function fe(e, t = ne().fallbackLocale) {
3762
- const n = kt(e);
3763
- return t ? [.../* @__PURE__ */ new Set([...n, ...kt(t)])] : n;
3952
+ const n = Tt(e);
3953
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Tt(t)])] : n;
3764
3954
  }
3765
- function z() {
3955
+ function U() {
3766
3956
  return Ye != null ? Ye : void 0;
3767
3957
  }
3768
- Se.subscribe((e) => {
3958
+ Ae.subscribe((e) => {
3769
3959
  Ye = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3770
3960
  });
3771
- const Ti = (e) => {
3772
- if (e && si(e) && Ae(e)) {
3961
+ const Li = (e) => {
3962
+ if (e && mi(e) && Ie(e)) {
3773
3963
  const { loadingDelay: t } = ne();
3774
3964
  let n;
3775
- return typeof window != "undefined" && z() != null && t ? n = window.setTimeout(
3965
+ return typeof window != "undefined" && U() != null && t ? n = window.setTimeout(
3776
3966
  () => Fe.set(!0),
3777
3967
  t
3778
- ) : Fe.set(!0), un(e).then(() => {
3779
- Se.set(e);
3968
+ ) : Fe.set(!0), vn(e).then(() => {
3969
+ Ae.set(e);
3780
3970
  }).finally(() => {
3781
3971
  clearTimeout(n), Fe.set(!1);
3782
3972
  });
3783
3973
  }
3784
- return Se.set(e);
3785
- }, G = ki(xi({}, Se), {
3786
- set: Ti
3974
+ return Ae.set(e);
3975
+ }, j = Bi(Ci({}, Ae), {
3976
+ set: Li
3787
3977
  }), Me = (e) => {
3788
3978
  const t = /* @__PURE__ */ Object.create(null);
3789
3979
  return (r) => {
@@ -3791,20 +3981,20 @@ const Ti = (e) => {
3791
3981
  return i in t ? t[i] : t[i] = e(r);
3792
3982
  };
3793
3983
  };
3794
- var wi = Object.defineProperty, Be = Object.getOwnPropertySymbols, cn = Object.prototype.hasOwnProperty, hn = Object.prototype.propertyIsEnumerable, Tt = (e, t, n) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nt = (e, t) => {
3984
+ var Hi = Object.defineProperty, Se = Object.getOwnPropertySymbols, En = Object.prototype.hasOwnProperty, _n = Object.prototype.propertyIsEnumerable, wt = (e, t, n) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, nt = (e, t) => {
3795
3985
  for (var n in t || (t = {}))
3796
- cn.call(t, n) && Tt(e, n, t[n]);
3797
- if (Be)
3798
- for (var n of Be(t))
3799
- hn.call(t, n) && Tt(e, n, t[n]);
3986
+ En.call(t, n) && wt(e, n, t[n]);
3987
+ if (Se)
3988
+ for (var n of Se(t))
3989
+ _n.call(t, n) && wt(e, n, t[n]);
3800
3990
  return e;
3801
3991
  }, ae = (e, t) => {
3802
3992
  var n = {};
3803
3993
  for (var r in e)
3804
- cn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3805
- if (e != null && Be)
3806
- for (var r of Be(e))
3807
- t.indexOf(r) < 0 && hn.call(e, r) && (n[r] = e[r]);
3994
+ En.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3995
+ if (e != null && Se)
3996
+ for (var r of Se(e))
3997
+ t.indexOf(r) < 0 && _n.call(e, r) && (n[r] = e[r]);
3808
3998
  return n;
3809
3999
  };
3810
4000
  const de = (e, t) => {
@@ -3812,21 +4002,21 @@ const de = (e, t) => {
3812
4002
  if (e in n && t in n[e])
3813
4003
  return n[e][t];
3814
4004
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3815
- }, Ii = Me(
4005
+ }, Mi = Me(
3816
4006
  (e) => {
3817
4007
  var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
3818
4008
  if (n == null)
3819
4009
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3820
4010
  return r && (i = de("number", r)), new Intl.NumberFormat(n, i);
3821
4011
  }
3822
- ), Ai = Me(
4012
+ ), Pi = Me(
3823
4013
  (e) => {
3824
4014
  var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
3825
4015
  if (n == null)
3826
4016
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3827
4017
  return r ? i = de("date", r) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(n, i);
3828
4018
  }
3829
- ), Si = Me(
4019
+ ), Oi = Me(
3830
4020
  (e) => {
3831
4021
  var t = e, { locale: n, format: r } = t, i = ae(t, ["locale", "format"]);
3832
4022
  if (n == null)
@@ -3835,48 +4025,48 @@ const de = (e, t) => {
3835
4025
  );
3836
4026
  return r ? i = de("time", r) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(n, i);
3837
4027
  }
3838
- ), Bi = (e = {}) => {
4028
+ ), Di = (e = {}) => {
3839
4029
  var t = e, {
3840
- locale: n = z()
4030
+ locale: n = U()
3841
4031
  } = t, r = ae(t, [
3842
4032
  "locale"
3843
4033
  ]);
3844
- return Ii(nt({ locale: n }, r));
3845
- }, Ci = (e = {}) => {
4034
+ return Mi(nt({ locale: n }, r));
4035
+ }, Ni = (e = {}) => {
3846
4036
  var t = e, {
3847
- locale: n = z()
4037
+ locale: n = U()
3848
4038
  } = t, r = ae(t, [
3849
4039
  "locale"
3850
4040
  ]);
3851
- return Ai(nt({ locale: n }, r));
3852
- }, Li = (e = {}) => {
4041
+ return Pi(nt({ locale: n }, r));
4042
+ }, zi = (e = {}) => {
3853
4043
  var t = e, {
3854
- locale: n = z()
4044
+ locale: n = U()
3855
4045
  } = t, r = ae(t, [
3856
4046
  "locale"
3857
4047
  ]);
3858
- return Si(nt({ locale: n }, r));
3859
- }, Hi = Me(
4048
+ return Oi(nt({ locale: n }, r));
4049
+ }, Ri = Me(
3860
4050
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3861
- (e, t = z()) => new rn(e, t, ne().formats, {
4051
+ (e, t = U()) => new fn(e, t, ne().formats, {
3862
4052
  ignoreTag: ne().ignoreTag
3863
4053
  })
3864
- ), Mi = (e, t = {}) => {
4054
+ ), Ui = (e, t = {}) => {
3865
4055
  var n, r, i, a;
3866
4056
  let s = t;
3867
4057
  typeof e == "object" && (s = e, e = s.id);
3868
4058
  const {
3869
4059
  values: o,
3870
- locale: l = z(),
3871
- default: u
4060
+ locale: u = U(),
4061
+ default: l
3872
4062
  } = s;
3873
- if (l == null)
4063
+ if (u == null)
3874
4064
  throw new Error(
3875
4065
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3876
4066
  );
3877
- let c = an(e, l);
4067
+ let c = gn(e, u);
3878
4068
  if (!c)
3879
- c = (a = (i = (r = (n = ne()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
4069
+ c = (a = (i = (r = (n = ne()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3880
4070
  else if (typeof c != "string")
3881
4071
  return console.warn(
3882
4072
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3885,7 +4075,7 @@ const de = (e, t) => {
3885
4075
  return c;
3886
4076
  let h = c;
3887
4077
  try {
3888
- h = Hi(c, l).format(o);
4078
+ h = Ri(c, u).format(o);
3889
4079
  } catch (d) {
3890
4080
  d instanceof Error && console.warn(
3891
4081
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3893,20 +4083,20 @@ const de = (e, t) => {
3893
4083
  );
3894
4084
  }
3895
4085
  return h;
3896
- }, Pi = (e, t) => Li(t).format(e), Oi = (e, t) => Ci(t).format(e), Di = (e, t) => Bi(t).format(e), Ni = (e, t = z()) => an(e, t), Ri = ie([G, me], () => Mi);
3897
- ie([G], () => Pi);
3898
- ie([G], () => Oi);
3899
- ie([G], () => Di);
3900
- ie([G, me], () => Ni);
3901
- function wt(e, t) {
3902
- on(e, t);
3903
- }
3904
- function zi(e) {
3905
- pi({
4086
+ }, Fi = (e, t) => zi(t).format(e), Gi = (e, t) => Ni(t).format(e), $i = (e, t) => Di(t).format(e), ji = (e, t = U()) => gn(e, t), Vi = ie([j, me], () => Ui);
4087
+ ie([j], () => Fi);
4088
+ ie([j], () => Gi);
4089
+ ie([j], () => $i);
4090
+ ie([j, me], () => ji);
4091
+ function It(e, t) {
4092
+ bn(e, t);
4093
+ }
4094
+ function Wi(e) {
4095
+ ki({
3906
4096
  fallbackLocale: "en"
3907
- }), G.set(e);
4097
+ }), j.set(e);
3908
4098
  }
3909
- const It = {
4099
+ const At = {
3910
4100
  en: {
3911
4101
  VendorMicroserviceCommunicationError: "We apologise, but your payment provider has declined to process due to a microservice communication error. Please try again later.",
3912
4102
  CustomerDocumentIdMissing: "The document ID is missing",
@@ -3915,6 +4105,7 @@ const It = {
3915
4105
  errorGeneralTitle: "Error Occurred",
3916
4106
  errorGeneralText: "Something went wrong",
3917
4107
  errorGeneralButton: "CLOSE",
4108
+ DeclindedByLugas: "Your deposit exceeds the weekly deposit limit that has been set. Consider lowering the desired deposit to stay within the current limit.",
3918
4109
  PlayerSessionIsNotValid: "Player session is not valid",
3919
4110
  VendorCommunicationError: "We apologise, but your payment provider has declined to process due to a technical error. Please try later or contact your payment solution provider for further assistance. Error Code 21297",
3920
4111
  PaymentMethodNotAllowed: "We apologise, but this payment method is unavailable at this time, please contact Customer Support for further assistance. Error Code 11402",
@@ -3968,6 +4159,7 @@ const It = {
3968
4159
  errorGeneralTitle: "Hata oluştu",
3969
4160
  errorGeneralText: "Bir şeyler ters gitti",
3970
4161
  errorGeneralButton: "KAPALI",
4162
+ DeclindedByLugas: "Yatırmak istediğiniz tutar, belirlenen haftalık para yatırma limitini aşıyor. Mevcut limitiniz dahilinde kalmak için yatırmak istediğiniz tutarı azaltmayı değerlendirin.",
3971
4163
  PlayerSessionIsNotValid: "Hesabınızla ilgili oturum geçersiz veya süresi dolmuş görünüyor. Lütfen tekrar giriş yapınız",
3972
4164
  VendorCommunicationError: "Özür dileriz, ancak ödeme sağlayıcınız teknik hata nedeniyle işlemi yapmayı reddetti. Lütfen daha sonra deneyin veya daha fazla yardım için ödeme çözümü sağlayıcınızla iletişime geçin. Hata Kodu 21297",
3973
4165
  PaymentMethodNotAllowed: "Özür dileriz, ancak bu ödeme yöntemi şu anda kullanılamıyor. Daha fazla yardım için lütfen Müşteri Desteğiyle iletişime geçin. Hata Kodu 11402",
@@ -4020,6 +4212,7 @@ const It = {
4020
4212
  errorGeneralTitle: "Une erreur s’est produite",
4021
4213
  errorGeneralText: "Une erreur est survenue",
4022
4214
  errorGeneralButton: "FERMER",
4215
+ DeclindedByLugas: "Votre dépôt dépasse la limite de dépôt hebdomadaire fixée. Envisagez de réduire le montant que vous souhaitez déposer afin de respecter votre limite actuelle.",
4023
4216
  PlayerSessionIsNotValid: "La session du joueur n’est pas valide",
4024
4217
  VendorCommunicationError: "Nous sommes désolés, mais votre prestataire de paiement a refusé de traiter la demande en raison d’une erreur technique. Veuillez réessayer plus tard ou contacter votre prestataire de paiement pour obtenir de l’aide. Code d’erreur 21297",
4025
4218
  PaymentMethodNotAllowed: "Nous sommes désolés, mais ce moyen de paiement n’est pas disponible pour le moment. Veuillez contacter le service client pour obtenir de l’aide. Code d’erreur 11402",
@@ -4121,6 +4314,7 @@ const It = {
4121
4314
  errorGeneralTitle: "Fehler aufgetreten",
4122
4315
  errorGeneralText: "Etwas ist schiefgelaufen",
4123
4316
  errorGeneralButton: "SCHLIESSEN",
4317
+ DeclindedByLugas: "Ihre Einzahlung überschreitet das festgelegte wöchentliche Einzahlungslimit. Erwägen Sie, den gewünschten Einzahlungsbetrag zu reduzieren, um innerhalb Ihres aktuellen Limits zu bleiben.",
4124
4318
  PlayerSessionIsNotValid: "Spielersitzung ist nicht gültig",
4125
4319
  VendorCommunicationError: "Wir entschuldigen uns, aber Ihr Zahlungsanbieter hat die Verarbeitung aufgrund eines technischen Fehlers abgelehnt. Bitte versuchen Sie es später oder kontaktieren Sie Ihren Zahlungsanbieter für weitere Hilfe. Fehlercode 21297",
4126
4320
  PaymentMethodNotAllowed: "Wir entschuldigen uns, aber diese Zahlungsmethode ist derzeit nicht verfügbar. Bitte kontaktieren Sie den Kundendienst für weitere Hilfe. Fehlercode 11402",
@@ -4173,6 +4367,7 @@ const It = {
4173
4367
  errorGeneralTitle: "Er is een fout opgetreden",
4174
4368
  errorGeneralText: "Er is iets misgegaan",
4175
4369
  errorGeneralButton: "SLUITEN",
4370
+ DeclindedByLugas: "Uw storting overschrijdt de ingestelde wekelijkse stortingslimiet. Overweeg om het gewenste stortingsbedrag te verlagen zodat u binnen de huidige limiet blijft.",
4176
4371
  PlayerSessionIsNotValid: "Spelersessie is niet geldig",
4177
4372
  VendorCommunicationError: "Onze excuses, maar uw betalingsprovider heeft de verwerking geweigerd vanwege een technische fout. Probeer het later of neem contact op met uw betalingsoplossingsprovider voor verdere hulp. Foutcode 21297",
4178
4373
  PaymentMethodNotAllowed: "Onze excuses, maar deze betaalmethode is momenteel niet beschikbaar. Neem contact op met de klantenservice voor verdere hulp. Foutcode 11402",
@@ -4322,11 +4517,11 @@ const It = {
4322
4517
  CardTokenIsBlocked: "Kart tokeni bloklanıb"
4323
4518
  }
4324
4519
  };
4325
- function Ui(e) {
4326
- xn(e, "svelte-y815d8", '.WageringFetch{margin:10px}.LoadingText::after{content:"";animation:dots 1.5s steps(4, end) infinite}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}.CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}');
4520
+ function qi(e) {
4521
+ Rt(e, "svelte-1m97ygc", '.WageringFetch{margin:10px}.LoadingText::after{content:"";animation:dots 1.5s steps(4, end) infinite}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}.CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorText a{color:var(--emw--color-primary, #F9C405);text-decoration:underline;cursor:pointer}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent .HostContainer img{width:300px}');
4327
4522
  }
4328
- const Fi = (e) => ({}), At = (e) => ({}), Gi = (e) => ({}), St = (e) => ({}), $i = (e) => ({}), Bt = (e) => ({}), ji = (e) => ({}), Ct = (e) => ({ class: "CashierErrorIcon" });
4329
- function Lt(e) {
4523
+ const Xi = (e) => ({}), St = (e) => ({}), Zi = (e) => ({}), Ct = (e) => ({}), Ji = (e) => ({}), Bt = (e) => ({}), Ki = (e) => ({}), Lt = (e) => ({ class: "CashierErrorIcon" });
4524
+ function Ht(e) {
4330
4525
  let t, n, r, i, a;
4331
4526
  const s = (
4332
4527
  /*#slots*/
@@ -4336,12 +4531,12 @@ function Lt(e) {
4336
4531
  e,
4337
4532
  /*$$scope*/
4338
4533
  e[15],
4339
- Ct
4340
- ), l = o || Vi(e), u = (
4534
+ Lt
4535
+ ), u = o || Yi(e), l = (
4341
4536
  /*#slots*/
4342
4537
  e[16].title
4343
4538
  ), c = pe(
4344
- u,
4539
+ l,
4345
4540
  e,
4346
4541
  /*$$scope*/
4347
4542
  e[15],
@@ -4354,8 +4549,8 @@ function Lt(e) {
4354
4549
  e,
4355
4550
  /*$$scope*/
4356
4551
  e[15],
4357
- St
4358
- ), f = d || Xi(e), g = (
4552
+ Ct
4553
+ ), f = d || ra(e), g = (
4359
4554
  /*#slots*/
4360
4555
  e[16].button
4361
4556
  ), k = pe(
@@ -4363,14 +4558,14 @@ function Lt(e) {
4363
4558
  e,
4364
4559
  /*$$scope*/
4365
4560
  e[15],
4366
- At
4367
- ), E = k || Zi(e);
4561
+ St
4562
+ ), E = k || ia(e);
4368
4563
  return {
4369
4564
  c() {
4370
- t = C("div"), l && l.c(), n = J(), c && c.c(), r = J(), f && f.c(), i = J(), E && E.c(), O(t, "class", "CashierErrorContent");
4565
+ t = L("div"), u && u.c(), n = $(), c && c.c(), r = $(), f && f.c(), i = $(), E && E.c(), T(t, "class", "CashierErrorContent");
4371
4566
  },
4372
4567
  m(m, v) {
4373
- A(m, t, v), l && l.m(t, null), B(t, n), c && c.m(t, null), B(t, r), f && f.m(t, null), B(t, i), E && E.m(t, null), a = !0;
4568
+ I(m, t, v), u && u.m(t, null), M(t, n), c && c.m(t, null), M(t, r), f && f.m(t, null), M(t, i), E && E.m(t, null), a = !0;
4374
4569
  },
4375
4570
  p(m, v) {
4376
4571
  o ? o.p && (!a || v & /*$$scope*/
@@ -4385,26 +4580,26 @@ function Lt(e) {
4385
4580
  /*$$scope*/
4386
4581
  m[15],
4387
4582
  v,
4388
- ji
4583
+ Ki
4389
4584
  ) : ve(
4390
4585
  /*$$scope*/
4391
4586
  m[15]
4392
4587
  ),
4393
- Ct
4394
- ) : l && l.p && (!a || v & /*assetsurl*/
4395
- 1) && l.p(m, a ? v : -1), c && c.p && (!a || v & /*$$scope*/
4588
+ Lt
4589
+ ) : u && u.p && (!a || v & /*assetsurl*/
4590
+ 1) && u.p(m, a ? v : -1), c && c.p && (!a || v & /*$$scope*/
4396
4591
  32768) && ye(
4397
4592
  c,
4398
- u,
4593
+ l,
4399
4594
  m,
4400
4595
  /*$$scope*/
4401
4596
  m[15],
4402
4597
  a ? be(
4403
- u,
4598
+ l,
4404
4599
  /*$$scope*/
4405
4600
  m[15],
4406
4601
  v,
4407
- $i
4602
+ Ji
4408
4603
  ) : ve(
4409
4604
  /*$$scope*/
4410
4605
  m[15]
@@ -4422,12 +4617,12 @@ function Lt(e) {
4422
4617
  /*$$scope*/
4423
4618
  m[15],
4424
4619
  v,
4425
- Gi
4620
+ Zi
4426
4621
  ) : ve(
4427
4622
  /*$$scope*/
4428
4623
  m[15]
4429
4624
  ),
4430
- St
4625
+ Ct
4431
4626
  ) : f && f.p && (!a || v & /*$_, depositWageringAmount, depositWageringCurrency, errorcode, shownError, errormessage*/
4432
4627
  486) && f.p(m, a ? v : -1), k ? k.p && (!a || v & /*$$scope*/
4433
4628
  32768) && ye(
@@ -4441,128 +4636,201 @@ function Lt(e) {
4441
4636
  /*$$scope*/
4442
4637
  m[15],
4443
4638
  v,
4444
- Fi
4639
+ Xi
4445
4640
  ) : ve(
4446
4641
  /*$$scope*/
4447
4642
  m[15]
4448
4643
  ),
4449
- At
4644
+ St
4450
4645
  ) : E && E.p && (!a || v & /*$_*/
4451
4646
  256) && E.p(m, a ? v : -1);
4452
4647
  },
4453
4648
  i(m) {
4454
- a || (D(l, m), D(c, m), D(f, m), D(E, m), a = !0);
4649
+ a || (H(u, m), H(c, m), H(f, m), H(E, m), a = !0);
4455
4650
  },
4456
4651
  o(m) {
4457
- Z(l, m), Z(c, m), Z(f, m), Z(E, m), a = !1;
4652
+ N(u, m), N(c, m), N(f, m), N(E, m), a = !1;
4458
4653
  },
4459
4654
  d(m) {
4460
- m && T(t), l && l.d(m), c && c.d(m), f && f.d(m), E && E.d(m);
4655
+ m && w(t), u && u.d(m), c && c.d(m), f && f.d(m), E && E.d(m);
4461
4656
  }
4462
4657
  };
4463
4658
  }
4464
- function Ht(e) {
4659
+ function Mt(e) {
4465
4660
  let t, n;
4466
- return {
4661
+ return t = new Zt({
4662
+ props: {
4663
+ src: `${/*assetsurl*/
4664
+ e[0]}/error-general-icon.png`,
4665
+ width: "300px",
4666
+ alt: "error"
4667
+ }
4668
+ }), {
4467
4669
  c() {
4468
- t = C("ui-image"), ut(t.src, n = `${/*assetsurl*/
4469
- e[0]}/error-general-icon.png`) || Ee(t, "src", n), Ee(t, "width", "300px"), Ee(t, "alt", "error");
4670
+ jn(t.$$.fragment);
4470
4671
  },
4471
4672
  m(r, i) {
4472
- A(r, t, i);
4673
+ $t(t, r, i), n = !0;
4473
4674
  },
4474
4675
  p(r, i) {
4676
+ const a = {};
4475
4677
  i & /*assetsurl*/
4476
- 1 && !ut(t.src, n = `${/*assetsurl*/
4477
- r[0]}/error-general-icon.png`) && Ee(t, "src", n);
4678
+ 1 && (a.src = `${/*assetsurl*/
4679
+ r[0]}/error-general-icon.png`), t.$set(a);
4680
+ },
4681
+ i(r) {
4682
+ n || (H(t.$$.fragment, r), n = !0);
4683
+ },
4684
+ o(r) {
4685
+ N(t.$$.fragment, r), n = !1;
4478
4686
  },
4479
4687
  d(r) {
4480
- r && T(t);
4688
+ jt(t, r);
4481
4689
  }
4482
4690
  };
4483
4691
  }
4484
- function Vi(e) {
4485
- let t, n = (
4692
+ function Yi(e) {
4693
+ let t, n, r = (
4486
4694
  /*assetsurl*/
4487
- e[0] && Ht(e)
4695
+ e[0] && Mt(e)
4488
4696
  );
4489
4697
  return {
4490
4698
  c() {
4491
- n && n.c(), t = et();
4699
+ r && r.c(), t = Ce();
4700
+ },
4701
+ m(i, a) {
4702
+ r && r.m(i, a), I(i, t, a), n = !0;
4703
+ },
4704
+ p(i, a) {
4705
+ /*assetsurl*/
4706
+ i[0] ? r ? (r.p(i, a), a & /*assetsurl*/
4707
+ 1 && H(r, 1)) : (r = Mt(i), r.c(), H(r, 1), r.m(t.parentNode, t)) : r && (Ft(), N(r, 1, 1, () => {
4708
+ r = null;
4709
+ }), Gt());
4710
+ },
4711
+ i(i) {
4712
+ n || (H(r), n = !0);
4713
+ },
4714
+ o(i) {
4715
+ N(r), n = !1;
4716
+ },
4717
+ d(i) {
4718
+ i && w(t), r && r.d(i);
4719
+ }
4720
+ };
4721
+ }
4722
+ function Qi(e) {
4723
+ let t;
4724
+ return {
4725
+ c() {
4726
+ t = R(
4727
+ /*errormessage*/
4728
+ e[2]
4729
+ );
4730
+ },
4731
+ m(n, r) {
4732
+ I(n, t, r);
4733
+ },
4734
+ p(n, r) {
4735
+ r & /*errormessage*/
4736
+ 4 && Y(
4737
+ t,
4738
+ /*errormessage*/
4739
+ n[2]
4740
+ );
4741
+ },
4742
+ d(n) {
4743
+ n && w(t);
4744
+ }
4745
+ };
4746
+ }
4747
+ function ea(e) {
4748
+ let t, n;
4749
+ return {
4750
+ c() {
4751
+ t = new Dn(!1), n = Ce(), t.a = n;
4492
4752
  },
4493
4753
  m(r, i) {
4494
- n && n.m(r, i), A(r, t, i);
4754
+ t.m(
4755
+ /*shownError*/
4756
+ e[7],
4757
+ r,
4758
+ i
4759
+ ), I(r, n, i);
4495
4760
  },
4496
4761
  p(r, i) {
4497
- /*assetsurl*/
4498
- r[0] ? n ? n.p(r, i) : (n = Ht(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
4762
+ i & /*shownError*/
4763
+ 128 && t.p(
4764
+ /*shownError*/
4765
+ r[7]
4766
+ );
4499
4767
  },
4500
4768
  d(r) {
4501
- r && T(t), n && n.d(r);
4769
+ r && (w(n), t.d());
4502
4770
  }
4503
4771
  };
4504
4772
  }
4505
- function Mt(e) {
4773
+ function Pt(e) {
4506
4774
  let t;
4507
4775
  function n(a, s) {
4508
4776
  return (
4509
4777
  /*depositWageringAmount*/
4510
- a[5] < 0 ? qi : Wi
4778
+ a[5] < 0 ? na : ta
4511
4779
  );
4512
4780
  }
4513
4781
  let r = n(e), i = r(e);
4514
4782
  return {
4515
4783
  c() {
4516
- i.c(), t = et();
4784
+ i.c(), t = Ce();
4517
4785
  },
4518
4786
  m(a, s) {
4519
- i.m(a, s), A(a, t, s);
4787
+ i.m(a, s), I(a, t, s);
4520
4788
  },
4521
4789
  p(a, s) {
4522
4790
  r === (r = n(a)) && i ? i.p(a, s) : (i.d(1), i = r(a), i && (i.c(), i.m(t.parentNode, t)));
4523
4791
  },
4524
4792
  d(a) {
4525
- a && T(t), i.d(a);
4793
+ a && w(t), i.d(a);
4526
4794
  }
4527
4795
  };
4528
4796
  }
4529
- function Wi(e) {
4797
+ function ta(e) {
4530
4798
  let t, n = (
4531
4799
  /*$_*/
4532
4800
  e[8]("DepositWageringLimitText") + ""
4533
4801
  ), r, i, a = (
4534
4802
  /*depositWageringAmount*/
4535
- e[5] > 0 && Pt(e)
4803
+ e[5] > 0 && Ot(e)
4536
4804
  );
4537
4805
  return {
4538
4806
  c() {
4539
- t = C("span"), r = R(n), i = J(), a && a.c(), O(t, "class", "CashierErrorText");
4807
+ t = L("span"), r = R(n), i = $(), a && a.c(), T(t, "class", "CashierErrorText");
4540
4808
  },
4541
4809
  m(s, o) {
4542
- A(s, t, o), B(t, r), B(t, i), a && a.m(t, null);
4810
+ I(s, t, o), M(t, r), M(t, i), a && a.m(t, null);
4543
4811
  },
4544
4812
  p(s, o) {
4545
4813
  o & /*$_*/
4546
4814
  256 && n !== (n = /*$_*/
4547
4815
  s[8]("DepositWageringLimitText") + "") && Y(r, n), /*depositWageringAmount*/
4548
- s[5] > 0 ? a ? a.p(s, o) : (a = Pt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4816
+ s[5] > 0 ? a ? a.p(s, o) : (a = Ot(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4549
4817
  },
4550
4818
  d(s) {
4551
- s && T(t), a && a.d();
4819
+ s && w(t), a && a.d();
4552
4820
  }
4553
4821
  };
4554
4822
  }
4555
- function qi(e) {
4823
+ function na(e) {
4556
4824
  let t, n, r = (
4557
4825
  /*$_*/
4558
4826
  e[8]("DepositWageringFetching") + ""
4559
4827
  ), i;
4560
4828
  return {
4561
4829
  c() {
4562
- t = C("div"), n = C("span"), i = R(r), O(n, "class", "CashierErrorText LoadingText"), O(t, "class", "WageringFetch");
4830
+ t = L("div"), n = L("span"), i = R(r), T(n, "class", "CashierErrorText LoadingText"), T(t, "class", "WageringFetch");
4563
4831
  },
4564
4832
  m(a, s) {
4565
- A(a, t, s), B(t, n), B(n, i);
4833
+ I(a, t, s), M(t, n), M(n, i);
4566
4834
  },
4567
4835
  p(a, s) {
4568
4836
  s & /*$_*/
@@ -4570,24 +4838,24 @@ function qi(e) {
4570
4838
  a[8]("DepositWageringFetching") + "") && Y(i, r);
4571
4839
  },
4572
4840
  d(a) {
4573
- a && T(t);
4841
+ a && w(t);
4574
4842
  }
4575
4843
  };
4576
4844
  }
4577
- function Pt(e) {
4845
+ function Ot(e) {
4578
4846
  let t, n, r;
4579
4847
  return {
4580
4848
  c() {
4581
4849
  t = R(
4582
4850
  /*depositWageringAmount*/
4583
4851
  e[5]
4584
- ), n = J(), r = R(
4852
+ ), n = $(), r = R(
4585
4853
  /*depositWageringCurrency*/
4586
4854
  e[6]
4587
4855
  );
4588
4856
  },
4589
4857
  m(i, a) {
4590
- A(i, t, a), A(i, n, a), A(i, r, a);
4858
+ I(i, t, a), I(i, n, a), I(i, r, a);
4591
4859
  },
4592
4860
  p(i, a) {
4593
4861
  a & /*depositWageringAmount*/
@@ -4603,127 +4871,117 @@ function Pt(e) {
4603
4871
  );
4604
4872
  },
4605
4873
  d(i) {
4606
- i && (T(t), T(n), T(r));
4874
+ i && (w(t), w(n), w(r));
4607
4875
  }
4608
4876
  };
4609
4877
  }
4610
- function Xi(e) {
4611
- let t, n = (
4612
- /*errorcode*/
4613
- (e[1] ? (
4614
- /*shownError*/
4615
- e[7]
4616
- ) : (
4617
- /*errormessage*/
4618
- e[2]
4619
- )) + ""
4620
- ), r, i, a, s = (
4878
+ function ra(e) {
4879
+ let t, n, r;
4880
+ function i(u, l) {
4881
+ return (
4882
+ /*errorcode*/
4883
+ u[1] ? ea : Qi
4884
+ );
4885
+ }
4886
+ let a = i(e), s = a(e), o = (
4621
4887
  /*errorcode*/
4622
- e[1] == "DepositWageringLimit" && Mt(e)
4888
+ e[1] == "DepositWageringLimit" && Pt(e)
4623
4889
  );
4624
4890
  return {
4625
4891
  c() {
4626
- t = C("span"), r = R(n), i = J(), s && s.c(), a = et(), O(t, "class", "CashierErrorText");
4892
+ t = L("span"), s.c(), n = $(), o && o.c(), r = Ce(), T(t, "class", "CashierErrorText");
4627
4893
  },
4628
- m(o, l) {
4629
- A(o, t, l), B(t, r), A(o, i, l), s && s.m(o, l), A(o, a, l);
4894
+ m(u, l) {
4895
+ I(u, t, l), s.m(t, null), I(u, n, l), o && o.m(u, l), I(u, r, l);
4630
4896
  },
4631
- p(o, l) {
4632
- l & /*errorcode, shownError, errormessage*/
4633
- 134 && n !== (n = /*errorcode*/
4634
- (o[1] ? (
4635
- /*shownError*/
4636
- o[7]
4637
- ) : (
4638
- /*errormessage*/
4639
- o[2]
4640
- )) + "") && Y(r, n), /*errorcode*/
4641
- o[1] == "DepositWageringLimit" ? s ? s.p(o, l) : (s = Mt(o), s.c(), s.m(a.parentNode, a)) : s && (s.d(1), s = null);
4897
+ p(u, l) {
4898
+ a === (a = i(u)) && s ? s.p(u, l) : (s.d(1), s = a(u), s && (s.c(), s.m(t, null))), /*errorcode*/
4899
+ u[1] == "DepositWageringLimit" ? o ? o.p(u, l) : (o = Pt(u), o.c(), o.m(r.parentNode, r)) : o && (o.d(1), o = null);
4642
4900
  },
4643
- d(o) {
4644
- o && (T(t), T(i), T(a)), s && s.d(o);
4901
+ d(u) {
4902
+ u && (w(t), w(n), w(r)), s.d(), o && o.d(u);
4645
4903
  }
4646
4904
  };
4647
4905
  }
4648
- function Zi(e) {
4906
+ function ia(e) {
4649
4907
  let t, n, r = (
4650
4908
  /*$_*/
4651
4909
  e[8]("errorGeneralButton") + ""
4652
4910
  ), i, a, s;
4653
4911
  return {
4654
4912
  c() {
4655
- t = C("button"), n = C("span"), i = R(r), O(t, "class", "CashierErrorButton");
4913
+ t = L("button"), n = L("span"), i = R(r), T(t, "class", "CashierErrorButton");
4656
4914
  },
4657
- m(o, l) {
4658
- A(o, t, l), B(t, n), B(n, i), a || (s = wn(
4915
+ m(o, u) {
4916
+ I(o, t, u), M(t, n), M(n, i), a || (s = Ut(
4659
4917
  t,
4660
4918
  "click",
4661
4919
  /*close*/
4662
4920
  e[9]
4663
4921
  ), a = !0);
4664
4922
  },
4665
- p(o, l) {
4666
- l & /*$_*/
4923
+ p(o, u) {
4924
+ u & /*$_*/
4667
4925
  256 && r !== (r = /*$_*/
4668
4926
  o[8]("errorGeneralButton") + "") && Y(i, r);
4669
4927
  },
4670
4928
  d(o) {
4671
- o && T(t), a = !1, s();
4929
+ o && w(t), a = !1, s();
4672
4930
  }
4673
4931
  };
4674
4932
  }
4675
- function Ji(e) {
4933
+ function aa(e) {
4676
4934
  let t, n, r = !/*isLoading*/
4677
- e[4] && Lt(e);
4935
+ e[4] && Ht(e);
4678
4936
  return {
4679
4937
  c() {
4680
- t = C("div"), r && r.c(), O(t, "class", "CashierError");
4938
+ t = L("div"), r && r.c(), T(t, "class", "CashierError");
4681
4939
  },
4682
4940
  m(i, a) {
4683
- A(i, t, a), r && r.m(t, null), e[17](t), n = !0;
4941
+ I(i, t, a), r && r.m(t, null), e[17](t), n = !0;
4684
4942
  },
4685
4943
  p(i, [a]) {
4686
4944
  /*isLoading*/
4687
- i[4] ? r && (Pn(), Z(r, 1, 1, () => {
4945
+ i[4] ? r && (Ft(), N(r, 1, 1, () => {
4688
4946
  r = null;
4689
- }), On()) : r ? (r.p(i, a), a & /*isLoading*/
4690
- 16 && D(r, 1)) : (r = Lt(i), r.c(), D(r, 1), r.m(t, null));
4947
+ }), Gt()) : r ? (r.p(i, a), a & /*isLoading*/
4948
+ 16 && H(r, 1)) : (r = Ht(i), r.c(), H(r, 1), r.m(t, null));
4691
4949
  },
4692
4950
  i(i) {
4693
- n || (D(r), n = !0);
4951
+ n || (H(r), n = !0);
4694
4952
  },
4695
4953
  o(i) {
4696
- Z(r), n = !1;
4954
+ N(r), n = !1;
4697
4955
  },
4698
4956
  d(i) {
4699
- i && T(t), r && r.d(), e[17](null);
4957
+ i && w(t), r && r.d(), e[17](null);
4700
4958
  }
4701
4959
  };
4702
4960
  }
4703
- function Ki(e, t, n) {
4961
+ function sa(e, t, n) {
4704
4962
  let r;
4705
- _n(e, Ri, (b) => n(8, r = b));
4706
- let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode: l = "" } = t, { errormessage: u = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: d = "" } = t, { mbsource: f = "" } = t, g, k, E = -1, m, v, w = !1;
4707
- const U = () => {
4708
- zi(o);
4709
- }, M = () => {
4710
- n(4, w = !0);
4963
+ Ln(e, Vi, (b) => n(8, r = b));
4964
+ let { $$slots: i = {}, $$scope: a } = t, { assetsurl: s = "" } = t, { lang: o = "en" } = t, { errorcode: u = "" } = t, { errormessage: l = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: d = "" } = t, { mbsource: f = "" } = t, g, k, E = -1, m, v, S = !1;
4965
+ const F = () => {
4966
+ Wi(o);
4967
+ }, D = () => {
4968
+ n(4, S = !0);
4711
4969
  let b = d;
4712
4970
  if (b)
4713
- return fetch(b).then((j) => j.json()).then((j) => {
4714
- Object.keys(j).forEach((rt) => {
4715
- wt(rt, j[rt]);
4971
+ return fetch(b).then((W) => W.json()).then((W) => {
4972
+ Object.keys(W).forEach((rt) => {
4973
+ It(rt, W[rt]);
4716
4974
  });
4717
- }).catch((j) => {
4718
- console.log(j);
4975
+ }).catch((W) => {
4976
+ console.log(W);
4719
4977
  }).finally(() => {
4720
- n(4, w = !1);
4978
+ n(4, S = !1);
4721
4979
  });
4722
4980
  };
4723
- Object.keys(It).forEach((b) => {
4724
- wt(b, It[b]);
4981
+ Object.keys(At).forEach((b) => {
4982
+ It(b, At[b]);
4725
4983
  });
4726
- const $ = () => {
4984
+ const V = () => {
4727
4985
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4728
4986
  }, se = (b) => {
4729
4987
  if (b.data)
@@ -4732,38 +4990,38 @@ function Ki(e, t, n) {
4732
4990
  n(5, E = b.data.amount), n(6, m = b.data.currency);
4733
4991
  break;
4734
4992
  }
4735
- }, dn = () => {
4736
- n(7, v = r(`${l || "errorGeneralText"}`));
4993
+ }, xn = () => {
4994
+ n(7, v = r(`${u || "errorGeneralText"}`));
4737
4995
  };
4738
- Bn(() => (window.addEventListener("message", se, !1), () => {
4996
+ Rn(() => (window.addEventListener("message", se, !1), () => {
4739
4997
  window.removeEventListener("message", se);
4740
4998
  }));
4741
- function mn(b) {
4999
+ function kn(b) {
4742
5000
  Ge[b ? "unshift" : "push"](() => {
4743
5001
  g = b, n(3, g);
4744
5002
  });
4745
5003
  }
4746
5004
  return e.$$set = (b) => {
4747
- "assetsurl" in b && n(0, s = b.assetsurl), "lang" in b && n(10, o = b.lang), "errorcode" in b && n(1, l = b.errorcode), "errormessage" in b && n(2, u = b.errormessage), "clientstyling" in b && n(11, c = b.clientstyling), "clientstylingurl" in b && n(12, h = b.clientstylingurl), "translationurl" in b && n(13, d = b.translationurl), "mbsource" in b && n(14, f = b.mbsource), "$$scope" in b && n(15, a = b.$$scope);
5005
+ "assetsurl" in b && n(0, s = b.assetsurl), "lang" in b && n(10, o = b.lang), "errorcode" in b && n(1, u = b.errorcode), "errormessage" in b && n(2, l = b.errormessage), "clientstyling" in b && n(11, c = b.clientstyling), "clientstylingurl" in b && n(12, h = b.clientstylingurl), "translationurl" in b && n(13, d = b.translationurl), "mbsource" in b && n(14, f = b.mbsource), "$$scope" in b && n(15, a = b.$$scope);
4748
5006
  }, e.$$.update = () => {
4749
5007
  e.$$.dirty & /*lang*/
4750
- 1024 && o && U(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4751
- 2056 && c && g && $n(g, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4752
- 4104 && h && g && jn(g, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4753
- 16392 && f && g && Vn(g, `${f}.Style`, k), e.$$.dirty & /*translationurl*/
4754
- 8192 && d && M(), e.$$.dirty & /*isLoading*/
4755
- 16 && !w && dn();
5008
+ 1024 && o && F(), e.$$.dirty & /*clientstyling, customStylingContainer*/
5009
+ 2056 && c && g && qn(g, c), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
5010
+ 4104 && h && g && Xn(g, h), e.$$.dirty & /*mbsource, customStylingContainer*/
5011
+ 16392 && f && g && Zn(g, `${f}.Style`, k), e.$$.dirty & /*translationurl*/
5012
+ 8192 && d && D(), e.$$.dirty & /*isLoading*/
5013
+ 16 && !S && xn();
4756
5014
  }, [
4757
5015
  s,
4758
- l,
4759
5016
  u,
5017
+ l,
4760
5018
  g,
4761
- w,
5019
+ S,
4762
5020
  E,
4763
5021
  m,
4764
5022
  v,
4765
5023
  r,
4766
- $,
5024
+ V,
4767
5025
  o,
4768
5026
  c,
4769
5027
  h,
@@ -4771,17 +5029,17 @@ function Ki(e, t, n) {
4771
5029
  f,
4772
5030
  a,
4773
5031
  i,
4774
- mn
5032
+ kn
4775
5033
  ];
4776
5034
  }
4777
- class Yi extends Fn {
5035
+ class oa extends Xt {
4778
5036
  constructor(t) {
4779
- super(), zn(
5037
+ super(), Vt(
4780
5038
  this,
4781
5039
  t,
4782
- Ki,
4783
- Ji,
4784
- Dt,
5040
+ sa,
5041
+ aa,
5042
+ et,
4785
5043
  {
4786
5044
  assetsurl: 0,
4787
5045
  lang: 10,
@@ -4792,59 +5050,59 @@ class Yi extends Fn {
4792
5050
  translationurl: 13,
4793
5051
  mbsource: 14
4794
5052
  },
4795
- Ui
5053
+ qi
4796
5054
  );
4797
5055
  }
4798
5056
  get assetsurl() {
4799
5057
  return this.$$.ctx[0];
4800
5058
  }
4801
5059
  set assetsurl(t) {
4802
- this.$$set({ assetsurl: t }), L();
5060
+ this.$$set({ assetsurl: t }), B();
4803
5061
  }
4804
5062
  get lang() {
4805
5063
  return this.$$.ctx[10];
4806
5064
  }
4807
5065
  set lang(t) {
4808
- this.$$set({ lang: t }), L();
5066
+ this.$$set({ lang: t }), B();
4809
5067
  }
4810
5068
  get errorcode() {
4811
5069
  return this.$$.ctx[1];
4812
5070
  }
4813
5071
  set errorcode(t) {
4814
- this.$$set({ errorcode: t }), L();
5072
+ this.$$set({ errorcode: t }), B();
4815
5073
  }
4816
5074
  get errormessage() {
4817
5075
  return this.$$.ctx[2];
4818
5076
  }
4819
5077
  set errormessage(t) {
4820
- this.$$set({ errormessage: t }), L();
5078
+ this.$$set({ errormessage: t }), B();
4821
5079
  }
4822
5080
  get clientstyling() {
4823
5081
  return this.$$.ctx[11];
4824
5082
  }
4825
5083
  set clientstyling(t) {
4826
- this.$$set({ clientstyling: t }), L();
5084
+ this.$$set({ clientstyling: t }), B();
4827
5085
  }
4828
5086
  get clientstylingurl() {
4829
5087
  return this.$$.ctx[12];
4830
5088
  }
4831
5089
  set clientstylingurl(t) {
4832
- this.$$set({ clientstylingurl: t }), L();
5090
+ this.$$set({ clientstylingurl: t }), B();
4833
5091
  }
4834
5092
  get translationurl() {
4835
5093
  return this.$$.ctx[13];
4836
5094
  }
4837
5095
  set translationurl(t) {
4838
- this.$$set({ translationurl: t }), L();
5096
+ this.$$set({ translationurl: t }), B();
4839
5097
  }
4840
5098
  get mbsource() {
4841
5099
  return this.$$.ctx[14];
4842
5100
  }
4843
5101
  set mbsource(t) {
4844
- this.$$set({ mbsource: t }), L();
5102
+ this.$$set({ mbsource: t }), B();
4845
5103
  }
4846
5104
  }
4847
- Un(Yi, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
5105
+ qt(oa, { assetsurl: {}, lang: {}, errorcode: {}, errormessage: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4848
5106
  export {
4849
- Yi as default
5107
+ oa as default
4850
5108
  };