@ysolve/ocity-heritage-visualizer 1.0.3 → 1.0.4
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.
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
const
|
|
1
|
+
import { jsxs as V, jsx as w, Fragment as We } from "react/jsx-runtime";
|
|
2
|
+
import { useState as C, useRef as F, useEffect as j } from "react";
|
|
3
|
+
const zt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_DEBUG_MODE: "false", VITE_DEFAULT_IMAGE_URL: "https://o-city.org/assets/NO_AVAILABLE_IMG-4d02b370.png", VITE_ELEVENLABS_API_BASE: "https://api.elevenlabs.io/v1", VITE_ELEVENLABS_API_KEY: "sk_fcf711f6cba8630638aef7a7e1802559a1e9d029461b55cf", VITE_GOOGLE_TRANSLATE_BASE: "https://translate.googleapis.com/translate_a/single", VITE_IMAGE_BASE_URL: "https://eu2.contabostorage.com/7fb97413b6c243adb4347dafa02551a9:ocity/heritage/images/" };
|
|
4
4
|
function re(e, t = !0) {
|
|
5
|
-
const n =
|
|
5
|
+
const n = zt[e];
|
|
6
6
|
if (!n && t)
|
|
7
7
|
throw new Error(`❌ Missing required env variable: ${e}`);
|
|
8
8
|
return n ?? "";
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const ie = {
|
|
11
11
|
NODE_ENV: "production",
|
|
12
12
|
ELEVENLABS_API_BASE: re("VITE_ELEVENLABS_API_BASE"),
|
|
13
13
|
ELEVENLABS_API_KEY: re("VITE_ELEVENLABS_API_KEY"),
|
|
14
|
-
DEBUG_MODE: !
|
|
14
|
+
DEBUG_MODE: !1,
|
|
15
15
|
GOOGLE_TRANSLATE_BASE: re("VITE_GOOGLE_TRANSLATE_BASE"),
|
|
16
16
|
IMAGE_BASE_URL: re("VITE_IMAGE_BASE_URL"),
|
|
17
17
|
DEFAULT_IMAGE_URL: re("VITE_DEFAULT_IMAGE_URL")
|
|
18
18
|
};
|
|
19
|
-
async function
|
|
19
|
+
async function Vt(e, t) {
|
|
20
20
|
if (!e.trim()) return e;
|
|
21
21
|
try {
|
|
22
|
-
const n = `${
|
|
22
|
+
const n = `${ie.GOOGLE_TRANSLATE_BASE}?client=gtx&sl=auto&tl=${t}&dt=t&q=${encodeURIComponent(e)}`, r = await fetch(n);
|
|
23
23
|
if (!r.ok)
|
|
24
24
|
throw new Error(`Error en la traducción: ${r.status}`);
|
|
25
25
|
const s = await r.json();
|
|
@@ -33,29 +33,29 @@ function lt(e, t) {
|
|
|
33
33
|
return e.apply(t, arguments);
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
const { toString:
|
|
37
|
-
const n =
|
|
36
|
+
const { toString: Jt } = Object.prototype, { getPrototypeOf: Fe } = Object, { iterator: ye, toStringTag: ut } = Symbol, Ee = /* @__PURE__ */ ((e) => (t) => {
|
|
37
|
+
const n = Jt.call(t);
|
|
38
38
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
39
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
40
|
-
function
|
|
41
|
-
return e !== null && !
|
|
39
|
+
})(/* @__PURE__ */ Object.create(null)), M = (e) => (e = e.toLowerCase(), (t) => Ee(t) === e), be = (e) => (t) => typeof t === e, { isArray: ee } = Array, ae = be("undefined");
|
|
40
|
+
function Gt(e) {
|
|
41
|
+
return e !== null && !ae(e) && e.constructor !== null && !ae(e.constructor) && P(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
42
42
|
}
|
|
43
|
-
const dt =
|
|
44
|
-
function
|
|
43
|
+
const dt = M("ArrayBuffer");
|
|
44
|
+
function Wt(e) {
|
|
45
45
|
let t;
|
|
46
46
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && dt(e.buffer), t;
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const Kt = be("string"), P = be("function"), ft = be("number"), _e = (e) => e !== null && typeof e == "object", Xt = (e) => e === !0 || e === !1, pe = (e) => {
|
|
49
49
|
if (Ee(e) !== "object")
|
|
50
50
|
return !1;
|
|
51
51
|
const t = Fe(e);
|
|
52
52
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(ye in e);
|
|
53
|
-
},
|
|
53
|
+
}, Zt = M("Date"), Yt = M("File"), Qt = M("Blob"), en = M("FileList"), tn = (e) => _e(e) && P(e.pipe), nn = (e) => {
|
|
54
54
|
let t;
|
|
55
55
|
return e && (typeof FormData == "function" && e instanceof FormData || P(e.append) && ((t = Ee(e)) === "formdata" || // detect form-data instance
|
|
56
56
|
t === "object" && P(e.toString) && e.toString() === "[object FormData]"));
|
|
57
|
-
},
|
|
58
|
-
function
|
|
57
|
+
}, rn = M("URLSearchParams"), [sn, on, an, cn] = ["ReadableStream", "Request", "Response", "Headers"].map(M), ln = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
58
|
+
function ce(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
59
59
|
if (e === null || typeof e > "u")
|
|
60
60
|
return;
|
|
61
61
|
let r, s;
|
|
@@ -78,23 +78,23 @@ function pt(e, t) {
|
|
|
78
78
|
return s;
|
|
79
79
|
return null;
|
|
80
80
|
}
|
|
81
|
-
const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ht = (e) => !
|
|
81
|
+
const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ht = (e) => !ae(e) && e !== X;
|
|
82
82
|
function Ne() {
|
|
83
83
|
const { caseless: e } = ht(this) && this || {}, t = {}, n = (r, s) => {
|
|
84
84
|
const i = e && pt(t, s) || s;
|
|
85
|
-
|
|
85
|
+
pe(t[i]) && pe(r) ? t[i] = Ne(t[i], r) : pe(r) ? t[i] = Ne({}, r) : ee(r) ? t[i] = r.slice() : t[i] = r;
|
|
86
86
|
};
|
|
87
87
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
88
|
-
arguments[r] &&
|
|
88
|
+
arguments[r] && ce(arguments[r], n);
|
|
89
89
|
return t;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const un = (e, t, n, { allOwnKeys: r } = {}) => (ce(t, (s, i) => {
|
|
92
92
|
n && P(s) ? e[i] = lt(s, n) : e[i] = s;
|
|
93
|
-
}, { allOwnKeys: r }), e),
|
|
93
|
+
}, { allOwnKeys: r }), e), dn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), fn = (e, t, n, r) => {
|
|
94
94
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
95
95
|
value: t.prototype
|
|
96
96
|
}), n && Object.assign(e.prototype, n);
|
|
97
|
-
},
|
|
97
|
+
}, pn = (e, t, n, r) => {
|
|
98
98
|
let s, i, o;
|
|
99
99
|
const c = {};
|
|
100
100
|
if (t = t || {}, e == null) return t;
|
|
@@ -104,11 +104,11 @@ const fn = (e, t, n, { allOwnKeys: r } = {}) => (ae(t, (s, i) => {
|
|
|
104
104
|
e = n !== !1 && Fe(e);
|
|
105
105
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
106
106
|
return t;
|
|
107
|
-
},
|
|
107
|
+
}, hn = (e, t, n) => {
|
|
108
108
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
109
109
|
const r = e.indexOf(t, n);
|
|
110
110
|
return r !== -1 && r === n;
|
|
111
|
-
},
|
|
111
|
+
}, mn = (e) => {
|
|
112
112
|
if (!e) return null;
|
|
113
113
|
if (ee(e)) return e;
|
|
114
114
|
let t = e.length;
|
|
@@ -117,31 +117,31 @@ const fn = (e, t, n, { allOwnKeys: r } = {}) => (ae(t, (s, i) => {
|
|
|
117
117
|
for (; t-- > 0; )
|
|
118
118
|
n[t] = e[t];
|
|
119
119
|
return n;
|
|
120
|
-
},
|
|
120
|
+
}, gn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Fe(Uint8Array)), wn = (e, t) => {
|
|
121
121
|
const r = (e && e[ye]).call(e);
|
|
122
122
|
let s;
|
|
123
123
|
for (; (s = r.next()) && !s.done; ) {
|
|
124
124
|
const i = s.value;
|
|
125
125
|
t.call(e, i[0], i[1]);
|
|
126
126
|
}
|
|
127
|
-
},
|
|
127
|
+
}, yn = (e, t) => {
|
|
128
128
|
let n;
|
|
129
129
|
const r = [];
|
|
130
130
|
for (; (n = e.exec(t)) !== null; )
|
|
131
131
|
r.push(n);
|
|
132
132
|
return r;
|
|
133
|
-
},
|
|
133
|
+
}, En = M("HTMLFormElement"), bn = (e) => e.toLowerCase().replace(
|
|
134
134
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
135
135
|
function(n, r, s) {
|
|
136
136
|
return r.toUpperCase() + s;
|
|
137
137
|
}
|
|
138
|
-
), Ke = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
138
|
+
), Ke = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _n = M("RegExp"), mt = (e, t) => {
|
|
139
139
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
140
|
-
|
|
140
|
+
ce(n, (s, i) => {
|
|
141
141
|
let o;
|
|
142
142
|
(o = t(s, i, e)) !== !1 && (r[i] = o || s);
|
|
143
143
|
}), Object.defineProperties(e, r);
|
|
144
|
-
},
|
|
144
|
+
}, Sn = (e) => {
|
|
145
145
|
mt(e, (t, n) => {
|
|
146
146
|
if (P(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
147
147
|
return !1;
|
|
@@ -156,19 +156,19 @@ const fn = (e, t, n, { allOwnKeys: r } = {}) => (ae(t, (s, i) => {
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
|
-
},
|
|
159
|
+
}, Rn = (e, t) => {
|
|
160
160
|
const n = {}, r = (s) => {
|
|
161
161
|
s.forEach((i) => {
|
|
162
162
|
n[i] = !0;
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
165
|
return ee(e) ? r(e) : r(String(e).split(t)), n;
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
function
|
|
166
|
+
}, Tn = () => {
|
|
167
|
+
}, An = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
168
|
+
function On(e) {
|
|
169
169
|
return !!(e && P(e.append) && e[ut] === "FormData" && e[ye]);
|
|
170
170
|
}
|
|
171
|
-
const
|
|
171
|
+
const xn = (e) => {
|
|
172
172
|
const t = new Array(10), n = (r, s) => {
|
|
173
173
|
if (_e(r)) {
|
|
174
174
|
if (t.indexOf(r) >= 0)
|
|
@@ -176,85 +176,85 @@ const Ln = (e) => {
|
|
|
176
176
|
if (!("toJSON" in r)) {
|
|
177
177
|
t[s] = r;
|
|
178
178
|
const i = ee(r) ? [] : {};
|
|
179
|
-
return
|
|
179
|
+
return ce(r, (o, c) => {
|
|
180
180
|
const l = n(o, s + 1);
|
|
181
|
-
!
|
|
181
|
+
!ae(l) && (i[c] = l);
|
|
182
182
|
}), t[s] = void 0, i;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
return r;
|
|
186
186
|
};
|
|
187
187
|
return n(e, 0);
|
|
188
|
-
},
|
|
188
|
+
}, Ln = M("AsyncFunction"), Cn = (e) => e && (_e(e) || P(e)) && P(e.then) && P(e.catch), gt = ((e, t) => e ? setImmediate : t ? ((n, r) => (X.addEventListener("message", ({ source: s, data: i }) => {
|
|
189
189
|
s === X && i === n && r.length && r.shift()();
|
|
190
190
|
}, !1), (s) => {
|
|
191
191
|
r.push(s), X.postMessage(n, "*");
|
|
192
192
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
193
193
|
typeof setImmediate == "function",
|
|
194
194
|
P(X.postMessage)
|
|
195
|
-
), kn = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || gt,
|
|
195
|
+
), kn = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || gt, Nn = (e) => e != null && P(e[ye]), a = {
|
|
196
196
|
isArray: ee,
|
|
197
197
|
isArrayBuffer: dt,
|
|
198
|
-
isBuffer:
|
|
199
|
-
isFormData:
|
|
200
|
-
isArrayBufferView:
|
|
201
|
-
isString:
|
|
198
|
+
isBuffer: Gt,
|
|
199
|
+
isFormData: nn,
|
|
200
|
+
isArrayBufferView: Wt,
|
|
201
|
+
isString: Kt,
|
|
202
202
|
isNumber: ft,
|
|
203
|
-
isBoolean:
|
|
203
|
+
isBoolean: Xt,
|
|
204
204
|
isObject: _e,
|
|
205
|
-
isPlainObject:
|
|
206
|
-
isReadableStream:
|
|
207
|
-
isRequest:
|
|
208
|
-
isResponse:
|
|
209
|
-
isHeaders:
|
|
210
|
-
isUndefined:
|
|
211
|
-
isDate:
|
|
212
|
-
isFile:
|
|
213
|
-
isBlob:
|
|
214
|
-
isRegExp:
|
|
205
|
+
isPlainObject: pe,
|
|
206
|
+
isReadableStream: sn,
|
|
207
|
+
isRequest: on,
|
|
208
|
+
isResponse: an,
|
|
209
|
+
isHeaders: cn,
|
|
210
|
+
isUndefined: ae,
|
|
211
|
+
isDate: Zt,
|
|
212
|
+
isFile: Yt,
|
|
213
|
+
isBlob: Qt,
|
|
214
|
+
isRegExp: _n,
|
|
215
215
|
isFunction: P,
|
|
216
|
-
isStream:
|
|
217
|
-
isURLSearchParams:
|
|
218
|
-
isTypedArray:
|
|
219
|
-
isFileList:
|
|
220
|
-
forEach:
|
|
216
|
+
isStream: tn,
|
|
217
|
+
isURLSearchParams: rn,
|
|
218
|
+
isTypedArray: gn,
|
|
219
|
+
isFileList: en,
|
|
220
|
+
forEach: ce,
|
|
221
221
|
merge: Ne,
|
|
222
|
-
extend:
|
|
223
|
-
trim:
|
|
224
|
-
stripBOM:
|
|
225
|
-
inherits:
|
|
226
|
-
toFlatObject:
|
|
222
|
+
extend: un,
|
|
223
|
+
trim: ln,
|
|
224
|
+
stripBOM: dn,
|
|
225
|
+
inherits: fn,
|
|
226
|
+
toFlatObject: pn,
|
|
227
227
|
kindOf: Ee,
|
|
228
|
-
kindOfTest:
|
|
229
|
-
endsWith:
|
|
230
|
-
toArray:
|
|
231
|
-
forEachEntry:
|
|
232
|
-
matchAll:
|
|
233
|
-
isHTMLForm:
|
|
228
|
+
kindOfTest: M,
|
|
229
|
+
endsWith: hn,
|
|
230
|
+
toArray: mn,
|
|
231
|
+
forEachEntry: wn,
|
|
232
|
+
matchAll: yn,
|
|
233
|
+
isHTMLForm: En,
|
|
234
234
|
hasOwnProperty: Ke,
|
|
235
235
|
hasOwnProp: Ke,
|
|
236
236
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
237
237
|
reduceDescriptors: mt,
|
|
238
|
-
freezeMethods:
|
|
239
|
-
toObjectSet:
|
|
240
|
-
toCamelCase:
|
|
241
|
-
noop:
|
|
242
|
-
toFiniteNumber:
|
|
238
|
+
freezeMethods: Sn,
|
|
239
|
+
toObjectSet: Rn,
|
|
240
|
+
toCamelCase: bn,
|
|
241
|
+
noop: Tn,
|
|
242
|
+
toFiniteNumber: An,
|
|
243
243
|
findKey: pt,
|
|
244
244
|
global: X,
|
|
245
245
|
isContextDefined: ht,
|
|
246
|
-
isSpecCompliantForm:
|
|
247
|
-
toJSONObject:
|
|
248
|
-
isAsyncFn:
|
|
249
|
-
isThenable:
|
|
246
|
+
isSpecCompliantForm: On,
|
|
247
|
+
toJSONObject: xn,
|
|
248
|
+
isAsyncFn: Ln,
|
|
249
|
+
isThenable: Cn,
|
|
250
250
|
setImmediate: gt,
|
|
251
251
|
asap: kn,
|
|
252
|
-
isIterable:
|
|
252
|
+
isIterable: Nn
|
|
253
253
|
};
|
|
254
|
-
function
|
|
254
|
+
function g(e, t, n, r, s) {
|
|
255
255
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
256
256
|
}
|
|
257
|
-
a.inherits(
|
|
257
|
+
a.inherits(g, Error, {
|
|
258
258
|
toJSON: function() {
|
|
259
259
|
return {
|
|
260
260
|
// Standard
|
|
@@ -275,7 +275,7 @@ a.inherits(w, Error, {
|
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
|
-
const wt =
|
|
278
|
+
const wt = g.prototype, yt = {};
|
|
279
279
|
[
|
|
280
280
|
"ERR_BAD_OPTION_VALUE",
|
|
281
281
|
"ERR_BAD_OPTION",
|
|
@@ -293,16 +293,16 @@ const wt = w.prototype, yt = {};
|
|
|
293
293
|
].forEach((e) => {
|
|
294
294
|
yt[e] = { value: e };
|
|
295
295
|
});
|
|
296
|
-
Object.defineProperties(
|
|
296
|
+
Object.defineProperties(g, yt);
|
|
297
297
|
Object.defineProperty(wt, "isAxiosError", { value: !0 });
|
|
298
|
-
|
|
298
|
+
g.from = (e, t, n, r, s, i) => {
|
|
299
299
|
const o = Object.create(wt);
|
|
300
300
|
return a.toFlatObject(e, o, function(l) {
|
|
301
301
|
return l !== Error.prototype;
|
|
302
|
-
}, (c) => c !== "isAxiosError"),
|
|
302
|
+
}, (c) => c !== "isAxiosError"), g.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
|
|
303
303
|
};
|
|
304
|
-
const
|
|
305
|
-
function
|
|
304
|
+
const Bn = null;
|
|
305
|
+
function Be(e) {
|
|
306
306
|
return a.isPlainObject(e) || a.isArray(e);
|
|
307
307
|
}
|
|
308
308
|
function Et(e) {
|
|
@@ -313,10 +313,10 @@ function Xe(e, t, n) {
|
|
|
313
313
|
return s = Et(s), !n && i ? "[" + s + "]" : s;
|
|
314
314
|
}).join(n ? "." : "") : t;
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
return a.isArray(e) && !e.some(
|
|
316
|
+
function vn(e) {
|
|
317
|
+
return a.isArray(e) && !e.some(Be);
|
|
318
318
|
}
|
|
319
|
-
const
|
|
319
|
+
const Pn = a.toFlatObject(a, {}, null, function(t) {
|
|
320
320
|
return /^is[A-Z]/.test(t);
|
|
321
321
|
});
|
|
322
322
|
function Se(e, t, n) {
|
|
@@ -339,42 +339,42 @@ function Se(e, t, n) {
|
|
|
339
339
|
if (a.isBoolean(f))
|
|
340
340
|
return f.toString();
|
|
341
341
|
if (!l && a.isBlob(f))
|
|
342
|
-
throw new
|
|
342
|
+
throw new g("Blob is not supported. Use a Buffer instead.");
|
|
343
343
|
return a.isArrayBuffer(f) || a.isTypedArray(f) ? l && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
344
344
|
}
|
|
345
345
|
function d(f, m, h) {
|
|
346
|
-
let
|
|
346
|
+
let _ = f;
|
|
347
347
|
if (f && !h && typeof f == "object") {
|
|
348
348
|
if (a.endsWith(m, "{}"))
|
|
349
349
|
m = r ? m : m.slice(0, -2), f = JSON.stringify(f);
|
|
350
|
-
else if (a.isArray(f) &&
|
|
351
|
-
return m = Et(m),
|
|
352
|
-
!(a.isUndefined(
|
|
350
|
+
else if (a.isArray(f) && vn(f) || (a.isFileList(f) || a.endsWith(m, "[]")) && (_ = a.toArray(f)))
|
|
351
|
+
return m = Et(m), _.forEach(function(S, k) {
|
|
352
|
+
!(a.isUndefined(S) || S === null) && t.append(
|
|
353
353
|
// eslint-disable-next-line no-nested-ternary
|
|
354
|
-
o === !0 ? Xe([m],
|
|
355
|
-
u(
|
|
354
|
+
o === !0 ? Xe([m], k, i) : o === null ? m : m + "[]",
|
|
355
|
+
u(S)
|
|
356
356
|
);
|
|
357
357
|
}), !1;
|
|
358
358
|
}
|
|
359
|
-
return
|
|
359
|
+
return Be(f) ? !0 : (t.append(Xe(h, m, i), u(f)), !1);
|
|
360
360
|
}
|
|
361
|
-
const p = [], y = Object.assign(
|
|
361
|
+
const p = [], y = Object.assign(Pn, {
|
|
362
362
|
defaultVisitor: d,
|
|
363
363
|
convertValue: u,
|
|
364
|
-
isVisitable:
|
|
364
|
+
isVisitable: Be
|
|
365
365
|
});
|
|
366
366
|
function E(f, m) {
|
|
367
367
|
if (!a.isUndefined(f)) {
|
|
368
368
|
if (p.indexOf(f) !== -1)
|
|
369
369
|
throw Error("Circular reference detected in " + m.join("."));
|
|
370
|
-
p.push(f), a.forEach(f, function(
|
|
371
|
-
(!(a.isUndefined(
|
|
370
|
+
p.push(f), a.forEach(f, function(_, R) {
|
|
371
|
+
(!(a.isUndefined(_) || _ === null) && s.call(
|
|
372
372
|
t,
|
|
373
|
-
|
|
374
|
-
a.isString(
|
|
373
|
+
_,
|
|
374
|
+
a.isString(R) ? R.trim() : R,
|
|
375
375
|
m,
|
|
376
376
|
y
|
|
377
|
-
)) === !0 && E(
|
|
377
|
+
)) === !0 && E(_, m ? m.concat(R) : [R]);
|
|
378
378
|
}), p.pop();
|
|
379
379
|
}
|
|
380
380
|
}
|
|
@@ -411,13 +411,13 @@ bt.toString = function(t) {
|
|
|
411
411
|
return n(s[0]) + "=" + n(s[1]);
|
|
412
412
|
}, "").join("&");
|
|
413
413
|
};
|
|
414
|
-
function
|
|
414
|
+
function Un(e) {
|
|
415
415
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
416
416
|
}
|
|
417
417
|
function _t(e, t, n) {
|
|
418
418
|
if (!t)
|
|
419
419
|
return e;
|
|
420
|
-
const r = n && n.encode ||
|
|
420
|
+
const r = n && n.encode || Un;
|
|
421
421
|
a.isFunction(n) && (n = {
|
|
422
422
|
serialize: n
|
|
423
423
|
});
|
|
@@ -487,37 +487,37 @@ const St = {
|
|
|
487
487
|
silentJSONParsing: !0,
|
|
488
488
|
forcedJSONParsing: !0,
|
|
489
489
|
clarifyTimeoutError: !1
|
|
490
|
-
},
|
|
490
|
+
}, In = typeof URLSearchParams < "u" ? URLSearchParams : De, Fn = typeof FormData < "u" ? FormData : null, Dn = typeof Blob < "u" ? Blob : null, jn = {
|
|
491
491
|
isBrowser: !0,
|
|
492
492
|
classes: {
|
|
493
|
-
URLSearchParams:
|
|
494
|
-
FormData:
|
|
495
|
-
Blob:
|
|
493
|
+
URLSearchParams: In,
|
|
494
|
+
FormData: Fn,
|
|
495
|
+
Blob: Dn
|
|
496
496
|
},
|
|
497
497
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
498
|
-
}, je = typeof window < "u" && typeof document < "u",
|
|
499
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
498
|
+
}, je = typeof window < "u" && typeof document < "u", ve = typeof navigator == "object" && navigator || void 0, Mn = je && (!ve || ["ReactNative", "NativeScript", "NS"].indexOf(ve.product) < 0), qn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
499
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $n = je && window.location.href || "http://localhost", Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
500
500
|
__proto__: null,
|
|
501
501
|
hasBrowserEnv: je,
|
|
502
|
-
hasStandardBrowserEnv:
|
|
503
|
-
hasStandardBrowserWebWorkerEnv:
|
|
504
|
-
navigator:
|
|
505
|
-
origin:
|
|
506
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
507
|
-
...
|
|
508
|
-
...
|
|
502
|
+
hasStandardBrowserEnv: Mn,
|
|
503
|
+
hasStandardBrowserWebWorkerEnv: qn,
|
|
504
|
+
navigator: ve,
|
|
505
|
+
origin: $n
|
|
506
|
+
}, Symbol.toStringTag, { value: "Module" })), N = {
|
|
507
|
+
...Hn,
|
|
508
|
+
...jn
|
|
509
509
|
};
|
|
510
|
-
function
|
|
511
|
-
return Se(e, new
|
|
510
|
+
function zn(e, t) {
|
|
511
|
+
return Se(e, new N.classes.URLSearchParams(), Object.assign({
|
|
512
512
|
visitor: function(n, r, s, i) {
|
|
513
|
-
return
|
|
513
|
+
return N.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
514
514
|
}
|
|
515
515
|
}, t));
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Vn(e) {
|
|
518
518
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Jn(e) {
|
|
521
521
|
const t = {}, n = Object.keys(e);
|
|
522
522
|
let r;
|
|
523
523
|
const s = n.length;
|
|
@@ -531,17 +531,17 @@ function Rt(e) {
|
|
|
531
531
|
let o = n[i++];
|
|
532
532
|
if (o === "__proto__") return !0;
|
|
533
533
|
const c = Number.isFinite(+o), l = i >= n.length;
|
|
534
|
-
return o = !o && a.isArray(s) ? s.length : o, l ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] =
|
|
534
|
+
return o = !o && a.isArray(s) ? s.length : o, l ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = Jn(s[o])), !c);
|
|
535
535
|
}
|
|
536
536
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
537
537
|
const n = {};
|
|
538
538
|
return a.forEachEntry(e, (r, s) => {
|
|
539
|
-
t(
|
|
539
|
+
t(Vn(r), s, n, 0);
|
|
540
540
|
}), n;
|
|
541
541
|
}
|
|
542
542
|
return null;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Gn(e, t, n) {
|
|
545
545
|
if (a.isString(e))
|
|
546
546
|
try {
|
|
547
547
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -551,7 +551,7 @@ function Kn(e, t, n) {
|
|
|
551
551
|
}
|
|
552
552
|
return (n || JSON.stringify)(e);
|
|
553
553
|
}
|
|
554
|
-
const
|
|
554
|
+
const le = {
|
|
555
555
|
transitional: St,
|
|
556
556
|
adapter: ["xhr", "http", "fetch"],
|
|
557
557
|
transformRequest: [function(t, n) {
|
|
@@ -567,7 +567,7 @@ const ce = {
|
|
|
567
567
|
let c;
|
|
568
568
|
if (i) {
|
|
569
569
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
570
|
-
return
|
|
570
|
+
return zn(t, this.formSerializer).toString();
|
|
571
571
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
572
572
|
const l = this.env && this.env.FormData;
|
|
573
573
|
return Se(
|
|
@@ -577,10 +577,10 @@ const ce = {
|
|
|
577
577
|
);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
return i || s ? (n.setContentType("application/json", !1),
|
|
580
|
+
return i || s ? (n.setContentType("application/json", !1), Gn(t)) : t;
|
|
581
581
|
}],
|
|
582
582
|
transformResponse: [function(t) {
|
|
583
|
-
const n = this.transitional ||
|
|
583
|
+
const n = this.transitional || le.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
584
584
|
if (a.isResponse(t) || a.isReadableStream(t))
|
|
585
585
|
return t;
|
|
586
586
|
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
@@ -589,7 +589,7 @@ const ce = {
|
|
|
589
589
|
return JSON.parse(t);
|
|
590
590
|
} catch (c) {
|
|
591
591
|
if (o)
|
|
592
|
-
throw c.name === "SyntaxError" ?
|
|
592
|
+
throw c.name === "SyntaxError" ? g.from(c, g.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
return t;
|
|
@@ -604,8 +604,8 @@ const ce = {
|
|
|
604
604
|
maxContentLength: -1,
|
|
605
605
|
maxBodyLength: -1,
|
|
606
606
|
env: {
|
|
607
|
-
FormData:
|
|
608
|
-
Blob:
|
|
607
|
+
FormData: N.classes.FormData,
|
|
608
|
+
Blob: N.classes.Blob
|
|
609
609
|
},
|
|
610
610
|
validateStatus: function(t) {
|
|
611
611
|
return t >= 200 && t < 300;
|
|
@@ -618,9 +618,9 @@ const ce = {
|
|
|
618
618
|
}
|
|
619
619
|
};
|
|
620
620
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
621
|
-
|
|
621
|
+
le.headers[e] = {};
|
|
622
622
|
});
|
|
623
|
-
const
|
|
623
|
+
const Wn = a.toObjectSet([
|
|
624
624
|
"age",
|
|
625
625
|
"authorization",
|
|
626
626
|
"content-length",
|
|
@@ -638,28 +638,28 @@ const Xn = a.toObjectSet([
|
|
|
638
638
|
"referer",
|
|
639
639
|
"retry-after",
|
|
640
640
|
"user-agent"
|
|
641
|
-
]),
|
|
641
|
+
]), Kn = (e) => {
|
|
642
642
|
const t = {};
|
|
643
643
|
let n, r, s;
|
|
644
644
|
return e && e.split(`
|
|
645
645
|
`).forEach(function(o) {
|
|
646
|
-
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] &&
|
|
646
|
+
s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Wn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
647
647
|
}), t;
|
|
648
648
|
}, Qe = Symbol("internals");
|
|
649
649
|
function se(e) {
|
|
650
650
|
return e && String(e).trim().toLowerCase();
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
652
|
+
function he(e) {
|
|
653
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(he) : String(e);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Xn(e) {
|
|
656
656
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
657
657
|
let r;
|
|
658
658
|
for (; r = n.exec(e); )
|
|
659
659
|
t[r[1]] = r[2];
|
|
660
660
|
return t;
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const Zn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
663
663
|
function xe(e, t, n, r, s) {
|
|
664
664
|
if (a.isFunction(r))
|
|
665
665
|
return r.call(this, t, n);
|
|
@@ -670,10 +670,10 @@ function xe(e, t, n, r, s) {
|
|
|
670
670
|
return r.test(t);
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Yn(e) {
|
|
674
674
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Qn(e, t) {
|
|
677
677
|
const n = a.toCamelCase(" " + t);
|
|
678
678
|
["get", "set", "has"].forEach((r) => {
|
|
679
679
|
Object.defineProperty(e, r + n, {
|
|
@@ -695,13 +695,13 @@ let U = class {
|
|
|
695
695
|
if (!d)
|
|
696
696
|
throw new Error("header name must be a non-empty string");
|
|
697
697
|
const p = a.findKey(s, d);
|
|
698
|
-
(!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || l] =
|
|
698
|
+
(!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || l] = he(c));
|
|
699
699
|
}
|
|
700
700
|
const o = (c, l) => a.forEach(c, (u, d) => i(u, d, l));
|
|
701
701
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
702
702
|
o(t, n);
|
|
703
|
-
else if (a.isString(t) && (t = t.trim()) && !
|
|
704
|
-
o(
|
|
703
|
+
else if (a.isString(t) && (t = t.trim()) && !Zn(t))
|
|
704
|
+
o(Kn(t), n);
|
|
705
705
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
706
706
|
let c = {}, l, u;
|
|
707
707
|
for (const d of t) {
|
|
@@ -722,7 +722,7 @@ let U = class {
|
|
|
722
722
|
if (!n)
|
|
723
723
|
return s;
|
|
724
724
|
if (n === !0)
|
|
725
|
-
return
|
|
725
|
+
return Xn(s);
|
|
726
726
|
if (a.isFunction(n))
|
|
727
727
|
return n.call(this, s, r);
|
|
728
728
|
if (a.isRegExp(n))
|
|
@@ -763,11 +763,11 @@ let U = class {
|
|
|
763
763
|
return a.forEach(this, (s, i) => {
|
|
764
764
|
const o = a.findKey(r, i);
|
|
765
765
|
if (o) {
|
|
766
|
-
n[o] =
|
|
766
|
+
n[o] = he(s), delete n[i];
|
|
767
767
|
return;
|
|
768
768
|
}
|
|
769
|
-
const c = t ?
|
|
770
|
-
c !== i && delete n[i], n[c] =
|
|
769
|
+
const c = t ? Yn(i) : String(i).trim();
|
|
770
|
+
c !== i && delete n[i], n[c] = he(s), r[c] = !0;
|
|
771
771
|
}), this;
|
|
772
772
|
}
|
|
773
773
|
concat(...t) {
|
|
@@ -805,7 +805,7 @@ let U = class {
|
|
|
805
805
|
}).accessors, s = this.prototype;
|
|
806
806
|
function i(o) {
|
|
807
807
|
const c = se(o);
|
|
808
|
-
r[c] || (
|
|
808
|
+
r[c] || (Qn(s, o), r[c] = !0);
|
|
809
809
|
}
|
|
810
810
|
return a.isArray(t) ? t.forEach(i) : i(t), this;
|
|
811
811
|
}
|
|
@@ -821,8 +821,8 @@ a.reduceDescriptors(U.prototype, ({ value: e }, t) => {
|
|
|
821
821
|
};
|
|
822
822
|
});
|
|
823
823
|
a.freezeMethods(U);
|
|
824
|
-
function
|
|
825
|
-
const n = this ||
|
|
824
|
+
function Le(e, t) {
|
|
825
|
+
const n = this || le, r = t || n, s = U.from(r.headers);
|
|
826
826
|
let i = r.data;
|
|
827
827
|
return a.forEach(e, function(c) {
|
|
828
828
|
i = c.call(n, i, s.normalize(), t ? t.status : void 0);
|
|
@@ -832,26 +832,26 @@ function Tt(e) {
|
|
|
832
832
|
return !!(e && e.__CANCEL__);
|
|
833
833
|
}
|
|
834
834
|
function te(e, t, n) {
|
|
835
|
-
|
|
835
|
+
g.call(this, e ?? "canceled", g.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
836
836
|
}
|
|
837
|
-
a.inherits(te,
|
|
837
|
+
a.inherits(te, g, {
|
|
838
838
|
__CANCEL__: !0
|
|
839
839
|
});
|
|
840
840
|
function At(e, t, n) {
|
|
841
841
|
const r = n.config.validateStatus;
|
|
842
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
842
|
+
!n.status || !r || r(n.status) ? e(n) : t(new g(
|
|
843
843
|
"Request failed with status code " + n.status,
|
|
844
|
-
[
|
|
844
|
+
[g.ERR_BAD_REQUEST, g.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
845
845
|
n.config,
|
|
846
846
|
n.request,
|
|
847
847
|
n
|
|
848
848
|
));
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function er(e) {
|
|
851
851
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
852
852
|
return t && t[1] || "";
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function tr(e, t) {
|
|
855
855
|
e = e || 10;
|
|
856
856
|
const n = new Array(e), r = new Array(e);
|
|
857
857
|
let s = 0, i = 0, o;
|
|
@@ -867,7 +867,7 @@ function rr(e, t) {
|
|
|
867
867
|
return E ? Math.round(y * 1e3 / E) : void 0;
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function nr(e, t) {
|
|
871
871
|
let n = 0, r = 1e3 / t, s, i;
|
|
872
872
|
const o = (u, d = Date.now()) => {
|
|
873
873
|
n = d, s = null, i && (clearTimeout(i), i = null), e.apply(null, u);
|
|
@@ -879,10 +879,10 @@ function sr(e, t) {
|
|
|
879
879
|
}, r - p)));
|
|
880
880
|
}, () => s && o(s)];
|
|
881
881
|
}
|
|
882
|
-
const
|
|
882
|
+
const ge = (e, t, n = 3) => {
|
|
883
883
|
let r = 0;
|
|
884
|
-
const s =
|
|
885
|
-
return
|
|
884
|
+
const s = tr(50, 250);
|
|
885
|
+
return nr((i) => {
|
|
886
886
|
const o = i.loaded, c = i.lengthComputable ? i.total : void 0, l = o - r, u = s(l), d = o <= c;
|
|
887
887
|
r = o;
|
|
888
888
|
const p = {
|
|
@@ -905,10 +905,10 @@ const me = (e, t, n = 3) => {
|
|
|
905
905
|
total: e,
|
|
906
906
|
loaded: r
|
|
907
907
|
}), t[1]];
|
|
908
|
-
}, tt = (e) => (...t) => a.asap(() => e(...t)),
|
|
909
|
-
new URL(
|
|
910
|
-
|
|
911
|
-
) : () => !0,
|
|
908
|
+
}, tt = (e) => (...t) => a.asap(() => e(...t)), rr = N.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, N.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
909
|
+
new URL(N.origin),
|
|
910
|
+
N.navigator && /(msie|trident)/i.test(N.navigator.userAgent)
|
|
911
|
+
) : () => !0, sr = N.hasStandardBrowserEnv ? (
|
|
912
912
|
// Standard browser envs support document.cookie
|
|
913
913
|
{
|
|
914
914
|
write(e, t, n, r, s, i) {
|
|
@@ -935,15 +935,15 @@ const me = (e, t, n = 3) => {
|
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
937
|
);
|
|
938
|
-
function
|
|
938
|
+
function or(e) {
|
|
939
939
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function ir(e, t) {
|
|
942
942
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
943
943
|
}
|
|
944
944
|
function Ot(e, t, n) {
|
|
945
|
-
let r = !
|
|
946
|
-
return e && (r || n == !1) ?
|
|
945
|
+
let r = !or(t);
|
|
946
|
+
return e && (r || n == !1) ? ir(e, t) : t;
|
|
947
947
|
}
|
|
948
948
|
const nt = (e) => e instanceof U ? { ...e } : e;
|
|
949
949
|
function Y(e, t) {
|
|
@@ -1019,19 +1019,19 @@ const xt = (e) => {
|
|
|
1019
1019
|
);
|
|
1020
1020
|
let l;
|
|
1021
1021
|
if (a.isFormData(n)) {
|
|
1022
|
-
if (
|
|
1022
|
+
if (N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv)
|
|
1023
1023
|
o.setContentType(void 0);
|
|
1024
1024
|
else if ((l = o.getContentType()) !== !1) {
|
|
1025
1025
|
const [u, ...d] = l ? l.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
|
1026
1026
|
o.setContentType([u || "multipart/form-data", ...d].join("; "));
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
if (
|
|
1030
|
-
const u = s && i &&
|
|
1029
|
+
if (N.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && rr(t.url))) {
|
|
1030
|
+
const u = s && i && sr.read(i);
|
|
1031
1031
|
u && o.set(s, u);
|
|
1032
1032
|
}
|
|
1033
1033
|
return t;
|
|
1034
|
-
},
|
|
1034
|
+
}, ar = typeof XMLHttpRequest < "u", cr = ar && function(e) {
|
|
1035
1035
|
return new Promise(function(n, r) {
|
|
1036
1036
|
const s = xt(e);
|
|
1037
1037
|
let i = s.data;
|
|
@@ -1042,53 +1042,53 @@ const xt = (e) => {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
let h = new XMLHttpRequest();
|
|
1044
1044
|
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
1045
|
-
function
|
|
1045
|
+
function _() {
|
|
1046
1046
|
if (!h)
|
|
1047
1047
|
return;
|
|
1048
|
-
const
|
|
1048
|
+
const S = U.from(
|
|
1049
1049
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1050
|
-
),
|
|
1050
|
+
), O = {
|
|
1051
1051
|
data: !c || c === "text" || c === "json" ? h.responseText : h.response,
|
|
1052
1052
|
status: h.status,
|
|
1053
1053
|
statusText: h.statusText,
|
|
1054
|
-
headers:
|
|
1054
|
+
headers: S,
|
|
1055
1055
|
config: e,
|
|
1056
1056
|
request: h
|
|
1057
1057
|
};
|
|
1058
|
-
At(function(
|
|
1059
|
-
n(
|
|
1060
|
-
}, function(
|
|
1061
|
-
r(
|
|
1062
|
-
},
|
|
1058
|
+
At(function(D) {
|
|
1059
|
+
n(D), m();
|
|
1060
|
+
}, function(D) {
|
|
1061
|
+
r(D), m();
|
|
1062
|
+
}, O), h = null;
|
|
1063
1063
|
}
|
|
1064
|
-
"onloadend" in h ? h.onloadend =
|
|
1065
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1064
|
+
"onloadend" in h ? h.onloadend = _ : h.onreadystatechange = function() {
|
|
1065
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(_);
|
|
1066
1066
|
}, h.onabort = function() {
|
|
1067
|
-
h && (r(new
|
|
1067
|
+
h && (r(new g("Request aborted", g.ECONNABORTED, e, h)), h = null);
|
|
1068
1068
|
}, h.onerror = function() {
|
|
1069
|
-
r(new
|
|
1069
|
+
r(new g("Network Error", g.ERR_NETWORK, e, h)), h = null;
|
|
1070
1070
|
}, h.ontimeout = function() {
|
|
1071
|
-
let
|
|
1072
|
-
const
|
|
1073
|
-
s.timeoutErrorMessage && (
|
|
1074
|
-
|
|
1075
|
-
|
|
1071
|
+
let k = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1072
|
+
const O = s.transitional || St;
|
|
1073
|
+
s.timeoutErrorMessage && (k = s.timeoutErrorMessage), r(new g(
|
|
1074
|
+
k,
|
|
1075
|
+
O.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
|
|
1076
1076
|
e,
|
|
1077
1077
|
h
|
|
1078
1078
|
)), h = null;
|
|
1079
|
-
}, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(
|
|
1080
|
-
h.setRequestHeader(
|
|
1081
|
-
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([y, f] =
|
|
1082
|
-
h && (r(!
|
|
1079
|
+
}, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(k, O) {
|
|
1080
|
+
h.setRequestHeader(O, k);
|
|
1081
|
+
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([y, f] = ge(u, !0), h.addEventListener("progress", y)), l && h.upload && ([p, E] = ge(l), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (d = (S) => {
|
|
1082
|
+
h && (r(!S || S.type ? new te(null, e, h) : S), h.abort(), h = null);
|
|
1083
1083
|
}, s.cancelToken && s.cancelToken.subscribe(d), s.signal && (s.signal.aborted ? d() : s.signal.addEventListener("abort", d)));
|
|
1084
|
-
const
|
|
1085
|
-
if (
|
|
1086
|
-
r(new
|
|
1084
|
+
const R = er(s.url);
|
|
1085
|
+
if (R && N.protocols.indexOf(R) === -1) {
|
|
1086
|
+
r(new g("Unsupported protocol " + R + ":", g.ERR_BAD_REQUEST, e));
|
|
1087
1087
|
return;
|
|
1088
1088
|
}
|
|
1089
1089
|
h.send(i || null);
|
|
1090
1090
|
});
|
|
1091
|
-
},
|
|
1091
|
+
}, lr = (e, t) => {
|
|
1092
1092
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1093
1093
|
if (t || n) {
|
|
1094
1094
|
let r = new AbortController(), s;
|
|
@@ -1096,11 +1096,11 @@ const xt = (e) => {
|
|
|
1096
1096
|
if (!s) {
|
|
1097
1097
|
s = !0, c();
|
|
1098
1098
|
const d = u instanceof Error ? u : this.reason;
|
|
1099
|
-
r.abort(d instanceof
|
|
1099
|
+
r.abort(d instanceof g ? d : new te(d instanceof Error ? d.message : d));
|
|
1100
1100
|
}
|
|
1101
1101
|
};
|
|
1102
1102
|
let o = t && setTimeout(() => {
|
|
1103
|
-
o = null, i(new
|
|
1103
|
+
o = null, i(new g(`timeout ${t} of ms exceeded`, g.ETIMEDOUT));
|
|
1104
1104
|
}, t);
|
|
1105
1105
|
const c = () => {
|
|
1106
1106
|
e && (o && clearTimeout(o), o = null, e.forEach((u) => {
|
|
@@ -1111,7 +1111,7 @@ const xt = (e) => {
|
|
|
1111
1111
|
const { signal: l } = r;
|
|
1112
1112
|
return l.unsubscribe = () => a.asap(c), l;
|
|
1113
1113
|
}
|
|
1114
|
-
},
|
|
1114
|
+
}, ur = function* (e, t) {
|
|
1115
1115
|
let n = e.byteLength;
|
|
1116
1116
|
if (n < t) {
|
|
1117
1117
|
yield e;
|
|
@@ -1120,10 +1120,10 @@ const xt = (e) => {
|
|
|
1120
1120
|
let r = 0, s;
|
|
1121
1121
|
for (; r < n; )
|
|
1122
1122
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1123
|
-
},
|
|
1124
|
-
for await (const n of
|
|
1125
|
-
yield*
|
|
1126
|
-
},
|
|
1123
|
+
}, dr = async function* (e, t) {
|
|
1124
|
+
for await (const n of fr(e))
|
|
1125
|
+
yield* ur(n, t);
|
|
1126
|
+
}, fr = async function* (e) {
|
|
1127
1127
|
if (e[Symbol.asyncIterator]) {
|
|
1128
1128
|
yield* e;
|
|
1129
1129
|
return;
|
|
@@ -1140,7 +1140,7 @@ const xt = (e) => {
|
|
|
1140
1140
|
await t.cancel();
|
|
1141
1141
|
}
|
|
1142
1142
|
}, rt = (e, t, n, r) => {
|
|
1143
|
-
const s =
|
|
1143
|
+
const s = dr(e, t);
|
|
1144
1144
|
let i = 0, o, c = (l) => {
|
|
1145
1145
|
o || (o = !0, r && r(l));
|
|
1146
1146
|
};
|
|
@@ -1168,15 +1168,15 @@ const xt = (e) => {
|
|
|
1168
1168
|
}, {
|
|
1169
1169
|
highWaterMark: 2
|
|
1170
1170
|
});
|
|
1171
|
-
}, Re = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1171
|
+
}, Re = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Lt = Re && typeof ReadableStream == "function", pr = Re && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ct = (e, ...t) => {
|
|
1172
1172
|
try {
|
|
1173
1173
|
return !!e(...t);
|
|
1174
1174
|
} catch {
|
|
1175
1175
|
return !1;
|
|
1176
1176
|
}
|
|
1177
|
-
},
|
|
1177
|
+
}, hr = Lt && Ct(() => {
|
|
1178
1178
|
let e = !1;
|
|
1179
|
-
const t = new Request(
|
|
1179
|
+
const t = new Request(N.origin, {
|
|
1180
1180
|
body: new ReadableStream(),
|
|
1181
1181
|
method: "POST",
|
|
1182
1182
|
get duplex() {
|
|
@@ -1184,34 +1184,34 @@ const xt = (e) => {
|
|
|
1184
1184
|
}
|
|
1185
1185
|
}).headers.has("Content-Type");
|
|
1186
1186
|
return e && !t;
|
|
1187
|
-
}), st = 64 * 1024, Pe =
|
|
1187
|
+
}), st = 64 * 1024, Pe = Lt && Ct(() => a.isReadableStream(new Response("").body)), we = {
|
|
1188
1188
|
stream: Pe && ((e) => e.body)
|
|
1189
1189
|
};
|
|
1190
1190
|
Re && ((e) => {
|
|
1191
1191
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1192
|
-
!
|
|
1193
|
-
throw new
|
|
1192
|
+
!we[t] && (we[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1193
|
+
throw new g(`Response type '${t}' is not supported`, g.ERR_NOT_SUPPORT, r);
|
|
1194
1194
|
});
|
|
1195
1195
|
});
|
|
1196
1196
|
})(new Response());
|
|
1197
|
-
const
|
|
1197
|
+
const mr = async (e) => {
|
|
1198
1198
|
if (e == null)
|
|
1199
1199
|
return 0;
|
|
1200
1200
|
if (a.isBlob(e))
|
|
1201
1201
|
return e.size;
|
|
1202
1202
|
if (a.isSpecCompliantForm(e))
|
|
1203
|
-
return (await new Request(
|
|
1203
|
+
return (await new Request(N.origin, {
|
|
1204
1204
|
method: "POST",
|
|
1205
1205
|
body: e
|
|
1206
1206
|
}).arrayBuffer()).byteLength;
|
|
1207
1207
|
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1208
1208
|
return e.byteLength;
|
|
1209
1209
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1210
|
-
return (await
|
|
1211
|
-
},
|
|
1210
|
+
return (await pr(e)).byteLength;
|
|
1211
|
+
}, gr = async (e, t) => {
|
|
1212
1212
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1213
|
-
return n ??
|
|
1214
|
-
},
|
|
1213
|
+
return n ?? mr(t);
|
|
1214
|
+
}, wr = Re && (async (e) => {
|
|
1215
1215
|
let {
|
|
1216
1216
|
url: t,
|
|
1217
1217
|
method: n,
|
|
@@ -1227,28 +1227,28 @@ const wr = async (e) => {
|
|
|
1227
1227
|
fetchOptions: y
|
|
1228
1228
|
} = xt(e);
|
|
1229
1229
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1230
|
-
let E =
|
|
1230
|
+
let E = lr([s, i && i.toAbortSignal()], o), f;
|
|
1231
1231
|
const m = E && E.unsubscribe && (() => {
|
|
1232
1232
|
E.unsubscribe();
|
|
1233
1233
|
});
|
|
1234
1234
|
let h;
|
|
1235
1235
|
try {
|
|
1236
|
-
if (l &&
|
|
1237
|
-
let
|
|
1236
|
+
if (l && hr && n !== "get" && n !== "head" && (h = await gr(d, r)) !== 0) {
|
|
1237
|
+
let O = new Request(t, {
|
|
1238
1238
|
method: "POST",
|
|
1239
1239
|
body: r,
|
|
1240
1240
|
duplex: "half"
|
|
1241
1241
|
}), B;
|
|
1242
|
-
if (a.isFormData(r) && (B =
|
|
1243
|
-
const [
|
|
1242
|
+
if (a.isFormData(r) && (B = O.headers.get("content-type")) && d.setContentType(B), O.body) {
|
|
1243
|
+
const [D, b] = et(
|
|
1244
1244
|
h,
|
|
1245
|
-
|
|
1245
|
+
ge(tt(l))
|
|
1246
1246
|
);
|
|
1247
|
-
r = rt(
|
|
1247
|
+
r = rt(O.body, st, D, b);
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
1250
|
a.isString(p) || (p = p ? "include" : "omit");
|
|
1251
|
-
const
|
|
1251
|
+
const _ = "credentials" in Request.prototype;
|
|
1252
1252
|
f = new Request(t, {
|
|
1253
1253
|
...y,
|
|
1254
1254
|
signal: E,
|
|
@@ -1256,50 +1256,50 @@ const wr = async (e) => {
|
|
|
1256
1256
|
headers: d.normalize().toJSON(),
|
|
1257
1257
|
body: r,
|
|
1258
1258
|
duplex: "half",
|
|
1259
|
-
credentials:
|
|
1259
|
+
credentials: _ ? p : void 0
|
|
1260
1260
|
});
|
|
1261
|
-
let
|
|
1262
|
-
const
|
|
1263
|
-
if (Pe && (c ||
|
|
1264
|
-
const
|
|
1265
|
-
["status", "statusText", "headers"].forEach((
|
|
1266
|
-
|
|
1261
|
+
let R = await fetch(f, y);
|
|
1262
|
+
const S = Pe && (u === "stream" || u === "response");
|
|
1263
|
+
if (Pe && (c || S && m)) {
|
|
1264
|
+
const O = {};
|
|
1265
|
+
["status", "statusText", "headers"].forEach((A) => {
|
|
1266
|
+
O[A] = R[A];
|
|
1267
1267
|
});
|
|
1268
|
-
const B = a.toFiniteNumber(
|
|
1268
|
+
const B = a.toFiniteNumber(R.headers.get("content-length")), [D, b] = c && et(
|
|
1269
1269
|
B,
|
|
1270
|
-
|
|
1270
|
+
ge(tt(c), !0)
|
|
1271
1271
|
) || [];
|
|
1272
|
-
|
|
1273
|
-
rt(
|
|
1272
|
+
R = new Response(
|
|
1273
|
+
rt(R.body, st, D, () => {
|
|
1274
1274
|
b && b(), m && m();
|
|
1275
1275
|
}),
|
|
1276
|
-
|
|
1276
|
+
O
|
|
1277
1277
|
);
|
|
1278
1278
|
}
|
|
1279
1279
|
u = u || "text";
|
|
1280
|
-
let
|
|
1281
|
-
return !
|
|
1282
|
-
At(
|
|
1283
|
-
data:
|
|
1284
|
-
headers: U.from(
|
|
1285
|
-
status:
|
|
1286
|
-
statusText:
|
|
1280
|
+
let k = await we[a.findKey(we, u) || "text"](R, e);
|
|
1281
|
+
return !S && m && m(), await new Promise((O, B) => {
|
|
1282
|
+
At(O, B, {
|
|
1283
|
+
data: k,
|
|
1284
|
+
headers: U.from(R.headers),
|
|
1285
|
+
status: R.status,
|
|
1286
|
+
statusText: R.statusText,
|
|
1287
1287
|
config: e,
|
|
1288
1288
|
request: f
|
|
1289
1289
|
});
|
|
1290
1290
|
});
|
|
1291
|
-
} catch (
|
|
1292
|
-
throw m && m(),
|
|
1293
|
-
new
|
|
1291
|
+
} catch (_) {
|
|
1292
|
+
throw m && m(), _ && _.name === "TypeError" && /Load failed|fetch/i.test(_.message) ? Object.assign(
|
|
1293
|
+
new g("Network Error", g.ERR_NETWORK, e, f),
|
|
1294
1294
|
{
|
|
1295
|
-
cause:
|
|
1295
|
+
cause: _.cause || _
|
|
1296
1296
|
}
|
|
1297
|
-
) :
|
|
1297
|
+
) : g.from(_, _ && _.code, e, f);
|
|
1298
1298
|
}
|
|
1299
1299
|
}), Ue = {
|
|
1300
|
-
http:
|
|
1301
|
-
xhr:
|
|
1302
|
-
fetch:
|
|
1300
|
+
http: Bn,
|
|
1301
|
+
xhr: cr,
|
|
1302
|
+
fetch: wr
|
|
1303
1303
|
};
|
|
1304
1304
|
a.forEach(Ue, (e, t) => {
|
|
1305
1305
|
if (e) {
|
|
@@ -1310,7 +1310,7 @@ a.forEach(Ue, (e, t) => {
|
|
|
1310
1310
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1311
1311
|
}
|
|
1312
1312
|
});
|
|
1313
|
-
const ot = (e) => `- ${e}`,
|
|
1313
|
+
const ot = (e) => `- ${e}`, yr = (e) => a.isFunction(e) || e === null || e === !1, kt = {
|
|
1314
1314
|
getAdapter: (e) => {
|
|
1315
1315
|
e = a.isArray(e) ? e : [e];
|
|
1316
1316
|
const { length: t } = e;
|
|
@@ -1319,8 +1319,8 @@ const ot = (e) => `- ${e}`, br = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1319
1319
|
for (let i = 0; i < t; i++) {
|
|
1320
1320
|
n = e[i];
|
|
1321
1321
|
let o;
|
|
1322
|
-
if (r = n, !
|
|
1323
|
-
throw new
|
|
1322
|
+
if (r = n, !yr(n) && (r = Ue[(o = String(n)).toLowerCase()], r === void 0))
|
|
1323
|
+
throw new g(`Unknown adapter '${o}'`);
|
|
1324
1324
|
if (r)
|
|
1325
1325
|
break;
|
|
1326
1326
|
s[o || "#" + i] = r;
|
|
@@ -1332,7 +1332,7 @@ const ot = (e) => `- ${e}`, br = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1332
1332
|
let o = t ? i.length > 1 ? `since :
|
|
1333
1333
|
` + i.map(ot).join(`
|
|
1334
1334
|
`) : " " + ot(i[0]) : "as no adapter specified";
|
|
1335
|
-
throw new
|
|
1335
|
+
throw new g(
|
|
1336
1336
|
"There is no suitable adapter to dispatch the request " + o,
|
|
1337
1337
|
"ERR_NOT_SUPPORT"
|
|
1338
1338
|
);
|
|
@@ -1341,22 +1341,22 @@ const ot = (e) => `- ${e}`, br = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1341
1341
|
},
|
|
1342
1342
|
adapters: Ue
|
|
1343
1343
|
};
|
|
1344
|
-
function
|
|
1344
|
+
function Ce(e) {
|
|
1345
1345
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1346
1346
|
throw new te(null, e);
|
|
1347
1347
|
}
|
|
1348
1348
|
function it(e) {
|
|
1349
|
-
return
|
|
1349
|
+
return Ce(e), e.headers = U.from(e.headers), e.data = Le.call(
|
|
1350
1350
|
e,
|
|
1351
1351
|
e.transformRequest
|
|
1352
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1353
|
-
return
|
|
1352
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), kt.getAdapter(e.adapter || le.adapter)(e).then(function(r) {
|
|
1353
|
+
return Ce(e), r.data = Le.call(
|
|
1354
1354
|
e,
|
|
1355
1355
|
e.transformResponse,
|
|
1356
1356
|
r
|
|
1357
1357
|
), r.headers = U.from(r.headers), r;
|
|
1358
1358
|
}, function(r) {
|
|
1359
|
-
return Tt(r) || (
|
|
1359
|
+
return Tt(r) || (Ce(e), r && r.response && (r.response.data = Le.call(
|
|
1360
1360
|
e,
|
|
1361
1361
|
e.transformResponse,
|
|
1362
1362
|
r.response
|
|
@@ -1376,9 +1376,9 @@ Te.transitional = function(t, n, r) {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
return (i, o, c) => {
|
|
1378
1378
|
if (t === !1)
|
|
1379
|
-
throw new
|
|
1379
|
+
throw new g(
|
|
1380
1380
|
s(o, " has been removed" + (n ? " in " + n : "")),
|
|
1381
|
-
|
|
1381
|
+
g.ERR_DEPRECATED
|
|
1382
1382
|
);
|
|
1383
1383
|
return n && !at[o] && (at[o] = !0, console.warn(
|
|
1384
1384
|
s(
|
|
@@ -1391,9 +1391,9 @@ Te.transitional = function(t, n, r) {
|
|
|
1391
1391
|
Te.spelling = function(t) {
|
|
1392
1392
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
1393
1393
|
};
|
|
1394
|
-
function
|
|
1394
|
+
function Er(e, t, n) {
|
|
1395
1395
|
if (typeof e != "object")
|
|
1396
|
-
throw new
|
|
1396
|
+
throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
|
|
1397
1397
|
const r = Object.keys(e);
|
|
1398
1398
|
let s = r.length;
|
|
1399
1399
|
for (; s-- > 0; ) {
|
|
@@ -1401,17 +1401,17 @@ function _r(e, t, n) {
|
|
|
1401
1401
|
if (o) {
|
|
1402
1402
|
const c = e[i], l = c === void 0 || o(c, i, e);
|
|
1403
1403
|
if (l !== !0)
|
|
1404
|
-
throw new
|
|
1404
|
+
throw new g("option " + i + " must be " + l, g.ERR_BAD_OPTION_VALUE);
|
|
1405
1405
|
continue;
|
|
1406
1406
|
}
|
|
1407
1407
|
if (n !== !0)
|
|
1408
|
-
throw new
|
|
1408
|
+
throw new g("Unknown option " + i, g.ERR_BAD_OPTION);
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
|
-
const
|
|
1412
|
-
assertOptions:
|
|
1411
|
+
const me = {
|
|
1412
|
+
assertOptions: Er,
|
|
1413
1413
|
validators: Te
|
|
1414
|
-
},
|
|
1414
|
+
}, $ = me.validators;
|
|
1415
1415
|
let Z = class {
|
|
1416
1416
|
constructor(t) {
|
|
1417
1417
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -1447,18 +1447,18 @@ let Z = class {
|
|
|
1447
1447
|
_request(t, n) {
|
|
1448
1448
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Y(this.defaults, n);
|
|
1449
1449
|
const { transitional: r, paramsSerializer: s, headers: i } = n;
|
|
1450
|
-
r !== void 0 &&
|
|
1451
|
-
silentJSONParsing:
|
|
1452
|
-
forcedJSONParsing:
|
|
1453
|
-
clarifyTimeoutError:
|
|
1450
|
+
r !== void 0 && me.assertOptions(r, {
|
|
1451
|
+
silentJSONParsing: $.transitional($.boolean),
|
|
1452
|
+
forcedJSONParsing: $.transitional($.boolean),
|
|
1453
|
+
clarifyTimeoutError: $.transitional($.boolean)
|
|
1454
1454
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1455
1455
|
serialize: s
|
|
1456
|
-
} :
|
|
1457
|
-
encode:
|
|
1458
|
-
serialize:
|
|
1459
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1460
|
-
baseUrl:
|
|
1461
|
-
withXsrfToken:
|
|
1456
|
+
} : me.assertOptions(s, {
|
|
1457
|
+
encode: $.function,
|
|
1458
|
+
serialize: $.function
|
|
1459
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), me.assertOptions(n, {
|
|
1460
|
+
baseUrl: $.spelling("baseURL"),
|
|
1461
|
+
withXsrfToken: $.spelling("withXSRFToken")
|
|
1462
1462
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1463
1463
|
let o = i && a.merge(
|
|
1464
1464
|
i.common,
|
|
@@ -1536,7 +1536,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
Z.prototype[t] = n(), Z.prototype[t + "Form"] = n(!0);
|
|
1538
1538
|
});
|
|
1539
|
-
let
|
|
1539
|
+
let br = class Bt {
|
|
1540
1540
|
constructor(t) {
|
|
1541
1541
|
if (typeof t != "function")
|
|
1542
1542
|
throw new TypeError("executor must be a function.");
|
|
@@ -1602,19 +1602,19 @@ let Sr = class kt {
|
|
|
1602
1602
|
static source() {
|
|
1603
1603
|
let t;
|
|
1604
1604
|
return {
|
|
1605
|
-
token: new
|
|
1605
|
+
token: new Bt(function(s) {
|
|
1606
1606
|
t = s;
|
|
1607
1607
|
}),
|
|
1608
1608
|
cancel: t
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
1611
|
};
|
|
1612
|
-
function
|
|
1612
|
+
function _r(e) {
|
|
1613
1613
|
return function(n) {
|
|
1614
1614
|
return e.apply(null, n);
|
|
1615
1615
|
};
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function Sr(e) {
|
|
1618
1618
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1619
1619
|
}
|
|
1620
1620
|
const Ie = {
|
|
@@ -1685,56 +1685,56 @@ const Ie = {
|
|
|
1685
1685
|
Object.entries(Ie).forEach(([e, t]) => {
|
|
1686
1686
|
Ie[t] = e;
|
|
1687
1687
|
});
|
|
1688
|
-
function
|
|
1688
|
+
function vt(e) {
|
|
1689
1689
|
const t = new Z(e), n = lt(Z.prototype.request, t);
|
|
1690
1690
|
return a.extend(n, Z.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1691
|
-
return
|
|
1691
|
+
return vt(Y(e, s));
|
|
1692
1692
|
}, n;
|
|
1693
1693
|
}
|
|
1694
|
-
const
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1694
|
+
const x = vt(le);
|
|
1695
|
+
x.Axios = Z;
|
|
1696
|
+
x.CanceledError = te;
|
|
1697
|
+
x.CancelToken = br;
|
|
1698
|
+
x.isCancel = Tt;
|
|
1699
|
+
x.VERSION = Nt;
|
|
1700
|
+
x.toFormData = Se;
|
|
1701
|
+
x.AxiosError = g;
|
|
1702
|
+
x.Cancel = x.CanceledError;
|
|
1703
|
+
x.all = function(t) {
|
|
1704
1704
|
return Promise.all(t);
|
|
1705
1705
|
};
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1706
|
+
x.spread = _r;
|
|
1707
|
+
x.isAxiosError = Sr;
|
|
1708
|
+
x.mergeConfig = Y;
|
|
1709
|
+
x.AxiosHeaders = U;
|
|
1710
|
+
x.formToJSON = (e) => Rt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1711
|
+
x.getAdapter = kt.getAdapter;
|
|
1712
|
+
x.HttpStatusCode = Ie;
|
|
1713
|
+
x.default = x;
|
|
1714
1714
|
const {
|
|
1715
|
-
Axios:
|
|
1716
|
-
AxiosError:
|
|
1717
|
-
CanceledError:
|
|
1718
|
-
isCancel:
|
|
1719
|
-
CancelToken:
|
|
1720
|
-
VERSION:
|
|
1721
|
-
all:
|
|
1722
|
-
Cancel:
|
|
1723
|
-
isAxiosError:
|
|
1724
|
-
spread:
|
|
1725
|
-
toFormData:
|
|
1715
|
+
Axios: Es,
|
|
1716
|
+
AxiosError: bs,
|
|
1717
|
+
CanceledError: _s,
|
|
1718
|
+
isCancel: Ss,
|
|
1719
|
+
CancelToken: Rs,
|
|
1720
|
+
VERSION: Ts,
|
|
1721
|
+
all: As,
|
|
1722
|
+
Cancel: Os,
|
|
1723
|
+
isAxiosError: xs,
|
|
1724
|
+
spread: Ls,
|
|
1725
|
+
toFormData: Cs,
|
|
1726
1726
|
AxiosHeaders: ks,
|
|
1727
|
-
HttpStatusCode:
|
|
1728
|
-
formToJSON:
|
|
1729
|
-
getAdapter:
|
|
1730
|
-
mergeConfig:
|
|
1731
|
-
} =
|
|
1727
|
+
HttpStatusCode: Ns,
|
|
1728
|
+
formToJSON: Bs,
|
|
1729
|
+
getAdapter: vs,
|
|
1730
|
+
mergeConfig: Ps
|
|
1731
|
+
} = x;
|
|
1732
1732
|
function Me(e) {
|
|
1733
1733
|
return new Promise((t, n) => {
|
|
1734
1734
|
e.oncomplete = e.onsuccess = () => t(e.result), e.onabort = e.onerror = () => n(e.error);
|
|
1735
1735
|
});
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function Rr(e, t) {
|
|
1738
1738
|
let n;
|
|
1739
1739
|
const r = () => {
|
|
1740
1740
|
if (n)
|
|
@@ -1747,61 +1747,61 @@ function Ar(e, t) {
|
|
|
1747
1747
|
};
|
|
1748
1748
|
return (s, i) => r().then((o) => i(o.transaction(t, s).objectStore(t)));
|
|
1749
1749
|
}
|
|
1750
|
-
let
|
|
1750
|
+
let ke;
|
|
1751
1751
|
function Pt() {
|
|
1752
|
-
return
|
|
1752
|
+
return ke || (ke = Rr("keyval-store", "keyval")), ke;
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function Tr(e, t = Pt()) {
|
|
1755
1755
|
return t("readonly", (n) => Me(n.get(e)));
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1757
|
+
function Ar(e, t, n = Pt()) {
|
|
1758
1758
|
return n("readwrite", (r) => (r.put(t, e), Me(r.transaction)));
|
|
1759
1759
|
}
|
|
1760
|
-
async function
|
|
1761
|
-
return await
|
|
1760
|
+
async function Or(e) {
|
|
1761
|
+
return await Tr(e) ?? null;
|
|
1762
1762
|
}
|
|
1763
|
-
async function
|
|
1764
|
-
await
|
|
1763
|
+
async function xr(e, t) {
|
|
1764
|
+
await Ar(e, t);
|
|
1765
1765
|
}
|
|
1766
|
-
function
|
|
1767
|
-
const [t, n] =
|
|
1766
|
+
function Lr(e) {
|
|
1767
|
+
const [t, n] = C({
|
|
1768
1768
|
isPlaying: !1,
|
|
1769
1769
|
isPaused: !1,
|
|
1770
1770
|
progress: 0,
|
|
1771
1771
|
currentPNGTuber: 0,
|
|
1772
1772
|
avatars: e.avatars,
|
|
1773
1773
|
error: null
|
|
1774
|
-
}), [r, s] =
|
|
1774
|
+
}), [r, s] = C(
|
|
1775
1775
|
e.autoAdvance || !1
|
|
1776
|
-
), [i, o] =
|
|
1777
|
-
|
|
1776
|
+
), [i, o] = C(!1), [, c] = C(0), l = F(null), u = F(null), d = F(r), p = F(!1), y = F(null);
|
|
1777
|
+
j(() => {
|
|
1778
1778
|
d.current = r;
|
|
1779
1779
|
}, [r]);
|
|
1780
1780
|
const E = (b) => {
|
|
1781
1781
|
if (e.avatars.length <= 1) return 0;
|
|
1782
|
-
const
|
|
1783
|
-
return Math.min(Math.floor(b /
|
|
1782
|
+
const A = e.avatars.length, q = 100 / A;
|
|
1783
|
+
return Math.min(Math.floor(b / q), A - 1);
|
|
1784
1784
|
}, f = () => {
|
|
1785
1785
|
u.current && (clearInterval(u.current), u.current = null);
|
|
1786
1786
|
}, m = () => {
|
|
1787
1787
|
l.current && (u.current = setInterval(() => {
|
|
1788
1788
|
if (l.current && l.current.duration) {
|
|
1789
|
-
const b = l.current.currentTime,
|
|
1789
|
+
const b = l.current.currentTime, A = l.current.duration, q = b / A * 100;
|
|
1790
1790
|
n((Q) => ({
|
|
1791
1791
|
...Q,
|
|
1792
|
-
progress: Math.min(
|
|
1793
|
-
currentPNGTuber: E(
|
|
1792
|
+
progress: Math.min(q, 100),
|
|
1793
|
+
currentPNGTuber: E(q)
|
|
1794
1794
|
}));
|
|
1795
1795
|
}
|
|
1796
1796
|
}, 100));
|
|
1797
1797
|
}, h = () => {
|
|
1798
1798
|
var b;
|
|
1799
|
-
l.current && !t.isPaused && (l.current.pause(), f(), n((
|
|
1800
|
-
...
|
|
1799
|
+
l.current && !t.isPaused && (l.current.pause(), f(), n((A) => ({
|
|
1800
|
+
...A,
|
|
1801
1801
|
isPlaying: !1,
|
|
1802
1802
|
isPaused: !0
|
|
1803
1803
|
})), (b = e.onPause) == null || b.call(e));
|
|
1804
|
-
},
|
|
1804
|
+
}, _ = async () => {
|
|
1805
1805
|
if (l.current && t.isPaused)
|
|
1806
1806
|
try {
|
|
1807
1807
|
await l.current.play(), m(), n((b) => ({
|
|
@@ -1810,48 +1810,48 @@ function vr(e) {
|
|
|
1810
1810
|
isPaused: !1
|
|
1811
1811
|
}));
|
|
1812
1812
|
} catch (b) {
|
|
1813
|
-
console.error("Error al reanudar audio:", b), n((
|
|
1814
|
-
...
|
|
1813
|
+
console.error("Error al reanudar audio:", b), n((A) => ({
|
|
1814
|
+
...A,
|
|
1815
1815
|
error: {
|
|
1816
1816
|
type: "audio",
|
|
1817
1817
|
message: "Error al reanudar la reproducción"
|
|
1818
1818
|
}
|
|
1819
1819
|
}));
|
|
1820
1820
|
}
|
|
1821
|
-
},
|
|
1822
|
-
|
|
1823
|
-
},
|
|
1821
|
+
}, R = () => {
|
|
1822
|
+
k(!0);
|
|
1823
|
+
}, S = () => {
|
|
1824
1824
|
s((b) => !b);
|
|
1825
|
-
},
|
|
1825
|
+
}, k = (b = !1) => {
|
|
1826
1826
|
f(), l.current && (y.current && (l.current.removeEventListener(
|
|
1827
1827
|
"ended",
|
|
1828
1828
|
y.current
|
|
1829
|
-
), y.current = null), l.current.removeEventListener("error",
|
|
1830
|
-
...
|
|
1829
|
+
), y.current = null), l.current.removeEventListener("error", O), l.current.removeEventListener("pause", B), l.current.pause(), l.current.currentTime = 0, l.current.src = "", l.current.load(), l.current = null), n((A) => ({
|
|
1830
|
+
...A,
|
|
1831
1831
|
isPlaying: !1,
|
|
1832
1832
|
isPaused: !1,
|
|
1833
1833
|
progress: 0,
|
|
1834
1834
|
currentPNGTuber: 0
|
|
1835
|
-
})), d.current && !p.current && (p.current = !0, c((
|
|
1836
|
-
var
|
|
1837
|
-
(
|
|
1835
|
+
})), d.current && !p.current && (p.current = !0, c((A) => A + 1)), b || setTimeout(() => {
|
|
1836
|
+
var A;
|
|
1837
|
+
(A = e.onStop) == null || A.call(e);
|
|
1838
1838
|
}, 50);
|
|
1839
|
-
},
|
|
1839
|
+
}, O = () => {
|
|
1840
1840
|
n((b) => ({
|
|
1841
1841
|
...b,
|
|
1842
1842
|
error: {
|
|
1843
1843
|
type: "audio",
|
|
1844
1844
|
message: "Error al reproducir el audio"
|
|
1845
1845
|
}
|
|
1846
|
-
})),
|
|
1846
|
+
})), k();
|
|
1847
1847
|
}, B = () => {
|
|
1848
1848
|
l.current && l.current.currentTime < l.current.duration && n((b) => ({
|
|
1849
1849
|
...b,
|
|
1850
1850
|
isPlaying: !1,
|
|
1851
1851
|
isPaused: !0
|
|
1852
1852
|
}));
|
|
1853
|
-
},
|
|
1854
|
-
var
|
|
1853
|
+
}, D = async () => {
|
|
1854
|
+
var A, q, Q;
|
|
1855
1855
|
if (!e.text.trim()) {
|
|
1856
1856
|
n((L) => ({
|
|
1857
1857
|
...L,
|
|
@@ -1862,7 +1862,7 @@ function vr(e) {
|
|
|
1862
1862
|
}));
|
|
1863
1863
|
return;
|
|
1864
1864
|
}
|
|
1865
|
-
p.current = !1,
|
|
1865
|
+
p.current = !1, k(!0);
|
|
1866
1866
|
const b = `${e.voiceId}-${e.lang ?? "auto"}-${e.model ?? "multilingual"}-${e.text}`;
|
|
1867
1867
|
try {
|
|
1868
1868
|
o(!0), n((I) => ({
|
|
@@ -1872,11 +1872,11 @@ function vr(e) {
|
|
|
1872
1872
|
currentPNGTuber: 0,
|
|
1873
1873
|
error: null
|
|
1874
1874
|
}));
|
|
1875
|
-
let L = await
|
|
1875
|
+
let L = await Or(b);
|
|
1876
1876
|
if (!L) {
|
|
1877
1877
|
const I = e.model === "standard" ? "eleven_monolingual_v1" : e.model === "enhanced" ? "eleven_turbo_v2" : "eleven_multilingual_v2";
|
|
1878
|
-
L = (await
|
|
1879
|
-
`${
|
|
1878
|
+
L = (await x.post(
|
|
1879
|
+
`${ie.ELEVENLABS_API_BASE}/text-to-speech/${e.voiceId}`,
|
|
1880
1880
|
{
|
|
1881
1881
|
text: e.text,
|
|
1882
1882
|
model_id: I,
|
|
@@ -1894,30 +1894,30 @@ function vr(e) {
|
|
|
1894
1894
|
},
|
|
1895
1895
|
responseType: "blob"
|
|
1896
1896
|
}
|
|
1897
|
-
)).data, L && await
|
|
1897
|
+
)).data, L && await xr(b, L);
|
|
1898
1898
|
}
|
|
1899
1899
|
if (L) {
|
|
1900
1900
|
const I = URL.createObjectURL(L);
|
|
1901
1901
|
l.current = new Audio(I);
|
|
1902
1902
|
const J = () => {
|
|
1903
|
-
|
|
1903
|
+
k(!1), URL.revokeObjectURL(I);
|
|
1904
1904
|
};
|
|
1905
|
-
y.current = J, l.current.addEventListener("ended", J), l.current.addEventListener("error",
|
|
1906
|
-
var
|
|
1905
|
+
y.current = J, l.current.addEventListener("ended", J), l.current.addEventListener("error", O), l.current.addEventListener("pause", B), l.current.addEventListener("canplaythrough", async () => {
|
|
1906
|
+
var ue;
|
|
1907
1907
|
o(!1), n((G) => ({
|
|
1908
1908
|
...G,
|
|
1909
1909
|
isPlaying: !0
|
|
1910
1910
|
})), m();
|
|
1911
1911
|
try {
|
|
1912
|
-
await ((
|
|
1912
|
+
await ((ue = l.current) == null ? void 0 : ue.play());
|
|
1913
1913
|
} catch (G) {
|
|
1914
|
-
console.error("Error al iniciar reproducción:", G), n((
|
|
1915
|
-
...
|
|
1914
|
+
console.error("Error al iniciar reproducción:", G), n((H) => ({
|
|
1915
|
+
...H,
|
|
1916
1916
|
error: {
|
|
1917
1917
|
type: "audio",
|
|
1918
1918
|
message: "Error al iniciar la reproducción"
|
|
1919
1919
|
}
|
|
1920
|
-
})),
|
|
1920
|
+
})), k();
|
|
1921
1921
|
}
|
|
1922
1922
|
});
|
|
1923
1923
|
}
|
|
@@ -1929,7 +1929,7 @@ function vr(e) {
|
|
|
1929
1929
|
message: `Error en la API: ${L.message}`
|
|
1930
1930
|
},
|
|
1931
1931
|
isPlaying: !1
|
|
1932
|
-
})), f(), o(!1),
|
|
1932
|
+
})), f(), o(!1), x.isAxiosError(L) ? (console.error("Código de estado:", (A = L.response) == null ? void 0 : A.status), ((q = L.response) == null ? void 0 : q.data) instanceof Blob ? L.response.data.text().then((I) => {
|
|
1933
1933
|
console.error("Respuesta de error (texto):", I);
|
|
1934
1934
|
try {
|
|
1935
1935
|
const J = JSON.parse(I);
|
|
@@ -1940,9 +1940,9 @@ function vr(e) {
|
|
|
1940
1940
|
}) : console.error("Respuesta de error:", (Q = L.response) == null ? void 0 : Q.data)) : console.error("Error inesperado:", L);
|
|
1941
1941
|
}
|
|
1942
1942
|
};
|
|
1943
|
-
return
|
|
1943
|
+
return j(() => () => {
|
|
1944
1944
|
f(), l.current && (l.current.pause(), l.current.src = "", l.current.load(), l.current = null);
|
|
1945
|
-
}, []),
|
|
1945
|
+
}, []), j(() => {
|
|
1946
1946
|
e.voiceId && (l.current && (l.current.pause(), l.current.src = "", l.current.load(), l.current = null), f(), n((b) => ({
|
|
1947
1947
|
...b,
|
|
1948
1948
|
isPlaying: !1,
|
|
@@ -1952,41 +1952,41 @@ function vr(e) {
|
|
|
1952
1952
|
})));
|
|
1953
1953
|
}, [e.voiceId]), {
|
|
1954
1954
|
...t,
|
|
1955
|
-
play:
|
|
1955
|
+
play: D,
|
|
1956
1956
|
pause: h,
|
|
1957
|
-
resume:
|
|
1958
|
-
stop:
|
|
1959
|
-
toggleAutoAdvance:
|
|
1957
|
+
resume: _,
|
|
1958
|
+
stop: R,
|
|
1959
|
+
toggleAutoAdvance: S,
|
|
1960
1960
|
isAutoAdvancing: r,
|
|
1961
1961
|
isLoadingAudio: i,
|
|
1962
1962
|
avatars: e.avatars
|
|
1963
1963
|
};
|
|
1964
1964
|
}
|
|
1965
|
-
const
|
|
1966
|
-
selectorWrapper:
|
|
1965
|
+
const Cr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Nr = "_dropdown_1kmif_18", Br = "_dropdownItem_1kmif_31", vr = "_active_1kmif_44", oe = {
|
|
1966
|
+
selectorWrapper: Cr,
|
|
1967
1967
|
iconButton: kr,
|
|
1968
|
-
dropdown:
|
|
1969
|
-
dropdownItem:
|
|
1970
|
-
active:
|
|
1971
|
-
},
|
|
1968
|
+
dropdown: Nr,
|
|
1969
|
+
dropdownItem: Br,
|
|
1970
|
+
active: vr
|
|
1971
|
+
}, Pr = ({
|
|
1972
1972
|
languages: e,
|
|
1973
1973
|
current: t,
|
|
1974
1974
|
onChange: n
|
|
1975
1975
|
}) => {
|
|
1976
|
-
const [r, s] =
|
|
1977
|
-
return
|
|
1976
|
+
const [r, s] = C(!1), [i, o] = C(t || e[0].code), c = F(null);
|
|
1977
|
+
return j(() => {
|
|
1978
1978
|
const l = (u) => {
|
|
1979
1979
|
c.current && !c.current.contains(u.target) && s(!1);
|
|
1980
1980
|
};
|
|
1981
1981
|
return document.addEventListener("mousedown", l), () => document.removeEventListener("mousedown", l);
|
|
1982
|
-
}, []), /* @__PURE__ */
|
|
1983
|
-
/* @__PURE__ */
|
|
1982
|
+
}, []), /* @__PURE__ */ V("div", { className: oe.selectorWrapper, ref: c, children: [
|
|
1983
|
+
/* @__PURE__ */ w(
|
|
1984
1984
|
"button",
|
|
1985
1985
|
{
|
|
1986
1986
|
className: oe.iconButton,
|
|
1987
1987
|
title: "Cambiar idioma",
|
|
1988
1988
|
onClick: () => s(!r),
|
|
1989
|
-
children: /* @__PURE__ */
|
|
1989
|
+
children: /* @__PURE__ */ w(
|
|
1990
1990
|
"svg",
|
|
1991
1991
|
{
|
|
1992
1992
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1994,12 +1994,12 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
1994
1994
|
width: "30px",
|
|
1995
1995
|
height: "30px",
|
|
1996
1996
|
viewBox: "0 0 24 24",
|
|
1997
|
-
children: /* @__PURE__ */
|
|
1997
|
+
children: /* @__PURE__ */ w("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z" })
|
|
1998
1998
|
}
|
|
1999
1999
|
)
|
|
2000
2000
|
}
|
|
2001
2001
|
),
|
|
2002
|
-
r && /* @__PURE__ */
|
|
2002
|
+
r && /* @__PURE__ */ w("div", { className: oe.dropdown, children: e.map((l) => /* @__PURE__ */ w(
|
|
2003
2003
|
"button",
|
|
2004
2004
|
{
|
|
2005
2005
|
className: `${oe.dropdownItem} ${l.code === i ? oe.active : ""}`,
|
|
@@ -2011,45 +2011,45 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2011
2011
|
l.code
|
|
2012
2012
|
)) })
|
|
2013
2013
|
] });
|
|
2014
|
-
},
|
|
2015
|
-
controlsRow:
|
|
2016
|
-
select:
|
|
2017
|
-
autoAdvanceButton:
|
|
2018
|
-
section:
|
|
2019
|
-
textarea:
|
|
2020
|
-
input:
|
|
2021
|
-
error:
|
|
2022
|
-
buttonPrimary:
|
|
2023
|
-
buttonSuccess:
|
|
2024
|
-
infoBox:
|
|
2025
|
-
viewer:
|
|
2026
|
-
viewerTopBar:
|
|
2027
|
-
topRightControls:
|
|
2028
|
-
itemCounter:
|
|
2029
|
-
iconButton:
|
|
2030
|
-
navButton:
|
|
2031
|
-
navButtonLeft:
|
|
2032
|
-
navButtonRight:
|
|
2033
|
-
backgroundImage:
|
|
2034
|
-
avatar:
|
|
2035
|
-
caption:
|
|
2036
|
-
captionTitle:
|
|
2037
|
-
captionText:
|
|
2038
|
-
loadingOverlay:
|
|
2039
|
-
loadingSpinner:
|
|
2040
|
-
spin:
|
|
2041
|
-
loadingButton:
|
|
2042
|
-
spinner:
|
|
2043
|
-
progressBar:
|
|
2044
|
-
progressFill:
|
|
2045
|
-
playbackControls:
|
|
2046
|
-
playButton:
|
|
2047
|
-
pauseButton:
|
|
2048
|
-
},
|
|
2014
|
+
}, Ur = "_controlsRow_8wakc_1", Ir = "_select_8wakc_9", Fr = "_autoAdvanceButton_8wakc_15", Dr = "_section_8wakc_26", jr = "_textarea_8wakc_36", Mr = "_input_8wakc_46", qr = "_error_8wakc_54", $r = "_buttonPrimary_8wakc_59", Hr = "_buttonSuccess_8wakc_69", zr = "_infoBox_8wakc_78", Vr = "_viewer_8wakc_86", Jr = "_viewerTopBar_8wakc_97", Gr = "_topRightControls_8wakc_110", Wr = "_itemCounter_8wakc_118", Kr = "_iconButton_8wakc_126", Xr = "_navButton_8wakc_146", Zr = "_navButtonLeft_8wakc_163", Yr = "_navButtonRight_8wakc_167", Qr = "_backgroundImage_8wakc_171", es = "_avatar_8wakc_178", ts = "_caption_8wakc_188", ns = "_captionTitle_8wakc_201", rs = "_captionText_8wakc_211", ss = "_loadingOverlay_8wakc_217", os = "_loadingSpinner_8wakc_232", is = "_spin_8wakc_251", as = "_loadingButton_8wakc_242", cs = "_spinner_8wakc_251", ls = "_progressBar_8wakc_264", us = "_progressFill_8wakc_273", ds = "_playbackControls_8wakc_279", fs = "_playButton_8wakc_292", ps = "_pauseButton_8wakc_293", T = {
|
|
2015
|
+
controlsRow: Ur,
|
|
2016
|
+
select: Ir,
|
|
2017
|
+
autoAdvanceButton: Fr,
|
|
2018
|
+
section: Dr,
|
|
2019
|
+
textarea: jr,
|
|
2020
|
+
input: Mr,
|
|
2021
|
+
error: qr,
|
|
2022
|
+
buttonPrimary: $r,
|
|
2023
|
+
buttonSuccess: Hr,
|
|
2024
|
+
infoBox: zr,
|
|
2025
|
+
viewer: Vr,
|
|
2026
|
+
viewerTopBar: Jr,
|
|
2027
|
+
topRightControls: Gr,
|
|
2028
|
+
itemCounter: Wr,
|
|
2029
|
+
iconButton: Kr,
|
|
2030
|
+
navButton: Xr,
|
|
2031
|
+
navButtonLeft: Zr,
|
|
2032
|
+
navButtonRight: Yr,
|
|
2033
|
+
backgroundImage: Qr,
|
|
2034
|
+
avatar: es,
|
|
2035
|
+
caption: ts,
|
|
2036
|
+
captionTitle: ns,
|
|
2037
|
+
captionText: rs,
|
|
2038
|
+
loadingOverlay: ss,
|
|
2039
|
+
loadingSpinner: os,
|
|
2040
|
+
spin: is,
|
|
2041
|
+
loadingButton: as,
|
|
2042
|
+
spinner: cs,
|
|
2043
|
+
progressBar: ls,
|
|
2044
|
+
progressFill: us,
|
|
2045
|
+
playbackControls: ds,
|
|
2046
|
+
playButton: fs,
|
|
2047
|
+
pauseButton: ps
|
|
2048
|
+
}, Us = [
|
|
2049
2049
|
{ id: "21m00Tcm4TlvDq8ikWAM", name: "Voz Mujer" },
|
|
2050
2050
|
// { id: "iLzHtPh0bW6RGWRG0Xo5", name: "Voz Hombre" },
|
|
2051
2051
|
{ id: "Nh2zY9kknu6z4pZy6FhD", name: "Voz Hombre Joven" }
|
|
2052
|
-
], ct =
|
|
2052
|
+
], ct = ie.DEFAULT_IMAGE_URL, Is = ({
|
|
2053
2053
|
heritageItems: e = [],
|
|
2054
2054
|
targetLanguage: t = "es",
|
|
2055
2055
|
descriptionLength: n = "extended",
|
|
@@ -2057,15 +2057,15 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2057
2057
|
voiceIds: s = [],
|
|
2058
2058
|
avatars: i = []
|
|
2059
2059
|
}) => {
|
|
2060
|
-
const [o] =
|
|
2060
|
+
const [o] = C(e), [c, l] = C(0), [u, d] = C(n), [p, y] = C(
|
|
2061
2061
|
t
|
|
2062
|
-
), [E, f] =
|
|
2062
|
+
), [E, f] = C(""), [m, h] = C([]), [_, R] = C(0), [S, k] = C(r), [O, B] = C(!1), [D, b] = C(
|
|
2063
2063
|
s.length > 0 ? s[0] : ""
|
|
2064
|
-
),
|
|
2065
|
-
|
|
2066
|
-
qe.current =
|
|
2067
|
-
}, [
|
|
2068
|
-
const
|
|
2064
|
+
), A = D || (s.length > 0 ? s[c % s.length] : ""), q = i[c % i.length], [Q, L] = C(!1), [I, J] = C(!1), [ue, G] = C(!0), H = F(null), qe = F(S), $e = F(c), Ae = F(o), K = F(null), de = F(!1);
|
|
2065
|
+
j(() => {
|
|
2066
|
+
qe.current = S, $e.current = c, Ae.current = o;
|
|
2067
|
+
}, [S, c, o]);
|
|
2068
|
+
const fe = o[c] || {
|
|
2069
2069
|
id: "default",
|
|
2070
2070
|
name: "Patrimonio Cultural",
|
|
2071
2071
|
description: {
|
|
@@ -2084,39 +2084,39 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2084
2084
|
pause: Ft,
|
|
2085
2085
|
resume: Dt,
|
|
2086
2086
|
stop: jt
|
|
2087
|
-
} =
|
|
2087
|
+
} = Lr({
|
|
2088
2088
|
text: E,
|
|
2089
2089
|
lang: p,
|
|
2090
2090
|
onStop: () => {
|
|
2091
|
-
G(!0), qe.current && Ae.current.length > 1 && !
|
|
2091
|
+
G(!0), qe.current && Ae.current.length > 1 && !de.current && setTimeout(() => {
|
|
2092
2092
|
B(!0);
|
|
2093
|
-
const
|
|
2094
|
-
l(
|
|
2095
|
-
}, 100),
|
|
2093
|
+
const v = ($e.current + 1) % Ae.current.length;
|
|
2094
|
+
l(v);
|
|
2095
|
+
}, 100), de.current = !1;
|
|
2096
2096
|
},
|
|
2097
|
-
voiceId:
|
|
2098
|
-
avatars: [
|
|
2099
|
-
apiKey:
|
|
2097
|
+
voiceId: A,
|
|
2098
|
+
avatars: [q],
|
|
2099
|
+
apiKey: ie.ELEVENLABS_API_KEY
|
|
2100
2100
|
});
|
|
2101
|
-
|
|
2102
|
-
if (
|
|
2103
|
-
const
|
|
2101
|
+
j(() => {
|
|
2102
|
+
if (O && E && !E.includes("JSON válido")) {
|
|
2103
|
+
const v = setTimeout(() => {
|
|
2104
2104
|
W || Ve(), B(!1);
|
|
2105
2105
|
}, 500);
|
|
2106
|
-
return () => clearTimeout(
|
|
2106
|
+
return () => clearTimeout(v);
|
|
2107
2107
|
}
|
|
2108
|
-
}, [
|
|
2108
|
+
}, [O, E, W]), j(() => {
|
|
2109
2109
|
(async () => {
|
|
2110
|
-
const
|
|
2111
|
-
if (
|
|
2110
|
+
const z = fe.description.local[u];
|
|
2111
|
+
if (z)
|
|
2112
2112
|
try {
|
|
2113
|
-
const ne = await
|
|
2113
|
+
const ne = await Vt(z, p);
|
|
2114
2114
|
f(ne);
|
|
2115
2115
|
} catch (ne) {
|
|
2116
|
-
console.error("Error en traducción:", ne), f(
|
|
2116
|
+
console.error("Error en traducción:", ne), f(z);
|
|
2117
2117
|
}
|
|
2118
2118
|
})();
|
|
2119
|
-
}, [
|
|
2119
|
+
}, [fe, u, p]);
|
|
2120
2120
|
const Oe = () => {
|
|
2121
2121
|
G(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => {
|
|
2122
2122
|
G(!1);
|
|
@@ -2132,102 +2132,56 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2132
2132
|
}, qt = () => {
|
|
2133
2133
|
Dt(), Oe();
|
|
2134
2134
|
}, Je = () => {
|
|
2135
|
-
jt(), B(!1),
|
|
2135
|
+
jt(), B(!1), H.current && clearTimeout(H.current), K.current && clearTimeout(K.current), G(!0);
|
|
2136
2136
|
}, $t = () => {
|
|
2137
|
-
|
|
2137
|
+
de.current = !0, Je(), c > 0 && l((v) => v - 1);
|
|
2138
2138
|
}, Ht = () => {
|
|
2139
|
-
|
|
2139
|
+
de.current = !0, Je(), c < o.length - 1 && l((v) => v + 1);
|
|
2140
2140
|
};
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
}, []),
|
|
2141
|
+
j(() => () => {
|
|
2142
|
+
H.current && clearTimeout(H.current), K.current && clearTimeout(K.current);
|
|
2143
|
+
}, []), j(() => {
|
|
2144
2144
|
if (E) {
|
|
2145
|
-
const
|
|
2146
|
-
h(
|
|
2145
|
+
const v = E.split(new RegExp("(?<=[.!?])\\s+", "g")).map((z) => z.trim()).filter((z) => z.length > 0);
|
|
2146
|
+
h(v), R(0);
|
|
2147
2147
|
}
|
|
2148
|
-
}, [E]),
|
|
2148
|
+
}, [E]), j(() => {
|
|
2149
2149
|
if (!W || m.length === 0) return;
|
|
2150
|
-
|
|
2151
|
-
const
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
},
|
|
2155
|
-
}, [W, m,
|
|
2156
|
-
const [Ge,
|
|
2157
|
-
|
|
2158
|
-
};
|
|
2159
|
-
return M(() => {
|
|
2150
|
+
H.current && clearTimeout(H.current);
|
|
2151
|
+
const z = 1500 + m[_].length * 50;
|
|
2152
|
+
H.current = setTimeout(() => {
|
|
2153
|
+
R((ne) => (ne + 1) % m.length);
|
|
2154
|
+
}, z);
|
|
2155
|
+
}, [W, m, _]);
|
|
2156
|
+
const [Ge, hs] = C(!1);
|
|
2157
|
+
return j(() => {
|
|
2160
2158
|
!Ge && s.length > 0 && b(s[c % s.length]);
|
|
2161
|
-
}, [c, s, Ge]), /* @__PURE__ */
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
{
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
className: S.select,
|
|
2169
|
-
children: [
|
|
2170
|
-
/* @__PURE__ */ g("option", { value: "short", children: "Descripción Corta" }),
|
|
2171
|
-
/* @__PURE__ */ g("option", { value: "extended", children: "Descripción Extendida" })
|
|
2172
|
-
]
|
|
2173
|
-
}
|
|
2174
|
-
),
|
|
2175
|
-
/* @__PURE__ */ F(
|
|
2176
|
-
"select",
|
|
2177
|
-
{
|
|
2178
|
-
value: p,
|
|
2179
|
-
onChange: (T) => y(T.target.value),
|
|
2180
|
-
className: S.select,
|
|
2181
|
-
children: [
|
|
2182
|
-
/* @__PURE__ */ g("option", { value: "en", children: "Inglés" }),
|
|
2183
|
-
/* @__PURE__ */ g("option", { value: "es", children: "Español" }),
|
|
2184
|
-
/* @__PURE__ */ g("option", { value: "fr", children: "Francés" })
|
|
2185
|
-
]
|
|
2186
|
-
}
|
|
2187
|
-
),
|
|
2188
|
-
/* @__PURE__ */ g(
|
|
2189
|
-
"select",
|
|
2190
|
-
{
|
|
2191
|
-
value: O,
|
|
2192
|
-
onChange: (T) => Vt(T.target.value),
|
|
2193
|
-
className: S.select,
|
|
2194
|
-
children: gs.map((T) => /* @__PURE__ */ g("option", { value: T.id, children: T.name }, T.id))
|
|
2195
|
-
}
|
|
2196
|
-
),
|
|
2197
|
-
/* @__PURE__ */ g(
|
|
2198
|
-
"button",
|
|
2199
|
-
{
|
|
2200
|
-
onClick: () => N(!_),
|
|
2201
|
-
className: S.autoAdvanceButton,
|
|
2202
|
-
style: { backgroundColor: _ ? "#34a853" : "#ea4335" },
|
|
2203
|
-
children: _ ? "⏩ AUTO ON" : "⏩ AUTO OFF"
|
|
2204
|
-
}
|
|
2205
|
-
)
|
|
2206
|
-
] }),
|
|
2207
|
-
/* @__PURE__ */ F("div", { className: S.viewer, onClick: Oe, children: [
|
|
2208
|
-
/* @__PURE__ */ F("div", { className: S.viewerTopBar, children: [
|
|
2209
|
-
/* @__PURE__ */ g("div", { className: S.itemCounter, children: o.length > 0 ? `${c + 1}/${o.length}` : "0/0" }),
|
|
2210
|
-
/* @__PURE__ */ F("div", { className: S.topRightControls, children: [
|
|
2211
|
-
/* @__PURE__ */ g(
|
|
2159
|
+
}, [c, s, Ge]), /* @__PURE__ */ V("div", { children: [
|
|
2160
|
+
ie.DEBUG_MODE,
|
|
2161
|
+
/* @__PURE__ */ V("div", { className: T.viewer, onClick: Oe, children: [
|
|
2162
|
+
/* @__PURE__ */ V("div", { className: T.viewerTopBar, children: [
|
|
2163
|
+
/* @__PURE__ */ w("div", { className: T.itemCounter, children: o.length > 0 ? `${c + 1}/${o.length}` : "0/0" }),
|
|
2164
|
+
/* @__PURE__ */ V("div", { className: T.topRightControls, children: [
|
|
2165
|
+
/* @__PURE__ */ w(
|
|
2212
2166
|
"button",
|
|
2213
2167
|
{
|
|
2214
|
-
onClick: () =>
|
|
2215
|
-
className:
|
|
2168
|
+
onClick: () => k(!S),
|
|
2169
|
+
className: T.iconButton,
|
|
2216
2170
|
title: "Autoplay",
|
|
2217
2171
|
style: {
|
|
2218
|
-
backgroundColor:
|
|
2172
|
+
backgroundColor: S ? "rgba(255, 255, 255, 0.7)" : "rgba(0, 0, 0, 0.7)"
|
|
2219
2173
|
},
|
|
2220
|
-
children: /* @__PURE__ */
|
|
2174
|
+
children: /* @__PURE__ */ w(
|
|
2221
2175
|
"svg",
|
|
2222
2176
|
{
|
|
2223
2177
|
width: "20px",
|
|
2224
2178
|
height: "20px",
|
|
2225
2179
|
viewBox: "0 0 16 16",
|
|
2226
2180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2227
|
-
children: /* @__PURE__ */
|
|
2181
|
+
children: /* @__PURE__ */ w(
|
|
2228
2182
|
"path",
|
|
2229
2183
|
{
|
|
2230
|
-
style: { fill:
|
|
2184
|
+
style: { fill: S ? "black" : "white" },
|
|
2231
2185
|
d: "M5.23331,0.493645 C6.8801,-0.113331 8.6808,-0.161915 10.3579,0.355379 C11.4019,0.6773972 12.361984,1.20757325 13.1838415,1.90671757 L13.4526,2.14597 L14.2929,1.30564 C14.8955087,0.703065739 15.9071843,1.0850774 15.994017,1.89911843 L16,2.01275 L16,6.00002 L12.0127,6.00002 C11.1605348,6.00002 10.7153321,5.01450817 11.2294893,4.37749065 L11.3056,4.29291 L12.0372,3.56137 C11.389,2.97184 10.6156,2.52782 9.76845,2.26653 C8.5106,1.87856 7.16008,1.915 5.92498,2.37023 C4.68989,2.82547 3.63877,3.67423 2.93361,4.78573 C2.22844,5.89723 1.90836,7.20978 2.02268,8.52112 C2.13701,9.83246 2.6794,11.0698 3.56627,12.0425 C4.45315,13.0152 5.63528,13.6693 6.93052,13.9039 C8.22576,14.1385 9.56221,13.9407 10.7339,13.3409 C11.9057,12.7412 12.8476,11.7727 13.4147,10.5848 C13.6526,10.0864 14.2495,9.8752 14.748,10.1131 C15.2464,10.351 15.4575,10.948 15.2196,11.4464 C14.4635,13.0302 13.2076,14.3215 11.6453,15.1213 C10.0829,15.921 8.30101,16.1847 6.57402,15.8719 C4.84704,15.559 3.27086,14.687 2.08836,13.39 C0.905861,12.0931 0.182675,10.4433 0.0302394,8.69483 C-0.122195,6.94637 0.304581,5.1963 1.2448,3.7143 C2.18503,2.2323 3.58652,1.10062 5.23331,0.493645 Z M6,5.46077 C6,5.09472714 6.37499031,4.86235811 6.69509872,5.0000726 L6.7678,5.03853 L10.7714,7.57776 C11.0528545,7.75626909 11.0784413,8.14585256 10.8481603,8.36273881 L10.7714,8.42224 L6.7678,10.9615 C6.45867857,11.1575214 6.06160816,10.965274 6.00646097,10.6211914 L6,10.5392 L6,5.46077 Z"
|
|
2232
2186
|
}
|
|
2233
2187
|
)
|
|
@@ -2235,8 +2189,8 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2235
2189
|
)
|
|
2236
2190
|
}
|
|
2237
2191
|
),
|
|
2238
|
-
/* @__PURE__ */
|
|
2239
|
-
|
|
2192
|
+
/* @__PURE__ */ w(
|
|
2193
|
+
Pr,
|
|
2240
2194
|
{
|
|
2241
2195
|
languages: [
|
|
2242
2196
|
{ code: "es", label: "Español" },
|
|
@@ -2244,21 +2198,21 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2244
2198
|
{ code: "fr", label: "Français" }
|
|
2245
2199
|
],
|
|
2246
2200
|
current: "es",
|
|
2247
|
-
onChange: (
|
|
2201
|
+
onChange: (v) => y(v)
|
|
2248
2202
|
}
|
|
2249
2203
|
)
|
|
2250
2204
|
] })
|
|
2251
2205
|
] }),
|
|
2252
|
-
/* @__PURE__ */
|
|
2206
|
+
/* @__PURE__ */ w(
|
|
2253
2207
|
"button",
|
|
2254
2208
|
{
|
|
2255
2209
|
onClick: $t,
|
|
2256
2210
|
disabled: o.length === 0,
|
|
2257
|
-
className: `${
|
|
2211
|
+
className: `${T.navButton} ${T.navButtonLeft}`,
|
|
2258
2212
|
title: "Anterior",
|
|
2259
2213
|
onMouseOver: () => L(!0),
|
|
2260
2214
|
onMouseOut: () => L(!1),
|
|
2261
|
-
children: /* @__PURE__ */
|
|
2215
|
+
children: /* @__PURE__ */ w(
|
|
2262
2216
|
"svg",
|
|
2263
2217
|
{
|
|
2264
2218
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2276,21 +2230,21 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2276
2230
|
transition: "transform 0.2s ease-in-out",
|
|
2277
2231
|
transform: Q ? "scale(1.5)" : "scale(1)"
|
|
2278
2232
|
},
|
|
2279
|
-
children: /* @__PURE__ */
|
|
2233
|
+
children: /* @__PURE__ */ w("path", { d: "M15 18l-6-6 6-6" })
|
|
2280
2234
|
}
|
|
2281
2235
|
)
|
|
2282
2236
|
}
|
|
2283
2237
|
),
|
|
2284
|
-
/* @__PURE__ */
|
|
2238
|
+
/* @__PURE__ */ w(
|
|
2285
2239
|
"button",
|
|
2286
2240
|
{
|
|
2287
2241
|
onClick: Ht,
|
|
2288
2242
|
disabled: o.length === 0,
|
|
2289
|
-
className: `${
|
|
2243
|
+
className: `${T.navButton} ${T.navButtonRight}`,
|
|
2290
2244
|
title: "Siguiente",
|
|
2291
2245
|
onMouseOver: () => J(!0),
|
|
2292
2246
|
onMouseOut: () => J(!1),
|
|
2293
|
-
children: /* @__PURE__ */
|
|
2247
|
+
children: /* @__PURE__ */ w(
|
|
2294
2248
|
"svg",
|
|
2295
2249
|
{
|
|
2296
2250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2308,49 +2262,49 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2308
2262
|
transition: "transform 0.2s ease-in-out",
|
|
2309
2263
|
transform: I ? "scale(1.5)" : "scale(1)"
|
|
2310
2264
|
},
|
|
2311
|
-
children: /* @__PURE__ */
|
|
2265
|
+
children: /* @__PURE__ */ w("path", { d: "M9 6l6 6-6 6" })
|
|
2312
2266
|
}
|
|
2313
2267
|
)
|
|
2314
2268
|
}
|
|
2315
2269
|
),
|
|
2316
|
-
/* @__PURE__ */
|
|
2270
|
+
/* @__PURE__ */ w(
|
|
2317
2271
|
"img",
|
|
2318
2272
|
{
|
|
2319
|
-
src:
|
|
2273
|
+
src: fe.imageUrl || ct,
|
|
2320
2274
|
alt: "Background",
|
|
2321
|
-
className:
|
|
2275
|
+
className: T.backgroundImage,
|
|
2322
2276
|
style: { opacity: W ? 1 : 0.7 },
|
|
2323
|
-
onError: (
|
|
2277
|
+
onError: (v) => v.currentTarget.src = ct
|
|
2324
2278
|
}
|
|
2325
2279
|
),
|
|
2326
|
-
W && /* @__PURE__ */
|
|
2280
|
+
W && /* @__PURE__ */ w(We, { children: /* @__PURE__ */ w(
|
|
2327
2281
|
"img",
|
|
2328
2282
|
{
|
|
2329
|
-
src:
|
|
2283
|
+
src: q,
|
|
2330
2284
|
alt: "Avatar",
|
|
2331
|
-
className:
|
|
2285
|
+
className: T.avatar,
|
|
2332
2286
|
style: { transform: `scale(${ze % 10 < 5 ? 4 : 4.05})` }
|
|
2333
2287
|
}
|
|
2334
2288
|
) }),
|
|
2335
|
-
/* @__PURE__ */
|
|
2336
|
-
/* @__PURE__ */
|
|
2337
|
-
W && /* @__PURE__ */
|
|
2289
|
+
/* @__PURE__ */ V("div", { className: T.caption, children: [
|
|
2290
|
+
/* @__PURE__ */ w("h4", { className: T.captionTitle, children: fe.name }),
|
|
2291
|
+
W && /* @__PURE__ */ w(We, { children: /* @__PURE__ */ w("p", { className: T.captionText, children: m.length > 0 && m[_] }) })
|
|
2338
2292
|
] }),
|
|
2339
|
-
|
|
2340
|
-
/* @__PURE__ */
|
|
2341
|
-
/* @__PURE__ */
|
|
2293
|
+
O && /* @__PURE__ */ V("div", { className: T.loadingOverlay, children: [
|
|
2294
|
+
/* @__PURE__ */ w("div", { className: T.loadingSpinner }),
|
|
2295
|
+
/* @__PURE__ */ w("p", { children: "Cargando siguiente patrimonio..." })
|
|
2342
2296
|
] }),
|
|
2343
|
-
|
|
2297
|
+
ue && /* @__PURE__ */ w("div", { className: T.playbackControls, children: Ut ? (
|
|
2344
2298
|
// Loading spinner
|
|
2345
|
-
/* @__PURE__ */
|
|
2299
|
+
/* @__PURE__ */ w("button", { disabled: !0, className: T.loadingButton, children: /* @__PURE__ */ V(
|
|
2346
2300
|
"svg",
|
|
2347
2301
|
{
|
|
2348
|
-
className:
|
|
2302
|
+
className: T.spinner,
|
|
2349
2303
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2350
2304
|
fill: "none",
|
|
2351
2305
|
viewBox: "0 0 24 24",
|
|
2352
2306
|
children: [
|
|
2353
|
-
/* @__PURE__ */
|
|
2307
|
+
/* @__PURE__ */ w(
|
|
2354
2308
|
"circle",
|
|
2355
2309
|
{
|
|
2356
2310
|
className: "opacity-25",
|
|
@@ -2361,7 +2315,7 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2361
2315
|
strokeWidth: "4"
|
|
2362
2316
|
}
|
|
2363
2317
|
),
|
|
2364
|
-
/* @__PURE__ */
|
|
2318
|
+
/* @__PURE__ */ w(
|
|
2365
2319
|
"path",
|
|
2366
2320
|
{
|
|
2367
2321
|
className: "opacity-75",
|
|
@@ -2374,13 +2328,13 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2374
2328
|
) })
|
|
2375
2329
|
) : !W && !He ? (
|
|
2376
2330
|
// Play (desde cero)
|
|
2377
|
-
/* @__PURE__ */
|
|
2331
|
+
/* @__PURE__ */ w(
|
|
2378
2332
|
"button",
|
|
2379
2333
|
{
|
|
2380
2334
|
onClick: Ve,
|
|
2381
|
-
disabled: o.length === 0 ||
|
|
2382
|
-
className:
|
|
2383
|
-
children: /* @__PURE__ */
|
|
2335
|
+
disabled: o.length === 0 || O,
|
|
2336
|
+
className: T.playButton,
|
|
2337
|
+
children: /* @__PURE__ */ w(
|
|
2384
2338
|
"svg",
|
|
2385
2339
|
{
|
|
2386
2340
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2392,14 +2346,14 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2392
2346
|
strokeWidth: "2",
|
|
2393
2347
|
strokeLinecap: "round",
|
|
2394
2348
|
strokeLinejoin: "round",
|
|
2395
|
-
children: /* @__PURE__ */
|
|
2349
|
+
children: /* @__PURE__ */ w("path", { d: "M9 8.5 L9 15.5 L16 12 Z" })
|
|
2396
2350
|
}
|
|
2397
2351
|
)
|
|
2398
2352
|
}
|
|
2399
2353
|
)
|
|
2400
2354
|
) : He ? (
|
|
2401
2355
|
// Resume
|
|
2402
|
-
/* @__PURE__ */
|
|
2356
|
+
/* @__PURE__ */ w("button", { onClick: qt, className: T.playButton, children: /* @__PURE__ */ w(
|
|
2403
2357
|
"svg",
|
|
2404
2358
|
{
|
|
2405
2359
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2411,12 +2365,12 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2411
2365
|
strokeWidth: "2",
|
|
2412
2366
|
strokeLinecap: "round",
|
|
2413
2367
|
strokeLinejoin: "round",
|
|
2414
|
-
children: /* @__PURE__ */
|
|
2368
|
+
children: /* @__PURE__ */ w("path", { d: "M9 8.5 L9 15.5 L16 12 Z" })
|
|
2415
2369
|
}
|
|
2416
2370
|
) })
|
|
2417
2371
|
) : (
|
|
2418
2372
|
// Pause
|
|
2419
|
-
/* @__PURE__ */
|
|
2373
|
+
/* @__PURE__ */ w("button", { onClick: Mt, className: T.pauseButton, children: /* @__PURE__ */ V(
|
|
2420
2374
|
"svg",
|
|
2421
2375
|
{
|
|
2422
2376
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2429,16 +2383,16 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2429
2383
|
strokeLinecap: "round",
|
|
2430
2384
|
strokeLinejoin: "round",
|
|
2431
2385
|
children: [
|
|
2432
|
-
/* @__PURE__ */
|
|
2433
|
-
/* @__PURE__ */
|
|
2386
|
+
/* @__PURE__ */ w("line", { x1: "10", y1: "8", x2: "10", y2: "16" }),
|
|
2387
|
+
/* @__PURE__ */ w("line", { x1: "14", y1: "8", x2: "14", y2: "16" })
|
|
2434
2388
|
]
|
|
2435
2389
|
}
|
|
2436
2390
|
) })
|
|
2437
2391
|
) }),
|
|
2438
|
-
/* @__PURE__ */
|
|
2392
|
+
/* @__PURE__ */ w("div", { className: T.progressBar, children: /* @__PURE__ */ w(
|
|
2439
2393
|
"div",
|
|
2440
2394
|
{
|
|
2441
|
-
className:
|
|
2395
|
+
className: T.progressFill,
|
|
2442
2396
|
style: { width: `${ze}%` }
|
|
2443
2397
|
}
|
|
2444
2398
|
) })
|
|
@@ -2446,10 +2400,10 @@ const Nr = "_selectorWrapper_1kmif_1", kr = "_iconButton_1kmif_6", Br = "_dropdo
|
|
|
2446
2400
|
] });
|
|
2447
2401
|
};
|
|
2448
2402
|
export {
|
|
2449
|
-
|
|
2403
|
+
Pr as LanguageSelector,
|
|
2450
2404
|
oe as LanguageSelectorStyles,
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2405
|
+
Is as StoryVisualizer,
|
|
2406
|
+
T as StoryVisualizerStyles,
|
|
2407
|
+
Us as voices
|
|
2454
2408
|
};
|
|
2455
2409
|
//# sourceMappingURL=ocity-heritage-visualizer.es.js.map
|