fimoi-ui 1.0.0
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/demo.html +1 -0
- package/fimoi-ui.common.js +3044 -0
- package/fimoi-ui.common.js.map +1 -0
- package/fimoi-ui.css +1 -0
- package/fimoi-ui.umd.js +3055 -0
- package/fimoi-ui.umd.js.map +1 -0
- package/fimoi-ui.umd.min.js +2 -0
- package/fimoi-ui.umd.min.js.map +1 -0
- package/package.json +19 -0
package/fimoi-ui.umd.js
ADDED
|
@@ -0,0 +1,3055 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["fimoi-ui"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["fimoi-ui"] = factory();
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function() {
|
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 9306:
|
|
16
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var isCallable = __webpack_require__(4901);
|
|
20
|
+
var tryToString = __webpack_require__(6823);
|
|
21
|
+
|
|
22
|
+
var $TypeError = TypeError;
|
|
23
|
+
|
|
24
|
+
// `Assert: IsCallable(argument) is true`
|
|
25
|
+
module.exports = function (argument) {
|
|
26
|
+
if (isCallable(argument)) return argument;
|
|
27
|
+
throw new $TypeError(tryToString(argument) + ' is not a function');
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
33
|
+
/***/ 8551:
|
|
34
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
var isObject = __webpack_require__(34);
|
|
38
|
+
|
|
39
|
+
var $String = String;
|
|
40
|
+
var $TypeError = TypeError;
|
|
41
|
+
|
|
42
|
+
// `Assert: Type(argument) is Object`
|
|
43
|
+
module.exports = function (argument) {
|
|
44
|
+
if (isObject(argument)) return argument;
|
|
45
|
+
throw new $TypeError($String(argument) + ' is not an object');
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/***/ }),
|
|
50
|
+
|
|
51
|
+
/***/ 9617:
|
|
52
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
var toIndexedObject = __webpack_require__(5397);
|
|
56
|
+
var toAbsoluteIndex = __webpack_require__(5610);
|
|
57
|
+
var lengthOfArrayLike = __webpack_require__(6198);
|
|
58
|
+
|
|
59
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
60
|
+
var createMethod = function (IS_INCLUDES) {
|
|
61
|
+
return function ($this, el, fromIndex) {
|
|
62
|
+
var O = toIndexedObject($this);
|
|
63
|
+
var length = lengthOfArrayLike(O);
|
|
64
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
65
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
66
|
+
var value;
|
|
67
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
68
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
69
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
70
|
+
value = O[index++];
|
|
71
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
72
|
+
if (value !== value) return true;
|
|
73
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
74
|
+
} else for (;length > index; index++) {
|
|
75
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
76
|
+
} return !IS_INCLUDES && -1;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
module.exports = {
|
|
81
|
+
// `Array.prototype.includes` method
|
|
82
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
83
|
+
includes: createMethod(true),
|
|
84
|
+
// `Array.prototype.indexOf` method
|
|
85
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
86
|
+
indexOf: createMethod(false)
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/***/ }),
|
|
91
|
+
|
|
92
|
+
/***/ 2195:
|
|
93
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
var uncurryThis = __webpack_require__(9504);
|
|
97
|
+
|
|
98
|
+
var toString = uncurryThis({}.toString);
|
|
99
|
+
var stringSlice = uncurryThis(''.slice);
|
|
100
|
+
|
|
101
|
+
module.exports = function (it) {
|
|
102
|
+
return stringSlice(toString(it), 8, -1);
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/***/ }),
|
|
107
|
+
|
|
108
|
+
/***/ 6955:
|
|
109
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
var TO_STRING_TAG_SUPPORT = __webpack_require__(2140);
|
|
113
|
+
var isCallable = __webpack_require__(4901);
|
|
114
|
+
var classofRaw = __webpack_require__(2195);
|
|
115
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
116
|
+
|
|
117
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
118
|
+
var $Object = Object;
|
|
119
|
+
|
|
120
|
+
// ES3 wrong here
|
|
121
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
122
|
+
|
|
123
|
+
// fallback for IE11 Script Access Denied error
|
|
124
|
+
var tryGet = function (it, key) {
|
|
125
|
+
try {
|
|
126
|
+
return it[key];
|
|
127
|
+
} catch (error) { /* empty */ }
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
131
|
+
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
132
|
+
var O, tag, result;
|
|
133
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
134
|
+
// @@toStringTag case
|
|
135
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
136
|
+
// builtinTag case
|
|
137
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
138
|
+
// ES3 arguments fallback
|
|
139
|
+
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
/***/ }),
|
|
144
|
+
|
|
145
|
+
/***/ 7740:
|
|
146
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
var hasOwn = __webpack_require__(9297);
|
|
150
|
+
var ownKeys = __webpack_require__(5031);
|
|
151
|
+
var getOwnPropertyDescriptorModule = __webpack_require__(7347);
|
|
152
|
+
var definePropertyModule = __webpack_require__(4913);
|
|
153
|
+
|
|
154
|
+
module.exports = function (target, source, exceptions) {
|
|
155
|
+
var keys = ownKeys(source);
|
|
156
|
+
var defineProperty = definePropertyModule.f;
|
|
157
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
158
|
+
for (var i = 0; i < keys.length; i++) {
|
|
159
|
+
var key = keys[i];
|
|
160
|
+
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
161
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
/***/ }),
|
|
168
|
+
|
|
169
|
+
/***/ 6699:
|
|
170
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
174
|
+
var definePropertyModule = __webpack_require__(4913);
|
|
175
|
+
var createPropertyDescriptor = __webpack_require__(6980);
|
|
176
|
+
|
|
177
|
+
module.exports = DESCRIPTORS ? function (object, key, value) {
|
|
178
|
+
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
|
179
|
+
} : function (object, key, value) {
|
|
180
|
+
object[key] = value;
|
|
181
|
+
return object;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
/***/ }),
|
|
186
|
+
|
|
187
|
+
/***/ 6980:
|
|
188
|
+
/***/ (function(module) {
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
module.exports = function (bitmap, value) {
|
|
192
|
+
return {
|
|
193
|
+
enumerable: !(bitmap & 1),
|
|
194
|
+
configurable: !(bitmap & 2),
|
|
195
|
+
writable: !(bitmap & 4),
|
|
196
|
+
value: value
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
/***/ }),
|
|
202
|
+
|
|
203
|
+
/***/ 4659:
|
|
204
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
208
|
+
var definePropertyModule = __webpack_require__(4913);
|
|
209
|
+
var createPropertyDescriptor = __webpack_require__(6980);
|
|
210
|
+
|
|
211
|
+
module.exports = function (object, key, value) {
|
|
212
|
+
if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
|
|
213
|
+
else object[key] = value;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
/***/ }),
|
|
218
|
+
|
|
219
|
+
/***/ 6840:
|
|
220
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
var isCallable = __webpack_require__(4901);
|
|
224
|
+
var definePropertyModule = __webpack_require__(4913);
|
|
225
|
+
var makeBuiltIn = __webpack_require__(283);
|
|
226
|
+
var defineGlobalProperty = __webpack_require__(9433);
|
|
227
|
+
|
|
228
|
+
module.exports = function (O, key, value, options) {
|
|
229
|
+
if (!options) options = {};
|
|
230
|
+
var simple = options.enumerable;
|
|
231
|
+
var name = options.name !== undefined ? options.name : key;
|
|
232
|
+
if (isCallable(value)) makeBuiltIn(value, name, options);
|
|
233
|
+
if (options.global) {
|
|
234
|
+
if (simple) O[key] = value;
|
|
235
|
+
else defineGlobalProperty(key, value);
|
|
236
|
+
} else {
|
|
237
|
+
try {
|
|
238
|
+
if (!options.unsafe) delete O[key];
|
|
239
|
+
else if (O[key]) simple = true;
|
|
240
|
+
} catch (error) { /* empty */ }
|
|
241
|
+
if (simple) O[key] = value;
|
|
242
|
+
else definePropertyModule.f(O, key, {
|
|
243
|
+
value: value,
|
|
244
|
+
enumerable: false,
|
|
245
|
+
configurable: !options.nonConfigurable,
|
|
246
|
+
writable: !options.nonWritable
|
|
247
|
+
});
|
|
248
|
+
} return O;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
/***/ }),
|
|
253
|
+
|
|
254
|
+
/***/ 9433:
|
|
255
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
var globalThis = __webpack_require__(4576);
|
|
259
|
+
|
|
260
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
261
|
+
var defineProperty = Object.defineProperty;
|
|
262
|
+
|
|
263
|
+
module.exports = function (key, value) {
|
|
264
|
+
try {
|
|
265
|
+
defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
|
|
266
|
+
} catch (error) {
|
|
267
|
+
globalThis[key] = value;
|
|
268
|
+
} return value;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
/***/ }),
|
|
273
|
+
|
|
274
|
+
/***/ 3724:
|
|
275
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
var fails = __webpack_require__(9039);
|
|
279
|
+
|
|
280
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
281
|
+
module.exports = !fails(function () {
|
|
282
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
283
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
/***/ }),
|
|
288
|
+
|
|
289
|
+
/***/ 4055:
|
|
290
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
var globalThis = __webpack_require__(4576);
|
|
294
|
+
var isObject = __webpack_require__(34);
|
|
295
|
+
|
|
296
|
+
var document = globalThis.document;
|
|
297
|
+
// typeof document.createElement is 'object' in old IE
|
|
298
|
+
var EXISTS = isObject(document) && isObject(document.createElement);
|
|
299
|
+
|
|
300
|
+
module.exports = function (it) {
|
|
301
|
+
return EXISTS ? document.createElement(it) : {};
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
/***/ }),
|
|
306
|
+
|
|
307
|
+
/***/ 8727:
|
|
308
|
+
/***/ (function(module) {
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
// IE8- don't enum bug keys
|
|
312
|
+
module.exports = [
|
|
313
|
+
'constructor',
|
|
314
|
+
'hasOwnProperty',
|
|
315
|
+
'isPrototypeOf',
|
|
316
|
+
'propertyIsEnumerable',
|
|
317
|
+
'toLocaleString',
|
|
318
|
+
'toString',
|
|
319
|
+
'valueOf'
|
|
320
|
+
];
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
/***/ }),
|
|
324
|
+
|
|
325
|
+
/***/ 2839:
|
|
326
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
var globalThis = __webpack_require__(4576);
|
|
330
|
+
|
|
331
|
+
var navigator = globalThis.navigator;
|
|
332
|
+
var userAgent = navigator && navigator.userAgent;
|
|
333
|
+
|
|
334
|
+
module.exports = userAgent ? String(userAgent) : '';
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
/***/ }),
|
|
338
|
+
|
|
339
|
+
/***/ 9519:
|
|
340
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
var globalThis = __webpack_require__(4576);
|
|
344
|
+
var userAgent = __webpack_require__(2839);
|
|
345
|
+
|
|
346
|
+
var process = globalThis.process;
|
|
347
|
+
var Deno = globalThis.Deno;
|
|
348
|
+
var versions = process && process.versions || Deno && Deno.version;
|
|
349
|
+
var v8 = versions && versions.v8;
|
|
350
|
+
var match, version;
|
|
351
|
+
|
|
352
|
+
if (v8) {
|
|
353
|
+
match = v8.split('.');
|
|
354
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
|
355
|
+
// but their correct versions are not interesting for us
|
|
356
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
360
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
|
361
|
+
if (!version && userAgent) {
|
|
362
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
363
|
+
if (!match || match[1] >= 74) {
|
|
364
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
365
|
+
if (match) version = +match[1];
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
module.exports = version;
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
/***/ }),
|
|
373
|
+
|
|
374
|
+
/***/ 6518:
|
|
375
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
var globalThis = __webpack_require__(4576);
|
|
379
|
+
var getOwnPropertyDescriptor = (__webpack_require__(7347).f);
|
|
380
|
+
var createNonEnumerableProperty = __webpack_require__(6699);
|
|
381
|
+
var defineBuiltIn = __webpack_require__(6840);
|
|
382
|
+
var defineGlobalProperty = __webpack_require__(9433);
|
|
383
|
+
var copyConstructorProperties = __webpack_require__(7740);
|
|
384
|
+
var isForced = __webpack_require__(2796);
|
|
385
|
+
|
|
386
|
+
/*
|
|
387
|
+
options.target - name of the target object
|
|
388
|
+
options.global - target is the global object
|
|
389
|
+
options.stat - export as static methods of target
|
|
390
|
+
options.proto - export as prototype methods of target
|
|
391
|
+
options.real - real prototype method for the `pure` version
|
|
392
|
+
options.forced - export even if the native feature is available
|
|
393
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
394
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
395
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
396
|
+
options.sham - add a flag to not completely full polyfills
|
|
397
|
+
options.enumerable - export as enumerable property
|
|
398
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
399
|
+
options.name - the .name of the function if it does not match the key
|
|
400
|
+
*/
|
|
401
|
+
module.exports = function (options, source) {
|
|
402
|
+
var TARGET = options.target;
|
|
403
|
+
var GLOBAL = options.global;
|
|
404
|
+
var STATIC = options.stat;
|
|
405
|
+
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
406
|
+
if (GLOBAL) {
|
|
407
|
+
target = globalThis;
|
|
408
|
+
} else if (STATIC) {
|
|
409
|
+
target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
|
|
410
|
+
} else {
|
|
411
|
+
target = globalThis[TARGET] && globalThis[TARGET].prototype;
|
|
412
|
+
}
|
|
413
|
+
if (target) for (key in source) {
|
|
414
|
+
sourceProperty = source[key];
|
|
415
|
+
if (options.dontCallGetSet) {
|
|
416
|
+
descriptor = getOwnPropertyDescriptor(target, key);
|
|
417
|
+
targetProperty = descriptor && descriptor.value;
|
|
418
|
+
} else targetProperty = target[key];
|
|
419
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
420
|
+
// contained in target
|
|
421
|
+
if (!FORCED && targetProperty !== undefined) {
|
|
422
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
423
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
|
424
|
+
}
|
|
425
|
+
// add a flag to not completely full polyfills
|
|
426
|
+
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
427
|
+
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
428
|
+
}
|
|
429
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
/***/ }),
|
|
435
|
+
|
|
436
|
+
/***/ 9039:
|
|
437
|
+
/***/ (function(module) {
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
module.exports = function (exec) {
|
|
441
|
+
try {
|
|
442
|
+
return !!exec();
|
|
443
|
+
} catch (error) {
|
|
444
|
+
return true;
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
/***/ }),
|
|
450
|
+
|
|
451
|
+
/***/ 616:
|
|
452
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
var fails = __webpack_require__(9039);
|
|
456
|
+
|
|
457
|
+
module.exports = !fails(function () {
|
|
458
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
459
|
+
var test = (function () { /* empty */ }).bind();
|
|
460
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
461
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
/***/ }),
|
|
466
|
+
|
|
467
|
+
/***/ 9565:
|
|
468
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
var NATIVE_BIND = __webpack_require__(616);
|
|
472
|
+
|
|
473
|
+
var call = Function.prototype.call;
|
|
474
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
475
|
+
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
|
476
|
+
return call.apply(call, arguments);
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
/***/ }),
|
|
481
|
+
|
|
482
|
+
/***/ 350:
|
|
483
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
487
|
+
var hasOwn = __webpack_require__(9297);
|
|
488
|
+
|
|
489
|
+
var FunctionPrototype = Function.prototype;
|
|
490
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
491
|
+
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
|
492
|
+
|
|
493
|
+
var EXISTS = hasOwn(FunctionPrototype, 'name');
|
|
494
|
+
// additional protection from minified / mangled / dropped function names
|
|
495
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
496
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
497
|
+
|
|
498
|
+
module.exports = {
|
|
499
|
+
EXISTS: EXISTS,
|
|
500
|
+
PROPER: PROPER,
|
|
501
|
+
CONFIGURABLE: CONFIGURABLE
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
/***/ }),
|
|
506
|
+
|
|
507
|
+
/***/ 9504:
|
|
508
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
var NATIVE_BIND = __webpack_require__(616);
|
|
512
|
+
|
|
513
|
+
var FunctionPrototype = Function.prototype;
|
|
514
|
+
var call = FunctionPrototype.call;
|
|
515
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
516
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
|
517
|
+
|
|
518
|
+
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
519
|
+
return function () {
|
|
520
|
+
return call.apply(fn, arguments);
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
/***/ }),
|
|
526
|
+
|
|
527
|
+
/***/ 7751:
|
|
528
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
var globalThis = __webpack_require__(4576);
|
|
532
|
+
var isCallable = __webpack_require__(4901);
|
|
533
|
+
|
|
534
|
+
var aFunction = function (argument) {
|
|
535
|
+
return isCallable(argument) ? argument : undefined;
|
|
536
|
+
};
|
|
537
|
+
|
|
538
|
+
module.exports = function (namespace, method) {
|
|
539
|
+
return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
/***/ }),
|
|
544
|
+
|
|
545
|
+
/***/ 5966:
|
|
546
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
var aCallable = __webpack_require__(9306);
|
|
550
|
+
var isNullOrUndefined = __webpack_require__(4117);
|
|
551
|
+
|
|
552
|
+
// `GetMethod` abstract operation
|
|
553
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
554
|
+
module.exports = function (V, P) {
|
|
555
|
+
var func = V[P];
|
|
556
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
/***/ }),
|
|
561
|
+
|
|
562
|
+
/***/ 4576:
|
|
563
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
var check = function (it) {
|
|
567
|
+
return it && it.Math === Math && it;
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
571
|
+
module.exports =
|
|
572
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
573
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
574
|
+
check(typeof window == 'object' && window) ||
|
|
575
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
576
|
+
check(typeof self == 'object' && self) ||
|
|
577
|
+
check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
|
|
578
|
+
check(typeof this == 'object' && this) ||
|
|
579
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
580
|
+
(function () { return this; })() || Function('return this')();
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
/***/ }),
|
|
584
|
+
|
|
585
|
+
/***/ 9297:
|
|
586
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
var uncurryThis = __webpack_require__(9504);
|
|
590
|
+
var toObject = __webpack_require__(8981);
|
|
591
|
+
|
|
592
|
+
var hasOwnProperty = uncurryThis({}.hasOwnProperty);
|
|
593
|
+
|
|
594
|
+
// `HasOwnProperty` abstract operation
|
|
595
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
596
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
597
|
+
module.exports = Object.hasOwn || function hasOwn(it, key) {
|
|
598
|
+
return hasOwnProperty(toObject(it), key);
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
/***/ }),
|
|
603
|
+
|
|
604
|
+
/***/ 421:
|
|
605
|
+
/***/ (function(module) {
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
module.exports = {};
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
/***/ }),
|
|
612
|
+
|
|
613
|
+
/***/ 5917:
|
|
614
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
618
|
+
var fails = __webpack_require__(9039);
|
|
619
|
+
var createElement = __webpack_require__(4055);
|
|
620
|
+
|
|
621
|
+
// Thanks to IE8 for its funny defineProperty
|
|
622
|
+
module.exports = !DESCRIPTORS && !fails(function () {
|
|
623
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
624
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
625
|
+
get: function () { return 7; }
|
|
626
|
+
}).a !== 7;
|
|
627
|
+
});
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
/***/ }),
|
|
631
|
+
|
|
632
|
+
/***/ 7055:
|
|
633
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
var uncurryThis = __webpack_require__(9504);
|
|
637
|
+
var fails = __webpack_require__(9039);
|
|
638
|
+
var classof = __webpack_require__(2195);
|
|
639
|
+
|
|
640
|
+
var $Object = Object;
|
|
641
|
+
var split = uncurryThis(''.split);
|
|
642
|
+
|
|
643
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
644
|
+
module.exports = fails(function () {
|
|
645
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
646
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
647
|
+
return !$Object('z').propertyIsEnumerable(0);
|
|
648
|
+
}) ? function (it) {
|
|
649
|
+
return classof(it) === 'String' ? split(it, '') : $Object(it);
|
|
650
|
+
} : $Object;
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
/***/ }),
|
|
654
|
+
|
|
655
|
+
/***/ 3706:
|
|
656
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
var uncurryThis = __webpack_require__(9504);
|
|
660
|
+
var isCallable = __webpack_require__(4901);
|
|
661
|
+
var store = __webpack_require__(7629);
|
|
662
|
+
|
|
663
|
+
var functionToString = uncurryThis(Function.toString);
|
|
664
|
+
|
|
665
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
666
|
+
if (!isCallable(store.inspectSource)) {
|
|
667
|
+
store.inspectSource = function (it) {
|
|
668
|
+
return functionToString(it);
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
module.exports = store.inspectSource;
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
/***/ }),
|
|
676
|
+
|
|
677
|
+
/***/ 1181:
|
|
678
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
var NATIVE_WEAK_MAP = __webpack_require__(8622);
|
|
682
|
+
var globalThis = __webpack_require__(4576);
|
|
683
|
+
var isObject = __webpack_require__(34);
|
|
684
|
+
var createNonEnumerableProperty = __webpack_require__(6699);
|
|
685
|
+
var hasOwn = __webpack_require__(9297);
|
|
686
|
+
var shared = __webpack_require__(7629);
|
|
687
|
+
var sharedKey = __webpack_require__(6119);
|
|
688
|
+
var hiddenKeys = __webpack_require__(421);
|
|
689
|
+
|
|
690
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
691
|
+
var TypeError = globalThis.TypeError;
|
|
692
|
+
var WeakMap = globalThis.WeakMap;
|
|
693
|
+
var set, get, has;
|
|
694
|
+
|
|
695
|
+
var enforce = function (it) {
|
|
696
|
+
return has(it) ? get(it) : set(it, {});
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
var getterFor = function (TYPE) {
|
|
700
|
+
return function (it) {
|
|
701
|
+
var state;
|
|
702
|
+
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
703
|
+
throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
704
|
+
} return state;
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
|
709
|
+
var store = shared.state || (shared.state = new WeakMap());
|
|
710
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
711
|
+
store.get = store.get;
|
|
712
|
+
store.has = store.has;
|
|
713
|
+
store.set = store.set;
|
|
714
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
715
|
+
set = function (it, metadata) {
|
|
716
|
+
if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
717
|
+
metadata.facade = it;
|
|
718
|
+
store.set(it, metadata);
|
|
719
|
+
return metadata;
|
|
720
|
+
};
|
|
721
|
+
get = function (it) {
|
|
722
|
+
return store.get(it) || {};
|
|
723
|
+
};
|
|
724
|
+
has = function (it) {
|
|
725
|
+
return store.has(it);
|
|
726
|
+
};
|
|
727
|
+
} else {
|
|
728
|
+
var STATE = sharedKey('state');
|
|
729
|
+
hiddenKeys[STATE] = true;
|
|
730
|
+
set = function (it, metadata) {
|
|
731
|
+
if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
732
|
+
metadata.facade = it;
|
|
733
|
+
createNonEnumerableProperty(it, STATE, metadata);
|
|
734
|
+
return metadata;
|
|
735
|
+
};
|
|
736
|
+
get = function (it) {
|
|
737
|
+
return hasOwn(it, STATE) ? it[STATE] : {};
|
|
738
|
+
};
|
|
739
|
+
has = function (it) {
|
|
740
|
+
return hasOwn(it, STATE);
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
module.exports = {
|
|
745
|
+
set: set,
|
|
746
|
+
get: get,
|
|
747
|
+
has: has,
|
|
748
|
+
enforce: enforce,
|
|
749
|
+
getterFor: getterFor
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
/***/ }),
|
|
754
|
+
|
|
755
|
+
/***/ 4376:
|
|
756
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
var classof = __webpack_require__(2195);
|
|
760
|
+
|
|
761
|
+
// `IsArray` abstract operation
|
|
762
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
763
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
764
|
+
module.exports = Array.isArray || function isArray(argument) {
|
|
765
|
+
return classof(argument) === 'Array';
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
/***/ }),
|
|
770
|
+
|
|
771
|
+
/***/ 4901:
|
|
772
|
+
/***/ (function(module) {
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
776
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
777
|
+
|
|
778
|
+
// `IsCallable` abstract operation
|
|
779
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
780
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
781
|
+
module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
782
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
783
|
+
} : function (argument) {
|
|
784
|
+
return typeof argument == 'function';
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
/***/ }),
|
|
789
|
+
|
|
790
|
+
/***/ 2796:
|
|
791
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
var fails = __webpack_require__(9039);
|
|
795
|
+
var isCallable = __webpack_require__(4901);
|
|
796
|
+
|
|
797
|
+
var replacement = /#|\.prototype\./;
|
|
798
|
+
|
|
799
|
+
var isForced = function (feature, detection) {
|
|
800
|
+
var value = data[normalize(feature)];
|
|
801
|
+
return value === POLYFILL ? true
|
|
802
|
+
: value === NATIVE ? false
|
|
803
|
+
: isCallable(detection) ? fails(detection)
|
|
804
|
+
: !!detection;
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
var normalize = isForced.normalize = function (string) {
|
|
808
|
+
return String(string).replace(replacement, '.').toLowerCase();
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
var data = isForced.data = {};
|
|
812
|
+
var NATIVE = isForced.NATIVE = 'N';
|
|
813
|
+
var POLYFILL = isForced.POLYFILL = 'P';
|
|
814
|
+
|
|
815
|
+
module.exports = isForced;
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
/***/ }),
|
|
819
|
+
|
|
820
|
+
/***/ 4117:
|
|
821
|
+
/***/ (function(module) {
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
825
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
826
|
+
module.exports = function (it) {
|
|
827
|
+
return it === null || it === undefined;
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
/***/ }),
|
|
832
|
+
|
|
833
|
+
/***/ 34:
|
|
834
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
var isCallable = __webpack_require__(4901);
|
|
838
|
+
|
|
839
|
+
module.exports = function (it) {
|
|
840
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
841
|
+
};
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
/***/ }),
|
|
845
|
+
|
|
846
|
+
/***/ 6395:
|
|
847
|
+
/***/ (function(module) {
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
module.exports = false;
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
/***/ }),
|
|
854
|
+
|
|
855
|
+
/***/ 757:
|
|
856
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
var getBuiltIn = __webpack_require__(7751);
|
|
860
|
+
var isCallable = __webpack_require__(4901);
|
|
861
|
+
var isPrototypeOf = __webpack_require__(1625);
|
|
862
|
+
var USE_SYMBOL_AS_UID = __webpack_require__(7040);
|
|
863
|
+
|
|
864
|
+
var $Object = Object;
|
|
865
|
+
|
|
866
|
+
module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
|
867
|
+
return typeof it == 'symbol';
|
|
868
|
+
} : function (it) {
|
|
869
|
+
var $Symbol = getBuiltIn('Symbol');
|
|
870
|
+
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
|
|
871
|
+
};
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
/***/ }),
|
|
875
|
+
|
|
876
|
+
/***/ 6198:
|
|
877
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
var toLength = __webpack_require__(8014);
|
|
881
|
+
|
|
882
|
+
// `LengthOfArrayLike` abstract operation
|
|
883
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
884
|
+
module.exports = function (obj) {
|
|
885
|
+
return toLength(obj.length);
|
|
886
|
+
};
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
/***/ }),
|
|
890
|
+
|
|
891
|
+
/***/ 283:
|
|
892
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
var uncurryThis = __webpack_require__(9504);
|
|
896
|
+
var fails = __webpack_require__(9039);
|
|
897
|
+
var isCallable = __webpack_require__(4901);
|
|
898
|
+
var hasOwn = __webpack_require__(9297);
|
|
899
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
900
|
+
var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(350).CONFIGURABLE);
|
|
901
|
+
var inspectSource = __webpack_require__(3706);
|
|
902
|
+
var InternalStateModule = __webpack_require__(1181);
|
|
903
|
+
|
|
904
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
905
|
+
var getInternalState = InternalStateModule.get;
|
|
906
|
+
var $String = String;
|
|
907
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
908
|
+
var defineProperty = Object.defineProperty;
|
|
909
|
+
var stringSlice = uncurryThis(''.slice);
|
|
910
|
+
var replace = uncurryThis(''.replace);
|
|
911
|
+
var join = uncurryThis([].join);
|
|
912
|
+
|
|
913
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
|
914
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
915
|
+
});
|
|
916
|
+
|
|
917
|
+
var TEMPLATE = String(String).split('String');
|
|
918
|
+
|
|
919
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
920
|
+
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
921
|
+
name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
922
|
+
}
|
|
923
|
+
if (options && options.getter) name = 'get ' + name;
|
|
924
|
+
if (options && options.setter) name = 'set ' + name;
|
|
925
|
+
if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
926
|
+
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
|
|
927
|
+
else value.name = name;
|
|
928
|
+
}
|
|
929
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
|
930
|
+
defineProperty(value, 'length', { value: options.arity });
|
|
931
|
+
}
|
|
932
|
+
try {
|
|
933
|
+
if (options && hasOwn(options, 'constructor') && options.constructor) {
|
|
934
|
+
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
|
|
935
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
936
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
937
|
+
} catch (error) { /* empty */ }
|
|
938
|
+
var state = enforceInternalState(value);
|
|
939
|
+
if (!hasOwn(state, 'source')) {
|
|
940
|
+
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
941
|
+
} return value;
|
|
942
|
+
};
|
|
943
|
+
|
|
944
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
945
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
946
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
|
947
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
948
|
+
}, 'toString');
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
/***/ }),
|
|
952
|
+
|
|
953
|
+
/***/ 741:
|
|
954
|
+
/***/ (function(module) {
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
var ceil = Math.ceil;
|
|
958
|
+
var floor = Math.floor;
|
|
959
|
+
|
|
960
|
+
// `Math.trunc` method
|
|
961
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
962
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
963
|
+
module.exports = Math.trunc || function trunc(x) {
|
|
964
|
+
var n = +x;
|
|
965
|
+
return (n > 0 ? floor : ceil)(n);
|
|
966
|
+
};
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
/***/ }),
|
|
970
|
+
|
|
971
|
+
/***/ 4913:
|
|
972
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
976
|
+
var IE8_DOM_DEFINE = __webpack_require__(5917);
|
|
977
|
+
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(8686);
|
|
978
|
+
var anObject = __webpack_require__(8551);
|
|
979
|
+
var toPropertyKey = __webpack_require__(6969);
|
|
980
|
+
|
|
981
|
+
var $TypeError = TypeError;
|
|
982
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
983
|
+
var $defineProperty = Object.defineProperty;
|
|
984
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
985
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
986
|
+
var ENUMERABLE = 'enumerable';
|
|
987
|
+
var CONFIGURABLE = 'configurable';
|
|
988
|
+
var WRITABLE = 'writable';
|
|
989
|
+
|
|
990
|
+
// `Object.defineProperty` method
|
|
991
|
+
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
992
|
+
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
|
993
|
+
anObject(O);
|
|
994
|
+
P = toPropertyKey(P);
|
|
995
|
+
anObject(Attributes);
|
|
996
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
997
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
998
|
+
if (current && current[WRITABLE]) {
|
|
999
|
+
O[P] = Attributes.value;
|
|
1000
|
+
Attributes = {
|
|
1001
|
+
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
|
1002
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
1003
|
+
writable: false
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
} return $defineProperty(O, P, Attributes);
|
|
1007
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
1008
|
+
anObject(O);
|
|
1009
|
+
P = toPropertyKey(P);
|
|
1010
|
+
anObject(Attributes);
|
|
1011
|
+
if (IE8_DOM_DEFINE) try {
|
|
1012
|
+
return $defineProperty(O, P, Attributes);
|
|
1013
|
+
} catch (error) { /* empty */ }
|
|
1014
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
|
|
1015
|
+
if ('value' in Attributes) O[P] = Attributes.value;
|
|
1016
|
+
return O;
|
|
1017
|
+
};
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
/***/ }),
|
|
1021
|
+
|
|
1022
|
+
/***/ 7347:
|
|
1023
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
1027
|
+
var call = __webpack_require__(9565);
|
|
1028
|
+
var propertyIsEnumerableModule = __webpack_require__(8773);
|
|
1029
|
+
var createPropertyDescriptor = __webpack_require__(6980);
|
|
1030
|
+
var toIndexedObject = __webpack_require__(5397);
|
|
1031
|
+
var toPropertyKey = __webpack_require__(6969);
|
|
1032
|
+
var hasOwn = __webpack_require__(9297);
|
|
1033
|
+
var IE8_DOM_DEFINE = __webpack_require__(5917);
|
|
1034
|
+
|
|
1035
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1036
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1037
|
+
|
|
1038
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
1039
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
1040
|
+
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
1041
|
+
O = toIndexedObject(O);
|
|
1042
|
+
P = toPropertyKey(P);
|
|
1043
|
+
if (IE8_DOM_DEFINE) try {
|
|
1044
|
+
return $getOwnPropertyDescriptor(O, P);
|
|
1045
|
+
} catch (error) { /* empty */ }
|
|
1046
|
+
if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
/***/ }),
|
|
1051
|
+
|
|
1052
|
+
/***/ 8480:
|
|
1053
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
var internalObjectKeys = __webpack_require__(1828);
|
|
1057
|
+
var enumBugKeys = __webpack_require__(8727);
|
|
1058
|
+
|
|
1059
|
+
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
1060
|
+
|
|
1061
|
+
// `Object.getOwnPropertyNames` method
|
|
1062
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
1063
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
1064
|
+
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
1065
|
+
return internalObjectKeys(O, hiddenKeys);
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
/***/ }),
|
|
1070
|
+
|
|
1071
|
+
/***/ 3717:
|
|
1072
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1076
|
+
exports.f = Object.getOwnPropertySymbols;
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
/***/ }),
|
|
1080
|
+
|
|
1081
|
+
/***/ 1625:
|
|
1082
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
var uncurryThis = __webpack_require__(9504);
|
|
1086
|
+
|
|
1087
|
+
module.exports = uncurryThis({}.isPrototypeOf);
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
/***/ }),
|
|
1091
|
+
|
|
1092
|
+
/***/ 1828:
|
|
1093
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
var uncurryThis = __webpack_require__(9504);
|
|
1097
|
+
var hasOwn = __webpack_require__(9297);
|
|
1098
|
+
var toIndexedObject = __webpack_require__(5397);
|
|
1099
|
+
var indexOf = (__webpack_require__(9617).indexOf);
|
|
1100
|
+
var hiddenKeys = __webpack_require__(421);
|
|
1101
|
+
|
|
1102
|
+
var push = uncurryThis([].push);
|
|
1103
|
+
|
|
1104
|
+
module.exports = function (object, names) {
|
|
1105
|
+
var O = toIndexedObject(object);
|
|
1106
|
+
var i = 0;
|
|
1107
|
+
var result = [];
|
|
1108
|
+
var key;
|
|
1109
|
+
for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
|
|
1110
|
+
// Don't enum bug & hidden keys
|
|
1111
|
+
while (names.length > i) if (hasOwn(O, key = names[i++])) {
|
|
1112
|
+
~indexOf(result, key) || push(result, key);
|
|
1113
|
+
}
|
|
1114
|
+
return result;
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
/***/ }),
|
|
1119
|
+
|
|
1120
|
+
/***/ 8773:
|
|
1121
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
1125
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1126
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1127
|
+
|
|
1128
|
+
// Nashorn ~ JDK8 bug
|
|
1129
|
+
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
1130
|
+
|
|
1131
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
1132
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
1133
|
+
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
1134
|
+
var descriptor = getOwnPropertyDescriptor(this, V);
|
|
1135
|
+
return !!descriptor && descriptor.enumerable;
|
|
1136
|
+
} : $propertyIsEnumerable;
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
/***/ }),
|
|
1140
|
+
|
|
1141
|
+
/***/ 4270:
|
|
1142
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1143
|
+
|
|
1144
|
+
|
|
1145
|
+
var call = __webpack_require__(9565);
|
|
1146
|
+
var isCallable = __webpack_require__(4901);
|
|
1147
|
+
var isObject = __webpack_require__(34);
|
|
1148
|
+
|
|
1149
|
+
var $TypeError = TypeError;
|
|
1150
|
+
|
|
1151
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
1152
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
1153
|
+
module.exports = function (input, pref) {
|
|
1154
|
+
var fn, val;
|
|
1155
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
|
1156
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
|
|
1157
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
|
1158
|
+
throw new $TypeError("Can't convert object to primitive value");
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
/***/ }),
|
|
1163
|
+
|
|
1164
|
+
/***/ 5031:
|
|
1165
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
var getBuiltIn = __webpack_require__(7751);
|
|
1169
|
+
var uncurryThis = __webpack_require__(9504);
|
|
1170
|
+
var getOwnPropertyNamesModule = __webpack_require__(8480);
|
|
1171
|
+
var getOwnPropertySymbolsModule = __webpack_require__(3717);
|
|
1172
|
+
var anObject = __webpack_require__(8551);
|
|
1173
|
+
|
|
1174
|
+
var concat = uncurryThis([].concat);
|
|
1175
|
+
|
|
1176
|
+
// all object keys, includes non-enumerable and symbols
|
|
1177
|
+
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1178
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
1179
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1180
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
1181
|
+
};
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
/***/ }),
|
|
1185
|
+
|
|
1186
|
+
/***/ 8235:
|
|
1187
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
var uncurryThis = __webpack_require__(9504);
|
|
1191
|
+
var hasOwn = __webpack_require__(9297);
|
|
1192
|
+
|
|
1193
|
+
var $SyntaxError = SyntaxError;
|
|
1194
|
+
var $parseInt = parseInt;
|
|
1195
|
+
var fromCharCode = String.fromCharCode;
|
|
1196
|
+
var at = uncurryThis(''.charAt);
|
|
1197
|
+
var slice = uncurryThis(''.slice);
|
|
1198
|
+
var exec = uncurryThis(/./.exec);
|
|
1199
|
+
|
|
1200
|
+
var codePoints = {
|
|
1201
|
+
'\\"': '"',
|
|
1202
|
+
'\\\\': '\\',
|
|
1203
|
+
'\\/': '/',
|
|
1204
|
+
'\\b': '\b',
|
|
1205
|
+
'\\f': '\f',
|
|
1206
|
+
'\\n': '\n',
|
|
1207
|
+
'\\r': '\r',
|
|
1208
|
+
'\\t': '\t'
|
|
1209
|
+
};
|
|
1210
|
+
|
|
1211
|
+
var IS_4_HEX_DIGITS = /^[\da-f]{4}$/i;
|
|
1212
|
+
// eslint-disable-next-line regexp/no-control-character -- safe
|
|
1213
|
+
var IS_C0_CONTROL_CODE = /^[\u0000-\u001F]$/;
|
|
1214
|
+
|
|
1215
|
+
module.exports = function (source, i) {
|
|
1216
|
+
var unterminated = true;
|
|
1217
|
+
var value = '';
|
|
1218
|
+
while (i < source.length) {
|
|
1219
|
+
var chr = at(source, i);
|
|
1220
|
+
if (chr === '\\') {
|
|
1221
|
+
var twoChars = slice(source, i, i + 2);
|
|
1222
|
+
if (hasOwn(codePoints, twoChars)) {
|
|
1223
|
+
value += codePoints[twoChars];
|
|
1224
|
+
i += 2;
|
|
1225
|
+
} else if (twoChars === '\\u') {
|
|
1226
|
+
i += 2;
|
|
1227
|
+
var fourHexDigits = slice(source, i, i + 4);
|
|
1228
|
+
if (!exec(IS_4_HEX_DIGITS, fourHexDigits)) throw new $SyntaxError('Bad Unicode escape at: ' + i);
|
|
1229
|
+
value += fromCharCode($parseInt(fourHexDigits, 16));
|
|
1230
|
+
i += 4;
|
|
1231
|
+
} else throw new $SyntaxError('Unknown escape sequence: "' + twoChars + '"');
|
|
1232
|
+
} else if (chr === '"') {
|
|
1233
|
+
unterminated = false;
|
|
1234
|
+
i++;
|
|
1235
|
+
break;
|
|
1236
|
+
} else {
|
|
1237
|
+
if (exec(IS_C0_CONTROL_CODE, chr)) throw new $SyntaxError('Bad control character in string literal at: ' + i);
|
|
1238
|
+
value += chr;
|
|
1239
|
+
i++;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
if (unterminated) throw new $SyntaxError('Unterminated string at: ' + i);
|
|
1243
|
+
return { value: value, end: i };
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
/***/ }),
|
|
1248
|
+
|
|
1249
|
+
/***/ 7750:
|
|
1250
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
var isNullOrUndefined = __webpack_require__(4117);
|
|
1254
|
+
|
|
1255
|
+
var $TypeError = TypeError;
|
|
1256
|
+
|
|
1257
|
+
// `RequireObjectCoercible` abstract operation
|
|
1258
|
+
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
1259
|
+
module.exports = function (it) {
|
|
1260
|
+
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
|
|
1261
|
+
return it;
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
/***/ }),
|
|
1266
|
+
|
|
1267
|
+
/***/ 6119:
|
|
1268
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
var shared = __webpack_require__(5745);
|
|
1272
|
+
var uid = __webpack_require__(3392);
|
|
1273
|
+
|
|
1274
|
+
var keys = shared('keys');
|
|
1275
|
+
|
|
1276
|
+
module.exports = function (key) {
|
|
1277
|
+
return keys[key] || (keys[key] = uid(key));
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
/***/ }),
|
|
1282
|
+
|
|
1283
|
+
/***/ 7629:
|
|
1284
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
var IS_PURE = __webpack_require__(6395);
|
|
1288
|
+
var globalThis = __webpack_require__(4576);
|
|
1289
|
+
var defineGlobalProperty = __webpack_require__(9433);
|
|
1290
|
+
|
|
1291
|
+
var SHARED = '__core-js_shared__';
|
|
1292
|
+
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
1293
|
+
|
|
1294
|
+
(store.versions || (store.versions = [])).push({
|
|
1295
|
+
version: '3.48.0',
|
|
1296
|
+
mode: IS_PURE ? 'pure' : 'global',
|
|
1297
|
+
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
1298
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
|
|
1299
|
+
source: 'https://github.com/zloirock/core-js'
|
|
1300
|
+
});
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
/***/ }),
|
|
1304
|
+
|
|
1305
|
+
/***/ 5745:
|
|
1306
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
var store = __webpack_require__(7629);
|
|
1310
|
+
|
|
1311
|
+
module.exports = function (key, value) {
|
|
1312
|
+
return store[key] || (store[key] = value || {});
|
|
1313
|
+
};
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
/***/ }),
|
|
1317
|
+
|
|
1318
|
+
/***/ 4495:
|
|
1319
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
1323
|
+
var V8_VERSION = __webpack_require__(9519);
|
|
1324
|
+
var fails = __webpack_require__(9039);
|
|
1325
|
+
var globalThis = __webpack_require__(4576);
|
|
1326
|
+
|
|
1327
|
+
var $String = globalThis.String;
|
|
1328
|
+
|
|
1329
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
1330
|
+
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
1331
|
+
var symbol = Symbol('symbol detection');
|
|
1332
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
|
1333
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
1334
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
1335
|
+
// of course, fail.
|
|
1336
|
+
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
1337
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
1338
|
+
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
1339
|
+
});
|
|
1340
|
+
|
|
1341
|
+
|
|
1342
|
+
/***/ }),
|
|
1343
|
+
|
|
1344
|
+
/***/ 5610:
|
|
1345
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
var toIntegerOrInfinity = __webpack_require__(1291);
|
|
1349
|
+
|
|
1350
|
+
var max = Math.max;
|
|
1351
|
+
var min = Math.min;
|
|
1352
|
+
|
|
1353
|
+
// Helper for a popular repeating case of the spec:
|
|
1354
|
+
// Let integer be ? ToInteger(index).
|
|
1355
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
1356
|
+
module.exports = function (index, length) {
|
|
1357
|
+
var integer = toIntegerOrInfinity(index);
|
|
1358
|
+
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
1359
|
+
};
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
/***/ }),
|
|
1363
|
+
|
|
1364
|
+
/***/ 5397:
|
|
1365
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
// toObject with fallback for non-array-like ES3 strings
|
|
1369
|
+
var IndexedObject = __webpack_require__(7055);
|
|
1370
|
+
var requireObjectCoercible = __webpack_require__(7750);
|
|
1371
|
+
|
|
1372
|
+
module.exports = function (it) {
|
|
1373
|
+
return IndexedObject(requireObjectCoercible(it));
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
/***/ }),
|
|
1378
|
+
|
|
1379
|
+
/***/ 1291:
|
|
1380
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
var trunc = __webpack_require__(741);
|
|
1384
|
+
|
|
1385
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
1386
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
1387
|
+
module.exports = function (argument) {
|
|
1388
|
+
var number = +argument;
|
|
1389
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
1390
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
1391
|
+
};
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
/***/ }),
|
|
1395
|
+
|
|
1396
|
+
/***/ 8014:
|
|
1397
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
var toIntegerOrInfinity = __webpack_require__(1291);
|
|
1401
|
+
|
|
1402
|
+
var min = Math.min;
|
|
1403
|
+
|
|
1404
|
+
// `ToLength` abstract operation
|
|
1405
|
+
// https://tc39.es/ecma262/#sec-tolength
|
|
1406
|
+
module.exports = function (argument) {
|
|
1407
|
+
var len = toIntegerOrInfinity(argument);
|
|
1408
|
+
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
/***/ }),
|
|
1413
|
+
|
|
1414
|
+
/***/ 8981:
|
|
1415
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
var requireObjectCoercible = __webpack_require__(7750);
|
|
1419
|
+
|
|
1420
|
+
var $Object = Object;
|
|
1421
|
+
|
|
1422
|
+
// `ToObject` abstract operation
|
|
1423
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
1424
|
+
module.exports = function (argument) {
|
|
1425
|
+
return $Object(requireObjectCoercible(argument));
|
|
1426
|
+
};
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
/***/ }),
|
|
1430
|
+
|
|
1431
|
+
/***/ 2777:
|
|
1432
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
var call = __webpack_require__(9565);
|
|
1436
|
+
var isObject = __webpack_require__(34);
|
|
1437
|
+
var isSymbol = __webpack_require__(757);
|
|
1438
|
+
var getMethod = __webpack_require__(5966);
|
|
1439
|
+
var ordinaryToPrimitive = __webpack_require__(4270);
|
|
1440
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
1441
|
+
|
|
1442
|
+
var $TypeError = TypeError;
|
|
1443
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
1444
|
+
|
|
1445
|
+
// `ToPrimitive` abstract operation
|
|
1446
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
|
1447
|
+
module.exports = function (input, pref) {
|
|
1448
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
|
1449
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
1450
|
+
var result;
|
|
1451
|
+
if (exoticToPrim) {
|
|
1452
|
+
if (pref === undefined) pref = 'default';
|
|
1453
|
+
result = call(exoticToPrim, input, pref);
|
|
1454
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
|
1455
|
+
throw new $TypeError("Can't convert object to primitive value");
|
|
1456
|
+
}
|
|
1457
|
+
if (pref === undefined) pref = 'number';
|
|
1458
|
+
return ordinaryToPrimitive(input, pref);
|
|
1459
|
+
};
|
|
1460
|
+
|
|
1461
|
+
|
|
1462
|
+
/***/ }),
|
|
1463
|
+
|
|
1464
|
+
/***/ 6969:
|
|
1465
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
var toPrimitive = __webpack_require__(2777);
|
|
1469
|
+
var isSymbol = __webpack_require__(757);
|
|
1470
|
+
|
|
1471
|
+
// `ToPropertyKey` abstract operation
|
|
1472
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
|
1473
|
+
module.exports = function (argument) {
|
|
1474
|
+
var key = toPrimitive(argument, 'string');
|
|
1475
|
+
return isSymbol(key) ? key : key + '';
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
/***/ }),
|
|
1480
|
+
|
|
1481
|
+
/***/ 2140:
|
|
1482
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
|
1486
|
+
|
|
1487
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
1488
|
+
var test = {};
|
|
1489
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
1490
|
+
test[TO_STRING_TAG] = 'z';
|
|
1491
|
+
|
|
1492
|
+
module.exports = String(test) === '[object z]';
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
/***/ }),
|
|
1496
|
+
|
|
1497
|
+
/***/ 655:
|
|
1498
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
var classof = __webpack_require__(6955);
|
|
1502
|
+
|
|
1503
|
+
var $String = String;
|
|
1504
|
+
|
|
1505
|
+
module.exports = function (argument) {
|
|
1506
|
+
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1507
|
+
return $String(argument);
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
/***/ }),
|
|
1512
|
+
|
|
1513
|
+
/***/ 6823:
|
|
1514
|
+
/***/ (function(module) {
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
var $String = String;
|
|
1518
|
+
|
|
1519
|
+
module.exports = function (argument) {
|
|
1520
|
+
try {
|
|
1521
|
+
return $String(argument);
|
|
1522
|
+
} catch (error) {
|
|
1523
|
+
return 'Object';
|
|
1524
|
+
}
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1527
|
+
|
|
1528
|
+
/***/ }),
|
|
1529
|
+
|
|
1530
|
+
/***/ 3392:
|
|
1531
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
var uncurryThis = __webpack_require__(9504);
|
|
1535
|
+
|
|
1536
|
+
var id = 0;
|
|
1537
|
+
var postfix = Math.random();
|
|
1538
|
+
var toString = uncurryThis(1.1.toString);
|
|
1539
|
+
|
|
1540
|
+
module.exports = function (key) {
|
|
1541
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
/***/ }),
|
|
1546
|
+
|
|
1547
|
+
/***/ 7040:
|
|
1548
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
1552
|
+
var NATIVE_SYMBOL = __webpack_require__(4495);
|
|
1553
|
+
|
|
1554
|
+
module.exports = NATIVE_SYMBOL &&
|
|
1555
|
+
!Symbol.sham &&
|
|
1556
|
+
typeof Symbol.iterator == 'symbol';
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
/***/ }),
|
|
1560
|
+
|
|
1561
|
+
/***/ 8686:
|
|
1562
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
1566
|
+
var fails = __webpack_require__(9039);
|
|
1567
|
+
|
|
1568
|
+
// V8 ~ Chrome 36-
|
|
1569
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
1570
|
+
module.exports = DESCRIPTORS && fails(function () {
|
|
1571
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1572
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
1573
|
+
value: 42,
|
|
1574
|
+
writable: false
|
|
1575
|
+
}).prototype !== 42;
|
|
1576
|
+
});
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
/***/ }),
|
|
1580
|
+
|
|
1581
|
+
/***/ 8622:
|
|
1582
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1583
|
+
|
|
1584
|
+
|
|
1585
|
+
var globalThis = __webpack_require__(4576);
|
|
1586
|
+
var isCallable = __webpack_require__(4901);
|
|
1587
|
+
|
|
1588
|
+
var WeakMap = globalThis.WeakMap;
|
|
1589
|
+
|
|
1590
|
+
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
/***/ }),
|
|
1594
|
+
|
|
1595
|
+
/***/ 8227:
|
|
1596
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1597
|
+
|
|
1598
|
+
|
|
1599
|
+
var globalThis = __webpack_require__(4576);
|
|
1600
|
+
var shared = __webpack_require__(5745);
|
|
1601
|
+
var hasOwn = __webpack_require__(9297);
|
|
1602
|
+
var uid = __webpack_require__(3392);
|
|
1603
|
+
var NATIVE_SYMBOL = __webpack_require__(4495);
|
|
1604
|
+
var USE_SYMBOL_AS_UID = __webpack_require__(7040);
|
|
1605
|
+
|
|
1606
|
+
var Symbol = globalThis.Symbol;
|
|
1607
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
1608
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
|
|
1609
|
+
|
|
1610
|
+
module.exports = function (name) {
|
|
1611
|
+
if (!hasOwn(WellKnownSymbolsStore, name)) {
|
|
1612
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
|
|
1613
|
+
? Symbol[name]
|
|
1614
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
1615
|
+
} return WellKnownSymbolsStore[name];
|
|
1616
|
+
};
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
/***/ }),
|
|
1620
|
+
|
|
1621
|
+
/***/ 9112:
|
|
1622
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
var $ = __webpack_require__(6518);
|
|
1626
|
+
var DESCRIPTORS = __webpack_require__(3724);
|
|
1627
|
+
var globalThis = __webpack_require__(4576);
|
|
1628
|
+
var getBuiltIn = __webpack_require__(7751);
|
|
1629
|
+
var uncurryThis = __webpack_require__(9504);
|
|
1630
|
+
var call = __webpack_require__(9565);
|
|
1631
|
+
var isCallable = __webpack_require__(4901);
|
|
1632
|
+
var isObject = __webpack_require__(34);
|
|
1633
|
+
var isArray = __webpack_require__(4376);
|
|
1634
|
+
var hasOwn = __webpack_require__(9297);
|
|
1635
|
+
var toString = __webpack_require__(655);
|
|
1636
|
+
var lengthOfArrayLike = __webpack_require__(6198);
|
|
1637
|
+
var createProperty = __webpack_require__(4659);
|
|
1638
|
+
var fails = __webpack_require__(9039);
|
|
1639
|
+
var parseJSONString = __webpack_require__(8235);
|
|
1640
|
+
var NATIVE_SYMBOL = __webpack_require__(4495);
|
|
1641
|
+
|
|
1642
|
+
var JSON = globalThis.JSON;
|
|
1643
|
+
var Number = globalThis.Number;
|
|
1644
|
+
var SyntaxError = globalThis.SyntaxError;
|
|
1645
|
+
var nativeParse = JSON && JSON.parse;
|
|
1646
|
+
var enumerableOwnProperties = getBuiltIn('Object', 'keys');
|
|
1647
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1648
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1649
|
+
var at = uncurryThis(''.charAt);
|
|
1650
|
+
var slice = uncurryThis(''.slice);
|
|
1651
|
+
var exec = uncurryThis(/./.exec);
|
|
1652
|
+
var push = uncurryThis([].push);
|
|
1653
|
+
|
|
1654
|
+
var IS_DIGIT = /^\d$/;
|
|
1655
|
+
var IS_NON_ZERO_DIGIT = /^[1-9]$/;
|
|
1656
|
+
var IS_NUMBER_START = /^[\d-]$/;
|
|
1657
|
+
var IS_WHITESPACE = /^[\t\n\r ]$/;
|
|
1658
|
+
|
|
1659
|
+
var PRIMITIVE = 0;
|
|
1660
|
+
var OBJECT = 1;
|
|
1661
|
+
|
|
1662
|
+
var $parse = function (source, reviver) {
|
|
1663
|
+
source = toString(source);
|
|
1664
|
+
var context = new Context(source, 0, '');
|
|
1665
|
+
var root = context.parse();
|
|
1666
|
+
var value = root.value;
|
|
1667
|
+
var endIndex = context.skip(IS_WHITESPACE, root.end);
|
|
1668
|
+
if (endIndex < source.length) {
|
|
1669
|
+
throw new SyntaxError('Unexpected extra character: "' + at(source, endIndex) + '" after the parsed data at: ' + endIndex);
|
|
1670
|
+
}
|
|
1671
|
+
return isCallable(reviver) ? internalize({ '': value }, '', reviver, root) : value;
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
var internalize = function (holder, name, reviver, node) {
|
|
1675
|
+
var val = holder[name];
|
|
1676
|
+
var unmodified = node && val === node.value;
|
|
1677
|
+
var context = unmodified && typeof node.source == 'string' ? { source: node.source } : {};
|
|
1678
|
+
var elementRecordsLen, keys, len, i, P;
|
|
1679
|
+
if (isObject(val)) {
|
|
1680
|
+
var nodeIsArray = isArray(val);
|
|
1681
|
+
var nodes = unmodified ? node.nodes : nodeIsArray ? [] : {};
|
|
1682
|
+
if (nodeIsArray) {
|
|
1683
|
+
elementRecordsLen = nodes.length;
|
|
1684
|
+
len = lengthOfArrayLike(val);
|
|
1685
|
+
for (i = 0; i < len; i++) {
|
|
1686
|
+
internalizeProperty(val, i, internalize(val, '' + i, reviver, i < elementRecordsLen ? nodes[i] : undefined));
|
|
1687
|
+
}
|
|
1688
|
+
} else {
|
|
1689
|
+
keys = enumerableOwnProperties(val);
|
|
1690
|
+
len = lengthOfArrayLike(keys);
|
|
1691
|
+
for (i = 0; i < len; i++) {
|
|
1692
|
+
P = keys[i];
|
|
1693
|
+
internalizeProperty(val, P, internalize(val, P, reviver, hasOwn(nodes, P) ? nodes[P] : undefined));
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
return call(reviver, holder, name, val, context);
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1700
|
+
var internalizeProperty = function (object, key, value) {
|
|
1701
|
+
if (DESCRIPTORS) {
|
|
1702
|
+
var descriptor = getOwnPropertyDescriptor(object, key);
|
|
1703
|
+
if (descriptor && !descriptor.configurable) return;
|
|
1704
|
+
}
|
|
1705
|
+
if (value === undefined) delete object[key];
|
|
1706
|
+
else createProperty(object, key, value);
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
var Node = function (value, end, source, nodes) {
|
|
1710
|
+
this.value = value;
|
|
1711
|
+
this.end = end;
|
|
1712
|
+
this.source = source;
|
|
1713
|
+
this.nodes = nodes;
|
|
1714
|
+
};
|
|
1715
|
+
|
|
1716
|
+
var Context = function (source, index) {
|
|
1717
|
+
this.source = source;
|
|
1718
|
+
this.index = index;
|
|
1719
|
+
};
|
|
1720
|
+
|
|
1721
|
+
// https://www.json.org/json-en.html
|
|
1722
|
+
Context.prototype = {
|
|
1723
|
+
fork: function (nextIndex) {
|
|
1724
|
+
return new Context(this.source, nextIndex);
|
|
1725
|
+
},
|
|
1726
|
+
parse: function () {
|
|
1727
|
+
var source = this.source;
|
|
1728
|
+
var i = this.skip(IS_WHITESPACE, this.index);
|
|
1729
|
+
var fork = this.fork(i);
|
|
1730
|
+
var chr = at(source, i);
|
|
1731
|
+
if (exec(IS_NUMBER_START, chr)) return fork.number();
|
|
1732
|
+
switch (chr) {
|
|
1733
|
+
case '{':
|
|
1734
|
+
return fork.object();
|
|
1735
|
+
case '[':
|
|
1736
|
+
return fork.array();
|
|
1737
|
+
case '"':
|
|
1738
|
+
return fork.string();
|
|
1739
|
+
case 't':
|
|
1740
|
+
return fork.keyword(true);
|
|
1741
|
+
case 'f':
|
|
1742
|
+
return fork.keyword(false);
|
|
1743
|
+
case 'n':
|
|
1744
|
+
return fork.keyword(null);
|
|
1745
|
+
} throw new SyntaxError('Unexpected character: "' + chr + '" at: ' + i);
|
|
1746
|
+
},
|
|
1747
|
+
node: function (type, value, start, end, nodes) {
|
|
1748
|
+
return new Node(value, end, type ? null : slice(this.source, start, end), nodes);
|
|
1749
|
+
},
|
|
1750
|
+
object: function () {
|
|
1751
|
+
var source = this.source;
|
|
1752
|
+
var i = this.index + 1;
|
|
1753
|
+
var expectKeypair = false;
|
|
1754
|
+
var object = {};
|
|
1755
|
+
var nodes = {};
|
|
1756
|
+
while (i < source.length) {
|
|
1757
|
+
i = this.until(['"', '}'], i);
|
|
1758
|
+
if (at(source, i) === '}' && !expectKeypair) {
|
|
1759
|
+
i++;
|
|
1760
|
+
break;
|
|
1761
|
+
}
|
|
1762
|
+
// Parsing the key
|
|
1763
|
+
var result = this.fork(i).string();
|
|
1764
|
+
var key = result.value;
|
|
1765
|
+
i = result.end;
|
|
1766
|
+
i = this.until([':'], i) + 1;
|
|
1767
|
+
// Parsing value
|
|
1768
|
+
i = this.skip(IS_WHITESPACE, i);
|
|
1769
|
+
result = this.fork(i).parse();
|
|
1770
|
+
createProperty(nodes, key, result);
|
|
1771
|
+
createProperty(object, key, result.value);
|
|
1772
|
+
i = this.until([',', '}'], result.end);
|
|
1773
|
+
var chr = at(source, i);
|
|
1774
|
+
if (chr === ',') {
|
|
1775
|
+
expectKeypair = true;
|
|
1776
|
+
i++;
|
|
1777
|
+
} else if (chr === '}') {
|
|
1778
|
+
i++;
|
|
1779
|
+
break;
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
return this.node(OBJECT, object, this.index, i, nodes);
|
|
1783
|
+
},
|
|
1784
|
+
array: function () {
|
|
1785
|
+
var source = this.source;
|
|
1786
|
+
var i = this.index + 1;
|
|
1787
|
+
var expectElement = false;
|
|
1788
|
+
var array = [];
|
|
1789
|
+
var nodes = [];
|
|
1790
|
+
while (i < source.length) {
|
|
1791
|
+
i = this.skip(IS_WHITESPACE, i);
|
|
1792
|
+
if (at(source, i) === ']' && !expectElement) {
|
|
1793
|
+
i++;
|
|
1794
|
+
break;
|
|
1795
|
+
}
|
|
1796
|
+
var result = this.fork(i).parse();
|
|
1797
|
+
push(nodes, result);
|
|
1798
|
+
push(array, result.value);
|
|
1799
|
+
i = this.until([',', ']'], result.end);
|
|
1800
|
+
if (at(source, i) === ',') {
|
|
1801
|
+
expectElement = true;
|
|
1802
|
+
i++;
|
|
1803
|
+
} else if (at(source, i) === ']') {
|
|
1804
|
+
i++;
|
|
1805
|
+
break;
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
return this.node(OBJECT, array, this.index, i, nodes);
|
|
1809
|
+
},
|
|
1810
|
+
string: function () {
|
|
1811
|
+
var index = this.index;
|
|
1812
|
+
var parsed = parseJSONString(this.source, this.index + 1);
|
|
1813
|
+
return this.node(PRIMITIVE, parsed.value, index, parsed.end);
|
|
1814
|
+
},
|
|
1815
|
+
number: function () {
|
|
1816
|
+
var source = this.source;
|
|
1817
|
+
var startIndex = this.index;
|
|
1818
|
+
var i = startIndex;
|
|
1819
|
+
if (at(source, i) === '-') i++;
|
|
1820
|
+
if (at(source, i) === '0') i++;
|
|
1821
|
+
else if (exec(IS_NON_ZERO_DIGIT, at(source, i))) i = this.skip(IS_DIGIT, i + 1);
|
|
1822
|
+
else throw new SyntaxError('Failed to parse number at: ' + i);
|
|
1823
|
+
if (at(source, i) === '.') i = this.skip(IS_DIGIT, i + 1);
|
|
1824
|
+
if (at(source, i) === 'e' || at(source, i) === 'E') {
|
|
1825
|
+
i++;
|
|
1826
|
+
if (at(source, i) === '+' || at(source, i) === '-') i++;
|
|
1827
|
+
var exponentStartIndex = i;
|
|
1828
|
+
i = this.skip(IS_DIGIT, i);
|
|
1829
|
+
if (exponentStartIndex === i) throw new SyntaxError("Failed to parse number's exponent value at: " + i);
|
|
1830
|
+
}
|
|
1831
|
+
return this.node(PRIMITIVE, Number(slice(source, startIndex, i)), startIndex, i);
|
|
1832
|
+
},
|
|
1833
|
+
keyword: function (value) {
|
|
1834
|
+
var keyword = '' + value;
|
|
1835
|
+
var index = this.index;
|
|
1836
|
+
var endIndex = index + keyword.length;
|
|
1837
|
+
if (slice(this.source, index, endIndex) !== keyword) throw new SyntaxError('Failed to parse value at: ' + index);
|
|
1838
|
+
return this.node(PRIMITIVE, value, index, endIndex);
|
|
1839
|
+
},
|
|
1840
|
+
skip: function (regex, i) {
|
|
1841
|
+
var source = this.source;
|
|
1842
|
+
for (; i < source.length; i++) if (!exec(regex, at(source, i))) break;
|
|
1843
|
+
return i;
|
|
1844
|
+
},
|
|
1845
|
+
until: function (array, i) {
|
|
1846
|
+
i = this.skip(IS_WHITESPACE, i);
|
|
1847
|
+
var chr = at(this.source, i);
|
|
1848
|
+
for (var j = 0; j < array.length; j++) if (array[j] === chr) return i;
|
|
1849
|
+
throw new SyntaxError('Unexpected character: "' + chr + '" at: ' + i);
|
|
1850
|
+
}
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1853
|
+
var NO_SOURCE_SUPPORT = fails(function () {
|
|
1854
|
+
var unsafeInt = '9007199254740993';
|
|
1855
|
+
var source;
|
|
1856
|
+
nativeParse(unsafeInt, function (key, value, context) {
|
|
1857
|
+
source = context.source;
|
|
1858
|
+
});
|
|
1859
|
+
return source !== unsafeInt;
|
|
1860
|
+
});
|
|
1861
|
+
|
|
1862
|
+
var PROPER_BASE_PARSE = NATIVE_SYMBOL && !fails(function () {
|
|
1863
|
+
// Safari 9 bug
|
|
1864
|
+
return 1 / nativeParse('-0 \t') !== -Infinity;
|
|
1865
|
+
});
|
|
1866
|
+
|
|
1867
|
+
// `JSON.parse` method
|
|
1868
|
+
// https://tc39.es/ecma262/#sec-json.parse
|
|
1869
|
+
// https://github.com/tc39/proposal-json-parse-with-source
|
|
1870
|
+
$({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, {
|
|
1871
|
+
parse: function parse(text, reviver) {
|
|
1872
|
+
return PROPER_BASE_PARSE && !isCallable(reviver) ? nativeParse(text) : $parse(text, reviver);
|
|
1873
|
+
}
|
|
1874
|
+
});
|
|
1875
|
+
|
|
1876
|
+
|
|
1877
|
+
/***/ })
|
|
1878
|
+
|
|
1879
|
+
/******/ });
|
|
1880
|
+
/************************************************************************/
|
|
1881
|
+
/******/ // The module cache
|
|
1882
|
+
/******/ var __webpack_module_cache__ = {};
|
|
1883
|
+
/******/
|
|
1884
|
+
/******/ // The require function
|
|
1885
|
+
/******/ function __webpack_require__(moduleId) {
|
|
1886
|
+
/******/ // Check if module is in cache
|
|
1887
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
1888
|
+
/******/ if (cachedModule !== undefined) {
|
|
1889
|
+
/******/ return cachedModule.exports;
|
|
1890
|
+
/******/ }
|
|
1891
|
+
/******/ // Create a new module (and put it into the cache)
|
|
1892
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
1893
|
+
/******/ // no module.id needed
|
|
1894
|
+
/******/ // no module.loaded needed
|
|
1895
|
+
/******/ exports: {}
|
|
1896
|
+
/******/ };
|
|
1897
|
+
/******/
|
|
1898
|
+
/******/ // Execute the module function
|
|
1899
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
1900
|
+
/******/
|
|
1901
|
+
/******/ // Return the exports of the module
|
|
1902
|
+
/******/ return module.exports;
|
|
1903
|
+
/******/ }
|
|
1904
|
+
/******/
|
|
1905
|
+
/************************************************************************/
|
|
1906
|
+
/******/ /* webpack/runtime/define property getters */
|
|
1907
|
+
/******/ !function() {
|
|
1908
|
+
/******/ // define getter functions for harmony exports
|
|
1909
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
1910
|
+
/******/ for(var key in definition) {
|
|
1911
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
1912
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
1913
|
+
/******/ }
|
|
1914
|
+
/******/ }
|
|
1915
|
+
/******/ };
|
|
1916
|
+
/******/ }();
|
|
1917
|
+
/******/
|
|
1918
|
+
/******/ /* webpack/runtime/global */
|
|
1919
|
+
/******/ !function() {
|
|
1920
|
+
/******/ __webpack_require__.g = (function() {
|
|
1921
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
1922
|
+
/******/ try {
|
|
1923
|
+
/******/ return this || new Function('return this')();
|
|
1924
|
+
/******/ } catch (e) {
|
|
1925
|
+
/******/ if (typeof window === 'object') return window;
|
|
1926
|
+
/******/ }
|
|
1927
|
+
/******/ })();
|
|
1928
|
+
/******/ }();
|
|
1929
|
+
/******/
|
|
1930
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1931
|
+
/******/ !function() {
|
|
1932
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
1933
|
+
/******/ }();
|
|
1934
|
+
/******/
|
|
1935
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
1936
|
+
/******/ !function() {
|
|
1937
|
+
/******/ // define __esModule on exports
|
|
1938
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
1939
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
1940
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
1941
|
+
/******/ }
|
|
1942
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
1943
|
+
/******/ };
|
|
1944
|
+
/******/ }();
|
|
1945
|
+
/******/
|
|
1946
|
+
/******/ /* webpack/runtime/publicPath */
|
|
1947
|
+
/******/ !function() {
|
|
1948
|
+
/******/ __webpack_require__.p = "";
|
|
1949
|
+
/******/ }();
|
|
1950
|
+
/******/
|
|
1951
|
+
/************************************************************************/
|
|
1952
|
+
var __webpack_exports__ = {};
|
|
1953
|
+
// ESM COMPAT FLAG
|
|
1954
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1955
|
+
|
|
1956
|
+
// EXPORTS
|
|
1957
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1958
|
+
CreateAIDoppelganger: function() { return /* reexport */ package_createAIDoppelganger; },
|
|
1959
|
+
"default": function() { return /* binding */ entry_lib; },
|
|
1960
|
+
install: function() { return /* reexport */ install; }
|
|
1961
|
+
});
|
|
1962
|
+
|
|
1963
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
1964
|
+
/* eslint-disable no-var */
|
|
1965
|
+
// This file is imported into lib/wc client bundles.
|
|
1966
|
+
|
|
1967
|
+
if (typeof window !== 'undefined') {
|
|
1968
|
+
var currentScript = window.document.currentScript
|
|
1969
|
+
if (false) // removed by dead control flow
|
|
1970
|
+
{ var getCurrentScript; }
|
|
1971
|
+
|
|
1972
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
1973
|
+
if (src) {
|
|
1974
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
// Indicate to webpack that this file can be concatenated
|
|
1979
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
1980
|
+
|
|
1981
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/createAIDoppelganger/index.vue?vue&type=template&id=16fedc32&scoped=true
|
|
1982
|
+
var render = function render() {
|
|
1983
|
+
var _vm = this,
|
|
1984
|
+
_c = _vm._self._c;
|
|
1985
|
+
return _c('div', {
|
|
1986
|
+
staticClass: "ai-doppelganger-container",
|
|
1987
|
+
style: _vm.containerStyle
|
|
1988
|
+
}, [_c('view', {
|
|
1989
|
+
staticClass: "tab-header-wrapper"
|
|
1990
|
+
}, [_c('view', {
|
|
1991
|
+
staticClass: "tab-header",
|
|
1992
|
+
style: _vm.tabHeaderStyle
|
|
1993
|
+
}, [_c('view', {
|
|
1994
|
+
staticClass: "tab-active-bar",
|
|
1995
|
+
class: _vm.currentTab,
|
|
1996
|
+
style: _vm.activeBarStyle
|
|
1997
|
+
}), _c('view', {
|
|
1998
|
+
staticClass: "tab-item",
|
|
1999
|
+
class: {
|
|
2000
|
+
active: _vm.currentTab === 'video'
|
|
2001
|
+
},
|
|
2002
|
+
on: {
|
|
2003
|
+
"click": function ($event) {
|
|
2004
|
+
_vm.currentTab = 'video';
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
}, [_vm._v(" 视频 ")]), _c('view', {
|
|
2008
|
+
staticClass: "tab-item",
|
|
2009
|
+
class: {
|
|
2010
|
+
active: _vm.currentTab === 'voice'
|
|
2011
|
+
},
|
|
2012
|
+
on: {
|
|
2013
|
+
"click": function ($event) {
|
|
2014
|
+
_vm.currentTab = 'voice';
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
}, [_vm._v(" 音色 ")])])]), _c('view', {
|
|
2018
|
+
staticClass: "content-wrapper"
|
|
2019
|
+
}, [_vm.currentTab === 'video' ? _c('view', {
|
|
2020
|
+
staticClass: "tab-content"
|
|
2021
|
+
}, [_c('view', {
|
|
2022
|
+
staticClass: "ai-section"
|
|
2023
|
+
}, [_c('view', {
|
|
2024
|
+
staticClass: "ai-section-title"
|
|
2025
|
+
}, [_vm._v("训练视频")]), _c('view', {
|
|
2026
|
+
staticClass: "ai-card ai-card--row"
|
|
2027
|
+
}, [_c('view', {
|
|
2028
|
+
staticClass: "ai-upload-box"
|
|
2029
|
+
}, [_c('view', {
|
|
2030
|
+
staticClass: "ai-upload-border",
|
|
2031
|
+
style: _vm.uploadBorderStyle
|
|
2032
|
+
}, [!_vm.trainVideoUrl ? _c('view', {
|
|
2033
|
+
staticClass: "ai-upload-inner",
|
|
2034
|
+
on: {
|
|
2035
|
+
"click": function ($event) {
|
|
2036
|
+
$event.stopPropagation();
|
|
2037
|
+
return _vm.handleChooseTrainVideo.apply(null, arguments);
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
}, [_vm.trainVideoProgress > 0 && _vm.trainVideoProgress < 100 ? _c('view', {
|
|
2041
|
+
staticClass: "progress-mask"
|
|
2042
|
+
}, [_c('view', {
|
|
2043
|
+
staticClass: "progress-circle"
|
|
2044
|
+
}, [_c('text', {
|
|
2045
|
+
staticClass: "progress-text"
|
|
2046
|
+
}, [_vm._v(_vm._s(_vm.trainVideoProgress) + "%")])])]) : _vm._e(), _c('view', {
|
|
2047
|
+
staticClass: "ai-upload-icon"
|
|
2048
|
+
}, [_c('image', {
|
|
2049
|
+
staticClass: "ai-icon-img",
|
|
2050
|
+
attrs: {
|
|
2051
|
+
"src": _vm.assetConfig.safetyIcon,
|
|
2052
|
+
"mode": "widthFix"
|
|
2053
|
+
}
|
|
2054
|
+
})]), _c('view', {
|
|
2055
|
+
staticClass: "ai-upload-text"
|
|
2056
|
+
}, [_vm._v("上传训练视频")])]) : _c('view', {
|
|
2057
|
+
staticClass: "ai-upload-preview-wrapper"
|
|
2058
|
+
}, [_c('video', {
|
|
2059
|
+
staticClass: "ai-upload-preview",
|
|
2060
|
+
attrs: {
|
|
2061
|
+
"src": _vm.trainVideoUrl,
|
|
2062
|
+
"controls": false,
|
|
2063
|
+
"show-center-play-btn": true,
|
|
2064
|
+
"object-fit": "cover"
|
|
2065
|
+
}
|
|
2066
|
+
}), _c('view', {
|
|
2067
|
+
staticClass: "ai-upload-delete",
|
|
2068
|
+
on: {
|
|
2069
|
+
"click": function ($event) {
|
|
2070
|
+
$event.stopPropagation();
|
|
2071
|
+
return _vm.handleDeleteVideo('trainVideo');
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
}, [_c('text', {
|
|
2075
|
+
staticClass: "ai-upload-delete-icon"
|
|
2076
|
+
}, [_vm._v("×")])])])])]), _c('view', {
|
|
2077
|
+
staticClass: "ai-tips"
|
|
2078
|
+
}, [_c('view', {
|
|
2079
|
+
staticClass: "ai-tips-title"
|
|
2080
|
+
}, [_vm._v("训练视频要求提示:")]), _c('view', {
|
|
2081
|
+
staticClass: "ai-tips-text"
|
|
2082
|
+
}, [_c('text', {
|
|
2083
|
+
staticClass: "ai-tips-item"
|
|
2084
|
+
}, [_vm._v("1. 视频时长与尺寸:训练视频尽可能90秒以上(为了制作长视频)。")]), _c('text', {
|
|
2085
|
+
staticClass: "ai-tips-item"
|
|
2086
|
+
}, [_vm._v("2. 内容要求:视频要求为正面,五官清晰无遮挡,不要歪头、侧头。")]), _c('text', {
|
|
2087
|
+
staticClass: "ai-tips-item"
|
|
2088
|
+
}, [_vm._v("请保持视频中人脸比例适中,涵盖肩膀区域,头部比例不要过大或者过小。")]), _c('text', {
|
|
2089
|
+
staticClass: "ai-tips-item"
|
|
2090
|
+
}, [_vm._v("人物需全程在画面内,可以有一些情绪表情变化,但是不要过大。")]), _c('text', {
|
|
2091
|
+
staticClass: "ai-tips-item"
|
|
2092
|
+
}, [_vm._v("3. 确保上传的视频是本人或经过本人授权。")])])])])]), _c('view', {
|
|
2093
|
+
staticClass: "ai-section"
|
|
2094
|
+
}, [_c('view', {
|
|
2095
|
+
staticClass: "ai-section-title"
|
|
2096
|
+
}, [_vm._v("授权视频")]), _c('view', {
|
|
2097
|
+
staticClass: "ai-card ai-card--row"
|
|
2098
|
+
}, [_c('view', {
|
|
2099
|
+
staticClass: "ai-upload-box"
|
|
2100
|
+
}, [_c('view', {
|
|
2101
|
+
staticClass: "ai-upload-border",
|
|
2102
|
+
style: _vm.uploadBorderStyle
|
|
2103
|
+
}, [!_vm.authVideoUrl ? _c('view', {
|
|
2104
|
+
staticClass: "ai-upload-inner",
|
|
2105
|
+
on: {
|
|
2106
|
+
"click": function ($event) {
|
|
2107
|
+
$event.stopPropagation();
|
|
2108
|
+
return _vm.handleChooseAuthVideo.apply(null, arguments);
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
}, [_vm.authVideoProgress > 0 && _vm.authVideoProgress < 100 ? _c('view', {
|
|
2112
|
+
staticClass: "progress-mask"
|
|
2113
|
+
}, [_c('view', {
|
|
2114
|
+
staticClass: "progress-circle"
|
|
2115
|
+
}, [_c('text', {
|
|
2116
|
+
staticClass: "progress-text"
|
|
2117
|
+
}, [_vm._v(_vm._s(_vm.authVideoProgress) + "%")])])]) : _vm._e(), _c('view', {
|
|
2118
|
+
staticClass: "ai-upload-icon"
|
|
2119
|
+
}, [_c('image', {
|
|
2120
|
+
staticClass: "ai-icon-img",
|
|
2121
|
+
attrs: {
|
|
2122
|
+
"src": _vm.assetConfig.videoIcon,
|
|
2123
|
+
"mode": "widthFix"
|
|
2124
|
+
}
|
|
2125
|
+
})]), _c('view', {
|
|
2126
|
+
staticClass: "ai-upload-text"
|
|
2127
|
+
}, [_vm._v("上传授权视频")])]) : _c('view', {
|
|
2128
|
+
staticClass: "ai-upload-preview-wrapper"
|
|
2129
|
+
}, [_c('video', {
|
|
2130
|
+
staticClass: "ai-upload-preview",
|
|
2131
|
+
attrs: {
|
|
2132
|
+
"src": _vm.authVideoUrl,
|
|
2133
|
+
"controls": false,
|
|
2134
|
+
"show-center-play-btn": true,
|
|
2135
|
+
"object-fit": "cover"
|
|
2136
|
+
}
|
|
2137
|
+
}), _c('view', {
|
|
2138
|
+
staticClass: "ai-upload-delete",
|
|
2139
|
+
on: {
|
|
2140
|
+
"click": function ($event) {
|
|
2141
|
+
$event.stopPropagation();
|
|
2142
|
+
return _vm.handleDeleteVideo('authVideo');
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
}, [_c('text', {
|
|
2146
|
+
staticClass: "ai-upload-delete-icon"
|
|
2147
|
+
}, [_vm._v("×")])])])])]), _c('view', {
|
|
2148
|
+
staticClass: "ai-tips"
|
|
2149
|
+
}, [_c('view', {
|
|
2150
|
+
staticClass: "ai-tips-title"
|
|
2151
|
+
}, [_vm._v("授权视频要求提示:")]), _c('view', {
|
|
2152
|
+
staticClass: "ai-tips-text"
|
|
2153
|
+
}, [_c('text', {
|
|
2154
|
+
staticClass: "ai-tips-item"
|
|
2155
|
+
}, [_vm._v("1. 光线充足,全脸无遮挡;")]), _c('text', {
|
|
2156
|
+
staticClass: "ai-tips-item"
|
|
2157
|
+
}, [_vm._v("2. 录制时请全程面对镜头,保持人脸包括肩膀在镜头内,并且需朗读:")]), _c('view', {
|
|
2158
|
+
staticClass: "ai-tips-quote"
|
|
2159
|
+
}, [_c('text', {
|
|
2160
|
+
staticClass: "ai-tips-quote-mark"
|
|
2161
|
+
}, [_vm._v("\"")]), _vm._v(_vm._s(_vm.config.tips || '请传入授权语')), _c('text', {
|
|
2162
|
+
staticClass: "ai-tips-quote-mark"
|
|
2163
|
+
}, [_vm._v("\"")])])]), _c('view', {
|
|
2164
|
+
staticClass: "ai-tips-actions"
|
|
2165
|
+
}, [_c('view', {
|
|
2166
|
+
staticClass: "ai-tips-btn",
|
|
2167
|
+
on: {
|
|
2168
|
+
"click": _vm.handleCopyAuthorizeText
|
|
2169
|
+
}
|
|
2170
|
+
}, [_c('image', {
|
|
2171
|
+
staticClass: "ai-btn-icon",
|
|
2172
|
+
attrs: {
|
|
2173
|
+
"src": _vm.assetConfig.copyIcon,
|
|
2174
|
+
"mode": "widthFix"
|
|
2175
|
+
}
|
|
2176
|
+
}), _c('text', [_vm._v("复制授权语")])])])])])]), _c('view', {
|
|
2177
|
+
staticClass: "ai-section"
|
|
2178
|
+
}, [_c('view', {
|
|
2179
|
+
staticClass: "ai-section-title"
|
|
2180
|
+
}, [_vm._v("分身名称")]), _c('view', {
|
|
2181
|
+
staticClass: "ai-input-wrapper"
|
|
2182
|
+
}, [_c('input', {
|
|
2183
|
+
directives: [{
|
|
2184
|
+
name: "model",
|
|
2185
|
+
rawName: "v-model",
|
|
2186
|
+
value: _vm.videoForm.name,
|
|
2187
|
+
expression: "videoForm.name"
|
|
2188
|
+
}],
|
|
2189
|
+
staticClass: "ai-input",
|
|
2190
|
+
style: _vm.inputStyle,
|
|
2191
|
+
attrs: {
|
|
2192
|
+
"placeholder": "请为该数字分身取一个合适的名称",
|
|
2193
|
+
"placeholder-class": "ai-input-placeholder"
|
|
2194
|
+
},
|
|
2195
|
+
domProps: {
|
|
2196
|
+
"value": _vm.videoForm.name
|
|
2197
|
+
},
|
|
2198
|
+
on: {
|
|
2199
|
+
"input": function ($event) {
|
|
2200
|
+
if ($event.target.composing) return;
|
|
2201
|
+
_vm.$set(_vm.videoForm, "name", $event.target.value);
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
})])]), _c('view', {
|
|
2205
|
+
staticClass: "ai-section"
|
|
2206
|
+
}, [_c('view', {
|
|
2207
|
+
staticClass: "ai-section-title"
|
|
2208
|
+
}, [_vm._v(" 分身描述 "), _c('text', {
|
|
2209
|
+
staticClass: "ai-section-optional"
|
|
2210
|
+
}, [_vm._v("(选填)")])]), _c('view', {
|
|
2211
|
+
staticClass: "ai-input-wrapper ai-input-wrapper--textarea"
|
|
2212
|
+
}, [!_vm.videoForm.description ? _c('view', {
|
|
2213
|
+
staticClass: "ai-textarea-hint"
|
|
2214
|
+
}, [_c('text', {
|
|
2215
|
+
staticClass: "ai-textarea-hint-line"
|
|
2216
|
+
}, [_vm._v("请为该数字分身写一段简单的描述!")]), _c('text', {
|
|
2217
|
+
staticClass: "ai-textarea-hint-line"
|
|
2218
|
+
}, [_vm._v("如:穿着休闲冬装的张总")])]) : _vm._e(), _c('textarea', {
|
|
2219
|
+
directives: [{
|
|
2220
|
+
name: "model",
|
|
2221
|
+
rawName: "v-model",
|
|
2222
|
+
value: _vm.videoForm.description,
|
|
2223
|
+
expression: "videoForm.description"
|
|
2224
|
+
}],
|
|
2225
|
+
staticClass: "ai-textarea",
|
|
2226
|
+
style: _vm.textareaStyle,
|
|
2227
|
+
attrs: {
|
|
2228
|
+
"placeholder-class": "ai-input-placeholder",
|
|
2229
|
+
"maxlength": -1
|
|
2230
|
+
},
|
|
2231
|
+
domProps: {
|
|
2232
|
+
"value": _vm.videoForm.description
|
|
2233
|
+
},
|
|
2234
|
+
on: {
|
|
2235
|
+
"input": function ($event) {
|
|
2236
|
+
if ($event.target.composing) return;
|
|
2237
|
+
_vm.$set(_vm.videoForm, "description", $event.target.value);
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
})])]), _c('view', {
|
|
2241
|
+
staticClass: "ai-section"
|
|
2242
|
+
}, [_c('view', {
|
|
2243
|
+
staticClass: "ai-example-grid"
|
|
2244
|
+
}, _vm._l(_vm.assetConfig.videoExamples, function (img, idx) {
|
|
2245
|
+
return _c('view', {
|
|
2246
|
+
key: idx,
|
|
2247
|
+
staticClass: "ai-example-item"
|
|
2248
|
+
}, [_c('image', {
|
|
2249
|
+
staticClass: "ai-example-img",
|
|
2250
|
+
attrs: {
|
|
2251
|
+
"src": img.src,
|
|
2252
|
+
"mode": "aspectFill"
|
|
2253
|
+
}
|
|
2254
|
+
}), _c('view', {
|
|
2255
|
+
staticClass: "ai-example-desc"
|
|
2256
|
+
}, [_vm._v(_vm._s(img.desc))])]);
|
|
2257
|
+
}), 0)])]) : _vm._e(), _vm.currentTab === 'voice' ? _c('view', {
|
|
2258
|
+
staticClass: "tab-content"
|
|
2259
|
+
}, [_c('view', {
|
|
2260
|
+
staticClass: "ai-section"
|
|
2261
|
+
}, [_c('view', {
|
|
2262
|
+
staticClass: "ai-section-title"
|
|
2263
|
+
}, [_vm._v("训练音频")]), _c('view', {
|
|
2264
|
+
staticClass: "ai-card ai-card--row"
|
|
2265
|
+
}, [_c('view', {
|
|
2266
|
+
staticClass: "ai-upload-box"
|
|
2267
|
+
}, [_c('view', {
|
|
2268
|
+
staticClass: "ai-upload-border",
|
|
2269
|
+
style: _vm.uploadBorderStyle
|
|
2270
|
+
}, [!_vm.audioUrl ? _c('view', {
|
|
2271
|
+
staticClass: "ai-upload-inner",
|
|
2272
|
+
on: {
|
|
2273
|
+
"click": function ($event) {
|
|
2274
|
+
$event.stopPropagation();
|
|
2275
|
+
return _vm.handleChooseAudioFromChat.apply(null, arguments);
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
}, [_vm.audioProgress > 0 && _vm.audioProgress < 100 ? _c('view', {
|
|
2279
|
+
staticClass: "progress-mask"
|
|
2280
|
+
}, [_c('view', {
|
|
2281
|
+
staticClass: "progress-circle"
|
|
2282
|
+
}, [_c('text', {
|
|
2283
|
+
staticClass: "progress-text"
|
|
2284
|
+
}, [_vm._v(_vm._s(_vm.audioProgress) + "%")])])]) : _vm._e(), _c('view', {
|
|
2285
|
+
staticClass: "ai-upload-icon"
|
|
2286
|
+
}, [_c('image', {
|
|
2287
|
+
staticClass: "ai-icon-img",
|
|
2288
|
+
attrs: {
|
|
2289
|
+
"src": _vm.assetConfig.toneIcon,
|
|
2290
|
+
"mode": "aspectFit"
|
|
2291
|
+
}
|
|
2292
|
+
})]), _c('view', {
|
|
2293
|
+
staticClass: "ai-upload-text"
|
|
2294
|
+
}, [_vm._v("上传训练音频")])]) : _c('view', {
|
|
2295
|
+
staticClass: "ai-upload-preview-wrapper"
|
|
2296
|
+
}, [_c('view', {
|
|
2297
|
+
staticClass: "ai-audio-wrapper",
|
|
2298
|
+
on: {
|
|
2299
|
+
"click": function ($event) {
|
|
2300
|
+
$event.stopPropagation();
|
|
2301
|
+
return _vm.handleToggleAudio.apply(null, arguments);
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
}, [_c('image', {
|
|
2305
|
+
staticClass: "ai-audio-placeholder",
|
|
2306
|
+
attrs: {
|
|
2307
|
+
"src": _vm.assetConfig.toneIcon,
|
|
2308
|
+
"mode": "aspectFit"
|
|
2309
|
+
}
|
|
2310
|
+
}), _c('view', {
|
|
2311
|
+
staticClass: "ai-audio-info"
|
|
2312
|
+
}, [_c('text', {
|
|
2313
|
+
staticClass: "ai-audio-status"
|
|
2314
|
+
}, [_vm._v(" " + _vm._s(_vm.isAudioPlaying ? "点击暂停音频" : "点击播放音频") + " ")]), _c('text', {
|
|
2315
|
+
staticClass: "ai-audio-filename"
|
|
2316
|
+
}, [_vm._v(" " + _vm._s(_vm.audioFileName || "音频已上传") + " ")])])]), _c('view', {
|
|
2317
|
+
staticClass: "ai-upload-delete",
|
|
2318
|
+
on: {
|
|
2319
|
+
"click": function ($event) {
|
|
2320
|
+
$event.stopPropagation();
|
|
2321
|
+
return _vm.handleDeleteAudio.apply(null, arguments);
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
}, [_c('text', {
|
|
2325
|
+
staticClass: "ai-upload-delete-icon"
|
|
2326
|
+
}, [_vm._v("×")])])])])]), _c('view', {
|
|
2327
|
+
staticClass: "ai-tips"
|
|
2328
|
+
}, [_c('view', {
|
|
2329
|
+
staticClass: "ai-tips-title"
|
|
2330
|
+
}, [_vm._v("训练音频要求提示:")]), _c('view', {
|
|
2331
|
+
staticClass: "ai-tips-text"
|
|
2332
|
+
}, [_c('text', {
|
|
2333
|
+
staticClass: "ai-tips-item"
|
|
2334
|
+
}, [_vm._v("1. 声音时长15s以上,可以用富有感情的声音去录制;")]), _c('text', {
|
|
2335
|
+
staticClass: "ai-tips-item"
|
|
2336
|
+
}, [_vm._v("2. 最好使用普通话录制,保证词语发音标准;")]), _c('text', {
|
|
2337
|
+
staticClass: "ai-tips-item"
|
|
2338
|
+
}, [_vm._v("3. 保持安静的环境,让录制音频越清晰越好;")]), _c('text', {
|
|
2339
|
+
staticClass: "ai-tips-item"
|
|
2340
|
+
}, [_vm._v("4. 可支持wav、mp3格式。")])])])])]), _c('view', {
|
|
2341
|
+
staticClass: "ai-section"
|
|
2342
|
+
}, [_c('view', {
|
|
2343
|
+
staticClass: "ai-section-title"
|
|
2344
|
+
}, [_vm._v("音色名称")]), _c('view', {
|
|
2345
|
+
staticClass: "ai-input-wrapper"
|
|
2346
|
+
}, [_c('input', {
|
|
2347
|
+
directives: [{
|
|
2348
|
+
name: "model",
|
|
2349
|
+
rawName: "v-model",
|
|
2350
|
+
value: _vm.voiceForm.name,
|
|
2351
|
+
expression: "voiceForm.name"
|
|
2352
|
+
}],
|
|
2353
|
+
staticClass: "ai-input",
|
|
2354
|
+
style: _vm.inputStyle,
|
|
2355
|
+
attrs: {
|
|
2356
|
+
"placeholder": "请为该数字音色取一个合适的名称",
|
|
2357
|
+
"placeholder-class": "ai-input-placeholder"
|
|
2358
|
+
},
|
|
2359
|
+
domProps: {
|
|
2360
|
+
"value": _vm.voiceForm.name
|
|
2361
|
+
},
|
|
2362
|
+
on: {
|
|
2363
|
+
"input": function ($event) {
|
|
2364
|
+
if ($event.target.composing) return;
|
|
2365
|
+
_vm.$set(_vm.voiceForm, "name", $event.target.value);
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
})])]), _c('view', {
|
|
2369
|
+
staticClass: "ai-section"
|
|
2370
|
+
}, [_c('view', {
|
|
2371
|
+
staticClass: "ai-section-title"
|
|
2372
|
+
}, [_vm._v(" 音色描述 "), _c('text', {
|
|
2373
|
+
staticClass: "ai-section-optional"
|
|
2374
|
+
}, [_vm._v("(选填)")])]), _c('view', {
|
|
2375
|
+
staticClass: "ai-input-wrapper ai-input-wrapper--textarea"
|
|
2376
|
+
}, [!_vm.voiceForm.description ? _c('view', {
|
|
2377
|
+
staticClass: "ai-textarea-hint"
|
|
2378
|
+
}, [_c('text', {
|
|
2379
|
+
staticClass: "ai-textarea-hint-line"
|
|
2380
|
+
}, [_vm._v("请为该数字音色写一段简短的描述!")]), _c('text', {
|
|
2381
|
+
staticClass: "ai-textarea-hint-line"
|
|
2382
|
+
}, [_vm._v("如:沉稳商务风格张总的音色")])]) : _vm._e(), _c('textarea', {
|
|
2383
|
+
directives: [{
|
|
2384
|
+
name: "model",
|
|
2385
|
+
rawName: "v-model",
|
|
2386
|
+
value: _vm.voiceForm.description,
|
|
2387
|
+
expression: "voiceForm.description"
|
|
2388
|
+
}],
|
|
2389
|
+
staticClass: "ai-textarea",
|
|
2390
|
+
style: _vm.textareaStyle,
|
|
2391
|
+
attrs: {
|
|
2392
|
+
"placeholder-class": "ai-input-placeholder",
|
|
2393
|
+
"maxlength": -1
|
|
2394
|
+
},
|
|
2395
|
+
domProps: {
|
|
2396
|
+
"value": _vm.voiceForm.description
|
|
2397
|
+
},
|
|
2398
|
+
on: {
|
|
2399
|
+
"input": function ($event) {
|
|
2400
|
+
if ($event.target.composing) return;
|
|
2401
|
+
_vm.$set(_vm.voiceForm, "description", $event.target.value);
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
})])]), _c('view', {
|
|
2405
|
+
staticClass: "ai-section"
|
|
2406
|
+
}, [_c('view', {
|
|
2407
|
+
staticClass: "ai-example-grid"
|
|
2408
|
+
}, _vm._l(_vm.assetConfig.voiceExamples, function (img, idx) {
|
|
2409
|
+
return _c('view', {
|
|
2410
|
+
key: idx,
|
|
2411
|
+
staticClass: "ai-example-item"
|
|
2412
|
+
}, [_c('image', {
|
|
2413
|
+
staticClass: "ai-example-img",
|
|
2414
|
+
attrs: {
|
|
2415
|
+
"src": img.src,
|
|
2416
|
+
"mode": "aspectFill"
|
|
2417
|
+
}
|
|
2418
|
+
}), _c('view', {
|
|
2419
|
+
staticClass: "ai-example-desc"
|
|
2420
|
+
}, [_vm._v(_vm._s(img.desc))])]);
|
|
2421
|
+
}), 0)])]) : _vm._e(), _c('view', {
|
|
2422
|
+
staticClass: "footer-note"
|
|
2423
|
+
}, [_vm._v("注:智能生成的内容仅供参考,不代表平台立场")]), _c('view', {
|
|
2424
|
+
staticStyle: {
|
|
2425
|
+
"height": "120rpx"
|
|
2426
|
+
}
|
|
2427
|
+
})]), _c('view', {
|
|
2428
|
+
staticClass: "footer-wrapper"
|
|
2429
|
+
}, [_c('view', {
|
|
2430
|
+
staticClass: "submit-btn",
|
|
2431
|
+
style: _vm.submitBtnStyle,
|
|
2432
|
+
on: {
|
|
2433
|
+
"click": _vm.handleSubmit
|
|
2434
|
+
}
|
|
2435
|
+
}, [_c('text', {
|
|
2436
|
+
staticClass: "btn-text"
|
|
2437
|
+
}, [_vm._v("提交训练")])])])]);
|
|
2438
|
+
};
|
|
2439
|
+
var staticRenderFns = [];
|
|
2440
|
+
|
|
2441
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.parse.js
|
|
2442
|
+
var es_json_parse = __webpack_require__(9112);
|
|
2443
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/createAIDoppelganger/index.vue?vue&type=script&lang=js
|
|
2444
|
+
|
|
2445
|
+
/* global uni */
|
|
2446
|
+
/* harmony default export */ var createAIDoppelgangervue_type_script_lang_js = ({
|
|
2447
|
+
name: "fimoi-ai-doppelganger",
|
|
2448
|
+
props: {
|
|
2449
|
+
// 基础配置
|
|
2450
|
+
config: {
|
|
2451
|
+
type: Object,
|
|
2452
|
+
default: () => ({
|
|
2453
|
+
baseUrl: '',
|
|
2454
|
+
// 上传地址基础路径
|
|
2455
|
+
token: '',
|
|
2456
|
+
// 授权 Token
|
|
2457
|
+
appid: '',
|
|
2458
|
+
// 小程序 AppID
|
|
2459
|
+
tips: '' // 授权语
|
|
2460
|
+
})
|
|
2461
|
+
},
|
|
2462
|
+
// API 回调
|
|
2463
|
+
api: {
|
|
2464
|
+
type: Object,
|
|
2465
|
+
default: () => ({
|
|
2466
|
+
createPerson: null,
|
|
2467
|
+
// (form) => Promise
|
|
2468
|
+
createVoice: null,
|
|
2469
|
+
// (form) => Promise
|
|
2470
|
+
subscribeMessage: null // (tmplIds) => void
|
|
2471
|
+
})
|
|
2472
|
+
},
|
|
2473
|
+
// 静态资源配置
|
|
2474
|
+
assets: {
|
|
2475
|
+
type: Object,
|
|
2476
|
+
default: () => ({})
|
|
2477
|
+
},
|
|
2478
|
+
// 样式配置
|
|
2479
|
+
styleConfig: {
|
|
2480
|
+
type: Object,
|
|
2481
|
+
default: () => ({})
|
|
2482
|
+
},
|
|
2483
|
+
// 初始 Tab
|
|
2484
|
+
initialTab: {
|
|
2485
|
+
type: String,
|
|
2486
|
+
default: 'video'
|
|
2487
|
+
}
|
|
2488
|
+
},
|
|
2489
|
+
watch: {
|
|
2490
|
+
initialTab(val) {
|
|
2491
|
+
this.currentTab = val;
|
|
2492
|
+
}
|
|
2493
|
+
},
|
|
2494
|
+
data() {
|
|
2495
|
+
return {
|
|
2496
|
+
currentTab: this.initialTab,
|
|
2497
|
+
videoForm: {
|
|
2498
|
+
name: "",
|
|
2499
|
+
description: ""
|
|
2500
|
+
},
|
|
2501
|
+
voiceForm: {
|
|
2502
|
+
name: "",
|
|
2503
|
+
description: ""
|
|
2504
|
+
},
|
|
2505
|
+
trainVideoUrl: "",
|
|
2506
|
+
authVideoUrl: "",
|
|
2507
|
+
audioUrl: "",
|
|
2508
|
+
trainVideoProgress: 0,
|
|
2509
|
+
authVideoProgress: 0,
|
|
2510
|
+
audioProgress: 0,
|
|
2511
|
+
audioFileName: "",
|
|
2512
|
+
isAudioPlaying: false,
|
|
2513
|
+
audioPlayer: null,
|
|
2514
|
+
maxVideoSize: 100,
|
|
2515
|
+
// MB
|
|
2516
|
+
maxAudioSize: 50 // MB
|
|
2517
|
+
};
|
|
2518
|
+
},
|
|
2519
|
+
computed: {
|
|
2520
|
+
assetConfig() {
|
|
2521
|
+
const defaults = {
|
|
2522
|
+
safetyIcon: '',
|
|
2523
|
+
videoIcon: '',
|
|
2524
|
+
toneIcon: '',
|
|
2525
|
+
copyIcon: '',
|
|
2526
|
+
videoExamples: [{
|
|
2527
|
+
src: '',
|
|
2528
|
+
desc: '1. 确保训练视频和授权视频是同一个人'
|
|
2529
|
+
}, {
|
|
2530
|
+
src: '',
|
|
2531
|
+
desc: '2. 确保在光线充足的环境中录制视频 避免面部过亮或过暗'
|
|
2532
|
+
}, {
|
|
2533
|
+
src: '',
|
|
2534
|
+
desc: '3. 声情并茂得演讲对驱动结果至关重要'
|
|
2535
|
+
}, {
|
|
2536
|
+
src: '',
|
|
2537
|
+
desc: '4. 需确保全程脸部无遮挡'
|
|
2538
|
+
}],
|
|
2539
|
+
voiceExamples: [{
|
|
2540
|
+
src: '',
|
|
2541
|
+
desc: '1.确保训练音频的来源不侵犯他人权益'
|
|
2542
|
+
}, {
|
|
2543
|
+
src: '',
|
|
2544
|
+
desc: '2.确保训练音频录制过程中,环境全程无噪音'
|
|
2545
|
+
}, {
|
|
2546
|
+
src: '',
|
|
2547
|
+
desc: '3.声情并茂得演讲对驱动结果至关重要'
|
|
2548
|
+
}, {
|
|
2549
|
+
src: '',
|
|
2550
|
+
desc: '4.控制好语速和演讲语气,AI也能一并克隆'
|
|
2551
|
+
}]
|
|
2552
|
+
};
|
|
2553
|
+
return {
|
|
2554
|
+
...defaults,
|
|
2555
|
+
...this.assets
|
|
2556
|
+
};
|
|
2557
|
+
},
|
|
2558
|
+
containerStyle() {
|
|
2559
|
+
return {
|
|
2560
|
+
backgroundColor: this.styleConfig.pageBg || '#0e1520',
|
|
2561
|
+
minHeight: '100vh',
|
|
2562
|
+
paddingBottom: 'env(safe-area-inset-bottom)'
|
|
2563
|
+
};
|
|
2564
|
+
},
|
|
2565
|
+
tabHeaderStyle() {
|
|
2566
|
+
return {
|
|
2567
|
+
background: this.styleConfig.tabBg || '#1a212b',
|
|
2568
|
+
borderRadius: this.styleConfig.borderRadius || '16rpx'
|
|
2569
|
+
};
|
|
2570
|
+
},
|
|
2571
|
+
activeBarStyle() {
|
|
2572
|
+
return {
|
|
2573
|
+
background: this.styleConfig.buttonGradient || 'linear-gradient(270deg, rgba(162, 11, 222, 0.8) 0%, rgba(82, 39, 238, 0.8) 98%)',
|
|
2574
|
+
borderRadius: this.styleConfig.borderRadius || '16rpx'
|
|
2575
|
+
};
|
|
2576
|
+
},
|
|
2577
|
+
uploadBorderStyle() {
|
|
2578
|
+
return {
|
|
2579
|
+
borderRadius: this.styleConfig.borderRadius || '16rpx',
|
|
2580
|
+
borderColor: this.styleConfig.borderColor || '#1a212b'
|
|
2581
|
+
};
|
|
2582
|
+
},
|
|
2583
|
+
inputStyle() {
|
|
2584
|
+
return {
|
|
2585
|
+
borderRadius: this.styleConfig.borderRadius || '16rpx',
|
|
2586
|
+
backgroundColor: this.styleConfig.inputBg || '#1a212b'
|
|
2587
|
+
};
|
|
2588
|
+
},
|
|
2589
|
+
textareaStyle() {
|
|
2590
|
+
return {
|
|
2591
|
+
borderRadius: this.styleConfig.borderRadius || '16rpx',
|
|
2592
|
+
backgroundColor: this.styleConfig.inputBg || '#1a212b'
|
|
2593
|
+
};
|
|
2594
|
+
},
|
|
2595
|
+
submitBtnStyle() {
|
|
2596
|
+
return {
|
|
2597
|
+
background: this.styleConfig.buttonGradient || 'linear-gradient(270deg, rgba(162, 11, 222, 0.8) 0%, rgba(82, 39, 238, 0.8) 98%)',
|
|
2598
|
+
borderRadius: this.styleConfig.submitBtnRadius || '50rpx'
|
|
2599
|
+
};
|
|
2600
|
+
}
|
|
2601
|
+
},
|
|
2602
|
+
onUnload() {
|
|
2603
|
+
if (this.audioPlayer) {
|
|
2604
|
+
this.audioPlayer.destroy();
|
|
2605
|
+
this.audioPlayer = null;
|
|
2606
|
+
}
|
|
2607
|
+
},
|
|
2608
|
+
methods: {
|
|
2609
|
+
handleSubmit() {
|
|
2610
|
+
if (this.currentTab === "video") {
|
|
2611
|
+
this.createDigitalPerson();
|
|
2612
|
+
} else if (this.currentTab === "voice") {
|
|
2613
|
+
this.createDigitalPersonVoice();
|
|
2614
|
+
}
|
|
2615
|
+
},
|
|
2616
|
+
createDigitalPerson() {
|
|
2617
|
+
if (!this.videoForm.name || !this.trainVideoUrl || !this.authVideoUrl) {
|
|
2618
|
+
uni.showToast({
|
|
2619
|
+
title: "请填写完整视频信息",
|
|
2620
|
+
icon: "none"
|
|
2621
|
+
});
|
|
2622
|
+
return;
|
|
2623
|
+
}
|
|
2624
|
+
if (!this.api.createPerson) {
|
|
2625
|
+
console.error("api.createPerson is not provided");
|
|
2626
|
+
return;
|
|
2627
|
+
}
|
|
2628
|
+
uni.showLoading({
|
|
2629
|
+
title: "正在提交...",
|
|
2630
|
+
mask: true
|
|
2631
|
+
});
|
|
2632
|
+
this.api.createPerson({
|
|
2633
|
+
name: this.videoForm.name,
|
|
2634
|
+
description: this.videoForm.description,
|
|
2635
|
+
authUrl: this.authVideoUrl,
|
|
2636
|
+
trainUrl: this.trainVideoUrl,
|
|
2637
|
+
coverUrl: ""
|
|
2638
|
+
}).then(res => {
|
|
2639
|
+
if (res.code === 200) {
|
|
2640
|
+
uni.showToast({
|
|
2641
|
+
title: "数字人创建成功",
|
|
2642
|
+
icon: "success"
|
|
2643
|
+
});
|
|
2644
|
+
this.resetForm();
|
|
2645
|
+
} else {
|
|
2646
|
+
uni.showToast({
|
|
2647
|
+
title: res.msg || "数字人创建失败",
|
|
2648
|
+
icon: "none"
|
|
2649
|
+
});
|
|
2650
|
+
}
|
|
2651
|
+
}).catch(err => {
|
|
2652
|
+
uni.showToast({
|
|
2653
|
+
title: err.message || "数字人创建失败",
|
|
2654
|
+
icon: "none"
|
|
2655
|
+
});
|
|
2656
|
+
}).finally(() => {
|
|
2657
|
+
uni.hideLoading();
|
|
2658
|
+
if (this.api.subscribeMessage) this.api.subscribeMessage();
|
|
2659
|
+
});
|
|
2660
|
+
},
|
|
2661
|
+
createDigitalPersonVoice() {
|
|
2662
|
+
if (!this.voiceForm.name || !this.audioUrl) {
|
|
2663
|
+
uni.showToast({
|
|
2664
|
+
title: "请填写完整音色信息",
|
|
2665
|
+
icon: "none"
|
|
2666
|
+
});
|
|
2667
|
+
return;
|
|
2668
|
+
}
|
|
2669
|
+
if (!this.api.createVoice) {
|
|
2670
|
+
console.error("api.createVoice is not provided");
|
|
2671
|
+
return;
|
|
2672
|
+
}
|
|
2673
|
+
uni.showLoading({
|
|
2674
|
+
title: "正在提交...",
|
|
2675
|
+
mask: true
|
|
2676
|
+
});
|
|
2677
|
+
this.api.createVoice({
|
|
2678
|
+
name: this.voiceForm.name,
|
|
2679
|
+
description: this.voiceForm.description,
|
|
2680
|
+
trainUrl: this.audioUrl
|
|
2681
|
+
}).then(res => {
|
|
2682
|
+
if (res.code === 200) {
|
|
2683
|
+
uni.showToast({
|
|
2684
|
+
title: "数字人音色创建成功",
|
|
2685
|
+
icon: "success"
|
|
2686
|
+
});
|
|
2687
|
+
this.resetForm();
|
|
2688
|
+
} else {
|
|
2689
|
+
uni.showToast({
|
|
2690
|
+
title: res.msg || "数字人音色创建失败",
|
|
2691
|
+
icon: "none"
|
|
2692
|
+
});
|
|
2693
|
+
}
|
|
2694
|
+
}).catch(err => {
|
|
2695
|
+
uni.showToast({
|
|
2696
|
+
title: err.message || "数字人音色创建失败",
|
|
2697
|
+
icon: "none"
|
|
2698
|
+
});
|
|
2699
|
+
}).finally(() => {
|
|
2700
|
+
uni.hideLoading();
|
|
2701
|
+
if (this.api.subscribeMessage) this.api.subscribeMessage();
|
|
2702
|
+
});
|
|
2703
|
+
},
|
|
2704
|
+
resetForm() {
|
|
2705
|
+
this.videoForm = {
|
|
2706
|
+
name: "",
|
|
2707
|
+
description: ""
|
|
2708
|
+
};
|
|
2709
|
+
this.voiceForm = {
|
|
2710
|
+
name: "",
|
|
2711
|
+
description: ""
|
|
2712
|
+
};
|
|
2713
|
+
this.trainVideoUrl = "";
|
|
2714
|
+
this.authVideoUrl = "";
|
|
2715
|
+
this.audioUrl = "";
|
|
2716
|
+
this.audioFileName = "";
|
|
2717
|
+
if (this.audioPlayer) this.audioPlayer.stop();
|
|
2718
|
+
this.isAudioPlaying = false;
|
|
2719
|
+
},
|
|
2720
|
+
handleChooseTrainVideo() {
|
|
2721
|
+
this.chooseVideo("trainVideo");
|
|
2722
|
+
},
|
|
2723
|
+
handleChooseAuthVideo() {
|
|
2724
|
+
this.chooseVideo("authVideo");
|
|
2725
|
+
},
|
|
2726
|
+
chooseVideo(type) {
|
|
2727
|
+
const maxSize = this.maxVideoSize;
|
|
2728
|
+
uni.chooseMedia({
|
|
2729
|
+
count: 1,
|
|
2730
|
+
mediaType: ["video"],
|
|
2731
|
+
sourceType: ["album", "camera"],
|
|
2732
|
+
compressed: true,
|
|
2733
|
+
maxDuration: 60,
|
|
2734
|
+
success: res => {
|
|
2735
|
+
const file = res.tempFiles && res.tempFiles[0];
|
|
2736
|
+
if (!file) return;
|
|
2737
|
+
if (file.size > maxSize * 1024 * 1024) {
|
|
2738
|
+
uni.showToast({
|
|
2739
|
+
title: `视频不能超过${maxSize}M`,
|
|
2740
|
+
icon: "none"
|
|
2741
|
+
});
|
|
2742
|
+
return;
|
|
2743
|
+
}
|
|
2744
|
+
this.uploadFile(file.tempFilePath, "video", type);
|
|
2745
|
+
}
|
|
2746
|
+
});
|
|
2747
|
+
},
|
|
2748
|
+
handleChooseAudioFromChat() {
|
|
2749
|
+
const maxSize = this.maxAudioSize;
|
|
2750
|
+
uni.chooseMessageFile({
|
|
2751
|
+
count: 1,
|
|
2752
|
+
type: "file",
|
|
2753
|
+
extension: ["mp3", "wav", "m4a", "MP3", "WAV", "M4A"],
|
|
2754
|
+
success: res => {
|
|
2755
|
+
const file = res.tempFiles && res.tempFiles[0];
|
|
2756
|
+
if (!file) return;
|
|
2757
|
+
if (file.size > maxSize * 1024 * 1024) {
|
|
2758
|
+
uni.showToast({
|
|
2759
|
+
title: `音频不能超过${maxSize}M`,
|
|
2760
|
+
icon: "none"
|
|
2761
|
+
});
|
|
2762
|
+
return;
|
|
2763
|
+
}
|
|
2764
|
+
const path = file.path || file.tempFilePath;
|
|
2765
|
+
this.audioFileName = file.name || "";
|
|
2766
|
+
this.uploadFile(path, "audio", "audioUrl");
|
|
2767
|
+
}
|
|
2768
|
+
});
|
|
2769
|
+
},
|
|
2770
|
+
handleToggleAudio() {
|
|
2771
|
+
if (!this.audioUrl) return;
|
|
2772
|
+
if (!this.audioPlayer) {
|
|
2773
|
+
this.audioPlayer = uni.createInnerAudioContext();
|
|
2774
|
+
this.audioPlayer.obeyMuteSwitch = false;
|
|
2775
|
+
this.audioPlayer.onEnded(() => {
|
|
2776
|
+
this.isAudioPlaying = false;
|
|
2777
|
+
});
|
|
2778
|
+
this.audioPlayer.onStop(() => {
|
|
2779
|
+
this.isAudioPlaying = false;
|
|
2780
|
+
});
|
|
2781
|
+
this.audioPlayer.onError(() => {
|
|
2782
|
+
this.isAudioPlaying = false;
|
|
2783
|
+
});
|
|
2784
|
+
}
|
|
2785
|
+
if (this.isAudioPlaying) {
|
|
2786
|
+
this.audioPlayer.stop();
|
|
2787
|
+
this.isAudioPlaying = false;
|
|
2788
|
+
} else {
|
|
2789
|
+
this.audioPlayer.src = this.audioUrl;
|
|
2790
|
+
this.audioPlayer.play();
|
|
2791
|
+
this.isAudioPlaying = true;
|
|
2792
|
+
}
|
|
2793
|
+
},
|
|
2794
|
+
handleDeleteAudio() {
|
|
2795
|
+
if (this.audioPlayer) {
|
|
2796
|
+
this.audioPlayer.stop();
|
|
2797
|
+
this.audioPlayer.destroy();
|
|
2798
|
+
this.audioPlayer = null;
|
|
2799
|
+
}
|
|
2800
|
+
this.audioUrl = "";
|
|
2801
|
+
this.audioFileName = "";
|
|
2802
|
+
this.isAudioPlaying = false;
|
|
2803
|
+
this.audioProgress = 0;
|
|
2804
|
+
},
|
|
2805
|
+
handleDeleteVideo(type) {
|
|
2806
|
+
if (type === "trainVideo") {
|
|
2807
|
+
this.trainVideoUrl = "";
|
|
2808
|
+
this.trainVideoProgress = 0;
|
|
2809
|
+
} else if (type === "authVideo") {
|
|
2810
|
+
this.authVideoUrl = "";
|
|
2811
|
+
this.authVideoProgress = 0;
|
|
2812
|
+
}
|
|
2813
|
+
},
|
|
2814
|
+
handleCopyAuthorizeText() {
|
|
2815
|
+
const text = this.config.tips;
|
|
2816
|
+
uni.setClipboardData({
|
|
2817
|
+
data: text,
|
|
2818
|
+
success: () => {
|
|
2819
|
+
uni.showToast({
|
|
2820
|
+
title: "授权语已复制",
|
|
2821
|
+
icon: "success"
|
|
2822
|
+
});
|
|
2823
|
+
}
|
|
2824
|
+
});
|
|
2825
|
+
},
|
|
2826
|
+
uploadFile(filePath, fileType, fieldKey) {
|
|
2827
|
+
const _this = this;
|
|
2828
|
+
const uploadUrl = this.config.uploadUrl || this.config.baseUrl + "/api/mobile/upload/file";
|
|
2829
|
+
const uploadTask = uni.uploadFile({
|
|
2830
|
+
url: uploadUrl,
|
|
2831
|
+
filePath,
|
|
2832
|
+
name: "file",
|
|
2833
|
+
formData: {
|
|
2834
|
+
fileType
|
|
2835
|
+
},
|
|
2836
|
+
header: {
|
|
2837
|
+
"Authori-zation": this.config.token,
|
|
2838
|
+
"Authorization": this.config.token,
|
|
2839
|
+
"Content-Type": "multipart/form-data",
|
|
2840
|
+
appid: this.config.appid
|
|
2841
|
+
},
|
|
2842
|
+
success: res => {
|
|
2843
|
+
try {
|
|
2844
|
+
const data = res.data ? JSON.parse(res.data) : {};
|
|
2845
|
+
if (data.code === 200) {
|
|
2846
|
+
uni.showToast({
|
|
2847
|
+
title: "上传成功",
|
|
2848
|
+
icon: "success"
|
|
2849
|
+
});
|
|
2850
|
+
if (fieldKey === "trainVideo") {
|
|
2851
|
+
_this.trainVideoUrl = data.data.url;
|
|
2852
|
+
_this.trainVideoProgress = 100;
|
|
2853
|
+
} else if (fieldKey === "authVideo") {
|
|
2854
|
+
_this.authVideoUrl = data.data.url;
|
|
2855
|
+
_this.authVideoProgress = 100;
|
|
2856
|
+
} else if (fieldKey === "audioUrl") {
|
|
2857
|
+
_this.audioUrl = data.data.url;
|
|
2858
|
+
_this.audioProgress = 100;
|
|
2859
|
+
}
|
|
2860
|
+
} else {
|
|
2861
|
+
uni.showToast({
|
|
2862
|
+
title: data.message || "上传失败",
|
|
2863
|
+
icon: "none"
|
|
2864
|
+
});
|
|
2865
|
+
_this.resetProgress(fieldKey);
|
|
2866
|
+
}
|
|
2867
|
+
} catch (e) {
|
|
2868
|
+
uni.showToast({
|
|
2869
|
+
title: "响应解析失败",
|
|
2870
|
+
icon: "none"
|
|
2871
|
+
});
|
|
2872
|
+
_this.resetProgress(fieldKey);
|
|
2873
|
+
}
|
|
2874
|
+
},
|
|
2875
|
+
fail: err => {
|
|
2876
|
+
uni.showToast({
|
|
2877
|
+
title: err && err.errMsg || "上传失败",
|
|
2878
|
+
icon: "none"
|
|
2879
|
+
});
|
|
2880
|
+
_this.resetProgress(fieldKey);
|
|
2881
|
+
}
|
|
2882
|
+
});
|
|
2883
|
+
uploadTask.onProgressUpdate(res => {
|
|
2884
|
+
if (fieldKey === "trainVideo") {
|
|
2885
|
+
_this.trainVideoProgress = res.progress;
|
|
2886
|
+
} else if (fieldKey === "authVideo") {
|
|
2887
|
+
_this.authVideoProgress = res.progress;
|
|
2888
|
+
} else if (fieldKey === "audioUrl") {
|
|
2889
|
+
_this.audioProgress = res.progress;
|
|
2890
|
+
}
|
|
2891
|
+
});
|
|
2892
|
+
},
|
|
2893
|
+
resetProgress(fieldKey) {
|
|
2894
|
+
if (fieldKey === "trainVideo") this.trainVideoProgress = 0;else if (fieldKey === "authVideo") this.authVideoProgress = 0;else if (fieldKey === "audioUrl") this.audioProgress = 0;
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
});
|
|
2898
|
+
;// ./src/package/createAIDoppelganger/index.vue?vue&type=script&lang=js
|
|
2899
|
+
/* harmony default export */ var package_createAIDoppelgangervue_type_script_lang_js = (createAIDoppelgangervue_type_script_lang_js);
|
|
2900
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/package/createAIDoppelganger/index.vue?vue&type=style&index=0&id=16fedc32&prod&lang=scss&scoped=true
|
|
2901
|
+
// extracted by mini-css-extract-plugin
|
|
2902
|
+
|
|
2903
|
+
;// ./src/package/createAIDoppelganger/index.vue?vue&type=style&index=0&id=16fedc32&prod&lang=scss&scoped=true
|
|
2904
|
+
|
|
2905
|
+
;// ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
2906
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
2907
|
+
|
|
2908
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
2909
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
2910
|
+
// be included in the final webpack user bundle.
|
|
2911
|
+
|
|
2912
|
+
function normalizeComponent(
|
|
2913
|
+
scriptExports,
|
|
2914
|
+
render,
|
|
2915
|
+
staticRenderFns,
|
|
2916
|
+
functionalTemplate,
|
|
2917
|
+
injectStyles,
|
|
2918
|
+
scopeId,
|
|
2919
|
+
moduleIdentifier /* server only */,
|
|
2920
|
+
shadowMode /* vue-cli only */
|
|
2921
|
+
) {
|
|
2922
|
+
// Vue.extend constructor export interop
|
|
2923
|
+
var options =
|
|
2924
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
2925
|
+
|
|
2926
|
+
// render functions
|
|
2927
|
+
if (render) {
|
|
2928
|
+
options.render = render
|
|
2929
|
+
options.staticRenderFns = staticRenderFns
|
|
2930
|
+
options._compiled = true
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
// functional template
|
|
2934
|
+
if (functionalTemplate) {
|
|
2935
|
+
options.functional = true
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
// scopedId
|
|
2939
|
+
if (scopeId) {
|
|
2940
|
+
options._scopeId = 'data-v-' + scopeId
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
var hook
|
|
2944
|
+
if (moduleIdentifier) {
|
|
2945
|
+
// server build
|
|
2946
|
+
hook = function (context) {
|
|
2947
|
+
// 2.3 injection
|
|
2948
|
+
context =
|
|
2949
|
+
context || // cached call
|
|
2950
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
2951
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
2952
|
+
// 2.2 with runInNewContext: true
|
|
2953
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
2954
|
+
context = __VUE_SSR_CONTEXT__
|
|
2955
|
+
}
|
|
2956
|
+
// inject component styles
|
|
2957
|
+
if (injectStyles) {
|
|
2958
|
+
injectStyles.call(this, context)
|
|
2959
|
+
}
|
|
2960
|
+
// register component module identifier for async chunk inferrence
|
|
2961
|
+
if (context && context._registeredComponents) {
|
|
2962
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
// used by ssr in case component is cached and beforeCreate
|
|
2966
|
+
// never gets called
|
|
2967
|
+
options._ssrRegister = hook
|
|
2968
|
+
} else if (injectStyles) {
|
|
2969
|
+
hook = shadowMode
|
|
2970
|
+
? function () {
|
|
2971
|
+
injectStyles.call(
|
|
2972
|
+
this,
|
|
2973
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
2974
|
+
)
|
|
2975
|
+
}
|
|
2976
|
+
: injectStyles
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2979
|
+
if (hook) {
|
|
2980
|
+
if (options.functional) {
|
|
2981
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
2982
|
+
// go through the normalizer
|
|
2983
|
+
options._injectStyles = hook
|
|
2984
|
+
// register for functional component in vue file
|
|
2985
|
+
var originalRender = options.render
|
|
2986
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
2987
|
+
hook.call(context)
|
|
2988
|
+
return originalRender(h, context)
|
|
2989
|
+
}
|
|
2990
|
+
} else {
|
|
2991
|
+
// inject component registration as beforeCreate hook
|
|
2992
|
+
var existing = options.beforeCreate
|
|
2993
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
return {
|
|
2998
|
+
exports: scriptExports,
|
|
2999
|
+
options: options
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
|
|
3003
|
+
;// ./src/package/createAIDoppelganger/index.vue
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
|
|
3007
|
+
;
|
|
3008
|
+
|
|
3009
|
+
|
|
3010
|
+
/* normalize component */
|
|
3011
|
+
|
|
3012
|
+
var component = normalizeComponent(
|
|
3013
|
+
package_createAIDoppelgangervue_type_script_lang_js,
|
|
3014
|
+
render,
|
|
3015
|
+
staticRenderFns,
|
|
3016
|
+
false,
|
|
3017
|
+
null,
|
|
3018
|
+
"16fedc32",
|
|
3019
|
+
null
|
|
3020
|
+
|
|
3021
|
+
)
|
|
3022
|
+
|
|
3023
|
+
/* harmony default export */ var createAIDoppelganger = (component.exports);
|
|
3024
|
+
;// ./src/package/createAIDoppelganger/index.js
|
|
3025
|
+
|
|
3026
|
+
createAIDoppelganger.install = function (Vue) {
|
|
3027
|
+
Vue.component(createAIDoppelganger.name, createAIDoppelganger);
|
|
3028
|
+
};
|
|
3029
|
+
/* harmony default export */ var package_createAIDoppelganger = (createAIDoppelganger);
|
|
3030
|
+
;// ./src/package/index.js
|
|
3031
|
+
|
|
3032
|
+
const components = [package_createAIDoppelganger];
|
|
3033
|
+
const install = function (Vue) {
|
|
3034
|
+
components.forEach(component => {
|
|
3035
|
+
Vue.component(component.name, component);
|
|
3036
|
+
});
|
|
3037
|
+
};
|
|
3038
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
3039
|
+
install(window.Vue);
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
/* harmony default export */ var src_package = ({
|
|
3043
|
+
install
|
|
3044
|
+
});
|
|
3045
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
3046
|
+
|
|
3047
|
+
|
|
3048
|
+
/* harmony default export */ var entry_lib = (src_package);
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
/******/ return __webpack_exports__;
|
|
3052
|
+
/******/ })()
|
|
3053
|
+
;
|
|
3054
|
+
});
|
|
3055
|
+
//# sourceMappingURL=fimoi-ui.umd.js.map
|