@94ai/nf-audio 3.2.48 → 100.1.1

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.
@@ -3,867 +3,16 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vueDemi = require("vue-demi");
4
4
  const vue2RuntimeHelpers = require("@94ai/vue2-runtime-helpers");
5
5
  const elementUi = require("element-ui");
6
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
7
- function getDefaultExportFromCjs(x) {
8
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
9
- }
10
- var check = function(it) {
11
- return it && it.Math === Math && it;
12
- };
13
- var global$d = (
14
- // eslint-disable-next-line es/no-global-this -- safe
15
- check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
16
- check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
17
- function() {
18
- return this;
19
- }() || commonjsGlobal || Function("return this")()
20
- );
21
- var fails$9 = function(exec2) {
22
- try {
23
- return !!exec2();
24
- } catch (error) {
25
- return true;
26
- }
27
- };
28
- var fails$8 = fails$9;
29
- var functionBindNative = !fails$8(function() {
30
- var test2 = (function() {
31
- }).bind();
32
- return typeof test2 != "function" || test2.hasOwnProperty("prototype");
33
- });
34
- var NATIVE_BIND$3 = functionBindNative;
35
- var FunctionPrototype$1 = Function.prototype;
36
- var apply$2 = FunctionPrototype$1.apply;
37
- var call$6 = FunctionPrototype$1.call;
38
- var functionApply = typeof Reflect == "object" && Reflect.apply || (NATIVE_BIND$3 ? call$6.bind(apply$2) : function() {
39
- return call$6.apply(apply$2, arguments);
40
- });
41
- var NATIVE_BIND$2 = functionBindNative;
42
- var FunctionPrototype = Function.prototype;
43
- var call$5 = FunctionPrototype.call;
44
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype.bind.bind(call$5, call$5);
45
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function(fn) {
46
- return function() {
47
- return call$5.apply(fn, arguments);
48
- };
49
- };
50
- var uncurryThis$c = functionUncurryThis;
51
- var toString$4 = uncurryThis$c({}.toString);
52
- var stringSlice = uncurryThis$c("".slice);
53
- var classofRaw$2 = function(it) {
54
- return stringSlice(toString$4(it), 8, -1);
55
- };
56
- var classofRaw$1 = classofRaw$2;
57
- var uncurryThis$b = functionUncurryThis;
58
- var functionUncurryThisClause = function(fn) {
59
- if (classofRaw$1(fn) === "Function")
60
- return uncurryThis$b(fn);
61
- };
62
- var documentAll$2 = typeof document == "object" && document.all;
63
- var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
64
- var documentAll_1 = {
65
- all: documentAll$2,
66
- IS_HTMLDDA
67
- };
68
- var $documentAll$1 = documentAll_1;
69
- var documentAll$1 = $documentAll$1.all;
70
- var isCallable$9 = $documentAll$1.IS_HTMLDDA ? function(argument) {
71
- return typeof argument == "function" || argument === documentAll$1;
72
- } : function(argument) {
73
- return typeof argument == "function";
74
- };
75
- var objectGetOwnPropertyDescriptor = {};
76
- var fails$7 = fails$9;
77
- var descriptors = !fails$7(function() {
78
- return Object.defineProperty({}, 1, {
79
- get: function() {
80
- return 7;
81
- }
82
- })[1] !== 7;
83
- });
84
- var NATIVE_BIND$1 = functionBindNative;
85
- var call$4 = Function.prototype.call;
86
- var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function() {
87
- return call$4.apply(call$4, arguments);
88
- };
89
- var objectPropertyIsEnumerable = {};
90
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
91
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
92
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({
93
- 1: 2
94
- }, 1);
95
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
96
- var descriptor = getOwnPropertyDescriptor$1(this, V);
97
- return !!descriptor && descriptor.enumerable;
98
- } : $propertyIsEnumerable;
99
- var createPropertyDescriptor$2 = function(bitmap, value) {
100
- return {
101
- enumerable: !(bitmap & 1),
102
- configurable: !(bitmap & 2),
103
- writable: !(bitmap & 4),
104
- value
105
- };
106
- };
107
- var uncurryThis$a = functionUncurryThis;
108
- var fails$6 = fails$9;
109
- var classof$2 = classofRaw$2;
110
- var $Object$3 = Object;
111
- var split = uncurryThis$a("".split);
112
- var indexedObject = fails$6(function() {
113
- return !$Object$3("z").propertyIsEnumerable(0);
114
- }) ? function(it) {
115
- return classof$2(it) === "String" ? split(it, "") : $Object$3(it);
116
- } : $Object$3;
117
- var isNullOrUndefined$2 = function(it) {
118
- return it === null || it === void 0;
119
- };
120
- var isNullOrUndefined$1 = isNullOrUndefined$2;
121
- var $TypeError$6 = TypeError;
122
- var requireObjectCoercible$3 = function(it) {
123
- if (isNullOrUndefined$1(it))
124
- throw $TypeError$6("Can't call method on " + it);
125
- return it;
126
- };
127
- var IndexedObject$1 = indexedObject;
128
- var requireObjectCoercible$2 = requireObjectCoercible$3;
129
- var toIndexedObject$3 = function(it) {
130
- return IndexedObject$1(requireObjectCoercible$2(it));
131
- };
132
- var isCallable$8 = isCallable$9;
133
- var $documentAll = documentAll_1;
134
- var documentAll = $documentAll.all;
135
- var isObject$4 = $documentAll.IS_HTMLDDA ? function(it) {
136
- return typeof it == "object" ? it !== null : isCallable$8(it) || it === documentAll;
137
- } : function(it) {
138
- return typeof it == "object" ? it !== null : isCallable$8(it);
139
- };
140
- var path$5 = {};
141
- var path$4 = path$5;
142
- var global$c = global$d;
143
- var isCallable$7 = isCallable$9;
144
- var aFunction = function(variable) {
145
- return isCallable$7(variable) ? variable : void 0;
146
- };
147
- var getBuiltIn$1 = function(namespace, method) {
148
- return arguments.length < 2 ? aFunction(path$4[namespace]) || aFunction(global$c[namespace]) : path$4[namespace] && path$4[namespace][method] || global$c[namespace] && global$c[namespace][method];
149
- };
150
- var uncurryThis$9 = functionUncurryThis;
151
- var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
152
- var engineUserAgent = typeof navigator != "undefined" && String(navigator.userAgent) || "";
153
- var global$b = global$d;
154
- var userAgent = engineUserAgent;
155
- var process = global$b.process;
156
- var Deno = global$b.Deno;
157
- var versions = process && process.versions || Deno && Deno.version;
158
- var v8 = versions && versions.v8;
159
- var match, version;
160
- if (v8) {
161
- match = v8.split(".");
162
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
163
- }
164
- if (!version && userAgent) {
165
- match = userAgent.match(/Edge\/(\d+)/);
166
- if (!match || match[1] >= 74) {
167
- match = userAgent.match(/Chrome\/(\d+)/);
168
- if (match)
169
- version = +match[1];
170
- }
171
- }
172
- var engineV8Version = version;
173
- var V8_VERSION = engineV8Version;
174
- var fails$5 = fails$9;
175
- var global$a = global$d;
176
- var $String$3 = global$a.String;
177
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function() {
178
- var symbol = Symbol("symbol detection");
179
- return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
180
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
181
- });
182
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
183
- var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
184
- var getBuiltIn = getBuiltIn$1;
185
- var isCallable$6 = isCallable$9;
186
- var isPrototypeOf = objectIsPrototypeOf;
187
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
188
- var $Object$2 = Object;
189
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function(it) {
190
- return typeof it == "symbol";
191
- } : function(it) {
192
- var $Symbol = getBuiltIn("Symbol");
193
- return isCallable$6($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
194
- };
195
- var $String$2 = String;
196
- var tryToString$1 = function(argument) {
197
- try {
198
- return $String$2(argument);
199
- } catch (error) {
200
- return "Object";
201
- }
202
- };
203
- var isCallable$5 = isCallable$9;
204
- var tryToString = tryToString$1;
205
- var $TypeError$5 = TypeError;
206
- var aCallable$2 = function(argument) {
207
- if (isCallable$5(argument))
208
- return argument;
209
- throw $TypeError$5(tryToString(argument) + " is not a function");
210
- };
211
- var aCallable$1 = aCallable$2;
212
- var isNullOrUndefined = isNullOrUndefined$2;
213
- var getMethod$1 = function(V, P) {
214
- var func = V[P];
215
- return isNullOrUndefined(func) ? void 0 : aCallable$1(func);
216
- };
217
- var call$3 = functionCall;
218
- var isCallable$4 = isCallable$9;
219
- var isObject$3 = isObject$4;
220
- var $TypeError$4 = TypeError;
221
- var ordinaryToPrimitive$1 = function(input, pref) {
222
- var fn, val;
223
- if (pref === "string" && isCallable$4(fn = input.toString) && !isObject$3(val = call$3(fn, input)))
224
- return val;
225
- if (isCallable$4(fn = input.valueOf) && !isObject$3(val = call$3(fn, input)))
226
- return val;
227
- if (pref !== "string" && isCallable$4(fn = input.toString) && !isObject$3(val = call$3(fn, input)))
228
- return val;
229
- throw $TypeError$4("Can't convert object to primitive value");
230
- };
231
- var shared$1 = { exports: {} };
232
- var global$9 = global$d;
233
- var defineProperty$1 = Object.defineProperty;
234
- var defineGlobalProperty$1 = function(key, value) {
235
- try {
236
- defineProperty$1(global$9, key, {
237
- value,
238
- configurable: true,
239
- writable: true
240
- });
241
- } catch (error) {
242
- global$9[key] = value;
243
- }
244
- return value;
245
- };
246
- var global$8 = global$d;
247
- var defineGlobalProperty = defineGlobalProperty$1;
248
- var SHARED = "__core-js_shared__";
249
- var store$1 = global$8[SHARED] || defineGlobalProperty(SHARED, {});
250
- var sharedStore = store$1;
251
- var store = sharedStore;
252
- (shared$1.exports = function(key, value) {
253
- return store[key] || (store[key] = value !== void 0 ? value : {});
254
- })("versions", []).push({
255
- version: "3.32.1",
256
- mode: "pure",
257
- copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)",
258
- license: "https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",
259
- source: "https://github.com/zloirock/core-js"
260
- });
261
- var sharedExports = shared$1.exports;
262
- var requireObjectCoercible$1 = requireObjectCoercible$3;
263
- var $Object$1 = Object;
264
- var toObject$2 = function(argument) {
265
- return $Object$1(requireObjectCoercible$1(argument));
266
- };
267
- var uncurryThis$8 = functionUncurryThis;
268
- var toObject$1 = toObject$2;
269
- var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
270
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
271
- return hasOwnProperty(toObject$1(it), key);
272
- };
273
- var uncurryThis$7 = functionUncurryThis;
274
- var id = 0;
275
- var postfix = Math.random();
276
- var toString$3 = uncurryThis$7(1 .toString);
277
- var uid$1 = function(key) {
278
- return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$3(++id + postfix, 36);
279
- };
280
- var global$7 = global$d;
281
- var shared = sharedExports;
282
- var hasOwn$3 = hasOwnProperty_1;
283
- var uid = uid$1;
284
- var NATIVE_SYMBOL = symbolConstructorDetection;
285
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
286
- var Symbol$2 = global$7.Symbol;
287
- var WellKnownSymbolsStore = shared("wks");
288
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2["for"] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid;
289
- var wellKnownSymbol$3 = function(name) {
290
- if (!hasOwn$3(WellKnownSymbolsStore, name)) {
291
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$3(Symbol$2, name) ? Symbol$2[name] : createWellKnownSymbol("Symbol." + name);
292
- }
293
- return WellKnownSymbolsStore[name];
294
- };
295
- var call$2 = functionCall;
296
- var isObject$2 = isObject$4;
297
- var isSymbol$1 = isSymbol$2;
298
- var getMethod = getMethod$1;
299
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
300
- var wellKnownSymbol$2 = wellKnownSymbol$3;
301
- var $TypeError$3 = TypeError;
302
- var TO_PRIMITIVE = wellKnownSymbol$2("toPrimitive");
303
- var toPrimitive$1 = function(input, pref) {
304
- if (!isObject$2(input) || isSymbol$1(input))
305
- return input;
306
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
307
- var result;
308
- if (exoticToPrim) {
309
- if (pref === void 0)
310
- pref = "default";
311
- result = call$2(exoticToPrim, input, pref);
312
- if (!isObject$2(result) || isSymbol$1(result))
313
- return result;
314
- throw $TypeError$3("Can't convert object to primitive value");
315
- }
316
- if (pref === void 0)
317
- pref = "number";
318
- return ordinaryToPrimitive(input, pref);
319
- };
320
- var toPrimitive = toPrimitive$1;
321
- var isSymbol = isSymbol$2;
322
- var toPropertyKey$2 = function(argument) {
323
- var key = toPrimitive(argument, "string");
324
- return isSymbol(key) ? key : key + "";
325
- };
326
- var global$6 = global$d;
327
- var isObject$1 = isObject$4;
328
- var document$1 = global$6.document;
329
- var EXISTS = isObject$1(document$1) && isObject$1(document$1.createElement);
330
- var documentCreateElement = function(it) {
331
- return EXISTS ? document$1.createElement(it) : {};
332
- };
333
- var DESCRIPTORS$5 = descriptors;
334
- var fails$4 = fails$9;
335
- var createElement = documentCreateElement;
336
- var ie8DomDefine = !DESCRIPTORS$5 && !fails$4(function() {
337
- return Object.defineProperty(createElement("div"), "a", {
338
- get: function() {
339
- return 7;
340
- }
341
- }).a !== 7;
342
- });
343
- var DESCRIPTORS$4 = descriptors;
344
- var call$1 = functionCall;
345
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
346
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
347
- var toIndexedObject$2 = toIndexedObject$3;
348
- var toPropertyKey$1 = toPropertyKey$2;
349
- var hasOwn$2 = hasOwnProperty_1;
350
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
351
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
352
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
353
- O = toIndexedObject$2(O);
354
- P = toPropertyKey$1(P);
355
- if (IE8_DOM_DEFINE$1)
356
- try {
357
- return $getOwnPropertyDescriptor$1(O, P);
358
- } catch (error) {
359
- }
360
- if (hasOwn$2(O, P))
361
- return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
362
- };
363
- var fails$3 = fails$9;
364
- var isCallable$3 = isCallable$9;
365
- var replacement = /#|\.prototype\./;
366
- var isForced$1 = function(feature, detection) {
367
- var value = data[normalize(feature)];
368
- return value === POLYFILL ? true : value === NATIVE ? false : isCallable$3(detection) ? fails$3(detection) : !!detection;
369
- };
370
- var normalize = isForced$1.normalize = function(string) {
371
- return String(string).replace(replacement, ".").toLowerCase();
372
- };
373
- var data = isForced$1.data = {};
374
- var NATIVE = isForced$1.NATIVE = "N";
375
- var POLYFILL = isForced$1.POLYFILL = "P";
376
- var isForced_1 = isForced$1;
377
- var uncurryThis$6 = functionUncurryThisClause;
378
- var aCallable = aCallable$2;
379
- var NATIVE_BIND = functionBindNative;
380
- var bind$1 = uncurryThis$6(uncurryThis$6.bind);
381
- var functionBindContext = function(fn, that) {
382
- aCallable(fn);
383
- return that === void 0 ? fn : NATIVE_BIND ? bind$1(fn, that) : function() {
384
- return fn.apply(that, arguments);
385
- };
386
- };
387
- var objectDefineProperty = {};
388
- var DESCRIPTORS$3 = descriptors;
389
- var fails$2 = fails$9;
390
- var v8PrototypeDefineBug = DESCRIPTORS$3 && fails$2(function() {
391
- return Object.defineProperty(function() {
392
- }, "prototype", {
393
- value: 42,
394
- writable: false
395
- }).prototype !== 42;
396
- });
397
- var isObject = isObject$4;
398
- var $String$1 = String;
399
- var $TypeError$2 = TypeError;
400
- var anObject$1 = function(argument) {
401
- if (isObject(argument))
402
- return argument;
403
- throw $TypeError$2($String$1(argument) + " is not an object");
404
- };
405
- var DESCRIPTORS$2 = descriptors;
406
- var IE8_DOM_DEFINE = ie8DomDefine;
407
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
408
- var anObject = anObject$1;
409
- var toPropertyKey = toPropertyKey$2;
410
- var $TypeError$1 = TypeError;
411
- var $defineProperty = Object.defineProperty;
412
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
413
- var ENUMERABLE = "enumerable";
414
- var CONFIGURABLE = "configurable";
415
- var WRITABLE = "writable";
416
- objectDefineProperty.f = DESCRIPTORS$2 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
417
- anObject(O);
418
- P = toPropertyKey(P);
419
- anObject(Attributes);
420
- if (typeof O === "function" && P === "prototype" && "value" in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
421
- var current = $getOwnPropertyDescriptor(O, P);
422
- if (current && current[WRITABLE]) {
423
- O[P] = Attributes.value;
424
- Attributes = {
425
- configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
426
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
427
- writable: false
428
- };
429
- }
430
- }
431
- return $defineProperty(O, P, Attributes);
432
- } : $defineProperty : function defineProperty2(O, P, Attributes) {
433
- anObject(O);
434
- P = toPropertyKey(P);
435
- anObject(Attributes);
436
- if (IE8_DOM_DEFINE)
437
- try {
438
- return $defineProperty(O, P, Attributes);
439
- } catch (error) {
440
- }
441
- if ("get" in Attributes || "set" in Attributes)
442
- throw $TypeError$1("Accessors not supported");
443
- if ("value" in Attributes)
444
- O[P] = Attributes.value;
445
- return O;
446
- };
447
- var DESCRIPTORS$1 = descriptors;
448
- var definePropertyModule = objectDefineProperty;
449
- var createPropertyDescriptor = createPropertyDescriptor$2;
450
- var createNonEnumerableProperty$1 = DESCRIPTORS$1 ? function(object, key, value) {
451
- return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
452
- } : function(object, key, value) {
453
- object[key] = value;
454
- return object;
455
- };
456
- var global$5 = global$d;
457
- var apply$1 = functionApply;
458
- var uncurryThis$5 = functionUncurryThisClause;
459
- var isCallable$2 = isCallable$9;
460
- var getOwnPropertyDescriptor2 = objectGetOwnPropertyDescriptor.f;
461
- var isForced = isForced_1;
462
- var path$3 = path$5;
463
- var bind = functionBindContext;
464
- var createNonEnumerableProperty = createNonEnumerableProperty$1;
465
- var hasOwn$1 = hasOwnProperty_1;
466
- var wrapConstructor = function(NativeConstructor) {
467
- var Wrapper = function(a, b, c) {
468
- if (this instanceof Wrapper) {
469
- switch (arguments.length) {
470
- case 0:
471
- return new NativeConstructor();
472
- case 1:
473
- return new NativeConstructor(a);
474
- case 2:
475
- return new NativeConstructor(a, b);
476
- }
477
- return new NativeConstructor(a, b, c);
478
- }
479
- return apply$1(NativeConstructor, this, arguments);
480
- };
481
- Wrapper.prototype = NativeConstructor.prototype;
482
- return Wrapper;
483
- };
484
- var _export = function(options, source) {
485
- var TARGET = options.target;
486
- var GLOBAL = options.global;
487
- var STATIC = options.stat;
488
- var PROTO = options.proto;
489
- var nativeSource = GLOBAL ? global$5 : STATIC ? global$5[TARGET] : (global$5[TARGET] || {}).prototype;
490
- var target = GLOBAL ? path$3 : path$3[TARGET] || createNonEnumerableProperty(path$3, TARGET, {})[TARGET];
491
- var targetPrototype = target.prototype;
492
- var FORCED2, USE_NATIVE, VIRTUAL_PROTOTYPE;
493
- var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
494
- for (key in source) {
495
- FORCED2 = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
496
- USE_NATIVE = !FORCED2 && nativeSource && hasOwn$1(nativeSource, key);
497
- targetProperty = target[key];
498
- if (USE_NATIVE)
499
- if (options.dontCallGetSet) {
500
- descriptor = getOwnPropertyDescriptor2(nativeSource, key);
501
- nativeProperty = descriptor && descriptor.value;
502
- } else
503
- nativeProperty = nativeSource[key];
504
- sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
505
- if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
506
- continue;
507
- if (options.bind && USE_NATIVE)
508
- resultProperty = bind(sourceProperty, global$5);
509
- else if (options.wrap && USE_NATIVE)
510
- resultProperty = wrapConstructor(sourceProperty);
511
- else if (PROTO && isCallable$2(sourceProperty))
512
- resultProperty = uncurryThis$5(sourceProperty);
513
- else
514
- resultProperty = sourceProperty;
515
- if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
516
- createNonEnumerableProperty(resultProperty, "sham", true);
517
- }
518
- createNonEnumerableProperty(target, key, resultProperty);
519
- if (PROTO) {
520
- VIRTUAL_PROTOTYPE = TARGET + "Prototype";
521
- if (!hasOwn$1(path$3, VIRTUAL_PROTOTYPE)) {
522
- createNonEnumerableProperty(path$3, VIRTUAL_PROTOTYPE, {});
523
- }
524
- createNonEnumerableProperty(path$3[VIRTUAL_PROTOTYPE], key, sourceProperty);
525
- if (options.real && targetPrototype && (FORCED2 || !targetPrototype[key])) {
526
- createNonEnumerableProperty(targetPrototype, key, sourceProperty);
527
- }
528
- }
529
- }
530
- };
531
- var wellKnownSymbol$1 = wellKnownSymbol$3;
532
- var TO_STRING_TAG$1 = wellKnownSymbol$1("toStringTag");
533
- var test = {};
534
- test[TO_STRING_TAG$1] = "z";
535
- var toStringTagSupport = String(test) === "[object z]";
536
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
537
- var isCallable$1 = isCallable$9;
538
- var classofRaw = classofRaw$2;
539
- var wellKnownSymbol = wellKnownSymbol$3;
540
- var TO_STRING_TAG = wellKnownSymbol("toStringTag");
541
- var $Object = Object;
542
- var CORRECT_ARGUMENTS = classofRaw(function() {
543
- return arguments;
544
- }()) === "Arguments";
545
- var tryGet = function(it, key) {
546
- try {
547
- return it[key];
548
- } catch (error) {
549
- }
550
- };
551
- var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function(it) {
552
- var O, tag, result;
553
- return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == "string" ? tag : CORRECT_ARGUMENTS ? classofRaw(O) : (result = classofRaw(O)) === "Object" && isCallable$1(O.callee) ? "Arguments" : result;
554
- };
555
- var classof = classof$1;
556
- var $String = String;
557
- var toString$2 = function(argument) {
558
- if (classof(argument) === "Symbol")
559
- throw TypeError("Cannot convert a Symbol value to a string");
560
- return $String(argument);
561
- };
562
- var whitespaces$2 = " \n\v\f\r                 \u2028\u2029\uFEFF";
563
- var uncurryThis$4 = functionUncurryThis;
564
- var requireObjectCoercible = requireObjectCoercible$3;
565
- var toString$1 = toString$2;
566
- var whitespaces$1 = whitespaces$2;
567
- var replace = uncurryThis$4("".replace);
568
- var ltrim = RegExp("^[" + whitespaces$1 + "]+");
569
- var rtrim = RegExp("(^|[^" + whitespaces$1 + "])[" + whitespaces$1 + "]+$");
570
- var createMethod$1 = function(TYPE) {
571
- return function($this) {
572
- var string = toString$1(requireObjectCoercible($this));
573
- if (TYPE & 1)
574
- string = replace(string, ltrim, "");
575
- if (TYPE & 2)
576
- string = replace(string, rtrim, "$1");
577
- return string;
578
- };
579
- };
580
- var stringTrim = {
581
- // `String.prototype.{ trimLeft, trimStart }` methods
582
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
583
- start: createMethod$1(1),
584
- // `String.prototype.{ trimRight, trimEnd }` methods
585
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
586
- end: createMethod$1(2),
587
- // `String.prototype.trim` method
588
- // https://tc39.es/ecma262/#sec-string.prototype.trim
589
- trim: createMethod$1(3)
590
- };
591
- var global$4 = global$d;
592
- var fails$1 = fails$9;
593
- var uncurryThis$3 = functionUncurryThis;
594
- var toString = toString$2;
595
- var trim = stringTrim.trim;
596
- var whitespaces = whitespaces$2;
597
- var $parseInt$1 = global$4.parseInt;
598
- var Symbol$1 = global$4.Symbol;
599
- var ITERATOR = Symbol$1 && Symbol$1.iterator;
600
- var hex = /^[+-]?0x/i;
601
- var exec = uncurryThis$3(hex.exec);
602
- var FORCED = $parseInt$1(whitespaces + "08") !== 8 || $parseInt$1(whitespaces + "0x16") !== 22 || ITERATOR && !fails$1(function() {
603
- $parseInt$1(Object(ITERATOR));
604
- });
605
- var numberParseInt = FORCED ? function parseInt2(string, radix) {
606
- var S = trim(toString(string));
607
- return $parseInt$1(S, radix >>> 0 || (exec(hex, S) ? 16 : 10));
608
- } : $parseInt$1;
609
- var $$3 = _export;
610
- var $parseInt = numberParseInt;
611
- $$3({
612
- global: true,
613
- forced: parseInt !== $parseInt
614
- }, {
615
- parseInt: $parseInt
616
- });
617
- var path$2 = path$5;
618
- var _parseInt$6 = path$2.parseInt;
619
- var parent$7 = _parseInt$6;
620
- var _parseInt$5 = parent$7;
621
- var parent$6 = _parseInt$5;
622
- var _parseInt$4 = parent$6;
623
- var parent$5 = _parseInt$4;
624
- var _parseInt$3 = parent$5;
625
- var _parseInt$2 = _parseInt$3;
626
- var _parseInt = _parseInt$2;
627
- const _parseInt$1 = /* @__PURE__ */ getDefaultExportFromCjs(_parseInt);
628
- var engineIsBun = typeof Bun == "function" && Bun && typeof Bun.version == "string";
629
- var uncurryThis$2 = functionUncurryThis;
630
- var arraySlice$1 = uncurryThis$2([].slice);
631
- var $TypeError = TypeError;
632
- var validateArgumentsLength$1 = function(passed, required) {
633
- if (passed < required)
634
- throw $TypeError("Not enough arguments");
635
- return passed;
636
- };
637
- var global$3 = global$d;
638
- var apply = functionApply;
639
- var isCallable = isCallable$9;
640
- var ENGINE_IS_BUN = engineIsBun;
641
- var USER_AGENT = engineUserAgent;
642
- var arraySlice = arraySlice$1;
643
- var validateArgumentsLength = validateArgumentsLength$1;
644
- var Function$1 = global$3.Function;
645
- var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && function() {
646
- var version2 = global$3.Bun.version.split(".");
647
- return version2.length < 3 || version2[0] === "0" && (version2[1] < 3 || version2[1] === "3" && version2[2] === "0");
648
- }();
649
- var schedulersFix$2 = function(scheduler, hasTimeArg) {
650
- var firstParamIndex = hasTimeArg ? 2 : 1;
651
- return WRAP ? function(handler, timeout) {
652
- var boundArgs = validateArgumentsLength(arguments.length, 1) > firstParamIndex;
653
- var fn = isCallable(handler) ? handler : Function$1(handler);
654
- var params = boundArgs ? arraySlice(arguments, firstParamIndex) : [];
655
- var callback = boundArgs ? function() {
656
- apply(fn, this, params);
657
- } : fn;
658
- return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback);
659
- } : scheduler;
660
- };
661
- var $$2 = _export;
662
- var global$2 = global$d;
663
- var schedulersFix$1 = schedulersFix$2;
664
- var setInterval = schedulersFix$1(global$2.setInterval, true);
665
- $$2({
666
- global: true,
667
- bind: true,
668
- forced: global$2.setInterval !== setInterval
669
- }, {
670
- setInterval
671
- });
672
- var $$1 = _export;
673
- var global$1 = global$d;
674
- var schedulersFix = schedulersFix$2;
675
- var setTimeout$5 = schedulersFix(global$1.setTimeout, true);
676
- $$1({
677
- global: true,
678
- bind: true,
679
- forced: global$1.setTimeout !== setTimeout$5
680
- }, {
681
- setTimeout: setTimeout$5
682
- });
683
- var path$1 = path$5;
684
- var setTimeout$4 = path$1.setTimeout;
685
- var parent$4 = setTimeout$4;
686
- var setTimeout$3 = parent$4;
687
- var parent$3 = setTimeout$3;
688
- var setTimeout$2 = parent$3;
689
- var setTimeout$1 = setTimeout$2;
690
- var setTimeout = setTimeout$1;
691
- const _setTimeout = /* @__PURE__ */ getDefaultExportFromCjs(setTimeout);
692
- var ceil = Math.ceil;
693
- var floor = Math.floor;
694
- var mathTrunc = Math.trunc || function trunc(x) {
695
- var n = +x;
696
- return (n > 0 ? floor : ceil)(n);
697
- };
698
- var trunc2 = mathTrunc;
699
- var toIntegerOrInfinity$2 = function(argument) {
700
- var number = +argument;
701
- return number !== number || number === 0 ? 0 : trunc2(number);
702
- };
703
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
704
- var max = Math.max;
705
- var min$1 = Math.min;
706
- var toAbsoluteIndex$1 = function(index, length) {
707
- var integer = toIntegerOrInfinity$1(index);
708
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
709
- };
710
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
711
- var min = Math.min;
712
- var toLength$1 = function(argument) {
713
- return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
714
- };
715
- var toLength = toLength$1;
716
- var lengthOfArrayLike$1 = function(obj) {
717
- return toLength(obj.length);
718
- };
719
- var toIndexedObject$1 = toIndexedObject$3;
720
- var toAbsoluteIndex = toAbsoluteIndex$1;
721
- var lengthOfArrayLike = lengthOfArrayLike$1;
722
- var createMethod = function(IS_INCLUDES) {
723
- return function($this, el, fromIndex) {
724
- var O = toIndexedObject$1($this);
725
- var length = lengthOfArrayLike(O);
726
- var index = toAbsoluteIndex(fromIndex, length);
727
- var value;
728
- if (IS_INCLUDES && el !== el)
729
- while (length > index) {
730
- value = O[index++];
731
- if (value !== value)
732
- return true;
733
- }
734
- else
735
- for (; length > index; index++) {
736
- if ((IS_INCLUDES || index in O) && O[index] === el)
737
- return IS_INCLUDES || index || 0;
738
- }
739
- return !IS_INCLUDES && -1;
740
- };
741
- };
742
- var arrayIncludes = {
743
- // `Array.prototype.includes` method
744
- // https://tc39.es/ecma262/#sec-array.prototype.includes
745
- includes: createMethod(true),
746
- // `Array.prototype.indexOf` method
747
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
748
- indexOf: createMethod(false)
749
- };
750
- var hiddenKeys$1 = {};
751
- var uncurryThis$1 = functionUncurryThis;
752
- var hasOwn2 = hasOwnProperty_1;
753
- var toIndexedObject = toIndexedObject$3;
754
- var indexOf = arrayIncludes.indexOf;
755
- var hiddenKeys = hiddenKeys$1;
756
- var push = uncurryThis$1([].push);
757
- var objectKeysInternal = function(object, names) {
758
- var O = toIndexedObject(object);
759
- var i = 0;
760
- var result = [];
761
- var key;
762
- for (key in O)
763
- !hasOwn2(hiddenKeys, key) && hasOwn2(O, key) && push(result, key);
764
- while (names.length > i)
765
- if (hasOwn2(O, key = names[i++])) {
766
- ~indexOf(result, key) || push(result, key);
767
- }
768
- return result;
769
- };
770
- var enumBugKeys$1 = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
771
- var internalObjectKeys = objectKeysInternal;
772
- var enumBugKeys = enumBugKeys$1;
773
- var objectKeys$1 = Object.keys || function keys(O) {
774
- return internalObjectKeys(O, enumBugKeys);
775
- };
776
- var objectGetOwnPropertySymbols = {};
777
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
778
- var DESCRIPTORS = descriptors;
779
- var uncurryThis = functionUncurryThis;
780
- var call = functionCall;
781
- var fails = fails$9;
782
- var objectKeys = objectKeys$1;
783
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
784
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
785
- var toObject = toObject$2;
786
- var IndexedObject = indexedObject;
787
- var $assign = Object.assign;
788
- var defineProperty3 = Object.defineProperty;
789
- var concat = uncurryThis([].concat);
790
- var objectAssign = !$assign || fails(function() {
791
- if (DESCRIPTORS && $assign({
792
- b: 1
793
- }, $assign(defineProperty3({}, "a", {
794
- enumerable: true,
795
- get: function() {
796
- defineProperty3(this, "b", {
797
- value: 3,
798
- enumerable: false
799
- });
800
- }
801
- }), {
802
- b: 2
803
- })).b !== 1)
804
- return true;
805
- var A = {};
806
- var B = {};
807
- var symbol = Symbol("assign detection");
808
- var alphabet = "abcdefghijklmnopqrst";
809
- A[symbol] = 7;
810
- alphabet.split("").forEach(function(chr) {
811
- B[chr] = chr;
812
- });
813
- return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join("") !== alphabet;
814
- }) ? function assign(target, source) {
815
- var T = toObject(target);
816
- var argumentsLength = arguments.length;
817
- var index = 1;
818
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
819
- var propertyIsEnumerable2 = propertyIsEnumerableModule.f;
820
- while (argumentsLength > index) {
821
- var S = IndexedObject(arguments[index++]);
822
- var keys2 = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
823
- var length = keys2.length;
824
- var j = 0;
825
- var key;
826
- while (length > j) {
827
- key = keys2[j++];
828
- if (!DESCRIPTORS || call(propertyIsEnumerable2, S, key))
829
- T[key] = S[key];
830
- }
831
- }
832
- return T;
833
- } : $assign;
834
- var $ = _export;
835
- var assign$6 = objectAssign;
836
- $({
837
- target: "Object",
838
- stat: true,
839
- arity: 2,
840
- forced: Object.assign !== assign$6
841
- }, {
842
- assign: assign$6
843
- });
844
- var path = path$5;
845
- var assign$5 = path.Object.assign;
846
- var parent$2 = assign$5;
847
- var assign$4 = parent$2;
848
- var parent$1 = assign$4;
849
- var assign$3 = parent$1;
850
- var parent = assign$3;
851
- var assign$2 = parent;
852
- var assign$1 = assign$2;
853
- var assign2 = assign$1;
854
- const _Object$assign = /* @__PURE__ */ getDefaultExportFromCjs(assign2);
855
- var __sfc_main = {};
6
+ const __sfc_main = {};
856
7
  __sfc_main.props = {
857
8
  visible: [Boolean, String]
858
9
  };
