@everymatrix/player-account-gaming-limits-popup 1.86.3 → 1.86.5
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/PlayerAccountGamingLimitsPopup-C5YoXENK.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsPopup-CZL0tEMt.js → PlayerAccountGamingLimitsPopup-DZrFAZfJ.js} +761 -740
- package/components/{PlayerAccountGamingLimitsPopup-DD8pVJ20.js → PlayerAccountGamingLimitsPopup-DrZbor7u.js} +743 -722
- package/es2015/player-account-gaming-limits-popup.cjs +1 -1
- package/es2015/player-account-gaming-limits-popup.js +1 -1
- package/esnext/player-account-gaming-limits-popup.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsPopup-Cd30ACd0.cjs +0 -18
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
function
|
|
1
|
+
function C() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Tt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function te(e) {
|
|
10
|
+
e.forEach(Tt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function qe(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function St(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function nr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function wt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return C;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function ir(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(wt(t, r));
|
|
32
32
|
}
|
|
33
33
|
function P(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function or(e, t, r) {
|
|
37
|
+
const n = ar(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = B("style");
|
|
40
|
+
i.id = t, i.textContent = r, sr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ar(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,50 +50,50 @@ function or(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function sr(e, t) {
|
|
54
54
|
return P(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function re(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function z(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function B(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ne(e) {
|
|
70
70
|
return document.createTextNode(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
72
|
+
function _e() {
|
|
73
|
+
return ne(" ");
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function ur() {
|
|
76
|
+
return ne("");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function lr(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function hr(e) {
|
|
82
82
|
return function(t) {
|
|
83
83
|
return t.preventDefault(), e.call(this, t);
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function A(e, t, r) {
|
|
87
87
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function cr(e) {
|
|
90
90
|
return Array.from(e.childNodes);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Ze(e, t) {
|
|
93
93
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
94
94
|
t);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function fr(e) {
|
|
97
97
|
const t = {};
|
|
98
98
|
return e.childNodes.forEach(
|
|
99
99
|
/** @param {Element} node */
|
|
@@ -102,95 +102,95 @@ function cr(e) {
|
|
|
102
102
|
}
|
|
103
103
|
), t;
|
|
104
104
|
}
|
|
105
|
-
let
|
|
106
|
-
function
|
|
107
|
-
|
|
105
|
+
let J;
|
|
106
|
+
function Q(e) {
|
|
107
|
+
J = e;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
if (!
|
|
109
|
+
function pr() {
|
|
110
|
+
if (!J)
|
|
111
111
|
throw new Error("Function called outside component initialization");
|
|
112
|
-
return
|
|
112
|
+
return J;
|
|
113
113
|
}
|
|
114
114
|
function dr(e) {
|
|
115
|
-
|
|
115
|
+
pr().$$.on_mount.push(e);
|
|
116
116
|
}
|
|
117
|
-
const G = [],
|
|
117
|
+
const G = [], Be = [];
|
|
118
118
|
let D = [];
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
function
|
|
122
|
-
|
|
119
|
+
const Ke = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
120
|
+
let Ce = !1;
|
|
121
|
+
function br() {
|
|
122
|
+
Ce || (Ce = !0, mr.then(O));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Oe(e) {
|
|
125
125
|
D.push(e);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
128
|
-
let
|
|
127
|
+
const Ee = /* @__PURE__ */ new Set();
|
|
128
|
+
let R = 0;
|
|
129
129
|
function O() {
|
|
130
|
-
if (
|
|
130
|
+
if (R !== 0)
|
|
131
131
|
return;
|
|
132
|
-
const e =
|
|
132
|
+
const e = J;
|
|
133
133
|
do {
|
|
134
134
|
try {
|
|
135
|
-
for (;
|
|
136
|
-
const t = G[
|
|
137
|
-
|
|
135
|
+
for (; R < G.length; ) {
|
|
136
|
+
const t = G[R];
|
|
137
|
+
R++, Q(t), vr(t.$$);
|
|
138
138
|
}
|
|
139
139
|
} catch (t) {
|
|
140
|
-
throw G.length = 0,
|
|
140
|
+
throw G.length = 0, R = 0, t;
|
|
141
141
|
}
|
|
142
|
-
for (
|
|
143
|
-
|
|
142
|
+
for (Q(null), G.length = 0, R = 0; Be.length; )
|
|
143
|
+
Be.pop()();
|
|
144
144
|
for (let t = 0; t < D.length; t += 1) {
|
|
145
145
|
const r = D[t];
|
|
146
|
-
|
|
146
|
+
Ee.has(r) || (Ee.add(r), r());
|
|
147
147
|
}
|
|
148
148
|
D.length = 0;
|
|
149
149
|
} while (G.length);
|
|
150
|
-
for (;
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
for (; Ke.length; )
|
|
151
|
+
Ke.pop()();
|
|
152
|
+
Ce = !1, Ee.clear(), Q(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function vr(e) {
|
|
155
155
|
if (e.fragment !== null) {
|
|
156
|
-
e.update(),
|
|
156
|
+
e.update(), te(e.before_update);
|
|
157
157
|
const t = e.dirty;
|
|
158
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
158
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Oe);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function gr(e) {
|
|
162
162
|
const t = [], r = [];
|
|
163
163
|
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
|
164
164
|
}
|
|
165
|
-
const
|
|
166
|
-
function
|
|
167
|
-
e && e.i && (
|
|
165
|
+
const yr = /* @__PURE__ */ new Set();
|
|
166
|
+
function xr(e, t) {
|
|
167
|
+
e && e.i && (yr.delete(e), e.i(t));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function _r(e, t, r) {
|
|
170
170
|
const { fragment: n, after_update: i } = e.$$;
|
|
171
|
-
n && n.m(t, r),
|
|
172
|
-
const o = e.$$.on_mount.map(
|
|
173
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
174
|
-
}), i.forEach(
|
|
171
|
+
n && n.m(t, r), Oe(() => {
|
|
172
|
+
const o = e.$$.on_mount.map(Tt).filter(qe);
|
|
173
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
|
174
|
+
}), i.forEach(Oe);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Er(e, t) {
|
|
177
177
|
const r = e.$$;
|
|
178
|
-
r.fragment !== null && (
|
|
178
|
+
r.fragment !== null && (gr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
e.$$.dirty[0] === -1 && (G.push(e),
|
|
180
|
+
function Tr(e, t) {
|
|
181
|
+
e.$$.dirty[0] === -1 && (G.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
const l =
|
|
185
|
-
|
|
183
|
+
function Sr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
184
|
+
const l = J;
|
|
185
|
+
Q(e);
|
|
186
186
|
const u = e.$$ = {
|
|
187
187
|
fragment: null,
|
|
188
188
|
ctx: [],
|
|
189
189
|
// state
|
|
190
190
|
props: o,
|
|
191
|
-
update:
|
|
191
|
+
update: C,
|
|
192
192
|
not_equal: i,
|
|
193
|
-
bound:
|
|
193
|
+
bound: Je(),
|
|
194
194
|
// lifecycle
|
|
195
195
|
on_mount: [],
|
|
196
196
|
on_destroy: [],
|
|
@@ -199,28 +199,28 @@ function Tr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
199
199
|
after_update: [],
|
|
200
200
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
201
201
|
// everything else
|
|
202
|
-
callbacks:
|
|
202
|
+
callbacks: Je(),
|
|
203
203
|
dirty: s,
|
|
204
204
|
skip_bound: !1,
|
|
205
205
|
root: t.target || l.$$.root
|
|
206
206
|
};
|
|
207
207
|
a && a(u.root);
|
|
208
208
|
let h = !1;
|
|
209
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
210
|
-
const
|
|
211
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
212
|
-
}) : [], u.update(), h = !0,
|
|
209
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
210
|
+
const d = p.length ? p[0] : c;
|
|
211
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && Tr(e, f)), c;
|
|
212
|
+
}) : [], u.update(), h = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
213
213
|
if (t.hydrate) {
|
|
214
|
-
const f =
|
|
215
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
214
|
+
const f = cr(t.target);
|
|
215
|
+
u.fragment && u.fragment.l(f), f.forEach(z);
|
|
216
216
|
} else
|
|
217
217
|
u.fragment && u.fragment.c();
|
|
218
|
-
t.intro &&
|
|
218
|
+
t.intro && xr(e.$$.fragment), _r(e, t.target, t.anchor), O();
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
Q(l);
|
|
221
221
|
}
|
|
222
|
-
let
|
|
223
|
-
typeof HTMLElement == "function" && (
|
|
222
|
+
let Pt;
|
|
223
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
224
224
|
/** The Svelte component constructor */
|
|
225
225
|
$$ctor;
|
|
226
226
|
/** Slots */
|
|
@@ -262,24 +262,24 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
262
262
|
let o;
|
|
263
263
|
return {
|
|
264
264
|
c: function() {
|
|
265
|
-
o =
|
|
265
|
+
o = B("slot"), i !== "default" && A(o, "name", i);
|
|
266
266
|
},
|
|
267
267
|
/**
|
|
268
268
|
* @param {HTMLElement} target
|
|
269
269
|
* @param {HTMLElement} [anchor]
|
|
270
270
|
*/
|
|
271
271
|
m: function(l, u) {
|
|
272
|
-
|
|
272
|
+
re(l, o, u);
|
|
273
273
|
},
|
|
274
274
|
d: function(l) {
|
|
275
|
-
l &&
|
|
275
|
+
l && z(o);
|
|
276
276
|
}
|
|
277
277
|
};
|
|
278
278
|
};
|
|
279
279
|
};
|
|
280
280
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
281
281
|
return;
|
|
282
|
-
const t = {}, r =
|
|
282
|
+
const t = {}, r = fr(this);
|
|
283
283
|
for (const i of this.$$s)
|
|
284
284
|
i in r && (t[i] = [e(i)]);
|
|
285
285
|
for (const i of this.attributes) {
|
|
@@ -366,8 +366,8 @@ function ue(e, t, r, n) {
|
|
|
366
366
|
return t;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
let a = class extends
|
|
369
|
+
function wr(e, t, r, n, i, o) {
|
|
370
|
+
let a = class extends Pt {
|
|
371
371
|
constructor() {
|
|
372
372
|
super(e, r, i), this.$$p_d = t;
|
|
373
373
|
}
|
|
@@ -395,7 +395,7 @@ function Sr(e, t, r, n, i, o) {
|
|
|
395
395
|
}), e.element = /** @type {any} */
|
|
396
396
|
a, a;
|
|
397
397
|
}
|
|
398
|
-
class
|
|
398
|
+
class Pr {
|
|
399
399
|
/**
|
|
400
400
|
* ### PRIVATE API
|
|
401
401
|
*
|
|
@@ -414,7 +414,7 @@ class wr {
|
|
|
414
414
|
$$set = void 0;
|
|
415
415
|
/** @returns {void} */
|
|
416
416
|
$destroy() {
|
|
417
|
-
|
|
417
|
+
Er(this, 1), this.$destroy = C;
|
|
418
418
|
}
|
|
419
419
|
/**
|
|
420
420
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -423,8 +423,8 @@ class wr {
|
|
|
423
423
|
* @returns {() => void}
|
|
424
424
|
*/
|
|
425
425
|
$on(t, r) {
|
|
426
|
-
if (!
|
|
427
|
-
return
|
|
426
|
+
if (!qe(r))
|
|
427
|
+
return C;
|
|
428
428
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
429
429
|
return n.push(r), () => {
|
|
430
430
|
const i = n.indexOf(r);
|
|
@@ -436,11 +436,11 @@ class wr {
|
|
|
436
436
|
* @returns {void}
|
|
437
437
|
*/
|
|
438
438
|
$set(t) {
|
|
439
|
-
this.$$set && !
|
|
439
|
+
this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
const
|
|
443
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
442
|
+
const Hr = "4";
|
|
443
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
|
|
444
444
|
/*! *****************************************************************************
|
|
445
445
|
Copyright (c) Microsoft Corporation.
|
|
446
446
|
|
|
@@ -455,43 +455,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
455
455
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
456
456
|
PERFORMANCE OF THIS SOFTWARE.
|
|
457
457
|
***************************************************************************** */
|
|
458
|
-
var
|
|
459
|
-
return
|
|
458
|
+
var Le = function(e, t) {
|
|
459
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
460
460
|
r.__proto__ = n;
|
|
461
461
|
} || function(r, n) {
|
|
462
462
|
for (var i in n)
|
|
463
463
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
464
|
-
},
|
|
464
|
+
}, Le(e, t);
|
|
465
465
|
};
|
|
466
|
-
function
|
|
466
|
+
function ie(e, t) {
|
|
467
467
|
if (typeof t != "function" && t !== null)
|
|
468
468
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
469
|
-
|
|
469
|
+
Le(e, t);
|
|
470
470
|
function r() {
|
|
471
471
|
this.constructor = e;
|
|
472
472
|
}
|
|
473
473
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
474
474
|
}
|
|
475
|
-
|
|
476
|
-
return g = Object.assign || function(t) {
|
|
477
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
478
|
-
r = arguments[n];
|
|
479
|
-
for (var o in r)
|
|
480
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
481
|
-
}
|
|
482
|
-
return t;
|
|
483
|
-
}, g.apply(this, arguments);
|
|
484
|
-
};
|
|
485
|
-
function Hr(e, t) {
|
|
486
|
-
var r = {};
|
|
487
|
-
for (var n in e)
|
|
488
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
489
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
490
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
491
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
492
|
-
return r;
|
|
493
|
-
}
|
|
494
|
-
function Oe(e) {
|
|
475
|
+
function Me(e) {
|
|
495
476
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
496
477
|
if (r)
|
|
497
478
|
return r.call(e);
|
|
@@ -503,7 +484,7 @@ function Oe(e) {
|
|
|
503
484
|
};
|
|
504
485
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
505
486
|
}
|
|
506
|
-
function
|
|
487
|
+
function Ne(e, t) {
|
|
507
488
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
508
489
|
if (!r)
|
|
509
490
|
return e;
|
|
@@ -523,8 +504,8 @@ function Me(e, t) {
|
|
|
523
504
|
}
|
|
524
505
|
return o;
|
|
525
506
|
}
|
|
526
|
-
function
|
|
527
|
-
if (
|
|
507
|
+
function $e(e, t, r) {
|
|
508
|
+
if (arguments.length === 2)
|
|
528
509
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
529
510
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
530
511
|
return e.concat(o || t);
|
|
@@ -532,13 +513,13 @@ function F(e, t, r) {
|
|
|
532
513
|
function M(e) {
|
|
533
514
|
return typeof e == "function";
|
|
534
515
|
}
|
|
535
|
-
function
|
|
516
|
+
function Ht(e) {
|
|
536
517
|
var t = function(n) {
|
|
537
518
|
Error.call(n), n.stack = new Error().stack;
|
|
538
519
|
}, r = e(t);
|
|
539
520
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
540
521
|
}
|
|
541
|
-
var
|
|
522
|
+
var Te = Ht(function(e) {
|
|
542
523
|
return function(r) {
|
|
543
524
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
544
525
|
` + r.map(function(n, i) {
|
|
@@ -547,13 +528,13 @@ var _e = wt(function(e) {
|
|
|
547
528
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
548
529
|
};
|
|
549
530
|
});
|
|
550
|
-
function
|
|
531
|
+
function Re(e, t) {
|
|
551
532
|
if (e) {
|
|
552
533
|
var r = e.indexOf(t);
|
|
553
534
|
0 <= r && e.splice(r, 1);
|
|
554
535
|
}
|
|
555
536
|
}
|
|
556
|
-
var
|
|
537
|
+
var me = function() {
|
|
557
538
|
function e(t) {
|
|
558
539
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
559
540
|
}
|
|
@@ -565,12 +546,12 @@ var pe = function() {
|
|
|
565
546
|
if (a)
|
|
566
547
|
if (this._parentage = null, Array.isArray(a))
|
|
567
548
|
try {
|
|
568
|
-
for (var s =
|
|
549
|
+
for (var s = Me(a), l = s.next(); !l.done; l = s.next()) {
|
|
569
550
|
var u = l.value;
|
|
570
551
|
u.remove(this);
|
|
571
552
|
}
|
|
572
|
-
} catch (
|
|
573
|
-
t = { error:
|
|
553
|
+
} catch (g) {
|
|
554
|
+
t = { error: g };
|
|
574
555
|
} finally {
|
|
575
556
|
try {
|
|
576
557
|
l && !l.done && (r = s.return) && r.call(s);
|
|
@@ -585,26 +566,26 @@ var pe = function() {
|
|
|
585
566
|
if (M(h))
|
|
586
567
|
try {
|
|
587
568
|
h();
|
|
588
|
-
} catch (
|
|
589
|
-
o =
|
|
569
|
+
} catch (g) {
|
|
570
|
+
o = g instanceof Te ? g.errors : [g];
|
|
590
571
|
}
|
|
591
572
|
var f = this._finalizers;
|
|
592
573
|
if (f) {
|
|
593
574
|
this._finalizers = null;
|
|
594
575
|
try {
|
|
595
|
-
for (var c =
|
|
596
|
-
var
|
|
576
|
+
for (var c = Me(f), p = c.next(); !p.done; p = c.next()) {
|
|
577
|
+
var d = p.value;
|
|
597
578
|
try {
|
|
598
|
-
|
|
599
|
-
} catch (
|
|
600
|
-
o = o ?? [],
|
|
579
|
+
et(d);
|
|
580
|
+
} catch (g) {
|
|
581
|
+
o = o ?? [], g instanceof Te ? o = $e($e([], Ne(o)), Ne(g.errors)) : o.push(g);
|
|
601
582
|
}
|
|
602
583
|
}
|
|
603
|
-
} catch (
|
|
604
|
-
n = { error:
|
|
584
|
+
} catch (g) {
|
|
585
|
+
n = { error: g };
|
|
605
586
|
} finally {
|
|
606
587
|
try {
|
|
607
|
-
|
|
588
|
+
p && !p.done && (i = c.return) && i.call(c);
|
|
608
589
|
} finally {
|
|
609
590
|
if (n)
|
|
610
591
|
throw n.error;
|
|
@@ -612,13 +593,13 @@ var pe = function() {
|
|
|
612
593
|
}
|
|
613
594
|
}
|
|
614
595
|
if (o)
|
|
615
|
-
throw new
|
|
596
|
+
throw new Te(o);
|
|
616
597
|
}
|
|
617
598
|
}, e.prototype.add = function(t) {
|
|
618
599
|
var r;
|
|
619
600
|
if (t && t !== this)
|
|
620
601
|
if (this.closed)
|
|
621
|
-
|
|
602
|
+
et(t);
|
|
622
603
|
else {
|
|
623
604
|
if (t instanceof e) {
|
|
624
605
|
if (t.closed || t._hasParent(this))
|
|
@@ -635,32 +616,28 @@ var pe = function() {
|
|
|
635
616
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
636
617
|
}, e.prototype._removeParent = function(t) {
|
|
637
618
|
var r = this._parentage;
|
|
638
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
619
|
+
r === t ? this._parentage = null : Array.isArray(r) && Re(r, t);
|
|
639
620
|
}, e.prototype.remove = function(t) {
|
|
640
621
|
var r = this._finalizers;
|
|
641
|
-
r &&
|
|
622
|
+
r && Re(r, t), t instanceof e && t._removeParent(this);
|
|
642
623
|
}, e.EMPTY = function() {
|
|
643
624
|
var t = new e();
|
|
644
625
|
return t.closed = !0, t;
|
|
645
626
|
}(), e;
|
|
646
|
-
}(),
|
|
647
|
-
function
|
|
648
|
-
return e instanceof
|
|
627
|
+
}(), It = me.EMPTY;
|
|
628
|
+
function At(e) {
|
|
629
|
+
return e instanceof me || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
649
630
|
}
|
|
650
|
-
function
|
|
631
|
+
function et(e) {
|
|
651
632
|
M(e) ? e() : e.unsubscribe();
|
|
652
633
|
}
|
|
653
|
-
var
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
Promise: void 0,
|
|
657
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
658
|
-
useDeprecatedNextContext: !1
|
|
659
|
-
}, Ir = {
|
|
634
|
+
var Ir = {
|
|
635
|
+
Promise: void 0
|
|
636
|
+
}, Ar = {
|
|
660
637
|
setTimeout: function(e, t) {
|
|
661
638
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
662
639
|
r[n - 2] = arguments[n];
|
|
663
|
-
return setTimeout.apply(void 0,
|
|
640
|
+
return setTimeout.apply(void 0, $e([e, t], Ne(r)));
|
|
664
641
|
},
|
|
665
642
|
clearTimeout: function(e) {
|
|
666
643
|
return clearTimeout(e);
|
|
@@ -668,23 +645,23 @@ var It = {
|
|
|
668
645
|
delegate: void 0
|
|
669
646
|
};
|
|
670
647
|
function Br(e) {
|
|
671
|
-
|
|
648
|
+
Ar.setTimeout(function() {
|
|
672
649
|
throw e;
|
|
673
650
|
});
|
|
674
651
|
}
|
|
675
|
-
function
|
|
652
|
+
function tt() {
|
|
676
653
|
}
|
|
677
654
|
function le(e) {
|
|
678
655
|
e();
|
|
679
656
|
}
|
|
680
657
|
var Bt = function(e) {
|
|
681
|
-
|
|
658
|
+
ie(t, e);
|
|
682
659
|
function t(r) {
|
|
683
660
|
var n = e.call(this) || this;
|
|
684
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
661
|
+
return n.isStopped = !1, r ? (n.destination = r, At(r) && r.add(n)) : n.destination = Lr, n;
|
|
685
662
|
}
|
|
686
663
|
return t.create = function(r, n, i) {
|
|
687
|
-
return new
|
|
664
|
+
return new Ue(r, n, i);
|
|
688
665
|
}, t.prototype.next = function(r) {
|
|
689
666
|
this.isStopped || this._next(r);
|
|
690
667
|
}, t.prototype.error = function(r) {
|
|
@@ -708,11 +685,7 @@ var Bt = function(e) {
|
|
|
708
685
|
this.unsubscribe();
|
|
709
686
|
}
|
|
710
687
|
}, t;
|
|
711
|
-
}(
|
|
712
|
-
function Ee(e, t) {
|
|
713
|
-
return Cr.call(e, t);
|
|
714
|
-
}
|
|
715
|
-
var Ar = function() {
|
|
688
|
+
}(me), Cr = function() {
|
|
716
689
|
function e(t) {
|
|
717
690
|
this.partialObserver = t;
|
|
718
691
|
}
|
|
@@ -743,27 +716,15 @@ var Ar = function() {
|
|
|
743
716
|
ae(r);
|
|
744
717
|
}
|
|
745
718
|
}, e;
|
|
746
|
-
}(),
|
|
747
|
-
|
|
719
|
+
}(), Ue = function(e) {
|
|
720
|
+
ie(t, e);
|
|
748
721
|
function t(r, n, i) {
|
|
749
722
|
var o = e.call(this) || this, a;
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
};
|
|
756
|
-
else {
|
|
757
|
-
var s;
|
|
758
|
-
o && It.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
759
|
-
return o.unsubscribe();
|
|
760
|
-
}, a = {
|
|
761
|
-
next: r.next && Ee(r.next, s),
|
|
762
|
-
error: r.error && Ee(r.error, s),
|
|
763
|
-
complete: r.complete && Ee(r.complete, s)
|
|
764
|
-
}) : a = r;
|
|
765
|
-
}
|
|
766
|
-
return o.destination = new Ar(a), o;
|
|
723
|
+
return M(r) || !r ? a = {
|
|
724
|
+
next: r ?? void 0,
|
|
725
|
+
error: n ?? void 0,
|
|
726
|
+
complete: i ?? void 0
|
|
727
|
+
} : a = r, o.destination = new Cr(a), o;
|
|
767
728
|
}
|
|
768
729
|
return t;
|
|
769
730
|
}(Bt);
|
|
@@ -773,25 +734,25 @@ function ae(e) {
|
|
|
773
734
|
function Or(e) {
|
|
774
735
|
throw e;
|
|
775
736
|
}
|
|
776
|
-
var
|
|
737
|
+
var Lr = {
|
|
777
738
|
closed: !0,
|
|
778
|
-
next:
|
|
739
|
+
next: tt,
|
|
779
740
|
error: Or,
|
|
780
|
-
complete:
|
|
781
|
-
},
|
|
741
|
+
complete: tt
|
|
742
|
+
}, Mr = function() {
|
|
782
743
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
783
744
|
}();
|
|
784
745
|
function Nr(e) {
|
|
785
746
|
return e;
|
|
786
747
|
}
|
|
787
|
-
function
|
|
748
|
+
function $r(e) {
|
|
788
749
|
return e.length === 0 ? Nr : e.length === 1 ? e[0] : function(r) {
|
|
789
750
|
return e.reduce(function(n, i) {
|
|
790
751
|
return i(n);
|
|
791
752
|
}, r);
|
|
792
753
|
};
|
|
793
754
|
}
|
|
794
|
-
var
|
|
755
|
+
var rt = function() {
|
|
795
756
|
function e(t) {
|
|
796
757
|
t && (this._subscribe = t);
|
|
797
758
|
}
|
|
@@ -799,7 +760,7 @@ var et = function() {
|
|
|
799
760
|
var r = new e();
|
|
800
761
|
return r.source = this, r.operator = t, r;
|
|
801
762
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
802
|
-
var i = this, o = Ur(t) ? t : new
|
|
763
|
+
var i = this, o = Ur(t) ? t : new Ue(t, r, n);
|
|
803
764
|
return le(function() {
|
|
804
765
|
var a = i, s = a.operator, l = a.source;
|
|
805
766
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -812,8 +773,8 @@ var et = function() {
|
|
|
812
773
|
}
|
|
813
774
|
}, e.prototype.forEach = function(t, r) {
|
|
814
775
|
var n = this;
|
|
815
|
-
return r =
|
|
816
|
-
var a = new
|
|
776
|
+
return r = nt(r), new r(function(i, o) {
|
|
777
|
+
var a = new Ue({
|
|
817
778
|
next: function(s) {
|
|
818
779
|
try {
|
|
819
780
|
t(s);
|
|
@@ -829,15 +790,15 @@ var et = function() {
|
|
|
829
790
|
}, e.prototype._subscribe = function(t) {
|
|
830
791
|
var r;
|
|
831
792
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
832
|
-
}, e.prototype[
|
|
793
|
+
}, e.prototype[Mr] = function() {
|
|
833
794
|
return this;
|
|
834
795
|
}, e.prototype.pipe = function() {
|
|
835
796
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
836
797
|
t[r] = arguments[r];
|
|
837
|
-
return
|
|
798
|
+
return $r(t)(this);
|
|
838
799
|
}, e.prototype.toPromise = function(t) {
|
|
839
800
|
var r = this;
|
|
840
|
-
return t =
|
|
801
|
+
return t = nt(t), new t(function(n, i) {
|
|
841
802
|
var o;
|
|
842
803
|
r.subscribe(function(a) {
|
|
843
804
|
return o = a;
|
|
@@ -851,28 +812,28 @@ var et = function() {
|
|
|
851
812
|
return new e(t);
|
|
852
813
|
}, e;
|
|
853
814
|
}();
|
|
854
|
-
function
|
|
815
|
+
function nt(e) {
|
|
855
816
|
var t;
|
|
856
|
-
return (t = e ??
|
|
817
|
+
return (t = e ?? Ir.Promise) !== null && t !== void 0 ? t : Promise;
|
|
857
818
|
}
|
|
858
|
-
function
|
|
819
|
+
function Rr(e) {
|
|
859
820
|
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
860
821
|
}
|
|
861
822
|
function Ur(e) {
|
|
862
|
-
return e && e instanceof Bt ||
|
|
823
|
+
return e && e instanceof Bt || Rr(e) && At(e);
|
|
863
824
|
}
|
|
864
|
-
var Gr =
|
|
825
|
+
var Gr = Ht(function(e) {
|
|
865
826
|
return function() {
|
|
866
827
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
867
828
|
};
|
|
868
829
|
}), Ct = function(e) {
|
|
869
|
-
|
|
830
|
+
ie(t, e);
|
|
870
831
|
function t() {
|
|
871
832
|
var r = e.call(this) || this;
|
|
872
833
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
873
834
|
}
|
|
874
835
|
return t.prototype.lift = function(r) {
|
|
875
|
-
var n = new
|
|
836
|
+
var n = new it(this, this);
|
|
876
837
|
return n.operator = r, n;
|
|
877
838
|
}, t.prototype._throwIfClosed = function() {
|
|
878
839
|
if (this.closed)
|
|
@@ -884,7 +845,7 @@ var Gr = wt(function(e) {
|
|
|
884
845
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
885
846
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
886
847
|
try {
|
|
887
|
-
for (var a =
|
|
848
|
+
for (var a = Me(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
888
849
|
var l = s.value;
|
|
889
850
|
l.next(r);
|
|
890
851
|
}
|
|
@@ -933,20 +894,20 @@ var Gr = wt(function(e) {
|
|
|
933
894
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
934
895
|
}, t.prototype._innerSubscribe = function(r) {
|
|
935
896
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
936
|
-
return o || a ?
|
|
937
|
-
n.currentObservers = null,
|
|
897
|
+
return o || a ? It : (this.currentObservers = null, s.push(r), new me(function() {
|
|
898
|
+
n.currentObservers = null, Re(s, r);
|
|
938
899
|
}));
|
|
939
900
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
940
901
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
941
902
|
i ? r.error(o) : a && r.complete();
|
|
942
903
|
}, t.prototype.asObservable = function() {
|
|
943
|
-
var r = new
|
|
904
|
+
var r = new rt();
|
|
944
905
|
return r.source = this, r;
|
|
945
906
|
}, t.create = function(r, n) {
|
|
946
|
-
return new
|
|
907
|
+
return new it(r, n);
|
|
947
908
|
}, t;
|
|
948
|
-
}(
|
|
949
|
-
|
|
909
|
+
}(rt), it = function(e) {
|
|
910
|
+
ie(t, e);
|
|
950
911
|
function t(r, n) {
|
|
951
912
|
var i = e.call(this) || this;
|
|
952
913
|
return i.destination = r, i.source = n, i;
|
|
@@ -962,17 +923,17 @@ var Gr = wt(function(e) {
|
|
|
962
923
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
963
924
|
}, t.prototype._subscribe = function(r) {
|
|
964
925
|
var n, i;
|
|
965
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
926
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : It;
|
|
966
927
|
}, t;
|
|
967
|
-
}(Ct),
|
|
928
|
+
}(Ct), Ot = {
|
|
968
929
|
now: function() {
|
|
969
|
-
return (
|
|
930
|
+
return (Ot.delegate || Date).now();
|
|
970
931
|
},
|
|
971
932
|
delegate: void 0
|
|
972
933
|
}, Dr = function(e) {
|
|
973
|
-
|
|
934
|
+
ie(t, e);
|
|
974
935
|
function t(r, n, i) {
|
|
975
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
936
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ot);
|
|
976
937
|
var o = e.call(this) || this;
|
|
977
938
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
978
939
|
}
|
|
@@ -993,23 +954,23 @@ var Gr = wt(function(e) {
|
|
|
993
954
|
}
|
|
994
955
|
}, t;
|
|
995
956
|
}(Ct);
|
|
996
|
-
const
|
|
997
|
-
if (
|
|
957
|
+
const ot = [], at = {}, Fr = (e, t = 0) => {
|
|
958
|
+
if (ot.indexOf(e) == -1) {
|
|
998
959
|
const r = new Dr(t);
|
|
999
|
-
|
|
960
|
+
at[e] = r, ot.push(e);
|
|
1000
961
|
}
|
|
1001
|
-
return
|
|
962
|
+
return at[e];
|
|
1002
963
|
}, U = [];
|
|
1003
964
|
function jr(e, t) {
|
|
1004
965
|
return {
|
|
1005
|
-
subscribe:
|
|
966
|
+
subscribe: be(e, t).subscribe
|
|
1006
967
|
};
|
|
1007
968
|
}
|
|
1008
|
-
function
|
|
969
|
+
function be(e, t = C) {
|
|
1009
970
|
let r;
|
|
1010
971
|
const n = /* @__PURE__ */ new Set();
|
|
1011
972
|
function i(s) {
|
|
1012
|
-
if (
|
|
973
|
+
if (St(e, s) && (e = s, r)) {
|
|
1013
974
|
const l = !U.length;
|
|
1014
975
|
for (const u of n)
|
|
1015
976
|
u[1](), U.push(u, e);
|
|
@@ -1023,15 +984,15 @@ function me(e, t = A) {
|
|
|
1023
984
|
function o(s) {
|
|
1024
985
|
i(s(e));
|
|
1025
986
|
}
|
|
1026
|
-
function a(s, l =
|
|
987
|
+
function a(s, l = C) {
|
|
1027
988
|
const u = [s, l];
|
|
1028
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
989
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || C), s(e), () => {
|
|
1029
990
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1030
991
|
};
|
|
1031
992
|
}
|
|
1032
993
|
return { set: i, update: o, subscribe: a };
|
|
1033
994
|
}
|
|
1034
|
-
function
|
|
995
|
+
function W(e, t, r) {
|
|
1035
996
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1036
997
|
if (!i.every(Boolean))
|
|
1037
998
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1039,26 +1000,26 @@ function X(e, t, r) {
|
|
|
1039
1000
|
return jr(r, (a, s) => {
|
|
1040
1001
|
let l = !1;
|
|
1041
1002
|
const u = [];
|
|
1042
|
-
let h = 0, f =
|
|
1003
|
+
let h = 0, f = C;
|
|
1043
1004
|
const c = () => {
|
|
1044
1005
|
if (h)
|
|
1045
1006
|
return;
|
|
1046
1007
|
f();
|
|
1047
|
-
const
|
|
1048
|
-
o ? a(
|
|
1049
|
-
},
|
|
1050
|
-
(
|
|
1051
|
-
|
|
1008
|
+
const d = t(n ? u[0] : u, a, s);
|
|
1009
|
+
o ? a(d) : f = qe(d) ? d : C;
|
|
1010
|
+
}, p = i.map(
|
|
1011
|
+
(d, g) => wt(
|
|
1012
|
+
d,
|
|
1052
1013
|
(S) => {
|
|
1053
|
-
u[
|
|
1014
|
+
u[g] = S, h &= ~(1 << g), l && c();
|
|
1054
1015
|
},
|
|
1055
1016
|
() => {
|
|
1056
|
-
h |= 1 <<
|
|
1017
|
+
h |= 1 << g;
|
|
1057
1018
|
}
|
|
1058
1019
|
)
|
|
1059
1020
|
);
|
|
1060
1021
|
return l = !0, c(), function() {
|
|
1061
|
-
|
|
1022
|
+
te(p), f(), l = !1;
|
|
1062
1023
|
};
|
|
1063
1024
|
});
|
|
1064
1025
|
}
|
|
@@ -1082,29 +1043,29 @@ function Zr(e) {
|
|
|
1082
1043
|
function Yr(e) {
|
|
1083
1044
|
return Array.isArray(e) ? [] : {};
|
|
1084
1045
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1046
|
+
function K(e, t) {
|
|
1047
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Yr(e), e, t) : e;
|
|
1087
1048
|
}
|
|
1088
1049
|
function Qr(e, t, r) {
|
|
1089
1050
|
return e.concat(t).map(function(n) {
|
|
1090
|
-
return
|
|
1051
|
+
return K(n, r);
|
|
1091
1052
|
});
|
|
1092
1053
|
}
|
|
1093
1054
|
function Jr(e, t) {
|
|
1094
1055
|
if (!t.customMerge)
|
|
1095
|
-
return
|
|
1056
|
+
return F;
|
|
1096
1057
|
var r = t.customMerge(e);
|
|
1097
|
-
return typeof r == "function" ? r :
|
|
1058
|
+
return typeof r == "function" ? r : F;
|
|
1098
1059
|
}
|
|
1099
1060
|
function Kr(e) {
|
|
1100
1061
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1101
1062
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1102
1063
|
}) : [];
|
|
1103
1064
|
}
|
|
1104
|
-
function
|
|
1065
|
+
function st(e) {
|
|
1105
1066
|
return Object.keys(e).concat(Kr(e));
|
|
1106
1067
|
}
|
|
1107
|
-
function
|
|
1068
|
+
function Lt(e, t) {
|
|
1108
1069
|
try {
|
|
1109
1070
|
return t in e;
|
|
1110
1071
|
} catch {
|
|
@@ -1112,129 +1073,179 @@ function Ot(e, t) {
|
|
|
1112
1073
|
}
|
|
1113
1074
|
}
|
|
1114
1075
|
function en(e, t) {
|
|
1115
|
-
return
|
|
1076
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1116
1077
|
}
|
|
1117
1078
|
function tn(e, t, r) {
|
|
1118
1079
|
var n = {};
|
|
1119
|
-
return r.isMergeableObject(e) &&
|
|
1120
|
-
n[i] =
|
|
1121
|
-
}),
|
|
1122
|
-
en(e, i) || (
|
|
1080
|
+
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
1081
|
+
n[i] = K(e[i], r);
|
|
1082
|
+
}), st(t).forEach(function(i) {
|
|
1083
|
+
en(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
1123
1084
|
}), n;
|
|
1124
1085
|
}
|
|
1125
|
-
function
|
|
1126
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified =
|
|
1086
|
+
function F(e, t, r) {
|
|
1087
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified = K;
|
|
1127
1088
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1128
|
-
return o ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) :
|
|
1089
|
+
return o ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) : K(t, r);
|
|
1129
1090
|
}
|
|
1130
|
-
|
|
1091
|
+
F.all = function(t, r) {
|
|
1131
1092
|
if (!Array.isArray(t))
|
|
1132
1093
|
throw new Error("first argument should be an array");
|
|
1133
1094
|
return t.reduce(function(n, i) {
|
|
1134
|
-
return
|
|
1095
|
+
return F(n, i, r);
|
|
1135
1096
|
}, {});
|
|
1136
1097
|
};
|
|
1137
|
-
var rn =
|
|
1098
|
+
var rn = F, nn = rn;
|
|
1138
1099
|
const on = /* @__PURE__ */ kr(nn);
|
|
1139
|
-
function
|
|
1140
|
-
|
|
1100
|
+
var Ge = function(e, t) {
|
|
1101
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1102
|
+
r.__proto__ = n;
|
|
1103
|
+
} || function(r, n) {
|
|
1104
|
+
for (var i in n)
|
|
1105
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1106
|
+
}, Ge(e, t);
|
|
1107
|
+
};
|
|
1108
|
+
function ve(e, t) {
|
|
1109
|
+
if (typeof t != "function" && t !== null)
|
|
1110
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1111
|
+
Ge(e, t);
|
|
1112
|
+
function r() {
|
|
1113
|
+
this.constructor = e;
|
|
1114
|
+
}
|
|
1115
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1116
|
+
}
|
|
1117
|
+
var L = function() {
|
|
1118
|
+
return L = Object.assign || function(t) {
|
|
1119
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1120
|
+
r = arguments[n];
|
|
1121
|
+
for (var o in r)
|
|
1122
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1123
|
+
}
|
|
1124
|
+
return t;
|
|
1125
|
+
}, L.apply(this, arguments);
|
|
1126
|
+
};
|
|
1127
|
+
function an(e, t) {
|
|
1128
|
+
var r = {};
|
|
1129
|
+
for (var n in e)
|
|
1130
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1131
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1132
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1133
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1134
|
+
return r;
|
|
1135
|
+
}
|
|
1136
|
+
function Se(e, t, r) {
|
|
1137
|
+
if (r || arguments.length === 2)
|
|
1138
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1139
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1140
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1141
|
+
}
|
|
1142
|
+
function we(e, t) {
|
|
1143
|
+
var r = t && t.cache ? t.cache : pn, n = t && t.serializer ? t.serializer : cn, i = t && t.strategy ? t.strategy : ln;
|
|
1141
1144
|
return i(e, {
|
|
1142
1145
|
cache: r,
|
|
1143
1146
|
serializer: n
|
|
1144
1147
|
});
|
|
1145
1148
|
}
|
|
1146
|
-
function
|
|
1149
|
+
function sn(e) {
|
|
1147
1150
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1148
1151
|
}
|
|
1149
|
-
function
|
|
1150
|
-
var i =
|
|
1152
|
+
function un(e, t, r, n) {
|
|
1153
|
+
var i = sn(n) ? n : r(n), o = t.get(i);
|
|
1151
1154
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1152
1155
|
}
|
|
1153
|
-
function
|
|
1156
|
+
function Mt(e, t, r) {
|
|
1154
1157
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1155
1158
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1156
1159
|
}
|
|
1157
|
-
function
|
|
1160
|
+
function Nt(e, t, r, n, i) {
|
|
1158
1161
|
return r.bind(t, e, n, i);
|
|
1159
1162
|
}
|
|
1160
|
-
function sn(e, t) {
|
|
1161
|
-
var r = e.length === 1 ? Mt : Lt;
|
|
1162
|
-
return We(e, this, r, t.cache.create(), t.serializer);
|
|
1163
|
-
}
|
|
1164
|
-
function un(e, t) {
|
|
1165
|
-
return We(e, this, Lt, t.cache.create(), t.serializer);
|
|
1166
|
-
}
|
|
1167
1163
|
function ln(e, t) {
|
|
1168
|
-
|
|
1164
|
+
var r = e.length === 1 ? un : Mt;
|
|
1165
|
+
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
1169
1166
|
}
|
|
1170
|
-
|
|
1171
|
-
return
|
|
1172
|
-
};
|
|
1173
|
-
function Xe() {
|
|
1174
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1167
|
+
function hn(e, t) {
|
|
1168
|
+
return Nt(e, this, Mt, t.cache.create(), t.serializer);
|
|
1175
1169
|
}
|
|
1176
|
-
|
|
1177
|
-
return
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1170
|
+
var cn = function() {
|
|
1171
|
+
return JSON.stringify(arguments);
|
|
1172
|
+
}, fn = (
|
|
1173
|
+
/** @class */
|
|
1174
|
+
function() {
|
|
1175
|
+
function e() {
|
|
1176
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1177
|
+
}
|
|
1178
|
+
return e.prototype.get = function(t) {
|
|
1179
|
+
return this.cache[t];
|
|
1180
|
+
}, e.prototype.set = function(t, r) {
|
|
1181
|
+
this.cache[t] = r;
|
|
1182
|
+
}, e;
|
|
1183
|
+
}()
|
|
1184
|
+
), pn = {
|
|
1183
1185
|
create: function() {
|
|
1184
|
-
return new
|
|
1186
|
+
return new fn();
|
|
1185
1187
|
}
|
|
1186
|
-
},
|
|
1187
|
-
variadic:
|
|
1188
|
-
|
|
1189
|
-
|
|
1188
|
+
}, Pe = {
|
|
1189
|
+
variadic: hn
|
|
1190
|
+
}, fe = function() {
|
|
1191
|
+
return fe = Object.assign || function(t) {
|
|
1192
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1193
|
+
r = arguments[n];
|
|
1194
|
+
for (var o in r)
|
|
1195
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1196
|
+
}
|
|
1197
|
+
return t;
|
|
1198
|
+
}, fe.apply(this, arguments);
|
|
1199
|
+
};
|
|
1200
|
+
var b;
|
|
1190
1201
|
(function(e) {
|
|
1191
1202
|
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";
|
|
1192
1203
|
})(b || (b = {}));
|
|
1193
|
-
var
|
|
1204
|
+
var x;
|
|
1194
1205
|
(function(e) {
|
|
1195
1206
|
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";
|
|
1196
|
-
})(
|
|
1197
|
-
var
|
|
1207
|
+
})(x || (x = {}));
|
|
1208
|
+
var j;
|
|
1198
1209
|
(function(e) {
|
|
1199
1210
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1200
|
-
})(
|
|
1201
|
-
function
|
|
1202
|
-
return e.type ===
|
|
1211
|
+
})(j || (j = {}));
|
|
1212
|
+
function ut(e) {
|
|
1213
|
+
return e.type === x.literal;
|
|
1203
1214
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return e.type ===
|
|
1215
|
+
function dn(e) {
|
|
1216
|
+
return e.type === x.argument;
|
|
1206
1217
|
}
|
|
1207
|
-
function
|
|
1208
|
-
return e.type ===
|
|
1218
|
+
function $t(e) {
|
|
1219
|
+
return e.type === x.number;
|
|
1209
1220
|
}
|
|
1210
1221
|
function Rt(e) {
|
|
1211
|
-
return e.type ===
|
|
1212
|
-
}
|
|
1213
|
-
function $t(e) {
|
|
1214
|
-
return e.type === _.time;
|
|
1222
|
+
return e.type === x.date;
|
|
1215
1223
|
}
|
|
1216
1224
|
function Ut(e) {
|
|
1217
|
-
return e.type ===
|
|
1225
|
+
return e.type === x.time;
|
|
1218
1226
|
}
|
|
1219
1227
|
function Gt(e) {
|
|
1220
|
-
return e.type ===
|
|
1221
|
-
}
|
|
1222
|
-
function dn(e) {
|
|
1223
|
-
return e.type === _.pound;
|
|
1228
|
+
return e.type === x.select;
|
|
1224
1229
|
}
|
|
1225
1230
|
function Dt(e) {
|
|
1226
|
-
return e.type ===
|
|
1231
|
+
return e.type === x.plural;
|
|
1232
|
+
}
|
|
1233
|
+
function mn(e) {
|
|
1234
|
+
return e.type === x.pound;
|
|
1227
1235
|
}
|
|
1228
1236
|
function Ft(e) {
|
|
1229
|
-
return
|
|
1237
|
+
return e.type === x.tag;
|
|
1230
1238
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1239
|
+
function jt(e) {
|
|
1240
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
1233
1241
|
}
|
|
1234
|
-
|
|
1235
|
-
|
|
1242
|
+
function De(e) {
|
|
1243
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
1244
|
+
}
|
|
1245
|
+
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[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;
|
|
1246
|
+
function vn(e) {
|
|
1236
1247
|
var t = {};
|
|
1237
|
-
return e.replace(
|
|
1248
|
+
return e.replace(bn, function(r) {
|
|
1238
1249
|
var n = r.length;
|
|
1239
1250
|
switch (r[0]) {
|
|
1240
1251
|
case "G":
|
|
@@ -1323,11 +1334,21 @@ function mn(e) {
|
|
|
1323
1334
|
return "";
|
|
1324
1335
|
}), t;
|
|
1325
1336
|
}
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1337
|
+
var _ = function() {
|
|
1338
|
+
return _ = Object.assign || function(t) {
|
|
1339
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1340
|
+
r = arguments[n];
|
|
1341
|
+
for (var o in r)
|
|
1342
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1343
|
+
}
|
|
1344
|
+
return t;
|
|
1345
|
+
}, _.apply(this, arguments);
|
|
1346
|
+
};
|
|
1347
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1348
|
+
function yn(e) {
|
|
1328
1349
|
if (e.length === 0)
|
|
1329
1350
|
throw new Error("Number skeleton cannot be empty");
|
|
1330
|
-
for (var t = e.split(
|
|
1351
|
+
for (var t = e.split(gn).filter(function(c) {
|
|
1331
1352
|
return c.length > 0;
|
|
1332
1353
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1333
1354
|
var o = i[n], a = o.split("/");
|
|
@@ -1342,17 +1363,17 @@ function vn(e) {
|
|
|
1342
1363
|
}
|
|
1343
1364
|
return r;
|
|
1344
1365
|
}
|
|
1345
|
-
function
|
|
1366
|
+
function xn(e) {
|
|
1346
1367
|
return e.replace(/^(.*?)-/, "");
|
|
1347
1368
|
}
|
|
1348
|
-
var
|
|
1349
|
-
function
|
|
1369
|
+
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
|
|
1370
|
+
function ht(e) {
|
|
1350
1371
|
var t = {};
|
|
1351
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1372
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
|
|
1352
1373
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1353
1374
|
}), t;
|
|
1354
1375
|
}
|
|
1355
|
-
function
|
|
1376
|
+
function Wt(e) {
|
|
1356
1377
|
switch (e) {
|
|
1357
1378
|
case "sign-auto":
|
|
1358
1379
|
return {
|
|
@@ -1392,7 +1413,7 @@ function zt(e) {
|
|
|
1392
1413
|
};
|
|
1393
1414
|
}
|
|
1394
1415
|
}
|
|
1395
|
-
function
|
|
1416
|
+
function En(e) {
|
|
1396
1417
|
var t;
|
|
1397
1418
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1398
1419
|
notation: "engineering"
|
|
@@ -1400,17 +1421,17 @@ function xn(e) {
|
|
|
1400
1421
|
notation: "scientific"
|
|
1401
1422
|
}, e = e.slice(1)), t) {
|
|
1402
1423
|
var r = e.slice(0, 2);
|
|
1403
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1424
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !zt.test(e))
|
|
1404
1425
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1405
1426
|
t.minimumIntegerDigits = e.length;
|
|
1406
1427
|
}
|
|
1407
1428
|
return t;
|
|
1408
1429
|
}
|
|
1409
|
-
function
|
|
1410
|
-
var t = {}, r =
|
|
1430
|
+
function ct(e) {
|
|
1431
|
+
var t = {}, r = Wt(e);
|
|
1411
1432
|
return r || t;
|
|
1412
1433
|
}
|
|
1413
|
-
function
|
|
1434
|
+
function Tn(e) {
|
|
1414
1435
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1415
1436
|
var i = n[r];
|
|
1416
1437
|
switch (i.stem) {
|
|
@@ -1434,7 +1455,7 @@ function _n(e) {
|
|
|
1434
1455
|
continue;
|
|
1435
1456
|
case "measure-unit":
|
|
1436
1457
|
case "unit":
|
|
1437
|
-
t.style = "unit", t.unit =
|
|
1458
|
+
t.style = "unit", t.unit = xn(i.options[0]);
|
|
1438
1459
|
continue;
|
|
1439
1460
|
case "compact-short":
|
|
1440
1461
|
case "K":
|
|
@@ -1445,13 +1466,13 @@ function _n(e) {
|
|
|
1445
1466
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1446
1467
|
continue;
|
|
1447
1468
|
case "scientific":
|
|
1448
|
-
t =
|
|
1449
|
-
return
|
|
1469
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1470
|
+
return _(_({}, l), ct(u));
|
|
1450
1471
|
}, {}));
|
|
1451
1472
|
continue;
|
|
1452
1473
|
case "engineering":
|
|
1453
|
-
t =
|
|
1454
|
-
return
|
|
1474
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1475
|
+
return _(_({}, l), ct(u));
|
|
1455
1476
|
}, {}));
|
|
1456
1477
|
continue;
|
|
1457
1478
|
case "notation-simple":
|
|
@@ -1496,41 +1517,41 @@ function _n(e) {
|
|
|
1496
1517
|
case "integer-width":
|
|
1497
1518
|
if (i.options.length > 1)
|
|
1498
1519
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1499
|
-
i.options[0].replace(
|
|
1520
|
+
i.options[0].replace(_n, function(l, u, h, f, c, p) {
|
|
1500
1521
|
if (u)
|
|
1501
1522
|
t.minimumIntegerDigits = h.length;
|
|
1502
1523
|
else {
|
|
1503
1524
|
if (f && c)
|
|
1504
1525
|
throw new Error("We currently do not support maximum integer digits");
|
|
1505
|
-
if (
|
|
1526
|
+
if (p)
|
|
1506
1527
|
throw new Error("We currently do not support exact integer digits");
|
|
1507
1528
|
}
|
|
1508
1529
|
return "";
|
|
1509
1530
|
});
|
|
1510
1531
|
continue;
|
|
1511
1532
|
}
|
|
1512
|
-
if (
|
|
1533
|
+
if (zt.test(i.stem)) {
|
|
1513
1534
|
t.minimumIntegerDigits = i.stem.length;
|
|
1514
1535
|
continue;
|
|
1515
1536
|
}
|
|
1516
|
-
if (
|
|
1537
|
+
if (lt.test(i.stem)) {
|
|
1517
1538
|
if (i.options.length > 1)
|
|
1518
1539
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1519
|
-
i.stem.replace(
|
|
1520
|
-
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1540
|
+
i.stem.replace(lt, function(l, u, h, f, c, p) {
|
|
1541
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1521
1542
|
});
|
|
1522
1543
|
var o = i.options[0];
|
|
1523
|
-
o === "w" ? t =
|
|
1544
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), ht(o)));
|
|
1524
1545
|
continue;
|
|
1525
1546
|
}
|
|
1526
|
-
if (
|
|
1527
|
-
t =
|
|
1547
|
+
if (Vt.test(i.stem)) {
|
|
1548
|
+
t = _(_({}, t), ht(i.stem));
|
|
1528
1549
|
continue;
|
|
1529
1550
|
}
|
|
1530
|
-
var a =
|
|
1531
|
-
a && (t =
|
|
1532
|
-
var s =
|
|
1533
|
-
s && (t =
|
|
1551
|
+
var a = Wt(i.stem);
|
|
1552
|
+
a && (t = _(_({}, t), a));
|
|
1553
|
+
var s = En(i.stem);
|
|
1554
|
+
s && (t = _(_({}, t), s));
|
|
1534
1555
|
}
|
|
1535
1556
|
return t;
|
|
1536
1557
|
}
|
|
@@ -2949,13 +2970,13 @@ var se = {
|
|
|
2949
2970
|
"h"
|
|
2950
2971
|
]
|
|
2951
2972
|
};
|
|
2952
|
-
function
|
|
2973
|
+
function Sn(e, t) {
|
|
2953
2974
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2954
2975
|
var i = e.charAt(n);
|
|
2955
2976
|
if (i === "j") {
|
|
2956
2977
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2957
2978
|
o++, n++;
|
|
2958
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2979
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = wn(t);
|
|
2959
2980
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2960
2981
|
r += l;
|
|
2961
2982
|
for (; a-- > 0; )
|
|
@@ -2965,7 +2986,7 @@ function En(e, t) {
|
|
|
2965
2986
|
}
|
|
2966
2987
|
return r;
|
|
2967
2988
|
}
|
|
2968
|
-
function
|
|
2989
|
+
function wn(e) {
|
|
2969
2990
|
var t = e.hourCycle;
|
|
2970
2991
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2971
2992
|
e.hourCycles && // @ts-ignore
|
|
@@ -2987,20 +3008,20 @@ function Tn(e) {
|
|
|
2987
3008
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2988
3009
|
return i[0];
|
|
2989
3010
|
}
|
|
2990
|
-
var
|
|
3011
|
+
var He, Pn = new RegExp("^".concat(kt.source, "*")), Hn = new RegExp("".concat(kt.source, "*$"));
|
|
2991
3012
|
function v(e, t) {
|
|
2992
3013
|
return { start: e, end: t };
|
|
2993
3014
|
}
|
|
2994
|
-
var
|
|
3015
|
+
var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), An = !!String.fromCodePoint, Bn = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, On = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, Nn = Mn ? Number.isSafeInteger : function(e) {
|
|
2995
3016
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2996
|
-
},
|
|
3017
|
+
}, Fe = !0;
|
|
2997
3018
|
try {
|
|
2998
|
-
var
|
|
2999
|
-
|
|
3019
|
+
var $n = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3020
|
+
Fe = ((He = $n.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
3000
3021
|
} catch {
|
|
3001
|
-
|
|
3022
|
+
Fe = !1;
|
|
3002
3023
|
}
|
|
3003
|
-
var
|
|
3024
|
+
var ft = In ? (
|
|
3004
3025
|
// Native
|
|
3005
3026
|
function(t, r, n) {
|
|
3006
3027
|
return t.startsWith(r, n);
|
|
@@ -3010,7 +3031,7 @@ var ht = Pn ? (
|
|
|
3010
3031
|
function(t, r, n) {
|
|
3011
3032
|
return t.slice(n, n + r.length) === r;
|
|
3012
3033
|
}
|
|
3013
|
-
),
|
|
3034
|
+
), je = An ? String.fromCodePoint : (
|
|
3014
3035
|
// IE11
|
|
3015
3036
|
function() {
|
|
3016
3037
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3022,9 +3043,9 @@ var ht = Pn ? (
|
|
|
3022
3043
|
}
|
|
3023
3044
|
return n;
|
|
3024
3045
|
}
|
|
3025
|
-
),
|
|
3046
|
+
), pt = (
|
|
3026
3047
|
// native
|
|
3027
|
-
|
|
3048
|
+
Bn ? Object.fromEntries : (
|
|
3028
3049
|
// Ponyfill
|
|
3029
3050
|
function(t) {
|
|
3030
3051
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3034,7 +3055,7 @@ var ht = Pn ? (
|
|
|
3034
3055
|
return r;
|
|
3035
3056
|
}
|
|
3036
3057
|
)
|
|
3037
|
-
),
|
|
3058
|
+
), Xt = Cn ? (
|
|
3038
3059
|
// Native
|
|
3039
3060
|
function(t, r) {
|
|
3040
3061
|
return t.codePointAt(r);
|
|
@@ -3048,7 +3069,7 @@ var ht = Pn ? (
|
|
|
3048
3069
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3049
3070
|
}
|
|
3050
3071
|
}
|
|
3051
|
-
),
|
|
3072
|
+
), Rn = On ? (
|
|
3052
3073
|
// Native
|
|
3053
3074
|
function(t) {
|
|
3054
3075
|
return t.trimStart();
|
|
@@ -3056,9 +3077,9 @@ var ht = Pn ? (
|
|
|
3056
3077
|
) : (
|
|
3057
3078
|
// Ponyfill
|
|
3058
3079
|
function(t) {
|
|
3059
|
-
return t.replace(
|
|
3080
|
+
return t.replace(Pn, "");
|
|
3060
3081
|
}
|
|
3061
|
-
),
|
|
3082
|
+
), Un = Ln ? (
|
|
3062
3083
|
// Native
|
|
3063
3084
|
function(t) {
|
|
3064
3085
|
return t.trimEnd();
|
|
@@ -3066,32 +3087,32 @@ var ht = Pn ? (
|
|
|
3066
3087
|
) : (
|
|
3067
3088
|
// Ponyfill
|
|
3068
3089
|
function(t) {
|
|
3069
|
-
return t.replace(
|
|
3090
|
+
return t.replace(Hn, "");
|
|
3070
3091
|
}
|
|
3071
3092
|
);
|
|
3072
|
-
function
|
|
3093
|
+
function qt(e, t) {
|
|
3073
3094
|
return new RegExp(e, t);
|
|
3074
3095
|
}
|
|
3075
|
-
var
|
|
3076
|
-
if (
|
|
3077
|
-
var
|
|
3078
|
-
|
|
3096
|
+
var ke;
|
|
3097
|
+
if (Fe) {
|
|
3098
|
+
var dt = qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3099
|
+
ke = function(t, r) {
|
|
3079
3100
|
var n;
|
|
3080
|
-
|
|
3081
|
-
var i =
|
|
3101
|
+
dt.lastIndex = r;
|
|
3102
|
+
var i = dt.exec(t);
|
|
3082
3103
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3083
3104
|
};
|
|
3084
3105
|
} else
|
|
3085
|
-
|
|
3106
|
+
ke = function(t, r) {
|
|
3086
3107
|
for (var n = []; ; ) {
|
|
3087
|
-
var i =
|
|
3088
|
-
if (i === void 0 ||
|
|
3108
|
+
var i = Xt(t, r);
|
|
3109
|
+
if (i === void 0 || Zt(i) || jn(i))
|
|
3089
3110
|
break;
|
|
3090
3111
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3091
3112
|
}
|
|
3092
|
-
return
|
|
3113
|
+
return je.apply(void 0, n);
|
|
3093
3114
|
};
|
|
3094
|
-
var
|
|
3115
|
+
var Gn = (
|
|
3095
3116
|
/** @class */
|
|
3096
3117
|
function() {
|
|
3097
3118
|
function e(t, r) {
|
|
@@ -3115,14 +3136,14 @@ var $n = (
|
|
|
3115
3136
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3116
3137
|
var s = this.clonePosition();
|
|
3117
3138
|
this.bump(), i.push({
|
|
3118
|
-
type:
|
|
3139
|
+
type: x.pound,
|
|
3119
3140
|
location: v(s, this.clonePosition())
|
|
3120
3141
|
});
|
|
3121
3142
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3122
3143
|
if (n)
|
|
3123
3144
|
break;
|
|
3124
3145
|
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3125
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3146
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3126
3147
|
var a = this.parseTag(t, r);
|
|
3127
3148
|
if (a.err)
|
|
3128
3149
|
return a;
|
|
@@ -3143,7 +3164,7 @@ var $n = (
|
|
|
3143
3164
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3144
3165
|
return {
|
|
3145
3166
|
val: {
|
|
3146
|
-
type:
|
|
3167
|
+
type: x.literal,
|
|
3147
3168
|
value: "<".concat(i, "/>"),
|
|
3148
3169
|
location: v(n, this.clonePosition())
|
|
3149
3170
|
},
|
|
@@ -3155,12 +3176,12 @@ var $n = (
|
|
|
3155
3176
|
return o;
|
|
3156
3177
|
var a = o.val, s = this.clonePosition();
|
|
3157
3178
|
if (this.bumpIf("</")) {
|
|
3158
|
-
if (this.isEOF() || !
|
|
3179
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3159
3180
|
return this.error(b.INVALID_TAG, v(s, this.clonePosition()));
|
|
3160
3181
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3161
3182
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3162
3183
|
val: {
|
|
3163
|
-
type:
|
|
3184
|
+
type: x.tag,
|
|
3164
3185
|
value: i,
|
|
3165
3186
|
children: a,
|
|
3166
3187
|
location: v(n, this.clonePosition())
|
|
@@ -3173,7 +3194,7 @@ var $n = (
|
|
|
3173
3194
|
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3174
3195
|
}, e.prototype.parseTagName = function() {
|
|
3175
3196
|
var t = this.offset();
|
|
3176
|
-
for (this.bump(); !this.isEOF() &&
|
|
3197
|
+
for (this.bump(); !this.isEOF() && Fn(this.char()); )
|
|
3177
3198
|
this.bump();
|
|
3178
3199
|
return this.message.slice(t, this.offset());
|
|
3179
3200
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3197,12 +3218,12 @@ var $n = (
|
|
|
3197
3218
|
}
|
|
3198
3219
|
var l = v(n, this.clonePosition());
|
|
3199
3220
|
return {
|
|
3200
|
-
val: { type:
|
|
3221
|
+
val: { type: x.literal, value: i, location: l },
|
|
3201
3222
|
err: null
|
|
3202
3223
|
};
|
|
3203
3224
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3204
3225
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3205
|
-
!
|
|
3226
|
+
!Dn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3206
3227
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3207
3228
|
if (this.isEOF() || this.char() !== 39)
|
|
3208
3229
|
return null;
|
|
@@ -3236,12 +3257,12 @@ var $n = (
|
|
|
3236
3257
|
r.push(n);
|
|
3237
3258
|
this.bump();
|
|
3238
3259
|
}
|
|
3239
|
-
return
|
|
3260
|
+
return je.apply(void 0, r);
|
|
3240
3261
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3241
3262
|
if (this.isEOF())
|
|
3242
3263
|
return null;
|
|
3243
3264
|
var n = this.char();
|
|
3244
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3265
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3245
3266
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3246
3267
|
var n = this.clonePosition();
|
|
3247
3268
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3257,7 +3278,7 @@ var $n = (
|
|
|
3257
3278
|
case 125:
|
|
3258
3279
|
return this.bump(), {
|
|
3259
3280
|
val: {
|
|
3260
|
-
type:
|
|
3281
|
+
type: x.argument,
|
|
3261
3282
|
// value does not include the opening and closing braces.
|
|
3262
3283
|
value: i,
|
|
3263
3284
|
location: v(n, this.clonePosition())
|
|
@@ -3270,7 +3291,7 @@ var $n = (
|
|
|
3270
3291
|
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3271
3292
|
}
|
|
3272
3293
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3273
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3294
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3274
3295
|
this.bumpTo(i);
|
|
3275
3296
|
var o = this.clonePosition(), a = v(t, o);
|
|
3276
3297
|
return { value: n, location: a };
|
|
@@ -3289,46 +3310,46 @@ var $n = (
|
|
|
3289
3310
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3290
3311
|
if (f.err)
|
|
3291
3312
|
return f;
|
|
3292
|
-
var c =
|
|
3313
|
+
var c = Un(f.val);
|
|
3293
3314
|
if (c.length === 0)
|
|
3294
3315
|
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3295
|
-
var
|
|
3296
|
-
u = { style: c, styleLocation:
|
|
3316
|
+
var p = v(h, this.clonePosition());
|
|
3317
|
+
u = { style: c, styleLocation: p };
|
|
3297
3318
|
}
|
|
3298
|
-
var
|
|
3299
|
-
if (
|
|
3300
|
-
return
|
|
3301
|
-
var
|
|
3302
|
-
if (u &&
|
|
3303
|
-
var S =
|
|
3319
|
+
var d = this.tryParseArgumentClose(i);
|
|
3320
|
+
if (d.err)
|
|
3321
|
+
return d;
|
|
3322
|
+
var g = v(i, this.clonePosition());
|
|
3323
|
+
if (u && ft(u?.style, "::", 0)) {
|
|
3324
|
+
var S = Rn(u.style.slice(2));
|
|
3304
3325
|
if (s === "number") {
|
|
3305
3326
|
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3306
3327
|
return f.err ? f : {
|
|
3307
|
-
val: { type:
|
|
3328
|
+
val: { type: x.number, value: n, location: g, style: f.val },
|
|
3308
3329
|
err: null
|
|
3309
3330
|
};
|
|
3310
3331
|
} else {
|
|
3311
3332
|
if (S.length === 0)
|
|
3312
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3333
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, g);
|
|
3313
3334
|
var H = S;
|
|
3314
|
-
this.locale && (H =
|
|
3335
|
+
this.locale && (H = Sn(S, this.locale));
|
|
3315
3336
|
var c = {
|
|
3316
|
-
type:
|
|
3337
|
+
type: j.dateTime,
|
|
3317
3338
|
pattern: H,
|
|
3318
3339
|
location: u.styleLocation,
|
|
3319
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3320
|
-
}, E = s === "date" ?
|
|
3340
|
+
parsedOptions: this.shouldParseSkeletons ? vn(H) : {}
|
|
3341
|
+
}, E = s === "date" ? x.date : x.time;
|
|
3321
3342
|
return {
|
|
3322
|
-
val: { type: E, value: n, location:
|
|
3343
|
+
val: { type: E, value: n, location: g, style: c },
|
|
3323
3344
|
err: null
|
|
3324
3345
|
};
|
|
3325
3346
|
}
|
|
3326
3347
|
}
|
|
3327
3348
|
return {
|
|
3328
3349
|
val: {
|
|
3329
|
-
type: s === "number" ?
|
|
3350
|
+
type: s === "number" ? x.number : s === "date" ? x.date : x.time,
|
|
3330
3351
|
value: n,
|
|
3331
|
-
location:
|
|
3352
|
+
location: g,
|
|
3332
3353
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3333
3354
|
},
|
|
3334
3355
|
err: null
|
|
@@ -3337,9 +3358,9 @@ var $n = (
|
|
|
3337
3358
|
case "plural":
|
|
3338
3359
|
case "selectordinal":
|
|
3339
3360
|
case "select": {
|
|
3340
|
-
var
|
|
3361
|
+
var y = this.clonePosition();
|
|
3341
3362
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3342
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(
|
|
3363
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(y, fe({}, y)));
|
|
3343
3364
|
this.bumpSpace();
|
|
3344
3365
|
var w = this.parseIdentifierIfPossible(), m = 0;
|
|
3345
3366
|
if (s !== "select" && w.value === "offset") {
|
|
@@ -3354,26 +3375,26 @@ var $n = (
|
|
|
3354
3375
|
var I = this.tryParsePluralOrSelectOptions(t, s, r, w);
|
|
3355
3376
|
if (I.err)
|
|
3356
3377
|
return I;
|
|
3357
|
-
var
|
|
3358
|
-
if (
|
|
3359
|
-
return
|
|
3360
|
-
var
|
|
3378
|
+
var d = this.tryParseArgumentClose(i);
|
|
3379
|
+
if (d.err)
|
|
3380
|
+
return d;
|
|
3381
|
+
var Z = v(i, this.clonePosition());
|
|
3361
3382
|
return s === "select" ? {
|
|
3362
3383
|
val: {
|
|
3363
|
-
type:
|
|
3384
|
+
type: x.select,
|
|
3364
3385
|
value: n,
|
|
3365
|
-
options:
|
|
3366
|
-
location:
|
|
3386
|
+
options: pt(I.val),
|
|
3387
|
+
location: Z
|
|
3367
3388
|
},
|
|
3368
3389
|
err: null
|
|
3369
3390
|
} : {
|
|
3370
3391
|
val: {
|
|
3371
|
-
type:
|
|
3392
|
+
type: x.plural,
|
|
3372
3393
|
value: n,
|
|
3373
|
-
options:
|
|
3394
|
+
options: pt(I.val),
|
|
3374
3395
|
offset: m,
|
|
3375
3396
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3376
|
-
location:
|
|
3397
|
+
location: Z
|
|
3377
3398
|
},
|
|
3378
3399
|
err: null
|
|
3379
3400
|
};
|
|
@@ -3421,16 +3442,16 @@ var $n = (
|
|
|
3421
3442
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3422
3443
|
var n = [];
|
|
3423
3444
|
try {
|
|
3424
|
-
n =
|
|
3445
|
+
n = yn(t);
|
|
3425
3446
|
} catch {
|
|
3426
3447
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3427
3448
|
}
|
|
3428
3449
|
return {
|
|
3429
3450
|
val: {
|
|
3430
|
-
type:
|
|
3451
|
+
type: j.number,
|
|
3431
3452
|
tokens: n,
|
|
3432
3453
|
location: r,
|
|
3433
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3454
|
+
parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
|
|
3434
3455
|
},
|
|
3435
3456
|
err: null
|
|
3436
3457
|
};
|
|
@@ -3449,20 +3470,20 @@ var $n = (
|
|
|
3449
3470
|
if (l.has(u))
|
|
3450
3471
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3451
3472
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3452
|
-
var
|
|
3473
|
+
var p = this.clonePosition();
|
|
3453
3474
|
if (!this.bumpIf("{"))
|
|
3454
3475
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3455
|
-
var
|
|
3456
|
-
if (
|
|
3457
|
-
return
|
|
3458
|
-
var
|
|
3459
|
-
if (
|
|
3460
|
-
return
|
|
3476
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3477
|
+
if (d.err)
|
|
3478
|
+
return d;
|
|
3479
|
+
var g = this.tryParseArgumentClose(p);
|
|
3480
|
+
if (g.err)
|
|
3481
|
+
return g;
|
|
3461
3482
|
s.push([
|
|
3462
3483
|
u,
|
|
3463
3484
|
{
|
|
3464
|
-
value:
|
|
3465
|
-
location: v(
|
|
3485
|
+
value: d.val,
|
|
3486
|
+
location: v(p, this.clonePosition())
|
|
3466
3487
|
}
|
|
3467
3488
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3468
3489
|
}
|
|
@@ -3478,7 +3499,7 @@ var $n = (
|
|
|
3478
3499
|
break;
|
|
3479
3500
|
}
|
|
3480
3501
|
var l = v(i, this.clonePosition());
|
|
3481
|
-
return o ? (a *= n,
|
|
3502
|
+
return o ? (a *= n, Nn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3482
3503
|
}, e.prototype.offset = function() {
|
|
3483
3504
|
return this.position.offset;
|
|
3484
3505
|
}, e.prototype.isEOF = function() {
|
|
@@ -3493,7 +3514,7 @@ var $n = (
|
|
|
3493
3514
|
var t = this.position.offset;
|
|
3494
3515
|
if (t >= this.message.length)
|
|
3495
3516
|
throw Error("out of bound");
|
|
3496
|
-
var r =
|
|
3517
|
+
var r = Xt(this.message, t);
|
|
3497
3518
|
if (r === void 0)
|
|
3498
3519
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3499
3520
|
return r;
|
|
@@ -3512,7 +3533,7 @@ var $n = (
|
|
|
3512
3533
|
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);
|
|
3513
3534
|
}
|
|
3514
3535
|
}, e.prototype.bumpIf = function(t) {
|
|
3515
|
-
if (
|
|
3536
|
+
if (ft(this.message, t, this.offset())) {
|
|
3516
3537
|
for (var r = 0; r < t.length; r++)
|
|
3517
3538
|
this.bump();
|
|
3518
3539
|
return !0;
|
|
@@ -3534,7 +3555,7 @@ var $n = (
|
|
|
3534
3555
|
break;
|
|
3535
3556
|
}
|
|
3536
3557
|
}, e.prototype.bumpSpace = function() {
|
|
3537
|
-
for (; !this.isEOF() &&
|
|
3558
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3538
3559
|
this.bump();
|
|
3539
3560
|
}, e.prototype.peek = function() {
|
|
3540
3561
|
if (this.isEOF())
|
|
@@ -3544,47 +3565,47 @@ var $n = (
|
|
|
3544
3565
|
}, e;
|
|
3545
3566
|
}()
|
|
3546
3567
|
);
|
|
3547
|
-
function
|
|
3568
|
+
function Ve(e) {
|
|
3548
3569
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3549
3570
|
}
|
|
3550
|
-
function
|
|
3551
|
-
return
|
|
3571
|
+
function Dn(e) {
|
|
3572
|
+
return Ve(e) || e === 47;
|
|
3552
3573
|
}
|
|
3553
|
-
function
|
|
3574
|
+
function Fn(e) {
|
|
3554
3575
|
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;
|
|
3555
3576
|
}
|
|
3556
|
-
function
|
|
3577
|
+
function Zt(e) {
|
|
3557
3578
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3558
3579
|
}
|
|
3559
|
-
function
|
|
3580
|
+
function jn(e) {
|
|
3560
3581
|
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;
|
|
3561
3582
|
}
|
|
3562
|
-
function
|
|
3583
|
+
function ze(e) {
|
|
3563
3584
|
e.forEach(function(t) {
|
|
3564
|
-
if (delete t.location,
|
|
3585
|
+
if (delete t.location, Gt(t) || Dt(t))
|
|
3565
3586
|
for (var r in t.options)
|
|
3566
|
-
delete t.options[r].location,
|
|
3587
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3567
3588
|
else
|
|
3568
|
-
|
|
3589
|
+
$t(t) && jt(t.style) || (Rt(t) || Ut(t)) && De(t.style) ? delete t.style.location : Ft(t) && ze(t.children);
|
|
3569
3590
|
});
|
|
3570
3591
|
}
|
|
3571
|
-
function
|
|
3572
|
-
t === void 0 && (t = {}), t =
|
|
3573
|
-
var r = new
|
|
3592
|
+
function kn(e, t) {
|
|
3593
|
+
t === void 0 && (t = {}), t = fe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3594
|
+
var r = new Gn(e, t).parse();
|
|
3574
3595
|
if (r.err) {
|
|
3575
3596
|
var n = SyntaxError(b[r.err.kind]);
|
|
3576
3597
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3577
3598
|
}
|
|
3578
|
-
return t?.captureLocation ||
|
|
3599
|
+
return t?.captureLocation || ze(r.val), r.val;
|
|
3579
3600
|
}
|
|
3580
|
-
var
|
|
3601
|
+
var k;
|
|
3581
3602
|
(function(e) {
|
|
3582
3603
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3583
|
-
})(
|
|
3584
|
-
var
|
|
3604
|
+
})(k || (k = {}));
|
|
3605
|
+
var ge = (
|
|
3585
3606
|
/** @class */
|
|
3586
3607
|
function(e) {
|
|
3587
|
-
|
|
3608
|
+
ve(t, e);
|
|
3588
3609
|
function t(r, n, i) {
|
|
3589
3610
|
var o = e.call(this, r) || this;
|
|
3590
3611
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3593,48 +3614,48 @@ var be = (
|
|
|
3593
3614
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3594
3615
|
}, t;
|
|
3595
3616
|
}(Error)
|
|
3596
|
-
),
|
|
3617
|
+
), mt = (
|
|
3597
3618
|
/** @class */
|
|
3598
3619
|
function(e) {
|
|
3599
|
-
|
|
3620
|
+
ve(t, e);
|
|
3600
3621
|
function t(r, n, i, o) {
|
|
3601
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3622
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, o) || this;
|
|
3602
3623
|
}
|
|
3603
3624
|
return t;
|
|
3604
|
-
}(
|
|
3605
|
-
),
|
|
3625
|
+
}(ge)
|
|
3626
|
+
), Vn = (
|
|
3606
3627
|
/** @class */
|
|
3607
3628
|
function(e) {
|
|
3608
|
-
|
|
3629
|
+
ve(t, e);
|
|
3609
3630
|
function t(r, n, i) {
|
|
3610
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3631
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
|
3611
3632
|
}
|
|
3612
3633
|
return t;
|
|
3613
|
-
}(
|
|
3614
|
-
),
|
|
3634
|
+
}(ge)
|
|
3635
|
+
), zn = (
|
|
3615
3636
|
/** @class */
|
|
3616
3637
|
function(e) {
|
|
3617
|
-
|
|
3638
|
+
ve(t, e);
|
|
3618
3639
|
function t(r, n) {
|
|
3619
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3640
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
|
|
3620
3641
|
}
|
|
3621
3642
|
return t;
|
|
3622
|
-
}(
|
|
3643
|
+
}(ge)
|
|
3623
3644
|
), T;
|
|
3624
3645
|
(function(e) {
|
|
3625
3646
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3626
3647
|
})(T || (T = {}));
|
|
3627
|
-
function
|
|
3648
|
+
function Wn(e) {
|
|
3628
3649
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3629
3650
|
var n = t[t.length - 1];
|
|
3630
3651
|
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
|
3631
3652
|
}, []);
|
|
3632
3653
|
}
|
|
3633
|
-
function
|
|
3654
|
+
function Xn(e) {
|
|
3634
3655
|
return typeof e == "function";
|
|
3635
3656
|
}
|
|
3636
3657
|
function he(e, t, r, n, i, o, a) {
|
|
3637
|
-
if (e.length === 1 &&
|
|
3658
|
+
if (e.length === 1 && ut(e[0]))
|
|
3638
3659
|
return [
|
|
3639
3660
|
{
|
|
3640
3661
|
type: T.literal,
|
|
@@ -3643,14 +3664,14 @@ function he(e, t, r, n, i, o, a) {
|
|
|
3643
3664
|
];
|
|
3644
3665
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3645
3666
|
var h = u[l];
|
|
3646
|
-
if (
|
|
3667
|
+
if (ut(h)) {
|
|
3647
3668
|
s.push({
|
|
3648
3669
|
type: T.literal,
|
|
3649
3670
|
value: h.value
|
|
3650
3671
|
});
|
|
3651
3672
|
continue;
|
|
3652
3673
|
}
|
|
3653
|
-
if (
|
|
3674
|
+
if (mn(h)) {
|
|
3654
3675
|
typeof o == "number" && s.push({
|
|
3655
3676
|
type: T.literal,
|
|
3656
3677
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3659,9 +3680,9 @@ function he(e, t, r, n, i, o, a) {
|
|
|
3659
3680
|
}
|
|
3660
3681
|
var f = h.value;
|
|
3661
3682
|
if (!(i && f in i))
|
|
3662
|
-
throw new
|
|
3683
|
+
throw new zn(f, a);
|
|
3663
3684
|
var c = i[f];
|
|
3664
|
-
if (
|
|
3685
|
+
if (dn(h)) {
|
|
3665
3686
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3666
3687
|
type: typeof c == "string" ? T.literal : T.object,
|
|
3667
3688
|
value: c
|
|
@@ -3669,34 +3690,34 @@ function he(e, t, r, n, i, o, a) {
|
|
|
3669
3690
|
continue;
|
|
3670
3691
|
}
|
|
3671
3692
|
if (Rt(h)) {
|
|
3672
|
-
var
|
|
3693
|
+
var p = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3673
3694
|
s.push({
|
|
3674
3695
|
type: T.literal,
|
|
3675
|
-
value: r.getDateTimeFormat(t,
|
|
3696
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3676
3697
|
});
|
|
3677
3698
|
continue;
|
|
3678
3699
|
}
|
|
3679
|
-
if (
|
|
3680
|
-
var
|
|
3700
|
+
if (Ut(h)) {
|
|
3701
|
+
var p = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3681
3702
|
s.push({
|
|
3682
3703
|
type: T.literal,
|
|
3683
|
-
value: r.getDateTimeFormat(t,
|
|
3704
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3684
3705
|
});
|
|
3685
3706
|
continue;
|
|
3686
3707
|
}
|
|
3687
|
-
if (
|
|
3688
|
-
var
|
|
3689
|
-
|
|
3708
|
+
if ($t(h)) {
|
|
3709
|
+
var p = typeof h.style == "string" ? n.number[h.style] : jt(h.style) ? h.style.parsedOptions : void 0;
|
|
3710
|
+
p && p.scale && (c = c * (p.scale || 1)), s.push({
|
|
3690
3711
|
type: T.literal,
|
|
3691
|
-
value: r.getNumberFormat(t,
|
|
3712
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3692
3713
|
});
|
|
3693
3714
|
continue;
|
|
3694
3715
|
}
|
|
3695
|
-
if (
|
|
3696
|
-
var
|
|
3697
|
-
if (!
|
|
3698
|
-
throw new
|
|
3699
|
-
var H = he(
|
|
3716
|
+
if (Ft(h)) {
|
|
3717
|
+
var d = h.children, g = h.value, S = i[g];
|
|
3718
|
+
if (!Xn(S))
|
|
3719
|
+
throw new Vn(g, "function", a);
|
|
3720
|
+
var H = he(d, t, r, n, i, o), E = S(H.map(function(m) {
|
|
3700
3721
|
return m.value;
|
|
3701
3722
|
}));
|
|
3702
3723
|
Array.isArray(E) || (E = [E]), s.push.apply(s, E.map(function(m) {
|
|
@@ -3706,42 +3727,42 @@ function he(e, t, r, n, i, o, a) {
|
|
|
3706
3727
|
};
|
|
3707
3728
|
}));
|
|
3708
3729
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
var
|
|
3711
|
-
if (!
|
|
3712
|
-
throw new
|
|
3713
|
-
s.push.apply(s, he(
|
|
3730
|
+
if (Gt(h)) {
|
|
3731
|
+
var y = h.options[c] || h.options.other;
|
|
3732
|
+
if (!y)
|
|
3733
|
+
throw new mt(h.value, c, Object.keys(h.options), a);
|
|
3734
|
+
s.push.apply(s, he(y.value, t, r, n, i));
|
|
3714
3735
|
continue;
|
|
3715
3736
|
}
|
|
3716
|
-
if (
|
|
3717
|
-
var
|
|
3718
|
-
if (!
|
|
3737
|
+
if (Dt(h)) {
|
|
3738
|
+
var y = h.options["=".concat(c)];
|
|
3739
|
+
if (!y) {
|
|
3719
3740
|
if (!Intl.PluralRules)
|
|
3720
|
-
throw new
|
|
3741
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3721
3742
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3722
|
-
`,
|
|
3743
|
+
`, k.MISSING_INTL_API, a);
|
|
3723
3744
|
var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3724
|
-
|
|
3745
|
+
y = h.options[w] || h.options.other;
|
|
3725
3746
|
}
|
|
3726
|
-
if (!
|
|
3727
|
-
throw new
|
|
3728
|
-
s.push.apply(s, he(
|
|
3747
|
+
if (!y)
|
|
3748
|
+
throw new mt(h.value, c, Object.keys(h.options), a);
|
|
3749
|
+
s.push.apply(s, he(y.value, t, r, n, i, c - (h.offset || 0)));
|
|
3729
3750
|
continue;
|
|
3730
3751
|
}
|
|
3731
3752
|
}
|
|
3732
|
-
return
|
|
3753
|
+
return Wn(s);
|
|
3733
3754
|
}
|
|
3734
|
-
function
|
|
3735
|
-
return t ?
|
|
3736
|
-
return r[n] =
|
|
3755
|
+
function qn(e, t) {
|
|
3756
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3757
|
+
return r[n] = L(L({}, e[n]), t[n] || {}), r;
|
|
3737
3758
|
}, {})) : e;
|
|
3738
3759
|
}
|
|
3739
|
-
function
|
|
3760
|
+
function Zn(e, t) {
|
|
3740
3761
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3741
|
-
return r[n] =
|
|
3742
|
-
},
|
|
3762
|
+
return r[n] = qn(e[n], t[n]), r;
|
|
3763
|
+
}, L({}, e)) : e;
|
|
3743
3764
|
}
|
|
3744
|
-
function
|
|
3765
|
+
function Ie(e) {
|
|
3745
3766
|
return {
|
|
3746
3767
|
create: function() {
|
|
3747
3768
|
return {
|
|
@@ -3755,39 +3776,39 @@ function Pe(e) {
|
|
|
3755
3776
|
}
|
|
3756
3777
|
};
|
|
3757
3778
|
}
|
|
3758
|
-
function
|
|
3779
|
+
function Yn(e) {
|
|
3759
3780
|
return e === void 0 && (e = {
|
|
3760
3781
|
number: {},
|
|
3761
3782
|
dateTime: {},
|
|
3762
3783
|
pluralRules: {}
|
|
3763
3784
|
}), {
|
|
3764
|
-
getNumberFormat:
|
|
3785
|
+
getNumberFormat: we(function() {
|
|
3765
3786
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3766
3787
|
r[n] = arguments[n];
|
|
3767
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3788
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3768
3789
|
}, {
|
|
3769
|
-
cache:
|
|
3770
|
-
strategy:
|
|
3790
|
+
cache: Ie(e.number),
|
|
3791
|
+
strategy: Pe.variadic
|
|
3771
3792
|
}),
|
|
3772
|
-
getDateTimeFormat:
|
|
3793
|
+
getDateTimeFormat: we(function() {
|
|
3773
3794
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3774
3795
|
r[n] = arguments[n];
|
|
3775
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3796
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3776
3797
|
}, {
|
|
3777
|
-
cache:
|
|
3778
|
-
strategy:
|
|
3798
|
+
cache: Ie(e.dateTime),
|
|
3799
|
+
strategy: Pe.variadic
|
|
3779
3800
|
}),
|
|
3780
|
-
getPluralRules:
|
|
3801
|
+
getPluralRules: we(function() {
|
|
3781
3802
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3782
3803
|
r[n] = arguments[n];
|
|
3783
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3804
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3784
3805
|
}, {
|
|
3785
|
-
cache:
|
|
3786
|
-
strategy:
|
|
3806
|
+
cache: Ie(e.pluralRules),
|
|
3807
|
+
strategy: Pe.variadic
|
|
3787
3808
|
})
|
|
3788
3809
|
};
|
|
3789
3810
|
}
|
|
3790
|
-
var
|
|
3811
|
+
var Qn = (
|
|
3791
3812
|
/** @class */
|
|
3792
3813
|
function() {
|
|
3793
3814
|
function e(t, r, n, i) {
|
|
@@ -3819,13 +3840,13 @@ var Zn = (
|
|
|
3819
3840
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3820
3841
|
var a = i || {};
|
|
3821
3842
|
a.formatters;
|
|
3822
|
-
var s =
|
|
3823
|
-
this.ast = e.__parse(t,
|
|
3843
|
+
var s = an(a, ["formatters"]);
|
|
3844
|
+
this.ast = e.__parse(t, L(L({}, s), { locale: this.resolvedLocale }));
|
|
3824
3845
|
} else
|
|
3825
3846
|
this.ast = t;
|
|
3826
3847
|
if (!Array.isArray(this.ast))
|
|
3827
3848
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3828
|
-
this.formats =
|
|
3849
|
+
this.formats = Zn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3829
3850
|
}
|
|
3830
3851
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3831
3852
|
get: function() {
|
|
@@ -3838,7 +3859,7 @@ var Zn = (
|
|
|
3838
3859
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3839
3860
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3840
3861
|
}
|
|
3841
|
-
}, e.__parse =
|
|
3862
|
+
}, e.__parse = kn, e.formats = {
|
|
3842
3863
|
number: {
|
|
3843
3864
|
integer: {
|
|
3844
3865
|
maximumFractionDigits: 0
|
|
@@ -3899,7 +3920,7 @@ var Zn = (
|
|
|
3899
3920
|
}, e;
|
|
3900
3921
|
}()
|
|
3901
3922
|
);
|
|
3902
|
-
function
|
|
3923
|
+
function Jn(e, t) {
|
|
3903
3924
|
if (t == null)
|
|
3904
3925
|
return;
|
|
3905
3926
|
if (t in e)
|
|
@@ -3920,92 +3941,92 @@ function Yn(e, t) {
|
|
|
3920
3941
|
n = void 0;
|
|
3921
3942
|
return n;
|
|
3922
3943
|
}
|
|
3923
|
-
const N = {},
|
|
3944
|
+
const N = {}, Kn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Yt = (e, t) => {
|
|
3924
3945
|
if (t == null)
|
|
3925
3946
|
return;
|
|
3926
3947
|
if (t in N && e in N[t])
|
|
3927
3948
|
return N[t][e];
|
|
3928
|
-
const r =
|
|
3949
|
+
const r = ye(t);
|
|
3929
3950
|
for (let n = 0; n < r.length; n++) {
|
|
3930
|
-
const i = r[n], o =
|
|
3951
|
+
const i = r[n], o = ti(i, e);
|
|
3931
3952
|
if (o)
|
|
3932
|
-
return
|
|
3953
|
+
return Kn(e, t, o);
|
|
3933
3954
|
}
|
|
3934
3955
|
};
|
|
3935
|
-
let
|
|
3936
|
-
const oe =
|
|
3937
|
-
function
|
|
3938
|
-
return
|
|
3956
|
+
let Ye;
|
|
3957
|
+
const oe = be({});
|
|
3958
|
+
function ei(e) {
|
|
3959
|
+
return Ye[e] || null;
|
|
3939
3960
|
}
|
|
3940
|
-
function
|
|
3941
|
-
return e in
|
|
3961
|
+
function Qt(e) {
|
|
3962
|
+
return e in Ye;
|
|
3942
3963
|
}
|
|
3943
|
-
function
|
|
3944
|
-
if (!
|
|
3964
|
+
function ti(e, t) {
|
|
3965
|
+
if (!Qt(e))
|
|
3945
3966
|
return null;
|
|
3946
|
-
const r =
|
|
3947
|
-
return
|
|
3967
|
+
const r = ei(e);
|
|
3968
|
+
return Jn(r, t);
|
|
3948
3969
|
}
|
|
3949
|
-
function
|
|
3970
|
+
function ri(e) {
|
|
3950
3971
|
if (e == null)
|
|
3951
3972
|
return;
|
|
3952
|
-
const t =
|
|
3973
|
+
const t = ye(e);
|
|
3953
3974
|
for (let r = 0; r < t.length; r++) {
|
|
3954
3975
|
const n = t[r];
|
|
3955
|
-
if (
|
|
3976
|
+
if (Qt(n))
|
|
3956
3977
|
return n;
|
|
3957
3978
|
}
|
|
3958
3979
|
}
|
|
3959
|
-
function
|
|
3980
|
+
function Jt(e, ...t) {
|
|
3960
3981
|
delete N[e], oe.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
|
|
3961
3982
|
}
|
|
3962
|
-
|
|
3983
|
+
W(
|
|
3963
3984
|
[oe],
|
|
3964
3985
|
([e]) => Object.keys(e)
|
|
3965
3986
|
);
|
|
3966
|
-
oe.subscribe((e) =>
|
|
3987
|
+
oe.subscribe((e) => Ye = e);
|
|
3967
3988
|
const ce = {};
|
|
3968
|
-
function
|
|
3989
|
+
function ni(e, t) {
|
|
3969
3990
|
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3970
3991
|
}
|
|
3971
|
-
function
|
|
3992
|
+
function Kt(e) {
|
|
3972
3993
|
return ce[e];
|
|
3973
3994
|
}
|
|
3974
|
-
function
|
|
3975
|
-
return
|
|
3976
|
-
const r =
|
|
3995
|
+
function ii(e) {
|
|
3996
|
+
return ye(e).map((t) => {
|
|
3997
|
+
const r = Kt(t);
|
|
3977
3998
|
return [t, r ? [...r] : []];
|
|
3978
3999
|
}).filter(([, t]) => t.length > 0);
|
|
3979
4000
|
}
|
|
3980
|
-
function
|
|
3981
|
-
return e == null ? !1 :
|
|
4001
|
+
function We(e) {
|
|
4002
|
+
return e == null ? !1 : ye(e).some(
|
|
3982
4003
|
(t) => {
|
|
3983
4004
|
var r;
|
|
3984
|
-
return (r =
|
|
4005
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3985
4006
|
}
|
|
3986
4007
|
);
|
|
3987
4008
|
}
|
|
3988
|
-
function
|
|
4009
|
+
function oi(e, t) {
|
|
3989
4010
|
return Promise.all(
|
|
3990
|
-
t.map((n) => (
|
|
3991
|
-
).then((n) =>
|
|
3992
|
-
}
|
|
3993
|
-
const
|
|
3994
|
-
function
|
|
3995
|
-
if (!
|
|
3996
|
-
return e in
|
|
3997
|
-
const t =
|
|
3998
|
-
return
|
|
4011
|
+
t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
|
|
4012
|
+
).then((n) => Jt(e, ...n));
|
|
4013
|
+
}
|
|
4014
|
+
const Y = {};
|
|
4015
|
+
function er(e) {
|
|
4016
|
+
if (!We(e))
|
|
4017
|
+
return e in Y ? Y[e] : Promise.resolve();
|
|
4018
|
+
const t = ii(e);
|
|
4019
|
+
return Y[e] = Promise.all(
|
|
3999
4020
|
t.map(
|
|
4000
|
-
([r, n]) =>
|
|
4021
|
+
([r, n]) => oi(r, n)
|
|
4001
4022
|
)
|
|
4002
4023
|
).then(() => {
|
|
4003
|
-
if (
|
|
4004
|
-
return
|
|
4005
|
-
delete
|
|
4006
|
-
}),
|
|
4024
|
+
if (We(e))
|
|
4025
|
+
return er(e);
|
|
4026
|
+
delete Y[e];
|
|
4027
|
+
}), Y[e];
|
|
4007
4028
|
}
|
|
4008
|
-
const
|
|
4029
|
+
const ai = {
|
|
4009
4030
|
number: {
|
|
4010
4031
|
scientific: { notation: "scientific" },
|
|
4011
4032
|
engineering: { notation: "engineering" },
|
|
@@ -4034,150 +4055,150 @@ const ii = {
|
|
|
4034
4055
|
timeZoneName: "short"
|
|
4035
4056
|
}
|
|
4036
4057
|
}
|
|
4037
|
-
},
|
|
4058
|
+
}, si = {
|
|
4038
4059
|
fallbackLocale: null,
|
|
4039
4060
|
loadingDelay: 200,
|
|
4040
|
-
formats:
|
|
4061
|
+
formats: ai,
|
|
4041
4062
|
warnOnMissingMessages: !0,
|
|
4042
4063
|
handleMissingMessage: void 0,
|
|
4043
4064
|
ignoreTag: !0
|
|
4044
|
-
},
|
|
4045
|
-
function
|
|
4046
|
-
return
|
|
4065
|
+
}, ui = si;
|
|
4066
|
+
function V() {
|
|
4067
|
+
return ui;
|
|
4047
4068
|
}
|
|
4048
|
-
const
|
|
4049
|
-
var
|
|
4069
|
+
const Ae = be(!1);
|
|
4070
|
+
var li = Object.defineProperty, hi = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, fi = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
|
|
4050
4071
|
for (var r in t || (t = {}))
|
|
4051
|
-
|
|
4052
|
-
if (
|
|
4053
|
-
for (var r of
|
|
4054
|
-
|
|
4072
|
+
fi.call(t, r) && vt(e, r, t[r]);
|
|
4073
|
+
if (bt)
|
|
4074
|
+
for (var r of bt(t))
|
|
4075
|
+
pi.call(t, r) && vt(e, r, t[r]);
|
|
4055
4076
|
return e;
|
|
4056
|
-
},
|
|
4057
|
-
let
|
|
4058
|
-
const
|
|
4059
|
-
function
|
|
4077
|
+
}, mi = (e, t) => hi(e, ci(t));
|
|
4078
|
+
let Xe;
|
|
4079
|
+
const pe = be(null);
|
|
4080
|
+
function gt(e) {
|
|
4060
4081
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4061
4082
|
}
|
|
4062
|
-
function
|
|
4063
|
-
const r =
|
|
4064
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4083
|
+
function ye(e, t = V().fallbackLocale) {
|
|
4084
|
+
const r = gt(e);
|
|
4085
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
|
|
4065
4086
|
}
|
|
4066
|
-
function
|
|
4067
|
-
return
|
|
4087
|
+
function $() {
|
|
4088
|
+
return Xe ?? void 0;
|
|
4068
4089
|
}
|
|
4069
|
-
|
|
4070
|
-
|
|
4090
|
+
pe.subscribe((e) => {
|
|
4091
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4071
4092
|
});
|
|
4072
|
-
const
|
|
4073
|
-
if (e &&
|
|
4074
|
-
const { loadingDelay: t } =
|
|
4093
|
+
const bi = (e) => {
|
|
4094
|
+
if (e && ri(e) && We(e)) {
|
|
4095
|
+
const { loadingDelay: t } = V();
|
|
4075
4096
|
let r;
|
|
4076
|
-
return typeof window < "u" &&
|
|
4077
|
-
() =>
|
|
4097
|
+
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
4098
|
+
() => Ae.set(!0),
|
|
4078
4099
|
t
|
|
4079
|
-
) :
|
|
4080
|
-
|
|
4100
|
+
) : Ae.set(!0), er(e).then(() => {
|
|
4101
|
+
pe.set(e);
|
|
4081
4102
|
}).finally(() => {
|
|
4082
|
-
clearTimeout(r),
|
|
4103
|
+
clearTimeout(r), Ae.set(!1);
|
|
4083
4104
|
});
|
|
4084
4105
|
}
|
|
4085
|
-
return
|
|
4086
|
-
},
|
|
4087
|
-
set:
|
|
4088
|
-
}),
|
|
4106
|
+
return pe.set(e);
|
|
4107
|
+
}, X = mi(di({}, pe), {
|
|
4108
|
+
set: bi
|
|
4109
|
+
}), xe = (e) => {
|
|
4089
4110
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4090
4111
|
return (n) => {
|
|
4091
4112
|
const i = JSON.stringify(n);
|
|
4092
4113
|
return i in t ? t[i] : t[i] = e(n);
|
|
4093
4114
|
};
|
|
4094
4115
|
};
|
|
4095
|
-
var
|
|
4116
|
+
var vi = Object.defineProperty, de = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
4096
4117
|
for (var r in t || (t = {}))
|
|
4097
|
-
|
|
4118
|
+
tr.call(t, r) && yt(e, r, t[r]);
|
|
4098
4119
|
if (de)
|
|
4099
4120
|
for (var r of de(t))
|
|
4100
|
-
|
|
4121
|
+
rr.call(t, r) && yt(e, r, t[r]);
|
|
4101
4122
|
return e;
|
|
4102
|
-
},
|
|
4123
|
+
}, q = (e, t) => {
|
|
4103
4124
|
var r = {};
|
|
4104
4125
|
for (var n in e)
|
|
4105
|
-
|
|
4126
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4106
4127
|
if (e != null && de)
|
|
4107
4128
|
for (var n of de(e))
|
|
4108
|
-
t.indexOf(n) < 0 &&
|
|
4129
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
4109
4130
|
return r;
|
|
4110
4131
|
};
|
|
4111
|
-
const
|
|
4112
|
-
const { formats: r } =
|
|
4132
|
+
const ee = (e, t) => {
|
|
4133
|
+
const { formats: r } = V();
|
|
4113
4134
|
if (e in r && t in r[e])
|
|
4114
4135
|
return r[e][t];
|
|
4115
4136
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4116
|
-
},
|
|
4137
|
+
}, gi = xe(
|
|
4117
4138
|
(e) => {
|
|
4118
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4139
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4119
4140
|
if (r == null)
|
|
4120
4141
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4121
|
-
return n && (i =
|
|
4142
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
4122
4143
|
}
|
|
4123
|
-
),
|
|
4144
|
+
), yi = xe(
|
|
4124
4145
|
(e) => {
|
|
4125
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4146
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4126
4147
|
if (r == null)
|
|
4127
4148
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4128
|
-
return n ? i =
|
|
4149
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4129
4150
|
}
|
|
4130
|
-
),
|
|
4151
|
+
), xi = xe(
|
|
4131
4152
|
(e) => {
|
|
4132
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4153
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4133
4154
|
if (r == null)
|
|
4134
4155
|
throw new Error(
|
|
4135
4156
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4136
4157
|
);
|
|
4137
|
-
return n ? i =
|
|
4158
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4138
4159
|
}
|
|
4139
|
-
),
|
|
4160
|
+
), _i = (e = {}) => {
|
|
4140
4161
|
var t = e, {
|
|
4141
|
-
locale: r =
|
|
4142
|
-
} = t, n =
|
|
4162
|
+
locale: r = $()
|
|
4163
|
+
} = t, n = q(t, [
|
|
4143
4164
|
"locale"
|
|
4144
4165
|
]);
|
|
4145
|
-
return
|
|
4146
|
-
},
|
|
4166
|
+
return gi(Qe({ locale: r }, n));
|
|
4167
|
+
}, Ei = (e = {}) => {
|
|
4147
4168
|
var t = e, {
|
|
4148
|
-
locale: r =
|
|
4149
|
-
} = t, n =
|
|
4169
|
+
locale: r = $()
|
|
4170
|
+
} = t, n = q(t, [
|
|
4150
4171
|
"locale"
|
|
4151
4172
|
]);
|
|
4152
|
-
return
|
|
4153
|
-
},
|
|
4173
|
+
return yi(Qe({ locale: r }, n));
|
|
4174
|
+
}, Ti = (e = {}) => {
|
|
4154
4175
|
var t = e, {
|
|
4155
|
-
locale: r =
|
|
4156
|
-
} = t, n =
|
|
4176
|
+
locale: r = $()
|
|
4177
|
+
} = t, n = q(t, [
|
|
4157
4178
|
"locale"
|
|
4158
4179
|
]);
|
|
4159
|
-
return
|
|
4160
|
-
},
|
|
4180
|
+
return xi(Qe({ locale: r }, n));
|
|
4181
|
+
}, Si = xe(
|
|
4161
4182
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4162
|
-
(e, t =
|
|
4163
|
-
ignoreTag:
|
|
4183
|
+
(e, t = $()) => new Qn(e, t, V().formats, {
|
|
4184
|
+
ignoreTag: V().ignoreTag
|
|
4164
4185
|
})
|
|
4165
|
-
),
|
|
4186
|
+
), wi = (e, t = {}) => {
|
|
4166
4187
|
var r, n, i, o;
|
|
4167
4188
|
let a = t;
|
|
4168
4189
|
typeof e == "object" && (a = e, e = a.id);
|
|
4169
4190
|
const {
|
|
4170
4191
|
values: s,
|
|
4171
|
-
locale: l =
|
|
4192
|
+
locale: l = $(),
|
|
4172
4193
|
default: u
|
|
4173
4194
|
} = a;
|
|
4174
4195
|
if (l == null)
|
|
4175
4196
|
throw new Error(
|
|
4176
4197
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4177
4198
|
);
|
|
4178
|
-
let h =
|
|
4199
|
+
let h = Yt(e, l);
|
|
4179
4200
|
if (!h)
|
|
4180
|
-
h = (o = (i = (n = (r =
|
|
4201
|
+
h = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4181
4202
|
else if (typeof h != "string")
|
|
4182
4203
|
return console.warn(
|
|
4183
4204
|
`[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.`
|
|
@@ -4186,7 +4207,7 @@ const te = (e, t) => {
|
|
|
4186
4207
|
return h;
|
|
4187
4208
|
let f = h;
|
|
4188
4209
|
try {
|
|
4189
|
-
f =
|
|
4210
|
+
f = Si(h, l).format(s);
|
|
4190
4211
|
} catch (c) {
|
|
4191
4212
|
c instanceof Error && console.warn(
|
|
4192
4213
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4194,21 +4215,21 @@ const te = (e, t) => {
|
|
|
4194
4215
|
);
|
|
4195
4216
|
}
|
|
4196
4217
|
return f;
|
|
4197
|
-
},
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4218
|
+
}, Pi = (e, t) => Ti(t).format(e), Hi = (e, t) => Ei(t).format(e), Ii = (e, t) => _i(t).format(e), Ai = (e, t = $()) => Yt(e, t), Bi = W([X, oe], () => wi);
|
|
4219
|
+
W([X], () => Pi);
|
|
4220
|
+
W([X], () => Hi);
|
|
4221
|
+
W([X], () => Ii);
|
|
4222
|
+
W([X, oe], () => Ai);
|
|
4202
4223
|
window.emWidgets = { topic: Fr };
|
|
4203
|
-
const
|
|
4224
|
+
const Ci = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4204
4225
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4205
|
-
function
|
|
4206
|
-
|
|
4226
|
+
function xt(e, t) {
|
|
4227
|
+
Jt(e, t);
|
|
4207
4228
|
}
|
|
4208
|
-
function
|
|
4209
|
-
|
|
4229
|
+
function Oi(e) {
|
|
4230
|
+
X.set(e);
|
|
4210
4231
|
}
|
|
4211
|
-
const
|
|
4232
|
+
const _t = {
|
|
4212
4233
|
en: {
|
|
4213
4234
|
name: "Info",
|
|
4214
4235
|
amountChanged: "Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",
|
|
@@ -4270,13 +4291,13 @@ const yt = {
|
|
|
4270
4291
|
defaultText: "When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."
|
|
4271
4292
|
}
|
|
4272
4293
|
};
|
|
4273
|
-
function
|
|
4294
|
+
function Li(e, t) {
|
|
4274
4295
|
if (e) {
|
|
4275
4296
|
const r = document.createElement("style");
|
|
4276
4297
|
r.innerHTML = t, e.appendChild(r);
|
|
4277
4298
|
}
|
|
4278
4299
|
}
|
|
4279
|
-
function
|
|
4300
|
+
function Mi(e, t) {
|
|
4280
4301
|
if (!e || !t)
|
|
4281
4302
|
return;
|
|
4282
4303
|
const r = new URL(t);
|
|
@@ -4287,7 +4308,7 @@ function Oi(e, t) {
|
|
|
4287
4308
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4288
4309
|
});
|
|
4289
4310
|
}
|
|
4290
|
-
function
|
|
4311
|
+
function Ni(e, t, r) {
|
|
4291
4312
|
if (window.emMessageBus) {
|
|
4292
4313
|
const n = document.createElement("style");
|
|
4293
4314
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4295,74 +4316,74 @@ function Mi(e, t, r) {
|
|
|
4295
4316
|
});
|
|
4296
4317
|
}
|
|
4297
4318
|
}
|
|
4298
|
-
function
|
|
4299
|
-
|
|
4319
|
+
function $i(e) {
|
|
4320
|
+
or(e, "svelte-11p58yq", '.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:""}.InfoCardPopupLimitChanged{background:var(--emw--color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emw--color-black, #000000);background:var(--emw--color-white, #FFFFFF);box-shadow:0 4px 12px var(--emw--color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emw--color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:300}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emw--color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));fill:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:32px;right:32px;padding:16px;border-radius:50%;color:var(--emw--color-white, #FFFFFF);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px;fill:var(--emw--color-black, #000000)}');
|
|
4300
4321
|
}
|
|
4301
|
-
function
|
|
4322
|
+
function Et(e) {
|
|
4302
4323
|
let t, r, n, i, o, a, s = (
|
|
4303
4324
|
/*$_*/
|
|
4304
4325
|
e[4]("name") + ""
|
|
4305
|
-
), l, u, h, f, c,
|
|
4306
|
-
function S(
|
|
4326
|
+
), l, u, h, f, c, p, d, g;
|
|
4327
|
+
function S(y, w) {
|
|
4307
4328
|
return (
|
|
4308
4329
|
/*iteminfoamount*/
|
|
4309
|
-
|
|
4330
|
+
y[0] ? Ui : Ri
|
|
4310
4331
|
);
|
|
4311
4332
|
}
|
|
4312
4333
|
let H = S(e), E = H(e);
|
|
4313
4334
|
return {
|
|
4314
4335
|
c() {
|
|
4315
|
-
t =
|
|
4336
|
+
t = B("section"), r = B("div"), n = B("div"), i = B("div"), i.textContent = "i", o = _e(), a = B("div"), l = ne(s), u = _e(), h = B("div"), h.innerHTML = '<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>', f = _e(), c = B("div"), E.c(), A(i, "class", "InfoCardPopupIcon"), A(a, "class", "InfoCardPopupTitle"), A(h, "class", "InfoCardPopupCloseButton"), A(n, "class", "InfoCardPopupHeader"), A(c, "class", "InfoCardPopupContentArea"), A(r, "class", p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4316
4337
|
(e[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4317
|
-
(e[0] ? "InfoCardPopupLimitChanged" : "")),
|
|
4338
|
+
(e[0] ? "InfoCardPopupLimitChanged" : "")), A(
|
|
4318
4339
|
t,
|
|
4319
4340
|
"class",
|
|
4320
4341
|
/*isMobile*/
|
|
4321
4342
|
e[5] ? "InfoCardPopupMobileModal" : ""
|
|
4322
4343
|
);
|
|
4323
4344
|
},
|
|
4324
|
-
m(
|
|
4325
|
-
|
|
4345
|
+
m(y, w) {
|
|
4346
|
+
re(y, t, w), P(t, r), P(r, n), P(n, i), P(n, o), P(n, a), P(a, l), P(n, u), P(n, h), P(r, f), P(r, c), E.m(c, null), e[13](t), d || (g = lr(h, "click", hr(
|
|
4326
4347
|
/*closeInfoPopup*/
|
|
4327
4348
|
e[6]
|
|
4328
|
-
)),
|
|
4349
|
+
)), d = !0);
|
|
4329
4350
|
},
|
|
4330
|
-
p(
|
|
4351
|
+
p(y, w) {
|
|
4331
4352
|
w & /*$_*/
|
|
4332
4353
|
16 && s !== (s = /*$_*/
|
|
4333
|
-
|
|
4334
|
-
1 &&
|
|
4335
|
-
(
|
|
4336
|
-
(
|
|
4354
|
+
y[4]("name") + "") && Ze(l, s), H === (H = S(y)) && E ? E.p(y, w) : (E.d(1), E = H(y), E && (E.c(), E.m(c, null))), w & /*iteminfoamount*/
|
|
4355
|
+
1 && p !== (p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4356
|
+
(y[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4357
|
+
(y[0] ? "InfoCardPopupLimitChanged" : "")) && A(r, "class", p);
|
|
4337
4358
|
},
|
|
4338
|
-
d(
|
|
4339
|
-
|
|
4359
|
+
d(y) {
|
|
4360
|
+
y && z(t), E.d(), e[13](null), d = !1, g();
|
|
4340
4361
|
}
|
|
4341
4362
|
};
|
|
4342
4363
|
}
|
|
4343
|
-
function
|
|
4364
|
+
function Ri(e) {
|
|
4344
4365
|
let t, r = (
|
|
4345
4366
|
/*$_*/
|
|
4346
4367
|
e[4]("defaultText") + ""
|
|
4347
4368
|
), n;
|
|
4348
4369
|
return {
|
|
4349
4370
|
c() {
|
|
4350
|
-
t =
|
|
4371
|
+
t = B("p"), n = ne(r), A(t, "class", "InfoCardPopupContent");
|
|
4351
4372
|
},
|
|
4352
4373
|
m(i, o) {
|
|
4353
|
-
|
|
4374
|
+
re(i, t, o), P(t, n);
|
|
4354
4375
|
},
|
|
4355
4376
|
p(i, o) {
|
|
4356
4377
|
o & /*$_*/
|
|
4357
4378
|
16 && r !== (r = /*$_*/
|
|
4358
|
-
i[4]("defaultText") + "") &&
|
|
4379
|
+
i[4]("defaultText") + "") && Ze(n, r);
|
|
4359
4380
|
},
|
|
4360
4381
|
d(i) {
|
|
4361
|
-
i &&
|
|
4382
|
+
i && z(t);
|
|
4362
4383
|
}
|
|
4363
4384
|
};
|
|
4364
4385
|
}
|
|
4365
|
-
function
|
|
4386
|
+
function Ui(e) {
|
|
4366
4387
|
let t, r = (
|
|
4367
4388
|
/*$_*/
|
|
4368
4389
|
e[4]("amountChanged", {
|
|
@@ -4380,10 +4401,10 @@ function Ri(e) {
|
|
|
4380
4401
|
), n;
|
|
4381
4402
|
return {
|
|
4382
4403
|
c() {
|
|
4383
|
-
t =
|
|
4404
|
+
t = B("p"), n = ne(r), A(t, "class", "InfoCardPopupContent");
|
|
4384
4405
|
},
|
|
4385
4406
|
m(i, o) {
|
|
4386
|
-
|
|
4407
|
+
re(i, t, o), P(t, n);
|
|
4387
4408
|
},
|
|
4388
4409
|
p(i, o) {
|
|
4389
4410
|
o & /*$_, iteminfoamount, currency*/
|
|
@@ -4399,87 +4420,87 @@ function Ri(e) {
|
|
|
4399
4420
|
i[1]
|
|
4400
4421
|
)
|
|
4401
4422
|
}
|
|
4402
|
-
}) + "") &&
|
|
4423
|
+
}) + "") && Ze(n, r);
|
|
4403
4424
|
},
|
|
4404
4425
|
d(i) {
|
|
4405
|
-
i &&
|
|
4426
|
+
i && z(t);
|
|
4406
4427
|
}
|
|
4407
4428
|
};
|
|
4408
4429
|
}
|
|
4409
|
-
function
|
|
4430
|
+
function Gi(e) {
|
|
4410
4431
|
let t, r = (
|
|
4411
4432
|
/*showPopup*/
|
|
4412
|
-
e[3] &&
|
|
4433
|
+
e[3] && Et(e)
|
|
4413
4434
|
);
|
|
4414
4435
|
return {
|
|
4415
4436
|
c() {
|
|
4416
|
-
r && r.c(), t =
|
|
4437
|
+
r && r.c(), t = ur();
|
|
4417
4438
|
},
|
|
4418
4439
|
m(n, i) {
|
|
4419
|
-
r && r.m(n, i),
|
|
4440
|
+
r && r.m(n, i), re(n, t, i);
|
|
4420
4441
|
},
|
|
4421
4442
|
p(n, [i]) {
|
|
4422
4443
|
/*showPopup*/
|
|
4423
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4444
|
+
n[3] ? r ? r.p(n, i) : (r = Et(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4424
4445
|
},
|
|
4425
|
-
i:
|
|
4426
|
-
o:
|
|
4446
|
+
i: C,
|
|
4447
|
+
o: C,
|
|
4427
4448
|
d(n) {
|
|
4428
|
-
n &&
|
|
4449
|
+
n && z(t), r && r.d(n);
|
|
4429
4450
|
}
|
|
4430
4451
|
};
|
|
4431
4452
|
}
|
|
4432
|
-
function
|
|
4453
|
+
function Di(e, t, r) {
|
|
4433
4454
|
let n;
|
|
4434
|
-
|
|
4455
|
+
ir(e, Bi, (m) => r(4, n = m));
|
|
4435
4456
|
let { showpopup: i = "" } = t, { iteminfoamount: o = "" } = t, { lang: a = "en" } = t, { currency: s = "USD" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h = "" } = t, { mbsource: f } = t;
|
|
4436
4457
|
const c = () => {
|
|
4437
4458
|
fetch(h).then((I) => I.json()).then((I) => {
|
|
4438
|
-
Object.keys(I).forEach((
|
|
4439
|
-
|
|
4459
|
+
Object.keys(I).forEach((Z) => {
|
|
4460
|
+
xt(Z, I[Z]);
|
|
4440
4461
|
});
|
|
4441
4462
|
}).catch((I) => {
|
|
4442
4463
|
console.log(I);
|
|
4443
4464
|
});
|
|
4444
4465
|
};
|
|
4445
|
-
Object.keys(
|
|
4446
|
-
|
|
4466
|
+
Object.keys(_t).forEach((m) => {
|
|
4467
|
+
xt(m, _t[m]);
|
|
4447
4468
|
});
|
|
4448
|
-
let
|
|
4469
|
+
let p = !1, d, g = window.navigator.userAgent, S = Ci(g) !== "PC";
|
|
4449
4470
|
const H = () => {
|
|
4450
|
-
r(3,
|
|
4471
|
+
r(3, p = !1), window.postMessage(
|
|
4451
4472
|
{
|
|
4452
4473
|
type: "ClosePlayerAccountGamingLimitsPopup"
|
|
4453
4474
|
},
|
|
4454
4475
|
window.location.href
|
|
4455
4476
|
);
|
|
4456
4477
|
}, E = (m) => {
|
|
4457
|
-
m.data && m.data.type == "ClosePlayerAccountGamingLimitsPopup" && r(3,
|
|
4458
|
-
},
|
|
4459
|
-
|
|
4478
|
+
m.data && m.data.type == "ClosePlayerAccountGamingLimitsPopup" && r(3, p = !1);
|
|
4479
|
+
}, y = () => {
|
|
4480
|
+
Oi(a), o < 0 && r(0, o = "0"), r(3, p = i);
|
|
4460
4481
|
};
|
|
4461
4482
|
dr(() => (window.addEventListener("message", E, !1), () => {
|
|
4462
4483
|
window.removeEventListener("message", E);
|
|
4463
4484
|
}));
|
|
4464
4485
|
function w(m) {
|
|
4465
|
-
|
|
4466
|
-
|
|
4486
|
+
Be[m ? "unshift" : "push"](() => {
|
|
4487
|
+
d = m, r(2, d);
|
|
4467
4488
|
});
|
|
4468
4489
|
}
|
|
4469
4490
|
return e.$$set = (m) => {
|
|
4470
4491
|
"showpopup" in m && r(7, i = m.showpopup), "iteminfoamount" in m && r(0, o = m.iteminfoamount), "lang" in m && r(8, a = m.lang), "currency" in m && r(1, s = m.currency), "clientstyling" in m && r(9, l = m.clientstyling), "clientstylingurl" in m && r(10, u = m.clientstylingurl), "translationurl" in m && r(11, h = m.translationurl), "mbsource" in m && r(12, f = m.mbsource);
|
|
4471
4492
|
}, e.$$.update = () => {
|
|
4472
4493
|
e.$$.dirty & /*showpopup, lang*/
|
|
4473
|
-
384 && i && a &&
|
|
4474
|
-
516 && l &&
|
|
4475
|
-
1028 && u &&
|
|
4476
|
-
4100 && f &&
|
|
4494
|
+
384 && i && a && y(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4495
|
+
516 && l && d && Li(d, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4496
|
+
1028 && u && d && Mi(d, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4497
|
+
4100 && f && d && Ni(d, `${f}.Style`), e.$$.dirty & /*translationurl*/
|
|
4477
4498
|
2048 && h && c();
|
|
4478
4499
|
}, [
|
|
4479
4500
|
o,
|
|
4480
4501
|
s,
|
|
4481
|
-
p,
|
|
4482
4502
|
d,
|
|
4503
|
+
p,
|
|
4483
4504
|
n,
|
|
4484
4505
|
S,
|
|
4485
4506
|
H,
|
|
@@ -4492,14 +4513,14 @@ function Ui(e, t, r) {
|
|
|
4492
4513
|
w
|
|
4493
4514
|
];
|
|
4494
4515
|
}
|
|
4495
|
-
class
|
|
4516
|
+
class Fi extends Pr {
|
|
4496
4517
|
constructor(t) {
|
|
4497
|
-
super(),
|
|
4518
|
+
super(), Sr(
|
|
4498
4519
|
this,
|
|
4499
4520
|
t,
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4521
|
+
Di,
|
|
4522
|
+
Gi,
|
|
4523
|
+
St,
|
|
4503
4524
|
{
|
|
4504
4525
|
showpopup: 7,
|
|
4505
4526
|
iteminfoamount: 0,
|
|
@@ -4510,7 +4531,7 @@ class Gi extends wr {
|
|
|
4510
4531
|
translationurl: 11,
|
|
4511
4532
|
mbsource: 12
|
|
4512
4533
|
},
|
|
4513
|
-
|
|
4534
|
+
$i
|
|
4514
4535
|
);
|
|
4515
4536
|
}
|
|
4516
4537
|
get showpopup() {
|
|
@@ -4562,7 +4583,7 @@ class Gi extends wr {
|
|
|
4562
4583
|
this.$$set({ mbsource: t }), O();
|
|
4563
4584
|
}
|
|
4564
4585
|
}
|
|
4565
|
-
|
|
4586
|
+
wr(Fi, { showpopup: {}, iteminfoamount: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4566
4587
|
export {
|
|
4567
|
-
|
|
4588
|
+
Fi as P
|
|
4568
4589
|
};
|