@rexnow/netease-music 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3965 @@
1
+ let e = [
2
+ "MUSIC_U",
3
+ "__csrf",
4
+ "NMTID"
5
+ ];
6
+ function t(e) {
7
+ return e.replace(/'\\''/g, "'").trim();
8
+ }
9
+ function i(e) {
10
+ return e.replace(/\\(["\\])/g, "$1").trim();
11
+ }
12
+ function l(e) {
13
+ return Object.entries(e).filter(([e, t])=>!!(e && t)).map(([e, t])=>`${e}=${t}`).join("; ");
14
+ }
15
+ function r(e) {
16
+ let r = (e || "").trim();
17
+ if (!r) return {
18
+ cookieHeader: "",
19
+ cookies: {},
20
+ hasMusicU: !1
21
+ };
22
+ let a = r;
23
+ /(?:^|\s)(?:curl\s+\^"|(?:-H|--header|-b|--cookie)\s+\^")/i.test(a) && (a = a.replace(/\^\r?\n/g, " ").replace(/\^([\s\S])/g, "$1"));
24
+ let n = "", o = /(?:^|[\s\\])(?:-b|--cookie)\s+'((?:[^']|'\\'')*)'/.exec(a);
25
+ if ((null == o ? void 0 : o[1]) && (n = t(o[1])), !n) {
26
+ let e = /(?:^|[\s\\])(?:-b|--cookie)\s+"((?:[^"\\]|\\.)*)"/.exec(a);
27
+ (null == e ? void 0 : e[1]) && (n = i(e[1]));
28
+ }
29
+ if (n || (n = function(e, l) {
30
+ let r = l.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), a = RegExp(`(?:^|[\\s\\\\])(?:-H|--header)\\s+'${r}:\\s*((?:[^']|'\\\\'')*)'`, "i").exec(e);
31
+ if (null == a ? void 0 : a[1]) return t(a[1]);
32
+ let n = RegExp(`(?:^|[\\s\\\\])(?:-H|--header)\\s+"${r}:\\s*((?:[^"\\\\]|\\\\.)*)"`, "i").exec(e);
33
+ if (null == n ? void 0 : n[1]) return i(n[1]);
34
+ let o = RegExp(`"${r}"\\s*:\\s*"((?:[^"\\\\]|\\\\.)*)"`, "i").exec(e);
35
+ if (null == o ? void 0 : o[1]) return i(o[1]);
36
+ let s = RegExp(`^\\s*${r}:\\s*(.+)$`, "im").exec(e);
37
+ return (null == s ? void 0 : s[1]) ? s[1].trim() : "";
38
+ }(a, "cookie")), !n && !/^\s*(?:curl\s+|fetch\s*\()/i.test(a)) {
39
+ let e = a.replace(/\r?\n+/g, "; ").trim();
40
+ n = !e.includes("=") && !e.includes(";") && /^[A-Za-z0-9._-]{32,}$/.test(e) ? `MUSIC_U=${e}` : e;
41
+ }
42
+ let s = function(e) {
43
+ let t = {};
44
+ if (!e) return t;
45
+ for (let i of e.split(";")){
46
+ let e = i.indexOf("=");
47
+ if (e <= 0) continue;
48
+ let l = i.slice(0, e).trim(), r = i.slice(e + 1).trim();
49
+ !l || !r || /[\r\n]/.test(l) || /[\r\n]/.test(r) || (t[l] = r);
50
+ }
51
+ return t;
52
+ }(n);
53
+ return {
54
+ cookieHeader: l(s),
55
+ cookies: s,
56
+ hasMusicU: !!s.MUSIC_U
57
+ };
58
+ }
59
+ function a(t, i = Date.now()) {
60
+ let l = {}, r = [];
61
+ if (!t) return {
62
+ updates: l,
63
+ deletes: r
64
+ };
65
+ let n = "";
66
+ for (let [e, i] of Object.entries(t))"set-cookie" === e.toLowerCase() && "string" == typeof i && (n = n ? `${n}, ${i}` : i);
67
+ if (!n) return {
68
+ updates: l,
69
+ deletes: r
70
+ };
71
+ for (let t of function(e) {
72
+ if (!e) return [];
73
+ let t = [], i = 0, l = !1;
74
+ for(let r = 0; r < e.length; r++){
75
+ let a = e[r];
76
+ if (";" === a) {
77
+ let t = e.slice(r + 1).trimStart();
78
+ l = /^expires\s*=/i.test(t);
79
+ } else if ("," === a) {
80
+ if (l) {
81
+ l = !1;
82
+ continue;
83
+ }
84
+ let a = e.slice(i, r).trim();
85
+ a && t.push(a), i = r + 1;
86
+ }
87
+ }
88
+ let r = e.slice(i).trim();
89
+ return r && t.push(r), t;
90
+ }(n)){
91
+ var o;
92
+ let a = t.split(";"), n = (null == (o = a[0]) ? void 0 : o.trim()) || "", s = n.indexOf("=");
93
+ if (s <= 0) continue;
94
+ let u = n.slice(0, s).trim();
95
+ if (!e.includes(u)) continue;
96
+ let d = n.slice(s + 1).trim(), c = !d;
97
+ for (let e of a.slice(1)){
98
+ let t = e.trim(), l = /^max-age\s*=\s*(-?\d+)$/i.exec(t);
99
+ (null == l ? void 0 : l[1]) && 0 >= Number(l[1]) && (c = !0);
100
+ let r = /^expires\s*=\s*(.+)$/i.exec(t);
101
+ if (null == r ? void 0 : r[1]) {
102
+ let e = Date.parse(r[1]);
103
+ Number.isFinite(e) && e <= i && (c = !0);
104
+ }
105
+ }
106
+ if (c) delete l[u], r.includes(u) || r.push(u);
107
+ else {
108
+ l[u] = d;
109
+ let e = r.indexOf(u);
110
+ e >= 0 && r.splice(e, 1);
111
+ }
112
+ }
113
+ return {
114
+ updates: l,
115
+ deletes: r
116
+ };
117
+ }
118
+ let n = "https://music.163.com", o = "e82ckenh8dichen8", s = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36", u = {
119
+ osver: "Microsoft-Windows-10-Professional-build-19045-64bit",
120
+ os: "pc",
121
+ appver: "3.1.29.205117",
122
+ versioncode: "140",
123
+ resolution: "1920x1080",
124
+ channel: "netease"
125
+ }, d = {
126
+ osver: "14",
127
+ os: "android",
128
+ appver: "9.5.61",
129
+ versioncode: "9005061",
130
+ resolution: "1080x2400",
131
+ channel: "xiaomi"
132
+ }, c = `Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36 Chrome/91.0.4472.164 NeteaseMusicDesktop/${u.appver}`, p = [
133
+ "standard",
134
+ "higher",
135
+ "exhigh",
136
+ "lossless",
137
+ "hires",
138
+ "jyeffect",
139
+ "sky",
140
+ "dolby",
141
+ "vivid",
142
+ "jymaster"
143
+ ], f = {
144
+ standard: 128000,
145
+ higher: 192000,
146
+ exhigh: 320000,
147
+ lossless: 999000,
148
+ hires: 999000,
149
+ jyeffect: 999000,
150
+ sky: 999000,
151
+ dolby: 999000,
152
+ vivid: 999000,
153
+ jymaster: 999000
154
+ };
155
+ function m(e) {
156
+ return "lossless" === e || "hires" === e || "jyeffect" === e || "sky" === e || "dolby" === e || "jymaster" === e;
157
+ }
158
+ let y = {
159
+ ALL: 0,
160
+ ZH: 7,
161
+ EA: 96,
162
+ KR: 16,
163
+ JP: 8
164
+ }, g = {
165
+ ALL: -1,
166
+ ZH: 7,
167
+ EA: 96,
168
+ JP: 8,
169
+ KR: 16,
170
+ OTHER: 0
171
+ }, v = {
172
+ ALL: -1,
173
+ MALE: 1,
174
+ FEMALE: 2,
175
+ BAND: 3
176
+ }, h = {
177
+ ZH: 1,
178
+ EA: 2,
179
+ KR: 3,
180
+ JP: 4
181
+ }, b = {
182
+ songs: 1,
183
+ albums: 10,
184
+ artists: 100,
185
+ playlists: 1000,
186
+ lyrics: 1006,
187
+ dj: 1009
188
+ }, k = [
189
+ {
190
+ id: "华语",
191
+ title: "华语",
192
+ subtitle: "语种"
193
+ },
194
+ {
195
+ id: "欧美",
196
+ title: "欧美",
197
+ subtitle: "语种"
198
+ },
199
+ {
200
+ id: "日语",
201
+ title: "日语",
202
+ subtitle: "语种"
203
+ },
204
+ {
205
+ id: "韩语",
206
+ title: "韩语",
207
+ subtitle: "语种"
208
+ },
209
+ {
210
+ id: "粤语",
211
+ title: "粤语",
212
+ subtitle: "语种"
213
+ },
214
+ {
215
+ id: "流行",
216
+ title: "流行",
217
+ subtitle: "风格"
218
+ },
219
+ {
220
+ id: "摇滚",
221
+ title: "摇滚",
222
+ subtitle: "风格"
223
+ },
224
+ {
225
+ id: "民谣",
226
+ title: "民谣",
227
+ subtitle: "风格"
228
+ },
229
+ {
230
+ id: "电子",
231
+ title: "电子",
232
+ subtitle: "风格"
233
+ },
234
+ {
235
+ id: "说唱",
236
+ title: "说唱",
237
+ subtitle: "风格"
238
+ },
239
+ {
240
+ id: "轻音乐",
241
+ title: "轻音乐",
242
+ subtitle: "风格"
243
+ },
244
+ {
245
+ id: "爵士",
246
+ title: "爵士",
247
+ subtitle: "风格"
248
+ },
249
+ {
250
+ id: "古典",
251
+ title: "古典",
252
+ subtitle: "风格"
253
+ },
254
+ {
255
+ id: "古风",
256
+ title: "古风",
257
+ subtitle: "风格"
258
+ },
259
+ {
260
+ id: "R&B/Soul",
261
+ title: "R&B/Soul",
262
+ subtitle: "风格"
263
+ },
264
+ {
265
+ id: "ACG",
266
+ title: "ACG",
267
+ subtitle: "主题"
268
+ },
269
+ {
270
+ id: "影视原声",
271
+ title: "影视原声",
272
+ subtitle: "主题"
273
+ },
274
+ {
275
+ id: "游戏",
276
+ title: "游戏",
277
+ subtitle: "主题"
278
+ },
279
+ {
280
+ id: "怀旧",
281
+ title: "怀旧",
282
+ subtitle: "情感"
283
+ },
284
+ {
285
+ id: "治愈",
286
+ title: "治愈",
287
+ subtitle: "情感"
288
+ },
289
+ {
290
+ id: "夜晚",
291
+ title: "夜晚",
292
+ subtitle: "场景"
293
+ },
294
+ {
295
+ id: "学习",
296
+ title: "学习",
297
+ subtitle: "场景"
298
+ },
299
+ {
300
+ id: "运动",
301
+ title: "运动",
302
+ subtitle: "场景"
303
+ },
304
+ {
305
+ id: "驾车",
306
+ title: "驾车",
307
+ subtitle: "场景"
308
+ }
309
+ ], A = "ncm:song:", P = "ncm:album:", S = "ncm:playlist:", C = "ncm:dj:", I = "ncm:hot:", U = "ncm:genre:", w = "ncm:radio:";
310
+ function O(e) {
311
+ return `${A}${e}`;
312
+ }
313
+ function M(e) {
314
+ return `${I}${encodeURIComponent(e.trim())}`;
315
+ }
316
+ function T(e) {
317
+ return `${U}${e}`;
318
+ }
319
+ function j(e) {
320
+ return `${w}${e}`;
321
+ }
322
+ function $(e) {
323
+ return /^\d{1,20}$/.test(e);
324
+ }
325
+ function E(e) {
326
+ let t = (e || "").trim();
327
+ if (!t) return null;
328
+ if (t.startsWith(A)) {
329
+ let e = t.slice(A.length).trim();
330
+ return $(e) ? {
331
+ kind: "song",
332
+ id: e
333
+ } : null;
334
+ }
335
+ if (t.startsWith(P)) {
336
+ let e = t.slice(P.length).trim();
337
+ return $(e) ? {
338
+ kind: "album",
339
+ id: e
340
+ } : null;
341
+ }
342
+ if (t.startsWith(S)) {
343
+ let e = t.slice(S.length).trim();
344
+ return $(e) ? {
345
+ kind: "playlist",
346
+ id: e
347
+ } : null;
348
+ }
349
+ if (t.startsWith(C)) {
350
+ let e = t.slice(C.length).trim();
351
+ return $(e) ? {
352
+ kind: "dj",
353
+ id: e
354
+ } : null;
355
+ }
356
+ if (t.startsWith(I)) {
357
+ let e = t.slice(I.length).trim();
358
+ if (!e) return null;
359
+ try {
360
+ let t = decodeURIComponent(e).trim();
361
+ return t ? {
362
+ kind: "hot",
363
+ keyword: t
364
+ } : null;
365
+ } catch (t) {
366
+ return {
367
+ kind: "hot",
368
+ keyword: e
369
+ };
370
+ }
371
+ }
372
+ let i = /music\.163\.com\/(?:#\/)?(song|album|playlist|djradio|radio)\?[^#]*\bid=(\d{1,20})\b/i.exec(t);
373
+ if ((null == i ? void 0 : i[1]) && i[2]) {
374
+ let e = i[1].toLowerCase();
375
+ return {
376
+ kind: "djradio" === e || "radio" === e ? "dj" : e,
377
+ id: i[2]
378
+ };
379
+ }
380
+ return null;
381
+ }
382
+ function N(e) {
383
+ if ("string" != typeof e) return;
384
+ let t = e.trim();
385
+ if (t) {
386
+ if (t.startsWith("https://")) return t;
387
+ if (t.startsWith("http://")) return `https://${t.slice(7)}`;
388
+ }
389
+ }
390
+ function R(e, t = 500) {
391
+ let i = N(e);
392
+ if (!i) return;
393
+ if (!/^https:\/\/p\d+\.music\.126\.net\//i.test(i) || /[?&]param=/i.test(i)) return i;
394
+ let l = i.includes("?") ? "&" : "?";
395
+ return `${i}${l}param=${t}y${t}`;
396
+ }
397
+ function D(e) {
398
+ let t = [];
399
+ for(let i = 0; i < e.length; i++){
400
+ let l = e.charCodeAt(i);
401
+ if (l >= 0xd800 && l <= 0xdbff && i + 1 < e.length) {
402
+ let t = e.charCodeAt(i + 1);
403
+ t >= 0xdc00 && t <= 0xdfff && (l = 0x10000 + (l - 0xd800 << 10) + (t - 0xdc00), i++);
404
+ }
405
+ l < 0x80 ? t.push(l) : l < 0x800 ? t.push(0xc0 | l >> 6, 0x80 | 0x3f & l) : l < 0x10000 ? t.push(0xe0 | l >> 12, 0x80 | l >> 6 & 0x3f, 0x80 | 0x3f & l) : t.push(0xf0 | l >> 18, 0x80 | l >> 12 & 0x3f, 0x80 | l >> 6 & 0x3f, 0x80 | 0x3f & l);
406
+ }
407
+ return new Uint8Array(t);
408
+ }
409
+ let L = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", _ = [
410
+ 7,
411
+ 12,
412
+ 17,
413
+ 22,
414
+ 7,
415
+ 12,
416
+ 17,
417
+ 22,
418
+ 7,
419
+ 12,
420
+ 17,
421
+ 22,
422
+ 7,
423
+ 12,
424
+ 17,
425
+ 22,
426
+ 5,
427
+ 9,
428
+ 14,
429
+ 20,
430
+ 5,
431
+ 9,
432
+ 14,
433
+ 20,
434
+ 5,
435
+ 9,
436
+ 14,
437
+ 20,
438
+ 5,
439
+ 9,
440
+ 14,
441
+ 20,
442
+ 4,
443
+ 11,
444
+ 16,
445
+ 23,
446
+ 4,
447
+ 11,
448
+ 16,
449
+ 23,
450
+ 4,
451
+ 11,
452
+ 16,
453
+ 23,
454
+ 4,
455
+ 11,
456
+ 16,
457
+ 23,
458
+ 6,
459
+ 10,
460
+ 15,
461
+ 21,
462
+ 6,
463
+ 10,
464
+ 15,
465
+ 21,
466
+ 6,
467
+ 10,
468
+ 15,
469
+ 21,
470
+ 6,
471
+ 10,
472
+ 15,
473
+ 21
474
+ ], W = Array.from({
475
+ length: 64
476
+ }, (e, t)=>Math.floor(0x100000000 * Math.abs(Math.sin(t + 1))) >>> 0);
477
+ function V(e) {
478
+ let t = "";
479
+ for(let i = 0; i < 4; i++)t += (e >>> 8 * i & 0xff).toString(16).padStart(2, "0");
480
+ return t;
481
+ }
482
+ let x = new Uint8Array([
483
+ 0x63,
484
+ 0x7c,
485
+ 0x77,
486
+ 0x7b,
487
+ 0xf2,
488
+ 0x6b,
489
+ 0x6f,
490
+ 0xc5,
491
+ 0x30,
492
+ 0x01,
493
+ 0x67,
494
+ 0x2b,
495
+ 0xfe,
496
+ 0xd7,
497
+ 0xab,
498
+ 0x76,
499
+ 0xca,
500
+ 0x82,
501
+ 0xc9,
502
+ 0x7d,
503
+ 0xfa,
504
+ 0x59,
505
+ 0x47,
506
+ 0xf0,
507
+ 0xad,
508
+ 0xd4,
509
+ 0xa2,
510
+ 0xaf,
511
+ 0x9c,
512
+ 0xa4,
513
+ 0x72,
514
+ 0xc0,
515
+ 0xb7,
516
+ 0xfd,
517
+ 0x93,
518
+ 0x26,
519
+ 0x36,
520
+ 0x3f,
521
+ 0xf7,
522
+ 0xcc,
523
+ 0x34,
524
+ 0xa5,
525
+ 0xe5,
526
+ 0xf1,
527
+ 0x71,
528
+ 0xd8,
529
+ 0x31,
530
+ 0x15,
531
+ 0x04,
532
+ 0xc7,
533
+ 0x23,
534
+ 0xc3,
535
+ 0x18,
536
+ 0x96,
537
+ 0x05,
538
+ 0x9a,
539
+ 0x07,
540
+ 0x12,
541
+ 0x80,
542
+ 0xe2,
543
+ 0xeb,
544
+ 0x27,
545
+ 0xb2,
546
+ 0x75,
547
+ 0x09,
548
+ 0x83,
549
+ 0x2c,
550
+ 0x1a,
551
+ 0x1b,
552
+ 0x6e,
553
+ 0x5a,
554
+ 0xa0,
555
+ 0x52,
556
+ 0x3b,
557
+ 0xd6,
558
+ 0xb3,
559
+ 0x29,
560
+ 0xe3,
561
+ 0x2f,
562
+ 0x84,
563
+ 0x53,
564
+ 0xd1,
565
+ 0x00,
566
+ 0xed,
567
+ 0x20,
568
+ 0xfc,
569
+ 0xb1,
570
+ 0x5b,
571
+ 0x6a,
572
+ 0xcb,
573
+ 0xbe,
574
+ 0x39,
575
+ 0x4a,
576
+ 0x4c,
577
+ 0x58,
578
+ 0xcf,
579
+ 0xd0,
580
+ 0xef,
581
+ 0xaa,
582
+ 0xfb,
583
+ 0x43,
584
+ 0x4d,
585
+ 0x33,
586
+ 0x85,
587
+ 0x45,
588
+ 0xf9,
589
+ 0x02,
590
+ 0x7f,
591
+ 0x50,
592
+ 0x3c,
593
+ 0x9f,
594
+ 0xa8,
595
+ 0x51,
596
+ 0xa3,
597
+ 0x40,
598
+ 0x8f,
599
+ 0x92,
600
+ 0x9d,
601
+ 0x38,
602
+ 0xf5,
603
+ 0xbc,
604
+ 0xb6,
605
+ 0xda,
606
+ 0x21,
607
+ 0x10,
608
+ 0xff,
609
+ 0xf3,
610
+ 0xd2,
611
+ 0xcd,
612
+ 0x0c,
613
+ 0x13,
614
+ 0xec,
615
+ 0x5f,
616
+ 0x97,
617
+ 0x44,
618
+ 0x17,
619
+ 0xc4,
620
+ 0xa7,
621
+ 0x7e,
622
+ 0x3d,
623
+ 0x64,
624
+ 0x5d,
625
+ 0x19,
626
+ 0x73,
627
+ 0x60,
628
+ 0x81,
629
+ 0x4f,
630
+ 0xdc,
631
+ 0x22,
632
+ 0x2a,
633
+ 0x90,
634
+ 0x88,
635
+ 0x46,
636
+ 0xee,
637
+ 0xb8,
638
+ 0x14,
639
+ 0xde,
640
+ 0x5e,
641
+ 0x0b,
642
+ 0xdb,
643
+ 0xe0,
644
+ 0x32,
645
+ 0x3a,
646
+ 0x0a,
647
+ 0x49,
648
+ 0x06,
649
+ 0x24,
650
+ 0x5c,
651
+ 0xc2,
652
+ 0xd3,
653
+ 0xac,
654
+ 0x62,
655
+ 0x91,
656
+ 0x95,
657
+ 0xe4,
658
+ 0x79,
659
+ 0xe7,
660
+ 0xc8,
661
+ 0x37,
662
+ 0x6d,
663
+ 0x8d,
664
+ 0xd5,
665
+ 0x4e,
666
+ 0xa9,
667
+ 0x6c,
668
+ 0x56,
669
+ 0xf4,
670
+ 0xea,
671
+ 0x65,
672
+ 0x7a,
673
+ 0xae,
674
+ 0x08,
675
+ 0xba,
676
+ 0x78,
677
+ 0x25,
678
+ 0x2e,
679
+ 0x1c,
680
+ 0xa6,
681
+ 0xb4,
682
+ 0xc6,
683
+ 0xe8,
684
+ 0xdd,
685
+ 0x74,
686
+ 0x1f,
687
+ 0x4b,
688
+ 0xbd,
689
+ 0x8b,
690
+ 0x8a,
691
+ 0x70,
692
+ 0x3e,
693
+ 0xb5,
694
+ 0x66,
695
+ 0x48,
696
+ 0x03,
697
+ 0xf6,
698
+ 0x0e,
699
+ 0x61,
700
+ 0x35,
701
+ 0x57,
702
+ 0xb9,
703
+ 0x86,
704
+ 0xc1,
705
+ 0x1d,
706
+ 0x9e,
707
+ 0xe1,
708
+ 0xf8,
709
+ 0x98,
710
+ 0x11,
711
+ 0x69,
712
+ 0xd9,
713
+ 0x8e,
714
+ 0x94,
715
+ 0x9b,
716
+ 0x1e,
717
+ 0x87,
718
+ 0xe9,
719
+ 0xce,
720
+ 0x55,
721
+ 0x28,
722
+ 0xdf,
723
+ 0x8c,
724
+ 0xa1,
725
+ 0x89,
726
+ 0x0d,
727
+ 0xbf,
728
+ 0xe6,
729
+ 0x42,
730
+ 0x68,
731
+ 0x41,
732
+ 0x99,
733
+ 0x2d,
734
+ 0x0f,
735
+ 0xb0,
736
+ 0x54,
737
+ 0xbb,
738
+ 0x16
739
+ ]), H = [
740
+ 0x01,
741
+ 0x02,
742
+ 0x04,
743
+ 0x08,
744
+ 0x10,
745
+ 0x20,
746
+ 0x40,
747
+ 0x80,
748
+ 0x1b,
749
+ 0x36
750
+ ];
751
+ function F(e) {
752
+ return (e << 1 ^ (0x80 & e ? 0x1b : 0)) & 0xff;
753
+ }
754
+ function q(e) {
755
+ for(var t = 1; t < arguments.length; t++){
756
+ var i = null != arguments[t] ? arguments[t] : {}, l = Object.keys(i);
757
+ "function" == typeof Object.getOwnPropertySymbols && (l = l.concat(Object.getOwnPropertySymbols(i).filter(function(e) {
758
+ return Object.getOwnPropertyDescriptor(i, e).enumerable;
759
+ }))), l.forEach(function(t) {
760
+ var l;
761
+ l = i[t], t in e ? Object.defineProperty(e, t, {
762
+ value: l,
763
+ enumerable: !0,
764
+ configurable: !0,
765
+ writable: !0
766
+ }) : e[t] = l;
767
+ });
768
+ }
769
+ return e;
770
+ }
771
+ function B(e, t) {
772
+ return t = null != t ? t : {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : (function(e) {
773
+ var t = Object.keys(e);
774
+ if (Object.getOwnPropertySymbols) {
775
+ var i = Object.getOwnPropertySymbols(e);
776
+ t.push.apply(t, i);
777
+ }
778
+ return t;
779
+ })(Object(t)).forEach(function(i) {
780
+ Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
781
+ }), e;
782
+ }
783
+ function z(e) {
784
+ return null !== e && "object" == typeof e && !Array.isArray(e);
785
+ }
786
+ function J(e) {
787
+ return "string" == typeof e ? /^\d+$/.test(e.trim()) ? e.trim() : "" : "number" == typeof e && Number.isFinite(e) && e > 0 ? String(Math.floor(e)) : "";
788
+ }
789
+ function G(e) {
790
+ return "string" == typeof e ? e.trim() : "";
791
+ }
792
+ function K(e) {
793
+ let t = Number(e);
794
+ return Number.isFinite(t) ? t : 0;
795
+ }
796
+ function Z(e) {
797
+ if (!Number.isFinite(e) || e <= 0) return "";
798
+ let t = Math.round(e), i = Math.floor(t / 3600), l = Math.floor(t % 3600 / 60), r = t % 60;
799
+ return i > 0 ? `${i}:${String(l).padStart(2, "0")}:${String(r).padStart(2, "0")}` : `${l}:${String(r).padStart(2, "0")}`;
800
+ }
801
+ function X(e) {
802
+ if (!z(e)) return null;
803
+ let t = J(e.id), i = G(e.name);
804
+ if (!i) return null;
805
+ let l = R(G(e.img1v1Url) || G(e.picUrl) || G(e.avatarUrl)), r = Array.isArray(e.alias) ? e.alias.map(G).filter(Boolean) : [], a = G(e.trans) || r[0] || void 0;
806
+ return q({
807
+ id: t,
808
+ name: i
809
+ }, l ? {
810
+ imageUrl: l
811
+ } : {}, a ? {
812
+ subtitle: a
813
+ } : {});
814
+ }
815
+ function Q(e) {
816
+ if (!z(e)) return null;
817
+ let t = J(e.id), i = G(e.name);
818
+ if (!t || !i) return null;
819
+ let l = (Array.isArray(e.artists) ? e.artists : e.artist ? [
820
+ e.artist
821
+ ] : []).map(X).filter((e)=>null !== e), r = R(G(e.picUrl) || G(e.blurPicUrl)), a = function(e) {
822
+ let t = K(e);
823
+ if (t <= 0) return;
824
+ let i = new Date(t);
825
+ if (Number.isNaN(i.getTime())) return;
826
+ let l = i.getUTCFullYear(), r = String(i.getUTCMonth() + 1).padStart(2, "0"), a = String(i.getUTCDate()).padStart(2, "0");
827
+ return `${l}-${r}-${a}`;
828
+ }(e.publishTime), n = G(e.description) || void 0, o = K(e.size) || void 0, s = G(e.company) || void 0, u = G(e.subType) || void 0;
829
+ return q({
830
+ id: t,
831
+ name: i,
832
+ artists: l
833
+ }, r ? {
834
+ imageUrl: r
835
+ } : {}, a ? {
836
+ released: a
837
+ } : {}, n ? {
838
+ description: n
839
+ } : {}, o ? {
840
+ trackCount: o
841
+ } : {}, s ? {
842
+ company: s
843
+ } : {}, u ? {
844
+ subType: u
845
+ } : {});
846
+ }
847
+ function Y(e) {
848
+ if (!z(e)) return null;
849
+ let t = J(e.id), i = G(e.name);
850
+ if (!t || !i) return null;
851
+ let l = R(G(e.coverImgUrl) || G(e.picUrl)), r = z(e.creator) ? e.creator : void 0, a = G(null == r ? void 0 : r.nickname) || G(e.copywriter) || void 0, n = K(e.trackCount) || void 0, o = Array.isArray(e.tags) ? e.tags.map(G).filter((e)=>!!e) : void 0, s = [], u = G(e.updateFrequency);
852
+ u && s.push(u);
853
+ let d = G(e.description);
854
+ if (d && s.push(d), Array.isArray(e.tracks) && e.tracks.length) {
855
+ let t = e.tracks.slice(0, 3).map((e, t)=>{
856
+ if (!z(e)) return "";
857
+ let i = G(e.first), l = G(e.second);
858
+ return i ? l ? `${t + 1}. ${i} · ${l}` : `${t + 1}. ${i}` : "";
859
+ }).filter(Boolean);
860
+ t.length && s.push(t.join("\n"));
861
+ }
862
+ let c = s.filter(Boolean).join("\n") || void 0;
863
+ return q({
864
+ id: t,
865
+ name: i
866
+ }, l ? {
867
+ imageUrl: l
868
+ } : {}, a ? {
869
+ owner: a
870
+ } : {}, c ? {
871
+ description: c
872
+ } : {}, n ? {
873
+ trackCount: n
874
+ } : {}, (null == o ? void 0 : o.length) ? {
875
+ tags: o
876
+ } : {});
877
+ }
878
+ function ee(e) {
879
+ if (!z(e)) return null;
880
+ let t = z(e.song) ? e.song : e, i = J(t.id) || J(e.id), l = G(t.name) || G(e.name);
881
+ if (!i || !l) return null;
882
+ let r = (Array.isArray(t.ar) ? t.ar : Array.isArray(t.artists) ? t.artists : Array.isArray(e.ar) ? e.ar : []).map(X).filter((e)=>null !== e), a = z(t.al) ? t.al : z(t.album) ? t.album : void 0, n = J(null == a ? void 0 : a.id), o = G(null == a ? void 0 : a.name), s = R(G(null == a ? void 0 : a.picUrl) || G(e.picUrl)), u = K(t.dt) || K(t.duration), d = u > 0 ? Math.round(u / 1000) : 0, c = K(t.fee), p = K(t.mv) || K(t.mvid) || K(e.mv) || void 0;
883
+ return q(B(q({
884
+ id: i,
885
+ name: l,
886
+ artists: r
887
+ }, o || n ? {
888
+ album: {
889
+ id: n,
890
+ name: o,
891
+ imageUrl: s
892
+ }
893
+ } : {}), {
894
+ duration: d
895
+ }), s ? {
896
+ imageUrl: s
897
+ } : {}, c ? {
898
+ fee: c
899
+ } : {}, p && p > 0 ? {
900
+ mvId: p
901
+ } : {});
902
+ }
903
+ function et(e) {
904
+ if (!z(e)) return null;
905
+ let t = J(e.id), i = G(e.name);
906
+ if (!t || !i) return null;
907
+ let l = R(G(e.picUrl) || G(e.intervenePicUrl)), r = z(e.dj) ? e.dj : void 0, a = G(null == r ? void 0 : r.nickname) || G(e.rcmdtext) || G(e.rcmdText) || void 0, n = G(e.category) || void 0, o = G(e.desc) || G(e.rcmdText) || G(e.rcmdtext) || void 0, s = K(e.programCount) || void 0;
908
+ return q({
909
+ id: t,
910
+ name: i
911
+ }, l ? {
912
+ imageUrl: l
913
+ } : {}, a ? {
914
+ host: a
915
+ } : {}, n ? {
916
+ category: n
917
+ } : {}, o ? {
918
+ description: o
919
+ } : {}, s ? {
920
+ programCount: s
921
+ } : {});
922
+ }
923
+ function ei(e) {
924
+ if (!z(e)) return null;
925
+ let t = z(e.mainSong) ? e.mainSong : void 0, i = J(null == t ? void 0 : t.id) || J(e.mainTrackId), l = J(e.id) || i, r = G(e.name) || G(null == t ? void 0 : t.name);
926
+ if (!i || !r) return null;
927
+ let a = R(G(e.coverUrl) || G(e.blurCoverUrl)), n = z(e.dj) ? e.dj : void 0, o = z(e.radio) ? e.radio : void 0, s = G(null == n ? void 0 : n.nickname) || void 0, u = G(null == o ? void 0 : o.name) || void 0, d = K(e.duration) || K(null == t ? void 0 : t.duration), c = d > 0 ? Math.round(d / 1000) : 0, p = G(e.description) || void 0;
928
+ return q(B(q({
929
+ id: l,
930
+ mainSongId: i,
931
+ name: r
932
+ }, a ? {
933
+ imageUrl: a
934
+ } : {}, s ? {
935
+ host: s
936
+ } : {}, u ? {
937
+ radioName: u
938
+ } : {}), {
939
+ duration: c
940
+ }), p ? {
941
+ description: p
942
+ } : {});
943
+ }
944
+ function el(e) {
945
+ if (!z(e)) return null;
946
+ let t = J(e.tagId), i = G(e.tagName);
947
+ if (!t || !i) return null;
948
+ let l = G(e.enName) || void 0, r = R(G(e.picUrl));
949
+ return q({
950
+ tagId: t,
951
+ tagName: i
952
+ }, l ? {
953
+ enName: l
954
+ } : {}, r ? {
955
+ imageUrl: r
956
+ } : {});
957
+ }
958
+ function er(e) {
959
+ if (!(null == e ? void 0 : e.length)) return;
960
+ let t = new Set(), i = [];
961
+ for (let l of e){
962
+ let e = l.trim();
963
+ !e || t.has(e) || (t.add(e), i.push({
964
+ id: T(e),
965
+ title: e
966
+ }));
967
+ }
968
+ return i.length ? i : void 0;
969
+ }
970
+ function ea(e) {
971
+ let t = new Set(), i = [];
972
+ for (let l of e)!l.id || !l.name || t.has(l.id) || (t.add(l.id), i.push(B(q({
973
+ id: l.id,
974
+ title: l.name
975
+ }, l.imageUrl ? {
976
+ avatar: l.imageUrl
977
+ } : {}), {
978
+ role: Widget.i18n("歌手")
979
+ })));
980
+ return i.length ? i : void 0;
981
+ }
982
+ function en(e) {
983
+ var t, i;
984
+ let l = e.artists.map((e)=>e.name).filter(Boolean).join(" / ") || (null == (t = e.album) ? void 0 : t.name) || void 0, r = e.imageUrl || (null == (i = e.album) ? void 0 : i.imageUrl), a = ea(e.artists), n = Z(e.duration);
985
+ return q({
986
+ id: e.id,
987
+ type: "url",
988
+ mediaType: "song",
989
+ link: O(e.id),
990
+ title: e.name
991
+ }, l ? {
992
+ subtitle: l
993
+ } : {}, r ? {
994
+ posterPath: r,
995
+ coverUrl: r
996
+ } : {}, e.duration > 0 ? {
997
+ duration: e.duration,
998
+ durationText: n
999
+ } : {}, a ? {
1000
+ peoples: a
1001
+ } : {});
1002
+ }
1003
+ function eo(e) {
1004
+ var t;
1005
+ let i = e.artists.map((e)=>e.name).filter(Boolean).join(" / "), l = ea(e.artists);
1006
+ return q({
1007
+ id: e.id,
1008
+ type: "url",
1009
+ mediaType: "album",
1010
+ link: (t = e.id, `${P}${t}`),
1011
+ title: e.name
1012
+ }, i ? {
1013
+ subtitle: i
1014
+ } : {}, e.imageUrl ? {
1015
+ posterPath: e.imageUrl,
1016
+ coverUrl: e.imageUrl
1017
+ } : {}, e.released ? {
1018
+ releaseDate: e.released
1019
+ } : {}, l ? {
1020
+ peoples: l
1021
+ } : {});
1022
+ }
1023
+ function es(e) {
1024
+ var t;
1025
+ let i = er(e.tags);
1026
+ return q({
1027
+ id: e.id,
1028
+ type: "url",
1029
+ mediaType: "playlist",
1030
+ link: (t = e.id, `${S}${t}`),
1031
+ title: e.name
1032
+ }, e.owner ? {
1033
+ subtitle: e.owner
1034
+ } : {}, e.imageUrl ? {
1035
+ posterPath: e.imageUrl,
1036
+ coverUrl: e.imageUrl
1037
+ } : {}, e.description ? {
1038
+ description: e.description
1039
+ } : {}, i ? {
1040
+ genreItems: i
1041
+ } : {});
1042
+ }
1043
+ function eu(e) {
1044
+ var t;
1045
+ let i = [
1046
+ e.host || "",
1047
+ e.category || ""
1048
+ ].filter(Boolean).join(" · ") || void 0;
1049
+ return q({
1050
+ id: `dj:${e.id}`,
1051
+ type: "url",
1052
+ mediaType: "playlist",
1053
+ link: (t = e.id, `${C}${t}`),
1054
+ title: e.name
1055
+ }, i ? {
1056
+ subtitle: i
1057
+ } : {}, e.imageUrl ? {
1058
+ posterPath: e.imageUrl,
1059
+ coverUrl: e.imageUrl
1060
+ } : {}, e.description ? {
1061
+ description: e.description
1062
+ } : {});
1063
+ }
1064
+ function ed(e) {
1065
+ let t = [
1066
+ e.host || "",
1067
+ e.radioName || ""
1068
+ ].filter(Boolean).join(" · ") || void 0, i = Z(e.duration);
1069
+ return q({
1070
+ id: e.mainSongId,
1071
+ type: "url",
1072
+ mediaType: "song",
1073
+ link: O(e.mainSongId),
1074
+ title: e.name
1075
+ }, t ? {
1076
+ subtitle: t
1077
+ } : {}, e.imageUrl ? {
1078
+ posterPath: e.imageUrl,
1079
+ coverUrl: e.imageUrl
1080
+ } : {}, e.duration > 0 ? {
1081
+ duration: e.duration,
1082
+ durationText: i
1083
+ } : {}, e.description ? {
1084
+ description: e.description
1085
+ } : {});
1086
+ }
1087
+ function ec(e, t) {
1088
+ return q({
1089
+ id: e.id,
1090
+ type: "person",
1091
+ mediaType: "person",
1092
+ title: e.name
1093
+ }, e.subtitle ? {
1094
+ subtitle: e.subtitle
1095
+ } : {}, e.imageUrl ? {
1096
+ avatar: e.imageUrl,
1097
+ posterPath: e.imageUrl,
1098
+ coverUrl: e.imageUrl
1099
+ } : {}, t ? {
1100
+ description: t
1101
+ } : {});
1102
+ }
1103
+ function ep(e) {
1104
+ let t = new Set(), i = [];
1105
+ for (let l of e){
1106
+ let e = `${l.mediaType || l.type}:${l.id}`;
1107
+ t.has(e) || (t.add(e), i.push(l));
1108
+ }
1109
+ return i;
1110
+ }
1111
+ function ef(e) {
1112
+ for(var t = 1; t < arguments.length; t++){
1113
+ var i = null != arguments[t] ? arguments[t] : {}, l = Object.keys(i);
1114
+ "function" == typeof Object.getOwnPropertySymbols && (l = l.concat(Object.getOwnPropertySymbols(i).filter(function(e) {
1115
+ return Object.getOwnPropertyDescriptor(i, e).enumerable;
1116
+ }))), l.forEach(function(t) {
1117
+ var l;
1118
+ l = i[t], t in e ? Object.defineProperty(e, t, {
1119
+ value: l,
1120
+ enumerable: !0,
1121
+ configurable: !0,
1122
+ writable: !0
1123
+ }) : e[t] = l;
1124
+ });
1125
+ }
1126
+ return e;
1127
+ }
1128
+ let em = "ncm:config", ey = "ncm:deviceId", eg = "ncm:serverCookies", ev = "ncm:account", eh = "ncm:streams", eb = "ncm:songMeta", ek = {
1129
+ cookie: "",
1130
+ quality: "exhigh",
1131
+ allowTrial: !1,
1132
+ playerType: "auto",
1133
+ reportHistory: !1
1134
+ };
1135
+ function eA(e) {
1136
+ try {
1137
+ let t = Widget.storage.get(e);
1138
+ if (null == t) return null;
1139
+ if ("string" == typeof t) try {
1140
+ return JSON.parse(t);
1141
+ } catch (e) {}
1142
+ return t;
1143
+ } catch (e) {
1144
+ return null;
1145
+ }
1146
+ }
1147
+ function eP(e, t) {
1148
+ try {
1149
+ Widget.storage.set(e, t);
1150
+ } catch (e) {}
1151
+ }
1152
+ function eS(e) {
1153
+ try {
1154
+ Widget.storage.remove(e);
1155
+ } catch (e) {}
1156
+ }
1157
+ function eC(e) {
1158
+ return e && p.includes(e) ? e : "exhigh";
1159
+ }
1160
+ function eI(e) {
1161
+ return "system" === e || "app" === e || "auto" === e ? e : "auto";
1162
+ }
1163
+ function eU() {
1164
+ let e = eA(em);
1165
+ return e && "object" == typeof e ? {
1166
+ cookie: "string" == typeof e.cookie ? e.cookie : ek.cookie,
1167
+ quality: eC(e.quality),
1168
+ allowTrial: !!e.allowTrial,
1169
+ playerType: eI(e.playerType),
1170
+ reportHistory: !!e.reportHistory
1171
+ } : ef({}, ek);
1172
+ }
1173
+ function ew(e) {
1174
+ let t = eU();
1175
+ if (!e) return t;
1176
+ let i = {
1177
+ cookie: "string" == typeof e.cookie ? e.cookie.trim() : t.cookie,
1178
+ quality: void 0 !== e.quality ? eC(e.quality) : t.quality,
1179
+ allowTrial: void 0 !== e.allowTrial ? "true" === e.allowTrial : t.allowTrial,
1180
+ playerType: void 0 !== e.playerType ? eI(e.playerType) : t.playerType,
1181
+ reportHistory: void 0 !== e.reportHistory ? "true" === e.reportHistory : t.reportHistory
1182
+ };
1183
+ return i.cookie !== t.cookie && (eS(ev), eS(eh)), eP(em, i), i;
1184
+ }
1185
+ function eO() {
1186
+ let e = eA(eg);
1187
+ return e && "object" == typeof e ? ef({}, e) : {};
1188
+ }
1189
+ function eM(e) {
1190
+ if (!(Object.keys(e.updates).length > 0) && !e.deletes.length) return;
1191
+ let t = eO();
1192
+ for (let i of e.deletes)delete t[i];
1193
+ for (let [i, l] of Object.entries(e.updates))l && (t[i] = l);
1194
+ eP(eg, t);
1195
+ }
1196
+ function eT(e, t) {
1197
+ let i = e.filter((e)=>"song" === e.mediaType && "string" == typeof e.id && e.id);
1198
+ if (!i.length) return;
1199
+ let l = new Map();
1200
+ if (t) for (let e of t)e.id && l.set(e.id, e);
1201
+ let r = eA(eb), a = r && "object" == typeof r ? ef({}, r) : {};
1202
+ for (let e of i){
1203
+ var n, o;
1204
+ let t = String(e.id), i = a[t], r = l.get(t), s = null != (n = null == r ? void 0 : r.mvId) ? n : null == i ? void 0 : i.mvId, u = (null == r ? void 0 : r.albumId) || (null == i ? void 0 : i.albumId);
1205
+ delete a[t], a[t] = ef({
1206
+ id: t,
1207
+ title: e.title
1208
+ }, e.subtitle ? {
1209
+ subtitle: e.subtitle
1210
+ } : {}, e.posterPath ? {
1211
+ posterPath: e.posterPath
1212
+ } : {}, e.coverUrl ? {
1213
+ coverUrl: e.coverUrl
1214
+ } : {}, "number" == typeof e.duration ? {
1215
+ duration: e.duration
1216
+ } : {}, e.durationText ? {
1217
+ durationText: e.durationText
1218
+ } : {}, (null == (o = e.peoples) ? void 0 : o.length) ? {
1219
+ peoples: e.peoples
1220
+ } : {}, s && s > 0 ? {
1221
+ mvId: s
1222
+ } : {}, u ? {
1223
+ albumId: u
1224
+ } : {});
1225
+ }
1226
+ let s = Object.keys(a);
1227
+ if (s.length > 160) for (let e of s.slice(0, s.length - 160))delete a[e];
1228
+ eP(eb, a);
1229
+ }
1230
+ function ej(e, t, i, l, r, a, n) {
1231
+ try {
1232
+ var o = e[a](n), s = o.value;
1233
+ } catch (e) {
1234
+ i(e);
1235
+ return;
1236
+ }
1237
+ o.done ? t(s) : Promise.resolve(s).then(l, r);
1238
+ }
1239
+ function e$(e) {
1240
+ return function() {
1241
+ var t = this, i = arguments;
1242
+ return new Promise(function(l, r) {
1243
+ var a = e.apply(t, i);
1244
+ function n(e) {
1245
+ ej(a, l, r, n, o, "next", e);
1246
+ }
1247
+ function o(e) {
1248
+ ej(a, l, r, n, o, "throw", e);
1249
+ }
1250
+ n(void 0);
1251
+ });
1252
+ };
1253
+ }
1254
+ function eE(e, t, i) {
1255
+ return t in e ? Object.defineProperty(e, t, {
1256
+ value: i,
1257
+ enumerable: !0,
1258
+ configurable: !0,
1259
+ writable: !0
1260
+ }) : e[t] = i, e;
1261
+ }
1262
+ function eN(e) {
1263
+ for(var t = 1; t < arguments.length; t++){
1264
+ var i = null != arguments[t] ? arguments[t] : {}, l = Object.keys(i);
1265
+ "function" == typeof Object.getOwnPropertySymbols && (l = l.concat(Object.getOwnPropertySymbols(i).filter(function(e) {
1266
+ return Object.getOwnPropertyDescriptor(i, e).enumerable;
1267
+ }))), l.forEach(function(t) {
1268
+ eE(e, t, i[t]);
1269
+ });
1270
+ }
1271
+ return e;
1272
+ }
1273
+ function eR(e, t) {
1274
+ return t = null != t ? t : {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : (function(e) {
1275
+ var t = Object.keys(e);
1276
+ if (Object.getOwnPropertySymbols) {
1277
+ var i = Object.getOwnPropertySymbols(e);
1278
+ t.push.apply(t, i);
1279
+ }
1280
+ return t;
1281
+ })(Object(t)).forEach(function(i) {
1282
+ Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
1283
+ }), e;
1284
+ }
1285
+ class eD extends Error {
1286
+ constructor(e, t = 0, i = !1){
1287
+ super(e), eE(this, "code", void 0), eE(this, "transient", void 0), this.name = "NeteaseApiError", this.code = t, this.transient = i;
1288
+ }
1289
+ }
1290
+ let eL = new Set([
1291
+ "mp3",
1292
+ "flac",
1293
+ "m4a",
1294
+ "aac",
1295
+ "ogg",
1296
+ "wav",
1297
+ "mp4"
1298
+ ]);
1299
+ function e_(e) {
1300
+ let t = eO(), i = r(e.cookie), l = {};
1301
+ return t.NMTID && (l.NMTID = t.NMTID), t.__csrf && (l.__csrf = t.__csrf), Object.assign(l, i.cookies), !i.cookies.NMTID && t.NMTID && (l.NMTID = t.NMTID), l;
1302
+ }
1303
+ function eW(e) {
1304
+ return Object.entries(e).map(([e, t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`).join("&");
1305
+ }
1306
+ function eV(e) {
1307
+ if ("string" == typeof e) try {
1308
+ return JSON.parse(e);
1309
+ } catch (e) {
1310
+ throw new eD(Widget.i18n("网易云返回了无法解析的响应"), 0, !1);
1311
+ }
1312
+ if (e && "object" == typeof e) return e;
1313
+ throw new eD(Widget.i18n("网易云返回了无效数据"), 0, !1);
1314
+ }
1315
+ function ex(e, t) {
1316
+ let i = e.code;
1317
+ if (null == i) return;
1318
+ let l = Number(i);
1319
+ if (t.includes(l)) return;
1320
+ if (301 === l || 302 === l || 401 === l) throw new eD(Widget.i18n("网易云登录状态已失效或需要登录,请检查 Cookie 配置"), l, !1);
1321
+ if (-460 === l || 460 === l) throw new eD(Widget.i18n("网易云暂时触发风控限制,请稍后重试"), l, !0);
1322
+ if (405 === l || 429 === l) throw new eD(Widget.i18n("网易云请求过于频繁,请稍后重试"), l, !0);
1323
+ let r = "string" == typeof e.message && e.message.trim() ? e.message.trim() : `code ${l}`;
1324
+ throw new eD(`${Widget.i18n("网易云接口返回错误")} (${r})`, l, l >= 500);
1325
+ }
1326
+ function eH(e) {
1327
+ if (e instanceof eD) return e.transient;
1328
+ let t = e instanceof Error ? e.message : String(e);
1329
+ return /^HTTP\s+(?:429|5\d\d)\b/i.test(t);
1330
+ }
1331
+ function eF(e, t = 3) {
1332
+ return e$(function*() {
1333
+ let i;
1334
+ for(let l = 1; l <= t; l++)try {
1335
+ return yield e(l);
1336
+ } catch (e) {
1337
+ if (i = e, !eH(e) || l >= t) throw e;
1338
+ yield function(e) {
1339
+ return e$(function*() {
1340
+ yield new Promise((t)=>setTimeout(t, e));
1341
+ })();
1342
+ }(250 * l);
1343
+ }
1344
+ throw i;
1345
+ })();
1346
+ }
1347
+ function eq(e, t) {
1348
+ return e$(function*(e, t = {}, i, r = {}) {
1349
+ var o, u;
1350
+ let d, c = r.method || "GET", p = e_(i), f = eN({}, t);
1351
+ "POST" === c && p.__csrf && void 0 === f.csrf_token && (f.csrf_token = p.__csrf);
1352
+ let m = l(p), y = eN({
1353
+ "user-agent": s,
1354
+ referer: `${n}/`
1355
+ }, m ? {
1356
+ cookie: m
1357
+ } : {}), g = `${n}${e}`;
1358
+ if ("POST" === c) y["content-type"] = "application/x-www-form-urlencoded", d = eW(f);
1359
+ else {
1360
+ let e = eW(f);
1361
+ e && (g += (g.includes("?") ? "&" : "?") + e);
1362
+ }
1363
+ let v = yield Widget.http.request(eR(eN({
1364
+ url: g,
1365
+ method: c,
1366
+ headers: y
1367
+ }, void 0 !== d ? {
1368
+ data: d
1369
+ } : {}), {
1370
+ timeout: null != (o = r.timeout) ? o : 18
1371
+ }));
1372
+ eM(a(v.headers));
1373
+ let h = eV(v.data);
1374
+ return ex(h, null != (u = r.allowedCodes) ? u : [
1375
+ 200
1376
+ ]), h;
1377
+ }).apply(this, arguments);
1378
+ }
1379
+ function eB(e, t, i) {
1380
+ return e$(function*(e, t, i, l = {}) {
1381
+ var r, n;
1382
+ let s = e_(i), p = Date.now(), f = function() {
1383
+ let e = eA(ey);
1384
+ if ("string" == typeof e && /^[0-9A-F]{52}$/.test(e)) return e;
1385
+ let t = "";
1386
+ for(let e = 0; e < 52; e++)t += Math.floor(16 * Math.random()).toString(16).toUpperCase();
1387
+ return eP(ey, t), t;
1388
+ }(), m = "android" === l.clientProfile, y = eR(eN({}, m ? d : u), {
1389
+ deviceId: f,
1390
+ mobilename: "",
1391
+ buildver: String(Math.floor(p / 1000)),
1392
+ requestId: `${p}_${String(Math.floor(1000 * Math.random())).padStart(4, "0")}`,
1393
+ __csrf: s.__csrf || ""
1394
+ });
1395
+ s.MUSIC_U && (y.MUSIC_U = s.MUSIC_U), s.NMTID && (y.NMTID = s.NMTID);
1396
+ let g = function(e, t, i = o) {
1397
+ let l = JSON.stringify(t), r = function(e) {
1398
+ let t = D(e), i = 8 * t.length, l = ((t.length + 8 >>> 6) + 1) * 64, r = new Uint8Array(l);
1399
+ r.set(t), r[t.length] = 0x80;
1400
+ let a = i >>> 0, n = Math.floor(i / 0x100000000) >>> 0, o = l - 8;
1401
+ r[o] = 0xff & a, r[o + 1] = a >>> 8 & 0xff, r[o + 2] = a >>> 16 & 0xff, r[o + 3] = a >>> 24 & 0xff, r[o + 4] = 0xff & n, r[o + 5] = n >>> 8 & 0xff, r[o + 6] = n >>> 16 & 0xff, r[o + 7] = n >>> 24 & 0xff;
1402
+ let s = 0x67452301, u = 0xefcdab89, d = 0x98badcfe, c = 0x10325476, p = new Uint32Array(16);
1403
+ for(let e = 0; e < l; e += 64){
1404
+ for(let t = 0; t < 16; t++){
1405
+ let i = e + 4 * t;
1406
+ p[t] = (r[i] | r[i + 1] << 8 | r[i + 2] << 16 | r[i + 3] << 24) >>> 0;
1407
+ }
1408
+ let t = s, i = u, l = d, a = c;
1409
+ for(let e = 0; e < 64; e++){
1410
+ var f, m;
1411
+ let r, n;
1412
+ e < 16 ? (r = i & l | ~i & a, n = e) : e < 32 ? (r = a & i | ~a & l, n = 5 * e + 1 & 15) : e < 48 ? (r = i ^ l ^ a, n = 3 * e + 5 & 15) : (r = l ^ (i | ~a), n = 7 * e & 15);
1413
+ let o = a;
1414
+ a = l, l = i, i = i + ((f = t + r + W[e] + p[n] | 0) << (m = _[e]) | f >>> 32 - m) | 0, t = o;
1415
+ }
1416
+ s = s + t | 0, u = u + i | 0, d = d + l | 0, c = c + a | 0;
1417
+ }
1418
+ return V(s) + V(u) + V(d) + V(c);
1419
+ }(`nobody${e}use${l}md5forencrypt`);
1420
+ return function(e, t = o) {
1421
+ let i = D(e), l = function(e) {
1422
+ if (16 !== e.length) throw Error(`AES-128 key must be 16 bytes, got ${e.length}`);
1423
+ let t = new Uint8Array(176);
1424
+ t.set(e);
1425
+ for(let e = 4; e < 44; e++){
1426
+ let i = (e - 1) * 4, l = t[i], r = t[i + 1], a = t[i + 2], n = t[i + 3];
1427
+ if (e % 4 == 0) {
1428
+ let t = l;
1429
+ l = x[r] ^ H[e / 4 - 1], r = x[a], a = x[n], n = x[t];
1430
+ }
1431
+ let o = (e - 4) * 4, s = 4 * e;
1432
+ t[s] = t[o] ^ l, t[s + 1] = t[o + 1] ^ r, t[s + 2] = t[o + 2] ^ a, t[s + 3] = t[o + 3] ^ n;
1433
+ }
1434
+ return t;
1435
+ }(D(t)), r = 16 - i.length % 16, a = new Uint8Array(i.length + r);
1436
+ a.set(i), a.fill(r, i.length);
1437
+ let n = new Uint8Array(16), s = "";
1438
+ for(let e = 0; e < a.length; e += 16){
1439
+ n.set(a.subarray(e, e + 16)), function(e, t) {
1440
+ for(let i = 0; i < 16; i++)e[i] ^= t[i];
1441
+ for(let i = 1; i <= 10; i++){
1442
+ for(let t = 0; t < 16; t++)e[t] = x[e[t]];
1443
+ let l = e[1];
1444
+ if (e[1] = e[5], e[5] = e[9], e[9] = e[13], e[13] = l, l = e[2], e[2] = e[10], e[10] = l, l = e[6], e[6] = e[14], e[14] = l, l = e[15], e[15] = e[11], e[11] = e[7], e[7] = e[3], e[3] = l, i < 10) for(let t = 0; t < 16; t += 4){
1445
+ let i = e[t], l = e[t + 1], r = e[t + 2], a = e[t + 3], n = i ^ l ^ r ^ a;
1446
+ e[t] = i ^ n ^ F(i ^ l), e[t + 1] = l ^ n ^ F(l ^ r), e[t + 2] = r ^ n ^ F(r ^ a), e[t + 3] = a ^ n ^ F(a ^ i);
1447
+ }
1448
+ let r = 16 * i;
1449
+ for(let i = 0; i < 16; i++)e[i] ^= t[r + i];
1450
+ }
1451
+ }(n, l);
1452
+ for(let e = 0; e < 16; e++)s += n[e].toString(16).padStart(2, "0").toUpperCase();
1453
+ }
1454
+ return s;
1455
+ }(`${e}-36cd479b6b5-${l}-36cd479b6b5-${r}`, i);
1456
+ }(e, eR(eN({}, t), {
1457
+ header: y,
1458
+ e_r: !1
1459
+ })), v = Object.entries(y).map(([e, t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("; "), h = `https://interfacepc.music.163.com${e.replace(/^\/api\//, "/eapi/")}`, b = yield Widget.http.request({
1460
+ url: h,
1461
+ method: "POST",
1462
+ headers: {
1463
+ "content-type": "application/x-www-form-urlencoded",
1464
+ "user-agent": m ? "NeteaseMusic/9.5.61.260802021928(9005061);Dalvik/2.1.0 (Linux; U; Android 12; HBN-AL00 Build/cd737a2.0)" : c,
1465
+ cookie: v
1466
+ },
1467
+ data: `params=${g}`,
1468
+ timeout: null != (r = l.timeout) ? r : 18
1469
+ });
1470
+ eM(a(b.headers));
1471
+ let k = eV(b.data);
1472
+ return ex(k, null != (n = l.allowedCodes) ? n : [
1473
+ 200
1474
+ ]), k;
1475
+ }).apply(this, arguments);
1476
+ }
1477
+ function ez(e) {
1478
+ return e$(function*() {
1479
+ var t, i, l;
1480
+ let a = r(e.cookie);
1481
+ if (!a.hasMusicU) throw Error(Widget.i18n("请在模块设置中填写包含 MUSIC_U 的网易云音乐 Cookie 后查看个人内容"));
1482
+ let n = a.cookies.MUSIC_U, o = function(e, t = Date.now()) {
1483
+ if (!e) return null;
1484
+ let i = eA(ev);
1485
+ return i && i.cookieKey === e && i.uid && !(t - i.cachedAt > 1800000) ? i : null;
1486
+ }(n);
1487
+ if (o) return {
1488
+ uid: o.uid,
1489
+ nickname: o.nickname
1490
+ };
1491
+ let s = yield eq("/api/nuser/account/get", {}, e), u = null != (t = null == (i = s.profile) ? void 0 : i.userId) ? t : null == (l = s.account) ? void 0 : l.id, d = u ? String(u) : "";
1492
+ if (!d || !/^\d+$/.test(d) || !s.profile) throw Error(Widget.i18n("网易云登录状态已失效或 Cookie 无效,请更新包含 MUSIC_U 的 Cookie"));
1493
+ let c = "string" == typeof s.profile.nickname ? s.profile.nickname : "";
1494
+ return !function(e, t, i, l = Date.now()) {
1495
+ e && i && eP(ev, {
1496
+ uid: e,
1497
+ nickname: t,
1498
+ cookieKey: i,
1499
+ cachedAt: l
1500
+ });
1501
+ }(d, c, n), {
1502
+ uid: d,
1503
+ nickname: c
1504
+ };
1505
+ })();
1506
+ }
1507
+ function eJ(e, t) {
1508
+ return e$(function*() {
1509
+ let i = Array.from(new Set(e.filter((e)=>/^\d+$/.test(e))));
1510
+ if (!i.length) return [];
1511
+ let l = new Map();
1512
+ for(let e = 0; e < i.length; e += 100){
1513
+ let r = i.slice(e, e + 100), a = yield eq("/api/v3/song/detail", {
1514
+ c: JSON.stringify(r.map((e)=>({
1515
+ id: Number(e)
1516
+ })))
1517
+ }, t, {
1518
+ method: "POST"
1519
+ });
1520
+ for (let e of Array.isArray(a.songs) ? a.songs : []){
1521
+ let t = ee(e);
1522
+ t && l.set(t.id, t);
1523
+ }
1524
+ }
1525
+ let r = [];
1526
+ for (let e of i){
1527
+ let t = l.get(e);
1528
+ t && r.push(t);
1529
+ }
1530
+ return r;
1531
+ })();
1532
+ }
1533
+ let eG = /\[(\d{1,3}):(\d{2})(?:[.:](\d{1,3}))?\]/g, eK = /^\[(ti|ar|al|by|offset):[^\]]*\]$/i;
1534
+ function eZ(e) {
1535
+ if ("string" != typeof e) return "";
1536
+ let t = e.replace(/\r\n?/g, "\n").trim();
1537
+ if (!t) return "";
1538
+ let i = t.split("\n").map((e)=>e.trim()).filter(Boolean);
1539
+ return 1 === i.length && /纯音乐[,,]?\s*请欣赏/.test(i[0]) ? "" : t;
1540
+ }
1541
+ function eX(e) {
1542
+ let t = [], i = [];
1543
+ for (let r of e.replace(/\r\n?/g, "\n").split("\n")){
1544
+ let e = r.trim();
1545
+ if (!e) continue;
1546
+ if (eK.test(e)) {
1547
+ t.push(e);
1548
+ continue;
1549
+ }
1550
+ let a = Array.from(e.matchAll(eG));
1551
+ if (!a.length) continue;
1552
+ let n = e.replace(eG, "").trim();
1553
+ if (n) for (let e of a){
1554
+ var l;
1555
+ let t = Number(e[1]), r = Number(e[2]), a = (l = e[3]) ? 1 === l.length ? 100 * Number(l) : 2 === l.length ? 10 * Number(l) : Number(l.slice(0, 3)) : 0;
1556
+ if (!Number.isFinite(t) || !Number.isFinite(r) || !Number.isFinite(a)) continue;
1557
+ let o = 60000 * t + 1000 * r + a;
1558
+ i.push({
1559
+ timeMs: o,
1560
+ timestamp: function(e) {
1561
+ let t = Math.max(0, Math.round(e)), i = Math.floor(t / 60000), l = Math.floor(t % 60000 / 1000), r = Math.floor(t % 1000 / 10);
1562
+ return `[${String(i).padStart(2, "0")}:${String(l).padStart(2, "0")}.${String(r).padStart(2, "0")}]`;
1563
+ }(o),
1564
+ text: n
1565
+ });
1566
+ }
1567
+ }
1568
+ return i.sort((e, t)=>e.timeMs - t.timeMs), {
1569
+ metadata: t,
1570
+ lines: i
1571
+ };
1572
+ }
1573
+ function eQ(e) {
1574
+ return `data:text/plain;charset=utf-8;base64,${function(e) {
1575
+ let t = "";
1576
+ for(let i = 0; i < e.length; i += 3){
1577
+ let l = e[i], r = i + 1 < e.length, a = i + 2 < e.length, n = l << 16 | (r ? e[i + 1] : 0) << 8 | (a ? e[i + 2] : 0);
1578
+ t += L[n >>> 18 & 0x3f], t += L[n >>> 12 & 0x3f], t += r ? L[n >>> 6 & 0x3f] : "=", t += a ? L[0x3f & n] : "=";
1579
+ }
1580
+ return t;
1581
+ }(D(e))}`;
1582
+ }
1583
+ function eY(e, t, i, l, r, a, n) {
1584
+ try {
1585
+ var o = e[a](n), s = o.value;
1586
+ } catch (e) {
1587
+ i(e);
1588
+ return;
1589
+ }
1590
+ o.done ? t(s) : Promise.resolve(s).then(l, r);
1591
+ }
1592
+ function e0(e) {
1593
+ return function() {
1594
+ var t = this, i = arguments;
1595
+ return new Promise(function(l, r) {
1596
+ var a = e.apply(t, i);
1597
+ function n(e) {
1598
+ eY(a, l, r, n, o, "next", e);
1599
+ }
1600
+ function o(e) {
1601
+ eY(a, l, r, n, o, "throw", e);
1602
+ }
1603
+ n(void 0);
1604
+ });
1605
+ };
1606
+ }
1607
+ function e1(e) {
1608
+ for(var t = 1; t < arguments.length; t++){
1609
+ var i = null != arguments[t] ? arguments[t] : {}, l = Object.keys(i);
1610
+ "function" == typeof Object.getOwnPropertySymbols && (l = l.concat(Object.getOwnPropertySymbols(i).filter(function(e) {
1611
+ return Object.getOwnPropertyDescriptor(i, e).enumerable;
1612
+ }))), l.forEach(function(t) {
1613
+ var l;
1614
+ l = i[t], t in e ? Object.defineProperty(e, t, {
1615
+ value: l,
1616
+ enumerable: !0,
1617
+ configurable: !0,
1618
+ writable: !0
1619
+ }) : e[t] = l;
1620
+ });
1621
+ }
1622
+ return e;
1623
+ }
1624
+ function e2(e, t) {
1625
+ return t = null != t ? t : {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : (function(e) {
1626
+ var t = Object.keys(e);
1627
+ if (Object.getOwnPropertySymbols) {
1628
+ var i = Object.getOwnPropertySymbols(e);
1629
+ t.push.apply(t, i);
1630
+ }
1631
+ return t;
1632
+ })(Object(t)).forEach(function(i) {
1633
+ Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
1634
+ }), e;
1635
+ }
1636
+ function e3(e) {
1637
+ let t = Number(e);
1638
+ return Number.isFinite(t) && t >= 1 ? Math.floor(t) : 1;
1639
+ }
1640
+ function e6(e, t = 30) {
1641
+ let i = Number(e.offset);
1642
+ return void 0 !== e.offset && "" !== e.offset && Number.isFinite(i) && i >= 0 ? Math.floor(i) : (e3(e.page) - 1) * t;
1643
+ }
1644
+ function e8(e, t, i = 30) {
1645
+ let l = e6(t, i);
1646
+ return e.slice(l, l + i);
1647
+ }
1648
+ function e5(e, t) {
1649
+ return e.startsWith(t) ? e.slice(t.length) : e;
1650
+ }
1651
+ function e4(e, t) {
1652
+ eT(t, e.map((e)=>{
1653
+ var t;
1654
+ return e1({
1655
+ id: e.id
1656
+ }, e.mvId ? {
1657
+ mvId: e.mvId
1658
+ } : {}, (null == (t = e.album) ? void 0 : t.id) ? {
1659
+ albumId: e.album.id
1660
+ } : {});
1661
+ }));
1662
+ }
1663
+ function e9(e, t) {
1664
+ return e0(function*(e, t, i = 300) {
1665
+ var l;
1666
+ let r = (yield eq("/api/v6/playlist/detail", {
1667
+ id: e,
1668
+ n: 100000,
1669
+ s: 0
1670
+ }, t, {
1671
+ method: "POST"
1672
+ })).playlist, a = null != (l = Y(r)) ? l : {
1673
+ id: e,
1674
+ name: e
1675
+ }, n = (Array.isArray(null == r ? void 0 : r.tracks) ? r.tracks : []).map(ee).filter((e)=>null !== e), o = new Map(n.map((e)=>[
1676
+ e.id,
1677
+ e
1678
+ ])), s = (Array.isArray(null == r ? void 0 : r.trackIds) ? r.trackIds : []).map((e)=>(null == e ? void 0 : e.id) !== void 0 ? String(e.id) : "").filter((e)=>$(e)).slice(0, i);
1679
+ if (!s.length) return {
1680
+ playlist: a,
1681
+ tracks: n.slice(0, i)
1682
+ };
1683
+ let u = s.filter((e)=>!o.has(e));
1684
+ if (u.length) for (let e of yield eJ(u, t))o.set(e.id, e);
1685
+ let d = [];
1686
+ for (let e of s){
1687
+ let t = o.get(e);
1688
+ t && d.push(t);
1689
+ }
1690
+ return {
1691
+ playlist: a,
1692
+ tracks: d
1693
+ };
1694
+ }).apply(this, arguments);
1695
+ }
1696
+ function e7(e, t) {
1697
+ return e0(function*(e, t, i = 100) {
1698
+ var l;
1699
+ let [r, a] = yield Promise.allSettled([
1700
+ eB("/api/djradio/v2/get", {
1701
+ id: e
1702
+ }, t),
1703
+ eB("/api/dj/program/byradio", {
1704
+ radioId: e,
1705
+ limit: i,
1706
+ offset: 0,
1707
+ asc: !1
1708
+ }, t)
1709
+ ]), n = null != (l = et("fulfilled" === r.status ? r.value.data : void 0)) ? l : {
1710
+ id: e,
1711
+ name: e
1712
+ }, o = ("fulfilled" === a.status && Array.isArray(a.value.programs) ? a.value.programs : []).map(ei).filter((e)=>null !== e).map((e)=>e2(e1({}, e), {
1713
+ host: e.host || n.host,
1714
+ radioName: e.radioName || n.name,
1715
+ imageUrl: e.imageUrl || n.imageUrl
1716
+ }));
1717
+ if (!o.length && "rejected" === r.status && "rejected" === a.status) throw r.reason;
1718
+ return {
1719
+ radio: n,
1720
+ programs: o
1721
+ };
1722
+ }).apply(this, arguments);
1723
+ }
1724
+ function te(e, t, i) {
1725
+ return e0(function*() {
1726
+ if (!r(i.cookie).hasMusicU) throw Error(Widget.i18n("私人漫游需要配置网易云音乐 Cookie(含 MUSIC_U)"));
1727
+ let l = yield eB("/api/v1/radio/get", {
1728
+ mode: e,
1729
+ subMode: t,
1730
+ limit: 10
1731
+ }, i);
1732
+ return (Array.isArray(l.data) ? l.data : []).map(ee).filter((e)=>null !== e);
1733
+ })();
1734
+ }
1735
+ let tt = {
1736
+ "fm:DEFAULT": {
1737
+ mode: "DEFAULT",
1738
+ subMode: ""
1739
+ },
1740
+ "fm:FAMILIAR": {
1741
+ mode: "FAMILIAR",
1742
+ subMode: ""
1743
+ },
1744
+ "fm:EXPLORE": {
1745
+ mode: "EXPLORE",
1746
+ subMode: ""
1747
+ },
1748
+ "fm:SCENE_EXERCISE": {
1749
+ mode: "SCENE_RCMD",
1750
+ subMode: "EXERCISE"
1751
+ },
1752
+ "fm:SCENE_FOCUS": {
1753
+ mode: "SCENE_RCMD",
1754
+ subMode: "FOCUS"
1755
+ },
1756
+ "fm:SCENE_NIGHT": {
1757
+ mode: "SCENE_RCMD",
1758
+ subMode: "NIGHT_EMO"
1759
+ }
1760
+ };
1761
+ function ti(e, t, i, l, r, a, n) {
1762
+ try {
1763
+ var o = e[a](n), s = o.value;
1764
+ } catch (e) {
1765
+ i(e);
1766
+ return;
1767
+ }
1768
+ o.done ? t(s) : Promise.resolve(s).then(l, r);
1769
+ }
1770
+ function tl(e) {
1771
+ return function() {
1772
+ var t = this, i = arguments;
1773
+ return new Promise(function(l, r) {
1774
+ var a = e.apply(t, i);
1775
+ function n(e) {
1776
+ ti(a, l, r, n, o, "next", e);
1777
+ }
1778
+ function o(e) {
1779
+ ti(a, l, r, n, o, "throw", e);
1780
+ }
1781
+ n(void 0);
1782
+ });
1783
+ };
1784
+ }
1785
+ WidgetMetadata = {
1786
+ id: "baranwang.music.netease",
1787
+ title: "网易云音乐",
1788
+ description: "网易云音乐插件,支持首页推荐、精品歌单、排行榜、新歌速递、歌单分类与曲风馆、播客电台、私人与场景漫游、歌手主页、搜索、时间轴歌词、个人音乐库与高解析音频播放",
1789
+ author: "Baran",
1790
+ version: "0.2.0",
1791
+ site: "https://github.com/baranwang/rex-widget/tree/main/apps/netease-music",
1792
+ requiredVersion: "0.0.7",
1793
+ contentType: "music",
1794
+ continuousPlay: !0,
1795
+ iconurl: "https://s1.music.126.net/style/favicon.ico",
1796
+ detailCacheDuration: 60,
1797
+ i18n: {
1798
+ en: {
1799
+ 网易云音乐: "NetEase Cloud Music",
1800
+ "网易云音乐 (测试)": "NetEase Cloud Music (Dev)",
1801
+ "网易云音乐插件,支持首页推荐、精品歌单、排行榜、新歌速递、歌单分类与曲风馆、播客电台、私人与场景漫游、歌手主页、搜索、时间轴歌词、个人音乐库与高解析音频播放": "NetEase Cloud Music plugin supporting Home, High-Quality Playlists, Charts, New Releases, Categories & Style Hall, Podcasts, Personal & Scene FM, Artists, Search, Synced Lyrics, My Library, and Hi-Res Audio Playback",
1802
+ "网易云音乐 Cookie(可选)": "NetEase Cloud Music Cookie (Optional)",
1803
+ "可选。支持直接粘贴 MUSIC_U 值、完整 Cookie 请求头或 Copy as cURL;不填可直接使用公开曲库与免费歌曲,填写后解锁每日推荐、历史日推、私人漫游、个人音乐库、动态封面、听歌打卡与黑胶 VIP / 无损音质。": "Optional. Paste a raw MUSIC_U token, full Cookie header, or Copy as cURL; leave empty for public catalog and free songs, or set it to unlock Daily Picks, History Picks, Personal FM, My Library, Motion Artwork, Scrobble, and VIP / Lossless quality.",
1804
+ 音质偏好: "Audio Quality",
1805
+ "无损与 SVIP 高解析音质需要黑胶 VIP / SVIP Cookie,FLAC 在自动模式下优先使用软件解码": "Lossless and SVIP Hi-Res tiers require VIP / SVIP Cookie; standalone FLAC automatically prefers software decoder in Auto mode.",
1806
+ "标准 (128k)": "Standard (128k)",
1807
+ "较高 (192k)": "Higher (192k)",
1808
+ "极高 (320k,兼容性最佳)": "ExHigh (320k, Best Compatibility)",
1809
+ "无损 (FLAC,需 VIP)": "Lossless (FLAC, VIP)",
1810
+ "Hi-Res (FLAC,需 SVIP)": "Hi-Res (FLAC, SVIP)",
1811
+ "高清臻音 (SVIP)": "Spatial Audio HD (jyeffect, SVIP)",
1812
+ "沉浸环绕声 (SVIP)": "Immersive Surround (sky, SVIP)",
1813
+ "杜比全景声 (SVIP)": "Dolby Atmos (SVIP)",
1814
+ "臻音全景声 (SVIP)": "Vivid Surround (SVIP)",
1815
+ "超清母带 (SVIP)": "Master Quality (jymaster, SVIP)",
1816
+ "VIP 试听片段": "VIP Trial Previews",
1817
+ "遇到无完整权限的 VIP 歌曲时,是否允许播放 30 秒试听片段": "Whether to allow playing 30-second trial previews for VIP tracks without full access",
1818
+ "跳过试听(仅播放完整歌曲)": "Skip Previews (Full Tracks Only)",
1819
+ "允许播放 30 秒试听": "Allow 30s Previews",
1820
+ 播放器偏好: "Player Preference",
1821
+ 自动: "Auto",
1822
+ "系统播放器 (system)": "System Player (system)",
1823
+ "软件解码 (app)": "App Decoder (app)",
1824
+ 听歌打卡: "Scrobble Listening History",
1825
+ "填写 Cookie 后,播放歌曲时上报至网易云听歌记录以更新听歌排行与每日推荐": "When Cookie is set, report playback to NetEase to keep your play ranks and recommendations fresh",
1826
+ 关闭: "Off",
1827
+ "开启(需配置 Cookie)": "On (Requires Cookie)",
1828
+ 首页推荐: "Home",
1829
+ "每日推荐、历史日推、精品歌单与新歌精选": "Daily picks, historical picks, high-quality playlists, and new songs",
1830
+ 筛选: "Filter",
1831
+ 全部: "All",
1832
+ 每日推荐: "Daily Picks",
1833
+ 历史日推: "History Daily Picks",
1834
+ 精品歌单: "High-Quality Playlists",
1835
+ 歌曲: "Songs",
1836
+ 歌单: "Playlists",
1837
+ 页码: "Page",
1838
+ 排行榜: "Charts",
1839
+ 官方榜与全球精选榜单: "Official and global music charts",
1840
+ "官方榜、全球精选榜单与歌手榜": "Official charts, global charts, and top artists",
1841
+ 分类: "Category",
1842
+ 官方榜: "Official Charts",
1843
+ 全球榜: "Global Charts",
1844
+ 歌手榜: "Top Artists Chart",
1845
+ 歌手榜地区: "Artist Chart Region",
1846
+ 新歌速递: "New Releases",
1847
+ 最新上架专辑与新歌速递: "Newly released albums and singles",
1848
+ 地区: "Region",
1849
+ 新专辑: "New Albums",
1850
+ 新歌: "New Songs",
1851
+ 华语: "Chinese",
1852
+ 欧美: "Western",
1853
+ 韩国: "Korean",
1854
+ 日本: "Japanese",
1855
+ 其他: "Other",
1856
+ 歌单分类: "Categories",
1857
+ "按语种、风格、曲风馆与精品标签浏览": "Browse by playlist categories, Style Hall, and high-quality tags",
1858
+ 浏览模式: "Browse Mode",
1859
+ 曲风馆: "Style Hall",
1860
+ 精品歌单分类: "High-Quality Tags",
1861
+ "分类 ID": "Category ID",
1862
+ 分区: "Section",
1863
+ "歌单 / 专辑": "Playlists / Albums",
1864
+ 专辑: "Albums",
1865
+ 偏移量: "Offset",
1866
+ 电台与漫游: "Radio & FM",
1867
+ "私人漫游、场景漫游、跑步漫游、心动模式与榜单电台": "Personal FM, Scene FM, Running FM, Heart Mode, and chart stations",
1868
+ "电台 ID": "Radio ID",
1869
+ 播客电台: "Podcasts & Radio",
1870
+ "精选播客、热门电台榜与高人气节目": "Featured podcasts, top radio charts, and popular episodes",
1871
+ 精选播客: "Featured Podcasts",
1872
+ 热门播客: "Popular Podcasts",
1873
+ 热门电台榜: "Top Radios",
1874
+ 新晋电台榜: "Rising Radios",
1875
+ 热门节目榜: "Top Episodes",
1876
+ 歌手: "Artists",
1877
+ "热门歌手、分类筛选与歌手主页": "Popular artists, category filters, and artist profiles",
1878
+ 类型: "Type",
1879
+ 男歌手: "Male",
1880
+ 女歌手: "Female",
1881
+ 乐队组合: "Bands & Groups",
1882
+ "歌手 ID": "Artist ID",
1883
+ 歌手分区: "Artist Section",
1884
+ 资料: "Profile",
1885
+ 相似歌手: "Similar Artists",
1886
+ 我的音乐库: "My Library",
1887
+ "我喜欢的音乐、个人歌单、云盘、最近播放与收藏(需配置 Cookie)": "Liked songs, playlists, cloud drive, recent plays, and collections (Requires Cookie)",
1888
+ 我喜欢的音乐: "Liked Songs",
1889
+ 我的歌单: "My Playlists",
1890
+ 音乐云盘: "Cloud Drive",
1891
+ "最近播放 · 歌曲": "Recently Played · Songs",
1892
+ "最近播放 · 专辑": "Recently Played · Albums",
1893
+ "最近播放 · 歌单": "Recently Played · Playlists",
1894
+ 收藏的专辑: "Collected Albums",
1895
+ 关注的歌手: "Followed Artists",
1896
+ 订阅的播客电台: "Subscribed Podcasts",
1897
+ 最近一周听歌排行: "Weekly Top Played",
1898
+ 所有时间听歌排行: "All-Time Top Played",
1899
+ 歌词: "Lyrics",
1900
+ "网易云音乐时间轴歌词(双语 / 原文 / 译文 / 罗马音)": "NetEase Cloud Music synced lyrics (Bilingual / Original / Translation / Romaji)",
1901
+ "双语歌词(原文 + 译文)": "Bilingual Lyrics (Original + Translation)",
1902
+ 原文歌词: "Original Lyrics",
1903
+ 中文翻译歌词: "Chinese Translation",
1904
+ 罗马音歌词: "Romaji Lyrics",
1905
+ 搜索: "Search",
1906
+ "搜索歌曲、歌词、专辑、歌手、歌单、播客电台与声音(留空展示热搜榜)": "Search songs, lyrics, albums, artists, playlists, podcasts, and episodes (leave empty for Hot Search)",
1907
+ "搜索歌曲、专辑、歌手、歌单与播客电台": "Search songs, albums, artists, playlists, and podcasts",
1908
+ 结果类型: "Result Type",
1909
+ "全部(音乐混合)": "All (Mixed Music)",
1910
+ 按歌词搜歌: "Search by Lyrics",
1911
+ "声音 / 单集": "Voices & Episodes",
1912
+ 热搜: "Trending",
1913
+ 网易云热搜榜: "NetEase Trending Search",
1914
+ 语种: "Language",
1915
+ 风格: "Genre",
1916
+ 主题: "Theme",
1917
+ 情感: "Mood",
1918
+ 场景: "Scene",
1919
+ 日语: "Japanese",
1920
+ 韩语: "Korean",
1921
+ 粤语: "Cantonese",
1922
+ 流行: "Pop",
1923
+ 摇滚: "Rock",
1924
+ 民谣: "Folk",
1925
+ 电子: "Electronic",
1926
+ 说唱: "Hip-Hop",
1927
+ 轻音乐: "Easy Listening",
1928
+ 爵士: "Jazz",
1929
+ 古典: "Classical",
1930
+ 古风: "Chinese Traditional",
1931
+ 影视原声: "Soundtrack",
1932
+ 游戏: "Gaming",
1933
+ 怀旧: "Nostalgic",
1934
+ 治愈: "Healing",
1935
+ 夜晚: "Night",
1936
+ 学习: "Study",
1937
+ 运动: "Workout",
1938
+ 驾车: "Driving",
1939
+ "私人漫游 · 默认": "Personal FM · Default",
1940
+ "根据你的听歌口味持续推荐(需配置 Cookie)": "Continuous recommendations tailored to your taste (Requires Cookie)",
1941
+ "私人漫游 · 熟悉": "Personal FM · Familiar",
1942
+ "重温你熟悉和喜欢的旋律(需配置 Cookie)": "Revisit familiar favorites (Requires Cookie)",
1943
+ "私人漫游 · 探索": "Personal FM · Explore",
1944
+ "发现新鲜小众好音乐(需配置 Cookie)": "Discover fresh tracks (Requires Cookie)",
1945
+ "场景漫游 · 运动": "Scene FM · Workout",
1946
+ "高燃节奏伴你运动(需配置 Cookie)": "Energetic beats for workouts (Requires Cookie)",
1947
+ "场景漫游 · 专注": "Scene FM · Focus",
1948
+ "沉浸工作与学习氛围(需配置 Cookie)": "Deep focus atmosphere for work and study (Requires Cookie)",
1949
+ "场景漫游 · 深夜情绪": "Scene FM · Late Night",
1950
+ "治愈深夜情绪的私藏歌单(需配置 Cookie)": "Soothing late-night mood mix (Requires Cookie)",
1951
+ 心动模式: "Heart Mode",
1952
+ "以我喜欢的音乐为种子智能推荐(需配置 Cookie)": "Smart mix seeded from your liked songs (Requires Cookie)",
1953
+ 跑步漫游: "Running FM",
1954
+ "按 160 BPM 步频推荐的动感节奏": "Upbeat 160 BPM tracks for running",
1955
+ 私人雷达: "Private Radar",
1956
+ 每日更新的个性化精选电台: "Daily updated personalized radar station",
1957
+ 首歌曲: "songs",
1958
+ 张专辑: "albums",
1959
+ 试听: "Preview",
1960
+ 未找到该专辑: "Album not found",
1961
+ 无法识别的详情链接: "Unrecognized detail link",
1962
+ "请在模块设置中填写包含 MUSIC_U 的网易云音乐 Cookie 后查看个人内容": "Please set your NetEase Cloud Music Cookie (including MUSIC_U) in module settings to view personal library",
1963
+ "私人漫游需要配置网易云音乐 Cookie(含 MUSIC_U)": "Personal FM requires a NetEase Cloud Music Cookie (including MUSIC_U)",
1964
+ "未找到「我喜欢的音乐」歌单,无法开启心动模式": "Could not find your Liked Songs playlist for Heart Mode",
1965
+ "「我喜欢的音乐」为空,请先收藏几首歌曲再使用心动模式": "Your Liked Songs playlist is empty; like some songs first",
1966
+ 网易云返回了无法解析的响应: "NetEase returned an unparseable response",
1967
+ 网易云返回了无效数据: "NetEase returned invalid data",
1968
+ "网易云登录状态已失效或需要登录,请检查 Cookie 配置": "NetEase session expired or login required; please check your Cookie",
1969
+ "网易云登录状态已失效或 Cookie 无效,请更新包含 MUSIC_U 的 Cookie": "NetEase session expired or invalid Cookie; please update MUSIC_U",
1970
+ "网易云暂时触发风控限制,请稍后重试": "NetEase temporarily rate-limited this request; please try again later",
1971
+ "网易云请求过于频繁,请稍后重试": "Too many requests to NetEase; please try again later",
1972
+ 网易云接口返回错误: "NetEase API returned an error",
1973
+ "当前歌曲暂无可用播放源,可能需要登录网易云黑胶 VIP 账号或受地区版权限制": "No playable audio stream found; VIP account or region availability may be required",
1974
+ "当前歌曲仅返回 30 秒 VIP 试听片段;请配置黑胶 VIP Cookie,或在模块设置中开启「允许播放 30 秒试听」": "Only a 30s VIP preview is available; provide a VIP Cookie or enable 30s previews in settings"
1975
+ },
1976
+ "zh-Hant": {
1977
+ 网易云音乐: "網易雲音樂",
1978
+ "网易云音乐 (测试)": "網易雲音樂 (測試)",
1979
+ "网易云音乐插件,支持首页推荐、精品歌单、排行榜、新歌速递、歌单分类与曲风馆、播客电台、私人与场景漫游、歌手主页、搜索、时间轴歌词、个人音乐库与高解析音频播放": "網易雲音樂插件,支援首頁推薦、精品歌單、排行榜、新歌速遞、歌單分類與曲風館、播客電台、私人與場景漫遊、歌手主頁、搜尋、時間軸歌詞、個人音樂庫與高解析音訊播放",
1980
+ "网易云音乐 Cookie(可选)": "網易雲音樂 Cookie(選填)",
1981
+ "可选。支持直接粘贴 MUSIC_U 值、完整 Cookie 请求头或 Copy as cURL;不填可直接使用公开曲库与免费歌曲,填写后解锁每日推荐、历史日推、私人漫游、个人音乐库、动态封面、听歌打卡与黑胶 VIP / 无损音质。": "選填。支援直接貼上 MUSIC_U 值、完整 Cookie 請求標頭或 Copy as cURL;不填可直接使用公開曲庫與免費歌曲,填寫後解鎖每日推薦、歷史日推、私人漫遊、個人音樂庫、動態封面、聽歌打卡與黑膠 VIP / 無損音質。",
1982
+ 音质偏好: "音質偏好",
1983
+ "无损与 SVIP 高解析音质需要黑胶 VIP / SVIP Cookie,FLAC 在自动模式下优先使用软件解码": "無損與 SVIP 高解析音質需要黑膠 VIP / SVIP Cookie,FLAC 在自動模式下優先使用軟體解碼",
1984
+ "标准 (128k)": "標準 (128k)",
1985
+ "较高 (192k)": "較高 (192k)",
1986
+ "极高 (320k,兼容性最佳)": "極高 (320k,相容性最佳)",
1987
+ "无损 (FLAC,需 VIP)": "無損 (FLAC,需 VIP)",
1988
+ "Hi-Res (FLAC,需 SVIP)": "Hi-Res (FLAC,需 SVIP)",
1989
+ "高清臻音 (SVIP)": "高清臻音 (SVIP)",
1990
+ "沉浸环绕声 (SVIP)": "沉浸環繞聲 (SVIP)",
1991
+ "杜比全景声 (SVIP)": "杜比全景聲 (SVIP)",
1992
+ "臻音全景声 (SVIP)": "臻音全景聲 (SVIP)",
1993
+ "超清母带 (SVIP)": "超清母帶 (SVIP)",
1994
+ "VIP 试听片段": "VIP 試聽片段",
1995
+ "遇到无完整权限的 VIP 歌曲时,是否允许播放 30 秒试听片段": "遇到無完整權限的 VIP 歌曲時,是否允許播放 30 秒試聽片段",
1996
+ "跳过试听(仅播放完整歌曲)": "略過試聽(僅播放完整歌曲)",
1997
+ "允许播放 30 秒试听": "允許播放 30 秒試聽",
1998
+ 播放器偏好: "播放器偏好",
1999
+ 自动: "自動",
2000
+ "系统播放器 (system)": "系統播放器 (system)",
2001
+ "软件解码 (app)": "軟體解碼 (app)",
2002
+ 听歌打卡: "聽歌打卡",
2003
+ "填写 Cookie 后,播放歌曲时上报至网易云听歌记录以更新听歌排行与每日推荐": "填寫 Cookie 後,播放歌曲時上報至網易雲聽歌記錄以更新聽歌排行與每日推薦",
2004
+ 关闭: "關閉",
2005
+ "开启(需配置 Cookie)": "開啟(需設定 Cookie)",
2006
+ 首页推荐: "首頁推薦",
2007
+ "每日推荐、历史日推、精品歌单与新歌精选": "每日推薦、歷史日推、精品歌單與新歌精選",
2008
+ 筛选: "篩選",
2009
+ 全部: "全部",
2010
+ 每日推荐: "每日推薦",
2011
+ 历史日推: "歷史日推",
2012
+ 精品歌单: "精品歌單",
2013
+ 歌曲: "歌曲",
2014
+ 歌单: "歌單",
2015
+ 页码: "頁碼",
2016
+ 排行榜: "排行榜",
2017
+ 官方榜与全球精选榜单: "官方榜與全球精選榜單",
2018
+ "官方榜、全球精选榜单与歌手榜": "官方榜、全球精選榜單與歌手榜",
2019
+ 分类: "分類",
2020
+ 官方榜: "官方榜",
2021
+ 全球榜: "全球榜",
2022
+ 歌手榜: "歌手榜",
2023
+ 歌手榜地区: "歌手榜地區",
2024
+ 新歌速递: "新歌速遞",
2025
+ 最新上架专辑与新歌速递: "最新上架專輯與新歌速遞",
2026
+ 地区: "地區",
2027
+ 新专辑: "新專輯",
2028
+ 新歌: "新歌",
2029
+ 华语: "華語",
2030
+ 欧美: "歐美",
2031
+ 韩国: "韓國",
2032
+ 日本: "日本",
2033
+ 其他: "其他",
2034
+ 歌单分类: "歌單分類",
2035
+ "按语种、风格、曲风馆与精品标签浏览": "按語種、風格、曲風館與精品標籤瀏覽",
2036
+ 浏览模式: "瀏覽模式",
2037
+ 曲风馆: "曲風館",
2038
+ 精品歌单分类: "精品歌單分類",
2039
+ "分类 ID": "分類 ID",
2040
+ 分区: "分區",
2041
+ "歌单 / 专辑": "歌單 / 專輯",
2042
+ 专辑: "專輯",
2043
+ 偏移量: "偏移量",
2044
+ 电台与漫游: "電台與漫遊",
2045
+ "私人漫游、场景漫游、跑步漫游、心动模式与榜单电台": "私人漫遊、場景漫遊、跑步漫遊、心動模式與榜單電台",
2046
+ "电台 ID": "電台 ID",
2047
+ 播客电台: "播客電台",
2048
+ "精选播客、热门电台榜与高人气节目": "精選播客、熱門電台榜與高人氣節目",
2049
+ 精选播客: "精選播客",
2050
+ 热门播客: "熱門播客",
2051
+ 热门电台榜: "熱門電台榜",
2052
+ 新晋电台榜: "新晉電台榜",
2053
+ 热门节目榜: "熱門節目榜",
2054
+ 歌手: "歌手",
2055
+ "热门歌手、分类筛选与歌手主页": "熱門歌手、分類篩選與歌手主頁",
2056
+ 类型: "類型",
2057
+ 男歌手: "男歌手",
2058
+ 女歌手: "女歌手",
2059
+ 乐队组合: "樂團組合",
2060
+ "歌手 ID": "歌手 ID",
2061
+ 歌手分区: "歌手分區",
2062
+ 资料: "資料",
2063
+ 相似歌手: "相似歌手",
2064
+ 我的音乐库: "我的音樂庫",
2065
+ "我喜欢的音乐、个人歌单、云盘、最近播放与收藏(需配置 Cookie)": "我喜歡的音樂、個人歌單、雲端硬碟、最近播放與收藏(需設定 Cookie)",
2066
+ 我喜欢的音乐: "我喜歡的音樂",
2067
+ 我的歌单: "我的歌單",
2068
+ 音乐云盘: "音樂雲端硬碟",
2069
+ "最近播放 · 歌曲": "最近播放 · 歌曲",
2070
+ "最近播放 · 专辑": "最近播放 · 專輯",
2071
+ "最近播放 · 歌单": "最近播放 · 歌單",
2072
+ 收藏的专辑: "收藏的專輯",
2073
+ 关注的歌手: "關注的歌手",
2074
+ 订阅的播客电台: "訂閱的播客電台",
2075
+ 最近一周听歌排行: "最近一週聽歌排行",
2076
+ 所有时间听歌排行: "所有時間聽歌排行",
2077
+ 歌词: "歌詞",
2078
+ "网易云音乐时间轴歌词(双语 / 原文 / 译文 / 罗马音)": "網易雲音樂時間軸歌詞(雙語 / 原文 / 譯文 / 羅馬音)",
2079
+ "双语歌词(原文 + 译文)": "雙語歌詞(原文 + 譯文)",
2080
+ 原文歌词: "原文歌詞",
2081
+ 中文翻译歌词: "中文翻譯歌詞",
2082
+ 罗马音歌词: "羅馬音歌詞",
2083
+ 搜索: "搜尋",
2084
+ "搜索歌曲、歌词、专辑、歌手、歌单、播客电台与声音(留空展示热搜榜)": "搜尋歌曲、歌詞、專輯、歌手、歌單、播客電台與聲音(留空顯示熱搜榜)",
2085
+ "搜索歌曲、专辑、歌手、歌单与播客电台": "搜尋歌曲、專輯、歌手、歌單與播客電台",
2086
+ 结果类型: "結果類型",
2087
+ "全部(音乐混合)": "全部(音樂混合)",
2088
+ 按歌词搜歌: "按歌詞搜歌",
2089
+ "声音 / 单集": "聲音 / 單集",
2090
+ 热搜: "熱搜",
2091
+ 网易云热搜榜: "網易雲熱搜榜",
2092
+ 语种: "語種",
2093
+ 风格: "風格",
2094
+ 主题: "主題",
2095
+ 情感: "情感",
2096
+ 场景: "場景",
2097
+ 日语: "日語",
2098
+ 韩语: "韓語",
2099
+ 粤语: "粵語",
2100
+ 流行: "流行",
2101
+ 摇滚: "搖滾",
2102
+ 民谣: "民謠",
2103
+ 电子: "電子",
2104
+ 说唱: "饒舌",
2105
+ 轻音乐: "輕音樂",
2106
+ 爵士: "爵士",
2107
+ 古典: "古典",
2108
+ 古风: "古風",
2109
+ 影视原声: "影視原聲",
2110
+ 游戏: "遊戲",
2111
+ 怀旧: "懷舊",
2112
+ 治愈: "治癒",
2113
+ 夜晚: "夜晚",
2114
+ 学习: "學習",
2115
+ 运动: "運動",
2116
+ 驾车: "駕車",
2117
+ "私人漫游 · 默认": "私人漫遊 · 預設",
2118
+ "根据你的听歌口味持续推荐(需配置 Cookie)": "根據你的聽歌口味持續推薦(需設定 Cookie)",
2119
+ "私人漫游 · 熟悉": "私人漫遊 · 熟悉",
2120
+ "重温你熟悉和喜欢的旋律(需配置 Cookie)": "重溫你熟悉和喜歡的旋律(需設定 Cookie)",
2121
+ "私人漫游 · 探索": "私人漫遊 · 探索",
2122
+ "发现新鲜小众好音乐(需配置 Cookie)": "發現新鮮小眾好音樂(需設定 Cookie)",
2123
+ "场景漫游 · 运动": "場景漫遊 · 運動",
2124
+ "高燃节奏伴你运动(需配置 Cookie)": "高燃節奏伴你運動(需設定 Cookie)",
2125
+ "场景漫游 · 专注": "場景漫遊 · 專注",
2126
+ "沉浸工作与学习氛围(需配置 Cookie)": "沉浸工作與學習氛圍(需設定 Cookie)",
2127
+ "场景漫游 · 深夜情绪": "場景漫遊 · 深夜情緒",
2128
+ "治愈深夜情绪的私藏歌单(需配置 Cookie)": "治癒深夜情緒的私藏歌單(需設定 Cookie)",
2129
+ 心动模式: "心動模式",
2130
+ "以我喜欢的音乐为种子智能推荐(需配置 Cookie)": "以我喜歡的音樂為種子智慧推薦(需設定 Cookie)",
2131
+ 跑步漫游: "跑步漫遊",
2132
+ "按 160 BPM 步频推荐的动感节奏": "按 160 BPM 步頻推薦的動感節奏",
2133
+ 私人雷达: "私人雷達",
2134
+ 每日更新的个性化精选电台: "每日更新的個人化精選電台",
2135
+ 首歌曲: "首歌曲",
2136
+ 张专辑: "張專輯",
2137
+ 试听: "試聽",
2138
+ 未找到该专辑: "找不到該專輯",
2139
+ 无法识别的详情链接: "無法識別的詳情連結",
2140
+ "请在模块设置中填写包含 MUSIC_U 的网易云音乐 Cookie 后查看个人内容": "請在模組設定中填寫包含 MUSIC_U 的網易雲音樂 Cookie 後檢視個人內容",
2141
+ "私人漫游需要配置网易云音乐 Cookie(含 MUSIC_U)": "私人漫遊需要設定網易雲音樂 Cookie(含 MUSIC_U)",
2142
+ "未找到「我喜欢的音乐」歌单,无法开启心动模式": "找不到「我喜歡的音樂」歌單,無法開啟心動模式",
2143
+ "「我喜欢的音乐」为空,请先收藏几首歌曲再使用心动模式": "「我喜歡的音樂」為空,請先收藏幾首歌曲再使用心動模式",
2144
+ 网易云返回了无法解析的响应: "網易雲回傳了無法解析的回應",
2145
+ 网易云返回了无效数据: "網易雲回傳了無效資料",
2146
+ "网易云登录状态已失效或需要登录,请检查 Cookie 配置": "網易雲登入狀態已失效或需要登入,請檢查 Cookie 設定",
2147
+ "网易云登录状态已失效或 Cookie 无效,请更新包含 MUSIC_U 的 Cookie": "網易雲登入狀態已失效或 Cookie 無效,請更新包含 MUSIC_U 的 Cookie",
2148
+ "网易云暂时触发风控限制,请稍后重试": "網易雲暫時觸發風控限制,請稍後重試",
2149
+ "网易云请求过于频繁,请稍后重试": "網易雲請求過於頻繁,請稍後重試",
2150
+ 网易云接口返回错误: "網易雲介面回傳錯誤",
2151
+ "当前歌曲暂无可用播放源,可能需要登录网易云黑胶 VIP 账号或受地区版权限制": "目前歌曲暫無可用播放來源,可能需要登入網易雲黑膠 VIP 帳號或受地區版權限制",
2152
+ "当前歌曲仅返回 30 秒 VIP 试听片段;请配置黑胶 VIP Cookie,或在模块设置中开启「允许播放 30 秒试听」": "目前歌曲僅回傳 30 秒 VIP 試聽片段;請設定黑膠 VIP Cookie,或在模組設定中開啟「允許播放 30 秒試聽」"
2153
+ }
2154
+ },
2155
+ globalParams: [
2156
+ {
2157
+ name: "cookie",
2158
+ title: "网易云音乐 Cookie(可选)",
2159
+ description: "可选。支持直接粘贴 MUSIC_U 值、完整 Cookie 请求头或 Copy as cURL;不填可直接使用公开曲库与免费歌曲,填写后解锁每日推荐、历史日推、私人漫游、个人音乐库、动态封面、听歌打卡与黑胶 VIP / 无损音质。",
2160
+ type: "input",
2161
+ value: ""
2162
+ },
2163
+ {
2164
+ name: "quality",
2165
+ title: "音质偏好",
2166
+ description: "无损与 SVIP 高解析音质需要黑胶 VIP / SVIP Cookie,FLAC 在自动模式下优先使用软件解码",
2167
+ type: "enumeration",
2168
+ value: "exhigh",
2169
+ enumOptions: [
2170
+ {
2171
+ title: "标准 (128k)",
2172
+ value: "standard"
2173
+ },
2174
+ {
2175
+ title: "较高 (192k)",
2176
+ value: "higher"
2177
+ },
2178
+ {
2179
+ title: "极高 (320k,兼容性最佳)",
2180
+ value: "exhigh"
2181
+ },
2182
+ {
2183
+ title: "无损 (FLAC,需 VIP)",
2184
+ value: "lossless"
2185
+ },
2186
+ {
2187
+ title: "Hi-Res (FLAC,需 SVIP)",
2188
+ value: "hires"
2189
+ },
2190
+ {
2191
+ title: "高清臻音 (SVIP)",
2192
+ value: "jyeffect"
2193
+ },
2194
+ {
2195
+ title: "沉浸环绕声 (SVIP)",
2196
+ value: "sky"
2197
+ },
2198
+ {
2199
+ title: "杜比全景声 (SVIP)",
2200
+ value: "dolby"
2201
+ },
2202
+ {
2203
+ title: "臻音全景声 (SVIP)",
2204
+ value: "vivid"
2205
+ },
2206
+ {
2207
+ title: "超清母带 (SVIP)",
2208
+ value: "jymaster"
2209
+ }
2210
+ ]
2211
+ },
2212
+ {
2213
+ name: "allowTrial",
2214
+ title: "VIP 试听片段",
2215
+ description: "遇到无完整权限的 VIP 歌曲时,是否允许播放 30 秒试听片段",
2216
+ type: "enumeration",
2217
+ value: "false",
2218
+ enumOptions: [
2219
+ {
2220
+ title: "跳过试听(仅播放完整歌曲)",
2221
+ value: "false"
2222
+ },
2223
+ {
2224
+ title: "允许播放 30 秒试听",
2225
+ value: "true"
2226
+ }
2227
+ ]
2228
+ },
2229
+ {
2230
+ name: "playerType",
2231
+ title: "播放器偏好",
2232
+ type: "enumeration",
2233
+ value: "auto",
2234
+ enumOptions: [
2235
+ {
2236
+ title: "自动",
2237
+ value: "auto"
2238
+ },
2239
+ {
2240
+ title: "系统播放器 (system)",
2241
+ value: "system"
2242
+ },
2243
+ {
2244
+ title: "软件解码 (app)",
2245
+ value: "app"
2246
+ }
2247
+ ]
2248
+ },
2249
+ {
2250
+ name: "reportHistory",
2251
+ title: "听歌打卡",
2252
+ description: "填写 Cookie 后,播放歌曲时上报至网易云听歌记录以更新听歌排行与每日推荐",
2253
+ type: "enumeration",
2254
+ value: "false",
2255
+ enumOptions: [
2256
+ {
2257
+ title: "关闭",
2258
+ value: "false"
2259
+ },
2260
+ {
2261
+ title: "开启(需配置 Cookie)",
2262
+ value: "true"
2263
+ }
2264
+ ]
2265
+ }
2266
+ ],
2267
+ modules: [
2268
+ {
2269
+ id: "home",
2270
+ title: "首页推荐",
2271
+ subtitle: "每日推荐、历史日推、精品歌单与新歌精选",
2272
+ type: "video",
2273
+ functionName: "loadHome",
2274
+ cacheDuration: 600,
2275
+ params: [
2276
+ {
2277
+ name: "filter",
2278
+ title: "筛选",
2279
+ type: "enumeration",
2280
+ value: "all",
2281
+ enumOptions: [
2282
+ {
2283
+ title: "全部",
2284
+ value: "all"
2285
+ },
2286
+ {
2287
+ title: "每日推荐",
2288
+ value: "daily"
2289
+ },
2290
+ {
2291
+ title: "历史日推",
2292
+ value: "history_daily"
2293
+ },
2294
+ {
2295
+ title: "精品歌单",
2296
+ value: "highquality"
2297
+ },
2298
+ {
2299
+ title: "歌曲",
2300
+ value: "songs"
2301
+ },
2302
+ {
2303
+ title: "歌单",
2304
+ value: "playlists"
2305
+ }
2306
+ ]
2307
+ },
2308
+ {
2309
+ name: "page",
2310
+ title: "页码",
2311
+ type: "page"
2312
+ }
2313
+ ]
2314
+ },
2315
+ {
2316
+ id: "charts",
2317
+ title: "排行榜",
2318
+ subtitle: "官方榜、全球精选榜单与歌手榜",
2319
+ type: "video",
2320
+ functionName: "loadCharts",
2321
+ cacheDuration: 3600,
2322
+ params: [
2323
+ {
2324
+ name: "category",
2325
+ title: "分类",
2326
+ type: "enumeration",
2327
+ value: "all",
2328
+ enumOptions: [
2329
+ {
2330
+ title: "全部",
2331
+ value: "all"
2332
+ },
2333
+ {
2334
+ title: "官方榜",
2335
+ value: "official"
2336
+ },
2337
+ {
2338
+ title: "全球榜",
2339
+ value: "global"
2340
+ },
2341
+ {
2342
+ title: "歌手榜",
2343
+ value: "artists"
2344
+ }
2345
+ ]
2346
+ },
2347
+ {
2348
+ name: "artistArea",
2349
+ title: "歌手榜地区",
2350
+ type: "enumeration",
2351
+ value: "ZH",
2352
+ belongTo: {
2353
+ paramName: "category",
2354
+ value: [
2355
+ "artists"
2356
+ ]
2357
+ },
2358
+ enumOptions: [
2359
+ {
2360
+ title: "华语",
2361
+ value: "ZH"
2362
+ },
2363
+ {
2364
+ title: "欧美",
2365
+ value: "EA"
2366
+ },
2367
+ {
2368
+ title: "韩国",
2369
+ value: "KR"
2370
+ },
2371
+ {
2372
+ title: "日本",
2373
+ value: "JP"
2374
+ }
2375
+ ]
2376
+ },
2377
+ {
2378
+ name: "page",
2379
+ title: "页码",
2380
+ type: "page"
2381
+ }
2382
+ ]
2383
+ },
2384
+ {
2385
+ id: "newReleases",
2386
+ title: "新歌速递",
2387
+ subtitle: "最新上架专辑与新歌速递",
2388
+ type: "video",
2389
+ functionName: "loadNewReleases",
2390
+ cacheDuration: 3600,
2391
+ params: [
2392
+ {
2393
+ name: "category",
2394
+ title: "分类",
2395
+ type: "enumeration",
2396
+ value: "albums",
2397
+ enumOptions: [
2398
+ {
2399
+ title: "新专辑",
2400
+ value: "albums"
2401
+ },
2402
+ {
2403
+ title: "新歌",
2404
+ value: "songs"
2405
+ }
2406
+ ]
2407
+ },
2408
+ {
2409
+ name: "area",
2410
+ title: "地区",
2411
+ type: "enumeration",
2412
+ value: "ALL",
2413
+ enumOptions: [
2414
+ {
2415
+ title: "全部",
2416
+ value: "ALL"
2417
+ },
2418
+ {
2419
+ title: "华语",
2420
+ value: "ZH"
2421
+ },
2422
+ {
2423
+ title: "欧美",
2424
+ value: "EA"
2425
+ },
2426
+ {
2427
+ title: "韩国",
2428
+ value: "KR"
2429
+ },
2430
+ {
2431
+ title: "日本",
2432
+ value: "JP"
2433
+ }
2434
+ ]
2435
+ },
2436
+ {
2437
+ name: "page",
2438
+ title: "页码",
2439
+ type: "page"
2440
+ }
2441
+ ]
2442
+ },
2443
+ {
2444
+ id: "musicGenres",
2445
+ title: "歌单分类",
2446
+ subtitle: "按语种、风格、曲风馆与精品标签浏览",
2447
+ type: "video",
2448
+ functionName: "loadGenres",
2449
+ cacheDuration: 3600,
2450
+ params: [
2451
+ {
2452
+ name: "source",
2453
+ title: "浏览模式",
2454
+ type: "enumeration",
2455
+ value: "all",
2456
+ enumOptions: [
2457
+ {
2458
+ title: "歌单分类",
2459
+ value: "all"
2460
+ },
2461
+ {
2462
+ title: "曲风馆",
2463
+ value: "styles"
2464
+ },
2465
+ {
2466
+ title: "精品歌单分类",
2467
+ value: "highquality"
2468
+ }
2469
+ ]
2470
+ },
2471
+ {
2472
+ name: "genreId",
2473
+ title: "分类 ID",
2474
+ type: "input"
2475
+ },
2476
+ {
2477
+ name: "section",
2478
+ title: "分区",
2479
+ type: "enumeration",
2480
+ enumOptions: [
2481
+ {
2482
+ title: "歌单 / 专辑",
2483
+ value: "albums"
2484
+ },
2485
+ {
2486
+ title: "歌曲",
2487
+ value: "songs"
2488
+ },
2489
+ {
2490
+ title: "歌手",
2491
+ value: "artists"
2492
+ }
2493
+ ]
2494
+ },
2495
+ {
2496
+ name: "page",
2497
+ title: "页码",
2498
+ type: "page"
2499
+ },
2500
+ {
2501
+ name: "offset",
2502
+ title: "偏移量",
2503
+ type: "offset"
2504
+ }
2505
+ ]
2506
+ },
2507
+ {
2508
+ id: "musicRadios",
2509
+ title: "电台与漫游",
2510
+ subtitle: "私人漫游、场景漫游、跑步漫游、心动模式与榜单电台",
2511
+ type: "video",
2512
+ functionName: "loadRadios",
2513
+ cacheDuration: 300,
2514
+ params: [
2515
+ {
2516
+ name: "radioId",
2517
+ title: "电台 ID",
2518
+ type: "input"
2519
+ },
2520
+ {
2521
+ name: "section",
2522
+ title: "分区",
2523
+ type: "enumeration",
2524
+ enumOptions: [
2525
+ {
2526
+ title: "歌曲",
2527
+ value: "songs"
2528
+ },
2529
+ {
2530
+ title: "专辑",
2531
+ value: "albums"
2532
+ },
2533
+ {
2534
+ title: "歌手",
2535
+ value: "artists"
2536
+ }
2537
+ ]
2538
+ },
2539
+ {
2540
+ name: "page",
2541
+ title: "页码",
2542
+ type: "page"
2543
+ },
2544
+ {
2545
+ name: "offset",
2546
+ title: "偏移量",
2547
+ type: "offset"
2548
+ }
2549
+ ]
2550
+ },
2551
+ {
2552
+ id: "podcasts",
2553
+ title: "播客电台",
2554
+ subtitle: "精选播客、热门电台榜与高人气节目",
2555
+ type: "video",
2556
+ functionName: "loadPodcasts",
2557
+ cacheDuration: 1800,
2558
+ params: [
2559
+ {
2560
+ name: "category",
2561
+ title: "分类",
2562
+ type: "enumeration",
2563
+ value: "recommend",
2564
+ enumOptions: [
2565
+ {
2566
+ title: "精选播客",
2567
+ value: "recommend"
2568
+ },
2569
+ {
2570
+ title: "热门播客",
2571
+ value: "hot"
2572
+ },
2573
+ {
2574
+ title: "热门电台榜",
2575
+ value: "toplist_hot"
2576
+ },
2577
+ {
2578
+ title: "新晋电台榜",
2579
+ value: "toplist_new"
2580
+ },
2581
+ {
2582
+ title: "热门节目榜",
2583
+ value: "programs"
2584
+ }
2585
+ ]
2586
+ },
2587
+ {
2588
+ name: "page",
2589
+ title: "页码",
2590
+ type: "page"
2591
+ }
2592
+ ]
2593
+ },
2594
+ {
2595
+ id: "musicArtists",
2596
+ title: "歌手",
2597
+ subtitle: "热门歌手、分类筛选与歌手主页",
2598
+ type: "person",
2599
+ functionName: "loadArtists",
2600
+ cacheDuration: 3600,
2601
+ params: [
2602
+ {
2603
+ name: "area",
2604
+ title: "地区",
2605
+ type: "enumeration",
2606
+ value: "ALL",
2607
+ enumOptions: [
2608
+ {
2609
+ title: "全部",
2610
+ value: "ALL"
2611
+ },
2612
+ {
2613
+ title: "华语",
2614
+ value: "ZH"
2615
+ },
2616
+ {
2617
+ title: "欧美",
2618
+ value: "EA"
2619
+ },
2620
+ {
2621
+ title: "日本",
2622
+ value: "JP"
2623
+ },
2624
+ {
2625
+ title: "韩国",
2626
+ value: "KR"
2627
+ },
2628
+ {
2629
+ title: "其他",
2630
+ value: "OTHER"
2631
+ }
2632
+ ]
2633
+ },
2634
+ {
2635
+ name: "artistType",
2636
+ title: "类型",
2637
+ type: "enumeration",
2638
+ value: "ALL",
2639
+ enumOptions: [
2640
+ {
2641
+ title: "全部",
2642
+ value: "ALL"
2643
+ },
2644
+ {
2645
+ title: "男歌手",
2646
+ value: "MALE"
2647
+ },
2648
+ {
2649
+ title: "女歌手",
2650
+ value: "FEMALE"
2651
+ },
2652
+ {
2653
+ title: "乐队组合",
2654
+ value: "BAND"
2655
+ }
2656
+ ]
2657
+ },
2658
+ {
2659
+ name: "peopleId",
2660
+ title: "歌手 ID",
2661
+ type: "input"
2662
+ },
2663
+ {
2664
+ name: "section",
2665
+ title: "歌手分区",
2666
+ type: "enumeration",
2667
+ enumOptions: [
2668
+ {
2669
+ title: "歌曲",
2670
+ value: "songs"
2671
+ },
2672
+ {
2673
+ title: "专辑",
2674
+ value: "albums"
2675
+ },
2676
+ {
2677
+ title: "资料",
2678
+ value: "profile"
2679
+ },
2680
+ {
2681
+ title: "相似歌手",
2682
+ value: "artists"
2683
+ }
2684
+ ]
2685
+ },
2686
+ {
2687
+ name: "page",
2688
+ title: "页码",
2689
+ type: "page"
2690
+ },
2691
+ {
2692
+ name: "offset",
2693
+ title: "偏移量",
2694
+ type: "offset"
2695
+ }
2696
+ ]
2697
+ },
2698
+ {
2699
+ id: "library",
2700
+ title: "我的音乐库",
2701
+ subtitle: "我喜欢的音乐、个人歌单、云盘、最近播放与收藏(需配置 Cookie)",
2702
+ type: "video",
2703
+ functionName: "loadLibrary",
2704
+ cacheDuration: 120,
2705
+ params: [
2706
+ {
2707
+ name: "tab",
2708
+ title: "分类",
2709
+ type: "enumeration",
2710
+ value: "liked",
2711
+ enumOptions: [
2712
+ {
2713
+ title: "我喜欢的音乐",
2714
+ value: "liked"
2715
+ },
2716
+ {
2717
+ title: "我的歌单",
2718
+ value: "playlists"
2719
+ },
2720
+ {
2721
+ title: "音乐云盘",
2722
+ value: "cloud"
2723
+ },
2724
+ {
2725
+ title: "最近播放 · 歌曲",
2726
+ value: "recent_songs"
2727
+ },
2728
+ {
2729
+ title: "最近播放 · 专辑",
2730
+ value: "recent_albums"
2731
+ },
2732
+ {
2733
+ title: "最近播放 · 歌单",
2734
+ value: "recent_playlists"
2735
+ },
2736
+ {
2737
+ title: "收藏的专辑",
2738
+ value: "sub_albums"
2739
+ },
2740
+ {
2741
+ title: "关注的歌手",
2742
+ value: "sub_artists"
2743
+ },
2744
+ {
2745
+ title: "订阅的播客电台",
2746
+ value: "sub_podcasts"
2747
+ },
2748
+ {
2749
+ title: "最近一周听歌排行",
2750
+ value: "recent_week"
2751
+ },
2752
+ {
2753
+ title: "所有时间听歌排行",
2754
+ value: "recent_all"
2755
+ }
2756
+ ]
2757
+ },
2758
+ {
2759
+ name: "page",
2760
+ title: "页码",
2761
+ type: "page"
2762
+ }
2763
+ ]
2764
+ },
2765
+ {
2766
+ id: "loadSubtitle",
2767
+ title: "歌词",
2768
+ subtitle: "网易云音乐时间轴歌词(双语 / 原文 / 译文 / 罗马音)",
2769
+ type: "subtitle",
2770
+ functionName: "loadSubtitle",
2771
+ cacheDuration: 3600
2772
+ }
2773
+ ],
2774
+ search: {
2775
+ id: "search",
2776
+ title: "搜索",
2777
+ subtitle: "搜索歌曲、歌词、专辑、歌手、歌单、播客电台与声音(留空展示热搜榜)",
2778
+ functionName: "search",
2779
+ params: [
2780
+ {
2781
+ name: "kind",
2782
+ title: "结果类型",
2783
+ type: "enumeration",
2784
+ value: "all",
2785
+ enumOptions: [
2786
+ {
2787
+ title: "全部(音乐混合)",
2788
+ value: "all"
2789
+ },
2790
+ {
2791
+ title: "歌曲",
2792
+ value: "songs"
2793
+ },
2794
+ {
2795
+ title: "按歌词搜歌",
2796
+ value: "lyrics"
2797
+ },
2798
+ {
2799
+ title: "专辑",
2800
+ value: "albums"
2801
+ },
2802
+ {
2803
+ title: "歌手",
2804
+ value: "artists"
2805
+ },
2806
+ {
2807
+ title: "歌单",
2808
+ value: "playlists"
2809
+ },
2810
+ {
2811
+ title: "播客电台",
2812
+ value: "dj"
2813
+ },
2814
+ {
2815
+ title: "声音 / 单集",
2816
+ value: "voices"
2817
+ }
2818
+ ]
2819
+ },
2820
+ {
2821
+ name: "page",
2822
+ title: "页码",
2823
+ type: "page"
2824
+ }
2825
+ ]
2826
+ }
2827
+ }, loadHome = (e)=>tl(function*() {
2828
+ return e0(function*() {
2829
+ var t, i, l, a, n, o, s;
2830
+ let u = ew(e), d = e.filter || "all", c = r(u.cookie).hasMusicU;
2831
+ if ("daily" === d) {
2832
+ let t = yield eq("/api/v3/discovery/recommend/songs", {}, u), i = (Array.isArray(null == (n = t.data) ? void 0 : n.dailySongs) ? t.data.dailySongs : []).map(ee).filter((e)=>null !== e), l = ep(i.map(en));
2833
+ return e4(i, l), e8(l, e);
2834
+ }
2835
+ if ("history_daily" === d) {
2836
+ if (!c) throw Error(Widget.i18n("请在模块设置中填写包含 MUSIC_U 的网易云音乐 Cookie 后查看个人内容"));
2837
+ let t = yield eB("/api/discovery/recommend/songs/history/recent", {}, u), i = (Array.isArray(null == (o = t.data) ? void 0 : o.dates) ? t.data.dates.filter(Boolean) : [])[0];
2838
+ if (!i) return [];
2839
+ let l = yield eB("/api/discovery/recommend/songs/history/detail", {
2840
+ date: i
2841
+ }, u), r = (Array.isArray(null == (s = l.data) ? void 0 : s.songs) ? l.data.songs : []).map(ee).filter((e)=>null !== e), a = ep(r.map(en));
2842
+ return e4(r, a), e8(a, e);
2843
+ }
2844
+ if ("highquality" === d) {
2845
+ let t = yield eB("/api/playlist/highquality/list", {
2846
+ cat: "全部",
2847
+ limit: 60,
2848
+ lasttime: 0,
2849
+ total: !0
2850
+ }, u);
2851
+ return e8(ep((Array.isArray(t.playlists) ? t.playlists : []).map(Y).filter((e)=>null !== e).map(es)), e);
2852
+ }
2853
+ let p = {};
2854
+ ("all" === d || "songs" === d) && (c && (p.dailySongs = eq("/api/v3/discovery/recommend/songs", {}, u).then((e)=>{
2855
+ var t;
2856
+ return (Array.isArray(null == (t = e.data) ? void 0 : t.dailySongs) ? e.data.dailySongs : []).map(ee).filter((e)=>null !== e);
2857
+ })), p.newSongs = eq("/api/personalized/newsong", {
2858
+ limit: 20
2859
+ }, u).then((e)=>(Array.isArray(e.result) ? e.result : []).map(ee).filter((e)=>null !== e))), ("all" === d || "playlists" === d) && (c && (p.dailyPlaylists = eq("/api/v1/discovery/recommend/resource", {}, u).then((e)=>(Array.isArray(e.recommend) ? e.recommend : []).map(Y).filter((e)=>null !== e))), p.recommendedPlaylists = eq("/api/personalized/playlist", {
2860
+ limit: 30
2861
+ }, u).then((e)=>(Array.isArray(e.result) ? e.result : []).map(Y).filter((e)=>null !== e)));
2862
+ let [f, m, y, g] = yield Promise.allSettled([
2863
+ null != (t = p.dailySongs) ? t : Promise.resolve([]),
2864
+ null != (i = p.dailyPlaylists) ? i : Promise.resolve([]),
2865
+ null != (l = p.recommendedPlaylists) ? l : Promise.resolve([]),
2866
+ null != (a = p.newSongs) ? a : Promise.resolve([])
2867
+ ]), v = [], h = [];
2868
+ if ("fulfilled" === f.status) for (let e of f.value)h.push(e), v.push(en(e));
2869
+ if ("fulfilled" === m.status) for (let e of m.value)v.push(es(e));
2870
+ if ("fulfilled" === y.status) for (let e of y.value)v.push(es(e));
2871
+ if ("fulfilled" === g.status) for (let e of g.value)h.push(e), v.push(en(e));
2872
+ if (!v.length) {
2873
+ let e = [
2874
+ f,
2875
+ m,
2876
+ y,
2877
+ g
2878
+ ].find((e)=>"rejected" === e.status);
2879
+ if ((null == e ? void 0 : e.status) === "rejected") throw e.reason;
2880
+ }
2881
+ let b = ep(v);
2882
+ return e4(h, b), e8(b, e);
2883
+ })();
2884
+ })(), loadCharts = (e)=>tl(function*() {
2885
+ return e0(function*() {
2886
+ let t = ew(e), i = e.category || "all";
2887
+ if ("artists" === i) {
2888
+ var l;
2889
+ let i = h["EA" === e.artistArea || "KR" === e.artistArea || "JP" === e.artistArea ? e.artistArea : "ZH"], r = yield eB("/api/toplist/artist", {
2890
+ type: i,
2891
+ limit: 100,
2892
+ offset: 0,
2893
+ total: !0
2894
+ }, t);
2895
+ return e8(ep((Array.isArray(null == (l = r.list) ? void 0 : l.artists) ? r.list.artists : []).map(X).filter((e)=>null !== e && !!e.id).map((e)=>ec(e))), e);
2896
+ }
2897
+ let r = yield eq("/api/toplist/detail", {}, t);
2898
+ return e8(ep((Array.isArray(r.list) ? r.list : []).filter((e)=>{
2899
+ let t = "string" == typeof e.ToplistType && e.ToplistType.length > 0;
2900
+ return "official" === i ? t : "global" !== i || !t;
2901
+ }).map(Y).filter((e)=>null !== e).map(es)), e);
2902
+ })();
2903
+ })(), loadNewReleases = (e)=>tl(function*() {
2904
+ return e0(function*() {
2905
+ var t;
2906
+ let i = ew(e), l = e.category || "albums", r = "ZH" === (t = e.area) || "EA" === t || "KR" === t || "JP" === t ? t : "ALL", a = e6(e);
2907
+ if ("songs" === l) {
2908
+ let e = y[r], t = yield eq("/api/v1/discovery/new/songs", {
2909
+ areaId: e,
2910
+ total: !0
2911
+ }, i, {
2912
+ method: "POST"
2913
+ }), l = (Array.isArray(t.data) ? t.data : []).map(ee).filter((e)=>null !== e), n = ep(l.map(en));
2914
+ return e4(l, n), n.slice(a, a + 30);
2915
+ }
2916
+ let n = yield eq("/api/album/new", {
2917
+ area: r,
2918
+ limit: 30,
2919
+ offset: a
2920
+ }, i);
2921
+ return ep((Array.isArray(n.albums) ? n.albums : []).map(Q).filter((e)=>null !== e).map(eo));
2922
+ })();
2923
+ })(), loadGenres = (e)=>tl(function*() {
2924
+ return e0(function*() {
2925
+ let t = ew(e), i = e5((e.genreId || "").trim(), U);
2926
+ if (!i) {
2927
+ let i = e.source || "all";
2928
+ if ("styles" === i) {
2929
+ let i = yield eB("/api/tag/list/get", {}, t);
2930
+ return e8((Array.isArray(i.data) ? i.data : []).map(el).filter((e)=>null !== e).map((e)=>e1({
2931
+ id: `style:${e.tagId}`,
2932
+ type: "url",
2933
+ mediaType: "genre",
2934
+ link: T(`style:${e.tagId}`),
2935
+ title: e.tagName,
2936
+ subtitle: e.enName || Widget.i18n("曲风馆"),
2937
+ genreTitle: e.tagName
2938
+ }, e.imageUrl ? {
2939
+ posterPath: e.imageUrl,
2940
+ coverUrl: e.imageUrl
2941
+ } : {})), e);
2942
+ }
2943
+ return "highquality" === i ? e8(k.map((e)=>({
2944
+ id: `hq:${e.id}`,
2945
+ type: "url",
2946
+ mediaType: "genre",
2947
+ link: T(`hq:${e.id}`),
2948
+ title: Widget.i18n(e.title),
2949
+ subtitle: `${Widget.i18n("精品歌单")} · ${Widget.i18n(e.subtitle)}`,
2950
+ genreTitle: Widget.i18n(e.title)
2951
+ })), e) : e8(k.map((e)=>({
2952
+ id: e.id,
2953
+ type: "url",
2954
+ mediaType: "genre",
2955
+ link: T(e.id),
2956
+ title: Widget.i18n(e.title),
2957
+ subtitle: Widget.i18n(e.subtitle),
2958
+ genreTitle: Widget.i18n(e.title)
2959
+ })), e);
2960
+ }
2961
+ let l = e6(e), r = e.section || "albums";
2962
+ if (i.startsWith("style:") && $(i.slice(6))) {
2963
+ var a, n, o, s;
2964
+ let e = i.slice(6);
2965
+ if ("songs" === r) {
2966
+ let i = yield eB("/api/style-tag/home/song", {
2967
+ tagId: e,
2968
+ cursor: l,
2969
+ size: 30,
2970
+ sort: 0
2971
+ }, t), r = (Array.isArray(null == (a = i.data) ? void 0 : a.songs) ? i.data.songs : []).map(ee).filter((e)=>null !== e), n = ep(r.map(en));
2972
+ return e4(r, n), n;
2973
+ }
2974
+ if ("artists" === r) {
2975
+ let i = yield eB("/api/style-tag/home/artist", {
2976
+ tagId: e,
2977
+ cursor: l,
2978
+ size: 30,
2979
+ sort: 0
2980
+ }, t);
2981
+ return ep((Array.isArray(null == (n = i.data) ? void 0 : n.artists) ? i.data.artists : []).map(X).filter((e)=>null !== e && !!e.id).map((e)=>ec(e)));
2982
+ }
2983
+ let [u, d] = yield Promise.allSettled([
2984
+ eB("/api/style-tag/home/album", {
2985
+ tagId: e,
2986
+ cursor: l,
2987
+ size: 15,
2988
+ sort: 0
2989
+ }, t),
2990
+ eB("/api/style-tag/home/playlist", {
2991
+ tagId: e,
2992
+ cursor: l,
2993
+ size: 15,
2994
+ sort: 0
2995
+ }, t)
2996
+ ]), c = [];
2997
+ if ("fulfilled" === u.status) for (let e of (Array.isArray(null == (o = u.value.data) ? void 0 : o.albums) ? u.value.data.albums : []).map(Q).filter((e)=>null !== e))c.push(eo(e));
2998
+ if ("fulfilled" === d.status) for (let e of (Array.isArray(null == (s = d.value.data) ? void 0 : s.playlist) ? d.value.data.playlist : []).map(Y).filter((e)=>null !== e))c.push(es(e));
2999
+ if (!c.length && "rejected" === u.status) throw u.reason;
3000
+ return ep(c);
3001
+ }
3002
+ if (i.startsWith("hq:")) {
3003
+ let l = i.slice(3) || "全部", a = yield eB("/api/playlist/highquality/list", {
3004
+ cat: l,
3005
+ limit: 60,
3006
+ lasttime: 0,
3007
+ total: !0
3008
+ }, t), n = (Array.isArray(a.playlists) ? a.playlists : []).map(Y).filter((e)=>null !== e);
3009
+ if ("songs" === r || "artists" === r) {
3010
+ let i = n[0];
3011
+ if (!i) return [];
3012
+ let { tracks: l } = yield e9(i.id, t, 60);
3013
+ if ("artists" === r) return e8(ep(l.flatMap((e)=>e.artists).filter((e)=>e.id).map((e)=>ec(e))), e);
3014
+ let a = ep(l.map(en));
3015
+ return e4(l, a), e8(a, e);
3016
+ }
3017
+ return e8(ep(n.map(es)), e);
3018
+ }
3019
+ let u = yield eq("/api/playlist/list", {
3020
+ cat: i,
3021
+ order: "hot",
3022
+ limit: 30,
3023
+ offset: l,
3024
+ total: !0
3025
+ }, t), d = (Array.isArray(u.playlists) ? u.playlists : []).map(Y).filter((e)=>null !== e);
3026
+ if ("songs" === r || "artists" === r) {
3027
+ let e = d[0];
3028
+ if (!e) return [];
3029
+ let { tracks: i } = yield e9(e.id, t, 60);
3030
+ if ("artists" === r) return ep(i.flatMap((e)=>e.artists).filter((e)=>e.id).map((e)=>ec(e)));
3031
+ let l = ep(i.map(en));
3032
+ return e4(i, l), l;
3033
+ }
3034
+ return ep(d.map(es));
3035
+ })();
3036
+ })(), loadRadios = (e)=>tl(function*() {
3037
+ return e0(function*() {
3038
+ let t = ew(e), i = e5((e.radioId || "").trim(), w);
3039
+ if (!i) {
3040
+ let i = [
3041
+ {
3042
+ id: "fm:DEFAULT",
3043
+ type: "url",
3044
+ mediaType: "radio",
3045
+ link: j("fm:DEFAULT"),
3046
+ title: Widget.i18n("私人漫游 · 默认"),
3047
+ subtitle: Widget.i18n("根据你的听歌口味持续推荐(需配置 Cookie)")
3048
+ },
3049
+ {
3050
+ id: "fm:FAMILIAR",
3051
+ type: "url",
3052
+ mediaType: "radio",
3053
+ link: j("fm:FAMILIAR"),
3054
+ title: Widget.i18n("私人漫游 · 熟悉"),
3055
+ subtitle: Widget.i18n("重温你熟悉和喜欢的旋律(需配置 Cookie)")
3056
+ },
3057
+ {
3058
+ id: "fm:EXPLORE",
3059
+ type: "url",
3060
+ mediaType: "radio",
3061
+ link: j("fm:EXPLORE"),
3062
+ title: Widget.i18n("私人漫游 · 探索"),
3063
+ subtitle: Widget.i18n("发现新鲜小众好音乐(需配置 Cookie)")
3064
+ },
3065
+ {
3066
+ id: "fm:SCENE_EXERCISE",
3067
+ type: "url",
3068
+ mediaType: "radio",
3069
+ link: j("fm:SCENE_EXERCISE"),
3070
+ title: Widget.i18n("场景漫游 · 运动"),
3071
+ subtitle: Widget.i18n("高燃节奏伴你运动(需配置 Cookie)")
3072
+ },
3073
+ {
3074
+ id: "fm:SCENE_FOCUS",
3075
+ type: "url",
3076
+ mediaType: "radio",
3077
+ link: j("fm:SCENE_FOCUS"),
3078
+ title: Widget.i18n("场景漫游 · 专注"),
3079
+ subtitle: Widget.i18n("沉浸工作与学习氛围(需配置 Cookie)")
3080
+ },
3081
+ {
3082
+ id: "fm:SCENE_NIGHT",
3083
+ type: "url",
3084
+ mediaType: "radio",
3085
+ link: j("fm:SCENE_NIGHT"),
3086
+ title: Widget.i18n("场景漫游 · 深夜情绪"),
3087
+ subtitle: Widget.i18n("治愈深夜情绪的私藏歌单(需配置 Cookie)")
3088
+ },
3089
+ {
3090
+ id: "heart",
3091
+ type: "url",
3092
+ mediaType: "radio",
3093
+ link: j("heart"),
3094
+ title: Widget.i18n("心动模式"),
3095
+ subtitle: Widget.i18n("以我喜欢的音乐为种子智能推荐(需配置 Cookie)")
3096
+ },
3097
+ {
3098
+ id: "sport",
3099
+ type: "url",
3100
+ mediaType: "radio",
3101
+ link: j("sport"),
3102
+ title: Widget.i18n("跑步漫游"),
3103
+ subtitle: Widget.i18n("按 160 BPM 步频推荐的动感节奏")
3104
+ },
3105
+ {
3106
+ id: "radar",
3107
+ type: "url",
3108
+ mediaType: "radio",
3109
+ link: j("radar"),
3110
+ title: Widget.i18n("私人雷达"),
3111
+ subtitle: Widget.i18n("每日更新的个性化精选电台")
3112
+ }
3113
+ ];
3114
+ try {
3115
+ let e = yield eq("/api/toplist/detail", {}, t);
3116
+ for (let t of (Array.isArray(e.list) ? e.list : []).map(Y).filter((e)=>null !== e).slice(0, 8))i.push(e1({
3117
+ id: `pl:${t.id}`,
3118
+ type: "url",
3119
+ mediaType: "radio",
3120
+ link: j(`pl:${t.id}`),
3121
+ title: t.name
3122
+ }, t.owner ? {
3123
+ subtitle: t.owner
3124
+ } : {}, t.imageUrl ? {
3125
+ posterPath: t.imageUrl,
3126
+ coverUrl: t.imageUrl
3127
+ } : {}));
3128
+ } catch (e) {}
3129
+ return e8(i, e);
3130
+ }
3131
+ let l = [], r = tt[i];
3132
+ if (r) {
3133
+ let [e, i] = yield Promise.allSettled([
3134
+ te(r.mode, r.subMode, t),
3135
+ te(r.mode, r.subMode, t)
3136
+ ]);
3137
+ if ("fulfilled" === e.status && l.push(...e.value), "fulfilled" === i.status && l.push(...i.value), !l.length && "rejected" === e.status) throw e.reason;
3138
+ } else if ("heart" === i) l = yield e0(function*() {
3139
+ let { uid: e } = yield ez(t), i = yield eq("/api/user/playlist", {
3140
+ uid: e,
3141
+ limit: 30,
3142
+ offset: 0
3143
+ }, t), l = (Array.isArray(i.playlist) ? i.playlist : []).find((e)=>5 === Number(e.specialType)), r = (null == l ? void 0 : l.id) ? String(l.id) : "";
3144
+ if (!r) throw Error(Widget.i18n("未找到「我喜欢的音乐」歌单,无法开启心动模式"));
3145
+ let { tracks: a } = yield e9(r, t, 50), n = a[Math.floor(Math.random() * a.length)];
3146
+ if (!n) throw Error(Widget.i18n("「我喜欢的音乐」为空,请先收藏几首歌曲再使用心动模式"));
3147
+ let o = yield eB("/api/playmode/intelligence/list", {
3148
+ songId: n.id,
3149
+ startMusicId: n.id,
3150
+ playlistId: r,
3151
+ type: "fromPlayOne",
3152
+ count: 30
3153
+ }, t), s = (Array.isArray(o.data) ? o.data : []).map((e)=>ee(null == e ? void 0 : e.songInfo)).filter((e)=>null !== e);
3154
+ return s.length ? s : a;
3155
+ })();
3156
+ else if ("sport" === i) l = yield e0(function*() {
3157
+ var e;
3158
+ let i = yield Promise.allSettled([
3159
+ eB("/api/radio/sport/get", {
3160
+ bpm: 160
3161
+ }, t),
3162
+ eB("/api/radio/sport/get", {
3163
+ bpm: 160
3164
+ }, t),
3165
+ eB("/api/radio/sport/get", {
3166
+ bpm: 160
3167
+ }, t)
3168
+ ]), l = [];
3169
+ for (let e of i)if ("fulfilled" === e.status && Array.isArray(e.value.data)) for (let t of e.value.data){
3170
+ let e = ee(t);
3171
+ e && l.push(e);
3172
+ }
3173
+ if (!l.length && (null == (e = i[0]) ? void 0 : e.status) === "rejected") throw i[0].reason;
3174
+ return l;
3175
+ })();
3176
+ else if ("radar" === i) l = (yield e9("3136952023", t, 60)).tracks;
3177
+ else if (i.startsWith("pl:") && $(i.slice(3))) l = (yield e9(i.slice(3), t, 60)).tracks;
3178
+ else if (i.startsWith("dj:") && $(i.slice(3))) {
3179
+ let { programs: l } = yield e7(i.slice(3), t, 60), r = ep(l.map(ed));
3180
+ return eT(r), e8(r, e);
3181
+ } else $(i) && (l = (yield e9(i, t, 60)).tracks);
3182
+ let a = e.section || "songs";
3183
+ if ("artists" === a) return e8(ep(l.flatMap((e)=>e.artists).filter((e)=>e.id).map((e)=>ec(e))), e);
3184
+ if ("albums" === a) return e8(ep(l.flatMap((e)=>{
3185
+ var t;
3186
+ return (null == (t = e.album) ? void 0 : t.id) ? [
3187
+ eo({
3188
+ id: e.album.id,
3189
+ name: e.album.name,
3190
+ imageUrl: e.album.imageUrl || e.imageUrl,
3191
+ artists: e.artists
3192
+ })
3193
+ ] : [];
3194
+ })), e);
3195
+ let n = ep(l.map(en));
3196
+ return e4(l, n), e8(n, e);
3197
+ })();
3198
+ })(), loadPodcasts = (e)=>tl(function*() {
3199
+ return e0(function*() {
3200
+ let t = ew(e), i = e.category || "recommend", l = e6(e);
3201
+ if ("programs" === i) {
3202
+ let e = yield eB("/api/program/toplist/v1", {
3203
+ limit: 30,
3204
+ offset: l
3205
+ }, t), i = ep((Array.isArray(e.toplist) ? e.toplist : []).map((e)=>ei(null == e ? void 0 : e.program)).filter((e)=>null !== e).map(ed));
3206
+ return eT(i), i;
3207
+ }
3208
+ if ("hot" === i) {
3209
+ let e = yield eB("/api/djradio/hot/v1", {
3210
+ limit: 30,
3211
+ offset: l
3212
+ }, t);
3213
+ return ep((Array.isArray(e.djRadios) ? e.djRadios : []).map(et).filter((e)=>null !== e).map(eu));
3214
+ }
3215
+ if ("toplist_hot" === i || "toplist_new" === i) {
3216
+ let e = yield eB("/api/djradio/toplist", {
3217
+ type: +("toplist_hot" === i),
3218
+ limit: 30,
3219
+ offset: l
3220
+ }, t);
3221
+ return ep((Array.isArray(e.toplist) ? e.toplist : []).map(et).filter((e)=>null !== e).map(eu));
3222
+ }
3223
+ let r = yield eB("/api/djradio/recommend/v1", {}, t);
3224
+ return e8(ep((Array.isArray(r.djRadios) ? r.djRadios : []).map(et).filter((e)=>null !== e).map(eu)), e);
3225
+ })();
3226
+ })(), loadArtists = (e)=>tl(function*() {
3227
+ return e0(function*() {
3228
+ let t = ew(e), i = (e.peopleId || "").trim(), l = e6(e);
3229
+ if (!i) {
3230
+ var r, a;
3231
+ let i = "ZH" === (r = e.area) || "EA" === r || "JP" === r || "KR" === r || "OTHER" === r ? r : "ALL", n = "MALE" === (a = e.artistType) || "FEMALE" === a || "BAND" === a ? a : "ALL";
3232
+ if ("ALL" !== i || "ALL" !== n) {
3233
+ let e = yield eB("/api/v1/artist/list", {
3234
+ area: g[i],
3235
+ type: v[n],
3236
+ limit: 30,
3237
+ offset: l,
3238
+ total: !0
3239
+ }, t);
3240
+ return ep((Array.isArray(e.artists) ? e.artists : []).map(X).filter((e)=>null !== e && !!e.id).map((e)=>ec(e)));
3241
+ }
3242
+ let o = yield eq("/api/artist/top", {
3243
+ limit: 30,
3244
+ offset: l
3245
+ }, t);
3246
+ return ep((Array.isArray(o.artists) ? o.artists : []).map(X).filter((e)=>null !== e && !!e.id).map((e)=>ec(e)));
3247
+ }
3248
+ if (!$(i)) return [];
3249
+ if ("profile" === e.section) {
3250
+ let [e, l] = yield Promise.allSettled([
3251
+ eq(`/api/v1/artist/${i}`, {}, t),
3252
+ eB("/api/artist/introduction", {
3253
+ id: i
3254
+ }, t, {
3255
+ timeout: 6
3256
+ })
3257
+ ]);
3258
+ if ("rejected" === e.status) throw e.reason;
3259
+ let r = X(e.value.artist);
3260
+ if (!r) return [];
3261
+ let a = e.value.artist || {}, n = ("fulfilled" === l.status && "string" == typeof l.value.briefDesc ? l.value.briefDesc.trim() : "") || ("string" == typeof a.briefDesc ? a.briefDesc.trim() : ""), o = Number(a.musicSize) || 0, s = Number(a.albumSize) || 0, u = [
3262
+ o > 0 ? `${o} ${Widget.i18n("首歌曲")}` : "",
3263
+ s > 0 ? `${s} ${Widget.i18n("张专辑")}` : ""
3264
+ ].filter(Boolean).join(" · "), d = [];
3265
+ if ("fulfilled" === l.status && Array.isArray(l.value.introduction)) for (let e of l.value.introduction.slice(0, 3)){
3266
+ let t = "string" == typeof (null == e ? void 0 : e.ti) ? e.ti.trim() : "", i = "string" == typeof (null == e ? void 0 : e.txt) ? e.txt.trim() : "";
3267
+ t && i && d.push(`${t}\n${i}`);
3268
+ }
3269
+ return [
3270
+ ec(r, [
3271
+ u,
3272
+ n,
3273
+ ...d
3274
+ ].filter(Boolean).join("\n\n") || void 0)
3275
+ ];
3276
+ }
3277
+ if ("albums" === e.section) {
3278
+ let e = yield eq(`/api/artist/albums/${i}`, {
3279
+ limit: 30,
3280
+ offset: l
3281
+ }, t);
3282
+ return ep((Array.isArray(e.hotAlbums) ? e.hotAlbums : []).map(Q).filter((e)=>null !== e).map(eo));
3283
+ }
3284
+ if ("artists" === e.section) try {
3285
+ let l = yield eq("/api/discovery/simiArtist", {
3286
+ artistid: i
3287
+ }, t, {
3288
+ method: "POST"
3289
+ }), r = (Array.isArray(l.artists) ? l.artists : []).map(X).filter((e)=>null !== e && !!e.id && e.id !== i);
3290
+ return e8(ep(r.map((e)=>ec(e))), e);
3291
+ } catch (e) {
3292
+ return [];
3293
+ }
3294
+ if (0 === l) {
3295
+ let e = yield eq(`/api/v1/artist/${i}`, {}, t), l = (Array.isArray(e.hotSongs) ? e.hotSongs : []).map(ee).filter((e)=>null !== e);
3296
+ if (l.length) {
3297
+ let e = ep(l.map(en));
3298
+ return e4(l, e), e.slice(0, 30);
3299
+ }
3300
+ }
3301
+ let n = yield eq("/api/v1/artist/songs", {
3302
+ id: i,
3303
+ order: "hot",
3304
+ limit: 30,
3305
+ offset: l
3306
+ }, t, {
3307
+ method: "POST"
3308
+ }), o = (Array.isArray(n.songs) ? n.songs : []).map(ee).filter((e)=>null !== e), s = ep(o.map(en));
3309
+ return e4(o, s), s;
3310
+ })();
3311
+ })(), loadLibrary = (e)=>tl(function*() {
3312
+ return e0(function*() {
3313
+ var t, i, l, r;
3314
+ let a = ew(e), n = e.tab || "liked", o = e6(e), { uid: s } = yield ez(a);
3315
+ if ("recent_songs" === n) {
3316
+ let t = yield eB("/api/play-record/song/list", {
3317
+ limit: 100
3318
+ }, a), l = (Array.isArray(null == (i = t.data) ? void 0 : i.list) ? t.data.list : []).map((e)=>ee(null == e ? void 0 : e.data)).filter((e)=>null !== e), r = ep(l.map(en));
3319
+ return e4(l, r), e8(r, e);
3320
+ }
3321
+ if ("recent_albums" === n) {
3322
+ let t = yield eB("/api/play-record/album/list", {
3323
+ limit: 100
3324
+ }, a);
3325
+ return e8(ep((Array.isArray(null == (l = t.data) ? void 0 : l.list) ? t.data.list : []).map((e)=>Q(null == e ? void 0 : e.data)).filter((e)=>null !== e).map(eo)), e);
3326
+ }
3327
+ if ("recent_playlists" === n) {
3328
+ let t = yield eB("/api/play-record/playlist/list", {
3329
+ limit: 100
3330
+ }, a);
3331
+ return e8(ep((Array.isArray(null == (r = t.data) ? void 0 : r.list) ? t.data.list : []).map((e)=>Y(null == e ? void 0 : e.data)).filter((e)=>null !== e).map(es)), e);
3332
+ }
3333
+ if ("sub_albums" === n) {
3334
+ let e = yield eB("/api/album/sublist", {
3335
+ limit: 30,
3336
+ offset: o,
3337
+ total: !0
3338
+ }, a);
3339
+ return ep((Array.isArray(e.data) ? e.data : []).map(Q).filter((e)=>null !== e).map(eo));
3340
+ }
3341
+ if ("sub_artists" === n) {
3342
+ let e = yield eB("/api/artist/sublist", {
3343
+ limit: 30,
3344
+ offset: o,
3345
+ total: !0
3346
+ }, a);
3347
+ return ep((Array.isArray(e.data) ? e.data : []).map(X).filter((e)=>null !== e && !!e.id).map((e)=>ec(e)));
3348
+ }
3349
+ if ("sub_podcasts" === n) {
3350
+ let e = yield eB("/api/djradio/get/subed", {
3351
+ limit: 30,
3352
+ offset: o,
3353
+ total: !0
3354
+ }, a);
3355
+ return ep((Array.isArray(e.djRadios) ? e.djRadios : []).map(et).filter((e)=>null !== e).map(eu));
3356
+ }
3357
+ if ("cloud" === n) {
3358
+ let e = yield eB("/api/v1/cloud/get", {
3359
+ limit: 30,
3360
+ offset: o
3361
+ }, a), t = [];
3362
+ for (let i of Array.isArray(e.data) ? e.data : []){
3363
+ let e = ee(i.simpleSong);
3364
+ if (e) {
3365
+ t.push(e);
3366
+ continue;
3367
+ }
3368
+ let l = i.songId ? String(i.songId) : "";
3369
+ $(l) && t.push({
3370
+ id: l,
3371
+ name: i.songName || l,
3372
+ artists: i.artist ? [
3373
+ {
3374
+ id: "",
3375
+ name: i.artist
3376
+ }
3377
+ ] : [],
3378
+ album: i.album ? {
3379
+ id: "",
3380
+ name: i.album
3381
+ } : void 0,
3382
+ duration: 0
3383
+ });
3384
+ }
3385
+ let i = ep(t.map(en));
3386
+ return e4(t, i), i;
3387
+ }
3388
+ if ("recent_week" === n || "recent_all" === n) {
3389
+ let t = +("recent_week" === n), i = yield eq("/api/v1/play/record", {
3390
+ uid: s,
3391
+ type: t
3392
+ }, a, {
3393
+ method: "POST"
3394
+ }), l = 1 === t ? i.weekData : i.allData, r = (Array.isArray(l) ? l : []).map((e)=>ee(null == e ? void 0 : e.song)).filter((e)=>null !== e), o = ep(r.map(en));
3395
+ return e4(r, o), e8(o, e);
3396
+ }
3397
+ let u = yield eq("/api/user/playlist", {
3398
+ uid: s,
3399
+ limit: 30,
3400
+ offset: "playlists" === n ? o : 0
3401
+ }, a), d = Array.isArray(u.playlist) ? u.playlist : [];
3402
+ if ("playlists" === n) return ep(d.map(Y).filter((e)=>null !== e).map(es));
3403
+ let c = null != (t = d.find((e)=>5 === Number(e.specialType))) ? t : d[0], p = (null == c ? void 0 : c.id) ? String(c.id) : "";
3404
+ if (!p) return [];
3405
+ let { tracks: f } = yield e9(p, a, 300), m = ep(f.map(en));
3406
+ return e4(f, m), e8(m, e);
3407
+ })();
3408
+ })(), loadSubtitle = (e)=>tl(function*() {
3409
+ return e0(function*() {
3410
+ var t, i;
3411
+ let l = ew(e), r = function(e) {
3412
+ if (e.link) {
3413
+ let t = E(e.link);
3414
+ if ((null == t ? void 0 : t.kind) === "song") return t.id;
3415
+ }
3416
+ let t = (e.id || "").trim();
3417
+ if ($(t)) return t;
3418
+ let i = E(t);
3419
+ return (null == i ? void 0 : i.kind) === "song" ? i.id : "";
3420
+ }(e);
3421
+ if (!r) {
3422
+ let i = [
3423
+ e.title || e.episodeName || "",
3424
+ e.seriesName || ""
3425
+ ].map((e)=>e.trim()).filter(Boolean).join(" ").trim();
3426
+ if (!i) return [];
3427
+ let a = yield eq("/api/cloudsearch/pc", {
3428
+ s: i,
3429
+ type: b.songs,
3430
+ limit: 1,
3431
+ offset: 0,
3432
+ total: !0
3433
+ }, l, {
3434
+ method: "POST"
3435
+ }), n = Array.isArray(null == (t = a.result) ? void 0 : t.songs) ? ee(a.result.songs[0]) : null;
3436
+ if (!n) return [];
3437
+ r = n.id;
3438
+ }
3439
+ let a = yield (i = r, e$(function*() {
3440
+ return eB("/api/song/lyric", {
3441
+ id: i,
3442
+ tv: -1,
3443
+ lv: -1,
3444
+ rv: -1,
3445
+ kv: -1,
3446
+ _nmclfl: 1
3447
+ }, l, {
3448
+ timeout: 10
3449
+ });
3450
+ })());
3451
+ return function(e, t) {
3452
+ var i, l, r;
3453
+ let a = eZ(null == (i = t.lrc) ? void 0 : i.lyric), n = eZ(null == (l = t.tlyric) ? void 0 : l.lyric), o = eZ(null == (r = t.romalrc) ? void 0 : r.lyric), s = [];
3454
+ if (a && n) {
3455
+ let t = function(e, t) {
3456
+ let i = eX(e), l = eX(t);
3457
+ if (!i.lines.length || !l.lines.length) return "";
3458
+ let r = [
3459
+ ...i.metadata
3460
+ ], a = 0;
3461
+ for (let e of i.lines){
3462
+ for(r.push(`${e.timestamp}${e.text}`); a < l.lines.length && l.lines[a].timeMs < e.timeMs - 250;)a++;
3463
+ let t = "", i = 251, n = a;
3464
+ for(; n < l.lines.length && l.lines[n].timeMs <= e.timeMs + 250;){
3465
+ let r = Math.abs(l.lines[n].timeMs - e.timeMs);
3466
+ r < i && (i = r, t = l.lines[n].text), n++;
3467
+ }
3468
+ t && t !== e.text && r.push(`${e.timestamp}${t}`);
3469
+ }
3470
+ return r.join("\n");
3471
+ }(a, n);
3472
+ t && s.push({
3473
+ id: `ncm:lyric:${e}:bilingual`,
3474
+ title: Widget.i18n("双语歌词(原文 + 译文)"),
3475
+ lang: "zh-CN",
3476
+ url: eQ(t)
3477
+ });
3478
+ }
3479
+ return a && s.push({
3480
+ id: `ncm:lyric:${e}:orig`,
3481
+ title: Widget.i18n("原文歌词"),
3482
+ lang: n ? "und" : "zh-CN",
3483
+ url: eQ(a)
3484
+ }), n && s.push({
3485
+ id: `ncm:lyric:${e}:tlyric`,
3486
+ title: Widget.i18n("中文翻译歌词"),
3487
+ lang: "zh-CN",
3488
+ url: eQ(n)
3489
+ }), o && s.push({
3490
+ id: `ncm:lyric:${e}:romalrc`,
3491
+ title: Widget.i18n("罗马音歌词"),
3492
+ lang: "und",
3493
+ url: eQ(o)
3494
+ }), s;
3495
+ }(r, a);
3496
+ })();
3497
+ })(), search = (e)=>tl(function*() {
3498
+ return e0(function*() {
3499
+ var t, i, l, r, a, n, o, s, u, d, c;
3500
+ let p = ew(e), f = (e.keyword || "").trim();
3501
+ if (!f) return e0(function*() {
3502
+ try {
3503
+ let t = yield eB("/api/hotsearchlist/get", {}, p, {
3504
+ timeout: 10
3505
+ }), i = Array.isArray(t.data) ? t.data : [], l = [];
3506
+ return i.forEach((e, t)=>{
3507
+ let i = "string" == typeof (null == e ? void 0 : e.searchWord) ? e.searchWord.trim() : "";
3508
+ if (!i) return;
3509
+ let r = t + 1, a = "string" == typeof e.content ? e.content.trim() : "", n = Number(e.score) || 0, o = a || (n > 0 ? `${Widget.i18n("热搜")} · ${n}` : Widget.i18n("网易云热搜榜")), s = R("string" == typeof e.iconUrl ? e.iconUrl : void 0);
3510
+ l.push(e1({
3511
+ id: `hot:${r}`,
3512
+ type: "url",
3513
+ mediaType: "playlist",
3514
+ link: M(i),
3515
+ title: `${r}. ${i}`,
3516
+ subtitle: o
3517
+ }, s ? {
3518
+ posterPath: s,
3519
+ coverUrl: s
3520
+ } : {}));
3521
+ }), e8(l, e);
3522
+ } catch (e) {
3523
+ return [];
3524
+ }
3525
+ })();
3526
+ let m = e.kind || "all", y = e3(e.page), g = e6(e);
3527
+ if ("voices" === m) {
3528
+ let e = yield eB("/api/search/voice/get", {
3529
+ keyword: f,
3530
+ scene: "normal",
3531
+ limit: 30,
3532
+ offset: g
3533
+ }, p), t = ep((Array.isArray(null == (i = e.data) ? void 0 : i.resources) ? e.data.resources : []).map((e)=>ei(null == e ? void 0 : e.baseInfo)).filter((e)=>null !== e).map(ed));
3534
+ return eT(t), t;
3535
+ }
3536
+ if ("all" === m) {
3537
+ if (1 === y && 0 === g) {
3538
+ let [e, t, i, l] = yield Promise.allSettled([
3539
+ eq("/api/cloudsearch/pc", {
3540
+ s: f,
3541
+ type: b.songs,
3542
+ limit: 20,
3543
+ offset: 0,
3544
+ total: !0
3545
+ }, p, {
3546
+ method: "POST"
3547
+ }),
3548
+ eq("/api/cloudsearch/pc", {
3549
+ s: f,
3550
+ type: b.artists,
3551
+ limit: 4,
3552
+ offset: 0,
3553
+ total: !0
3554
+ }, p, {
3555
+ method: "POST"
3556
+ }),
3557
+ eq("/api/cloudsearch/pc", {
3558
+ s: f,
3559
+ type: b.albums,
3560
+ limit: 4,
3561
+ offset: 0,
3562
+ total: !0
3563
+ }, p, {
3564
+ method: "POST"
3565
+ }),
3566
+ eq("/api/cloudsearch/pc", {
3567
+ s: f,
3568
+ type: b.playlists,
3569
+ limit: 4,
3570
+ offset: 0,
3571
+ total: !0
3572
+ }, p, {
3573
+ method: "POST"
3574
+ })
3575
+ ]), s = [], u = [];
3576
+ if ("fulfilled" === t.status) for (let e of (Array.isArray(null == (r = t.value.result) ? void 0 : r.artists) ? t.value.result.artists : []).map(X).filter((e)=>null !== e && !!e.id))s.push(ec(e));
3577
+ if ("fulfilled" === i.status) for (let e of (Array.isArray(null == (a = i.value.result) ? void 0 : a.albums) ? i.value.result.albums : []).map(Q).filter((e)=>null !== e))s.push(eo(e));
3578
+ if ("fulfilled" === e.status) for (let t of (Array.isArray(null == (n = e.value.result) ? void 0 : n.songs) ? e.value.result.songs : []).map(ee).filter((e)=>null !== e))u.push(t), s.push(en(t));
3579
+ if ("fulfilled" === l.status) for (let e of (Array.isArray(null == (o = l.value.result) ? void 0 : o.playlists) ? l.value.result.playlists : []).map(Y).filter((e)=>null !== e))s.push(es(e));
3580
+ if (!s.length && "rejected" === e.status) throw e.reason;
3581
+ let d = ep(s);
3582
+ return e4(u, d), d;
3583
+ }
3584
+ let e = Math.max(20, (y - 1) * 20), t = yield eq("/api/cloudsearch/pc", {
3585
+ s: f,
3586
+ type: b.songs,
3587
+ limit: 20,
3588
+ offset: e,
3589
+ total: !0
3590
+ }, p, {
3591
+ method: "POST"
3592
+ }), i = (Array.isArray(null == (l = t.result) ? void 0 : l.songs) ? t.result.songs : []).map(ee).filter((e)=>null !== e), s = ep(i.map(en));
3593
+ return e4(i, s), s;
3594
+ }
3595
+ let v = b[m], h = yield eq("/api/cloudsearch/pc", {
3596
+ s: f,
3597
+ type: v,
3598
+ limit: 30,
3599
+ offset: g,
3600
+ total: !0
3601
+ }, p, {
3602
+ method: "POST"
3603
+ });
3604
+ if ("songs" === m || "lyrics" === m) {
3605
+ let e = Array.isArray(null == (s = h.result) ? void 0 : s.songs) ? h.result.songs : [], t = [], i = [];
3606
+ for (let l of e){
3607
+ let e = ee(l);
3608
+ if (!e) continue;
3609
+ t.push(e);
3610
+ let r = en(e);
3611
+ if ("lyrics" === m && Array.isArray(null == l ? void 0 : l.lyrics) && l.lyrics.length) {
3612
+ let e = l.lyrics.slice(0, 3).map((e)=>"string" == typeof e ? e.replace(/<[^>]+>/g, "").trim() : "").filter(Boolean).join("\n");
3613
+ e && (r.description = e);
3614
+ }
3615
+ i.push(r);
3616
+ }
3617
+ let l = ep(i);
3618
+ return e4(t, l), l;
3619
+ }
3620
+ return "albums" === m ? ep((Array.isArray(null == (u = h.result) ? void 0 : u.albums) ? h.result.albums : []).map(Q).filter((e)=>null !== e).map(eo)) : "artists" === m ? ep((Array.isArray(null == (d = h.result) ? void 0 : d.artists) ? h.result.artists : []).map(X).filter((e)=>null !== e && !!e.id).map((e)=>ec(e))) : "dj" === m ? ep((Array.isArray(null == (c = h.result) ? void 0 : c.djRadios) ? h.result.djRadios : []).map(et).filter((e)=>null !== e).map(eu)) : ep((Array.isArray(null == (t = h.result) ? void 0 : t.playlists) ? h.result.playlists : []).map(Y).filter((e)=>null !== e).map(es));
3621
+ })();
3622
+ })(), loadDetail = (e)=>tl(function*() {
3623
+ return e0(function*() {
3624
+ var t, i, l, a, o;
3625
+ let u = E(e);
3626
+ if (!u) throw Error(`${Widget.i18n("无法识别的详情链接")}: ${e}`);
3627
+ let d = eU();
3628
+ return "song" === u.kind ? (t = u.id, e0(function*() {
3629
+ var e, i, l, a, o;
3630
+ let u, c = (u = eA(eb)) && "object" == typeof u && null != (l = u[t]) ? l : null, [p, y, g, v] = yield Promise.all([
3631
+ e$(function*() {
3632
+ var e, i, l;
3633
+ let r = function(e, t, i, l = Date.now()) {
3634
+ let r = eA(eh);
3635
+ if (!r || "object" != typeof r) return null;
3636
+ let a = r[`${e}:${t}:${i ? "1" : "0"}`];
3637
+ return !a || "string" != typeof a.url || "number" != typeof a.cachedAt || l - a.cachedAt > 900000 ? null : a;
3638
+ }(t, d.quality, d.allowTrial);
3639
+ if (r) return {
3640
+ url: r.url,
3641
+ format: r.format,
3642
+ level: r.level,
3643
+ bitrate: r.bitrate,
3644
+ isTrial: r.isTrial,
3645
+ headers: {
3646
+ "User-Agent": s,
3647
+ Referer: `${n}/`
3648
+ }
3649
+ };
3650
+ let a = "vivid" === d.quality ? "mp3" : m(d.quality) ? "flac" : "mp3", o = "vivid" === d.quality ? "android" : "pc", u = {
3651
+ ids: `[${t}]`,
3652
+ level: d.quality,
3653
+ encodeType: a
3654
+ };
3655
+ "sky" === d.quality && (u.immerseType = "c51");
3656
+ let c = [];
3657
+ try {
3658
+ let e = yield eF(()=>eB("/api/song/enhance/player/url/v1", u, d, {
3659
+ clientProfile: o
3660
+ }), 3);
3661
+ c = Array.isArray(e.data) ? e.data : [];
3662
+ } catch (i) {
3663
+ if (!eH(i)) throw i;
3664
+ let e = yield eF(()=>eB("/api/song/enhance/player/url", {
3665
+ ids: `[${t}]`,
3666
+ br: f[d.quality] || 320000
3667
+ }, d), 2);
3668
+ c = Array.isArray(e.data) ? e.data : [];
3669
+ }
3670
+ let p = null != (l = (i = c).find((e)=>String(e.id) === t)) ? l : i[0], y = N(null != (e = null == p ? void 0 : p.url) ? e : void 0), g = (null == p ? void 0 : p.freeTrialInfo) !== null && (null == p ? void 0 : p.freeTrialInfo) !== void 0;
3671
+ if (!p || !y || void 0 !== p.code && 200 !== p.code) throw Error(Widget.i18n("当前歌曲暂无可用播放源,可能需要登录网易云黑胶 VIP 账号或受地区版权限制"));
3672
+ if (g && !d.allowTrial) throw Error(Widget.i18n("当前歌曲仅返回 30 秒 VIP 试听片段;请配置黑胶 VIP Cookie,或在模块设置中开启「允许播放 30 秒试听」"));
3673
+ let v = (p.type || (p.level && m(p.level) ? "flac" : "mp3")).toLowerCase(), h = eL.has(v) ? v : "mp3", b = "string" == typeof p.level && p.level ? p.level : d.quality, k = "number" == typeof p.br && Number.isFinite(p.br) ? p.br : 0;
3674
+ return !function(e, t, i, l, r = Date.now()) {
3675
+ var a, n;
3676
+ let o = eA(eh), s = o && "object" == typeof o ? ef({}, o) : {}, u = `${e}:${t}:${i ? "1" : "0"}`;
3677
+ delete s[u], s[u] = (a = ef({}, l), n = n = {
3678
+ cachedAt: r
3679
+ }, Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(n)) : (function(e) {
3680
+ var t = Object.keys(e);
3681
+ if (Object.getOwnPropertySymbols) {
3682
+ var i = Object.getOwnPropertySymbols(e);
3683
+ t.push.apply(t, i);
3684
+ }
3685
+ return t;
3686
+ })(Object(n)).forEach(function(e) {
3687
+ Object.defineProperty(a, e, Object.getOwnPropertyDescriptor(n, e));
3688
+ }), a);
3689
+ let d = Object.keys(s);
3690
+ if (d.length > 50) for (let e of d.slice(0, d.length - 50))delete s[e];
3691
+ eP(eh, s);
3692
+ }(t, d.quality, d.allowTrial, {
3693
+ url: y,
3694
+ format: h,
3695
+ level: b,
3696
+ bitrate: k,
3697
+ isTrial: g
3698
+ }), {
3699
+ url: y,
3700
+ format: h,
3701
+ level: b,
3702
+ bitrate: k,
3703
+ isTrial: g,
3704
+ headers: {
3705
+ "User-Agent": s,
3706
+ Referer: `${n}/`
3707
+ }
3708
+ };
3709
+ })(),
3710
+ c ? Promise.resolve(null) : eJ([
3711
+ t
3712
+ ], d).then((e)=>{
3713
+ var t;
3714
+ return null != (t = e[0]) ? t : null;
3715
+ }).catch(()=>null),
3716
+ e0(function*() {
3717
+ try {
3718
+ let e = yield eB("/api/v1/discovery/simiSong", {
3719
+ songid: t,
3720
+ limit: 10,
3721
+ offset: 0
3722
+ }, d, {
3723
+ timeout: 6
3724
+ }), i = (Array.isArray(e.songs) ? e.songs : []).map(ee).filter((e)=>null !== e && e.id !== t), l = ep(i.map(en));
3725
+ return e4(i, l), l;
3726
+ } catch (e) {
3727
+ return [];
3728
+ }
3729
+ })(),
3730
+ e$(function*() {
3731
+ var e;
3732
+ if (r(d.cookie).hasMusicU) return N(null == (e = (yield eB("/api/songplay/dynamic-cover", {
3733
+ songId: t
3734
+ }, d, {
3735
+ timeout: 6
3736
+ })).data) ? void 0 : e.videoPlayUrl);
3737
+ })().catch(()=>void 0)
3738
+ ]);
3739
+ if (!c && y) {
3740
+ let e = en(y);
3741
+ e4([
3742
+ y
3743
+ ], [
3744
+ e
3745
+ ]), c = {
3746
+ id: t,
3747
+ title: e.title,
3748
+ subtitle: e.subtitle,
3749
+ posterPath: e.posterPath,
3750
+ coverUrl: e.coverUrl,
3751
+ duration: e.duration,
3752
+ durationText: e.durationText,
3753
+ peoples: e.peoples,
3754
+ mvId: y.mvId,
3755
+ albumId: null == (i = y.album) ? void 0 : i.id
3756
+ };
3757
+ }
3758
+ let h = (null == c ? void 0 : c.mvId) || (null == y ? void 0 : y.mvId) || 0, b = h > 0 ? yield e$(function*() {
3759
+ var e;
3760
+ if (Number.isFinite(h) && !(h <= 0)) return N(null == (e = (yield eB("/api/song/enhance/play/mv/url", {
3761
+ id: Math.floor(h),
3762
+ r: 1080
3763
+ }, d, {
3764
+ timeout: 6
3765
+ })).data) ? void 0 : e.url);
3766
+ })().catch(()=>void 0) : void 0, k = (null == c ? void 0 : c.duration) || 0, A = k > 0 ? Z(k) : null == c ? void 0 : c.durationText, P = (null == c ? void 0 : c.posterPath) || (null == c ? void 0 : c.coverUrl), S = function(e, t) {
3767
+ if ("system" === e || "app" === e) return e;
3768
+ let i = t.toLowerCase();
3769
+ if ("flac" === i || "alac" === i) return "app";
3770
+ }(d.playerType, p.format), C = [
3771
+ (null == c ? void 0 : c.subtitle) || "",
3772
+ p.isTrial ? Widget.i18n("试听") : ""
3773
+ ].filter(Boolean);
3774
+ return d.reportHistory && r(d.cookie).hasMusicU && (a = null == c ? void 0 : c.albumId, o = k || 180, e$(function*() {
3775
+ d.reportHistory && r(d.cookie).hasMusicU && (yield eB("/api/feedback/weblog", {
3776
+ logs: JSON.stringify([
3777
+ {
3778
+ action: "play",
3779
+ json: {
3780
+ download: 0,
3781
+ end: "playend",
3782
+ id: t,
3783
+ sourceId: a || "",
3784
+ time: Math.max(0, Math.round(o)),
3785
+ type: "song",
3786
+ wifi: 0,
3787
+ source: "list",
3788
+ mainsite: 1,
3789
+ content: ""
3790
+ }
3791
+ }
3792
+ ])
3793
+ }, d, {
3794
+ timeout: 6
3795
+ }));
3796
+ })()).catch(()=>void 0), e1(e2(e1({
3797
+ id: t,
3798
+ type: "url",
3799
+ mediaType: "song",
3800
+ link: O(t),
3801
+ title: (null == c ? void 0 : c.title) || t
3802
+ }, C.length ? {
3803
+ subtitle: C.join(" · ")
3804
+ } : {}, P ? {
3805
+ posterPath: P,
3806
+ coverUrl: P
3807
+ } : {}, k > 0 ? e1({
3808
+ duration: k
3809
+ }, A ? {
3810
+ durationText: A
3811
+ } : {}) : {}, (null == c || null == (e = c.peoples) ? void 0 : e.length) ? {
3812
+ peoples: c.peoples
3813
+ } : {}, v ? {
3814
+ albumMotionArtwork: v
3815
+ } : {}, b ? {
3816
+ trailers: [
3817
+ e2(e1({}, P ? {
3818
+ coverUrl: P
3819
+ } : {}), {
3820
+ videoUrl: b
3821
+ })
3822
+ ]
3823
+ } : {}, g.length ? {
3824
+ relatedItems: g
3825
+ } : {}), {
3826
+ videoUrl: p.url,
3827
+ customHeaders: p.headers
3828
+ }), S ? {
3829
+ playerType: S
3830
+ } : {});
3831
+ })()) : "album" === u.kind ? (i = u.id, e0(function*() {
3832
+ let e = yield eq(`/api/v1/album/${i}`, {}, d), t = Q(e.album);
3833
+ if (!t) throw Error(Widget.i18n("未找到该专辑"));
3834
+ let l = (Array.isArray(e.songs) ? e.songs : []).map(ee).filter((e)=>null !== e).map((e)=>e2(e1({}, e), {
3835
+ artists: e.artists.length ? e.artists : t.artists,
3836
+ album: {
3837
+ id: t.id,
3838
+ name: t.name,
3839
+ imageUrl: t.imageUrl
3840
+ },
3841
+ imageUrl: e.imageUrl || t.imageUrl
3842
+ })), r = l.map(en);
3843
+ e4(l, r);
3844
+ let a = t.artists.map((e)=>e.name).filter(Boolean).join(" / "), n = ea(t.artists), o = R(t.imageUrl), s = [
3845
+ [
3846
+ t.subType || "",
3847
+ t.company || ""
3848
+ ].filter(Boolean).join(" · "),
3849
+ t.description || ""
3850
+ ].filter(Boolean).join("\n") || void 0;
3851
+ return e2(e1({
3852
+ id: t.id,
3853
+ type: "url",
3854
+ mediaType: "album",
3855
+ link: `ncm:album:${t.id}`,
3856
+ title: t.name
3857
+ }, a ? {
3858
+ subtitle: a
3859
+ } : {}, o ? {
3860
+ posterPath: o,
3861
+ coverUrl: o
3862
+ } : {}, t.released ? {
3863
+ releaseDate: t.released
3864
+ } : {}, s ? {
3865
+ description: s
3866
+ } : {}, n ? {
3867
+ peoples: n
3868
+ } : {}), {
3869
+ tracks: r
3870
+ });
3871
+ })()) : "dj" === u.kind ? (l = u.id, e0(function*() {
3872
+ var e;
3873
+ let { radio: t, programs: i } = yield e7(l, d, 100), r = i.map(ed);
3874
+ eT(r);
3875
+ let a = [
3876
+ t.host || "",
3877
+ t.category || ""
3878
+ ].filter(Boolean).join(" · ") || void 0;
3879
+ return e2(e1({
3880
+ id: `dj:${t.id}`,
3881
+ type: "url",
3882
+ mediaType: "playlist",
3883
+ link: (e = t.id, `${C}${e}`),
3884
+ title: t.name
3885
+ }, a ? {
3886
+ subtitle: a
3887
+ } : {}, t.imageUrl ? {
3888
+ posterPath: t.imageUrl,
3889
+ coverUrl: t.imageUrl
3890
+ } : {}, t.description ? {
3891
+ description: t.description
3892
+ } : {}), {
3893
+ tracks: r
3894
+ });
3895
+ })()) : "hot" === u.kind ? (a = u.keyword, e0(function*() {
3896
+ var e, t, i;
3897
+ let l = yield eq("/api/cloudsearch/pc", {
3898
+ s: a,
3899
+ type: b.songs,
3900
+ limit: 30,
3901
+ offset: 0,
3902
+ total: !0
3903
+ }, d, {
3904
+ method: "POST"
3905
+ }), r = (Array.isArray(null == (e = l.result) ? void 0 : e.songs) ? l.result.songs : []).map(ee).filter((e)=>null !== e), n = ep(r.map(en));
3906
+ e4(r, n);
3907
+ let o = (null == (t = n[0]) ? void 0 : t.posterPath) || (null == (i = n[0]) ? void 0 : i.coverUrl);
3908
+ return e2(e1({
3909
+ id: `hot:${a}`,
3910
+ type: "url",
3911
+ mediaType: "playlist",
3912
+ link: M(a),
3913
+ title: a,
3914
+ subtitle: Widget.i18n("网易云热搜榜")
3915
+ }, o ? {
3916
+ posterPath: o,
3917
+ coverUrl: o
3918
+ } : {}), {
3919
+ tracks: n
3920
+ });
3921
+ })()) : (o = u.id, e0(function*() {
3922
+ var e;
3923
+ let [{ playlist: t, tracks: i }, l] = yield Promise.all([
3924
+ e9(o, d, 300),
3925
+ e0(function*() {
3926
+ try {
3927
+ var e;
3928
+ let t = yield eB("/api/playlist/detail/rcmd/get", {
3929
+ scene: "playlist_head",
3930
+ playlistId: o,
3931
+ newStyle: "true"
3932
+ }, d, {
3933
+ timeout: 6
3934
+ }), i = (Array.isArray(null == (e = t.data) ? void 0 : e.recPlaylist) ? t.data.recPlaylist : []).map((e)=>Y(null == e ? void 0 : e.playlist)).filter((e)=>null !== e && e.id !== o);
3935
+ return ep(i.map(es));
3936
+ } catch (e) {
3937
+ return [];
3938
+ }
3939
+ })()
3940
+ ]), r = i.map(en);
3941
+ e4(i, r);
3942
+ let a = er(t.tags);
3943
+ return e2(e1({
3944
+ id: t.id,
3945
+ type: "url",
3946
+ mediaType: "playlist",
3947
+ link: (e = t.id, `${S}${e}`),
3948
+ title: t.name
3949
+ }, t.owner ? {
3950
+ subtitle: t.owner
3951
+ } : {}, t.imageUrl ? {
3952
+ posterPath: t.imageUrl,
3953
+ coverUrl: t.imageUrl
3954
+ } : {}, t.description ? {
3955
+ description: t.description
3956
+ } : {}, a ? {
3957
+ genreItems: a
3958
+ } : {}, l.length ? {
3959
+ relatedItems: l
3960
+ } : {}), {
3961
+ tracks: r
3962
+ });
3963
+ })());
3964
+ })();
3965
+ })();