@everymatrix/cashier-step-up 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CashierStepUp-C7wS_ltU.cjs +3 -0
- package/components/{CashierStepUp-BrPq_1gQ.js → CashierStepUp-Cl0RmZrh.js} +1153 -1149
- package/components/{CashierStepUp--A_D8ZI2.js → CashierStepUp-DvXworYR.js} +1163 -1159
- package/es2015/cashier-step-up.cjs +1 -1
- package/es2015/cashier-step-up.js +1 -1
- package/esnext/cashier-step-up.js +1 -1
- package/package.json +1 -1
- package/components/CashierStepUp-BRmmiLGR.cjs +0 -16
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var zr = Object.defineProperty, Xr = Object.defineProperties;
|
|
2
|
+
var Wr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Nt = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
4
|
+
var Zr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var lt = (e, t, r) => t in e ? zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
Zr.call(t, r) && lt(e, r, t[r]);
|
|
8
8
|
if (Nt)
|
|
9
|
-
for (var
|
|
10
|
-
|
|
9
|
+
for (var r of Nt(t))
|
|
10
|
+
qr.call(t, r) && lt(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var K = (e, t,
|
|
14
|
-
var
|
|
12
|
+
}, ut = (e, t) => Xr(e, Wr(t));
|
|
13
|
+
var K = (e, t, r) => (lt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var ve = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
s(
|
|
17
|
+
s(r.next(u));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
21
|
}, a = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
s(
|
|
23
|
+
s(r.throw(u));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, s = (u) => u.done ?
|
|
28
|
-
s((
|
|
27
|
+
}, s = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, a);
|
|
28
|
+
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function ee() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ir(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function Rt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function xe(e) {
|
|
39
|
+
e.forEach(ir);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function At(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function or(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Qr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function sr(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
|
-
for (const
|
|
53
|
-
|
|
52
|
+
for (const n of t)
|
|
53
|
+
n(void 0);
|
|
54
54
|
return ee;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
57
|
-
return
|
|
56
|
+
const r = e.subscribe(...t);
|
|
57
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function Jr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(sr(t, r));
|
|
61
61
|
}
|
|
62
62
|
function y(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
if (!
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent =
|
|
65
|
+
function Yr(e, t, r) {
|
|
66
|
+
const n = Kr(e);
|
|
67
|
+
if (!n.getElementById(t)) {
|
|
68
|
+
const i = O("style");
|
|
69
|
+
i.id = t, i.textContent = r, en(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Kr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,24 +79,24 @@ function er(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function en(e, t) {
|
|
83
83
|
return y(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
e.insertBefore(t,
|
|
89
|
+
function C(e, t, r) {
|
|
90
|
+
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function H(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
for (let
|
|
97
|
-
e[
|
|
95
|
+
function tn(e, t) {
|
|
96
|
+
for (let r = 0; r < e.length; r += 1)
|
|
97
|
+
e[r] && e[r].d(t);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function O(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
102
|
function oe(e) {
|
|
@@ -108,118 +108,118 @@ function k(e) {
|
|
|
108
108
|
function F() {
|
|
109
109
|
return k(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function rn() {
|
|
112
112
|
return k("");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
return e.addEventListener(t,
|
|
114
|
+
function pe(e, t, r, n) {
|
|
115
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
116
|
}
|
|
117
|
-
function p(e, t,
|
|
118
|
-
|
|
117
|
+
function p(e, t, r) {
|
|
118
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function nn(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
123
|
function j(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
127
|
-
function se(e, t,
|
|
128
|
-
e.classList.toggle(t, !!
|
|
127
|
+
function se(e, t, r) {
|
|
128
|
+
e.classList.toggle(t, !!r);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function on(e) {
|
|
131
131
|
const t = {};
|
|
132
132
|
return e.childNodes.forEach(
|
|
133
133
|
/** @param {Element} node */
|
|
134
|
-
(
|
|
135
|
-
t[
|
|
134
|
+
(r) => {
|
|
135
|
+
t[r.slot || "default"] = !0;
|
|
136
136
|
}
|
|
137
137
|
), t;
|
|
138
138
|
}
|
|
139
|
-
let
|
|
140
|
-
function
|
|
141
|
-
|
|
139
|
+
let Ge;
|
|
140
|
+
function Ue(e) {
|
|
141
|
+
Ge = e;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
if (!
|
|
143
|
+
function sn() {
|
|
144
|
+
if (!Ge)
|
|
145
145
|
throw new Error("Function called outside component initialization");
|
|
146
|
-
return
|
|
146
|
+
return Ge;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function an(e) {
|
|
149
|
+
sn().$$.on_mount.push(e);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
let
|
|
153
|
-
const kt = [],
|
|
154
|
-
let
|
|
155
|
-
function
|
|
156
|
-
|
|
151
|
+
const Ce = [], Je = [];
|
|
152
|
+
let Be = [];
|
|
153
|
+
const kt = [], ln = /* @__PURE__ */ Promise.resolve();
|
|
154
|
+
let bt = !1;
|
|
155
|
+
function un() {
|
|
156
|
+
bt || (bt = !0, ln.then(ae));
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
158
|
+
function yt(e) {
|
|
159
|
+
Be.push(e);
|
|
160
160
|
}
|
|
161
|
-
const
|
|
161
|
+
const ht = /* @__PURE__ */ new Set();
|
|
162
162
|
let He = 0;
|
|
163
163
|
function ae() {
|
|
164
164
|
if (He !== 0)
|
|
165
165
|
return;
|
|
166
|
-
const e =
|
|
166
|
+
const e = Ge;
|
|
167
167
|
do {
|
|
168
168
|
try {
|
|
169
|
-
for (; He <
|
|
170
|
-
const t =
|
|
171
|
-
He++,
|
|
169
|
+
for (; He < Ce.length; ) {
|
|
170
|
+
const t = Ce[He];
|
|
171
|
+
He++, Ue(t), hn(t.$$);
|
|
172
172
|
}
|
|
173
173
|
} catch (t) {
|
|
174
|
-
throw
|
|
174
|
+
throw Ce.length = 0, He = 0, t;
|
|
175
175
|
}
|
|
176
|
-
for (
|
|
177
|
-
|
|
178
|
-
for (let t = 0; t <
|
|
179
|
-
const
|
|
180
|
-
|
|
176
|
+
for (Ue(null), Ce.length = 0, He = 0; Je.length; )
|
|
177
|
+
Je.pop()();
|
|
178
|
+
for (let t = 0; t < Be.length; t += 1) {
|
|
179
|
+
const r = Be[t];
|
|
180
|
+
ht.has(r) || (ht.add(r), r());
|
|
181
181
|
}
|
|
182
|
-
|
|
183
|
-
} while (
|
|
182
|
+
Be.length = 0;
|
|
183
|
+
} while (Ce.length);
|
|
184
184
|
for (; kt.length; )
|
|
185
185
|
kt.pop()();
|
|
186
|
-
|
|
186
|
+
bt = !1, ht.clear(), Ue(e);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function hn(e) {
|
|
189
189
|
if (e.fragment !== null) {
|
|
190
|
-
e.update(),
|
|
190
|
+
e.update(), xe(e.before_update);
|
|
191
191
|
const t = e.dirty;
|
|
192
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
192
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(yt);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
const t = [],
|
|
197
|
-
|
|
195
|
+
function cn(e) {
|
|
196
|
+
const t = [], r = [];
|
|
197
|
+
Be.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Be = t;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
function
|
|
201
|
-
e && e.i && (
|
|
199
|
+
const fn = /* @__PURE__ */ new Set();
|
|
200
|
+
function pn(e, t) {
|
|
201
|
+
e && e.i && (fn.delete(e), e.i(t));
|
|
202
202
|
}
|
|
203
203
|
function Dt(e) {
|
|
204
204
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const { fragment:
|
|
208
|
-
|
|
209
|
-
const o = e.$$.on_mount.map(
|
|
210
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
211
|
-
}), i.forEach(
|
|
206
|
+
function mn(e, t, r) {
|
|
207
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
208
|
+
n && n.m(t, r), yt(() => {
|
|
209
|
+
const o = e.$$.on_mount.map(ir).filter(At);
|
|
210
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : xe(o), e.$$.on_mount = [];
|
|
211
|
+
}), i.forEach(yt);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
const
|
|
215
|
-
|
|
213
|
+
function dn(e, t) {
|
|
214
|
+
const r = e.$$;
|
|
215
|
+
r.fragment !== null && (cn(r.after_update), xe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
e.$$.dirty[0] === -1 && (
|
|
217
|
+
function gn(e, t) {
|
|
218
|
+
e.$$.dirty[0] === -1 && (Ce.push(e), un(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
const u =
|
|
222
|
-
|
|
220
|
+
function bn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
221
|
+
const u = Ge;
|
|
222
|
+
Ue(e);
|
|
223
223
|
const l = e.$$ = {
|
|
224
224
|
fragment: null,
|
|
225
225
|
ctx: [],
|
|
@@ -243,22 +243,22 @@ function br(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
243
243
|
};
|
|
244
244
|
a && a(l.root);
|
|
245
245
|
let h = !1;
|
|
246
|
-
if (l.ctx =
|
|
246
|
+
if (l.ctx = r ? r(e, t.props || {}, (c, m, ..._) => {
|
|
247
247
|
const d = _.length ? _[0] : m;
|
|
248
|
-
return l.ctx && i(l.ctx[c], l.ctx[c] = d) && (!l.skip_bound && l.bound[c] && l.bound[c](d), h &&
|
|
249
|
-
}) : [], l.update(), h = !0,
|
|
248
|
+
return l.ctx && i(l.ctx[c], l.ctx[c] = d) && (!l.skip_bound && l.bound[c] && l.bound[c](d), h && gn(e, c)), m;
|
|
249
|
+
}) : [], l.update(), h = !0, xe(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
250
250
|
if (t.hydrate) {
|
|
251
|
-
const c =
|
|
252
|
-
l.fragment && l.fragment.l(c), c.forEach(
|
|
251
|
+
const c = nn(t.target);
|
|
252
|
+
l.fragment && l.fragment.l(c), c.forEach(H);
|
|
253
253
|
} else
|
|
254
254
|
l.fragment && l.fragment.c();
|
|
255
|
-
t.intro &&
|
|
255
|
+
t.intro && pn(e.$$.fragment), mn(e, t.target, t.anchor), ae();
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
Ue(u);
|
|
258
258
|
}
|
|
259
|
-
let
|
|
260
|
-
typeof HTMLElement == "function" && (
|
|
261
|
-
constructor(t,
|
|
259
|
+
let ar;
|
|
260
|
+
typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
261
|
+
constructor(t, r, n) {
|
|
262
262
|
super();
|
|
263
263
|
/** The Svelte component constructor */
|
|
264
264
|
K(this, "$$ctor");
|
|
@@ -278,59 +278,59 @@ typeof HTMLElement == "function" && (ln = class extends HTMLElement {
|
|
|
278
278
|
K(this, "$$l", {});
|
|
279
279
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
280
280
|
K(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
281
|
-
this.$$ctor = t, this.$$s =
|
|
281
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
282
282
|
}
|
|
283
|
-
addEventListener(t,
|
|
284
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
285
|
-
const i = this.$$c.$on(t,
|
|
286
|
-
this.$$l_u.set(
|
|
283
|
+
addEventListener(t, r, n) {
|
|
284
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
285
|
+
const i = this.$$c.$on(t, r);
|
|
286
|
+
this.$$l_u.set(r, i);
|
|
287
287
|
}
|
|
288
|
-
super.addEventListener(t,
|
|
288
|
+
super.addEventListener(t, r, n);
|
|
289
289
|
}
|
|
290
|
-
removeEventListener(t,
|
|
291
|
-
if (super.removeEventListener(t,
|
|
292
|
-
const i = this.$$l_u.get(
|
|
293
|
-
i && (i(), this.$$l_u.delete(
|
|
290
|
+
removeEventListener(t, r, n) {
|
|
291
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
292
|
+
const i = this.$$l_u.get(r);
|
|
293
|
+
i && (i(), this.$$l_u.delete(r));
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
connectedCallback() {
|
|
297
|
-
return
|
|
297
|
+
return ve(this, null, function* () {
|
|
298
298
|
if (this.$$cn = !0, !this.$$c) {
|
|
299
299
|
let t = function(o) {
|
|
300
300
|
return () => {
|
|
301
301
|
let a;
|
|
302
302
|
return {
|
|
303
303
|
c: function() {
|
|
304
|
-
a =
|
|
304
|
+
a = O("slot"), o !== "default" && p(a, "name", o);
|
|
305
305
|
},
|
|
306
306
|
/**
|
|
307
307
|
* @param {HTMLElement} target
|
|
308
308
|
* @param {HTMLElement} [anchor]
|
|
309
309
|
*/
|
|
310
310
|
m: function(l, h) {
|
|
311
|
-
|
|
311
|
+
C(l, a, h);
|
|
312
312
|
},
|
|
313
313
|
d: function(l) {
|
|
314
|
-
l &&
|
|
314
|
+
l && H(a);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
320
|
return;
|
|
321
|
-
const
|
|
321
|
+
const r = {}, n = on(this);
|
|
322
322
|
for (const o of this.$$s)
|
|
323
|
-
o in
|
|
323
|
+
o in n && (r[o] = [t(o)]);
|
|
324
324
|
for (const o of this.attributes) {
|
|
325
325
|
const a = this.$$g_p(o.name);
|
|
326
|
-
a in this.$$d || (this.$$d[a] =
|
|
326
|
+
a in this.$$d || (this.$$d[a] = Ze(a, o.value, this.$$p_d, "toProp"));
|
|
327
327
|
}
|
|
328
328
|
for (const o in this.$$p_d)
|
|
329
329
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
330
330
|
this.$$c = new this.$$ctor({
|
|
331
331
|
target: this.shadowRoot || this,
|
|
332
|
-
props:
|
|
333
|
-
$$slots:
|
|
332
|
+
props: ut(Xe({}, this.$$d), {
|
|
333
|
+
$$slots: r,
|
|
334
334
|
$$scope: {
|
|
335
335
|
ctx: []
|
|
336
336
|
}
|
|
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (ln = class extends HTMLElement {
|
|
|
340
340
|
this.$$r = !0;
|
|
341
341
|
for (const o in this.$$p_d)
|
|
342
342
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
343
|
-
const a =
|
|
343
|
+
const a = Ze(
|
|
344
344
|
o,
|
|
345
345
|
this.$$d[o],
|
|
346
346
|
this.$$p_d,
|
|
@@ -362,9 +362,9 @@ typeof HTMLElement == "function" && (ln = class extends HTMLElement {
|
|
|
362
362
|
}
|
|
363
363
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
364
364
|
// and setting attributes through setAttribute etc, this is helpful
|
|
365
|
-
attributeChangedCallback(t,
|
|
365
|
+
attributeChangedCallback(t, r, n) {
|
|
366
366
|
var i;
|
|
367
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
367
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ze(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
368
368
|
}
|
|
369
369
|
disconnectedCallback() {
|
|
370
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -373,16 +373,16 @@ typeof HTMLElement == "function" && (ln = class extends HTMLElement {
|
|
|
373
373
|
}
|
|
374
374
|
$$g_p(t) {
|
|
375
375
|
return Object.keys(this.$$p_d).find(
|
|
376
|
-
(
|
|
376
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
377
377
|
) || t;
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
function
|
|
380
|
+
function Ze(e, t, r, n) {
|
|
381
381
|
var o;
|
|
382
|
-
const i = (o =
|
|
383
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
382
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
383
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
384
384
|
return t;
|
|
385
|
-
if (
|
|
385
|
+
if (n === "toAttribute")
|
|
386
386
|
switch (i) {
|
|
387
387
|
case "Object":
|
|
388
388
|
case "Array":
|
|
@@ -407,10 +407,10 @@ function We(e, t, n, r) {
|
|
|
407
407
|
return t;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
let a = class extends
|
|
410
|
+
function yn(e, t, r, n, i, o) {
|
|
411
|
+
let a = class extends ar {
|
|
412
412
|
constructor() {
|
|
413
|
-
super(e,
|
|
413
|
+
super(e, r, i), this.$$p_d = t;
|
|
414
414
|
}
|
|
415
415
|
static get observedAttributes() {
|
|
416
416
|
return Object.keys(t).map(
|
|
@@ -425,10 +425,10 @@ function yr(e, t, n, r, i, o) {
|
|
|
425
425
|
},
|
|
426
426
|
set(u) {
|
|
427
427
|
var l;
|
|
428
|
-
u =
|
|
428
|
+
u = Ze(s, u, t), this.$$d[s] = u, (l = this.$$c) == null || l.$set({ [s]: u });
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
|
-
}),
|
|
431
|
+
}), n.forEach((s) => {
|
|
432
432
|
Object.defineProperty(a.prototype, s, {
|
|
433
433
|
get() {
|
|
434
434
|
var u;
|
|
@@ -438,7 +438,7 @@ function yr(e, t, n, r, i, o) {
|
|
|
438
438
|
}), e.element = /** @type {any} */
|
|
439
439
|
a, a;
|
|
440
440
|
}
|
|
441
|
-
class
|
|
441
|
+
class _n {
|
|
442
442
|
constructor() {
|
|
443
443
|
/**
|
|
444
444
|
* ### PRIVATE API
|
|
@@ -459,7 +459,7 @@ class _r {
|
|
|
459
459
|
}
|
|
460
460
|
/** @returns {void} */
|
|
461
461
|
$destroy() {
|
|
462
|
-
|
|
462
|
+
dn(this, 1), this.$destroy = ee;
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
465
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -467,13 +467,13 @@ class _r {
|
|
|
467
467
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
468
468
|
* @returns {() => void}
|
|
469
469
|
*/
|
|
470
|
-
$on(t,
|
|
471
|
-
if (!
|
|
470
|
+
$on(t, r) {
|
|
471
|
+
if (!At(r))
|
|
472
472
|
return ee;
|
|
473
|
-
const
|
|
474
|
-
return
|
|
475
|
-
const i =
|
|
476
|
-
i !== -1 &&
|
|
473
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
474
|
+
return n.push(r), () => {
|
|
475
|
+
const i = n.indexOf(r);
|
|
476
|
+
i !== -1 && n.splice(i, 1);
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
/**
|
|
@@ -481,54 +481,54 @@ class _r {
|
|
|
481
481
|
* @returns {void}
|
|
482
482
|
*/
|
|
483
483
|
$set(t) {
|
|
484
|
-
this.$$set && !
|
|
484
|
+
this.$$set && !Qr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
const
|
|
488
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
489
|
-
function
|
|
487
|
+
const En = "4";
|
|
488
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(En);
|
|
489
|
+
function vn(e, t) {
|
|
490
490
|
if (e) {
|
|
491
|
-
const
|
|
492
|
-
|
|
491
|
+
const r = document.createElement("style");
|
|
492
|
+
r.innerHTML = t, e.appendChild(r);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function xn(e, t) {
|
|
496
496
|
if (!e || !t)
|
|
497
497
|
return;
|
|
498
|
-
const
|
|
499
|
-
fetch(
|
|
498
|
+
const r = new URL(t);
|
|
499
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
500
500
|
const i = document.createElement("style");
|
|
501
|
-
i.innerHTML =
|
|
502
|
-
}).catch((
|
|
503
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
501
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
502
|
+
}).catch((n) => {
|
|
503
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function wn(e, t, r) {
|
|
507
507
|
if (window.emMessageBus) {
|
|
508
|
-
const
|
|
508
|
+
const n = document.createElement("style");
|
|
509
509
|
window.emMessageBus.subscribe(t, (i) => {
|
|
510
|
-
|
|
510
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
const
|
|
515
|
-
function
|
|
514
|
+
const Ae = [];
|
|
515
|
+
function Sn(e, t) {
|
|
516
516
|
return {
|
|
517
|
-
subscribe:
|
|
517
|
+
subscribe: tt(e, t).subscribe
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
let
|
|
522
|
-
const
|
|
520
|
+
function tt(e, t = ee) {
|
|
521
|
+
let r;
|
|
522
|
+
const n = /* @__PURE__ */ new Set();
|
|
523
523
|
function i(s) {
|
|
524
|
-
if (
|
|
525
|
-
const u = !
|
|
526
|
-
for (const l of
|
|
527
|
-
l[1](),
|
|
524
|
+
if (or(e, s) && (e = s, r)) {
|
|
525
|
+
const u = !Ae.length;
|
|
526
|
+
for (const l of n)
|
|
527
|
+
l[1](), Ae.push(l, e);
|
|
528
528
|
if (u) {
|
|
529
|
-
for (let l = 0; l <
|
|
530
|
-
|
|
531
|
-
|
|
529
|
+
for (let l = 0; l < Ae.length; l += 2)
|
|
530
|
+
Ae[l][0](Ae[l + 1]);
|
|
531
|
+
Ae.length = 0;
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
}
|
|
@@ -537,18 +537,18 @@ function Ke(e, t = ee) {
|
|
|
537
537
|
}
|
|
538
538
|
function a(s, u = ee) {
|
|
539
539
|
const l = [s, u];
|
|
540
|
-
return
|
|
541
|
-
|
|
540
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || ee), s(e), () => {
|
|
541
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
542
542
|
};
|
|
543
543
|
}
|
|
544
544
|
return { set: i, update: o, subscribe: a };
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
const
|
|
546
|
+
function Ne(e, t, r) {
|
|
547
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
548
548
|
if (!i.every(Boolean))
|
|
549
549
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
550
550
|
const o = t.length < 2;
|
|
551
|
-
return
|
|
551
|
+
return Sn(r, (a, s) => {
|
|
552
552
|
let u = !1;
|
|
553
553
|
const l = [];
|
|
554
554
|
let h = 0, c = ee;
|
|
@@ -556,10 +556,10 @@ function Ie(e, t, n) {
|
|
|
556
556
|
if (h)
|
|
557
557
|
return;
|
|
558
558
|
c();
|
|
559
|
-
const d = t(
|
|
560
|
-
o ? a(d) : c =
|
|
559
|
+
const d = t(n ? l[0] : l, a, s);
|
|
560
|
+
o ? a(d) : c = At(d) ? d : ee;
|
|
561
561
|
}, _ = i.map(
|
|
562
|
-
(d, g) =>
|
|
562
|
+
(d, g) => sr(
|
|
563
563
|
d,
|
|
564
564
|
(v) => {
|
|
565
565
|
l[g] = v, h &= ~(1 << g), u && m();
|
|
@@ -570,246 +570,240 @@ function Ie(e, t, n) {
|
|
|
570
570
|
)
|
|
571
571
|
);
|
|
572
572
|
return u = !0, m(), function() {
|
|
573
|
-
|
|
573
|
+
xe(_), c(), u = !1;
|
|
574
574
|
};
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Tn(e) {
|
|
578
578
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
579
579
|
}
|
|
580
|
-
var
|
|
581
|
-
return
|
|
580
|
+
var On = function(t) {
|
|
581
|
+
return Hn(t) && !An(t);
|
|
582
582
|
};
|
|
583
|
-
function
|
|
583
|
+
function Hn(e) {
|
|
584
584
|
return !!e && typeof e == "object";
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function An(e) {
|
|
587
587
|
var t = Object.prototype.toString.call(e);
|
|
588
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
588
|
+
return t === "[object RegExp]" || t === "[object Date]" || Pn(e);
|
|
589
589
|
}
|
|
590
|
-
var
|
|
591
|
-
function
|
|
592
|
-
return e.$$typeof ===
|
|
590
|
+
var Cn = typeof Symbol == "function" && Symbol.for, Bn = Cn ? Symbol.for("react.element") : 60103;
|
|
591
|
+
function Pn(e) {
|
|
592
|
+
return e.$$typeof === Bn;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Mn(e) {
|
|
595
595
|
return Array.isArray(e) ? [] : {};
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
597
|
+
function Fe(e, t) {
|
|
598
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Pe(Mn(e), e, t) : e;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
return e.concat(t).map(function(
|
|
602
|
-
return
|
|
600
|
+
function Ln(e, t, r) {
|
|
601
|
+
return e.concat(t).map(function(n) {
|
|
602
|
+
return Fe(n, r);
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function In(e, t) {
|
|
606
606
|
if (!t.customMerge)
|
|
607
|
-
return
|
|
608
|
-
var
|
|
609
|
-
return typeof
|
|
607
|
+
return Pe;
|
|
608
|
+
var r = t.customMerge(e);
|
|
609
|
+
return typeof r == "function" ? r : Pe;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Nn(e) {
|
|
612
612
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
613
613
|
return Object.propertyIsEnumerable.call(e, t);
|
|
614
614
|
}) : [];
|
|
615
615
|
}
|
|
616
616
|
function Ut(e) {
|
|
617
|
-
return Object.keys(e).concat(
|
|
617
|
+
return Object.keys(e).concat(Nn(e));
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function lr(e, t) {
|
|
620
620
|
try {
|
|
621
621
|
return t in e;
|
|
622
|
-
} catch (
|
|
622
|
+
} catch (r) {
|
|
623
623
|
return !1;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
return
|
|
626
|
+
function Rn(e, t) {
|
|
627
|
+
return lr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
var
|
|
631
|
-
return
|
|
632
|
-
|
|
629
|
+
function kn(e, t, r) {
|
|
630
|
+
var n = {};
|
|
631
|
+
return r.isMergeableObject(e) && Ut(e).forEach(function(i) {
|
|
632
|
+
n[i] = Fe(e[i], r);
|
|
633
633
|
}), Ut(t).forEach(function(i) {
|
|
634
|
-
|
|
635
|
-
}),
|
|
634
|
+
Rn(e, i) || (lr(e, i) && r.isMergeableObject(t[i]) ? n[i] = In(i, r)(e[i], t[i], r) : n[i] = Fe(t[i], r));
|
|
635
|
+
}), n;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
|
|
639
|
-
var
|
|
640
|
-
return o ?
|
|
637
|
+
function Pe(e, t, r) {
|
|
638
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ln, r.isMergeableObject = r.isMergeableObject || On, r.cloneUnlessOtherwiseSpecified = Fe;
|
|
639
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
640
|
+
return o ? n ? r.arrayMerge(e, t, r) : kn(e, t, r) : Fe(t, r);
|
|
641
641
|
}
|
|
642
|
-
|
|
642
|
+
Pe.all = function(t, r) {
|
|
643
643
|
if (!Array.isArray(t))
|
|
644
644
|
throw new Error("first argument should be an array");
|
|
645
|
-
return t.reduce(function(
|
|
646
|
-
return
|
|
645
|
+
return t.reduce(function(n, i) {
|
|
646
|
+
return Pe(n, i, r);
|
|
647
647
|
}, {});
|
|
648
648
|
};
|
|
649
|
-
var
|
|
650
|
-
const
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
659
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
660
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
661
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
662
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
663
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
664
|
-
***************************************************************************** */
|
|
665
|
-
var bt = function(e, t) {
|
|
666
|
-
return bt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
667
|
-
n.__proto__ = r;
|
|
668
|
-
} || function(n, r) {
|
|
669
|
-
for (var i in r)
|
|
670
|
-
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
671
|
-
}, bt(e, t);
|
|
649
|
+
var Dn = Pe, Un = Dn;
|
|
650
|
+
const Gn = /* @__PURE__ */ Tn(Un);
|
|
651
|
+
var _t = function(e, t) {
|
|
652
|
+
return _t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
653
|
+
r.__proto__ = n;
|
|
654
|
+
} || function(r, n) {
|
|
655
|
+
for (var i in n)
|
|
656
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
657
|
+
}, _t(e, t);
|
|
672
658
|
};
|
|
673
|
-
function
|
|
659
|
+
function rt(e, t) {
|
|
674
660
|
if (typeof t != "function" && t !== null)
|
|
675
661
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
676
|
-
|
|
677
|
-
function
|
|
662
|
+
_t(e, t);
|
|
663
|
+
function r() {
|
|
678
664
|
this.constructor = e;
|
|
679
665
|
}
|
|
680
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
681
|
-
}
|
|
682
|
-
var
|
|
683
|
-
return
|
|
684
|
-
for (var
|
|
685
|
-
|
|
686
|
-
for (var o in
|
|
687
|
-
Object.prototype.hasOwnProperty.call(
|
|
666
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
667
|
+
}
|
|
668
|
+
var le = function() {
|
|
669
|
+
return le = Object.assign || function(t) {
|
|
670
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
671
|
+
r = arguments[n];
|
|
672
|
+
for (var o in r)
|
|
673
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
688
674
|
}
|
|
689
675
|
return t;
|
|
690
|
-
},
|
|
676
|
+
}, le.apply(this, arguments);
|
|
691
677
|
};
|
|
692
|
-
function
|
|
693
|
-
var
|
|
694
|
-
for (var
|
|
695
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
678
|
+
function Fn(e, t) {
|
|
679
|
+
var r = {};
|
|
680
|
+
for (var n in e)
|
|
681
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
696
682
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
697
|
-
for (var i = 0,
|
|
698
|
-
t.indexOf(
|
|
699
|
-
return
|
|
683
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
684
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
685
|
+
return r;
|
|
700
686
|
}
|
|
701
|
-
function
|
|
702
|
-
if (arguments.length === 2)
|
|
703
|
-
for (var
|
|
704
|
-
(o || !(
|
|
705
|
-
return e.concat(o || t);
|
|
687
|
+
function ct(e, t, r) {
|
|
688
|
+
if (r || arguments.length === 2)
|
|
689
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
690
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
691
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
706
692
|
}
|
|
707
|
-
function
|
|
708
|
-
var
|
|
693
|
+
function ft(e, t) {
|
|
694
|
+
var r = t && t.cache ? t.cache : Zn, n = t && t.serializer ? t.serializer : Xn, i = t && t.strategy ? t.strategy : $n;
|
|
709
695
|
return i(e, {
|
|
710
|
-
cache:
|
|
711
|
-
serializer:
|
|
696
|
+
cache: r,
|
|
697
|
+
serializer: n
|
|
712
698
|
});
|
|
713
699
|
}
|
|
714
|
-
function
|
|
700
|
+
function jn(e) {
|
|
715
701
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
716
702
|
}
|
|
717
|
-
function
|
|
718
|
-
var i =
|
|
719
|
-
return typeof o == "undefined" && (o = e.call(this,
|
|
703
|
+
function Vn(e, t, r, n) {
|
|
704
|
+
var i = jn(n) ? n : r(n), o = t.get(i);
|
|
705
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
720
706
|
}
|
|
721
|
-
function
|
|
722
|
-
var
|
|
723
|
-
return typeof o == "undefined" && (o = e.apply(this,
|
|
707
|
+
function ur(e, t, r) {
|
|
708
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
709
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
724
710
|
}
|
|
725
|
-
function
|
|
726
|
-
return
|
|
711
|
+
function hr(e, t, r, n, i) {
|
|
712
|
+
return r.bind(t, e, n, i);
|
|
727
713
|
}
|
|
728
|
-
function
|
|
729
|
-
var
|
|
730
|
-
return
|
|
714
|
+
function $n(e, t) {
|
|
715
|
+
var r = e.length === 1 ? Vn : ur;
|
|
716
|
+
return hr(e, this, r, t.cache.create(), t.serializer);
|
|
731
717
|
}
|
|
732
|
-
function
|
|
733
|
-
return
|
|
718
|
+
function zn(e, t) {
|
|
719
|
+
return hr(e, this, ur, t.cache.create(), t.serializer);
|
|
734
720
|
}
|
|
735
|
-
function
|
|
736
|
-
return Ot(e, this, hn, t.cache.create(), t.serializer);
|
|
737
|
-
}
|
|
738
|
-
var Xr = function() {
|
|
721
|
+
var Xn = function() {
|
|
739
722
|
return JSON.stringify(arguments);
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
723
|
+
}, Wn = (
|
|
724
|
+
/** @class */
|
|
725
|
+
function() {
|
|
726
|
+
function e() {
|
|
727
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
728
|
+
}
|
|
729
|
+
return e.prototype.get = function(t) {
|
|
730
|
+
return this.cache[t];
|
|
731
|
+
}, e.prototype.set = function(t, r) {
|
|
732
|
+
this.cache[t] = r;
|
|
733
|
+
}, e;
|
|
734
|
+
}()
|
|
735
|
+
), Zn = {
|
|
751
736
|
create: function() {
|
|
752
|
-
return new
|
|
737
|
+
return new Wn();
|
|
753
738
|
}
|
|
754
|
-
},
|
|
755
|
-
variadic:
|
|
756
|
-
|
|
757
|
-
|
|
739
|
+
}, pt = {
|
|
740
|
+
variadic: zn
|
|
741
|
+
}, Ye = function() {
|
|
742
|
+
return Ye = Object.assign || function(t) {
|
|
743
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
744
|
+
r = arguments[n];
|
|
745
|
+
for (var o in r)
|
|
746
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
747
|
+
}
|
|
748
|
+
return t;
|
|
749
|
+
}, Ye.apply(this, arguments);
|
|
750
|
+
};
|
|
751
|
+
var w;
|
|
758
752
|
(function(e) {
|
|
759
753
|
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";
|
|
760
754
|
})(w || (w = {}));
|
|
761
|
-
var
|
|
755
|
+
var L;
|
|
762
756
|
(function(e) {
|
|
763
757
|
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";
|
|
764
|
-
})(
|
|
765
|
-
var
|
|
758
|
+
})(L || (L = {}));
|
|
759
|
+
var Me;
|
|
766
760
|
(function(e) {
|
|
767
761
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
768
|
-
})(
|
|
762
|
+
})(Me || (Me = {}));
|
|
769
763
|
function Gt(e) {
|
|
770
|
-
return e.type ===
|
|
764
|
+
return e.type === L.literal;
|
|
771
765
|
}
|
|
772
|
-
function
|
|
773
|
-
return e.type ===
|
|
766
|
+
function qn(e) {
|
|
767
|
+
return e.type === L.argument;
|
|
774
768
|
}
|
|
775
|
-
function
|
|
776
|
-
return e.type ===
|
|
769
|
+
function cr(e) {
|
|
770
|
+
return e.type === L.number;
|
|
777
771
|
}
|
|
778
|
-
function
|
|
779
|
-
return e.type ===
|
|
772
|
+
function fr(e) {
|
|
773
|
+
return e.type === L.date;
|
|
780
774
|
}
|
|
781
|
-
function
|
|
782
|
-
return e.type ===
|
|
775
|
+
function pr(e) {
|
|
776
|
+
return e.type === L.time;
|
|
783
777
|
}
|
|
784
|
-
function
|
|
785
|
-
return e.type ===
|
|
778
|
+
function mr(e) {
|
|
779
|
+
return e.type === L.select;
|
|
786
780
|
}
|
|
787
|
-
function
|
|
788
|
-
return e.type ===
|
|
781
|
+
function dr(e) {
|
|
782
|
+
return e.type === L.plural;
|
|
789
783
|
}
|
|
790
|
-
function
|
|
791
|
-
return e.type ===
|
|
784
|
+
function Qn(e) {
|
|
785
|
+
return e.type === L.pound;
|
|
792
786
|
}
|
|
793
|
-
function
|
|
794
|
-
return e.type ===
|
|
787
|
+
function gr(e) {
|
|
788
|
+
return e.type === L.tag;
|
|
795
789
|
}
|
|
796
|
-
function
|
|
797
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
790
|
+
function br(e) {
|
|
791
|
+
return !!(e && typeof e == "object" && e.type === Me.number);
|
|
798
792
|
}
|
|
799
|
-
function
|
|
800
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
793
|
+
function Et(e) {
|
|
794
|
+
return !!(e && typeof e == "object" && e.type === Me.dateTime);
|
|
801
795
|
}
|
|
802
|
-
var
|
|
803
|
-
function
|
|
796
|
+
var yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Jn = /(?:[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;
|
|
797
|
+
function Yn(e) {
|
|
804
798
|
var t = {};
|
|
805
|
-
return e.replace(
|
|
806
|
-
var
|
|
807
|
-
switch (
|
|
799
|
+
return e.replace(Jn, function(r) {
|
|
800
|
+
var n = r.length;
|
|
801
|
+
switch (r[0]) {
|
|
808
802
|
case "G":
|
|
809
|
-
t.era =
|
|
803
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
810
804
|
break;
|
|
811
805
|
case "y":
|
|
812
|
-
t.year =
|
|
806
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
813
807
|
break;
|
|
814
808
|
case "Y":
|
|
815
809
|
case "u":
|
|
@@ -821,30 +815,30 @@ function Jr(e) {
|
|
|
821
815
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
822
816
|
case "M":
|
|
823
817
|
case "L":
|
|
824
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
818
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
825
819
|
break;
|
|
826
820
|
case "w":
|
|
827
821
|
case "W":
|
|
828
822
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
829
823
|
case "d":
|
|
830
|
-
t.day = ["numeric", "2-digit"][
|
|
824
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
831
825
|
break;
|
|
832
826
|
case "D":
|
|
833
827
|
case "F":
|
|
834
828
|
case "g":
|
|
835
829
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
836
830
|
case "E":
|
|
837
|
-
t.weekday =
|
|
831
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
838
832
|
break;
|
|
839
833
|
case "e":
|
|
840
|
-
if (
|
|
834
|
+
if (n < 4)
|
|
841
835
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
842
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
836
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
843
837
|
break;
|
|
844
838
|
case "c":
|
|
845
|
-
if (
|
|
839
|
+
if (n < 4)
|
|
846
840
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
847
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
841
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
848
842
|
break;
|
|
849
843
|
case "a":
|
|
850
844
|
t.hour12 = !0;
|
|
@@ -853,32 +847,32 @@ function Jr(e) {
|
|
|
853
847
|
case "B":
|
|
854
848
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
855
849
|
case "h":
|
|
856
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
850
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
857
851
|
break;
|
|
858
852
|
case "H":
|
|
859
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
853
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
860
854
|
break;
|
|
861
855
|
case "K":
|
|
862
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
856
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
863
857
|
break;
|
|
864
858
|
case "k":
|
|
865
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
859
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
866
860
|
break;
|
|
867
861
|
case "j":
|
|
868
862
|
case "J":
|
|
869
863
|
case "C":
|
|
870
864
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
871
865
|
case "m":
|
|
872
|
-
t.minute = ["numeric", "2-digit"][
|
|
866
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
873
867
|
break;
|
|
874
868
|
case "s":
|
|
875
|
-
t.second = ["numeric", "2-digit"][
|
|
869
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
876
870
|
break;
|
|
877
871
|
case "S":
|
|
878
872
|
case "A":
|
|
879
873
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
880
874
|
case "z":
|
|
881
|
-
t.timeZoneName =
|
|
875
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
882
876
|
break;
|
|
883
877
|
case "Z":
|
|
884
878
|
case "O":
|
|
@@ -891,14 +885,24 @@ function Jr(e) {
|
|
|
891
885
|
return "";
|
|
892
886
|
}), t;
|
|
893
887
|
}
|
|
894
|
-
var
|
|
895
|
-
function
|
|
888
|
+
var R = function() {
|
|
889
|
+
return R = Object.assign || function(t) {
|
|
890
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
891
|
+
r = arguments[n];
|
|
892
|
+
for (var o in r)
|
|
893
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
894
|
+
}
|
|
895
|
+
return t;
|
|
896
|
+
}, R.apply(this, arguments);
|
|
897
|
+
};
|
|
898
|
+
var Kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
899
|
+
function ei(e) {
|
|
896
900
|
if (e.length === 0)
|
|
897
901
|
throw new Error("Number skeleton cannot be empty");
|
|
898
|
-
for (var t = e.split(
|
|
902
|
+
for (var t = e.split(Kn).filter(function(m) {
|
|
899
903
|
return m.length > 0;
|
|
900
|
-
}),
|
|
901
|
-
var o = i[
|
|
904
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
905
|
+
var o = i[n], a = o.split("/");
|
|
902
906
|
if (a.length === 0)
|
|
903
907
|
throw new Error("Invalid number skeleton");
|
|
904
908
|
for (var s = a[0], u = a.slice(1), l = 0, h = u; l < h.length; l++) {
|
|
@@ -906,21 +910,21 @@ function Kr(e) {
|
|
|
906
910
|
if (c.length === 0)
|
|
907
911
|
throw new Error("Invalid number skeleton");
|
|
908
912
|
}
|
|
909
|
-
|
|
913
|
+
r.push({ stem: s, options: u });
|
|
910
914
|
}
|
|
911
|
-
return
|
|
915
|
+
return r;
|
|
912
916
|
}
|
|
913
|
-
function
|
|
917
|
+
function ti(e) {
|
|
914
918
|
return e.replace(/^(.*?)-/, "");
|
|
915
919
|
}
|
|
916
|
-
var Ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
920
|
+
var Ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, _r = /^(@+)?(\+|#+)?[rs]?$/g, ri = /(\*)(0+)|(#+)(0+)|(0+)/g, Er = /^(0+)$/;
|
|
917
921
|
function jt(e) {
|
|
918
922
|
var t = {};
|
|
919
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
920
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
923
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(_r, function(r, n, i) {
|
|
924
|
+
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)), "";
|
|
921
925
|
}), t;
|
|
922
926
|
}
|
|
923
|
-
function
|
|
927
|
+
function vr(e) {
|
|
924
928
|
switch (e) {
|
|
925
929
|
case "sign-auto":
|
|
926
930
|
return {
|
|
@@ -967,20 +971,20 @@ function ni(e) {
|
|
|
967
971
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
968
972
|
notation: "scientific"
|
|
969
973
|
}, e = e.slice(1)), t) {
|
|
970
|
-
var
|
|
971
|
-
if (
|
|
974
|
+
var r = e.slice(0, 2);
|
|
975
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Er.test(e))
|
|
972
976
|
throw new Error("Malformed concise eng/scientific notation");
|
|
973
977
|
t.minimumIntegerDigits = e.length;
|
|
974
978
|
}
|
|
975
979
|
return t;
|
|
976
980
|
}
|
|
977
981
|
function Vt(e) {
|
|
978
|
-
var t = {},
|
|
979
|
-
return
|
|
982
|
+
var t = {}, r = vr(e);
|
|
983
|
+
return r || t;
|
|
980
984
|
}
|
|
981
|
-
function
|
|
982
|
-
for (var t = {},
|
|
983
|
-
var i = r
|
|
985
|
+
function ii(e) {
|
|
986
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
987
|
+
var i = n[r];
|
|
984
988
|
switch (i.stem) {
|
|
985
989
|
case "percent":
|
|
986
990
|
case "%":
|
|
@@ -1002,7 +1006,7 @@ function ri(e) {
|
|
|
1002
1006
|
continue;
|
|
1003
1007
|
case "measure-unit":
|
|
1004
1008
|
case "unit":
|
|
1005
|
-
t.style = "unit", t.unit =
|
|
1009
|
+
t.style = "unit", t.unit = ti(i.options[0]);
|
|
1006
1010
|
continue;
|
|
1007
1011
|
case "compact-short":
|
|
1008
1012
|
case "K":
|
|
@@ -1013,13 +1017,13 @@ function ri(e) {
|
|
|
1013
1017
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1014
1018
|
continue;
|
|
1015
1019
|
case "scientific":
|
|
1016
|
-
t =
|
|
1017
|
-
return
|
|
1020
|
+
t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1021
|
+
return R(R({}, u), Vt(l));
|
|
1018
1022
|
}, {}));
|
|
1019
1023
|
continue;
|
|
1020
1024
|
case "engineering":
|
|
1021
|
-
t =
|
|
1022
|
-
return
|
|
1025
|
+
t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1026
|
+
return R(R({}, u), Vt(l));
|
|
1023
1027
|
}, {}));
|
|
1024
1028
|
continue;
|
|
1025
1029
|
case "notation-simple":
|
|
@@ -1064,7 +1068,7 @@ function ri(e) {
|
|
|
1064
1068
|
case "integer-width":
|
|
1065
1069
|
if (i.options.length > 1)
|
|
1066
1070
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1067
|
-
i.options[0].replace(
|
|
1071
|
+
i.options[0].replace(ri, function(u, l, h, c, m, _) {
|
|
1068
1072
|
if (l)
|
|
1069
1073
|
t.minimumIntegerDigits = h.length;
|
|
1070
1074
|
else {
|
|
@@ -1077,7 +1081,7 @@ function ri(e) {
|
|
|
1077
1081
|
});
|
|
1078
1082
|
continue;
|
|
1079
1083
|
}
|
|
1080
|
-
if (
|
|
1084
|
+
if (Er.test(i.stem)) {
|
|
1081
1085
|
t.minimumIntegerDigits = i.stem.length;
|
|
1082
1086
|
continue;
|
|
1083
1087
|
}
|
|
@@ -1088,21 +1092,21 @@ function ri(e) {
|
|
|
1088
1092
|
return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && _ ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1089
1093
|
});
|
|
1090
1094
|
var o = i.options[0];
|
|
1091
|
-
o === "w" ? t =
|
|
1095
|
+
o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), jt(o)));
|
|
1092
1096
|
continue;
|
|
1093
1097
|
}
|
|
1094
|
-
if (
|
|
1095
|
-
t =
|
|
1098
|
+
if (_r.test(i.stem)) {
|
|
1099
|
+
t = R(R({}, t), jt(i.stem));
|
|
1096
1100
|
continue;
|
|
1097
1101
|
}
|
|
1098
|
-
var a =
|
|
1099
|
-
a && (t =
|
|
1102
|
+
var a = vr(i.stem);
|
|
1103
|
+
a && (t = R(R({}, t), a));
|
|
1100
1104
|
var s = ni(i.stem);
|
|
1101
|
-
s && (t =
|
|
1105
|
+
s && (t = R(R({}, t), s));
|
|
1102
1106
|
}
|
|
1103
1107
|
return t;
|
|
1104
1108
|
}
|
|
1105
|
-
var
|
|
1109
|
+
var We = {
|
|
1106
1110
|
"001": [
|
|
1107
1111
|
"H",
|
|
1108
1112
|
"h"
|
|
@@ -2517,23 +2521,23 @@ var Xe = {
|
|
|
2517
2521
|
"h"
|
|
2518
2522
|
]
|
|
2519
2523
|
};
|
|
2520
|
-
function
|
|
2521
|
-
for (var
|
|
2522
|
-
var i = e.charAt(
|
|
2524
|
+
function oi(e, t) {
|
|
2525
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2526
|
+
var i = e.charAt(n);
|
|
2523
2527
|
if (i === "j") {
|
|
2524
|
-
for (var o = 0;
|
|
2525
|
-
o++,
|
|
2526
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
2528
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2529
|
+
o++, n++;
|
|
2530
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = si(t);
|
|
2527
2531
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2528
|
-
|
|
2532
|
+
r += u;
|
|
2529
2533
|
for (; a-- > 0; )
|
|
2530
|
-
|
|
2534
|
+
r = l + r;
|
|
2531
2535
|
} else
|
|
2532
|
-
i === "J" ?
|
|
2536
|
+
i === "J" ? r += "H" : r += i;
|
|
2533
2537
|
}
|
|
2534
|
-
return
|
|
2538
|
+
return r;
|
|
2535
2539
|
}
|
|
2536
|
-
function
|
|
2540
|
+
function si(e) {
|
|
2537
2541
|
var t = e.hourCycle;
|
|
2538
2542
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2539
2543
|
e.hourCycles && // @ts-ignore
|
|
@@ -2550,73 +2554,73 @@ function oi(e) {
|
|
|
2550
2554
|
default:
|
|
2551
2555
|
throw new Error("Invalid hourCycle");
|
|
2552
2556
|
}
|
|
2553
|
-
var
|
|
2554
|
-
|
|
2555
|
-
var i =
|
|
2557
|
+
var r = e.language, n;
|
|
2558
|
+
r !== "root" && (n = e.maximize().region);
|
|
2559
|
+
var i = We[n || ""] || We[r || ""] || We["".concat(r, "-001")] || We["001"];
|
|
2556
2560
|
return i[0];
|
|
2557
2561
|
}
|
|
2558
|
-
var
|
|
2562
|
+
var mt, ai = new RegExp("^".concat(yr.source, "*")), li = new RegExp("".concat(yr.source, "*$"));
|
|
2559
2563
|
function T(e, t) {
|
|
2560
2564
|
return { start: e, end: t };
|
|
2561
2565
|
}
|
|
2562
|
-
var
|
|
2566
|
+
var ui = !!String.prototype.startsWith && "_a".startsWith("a", 1), hi = !!String.fromCodePoint, ci = !!Object.fromEntries, fi = !!String.prototype.codePointAt, pi = !!String.prototype.trimStart, mi = !!String.prototype.trimEnd, di = !!Number.isSafeInteger, gi = di ? Number.isSafeInteger : function(e) {
|
|
2563
2567
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2564
|
-
},
|
|
2568
|
+
}, vt = !0;
|
|
2565
2569
|
try {
|
|
2566
|
-
var
|
|
2567
|
-
|
|
2570
|
+
var bi = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2571
|
+
vt = ((mt = bi.exec("a")) === null || mt === void 0 ? void 0 : mt[0]) === "a";
|
|
2568
2572
|
} catch (e) {
|
|
2569
|
-
|
|
2573
|
+
vt = !1;
|
|
2570
2574
|
}
|
|
2571
|
-
var $t =
|
|
2575
|
+
var $t = ui ? (
|
|
2572
2576
|
// Native
|
|
2573
|
-
function(t,
|
|
2574
|
-
return t.startsWith(
|
|
2577
|
+
function(t, r, n) {
|
|
2578
|
+
return t.startsWith(r, n);
|
|
2575
2579
|
}
|
|
2576
2580
|
) : (
|
|
2577
2581
|
// For IE11
|
|
2578
|
-
function(t,
|
|
2579
|
-
return t.slice(
|
|
2582
|
+
function(t, r, n) {
|
|
2583
|
+
return t.slice(n, n + r.length) === r;
|
|
2580
2584
|
}
|
|
2581
|
-
),
|
|
2585
|
+
), xt = hi ? String.fromCodePoint : (
|
|
2582
2586
|
// IE11
|
|
2583
2587
|
function() {
|
|
2584
|
-
for (var t = [],
|
|
2585
|
-
t[
|
|
2586
|
-
for (var
|
|
2588
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2589
|
+
t[r] = arguments[r];
|
|
2590
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
2587
2591
|
if (a = t[o++], a > 1114111)
|
|
2588
2592
|
throw RangeError(a + " is not a valid code point");
|
|
2589
|
-
|
|
2593
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2590
2594
|
}
|
|
2591
|
-
return
|
|
2595
|
+
return n;
|
|
2592
2596
|
}
|
|
2593
2597
|
), zt = (
|
|
2594
2598
|
// native
|
|
2595
|
-
|
|
2599
|
+
ci ? Object.fromEntries : (
|
|
2596
2600
|
// Ponyfill
|
|
2597
2601
|
function(t) {
|
|
2598
|
-
for (var
|
|
2599
|
-
var o = i[
|
|
2600
|
-
|
|
2602
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2603
|
+
var o = i[n], a = o[0], s = o[1];
|
|
2604
|
+
r[a] = s;
|
|
2601
2605
|
}
|
|
2602
|
-
return
|
|
2606
|
+
return r;
|
|
2603
2607
|
}
|
|
2604
2608
|
)
|
|
2605
|
-
),
|
|
2609
|
+
), xr = fi ? (
|
|
2606
2610
|
// Native
|
|
2607
|
-
function(t,
|
|
2608
|
-
return t.codePointAt(
|
|
2611
|
+
function(t, r) {
|
|
2612
|
+
return t.codePointAt(r);
|
|
2609
2613
|
}
|
|
2610
2614
|
) : (
|
|
2611
2615
|
// IE 11
|
|
2612
|
-
function(t,
|
|
2613
|
-
var
|
|
2614
|
-
if (!(
|
|
2615
|
-
var i = t.charCodeAt(
|
|
2616
|
-
return i < 55296 || i > 56319 ||
|
|
2616
|
+
function(t, r) {
|
|
2617
|
+
var n = t.length;
|
|
2618
|
+
if (!(r < 0 || r >= n)) {
|
|
2619
|
+
var i = t.charCodeAt(r), o;
|
|
2620
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2617
2621
|
}
|
|
2618
2622
|
}
|
|
2619
|
-
),
|
|
2623
|
+
), yi = pi ? (
|
|
2620
2624
|
// Native
|
|
2621
2625
|
function(t) {
|
|
2622
2626
|
return t.trimStart();
|
|
@@ -2624,9 +2628,9 @@ var $t = li ? (
|
|
|
2624
2628
|
) : (
|
|
2625
2629
|
// Ponyfill
|
|
2626
2630
|
function(t) {
|
|
2627
|
-
return t.replace(
|
|
2631
|
+
return t.replace(ai, "");
|
|
2628
2632
|
}
|
|
2629
|
-
),
|
|
2633
|
+
), _i = mi ? (
|
|
2630
2634
|
// Native
|
|
2631
2635
|
function(t) {
|
|
2632
2636
|
return t.trimEnd();
|
|
@@ -2634,69 +2638,69 @@ var $t = li ? (
|
|
|
2634
2638
|
) : (
|
|
2635
2639
|
// Ponyfill
|
|
2636
2640
|
function(t) {
|
|
2637
|
-
return t.replace(
|
|
2641
|
+
return t.replace(li, "");
|
|
2638
2642
|
}
|
|
2639
2643
|
);
|
|
2640
|
-
function
|
|
2644
|
+
function wr(e, t) {
|
|
2641
2645
|
return new RegExp(e, t);
|
|
2642
2646
|
}
|
|
2643
|
-
var
|
|
2644
|
-
if (
|
|
2645
|
-
var Xt =
|
|
2646
|
-
|
|
2647
|
-
var
|
|
2648
|
-
Xt.lastIndex =
|
|
2647
|
+
var wt;
|
|
2648
|
+
if (vt) {
|
|
2649
|
+
var Xt = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2650
|
+
wt = function(t, r) {
|
|
2651
|
+
var n;
|
|
2652
|
+
Xt.lastIndex = r;
|
|
2649
2653
|
var i = Xt.exec(t);
|
|
2650
|
-
return (
|
|
2654
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2651
2655
|
};
|
|
2652
2656
|
} else
|
|
2653
|
-
|
|
2654
|
-
for (var
|
|
2655
|
-
var i =
|
|
2656
|
-
if (i === void 0 ||
|
|
2657
|
+
wt = function(t, r) {
|
|
2658
|
+
for (var n = []; ; ) {
|
|
2659
|
+
var i = xr(t, r);
|
|
2660
|
+
if (i === void 0 || Sr(i) || wi(i))
|
|
2657
2661
|
break;
|
|
2658
|
-
|
|
2662
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2659
2663
|
}
|
|
2660
|
-
return
|
|
2664
|
+
return xt.apply(void 0, n);
|
|
2661
2665
|
};
|
|
2662
|
-
var
|
|
2666
|
+
var Ei = (
|
|
2663
2667
|
/** @class */
|
|
2664
2668
|
function() {
|
|
2665
|
-
function e(t,
|
|
2666
|
-
|
|
2669
|
+
function e(t, r) {
|
|
2670
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
2667
2671
|
}
|
|
2668
2672
|
return e.prototype.parse = function() {
|
|
2669
2673
|
if (this.offset() !== 0)
|
|
2670
2674
|
throw Error("parser can only be used once");
|
|
2671
2675
|
return this.parseMessage(0, "", !1);
|
|
2672
|
-
}, e.prototype.parseMessage = function(t,
|
|
2676
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2673
2677
|
for (var i = []; !this.isEOF(); ) {
|
|
2674
2678
|
var o = this.char();
|
|
2675
2679
|
if (o === 123) {
|
|
2676
|
-
var a = this.parseArgument(t,
|
|
2680
|
+
var a = this.parseArgument(t, n);
|
|
2677
2681
|
if (a.err)
|
|
2678
2682
|
return a;
|
|
2679
2683
|
i.push(a.val);
|
|
2680
2684
|
} else {
|
|
2681
2685
|
if (o === 125 && t > 0)
|
|
2682
2686
|
break;
|
|
2683
|
-
if (o === 35 && (
|
|
2687
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2684
2688
|
var s = this.clonePosition();
|
|
2685
2689
|
this.bump(), i.push({
|
|
2686
|
-
type:
|
|
2690
|
+
type: L.pound,
|
|
2687
2691
|
location: T(s, this.clonePosition())
|
|
2688
2692
|
});
|
|
2689
2693
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2690
|
-
if (
|
|
2694
|
+
if (n)
|
|
2691
2695
|
break;
|
|
2692
2696
|
return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
|
2693
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2694
|
-
var a = this.parseTag(t,
|
|
2697
|
+
} else if (o === 60 && !this.ignoreTag && St(this.peek() || 0)) {
|
|
2698
|
+
var a = this.parseTag(t, r);
|
|
2695
2699
|
if (a.err)
|
|
2696
2700
|
return a;
|
|
2697
2701
|
i.push(a.val);
|
|
2698
2702
|
} else {
|
|
2699
|
-
var a = this.parseLiteral(t,
|
|
2703
|
+
var a = this.parseLiteral(t, r);
|
|
2700
2704
|
if (a.err)
|
|
2701
2705
|
return a;
|
|
2702
2706
|
i.push(a.val);
|
|
@@ -2704,54 +2708,54 @@ var _i = (
|
|
|
2704
2708
|
}
|
|
2705
2709
|
}
|
|
2706
2710
|
return { val: i, err: null };
|
|
2707
|
-
}, e.prototype.parseTag = function(t,
|
|
2708
|
-
var
|
|
2711
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
2712
|
+
var n = this.clonePosition();
|
|
2709
2713
|
this.bump();
|
|
2710
2714
|
var i = this.parseTagName();
|
|
2711
2715
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2712
2716
|
return {
|
|
2713
2717
|
val: {
|
|
2714
|
-
type:
|
|
2718
|
+
type: L.literal,
|
|
2715
2719
|
value: "<".concat(i, "/>"),
|
|
2716
|
-
location: T(
|
|
2720
|
+
location: T(n, this.clonePosition())
|
|
2717
2721
|
},
|
|
2718
2722
|
err: null
|
|
2719
2723
|
};
|
|
2720
2724
|
if (this.bumpIf(">")) {
|
|
2721
|
-
var o = this.parseMessage(t + 1,
|
|
2725
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
2722
2726
|
if (o.err)
|
|
2723
2727
|
return o;
|
|
2724
2728
|
var a = o.val, s = this.clonePosition();
|
|
2725
2729
|
if (this.bumpIf("</")) {
|
|
2726
|
-
if (this.isEOF() || !
|
|
2730
|
+
if (this.isEOF() || !St(this.char()))
|
|
2727
2731
|
return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
|
|
2728
2732
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
2729
2733
|
return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, T(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2730
2734
|
val: {
|
|
2731
|
-
type:
|
|
2735
|
+
type: L.tag,
|
|
2732
2736
|
value: i,
|
|
2733
2737
|
children: a,
|
|
2734
|
-
location: T(
|
|
2738
|
+
location: T(n, this.clonePosition())
|
|
2735
2739
|
},
|
|
2736
2740
|
err: null
|
|
2737
2741
|
} : this.error(w.INVALID_TAG, T(s, this.clonePosition())));
|
|
2738
2742
|
} else
|
|
2739
|
-
return this.error(w.UNCLOSED_TAG, T(
|
|
2743
|
+
return this.error(w.UNCLOSED_TAG, T(n, this.clonePosition()));
|
|
2740
2744
|
} else
|
|
2741
|
-
return this.error(w.INVALID_TAG, T(
|
|
2745
|
+
return this.error(w.INVALID_TAG, T(n, this.clonePosition()));
|
|
2742
2746
|
}, e.prototype.parseTagName = function() {
|
|
2743
2747
|
var t = this.offset();
|
|
2744
|
-
for (this.bump(); !this.isEOF() &&
|
|
2748
|
+
for (this.bump(); !this.isEOF() && xi(this.char()); )
|
|
2745
2749
|
this.bump();
|
|
2746
2750
|
return this.message.slice(t, this.offset());
|
|
2747
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2748
|
-
for (var
|
|
2749
|
-
var o = this.tryParseQuote(
|
|
2751
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
2752
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2753
|
+
var o = this.tryParseQuote(r);
|
|
2750
2754
|
if (o) {
|
|
2751
2755
|
i += o;
|
|
2752
2756
|
continue;
|
|
2753
2757
|
}
|
|
2754
|
-
var a = this.tryParseUnquoted(t,
|
|
2758
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2755
2759
|
if (a) {
|
|
2756
2760
|
i += a;
|
|
2757
2761
|
continue;
|
|
@@ -2763,14 +2767,14 @@ var _i = (
|
|
|
2763
2767
|
}
|
|
2764
2768
|
break;
|
|
2765
2769
|
}
|
|
2766
|
-
var u = T(
|
|
2770
|
+
var u = T(n, this.clonePosition());
|
|
2767
2771
|
return {
|
|
2768
|
-
val: { type:
|
|
2772
|
+
val: { type: L.literal, value: i, location: u },
|
|
2769
2773
|
err: null
|
|
2770
2774
|
};
|
|
2771
2775
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2772
2776
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2773
|
-
!
|
|
2777
|
+
!vi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2774
2778
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2775
2779
|
if (this.isEOF() || this.char() !== 39)
|
|
2776
2780
|
return null;
|
|
@@ -2790,59 +2794,59 @@ var _i = (
|
|
|
2790
2794
|
return null;
|
|
2791
2795
|
}
|
|
2792
2796
|
this.bump();
|
|
2793
|
-
var
|
|
2797
|
+
var r = [this.char()];
|
|
2794
2798
|
for (this.bump(); !this.isEOF(); ) {
|
|
2795
|
-
var
|
|
2796
|
-
if (
|
|
2799
|
+
var n = this.char();
|
|
2800
|
+
if (n === 39)
|
|
2797
2801
|
if (this.peek() === 39)
|
|
2798
|
-
|
|
2802
|
+
r.push(39), this.bump();
|
|
2799
2803
|
else {
|
|
2800
2804
|
this.bump();
|
|
2801
2805
|
break;
|
|
2802
2806
|
}
|
|
2803
2807
|
else
|
|
2804
|
-
|
|
2808
|
+
r.push(n);
|
|
2805
2809
|
this.bump();
|
|
2806
2810
|
}
|
|
2807
|
-
return
|
|
2808
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2811
|
+
return xt.apply(void 0, r);
|
|
2812
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2809
2813
|
if (this.isEOF())
|
|
2810
2814
|
return null;
|
|
2811
|
-
var
|
|
2812
|
-
return
|
|
2813
|
-
}, e.prototype.parseArgument = function(t,
|
|
2814
|
-
var
|
|
2815
|
+
var n = this.char();
|
|
2816
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), xt(n));
|
|
2817
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
2818
|
+
var n = this.clonePosition();
|
|
2815
2819
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2816
|
-
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(
|
|
2820
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
|
2817
2821
|
if (this.char() === 125)
|
|
2818
|
-
return this.bump(), this.error(w.EMPTY_ARGUMENT, T(
|
|
2822
|
+
return this.bump(), this.error(w.EMPTY_ARGUMENT, T(n, this.clonePosition()));
|
|
2819
2823
|
var i = this.parseIdentifierIfPossible().value;
|
|
2820
2824
|
if (!i)
|
|
2821
|
-
return this.error(w.MALFORMED_ARGUMENT, T(
|
|
2825
|
+
return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
|
2822
2826
|
if (this.bumpSpace(), this.isEOF())
|
|
2823
|
-
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(
|
|
2827
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition()));
|
|
2824
2828
|
switch (this.char()) {
|
|
2825
2829
|
case 125:
|
|
2826
2830
|
return this.bump(), {
|
|
2827
2831
|
val: {
|
|
2828
|
-
type:
|
|
2832
|
+
type: L.argument,
|
|
2829
2833
|
// value does not include the opening and closing braces.
|
|
2830
2834
|
value: i,
|
|
2831
|
-
location: T(
|
|
2835
|
+
location: T(n, this.clonePosition())
|
|
2832
2836
|
},
|
|
2833
2837
|
err: null
|
|
2834
2838
|
};
|
|
2835
2839
|
case 44:
|
|
2836
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(
|
|
2840
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2837
2841
|
default:
|
|
2838
|
-
return this.error(w.MALFORMED_ARGUMENT, T(
|
|
2842
|
+
return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
|
2839
2843
|
}
|
|
2840
2844
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2841
|
-
var t = this.clonePosition(),
|
|
2845
|
+
var t = this.clonePosition(), r = this.offset(), n = wt(this.message, r), i = r + n.length;
|
|
2842
2846
|
this.bumpTo(i);
|
|
2843
2847
|
var o = this.clonePosition(), a = T(t, o);
|
|
2844
|
-
return { value:
|
|
2845
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2848
|
+
return { value: n, location: a };
|
|
2849
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2846
2850
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2847
2851
|
switch (s) {
|
|
2848
2852
|
case "":
|
|
@@ -2857,7 +2861,7 @@ var _i = (
|
|
|
2857
2861
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2858
2862
|
if (c.err)
|
|
2859
2863
|
return c;
|
|
2860
|
-
var m =
|
|
2864
|
+
var m = _i(c.val);
|
|
2861
2865
|
if (m.length === 0)
|
|
2862
2866
|
return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
2863
2867
|
var _ = T(h, this.clonePosition());
|
|
@@ -2868,34 +2872,34 @@ var _i = (
|
|
|
2868
2872
|
return d;
|
|
2869
2873
|
var g = T(i, this.clonePosition());
|
|
2870
2874
|
if (l && $t(l == null ? void 0 : l.style, "::", 0)) {
|
|
2871
|
-
var v =
|
|
2875
|
+
var v = yi(l.style.slice(2));
|
|
2872
2876
|
if (s === "number") {
|
|
2873
2877
|
var c = this.parseNumberSkeletonFromString(v, l.styleLocation);
|
|
2874
2878
|
return c.err ? c : {
|
|
2875
|
-
val: { type:
|
|
2879
|
+
val: { type: L.number, value: n, location: g, style: c.val },
|
|
2876
2880
|
err: null
|
|
2877
2881
|
};
|
|
2878
2882
|
} else {
|
|
2879
2883
|
if (v.length === 0)
|
|
2880
2884
|
return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
|
|
2881
2885
|
var S = v;
|
|
2882
|
-
this.locale && (S =
|
|
2886
|
+
this.locale && (S = oi(v, this.locale));
|
|
2883
2887
|
var m = {
|
|
2884
|
-
type:
|
|
2888
|
+
type: Me.dateTime,
|
|
2885
2889
|
pattern: S,
|
|
2886
2890
|
location: l.styleLocation,
|
|
2887
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2888
|
-
},
|
|
2891
|
+
parsedOptions: this.shouldParseSkeletons ? Yn(S) : {}
|
|
2892
|
+
}, P = s === "date" ? L.date : L.time;
|
|
2889
2893
|
return {
|
|
2890
|
-
val: { type:
|
|
2894
|
+
val: { type: P, value: n, location: g, style: m },
|
|
2891
2895
|
err: null
|
|
2892
2896
|
};
|
|
2893
2897
|
}
|
|
2894
2898
|
}
|
|
2895
2899
|
return {
|
|
2896
2900
|
val: {
|
|
2897
|
-
type: s === "number" ?
|
|
2898
|
-
value:
|
|
2901
|
+
type: s === "number" ? L.number : s === "date" ? L.date : L.time,
|
|
2902
|
+
value: n,
|
|
2899
2903
|
location: g,
|
|
2900
2904
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
2901
2905
|
},
|
|
@@ -2905,11 +2909,11 @@ var _i = (
|
|
|
2905
2909
|
case "plural":
|
|
2906
2910
|
case "selectordinal":
|
|
2907
2911
|
case "select": {
|
|
2908
|
-
var
|
|
2912
|
+
var I = this.clonePosition();
|
|
2909
2913
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2910
|
-
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(
|
|
2914
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(I, Ye({}, I)));
|
|
2911
2915
|
this.bumpSpace();
|
|
2912
|
-
var D = this.parseIdentifierIfPossible(),
|
|
2916
|
+
var D = this.parseIdentifierIfPossible(), M = 0;
|
|
2913
2917
|
if (s !== "select" && D.value === "offset") {
|
|
2914
2918
|
if (!this.bumpIf(":"))
|
|
2915
2919
|
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
|
@@ -2917,29 +2921,29 @@ var _i = (
|
|
|
2917
2921
|
var c = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2918
2922
|
if (c.err)
|
|
2919
2923
|
return c;
|
|
2920
|
-
this.bumpSpace(), D = this.parseIdentifierIfPossible(),
|
|
2924
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = c.val;
|
|
2921
2925
|
}
|
|
2922
|
-
var
|
|
2923
|
-
if (
|
|
2924
|
-
return
|
|
2926
|
+
var N = this.tryParsePluralOrSelectOptions(t, s, r, D);
|
|
2927
|
+
if (N.err)
|
|
2928
|
+
return N;
|
|
2925
2929
|
var d = this.tryParseArgumentClose(i);
|
|
2926
2930
|
if (d.err)
|
|
2927
2931
|
return d;
|
|
2928
2932
|
var te = T(i, this.clonePosition());
|
|
2929
2933
|
return s === "select" ? {
|
|
2930
2934
|
val: {
|
|
2931
|
-
type:
|
|
2932
|
-
value:
|
|
2933
|
-
options: zt(
|
|
2935
|
+
type: L.select,
|
|
2936
|
+
value: n,
|
|
2937
|
+
options: zt(N.val),
|
|
2934
2938
|
location: te
|
|
2935
2939
|
},
|
|
2936
2940
|
err: null
|
|
2937
2941
|
} : {
|
|
2938
2942
|
val: {
|
|
2939
|
-
type:
|
|
2940
|
-
value:
|
|
2941
|
-
options: zt(
|
|
2942
|
-
offset:
|
|
2943
|
+
type: L.plural,
|
|
2944
|
+
value: n,
|
|
2945
|
+
options: zt(N.val),
|
|
2946
|
+
offset: M,
|
|
2943
2947
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2944
2948
|
location: te
|
|
2945
2949
|
},
|
|
@@ -2952,9 +2956,9 @@ var _i = (
|
|
|
2952
2956
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2953
2957
|
return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2954
2958
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2955
|
-
for (var t = 0,
|
|
2956
|
-
var
|
|
2957
|
-
switch (
|
|
2959
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2960
|
+
var n = this.char();
|
|
2961
|
+
switch (n) {
|
|
2958
2962
|
case 39: {
|
|
2959
2963
|
this.bump();
|
|
2960
2964
|
var i = this.clonePosition();
|
|
@@ -2972,7 +2976,7 @@ var _i = (
|
|
|
2972
2976
|
t -= 1;
|
|
2973
2977
|
else
|
|
2974
2978
|
return {
|
|
2975
|
-
val: this.message.slice(
|
|
2979
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2976
2980
|
err: null
|
|
2977
2981
|
};
|
|
2978
2982
|
break;
|
|
@@ -2983,30 +2987,30 @@ var _i = (
|
|
|
2983
2987
|
}
|
|
2984
2988
|
}
|
|
2985
2989
|
return {
|
|
2986
|
-
val: this.message.slice(
|
|
2990
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2987
2991
|
err: null
|
|
2988
2992
|
};
|
|
2989
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
2990
|
-
var
|
|
2993
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2994
|
+
var n = [];
|
|
2991
2995
|
try {
|
|
2992
|
-
|
|
2996
|
+
n = ei(t);
|
|
2993
2997
|
} catch (i) {
|
|
2994
|
-
return this.error(w.INVALID_NUMBER_SKELETON,
|
|
2998
|
+
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
2995
2999
|
}
|
|
2996
3000
|
return {
|
|
2997
3001
|
val: {
|
|
2998
|
-
type:
|
|
2999
|
-
tokens:
|
|
3000
|
-
location:
|
|
3001
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3002
|
+
type: Me.number,
|
|
3003
|
+
tokens: n,
|
|
3004
|
+
location: r,
|
|
3005
|
+
parsedOptions: this.shouldParseSkeletons ? ii(n) : {}
|
|
3002
3006
|
},
|
|
3003
3007
|
err: null
|
|
3004
3008
|
};
|
|
3005
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3009
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3006
3010
|
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3007
3011
|
if (l.length === 0) {
|
|
3008
3012
|
var c = this.clonePosition();
|
|
3009
|
-
if (
|
|
3013
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3010
3014
|
var m = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3011
3015
|
if (m.err)
|
|
3012
3016
|
return m;
|
|
@@ -3015,12 +3019,12 @@ var _i = (
|
|
|
3015
3019
|
break;
|
|
3016
3020
|
}
|
|
3017
3021
|
if (u.has(l))
|
|
3018
|
-
return this.error(
|
|
3022
|
+
return this.error(r === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3019
3023
|
l === "other" && (a = !0), this.bumpSpace();
|
|
3020
3024
|
var _ = this.clonePosition();
|
|
3021
3025
|
if (!this.bumpIf("{"))
|
|
3022
|
-
return this.error(
|
|
3023
|
-
var d = this.parseMessage(t + 1,
|
|
3026
|
+
return this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
|
3027
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3024
3028
|
if (d.err)
|
|
3025
3029
|
return d;
|
|
3026
3030
|
var g = this.tryParseArgumentClose(_);
|
|
@@ -3034,10 +3038,10 @@ var _i = (
|
|
|
3034
3038
|
}
|
|
3035
3039
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3036
3040
|
}
|
|
3037
|
-
return s.length === 0 ? this.error(
|
|
3038
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3039
|
-
var
|
|
3040
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3041
|
+
return s.length === 0 ? this.error(r === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(w.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3042
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3043
|
+
var n = 1, i = this.clonePosition();
|
|
3044
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3041
3045
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3042
3046
|
var s = this.char();
|
|
3043
3047
|
if (s >= 48 && s <= 57)
|
|
@@ -3046,7 +3050,7 @@ var _i = (
|
|
|
3046
3050
|
break;
|
|
3047
3051
|
}
|
|
3048
3052
|
var u = T(i, this.clonePosition());
|
|
3049
|
-
return o ? (a *=
|
|
3053
|
+
return o ? (a *= n, gi(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3050
3054
|
}, e.prototype.offset = function() {
|
|
3051
3055
|
return this.position.offset;
|
|
3052
3056
|
}, e.prototype.isEOF = function() {
|
|
@@ -3061,17 +3065,17 @@ var _i = (
|
|
|
3061
3065
|
var t = this.position.offset;
|
|
3062
3066
|
if (t >= this.message.length)
|
|
3063
3067
|
throw Error("out of bound");
|
|
3064
|
-
var
|
|
3065
|
-
if (
|
|
3068
|
+
var r = xr(this.message, t);
|
|
3069
|
+
if (r === void 0)
|
|
3066
3070
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3067
|
-
return
|
|
3068
|
-
}, e.prototype.error = function(t,
|
|
3071
|
+
return r;
|
|
3072
|
+
}, e.prototype.error = function(t, r) {
|
|
3069
3073
|
return {
|
|
3070
3074
|
val: null,
|
|
3071
3075
|
err: {
|
|
3072
3076
|
kind: t,
|
|
3073
3077
|
message: this.message,
|
|
3074
|
-
location:
|
|
3078
|
+
location: r
|
|
3075
3079
|
}
|
|
3076
3080
|
};
|
|
3077
3081
|
}, e.prototype.bump = function() {
|
|
@@ -3081,81 +3085,81 @@ var _i = (
|
|
|
3081
3085
|
}
|
|
3082
3086
|
}, e.prototype.bumpIf = function(t) {
|
|
3083
3087
|
if ($t(this.message, t, this.offset())) {
|
|
3084
|
-
for (var
|
|
3088
|
+
for (var r = 0; r < t.length; r++)
|
|
3085
3089
|
this.bump();
|
|
3086
3090
|
return !0;
|
|
3087
3091
|
}
|
|
3088
3092
|
return !1;
|
|
3089
3093
|
}, e.prototype.bumpUntil = function(t) {
|
|
3090
|
-
var
|
|
3091
|
-
return
|
|
3094
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3095
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3092
3096
|
}, e.prototype.bumpTo = function(t) {
|
|
3093
3097
|
if (this.offset() > t)
|
|
3094
3098
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3095
3099
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3096
|
-
var
|
|
3097
|
-
if (
|
|
3100
|
+
var r = this.offset();
|
|
3101
|
+
if (r === t)
|
|
3098
3102
|
break;
|
|
3099
|
-
if (
|
|
3103
|
+
if (r > t)
|
|
3100
3104
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3101
3105
|
if (this.bump(), this.isEOF())
|
|
3102
3106
|
break;
|
|
3103
3107
|
}
|
|
3104
3108
|
}, e.prototype.bumpSpace = function() {
|
|
3105
|
-
for (; !this.isEOF() &&
|
|
3109
|
+
for (; !this.isEOF() && Sr(this.char()); )
|
|
3106
3110
|
this.bump();
|
|
3107
3111
|
}, e.prototype.peek = function() {
|
|
3108
3112
|
if (this.isEOF())
|
|
3109
3113
|
return null;
|
|
3110
|
-
var t = this.char(),
|
|
3111
|
-
return
|
|
3114
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3115
|
+
return n != null ? n : null;
|
|
3112
3116
|
}, e;
|
|
3113
3117
|
}()
|
|
3114
3118
|
);
|
|
3115
|
-
function
|
|
3119
|
+
function St(e) {
|
|
3116
3120
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3117
3121
|
}
|
|
3118
|
-
function Ei(e) {
|
|
3119
|
-
return xt(e) || e === 47;
|
|
3120
|
-
}
|
|
3121
3122
|
function vi(e) {
|
|
3123
|
+
return St(e) || e === 47;
|
|
3124
|
+
}
|
|
3125
|
+
function xi(e) {
|
|
3122
3126
|
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;
|
|
3123
3127
|
}
|
|
3124
|
-
function
|
|
3128
|
+
function Sr(e) {
|
|
3125
3129
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3126
3130
|
}
|
|
3127
|
-
function
|
|
3131
|
+
function wi(e) {
|
|
3128
3132
|
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;
|
|
3129
3133
|
}
|
|
3130
|
-
function
|
|
3134
|
+
function Tt(e) {
|
|
3131
3135
|
e.forEach(function(t) {
|
|
3132
|
-
if (delete t.location,
|
|
3133
|
-
for (var
|
|
3134
|
-
delete t.options[
|
|
3136
|
+
if (delete t.location, mr(t) || dr(t))
|
|
3137
|
+
for (var r in t.options)
|
|
3138
|
+
delete t.options[r].location, Tt(t.options[r].value);
|
|
3135
3139
|
else
|
|
3136
|
-
|
|
3140
|
+
cr(t) && br(t.style) || (fr(t) || pr(t)) && Et(t.style) ? delete t.style.location : gr(t) && Tt(t.children);
|
|
3137
3141
|
});
|
|
3138
3142
|
}
|
|
3139
|
-
function
|
|
3140
|
-
t === void 0 && (t = {}), t =
|
|
3141
|
-
var
|
|
3142
|
-
if (
|
|
3143
|
-
var
|
|
3144
|
-
throw
|
|
3143
|
+
function Si(e, t) {
|
|
3144
|
+
t === void 0 && (t = {}), t = Ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3145
|
+
var r = new Ei(e, t).parse();
|
|
3146
|
+
if (r.err) {
|
|
3147
|
+
var n = SyntaxError(w[r.err.kind]);
|
|
3148
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3145
3149
|
}
|
|
3146
|
-
return t != null && t.captureLocation ||
|
|
3150
|
+
return t != null && t.captureLocation || Tt(r.val), r.val;
|
|
3147
3151
|
}
|
|
3148
|
-
var
|
|
3152
|
+
var Le;
|
|
3149
3153
|
(function(e) {
|
|
3150
3154
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3151
|
-
})(
|
|
3152
|
-
var
|
|
3155
|
+
})(Le || (Le = {}));
|
|
3156
|
+
var nt = (
|
|
3153
3157
|
/** @class */
|
|
3154
3158
|
function(e) {
|
|
3155
|
-
|
|
3156
|
-
function t(
|
|
3157
|
-
var o = e.call(this,
|
|
3158
|
-
return o.code =
|
|
3159
|
+
rt(t, e);
|
|
3160
|
+
function t(r, n, i) {
|
|
3161
|
+
var o = e.call(this, r) || this;
|
|
3162
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3159
3163
|
}
|
|
3160
3164
|
return t.prototype.toString = function() {
|
|
3161
3165
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3164,44 +3168,44 @@ var tt = (
|
|
|
3164
3168
|
), Wt = (
|
|
3165
3169
|
/** @class */
|
|
3166
3170
|
function(e) {
|
|
3167
|
-
|
|
3168
|
-
function t(
|
|
3169
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3171
|
+
rt(t, e);
|
|
3172
|
+
function t(r, n, i, o) {
|
|
3173
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Le.INVALID_VALUE, o) || this;
|
|
3170
3174
|
}
|
|
3171
3175
|
return t;
|
|
3172
|
-
}(
|
|
3173
|
-
),
|
|
3176
|
+
}(nt)
|
|
3177
|
+
), Ti = (
|
|
3174
3178
|
/** @class */
|
|
3175
3179
|
function(e) {
|
|
3176
|
-
|
|
3177
|
-
function t(
|
|
3178
|
-
return e.call(this, 'Value for "'.concat(
|
|
3180
|
+
rt(t, e);
|
|
3181
|
+
function t(r, n, i) {
|
|
3182
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Le.INVALID_VALUE, i) || this;
|
|
3179
3183
|
}
|
|
3180
3184
|
return t;
|
|
3181
|
-
}(
|
|
3182
|
-
),
|
|
3185
|
+
}(nt)
|
|
3186
|
+
), Oi = (
|
|
3183
3187
|
/** @class */
|
|
3184
3188
|
function(e) {
|
|
3185
|
-
|
|
3186
|
-
function t(
|
|
3187
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3189
|
+
rt(t, e);
|
|
3190
|
+
function t(r, n) {
|
|
3191
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Le.MISSING_VALUE, n) || this;
|
|
3188
3192
|
}
|
|
3189
3193
|
return t;
|
|
3190
|
-
}(
|
|
3194
|
+
}(nt)
|
|
3191
3195
|
), q;
|
|
3192
3196
|
(function(e) {
|
|
3193
3197
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3194
3198
|
})(q || (q = {}));
|
|
3195
3199
|
function Hi(e) {
|
|
3196
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3197
|
-
var
|
|
3198
|
-
return !
|
|
3200
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3201
|
+
var n = t[t.length - 1];
|
|
3202
|
+
return !n || n.type !== q.literal || r.type !== q.literal ? t.push(r) : n.value += r.value, t;
|
|
3199
3203
|
}, []);
|
|
3200
3204
|
}
|
|
3201
|
-
function
|
|
3205
|
+
function Ai(e) {
|
|
3202
3206
|
return typeof e == "function";
|
|
3203
3207
|
}
|
|
3204
|
-
function
|
|
3208
|
+
function qe(e, t, r, n, i, o, a) {
|
|
3205
3209
|
if (e.length === 1 && Gt(e[0]))
|
|
3206
3210
|
return [
|
|
3207
3211
|
{
|
|
@@ -3218,148 +3222,148 @@ function Ze(e, t, n, r, i, o, a) {
|
|
|
3218
3222
|
});
|
|
3219
3223
|
continue;
|
|
3220
3224
|
}
|
|
3221
|
-
if (
|
|
3225
|
+
if (Qn(h)) {
|
|
3222
3226
|
typeof o == "number" && s.push({
|
|
3223
3227
|
type: q.literal,
|
|
3224
|
-
value:
|
|
3228
|
+
value: r.getNumberFormat(t).format(o)
|
|
3225
3229
|
});
|
|
3226
3230
|
continue;
|
|
3227
3231
|
}
|
|
3228
3232
|
var c = h.value;
|
|
3229
3233
|
if (!(i && c in i))
|
|
3230
|
-
throw new
|
|
3234
|
+
throw new Oi(c, a);
|
|
3231
3235
|
var m = i[c];
|
|
3232
|
-
if (
|
|
3236
|
+
if (qn(h)) {
|
|
3233
3237
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
3234
3238
|
type: typeof m == "string" ? q.literal : q.object,
|
|
3235
3239
|
value: m
|
|
3236
3240
|
});
|
|
3237
3241
|
continue;
|
|
3238
3242
|
}
|
|
3239
|
-
if (
|
|
3240
|
-
var _ = typeof h.style == "string" ?
|
|
3243
|
+
if (fr(h)) {
|
|
3244
|
+
var _ = typeof h.style == "string" ? n.date[h.style] : Et(h.style) ? h.style.parsedOptions : void 0;
|
|
3241
3245
|
s.push({
|
|
3242
3246
|
type: q.literal,
|
|
3243
|
-
value:
|
|
3247
|
+
value: r.getDateTimeFormat(t, _).format(m)
|
|
3244
3248
|
});
|
|
3245
3249
|
continue;
|
|
3246
3250
|
}
|
|
3247
|
-
if (
|
|
3248
|
-
var _ = typeof h.style == "string" ?
|
|
3251
|
+
if (pr(h)) {
|
|
3252
|
+
var _ = typeof h.style == "string" ? n.time[h.style] : Et(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3249
3253
|
s.push({
|
|
3250
3254
|
type: q.literal,
|
|
3251
|
-
value:
|
|
3255
|
+
value: r.getDateTimeFormat(t, _).format(m)
|
|
3252
3256
|
});
|
|
3253
3257
|
continue;
|
|
3254
3258
|
}
|
|
3255
|
-
if (
|
|
3256
|
-
var _ = typeof h.style == "string" ?
|
|
3259
|
+
if (cr(h)) {
|
|
3260
|
+
var _ = typeof h.style == "string" ? n.number[h.style] : br(h.style) ? h.style.parsedOptions : void 0;
|
|
3257
3261
|
_ && _.scale && (m = m * (_.scale || 1)), s.push({
|
|
3258
3262
|
type: q.literal,
|
|
3259
|
-
value:
|
|
3263
|
+
value: r.getNumberFormat(t, _).format(m)
|
|
3260
3264
|
});
|
|
3261
3265
|
continue;
|
|
3262
3266
|
}
|
|
3263
|
-
if (
|
|
3267
|
+
if (gr(h)) {
|
|
3264
3268
|
var d = h.children, g = h.value, v = i[g];
|
|
3265
|
-
if (!
|
|
3266
|
-
throw new
|
|
3267
|
-
var S =
|
|
3268
|
-
return
|
|
3269
|
+
if (!Ai(v))
|
|
3270
|
+
throw new Ti(g, "function", a);
|
|
3271
|
+
var S = qe(d, t, r, n, i, o), P = v(S.map(function(M) {
|
|
3272
|
+
return M.value;
|
|
3269
3273
|
}));
|
|
3270
|
-
Array.isArray(
|
|
3274
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(M) {
|
|
3271
3275
|
return {
|
|
3272
|
-
type: typeof
|
|
3273
|
-
value:
|
|
3276
|
+
type: typeof M == "string" ? q.literal : q.object,
|
|
3277
|
+
value: M
|
|
3274
3278
|
};
|
|
3275
3279
|
}));
|
|
3276
3280
|
}
|
|
3277
|
-
if (
|
|
3278
|
-
var
|
|
3279
|
-
if (!
|
|
3281
|
+
if (mr(h)) {
|
|
3282
|
+
var I = h.options[m] || h.options.other;
|
|
3283
|
+
if (!I)
|
|
3280
3284
|
throw new Wt(h.value, m, Object.keys(h.options), a);
|
|
3281
|
-
s.push.apply(s,
|
|
3285
|
+
s.push.apply(s, qe(I.value, t, r, n, i));
|
|
3282
3286
|
continue;
|
|
3283
3287
|
}
|
|
3284
|
-
if (
|
|
3285
|
-
var
|
|
3286
|
-
if (!
|
|
3288
|
+
if (dr(h)) {
|
|
3289
|
+
var I = h.options["=".concat(m)];
|
|
3290
|
+
if (!I) {
|
|
3287
3291
|
if (!Intl.PluralRules)
|
|
3288
|
-
throw new
|
|
3292
|
+
throw new nt(`Intl.PluralRules is not available in this environment.
|
|
3289
3293
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3290
|
-
`,
|
|
3291
|
-
var D =
|
|
3292
|
-
|
|
3294
|
+
`, Le.MISSING_INTL_API, a);
|
|
3295
|
+
var D = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3296
|
+
I = h.options[D] || h.options.other;
|
|
3293
3297
|
}
|
|
3294
|
-
if (!
|
|
3298
|
+
if (!I)
|
|
3295
3299
|
throw new Wt(h.value, m, Object.keys(h.options), a);
|
|
3296
|
-
s.push.apply(s,
|
|
3300
|
+
s.push.apply(s, qe(I.value, t, r, n, i, m - (h.offset || 0)));
|
|
3297
3301
|
continue;
|
|
3298
3302
|
}
|
|
3299
3303
|
}
|
|
3300
3304
|
return Hi(s);
|
|
3301
3305
|
}
|
|
3302
|
-
function
|
|
3303
|
-
return t ?
|
|
3304
|
-
return n
|
|
3306
|
+
function Ci(e, t) {
|
|
3307
|
+
return t ? le(le(le({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3308
|
+
return r[n] = le(le({}, e[n]), t[n] || {}), r;
|
|
3305
3309
|
}, {})) : e;
|
|
3306
3310
|
}
|
|
3307
|
-
function
|
|
3308
|
-
return t ? Object.keys(e).reduce(function(
|
|
3309
|
-
return n
|
|
3310
|
-
},
|
|
3311
|
+
function Bi(e, t) {
|
|
3312
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3313
|
+
return r[n] = Ci(e[n], t[n]), r;
|
|
3314
|
+
}, le({}, e)) : e;
|
|
3311
3315
|
}
|
|
3312
|
-
function
|
|
3316
|
+
function dt(e) {
|
|
3313
3317
|
return {
|
|
3314
3318
|
create: function() {
|
|
3315
3319
|
return {
|
|
3316
3320
|
get: function(t) {
|
|
3317
3321
|
return e[t];
|
|
3318
3322
|
},
|
|
3319
|
-
set: function(t,
|
|
3320
|
-
e[t] =
|
|
3323
|
+
set: function(t, r) {
|
|
3324
|
+
e[t] = r;
|
|
3321
3325
|
}
|
|
3322
3326
|
};
|
|
3323
3327
|
}
|
|
3324
3328
|
};
|
|
3325
3329
|
}
|
|
3326
|
-
function
|
|
3330
|
+
function Pi(e) {
|
|
3327
3331
|
return e === void 0 && (e = {
|
|
3328
3332
|
number: {},
|
|
3329
3333
|
dateTime: {},
|
|
3330
3334
|
pluralRules: {}
|
|
3331
3335
|
}), {
|
|
3332
|
-
getNumberFormat:
|
|
3333
|
-
for (var t,
|
|
3334
|
-
n
|
|
3335
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3336
|
+
getNumberFormat: ft(function() {
|
|
3337
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3338
|
+
r[n] = arguments[n];
|
|
3339
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ct([void 0], r, !1)))();
|
|
3336
3340
|
}, {
|
|
3337
|
-
cache:
|
|
3338
|
-
strategy:
|
|
3341
|
+
cache: dt(e.number),
|
|
3342
|
+
strategy: pt.variadic
|
|
3339
3343
|
}),
|
|
3340
|
-
getDateTimeFormat:
|
|
3341
|
-
for (var t,
|
|
3342
|
-
n
|
|
3343
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3344
|
+
getDateTimeFormat: ft(function() {
|
|
3345
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3346
|
+
r[n] = arguments[n];
|
|
3347
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ct([void 0], r, !1)))();
|
|
3344
3348
|
}, {
|
|
3345
|
-
cache:
|
|
3346
|
-
strategy:
|
|
3349
|
+
cache: dt(e.dateTime),
|
|
3350
|
+
strategy: pt.variadic
|
|
3347
3351
|
}),
|
|
3348
|
-
getPluralRules:
|
|
3349
|
-
for (var t,
|
|
3350
|
-
n
|
|
3351
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3352
|
+
getPluralRules: ft(function() {
|
|
3353
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3354
|
+
r[n] = arguments[n];
|
|
3355
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ct([void 0], r, !1)))();
|
|
3352
3356
|
}, {
|
|
3353
|
-
cache:
|
|
3354
|
-
strategy:
|
|
3357
|
+
cache: dt(e.pluralRules),
|
|
3358
|
+
strategy: pt.variadic
|
|
3355
3359
|
})
|
|
3356
3360
|
};
|
|
3357
3361
|
}
|
|
3358
|
-
var
|
|
3362
|
+
var Mi = (
|
|
3359
3363
|
/** @class */
|
|
3360
3364
|
function() {
|
|
3361
|
-
function e(t,
|
|
3362
|
-
|
|
3365
|
+
function e(t, r, n, i) {
|
|
3366
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3363
3367
|
var o = this;
|
|
3364
3368
|
if (this.formatterCache = {
|
|
3365
3369
|
number: {},
|
|
@@ -3374,7 +3378,7 @@ var Pi = (
|
|
|
3374
3378
|
}, []);
|
|
3375
3379
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3376
3380
|
}, this.formatToParts = function(u) {
|
|
3377
|
-
return
|
|
3381
|
+
return qe(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3378
3382
|
}, this.resolvedOptions = function() {
|
|
3379
3383
|
var u;
|
|
3380
3384
|
return {
|
|
@@ -3382,18 +3386,18 @@ var Pi = (
|
|
|
3382
3386
|
};
|
|
3383
3387
|
}, this.getAst = function() {
|
|
3384
3388
|
return o.ast;
|
|
3385
|
-
}, this.locales =
|
|
3389
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3386
3390
|
if (this.message = t, !e.__parse)
|
|
3387
3391
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3388
3392
|
var a = i || {};
|
|
3389
3393
|
a.formatters;
|
|
3390
|
-
var s =
|
|
3391
|
-
this.ast = e.__parse(t,
|
|
3394
|
+
var s = Fn(a, ["formatters"]);
|
|
3395
|
+
this.ast = e.__parse(t, le(le({}, s), { locale: this.resolvedLocale }));
|
|
3392
3396
|
} else
|
|
3393
3397
|
this.ast = t;
|
|
3394
3398
|
if (!Array.isArray(this.ast))
|
|
3395
3399
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3396
|
-
this.formats =
|
|
3400
|
+
this.formats = Bi(e.formats, n), this.formatters = i && i.formatters || Pi(this.formatterCache);
|
|
3397
3401
|
}
|
|
3398
3402
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3399
3403
|
get: function() {
|
|
@@ -3403,10 +3407,10 @@ var Pi = (
|
|
|
3403
3407
|
configurable: !0
|
|
3404
3408
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3405
3409
|
if (typeof Intl.Locale != "undefined") {
|
|
3406
|
-
var
|
|
3407
|
-
return
|
|
3410
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3411
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3408
3412
|
}
|
|
3409
|
-
}, e.__parse =
|
|
3413
|
+
}, e.__parse = Si, e.formats = {
|
|
3410
3414
|
number: {
|
|
3411
3415
|
integer: {
|
|
3412
3416
|
maximumFractionDigits: 0
|
|
@@ -3467,113 +3471,113 @@ var Pi = (
|
|
|
3467
3471
|
}, e;
|
|
3468
3472
|
}()
|
|
3469
3473
|
);
|
|
3470
|
-
function
|
|
3474
|
+
function Li(e, t) {
|
|
3471
3475
|
if (t == null)
|
|
3472
3476
|
return;
|
|
3473
3477
|
if (t in e)
|
|
3474
3478
|
return e[t];
|
|
3475
|
-
const
|
|
3476
|
-
let
|
|
3477
|
-
for (let i = 0; i <
|
|
3478
|
-
if (typeof
|
|
3479
|
+
const r = t.split(".");
|
|
3480
|
+
let n = e;
|
|
3481
|
+
for (let i = 0; i < r.length; i++)
|
|
3482
|
+
if (typeof n == "object") {
|
|
3479
3483
|
if (i > 0) {
|
|
3480
|
-
const o =
|
|
3481
|
-
if (o in
|
|
3482
|
-
|
|
3484
|
+
const o = r.slice(i, r.length).join(".");
|
|
3485
|
+
if (o in n) {
|
|
3486
|
+
n = n[o];
|
|
3483
3487
|
break;
|
|
3484
3488
|
}
|
|
3485
3489
|
}
|
|
3486
|
-
|
|
3490
|
+
n = n[r[i]];
|
|
3487
3491
|
} else
|
|
3488
|
-
|
|
3489
|
-
return
|
|
3492
|
+
n = void 0;
|
|
3493
|
+
return n;
|
|
3490
3494
|
}
|
|
3491
|
-
const
|
|
3495
|
+
const me = {}, Ii = (e, t, r) => r && (t in me || (me[t] = {}), e in me[t] || (me[t][e] = r), r), Tr = (e, t) => {
|
|
3492
3496
|
if (t == null)
|
|
3493
3497
|
return;
|
|
3494
|
-
if (t in
|
|
3495
|
-
return
|
|
3496
|
-
const
|
|
3497
|
-
for (let
|
|
3498
|
-
const i = n
|
|
3498
|
+
if (t in me && e in me[t])
|
|
3499
|
+
return me[t][e];
|
|
3500
|
+
const r = it(t);
|
|
3501
|
+
for (let n = 0; n < r.length; n++) {
|
|
3502
|
+
const i = r[n], o = Ri(i, e);
|
|
3499
3503
|
if (o)
|
|
3500
|
-
return
|
|
3504
|
+
return Ii(e, t, o);
|
|
3501
3505
|
}
|
|
3502
3506
|
};
|
|
3503
3507
|
let Ct;
|
|
3504
|
-
const
|
|
3505
|
-
function
|
|
3508
|
+
const Ve = tt({});
|
|
3509
|
+
function Ni(e) {
|
|
3506
3510
|
return Ct[e] || null;
|
|
3507
3511
|
}
|
|
3508
|
-
function
|
|
3512
|
+
function Or(e) {
|
|
3509
3513
|
return e in Ct;
|
|
3510
3514
|
}
|
|
3511
|
-
function
|
|
3512
|
-
if (!
|
|
3515
|
+
function Ri(e, t) {
|
|
3516
|
+
if (!Or(e))
|
|
3513
3517
|
return null;
|
|
3514
|
-
const
|
|
3515
|
-
return
|
|
3518
|
+
const r = Ni(e);
|
|
3519
|
+
return Li(r, t);
|
|
3516
3520
|
}
|
|
3517
|
-
function
|
|
3521
|
+
function ki(e) {
|
|
3518
3522
|
if (e == null)
|
|
3519
3523
|
return;
|
|
3520
|
-
const t =
|
|
3521
|
-
for (let
|
|
3522
|
-
const
|
|
3523
|
-
if (
|
|
3524
|
-
return
|
|
3524
|
+
const t = it(e);
|
|
3525
|
+
for (let r = 0; r < t.length; r++) {
|
|
3526
|
+
const n = t[r];
|
|
3527
|
+
if (Or(n))
|
|
3528
|
+
return n;
|
|
3525
3529
|
}
|
|
3526
3530
|
}
|
|
3527
|
-
function
|
|
3528
|
-
delete
|
|
3531
|
+
function Hr(e, ...t) {
|
|
3532
|
+
delete me[e], Ve.update((r) => (r[e] = Gn.all([r[e] || {}, ...t]), r));
|
|
3529
3533
|
}
|
|
3530
|
-
|
|
3531
|
-
[
|
|
3534
|
+
Ne(
|
|
3535
|
+
[Ve],
|
|
3532
3536
|
([e]) => Object.keys(e)
|
|
3533
3537
|
);
|
|
3534
|
-
|
|
3535
|
-
const
|
|
3536
|
-
function
|
|
3537
|
-
|
|
3538
|
-
}
|
|
3539
|
-
function
|
|
3540
|
-
return
|
|
3541
|
-
}
|
|
3542
|
-
function
|
|
3543
|
-
return
|
|
3544
|
-
const
|
|
3545
|
-
return [t,
|
|
3538
|
+
Ve.subscribe((e) => Ct = e);
|
|
3539
|
+
const Qe = {};
|
|
3540
|
+
function Di(e, t) {
|
|
3541
|
+
Qe[e].delete(t), Qe[e].size === 0 && delete Qe[e];
|
|
3542
|
+
}
|
|
3543
|
+
function Ar(e) {
|
|
3544
|
+
return Qe[e];
|
|
3545
|
+
}
|
|
3546
|
+
function Ui(e) {
|
|
3547
|
+
return it(e).map((t) => {
|
|
3548
|
+
const r = Ar(t);
|
|
3549
|
+
return [t, r ? [...r] : []];
|
|
3546
3550
|
}).filter(([, t]) => t.length > 0);
|
|
3547
3551
|
}
|
|
3548
|
-
function
|
|
3549
|
-
return e == null ? !1 :
|
|
3552
|
+
function Ot(e) {
|
|
3553
|
+
return e == null ? !1 : it(e).some(
|
|
3550
3554
|
(t) => {
|
|
3551
|
-
var
|
|
3552
|
-
return (
|
|
3555
|
+
var r;
|
|
3556
|
+
return (r = Ar(t)) == null ? void 0 : r.size;
|
|
3553
3557
|
}
|
|
3554
3558
|
);
|
|
3555
3559
|
}
|
|
3556
|
-
function
|
|
3560
|
+
function Gi(e, t) {
|
|
3557
3561
|
return Promise.all(
|
|
3558
|
-
t.map((
|
|
3559
|
-
).then((
|
|
3560
|
-
}
|
|
3561
|
-
const
|
|
3562
|
-
function
|
|
3563
|
-
if (!
|
|
3564
|
-
return e in
|
|
3565
|
-
const t =
|
|
3566
|
-
return
|
|
3562
|
+
t.map((n) => (Di(e, n), n().then((i) => i.default || i)))
|
|
3563
|
+
).then((n) => Hr(e, ...n));
|
|
3564
|
+
}
|
|
3565
|
+
const De = {};
|
|
3566
|
+
function Cr(e) {
|
|
3567
|
+
if (!Ot(e))
|
|
3568
|
+
return e in De ? De[e] : Promise.resolve();
|
|
3569
|
+
const t = Ui(e);
|
|
3570
|
+
return De[e] = Promise.all(
|
|
3567
3571
|
t.map(
|
|
3568
|
-
([
|
|
3572
|
+
([r, n]) => Gi(r, n)
|
|
3569
3573
|
)
|
|
3570
3574
|
).then(() => {
|
|
3571
|
-
if (
|
|
3572
|
-
return
|
|
3573
|
-
delete
|
|
3574
|
-
}),
|
|
3575
|
+
if (Ot(e))
|
|
3576
|
+
return Cr(e);
|
|
3577
|
+
delete De[e];
|
|
3578
|
+
}), De[e];
|
|
3575
3579
|
}
|
|
3576
|
-
const
|
|
3580
|
+
const Fi = {
|
|
3577
3581
|
number: {
|
|
3578
3582
|
scientific: { notation: "scientific" },
|
|
3579
3583
|
engineering: { notation: "engineering" },
|
|
@@ -3602,150 +3606,150 @@ const Gi = {
|
|
|
3602
3606
|
timeZoneName: "short"
|
|
3603
3607
|
}
|
|
3604
3608
|
}
|
|
3605
|
-
},
|
|
3609
|
+
}, ji = {
|
|
3606
3610
|
fallbackLocale: null,
|
|
3607
3611
|
loadingDelay: 200,
|
|
3608
|
-
formats:
|
|
3612
|
+
formats: Fi,
|
|
3609
3613
|
warnOnMissingMessages: !0,
|
|
3610
3614
|
handleMissingMessage: void 0,
|
|
3611
3615
|
ignoreTag: !0
|
|
3612
|
-
},
|
|
3613
|
-
function
|
|
3614
|
-
return
|
|
3615
|
-
}
|
|
3616
|
-
const
|
|
3617
|
-
var
|
|
3618
|
-
for (var
|
|
3619
|
-
|
|
3616
|
+
}, Vi = ji;
|
|
3617
|
+
function Ie() {
|
|
3618
|
+
return Vi;
|
|
3619
|
+
}
|
|
3620
|
+
const gt = tt(!1);
|
|
3621
|
+
var $i = Object.defineProperty, zi = Object.defineProperties, Xi = Object.getOwnPropertyDescriptors, Zt = Object.getOwnPropertySymbols, Wi = Object.prototype.hasOwnProperty, Zi = Object.prototype.propertyIsEnumerable, qt = (e, t, r) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qi = (e, t) => {
|
|
3622
|
+
for (var r in t || (t = {}))
|
|
3623
|
+
Wi.call(t, r) && qt(e, r, t[r]);
|
|
3620
3624
|
if (Zt)
|
|
3621
|
-
for (var
|
|
3622
|
-
|
|
3625
|
+
for (var r of Zt(t))
|
|
3626
|
+
Zi.call(t, r) && qt(e, r, t[r]);
|
|
3623
3627
|
return e;
|
|
3624
|
-
},
|
|
3625
|
-
let
|
|
3626
|
-
const
|
|
3628
|
+
}, Qi = (e, t) => zi(e, Xi(t));
|
|
3629
|
+
let Ht;
|
|
3630
|
+
const Ke = tt(null);
|
|
3627
3631
|
function Qt(e) {
|
|
3628
|
-
return e.split("-").map((t,
|
|
3632
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3629
3633
|
}
|
|
3630
|
-
function
|
|
3631
|
-
const
|
|
3632
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3634
|
+
function it(e, t = Ie().fallbackLocale) {
|
|
3635
|
+
const r = Qt(e);
|
|
3636
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Qt(t)])] : r;
|
|
3633
3637
|
}
|
|
3634
|
-
function
|
|
3635
|
-
return
|
|
3638
|
+
function we() {
|
|
3639
|
+
return Ht != null ? Ht : void 0;
|
|
3636
3640
|
}
|
|
3637
|
-
|
|
3638
|
-
|
|
3641
|
+
Ke.subscribe((e) => {
|
|
3642
|
+
Ht = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3639
3643
|
});
|
|
3640
|
-
const
|
|
3641
|
-
if (e &&
|
|
3642
|
-
const { loadingDelay: t } =
|
|
3643
|
-
let
|
|
3644
|
-
return typeof window != "undefined" &&
|
|
3645
|
-
() =>
|
|
3644
|
+
const Ji = (e) => {
|
|
3645
|
+
if (e && ki(e) && Ot(e)) {
|
|
3646
|
+
const { loadingDelay: t } = Ie();
|
|
3647
|
+
let r;
|
|
3648
|
+
return typeof window != "undefined" && we() != null && t ? r = window.setTimeout(
|
|
3649
|
+
() => gt.set(!0),
|
|
3646
3650
|
t
|
|
3647
|
-
) :
|
|
3648
|
-
|
|
3651
|
+
) : gt.set(!0), Cr(e).then(() => {
|
|
3652
|
+
Ke.set(e);
|
|
3649
3653
|
}).finally(() => {
|
|
3650
|
-
clearTimeout(
|
|
3654
|
+
clearTimeout(r), gt.set(!1);
|
|
3651
3655
|
});
|
|
3652
3656
|
}
|
|
3653
|
-
return
|
|
3654
|
-
},
|
|
3655
|
-
set:
|
|
3656
|
-
}),
|
|
3657
|
+
return Ke.set(e);
|
|
3658
|
+
}, Re = Qi(qi({}, Ke), {
|
|
3659
|
+
set: Ji
|
|
3660
|
+
}), ot = (e) => {
|
|
3657
3661
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3658
|
-
return (
|
|
3659
|
-
const i = JSON.stringify(
|
|
3660
|
-
return i in t ? t[i] : t[i] = e(
|
|
3662
|
+
return (n) => {
|
|
3663
|
+
const i = JSON.stringify(n);
|
|
3664
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
3661
3665
|
};
|
|
3662
3666
|
};
|
|
3663
|
-
var
|
|
3664
|
-
for (var
|
|
3665
|
-
|
|
3666
|
-
if (
|
|
3667
|
-
for (var
|
|
3668
|
-
|
|
3667
|
+
var Yi = Object.defineProperty, et = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, Jt = (e, t, r) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bt = (e, t) => {
|
|
3668
|
+
for (var r in t || (t = {}))
|
|
3669
|
+
Br.call(t, r) && Jt(e, r, t[r]);
|
|
3670
|
+
if (et)
|
|
3671
|
+
for (var r of et(t))
|
|
3672
|
+
Pr.call(t, r) && Jt(e, r, t[r]);
|
|
3669
3673
|
return e;
|
|
3670
|
-
},
|
|
3671
|
-
var
|
|
3672
|
-
for (var
|
|
3673
|
-
|
|
3674
|
-
if (e != null &&
|
|
3675
|
-
for (var
|
|
3676
|
-
t.indexOf(
|
|
3677
|
-
return
|
|
3674
|
+
}, ke = (e, t) => {
|
|
3675
|
+
var r = {};
|
|
3676
|
+
for (var n in e)
|
|
3677
|
+
Br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3678
|
+
if (e != null && et)
|
|
3679
|
+
for (var n of et(e))
|
|
3680
|
+
t.indexOf(n) < 0 && Pr.call(e, n) && (r[n] = e[n]);
|
|
3681
|
+
return r;
|
|
3678
3682
|
};
|
|
3679
|
-
const
|
|
3680
|
-
const { formats:
|
|
3681
|
-
if (e in
|
|
3682
|
-
return
|
|
3683
|
+
const je = (e, t) => {
|
|
3684
|
+
const { formats: r } = Ie();
|
|
3685
|
+
if (e in r && t in r[e])
|
|
3686
|
+
return r[e][t];
|
|
3683
3687
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3684
|
-
},
|
|
3688
|
+
}, Ki = ot(
|
|
3685
3689
|
(e) => {
|
|
3686
|
-
var t = e, { locale:
|
|
3687
|
-
if (
|
|
3690
|
+
var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
|
|
3691
|
+
if (r == null)
|
|
3688
3692
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3689
|
-
return
|
|
3693
|
+
return n && (i = je("number", n)), new Intl.NumberFormat(r, i);
|
|
3690
3694
|
}
|
|
3691
|
-
),
|
|
3695
|
+
), eo = ot(
|
|
3692
3696
|
(e) => {
|
|
3693
|
-
var t = e, { locale:
|
|
3694
|
-
if (
|
|
3697
|
+
var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
|
|
3698
|
+
if (r == null)
|
|
3695
3699
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3696
|
-
return
|
|
3700
|
+
return n ? i = je("date", n) : Object.keys(i).length === 0 && (i = je("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3697
3701
|
}
|
|
3698
|
-
),
|
|
3702
|
+
), to = ot(
|
|
3699
3703
|
(e) => {
|
|
3700
|
-
var t = e, { locale:
|
|
3701
|
-
if (
|
|
3704
|
+
var t = e, { locale: r, format: n } = t, i = ke(t, ["locale", "format"]);
|
|
3705
|
+
if (r == null)
|
|
3702
3706
|
throw new Error(
|
|
3703
3707
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3704
3708
|
);
|
|
3705
|
-
return
|
|
3709
|
+
return n ? i = je("time", n) : Object.keys(i).length === 0 && (i = je("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3706
3710
|
}
|
|
3707
|
-
),
|
|
3711
|
+
), ro = (e = {}) => {
|
|
3708
3712
|
var t = e, {
|
|
3709
|
-
locale:
|
|
3710
|
-
} = t,
|
|
3713
|
+
locale: r = we()
|
|
3714
|
+
} = t, n = ke(t, [
|
|
3711
3715
|
"locale"
|
|
3712
3716
|
]);
|
|
3713
|
-
return
|
|
3717
|
+
return Ki(Bt({ locale: r }, n));
|
|
3714
3718
|
}, no = (e = {}) => {
|
|
3715
3719
|
var t = e, {
|
|
3716
|
-
locale:
|
|
3717
|
-
} = t,
|
|
3720
|
+
locale: r = we()
|
|
3721
|
+
} = t, n = ke(t, [
|
|
3718
3722
|
"locale"
|
|
3719
3723
|
]);
|
|
3720
|
-
return
|
|
3721
|
-
},
|
|
3724
|
+
return eo(Bt({ locale: r }, n));
|
|
3725
|
+
}, io = (e = {}) => {
|
|
3722
3726
|
var t = e, {
|
|
3723
|
-
locale:
|
|
3724
|
-
} = t,
|
|
3727
|
+
locale: r = we()
|
|
3728
|
+
} = t, n = ke(t, [
|
|
3725
3729
|
"locale"
|
|
3726
3730
|
]);
|
|
3727
|
-
return
|
|
3728
|
-
},
|
|
3731
|
+
return to(Bt({ locale: r }, n));
|
|
3732
|
+
}, oo = ot(
|
|
3729
3733
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3730
|
-
(e, t =
|
|
3731
|
-
ignoreTag:
|
|
3734
|
+
(e, t = we()) => new Mi(e, t, Ie().formats, {
|
|
3735
|
+
ignoreTag: Ie().ignoreTag
|
|
3732
3736
|
})
|
|
3733
|
-
),
|
|
3734
|
-
var
|
|
3737
|
+
), so = (e, t = {}) => {
|
|
3738
|
+
var r, n, i, o;
|
|
3735
3739
|
let a = t;
|
|
3736
3740
|
typeof e == "object" && (a = e, e = a.id);
|
|
3737
3741
|
const {
|
|
3738
3742
|
values: s,
|
|
3739
|
-
locale: u =
|
|
3743
|
+
locale: u = we(),
|
|
3740
3744
|
default: l
|
|
3741
3745
|
} = a;
|
|
3742
3746
|
if (u == null)
|
|
3743
3747
|
throw new Error(
|
|
3744
3748
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3745
3749
|
);
|
|
3746
|
-
let h =
|
|
3750
|
+
let h = Tr(e, u);
|
|
3747
3751
|
if (!h)
|
|
3748
|
-
h = (o = (i = (
|
|
3752
|
+
h = (o = (i = (n = (r = Ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3749
3753
|
else if (typeof h != "string")
|
|
3750
3754
|
return console.warn(
|
|
3751
3755
|
`[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.`
|
|
@@ -3754,7 +3758,7 @@ const Fe = (e, t) => {
|
|
|
3754
3758
|
return h;
|
|
3755
3759
|
let c = h;
|
|
3756
3760
|
try {
|
|
3757
|
-
c =
|
|
3761
|
+
c = oo(h, u).format(s);
|
|
3758
3762
|
} catch (m) {
|
|
3759
3763
|
m instanceof Error && console.warn(
|
|
3760
3764
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3762,16 +3766,16 @@ const Fe = (e, t) => {
|
|
|
3762
3766
|
);
|
|
3763
3767
|
}
|
|
3764
3768
|
return c;
|
|
3765
|
-
},
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3769
|
+
}, ao = (e, t) => io(t).format(e), lo = (e, t) => no(t).format(e), uo = (e, t) => ro(t).format(e), ho = (e, t = we()) => Tr(e, t), co = Ne([Re, Ve], () => so);
|
|
3770
|
+
Ne([Re], () => ao);
|
|
3771
|
+
Ne([Re], () => lo);
|
|
3772
|
+
Ne([Re], () => uo);
|
|
3773
|
+
Ne([Re, Ve], () => ho);
|
|
3770
3774
|
function Yt(e, t) {
|
|
3771
|
-
|
|
3775
|
+
Hr(e, t);
|
|
3772
3776
|
}
|
|
3773
|
-
function
|
|
3774
|
-
|
|
3777
|
+
function fo(e) {
|
|
3778
|
+
Re.set(e);
|
|
3775
3779
|
}
|
|
3776
3780
|
const Kt = {
|
|
3777
3781
|
en: {
|
|
@@ -3821,50 +3825,50 @@ const Kt = {
|
|
|
3821
3825
|
waitSeconds: "Tekrar göndermeden önce lütfen bekleyin:"
|
|
3822
3826
|
}
|
|
3823
3827
|
};
|
|
3824
|
-
function
|
|
3825
|
-
|
|
3828
|
+
function po(e) {
|
|
3829
|
+
Yr(e, "svelte-gpy3mu", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}');
|
|
3826
3830
|
}
|
|
3827
|
-
function
|
|
3828
|
-
const
|
|
3829
|
-
return
|
|
3831
|
+
function er(e, t, r) {
|
|
3832
|
+
const n = e.slice();
|
|
3833
|
+
return n[69] = t[r], n[70] = t, n[71] = r, n;
|
|
3830
3834
|
}
|
|
3831
|
-
function
|
|
3832
|
-
let t,
|
|
3835
|
+
function mo(e) {
|
|
3836
|
+
let t, r, n, i, o, a, s, u, l, h, c, m, _, d, g, v, S, P = (
|
|
3833
3837
|
/*$_*/
|
|
3834
3838
|
e[19]("channelSMS") + ""
|
|
3835
|
-
),
|
|
3839
|
+
), I, D, M, N, te, Q, ue, de, he, B, U, Z, ge, be, ye = (
|
|
3836
3840
|
/*$_*/
|
|
3837
3841
|
e[19]("channelEmail") + ""
|
|
3838
|
-
), J,
|
|
3839
|
-
function
|
|
3842
|
+
), J, re, X, ce, ne, _e, Se;
|
|
3843
|
+
function Ee(b, A) {
|
|
3840
3844
|
return (
|
|
3841
3845
|
/*showResendOtp*/
|
|
3842
|
-
b[9] ?
|
|
3846
|
+
b[9] ? _o : (
|
|
3843
3847
|
/*showOtpInput*/
|
|
3844
|
-
b[12] ?
|
|
3848
|
+
b[12] ? bo : yo
|
|
3845
3849
|
)
|
|
3846
3850
|
);
|
|
3847
3851
|
}
|
|
3848
|
-
let
|
|
3852
|
+
let Te = Ee(e), Y = Te(e), V = (
|
|
3849
3853
|
/*selectedChannel*/
|
|
3850
|
-
e[0] &&
|
|
3854
|
+
e[0] && rr(e)
|
|
3851
3855
|
);
|
|
3852
|
-
function
|
|
3856
|
+
function $e(b, A) {
|
|
3853
3857
|
if (
|
|
3854
3858
|
/*isLoading*/
|
|
3855
3859
|
b[3] && /*showOtpInput*/
|
|
3856
3860
|
b[12]
|
|
3857
3861
|
)
|
|
3858
|
-
return
|
|
3862
|
+
return To;
|
|
3859
3863
|
if (
|
|
3860
3864
|
/*showOtpInput*/
|
|
3861
3865
|
b[12] && /*config*/
|
|
3862
3866
|
b[4]
|
|
3863
3867
|
)
|
|
3864
|
-
return
|
|
3868
|
+
return So;
|
|
3865
3869
|
}
|
|
3866
|
-
let
|
|
3867
|
-
function
|
|
3870
|
+
let fe = $e(e), $ = fe && fe(e);
|
|
3871
|
+
function ze(b, A) {
|
|
3868
3872
|
if (
|
|
3869
3873
|
/*showResendOtp*/
|
|
3870
3874
|
b[9]
|
|
@@ -3875,12 +3879,12 @@ function po(e) {
|
|
|
3875
3879
|
b[12] && /*config*/
|
|
3876
3880
|
b[4]
|
|
3877
3881
|
)
|
|
3878
|
-
return
|
|
3882
|
+
return Oo;
|
|
3879
3883
|
}
|
|
3880
|
-
let ie =
|
|
3884
|
+
let ie = ze(e), W = ie && ie(e);
|
|
3881
3885
|
return {
|
|
3882
3886
|
c() {
|
|
3883
|
-
t =
|
|
3887
|
+
t = O("div"), Y.c(), r = F(), n = O("div"), i = O("label"), o = O("div"), a = F(), s = O("input"), l = F(), h = O("div"), c = oe("svg"), m = oe("path"), _ = oe("circle"), d = oe("circle"), g = oe("circle"), v = F(), S = O("span"), I = k(P), D = F(), M = O("label"), N = O("div"), te = F(), Q = O("input"), de = F(), he = O("div"), B = oe("svg"), U = oe("rect"), Z = oe("path"), ge = F(), be = O("span"), J = k(ye), re = F(), V && V.c(), X = F(), $ && $.c(), ce = F(), ne = O("div"), W && W.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), se(
|
|
3884
3888
|
o,
|
|
3885
3889
|
"checked",
|
|
3886
3890
|
/*selectedChannel*/
|
|
@@ -3895,88 +3899,88 @@ function po(e) {
|
|
|
3895
3899
|
/*selectedChannel*/
|
|
3896
3900
|
e[0] === /*channels*/
|
|
3897
3901
|
e[20].SMS
|
|
3898
|
-
), p(
|
|
3899
|
-
|
|
3902
|
+
), p(N, "class", "RadioIndicator"), se(
|
|
3903
|
+
N,
|
|
3900
3904
|
"checked",
|
|
3901
3905
|
/*selectedChannel*/
|
|
3902
3906
|
e[0] === /*channels*/
|
|
3903
3907
|
e[20].EMAIL
|
|
3904
3908
|
), p(Q, "type", "radio"), p(Q, "name", "channel"), Q.value = /*channels*/
|
|
3905
|
-
e[20].EMAIL, Q.checked =
|
|
3909
|
+
e[20].EMAIL, Q.checked = ue = /*selectedChannel*/
|
|
3906
3910
|
e[0] === /*channels*/
|
|
3907
|
-
e[20].EMAIL, p(U, "x", "2"), p(U, "y", "4"), p(U, "width", "20"), p(U, "height", "16"), p(U, "rx", "2"), p(Z, "d", "m2 7 10 6 10-6"), p(
|
|
3908
|
-
|
|
3911
|
+
e[20].EMAIL, p(U, "x", "2"), p(U, "y", "4"), p(U, "width", "20"), p(U, "height", "16"), p(U, "rx", "2"), p(Z, "d", "m2 7 10 6 10-6"), p(B, "xmlns", "http://www.w3.org/2000/svg"), p(B, "width", "24"), p(B, "height", "24"), p(B, "viewBox", "0 0 24 24"), p(B, "fill", "none"), p(B, "stroke", "currentColor"), p(B, "stroke-width", "2"), p(B, "stroke-linecap", "round"), p(B, "stroke-linejoin", "round"), p(he, "class", "ChannelContent"), p(M, "class", "ChannelCheckbox"), se(
|
|
3912
|
+
M,
|
|
3909
3913
|
"selected",
|
|
3910
3914
|
/*selectedChannel*/
|
|
3911
3915
|
e[0] === /*channels*/
|
|
3912
3916
|
e[20].EMAIL
|
|
3913
|
-
), p(
|
|
3917
|
+
), p(n, "class", "ChannelSelection"), p(ne, "class", "OtpActionButtons");
|
|
3914
3918
|
},
|
|
3915
|
-
m(b,
|
|
3916
|
-
|
|
3917
|
-
|
|
3919
|
+
m(b, A) {
|
|
3920
|
+
C(b, t, A), Y.m(t, null), C(b, r, A), C(b, n, A), y(n, i), y(i, o), y(i, a), y(i, s), y(i, l), y(i, h), y(h, c), y(c, m), y(c, _), y(c, d), y(c, g), y(h, v), y(h, S), y(S, I), y(n, D), y(n, M), y(M, N), y(M, te), y(M, Q), y(M, de), y(M, he), y(he, B), y(B, U), y(B, Z), y(he, ge), y(he, be), y(be, J), C(b, re, A), V && V.m(b, A), C(b, X, A), $ && $.m(b, A), C(b, ce, A), C(b, ne, A), W && W.m(ne, null), _e || (Se = [
|
|
3921
|
+
pe(
|
|
3918
3922
|
s,
|
|
3919
3923
|
"change",
|
|
3920
3924
|
/*change_handler*/
|
|
3921
3925
|
e[39]
|
|
3922
3926
|
),
|
|
3923
|
-
|
|
3927
|
+
pe(
|
|
3924
3928
|
Q,
|
|
3925
3929
|
"change",
|
|
3926
3930
|
/*change_handler_1*/
|
|
3927
3931
|
e[40]
|
|
3928
3932
|
)
|
|
3929
|
-
],
|
|
3933
|
+
], _e = !0);
|
|
3930
3934
|
},
|
|
3931
|
-
p(b,
|
|
3932
|
-
|
|
3935
|
+
p(b, A) {
|
|
3936
|
+
Te === (Te = Ee(b)) && Y ? Y.p(b, A) : (Y.d(1), Y = Te(b), Y && (Y.c(), Y.m(t, null))), A[0] & /*selectedChannel, channels*/
|
|
3933
3937
|
1048577 && se(
|
|
3934
3938
|
o,
|
|
3935
3939
|
"checked",
|
|
3936
3940
|
/*selectedChannel*/
|
|
3937
3941
|
b[0] === /*channels*/
|
|
3938
3942
|
b[20].SMS
|
|
3939
|
-
),
|
|
3943
|
+
), A[0] & /*selectedChannel*/
|
|
3940
3944
|
1 && u !== (u = /*selectedChannel*/
|
|
3941
3945
|
b[0] === /*channels*/
|
|
3942
|
-
b[20].SMS) && (s.checked = u),
|
|
3943
|
-
524288 &&
|
|
3944
|
-
b[19]("channelSMS") + "") && j(
|
|
3946
|
+
b[20].SMS) && (s.checked = u), A[0] & /*$_*/
|
|
3947
|
+
524288 && P !== (P = /*$_*/
|
|
3948
|
+
b[19]("channelSMS") + "") && j(I, P), A[0] & /*selectedChannel, channels*/
|
|
3945
3949
|
1048577 && se(
|
|
3946
3950
|
i,
|
|
3947
3951
|
"selected",
|
|
3948
3952
|
/*selectedChannel*/
|
|
3949
3953
|
b[0] === /*channels*/
|
|
3950
3954
|
b[20].SMS
|
|
3951
|
-
),
|
|
3955
|
+
), A[0] & /*selectedChannel, channels*/
|
|
3952
3956
|
1048577 && se(
|
|
3953
|
-
|
|
3957
|
+
N,
|
|
3954
3958
|
"checked",
|
|
3955
3959
|
/*selectedChannel*/
|
|
3956
3960
|
b[0] === /*channels*/
|
|
3957
3961
|
b[20].EMAIL
|
|
3958
|
-
),
|
|
3959
|
-
1 &&
|
|
3962
|
+
), A[0] & /*selectedChannel*/
|
|
3963
|
+
1 && ue !== (ue = /*selectedChannel*/
|
|
3960
3964
|
b[0] === /*channels*/
|
|
3961
|
-
b[20].EMAIL) && (Q.checked =
|
|
3962
|
-
524288 &&
|
|
3963
|
-
b[19]("channelEmail") + "") && j(J,
|
|
3965
|
+
b[20].EMAIL) && (Q.checked = ue), A[0] & /*$_*/
|
|
3966
|
+
524288 && ye !== (ye = /*$_*/
|
|
3967
|
+
b[19]("channelEmail") + "") && j(J, ye), A[0] & /*selectedChannel, channels*/
|
|
3964
3968
|
1048577 && se(
|
|
3965
|
-
|
|
3969
|
+
M,
|
|
3966
3970
|
"selected",
|
|
3967
3971
|
/*selectedChannel*/
|
|
3968
3972
|
b[0] === /*channels*/
|
|
3969
3973
|
b[20].EMAIL
|
|
3970
3974
|
), /*selectedChannel*/
|
|
3971
|
-
b[0] ? V ? V.p(b,
|
|
3975
|
+
b[0] ? V ? V.p(b, A) : (V = rr(b), V.c(), V.m(X.parentNode, X)) : V && (V.d(1), V = null), fe === (fe = $e(b)) && $ ? $.p(b, A) : ($ && $.d(1), $ = fe && fe(b), $ && ($.c(), $.m(ce.parentNode, ce))), ie === (ie = ze(b)) && W ? W.p(b, A) : (W && W.d(1), W = ie && ie(b), W && (W.c(), W.m(ne, null)));
|
|
3972
3976
|
},
|
|
3973
3977
|
d(b) {
|
|
3974
|
-
b && (
|
|
3978
|
+
b && (H(t), H(r), H(n), H(re), H(X), H(ce), H(ne)), Y.d(), V && V.d(b), $ && $.d(b), W && W.d(), _e = !1, xe(Se);
|
|
3975
3979
|
}
|
|
3976
3980
|
};
|
|
3977
3981
|
}
|
|
3978
|
-
function
|
|
3979
|
-
let t,
|
|
3982
|
+
function go(e) {
|
|
3983
|
+
let t, r, n, i, o, a, s = (
|
|
3980
3984
|
/*$_*/
|
|
3981
3985
|
e[19]("errorHeader") + ""
|
|
3982
3986
|
), u, l, h, c, m, _, d = (
|
|
@@ -3985,258 +3989,258 @@ function mo(e) {
|
|
|
3985
3989
|
), g, v, S;
|
|
3986
3990
|
return {
|
|
3987
3991
|
c() {
|
|
3988
|
-
t =
|
|
3992
|
+
t = O("div"), r = O("div"), n = oe("svg"), i = oe("path"), o = F(), a = O("h2"), u = k(s), l = F(), h = O("p"), c = k(
|
|
3989
3993
|
/*errorMessage*/
|
|
3990
3994
|
e[8]
|
|
3991
|
-
), m = F(), _ =
|
|
3995
|
+
), m = F(), _ = O("button"), g = k(d), p(i, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), p(n, "xmlns", "http://www.w3.org/2000/svg"), p(n, "viewBox", "0 0 512 512"), p(r, "class", "OtpErrorHeader"), p(_, "class", "OtpButton error"), p(t, "class", "OtpError");
|
|
3992
3996
|
},
|
|
3993
|
-
m(
|
|
3994
|
-
|
|
3997
|
+
m(P, I) {
|
|
3998
|
+
C(P, t, I), y(t, r), y(r, n), y(n, i), y(r, o), y(r, a), y(a, u), y(t, l), y(t, h), y(h, c), y(t, m), y(t, _), y(_, g), v || (S = pe(
|
|
3995
3999
|
_,
|
|
3996
4000
|
"click",
|
|
3997
4001
|
/*manualClosePopup*/
|
|
3998
4002
|
e[28]
|
|
3999
4003
|
), v = !0);
|
|
4000
4004
|
},
|
|
4001
|
-
p(
|
|
4002
|
-
|
|
4005
|
+
p(P, I) {
|
|
4006
|
+
I[0] & /*$_*/
|
|
4003
4007
|
524288 && s !== (s = /*$_*/
|
|
4004
|
-
|
|
4008
|
+
P[19]("errorHeader") + "") && j(u, s), I[0] & /*errorMessage*/
|
|
4005
4009
|
256 && j(
|
|
4006
4010
|
c,
|
|
4007
4011
|
/*errorMessage*/
|
|
4008
|
-
|
|
4009
|
-
),
|
|
4012
|
+
P[8]
|
|
4013
|
+
), I[0] & /*$_*/
|
|
4010
4014
|
524288 && d !== (d = /*$_*/
|
|
4011
|
-
|
|
4015
|
+
P[19]("close") + "") && j(g, d);
|
|
4012
4016
|
},
|
|
4013
|
-
d(
|
|
4014
|
-
|
|
4017
|
+
d(P) {
|
|
4018
|
+
P && H(t), v = !1, S();
|
|
4015
4019
|
}
|
|
4016
4020
|
};
|
|
4017
4021
|
}
|
|
4018
|
-
function
|
|
4019
|
-
let t,
|
|
4022
|
+
function bo(e) {
|
|
4023
|
+
let t, r, n, i;
|
|
4020
4024
|
function o(l, h) {
|
|
4021
4025
|
return (
|
|
4022
4026
|
/*isLastWarning*/
|
|
4023
|
-
l[10] ?
|
|
4027
|
+
l[10] ? vo : Eo
|
|
4024
4028
|
);
|
|
4025
4029
|
}
|
|
4026
4030
|
let a = o(e), s = a(e), u = (
|
|
4027
4031
|
/*hasErrors*/
|
|
4028
|
-
e[6] &&
|
|
4032
|
+
e[6] && tr(e)
|
|
4029
4033
|
);
|
|
4030
4034
|
return {
|
|
4031
4035
|
c() {
|
|
4032
|
-
t =
|
|
4036
|
+
t = O("p"), s.c(), n = F(), u && u.c(), i = rn(), p(t, "class", r = /*isLastWarning*/
|
|
4033
4037
|
e[10] ? "LastWarningMessage" : "");
|
|
4034
4038
|
},
|
|
4035
4039
|
m(l, h) {
|
|
4036
|
-
|
|
4040
|
+
C(l, t, h), s.m(t, null), C(l, n, h), u && u.m(l, h), C(l, i, h);
|
|
4037
4041
|
},
|
|
4038
4042
|
p(l, h) {
|
|
4039
4043
|
a === (a = o(l)) && s ? s.p(l, h) : (s.d(1), s = a(l), s && (s.c(), s.m(t, null))), h[0] & /*isLastWarning*/
|
|
4040
|
-
1024 &&
|
|
4041
|
-
l[10] ? "LastWarningMessage" : "") && p(t, "class",
|
|
4042
|
-
l[6] ? u ? u.p(l, h) : (u =
|
|
4044
|
+
1024 && r !== (r = /*isLastWarning*/
|
|
4045
|
+
l[10] ? "LastWarningMessage" : "") && p(t, "class", r), /*hasErrors*/
|
|
4046
|
+
l[6] ? u ? u.p(l, h) : (u = tr(l), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null);
|
|
4043
4047
|
},
|
|
4044
4048
|
d(l) {
|
|
4045
|
-
l && (
|
|
4049
|
+
l && (H(t), H(n), H(i)), s.d(), u && u.d(l);
|
|
4046
4050
|
}
|
|
4047
4051
|
};
|
|
4048
4052
|
}
|
|
4049
|
-
function
|
|
4050
|
-
let t,
|
|
4053
|
+
function yo(e) {
|
|
4054
|
+
let t, r = (
|
|
4051
4055
|
/*$_*/
|
|
4052
4056
|
(e[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
|
|
4053
|
-
),
|
|
4057
|
+
), n;
|
|
4054
4058
|
return {
|
|
4055
4059
|
c() {
|
|
4056
|
-
t =
|
|
4060
|
+
t = O("p"), n = k(r);
|
|
4057
4061
|
},
|
|
4058
4062
|
m(i, o) {
|
|
4059
|
-
|
|
4063
|
+
C(i, t, o), y(t, n);
|
|
4060
4064
|
},
|
|
4061
4065
|
p(i, o) {
|
|
4062
4066
|
o[0] & /*$_*/
|
|
4063
|
-
524288 &&
|
|
4064
|
-
(i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && j(
|
|
4067
|
+
524288 && r !== (r = /*$_*/
|
|
4068
|
+
(i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && j(n, r);
|
|
4065
4069
|
},
|
|
4066
4070
|
d(i) {
|
|
4067
|
-
i &&
|
|
4071
|
+
i && H(t);
|
|
4068
4072
|
}
|
|
4069
4073
|
};
|
|
4070
4074
|
}
|
|
4071
|
-
function
|
|
4072
|
-
let t,
|
|
4075
|
+
function _o(e) {
|
|
4076
|
+
let t, r = (
|
|
4073
4077
|
/*$_*/
|
|
4074
4078
|
e[19]("otpExpiredMessage") + ""
|
|
4075
|
-
),
|
|
4079
|
+
), n;
|
|
4076
4080
|
return {
|
|
4077
4081
|
c() {
|
|
4078
|
-
t =
|
|
4082
|
+
t = O("p"), n = k(r), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
|
|
4079
4083
|
},
|
|
4080
4084
|
m(i, o) {
|
|
4081
|
-
|
|
4085
|
+
C(i, t, o), y(t, n);
|
|
4082
4086
|
},
|
|
4083
4087
|
p(i, o) {
|
|
4084
4088
|
o[0] & /*$_*/
|
|
4085
|
-
524288 &&
|
|
4086
|
-
i[19]("otpExpiredMessage") + "") && j(
|
|
4089
|
+
524288 && r !== (r = /*$_*/
|
|
4090
|
+
i[19]("otpExpiredMessage") + "") && j(n, r);
|
|
4087
4091
|
},
|
|
4088
4092
|
d(i) {
|
|
4089
|
-
i &&
|
|
4093
|
+
i && H(t);
|
|
4090
4094
|
}
|
|
4091
4095
|
};
|
|
4092
4096
|
}
|
|
4093
|
-
function
|
|
4097
|
+
function Eo(e) {
|
|
4094
4098
|
let t = (
|
|
4095
4099
|
/*$_*/
|
|
4096
4100
|
e[19]("popupMessage") + ""
|
|
4097
|
-
),
|
|
4101
|
+
), r;
|
|
4098
4102
|
return {
|
|
4099
4103
|
c() {
|
|
4100
|
-
|
|
4104
|
+
r = k(t);
|
|
4101
4105
|
},
|
|
4102
|
-
m(
|
|
4103
|
-
|
|
4106
|
+
m(n, i) {
|
|
4107
|
+
C(n, r, i);
|
|
4104
4108
|
},
|
|
4105
|
-
p(
|
|
4109
|
+
p(n, i) {
|
|
4106
4110
|
i[0] & /*$_*/
|
|
4107
4111
|
524288 && t !== (t = /*$_*/
|
|
4108
|
-
|
|
4112
|
+
n[19]("popupMessage") + "") && j(r, t);
|
|
4109
4113
|
},
|
|
4110
|
-
d(
|
|
4111
|
-
|
|
4114
|
+
d(n) {
|
|
4115
|
+
n && H(r);
|
|
4112
4116
|
}
|
|
4113
4117
|
};
|
|
4114
4118
|
}
|
|
4115
|
-
function
|
|
4119
|
+
function vo(e) {
|
|
4116
4120
|
let t = (
|
|
4117
4121
|
/*$_*/
|
|
4118
4122
|
e[19]("popupMessageLastWarning") + ""
|
|
4119
|
-
),
|
|
4123
|
+
), r;
|
|
4120
4124
|
return {
|
|
4121
4125
|
c() {
|
|
4122
|
-
|
|
4126
|
+
r = k(t);
|
|
4123
4127
|
},
|
|
4124
|
-
m(
|
|
4125
|
-
|
|
4128
|
+
m(n, i) {
|
|
4129
|
+
C(n, r, i);
|
|
4126
4130
|
},
|
|
4127
|
-
p(
|
|
4131
|
+
p(n, i) {
|
|
4128
4132
|
i[0] & /*$_*/
|
|
4129
4133
|
524288 && t !== (t = /*$_*/
|
|
4130
|
-
|
|
4134
|
+
n[19]("popupMessageLastWarning") + "") && j(r, t);
|
|
4131
4135
|
},
|
|
4132
|
-
d(
|
|
4133
|
-
|
|
4136
|
+
d(n) {
|
|
4137
|
+
n && H(r);
|
|
4134
4138
|
}
|
|
4135
4139
|
};
|
|
4136
4140
|
}
|
|
4137
|
-
function
|
|
4138
|
-
let t,
|
|
4141
|
+
function tr(e) {
|
|
4142
|
+
let t, r;
|
|
4139
4143
|
return {
|
|
4140
4144
|
c() {
|
|
4141
|
-
t =
|
|
4145
|
+
t = O("p"), r = k(
|
|
4142
4146
|
/*errorMessage*/
|
|
4143
4147
|
e[8]
|
|
4144
4148
|
), p(t, "class", "OtpErrorMessage"), p(t, "role", "alert");
|
|
4145
4149
|
},
|
|
4146
|
-
m(
|
|
4147
|
-
|
|
4150
|
+
m(n, i) {
|
|
4151
|
+
C(n, t, i), y(t, r);
|
|
4148
4152
|
},
|
|
4149
|
-
p(
|
|
4153
|
+
p(n, i) {
|
|
4150
4154
|
i[0] & /*errorMessage*/
|
|
4151
4155
|
256 && j(
|
|
4152
|
-
|
|
4156
|
+
r,
|
|
4153
4157
|
/*errorMessage*/
|
|
4154
|
-
|
|
4158
|
+
n[8]
|
|
4155
4159
|
);
|
|
4156
4160
|
},
|
|
4157
|
-
d(
|
|
4158
|
-
|
|
4161
|
+
d(n) {
|
|
4162
|
+
n && H(t);
|
|
4159
4163
|
}
|
|
4160
4164
|
};
|
|
4161
4165
|
}
|
|
4162
|
-
function
|
|
4163
|
-
let t,
|
|
4166
|
+
function rr(e) {
|
|
4167
|
+
let t, r, n, i;
|
|
4164
4168
|
function o(u, l) {
|
|
4165
4169
|
return (
|
|
4166
4170
|
/*currentChannelTimer*/
|
|
4167
|
-
u[17] > 0 ?
|
|
4171
|
+
u[17] > 0 ? wo : xo
|
|
4168
4172
|
);
|
|
4169
4173
|
}
|
|
4170
4174
|
let a = o(e), s = a(e);
|
|
4171
4175
|
return {
|
|
4172
4176
|
c() {
|
|
4173
|
-
t =
|
|
4177
|
+
t = O("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = r = !/*canSubmitChannel*/
|
|
4174
4178
|
e[18], se(t, "disabled", !/*canSubmitChannel*/
|
|
4175
4179
|
e[18] || /*waitingForConfig*/
|
|
4176
4180
|
e[16]);
|
|
4177
4181
|
},
|
|
4178
4182
|
m(u, l) {
|
|
4179
|
-
|
|
4183
|
+
C(u, t, l), s.m(t, null), n || (i = pe(
|
|
4180
4184
|
t,
|
|
4181
4185
|
"click",
|
|
4182
4186
|
/*handleChannelSubmit*/
|
|
4183
4187
|
e[22]
|
|
4184
|
-
),
|
|
4188
|
+
), n = !0);
|
|
4185
4189
|
},
|
|
4186
4190
|
p(u, l) {
|
|
4187
4191
|
a === (a = o(u)) && s ? s.p(u, l) : (s.d(1), s = a(u), s && (s.c(), s.m(t, null))), l[0] & /*canSubmitChannel*/
|
|
4188
|
-
262144 &&
|
|
4189
|
-
u[18]) && (t.disabled =
|
|
4192
|
+
262144 && r !== (r = !/*canSubmitChannel*/
|
|
4193
|
+
u[18]) && (t.disabled = r), l[0] & /*canSubmitChannel, waitingForConfig*/
|
|
4190
4194
|
327680 && se(t, "disabled", !/*canSubmitChannel*/
|
|
4191
4195
|
u[18] || /*waitingForConfig*/
|
|
4192
4196
|
u[16]);
|
|
4193
4197
|
},
|
|
4194
4198
|
d(u) {
|
|
4195
|
-
u &&
|
|
4199
|
+
u && H(t), s.d(), n = !1, i();
|
|
4196
4200
|
}
|
|
4197
4201
|
};
|
|
4198
4202
|
}
|
|
4199
|
-
function
|
|
4203
|
+
function xo(e) {
|
|
4200
4204
|
let t = (
|
|
4201
4205
|
/*$_*/
|
|
4202
4206
|
e[19]("sendCode") + ""
|
|
4203
|
-
),
|
|
4207
|
+
), r;
|
|
4204
4208
|
return {
|
|
4205
4209
|
c() {
|
|
4206
|
-
|
|
4210
|
+
r = k(t);
|
|
4207
4211
|
},
|
|
4208
|
-
m(
|
|
4209
|
-
|
|
4212
|
+
m(n, i) {
|
|
4213
|
+
C(n, r, i);
|
|
4210
4214
|
},
|
|
4211
|
-
p(
|
|
4215
|
+
p(n, i) {
|
|
4212
4216
|
i[0] & /*$_*/
|
|
4213
4217
|
524288 && t !== (t = /*$_*/
|
|
4214
|
-
|
|
4218
|
+
n[19]("sendCode") + "") && j(r, t);
|
|
4215
4219
|
},
|
|
4216
|
-
d(
|
|
4217
|
-
|
|
4220
|
+
d(n) {
|
|
4221
|
+
n && H(r);
|
|
4218
4222
|
}
|
|
4219
4223
|
};
|
|
4220
4224
|
}
|
|
4221
|
-
function
|
|
4225
|
+
function wo(e) {
|
|
4222
4226
|
let t = (
|
|
4223
4227
|
/*$_*/
|
|
4224
4228
|
e[19]("waitSeconds") + ""
|
|
4225
|
-
),
|
|
4229
|
+
), r, n, i, o;
|
|
4226
4230
|
return {
|
|
4227
4231
|
c() {
|
|
4228
|
-
|
|
4232
|
+
r = k(t), n = k(" ("), i = k(
|
|
4229
4233
|
/*currentChannelTimer*/
|
|
4230
4234
|
e[17]
|
|
4231
4235
|
), o = k("s)");
|
|
4232
4236
|
},
|
|
4233
4237
|
m(a, s) {
|
|
4234
|
-
|
|
4238
|
+
C(a, r, s), C(a, n, s), C(a, i, s), C(a, o, s);
|
|
4235
4239
|
},
|
|
4236
4240
|
p(a, s) {
|
|
4237
4241
|
s[0] & /*$_*/
|
|
4238
4242
|
524288 && t !== (t = /*$_*/
|
|
4239
|
-
a[19]("waitSeconds") + "") && j(
|
|
4243
|
+
a[19]("waitSeconds") + "") && j(r, t), s[0] & /*currentChannelTimer*/
|
|
4240
4244
|
131072 && j(
|
|
4241
4245
|
i,
|
|
4242
4246
|
/*currentChannelTimer*/
|
|
@@ -4244,12 +4248,12 @@ function xo(e) {
|
|
|
4244
4248
|
);
|
|
4245
4249
|
},
|
|
4246
4250
|
d(a) {
|
|
4247
|
-
a && (
|
|
4251
|
+
a && (H(r), H(n), H(i), H(o));
|
|
4248
4252
|
}
|
|
4249
4253
|
};
|
|
4250
4254
|
}
|
|
4251
|
-
function
|
|
4252
|
-
let t,
|
|
4255
|
+
function So(e) {
|
|
4256
|
+
let t, r, n = (
|
|
4253
4257
|
/*$_*/
|
|
4254
4258
|
e[19]("timeRemaining") + ""
|
|
4255
4259
|
), i, o, a = (
|
|
@@ -4266,23 +4270,23 @@ function wo(e) {
|
|
|
4266
4270
|
e[2]
|
|
4267
4271
|
), d = [];
|
|
4268
4272
|
for (let g = 0; g < _.length; g += 1)
|
|
4269
|
-
d[g] =
|
|
4273
|
+
d[g] = nr(er(e, _, g));
|
|
4270
4274
|
return {
|
|
4271
4275
|
c() {
|
|
4272
|
-
t =
|
|
4276
|
+
t = O("div"), r = O("div"), i = k(n), o = F(), s = k(a), u = F(), h = k(l), c = F(), m = O("div");
|
|
4273
4277
|
for (let g = 0; g < d.length; g += 1)
|
|
4274
4278
|
d[g].c();
|
|
4275
|
-
p(
|
|
4279
|
+
p(r, "class", "OtpTimer"), p(m, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
|
|
4276
4280
|
},
|
|
4277
4281
|
m(g, v) {
|
|
4278
|
-
|
|
4282
|
+
C(g, t, v), y(t, r), y(r, i), y(r, o), y(r, s), y(r, u), y(r, h), y(t, c), y(t, m);
|
|
4279
4283
|
for (let S = 0; S < d.length; S += 1)
|
|
4280
4284
|
d[S] && d[S].m(m, null);
|
|
4281
4285
|
},
|
|
4282
4286
|
p(g, v) {
|
|
4283
4287
|
if (v[0] & /*$_*/
|
|
4284
|
-
524288 &&
|
|
4285
|
-
g[19]("timeRemaining") + "") && j(i,
|
|
4288
|
+
524288 && n !== (n = /*$_*/
|
|
4289
|
+
g[19]("timeRemaining") + "") && j(i, n), v[0] & /*timeLeft*/
|
|
4286
4290
|
32 && a !== (a = /*formatTime*/
|
|
4287
4291
|
g[23](
|
|
4288
4292
|
/*timeLeft*/
|
|
@@ -4297,8 +4301,8 @@ function wo(e) {
|
|
|
4297
4301
|
);
|
|
4298
4302
|
let S;
|
|
4299
4303
|
for (S = 0; S < _.length; S += 1) {
|
|
4300
|
-
const
|
|
4301
|
-
d[S] ? d[S].p(
|
|
4304
|
+
const P = er(g, _, S);
|
|
4305
|
+
d[S] ? d[S].p(P, v) : (d[S] = nr(P), d[S].c(), d[S].m(m, null));
|
|
4302
4306
|
}
|
|
4303
4307
|
for (; S < d.length; S += 1)
|
|
4304
4308
|
d[S].d(1);
|
|
@@ -4306,27 +4310,27 @@ function wo(e) {
|
|
|
4306
4310
|
}
|
|
4307
4311
|
},
|
|
4308
4312
|
d(g) {
|
|
4309
|
-
g &&
|
|
4313
|
+
g && H(t), tn(d, g);
|
|
4310
4314
|
}
|
|
4311
4315
|
};
|
|
4312
4316
|
}
|
|
4313
|
-
function
|
|
4317
|
+
function To(e) {
|
|
4314
4318
|
let t;
|
|
4315
4319
|
return {
|
|
4316
4320
|
c() {
|
|
4317
|
-
t =
|
|
4321
|
+
t = O("div"), t.innerHTML = '<span class="OtpLoader"></span>', p(t, "class", "OtpLoaderContainer");
|
|
4318
4322
|
},
|
|
4319
|
-
m(
|
|
4320
|
-
|
|
4323
|
+
m(r, n) {
|
|
4324
|
+
C(r, t, n);
|
|
4321
4325
|
},
|
|
4322
4326
|
p: ee,
|
|
4323
|
-
d(
|
|
4324
|
-
|
|
4327
|
+
d(r) {
|
|
4328
|
+
r && H(t);
|
|
4325
4329
|
}
|
|
4326
4330
|
};
|
|
4327
4331
|
}
|
|
4328
|
-
function
|
|
4329
|
-
let t,
|
|
4332
|
+
function nr(e) {
|
|
4333
|
+
let t, r, n, i = (
|
|
4330
4334
|
/*index*/
|
|
4331
4335
|
e[71]
|
|
4332
4336
|
), o, a;
|
|
@@ -4359,19 +4363,19 @@ function rn(e) {
|
|
|
4359
4363
|
}
|
|
4360
4364
|
return {
|
|
4361
4365
|
c() {
|
|
4362
|
-
t =
|
|
4363
|
-
e[71]}`), p(t, "type", "text"), p(t, "class",
|
|
4366
|
+
t = O("input"), p(t, "id", `otp-input-${/*index*/
|
|
4367
|
+
e[71]}`), p(t, "type", "text"), p(t, "class", r = `otp-box ${/*config*/
|
|
4364
4368
|
e[4].inputLength % 2 === 0 && /*index*/
|
|
4365
4369
|
e[71] === /*config*/
|
|
4366
|
-
e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value =
|
|
4370
|
+
e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = n = /*char*/
|
|
4367
4371
|
e[69], p(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
|
|
4368
4372
|
e[11], p(t, "autocomplete", "off");
|
|
4369
4373
|
},
|
|
4370
4374
|
m(c, m) {
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
+
C(c, t, m), s(), o || (a = [
|
|
4376
|
+
pe(t, "input", l),
|
|
4377
|
+
pe(t, "keydown", h),
|
|
4378
|
+
pe(
|
|
4375
4379
|
t,
|
|
4376
4380
|
"paste",
|
|
4377
4381
|
/*handleOnPasteOtp*/
|
|
@@ -4381,37 +4385,37 @@ function rn(e) {
|
|
|
4381
4385
|
},
|
|
4382
4386
|
p(c, m) {
|
|
4383
4387
|
e = c, m[0] & /*config*/
|
|
4384
|
-
16 &&
|
|
4388
|
+
16 && r !== (r = `otp-box ${/*config*/
|
|
4385
4389
|
e[4].inputLength % 2 === 0 && /*index*/
|
|
4386
4390
|
e[71] === /*config*/
|
|
4387
|
-
e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class",
|
|
4388
|
-
4 &&
|
|
4389
|
-
e[69]) && t.value !==
|
|
4391
|
+
e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", r), m[0] & /*otp*/
|
|
4392
|
+
4 && n !== (n = /*char*/
|
|
4393
|
+
e[69]) && t.value !== n && (t.value = n), m[0] & /*inputDisabled*/
|
|
4390
4394
|
2048 && (t.disabled = /*inputDisabled*/
|
|
4391
4395
|
e[11]), i !== /*index*/
|
|
4392
4396
|
e[71] && (u(), i = /*index*/
|
|
4393
4397
|
e[71], s());
|
|
4394
4398
|
},
|
|
4395
4399
|
d(c) {
|
|
4396
|
-
c &&
|
|
4400
|
+
c && H(t), u(), o = !1, xe(a);
|
|
4397
4401
|
}
|
|
4398
4402
|
};
|
|
4399
4403
|
}
|
|
4400
|
-
function
|
|
4401
|
-
let t,
|
|
4404
|
+
function Oo(e) {
|
|
4405
|
+
let t, r = (
|
|
4402
4406
|
/*$_*/
|
|
4403
4407
|
e[19]("submit") + ""
|
|
4404
|
-
),
|
|
4408
|
+
), n, i, o, a;
|
|
4405
4409
|
return {
|
|
4406
4410
|
c() {
|
|
4407
|
-
t =
|
|
4411
|
+
t = O("button"), n = k(r), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
|
|
4408
4412
|
e[2].join("").length !== /*config*/
|
|
4409
4413
|
e[4].inputLength || /*isSubmitting*/
|
|
4410
4414
|
e[13] || /*maxAttempts*/
|
|
4411
4415
|
e[15];
|
|
4412
4416
|
},
|
|
4413
4417
|
m(s, u) {
|
|
4414
|
-
|
|
4418
|
+
C(s, t, u), y(t, n), o || (a = pe(
|
|
4415
4419
|
t,
|
|
4416
4420
|
"click",
|
|
4417
4421
|
/*submitOtp*/
|
|
@@ -4420,8 +4424,8 @@ function To(e) {
|
|
|
4420
4424
|
},
|
|
4421
4425
|
p(s, u) {
|
|
4422
4426
|
u[0] & /*$_*/
|
|
4423
|
-
524288 &&
|
|
4424
|
-
s[19]("submit") + "") && j(
|
|
4427
|
+
524288 && r !== (r = /*$_*/
|
|
4428
|
+
s[19]("submit") + "") && j(n, r), u[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
4425
4429
|
40980 && i !== (i = /*otp*/
|
|
4426
4430
|
s[2].join("").length !== /*config*/
|
|
4427
4431
|
s[4].inputLength || /*isSubmitting*/
|
|
@@ -4429,21 +4433,21 @@ function To(e) {
|
|
|
4429
4433
|
s[15]) && (t.disabled = i);
|
|
4430
4434
|
},
|
|
4431
4435
|
d(s) {
|
|
4432
|
-
s &&
|
|
4436
|
+
s && H(t), o = !1, a();
|
|
4433
4437
|
}
|
|
4434
4438
|
};
|
|
4435
4439
|
}
|
|
4436
4440
|
function Ho(e) {
|
|
4437
|
-
let t,
|
|
4441
|
+
let t, r = (
|
|
4438
4442
|
/*$_*/
|
|
4439
4443
|
e[19]("resendOtp") + ""
|
|
4440
|
-
),
|
|
4444
|
+
), n, i, o;
|
|
4441
4445
|
return {
|
|
4442
4446
|
c() {
|
|
4443
|
-
t =
|
|
4447
|
+
t = O("button"), n = k(r), p(t, "class", "OtpButton");
|
|
4444
4448
|
},
|
|
4445
4449
|
m(a, s) {
|
|
4446
|
-
|
|
4450
|
+
C(a, t, s), y(t, n), i || (o = pe(
|
|
4447
4451
|
t,
|
|
4448
4452
|
"click",
|
|
4449
4453
|
/*handleResendOtp*/
|
|
@@ -4452,45 +4456,45 @@ function Ho(e) {
|
|
|
4452
4456
|
},
|
|
4453
4457
|
p(a, s) {
|
|
4454
4458
|
s[0] & /*$_*/
|
|
4455
|
-
524288 &&
|
|
4456
|
-
a[19]("resendOtp") + "") && j(
|
|
4459
|
+
524288 && r !== (r = /*$_*/
|
|
4460
|
+
a[19]("resendOtp") + "") && j(n, r);
|
|
4457
4461
|
},
|
|
4458
4462
|
d(a) {
|
|
4459
|
-
a &&
|
|
4463
|
+
a && H(t), i = !1, o();
|
|
4460
4464
|
}
|
|
4461
4465
|
};
|
|
4462
4466
|
}
|
|
4463
|
-
function
|
|
4467
|
+
function Ao(e) {
|
|
4464
4468
|
let t;
|
|
4465
|
-
function
|
|
4469
|
+
function r(o, a) {
|
|
4466
4470
|
return (
|
|
4467
4471
|
/*hasConfigErrors*/
|
|
4468
|
-
o[7] ?
|
|
4472
|
+
o[7] ? go : mo
|
|
4469
4473
|
);
|
|
4470
4474
|
}
|
|
4471
|
-
let
|
|
4475
|
+
let n = r(e), i = n(e);
|
|
4472
4476
|
return {
|
|
4473
4477
|
c() {
|
|
4474
|
-
t =
|
|
4478
|
+
t = O("div"), i.c(), p(t, "class", "OtpContent");
|
|
4475
4479
|
},
|
|
4476
4480
|
m(o, a) {
|
|
4477
|
-
|
|
4481
|
+
C(o, t, a), i.m(t, null), e[44](t);
|
|
4478
4482
|
},
|
|
4479
4483
|
p(o, a) {
|
|
4480
|
-
|
|
4484
|
+
n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4481
4485
|
},
|
|
4482
4486
|
i: ee,
|
|
4483
4487
|
o: ee,
|
|
4484
4488
|
d(o) {
|
|
4485
|
-
o &&
|
|
4489
|
+
o && H(t), i.d(), e[44](null);
|
|
4486
4490
|
}
|
|
4487
4491
|
};
|
|
4488
4492
|
}
|
|
4489
|
-
function
|
|
4490
|
-
let
|
|
4491
|
-
|
|
4492
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: m } = t, { templateid: _ } = t, d = [], g = !0, v = null, S = 0,
|
|
4493
|
-
const
|
|
4493
|
+
function Co(e, t, r) {
|
|
4494
|
+
let n, i, o;
|
|
4495
|
+
Jr(e, co, (f) => r(19, o = f));
|
|
4496
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: m } = t, { templateid: _ } = t, d = [], g = !0, v = null, S = 0, P = "", I = "", D = !1, M = !1, N = "", te = "", Q = "", ue = !1, de = !1, he = !1, B = "", U = {}, Z = null, ge = !1, be = !1, ye = "", J, re = [], X = null, ce = 0, ne = !1, _e = !1;
|
|
4497
|
+
const Se = { SMS: "sms", EMAIL: "email" }, Ee = {
|
|
4494
4498
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
4495
4499
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
4496
4500
|
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
@@ -4498,8 +4502,8 @@ function Ao(e, t, n) {
|
|
|
4498
4502
|
Object.keys(Kt).forEach((f) => {
|
|
4499
4503
|
Yt(f, Kt[f]);
|
|
4500
4504
|
});
|
|
4501
|
-
const
|
|
4502
|
-
|
|
4505
|
+
const Te = () => {
|
|
4506
|
+
fo(l);
|
|
4503
4507
|
}, Y = () => {
|
|
4504
4508
|
fetch(m).then((f) => f.json()).then((f) => {
|
|
4505
4509
|
Object.keys(f).forEach((E) => {
|
|
@@ -4508,90 +4512,90 @@ function Ao(e, t, n) {
|
|
|
4508
4512
|
}).catch((f) => {
|
|
4509
4513
|
console.log(f);
|
|
4510
4514
|
});
|
|
4511
|
-
}, V = (f) =>
|
|
4515
|
+
}, V = (f) => ve(this, null, function* () {
|
|
4512
4516
|
var E;
|
|
4513
4517
|
if ((E = f.detail) != null && E["x-step-up-required"]) {
|
|
4514
|
-
if (
|
|
4515
|
-
|
|
4518
|
+
if (r(7, M = !1), r(6, D = !1), r(8, N = ""), te = f.detail["x-step-up-token"], Q = f.detail.flow, !te || !Q) {
|
|
4519
|
+
r(3, g = !1), r(7, M = !0), r(8, N = o("configError"));
|
|
4516
4520
|
return;
|
|
4517
4521
|
}
|
|
4518
|
-
|
|
4522
|
+
r(12, ge = !1), r(3, g = !1);
|
|
4519
4523
|
}
|
|
4520
|
-
}),
|
|
4521
|
-
X && (clearInterval(X), X = null), Z && (clearInterval(Z), Z = null),
|
|
4522
|
-
},
|
|
4523
|
-
|
|
4524
|
+
}), $e = () => {
|
|
4525
|
+
X && (clearInterval(X), X = null), Z && (clearInterval(Z), Z = null), r(6, D = !1), r(7, M = !1), r(8, N = ""), r(10, de = !1), r(2, d = []), r(4, v = null), r(3, g = !0), r(0, B = ""), r(12, ge = !1), r(38, U = {});
|
|
4526
|
+
}, fe = () => {
|
|
4527
|
+
$e();
|
|
4524
4528
|
}, $ = () => new Promise((f, E) => {
|
|
4525
4529
|
const x = new URL(`${h}/api/pam/v1/mfa/challenge/${te}`), G = new Headers();
|
|
4526
|
-
G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-SessionId", `${c}`),
|
|
4527
|
-
const
|
|
4530
|
+
G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-SessionId", `${c}`), r(16, _e = !0);
|
|
4531
|
+
const Oe = {
|
|
4528
4532
|
method: "PATCH",
|
|
4529
4533
|
headers: G,
|
|
4530
4534
|
body: JSON.stringify({
|
|
4531
|
-
channel:
|
|
4535
|
+
channel: B,
|
|
4532
4536
|
templateId: _
|
|
4533
4537
|
})
|
|
4534
4538
|
};
|
|
4535
|
-
fetch(x,
|
|
4536
|
-
|
|
4539
|
+
fetch(x, Oe).then((It) => It.json()).then(() => {
|
|
4540
|
+
r(15, ne = !1), b(), A(), f();
|
|
4537
4541
|
}).catch((It) => {
|
|
4538
4542
|
E();
|
|
4539
4543
|
});
|
|
4540
|
-
}),
|
|
4544
|
+
}), ze = () => {
|
|
4541
4545
|
Z && clearInterval(Z), Z = setInterval(
|
|
4542
4546
|
() => {
|
|
4543
|
-
const f =
|
|
4547
|
+
const f = Xe({}, U);
|
|
4544
4548
|
let E = !1;
|
|
4545
4549
|
Object.keys(f).forEach((x) => {
|
|
4546
4550
|
f[x] > 0 && (f[x]--, E = !0);
|
|
4547
|
-
}),
|
|
4551
|
+
}), r(38, U = f), !E && Z && (clearInterval(Z), Z = null);
|
|
4548
4552
|
},
|
|
4549
4553
|
1e3
|
|
4550
4554
|
);
|
|
4551
4555
|
}, ie = (f) => {
|
|
4552
|
-
|
|
4553
|
-
}, W = () =>
|
|
4554
|
-
if (!(!
|
|
4555
|
-
|
|
4556
|
+
r(0, B = f);
|
|
4557
|
+
}, W = () => ve(this, null, function* () {
|
|
4558
|
+
if (!(!B || U[B] && U[B] > 0)) {
|
|
4559
|
+
r(3, g = !0), _ && _.startsWith("2fa-") && r(30, _ = `2fa-${B}`);
|
|
4556
4560
|
try {
|
|
4557
|
-
yield $(), yield
|
|
4558
|
-
[
|
|
4559
|
-
})),
|
|
4561
|
+
yield $(), yield at(), r(38, U = ut(Xe({}, U), {
|
|
4562
|
+
[B]: 30
|
|
4563
|
+
})), ze(), r(12, ge = !0), b(), A();
|
|
4560
4564
|
} catch (f) {
|
|
4561
|
-
console.error("Error submitting channel:", f),
|
|
4565
|
+
console.error("Error submitting channel:", f), r(6, D = !0), r(8, N = o("submissionError"));
|
|
4562
4566
|
} finally {
|
|
4563
|
-
|
|
4567
|
+
r(3, g = !1);
|
|
4564
4568
|
}
|
|
4565
4569
|
}
|
|
4566
4570
|
}), b = () => {
|
|
4567
|
-
const f = new Date(
|
|
4568
|
-
|
|
4569
|
-
const z = Date.now(),
|
|
4570
|
-
|
|
4571
|
-
},
|
|
4571
|
+
const f = new Date(P), E = new Date(I), x = /* @__PURE__ */ new Date(), G = E.getTime() - x.getTime();
|
|
4572
|
+
ce = f.getTime() - G;
|
|
4573
|
+
const z = Date.now(), Oe = Math.max(0, Math.floor((ce - z) / 1e3));
|
|
4574
|
+
r(5, S = Oe);
|
|
4575
|
+
}, A = () => {
|
|
4572
4576
|
X && clearInterval(X), X = setInterval(
|
|
4573
4577
|
() => {
|
|
4574
|
-
const f = Date.now(), E = Math.max(0, Math.floor((
|
|
4575
|
-
|
|
4578
|
+
const f = Date.now(), E = Math.max(0, Math.floor((ce - f) / 1e3));
|
|
4579
|
+
r(5, S = E), r(11, he = E <= 0), E <= 0 && (clearInterval(X), X = null, r(9, ue = !0), r(6, D = !1), r(10, de = !1));
|
|
4576
4580
|
},
|
|
4577
4581
|
1e3
|
|
4578
4582
|
);
|
|
4579
|
-
},
|
|
4583
|
+
}, Mr = (f) => {
|
|
4580
4584
|
const E = Math.floor(f / 60), x = f % 60;
|
|
4581
4585
|
return `${E.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
|
|
4582
|
-
},
|
|
4586
|
+
}, st = (f, E) => {
|
|
4583
4587
|
const x = [...d];
|
|
4584
|
-
x[f] = E.toUpperCase(),
|
|
4585
|
-
},
|
|
4586
|
-
var G, z,
|
|
4588
|
+
x[f] = E.toUpperCase(), r(2, d = x), x.join("") !== ye && r(13, be = !1);
|
|
4589
|
+
}, Lr = (f) => {
|
|
4590
|
+
var G, z, Oe;
|
|
4587
4591
|
f.preventDefault();
|
|
4588
4592
|
const x = (((z = (G = f.clipboardData) == null ? void 0 : G.getData("text")) == null ? void 0 : z.trim()) || "").slice(0, v.inputLength).split("");
|
|
4589
|
-
|
|
4593
|
+
r(2, d = [...x, ...Array(v.inputLength - x.length).fill("")]), (Oe = re[x.length]) == null || Oe.focus(), x.length === v.inputLength && Lt();
|
|
4590
4594
|
}, Pt = (f, E) => {
|
|
4591
4595
|
const x = f.target, G = x.value;
|
|
4592
4596
|
if (/^[a-z0-9]$/i.test(G)) {
|
|
4593
|
-
|
|
4594
|
-
const z =
|
|
4597
|
+
st(E, G);
|
|
4598
|
+
const z = re[E + 1];
|
|
4595
4599
|
z == null || z.focus();
|
|
4596
4600
|
}
|
|
4597
4601
|
x.value = "";
|
|
@@ -4600,19 +4604,19 @@ function Ao(e, t, n) {
|
|
|
4600
4604
|
if (/^[a-z0-9]$/i.test(x)) {
|
|
4601
4605
|
if (G && x.toLowerCase() === "v")
|
|
4602
4606
|
return;
|
|
4603
|
-
f.preventDefault(),
|
|
4604
|
-
const z =
|
|
4607
|
+
f.preventDefault(), st(E, x);
|
|
4608
|
+
const z = re[E + 1];
|
|
4605
4609
|
z == null || z.focus();
|
|
4606
4610
|
} else if (x === "Backspace") {
|
|
4607
|
-
f.preventDefault(), d[E] !== "" &&
|
|
4608
|
-
const z =
|
|
4611
|
+
f.preventDefault(), d[E] !== "" && st(E, "");
|
|
4612
|
+
const z = re[E - 1];
|
|
4609
4613
|
z == null || z.focus();
|
|
4610
4614
|
}
|
|
4611
|
-
},
|
|
4612
|
-
Q == "stateful" && ($(),
|
|
4615
|
+
}, Ir = () => {
|
|
4616
|
+
Q == "stateful" && ($(), r(9, ue = !1));
|
|
4613
4617
|
const f = new CustomEvent("otpResendRequested");
|
|
4614
4618
|
window.dispatchEvent(f);
|
|
4615
|
-
},
|
|
4619
|
+
}, Nr = (f) => {
|
|
4616
4620
|
window.dispatchEvent(new CustomEvent(
|
|
4617
4621
|
"otpSubmitted",
|
|
4618
4622
|
{
|
|
@@ -4623,19 +4627,19 @@ function Ao(e, t, n) {
|
|
|
4623
4627
|
}
|
|
4624
4628
|
}
|
|
4625
4629
|
));
|
|
4626
|
-
},
|
|
4630
|
+
}, Rr = (f) => ve(this, null, function* () {
|
|
4627
4631
|
const E = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/validate`, h);
|
|
4628
4632
|
E.searchParams.append("input", f);
|
|
4629
4633
|
try {
|
|
4630
4634
|
const x = yield fetch(E.href, { method: "POST" });
|
|
4631
4635
|
if (x.status === 200) {
|
|
4632
|
-
|
|
4636
|
+
kr();
|
|
4633
4637
|
return;
|
|
4634
4638
|
}
|
|
4635
4639
|
const G = yield x.json();
|
|
4636
4640
|
throw new Error(G.message);
|
|
4637
4641
|
} catch (x) {
|
|
4638
|
-
if (yield
|
|
4642
|
+
if (yield at(), x.message === Ee.INTERNAL_SERVER_ERROR) {
|
|
4639
4643
|
if (v.numberOfValidateAttempts === v.maxValidationAttempts - 1) {
|
|
4640
4644
|
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
|
|
4641
4645
|
{
|
|
@@ -4649,14 +4653,14 @@ function Ao(e, t, n) {
|
|
|
4649
4653
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4650
4654
|
return;
|
|
4651
4655
|
}
|
|
4652
|
-
|
|
4656
|
+
r(6, D = !0), r(8, N = o("invalidOtp")), at();
|
|
4653
4657
|
return;
|
|
4654
4658
|
}
|
|
4655
|
-
x.message ===
|
|
4659
|
+
x.message === Ee.MAX_INVALIDATE && (r(6, D = !0), r(8, N = o("invalidOtp"))), x.details === Ee.MAX_ATTEMPTS_EXCEEDED && r(15, ne = !0), console.error("OTP submission failed:", x), r(6, D = !0), r(8, N = o("submissionError"));
|
|
4656
4660
|
} finally {
|
|
4657
|
-
|
|
4661
|
+
r(3, g = !1);
|
|
4658
4662
|
}
|
|
4659
|
-
}),
|
|
4663
|
+
}), kr = () => {
|
|
4660
4664
|
window.dispatchEvent(new CustomEvent(
|
|
4661
4665
|
"otpSuccess",
|
|
4662
4666
|
{
|
|
@@ -4665,93 +4669,93 @@ function Ao(e, t, n) {
|
|
|
4665
4669
|
}
|
|
4666
4670
|
}
|
|
4667
4671
|
));
|
|
4668
|
-
},
|
|
4672
|
+
}, Dr = () => {
|
|
4669
4673
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4670
|
-
}, Lt = () =>
|
|
4674
|
+
}, Lt = () => ve(this, null, function* () {
|
|
4671
4675
|
if (d.join("").length !== v.inputLength) {
|
|
4672
|
-
|
|
4676
|
+
r(6, D = !0), r(8, N = o("invalidOtp"));
|
|
4673
4677
|
return;
|
|
4674
4678
|
}
|
|
4675
4679
|
const f = d.join("");
|
|
4676
|
-
|
|
4677
|
-
}),
|
|
4680
|
+
r(13, be = !0), ye = f, r(3, g = !0), r(6, D = !1), r(8, N = ""), Q === "stateless" && Nr(f), Q === "stateful" && (yield Rr(f));
|
|
4681
|
+
}), at = () => ve(this, null, function* () {
|
|
4678
4682
|
if (h)
|
|
4679
4683
|
try {
|
|
4680
|
-
|
|
4684
|
+
r(3, g = !0);
|
|
4681
4685
|
const f = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, h), E = yield fetch(f.href), x = yield E.json();
|
|
4682
4686
|
if (E.ok)
|
|
4683
|
-
|
|
4684
|
-
else if (x && x.details ===
|
|
4687
|
+
r(4, v = x), r(2, d = Array(v.inputLength).fill("")), r(9, ue = !1), P = v.expirationTime, I = v.serverTime, v.numberOfValidateAttempts !== 0 && (r(6, D = !0), r(8, N = o("invalidOtp"))), v.numberOfValidateAttempts === v.maxValidationAttempts - 1 && r(10, de = !0), r(3, g = !1), b(), A(), r(16, _e = !1);
|
|
4688
|
+
else if (x && x.details === Ee.MAX_ATTEMPTS_EXCEEDED)
|
|
4685
4689
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4686
4690
|
else {
|
|
4687
4691
|
const G = x && x.message || `Failed to load config. Status: ${E.status}`;
|
|
4688
4692
|
throw new Error(G);
|
|
4689
4693
|
}
|
|
4690
4694
|
} catch (f) {
|
|
4691
|
-
|
|
4695
|
+
r(3, g = !1), r(7, M = !0), r(8, N = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", f);
|
|
4692
4696
|
}
|
|
4693
4697
|
});
|
|
4694
|
-
|
|
4695
|
-
window.removeEventListener("stepUpAuthRequired", V), window.removeEventListener("closePopup",
|
|
4698
|
+
an(() => (window.addEventListener("stepUpAuthRequired", V, !1), window.addEventListener("closePopup", fe, !1), () => {
|
|
4699
|
+
window.removeEventListener("stepUpAuthRequired", V), window.removeEventListener("closePopup", fe, !1), X && clearInterval(X), Z && clearInterval(Z);
|
|
4696
4700
|
}));
|
|
4697
|
-
const
|
|
4698
|
-
function
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
+
const Ur = () => ie(Se.SMS), Gr = () => ie(Se.EMAIL);
|
|
4702
|
+
function Fr(f, E) {
|
|
4703
|
+
Je[f ? "unshift" : "push"](() => {
|
|
4704
|
+
re[E] = f, r(14, re);
|
|
4701
4705
|
});
|
|
4702
4706
|
}
|
|
4703
|
-
const
|
|
4704
|
-
function
|
|
4705
|
-
|
|
4706
|
-
J = f,
|
|
4707
|
+
const jr = (f, E) => Pt(E, f), Vr = (f, E) => Mt(E, f);
|
|
4708
|
+
function $r(f) {
|
|
4709
|
+
Je[f ? "unshift" : "push"](() => {
|
|
4710
|
+
J = f, r(1, J);
|
|
4707
4711
|
});
|
|
4708
4712
|
}
|
|
4709
4713
|
return e.$$set = (f) => {
|
|
4710
|
-
"clientstyling" in f &&
|
|
4714
|
+
"clientstyling" in f && r(31, a = f.clientstyling), "clientstylingurl" in f && r(32, s = f.clientstylingurl), "mbsource" in f && r(33, u = f.mbsource), "lang" in f && r(34, l = f.lang), "endpoint" in f && r(35, h = f.endpoint), "session" in f && r(36, c = f.session), "translationurl" in f && r(37, m = f.translationurl), "templateid" in f && r(30, _ = f.templateid);
|
|
4711
4715
|
}, e.$$.update = () => {
|
|
4712
4716
|
e.$$.dirty[0] & /*customStylingContainer*/
|
|
4713
4717
|
2 | e.$$.dirty[1] & /*clientstyling*/
|
|
4714
|
-
1 && a && J &&
|
|
4718
|
+
1 && a && J && vn(J, a), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4715
4719
|
2 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
4716
|
-
2 && s && J &&
|
|
4720
|
+
2 && s && J && xn(J, s), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4717
4721
|
2 | e.$$.dirty[1] & /*mbsource*/
|
|
4718
|
-
4 && u && J &&
|
|
4719
|
-
8 && l &&
|
|
4722
|
+
4 && u && J && wn(J, `${u}.Style`), e.$$.dirty[1] & /*lang*/
|
|
4723
|
+
8 && l && Te(), e.$$.dirty[1] & /*lang, translationurl*/
|
|
4720
4724
|
72 && l && m && Y(), e.$$.dirty[0] & /*selectedChannel*/
|
|
4721
4725
|
1 | e.$$.dirty[1] & /*channelSubmitTimers*/
|
|
4722
|
-
128 &&
|
|
4726
|
+
128 && r(18, n = B && (!U[B] || U[B] === 0)), e.$$.dirty[0] & /*selectedChannel*/
|
|
4723
4727
|
1 | e.$$.dirty[1] & /*channelSubmitTimers*/
|
|
4724
|
-
128 &&
|
|
4728
|
+
128 && r(17, i = B && U[B] || 0);
|
|
4725
4729
|
}, [
|
|
4726
|
-
|
|
4730
|
+
B,
|
|
4727
4731
|
J,
|
|
4728
4732
|
d,
|
|
4729
4733
|
g,
|
|
4730
4734
|
v,
|
|
4731
4735
|
S,
|
|
4732
4736
|
D,
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
le,
|
|
4736
|
-
me,
|
|
4737
|
+
M,
|
|
4738
|
+
N,
|
|
4737
4739
|
ue,
|
|
4738
4740
|
de,
|
|
4741
|
+
he,
|
|
4739
4742
|
ge,
|
|
4740
|
-
|
|
4743
|
+
be,
|
|
4741
4744
|
re,
|
|
4742
|
-
|
|
4745
|
+
ne,
|
|
4746
|
+
_e,
|
|
4743
4747
|
i,
|
|
4744
|
-
|
|
4748
|
+
n,
|
|
4745
4749
|
o,
|
|
4746
|
-
|
|
4750
|
+
Se,
|
|
4747
4751
|
ie,
|
|
4748
4752
|
W,
|
|
4749
|
-
|
|
4750
|
-
|
|
4753
|
+
Mr,
|
|
4754
|
+
Lr,
|
|
4751
4755
|
Pt,
|
|
4752
4756
|
Mt,
|
|
4753
|
-
|
|
4754
|
-
|
|
4757
|
+
Ir,
|
|
4758
|
+
Dr,
|
|
4755
4759
|
Lt,
|
|
4756
4760
|
_,
|
|
4757
4761
|
a,
|
|
@@ -4762,22 +4766,22 @@ function Ao(e, t, n) {
|
|
|
4762
4766
|
c,
|
|
4763
4767
|
m,
|
|
4764
4768
|
U,
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4769
|
+
Ur,
|
|
4770
|
+
Gr,
|
|
4771
|
+
Fr,
|
|
4772
|
+
jr,
|
|
4773
|
+
Vr,
|
|
4774
|
+
$r
|
|
4771
4775
|
];
|
|
4772
4776
|
}
|
|
4773
|
-
class
|
|
4777
|
+
class Bo extends _n {
|
|
4774
4778
|
constructor(t) {
|
|
4775
|
-
super(),
|
|
4779
|
+
super(), bn(
|
|
4776
4780
|
this,
|
|
4777
4781
|
t,
|
|
4782
|
+
Co,
|
|
4778
4783
|
Ao,
|
|
4779
|
-
|
|
4780
|
-
sn,
|
|
4784
|
+
or,
|
|
4781
4785
|
{
|
|
4782
4786
|
clientstyling: 31,
|
|
4783
4787
|
clientstylingurl: 32,
|
|
@@ -4788,7 +4792,7 @@ class Co extends _r {
|
|
|
4788
4792
|
translationurl: 37,
|
|
4789
4793
|
templateid: 30
|
|
4790
4794
|
},
|
|
4791
|
-
|
|
4795
|
+
po,
|
|
4792
4796
|
[-1, -1, -1]
|
|
4793
4797
|
);
|
|
4794
4798
|
}
|
|
@@ -4841,7 +4845,7 @@ class Co extends _r {
|
|
|
4841
4845
|
this.$$set({ templateid: t }), ae();
|
|
4842
4846
|
}
|
|
4843
4847
|
}
|
|
4844
|
-
|
|
4848
|
+
yn(Bo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
4845
4849
|
export {
|
|
4846
|
-
|
|
4850
|
+
Bo as default
|
|
4847
4851
|
};
|