@everymatrix/general-icon-progress-bar 1.53.0 → 1.53.10
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/{GeneralIconProgressBar-DGUCh2l_.js → GeneralIconProgressBar-C9Vh7zO4.js} +906 -941
- package/esnext/general-icon-progress-bar.js +14 -0
- package/package.json +8 -9
- package/components/GeneralIconProgressBar-Xj3s_q-M.cjs +0 -3
- package/es2015/general-icon-progress-bar.cjs +0 -1
- package/es2015/general-icon-progress-bar.js +0 -16
package/components/{GeneralIconProgressBar-DGUCh2l_.js → GeneralIconProgressBar-C9Vh7zO4.js}
RENAMED
|
@@ -1,75 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
var Vt = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var Fe = Object.getOwnPropertySymbols;
|
|
4
|
-
var kt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var me = (e, t, r) => t in e ? Ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, je = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
kt.call(t, r) && me(e, r, t[r]);
|
|
8
|
-
if (Fe)
|
|
9
|
-
for (var r of Fe(t))
|
|
10
|
-
Xt.call(t, r) && me(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, Ve = (e, t) => jt(e, Vt(t));
|
|
13
|
-
var T = (e, t, r) => me(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var ke = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (u) => {
|
|
16
|
-
try {
|
|
17
|
-
a(r.next(u));
|
|
18
|
-
} catch (h) {
|
|
19
|
-
i(h);
|
|
20
|
-
}
|
|
21
|
-
}, o = (u) => {
|
|
22
|
-
try {
|
|
23
|
-
a(r.throw(u));
|
|
24
|
-
} catch (h) {
|
|
25
|
-
i(h);
|
|
26
|
-
}
|
|
27
|
-
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, o);
|
|
28
|
-
a((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function B() {
|
|
1
|
+
function T() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function tt(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function Ue() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function K(e) {
|
|
10
|
+
e.forEach(tt);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function Ie(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function rt(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
function
|
|
18
|
+
function Ct(e) {
|
|
48
19
|
return Object.keys(e).length === 0;
|
|
49
20
|
}
|
|
50
|
-
function
|
|
21
|
+
function nt(e, ...t) {
|
|
51
22
|
if (e == null) {
|
|
52
23
|
for (const n of t)
|
|
53
24
|
n(void 0);
|
|
54
|
-
return
|
|
25
|
+
return T;
|
|
55
26
|
}
|
|
56
27
|
const r = e.subscribe(...t);
|
|
57
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
29
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Mt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(nt(t, r));
|
|
61
32
|
}
|
|
62
|
-
function
|
|
33
|
+
function re(e, t) {
|
|
63
34
|
e.appendChild(t);
|
|
64
35
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
36
|
+
function Rt(e, t, r) {
|
|
37
|
+
const n = $t(e);
|
|
67
38
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = Z("style");
|
|
40
|
+
i.id = t, i.textContent = r, Ut(n, i);
|
|
70
41
|
}
|
|
71
42
|
}
|
|
72
|
-
function
|
|
43
|
+
function $t(e) {
|
|
73
44
|
if (!e) return document;
|
|
74
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
46
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,36 +49,36 @@ function Qt(e) {
|
|
|
78
49
|
t
|
|
79
50
|
) : e.ownerDocument;
|
|
80
51
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
52
|
+
function Ut(e, t) {
|
|
53
|
+
return re(
|
|
83
54
|
/** @type {Document} */
|
|
84
55
|
e.head || e,
|
|
85
56
|
t
|
|
86
57
|
), t.sheet;
|
|
87
58
|
}
|
|
88
|
-
function
|
|
59
|
+
function it(e, t, r) {
|
|
89
60
|
e.insertBefore(t, r || null);
|
|
90
61
|
}
|
|
91
|
-
function
|
|
62
|
+
function we(e) {
|
|
92
63
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
64
|
}
|
|
94
|
-
function
|
|
65
|
+
function Z(e) {
|
|
95
66
|
return document.createElement(e);
|
|
96
67
|
}
|
|
97
|
-
function
|
|
68
|
+
function Gt(e) {
|
|
98
69
|
return document.createTextNode(e);
|
|
99
70
|
}
|
|
100
|
-
function
|
|
71
|
+
function L(e, t, r) {
|
|
101
72
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
102
73
|
}
|
|
103
|
-
function
|
|
74
|
+
function Dt(e) {
|
|
104
75
|
return Array.from(e.childNodes);
|
|
105
76
|
}
|
|
106
|
-
function
|
|
77
|
+
function Ft(e, t) {
|
|
107
78
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
108
79
|
t);
|
|
109
80
|
}
|
|
110
|
-
function
|
|
81
|
+
function jt(e) {
|
|
111
82
|
const t = {};
|
|
112
83
|
return e.childNodes.forEach(
|
|
113
84
|
/** @param {Element} node */
|
|
@@ -116,238 +87,234 @@ function er(e) {
|
|
|
116
87
|
}
|
|
117
88
|
), t;
|
|
118
89
|
}
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
const
|
|
124
|
-
let
|
|
125
|
-
const
|
|
126
|
-
let
|
|
127
|
-
function
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
function
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
const
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
if (
|
|
90
|
+
let Le;
|
|
91
|
+
function Q(e) {
|
|
92
|
+
Le = e;
|
|
93
|
+
}
|
|
94
|
+
const U = [], J = [];
|
|
95
|
+
let G = [];
|
|
96
|
+
const Ge = [], Vt = /* @__PURE__ */ Promise.resolve();
|
|
97
|
+
let ye = !1;
|
|
98
|
+
function kt() {
|
|
99
|
+
ye || (ye = !0, Vt.then(A));
|
|
100
|
+
}
|
|
101
|
+
function _e(e) {
|
|
102
|
+
G.push(e);
|
|
103
|
+
}
|
|
104
|
+
const pe = /* @__PURE__ */ new Set();
|
|
105
|
+
let R = 0;
|
|
106
|
+
function A() {
|
|
107
|
+
if (R !== 0)
|
|
137
108
|
return;
|
|
138
|
-
const e =
|
|
109
|
+
const e = Le;
|
|
139
110
|
do {
|
|
140
111
|
try {
|
|
141
|
-
for (;
|
|
142
|
-
const t =
|
|
143
|
-
|
|
112
|
+
for (; R < U.length; ) {
|
|
113
|
+
const t = U[R];
|
|
114
|
+
R++, Q(t), Xt(t.$$);
|
|
144
115
|
}
|
|
145
116
|
} catch (t) {
|
|
146
|
-
throw
|
|
117
|
+
throw U.length = 0, R = 0, t;
|
|
147
118
|
}
|
|
148
|
-
for (
|
|
149
|
-
for (let t = 0; t <
|
|
150
|
-
const r =
|
|
151
|
-
|
|
119
|
+
for (Q(null), U.length = 0, R = 0; J.length; ) J.pop()();
|
|
120
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
121
|
+
const r = G[t];
|
|
122
|
+
pe.has(r) || (pe.add(r), r());
|
|
152
123
|
}
|
|
153
|
-
|
|
154
|
-
} while (
|
|
155
|
-
for (;
|
|
156
|
-
|
|
157
|
-
|
|
124
|
+
G.length = 0;
|
|
125
|
+
} while (U.length);
|
|
126
|
+
for (; Ge.length; )
|
|
127
|
+
Ge.pop()();
|
|
128
|
+
ye = !1, pe.clear(), Q(e);
|
|
158
129
|
}
|
|
159
|
-
function
|
|
130
|
+
function Xt(e) {
|
|
160
131
|
if (e.fragment !== null) {
|
|
161
|
-
e.update(),
|
|
132
|
+
e.update(), K(e.before_update);
|
|
162
133
|
const t = e.dirty;
|
|
163
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
134
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
|
164
135
|
}
|
|
165
136
|
}
|
|
166
|
-
function
|
|
137
|
+
function zt(e) {
|
|
167
138
|
const t = [], r = [];
|
|
168
|
-
|
|
139
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
169
140
|
}
|
|
170
|
-
const
|
|
171
|
-
function
|
|
172
|
-
e && e.i && (
|
|
141
|
+
const Wt = /* @__PURE__ */ new Set();
|
|
142
|
+
function Zt(e, t) {
|
|
143
|
+
e && e.i && (Wt.delete(e), e.i(t));
|
|
173
144
|
}
|
|
174
|
-
function
|
|
145
|
+
function Qt(e, t, r) {
|
|
175
146
|
const { fragment: n, after_update: i } = e.$$;
|
|
176
|
-
n && n.m(t, r),
|
|
177
|
-
const s = e.$$.on_mount.map(
|
|
178
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
179
|
-
}), i.forEach(
|
|
147
|
+
n && n.m(t, r), _e(() => {
|
|
148
|
+
const s = e.$$.on_mount.map(tt).filter(Ie);
|
|
149
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
|
150
|
+
}), i.forEach(_e);
|
|
180
151
|
}
|
|
181
|
-
function
|
|
152
|
+
function Jt(e, t) {
|
|
182
153
|
const r = e.$$;
|
|
183
|
-
r.fragment !== null && (
|
|
154
|
+
r.fragment !== null && (zt(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
184
155
|
}
|
|
185
|
-
function
|
|
186
|
-
e.$$.dirty[0] === -1 && (
|
|
156
|
+
function qt(e, t) {
|
|
157
|
+
e.$$.dirty[0] === -1 && (U.push(e), kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
187
158
|
}
|
|
188
|
-
function
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
const
|
|
159
|
+
function Yt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
160
|
+
const l = Le;
|
|
161
|
+
Q(e);
|
|
162
|
+
const u = e.$$ = {
|
|
192
163
|
fragment: null,
|
|
193
164
|
ctx: [],
|
|
194
165
|
// state
|
|
195
166
|
props: s,
|
|
196
|
-
update:
|
|
167
|
+
update: T,
|
|
197
168
|
not_equal: i,
|
|
198
|
-
bound:
|
|
169
|
+
bound: Ue(),
|
|
199
170
|
// lifecycle
|
|
200
171
|
on_mount: [],
|
|
201
172
|
on_destroy: [],
|
|
202
173
|
on_disconnect: [],
|
|
203
174
|
before_update: [],
|
|
204
175
|
after_update: [],
|
|
205
|
-
context: new Map(t.context || (
|
|
176
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
206
177
|
// everything else
|
|
207
|
-
callbacks:
|
|
208
|
-
dirty:
|
|
178
|
+
callbacks: Ue(),
|
|
179
|
+
dirty: o,
|
|
209
180
|
skip_bound: !1,
|
|
210
|
-
root: t.target ||
|
|
181
|
+
root: t.target || l.$$.root
|
|
211
182
|
};
|
|
212
|
-
|
|
213
|
-
let
|
|
214
|
-
if (
|
|
183
|
+
a && a(u.root);
|
|
184
|
+
let h = !1;
|
|
185
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...x) => {
|
|
215
186
|
const g = x.length ? x[0] : f;
|
|
216
|
-
return
|
|
217
|
-
})
|
|
187
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && qt(e, c)), f;
|
|
188
|
+
}), u.update(), h = !0, K(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
218
189
|
if (t.hydrate) {
|
|
219
|
-
const c =
|
|
220
|
-
|
|
190
|
+
const c = Dt(t.target);
|
|
191
|
+
u.fragment && u.fragment.l(c), c.forEach(we);
|
|
221
192
|
} else
|
|
222
|
-
|
|
223
|
-
t.intro &&
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
let
|
|
228
|
-
typeof HTMLElement == "function" && (
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
this.$$l_u.set(r, i);
|
|
193
|
+
u.fragment && u.fragment.c();
|
|
194
|
+
t.intro && Zt(e.$$.fragment), Qt(e, t.target, t.anchor), A();
|
|
195
|
+
}
|
|
196
|
+
Q(l);
|
|
197
|
+
}
|
|
198
|
+
let st;
|
|
199
|
+
typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
200
|
+
/** The Svelte component constructor */
|
|
201
|
+
$$ctor;
|
|
202
|
+
/** Slots */
|
|
203
|
+
$$s;
|
|
204
|
+
/** The Svelte component instance */
|
|
205
|
+
$$c;
|
|
206
|
+
/** Whether or not the custom element is connected */
|
|
207
|
+
$$cn = !1;
|
|
208
|
+
/** Component props data */
|
|
209
|
+
$$d = {};
|
|
210
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
211
|
+
$$r = !1;
|
|
212
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
213
|
+
$$p_d = {};
|
|
214
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
215
|
+
$$l = {};
|
|
216
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
217
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
218
|
+
constructor(e, t, r) {
|
|
219
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
220
|
+
}
|
|
221
|
+
addEventListener(e, t, r) {
|
|
222
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
223
|
+
const n = this.$$c.$on(e, t);
|
|
224
|
+
this.$$l_u.set(t, n);
|
|
255
225
|
}
|
|
256
|
-
super.addEventListener(t, r
|
|
226
|
+
super.addEventListener(e, t, r);
|
|
257
227
|
}
|
|
258
|
-
removeEventListener(t, r
|
|
259
|
-
if (super.removeEventListener(t, r
|
|
260
|
-
const
|
|
261
|
-
|
|
228
|
+
removeEventListener(e, t, r) {
|
|
229
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
230
|
+
const n = this.$$l_u.get(t);
|
|
231
|
+
n && (n(), this.$$l_u.delete(t));
|
|
262
232
|
}
|
|
263
233
|
}
|
|
264
|
-
connectedCallback() {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
};
|
|
234
|
+
async connectedCallback() {
|
|
235
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
236
|
+
let e = function(i) {
|
|
237
|
+
return () => {
|
|
238
|
+
let s;
|
|
239
|
+
return {
|
|
240
|
+
c: function() {
|
|
241
|
+
s = Z("slot"), i !== "default" && L(s, "name", i);
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
* @param {HTMLElement} target
|
|
245
|
+
* @param {HTMLElement} [anchor]
|
|
246
|
+
*/
|
|
247
|
+
m: function(l, u) {
|
|
248
|
+
it(l, s, u);
|
|
249
|
+
},
|
|
250
|
+
d: function(l) {
|
|
251
|
+
l && we(s);
|
|
252
|
+
}
|
|
285
253
|
};
|
|
286
254
|
};
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
255
|
+
};
|
|
256
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
257
|
+
return;
|
|
258
|
+
const t = {}, r = jt(this);
|
|
259
|
+
for (const i of this.$$s)
|
|
260
|
+
i in r && (t[i] = [e(i)]);
|
|
261
|
+
for (const i of this.attributes) {
|
|
262
|
+
const s = this.$$g_p(i.name);
|
|
263
|
+
s in this.$$d || (this.$$d[s] = ne(s, i.value, this.$$p_d, "toProp"));
|
|
264
|
+
}
|
|
265
|
+
for (const i in this.$$p_d)
|
|
266
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
267
|
+
this.$$c = new this.$$ctor({
|
|
268
|
+
target: this.shadowRoot || this,
|
|
269
|
+
props: {
|
|
270
|
+
...this.$$d,
|
|
271
|
+
$$slots: t,
|
|
272
|
+
$$scope: {
|
|
273
|
+
ctx: []
|
|
274
|
+
}
|
|
295
275
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
this.$$
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
this.$$r = !0;
|
|
309
|
-
for (const s in this.$$p_d)
|
|
310
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
311
|
-
const o = ie(
|
|
312
|
-
s,
|
|
313
|
-
this.$$d[s],
|
|
314
|
-
this.$$p_d,
|
|
315
|
-
"toAttribute"
|
|
316
|
-
);
|
|
317
|
-
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
318
|
-
}
|
|
319
|
-
this.$$r = !1;
|
|
320
|
-
};
|
|
321
|
-
this.$$c.$$.after_update.push(i), i();
|
|
322
|
-
for (const s in this.$$l)
|
|
323
|
-
for (const o of this.$$l[s]) {
|
|
324
|
-
const a = this.$$c.$on(s, o);
|
|
325
|
-
this.$$l_u.set(o, a);
|
|
276
|
+
});
|
|
277
|
+
const n = () => {
|
|
278
|
+
this.$$r = !0;
|
|
279
|
+
for (const i in this.$$p_d)
|
|
280
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
281
|
+
const s = ne(
|
|
282
|
+
i,
|
|
283
|
+
this.$$d[i],
|
|
284
|
+
this.$$p_d,
|
|
285
|
+
"toAttribute"
|
|
286
|
+
);
|
|
287
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
326
288
|
}
|
|
327
|
-
this.$$
|
|
328
|
-
}
|
|
329
|
-
|
|
289
|
+
this.$$r = !1;
|
|
290
|
+
};
|
|
291
|
+
this.$$c.$$.after_update.push(n), n();
|
|
292
|
+
for (const i in this.$$l)
|
|
293
|
+
for (const s of this.$$l[i]) {
|
|
294
|
+
const a = this.$$c.$on(i, s);
|
|
295
|
+
this.$$l_u.set(s, a);
|
|
296
|
+
}
|
|
297
|
+
this.$$l = {};
|
|
298
|
+
}
|
|
330
299
|
}
|
|
331
300
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
332
301
|
// and setting attributes through setAttribute etc, this is helpful
|
|
333
|
-
attributeChangedCallback(t, r
|
|
334
|
-
|
|
335
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ie(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
302
|
+
attributeChangedCallback(e, t, r) {
|
|
303
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ne(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
336
304
|
}
|
|
337
305
|
disconnectedCallback() {
|
|
338
306
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
339
307
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
340
308
|
});
|
|
341
309
|
}
|
|
342
|
-
$$g_p(
|
|
310
|
+
$$g_p(e) {
|
|
343
311
|
return Object.keys(this.$$p_d).find(
|
|
344
|
-
(
|
|
345
|
-
) ||
|
|
312
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
313
|
+
) || e;
|
|
346
314
|
}
|
|
347
315
|
});
|
|
348
|
-
function
|
|
349
|
-
|
|
350
|
-
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
316
|
+
function ne(e, t, r, n) {
|
|
317
|
+
const i = r[e]?.type;
|
|
351
318
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
352
319
|
return t;
|
|
353
320
|
if (n === "toAttribute")
|
|
@@ -358,7 +325,7 @@ function ie(e, t, r, n) {
|
|
|
358
325
|
case "Boolean":
|
|
359
326
|
return t ? "" : null;
|
|
360
327
|
case "Number":
|
|
361
|
-
return t
|
|
328
|
+
return t ?? null;
|
|
362
329
|
default:
|
|
363
330
|
return t;
|
|
364
331
|
}
|
|
@@ -375,59 +342,55 @@ function ie(e, t, r, n) {
|
|
|
375
342
|
return t;
|
|
376
343
|
}
|
|
377
344
|
}
|
|
378
|
-
function
|
|
379
|
-
let
|
|
345
|
+
function Kt(e, t, r, n, i, s) {
|
|
346
|
+
let a = class extends st {
|
|
380
347
|
constructor() {
|
|
381
348
|
super(e, r, i), this.$$p_d = t;
|
|
382
349
|
}
|
|
383
350
|
static get observedAttributes() {
|
|
384
351
|
return Object.keys(t).map(
|
|
385
|
-
(
|
|
352
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
386
353
|
);
|
|
387
354
|
}
|
|
388
355
|
};
|
|
389
|
-
return Object.keys(t).forEach((
|
|
390
|
-
Object.defineProperty(
|
|
356
|
+
return Object.keys(t).forEach((o) => {
|
|
357
|
+
Object.defineProperty(a.prototype, o, {
|
|
391
358
|
get() {
|
|
392
|
-
return this.$$c &&
|
|
359
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
393
360
|
},
|
|
394
|
-
set(
|
|
395
|
-
|
|
396
|
-
u = ie(a, u, t), this.$$d[a] = u, (h = this.$$c) == null || h.$set({ [a]: u });
|
|
361
|
+
set(l) {
|
|
362
|
+
l = ne(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
397
363
|
}
|
|
398
364
|
});
|
|
399
|
-
}), n.forEach((
|
|
400
|
-
Object.defineProperty(
|
|
365
|
+
}), n.forEach((o) => {
|
|
366
|
+
Object.defineProperty(a.prototype, o, {
|
|
401
367
|
get() {
|
|
402
|
-
|
|
403
|
-
return (u = this.$$c) == null ? void 0 : u[a];
|
|
368
|
+
return this.$$c?.[o];
|
|
404
369
|
}
|
|
405
370
|
});
|
|
406
371
|
}), e.element = /** @type {any} */
|
|
407
|
-
|
|
408
|
-
}
|
|
409
|
-
class
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
T(this, "$$set");
|
|
427
|
-
}
|
|
372
|
+
a, a;
|
|
373
|
+
}
|
|
374
|
+
class er {
|
|
375
|
+
/**
|
|
376
|
+
* ### PRIVATE API
|
|
377
|
+
*
|
|
378
|
+
* Do not use, may change at any time
|
|
379
|
+
*
|
|
380
|
+
* @type {any}
|
|
381
|
+
*/
|
|
382
|
+
$$ = void 0;
|
|
383
|
+
/**
|
|
384
|
+
* ### PRIVATE API
|
|
385
|
+
*
|
|
386
|
+
* Do not use, may change at any time
|
|
387
|
+
*
|
|
388
|
+
* @type {any}
|
|
389
|
+
*/
|
|
390
|
+
$$set = void 0;
|
|
428
391
|
/** @returns {void} */
|
|
429
392
|
$destroy() {
|
|
430
|
-
|
|
393
|
+
Jt(this, 1), this.$destroy = T;
|
|
431
394
|
}
|
|
432
395
|
/**
|
|
433
396
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -436,8 +399,8 @@ class cr {
|
|
|
436
399
|
* @returns {() => void}
|
|
437
400
|
*/
|
|
438
401
|
$on(t, r) {
|
|
439
|
-
if (!
|
|
440
|
-
return
|
|
402
|
+
if (!Ie(r))
|
|
403
|
+
return T;
|
|
441
404
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
442
405
|
return n.push(r), () => {
|
|
443
406
|
const i = n.indexOf(r);
|
|
@@ -449,174 +412,174 @@ class cr {
|
|
|
449
412
|
* @returns {void}
|
|
450
413
|
*/
|
|
451
414
|
$set(t) {
|
|
452
|
-
this.$$set && !
|
|
415
|
+
this.$$set && !Ct(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
453
416
|
}
|
|
454
417
|
}
|
|
455
|
-
const
|
|
456
|
-
typeof window
|
|
457
|
-
const
|
|
458
|
-
function
|
|
418
|
+
const tr = "4";
|
|
419
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(tr);
|
|
420
|
+
const $ = [];
|
|
421
|
+
function rr(e, t) {
|
|
459
422
|
return {
|
|
460
423
|
subscribe: ue(e, t).subscribe
|
|
461
424
|
};
|
|
462
425
|
}
|
|
463
|
-
function ue(e, t =
|
|
426
|
+
function ue(e, t = T) {
|
|
464
427
|
let r;
|
|
465
428
|
const n = /* @__PURE__ */ new Set();
|
|
466
|
-
function i(
|
|
467
|
-
if (
|
|
468
|
-
const
|
|
469
|
-
for (const
|
|
470
|
-
|
|
471
|
-
if (
|
|
472
|
-
for (let
|
|
473
|
-
|
|
474
|
-
|
|
429
|
+
function i(o) {
|
|
430
|
+
if (rt(e, o) && (e = o, r)) {
|
|
431
|
+
const l = !$.length;
|
|
432
|
+
for (const u of n)
|
|
433
|
+
u[1](), $.push(u, e);
|
|
434
|
+
if (l) {
|
|
435
|
+
for (let u = 0; u < $.length; u += 2)
|
|
436
|
+
$[u][0]($[u + 1]);
|
|
437
|
+
$.length = 0;
|
|
475
438
|
}
|
|
476
439
|
}
|
|
477
440
|
}
|
|
478
|
-
function s(
|
|
479
|
-
i(
|
|
441
|
+
function s(o) {
|
|
442
|
+
i(o(e));
|
|
480
443
|
}
|
|
481
|
-
function o
|
|
482
|
-
const
|
|
483
|
-
return n.add(
|
|
484
|
-
n.delete(
|
|
444
|
+
function a(o, l = T) {
|
|
445
|
+
const u = [o, l];
|
|
446
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || T), o(e), () => {
|
|
447
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
485
448
|
};
|
|
486
449
|
}
|
|
487
|
-
return { set: i, update: s, subscribe:
|
|
450
|
+
return { set: i, update: s, subscribe: a };
|
|
488
451
|
}
|
|
489
|
-
function
|
|
452
|
+
function k(e, t, r) {
|
|
490
453
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
491
454
|
if (!i.every(Boolean))
|
|
492
455
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
493
456
|
const s = t.length < 2;
|
|
494
|
-
return
|
|
495
|
-
let
|
|
496
|
-
const
|
|
497
|
-
let
|
|
457
|
+
return rr(r, (a, o) => {
|
|
458
|
+
let l = !1;
|
|
459
|
+
const u = [];
|
|
460
|
+
let h = 0, c = T;
|
|
498
461
|
const f = () => {
|
|
499
|
-
if (
|
|
462
|
+
if (h)
|
|
500
463
|
return;
|
|
501
464
|
c();
|
|
502
|
-
const g = t(n ?
|
|
503
|
-
s ?
|
|
465
|
+
const g = t(n ? u[0] : u, a, o);
|
|
466
|
+
s ? a(g) : c = Ie(g) ? g : T;
|
|
504
467
|
}, x = i.map(
|
|
505
|
-
(g, y) =>
|
|
468
|
+
(g, y) => nt(
|
|
506
469
|
g,
|
|
507
470
|
(H) => {
|
|
508
|
-
|
|
471
|
+
u[y] = H, h &= ~(1 << y), l && f();
|
|
509
472
|
},
|
|
510
473
|
() => {
|
|
511
|
-
|
|
474
|
+
h |= 1 << y;
|
|
512
475
|
}
|
|
513
476
|
)
|
|
514
477
|
);
|
|
515
|
-
return
|
|
516
|
-
|
|
478
|
+
return l = !0, f(), function() {
|
|
479
|
+
K(x), c(), l = !1;
|
|
517
480
|
};
|
|
518
481
|
});
|
|
519
482
|
}
|
|
520
|
-
function
|
|
521
|
-
return e
|
|
483
|
+
function nr(e) {
|
|
484
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
522
485
|
}
|
|
523
|
-
var
|
|
524
|
-
return
|
|
486
|
+
var ir = function(t) {
|
|
487
|
+
return sr(t) && !or(t);
|
|
525
488
|
};
|
|
526
|
-
function
|
|
489
|
+
function sr(e) {
|
|
527
490
|
return !!e && typeof e == "object";
|
|
528
491
|
}
|
|
529
|
-
function
|
|
492
|
+
function or(e) {
|
|
530
493
|
var t = Object.prototype.toString.call(e);
|
|
531
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
494
|
+
return t === "[object RegExp]" || t === "[object Date]" || hr(e);
|
|
532
495
|
}
|
|
533
|
-
var
|
|
534
|
-
function
|
|
535
|
-
return e.$$typeof ===
|
|
496
|
+
var ar = typeof Symbol == "function" && Symbol.for, ur = ar ? Symbol.for("react.element") : 60103;
|
|
497
|
+
function hr(e) {
|
|
498
|
+
return e.$$typeof === ur;
|
|
536
499
|
}
|
|
537
|
-
function
|
|
500
|
+
function lr(e) {
|
|
538
501
|
return Array.isArray(e) ? [] : {};
|
|
539
502
|
}
|
|
540
|
-
function
|
|
541
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
503
|
+
function q(e, t) {
|
|
504
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(lr(e), e, t) : e;
|
|
542
505
|
}
|
|
543
|
-
function
|
|
506
|
+
function fr(e, t, r) {
|
|
544
507
|
return e.concat(t).map(function(n) {
|
|
545
|
-
return
|
|
508
|
+
return q(n, r);
|
|
546
509
|
});
|
|
547
510
|
}
|
|
548
|
-
function
|
|
511
|
+
function cr(e, t) {
|
|
549
512
|
if (!t.customMerge)
|
|
550
|
-
return
|
|
513
|
+
return D;
|
|
551
514
|
var r = t.customMerge(e);
|
|
552
|
-
return typeof r == "function" ? r :
|
|
515
|
+
return typeof r == "function" ? r : D;
|
|
553
516
|
}
|
|
554
|
-
function
|
|
517
|
+
function pr(e) {
|
|
555
518
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
556
519
|
return Object.propertyIsEnumerable.call(e, t);
|
|
557
520
|
}) : [];
|
|
558
521
|
}
|
|
559
|
-
function
|
|
560
|
-
return Object.keys(e).concat(
|
|
522
|
+
function De(e) {
|
|
523
|
+
return Object.keys(e).concat(pr(e));
|
|
561
524
|
}
|
|
562
|
-
function
|
|
525
|
+
function ot(e, t) {
|
|
563
526
|
try {
|
|
564
527
|
return t in e;
|
|
565
|
-
} catch
|
|
528
|
+
} catch {
|
|
566
529
|
return !1;
|
|
567
530
|
}
|
|
568
531
|
}
|
|
569
|
-
function
|
|
570
|
-
return
|
|
532
|
+
function mr(e, t) {
|
|
533
|
+
return ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
571
534
|
}
|
|
572
|
-
function
|
|
535
|
+
function dr(e, t, r) {
|
|
573
536
|
var n = {};
|
|
574
|
-
return r.isMergeableObject(e) &&
|
|
575
|
-
n[i] =
|
|
576
|
-
}),
|
|
577
|
-
|
|
537
|
+
return r.isMergeableObject(e) && De(e).forEach(function(i) {
|
|
538
|
+
n[i] = q(e[i], r);
|
|
539
|
+
}), De(t).forEach(function(i) {
|
|
540
|
+
mr(e, i) || (ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = cr(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
|
578
541
|
}), n;
|
|
579
542
|
}
|
|
580
|
-
function
|
|
581
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
543
|
+
function D(e, t, r) {
|
|
544
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fr, r.isMergeableObject = r.isMergeableObject || ir, r.cloneUnlessOtherwiseSpecified = q;
|
|
582
545
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
583
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
546
|
+
return s ? n ? r.arrayMerge(e, t, r) : dr(e, t, r) : q(t, r);
|
|
584
547
|
}
|
|
585
|
-
|
|
548
|
+
D.all = function(t, r) {
|
|
586
549
|
if (!Array.isArray(t))
|
|
587
550
|
throw new Error("first argument should be an array");
|
|
588
551
|
return t.reduce(function(n, i) {
|
|
589
|
-
return
|
|
552
|
+
return D(n, i, r);
|
|
590
553
|
}, {});
|
|
591
554
|
};
|
|
592
|
-
var
|
|
593
|
-
const
|
|
594
|
-
var
|
|
595
|
-
return
|
|
555
|
+
var br = D, gr = br;
|
|
556
|
+
const xr = /* @__PURE__ */ nr(gr);
|
|
557
|
+
var ve = function(e, t) {
|
|
558
|
+
return ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
596
559
|
r.__proto__ = n;
|
|
597
560
|
} || function(r, n) {
|
|
598
561
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
599
|
-
},
|
|
562
|
+
}, ve(e, t);
|
|
600
563
|
};
|
|
601
|
-
function
|
|
564
|
+
function he(e, t) {
|
|
602
565
|
if (typeof t != "function" && t !== null)
|
|
603
566
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
604
|
-
|
|
567
|
+
ve(e, t);
|
|
605
568
|
function r() {
|
|
606
569
|
this.constructor = e;
|
|
607
570
|
}
|
|
608
571
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
609
572
|
}
|
|
610
|
-
var
|
|
611
|
-
return
|
|
573
|
+
var b = function() {
|
|
574
|
+
return b = Object.assign || function(t) {
|
|
612
575
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
613
576
|
r = arguments[n];
|
|
614
577
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
615
578
|
}
|
|
616
579
|
return t;
|
|
617
|
-
},
|
|
580
|
+
}, b.apply(this, arguments);
|
|
618
581
|
};
|
|
619
|
-
function
|
|
582
|
+
function Er(e, t) {
|
|
620
583
|
var r = {};
|
|
621
584
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
622
585
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -624,61 +587,63 @@ function Ir(e, t) {
|
|
|
624
587
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
625
588
|
return r;
|
|
626
589
|
}
|
|
627
|
-
function
|
|
590
|
+
function me(e, t, r) {
|
|
628
591
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
629
592
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
630
593
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
631
594
|
}
|
|
632
|
-
function
|
|
633
|
-
var r = t && t.cache ? t.cache :
|
|
595
|
+
function de(e, t) {
|
|
596
|
+
var r = t && t.cache ? t.cache : Sr, n = t && t.serializer ? t.serializer : Tr, i = t && t.strategy ? t.strategy : _r;
|
|
634
597
|
return i(e, {
|
|
635
598
|
cache: r,
|
|
636
599
|
serializer: n
|
|
637
600
|
});
|
|
638
601
|
}
|
|
639
|
-
function
|
|
602
|
+
function yr(e) {
|
|
640
603
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
641
604
|
}
|
|
642
|
-
function
|
|
643
|
-
var i =
|
|
644
|
-
return typeof s
|
|
605
|
+
function at(e, t, r, n) {
|
|
606
|
+
var i = yr(n) ? n : r(n), s = t.get(i);
|
|
607
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
645
608
|
}
|
|
646
|
-
function
|
|
609
|
+
function ut(e, t, r) {
|
|
647
610
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
648
|
-
return typeof s
|
|
611
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
649
612
|
}
|
|
650
|
-
function
|
|
613
|
+
function Ce(e, t, r, n, i) {
|
|
651
614
|
return r.bind(t, e, n, i);
|
|
652
615
|
}
|
|
653
|
-
function
|
|
654
|
-
var r = e.length === 1 ?
|
|
655
|
-
return
|
|
616
|
+
function _r(e, t) {
|
|
617
|
+
var r = e.length === 1 ? at : ut;
|
|
618
|
+
return Ce(e, this, r, t.cache.create(), t.serializer);
|
|
656
619
|
}
|
|
657
|
-
function
|
|
658
|
-
return
|
|
620
|
+
function vr(e, t) {
|
|
621
|
+
return Ce(e, this, ut, t.cache.create(), t.serializer);
|
|
659
622
|
}
|
|
660
|
-
function
|
|
661
|
-
return
|
|
623
|
+
function Hr(e, t) {
|
|
624
|
+
return Ce(e, this, at, t.cache.create(), t.serializer);
|
|
662
625
|
}
|
|
663
|
-
var
|
|
626
|
+
var Tr = function() {
|
|
664
627
|
return JSON.stringify(arguments);
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
628
|
+
}, Br = (
|
|
629
|
+
/** @class */
|
|
630
|
+
function() {
|
|
631
|
+
function e() {
|
|
632
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
633
|
+
}
|
|
634
|
+
return e.prototype.get = function(t) {
|
|
635
|
+
return this.cache[t];
|
|
636
|
+
}, e.prototype.set = function(t, r) {
|
|
637
|
+
this.cache[t] = r;
|
|
638
|
+
}, e;
|
|
639
|
+
}()
|
|
640
|
+
), Sr = {
|
|
676
641
|
create: function() {
|
|
677
|
-
return new
|
|
642
|
+
return new Br();
|
|
678
643
|
}
|
|
679
|
-
},
|
|
680
|
-
variadic:
|
|
681
|
-
monadic:
|
|
644
|
+
}, be = {
|
|
645
|
+
variadic: vr,
|
|
646
|
+
monadic: Hr
|
|
682
647
|
}, m;
|
|
683
648
|
(function(e) {
|
|
684
649
|
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";
|
|
@@ -687,47 +652,47 @@ var E;
|
|
|
687
652
|
(function(e) {
|
|
688
653
|
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";
|
|
689
654
|
})(E || (E = {}));
|
|
690
|
-
var
|
|
655
|
+
var F;
|
|
691
656
|
(function(e) {
|
|
692
657
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
693
|
-
})(
|
|
694
|
-
function
|
|
658
|
+
})(F || (F = {}));
|
|
659
|
+
function Fe(e) {
|
|
695
660
|
return e.type === E.literal;
|
|
696
661
|
}
|
|
697
|
-
function
|
|
662
|
+
function Ar(e) {
|
|
698
663
|
return e.type === E.argument;
|
|
699
664
|
}
|
|
700
|
-
function
|
|
665
|
+
function ht(e) {
|
|
701
666
|
return e.type === E.number;
|
|
702
667
|
}
|
|
703
|
-
function
|
|
668
|
+
function lt(e) {
|
|
704
669
|
return e.type === E.date;
|
|
705
670
|
}
|
|
706
|
-
function
|
|
671
|
+
function ft(e) {
|
|
707
672
|
return e.type === E.time;
|
|
708
673
|
}
|
|
709
|
-
function
|
|
674
|
+
function ct(e) {
|
|
710
675
|
return e.type === E.select;
|
|
711
676
|
}
|
|
712
|
-
function
|
|
677
|
+
function pt(e) {
|
|
713
678
|
return e.type === E.plural;
|
|
714
679
|
}
|
|
715
|
-
function
|
|
680
|
+
function Pr(e) {
|
|
716
681
|
return e.type === E.pound;
|
|
717
682
|
}
|
|
718
|
-
function
|
|
683
|
+
function mt(e) {
|
|
719
684
|
return e.type === E.tag;
|
|
720
685
|
}
|
|
721
|
-
function
|
|
722
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
686
|
+
function dt(e) {
|
|
687
|
+
return !!(e && typeof e == "object" && e.type === F.number);
|
|
723
688
|
}
|
|
724
|
-
function
|
|
725
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
689
|
+
function He(e) {
|
|
690
|
+
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
|
726
691
|
}
|
|
727
|
-
var
|
|
728
|
-
function
|
|
692
|
+
var bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Or = /(?:[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;
|
|
693
|
+
function Nr(e) {
|
|
729
694
|
var t = {};
|
|
730
|
-
return e.replace(
|
|
695
|
+
return e.replace(Or, function(r) {
|
|
731
696
|
var n = r.length;
|
|
732
697
|
switch (r[0]) {
|
|
733
698
|
case "G":
|
|
@@ -816,36 +781,36 @@ function Fr(e) {
|
|
|
816
781
|
return "";
|
|
817
782
|
}), t;
|
|
818
783
|
}
|
|
819
|
-
var
|
|
820
|
-
function
|
|
784
|
+
var Ir = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
785
|
+
function wr(e) {
|
|
821
786
|
if (e.length === 0)
|
|
822
787
|
throw new Error("Number skeleton cannot be empty");
|
|
823
|
-
for (var t = e.split(
|
|
788
|
+
for (var t = e.split(Ir).filter(function(f) {
|
|
824
789
|
return f.length > 0;
|
|
825
790
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
826
|
-
var s = i[n],
|
|
827
|
-
if (
|
|
791
|
+
var s = i[n], a = s.split("/");
|
|
792
|
+
if (a.length === 0)
|
|
828
793
|
throw new Error("Invalid number skeleton");
|
|
829
|
-
for (var
|
|
830
|
-
var c =
|
|
794
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
795
|
+
var c = h[u];
|
|
831
796
|
if (c.length === 0)
|
|
832
797
|
throw new Error("Invalid number skeleton");
|
|
833
798
|
}
|
|
834
|
-
r.push({ stem:
|
|
799
|
+
r.push({ stem: o, options: l });
|
|
835
800
|
}
|
|
836
801
|
return r;
|
|
837
802
|
}
|
|
838
|
-
function
|
|
803
|
+
function Lr(e) {
|
|
839
804
|
return e.replace(/^(.*?)-/, "");
|
|
840
805
|
}
|
|
841
|
-
var
|
|
842
|
-
function
|
|
806
|
+
var je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gt = /^(@+)?(\+|#+)?[rs]?$/g, Cr = /(\*)(0+)|(#+)(0+)|(0+)/g, xt = /^(0+)$/;
|
|
807
|
+
function Ve(e) {
|
|
843
808
|
var t = {};
|
|
844
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
809
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gt, function(r, n, i) {
|
|
845
810
|
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)), "";
|
|
846
811
|
}), t;
|
|
847
812
|
}
|
|
848
|
-
function
|
|
813
|
+
function Et(e) {
|
|
849
814
|
switch (e) {
|
|
850
815
|
case "sign-auto":
|
|
851
816
|
return {
|
|
@@ -885,7 +850,7 @@ function St(e) {
|
|
|
885
850
|
};
|
|
886
851
|
}
|
|
887
852
|
}
|
|
888
|
-
function
|
|
853
|
+
function Mr(e) {
|
|
889
854
|
var t;
|
|
890
855
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
891
856
|
notation: "engineering"
|
|
@@ -893,17 +858,17 @@ function zr(e) {
|
|
|
893
858
|
notation: "scientific"
|
|
894
859
|
}, e = e.slice(1)), t) {
|
|
895
860
|
var r = e.slice(0, 2);
|
|
896
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
861
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !xt.test(e))
|
|
897
862
|
throw new Error("Malformed concise eng/scientific notation");
|
|
898
863
|
t.minimumIntegerDigits = e.length;
|
|
899
864
|
}
|
|
900
865
|
return t;
|
|
901
866
|
}
|
|
902
|
-
function
|
|
903
|
-
var t = {}, r =
|
|
867
|
+
function ke(e) {
|
|
868
|
+
var t = {}, r = Et(e);
|
|
904
869
|
return r || t;
|
|
905
870
|
}
|
|
906
|
-
function
|
|
871
|
+
function Rr(e) {
|
|
907
872
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
908
873
|
var i = n[r];
|
|
909
874
|
switch (i.stem) {
|
|
@@ -927,7 +892,7 @@ function Wr(e) {
|
|
|
927
892
|
continue;
|
|
928
893
|
case "measure-unit":
|
|
929
894
|
case "unit":
|
|
930
|
-
t.style = "unit", t.unit =
|
|
895
|
+
t.style = "unit", t.unit = Lr(i.options[0]);
|
|
931
896
|
continue;
|
|
932
897
|
case "compact-short":
|
|
933
898
|
case "K":
|
|
@@ -938,13 +903,13 @@ function Wr(e) {
|
|
|
938
903
|
t.notation = "compact", t.compactDisplay = "long";
|
|
939
904
|
continue;
|
|
940
905
|
case "scientific":
|
|
941
|
-
t =
|
|
942
|
-
return
|
|
906
|
+
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
907
|
+
return b(b({}, l), ke(u));
|
|
943
908
|
}, {}));
|
|
944
909
|
continue;
|
|
945
910
|
case "engineering":
|
|
946
|
-
t =
|
|
947
|
-
return
|
|
911
|
+
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
912
|
+
return b(b({}, l), ke(u));
|
|
948
913
|
}, {}));
|
|
949
914
|
continue;
|
|
950
915
|
case "notation-simple":
|
|
@@ -989,9 +954,9 @@ function Wr(e) {
|
|
|
989
954
|
case "integer-width":
|
|
990
955
|
if (i.options.length > 1)
|
|
991
956
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
992
|
-
i.options[0].replace(
|
|
993
|
-
if (
|
|
994
|
-
t.minimumIntegerDigits =
|
|
957
|
+
i.options[0].replace(Cr, function(l, u, h, c, f, x) {
|
|
958
|
+
if (u)
|
|
959
|
+
t.minimumIntegerDigits = h.length;
|
|
995
960
|
else {
|
|
996
961
|
if (c && f)
|
|
997
962
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1002,32 +967,32 @@ function Wr(e) {
|
|
|
1002
967
|
});
|
|
1003
968
|
continue;
|
|
1004
969
|
}
|
|
1005
|
-
if (
|
|
970
|
+
if (xt.test(i.stem)) {
|
|
1006
971
|
t.minimumIntegerDigits = i.stem.length;
|
|
1007
972
|
continue;
|
|
1008
973
|
}
|
|
1009
|
-
if (
|
|
974
|
+
if (je.test(i.stem)) {
|
|
1010
975
|
if (i.options.length > 1)
|
|
1011
976
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1012
|
-
i.stem.replace(
|
|
1013
|
-
return
|
|
977
|
+
i.stem.replace(je, function(l, u, h, c, f, x) {
|
|
978
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && x ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1014
979
|
});
|
|
1015
980
|
var s = i.options[0];
|
|
1016
|
-
s === "w" ? t =
|
|
981
|
+
s === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = b(b({}, t), Ve(s)));
|
|
1017
982
|
continue;
|
|
1018
983
|
}
|
|
1019
|
-
if (
|
|
1020
|
-
t =
|
|
984
|
+
if (gt.test(i.stem)) {
|
|
985
|
+
t = b(b({}, t), Ve(i.stem));
|
|
1021
986
|
continue;
|
|
1022
987
|
}
|
|
1023
|
-
var
|
|
1024
|
-
|
|
1025
|
-
var
|
|
1026
|
-
|
|
988
|
+
var a = Et(i.stem);
|
|
989
|
+
a && (t = b(b({}, t), a));
|
|
990
|
+
var o = Mr(i.stem);
|
|
991
|
+
o && (t = b(b({}, t), o));
|
|
1027
992
|
}
|
|
1028
993
|
return t;
|
|
1029
994
|
}
|
|
1030
|
-
var
|
|
995
|
+
var te = {
|
|
1031
996
|
"001": [
|
|
1032
997
|
"H",
|
|
1033
998
|
"h"
|
|
@@ -2442,22 +2407,22 @@ var re = {
|
|
|
2442
2407
|
"h"
|
|
2443
2408
|
]
|
|
2444
2409
|
};
|
|
2445
|
-
function
|
|
2410
|
+
function $r(e, t) {
|
|
2446
2411
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2447
2412
|
var i = e.charAt(n);
|
|
2448
2413
|
if (i === "j") {
|
|
2449
2414
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2450
2415
|
s++, n++;
|
|
2451
|
-
var
|
|
2452
|
-
for ((
|
|
2453
|
-
r +=
|
|
2454
|
-
for (;
|
|
2455
|
-
r =
|
|
2416
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Ur(t);
|
|
2417
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2418
|
+
r += l;
|
|
2419
|
+
for (; a-- > 0; )
|
|
2420
|
+
r = u + r;
|
|
2456
2421
|
} else i === "J" ? r += "H" : r += i;
|
|
2457
2422
|
}
|
|
2458
2423
|
return r;
|
|
2459
2424
|
}
|
|
2460
|
-
function
|
|
2425
|
+
function Ur(e) {
|
|
2461
2426
|
var t = e.hourCycle;
|
|
2462
2427
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2463
2428
|
e.hourCycles && // @ts-ignore
|
|
@@ -2476,23 +2441,23 @@ function Qr(e) {
|
|
|
2476
2441
|
}
|
|
2477
2442
|
var r = e.language, n;
|
|
2478
2443
|
r !== "root" && (n = e.maximize().region);
|
|
2479
|
-
var i =
|
|
2444
|
+
var i = te[n || ""] || te[r || ""] || te["".concat(r, "-001")] || te["001"];
|
|
2480
2445
|
return i[0];
|
|
2481
2446
|
}
|
|
2482
|
-
var
|
|
2483
|
-
function
|
|
2447
|
+
var ge, Gr = new RegExp("^".concat(bt.source, "*")), Dr = new RegExp("".concat(bt.source, "*$"));
|
|
2448
|
+
function d(e, t) {
|
|
2484
2449
|
return { start: e, end: t };
|
|
2485
2450
|
}
|
|
2486
|
-
var
|
|
2451
|
+
var Fr = !!String.prototype.startsWith && "_a".startsWith("a", 1), jr = !!String.fromCodePoint, Vr = !!Object.fromEntries, kr = !!String.prototype.codePointAt, Xr = !!String.prototype.trimStart, zr = !!String.prototype.trimEnd, Wr = !!Number.isSafeInteger, Zr = Wr ? Number.isSafeInteger : function(e) {
|
|
2487
2452
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2488
|
-
},
|
|
2453
|
+
}, Te = !0;
|
|
2489
2454
|
try {
|
|
2490
|
-
var
|
|
2491
|
-
|
|
2492
|
-
} catch
|
|
2493
|
-
|
|
2455
|
+
var Qr = _t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2456
|
+
Te = ((ge = Qr.exec("a")) === null || ge === void 0 ? void 0 : ge[0]) === "a";
|
|
2457
|
+
} catch {
|
|
2458
|
+
Te = !1;
|
|
2494
2459
|
}
|
|
2495
|
-
var
|
|
2460
|
+
var Xe = Fr ? (
|
|
2496
2461
|
// Native
|
|
2497
2462
|
function(t, r, n) {
|
|
2498
2463
|
return t.startsWith(r, n);
|
|
@@ -2502,31 +2467,31 @@ var Ye = Yr ? (
|
|
|
2502
2467
|
function(t, r, n) {
|
|
2503
2468
|
return t.slice(n, n + r.length) === r;
|
|
2504
2469
|
}
|
|
2505
|
-
),
|
|
2470
|
+
), Be = jr ? String.fromCodePoint : (
|
|
2506
2471
|
// IE11
|
|
2507
2472
|
function() {
|
|
2508
2473
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2509
2474
|
t[r] = arguments[r];
|
|
2510
|
-
for (var n = "", i = t.length, s = 0,
|
|
2511
|
-
if (
|
|
2512
|
-
throw RangeError(
|
|
2513
|
-
n +=
|
|
2475
|
+
for (var n = "", i = t.length, s = 0, a; i > s; ) {
|
|
2476
|
+
if (a = t[s++], a > 1114111)
|
|
2477
|
+
throw RangeError(a + " is not a valid code point");
|
|
2478
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2514
2479
|
}
|
|
2515
2480
|
return n;
|
|
2516
2481
|
}
|
|
2517
|
-
),
|
|
2482
|
+
), ze = (
|
|
2518
2483
|
// native
|
|
2519
|
-
|
|
2484
|
+
Vr ? Object.fromEntries : (
|
|
2520
2485
|
// Ponyfill
|
|
2521
2486
|
function(t) {
|
|
2522
2487
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2523
|
-
var s = i[n],
|
|
2524
|
-
r[
|
|
2488
|
+
var s = i[n], a = s[0], o = s[1];
|
|
2489
|
+
r[a] = o;
|
|
2525
2490
|
}
|
|
2526
2491
|
return r;
|
|
2527
2492
|
}
|
|
2528
2493
|
)
|
|
2529
|
-
),
|
|
2494
|
+
), yt = kr ? (
|
|
2530
2495
|
// Native
|
|
2531
2496
|
function(t, r) {
|
|
2532
2497
|
return t.codePointAt(r);
|
|
@@ -2540,7 +2505,7 @@ var Ye = Yr ? (
|
|
|
2540
2505
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2541
2506
|
}
|
|
2542
2507
|
}
|
|
2543
|
-
),
|
|
2508
|
+
), Jr = Xr ? (
|
|
2544
2509
|
// Native
|
|
2545
2510
|
function(t) {
|
|
2546
2511
|
return t.trimStart();
|
|
@@ -2548,9 +2513,9 @@ var Ye = Yr ? (
|
|
|
2548
2513
|
) : (
|
|
2549
2514
|
// Ponyfill
|
|
2550
2515
|
function(t) {
|
|
2551
|
-
return t.replace(
|
|
2516
|
+
return t.replace(Gr, "");
|
|
2552
2517
|
}
|
|
2553
|
-
),
|
|
2518
|
+
), qr = zr ? (
|
|
2554
2519
|
// Native
|
|
2555
2520
|
function(t) {
|
|
2556
2521
|
return t.trimEnd();
|
|
@@ -2558,32 +2523,32 @@ var Ye = Yr ? (
|
|
|
2558
2523
|
) : (
|
|
2559
2524
|
// Ponyfill
|
|
2560
2525
|
function(t) {
|
|
2561
|
-
return t.replace(
|
|
2526
|
+
return t.replace(Dr, "");
|
|
2562
2527
|
}
|
|
2563
2528
|
);
|
|
2564
|
-
function
|
|
2529
|
+
function _t(e, t) {
|
|
2565
2530
|
return new RegExp(e, t);
|
|
2566
2531
|
}
|
|
2567
|
-
var
|
|
2568
|
-
if (
|
|
2569
|
-
var
|
|
2570
|
-
|
|
2532
|
+
var Se;
|
|
2533
|
+
if (Te) {
|
|
2534
|
+
var We = _t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2535
|
+
Se = function(t, r) {
|
|
2571
2536
|
var n;
|
|
2572
|
-
|
|
2573
|
-
var i =
|
|
2537
|
+
We.lastIndex = r;
|
|
2538
|
+
var i = We.exec(t);
|
|
2574
2539
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2575
2540
|
};
|
|
2576
2541
|
} else
|
|
2577
|
-
|
|
2542
|
+
Se = function(t, r) {
|
|
2578
2543
|
for (var n = []; ; ) {
|
|
2579
|
-
var i =
|
|
2580
|
-
if (i === void 0 ||
|
|
2544
|
+
var i = yt(t, r);
|
|
2545
|
+
if (i === void 0 || vt(i) || tn(i))
|
|
2581
2546
|
break;
|
|
2582
2547
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2583
2548
|
}
|
|
2584
|
-
return
|
|
2549
|
+
return Be.apply(void 0, n);
|
|
2585
2550
|
};
|
|
2586
|
-
var
|
|
2551
|
+
var Yr = (
|
|
2587
2552
|
/** @class */
|
|
2588
2553
|
function() {
|
|
2589
2554
|
function e(t, r) {
|
|
@@ -2597,33 +2562,33 @@ var ln = (
|
|
|
2597
2562
|
for (var i = []; !this.isEOF(); ) {
|
|
2598
2563
|
var s = this.char();
|
|
2599
2564
|
if (s === 123) {
|
|
2600
|
-
var
|
|
2601
|
-
if (
|
|
2602
|
-
return
|
|
2603
|
-
i.push(
|
|
2565
|
+
var a = this.parseArgument(t, n);
|
|
2566
|
+
if (a.err)
|
|
2567
|
+
return a;
|
|
2568
|
+
i.push(a.val);
|
|
2604
2569
|
} else {
|
|
2605
2570
|
if (s === 125 && t > 0)
|
|
2606
2571
|
break;
|
|
2607
2572
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2608
|
-
var
|
|
2573
|
+
var o = this.clonePosition();
|
|
2609
2574
|
this.bump(), i.push({
|
|
2610
2575
|
type: E.pound,
|
|
2611
|
-
location:
|
|
2576
|
+
location: d(o, this.clonePosition())
|
|
2612
2577
|
});
|
|
2613
2578
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2614
2579
|
if (n)
|
|
2615
2580
|
break;
|
|
2616
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2617
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2618
|
-
var
|
|
2619
|
-
if (
|
|
2620
|
-
return
|
|
2621
|
-
i.push(
|
|
2581
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
2582
|
+
} else if (s === 60 && !this.ignoreTag && Ae(this.peek() || 0)) {
|
|
2583
|
+
var a = this.parseTag(t, r);
|
|
2584
|
+
if (a.err)
|
|
2585
|
+
return a;
|
|
2586
|
+
i.push(a.val);
|
|
2622
2587
|
} else {
|
|
2623
|
-
var
|
|
2624
|
-
if (
|
|
2625
|
-
return
|
|
2626
|
-
i.push(
|
|
2588
|
+
var a = this.parseLiteral(t, r);
|
|
2589
|
+
if (a.err)
|
|
2590
|
+
return a;
|
|
2591
|
+
i.push(a.val);
|
|
2627
2592
|
}
|
|
2628
2593
|
}
|
|
2629
2594
|
}
|
|
@@ -2637,7 +2602,7 @@ var ln = (
|
|
|
2637
2602
|
val: {
|
|
2638
2603
|
type: E.literal,
|
|
2639
2604
|
value: "<".concat(i, "/>"),
|
|
2640
|
-
location:
|
|
2605
|
+
location: d(n, this.clonePosition())
|
|
2641
2606
|
},
|
|
2642
2607
|
err: null
|
|
2643
2608
|
};
|
|
@@ -2645,27 +2610,27 @@ var ln = (
|
|
|
2645
2610
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2646
2611
|
if (s.err)
|
|
2647
2612
|
return s;
|
|
2648
|
-
var
|
|
2613
|
+
var a = s.val, o = this.clonePosition();
|
|
2649
2614
|
if (this.bumpIf("</")) {
|
|
2650
|
-
if (this.isEOF() || !
|
|
2651
|
-
return this.error(m.INVALID_TAG,
|
|
2652
|
-
var
|
|
2653
|
-
return i !==
|
|
2615
|
+
if (this.isEOF() || !Ae(this.char()))
|
|
2616
|
+
return this.error(m.INVALID_TAG, d(o, this.clonePosition()));
|
|
2617
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2618
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, d(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2654
2619
|
val: {
|
|
2655
2620
|
type: E.tag,
|
|
2656
2621
|
value: i,
|
|
2657
|
-
children:
|
|
2658
|
-
location:
|
|
2622
|
+
children: a,
|
|
2623
|
+
location: d(n, this.clonePosition())
|
|
2659
2624
|
},
|
|
2660
2625
|
err: null
|
|
2661
|
-
} : this.error(m.INVALID_TAG,
|
|
2626
|
+
} : this.error(m.INVALID_TAG, d(o, this.clonePosition())));
|
|
2662
2627
|
} else
|
|
2663
|
-
return this.error(m.UNCLOSED_TAG,
|
|
2628
|
+
return this.error(m.UNCLOSED_TAG, d(n, this.clonePosition()));
|
|
2664
2629
|
} else
|
|
2665
|
-
return this.error(m.INVALID_TAG,
|
|
2630
|
+
return this.error(m.INVALID_TAG, d(n, this.clonePosition()));
|
|
2666
2631
|
}, e.prototype.parseTagName = function() {
|
|
2667
2632
|
var t = this.offset();
|
|
2668
|
-
for (this.bump(); !this.isEOF() &&
|
|
2633
|
+
for (this.bump(); !this.isEOF() && en(this.char()); )
|
|
2669
2634
|
this.bump();
|
|
2670
2635
|
return this.message.slice(t, this.offset());
|
|
2671
2636
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2675,26 +2640,26 @@ var ln = (
|
|
|
2675
2640
|
i += s;
|
|
2676
2641
|
continue;
|
|
2677
2642
|
}
|
|
2678
|
-
var
|
|
2679
|
-
if (o) {
|
|
2680
|
-
i += o;
|
|
2681
|
-
continue;
|
|
2682
|
-
}
|
|
2683
|
-
var a = this.tryParseLeftAngleBracket();
|
|
2643
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2684
2644
|
if (a) {
|
|
2685
2645
|
i += a;
|
|
2686
2646
|
continue;
|
|
2687
2647
|
}
|
|
2648
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2649
|
+
if (o) {
|
|
2650
|
+
i += o;
|
|
2651
|
+
continue;
|
|
2652
|
+
}
|
|
2688
2653
|
break;
|
|
2689
2654
|
}
|
|
2690
|
-
var
|
|
2655
|
+
var l = d(n, this.clonePosition());
|
|
2691
2656
|
return {
|
|
2692
|
-
val: { type: E.literal, value: i, location:
|
|
2657
|
+
val: { type: E.literal, value: i, location: l },
|
|
2693
2658
|
err: null
|
|
2694
2659
|
};
|
|
2695
2660
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2696
2661
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2697
|
-
!
|
|
2662
|
+
!Kr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2698
2663
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2699
2664
|
if (this.isEOF() || this.char() !== 39)
|
|
2700
2665
|
return null;
|
|
@@ -2728,23 +2693,23 @@ var ln = (
|
|
|
2728
2693
|
r.push(n);
|
|
2729
2694
|
this.bump();
|
|
2730
2695
|
}
|
|
2731
|
-
return
|
|
2696
|
+
return Be.apply(void 0, r);
|
|
2732
2697
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2733
2698
|
if (this.isEOF())
|
|
2734
2699
|
return null;
|
|
2735
2700
|
var n = this.char();
|
|
2736
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2701
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Be(n));
|
|
2737
2702
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2738
2703
|
var n = this.clonePosition();
|
|
2739
2704
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2740
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2705
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
2741
2706
|
if (this.char() === 125)
|
|
2742
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
|
2707
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
|
2743
2708
|
var i = this.parseIdentifierIfPossible().value;
|
|
2744
2709
|
if (!i)
|
|
2745
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2710
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
2746
2711
|
if (this.bumpSpace(), this.isEOF())
|
|
2747
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2712
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
2748
2713
|
switch (this.char()) {
|
|
2749
2714
|
case 125:
|
|
2750
2715
|
return this.bump(), {
|
|
@@ -2752,49 +2717,49 @@ var ln = (
|
|
|
2752
2717
|
type: E.argument,
|
|
2753
2718
|
// value does not include the opening and closing braces.
|
|
2754
2719
|
value: i,
|
|
2755
|
-
location:
|
|
2720
|
+
location: d(n, this.clonePosition())
|
|
2756
2721
|
},
|
|
2757
2722
|
err: null
|
|
2758
2723
|
};
|
|
2759
2724
|
case 44:
|
|
2760
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2725
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2761
2726
|
default:
|
|
2762
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2727
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
2763
2728
|
}
|
|
2764
2729
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2765
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2730
|
+
var t = this.clonePosition(), r = this.offset(), n = Se(this.message, r), i = r + n.length;
|
|
2766
2731
|
this.bumpTo(i);
|
|
2767
|
-
var s = this.clonePosition(),
|
|
2768
|
-
return { value: n, location:
|
|
2732
|
+
var s = this.clonePosition(), a = d(t, s);
|
|
2733
|
+
return { value: n, location: a };
|
|
2769
2734
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2770
|
-
var s,
|
|
2771
|
-
switch (
|
|
2735
|
+
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2736
|
+
switch (o) {
|
|
2772
2737
|
case "":
|
|
2773
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
|
2738
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, d(a, l));
|
|
2774
2739
|
case "number":
|
|
2775
2740
|
case "date":
|
|
2776
2741
|
case "time": {
|
|
2777
2742
|
this.bumpSpace();
|
|
2778
|
-
var
|
|
2743
|
+
var u = null;
|
|
2779
2744
|
if (this.bumpIf(",")) {
|
|
2780
2745
|
this.bumpSpace();
|
|
2781
|
-
var
|
|
2746
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2782
2747
|
if (c.err)
|
|
2783
2748
|
return c;
|
|
2784
|
-
var f =
|
|
2749
|
+
var f = qr(c.val);
|
|
2785
2750
|
if (f.length === 0)
|
|
2786
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
|
2787
|
-
var x =
|
|
2788
|
-
|
|
2751
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
2752
|
+
var x = d(h, this.clonePosition());
|
|
2753
|
+
u = { style: f, styleLocation: x };
|
|
2789
2754
|
}
|
|
2790
2755
|
var g = this.tryParseArgumentClose(i);
|
|
2791
2756
|
if (g.err)
|
|
2792
2757
|
return g;
|
|
2793
|
-
var y =
|
|
2794
|
-
if (
|
|
2795
|
-
var H =
|
|
2796
|
-
if (
|
|
2797
|
-
var c = this.parseNumberSkeletonFromString(H,
|
|
2758
|
+
var y = d(i, this.clonePosition());
|
|
2759
|
+
if (u && Xe(u?.style, "::", 0)) {
|
|
2760
|
+
var H = Jr(u.style.slice(2));
|
|
2761
|
+
if (o === "number") {
|
|
2762
|
+
var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
2798
2763
|
return c.err ? c : {
|
|
2799
2764
|
val: { type: E.number, value: n, location: y, style: c.val },
|
|
2800
2765
|
err: null
|
|
@@ -2802,26 +2767,26 @@ var ln = (
|
|
|
2802
2767
|
} else {
|
|
2803
2768
|
if (H.length === 0)
|
|
2804
2769
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
|
2805
|
-
var
|
|
2806
|
-
this.locale && (
|
|
2770
|
+
var B = H;
|
|
2771
|
+
this.locale && (B = $r(H, this.locale));
|
|
2807
2772
|
var f = {
|
|
2808
|
-
type:
|
|
2809
|
-
pattern:
|
|
2810
|
-
location:
|
|
2811
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2812
|
-
},
|
|
2773
|
+
type: F.dateTime,
|
|
2774
|
+
pattern: B,
|
|
2775
|
+
location: u.styleLocation,
|
|
2776
|
+
parsedOptions: this.shouldParseSkeletons ? Nr(B) : {}
|
|
2777
|
+
}, S = o === "date" ? E.date : E.time;
|
|
2813
2778
|
return {
|
|
2814
|
-
val: { type:
|
|
2779
|
+
val: { type: S, value: n, location: y, style: f },
|
|
2815
2780
|
err: null
|
|
2816
2781
|
};
|
|
2817
2782
|
}
|
|
2818
2783
|
}
|
|
2819
2784
|
return {
|
|
2820
2785
|
val: {
|
|
2821
|
-
type:
|
|
2786
|
+
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
|
2822
2787
|
value: n,
|
|
2823
2788
|
location: y,
|
|
2824
|
-
style: (s =
|
|
2789
|
+
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2825
2790
|
},
|
|
2826
2791
|
err: null
|
|
2827
2792
|
};
|
|
@@ -2831,50 +2796,50 @@ var ln = (
|
|
|
2831
2796
|
case "select": {
|
|
2832
2797
|
var v = this.clonePosition();
|
|
2833
2798
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2834
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2799
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(v, b({}, v)));
|
|
2835
2800
|
this.bumpSpace();
|
|
2836
|
-
var
|
|
2837
|
-
if (
|
|
2801
|
+
var O = this.parseIdentifierIfPossible(), P = 0;
|
|
2802
|
+
if (o !== "select" && O.value === "offset") {
|
|
2838
2803
|
if (!this.bumpIf(":"))
|
|
2839
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2804
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
2840
2805
|
this.bumpSpace();
|
|
2841
2806
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2842
2807
|
if (c.err)
|
|
2843
2808
|
return c;
|
|
2844
|
-
this.bumpSpace(),
|
|
2809
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), P = c.val;
|
|
2845
2810
|
}
|
|
2846
|
-
var
|
|
2847
|
-
if (
|
|
2848
|
-
return
|
|
2811
|
+
var M = this.tryParsePluralOrSelectOptions(t, o, r, O);
|
|
2812
|
+
if (M.err)
|
|
2813
|
+
return M;
|
|
2849
2814
|
var g = this.tryParseArgumentClose(i);
|
|
2850
2815
|
if (g.err)
|
|
2851
2816
|
return g;
|
|
2852
|
-
var
|
|
2853
|
-
return
|
|
2817
|
+
var ee = d(i, this.clonePosition());
|
|
2818
|
+
return o === "select" ? {
|
|
2854
2819
|
val: {
|
|
2855
2820
|
type: E.select,
|
|
2856
2821
|
value: n,
|
|
2857
|
-
options:
|
|
2858
|
-
location:
|
|
2822
|
+
options: ze(M.val),
|
|
2823
|
+
location: ee
|
|
2859
2824
|
},
|
|
2860
2825
|
err: null
|
|
2861
2826
|
} : {
|
|
2862
2827
|
val: {
|
|
2863
2828
|
type: E.plural,
|
|
2864
2829
|
value: n,
|
|
2865
|
-
options:
|
|
2866
|
-
offset:
|
|
2867
|
-
pluralType:
|
|
2868
|
-
location:
|
|
2830
|
+
options: ze(M.val),
|
|
2831
|
+
offset: P,
|
|
2832
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2833
|
+
location: ee
|
|
2869
2834
|
},
|
|
2870
2835
|
err: null
|
|
2871
2836
|
};
|
|
2872
2837
|
}
|
|
2873
2838
|
default:
|
|
2874
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
|
2839
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, d(a, l));
|
|
2875
2840
|
}
|
|
2876
2841
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2877
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2842
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2878
2843
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2879
2844
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2880
2845
|
var n = this.char();
|
|
@@ -2883,7 +2848,7 @@ var ln = (
|
|
|
2883
2848
|
this.bump();
|
|
2884
2849
|
var i = this.clonePosition();
|
|
2885
2850
|
if (!this.bumpUntil("'"))
|
|
2886
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2851
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
|
2887
2852
|
this.bump();
|
|
2888
2853
|
break;
|
|
2889
2854
|
}
|
|
@@ -2913,64 +2878,64 @@ var ln = (
|
|
|
2913
2878
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2914
2879
|
var n = [];
|
|
2915
2880
|
try {
|
|
2916
|
-
n =
|
|
2917
|
-
} catch
|
|
2881
|
+
n = wr(t);
|
|
2882
|
+
} catch {
|
|
2918
2883
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2919
2884
|
}
|
|
2920
2885
|
return {
|
|
2921
2886
|
val: {
|
|
2922
|
-
type:
|
|
2887
|
+
type: F.number,
|
|
2923
2888
|
tokens: n,
|
|
2924
2889
|
location: r,
|
|
2925
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2890
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(n) : {}
|
|
2926
2891
|
},
|
|
2927
2892
|
err: null
|
|
2928
2893
|
};
|
|
2929
2894
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2930
|
-
for (var s,
|
|
2931
|
-
if (
|
|
2895
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
2896
|
+
if (u.length === 0) {
|
|
2932
2897
|
var c = this.clonePosition();
|
|
2933
2898
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2934
2899
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2935
2900
|
if (f.err)
|
|
2936
2901
|
return f;
|
|
2937
|
-
|
|
2902
|
+
h = d(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
2938
2903
|
} else
|
|
2939
2904
|
break;
|
|
2940
2905
|
}
|
|
2941
|
-
if (
|
|
2942
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2943
|
-
|
|
2906
|
+
if (l.has(u))
|
|
2907
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2908
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
2944
2909
|
var x = this.clonePosition();
|
|
2945
2910
|
if (!this.bumpIf("{"))
|
|
2946
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2911
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
2947
2912
|
var g = this.parseMessage(t + 1, r, n);
|
|
2948
2913
|
if (g.err)
|
|
2949
2914
|
return g;
|
|
2950
2915
|
var y = this.tryParseArgumentClose(x);
|
|
2951
2916
|
if (y.err)
|
|
2952
2917
|
return y;
|
|
2953
|
-
|
|
2954
|
-
|
|
2918
|
+
o.push([
|
|
2919
|
+
u,
|
|
2955
2920
|
{
|
|
2956
2921
|
value: g.val,
|
|
2957
|
-
location:
|
|
2922
|
+
location: d(x, this.clonePosition())
|
|
2958
2923
|
}
|
|
2959
|
-
]),
|
|
2924
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
2960
2925
|
}
|
|
2961
|
-
return
|
|
2926
|
+
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
2962
2927
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2963
2928
|
var n = 1, i = this.clonePosition();
|
|
2964
2929
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2965
|
-
for (var s = !1,
|
|
2966
|
-
var
|
|
2967
|
-
if (
|
|
2968
|
-
s = !0,
|
|
2930
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
2931
|
+
var o = this.char();
|
|
2932
|
+
if (o >= 48 && o <= 57)
|
|
2933
|
+
s = !0, a = a * 10 + (o - 48), this.bump();
|
|
2969
2934
|
else
|
|
2970
2935
|
break;
|
|
2971
2936
|
}
|
|
2972
|
-
var
|
|
2973
|
-
return s ? (
|
|
2937
|
+
var l = d(i, this.clonePosition());
|
|
2938
|
+
return s ? (a *= n, Zr(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2974
2939
|
}, e.prototype.offset = function() {
|
|
2975
2940
|
return this.position.offset;
|
|
2976
2941
|
}, e.prototype.isEOF = function() {
|
|
@@ -2985,7 +2950,7 @@ var ln = (
|
|
|
2985
2950
|
var t = this.position.offset;
|
|
2986
2951
|
if (t >= this.message.length)
|
|
2987
2952
|
throw Error("out of bound");
|
|
2988
|
-
var r =
|
|
2953
|
+
var r = yt(this.message, t);
|
|
2989
2954
|
if (r === void 0)
|
|
2990
2955
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2991
2956
|
return r;
|
|
@@ -3004,7 +2969,7 @@ var ln = (
|
|
|
3004
2969
|
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);
|
|
3005
2970
|
}
|
|
3006
2971
|
}, e.prototype.bumpIf = function(t) {
|
|
3007
|
-
if (
|
|
2972
|
+
if (Xe(this.message, t, this.offset())) {
|
|
3008
2973
|
for (var r = 0; r < t.length; r++)
|
|
3009
2974
|
this.bump();
|
|
3010
2975
|
return !0;
|
|
@@ -3026,56 +2991,56 @@ var ln = (
|
|
|
3026
2991
|
break;
|
|
3027
2992
|
}
|
|
3028
2993
|
}, e.prototype.bumpSpace = function() {
|
|
3029
|
-
for (; !this.isEOF() &&
|
|
2994
|
+
for (; !this.isEOF() && vt(this.char()); )
|
|
3030
2995
|
this.bump();
|
|
3031
2996
|
}, e.prototype.peek = function() {
|
|
3032
2997
|
if (this.isEOF())
|
|
3033
2998
|
return null;
|
|
3034
2999
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3035
|
-
return n
|
|
3000
|
+
return n ?? null;
|
|
3036
3001
|
}, e;
|
|
3037
3002
|
}()
|
|
3038
3003
|
);
|
|
3039
|
-
function
|
|
3004
|
+
function Ae(e) {
|
|
3040
3005
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3041
3006
|
}
|
|
3042
|
-
function
|
|
3043
|
-
return
|
|
3007
|
+
function Kr(e) {
|
|
3008
|
+
return Ae(e) || e === 47;
|
|
3044
3009
|
}
|
|
3045
|
-
function
|
|
3010
|
+
function en(e) {
|
|
3046
3011
|
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;
|
|
3047
3012
|
}
|
|
3048
|
-
function
|
|
3013
|
+
function vt(e) {
|
|
3049
3014
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3050
3015
|
}
|
|
3051
|
-
function
|
|
3016
|
+
function tn(e) {
|
|
3052
3017
|
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;
|
|
3053
3018
|
}
|
|
3054
|
-
function
|
|
3019
|
+
function Pe(e) {
|
|
3055
3020
|
e.forEach(function(t) {
|
|
3056
|
-
if (delete t.location,
|
|
3021
|
+
if (delete t.location, ct(t) || pt(t))
|
|
3057
3022
|
for (var r in t.options)
|
|
3058
|
-
delete t.options[r].location,
|
|
3059
|
-
else
|
|
3023
|
+
delete t.options[r].location, Pe(t.options[r].value);
|
|
3024
|
+
else ht(t) && dt(t.style) || (lt(t) || ft(t)) && He(t.style) ? delete t.style.location : mt(t) && Pe(t.children);
|
|
3060
3025
|
});
|
|
3061
3026
|
}
|
|
3062
|
-
function
|
|
3063
|
-
t === void 0 && (t = {}), t =
|
|
3064
|
-
var r = new
|
|
3027
|
+
function rn(e, t) {
|
|
3028
|
+
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3029
|
+
var r = new Yr(e, t).parse();
|
|
3065
3030
|
if (r.err) {
|
|
3066
3031
|
var n = SyntaxError(m[r.err.kind]);
|
|
3067
3032
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3068
3033
|
}
|
|
3069
|
-
return t
|
|
3034
|
+
return t?.captureLocation || Pe(r.val), r.val;
|
|
3070
3035
|
}
|
|
3071
|
-
var
|
|
3036
|
+
var j;
|
|
3072
3037
|
(function(e) {
|
|
3073
3038
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3074
|
-
})(
|
|
3075
|
-
var
|
|
3039
|
+
})(j || (j = {}));
|
|
3040
|
+
var le = (
|
|
3076
3041
|
/** @class */
|
|
3077
3042
|
function(e) {
|
|
3078
|
-
|
|
3043
|
+
he(t, e);
|
|
3079
3044
|
function t(r, n, i) {
|
|
3080
3045
|
var s = e.call(this, r) || this;
|
|
3081
3046
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3084,155 +3049,155 @@ var fe = (
|
|
|
3084
3049
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3085
3050
|
}, t;
|
|
3086
3051
|
}(Error)
|
|
3087
|
-
),
|
|
3052
|
+
), Ze = (
|
|
3088
3053
|
/** @class */
|
|
3089
3054
|
function(e) {
|
|
3090
|
-
|
|
3055
|
+
he(t, e);
|
|
3091
3056
|
function t(r, n, i, s) {
|
|
3092
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3057
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, s) || this;
|
|
3093
3058
|
}
|
|
3094
3059
|
return t;
|
|
3095
|
-
}(
|
|
3096
|
-
),
|
|
3060
|
+
}(le)
|
|
3061
|
+
), nn = (
|
|
3097
3062
|
/** @class */
|
|
3098
3063
|
function(e) {
|
|
3099
|
-
|
|
3064
|
+
he(t, e);
|
|
3100
3065
|
function t(r, n, i) {
|
|
3101
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3066
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3102
3067
|
}
|
|
3103
3068
|
return t;
|
|
3104
|
-
}(
|
|
3105
|
-
),
|
|
3069
|
+
}(le)
|
|
3070
|
+
), sn = (
|
|
3106
3071
|
/** @class */
|
|
3107
3072
|
function(e) {
|
|
3108
|
-
|
|
3073
|
+
he(t, e);
|
|
3109
3074
|
function t(r, n) {
|
|
3110
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3075
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3111
3076
|
}
|
|
3112
3077
|
return t;
|
|
3113
|
-
}(
|
|
3078
|
+
}(le)
|
|
3114
3079
|
), _;
|
|
3115
3080
|
(function(e) {
|
|
3116
3081
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3117
3082
|
})(_ || (_ = {}));
|
|
3118
|
-
function
|
|
3083
|
+
function on(e) {
|
|
3119
3084
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3120
3085
|
var n = t[t.length - 1];
|
|
3121
3086
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3122
3087
|
}, []);
|
|
3123
3088
|
}
|
|
3124
|
-
function
|
|
3089
|
+
function an(e) {
|
|
3125
3090
|
return typeof e == "function";
|
|
3126
3091
|
}
|
|
3127
|
-
function
|
|
3128
|
-
if (e.length === 1 &&
|
|
3092
|
+
function ie(e, t, r, n, i, s, a) {
|
|
3093
|
+
if (e.length === 1 && Fe(e[0]))
|
|
3129
3094
|
return [
|
|
3130
3095
|
{
|
|
3131
3096
|
type: _.literal,
|
|
3132
3097
|
value: e[0].value
|
|
3133
3098
|
}
|
|
3134
3099
|
];
|
|
3135
|
-
for (var
|
|
3136
|
-
var
|
|
3137
|
-
if (
|
|
3138
|
-
|
|
3100
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3101
|
+
var h = u[l];
|
|
3102
|
+
if (Fe(h)) {
|
|
3103
|
+
o.push({
|
|
3139
3104
|
type: _.literal,
|
|
3140
|
-
value:
|
|
3105
|
+
value: h.value
|
|
3141
3106
|
});
|
|
3142
3107
|
continue;
|
|
3143
3108
|
}
|
|
3144
|
-
if (
|
|
3145
|
-
typeof s == "number" &&
|
|
3109
|
+
if (Pr(h)) {
|
|
3110
|
+
typeof s == "number" && o.push({
|
|
3146
3111
|
type: _.literal,
|
|
3147
3112
|
value: r.getNumberFormat(t).format(s)
|
|
3148
3113
|
});
|
|
3149
3114
|
continue;
|
|
3150
3115
|
}
|
|
3151
|
-
var c =
|
|
3116
|
+
var c = h.value;
|
|
3152
3117
|
if (!(i && c in i))
|
|
3153
|
-
throw new
|
|
3118
|
+
throw new sn(c, a);
|
|
3154
3119
|
var f = i[c];
|
|
3155
|
-
if (
|
|
3156
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3120
|
+
if (Ar(h)) {
|
|
3121
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
|
3157
3122
|
type: typeof f == "string" ? _.literal : _.object,
|
|
3158
3123
|
value: f
|
|
3159
3124
|
});
|
|
3160
3125
|
continue;
|
|
3161
3126
|
}
|
|
3162
|
-
if (
|
|
3163
|
-
var x = typeof
|
|
3164
|
-
|
|
3127
|
+
if (lt(h)) {
|
|
3128
|
+
var x = typeof h.style == "string" ? n.date[h.style] : He(h.style) ? h.style.parsedOptions : void 0;
|
|
3129
|
+
o.push({
|
|
3165
3130
|
type: _.literal,
|
|
3166
3131
|
value: r.getDateTimeFormat(t, x).format(f)
|
|
3167
3132
|
});
|
|
3168
3133
|
continue;
|
|
3169
3134
|
}
|
|
3170
|
-
if (
|
|
3171
|
-
var x = typeof
|
|
3172
|
-
|
|
3135
|
+
if (ft(h)) {
|
|
3136
|
+
var x = typeof h.style == "string" ? n.time[h.style] : He(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3137
|
+
o.push({
|
|
3173
3138
|
type: _.literal,
|
|
3174
3139
|
value: r.getDateTimeFormat(t, x).format(f)
|
|
3175
3140
|
});
|
|
3176
3141
|
continue;
|
|
3177
3142
|
}
|
|
3178
|
-
if (
|
|
3179
|
-
var x = typeof
|
|
3180
|
-
x && x.scale && (f = f * (x.scale || 1)),
|
|
3143
|
+
if (ht(h)) {
|
|
3144
|
+
var x = typeof h.style == "string" ? n.number[h.style] : dt(h.style) ? h.style.parsedOptions : void 0;
|
|
3145
|
+
x && x.scale && (f = f * (x.scale || 1)), o.push({
|
|
3181
3146
|
type: _.literal,
|
|
3182
3147
|
value: r.getNumberFormat(t, x).format(f)
|
|
3183
3148
|
});
|
|
3184
3149
|
continue;
|
|
3185
3150
|
}
|
|
3186
|
-
if (
|
|
3187
|
-
var g =
|
|
3188
|
-
if (!
|
|
3189
|
-
throw new
|
|
3190
|
-
var
|
|
3191
|
-
return
|
|
3151
|
+
if (mt(h)) {
|
|
3152
|
+
var g = h.children, y = h.value, H = i[y];
|
|
3153
|
+
if (!an(H))
|
|
3154
|
+
throw new nn(y, "function", a);
|
|
3155
|
+
var B = ie(g, t, r, n, i, s), S = H(B.map(function(P) {
|
|
3156
|
+
return P.value;
|
|
3192
3157
|
}));
|
|
3193
|
-
Array.isArray(
|
|
3158
|
+
Array.isArray(S) || (S = [S]), o.push.apply(o, S.map(function(P) {
|
|
3194
3159
|
return {
|
|
3195
|
-
type: typeof
|
|
3196
|
-
value:
|
|
3160
|
+
type: typeof P == "string" ? _.literal : _.object,
|
|
3161
|
+
value: P
|
|
3197
3162
|
};
|
|
3198
3163
|
}));
|
|
3199
3164
|
}
|
|
3200
|
-
if (
|
|
3201
|
-
var v =
|
|
3165
|
+
if (ct(h)) {
|
|
3166
|
+
var v = h.options[f] || h.options.other;
|
|
3202
3167
|
if (!v)
|
|
3203
|
-
throw new
|
|
3204
|
-
|
|
3168
|
+
throw new Ze(h.value, f, Object.keys(h.options), a);
|
|
3169
|
+
o.push.apply(o, ie(v.value, t, r, n, i));
|
|
3205
3170
|
continue;
|
|
3206
3171
|
}
|
|
3207
|
-
if (
|
|
3208
|
-
var v =
|
|
3172
|
+
if (pt(h)) {
|
|
3173
|
+
var v = h.options["=".concat(f)];
|
|
3209
3174
|
if (!v) {
|
|
3210
3175
|
if (!Intl.PluralRules)
|
|
3211
|
-
throw new
|
|
3176
|
+
throw new le(`Intl.PluralRules is not available in this environment.
|
|
3212
3177
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3213
|
-
`,
|
|
3214
|
-
var
|
|
3215
|
-
v =
|
|
3178
|
+
`, j.MISSING_INTL_API, a);
|
|
3179
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3180
|
+
v = h.options[O] || h.options.other;
|
|
3216
3181
|
}
|
|
3217
3182
|
if (!v)
|
|
3218
|
-
throw new
|
|
3219
|
-
|
|
3183
|
+
throw new Ze(h.value, f, Object.keys(h.options), a);
|
|
3184
|
+
o.push.apply(o, ie(v.value, t, r, n, i, f - (h.offset || 0)));
|
|
3220
3185
|
continue;
|
|
3221
3186
|
}
|
|
3222
3187
|
}
|
|
3223
|
-
return
|
|
3188
|
+
return on(o);
|
|
3224
3189
|
}
|
|
3225
|
-
function
|
|
3226
|
-
return t ?
|
|
3227
|
-
return r[n] =
|
|
3190
|
+
function un(e, t) {
|
|
3191
|
+
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3192
|
+
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
|
3228
3193
|
}, {})) : e;
|
|
3229
3194
|
}
|
|
3230
|
-
function
|
|
3195
|
+
function hn(e, t) {
|
|
3231
3196
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3232
|
-
return r[n] =
|
|
3233
|
-
},
|
|
3197
|
+
return r[n] = un(e[n], t[n]), r;
|
|
3198
|
+
}, b({}, e)) : e;
|
|
3234
3199
|
}
|
|
3235
|
-
function
|
|
3200
|
+
function xe(e) {
|
|
3236
3201
|
return {
|
|
3237
3202
|
create: function() {
|
|
3238
3203
|
return {
|
|
@@ -3246,39 +3211,39 @@ function ye(e) {
|
|
|
3246
3211
|
}
|
|
3247
3212
|
};
|
|
3248
3213
|
}
|
|
3249
|
-
function
|
|
3214
|
+
function ln(e) {
|
|
3250
3215
|
return e === void 0 && (e = {
|
|
3251
3216
|
number: {},
|
|
3252
3217
|
dateTime: {},
|
|
3253
3218
|
pluralRules: {}
|
|
3254
3219
|
}), {
|
|
3255
|
-
getNumberFormat:
|
|
3220
|
+
getNumberFormat: de(function() {
|
|
3256
3221
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3257
3222
|
r[n] = arguments[n];
|
|
3258
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3223
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, me([void 0], r, !1)))();
|
|
3259
3224
|
}, {
|
|
3260
|
-
cache:
|
|
3261
|
-
strategy:
|
|
3225
|
+
cache: xe(e.number),
|
|
3226
|
+
strategy: be.variadic
|
|
3262
3227
|
}),
|
|
3263
|
-
getDateTimeFormat:
|
|
3228
|
+
getDateTimeFormat: de(function() {
|
|
3264
3229
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3265
3230
|
r[n] = arguments[n];
|
|
3266
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3231
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, me([void 0], r, !1)))();
|
|
3267
3232
|
}, {
|
|
3268
|
-
cache:
|
|
3269
|
-
strategy:
|
|
3233
|
+
cache: xe(e.dateTime),
|
|
3234
|
+
strategy: be.variadic
|
|
3270
3235
|
}),
|
|
3271
|
-
getPluralRules:
|
|
3236
|
+
getPluralRules: de(function() {
|
|
3272
3237
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3273
3238
|
r[n] = arguments[n];
|
|
3274
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3239
|
+
return new ((t = Intl.PluralRules).bind.apply(t, me([void 0], r, !1)))();
|
|
3275
3240
|
}, {
|
|
3276
|
-
cache:
|
|
3277
|
-
strategy:
|
|
3241
|
+
cache: xe(e.pluralRules),
|
|
3242
|
+
strategy: be.variadic
|
|
3278
3243
|
})
|
|
3279
3244
|
};
|
|
3280
3245
|
}
|
|
3281
|
-
var
|
|
3246
|
+
var fn = (
|
|
3282
3247
|
/** @class */
|
|
3283
3248
|
function() {
|
|
3284
3249
|
function e(t, r, n, i) {
|
|
@@ -3288,35 +3253,35 @@ var vn = (
|
|
|
3288
3253
|
number: {},
|
|
3289
3254
|
dateTime: {},
|
|
3290
3255
|
pluralRules: {}
|
|
3291
|
-
}, this.format = function(
|
|
3292
|
-
var
|
|
3293
|
-
if (
|
|
3294
|
-
return
|
|
3295
|
-
var
|
|
3256
|
+
}, this.format = function(l) {
|
|
3257
|
+
var u = s.formatToParts(l);
|
|
3258
|
+
if (u.length === 1)
|
|
3259
|
+
return u[0].value;
|
|
3260
|
+
var h = u.reduce(function(c, f) {
|
|
3296
3261
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3297
3262
|
}, []);
|
|
3298
|
-
return
|
|
3299
|
-
}, this.formatToParts = function(
|
|
3300
|
-
return
|
|
3263
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3264
|
+
}, this.formatToParts = function(l) {
|
|
3265
|
+
return ie(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3301
3266
|
}, this.resolvedOptions = function() {
|
|
3302
|
-
var
|
|
3267
|
+
var l;
|
|
3303
3268
|
return {
|
|
3304
|
-
locale: ((
|
|
3269
|
+
locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3305
3270
|
};
|
|
3306
3271
|
}, this.getAst = function() {
|
|
3307
3272
|
return s.ast;
|
|
3308
3273
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3309
3274
|
if (this.message = t, !e.__parse)
|
|
3310
3275
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3311
|
-
var
|
|
3312
|
-
|
|
3313
|
-
var
|
|
3314
|
-
this.ast = e.__parse(t,
|
|
3276
|
+
var a = i || {};
|
|
3277
|
+
a.formatters;
|
|
3278
|
+
var o = Er(a, ["formatters"]);
|
|
3279
|
+
this.ast = e.__parse(t, b(b({}, o), { locale: this.resolvedLocale }));
|
|
3315
3280
|
} else
|
|
3316
3281
|
this.ast = t;
|
|
3317
3282
|
if (!Array.isArray(this.ast))
|
|
3318
3283
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3319
|
-
this.formats =
|
|
3284
|
+
this.formats = hn(e.formats, n), this.formatters = i && i.formatters || ln(this.formatterCache);
|
|
3320
3285
|
}
|
|
3321
3286
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3322
3287
|
get: function() {
|
|
@@ -3325,11 +3290,11 @@ var vn = (
|
|
|
3325
3290
|
enumerable: !1,
|
|
3326
3291
|
configurable: !0
|
|
3327
3292
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3328
|
-
if (typeof Intl.Locale
|
|
3293
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3329
3294
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3330
3295
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3331
3296
|
}
|
|
3332
|
-
}, e.__parse =
|
|
3297
|
+
}, e.__parse = rn, e.formats = {
|
|
3333
3298
|
number: {
|
|
3334
3299
|
integer: {
|
|
3335
3300
|
maximumFractionDigits: 0
|
|
@@ -3390,7 +3355,7 @@ var vn = (
|
|
|
3390
3355
|
}, e;
|
|
3391
3356
|
}()
|
|
3392
3357
|
);
|
|
3393
|
-
function
|
|
3358
|
+
function cn(e, t) {
|
|
3394
3359
|
if (t == null)
|
|
3395
3360
|
return;
|
|
3396
3361
|
if (t in e)
|
|
@@ -3411,92 +3376,92 @@ function Hn(e, t) {
|
|
|
3411
3376
|
n = void 0;
|
|
3412
3377
|
return n;
|
|
3413
3378
|
}
|
|
3414
|
-
const
|
|
3379
|
+
const N = {}, pn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Ht = (e, t) => {
|
|
3415
3380
|
if (t == null)
|
|
3416
3381
|
return;
|
|
3417
|
-
if (t in
|
|
3418
|
-
return
|
|
3419
|
-
const r =
|
|
3382
|
+
if (t in N && e in N[t])
|
|
3383
|
+
return N[t][e];
|
|
3384
|
+
const r = fe(t);
|
|
3420
3385
|
for (let n = 0; n < r.length; n++) {
|
|
3421
|
-
const i = r[n], s =
|
|
3386
|
+
const i = r[n], s = dn(i, e);
|
|
3422
3387
|
if (s)
|
|
3423
|
-
return
|
|
3388
|
+
return pn(e, t, s);
|
|
3424
3389
|
}
|
|
3425
3390
|
};
|
|
3426
|
-
let
|
|
3427
|
-
const
|
|
3428
|
-
function
|
|
3429
|
-
return
|
|
3391
|
+
let Me;
|
|
3392
|
+
const X = ue({});
|
|
3393
|
+
function mn(e) {
|
|
3394
|
+
return Me[e] || null;
|
|
3430
3395
|
}
|
|
3431
|
-
function
|
|
3432
|
-
return e in
|
|
3396
|
+
function Tt(e) {
|
|
3397
|
+
return e in Me;
|
|
3433
3398
|
}
|
|
3434
|
-
function
|
|
3435
|
-
if (!
|
|
3399
|
+
function dn(e, t) {
|
|
3400
|
+
if (!Tt(e))
|
|
3436
3401
|
return null;
|
|
3437
|
-
const r =
|
|
3438
|
-
return
|
|
3402
|
+
const r = mn(e);
|
|
3403
|
+
return cn(r, t);
|
|
3439
3404
|
}
|
|
3440
|
-
function
|
|
3405
|
+
function bn(e) {
|
|
3441
3406
|
if (e == null)
|
|
3442
3407
|
return;
|
|
3443
|
-
const t =
|
|
3408
|
+
const t = fe(e);
|
|
3444
3409
|
for (let r = 0; r < t.length; r++) {
|
|
3445
3410
|
const n = t[r];
|
|
3446
|
-
if (
|
|
3411
|
+
if (Tt(n))
|
|
3447
3412
|
return n;
|
|
3448
3413
|
}
|
|
3449
3414
|
}
|
|
3450
|
-
function
|
|
3451
|
-
delete
|
|
3415
|
+
function Bt(e, ...t) {
|
|
3416
|
+
delete N[e], X.update((r) => (r[e] = xr.all([r[e] || {}, ...t]), r));
|
|
3452
3417
|
}
|
|
3453
|
-
|
|
3454
|
-
[
|
|
3418
|
+
k(
|
|
3419
|
+
[X],
|
|
3455
3420
|
([e]) => Object.keys(e)
|
|
3456
3421
|
);
|
|
3457
|
-
|
|
3458
|
-
const
|
|
3459
|
-
function
|
|
3460
|
-
|
|
3422
|
+
X.subscribe((e) => Me = e);
|
|
3423
|
+
const se = {};
|
|
3424
|
+
function gn(e, t) {
|
|
3425
|
+
se[e].delete(t), se[e].size === 0 && delete se[e];
|
|
3461
3426
|
}
|
|
3462
|
-
function
|
|
3463
|
-
return
|
|
3427
|
+
function St(e) {
|
|
3428
|
+
return se[e];
|
|
3464
3429
|
}
|
|
3465
|
-
function
|
|
3466
|
-
return
|
|
3467
|
-
const r =
|
|
3430
|
+
function xn(e) {
|
|
3431
|
+
return fe(e).map((t) => {
|
|
3432
|
+
const r = St(t);
|
|
3468
3433
|
return [t, r ? [...r] : []];
|
|
3469
3434
|
}).filter(([, t]) => t.length > 0);
|
|
3470
3435
|
}
|
|
3471
|
-
function
|
|
3472
|
-
return e == null ? !1 :
|
|
3436
|
+
function Oe(e) {
|
|
3437
|
+
return e == null ? !1 : fe(e).some(
|
|
3473
3438
|
(t) => {
|
|
3474
3439
|
var r;
|
|
3475
|
-
return (r =
|
|
3440
|
+
return (r = St(t)) == null ? void 0 : r.size;
|
|
3476
3441
|
}
|
|
3477
3442
|
);
|
|
3478
3443
|
}
|
|
3479
|
-
function
|
|
3444
|
+
function En(e, t) {
|
|
3480
3445
|
return Promise.all(
|
|
3481
|
-
t.map((n) => (
|
|
3482
|
-
).then((n) =>
|
|
3483
|
-
}
|
|
3484
|
-
const
|
|
3485
|
-
function
|
|
3486
|
-
if (!
|
|
3487
|
-
return e in
|
|
3488
|
-
const t =
|
|
3489
|
-
return
|
|
3446
|
+
t.map((n) => (gn(e, n), n().then((i) => i.default || i)))
|
|
3447
|
+
).then((n) => Bt(e, ...n));
|
|
3448
|
+
}
|
|
3449
|
+
const W = {};
|
|
3450
|
+
function At(e) {
|
|
3451
|
+
if (!Oe(e))
|
|
3452
|
+
return e in W ? W[e] : Promise.resolve();
|
|
3453
|
+
const t = xn(e);
|
|
3454
|
+
return W[e] = Promise.all(
|
|
3490
3455
|
t.map(
|
|
3491
|
-
([r, n]) =>
|
|
3456
|
+
([r, n]) => En(r, n)
|
|
3492
3457
|
)
|
|
3493
3458
|
).then(() => {
|
|
3494
|
-
if (
|
|
3495
|
-
return
|
|
3496
|
-
delete
|
|
3497
|
-
}),
|
|
3459
|
+
if (Oe(e))
|
|
3460
|
+
return At(e);
|
|
3461
|
+
delete W[e];
|
|
3462
|
+
}), W[e];
|
|
3498
3463
|
}
|
|
3499
|
-
const
|
|
3464
|
+
const yn = {
|
|
3500
3465
|
number: {
|
|
3501
3466
|
scientific: { notation: "scientific" },
|
|
3502
3467
|
engineering: { notation: "engineering" },
|
|
@@ -3525,159 +3490,159 @@ const In = {
|
|
|
3525
3490
|
timeZoneName: "short"
|
|
3526
3491
|
}
|
|
3527
3492
|
}
|
|
3528
|
-
},
|
|
3493
|
+
}, _n = {
|
|
3529
3494
|
fallbackLocale: null,
|
|
3530
3495
|
loadingDelay: 200,
|
|
3531
|
-
formats:
|
|
3496
|
+
formats: yn,
|
|
3532
3497
|
warnOnMissingMessages: !0,
|
|
3533
3498
|
handleMissingMessage: void 0,
|
|
3534
3499
|
ignoreTag: !0
|
|
3535
|
-
},
|
|
3536
|
-
function
|
|
3537
|
-
return
|
|
3538
|
-
}
|
|
3539
|
-
const
|
|
3540
|
-
var
|
|
3541
|
-
for (var r in t
|
|
3542
|
-
|
|
3543
|
-
if (
|
|
3544
|
-
for (var r of
|
|
3545
|
-
|
|
3500
|
+
}, vn = _n;
|
|
3501
|
+
function V() {
|
|
3502
|
+
return vn;
|
|
3503
|
+
}
|
|
3504
|
+
const Ee = ue(!1);
|
|
3505
|
+
var Hn = Object.defineProperty, Tn = Object.defineProperties, Bn = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, Sn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, Je = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pn = (e, t) => {
|
|
3506
|
+
for (var r in t)
|
|
3507
|
+
Sn.call(t, r) && Je(e, r, t[r]);
|
|
3508
|
+
if (Qe)
|
|
3509
|
+
for (var r of Qe(t))
|
|
3510
|
+
An.call(t, r) && Je(e, r, t[r]);
|
|
3546
3511
|
return e;
|
|
3547
|
-
},
|
|
3548
|
-
let
|
|
3549
|
-
const
|
|
3550
|
-
function
|
|
3512
|
+
}, On = (e, t) => Tn(e, Bn(t));
|
|
3513
|
+
let Ne;
|
|
3514
|
+
const oe = ue(null);
|
|
3515
|
+
function qe(e) {
|
|
3551
3516
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3552
3517
|
}
|
|
3553
|
-
function
|
|
3554
|
-
const r =
|
|
3555
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3518
|
+
function fe(e, t = V().fallbackLocale) {
|
|
3519
|
+
const r = qe(e);
|
|
3520
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...qe(t)])] : r;
|
|
3556
3521
|
}
|
|
3557
|
-
function
|
|
3558
|
-
return
|
|
3522
|
+
function C() {
|
|
3523
|
+
return Ne ?? void 0;
|
|
3559
3524
|
}
|
|
3560
|
-
|
|
3561
|
-
|
|
3525
|
+
oe.subscribe((e) => {
|
|
3526
|
+
Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3562
3527
|
});
|
|
3563
|
-
const
|
|
3564
|
-
if (e &&
|
|
3565
|
-
const { loadingDelay: t } =
|
|
3528
|
+
const Nn = (e) => {
|
|
3529
|
+
if (e && bn(e) && Oe(e)) {
|
|
3530
|
+
const { loadingDelay: t } = V();
|
|
3566
3531
|
let r;
|
|
3567
|
-
return typeof window
|
|
3568
|
-
() =>
|
|
3532
|
+
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
|
3533
|
+
() => Ee.set(!0),
|
|
3569
3534
|
t
|
|
3570
|
-
) :
|
|
3571
|
-
|
|
3535
|
+
) : Ee.set(!0), At(e).then(() => {
|
|
3536
|
+
oe.set(e);
|
|
3572
3537
|
}).finally(() => {
|
|
3573
|
-
clearTimeout(r),
|
|
3538
|
+
clearTimeout(r), Ee.set(!1);
|
|
3574
3539
|
});
|
|
3575
3540
|
}
|
|
3576
|
-
return
|
|
3577
|
-
},
|
|
3578
|
-
set:
|
|
3579
|
-
}),
|
|
3541
|
+
return oe.set(e);
|
|
3542
|
+
}, I = On(Pn({}, oe), {
|
|
3543
|
+
set: Nn
|
|
3544
|
+
}), ce = (e) => {
|
|
3580
3545
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3581
3546
|
return (n) => {
|
|
3582
3547
|
const i = JSON.stringify(n);
|
|
3583
3548
|
return i in t ? t[i] : t[i] = e(n);
|
|
3584
3549
|
};
|
|
3585
3550
|
};
|
|
3586
|
-
var
|
|
3551
|
+
var In = Object.defineProperty, ae = Object.getOwnPropertySymbols, Pt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable, Ye = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Re = (e, t) => {
|
|
3587
3552
|
for (var r in t || (t = {}))
|
|
3588
|
-
|
|
3589
|
-
if (
|
|
3590
|
-
for (var r of
|
|
3591
|
-
|
|
3553
|
+
Pt.call(t, r) && Ye(e, r, t[r]);
|
|
3554
|
+
if (ae)
|
|
3555
|
+
for (var r of ae(t))
|
|
3556
|
+
Ot.call(t, r) && Ye(e, r, t[r]);
|
|
3592
3557
|
return e;
|
|
3593
|
-
},
|
|
3558
|
+
}, z = (e, t) => {
|
|
3594
3559
|
var r = {};
|
|
3595
3560
|
for (var n in e)
|
|
3596
|
-
|
|
3597
|
-
if (e != null &&
|
|
3598
|
-
for (var n of
|
|
3599
|
-
t.indexOf(n) < 0 &&
|
|
3561
|
+
Pt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3562
|
+
if (e != null && ae)
|
|
3563
|
+
for (var n of ae(e))
|
|
3564
|
+
t.indexOf(n) < 0 && Ot.call(e, n) && (r[n] = e[n]);
|
|
3600
3565
|
return r;
|
|
3601
3566
|
};
|
|
3602
|
-
const
|
|
3603
|
-
const { formats: r } =
|
|
3567
|
+
const Y = (e, t) => {
|
|
3568
|
+
const { formats: r } = V();
|
|
3604
3569
|
if (e in r && t in r[e])
|
|
3605
3570
|
return r[e][t];
|
|
3606
3571
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3607
|
-
},
|
|
3572
|
+
}, wn = ce(
|
|
3608
3573
|
(e) => {
|
|
3609
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3574
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
3610
3575
|
if (r == null)
|
|
3611
3576
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3612
|
-
return n && (i =
|
|
3577
|
+
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
|
3613
3578
|
}
|
|
3614
|
-
),
|
|
3579
|
+
), Ln = ce(
|
|
3615
3580
|
(e) => {
|
|
3616
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3581
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
3617
3582
|
if (r == null)
|
|
3618
3583
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3619
|
-
return n ? i =
|
|
3584
|
+
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3620
3585
|
}
|
|
3621
|
-
),
|
|
3586
|
+
), Cn = ce(
|
|
3622
3587
|
(e) => {
|
|
3623
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3588
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
3624
3589
|
if (r == null)
|
|
3625
3590
|
throw new Error(
|
|
3626
3591
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3627
3592
|
);
|
|
3628
|
-
return n ? i =
|
|
3593
|
+
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3629
3594
|
}
|
|
3630
|
-
),
|
|
3595
|
+
), Mn = (e = {}) => {
|
|
3631
3596
|
var t = e, {
|
|
3632
|
-
locale: r =
|
|
3633
|
-
} = t, n =
|
|
3597
|
+
locale: r = C()
|
|
3598
|
+
} = t, n = z(t, [
|
|
3634
3599
|
"locale"
|
|
3635
3600
|
]);
|
|
3636
|
-
return
|
|
3637
|
-
},
|
|
3601
|
+
return wn(Re({ locale: r }, n));
|
|
3602
|
+
}, Rn = (e = {}) => {
|
|
3638
3603
|
var t = e, {
|
|
3639
|
-
locale: r =
|
|
3640
|
-
} = t, n =
|
|
3604
|
+
locale: r = C()
|
|
3605
|
+
} = t, n = z(t, [
|
|
3641
3606
|
"locale"
|
|
3642
3607
|
]);
|
|
3643
|
-
return
|
|
3644
|
-
},
|
|
3608
|
+
return Ln(Re({ locale: r }, n));
|
|
3609
|
+
}, $n = (e = {}) => {
|
|
3645
3610
|
var t = e, {
|
|
3646
|
-
locale: r =
|
|
3647
|
-
} = t, n =
|
|
3611
|
+
locale: r = C()
|
|
3612
|
+
} = t, n = z(t, [
|
|
3648
3613
|
"locale"
|
|
3649
3614
|
]);
|
|
3650
|
-
return
|
|
3651
|
-
},
|
|
3615
|
+
return Cn(Re({ locale: r }, n));
|
|
3616
|
+
}, Un = ce(
|
|
3652
3617
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3653
|
-
(e, t =
|
|
3654
|
-
ignoreTag:
|
|
3618
|
+
(e, t = C()) => new fn(e, t, V().formats, {
|
|
3619
|
+
ignoreTag: V().ignoreTag
|
|
3655
3620
|
})
|
|
3656
|
-
),
|
|
3621
|
+
), Gn = (e, t = {}) => {
|
|
3657
3622
|
var r, n, i, s;
|
|
3658
|
-
let
|
|
3659
|
-
typeof e == "object" && (
|
|
3623
|
+
let a = t;
|
|
3624
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3660
3625
|
const {
|
|
3661
|
-
values:
|
|
3662
|
-
locale:
|
|
3663
|
-
default:
|
|
3664
|
-
} =
|
|
3665
|
-
if (
|
|
3626
|
+
values: o,
|
|
3627
|
+
locale: l = C(),
|
|
3628
|
+
default: u
|
|
3629
|
+
} = a;
|
|
3630
|
+
if (l == null)
|
|
3666
3631
|
throw new Error(
|
|
3667
3632
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3668
3633
|
);
|
|
3669
|
-
let
|
|
3670
|
-
if (!
|
|
3671
|
-
|
|
3672
|
-
else if (typeof
|
|
3634
|
+
let h = Ht(e, l);
|
|
3635
|
+
if (!h)
|
|
3636
|
+
h = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3637
|
+
else if (typeof h != "string")
|
|
3673
3638
|
return console.warn(
|
|
3674
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3675
|
-
),
|
|
3676
|
-
if (!
|
|
3677
|
-
return
|
|
3678
|
-
let c =
|
|
3639
|
+
`[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.`
|
|
3640
|
+
), h;
|
|
3641
|
+
if (!o)
|
|
3642
|
+
return h;
|
|
3643
|
+
let c = h;
|
|
3679
3644
|
try {
|
|
3680
|
-
c =
|
|
3645
|
+
c = Un(h, l).format(o);
|
|
3681
3646
|
} catch (f) {
|
|
3682
3647
|
f instanceof Error && console.warn(
|
|
3683
3648
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3685,23 +3650,23 @@ const K = (e, t) => {
|
|
|
3685
3650
|
);
|
|
3686
3651
|
}
|
|
3687
3652
|
return c;
|
|
3688
|
-
},
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
function
|
|
3694
|
-
|
|
3695
|
-
r == null && (
|
|
3653
|
+
}, Dn = (e, t) => $n(t).format(e), Fn = (e, t) => Rn(t).format(e), jn = (e, t) => Mn(t).format(e), Vn = (e, t = C()) => Ht(e, t), kn = k([I, X], () => Gn);
|
|
3654
|
+
k([I], () => Dn);
|
|
3655
|
+
k([I], () => Fn);
|
|
3656
|
+
k([I], () => jn);
|
|
3657
|
+
k([I, X], () => Vn);
|
|
3658
|
+
function Xn({ withLocale: e, translations: t }) {
|
|
3659
|
+
I.subscribe((r) => {
|
|
3660
|
+
r == null && (X.set(t), I.set(e));
|
|
3696
3661
|
});
|
|
3697
3662
|
}
|
|
3698
|
-
function
|
|
3699
|
-
|
|
3663
|
+
function Ke(e, t) {
|
|
3664
|
+
Bt(e, t);
|
|
3700
3665
|
}
|
|
3701
|
-
function
|
|
3702
|
-
|
|
3666
|
+
function zn(e) {
|
|
3667
|
+
I.set(e);
|
|
3703
3668
|
}
|
|
3704
|
-
const
|
|
3669
|
+
const et = {
|
|
3705
3670
|
en: {
|
|
3706
3671
|
bets: "bets"
|
|
3707
3672
|
},
|
|
@@ -3727,121 +3692,121 @@ const at = {
|
|
|
3727
3692
|
bets: "bets"
|
|
3728
3693
|
}
|
|
3729
3694
|
};
|
|
3730
|
-
function
|
|
3731
|
-
|
|
3695
|
+
function Wn(e) {
|
|
3696
|
+
Rt(e, "svelte-6dosur", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}');
|
|
3732
3697
|
}
|
|
3733
|
-
function
|
|
3698
|
+
function Zn(e) {
|
|
3734
3699
|
let t, r, n, i, s;
|
|
3735
3700
|
return {
|
|
3736
3701
|
c() {
|
|
3737
|
-
t =
|
|
3702
|
+
t = Z("div"), r = Z("div"), n = Z("span"), i = Gt(
|
|
3738
3703
|
/*progressText*/
|
|
3739
3704
|
e[3]
|
|
3740
|
-
),
|
|
3741
|
-
e[4]),
|
|
3705
|
+
), L(n, "part", "progressText"), L(r, "class", s = "stepBar " + /*curTatus*/
|
|
3706
|
+
e[4]), L(r, "part", "stepBar"), L(t, "class", "general-icon-progress-bar"), L(t, "part", "totalBar");
|
|
3742
3707
|
},
|
|
3743
|
-
m(
|
|
3744
|
-
|
|
3708
|
+
m(a, o) {
|
|
3709
|
+
it(a, t, o), re(t, r), re(r, n), re(n, i), e[13](n), e[14](r), e[15](t);
|
|
3745
3710
|
},
|
|
3746
|
-
p(
|
|
3747
|
-
|
|
3748
|
-
8 &&
|
|
3711
|
+
p(a, [o]) {
|
|
3712
|
+
o & /*progressText*/
|
|
3713
|
+
8 && Ft(
|
|
3749
3714
|
i,
|
|
3750
3715
|
/*progressText*/
|
|
3751
|
-
|
|
3752
|
-
),
|
|
3716
|
+
a[3]
|
|
3717
|
+
), o & /*curTatus*/
|
|
3753
3718
|
16 && s !== (s = "stepBar " + /*curTatus*/
|
|
3754
|
-
|
|
3719
|
+
a[4]) && L(r, "class", s);
|
|
3755
3720
|
},
|
|
3756
|
-
i:
|
|
3757
|
-
o:
|
|
3758
|
-
d(
|
|
3759
|
-
|
|
3721
|
+
i: T,
|
|
3722
|
+
o: T,
|
|
3723
|
+
d(a) {
|
|
3724
|
+
a && we(t), e[13](null), e[14](null), e[15](null);
|
|
3760
3725
|
}
|
|
3761
3726
|
};
|
|
3762
3727
|
}
|
|
3763
|
-
function
|
|
3728
|
+
function Qn(e, t, r) {
|
|
3764
3729
|
let n;
|
|
3765
|
-
|
|
3766
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent:
|
|
3767
|
-
|
|
3768
|
-
const
|
|
3769
|
-
fetch(
|
|
3770
|
-
Object.keys(
|
|
3771
|
-
|
|
3730
|
+
Mt(e, kn, (p) => r(20, n = p));
|
|
3731
|
+
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl: u = "" } = t, { progressfractiondigit: h = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, B, S, v = "0px", O = "active";
|
|
3732
|
+
Xn({ withLocale: "en", translations: {} });
|
|
3733
|
+
const P = () => {
|
|
3734
|
+
fetch(u).then((w) => w.json()).then((w) => {
|
|
3735
|
+
Object.keys(w).forEach(($e) => {
|
|
3736
|
+
Ke($e, w[$e]);
|
|
3772
3737
|
});
|
|
3773
|
-
}).catch((
|
|
3774
|
-
console.log(
|
|
3738
|
+
}).catch((w) => {
|
|
3739
|
+
console.log(w);
|
|
3775
3740
|
});
|
|
3776
3741
|
};
|
|
3777
|
-
Object.keys(
|
|
3778
|
-
|
|
3742
|
+
Object.keys(et).forEach((p) => {
|
|
3743
|
+
Ke(p, et[p]);
|
|
3779
3744
|
});
|
|
3780
|
-
const
|
|
3781
|
-
|
|
3782
|
-
},
|
|
3783
|
-
let p = (i / s * 100).toFixed(
|
|
3745
|
+
const M = () => {
|
|
3746
|
+
zn(o);
|
|
3747
|
+
}, ee = () => {
|
|
3748
|
+
let p = (i / s * 100).toFixed(h);
|
|
3784
3749
|
setTimeout(
|
|
3785
3750
|
() => {
|
|
3786
|
-
|
|
3751
|
+
a || a === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
|
3787
3752
|
},
|
|
3788
3753
|
y ? 573 : 0
|
|
3789
|
-
), p == 0 || p == 100 ? (
|
|
3790
|
-
},
|
|
3791
|
-
r(4,
|
|
3754
|
+
), p == 0 || p == 100 ? (B = "0px", S = "0px", v = p == 100 ? "3px" : "0px") : (B = `${f.offsetHeight}px`, H = B, S = `${f.offsetHeight / 3}px`, v = "0px"), x.style.setProperty("--parentElementHeight", H), g.style.setProperty("--currentStep", p + "%"), g.style.setProperty("--triangleHeight", B), g.style.setProperty("--halfOfTriangleHeight", S), g.style.setProperty("--stepBarBorderRadius", v);
|
|
3755
|
+
}, Nt = () => {
|
|
3756
|
+
r(4, O = l == "active" ? "" : "inactive");
|
|
3792
3757
|
};
|
|
3793
|
-
function
|
|
3794
|
-
|
|
3758
|
+
function It(p) {
|
|
3759
|
+
J[p ? "unshift" : "push"](() => {
|
|
3795
3760
|
x = p, r(1, x);
|
|
3796
3761
|
});
|
|
3797
3762
|
}
|
|
3798
|
-
function
|
|
3799
|
-
|
|
3763
|
+
function wt(p) {
|
|
3764
|
+
J[p ? "unshift" : "push"](() => {
|
|
3800
3765
|
g = p, r(2, g);
|
|
3801
3766
|
});
|
|
3802
3767
|
}
|
|
3803
|
-
function
|
|
3804
|
-
|
|
3768
|
+
function Lt(p) {
|
|
3769
|
+
J[p ? "unshift" : "push"](() => {
|
|
3805
3770
|
f = p, r(0, f);
|
|
3806
3771
|
});
|
|
3807
3772
|
}
|
|
3808
3773
|
return e.$$set = (p) => {
|
|
3809
|
-
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7,
|
|
3774
|
+
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, a = p.showaspercent), "lang" in p && r(8, o = p.lang), "status" in p && r(9, l = p.status), "translationurl" in p && r(10, u = p.translationurl), "progressfractiondigit" in p && r(11, h = p.progressfractiondigit), "triggerreset" in p && r(12, c = p.triggerreset);
|
|
3810
3775
|
}, e.$$.update = () => {
|
|
3811
3776
|
e.$$.dirty & /*triggerreset, total*/
|
|
3812
3777
|
4160 && c && s && setTimeout(() => {
|
|
3813
|
-
|
|
3778
|
+
ee();
|
|
3814
3779
|
}), e.$$.dirty & /*lang*/
|
|
3815
|
-
256 &&
|
|
3816
|
-
512 &&
|
|
3817
|
-
1024 &&
|
|
3780
|
+
256 && o && M(), e.$$.dirty & /*status*/
|
|
3781
|
+
512 && l && Nt(), e.$$.dirty & /*translationurl*/
|
|
3782
|
+
1024 && u && P();
|
|
3818
3783
|
}, [
|
|
3819
3784
|
f,
|
|
3820
3785
|
x,
|
|
3821
3786
|
g,
|
|
3822
3787
|
y,
|
|
3823
|
-
|
|
3788
|
+
O,
|
|
3824
3789
|
i,
|
|
3825
3790
|
s,
|
|
3826
|
-
o,
|
|
3827
3791
|
a,
|
|
3792
|
+
o,
|
|
3793
|
+
l,
|
|
3828
3794
|
u,
|
|
3829
3795
|
h,
|
|
3830
|
-
l,
|
|
3831
3796
|
c,
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3797
|
+
It,
|
|
3798
|
+
wt,
|
|
3799
|
+
Lt
|
|
3835
3800
|
];
|
|
3836
3801
|
}
|
|
3837
|
-
class
|
|
3802
|
+
class Jn extends er {
|
|
3838
3803
|
constructor(t) {
|
|
3839
|
-
super(),
|
|
3804
|
+
super(), Yt(
|
|
3840
3805
|
this,
|
|
3841
3806
|
t,
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3807
|
+
Qn,
|
|
3808
|
+
Zn,
|
|
3809
|
+
rt,
|
|
3845
3810
|
{
|
|
3846
3811
|
currentstep: 5,
|
|
3847
3812
|
total: 6,
|
|
@@ -3852,59 +3817,59 @@ class ai extends cr {
|
|
|
3852
3817
|
progressfractiondigit: 11,
|
|
3853
3818
|
triggerreset: 12
|
|
3854
3819
|
},
|
|
3855
|
-
|
|
3820
|
+
Wn
|
|
3856
3821
|
);
|
|
3857
3822
|
}
|
|
3858
3823
|
get currentstep() {
|
|
3859
3824
|
return this.$$.ctx[5];
|
|
3860
3825
|
}
|
|
3861
3826
|
set currentstep(t) {
|
|
3862
|
-
this.$$set({ currentstep: t }),
|
|
3827
|
+
this.$$set({ currentstep: t }), A();
|
|
3863
3828
|
}
|
|
3864
3829
|
get total() {
|
|
3865
3830
|
return this.$$.ctx[6];
|
|
3866
3831
|
}
|
|
3867
3832
|
set total(t) {
|
|
3868
|
-
this.$$set({ total: t }),
|
|
3833
|
+
this.$$set({ total: t }), A();
|
|
3869
3834
|
}
|
|
3870
3835
|
get showaspercent() {
|
|
3871
3836
|
return this.$$.ctx[7];
|
|
3872
3837
|
}
|
|
3873
3838
|
set showaspercent(t) {
|
|
3874
|
-
this.$$set({ showaspercent: t }),
|
|
3839
|
+
this.$$set({ showaspercent: t }), A();
|
|
3875
3840
|
}
|
|
3876
3841
|
get lang() {
|
|
3877
3842
|
return this.$$.ctx[8];
|
|
3878
3843
|
}
|
|
3879
3844
|
set lang(t) {
|
|
3880
|
-
this.$$set({ lang: t }),
|
|
3845
|
+
this.$$set({ lang: t }), A();
|
|
3881
3846
|
}
|
|
3882
3847
|
get status() {
|
|
3883
3848
|
return this.$$.ctx[9];
|
|
3884
3849
|
}
|
|
3885
3850
|
set status(t) {
|
|
3886
|
-
this.$$set({ status: t }),
|
|
3851
|
+
this.$$set({ status: t }), A();
|
|
3887
3852
|
}
|
|
3888
3853
|
get translationurl() {
|
|
3889
3854
|
return this.$$.ctx[10];
|
|
3890
3855
|
}
|
|
3891
3856
|
set translationurl(t) {
|
|
3892
|
-
this.$$set({ translationurl: t }),
|
|
3857
|
+
this.$$set({ translationurl: t }), A();
|
|
3893
3858
|
}
|
|
3894
3859
|
get progressfractiondigit() {
|
|
3895
3860
|
return this.$$.ctx[11];
|
|
3896
3861
|
}
|
|
3897
3862
|
set progressfractiondigit(t) {
|
|
3898
|
-
this.$$set({ progressfractiondigit: t }),
|
|
3863
|
+
this.$$set({ progressfractiondigit: t }), A();
|
|
3899
3864
|
}
|
|
3900
3865
|
get triggerreset() {
|
|
3901
3866
|
return this.$$.ctx[12];
|
|
3902
3867
|
}
|
|
3903
3868
|
set triggerreset(t) {
|
|
3904
|
-
this.$$set({ triggerreset: t }),
|
|
3869
|
+
this.$$set({ triggerreset: t }), A();
|
|
3905
3870
|
}
|
|
3906
3871
|
}
|
|
3907
|
-
|
|
3872
|
+
Kt(Jn, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
|
3908
3873
|
export {
|
|
3909
|
-
|
|
3874
|
+
Jn as G
|
|
3910
3875
|
};
|