@94ai/nf-audio 3.2.45 → 3.2.48

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