@everymatrix/cashier-methods-list 1.54.4 → 1.54.8
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/CashierMethodsList-BXCwLXmo.cjs +5 -0
- package/components/{CashierMethodsList-BtUC3T4Y.js → CashierMethodsList-CBiRoKUB.js} +367 -371
- package/components/CashierMethodsList-CLWglum6.js +4786 -0
- package/es2015/cashier-methods-list.cjs +1 -0
- package/es2015/cashier-methods-list.js +16 -0
- package/esnext/cashier-methods-list.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4786 @@
|
|
|
1
|
+
var Nn = Object.defineProperty, Cn = Object.defineProperties;
|
|
2
|
+
var In = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var wt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Dn = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var qe = (e, t, n) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, De = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
Dn.call(t, n) && qe(e, n, t[n]);
|
|
8
|
+
if (wt)
|
|
9
|
+
for (var n of wt(t))
|
|
10
|
+
Rn.call(t, n) && qe(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, Re = (e, t) => Cn(e, In(t));
|
|
13
|
+
var te = (e, t, n) => qe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
var St = (e, t, n) => new Promise((r, i) => {
|
|
15
|
+
var s = (l) => {
|
|
16
|
+
try {
|
|
17
|
+
o(n.next(l));
|
|
18
|
+
} catch (u) {
|
|
19
|
+
i(u);
|
|
20
|
+
}
|
|
21
|
+
}, a = (l) => {
|
|
22
|
+
try {
|
|
23
|
+
o(n.throw(l));
|
|
24
|
+
} catch (u) {
|
|
25
|
+
i(u);
|
|
26
|
+
}
|
|
27
|
+
}, o = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
|
+
o((n = n.apply(e, t)).next());
|
|
29
|
+
});
|
|
30
|
+
function ie() {
|
|
31
|
+
}
|
|
32
|
+
function Kt(e) {
|
|
33
|
+
return e();
|
|
34
|
+
}
|
|
35
|
+
function Tt() {
|
|
36
|
+
return /* @__PURE__ */ Object.create(null);
|
|
37
|
+
}
|
|
38
|
+
function He(e) {
|
|
39
|
+
e.forEach(Kt);
|
|
40
|
+
}
|
|
41
|
+
function yt(e) {
|
|
42
|
+
return typeof e == "function";
|
|
43
|
+
}
|
|
44
|
+
function en(e, t) {
|
|
45
|
+
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
|
+
}
|
|
47
|
+
let Ue;
|
|
48
|
+
function Ht(e, t) {
|
|
49
|
+
return e === t ? !0 : (Ue || (Ue = document.createElement("a")), Ue.href = t, e === Ue.href);
|
|
50
|
+
}
|
|
51
|
+
function Un(e) {
|
|
52
|
+
return Object.keys(e).length === 0;
|
|
53
|
+
}
|
|
54
|
+
function tn(e, ...t) {
|
|
55
|
+
if (e == null) {
|
|
56
|
+
for (const r of t)
|
|
57
|
+
r(void 0);
|
|
58
|
+
return ie;
|
|
59
|
+
}
|
|
60
|
+
const n = e.subscribe(...t);
|
|
61
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
62
|
+
}
|
|
63
|
+
function Gn(e, t, n) {
|
|
64
|
+
e.$$.on_destroy.push(tn(t, n));
|
|
65
|
+
}
|
|
66
|
+
function B(e, t) {
|
|
67
|
+
e.appendChild(t);
|
|
68
|
+
}
|
|
69
|
+
function Fn(e, t, n) {
|
|
70
|
+
const r = kn(e);
|
|
71
|
+
if (!r.getElementById(t)) {
|
|
72
|
+
const i = Y("style");
|
|
73
|
+
i.id = t, i.textContent = n, jn(r, i);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function kn(e) {
|
|
77
|
+
if (!e) return document;
|
|
78
|
+
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
|
+
return t && /** @type {ShadowRoot} */
|
|
80
|
+
t.host ? (
|
|
81
|
+
/** @type {ShadowRoot} */
|
|
82
|
+
t
|
|
83
|
+
) : e.ownerDocument;
|
|
84
|
+
}
|
|
85
|
+
function jn(e, t) {
|
|
86
|
+
return B(
|
|
87
|
+
/** @type {Document} */
|
|
88
|
+
e.head || e,
|
|
89
|
+
t
|
|
90
|
+
), t.sheet;
|
|
91
|
+
}
|
|
92
|
+
function he(e, t, n) {
|
|
93
|
+
e.insertBefore(t, n || null);
|
|
94
|
+
}
|
|
95
|
+
function ae(e) {
|
|
96
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
97
|
+
}
|
|
98
|
+
function Vn(e, t) {
|
|
99
|
+
for (let n = 0; n < e.length; n += 1)
|
|
100
|
+
e[n] && e[n].d(t);
|
|
101
|
+
}
|
|
102
|
+
function Y(e) {
|
|
103
|
+
return document.createElement(e);
|
|
104
|
+
}
|
|
105
|
+
function re(e) {
|
|
106
|
+
return document.createTextNode(e);
|
|
107
|
+
}
|
|
108
|
+
function ne() {
|
|
109
|
+
return re(" ");
|
|
110
|
+
}
|
|
111
|
+
function Xn() {
|
|
112
|
+
return re("");
|
|
113
|
+
}
|
|
114
|
+
function ot(e, t, n, r) {
|
|
115
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
116
|
+
}
|
|
117
|
+
function z(e, t, n) {
|
|
118
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
119
|
+
}
|
|
120
|
+
function J(e, t, n) {
|
|
121
|
+
const r = t.toLowerCase();
|
|
122
|
+
r in e ? e[r] = typeof e[r] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : z(e, t, n);
|
|
123
|
+
}
|
|
124
|
+
function Wn(e) {
|
|
125
|
+
return Array.from(e.childNodes);
|
|
126
|
+
}
|
|
127
|
+
function le(e, t) {
|
|
128
|
+
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
129
|
+
t);
|
|
130
|
+
}
|
|
131
|
+
function Mt(e, t, n) {
|
|
132
|
+
e.classList.toggle(t, !!n);
|
|
133
|
+
}
|
|
134
|
+
function zn(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
135
|
+
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
136
|
+
}
|
|
137
|
+
function Yn(e) {
|
|
138
|
+
const t = {};
|
|
139
|
+
return e.childNodes.forEach(
|
|
140
|
+
/** @param {Element} node */
|
|
141
|
+
(n) => {
|
|
142
|
+
t[n.slot || "default"] = !0;
|
|
143
|
+
}
|
|
144
|
+
), t;
|
|
145
|
+
}
|
|
146
|
+
let Be;
|
|
147
|
+
function $e(e) {
|
|
148
|
+
Be = e;
|
|
149
|
+
}
|
|
150
|
+
function nn() {
|
|
151
|
+
if (!Be) throw new Error("Function called outside component initialization");
|
|
152
|
+
return Be;
|
|
153
|
+
}
|
|
154
|
+
function Zn(e) {
|
|
155
|
+
nn().$$.on_mount.push(e);
|
|
156
|
+
}
|
|
157
|
+
function Jn() {
|
|
158
|
+
const e = nn();
|
|
159
|
+
return (t, n, { cancelable: r = !1 } = {}) => {
|
|
160
|
+
const i = e.$$.callbacks[t];
|
|
161
|
+
if (i) {
|
|
162
|
+
const s = zn(
|
|
163
|
+
/** @type {string} */
|
|
164
|
+
t,
|
|
165
|
+
n,
|
|
166
|
+
{ cancelable: r }
|
|
167
|
+
);
|
|
168
|
+
return i.slice().forEach((a) => {
|
|
169
|
+
a.call(e, s);
|
|
170
|
+
}), !s.defaultPrevented;
|
|
171
|
+
}
|
|
172
|
+
return !0;
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
const xe = [], at = [];
|
|
176
|
+
let Ee = [];
|
|
177
|
+
const Lt = [], Qn = /* @__PURE__ */ Promise.resolve();
|
|
178
|
+
let ut = !1;
|
|
179
|
+
function qn() {
|
|
180
|
+
ut || (ut = !0, Qn.then(K));
|
|
181
|
+
}
|
|
182
|
+
function lt(e) {
|
|
183
|
+
Ee.push(e);
|
|
184
|
+
}
|
|
185
|
+
const Ke = /* @__PURE__ */ new Set();
|
|
186
|
+
let ye = 0;
|
|
187
|
+
function K() {
|
|
188
|
+
if (ye !== 0)
|
|
189
|
+
return;
|
|
190
|
+
const e = Be;
|
|
191
|
+
do {
|
|
192
|
+
try {
|
|
193
|
+
for (; ye < xe.length; ) {
|
|
194
|
+
const t = xe[ye];
|
|
195
|
+
ye++, $e(t), Kn(t.$$);
|
|
196
|
+
}
|
|
197
|
+
} catch (t) {
|
|
198
|
+
throw xe.length = 0, ye = 0, t;
|
|
199
|
+
}
|
|
200
|
+
for ($e(null), xe.length = 0, ye = 0; at.length; ) at.pop()();
|
|
201
|
+
for (let t = 0; t < Ee.length; t += 1) {
|
|
202
|
+
const n = Ee[t];
|
|
203
|
+
Ke.has(n) || (Ke.add(n), n());
|
|
204
|
+
}
|
|
205
|
+
Ee.length = 0;
|
|
206
|
+
} while (xe.length);
|
|
207
|
+
for (; Lt.length; )
|
|
208
|
+
Lt.pop()();
|
|
209
|
+
ut = !1, Ke.clear(), $e(e);
|
|
210
|
+
}
|
|
211
|
+
function Kn(e) {
|
|
212
|
+
if (e.fragment !== null) {
|
|
213
|
+
e.update(), He(e.before_update);
|
|
214
|
+
const t = e.dirty;
|
|
215
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(lt);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
function er(e) {
|
|
219
|
+
const t = [], n = [];
|
|
220
|
+
Ee.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ee = t;
|
|
221
|
+
}
|
|
222
|
+
const tr = /* @__PURE__ */ new Set();
|
|
223
|
+
function nr(e, t) {
|
|
224
|
+
e && e.i && (tr.delete(e), e.i(t));
|
|
225
|
+
}
|
|
226
|
+
function At(e) {
|
|
227
|
+
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
228
|
+
}
|
|
229
|
+
function rr(e, t, n) {
|
|
230
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
231
|
+
r && r.m(t, n), lt(() => {
|
|
232
|
+
const s = e.$$.on_mount.map(Kt).filter(yt);
|
|
233
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : He(s), e.$$.on_mount = [];
|
|
234
|
+
}), i.forEach(lt);
|
|
235
|
+
}
|
|
236
|
+
function ir(e, t) {
|
|
237
|
+
const n = e.$$;
|
|
238
|
+
n.fragment !== null && (er(n.after_update), He(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
239
|
+
}
|
|
240
|
+
function sr(e, t) {
|
|
241
|
+
e.$$.dirty[0] === -1 && (xe.push(e), qn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
242
|
+
}
|
|
243
|
+
function or(e, t, n, r, i, s, a = null, o = [-1]) {
|
|
244
|
+
const l = Be;
|
|
245
|
+
$e(e);
|
|
246
|
+
const u = e.$$ = {
|
|
247
|
+
fragment: null,
|
|
248
|
+
ctx: [],
|
|
249
|
+
// state
|
|
250
|
+
props: s,
|
|
251
|
+
update: ie,
|
|
252
|
+
not_equal: i,
|
|
253
|
+
bound: Tt(),
|
|
254
|
+
// lifecycle
|
|
255
|
+
on_mount: [],
|
|
256
|
+
on_destroy: [],
|
|
257
|
+
on_disconnect: [],
|
|
258
|
+
before_update: [],
|
|
259
|
+
after_update: [],
|
|
260
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
261
|
+
// everything else
|
|
262
|
+
callbacks: Tt(),
|
|
263
|
+
dirty: o,
|
|
264
|
+
skip_bound: !1,
|
|
265
|
+
root: t.target || l.$$.root
|
|
266
|
+
};
|
|
267
|
+
a && a(u.root);
|
|
268
|
+
let h = !1;
|
|
269
|
+
if (u.ctx = n ? n(e, t.props || {}, (c, p, ...E) => {
|
|
270
|
+
const w = E.length ? E[0] : p;
|
|
271
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = w) && (!u.skip_bound && u.bound[c] && u.bound[c](w), h && sr(e, c)), p;
|
|
272
|
+
}) : [], u.update(), h = !0, He(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
273
|
+
if (t.hydrate) {
|
|
274
|
+
const c = Wn(t.target);
|
|
275
|
+
u.fragment && u.fragment.l(c), c.forEach(ae);
|
|
276
|
+
} else
|
|
277
|
+
u.fragment && u.fragment.c();
|
|
278
|
+
t.intro && nr(e.$$.fragment), rr(e, t.target, t.anchor), K();
|
|
279
|
+
}
|
|
280
|
+
$e(l);
|
|
281
|
+
}
|
|
282
|
+
let rn;
|
|
283
|
+
typeof HTMLElement == "function" && (rn = class extends HTMLElement {
|
|
284
|
+
constructor(t, n, r) {
|
|
285
|
+
super();
|
|
286
|
+
/** The Svelte component constructor */
|
|
287
|
+
te(this, "$$ctor");
|
|
288
|
+
/** Slots */
|
|
289
|
+
te(this, "$$s");
|
|
290
|
+
/** The Svelte component instance */
|
|
291
|
+
te(this, "$$c");
|
|
292
|
+
/** Whether or not the custom element is connected */
|
|
293
|
+
te(this, "$$cn", !1);
|
|
294
|
+
/** Component props data */
|
|
295
|
+
te(this, "$$d", {});
|
|
296
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
297
|
+
te(this, "$$r", !1);
|
|
298
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
299
|
+
te(this, "$$p_d", {});
|
|
300
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
301
|
+
te(this, "$$l", {});
|
|
302
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
303
|
+
te(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
304
|
+
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
305
|
+
}
|
|
306
|
+
addEventListener(t, n, r) {
|
|
307
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
308
|
+
const i = this.$$c.$on(t, n);
|
|
309
|
+
this.$$l_u.set(n, i);
|
|
310
|
+
}
|
|
311
|
+
super.addEventListener(t, n, r);
|
|
312
|
+
}
|
|
313
|
+
removeEventListener(t, n, r) {
|
|
314
|
+
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
315
|
+
const i = this.$$l_u.get(n);
|
|
316
|
+
i && (i(), this.$$l_u.delete(n));
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
connectedCallback() {
|
|
320
|
+
return St(this, null, function* () {
|
|
321
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
322
|
+
let t = function(s) {
|
|
323
|
+
return () => {
|
|
324
|
+
let a;
|
|
325
|
+
return {
|
|
326
|
+
c: function() {
|
|
327
|
+
a = Y("slot"), s !== "default" && z(a, "name", s);
|
|
328
|
+
},
|
|
329
|
+
/**
|
|
330
|
+
* @param {HTMLElement} target
|
|
331
|
+
* @param {HTMLElement} [anchor]
|
|
332
|
+
*/
|
|
333
|
+
m: function(u, h) {
|
|
334
|
+
he(u, a, h);
|
|
335
|
+
},
|
|
336
|
+
d: function(u) {
|
|
337
|
+
u && ae(a);
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
343
|
+
return;
|
|
344
|
+
const n = {}, r = Yn(this);
|
|
345
|
+
for (const s of this.$$s)
|
|
346
|
+
s in r && (n[s] = [t(s)]);
|
|
347
|
+
for (const s of this.attributes) {
|
|
348
|
+
const a = this.$$g_p(s.name);
|
|
349
|
+
a in this.$$d || (this.$$d[a] = Fe(a, s.value, this.$$p_d, "toProp"));
|
|
350
|
+
}
|
|
351
|
+
for (const s in this.$$p_d)
|
|
352
|
+
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
353
|
+
this.$$c = new this.$$ctor({
|
|
354
|
+
target: this.shadowRoot || this,
|
|
355
|
+
props: Re(De({}, this.$$d), {
|
|
356
|
+
$$slots: n,
|
|
357
|
+
$$scope: {
|
|
358
|
+
ctx: []
|
|
359
|
+
}
|
|
360
|
+
})
|
|
361
|
+
});
|
|
362
|
+
const i = () => {
|
|
363
|
+
this.$$r = !0;
|
|
364
|
+
for (const s in this.$$p_d)
|
|
365
|
+
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
366
|
+
const a = Fe(
|
|
367
|
+
s,
|
|
368
|
+
this.$$d[s],
|
|
369
|
+
this.$$p_d,
|
|
370
|
+
"toAttribute"
|
|
371
|
+
);
|
|
372
|
+
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
373
|
+
}
|
|
374
|
+
this.$$r = !1;
|
|
375
|
+
};
|
|
376
|
+
this.$$c.$$.after_update.push(i), i();
|
|
377
|
+
for (const s in this.$$l)
|
|
378
|
+
for (const a of this.$$l[s]) {
|
|
379
|
+
const o = this.$$c.$on(s, a);
|
|
380
|
+
this.$$l_u.set(a, o);
|
|
381
|
+
}
|
|
382
|
+
this.$$l = {};
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
387
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
388
|
+
attributeChangedCallback(t, n, r) {
|
|
389
|
+
var i;
|
|
390
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Fe(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
391
|
+
}
|
|
392
|
+
disconnectedCallback() {
|
|
393
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
394
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
$$g_p(t) {
|
|
398
|
+
return Object.keys(this.$$p_d).find(
|
|
399
|
+
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
400
|
+
) || t;
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
function Fe(e, t, n, r) {
|
|
404
|
+
var s;
|
|
405
|
+
const i = (s = n[e]) == null ? void 0 : s.type;
|
|
406
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
407
|
+
return t;
|
|
408
|
+
if (r === "toAttribute")
|
|
409
|
+
switch (i) {
|
|
410
|
+
case "Object":
|
|
411
|
+
case "Array":
|
|
412
|
+
return t == null ? null : JSON.stringify(t);
|
|
413
|
+
case "Boolean":
|
|
414
|
+
return t ? "" : null;
|
|
415
|
+
case "Number":
|
|
416
|
+
return t == null ? null : t;
|
|
417
|
+
default:
|
|
418
|
+
return t;
|
|
419
|
+
}
|
|
420
|
+
else
|
|
421
|
+
switch (i) {
|
|
422
|
+
case "Object":
|
|
423
|
+
case "Array":
|
|
424
|
+
return t && JSON.parse(t);
|
|
425
|
+
case "Boolean":
|
|
426
|
+
return t;
|
|
427
|
+
case "Number":
|
|
428
|
+
return t != null ? +t : t;
|
|
429
|
+
default:
|
|
430
|
+
return t;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
function ar(e, t, n, r, i, s) {
|
|
434
|
+
let a = class extends rn {
|
|
435
|
+
constructor() {
|
|
436
|
+
super(e, n, i), this.$$p_d = t;
|
|
437
|
+
}
|
|
438
|
+
static get observedAttributes() {
|
|
439
|
+
return Object.keys(t).map(
|
|
440
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
441
|
+
);
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
return Object.keys(t).forEach((o) => {
|
|
445
|
+
Object.defineProperty(a.prototype, o, {
|
|
446
|
+
get() {
|
|
447
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
448
|
+
},
|
|
449
|
+
set(l) {
|
|
450
|
+
var u;
|
|
451
|
+
l = Fe(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
}), r.forEach((o) => {
|
|
455
|
+
Object.defineProperty(a.prototype, o, {
|
|
456
|
+
get() {
|
|
457
|
+
var l;
|
|
458
|
+
return (l = this.$$c) == null ? void 0 : l[o];
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
}), e.element = /** @type {any} */
|
|
462
|
+
a, a;
|
|
463
|
+
}
|
|
464
|
+
class ur {
|
|
465
|
+
constructor() {
|
|
466
|
+
/**
|
|
467
|
+
* ### PRIVATE API
|
|
468
|
+
*
|
|
469
|
+
* Do not use, may change at any time
|
|
470
|
+
*
|
|
471
|
+
* @type {any}
|
|
472
|
+
*/
|
|
473
|
+
te(this, "$$");
|
|
474
|
+
/**
|
|
475
|
+
* ### PRIVATE API
|
|
476
|
+
*
|
|
477
|
+
* Do not use, may change at any time
|
|
478
|
+
*
|
|
479
|
+
* @type {any}
|
|
480
|
+
*/
|
|
481
|
+
te(this, "$$set");
|
|
482
|
+
}
|
|
483
|
+
/** @returns {void} */
|
|
484
|
+
$destroy() {
|
|
485
|
+
ir(this, 1), this.$destroy = ie;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* @template {Extract<keyof Events, string>} K
|
|
489
|
+
* @param {K} type
|
|
490
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
491
|
+
* @returns {() => void}
|
|
492
|
+
*/
|
|
493
|
+
$on(t, n) {
|
|
494
|
+
if (!yt(n))
|
|
495
|
+
return ie;
|
|
496
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
497
|
+
return r.push(n), () => {
|
|
498
|
+
const i = r.indexOf(n);
|
|
499
|
+
i !== -1 && r.splice(i, 1);
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* @param {Partial<Props>} props
|
|
504
|
+
* @returns {void}
|
|
505
|
+
*/
|
|
506
|
+
$set(t) {
|
|
507
|
+
this.$$set && !Un(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
const lr = "4";
|
|
511
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(lr);
|
|
512
|
+
const ve = [];
|
|
513
|
+
function hr(e, t) {
|
|
514
|
+
return {
|
|
515
|
+
subscribe: ze(e, t).subscribe
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
function ze(e, t = ie) {
|
|
519
|
+
let n;
|
|
520
|
+
const r = /* @__PURE__ */ new Set();
|
|
521
|
+
function i(o) {
|
|
522
|
+
if (en(e, o) && (e = o, n)) {
|
|
523
|
+
const l = !ve.length;
|
|
524
|
+
for (const u of r)
|
|
525
|
+
u[1](), ve.push(u, e);
|
|
526
|
+
if (l) {
|
|
527
|
+
for (let u = 0; u < ve.length; u += 2)
|
|
528
|
+
ve[u][0](ve[u + 1]);
|
|
529
|
+
ve.length = 0;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
function s(o) {
|
|
534
|
+
i(o(e));
|
|
535
|
+
}
|
|
536
|
+
function a(o, l = ie) {
|
|
537
|
+
const u = [o, l];
|
|
538
|
+
return r.add(u), r.size === 1 && (n = t(i, s) || ie), o(e), () => {
|
|
539
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
return { set: i, update: s, subscribe: a };
|
|
543
|
+
}
|
|
544
|
+
function Me(e, t, n) {
|
|
545
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
546
|
+
if (!i.every(Boolean))
|
|
547
|
+
throw new Error("derived() expects stores as input, got a falsy value");
|
|
548
|
+
const s = t.length < 2;
|
|
549
|
+
return hr(n, (a, o) => {
|
|
550
|
+
let l = !1;
|
|
551
|
+
const u = [];
|
|
552
|
+
let h = 0, c = ie;
|
|
553
|
+
const p = () => {
|
|
554
|
+
if (h)
|
|
555
|
+
return;
|
|
556
|
+
c();
|
|
557
|
+
const w = t(r ? u[0] : u, a, o);
|
|
558
|
+
s ? a(w) : c = yt(w) ? w : ie;
|
|
559
|
+
}, E = i.map(
|
|
560
|
+
(w, b) => tn(
|
|
561
|
+
w,
|
|
562
|
+
(H) => {
|
|
563
|
+
u[b] = H, h &= ~(1 << b), l && p();
|
|
564
|
+
},
|
|
565
|
+
() => {
|
|
566
|
+
h |= 1 << b;
|
|
567
|
+
}
|
|
568
|
+
)
|
|
569
|
+
);
|
|
570
|
+
return l = !0, p(), function() {
|
|
571
|
+
He(E), c(), l = !1;
|
|
572
|
+
};
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
var sn = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
576
|
+
function vt(e) {
|
|
577
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
578
|
+
}
|
|
579
|
+
var fr = function(t) {
|
|
580
|
+
return cr(t) && !mr(t);
|
|
581
|
+
};
|
|
582
|
+
function cr(e) {
|
|
583
|
+
return !!e && typeof e == "object";
|
|
584
|
+
}
|
|
585
|
+
function mr(e) {
|
|
586
|
+
var t = Object.prototype.toString.call(e);
|
|
587
|
+
return t === "[object RegExp]" || t === "[object Date]" || pr(e);
|
|
588
|
+
}
|
|
589
|
+
var dr = typeof Symbol == "function" && Symbol.for, gr = dr ? Symbol.for("react.element") : 60103;
|
|
590
|
+
function pr(e) {
|
|
591
|
+
return e.$$typeof === gr;
|
|
592
|
+
}
|
|
593
|
+
function br(e) {
|
|
594
|
+
return Array.isArray(e) ? [] : {};
|
|
595
|
+
}
|
|
596
|
+
function Pe(e, t) {
|
|
597
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? _e(br(e), e, t) : e;
|
|
598
|
+
}
|
|
599
|
+
function yr(e, t, n) {
|
|
600
|
+
return e.concat(t).map(function(r) {
|
|
601
|
+
return Pe(r, n);
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
function vr(e, t) {
|
|
605
|
+
if (!t.customMerge)
|
|
606
|
+
return _e;
|
|
607
|
+
var n = t.customMerge(e);
|
|
608
|
+
return typeof n == "function" ? n : _e;
|
|
609
|
+
}
|
|
610
|
+
function xr(e) {
|
|
611
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
612
|
+
return Object.propertyIsEnumerable.call(e, t);
|
|
613
|
+
}) : [];
|
|
614
|
+
}
|
|
615
|
+
function Ot(e) {
|
|
616
|
+
return Object.keys(e).concat(xr(e));
|
|
617
|
+
}
|
|
618
|
+
function on(e, t) {
|
|
619
|
+
try {
|
|
620
|
+
return t in e;
|
|
621
|
+
} catch (n) {
|
|
622
|
+
return !1;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
function Er(e, t) {
|
|
626
|
+
return on(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
627
|
+
}
|
|
628
|
+
function _r(e, t, n) {
|
|
629
|
+
var r = {};
|
|
630
|
+
return n.isMergeableObject(e) && Ot(e).forEach(function(i) {
|
|
631
|
+
r[i] = Pe(e[i], n);
|
|
632
|
+
}), Ot(t).forEach(function(i) {
|
|
633
|
+
Er(e, i) || (on(e, i) && n.isMergeableObject(t[i]) ? r[i] = vr(i, n)(e[i], t[i], n) : r[i] = Pe(t[i], n));
|
|
634
|
+
}), r;
|
|
635
|
+
}
|
|
636
|
+
function _e(e, t, n) {
|
|
637
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || yr, n.isMergeableObject = n.isMergeableObject || fr, n.cloneUnlessOtherwiseSpecified = Pe;
|
|
638
|
+
var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
|
|
639
|
+
return s ? r ? n.arrayMerge(e, t, n) : _r(e, t, n) : Pe(t, n);
|
|
640
|
+
}
|
|
641
|
+
_e.all = function(t, n) {
|
|
642
|
+
if (!Array.isArray(t))
|
|
643
|
+
throw new Error("first argument should be an array");
|
|
644
|
+
return t.reduce(function(r, i) {
|
|
645
|
+
return _e(r, i, n);
|
|
646
|
+
}, {});
|
|
647
|
+
};
|
|
648
|
+
var wr = _e, Sr = wr;
|
|
649
|
+
const Tr = /* @__PURE__ */ vt(Sr);
|
|
650
|
+
var ht = function(e, t) {
|
|
651
|
+
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
652
|
+
n.__proto__ = r;
|
|
653
|
+
} || function(n, r) {
|
|
654
|
+
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
655
|
+
}, ht(e, t);
|
|
656
|
+
};
|
|
657
|
+
function Ye(e, t) {
|
|
658
|
+
if (typeof t != "function" && t !== null)
|
|
659
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
660
|
+
ht(e, t);
|
|
661
|
+
function n() {
|
|
662
|
+
this.constructor = e;
|
|
663
|
+
}
|
|
664
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
665
|
+
}
|
|
666
|
+
var O = function() {
|
|
667
|
+
return O = Object.assign || function(t) {
|
|
668
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
669
|
+
n = arguments[r];
|
|
670
|
+
for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
671
|
+
}
|
|
672
|
+
return t;
|
|
673
|
+
}, O.apply(this, arguments);
|
|
674
|
+
};
|
|
675
|
+
function Hr(e, t) {
|
|
676
|
+
var n = {};
|
|
677
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
678
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
679
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
680
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
681
|
+
return n;
|
|
682
|
+
}
|
|
683
|
+
function et(e, t, n) {
|
|
684
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, s; r < i; r++)
|
|
685
|
+
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
686
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
687
|
+
}
|
|
688
|
+
function tt(e, t) {
|
|
689
|
+
var n = t && t.cache ? t.cache : Pr, r = t && t.serializer ? t.serializer : $r, i = t && t.strategy ? t.strategy : Ar;
|
|
690
|
+
return i(e, {
|
|
691
|
+
cache: n,
|
|
692
|
+
serializer: r
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
function Mr(e) {
|
|
696
|
+
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
697
|
+
}
|
|
698
|
+
function Lr(e, t, n, r) {
|
|
699
|
+
var i = Mr(r) ? r : n(r), s = t.get(i);
|
|
700
|
+
return typeof s == "undefined" && (s = e.call(this, r), t.set(i, s)), s;
|
|
701
|
+
}
|
|
702
|
+
function an(e, t, n) {
|
|
703
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
704
|
+
return typeof s == "undefined" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
705
|
+
}
|
|
706
|
+
function un(e, t, n, r, i) {
|
|
707
|
+
return n.bind(t, e, r, i);
|
|
708
|
+
}
|
|
709
|
+
function Ar(e, t) {
|
|
710
|
+
var n = e.length === 1 ? Lr : an;
|
|
711
|
+
return un(e, this, n, t.cache.create(), t.serializer);
|
|
712
|
+
}
|
|
713
|
+
function Or(e, t) {
|
|
714
|
+
return un(e, this, an, t.cache.create(), t.serializer);
|
|
715
|
+
}
|
|
716
|
+
var $r = function() {
|
|
717
|
+
return JSON.stringify(arguments);
|
|
718
|
+
}, Br = (
|
|
719
|
+
/** @class */
|
|
720
|
+
function() {
|
|
721
|
+
function e() {
|
|
722
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
723
|
+
}
|
|
724
|
+
return e.prototype.get = function(t) {
|
|
725
|
+
return this.cache[t];
|
|
726
|
+
}, e.prototype.set = function(t, n) {
|
|
727
|
+
this.cache[t] = n;
|
|
728
|
+
}, e;
|
|
729
|
+
}()
|
|
730
|
+
), Pr = {
|
|
731
|
+
create: function() {
|
|
732
|
+
return new Br();
|
|
733
|
+
}
|
|
734
|
+
}, nt = {
|
|
735
|
+
variadic: Or
|
|
736
|
+
}, M;
|
|
737
|
+
(function(e) {
|
|
738
|
+
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";
|
|
739
|
+
})(M || (M = {}));
|
|
740
|
+
var D;
|
|
741
|
+
(function(e) {
|
|
742
|
+
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";
|
|
743
|
+
})(D || (D = {}));
|
|
744
|
+
var we;
|
|
745
|
+
(function(e) {
|
|
746
|
+
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
747
|
+
})(we || (we = {}));
|
|
748
|
+
function $t(e) {
|
|
749
|
+
return e.type === D.literal;
|
|
750
|
+
}
|
|
751
|
+
function Nr(e) {
|
|
752
|
+
return e.type === D.argument;
|
|
753
|
+
}
|
|
754
|
+
function ln(e) {
|
|
755
|
+
return e.type === D.number;
|
|
756
|
+
}
|
|
757
|
+
function hn(e) {
|
|
758
|
+
return e.type === D.date;
|
|
759
|
+
}
|
|
760
|
+
function fn(e) {
|
|
761
|
+
return e.type === D.time;
|
|
762
|
+
}
|
|
763
|
+
function cn(e) {
|
|
764
|
+
return e.type === D.select;
|
|
765
|
+
}
|
|
766
|
+
function mn(e) {
|
|
767
|
+
return e.type === D.plural;
|
|
768
|
+
}
|
|
769
|
+
function Cr(e) {
|
|
770
|
+
return e.type === D.pound;
|
|
771
|
+
}
|
|
772
|
+
function dn(e) {
|
|
773
|
+
return e.type === D.tag;
|
|
774
|
+
}
|
|
775
|
+
function gn(e) {
|
|
776
|
+
return !!(e && typeof e == "object" && e.type === we.number);
|
|
777
|
+
}
|
|
778
|
+
function ft(e) {
|
|
779
|
+
return !!(e && typeof e == "object" && e.type === we.dateTime);
|
|
780
|
+
}
|
|
781
|
+
var pn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ir = /(?:[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;
|
|
782
|
+
function Dr(e) {
|
|
783
|
+
var t = {};
|
|
784
|
+
return e.replace(Ir, function(n) {
|
|
785
|
+
var r = n.length;
|
|
786
|
+
switch (n[0]) {
|
|
787
|
+
case "G":
|
|
788
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
789
|
+
break;
|
|
790
|
+
case "y":
|
|
791
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
792
|
+
break;
|
|
793
|
+
case "Y":
|
|
794
|
+
case "u":
|
|
795
|
+
case "U":
|
|
796
|
+
case "r":
|
|
797
|
+
throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
798
|
+
case "q":
|
|
799
|
+
case "Q":
|
|
800
|
+
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
801
|
+
case "M":
|
|
802
|
+
case "L":
|
|
803
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
804
|
+
break;
|
|
805
|
+
case "w":
|
|
806
|
+
case "W":
|
|
807
|
+
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
808
|
+
case "d":
|
|
809
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
810
|
+
break;
|
|
811
|
+
case "D":
|
|
812
|
+
case "F":
|
|
813
|
+
case "g":
|
|
814
|
+
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
815
|
+
case "E":
|
|
816
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
817
|
+
break;
|
|
818
|
+
case "e":
|
|
819
|
+
if (r < 4)
|
|
820
|
+
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
821
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
822
|
+
break;
|
|
823
|
+
case "c":
|
|
824
|
+
if (r < 4)
|
|
825
|
+
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
826
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
827
|
+
break;
|
|
828
|
+
case "a":
|
|
829
|
+
t.hour12 = !0;
|
|
830
|
+
break;
|
|
831
|
+
case "b":
|
|
832
|
+
case "B":
|
|
833
|
+
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
834
|
+
case "h":
|
|
835
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
836
|
+
break;
|
|
837
|
+
case "H":
|
|
838
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
839
|
+
break;
|
|
840
|
+
case "K":
|
|
841
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
842
|
+
break;
|
|
843
|
+
case "k":
|
|
844
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
845
|
+
break;
|
|
846
|
+
case "j":
|
|
847
|
+
case "J":
|
|
848
|
+
case "C":
|
|
849
|
+
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
850
|
+
case "m":
|
|
851
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
852
|
+
break;
|
|
853
|
+
case "s":
|
|
854
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
855
|
+
break;
|
|
856
|
+
case "S":
|
|
857
|
+
case "A":
|
|
858
|
+
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
859
|
+
case "z":
|
|
860
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
861
|
+
break;
|
|
862
|
+
case "Z":
|
|
863
|
+
case "O":
|
|
864
|
+
case "v":
|
|
865
|
+
case "V":
|
|
866
|
+
case "X":
|
|
867
|
+
case "x":
|
|
868
|
+
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
869
|
+
}
|
|
870
|
+
return "";
|
|
871
|
+
}), t;
|
|
872
|
+
}
|
|
873
|
+
var Rr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
874
|
+
function Ur(e) {
|
|
875
|
+
if (e.length === 0)
|
|
876
|
+
throw new Error("Number skeleton cannot be empty");
|
|
877
|
+
for (var t = e.split(Rr).filter(function(p) {
|
|
878
|
+
return p.length > 0;
|
|
879
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
880
|
+
var s = i[r], a = s.split("/");
|
|
881
|
+
if (a.length === 0)
|
|
882
|
+
throw new Error("Invalid number skeleton");
|
|
883
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
884
|
+
var c = h[u];
|
|
885
|
+
if (c.length === 0)
|
|
886
|
+
throw new Error("Invalid number skeleton");
|
|
887
|
+
}
|
|
888
|
+
n.push({ stem: o, options: l });
|
|
889
|
+
}
|
|
890
|
+
return n;
|
|
891
|
+
}
|
|
892
|
+
function Gr(e) {
|
|
893
|
+
return e.replace(/^(.*?)-/, "");
|
|
894
|
+
}
|
|
895
|
+
var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, bn = /^(@+)?(\+|#+)?[rs]?$/g, Fr = /(\*)(0+)|(#+)(0+)|(0+)/g, yn = /^(0+)$/;
|
|
896
|
+
function Pt(e) {
|
|
897
|
+
var t = {};
|
|
898
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(bn, function(n, r, i) {
|
|
899
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
900
|
+
}), t;
|
|
901
|
+
}
|
|
902
|
+
function vn(e) {
|
|
903
|
+
switch (e) {
|
|
904
|
+
case "sign-auto":
|
|
905
|
+
return {
|
|
906
|
+
signDisplay: "auto"
|
|
907
|
+
};
|
|
908
|
+
case "sign-accounting":
|
|
909
|
+
case "()":
|
|
910
|
+
return {
|
|
911
|
+
currencySign: "accounting"
|
|
912
|
+
};
|
|
913
|
+
case "sign-always":
|
|
914
|
+
case "+!":
|
|
915
|
+
return {
|
|
916
|
+
signDisplay: "always"
|
|
917
|
+
};
|
|
918
|
+
case "sign-accounting-always":
|
|
919
|
+
case "()!":
|
|
920
|
+
return {
|
|
921
|
+
signDisplay: "always",
|
|
922
|
+
currencySign: "accounting"
|
|
923
|
+
};
|
|
924
|
+
case "sign-except-zero":
|
|
925
|
+
case "+?":
|
|
926
|
+
return {
|
|
927
|
+
signDisplay: "exceptZero"
|
|
928
|
+
};
|
|
929
|
+
case "sign-accounting-except-zero":
|
|
930
|
+
case "()?":
|
|
931
|
+
return {
|
|
932
|
+
signDisplay: "exceptZero",
|
|
933
|
+
currencySign: "accounting"
|
|
934
|
+
};
|
|
935
|
+
case "sign-never":
|
|
936
|
+
case "+_":
|
|
937
|
+
return {
|
|
938
|
+
signDisplay: "never"
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
function kr(e) {
|
|
943
|
+
var t;
|
|
944
|
+
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
945
|
+
notation: "engineering"
|
|
946
|
+
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
947
|
+
notation: "scientific"
|
|
948
|
+
}, e = e.slice(1)), t) {
|
|
949
|
+
var n = e.slice(0, 2);
|
|
950
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yn.test(e))
|
|
951
|
+
throw new Error("Malformed concise eng/scientific notation");
|
|
952
|
+
t.minimumIntegerDigits = e.length;
|
|
953
|
+
}
|
|
954
|
+
return t;
|
|
955
|
+
}
|
|
956
|
+
function Nt(e) {
|
|
957
|
+
var t = {}, n = vn(e);
|
|
958
|
+
return n || t;
|
|
959
|
+
}
|
|
960
|
+
function jr(e) {
|
|
961
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
962
|
+
var i = r[n];
|
|
963
|
+
switch (i.stem) {
|
|
964
|
+
case "percent":
|
|
965
|
+
case "%":
|
|
966
|
+
t.style = "percent";
|
|
967
|
+
continue;
|
|
968
|
+
case "%x100":
|
|
969
|
+
t.style = "percent", t.scale = 100;
|
|
970
|
+
continue;
|
|
971
|
+
case "currency":
|
|
972
|
+
t.style = "currency", t.currency = i.options[0];
|
|
973
|
+
continue;
|
|
974
|
+
case "group-off":
|
|
975
|
+
case ",_":
|
|
976
|
+
t.useGrouping = !1;
|
|
977
|
+
continue;
|
|
978
|
+
case "precision-integer":
|
|
979
|
+
case ".":
|
|
980
|
+
t.maximumFractionDigits = 0;
|
|
981
|
+
continue;
|
|
982
|
+
case "measure-unit":
|
|
983
|
+
case "unit":
|
|
984
|
+
t.style = "unit", t.unit = Gr(i.options[0]);
|
|
985
|
+
continue;
|
|
986
|
+
case "compact-short":
|
|
987
|
+
case "K":
|
|
988
|
+
t.notation = "compact", t.compactDisplay = "short";
|
|
989
|
+
continue;
|
|
990
|
+
case "compact-long":
|
|
991
|
+
case "KK":
|
|
992
|
+
t.notation = "compact", t.compactDisplay = "long";
|
|
993
|
+
continue;
|
|
994
|
+
case "scientific":
|
|
995
|
+
t = O(O(O({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
996
|
+
return O(O({}, l), Nt(u));
|
|
997
|
+
}, {}));
|
|
998
|
+
continue;
|
|
999
|
+
case "engineering":
|
|
1000
|
+
t = O(O(O({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1001
|
+
return O(O({}, l), Nt(u));
|
|
1002
|
+
}, {}));
|
|
1003
|
+
continue;
|
|
1004
|
+
case "notation-simple":
|
|
1005
|
+
t.notation = "standard";
|
|
1006
|
+
continue;
|
|
1007
|
+
case "unit-width-narrow":
|
|
1008
|
+
t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
|
|
1009
|
+
continue;
|
|
1010
|
+
case "unit-width-short":
|
|
1011
|
+
t.currencyDisplay = "code", t.unitDisplay = "short";
|
|
1012
|
+
continue;
|
|
1013
|
+
case "unit-width-full-name":
|
|
1014
|
+
t.currencyDisplay = "name", t.unitDisplay = "long";
|
|
1015
|
+
continue;
|
|
1016
|
+
case "unit-width-iso-code":
|
|
1017
|
+
t.currencyDisplay = "symbol";
|
|
1018
|
+
continue;
|
|
1019
|
+
case "scale":
|
|
1020
|
+
t.scale = parseFloat(i.options[0]);
|
|
1021
|
+
continue;
|
|
1022
|
+
case "rounding-mode-floor":
|
|
1023
|
+
t.roundingMode = "floor";
|
|
1024
|
+
continue;
|
|
1025
|
+
case "rounding-mode-ceiling":
|
|
1026
|
+
t.roundingMode = "ceil";
|
|
1027
|
+
continue;
|
|
1028
|
+
case "rounding-mode-down":
|
|
1029
|
+
t.roundingMode = "trunc";
|
|
1030
|
+
continue;
|
|
1031
|
+
case "rounding-mode-up":
|
|
1032
|
+
t.roundingMode = "expand";
|
|
1033
|
+
continue;
|
|
1034
|
+
case "rounding-mode-half-even":
|
|
1035
|
+
t.roundingMode = "halfEven";
|
|
1036
|
+
continue;
|
|
1037
|
+
case "rounding-mode-half-down":
|
|
1038
|
+
t.roundingMode = "halfTrunc";
|
|
1039
|
+
continue;
|
|
1040
|
+
case "rounding-mode-half-up":
|
|
1041
|
+
t.roundingMode = "halfExpand";
|
|
1042
|
+
continue;
|
|
1043
|
+
case "integer-width":
|
|
1044
|
+
if (i.options.length > 1)
|
|
1045
|
+
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1046
|
+
i.options[0].replace(Fr, function(l, u, h, c, p, E) {
|
|
1047
|
+
if (u)
|
|
1048
|
+
t.minimumIntegerDigits = h.length;
|
|
1049
|
+
else {
|
|
1050
|
+
if (c && p)
|
|
1051
|
+
throw new Error("We currently do not support maximum integer digits");
|
|
1052
|
+
if (E)
|
|
1053
|
+
throw new Error("We currently do not support exact integer digits");
|
|
1054
|
+
}
|
|
1055
|
+
return "";
|
|
1056
|
+
});
|
|
1057
|
+
continue;
|
|
1058
|
+
}
|
|
1059
|
+
if (yn.test(i.stem)) {
|
|
1060
|
+
t.minimumIntegerDigits = i.stem.length;
|
|
1061
|
+
continue;
|
|
1062
|
+
}
|
|
1063
|
+
if (Bt.test(i.stem)) {
|
|
1064
|
+
if (i.options.length > 1)
|
|
1065
|
+
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1066
|
+
i.stem.replace(Bt, function(l, u, h, c, p, E) {
|
|
1067
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : p && E ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1068
|
+
});
|
|
1069
|
+
var s = i.options[0];
|
|
1070
|
+
s === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = O(O({}, t), Pt(s)));
|
|
1071
|
+
continue;
|
|
1072
|
+
}
|
|
1073
|
+
if (bn.test(i.stem)) {
|
|
1074
|
+
t = O(O({}, t), Pt(i.stem));
|
|
1075
|
+
continue;
|
|
1076
|
+
}
|
|
1077
|
+
var a = vn(i.stem);
|
|
1078
|
+
a && (t = O(O({}, t), a));
|
|
1079
|
+
var o = kr(i.stem);
|
|
1080
|
+
o && (t = O(O({}, t), o));
|
|
1081
|
+
}
|
|
1082
|
+
return t;
|
|
1083
|
+
}
|
|
1084
|
+
var Ge = {
|
|
1085
|
+
"001": [
|
|
1086
|
+
"H",
|
|
1087
|
+
"h"
|
|
1088
|
+
],
|
|
1089
|
+
419: [
|
|
1090
|
+
"h",
|
|
1091
|
+
"H",
|
|
1092
|
+
"hB",
|
|
1093
|
+
"hb"
|
|
1094
|
+
],
|
|
1095
|
+
AC: [
|
|
1096
|
+
"H",
|
|
1097
|
+
"h",
|
|
1098
|
+
"hb",
|
|
1099
|
+
"hB"
|
|
1100
|
+
],
|
|
1101
|
+
AD: [
|
|
1102
|
+
"H",
|
|
1103
|
+
"hB"
|
|
1104
|
+
],
|
|
1105
|
+
AE: [
|
|
1106
|
+
"h",
|
|
1107
|
+
"hB",
|
|
1108
|
+
"hb",
|
|
1109
|
+
"H"
|
|
1110
|
+
],
|
|
1111
|
+
AF: [
|
|
1112
|
+
"H",
|
|
1113
|
+
"hb",
|
|
1114
|
+
"hB",
|
|
1115
|
+
"h"
|
|
1116
|
+
],
|
|
1117
|
+
AG: [
|
|
1118
|
+
"h",
|
|
1119
|
+
"hb",
|
|
1120
|
+
"H",
|
|
1121
|
+
"hB"
|
|
1122
|
+
],
|
|
1123
|
+
AI: [
|
|
1124
|
+
"H",
|
|
1125
|
+
"h",
|
|
1126
|
+
"hb",
|
|
1127
|
+
"hB"
|
|
1128
|
+
],
|
|
1129
|
+
AL: [
|
|
1130
|
+
"h",
|
|
1131
|
+
"H",
|
|
1132
|
+
"hB"
|
|
1133
|
+
],
|
|
1134
|
+
AM: [
|
|
1135
|
+
"H",
|
|
1136
|
+
"hB"
|
|
1137
|
+
],
|
|
1138
|
+
AO: [
|
|
1139
|
+
"H",
|
|
1140
|
+
"hB"
|
|
1141
|
+
],
|
|
1142
|
+
AR: [
|
|
1143
|
+
"h",
|
|
1144
|
+
"H",
|
|
1145
|
+
"hB",
|
|
1146
|
+
"hb"
|
|
1147
|
+
],
|
|
1148
|
+
AS: [
|
|
1149
|
+
"h",
|
|
1150
|
+
"H"
|
|
1151
|
+
],
|
|
1152
|
+
AT: [
|
|
1153
|
+
"H",
|
|
1154
|
+
"hB"
|
|
1155
|
+
],
|
|
1156
|
+
AU: [
|
|
1157
|
+
"h",
|
|
1158
|
+
"hb",
|
|
1159
|
+
"H",
|
|
1160
|
+
"hB"
|
|
1161
|
+
],
|
|
1162
|
+
AW: [
|
|
1163
|
+
"H",
|
|
1164
|
+
"hB"
|
|
1165
|
+
],
|
|
1166
|
+
AX: [
|
|
1167
|
+
"H"
|
|
1168
|
+
],
|
|
1169
|
+
AZ: [
|
|
1170
|
+
"H",
|
|
1171
|
+
"hB",
|
|
1172
|
+
"h"
|
|
1173
|
+
],
|
|
1174
|
+
BA: [
|
|
1175
|
+
"H",
|
|
1176
|
+
"hB",
|
|
1177
|
+
"h"
|
|
1178
|
+
],
|
|
1179
|
+
BB: [
|
|
1180
|
+
"h",
|
|
1181
|
+
"hb",
|
|
1182
|
+
"H",
|
|
1183
|
+
"hB"
|
|
1184
|
+
],
|
|
1185
|
+
BD: [
|
|
1186
|
+
"h",
|
|
1187
|
+
"hB",
|
|
1188
|
+
"H"
|
|
1189
|
+
],
|
|
1190
|
+
BE: [
|
|
1191
|
+
"H",
|
|
1192
|
+
"hB"
|
|
1193
|
+
],
|
|
1194
|
+
BF: [
|
|
1195
|
+
"H",
|
|
1196
|
+
"hB"
|
|
1197
|
+
],
|
|
1198
|
+
BG: [
|
|
1199
|
+
"H",
|
|
1200
|
+
"hB",
|
|
1201
|
+
"h"
|
|
1202
|
+
],
|
|
1203
|
+
BH: [
|
|
1204
|
+
"h",
|
|
1205
|
+
"hB",
|
|
1206
|
+
"hb",
|
|
1207
|
+
"H"
|
|
1208
|
+
],
|
|
1209
|
+
BI: [
|
|
1210
|
+
"H",
|
|
1211
|
+
"h"
|
|
1212
|
+
],
|
|
1213
|
+
BJ: [
|
|
1214
|
+
"H",
|
|
1215
|
+
"hB"
|
|
1216
|
+
],
|
|
1217
|
+
BL: [
|
|
1218
|
+
"H",
|
|
1219
|
+
"hB"
|
|
1220
|
+
],
|
|
1221
|
+
BM: [
|
|
1222
|
+
"h",
|
|
1223
|
+
"hb",
|
|
1224
|
+
"H",
|
|
1225
|
+
"hB"
|
|
1226
|
+
],
|
|
1227
|
+
BN: [
|
|
1228
|
+
"hb",
|
|
1229
|
+
"hB",
|
|
1230
|
+
"h",
|
|
1231
|
+
"H"
|
|
1232
|
+
],
|
|
1233
|
+
BO: [
|
|
1234
|
+
"h",
|
|
1235
|
+
"H",
|
|
1236
|
+
"hB",
|
|
1237
|
+
"hb"
|
|
1238
|
+
],
|
|
1239
|
+
BQ: [
|
|
1240
|
+
"H"
|
|
1241
|
+
],
|
|
1242
|
+
BR: [
|
|
1243
|
+
"H",
|
|
1244
|
+
"hB"
|
|
1245
|
+
],
|
|
1246
|
+
BS: [
|
|
1247
|
+
"h",
|
|
1248
|
+
"hb",
|
|
1249
|
+
"H",
|
|
1250
|
+
"hB"
|
|
1251
|
+
],
|
|
1252
|
+
BT: [
|
|
1253
|
+
"h",
|
|
1254
|
+
"H"
|
|
1255
|
+
],
|
|
1256
|
+
BW: [
|
|
1257
|
+
"H",
|
|
1258
|
+
"h",
|
|
1259
|
+
"hb",
|
|
1260
|
+
"hB"
|
|
1261
|
+
],
|
|
1262
|
+
BY: [
|
|
1263
|
+
"H",
|
|
1264
|
+
"h"
|
|
1265
|
+
],
|
|
1266
|
+
BZ: [
|
|
1267
|
+
"H",
|
|
1268
|
+
"h",
|
|
1269
|
+
"hb",
|
|
1270
|
+
"hB"
|
|
1271
|
+
],
|
|
1272
|
+
CA: [
|
|
1273
|
+
"h",
|
|
1274
|
+
"hb",
|
|
1275
|
+
"H",
|
|
1276
|
+
"hB"
|
|
1277
|
+
],
|
|
1278
|
+
CC: [
|
|
1279
|
+
"H",
|
|
1280
|
+
"h",
|
|
1281
|
+
"hb",
|
|
1282
|
+
"hB"
|
|
1283
|
+
],
|
|
1284
|
+
CD: [
|
|
1285
|
+
"hB",
|
|
1286
|
+
"H"
|
|
1287
|
+
],
|
|
1288
|
+
CF: [
|
|
1289
|
+
"H",
|
|
1290
|
+
"h",
|
|
1291
|
+
"hB"
|
|
1292
|
+
],
|
|
1293
|
+
CG: [
|
|
1294
|
+
"H",
|
|
1295
|
+
"hB"
|
|
1296
|
+
],
|
|
1297
|
+
CH: [
|
|
1298
|
+
"H",
|
|
1299
|
+
"hB",
|
|
1300
|
+
"h"
|
|
1301
|
+
],
|
|
1302
|
+
CI: [
|
|
1303
|
+
"H",
|
|
1304
|
+
"hB"
|
|
1305
|
+
],
|
|
1306
|
+
CK: [
|
|
1307
|
+
"H",
|
|
1308
|
+
"h",
|
|
1309
|
+
"hb",
|
|
1310
|
+
"hB"
|
|
1311
|
+
],
|
|
1312
|
+
CL: [
|
|
1313
|
+
"h",
|
|
1314
|
+
"H",
|
|
1315
|
+
"hB",
|
|
1316
|
+
"hb"
|
|
1317
|
+
],
|
|
1318
|
+
CM: [
|
|
1319
|
+
"H",
|
|
1320
|
+
"h",
|
|
1321
|
+
"hB"
|
|
1322
|
+
],
|
|
1323
|
+
CN: [
|
|
1324
|
+
"H",
|
|
1325
|
+
"hB",
|
|
1326
|
+
"hb",
|
|
1327
|
+
"h"
|
|
1328
|
+
],
|
|
1329
|
+
CO: [
|
|
1330
|
+
"h",
|
|
1331
|
+
"H",
|
|
1332
|
+
"hB",
|
|
1333
|
+
"hb"
|
|
1334
|
+
],
|
|
1335
|
+
CP: [
|
|
1336
|
+
"H"
|
|
1337
|
+
],
|
|
1338
|
+
CR: [
|
|
1339
|
+
"h",
|
|
1340
|
+
"H",
|
|
1341
|
+
"hB",
|
|
1342
|
+
"hb"
|
|
1343
|
+
],
|
|
1344
|
+
CU: [
|
|
1345
|
+
"h",
|
|
1346
|
+
"H",
|
|
1347
|
+
"hB",
|
|
1348
|
+
"hb"
|
|
1349
|
+
],
|
|
1350
|
+
CV: [
|
|
1351
|
+
"H",
|
|
1352
|
+
"hB"
|
|
1353
|
+
],
|
|
1354
|
+
CW: [
|
|
1355
|
+
"H",
|
|
1356
|
+
"hB"
|
|
1357
|
+
],
|
|
1358
|
+
CX: [
|
|
1359
|
+
"H",
|
|
1360
|
+
"h",
|
|
1361
|
+
"hb",
|
|
1362
|
+
"hB"
|
|
1363
|
+
],
|
|
1364
|
+
CY: [
|
|
1365
|
+
"h",
|
|
1366
|
+
"H",
|
|
1367
|
+
"hb",
|
|
1368
|
+
"hB"
|
|
1369
|
+
],
|
|
1370
|
+
CZ: [
|
|
1371
|
+
"H"
|
|
1372
|
+
],
|
|
1373
|
+
DE: [
|
|
1374
|
+
"H",
|
|
1375
|
+
"hB"
|
|
1376
|
+
],
|
|
1377
|
+
DG: [
|
|
1378
|
+
"H",
|
|
1379
|
+
"h",
|
|
1380
|
+
"hb",
|
|
1381
|
+
"hB"
|
|
1382
|
+
],
|
|
1383
|
+
DJ: [
|
|
1384
|
+
"h",
|
|
1385
|
+
"H"
|
|
1386
|
+
],
|
|
1387
|
+
DK: [
|
|
1388
|
+
"H"
|
|
1389
|
+
],
|
|
1390
|
+
DM: [
|
|
1391
|
+
"h",
|
|
1392
|
+
"hb",
|
|
1393
|
+
"H",
|
|
1394
|
+
"hB"
|
|
1395
|
+
],
|
|
1396
|
+
DO: [
|
|
1397
|
+
"h",
|
|
1398
|
+
"H",
|
|
1399
|
+
"hB",
|
|
1400
|
+
"hb"
|
|
1401
|
+
],
|
|
1402
|
+
DZ: [
|
|
1403
|
+
"h",
|
|
1404
|
+
"hB",
|
|
1405
|
+
"hb",
|
|
1406
|
+
"H"
|
|
1407
|
+
],
|
|
1408
|
+
EA: [
|
|
1409
|
+
"H",
|
|
1410
|
+
"h",
|
|
1411
|
+
"hB",
|
|
1412
|
+
"hb"
|
|
1413
|
+
],
|
|
1414
|
+
EC: [
|
|
1415
|
+
"h",
|
|
1416
|
+
"H",
|
|
1417
|
+
"hB",
|
|
1418
|
+
"hb"
|
|
1419
|
+
],
|
|
1420
|
+
EE: [
|
|
1421
|
+
"H",
|
|
1422
|
+
"hB"
|
|
1423
|
+
],
|
|
1424
|
+
EG: [
|
|
1425
|
+
"h",
|
|
1426
|
+
"hB",
|
|
1427
|
+
"hb",
|
|
1428
|
+
"H"
|
|
1429
|
+
],
|
|
1430
|
+
EH: [
|
|
1431
|
+
"h",
|
|
1432
|
+
"hB",
|
|
1433
|
+
"hb",
|
|
1434
|
+
"H"
|
|
1435
|
+
],
|
|
1436
|
+
ER: [
|
|
1437
|
+
"h",
|
|
1438
|
+
"H"
|
|
1439
|
+
],
|
|
1440
|
+
ES: [
|
|
1441
|
+
"H",
|
|
1442
|
+
"hB",
|
|
1443
|
+
"h",
|
|
1444
|
+
"hb"
|
|
1445
|
+
],
|
|
1446
|
+
ET: [
|
|
1447
|
+
"hB",
|
|
1448
|
+
"hb",
|
|
1449
|
+
"h",
|
|
1450
|
+
"H"
|
|
1451
|
+
],
|
|
1452
|
+
FI: [
|
|
1453
|
+
"H"
|
|
1454
|
+
],
|
|
1455
|
+
FJ: [
|
|
1456
|
+
"h",
|
|
1457
|
+
"hb",
|
|
1458
|
+
"H",
|
|
1459
|
+
"hB"
|
|
1460
|
+
],
|
|
1461
|
+
FK: [
|
|
1462
|
+
"H",
|
|
1463
|
+
"h",
|
|
1464
|
+
"hb",
|
|
1465
|
+
"hB"
|
|
1466
|
+
],
|
|
1467
|
+
FM: [
|
|
1468
|
+
"h",
|
|
1469
|
+
"hb",
|
|
1470
|
+
"H",
|
|
1471
|
+
"hB"
|
|
1472
|
+
],
|
|
1473
|
+
FO: [
|
|
1474
|
+
"H",
|
|
1475
|
+
"h"
|
|
1476
|
+
],
|
|
1477
|
+
FR: [
|
|
1478
|
+
"H",
|
|
1479
|
+
"hB"
|
|
1480
|
+
],
|
|
1481
|
+
GA: [
|
|
1482
|
+
"H",
|
|
1483
|
+
"hB"
|
|
1484
|
+
],
|
|
1485
|
+
GB: [
|
|
1486
|
+
"H",
|
|
1487
|
+
"h",
|
|
1488
|
+
"hb",
|
|
1489
|
+
"hB"
|
|
1490
|
+
],
|
|
1491
|
+
GD: [
|
|
1492
|
+
"h",
|
|
1493
|
+
"hb",
|
|
1494
|
+
"H",
|
|
1495
|
+
"hB"
|
|
1496
|
+
],
|
|
1497
|
+
GE: [
|
|
1498
|
+
"H",
|
|
1499
|
+
"hB",
|
|
1500
|
+
"h"
|
|
1501
|
+
],
|
|
1502
|
+
GF: [
|
|
1503
|
+
"H",
|
|
1504
|
+
"hB"
|
|
1505
|
+
],
|
|
1506
|
+
GG: [
|
|
1507
|
+
"H",
|
|
1508
|
+
"h",
|
|
1509
|
+
"hb",
|
|
1510
|
+
"hB"
|
|
1511
|
+
],
|
|
1512
|
+
GH: [
|
|
1513
|
+
"h",
|
|
1514
|
+
"H"
|
|
1515
|
+
],
|
|
1516
|
+
GI: [
|
|
1517
|
+
"H",
|
|
1518
|
+
"h",
|
|
1519
|
+
"hb",
|
|
1520
|
+
"hB"
|
|
1521
|
+
],
|
|
1522
|
+
GL: [
|
|
1523
|
+
"H",
|
|
1524
|
+
"h"
|
|
1525
|
+
],
|
|
1526
|
+
GM: [
|
|
1527
|
+
"h",
|
|
1528
|
+
"hb",
|
|
1529
|
+
"H",
|
|
1530
|
+
"hB"
|
|
1531
|
+
],
|
|
1532
|
+
GN: [
|
|
1533
|
+
"H",
|
|
1534
|
+
"hB"
|
|
1535
|
+
],
|
|
1536
|
+
GP: [
|
|
1537
|
+
"H",
|
|
1538
|
+
"hB"
|
|
1539
|
+
],
|
|
1540
|
+
GQ: [
|
|
1541
|
+
"H",
|
|
1542
|
+
"hB",
|
|
1543
|
+
"h",
|
|
1544
|
+
"hb"
|
|
1545
|
+
],
|
|
1546
|
+
GR: [
|
|
1547
|
+
"h",
|
|
1548
|
+
"H",
|
|
1549
|
+
"hb",
|
|
1550
|
+
"hB"
|
|
1551
|
+
],
|
|
1552
|
+
GT: [
|
|
1553
|
+
"h",
|
|
1554
|
+
"H",
|
|
1555
|
+
"hB",
|
|
1556
|
+
"hb"
|
|
1557
|
+
],
|
|
1558
|
+
GU: [
|
|
1559
|
+
"h",
|
|
1560
|
+
"hb",
|
|
1561
|
+
"H",
|
|
1562
|
+
"hB"
|
|
1563
|
+
],
|
|
1564
|
+
GW: [
|
|
1565
|
+
"H",
|
|
1566
|
+
"hB"
|
|
1567
|
+
],
|
|
1568
|
+
GY: [
|
|
1569
|
+
"h",
|
|
1570
|
+
"hb",
|
|
1571
|
+
"H",
|
|
1572
|
+
"hB"
|
|
1573
|
+
],
|
|
1574
|
+
HK: [
|
|
1575
|
+
"h",
|
|
1576
|
+
"hB",
|
|
1577
|
+
"hb",
|
|
1578
|
+
"H"
|
|
1579
|
+
],
|
|
1580
|
+
HN: [
|
|
1581
|
+
"h",
|
|
1582
|
+
"H",
|
|
1583
|
+
"hB",
|
|
1584
|
+
"hb"
|
|
1585
|
+
],
|
|
1586
|
+
HR: [
|
|
1587
|
+
"H",
|
|
1588
|
+
"hB"
|
|
1589
|
+
],
|
|
1590
|
+
HU: [
|
|
1591
|
+
"H",
|
|
1592
|
+
"h"
|
|
1593
|
+
],
|
|
1594
|
+
IC: [
|
|
1595
|
+
"H",
|
|
1596
|
+
"h",
|
|
1597
|
+
"hB",
|
|
1598
|
+
"hb"
|
|
1599
|
+
],
|
|
1600
|
+
ID: [
|
|
1601
|
+
"H"
|
|
1602
|
+
],
|
|
1603
|
+
IE: [
|
|
1604
|
+
"H",
|
|
1605
|
+
"h",
|
|
1606
|
+
"hb",
|
|
1607
|
+
"hB"
|
|
1608
|
+
],
|
|
1609
|
+
IL: [
|
|
1610
|
+
"H",
|
|
1611
|
+
"hB"
|
|
1612
|
+
],
|
|
1613
|
+
IM: [
|
|
1614
|
+
"H",
|
|
1615
|
+
"h",
|
|
1616
|
+
"hb",
|
|
1617
|
+
"hB"
|
|
1618
|
+
],
|
|
1619
|
+
IN: [
|
|
1620
|
+
"h",
|
|
1621
|
+
"H"
|
|
1622
|
+
],
|
|
1623
|
+
IO: [
|
|
1624
|
+
"H",
|
|
1625
|
+
"h",
|
|
1626
|
+
"hb",
|
|
1627
|
+
"hB"
|
|
1628
|
+
],
|
|
1629
|
+
IQ: [
|
|
1630
|
+
"h",
|
|
1631
|
+
"hB",
|
|
1632
|
+
"hb",
|
|
1633
|
+
"H"
|
|
1634
|
+
],
|
|
1635
|
+
IR: [
|
|
1636
|
+
"hB",
|
|
1637
|
+
"H"
|
|
1638
|
+
],
|
|
1639
|
+
IS: [
|
|
1640
|
+
"H"
|
|
1641
|
+
],
|
|
1642
|
+
IT: [
|
|
1643
|
+
"H",
|
|
1644
|
+
"hB"
|
|
1645
|
+
],
|
|
1646
|
+
JE: [
|
|
1647
|
+
"H",
|
|
1648
|
+
"h",
|
|
1649
|
+
"hb",
|
|
1650
|
+
"hB"
|
|
1651
|
+
],
|
|
1652
|
+
JM: [
|
|
1653
|
+
"h",
|
|
1654
|
+
"hb",
|
|
1655
|
+
"H",
|
|
1656
|
+
"hB"
|
|
1657
|
+
],
|
|
1658
|
+
JO: [
|
|
1659
|
+
"h",
|
|
1660
|
+
"hB",
|
|
1661
|
+
"hb",
|
|
1662
|
+
"H"
|
|
1663
|
+
],
|
|
1664
|
+
JP: [
|
|
1665
|
+
"H",
|
|
1666
|
+
"K",
|
|
1667
|
+
"h"
|
|
1668
|
+
],
|
|
1669
|
+
KE: [
|
|
1670
|
+
"hB",
|
|
1671
|
+
"hb",
|
|
1672
|
+
"H",
|
|
1673
|
+
"h"
|
|
1674
|
+
],
|
|
1675
|
+
KG: [
|
|
1676
|
+
"H",
|
|
1677
|
+
"h",
|
|
1678
|
+
"hB",
|
|
1679
|
+
"hb"
|
|
1680
|
+
],
|
|
1681
|
+
KH: [
|
|
1682
|
+
"hB",
|
|
1683
|
+
"h",
|
|
1684
|
+
"H",
|
|
1685
|
+
"hb"
|
|
1686
|
+
],
|
|
1687
|
+
KI: [
|
|
1688
|
+
"h",
|
|
1689
|
+
"hb",
|
|
1690
|
+
"H",
|
|
1691
|
+
"hB"
|
|
1692
|
+
],
|
|
1693
|
+
KM: [
|
|
1694
|
+
"H",
|
|
1695
|
+
"h",
|
|
1696
|
+
"hB",
|
|
1697
|
+
"hb"
|
|
1698
|
+
],
|
|
1699
|
+
KN: [
|
|
1700
|
+
"h",
|
|
1701
|
+
"hb",
|
|
1702
|
+
"H",
|
|
1703
|
+
"hB"
|
|
1704
|
+
],
|
|
1705
|
+
KP: [
|
|
1706
|
+
"h",
|
|
1707
|
+
"H",
|
|
1708
|
+
"hB",
|
|
1709
|
+
"hb"
|
|
1710
|
+
],
|
|
1711
|
+
KR: [
|
|
1712
|
+
"h",
|
|
1713
|
+
"H",
|
|
1714
|
+
"hB",
|
|
1715
|
+
"hb"
|
|
1716
|
+
],
|
|
1717
|
+
KW: [
|
|
1718
|
+
"h",
|
|
1719
|
+
"hB",
|
|
1720
|
+
"hb",
|
|
1721
|
+
"H"
|
|
1722
|
+
],
|
|
1723
|
+
KY: [
|
|
1724
|
+
"h",
|
|
1725
|
+
"hb",
|
|
1726
|
+
"H",
|
|
1727
|
+
"hB"
|
|
1728
|
+
],
|
|
1729
|
+
KZ: [
|
|
1730
|
+
"H",
|
|
1731
|
+
"hB"
|
|
1732
|
+
],
|
|
1733
|
+
LA: [
|
|
1734
|
+
"H",
|
|
1735
|
+
"hb",
|
|
1736
|
+
"hB",
|
|
1737
|
+
"h"
|
|
1738
|
+
],
|
|
1739
|
+
LB: [
|
|
1740
|
+
"h",
|
|
1741
|
+
"hB",
|
|
1742
|
+
"hb",
|
|
1743
|
+
"H"
|
|
1744
|
+
],
|
|
1745
|
+
LC: [
|
|
1746
|
+
"h",
|
|
1747
|
+
"hb",
|
|
1748
|
+
"H",
|
|
1749
|
+
"hB"
|
|
1750
|
+
],
|
|
1751
|
+
LI: [
|
|
1752
|
+
"H",
|
|
1753
|
+
"hB",
|
|
1754
|
+
"h"
|
|
1755
|
+
],
|
|
1756
|
+
LK: [
|
|
1757
|
+
"H",
|
|
1758
|
+
"h",
|
|
1759
|
+
"hB",
|
|
1760
|
+
"hb"
|
|
1761
|
+
],
|
|
1762
|
+
LR: [
|
|
1763
|
+
"h",
|
|
1764
|
+
"hb",
|
|
1765
|
+
"H",
|
|
1766
|
+
"hB"
|
|
1767
|
+
],
|
|
1768
|
+
LS: [
|
|
1769
|
+
"h",
|
|
1770
|
+
"H"
|
|
1771
|
+
],
|
|
1772
|
+
LT: [
|
|
1773
|
+
"H",
|
|
1774
|
+
"h",
|
|
1775
|
+
"hb",
|
|
1776
|
+
"hB"
|
|
1777
|
+
],
|
|
1778
|
+
LU: [
|
|
1779
|
+
"H",
|
|
1780
|
+
"h",
|
|
1781
|
+
"hB"
|
|
1782
|
+
],
|
|
1783
|
+
LV: [
|
|
1784
|
+
"H",
|
|
1785
|
+
"hB",
|
|
1786
|
+
"hb",
|
|
1787
|
+
"h"
|
|
1788
|
+
],
|
|
1789
|
+
LY: [
|
|
1790
|
+
"h",
|
|
1791
|
+
"hB",
|
|
1792
|
+
"hb",
|
|
1793
|
+
"H"
|
|
1794
|
+
],
|
|
1795
|
+
MA: [
|
|
1796
|
+
"H",
|
|
1797
|
+
"h",
|
|
1798
|
+
"hB",
|
|
1799
|
+
"hb"
|
|
1800
|
+
],
|
|
1801
|
+
MC: [
|
|
1802
|
+
"H",
|
|
1803
|
+
"hB"
|
|
1804
|
+
],
|
|
1805
|
+
MD: [
|
|
1806
|
+
"H",
|
|
1807
|
+
"hB"
|
|
1808
|
+
],
|
|
1809
|
+
ME: [
|
|
1810
|
+
"H",
|
|
1811
|
+
"hB",
|
|
1812
|
+
"h"
|
|
1813
|
+
],
|
|
1814
|
+
MF: [
|
|
1815
|
+
"H",
|
|
1816
|
+
"hB"
|
|
1817
|
+
],
|
|
1818
|
+
MG: [
|
|
1819
|
+
"H",
|
|
1820
|
+
"h"
|
|
1821
|
+
],
|
|
1822
|
+
MH: [
|
|
1823
|
+
"h",
|
|
1824
|
+
"hb",
|
|
1825
|
+
"H",
|
|
1826
|
+
"hB"
|
|
1827
|
+
],
|
|
1828
|
+
MK: [
|
|
1829
|
+
"H",
|
|
1830
|
+
"h",
|
|
1831
|
+
"hb",
|
|
1832
|
+
"hB"
|
|
1833
|
+
],
|
|
1834
|
+
ML: [
|
|
1835
|
+
"H"
|
|
1836
|
+
],
|
|
1837
|
+
MM: [
|
|
1838
|
+
"hB",
|
|
1839
|
+
"hb",
|
|
1840
|
+
"H",
|
|
1841
|
+
"h"
|
|
1842
|
+
],
|
|
1843
|
+
MN: [
|
|
1844
|
+
"H",
|
|
1845
|
+
"h",
|
|
1846
|
+
"hb",
|
|
1847
|
+
"hB"
|
|
1848
|
+
],
|
|
1849
|
+
MO: [
|
|
1850
|
+
"h",
|
|
1851
|
+
"hB",
|
|
1852
|
+
"hb",
|
|
1853
|
+
"H"
|
|
1854
|
+
],
|
|
1855
|
+
MP: [
|
|
1856
|
+
"h",
|
|
1857
|
+
"hb",
|
|
1858
|
+
"H",
|
|
1859
|
+
"hB"
|
|
1860
|
+
],
|
|
1861
|
+
MQ: [
|
|
1862
|
+
"H",
|
|
1863
|
+
"hB"
|
|
1864
|
+
],
|
|
1865
|
+
MR: [
|
|
1866
|
+
"h",
|
|
1867
|
+
"hB",
|
|
1868
|
+
"hb",
|
|
1869
|
+
"H"
|
|
1870
|
+
],
|
|
1871
|
+
MS: [
|
|
1872
|
+
"H",
|
|
1873
|
+
"h",
|
|
1874
|
+
"hb",
|
|
1875
|
+
"hB"
|
|
1876
|
+
],
|
|
1877
|
+
MT: [
|
|
1878
|
+
"H",
|
|
1879
|
+
"h"
|
|
1880
|
+
],
|
|
1881
|
+
MU: [
|
|
1882
|
+
"H",
|
|
1883
|
+
"h"
|
|
1884
|
+
],
|
|
1885
|
+
MV: [
|
|
1886
|
+
"H",
|
|
1887
|
+
"h"
|
|
1888
|
+
],
|
|
1889
|
+
MW: [
|
|
1890
|
+
"h",
|
|
1891
|
+
"hb",
|
|
1892
|
+
"H",
|
|
1893
|
+
"hB"
|
|
1894
|
+
],
|
|
1895
|
+
MX: [
|
|
1896
|
+
"h",
|
|
1897
|
+
"H",
|
|
1898
|
+
"hB",
|
|
1899
|
+
"hb"
|
|
1900
|
+
],
|
|
1901
|
+
MY: [
|
|
1902
|
+
"hb",
|
|
1903
|
+
"hB",
|
|
1904
|
+
"h",
|
|
1905
|
+
"H"
|
|
1906
|
+
],
|
|
1907
|
+
MZ: [
|
|
1908
|
+
"H",
|
|
1909
|
+
"hB"
|
|
1910
|
+
],
|
|
1911
|
+
NA: [
|
|
1912
|
+
"h",
|
|
1913
|
+
"H",
|
|
1914
|
+
"hB",
|
|
1915
|
+
"hb"
|
|
1916
|
+
],
|
|
1917
|
+
NC: [
|
|
1918
|
+
"H",
|
|
1919
|
+
"hB"
|
|
1920
|
+
],
|
|
1921
|
+
NE: [
|
|
1922
|
+
"H"
|
|
1923
|
+
],
|
|
1924
|
+
NF: [
|
|
1925
|
+
"H",
|
|
1926
|
+
"h",
|
|
1927
|
+
"hb",
|
|
1928
|
+
"hB"
|
|
1929
|
+
],
|
|
1930
|
+
NG: [
|
|
1931
|
+
"H",
|
|
1932
|
+
"h",
|
|
1933
|
+
"hb",
|
|
1934
|
+
"hB"
|
|
1935
|
+
],
|
|
1936
|
+
NI: [
|
|
1937
|
+
"h",
|
|
1938
|
+
"H",
|
|
1939
|
+
"hB",
|
|
1940
|
+
"hb"
|
|
1941
|
+
],
|
|
1942
|
+
NL: [
|
|
1943
|
+
"H",
|
|
1944
|
+
"hB"
|
|
1945
|
+
],
|
|
1946
|
+
NO: [
|
|
1947
|
+
"H",
|
|
1948
|
+
"h"
|
|
1949
|
+
],
|
|
1950
|
+
NP: [
|
|
1951
|
+
"H",
|
|
1952
|
+
"h",
|
|
1953
|
+
"hB"
|
|
1954
|
+
],
|
|
1955
|
+
NR: [
|
|
1956
|
+
"H",
|
|
1957
|
+
"h",
|
|
1958
|
+
"hb",
|
|
1959
|
+
"hB"
|
|
1960
|
+
],
|
|
1961
|
+
NU: [
|
|
1962
|
+
"H",
|
|
1963
|
+
"h",
|
|
1964
|
+
"hb",
|
|
1965
|
+
"hB"
|
|
1966
|
+
],
|
|
1967
|
+
NZ: [
|
|
1968
|
+
"h",
|
|
1969
|
+
"hb",
|
|
1970
|
+
"H",
|
|
1971
|
+
"hB"
|
|
1972
|
+
],
|
|
1973
|
+
OM: [
|
|
1974
|
+
"h",
|
|
1975
|
+
"hB",
|
|
1976
|
+
"hb",
|
|
1977
|
+
"H"
|
|
1978
|
+
],
|
|
1979
|
+
PA: [
|
|
1980
|
+
"h",
|
|
1981
|
+
"H",
|
|
1982
|
+
"hB",
|
|
1983
|
+
"hb"
|
|
1984
|
+
],
|
|
1985
|
+
PE: [
|
|
1986
|
+
"h",
|
|
1987
|
+
"H",
|
|
1988
|
+
"hB",
|
|
1989
|
+
"hb"
|
|
1990
|
+
],
|
|
1991
|
+
PF: [
|
|
1992
|
+
"H",
|
|
1993
|
+
"h",
|
|
1994
|
+
"hB"
|
|
1995
|
+
],
|
|
1996
|
+
PG: [
|
|
1997
|
+
"h",
|
|
1998
|
+
"H"
|
|
1999
|
+
],
|
|
2000
|
+
PH: [
|
|
2001
|
+
"h",
|
|
2002
|
+
"hB",
|
|
2003
|
+
"hb",
|
|
2004
|
+
"H"
|
|
2005
|
+
],
|
|
2006
|
+
PK: [
|
|
2007
|
+
"h",
|
|
2008
|
+
"hB",
|
|
2009
|
+
"H"
|
|
2010
|
+
],
|
|
2011
|
+
PL: [
|
|
2012
|
+
"H",
|
|
2013
|
+
"h"
|
|
2014
|
+
],
|
|
2015
|
+
PM: [
|
|
2016
|
+
"H",
|
|
2017
|
+
"hB"
|
|
2018
|
+
],
|
|
2019
|
+
PN: [
|
|
2020
|
+
"H",
|
|
2021
|
+
"h",
|
|
2022
|
+
"hb",
|
|
2023
|
+
"hB"
|
|
2024
|
+
],
|
|
2025
|
+
PR: [
|
|
2026
|
+
"h",
|
|
2027
|
+
"H",
|
|
2028
|
+
"hB",
|
|
2029
|
+
"hb"
|
|
2030
|
+
],
|
|
2031
|
+
PS: [
|
|
2032
|
+
"h",
|
|
2033
|
+
"hB",
|
|
2034
|
+
"hb",
|
|
2035
|
+
"H"
|
|
2036
|
+
],
|
|
2037
|
+
PT: [
|
|
2038
|
+
"H",
|
|
2039
|
+
"hB"
|
|
2040
|
+
],
|
|
2041
|
+
PW: [
|
|
2042
|
+
"h",
|
|
2043
|
+
"H"
|
|
2044
|
+
],
|
|
2045
|
+
PY: [
|
|
2046
|
+
"h",
|
|
2047
|
+
"H",
|
|
2048
|
+
"hB",
|
|
2049
|
+
"hb"
|
|
2050
|
+
],
|
|
2051
|
+
QA: [
|
|
2052
|
+
"h",
|
|
2053
|
+
"hB",
|
|
2054
|
+
"hb",
|
|
2055
|
+
"H"
|
|
2056
|
+
],
|
|
2057
|
+
RE: [
|
|
2058
|
+
"H",
|
|
2059
|
+
"hB"
|
|
2060
|
+
],
|
|
2061
|
+
RO: [
|
|
2062
|
+
"H",
|
|
2063
|
+
"hB"
|
|
2064
|
+
],
|
|
2065
|
+
RS: [
|
|
2066
|
+
"H",
|
|
2067
|
+
"hB",
|
|
2068
|
+
"h"
|
|
2069
|
+
],
|
|
2070
|
+
RU: [
|
|
2071
|
+
"H"
|
|
2072
|
+
],
|
|
2073
|
+
RW: [
|
|
2074
|
+
"H",
|
|
2075
|
+
"h"
|
|
2076
|
+
],
|
|
2077
|
+
SA: [
|
|
2078
|
+
"h",
|
|
2079
|
+
"hB",
|
|
2080
|
+
"hb",
|
|
2081
|
+
"H"
|
|
2082
|
+
],
|
|
2083
|
+
SB: [
|
|
2084
|
+
"h",
|
|
2085
|
+
"hb",
|
|
2086
|
+
"H",
|
|
2087
|
+
"hB"
|
|
2088
|
+
],
|
|
2089
|
+
SC: [
|
|
2090
|
+
"H",
|
|
2091
|
+
"h",
|
|
2092
|
+
"hB"
|
|
2093
|
+
],
|
|
2094
|
+
SD: [
|
|
2095
|
+
"h",
|
|
2096
|
+
"hB",
|
|
2097
|
+
"hb",
|
|
2098
|
+
"H"
|
|
2099
|
+
],
|
|
2100
|
+
SE: [
|
|
2101
|
+
"H"
|
|
2102
|
+
],
|
|
2103
|
+
SG: [
|
|
2104
|
+
"h",
|
|
2105
|
+
"hb",
|
|
2106
|
+
"H",
|
|
2107
|
+
"hB"
|
|
2108
|
+
],
|
|
2109
|
+
SH: [
|
|
2110
|
+
"H",
|
|
2111
|
+
"h",
|
|
2112
|
+
"hb",
|
|
2113
|
+
"hB"
|
|
2114
|
+
],
|
|
2115
|
+
SI: [
|
|
2116
|
+
"H",
|
|
2117
|
+
"hB"
|
|
2118
|
+
],
|
|
2119
|
+
SJ: [
|
|
2120
|
+
"H"
|
|
2121
|
+
],
|
|
2122
|
+
SK: [
|
|
2123
|
+
"H"
|
|
2124
|
+
],
|
|
2125
|
+
SL: [
|
|
2126
|
+
"h",
|
|
2127
|
+
"hb",
|
|
2128
|
+
"H",
|
|
2129
|
+
"hB"
|
|
2130
|
+
],
|
|
2131
|
+
SM: [
|
|
2132
|
+
"H",
|
|
2133
|
+
"h",
|
|
2134
|
+
"hB"
|
|
2135
|
+
],
|
|
2136
|
+
SN: [
|
|
2137
|
+
"H",
|
|
2138
|
+
"h",
|
|
2139
|
+
"hB"
|
|
2140
|
+
],
|
|
2141
|
+
SO: [
|
|
2142
|
+
"h",
|
|
2143
|
+
"H"
|
|
2144
|
+
],
|
|
2145
|
+
SR: [
|
|
2146
|
+
"H",
|
|
2147
|
+
"hB"
|
|
2148
|
+
],
|
|
2149
|
+
SS: [
|
|
2150
|
+
"h",
|
|
2151
|
+
"hb",
|
|
2152
|
+
"H",
|
|
2153
|
+
"hB"
|
|
2154
|
+
],
|
|
2155
|
+
ST: [
|
|
2156
|
+
"H",
|
|
2157
|
+
"hB"
|
|
2158
|
+
],
|
|
2159
|
+
SV: [
|
|
2160
|
+
"h",
|
|
2161
|
+
"H",
|
|
2162
|
+
"hB",
|
|
2163
|
+
"hb"
|
|
2164
|
+
],
|
|
2165
|
+
SX: [
|
|
2166
|
+
"H",
|
|
2167
|
+
"h",
|
|
2168
|
+
"hb",
|
|
2169
|
+
"hB"
|
|
2170
|
+
],
|
|
2171
|
+
SY: [
|
|
2172
|
+
"h",
|
|
2173
|
+
"hB",
|
|
2174
|
+
"hb",
|
|
2175
|
+
"H"
|
|
2176
|
+
],
|
|
2177
|
+
SZ: [
|
|
2178
|
+
"h",
|
|
2179
|
+
"hb",
|
|
2180
|
+
"H",
|
|
2181
|
+
"hB"
|
|
2182
|
+
],
|
|
2183
|
+
TA: [
|
|
2184
|
+
"H",
|
|
2185
|
+
"h",
|
|
2186
|
+
"hb",
|
|
2187
|
+
"hB"
|
|
2188
|
+
],
|
|
2189
|
+
TC: [
|
|
2190
|
+
"h",
|
|
2191
|
+
"hb",
|
|
2192
|
+
"H",
|
|
2193
|
+
"hB"
|
|
2194
|
+
],
|
|
2195
|
+
TD: [
|
|
2196
|
+
"h",
|
|
2197
|
+
"H",
|
|
2198
|
+
"hB"
|
|
2199
|
+
],
|
|
2200
|
+
TF: [
|
|
2201
|
+
"H",
|
|
2202
|
+
"h",
|
|
2203
|
+
"hB"
|
|
2204
|
+
],
|
|
2205
|
+
TG: [
|
|
2206
|
+
"H",
|
|
2207
|
+
"hB"
|
|
2208
|
+
],
|
|
2209
|
+
TH: [
|
|
2210
|
+
"H",
|
|
2211
|
+
"h"
|
|
2212
|
+
],
|
|
2213
|
+
TJ: [
|
|
2214
|
+
"H",
|
|
2215
|
+
"h"
|
|
2216
|
+
],
|
|
2217
|
+
TL: [
|
|
2218
|
+
"H",
|
|
2219
|
+
"hB",
|
|
2220
|
+
"hb",
|
|
2221
|
+
"h"
|
|
2222
|
+
],
|
|
2223
|
+
TM: [
|
|
2224
|
+
"H",
|
|
2225
|
+
"h"
|
|
2226
|
+
],
|
|
2227
|
+
TN: [
|
|
2228
|
+
"h",
|
|
2229
|
+
"hB",
|
|
2230
|
+
"hb",
|
|
2231
|
+
"H"
|
|
2232
|
+
],
|
|
2233
|
+
TO: [
|
|
2234
|
+
"h",
|
|
2235
|
+
"H"
|
|
2236
|
+
],
|
|
2237
|
+
TR: [
|
|
2238
|
+
"H",
|
|
2239
|
+
"hB"
|
|
2240
|
+
],
|
|
2241
|
+
TT: [
|
|
2242
|
+
"h",
|
|
2243
|
+
"hb",
|
|
2244
|
+
"H",
|
|
2245
|
+
"hB"
|
|
2246
|
+
],
|
|
2247
|
+
TW: [
|
|
2248
|
+
"hB",
|
|
2249
|
+
"hb",
|
|
2250
|
+
"h",
|
|
2251
|
+
"H"
|
|
2252
|
+
],
|
|
2253
|
+
TZ: [
|
|
2254
|
+
"hB",
|
|
2255
|
+
"hb",
|
|
2256
|
+
"H",
|
|
2257
|
+
"h"
|
|
2258
|
+
],
|
|
2259
|
+
UA: [
|
|
2260
|
+
"H",
|
|
2261
|
+
"hB",
|
|
2262
|
+
"h"
|
|
2263
|
+
],
|
|
2264
|
+
UG: [
|
|
2265
|
+
"hB",
|
|
2266
|
+
"hb",
|
|
2267
|
+
"H",
|
|
2268
|
+
"h"
|
|
2269
|
+
],
|
|
2270
|
+
UM: [
|
|
2271
|
+
"h",
|
|
2272
|
+
"hb",
|
|
2273
|
+
"H",
|
|
2274
|
+
"hB"
|
|
2275
|
+
],
|
|
2276
|
+
US: [
|
|
2277
|
+
"h",
|
|
2278
|
+
"hb",
|
|
2279
|
+
"H",
|
|
2280
|
+
"hB"
|
|
2281
|
+
],
|
|
2282
|
+
UY: [
|
|
2283
|
+
"h",
|
|
2284
|
+
"H",
|
|
2285
|
+
"hB",
|
|
2286
|
+
"hb"
|
|
2287
|
+
],
|
|
2288
|
+
UZ: [
|
|
2289
|
+
"H",
|
|
2290
|
+
"hB",
|
|
2291
|
+
"h"
|
|
2292
|
+
],
|
|
2293
|
+
VA: [
|
|
2294
|
+
"H",
|
|
2295
|
+
"h",
|
|
2296
|
+
"hB"
|
|
2297
|
+
],
|
|
2298
|
+
VC: [
|
|
2299
|
+
"h",
|
|
2300
|
+
"hb",
|
|
2301
|
+
"H",
|
|
2302
|
+
"hB"
|
|
2303
|
+
],
|
|
2304
|
+
VE: [
|
|
2305
|
+
"h",
|
|
2306
|
+
"H",
|
|
2307
|
+
"hB",
|
|
2308
|
+
"hb"
|
|
2309
|
+
],
|
|
2310
|
+
VG: [
|
|
2311
|
+
"h",
|
|
2312
|
+
"hb",
|
|
2313
|
+
"H",
|
|
2314
|
+
"hB"
|
|
2315
|
+
],
|
|
2316
|
+
VI: [
|
|
2317
|
+
"h",
|
|
2318
|
+
"hb",
|
|
2319
|
+
"H",
|
|
2320
|
+
"hB"
|
|
2321
|
+
],
|
|
2322
|
+
VN: [
|
|
2323
|
+
"H",
|
|
2324
|
+
"h"
|
|
2325
|
+
],
|
|
2326
|
+
VU: [
|
|
2327
|
+
"h",
|
|
2328
|
+
"H"
|
|
2329
|
+
],
|
|
2330
|
+
WF: [
|
|
2331
|
+
"H",
|
|
2332
|
+
"hB"
|
|
2333
|
+
],
|
|
2334
|
+
WS: [
|
|
2335
|
+
"h",
|
|
2336
|
+
"H"
|
|
2337
|
+
],
|
|
2338
|
+
XK: [
|
|
2339
|
+
"H",
|
|
2340
|
+
"hB",
|
|
2341
|
+
"h"
|
|
2342
|
+
],
|
|
2343
|
+
YE: [
|
|
2344
|
+
"h",
|
|
2345
|
+
"hB",
|
|
2346
|
+
"hb",
|
|
2347
|
+
"H"
|
|
2348
|
+
],
|
|
2349
|
+
YT: [
|
|
2350
|
+
"H",
|
|
2351
|
+
"hB"
|
|
2352
|
+
],
|
|
2353
|
+
ZA: [
|
|
2354
|
+
"H",
|
|
2355
|
+
"h",
|
|
2356
|
+
"hb",
|
|
2357
|
+
"hB"
|
|
2358
|
+
],
|
|
2359
|
+
ZM: [
|
|
2360
|
+
"h",
|
|
2361
|
+
"hb",
|
|
2362
|
+
"H",
|
|
2363
|
+
"hB"
|
|
2364
|
+
],
|
|
2365
|
+
ZW: [
|
|
2366
|
+
"H",
|
|
2367
|
+
"h"
|
|
2368
|
+
],
|
|
2369
|
+
"af-ZA": [
|
|
2370
|
+
"H",
|
|
2371
|
+
"h",
|
|
2372
|
+
"hB",
|
|
2373
|
+
"hb"
|
|
2374
|
+
],
|
|
2375
|
+
"ar-001": [
|
|
2376
|
+
"h",
|
|
2377
|
+
"hB",
|
|
2378
|
+
"hb",
|
|
2379
|
+
"H"
|
|
2380
|
+
],
|
|
2381
|
+
"ca-ES": [
|
|
2382
|
+
"H",
|
|
2383
|
+
"h",
|
|
2384
|
+
"hB"
|
|
2385
|
+
],
|
|
2386
|
+
"en-001": [
|
|
2387
|
+
"h",
|
|
2388
|
+
"hb",
|
|
2389
|
+
"H",
|
|
2390
|
+
"hB"
|
|
2391
|
+
],
|
|
2392
|
+
"en-HK": [
|
|
2393
|
+
"h",
|
|
2394
|
+
"hb",
|
|
2395
|
+
"H",
|
|
2396
|
+
"hB"
|
|
2397
|
+
],
|
|
2398
|
+
"en-IL": [
|
|
2399
|
+
"H",
|
|
2400
|
+
"h",
|
|
2401
|
+
"hb",
|
|
2402
|
+
"hB"
|
|
2403
|
+
],
|
|
2404
|
+
"en-MY": [
|
|
2405
|
+
"h",
|
|
2406
|
+
"hb",
|
|
2407
|
+
"H",
|
|
2408
|
+
"hB"
|
|
2409
|
+
],
|
|
2410
|
+
"es-BR": [
|
|
2411
|
+
"H",
|
|
2412
|
+
"h",
|
|
2413
|
+
"hB",
|
|
2414
|
+
"hb"
|
|
2415
|
+
],
|
|
2416
|
+
"es-ES": [
|
|
2417
|
+
"H",
|
|
2418
|
+
"h",
|
|
2419
|
+
"hB",
|
|
2420
|
+
"hb"
|
|
2421
|
+
],
|
|
2422
|
+
"es-GQ": [
|
|
2423
|
+
"H",
|
|
2424
|
+
"h",
|
|
2425
|
+
"hB",
|
|
2426
|
+
"hb"
|
|
2427
|
+
],
|
|
2428
|
+
"fr-CA": [
|
|
2429
|
+
"H",
|
|
2430
|
+
"h",
|
|
2431
|
+
"hB"
|
|
2432
|
+
],
|
|
2433
|
+
"gl-ES": [
|
|
2434
|
+
"H",
|
|
2435
|
+
"h",
|
|
2436
|
+
"hB"
|
|
2437
|
+
],
|
|
2438
|
+
"gu-IN": [
|
|
2439
|
+
"hB",
|
|
2440
|
+
"hb",
|
|
2441
|
+
"h",
|
|
2442
|
+
"H"
|
|
2443
|
+
],
|
|
2444
|
+
"hi-IN": [
|
|
2445
|
+
"hB",
|
|
2446
|
+
"h",
|
|
2447
|
+
"H"
|
|
2448
|
+
],
|
|
2449
|
+
"it-CH": [
|
|
2450
|
+
"H",
|
|
2451
|
+
"h",
|
|
2452
|
+
"hB"
|
|
2453
|
+
],
|
|
2454
|
+
"it-IT": [
|
|
2455
|
+
"H",
|
|
2456
|
+
"h",
|
|
2457
|
+
"hB"
|
|
2458
|
+
],
|
|
2459
|
+
"kn-IN": [
|
|
2460
|
+
"hB",
|
|
2461
|
+
"h",
|
|
2462
|
+
"H"
|
|
2463
|
+
],
|
|
2464
|
+
"ml-IN": [
|
|
2465
|
+
"hB",
|
|
2466
|
+
"h",
|
|
2467
|
+
"H"
|
|
2468
|
+
],
|
|
2469
|
+
"mr-IN": [
|
|
2470
|
+
"hB",
|
|
2471
|
+
"hb",
|
|
2472
|
+
"h",
|
|
2473
|
+
"H"
|
|
2474
|
+
],
|
|
2475
|
+
"pa-IN": [
|
|
2476
|
+
"hB",
|
|
2477
|
+
"hb",
|
|
2478
|
+
"h",
|
|
2479
|
+
"H"
|
|
2480
|
+
],
|
|
2481
|
+
"ta-IN": [
|
|
2482
|
+
"hB",
|
|
2483
|
+
"h",
|
|
2484
|
+
"hb",
|
|
2485
|
+
"H"
|
|
2486
|
+
],
|
|
2487
|
+
"te-IN": [
|
|
2488
|
+
"hB",
|
|
2489
|
+
"h",
|
|
2490
|
+
"H"
|
|
2491
|
+
],
|
|
2492
|
+
"zu-ZA": [
|
|
2493
|
+
"H",
|
|
2494
|
+
"hB",
|
|
2495
|
+
"hb",
|
|
2496
|
+
"h"
|
|
2497
|
+
]
|
|
2498
|
+
};
|
|
2499
|
+
function Vr(e, t) {
|
|
2500
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
2501
|
+
var i = e.charAt(r);
|
|
2502
|
+
if (i === "j") {
|
|
2503
|
+
for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2504
|
+
s++, r++;
|
|
2505
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Xr(t);
|
|
2506
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2507
|
+
n += l;
|
|
2508
|
+
for (; a-- > 0; )
|
|
2509
|
+
n = u + n;
|
|
2510
|
+
} else i === "J" ? n += "H" : n += i;
|
|
2511
|
+
}
|
|
2512
|
+
return n;
|
|
2513
|
+
}
|
|
2514
|
+
function Xr(e) {
|
|
2515
|
+
var t = e.hourCycle;
|
|
2516
|
+
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2517
|
+
e.hourCycles && // @ts-ignore
|
|
2518
|
+
e.hourCycles.length && (t = e.hourCycles[0]), t)
|
|
2519
|
+
switch (t) {
|
|
2520
|
+
case "h24":
|
|
2521
|
+
return "k";
|
|
2522
|
+
case "h23":
|
|
2523
|
+
return "H";
|
|
2524
|
+
case "h12":
|
|
2525
|
+
return "h";
|
|
2526
|
+
case "h11":
|
|
2527
|
+
return "K";
|
|
2528
|
+
default:
|
|
2529
|
+
throw new Error("Invalid hourCycle");
|
|
2530
|
+
}
|
|
2531
|
+
var n = e.language, r;
|
|
2532
|
+
n !== "root" && (r = e.maximize().region);
|
|
2533
|
+
var i = Ge[r || ""] || Ge[n || ""] || Ge["".concat(n, "-001")] || Ge["001"];
|
|
2534
|
+
return i[0];
|
|
2535
|
+
}
|
|
2536
|
+
var rt, Wr = new RegExp("^".concat(pn.source, "*")), zr = new RegExp("".concat(pn.source, "*$"));
|
|
2537
|
+
function L(e, t) {
|
|
2538
|
+
return { start: e, end: t };
|
|
2539
|
+
}
|
|
2540
|
+
var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Zr = !!String.fromCodePoint, Jr = !!Object.fromEntries, Qr = !!String.prototype.codePointAt, qr = !!String.prototype.trimStart, Kr = !!String.prototype.trimEnd, ei = !!Number.isSafeInteger, ti = ei ? Number.isSafeInteger : function(e) {
|
|
2541
|
+
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2542
|
+
}, ct = !0;
|
|
2543
|
+
try {
|
|
2544
|
+
var ni = En("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2545
|
+
ct = ((rt = ni.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
|
|
2546
|
+
} catch (e) {
|
|
2547
|
+
ct = !1;
|
|
2548
|
+
}
|
|
2549
|
+
var Ct = Yr ? (
|
|
2550
|
+
// Native
|
|
2551
|
+
function(t, n, r) {
|
|
2552
|
+
return t.startsWith(n, r);
|
|
2553
|
+
}
|
|
2554
|
+
) : (
|
|
2555
|
+
// For IE11
|
|
2556
|
+
function(t, n, r) {
|
|
2557
|
+
return t.slice(r, r + n.length) === n;
|
|
2558
|
+
}
|
|
2559
|
+
), mt = Zr ? String.fromCodePoint : (
|
|
2560
|
+
// IE11
|
|
2561
|
+
function() {
|
|
2562
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2563
|
+
t[n] = arguments[n];
|
|
2564
|
+
for (var r = "", i = t.length, s = 0, a; i > s; ) {
|
|
2565
|
+
if (a = t[s++], a > 1114111)
|
|
2566
|
+
throw RangeError(a + " is not a valid code point");
|
|
2567
|
+
r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2568
|
+
}
|
|
2569
|
+
return r;
|
|
2570
|
+
}
|
|
2571
|
+
), It = (
|
|
2572
|
+
// native
|
|
2573
|
+
Jr ? Object.fromEntries : (
|
|
2574
|
+
// Ponyfill
|
|
2575
|
+
function(t) {
|
|
2576
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2577
|
+
var s = i[r], a = s[0], o = s[1];
|
|
2578
|
+
n[a] = o;
|
|
2579
|
+
}
|
|
2580
|
+
return n;
|
|
2581
|
+
}
|
|
2582
|
+
)
|
|
2583
|
+
), xn = Qr ? (
|
|
2584
|
+
// Native
|
|
2585
|
+
function(t, n) {
|
|
2586
|
+
return t.codePointAt(n);
|
|
2587
|
+
}
|
|
2588
|
+
) : (
|
|
2589
|
+
// IE 11
|
|
2590
|
+
function(t, n) {
|
|
2591
|
+
var r = t.length;
|
|
2592
|
+
if (!(n < 0 || n >= r)) {
|
|
2593
|
+
var i = t.charCodeAt(n), s;
|
|
2594
|
+
return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
), ri = qr ? (
|
|
2598
|
+
// Native
|
|
2599
|
+
function(t) {
|
|
2600
|
+
return t.trimStart();
|
|
2601
|
+
}
|
|
2602
|
+
) : (
|
|
2603
|
+
// Ponyfill
|
|
2604
|
+
function(t) {
|
|
2605
|
+
return t.replace(Wr, "");
|
|
2606
|
+
}
|
|
2607
|
+
), ii = Kr ? (
|
|
2608
|
+
// Native
|
|
2609
|
+
function(t) {
|
|
2610
|
+
return t.trimEnd();
|
|
2611
|
+
}
|
|
2612
|
+
) : (
|
|
2613
|
+
// Ponyfill
|
|
2614
|
+
function(t) {
|
|
2615
|
+
return t.replace(zr, "");
|
|
2616
|
+
}
|
|
2617
|
+
);
|
|
2618
|
+
function En(e, t) {
|
|
2619
|
+
return new RegExp(e, t);
|
|
2620
|
+
}
|
|
2621
|
+
var dt;
|
|
2622
|
+
if (ct) {
|
|
2623
|
+
var Dt = En("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2624
|
+
dt = function(t, n) {
|
|
2625
|
+
var r;
|
|
2626
|
+
Dt.lastIndex = n;
|
|
2627
|
+
var i = Dt.exec(t);
|
|
2628
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2629
|
+
};
|
|
2630
|
+
} else
|
|
2631
|
+
dt = function(t, n) {
|
|
2632
|
+
for (var r = []; ; ) {
|
|
2633
|
+
var i = xn(t, n);
|
|
2634
|
+
if (i === void 0 || _n(i) || ui(i))
|
|
2635
|
+
break;
|
|
2636
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2637
|
+
}
|
|
2638
|
+
return mt.apply(void 0, r);
|
|
2639
|
+
};
|
|
2640
|
+
var si = (
|
|
2641
|
+
/** @class */
|
|
2642
|
+
function() {
|
|
2643
|
+
function e(t, n) {
|
|
2644
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
2645
|
+
}
|
|
2646
|
+
return e.prototype.parse = function() {
|
|
2647
|
+
if (this.offset() !== 0)
|
|
2648
|
+
throw Error("parser can only be used once");
|
|
2649
|
+
return this.parseMessage(0, "", !1);
|
|
2650
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2651
|
+
for (var i = []; !this.isEOF(); ) {
|
|
2652
|
+
var s = this.char();
|
|
2653
|
+
if (s === 123) {
|
|
2654
|
+
var a = this.parseArgument(t, r);
|
|
2655
|
+
if (a.err)
|
|
2656
|
+
return a;
|
|
2657
|
+
i.push(a.val);
|
|
2658
|
+
} else {
|
|
2659
|
+
if (s === 125 && t > 0)
|
|
2660
|
+
break;
|
|
2661
|
+
if (s === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2662
|
+
var o = this.clonePosition();
|
|
2663
|
+
this.bump(), i.push({
|
|
2664
|
+
type: D.pound,
|
|
2665
|
+
location: L(o, this.clonePosition())
|
|
2666
|
+
});
|
|
2667
|
+
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2668
|
+
if (r)
|
|
2669
|
+
break;
|
|
2670
|
+
return this.error(M.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
|
|
2671
|
+
} else if (s === 60 && !this.ignoreTag && gt(this.peek() || 0)) {
|
|
2672
|
+
var a = this.parseTag(t, n);
|
|
2673
|
+
if (a.err)
|
|
2674
|
+
return a;
|
|
2675
|
+
i.push(a.val);
|
|
2676
|
+
} else {
|
|
2677
|
+
var a = this.parseLiteral(t, n);
|
|
2678
|
+
if (a.err)
|
|
2679
|
+
return a;
|
|
2680
|
+
i.push(a.val);
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
return { val: i, err: null };
|
|
2685
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
2686
|
+
var r = this.clonePosition();
|
|
2687
|
+
this.bump();
|
|
2688
|
+
var i = this.parseTagName();
|
|
2689
|
+
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2690
|
+
return {
|
|
2691
|
+
val: {
|
|
2692
|
+
type: D.literal,
|
|
2693
|
+
value: "<".concat(i, "/>"),
|
|
2694
|
+
location: L(r, this.clonePosition())
|
|
2695
|
+
},
|
|
2696
|
+
err: null
|
|
2697
|
+
};
|
|
2698
|
+
if (this.bumpIf(">")) {
|
|
2699
|
+
var s = this.parseMessage(t + 1, n, !0);
|
|
2700
|
+
if (s.err)
|
|
2701
|
+
return s;
|
|
2702
|
+
var a = s.val, o = this.clonePosition();
|
|
2703
|
+
if (this.bumpIf("</")) {
|
|
2704
|
+
if (this.isEOF() || !gt(this.char()))
|
|
2705
|
+
return this.error(M.INVALID_TAG, L(o, this.clonePosition()));
|
|
2706
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2707
|
+
return i !== u ? this.error(M.UNMATCHED_CLOSING_TAG, L(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2708
|
+
val: {
|
|
2709
|
+
type: D.tag,
|
|
2710
|
+
value: i,
|
|
2711
|
+
children: a,
|
|
2712
|
+
location: L(r, this.clonePosition())
|
|
2713
|
+
},
|
|
2714
|
+
err: null
|
|
2715
|
+
} : this.error(M.INVALID_TAG, L(o, this.clonePosition())));
|
|
2716
|
+
} else
|
|
2717
|
+
return this.error(M.UNCLOSED_TAG, L(r, this.clonePosition()));
|
|
2718
|
+
} else
|
|
2719
|
+
return this.error(M.INVALID_TAG, L(r, this.clonePosition()));
|
|
2720
|
+
}, e.prototype.parseTagName = function() {
|
|
2721
|
+
var t = this.offset();
|
|
2722
|
+
for (this.bump(); !this.isEOF() && ai(this.char()); )
|
|
2723
|
+
this.bump();
|
|
2724
|
+
return this.message.slice(t, this.offset());
|
|
2725
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
2726
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2727
|
+
var s = this.tryParseQuote(n);
|
|
2728
|
+
if (s) {
|
|
2729
|
+
i += s;
|
|
2730
|
+
continue;
|
|
2731
|
+
}
|
|
2732
|
+
var a = this.tryParseUnquoted(t, n);
|
|
2733
|
+
if (a) {
|
|
2734
|
+
i += a;
|
|
2735
|
+
continue;
|
|
2736
|
+
}
|
|
2737
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2738
|
+
if (o) {
|
|
2739
|
+
i += o;
|
|
2740
|
+
continue;
|
|
2741
|
+
}
|
|
2742
|
+
break;
|
|
2743
|
+
}
|
|
2744
|
+
var l = L(r, this.clonePosition());
|
|
2745
|
+
return {
|
|
2746
|
+
val: { type: D.literal, value: i, location: l },
|
|
2747
|
+
err: null
|
|
2748
|
+
};
|
|
2749
|
+
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2750
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2751
|
+
!oi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2752
|
+
}, e.prototype.tryParseQuote = function(t) {
|
|
2753
|
+
if (this.isEOF() || this.char() !== 39)
|
|
2754
|
+
return null;
|
|
2755
|
+
switch (this.peek()) {
|
|
2756
|
+
case 39:
|
|
2757
|
+
return this.bump(), this.bump(), "'";
|
|
2758
|
+
case 123:
|
|
2759
|
+
case 60:
|
|
2760
|
+
case 62:
|
|
2761
|
+
case 125:
|
|
2762
|
+
break;
|
|
2763
|
+
case 35:
|
|
2764
|
+
if (t === "plural" || t === "selectordinal")
|
|
2765
|
+
break;
|
|
2766
|
+
return null;
|
|
2767
|
+
default:
|
|
2768
|
+
return null;
|
|
2769
|
+
}
|
|
2770
|
+
this.bump();
|
|
2771
|
+
var n = [this.char()];
|
|
2772
|
+
for (this.bump(); !this.isEOF(); ) {
|
|
2773
|
+
var r = this.char();
|
|
2774
|
+
if (r === 39)
|
|
2775
|
+
if (this.peek() === 39)
|
|
2776
|
+
n.push(39), this.bump();
|
|
2777
|
+
else {
|
|
2778
|
+
this.bump();
|
|
2779
|
+
break;
|
|
2780
|
+
}
|
|
2781
|
+
else
|
|
2782
|
+
n.push(r);
|
|
2783
|
+
this.bump();
|
|
2784
|
+
}
|
|
2785
|
+
return mt.apply(void 0, n);
|
|
2786
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2787
|
+
if (this.isEOF())
|
|
2788
|
+
return null;
|
|
2789
|
+
var r = this.char();
|
|
2790
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), mt(r));
|
|
2791
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
2792
|
+
var r = this.clonePosition();
|
|
2793
|
+
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2794
|
+
return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2795
|
+
if (this.char() === 125)
|
|
2796
|
+
return this.bump(), this.error(M.EMPTY_ARGUMENT, L(r, this.clonePosition()));
|
|
2797
|
+
var i = this.parseIdentifierIfPossible().value;
|
|
2798
|
+
if (!i)
|
|
2799
|
+
return this.error(M.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2800
|
+
if (this.bumpSpace(), this.isEOF())
|
|
2801
|
+
return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2802
|
+
switch (this.char()) {
|
|
2803
|
+
case 125:
|
|
2804
|
+
return this.bump(), {
|
|
2805
|
+
val: {
|
|
2806
|
+
type: D.argument,
|
|
2807
|
+
// value does not include the opening and closing braces.
|
|
2808
|
+
value: i,
|
|
2809
|
+
location: L(r, this.clonePosition())
|
|
2810
|
+
},
|
|
2811
|
+
err: null
|
|
2812
|
+
};
|
|
2813
|
+
case 44:
|
|
2814
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2815
|
+
default:
|
|
2816
|
+
return this.error(M.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2817
|
+
}
|
|
2818
|
+
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2819
|
+
var t = this.clonePosition(), n = this.offset(), r = dt(this.message, n), i = n + r.length;
|
|
2820
|
+
this.bumpTo(i);
|
|
2821
|
+
var s = this.clonePosition(), a = L(t, s);
|
|
2822
|
+
return { value: r, location: a };
|
|
2823
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2824
|
+
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2825
|
+
switch (o) {
|
|
2826
|
+
case "":
|
|
2827
|
+
return this.error(M.EXPECT_ARGUMENT_TYPE, L(a, l));
|
|
2828
|
+
case "number":
|
|
2829
|
+
case "date":
|
|
2830
|
+
case "time": {
|
|
2831
|
+
this.bumpSpace();
|
|
2832
|
+
var u = null;
|
|
2833
|
+
if (this.bumpIf(",")) {
|
|
2834
|
+
this.bumpSpace();
|
|
2835
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2836
|
+
if (c.err)
|
|
2837
|
+
return c;
|
|
2838
|
+
var p = ii(c.val);
|
|
2839
|
+
if (p.length === 0)
|
|
2840
|
+
return this.error(M.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2841
|
+
var E = L(h, this.clonePosition());
|
|
2842
|
+
u = { style: p, styleLocation: E };
|
|
2843
|
+
}
|
|
2844
|
+
var w = this.tryParseArgumentClose(i);
|
|
2845
|
+
if (w.err)
|
|
2846
|
+
return w;
|
|
2847
|
+
var b = L(i, this.clonePosition());
|
|
2848
|
+
if (u && Ct(u == null ? void 0 : u.style, "::", 0)) {
|
|
2849
|
+
var H = ri(u.style.slice(2));
|
|
2850
|
+
if (o === "number") {
|
|
2851
|
+
var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
2852
|
+
return c.err ? c : {
|
|
2853
|
+
val: { type: D.number, value: r, location: b, style: c.val },
|
|
2854
|
+
err: null
|
|
2855
|
+
};
|
|
2856
|
+
} else {
|
|
2857
|
+
if (H.length === 0)
|
|
2858
|
+
return this.error(M.EXPECT_DATE_TIME_SKELETON, b);
|
|
2859
|
+
var P = H;
|
|
2860
|
+
this.locale && (P = Vr(H, this.locale));
|
|
2861
|
+
var p = {
|
|
2862
|
+
type: we.dateTime,
|
|
2863
|
+
pattern: P,
|
|
2864
|
+
location: u.styleLocation,
|
|
2865
|
+
parsedOptions: this.shouldParseSkeletons ? Dr(P) : {}
|
|
2866
|
+
}, I = o === "date" ? D.date : D.time;
|
|
2867
|
+
return {
|
|
2868
|
+
val: { type: I, value: r, location: b, style: p },
|
|
2869
|
+
err: null
|
|
2870
|
+
};
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
return {
|
|
2874
|
+
val: {
|
|
2875
|
+
type: o === "number" ? D.number : o === "date" ? D.date : D.time,
|
|
2876
|
+
value: r,
|
|
2877
|
+
location: b,
|
|
2878
|
+
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2879
|
+
},
|
|
2880
|
+
err: null
|
|
2881
|
+
};
|
|
2882
|
+
}
|
|
2883
|
+
case "plural":
|
|
2884
|
+
case "selectordinal":
|
|
2885
|
+
case "select": {
|
|
2886
|
+
var A = this.clonePosition();
|
|
2887
|
+
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2888
|
+
return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS, L(A, O({}, A)));
|
|
2889
|
+
this.bumpSpace();
|
|
2890
|
+
var R = this.parseIdentifierIfPossible(), N = 0;
|
|
2891
|
+
if (o !== "select" && R.value === "offset") {
|
|
2892
|
+
if (!this.bumpIf(":"))
|
|
2893
|
+
return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
|
|
2894
|
+
this.bumpSpace();
|
|
2895
|
+
var c = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2896
|
+
if (c.err)
|
|
2897
|
+
return c;
|
|
2898
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), N = c.val;
|
|
2899
|
+
}
|
|
2900
|
+
var F = this.tryParsePluralOrSelectOptions(t, o, n, R);
|
|
2901
|
+
if (F.err)
|
|
2902
|
+
return F;
|
|
2903
|
+
var w = this.tryParseArgumentClose(i);
|
|
2904
|
+
if (w.err)
|
|
2905
|
+
return w;
|
|
2906
|
+
var G = L(i, this.clonePosition());
|
|
2907
|
+
return o === "select" ? {
|
|
2908
|
+
val: {
|
|
2909
|
+
type: D.select,
|
|
2910
|
+
value: r,
|
|
2911
|
+
options: It(F.val),
|
|
2912
|
+
location: G
|
|
2913
|
+
},
|
|
2914
|
+
err: null
|
|
2915
|
+
} : {
|
|
2916
|
+
val: {
|
|
2917
|
+
type: D.plural,
|
|
2918
|
+
value: r,
|
|
2919
|
+
options: It(F.val),
|
|
2920
|
+
offset: N,
|
|
2921
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2922
|
+
location: G
|
|
2923
|
+
},
|
|
2924
|
+
err: null
|
|
2925
|
+
};
|
|
2926
|
+
}
|
|
2927
|
+
default:
|
|
2928
|
+
return this.error(M.INVALID_ARGUMENT_TYPE, L(a, l));
|
|
2929
|
+
}
|
|
2930
|
+
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2931
|
+
return this.isEOF() || this.char() !== 125 ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2932
|
+
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2933
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2934
|
+
var r = this.char();
|
|
2935
|
+
switch (r) {
|
|
2936
|
+
case 39: {
|
|
2937
|
+
this.bump();
|
|
2938
|
+
var i = this.clonePosition();
|
|
2939
|
+
if (!this.bumpUntil("'"))
|
|
2940
|
+
return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
|
|
2941
|
+
this.bump();
|
|
2942
|
+
break;
|
|
2943
|
+
}
|
|
2944
|
+
case 123: {
|
|
2945
|
+
t += 1, this.bump();
|
|
2946
|
+
break;
|
|
2947
|
+
}
|
|
2948
|
+
case 125: {
|
|
2949
|
+
if (t > 0)
|
|
2950
|
+
t -= 1;
|
|
2951
|
+
else
|
|
2952
|
+
return {
|
|
2953
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
2954
|
+
err: null
|
|
2955
|
+
};
|
|
2956
|
+
break;
|
|
2957
|
+
}
|
|
2958
|
+
default:
|
|
2959
|
+
this.bump();
|
|
2960
|
+
break;
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
return {
|
|
2964
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
2965
|
+
err: null
|
|
2966
|
+
};
|
|
2967
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2968
|
+
var r = [];
|
|
2969
|
+
try {
|
|
2970
|
+
r = Ur(t);
|
|
2971
|
+
} catch (i) {
|
|
2972
|
+
return this.error(M.INVALID_NUMBER_SKELETON, n);
|
|
2973
|
+
}
|
|
2974
|
+
return {
|
|
2975
|
+
val: {
|
|
2976
|
+
type: we.number,
|
|
2977
|
+
tokens: r,
|
|
2978
|
+
location: n,
|
|
2979
|
+
parsedOptions: this.shouldParseSkeletons ? jr(r) : {}
|
|
2980
|
+
},
|
|
2981
|
+
err: null
|
|
2982
|
+
};
|
|
2983
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2984
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
2985
|
+
if (u.length === 0) {
|
|
2986
|
+
var c = this.clonePosition();
|
|
2987
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
2988
|
+
var p = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR, M.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2989
|
+
if (p.err)
|
|
2990
|
+
return p;
|
|
2991
|
+
h = L(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
2992
|
+
} else
|
|
2993
|
+
break;
|
|
2994
|
+
}
|
|
2995
|
+
if (l.has(u))
|
|
2996
|
+
return this.error(n === "select" ? M.DUPLICATE_SELECT_ARGUMENT_SELECTOR : M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2997
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
2998
|
+
var E = this.clonePosition();
|
|
2999
|
+
if (!this.bumpIf("{"))
|
|
3000
|
+
return this.error(n === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
|
|
3001
|
+
var w = this.parseMessage(t + 1, n, r);
|
|
3002
|
+
if (w.err)
|
|
3003
|
+
return w;
|
|
3004
|
+
var b = this.tryParseArgumentClose(E);
|
|
3005
|
+
if (b.err)
|
|
3006
|
+
return b;
|
|
3007
|
+
o.push([
|
|
3008
|
+
u,
|
|
3009
|
+
{
|
|
3010
|
+
value: w.val,
|
|
3011
|
+
location: L(E, this.clonePosition())
|
|
3012
|
+
}
|
|
3013
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3014
|
+
}
|
|
3015
|
+
return o.length === 0 ? this.error(n === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR : M.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(M.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3016
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3017
|
+
var r = 1, i = this.clonePosition();
|
|
3018
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3019
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3020
|
+
var o = this.char();
|
|
3021
|
+
if (o >= 48 && o <= 57)
|
|
3022
|
+
s = !0, a = a * 10 + (o - 48), this.bump();
|
|
3023
|
+
else
|
|
3024
|
+
break;
|
|
3025
|
+
}
|
|
3026
|
+
var l = L(i, this.clonePosition());
|
|
3027
|
+
return s ? (a *= r, ti(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3028
|
+
}, e.prototype.offset = function() {
|
|
3029
|
+
return this.position.offset;
|
|
3030
|
+
}, e.prototype.isEOF = function() {
|
|
3031
|
+
return this.offset() === this.message.length;
|
|
3032
|
+
}, e.prototype.clonePosition = function() {
|
|
3033
|
+
return {
|
|
3034
|
+
offset: this.position.offset,
|
|
3035
|
+
line: this.position.line,
|
|
3036
|
+
column: this.position.column
|
|
3037
|
+
};
|
|
3038
|
+
}, e.prototype.char = function() {
|
|
3039
|
+
var t = this.position.offset;
|
|
3040
|
+
if (t >= this.message.length)
|
|
3041
|
+
throw Error("out of bound");
|
|
3042
|
+
var n = xn(this.message, t);
|
|
3043
|
+
if (n === void 0)
|
|
3044
|
+
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3045
|
+
return n;
|
|
3046
|
+
}, e.prototype.error = function(t, n) {
|
|
3047
|
+
return {
|
|
3048
|
+
val: null,
|
|
3049
|
+
err: {
|
|
3050
|
+
kind: t,
|
|
3051
|
+
message: this.message,
|
|
3052
|
+
location: n
|
|
3053
|
+
}
|
|
3054
|
+
};
|
|
3055
|
+
}, e.prototype.bump = function() {
|
|
3056
|
+
if (!this.isEOF()) {
|
|
3057
|
+
var t = this.char();
|
|
3058
|
+
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3059
|
+
}
|
|
3060
|
+
}, e.prototype.bumpIf = function(t) {
|
|
3061
|
+
if (Ct(this.message, t, this.offset())) {
|
|
3062
|
+
for (var n = 0; n < t.length; n++)
|
|
3063
|
+
this.bump();
|
|
3064
|
+
return !0;
|
|
3065
|
+
}
|
|
3066
|
+
return !1;
|
|
3067
|
+
}, e.prototype.bumpUntil = function(t) {
|
|
3068
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3069
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3070
|
+
}, e.prototype.bumpTo = function(t) {
|
|
3071
|
+
if (this.offset() > t)
|
|
3072
|
+
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3073
|
+
for (t = Math.min(t, this.message.length); ; ) {
|
|
3074
|
+
var n = this.offset();
|
|
3075
|
+
if (n === t)
|
|
3076
|
+
break;
|
|
3077
|
+
if (n > t)
|
|
3078
|
+
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3079
|
+
if (this.bump(), this.isEOF())
|
|
3080
|
+
break;
|
|
3081
|
+
}
|
|
3082
|
+
}, e.prototype.bumpSpace = function() {
|
|
3083
|
+
for (; !this.isEOF() && _n(this.char()); )
|
|
3084
|
+
this.bump();
|
|
3085
|
+
}, e.prototype.peek = function() {
|
|
3086
|
+
if (this.isEOF())
|
|
3087
|
+
return null;
|
|
3088
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3089
|
+
return r != null ? r : null;
|
|
3090
|
+
}, e;
|
|
3091
|
+
}()
|
|
3092
|
+
);
|
|
3093
|
+
function gt(e) {
|
|
3094
|
+
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3095
|
+
}
|
|
3096
|
+
function oi(e) {
|
|
3097
|
+
return gt(e) || e === 47;
|
|
3098
|
+
}
|
|
3099
|
+
function ai(e) {
|
|
3100
|
+
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;
|
|
3101
|
+
}
|
|
3102
|
+
function _n(e) {
|
|
3103
|
+
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3104
|
+
}
|
|
3105
|
+
function ui(e) {
|
|
3106
|
+
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;
|
|
3107
|
+
}
|
|
3108
|
+
function pt(e) {
|
|
3109
|
+
e.forEach(function(t) {
|
|
3110
|
+
if (delete t.location, cn(t) || mn(t))
|
|
3111
|
+
for (var n in t.options)
|
|
3112
|
+
delete t.options[n].location, pt(t.options[n].value);
|
|
3113
|
+
else ln(t) && gn(t.style) || (hn(t) || fn(t)) && ft(t.style) ? delete t.style.location : dn(t) && pt(t.children);
|
|
3114
|
+
});
|
|
3115
|
+
}
|
|
3116
|
+
function li(e, t) {
|
|
3117
|
+
t === void 0 && (t = {}), t = O({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3118
|
+
var n = new si(e, t).parse();
|
|
3119
|
+
if (n.err) {
|
|
3120
|
+
var r = SyntaxError(M[n.err.kind]);
|
|
3121
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3122
|
+
}
|
|
3123
|
+
return t != null && t.captureLocation || pt(n.val), n.val;
|
|
3124
|
+
}
|
|
3125
|
+
var Se;
|
|
3126
|
+
(function(e) {
|
|
3127
|
+
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3128
|
+
})(Se || (Se = {}));
|
|
3129
|
+
var Ze = (
|
|
3130
|
+
/** @class */
|
|
3131
|
+
function(e) {
|
|
3132
|
+
Ye(t, e);
|
|
3133
|
+
function t(n, r, i) {
|
|
3134
|
+
var s = e.call(this, n) || this;
|
|
3135
|
+
return s.code = r, s.originalMessage = i, s;
|
|
3136
|
+
}
|
|
3137
|
+
return t.prototype.toString = function() {
|
|
3138
|
+
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3139
|
+
}, t;
|
|
3140
|
+
}(Error)
|
|
3141
|
+
), Rt = (
|
|
3142
|
+
/** @class */
|
|
3143
|
+
function(e) {
|
|
3144
|
+
Ye(t, e);
|
|
3145
|
+
function t(n, r, i, s) {
|
|
3146
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Se.INVALID_VALUE, s) || this;
|
|
3147
|
+
}
|
|
3148
|
+
return t;
|
|
3149
|
+
}(Ze)
|
|
3150
|
+
), hi = (
|
|
3151
|
+
/** @class */
|
|
3152
|
+
function(e) {
|
|
3153
|
+
Ye(t, e);
|
|
3154
|
+
function t(n, r, i) {
|
|
3155
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Se.INVALID_VALUE, i) || this;
|
|
3156
|
+
}
|
|
3157
|
+
return t;
|
|
3158
|
+
}(Ze)
|
|
3159
|
+
), fi = (
|
|
3160
|
+
/** @class */
|
|
3161
|
+
function(e) {
|
|
3162
|
+
Ye(t, e);
|
|
3163
|
+
function t(n, r) {
|
|
3164
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Se.MISSING_VALUE, r) || this;
|
|
3165
|
+
}
|
|
3166
|
+
return t;
|
|
3167
|
+
}(Ze)
|
|
3168
|
+
), Q;
|
|
3169
|
+
(function(e) {
|
|
3170
|
+
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3171
|
+
})(Q || (Q = {}));
|
|
3172
|
+
function ci(e) {
|
|
3173
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3174
|
+
var r = t[t.length - 1];
|
|
3175
|
+
return !r || r.type !== Q.literal || n.type !== Q.literal ? t.push(n) : r.value += n.value, t;
|
|
3176
|
+
}, []);
|
|
3177
|
+
}
|
|
3178
|
+
function mi(e) {
|
|
3179
|
+
return typeof e == "function";
|
|
3180
|
+
}
|
|
3181
|
+
function ke(e, t, n, r, i, s, a) {
|
|
3182
|
+
if (e.length === 1 && $t(e[0]))
|
|
3183
|
+
return [
|
|
3184
|
+
{
|
|
3185
|
+
type: Q.literal,
|
|
3186
|
+
value: e[0].value
|
|
3187
|
+
}
|
|
3188
|
+
];
|
|
3189
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3190
|
+
var h = u[l];
|
|
3191
|
+
if ($t(h)) {
|
|
3192
|
+
o.push({
|
|
3193
|
+
type: Q.literal,
|
|
3194
|
+
value: h.value
|
|
3195
|
+
});
|
|
3196
|
+
continue;
|
|
3197
|
+
}
|
|
3198
|
+
if (Cr(h)) {
|
|
3199
|
+
typeof s == "number" && o.push({
|
|
3200
|
+
type: Q.literal,
|
|
3201
|
+
value: n.getNumberFormat(t).format(s)
|
|
3202
|
+
});
|
|
3203
|
+
continue;
|
|
3204
|
+
}
|
|
3205
|
+
var c = h.value;
|
|
3206
|
+
if (!(i && c in i))
|
|
3207
|
+
throw new fi(c, a);
|
|
3208
|
+
var p = i[c];
|
|
3209
|
+
if (Nr(h)) {
|
|
3210
|
+
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), o.push({
|
|
3211
|
+
type: typeof p == "string" ? Q.literal : Q.object,
|
|
3212
|
+
value: p
|
|
3213
|
+
});
|
|
3214
|
+
continue;
|
|
3215
|
+
}
|
|
3216
|
+
if (hn(h)) {
|
|
3217
|
+
var E = typeof h.style == "string" ? r.date[h.style] : ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3218
|
+
o.push({
|
|
3219
|
+
type: Q.literal,
|
|
3220
|
+
value: n.getDateTimeFormat(t, E).format(p)
|
|
3221
|
+
});
|
|
3222
|
+
continue;
|
|
3223
|
+
}
|
|
3224
|
+
if (fn(h)) {
|
|
3225
|
+
var E = typeof h.style == "string" ? r.time[h.style] : ft(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3226
|
+
o.push({
|
|
3227
|
+
type: Q.literal,
|
|
3228
|
+
value: n.getDateTimeFormat(t, E).format(p)
|
|
3229
|
+
});
|
|
3230
|
+
continue;
|
|
3231
|
+
}
|
|
3232
|
+
if (ln(h)) {
|
|
3233
|
+
var E = typeof h.style == "string" ? r.number[h.style] : gn(h.style) ? h.style.parsedOptions : void 0;
|
|
3234
|
+
E && E.scale && (p = p * (E.scale || 1)), o.push({
|
|
3235
|
+
type: Q.literal,
|
|
3236
|
+
value: n.getNumberFormat(t, E).format(p)
|
|
3237
|
+
});
|
|
3238
|
+
continue;
|
|
3239
|
+
}
|
|
3240
|
+
if (dn(h)) {
|
|
3241
|
+
var w = h.children, b = h.value, H = i[b];
|
|
3242
|
+
if (!mi(H))
|
|
3243
|
+
throw new hi(b, "function", a);
|
|
3244
|
+
var P = ke(w, t, n, r, i, s), I = H(P.map(function(N) {
|
|
3245
|
+
return N.value;
|
|
3246
|
+
}));
|
|
3247
|
+
Array.isArray(I) || (I = [I]), o.push.apply(o, I.map(function(N) {
|
|
3248
|
+
return {
|
|
3249
|
+
type: typeof N == "string" ? Q.literal : Q.object,
|
|
3250
|
+
value: N
|
|
3251
|
+
};
|
|
3252
|
+
}));
|
|
3253
|
+
}
|
|
3254
|
+
if (cn(h)) {
|
|
3255
|
+
var A = h.options[p] || h.options.other;
|
|
3256
|
+
if (!A)
|
|
3257
|
+
throw new Rt(h.value, p, Object.keys(h.options), a);
|
|
3258
|
+
o.push.apply(o, ke(A.value, t, n, r, i));
|
|
3259
|
+
continue;
|
|
3260
|
+
}
|
|
3261
|
+
if (mn(h)) {
|
|
3262
|
+
var A = h.options["=".concat(p)];
|
|
3263
|
+
if (!A) {
|
|
3264
|
+
if (!Intl.PluralRules)
|
|
3265
|
+
throw new Ze(`Intl.PluralRules is not available in this environment.
|
|
3266
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3267
|
+
`, Se.MISSING_INTL_API, a);
|
|
3268
|
+
var R = n.getPluralRules(t, { type: h.pluralType }).select(p - (h.offset || 0));
|
|
3269
|
+
A = h.options[R] || h.options.other;
|
|
3270
|
+
}
|
|
3271
|
+
if (!A)
|
|
3272
|
+
throw new Rt(h.value, p, Object.keys(h.options), a);
|
|
3273
|
+
o.push.apply(o, ke(A.value, t, n, r, i, p - (h.offset || 0)));
|
|
3274
|
+
continue;
|
|
3275
|
+
}
|
|
3276
|
+
}
|
|
3277
|
+
return ci(o);
|
|
3278
|
+
}
|
|
3279
|
+
function di(e, t) {
|
|
3280
|
+
return t ? O(O(O({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3281
|
+
return n[r] = O(O({}, e[r]), t[r] || {}), n;
|
|
3282
|
+
}, {})) : e;
|
|
3283
|
+
}
|
|
3284
|
+
function gi(e, t) {
|
|
3285
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3286
|
+
return n[r] = di(e[r], t[r]), n;
|
|
3287
|
+
}, O({}, e)) : e;
|
|
3288
|
+
}
|
|
3289
|
+
function it(e) {
|
|
3290
|
+
return {
|
|
3291
|
+
create: function() {
|
|
3292
|
+
return {
|
|
3293
|
+
get: function(t) {
|
|
3294
|
+
return e[t];
|
|
3295
|
+
},
|
|
3296
|
+
set: function(t, n) {
|
|
3297
|
+
e[t] = n;
|
|
3298
|
+
}
|
|
3299
|
+
};
|
|
3300
|
+
}
|
|
3301
|
+
};
|
|
3302
|
+
}
|
|
3303
|
+
function pi(e) {
|
|
3304
|
+
return e === void 0 && (e = {
|
|
3305
|
+
number: {},
|
|
3306
|
+
dateTime: {},
|
|
3307
|
+
pluralRules: {}
|
|
3308
|
+
}), {
|
|
3309
|
+
getNumberFormat: tt(function() {
|
|
3310
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3311
|
+
n[r] = arguments[r];
|
|
3312
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, et([void 0], n, !1)))();
|
|
3313
|
+
}, {
|
|
3314
|
+
cache: it(e.number),
|
|
3315
|
+
strategy: nt.variadic
|
|
3316
|
+
}),
|
|
3317
|
+
getDateTimeFormat: tt(function() {
|
|
3318
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3319
|
+
n[r] = arguments[r];
|
|
3320
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, et([void 0], n, !1)))();
|
|
3321
|
+
}, {
|
|
3322
|
+
cache: it(e.dateTime),
|
|
3323
|
+
strategy: nt.variadic
|
|
3324
|
+
}),
|
|
3325
|
+
getPluralRules: tt(function() {
|
|
3326
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3327
|
+
n[r] = arguments[r];
|
|
3328
|
+
return new ((t = Intl.PluralRules).bind.apply(t, et([void 0], n, !1)))();
|
|
3329
|
+
}, {
|
|
3330
|
+
cache: it(e.pluralRules),
|
|
3331
|
+
strategy: nt.variadic
|
|
3332
|
+
})
|
|
3333
|
+
};
|
|
3334
|
+
}
|
|
3335
|
+
var wn = (
|
|
3336
|
+
/** @class */
|
|
3337
|
+
function() {
|
|
3338
|
+
function e(t, n, r, i) {
|
|
3339
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3340
|
+
var s = this;
|
|
3341
|
+
if (this.formatterCache = {
|
|
3342
|
+
number: {},
|
|
3343
|
+
dateTime: {},
|
|
3344
|
+
pluralRules: {}
|
|
3345
|
+
}, this.format = function(l) {
|
|
3346
|
+
var u = s.formatToParts(l);
|
|
3347
|
+
if (u.length === 1)
|
|
3348
|
+
return u[0].value;
|
|
3349
|
+
var h = u.reduce(function(c, p) {
|
|
3350
|
+
return !c.length || p.type !== Q.literal || typeof c[c.length - 1] != "string" ? c.push(p.value) : c[c.length - 1] += p.value, c;
|
|
3351
|
+
}, []);
|
|
3352
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3353
|
+
}, this.formatToParts = function(l) {
|
|
3354
|
+
return ke(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3355
|
+
}, this.resolvedOptions = function() {
|
|
3356
|
+
var l;
|
|
3357
|
+
return {
|
|
3358
|
+
locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3359
|
+
};
|
|
3360
|
+
}, this.getAst = function() {
|
|
3361
|
+
return s.ast;
|
|
3362
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3363
|
+
if (this.message = t, !e.__parse)
|
|
3364
|
+
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3365
|
+
var a = i || {};
|
|
3366
|
+
a.formatters;
|
|
3367
|
+
var o = Hr(a, ["formatters"]);
|
|
3368
|
+
this.ast = e.__parse(t, O(O({}, o), { locale: this.resolvedLocale }));
|
|
3369
|
+
} else
|
|
3370
|
+
this.ast = t;
|
|
3371
|
+
if (!Array.isArray(this.ast))
|
|
3372
|
+
throw new TypeError("A message must be provided as a String or AST.");
|
|
3373
|
+
this.formats = gi(e.formats, r), this.formatters = i && i.formatters || pi(this.formatterCache);
|
|
3374
|
+
}
|
|
3375
|
+
return Object.defineProperty(e, "defaultLocale", {
|
|
3376
|
+
get: function() {
|
|
3377
|
+
return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
|
|
3378
|
+
},
|
|
3379
|
+
enumerable: !1,
|
|
3380
|
+
configurable: !0
|
|
3381
|
+
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3382
|
+
if (typeof Intl.Locale != "undefined") {
|
|
3383
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3384
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3385
|
+
}
|
|
3386
|
+
}, e.__parse = li, e.formats = {
|
|
3387
|
+
number: {
|
|
3388
|
+
integer: {
|
|
3389
|
+
maximumFractionDigits: 0
|
|
3390
|
+
},
|
|
3391
|
+
currency: {
|
|
3392
|
+
style: "currency"
|
|
3393
|
+
},
|
|
3394
|
+
percent: {
|
|
3395
|
+
style: "percent"
|
|
3396
|
+
}
|
|
3397
|
+
},
|
|
3398
|
+
date: {
|
|
3399
|
+
short: {
|
|
3400
|
+
month: "numeric",
|
|
3401
|
+
day: "numeric",
|
|
3402
|
+
year: "2-digit"
|
|
3403
|
+
},
|
|
3404
|
+
medium: {
|
|
3405
|
+
month: "short",
|
|
3406
|
+
day: "numeric",
|
|
3407
|
+
year: "numeric"
|
|
3408
|
+
},
|
|
3409
|
+
long: {
|
|
3410
|
+
month: "long",
|
|
3411
|
+
day: "numeric",
|
|
3412
|
+
year: "numeric"
|
|
3413
|
+
},
|
|
3414
|
+
full: {
|
|
3415
|
+
weekday: "long",
|
|
3416
|
+
month: "long",
|
|
3417
|
+
day: "numeric",
|
|
3418
|
+
year: "numeric"
|
|
3419
|
+
}
|
|
3420
|
+
},
|
|
3421
|
+
time: {
|
|
3422
|
+
short: {
|
|
3423
|
+
hour: "numeric",
|
|
3424
|
+
minute: "numeric"
|
|
3425
|
+
},
|
|
3426
|
+
medium: {
|
|
3427
|
+
hour: "numeric",
|
|
3428
|
+
minute: "numeric",
|
|
3429
|
+
second: "numeric"
|
|
3430
|
+
},
|
|
3431
|
+
long: {
|
|
3432
|
+
hour: "numeric",
|
|
3433
|
+
minute: "numeric",
|
|
3434
|
+
second: "numeric",
|
|
3435
|
+
timeZoneName: "short"
|
|
3436
|
+
},
|
|
3437
|
+
full: {
|
|
3438
|
+
hour: "numeric",
|
|
3439
|
+
minute: "numeric",
|
|
3440
|
+
second: "numeric",
|
|
3441
|
+
timeZoneName: "short"
|
|
3442
|
+
}
|
|
3443
|
+
}
|
|
3444
|
+
}, e;
|
|
3445
|
+
}()
|
|
3446
|
+
);
|
|
3447
|
+
function bi(e, t) {
|
|
3448
|
+
if (t == null)
|
|
3449
|
+
return;
|
|
3450
|
+
if (t in e)
|
|
3451
|
+
return e[t];
|
|
3452
|
+
const n = t.split(".");
|
|
3453
|
+
let r = e;
|
|
3454
|
+
for (let i = 0; i < n.length; i++)
|
|
3455
|
+
if (typeof r == "object") {
|
|
3456
|
+
if (i > 0) {
|
|
3457
|
+
const s = n.slice(i, n.length).join(".");
|
|
3458
|
+
if (s in r) {
|
|
3459
|
+
r = r[s];
|
|
3460
|
+
break;
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
r = r[n[i]];
|
|
3464
|
+
} else
|
|
3465
|
+
r = void 0;
|
|
3466
|
+
return r;
|
|
3467
|
+
}
|
|
3468
|
+
const ce = {}, yi = (e, t, n) => n && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = n), n), Sn = (e, t) => {
|
|
3469
|
+
if (t == null)
|
|
3470
|
+
return;
|
|
3471
|
+
if (t in ce && e in ce[t])
|
|
3472
|
+
return ce[t][e];
|
|
3473
|
+
const n = Ie(t);
|
|
3474
|
+
for (let r = 0; r < n.length; r++) {
|
|
3475
|
+
const i = n[r], s = xi(i, e);
|
|
3476
|
+
if (s)
|
|
3477
|
+
return yi(e, t, s);
|
|
3478
|
+
}
|
|
3479
|
+
};
|
|
3480
|
+
let xt;
|
|
3481
|
+
const Ce = ze({});
|
|
3482
|
+
function vi(e) {
|
|
3483
|
+
return xt[e] || null;
|
|
3484
|
+
}
|
|
3485
|
+
function Tn(e) {
|
|
3486
|
+
return e in xt;
|
|
3487
|
+
}
|
|
3488
|
+
function xi(e, t) {
|
|
3489
|
+
if (!Tn(e))
|
|
3490
|
+
return null;
|
|
3491
|
+
const n = vi(e);
|
|
3492
|
+
return bi(n, t);
|
|
3493
|
+
}
|
|
3494
|
+
function Ei(e) {
|
|
3495
|
+
if (e == null)
|
|
3496
|
+
return;
|
|
3497
|
+
const t = Ie(e);
|
|
3498
|
+
for (let n = 0; n < t.length; n++) {
|
|
3499
|
+
const r = t[n];
|
|
3500
|
+
if (Tn(r))
|
|
3501
|
+
return r;
|
|
3502
|
+
}
|
|
3503
|
+
}
|
|
3504
|
+
function Hn(e, ...t) {
|
|
3505
|
+
delete ce[e], Ce.update((n) => (n[e] = Tr.all([n[e] || {}, ...t]), n));
|
|
3506
|
+
}
|
|
3507
|
+
Me(
|
|
3508
|
+
[Ce],
|
|
3509
|
+
([e]) => Object.keys(e)
|
|
3510
|
+
);
|
|
3511
|
+
Ce.subscribe((e) => xt = e);
|
|
3512
|
+
const je = {};
|
|
3513
|
+
function _i(e, t) {
|
|
3514
|
+
je[e].delete(t), je[e].size === 0 && delete je[e];
|
|
3515
|
+
}
|
|
3516
|
+
function Mn(e) {
|
|
3517
|
+
return je[e];
|
|
3518
|
+
}
|
|
3519
|
+
function wi(e) {
|
|
3520
|
+
return Ie(e).map((t) => {
|
|
3521
|
+
const n = Mn(t);
|
|
3522
|
+
return [t, n ? [...n] : []];
|
|
3523
|
+
}).filter(([, t]) => t.length > 0);
|
|
3524
|
+
}
|
|
3525
|
+
function Ve(e) {
|
|
3526
|
+
return e == null ? !1 : Ie(e).some(
|
|
3527
|
+
(t) => {
|
|
3528
|
+
var n;
|
|
3529
|
+
return (n = Mn(t)) == null ? void 0 : n.size;
|
|
3530
|
+
}
|
|
3531
|
+
);
|
|
3532
|
+
}
|
|
3533
|
+
function Si(e, t) {
|
|
3534
|
+
return Promise.all(
|
|
3535
|
+
t.map((r) => (_i(e, r), r().then((i) => i.default || i)))
|
|
3536
|
+
).then((r) => Hn(e, ...r));
|
|
3537
|
+
}
|
|
3538
|
+
const Ae = {};
|
|
3539
|
+
function Ln(e) {
|
|
3540
|
+
if (!Ve(e))
|
|
3541
|
+
return e in Ae ? Ae[e] : Promise.resolve();
|
|
3542
|
+
const t = wi(e);
|
|
3543
|
+
return Ae[e] = Promise.all(
|
|
3544
|
+
t.map(
|
|
3545
|
+
([n, r]) => Si(n, r)
|
|
3546
|
+
)
|
|
3547
|
+
).then(() => {
|
|
3548
|
+
if (Ve(e))
|
|
3549
|
+
return Ln(e);
|
|
3550
|
+
delete Ae[e];
|
|
3551
|
+
}), Ae[e];
|
|
3552
|
+
}
|
|
3553
|
+
var Ut = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, Mi = (e, t) => {
|
|
3554
|
+
var n = {};
|
|
3555
|
+
for (var r in e)
|
|
3556
|
+
Ti.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3557
|
+
if (e != null && Ut)
|
|
3558
|
+
for (var r of Ut(e))
|
|
3559
|
+
t.indexOf(r) < 0 && Hi.call(e, r) && (n[r] = e[r]);
|
|
3560
|
+
return n;
|
|
3561
|
+
};
|
|
3562
|
+
const Li = {
|
|
3563
|
+
number: {
|
|
3564
|
+
scientific: { notation: "scientific" },
|
|
3565
|
+
engineering: { notation: "engineering" },
|
|
3566
|
+
compactLong: { notation: "compact", compactDisplay: "long" },
|
|
3567
|
+
compactShort: { notation: "compact", compactDisplay: "short" }
|
|
3568
|
+
},
|
|
3569
|
+
date: {
|
|
3570
|
+
short: { month: "numeric", day: "numeric", year: "2-digit" },
|
|
3571
|
+
medium: { month: "short", day: "numeric", year: "numeric" },
|
|
3572
|
+
long: { month: "long", day: "numeric", year: "numeric" },
|
|
3573
|
+
full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
|
|
3574
|
+
},
|
|
3575
|
+
time: {
|
|
3576
|
+
short: { hour: "numeric", minute: "numeric" },
|
|
3577
|
+
medium: { hour: "numeric", minute: "numeric", second: "numeric" },
|
|
3578
|
+
long: {
|
|
3579
|
+
hour: "numeric",
|
|
3580
|
+
minute: "numeric",
|
|
3581
|
+
second: "numeric",
|
|
3582
|
+
timeZoneName: "short"
|
|
3583
|
+
},
|
|
3584
|
+
full: {
|
|
3585
|
+
hour: "numeric",
|
|
3586
|
+
minute: "numeric",
|
|
3587
|
+
second: "numeric",
|
|
3588
|
+
timeZoneName: "short"
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
};
|
|
3592
|
+
function Ai({ locale: e, id: t }) {
|
|
3593
|
+
console.warn(
|
|
3594
|
+
`[svelte-i18n] The message "${t}" was not found in "${Ie(
|
|
3595
|
+
e
|
|
3596
|
+
).join('", "')}".${Ve(me()) ? `
|
|
3597
|
+
|
|
3598
|
+
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3599
|
+
);
|
|
3600
|
+
}
|
|
3601
|
+
const Oi = {
|
|
3602
|
+
fallbackLocale: null,
|
|
3603
|
+
loadingDelay: 200,
|
|
3604
|
+
formats: Li,
|
|
3605
|
+
warnOnMissingMessages: !0,
|
|
3606
|
+
handleMissingMessage: void 0,
|
|
3607
|
+
ignoreTag: !0
|
|
3608
|
+
}, Oe = Oi;
|
|
3609
|
+
function Te() {
|
|
3610
|
+
return Oe;
|
|
3611
|
+
}
|
|
3612
|
+
function $i(e) {
|
|
3613
|
+
const t = e, { formats: n } = t, r = Mi(t, ["formats"]);
|
|
3614
|
+
let i = e.fallbackLocale;
|
|
3615
|
+
if (e.initialLocale)
|
|
3616
|
+
try {
|
|
3617
|
+
wn.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3618
|
+
} catch (s) {
|
|
3619
|
+
console.warn(
|
|
3620
|
+
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3621
|
+
);
|
|
3622
|
+
}
|
|
3623
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Ai : console.warn(
|
|
3624
|
+
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3625
|
+
)), Object.assign(Oe, r, { initialLocale: i }), n && ("number" in n && Object.assign(Oe.formats.number, n.number), "date" in n && Object.assign(Oe.formats.date, n.date), "time" in n && Object.assign(Oe.formats.time, n.time)), pe.set(i);
|
|
3626
|
+
}
|
|
3627
|
+
const st = ze(!1);
|
|
3628
|
+
var Bi = Object.defineProperty, Pi = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, Gt = Object.getOwnPropertySymbols, Ci = Object.prototype.hasOwnProperty, Ii = Object.prototype.propertyIsEnumerable, Ft = (e, t, n) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Di = (e, t) => {
|
|
3629
|
+
for (var n in t || (t = {}))
|
|
3630
|
+
Ci.call(t, n) && Ft(e, n, t[n]);
|
|
3631
|
+
if (Gt)
|
|
3632
|
+
for (var n of Gt(t))
|
|
3633
|
+
Ii.call(t, n) && Ft(e, n, t[n]);
|
|
3634
|
+
return e;
|
|
3635
|
+
}, Ri = (e, t) => Pi(e, Ni(t));
|
|
3636
|
+
let bt;
|
|
3637
|
+
const Xe = ze(null);
|
|
3638
|
+
function kt(e) {
|
|
3639
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3640
|
+
}
|
|
3641
|
+
function Ie(e, t = Te().fallbackLocale) {
|
|
3642
|
+
const n = kt(e);
|
|
3643
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...kt(t)])] : n;
|
|
3644
|
+
}
|
|
3645
|
+
function me() {
|
|
3646
|
+
return bt != null ? bt : void 0;
|
|
3647
|
+
}
|
|
3648
|
+
Xe.subscribe((e) => {
|
|
3649
|
+
bt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3650
|
+
});
|
|
3651
|
+
const Ui = (e) => {
|
|
3652
|
+
if (e && Ei(e) && Ve(e)) {
|
|
3653
|
+
const { loadingDelay: t } = Te();
|
|
3654
|
+
let n;
|
|
3655
|
+
return typeof window != "undefined" && me() != null && t ? n = window.setTimeout(
|
|
3656
|
+
() => st.set(!0),
|
|
3657
|
+
t
|
|
3658
|
+
) : st.set(!0), Ln(e).then(() => {
|
|
3659
|
+
Xe.set(e);
|
|
3660
|
+
}).finally(() => {
|
|
3661
|
+
clearTimeout(n), st.set(!1);
|
|
3662
|
+
});
|
|
3663
|
+
}
|
|
3664
|
+
return Xe.set(e);
|
|
3665
|
+
}, pe = Ri(Di({}, Xe), {
|
|
3666
|
+
set: Ui
|
|
3667
|
+
}), Je = (e) => {
|
|
3668
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
3669
|
+
return (r) => {
|
|
3670
|
+
const i = JSON.stringify(r);
|
|
3671
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
3672
|
+
};
|
|
3673
|
+
};
|
|
3674
|
+
var Gi = Object.defineProperty, We = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, On = Object.prototype.propertyIsEnumerable, jt = (e, t, n) => t in e ? Gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Et = (e, t) => {
|
|
3675
|
+
for (var n in t || (t = {}))
|
|
3676
|
+
An.call(t, n) && jt(e, n, t[n]);
|
|
3677
|
+
if (We)
|
|
3678
|
+
for (var n of We(t))
|
|
3679
|
+
On.call(t, n) && jt(e, n, t[n]);
|
|
3680
|
+
return e;
|
|
3681
|
+
}, Le = (e, t) => {
|
|
3682
|
+
var n = {};
|
|
3683
|
+
for (var r in e)
|
|
3684
|
+
An.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3685
|
+
if (e != null && We)
|
|
3686
|
+
for (var r of We(e))
|
|
3687
|
+
t.indexOf(r) < 0 && On.call(e, r) && (n[r] = e[r]);
|
|
3688
|
+
return n;
|
|
3689
|
+
};
|
|
3690
|
+
const Ne = (e, t) => {
|
|
3691
|
+
const { formats: n } = Te();
|
|
3692
|
+
if (e in n && t in n[e])
|
|
3693
|
+
return n[e][t];
|
|
3694
|
+
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3695
|
+
}, Fi = Je(
|
|
3696
|
+
(e) => {
|
|
3697
|
+
var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
|
|
3698
|
+
if (n == null)
|
|
3699
|
+
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3700
|
+
return r && (i = Ne("number", r)), new Intl.NumberFormat(n, i);
|
|
3701
|
+
}
|
|
3702
|
+
), ki = Je(
|
|
3703
|
+
(e) => {
|
|
3704
|
+
var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
|
|
3705
|
+
if (n == null)
|
|
3706
|
+
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3707
|
+
return r ? i = Ne("date", r) : Object.keys(i).length === 0 && (i = Ne("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3708
|
+
}
|
|
3709
|
+
), ji = Je(
|
|
3710
|
+
(e) => {
|
|
3711
|
+
var t = e, { locale: n, format: r } = t, i = Le(t, ["locale", "format"]);
|
|
3712
|
+
if (n == null)
|
|
3713
|
+
throw new Error(
|
|
3714
|
+
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3715
|
+
);
|
|
3716
|
+
return r ? i = Ne("time", r) : Object.keys(i).length === 0 && (i = Ne("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3717
|
+
}
|
|
3718
|
+
), Vi = (e = {}) => {
|
|
3719
|
+
var t = e, {
|
|
3720
|
+
locale: n = me()
|
|
3721
|
+
} = t, r = Le(t, [
|
|
3722
|
+
"locale"
|
|
3723
|
+
]);
|
|
3724
|
+
return Fi(Et({ locale: n }, r));
|
|
3725
|
+
}, Xi = (e = {}) => {
|
|
3726
|
+
var t = e, {
|
|
3727
|
+
locale: n = me()
|
|
3728
|
+
} = t, r = Le(t, [
|
|
3729
|
+
"locale"
|
|
3730
|
+
]);
|
|
3731
|
+
return ki(Et({ locale: n }, r));
|
|
3732
|
+
}, Wi = (e = {}) => {
|
|
3733
|
+
var t = e, {
|
|
3734
|
+
locale: n = me()
|
|
3735
|
+
} = t, r = Le(t, [
|
|
3736
|
+
"locale"
|
|
3737
|
+
]);
|
|
3738
|
+
return ji(Et({ locale: n }, r));
|
|
3739
|
+
}, zi = Je(
|
|
3740
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3741
|
+
(e, t = me()) => new wn(e, t, Te().formats, {
|
|
3742
|
+
ignoreTag: Te().ignoreTag
|
|
3743
|
+
})
|
|
3744
|
+
), Yi = (e, t = {}) => {
|
|
3745
|
+
var n, r, i, s;
|
|
3746
|
+
let a = t;
|
|
3747
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3748
|
+
const {
|
|
3749
|
+
values: o,
|
|
3750
|
+
locale: l = me(),
|
|
3751
|
+
default: u
|
|
3752
|
+
} = a;
|
|
3753
|
+
if (l == null)
|
|
3754
|
+
throw new Error(
|
|
3755
|
+
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3756
|
+
);
|
|
3757
|
+
let h = Sn(e, l);
|
|
3758
|
+
if (!h)
|
|
3759
|
+
h = (s = (i = (r = (n = Te()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3760
|
+
else if (typeof h != "string")
|
|
3761
|
+
return console.warn(
|
|
3762
|
+
`[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.`
|
|
3763
|
+
), h;
|
|
3764
|
+
if (!o)
|
|
3765
|
+
return h;
|
|
3766
|
+
let c = h;
|
|
3767
|
+
try {
|
|
3768
|
+
c = zi(h, l).format(o);
|
|
3769
|
+
} catch (p) {
|
|
3770
|
+
p instanceof Error && console.warn(
|
|
3771
|
+
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3772
|
+
p.message
|
|
3773
|
+
);
|
|
3774
|
+
}
|
|
3775
|
+
return c;
|
|
3776
|
+
}, Zi = (e, t) => Wi(t).format(e), Ji = (e, t) => Xi(t).format(e), Qi = (e, t) => Vi(t).format(e), qi = (e, t = me()) => Sn(e, t), Ki = Me([pe, Ce], () => Yi);
|
|
3777
|
+
Me([pe], () => Zi);
|
|
3778
|
+
Me([pe], () => Ji);
|
|
3779
|
+
Me([pe], () => Qi);
|
|
3780
|
+
Me([pe, Ce], () => qi);
|
|
3781
|
+
function Vt(e, t) {
|
|
3782
|
+
Hn(e, t);
|
|
3783
|
+
}
|
|
3784
|
+
function es(e) {
|
|
3785
|
+
$i({
|
|
3786
|
+
fallbackLocale: "en"
|
|
3787
|
+
}), pe.set(e);
|
|
3788
|
+
}
|
|
3789
|
+
const Xt = {
|
|
3790
|
+
en: {
|
|
3791
|
+
generalMin: "Min",
|
|
3792
|
+
generalMax: "Max",
|
|
3793
|
+
showAll: "SHOW ALL",
|
|
3794
|
+
showLess: "SHOW LESS"
|
|
3795
|
+
},
|
|
3796
|
+
uk: {
|
|
3797
|
+
generalMin: "Мін",
|
|
3798
|
+
generalMax: "Макс"
|
|
3799
|
+
},
|
|
3800
|
+
hr: {
|
|
3801
|
+
generalMin: "Minimalno",
|
|
3802
|
+
generalMax: "Maksimalno",
|
|
3803
|
+
showAll: "Prikaži sve",
|
|
3804
|
+
showLess: "Prikaži manje"
|
|
3805
|
+
},
|
|
3806
|
+
tr: {
|
|
3807
|
+
generalMin: "Min",
|
|
3808
|
+
generalMax: "Maks",
|
|
3809
|
+
showAll: "HEPSİNİ GÖSTER",
|
|
3810
|
+
showLess: "DAHA AZ GÖSTER"
|
|
3811
|
+
},
|
|
3812
|
+
"en-us": {
|
|
3813
|
+
generalMin: "Min",
|
|
3814
|
+
generalMax: "Max",
|
|
3815
|
+
showAll: "SHOW ALL",
|
|
3816
|
+
showLess: "SHOW LESS"
|
|
3817
|
+
}
|
|
3818
|
+
};
|
|
3819
|
+
var $n = { exports: {} };
|
|
3820
|
+
(function(e, t) {
|
|
3821
|
+
(function(n, r) {
|
|
3822
|
+
e.exports = r();
|
|
3823
|
+
})(sn, function() {
|
|
3824
|
+
var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", l = "hour", u = "day", h = "week", c = "month", p = "quarter", E = "year", w = "date", b = "Invalid Date", H = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
|
|
3825
|
+
var g = ["th", "st", "nd", "rd"], f = v % 100;
|
|
3826
|
+
return "[" + v + (g[(f - 20) % 10] || g[f] || g[0]) + "]";
|
|
3827
|
+
} }, A = function(v, g, f) {
|
|
3828
|
+
var y = String(v);
|
|
3829
|
+
return !y || y.length >= g ? v : "" + Array(g + 1 - y.length).join(f) + v;
|
|
3830
|
+
}, R = { s: A, z: function(v) {
|
|
3831
|
+
var g = -v.utcOffset(), f = Math.abs(g), y = Math.floor(f / 60), d = f % 60;
|
|
3832
|
+
return (g <= 0 ? "+" : "-") + A(y, 2, "0") + ":" + A(d, 2, "0");
|
|
3833
|
+
}, m: function v(g, f) {
|
|
3834
|
+
if (g.date() < f.date()) return -v(f, g);
|
|
3835
|
+
var y = 12 * (f.year() - g.year()) + (f.month() - g.month()), d = g.clone().add(y, c), _ = f - d < 0, x = g.clone().add(y + (_ ? -1 : 1), c);
|
|
3836
|
+
return +(-(y + (f - d) / (_ ? d - x : x - d)) || 0);
|
|
3837
|
+
}, a: function(v) {
|
|
3838
|
+
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
3839
|
+
}, p: function(v) {
|
|
3840
|
+
return { M: c, y: E, w: h, d: u, D: w, h: l, m: o, s: a, ms: s, Q: p }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
3841
|
+
}, u: function(v) {
|
|
3842
|
+
return v === void 0;
|
|
3843
|
+
} }, N = "en", F = {};
|
|
3844
|
+
F[N] = I;
|
|
3845
|
+
var G = "$isDayjsObject", ee = function(v) {
|
|
3846
|
+
return v instanceof se || !(!v || !v[G]);
|
|
3847
|
+
}, X = function v(g, f, y) {
|
|
3848
|
+
var d;
|
|
3849
|
+
if (!g) return N;
|
|
3850
|
+
if (typeof g == "string") {
|
|
3851
|
+
var _ = g.toLowerCase();
|
|
3852
|
+
F[_] && (d = _), f && (F[_] = f, d = _);
|
|
3853
|
+
var x = g.split("-");
|
|
3854
|
+
if (!d && x.length > 1) return v(x[0]);
|
|
3855
|
+
} else {
|
|
3856
|
+
var S = g.name;
|
|
3857
|
+
F[S] = g, d = S;
|
|
3858
|
+
}
|
|
3859
|
+
return !y && d && (N = d), d || !y && N;
|
|
3860
|
+
}, C = function(v, g) {
|
|
3861
|
+
if (ee(v)) return v.clone();
|
|
3862
|
+
var f = typeof g == "object" ? g : {};
|
|
3863
|
+
return f.date = v, f.args = arguments, new se(f);
|
|
3864
|
+
}, T = R;
|
|
3865
|
+
T.l = X, T.i = ee, T.w = function(v, g) {
|
|
3866
|
+
return C(v, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3867
|
+
};
|
|
3868
|
+
var se = function() {
|
|
3869
|
+
function v(f) {
|
|
3870
|
+
this.$L = X(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[G] = !0;
|
|
3871
|
+
}
|
|
3872
|
+
var g = v.prototype;
|
|
3873
|
+
return g.parse = function(f) {
|
|
3874
|
+
this.$d = function(y) {
|
|
3875
|
+
var d = y.date, _ = y.utc;
|
|
3876
|
+
if (d === null) return /* @__PURE__ */ new Date(NaN);
|
|
3877
|
+
if (T.u(d)) return /* @__PURE__ */ new Date();
|
|
3878
|
+
if (d instanceof Date) return new Date(d);
|
|
3879
|
+
if (typeof d == "string" && !/Z$/i.test(d)) {
|
|
3880
|
+
var x = d.match(H);
|
|
3881
|
+
if (x) {
|
|
3882
|
+
var S = x[2] - 1 || 0, U = (x[7] || "0").substring(0, 3);
|
|
3883
|
+
return _ ? new Date(Date.UTC(x[1], S, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, U)) : new Date(x[1], S, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, U);
|
|
3884
|
+
}
|
|
3885
|
+
}
|
|
3886
|
+
return new Date(d);
|
|
3887
|
+
}(f), this.init();
|
|
3888
|
+
}, g.init = function() {
|
|
3889
|
+
var f = this.$d;
|
|
3890
|
+
this.$y = f.getFullYear(), this.$M = f.getMonth(), this.$D = f.getDate(), this.$W = f.getDay(), this.$H = f.getHours(), this.$m = f.getMinutes(), this.$s = f.getSeconds(), this.$ms = f.getMilliseconds();
|
|
3891
|
+
}, g.$utils = function() {
|
|
3892
|
+
return T;
|
|
3893
|
+
}, g.isValid = function() {
|
|
3894
|
+
return this.$d.toString() !== b;
|
|
3895
|
+
}, g.isSame = function(f, y) {
|
|
3896
|
+
var d = C(f);
|
|
3897
|
+
return this.startOf(y) <= d && d <= this.endOf(y);
|
|
3898
|
+
}, g.isAfter = function(f, y) {
|
|
3899
|
+
return C(f) < this.startOf(y);
|
|
3900
|
+
}, g.isBefore = function(f, y) {
|
|
3901
|
+
return this.endOf(y) < C(f);
|
|
3902
|
+
}, g.$g = function(f, y, d) {
|
|
3903
|
+
return T.u(f) ? this[y] : this.set(d, f);
|
|
3904
|
+
}, g.unix = function() {
|
|
3905
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
3906
|
+
}, g.valueOf = function() {
|
|
3907
|
+
return this.$d.getTime();
|
|
3908
|
+
}, g.startOf = function(f, y) {
|
|
3909
|
+
var d = this, _ = !!T.u(y) || y, x = T.p(f), S = function(ue, W) {
|
|
3910
|
+
var m = T.w(d.$u ? Date.UTC(d.$y, W, ue) : new Date(d.$y, W, ue), d);
|
|
3911
|
+
return _ ? m : m.endOf(u);
|
|
3912
|
+
}, U = function(ue, W) {
|
|
3913
|
+
return T.w(d.toDate()[ue].apply(d.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(W)), d);
|
|
3914
|
+
}, k = this.$W, V = this.$M, q = this.$D, fe = "set" + (this.$u ? "UTC" : "");
|
|
3915
|
+
switch (x) {
|
|
3916
|
+
case E:
|
|
3917
|
+
return _ ? S(1, 0) : S(31, 11);
|
|
3918
|
+
case c:
|
|
3919
|
+
return _ ? S(1, V) : S(0, V + 1);
|
|
3920
|
+
case h:
|
|
3921
|
+
var oe = this.$locale().weekStart || 0, ge = (k < oe ? k + 7 : k) - oe;
|
|
3922
|
+
return S(_ ? q - ge : q + (6 - ge), V);
|
|
3923
|
+
case u:
|
|
3924
|
+
case w:
|
|
3925
|
+
return U(fe + "Hours", 0);
|
|
3926
|
+
case l:
|
|
3927
|
+
return U(fe + "Minutes", 1);
|
|
3928
|
+
case o:
|
|
3929
|
+
return U(fe + "Seconds", 2);
|
|
3930
|
+
case a:
|
|
3931
|
+
return U(fe + "Milliseconds", 3);
|
|
3932
|
+
default:
|
|
3933
|
+
return this.clone();
|
|
3934
|
+
}
|
|
3935
|
+
}, g.endOf = function(f) {
|
|
3936
|
+
return this.startOf(f, !1);
|
|
3937
|
+
}, g.$set = function(f, y) {
|
|
3938
|
+
var d, _ = T.p(f), x = "set" + (this.$u ? "UTC" : ""), S = (d = {}, d[u] = x + "Date", d[w] = x + "Date", d[c] = x + "Month", d[E] = x + "FullYear", d[l] = x + "Hours", d[o] = x + "Minutes", d[a] = x + "Seconds", d[s] = x + "Milliseconds", d)[_], U = _ === u ? this.$D + (y - this.$W) : y;
|
|
3939
|
+
if (_ === c || _ === E) {
|
|
3940
|
+
var k = this.clone().set(w, 1);
|
|
3941
|
+
k.$d[S](U), k.init(), this.$d = k.set(w, Math.min(this.$D, k.daysInMonth())).$d;
|
|
3942
|
+
} else S && this.$d[S](U);
|
|
3943
|
+
return this.init(), this;
|
|
3944
|
+
}, g.set = function(f, y) {
|
|
3945
|
+
return this.clone().$set(f, y);
|
|
3946
|
+
}, g.get = function(f) {
|
|
3947
|
+
return this[T.p(f)]();
|
|
3948
|
+
}, g.add = function(f, y) {
|
|
3949
|
+
var d, _ = this;
|
|
3950
|
+
f = Number(f);
|
|
3951
|
+
var x = T.p(y), S = function(V) {
|
|
3952
|
+
var q = C(_);
|
|
3953
|
+
return T.w(q.date(q.date() + Math.round(V * f)), _);
|
|
3954
|
+
};
|
|
3955
|
+
if (x === c) return this.set(c, this.$M + f);
|
|
3956
|
+
if (x === E) return this.set(E, this.$y + f);
|
|
3957
|
+
if (x === u) return S(1);
|
|
3958
|
+
if (x === h) return S(7);
|
|
3959
|
+
var U = (d = {}, d[o] = r, d[l] = i, d[a] = n, d)[x] || 1, k = this.$d.getTime() + f * U;
|
|
3960
|
+
return T.w(k, this);
|
|
3961
|
+
}, g.subtract = function(f, y) {
|
|
3962
|
+
return this.add(-1 * f, y);
|
|
3963
|
+
}, g.format = function(f) {
|
|
3964
|
+
var y = this, d = this.$locale();
|
|
3965
|
+
if (!this.isValid()) return d.invalidDate || b;
|
|
3966
|
+
var _ = f || "YYYY-MM-DDTHH:mm:ssZ", x = T.z(this), S = this.$H, U = this.$m, k = this.$M, V = d.weekdays, q = d.months, fe = d.meridiem, oe = function(W, m, $, Z) {
|
|
3967
|
+
return W && (W[m] || W(y, _)) || $[m].slice(0, Z);
|
|
3968
|
+
}, ge = function(W) {
|
|
3969
|
+
return T.s(S % 12 || 12, W, "0");
|
|
3970
|
+
}, ue = fe || function(W, m, $) {
|
|
3971
|
+
var Z = W < 12 ? "AM" : "PM";
|
|
3972
|
+
return $ ? Z.toLowerCase() : Z;
|
|
3973
|
+
};
|
|
3974
|
+
return _.replace(P, function(W, m) {
|
|
3975
|
+
return m || function($) {
|
|
3976
|
+
switch ($) {
|
|
3977
|
+
case "YY":
|
|
3978
|
+
return String(y.$y).slice(-2);
|
|
3979
|
+
case "YYYY":
|
|
3980
|
+
return T.s(y.$y, 4, "0");
|
|
3981
|
+
case "M":
|
|
3982
|
+
return k + 1;
|
|
3983
|
+
case "MM":
|
|
3984
|
+
return T.s(k + 1, 2, "0");
|
|
3985
|
+
case "MMM":
|
|
3986
|
+
return oe(d.monthsShort, k, q, 3);
|
|
3987
|
+
case "MMMM":
|
|
3988
|
+
return oe(q, k);
|
|
3989
|
+
case "D":
|
|
3990
|
+
return y.$D;
|
|
3991
|
+
case "DD":
|
|
3992
|
+
return T.s(y.$D, 2, "0");
|
|
3993
|
+
case "d":
|
|
3994
|
+
return String(y.$W);
|
|
3995
|
+
case "dd":
|
|
3996
|
+
return oe(d.weekdaysMin, y.$W, V, 2);
|
|
3997
|
+
case "ddd":
|
|
3998
|
+
return oe(d.weekdaysShort, y.$W, V, 3);
|
|
3999
|
+
case "dddd":
|
|
4000
|
+
return V[y.$W];
|
|
4001
|
+
case "H":
|
|
4002
|
+
return String(S);
|
|
4003
|
+
case "HH":
|
|
4004
|
+
return T.s(S, 2, "0");
|
|
4005
|
+
case "h":
|
|
4006
|
+
return ge(1);
|
|
4007
|
+
case "hh":
|
|
4008
|
+
return ge(2);
|
|
4009
|
+
case "a":
|
|
4010
|
+
return ue(S, U, !0);
|
|
4011
|
+
case "A":
|
|
4012
|
+
return ue(S, U, !1);
|
|
4013
|
+
case "m":
|
|
4014
|
+
return String(U);
|
|
4015
|
+
case "mm":
|
|
4016
|
+
return T.s(U, 2, "0");
|
|
4017
|
+
case "s":
|
|
4018
|
+
return String(y.$s);
|
|
4019
|
+
case "ss":
|
|
4020
|
+
return T.s(y.$s, 2, "0");
|
|
4021
|
+
case "SSS":
|
|
4022
|
+
return T.s(y.$ms, 3, "0");
|
|
4023
|
+
case "Z":
|
|
4024
|
+
return x;
|
|
4025
|
+
}
|
|
4026
|
+
return null;
|
|
4027
|
+
}(W) || x.replace(":", "");
|
|
4028
|
+
});
|
|
4029
|
+
}, g.utcOffset = function() {
|
|
4030
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4031
|
+
}, g.diff = function(f, y, d) {
|
|
4032
|
+
var _, x = this, S = T.p(y), U = C(f), k = (U.utcOffset() - this.utcOffset()) * r, V = this - U, q = function() {
|
|
4033
|
+
return T.m(x, U);
|
|
4034
|
+
};
|
|
4035
|
+
switch (S) {
|
|
4036
|
+
case E:
|
|
4037
|
+
_ = q() / 12;
|
|
4038
|
+
break;
|
|
4039
|
+
case c:
|
|
4040
|
+
_ = q();
|
|
4041
|
+
break;
|
|
4042
|
+
case p:
|
|
4043
|
+
_ = q() / 3;
|
|
4044
|
+
break;
|
|
4045
|
+
case h:
|
|
4046
|
+
_ = (V - k) / 6048e5;
|
|
4047
|
+
break;
|
|
4048
|
+
case u:
|
|
4049
|
+
_ = (V - k) / 864e5;
|
|
4050
|
+
break;
|
|
4051
|
+
case l:
|
|
4052
|
+
_ = V / i;
|
|
4053
|
+
break;
|
|
4054
|
+
case o:
|
|
4055
|
+
_ = V / r;
|
|
4056
|
+
break;
|
|
4057
|
+
case a:
|
|
4058
|
+
_ = V / n;
|
|
4059
|
+
break;
|
|
4060
|
+
default:
|
|
4061
|
+
_ = V;
|
|
4062
|
+
}
|
|
4063
|
+
return d ? _ : T.a(_);
|
|
4064
|
+
}, g.daysInMonth = function() {
|
|
4065
|
+
return this.endOf(c).$D;
|
|
4066
|
+
}, g.$locale = function() {
|
|
4067
|
+
return F[this.$L];
|
|
4068
|
+
}, g.locale = function(f, y) {
|
|
4069
|
+
if (!f) return this.$L;
|
|
4070
|
+
var d = this.clone(), _ = X(f, y, !0);
|
|
4071
|
+
return _ && (d.$L = _), d;
|
|
4072
|
+
}, g.clone = function() {
|
|
4073
|
+
return T.w(this.$d, this);
|
|
4074
|
+
}, g.toDate = function() {
|
|
4075
|
+
return new Date(this.valueOf());
|
|
4076
|
+
}, g.toJSON = function() {
|
|
4077
|
+
return this.isValid() ? this.toISOString() : null;
|
|
4078
|
+
}, g.toISOString = function() {
|
|
4079
|
+
return this.$d.toISOString();
|
|
4080
|
+
}, g.toString = function() {
|
|
4081
|
+
return this.$d.toUTCString();
|
|
4082
|
+
}, v;
|
|
4083
|
+
}(), de = se.prototype;
|
|
4084
|
+
return C.prototype = de, [["$ms", s], ["$s", a], ["$m", o], ["$H", l], ["$W", u], ["$M", c], ["$y", E], ["$D", w]].forEach(function(v) {
|
|
4085
|
+
de[v[1]] = function(g) {
|
|
4086
|
+
return this.$g(g, v[0], v[1]);
|
|
4087
|
+
};
|
|
4088
|
+
}), C.extend = function(v, g) {
|
|
4089
|
+
return v.$i || (v(g, se, C), v.$i = !0), C;
|
|
4090
|
+
}, C.locale = X, C.isDayjs = ee, C.unix = function(v) {
|
|
4091
|
+
return C(1e3 * v);
|
|
4092
|
+
}, C.en = F[N], C.Ls = F, C.p = {}, C;
|
|
4093
|
+
});
|
|
4094
|
+
})($n);
|
|
4095
|
+
var ts = $n.exports;
|
|
4096
|
+
const Wt = /* @__PURE__ */ vt(ts);
|
|
4097
|
+
var Bn = { exports: {} };
|
|
4098
|
+
(function(e, t) {
|
|
4099
|
+
(function(n, r) {
|
|
4100
|
+
e.exports = r();
|
|
4101
|
+
})(sn, function() {
|
|
4102
|
+
var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
|
|
4103
|
+
return function(s, a, o) {
|
|
4104
|
+
var l = a.prototype;
|
|
4105
|
+
o.utc = function(b) {
|
|
4106
|
+
var H = { date: b, utc: !0, args: arguments };
|
|
4107
|
+
return new a(H);
|
|
4108
|
+
}, l.utc = function(b) {
|
|
4109
|
+
var H = o(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4110
|
+
return b ? H.add(this.utcOffset(), n) : H;
|
|
4111
|
+
}, l.local = function() {
|
|
4112
|
+
return o(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4113
|
+
};
|
|
4114
|
+
var u = l.parse;
|
|
4115
|
+
l.parse = function(b) {
|
|
4116
|
+
b.utc && (this.$u = !0), this.$utils().u(b.$offset) || (this.$offset = b.$offset), u.call(this, b);
|
|
4117
|
+
};
|
|
4118
|
+
var h = l.init;
|
|
4119
|
+
l.init = function() {
|
|
4120
|
+
if (this.$u) {
|
|
4121
|
+
var b = this.$d;
|
|
4122
|
+
this.$y = b.getUTCFullYear(), this.$M = b.getUTCMonth(), this.$D = b.getUTCDate(), this.$W = b.getUTCDay(), this.$H = b.getUTCHours(), this.$m = b.getUTCMinutes(), this.$s = b.getUTCSeconds(), this.$ms = b.getUTCMilliseconds();
|
|
4123
|
+
} else h.call(this);
|
|
4124
|
+
};
|
|
4125
|
+
var c = l.utcOffset;
|
|
4126
|
+
l.utcOffset = function(b, H) {
|
|
4127
|
+
var P = this.$utils().u;
|
|
4128
|
+
if (P(b)) return this.$u ? 0 : P(this.$offset) ? c.call(this) : this.$offset;
|
|
4129
|
+
if (typeof b == "string" && (b = function(N) {
|
|
4130
|
+
N === void 0 && (N = "");
|
|
4131
|
+
var F = N.match(r);
|
|
4132
|
+
if (!F) return null;
|
|
4133
|
+
var G = ("" + F[0]).match(i) || ["-", 0, 0], ee = G[0], X = 60 * +G[1] + +G[2];
|
|
4134
|
+
return X === 0 ? 0 : ee === "+" ? X : -X;
|
|
4135
|
+
}(b), b === null)) return this;
|
|
4136
|
+
var I = Math.abs(b) <= 16 ? 60 * b : b, A = this;
|
|
4137
|
+
if (H) return A.$offset = I, A.$u = b === 0, A;
|
|
4138
|
+
if (b !== 0) {
|
|
4139
|
+
var R = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4140
|
+
(A = this.local().add(I + R, n)).$offset = I, A.$x.$localOffset = R;
|
|
4141
|
+
} else A = this.utc();
|
|
4142
|
+
return A;
|
|
4143
|
+
};
|
|
4144
|
+
var p = l.format;
|
|
4145
|
+
l.format = function(b) {
|
|
4146
|
+
var H = b || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4147
|
+
return p.call(this, H);
|
|
4148
|
+
}, l.valueOf = function() {
|
|
4149
|
+
var b = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4150
|
+
return this.$d.valueOf() - 6e4 * b;
|
|
4151
|
+
}, l.isUTC = function() {
|
|
4152
|
+
return !!this.$u;
|
|
4153
|
+
}, l.toISOString = function() {
|
|
4154
|
+
return this.toDate().toISOString();
|
|
4155
|
+
}, l.toString = function() {
|
|
4156
|
+
return this.toDate().toUTCString();
|
|
4157
|
+
};
|
|
4158
|
+
var E = l.toDate;
|
|
4159
|
+
l.toDate = function(b) {
|
|
4160
|
+
return b === "s" && this.$offset ? o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : E.call(this);
|
|
4161
|
+
};
|
|
4162
|
+
var w = l.diff;
|
|
4163
|
+
l.diff = function(b, H, P) {
|
|
4164
|
+
if (b && this.$u === b.$u) return w.call(this, b, H, P);
|
|
4165
|
+
var I = this.local(), A = o(b).local();
|
|
4166
|
+
return w.call(I, A, H, P);
|
|
4167
|
+
};
|
|
4168
|
+
};
|
|
4169
|
+
});
|
|
4170
|
+
})(Bn);
|
|
4171
|
+
var ns = Bn.exports;
|
|
4172
|
+
const rs = /* @__PURE__ */ vt(ns);
|
|
4173
|
+
function is(e) {
|
|
4174
|
+
Fn(e, "svelte-yskyrk", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CashierMethodList{display:flex;flex-direction:column;background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));width:100%;border-radius:var(--mmw--border-radius-medium-plus, 6px);container-name:method-list;container-type:inline-size}.SelectorWrapper{display:flex;flex-direction:row;align-items:center;justify-content:left;cursor:pointer;position:relative;height:var(--mmw-method-height, 80px);box-sizing:border-box;border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px)}.SelectorWrapper:first-child{border-radius:var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px) 0 0}.SelectorWrapper:last-child{border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.SelectorWrapper.checked{background:var(--emw--color-background-secondary, #F9F8F8)}.SelectorWrapper:not(.checked):hover{background:linear-gradient(0, var(--emw--color-background-secondary, #F9F8F8) 0%, var(--emw--color-background, #fff) 100%)}.MethodLogo{display:flex;justify-content:center;align-items:center;margin-right:var(--mmw--spacing-small, 14px);width:var(--mmw-logo-width, 110px);min-height:var(--mmw-logo-height, 64px);background:var(--emw--color-background, #FFF);border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden;max-height:calc(100% - var(--emw--spacing-small, 12px) - var(--emw--spacing-small, 12px))}.MethodLogo img{width:100%;height:100%}.MethodTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);word-break:break-all}.MethodLimits{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto}.Limits{max-width:100%;white-space:nowrap;font-size:var(--emw--font-size-small, 14px);line-height:var(--emw--line-height-xl, 24px);color:var(--mmw--color-grey-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-style:normal}.ShowAllButton{cursor:pointer;color:var(--mmw--color-grey-290, #666);text-align:center;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;background:var(--emw--color-gray-50, #F7F8FA);line-height:normal;border:1px solid var(--mmw--color-grey-105, #E8E9EB);border-radius:var(--emw--border-radius-medium, 4px);margin:var(--emw--spacing-small, 12px) auto;height:36px;display:flex;align-items:center;justify-content:center;width:80%}.ShowAllButton:hover{background:var(--emw--color-background, #fff)}@container method-list (width < 450px){.MethodLogo{min-width:var(--mmw-logo-small-width, 90px);min-height:var(--mmw-logo--small-height, 50px);overflow:hidden}.CashierMethodList .MethodTitle{display:inline-block;flex-grow:1;font-size:var(--emw--font-size-medium, 16px);line-height:120%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.CashierMethodList .MethodLimits .Limits{flex-shrink:0;font-size:var(--emw--font-size-x-small, 12px)}}@container method-list (max-width: 300px){.Limits{display:none}}");
|
|
4175
|
+
}
|
|
4176
|
+
function zt(e, t, n) {
|
|
4177
|
+
const r = e.slice();
|
|
4178
|
+
return r[47] = t[n], r[49] = n, r;
|
|
4179
|
+
}
|
|
4180
|
+
function Yt(e) {
|
|
4181
|
+
let t;
|
|
4182
|
+
return {
|
|
4183
|
+
c() {
|
|
4184
|
+
t = Y("cashier-spinner"), J(
|
|
4185
|
+
t,
|
|
4186
|
+
"clientstylingurl",
|
|
4187
|
+
/*clientstylingurl*/
|
|
4188
|
+
e[4]
|
|
4189
|
+
), J(
|
|
4190
|
+
t,
|
|
4191
|
+
"clientstyling",
|
|
4192
|
+
/*clientstyling*/
|
|
4193
|
+
e[3]
|
|
4194
|
+
);
|
|
4195
|
+
},
|
|
4196
|
+
m(n, r) {
|
|
4197
|
+
he(n, t, r);
|
|
4198
|
+
},
|
|
4199
|
+
p(n, r) {
|
|
4200
|
+
r[0] & /*clientstylingurl*/
|
|
4201
|
+
16 && J(
|
|
4202
|
+
t,
|
|
4203
|
+
"clientstylingurl",
|
|
4204
|
+
/*clientstylingurl*/
|
|
4205
|
+
n[4]
|
|
4206
|
+
), r[0] & /*clientstyling*/
|
|
4207
|
+
8 && J(
|
|
4208
|
+
t,
|
|
4209
|
+
"clientstyling",
|
|
4210
|
+
/*clientstyling*/
|
|
4211
|
+
n[3]
|
|
4212
|
+
);
|
|
4213
|
+
},
|
|
4214
|
+
d(n) {
|
|
4215
|
+
n && ae(t);
|
|
4216
|
+
}
|
|
4217
|
+
};
|
|
4218
|
+
}
|
|
4219
|
+
function Zt(e) {
|
|
4220
|
+
let t, n, r, i = At(
|
|
4221
|
+
/*paymentMethodsToShow*/
|
|
4222
|
+
e[8]
|
|
4223
|
+
), s = [];
|
|
4224
|
+
for (let o = 0; o < i.length; o += 1)
|
|
4225
|
+
s[o] = Jt(zt(e, i, o));
|
|
4226
|
+
let a = (
|
|
4227
|
+
/*methodsButtonToggleText*/
|
|
4228
|
+
e[7] && Qt(e)
|
|
4229
|
+
);
|
|
4230
|
+
return {
|
|
4231
|
+
c() {
|
|
4232
|
+
t = Y("div"), n = Y("div");
|
|
4233
|
+
for (let o = 0; o < s.length; o += 1)
|
|
4234
|
+
s[o].c();
|
|
4235
|
+
r = ne(), a && a.c(), z(n, "class", "CashierMethodList"), z(t, "class", "CashierMethodListWidget");
|
|
4236
|
+
},
|
|
4237
|
+
m(o, l) {
|
|
4238
|
+
he(o, t, l), B(t, n);
|
|
4239
|
+
for (let u = 0; u < s.length; u += 1)
|
|
4240
|
+
s[u] && s[u].m(n, null);
|
|
4241
|
+
B(t, r), a && a.m(t, null), e[26](t);
|
|
4242
|
+
},
|
|
4243
|
+
p(o, l) {
|
|
4244
|
+
if (l[0] & /*selectedPaymentMethod, paymentMethodsToShow, selectPayMeth, formatter, $_*/
|
|
4245
|
+
57664) {
|
|
4246
|
+
i = At(
|
|
4247
|
+
/*paymentMethodsToShow*/
|
|
4248
|
+
o[8]
|
|
4249
|
+
);
|
|
4250
|
+
let u;
|
|
4251
|
+
for (u = 0; u < i.length; u += 1) {
|
|
4252
|
+
const h = zt(o, i, u);
|
|
4253
|
+
s[u] ? s[u].p(h, l) : (s[u] = Jt(h), s[u].c(), s[u].m(n, null));
|
|
4254
|
+
}
|
|
4255
|
+
for (; u < s.length; u += 1)
|
|
4256
|
+
s[u].d(1);
|
|
4257
|
+
s.length = i.length;
|
|
4258
|
+
}
|
|
4259
|
+
/*methodsButtonToggleText*/
|
|
4260
|
+
o[7] ? a ? a.p(o, l) : (a = Qt(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4261
|
+
},
|
|
4262
|
+
d(o) {
|
|
4263
|
+
o && ae(t), Vn(s, o), a && a.d(), e[26](null);
|
|
4264
|
+
}
|
|
4265
|
+
};
|
|
4266
|
+
}
|
|
4267
|
+
function Jt(e) {
|
|
4268
|
+
let t, n, r, i, s, a, o, l, u = (
|
|
4269
|
+
/*payMeth*/
|
|
4270
|
+
(e[47].Label || /*payMeth*/
|
|
4271
|
+
e[47].Name) + ""
|
|
4272
|
+
), h, c, p, E, w = (
|
|
4273
|
+
/*$_*/
|
|
4274
|
+
e[13]("generalMin") + ""
|
|
4275
|
+
), b, H, P = (
|
|
4276
|
+
/*formatter*/
|
|
4277
|
+
e[14].format(
|
|
4278
|
+
/*payMeth*/
|
|
4279
|
+
e[47].DisplayCurrency.MinAmountLimit
|
|
4280
|
+
) + ""
|
|
4281
|
+
), I, A, R = (
|
|
4282
|
+
/*payMeth*/
|
|
4283
|
+
e[47].DisplayCurrency.Name + ""
|
|
4284
|
+
), N, F, G, ee = (
|
|
4285
|
+
/*$_*/
|
|
4286
|
+
e[13]("generalMax") + ""
|
|
4287
|
+
), X, C, T = (
|
|
4288
|
+
/*formatter*/
|
|
4289
|
+
e[14].format(
|
|
4290
|
+
/*payMeth*/
|
|
4291
|
+
e[47].DisplayCurrency.MaxAmountLimit
|
|
4292
|
+
) + ""
|
|
4293
|
+
), se, de, v = (
|
|
4294
|
+
/*payMeth*/
|
|
4295
|
+
e[47].DisplayCurrency.Name + ""
|
|
4296
|
+
), g, f, y, d;
|
|
4297
|
+
function _() {
|
|
4298
|
+
return (
|
|
4299
|
+
/*click_handler*/
|
|
4300
|
+
e[24](
|
|
4301
|
+
/*payMeth*/
|
|
4302
|
+
e[47]
|
|
4303
|
+
)
|
|
4304
|
+
);
|
|
4305
|
+
}
|
|
4306
|
+
return {
|
|
4307
|
+
c() {
|
|
4308
|
+
t = Y("div"), n = Y("div"), r = Y("img"), a = ne(), o = Y("div"), l = Y("span"), h = re(u), c = ne(), p = Y("div"), E = Y("span"), b = re(w), H = ne(), I = re(P), A = ne(), N = re(R), F = ne(), G = Y("span"), X = re(ee), C = ne(), se = re(T), de = ne(), g = re(v), f = ne(), Ht(r.src, i = /*payMeth*/
|
|
4309
|
+
e[47].LogoUrl) || z(r, "src", i), z(r, "alt", s = /*payMeth*/
|
|
4310
|
+
e[47].Label), z(n, "class", "MethodLogo"), z(o, "class", "MethodTitle"), z(E, "class", "Limits"), z(G, "class", "Limits"), z(p, "class", "MethodLimits"), z(t, "class", "SelectorWrapper"), Mt(
|
|
4311
|
+
t,
|
|
4312
|
+
"checked",
|
|
4313
|
+
/*selectedPaymentMethod*/
|
|
4314
|
+
e[6] === /*payMeth*/
|
|
4315
|
+
e[47].Name
|
|
4316
|
+
);
|
|
4317
|
+
},
|
|
4318
|
+
m(x, S) {
|
|
4319
|
+
he(x, t, S), B(t, n), B(n, r), B(t, a), B(t, o), B(o, l), B(l, h), B(t, c), B(t, p), B(p, E), B(E, b), B(E, H), B(E, I), B(E, A), B(E, N), B(p, F), B(p, G), B(G, X), B(G, C), B(G, se), B(G, de), B(G, g), B(t, f), y || (d = [
|
|
4320
|
+
ot(t, "click", _),
|
|
4321
|
+
ot(t, "keyup", os)
|
|
4322
|
+
], y = !0);
|
|
4323
|
+
},
|
|
4324
|
+
p(x, S) {
|
|
4325
|
+
e = x, S[0] & /*paymentMethodsToShow*/
|
|
4326
|
+
256 && !Ht(r.src, i = /*payMeth*/
|
|
4327
|
+
e[47].LogoUrl) && z(r, "src", i), S[0] & /*paymentMethodsToShow*/
|
|
4328
|
+
256 && s !== (s = /*payMeth*/
|
|
4329
|
+
e[47].Label) && z(r, "alt", s), S[0] & /*paymentMethodsToShow*/
|
|
4330
|
+
256 && u !== (u = /*payMeth*/
|
|
4331
|
+
(e[47].Label || /*payMeth*/
|
|
4332
|
+
e[47].Name) + "") && le(h, u), S[0] & /*$_*/
|
|
4333
|
+
8192 && w !== (w = /*$_*/
|
|
4334
|
+
e[13]("generalMin") + "") && le(b, w), S[0] & /*paymentMethodsToShow*/
|
|
4335
|
+
256 && P !== (P = /*formatter*/
|
|
4336
|
+
e[14].format(
|
|
4337
|
+
/*payMeth*/
|
|
4338
|
+
e[47].DisplayCurrency.MinAmountLimit
|
|
4339
|
+
) + "") && le(I, P), S[0] & /*paymentMethodsToShow*/
|
|
4340
|
+
256 && R !== (R = /*payMeth*/
|
|
4341
|
+
e[47].DisplayCurrency.Name + "") && le(N, R), S[0] & /*$_*/
|
|
4342
|
+
8192 && ee !== (ee = /*$_*/
|
|
4343
|
+
e[13]("generalMax") + "") && le(X, ee), S[0] & /*paymentMethodsToShow*/
|
|
4344
|
+
256 && T !== (T = /*formatter*/
|
|
4345
|
+
e[14].format(
|
|
4346
|
+
/*payMeth*/
|
|
4347
|
+
e[47].DisplayCurrency.MaxAmountLimit
|
|
4348
|
+
) + "") && le(se, T), S[0] & /*paymentMethodsToShow*/
|
|
4349
|
+
256 && v !== (v = /*payMeth*/
|
|
4350
|
+
e[47].DisplayCurrency.Name + "") && le(g, v), S[0] & /*selectedPaymentMethod, paymentMethodsToShow*/
|
|
4351
|
+
320 && Mt(
|
|
4352
|
+
t,
|
|
4353
|
+
"checked",
|
|
4354
|
+
/*selectedPaymentMethod*/
|
|
4355
|
+
e[6] === /*payMeth*/
|
|
4356
|
+
e[47].Name
|
|
4357
|
+
);
|
|
4358
|
+
},
|
|
4359
|
+
d(x) {
|
|
4360
|
+
x && ae(t), y = !1, He(d);
|
|
4361
|
+
}
|
|
4362
|
+
};
|
|
4363
|
+
}
|
|
4364
|
+
function Qt(e) {
|
|
4365
|
+
let t, n, r, i;
|
|
4366
|
+
return {
|
|
4367
|
+
c() {
|
|
4368
|
+
t = Y("div"), n = re(
|
|
4369
|
+
/*methodsButtonToggleText*/
|
|
4370
|
+
e[7]
|
|
4371
|
+
), z(t, "class", "ShowAllButton");
|
|
4372
|
+
},
|
|
4373
|
+
m(s, a) {
|
|
4374
|
+
he(s, t, a), B(t, n), r || (i = ot(
|
|
4375
|
+
t,
|
|
4376
|
+
"click",
|
|
4377
|
+
/*click_handler_1*/
|
|
4378
|
+
e[25]
|
|
4379
|
+
), r = !0);
|
|
4380
|
+
},
|
|
4381
|
+
p(s, a) {
|
|
4382
|
+
a[0] & /*methodsButtonToggleText*/
|
|
4383
|
+
128 && le(
|
|
4384
|
+
n,
|
|
4385
|
+
/*methodsButtonToggleText*/
|
|
4386
|
+
s[7]
|
|
4387
|
+
);
|
|
4388
|
+
},
|
|
4389
|
+
d(s) {
|
|
4390
|
+
s && ae(t), r = !1, i();
|
|
4391
|
+
}
|
|
4392
|
+
};
|
|
4393
|
+
}
|
|
4394
|
+
function qt(e) {
|
|
4395
|
+
let t, n, r;
|
|
4396
|
+
return {
|
|
4397
|
+
c() {
|
|
4398
|
+
t = Y("cashier-error"), n = Y("span"), r = re(
|
|
4399
|
+
/*errorMessage*/
|
|
4400
|
+
e[10]
|
|
4401
|
+
), z(n, "slot", "text"), J(
|
|
4402
|
+
t,
|
|
4403
|
+
"lang",
|
|
4404
|
+
/*lang*/
|
|
4405
|
+
e[0]
|
|
4406
|
+
), J(
|
|
4407
|
+
t,
|
|
4408
|
+
"assetsurl",
|
|
4409
|
+
/*assetsurl*/
|
|
4410
|
+
e[1]
|
|
4411
|
+
), J(
|
|
4412
|
+
t,
|
|
4413
|
+
"translationurl",
|
|
4414
|
+
/*translationurl*/
|
|
4415
|
+
e[2]
|
|
4416
|
+
), J(
|
|
4417
|
+
t,
|
|
4418
|
+
"clientstylingurl",
|
|
4419
|
+
/*clientstylingurl*/
|
|
4420
|
+
e[4]
|
|
4421
|
+
), J(
|
|
4422
|
+
t,
|
|
4423
|
+
"clientstyling",
|
|
4424
|
+
/*clientstyling*/
|
|
4425
|
+
e[3]
|
|
4426
|
+
), J(t, "hidebuttons", "true");
|
|
4427
|
+
},
|
|
4428
|
+
m(i, s) {
|
|
4429
|
+
he(i, t, s), B(t, n), B(n, r);
|
|
4430
|
+
},
|
|
4431
|
+
p(i, s) {
|
|
4432
|
+
s[0] & /*errorMessage*/
|
|
4433
|
+
1024 && le(
|
|
4434
|
+
r,
|
|
4435
|
+
/*errorMessage*/
|
|
4436
|
+
i[10]
|
|
4437
|
+
), s[0] & /*lang*/
|
|
4438
|
+
1 && J(
|
|
4439
|
+
t,
|
|
4440
|
+
"lang",
|
|
4441
|
+
/*lang*/
|
|
4442
|
+
i[0]
|
|
4443
|
+
), s[0] & /*assetsurl*/
|
|
4444
|
+
2 && J(
|
|
4445
|
+
t,
|
|
4446
|
+
"assetsurl",
|
|
4447
|
+
/*assetsurl*/
|
|
4448
|
+
i[1]
|
|
4449
|
+
), s[0] & /*translationurl*/
|
|
4450
|
+
4 && J(
|
|
4451
|
+
t,
|
|
4452
|
+
"translationurl",
|
|
4453
|
+
/*translationurl*/
|
|
4454
|
+
i[2]
|
|
4455
|
+
), s[0] & /*clientstylingurl*/
|
|
4456
|
+
16 && J(
|
|
4457
|
+
t,
|
|
4458
|
+
"clientstylingurl",
|
|
4459
|
+
/*clientstylingurl*/
|
|
4460
|
+
i[4]
|
|
4461
|
+
), s[0] & /*clientstyling*/
|
|
4462
|
+
8 && J(
|
|
4463
|
+
t,
|
|
4464
|
+
"clientstyling",
|
|
4465
|
+
/*clientstyling*/
|
|
4466
|
+
i[3]
|
|
4467
|
+
);
|
|
4468
|
+
},
|
|
4469
|
+
d(i) {
|
|
4470
|
+
i && ae(t);
|
|
4471
|
+
}
|
|
4472
|
+
};
|
|
4473
|
+
}
|
|
4474
|
+
function ss(e) {
|
|
4475
|
+
let t, n, r, i = (
|
|
4476
|
+
/*showSpinner*/
|
|
4477
|
+
e[12] && Yt(e)
|
|
4478
|
+
), s = (
|
|
4479
|
+
/*showMethodsList*/
|
|
4480
|
+
(e[9] || /*desktopView*/
|
|
4481
|
+
e[11]) && Zt(e)
|
|
4482
|
+
), a = (
|
|
4483
|
+
/*errorMessage*/
|
|
4484
|
+
e[10] && qt(e)
|
|
4485
|
+
);
|
|
4486
|
+
return {
|
|
4487
|
+
c() {
|
|
4488
|
+
i && i.c(), t = ne(), s && s.c(), n = ne(), a && a.c(), r = Xn();
|
|
4489
|
+
},
|
|
4490
|
+
m(o, l) {
|
|
4491
|
+
i && i.m(o, l), he(o, t, l), s && s.m(o, l), he(o, n, l), a && a.m(o, l), he(o, r, l);
|
|
4492
|
+
},
|
|
4493
|
+
p(o, l) {
|
|
4494
|
+
/*showSpinner*/
|
|
4495
|
+
o[12] ? i ? i.p(o, l) : (i = Yt(o), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null), /*showMethodsList*/
|
|
4496
|
+
o[9] || /*desktopView*/
|
|
4497
|
+
o[11] ? s ? s.p(o, l) : (s = Zt(o), s.c(), s.m(n.parentNode, n)) : s && (s.d(1), s = null), /*errorMessage*/
|
|
4498
|
+
o[10] ? a ? a.p(o, l) : (a = qt(o), a.c(), a.m(r.parentNode, r)) : a && (a.d(1), a = null);
|
|
4499
|
+
},
|
|
4500
|
+
i: ie,
|
|
4501
|
+
o: ie,
|
|
4502
|
+
d(o) {
|
|
4503
|
+
o && (ae(t), ae(n), ae(r)), i && i.d(o), s && s.d(o), a && a.d(o);
|
|
4504
|
+
}
|
|
4505
|
+
};
|
|
4506
|
+
}
|
|
4507
|
+
const os = () => {
|
|
4508
|
+
};
|
|
4509
|
+
function as(e, t, n) {
|
|
4510
|
+
let r;
|
|
4511
|
+
Gn(e, Ki, (m) => n(13, r = m)), Wt.extend(rs);
|
|
4512
|
+
let { lang: i = "en" } = t, { local: s = "en-US" } = t, { endpoint: a } = t, { session: o } = t, { customerid: l } = t, { assetsurl: u } = t, { currency: h } = t, { numberofmethodsshown: c } = t, { translationurl: p = "" } = t, { clientstyling: E = "" } = t, { clientstylingurl: w = "" } = t, { ismobileview: b } = t, H = [], P, I, A = "", R = [], N = !0, F = new Intl.NumberFormat(s, { minimumFractionDigits: 2 }), G = "", ee, X = !0, C = !1;
|
|
4513
|
+
var T;
|
|
4514
|
+
(function(m) {
|
|
4515
|
+
m.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", m.Success = "Success", m.JwtTokenError = "JwtTokenError";
|
|
4516
|
+
})(T || (T = {})), Jn();
|
|
4517
|
+
const se = () => {
|
|
4518
|
+
let m = p;
|
|
4519
|
+
if (m)
|
|
4520
|
+
return fetch(m).then(($) => $.json()).then(($) => {
|
|
4521
|
+
Object.keys($).forEach((Z) => {
|
|
4522
|
+
Vt(Z, $[Z]);
|
|
4523
|
+
});
|
|
4524
|
+
}).catch(($) => {
|
|
4525
|
+
console.log($);
|
|
4526
|
+
});
|
|
4527
|
+
};
|
|
4528
|
+
Object.keys(Xt).forEach((m) => {
|
|
4529
|
+
Vt(m, Xt[m]);
|
|
4530
|
+
});
|
|
4531
|
+
const de = () => {
|
|
4532
|
+
es(i);
|
|
4533
|
+
}, v = () => {
|
|
4534
|
+
n(12, C = !0);
|
|
4535
|
+
const m = new URL(`${a}/v1/player/${l}/payment/GetPaymentMetadata`), $ = new Headers();
|
|
4536
|
+
$.append("accept", "application/json"), $.append("Content-Type", "application/json"), $.append("X-Client-Request-Timestamp", Wt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4537
|
+
const Z = {
|
|
4538
|
+
method: "POST",
|
|
4539
|
+
headers: $,
|
|
4540
|
+
body: JSON.stringify({
|
|
4541
|
+
XPaymentSessionToken: o,
|
|
4542
|
+
Currency: h,
|
|
4543
|
+
Tags: { UserAgent: window.navigator.userAgent }
|
|
4544
|
+
})
|
|
4545
|
+
};
|
|
4546
|
+
fetch(m, Z).then((j) => j.json()).then((j) => {
|
|
4547
|
+
var be;
|
|
4548
|
+
if (j.error) {
|
|
4549
|
+
n(10, G = j.error);
|
|
4550
|
+
return;
|
|
4551
|
+
}
|
|
4552
|
+
if (j.ResponseCode !== T.Success) {
|
|
4553
|
+
ee = j.ResponseCode, d();
|
|
4554
|
+
return;
|
|
4555
|
+
}
|
|
4556
|
+
H = (be = j.PaymentMethods) != null && be.Ordering ? g(j) : f(j), n(7, A = c && +c > 0 && H.length > +c ? r("showAll") : ""), n(8, R = A ? H.slice(0, +c) : H), window.postMessage(
|
|
4557
|
+
{
|
|
4558
|
+
type: "StartSessionCountdown",
|
|
4559
|
+
paymentMethodName: H[0].Name,
|
|
4560
|
+
xPaymentSessionToken: j.XPaymentSessionToken
|
|
4561
|
+
},
|
|
4562
|
+
window.location.href
|
|
4563
|
+
);
|
|
4564
|
+
}).finally(() => n(12, C = !1));
|
|
4565
|
+
}, g = (m) => {
|
|
4566
|
+
const $ = [];
|
|
4567
|
+
return m.PaymentMethods.Ordering.DefaultPaymentMethodsOrder.forEach((Z) => {
|
|
4568
|
+
const j = m.PaymentMethods.PaymentMethods.find((be) => be.Name === Z);
|
|
4569
|
+
if (j) {
|
|
4570
|
+
const be = (j == null ? void 0 : j.Logos.find((Qe) => Qe.LogoType === "Desktop")) || {}, Pn = (j == null ? void 0 : j.Logos.find((Qe) => Qe.LogoType === "Mobile")) || {}, _t = X ? be : Pn;
|
|
4571
|
+
$.push(Re(De({}, j), {
|
|
4572
|
+
LogoUrl: _t.LogoUrl ? `https:${_t.LogoUrl}` : ""
|
|
4573
|
+
}));
|
|
4574
|
+
}
|
|
4575
|
+
}), $;
|
|
4576
|
+
}, f = (m) => m.PaymentMethods.PaymentMethods.map(($) => Re(De({}, $), {
|
|
4577
|
+
LogoUrl: $.Logos && $.Logos.length && $.Logos[0].LogoUrl ? `https:${$.Logos[0].LogoUrl}` : ""
|
|
4578
|
+
})), y = (m) => {
|
|
4579
|
+
n(6, I = m.Name), window.postMessage({ type: "SelectPayMeth", details: m }, window.location.href), dispatchEvent(new CustomEvent(
|
|
4580
|
+
"selectPayMeth",
|
|
4581
|
+
{
|
|
4582
|
+
detail: m,
|
|
4583
|
+
bubbles: !0,
|
|
4584
|
+
cancelable: !0,
|
|
4585
|
+
composed: !0
|
|
4586
|
+
}
|
|
4587
|
+
));
|
|
4588
|
+
}, d = () => {
|
|
4589
|
+
window.postMessage(
|
|
4590
|
+
{
|
|
4591
|
+
type: "ErrorResponseCode",
|
|
4592
|
+
errorResponseCode: ee
|
|
4593
|
+
},
|
|
4594
|
+
window.location.href
|
|
4595
|
+
);
|
|
4596
|
+
}, _ = () => {
|
|
4597
|
+
n(11, X = b === "false");
|
|
4598
|
+
}, x = () => {
|
|
4599
|
+
R == H ? U() : S();
|
|
4600
|
+
}, S = () => {
|
|
4601
|
+
n(8, R = H), n(7, A = r("showLess"));
|
|
4602
|
+
}, U = () => {
|
|
4603
|
+
n(8, R = H.slice(0, +c)), I && !R.find((m) => m.Name === I) && R.splice(0, 0, H.find((m) => m.Name === I)), n(7, A = r("showAll"));
|
|
4604
|
+
}, k = () => {
|
|
4605
|
+
n(9, N = !0);
|
|
4606
|
+
}, V = (m) => {
|
|
4607
|
+
n(9, N = !m.hideMethodsList);
|
|
4608
|
+
}, q = () => {
|
|
4609
|
+
let m = document.createElement("style");
|
|
4610
|
+
m.innerHTML = E, P.appendChild(m);
|
|
4611
|
+
}, fe = () => {
|
|
4612
|
+
let m = new URL(w), $ = document.createElement("style");
|
|
4613
|
+
fetch(m.href).then((Z) => Z.text()).then((Z) => {
|
|
4614
|
+
$.innerHTML = Z, setTimeout(
|
|
4615
|
+
() => {
|
|
4616
|
+
P.appendChild($);
|
|
4617
|
+
},
|
|
4618
|
+
1
|
|
4619
|
+
), setTimeout(
|
|
4620
|
+
() => {
|
|
4621
|
+
},
|
|
4622
|
+
500
|
|
4623
|
+
);
|
|
4624
|
+
});
|
|
4625
|
+
};
|
|
4626
|
+
Zn(() => (window.addEventListener("message", oe, !1), () => {
|
|
4627
|
+
window.removeEventListener("message", oe, !1);
|
|
4628
|
+
}));
|
|
4629
|
+
const oe = (m) => {
|
|
4630
|
+
switch (m.data.type) {
|
|
4631
|
+
case "BackToMethodList":
|
|
4632
|
+
k();
|
|
4633
|
+
break;
|
|
4634
|
+
case "HideMethodsList":
|
|
4635
|
+
V(m.data.details);
|
|
4636
|
+
break;
|
|
4637
|
+
}
|
|
4638
|
+
}, ge = (m) => y(m), ue = () => x();
|
|
4639
|
+
function W(m) {
|
|
4640
|
+
at[m ? "unshift" : "push"](() => {
|
|
4641
|
+
P = m, n(5, P);
|
|
4642
|
+
});
|
|
4643
|
+
}
|
|
4644
|
+
return e.$$set = (m) => {
|
|
4645
|
+
"lang" in m && n(0, i = m.lang), "local" in m && n(17, s = m.local), "endpoint" in m && n(18, a = m.endpoint), "session" in m && n(19, o = m.session), "customerid" in m && n(20, l = m.customerid), "assetsurl" in m && n(1, u = m.assetsurl), "currency" in m && n(21, h = m.currency), "numberofmethodsshown" in m && n(22, c = m.numberofmethodsshown), "translationurl" in m && n(2, p = m.translationurl), "clientstyling" in m && n(3, E = m.clientstyling), "clientstylingurl" in m && n(4, w = m.clientstylingurl), "ismobileview" in m && n(23, b = m.ismobileview);
|
|
4646
|
+
}, e.$$.update = () => {
|
|
4647
|
+
e.$$.dirty[0] & /*endpoint, session, customerid*/
|
|
4648
|
+
1835008 && a && o && l && v(), e.$$.dirty[0] & /*lang*/
|
|
4649
|
+
1 && i && de(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4650
|
+
40 && E && P && q(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4651
|
+
48 && w && P && fe(), e.$$.dirty[0] & /*ismobileview*/
|
|
4652
|
+
8388608 && b && _(), e.$$.dirty[0] & /*lang, translationurl*/
|
|
4653
|
+
5 && i && p && se();
|
|
4654
|
+
}, [
|
|
4655
|
+
i,
|
|
4656
|
+
u,
|
|
4657
|
+
p,
|
|
4658
|
+
E,
|
|
4659
|
+
w,
|
|
4660
|
+
P,
|
|
4661
|
+
I,
|
|
4662
|
+
A,
|
|
4663
|
+
R,
|
|
4664
|
+
N,
|
|
4665
|
+
G,
|
|
4666
|
+
X,
|
|
4667
|
+
C,
|
|
4668
|
+
r,
|
|
4669
|
+
F,
|
|
4670
|
+
y,
|
|
4671
|
+
x,
|
|
4672
|
+
s,
|
|
4673
|
+
a,
|
|
4674
|
+
o,
|
|
4675
|
+
l,
|
|
4676
|
+
h,
|
|
4677
|
+
c,
|
|
4678
|
+
b,
|
|
4679
|
+
ge,
|
|
4680
|
+
ue,
|
|
4681
|
+
W
|
|
4682
|
+
];
|
|
4683
|
+
}
|
|
4684
|
+
class us extends ur {
|
|
4685
|
+
constructor(t) {
|
|
4686
|
+
super(), or(
|
|
4687
|
+
this,
|
|
4688
|
+
t,
|
|
4689
|
+
as,
|
|
4690
|
+
ss,
|
|
4691
|
+
en,
|
|
4692
|
+
{
|
|
4693
|
+
lang: 0,
|
|
4694
|
+
local: 17,
|
|
4695
|
+
endpoint: 18,
|
|
4696
|
+
session: 19,
|
|
4697
|
+
customerid: 20,
|
|
4698
|
+
assetsurl: 1,
|
|
4699
|
+
currency: 21,
|
|
4700
|
+
numberofmethodsshown: 22,
|
|
4701
|
+
translationurl: 2,
|
|
4702
|
+
clientstyling: 3,
|
|
4703
|
+
clientstylingurl: 4,
|
|
4704
|
+
ismobileview: 23
|
|
4705
|
+
},
|
|
4706
|
+
is,
|
|
4707
|
+
[-1, -1]
|
|
4708
|
+
);
|
|
4709
|
+
}
|
|
4710
|
+
get lang() {
|
|
4711
|
+
return this.$$.ctx[0];
|
|
4712
|
+
}
|
|
4713
|
+
set lang(t) {
|
|
4714
|
+
this.$$set({ lang: t }), K();
|
|
4715
|
+
}
|
|
4716
|
+
get local() {
|
|
4717
|
+
return this.$$.ctx[17];
|
|
4718
|
+
}
|
|
4719
|
+
set local(t) {
|
|
4720
|
+
this.$$set({ local: t }), K();
|
|
4721
|
+
}
|
|
4722
|
+
get endpoint() {
|
|
4723
|
+
return this.$$.ctx[18];
|
|
4724
|
+
}
|
|
4725
|
+
set endpoint(t) {
|
|
4726
|
+
this.$$set({ endpoint: t }), K();
|
|
4727
|
+
}
|
|
4728
|
+
get session() {
|
|
4729
|
+
return this.$$.ctx[19];
|
|
4730
|
+
}
|
|
4731
|
+
set session(t) {
|
|
4732
|
+
this.$$set({ session: t }), K();
|
|
4733
|
+
}
|
|
4734
|
+
get customerid() {
|
|
4735
|
+
return this.$$.ctx[20];
|
|
4736
|
+
}
|
|
4737
|
+
set customerid(t) {
|
|
4738
|
+
this.$$set({ customerid: t }), K();
|
|
4739
|
+
}
|
|
4740
|
+
get assetsurl() {
|
|
4741
|
+
return this.$$.ctx[1];
|
|
4742
|
+
}
|
|
4743
|
+
set assetsurl(t) {
|
|
4744
|
+
this.$$set({ assetsurl: t }), K();
|
|
4745
|
+
}
|
|
4746
|
+
get currency() {
|
|
4747
|
+
return this.$$.ctx[21];
|
|
4748
|
+
}
|
|
4749
|
+
set currency(t) {
|
|
4750
|
+
this.$$set({ currency: t }), K();
|
|
4751
|
+
}
|
|
4752
|
+
get numberofmethodsshown() {
|
|
4753
|
+
return this.$$.ctx[22];
|
|
4754
|
+
}
|
|
4755
|
+
set numberofmethodsshown(t) {
|
|
4756
|
+
this.$$set({ numberofmethodsshown: t }), K();
|
|
4757
|
+
}
|
|
4758
|
+
get translationurl() {
|
|
4759
|
+
return this.$$.ctx[2];
|
|
4760
|
+
}
|
|
4761
|
+
set translationurl(t) {
|
|
4762
|
+
this.$$set({ translationurl: t }), K();
|
|
4763
|
+
}
|
|
4764
|
+
get clientstyling() {
|
|
4765
|
+
return this.$$.ctx[3];
|
|
4766
|
+
}
|
|
4767
|
+
set clientstyling(t) {
|
|
4768
|
+
this.$$set({ clientstyling: t }), K();
|
|
4769
|
+
}
|
|
4770
|
+
get clientstylingurl() {
|
|
4771
|
+
return this.$$.ctx[4];
|
|
4772
|
+
}
|
|
4773
|
+
set clientstylingurl(t) {
|
|
4774
|
+
this.$$set({ clientstylingurl: t }), K();
|
|
4775
|
+
}
|
|
4776
|
+
get ismobileview() {
|
|
4777
|
+
return this.$$.ctx[23];
|
|
4778
|
+
}
|
|
4779
|
+
set ismobileview(t) {
|
|
4780
|
+
this.$$set({ ismobileview: t }), K();
|
|
4781
|
+
}
|
|
4782
|
+
}
|
|
4783
|
+
ar(us, { lang: {}, local: {}, endpoint: {}, session: {}, customerid: {}, assetsurl: {}, currency: {}, numberofmethodsshown: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, ismobileview: {} }, [], [], !0);
|
|
4784
|
+
export {
|
|
4785
|
+
us as default
|
|
4786
|
+
};
|