@everymatrix/cashier-error 1.77.20 → 1.77.21

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,17 +1,17 @@
1
- var rr = Object.defineProperty, nr = Object.defineProperties;
2
- var ir = Object.getOwnPropertyDescriptors;
3
- var Qe = Object.getOwnPropertySymbols;
4
- var or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
5
- var we = (e, t, r) => t in e ? rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
1
+ var ir = Object.defineProperty, or = Object.defineProperties;
2
+ var sr = Object.getOwnPropertyDescriptors;
3
+ var Ke = Object.getOwnPropertySymbols;
4
+ var ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
5
+ var Ae = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- or.call(t, r) && we(e, r, t[r]);
8
- if (Qe)
9
- for (var r of Qe(t))
10
- sr.call(t, r) && we(e, r, t[r]);
7
+ ar.call(t, r) && Ae(e, r, t[r]);
8
+ if (Ke)
9
+ for (var r of Ke(t))
10
+ ur.call(t, r) && Ae(e, r, t[r]);
11
11
  return e;
12
- }, Ke = (e, t) => nr(e, ir(t));
13
- var w = (e, t, r) => (we(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var et = (e, t, r) => new Promise((n, i) => {
12
+ }, tt = (e, t) => or(e, sr(t));
13
+ var S = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var rt = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (l) => {
16
16
  try {
17
17
  a(r.next(l));
@@ -27,10 +27,10 @@ var et = (e, t, r) => new Promise((n, i) => {
27
27
  }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
28
  a((r = r.apply(e, t)).next());
29
29
  });
30
- import "../stencil/ui-image-DfVgiF6v.js";
31
- function O() {
30
+ import "../stencil/ui-image-C7s6Uvn5.js";
31
+ function I() {
32
32
  }
33
- function ar(e, t) {
33
+ function lr(e, t) {
34
34
  for (const r in t)
35
35
  e[r] = t[r];
36
36
  return (
@@ -38,50 +38,50 @@ function ar(e, t) {
38
38
  e
39
39
  );
40
40
  }
41
- function wt(e) {
41
+ function At(e) {
42
42
  return e();
43
43
  }
44
- function tt() {
44
+ function nt() {
45
45
  return /* @__PURE__ */ Object.create(null);
46
46
  }
47
- function J(e) {
48
- e.forEach(wt);
47
+ function q(e) {
48
+ e.forEach(At);
49
49
  }
50
- function Xe(e) {
50
+ function Ze(e) {
51
51
  return typeof e == "function";
52
52
  }
53
- function St(e, t) {
53
+ function Pt(e, t) {
54
54
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
55
55
  }
56
- let ue;
57
- function rt(e, t) {
58
- return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
56
+ let le;
57
+ function it(e, t) {
58
+ return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
59
59
  }
60
- function ur(e) {
60
+ function hr(e) {
61
61
  return Object.keys(e).length === 0;
62
62
  }
63
- function At(e, ...t) {
63
+ function Ot(e, ...t) {
64
64
  if (e == null) {
65
65
  for (const n of t)
66
66
  n(void 0);
67
- return O;
67
+ return I;
68
68
  }
69
69
  const r = e.subscribe(...t);
70
70
  return r.unsubscribe ? () => r.unsubscribe() : r;
71
71
  }
72
- function lr(e, t, r) {
73
- e.$$.on_destroy.push(At(t, r));
72
+ function cr(e, t, r) {
73
+ e.$$.on_destroy.push(Ot(t, r));
74
74
  }
75
- function ce(e, t, r, n) {
75
+ function fe(e, t, r, n) {
76
76
  if (e) {
77
- const i = Pt(e, t, r, n);
77
+ const i = It(e, t, r, n);
78
78
  return e[0](i);
79
79
  }
80
80
  }
81
- function Pt(e, t, r, n) {
82
- return e[1] && n ? ar(r.ctx.slice(), e[1](n(t))) : r.ctx;
81
+ function It(e, t, r, n) {
82
+ return e[1] && n ? lr(r.ctx.slice(), e[1](n(t))) : r.ctx;
83
83
  }
84
- function fe(e, t, r, n) {
84
+ function me(e, t, r, n) {
85
85
  if (e[2] && n) {
86
86
  const i = e[2](n(r));
87
87
  if (t.dirty === void 0)
@@ -96,13 +96,13 @@ function fe(e, t, r, n) {
96
96
  }
97
97
  return t.dirty;
98
98
  }
99
- function me(e, t, r, n, i, o) {
99
+ function de(e, t, r, n, i, o) {
100
100
  if (i) {
101
- const s = Pt(t, r, n, o);
101
+ const s = It(t, r, n, o);
102
102
  e.p(s, i);
103
103
  }
104
104
  }
105
- function de(e) {
105
+ function pe(e) {
106
106
  if (e.ctx.length > 32) {
107
107
  const t = [], r = e.ctx.length / 32;
108
108
  for (let n = 0; n < r; n++)
@@ -111,17 +111,17 @@ function de(e) {
111
111
  }
112
112
  return -1;
113
113
  }
114
- function P(e, t) {
114
+ function O(e, t) {
115
115
  e.appendChild(t);
116
116
  }
117
- function hr(e, t, r) {
118
- const n = cr(e);
117
+ function fr(e, t, r) {
118
+ const n = mr(e);
119
119
  if (!n.getElementById(t)) {
120
- const i = I("style");
121
- i.id = t, i.textContent = r, fr(n, i);
120
+ const i = C("style");
121
+ i.id = t, i.textContent = r, dr(n, i);
122
122
  }
123
123
  }
124
- function cr(e) {
124
+ function mr(e) {
125
125
  if (!e)
126
126
  return document;
127
127
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -131,49 +131,49 @@ function cr(e) {
131
131
  t
132
132
  ) : e.ownerDocument;
133
133
  }
134
- function fr(e, t) {
135
- return P(
134
+ function dr(e, t) {
135
+ return O(
136
136
  /** @type {Document} */
137
137
  e.head || e,
138
138
  t
139
139
  ), t.sheet;
140
140
  }
141
- function D(e, t, r) {
141
+ function U(e, t, r) {
142
142
  e.insertBefore(t, r || null);
143
143
  }
144
- function L(e) {
144
+ function M(e) {
145
145
  e.parentNode && e.parentNode.removeChild(e);
146
146
  }
147
- function I(e) {
147
+ function C(e) {
148
148
  return document.createElement(e);
149
149
  }
150
- function ie(e) {
150
+ function oe(e) {
151
151
  return document.createTextNode(e);
152
152
  }
153
- function Se() {
154
- return ie(" ");
153
+ function Pe() {
154
+ return oe(" ");
155
155
  }
156
- function mr() {
157
- return ie("");
156
+ function pr() {
157
+ return oe("");
158
158
  }
159
- function dr(e, t, r, n) {
159
+ function br(e, t, r, n) {
160
160
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
161
161
  }
162
- function R(e, t, r) {
162
+ function D(e, t, r) {
163
163
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
164
164
  }
165
- function le(e, t, r) {
165
+ function he(e, t, r) {
166
166
  const n = t.toLowerCase();
167
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : R(e, t, r);
167
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : D(e, t, r);
168
168
  }
169
- function br(e) {
169
+ function gr(e) {
170
170
  return Array.from(e.childNodes);
171
171
  }
172
- function We(e, t) {
172
+ function Je(e, t) {
173
173
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
174
174
  t);
175
175
  }
176
- function pr(e) {
176
+ function yr(e) {
177
177
  const t = {};
178
178
  return e.childNodes.forEach(
179
179
  /** @param {Element} node */
@@ -182,87 +182,87 @@ function pr(e) {
182
182
  }
183
183
  ), t;
184
184
  }
185
- let te;
186
- function ee(e) {
187
- te = e;
185
+ let re;
186
+ function te(e) {
187
+ re = e;
188
188
  }
189
- function gr() {
190
- if (!te)
189
+ function _r() {
190
+ if (!re)
191
191
  throw new Error("Function called outside component initialization");
192
- return te;
192
+ return re;
193
193
  }
194
- function yr(e) {
195
- gr().$$.on_mount.push(e);
194
+ function Er(e) {
195
+ _r().$$.on_mount.push(e);
196
196
  }
197
- const F = [], Me = [];
198
- let z = [];
199
- const nt = [], _r = /* @__PURE__ */ Promise.resolve();
200
- let $e = !1;
201
- function Er() {
202
- $e || ($e = !0, _r.then(A));
197
+ const j = [], Re = [];
198
+ let V = [];
199
+ const ot = [], vr = /* @__PURE__ */ Promise.resolve();
200
+ let De = !1;
201
+ function xr() {
202
+ De || (De = !0, vr.then(A));
203
203
  }
204
- function Re(e) {
205
- z.push(e);
204
+ function Ue(e) {
205
+ V.push(e);
206
206
  }
207
- const Ae = /* @__PURE__ */ new Set();
208
- let G = 0;
207
+ const Oe = /* @__PURE__ */ new Set();
208
+ let k = 0;
209
209
  function A() {
210
- if (G !== 0)
210
+ if (k !== 0)
211
211
  return;
212
- const e = te;
212
+ const e = re;
213
213
  do {
214
214
  try {
215
- for (; G < F.length; ) {
216
- const t = F[G];
217
- G++, ee(t), vr(t.$$);
215
+ for (; k < j.length; ) {
216
+ const t = j[k];
217
+ k++, te(t), Tr(t.$$);
218
218
  }
219
219
  } catch (t) {
220
- throw F.length = 0, G = 0, t;
220
+ throw j.length = 0, k = 0, t;
221
221
  }
222
- for (ee(null), F.length = 0, G = 0; Me.length; )
223
- Me.pop()();
224
- for (let t = 0; t < z.length; t += 1) {
225
- const r = z[t];
226
- Ae.has(r) || (Ae.add(r), r());
222
+ for (te(null), j.length = 0, k = 0; Re.length; )
223
+ Re.pop()();
224
+ for (let t = 0; t < V.length; t += 1) {
225
+ const r = V[t];
226
+ Oe.has(r) || (Oe.add(r), r());
227
227
  }
228
- z.length = 0;
229
- } while (F.length);
230
- for (; nt.length; )
231
- nt.pop()();
232
- $e = !1, Ae.clear(), ee(e);
228
+ V.length = 0;
229
+ } while (j.length);
230
+ for (; ot.length; )
231
+ ot.pop()();
232
+ De = !1, Oe.clear(), te(e);
233
233
  }
234
- function vr(e) {
234
+ function Tr(e) {
235
235
  if (e.fragment !== null) {
236
- e.update(), J(e.before_update);
236
+ e.update(), q(e.before_update);
237
237
  const t = e.dirty;
238
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
238
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
239
239
  }
240
240
  }
241
- function xr(e) {
241
+ function Hr(e) {
242
242
  const t = [], r = [];
243
- z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
243
+ V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
244
244
  }
245
245
  const be = /* @__PURE__ */ new Set();
246
- let $;
247
- function Tr() {
248
- $ = {
246
+ let R;
247
+ function wr() {
248
+ R = {
249
249
  r: 0,
250
250
  c: [],
251
- p: $
251
+ p: R
252
252
  // parent group
253
253
  };
254
254
  }
255
- function Hr() {
256
- $.r || J($.c), $ = $.p;
255
+ function Sr() {
256
+ R.r || q(R.c), R = R.p;
257
257
  }
258
- function C(e, t) {
258
+ function N(e, t) {
259
259
  e && e.i && (be.delete(e), e.i(t));
260
260
  }
261
- function j(e, t, r, n) {
261
+ function z(e, t, r, n) {
262
262
  if (e && e.o) {
263
263
  if (be.has(e))
264
264
  return;
265
- be.add(e), $.c.push(() => {
265
+ be.add(e), R.c.push(() => {
266
266
  be.delete(e), n && (r && e.d(1), n());
267
267
  }), e.o(t);
268
268
  } else
@@ -270,29 +270,29 @@ function j(e, t, r, n) {
270
270
  }
271
271
  function Br(e, t, r) {
272
272
  const { fragment: n, after_update: i } = e.$$;
273
- n && n.m(t, r), Re(() => {
274
- const o = e.$$.on_mount.map(wt).filter(Xe);
275
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
276
- }), i.forEach(Re);
273
+ n && n.m(t, r), Ue(() => {
274
+ const o = e.$$.on_mount.map(At).filter(Ze);
275
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : q(o), e.$$.on_mount = [];
276
+ }), i.forEach(Ue);
277
277
  }
278
- function wr(e, t) {
278
+ function Ar(e, t) {
279
279
  const r = e.$$;
280
- r.fragment !== null && (xr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
280
+ r.fragment !== null && (Hr(r.after_update), q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
281
281
  }
282
- function Sr(e, t) {
283
- e.$$.dirty[0] === -1 && (F.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
282
+ function Pr(e, t) {
283
+ e.$$.dirty[0] === -1 && (j.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
284
284
  }
285
- function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
286
- const l = te;
287
- ee(e);
285
+ function Or(e, t, r, n, i, o, s = null, a = [-1]) {
286
+ const l = re;
287
+ te(e);
288
288
  const u = e.$$ = {
289
289
  fragment: null,
290
290
  ctx: [],
291
291
  // state
292
292
  props: o,
293
- update: O,
293
+ update: I,
294
294
  not_equal: i,
295
- bound: tt(),
295
+ bound: nt(),
296
296
  // lifecycle
297
297
  on_mount: [],
298
298
  on_destroy: [],
@@ -301,7 +301,7 @@ function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
301
301
  after_update: [],
302
302
  context: new Map(t.context || (l ? l.$$.context : [])),
303
303
  // everything else
304
- callbacks: tt(),
304
+ callbacks: nt(),
305
305
  dirty: a,
306
306
  skip_bound: !1,
307
307
  root: t.target || l.$$.root
@@ -309,40 +309,40 @@ function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
309
309
  s && s(u.root);
310
310
  let h = !1;
311
311
  if (u.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
312
- const b = y.length ? y[0] : c;
313
- return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Sr(e, f)), c;
314
- }) : [], u.update(), h = !0, J(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
312
+ const p = y.length ? y[0] : c;
313
+ return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), h && Pr(e, f)), c;
314
+ }) : [], u.update(), h = !0, q(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
315
315
  if (t.hydrate) {
316
- const f = br(t.target);
317
- u.fragment && u.fragment.l(f), f.forEach(L);
316
+ const f = gr(t.target);
317
+ u.fragment && u.fragment.l(f), f.forEach(M);
318
318
  } else
319
319
  u.fragment && u.fragment.c();
320
- t.intro && C(e.$$.fragment), Br(e, t.target, t.anchor), A();
320
+ t.intro && N(e.$$.fragment), Br(e, t.target, t.anchor), A();
321
321
  }
322
- ee(l);
322
+ te(l);
323
323
  }
324
- let Ot;
325
- typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
324
+ let Ct;
325
+ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
326
326
  constructor(t, r, n) {
327
327
  super();
328
328
  /** The Svelte component constructor */
329
- w(this, "$$ctor");
329
+ S(this, "$$ctor");
330
330
  /** Slots */
331
- w(this, "$$s");
331
+ S(this, "$$s");
332
332
  /** The Svelte component instance */
333
- w(this, "$$c");
333
+ S(this, "$$c");
334
334
  /** Whether or not the custom element is connected */
335
- w(this, "$$cn", !1);
335
+ S(this, "$$cn", !1);
336
336
  /** Component props data */
337
- w(this, "$$d", {});
337
+ S(this, "$$d", {});
338
338
  /** `true` if currently in the process of reflecting component props back to attributes */
339
- w(this, "$$r", !1);
339
+ S(this, "$$r", !1);
340
340
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
341
- w(this, "$$p_d", {});
341
+ S(this, "$$p_d", {});
342
342
  /** @type {Record<string, Function[]>} Event listeners */
343
- w(this, "$$l", {});
343
+ S(this, "$$l", {});
344
344
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
345
- w(this, "$$l_u", /* @__PURE__ */ new Map());
345
+ S(this, "$$l_u", /* @__PURE__ */ new Map());
346
346
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
347
347
  }
348
348
  addEventListener(t, r, n) {
@@ -359,42 +359,42 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
359
359
  }
360
360
  }
361
361
  connectedCallback() {
362
- return et(this, null, function* () {
362
+ return rt(this, null, function* () {
363
363
  if (this.$$cn = !0, !this.$$c) {
364
364
  let t = function(o) {
365
365
  return () => {
366
366
  let s;
367
367
  return {
368
368
  c: function() {
369
- s = I("slot"), o !== "default" && R(s, "name", o);
369
+ s = C("slot"), o !== "default" && D(s, "name", o);
370
370
  },
371
371
  /**
372
372
  * @param {HTMLElement} target
373
373
  * @param {HTMLElement} [anchor]
374
374
  */
375
375
  m: function(u, h) {
376
- D(u, s, h);
376
+ U(u, s, h);
377
377
  },
378
378
  d: function(u) {
379
- u && L(s);
379
+ u && M(s);
380
380
  }
381
381
  };
382
382
  };
383
383
  };
384
384
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
385
385
  return;
386
- const r = {}, n = pr(this);
386
+ const r = {}, n = yr(this);
387
387
  for (const o of this.$$s)
388
388
  o in n && (r[o] = [t(o)]);
389
389
  for (const o of this.attributes) {
390
390
  const s = this.$$g_p(o.name);
391
- s in this.$$d || (this.$$d[s] = pe(s, o.value, this.$$p_d, "toProp"));
391
+ s in this.$$d || (this.$$d[s] = ge(s, o.value, this.$$p_d, "toProp"));
392
392
  }
393
393
  for (const o in this.$$p_d)
394
394
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
395
395
  this.$$c = new this.$$ctor({
396
396
  target: this.shadowRoot || this,
397
- props: Ke(Ye({}, this.$$d), {
397
+ props: tt(et({}, this.$$d), {
398
398
  $$slots: r,
399
399
  $$scope: {
400
400
  ctx: []
@@ -405,7 +405,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
405
405
  this.$$r = !0;
406
406
  for (const o in this.$$p_d)
407
407
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
408
- const s = pe(
408
+ const s = ge(
409
409
  o,
410
410
  this.$$d[o],
411
411
  this.$$p_d,
@@ -429,7 +429,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
429
429
  // and setting attributes through setAttribute etc, this is helpful
430
430
  attributeChangedCallback(t, r, n) {
431
431
  var i;
432
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = pe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
432
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ge(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
433
433
  }
434
434
  disconnectedCallback() {
435
435
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -442,7 +442,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
442
442
  ) || t;
443
443
  }
444
444
  });
445
- function pe(e, t, r, n) {
445
+ function ge(e, t, r, n) {
446
446
  var o;
447
447
  const i = (o = r[e]) == null ? void 0 : o.type;
448
448
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -472,8 +472,8 @@ function pe(e, t, r, n) {
472
472
  return t;
473
473
  }
474
474
  }
475
- function Pr(e, t, r, n, i, o) {
476
- let s = class extends Ot {
475
+ function Ir(e, t, r, n, i, o) {
476
+ let s = class extends Ct {
477
477
  constructor() {
478
478
  super(e, r, i), this.$$p_d = t;
479
479
  }
@@ -490,7 +490,7 @@ function Pr(e, t, r, n, i, o) {
490
490
  },
491
491
  set(l) {
492
492
  var u;
493
- l = pe(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
493
+ l = ge(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
494
494
  }
495
495
  });
496
496
  }), n.forEach((a) => {
@@ -503,7 +503,7 @@ function Pr(e, t, r, n, i, o) {
503
503
  }), e.element = /** @type {any} */
504
504
  s, s;
505
505
  }
506
- class Or {
506
+ class Cr {
507
507
  constructor() {
508
508
  /**
509
509
  * ### PRIVATE API
@@ -512,7 +512,7 @@ class Or {
512
512
  *
513
513
  * @type {any}
514
514
  */
515
- w(this, "$$");
515
+ S(this, "$$");
516
516
  /**
517
517
  * ### PRIVATE API
518
518
  *
@@ -520,11 +520,11 @@ class Or {
520
520
  *
521
521
  * @type {any}
522
522
  */
523
- w(this, "$$set");
523
+ S(this, "$$set");
524
524
  }
525
525
  /** @returns {void} */
526
526
  $destroy() {
527
- wr(this, 1), this.$destroy = O;
527
+ Ar(this, 1), this.$destroy = I;
528
528
  }
529
529
  /**
530
530
  * @template {Extract<keyof Events, string>} K
@@ -533,8 +533,8 @@ class Or {
533
533
  * @returns {() => void}
534
534
  */
535
535
  $on(t, r) {
536
- if (!Xe(r))
537
- return O;
536
+ if (!Ze(r))
537
+ return I;
538
538
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
539
539
  return n.push(r), () => {
540
540
  const i = n.indexOf(r);
@@ -546,18 +546,18 @@ class Or {
546
546
  * @returns {void}
547
547
  */
548
548
  $set(t) {
549
- this.$$set && !ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
549
+ this.$$set && !hr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
550
550
  }
551
551
  }
552
- const Ir = "4";
553
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ir);
554
- function Cr(e, t) {
552
+ const Nr = "4";
553
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
554
+ function Lr(e, t) {
555
555
  if (e) {
556
556
  const r = document.createElement("style");
557
557
  r.innerHTML = t, e.appendChild(r);
558
558
  }
559
559
  }
560
- function Nr(e, t) {
560
+ function Mr(e, t) {
561
561
  const r = new URL(t);
562
562
  fetch(r.href).then((n) => n.text()).then((n) => {
563
563
  const i = document.createElement("style");
@@ -566,7 +566,7 @@ function Nr(e, t) {
566
566
  console.error("There was an error while trying to load client styling from URL", n);
567
567
  });
568
568
  }
569
- function Lr(e, t, r) {
569
+ function $r(e, t, r) {
570
570
  if (window.emMessageBus) {
571
571
  const n = document.createElement("style");
572
572
  window.emMessageBus.subscribe(t, (i) => {
@@ -574,185 +574,171 @@ function Lr(e, t, r) {
574
574
  });
575
575
  }
576
576
  }
577
- const k = [];
578
- function Mr(e, t) {
577
+ const F = [];
578
+ function Rr(e, t) {
579
579
  return {
580
- subscribe: xe(e, t).subscribe
580
+ subscribe: He(e, t).subscribe
581
581
  };
582
582
  }
583
- function xe(e, t = O) {
583
+ function He(e, t = I) {
584
584
  let r;
585
585
  const n = /* @__PURE__ */ new Set();
586
586
  function i(a) {
587
- if (St(e, a) && (e = a, r)) {
588
- const l = !k.length;
587
+ if (Pt(e, a) && (e = a, r)) {
588
+ const l = !F.length;
589
589
  for (const u of n)
590
- u[1](), k.push(u, e);
590
+ u[1](), F.push(u, e);
591
591
  if (l) {
592
- for (let u = 0; u < k.length; u += 2)
593
- k[u][0](k[u + 1]);
594
- k.length = 0;
592
+ for (let u = 0; u < F.length; u += 2)
593
+ F[u][0](F[u + 1]);
594
+ F.length = 0;
595
595
  }
596
596
  }
597
597
  }
598
598
  function o(a) {
599
599
  i(a(e));
600
600
  }
601
- function s(a, l = O) {
601
+ function s(a, l = I) {
602
602
  const u = [a, l];
603
- return n.add(u), n.size === 1 && (r = t(i, o) || O), a(e), () => {
603
+ return n.add(u), n.size === 1 && (r = t(i, o) || I), a(e), () => {
604
604
  n.delete(u), n.size === 0 && r && (r(), r = null);
605
605
  };
606
606
  }
607
607
  return { set: i, update: o, subscribe: s };
608
608
  }
609
- function q(e, t, r) {
609
+ function Q(e, t, r) {
610
610
  const n = !Array.isArray(e), i = n ? [e] : e;
611
611
  if (!i.every(Boolean))
612
612
  throw new Error("derived() expects stores as input, got a falsy value");
613
613
  const o = t.length < 2;
614
- return Mr(r, (s, a) => {
614
+ return Rr(r, (s, a) => {
615
615
  let l = !1;
616
616
  const u = [];
617
- let h = 0, f = O;
617
+ let h = 0, f = I;
618
618
  const c = () => {
619
619
  if (h)
620
620
  return;
621
621
  f();
622
- const b = t(n ? u[0] : u, s, a);
623
- o ? s(b) : f = Xe(b) ? b : O;
622
+ const p = t(n ? u[0] : u, s, a);
623
+ o ? s(p) : f = Ze(p) ? p : I;
624
624
  }, y = i.map(
625
- (b, v) => At(
626
- b,
627
- (E) => {
628
- u[v] = E, h &= ~(1 << v), l && c();
625
+ (p, E) => Ot(
626
+ p,
627
+ (_) => {
628
+ u[E] = _, h &= ~(1 << E), l && c();
629
629
  },
630
630
  () => {
631
- h |= 1 << v;
631
+ h |= 1 << E;
632
632
  }
633
633
  )
634
634
  );
635
635
  return l = !0, c(), function() {
636
- J(y), f(), l = !1;
636
+ q(y), f(), l = !1;
637
637
  };
638
638
  });
639
639
  }
640
- function $r(e) {
640
+ function Dr(e) {
641
641
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
642
642
  }
643
- var Rr = function(t) {
644
- return Dr(t) && !Ur(t);
643
+ var Ur = function(t) {
644
+ return Gr(t) && !kr(t);
645
645
  };
646
- function Dr(e) {
646
+ function Gr(e) {
647
647
  return !!e && typeof e == "object";
648
648
  }
649
- function Ur(e) {
649
+ function kr(e) {
650
650
  var t = Object.prototype.toString.call(e);
651
- return t === "[object RegExp]" || t === "[object Date]" || Fr(e);
651
+ return t === "[object RegExp]" || t === "[object Date]" || zr(e);
652
652
  }
653
- var Gr = typeof Symbol == "function" && Symbol.for, kr = Gr ? Symbol.for("react.element") : 60103;
654
- function Fr(e) {
655
- return e.$$typeof === kr;
653
+ var Fr = typeof Symbol == "function" && Symbol.for, jr = Fr ? Symbol.for("react.element") : 60103;
654
+ function zr(e) {
655
+ return e.$$typeof === jr;
656
656
  }
657
- function jr(e) {
657
+ function Vr(e) {
658
658
  return Array.isArray(e) ? [] : {};
659
659
  }
660
- function re(e, t) {
661
- return t.clone !== !1 && t.isMergeableObject(e) ? V(jr(e), e, t) : e;
660
+ function ne(e, t) {
661
+ return t.clone !== !1 && t.isMergeableObject(e) ? X(Vr(e), e, t) : e;
662
662
  }
663
- function zr(e, t, r) {
663
+ function Xr(e, t, r) {
664
664
  return e.concat(t).map(function(n) {
665
- return re(n, r);
665
+ return ne(n, r);
666
666
  });
667
667
  }
668
- function Vr(e, t) {
668
+ function Wr(e, t) {
669
669
  if (!t.customMerge)
670
- return V;
670
+ return X;
671
671
  var r = t.customMerge(e);
672
- return typeof r == "function" ? r : V;
672
+ return typeof r == "function" ? r : X;
673
673
  }
674
- function Xr(e) {
674
+ function Zr(e) {
675
675
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
676
676
  return Object.propertyIsEnumerable.call(e, t);
677
677
  }) : [];
678
678
  }
679
- function it(e) {
680
- return Object.keys(e).concat(Xr(e));
679
+ function st(e) {
680
+ return Object.keys(e).concat(Zr(e));
681
681
  }
682
- function It(e, t) {
682
+ function Nt(e, t) {
683
683
  try {
684
684
  return t in e;
685
685
  } catch (r) {
686
686
  return !1;
687
687
  }
688
688
  }
689
- function Wr(e, t) {
690
- return It(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
689
+ function Jr(e, t) {
690
+ return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
691
691
  }
692
- function Zr(e, t, r) {
692
+ function qr(e, t, r) {
693
693
  var n = {};
694
- return r.isMergeableObject(e) && it(e).forEach(function(i) {
695
- n[i] = re(e[i], r);
696
- }), it(t).forEach(function(i) {
697
- Wr(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vr(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
694
+ return r.isMergeableObject(e) && st(e).forEach(function(i) {
695
+ n[i] = ne(e[i], r);
696
+ }), st(t).forEach(function(i) {
697
+ Jr(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Wr(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
698
698
  }), n;
699
699
  }
700
- function V(e, t, r) {
701
- r = r || {}, r.arrayMerge = r.arrayMerge || zr, r.isMergeableObject = r.isMergeableObject || Rr, r.cloneUnlessOtherwiseSpecified = re;
700
+ function X(e, t, r) {
701
+ r = r || {}, r.arrayMerge = r.arrayMerge || Xr, r.isMergeableObject = r.isMergeableObject || Ur, r.cloneUnlessOtherwiseSpecified = ne;
702
702
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
703
- return o ? n ? r.arrayMerge(e, t, r) : Zr(e, t, r) : re(t, r);
703
+ return o ? n ? r.arrayMerge(e, t, r) : qr(e, t, r) : ne(t, r);
704
704
  }
705
- V.all = function(t, r) {
705
+ X.all = function(t, r) {
706
706
  if (!Array.isArray(t))
707
707
  throw new Error("first argument should be an array");
708
708
  return t.reduce(function(n, i) {
709
- return V(n, i, r);
709
+ return X(n, i, r);
710
710
  }, {});
711
711
  };
712
- var Jr = V, qr = Jr;
713
- const Qr = /* @__PURE__ */ $r(qr);
714
- /*! *****************************************************************************
715
- Copyright (c) Microsoft Corporation.
716
-
717
- Permission to use, copy, modify, and/or distribute this software for any
718
- purpose with or without fee is hereby granted.
719
-
720
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
721
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
722
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
723
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
724
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
725
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
726
- PERFORMANCE OF THIS SOFTWARE.
727
- ***************************************************************************** */
728
- var De = function(e, t) {
729
- return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
712
+ var Qr = X, Yr = Qr;
713
+ const Kr = /* @__PURE__ */ Dr(Yr);
714
+ var Ge = function(e, t) {
715
+ return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
730
716
  r.__proto__ = n;
731
717
  } || function(r, n) {
732
718
  for (var i in n)
733
719
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
734
- }, De(e, t);
720
+ }, Ge(e, t);
735
721
  };
736
- function Te(e, t) {
722
+ function we(e, t) {
737
723
  if (typeof t != "function" && t !== null)
738
724
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
739
- De(e, t);
725
+ Ge(e, t);
740
726
  function r() {
741
727
  this.constructor = e;
742
728
  }
743
729
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
744
730
  }
745
- var _ = function() {
746
- return _ = Object.assign || function(t) {
731
+ var P = function() {
732
+ return P = Object.assign || function(t) {
747
733
  for (var r, n = 1, i = arguments.length; n < i; n++) {
748
734
  r = arguments[n];
749
735
  for (var o in r)
750
736
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
751
737
  }
752
738
  return t;
753
- }, _.apply(this, arguments);
739
+ }, P.apply(this, arguments);
754
740
  };
755
- function Yr(e, t) {
741
+ function en(e, t) {
756
742
  var r = {};
757
743
  for (var n in e)
758
744
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -761,43 +747,43 @@ function Yr(e, t) {
761
747
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
762
748
  return r;
763
749
  }
764
- function Pe(e, t, r) {
765
- if (arguments.length === 2)
750
+ function Ie(e, t, r) {
751
+ if (r || arguments.length === 2)
766
752
  for (var n = 0, i = t.length, o; n < i; n++)
767
753
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
768
- return e.concat(o || t);
754
+ return e.concat(o || Array.prototype.slice.call(t));
769
755
  }
770
- function Oe(e, t) {
771
- var r = t && t.cache ? t.cache : sn, n = t && t.serializer ? t.serializer : nn, i = t && t.strategy ? t.strategy : tn;
756
+ function Ce(e, t) {
757
+ var r = t && t.cache ? t.cache : un, n = t && t.serializer ? t.serializer : sn, i = t && t.strategy ? t.strategy : nn;
772
758
  return i(e, {
773
759
  cache: r,
774
760
  serializer: n
775
761
  });
776
762
  }
777
- function Kr(e) {
763
+ function tn(e) {
778
764
  return e == null || typeof e == "number" || typeof e == "boolean";
779
765
  }
780
- function en(e, t, r, n) {
781
- var i = Kr(n) ? n : r(n), o = t.get(i);
766
+ function rn(e, t, r, n) {
767
+ var i = tn(n) ? n : r(n), o = t.get(i);
782
768
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
783
769
  }
784
- function Ct(e, t, r) {
770
+ function Lt(e, t, r) {
785
771
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
786
772
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
787
773
  }
788
- function Nt(e, t, r, n, i) {
774
+ function Mt(e, t, r, n, i) {
789
775
  return r.bind(t, e, n, i);
790
776
  }
791
- function tn(e, t) {
792
- var r = e.length === 1 ? en : Ct;
793
- return Nt(e, this, r, t.cache.create(), t.serializer);
777
+ function nn(e, t) {
778
+ var r = e.length === 1 ? rn : Lt;
779
+ return Mt(e, this, r, t.cache.create(), t.serializer);
794
780
  }
795
- function rn(e, t) {
796
- return Nt(e, this, Ct, t.cache.create(), t.serializer);
781
+ function on(e, t) {
782
+ return Mt(e, this, Lt, t.cache.create(), t.serializer);
797
783
  }
798
- var nn = function() {
784
+ var sn = function() {
799
785
  return JSON.stringify(arguments);
800
- }, on = (
786
+ }, an = (
801
787
  /** @class */
802
788
  function() {
803
789
  function e() {
@@ -809,61 +795,71 @@ var nn = function() {
809
795
  this.cache[t] = r;
810
796
  }, e;
811
797
  }()
812
- ), sn = {
798
+ ), un = {
813
799
  create: function() {
814
- return new on();
800
+ return new an();
815
801
  }
816
- }, Ie = {
817
- variadic: rn
818
- }, p;
802
+ }, Ne = {
803
+ variadic: on
804
+ }, Ee = function() {
805
+ return Ee = Object.assign || function(t) {
806
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
807
+ r = arguments[n];
808
+ for (var o in r)
809
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
810
+ }
811
+ return t;
812
+ }, Ee.apply(this, arguments);
813
+ };
814
+ var b;
819
815
  (function(e) {
820
816
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
821
- })(p || (p = {}));
822
- var T;
817
+ })(b || (b = {}));
818
+ var x;
823
819
  (function(e) {
824
820
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
825
- })(T || (T = {}));
826
- var X;
821
+ })(x || (x = {}));
822
+ var W;
827
823
  (function(e) {
828
824
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
829
- })(X || (X = {}));
830
- function ot(e) {
831
- return e.type === T.literal;
832
- }
833
- function an(e) {
834
- return e.type === T.argument;
835
- }
836
- function Lt(e) {
837
- return e.type === T.number;
825
+ })(W || (W = {}));
826
+ function at(e) {
827
+ return e.type === x.literal;
838
828
  }
839
- function Mt(e) {
840
- return e.type === T.date;
829
+ function ln(e) {
830
+ return e.type === x.argument;
841
831
  }
842
832
  function $t(e) {
843
- return e.type === T.time;
833
+ return e.type === x.number;
844
834
  }
845
835
  function Rt(e) {
846
- return e.type === T.select;
836
+ return e.type === x.date;
847
837
  }
848
838
  function Dt(e) {
849
- return e.type === T.plural;
850
- }
851
- function un(e) {
852
- return e.type === T.pound;
839
+ return e.type === x.time;
853
840
  }
854
841
  function Ut(e) {
855
- return e.type === T.tag;
842
+ return e.type === x.select;
856
843
  }
857
844
  function Gt(e) {
858
- return !!(e && typeof e == "object" && e.type === X.number);
859
- }
860
- function Ue(e) {
861
- return !!(e && typeof e == "object" && e.type === X.dateTime);
845
+ return e.type === x.plural;
862
846
  }
863
- var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ln = /(?:[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;
864
847
  function hn(e) {
848
+ return e.type === x.pound;
849
+ }
850
+ function kt(e) {
851
+ return e.type === x.tag;
852
+ }
853
+ function Ft(e) {
854
+ return !!(e && typeof e == "object" && e.type === W.number);
855
+ }
856
+ function ke(e) {
857
+ return !!(e && typeof e == "object" && e.type === W.dateTime);
858
+ }
859
+ var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, cn = /(?:[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;
860
+ function fn(e) {
865
861
  var t = {};
866
- return e.replace(ln, function(r) {
862
+ return e.replace(cn, function(r) {
867
863
  var n = r.length;
868
864
  switch (r[0]) {
869
865
  case "G":
@@ -952,11 +948,21 @@ function hn(e) {
952
948
  return "";
953
949
  }), t;
954
950
  }
955
- var cn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
956
- function fn(e) {
951
+ var T = function() {
952
+ return T = Object.assign || function(t) {
953
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
954
+ r = arguments[n];
955
+ for (var o in r)
956
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
957
+ }
958
+ return t;
959
+ }, T.apply(this, arguments);
960
+ };
961
+ var mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
962
+ function dn(e) {
957
963
  if (e.length === 0)
958
964
  throw new Error("Number skeleton cannot be empty");
959
- for (var t = e.split(cn).filter(function(c) {
965
+ for (var t = e.split(mn).filter(function(c) {
960
966
  return c.length > 0;
961
967
  }), r = [], n = 0, i = t; n < i.length; n++) {
962
968
  var o = i[n], s = o.split("/");
@@ -971,17 +977,17 @@ function fn(e) {
971
977
  }
972
978
  return r;
973
979
  }
974
- function mn(e) {
980
+ function pn(e) {
975
981
  return e.replace(/^(.*?)-/, "");
976
982
  }
977
- var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, dn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
978
- function at(e) {
983
+ var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, bn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
984
+ function lt(e) {
979
985
  var t = {};
980
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
986
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
981
987
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
982
988
  }), t;
983
989
  }
984
- function zt(e) {
990
+ function Xt(e) {
985
991
  switch (e) {
986
992
  case "sign-auto":
987
993
  return {
@@ -1021,7 +1027,7 @@ function zt(e) {
1021
1027
  };
1022
1028
  }
1023
1029
  }
1024
- function bn(e) {
1030
+ function gn(e) {
1025
1031
  var t;
1026
1032
  if (e[0] === "E" && e[1] === "E" ? (t = {
1027
1033
  notation: "engineering"
@@ -1029,17 +1035,17 @@ function bn(e) {
1029
1035
  notation: "scientific"
1030
1036
  }, e = e.slice(1)), t) {
1031
1037
  var r = e.slice(0, 2);
1032
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jt.test(e))
1038
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
1033
1039
  throw new Error("Malformed concise eng/scientific notation");
1034
1040
  t.minimumIntegerDigits = e.length;
1035
1041
  }
1036
1042
  return t;
1037
1043
  }
1038
- function ut(e) {
1039
- var t = {}, r = zt(e);
1044
+ function ht(e) {
1045
+ var t = {}, r = Xt(e);
1040
1046
  return r || t;
1041
1047
  }
1042
- function pn(e) {
1048
+ function yn(e) {
1043
1049
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1044
1050
  var i = n[r];
1045
1051
  switch (i.stem) {
@@ -1063,7 +1069,7 @@ function pn(e) {
1063
1069
  continue;
1064
1070
  case "measure-unit":
1065
1071
  case "unit":
1066
- t.style = "unit", t.unit = mn(i.options[0]);
1072
+ t.style = "unit", t.unit = pn(i.options[0]);
1067
1073
  continue;
1068
1074
  case "compact-short":
1069
1075
  case "K":
@@ -1074,13 +1080,13 @@ function pn(e) {
1074
1080
  t.notation = "compact", t.compactDisplay = "long";
1075
1081
  continue;
1076
1082
  case "scientific":
1077
- t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1078
- return _(_({}, l), ut(u));
1083
+ t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1084
+ return T(T({}, l), ht(u));
1079
1085
  }, {}));
1080
1086
  continue;
1081
1087
  case "engineering":
1082
- t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1083
- return _(_({}, l), ut(u));
1088
+ t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1089
+ return T(T({}, l), ht(u));
1084
1090
  }, {}));
1085
1091
  continue;
1086
1092
  case "notation-simple":
@@ -1125,7 +1131,7 @@ function pn(e) {
1125
1131
  case "integer-width":
1126
1132
  if (i.options.length > 1)
1127
1133
  throw new RangeError("integer-width stems only accept a single optional option");
1128
- i.options[0].replace(dn, function(l, u, h, f, c, y) {
1134
+ i.options[0].replace(bn, function(l, u, h, f, c, y) {
1129
1135
  if (u)
1130
1136
  t.minimumIntegerDigits = h.length;
1131
1137
  else {
@@ -1138,32 +1144,32 @@ function pn(e) {
1138
1144
  });
1139
1145
  continue;
1140
1146
  }
1141
- if (jt.test(i.stem)) {
1147
+ if (Vt.test(i.stem)) {
1142
1148
  t.minimumIntegerDigits = i.stem.length;
1143
1149
  continue;
1144
1150
  }
1145
- if (st.test(i.stem)) {
1151
+ if (ut.test(i.stem)) {
1146
1152
  if (i.options.length > 1)
1147
1153
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1148
- i.stem.replace(st, function(l, u, h, f, c, y) {
1154
+ i.stem.replace(ut, function(l, u, h, f, c, y) {
1149
1155
  return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && y ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1150
1156
  });
1151
1157
  var o = i.options[0];
1152
- o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), at(o)));
1158
+ o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), lt(o)));
1153
1159
  continue;
1154
1160
  }
1155
- if (Ft.test(i.stem)) {
1156
- t = _(_({}, t), at(i.stem));
1161
+ if (zt.test(i.stem)) {
1162
+ t = T(T({}, t), lt(i.stem));
1157
1163
  continue;
1158
1164
  }
1159
- var s = zt(i.stem);
1160
- s && (t = _(_({}, t), s));
1161
- var a = bn(i.stem);
1162
- a && (t = _(_({}, t), a));
1165
+ var s = Xt(i.stem);
1166
+ s && (t = T(T({}, t), s));
1167
+ var a = gn(i.stem);
1168
+ a && (t = T(T({}, t), a));
1163
1169
  }
1164
1170
  return t;
1165
1171
  }
1166
- var he = {
1172
+ var ce = {
1167
1173
  "001": [
1168
1174
  "H",
1169
1175
  "h"
@@ -2578,13 +2584,13 @@ var he = {
2578
2584
  "h"
2579
2585
  ]
2580
2586
  };
2581
- function gn(e, t) {
2587
+ function _n(e, t) {
2582
2588
  for (var r = "", n = 0; n < e.length; n++) {
2583
2589
  var i = e.charAt(n);
2584
2590
  if (i === "j") {
2585
2591
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2586
2592
  o++, n++;
2587
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = yn(t);
2593
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = En(t);
2588
2594
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2589
2595
  r += l;
2590
2596
  for (; s-- > 0; )
@@ -2594,7 +2600,7 @@ function gn(e, t) {
2594
2600
  }
2595
2601
  return r;
2596
2602
  }
2597
- function yn(e) {
2603
+ function En(e) {
2598
2604
  var t = e.hourCycle;
2599
2605
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2600
2606
  e.hourCycles && // @ts-ignore
@@ -2613,23 +2619,23 @@ function yn(e) {
2613
2619
  }
2614
2620
  var r = e.language, n;
2615
2621
  r !== "root" && (n = e.maximize().region);
2616
- var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
2622
+ var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2617
2623
  return i[0];
2618
2624
  }
2619
- var Ce, _n = new RegExp("^".concat(kt.source, "*")), En = new RegExp("".concat(kt.source, "*$"));
2625
+ var Le, vn = new RegExp("^".concat(jt.source, "*")), xn = new RegExp("".concat(jt.source, "*$"));
2620
2626
  function g(e, t) {
2621
2627
  return { start: e, end: t };
2622
2628
  }
2623
- var vn = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, Tn = !!Object.fromEntries, Hn = !!String.prototype.codePointAt, Bn = !!String.prototype.trimStart, wn = !!String.prototype.trimEnd, Sn = !!Number.isSafeInteger, An = Sn ? Number.isSafeInteger : function(e) {
2629
+ var Tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hn = !!String.fromCodePoint, wn = !!Object.fromEntries, Sn = !!String.prototype.codePointAt, Bn = !!String.prototype.trimStart, An = !!String.prototype.trimEnd, Pn = !!Number.isSafeInteger, On = Pn ? Number.isSafeInteger : function(e) {
2624
2630
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2625
- }, Ge = !0;
2631
+ }, Fe = !0;
2626
2632
  try {
2627
- var Pn = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2628
- Ge = ((Ce = Pn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
2633
+ var In = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2634
+ Fe = ((Le = In.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2629
2635
  } catch (e) {
2630
- Ge = !1;
2636
+ Fe = !1;
2631
2637
  }
2632
- var lt = vn ? (
2638
+ var ct = Tn ? (
2633
2639
  // Native
2634
2640
  function(t, r, n) {
2635
2641
  return t.startsWith(r, n);
@@ -2639,7 +2645,7 @@ var lt = vn ? (
2639
2645
  function(t, r, n) {
2640
2646
  return t.slice(n, n + r.length) === r;
2641
2647
  }
2642
- ), ke = xn ? String.fromCodePoint : (
2648
+ ), je = Hn ? String.fromCodePoint : (
2643
2649
  // IE11
2644
2650
  function() {
2645
2651
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2651,9 +2657,9 @@ var lt = vn ? (
2651
2657
  }
2652
2658
  return n;
2653
2659
  }
2654
- ), ht = (
2660
+ ), ft = (
2655
2661
  // native
2656
- Tn ? Object.fromEntries : (
2662
+ wn ? Object.fromEntries : (
2657
2663
  // Ponyfill
2658
2664
  function(t) {
2659
2665
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2663,7 +2669,7 @@ var lt = vn ? (
2663
2669
  return r;
2664
2670
  }
2665
2671
  )
2666
- ), Vt = Hn ? (
2672
+ ), Wt = Sn ? (
2667
2673
  // Native
2668
2674
  function(t, r) {
2669
2675
  return t.codePointAt(r);
@@ -2677,7 +2683,7 @@ var lt = vn ? (
2677
2683
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2678
2684
  }
2679
2685
  }
2680
- ), On = Bn ? (
2686
+ ), Cn = Bn ? (
2681
2687
  // Native
2682
2688
  function(t) {
2683
2689
  return t.trimStart();
@@ -2685,9 +2691,9 @@ var lt = vn ? (
2685
2691
  ) : (
2686
2692
  // Ponyfill
2687
2693
  function(t) {
2688
- return t.replace(_n, "");
2694
+ return t.replace(vn, "");
2689
2695
  }
2690
- ), In = wn ? (
2696
+ ), Nn = An ? (
2691
2697
  // Native
2692
2698
  function(t) {
2693
2699
  return t.trimEnd();
@@ -2695,32 +2701,32 @@ var lt = vn ? (
2695
2701
  ) : (
2696
2702
  // Ponyfill
2697
2703
  function(t) {
2698
- return t.replace(En, "");
2704
+ return t.replace(xn, "");
2699
2705
  }
2700
2706
  );
2701
- function Xt(e, t) {
2707
+ function Zt(e, t) {
2702
2708
  return new RegExp(e, t);
2703
2709
  }
2704
- var Fe;
2705
- if (Ge) {
2706
- var ct = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2707
- Fe = function(t, r) {
2710
+ var ze;
2711
+ if (Fe) {
2712
+ var mt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2713
+ ze = function(t, r) {
2708
2714
  var n;
2709
- ct.lastIndex = r;
2710
- var i = ct.exec(t);
2715
+ mt.lastIndex = r;
2716
+ var i = mt.exec(t);
2711
2717
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2712
2718
  };
2713
2719
  } else
2714
- Fe = function(t, r) {
2720
+ ze = function(t, r) {
2715
2721
  for (var n = []; ; ) {
2716
- var i = Vt(t, r);
2717
- if (i === void 0 || Wt(i) || Mn(i))
2722
+ var i = Wt(t, r);
2723
+ if (i === void 0 || Jt(i) || Rn(i))
2718
2724
  break;
2719
2725
  n.push(i), r += i >= 65536 ? 2 : 1;
2720
2726
  }
2721
- return ke.apply(void 0, n);
2727
+ return je.apply(void 0, n);
2722
2728
  };
2723
- var Cn = (
2729
+ var Ln = (
2724
2730
  /** @class */
2725
2731
  function() {
2726
2732
  function e(t, r) {
@@ -2744,14 +2750,14 @@ var Cn = (
2744
2750
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2745
2751
  var a = this.clonePosition();
2746
2752
  this.bump(), i.push({
2747
- type: T.pound,
2753
+ type: x.pound,
2748
2754
  location: g(a, this.clonePosition())
2749
2755
  });
2750
2756
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2751
2757
  if (n)
2752
2758
  break;
2753
- return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
2754
- } else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
2759
+ return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
2760
+ } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
2755
2761
  var s = this.parseTag(t, r);
2756
2762
  if (s.err)
2757
2763
  return s;
@@ -2772,7 +2778,7 @@ var Cn = (
2772
2778
  if (this.bumpSpace(), this.bumpIf("/>"))
2773
2779
  return {
2774
2780
  val: {
2775
- type: T.literal,
2781
+ type: x.literal,
2776
2782
  value: "<".concat(i, "/>"),
2777
2783
  location: g(n, this.clonePosition())
2778
2784
  },
@@ -2784,25 +2790,25 @@ var Cn = (
2784
2790
  return o;
2785
2791
  var s = o.val, a = this.clonePosition();
2786
2792
  if (this.bumpIf("</")) {
2787
- if (this.isEOF() || !je(this.char()))
2788
- return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
2793
+ if (this.isEOF() || !Ve(this.char()))
2794
+ return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
2789
2795
  var l = this.clonePosition(), u = this.parseTagName();
2790
- return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2796
+ return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2791
2797
  val: {
2792
- type: T.tag,
2798
+ type: x.tag,
2793
2799
  value: i,
2794
2800
  children: s,
2795
2801
  location: g(n, this.clonePosition())
2796
2802
  },
2797
2803
  err: null
2798
- } : this.error(p.INVALID_TAG, g(a, this.clonePosition())));
2804
+ } : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
2799
2805
  } else
2800
- return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
2806
+ return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
2801
2807
  } else
2802
- return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
2808
+ return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
2803
2809
  }, e.prototype.parseTagName = function() {
2804
2810
  var t = this.offset();
2805
- for (this.bump(); !this.isEOF() && Ln(this.char()); )
2811
+ for (this.bump(); !this.isEOF() && $n(this.char()); )
2806
2812
  this.bump();
2807
2813
  return this.message.slice(t, this.offset());
2808
2814
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2826,12 +2832,12 @@ var Cn = (
2826
2832
  }
2827
2833
  var l = g(n, this.clonePosition());
2828
2834
  return {
2829
- val: { type: T.literal, value: i, location: l },
2835
+ val: { type: x.literal, value: i, location: l },
2830
2836
  err: null
2831
2837
  };
2832
2838
  }, e.prototype.tryParseLeftAngleBracket = function() {
2833
2839
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2834
- !Nn(this.peek() || 0)) ? (this.bump(), "<") : null;
2840
+ !Mn(this.peek() || 0)) ? (this.bump(), "<") : null;
2835
2841
  }, e.prototype.tryParseQuote = function(t) {
2836
2842
  if (this.isEOF() || this.char() !== 39)
2837
2843
  return null;
@@ -2865,28 +2871,28 @@ var Cn = (
2865
2871
  r.push(n);
2866
2872
  this.bump();
2867
2873
  }
2868
- return ke.apply(void 0, r);
2874
+ return je.apply(void 0, r);
2869
2875
  }, e.prototype.tryParseUnquoted = function(t, r) {
2870
2876
  if (this.isEOF())
2871
2877
  return null;
2872
2878
  var n = this.char();
2873
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
2879
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
2874
2880
  }, e.prototype.parseArgument = function(t, r) {
2875
2881
  var n = this.clonePosition();
2876
2882
  if (this.bump(), this.bumpSpace(), this.isEOF())
2877
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2883
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2878
2884
  if (this.char() === 125)
2879
- return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
2885
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
2880
2886
  var i = this.parseIdentifierIfPossible().value;
2881
2887
  if (!i)
2882
- return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2888
+ return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2883
2889
  if (this.bumpSpace(), this.isEOF())
2884
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2890
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
2885
2891
  switch (this.char()) {
2886
2892
  case 125:
2887
2893
  return this.bump(), {
2888
2894
  val: {
2889
- type: T.argument,
2895
+ type: x.argument,
2890
2896
  // value does not include the opening and closing braces.
2891
2897
  value: i,
2892
2898
  location: g(n, this.clonePosition())
@@ -2894,12 +2900,12 @@ var Cn = (
2894
2900
  err: null
2895
2901
  };
2896
2902
  case 44:
2897
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2903
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2898
2904
  default:
2899
- return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2905
+ return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
2900
2906
  }
2901
2907
  }, e.prototype.parseIdentifierIfPossible = function() {
2902
- var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
2908
+ var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
2903
2909
  this.bumpTo(i);
2904
2910
  var o = this.clonePosition(), s = g(t, o);
2905
2911
  return { value: n, location: s };
@@ -2907,7 +2913,7 @@ var Cn = (
2907
2913
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2908
2914
  switch (a) {
2909
2915
  case "":
2910
- return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, l));
2916
+ return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, l));
2911
2917
  case "number":
2912
2918
  case "date":
2913
2919
  case "time": {
@@ -2918,46 +2924,46 @@ var Cn = (
2918
2924
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2919
2925
  if (f.err)
2920
2926
  return f;
2921
- var c = In(f.val);
2927
+ var c = Nn(f.val);
2922
2928
  if (c.length === 0)
2923
- return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
2929
+ return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
2924
2930
  var y = g(h, this.clonePosition());
2925
2931
  u = { style: c, styleLocation: y };
2926
2932
  }
2927
- var b = this.tryParseArgumentClose(i);
2928
- if (b.err)
2929
- return b;
2930
- var v = g(i, this.clonePosition());
2931
- if (u && lt(u == null ? void 0 : u.style, "::", 0)) {
2932
- var E = On(u.style.slice(2));
2933
+ var p = this.tryParseArgumentClose(i);
2934
+ if (p.err)
2935
+ return p;
2936
+ var E = g(i, this.clonePosition());
2937
+ if (u && ct(u == null ? void 0 : u.style, "::", 0)) {
2938
+ var _ = Cn(u.style.slice(2));
2933
2939
  if (a === "number") {
2934
- var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
2940
+ var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
2935
2941
  return f.err ? f : {
2936
- val: { type: T.number, value: n, location: v, style: f.val },
2942
+ val: { type: x.number, value: n, location: E, style: f.val },
2937
2943
  err: null
2938
2944
  };
2939
2945
  } else {
2940
- if (E.length === 0)
2941
- return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
2942
- var m = E;
2943
- this.locale && (m = gn(E, this.locale));
2946
+ if (_.length === 0)
2947
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, E);
2948
+ var m = _;
2949
+ this.locale && (m = _n(_, this.locale));
2944
2950
  var c = {
2945
- type: X.dateTime,
2951
+ type: W.dateTime,
2946
2952
  pattern: m,
2947
2953
  location: u.styleLocation,
2948
- parsedOptions: this.shouldParseSkeletons ? hn(m) : {}
2949
- }, x = a === "date" ? T.date : T.time;
2954
+ parsedOptions: this.shouldParseSkeletons ? fn(m) : {}
2955
+ }, v = a === "date" ? x.date : x.time;
2950
2956
  return {
2951
- val: { type: x, value: n, location: v, style: c },
2957
+ val: { type: v, value: n, location: E, style: c },
2952
2958
  err: null
2953
2959
  };
2954
2960
  }
2955
2961
  }
2956
2962
  return {
2957
2963
  val: {
2958
- type: a === "number" ? T.number : a === "date" ? T.date : T.time,
2964
+ type: a === "number" ? x.number : a === "date" ? x.date : x.time,
2959
2965
  value: n,
2960
- location: v,
2966
+ location: E,
2961
2967
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2962
2968
  },
2963
2969
  err: null
@@ -2968,50 +2974,50 @@ var Cn = (
2968
2974
  case "select": {
2969
2975
  var d = this.clonePosition();
2970
2976
  if (this.bumpSpace(), !this.bumpIf(","))
2971
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(d, _({}, d)));
2977
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(d, Ee({}, d)));
2972
2978
  this.bumpSpace();
2973
- var B = this.parseIdentifierIfPossible(), S = 0;
2974
- if (a !== "select" && B.value === "offset") {
2979
+ var w = this.parseIdentifierIfPossible(), B = 0;
2980
+ if (a !== "select" && w.value === "offset") {
2975
2981
  if (!this.bumpIf(":"))
2976
- return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
2982
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
2977
2983
  this.bumpSpace();
2978
- var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2984
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2979
2985
  if (f.err)
2980
2986
  return f;
2981
- this.bumpSpace(), B = this.parseIdentifierIfPossible(), S = f.val;
2987
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), B = f.val;
2982
2988
  }
2983
- var ae = this.tryParsePluralOrSelectOptions(t, a, r, B);
2984
- if (ae.err)
2985
- return ae;
2986
- var b = this.tryParseArgumentClose(i);
2987
- if (b.err)
2988
- return b;
2989
- var qe = g(i, this.clonePosition());
2989
+ var ue = this.tryParsePluralOrSelectOptions(t, a, r, w);
2990
+ if (ue.err)
2991
+ return ue;
2992
+ var p = this.tryParseArgumentClose(i);
2993
+ if (p.err)
2994
+ return p;
2995
+ var Ye = g(i, this.clonePosition());
2990
2996
  return a === "select" ? {
2991
2997
  val: {
2992
- type: T.select,
2998
+ type: x.select,
2993
2999
  value: n,
2994
- options: ht(ae.val),
2995
- location: qe
3000
+ options: ft(ue.val),
3001
+ location: Ye
2996
3002
  },
2997
3003
  err: null
2998
3004
  } : {
2999
3005
  val: {
3000
- type: T.plural,
3006
+ type: x.plural,
3001
3007
  value: n,
3002
- options: ht(ae.val),
3003
- offset: S,
3008
+ options: ft(ue.val),
3009
+ offset: B,
3004
3010
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3005
- location: qe
3011
+ location: Ye
3006
3012
  },
3007
3013
  err: null
3008
3014
  };
3009
3015
  }
3010
3016
  default:
3011
- return this.error(p.INVALID_ARGUMENT_TYPE, g(s, l));
3017
+ return this.error(b.INVALID_ARGUMENT_TYPE, g(s, l));
3012
3018
  }
3013
3019
  }, e.prototype.tryParseArgumentClose = function(t) {
3014
- return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3020
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3015
3021
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3016
3022
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3017
3023
  var n = this.char();
@@ -3020,7 +3026,7 @@ var Cn = (
3020
3026
  this.bump();
3021
3027
  var i = this.clonePosition();
3022
3028
  if (!this.bumpUntil("'"))
3023
- return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
3029
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
3024
3030
  this.bump();
3025
3031
  break;
3026
3032
  }
@@ -3050,16 +3056,16 @@ var Cn = (
3050
3056
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3051
3057
  var n = [];
3052
3058
  try {
3053
- n = fn(t);
3059
+ n = dn(t);
3054
3060
  } catch (i) {
3055
- return this.error(p.INVALID_NUMBER_SKELETON, r);
3061
+ return this.error(b.INVALID_NUMBER_SKELETON, r);
3056
3062
  }
3057
3063
  return {
3058
3064
  val: {
3059
- type: X.number,
3065
+ type: W.number,
3060
3066
  tokens: n,
3061
3067
  location: r,
3062
- parsedOptions: this.shouldParseSkeletons ? pn(n) : {}
3068
+ parsedOptions: this.shouldParseSkeletons ? yn(n) : {}
3063
3069
  },
3064
3070
  err: null
3065
3071
  };
@@ -3068,7 +3074,7 @@ var Cn = (
3068
3074
  if (u.length === 0) {
3069
3075
  var f = this.clonePosition();
3070
3076
  if (r !== "select" && this.bumpIf("=")) {
3071
- var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
3077
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3072
3078
  if (c.err)
3073
3079
  return c;
3074
3080
  h = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
@@ -3076,26 +3082,26 @@ var Cn = (
3076
3082
  break;
3077
3083
  }
3078
3084
  if (l.has(u))
3079
- return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3085
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3080
3086
  u === "other" && (s = !0), this.bumpSpace();
3081
3087
  var y = this.clonePosition();
3082
3088
  if (!this.bumpIf("{"))
3083
- return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
3084
- var b = this.parseMessage(t + 1, r, n);
3085
- if (b.err)
3086
- return b;
3087
- var v = this.tryParseArgumentClose(y);
3088
- if (v.err)
3089
- return v;
3089
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
3090
+ var p = this.parseMessage(t + 1, r, n);
3091
+ if (p.err)
3092
+ return p;
3093
+ var E = this.tryParseArgumentClose(y);
3094
+ if (E.err)
3095
+ return E;
3090
3096
  a.push([
3091
3097
  u,
3092
3098
  {
3093
- value: b.val,
3099
+ value: p.val,
3094
3100
  location: g(y, this.clonePosition())
3095
3101
  }
3096
3102
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3097
3103
  }
3098
- return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3104
+ return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3099
3105
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3100
3106
  var n = 1, i = this.clonePosition();
3101
3107
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3107,7 +3113,7 @@ var Cn = (
3107
3113
  break;
3108
3114
  }
3109
3115
  var l = g(i, this.clonePosition());
3110
- return o ? (s *= n, An(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3116
+ return o ? (s *= n, On(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3111
3117
  }, e.prototype.offset = function() {
3112
3118
  return this.position.offset;
3113
3119
  }, e.prototype.isEOF = function() {
@@ -3122,7 +3128,7 @@ var Cn = (
3122
3128
  var t = this.position.offset;
3123
3129
  if (t >= this.message.length)
3124
3130
  throw Error("out of bound");
3125
- var r = Vt(this.message, t);
3131
+ var r = Wt(this.message, t);
3126
3132
  if (r === void 0)
3127
3133
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3128
3134
  return r;
@@ -3141,7 +3147,7 @@ var Cn = (
3141
3147
  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);
3142
3148
  }
3143
3149
  }, e.prototype.bumpIf = function(t) {
3144
- if (lt(this.message, t, this.offset())) {
3150
+ if (ct(this.message, t, this.offset())) {
3145
3151
  for (var r = 0; r < t.length; r++)
3146
3152
  this.bump();
3147
3153
  return !0;
@@ -3163,7 +3169,7 @@ var Cn = (
3163
3169
  break;
3164
3170
  }
3165
3171
  }, e.prototype.bumpSpace = function() {
3166
- for (; !this.isEOF() && Wt(this.char()); )
3172
+ for (; !this.isEOF() && Jt(this.char()); )
3167
3173
  this.bump();
3168
3174
  }, e.prototype.peek = function() {
3169
3175
  if (this.isEOF())
@@ -3173,47 +3179,47 @@ var Cn = (
3173
3179
  }, e;
3174
3180
  }()
3175
3181
  );
3176
- function je(e) {
3182
+ function Ve(e) {
3177
3183
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3178
3184
  }
3179
- function Nn(e) {
3180
- return je(e) || e === 47;
3185
+ function Mn(e) {
3186
+ return Ve(e) || e === 47;
3181
3187
  }
3182
- function Ln(e) {
3188
+ function $n(e) {
3183
3189
  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;
3184
3190
  }
3185
- function Wt(e) {
3191
+ function Jt(e) {
3186
3192
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3187
3193
  }
3188
- function Mn(e) {
3194
+ function Rn(e) {
3189
3195
  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;
3190
3196
  }
3191
- function ze(e) {
3197
+ function Xe(e) {
3192
3198
  e.forEach(function(t) {
3193
- if (delete t.location, Rt(t) || Dt(t))
3199
+ if (delete t.location, Ut(t) || Gt(t))
3194
3200
  for (var r in t.options)
3195
- delete t.options[r].location, ze(t.options[r].value);
3201
+ delete t.options[r].location, Xe(t.options[r].value);
3196
3202
  else
3197
- Lt(t) && Gt(t.style) || (Mt(t) || $t(t)) && Ue(t.style) ? delete t.style.location : Ut(t) && ze(t.children);
3203
+ $t(t) && Ft(t.style) || (Rt(t) || Dt(t)) && ke(t.style) ? delete t.style.location : kt(t) && Xe(t.children);
3198
3204
  });
3199
3205
  }
3200
- function $n(e, t) {
3201
- t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3202
- var r = new Cn(e, t).parse();
3206
+ function Dn(e, t) {
3207
+ t === void 0 && (t = {}), t = Ee({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3208
+ var r = new Ln(e, t).parse();
3203
3209
  if (r.err) {
3204
- var n = SyntaxError(p[r.err.kind]);
3210
+ var n = SyntaxError(b[r.err.kind]);
3205
3211
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3206
3212
  }
3207
- return t != null && t.captureLocation || ze(r.val), r.val;
3213
+ return t != null && t.captureLocation || Xe(r.val), r.val;
3208
3214
  }
3209
- var W;
3215
+ var Z;
3210
3216
  (function(e) {
3211
3217
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3212
- })(W || (W = {}));
3213
- var He = (
3218
+ })(Z || (Z = {}));
3219
+ var Se = (
3214
3220
  /** @class */
3215
3221
  function(e) {
3216
- Te(t, e);
3222
+ we(t, e);
3217
3223
  function t(r, n, i) {
3218
3224
  var o = e.call(this, r) || this;
3219
3225
  return o.code = n, o.originalMessage = i, o;
@@ -3222,48 +3228,48 @@ var He = (
3222
3228
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3223
3229
  }, t;
3224
3230
  }(Error)
3225
- ), ft = (
3231
+ ), dt = (
3226
3232
  /** @class */
3227
3233
  function(e) {
3228
- Te(t, e);
3234
+ we(t, e);
3229
3235
  function t(r, n, i, o) {
3230
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
3236
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
3231
3237
  }
3232
3238
  return t;
3233
- }(He)
3234
- ), Rn = (
3239
+ }(Se)
3240
+ ), Un = (
3235
3241
  /** @class */
3236
3242
  function(e) {
3237
- Te(t, e);
3243
+ we(t, e);
3238
3244
  function t(r, n, i) {
3239
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
3245
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
3240
3246
  }
3241
3247
  return t;
3242
- }(He)
3243
- ), Dn = (
3248
+ }(Se)
3249
+ ), Gn = (
3244
3250
  /** @class */
3245
3251
  function(e) {
3246
- Te(t, e);
3252
+ we(t, e);
3247
3253
  function t(r, n) {
3248
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
3254
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
3249
3255
  }
3250
3256
  return t;
3251
- }(He)
3257
+ }(Se)
3252
3258
  ), H;
3253
3259
  (function(e) {
3254
3260
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3255
3261
  })(H || (H = {}));
3256
- function Un(e) {
3262
+ function kn(e) {
3257
3263
  return e.length < 2 ? e : e.reduce(function(t, r) {
3258
3264
  var n = t[t.length - 1];
3259
3265
  return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
3260
3266
  }, []);
3261
3267
  }
3262
- function Gn(e) {
3268
+ function Fn(e) {
3263
3269
  return typeof e == "function";
3264
3270
  }
3265
- function ge(e, t, r, n, i, o, s) {
3266
- if (e.length === 1 && ot(e[0]))
3271
+ function ye(e, t, r, n, i, o, s) {
3272
+ if (e.length === 1 && at(e[0]))
3267
3273
  return [
3268
3274
  {
3269
3275
  type: H.literal,
@@ -3272,14 +3278,14 @@ function ge(e, t, r, n, i, o, s) {
3272
3278
  ];
3273
3279
  for (var a = [], l = 0, u = e; l < u.length; l++) {
3274
3280
  var h = u[l];
3275
- if (ot(h)) {
3281
+ if (at(h)) {
3276
3282
  a.push({
3277
3283
  type: H.literal,
3278
3284
  value: h.value
3279
3285
  });
3280
3286
  continue;
3281
3287
  }
3282
- if (un(h)) {
3288
+ if (hn(h)) {
3283
3289
  typeof o == "number" && a.push({
3284
3290
  type: H.literal,
3285
3291
  value: r.getNumberFormat(t).format(o)
@@ -3288,89 +3294,89 @@ function ge(e, t, r, n, i, o, s) {
3288
3294
  }
3289
3295
  var f = h.value;
3290
3296
  if (!(i && f in i))
3291
- throw new Dn(f, s);
3297
+ throw new Gn(f, s);
3292
3298
  var c = i[f];
3293
- if (an(h)) {
3299
+ if (ln(h)) {
3294
3300
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3295
3301
  type: typeof c == "string" ? H.literal : H.object,
3296
3302
  value: c
3297
3303
  });
3298
3304
  continue;
3299
3305
  }
3300
- if (Mt(h)) {
3301
- var y = typeof h.style == "string" ? n.date[h.style] : Ue(h.style) ? h.style.parsedOptions : void 0;
3306
+ if (Rt(h)) {
3307
+ var y = typeof h.style == "string" ? n.date[h.style] : ke(h.style) ? h.style.parsedOptions : void 0;
3302
3308
  a.push({
3303
3309
  type: H.literal,
3304
3310
  value: r.getDateTimeFormat(t, y).format(c)
3305
3311
  });
3306
3312
  continue;
3307
3313
  }
3308
- if ($t(h)) {
3309
- var y = typeof h.style == "string" ? n.time[h.style] : Ue(h.style) ? h.style.parsedOptions : n.time.medium;
3314
+ if (Dt(h)) {
3315
+ var y = typeof h.style == "string" ? n.time[h.style] : ke(h.style) ? h.style.parsedOptions : n.time.medium;
3310
3316
  a.push({
3311
3317
  type: H.literal,
3312
3318
  value: r.getDateTimeFormat(t, y).format(c)
3313
3319
  });
3314
3320
  continue;
3315
3321
  }
3316
- if (Lt(h)) {
3317
- var y = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
3322
+ if ($t(h)) {
3323
+ var y = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
3318
3324
  y && y.scale && (c = c * (y.scale || 1)), a.push({
3319
3325
  type: H.literal,
3320
3326
  value: r.getNumberFormat(t, y).format(c)
3321
3327
  });
3322
3328
  continue;
3323
3329
  }
3324
- if (Ut(h)) {
3325
- var b = h.children, v = h.value, E = i[v];
3326
- if (!Gn(E))
3327
- throw new Rn(v, "function", s);
3328
- var m = ge(b, t, r, n, i, o), x = E(m.map(function(S) {
3329
- return S.value;
3330
+ if (kt(h)) {
3331
+ var p = h.children, E = h.value, _ = i[E];
3332
+ if (!Fn(_))
3333
+ throw new Un(E, "function", s);
3334
+ var m = ye(p, t, r, n, i, o), v = _(m.map(function(B) {
3335
+ return B.value;
3330
3336
  }));
3331
- Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(S) {
3337
+ Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(B) {
3332
3338
  return {
3333
- type: typeof S == "string" ? H.literal : H.object,
3334
- value: S
3339
+ type: typeof B == "string" ? H.literal : H.object,
3340
+ value: B
3335
3341
  };
3336
3342
  }));
3337
3343
  }
3338
- if (Rt(h)) {
3344
+ if (Ut(h)) {
3339
3345
  var d = h.options[c] || h.options.other;
3340
3346
  if (!d)
3341
- throw new ft(h.value, c, Object.keys(h.options), s);
3342
- a.push.apply(a, ge(d.value, t, r, n, i));
3347
+ throw new dt(h.value, c, Object.keys(h.options), s);
3348
+ a.push.apply(a, ye(d.value, t, r, n, i));
3343
3349
  continue;
3344
3350
  }
3345
- if (Dt(h)) {
3351
+ if (Gt(h)) {
3346
3352
  var d = h.options["=".concat(c)];
3347
3353
  if (!d) {
3348
3354
  if (!Intl.PluralRules)
3349
- throw new He(`Intl.PluralRules is not available in this environment.
3355
+ throw new Se(`Intl.PluralRules is not available in this environment.
3350
3356
  Try polyfilling it using "@formatjs/intl-pluralrules"
3351
- `, W.MISSING_INTL_API, s);
3352
- var B = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3353
- d = h.options[B] || h.options.other;
3357
+ `, Z.MISSING_INTL_API, s);
3358
+ var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3359
+ d = h.options[w] || h.options.other;
3354
3360
  }
3355
3361
  if (!d)
3356
- throw new ft(h.value, c, Object.keys(h.options), s);
3357
- a.push.apply(a, ge(d.value, t, r, n, i, c - (h.offset || 0)));
3362
+ throw new dt(h.value, c, Object.keys(h.options), s);
3363
+ a.push.apply(a, ye(d.value, t, r, n, i, c - (h.offset || 0)));
3358
3364
  continue;
3359
3365
  }
3360
3366
  }
3361
- return Un(a);
3367
+ return kn(a);
3362
3368
  }
3363
- function kn(e, t) {
3364
- return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3365
- return r[n] = _(_({}, e[n]), t[n] || {}), r;
3369
+ function jn(e, t) {
3370
+ return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3371
+ return r[n] = P(P({}, e[n]), t[n] || {}), r;
3366
3372
  }, {})) : e;
3367
3373
  }
3368
- function Fn(e, t) {
3374
+ function zn(e, t) {
3369
3375
  return t ? Object.keys(e).reduce(function(r, n) {
3370
- return r[n] = kn(e[n], t[n]), r;
3371
- }, _({}, e)) : e;
3376
+ return r[n] = jn(e[n], t[n]), r;
3377
+ }, P({}, e)) : e;
3372
3378
  }
3373
- function Ne(e) {
3379
+ function Me(e) {
3374
3380
  return {
3375
3381
  create: function() {
3376
3382
  return {
@@ -3384,39 +3390,39 @@ function Ne(e) {
3384
3390
  }
3385
3391
  };
3386
3392
  }
3387
- function jn(e) {
3393
+ function Vn(e) {
3388
3394
  return e === void 0 && (e = {
3389
3395
  number: {},
3390
3396
  dateTime: {},
3391
3397
  pluralRules: {}
3392
3398
  }), {
3393
- getNumberFormat: Oe(function() {
3399
+ getNumberFormat: Ce(function() {
3394
3400
  for (var t, r = [], n = 0; n < arguments.length; n++)
3395
3401
  r[n] = arguments[n];
3396
- return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
3402
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
3397
3403
  }, {
3398
- cache: Ne(e.number),
3399
- strategy: Ie.variadic
3404
+ cache: Me(e.number),
3405
+ strategy: Ne.variadic
3400
3406
  }),
3401
- getDateTimeFormat: Oe(function() {
3407
+ getDateTimeFormat: Ce(function() {
3402
3408
  for (var t, r = [], n = 0; n < arguments.length; n++)
3403
3409
  r[n] = arguments[n];
3404
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
3410
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
3405
3411
  }, {
3406
- cache: Ne(e.dateTime),
3407
- strategy: Ie.variadic
3412
+ cache: Me(e.dateTime),
3413
+ strategy: Ne.variadic
3408
3414
  }),
3409
- getPluralRules: Oe(function() {
3415
+ getPluralRules: Ce(function() {
3410
3416
  for (var t, r = [], n = 0; n < arguments.length; n++)
3411
3417
  r[n] = arguments[n];
3412
- return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
3418
+ return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
3413
3419
  }, {
3414
- cache: Ne(e.pluralRules),
3415
- strategy: Ie.variadic
3420
+ cache: Me(e.pluralRules),
3421
+ strategy: Ne.variadic
3416
3422
  })
3417
3423
  };
3418
3424
  }
3419
- var Zt = (
3425
+ var qt = (
3420
3426
  /** @class */
3421
3427
  function() {
3422
3428
  function e(t, r, n, i) {
@@ -3435,7 +3441,7 @@ var Zt = (
3435
3441
  }, []);
3436
3442
  return h.length <= 1 ? h[0] || "" : h;
3437
3443
  }, this.formatToParts = function(l) {
3438
- return ge(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3444
+ return ye(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3439
3445
  }, this.resolvedOptions = function() {
3440
3446
  var l;
3441
3447
  return {
@@ -3448,13 +3454,13 @@ var Zt = (
3448
3454
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3449
3455
  var s = i || {};
3450
3456
  s.formatters;
3451
- var a = Yr(s, ["formatters"]);
3452
- this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
3457
+ var a = en(s, ["formatters"]);
3458
+ this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
3453
3459
  } else
3454
3460
  this.ast = t;
3455
3461
  if (!Array.isArray(this.ast))
3456
3462
  throw new TypeError("A message must be provided as a String or AST.");
3457
- this.formats = Fn(e.formats, n), this.formatters = i && i.formatters || jn(this.formatterCache);
3463
+ this.formats = zn(e.formats, n), this.formatters = i && i.formatters || Vn(this.formatterCache);
3458
3464
  }
3459
3465
  return Object.defineProperty(e, "defaultLocale", {
3460
3466
  get: function() {
@@ -3467,7 +3473,7 @@ var Zt = (
3467
3473
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3468
3474
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3469
3475
  }
3470
- }, e.__parse = $n, e.formats = {
3476
+ }, e.__parse = Dn, e.formats = {
3471
3477
  number: {
3472
3478
  integer: {
3473
3479
  maximumFractionDigits: 0
@@ -3528,7 +3534,7 @@ var Zt = (
3528
3534
  }, e;
3529
3535
  }()
3530
3536
  );
3531
- function zn(e, t) {
3537
+ function Xn(e, t) {
3532
3538
  if (t == null)
3533
3539
  return;
3534
3540
  if (t in e)
@@ -3549,101 +3555,101 @@ function zn(e, t) {
3549
3555
  n = void 0;
3550
3556
  return n;
3551
3557
  }
3552
- const N = {}, Vn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Jt = (e, t) => {
3558
+ const L = {}, Wn = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), Qt = (e, t) => {
3553
3559
  if (t == null)
3554
3560
  return;
3555
- if (t in N && e in N[t])
3556
- return N[t][e];
3557
- const r = se(t);
3561
+ if (t in L && e in L[t])
3562
+ return L[t][e];
3563
+ const r = ae(t);
3558
3564
  for (let n = 0; n < r.length; n++) {
3559
- const i = r[n], o = Wn(i, e);
3565
+ const i = r[n], o = Jn(i, e);
3560
3566
  if (o)
3561
- return Vn(e, t, o);
3567
+ return Wn(e, t, o);
3562
3568
  }
3563
3569
  };
3564
- let Ze;
3565
- const oe = xe({});
3566
- function Xn(e) {
3567
- return Ze[e] || null;
3570
+ let qe;
3571
+ const se = He({});
3572
+ function Zn(e) {
3573
+ return qe[e] || null;
3568
3574
  }
3569
- function qt(e) {
3570
- return e in Ze;
3575
+ function Yt(e) {
3576
+ return e in qe;
3571
3577
  }
3572
- function Wn(e, t) {
3573
- if (!qt(e))
3578
+ function Jn(e, t) {
3579
+ if (!Yt(e))
3574
3580
  return null;
3575
- const r = Xn(e);
3576
- return zn(r, t);
3581
+ const r = Zn(e);
3582
+ return Xn(r, t);
3577
3583
  }
3578
- function Zn(e) {
3584
+ function qn(e) {
3579
3585
  if (e == null)
3580
3586
  return;
3581
- const t = se(e);
3587
+ const t = ae(e);
3582
3588
  for (let r = 0; r < t.length; r++) {
3583
3589
  const n = t[r];
3584
- if (qt(n))
3590
+ if (Yt(n))
3585
3591
  return n;
3586
3592
  }
3587
3593
  }
3588
- function Qt(e, ...t) {
3589
- delete N[e], oe.update((r) => (r[e] = Qr.all([r[e] || {}, ...t]), r));
3594
+ function Kt(e, ...t) {
3595
+ delete L[e], se.update((r) => (r[e] = Kr.all([r[e] || {}, ...t]), r));
3590
3596
  }
3591
- q(
3592
- [oe],
3597
+ Q(
3598
+ [se],
3593
3599
  ([e]) => Object.keys(e)
3594
3600
  );
3595
- oe.subscribe((e) => Ze = e);
3596
- const ye = {};
3597
- function Jn(e, t) {
3598
- ye[e].delete(t), ye[e].size === 0 && delete ye[e];
3601
+ se.subscribe((e) => qe = e);
3602
+ const _e = {};
3603
+ function Qn(e, t) {
3604
+ _e[e].delete(t), _e[e].size === 0 && delete _e[e];
3599
3605
  }
3600
- function Yt(e) {
3601
- return ye[e];
3606
+ function er(e) {
3607
+ return _e[e];
3602
3608
  }
3603
- function qn(e) {
3604
- return se(e).map((t) => {
3605
- const r = Yt(t);
3609
+ function Yn(e) {
3610
+ return ae(e).map((t) => {
3611
+ const r = er(t);
3606
3612
  return [t, r ? [...r] : []];
3607
3613
  }).filter(([, t]) => t.length > 0);
3608
3614
  }
3609
- function _e(e) {
3610
- return e == null ? !1 : se(e).some(
3615
+ function ve(e) {
3616
+ return e == null ? !1 : ae(e).some(
3611
3617
  (t) => {
3612
3618
  var r;
3613
- return (r = Yt(t)) == null ? void 0 : r.size;
3619
+ return (r = er(t)) == null ? void 0 : r.size;
3614
3620
  }
3615
3621
  );
3616
3622
  }
3617
- function Qn(e, t) {
3623
+ function Kn(e, t) {
3618
3624
  return Promise.all(
3619
- t.map((n) => (Jn(e, n), n().then((i) => i.default || i)))
3620
- ).then((n) => Qt(e, ...n));
3621
- }
3622
- const Y = {};
3623
- function Kt(e) {
3624
- if (!_e(e))
3625
- return e in Y ? Y[e] : Promise.resolve();
3626
- const t = qn(e);
3627
- return Y[e] = Promise.all(
3625
+ t.map((n) => (Qn(e, n), n().then((i) => i.default || i)))
3626
+ ).then((n) => Kt(e, ...n));
3627
+ }
3628
+ const K = {};
3629
+ function tr(e) {
3630
+ if (!ve(e))
3631
+ return e in K ? K[e] : Promise.resolve();
3632
+ const t = Yn(e);
3633
+ return K[e] = Promise.all(
3628
3634
  t.map(
3629
- ([r, n]) => Qn(r, n)
3635
+ ([r, n]) => Kn(r, n)
3630
3636
  )
3631
3637
  ).then(() => {
3632
- if (_e(e))
3633
- return Kt(e);
3634
- delete Y[e];
3635
- }), Y[e];
3638
+ if (ve(e))
3639
+ return tr(e);
3640
+ delete K[e];
3641
+ }), K[e];
3636
3642
  }
3637
- var mt = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, ei = (e, t) => {
3643
+ var pt = Object.getOwnPropertySymbols, ei = Object.prototype.hasOwnProperty, ti = Object.prototype.propertyIsEnumerable, ri = (e, t) => {
3638
3644
  var r = {};
3639
3645
  for (var n in e)
3640
- Yn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3641
- if (e != null && mt)
3642
- for (var n of mt(e))
3643
- t.indexOf(n) < 0 && Kn.call(e, n) && (r[n] = e[n]);
3646
+ ei.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3647
+ if (e != null && pt)
3648
+ for (var n of pt(e))
3649
+ t.indexOf(n) < 0 && ti.call(e, n) && (r[n] = e[n]);
3644
3650
  return r;
3645
3651
  };
3646
- const ti = {
3652
+ const ni = {
3647
3653
  number: {
3648
3654
  scientific: { notation: "scientific" },
3649
3655
  engineering: { notation: "engineering" },
@@ -3673,81 +3679,81 @@ const ti = {
3673
3679
  }
3674
3680
  }
3675
3681
  };
3676
- function ri({ locale: e, id: t }) {
3682
+ function ii({ locale: e, id: t }) {
3677
3683
  console.warn(
3678
- `[svelte-i18n] The message "${t}" was not found in "${se(
3684
+ `[svelte-i18n] The message "${t}" was not found in "${ae(
3679
3685
  e
3680
- ).join('", "')}".${_e(M()) ? `
3686
+ ).join('", "')}".${ve($()) ? `
3681
3687
 
3682
3688
  Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
3683
3689
  );
3684
3690
  }
3685
- const ni = {
3691
+ const oi = {
3686
3692
  fallbackLocale: null,
3687
3693
  loadingDelay: 200,
3688
- formats: ti,
3694
+ formats: ni,
3689
3695
  warnOnMissingMessages: !0,
3690
3696
  handleMissingMessage: void 0,
3691
3697
  ignoreTag: !0
3692
- }, K = ni;
3693
- function Z() {
3694
- return K;
3698
+ }, ee = oi;
3699
+ function J() {
3700
+ return ee;
3695
3701
  }
3696
- function ii(e) {
3697
- const t = e, { formats: r } = t, n = ei(t, ["formats"]);
3702
+ function si(e) {
3703
+ const t = e, { formats: r } = t, n = ri(t, ["formats"]);
3698
3704
  let i = e.fallbackLocale;
3699
3705
  if (e.initialLocale)
3700
3706
  try {
3701
- Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3707
+ qt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
3702
3708
  } catch (o) {
3703
3709
  console.warn(
3704
3710
  `[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
3705
3711
  );
3706
3712
  }
3707
- return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ri : console.warn(
3713
+ return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ii : console.warn(
3708
3714
  '[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
3709
- )), Object.assign(K, n, { initialLocale: i }), r && ("number" in r && Object.assign(K.formats.number, r.number), "date" in r && Object.assign(K.formats.date, r.date), "time" in r && Object.assign(K.formats.time, r.time)), U.set(i);
3715
+ )), Object.assign(ee, n, { initialLocale: i }), r && ("number" in r && Object.assign(ee.formats.number, r.number), "date" in r && Object.assign(ee.formats.date, r.date), "time" in r && Object.assign(ee.formats.time, r.time)), G.set(i);
3710
3716
  }
3711
- const Le = xe(!1);
3712
- var oi = Object.defineProperty, si = Object.defineProperties, ai = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, li = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
3717
+ const $e = He(!1);
3718
+ var ai = Object.defineProperty, ui = Object.defineProperties, li = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, hi = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fi = (e, t) => {
3713
3719
  for (var r in t || (t = {}))
3714
- ui.call(t, r) && bt(e, r, t[r]);
3715
- if (dt)
3716
- for (var r of dt(t))
3717
- li.call(t, r) && bt(e, r, t[r]);
3720
+ hi.call(t, r) && gt(e, r, t[r]);
3721
+ if (bt)
3722
+ for (var r of bt(t))
3723
+ ci.call(t, r) && gt(e, r, t[r]);
3718
3724
  return e;
3719
- }, ci = (e, t) => si(e, ai(t));
3720
- let Ve;
3721
- const Ee = xe(null);
3722
- function pt(e) {
3725
+ }, mi = (e, t) => ui(e, li(t));
3726
+ let We;
3727
+ const xe = He(null);
3728
+ function yt(e) {
3723
3729
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3724
3730
  }
3725
- function se(e, t = Z().fallbackLocale) {
3726
- const r = pt(e);
3727
- return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
3731
+ function ae(e, t = J().fallbackLocale) {
3732
+ const r = yt(e);
3733
+ return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
3728
3734
  }
3729
- function M() {
3730
- return Ve != null ? Ve : void 0;
3735
+ function $() {
3736
+ return We != null ? We : void 0;
3731
3737
  }
3732
- Ee.subscribe((e) => {
3733
- Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3738
+ xe.subscribe((e) => {
3739
+ We = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3734
3740
  });
3735
- const fi = (e) => {
3736
- if (e && Zn(e) && _e(e)) {
3737
- const { loadingDelay: t } = Z();
3741
+ const di = (e) => {
3742
+ if (e && qn(e) && ve(e)) {
3743
+ const { loadingDelay: t } = J();
3738
3744
  let r;
3739
- return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
3740
- () => Le.set(!0),
3745
+ return typeof window != "undefined" && $() != null && t ? r = window.setTimeout(
3746
+ () => $e.set(!0),
3741
3747
  t
3742
- ) : Le.set(!0), Kt(e).then(() => {
3743
- Ee.set(e);
3748
+ ) : $e.set(!0), tr(e).then(() => {
3749
+ xe.set(e);
3744
3750
  }).finally(() => {
3745
- clearTimeout(r), Le.set(!1);
3751
+ clearTimeout(r), $e.set(!1);
3746
3752
  });
3747
3753
  }
3748
- return Ee.set(e);
3749
- }, U = ci(hi({}, Ee), {
3750
- set: fi
3754
+ return xe.set(e);
3755
+ }, G = mi(fi({}, xe), {
3756
+ set: di
3751
3757
  }), Be = (e) => {
3752
3758
  const t = /* @__PURE__ */ Object.create(null);
3753
3759
  return (n) => {
@@ -3755,92 +3761,92 @@ const fi = (e) => {
3755
3761
  return i in t ? t[i] : t[i] = e(n);
3756
3762
  };
3757
3763
  };
3758
- var mi = Object.defineProperty, ve = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
3764
+ var pi = Object.defineProperty, Te = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3759
3765
  for (var r in t || (t = {}))
3760
- er.call(t, r) && gt(e, r, t[r]);
3761
- if (ve)
3762
- for (var r of ve(t))
3763
- tr.call(t, r) && gt(e, r, t[r]);
3766
+ rr.call(t, r) && _t(e, r, t[r]);
3767
+ if (Te)
3768
+ for (var r of Te(t))
3769
+ nr.call(t, r) && _t(e, r, t[r]);
3764
3770
  return e;
3765
- }, Q = (e, t) => {
3771
+ }, Y = (e, t) => {
3766
3772
  var r = {};
3767
3773
  for (var n in e)
3768
- er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3769
- if (e != null && ve)
3770
- for (var n of ve(e))
3771
- t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
3774
+ rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3775
+ if (e != null && Te)
3776
+ for (var n of Te(e))
3777
+ t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
3772
3778
  return r;
3773
3779
  };
3774
- const ne = (e, t) => {
3775
- const { formats: r } = Z();
3780
+ const ie = (e, t) => {
3781
+ const { formats: r } = J();
3776
3782
  if (e in r && t in r[e])
3777
3783
  return r[e][t];
3778
3784
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3779
- }, di = Be(
3785
+ }, bi = Be(
3780
3786
  (e) => {
3781
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3787
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
3782
3788
  if (r == null)
3783
3789
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3784
- return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
3790
+ return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
3785
3791
  }
3786
- ), bi = Be(
3792
+ ), gi = Be(
3787
3793
  (e) => {
3788
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3794
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
3789
3795
  if (r == null)
3790
3796
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3791
- return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
3797
+ return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
3792
3798
  }
3793
- ), pi = Be(
3799
+ ), yi = Be(
3794
3800
  (e) => {
3795
- var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
3801
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
3796
3802
  if (r == null)
3797
3803
  throw new Error(
3798
3804
  '[svelte-i18n] A "locale" must be set to format time values'
3799
3805
  );
3800
- return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
3806
+ return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
3801
3807
  }
3802
- ), gi = (e = {}) => {
3808
+ ), _i = (e = {}) => {
3803
3809
  var t = e, {
3804
- locale: r = M()
3805
- } = t, n = Q(t, [
3810
+ locale: r = $()
3811
+ } = t, n = Y(t, [
3806
3812
  "locale"
3807
3813
  ]);
3808
- return di(Je({ locale: r }, n));
3809
- }, yi = (e = {}) => {
3814
+ return bi(Qe({ locale: r }, n));
3815
+ }, Ei = (e = {}) => {
3810
3816
  var t = e, {
3811
- locale: r = M()
3812
- } = t, n = Q(t, [
3817
+ locale: r = $()
3818
+ } = t, n = Y(t, [
3813
3819
  "locale"
3814
3820
  ]);
3815
- return bi(Je({ locale: r }, n));
3816
- }, _i = (e = {}) => {
3821
+ return gi(Qe({ locale: r }, n));
3822
+ }, vi = (e = {}) => {
3817
3823
  var t = e, {
3818
- locale: r = M()
3819
- } = t, n = Q(t, [
3824
+ locale: r = $()
3825
+ } = t, n = Y(t, [
3820
3826
  "locale"
3821
3827
  ]);
3822
- return pi(Je({ locale: r }, n));
3823
- }, Ei = Be(
3828
+ return yi(Qe({ locale: r }, n));
3829
+ }, xi = Be(
3824
3830
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3825
- (e, t = M()) => new Zt(e, t, Z().formats, {
3826
- ignoreTag: Z().ignoreTag
3831
+ (e, t = $()) => new qt(e, t, J().formats, {
3832
+ ignoreTag: J().ignoreTag
3827
3833
  })
3828
- ), vi = (e, t = {}) => {
3834
+ ), Ti = (e, t = {}) => {
3829
3835
  var r, n, i, o;
3830
3836
  let s = t;
3831
3837
  typeof e == "object" && (s = e, e = s.id);
3832
3838
  const {
3833
3839
  values: a,
3834
- locale: l = M(),
3840
+ locale: l = $(),
3835
3841
  default: u
3836
3842
  } = s;
3837
3843
  if (l == null)
3838
3844
  throw new Error(
3839
3845
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3840
3846
  );
3841
- let h = Jt(e, l);
3847
+ let h = Qt(e, l);
3842
3848
  if (!h)
3843
- h = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3849
+ h = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3844
3850
  else if (typeof h != "string")
3845
3851
  return console.warn(
3846
3852
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3849,7 +3855,7 @@ const ne = (e, t) => {
3849
3855
  return h;
3850
3856
  let f = h;
3851
3857
  try {
3852
- f = Ei(h, l).format(a);
3858
+ f = xi(h, l).format(a);
3853
3859
  } catch (c) {
3854
3860
  c instanceof Error && console.warn(
3855
3861
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3857,20 +3863,20 @@ const ne = (e, t) => {
3857
3863
  );
3858
3864
  }
3859
3865
  return f;
3860
- }, xi = (e, t) => _i(t).format(e), Ti = (e, t) => yi(t).format(e), Hi = (e, t) => gi(t).format(e), Bi = (e, t = M()) => Jt(e, t), wi = q([U, oe], () => vi);
3861
- q([U], () => xi);
3862
- q([U], () => Ti);
3863
- q([U], () => Hi);
3864
- q([U, oe], () => Bi);
3865
- function yt(e, t) {
3866
- Qt(e, t);
3867
- }
3868
- function Si(e) {
3869
- ii({
3866
+ }, Hi = (e, t) => vi(t).format(e), wi = (e, t) => Ei(t).format(e), Si = (e, t) => _i(t).format(e), Bi = (e, t = $()) => Qt(e, t), Ai = Q([G, se], () => Ti);
3867
+ Q([G], () => Hi);
3868
+ Q([G], () => wi);
3869
+ Q([G], () => Si);
3870
+ Q([G, se], () => Bi);
3871
+ function Et(e, t) {
3872
+ Kt(e, t);
3873
+ }
3874
+ function Pi(e) {
3875
+ si({
3870
3876
  fallbackLocale: "en"
3871
- }), U.set(e);
3877
+ }), G.set(e);
3872
3878
  }
3873
- const _t = {
3879
+ const vt = {
3874
3880
  en: {
3875
3881
  errorGeneralTitle: "Error Occurred",
3876
3882
  errorGeneralText: "Something went wrong",
@@ -3924,74 +3930,74 @@ const _t = {
3924
3930
  DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin."
3925
3931
  }
3926
3932
  };
3927
- function Ai(e) {
3928
- hr(e, "svelte-1dt5wyw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;border-radius:10px;border:1px solid var(--emw--color-grey-105, #E8E9EB);background-color:var(--emw--color-white, #ffffff);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-black, #000);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-gray-290, #666);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-white, #fff);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, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorContent ui-image img{width:300px}");
3933
+ function Oi(e) {
3934
+ fr(e, "svelte-1dt5wyw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;border-radius:10px;border:1px solid var(--emw--color-grey-105, #E8E9EB);background-color:var(--emw--color-white, #ffffff);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-black, #000);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-gray-290, #666);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-white, #fff);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, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorContent ui-image img{width:300px}");
3929
3935
  }
3930
- const Pi = (e) => ({}), Et = (e) => ({}), Oi = (e) => ({}), vt = (e) => ({}), Ii = (e) => ({}), xt = (e) => ({}), Ci = (e) => ({}), Tt = (e) => ({ class: "CashierErrorIcon" });
3931
- function Ht(e) {
3936
+ const Ii = (e) => ({}), xt = (e) => ({}), Ci = (e) => ({}), Tt = (e) => ({}), Ni = (e) => ({}), Ht = (e) => ({}), Li = (e) => ({}), wt = (e) => ({ class: "CashierErrorIcon" });
3937
+ function St(e) {
3932
3938
  let t, r;
3933
3939
  return {
3934
3940
  c() {
3935
- t = I("ui-image"), rt(t.src, r = `${/*assetsurl*/
3936
- e[0]}/error-general-icon.png`) || le(t, "src", r), le(t, "width", "300px"), le(t, "alt", "error");
3941
+ t = C("ui-image"), it(t.src, r = `${/*assetsurl*/
3942
+ e[0]}/error-general-icon.png`) || he(t, "src", r), he(t, "width", "300px"), he(t, "alt", "error");
3937
3943
  },
3938
3944
  m(n, i) {
3939
- D(n, t, i);
3945
+ U(n, t, i);
3940
3946
  },
3941
3947
  p(n, i) {
3942
3948
  i & /*assetsurl*/
3943
- 1 && !rt(t.src, r = `${/*assetsurl*/
3944
- n[0]}/error-general-icon.png`) && le(t, "src", r);
3949
+ 1 && !it(t.src, r = `${/*assetsurl*/
3950
+ n[0]}/error-general-icon.png`) && he(t, "src", r);
3945
3951
  },
3946
3952
  d(n) {
3947
- n && L(t);
3953
+ n && M(t);
3948
3954
  }
3949
3955
  };
3950
3956
  }
3951
- function Ni(e) {
3957
+ function Mi(e) {
3952
3958
  let t, r = (
3953
3959
  /*assetsurl*/
3954
- e[0] && Ht(e)
3960
+ e[0] && St(e)
3955
3961
  );
3956
3962
  return {
3957
3963
  c() {
3958
- r && r.c(), t = mr();
3964
+ r && r.c(), t = pr();
3959
3965
  },
3960
3966
  m(n, i) {
3961
- r && r.m(n, i), D(n, t, i);
3967
+ r && r.m(n, i), U(n, t, i);
3962
3968
  },
3963
3969
  p(n, i) {
3964
3970
  /*assetsurl*/
3965
- n[0] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3971
+ n[0] ? r ? r.p(n, i) : (r = St(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3966
3972
  },
3967
3973
  d(n) {
3968
- n && L(t), r && r.d(n);
3974
+ n && M(t), r && r.d(n);
3969
3975
  }
3970
3976
  };
3971
3977
  }
3972
- function Li(e) {
3978
+ function $i(e) {
3973
3979
  let t, r = (
3974
3980
  /*$_*/
3975
3981
  e[4]("errorGeneralTitle") + ""
3976
3982
  ), n;
3977
3983
  return {
3978
3984
  c() {
3979
- t = I("span"), n = ie(r), R(t, "class", "CashierErrorTitle");
3985
+ t = C("span"), n = oe(r), D(t, "class", "CashierErrorTitle");
3980
3986
  },
3981
3987
  m(i, o) {
3982
- D(i, t, o), P(t, n);
3988
+ U(i, t, o), O(t, n);
3983
3989
  },
3984
3990
  p(i, o) {
3985
3991
  o & /*$_*/
3986
3992
  16 && r !== (r = /*$_*/
3987
- i[4]("errorGeneralTitle") + "") && We(n, r);
3993
+ i[4]("errorGeneralTitle") + "") && Je(n, r);
3988
3994
  },
3989
3995
  d(i) {
3990
- i && L(t);
3996
+ i && M(t);
3991
3997
  }
3992
3998
  };
3993
3999
  }
3994
- function Mi(e) {
4000
+ function Ri(e) {
3995
4001
  let t, r = (
3996
4002
  /*$_*/
3997
4003
  e[4](`${/*errorcode*/
@@ -3999,19 +4005,19 @@ function Mi(e) {
3999
4005
  ), n;
4000
4006
  return {
4001
4007
  c() {
4002
- t = I("span"), n = ie(r), R(t, "class", "CashierErrorText");
4008
+ t = C("span"), n = oe(r), D(t, "class", "CashierErrorText");
4003
4009
  },
4004
4010
  m(i, o) {
4005
- D(i, t, o), P(t, n);
4011
+ U(i, t, o), O(t, n);
4006
4012
  },
4007
4013
  p(i, o) {
4008
4014
  o & /*$_, errorcode*/
4009
4015
  20 && r !== (r = /*$_*/
4010
4016
  i[4](`${/*errorcode*/
4011
- i[2] || "errorGeneralText"}`) + "") && We(n, r);
4017
+ i[2] || "errorGeneralText"}`) + "") && Je(n, r);
4012
4018
  },
4013
4019
  d(i) {
4014
- i && L(t);
4020
+ i && M(t);
4015
4021
  }
4016
4022
  };
4017
4023
  }
@@ -4020,13 +4026,13 @@ function Bt(e) {
4020
4026
  const r = (
4021
4027
  /*#slots*/
4022
4028
  e[12].button
4023
- ), n = ce(
4029
+ ), n = fe(
4024
4030
  r,
4025
4031
  e,
4026
4032
  /*$$scope*/
4027
4033
  e[11],
4028
- Et
4029
- ), i = n || $i(e);
4034
+ xt
4035
+ ), i = n || Di(e);
4030
4036
  return {
4031
4037
  c() {
4032
4038
  i && i.c();
@@ -4036,48 +4042,48 @@ function Bt(e) {
4036
4042
  },
4037
4043
  p(o, s) {
4038
4044
  n ? n.p && (!t || s & /*$$scope*/
4039
- 2048) && me(
4045
+ 2048) && de(
4040
4046
  n,
4041
4047
  r,
4042
4048
  o,
4043
4049
  /*$$scope*/
4044
4050
  o[11],
4045
- t ? fe(
4051
+ t ? me(
4046
4052
  r,
4047
4053
  /*$$scope*/
4048
4054
  o[11],
4049
4055
  s,
4050
- Pi
4051
- ) : de(
4056
+ Ii
4057
+ ) : pe(
4052
4058
  /*$$scope*/
4053
4059
  o[11]
4054
4060
  ),
4055
- Et
4061
+ xt
4056
4062
  ) : i && i.p && (!t || s & /*$_*/
4057
4063
  16) && i.p(o, t ? s : -1);
4058
4064
  },
4059
4065
  i(o) {
4060
- t || (C(i, o), t = !0);
4066
+ t || (N(i, o), t = !0);
4061
4067
  },
4062
4068
  o(o) {
4063
- j(i, o), t = !1;
4069
+ z(i, o), t = !1;
4064
4070
  },
4065
4071
  d(o) {
4066
4072
  i && i.d(o);
4067
4073
  }
4068
4074
  };
4069
4075
  }
4070
- function $i(e) {
4076
+ function Di(e) {
4071
4077
  let t, r, n = (
4072
4078
  /*$_*/
4073
4079
  e[4]("errorGeneralButton") + ""
4074
4080
  ), i, o, s;
4075
4081
  return {
4076
4082
  c() {
4077
- t = I("button"), r = I("span"), i = ie(n), R(t, "class", "CashierErrorButton");
4083
+ t = C("button"), r = C("span"), i = oe(n), D(t, "class", "CashierErrorButton");
4078
4084
  },
4079
4085
  m(a, l) {
4080
- D(a, t, l), P(t, r), P(r, i), o || (s = dr(
4086
+ U(a, t, l), O(t, r), O(r, i), o || (s = br(
4081
4087
  t,
4082
4088
  "click",
4083
4089
  /*close*/
@@ -4087,171 +4093,171 @@ function $i(e) {
4087
4093
  p(a, l) {
4088
4094
  l & /*$_*/
4089
4095
  16 && n !== (n = /*$_*/
4090
- a[4]("errorGeneralButton") + "") && We(i, n);
4096
+ a[4]("errorGeneralButton") + "") && Je(i, n);
4091
4097
  },
4092
4098
  d(a) {
4093
- a && L(t), o = !1, s();
4099
+ a && M(t), o = !1, s();
4094
4100
  }
4095
4101
  };
4096
4102
  }
4097
- function Ri(e) {
4103
+ function Ui(e) {
4098
4104
  let t, r, n, i, o, s;
4099
4105
  const a = (
4100
4106
  /*#slots*/
4101
4107
  e[12].icon
4102
- ), l = ce(
4108
+ ), l = fe(
4103
4109
  a,
4104
4110
  e,
4105
4111
  /*$$scope*/
4106
4112
  e[11],
4107
- Tt
4108
- ), u = l || Ni(e), h = (
4113
+ wt
4114
+ ), u = l || Mi(e), h = (
4109
4115
  /*#slots*/
4110
4116
  e[12].title
4111
- ), f = ce(
4117
+ ), f = fe(
4112
4118
  h,
4113
4119
  e,
4114
4120
  /*$$scope*/
4115
4121
  e[11],
4116
- xt
4117
- ), c = f || Li(e), y = (
4122
+ Ht
4123
+ ), c = f || $i(e), y = (
4118
4124
  /*#slots*/
4119
4125
  e[12].text
4120
- ), b = ce(
4126
+ ), p = fe(
4121
4127
  y,
4122
4128
  e,
4123
4129
  /*$$scope*/
4124
4130
  e[11],
4125
- vt
4126
- ), v = b || Mi(e);
4127
- let E = (!/*hidebuttons*/
4131
+ Tt
4132
+ ), E = p || Ri(e);
4133
+ let _ = (!/*hidebuttons*/
4128
4134
  e[1] || /*hidebuttons*/
4129
4135
  e[1] === "false") && Bt(e);
4130
4136
  return {
4131
4137
  c() {
4132
- t = I("div"), r = I("div"), u && u.c(), n = Se(), c && c.c(), i = Se(), v && v.c(), o = Se(), E && E.c(), R(r, "class", "CashierErrorContent"), R(t, "class", "CashierError");
4138
+ t = C("div"), r = C("div"), u && u.c(), n = Pe(), c && c.c(), i = Pe(), E && E.c(), o = Pe(), _ && _.c(), D(r, "class", "CashierErrorContent"), D(t, "class", "CashierError");
4133
4139
  },
4134
- m(m, x) {
4135
- D(m, t, x), P(t, r), u && u.m(r, null), P(r, n), c && c.m(r, null), P(r, i), v && v.m(r, null), P(r, o), E && E.m(r, null), e[13](t), s = !0;
4140
+ m(m, v) {
4141
+ U(m, t, v), O(t, r), u && u.m(r, null), O(r, n), c && c.m(r, null), O(r, i), E && E.m(r, null), O(r, o), _ && _.m(r, null), e[13](t), s = !0;
4136
4142
  },
4137
- p(m, [x]) {
4138
- l ? l.p && (!s || x & /*$$scope*/
4139
- 2048) && me(
4143
+ p(m, [v]) {
4144
+ l ? l.p && (!s || v & /*$$scope*/
4145
+ 2048) && de(
4140
4146
  l,
4141
4147
  a,
4142
4148
  m,
4143
4149
  /*$$scope*/
4144
4150
  m[11],
4145
- s ? fe(
4151
+ s ? me(
4146
4152
  a,
4147
4153
  /*$$scope*/
4148
4154
  m[11],
4149
- x,
4150
- Ci
4151
- ) : de(
4155
+ v,
4156
+ Li
4157
+ ) : pe(
4152
4158
  /*$$scope*/
4153
4159
  m[11]
4154
4160
  ),
4155
- Tt
4156
- ) : u && u.p && (!s || x & /*assetsurl*/
4157
- 1) && u.p(m, s ? x : -1), f ? f.p && (!s || x & /*$$scope*/
4158
- 2048) && me(
4161
+ wt
4162
+ ) : u && u.p && (!s || v & /*assetsurl*/
4163
+ 1) && u.p(m, s ? v : -1), f ? f.p && (!s || v & /*$$scope*/
4164
+ 2048) && de(
4159
4165
  f,
4160
4166
  h,
4161
4167
  m,
4162
4168
  /*$$scope*/
4163
4169
  m[11],
4164
- s ? fe(
4170
+ s ? me(
4165
4171
  h,
4166
4172
  /*$$scope*/
4167
4173
  m[11],
4168
- x,
4169
- Ii
4170
- ) : de(
4174
+ v,
4175
+ Ni
4176
+ ) : pe(
4171
4177
  /*$$scope*/
4172
4178
  m[11]
4173
4179
  ),
4174
- xt
4175
- ) : c && c.p && (!s || x & /*$_*/
4176
- 16) && c.p(m, s ? x : -1), b ? b.p && (!s || x & /*$$scope*/
4177
- 2048) && me(
4178
- b,
4180
+ Ht
4181
+ ) : c && c.p && (!s || v & /*$_*/
4182
+ 16) && c.p(m, s ? v : -1), p ? p.p && (!s || v & /*$$scope*/
4183
+ 2048) && de(
4184
+ p,
4179
4185
  y,
4180
4186
  m,
4181
4187
  /*$$scope*/
4182
4188
  m[11],
4183
- s ? fe(
4189
+ s ? me(
4184
4190
  y,
4185
4191
  /*$$scope*/
4186
4192
  m[11],
4187
- x,
4188
- Oi
4189
- ) : de(
4193
+ v,
4194
+ Ci
4195
+ ) : pe(
4190
4196
  /*$$scope*/
4191
4197
  m[11]
4192
4198
  ),
4193
- vt
4194
- ) : v && v.p && (!s || x & /*$_, errorcode*/
4195
- 20) && v.p(m, s ? x : -1), !/*hidebuttons*/
4199
+ Tt
4200
+ ) : E && E.p && (!s || v & /*$_, errorcode*/
4201
+ 20) && E.p(m, s ? v : -1), !/*hidebuttons*/
4196
4202
  m[1] || /*hidebuttons*/
4197
- m[1] === "false" ? E ? (E.p(m, x), x & /*hidebuttons*/
4198
- 2 && C(E, 1)) : (E = Bt(m), E.c(), C(E, 1), E.m(r, null)) : E && (Tr(), j(E, 1, 1, () => {
4199
- E = null;
4200
- }), Hr());
4203
+ m[1] === "false" ? _ ? (_.p(m, v), v & /*hidebuttons*/
4204
+ 2 && N(_, 1)) : (_ = Bt(m), _.c(), N(_, 1), _.m(r, null)) : _ && (wr(), z(_, 1, 1, () => {
4205
+ _ = null;
4206
+ }), Sr());
4201
4207
  },
4202
4208
  i(m) {
4203
- s || (C(u, m), C(c, m), C(v, m), C(E), s = !0);
4209
+ s || (N(u, m), N(c, m), N(E, m), N(_), s = !0);
4204
4210
  },
4205
4211
  o(m) {
4206
- j(u, m), j(c, m), j(v, m), j(E), s = !1;
4212
+ z(u, m), z(c, m), z(E, m), z(_), s = !1;
4207
4213
  },
4208
4214
  d(m) {
4209
- m && L(t), u && u.d(m), c && c.d(m), v && v.d(m), E && E.d(), e[13](null);
4215
+ m && M(t), u && u.d(m), c && c.d(m), E && E.d(m), _ && _.d(), e[13](null);
4210
4216
  }
4211
4217
  };
4212
4218
  }
4213
- function Di(e, t, r) {
4219
+ function Gi(e, t, r) {
4214
4220
  let n;
4215
- lr(e, wi, (d) => r(4, n = d));
4216
- let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { hidebuttons: l = "" } = t, { errorcode: u = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, b;
4217
- const v = () => {
4218
- Si(a);
4219
- }, E = () => {
4220
- fetch(c).then((B) => B.json()).then((B) => {
4221
- Object.keys(B).forEach((S) => {
4222
- yt(S, B[S]);
4221
+ cr(e, Ai, (d) => r(4, n = d));
4222
+ let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { hidebuttons: l = "" } = t, { errorcode: u = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, p;
4223
+ const E = () => {
4224
+ Pi(a);
4225
+ }, _ = () => {
4226
+ fetch(c).then((w) => w.json()).then((w) => {
4227
+ Object.keys(w).forEach((B) => {
4228
+ Et(B, w[B]);
4223
4229
  });
4224
- }).catch((B) => {
4225
- console.error(B);
4230
+ }).catch((w) => {
4231
+ console.error(w);
4226
4232
  });
4227
4233
  };
4228
- Object.keys(_t).forEach((d) => {
4229
- yt(d, _t[d]);
4234
+ Object.keys(vt).forEach((d) => {
4235
+ Et(d, vt[d]);
4230
4236
  });
4231
4237
  const m = () => {
4232
4238
  window.postMessage({ type: "ErrorClose" }, window.location.href);
4233
4239
  };
4234
- yr(() => () => {
4240
+ Er(() => () => {
4235
4241
  });
4236
- function x(d) {
4237
- Me[d ? "unshift" : "push"](() => {
4238
- b = d, r(3, b);
4242
+ function v(d) {
4243
+ Re[d ? "unshift" : "push"](() => {
4244
+ p = d, r(3, p);
4239
4245
  });
4240
4246
  }
4241
4247
  return e.$$set = (d) => {
4242
4248
  "assetsurl" in d && r(0, s = d.assetsurl), "lang" in d && r(6, a = d.lang), "hidebuttons" in d && r(1, l = d.hidebuttons), "errorcode" in d && r(2, u = d.errorcode), "clientstyling" in d && r(7, h = d.clientstyling), "clientstylingurl" in d && r(8, f = d.clientstylingurl), "translationurl" in d && r(9, c = d.translationurl), "mbsource" in d && r(10, y = d.mbsource), "$$scope" in d && r(11, o = d.$$scope);
4243
4249
  }, e.$$.update = () => {
4244
4250
  e.$$.dirty & /*lang*/
4245
- 64 && a && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4246
- 136 && h && b && Cr(b, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4247
- 264 && f && b && Nr(b, f), e.$$.dirty & /*mbsource, customStylingContainer*/
4248
- 1032 && y && b && Lr(b, `${y}.Style`), e.$$.dirty & /*translationurl*/
4249
- 512 && c && E();
4251
+ 64 && a && E(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4252
+ 136 && h && p && Lr(p, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4253
+ 264 && f && p && Mr(p, f), e.$$.dirty & /*mbsource, customStylingContainer*/
4254
+ 1032 && y && p && $r(p, `${y}.Style`), e.$$.dirty & /*translationurl*/
4255
+ 512 && c && _();
4250
4256
  }, [
4251
4257
  s,
4252
4258
  l,
4253
4259
  u,
4254
- b,
4260
+ p,
4255
4261
  n,
4256
4262
  m,
4257
4263
  a,
@@ -4261,17 +4267,17 @@ function Di(e, t, r) {
4261
4267
  y,
4262
4268
  o,
4263
4269
  i,
4264
- x
4270
+ v
4265
4271
  ];
4266
4272
  }
4267
- class Ui extends Or {
4273
+ class ki extends Cr {
4268
4274
  constructor(t) {
4269
- super(), Ar(
4275
+ super(), Or(
4270
4276
  this,
4271
4277
  t,
4272
- Di,
4273
- Ri,
4274
- St,
4278
+ Gi,
4279
+ Ui,
4280
+ Pt,
4275
4281
  {
4276
4282
  assetsurl: 0,
4277
4283
  lang: 6,
@@ -4282,7 +4288,7 @@ class Ui extends Or {
4282
4288
  translationurl: 9,
4283
4289
  mbsource: 10
4284
4290
  },
4285
- Ai
4291
+ Oi
4286
4292
  );
4287
4293
  }
4288
4294
  get assetsurl() {
@@ -4334,7 +4340,7 @@ class Ui extends Or {
4334
4340
  this.$$set({ mbsource: t }), A();
4335
4341
  }
4336
4342
  }
4337
- Pr(Ui, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4343
+ Ir(ki, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
4338
4344
  export {
4339
- Ui as default
4345
+ ki as default
4340
4346
  };