@everymatrix/cashier-error 1.77.26 → 1.77.28
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.
- package/components/CashierError-CbOMMFF_.cjs +5 -0
- package/components/{CashierError-zLT6XQH9.js → CashierError-DkeM_bkc.js} +647 -643
- package/components/{CashierError-F1EFPPHW.js → CashierError-OmH93Eyn.js} +647 -643
- package/es2015/cashier-error.cjs +1 -1
- package/es2015/cashier-error.js +1 -1
- package/esnext/cashier-error.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652--F7PvMq9.js +542 -0
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/index-97d17652-CCFHkzJw.js +558 -0
- package/stencil/{ui-image-BMiZteNE.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-CX3MBBZL.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-BW8AeEVd.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CashierError-CBDXN_WJ.cjs +0 -18
- package/stencil/index-97d17652-BD-QREJe.js +0 -558
- package/stencil/index-97d17652-DJqGt8q2.js +0 -542
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
|
@@ -2,15 +2,15 @@ var ir = Object.defineProperty, or = Object.defineProperties;
|
|
|
2
2
|
var sr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ke = Object.getOwnPropertySymbols;
|
|
4
4
|
var ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
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
|
-
ar.call(t, r) &&
|
|
7
|
+
ar.call(t, r) && Ae(e, r, t[r]);
|
|
8
8
|
if (Ke)
|
|
9
9
|
for (var r of Ke(t))
|
|
10
|
-
ur.call(t, r) &&
|
|
10
|
+
ur.call(t, r) && Ae(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, tt = (e, t) => or(e, sr(t));
|
|
13
|
-
var
|
|
13
|
+
var S = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var rt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
@@ -27,8 +27,8 @@ var rt = (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-
|
|
31
|
-
function
|
|
30
|
+
import "../stencil/ui-image-C7s6Uvn5.js";
|
|
31
|
+
function I() {
|
|
32
32
|
}
|
|
33
33
|
function lr(e, t) {
|
|
34
34
|
for (const r in t)
|
|
@@ -44,18 +44,18 @@ function At(e) {
|
|
|
44
44
|
function nt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function q(e) {
|
|
48
48
|
e.forEach(At);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Ze(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
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
|
|
56
|
+
let le;
|
|
57
57
|
function it(e, t) {
|
|
58
|
-
return e === t ? !0 : (
|
|
58
|
+
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
59
59
|
}
|
|
60
60
|
function hr(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
@@ -64,7 +64,7 @@ function Ot(e, ...t) {
|
|
|
64
64
|
if (e == null) {
|
|
65
65
|
for (const n of t)
|
|
66
66
|
n(void 0);
|
|
67
|
-
return
|
|
67
|
+
return I;
|
|
68
68
|
}
|
|
69
69
|
const r = e.subscribe(...t);
|
|
70
70
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -72,7 +72,7 @@ function Ot(e, ...t) {
|
|
|
72
72
|
function cr(e, t, r) {
|
|
73
73
|
e.$$.on_destroy.push(Ot(t, r));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function fe(e, t, r, n) {
|
|
76
76
|
if (e) {
|
|
77
77
|
const i = It(e, t, r, n);
|
|
78
78
|
return e[0](i);
|
|
@@ -81,7 +81,7 @@ function ce(e, t, r, n) {
|
|
|
81
81
|
function It(e, t, r, n) {
|
|
82
82
|
return e[1] && n ? lr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
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
|
|
99
|
+
function de(e, t, r, n, i, o) {
|
|
100
100
|
if (i) {
|
|
101
101
|
const s = It(t, r, n, o);
|
|
102
102
|
e.p(s, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
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,13 +111,13 @@ function de(e) {
|
|
|
111
111
|
}
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function O(e, t) {
|
|
115
115
|
e.appendChild(t);
|
|
116
116
|
}
|
|
117
117
|
function fr(e, t, r) {
|
|
118
118
|
const n = mr(e);
|
|
119
119
|
if (!n.getElementById(t)) {
|
|
120
|
-
const i =
|
|
120
|
+
const i = C("style");
|
|
121
121
|
i.id = t, i.textContent = r, dr(n, i);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -132,44 +132,44 @@ function mr(e) {
|
|
|
132
132
|
) : e.ownerDocument;
|
|
133
133
|
}
|
|
134
134
|
function dr(e, t) {
|
|
135
|
-
return
|
|
135
|
+
return O(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
138
138
|
t
|
|
139
139
|
), t.sheet;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function U(e, t, r) {
|
|
142
142
|
e.insertBefore(t, r || null);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function M(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function C(e) {
|
|
148
148
|
return document.createElement(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function oe(e) {
|
|
151
151
|
return document.createTextNode(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Pe() {
|
|
154
|
+
return oe(" ");
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
return
|
|
156
|
+
function pr() {
|
|
157
|
+
return oe("");
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function br(e, t, r, n) {
|
|
160
160
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
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
|
|
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 :
|
|
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
169
|
function gr(e) {
|
|
170
170
|
return Array.from(e.childNodes);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Je(e, t) {
|
|
173
173
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
174
174
|
t);
|
|
175
175
|
}
|
|
@@ -182,115 +182,115 @@ function yr(e) {
|
|
|
182
182
|
}
|
|
183
183
|
), t;
|
|
184
184
|
}
|
|
185
|
-
let
|
|
186
|
-
function
|
|
187
|
-
|
|
185
|
+
let re;
|
|
186
|
+
function te(e) {
|
|
187
|
+
re = e;
|
|
188
188
|
}
|
|
189
189
|
function _r() {
|
|
190
|
-
if (!
|
|
190
|
+
if (!re)
|
|
191
191
|
throw new Error("Function called outside component initialization");
|
|
192
|
-
return
|
|
192
|
+
return re;
|
|
193
193
|
}
|
|
194
194
|
function Er(e) {
|
|
195
195
|
_r().$$.on_mount.push(e);
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
let
|
|
197
|
+
const j = [], Re = [];
|
|
198
|
+
let V = [];
|
|
199
199
|
const ot = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
200
|
-
let
|
|
200
|
+
let De = !1;
|
|
201
201
|
function xr() {
|
|
202
|
-
|
|
202
|
+
De || (De = !0, vr.then(A));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
204
|
+
function Ue(e) {
|
|
205
|
+
V.push(e);
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
let
|
|
207
|
+
const Oe = /* @__PURE__ */ new Set();
|
|
208
|
+
let k = 0;
|
|
209
209
|
function A() {
|
|
210
|
-
if (
|
|
210
|
+
if (k !== 0)
|
|
211
211
|
return;
|
|
212
|
-
const e =
|
|
212
|
+
const e = re;
|
|
213
213
|
do {
|
|
214
214
|
try {
|
|
215
|
-
for (;
|
|
216
|
-
const t =
|
|
217
|
-
|
|
215
|
+
for (; k < j.length; ) {
|
|
216
|
+
const t = j[k];
|
|
217
|
+
k++, te(t), Tr(t.$$);
|
|
218
218
|
}
|
|
219
219
|
} catch (t) {
|
|
220
|
-
throw
|
|
220
|
+
throw j.length = 0, k = 0, t;
|
|
221
221
|
}
|
|
222
|
-
for (
|
|
223
|
-
|
|
224
|
-
for (let t = 0; t <
|
|
225
|
-
const r =
|
|
226
|
-
|
|
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
|
-
|
|
229
|
-
} while (
|
|
228
|
+
V.length = 0;
|
|
229
|
+
} while (j.length);
|
|
230
230
|
for (; ot.length; )
|
|
231
231
|
ot.pop()();
|
|
232
|
-
|
|
232
|
+
De = !1, Oe.clear(), te(e);
|
|
233
233
|
}
|
|
234
234
|
function Tr(e) {
|
|
235
235
|
if (e.fragment !== null) {
|
|
236
|
-
e.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(
|
|
238
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
function Hr(e) {
|
|
242
242
|
const t = [], r = [];
|
|
243
|
-
|
|
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
|
|
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
|
|
256
|
-
|
|
255
|
+
function Sr() {
|
|
256
|
+
R.r || q(R.c), R = R.p;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function N(e, t) {
|
|
259
259
|
e && e.i && (be.delete(e), e.i(t));
|
|
260
260
|
}
|
|
261
|
-
function
|
|
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),
|
|
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
|
|
269
269
|
n && n();
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Br(e, t, r) {
|
|
272
272
|
const { fragment: n, after_update: i } = e.$$;
|
|
273
|
-
n && n.m(t, r),
|
|
274
|
-
const o = e.$$.on_mount.map(At).filter(
|
|
275
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
276
|
-
}), i.forEach(
|
|
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
278
|
function Ar(e, t) {
|
|
279
279
|
const r = e.$$;
|
|
280
|
-
r.fragment !== null && (Hr(r.after_update),
|
|
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
282
|
function Pr(e, t) {
|
|
283
|
-
e.$$.dirty[0] === -1 && (
|
|
283
|
+
e.$$.dirty[0] === -1 && (j.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
284
284
|
}
|
|
285
285
|
function Or(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
286
|
-
const l =
|
|
287
|
-
|
|
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:
|
|
293
|
+
update: I,
|
|
294
294
|
not_equal: i,
|
|
295
295
|
bound: nt(),
|
|
296
296
|
// lifecycle
|
|
@@ -309,40 +309,40 @@ function Or(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
|
|
313
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
314
|
-
}) : [], u.update(), h = !0,
|
|
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
316
|
const f = gr(t.target);
|
|
317
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
317
|
+
u.fragment && u.fragment.l(f), f.forEach(M);
|
|
318
318
|
} else
|
|
319
319
|
u.fragment && u.fragment.c();
|
|
320
|
-
t.intro &&
|
|
320
|
+
t.intro && N(e.$$.fragment), Br(e, t.target, t.anchor), A();
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
te(l);
|
|
323
323
|
}
|
|
324
324
|
let Ct;
|
|
325
325
|
typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
326
326
|
constructor(t, r, n) {
|
|
327
327
|
super();
|
|
328
328
|
/** The Svelte component constructor */
|
|
329
|
-
|
|
329
|
+
S(this, "$$ctor");
|
|
330
330
|
/** Slots */
|
|
331
|
-
|
|
331
|
+
S(this, "$$s");
|
|
332
332
|
/** The Svelte component instance */
|
|
333
|
-
|
|
333
|
+
S(this, "$$c");
|
|
334
334
|
/** Whether or not the custom element is connected */
|
|
335
|
-
|
|
335
|
+
S(this, "$$cn", !1);
|
|
336
336
|
/** Component props data */
|
|
337
|
-
|
|
337
|
+
S(this, "$$d", {});
|
|
338
338
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
339
|
-
|
|
339
|
+
S(this, "$$r", !1);
|
|
340
340
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
341
|
-
|
|
341
|
+
S(this, "$$p_d", {});
|
|
342
342
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
343
|
-
|
|
343
|
+
S(this, "$$l", {});
|
|
344
344
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
345
|
-
|
|
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) {
|
|
@@ -366,17 +366,17 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
366
366
|
let s;
|
|
367
367
|
return {
|
|
368
368
|
c: function() {
|
|
369
|
-
s =
|
|
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
|
-
|
|
376
|
+
U(u, s, h);
|
|
377
377
|
},
|
|
378
378
|
d: function(u) {
|
|
379
|
-
u &&
|
|
379
|
+
u && M(s);
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
382
|
};
|
|
@@ -388,7 +388,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
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] =
|
|
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]);
|
|
@@ -405,7 +405,7 @@ typeof HTMLElement == "function" && (Ct = 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 =
|
|
408
|
+
const s = ge(
|
|
409
409
|
o,
|
|
410
410
|
this.$$d[o],
|
|
411
411
|
this.$$p_d,
|
|
@@ -429,7 +429,7 @@ typeof HTMLElement == "function" && (Ct = 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] =
|
|
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" && (Ct = class extends HTMLElement {
|
|
|
442
442
|
) || t;
|
|
443
443
|
}
|
|
444
444
|
});
|
|
445
|
-
function
|
|
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])
|
|
@@ -490,7 +490,7 @@ function Ir(e, t, r, n, i, o) {
|
|
|
490
490
|
},
|
|
491
491
|
set(l) {
|
|
492
492
|
var u;
|
|
493
|
-
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) => {
|
|
@@ -512,7 +512,7 @@ class Cr {
|
|
|
512
512
|
*
|
|
513
513
|
* @type {any}
|
|
514
514
|
*/
|
|
515
|
-
|
|
515
|
+
S(this, "$$");
|
|
516
516
|
/**
|
|
517
517
|
* ### PRIVATE API
|
|
518
518
|
*
|
|
@@ -520,11 +520,11 @@ class Cr {
|
|
|
520
520
|
*
|
|
521
521
|
* @type {any}
|
|
522
522
|
*/
|
|
523
|
-
|
|
523
|
+
S(this, "$$set");
|
|
524
524
|
}
|
|
525
525
|
/** @returns {void} */
|
|
526
526
|
$destroy() {
|
|
527
|
-
Ar(this, 1), this.$destroy =
|
|
527
|
+
Ar(this, 1), this.$destroy = I;
|
|
528
528
|
}
|
|
529
529
|
/**
|
|
530
530
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -533,8 +533,8 @@ class Cr {
|
|
|
533
533
|
* @returns {() => void}
|
|
534
534
|
*/
|
|
535
535
|
$on(t, r) {
|
|
536
|
-
if (!
|
|
537
|
-
return
|
|
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);
|
|
@@ -574,39 +574,39 @@ function $r(e, t, r) {
|
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
const
|
|
577
|
+
const F = [];
|
|
578
578
|
function Rr(e, t) {
|
|
579
579
|
return {
|
|
580
|
-
subscribe:
|
|
580
|
+
subscribe: He(e, t).subscribe
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function He(e, t = I) {
|
|
584
584
|
let r;
|
|
585
585
|
const n = /* @__PURE__ */ new Set();
|
|
586
586
|
function i(a) {
|
|
587
587
|
if (Pt(e, a) && (e = a, r)) {
|
|
588
|
-
const l = !
|
|
588
|
+
const l = !F.length;
|
|
589
589
|
for (const u of n)
|
|
590
|
-
u[1](),
|
|
590
|
+
u[1](), F.push(u, e);
|
|
591
591
|
if (l) {
|
|
592
|
-
for (let u = 0; u <
|
|
593
|
-
|
|
594
|
-
|
|
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 =
|
|
601
|
+
function s(a, l = I) {
|
|
602
602
|
const u = [a, l];
|
|
603
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
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
|
|
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");
|
|
@@ -614,26 +614,26 @@ function q(e, t, r) {
|
|
|
614
614
|
return Rr(r, (s, a) => {
|
|
615
615
|
let l = !1;
|
|
616
616
|
const u = [];
|
|
617
|
-
let h = 0, f =
|
|
617
|
+
let h = 0, f = I;
|
|
618
618
|
const c = () => {
|
|
619
619
|
if (h)
|
|
620
620
|
return;
|
|
621
621
|
f();
|
|
622
|
-
const
|
|
623
|
-
o ? s(
|
|
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
|
-
(
|
|
626
|
-
|
|
627
|
-
(
|
|
628
|
-
u[
|
|
625
|
+
(p, E) => Ot(
|
|
626
|
+
p,
|
|
627
|
+
(_) => {
|
|
628
|
+
u[E] = _, h &= ~(1 << E), l && c();
|
|
629
629
|
},
|
|
630
630
|
() => {
|
|
631
|
-
h |= 1 <<
|
|
631
|
+
h |= 1 << E;
|
|
632
632
|
}
|
|
633
633
|
)
|
|
634
634
|
);
|
|
635
635
|
return l = !0, c(), function() {
|
|
636
|
-
|
|
636
|
+
q(y), f(), l = !1;
|
|
637
637
|
};
|
|
638
638
|
});
|
|
639
639
|
}
|
|
@@ -657,19 +657,19 @@ function zr(e) {
|
|
|
657
657
|
function Vr(e) {
|
|
658
658
|
return Array.isArray(e) ? [] : {};
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
660
|
+
function ne(e, t) {
|
|
661
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(Vr(e), e, t) : e;
|
|
662
662
|
}
|
|
663
663
|
function Xr(e, t, r) {
|
|
664
664
|
return e.concat(t).map(function(n) {
|
|
665
|
-
return
|
|
665
|
+
return ne(n, r);
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
668
|
function Wr(e, t) {
|
|
669
669
|
if (!t.customMerge)
|
|
670
|
-
return
|
|
670
|
+
return X;
|
|
671
671
|
var r = t.customMerge(e);
|
|
672
|
-
return typeof r == "function" ? r :
|
|
672
|
+
return typeof r == "function" ? r : X;
|
|
673
673
|
}
|
|
674
674
|
function Zr(e) {
|
|
675
675
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -692,65 +692,51 @@ function Jr(e, t) {
|
|
|
692
692
|
function qr(e, t, r) {
|
|
693
693
|
var n = {};
|
|
694
694
|
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
695
|
-
n[i] =
|
|
695
|
+
n[i] = ne(e[i], r);
|
|
696
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] =
|
|
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
|
|
701
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Xr, r.isMergeableObject = r.isMergeableObject || Ur, r.cloneUnlessOtherwiseSpecified =
|
|
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) : qr(e, t, r) :
|
|
703
|
+
return o ? n ? r.arrayMerge(e, t, r) : qr(e, t, r) : ne(t, r);
|
|
704
704
|
}
|
|
705
|
-
|
|
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
|
|
709
|
+
return X(n, i, r);
|
|
710
710
|
}, {});
|
|
711
711
|
};
|
|
712
|
-
var Qr =
|
|
712
|
+
var Qr = X, Yr = Qr;
|
|
713
713
|
const Kr = /* @__PURE__ */ Dr(Yr);
|
|
714
|
-
|
|
715
|
-
|
|
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) {
|
|
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
|
-
},
|
|
720
|
+
}, Ge(e, t);
|
|
735
721
|
};
|
|
736
|
-
function
|
|
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
|
-
|
|
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
|
|
746
|
-
return
|
|
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
|
-
},
|
|
739
|
+
}, P.apply(this, arguments);
|
|
754
740
|
};
|
|
755
741
|
function en(e, t) {
|
|
756
742
|
var r = {};
|
|
@@ -761,14 +747,14 @@ function en(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
|
|
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
|
|
771
|
-
var r = t && t.cache ? t.cache :
|
|
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
|
|
@@ -777,95 +763,103 @@ function Oe(e, t) {
|
|
|
777
763
|
function tn(e) {
|
|
778
764
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
779
765
|
}
|
|
780
|
-
function
|
|
766
|
+
function rn(e, t, r, n) {
|
|
781
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
|
|
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
|
|
774
|
+
function Mt(e, t, r, n, i) {
|
|
789
775
|
return r.bind(t, e, n, i);
|
|
790
776
|
}
|
|
791
|
-
function rn(e, t) {
|
|
792
|
-
var r = e.length === 1 ? Lt : Mt;
|
|
793
|
-
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
794
|
-
}
|
|
795
777
|
function nn(e, t) {
|
|
796
|
-
|
|
778
|
+
var r = e.length === 1 ? rn : Lt;
|
|
779
|
+
return Mt(e, this, r, t.cache.create(), t.serializer);
|
|
797
780
|
}
|
|
798
781
|
function on(e, t) {
|
|
799
|
-
return
|
|
782
|
+
return Mt(e, this, Lt, t.cache.create(), t.serializer);
|
|
800
783
|
}
|
|
801
784
|
var sn = function() {
|
|
802
785
|
return JSON.stringify(arguments);
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
786
|
+
}, an = (
|
|
787
|
+
/** @class */
|
|
788
|
+
function() {
|
|
789
|
+
function e() {
|
|
790
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
791
|
+
}
|
|
792
|
+
return e.prototype.get = function(t) {
|
|
793
|
+
return this.cache[t];
|
|
794
|
+
}, e.prototype.set = function(t, r) {
|
|
795
|
+
this.cache[t] = r;
|
|
796
|
+
}, e;
|
|
797
|
+
}()
|
|
798
|
+
), un = {
|
|
814
799
|
create: function() {
|
|
815
|
-
return new
|
|
800
|
+
return new an();
|
|
816
801
|
}
|
|
817
|
-
},
|
|
818
|
-
variadic:
|
|
819
|
-
|
|
820
|
-
|
|
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;
|
|
821
815
|
(function(e) {
|
|
822
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";
|
|
823
|
-
})(
|
|
824
|
-
var
|
|
817
|
+
})(b || (b = {}));
|
|
818
|
+
var x;
|
|
825
819
|
(function(e) {
|
|
826
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";
|
|
827
|
-
})(
|
|
828
|
-
var
|
|
821
|
+
})(x || (x = {}));
|
|
822
|
+
var W;
|
|
829
823
|
(function(e) {
|
|
830
824
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
831
|
-
})(
|
|
825
|
+
})(W || (W = {}));
|
|
832
826
|
function at(e) {
|
|
833
|
-
return e.type ===
|
|
827
|
+
return e.type === x.literal;
|
|
834
828
|
}
|
|
835
|
-
function
|
|
836
|
-
return e.type ===
|
|
829
|
+
function ln(e) {
|
|
830
|
+
return e.type === x.argument;
|
|
837
831
|
}
|
|
838
832
|
function $t(e) {
|
|
839
|
-
return e.type ===
|
|
833
|
+
return e.type === x.number;
|
|
840
834
|
}
|
|
841
835
|
function Rt(e) {
|
|
842
|
-
return e.type ===
|
|
836
|
+
return e.type === x.date;
|
|
843
837
|
}
|
|
844
838
|
function Dt(e) {
|
|
845
|
-
return e.type ===
|
|
839
|
+
return e.type === x.time;
|
|
846
840
|
}
|
|
847
841
|
function Ut(e) {
|
|
848
|
-
return e.type ===
|
|
842
|
+
return e.type === x.select;
|
|
849
843
|
}
|
|
850
844
|
function Gt(e) {
|
|
851
|
-
return e.type ===
|
|
845
|
+
return e.type === x.plural;
|
|
852
846
|
}
|
|
853
|
-
function
|
|
854
|
-
return e.type ===
|
|
847
|
+
function hn(e) {
|
|
848
|
+
return e.type === x.pound;
|
|
855
849
|
}
|
|
856
850
|
function kt(e) {
|
|
857
|
-
return e.type ===
|
|
851
|
+
return e.type === x.tag;
|
|
858
852
|
}
|
|
859
853
|
function Ft(e) {
|
|
860
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
854
|
+
return !!(e && typeof e == "object" && e.type === W.number);
|
|
861
855
|
}
|
|
862
|
-
function
|
|
863
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
856
|
+
function ke(e) {
|
|
857
|
+
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
864
858
|
}
|
|
865
|
-
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
866
|
-
function
|
|
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) {
|
|
867
861
|
var t = {};
|
|
868
|
-
return e.replace(
|
|
862
|
+
return e.replace(cn, function(r) {
|
|
869
863
|
var n = r.length;
|
|
870
864
|
switch (r[0]) {
|
|
871
865
|
case "G":
|
|
@@ -954,11 +948,21 @@ function cn(e) {
|
|
|
954
948
|
return "";
|
|
955
949
|
}), t;
|
|
956
950
|
}
|
|
957
|
-
var
|
|
958
|
-
function
|
|
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) {
|
|
959
963
|
if (e.length === 0)
|
|
960
964
|
throw new Error("Number skeleton cannot be empty");
|
|
961
|
-
for (var t = e.split(
|
|
965
|
+
for (var t = e.split(mn).filter(function(c) {
|
|
962
966
|
return c.length > 0;
|
|
963
967
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
964
968
|
var o = i[n], s = o.split("/");
|
|
@@ -973,7 +977,7 @@ function mn(e) {
|
|
|
973
977
|
}
|
|
974
978
|
return r;
|
|
975
979
|
}
|
|
976
|
-
function
|
|
980
|
+
function pn(e) {
|
|
977
981
|
return e.replace(/^(.*?)-/, "");
|
|
978
982
|
}
|
|
979
983
|
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, bn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
@@ -1023,7 +1027,7 @@ function Xt(e) {
|
|
|
1023
1027
|
};
|
|
1024
1028
|
}
|
|
1025
1029
|
}
|
|
1026
|
-
function
|
|
1030
|
+
function gn(e) {
|
|
1027
1031
|
var t;
|
|
1028
1032
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1029
1033
|
notation: "engineering"
|
|
@@ -1041,7 +1045,7 @@ function ht(e) {
|
|
|
1041
1045
|
var t = {}, r = Xt(e);
|
|
1042
1046
|
return r || t;
|
|
1043
1047
|
}
|
|
1044
|
-
function
|
|
1048
|
+
function yn(e) {
|
|
1045
1049
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1046
1050
|
var i = n[r];
|
|
1047
1051
|
switch (i.stem) {
|
|
@@ -1065,7 +1069,7 @@ function gn(e) {
|
|
|
1065
1069
|
continue;
|
|
1066
1070
|
case "measure-unit":
|
|
1067
1071
|
case "unit":
|
|
1068
|
-
t.style = "unit", t.unit =
|
|
1072
|
+
t.style = "unit", t.unit = pn(i.options[0]);
|
|
1069
1073
|
continue;
|
|
1070
1074
|
case "compact-short":
|
|
1071
1075
|
case "K":
|
|
@@ -1076,13 +1080,13 @@ function gn(e) {
|
|
|
1076
1080
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1077
1081
|
continue;
|
|
1078
1082
|
case "scientific":
|
|
1079
|
-
t =
|
|
1080
|
-
return
|
|
1083
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1084
|
+
return T(T({}, l), ht(u));
|
|
1081
1085
|
}, {}));
|
|
1082
1086
|
continue;
|
|
1083
1087
|
case "engineering":
|
|
1084
|
-
t =
|
|
1085
|
-
return
|
|
1088
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1089
|
+
return T(T({}, l), ht(u));
|
|
1086
1090
|
}, {}));
|
|
1087
1091
|
continue;
|
|
1088
1092
|
case "notation-simple":
|
|
@@ -1151,21 +1155,21 @@ function gn(e) {
|
|
|
1151
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), "";
|
|
1152
1156
|
});
|
|
1153
1157
|
var o = i.options[0];
|
|
1154
|
-
o === "w" ? t =
|
|
1158
|
+
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), lt(o)));
|
|
1155
1159
|
continue;
|
|
1156
1160
|
}
|
|
1157
1161
|
if (zt.test(i.stem)) {
|
|
1158
|
-
t =
|
|
1162
|
+
t = T(T({}, t), lt(i.stem));
|
|
1159
1163
|
continue;
|
|
1160
1164
|
}
|
|
1161
1165
|
var s = Xt(i.stem);
|
|
1162
|
-
s && (t =
|
|
1163
|
-
var a =
|
|
1164
|
-
a && (t =
|
|
1166
|
+
s && (t = T(T({}, t), s));
|
|
1167
|
+
var a = gn(i.stem);
|
|
1168
|
+
a && (t = T(T({}, t), a));
|
|
1165
1169
|
}
|
|
1166
1170
|
return t;
|
|
1167
1171
|
}
|
|
1168
|
-
var
|
|
1172
|
+
var ce = {
|
|
1169
1173
|
"001": [
|
|
1170
1174
|
"H",
|
|
1171
1175
|
"h"
|
|
@@ -2580,13 +2584,13 @@ var he = {
|
|
|
2580
2584
|
"h"
|
|
2581
2585
|
]
|
|
2582
2586
|
};
|
|
2583
|
-
function
|
|
2587
|
+
function _n(e, t) {
|
|
2584
2588
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2585
2589
|
var i = e.charAt(n);
|
|
2586
2590
|
if (i === "j") {
|
|
2587
2591
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2588
2592
|
o++, n++;
|
|
2589
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2593
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = En(t);
|
|
2590
2594
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2591
2595
|
r += l;
|
|
2592
2596
|
for (; s-- > 0; )
|
|
@@ -2596,7 +2600,7 @@ function yn(e, t) {
|
|
|
2596
2600
|
}
|
|
2597
2601
|
return r;
|
|
2598
2602
|
}
|
|
2599
|
-
function
|
|
2603
|
+
function En(e) {
|
|
2600
2604
|
var t = e.hourCycle;
|
|
2601
2605
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2602
2606
|
e.hourCycles && // @ts-ignore
|
|
@@ -2615,23 +2619,23 @@ function _n(e) {
|
|
|
2615
2619
|
}
|
|
2616
2620
|
var r = e.language, n;
|
|
2617
2621
|
r !== "root" && (n = e.maximize().region);
|
|
2618
|
-
var i =
|
|
2622
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2619
2623
|
return i[0];
|
|
2620
2624
|
}
|
|
2621
|
-
var
|
|
2625
|
+
var Le, vn = new RegExp("^".concat(jt.source, "*")), xn = new RegExp("".concat(jt.source, "*$"));
|
|
2622
2626
|
function g(e, t) {
|
|
2623
2627
|
return { start: e, end: t };
|
|
2624
2628
|
}
|
|
2625
|
-
var
|
|
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) {
|
|
2626
2630
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2627
|
-
},
|
|
2631
|
+
}, Fe = !0;
|
|
2628
2632
|
try {
|
|
2629
|
-
var
|
|
2630
|
-
|
|
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";
|
|
2631
2635
|
} catch (e) {
|
|
2632
|
-
|
|
2636
|
+
Fe = !1;
|
|
2633
2637
|
}
|
|
2634
|
-
var ct =
|
|
2638
|
+
var ct = Tn ? (
|
|
2635
2639
|
// Native
|
|
2636
2640
|
function(t, r, n) {
|
|
2637
2641
|
return t.startsWith(r, n);
|
|
@@ -2641,7 +2645,7 @@ var ct = xn ? (
|
|
|
2641
2645
|
function(t, r, n) {
|
|
2642
2646
|
return t.slice(n, n + r.length) === r;
|
|
2643
2647
|
}
|
|
2644
|
-
),
|
|
2648
|
+
), je = Hn ? String.fromCodePoint : (
|
|
2645
2649
|
// IE11
|
|
2646
2650
|
function() {
|
|
2647
2651
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2655,7 +2659,7 @@ var ct = xn ? (
|
|
|
2655
2659
|
}
|
|
2656
2660
|
), ft = (
|
|
2657
2661
|
// native
|
|
2658
|
-
|
|
2662
|
+
wn ? Object.fromEntries : (
|
|
2659
2663
|
// Ponyfill
|
|
2660
2664
|
function(t) {
|
|
2661
2665
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2665,7 +2669,7 @@ var ct = xn ? (
|
|
|
2665
2669
|
return r;
|
|
2666
2670
|
}
|
|
2667
2671
|
)
|
|
2668
|
-
), Wt =
|
|
2672
|
+
), Wt = Sn ? (
|
|
2669
2673
|
// Native
|
|
2670
2674
|
function(t, r) {
|
|
2671
2675
|
return t.codePointAt(r);
|
|
@@ -2679,7 +2683,7 @@ var ct = xn ? (
|
|
|
2679
2683
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2680
2684
|
}
|
|
2681
2685
|
}
|
|
2682
|
-
),
|
|
2686
|
+
), Cn = Bn ? (
|
|
2683
2687
|
// Native
|
|
2684
2688
|
function(t) {
|
|
2685
2689
|
return t.trimStart();
|
|
@@ -2687,9 +2691,9 @@ var ct = xn ? (
|
|
|
2687
2691
|
) : (
|
|
2688
2692
|
// Ponyfill
|
|
2689
2693
|
function(t) {
|
|
2690
|
-
return t.replace(
|
|
2694
|
+
return t.replace(vn, "");
|
|
2691
2695
|
}
|
|
2692
|
-
),
|
|
2696
|
+
), Nn = An ? (
|
|
2693
2697
|
// Native
|
|
2694
2698
|
function(t) {
|
|
2695
2699
|
return t.trimEnd();
|
|
@@ -2697,32 +2701,32 @@ var ct = xn ? (
|
|
|
2697
2701
|
) : (
|
|
2698
2702
|
// Ponyfill
|
|
2699
2703
|
function(t) {
|
|
2700
|
-
return t.replace(
|
|
2704
|
+
return t.replace(xn, "");
|
|
2701
2705
|
}
|
|
2702
2706
|
);
|
|
2703
2707
|
function Zt(e, t) {
|
|
2704
2708
|
return new RegExp(e, t);
|
|
2705
2709
|
}
|
|
2706
|
-
var
|
|
2707
|
-
if (
|
|
2710
|
+
var ze;
|
|
2711
|
+
if (Fe) {
|
|
2708
2712
|
var mt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2709
|
-
|
|
2713
|
+
ze = function(t, r) {
|
|
2710
2714
|
var n;
|
|
2711
2715
|
mt.lastIndex = r;
|
|
2712
2716
|
var i = mt.exec(t);
|
|
2713
2717
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2714
2718
|
};
|
|
2715
2719
|
} else
|
|
2716
|
-
|
|
2720
|
+
ze = function(t, r) {
|
|
2717
2721
|
for (var n = []; ; ) {
|
|
2718
2722
|
var i = Wt(t, r);
|
|
2719
|
-
if (i === void 0 || Jt(i) ||
|
|
2723
|
+
if (i === void 0 || Jt(i) || Rn(i))
|
|
2720
2724
|
break;
|
|
2721
2725
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2722
2726
|
}
|
|
2723
|
-
return
|
|
2727
|
+
return je.apply(void 0, n);
|
|
2724
2728
|
};
|
|
2725
|
-
var
|
|
2729
|
+
var Ln = (
|
|
2726
2730
|
/** @class */
|
|
2727
2731
|
function() {
|
|
2728
2732
|
function e(t, r) {
|
|
@@ -2746,14 +2750,14 @@ var Nn = (
|
|
|
2746
2750
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2747
2751
|
var a = this.clonePosition();
|
|
2748
2752
|
this.bump(), i.push({
|
|
2749
|
-
type:
|
|
2753
|
+
type: x.pound,
|
|
2750
2754
|
location: g(a, this.clonePosition())
|
|
2751
2755
|
});
|
|
2752
2756
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2753
2757
|
if (n)
|
|
2754
2758
|
break;
|
|
2755
|
-
return this.error(
|
|
2756
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2759
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
2760
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
2757
2761
|
var s = this.parseTag(t, r);
|
|
2758
2762
|
if (s.err)
|
|
2759
2763
|
return s;
|
|
@@ -2774,7 +2778,7 @@ var Nn = (
|
|
|
2774
2778
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2775
2779
|
return {
|
|
2776
2780
|
val: {
|
|
2777
|
-
type:
|
|
2781
|
+
type: x.literal,
|
|
2778
2782
|
value: "<".concat(i, "/>"),
|
|
2779
2783
|
location: g(n, this.clonePosition())
|
|
2780
2784
|
},
|
|
@@ -2786,25 +2790,25 @@ var Nn = (
|
|
|
2786
2790
|
return o;
|
|
2787
2791
|
var s = o.val, a = this.clonePosition();
|
|
2788
2792
|
if (this.bumpIf("</")) {
|
|
2789
|
-
if (this.isEOF() || !
|
|
2790
|
-
return this.error(
|
|
2793
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
2794
|
+
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
2791
2795
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2792
|
-
return i !== u ? this.error(
|
|
2796
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2793
2797
|
val: {
|
|
2794
|
-
type:
|
|
2798
|
+
type: x.tag,
|
|
2795
2799
|
value: i,
|
|
2796
2800
|
children: s,
|
|
2797
2801
|
location: g(n, this.clonePosition())
|
|
2798
2802
|
},
|
|
2799
2803
|
err: null
|
|
2800
|
-
} : this.error(
|
|
2804
|
+
} : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
|
|
2801
2805
|
} else
|
|
2802
|
-
return this.error(
|
|
2806
|
+
return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
2803
2807
|
} else
|
|
2804
|
-
return this.error(
|
|
2808
|
+
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
2805
2809
|
}, e.prototype.parseTagName = function() {
|
|
2806
2810
|
var t = this.offset();
|
|
2807
|
-
for (this.bump(); !this.isEOF() &&
|
|
2811
|
+
for (this.bump(); !this.isEOF() && $n(this.char()); )
|
|
2808
2812
|
this.bump();
|
|
2809
2813
|
return this.message.slice(t, this.offset());
|
|
2810
2814
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2828,12 +2832,12 @@ var Nn = (
|
|
|
2828
2832
|
}
|
|
2829
2833
|
var l = g(n, this.clonePosition());
|
|
2830
2834
|
return {
|
|
2831
|
-
val: { type:
|
|
2835
|
+
val: { type: x.literal, value: i, location: l },
|
|
2832
2836
|
err: null
|
|
2833
2837
|
};
|
|
2834
2838
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2835
2839
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2836
|
-
!
|
|
2840
|
+
!Mn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2837
2841
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2838
2842
|
if (this.isEOF() || this.char() !== 39)
|
|
2839
2843
|
return null;
|
|
@@ -2867,28 +2871,28 @@ var Nn = (
|
|
|
2867
2871
|
r.push(n);
|
|
2868
2872
|
this.bump();
|
|
2869
2873
|
}
|
|
2870
|
-
return
|
|
2874
|
+
return je.apply(void 0, r);
|
|
2871
2875
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2872
2876
|
if (this.isEOF())
|
|
2873
2877
|
return null;
|
|
2874
2878
|
var n = this.char();
|
|
2875
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2879
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
2876
2880
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2877
2881
|
var n = this.clonePosition();
|
|
2878
2882
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2879
|
-
return this.error(
|
|
2883
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2880
2884
|
if (this.char() === 125)
|
|
2881
|
-
return this.bump(), this.error(
|
|
2885
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
2882
2886
|
var i = this.parseIdentifierIfPossible().value;
|
|
2883
2887
|
if (!i)
|
|
2884
|
-
return this.error(
|
|
2888
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2885
2889
|
if (this.bumpSpace(), this.isEOF())
|
|
2886
|
-
return this.error(
|
|
2890
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2887
2891
|
switch (this.char()) {
|
|
2888
2892
|
case 125:
|
|
2889
2893
|
return this.bump(), {
|
|
2890
2894
|
val: {
|
|
2891
|
-
type:
|
|
2895
|
+
type: x.argument,
|
|
2892
2896
|
// value does not include the opening and closing braces.
|
|
2893
2897
|
value: i,
|
|
2894
2898
|
location: g(n, this.clonePosition())
|
|
@@ -2896,12 +2900,12 @@ var Nn = (
|
|
|
2896
2900
|
err: null
|
|
2897
2901
|
};
|
|
2898
2902
|
case 44:
|
|
2899
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
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);
|
|
2900
2904
|
default:
|
|
2901
|
-
return this.error(
|
|
2905
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2902
2906
|
}
|
|
2903
2907
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2904
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2908
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
2905
2909
|
this.bumpTo(i);
|
|
2906
2910
|
var o = this.clonePosition(), s = g(t, o);
|
|
2907
2911
|
return { value: n, location: s };
|
|
@@ -2909,7 +2913,7 @@ var Nn = (
|
|
|
2909
2913
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2910
2914
|
switch (a) {
|
|
2911
2915
|
case "":
|
|
2912
|
-
return this.error(
|
|
2916
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, l));
|
|
2913
2917
|
case "number":
|
|
2914
2918
|
case "date":
|
|
2915
2919
|
case "time": {
|
|
@@ -2920,46 +2924,46 @@ var Nn = (
|
|
|
2920
2924
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2921
2925
|
if (f.err)
|
|
2922
2926
|
return f;
|
|
2923
|
-
var c =
|
|
2927
|
+
var c = Nn(f.val);
|
|
2924
2928
|
if (c.length === 0)
|
|
2925
|
-
return this.error(
|
|
2929
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
2926
2930
|
var y = g(h, this.clonePosition());
|
|
2927
2931
|
u = { style: c, styleLocation: y };
|
|
2928
2932
|
}
|
|
2929
|
-
var
|
|
2930
|
-
if (
|
|
2931
|
-
return
|
|
2932
|
-
var
|
|
2933
|
+
var p = this.tryParseArgumentClose(i);
|
|
2934
|
+
if (p.err)
|
|
2935
|
+
return p;
|
|
2936
|
+
var E = g(i, this.clonePosition());
|
|
2933
2937
|
if (u && ct(u == null ? void 0 : u.style, "::", 0)) {
|
|
2934
|
-
var
|
|
2938
|
+
var _ = Cn(u.style.slice(2));
|
|
2935
2939
|
if (a === "number") {
|
|
2936
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2940
|
+
var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
2937
2941
|
return f.err ? f : {
|
|
2938
|
-
val: { type:
|
|
2942
|
+
val: { type: x.number, value: n, location: E, style: f.val },
|
|
2939
2943
|
err: null
|
|
2940
2944
|
};
|
|
2941
2945
|
} else {
|
|
2942
|
-
if (
|
|
2943
|
-
return this.error(
|
|
2944
|
-
var m =
|
|
2945
|
-
this.locale && (m =
|
|
2946
|
+
if (_.length === 0)
|
|
2947
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, E);
|
|
2948
|
+
var m = _;
|
|
2949
|
+
this.locale && (m = _n(_, this.locale));
|
|
2946
2950
|
var c = {
|
|
2947
|
-
type:
|
|
2951
|
+
type: W.dateTime,
|
|
2948
2952
|
pattern: m,
|
|
2949
2953
|
location: u.styleLocation,
|
|
2950
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2951
|
-
},
|
|
2954
|
+
parsedOptions: this.shouldParseSkeletons ? fn(m) : {}
|
|
2955
|
+
}, v = a === "date" ? x.date : x.time;
|
|
2952
2956
|
return {
|
|
2953
|
-
val: { type:
|
|
2957
|
+
val: { type: v, value: n, location: E, style: c },
|
|
2954
2958
|
err: null
|
|
2955
2959
|
};
|
|
2956
2960
|
}
|
|
2957
2961
|
}
|
|
2958
2962
|
return {
|
|
2959
2963
|
val: {
|
|
2960
|
-
type: a === "number" ?
|
|
2964
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
2961
2965
|
value: n,
|
|
2962
|
-
location:
|
|
2966
|
+
location: E,
|
|
2963
2967
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2964
2968
|
},
|
|
2965
2969
|
err: null
|
|
@@ -2970,39 +2974,39 @@ var Nn = (
|
|
|
2970
2974
|
case "select": {
|
|
2971
2975
|
var d = this.clonePosition();
|
|
2972
2976
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2973
|
-
return this.error(
|
|
2977
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(d, Ee({}, d)));
|
|
2974
2978
|
this.bumpSpace();
|
|
2975
|
-
var
|
|
2976
|
-
if (a !== "select" &&
|
|
2979
|
+
var w = this.parseIdentifierIfPossible(), B = 0;
|
|
2980
|
+
if (a !== "select" && w.value === "offset") {
|
|
2977
2981
|
if (!this.bumpIf(":"))
|
|
2978
|
-
return this.error(
|
|
2982
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
2979
2983
|
this.bumpSpace();
|
|
2980
|
-
var f = this.tryParseDecimalInteger(
|
|
2984
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2981
2985
|
if (f.err)
|
|
2982
2986
|
return f;
|
|
2983
|
-
this.bumpSpace(),
|
|
2987
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), B = f.val;
|
|
2984
2988
|
}
|
|
2985
|
-
var
|
|
2986
|
-
if (
|
|
2987
|
-
return
|
|
2988
|
-
var
|
|
2989
|
-
if (
|
|
2990
|
-
return
|
|
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;
|
|
2991
2995
|
var Ye = g(i, this.clonePosition());
|
|
2992
2996
|
return a === "select" ? {
|
|
2993
2997
|
val: {
|
|
2994
|
-
type:
|
|
2998
|
+
type: x.select,
|
|
2995
2999
|
value: n,
|
|
2996
|
-
options: ft(
|
|
3000
|
+
options: ft(ue.val),
|
|
2997
3001
|
location: Ye
|
|
2998
3002
|
},
|
|
2999
3003
|
err: null
|
|
3000
3004
|
} : {
|
|
3001
3005
|
val: {
|
|
3002
|
-
type:
|
|
3006
|
+
type: x.plural,
|
|
3003
3007
|
value: n,
|
|
3004
|
-
options: ft(
|
|
3005
|
-
offset:
|
|
3008
|
+
options: ft(ue.val),
|
|
3009
|
+
offset: B,
|
|
3006
3010
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3007
3011
|
location: Ye
|
|
3008
3012
|
},
|
|
@@ -3010,10 +3014,10 @@ var Nn = (
|
|
|
3010
3014
|
};
|
|
3011
3015
|
}
|
|
3012
3016
|
default:
|
|
3013
|
-
return this.error(
|
|
3017
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, g(s, l));
|
|
3014
3018
|
}
|
|
3015
3019
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3016
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3020
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3017
3021
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3018
3022
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3019
3023
|
var n = this.char();
|
|
@@ -3022,7 +3026,7 @@ var Nn = (
|
|
|
3022
3026
|
this.bump();
|
|
3023
3027
|
var i = this.clonePosition();
|
|
3024
3028
|
if (!this.bumpUntil("'"))
|
|
3025
|
-
return this.error(
|
|
3029
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3026
3030
|
this.bump();
|
|
3027
3031
|
break;
|
|
3028
3032
|
}
|
|
@@ -3052,16 +3056,16 @@ var Nn = (
|
|
|
3052
3056
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3053
3057
|
var n = [];
|
|
3054
3058
|
try {
|
|
3055
|
-
n =
|
|
3059
|
+
n = dn(t);
|
|
3056
3060
|
} catch (i) {
|
|
3057
|
-
return this.error(
|
|
3061
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3058
3062
|
}
|
|
3059
3063
|
return {
|
|
3060
3064
|
val: {
|
|
3061
|
-
type:
|
|
3065
|
+
type: W.number,
|
|
3062
3066
|
tokens: n,
|
|
3063
3067
|
location: r,
|
|
3064
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3068
|
+
parsedOptions: this.shouldParseSkeletons ? yn(n) : {}
|
|
3065
3069
|
},
|
|
3066
3070
|
err: null
|
|
3067
3071
|
};
|
|
@@ -3070,7 +3074,7 @@ var Nn = (
|
|
|
3070
3074
|
if (u.length === 0) {
|
|
3071
3075
|
var f = this.clonePosition();
|
|
3072
3076
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3073
|
-
var c = this.tryParseDecimalInteger(
|
|
3077
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3074
3078
|
if (c.err)
|
|
3075
3079
|
return c;
|
|
3076
3080
|
h = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3078,26 +3082,26 @@ var Nn = (
|
|
|
3078
3082
|
break;
|
|
3079
3083
|
}
|
|
3080
3084
|
if (l.has(u))
|
|
3081
|
-
return this.error(r === "select" ?
|
|
3085
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3082
3086
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3083
3087
|
var y = this.clonePosition();
|
|
3084
3088
|
if (!this.bumpIf("{"))
|
|
3085
|
-
return this.error(r === "select" ?
|
|
3086
|
-
var
|
|
3087
|
-
if (
|
|
3088
|
-
return
|
|
3089
|
-
var
|
|
3090
|
-
if (
|
|
3091
|
-
return
|
|
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;
|
|
3092
3096
|
a.push([
|
|
3093
3097
|
u,
|
|
3094
3098
|
{
|
|
3095
|
-
value:
|
|
3099
|
+
value: p.val,
|
|
3096
3100
|
location: g(y, this.clonePosition())
|
|
3097
3101
|
}
|
|
3098
3102
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3099
3103
|
}
|
|
3100
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
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 };
|
|
3101
3105
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3102
3106
|
var n = 1, i = this.clonePosition();
|
|
3103
3107
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3109,7 +3113,7 @@ var Nn = (
|
|
|
3109
3113
|
break;
|
|
3110
3114
|
}
|
|
3111
3115
|
var l = g(i, this.clonePosition());
|
|
3112
|
-
return o ? (s *= n,
|
|
3116
|
+
return o ? (s *= n, On(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3113
3117
|
}, e.prototype.offset = function() {
|
|
3114
3118
|
return this.position.offset;
|
|
3115
3119
|
}, e.prototype.isEOF = function() {
|
|
@@ -3175,47 +3179,47 @@ var Nn = (
|
|
|
3175
3179
|
}, e;
|
|
3176
3180
|
}()
|
|
3177
3181
|
);
|
|
3178
|
-
function
|
|
3182
|
+
function Ve(e) {
|
|
3179
3183
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3180
3184
|
}
|
|
3181
|
-
function Ln(e) {
|
|
3182
|
-
return je(e) || e === 47;
|
|
3183
|
-
}
|
|
3184
3185
|
function Mn(e) {
|
|
3186
|
+
return Ve(e) || e === 47;
|
|
3187
|
+
}
|
|
3188
|
+
function $n(e) {
|
|
3185
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;
|
|
3186
3190
|
}
|
|
3187
3191
|
function Jt(e) {
|
|
3188
3192
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3189
3193
|
}
|
|
3190
|
-
function
|
|
3194
|
+
function Rn(e) {
|
|
3191
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;
|
|
3192
3196
|
}
|
|
3193
|
-
function
|
|
3197
|
+
function Xe(e) {
|
|
3194
3198
|
e.forEach(function(t) {
|
|
3195
3199
|
if (delete t.location, Ut(t) || Gt(t))
|
|
3196
3200
|
for (var r in t.options)
|
|
3197
|
-
delete t.options[r].location,
|
|
3201
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3198
3202
|
else
|
|
3199
|
-
$t(t) && Ft(t.style) || (Rt(t) || Dt(t)) &&
|
|
3203
|
+
$t(t) && Ft(t.style) || (Rt(t) || Dt(t)) && ke(t.style) ? delete t.style.location : kt(t) && Xe(t.children);
|
|
3200
3204
|
});
|
|
3201
3205
|
}
|
|
3202
|
-
function
|
|
3203
|
-
t === void 0 && (t = {}), t =
|
|
3204
|
-
var r = new
|
|
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();
|
|
3205
3209
|
if (r.err) {
|
|
3206
|
-
var n = SyntaxError(
|
|
3210
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3207
3211
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3208
3212
|
}
|
|
3209
|
-
return t != null && t.captureLocation ||
|
|
3213
|
+
return t != null && t.captureLocation || Xe(r.val), r.val;
|
|
3210
3214
|
}
|
|
3211
|
-
var
|
|
3215
|
+
var Z;
|
|
3212
3216
|
(function(e) {
|
|
3213
3217
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3214
|
-
})(
|
|
3215
|
-
var
|
|
3218
|
+
})(Z || (Z = {}));
|
|
3219
|
+
var Se = (
|
|
3216
3220
|
/** @class */
|
|
3217
3221
|
function(e) {
|
|
3218
|
-
|
|
3222
|
+
we(t, e);
|
|
3219
3223
|
function t(r, n, i) {
|
|
3220
3224
|
var o = e.call(this, r) || this;
|
|
3221
3225
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3227,44 +3231,44 @@ var He = (
|
|
|
3227
3231
|
), dt = (
|
|
3228
3232
|
/** @class */
|
|
3229
3233
|
function(e) {
|
|
3230
|
-
|
|
3234
|
+
we(t, e);
|
|
3231
3235
|
function t(r, n, i, o) {
|
|
3232
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3236
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
|
|
3233
3237
|
}
|
|
3234
3238
|
return t;
|
|
3235
|
-
}(
|
|
3236
|
-
),
|
|
3239
|
+
}(Se)
|
|
3240
|
+
), Un = (
|
|
3237
3241
|
/** @class */
|
|
3238
3242
|
function(e) {
|
|
3239
|
-
|
|
3243
|
+
we(t, e);
|
|
3240
3244
|
function t(r, n, i) {
|
|
3241
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3245
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
|
|
3242
3246
|
}
|
|
3243
3247
|
return t;
|
|
3244
|
-
}(
|
|
3245
|
-
),
|
|
3248
|
+
}(Se)
|
|
3249
|
+
), Gn = (
|
|
3246
3250
|
/** @class */
|
|
3247
3251
|
function(e) {
|
|
3248
|
-
|
|
3252
|
+
we(t, e);
|
|
3249
3253
|
function t(r, n) {
|
|
3250
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
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;
|
|
3251
3255
|
}
|
|
3252
3256
|
return t;
|
|
3253
|
-
}(
|
|
3257
|
+
}(Se)
|
|
3254
3258
|
), H;
|
|
3255
3259
|
(function(e) {
|
|
3256
3260
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3257
3261
|
})(H || (H = {}));
|
|
3258
|
-
function
|
|
3262
|
+
function kn(e) {
|
|
3259
3263
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3260
3264
|
var n = t[t.length - 1];
|
|
3261
3265
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3262
3266
|
}, []);
|
|
3263
3267
|
}
|
|
3264
|
-
function
|
|
3268
|
+
function Fn(e) {
|
|
3265
3269
|
return typeof e == "function";
|
|
3266
3270
|
}
|
|
3267
|
-
function
|
|
3271
|
+
function ye(e, t, r, n, i, o, s) {
|
|
3268
3272
|
if (e.length === 1 && at(e[0]))
|
|
3269
3273
|
return [
|
|
3270
3274
|
{
|
|
@@ -3281,7 +3285,7 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3281
3285
|
});
|
|
3282
3286
|
continue;
|
|
3283
3287
|
}
|
|
3284
|
-
if (
|
|
3288
|
+
if (hn(h)) {
|
|
3285
3289
|
typeof o == "number" && a.push({
|
|
3286
3290
|
type: H.literal,
|
|
3287
3291
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3290,9 +3294,9 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3290
3294
|
}
|
|
3291
3295
|
var f = h.value;
|
|
3292
3296
|
if (!(i && f in i))
|
|
3293
|
-
throw new
|
|
3297
|
+
throw new Gn(f, s);
|
|
3294
3298
|
var c = i[f];
|
|
3295
|
-
if (
|
|
3299
|
+
if (ln(h)) {
|
|
3296
3300
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3297
3301
|
type: typeof c == "string" ? H.literal : H.object,
|
|
3298
3302
|
value: c
|
|
@@ -3300,7 +3304,7 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3300
3304
|
continue;
|
|
3301
3305
|
}
|
|
3302
3306
|
if (Rt(h)) {
|
|
3303
|
-
var y = typeof h.style == "string" ? n.date[h.style] :
|
|
3307
|
+
var y = typeof h.style == "string" ? n.date[h.style] : ke(h.style) ? h.style.parsedOptions : void 0;
|
|
3304
3308
|
a.push({
|
|
3305
3309
|
type: H.literal,
|
|
3306
3310
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
@@ -3308,7 +3312,7 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3308
3312
|
continue;
|
|
3309
3313
|
}
|
|
3310
3314
|
if (Dt(h)) {
|
|
3311
|
-
var y = typeof h.style == "string" ? n.time[h.style] :
|
|
3315
|
+
var y = typeof h.style == "string" ? n.time[h.style] : ke(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3312
3316
|
a.push({
|
|
3313
3317
|
type: H.literal,
|
|
3314
3318
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
@@ -3324,16 +3328,16 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3324
3328
|
continue;
|
|
3325
3329
|
}
|
|
3326
3330
|
if (kt(h)) {
|
|
3327
|
-
var
|
|
3328
|
-
if (!
|
|
3329
|
-
throw new
|
|
3330
|
-
var m =
|
|
3331
|
-
return
|
|
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;
|
|
3332
3336
|
}));
|
|
3333
|
-
Array.isArray(
|
|
3337
|
+
Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(B) {
|
|
3334
3338
|
return {
|
|
3335
|
-
type: typeof
|
|
3336
|
-
value:
|
|
3339
|
+
type: typeof B == "string" ? H.literal : H.object,
|
|
3340
|
+
value: B
|
|
3337
3341
|
};
|
|
3338
3342
|
}));
|
|
3339
3343
|
}
|
|
@@ -3341,38 +3345,38 @@ function ge(e, t, r, n, i, o, s) {
|
|
|
3341
3345
|
var d = h.options[c] || h.options.other;
|
|
3342
3346
|
if (!d)
|
|
3343
3347
|
throw new dt(h.value, c, Object.keys(h.options), s);
|
|
3344
|
-
a.push.apply(a,
|
|
3348
|
+
a.push.apply(a, ye(d.value, t, r, n, i));
|
|
3345
3349
|
continue;
|
|
3346
3350
|
}
|
|
3347
3351
|
if (Gt(h)) {
|
|
3348
3352
|
var d = h.options["=".concat(c)];
|
|
3349
3353
|
if (!d) {
|
|
3350
3354
|
if (!Intl.PluralRules)
|
|
3351
|
-
throw new
|
|
3355
|
+
throw new Se(`Intl.PluralRules is not available in this environment.
|
|
3352
3356
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3353
|
-
`,
|
|
3354
|
-
var
|
|
3355
|
-
d = h.options[
|
|
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;
|
|
3356
3360
|
}
|
|
3357
3361
|
if (!d)
|
|
3358
3362
|
throw new dt(h.value, c, Object.keys(h.options), s);
|
|
3359
|
-
a.push.apply(a,
|
|
3363
|
+
a.push.apply(a, ye(d.value, t, r, n, i, c - (h.offset || 0)));
|
|
3360
3364
|
continue;
|
|
3361
3365
|
}
|
|
3362
3366
|
}
|
|
3363
|
-
return
|
|
3367
|
+
return kn(a);
|
|
3364
3368
|
}
|
|
3365
|
-
function
|
|
3366
|
-
return t ?
|
|
3367
|
-
return r[n] =
|
|
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;
|
|
3368
3372
|
}, {})) : e;
|
|
3369
3373
|
}
|
|
3370
|
-
function
|
|
3374
|
+
function zn(e, t) {
|
|
3371
3375
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3372
|
-
return r[n] =
|
|
3373
|
-
},
|
|
3376
|
+
return r[n] = jn(e[n], t[n]), r;
|
|
3377
|
+
}, P({}, e)) : e;
|
|
3374
3378
|
}
|
|
3375
|
-
function
|
|
3379
|
+
function Me(e) {
|
|
3376
3380
|
return {
|
|
3377
3381
|
create: function() {
|
|
3378
3382
|
return {
|
|
@@ -3386,35 +3390,35 @@ function Ne(e) {
|
|
|
3386
3390
|
}
|
|
3387
3391
|
};
|
|
3388
3392
|
}
|
|
3389
|
-
function
|
|
3393
|
+
function Vn(e) {
|
|
3390
3394
|
return e === void 0 && (e = {
|
|
3391
3395
|
number: {},
|
|
3392
3396
|
dateTime: {},
|
|
3393
3397
|
pluralRules: {}
|
|
3394
3398
|
}), {
|
|
3395
|
-
getNumberFormat:
|
|
3399
|
+
getNumberFormat: Ce(function() {
|
|
3396
3400
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3397
3401
|
r[n] = arguments[n];
|
|
3398
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3402
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3399
3403
|
}, {
|
|
3400
|
-
cache:
|
|
3401
|
-
strategy:
|
|
3404
|
+
cache: Me(e.number),
|
|
3405
|
+
strategy: Ne.variadic
|
|
3402
3406
|
}),
|
|
3403
|
-
getDateTimeFormat:
|
|
3407
|
+
getDateTimeFormat: Ce(function() {
|
|
3404
3408
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3405
3409
|
r[n] = arguments[n];
|
|
3406
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3410
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3407
3411
|
}, {
|
|
3408
|
-
cache:
|
|
3409
|
-
strategy:
|
|
3412
|
+
cache: Me(e.dateTime),
|
|
3413
|
+
strategy: Ne.variadic
|
|
3410
3414
|
}),
|
|
3411
|
-
getPluralRules:
|
|
3415
|
+
getPluralRules: Ce(function() {
|
|
3412
3416
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3413
3417
|
r[n] = arguments[n];
|
|
3414
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3418
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3415
3419
|
}, {
|
|
3416
|
-
cache:
|
|
3417
|
-
strategy:
|
|
3420
|
+
cache: Me(e.pluralRules),
|
|
3421
|
+
strategy: Ne.variadic
|
|
3418
3422
|
})
|
|
3419
3423
|
};
|
|
3420
3424
|
}
|
|
@@ -3437,7 +3441,7 @@ var qt = (
|
|
|
3437
3441
|
}, []);
|
|
3438
3442
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3439
3443
|
}, this.formatToParts = function(l) {
|
|
3440
|
-
return
|
|
3444
|
+
return ye(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3441
3445
|
}, this.resolvedOptions = function() {
|
|
3442
3446
|
var l;
|
|
3443
3447
|
return {
|
|
@@ -3451,12 +3455,12 @@ var qt = (
|
|
|
3451
3455
|
var s = i || {};
|
|
3452
3456
|
s.formatters;
|
|
3453
3457
|
var a = en(s, ["formatters"]);
|
|
3454
|
-
this.ast = e.__parse(t,
|
|
3458
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3455
3459
|
} else
|
|
3456
3460
|
this.ast = t;
|
|
3457
3461
|
if (!Array.isArray(this.ast))
|
|
3458
3462
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3459
|
-
this.formats =
|
|
3463
|
+
this.formats = zn(e.formats, n), this.formatters = i && i.formatters || Vn(this.formatterCache);
|
|
3460
3464
|
}
|
|
3461
3465
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3462
3466
|
get: function() {
|
|
@@ -3469,7 +3473,7 @@ var qt = (
|
|
|
3469
3473
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3470
3474
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3471
3475
|
}
|
|
3472
|
-
}, e.__parse =
|
|
3476
|
+
}, e.__parse = Dn, e.formats = {
|
|
3473
3477
|
number: {
|
|
3474
3478
|
integer: {
|
|
3475
3479
|
maximumFractionDigits: 0
|
|
@@ -3530,7 +3534,7 @@ var qt = (
|
|
|
3530
3534
|
}, e;
|
|
3531
3535
|
}()
|
|
3532
3536
|
);
|
|
3533
|
-
function
|
|
3537
|
+
function Xn(e, t) {
|
|
3534
3538
|
if (t == null)
|
|
3535
3539
|
return;
|
|
3536
3540
|
if (t in e)
|
|
@@ -3551,36 +3555,36 @@ function Vn(e, t) {
|
|
|
3551
3555
|
n = void 0;
|
|
3552
3556
|
return n;
|
|
3553
3557
|
}
|
|
3554
|
-
const
|
|
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) => {
|
|
3555
3559
|
if (t == null)
|
|
3556
3560
|
return;
|
|
3557
|
-
if (t in
|
|
3558
|
-
return
|
|
3559
|
-
const r =
|
|
3561
|
+
if (t in L && e in L[t])
|
|
3562
|
+
return L[t][e];
|
|
3563
|
+
const r = ae(t);
|
|
3560
3564
|
for (let n = 0; n < r.length; n++) {
|
|
3561
|
-
const i = r[n], o =
|
|
3565
|
+
const i = r[n], o = Jn(i, e);
|
|
3562
3566
|
if (o)
|
|
3563
|
-
return
|
|
3567
|
+
return Wn(e, t, o);
|
|
3564
3568
|
}
|
|
3565
3569
|
};
|
|
3566
3570
|
let qe;
|
|
3567
|
-
const
|
|
3568
|
-
function
|
|
3571
|
+
const se = He({});
|
|
3572
|
+
function Zn(e) {
|
|
3569
3573
|
return qe[e] || null;
|
|
3570
3574
|
}
|
|
3571
3575
|
function Yt(e) {
|
|
3572
3576
|
return e in qe;
|
|
3573
3577
|
}
|
|
3574
|
-
function
|
|
3578
|
+
function Jn(e, t) {
|
|
3575
3579
|
if (!Yt(e))
|
|
3576
3580
|
return null;
|
|
3577
|
-
const r =
|
|
3578
|
-
return
|
|
3581
|
+
const r = Zn(e);
|
|
3582
|
+
return Xn(r, t);
|
|
3579
3583
|
}
|
|
3580
|
-
function
|
|
3584
|
+
function qn(e) {
|
|
3581
3585
|
if (e == null)
|
|
3582
3586
|
return;
|
|
3583
|
-
const t =
|
|
3587
|
+
const t = ae(e);
|
|
3584
3588
|
for (let r = 0; r < t.length; r++) {
|
|
3585
3589
|
const n = t[r];
|
|
3586
3590
|
if (Yt(n))
|
|
@@ -3588,64 +3592,64 @@ function Jn(e) {
|
|
|
3588
3592
|
}
|
|
3589
3593
|
}
|
|
3590
3594
|
function Kt(e, ...t) {
|
|
3591
|
-
delete
|
|
3595
|
+
delete L[e], se.update((r) => (r[e] = Kr.all([r[e] || {}, ...t]), r));
|
|
3592
3596
|
}
|
|
3593
|
-
|
|
3594
|
-
[
|
|
3597
|
+
Q(
|
|
3598
|
+
[se],
|
|
3595
3599
|
([e]) => Object.keys(e)
|
|
3596
3600
|
);
|
|
3597
|
-
|
|
3598
|
-
const
|
|
3599
|
-
function
|
|
3600
|
-
|
|
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];
|
|
3601
3605
|
}
|
|
3602
3606
|
function er(e) {
|
|
3603
|
-
return
|
|
3607
|
+
return _e[e];
|
|
3604
3608
|
}
|
|
3605
|
-
function
|
|
3606
|
-
return
|
|
3609
|
+
function Yn(e) {
|
|
3610
|
+
return ae(e).map((t) => {
|
|
3607
3611
|
const r = er(t);
|
|
3608
3612
|
return [t, r ? [...r] : []];
|
|
3609
3613
|
}).filter(([, t]) => t.length > 0);
|
|
3610
3614
|
}
|
|
3611
|
-
function
|
|
3612
|
-
return e == null ? !1 :
|
|
3615
|
+
function ve(e) {
|
|
3616
|
+
return e == null ? !1 : ae(e).some(
|
|
3613
3617
|
(t) => {
|
|
3614
3618
|
var r;
|
|
3615
3619
|
return (r = er(t)) == null ? void 0 : r.size;
|
|
3616
3620
|
}
|
|
3617
3621
|
);
|
|
3618
3622
|
}
|
|
3619
|
-
function
|
|
3623
|
+
function Kn(e, t) {
|
|
3620
3624
|
return Promise.all(
|
|
3621
|
-
t.map((n) => (
|
|
3625
|
+
t.map((n) => (Qn(e, n), n().then((i) => i.default || i)))
|
|
3622
3626
|
).then((n) => Kt(e, ...n));
|
|
3623
3627
|
}
|
|
3624
|
-
const
|
|
3628
|
+
const K = {};
|
|
3625
3629
|
function tr(e) {
|
|
3626
|
-
if (!
|
|
3627
|
-
return e in
|
|
3628
|
-
const t =
|
|
3629
|
-
return
|
|
3630
|
+
if (!ve(e))
|
|
3631
|
+
return e in K ? K[e] : Promise.resolve();
|
|
3632
|
+
const t = Yn(e);
|
|
3633
|
+
return K[e] = Promise.all(
|
|
3630
3634
|
t.map(
|
|
3631
|
-
([r, n]) =>
|
|
3635
|
+
([r, n]) => Kn(r, n)
|
|
3632
3636
|
)
|
|
3633
3637
|
).then(() => {
|
|
3634
|
-
if (
|
|
3638
|
+
if (ve(e))
|
|
3635
3639
|
return tr(e);
|
|
3636
|
-
delete
|
|
3637
|
-
}),
|
|
3640
|
+
delete K[e];
|
|
3641
|
+
}), K[e];
|
|
3638
3642
|
}
|
|
3639
|
-
var
|
|
3643
|
+
var pt = Object.getOwnPropertySymbols, ei = Object.prototype.hasOwnProperty, ti = Object.prototype.propertyIsEnumerable, ri = (e, t) => {
|
|
3640
3644
|
var r = {};
|
|
3641
3645
|
for (var n in e)
|
|
3642
|
-
|
|
3643
|
-
if (e != null &&
|
|
3644
|
-
for (var n of
|
|
3645
|
-
t.indexOf(n) < 0 &&
|
|
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]);
|
|
3646
3650
|
return r;
|
|
3647
3651
|
};
|
|
3648
|
-
const
|
|
3652
|
+
const ni = {
|
|
3649
3653
|
number: {
|
|
3650
3654
|
scientific: { notation: "scientific" },
|
|
3651
3655
|
engineering: { notation: "engineering" },
|
|
@@ -3675,28 +3679,28 @@ const ri = {
|
|
|
3675
3679
|
}
|
|
3676
3680
|
}
|
|
3677
3681
|
};
|
|
3678
|
-
function
|
|
3682
|
+
function ii({ locale: e, id: t }) {
|
|
3679
3683
|
console.warn(
|
|
3680
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3684
|
+
`[svelte-i18n] The message "${t}" was not found in "${ae(
|
|
3681
3685
|
e
|
|
3682
|
-
).join('", "')}".${
|
|
3686
|
+
).join('", "')}".${ve($()) ? `
|
|
3683
3687
|
|
|
3684
3688
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3685
3689
|
);
|
|
3686
3690
|
}
|
|
3687
|
-
const
|
|
3691
|
+
const oi = {
|
|
3688
3692
|
fallbackLocale: null,
|
|
3689
3693
|
loadingDelay: 200,
|
|
3690
|
-
formats:
|
|
3694
|
+
formats: ni,
|
|
3691
3695
|
warnOnMissingMessages: !0,
|
|
3692
3696
|
handleMissingMessage: void 0,
|
|
3693
3697
|
ignoreTag: !0
|
|
3694
|
-
},
|
|
3695
|
-
function
|
|
3696
|
-
return
|
|
3698
|
+
}, ee = oi;
|
|
3699
|
+
function J() {
|
|
3700
|
+
return ee;
|
|
3697
3701
|
}
|
|
3698
|
-
function
|
|
3699
|
-
const t = e, { formats: r } = t, n =
|
|
3702
|
+
function si(e) {
|
|
3703
|
+
const t = e, { formats: r } = t, n = ri(t, ["formats"]);
|
|
3700
3704
|
let i = e.fallbackLocale;
|
|
3701
3705
|
if (e.initialLocale)
|
|
3702
3706
|
try {
|
|
@@ -3706,50 +3710,50 @@ function oi(e) {
|
|
|
3706
3710
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3707
3711
|
);
|
|
3708
3712
|
}
|
|
3709
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3713
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ii : console.warn(
|
|
3710
3714
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3711
|
-
)), Object.assign(
|
|
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);
|
|
3712
3716
|
}
|
|
3713
|
-
const
|
|
3714
|
-
var
|
|
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) => {
|
|
3715
3719
|
for (var r in t || (t = {}))
|
|
3716
|
-
|
|
3717
|
-
if (
|
|
3718
|
-
for (var r of
|
|
3719
|
-
|
|
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]);
|
|
3720
3724
|
return e;
|
|
3721
|
-
},
|
|
3722
|
-
let
|
|
3723
|
-
const
|
|
3725
|
+
}, mi = (e, t) => ui(e, li(t));
|
|
3726
|
+
let We;
|
|
3727
|
+
const xe = He(null);
|
|
3724
3728
|
function yt(e) {
|
|
3725
3729
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3726
3730
|
}
|
|
3727
|
-
function
|
|
3731
|
+
function ae(e, t = J().fallbackLocale) {
|
|
3728
3732
|
const r = yt(e);
|
|
3729
3733
|
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
3730
3734
|
}
|
|
3731
|
-
function
|
|
3732
|
-
return
|
|
3735
|
+
function $() {
|
|
3736
|
+
return We != null ? We : void 0;
|
|
3733
3737
|
}
|
|
3734
|
-
|
|
3735
|
-
|
|
3738
|
+
xe.subscribe((e) => {
|
|
3739
|
+
We = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3736
3740
|
});
|
|
3737
|
-
const
|
|
3738
|
-
if (e &&
|
|
3739
|
-
const { loadingDelay: t } =
|
|
3741
|
+
const di = (e) => {
|
|
3742
|
+
if (e && qn(e) && ve(e)) {
|
|
3743
|
+
const { loadingDelay: t } = J();
|
|
3740
3744
|
let r;
|
|
3741
|
-
return typeof window != "undefined" &&
|
|
3742
|
-
() =>
|
|
3745
|
+
return typeof window != "undefined" && $() != null && t ? r = window.setTimeout(
|
|
3746
|
+
() => $e.set(!0),
|
|
3743
3747
|
t
|
|
3744
|
-
) :
|
|
3745
|
-
|
|
3748
|
+
) : $e.set(!0), tr(e).then(() => {
|
|
3749
|
+
xe.set(e);
|
|
3746
3750
|
}).finally(() => {
|
|
3747
|
-
clearTimeout(r),
|
|
3751
|
+
clearTimeout(r), $e.set(!1);
|
|
3748
3752
|
});
|
|
3749
3753
|
}
|
|
3750
|
-
return
|
|
3751
|
-
},
|
|
3752
|
-
set:
|
|
3754
|
+
return xe.set(e);
|
|
3755
|
+
}, G = mi(fi({}, xe), {
|
|
3756
|
+
set: di
|
|
3753
3757
|
}), Be = (e) => {
|
|
3754
3758
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3755
3759
|
return (n) => {
|
|
@@ -3757,83 +3761,83 @@ const mi = (e) => {
|
|
|
3757
3761
|
return i in t ? t[i] : t[i] = e(n);
|
|
3758
3762
|
};
|
|
3759
3763
|
};
|
|
3760
|
-
var
|
|
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) => {
|
|
3761
3765
|
for (var r in t || (t = {}))
|
|
3762
3766
|
rr.call(t, r) && _t(e, r, t[r]);
|
|
3763
|
-
if (
|
|
3764
|
-
for (var r of
|
|
3767
|
+
if (Te)
|
|
3768
|
+
for (var r of Te(t))
|
|
3765
3769
|
nr.call(t, r) && _t(e, r, t[r]);
|
|
3766
3770
|
return e;
|
|
3767
|
-
},
|
|
3771
|
+
}, Y = (e, t) => {
|
|
3768
3772
|
var r = {};
|
|
3769
3773
|
for (var n in e)
|
|
3770
3774
|
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3771
|
-
if (e != null &&
|
|
3772
|
-
for (var n of
|
|
3775
|
+
if (e != null && Te)
|
|
3776
|
+
for (var n of Te(e))
|
|
3773
3777
|
t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
|
|
3774
3778
|
return r;
|
|
3775
3779
|
};
|
|
3776
|
-
const
|
|
3777
|
-
const { formats: r } =
|
|
3780
|
+
const ie = (e, t) => {
|
|
3781
|
+
const { formats: r } = J();
|
|
3778
3782
|
if (e in r && t in r[e])
|
|
3779
3783
|
return r[e][t];
|
|
3780
3784
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3781
3785
|
}, bi = Be(
|
|
3782
3786
|
(e) => {
|
|
3783
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3787
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
3784
3788
|
if (r == null)
|
|
3785
3789
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3786
|
-
return n && (i =
|
|
3790
|
+
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
3787
3791
|
}
|
|
3788
|
-
),
|
|
3792
|
+
), gi = Be(
|
|
3789
3793
|
(e) => {
|
|
3790
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3794
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
3791
3795
|
if (r == null)
|
|
3792
3796
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3793
|
-
return n ? i =
|
|
3797
|
+
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3794
3798
|
}
|
|
3795
|
-
),
|
|
3799
|
+
), yi = Be(
|
|
3796
3800
|
(e) => {
|
|
3797
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3801
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
3798
3802
|
if (r == null)
|
|
3799
3803
|
throw new Error(
|
|
3800
3804
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3801
3805
|
);
|
|
3802
|
-
return n ? i =
|
|
3806
|
+
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3803
3807
|
}
|
|
3804
|
-
),
|
|
3808
|
+
), _i = (e = {}) => {
|
|
3805
3809
|
var t = e, {
|
|
3806
|
-
locale: r =
|
|
3807
|
-
} = t, n =
|
|
3810
|
+
locale: r = $()
|
|
3811
|
+
} = t, n = Y(t, [
|
|
3808
3812
|
"locale"
|
|
3809
3813
|
]);
|
|
3810
3814
|
return bi(Qe({ locale: r }, n));
|
|
3811
|
-
},
|
|
3815
|
+
}, Ei = (e = {}) => {
|
|
3812
3816
|
var t = e, {
|
|
3813
|
-
locale: r =
|
|
3814
|
-
} = t, n =
|
|
3817
|
+
locale: r = $()
|
|
3818
|
+
} = t, n = Y(t, [
|
|
3815
3819
|
"locale"
|
|
3816
3820
|
]);
|
|
3817
|
-
return
|
|
3818
|
-
},
|
|
3821
|
+
return gi(Qe({ locale: r }, n));
|
|
3822
|
+
}, vi = (e = {}) => {
|
|
3819
3823
|
var t = e, {
|
|
3820
|
-
locale: r =
|
|
3821
|
-
} = t, n =
|
|
3824
|
+
locale: r = $()
|
|
3825
|
+
} = t, n = Y(t, [
|
|
3822
3826
|
"locale"
|
|
3823
3827
|
]);
|
|
3824
|
-
return
|
|
3825
|
-
},
|
|
3828
|
+
return yi(Qe({ locale: r }, n));
|
|
3829
|
+
}, xi = Be(
|
|
3826
3830
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3827
|
-
(e, t =
|
|
3828
|
-
ignoreTag:
|
|
3831
|
+
(e, t = $()) => new qt(e, t, J().formats, {
|
|
3832
|
+
ignoreTag: J().ignoreTag
|
|
3829
3833
|
})
|
|
3830
|
-
),
|
|
3834
|
+
), Ti = (e, t = {}) => {
|
|
3831
3835
|
var r, n, i, o;
|
|
3832
3836
|
let s = t;
|
|
3833
3837
|
typeof e == "object" && (s = e, e = s.id);
|
|
3834
3838
|
const {
|
|
3835
3839
|
values: a,
|
|
3836
|
-
locale: l =
|
|
3840
|
+
locale: l = $(),
|
|
3837
3841
|
default: u
|
|
3838
3842
|
} = s;
|
|
3839
3843
|
if (l == null)
|
|
@@ -3842,7 +3846,7 @@ const ne = (e, t) => {
|
|
|
3842
3846
|
);
|
|
3843
3847
|
let h = Qt(e, l);
|
|
3844
3848
|
if (!h)
|
|
3845
|
-
h = (o = (i = (n = (r =
|
|
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;
|
|
3846
3850
|
else if (typeof h != "string")
|
|
3847
3851
|
return console.warn(
|
|
3848
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.`
|
|
@@ -3851,7 +3855,7 @@ const ne = (e, t) => {
|
|
|
3851
3855
|
return h;
|
|
3852
3856
|
let f = h;
|
|
3853
3857
|
try {
|
|
3854
|
-
f =
|
|
3858
|
+
f = xi(h, l).format(a);
|
|
3855
3859
|
} catch (c) {
|
|
3856
3860
|
c instanceof Error && console.warn(
|
|
3857
3861
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3859,18 +3863,18 @@ const ne = (e, t) => {
|
|
|
3859
3863
|
);
|
|
3860
3864
|
}
|
|
3861
3865
|
return f;
|
|
3862
|
-
},
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
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);
|
|
3867
3871
|
function Et(e, t) {
|
|
3868
3872
|
Kt(e, t);
|
|
3869
3873
|
}
|
|
3870
|
-
function
|
|
3871
|
-
|
|
3874
|
+
function Pi(e) {
|
|
3875
|
+
si({
|
|
3872
3876
|
fallbackLocale: "en"
|
|
3873
|
-
}),
|
|
3877
|
+
}), G.set(e);
|
|
3874
3878
|
}
|
|
3875
3879
|
const vt = {
|
|
3876
3880
|
en: {
|
|
@@ -3926,74 +3930,74 @@ const vt = {
|
|
|
3926
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."
|
|
3927
3931
|
}
|
|
3928
3932
|
};
|
|
3929
|
-
function
|
|
3933
|
+
function Oi(e) {
|
|
3930
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}");
|
|
3931
3935
|
}
|
|
3932
|
-
const
|
|
3933
|
-
function
|
|
3936
|
+
const Ii = (e) => ({}), xt = (e) => ({}), Ci = (e) => ({}), Tt = (e) => ({}), Ni = (e) => ({}), Ht = (e) => ({}), Li = (e) => ({}), wt = (e) => ({ class: "CashierErrorIcon" });
|
|
3937
|
+
function St(e) {
|
|
3934
3938
|
let t, r;
|
|
3935
3939
|
return {
|
|
3936
3940
|
c() {
|
|
3937
|
-
t =
|
|
3938
|
-
e[0]}/error-general-icon.png`) ||
|
|
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");
|
|
3939
3943
|
},
|
|
3940
3944
|
m(n, i) {
|
|
3941
|
-
|
|
3945
|
+
U(n, t, i);
|
|
3942
3946
|
},
|
|
3943
3947
|
p(n, i) {
|
|
3944
3948
|
i & /*assetsurl*/
|
|
3945
3949
|
1 && !it(t.src, r = `${/*assetsurl*/
|
|
3946
|
-
n[0]}/error-general-icon.png`) &&
|
|
3950
|
+
n[0]}/error-general-icon.png`) && he(t, "src", r);
|
|
3947
3951
|
},
|
|
3948
3952
|
d(n) {
|
|
3949
|
-
n &&
|
|
3953
|
+
n && M(t);
|
|
3950
3954
|
}
|
|
3951
3955
|
};
|
|
3952
3956
|
}
|
|
3953
|
-
function
|
|
3957
|
+
function Mi(e) {
|
|
3954
3958
|
let t, r = (
|
|
3955
3959
|
/*assetsurl*/
|
|
3956
|
-
e[0] &&
|
|
3960
|
+
e[0] && St(e)
|
|
3957
3961
|
);
|
|
3958
3962
|
return {
|
|
3959
3963
|
c() {
|
|
3960
|
-
r && r.c(), t =
|
|
3964
|
+
r && r.c(), t = pr();
|
|
3961
3965
|
},
|
|
3962
3966
|
m(n, i) {
|
|
3963
|
-
r && r.m(n, i),
|
|
3967
|
+
r && r.m(n, i), U(n, t, i);
|
|
3964
3968
|
},
|
|
3965
3969
|
p(n, i) {
|
|
3966
3970
|
/*assetsurl*/
|
|
3967
|
-
n[0] ? r ? r.p(n, i) : (r =
|
|
3971
|
+
n[0] ? r ? r.p(n, i) : (r = St(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3968
3972
|
},
|
|
3969
3973
|
d(n) {
|
|
3970
|
-
n &&
|
|
3974
|
+
n && M(t), r && r.d(n);
|
|
3971
3975
|
}
|
|
3972
3976
|
};
|
|
3973
3977
|
}
|
|
3974
|
-
function
|
|
3978
|
+
function $i(e) {
|
|
3975
3979
|
let t, r = (
|
|
3976
3980
|
/*$_*/
|
|
3977
3981
|
e[4]("errorGeneralTitle") + ""
|
|
3978
3982
|
), n;
|
|
3979
3983
|
return {
|
|
3980
3984
|
c() {
|
|
3981
|
-
t =
|
|
3985
|
+
t = C("span"), n = oe(r), D(t, "class", "CashierErrorTitle");
|
|
3982
3986
|
},
|
|
3983
3987
|
m(i, o) {
|
|
3984
|
-
|
|
3988
|
+
U(i, t, o), O(t, n);
|
|
3985
3989
|
},
|
|
3986
3990
|
p(i, o) {
|
|
3987
3991
|
o & /*$_*/
|
|
3988
3992
|
16 && r !== (r = /*$_*/
|
|
3989
|
-
i[4]("errorGeneralTitle") + "") &&
|
|
3993
|
+
i[4]("errorGeneralTitle") + "") && Je(n, r);
|
|
3990
3994
|
},
|
|
3991
3995
|
d(i) {
|
|
3992
|
-
i &&
|
|
3996
|
+
i && M(t);
|
|
3993
3997
|
}
|
|
3994
3998
|
};
|
|
3995
3999
|
}
|
|
3996
|
-
function
|
|
4000
|
+
function Ri(e) {
|
|
3997
4001
|
let t, r = (
|
|
3998
4002
|
/*$_*/
|
|
3999
4003
|
e[4](`${/*errorcode*/
|
|
@@ -4001,34 +4005,34 @@ function $i(e) {
|
|
|
4001
4005
|
), n;
|
|
4002
4006
|
return {
|
|
4003
4007
|
c() {
|
|
4004
|
-
t =
|
|
4008
|
+
t = C("span"), n = oe(r), D(t, "class", "CashierErrorText");
|
|
4005
4009
|
},
|
|
4006
4010
|
m(i, o) {
|
|
4007
|
-
|
|
4011
|
+
U(i, t, o), O(t, n);
|
|
4008
4012
|
},
|
|
4009
4013
|
p(i, o) {
|
|
4010
4014
|
o & /*$_, errorcode*/
|
|
4011
4015
|
20 && r !== (r = /*$_*/
|
|
4012
4016
|
i[4](`${/*errorcode*/
|
|
4013
|
-
i[2] || "errorGeneralText"}`) + "") &&
|
|
4017
|
+
i[2] || "errorGeneralText"}`) + "") && Je(n, r);
|
|
4014
4018
|
},
|
|
4015
4019
|
d(i) {
|
|
4016
|
-
i &&
|
|
4020
|
+
i && M(t);
|
|
4017
4021
|
}
|
|
4018
4022
|
};
|
|
4019
4023
|
}
|
|
4020
|
-
function
|
|
4024
|
+
function Bt(e) {
|
|
4021
4025
|
let t;
|
|
4022
4026
|
const r = (
|
|
4023
4027
|
/*#slots*/
|
|
4024
4028
|
e[12].button
|
|
4025
|
-
), n =
|
|
4029
|
+
), n = fe(
|
|
4026
4030
|
r,
|
|
4027
4031
|
e,
|
|
4028
4032
|
/*$$scope*/
|
|
4029
4033
|
e[11],
|
|
4030
4034
|
xt
|
|
4031
|
-
), i = n ||
|
|
4035
|
+
), i = n || Di(e);
|
|
4032
4036
|
return {
|
|
4033
4037
|
c() {
|
|
4034
4038
|
i && i.c();
|
|
@@ -4038,19 +4042,19 @@ function St(e) {
|
|
|
4038
4042
|
},
|
|
4039
4043
|
p(o, s) {
|
|
4040
4044
|
n ? n.p && (!t || s & /*$$scope*/
|
|
4041
|
-
2048) &&
|
|
4045
|
+
2048) && de(
|
|
4042
4046
|
n,
|
|
4043
4047
|
r,
|
|
4044
4048
|
o,
|
|
4045
4049
|
/*$$scope*/
|
|
4046
4050
|
o[11],
|
|
4047
|
-
t ?
|
|
4051
|
+
t ? me(
|
|
4048
4052
|
r,
|
|
4049
4053
|
/*$$scope*/
|
|
4050
4054
|
o[11],
|
|
4051
4055
|
s,
|
|
4052
|
-
|
|
4053
|
-
) :
|
|
4056
|
+
Ii
|
|
4057
|
+
) : pe(
|
|
4054
4058
|
/*$$scope*/
|
|
4055
4059
|
o[11]
|
|
4056
4060
|
),
|
|
@@ -4059,27 +4063,27 @@ function St(e) {
|
|
|
4059
4063
|
16) && i.p(o, t ? s : -1);
|
|
4060
4064
|
},
|
|
4061
4065
|
i(o) {
|
|
4062
|
-
t || (
|
|
4066
|
+
t || (N(i, o), t = !0);
|
|
4063
4067
|
},
|
|
4064
4068
|
o(o) {
|
|
4065
|
-
|
|
4069
|
+
z(i, o), t = !1;
|
|
4066
4070
|
},
|
|
4067
4071
|
d(o) {
|
|
4068
4072
|
i && i.d(o);
|
|
4069
4073
|
}
|
|
4070
4074
|
};
|
|
4071
4075
|
}
|
|
4072
|
-
function
|
|
4076
|
+
function Di(e) {
|
|
4073
4077
|
let t, r, n = (
|
|
4074
4078
|
/*$_*/
|
|
4075
4079
|
e[4]("errorGeneralButton") + ""
|
|
4076
4080
|
), i, o, s;
|
|
4077
4081
|
return {
|
|
4078
4082
|
c() {
|
|
4079
|
-
t =
|
|
4083
|
+
t = C("button"), r = C("span"), i = oe(n), D(t, "class", "CashierErrorButton");
|
|
4080
4084
|
},
|
|
4081
4085
|
m(a, l) {
|
|
4082
|
-
|
|
4086
|
+
U(a, t, l), O(t, r), O(r, i), o || (s = br(
|
|
4083
4087
|
t,
|
|
4084
4088
|
"click",
|
|
4085
4089
|
/*close*/
|
|
@@ -4089,142 +4093,142 @@ function Ri(e) {
|
|
|
4089
4093
|
p(a, l) {
|
|
4090
4094
|
l & /*$_*/
|
|
4091
4095
|
16 && n !== (n = /*$_*/
|
|
4092
|
-
a[4]("errorGeneralButton") + "") &&
|
|
4096
|
+
a[4]("errorGeneralButton") + "") && Je(i, n);
|
|
4093
4097
|
},
|
|
4094
4098
|
d(a) {
|
|
4095
|
-
a &&
|
|
4099
|
+
a && M(t), o = !1, s();
|
|
4096
4100
|
}
|
|
4097
4101
|
};
|
|
4098
4102
|
}
|
|
4099
|
-
function
|
|
4103
|
+
function Ui(e) {
|
|
4100
4104
|
let t, r, n, i, o, s;
|
|
4101
4105
|
const a = (
|
|
4102
4106
|
/*#slots*/
|
|
4103
4107
|
e[12].icon
|
|
4104
|
-
), l =
|
|
4108
|
+
), l = fe(
|
|
4105
4109
|
a,
|
|
4106
4110
|
e,
|
|
4107
4111
|
/*$$scope*/
|
|
4108
4112
|
e[11],
|
|
4109
|
-
|
|
4110
|
-
), u = l ||
|
|
4113
|
+
wt
|
|
4114
|
+
), u = l || Mi(e), h = (
|
|
4111
4115
|
/*#slots*/
|
|
4112
4116
|
e[12].title
|
|
4113
|
-
), f =
|
|
4117
|
+
), f = fe(
|
|
4114
4118
|
h,
|
|
4115
4119
|
e,
|
|
4116
4120
|
/*$$scope*/
|
|
4117
4121
|
e[11],
|
|
4118
4122
|
Ht
|
|
4119
|
-
), c = f ||
|
|
4123
|
+
), c = f || $i(e), y = (
|
|
4120
4124
|
/*#slots*/
|
|
4121
4125
|
e[12].text
|
|
4122
|
-
),
|
|
4126
|
+
), p = fe(
|
|
4123
4127
|
y,
|
|
4124
4128
|
e,
|
|
4125
4129
|
/*$$scope*/
|
|
4126
4130
|
e[11],
|
|
4127
4131
|
Tt
|
|
4128
|
-
),
|
|
4129
|
-
let
|
|
4132
|
+
), E = p || Ri(e);
|
|
4133
|
+
let _ = (!/*hidebuttons*/
|
|
4130
4134
|
e[1] || /*hidebuttons*/
|
|
4131
|
-
e[1] === "false") &&
|
|
4135
|
+
e[1] === "false") && Bt(e);
|
|
4132
4136
|
return {
|
|
4133
4137
|
c() {
|
|
4134
|
-
t =
|
|
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");
|
|
4135
4139
|
},
|
|
4136
|
-
m(m,
|
|
4137
|
-
|
|
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;
|
|
4138
4142
|
},
|
|
4139
|
-
p(m, [
|
|
4140
|
-
l ? l.p && (!s ||
|
|
4141
|
-
2048) &&
|
|
4143
|
+
p(m, [v]) {
|
|
4144
|
+
l ? l.p && (!s || v & /*$$scope*/
|
|
4145
|
+
2048) && de(
|
|
4142
4146
|
l,
|
|
4143
4147
|
a,
|
|
4144
4148
|
m,
|
|
4145
4149
|
/*$$scope*/
|
|
4146
4150
|
m[11],
|
|
4147
|
-
s ?
|
|
4151
|
+
s ? me(
|
|
4148
4152
|
a,
|
|
4149
4153
|
/*$$scope*/
|
|
4150
4154
|
m[11],
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
) :
|
|
4155
|
+
v,
|
|
4156
|
+
Li
|
|
4157
|
+
) : pe(
|
|
4154
4158
|
/*$$scope*/
|
|
4155
4159
|
m[11]
|
|
4156
4160
|
),
|
|
4157
|
-
|
|
4158
|
-
) : u && u.p && (!s ||
|
|
4159
|
-
1) && u.p(m, s ?
|
|
4160
|
-
2048) &&
|
|
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(
|
|
4161
4165
|
f,
|
|
4162
4166
|
h,
|
|
4163
4167
|
m,
|
|
4164
4168
|
/*$$scope*/
|
|
4165
4169
|
m[11],
|
|
4166
|
-
s ?
|
|
4170
|
+
s ? me(
|
|
4167
4171
|
h,
|
|
4168
4172
|
/*$$scope*/
|
|
4169
4173
|
m[11],
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
) :
|
|
4174
|
+
v,
|
|
4175
|
+
Ni
|
|
4176
|
+
) : pe(
|
|
4173
4177
|
/*$$scope*/
|
|
4174
4178
|
m[11]
|
|
4175
4179
|
),
|
|
4176
4180
|
Ht
|
|
4177
|
-
) : c && c.p && (!s ||
|
|
4178
|
-
16) && c.p(m, s ?
|
|
4179
|
-
2048) &&
|
|
4180
|
-
|
|
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,
|
|
4181
4185
|
y,
|
|
4182
4186
|
m,
|
|
4183
4187
|
/*$$scope*/
|
|
4184
4188
|
m[11],
|
|
4185
|
-
s ?
|
|
4189
|
+
s ? me(
|
|
4186
4190
|
y,
|
|
4187
4191
|
/*$$scope*/
|
|
4188
4192
|
m[11],
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
) :
|
|
4193
|
+
v,
|
|
4194
|
+
Ci
|
|
4195
|
+
) : pe(
|
|
4192
4196
|
/*$$scope*/
|
|
4193
4197
|
m[11]
|
|
4194
4198
|
),
|
|
4195
4199
|
Tt
|
|
4196
|
-
) :
|
|
4197
|
-
20) &&
|
|
4200
|
+
) : E && E.p && (!s || v & /*$_, errorcode*/
|
|
4201
|
+
20) && E.p(m, s ? v : -1), !/*hidebuttons*/
|
|
4198
4202
|
m[1] || /*hidebuttons*/
|
|
4199
|
-
m[1] === "false" ?
|
|
4200
|
-
2 &&
|
|
4201
|
-
|
|
4202
|
-
}),
|
|
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());
|
|
4203
4207
|
},
|
|
4204
4208
|
i(m) {
|
|
4205
|
-
s || (
|
|
4209
|
+
s || (N(u, m), N(c, m), N(E, m), N(_), s = !0);
|
|
4206
4210
|
},
|
|
4207
4211
|
o(m) {
|
|
4208
|
-
|
|
4212
|
+
z(u, m), z(c, m), z(E, m), z(_), s = !1;
|
|
4209
4213
|
},
|
|
4210
4214
|
d(m) {
|
|
4211
|
-
m &&
|
|
4215
|
+
m && M(t), u && u.d(m), c && c.d(m), E && E.d(m), _ && _.d(), e[13](null);
|
|
4212
4216
|
}
|
|
4213
4217
|
};
|
|
4214
4218
|
}
|
|
4215
|
-
function
|
|
4219
|
+
function Gi(e, t, r) {
|
|
4216
4220
|
let n;
|
|
4217
|
-
cr(e,
|
|
4218
|
-
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,
|
|
4219
|
-
const
|
|
4220
|
-
|
|
4221
|
-
},
|
|
4222
|
-
fetch(c).then((
|
|
4223
|
-
Object.keys(
|
|
4224
|
-
Et(
|
|
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]);
|
|
4225
4229
|
});
|
|
4226
|
-
}).catch((
|
|
4227
|
-
console.error(
|
|
4230
|
+
}).catch((w) => {
|
|
4231
|
+
console.error(w);
|
|
4228
4232
|
});
|
|
4229
4233
|
};
|
|
4230
4234
|
Object.keys(vt).forEach((d) => {
|
|
@@ -4235,25 +4239,25 @@ function Ui(e, t, r) {
|
|
|
4235
4239
|
};
|
|
4236
4240
|
Er(() => () => {
|
|
4237
4241
|
});
|
|
4238
|
-
function
|
|
4239
|
-
|
|
4240
|
-
|
|
4242
|
+
function v(d) {
|
|
4243
|
+
Re[d ? "unshift" : "push"](() => {
|
|
4244
|
+
p = d, r(3, p);
|
|
4241
4245
|
});
|
|
4242
4246
|
}
|
|
4243
4247
|
return e.$$set = (d) => {
|
|
4244
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);
|
|
4245
4249
|
}, e.$$.update = () => {
|
|
4246
4250
|
e.$$.dirty & /*lang*/
|
|
4247
|
-
64 && a &&
|
|
4248
|
-
136 && h &&
|
|
4249
|
-
264 && f &&
|
|
4250
|
-
1032 && y &&
|
|
4251
|
-
512 && c &&
|
|
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 && _();
|
|
4252
4256
|
}, [
|
|
4253
4257
|
s,
|
|
4254
4258
|
l,
|
|
4255
4259
|
u,
|
|
4256
|
-
|
|
4260
|
+
p,
|
|
4257
4261
|
n,
|
|
4258
4262
|
m,
|
|
4259
4263
|
a,
|
|
@@ -4263,16 +4267,16 @@ function Ui(e, t, r) {
|
|
|
4263
4267
|
y,
|
|
4264
4268
|
o,
|
|
4265
4269
|
i,
|
|
4266
|
-
|
|
4270
|
+
v
|
|
4267
4271
|
];
|
|
4268
4272
|
}
|
|
4269
|
-
class
|
|
4273
|
+
class ki extends Cr {
|
|
4270
4274
|
constructor(t) {
|
|
4271
4275
|
super(), Or(
|
|
4272
4276
|
this,
|
|
4273
4277
|
t,
|
|
4278
|
+
Gi,
|
|
4274
4279
|
Ui,
|
|
4275
|
-
Di,
|
|
4276
4280
|
Pt,
|
|
4277
4281
|
{
|
|
4278
4282
|
assetsurl: 0,
|
|
@@ -4284,7 +4288,7 @@ class Gi extends Cr {
|
|
|
4284
4288
|
translationurl: 9,
|
|
4285
4289
|
mbsource: 10
|
|
4286
4290
|
},
|
|
4287
|
-
|
|
4291
|
+
Oi
|
|
4288
4292
|
);
|
|
4289
4293
|
}
|
|
4290
4294
|
get assetsurl() {
|
|
@@ -4336,7 +4340,7 @@ class Gi extends Cr {
|
|
|
4336
4340
|
this.$$set({ mbsource: t }), A();
|
|
4337
4341
|
}
|
|
4338
4342
|
}
|
|
4339
|
-
Ir(
|
|
4343
|
+
Ir(ki, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4340
4344
|
export {
|
|
4341
|
-
|
|
4345
|
+
ki as default
|
|
4342
4346
|
};
|