@94ai/nf-audio 3.1.35

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