gt-react 10.19.17 → 10.19.19
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/CHANGELOG.md +19 -0
- package/dist/browser.cjs +698 -871
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +9 -6
- package/dist/browser.d.cts.map +1 -1
- package/dist/browser.d.mts +9 -6
- package/dist/browser.d.mts.map +1 -1
- package/dist/browser.mjs +698 -871
- package/dist/browser.mjs.map +1 -1
- package/dist/client.cjs +183 -182
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +183 -182
- package/dist/client.mjs.map +1 -1
- package/dist/index.cjs +183 -182
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +183 -182
- package/dist/index.mjs.map +1 -1
- package/dist/internal.cjs +327 -326
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.mjs +301 -300
- package/dist/internal.mjs.map +1 -1
- package/dist/macros.cjs +465 -639
- package/dist/macros.cjs.map +1 -1
- package/dist/macros.mjs +465 -639
- package/dist/macros.mjs.map +1 -1
- package/package.json +5 -5
package/dist/internal.mjs
CHANGED
|
@@ -108,7 +108,7 @@ function T(e) {
|
|
|
108
108
|
function re(e) {
|
|
109
109
|
return T(e) ?? ``;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ie(e) {
|
|
112
112
|
let t = e;
|
|
113
113
|
if (t && typeof t == `object` && typeof t.k == `string`) {
|
|
114
114
|
let e = Object.keys(t);
|
|
@@ -116,52 +116,52 @@ function E(e) {
|
|
|
116
116
|
}
|
|
117
117
|
return !1;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ae(e) {
|
|
120
120
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === `Uint8Array` && `BYTES_PER_ELEMENT` in e && e.BYTES_PER_ELEMENT === 1;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
let r =
|
|
122
|
+
function E(e, t, n = ``) {
|
|
123
|
+
let r = ae(e), i = e?.length, a = t !== void 0;
|
|
124
124
|
if (!r || a && i !== t) {
|
|
125
125
|
let o = n && `"${n}" `, s = a ? ` of length ${t}` : ``, c = r ? `length=${i}` : `type=${typeof e}`, l = o + `expected Uint8Array` + s + `, got ` + c;
|
|
126
126
|
throw r ? RangeError(l) : TypeError(l);
|
|
127
127
|
}
|
|
128
128
|
return e;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function oe(e, t = !0) {
|
|
131
131
|
if (e.destroyed) throw Error(`Hash instance has been destroyed`);
|
|
132
132
|
if (t && e.finished) throw Error(`Hash#digest() has already been called`);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
134
|
+
function se(e, t) {
|
|
135
|
+
E(e, void 0, `digestInto() output`);
|
|
136
136
|
let n = t.outputLen;
|
|
137
137
|
if (e.length < n) throw RangeError(`"digestInto() output" expected to be of length >=` + n);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function ce(...e) {
|
|
140
140
|
for (let t = 0; t < e.length; t++) e[t].fill(0);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function le(e) {
|
|
143
143
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function D(e, t) {
|
|
146
146
|
return e << 32 - t | e >>> t;
|
|
147
147
|
}
|
|
148
148
|
new Uint8Array(new Uint32Array([287454020]).buffer)[0];
|
|
149
|
-
const
|
|
150
|
-
function
|
|
151
|
-
if (
|
|
149
|
+
const ue = typeof Uint8Array.from([]).toHex == `function` && typeof Uint8Array.fromHex == `function`, de = Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, `0`));
|
|
150
|
+
function fe(e) {
|
|
151
|
+
if (E(e), ue) return e.toHex();
|
|
152
152
|
let t = ``;
|
|
153
|
-
for (let n = 0; n < e.length; n++) t +=
|
|
153
|
+
for (let n = 0; n < e.length; n++) t += de[e[n]];
|
|
154
154
|
return t;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function pe(e) {
|
|
157
157
|
if (typeof e != `string`) throw TypeError(`string expected`);
|
|
158
158
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function me(e, t = {}) {
|
|
161
161
|
let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
|
|
162
162
|
return n.outputLen = r.outputLen, n.blockLen = r.blockLen, n.canXOF = r.canXOF, n.create = (t) => e(t), Object.assign(n, t), Object.freeze(n);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const he = (e) => ({ oid: Uint8Array.from([
|
|
165
165
|
6,
|
|
166
166
|
9,
|
|
167
167
|
96,
|
|
@@ -174,13 +174,13 @@ const me = (e) => ({ oid: Uint8Array.from([
|
|
|
174
174
|
2,
|
|
175
175
|
e
|
|
176
176
|
]) });
|
|
177
|
-
function
|
|
177
|
+
function ge(e, t, n) {
|
|
178
178
|
return e & t ^ ~e & n;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function _e(e, t, n) {
|
|
181
181
|
return e & t ^ e & n ^ t & n;
|
|
182
182
|
}
|
|
183
|
-
var
|
|
183
|
+
var ve = class {
|
|
184
184
|
blockLen;
|
|
185
185
|
outputLen;
|
|
186
186
|
canXOF = !1;
|
|
@@ -193,15 +193,15 @@ var _e = class {
|
|
|
193
193
|
pos = 0;
|
|
194
194
|
destroyed = !1;
|
|
195
195
|
constructor(e, t, n, r) {
|
|
196
|
-
this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view =
|
|
196
|
+
this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = le(this.buffer);
|
|
197
197
|
}
|
|
198
198
|
update(e) {
|
|
199
|
-
|
|
199
|
+
oe(this), E(e);
|
|
200
200
|
let { view: t, buffer: n, blockLen: r } = this, i = e.length;
|
|
201
201
|
for (let a = 0; a < i;) {
|
|
202
202
|
let o = Math.min(r - this.pos, i - a);
|
|
203
203
|
if (o === r) {
|
|
204
|
-
let t =
|
|
204
|
+
let t = le(e);
|
|
205
205
|
for (; r <= i - a; a += r) this.process(t, a);
|
|
206
206
|
continue;
|
|
207
207
|
}
|
|
@@ -210,12 +210,12 @@ var _e = class {
|
|
|
210
210
|
return this.length += e.length, this.roundClean(), this;
|
|
211
211
|
}
|
|
212
212
|
digestInto(e) {
|
|
213
|
-
|
|
213
|
+
oe(this), se(e, this), this.finished = !0;
|
|
214
214
|
let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
|
|
215
|
-
t[a++] = 128,
|
|
215
|
+
t[a++] = 128, ce(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
|
|
216
216
|
for (let e = a; e < r; e++) t[e] = 0;
|
|
217
217
|
n.setBigUint64(r - 8, BigInt(this.length * 8), i), this.process(n, 0);
|
|
218
|
-
let o =
|
|
218
|
+
let o = le(e), s = this.outputLen;
|
|
219
219
|
if (s % 4) throw Error(`_sha2: outputLen must be aligned to 32bit`);
|
|
220
220
|
let c = s / 4, l = this.get();
|
|
221
221
|
if (c > l.length) throw Error(`_sha2: outputLen bigger than state`);
|
|
@@ -236,7 +236,7 @@ var _e = class {
|
|
|
236
236
|
return this._cloneInto();
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
|
-
const
|
|
239
|
+
const O = Uint32Array.from([
|
|
240
240
|
1779033703,
|
|
241
241
|
3144134277,
|
|
242
242
|
1013904242,
|
|
@@ -245,25 +245,25 @@ const k = Uint32Array.from([
|
|
|
245
245
|
2600822924,
|
|
246
246
|
528734635,
|
|
247
247
|
1541459225
|
|
248
|
-
]),
|
|
249
|
-
function
|
|
248
|
+
]), k = BigInt(2 ** 32 - 1), ye = BigInt(32);
|
|
249
|
+
function be(e, t = !1) {
|
|
250
250
|
return t ? {
|
|
251
|
-
h: Number(e &
|
|
252
|
-
l: Number(e >>
|
|
251
|
+
h: Number(e & k),
|
|
252
|
+
l: Number(e >> ye & k)
|
|
253
253
|
} : {
|
|
254
|
-
h: Number(e >>
|
|
255
|
-
l: Number(e &
|
|
254
|
+
h: Number(e >> ye & k) | 0,
|
|
255
|
+
l: Number(e & k) | 0
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function xe(e, t = !1) {
|
|
259
259
|
let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
|
|
260
260
|
for (let a = 0; a < n; a++) {
|
|
261
|
-
let { h: n, l: o } =
|
|
261
|
+
let { h: n, l: o } = be(e[a], t);
|
|
262
262
|
[r[a], i[a]] = [n, o];
|
|
263
263
|
}
|
|
264
264
|
return [r, i];
|
|
265
265
|
}
|
|
266
|
-
const
|
|
266
|
+
const Se = Uint32Array.from([
|
|
267
267
|
1116352408,
|
|
268
268
|
1899447441,
|
|
269
269
|
3049323471,
|
|
@@ -328,8 +328,8 @@ const xe = Uint32Array.from([
|
|
|
328
328
|
2756734187,
|
|
329
329
|
3204031479,
|
|
330
330
|
3329325298
|
|
331
|
-
]),
|
|
332
|
-
var
|
|
331
|
+
]), A = new Uint32Array(64);
|
|
332
|
+
var Ce = class extends ve {
|
|
333
333
|
constructor(e) {
|
|
334
334
|
super(64, e, 8, !1);
|
|
335
335
|
}
|
|
@@ -350,40 +350,40 @@ var Se = class extends _e {
|
|
|
350
350
|
this.A = e | 0, this.B = t | 0, this.C = n | 0, this.D = r | 0, this.E = i | 0, this.F = a | 0, this.G = o | 0, this.H = s | 0;
|
|
351
351
|
}
|
|
352
352
|
process(e, t) {
|
|
353
|
-
for (let n = 0; n < 16; n++, t += 4)
|
|
353
|
+
for (let n = 0; n < 16; n++, t += 4) A[n] = e.getUint32(t, !1);
|
|
354
354
|
for (let e = 16; e < 64; e++) {
|
|
355
|
-
let t =
|
|
356
|
-
|
|
355
|
+
let t = A[e - 15], n = A[e - 2], r = D(t, 7) ^ D(t, 18) ^ t >>> 3;
|
|
356
|
+
A[e] = (D(n, 17) ^ D(n, 19) ^ n >>> 10) + A[e - 7] + r + A[e - 16] | 0;
|
|
357
357
|
}
|
|
358
358
|
let { A: n, B: r, C: i, D: a, E: o, F: s, G: c, H: l } = this;
|
|
359
359
|
for (let e = 0; e < 64; e++) {
|
|
360
|
-
let t =
|
|
360
|
+
let t = D(o, 6) ^ D(o, 11) ^ D(o, 25), u = l + t + ge(o, s, c) + Se[e] + A[e] | 0, d = (D(n, 2) ^ D(n, 13) ^ D(n, 22)) + _e(n, r, i) | 0;
|
|
361
361
|
l = c, c = s, s = o, o = a + u | 0, a = i, i = r, r = n, n = u + d | 0;
|
|
362
362
|
}
|
|
363
363
|
n = n + this.A | 0, r = r + this.B | 0, i = i + this.C | 0, a = a + this.D | 0, o = o + this.E | 0, s = s + this.F | 0, c = c + this.G | 0, l = l + this.H | 0, this.set(n, r, i, a, o, s, c, l);
|
|
364
364
|
}
|
|
365
365
|
roundClean() {
|
|
366
|
-
|
|
366
|
+
ce(A);
|
|
367
367
|
}
|
|
368
368
|
destroy() {
|
|
369
|
-
this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0),
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
A =
|
|
373
|
-
B =
|
|
374
|
-
C =
|
|
375
|
-
D =
|
|
376
|
-
E =
|
|
377
|
-
F =
|
|
378
|
-
G =
|
|
379
|
-
H =
|
|
369
|
+
this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0), ce(this.buffer);
|
|
370
|
+
}
|
|
371
|
+
}, we = class extends Ce {
|
|
372
|
+
A = O[0] | 0;
|
|
373
|
+
B = O[1] | 0;
|
|
374
|
+
C = O[2] | 0;
|
|
375
|
+
D = O[3] | 0;
|
|
376
|
+
E = O[4] | 0;
|
|
377
|
+
F = O[5] | 0;
|
|
378
|
+
G = O[6] | 0;
|
|
379
|
+
H = O[7] | 0;
|
|
380
380
|
constructor() {
|
|
381
381
|
super(32);
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
|
-
const
|
|
385
|
-
|
|
386
|
-
const
|
|
384
|
+
const Te = xe(`0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817`.split(`.`).map((e) => BigInt(e)));
|
|
385
|
+
Te[0], Te[1];
|
|
386
|
+
const Ee = me(() => new we(), he(1)), De = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${e}.`, Oe = `DEFAULT_TERMINATOR_KEY`, ke = {
|
|
387
387
|
ellipsis: {
|
|
388
388
|
fr: {
|
|
389
389
|
terminator: `…`,
|
|
@@ -397,17 +397,17 @@ const Te = pe(() => new Ce(), me(1)), Ee = (e) => `generaltranslation Formatting
|
|
|
397
397
|
terminator: `……`,
|
|
398
398
|
separator: void 0
|
|
399
399
|
},
|
|
400
|
-
[
|
|
400
|
+
[Oe]: {
|
|
401
401
|
terminator: `…`,
|
|
402
402
|
separator: void 0
|
|
403
403
|
}
|
|
404
404
|
},
|
|
405
|
-
none: { [
|
|
405
|
+
none: { [Oe]: {
|
|
406
406
|
terminator: void 0,
|
|
407
407
|
separator: void 0
|
|
408
408
|
} }
|
|
409
409
|
};
|
|
410
|
-
var
|
|
410
|
+
var Ae = class e {
|
|
411
411
|
static resolveLocale(e) {
|
|
412
412
|
try {
|
|
413
413
|
let t = e ? Array.isArray(e) ? e.map(String) : [String(e)] : [`en`], [n] = Intl.getCanonicalLocales(t);
|
|
@@ -419,8 +419,8 @@ var ke = class e {
|
|
|
419
419
|
constructor(t, n = {}) {
|
|
420
420
|
this.locale = e.resolveLocale(t);
|
|
421
421
|
let r = n.style ?? `ellipsis`;
|
|
422
|
-
if (!
|
|
423
|
-
let i = n.maxChars === void 0 ? void 0 :
|
|
422
|
+
if (!ke[r]) throw Error(De(r));
|
|
423
|
+
let i = n.maxChars === void 0 ? void 0 : ke[r][new Intl.Locale(this.locale).language] || ke[r].DEFAULT_TERMINATOR_KEY, a = n.terminator ?? i?.terminator, o = a == null ? void 0 : n.separator ?? i?.separator;
|
|
424
424
|
this.additionLength = (a?.length ?? 0) + (o?.length ?? 0), n.maxChars !== void 0 && Math.abs(n.maxChars) < this.additionLength && (a = void 0, o = void 0), this.options = {
|
|
425
425
|
maxChars: n.maxChars,
|
|
426
426
|
style: n.maxChars === void 0 ? void 0 : r,
|
|
@@ -447,7 +447,7 @@ var ke = class e {
|
|
|
447
447
|
return this.options;
|
|
448
448
|
}
|
|
449
449
|
};
|
|
450
|
-
const
|
|
450
|
+
const je = {
|
|
451
451
|
Collator: Intl.Collator,
|
|
452
452
|
DateTimeFormat: Intl.DateTimeFormat,
|
|
453
453
|
DisplayNames: Intl.DisplayNames,
|
|
@@ -457,8 +457,8 @@ const Ae = {
|
|
|
457
457
|
PluralRules: Intl.PluralRules,
|
|
458
458
|
RelativeTimeFormat: Intl.RelativeTimeFormat,
|
|
459
459
|
Segmenter: Intl.Segmenter,
|
|
460
|
-
CutoffFormat:
|
|
461
|
-
},
|
|
460
|
+
CutoffFormat: Ae
|
|
461
|
+
}, Me = new class {
|
|
462
462
|
constructor() {
|
|
463
463
|
this.cache = {};
|
|
464
464
|
}
|
|
@@ -469,73 +469,73 @@ const Ae = {
|
|
|
469
469
|
let [n = `en`, r = {}] = t, i = this.generateKey(n, r), a = this.cache[e];
|
|
470
470
|
a === void 0 && (a = {}, this.cache[e] = a);
|
|
471
471
|
let o = a[i];
|
|
472
|
-
return o === void 0 && (o = new
|
|
472
|
+
return o === void 0 && (o = new je[e](...t), a[i] = o), o;
|
|
473
473
|
}
|
|
474
474
|
}();
|
|
475
|
-
function
|
|
476
|
-
return
|
|
475
|
+
function Ne(e) {
|
|
476
|
+
return Me.get(`PluralRules`, e);
|
|
477
477
|
}
|
|
478
|
-
var
|
|
479
|
-
__addDisposableResource: () =>
|
|
478
|
+
var j = m({
|
|
479
|
+
__addDisposableResource: () => at,
|
|
480
480
|
__assign: () => F,
|
|
481
|
-
__asyncDelegator: () =>
|
|
482
|
-
__asyncGenerator: () =>
|
|
483
|
-
__asyncValues: () =>
|
|
484
|
-
__await: () =>
|
|
485
|
-
__awaiter: () =>
|
|
486
|
-
__classPrivateFieldGet: () =>
|
|
487
|
-
__classPrivateFieldIn: () =>
|
|
488
|
-
__classPrivateFieldSet: () =>
|
|
481
|
+
__asyncDelegator: () => Ze,
|
|
482
|
+
__asyncGenerator: () => Xe,
|
|
483
|
+
__asyncValues: () => Qe,
|
|
484
|
+
__await: () => N,
|
|
485
|
+
__awaiter: () => Ue,
|
|
486
|
+
__classPrivateFieldGet: () => nt,
|
|
487
|
+
__classPrivateFieldIn: () => it,
|
|
488
|
+
__classPrivateFieldSet: () => rt,
|
|
489
489
|
__createBinding: () => I,
|
|
490
|
-
__decorate: () =>
|
|
491
|
-
__disposeResources: () =>
|
|
492
|
-
__esDecorate: () =>
|
|
493
|
-
__exportStar: () =>
|
|
494
|
-
__extends: () =>
|
|
495
|
-
__generator: () =>
|
|
496
|
-
__importDefault: () =>
|
|
497
|
-
__importStar: () =>
|
|
498
|
-
__makeTemplateObject: () =>
|
|
499
|
-
__metadata: () =>
|
|
500
|
-
__param: () =>
|
|
501
|
-
__propKey: () =>
|
|
502
|
-
__read: () =>
|
|
503
|
-
__rest: () =>
|
|
504
|
-
__rewriteRelativeImportExtension: () =>
|
|
505
|
-
__runInitializers: () =>
|
|
506
|
-
__setFunctionName: () =>
|
|
507
|
-
__spread: () =>
|
|
508
|
-
__spreadArray: () =>
|
|
509
|
-
__spreadArrays: () =>
|
|
510
|
-
__values: () =>
|
|
490
|
+
__decorate: () => Ie,
|
|
491
|
+
__disposeResources: () => ot,
|
|
492
|
+
__esDecorate: () => Re,
|
|
493
|
+
__exportStar: () => Ge,
|
|
494
|
+
__extends: () => Pe,
|
|
495
|
+
__generator: () => We,
|
|
496
|
+
__importDefault: () => tt,
|
|
497
|
+
__importStar: () => et,
|
|
498
|
+
__makeTemplateObject: () => $e,
|
|
499
|
+
__metadata: () => He,
|
|
500
|
+
__param: () => Le,
|
|
501
|
+
__propKey: () => Be,
|
|
502
|
+
__read: () => Ke,
|
|
503
|
+
__rest: () => Fe,
|
|
504
|
+
__rewriteRelativeImportExtension: () => st,
|
|
505
|
+
__runInitializers: () => ze,
|
|
506
|
+
__setFunctionName: () => Ve,
|
|
507
|
+
__spread: () => qe,
|
|
508
|
+
__spreadArray: () => Ye,
|
|
509
|
+
__spreadArrays: () => Je,
|
|
510
|
+
__values: () => M,
|
|
511
511
|
default: () => ut
|
|
512
512
|
});
|
|
513
|
-
function
|
|
513
|
+
function Pe(e, t) {
|
|
514
514
|
if (typeof t != `function` && t !== null) throw TypeError(`Class extends value ` + String(t) + ` is not a constructor or null`);
|
|
515
|
-
|
|
515
|
+
P(e, t);
|
|
516
516
|
function n() {
|
|
517
517
|
this.constructor = e;
|
|
518
518
|
}
|
|
519
519
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Fe(e, t) {
|
|
522
522
|
var n = {};
|
|
523
523
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
524
524
|
if (e != null && typeof Object.getOwnPropertySymbols == `function`) for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
525
525
|
return n;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Ie(e, t, n, r) {
|
|
528
528
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
529
529
|
if (typeof Reflect == `object` && typeof Reflect.decorate == `function`) a = Reflect.decorate(e, t, n, r);
|
|
530
530
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
531
531
|
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Le(e, t) {
|
|
534
534
|
return function(n, r) {
|
|
535
535
|
t(n, r, e);
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Re(e, t, n, r, i, a) {
|
|
539
539
|
function o(e) {
|
|
540
540
|
if (e !== void 0 && typeof e != `function`) throw TypeError(`Function expected`);
|
|
541
541
|
return e;
|
|
@@ -560,23 +560,23 @@ function Le(e, t, n, r, i, a) {
|
|
|
560
560
|
}
|
|
561
561
|
l && Object.defineProperty(l, r.name, u), f = !0;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function ze(e, t, n) {
|
|
564
564
|
for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
|
|
565
565
|
return r ? n : void 0;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Be(e) {
|
|
568
568
|
return typeof e == `symbol` ? e : `${e}`;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Ve(e, t, n) {
|
|
571
571
|
return typeof t == `symbol` && (t = t.description ? `[${t.description}]` : ``), Object.defineProperty(e, `name`, {
|
|
572
572
|
configurable: !0,
|
|
573
573
|
value: n ? `${n} ${t}` : t
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function He(e, t) {
|
|
577
577
|
if (typeof Reflect == `object` && typeof Reflect.metadata == `function`) return Reflect.metadata(e, t);
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function Ue(e, t, n, r) {
|
|
580
580
|
function i(e) {
|
|
581
581
|
return e instanceof n ? e : new n(function(t) {
|
|
582
582
|
t(e);
|
|
@@ -603,7 +603,7 @@ function He(e, t, n, r) {
|
|
|
603
603
|
c((r = r.apply(e, t || [])).next());
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function We(e, t) {
|
|
607
607
|
var n = {
|
|
608
608
|
label: 0,
|
|
609
609
|
sent: function() {
|
|
@@ -673,10 +673,10 @@ function Ue(e, t) {
|
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Ge(e, t) {
|
|
677
677
|
for (var n in e) n !== `default` && !Object.prototype.hasOwnProperty.call(t, n) && I(t, e, n);
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function M(e) {
|
|
680
680
|
var t = typeof Symbol == `function` && Symbol.iterator, n = t && e[t], r = 0;
|
|
681
681
|
if (n) return n.call(e);
|
|
682
682
|
if (e && typeof e.length == `number`) return { next: function() {
|
|
@@ -687,7 +687,7 @@ function N(e) {
|
|
|
687
687
|
} };
|
|
688
688
|
throw TypeError(t ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function Ke(e, t) {
|
|
691
691
|
var n = typeof Symbol == `function` && e[Symbol.iterator];
|
|
692
692
|
if (!n) return e;
|
|
693
693
|
var r = n.call(e), i, a = [], o;
|
|
@@ -704,23 +704,23 @@ function Ge(e, t) {
|
|
|
704
704
|
}
|
|
705
705
|
return a;
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(
|
|
707
|
+
function qe() {
|
|
708
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Ke(arguments[t]));
|
|
709
709
|
return e;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Je() {
|
|
712
712
|
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
713
713
|
for (var r = Array(e), i = 0, t = 0; t < n; t++) for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) r[i] = a[o];
|
|
714
714
|
return r;
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function Ye(e, t, n) {
|
|
717
717
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
718
718
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
return this instanceof
|
|
720
|
+
function N(e) {
|
|
721
|
+
return this instanceof N ? (this.v = e, this) : new N(e);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function Xe(e, t, n) {
|
|
724
724
|
if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
|
|
725
725
|
var r = n.apply(e, t || []), i, a = [];
|
|
726
726
|
return i = Object.create((typeof AsyncIterator == `function` ? AsyncIterator : Object).prototype), s(`next`), s(`throw`), s(`return`, o), i[Symbol.asyncIterator] = function() {
|
|
@@ -751,7 +751,7 @@ function Ye(e, t, n) {
|
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
753
|
function l(e) {
|
|
754
|
-
e.value instanceof
|
|
754
|
+
e.value instanceof N ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
|
|
755
755
|
}
|
|
756
756
|
function u(e) {
|
|
757
757
|
c(`next`, e);
|
|
@@ -763,7 +763,7 @@ function Ye(e, t, n) {
|
|
|
763
763
|
e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Ze(e) {
|
|
767
767
|
var t, n;
|
|
768
768
|
return t = {}, r(`next`), r(`throw`, function(e) {
|
|
769
769
|
throw e;
|
|
@@ -773,16 +773,16 @@ function Xe(e) {
|
|
|
773
773
|
function r(r, i) {
|
|
774
774
|
t[r] = e[r] ? function(t) {
|
|
775
775
|
return (n = !n) ? {
|
|
776
|
-
value:
|
|
776
|
+
value: N(e[r](t)),
|
|
777
777
|
done: !1
|
|
778
778
|
} : i ? i(t) : t;
|
|
779
779
|
} : i;
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Qe(e) {
|
|
783
783
|
if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
|
|
784
784
|
var t = e[Symbol.asyncIterator], n;
|
|
785
|
-
return t ? t.call(e) : (e = typeof
|
|
785
|
+
return t ? t.call(e) : (e = typeof M == `function` ? M(e) : e[Symbol.iterator](), n = {}, r(`next`), r(`throw`), r(`return`), n[Symbol.asyncIterator] = function() {
|
|
786
786
|
return this;
|
|
787
787
|
}, n);
|
|
788
788
|
function r(t) {
|
|
@@ -801,34 +801,34 @@ function Ze(e) {
|
|
|
801
801
|
}, t);
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function $e(e, t) {
|
|
805
805
|
return Object.defineProperty ? Object.defineProperty(e, `raw`, { value: t }) : e.raw = t, e;
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function et(e) {
|
|
808
808
|
if (e && e.__esModule) return e;
|
|
809
809
|
var t = {};
|
|
810
810
|
if (e != null) for (var n = L(e), r = 0; r < n.length; r++) n[r] !== `default` && I(t, e, n[r]);
|
|
811
811
|
return ct(t, e), t;
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function tt(e) {
|
|
814
814
|
return e && e.__esModule ? e : { default: e };
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function nt(e, t, n, r) {
|
|
817
817
|
if (n === `a` && !r) throw TypeError(`Private accessor was defined without a getter`);
|
|
818
818
|
if (typeof t == `function` ? e !== t || !r : !t.has(e)) throw TypeError(`Cannot read private member from an object whose class did not declare it`);
|
|
819
819
|
return n === `m` ? r : n === `a` ? r.call(e) : r ? r.value : t.get(e);
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function rt(e, t, n, r, i) {
|
|
822
822
|
if (r === `m`) throw TypeError(`Private method is not writable`);
|
|
823
823
|
if (r === `a` && !i) throw TypeError(`Private accessor was defined without a setter`);
|
|
824
824
|
if (typeof t == `function` ? e !== t || !i : !t.has(e)) throw TypeError(`Cannot write private member to an object whose class did not declare it`);
|
|
825
825
|
return r === `a` ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function it(e, t) {
|
|
828
828
|
if (t === null || typeof t != `object` && typeof t != `function`) throw TypeError(`Cannot use 'in' operator on non-object`);
|
|
829
829
|
return typeof e == `function` ? t === e : e.has(t);
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function at(e, t, n) {
|
|
832
832
|
if (t != null) {
|
|
833
833
|
if (typeof t != `object` && typeof t != `function`) throw TypeError(`Object expected.`);
|
|
834
834
|
var r, i;
|
|
@@ -855,7 +855,7 @@ function it(e, t, n) {
|
|
|
855
855
|
} else n && e.stack.push({ async: !0 });
|
|
856
856
|
return t;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function ot(e) {
|
|
859
859
|
function t(t) {
|
|
860
860
|
e.error = e.hasError ? new lt(t, e.error, `An error was suppressed during disposal.`) : t, e.hasError = !0;
|
|
861
861
|
}
|
|
@@ -877,18 +877,18 @@ function at(e) {
|
|
|
877
877
|
}
|
|
878
878
|
return i();
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function st(e, t) {
|
|
881
881
|
return typeof e == `string` && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
|
|
882
882
|
return n ? t ? `.jsx` : `.js` : r && (!i || !a) ? e : r + i + `.` + a.toLowerCase() + `js`;
|
|
883
883
|
}) : e;
|
|
884
884
|
}
|
|
885
|
-
var
|
|
886
|
-
|
|
887
|
-
return
|
|
885
|
+
var P, F, I, ct, L, lt, ut, R = f((() => {
|
|
886
|
+
P = function(e, t) {
|
|
887
|
+
return P = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
888
888
|
e.__proto__ = t;
|
|
889
889
|
} || function(e, t) {
|
|
890
890
|
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
891
|
-
},
|
|
891
|
+
}, P(e, t);
|
|
892
892
|
}, F = function() {
|
|
893
893
|
return F = Object.assign || function(e) {
|
|
894
894
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
@@ -922,38 +922,38 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
922
922
|
var r = Error(n);
|
|
923
923
|
return r.name = `SuppressedError`, r.error = e, r.suppressed = t, r;
|
|
924
924
|
}, ut = {
|
|
925
|
-
__extends:
|
|
925
|
+
__extends: Pe,
|
|
926
926
|
__assign: F,
|
|
927
|
-
__rest:
|
|
928
|
-
__decorate:
|
|
929
|
-
__param:
|
|
930
|
-
__esDecorate:
|
|
931
|
-
__runInitializers:
|
|
932
|
-
__propKey:
|
|
933
|
-
__setFunctionName:
|
|
934
|
-
__metadata:
|
|
935
|
-
__awaiter:
|
|
936
|
-
__generator:
|
|
927
|
+
__rest: Fe,
|
|
928
|
+
__decorate: Ie,
|
|
929
|
+
__param: Le,
|
|
930
|
+
__esDecorate: Re,
|
|
931
|
+
__runInitializers: ze,
|
|
932
|
+
__propKey: Be,
|
|
933
|
+
__setFunctionName: Ve,
|
|
934
|
+
__metadata: He,
|
|
935
|
+
__awaiter: Ue,
|
|
936
|
+
__generator: We,
|
|
937
937
|
__createBinding: I,
|
|
938
|
-
__exportStar:
|
|
939
|
-
__values:
|
|
940
|
-
__read:
|
|
941
|
-
__spread:
|
|
942
|
-
__spreadArrays:
|
|
943
|
-
__spreadArray:
|
|
944
|
-
__await:
|
|
945
|
-
__asyncGenerator:
|
|
946
|
-
__asyncDelegator:
|
|
947
|
-
__asyncValues:
|
|
948
|
-
__makeTemplateObject:
|
|
949
|
-
__importStar:
|
|
950
|
-
__importDefault:
|
|
951
|
-
__classPrivateFieldGet:
|
|
952
|
-
__classPrivateFieldSet:
|
|
953
|
-
__classPrivateFieldIn:
|
|
954
|
-
__addDisposableResource:
|
|
955
|
-
__disposeResources:
|
|
956
|
-
__rewriteRelativeImportExtension:
|
|
938
|
+
__exportStar: Ge,
|
|
939
|
+
__values: M,
|
|
940
|
+
__read: Ke,
|
|
941
|
+
__spread: qe,
|
|
942
|
+
__spreadArrays: Je,
|
|
943
|
+
__spreadArray: Ye,
|
|
944
|
+
__await: N,
|
|
945
|
+
__asyncGenerator: Xe,
|
|
946
|
+
__asyncDelegator: Ze,
|
|
947
|
+
__asyncValues: Qe,
|
|
948
|
+
__makeTemplateObject: $e,
|
|
949
|
+
__importStar: et,
|
|
950
|
+
__importDefault: tt,
|
|
951
|
+
__classPrivateFieldGet: nt,
|
|
952
|
+
__classPrivateFieldSet: rt,
|
|
953
|
+
__classPrivateFieldIn: it,
|
|
954
|
+
__addDisposableResource: at,
|
|
955
|
+
__disposeResources: ot,
|
|
956
|
+
__rewriteRelativeImportExtension: st
|
|
957
957
|
};
|
|
958
958
|
})), dt = p(((e) => {
|
|
959
959
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.ErrorKind = void 0;
|
|
@@ -1123,7 +1123,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
1123
1123
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = void 0, e.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1124
1124
|
})), ht = p(((e) => {
|
|
1125
1125
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.parseNumberSkeletonFromString = r, e.parseNumberSkeleton = p;
|
|
1126
|
-
var t = (R(), g(
|
|
1126
|
+
var t = (R(), g(j)), n = mt();
|
|
1127
1127
|
function r(e) {
|
|
1128
1128
|
if (e.length === 0) throw Error(`Number skeleton cannot be empty`);
|
|
1129
1129
|
for (var t = e.split(n.WHITE_SPACE_REGEX).filter(function(e) {
|
|
@@ -1303,7 +1303,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
})), gt = p(((e) => {
|
|
1305
1305
|
Object.defineProperty(e, `__esModule`, { value: !0 });
|
|
1306
|
-
var t = (R(), g(
|
|
1306
|
+
var t = (R(), g(j));
|
|
1307
1307
|
t.__exportStar(pt(), e), t.__exportStar(ht(), e);
|
|
1308
1308
|
})), _t = p(((e) => {
|
|
1309
1309
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.timeData = void 0, e.timeData = {
|
|
@@ -2491,7 +2491,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
})), yt = p(((e) => {
|
|
2493
2493
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.Parser = void 0;
|
|
2494
|
-
var t = (R(), g(
|
|
2494
|
+
var t = (R(), g(j)), n = dt(), r = z(), i = ft(), a = gt(), o = vt(), s = RegExp(`^${i.SPACE_SEPARATOR_REGEX.source}*`), c = RegExp(`${i.SPACE_SEPARATOR_REGEX.source}*\$`);
|
|
2495
2495
|
function l(e, t) {
|
|
2496
2496
|
return {
|
|
2497
2497
|
start: e,
|
|
@@ -2551,7 +2551,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
2551
2551
|
} else C = function(e, t) {
|
|
2552
2552
|
for (var n = [];;) {
|
|
2553
2553
|
var r = x(e, t);
|
|
2554
|
-
if (r === void 0 ||
|
|
2554
|
+
if (r === void 0 || ae(r) || E(r)) break;
|
|
2555
2555
|
n.push(r), t += r >= 65536 ? 2 : 1;
|
|
2556
2556
|
}
|
|
2557
2557
|
return y.apply(void 0, n);
|
|
@@ -2630,7 +2630,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
2630
2630
|
} else return this.error(n.ErrorKind.INVALID_TAG, l(i, this.clonePosition()));
|
|
2631
2631
|
}, e.prototype.parseTagName = function() {
|
|
2632
2632
|
var e = this.offset();
|
|
2633
|
-
for (this.bump(); !this.isEOF() &&
|
|
2633
|
+
for (this.bump(); !this.isEOF() && ie(this.char());) this.bump();
|
|
2634
2634
|
return this.message.slice(e, this.offset());
|
|
2635
2635
|
}, e.prototype.parseLiteral = function(e, t) {
|
|
2636
2636
|
for (var n = this.clonePosition(), i = ``;;) {
|
|
@@ -2958,7 +2958,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
2958
2958
|
if (this.bump(), this.isEOF()) break;
|
|
2959
2959
|
}
|
|
2960
2960
|
}, e.prototype.bumpSpace = function() {
|
|
2961
|
-
for (; !this.isEOF() &&
|
|
2961
|
+
for (; !this.isEOF() && ae(this.char());) this.bump();
|
|
2962
2962
|
}, e.prototype.peek = function() {
|
|
2963
2963
|
if (this.isEOF()) return null;
|
|
2964
2964
|
var e = this.char(), t = this.offset();
|
|
@@ -2971,18 +2971,18 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
2971
2971
|
function re(e) {
|
|
2972
2972
|
return T(e) || e === 47;
|
|
2973
2973
|
}
|
|
2974
|
-
function
|
|
2974
|
+
function ie(e) {
|
|
2975
2975
|
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;
|
|
2976
2976
|
}
|
|
2977
|
-
function
|
|
2977
|
+
function ae(e) {
|
|
2978
2978
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function E(e) {
|
|
2981
2981
|
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;
|
|
2982
2982
|
}
|
|
2983
2983
|
})), bt = p(((e) => {
|
|
2984
2984
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.hoistSelectors = s, e.isStructurallySame = l;
|
|
2985
|
-
var t = (R(), g(
|
|
2985
|
+
var t = (R(), g(j)), n = z();
|
|
2986
2986
|
function r(e) {
|
|
2987
2987
|
return Array.isArray(e) ? t.__spreadArray([], e.map(r), !0) : typeof e == `object` && e ? Object.keys(e).reduce(function(t, n) {
|
|
2988
2988
|
return t[n] = r(e[n]), t;
|
|
@@ -3041,7 +3041,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
3041
3041
|
}
|
|
3042
3042
|
})), xt = p(((e) => {
|
|
3043
3043
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.isStructurallySame = e._Parser = void 0, e.parse = o;
|
|
3044
|
-
var t = (R(), g(
|
|
3044
|
+
var t = (R(), g(j)), n = dt(), r = yt(), i = z();
|
|
3045
3045
|
function a(e) {
|
|
3046
3046
|
e.forEach(function(e) {
|
|
3047
3047
|
if (delete e.location, (0, i.isSelectElement)(e) || (0, i.isPluralElement)(e)) for (var t in e.options) delete e.options[t].location, a(e.options[t].value);
|
|
@@ -3070,7 +3070,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
3070
3070
|
});
|
|
3071
3071
|
})), St = p(((e) => {
|
|
3072
3072
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.printAST = r;
|
|
3073
|
-
var t = (R(), g(
|
|
3073
|
+
var t = (R(), g(j)), n = z();
|
|
3074
3074
|
function r(e) {
|
|
3075
3075
|
return i(e, !1);
|
|
3076
3076
|
}
|
|
@@ -3148,7 +3148,7 @@ function Tt(e) {
|
|
|
3148
3148
|
return wt.includes(e);
|
|
3149
3149
|
}
|
|
3150
3150
|
function Et(e, t = wt, n = [`en`]) {
|
|
3151
|
-
let r =
|
|
3151
|
+
let r = Ne(n).select(e), i = Math.abs(e);
|
|
3152
3152
|
if (i === 0 && t.includes(`zero`)) return `zero`;
|
|
3153
3153
|
if (i === 1) {
|
|
3154
3154
|
if (t.includes(`singular`)) return `singular`;
|
|
@@ -3270,8 +3270,9 @@ function zt(e) {
|
|
|
3270
3270
|
options: { recurseIntoVisited: !1 }
|
|
3271
3271
|
}), n;
|
|
3272
3272
|
}
|
|
3273
|
-
|
|
3274
|
-
|
|
3273
|
+
const Bt = RegExp(`${U}\\d+`);
|
|
3274
|
+
function Vt(e) {
|
|
3275
|
+
if (!Bt.test(e)) return e;
|
|
3275
3276
|
function t(e) {
|
|
3276
3277
|
e.type = V.TYPE.argument, Reflect.deleteProperty(e, `options`);
|
|
3277
3278
|
}
|
|
@@ -3282,7 +3283,7 @@ function Bt(e) {
|
|
|
3282
3283
|
options: { recurseIntoVisited: !1 }
|
|
3283
3284
|
}));
|
|
3284
3285
|
}
|
|
3285
|
-
function
|
|
3286
|
+
function Ht(e, n = 0) {
|
|
3286
3287
|
let r = n, a = (e) => {
|
|
3287
3288
|
let { type: t, props: n } = e;
|
|
3288
3289
|
r += 1;
|
|
@@ -3296,11 +3297,11 @@ function Vt(e, n = 0) {
|
|
|
3296
3297
|
if (a) {
|
|
3297
3298
|
let e = a.split(`-`);
|
|
3298
3299
|
if ((e[1] === `automatic` || e[2] === `automatic`) && (i.injectionType = `automatic`), e[0] === `translate` && (e[0] = `fragment`), e[0] === `variable` && (i.variableType = e?.[1] || `variable`), e[0] === `plural`) {
|
|
3299
|
-
let e = Object.entries(n).reduce((e, [t, n]) => (Tt(t) && (e[t] =
|
|
3300
|
+
let e = Object.entries(n).reduce((e, [t, n]) => (Tt(t) && (e[t] = Ht(n, r)), e), {});
|
|
3300
3301
|
Object.keys(e).length && (i.branches = e);
|
|
3301
3302
|
}
|
|
3302
3303
|
if (e[0] === `branch`) {
|
|
3303
|
-
let { children: e, branch: t, ...a } = n, o = Object.fromEntries(Object.entries(a).filter(([e]) => !e.startsWith(`data-`))), s = Object.entries(o).reduce((e, [t, n]) => (e[t] =
|
|
3304
|
+
let { children: e, branch: t, ...a } = n, o = Object.fromEntries(Object.entries(a).filter(([e]) => !e.startsWith(`data-`))), s = Object.entries(o).reduce((e, [t, n]) => (e[t] = Ht(n, r), e), {});
|
|
3304
3305
|
Object.keys(s).length && (i.branches = s);
|
|
3305
3306
|
}
|
|
3306
3307
|
i.transformation = e[0];
|
|
@@ -3322,10 +3323,10 @@ function Vt(e, n = 0) {
|
|
|
3322
3323
|
}
|
|
3323
3324
|
return c(e);
|
|
3324
3325
|
}
|
|
3325
|
-
const
|
|
3326
|
+
const Ut = `@generaltranslation/react-core`;
|
|
3326
3327
|
function W(e) {
|
|
3327
3328
|
return S({
|
|
3328
|
-
source:
|
|
3329
|
+
source: Ut,
|
|
3329
3330
|
...e
|
|
3330
3331
|
});
|
|
3331
3332
|
}
|
|
@@ -3355,15 +3356,15 @@ W({
|
|
|
3355
3356
|
severity: `Error`,
|
|
3356
3357
|
whatHappened: `Runtime translation could not be completed`
|
|
3357
3358
|
});
|
|
3358
|
-
const
|
|
3359
|
+
const Wt = (e) => W({
|
|
3359
3360
|
severity: `Error`,
|
|
3360
3361
|
whatHappened: `Dictionary subtree "${e}" could not be found`,
|
|
3361
3362
|
fix: `Check that the id matches your dictionary structure`
|
|
3362
|
-
}),
|
|
3363
|
+
}), Gt = () => W({
|
|
3363
3364
|
severity: `Error`,
|
|
3364
3365
|
whatHappened: `A dictionary entry cannot be injected as a subtree`,
|
|
3365
3366
|
fix: `Pass a dictionary object instead`
|
|
3366
|
-
}),
|
|
3367
|
+
}), Kt = () => W({
|
|
3367
3368
|
severity: `Error`,
|
|
3368
3369
|
whatHappened: `A dictionary entry cannot be merged into another dictionary entry`,
|
|
3369
3370
|
fix: `Pass a dictionary subtree instead`
|
|
@@ -3385,28 +3386,28 @@ W({
|
|
|
3385
3386
|
whatHappened: `No dictionary was found`,
|
|
3386
3387
|
fix: `Pass a dictionary to <GTProvider> or configure a dictionary loader before rendering translations`
|
|
3387
3388
|
});
|
|
3388
|
-
`${
|
|
3389
|
-
const
|
|
3389
|
+
`${Ut}`;
|
|
3390
|
+
const Zt = {
|
|
3390
3391
|
variable: `value`,
|
|
3391
3392
|
number: `n`,
|
|
3392
3393
|
datetime: `date`,
|
|
3393
3394
|
currency: `cost`,
|
|
3394
3395
|
"relative-time": `time`
|
|
3395
3396
|
};
|
|
3396
|
-
function
|
|
3397
|
-
return typeof e.name == `string` ? e.name : `_gt_${
|
|
3397
|
+
function Qt(e = {}, t) {
|
|
3398
|
+
return typeof e.name == `string` ? e.name : `_gt_${Zt[t] || `value`}_${e[`data-_gt`]?.id}`;
|
|
3398
3399
|
}
|
|
3399
|
-
function
|
|
3400
|
+
function $t(e) {
|
|
3400
3401
|
return t.isValidElement(e);
|
|
3401
3402
|
}
|
|
3402
|
-
const
|
|
3403
|
+
const en = {
|
|
3403
3404
|
pl: `placeholder`,
|
|
3404
3405
|
ti: `title`,
|
|
3405
3406
|
alt: `alt`,
|
|
3406
3407
|
arl: `aria-label`,
|
|
3407
3408
|
arb: `aria-labelledby`,
|
|
3408
3409
|
ard: `aria-describedby`
|
|
3409
|
-
},
|
|
3410
|
+
}, tn = (e) => {
|
|
3410
3411
|
if (!e) return ``;
|
|
3411
3412
|
let { type: t, props: n } = e;
|
|
3412
3413
|
if (t && typeof t == `function`) {
|
|
@@ -3414,8 +3415,8 @@ const $t = {
|
|
|
3414
3415
|
if (`name` in t && typeof t.name == `string` && t.name) return t.name;
|
|
3415
3416
|
}
|
|
3416
3417
|
return t && typeof t == `string` ? t : n.href ? `a` : n[`data-_gt`]?.id ? `C${n[`data-_gt`].id}` : `function`;
|
|
3417
|
-
},
|
|
3418
|
-
let r = Object.entries(
|
|
3418
|
+
}, nn = (e, t, n) => {
|
|
3419
|
+
let r = Object.entries(en).reduce((e, [n, r]) => {
|
|
3419
3420
|
let i = t[r];
|
|
3420
3421
|
return typeof i == `string` && (e[n] = i), e;
|
|
3421
3422
|
}, {});
|
|
@@ -3440,20 +3441,20 @@ const $t = {
|
|
|
3440
3441
|
};
|
|
3441
3442
|
}
|
|
3442
3443
|
return Object.keys(r).length ? r : void 0;
|
|
3443
|
-
},
|
|
3444
|
-
let { props: t } = e, n = { t:
|
|
3444
|
+
}, rn = (e) => {
|
|
3445
|
+
let { props: t } = e, n = { t: tn(e) };
|
|
3445
3446
|
if (t[`data-_gt`]) {
|
|
3446
3447
|
let e = t[`data-_gt`], r = e.transformation;
|
|
3447
3448
|
if (r === `variable`) {
|
|
3448
|
-
let n = e.variableType || `variable`, r =
|
|
3449
|
+
let n = e.variableType || `variable`, r = Qt(t, n), i = Ot(n);
|
|
3449
3450
|
return {
|
|
3450
3451
|
i: e.id,
|
|
3451
3452
|
k: r,
|
|
3452
3453
|
v: i
|
|
3453
3454
|
};
|
|
3454
3455
|
}
|
|
3455
|
-
n.i = e.id, n.d =
|
|
3456
|
-
let i = Object.entries(
|
|
3456
|
+
n.i = e.id, n.d = nn(r, t, e.branches);
|
|
3457
|
+
let i = Object.entries(en).reduce((e, [n, r]) => {
|
|
3457
3458
|
let i = t[r];
|
|
3458
3459
|
return typeof i == `string` && (e[n] = i), e;
|
|
3459
3460
|
}, {});
|
|
@@ -3480,15 +3481,15 @@ const $t = {
|
|
|
3480
3481
|
n.d = Object.keys(i).length ? i : void 0;
|
|
3481
3482
|
}
|
|
3482
3483
|
return t.children && (n.c = q(t.children)), n;
|
|
3483
|
-
},
|
|
3484
|
+
}, an = (e) => $t(e) ? rn(e) : typeof e == `number` ? e.toString() : e;
|
|
3484
3485
|
function q(e) {
|
|
3485
|
-
return Array.isArray(e) ? e.map(
|
|
3486
|
+
return Array.isArray(e) ? e.map(an) : an(e);
|
|
3486
3487
|
}
|
|
3487
3488
|
function J(e, t, n) {
|
|
3488
3489
|
let r = ``, i = null;
|
|
3489
3490
|
return typeof e == `number` && !i && n && (r = Et(e, Object.keys(n).filter(Tt), t)), r && !i && (i = n[r]), i;
|
|
3490
3491
|
}
|
|
3491
|
-
function
|
|
3492
|
+
function on(e) {
|
|
3492
3493
|
if (typeof e == `string`) return !0;
|
|
3493
3494
|
if (Array.isArray(e)) {
|
|
3494
3495
|
if (typeof e?.[0] != `string`) return !1;
|
|
@@ -3515,13 +3516,13 @@ function X(e) {
|
|
|
3515
3516
|
}
|
|
3516
3517
|
return { entry: e };
|
|
3517
3518
|
}
|
|
3518
|
-
function
|
|
3519
|
+
function sn(e) {
|
|
3519
3520
|
return typeof e == `object` && !!e && `data-_gt` in e && typeof e[`data-_gt`] == `object` && !!e[`data-_gt`] && `transformation` in e[`data-_gt`] && e[`data-_gt`]?.transformation === `variable`;
|
|
3520
3521
|
}
|
|
3521
|
-
function
|
|
3522
|
+
function cn(e) {
|
|
3522
3523
|
let t = e[`data-_gt`]?.variableType || `variable`;
|
|
3523
3524
|
return {
|
|
3524
|
-
variableName:
|
|
3525
|
+
variableName: Qt(e, t),
|
|
3525
3526
|
variableType: Ot(t),
|
|
3526
3527
|
injectionType: e[`data-_gt`]?.injectionType || `manual`,
|
|
3527
3528
|
variableValue: (() => {
|
|
@@ -3541,7 +3542,7 @@ function sn(e) {
|
|
|
3541
3542
|
})()
|
|
3542
3543
|
};
|
|
3543
3544
|
}
|
|
3544
|
-
function
|
|
3545
|
+
function ln(e) {
|
|
3545
3546
|
let t = e;
|
|
3546
3547
|
if (t && typeof t == `object` && typeof t.k == `string`) {
|
|
3547
3548
|
let e = Object.keys(t);
|
|
@@ -3549,14 +3550,14 @@ function cn(e) {
|
|
|
3549
3550
|
}
|
|
3550
3551
|
return !1;
|
|
3551
3552
|
}
|
|
3552
|
-
function
|
|
3553
|
+
function un(e) {
|
|
3553
3554
|
return e && e.props && e.props[`data-_gt`] ? e.props[`data-_gt`] : null;
|
|
3554
3555
|
}
|
|
3555
3556
|
function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
|
|
3556
3557
|
let i = (e) => {
|
|
3557
|
-
let i =
|
|
3558
|
-
if (
|
|
3559
|
-
let { variableType: t, variableValue: i, variableOptions: a, injectionType: o } =
|
|
3558
|
+
let i = un(e);
|
|
3559
|
+
if (sn(e.props)) {
|
|
3560
|
+
let { variableType: t, variableValue: i, variableOptions: a, injectionType: o } = cn(e.props);
|
|
3560
3561
|
return r({
|
|
3561
3562
|
variableType: t,
|
|
3562
3563
|
variableValue: i,
|
|
@@ -3589,9 +3590,9 @@ function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
|
|
|
3589
3590
|
}, a = (e) => t.isValidElement(e) ? i(e) : e, o = (e) => Array.isArray(e) ? t.Children.map(e, a) : a(e);
|
|
3590
3591
|
return o(e);
|
|
3591
3592
|
}
|
|
3592
|
-
function
|
|
3593
|
+
function dn({ sourceElement: e, targetElement: n, locales: r = [`en`], renderVariable: i }) {
|
|
3593
3594
|
let { props: a } = e, o = a[`data-_gt`], s = o?.transformation, c = n.d, l = {};
|
|
3594
|
-
if (c && Object.entries(
|
|
3595
|
+
if (c && Object.entries(en).forEach(([e, t]) => {
|
|
3595
3596
|
c[e] && (l[t] = c[e]);
|
|
3596
3597
|
}), s === `plural`) {
|
|
3597
3598
|
let t = e.props.n;
|
|
@@ -3650,18 +3651,18 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
3650
3651
|
if (typeof n == `string`) return n;
|
|
3651
3652
|
if (Array.isArray(n) && !Array.isArray(e) && e && (e = [e]), Array.isArray(e) && Array.isArray(n)) {
|
|
3652
3653
|
let a = {}, o = {}, c = {}, l = e.filter((e) => {
|
|
3653
|
-
if (t.isValidElement(e)) if (
|
|
3654
|
-
let { variableName: t, variableValue: n, variableOptions: r, injectionType: i } =
|
|
3654
|
+
if (t.isValidElement(e)) if (sn(e.props)) {
|
|
3655
|
+
let { variableName: t, variableValue: n, variableOptions: r, injectionType: i } = cn(e.props);
|
|
3655
3656
|
a[t] = n, o[t] = r, c[t] = i;
|
|
3656
3657
|
} else return !0;
|
|
3657
3658
|
return !1;
|
|
3658
3659
|
}), u = (e) => l.find((t) => {
|
|
3659
|
-
let n =
|
|
3660
|
+
let n = un(t);
|
|
3660
3661
|
return n?.id === void 0 ? !1 : n.id === e.i;
|
|
3661
3662
|
}) || l.shift();
|
|
3662
3663
|
return n.map((e, n) => {
|
|
3663
3664
|
if (typeof e == `string`) return jsx(t.Fragment, { children: e }, `string_${n}`);
|
|
3664
|
-
if (
|
|
3665
|
+
if (ie(e)) return jsx(t.Fragment, { children: i({
|
|
3665
3666
|
variableType: e.v || `v`,
|
|
3666
3667
|
variableValue: a[e.k],
|
|
3667
3668
|
variableOptions: o[e.k],
|
|
@@ -3669,7 +3670,7 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
3669
3670
|
injectionType: c[e.k] || `manual`
|
|
3670
3671
|
}) }, `var_${n}`);
|
|
3671
3672
|
let l = u(e);
|
|
3672
|
-
return l ? jsx(t.Fragment, { children:
|
|
3673
|
+
return l ? jsx(t.Fragment, { children: dn({
|
|
3673
3674
|
sourceElement: l,
|
|
3674
3675
|
targetElement: e,
|
|
3675
3676
|
locales: r,
|
|
@@ -3678,16 +3679,16 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
3678
3679
|
});
|
|
3679
3680
|
}
|
|
3680
3681
|
if (n && typeof n == `object` && !Array.isArray(n)) {
|
|
3681
|
-
let a =
|
|
3682
|
+
let a = ie(n) ? `variable` : `element`;
|
|
3682
3683
|
if (t.isValidElement(e)) {
|
|
3683
|
-
if (a === `element`) return
|
|
3684
|
+
if (a === `element`) return dn({
|
|
3684
3685
|
sourceElement: e,
|
|
3685
3686
|
targetElement: n,
|
|
3686
3687
|
locales: r,
|
|
3687
3688
|
renderVariable: i
|
|
3688
3689
|
});
|
|
3689
|
-
if (
|
|
3690
|
-
let { variableValue: t, variableOptions: n, variableType: a, injectionType: o } =
|
|
3690
|
+
if (sn(e.props)) {
|
|
3691
|
+
let { variableValue: t, variableOptions: n, variableType: a, injectionType: o } = cn(e.props);
|
|
3691
3692
|
return i({
|
|
3692
3693
|
variableType: a,
|
|
3693
3694
|
variableValue: t,
|
|
@@ -3704,73 +3705,73 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
3704
3705
|
renderVariable: i
|
|
3705
3706
|
});
|
|
3706
3707
|
}
|
|
3707
|
-
const
|
|
3708
|
+
const fn = (e = `production`) => ({
|
|
3708
3709
|
method: `default`,
|
|
3709
3710
|
timeout: e === `development` ? 8e3 : 12e3
|
|
3710
3711
|
});
|
|
3711
|
-
function
|
|
3712
|
+
function pn() {
|
|
3712
3713
|
return ``;
|
|
3713
3714
|
}
|
|
3714
|
-
const
|
|
3715
|
+
const mn = `generaltranslation.locale`, hn = `generaltranslation.region`;
|
|
3715
3716
|
function $(e) {
|
|
3716
3717
|
return e === void 0 ? !1 : typeof e == `string` ? !0 : Array.isArray(e) ? !(e.length !== 1 && e.length !== 2 || typeof e[0] != `string` || e.length === 2 && (typeof e[1] != `object` || e[1] === null || !(`$context` in e[1]) && !(`$maxChars` in e[1]) && !(`$_hash` in e[1]))) : !1;
|
|
3717
3718
|
}
|
|
3718
|
-
const
|
|
3719
|
-
function
|
|
3720
|
-
if (Array.isArray(e)) return e.map((e, n) => $(e) ? t[n] :
|
|
3719
|
+
const _n = (e) => typeof e == `string` || Array.isArray(e), vn = (e) => typeof e == `object` && !!e && !Array.isArray(e);
|
|
3720
|
+
function yn(e, t) {
|
|
3721
|
+
if (Array.isArray(e)) return e.map((e, n) => $(e) ? t[n] : yn(e, t[n]));
|
|
3721
3722
|
let n = {
|
|
3722
|
-
...Object.fromEntries(Object.entries(e).filter(([, e]) =>
|
|
3723
|
-
...Object.fromEntries(Object.entries(t).filter(([, e]) =>
|
|
3724
|
-
}, r = Object.entries(e).filter(([, e]) =>
|
|
3725
|
-
for (let r of a) n[r] =
|
|
3723
|
+
...Object.fromEntries(Object.entries(e).filter(([, e]) => _n(e))),
|
|
3724
|
+
...Object.fromEntries(Object.entries(t).filter(([, e]) => _n(e)))
|
|
3725
|
+
}, r = Object.entries(e).filter(([, e]) => vn(e)).map(([e]) => e), i = Object.entries(t).filter(([, e]) => vn(e)).map(([e]) => e), a = new Set([...r, ...i]);
|
|
3726
|
+
for (let r of a) n[r] = yn(_(e, r) || {}, _(t, r) || {});
|
|
3726
3727
|
return n;
|
|
3727
3728
|
}
|
|
3728
|
-
const
|
|
3729
|
-
function
|
|
3729
|
+
const bn = typeof e.use == `function`;
|
|
3730
|
+
function xn({ dictionary: e, id: t }) {
|
|
3730
3731
|
if (t === ``) return e;
|
|
3731
3732
|
let n = e, r = t.split(`.`);
|
|
3732
3733
|
for (let e of r) n = _(n, e);
|
|
3733
3734
|
return n;
|
|
3734
3735
|
}
|
|
3735
|
-
function
|
|
3736
|
+
function Sn({ dictionary: e, id: t, sourceDictionary: n }) {
|
|
3736
3737
|
if (t === ``) return e;
|
|
3737
3738
|
let r = e, i = n, a = t.split(`.`);
|
|
3738
3739
|
for (let e of a) _(r, e) === void 0 && (Array.isArray(_(i, e)) ? v(r, e, []) : v(r, e, {})), r = _(r, e);
|
|
3739
3740
|
return r;
|
|
3740
3741
|
}
|
|
3741
|
-
const
|
|
3742
|
+
const Cn = [
|
|
3742
3743
|
`constructor`,
|
|
3743
3744
|
`prototype`,
|
|
3744
3745
|
`__proto__`
|
|
3745
3746
|
];
|
|
3746
|
-
function
|
|
3747
|
-
return !!
|
|
3747
|
+
function wn(e) {
|
|
3748
|
+
return !!Cn.includes(e);
|
|
3748
3749
|
}
|
|
3749
|
-
function
|
|
3750
|
+
function Tn(e, t, n, r) {
|
|
3750
3751
|
if ($(t)) return e;
|
|
3751
3752
|
let i = n.split(`.`);
|
|
3752
3753
|
i.forEach((e) => {
|
|
3753
|
-
if (
|
|
3754
|
+
if (wn(e)) throw Error(`Invalid key: ${e}`);
|
|
3754
3755
|
}), t ||= {};
|
|
3755
3756
|
for (let e of i.slice(0, -1)) _(t, e) ?? v(t, e, Array.isArray(_(r, e)) ? [] : {}), t = _(t, e), r = _(r, e);
|
|
3756
3757
|
let a = i[i.length - 1];
|
|
3757
3758
|
v(t, a, e);
|
|
3758
3759
|
}
|
|
3759
|
-
function
|
|
3760
|
+
function En(e) {
|
|
3760
3761
|
let t = {};
|
|
3761
3762
|
return Array.isArray(e) && (t = []), Object.entries(e).forEach(([e, n]) => {
|
|
3762
3763
|
if ($(n)) {
|
|
3763
3764
|
let { entry: r } = X(n);
|
|
3764
3765
|
v(t, e, r);
|
|
3765
|
-
} else v(t, e,
|
|
3766
|
+
} else v(t, e, En(n));
|
|
3766
3767
|
}), t;
|
|
3767
3768
|
}
|
|
3768
|
-
function
|
|
3769
|
-
return
|
|
3769
|
+
function Dn(e) {
|
|
3770
|
+
return fe(Ee(pe(e))).slice(0, 16);
|
|
3770
3771
|
}
|
|
3771
|
-
function
|
|
3772
|
+
function On({ source: e, context: t, id: n, maxChars: r, dataFormat: i }, a = Dn) {
|
|
3772
3773
|
let o;
|
|
3773
|
-
return o = i === `JSX` ?
|
|
3774
|
+
return o = i === `JSX` ? An(e) : e, a(re({
|
|
3774
3775
|
source: o,
|
|
3775
3776
|
...n && { id: n },
|
|
3776
3777
|
...t && { context: t },
|
|
@@ -3778,30 +3779,30 @@ function Dn({ source: e, context: t, id: n, maxChars: r, dataFormat: i }, a = En
|
|
|
3778
3779
|
...i && { dataFormat: i }
|
|
3779
3780
|
}));
|
|
3780
3781
|
}
|
|
3781
|
-
const
|
|
3782
|
+
const kn = (e) => {
|
|
3782
3783
|
if (e && typeof e == `object`) {
|
|
3783
3784
|
let t = {};
|
|
3784
|
-
if (`c` in e && e.c && (t.c =
|
|
3785
|
+
if (`c` in e && e.c && (t.c = An(e.c)), `d` in e) {
|
|
3785
3786
|
let n = e?.d;
|
|
3786
|
-
n?.b && (t.b = Object.fromEntries(Object.entries(n.b).map(([e, t]) => [e,
|
|
3787
|
+
n?.b && (t.b = Object.fromEntries(Object.entries(n.b).map(([e, t]) => [e, An(t)]))), n?.t && (t.t = n.t);
|
|
3787
3788
|
}
|
|
3788
|
-
return
|
|
3789
|
+
return ie(e) ? {
|
|
3789
3790
|
k: e.k,
|
|
3790
3791
|
...e.v && { v: e.v }
|
|
3791
3792
|
} : t;
|
|
3792
3793
|
}
|
|
3793
3794
|
return e;
|
|
3794
3795
|
};
|
|
3795
|
-
function
|
|
3796
|
-
return Array.isArray(e) ? e.map(
|
|
3796
|
+
function An(e) {
|
|
3797
|
+
return Array.isArray(e) ? e.map(kn) : kn(e);
|
|
3797
3798
|
}
|
|
3798
|
-
function
|
|
3799
|
+
function jn(e, t = ``) {
|
|
3799
3800
|
let n = !1;
|
|
3800
3801
|
return Object.entries(e).forEach(([r, i]) => {
|
|
3801
3802
|
let a = t ? `${t}.${r}` : r;
|
|
3802
3803
|
if ($(i)) {
|
|
3803
3804
|
let { entry: t, metadata: o } = X(i);
|
|
3804
|
-
o?.$_hash || (o ||= {}, o.$_hash =
|
|
3805
|
+
o?.$_hash || (o ||= {}, o.$_hash = On({
|
|
3805
3806
|
source: Rt(t),
|
|
3806
3807
|
...o?.$context && { context: o.$context },
|
|
3807
3808
|
...o?.$maxChars != null && { maxChars: Math.abs(o.$maxChars) },
|
|
@@ -3809,7 +3810,7 @@ function An(e, t = ``) {
|
|
|
3809
3810
|
dataFormat: `ICU`
|
|
3810
3811
|
}), v(e, r, [t, o]), n = !0);
|
|
3811
3812
|
} else {
|
|
3812
|
-
let { updateDictionary: e } =
|
|
3813
|
+
let { updateDictionary: e } = jn(i, a);
|
|
3813
3814
|
n ||= e;
|
|
3814
3815
|
}
|
|
3815
3816
|
}), {
|
|
@@ -3817,44 +3818,44 @@ function An(e, t = ``) {
|
|
|
3817
3818
|
updateDictionary: n
|
|
3818
3819
|
};
|
|
3819
3820
|
}
|
|
3820
|
-
function
|
|
3821
|
+
function Mn(e, t, n, r, i = ``) {
|
|
3821
3822
|
let a = !1, o = i ? i.split(`.`) : [];
|
|
3822
3823
|
return r.forEach(({ metadata: r }) => {
|
|
3823
3824
|
let { $_hash: i, $id: s } = r, c = o.length > 0 ? s.split(`.`).slice(o.length).join(`.`) : s, l = Y(t, c), u;
|
|
3824
3825
|
$(l) && (u = X(l).entry);
|
|
3825
3826
|
let d = n[i] || u;
|
|
3826
|
-
d && (
|
|
3827
|
+
d && (Tn(d, t, c, e), a = !0);
|
|
3827
3828
|
}), {
|
|
3828
3829
|
dictionary: t,
|
|
3829
3830
|
updateDictionary: a
|
|
3830
3831
|
};
|
|
3831
3832
|
}
|
|
3832
|
-
function
|
|
3833
|
+
function Nn(e, t, n, r = ``) {
|
|
3833
3834
|
let i = r ? r.split(`.`) : [];
|
|
3834
3835
|
return n.forEach(({ source: n, metadata: r }) => {
|
|
3835
3836
|
let { $id: a } = r, o = i.length > 0 ? a.split(`.`).slice(i.length).join(`.`) : a, s = Y(t, o), c;
|
|
3836
|
-
$(s) && (c = X(s).entry),
|
|
3837
|
+
$(s) && (c = X(s).entry), Tn(c || n, t, o, e);
|
|
3837
3838
|
}), t;
|
|
3838
3839
|
}
|
|
3839
|
-
function
|
|
3840
|
-
let r =
|
|
3840
|
+
function Pn(e, t, n) {
|
|
3841
|
+
let r = xn({
|
|
3841
3842
|
dictionary: e,
|
|
3842
3843
|
id: n
|
|
3843
3844
|
});
|
|
3844
|
-
if (!r) throw Error(
|
|
3845
|
-
if ($(r)) throw Error(
|
|
3846
|
-
return
|
|
3845
|
+
if (!r) throw Error(Wt(n));
|
|
3846
|
+
if ($(r)) throw Error(Gt());
|
|
3847
|
+
return Fn(e, yn(r, t), n);
|
|
3847
3848
|
}
|
|
3848
|
-
function
|
|
3849
|
+
function Fn(e, t, n) {
|
|
3849
3850
|
let r = Y(e, n);
|
|
3850
|
-
if (!r) throw Error(
|
|
3851
|
-
if ($(r)) throw Error(
|
|
3851
|
+
if (!r) throw Error(Wt(n));
|
|
3852
|
+
if ($(r)) throw Error(Kt());
|
|
3852
3853
|
let i = n.split(`.`), a = i.slice(0, -1), o = i[i.length - 1], s = e;
|
|
3853
3854
|
return a.forEach((e) => {
|
|
3854
3855
|
s = _(s, e);
|
|
3855
3856
|
}), v(s, o, t), e;
|
|
3856
3857
|
}
|
|
3857
|
-
function
|
|
3858
|
+
function In(e, t, n = ``) {
|
|
3858
3859
|
let r = [];
|
|
3859
3860
|
return Object.entries(e).forEach(([e, i]) => {
|
|
3860
3861
|
let a = n ? `${n}.${e}` : e;
|
|
@@ -3869,10 +3870,10 @@ function Fn(e, t, n = ``) {
|
|
|
3869
3870
|
$_hash: o?.$_hash || ``
|
|
3870
3871
|
}
|
|
3871
3872
|
});
|
|
3872
|
-
} else r.push(...
|
|
3873
|
+
} else r.push(...In(i, _(t, e) || (Array.isArray(i) ? [] : {}), a));
|
|
3873
3874
|
}), r;
|
|
3874
3875
|
}
|
|
3875
|
-
var
|
|
3876
|
+
var Ln = {
|
|
3876
3877
|
warn(e) {
|
|
3877
3878
|
console.warn(e);
|
|
3878
3879
|
},
|
|
@@ -3886,11 +3887,11 @@ var In = {
|
|
|
3886
3887
|
console.debug(e);
|
|
3887
3888
|
}
|
|
3888
3889
|
};
|
|
3889
|
-
function
|
|
3890
|
+
function Rn(e) {
|
|
3890
3891
|
return Object.fromEntries(Object.entries(e).filter(([e]) => e !== `$id` && e !== `$context` && e !== `$maxChars` && e !== `$hash` && e !== `$_hash` && e !== `$_source` && e !== `$_fallback` && e !== `$format` && e !== `$_locales` && e !== `$locale`));
|
|
3891
3892
|
}
|
|
3892
|
-
const
|
|
3893
|
-
function
|
|
3893
|
+
const zn = (e) => `String interpolation failed for message: "${e}".`;
|
|
3894
|
+
function Bn(e, t, n, r) {
|
|
3894
3895
|
try {
|
|
3895
3896
|
return formatMessage(e, {
|
|
3896
3897
|
variables: t,
|
|
@@ -3898,27 +3899,27 @@ function zn(e, t, n, r) {
|
|
|
3898
3899
|
dataFormat: r
|
|
3899
3900
|
});
|
|
3900
3901
|
} catch {
|
|
3901
|
-
return
|
|
3902
|
+
return Ln.warn(zn(e)), e;
|
|
3902
3903
|
}
|
|
3903
3904
|
}
|
|
3904
|
-
function
|
|
3905
|
+
function Vn(e, t) {
|
|
3905
3906
|
if (!e) return e;
|
|
3906
|
-
let n = t.$_fallback, r =
|
|
3907
|
+
let n = t.$_fallback, r = Rn(t);
|
|
3907
3908
|
try {
|
|
3908
3909
|
let i = zt(n || ``);
|
|
3909
|
-
return formatCutoff(
|
|
3910
|
+
return formatCutoff(Bn(Object.keys(i).length ? Vt(e) : e, {
|
|
3910
3911
|
...r,
|
|
3911
3912
|
...i,
|
|
3912
3913
|
[U]: `other`
|
|
3913
3914
|
}, t.$locale ?? t.$_locales, t.$format), { maxChars: t.$maxChars });
|
|
3914
3915
|
} catch {
|
|
3915
|
-
return
|
|
3916
|
+
return Ln.warn(zn(e)), t.$_fallback == null ? formatCutoff(e, { maxChars: t.$maxChars }) : Vn(t.$_fallback, {
|
|
3916
3917
|
...t,
|
|
3917
3918
|
$_fallback: void 0
|
|
3918
3919
|
});
|
|
3919
3920
|
}
|
|
3920
3921
|
}
|
|
3921
|
-
function
|
|
3922
|
+
function Hn(e) {
|
|
3922
3923
|
if (e.lastIndexOf(`:`) === -1) return null;
|
|
3923
3924
|
let t = e.slice(e.lastIndexOf(`:`) + 1);
|
|
3924
3925
|
try {
|
|
@@ -3927,12 +3928,12 @@ function Vn(e) {
|
|
|
3927
3928
|
return null;
|
|
3928
3929
|
}
|
|
3929
3930
|
}
|
|
3930
|
-
function
|
|
3931
|
+
function Un(e) {
|
|
3931
3932
|
return !!(e.$_hash && e.$_source);
|
|
3932
3933
|
}
|
|
3933
|
-
function
|
|
3934
|
+
function Wn(e, t) {
|
|
3934
3935
|
let n = t;
|
|
3935
|
-
return n.$_hash == null ?
|
|
3936
|
+
return n.$_hash == null ? On({
|
|
3936
3937
|
source: t.$format === `ICU` ? Rt(e) : e,
|
|
3937
3938
|
...n.$context && { context: n.$context },
|
|
3938
3939
|
...n.$id && { id: n.$id },
|
|
@@ -3940,17 +3941,17 @@ function Un(e, t) {
|
|
|
3940
3941
|
dataFormat: t.$format
|
|
3941
3942
|
}) : n.$_hash;
|
|
3942
3943
|
}
|
|
3943
|
-
function
|
|
3944
|
+
function Gn(e) {
|
|
3944
3945
|
return typeof e == `string` && e.lastIndexOf(`:`) !== -1 ? e.slice(0, e.lastIndexOf(`:`)) : e;
|
|
3945
3946
|
}
|
|
3946
|
-
const
|
|
3947
|
-
function
|
|
3948
|
-
if (typeof e != `string`) return t ? e.map((e, n) =>
|
|
3947
|
+
const Kn = (e, t = {}) => Vn(e, t), qn = (e, t = {}) => e && (Un(Hn(e) ?? {}) ? Gn(e) : Vn(e, t));
|
|
3948
|
+
function Jn(e, t) {
|
|
3949
|
+
if (typeof e != `string`) return t ? e.map((e, n) => Jn(e, {
|
|
3949
3950
|
...t,
|
|
3950
3951
|
...t.$id && { $id: `${t.$id}.${n}` }
|
|
3951
3952
|
})) : e;
|
|
3952
3953
|
if (!t) return e;
|
|
3953
|
-
let n =
|
|
3954
|
+
let n = Rn(t), r = e;
|
|
3954
3955
|
try {
|
|
3955
3956
|
r = formatMessage(e, {
|
|
3956
3957
|
locales: [`en`],
|
|
@@ -3960,9 +3961,9 @@ function qn(e, t) {
|
|
|
3960
3961
|
}
|
|
3961
3962
|
});
|
|
3962
3963
|
} catch {
|
|
3963
|
-
return
|
|
3964
|
+
return Ln.warn(zn(e)), e;
|
|
3964
3965
|
}
|
|
3965
|
-
let i = e, a = t.$_hash ||
|
|
3966
|
+
let i = e, a = t.$_hash || Wn(e, {
|
|
3966
3967
|
$format: `ICU`,
|
|
3967
3968
|
...t
|
|
3968
3969
|
}), s = {
|
|
@@ -3972,14 +3973,14 @@ function qn(e, t) {
|
|
|
3972
3973
|
}, c = C(JSON.stringify(s));
|
|
3973
3974
|
return `${r}:${c}`;
|
|
3974
3975
|
}
|
|
3975
|
-
function
|
|
3976
|
+
function Yn({ children: e }) {
|
|
3976
3977
|
return e;
|
|
3977
3978
|
}
|
|
3978
|
-
function
|
|
3979
|
-
return
|
|
3979
|
+
function Xn(e) {
|
|
3980
|
+
return Yn(e);
|
|
3980
3981
|
}
|
|
3981
|
-
|
|
3982
|
+
Yn._gtt = `derive`, Xn._gtt = `derive`;
|
|
3982
3983
|
//#endregion
|
|
3983
|
-
export {
|
|
3984
|
+
export { Yn as Derive, Xn as Static, Ht as addGTIdentifier, In as collectUntranslatedEntries, Lt as declareStatic, Ft as declareVar, Gn as decodeMsg, Hn as decodeOptions, Nt as decodeVars, mn as defaultLocaleCookieName, hn as defaultRegionCookieName, It as derive, y as flattenDictionary, fn as getDefaultRenderSettings, Y as getDictionaryEntry, X as getEntryAndMetadata, J as getPluralBranch, xn as getSubtree, Sn as getSubtreeWithCreation, Qt as getVariableName, cn as getVariableProps, Kn as gtFallback, Pn as injectAndMerge, Tn as injectEntry, Nn as injectFallbacks, jn as injectHashes, Mn as injectTranslations, $ as isDictionaryEntry, on as isValidDictionaryEntry, ln as isVariableObject, qn as mFallback, yn as mergeDictionaries, Jn as msg, bn as reactHasUse, Z as renderDefaultChildren, pn as renderSkeleton, Q as renderTranslatedChildren, En as stripMetadataFromEntries, q as writeChildrenAsObjects };
|
|
3984
3985
|
|
|
3985
3986
|
//# sourceMappingURL=internal.mjs.map
|