859
- __sfc_main.setup = function(__props, __ctx) {
860
- var emits = __ctx.emit;
861
- var props = __props;
862
- var reference = vueDemi.ref();
863
- var popperRef = vueDemi.ref();
864
- vueDemi.watch(function() {
865
- return props.visible;
866
- }, function(newValue) {
10
+ __sfc_main.setup = (__props, __ctx) => {
11
+ const emits = __ctx.emit;
12
+ const props = __props;
13
+ const reference = vueDemi.ref();
14
+ const popperRef = vueDemi.ref();
15
+ vueDemi.watch(() => props.visible, (newValue) => {
867
16
  if (newValue) {
868
17
  window.addEventListener("mousedown", docClick);
869
18
  } else {
@@ -879,10 +28,10 @@ __sfc_main.setup = function(__props, __ctx) {
879
28
  function showPopper() {
880
29
  emits("update:visible", true);
881
30
  }
882
- vueDemi.onUnmounted(function() {
31
+ vueDemi.onUnmounted(() => {
883
32
  emits("update:visible", false);
884
33
  });
885
- return _Object$assign({
34
+ return Object.assign({
886
35
  reference,
887
36
  popperRef,
888
37
  showPopper
@@ -890,13 +39,13 @@ __sfc_main.setup = function(__props, __ctx) {
890
39
  showPopper
891
40
  });
892
41
  };
893
- var _sfc_main$2 = __sfc_main;
42
+ const _sfc_main$2 = __sfc_main;
894
43
  var _sfc_render$2 = function render() {
895
44
  var _vm = this, _c = _vm._self._c;
896
45
  _vm._self._setupProxy;
897
46
  return _c("div", {
898
47
  staticClass: "nf-volume-tool",
899
- "class": _vm.visible ? "nf-tool-show" : "nf-tool-hide",
48
+ class: _vm.visible ? "nf-tool-show" : "nf-tool-hide",
900
49
  on: {
901
50
  "click": _vm.showPopper
902
51
  }
@@ -920,22 +69,22 @@ var _sfc_render$2 = function render() {
920
69
  var _sfc_staticRenderFns$2 = [];
921
70
  var __component__$2 = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(_sfc_main$2, _sfc_render$2, _sfc_staticRenderFns$2, false, null, null, null, null);
922
71
  const volumeTool = __component__$2.exports;
923
- var _sfc_main$1 = {
72
+ const _sfc_main$1 = {
924
73
  name: "more-btn",
925
74
  components: {},
926
- data: function data2() {
75
+ data() {
927
76
  return {
928
77
  multipleArray: ["1.0", "1.25", "1.5", "1.75", "2.0"],
929
78
  speed: ""
930
79
  };
931
80
  },
932
- mounted: function mounted() {
81
+ mounted() {
933
82
  },
934
83
  methods: {
935
- handleDown: function handleDown() {
84
+ handleDown() {
936
85
  this.$emit("down");
937
86
  },
938
- handleSpeed: function handleSpeed(speed) {
87
+ handleSpeed(speed) {
939
88
  this.speed = speed;
940
89
  this.$emit("speed", speed);
941
90
  }
@@ -963,9 +112,9 @@ var _sfc_render$1 = function render2() {
963
112
  return _c("div", {
964
113
  key: index,
965
114
  staticClass: "btn-item",
966
- "class": _vm.speed === item ? "active" : "",
115
+ class: _vm.speed === item ? "active" : "",
967
116
  on: {
968
- "click": function click($event) {
117
+ "click": function($event) {
969
118
  return _vm.handleSpeed(item);
970
119
  }
971
120
  }
@@ -994,7 +143,7 @@ var _sfc_render$1 = function render2() {
994
143
  var _sfc_staticRenderFns$1 = [];
995
144
  var __component__$1 = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(_sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
996
145
  const moreBtn = __component__$1.exports;
997
- var _sfc_main = {
146
+ const _sfc_main = {
998
147
  name: "nf-audio",
999
148
  components: {
1000
149
  volumeTool,
@@ -1003,22 +152,22 @@ var _sfc_main = {
1003
152
  props: {
1004
153
  audioSrc: {
1005
154
  type: String,
1006
- "default": ""
155
+ default: ""
1007
156
  },
1008
157
  backSecond: {
1009
158
  type: Number,
1010
- "default": 3
159
+ default: 3
1011
160
  },
1012
161
  forwardSecond: {
1013
162
  type: Number,
1014
- "default": 10
163
+ default: 10
1015
164
  },
1016
165
  startTime: {
1017
166
  type: Number,
1018
- "default": 0
167
+ default: 0
1019
168
  }
1020
169
  },
1021
- data: function data3() {
170
+ data() {
1022
171
  return {
1023
172
  duration: "00:00",
1024
173
  currentDuration: "00:00",
@@ -1031,24 +180,24 @@ var _sfc_main = {
1031
180
  speed: 1
1032
181
  };
1033
182
  },
1034
- mounted: function mounted2() {
183
+ mounted() {
1035
184
  this.audio = this.$refs.audio;
1036
185
  },
1037
186
  methods: {
1038
187
  //后退
1039
- handleBack: function handleBack() {
188
+ handleBack() {
1040
189
  if (this.audio.currentTime > this.backSecond) {
1041
190
  this.audio.currentTime = this.audio.currentTime - this.backSecond;
1042
191
  }
1043
192
  },
1044
193
  //前进
1045
- handleForward: function handleForward() {
194
+ handleForward() {
1046
195
  if (this.audio.duration - this.audio.currentTime > this.forwardSecond) {
1047
196
  this.audio.currentTime = this.audio.currentTime + 10;
1048
197
  }
1049
198
  },
1050
199
  //暂停或播放
1051
- handlePauseOrPlay: function handlePauseOrPlay() {
200
+ handlePauseOrPlay() {
1052
201
  if (this.audio.readyState >= 2) {
1053
202
  this.audio.paused ? this.audio.play() : this.audio.pause();
1054
203
  this.audio.playbackRate = this.speed;
@@ -1060,36 +209,36 @@ var _sfc_main = {
1060
209
  }
1061
210
  },
1062
211
  //视频在可以播放时触发
1063
- getDuration: function getDuration() {
212
+ getDuration() {
1064
213
  this.duration = this.timeFormat(this.$refs.audio.duration);
1065
214
  this.audio.volume = this.volume;
1066
215
  },
1067
216
  //将单位为秒的的时间转换成mm:ss的形式
1068
- timeFormat: function timeFormat(number) {
1069
- var minute = _parseInt$1(number / 60);
1070
- var second = _parseInt$1(number % 60);
217
+ timeFormat(number) {
218
+ let minute = parseInt(number / 60);
219
+ let second = parseInt(number % 60);
1071
220
  minute = minute >= 10 ? minute : "0" + minute;
1072
221
  second = second >= 10 ? second : "0" + second;
1073
222
  return minute + ":" + second;
1074
223
  },
1075
224
  //进度条发生变化时触发
1076
- updateTime: function updateTime() {
225
+ updateTime() {
1077
226
  if (!this.$refs.progress)
1078
227
  return;
1079
228
  this.currentDuration = this.timeFormat(this.audio.currentTime);
1080
229
  if (!this.audio.paused) {
1081
- var MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
230
+ let MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
1082
231
  this.$refs.currentProgress.style.width = MoveX + "px";
1083
232
  this.$refs.circle.style.left = MoveX - this.$refs.circle.clientWidth / 2 + "px";
1084
233
  this.paused = false;
1085
234
  }
1086
235
  },
1087
- handleAudioEnded: function handleAudioEnded() {
236
+ handleAudioEnded() {
1088
237
  console.log("音频播放完毕!");
1089
238
  this.paused = true;
1090
239
  },
1091
240
  //点击进度条更新进度
1092
- clickProgress: function clickProgress(e) {
241
+ clickProgress(e) {
1093
242
  if (this.duration === "00:00") {
1094
243
  elementUi.Message.warning("音频还未加载完成");
1095
244
  return false;
@@ -1099,75 +248,73 @@ var _sfc_main = {
1099
248
  }
1100
249
  },
1101
250
  //更新进度
1102
- updateProgress: function updateProgress(MoveX) {
1103
- var clickProgress2 = MoveX / this.$refs.progress.clientWidth;
1104
- this.audio.currentTime = this.audio.duration * clickProgress2;
251
+ updateProgress(MoveX) {
252
+ let clickProgress = MoveX / this.$refs.progress.clientWidth;
253
+ this.audio.currentTime = this.audio.duration * clickProgress;
1105
254
  this.$refs.currentProgress.style.width = MoveX + "px";
1106
255
  this.$refs.circle.style.left = MoveX - this.$refs.circle.clientWidth / 2 + "px";
1107
256
  },
1108
257
  //鼠标弹起
1109
- handleMouseup: function handleMouseup() {
1110
- var _this = this;
258
+ handleMouseup() {
1111
259
  if (this.duration === "00:00") {
1112
260
  elementUi.Message.warning("音频还未加载完成");
1113
261
  return false;
1114
262
  }
1115
- var timer = _setTimeout(function() {
1116
- _this.audio.play();
1117
- _this.paused = false;
263
+ const timer = setTimeout(() => {
264
+ this.audio.play();
265
+ this.paused = false;
1118
266
  clearTimeout(timer);
1119
267
  }, 200);
1120
- this.$once("hook:beforeDestroy", function() {
268
+ this.$once("hook:beforeDestroy", () => {
1121
269
  clearTimeout(timer);
1122
270
  });
1123
271
  },
1124
272
  //调整进度
1125
- handleMousedown: function handleMousedown() {
1126
- var _this2 = this;
273
+ handleMousedown() {
1127
274
  this.audio.pause();
1128
275
  this.paused = true;
1129
- var progress = this.$refs.progress;
1130
- var moveMin = progress.offsetParent.offsetLeft + progress.offsetLeft;
1131
- var moveMax = progress.offsetParent.offsetLeft + progress.offsetLeft + progress.clientWidth;
1132
- var circleWidth = this.$refs.circle.clientWidth / 2;
1133
- var moveX = function moveX2(e) {
276
+ let progress = this.$refs.progress;
277
+ let moveMin = progress.offsetParent.offsetLeft + progress.offsetLeft;
278
+ let moveMax = progress.offsetParent.offsetLeft + progress.offsetLeft + progress.clientWidth;
279
+ let circleWidth = this.$refs.circle.clientWidth / 2;
280
+ let moveX = (e) => {
1134
281
  if (e.pageX >= moveMax) {
1135
282
  return;
1136
283
  } else if (e.pageX <= moveMin) {
1137
284
  return;
1138
285
  }
1139
- _this2.$refs.circle.style.left = e.pageX - moveMin - circleWidth + "px";
1140
- _this2.updateProgress(e.pageX - moveMin);
286
+ this.$refs.circle.style.left = e.pageX - moveMin - circleWidth + "px";
287
+ this.updateProgress(e.pageX - moveMin);
1141
288
  };
1142
289
  document.addEventListener("mousemove", moveX);
1143
- document.addEventListener("mouseup", function() {
290
+ document.addEventListener("mouseup", () => {
1144
291
  document.removeEventListener("mousemove", moveX);
1145
292
  });
1146
293
  },
1147
- rangeVolume: function rangeVolume(val) {
294
+ rangeVolume(val) {
1148
295
  console.log(val);
1149
296
  },
1150
297
  /** 设置倍速播放 */
1151
- changeSpeed: function changeSpeed(command) {
1152
- var audioPlayer = this.$refs.audio;
298
+ changeSpeed(command) {
299
+ const audioPlayer = this.$refs.audio;
1153
300
  if (audioPlayer) {
1154
301
  audioPlayer.playbackRate = command;
1155
302
  }
1156
303
  this.speed = command;
1157
304
  },
1158
- downRecord: function downRecord() {
305
+ downRecord() {
1159
306
  this.$emit("downloadCallback");
1160
307
  },
1161
- calcMoveX: function calcMoveX() {
308
+ calcMoveX() {
1162
309
  if (!this.audio.paused) {
1163
- var MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
310
+ let MoveX = this.$refs.progress.clientWidth * (this.audio.currentTime / this.audio.duration);
1164
311
  this.$refs.currentProgress.style.width = MoveX + "px";
1165
312
  this.$refs.circle.style.left = MoveX - this.$refs.circle.clientWidth / 2 + "px";
1166
313
  }
1167
314
  },
1168
- jumpToTime: function jumpToTime() {
315
+ jumpToTime() {
1169
316
  this.audio.pause();
1170
- var formatStartT = this.timeFormat(this.startTime);
317
+ const formatStartT = this.timeFormat(this.startTime);
1171
318
  if (this.duration === "00:00") {
1172
319
  elementUi.Message.warning("音频还未加载完成");
1173
320
  return false;
@@ -1193,7 +340,7 @@ var _sfc_main = {
1193
340
  }
1194
341
  },
1195
342
  watch: {
1196
- volumeValue: function volumeValue(val) {
343
+ volumeValue(val) {
1197
344
  this.volume = val / 100;
1198
345
  this.audio.volume = val / 100;
1199
346
  }
@@ -1280,13 +427,13 @@ var _sfc_render = function render3() {
1280
427
  "visible": _vm.volumeVisible
1281
428
  },
1282
429
  on: {
1283
- "update:visible": function updateVisible($event) {
430
+ "update:visible": function($event) {
1284
431
  _vm.volumeVisible = $event;
1285
432
  }
1286
433
  },
1287
434
  scopedSlots: _vm._u([{
1288
435
  key: "reference",
1289
- fn: function fn() {
436
+ fn: function() {
1290
437
  return [_vm.volume == 0 ? _c("i", {
1291
438
  staticClass: "iconfont icon-yinliang_guanbi volume-mute"
1292
439
  }) : _c("i", {
@@ -1296,7 +443,7 @@ var _sfc_render = function render3() {
1296
443
  proxy: true
1297
444
  }])
1298
445
  }, [_c("el-slider", {
1299
- "class": _vm.volumeValue === 0 ? "volume-mute-slider" : "volume-phonic",
446
+ class: _vm.volumeValue === 0 ? "volume-mute-slider" : "volume-phonic",
1300
447
  attrs: {
1301
448
  "vertical": "",
1302
449
  "min": 0,
@@ -1309,7 +456,7 @@ var _sfc_render = function render3() {
1309
456
  },
1310
457
  model: {
1311
458
  value: _vm.volumeValue,
1312
- callback: function callback($$v) {
459
+ callback: function($$v) {
1313
460
  _vm.volumeValue = $$v;
1314
461
  },
1315
462
  expression: "volumeValue"
@@ -1318,7 +465,7 @@ var _sfc_render = function render3() {
1318
465
  staticClass: "option"
1319
466
  }, [_c("moreBtn", {
1320
467
  on: {
1321
- "down": function down($event) {
468
+ "down": function($event) {
1322
469
  return _vm.downRecord();
1323
470
  },
1324
471
  "speed": _vm.changeSpeed
@@ -1328,7 +475,7 @@ var _sfc_render = function render3() {
1328
475
  var _sfc_staticRenderFns = [];
1329
476
  var __component__ = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
1330
477
  const NfAudio = __component__.exports;
1331
- NfAudio.install = function(app) {
478
+ NfAudio.install = (app) => {
1332
479
  app.component("nf-audio", NfAudio);
1333
480
  };
1334
481
  exports.default = NfAudio;