@ichaingo/expandable-text 1.5.6 → 1.5.7-beta
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/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3412 -88
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,34 +1,3358 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
import { jsxs as Ue, jsx as ue } from "react/jsx-runtime";
|
|
3
|
+
import ie, { useCallback as bt, useRef as gt, useEffect as pt, useContext as qn, useState as le } from "react";
|
|
4
|
+
import { twMerge as qe } from "tailwind-merge";
|
|
5
|
+
var Tt;
|
|
6
|
+
function Fn(t, e) {
|
|
7
|
+
for (var a = 0; a < e.length; a++) {
|
|
8
|
+
const n = e[a];
|
|
9
|
+
if (typeof n != "string" && !Array.isArray(n)) {
|
|
10
|
+
for (const r in n)
|
|
11
|
+
if (r !== "default" && !(r in t)) {
|
|
12
|
+
const o = Object.getOwnPropertyDescriptor(n, r);
|
|
13
|
+
o && Object.defineProperty(t, r, o.get ? o : {
|
|
14
|
+
enumerable: !0,
|
|
15
|
+
get: () => n[r]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
21
|
+
}
|
|
22
|
+
function Le(t) {
|
|
23
|
+
return !!(t && typeof t.then == "function");
|
|
24
|
+
}
|
|
25
|
+
function _t(t, e) {
|
|
26
|
+
return Le(t) ? Promise.resolve(t).then(e) : e(t);
|
|
27
|
+
}
|
|
28
|
+
function Fe(t, e, a) {
|
|
29
|
+
function n(r) {
|
|
30
|
+
const o = e(r);
|
|
31
|
+
throw t.emit(o), console.error(o), o;
|
|
32
|
+
}
|
|
33
|
+
try {
|
|
34
|
+
const r = a();
|
|
35
|
+
return Le(r) ? r.catch(n) : r;
|
|
36
|
+
} catch (r) {
|
|
37
|
+
n(r);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function fe(t) {
|
|
41
|
+
const e = (Array.isArray(t) ? t : [t]).map((o) => `'${o}'`), a = e.slice(-2).join(" or ");
|
|
42
|
+
return `Tolgee: You need to specify ${[...e.slice(0, -2), a].join(", ")} option`;
|
|
43
|
+
}
|
|
44
|
+
function Hn(t) {
|
|
45
|
+
return typeof t == "object" && !Array.isArray(t) && t !== null;
|
|
46
|
+
}
|
|
47
|
+
function mn(t) {
|
|
48
|
+
if (typeof t == "string")
|
|
49
|
+
return [t];
|
|
50
|
+
if (Array.isArray(t))
|
|
51
|
+
return t;
|
|
52
|
+
}
|
|
53
|
+
function W(t) {
|
|
54
|
+
return mn(t) || [];
|
|
55
|
+
}
|
|
56
|
+
function Bn(t, e) {
|
|
57
|
+
return Hn(e) ? W(e == null ? void 0 : e[t]) : W(e);
|
|
58
|
+
}
|
|
59
|
+
function de(t) {
|
|
60
|
+
return Array.from(new Set(t));
|
|
61
|
+
}
|
|
62
|
+
function vn(t) {
|
|
63
|
+
return t && t.replace(/\/+$/, "");
|
|
64
|
+
}
|
|
65
|
+
function Xn(t) {
|
|
66
|
+
if (typeof t == "string")
|
|
67
|
+
return t;
|
|
68
|
+
if (typeof (t == null ? void 0 : t.message) == "string")
|
|
69
|
+
return t.message;
|
|
70
|
+
}
|
|
71
|
+
const Gn = (t, e) => fetch(t, e);
|
|
72
|
+
function Wn(t) {
|
|
73
|
+
return Object.fromEntries(new Headers(t).entries());
|
|
74
|
+
}
|
|
75
|
+
const bn = (t = Gn) => (e, a) => {
|
|
76
|
+
let n = Wn(a == null ? void 0 : a.headers);
|
|
77
|
+
return n["x-api-key"] && (n = Object.assign({ "x-tolgee-sdk-type": "JS", "x-tolgee-sdk-version": "prerelease" }, n)), t(e, Object.assign(Object.assign({}, a), { headers: n }));
|
|
78
|
+
}, J = (t, e) => {
|
|
79
|
+
let a = [];
|
|
80
|
+
return {
|
|
81
|
+
listen(n) {
|
|
82
|
+
const r = (o) => {
|
|
83
|
+
n(o);
|
|
84
|
+
};
|
|
85
|
+
return a.push(r), {
|
|
86
|
+
unsubscribe() {
|
|
87
|
+
a = a.filter((o) => r !== o);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
emit(n) {
|
|
92
|
+
e() && a.forEach((r) => r({ type: t, value: n }));
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
function zn(t) {
|
|
97
|
+
let e = [], a = [];
|
|
98
|
+
function n() {
|
|
99
|
+
if (a.length === 0)
|
|
100
|
+
return;
|
|
101
|
+
const r = a;
|
|
102
|
+
a = [], e.forEach((o) => {
|
|
103
|
+
o(r);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return Object.freeze({
|
|
107
|
+
listen(r) {
|
|
108
|
+
const o = (i) => {
|
|
109
|
+
r(i);
|
|
110
|
+
};
|
|
111
|
+
return e.push(o), {
|
|
112
|
+
unsubscribe() {
|
|
113
|
+
e = e.filter((i) => o !== i);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
},
|
|
117
|
+
emit(r, o) {
|
|
118
|
+
t() && t() && (a.push(r), o ? setTimeout(n, 0) : n());
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function Yn() {
|
|
123
|
+
let t = !0;
|
|
124
|
+
function e() {
|
|
125
|
+
return t;
|
|
126
|
+
}
|
|
127
|
+
const a = Object.freeze({
|
|
128
|
+
onPendingLanguageChange: J("pendingLanguage", e),
|
|
129
|
+
onLanguageChange: J("language", e),
|
|
130
|
+
onLoadingChange: J("loading", e),
|
|
131
|
+
onFetchingChange: J("fetching", e),
|
|
132
|
+
onInitialLoaded: J("initialLoad", e),
|
|
133
|
+
onRunningChange: J("running", e),
|
|
134
|
+
onCacheChange: J("cache", e),
|
|
135
|
+
onPermanentChange: J("permanentChange", e),
|
|
136
|
+
onError: J("error", e),
|
|
137
|
+
onUpdate: zn(e),
|
|
138
|
+
setEmitterActive(n) {
|
|
139
|
+
t = n;
|
|
140
|
+
},
|
|
141
|
+
on: (n, r) => {
|
|
142
|
+
switch (n) {
|
|
143
|
+
case "pendingLanguage":
|
|
144
|
+
return a.onPendingLanguageChange.listen(r);
|
|
145
|
+
case "language":
|
|
146
|
+
return a.onLanguageChange.listen(r);
|
|
147
|
+
case "loading":
|
|
148
|
+
return a.onLoadingChange.listen(r);
|
|
149
|
+
case "fetching":
|
|
150
|
+
return a.onFetchingChange.listen(r);
|
|
151
|
+
case "initialLoad":
|
|
152
|
+
return a.onInitialLoaded.listen(r);
|
|
153
|
+
case "running":
|
|
154
|
+
return a.onRunningChange.listen(r);
|
|
155
|
+
case "cache":
|
|
156
|
+
return a.onCacheChange.listen(r);
|
|
157
|
+
case "update":
|
|
158
|
+
return a.onUpdate.listen(r);
|
|
159
|
+
case "permanentChange":
|
|
160
|
+
return a.onPermanentChange.listen(r);
|
|
161
|
+
case "error":
|
|
162
|
+
return a.onError.listen(r);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
return a.onInitialLoaded.listen((n) => a.onUpdate.emit(n, !1)), a.onLanguageChange.listen((n) => a.onUpdate.emit(n, !1)), a.onCacheChange.listen((n) => a.onUpdate.emit(n, !0)), a;
|
|
167
|
+
}
|
|
168
|
+
class At extends Error {
|
|
169
|
+
constructor(e, a, n = !1) {
|
|
170
|
+
const { language: r, namespace: o } = e;
|
|
171
|
+
super(`Tolgee: Failed to fetch record for "${r}"${o && ` and "${o}"`}`), this.cause = a, this.isDev = n, this.name = "RecordFetchError", this.language = r, this.namespace = o;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
class Kn extends Error {
|
|
175
|
+
constructor(e, a) {
|
|
176
|
+
super(e), this.cause = a, this.name = "LanguageDetectorError";
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
class Pt extends Error {
|
|
180
|
+
constructor(e, a) {
|
|
181
|
+
super(e), this.cause = a, this.name = "LanguageStorageError";
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const Rn = (t) => {
|
|
185
|
+
const e = /* @__PURE__ */ new Map();
|
|
186
|
+
return Object.entries(t).forEach(([a, n]) => {
|
|
187
|
+
if (n != null) {
|
|
188
|
+
if (typeof n == "object") {
|
|
189
|
+
Rn(n).forEach((r, o) => {
|
|
190
|
+
e.set(a + "." + o, r);
|
|
191
|
+
});
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
e.set(a, n);
|
|
195
|
+
}
|
|
196
|
+
}), e;
|
|
197
|
+
}, ce = (t) => Object.fromEntries(Rn(t).entries()), oe = (t) => {
|
|
198
|
+
const [e, ...a] = t.split(":"), n = a.join(":");
|
|
199
|
+
return { language: e, namespace: n || "" };
|
|
200
|
+
}, V = ({ language: t, namespace: e }) => e ? `${t}:${e}` : t;
|
|
201
|
+
function Vn(t, e, a, n, r, o, i) {
|
|
202
|
+
const u = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
|
|
203
|
+
let s = {}, v = 0;
|
|
204
|
+
function b(g, _, l) {
|
|
205
|
+
const p = V(g);
|
|
206
|
+
c.set(p, {
|
|
207
|
+
data: ce(_),
|
|
208
|
+
version: l
|
|
209
|
+
}), t.onCacheChange.emit(oe(p));
|
|
210
|
+
}
|
|
211
|
+
async function w(g) {
|
|
212
|
+
function _(y) {
|
|
213
|
+
const h = new At(g, y);
|
|
214
|
+
throw t.onError.emit(h), console.error(h), h;
|
|
215
|
+
}
|
|
216
|
+
const l = e(g);
|
|
217
|
+
if (Le(l)) {
|
|
218
|
+
const y = await l.catch(_);
|
|
219
|
+
if (y !== void 0)
|
|
220
|
+
return y;
|
|
221
|
+
}
|
|
222
|
+
const p = s[V(g)];
|
|
223
|
+
if (typeof p == "function")
|
|
224
|
+
try {
|
|
225
|
+
return await p();
|
|
226
|
+
} catch (y) {
|
|
227
|
+
_(y);
|
|
228
|
+
}
|
|
229
|
+
else
|
|
230
|
+
return p;
|
|
231
|
+
}
|
|
232
|
+
async function O(g, _) {
|
|
233
|
+
let l;
|
|
234
|
+
if (_)
|
|
235
|
+
try {
|
|
236
|
+
l = await a(g);
|
|
237
|
+
} catch (p) {
|
|
238
|
+
const y = new At(g, p, !0);
|
|
239
|
+
t.onError.emit(y), console.warn(y);
|
|
240
|
+
}
|
|
241
|
+
return l || (l = await w(g)), l;
|
|
242
|
+
}
|
|
243
|
+
const C = Object.freeze({
|
|
244
|
+
addStaticData(g) {
|
|
245
|
+
if (Array.isArray(g))
|
|
246
|
+
for (const _ of g) {
|
|
247
|
+
const l = V(_), p = c.get(l);
|
|
248
|
+
(!p || p.version === 0) && b(_, ce(_.data), 0);
|
|
249
|
+
}
|
|
250
|
+
else g && (s = Object.assign(Object.assign({}, s), g), Object.entries(g).forEach(([_, l]) => {
|
|
251
|
+
if (typeof l != "function") {
|
|
252
|
+
const p = oe(_), y = c.get(_);
|
|
253
|
+
(!y || y.version === 0) && b(p, ce(l), 0);
|
|
254
|
+
}
|
|
255
|
+
}));
|
|
256
|
+
},
|
|
257
|
+
invalidate() {
|
|
258
|
+
u.clear(), v += 1;
|
|
259
|
+
},
|
|
260
|
+
addRecord(g, _) {
|
|
261
|
+
b(g, ce(_), v);
|
|
262
|
+
},
|
|
263
|
+
exists(g, _ = !1) {
|
|
264
|
+
const l = c.get(V(g));
|
|
265
|
+
return l && _ ? l.version === v : !!l;
|
|
266
|
+
},
|
|
267
|
+
getRecord(g) {
|
|
268
|
+
const _ = n(g), l = V(_), p = c.get(l);
|
|
269
|
+
if (p)
|
|
270
|
+
return Object.assign(Object.assign({}, _), { cacheKey: l, data: p.data });
|
|
271
|
+
},
|
|
272
|
+
getAllRecords() {
|
|
273
|
+
return Array.from(c.entries()).map(([_]) => C.getRecord(oe(_)));
|
|
274
|
+
},
|
|
275
|
+
getTranslation(g, _) {
|
|
276
|
+
var l;
|
|
277
|
+
return (l = c.get(V(g))) === null || l === void 0 ? void 0 : l.data[_];
|
|
278
|
+
},
|
|
279
|
+
getTranslationNs(g, _, l) {
|
|
280
|
+
var p;
|
|
281
|
+
for (const y of g)
|
|
282
|
+
for (const h of _) {
|
|
283
|
+
const S = (p = c.get(V({ language: h, namespace: y }))) === null || p === void 0 ? void 0 : p.data[l];
|
|
284
|
+
if (S != null)
|
|
285
|
+
return [y];
|
|
286
|
+
}
|
|
287
|
+
return de(g);
|
|
288
|
+
},
|
|
289
|
+
getTranslationFallback(g, _, l) {
|
|
290
|
+
var p;
|
|
291
|
+
for (const y of g)
|
|
292
|
+
for (const h of _) {
|
|
293
|
+
const S = (p = c.get(V({ language: h, namespace: y }))) === null || p === void 0 ? void 0 : p.data[l];
|
|
294
|
+
if (S != null)
|
|
295
|
+
return S;
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
changeTranslation(g, _, l) {
|
|
299
|
+
var p;
|
|
300
|
+
const y = (p = c.get(V(g))) === null || p === void 0 ? void 0 : p.data;
|
|
301
|
+
y && (y[_] = l, t.onCacheChange.emit(Object.assign(Object.assign({}, g), { key: _ })));
|
|
302
|
+
},
|
|
303
|
+
isFetching(g) {
|
|
304
|
+
if (r())
|
|
305
|
+
return !0;
|
|
306
|
+
if (g === void 0)
|
|
307
|
+
return u.size > 0;
|
|
308
|
+
const _ = W(g);
|
|
309
|
+
return !!Array.from(u.keys()).find((l) => _.includes(oe(l).namespace));
|
|
310
|
+
},
|
|
311
|
+
isLoading(g, _) {
|
|
312
|
+
const l = W(_);
|
|
313
|
+
return r() ? !0 : !!Array.from(u.keys()).find((y) => {
|
|
314
|
+
const h = oe(y);
|
|
315
|
+
return (!l.length || l.includes(h.namespace)) && !C.exists({
|
|
316
|
+
namespace: h.namespace,
|
|
317
|
+
language: g
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
},
|
|
321
|
+
async loadRecords(g, _) {
|
|
322
|
+
const l = g.map((h) => {
|
|
323
|
+
const S = n(h), A = V(S);
|
|
324
|
+
if (_ != null && _.useCache && C.exists(S, !0))
|
|
325
|
+
return Object.assign(Object.assign({}, S), { new: !1, cacheKey: A, data: C.getRecord(S).data });
|
|
326
|
+
const f = u.get(A);
|
|
327
|
+
if (f)
|
|
328
|
+
return Object.assign(Object.assign({}, S), { new: !1, promise: f, cacheKey: A });
|
|
329
|
+
const P = O(S, !(_ != null && _.noDev)) || Promise.resolve(void 0);
|
|
330
|
+
return u.set(A, P), Object.assign(Object.assign({}, S), { new: !0, promise: P, cacheKey: A });
|
|
331
|
+
});
|
|
332
|
+
o.notify(), i.notify();
|
|
333
|
+
const p = l.map((h) => h.promise).filter(Boolean), y = await Promise.all(p);
|
|
334
|
+
return l.forEach((h) => {
|
|
335
|
+
var S;
|
|
336
|
+
h.promise && (h.data = ce((S = y[0]) !== null && S !== void 0 ? S : {}), y.shift());
|
|
337
|
+
const A = u.get(h.cacheKey) !== h.promise;
|
|
338
|
+
h.new && !A && (u.delete(h.cacheKey), h.data ? C.addRecord(h, h.data) : C.getRecord(h) || C.addRecord(h, {}));
|
|
339
|
+
}), o.notify(), i.notify(), l.map((h) => {
|
|
340
|
+
var S;
|
|
341
|
+
return {
|
|
342
|
+
language: h.language,
|
|
343
|
+
namespace: h.namespace,
|
|
344
|
+
data: (S = h.data) !== null && S !== void 0 ? S : {},
|
|
345
|
+
cacheKey: h.cacheKey
|
|
346
|
+
};
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
return C;
|
|
351
|
+
}
|
|
352
|
+
function On(t, e) {
|
|
353
|
+
var a = {};
|
|
354
|
+
for (var n in t)
|
|
355
|
+
Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (a[n] = t[n]);
|
|
356
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
357
|
+
for (var r = 0, n = Object.getOwnPropertySymbols(t); r < n.length; r++)
|
|
358
|
+
e.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[r]) && (a[n[r]] = t[n[r]]);
|
|
359
|
+
return a;
|
|
360
|
+
}
|
|
361
|
+
const Qn = {
|
|
362
|
+
tagAttributes: {
|
|
363
|
+
textarea: ["placeholder"],
|
|
364
|
+
input: ["value", "placeholder"],
|
|
365
|
+
img: ["alt"],
|
|
366
|
+
"*": ["aria-label", "title"]
|
|
367
|
+
},
|
|
368
|
+
restrictedElements: ["script", "style"],
|
|
369
|
+
highlightKeys: ["Alt"],
|
|
370
|
+
highlightColor: "rgb(255, 0, 0)",
|
|
371
|
+
highlightWidth: 5,
|
|
372
|
+
inputPrefix: "%-%tolgee:",
|
|
373
|
+
inputSuffix: "%-%",
|
|
374
|
+
passToParent: ["option", "optgroup"],
|
|
375
|
+
fullKeyEncode: !1
|
|
376
|
+
}, ht = "invalid", Jn = "https://app.tolgee.io", Zn = ({ key: t }) => t, $n = {
|
|
377
|
+
observerOptions: Qn,
|
|
378
|
+
observerType: "invisible",
|
|
379
|
+
onFormatError: ht,
|
|
380
|
+
apiUrl: Jn,
|
|
381
|
+
autoLoadRequiredData: !0,
|
|
382
|
+
fetch: bn(),
|
|
383
|
+
onTranslationMissing: Zn
|
|
384
|
+
}, Et = (...t) => {
|
|
385
|
+
let e = {};
|
|
386
|
+
return t.forEach((a) => {
|
|
387
|
+
e = Object.assign(Object.assign(Object.assign({}, e), a), { observerOptions: Object.assign(Object.assign({}, e.observerOptions), a == null ? void 0 : a.observerOptions) });
|
|
388
|
+
}), e;
|
|
389
|
+
};
|
|
390
|
+
function wt(t, e) {
|
|
391
|
+
const a = Et($n, e == null ? void 0 : e.initialOptions, t);
|
|
392
|
+
return a.apiUrl = vn(a.apiUrl), t != null && t.fetch && (a.fetch = bn(t.fetch)), {
|
|
393
|
+
initialOptions: a,
|
|
394
|
+
activeNamespaces: (e == null ? void 0 : e.activeNamespaces) || /* @__PURE__ */ new Map(),
|
|
395
|
+
language: e == null ? void 0 : e.language,
|
|
396
|
+
pendingLanguage: e == null ? void 0 : e.language,
|
|
397
|
+
isInitialLoading: !1,
|
|
398
|
+
isRunning: !1
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
function er(t, e, a, n, r, o, i, u) {
|
|
402
|
+
const c = {
|
|
403
|
+
ui: void 0
|
|
404
|
+
}, s = {
|
|
405
|
+
formatters: [],
|
|
406
|
+
finalFormatter: void 0,
|
|
407
|
+
observer: void 0,
|
|
408
|
+
devBackend: void 0,
|
|
409
|
+
backends: [],
|
|
410
|
+
ui: void 0,
|
|
411
|
+
languageDetector: void 0,
|
|
412
|
+
languageStorage: void 0
|
|
413
|
+
}, v = async ({ keysAndDefaults: E, target: R }) => {
|
|
414
|
+
var D;
|
|
415
|
+
const M = E.map(({ key: q, ns: x, defaultValue: B }) => ({
|
|
416
|
+
key: q,
|
|
417
|
+
defaultValue: B,
|
|
418
|
+
fallbackNamespaces: n(x),
|
|
419
|
+
namespace: r({ key: q, ns: x })[0],
|
|
420
|
+
translation: o({
|
|
421
|
+
key: q,
|
|
422
|
+
ns: x
|
|
423
|
+
})
|
|
424
|
+
}));
|
|
425
|
+
(D = s.ui) === null || D === void 0 || D.handleElementClick(M, R);
|
|
426
|
+
}, b = (E, R) => {
|
|
427
|
+
var D;
|
|
428
|
+
return ((D = s.observer) === null || D === void 0 ? void 0 : D.findPositions(E, R)) || [];
|
|
429
|
+
};
|
|
430
|
+
function w(E) {
|
|
431
|
+
const R = o({
|
|
432
|
+
key: E.key,
|
|
433
|
+
ns: E.ns
|
|
434
|
+
});
|
|
435
|
+
return N.formatTranslation(Object.assign(Object.assign({}, E), { translation: R, formatEnabled: !0 }));
|
|
436
|
+
}
|
|
437
|
+
function O() {
|
|
438
|
+
return { fetch: e().fetch };
|
|
439
|
+
}
|
|
440
|
+
function C(E) {
|
|
441
|
+
s.observer = E == null ? void 0 : E();
|
|
442
|
+
}
|
|
443
|
+
function g() {
|
|
444
|
+
return !!s.observer;
|
|
445
|
+
}
|
|
446
|
+
function _(E) {
|
|
447
|
+
E && s.formatters.push(E);
|
|
448
|
+
}
|
|
449
|
+
function l(E) {
|
|
450
|
+
s.finalFormatter = E;
|
|
451
|
+
}
|
|
452
|
+
function p(E) {
|
|
453
|
+
c.ui = E;
|
|
454
|
+
}
|
|
455
|
+
function y() {
|
|
456
|
+
return !!c.ui;
|
|
457
|
+
}
|
|
458
|
+
function h(E) {
|
|
459
|
+
s.languageStorage = E;
|
|
460
|
+
}
|
|
461
|
+
function S(E) {
|
|
462
|
+
s.languageDetector = E;
|
|
463
|
+
}
|
|
464
|
+
function A() {
|
|
465
|
+
return Fe(u.onError, (E) => new Pt("Tolgee: Failed to load language", E), () => {
|
|
466
|
+
var E;
|
|
467
|
+
return (E = s.languageStorage) === null || E === void 0 ? void 0 : E.getLanguage(O());
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
function f() {
|
|
471
|
+
if (!s.languageDetector)
|
|
472
|
+
return;
|
|
473
|
+
const E = a();
|
|
474
|
+
return Fe(u.onError, (R) => new Kn("Tolgee: Failed to detect language", R), () => {
|
|
475
|
+
var R;
|
|
476
|
+
return (R = s.languageDetector) === null || R === void 0 ? void 0 : R.getLanguage(Object.assign({ availableLanguages: E }, O()));
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
function P(E) {
|
|
480
|
+
E && s.backends.push(E);
|
|
481
|
+
}
|
|
482
|
+
function L(E) {
|
|
483
|
+
s.devBackend = E;
|
|
484
|
+
}
|
|
485
|
+
function j(E, R) {
|
|
486
|
+
const D = Object.freeze({
|
|
487
|
+
setFinalFormatter: l,
|
|
488
|
+
addFormatter: _,
|
|
489
|
+
setObserver: C,
|
|
490
|
+
hasObserver: g,
|
|
491
|
+
setUi: p,
|
|
492
|
+
hasUi: y,
|
|
493
|
+
setDevBackend: L,
|
|
494
|
+
addBackend: P,
|
|
495
|
+
setLanguageDetector: S,
|
|
496
|
+
setLanguageStorage: h
|
|
497
|
+
});
|
|
498
|
+
R(E, D);
|
|
499
|
+
}
|
|
500
|
+
const N = Object.freeze({
|
|
501
|
+
addPlugin: j,
|
|
502
|
+
findPositions: b,
|
|
503
|
+
run() {
|
|
504
|
+
var E, R;
|
|
505
|
+
const { apiKey: D, apiUrl: M, projectId: q, observerOptions: x, tagNewKeys: B, filterTag: ee } = e();
|
|
506
|
+
s.ui = (E = c.ui) === null || E === void 0 ? void 0 : E.call(c, {
|
|
507
|
+
apiKey: D,
|
|
508
|
+
apiUrl: M,
|
|
509
|
+
projectId: q,
|
|
510
|
+
highlight: N.highlight,
|
|
511
|
+
changeTranslation: i,
|
|
512
|
+
findPositions: b,
|
|
513
|
+
onPermanentChange: (z) => u.onPermanentChange.emit(z),
|
|
514
|
+
tagNewKeys: B,
|
|
515
|
+
filterTag: ee
|
|
516
|
+
}), (R = s.observer) === null || R === void 0 || R.run({
|
|
517
|
+
mouseHighlight: !!s.ui,
|
|
518
|
+
options: x,
|
|
519
|
+
translate: w,
|
|
520
|
+
onClick: v
|
|
521
|
+
});
|
|
522
|
+
},
|
|
523
|
+
stop() {
|
|
524
|
+
var E;
|
|
525
|
+
s.ui = void 0, (E = s.observer) === null || E === void 0 || E.stop();
|
|
526
|
+
},
|
|
527
|
+
getLanguageStorage() {
|
|
528
|
+
return s.languageStorage;
|
|
529
|
+
},
|
|
530
|
+
getInitialLanguage() {
|
|
531
|
+
const E = a(), R = A();
|
|
532
|
+
return _t(R, (D) => (!E || E.includes(D)) && D ? D : f());
|
|
533
|
+
},
|
|
534
|
+
setStoredLanguage(E) {
|
|
535
|
+
return Fe(u.onError, (R) => new Pt("Tolgee: Failed to store language", R), () => {
|
|
536
|
+
var R;
|
|
537
|
+
return (R = s.languageStorage) === null || R === void 0 ? void 0 : R.setLanguage(E, O());
|
|
538
|
+
});
|
|
539
|
+
},
|
|
540
|
+
getDevBackend() {
|
|
541
|
+
return s.devBackend;
|
|
542
|
+
},
|
|
543
|
+
getBackendRecord: async ({ language: E, namespace: R }) => {
|
|
544
|
+
for (const D of s.backends) {
|
|
545
|
+
const M = await D.getRecord(Object.assign({
|
|
546
|
+
language: E,
|
|
547
|
+
namespace: R
|
|
548
|
+
}, O()));
|
|
549
|
+
if (M !== void 0)
|
|
550
|
+
return M;
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
getBackendDevRecord: async ({ language: E, namespace: R }) => {
|
|
554
|
+
var D;
|
|
555
|
+
const { apiKey: M, apiUrl: q, projectId: x, filterTag: B } = e();
|
|
556
|
+
if (!(!M || !q || !N.hasDevBackend()))
|
|
557
|
+
return (D = s.devBackend) === null || D === void 0 ? void 0 : D.getRecord(Object.assign({
|
|
558
|
+
apiKey: M,
|
|
559
|
+
apiUrl: q,
|
|
560
|
+
projectId: x,
|
|
561
|
+
language: E,
|
|
562
|
+
namespace: R,
|
|
563
|
+
filterTag: B
|
|
564
|
+
}, O()));
|
|
565
|
+
},
|
|
566
|
+
getLanguageDetector() {
|
|
567
|
+
return s.languageDetector;
|
|
568
|
+
},
|
|
569
|
+
retranslate() {
|
|
570
|
+
var E;
|
|
571
|
+
(E = s.observer) === null || E === void 0 || E.retranslate();
|
|
572
|
+
},
|
|
573
|
+
highlight: (E, R) => {
|
|
574
|
+
var D, M;
|
|
575
|
+
return ((M = (D = s.observer) === null || D === void 0 ? void 0 : D.highlight) === null || M === void 0 ? void 0 : M.call(D, E, R)) || { unhighlight() {
|
|
576
|
+
} };
|
|
577
|
+
},
|
|
578
|
+
unwrap(E) {
|
|
579
|
+
var R;
|
|
580
|
+
return s.observer ? (R = s.observer) === null || R === void 0 ? void 0 : R.unwrap(E) : { text: E, keys: [] };
|
|
581
|
+
},
|
|
582
|
+
wrap(E) {
|
|
583
|
+
var R;
|
|
584
|
+
return s.observer ? (R = s.observer) === null || R === void 0 ? void 0 : R.wrap(E) : E.translation;
|
|
585
|
+
},
|
|
586
|
+
hasDevBackend() {
|
|
587
|
+
return !!N.getDevBackend();
|
|
588
|
+
},
|
|
589
|
+
formatTranslation(E) {
|
|
590
|
+
var R, { formatEnabled: D } = E, M = On(E, ["formatEnabled"]);
|
|
591
|
+
const { key: q, translation: x, defaultValue: B, noWrap: ee, params: z, ns: se, orEmpty: te } = M, U = x ?? B;
|
|
592
|
+
let X = "";
|
|
593
|
+
x == null && (X = e().onTranslationMissing(M));
|
|
594
|
+
let k = U ?? (te ? "" : X);
|
|
595
|
+
const Y = t(), Q = D || !(!((R = s.observer) === null || R === void 0) && R.outputNotFormattable), K = (F) => s.observer && !ee ? s.observer.wrap({
|
|
596
|
+
key: q,
|
|
597
|
+
translation: F,
|
|
598
|
+
defaultValue: B,
|
|
599
|
+
params: z,
|
|
600
|
+
ns: se
|
|
601
|
+
}) : F;
|
|
602
|
+
k = K(k);
|
|
603
|
+
try {
|
|
604
|
+
if (U && Y && Q)
|
|
605
|
+
for (const F of s.formatters)
|
|
606
|
+
k = F.format({
|
|
607
|
+
translation: k,
|
|
608
|
+
language: Y,
|
|
609
|
+
params: z
|
|
610
|
+
});
|
|
611
|
+
s.finalFormatter && U && Y && Q && (k = s.finalFormatter.format({
|
|
612
|
+
translation: k,
|
|
613
|
+
language: Y,
|
|
614
|
+
params: z
|
|
615
|
+
}));
|
|
616
|
+
} catch (F) {
|
|
617
|
+
console.error(F);
|
|
618
|
+
const ne = Xn(F) || ht, Z = e().onFormatError, re = typeof Z;
|
|
619
|
+
re === "string" ? k = Z : re === "function" ? k = Z(ne, M) : k = ht, k = K(k);
|
|
620
|
+
}
|
|
621
|
+
return k;
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
return N;
|
|
625
|
+
}
|
|
626
|
+
const St = (t, e, a) => {
|
|
627
|
+
let n = t;
|
|
628
|
+
return Object.freeze({
|
|
629
|
+
init(r) {
|
|
630
|
+
n = r;
|
|
631
|
+
},
|
|
632
|
+
notify() {
|
|
633
|
+
const r = e();
|
|
634
|
+
n !== r && a(r), n = r;
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
};
|
|
638
|
+
function tr(t, e, a) {
|
|
639
|
+
let n = wt(), r;
|
|
640
|
+
const o = Object.freeze({
|
|
641
|
+
init(i) {
|
|
642
|
+
n = wt(i, n);
|
|
643
|
+
},
|
|
644
|
+
isRunning() {
|
|
645
|
+
return n.isRunning;
|
|
646
|
+
},
|
|
647
|
+
setRunning(i) {
|
|
648
|
+
n.isRunning !== i && (n.isRunning = i, a.emit(i));
|
|
649
|
+
},
|
|
650
|
+
isInitialLoading() {
|
|
651
|
+
return n.isInitialLoading;
|
|
652
|
+
},
|
|
653
|
+
setInitialLoading(i) {
|
|
654
|
+
n.isInitialLoading = i;
|
|
655
|
+
},
|
|
656
|
+
getLanguage() {
|
|
657
|
+
return n.language || n.initialOptions.language;
|
|
658
|
+
},
|
|
659
|
+
setLanguage(i) {
|
|
660
|
+
n.language !== i && (n.language = i, t.emit(i));
|
|
661
|
+
},
|
|
662
|
+
getPendingLanguage() {
|
|
663
|
+
return n.pendingLanguage || o.getLanguage();
|
|
664
|
+
},
|
|
665
|
+
setPendingLanguage(i) {
|
|
666
|
+
n.pendingLanguage !== i && (n.pendingLanguage = i, e.emit(i));
|
|
667
|
+
},
|
|
668
|
+
getInitialOptions() {
|
|
669
|
+
return Object.assign(Object.assign({}, n.initialOptions), r);
|
|
670
|
+
},
|
|
671
|
+
addActiveNs(i) {
|
|
672
|
+
W(i).forEach((c) => {
|
|
673
|
+
const s = n.activeNamespaces.get(c);
|
|
674
|
+
s !== void 0 ? n.activeNamespaces.set(c, s + 1) : n.activeNamespaces.set(c, 1);
|
|
675
|
+
});
|
|
676
|
+
},
|
|
677
|
+
removeActiveNs(i) {
|
|
678
|
+
W(i).forEach((c) => {
|
|
679
|
+
const s = n.activeNamespaces.get(c);
|
|
680
|
+
s !== void 0 && s > 1 ? n.activeNamespaces.set(c, s - 1) : n.activeNamespaces.delete(c);
|
|
681
|
+
});
|
|
682
|
+
},
|
|
683
|
+
getRequiredNamespaces() {
|
|
684
|
+
return de([
|
|
685
|
+
o.getDefaultNs(),
|
|
686
|
+
...n.initialOptions.ns || [],
|
|
687
|
+
...W(n.initialOptions.fallbackNs),
|
|
688
|
+
...n.activeNamespaces.keys()
|
|
689
|
+
]);
|
|
690
|
+
},
|
|
691
|
+
getFallbackLangs(i) {
|
|
692
|
+
const u = i || o.getLanguage();
|
|
693
|
+
return u ? de([
|
|
694
|
+
u,
|
|
695
|
+
...Bn(u, n.initialOptions.fallbackLanguage)
|
|
696
|
+
]) : [];
|
|
697
|
+
},
|
|
698
|
+
getFallbackNs() {
|
|
699
|
+
return W(n.initialOptions.fallbackNs);
|
|
700
|
+
},
|
|
701
|
+
getNs() {
|
|
702
|
+
var i, u;
|
|
703
|
+
return !((i = n.initialOptions.ns) === null || i === void 0) && i.length ? n.initialOptions.ns : [(u = n.initialOptions.defaultNs) !== null && u !== void 0 ? u : ""];
|
|
704
|
+
},
|
|
705
|
+
getDefaultNs(i) {
|
|
706
|
+
var u, c, s;
|
|
707
|
+
return i === void 0 ? (s = (u = n.initialOptions.defaultNs) !== null && u !== void 0 ? u : (c = n.initialOptions.ns) === null || c === void 0 ? void 0 : c[0]) !== null && s !== void 0 ? s : "" : i;
|
|
708
|
+
},
|
|
709
|
+
getAvailableLanguages() {
|
|
710
|
+
if (n.initialOptions.availableLanguages)
|
|
711
|
+
return n.initialOptions.availableLanguages;
|
|
712
|
+
if (n.initialOptions.staticData) {
|
|
713
|
+
const i = Object.keys(n.initialOptions.staticData).map((u) => oe(u).language);
|
|
714
|
+
return Array.from(new Set(i));
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
getAvailableNs() {
|
|
718
|
+
return n.initialOptions.availableNs;
|
|
719
|
+
},
|
|
720
|
+
withDefaultNs(i) {
|
|
721
|
+
return {
|
|
722
|
+
namespace: i.namespace === void 0 ? o.getDefaultNs() : i.namespace,
|
|
723
|
+
language: i.language
|
|
724
|
+
};
|
|
725
|
+
},
|
|
726
|
+
overrideCredentials(i) {
|
|
727
|
+
i ? r = Object.assign(Object.assign({}, i), { apiUrl: vn(i.apiUrl) }) : r = void 0;
|
|
728
|
+
}
|
|
729
|
+
});
|
|
730
|
+
return o;
|
|
731
|
+
}
|
|
732
|
+
function nr(t) {
|
|
733
|
+
var { ns: e, noWrap: a, orEmpty: n, params: r, language: o } = t, i = On(t, ["ns", "noWrap", "orEmpty", "params", "language"]);
|
|
734
|
+
return Object.assign(Object.assign({}, {
|
|
735
|
+
ns: e,
|
|
736
|
+
noWrap: a,
|
|
737
|
+
orEmpty: n,
|
|
738
|
+
language: o
|
|
739
|
+
}), { params: Object.assign({}, i) });
|
|
740
|
+
}
|
|
741
|
+
const Tn = (t, ...e) => {
|
|
742
|
+
let a = {}, n;
|
|
743
|
+
return typeof t == "object" ? a = t : (a.key = t, typeof e[0] == "string" ? (a.defaultValue = e[0], n = e[1]) : typeof e[0] == "object" && (n = e[0])), n && (a = Object.assign(Object.assign({}, nr(n)), a)), a;
|
|
744
|
+
};
|
|
745
|
+
function rr({ options: t }) {
|
|
746
|
+
const e = Yn(), a = St(!1, () => i.isFetching(), e.onFetchingChange.emit), n = St(!1, () => A.isLoading(), e.onLoadingChange.emit), r = tr(e.onLanguageChange, e.onPendingLanguageChange, e.onRunningChange), o = er(r.getLanguage, r.getInitialOptions, r.getAvailableLanguages, v, l, p, w, e), i = Vn(e, o.getBackendRecord, o.getBackendDevRecord, r.withDefaultNs, r.isInitialLoading, a, n);
|
|
747
|
+
t && O(t);
|
|
748
|
+
let u;
|
|
749
|
+
e.onUpdate.listen(() => {
|
|
750
|
+
r.isRunning() && o.retranslate();
|
|
751
|
+
});
|
|
752
|
+
function c() {
|
|
753
|
+
return r.getFallbackNs();
|
|
754
|
+
}
|
|
755
|
+
function s(f) {
|
|
756
|
+
return r.getDefaultNs(f);
|
|
757
|
+
}
|
|
758
|
+
function v(f) {
|
|
759
|
+
return de([...W(s(f)), ...c()]);
|
|
760
|
+
}
|
|
761
|
+
function b(f) {
|
|
762
|
+
return de([
|
|
763
|
+
...W(f ?? s()),
|
|
764
|
+
...r.getRequiredNamespaces()
|
|
765
|
+
]);
|
|
766
|
+
}
|
|
767
|
+
function w(f, P, L) {
|
|
768
|
+
const j = r.withDefaultNs(f), N = i.getTranslation(j, P);
|
|
769
|
+
return i.changeTranslation(j, P, L), {
|
|
770
|
+
revert() {
|
|
771
|
+
i.changeTranslation(j, P, N);
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
function O(f) {
|
|
776
|
+
r.init(f), i.addStaticData(r.getInitialOptions().staticData);
|
|
777
|
+
}
|
|
778
|
+
function C(f, P) {
|
|
779
|
+
const L = r.getFallbackLangs(f), j = b(P), N = [];
|
|
780
|
+
return L.forEach((E) => {
|
|
781
|
+
j.forEach((R) => {
|
|
782
|
+
N.push({ language: E, namespace: R });
|
|
783
|
+
});
|
|
784
|
+
}), N;
|
|
785
|
+
}
|
|
786
|
+
function g(f, P) {
|
|
787
|
+
return C(f, P).filter((L) => !i.exists(L, !0));
|
|
788
|
+
}
|
|
789
|
+
function _(f) {
|
|
790
|
+
let P = [], L = [];
|
|
791
|
+
if (Array.isArray(f.languages))
|
|
792
|
+
P = f.languages;
|
|
793
|
+
else if (f.languages === "all") {
|
|
794
|
+
const N = A.getAvailableLanguages();
|
|
795
|
+
if (!N)
|
|
796
|
+
throw new Error(fe("availableLanguages"));
|
|
797
|
+
P = N;
|
|
798
|
+
}
|
|
799
|
+
if (Array.isArray(f.namespaces))
|
|
800
|
+
L = f.namespaces;
|
|
801
|
+
else if (f.namespaces === "all") {
|
|
802
|
+
const N = A.getAvailableNs();
|
|
803
|
+
if (!N)
|
|
804
|
+
throw new Error(fe("availableNs"));
|
|
805
|
+
L = N;
|
|
806
|
+
}
|
|
807
|
+
const j = [];
|
|
808
|
+
return P.forEach((N) => {
|
|
809
|
+
L.forEach((E) => {
|
|
810
|
+
j.push({ language: N, namespace: E });
|
|
811
|
+
});
|
|
812
|
+
}), j;
|
|
813
|
+
}
|
|
814
|
+
function l({ key: f, ns: P }) {
|
|
815
|
+
const L = r.getFallbackLangs(), j = v(P ?? void 0);
|
|
816
|
+
return i.getTranslationNs(j, L, f);
|
|
817
|
+
}
|
|
818
|
+
function p({ key: f, ns: P, language: L }) {
|
|
819
|
+
const j = v(P ?? void 0), N = r.getFallbackLangs(L);
|
|
820
|
+
return i.getTranslationFallback(j, N, f);
|
|
821
|
+
}
|
|
822
|
+
function y() {
|
|
823
|
+
const f = _t(h(), () => {
|
|
824
|
+
const P = g();
|
|
825
|
+
if (P.length && r.getInitialOptions().autoLoadRequiredData)
|
|
826
|
+
return i.loadRecords(P, { useCache: !0 });
|
|
827
|
+
});
|
|
828
|
+
if (Le(f))
|
|
829
|
+
return r.setInitialLoading(!0), a.notify(), n.notify(), Promise.resolve(f).then(() => {
|
|
830
|
+
r.setInitialLoading(!1), a.notify(), n.notify(), e.onInitialLoaded.emit();
|
|
831
|
+
});
|
|
832
|
+
e.onInitialLoaded.emit();
|
|
833
|
+
}
|
|
834
|
+
function h() {
|
|
835
|
+
if (r.getLanguage())
|
|
836
|
+
return;
|
|
837
|
+
const P = o.getInitialLanguage();
|
|
838
|
+
return _t(P, (L) => {
|
|
839
|
+
const j = L || r.getInitialOptions().defaultLanguage;
|
|
840
|
+
j && r.setLanguage(j);
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
function S() {
|
|
844
|
+
if ((o.getLanguageDetector() || o.getLanguageStorage()) && !r.getAvailableLanguages())
|
|
845
|
+
throw new Error(fe("availableLanguages"));
|
|
846
|
+
if (!r.getLanguage() && !r.getInitialOptions().defaultLanguage)
|
|
847
|
+
throw new Error(fe(["defaultLanguage", "language"]));
|
|
848
|
+
}
|
|
849
|
+
const A = Object.freeze(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), r), o), i), {
|
|
850
|
+
init: O,
|
|
851
|
+
getTranslation: p,
|
|
852
|
+
changeTranslation: w,
|
|
853
|
+
getTranslationNs: l,
|
|
854
|
+
getDefaultAndFallbackNs: v,
|
|
855
|
+
findPositions: o.findPositions,
|
|
856
|
+
getRequiredDescriptors: C,
|
|
857
|
+
async changeLanguage(f) {
|
|
858
|
+
r.getPendingLanguage() === f && r.getLanguage() === f || (r.setPendingLanguage(f), r.isRunning() && r.getInitialOptions().autoLoadRequiredData && await i.loadRecords(C(f), {
|
|
859
|
+
useCache: !0
|
|
860
|
+
}), f === r.getPendingLanguage() && (r.setLanguage(f), await o.setStoredLanguage(f)));
|
|
861
|
+
},
|
|
862
|
+
async addActiveNs(f, P) {
|
|
863
|
+
P || r.addActiveNs(f), r.isRunning() && await i.loadRecords(C(void 0, f), {
|
|
864
|
+
useCache: !0
|
|
865
|
+
});
|
|
866
|
+
},
|
|
867
|
+
async loadRecord(f, P) {
|
|
868
|
+
var L;
|
|
869
|
+
return (L = (await A.loadRecords([f], P))[0]) === null || L === void 0 ? void 0 : L.data;
|
|
870
|
+
},
|
|
871
|
+
isLoading(f) {
|
|
872
|
+
return i.isLoading(r.getLanguage(), f);
|
|
873
|
+
},
|
|
874
|
+
isLoaded(f) {
|
|
875
|
+
const P = r.getLanguage();
|
|
876
|
+
if (!P)
|
|
877
|
+
return !1;
|
|
878
|
+
const L = r.getFallbackLangs(P), j = b(f), N = [];
|
|
879
|
+
return L.forEach((E) => {
|
|
880
|
+
j.forEach((R) => {
|
|
881
|
+
i.exists({ language: E, namespace: R }) || N.push({ language: E, namespace: R });
|
|
882
|
+
});
|
|
883
|
+
}), N.length === 0;
|
|
884
|
+
},
|
|
885
|
+
t: (...f) => {
|
|
886
|
+
const P = Tn(...f), L = p(P);
|
|
887
|
+
return o.formatTranslation(Object.assign(Object.assign({}, P), { translation: L }));
|
|
888
|
+
},
|
|
889
|
+
isDev() {
|
|
890
|
+
return !!(r.getInitialOptions().apiKey && r.getInitialOptions().apiUrl);
|
|
891
|
+
},
|
|
892
|
+
async loadRequired(f) {
|
|
893
|
+
f != null && f.language || await h();
|
|
894
|
+
const P = C(f == null ? void 0 : f.language);
|
|
895
|
+
return A.loadRecords(P, f);
|
|
896
|
+
},
|
|
897
|
+
async loadMatrix(f) {
|
|
898
|
+
const P = _(f);
|
|
899
|
+
return A.loadRecords(P, f);
|
|
900
|
+
},
|
|
901
|
+
run() {
|
|
902
|
+
return S(), r.isRunning() || (r.setRunning(!0), o.run(), u = y()), Promise.resolve(u);
|
|
903
|
+
},
|
|
904
|
+
stop() {
|
|
905
|
+
r.isRunning() && (o.stop(), r.setRunning(!1));
|
|
906
|
+
}
|
|
907
|
+
}));
|
|
908
|
+
return A;
|
|
909
|
+
}
|
|
910
|
+
function ar(t) {
|
|
911
|
+
const e = rr({
|
|
912
|
+
options: t
|
|
913
|
+
});
|
|
914
|
+
e.isDev() && e.invalidate();
|
|
915
|
+
function a(r) {
|
|
916
|
+
const o = e.isRunning();
|
|
917
|
+
o && e.stop(), r(), e.isDev() && e.invalidate(), o && e.run();
|
|
918
|
+
}
|
|
919
|
+
const n = Object.freeze({
|
|
920
|
+
/**
|
|
921
|
+
* Listen to tolgee events.
|
|
922
|
+
*/
|
|
923
|
+
on: e.on,
|
|
924
|
+
/**
|
|
925
|
+
* Turn off/on events emitting. Is on by default.
|
|
926
|
+
*/
|
|
927
|
+
setEmitterActive: e.setEmitterActive,
|
|
928
|
+
/**
|
|
929
|
+
* @return current language if set.
|
|
930
|
+
*/
|
|
931
|
+
getLanguage: e.getLanguage,
|
|
932
|
+
/**
|
|
933
|
+
* `pendingLanguage` represents language which is currently being loaded.
|
|
934
|
+
* @return current `pendingLanguage` if set.
|
|
935
|
+
*/
|
|
936
|
+
getPendingLanguage: e.getPendingLanguage,
|
|
937
|
+
/**
|
|
938
|
+
* Change current language.
|
|
939
|
+
* - if not running sets `pendingLanguage`, `language` to the new value
|
|
940
|
+
* - if running sets `pendingLanguage` to the value, fetches necessary data and then changes `language`
|
|
941
|
+
*
|
|
942
|
+
* @return Promise which is resolved when `language` is changed.
|
|
943
|
+
*/
|
|
944
|
+
changeLanguage: e.changeLanguage,
|
|
945
|
+
/**
|
|
946
|
+
* Temporarily change translation in cache.
|
|
947
|
+
* @return object with revert method.
|
|
948
|
+
*/
|
|
949
|
+
changeTranslation: e.changeTranslation,
|
|
950
|
+
/**
|
|
951
|
+
* Adds namespace(s) list of active namespaces. And if tolgee is running, loads required data.
|
|
952
|
+
*/
|
|
953
|
+
addActiveNs: e.addActiveNs,
|
|
954
|
+
/**
|
|
955
|
+
* Remove namespace(s) from active namespaces.
|
|
956
|
+
*
|
|
957
|
+
* Tolgee internally counts how many times was each active namespace added,
|
|
958
|
+
* so this method will remove namespace only if the counter goes down to 0.
|
|
959
|
+
*/
|
|
960
|
+
removeActiveNs: e.removeActiveNs,
|
|
961
|
+
/**
|
|
962
|
+
* Load records which would be loaded by `run` function
|
|
963
|
+
*
|
|
964
|
+
* You can provide language if not previously set on tolgee instance
|
|
965
|
+
*/
|
|
966
|
+
loadRequired: e.loadRequired,
|
|
967
|
+
/**
|
|
968
|
+
* Load records in matrix (languages x namespaces)
|
|
969
|
+
*/
|
|
970
|
+
loadMatrix: e.loadMatrix,
|
|
971
|
+
/**
|
|
972
|
+
* Manually load multiple records from `Backend` (or `DevBackend` when in dev mode)
|
|
973
|
+
*
|
|
974
|
+
* It loads data together and adds them to cache in one operation, to prevent partly loaded state.
|
|
975
|
+
*/
|
|
976
|
+
loadRecords: e.loadRecords,
|
|
977
|
+
/**
|
|
978
|
+
* Manually load record from `Backend` (or `DevBackend` when in dev mode)
|
|
979
|
+
*/
|
|
980
|
+
loadRecord: e.loadRecord,
|
|
981
|
+
/**
|
|
982
|
+
* Prefill static data
|
|
983
|
+
*/
|
|
984
|
+
addStaticData: e.addStaticData,
|
|
985
|
+
/**
|
|
986
|
+
* Get record from cache.
|
|
987
|
+
*/
|
|
988
|
+
getRecord: e.getRecord,
|
|
989
|
+
/**
|
|
990
|
+
* Get all records from cache.
|
|
991
|
+
*/
|
|
992
|
+
getAllRecords: e.getAllRecords,
|
|
993
|
+
/**
|
|
994
|
+
* @param ns optional list of namespaces that you are interested in
|
|
995
|
+
* @return `true` if there are data that need to be fetched.
|
|
996
|
+
*/
|
|
997
|
+
isLoaded: e.isLoaded,
|
|
998
|
+
/**
|
|
999
|
+
* Returns descriptors of records needed for instance to be `loaded`
|
|
1000
|
+
*/
|
|
1001
|
+
getRequiredDescriptors: e.getRequiredDescriptors,
|
|
1002
|
+
/**
|
|
1003
|
+
* @return `true` if tolgee is loading initial data (triggered by `run`).
|
|
1004
|
+
*/
|
|
1005
|
+
isInitialLoading: e.isInitialLoading,
|
|
1006
|
+
/**
|
|
1007
|
+
* @param ns optional list of namespaces that you are interested in
|
|
1008
|
+
* @return `true` if tolgee is loading some translations for the first time.
|
|
1009
|
+
*/
|
|
1010
|
+
isLoading: e.isLoading,
|
|
1011
|
+
/**
|
|
1012
|
+
* @param ns optional list of namespaces that you are interested in
|
|
1013
|
+
* @return `true` if tolgee is fetching some translations.
|
|
1014
|
+
*/
|
|
1015
|
+
isFetching: e.isFetching,
|
|
1016
|
+
/**
|
|
1017
|
+
* @return `true` if tolgee is running.
|
|
1018
|
+
*/
|
|
1019
|
+
isRunning: e.isRunning,
|
|
1020
|
+
/**
|
|
1021
|
+
* Changes internal state to running: true and loads initial files.
|
|
1022
|
+
* Runs runnable plugins mainly Observer if present.
|
|
1023
|
+
*/
|
|
1024
|
+
run: e.run,
|
|
1025
|
+
/**
|
|
1026
|
+
* Changes internal state to running: false and stops runnable plugins.
|
|
1027
|
+
*/
|
|
1028
|
+
stop: e.stop,
|
|
1029
|
+
/**
|
|
1030
|
+
* Returns translated and formatted key.
|
|
1031
|
+
* If Observer is present and tolgee is running, wraps result to be identifiable in the DOM.
|
|
1032
|
+
*/
|
|
1033
|
+
t: e.t,
|
|
1034
|
+
/**
|
|
1035
|
+
* Highlight keys that match selection.
|
|
1036
|
+
*/
|
|
1037
|
+
highlight: e.highlight,
|
|
1038
|
+
/**
|
|
1039
|
+
* Find positions of keys in the DOM.
|
|
1040
|
+
*/
|
|
1041
|
+
findPositions: e.findPositions,
|
|
1042
|
+
/**
|
|
1043
|
+
* @return current Tolgee options.
|
|
1044
|
+
*/
|
|
1045
|
+
getInitialOptions: e.getInitialOptions,
|
|
1046
|
+
/**
|
|
1047
|
+
* Tolgee is in dev mode if `DevTools` plugin is used and `apiKey` + `apiUrl` are specified.
|
|
1048
|
+
* @return `true` if tolgee is in dev mode.
|
|
1049
|
+
*/
|
|
1050
|
+
isDev: e.isDev,
|
|
1051
|
+
/**
|
|
1052
|
+
* Wraps translation if there is `Observer` plugin
|
|
1053
|
+
*/
|
|
1054
|
+
wrap: e.wrap,
|
|
1055
|
+
/**
|
|
1056
|
+
* Unwrap translation
|
|
1057
|
+
*/
|
|
1058
|
+
unwrap: e.unwrap,
|
|
1059
|
+
/**
|
|
1060
|
+
* Override creadentials passed on initialization.
|
|
1061
|
+
*
|
|
1062
|
+
* When called in running state, tolgee stops and runs again.
|
|
1063
|
+
*/
|
|
1064
|
+
overrideCredentials(r) {
|
|
1065
|
+
a(() => e.overrideCredentials(r));
|
|
1066
|
+
},
|
|
1067
|
+
/**
|
|
1068
|
+
* Add tolgee plugin after initialization.
|
|
1069
|
+
*
|
|
1070
|
+
* When called in running state, tolgee stops and runs again.
|
|
1071
|
+
*/
|
|
1072
|
+
addPlugin(r) {
|
|
1073
|
+
r && a(() => e.addPlugin(n, r));
|
|
1074
|
+
},
|
|
1075
|
+
/**
|
|
1076
|
+
* Updates options after instance creation. Extends existing options,
|
|
1077
|
+
* so it only changes the fields, that are listed.
|
|
1078
|
+
*
|
|
1079
|
+
* When called in running state, tolgee stops and runs again.
|
|
1080
|
+
*/
|
|
1081
|
+
updateOptions(r) {
|
|
1082
|
+
r && a(() => e.init(r));
|
|
1083
|
+
}
|
|
1084
|
+
});
|
|
1085
|
+
return n;
|
|
1086
|
+
}
|
|
1087
|
+
const or = () => {
|
|
1088
|
+
const t = {
|
|
1089
|
+
plugins: [],
|
|
1090
|
+
options: {}
|
|
1091
|
+
}, e = Object.freeze({
|
|
1092
|
+
use(a) {
|
|
1093
|
+
return t.plugins.push(a), e;
|
|
1094
|
+
},
|
|
1095
|
+
updateDefaults(a) {
|
|
1096
|
+
return t.options = Et(t.options, a), e;
|
|
1097
|
+
},
|
|
1098
|
+
init(a) {
|
|
1099
|
+
const n = ar(Et(t.options, a));
|
|
1100
|
+
return t.plugins.forEach(n.addPlugin), n;
|
|
1101
|
+
}
|
|
1102
|
+
});
|
|
1103
|
+
return e;
|
|
1104
|
+
}, An = 0, yt = 1, ir = 2;
|
|
1105
|
+
class sr extends Error {
|
|
1106
|
+
constructor(e, a, n) {
|
|
1107
|
+
let r, o = "";
|
|
1108
|
+
e === An ? r = "Empty parameter" : e === yt ? (r = "Unexpected character", o = "Did you forget to use FormatIcu to render ICU message syntax?") : r = "Unexpected end", super(`Tolgee parser: ${r} at ${a} in "${n}"` + (o ? `
|
|
1109
|
+
` + o : "")), this.code = e, this.index = a;
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
function Dt(t) {
|
|
1113
|
+
return /\s/.test(t);
|
|
1114
|
+
}
|
|
1115
|
+
const $ = 0, mt = 1, je = 2, He = 3, Be = 4, ur = /* @__PURE__ */ new Set([
|
|
1116
|
+
je,
|
|
1117
|
+
mt,
|
|
1118
|
+
$
|
|
1119
|
+
]), vt = "'", cr = /* @__PURE__ */ new Set(["{", "}", vt]), lr = (t) => /[0-9a-zA-Z_]/.test(t);
|
|
1120
|
+
function dr(t) {
|
|
1121
|
+
let e = $, a = "", n = "", r = "";
|
|
1122
|
+
const o = [], i = [];
|
|
1123
|
+
let u = 0;
|
|
1124
|
+
function c(w) {
|
|
1125
|
+
throw new sr(w, u, t);
|
|
1126
|
+
}
|
|
1127
|
+
const s = () => {
|
|
1128
|
+
o.push(a), a = "";
|
|
1129
|
+
}, v = () => {
|
|
1130
|
+
lr(r) || c(yt), n += r;
|
|
1131
|
+
}, b = () => {
|
|
1132
|
+
n === "" && c(An), i.push(n), n = "";
|
|
1133
|
+
};
|
|
1134
|
+
for (u = 0; u < t.length; u++)
|
|
1135
|
+
switch (r = t[u], e) {
|
|
1136
|
+
case $:
|
|
1137
|
+
r === vt ? (a += r, e = mt) : r === "{" ? (s(), e = He) : (a += r, e = $);
|
|
1138
|
+
break;
|
|
1139
|
+
case mt:
|
|
1140
|
+
cr.has(r) ? (a = a.slice(0, -1) + r, e = je) : (a += r, e = $);
|
|
1141
|
+
break;
|
|
1142
|
+
case je:
|
|
1143
|
+
r === vt ? e = $ : (a += r, e = je);
|
|
1144
|
+
break;
|
|
1145
|
+
case He:
|
|
1146
|
+
r === "}" ? (b(), e = $) : Dt(r) ? n !== "" && (b(), e = Be) : (v(), e = He);
|
|
1147
|
+
break;
|
|
1148
|
+
case Be:
|
|
1149
|
+
r == "}" ? e = $ : Dt(r) ? e = Be : c(yt);
|
|
1150
|
+
}
|
|
1151
|
+
return ur.has(e) || c(ir), s(), [o, i];
|
|
1152
|
+
}
|
|
1153
|
+
function fr(t, e) {
|
|
1154
|
+
const [a, n] = dr(t), r = [a[0]];
|
|
1155
|
+
for (let o = 1; o < a.length; o++) {
|
|
1156
|
+
const i = e == null ? void 0 : e[n[o - 1]];
|
|
1157
|
+
if (i === void 0)
|
|
1158
|
+
throw new Error(`Missing parameter "${n[o - 1]}" in "${t}"`);
|
|
1159
|
+
r.push(String(i)), r.push(a[o]);
|
|
1160
|
+
}
|
|
1161
|
+
return r.join("");
|
|
1162
|
+
}
|
|
1163
|
+
function gr() {
|
|
1164
|
+
return {
|
|
1165
|
+
format: ({ translation: t, params: e }) => fr(t, e)
|
|
1166
|
+
};
|
|
1167
|
+
}
|
|
1168
|
+
const pr = () => (t, e) => (e.setFinalFormatter(gr()), t);
|
|
1169
|
+
var Xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ct = {};
|
|
1170
|
+
(function(t) {
|
|
1171
|
+
function e(l, p) {
|
|
1172
|
+
var y;
|
|
1173
|
+
return l instanceof Buffer ? y = l : y = Buffer.from(l.buffer, l.byteOffset, l.byteLength), y.toString(p);
|
|
1174
|
+
}
|
|
1175
|
+
var a = function(l) {
|
|
1176
|
+
return Buffer.from(l);
|
|
1177
|
+
};
|
|
1178
|
+
function n(l) {
|
|
1179
|
+
for (var p = 0, y = Math.min(256 * 256, l.length + 1), h = new Uint16Array(y), S = [], A = 0; ; ) {
|
|
1180
|
+
var f = p < l.length;
|
|
1181
|
+
if (!f || A >= y - 1) {
|
|
1182
|
+
var P = h.subarray(0, A), L = P;
|
|
1183
|
+
if (S.push(String.fromCharCode.apply(null, L)), !f)
|
|
1184
|
+
return S.join("");
|
|
1185
|
+
l = l.subarray(p), p = 0, A = 0;
|
|
1186
|
+
}
|
|
1187
|
+
var j = l[p++];
|
|
1188
|
+
if ((j & 128) === 0)
|
|
1189
|
+
h[A++] = j;
|
|
1190
|
+
else if ((j & 224) === 192) {
|
|
1191
|
+
var N = l[p++] & 63;
|
|
1192
|
+
h[A++] = (j & 31) << 6 | N;
|
|
1193
|
+
} else if ((j & 240) === 224) {
|
|
1194
|
+
var N = l[p++] & 63, E = l[p++] & 63;
|
|
1195
|
+
h[A++] = (j & 31) << 12 | N << 6 | E;
|
|
1196
|
+
} else if ((j & 248) === 240) {
|
|
1197
|
+
var N = l[p++] & 63, E = l[p++] & 63, R = l[p++] & 63, D = (j & 7) << 18 | N << 12 | E << 6 | R;
|
|
1198
|
+
D > 65535 && (D -= 65536, h[A++] = D >>> 10 & 1023 | 55296, D = 56320 | D & 1023), h[A++] = D;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
function r(l) {
|
|
1203
|
+
for (var p = 0, y = l.length, h = 0, S = Math.max(32, y + (y >>> 1) + 7), A = new Uint8Array(S >>> 3 << 3); p < y; ) {
|
|
1204
|
+
var f = l.charCodeAt(p++);
|
|
1205
|
+
if (f >= 55296 && f <= 56319) {
|
|
1206
|
+
if (p < y) {
|
|
1207
|
+
var P = l.charCodeAt(p);
|
|
1208
|
+
(P & 64512) === 56320 && (++p, f = ((f & 1023) << 10) + (P & 1023) + 65536);
|
|
1209
|
+
}
|
|
1210
|
+
if (f >= 55296 && f <= 56319)
|
|
1211
|
+
continue;
|
|
1212
|
+
}
|
|
1213
|
+
if (h + 4 > A.length) {
|
|
1214
|
+
S += 8, S *= 1 + p / l.length * 2, S = S >>> 3 << 3;
|
|
1215
|
+
var L = new Uint8Array(S);
|
|
1216
|
+
L.set(A), A = L;
|
|
1217
|
+
}
|
|
1218
|
+
if ((f & 4294967168) === 0) {
|
|
1219
|
+
A[h++] = f;
|
|
1220
|
+
continue;
|
|
1221
|
+
} else if ((f & 4294965248) === 0)
|
|
1222
|
+
A[h++] = f >>> 6 & 31 | 192;
|
|
1223
|
+
else if ((f & 4294901760) === 0)
|
|
1224
|
+
A[h++] = f >>> 12 & 15 | 224, A[h++] = f >>> 6 & 63 | 128;
|
|
1225
|
+
else if ((f & 4292870144) === 0)
|
|
1226
|
+
A[h++] = f >>> 18 & 7 | 240, A[h++] = f >>> 12 & 63 | 128, A[h++] = f >>> 6 & 63 | 128;
|
|
1227
|
+
else
|
|
1228
|
+
continue;
|
|
1229
|
+
A[h++] = f & 63 | 128;
|
|
1230
|
+
}
|
|
1231
|
+
return A.slice ? A.slice(0, h) : A.subarray(0, h);
|
|
1232
|
+
}
|
|
1233
|
+
var o = "Failed to ", i = function(l, p, y) {
|
|
1234
|
+
if (l)
|
|
1235
|
+
throw new Error("".concat(o).concat(p, ": the '").concat(y, "' option is unsupported."));
|
|
1236
|
+
}, u = typeof Buffer == "function" && Buffer.from, c = u ? a : r;
|
|
1237
|
+
function s() {
|
|
1238
|
+
this.encoding = "utf-8";
|
|
1239
|
+
}
|
|
1240
|
+
s.prototype.encode = function(l, p) {
|
|
1241
|
+
return i(p && p.stream, "encode", "stream"), c(l);
|
|
1242
|
+
};
|
|
1243
|
+
function v(l) {
|
|
1244
|
+
var p;
|
|
1245
|
+
try {
|
|
1246
|
+
var y = new Blob([l], { type: "text/plain;charset=UTF-8" });
|
|
1247
|
+
p = URL.createObjectURL(y);
|
|
1248
|
+
var h = new XMLHttpRequest();
|
|
1249
|
+
return h.open("GET", p, !1), h.send(), h.responseText;
|
|
1250
|
+
} finally {
|
|
1251
|
+
p && URL.revokeObjectURL(p);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
var b = !u && typeof Blob == "function" && typeof URL == "function" && typeof URL.createObjectURL == "function", w = ["utf-8", "utf8", "unicode-1-1-utf-8"], O = n;
|
|
1255
|
+
u ? O = e : b && (O = function(l) {
|
|
1256
|
+
try {
|
|
1257
|
+
return v(l);
|
|
1258
|
+
} catch {
|
|
1259
|
+
return n(l);
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1262
|
+
var C = "construct 'TextDecoder'", g = "".concat(o, " ").concat(C, ": the ");
|
|
1263
|
+
function _(l, p) {
|
|
1264
|
+
i(p && p.fatal, C, "fatal"), l = l || "utf-8";
|
|
1265
|
+
var y;
|
|
1266
|
+
if (u ? y = Buffer.isEncoding(l) : y = w.indexOf(l.toLowerCase()) !== -1, !y)
|
|
1267
|
+
throw new RangeError("".concat(g, " encoding label provided ('").concat(l, "') is invalid."));
|
|
1268
|
+
this.encoding = l, this.fatal = !1, this.ignoreBOM = !1;
|
|
1269
|
+
}
|
|
1270
|
+
_.prototype.decode = function(l, p) {
|
|
1271
|
+
i(p && p.stream, "decode", "stream");
|
|
1272
|
+
var y;
|
|
1273
|
+
return l instanceof Uint8Array ? y = l : l.buffer instanceof ArrayBuffer ? y = new Uint8Array(l.buffer) : y = new Uint8Array(l), O(y, this.encoding);
|
|
1274
|
+
}, t.TextEncoder = t.TextEncoder || s, t.TextDecoder = t.TextDecoder || _;
|
|
1275
|
+
})(typeof window < "u" ? window : Xe);
|
|
1276
|
+
const _r = /* @__PURE__ */ Fn({
|
|
1277
|
+
__proto__: null,
|
|
1278
|
+
default: Ct
|
|
1279
|
+
}, [Ct]);
|
|
1280
|
+
(Tt = console.assert) == null || Tt.call(console, _r);
|
|
1281
|
+
function hr(t, e) {
|
|
1282
|
+
const a = (n) => {
|
|
1283
|
+
var r, o;
|
|
1284
|
+
t.includes((r = n.data) == null ? void 0 : r.type) && e((o = n.data) == null ? void 0 : o.data);
|
|
1285
|
+
};
|
|
1286
|
+
return window.addEventListener("message", a, !1), {
|
|
1287
|
+
unsubscribe() {
|
|
1288
|
+
window.removeEventListener("message", a);
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
function Er({
|
|
1293
|
+
message: t,
|
|
1294
|
+
recievingMessage: e,
|
|
1295
|
+
data: a,
|
|
1296
|
+
attempts: n = 1,
|
|
1297
|
+
timeout: r = 300
|
|
1298
|
+
}) {
|
|
1299
|
+
let o = !1;
|
|
1300
|
+
const i = () => new Promise((c, s) => {
|
|
1301
|
+
const v = hr(e, w);
|
|
1302
|
+
window.postMessage({ type: t, data: a }, window.origin);
|
|
1303
|
+
const b = setTimeout(C, r);
|
|
1304
|
+
function w(g) {
|
|
1305
|
+
clearTimeout(b), O(), c(g);
|
|
1306
|
+
}
|
|
1307
|
+
function O() {
|
|
1308
|
+
v.unsubscribe();
|
|
1309
|
+
}
|
|
1310
|
+
function C() {
|
|
1311
|
+
O(), s();
|
|
1312
|
+
}
|
|
1313
|
+
});
|
|
1314
|
+
return {
|
|
1315
|
+
cancel() {
|
|
1316
|
+
o = !0;
|
|
1317
|
+
},
|
|
1318
|
+
promise: (async () => {
|
|
1319
|
+
for (let c = 0; c < n; c++) {
|
|
1320
|
+
if (o)
|
|
1321
|
+
return new Promise(() => {
|
|
1322
|
+
});
|
|
1323
|
+
try {
|
|
1324
|
+
return await i();
|
|
1325
|
+
} catch {
|
|
1326
|
+
continue;
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
if (!o)
|
|
1330
|
+
throw `Didn't recieve ${e.join(" or ")} in time.`;
|
|
1331
|
+
return new Promise(() => {
|
|
1332
|
+
});
|
|
1333
|
+
})()
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
function yr() {
|
|
1337
|
+
let t;
|
|
1338
|
+
async function e(a) {
|
|
1339
|
+
t == null || t();
|
|
1340
|
+
const { cancel: n, promise: r } = Er({
|
|
1341
|
+
message: "TOLGEE_READY",
|
|
1342
|
+
recievingMessage: ["TOLGEE_PLUGIN_READY", "TOLGEE_PLUGIN_UPDATED"],
|
|
1343
|
+
data: a,
|
|
1344
|
+
attempts: 4
|
|
1345
|
+
});
|
|
1346
|
+
return t = n, r;
|
|
1347
|
+
}
|
|
1348
|
+
return {
|
|
1349
|
+
update: e
|
|
1350
|
+
};
|
|
1351
|
+
}
|
|
1352
|
+
const mr = "tolgee-in-context-tools.umd.min.js", vr = "@tolgee/in-context-tools", br = "InContextTools", Rr = "https://cdn.jsdelivr.net/npm";
|
|
1353
|
+
function Or(t) {
|
|
1354
|
+
return new Promise((e, a) => {
|
|
1355
|
+
const n = document.createElement("script");
|
|
1356
|
+
n.src = t, n.addEventListener("load", () => e()), n.addEventListener("error", (r) => a(r.error)), document.head.appendChild(n);
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
let Ge = null;
|
|
1360
|
+
function Tr(t) {
|
|
1361
|
+
return Ge || (Ge = Or(
|
|
1362
|
+
`${Rr}/@tolgee/web@${t}/dist/${mr}`
|
|
1363
|
+
).then(() => window[vr][br])), Ge;
|
|
1364
|
+
}
|
|
1365
|
+
const Pn = "__tolgee_apiKey", wn = "__tolgee_apiUrl";
|
|
1366
|
+
function Nt() {
|
|
1367
|
+
const t = sessionStorage.getItem(Pn) || void 0, e = sessionStorage.getItem(wn) || void 0;
|
|
1368
|
+
if (!(!t || !e))
|
|
1369
|
+
return {
|
|
1370
|
+
apiKey: t,
|
|
1371
|
+
apiUrl: e
|
|
1372
|
+
};
|
|
1373
|
+
}
|
|
1374
|
+
function Ar() {
|
|
1375
|
+
sessionStorage.removeItem(Pn), sessionStorage.removeItem(wn);
|
|
1376
|
+
}
|
|
1377
|
+
function Pr(t) {
|
|
1378
|
+
document.readyState !== "loading" ? Promise.resolve().then(() => {
|
|
1379
|
+
t();
|
|
1380
|
+
}) : document.addEventListener && document.addEventListener("DOMContentLoaded", t);
|
|
1381
|
+
}
|
|
1382
|
+
let Sn = () => (t) => t;
|
|
1383
|
+
const wr = () => {
|
|
1384
|
+
if (typeof window > "u")
|
|
1385
|
+
return !1;
|
|
1386
|
+
try {
|
|
1387
|
+
return typeof sessionStorage < "u" && sessionStorage;
|
|
1388
|
+
} catch (t) {
|
|
1389
|
+
return console.error("sessionStorage not available", t), !1;
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
wr() && (Sn = () => (t) => {
|
|
1393
|
+
const e = yr(), a = () => ({
|
|
1394
|
+
// prevent extension downloading ui library
|
|
1395
|
+
uiPresent: !0,
|
|
1396
|
+
uiVersion: void 0,
|
|
1397
|
+
// tolgee mode
|
|
1398
|
+
mode: t.isDev() ? "development" : "production",
|
|
1399
|
+
// pass credentials
|
|
1400
|
+
config: {
|
|
1401
|
+
apiUrl: t.getInitialOptions().apiUrl || "",
|
|
1402
|
+
apiKey: t.getInitialOptions().apiKey || ""
|
|
1403
|
+
}
|
|
1404
|
+
}), n = async () => {
|
|
1405
|
+
const o = await Tr(
|
|
1406
|
+
"prerelease"
|
|
1407
|
+
);
|
|
1408
|
+
return (i) => {
|
|
1409
|
+
const u = Nt();
|
|
1410
|
+
return i.addPlugin(o({ credentials: u })), i;
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
return t.on("running", ({ value: o }) => {
|
|
1414
|
+
o && Pr(() => {
|
|
1415
|
+
e.update(a()).catch(Ar);
|
|
1416
|
+
});
|
|
1417
|
+
}), Nt() && n().then((o) => {
|
|
1418
|
+
t.addPlugin(o);
|
|
1419
|
+
}).catch((o) => {
|
|
1420
|
+
console.error("Tolgee: Failed to load in-context tools"), console.error(o);
|
|
1421
|
+
}), t;
|
|
1422
|
+
});
|
|
1423
|
+
function Sr() {
|
|
1424
|
+
return or().use(Sn());
|
|
1425
|
+
}
|
|
1426
|
+
const Dr = () => (t) => t;
|
|
1427
|
+
let We;
|
|
1428
|
+
const Cr = () => (We || (We = ie.createContext(void 0)), We);
|
|
1429
|
+
let Nr;
|
|
1430
|
+
function jr() {
|
|
1431
|
+
return Nr;
|
|
1432
|
+
}
|
|
1433
|
+
const Lr = () => {
|
|
1434
|
+
const t = Cr(), e = qn(t) || jr();
|
|
1435
|
+
if (!e)
|
|
1436
|
+
throw new Error("Couldn't find tolgee instance, did you forgot to use `TolgeeProvider`?");
|
|
1437
|
+
return e;
|
|
1438
|
+
}, Ir = () => {
|
|
1439
|
+
const [t, e] = le(0), a = bt(() => {
|
|
1440
|
+
e((n) => n + 1);
|
|
1441
|
+
}, [e]);
|
|
1442
|
+
return { instance: t, rerender: a };
|
|
1443
|
+
}, Mr = (t, e) => {
|
|
1444
|
+
const { tolgee: a, options: n } = Lr(), r = mn(t), o = W(r).join(":"), i = Object.assign(Object.assign({}, n), e), { rerender: u, instance: c } = Ir(), s = gt([]);
|
|
1445
|
+
s.current = [];
|
|
1446
|
+
const v = a.isLoaded(r);
|
|
1447
|
+
pt(() => {
|
|
1448
|
+
const w = a.on("update", u);
|
|
1449
|
+
return () => {
|
|
1450
|
+
w.unsubscribe();
|
|
1451
|
+
};
|
|
1452
|
+
}, [o, a]), pt(() => (a.addActiveNs(r), () => a.removeActiveNs(r)), [o, a]);
|
|
1453
|
+
const b = bt((w) => {
|
|
1454
|
+
var O;
|
|
1455
|
+
const C = (O = w.ns) !== null && O !== void 0 ? O : r == null ? void 0 : r[0];
|
|
1456
|
+
return a.t(Object.assign(Object.assign({}, w), { ns: C }));
|
|
1457
|
+
}, [a, c]);
|
|
1458
|
+
if (i.useSuspense && !v)
|
|
1459
|
+
throw a.addActiveNs(r, !0);
|
|
1460
|
+
return { t: b, isLoading: !v };
|
|
1461
|
+
}, kr = (t, e) => {
|
|
1462
|
+
const { t: a, isLoading: n } = Mr(t, e);
|
|
1463
|
+
return { t: bt((...o) => {
|
|
1464
|
+
const i = Tn(...o);
|
|
1465
|
+
return a(i);
|
|
1466
|
+
}, [a]), isLoading: n };
|
|
1467
|
+
};
|
|
1468
|
+
var ge = { exports: {} }, ze = {}, Ye = {}, jt;
|
|
1469
|
+
function xr() {
|
|
1470
|
+
if (jt) return Ye;
|
|
1471
|
+
jt = 1;
|
|
1472
|
+
function t(e) {
|
|
1473
|
+
return e && e.__esModule ? e : { default: e };
|
|
1474
|
+
}
|
|
1475
|
+
return Ye._ = t, Ye;
|
|
1476
|
+
}
|
|
1477
|
+
var Lt;
|
|
1478
|
+
function Ur() {
|
|
1479
|
+
return Lt || (Lt = 1, (function(t) {
|
|
1480
|
+
"use client";
|
|
1481
|
+
Object.defineProperty(t, "__esModule", {
|
|
1482
|
+
value: !0
|
|
1483
|
+
});
|
|
1484
|
+
function e(s, v) {
|
|
1485
|
+
for (var b in v) Object.defineProperty(s, b, {
|
|
1486
|
+
enumerable: !0,
|
|
1487
|
+
get: v[b]
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
e(t, {
|
|
1491
|
+
AppRouterContext: function() {
|
|
1492
|
+
return r;
|
|
1493
|
+
},
|
|
1494
|
+
GlobalLayoutRouterContext: function() {
|
|
1495
|
+
return i;
|
|
1496
|
+
},
|
|
1497
|
+
LayoutRouterContext: function() {
|
|
1498
|
+
return o;
|
|
1499
|
+
},
|
|
1500
|
+
MissingSlotContext: function() {
|
|
1501
|
+
return c;
|
|
1502
|
+
},
|
|
1503
|
+
TemplateContext: function() {
|
|
1504
|
+
return u;
|
|
1505
|
+
}
|
|
1506
|
+
});
|
|
1507
|
+
const n = /* @__PURE__ */ (/* @__PURE__ */ xr())._(ie), r = n.default.createContext(null), o = n.default.createContext(null), i = n.default.createContext(null), u = n.default.createContext(null);
|
|
1508
|
+
process.env.NODE_ENV !== "production" && (r.displayName = "AppRouterContext", o.displayName = "LayoutRouterContext", i.displayName = "GlobalLayoutRouterContext", u.displayName = "TemplateContext");
|
|
1509
|
+
const c = n.default.createContext(/* @__PURE__ */ new Set());
|
|
1510
|
+
})(ze)), ze;
|
|
1511
|
+
}
|
|
1512
|
+
var Ke = {}, It;
|
|
1513
|
+
function qr() {
|
|
1514
|
+
return It || (It = 1, (function(t) {
|
|
1515
|
+
"use client";
|
|
1516
|
+
Object.defineProperty(t, "__esModule", {
|
|
1517
|
+
value: !0
|
|
1518
|
+
});
|
|
1519
|
+
function e(i, u) {
|
|
1520
|
+
for (var c in u) Object.defineProperty(i, c, {
|
|
1521
|
+
enumerable: !0,
|
|
1522
|
+
get: u[c]
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1525
|
+
e(t, {
|
|
1526
|
+
PathParamsContext: function() {
|
|
1527
|
+
return o;
|
|
1528
|
+
},
|
|
1529
|
+
PathnameContext: function() {
|
|
1530
|
+
return r;
|
|
1531
|
+
},
|
|
1532
|
+
SearchParamsContext: function() {
|
|
1533
|
+
return n;
|
|
1534
|
+
}
|
|
1535
|
+
});
|
|
1536
|
+
const a = ie, n = (0, a.createContext)(null), r = (0, a.createContext)(null), o = (0, a.createContext)(null);
|
|
1537
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "SearchParamsContext", r.displayName = "PathnameContext", o.displayName = "PathParamsContext");
|
|
1538
|
+
})(Ke)), Ke;
|
|
1539
|
+
}
|
|
1540
|
+
var pe = { exports: {} }, Mt;
|
|
1541
|
+
function Fr() {
|
|
1542
|
+
return Mt || (Mt = 1, (function(t, e) {
|
|
1543
|
+
Object.defineProperty(e, "__esModule", {
|
|
1544
|
+
value: !0
|
|
1545
|
+
}), Object.defineProperty(e, "getSegmentValue", {
|
|
1546
|
+
enumerable: !0,
|
|
1547
|
+
get: function() {
|
|
1548
|
+
return a;
|
|
1549
|
+
}
|
|
1550
|
+
});
|
|
1551
|
+
function a(n) {
|
|
1552
|
+
return Array.isArray(n) ? n[1] : n;
|
|
1553
|
+
}
|
|
1554
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
1555
|
+
})(pe, pe.exports)), pe.exports;
|
|
1556
|
+
}
|
|
1557
|
+
var Ve = {}, kt;
|
|
1558
|
+
function Hr() {
|
|
1559
|
+
return kt || (kt = 1, (function(t) {
|
|
1560
|
+
Object.defineProperty(t, "__esModule", {
|
|
1561
|
+
value: !0
|
|
1562
|
+
});
|
|
1563
|
+
function e(u, c) {
|
|
1564
|
+
for (var s in c) Object.defineProperty(u, s, {
|
|
1565
|
+
enumerable: !0,
|
|
1566
|
+
get: c[s]
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
e(t, {
|
|
1570
|
+
DEFAULT_SEGMENT_KEY: function() {
|
|
1571
|
+
return i;
|
|
1572
|
+
},
|
|
1573
|
+
PAGE_SEGMENT_KEY: function() {
|
|
1574
|
+
return o;
|
|
1575
|
+
},
|
|
1576
|
+
addSearchParamsIfPageSegment: function() {
|
|
1577
|
+
return r;
|
|
1578
|
+
},
|
|
1579
|
+
isGroupSegment: function() {
|
|
1580
|
+
return a;
|
|
1581
|
+
},
|
|
1582
|
+
isParallelRouteSegment: function() {
|
|
1583
|
+
return n;
|
|
1584
|
+
}
|
|
1585
|
+
});
|
|
1586
|
+
function a(u) {
|
|
1587
|
+
return u[0] === "(" && u.endsWith(")");
|
|
1588
|
+
}
|
|
1589
|
+
function n(u) {
|
|
1590
|
+
return u.startsWith("@") && u !== "@children";
|
|
1591
|
+
}
|
|
1592
|
+
function r(u, c) {
|
|
1593
|
+
if (u.includes(o)) {
|
|
1594
|
+
const v = JSON.stringify(c);
|
|
1595
|
+
return v !== "{}" ? o + "?" + v : o;
|
|
1596
|
+
}
|
|
1597
|
+
return u;
|
|
1598
|
+
}
|
|
1599
|
+
const o = "__PAGE__", i = "__DEFAULT__";
|
|
1600
|
+
})(Ve)), Ve;
|
|
1601
|
+
}
|
|
1602
|
+
var _e = { exports: {} }, he = { exports: {} }, Ee = { exports: {} }, xt;
|
|
1603
|
+
function Dn() {
|
|
1604
|
+
return xt || (xt = 1, (function(t, e) {
|
|
1605
|
+
Object.defineProperty(e, "__esModule", {
|
|
1606
|
+
value: !0
|
|
1607
|
+
}), Object.defineProperty(e, "RedirectStatusCode", {
|
|
1608
|
+
enumerable: !0,
|
|
1609
|
+
get: function() {
|
|
1610
|
+
return a;
|
|
1611
|
+
}
|
|
1612
|
+
});
|
|
1613
|
+
var a = /* @__PURE__ */ (function(n) {
|
|
1614
|
+
return n[n.SeeOther = 303] = "SeeOther", n[n.TemporaryRedirect = 307] = "TemporaryRedirect", n[n.PermanentRedirect = 308] = "PermanentRedirect", n;
|
|
1615
|
+
})({});
|
|
1616
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
1617
|
+
})(Ee, Ee.exports)), Ee.exports;
|
|
1618
|
+
}
|
|
1619
|
+
var ye = { exports: {} }, Ut;
|
|
1620
|
+
function Rt() {
|
|
1621
|
+
return Ut || (Ut = 1, (function(t, e) {
|
|
1622
|
+
Object.defineProperty(e, "__esModule", {
|
|
1623
|
+
value: !0
|
|
1624
|
+
});
|
|
1625
|
+
function a(u, c) {
|
|
1626
|
+
for (var s in c) Object.defineProperty(u, s, {
|
|
1627
|
+
enumerable: !0,
|
|
1628
|
+
get: c[s]
|
|
1629
|
+
});
|
|
1630
|
+
}
|
|
1631
|
+
a(e, {
|
|
1632
|
+
REDIRECT_ERROR_CODE: function() {
|
|
1633
|
+
return r;
|
|
1634
|
+
},
|
|
1635
|
+
RedirectType: function() {
|
|
1636
|
+
return o;
|
|
1637
|
+
},
|
|
1638
|
+
isRedirectError: function() {
|
|
1639
|
+
return i;
|
|
1640
|
+
}
|
|
1641
|
+
});
|
|
1642
|
+
const n = Dn(), r = "NEXT_REDIRECT";
|
|
1643
|
+
var o = /* @__PURE__ */ (function(u) {
|
|
1644
|
+
return u.push = "push", u.replace = "replace", u;
|
|
1645
|
+
})({});
|
|
1646
|
+
function i(u) {
|
|
1647
|
+
if (typeof u != "object" || u === null || !("digest" in u) || typeof u.digest != "string")
|
|
1648
|
+
return !1;
|
|
1649
|
+
const c = u.digest.split(";"), [s, v] = c, b = c.slice(2, -2).join(";"), w = c.at(-2), O = Number(w);
|
|
1650
|
+
return s === r && (v === "replace" || v === "push") && typeof b == "string" && !isNaN(O) && O in n.RedirectStatusCode;
|
|
1651
|
+
}
|
|
1652
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
1653
|
+
})(ye, ye.exports)), ye.exports;
|
|
1654
|
+
}
|
|
1655
|
+
var Qe = {}, Je = {}, Ze = {}, qt;
|
|
1656
|
+
function Ot() {
|
|
1657
|
+
return qt || (qt = 1, (function(t) {
|
|
1658
|
+
Object.defineProperty(t, "__esModule", {
|
|
1659
|
+
value: !0
|
|
1660
|
+
});
|
|
1661
|
+
function e(c, s) {
|
|
1662
|
+
for (var v in s) Object.defineProperty(c, v, {
|
|
1663
|
+
enumerable: !0,
|
|
1664
|
+
get: s[v]
|
|
1665
|
+
});
|
|
1666
|
+
}
|
|
1667
|
+
e(t, {
|
|
1668
|
+
bindSnapshot: function() {
|
|
1669
|
+
return i;
|
|
1670
|
+
},
|
|
1671
|
+
createAsyncLocalStorage: function() {
|
|
1672
|
+
return o;
|
|
1673
|
+
},
|
|
1674
|
+
createSnapshot: function() {
|
|
1675
|
+
return u;
|
|
1676
|
+
}
|
|
1677
|
+
});
|
|
1678
|
+
const a = Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
|
|
1679
|
+
value: "E504",
|
|
1680
|
+
enumerable: !1,
|
|
1681
|
+
configurable: !0
|
|
1682
|
+
});
|
|
1683
|
+
class n {
|
|
1684
|
+
disable() {
|
|
1685
|
+
throw a;
|
|
1686
|
+
}
|
|
1687
|
+
getStore() {
|
|
1688
|
+
}
|
|
1689
|
+
run() {
|
|
1690
|
+
throw a;
|
|
1691
|
+
}
|
|
1692
|
+
exit() {
|
|
1693
|
+
throw a;
|
|
1694
|
+
}
|
|
1695
|
+
enterWith() {
|
|
1696
|
+
throw a;
|
|
1697
|
+
}
|
|
1698
|
+
static bind(s) {
|
|
1699
|
+
return s;
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
const r = typeof globalThis < "u" && globalThis.AsyncLocalStorage;
|
|
1703
|
+
function o() {
|
|
1704
|
+
return r ? new r() : new n();
|
|
1705
|
+
}
|
|
1706
|
+
function i(c) {
|
|
1707
|
+
return r ? r.bind(c) : n.bind(c);
|
|
1708
|
+
}
|
|
1709
|
+
function u() {
|
|
1710
|
+
return r ? r.snapshot() : function(c, ...s) {
|
|
1711
|
+
return c(...s);
|
|
1712
|
+
};
|
|
1713
|
+
}
|
|
1714
|
+
})(Ze)), Ze;
|
|
1715
|
+
}
|
|
1716
|
+
var Ft;
|
|
1717
|
+
function Br() {
|
|
1718
|
+
return Ft || (Ft = 1, (function(t) {
|
|
1719
|
+
Object.defineProperty(t, "__esModule", {
|
|
1720
|
+
value: !0
|
|
1721
|
+
}), Object.defineProperty(t, "actionAsyncStorageInstance", {
|
|
1722
|
+
enumerable: !0,
|
|
1723
|
+
get: function() {
|
|
1724
|
+
return a;
|
|
1725
|
+
}
|
|
1726
|
+
});
|
|
1727
|
+
const a = (0, Ot().createAsyncLocalStorage)();
|
|
1728
|
+
})(Je)), Je;
|
|
1729
|
+
}
|
|
1730
|
+
var Ht;
|
|
1731
|
+
function Xr() {
|
|
1732
|
+
return Ht || (Ht = 1, (function(t) {
|
|
1733
|
+
Object.defineProperty(t, "__esModule", {
|
|
1734
|
+
value: !0
|
|
1735
|
+
}), Object.defineProperty(t, "actionAsyncStorage", {
|
|
1736
|
+
enumerable: !0,
|
|
1737
|
+
get: function() {
|
|
1738
|
+
return e.actionAsyncStorageInstance;
|
|
1739
|
+
}
|
|
1740
|
+
});
|
|
1741
|
+
const e = Br();
|
|
1742
|
+
})(Qe)), Qe;
|
|
1743
|
+
}
|
|
1744
|
+
var Bt;
|
|
1745
|
+
function Gr() {
|
|
1746
|
+
return Bt || (Bt = 1, (function(t, e) {
|
|
1747
|
+
Object.defineProperty(e, "__esModule", {
|
|
1748
|
+
value: !0
|
|
1749
|
+
});
|
|
1750
|
+
function a(w, O) {
|
|
1751
|
+
for (var C in O) Object.defineProperty(w, C, {
|
|
1752
|
+
enumerable: !0,
|
|
1753
|
+
get: O[C]
|
|
1754
|
+
});
|
|
1755
|
+
}
|
|
1756
|
+
a(e, {
|
|
1757
|
+
getRedirectError: function() {
|
|
1758
|
+
return i;
|
|
1759
|
+
},
|
|
1760
|
+
getRedirectStatusCodeFromError: function() {
|
|
1761
|
+
return b;
|
|
1762
|
+
},
|
|
1763
|
+
getRedirectTypeFromError: function() {
|
|
1764
|
+
return v;
|
|
1765
|
+
},
|
|
1766
|
+
getURLFromRedirectError: function() {
|
|
1767
|
+
return s;
|
|
1768
|
+
},
|
|
1769
|
+
permanentRedirect: function() {
|
|
1770
|
+
return c;
|
|
1771
|
+
},
|
|
1772
|
+
redirect: function() {
|
|
1773
|
+
return u;
|
|
1774
|
+
}
|
|
1775
|
+
});
|
|
1776
|
+
const n = Dn(), r = Rt(), o = typeof window > "u" ? Xr().actionAsyncStorage : void 0;
|
|
1777
|
+
function i(w, O, C) {
|
|
1778
|
+
C === void 0 && (C = n.RedirectStatusCode.TemporaryRedirect);
|
|
1779
|
+
const g = Object.defineProperty(new Error(r.REDIRECT_ERROR_CODE), "__NEXT_ERROR_CODE", {
|
|
1780
|
+
value: "E394",
|
|
1781
|
+
enumerable: !1,
|
|
1782
|
+
configurable: !0
|
|
1783
|
+
});
|
|
1784
|
+
return g.digest = r.REDIRECT_ERROR_CODE + ";" + O + ";" + w + ";" + C + ";", g;
|
|
1785
|
+
}
|
|
1786
|
+
function u(w, O) {
|
|
1787
|
+
var C;
|
|
1788
|
+
throw O ?? (O = !(o == null || (C = o.getStore()) == null) && C.isAction ? r.RedirectType.push : r.RedirectType.replace), i(w, O, n.RedirectStatusCode.TemporaryRedirect);
|
|
1789
|
+
}
|
|
1790
|
+
function c(w, O) {
|
|
1791
|
+
throw O === void 0 && (O = r.RedirectType.replace), i(w, O, n.RedirectStatusCode.PermanentRedirect);
|
|
1792
|
+
}
|
|
1793
|
+
function s(w) {
|
|
1794
|
+
return (0, r.isRedirectError)(w) ? w.digest.split(";").slice(2, -2).join(";") : null;
|
|
1795
|
+
}
|
|
1796
|
+
function v(w) {
|
|
1797
|
+
if (!(0, r.isRedirectError)(w))
|
|
1798
|
+
throw Object.defineProperty(new Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
|
|
1799
|
+
value: "E260",
|
|
1800
|
+
enumerable: !1,
|
|
1801
|
+
configurable: !0
|
|
1802
|
+
});
|
|
1803
|
+
return w.digest.split(";", 2)[1];
|
|
1804
|
+
}
|
|
1805
|
+
function b(w) {
|
|
1806
|
+
if (!(0, r.isRedirectError)(w))
|
|
1807
|
+
throw Object.defineProperty(new Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
|
|
1808
|
+
value: "E260",
|
|
1809
|
+
enumerable: !1,
|
|
1810
|
+
configurable: !0
|
|
1811
|
+
});
|
|
1812
|
+
return Number(w.digest.split(";").at(-2));
|
|
1813
|
+
}
|
|
1814
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
1815
|
+
})(he, he.exports)), he.exports;
|
|
1816
|
+
}
|
|
1817
|
+
var me = { exports: {} }, ve = { exports: {} }, Xt;
|
|
1818
|
+
function Ie() {
|
|
1819
|
+
return Xt || (Xt = 1, (function(t, e) {
|
|
1820
|
+
Object.defineProperty(e, "__esModule", {
|
|
1821
|
+
value: !0
|
|
1822
|
+
});
|
|
1823
|
+
function a(s, v) {
|
|
1824
|
+
for (var b in v) Object.defineProperty(s, b, {
|
|
1825
|
+
enumerable: !0,
|
|
1826
|
+
get: v[b]
|
|
1827
|
+
});
|
|
1828
|
+
}
|
|
1829
|
+
a(e, {
|
|
1830
|
+
HTTPAccessErrorStatus: function() {
|
|
1831
|
+
return n;
|
|
1832
|
+
},
|
|
1833
|
+
HTTP_ERROR_FALLBACK_ERROR_CODE: function() {
|
|
1834
|
+
return o;
|
|
1835
|
+
},
|
|
1836
|
+
getAccessFallbackErrorTypeByStatus: function() {
|
|
1837
|
+
return c;
|
|
1838
|
+
},
|
|
1839
|
+
getAccessFallbackHTTPStatus: function() {
|
|
1840
|
+
return u;
|
|
1841
|
+
},
|
|
1842
|
+
isHTTPAccessFallbackError: function() {
|
|
1843
|
+
return i;
|
|
1844
|
+
}
|
|
1845
|
+
});
|
|
1846
|
+
const n = {
|
|
1847
|
+
NOT_FOUND: 404,
|
|
1848
|
+
FORBIDDEN: 403,
|
|
1849
|
+
UNAUTHORIZED: 401
|
|
1850
|
+
}, r = new Set(Object.values(n)), o = "NEXT_HTTP_ERROR_FALLBACK";
|
|
1851
|
+
function i(s) {
|
|
1852
|
+
if (typeof s != "object" || s === null || !("digest" in s) || typeof s.digest != "string")
|
|
1853
|
+
return !1;
|
|
1854
|
+
const [v, b] = s.digest.split(";");
|
|
1855
|
+
return v === o && r.has(Number(b));
|
|
1856
|
+
}
|
|
1857
|
+
function u(s) {
|
|
1858
|
+
const v = s.digest.split(";")[1];
|
|
1859
|
+
return Number(v);
|
|
1860
|
+
}
|
|
1861
|
+
function c(s) {
|
|
1862
|
+
switch (s) {
|
|
1863
|
+
case 401:
|
|
1864
|
+
return "unauthorized";
|
|
1865
|
+
case 403:
|
|
1866
|
+
return "forbidden";
|
|
1867
|
+
case 404:
|
|
1868
|
+
return "not-found";
|
|
1869
|
+
default:
|
|
1870
|
+
return;
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
1874
|
+
})(ve, ve.exports)), ve.exports;
|
|
1875
|
+
}
|
|
1876
|
+
var Gt;
|
|
1877
|
+
function Wr() {
|
|
1878
|
+
return Gt || (Gt = 1, (function(t, e) {
|
|
1879
|
+
Object.defineProperty(e, "__esModule", {
|
|
1880
|
+
value: !0
|
|
1881
|
+
}), Object.defineProperty(e, "notFound", {
|
|
1882
|
+
enumerable: !0,
|
|
1883
|
+
get: function() {
|
|
1884
|
+
return r;
|
|
1885
|
+
}
|
|
1886
|
+
});
|
|
1887
|
+
const n = "" + Ie().HTTP_ERROR_FALLBACK_ERROR_CODE + ";404";
|
|
1888
|
+
function r() {
|
|
1889
|
+
const o = Object.defineProperty(new Error(n), "__NEXT_ERROR_CODE", {
|
|
1890
|
+
value: "E394",
|
|
1891
|
+
enumerable: !1,
|
|
1892
|
+
configurable: !0
|
|
1893
|
+
});
|
|
1894
|
+
throw o.digest = n, o;
|
|
1895
|
+
}
|
|
1896
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
1897
|
+
})(me, me.exports)), me.exports;
|
|
1898
|
+
}
|
|
1899
|
+
var be = { exports: {} }, Wt;
|
|
1900
|
+
function zr() {
|
|
1901
|
+
return Wt || (Wt = 1, (function(t, e) {
|
|
1902
|
+
Object.defineProperty(e, "__esModule", {
|
|
1903
|
+
value: !0
|
|
1904
|
+
}), Object.defineProperty(e, "forbidden", {
|
|
1905
|
+
enumerable: !0,
|
|
1906
|
+
get: function() {
|
|
1907
|
+
return r;
|
|
1908
|
+
}
|
|
1909
|
+
});
|
|
1910
|
+
const n = "" + Ie().HTTP_ERROR_FALLBACK_ERROR_CODE + ";403";
|
|
1911
|
+
function r() {
|
|
1912
|
+
if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS)
|
|
1913
|
+
throw Object.defineProperty(new Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."), "__NEXT_ERROR_CODE", {
|
|
1914
|
+
value: "E488",
|
|
1915
|
+
enumerable: !1,
|
|
1916
|
+
configurable: !0
|
|
1917
|
+
});
|
|
1918
|
+
const o = Object.defineProperty(new Error(n), "__NEXT_ERROR_CODE", {
|
|
1919
|
+
value: "E394",
|
|
1920
|
+
enumerable: !1,
|
|
1921
|
+
configurable: !0
|
|
1922
|
+
});
|
|
1923
|
+
throw o.digest = n, o;
|
|
1924
|
+
}
|
|
1925
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
1926
|
+
})(be, be.exports)), be.exports;
|
|
1927
|
+
}
|
|
1928
|
+
var Re = { exports: {} }, zt;
|
|
1929
|
+
function Yr() {
|
|
1930
|
+
return zt || (zt = 1, (function(t, e) {
|
|
1931
|
+
Object.defineProperty(e, "__esModule", {
|
|
1932
|
+
value: !0
|
|
1933
|
+
}), Object.defineProperty(e, "unauthorized", {
|
|
1934
|
+
enumerable: !0,
|
|
1935
|
+
get: function() {
|
|
1936
|
+
return r;
|
|
1937
|
+
}
|
|
1938
|
+
});
|
|
1939
|
+
const n = "" + Ie().HTTP_ERROR_FALLBACK_ERROR_CODE + ";401";
|
|
1940
|
+
function r() {
|
|
1941
|
+
if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS)
|
|
1942
|
+
throw Object.defineProperty(new Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."), "__NEXT_ERROR_CODE", {
|
|
1943
|
+
value: "E411",
|
|
1944
|
+
enumerable: !1,
|
|
1945
|
+
configurable: !0
|
|
1946
|
+
});
|
|
1947
|
+
const o = Object.defineProperty(new Error(n), "__NEXT_ERROR_CODE", {
|
|
1948
|
+
value: "E394",
|
|
1949
|
+
enumerable: !1,
|
|
1950
|
+
configurable: !0
|
|
1951
|
+
});
|
|
1952
|
+
throw o.digest = n, o;
|
|
1953
|
+
}
|
|
1954
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
1955
|
+
})(Re, Re.exports)), Re.exports;
|
|
1956
|
+
}
|
|
1957
|
+
var Oe = { exports: {} }, Te = { exports: {} }, $e = {}, Yt;
|
|
1958
|
+
function Cn() {
|
|
1959
|
+
return Yt || (Yt = 1, (function(t) {
|
|
1960
|
+
Object.defineProperty(t, "__esModule", {
|
|
1961
|
+
value: !0
|
|
1962
|
+
});
|
|
1963
|
+
function e(s, v) {
|
|
1964
|
+
for (var b in v) Object.defineProperty(s, b, {
|
|
1965
|
+
enumerable: !0,
|
|
1966
|
+
get: v[b]
|
|
1967
|
+
});
|
|
1968
|
+
}
|
|
1969
|
+
e(t, {
|
|
1970
|
+
isHangingPromiseRejectionError: function() {
|
|
1971
|
+
return a;
|
|
1972
|
+
},
|
|
1973
|
+
makeDevtoolsIOAwarePromise: function() {
|
|
1974
|
+
return c;
|
|
1975
|
+
},
|
|
1976
|
+
makeHangingPromise: function() {
|
|
1977
|
+
return i;
|
|
1978
|
+
}
|
|
1979
|
+
});
|
|
1980
|
+
function a(s) {
|
|
1981
|
+
return typeof s != "object" || s === null || !("digest" in s) ? !1 : s.digest === n;
|
|
1982
|
+
}
|
|
1983
|
+
const n = "HANGING_PROMISE_REJECTION";
|
|
1984
|
+
class r extends Error {
|
|
1985
|
+
constructor(v, b) {
|
|
1986
|
+
super(`During prerendering, ${b} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${b} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${v}".`), this.route = v, this.expression = b, this.digest = n;
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
const o = /* @__PURE__ */ new WeakMap();
|
|
1990
|
+
function i(s, v, b) {
|
|
1991
|
+
if (s.aborted)
|
|
1992
|
+
return Promise.reject(new r(v, b));
|
|
1993
|
+
{
|
|
1994
|
+
const w = new Promise((O, C) => {
|
|
1995
|
+
const g = C.bind(null, new r(v, b));
|
|
1996
|
+
let _ = o.get(s);
|
|
1997
|
+
if (_)
|
|
1998
|
+
_.push(g);
|
|
1999
|
+
else {
|
|
2000
|
+
const l = [
|
|
2001
|
+
g
|
|
2002
|
+
];
|
|
2003
|
+
o.set(s, l), s.addEventListener("abort", () => {
|
|
2004
|
+
for (let p = 0; p < l.length; p++)
|
|
2005
|
+
l[p]();
|
|
2006
|
+
}, {
|
|
2007
|
+
once: !0
|
|
2008
|
+
});
|
|
2009
|
+
}
|
|
2010
|
+
});
|
|
2011
|
+
return w.catch(u), w;
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
function u() {
|
|
2015
|
+
}
|
|
2016
|
+
function c(s) {
|
|
2017
|
+
return new Promise((v) => {
|
|
2018
|
+
setTimeout(() => {
|
|
2019
|
+
v(s);
|
|
2020
|
+
}, 0);
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
2023
|
+
})($e)), $e;
|
|
2024
|
+
}
|
|
2025
|
+
var et = {}, Kt;
|
|
2026
|
+
function Kr() {
|
|
2027
|
+
return Kt || (Kt = 1, (function(t) {
|
|
2028
|
+
Object.defineProperty(t, "__esModule", {
|
|
2029
|
+
value: !0
|
|
2030
|
+
}), Object.defineProperty(t, "isPostpone", {
|
|
2031
|
+
enumerable: !0,
|
|
2032
|
+
get: function() {
|
|
2033
|
+
return a;
|
|
2034
|
+
}
|
|
2035
|
+
});
|
|
2036
|
+
const e = Symbol.for("react.postpone");
|
|
2037
|
+
function a(n) {
|
|
2038
|
+
return typeof n == "object" && n !== null && n.$$typeof === e;
|
|
2039
|
+
}
|
|
2040
|
+
})(et)), et;
|
|
2041
|
+
}
|
|
2042
|
+
var tt = {}, Vt;
|
|
2043
|
+
function Me() {
|
|
2044
|
+
return Vt || (Vt = 1, (function(t) {
|
|
2045
|
+
Object.defineProperty(t, "__esModule", {
|
|
2046
|
+
value: !0
|
|
2047
|
+
});
|
|
2048
|
+
function e(o, i) {
|
|
2049
|
+
for (var u in i) Object.defineProperty(o, u, {
|
|
2050
|
+
enumerable: !0,
|
|
2051
|
+
get: i[u]
|
|
2052
|
+
});
|
|
2053
|
+
}
|
|
2054
|
+
e(t, {
|
|
2055
|
+
BailoutToCSRError: function() {
|
|
2056
|
+
return n;
|
|
2057
|
+
},
|
|
2058
|
+
isBailoutToCSRError: function() {
|
|
2059
|
+
return r;
|
|
2060
|
+
}
|
|
2061
|
+
});
|
|
2062
|
+
const a = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
|
|
2063
|
+
class n extends Error {
|
|
2064
|
+
constructor(i) {
|
|
2065
|
+
super("Bail out to client-side rendering: " + i), this.reason = i, this.digest = a;
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
function r(o) {
|
|
2069
|
+
return typeof o != "object" || o === null || !("digest" in o) ? !1 : o.digest === a;
|
|
2070
|
+
}
|
|
2071
|
+
})(tt)), tt;
|
|
2072
|
+
}
|
|
2073
|
+
var Ae = { exports: {} }, Qt;
|
|
2074
|
+
function Nn() {
|
|
2075
|
+
return Qt || (Qt = 1, (function(t, e) {
|
|
2076
|
+
Object.defineProperty(e, "__esModule", {
|
|
2077
|
+
value: !0
|
|
2078
|
+
}), Object.defineProperty(e, "isNextRouterError", {
|
|
2079
|
+
enumerable: !0,
|
|
2080
|
+
get: function() {
|
|
2081
|
+
return r;
|
|
2082
|
+
}
|
|
2083
|
+
});
|
|
2084
|
+
const a = Ie(), n = Rt();
|
|
2085
|
+
function r(o) {
|
|
2086
|
+
return (0, n.isRedirectError)(o) || (0, a.isHTTPAccessFallbackError)(o);
|
|
2087
|
+
}
|
|
2088
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
2089
|
+
})(Ae, Ae.exports)), Ae.exports;
|
|
2090
|
+
}
|
|
2091
|
+
var nt = {}, Pe = { exports: {} }, Jt;
|
|
2092
|
+
function jn() {
|
|
2093
|
+
return Jt || (Jt = 1, (function(t, e) {
|
|
2094
|
+
Object.defineProperty(e, "__esModule", {
|
|
2095
|
+
value: !0
|
|
2096
|
+
});
|
|
2097
|
+
function a(i, u) {
|
|
2098
|
+
for (var c in u) Object.defineProperty(i, c, {
|
|
2099
|
+
enumerable: !0,
|
|
2100
|
+
get: u[c]
|
|
2101
|
+
});
|
|
2102
|
+
}
|
|
2103
|
+
a(e, {
|
|
2104
|
+
DynamicServerError: function() {
|
|
2105
|
+
return r;
|
|
2106
|
+
},
|
|
2107
|
+
isDynamicServerError: function() {
|
|
2108
|
+
return o;
|
|
2109
|
+
}
|
|
2110
|
+
});
|
|
2111
|
+
const n = "DYNAMIC_SERVER_USAGE";
|
|
2112
|
+
class r extends Error {
|
|
2113
|
+
constructor(u) {
|
|
2114
|
+
super("Dynamic server usage: " + u), this.description = u, this.digest = n;
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
function o(i) {
|
|
2118
|
+
return typeof i != "object" || i === null || !("digest" in i) || typeof i.digest != "string" ? !1 : i.digest === n;
|
|
2119
|
+
}
|
|
2120
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
2121
|
+
})(Pe, Pe.exports)), Pe.exports;
|
|
2122
|
+
}
|
|
2123
|
+
var we = { exports: {} }, Zt;
|
|
2124
|
+
function Vr() {
|
|
2125
|
+
return Zt || (Zt = 1, (function(t, e) {
|
|
2126
|
+
Object.defineProperty(e, "__esModule", {
|
|
2127
|
+
value: !0
|
|
2128
|
+
});
|
|
2129
|
+
function a(i, u) {
|
|
2130
|
+
for (var c in u) Object.defineProperty(i, c, {
|
|
2131
|
+
enumerable: !0,
|
|
2132
|
+
get: u[c]
|
|
2133
|
+
});
|
|
2134
|
+
}
|
|
2135
|
+
a(e, {
|
|
2136
|
+
StaticGenBailoutError: function() {
|
|
2137
|
+
return r;
|
|
2138
|
+
},
|
|
2139
|
+
isStaticGenBailoutError: function() {
|
|
2140
|
+
return o;
|
|
2141
|
+
}
|
|
2142
|
+
});
|
|
2143
|
+
const n = "NEXT_STATIC_GEN_BAILOUT";
|
|
2144
|
+
class r extends Error {
|
|
2145
|
+
constructor(...u) {
|
|
2146
|
+
super(...u), this.code = n;
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
function o(i) {
|
|
2150
|
+
return typeof i != "object" || i === null || !("code" in i) ? !1 : i.code === n;
|
|
2151
|
+
}
|
|
2152
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
2153
|
+
})(we, we.exports)), we.exports;
|
|
2154
|
+
}
|
|
2155
|
+
var rt = {}, at = {}, $t;
|
|
2156
|
+
function Qr() {
|
|
2157
|
+
return $t || ($t = 1, (function(t) {
|
|
2158
|
+
Object.defineProperty(t, "__esModule", {
|
|
2159
|
+
value: !0
|
|
2160
|
+
}), Object.defineProperty(t, "workUnitAsyncStorageInstance", {
|
|
2161
|
+
enumerable: !0,
|
|
2162
|
+
get: function() {
|
|
2163
|
+
return a;
|
|
2164
|
+
}
|
|
2165
|
+
});
|
|
2166
|
+
const a = (0, Ot().createAsyncLocalStorage)();
|
|
2167
|
+
})(at)), at;
|
|
2168
|
+
}
|
|
2169
|
+
var Se = { exports: {} }, en;
|
|
2170
|
+
function Jr() {
|
|
2171
|
+
return en || (en = 1, (function(t, e) {
|
|
2172
|
+
Object.defineProperty(e, "__esModule", {
|
|
2173
|
+
value: !0
|
|
2174
|
+
});
|
|
2175
|
+
function a(h, S) {
|
|
2176
|
+
for (var A in S) Object.defineProperty(h, A, {
|
|
2177
|
+
enumerable: !0,
|
|
2178
|
+
get: S[A]
|
|
2179
|
+
});
|
|
2180
|
+
}
|
|
2181
|
+
a(e, {
|
|
2182
|
+
ACTION_HEADER: function() {
|
|
2183
|
+
return r;
|
|
2184
|
+
},
|
|
2185
|
+
FLIGHT_HEADERS: function() {
|
|
2186
|
+
return w;
|
|
2187
|
+
},
|
|
2188
|
+
NEXT_ACTION_NOT_FOUND_HEADER: function() {
|
|
2189
|
+
return y;
|
|
2190
|
+
},
|
|
2191
|
+
NEXT_DID_POSTPONE_HEADER: function() {
|
|
2192
|
+
return g;
|
|
2193
|
+
},
|
|
2194
|
+
NEXT_HMR_REFRESH_HASH_COOKIE: function() {
|
|
2195
|
+
return s;
|
|
2196
|
+
},
|
|
2197
|
+
NEXT_HMR_REFRESH_HEADER: function() {
|
|
2198
|
+
return c;
|
|
2199
|
+
},
|
|
2200
|
+
NEXT_IS_PRERENDER_HEADER: function() {
|
|
2201
|
+
return p;
|
|
2202
|
+
},
|
|
2203
|
+
NEXT_REWRITTEN_PATH_HEADER: function() {
|
|
2204
|
+
return _;
|
|
2205
|
+
},
|
|
2206
|
+
NEXT_REWRITTEN_QUERY_HEADER: function() {
|
|
2207
|
+
return l;
|
|
2208
|
+
},
|
|
2209
|
+
NEXT_ROUTER_PREFETCH_HEADER: function() {
|
|
2210
|
+
return i;
|
|
2211
|
+
},
|
|
2212
|
+
NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
|
|
2213
|
+
return u;
|
|
2214
|
+
},
|
|
2215
|
+
NEXT_ROUTER_STALE_TIME_HEADER: function() {
|
|
2216
|
+
return C;
|
|
2217
|
+
},
|
|
2218
|
+
NEXT_ROUTER_STATE_TREE_HEADER: function() {
|
|
2219
|
+
return o;
|
|
2220
|
+
},
|
|
2221
|
+
NEXT_RSC_UNION_QUERY: function() {
|
|
2222
|
+
return O;
|
|
2223
|
+
},
|
|
2224
|
+
NEXT_URL: function() {
|
|
2225
|
+
return v;
|
|
2226
|
+
},
|
|
2227
|
+
RSC_CONTENT_TYPE_HEADER: function() {
|
|
2228
|
+
return b;
|
|
2229
|
+
},
|
|
2230
|
+
RSC_HEADER: function() {
|
|
2231
|
+
return n;
|
|
2232
|
+
}
|
|
2233
|
+
});
|
|
2234
|
+
const n = "rsc", r = "next-action", o = "next-router-state-tree", i = "next-router-prefetch", u = "next-router-segment-prefetch", c = "next-hmr-refresh", s = "__next_hmr_refresh_hash__", v = "next-url", b = "text/x-component", w = [
|
|
2235
|
+
n,
|
|
2236
|
+
o,
|
|
2237
|
+
i,
|
|
2238
|
+
c,
|
|
2239
|
+
u
|
|
2240
|
+
], O = "_rsc", C = "x-nextjs-stale-time", g = "x-nextjs-postponed", _ = "x-nextjs-rewritten-path", l = "x-nextjs-rewritten-query", p = "x-nextjs-prerender", y = "x-nextjs-action-not-found";
|
|
2241
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
2242
|
+
})(Se, Se.exports)), Se.exports;
|
|
2243
|
+
}
|
|
2244
|
+
var ot = {}, tn;
|
|
2245
|
+
function Ln() {
|
|
2246
|
+
return tn || (tn = 1, (function(t) {
|
|
2247
|
+
Object.defineProperty(t, "__esModule", {
|
|
2248
|
+
value: !0
|
|
2249
|
+
}), Object.defineProperty(t, "InvariantError", {
|
|
2250
|
+
enumerable: !0,
|
|
2251
|
+
get: function() {
|
|
2252
|
+
return e;
|
|
2253
|
+
}
|
|
2254
|
+
});
|
|
2255
|
+
class e extends Error {
|
|
2256
|
+
constructor(n, r) {
|
|
2257
|
+
super("Invariant: " + (n.endsWith(".") ? n : n + ".") + " This is a bug in Next.js.", r), this.name = "InvariantError";
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
})(ot)), ot;
|
|
2261
|
+
}
|
|
2262
|
+
var nn;
|
|
2263
|
+
function In() {
|
|
2264
|
+
return nn || (nn = 1, (function(t) {
|
|
2265
|
+
Object.defineProperty(t, "__esModule", {
|
|
2266
|
+
value: !0
|
|
2267
|
+
});
|
|
2268
|
+
function e(g, _) {
|
|
2269
|
+
for (var l in _) Object.defineProperty(g, l, {
|
|
2270
|
+
enumerable: !0,
|
|
2271
|
+
get: _[l]
|
|
2272
|
+
});
|
|
2273
|
+
}
|
|
2274
|
+
e(t, {
|
|
2275
|
+
getCacheSignal: function() {
|
|
2276
|
+
return O;
|
|
2277
|
+
},
|
|
2278
|
+
getDraftModeProviderForCacheScope: function() {
|
|
2279
|
+
return w;
|
|
2280
|
+
},
|
|
2281
|
+
getHmrRefreshHash: function() {
|
|
2282
|
+
return s;
|
|
2283
|
+
},
|
|
2284
|
+
getPrerenderResumeDataCache: function() {
|
|
2285
|
+
return u;
|
|
2286
|
+
},
|
|
2287
|
+
getRenderResumeDataCache: function() {
|
|
2288
|
+
return c;
|
|
2289
|
+
},
|
|
2290
|
+
getRuntimeStagePromise: function() {
|
|
2291
|
+
return C;
|
|
2292
|
+
},
|
|
2293
|
+
getServerComponentsHmrCache: function() {
|
|
2294
|
+
return b;
|
|
2295
|
+
},
|
|
2296
|
+
isHmrRefresh: function() {
|
|
2297
|
+
return v;
|
|
2298
|
+
},
|
|
2299
|
+
throwForMissingRequestStore: function() {
|
|
2300
|
+
return o;
|
|
2301
|
+
},
|
|
2302
|
+
throwInvariantForMissingStore: function() {
|
|
2303
|
+
return i;
|
|
2304
|
+
},
|
|
2305
|
+
workUnitAsyncStorage: function() {
|
|
2306
|
+
return a.workUnitAsyncStorageInstance;
|
|
2307
|
+
}
|
|
2308
|
+
});
|
|
2309
|
+
const a = Qr(), n = Jr(), r = Ln();
|
|
2310
|
+
function o(g) {
|
|
2311
|
+
throw Object.defineProperty(new Error(`\`${g}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
|
|
2312
|
+
value: "E251",
|
|
2313
|
+
enumerable: !1,
|
|
2314
|
+
configurable: !0
|
|
2315
|
+
});
|
|
2316
|
+
}
|
|
2317
|
+
function i() {
|
|
2318
|
+
throw Object.defineProperty(new r.InvariantError("Expected workUnitAsyncStorage to have a store."), "__NEXT_ERROR_CODE", {
|
|
2319
|
+
value: "E696",
|
|
2320
|
+
enumerable: !1,
|
|
2321
|
+
configurable: !0
|
|
2322
|
+
});
|
|
2323
|
+
}
|
|
2324
|
+
function u(g) {
|
|
2325
|
+
switch (g.type) {
|
|
2326
|
+
case "prerender":
|
|
2327
|
+
case "prerender-runtime":
|
|
2328
|
+
case "prerender-ppr":
|
|
2329
|
+
return g.prerenderResumeDataCache;
|
|
2330
|
+
case "prerender-client":
|
|
2331
|
+
return g.prerenderResumeDataCache;
|
|
2332
|
+
case "prerender-legacy":
|
|
2333
|
+
case "request":
|
|
2334
|
+
case "cache":
|
|
2335
|
+
case "private-cache":
|
|
2336
|
+
case "unstable-cache":
|
|
2337
|
+
return null;
|
|
2338
|
+
default:
|
|
2339
|
+
return g;
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
function c(g) {
|
|
2343
|
+
switch (g.type) {
|
|
2344
|
+
case "request":
|
|
2345
|
+
return g.renderResumeDataCache;
|
|
2346
|
+
case "prerender":
|
|
2347
|
+
case "prerender-runtime":
|
|
2348
|
+
case "prerender-client":
|
|
2349
|
+
if (g.renderResumeDataCache)
|
|
2350
|
+
return g.renderResumeDataCache;
|
|
2351
|
+
// fallthrough
|
|
2352
|
+
case "prerender-ppr":
|
|
2353
|
+
return g.prerenderResumeDataCache;
|
|
2354
|
+
case "cache":
|
|
2355
|
+
case "private-cache":
|
|
2356
|
+
case "unstable-cache":
|
|
2357
|
+
case "prerender-legacy":
|
|
2358
|
+
return null;
|
|
2359
|
+
default:
|
|
2360
|
+
return g;
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
function s(g, _) {
|
|
2364
|
+
if (g.dev)
|
|
2365
|
+
switch (_.type) {
|
|
2366
|
+
case "cache":
|
|
2367
|
+
case "private-cache":
|
|
2368
|
+
case "prerender":
|
|
2369
|
+
case "prerender-runtime":
|
|
2370
|
+
return _.hmrRefreshHash;
|
|
2371
|
+
case "request":
|
|
2372
|
+
var l;
|
|
2373
|
+
return (l = _.cookies.get(n.NEXT_HMR_REFRESH_HASH_COOKIE)) == null ? void 0 : l.value;
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
function v(g, _) {
|
|
2377
|
+
if (g.dev)
|
|
2378
|
+
switch (_.type) {
|
|
2379
|
+
case "cache":
|
|
2380
|
+
case "private-cache":
|
|
2381
|
+
case "request":
|
|
2382
|
+
return _.isHmrRefresh ?? !1;
|
|
2383
|
+
}
|
|
2384
|
+
return !1;
|
|
2385
|
+
}
|
|
2386
|
+
function b(g, _) {
|
|
2387
|
+
if (g.dev)
|
|
2388
|
+
switch (_.type) {
|
|
2389
|
+
case "cache":
|
|
2390
|
+
case "private-cache":
|
|
2391
|
+
case "request":
|
|
2392
|
+
return _.serverComponentsHmrCache;
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
function w(g, _) {
|
|
2396
|
+
if (g.isDraftMode)
|
|
2397
|
+
switch (_.type) {
|
|
2398
|
+
case "cache":
|
|
2399
|
+
case "private-cache":
|
|
2400
|
+
case "unstable-cache":
|
|
2401
|
+
case "prerender-runtime":
|
|
2402
|
+
case "request":
|
|
2403
|
+
return _.draftMode;
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
function O(g) {
|
|
2407
|
+
switch (g.type) {
|
|
2408
|
+
case "prerender":
|
|
2409
|
+
case "prerender-client":
|
|
2410
|
+
case "prerender-runtime":
|
|
2411
|
+
return g.cacheSignal;
|
|
2412
|
+
case "prerender-ppr":
|
|
2413
|
+
case "prerender-legacy":
|
|
2414
|
+
case "request":
|
|
2415
|
+
case "cache":
|
|
2416
|
+
case "private-cache":
|
|
2417
|
+
case "unstable-cache":
|
|
2418
|
+
return null;
|
|
2419
|
+
default:
|
|
2420
|
+
return g;
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
function C(g) {
|
|
2424
|
+
switch (g.type) {
|
|
2425
|
+
case "prerender-runtime":
|
|
2426
|
+
case "private-cache":
|
|
2427
|
+
return g.runtimeStagePromise;
|
|
2428
|
+
case "prerender":
|
|
2429
|
+
case "prerender-client":
|
|
2430
|
+
case "prerender-ppr":
|
|
2431
|
+
case "prerender-legacy":
|
|
2432
|
+
case "request":
|
|
2433
|
+
case "cache":
|
|
2434
|
+
case "unstable-cache":
|
|
2435
|
+
return null;
|
|
2436
|
+
default:
|
|
2437
|
+
return g;
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
})(rt)), rt;
|
|
2441
|
+
}
|
|
2442
|
+
var it = {}, st = {}, rn;
|
|
2443
|
+
function Zr() {
|
|
2444
|
+
return rn || (rn = 1, (function(t) {
|
|
2445
|
+
Object.defineProperty(t, "__esModule", {
|
|
2446
|
+
value: !0
|
|
2447
|
+
}), Object.defineProperty(t, "workAsyncStorageInstance", {
|
|
2448
|
+
enumerable: !0,
|
|
2449
|
+
get: function() {
|
|
2450
|
+
return a;
|
|
2451
|
+
}
|
|
2452
|
+
});
|
|
2453
|
+
const a = (0, Ot().createAsyncLocalStorage)();
|
|
2454
|
+
})(st)), st;
|
|
2455
|
+
}
|
|
2456
|
+
var an;
|
|
2457
|
+
function Mn() {
|
|
2458
|
+
return an || (an = 1, (function(t) {
|
|
2459
|
+
Object.defineProperty(t, "__esModule", {
|
|
2460
|
+
value: !0
|
|
2461
|
+
}), Object.defineProperty(t, "workAsyncStorage", {
|
|
2462
|
+
enumerable: !0,
|
|
2463
|
+
get: function() {
|
|
2464
|
+
return e.workAsyncStorageInstance;
|
|
2465
|
+
}
|
|
2466
|
+
});
|
|
2467
|
+
const e = Zr();
|
|
2468
|
+
})(it)), it;
|
|
2469
|
+
}
|
|
2470
|
+
var ut = {}, on;
|
|
2471
|
+
function $r() {
|
|
2472
|
+
return on || (on = 1, (function(t) {
|
|
2473
|
+
Object.defineProperty(t, "__esModule", {
|
|
2474
|
+
value: !0
|
|
2475
|
+
});
|
|
2476
|
+
function e(i, u) {
|
|
2477
|
+
for (var c in u) Object.defineProperty(i, c, {
|
|
2478
|
+
enumerable: !0,
|
|
2479
|
+
get: u[c]
|
|
2480
|
+
});
|
|
2481
|
+
}
|
|
2482
|
+
e(t, {
|
|
2483
|
+
METADATA_BOUNDARY_NAME: function() {
|
|
2484
|
+
return a;
|
|
2485
|
+
},
|
|
2486
|
+
OUTLET_BOUNDARY_NAME: function() {
|
|
2487
|
+
return r;
|
|
2488
|
+
},
|
|
2489
|
+
ROOT_LAYOUT_BOUNDARY_NAME: function() {
|
|
2490
|
+
return o;
|
|
2491
|
+
},
|
|
2492
|
+
VIEWPORT_BOUNDARY_NAME: function() {
|
|
2493
|
+
return n;
|
|
2494
|
+
}
|
|
2495
|
+
});
|
|
2496
|
+
const a = "__next_metadata_boundary__", n = "__next_viewport_boundary__", r = "__next_outlet_boundary__", o = "__next_root_layout_boundary__";
|
|
2497
|
+
})(ut)), ut;
|
|
2498
|
+
}
|
|
2499
|
+
var ct = {}, sn;
|
|
2500
|
+
function ea() {
|
|
2501
|
+
return sn || (sn = 1, (function(t) {
|
|
2502
|
+
Object.defineProperty(t, "__esModule", {
|
|
2503
|
+
value: !0
|
|
2504
|
+
});
|
|
2505
|
+
function e(i, u) {
|
|
2506
|
+
for (var c in u) Object.defineProperty(i, c, {
|
|
2507
|
+
enumerable: !0,
|
|
2508
|
+
get: u[c]
|
|
2509
|
+
});
|
|
2510
|
+
}
|
|
2511
|
+
e(t, {
|
|
2512
|
+
atLeastOneTask: function() {
|
|
2513
|
+
return r;
|
|
2514
|
+
},
|
|
2515
|
+
scheduleImmediate: function() {
|
|
2516
|
+
return n;
|
|
2517
|
+
},
|
|
2518
|
+
scheduleOnNextTick: function() {
|
|
2519
|
+
return a;
|
|
2520
|
+
},
|
|
2521
|
+
waitAtLeastOneReactRenderTask: function() {
|
|
2522
|
+
return o;
|
|
2523
|
+
}
|
|
2524
|
+
});
|
|
2525
|
+
const a = (i) => {
|
|
2526
|
+
Promise.resolve().then(() => {
|
|
2527
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(i, 0) : process.nextTick(i);
|
|
2528
|
+
});
|
|
2529
|
+
}, n = (i) => {
|
|
2530
|
+
process.env.NEXT_RUNTIME === "edge" ? setTimeout(i, 0) : setImmediate(i);
|
|
2531
|
+
};
|
|
2532
|
+
function r() {
|
|
2533
|
+
return new Promise((i) => n(i));
|
|
2534
|
+
}
|
|
2535
|
+
function o() {
|
|
2536
|
+
return process.env.NEXT_RUNTIME === "edge" ? new Promise((i) => setTimeout(i, 0)) : new Promise((i) => setImmediate(i));
|
|
2537
|
+
}
|
|
2538
|
+
})(ct)), ct;
|
|
2539
|
+
}
|
|
2540
|
+
var un;
|
|
2541
|
+
function kn() {
|
|
2542
|
+
return un || (un = 1, (function(t) {
|
|
2543
|
+
Object.defineProperty(t, "__esModule", {
|
|
2544
|
+
value: !0
|
|
2545
|
+
});
|
|
2546
|
+
function e(d, m) {
|
|
2547
|
+
for (var T in m) Object.defineProperty(d, T, {
|
|
2548
|
+
enumerable: !0,
|
|
2549
|
+
get: m[T]
|
|
2550
|
+
});
|
|
2551
|
+
}
|
|
2552
|
+
e(t, {
|
|
2553
|
+
Postpone: function() {
|
|
2554
|
+
return j;
|
|
2555
|
+
},
|
|
2556
|
+
PreludeState: function() {
|
|
2557
|
+
return ke;
|
|
2558
|
+
},
|
|
2559
|
+
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
|
2560
|
+
return f;
|
|
2561
|
+
},
|
|
2562
|
+
abortOnSynchronousPlatformIOAccess: function() {
|
|
2563
|
+
return S;
|
|
2564
|
+
},
|
|
2565
|
+
accessedDynamicData: function() {
|
|
2566
|
+
return B;
|
|
2567
|
+
},
|
|
2568
|
+
annotateDynamicAccess: function() {
|
|
2569
|
+
return X;
|
|
2570
|
+
},
|
|
2571
|
+
consumeDynamicAccess: function() {
|
|
2572
|
+
return ee;
|
|
2573
|
+
},
|
|
2574
|
+
createDynamicTrackingState: function() {
|
|
2575
|
+
return C;
|
|
2576
|
+
},
|
|
2577
|
+
createDynamicValidationState: function() {
|
|
2578
|
+
return g;
|
|
2579
|
+
},
|
|
2580
|
+
createHangingInputAbortSignal: function() {
|
|
2581
|
+
return U;
|
|
2582
|
+
},
|
|
2583
|
+
createRenderInBrowserAbortSignal: function() {
|
|
2584
|
+
return te;
|
|
2585
|
+
},
|
|
2586
|
+
delayUntilRuntimeStage: function() {
|
|
2587
|
+
return Un;
|
|
2588
|
+
},
|
|
2589
|
+
formatDynamicAPIAccesses: function() {
|
|
2590
|
+
return z;
|
|
2591
|
+
},
|
|
2592
|
+
getFirstDynamicReason: function() {
|
|
2593
|
+
return _;
|
|
2594
|
+
},
|
|
2595
|
+
isDynamicPostpone: function() {
|
|
2596
|
+
return R;
|
|
2597
|
+
},
|
|
2598
|
+
isPrerenderInterruptedError: function() {
|
|
2599
|
+
return x;
|
|
2600
|
+
},
|
|
2601
|
+
logDisallowedDynamicError: function() {
|
|
2602
|
+
return xe;
|
|
2603
|
+
},
|
|
2604
|
+
markCurrentScopeAsDynamic: function() {
|
|
2605
|
+
return l;
|
|
2606
|
+
},
|
|
2607
|
+
postponeWithTracking: function() {
|
|
2608
|
+
return N;
|
|
2609
|
+
},
|
|
2610
|
+
throwIfDisallowedDynamic: function() {
|
|
2611
|
+
return xn;
|
|
2612
|
+
},
|
|
2613
|
+
throwToInterruptStaticGeneration: function() {
|
|
2614
|
+
return p;
|
|
2615
|
+
},
|
|
2616
|
+
trackAllowedDynamicAccess: function() {
|
|
2617
|
+
return re;
|
|
2618
|
+
},
|
|
2619
|
+
trackDynamicDataInDynamicRender: function() {
|
|
2620
|
+
return y;
|
|
2621
|
+
},
|
|
2622
|
+
trackSynchronousPlatformIOAccessInDev: function() {
|
|
2623
|
+
return A;
|
|
2624
|
+
},
|
|
2625
|
+
trackSynchronousRequestDataAccessInDev: function() {
|
|
2626
|
+
return L;
|
|
2627
|
+
},
|
|
2628
|
+
useDynamicRouteParams: function() {
|
|
2629
|
+
return k;
|
|
2630
|
+
},
|
|
2631
|
+
warnOnSyncDynamicError: function() {
|
|
2632
|
+
return P;
|
|
2633
|
+
}
|
|
2634
|
+
});
|
|
2635
|
+
const a = /* @__PURE__ */ w(ie), n = jn(), r = Vr(), o = In(), i = Mn(), u = Cn(), c = $r(), s = ea(), v = Me(), b = Ln();
|
|
2636
|
+
function w(d) {
|
|
2637
|
+
return d && d.__esModule ? d : {
|
|
2638
|
+
default: d
|
|
2639
|
+
};
|
|
2640
|
+
}
|
|
2641
|
+
const O = typeof a.default.unstable_postpone == "function";
|
|
2642
|
+
function C(d) {
|
|
2643
|
+
return {
|
|
2644
|
+
isDebugDynamicAccesses: d,
|
|
2645
|
+
dynamicAccesses: [],
|
|
2646
|
+
syncDynamicErrorWithStack: null
|
|
2647
|
+
};
|
|
2648
|
+
}
|
|
2649
|
+
function g() {
|
|
2650
|
+
return {
|
|
2651
|
+
hasSuspenseAboveBody: !1,
|
|
2652
|
+
hasDynamicMetadata: !1,
|
|
2653
|
+
hasDynamicViewport: !1,
|
|
2654
|
+
hasAllowedDynamic: !1,
|
|
2655
|
+
dynamicErrors: []
|
|
2656
|
+
};
|
|
2657
|
+
}
|
|
2658
|
+
function _(d) {
|
|
2659
|
+
var m;
|
|
2660
|
+
return (m = d.dynamicAccesses[0]) == null ? void 0 : m.expression;
|
|
2661
|
+
}
|
|
2662
|
+
function l(d, m, T) {
|
|
2663
|
+
if (m)
|
|
2664
|
+
switch (m.type) {
|
|
2665
|
+
case "cache":
|
|
2666
|
+
case "unstable-cache":
|
|
2667
|
+
return;
|
|
2668
|
+
case "private-cache":
|
|
2669
|
+
return;
|
|
2670
|
+
}
|
|
2671
|
+
if (!(d.forceDynamic || d.forceStatic)) {
|
|
2672
|
+
if (d.dynamicShouldError)
|
|
2673
|
+
throw Object.defineProperty(new r.StaticGenBailoutError(`Route ${d.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${T}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
|
2674
|
+
value: "E553",
|
|
2675
|
+
enumerable: !1,
|
|
2676
|
+
configurable: !0
|
|
2677
|
+
});
|
|
2678
|
+
if (m)
|
|
2679
|
+
switch (m.type) {
|
|
2680
|
+
case "prerender-ppr":
|
|
2681
|
+
return N(d.route, T, m.dynamicTracking);
|
|
2682
|
+
case "prerender-legacy":
|
|
2683
|
+
m.revalidate = 0;
|
|
2684
|
+
const I = Object.defineProperty(new n.DynamicServerError(`Route ${d.route} couldn't be rendered statically because it used ${T}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2685
|
+
value: "E550",
|
|
2686
|
+
enumerable: !1,
|
|
2687
|
+
configurable: !0
|
|
2688
|
+
});
|
|
2689
|
+
throw d.dynamicUsageDescription = T, d.dynamicUsageStack = I.stack, I;
|
|
2690
|
+
case "request":
|
|
2691
|
+
process.env.NODE_ENV !== "production" && (m.usedDynamic = !0);
|
|
2692
|
+
break;
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
function p(d, m, T) {
|
|
2697
|
+
const I = Object.defineProperty(new n.DynamicServerError(`Route ${m.route} couldn't be rendered statically because it used \`${d}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
|
2698
|
+
value: "E558",
|
|
2699
|
+
enumerable: !1,
|
|
2700
|
+
configurable: !0
|
|
2701
|
+
});
|
|
2702
|
+
throw T.revalidate = 0, m.dynamicUsageDescription = d, m.dynamicUsageStack = I.stack, I;
|
|
2703
|
+
}
|
|
2704
|
+
function y(d) {
|
|
2705
|
+
switch (d.type) {
|
|
2706
|
+
case "cache":
|
|
2707
|
+
case "unstable-cache":
|
|
2708
|
+
return;
|
|
2709
|
+
case "private-cache":
|
|
2710
|
+
return;
|
|
2711
|
+
case "prerender":
|
|
2712
|
+
case "prerender-runtime":
|
|
2713
|
+
case "prerender-legacy":
|
|
2714
|
+
case "prerender-ppr":
|
|
2715
|
+
case "prerender-client":
|
|
2716
|
+
break;
|
|
2717
|
+
case "request":
|
|
2718
|
+
process.env.NODE_ENV !== "production" && (d.usedDynamic = !0);
|
|
2719
|
+
break;
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
function h(d, m, T) {
|
|
2723
|
+
const I = `Route ${d} needs to bail out of prerendering at this point because it used ${m}.`, G = q(I);
|
|
2724
|
+
T.controller.abort(G);
|
|
2725
|
+
const H = T.dynamicTracking;
|
|
2726
|
+
H && H.dynamicAccesses.push({
|
|
2727
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
2728
|
+
// stack trace.
|
|
2729
|
+
stack: H.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2730
|
+
expression: m
|
|
2731
|
+
});
|
|
2732
|
+
}
|
|
2733
|
+
function S(d, m, T, I) {
|
|
2734
|
+
const G = I.dynamicTracking;
|
|
2735
|
+
h(d, m, I), G && G.syncDynamicErrorWithStack === null && (G.syncDynamicErrorWithStack = T);
|
|
2736
|
+
}
|
|
2737
|
+
function A(d) {
|
|
2738
|
+
d.prerenderPhase = !1;
|
|
2739
|
+
}
|
|
2740
|
+
function f(d, m, T, I) {
|
|
2741
|
+
if (I.controller.signal.aborted === !1) {
|
|
2742
|
+
h(d, m, I);
|
|
2743
|
+
const H = I.dynamicTracking;
|
|
2744
|
+
H && H.syncDynamicErrorWithStack === null && (H.syncDynamicErrorWithStack = T);
|
|
2745
|
+
}
|
|
2746
|
+
throw q(`Route ${d} needs to bail out of prerendering at this point because it used ${m}.`);
|
|
2747
|
+
}
|
|
2748
|
+
function P(d) {
|
|
2749
|
+
d.syncDynamicErrorWithStack && console.error(d.syncDynamicErrorWithStack);
|
|
2750
|
+
}
|
|
2751
|
+
const L = A;
|
|
2752
|
+
function j({ reason: d, route: m }) {
|
|
2753
|
+
const T = o.workUnitAsyncStorage.getStore(), I = T && T.type === "prerender-ppr" ? T.dynamicTracking : null;
|
|
2754
|
+
N(m, d, I);
|
|
2755
|
+
}
|
|
2756
|
+
function N(d, m, T) {
|
|
2757
|
+
se(), T && T.dynamicAccesses.push({
|
|
2758
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
2759
|
+
// stack trace.
|
|
2760
|
+
stack: T.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2761
|
+
expression: m
|
|
2762
|
+
}), a.default.unstable_postpone(E(d, m));
|
|
2763
|
+
}
|
|
2764
|
+
function E(d, m) {
|
|
2765
|
+
return `Route ${d} needs to bail out of prerendering at this point because it used ${m}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;
|
|
2766
|
+
}
|
|
2767
|
+
function R(d) {
|
|
2768
|
+
return typeof d == "object" && d !== null && typeof d.message == "string" ? D(d.message) : !1;
|
|
2769
|
+
}
|
|
2770
|
+
function D(d) {
|
|
2771
|
+
return d.includes("needs to bail out of prerendering at this point because it used") && d.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error");
|
|
2772
|
+
}
|
|
2773
|
+
if (D(E("%%%", "^^^")) === !1)
|
|
2774
|
+
throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
2775
|
+
value: "E296",
|
|
2776
|
+
enumerable: !1,
|
|
2777
|
+
configurable: !0
|
|
2778
|
+
});
|
|
2779
|
+
const M = "NEXT_PRERENDER_INTERRUPTED";
|
|
2780
|
+
function q(d) {
|
|
2781
|
+
const m = Object.defineProperty(new Error(d), "__NEXT_ERROR_CODE", {
|
|
2782
|
+
value: "E394",
|
|
2783
|
+
enumerable: !1,
|
|
2784
|
+
configurable: !0
|
|
2785
|
+
});
|
|
2786
|
+
return m.digest = M, m;
|
|
2787
|
+
}
|
|
2788
|
+
function x(d) {
|
|
2789
|
+
return typeof d == "object" && d !== null && d.digest === M && "name" in d && "message" in d && d instanceof Error;
|
|
2790
|
+
}
|
|
2791
|
+
function B(d) {
|
|
2792
|
+
return d.length > 0;
|
|
2793
|
+
}
|
|
2794
|
+
function ee(d, m) {
|
|
2795
|
+
return d.dynamicAccesses.push(...m.dynamicAccesses), d.dynamicAccesses;
|
|
2796
|
+
}
|
|
2797
|
+
function z(d) {
|
|
2798
|
+
return d.filter((m) => typeof m.stack == "string" && m.stack.length > 0).map(({ expression: m, stack: T }) => (T = T.split(`
|
|
2799
|
+
`).slice(4).filter((I) => !(I.includes("node_modules/next/") || I.includes(" (<anonymous>)") || I.includes(" (node:"))).join(`
|
|
2800
|
+
`), `Dynamic API Usage Debug - ${m}:
|
|
2801
|
+
${T}`));
|
|
2802
|
+
}
|
|
2803
|
+
function se() {
|
|
2804
|
+
if (!O)
|
|
2805
|
+
throw Object.defineProperty(new Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
|
|
2806
|
+
value: "E224",
|
|
2807
|
+
enumerable: !1,
|
|
2808
|
+
configurable: !0
|
|
2809
|
+
});
|
|
2810
|
+
}
|
|
2811
|
+
function te() {
|
|
2812
|
+
const d = new AbortController();
|
|
2813
|
+
return d.abort(Object.defineProperty(new v.BailoutToCSRError("Render in Browser"), "__NEXT_ERROR_CODE", {
|
|
2814
|
+
value: "E721",
|
|
2815
|
+
enumerable: !1,
|
|
2816
|
+
configurable: !0
|
|
2817
|
+
})), d.signal;
|
|
2818
|
+
}
|
|
2819
|
+
function U(d) {
|
|
2820
|
+
switch (d.type) {
|
|
2821
|
+
case "prerender":
|
|
2822
|
+
case "prerender-runtime":
|
|
2823
|
+
const m = new AbortController();
|
|
2824
|
+
if (d.cacheSignal)
|
|
2825
|
+
d.cacheSignal.inputReady().then(() => {
|
|
2826
|
+
m.abort();
|
|
2827
|
+
});
|
|
2828
|
+
else {
|
|
2829
|
+
const T = (0, o.getRuntimeStagePromise)(d);
|
|
2830
|
+
T ? T.then(() => (0, s.scheduleOnNextTick)(() => m.abort())) : (0, s.scheduleOnNextTick)(() => m.abort());
|
|
2831
|
+
}
|
|
2832
|
+
return m.signal;
|
|
2833
|
+
case "prerender-client":
|
|
2834
|
+
case "prerender-ppr":
|
|
2835
|
+
case "prerender-legacy":
|
|
2836
|
+
case "request":
|
|
2837
|
+
case "cache":
|
|
2838
|
+
case "private-cache":
|
|
2839
|
+
case "unstable-cache":
|
|
2840
|
+
return;
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
function X(d, m) {
|
|
2844
|
+
const T = m.dynamicTracking;
|
|
2845
|
+
T && T.dynamicAccesses.push({
|
|
2846
|
+
stack: T.isDebugDynamicAccesses ? new Error().stack : void 0,
|
|
2847
|
+
expression: d
|
|
2848
|
+
});
|
|
2849
|
+
}
|
|
2850
|
+
function k(d) {
|
|
2851
|
+
const m = i.workAsyncStorage.getStore(), T = o.workUnitAsyncStorage.getStore();
|
|
2852
|
+
if (m && T)
|
|
2853
|
+
switch (T.type) {
|
|
2854
|
+
case "prerender-client":
|
|
2855
|
+
case "prerender": {
|
|
2856
|
+
const I = T.fallbackRouteParams;
|
|
2857
|
+
I && I.size > 0 && a.default.use((0, u.makeHangingPromise)(T.renderSignal, m.route, d));
|
|
2858
|
+
break;
|
|
2859
|
+
}
|
|
2860
|
+
case "prerender-ppr": {
|
|
2861
|
+
const I = T.fallbackRouteParams;
|
|
2862
|
+
if (I && I.size > 0)
|
|
2863
|
+
return N(m.route, d, T.dynamicTracking);
|
|
2864
|
+
break;
|
|
2865
|
+
}
|
|
2866
|
+
case "prerender-runtime":
|
|
2867
|
+
throw Object.defineProperty(new b.InvariantError(`\`${d}\` was called during a runtime prerender. Next.js should be preventing ${d} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
2868
|
+
value: "E771",
|
|
2869
|
+
enumerable: !1,
|
|
2870
|
+
configurable: !0
|
|
2871
|
+
});
|
|
2872
|
+
case "cache":
|
|
2873
|
+
case "private-cache":
|
|
2874
|
+
throw Object.defineProperty(new b.InvariantError(`\`${d}\` was called inside a cache scope. Next.js should be preventing ${d} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
|
2875
|
+
value: "E745",
|
|
2876
|
+
enumerable: !1,
|
|
2877
|
+
configurable: !0
|
|
2878
|
+
});
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
const Y = /\n\s+at Suspense \(<anonymous>\)/, Q = "body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6", K = new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${Q}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${c.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`), F = new RegExp(`\\n\\s+at ${c.METADATA_BOUNDARY_NAME}[\\n\\s]`), ne = new RegExp(`\\n\\s+at ${c.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`), Z = new RegExp(`\\n\\s+at ${c.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
|
2882
|
+
function re(d, m, T, I) {
|
|
2883
|
+
if (!Z.test(m))
|
|
2884
|
+
if (F.test(m)) {
|
|
2885
|
+
T.hasDynamicMetadata = !0;
|
|
2886
|
+
return;
|
|
2887
|
+
} else if (ne.test(m)) {
|
|
2888
|
+
T.hasDynamicViewport = !0;
|
|
2889
|
+
return;
|
|
2890
|
+
} else if (K.test(m)) {
|
|
2891
|
+
T.hasAllowedDynamic = !0, T.hasSuspenseAboveBody = !0;
|
|
2892
|
+
return;
|
|
2893
|
+
} else if (Y.test(m)) {
|
|
2894
|
+
T.hasAllowedDynamic = !0;
|
|
2895
|
+
return;
|
|
2896
|
+
} else if (I.syncDynamicErrorWithStack) {
|
|
2897
|
+
T.dynamicErrors.push(I.syncDynamicErrorWithStack);
|
|
2898
|
+
return;
|
|
2899
|
+
} else {
|
|
2900
|
+
const G = `Route "${d.route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`, H = ae(G, m);
|
|
2901
|
+
T.dynamicErrors.push(H);
|
|
2902
|
+
return;
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
function ae(d, m) {
|
|
2906
|
+
const T = process.env.NODE_ENV !== "production" && a.default.captureOwnerStack ? a.default.captureOwnerStack() : null, I = Object.defineProperty(new Error(d), "__NEXT_ERROR_CODE", {
|
|
2907
|
+
value: "E394",
|
|
2908
|
+
enumerable: !1,
|
|
2909
|
+
configurable: !0
|
|
2910
|
+
});
|
|
2911
|
+
return I.stack = I.name + ": " + d + (T ?? m), I;
|
|
2912
|
+
}
|
|
2913
|
+
var ke = /* @__PURE__ */ (function(d) {
|
|
2914
|
+
return d[d.Full = 0] = "Full", d[d.Empty = 1] = "Empty", d[d.Errored = 2] = "Errored", d;
|
|
2915
|
+
})({});
|
|
2916
|
+
function xe(d, m) {
|
|
2917
|
+
console.error(m), d.dev || (d.hasReadableErrorStacks ? console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${d.route}" in your browser to investigate the error.`) : console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
2918
|
+
- Start the app in development mode by running \`next dev\`, then open "${d.route}" in your browser to investigate the error.
|
|
2919
|
+
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`));
|
|
2920
|
+
}
|
|
2921
|
+
function xn(d, m, T, I) {
|
|
2922
|
+
if (m !== 0) {
|
|
2923
|
+
if (T.hasSuspenseAboveBody)
|
|
2924
|
+
return;
|
|
2925
|
+
if (I.syncDynamicErrorWithStack)
|
|
2926
|
+
throw xe(d, I.syncDynamicErrorWithStack), new r.StaticGenBailoutError();
|
|
2927
|
+
const G = T.dynamicErrors;
|
|
2928
|
+
if (G.length > 0) {
|
|
2929
|
+
for (let H = 0; H < G.length; H++)
|
|
2930
|
+
xe(d, G[H]);
|
|
2931
|
+
throw new r.StaticGenBailoutError();
|
|
2932
|
+
}
|
|
2933
|
+
if (T.hasDynamicViewport)
|
|
2934
|
+
throw console.error(`Route "${d.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`), new r.StaticGenBailoutError();
|
|
2935
|
+
if (m === 1)
|
|
2936
|
+
throw console.error(`Route "${d.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`), new r.StaticGenBailoutError();
|
|
2937
|
+
} else if (T.hasAllowedDynamic === !1 && T.hasDynamicMetadata)
|
|
2938
|
+
throw console.error(`Route "${d.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`), new r.StaticGenBailoutError();
|
|
2939
|
+
}
|
|
2940
|
+
function Un(d, m) {
|
|
2941
|
+
return d.runtimeStagePromise ? d.runtimeStagePromise.then(() => m) : m;
|
|
2942
|
+
}
|
|
2943
|
+
})(nt)), nt;
|
|
2944
|
+
}
|
|
2945
|
+
var cn;
|
|
2946
|
+
function ta() {
|
|
2947
|
+
return cn || (cn = 1, (function(t, e) {
|
|
2948
|
+
Object.defineProperty(e, "__esModule", {
|
|
2949
|
+
value: !0
|
|
2950
|
+
}), Object.defineProperty(e, "unstable_rethrow", {
|
|
2951
|
+
enumerable: !0,
|
|
2952
|
+
get: function() {
|
|
2953
|
+
return c;
|
|
2954
|
+
}
|
|
2955
|
+
});
|
|
2956
|
+
const a = Cn(), n = Kr(), r = Me(), o = Nn(), i = kn(), u = jn();
|
|
2957
|
+
function c(s) {
|
|
2958
|
+
if ((0, o.isNextRouterError)(s) || (0, r.isBailoutToCSRError)(s) || (0, u.isDynamicServerError)(s) || (0, i.isDynamicPostpone)(s) || (0, n.isPostpone)(s) || (0, a.isHangingPromiseRejectionError)(s))
|
|
2959
|
+
throw s;
|
|
2960
|
+
s instanceof Error && "cause" in s && c(s.cause);
|
|
2961
|
+
}
|
|
2962
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
2963
|
+
})(Te, Te.exports)), Te.exports;
|
|
2964
|
+
}
|
|
2965
|
+
var De = { exports: {} }, ln;
|
|
2966
|
+
function na() {
|
|
2967
|
+
return ln || (ln = 1, (function(t, e) {
|
|
2968
|
+
Object.defineProperty(e, "__esModule", {
|
|
2969
|
+
value: !0
|
|
2970
|
+
}), Object.defineProperty(e, "unstable_rethrow", {
|
|
2971
|
+
enumerable: !0,
|
|
2972
|
+
get: function() {
|
|
2973
|
+
return r;
|
|
2974
|
+
}
|
|
2975
|
+
});
|
|
2976
|
+
const a = Me(), n = Nn();
|
|
2977
|
+
function r(o) {
|
|
2978
|
+
if ((0, n.isNextRouterError)(o) || (0, a.isBailoutToCSRError)(o))
|
|
2979
|
+
throw o;
|
|
2980
|
+
o instanceof Error && "cause" in o && r(o.cause);
|
|
2981
|
+
}
|
|
2982
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
2983
|
+
})(De, De.exports)), De.exports;
|
|
2984
|
+
}
|
|
2985
|
+
var dn;
|
|
2986
|
+
function ra() {
|
|
2987
|
+
return dn || (dn = 1, (function(t, e) {
|
|
2988
|
+
Object.defineProperty(e, "__esModule", {
|
|
2989
|
+
value: !0
|
|
2990
|
+
}), Object.defineProperty(e, "unstable_rethrow", {
|
|
2991
|
+
enumerable: !0,
|
|
2992
|
+
get: function() {
|
|
2993
|
+
return a;
|
|
2994
|
+
}
|
|
2995
|
+
});
|
|
2996
|
+
const a = typeof window > "u" ? ta().unstable_rethrow : na().unstable_rethrow;
|
|
2997
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
2998
|
+
})(Oe, Oe.exports)), Oe.exports;
|
|
2999
|
+
}
|
|
3000
|
+
var fn;
|
|
3001
|
+
function aa() {
|
|
3002
|
+
return fn || (fn = 1, (function(t, e) {
|
|
3003
|
+
Object.defineProperty(e, "__esModule", {
|
|
3004
|
+
value: !0
|
|
3005
|
+
});
|
|
3006
|
+
function a(w, O) {
|
|
3007
|
+
for (var C in O) Object.defineProperty(w, C, {
|
|
3008
|
+
enumerable: !0,
|
|
3009
|
+
get: O[C]
|
|
3010
|
+
});
|
|
3011
|
+
}
|
|
3012
|
+
a(e, {
|
|
3013
|
+
ReadonlyURLSearchParams: function() {
|
|
3014
|
+
return v;
|
|
3015
|
+
},
|
|
3016
|
+
RedirectType: function() {
|
|
3017
|
+
return r.RedirectType;
|
|
3018
|
+
},
|
|
3019
|
+
forbidden: function() {
|
|
3020
|
+
return i.forbidden;
|
|
3021
|
+
},
|
|
3022
|
+
notFound: function() {
|
|
3023
|
+
return o.notFound;
|
|
3024
|
+
},
|
|
3025
|
+
permanentRedirect: function() {
|
|
3026
|
+
return n.permanentRedirect;
|
|
3027
|
+
},
|
|
3028
|
+
redirect: function() {
|
|
3029
|
+
return n.redirect;
|
|
3030
|
+
},
|
|
3031
|
+
unauthorized: function() {
|
|
3032
|
+
return u.unauthorized;
|
|
3033
|
+
},
|
|
3034
|
+
unstable_isUnrecognizedActionError: function() {
|
|
3035
|
+
return b;
|
|
3036
|
+
},
|
|
3037
|
+
unstable_rethrow: function() {
|
|
3038
|
+
return c.unstable_rethrow;
|
|
3039
|
+
}
|
|
3040
|
+
});
|
|
3041
|
+
const n = Gr(), r = Rt(), o = Wr(), i = zr(), u = Yr(), c = ra();
|
|
3042
|
+
class s extends Error {
|
|
3043
|
+
constructor() {
|
|
3044
|
+
super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams");
|
|
3045
|
+
}
|
|
3046
|
+
}
|
|
3047
|
+
class v extends URLSearchParams {
|
|
3048
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
3049
|
+
append() {
|
|
3050
|
+
throw new s();
|
|
3051
|
+
}
|
|
3052
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
3053
|
+
delete() {
|
|
3054
|
+
throw new s();
|
|
3055
|
+
}
|
|
3056
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
3057
|
+
set() {
|
|
3058
|
+
throw new s();
|
|
3059
|
+
}
|
|
3060
|
+
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
|
|
3061
|
+
sort() {
|
|
3062
|
+
throw new s();
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
function b() {
|
|
3066
|
+
throw Object.defineProperty(new Error("`unstable_isUnrecognizedActionError` can only be used on the client."), "__NEXT_ERROR_CODE", {
|
|
3067
|
+
value: "E776",
|
|
3068
|
+
enumerable: !1,
|
|
3069
|
+
configurable: !0
|
|
3070
|
+
});
|
|
3071
|
+
}
|
|
3072
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3073
|
+
})(_e, _e.exports)), _e.exports;
|
|
3074
|
+
}
|
|
3075
|
+
var lt = {}, dt = {}, gn;
|
|
3076
|
+
function oa() {
|
|
3077
|
+
if (gn) return dt;
|
|
3078
|
+
gn = 1;
|
|
3079
|
+
function t(a) {
|
|
3080
|
+
if (typeof WeakMap != "function") return null;
|
|
3081
|
+
var n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
|
3082
|
+
return (t = function(o) {
|
|
3083
|
+
return o ? r : n;
|
|
3084
|
+
})(a);
|
|
3085
|
+
}
|
|
3086
|
+
function e(a, n) {
|
|
3087
|
+
if (!n && a && a.__esModule) return a;
|
|
3088
|
+
if (a === null || typeof a != "object" && typeof a != "function") return { default: a };
|
|
3089
|
+
var r = t(n);
|
|
3090
|
+
if (r && r.has(a)) return r.get(a);
|
|
3091
|
+
var o = { __proto__: null }, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3092
|
+
for (var u in a)
|
|
3093
|
+
if (u !== "default" && Object.prototype.hasOwnProperty.call(a, u)) {
|
|
3094
|
+
var c = i ? Object.getOwnPropertyDescriptor(a, u) : null;
|
|
3095
|
+
c && (c.get || c.set) ? Object.defineProperty(o, u, c) : o[u] = a[u];
|
|
3096
|
+
}
|
|
3097
|
+
return o.default = a, r && r.set(a, o), o;
|
|
3098
|
+
}
|
|
3099
|
+
return dt._ = e, dt;
|
|
3100
|
+
}
|
|
3101
|
+
var pn;
|
|
3102
|
+
function ia() {
|
|
3103
|
+
return pn || (pn = 1, (function(t) {
|
|
3104
|
+
"use client";
|
|
3105
|
+
Object.defineProperty(t, "__esModule", {
|
|
3106
|
+
value: !0
|
|
3107
|
+
});
|
|
3108
|
+
function e(i, u) {
|
|
3109
|
+
for (var c in u) Object.defineProperty(i, c, {
|
|
3110
|
+
enumerable: !0,
|
|
3111
|
+
get: u[c]
|
|
3112
|
+
});
|
|
3113
|
+
}
|
|
3114
|
+
e(t, {
|
|
3115
|
+
ServerInsertedHTMLContext: function() {
|
|
3116
|
+
return r;
|
|
3117
|
+
},
|
|
3118
|
+
useServerInsertedHTML: function() {
|
|
3119
|
+
return o;
|
|
3120
|
+
}
|
|
3121
|
+
});
|
|
3122
|
+
const n = /* @__PURE__ */ (/* @__PURE__ */ oa())._(ie), r = /* @__PURE__ */ n.default.createContext(null);
|
|
3123
|
+
function o(i) {
|
|
3124
|
+
const u = (0, n.useContext)(r);
|
|
3125
|
+
u && u(i);
|
|
3126
|
+
}
|
|
3127
|
+
})(lt)), lt;
|
|
3128
|
+
}
|
|
3129
|
+
var Ce = { exports: {} }, _n;
|
|
3130
|
+
function sa() {
|
|
3131
|
+
return _n || (_n = 1, (function(t, e) {
|
|
3132
|
+
Object.defineProperty(e, "__esModule", {
|
|
3133
|
+
value: !0
|
|
3134
|
+
});
|
|
3135
|
+
function a(o, i) {
|
|
3136
|
+
for (var u in i) Object.defineProperty(o, u, {
|
|
3137
|
+
enumerable: !0,
|
|
3138
|
+
get: i[u]
|
|
3139
|
+
});
|
|
3140
|
+
}
|
|
3141
|
+
a(e, {
|
|
3142
|
+
UnrecognizedActionError: function() {
|
|
3143
|
+
return n;
|
|
3144
|
+
},
|
|
3145
|
+
unstable_isUnrecognizedActionError: function() {
|
|
3146
|
+
return r;
|
|
3147
|
+
}
|
|
3148
|
+
});
|
|
3149
|
+
class n extends Error {
|
|
3150
|
+
constructor(...i) {
|
|
3151
|
+
super(...i), this.name = "UnrecognizedActionError";
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
function r(o) {
|
|
3155
|
+
return !!(o && typeof o == "object" && o instanceof n);
|
|
3156
|
+
}
|
|
3157
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3158
|
+
})(Ce, Ce.exports)), Ce.exports;
|
|
3159
|
+
}
|
|
3160
|
+
var Ne = { exports: {} }, hn;
|
|
3161
|
+
function ua() {
|
|
3162
|
+
return hn || (hn = 1, (function(t, e) {
|
|
3163
|
+
Object.defineProperty(e, "__esModule", {
|
|
3164
|
+
value: !0
|
|
3165
|
+
}), Object.defineProperty(e, "bailoutToClientRendering", {
|
|
3166
|
+
enumerable: !0,
|
|
3167
|
+
get: function() {
|
|
3168
|
+
return o;
|
|
3169
|
+
}
|
|
3170
|
+
});
|
|
3171
|
+
const a = Me(), n = Mn(), r = In();
|
|
3172
|
+
function o(i) {
|
|
3173
|
+
const u = n.workAsyncStorage.getStore();
|
|
3174
|
+
if (u != null && u.forceStatic) return;
|
|
3175
|
+
const c = r.workUnitAsyncStorage.getStore();
|
|
3176
|
+
if (c)
|
|
3177
|
+
switch (c.type) {
|
|
3178
|
+
case "prerender":
|
|
3179
|
+
case "prerender-runtime":
|
|
3180
|
+
case "prerender-client":
|
|
3181
|
+
case "prerender-ppr":
|
|
3182
|
+
case "prerender-legacy":
|
|
3183
|
+
throw Object.defineProperty(new a.BailoutToCSRError(i), "__NEXT_ERROR_CODE", {
|
|
3184
|
+
value: "E394",
|
|
3185
|
+
enumerable: !1,
|
|
3186
|
+
configurable: !0
|
|
3187
|
+
});
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3190
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3191
|
+
})(Ne, Ne.exports)), Ne.exports;
|
|
3192
|
+
}
|
|
3193
|
+
var En;
|
|
3194
|
+
function ca() {
|
|
3195
|
+
return En || (En = 1, (function(t, e) {
|
|
3196
|
+
Object.defineProperty(e, "__esModule", {
|
|
3197
|
+
value: !0
|
|
3198
|
+
});
|
|
3199
|
+
function a(y, h) {
|
|
3200
|
+
for (var S in h) Object.defineProperty(y, S, {
|
|
3201
|
+
enumerable: !0,
|
|
3202
|
+
get: h[S]
|
|
3203
|
+
});
|
|
3204
|
+
}
|
|
3205
|
+
a(e, {
|
|
3206
|
+
ReadonlyURLSearchParams: function() {
|
|
3207
|
+
return c.ReadonlyURLSearchParams;
|
|
3208
|
+
},
|
|
3209
|
+
RedirectType: function() {
|
|
3210
|
+
return c.RedirectType;
|
|
3211
|
+
},
|
|
3212
|
+
ServerInsertedHTMLContext: function() {
|
|
3213
|
+
return s.ServerInsertedHTMLContext;
|
|
3214
|
+
},
|
|
3215
|
+
forbidden: function() {
|
|
3216
|
+
return c.forbidden;
|
|
3217
|
+
},
|
|
3218
|
+
notFound: function() {
|
|
3219
|
+
return c.notFound;
|
|
3220
|
+
},
|
|
3221
|
+
permanentRedirect: function() {
|
|
3222
|
+
return c.permanentRedirect;
|
|
3223
|
+
},
|
|
3224
|
+
redirect: function() {
|
|
3225
|
+
return c.redirect;
|
|
3226
|
+
},
|
|
3227
|
+
unauthorized: function() {
|
|
3228
|
+
return c.unauthorized;
|
|
3229
|
+
},
|
|
3230
|
+
unstable_isUnrecognizedActionError: function() {
|
|
3231
|
+
return v.unstable_isUnrecognizedActionError;
|
|
3232
|
+
},
|
|
3233
|
+
unstable_rethrow: function() {
|
|
3234
|
+
return c.unstable_rethrow;
|
|
3235
|
+
},
|
|
3236
|
+
useParams: function() {
|
|
3237
|
+
return g;
|
|
3238
|
+
},
|
|
3239
|
+
usePathname: function() {
|
|
3240
|
+
return O;
|
|
3241
|
+
},
|
|
3242
|
+
useRouter: function() {
|
|
3243
|
+
return C;
|
|
3244
|
+
},
|
|
3245
|
+
useSearchParams: function() {
|
|
3246
|
+
return w;
|
|
3247
|
+
},
|
|
3248
|
+
useSelectedLayoutSegment: function() {
|
|
3249
|
+
return p;
|
|
3250
|
+
},
|
|
3251
|
+
useSelectedLayoutSegments: function() {
|
|
3252
|
+
return l;
|
|
3253
|
+
},
|
|
3254
|
+
useServerInsertedHTML: function() {
|
|
3255
|
+
return s.useServerInsertedHTML;
|
|
3256
|
+
}
|
|
3257
|
+
});
|
|
3258
|
+
const n = ie, r = Ur(), o = qr(), i = Fr(), u = Hr(), c = aa(), s = ia(), v = sa(), b = typeof window > "u" ? kn().useDynamicRouteParams : void 0;
|
|
3259
|
+
function w() {
|
|
3260
|
+
const y = (0, n.useContext)(o.SearchParamsContext), h = (0, n.useMemo)(() => y ? new c.ReadonlyURLSearchParams(y) : null, [
|
|
3261
|
+
y
|
|
3262
|
+
]);
|
|
3263
|
+
if (typeof window > "u") {
|
|
3264
|
+
const { bailoutToClientRendering: S } = ua();
|
|
3265
|
+
S("useSearchParams()");
|
|
3266
|
+
}
|
|
3267
|
+
return h;
|
|
3268
|
+
}
|
|
3269
|
+
function O() {
|
|
3270
|
+
return b == null || b("usePathname()"), (0, n.useContext)(o.PathnameContext);
|
|
3271
|
+
}
|
|
3272
|
+
function C() {
|
|
3273
|
+
const y = (0, n.useContext)(r.AppRouterContext);
|
|
3274
|
+
if (y === null)
|
|
3275
|
+
throw Object.defineProperty(new Error("invariant expected app router to be mounted"), "__NEXT_ERROR_CODE", {
|
|
3276
|
+
value: "E238",
|
|
3277
|
+
enumerable: !1,
|
|
3278
|
+
configurable: !0
|
|
3279
|
+
});
|
|
3280
|
+
return y;
|
|
3281
|
+
}
|
|
3282
|
+
function g() {
|
|
3283
|
+
return b == null || b("useParams()"), (0, n.useContext)(o.PathParamsContext);
|
|
3284
|
+
}
|
|
3285
|
+
function _(y, h, S, A) {
|
|
3286
|
+
S === void 0 && (S = !0), A === void 0 && (A = []);
|
|
3287
|
+
let f;
|
|
3288
|
+
if (S)
|
|
3289
|
+
f = y[1][h];
|
|
3290
|
+
else {
|
|
3291
|
+
const N = y[1];
|
|
3292
|
+
var P;
|
|
3293
|
+
f = (P = N.children) != null ? P : Object.values(N)[0];
|
|
3294
|
+
}
|
|
3295
|
+
if (!f) return A;
|
|
3296
|
+
const L = f[0];
|
|
3297
|
+
let j = (0, i.getSegmentValue)(L);
|
|
3298
|
+
return !j || j.startsWith(u.PAGE_SEGMENT_KEY) ? A : (A.push(j), _(f, h, !1, A));
|
|
3299
|
+
}
|
|
3300
|
+
function l(y) {
|
|
3301
|
+
y === void 0 && (y = "children"), b == null || b("useSelectedLayoutSegments()");
|
|
3302
|
+
const h = (0, n.useContext)(r.LayoutRouterContext);
|
|
3303
|
+
return h ? _(h.parentTree, y) : null;
|
|
3304
|
+
}
|
|
3305
|
+
function p(y) {
|
|
3306
|
+
y === void 0 && (y = "children"), b == null || b("useSelectedLayoutSegment()");
|
|
3307
|
+
const h = l(y);
|
|
3308
|
+
if (!h || h.length === 0)
|
|
3309
|
+
return null;
|
|
3310
|
+
const S = y === "children" ? h[0] : h[h.length - 1];
|
|
3311
|
+
return S === u.DEFAULT_SEGMENT_KEY ? null : S;
|
|
3312
|
+
}
|
|
3313
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3314
|
+
})(ge, ge.exports)), ge.exports;
|
|
3315
|
+
}
|
|
3316
|
+
var ft, yn;
|
|
3317
|
+
function la() {
|
|
3318
|
+
return yn || (yn = 1, ft = ca()), ft;
|
|
3319
|
+
}
|
|
3320
|
+
la();
|
|
3321
|
+
function da() {
|
|
3322
|
+
const t = process.env.NEXT_PUBLIC_TOLGEE_API_KEY, e = process.env.NEXT_PUBLIC_TOLGEE_API_URL;
|
|
3323
|
+
return Sr().use(pr()).use(Dr()).updateDefaults({
|
|
3324
|
+
apiKey: t,
|
|
3325
|
+
apiUrl: e
|
|
3326
|
+
});
|
|
3327
|
+
}
|
|
3328
|
+
da().init();
|
|
3329
|
+
const _a = ({
|
|
3330
|
+
text: t,
|
|
3331
|
+
maxLines: e = 2,
|
|
3332
|
+
expandText: a,
|
|
3333
|
+
collapseText: n,
|
|
3334
|
+
className: r,
|
|
3335
|
+
showToggle: o = !0,
|
|
3336
|
+
ellipsis: i = "...",
|
|
3337
|
+
loading: u,
|
|
3338
|
+
onExpand: c,
|
|
3339
|
+
onCollapse: s,
|
|
3340
|
+
expandSymbol: v,
|
|
3341
|
+
collapseSymbol: b,
|
|
3342
|
+
onEllipsis: w,
|
|
3343
|
+
suffix: O = "",
|
|
3344
|
+
expandable: C = !0,
|
|
3345
|
+
keyName: g = "common.expandableText"
|
|
22
3346
|
}) => {
|
|
23
|
-
const [
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
if (!
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
return isNaN(
|
|
30
|
-
},
|
|
31
|
-
const
|
|
3347
|
+
const [_, l] = le(!1), [p, y] = le(!1), [h, S] = le(!1), [A, f] = le(null), P = gt(null), L = gt(null), { t: j } = kr(), N = a || j(g, "expand");
|
|
3348
|
+
pt(() => {
|
|
3349
|
+
const R = P.current, D = L.current;
|
|
3350
|
+
if (!R || !D) return;
|
|
3351
|
+
const M = !o || !C ? "" : typeof v == "string" ? String(v) : a || j(g, "expand"), q = o && C && !_, x = (U) => {
|
|
3352
|
+
const X = getComputedStyle(U), k = parseFloat(X.lineHeight);
|
|
3353
|
+
return isNaN(k) ? parseFloat(X.fontSize) * 1.2 : k;
|
|
3354
|
+
}, B = () => {
|
|
3355
|
+
const U = getComputedStyle(R);
|
|
32
3356
|
[
|
|
33
3357
|
"font",
|
|
34
3358
|
"fontFamily",
|
|
@@ -42,51 +3366,51 @@ const le = ({
|
|
|
42
3366
|
"textTransform",
|
|
43
3367
|
"textIndent",
|
|
44
3368
|
"textRendering"
|
|
45
|
-
].forEach((
|
|
46
|
-
|
|
47
|
-
}),
|
|
48
|
-
},
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
return
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
59
|
-
const
|
|
60
|
-
let
|
|
61
|
-
for (;
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
const
|
|
66
|
-
|
|
3369
|
+
].forEach((k) => {
|
|
3370
|
+
D.style[k] = U[k];
|
|
3371
|
+
}), D.style.width = `${R.clientWidth}px`;
|
|
3372
|
+
}, ee = (U) => {
|
|
3373
|
+
const X = q && M ? `${U} ${M}` : U;
|
|
3374
|
+
D.textContent = X;
|
|
3375
|
+
const Y = x(D) * e;
|
|
3376
|
+
return D.scrollHeight <= Y + 0.5;
|
|
3377
|
+
}, z = () => {
|
|
3378
|
+
B();
|
|
3379
|
+
const U = `${t ?? ""}${O || ""}`, X = q && M ? `${U} ${M}` : U;
|
|
3380
|
+
D.textContent = X;
|
|
3381
|
+
const Y = x(D) * e, Q = D.scrollHeight > Y + 0.5;
|
|
3382
|
+
if (y((K) => (K !== Q && (w == null || w(Q)), Q)), Q && !_ && t) {
|
|
3383
|
+
const K = `${t}${O || ""}`;
|
|
3384
|
+
let F = 0, ne = K.length, Z = 0;
|
|
3385
|
+
for (; F <= ne; ) {
|
|
3386
|
+
const ae = Math.floor((F + ne) / 2), ke = `${K.slice(0, ae)}${i || ""}`;
|
|
3387
|
+
ee(ke) ? (Z = ae, F = ae + 1) : ne = ae - 1;
|
|
3388
|
+
}
|
|
3389
|
+
const re = `${K.slice(0, Z)}${i || ""}`;
|
|
3390
|
+
f(re);
|
|
67
3391
|
} else
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
return
|
|
72
|
-
clearTimeout(
|
|
3392
|
+
f(null);
|
|
3393
|
+
S(!0);
|
|
3394
|
+
}, se = setTimeout(z, 0), te = new ResizeObserver(z);
|
|
3395
|
+
return te.observe(R), te.observe(D), () => {
|
|
3396
|
+
clearTimeout(se), te.disconnect();
|
|
73
3397
|
};
|
|
74
|
-
}, [
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
return
|
|
3398
|
+
}, [t, e, O, i, _]);
|
|
3399
|
+
const E = () => {
|
|
3400
|
+
l((R) => {
|
|
3401
|
+
const D = !R;
|
|
3402
|
+
return D ? c == null || c() : s == null || s(), D;
|
|
79
3403
|
});
|
|
80
3404
|
};
|
|
81
|
-
return
|
|
82
|
-
(
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
3405
|
+
return t ? /* @__PURE__ */ Ue("div", { className: qe("relative", r), children: [
|
|
3406
|
+
(u || !h) && /* @__PURE__ */ Ue("div", { className: qe("animate-pulse"), children: [
|
|
3407
|
+
/* @__PURE__ */ ue("div", { className: "h-4 bg-module rounded w-full mb-2" }),
|
|
3408
|
+
/* @__PURE__ */ ue("div", { className: "h-4 bg-module rounded w-3/4" })
|
|
85
3409
|
] }),
|
|
86
|
-
/* @__PURE__ */
|
|
3410
|
+
/* @__PURE__ */ ue(
|
|
87
3411
|
"div",
|
|
88
3412
|
{
|
|
89
|
-
ref:
|
|
3413
|
+
ref: L,
|
|
90
3414
|
className: "absolute left-0 top-0 pointer-events-none whitespace-pre-wrap break-words",
|
|
91
3415
|
style: {
|
|
92
3416
|
visibility: "hidden",
|
|
@@ -99,37 +3423,37 @@ const le = ({
|
|
|
99
3423
|
}
|
|
100
3424
|
}
|
|
101
3425
|
),
|
|
102
|
-
/* @__PURE__ */
|
|
3426
|
+
/* @__PURE__ */ Ue(
|
|
103
3427
|
"div",
|
|
104
3428
|
{
|
|
105
|
-
ref:
|
|
106
|
-
className:
|
|
3429
|
+
ref: P,
|
|
3430
|
+
className: qe(
|
|
107
3431
|
"transition-all duration-300 ease-in-out align-justify space-x-1"
|
|
108
3432
|
),
|
|
109
3433
|
style: {
|
|
110
|
-
visibility:
|
|
111
|
-
position:
|
|
112
|
-
left:
|
|
113
|
-
top:
|
|
114
|
-
width:
|
|
115
|
-
display: !
|
|
116
|
-
WebkitLineClamp: !
|
|
3434
|
+
visibility: h ? "visible" : "hidden",
|
|
3435
|
+
position: h ? "static" : "absolute",
|
|
3436
|
+
left: h ? void 0 : 0,
|
|
3437
|
+
top: h ? void 0 : 0,
|
|
3438
|
+
width: h ? void 0 : "100%",
|
|
3439
|
+
display: !_ && p ? "-webkit-box" : "block",
|
|
3440
|
+
WebkitLineClamp: !_ && p ? e : "unset",
|
|
117
3441
|
WebkitBoxOrient: "vertical",
|
|
118
|
-
overflow: !
|
|
119
|
-
textOverflow: !
|
|
3442
|
+
overflow: !_ && p ? "hidden" : "visible",
|
|
3443
|
+
textOverflow: !_ && p ? "ellipsis" : "clip"
|
|
120
3444
|
},
|
|
121
|
-
"aria-label":
|
|
3445
|
+
"aria-label": t,
|
|
122
3446
|
children: [
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
|
|
3447
|
+
/* @__PURE__ */ ue("span", { children: !_ && p && A != null ? A : `${t ?? ""}${_ && O ? O : ""}` }),
|
|
3448
|
+
p && o && C && /* @__PURE__ */ ue(
|
|
125
3449
|
"button",
|
|
126
3450
|
{
|
|
127
3451
|
type: "button",
|
|
128
|
-
onClick:
|
|
3452
|
+
onClick: E,
|
|
129
3453
|
className: "text-primary hover:underline focus:outline-none text-sm",
|
|
130
|
-
"aria-expanded":
|
|
131
|
-
"aria-label":
|
|
132
|
-
children:
|
|
3454
|
+
"aria-expanded": _,
|
|
3455
|
+
"aria-label": _ ? n || j(g, "collapse") : N,
|
|
3456
|
+
children: _ ? b ?? n ?? j(g, "collapse") : v ?? N
|
|
133
3457
|
}
|
|
134
3458
|
)
|
|
135
3459
|
]
|
|
@@ -138,6 +3462,6 @@ const le = ({
|
|
|
138
3462
|
] }) : null;
|
|
139
3463
|
};
|
|
140
3464
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
3465
|
+
_a as ExpandableText,
|
|
3466
|
+
_a as default
|
|
143
3467
|
};
|