distube 3.0.0-beta.35 → 3.0.0-beta.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/DisTube.d.ts +78 -57
- package/dist/DisTube.d.ts.map +1 -1
- package/dist/DisTube.js +87 -87
- package/dist/DisTube.js.map +1 -1
- package/dist/constant.d.ts +43 -10
- package/dist/constant.d.ts.map +1 -1
- package/dist/constant.js +45 -11
- package/dist/constant.js.map +1 -1
- package/dist/core/DisTubeBase.d.ts +7 -13
- package/dist/core/DisTubeBase.d.ts.map +1 -1
- package/dist/core/DisTubeBase.js +4 -9
- package/dist/core/DisTubeBase.js.map +1 -1
- package/dist/core/DisTubeHandler.d.ts +9 -4
- package/dist/core/DisTubeHandler.d.ts.map +1 -1
- package/dist/core/DisTubeHandler.js +56 -10
- package/dist/core/DisTubeHandler.js.map +1 -1
- package/dist/core/DisTubeOptions.d.ts +0 -18
- package/dist/core/DisTubeOptions.d.ts.map +1 -1
- package/dist/core/DisTubeOptions.js +4 -1
- package/dist/core/DisTubeOptions.js.map +1 -1
- package/dist/core/DisTubeStream.d.ts +5 -2
- package/dist/core/DisTubeStream.d.ts.map +1 -1
- package/dist/core/DisTubeStream.js +23 -21
- package/dist/core/DisTubeStream.js.map +1 -1
- package/dist/core/manager/BaseManager.d.ts +2 -3
- package/dist/core/manager/BaseManager.d.ts.map +1 -1
- package/dist/core/manager/BaseManager.js +3 -3
- package/dist/core/manager/BaseManager.js.map +1 -1
- package/dist/core/manager/QueueManager.d.ts +2 -2
- package/dist/core/manager/QueueManager.d.ts.map +1 -1
- package/dist/core/manager/QueueManager.js +25 -22
- package/dist/core/manager/QueueManager.js.map +1 -1
- package/dist/core/voice/DisTubeVoice.d.ts +15 -15
- package/dist/core/voice/DisTubeVoice.d.ts.map +1 -1
- package/dist/core/voice/DisTubeVoice.js +27 -16
- package/dist/core/voice/DisTubeVoice.js.map +1 -1
- package/dist/core/voice/DisTubeVoiceManager.js +1 -1
- package/dist/core/voice/DisTubeVoiceManager.js.map +1 -1
- package/dist/plugin/http.js +2 -2
- package/dist/plugin/http.js.map +1 -1
- package/dist/plugin/https.js +3 -3
- package/dist/plugin/https.js.map +1 -1
- package/dist/plugin/youtube-dl.js +3 -3
- package/dist/plugin/youtube-dl.js.map +1 -1
- package/dist/struct/CustomPlugin.d.ts +17 -14
- package/dist/struct/CustomPlugin.d.ts.map +1 -1
- package/dist/struct/CustomPlugin.js +16 -16
- package/dist/struct/CustomPlugin.js.map +1 -1
- package/dist/struct/DisTubeError.d.ts +12 -3
- package/dist/struct/DisTubeError.d.ts.map +1 -1
- package/dist/struct/DisTubeError.js +11 -12
- package/dist/struct/DisTubeError.js.map +1 -1
- package/dist/struct/ExtractorPlugin.d.ts +16 -8
- package/dist/struct/ExtractorPlugin.d.ts.map +1 -1
- package/dist/struct/ExtractorPlugin.js +13 -12
- package/dist/struct/ExtractorPlugin.js.map +1 -1
- package/dist/struct/Playlist.d.ts +2 -3
- package/dist/struct/Playlist.d.ts.map +1 -1
- package/dist/struct/Playlist.js +9 -6
- package/dist/struct/Playlist.js.map +1 -1
- package/dist/struct/Plugin.d.ts +62 -9
- package/dist/struct/Plugin.d.ts.map +1 -1
- package/dist/struct/Plugin.js +73 -14
- package/dist/struct/Plugin.js.map +1 -1
- package/dist/struct/Queue.d.ts +17 -15
- package/dist/struct/Queue.d.ts.map +1 -1
- package/dist/struct/Queue.js +31 -16
- package/dist/struct/Queue.js.map +1 -1
- package/dist/struct/SearchResult.js +2 -2
- package/dist/struct/SearchResult.js.map +1 -1
- package/dist/struct/Song.d.ts +6 -8
- package/dist/struct/Song.d.ts.map +1 -1
- package/dist/struct/Song.js +17 -15
- package/dist/struct/Song.js.map +1 -1
- package/dist/struct/__mocks__/Queue.d.ts +12 -0
- package/dist/struct/__mocks__/Queue.d.ts.map +1 -0
- package/dist/struct/__mocks__/Queue.js +22 -0
- package/dist/struct/__mocks__/Queue.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/type.d.ts +76 -20
- package/dist/type.d.ts.map +1 -1
- package/dist/type.js.map +1 -1
- package/dist/util.d.ts +1 -1
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +16 -7
- package/dist/util.js.map +1 -1
- package/package.json +30 -28
package/dist/struct/Song.js
CHANGED
|
@@ -8,10 +8,12 @@ const Playlist_1 = __importDefault(require("./Playlist"));
|
|
|
8
8
|
const __1 = require("..");
|
|
9
9
|
/**
|
|
10
10
|
* Class representing a song.
|
|
11
|
-
* <info>If {@link Song} is added from a YouTube {@link SearchResult} or {@link Playlist}, some info will be missing to save your resources.
|
|
12
|
-
* It will be filled when emitting {@link DisTube#playSong} event.
|
|
13
11
|
*
|
|
14
|
-
*
|
|
12
|
+
* <info>If {@link Song} is added from a YouTube {@link SearchResult} or {@link Playlist},
|
|
13
|
+
* some info will be missing to save your resources. It will be filled when emitting {@link DisTube#playSong} event.
|
|
14
|
+
*
|
|
15
|
+
* Missing info: {@link Song#likes}, {@link Song#dislikes}, {@link Song#streamURL},
|
|
16
|
+
* {@link Song#related}, {@link Song#chapters}, {@link Song#age_restricted}</info>
|
|
15
17
|
*/
|
|
16
18
|
class Song {
|
|
17
19
|
/**
|
|
@@ -81,12 +83,12 @@ class Song {
|
|
|
81
83
|
* Song duration.
|
|
82
84
|
* @type {number}
|
|
83
85
|
*/
|
|
84
|
-
this.duration = this.isLive ? 0 : __1.toSecond(details.lengthSeconds || details.length_seconds || details.duration);
|
|
86
|
+
this.duration = this.isLive ? 0 : (0, __1.toSecond)(details.lengthSeconds || details.length_seconds || details.duration);
|
|
85
87
|
/**
|
|
86
88
|
* Formatted duration string (`hh:mm:ss`, `mm:ss` or `Live`).
|
|
87
89
|
* @type {string?}
|
|
88
90
|
*/
|
|
89
|
-
this.formattedDuration = this.isLive ? "Live" : __1.formatDuration(this.duration);
|
|
91
|
+
this.formattedDuration = this.isLive ? "Live" : (0, __1.formatDuration)(this.duration);
|
|
90
92
|
/**
|
|
91
93
|
* Song URL.
|
|
92
94
|
* @type {string}
|
|
@@ -114,17 +116,17 @@ class Song {
|
|
|
114
116
|
* Song views count
|
|
115
117
|
* @type {number}
|
|
116
118
|
*/
|
|
117
|
-
this.views = __1.parseNumber(details.viewCount || details.view_count || details.views);
|
|
119
|
+
this.views = (0, __1.parseNumber)(details.viewCount || details.view_count || details.views);
|
|
118
120
|
/**
|
|
119
121
|
* Song like count
|
|
120
122
|
* @type {number}
|
|
121
123
|
*/
|
|
122
|
-
this.likes = __1.parseNumber(details.likes);
|
|
124
|
+
this.likes = (0, __1.parseNumber)(details.likes);
|
|
123
125
|
/**
|
|
124
126
|
* Song dislike count
|
|
125
127
|
* @type {number}
|
|
126
128
|
*/
|
|
127
|
-
this.dislikes = __1.parseNumber(details.dislikes);
|
|
129
|
+
this.dislikes = (0, __1.parseNumber)(details.dislikes);
|
|
128
130
|
/**
|
|
129
131
|
* Song uploader
|
|
130
132
|
* @type {Object}
|
|
@@ -169,20 +171,20 @@ class Song {
|
|
|
169
171
|
else if (info.name)
|
|
170
172
|
this.name = info.name;
|
|
171
173
|
this.isLive = Boolean(info.is_live || info.isLive);
|
|
172
|
-
this.duration = this.isLive ? 0 : __1.toSecond(info._duration_raw || info.duration);
|
|
173
|
-
this.formattedDuration = this.isLive ? "Live" : __1.formatDuration(this.duration);
|
|
174
|
+
this.duration = this.isLive ? 0 : (0, __1.toSecond)(info._duration_raw || info.duration);
|
|
175
|
+
this.formattedDuration = this.isLive ? "Live" : (0, __1.formatDuration)(this.duration);
|
|
174
176
|
this.url = info.webpage_url || info.url;
|
|
175
177
|
this.thumbnail = info.thumbnail;
|
|
176
178
|
this.related = info.related || [];
|
|
177
|
-
this.views = __1.parseNumber(info.view_count || info.views);
|
|
178
|
-
this.likes = __1.parseNumber(info.like_count || info.likes);
|
|
179
|
-
this.dislikes = __1.parseNumber(info.dislike_count || info.dislikes);
|
|
180
|
-
this.reposts = __1.parseNumber(info.repost_count || info.reposts);
|
|
179
|
+
this.views = (0, __1.parseNumber)(info.view_count || info.views);
|
|
180
|
+
this.likes = (0, __1.parseNumber)(info.like_count || info.likes);
|
|
181
|
+
this.dislikes = (0, __1.parseNumber)(info.dislike_count || info.dislikes);
|
|
182
|
+
this.reposts = (0, __1.parseNumber)(info.repost_count || info.reposts);
|
|
181
183
|
this.uploader = {
|
|
182
184
|
name: info.uploader,
|
|
183
185
|
url: info.uploader_url,
|
|
184
186
|
};
|
|
185
|
-
this.age_restricted = info.age_restricted || (!!info.age_limit && __1.parseNumber(info.age_limit) >= 18);
|
|
187
|
+
this.age_restricted = info.age_restricted || (!!info.age_limit && (0, __1.parseNumber)(info.age_limit) >= 18);
|
|
186
188
|
this.chapters = info.chapters || [];
|
|
187
189
|
}
|
|
188
190
|
/**
|
package/dist/struct/Song.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Song.js","sourceRoot":"","sources":["../../src/struct/Song.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAkC;AAClC,0BAAyE;AAMzE;;;;;;GAMG;AACH,MAAa,IAAI;IA4Bf;;;;;OAKG;IACH,YACE,IAAuE,EACvE,MAAoB,EACpB,MAAM,GAAG,SAAS;;QAElB,IACE,OAAO,MAAM,KAAK,QAAQ;YAC1B,CAAE,IAAsB,CAAC,GAAG,IAAI,OAAQ,IAAsB,CAAC,GAAG,KAAK,QAAQ,CAAC,EAChF;YACA,MAAM,IAAI,gBAAY,CAAC,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;SACpE;QACD;;;WAGG;QACH,IAAI,CAAC,MAAM,GAAG,CAAC,CAAA,MAAC,IAAsB,0CAAE,GAAG,KAAI,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;QACrE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAC1B,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE;YAC7B,IAAI,CAAC,aAAa,CAAC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AAC,IAAI,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC;SAC1B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA9OD,oBA8OC;AAED,kBAAe,IAAI,CAAC","sourcesContent":["import Playlist from \"./Playlist\";\nimport { DisTubeError, formatDuration, parseNumber, toSecond } from \"..\";\nimport type ytdl from \"@distube/ytdl-core\";\nimport type { SearchResult } from \".\";\nimport type { Chapter, OtherSongInfo } from \"..\";\nimport type { GuildMember, User } from \"discord.js\";\n\n/**\n * Class representing a song.\n * <info>If {@link Song} is added from a YouTube {@link SearchResult} or {@link Playlist}, some info will be missing to save your resources.\n * It will be filled when emitting {@link DisTube#playSong} event.\n *\n * Missing info: {@link Song#likes}, {@link Song#dislikes}, {@link Song#streamURL}, {@link Song#related}, {@link Song#chapters}, {@link Song#age_restricted}</info>\n */\nexport class Song {\n source: string;\n formats?: ytdl.videoFormat[];\n member?: GuildMember;\n user?: User;\n id?: string;\n name?: string;\n isLive!: boolean;\n duration!: number;\n formattedDuration?: string;\n url!: string;\n streamURL?: string;\n thumbnail?: string;\n related!: Song[];\n views!: number;\n likes!: number;\n dislikes!: number;\n /** Song uploader */\n uploader!: {\n /** Uploader name */\n name?: string;\n /** Uploader url */\n url?: string;\n };\n age_restricted!: boolean;\n chapters!: Chapter[];\n reposts!: number;\n playlist?: Playlist;\n /**\n * Create a Song\n * @param {ytdl.videoInfo|SearchResult|OtherSongInfo} info Raw info\n * @param {Discord.GuildMember?} member Requested user\n * @param {string} source Song source\n */\n constructor(\n info: ytdl.videoInfo | SearchResult | OtherSongInfo | ytdl.relatedVideo,\n member?: GuildMember,\n source = \"youtube\",\n ) {\n if (\n typeof source !== \"string\" ||\n ((info as OtherSongInfo).src && typeof (info as OtherSongInfo).src !== \"string\")\n ) {\n throw new DisTubeError(\"INVALID_TYPE\", \"string\", source, \"source\");\n }\n /**\n * The source of the song\n * @type {string}\n */\n this.source = ((info as OtherSongInfo)?.src || source).toLowerCase();\n this._patchMember(member);\n if (this.source === \"youtube\") {\n this._patchYouTube(info as ytdl.videoInfo);\n } else {\n this._patchOther(info as OtherSongInfo);\n }\n }\n\n _patchYouTube(i: ytdl.videoInfo | SearchResult) {\n // FIXME\n const info = i as any;\n if ((info as any).full === true) {\n /**\n * Stream formats (Available if the song is from YouTube and playing)\n * @type {ytdl.videoFormat[]?}\n * @private\n */\n this.formats = info.formats;\n // eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports\n const err = require(\"@distube/ytdl-core/lib/utils\").playError(info.player_response, [\n \"UNPLAYABLE\",\n \"LIVE_STREAM_OFFLINE\",\n \"LOGIN_REQUIRED\",\n ]);\n if (err) throw err;\n\n if (!info.formats?.length) throw new DisTubeError(\"UNAVAILABLE_VIDEO\");\n }\n const details = info.videoDetails || info;\n /**\n * YouTube video id\n * @type {string?}\n */\n this.id = details.videoId || details.id;\n /**\n * Song name aka video title.\n * @type {string?}\n */\n this.name = details.title || details.name;\n /**\n * Indicates if the video is an active live.\n * @type {boolean}\n */\n this.isLive = !!details.isLive;\n /**\n * Song duration.\n * @type {number}\n */\n this.duration = this.isLive ? 0 : toSecond(details.lengthSeconds || details.length_seconds || details.duration);\n /**\n * Formatted duration string (`hh:mm:ss`, `mm:ss` or `Live`).\n * @type {string?}\n */\n this.formattedDuration = this.isLive ? \"Live\" : formatDuration(this.duration);\n /**\n * Song URL.\n * @type {string}\n */\n this.url = `https://www.youtube.com/watch?v=${this.id}`;\n /**\n * Stream / Download URL (Available if the song is playing)\n * @type {string?}\n */\n this.streamURL = undefined;\n /**\n * Song thumbnail.\n * @type {string?}\n */\n this.thumbnail =\n details.thumbnails?.sort((a: any, b: any) => b.width - a.width)[0].url ||\n details.thumbnail?.url ||\n details.thumbnail;\n /**\n * Related songs\n * @type {Song[]}\n */\n this.related = info?.related_videos?.map((v: any) => new Song(v)) || details.related || [];\n /**\n * Song views count\n * @type {number}\n */\n this.views = parseNumber(details.viewCount || details.view_count || details.views);\n /**\n * Song like count\n * @type {number}\n */\n this.likes = parseNumber(details.likes);\n /**\n * Song dislike count\n * @type {number}\n */\n this.dislikes = parseNumber(details.dislikes);\n /**\n * Song uploader\n * @type {Object}\n * @prop {string?} name Uploader name\n * @prop {string?} url Uploader url\n */\n this.uploader = {\n name: info.uploader?.name || details.author?.name,\n url: info.uploader?.url || details.author?.channel_url || details.author?.url,\n };\n /**\n * Whether or not an age-restricted content\n * @type {boolean}\n */\n this.age_restricted = !!details.age_restricted;\n /**\n * @typedef {Object} Chapter\n * @prop {string} title Chapter title\n * @prop {number} start_time Chapter start time in seconds\n */\n /**\n * Chapters information (YouTube only)\n * @type {Chapter[]}\n */\n this.chapters = details.chapters || [];\n /**\n * Song repost count\n * @type {number}\n */\n this.reposts = 0;\n }\n\n /**\n * Patch data from other source\n * @param {OtherSongInfo} info Video info\n * @private\n */\n private _patchOther(info: OtherSongInfo) {\n if (info.id) this.id = info.id;\n if (info.title) this.name = info.title;\n else if (info.name) this.name = info.name;\n this.isLive = Boolean(info.is_live || info.isLive);\n this.duration = this.isLive ? 0 : toSecond(info._duration_raw || info.duration);\n this.formattedDuration = this.isLive ? \"Live\" : formatDuration(this.duration);\n this.url = info.webpage_url || info.url;\n this.thumbnail = info.thumbnail;\n this.related = info.related || [];\n this.views = parseNumber(info.view_count || info.views);\n this.likes = parseNumber(info.like_count || info.likes);\n this.dislikes = parseNumber(info.dislike_count || info.dislikes);\n this.reposts = parseNumber(info.repost_count || info.reposts);\n this.uploader = {\n name: info.uploader,\n url: info.uploader_url,\n };\n this.age_restricted = info.age_restricted || (!!info.age_limit && parseNumber(info.age_limit) >= 18);\n this.chapters = info.chapters || [];\n }\n\n /**\n * @param {Playlist} playlist Playlist\n * @param {Discord.GuildMember} [member] Requested user\n * @private\n * @returns {Song}\n */\n _patchPlaylist(playlist: Playlist, member?: GuildMember): Song {\n if (!(playlist instanceof Playlist)) throw new DisTubeError(\"INVALID_TYPE\", \"Playlist\", playlist, \"playlist\");\n\n /**\n * The playlist added this song\n * @type {Playlist?}\n */\n this.playlist = playlist;\n return this._patchMember(member);\n }\n\n /**\n * @param {Discord.GuildMember} [member] Requested user\n * @private\n * @returns {Song}\n */\n _patchMember(member?: GuildMember): Song {\n if (member) {\n /**\n * User requested\n * @type {Discord.GuildMember?}\n */\n this.member = member;\n /**\n * User requested\n * @type {Discord.User?}\n */\n this.user = member?.user;\n }\n return this;\n }\n}\n\nexport default Song;\n"]}
|
|
1
|
+
{"version":3,"file":"Song.js","sourceRoot":"","sources":["../../src/struct/Song.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAkC;AAClC,0BAAyE;AAKzE;;;;;;;;GAQG;AACH,MAAa,IAAI;IAyBf;;;;;OAKG;IACH,YACE,IAAuE,EACvE,MAAoB,EACpB,MAAM,GAAG,SAAS;;QAElB,IACE,OAAO,MAAM,KAAK,QAAQ;YAC1B,CAAE,IAAsB,CAAC,GAAG,IAAI,OAAQ,IAAsB,CAAC,GAAG,KAAK,QAAQ,CAAC,EAChF;YACA,MAAM,IAAI,gBAAY,CAAC,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;SACpE;QACD;;;WAGG;QACH,IAAI,CAAC,MAAM,GAAG,CAAC,CAAA,MAAC,IAAsB,0CAAE,GAAG,KAAI,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;QACrE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAC1B,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE;YAC7B,IAAI,CAAC,aAAa,CAAC,IAAsB,CAAC,CAAC;SAC5C;aAAM;YACL,IAAI,CAAC,WAAW,CAAC,IAAqB,CAAC,CAAC;SACzC;IACH,CAAC;IAED,aAAa,CAAC,CAAgC;;QAC5C,QAAQ;QACR,MAAM,IAAI,GAAG,CAAQ,CAAC;QACtB,IAAK,IAAY,CAAC,IAAI,KAAK,IAAI,EAAE;YAC/B;;;;eAIG;YACH,IAAI,CA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nimport { DisTubeError, formatDuration, parseNumber, toSecond } from \"..\";\nimport type ytdl from \"@distube/ytdl-core\";\nimport type { GuildMember, User } from \"discord.js\";\nimport type { Chapter, OtherSongInfo, SearchResult } from \"..\";\n\n/**\n * Class representing a song.\n *\n * <info>If {@link Song} is added from a YouTube {@link SearchResult} or {@link Playlist},\n * some info will be missing to save your resources. It will be filled when emitting {@link DisTube#playSong} event.\n *\n * Missing info: {@link Song#likes}, {@link Song#dislikes}, {@link Song#streamURL},\n * {@link Song#related}, {@link Song#chapters}, {@link Song#age_restricted}</info>\n */\nexport class Song {\n source: string;\n formats?: ytdl.videoFormat[];\n member?: GuildMember;\n user?: User;\n id?: string;\n name?: string;\n isLive!: boolean;\n duration!: number;\n formattedDuration?: string;\n url!: string;\n streamURL?: string;\n thumbnail?: string;\n related!: Song[];\n views!: number;\n likes!: number;\n dislikes!: number;\n uploader!: {\n name?: string;\n url?: string;\n };\n age_restricted!: boolean;\n chapters!: Chapter[];\n reposts!: number;\n playlist?: Playlist;\n /**\n * Create a Song\n * @param {ytdl.videoInfo|SearchResult|OtherSongInfo} info Raw info\n * @param {Discord.GuildMember?} member Requested user\n * @param {string} source Song source\n */\n constructor(\n info: ytdl.videoInfo | SearchResult | OtherSongInfo | ytdl.relatedVideo,\n member?: GuildMember,\n source = \"youtube\",\n ) {\n if (\n typeof source !== \"string\" ||\n ((info as OtherSongInfo).src && typeof (info as OtherSongInfo).src !== \"string\")\n ) {\n throw new DisTubeError(\"INVALID_TYPE\", \"string\", source, \"source\");\n }\n /**\n * The source of the song\n * @type {string}\n */\n this.source = ((info as OtherSongInfo)?.src || source).toLowerCase();\n this._patchMember(member);\n if (this.source === \"youtube\") {\n this._patchYouTube(info as ytdl.videoInfo);\n } else {\n this._patchOther(info as OtherSongInfo);\n }\n }\n\n _patchYouTube(i: ytdl.videoInfo | SearchResult) {\n // FIXME\n const info = i as any;\n if ((info as any).full === true) {\n /**\n * Stream formats (Available if the song is from YouTube and playing)\n * @type {ytdl.videoFormat[]?}\n * @private\n */\n this.formats = info.formats;\n // eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports\n const err = require(\"@distube/ytdl-core/lib/utils\").playError(info.player_response, [\n \"UNPLAYABLE\",\n \"LIVE_STREAM_OFFLINE\",\n \"LOGIN_REQUIRED\",\n ]);\n if (err) throw err;\n\n if (!info.formats?.length) throw new DisTubeError(\"UNAVAILABLE_VIDEO\");\n }\n const details = info.videoDetails || info;\n /**\n * YouTube video id\n * @type {string?}\n */\n this.id = details.videoId || details.id;\n /**\n * Song name aka video title.\n * @type {string?}\n */\n this.name = details.title || details.name;\n /**\n * Indicates if the video is an active live.\n * @type {boolean}\n */\n this.isLive = !!details.isLive;\n /**\n * Song duration.\n * @type {number}\n */\n this.duration = this.isLive ? 0 : toSecond(details.lengthSeconds || details.length_seconds || details.duration);\n /**\n * Formatted duration string (`hh:mm:ss`, `mm:ss` or `Live`).\n * @type {string?}\n */\n this.formattedDuration = this.isLive ? \"Live\" : formatDuration(this.duration);\n /**\n * Song URL.\n * @type {string}\n */\n this.url = `https://www.youtube.com/watch?v=${this.id}`;\n /**\n * Stream / Download URL (Available if the song is playing)\n * @type {string?}\n */\n this.streamURL = undefined;\n /**\n * Song thumbnail.\n * @type {string?}\n */\n this.thumbnail =\n details.thumbnails?.sort((a: any, b: any) => b.width - a.width)[0].url ||\n details.thumbnail?.url ||\n details.thumbnail;\n /**\n * Related songs\n * @type {Song[]}\n */\n this.related = info?.related_videos?.map((v: any) => new Song(v)) || details.related || [];\n /**\n * Song views count\n * @type {number}\n */\n this.views = parseNumber(details.viewCount || details.view_count || details.views);\n /**\n * Song like count\n * @type {number}\n */\n this.likes = parseNumber(details.likes);\n /**\n * Song dislike count\n * @type {number}\n */\n this.dislikes = parseNumber(details.dislikes);\n /**\n * Song uploader\n * @type {Object}\n * @prop {string?} name Uploader name\n * @prop {string?} url Uploader url\n */\n this.uploader = {\n name: info.uploader?.name || details.author?.name,\n url: info.uploader?.url || details.author?.channel_url || details.author?.url,\n };\n /**\n * Whether or not an age-restricted content\n * @type {boolean}\n */\n this.age_restricted = !!details.age_restricted;\n /**\n * @typedef {Object} Chapter\n * @prop {string} title Chapter title\n * @prop {number} start_time Chapter start time in seconds\n */\n /**\n * Chapters information (YouTube only)\n * @type {Chapter[]}\n */\n this.chapters = details.chapters || [];\n /**\n * Song repost count\n * @type {number}\n */\n this.reposts = 0;\n }\n\n /**\n * Patch data from other source\n * @param {OtherSongInfo} info Video info\n * @private\n */\n private _patchOther(info: OtherSongInfo) {\n if (info.id) this.id = info.id;\n if (info.title) this.name = info.title;\n else if (info.name) this.name = info.name;\n this.isLive = Boolean(info.is_live || info.isLive);\n this.duration = this.isLive ? 0 : toSecond(info._duration_raw || info.duration);\n this.formattedDuration = this.isLive ? \"Live\" : formatDuration(this.duration);\n this.url = info.webpage_url || info.url;\n this.thumbnail = info.thumbnail;\n this.related = info.related || [];\n this.views = parseNumber(info.view_count || info.views);\n this.likes = parseNumber(info.like_count || info.likes);\n this.dislikes = parseNumber(info.dislike_count || info.dislikes);\n this.reposts = parseNumber(info.repost_count || info.reposts);\n this.uploader = {\n name: info.uploader,\n url: info.uploader_url,\n };\n this.age_restricted = info.age_restricted || (!!info.age_limit && parseNumber(info.age_limit) >= 18);\n this.chapters = info.chapters || [];\n }\n\n /**\n * @param {Playlist} playlist Playlist\n * @param {Discord.GuildMember} [member] Requested user\n * @private\n * @returns {Song}\n */\n _patchPlaylist(playlist: Playlist, member?: GuildMember): Song {\n if (!(playlist instanceof Playlist)) throw new DisTubeError(\"INVALID_TYPE\", \"Playlist\", playlist, \"playlist\");\n\n /**\n * The playlist added this song\n * @type {Playlist?}\n */\n this.playlist = playlist;\n return this._patchMember(member);\n }\n\n /**\n * @param {Discord.GuildMember} [member] Requested user\n * @private\n * @returns {Song}\n */\n _patchMember(member?: GuildMember): Song {\n if (member) {\n /**\n * User requested\n * @type {Discord.GuildMember?}\n */\n this.member = member;\n /**\n * User requested\n * @type {Discord.User?}\n */\n this.user = member?.user;\n }\n return this;\n }\n}\n\nexport default Song;\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
export declare class Queue {
|
|
3
|
+
voice: any;
|
|
4
|
+
id: any;
|
|
5
|
+
songs: any;
|
|
6
|
+
previousSongs: any;
|
|
7
|
+
textChannel: any;
|
|
8
|
+
taskQueue: any;
|
|
9
|
+
[x: string]: jest.Mock;
|
|
10
|
+
constructor(distube: any, voice: any, song: any, textChannel: any);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=Queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Queue.d.ts","sourceRoot":"","sources":["../../../src/struct/__mocks__/Queue.ts"],"names":[],"mappings":";AAEA,qBAAa,KAAK;IAChB,KAAK,EAAE,GAAG,CAAC;IACX,EAAE,EAAE,GAAG,CAAC;IACR,KAAK,EAAE,GAAG,CAAC;IACX,aAAa,EAAE,GAAG,CAAC;IACnB,WAAW,EAAE,GAAG,CAAC;IACjB,SAAS,EAAE,GAAG,CAAC;IACf,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC;gBACX,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG;CAclE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Queue = void 0;
|
|
4
|
+
const methods = ["addToQueue", "skip", "stop", "delete"];
|
|
5
|
+
class Queue {
|
|
6
|
+
constructor(distube, voice, song, textChannel) {
|
|
7
|
+
this.id = voice.id;
|
|
8
|
+
this.voice = voice;
|
|
9
|
+
this.songs = Array.isArray(song) ? [...song] : [song];
|
|
10
|
+
this.previousSongs = [];
|
|
11
|
+
this.textChannel = textChannel;
|
|
12
|
+
this.taskQueue = {
|
|
13
|
+
queuing: jest.fn(),
|
|
14
|
+
resolve: jest.fn(),
|
|
15
|
+
};
|
|
16
|
+
for (const method of methods) {
|
|
17
|
+
this[method] = jest.fn();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Queue = Queue;
|
|
22
|
+
//# sourceMappingURL=Queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Queue.js","sourceRoot":"","sources":["../../../src/struct/__mocks__/Queue.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;AAEzD,MAAa,KAAK;IAQhB,YAAY,OAAY,EAAE,KAAU,EAAE,IAAS,EAAE,WAAgB;QAC/D,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACtD,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG;YACf,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE;YAClB,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE;SACnB,CAAC;QACF,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC5B,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;SAC1B;IACH,CAAC;CACF;AAtBD,sBAsBC","sourcesContent":["const methods = [\"addToQueue\", \"skip\", \"stop\", \"delete\"];\n\nexport class Queue {\n voice: any;\n id: any;\n songs: any;\n previousSongs: any;\n textChannel: any;\n taskQueue: any;\n [x: string]: jest.Mock;\n constructor(distube: any, voice: any, song: any, textChannel: any) {\n this.id = voice.id;\n this.voice = voice;\n this.songs = Array.isArray(song) ? [...song] : [song];\n this.previousSongs = [];\n this.textChannel = textChannel;\n this.taskQueue = {\n queuing: jest.fn(),\n resolve: jest.fn(),\n };\n for (const method of methods) {\n this[method] = jest.fn();\n }\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/@distube/ytpl/typings/index.d.ts","../node_modules/@distube/ytsr/typings/index.d.ts","../node_modules/@distube/ytdl-core/typings/index.d.ts","../src/struct/DisTubeError.ts","../src/struct/TaskQueue.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/discord-api-types/globals.d.ts","../node_modules/@discordjs/builders/dist/messages/formatters.d.ts","../node_modules/discord-api-types/payloads/v9/permissions.d.ts","../node_modules/discord-api-types/payloads/v9/emoji.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/base.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/slashCommands.d.ts","../node_modules/discord-api-types/payloads/v9/interactions.d.ts","../node_modules/discord-api-types/payloads/v9/sticker.d.ts","../node_modules/discord-api-types/payloads/v9/channel.d.ts","../node_modules/discord-api-types/payloads/v9/gateway.d.ts","../node_modules/discord-api-types/payloads/v9/stageInstance.d.ts","../node_modules/discord-api-types/payloads/v9/voice.d.ts","../node_modules/discord-api-types/payloads/v9/guild.d.ts","../node_modules/discord-api-types/payloads/v9/user.d.ts","../node_modules/discord-api-types/payloads/v9/teams.d.ts","../node_modules/discord-api-types/payloads/v9/application.d.ts","../node_modules/discord-api-types/payloads/v9/webhook.d.ts","../node_modules/discord-api-types/payloads/v9/auditLog.d.ts","../node_modules/discord-api-types/payloads/v9/invite.d.ts","../node_modules/discord-api-types/payloads/v9/oauth2.d.ts","../node_modules/discord-api-types/rest/common.d.ts","../node_modules/discord-api-types/rest/v9/auditLog.d.ts","../node_modules/discord-api-types/rest/v9/channel.d.ts","../node_modules/discord-api-types/rest/v9/emoji.d.ts","../node_modules/discord-api-types/rest/v9/gateway.d.ts","../node_modules/discord-api-types/utils/internals.d.ts","../node_modules/discord-api-types/rest/v9/guild.d.ts","../node_modules/discord-api-types/rest/v9/webhook.d.ts","../node_modules/discord-api-types/rest/v9/interactions.d.ts","../node_modules/discord-api-types/rest/v9/invite.d.ts","../node_modules/discord-api-types/rest/v9/oauth2.d.ts","../node_modules/discord-api-types/rest/v9/stageInstance.d.ts","../node_modules/discord-api-types/rest/v9/sticker.d.ts","../node_modules/discord-api-types/rest/v9/template.d.ts","../node_modules/discord-api-types/rest/v9/user.d.ts","../node_modules/discord-api-types/rest/v9/voice.d.ts","../node_modules/discord-api-types/rest/v9/index.d.ts","../node_modules/discord-api-types/payloads/v9/template.d.ts","../node_modules/discord-api-types/payloads/v9/index.d.ts","../node_modules/discord-api-types/gateway/common.d.ts","../node_modules/discord-api-types/gateway/v9.d.ts","../node_modules/discord-api-types/rpc/v9.d.ts","../node_modules/discord-api-types/utils/v9.d.ts","../node_modules/discord-api-types/v9.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/mixins/NameAndDescription.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/boolean.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/channel.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/mixins/CommandOptionWithChoices.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/integer.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/mentionable.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/role.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/string.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/user.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/mixins/CommandOptions.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/SlashCommandSubcommands.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/SlashCommandBuilder.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/mixins/CommandOptionBase.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/Assertions.d.ts","../node_modules/@discordjs/builders/dist/index.d.ts","../node_modules/@discordjs/collection/dist/index.d.ts","../node_modules/@types/ws/index.d.ts","../node_modules/discord.js/typings/enums.d.ts","../node_modules/discord.js/typings/rawDataTypes.d.ts","../node_modules/discord.js/typings/index.d.ts","../src/struct/Song.ts","../src/struct/Playlist.ts","../src/struct/SearchResult.ts","../src/core/DisTubeOptions.ts","../node_modules/prism-media/typings/opus.d.ts","../node_modules/prism-media/typings/vorbis.d.ts","../node_modules/prism-media/typings/index.d.ts","../node_modules/tiny-typed-emitter/lib/index.d.ts","../node_modules/@discordjs/voice/dist/index.d.ts","../src/core/voice/DJSAdapter.ts","../src/core/DisTubeStream.ts","../src/core/DisTubeHandler.ts","../src/core/DisTubeBase.ts","../src/core/manager/BaseManager.ts","../src/core/manager/QueueManager.ts","../src/core/manager/index.ts","../src/core/voice/DisTubeVoiceManager.ts","../src/core/voice/DisTubeVoice.ts","../src/core/voice/index.ts","../src/core/index.ts","../src/struct/Queue.ts","../src/struct/Plugin.ts","../src/struct/CustomPlugin.ts","../src/struct/ExtractorPlugin.ts","../src/struct/index.ts","../src/type.ts","../src/constant.ts","../src/plugin/http.ts","../src/plugin/https.ts","../node_modules/execa/index.d.ts","../node_modules/@distube/youtube-dl/src/index.d.ts","../src/plugin/youtube-dl.ts","../src/plugin/index.ts","../src/index.ts","../src/util.ts","../src/DisTube.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/keyv/index.d.ts","../node_modules/@types/http-cache-semantics/index.d.ts","../node_modules/@types/responselike/index.d.ts","../node_modules/@types/cacheable-request/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/jest-diff/build/cleanupSemantic.d.ts","../node_modules/jest-diff/build/types.d.ts","../node_modules/jest-diff/build/diffLines.d.ts","../node_modules/jest-diff/build/printDiffs.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/minimist/index.d.ts","../node_modules/@types/normalize-package-data/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},"b09ed0465e2c4244a8225c322941182fbd64101dac77c76ea96ffb3797364937","6d6b07e437b620687741ea220c757e794bf218caf4251315b3e56e2e362370e1","4045e7e1708461cebbe1f34edd75fd8d9ce85ec4183dffe9dc4e7fbeca352465","148f9ebc8c37227f2480950a355ad97b8511c1d6d884fe935f673edce734b18c","6986ee58ebf74e8e869436c8a5c16ac207be092b159371c2dae49d0f3041ba3c","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bf629ebbac2c65601bcb5c032644023a2b4b3b1151c0d1bf60ced7c35cc81b5d","affectsGlobalScope":true},"0ddef426964b396f57357b9e61209dd558f7652dd06af5a35893d296c29dff7a",{"version":"80ca040774450bb70975bcb532c55c452f52889cca6e4a62ff9b39db6df52597","affectsGlobalScope":true},"ca3b86d3300cb6817ee3d161421db0b4994d168fb5820a33c89743bc73716292","13aa2483c2987df1237be45d8b366556ddd1f6a55ab75cb021878e7a8d9da451",{"version":"5012207e217a67f821855e1ce3059e089953847e1ce0adff8186a46c459e96f7","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","84c1d7b722b37351f7422d1cf031fbf8b3322ce2a0470e688e8a67ea50e8a7c3","decd29e5c9dfd0159e88721a4986dff6b58d255012ade0cacba7130dc7abe3c1","7ed1067f8c4acf58cdaf97c0a755445a56a61b54ef70d59da7aa73743912b189","db840acb7519c1b47747b06b48f67679e226801f30b82ce89c1ecec16c4287c4","87c064559d14068edb2861fc7d48c1a8196a63523e00cc29aadd57c0eefb24a5","9c158ac9bc84d33422b85d4f274f47790e59b9729e739d4fc3f3abff8770d270",{"version":"a976ad617bce5d95209068df27cb6ad69e367f2a72e193c7dbabb73dc35b533c","affectsGlobalScope":true},"4d597061586f910a296454946adcb1783b5ec5d1118216bdb4051b4c45f66af4","141ca893325b744a519f2d897380fcd7f0ec7b10c1dace468be20f00285954d6","9eb774f6cbcfa3efd41ff5a57f6b4f65cbf5da132c84b01126fc97ff0576b032","a18b1d62260772956f7a834db04fe777d4e806addec5a1524aeeb01c248935c6","87b65f004c67a19d250f4505c7031124a8ba7099e2bb01f958fd59c98293ae0a","ed3129f404bfea369c236104e125d5f3885d78540f8f37d3c7e90f0c2449b50f",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"1d5a2f2ec6f67c1c3f7f201901d003f61878e6a3f749417d510af82a7dbca066","a94dbd90397585ae2d01e0a61e980df17e8b5f8f76ecce20c9a1969185adb54b","1b7690edef33f9d150a4ac170d662a9dffedc08e4c9504ece603785007ffdba1","62d37937d7321b1df75292b92eb984babf32302748f200d8aabf67328b37bed0",{"version":"3436d1d485a911c30671690bf952d1dbb508e8627ac8b35bc45076b34f794a1a","affectsGlobalScope":true},"d1b323391b9604f2fa2cca0ddf206a951feb745fd36d400677447436cc7b4f8d","5d08ea86fca386c9d33cb99a66ca8bee9dd4d554c5b2a16819e4ed8e6007b3df","0b28384ffe11674b35d97b9f91248d3f00f823fc4ffc67070e71206a5c7e6305","695bfa2ca7a20a9d4e43f3b7a8af58ce76b12e094b07203bd9bf47345cba7626","c5dc947515dcf6834f08241eda0b6406012b7e5c334242a46c7ba5df6738643f","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","912e95aafa5d85e0636eab990cdcfe2f288310dcd9ee5b7c028d8231e179e967",{"version":"93c6f408623f52df4fd29ed34f3e9cabbe2f4041a6c58ffe9df0f565bad441df","affectsGlobalScope":true},"4d3629fb9800cc91005ee2c811551b9c4b8acb336ba1b332f09df5a523087e2f","a43696d7b22d9c87ca90865f3c10a9aeb6964c5f344e769093c0a43f8931e99f","4b465e7d07abea8e7cfe4e50a63b901a0a32e283f8a81eb7f569e623dc2a6a6a","a714b2c718db95b5bc2286a74c69a964486f09424e60340f715bf91fd4e18795","a4b17cb3fac639af70d893a131d376bedf753cdf64810a8be035f8f8c826e242","ef1ee7763eb7df64da6057ad74fdbbda90e047955fe6a102938914db35fe82dc","0a8c5fb0f16e51973f22f2e01791b9e8376203514e4b72f65a451afebc29f5a0","c19d3a3bb01ac8c5d244c31eac930c451110a58b76ff7a2b82bdffed082e36f6","8ca49a6223d59be5b7228ad99800f01982a1f350eb61c1a195e77547121877bb","55d6f9768363cf0356f4c9fff535ed3c24c67c782a566238cd08fa11a6111940",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"437c2700eaa23c440e97dd4ba5883c75ee82fe8b64772af7bebaa99410776705","de0e63feaddfdf1a7a92071f6e7897d86ca497499116433e99fe15bf4af32e01","6bc3869ee4c247028dc22dcce0b735a82e7d564d10a72bb56e08a3215144a244","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","c11a691c5842ae2d64665473e7574b0d18a8a37345d0b875a3af2c5aae7478e9","eabab93ca9a786745af72195153280e883d8e36df9829ecf8b2f539824d042be","13c8fd9ac625a10636930367a3f4a777ce70b11f7cdc029f362a2dfb16fd4bcc","601baee82f99ecb4cba48bb6bf2b0203d29b004da3fb3e996a89f4a33872ab53","681f35c141c7a6201d5ffc038fbc28e46fb7a8702fc52b29d2d2dc7ca03328c2","7cf6119b61f357510575f1f522f443e26738b339d0475d27b5c56e00ea4d4a74","d0d504c82b2a5d2bf48b951a5502ac7284ed974e3249a4fd1c795522c11d9a0d","77c4ab3bd29fe95f4bea93af5851aa08146db8af8fb2548114c09aea838e77bc","168eef670afa53e786ccb6afbf3cb78457ff6cc90064e80f0bc5da96cffda665","1889afe70a4e2588879217e78d1b8d741278ccf58610d0044d88a1b8cecaf588","7726d36153de5f74db7f484f0dd9a7baf5446e1cc598815c0ddf5e3f156966a2","9b39acb572930d9093cae87ebc3d1cac76f85d3959c879d198e41af727d05680","1b5fcebffc599162f32f0cb5f9ce6dbe7c0a47e676c81717e3a6f788bc739c5d","018e8fa83db6e4bc72a9b7ae59114457883303ac22f3a04d7b807347542b1dd3","fef0f40e32a9e21e58a8ed60607caa0037e55c4c6fe3c842a5c3bd54888f9afa","f81a310f1755bc55ca8e32f85a534dc950a77f12bba02d54c43e268a685cbe56","9becb185dc91f570f6c7899cbad4d4ba2dc919366198ddfac4d8c9968e550af5","e03985b2e03f3463cf9c28774fa2a1150588ed2da3c529bb03eb9b883e9a5984","d110ef7cb005b60066855a3d0613dcb33e78c88ab48f1a94be49d8670d9b5496","9dca03e56594dcb6da7ec0062cbdd48d156c9a9b0a8fbbf6c90b66ff38ebd2b4","236a8048bc96944178f7459a0533cc3002e4f923a5f9bca88834d0d2a9290483","7c1263dabaa6f33f7dc6d226ecdc57b445e0d37466416cb830d6fe9ad98bfb09","355e5ee195122c2fa0c595859d8ca3ff0ccd7559d7f2d658043a6ed3df8ca385","a18d84764f9d2578f1df7c85f7cf6dbc7b70eeece874c144232bc2346f0eb2e2","ff23e142558a772c5105209c6693ddfd7b1729816f2de96445c695a6382826e6","f29e54511f37f6b0c8fa2825db6498afb9ffe2ab828ea6e692b68529cdba7482","a3ab8e78dcd6d2530c79d6a1e32f8b373e1755c6c1de30991bfed619790272d1","14dc7a4905d3efdbd48a308235dd845c65d6fb11900206c28c2458926197dafc","3134088754c10c988c58ad5cc63b6746e390d72c14a89d73a56100656925b532","2d90e07aed4760e7f72ac6a56c95adb8a9a183d5069d373344cdcd0586387c38","f5f91e2d5b6def18b59927ea5d7f486610a1110544738ad7d829c027182b009e","8817e5c6683a55dc63a7c5f94e1952a3897502127a7ff723928f9e2eed6642e9","573d601ccde6584973bdafa36cf1ab13ab2c6b29b77bff206f3d7a072260acd1","24d01508ba2c2f43d1160aad262ce6456e14eec7a7b55409a067418c39c50bbe","fa51e795c197f47e1637261e029249887cd04c36ca9b811d08af8604d8691dc8","e3c9ba3e51df8b583d78fae95aa165cbbd6f22e5b8ab39812af4dcbbb462b4cd","48400d03a4592825229ca1007145723c3245d650175c52342f53ba33ebdc93ed","469dccf4d7d12c4b6e1f5f237c76d9fe3efa2d03840ca04f2c3ac8d376f7ff19","62a25c0dcfddb1f82f0186f21c1d5aee323bc9d9dd2a60860d4bc543f6fb68ce","e6c450d02573f08e0b7253cbfadd93855c2353344e38b0681c06d44c3caaa6a3","eb085129eda219aaa6879af66bce947fdeb07f4dd4596dbd0b9f868884398073","301c604c264389f8f6b4911830488dade60db491489c53b8e7f782616e2b9385","0c89aa22ce07701d1ee12be114155464a8db3c6f04d30ec0a5eb158812564262","bad7ce18863ea540ea1b6a908f14bb407eeb8ba629f5daed791740cf6512c10e","b893d36e0749c5dd2b8e278b4e2c6d05d2f81707a56ad76aedb8f7943308f3cf","d9de6be7ea546933d744a8f6c222ce18f840a68cddc8eac8c5a4af37fbc6d802","06511a15f80ee05b40d987fe15532069416e8276d6cd0b0112e6bf058c975ffe","880787c9fb1ef2e540e1f3316ef53d3fb3ce65fc286afc7a060532e8996d475d","77faf4fc16b0db0f6485cec37340693fec8fb257708a44d297dc4e54ac6d29a0","85215fe47f360115d887803b719cfc21556d6a9eca05130d9ed2139e547cfd5e","b3c376d21b877fb48aecb25515ae535c3ac2c032f586f5319e4e9d78a7afce3c","5987793382283cf037dac3c5198476ff89dc82a6f26f7eb16e8647f704d5e779","02eb42f87d0258ba9ae3c957d219d23460880e4279f953dab02b3075cc016b24","e98a91dd20d13ef0b5244f6ea56437aa50bd6550eb610efe591143419cf364cc","e8249790482aa1c3d02dbb35f7e50cbe70003625f4a17e7b29c69950c8f3ce31","9c02c61aeae0e480db66306644351096850565b222c971c1243a42d744250183","02319a61bf9b658c3d687bc6c6f2973d1f67206d2b92c945db02bcaf90dda43a","9b64300849fb3c6263e85121d36506563ad6f3e7730d711c49adf854db54cd1b","3ff4fac83d613e223b8b14304c5471b32bf4732efaad0f928913605689108eea","7a10788cd0b77e6f278dd0bf3268511945e8e70f62111dfd72db091e25eb6864","c856ec3c2dbec1d0dcb775bb34ea04d758e33694a397f551e6da577b2966925b","04017390fa25a2c0e81f10654b1c98583e68da5f81c62fceb1cb20baaf13a23a","d9eb0af1c745870f865a505a4a3a14f9ab8ea892ef38fb7793aff2af4d5daacf","685e7bb879b604b89174678dcb86cacba129b510294dd0f835f64ecba29139b9","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31","76b18d556f494c2923eb64b0540692fc9f12d54be204e8e70cfa29449d9558da","37cf7c1108e9500b9cc6e5d48f8ac5e054b4751e53c12766510f63a3175887fd","ef8d130d93bc50c1a5c83b81b917982b23f9ec166a1cebe121b26c6bf9c4d5aa","2a05a6730aba50d23aa336019e7cb421b2c4d56021f2341b81f5a7414205241e","9af4d8c03f4e35bdcaa3cb27c794d4482bb8099d540086b1b3ce2ef8cb778420","40d2408eb17487d927c1a35fc21b6266b9429d5d10b609898c4fa250aff92dd1","09143ef626c42627261d45455b10d0044af4b1ba28c1aef920ce03fa6b4d5f8f","b13715eda434461367e0dc0d7374f313631e02b3fd5b03a299ac6b223312b802","c6196a8bb53c3bca8185c25a4319c7a60a3614b7b0475621c561e89860a4df59","7001d2b80d3339eb8e77d65f1c67451f732744877a1e96c4a992638fcce81842","3103df94f61695e93f42896943943f8005a32821ce2ccbc1233a78c27ac82474","29144dd80ca7b7e8e296184652ac973bea5bf2d6ead187884580704b3bc171a4","e734a1bd1ef70c338f191494f9a68c3d773772def753410e0f2be66d30be2720","1ba775dd65105bc4a2f55cddbda3b12835c171a98349c2942696af77a765654c","890249f1cf2b5849ee27fd4ca3934a34ddd81095ec07cd3d6b00bbe3ac7d3523","08e2cc5f547ba59c6c305e430862f08f5ff78a6912e533a50134e255025d49e2","bc1986f92d47a138a9cccb23d25824f90d21b7766fb47b65c1518502a4d9073e","3c5ff9a3dd9b4eba9518c97172773e934718dec73634b6c420753623ab991f0b","adf35bb26ba990d31d56cbaca26065945a5b61da3ded825d76154a7e71562db0","8a486df92dd40e1d4328bc9c43de551882f471c5f9a1a38e8e95483f1722a3d0","cbda59f8fca3f268580bdbef1e5eb8d11ba3949b0fadc00ffdc9c404793ecb2f","8796565c3f8e80152aecb23d6b7a270548adf1f875baf02342c2769b5b2a6b01","f83b503393fd41f2b20ff09e48dae7b702800b5f48a171cf21edd51e8151cc2d","b824fed691ce45d5a9c52da8ae48e3fa9d69c7449214beca2531bcb4e2c73cf0","838c4fd8b66e4ffeed24a4eb87680e7b3a4dd19a7bc266fa1d90b339c84f2646","488d7ce6b156c88ed9a828fdbf07f8b123cdd3ac76960e3bd93ef03702b683bf","1123e4174333ad10d311d057300c6e533390d3e30b16fa5f3b5a65750fac8c4a","df563ba4312d3a8805ba562826f9a4b5ccc1141f413a5fe226c5e6b6d24099ac","c0adf15002f7c09e24a55c23243c149174f958d8d236f01471e3fca797830a8a","217dc18c9d816cad3c8418ac29598901c68a660e0fe463ff596713c99a210b32","ef69fbf8d8f3c08a94d375f474fc06a1c5a3ed88f8f05ac7e282ea047fb94cf7","91081606fa6da5b30d500f031c7a97a2d4e88de3e9cf6e1beea22d5b3b2dbf84","088703b7810394a5af823ac753cca116931df81a97183725ae1e2c4e6038268d","1347d3dd49acf0fc17720443eec35492ffb54ebb178168f1d1719336976d4b74","1182f622afe07938fed7f7ec9b28617d2ed11e697079fd5cd4c68b8c42028f79","62c1ad137b5d8fd4a8eb581d119190123aab9681843927c690538e63320f6dca","211f8f312bee75e48c0141734f5ff0070edef85084be2428e84565fb04405e97","d8fa1ecf002a90bd6f12d8e2679d3f192e9ba137066ac0dfb96153261ce36332","2d7e128b295c583080b3e5577c8dc57ffd3779bc6086e370b10bb334a2a17ca6","98f40132aab59240e3daa408377a6f779aa81f4340f4451959cd2eba3750e456","8dfed5c91ad36e69e6da6b7e49be929d4e19666db2b651aa839c485170a2902c","2d914aefa0dbd5acb35cbce747fced45f6b79eba10483f7d4a27646c49940f20","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","71c56bdaa82d7ce75a72d3c06c04fe10becec09bd9c4ef21776a2a055d3f428e","4a8b6680f577878255690971bbfe6ec951ece19a0c86a493e66a715762d04db2","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","65455ea1b00bae7bd26d3c8c2401eb3d10401c09c55192d6f3b8b2275eda20c2","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438"],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"inlineSources":true,"module":1,"outDir":"./","removeComments":false,"skipDefaultLibCheck":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":6},"fileIdsList":[[89,203],[89],[89,101,148,149,151,152,153,154,155,157,158,160],[89,146,157,158,159],[89,146,147,156,157],[89,146,147,156,158],[89,146,147,158],[89,146,158,159],[89,148,149,151,152,153,154,155,158],[89,146,159],[89,146,150],[88,89,99,100],[80,89,99,146,163,173,174],[89,196],[66,80,89],[89,203,204,205,206,207],[89,203,205],[63,66,88,89,99,209,210,211],[64,89,99],[89,214],[89,215],[89,221,223],[63,89,99],[89,97],[51,89],[89,96,97],[52,57,89],[53,63,64,71,80,88,89],[53,54,63,71,89],[55,89],[56,57,64,72,89],[57,80,85,89],[58,60,63,71,89],[59,89],[60,61,89],[62,63,89],[63,89],[63,64,65,80,88,89],[63,64,65,80,89],[66,71,80,88,89],[63,64,66,67,71,80,85,88,89],[66,68,80,85,88,89],[89,98],[63,69,89],[70,88,89],[60,63,71,80,89],[72,89],[73,89],[51,74,89],[75,87,89,92],[76,89],[77,89],[63,78,89],[78,79,89,91],[63,80,81,89],[80,81,89],[82,89],[63,83,84,89],[83,84,89],[57,71,85,89],[86,89],[49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95],[71,87,89],[66,77,88,89],[57,89],[80,89,90],[89,91],[89,95],[52,57,63,65,74,80,88,89,91,92],[80,89,93],[66,80,89,99],[63,66,68,71,80,85,88,89,93,99],[89,231],[89,100,128,141,142],[89,100,111,115,116,141],[89,104,109,111],[89,104,106],[89,141,146],[89,100,104,106,111,115,141],[89,100,116,117],[89,100,102,110,111,113,115,116,119],[89,100,102,103,109,110,115,116,118],[89,100,102,116],[89,100,103,111,116],[89,100,102,103,110,111,112,113,114,116],[89,102,103,109,110,111,112,113,114,115,116,117,118,119,120,121,122,140],[89,104,105,106,107,108],[89,111,113,115,116,118],[89,100],[89,100,115],[89,100,116],[89,100,116,139],[89,100,141],[89,100,120],[89,141],[89,100,125,128,141],[89,100,123,124,125,126,127,129,130,131,132,133,134,135,136,137,138],[89,130,141],[89,100,128,141],[89,100,139,141,143,144,145],[53,63,80,89,92,146,161,162,163,164,165],[89,146,166],[53,80,89,99],[89,217,218],[89,217,218,219,220],[89,222],[53,80,89,171,172],[80,89],[44,45,63,89,166,200,201],[89,200],[89,166,178,186,202],[44,46,89,166,186,200,202],[46,89,200],[46,89,173,175,191,200],[89,170,177,178,179,182,185],[89,166,179,200,202],[89,166,182,200],[89,180,181],[89,146,166,175],[63,89,166,175,177,183,200],[89,166,175,182,185,200],[89,176,183,184],[89,186,191,192,193,199,201,202],[66,89,166,190,200],[66,68,88,89,166,190,200],[89,194,195,198],[89,166,190,191,192,197],[89,166,188],[89,166,188,191],[44,89,166,167,200],[89,186,191,202],[89,166,186,200,202],[45,89,200],[46,89,166,168,191,200],[47,48,89,167,168,169,187,188,189,190],[46,89,166,191],[88,89,166,200]],"referencedMap":[[205,1],[203,2],[161,3],[160,4],[158,5],[157,6],[159,7],[150,8],[156,9],[147,2],[148,10],[149,10],[151,11],[152,10],[153,10],[154,11],[155,10],[101,12],[162,2],[175,13],[197,14],[46,15],[44,2],[45,2],[208,16],[204,1],[206,17],[207,1],[212,18],[213,19],[210,2],[214,2],[215,20],[216,21],[224,22],[225,2],[209,23],[226,2],[97,24],[49,24],[51,25],[98,26],[52,27],[53,28],[54,29],[55,30],[56,31],[57,32],[58,33],[59,34],[60,35],[61,35],[62,36],[63,37],[64,38],[65,39],[50,2],[94,2],[66,40],[67,41],[68,42],[99,43],[69,44],[70,45],[71,46],[72,47],[73,48],[74,49],[75,50],[76,51],[77,52],[78,53],[79,54],[80,55],[81,56],[82,57],[83,58],[84,59],[85,60],[86,61],[96,62],[87,63],[88,64],[89,65],[90,66],[91,67],[95,68],[92,69],[93,70],[227,2],[228,2],[229,2],[211,71],[230,2],[163,72],[231,2],[232,73],[142,2],[143,74],[100,2],[104,75],[105,76],[107,77],[106,78],[108,79],[118,80],[120,81],[111,82],[103,83],[112,84],[115,85],[141,86],[109,87],[121,88],[122,2],[102,89],[113,90],[110,91],[117,91],[140,92],[116,90],[114,90],[119,93],[123,2],[124,94],[125,93],[126,93],[127,95],[129,96],[139,97],[131,98],[132,95],[133,93],[134,93],[135,95],[136,95],[137,93],[138,95],[130,99],[144,2],[128,2],[145,95],[146,100],[164,2],[166,101],[165,102],[196,103],[217,2],[219,104],[221,105],[220,104],[218,2],[223,106],[222,2],[173,107],[171,108],[172,108],[174,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[23,2],[20,2],[21,2],[22,2],[24,2],[25,2],[26,2],[5,2],[27,2],[28,2],[29,2],[30,2],[6,2],[31,2],[32,2],[33,2],[34,2],[7,2],[39,2],[35,2],[36,2],[37,2],[38,2],[8,2],[40,2],[41,2],[42,2],[1,2],[9,2],[43,2],[202,109],[193,110],[179,111],[178,112],[170,113],[177,114],[186,115],[180,116],[181,117],[182,118],[176,119],[184,120],[183,121],[185,122],[200,123],[194,124],[195,125],[199,126],[198,127],[189,128],[47,2],[190,129],[168,130],[188,131],[187,132],[169,133],[167,134],[48,2],[191,135],[192,136],[201,137]],"exportedModulesMap":[[205,1],[203,2],[161,3],[160,4],[158,5],[157,6],[159,7],[150,8],[156,9],[147,2],[148,10],[149,10],[151,11],[152,10],[153,10],[154,11],[155,10],[101,12],[162,2],[175,13],[197,14],[46,15],[44,2],[45,2],[208,16],[204,1],[206,17],[207,1],[212,18],[213,19],[210,2],[214,2],[215,20],[216,21],[224,22],[225,2],[209,23],[226,2],[97,24],[49,24],[51,25],[98,26],[52,27],[53,28],[54,29],[55,30],[56,31],[57,32],[58,33],[59,34],[60,35],[61,35],[62,36],[63,37],[64,38],[65,39],[50,2],[94,2],[66,40],[67,41],[68,42],[99,43],[69,44],[70,45],[71,46],[72,47],[73,48],[74,49],[75,50],[76,51],[77,52],[78,53],[79,54],[80,55],[81,56],[82,57],[83,58],[84,59],[85,60],[86,61],[96,62],[87,63],[88,64],[89,65],[90,66],[91,67],[95,68],[92,69],[93,70],[227,2],[228,2],[229,2],[211,71],[230,2],[163,72],[231,2],[232,73],[142,2],[143,74],[100,2],[104,75],[105,76],[107,77],[106,78],[108,79],[118,80],[120,81],[111,82],[103,83],[112,84],[115,85],[141,86],[109,87],[121,88],[122,2],[102,89],[113,90],[110,91],[117,91],[140,92],[116,90],[114,90],[119,93],[123,2],[124,94],[125,93],[126,93],[127,95],[129,96],[139,97],[131,98],[132,95],[133,93],[134,93],[135,95],[136,95],[137,93],[138,95],[130,99],[144,2],[128,2],[145,95],[146,100],[164,2],[166,101],[165,102],[196,103],[217,2],[219,104],[221,105],[220,104],[218,2],[223,106],[222,2],[173,107],[171,108],[172,108],[174,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[23,2],[20,2],[21,2],[22,2],[24,2],[25,2],[26,2],[5,2],[27,2],[28,2],[29,2],[30,2],[6,2],[31,2],[32,2],[33,2],[34,2],[7,2],[39,2],[35,2],[36,2],[37,2],[38,2],[8,2],[40,2],[41,2],[42,2],[1,2],[9,2],[43,2],[202,109],[193,110],[179,111],[178,112],[170,113],[177,114],[186,115],[180,116],[181,117],[182,118],[176,119],[184,120],[183,121],[185,122],[200,123],[194,124],[195,125],[199,126],[198,127],[189,128],[47,2],[190,129],[168,130],[188,131],[187,132],[169,133],[167,134],[48,2],[191,135],[192,136],[201,137]],"semanticDiagnosticsPerFile":[205,203,161,160,158,157,159,150,156,147,148,149,151,152,153,154,155,101,162,175,197,46,44,45,208,204,206,207,212,213,210,214,215,216,224,225,209,226,97,49,51,98,52,53,54,55,56,57,58,59,60,61,62,63,64,65,50,94,66,67,68,99,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,96,87,88,89,90,91,95,92,93,227,228,229,211,230,163,231,232,142,143,100,104,105,107,106,108,118,120,111,103,112,115,141,109,121,122,102,113,110,117,140,116,114,119,123,124,125,126,127,129,139,131,132,133,134,135,136,137,138,130,144,128,145,146,164,166,165,196,217,219,221,220,218,223,222,173,171,172,174,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,31,32,33,34,7,39,35,36,37,38,8,40,41,42,1,9,43,202,193,179,178,170,177,186,180,181,182,176,184,183,185,200,194,195,199,198,189,47,190,168,188,187,169,167,48,191,192,201]},"version":"4.3.5"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/@distube/ytpl/typings/index.d.ts","../node_modules/@distube/ytsr/typings/index.d.ts","../node_modules/@distube/ytdl-core/typings/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/discord-api-types/globals.d.ts","../node_modules/@discordjs/builders/dist/messages/formatters.d.ts","../node_modules/discord-api-types/payloads/v9/permissions.d.ts","../node_modules/discord-api-types/payloads/v9/emoji.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/base.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/slashCommands.d.ts","../node_modules/discord-api-types/payloads/v9/interactions.d.ts","../node_modules/discord-api-types/payloads/v9/sticker.d.ts","../node_modules/discord-api-types/payloads/v9/channel.d.ts","../node_modules/discord-api-types/payloads/v9/gateway.d.ts","../node_modules/discord-api-types/payloads/v9/stageInstance.d.ts","../node_modules/discord-api-types/payloads/v9/voice.d.ts","../node_modules/discord-api-types/payloads/v9/guild.d.ts","../node_modules/discord-api-types/payloads/v9/user.d.ts","../node_modules/discord-api-types/payloads/v9/teams.d.ts","../node_modules/discord-api-types/payloads/v9/application.d.ts","../node_modules/discord-api-types/payloads/v9/webhook.d.ts","../node_modules/discord-api-types/payloads/v9/auditLog.d.ts","../node_modules/discord-api-types/payloads/v9/invite.d.ts","../node_modules/discord-api-types/payloads/v9/oauth2.d.ts","../node_modules/discord-api-types/rest/common.d.ts","../node_modules/discord-api-types/rest/v9/auditLog.d.ts","../node_modules/discord-api-types/rest/v9/channel.d.ts","../node_modules/discord-api-types/rest/v9/emoji.d.ts","../node_modules/discord-api-types/rest/v9/gateway.d.ts","../node_modules/discord-api-types/utils/internals.d.ts","../node_modules/discord-api-types/rest/v9/guild.d.ts","../node_modules/discord-api-types/rest/v9/webhook.d.ts","../node_modules/discord-api-types/rest/v9/interactions.d.ts","../node_modules/discord-api-types/rest/v9/invite.d.ts","../node_modules/discord-api-types/rest/v9/oauth2.d.ts","../node_modules/discord-api-types/rest/v9/stageInstance.d.ts","../node_modules/discord-api-types/rest/v9/sticker.d.ts","../node_modules/discord-api-types/rest/v9/template.d.ts","../node_modules/discord-api-types/rest/v9/user.d.ts","../node_modules/discord-api-types/rest/v9/voice.d.ts","../node_modules/discord-api-types/rest/v9/index.d.ts","../node_modules/discord-api-types/payloads/v9/template.d.ts","../node_modules/discord-api-types/payloads/v9/index.d.ts","../node_modules/discord-api-types/gateway/common.d.ts","../node_modules/discord-api-types/gateway/v9.d.ts","../node_modules/discord-api-types/rpc/v9.d.ts","../node_modules/discord-api-types/utils/v9.d.ts","../node_modules/discord-api-types/v9.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/mixins/NameAndDescription.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/boolean.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/channel.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/mixins/CommandOptionWithChoices.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/integer.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/mentionable.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/role.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/string.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/options/user.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/mixins/CommandOptions.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/SlashCommandSubcommands.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/SlashCommandBuilder.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/mixins/CommandOptionBase.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashCommands/Assertions.d.ts","../node_modules/@discordjs/builders/dist/index.d.ts","../node_modules/@discordjs/collection/dist/index.d.ts","../node_modules/@types/ws/index.d.ts","../node_modules/discord.js/typings/enums.d.ts","../node_modules/discord.js/typings/rawDataTypes.d.ts","../node_modules/discord.js/typings/index.d.ts","../src/type.ts","../src/constant.ts","../src/struct/DisTubeError.ts","../src/struct/TaskQueue.ts","../src/struct/Playlist.ts","../src/struct/SearchResult.ts","../src/struct/Song.ts","../src/core/DisTubeOptions.ts","../node_modules/prism-media/typings/opus.d.ts","../node_modules/prism-media/typings/vorbis.d.ts","../node_modules/prism-media/typings/index.d.ts","../node_modules/tiny-typed-emitter/lib/index.d.ts","../node_modules/@discordjs/voice/dist/index.d.ts","../src/core/voice/DJSAdapter.ts","../src/core/voice/DisTubeVoice.ts","../src/core/DisTubeBase.ts","../src/core/manager/BaseManager.ts","../src/core/manager/QueueManager.ts","../src/core/manager/index.ts","../src/core/voice/DisTubeVoiceManager.ts","../src/core/voice/index.ts","../src/core/DisTubeStream.ts","../src/core/DisTubeHandler.ts","../src/core/index.ts","../src/struct/Queue.ts","../src/struct/Plugin.ts","../src/struct/CustomPlugin.ts","../src/struct/ExtractorPlugin.ts","../src/struct/index.ts","../src/plugin/http.ts","../src/plugin/https.ts","../node_modules/execa/index.d.ts","../node_modules/@distube/youtube-dl/src/index.d.ts","../src/plugin/youtube-dl.ts","../src/plugin/index.ts","../src/index.ts","../src/util.ts","../src/DisTube.ts","../src/struct/__mocks__/Queue.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/keyv/index.d.ts","../node_modules/@types/http-cache-semantics/index.d.ts","../node_modules/@types/responselike/index.d.ts","../node_modules/@types/cacheable-request/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/jest-diff/build/cleanupSemantic.d.ts","../node_modules/jest-diff/build/types.d.ts","../node_modules/jest-diff/build/diffLines.d.ts","../node_modules/jest-diff/build/printDiffs.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/minimist/index.d.ts","../node_modules/@types/normalize-package-data/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"b09ed0465e2c4244a8225c322941182fbd64101dac77c76ea96ffb3797364937","6d6b07e437b620687741ea220c757e794bf218caf4251315b3e56e2e362370e1","4045e7e1708461cebbe1f34edd75fd8d9ce85ec4183dffe9dc4e7fbeca352465","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"658a70ff0b4d8298739566835c4b324a9ecef1676a2cd1fabfb5660a821d38ef","affectsGlobalScope":true},"43978f18d1165eea81040bc9bfac1a551717f5cc9bd0f13b31bf490c5fcdc75f","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"c3ad91d23259b68e10a9bef08c5f9fa1d19f27ef740ac9af98ed226b030c09c6","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","38643f040239c18923ef39b5e1fe2651eaa8a633d2e371d48ae7e951ec55a923","260aad3a6bd3fc510b7f97cfb05859bfc045ce185f8c2b4d73ddb9c43b0eb3c0","cb428529763c6c8e38e42db2a39f333ffcc6d3aab396b24ac84b22da752c1de0","ad4b60488fb1e562bf375dac9299815f7028bf667d9b5887b2d01d501b7d1ddd","246341c3a7a2638cf830d690e69de1e6085a102c6a30596435b050e6ac86c11a","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"ccded627c1c57aa9e021aea914c3197899e7335fdc65426a6d61a8e65e751c00","2fa7fb7be51fa9924ebef6bd61d290c91bfebb93de00fd4949d836e68668a9de","f2f0941f8d09218dfabd1b89ee9b4fb4a193568deb9b44c13a08ac5a386d81ae","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","62a00c9cc0c78d9f282dcd7b0a7776aefe220106c3bc327e259e5f6484c6f556",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"f3e8bcce378a26bc672fce0ec05affabbbbfa18493b76f24c39136dea87100d0","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"e51bee3200733b1f58818b5a9ea90fcd61c5b8afa3a0378391991f3696826a65","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","e70339a3d63f806c43f24250c42aa0000093923457b0ed7dfc10e0ac910ebca9","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","2c20a91799640fc6bf027056fd56e5b8db5c427c1cc016bdb04cde5c9a0603b9","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","3accc1301749459bba2d1ba0084fdf399e5471508300956a3a2a1a8f4bc35f2e","b810390059fc34122556c644f586e7a2b4598ded8afe5ba70bb82fc2e50577b1","ba9de5c5823e06ee3314f959c138cdaf4477d3a1a0769f0d24e62911020e8088","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"ba229259c8b01c6733dc6a3e7b2ae3e2b76e502bb640a1691238a4c9cae5cfed","eabab93ca9a786745af72195153280e883d8e36df9829ecf8b2f539824d042be","dab50a5f03b46c2c76c054403c08587a8a5a9d7e934e749a662822781ebe3d11","601baee82f99ecb4cba48bb6bf2b0203d29b004da3fb3e996a89f4a33872ab53","681f35c141c7a6201d5ffc038fbc28e46fb7a8702fc52b29d2d2dc7ca03328c2","7cf6119b61f357510575f1f522f443e26738b339d0475d27b5c56e00ea4d4a74","d0d504c82b2a5d2bf48b951a5502ac7284ed974e3249a4fd1c795522c11d9a0d","77c4ab3bd29fe95f4bea93af5851aa08146db8af8fb2548114c09aea838e77bc","168eef670afa53e786ccb6afbf3cb78457ff6cc90064e80f0bc5da96cffda665","1889afe70a4e2588879217e78d1b8d741278ccf58610d0044d88a1b8cecaf588","7726d36153de5f74db7f484f0dd9a7baf5446e1cc598815c0ddf5e3f156966a2","9b39acb572930d9093cae87ebc3d1cac76f85d3959c879d198e41af727d05680","1b5fcebffc599162f32f0cb5f9ce6dbe7c0a47e676c81717e3a6f788bc739c5d","018e8fa83db6e4bc72a9b7ae59114457883303ac22f3a04d7b807347542b1dd3","fef0f40e32a9e21e58a8ed60607caa0037e55c4c6fe3c842a5c3bd54888f9afa","f81a310f1755bc55ca8e32f85a534dc950a77f12bba02d54c43e268a685cbe56","9becb185dc91f570f6c7899cbad4d4ba2dc919366198ddfac4d8c9968e550af5","e03985b2e03f3463cf9c28774fa2a1150588ed2da3c529bb03eb9b883e9a5984","d110ef7cb005b60066855a3d0613dcb33e78c88ab48f1a94be49d8670d9b5496","9dca03e56594dcb6da7ec0062cbdd48d156c9a9b0a8fbbf6c90b66ff38ebd2b4","236a8048bc96944178f7459a0533cc3002e4f923a5f9bca88834d0d2a9290483","7c1263dabaa6f33f7dc6d226ecdc57b445e0d37466416cb830d6fe9ad98bfb09","355e5ee195122c2fa0c595859d8ca3ff0ccd7559d7f2d658043a6ed3df8ca385","a18d84764f9d2578f1df7c85f7cf6dbc7b70eeece874c144232bc2346f0eb2e2","ff23e142558a772c5105209c6693ddfd7b1729816f2de96445c695a6382826e6","f29e54511f37f6b0c8fa2825db6498afb9ffe2ab828ea6e692b68529cdba7482","a3ab8e78dcd6d2530c79d6a1e32f8b373e1755c6c1de30991bfed619790272d1","14dc7a4905d3efdbd48a308235dd845c65d6fb11900206c28c2458926197dafc","3134088754c10c988c58ad5cc63b6746e390d72c14a89d73a56100656925b532","2d90e07aed4760e7f72ac6a56c95adb8a9a183d5069d373344cdcd0586387c38","f5f91e2d5b6def18b59927ea5d7f486610a1110544738ad7d829c027182b009e","8817e5c6683a55dc63a7c5f94e1952a3897502127a7ff723928f9e2eed6642e9","573d601ccde6584973bdafa36cf1ab13ab2c6b29b77bff206f3d7a072260acd1","24d01508ba2c2f43d1160aad262ce6456e14eec7a7b55409a067418c39c50bbe","fa51e795c197f47e1637261e029249887cd04c36ca9b811d08af8604d8691dc8","e3c9ba3e51df8b583d78fae95aa165cbbd6f22e5b8ab39812af4dcbbb462b4cd","48400d03a4592825229ca1007145723c3245d650175c52342f53ba33ebdc93ed","469dccf4d7d12c4b6e1f5f237c76d9fe3efa2d03840ca04f2c3ac8d376f7ff19","62a25c0dcfddb1f82f0186f21c1d5aee323bc9d9dd2a60860d4bc543f6fb68ce","e6c450d02573f08e0b7253cbfadd93855c2353344e38b0681c06d44c3caaa6a3","eb085129eda219aaa6879af66bce947fdeb07f4dd4596dbd0b9f868884398073","301c604c264389f8f6b4911830488dade60db491489c53b8e7f782616e2b9385","0c89aa22ce07701d1ee12be114155464a8db3c6f04d30ec0a5eb158812564262","bad7ce18863ea540ea1b6a908f14bb407eeb8ba629f5daed791740cf6512c10e","b893d36e0749c5dd2b8e278b4e2c6d05d2f81707a56ad76aedb8f7943308f3cf","d9de6be7ea546933d744a8f6c222ce18f840a68cddc8eac8c5a4af37fbc6d802","06511a15f80ee05b40d987fe15532069416e8276d6cd0b0112e6bf058c975ffe","880787c9fb1ef2e540e1f3316ef53d3fb3ce65fc286afc7a060532e8996d475d","77faf4fc16b0db0f6485cec37340693fec8fb257708a44d297dc4e54ac6d29a0","85215fe47f360115d887803b719cfc21556d6a9eca05130d9ed2139e547cfd5e","b3c376d21b877fb48aecb25515ae535c3ac2c032f586f5319e4e9d78a7afce3c","5987793382283cf037dac3c5198476ff89dc82a6f26f7eb16e8647f704d5e779","02eb42f87d0258ba9ae3c957d219d23460880e4279f953dab02b3075cc016b24","e98a91dd20d13ef0b5244f6ea56437aa50bd6550eb610efe591143419cf364cc","e8249790482aa1c3d02dbb35f7e50cbe70003625f4a17e7b29c69950c8f3ce31","9c02c61aeae0e480db66306644351096850565b222c971c1243a42d744250183","02319a61bf9b658c3d687bc6c6f2973d1f67206d2b92c945db02bcaf90dda43a","9b64300849fb3c6263e85121d36506563ad6f3e7730d711c49adf854db54cd1b","3ff4fac83d613e223b8b14304c5471b32bf4732efaad0f928913605689108eea","7a10788cd0b77e6f278dd0bf3268511945e8e70f62111dfd72db091e25eb6864","c856ec3c2dbec1d0dcb775bb34ea04d758e33694a397f551e6da577b2966925b","04017390fa25a2c0e81f10654b1c98583e68da5f81c62fceb1cb20baaf13a23a","d9eb0af1c745870f865a505a4a3a14f9ab8ea892ef38fb7793aff2af4d5daacf","685e7bb879b604b89174678dcb86cacba129b510294dd0f835f64ecba29139b9","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31","437750e3f69a9418add19ca576b19622b99ccc93665976b07972b7c736e25fe9","37cf7c1108e9500b9cc6e5d48f8ac5e054b4751e53c12766510f63a3175887fd","1f825ecd1dd759992c322c7e7b58f4534c71f2164911060be585077291b89a86","fcede5148e973ba9ddeaec316955b19fc77568ada5aef66ed50c132c765ce310","abcce6b81dc431de5f1369af0c53cc0e8520bf698fc104e651af1bed5be268fe","f4ffa5610b215835565d6e450e85ee2bb7fa690947ca544a087a599e32055569","6986ee58ebf74e8e869436c8a5c16ac207be092b159371c2dae49d0f3041ba3c","ff3595837c94f1d9b252996c10cabf69af66da825c514ba76fa7a0646e798606","40d2408eb17487d927c1a35fc21b6266b9429d5d10b609898c4fa250aff92dd1","79aea5e1347069b4aeca1b6656b337f39619e39ec27ac11a4539d0d5dbea4385","0a4132e4fd0a9cd38e43bdd0d65cf2344e0a1dc5305ded22bac9cda2bb9e0a74","b13715eda434461367e0dc0d7374f313631e02b3fd5b03a299ac6b223312b802","c6196a8bb53c3bca8185c25a4319c7a60a3614b7b0475621c561e89860a4df59","7001d2b80d3339eb8e77d65f1c67451f732744877a1e96c4a992638fcce81842","3103df94f61695e93f42896943943f8005a32821ce2ccbc1233a78c27ac82474","9c9faeae72431ddd951b3897a151c7ff31b9f0ce9b53e9b476a8342e339d1b61","e734a1bd1ef70c338f191494f9a68c3d773772def753410e0f2be66d30be2720","a0e85cc845395127c1fb717e3e9ad5289c5ed41da581f0fb7ec06b1fb1e588c8","e2edff37e74c54d6292dc82246ef4ec2ec4b7ff2f4fc26a6be5fd4976698d803","eaca442e82ba2de3dfb3726c08f1edcaf294ef53d3de927f48250978d2e6527b","7082c2184c5e33e7cc128b8a2f63ea8a62527a7783a898bbdc24a821c89e8418","adf35bb26ba990d31d56cbaca26065945a5b61da3ded825d76154a7e71562db0","8a486df92dd40e1d4328bc9c43de551882f471c5f9a1a38e8e95483f1722a3d0","8796565c3f8e80152aecb23d6b7a270548adf1f875baf02342c2769b5b2a6b01","e0b21e1eae1f9356db7dc21b2b95fd1a7adfbdf1a0d66eedb5946d9fd7390651","8e9b24dff959c9218a5cd0b05db92e5d3b8586cc9c80642eccaf3d0ee4da2bf3","f83b503393fd41f2b20ff09e48dae7b702800b5f48a171cf21edd51e8151cc2d","733555802d5933a55b9537f27080e6807712262ef1ba149d7a20987ddb4e9f76","101772828cf6145f1a26b3f7bff7da6529234d765c4d8fee2ce7f2f3f2dcb2c8","aab8f20387b90f97fda58bd94765218c54c8d06929fae403340c498b2b44e368","c63981da9fa336e8105fd07d7fd8014c5d584581bf218a121be156eb0c26561d","df563ba4312d3a8805ba562826f9a4b5ccc1141f413a5fe226c5e6b6d24099ac","ef69fbf8d8f3c08a94d375f474fc06a1c5a3ed88f8f05ac7e282ea047fb94cf7","91081606fa6da5b30d500f031c7a97a2d4e88de3e9cf6e1beea22d5b3b2dbf84","088703b7810394a5af823ac753cca116931df81a97183725ae1e2c4e6038268d","1347d3dd49acf0fc17720443eec35492ffb54ebb178168f1d1719336976d4b74","449543622df3ca5d450faf4b5e7276f0ac9fa7deef649fafa80107d7009873b3","62c1ad137b5d8fd4a8eb581d119190123aab9681843927c690538e63320f6dca","211f8f312bee75e48c0141734f5ff0070edef85084be2428e84565fb04405e97","fd34292e37ffd811aa6eb1e9f6b37f36a1f6810f46c3f514ad0dc5c11add39cb","6787138b37d22fc9f328bfb2127f367d264194aff6405bc38c7f36bfc4675146","98475affb116fc880b7ea3694c4e401fac2535ba5e04f285472ab92aaeaa9995","f82348f8ac4f637d6ad76ef5d45577ccc0c59fbd25d8c44d55349a71a90e195a","8dfed5c91ad36e69e6da6b7e49be929d4e19666db2b651aa839c485170a2902c","4aaf84a5ac87bad3211f041fab85de5cc42e5954c3ed56842faf6f08167e6202","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","d0b0a00cf31968a33baeaadf974ce4e5e7edf58cea5288765293f41ba5e72b3a","82169f198ffdfc787fba368ccfad2b2d8ef3712f3c696df94ac13f6884bbbe2d","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","f014d6d053cb1840965952268a589c9e2a74d66c8c88286562d5699350e28e19","66851b263230decb3684072b2cb777f70ea3e52d4489b88f78f185618d4d398e",{"version":"e9f2cdc4e98e73a606ff68c470a8cb4f23cd638c47649d71b90a2d9413102080","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","65455ea1b00bae7bd26d3c8c2401eb3d10401c09c55192d6f3b8b2275eda20c2","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438"],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"inlineSources":true,"module":1,"outDir":"./","removeComments":false,"skipDefaultLibCheck":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":6},"fileIdsList":[[90,204],[90],[90,99,146,147,149,150,151,152,153,155,156,158],[90,144,155,156,157],[90,144,145,154,155],[90,144,145,154,156],[90,144,145,156],[90,144,156,157],[90,146,147,149,150,151,152,153,156],[90,144,157],[90,144,148],[89,90,97,98],[79,90,97,144,161,175,176],[90,196],[65,79,90],[90,204,205,206,207,208],[90,204,206],[62,65,89,90,97,210,211,212],[63,90,97],[90,215],[90,216],[90,222,224],[62,90,97],[47,90],[50,90],[51,56,90],[52,62,63,70,79,89,90],[52,53,62,70,90],[54,90],[55,56,63,71,90],[56,79,86,90],[57,59,62,70,90],[58,90],[59,60,90],[61,62,90],[62,90],[62,63,64,79,89,90],[62,63,64,79,90],[65,70,79,89,90],[62,63,65,66,70,79,86,89,90],[65,67,79,86,89,90],[47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],[62,68,90],[69,89,90],[59,62,70,79,90],[71,90],[72,90],[50,73,90],[74,88,90,94],[75,90],[76,90],[62,77,90],[77,78,90,92],[62,79,80,81,90],[79,81,90],[79,80,90],[82,90],[83,90],[62,84,85,90],[84,85,90],[56,70,86,90],[87,90],[70,88,90],[51,65,76,89,90],[56,90],[79,90,91],[90,92],[90,93],[51,56,62,64,73,79,89,90,92,94],[79,90,95],[65,79,90,97],[62,65,67,70,79,86,89,90,95,97],[90,232],[90,98,126,139,140],[90,98,109,113,114,139],[90,102,107,109],[90,102,104],[90,139,144],[90,98,102,104,109,113,139],[90,98,114,115],[90,98,100,108,109,111,113,114,117],[90,98,100,101,107,108,113,114,116],[90,98,100,114],[90,98,101,109,114],[90,98,100,101,108,109,110,111,112,114],[90,100,101,107,108,109,110,111,112,113,114,115,116,117,118,119,120,138],[90,102,103,104,105,106],[90,109,111,113,114,116],[90,98],[90,98,113],[90,98,114],[90,98,114,137],[90,98,139],[90,98,118],[90,139],[90,98,123,126,139],[90,98,121,122,123,124,125,127,128,129,130,131,132,133,134,135,136],[90,128,139],[90,98,126,139],[90,98,137,139,141,142,143],[52,62,79,90,94,144,159,160,161,162,163],[90,144,164],[52,79,90,97],[90,218,219],[90,218,219,220,221],[90,223],[52,79,90,173,174],[79,90],[44,45,90,164,176,200,201],[90,200],[90,164,200],[44,46,90,164,188,200],[46,90,200],[46,90,175,177,193,200],[90,172,180,183,185,186,187],[90,164,180,200],[90,164,183,200],[90,181,182],[90,144,164,177],[90,164,176,177,200],[90,164,177,183,185,200],[90,178,179,184],[90,165,166,188,193,199,201,202],[65,90,164,192,200],[65,67,89,90,164,192,200],[90,194,195,198],[90,164,192,193,197,200],[90,164,190],[90,164,190,193],[44,90,164,200],[90,164,188,200],[45,90,200],[46,90,164,169,200],[90,167,168,169,170,171,189,190,191,192],[46,90,164,200],[89,90,164,200]],"referencedMap":[[206,1],[204,2],[159,3],[158,4],[156,5],[155,6],[157,7],[148,8],[154,9],[145,2],[146,10],[147,10],[149,11],[150,10],[151,10],[152,11],[153,10],[99,12],[160,2],[177,13],[197,14],[46,15],[44,2],[45,2],[209,16],[205,1],[207,17],[208,1],[213,18],[214,19],[211,2],[215,2],[216,20],[217,21],[225,22],[226,2],[210,23],[227,2],[47,24],[48,24],[50,25],[51,26],[52,27],[53,28],[54,29],[55,30],[56,31],[57,32],[58,33],[59,34],[60,34],[61,35],[62,36],[63,37],[64,38],[49,2],[96,2],[65,39],[66,40],[67,41],[97,42],[68,43],[69,44],[70,45],[71,46],[72,47],[73,48],[74,49],[75,50],[76,51],[77,52],[78,53],[79,54],[81,55],[80,56],[82,57],[83,58],[84,59],[85,60],[86,61],[87,62],[88,63],[89,64],[90,65],[91,66],[92,67],[93,68],[94,69],[95,70],[228,2],[229,2],[230,2],[212,71],[231,2],[161,72],[232,2],[233,73],[140,2],[141,74],[98,2],[102,75],[103,76],[105,77],[104,78],[106,79],[116,80],[118,81],[109,82],[101,83],[110,84],[113,85],[139,86],[107,87],[119,88],[120,2],[100,89],[111,90],[108,91],[115,91],[138,92],[114,90],[112,90],[117,93],[121,2],[122,94],[123,93],[124,93],[125,95],[127,96],[137,97],[129,98],[130,95],[131,93],[132,93],[133,95],[134,95],[135,93],[136,95],[128,99],[142,2],[126,2],[143,95],[144,100],[162,2],[164,101],[163,102],[196,103],[218,2],[220,104],[222,105],[221,104],[219,2],[224,106],[223,2],[175,107],[173,108],[174,108],[176,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[23,2],[20,2],[21,2],[22,2],[24,2],[25,2],[26,2],[5,2],[27,2],[28,2],[29,2],[30,2],[6,2],[31,2],[32,2],[33,2],[34,2],[7,2],[39,2],[35,2],[36,2],[37,2],[38,2],[8,2],[40,2],[41,2],[42,2],[1,2],[9,2],[43,2],[202,109],[166,110],[180,111],[187,112],[172,113],[186,114],[188,115],[181,116],[182,117],[183,118],[178,119],[179,120],[184,121],[185,122],[200,123],[194,124],[195,125],[199,126],[198,127],[191,128],[167,2],[192,129],[169,130],[190,111],[189,131],[170,132],[171,133],[168,2],[203,2],[193,134],[165,135],[201,136]],"exportedModulesMap":[[206,1],[204,2],[159,3],[158,4],[156,5],[155,6],[157,7],[148,8],[154,9],[145,2],[146,10],[147,10],[149,11],[150,10],[151,10],[152,11],[153,10],[99,12],[160,2],[177,13],[197,14],[46,15],[44,2],[45,2],[209,16],[205,1],[207,17],[208,1],[213,18],[214,19],[211,2],[215,2],[216,20],[217,21],[225,22],[226,2],[210,23],[227,2],[47,24],[48,24],[50,25],[51,26],[52,27],[53,28],[54,29],[55,30],[56,31],[57,32],[58,33],[59,34],[60,34],[61,35],[62,36],[63,37],[64,38],[49,2],[96,2],[65,39],[66,40],[67,41],[97,42],[68,43],[69,44],[70,45],[71,46],[72,47],[73,48],[74,49],[75,50],[76,51],[77,52],[78,53],[79,54],[81,55],[80,56],[82,57],[83,58],[84,59],[85,60],[86,61],[87,62],[88,63],[89,64],[90,65],[91,66],[92,67],[93,68],[94,69],[95,70],[228,2],[229,2],[230,2],[212,71],[231,2],[161,72],[232,2],[233,73],[140,2],[141,74],[98,2],[102,75],[103,76],[105,77],[104,78],[106,79],[116,80],[118,81],[109,82],[101,83],[110,84],[113,85],[139,86],[107,87],[119,88],[120,2],[100,89],[111,90],[108,91],[115,91],[138,92],[114,90],[112,90],[117,93],[121,2],[122,94],[123,93],[124,93],[125,95],[127,96],[137,97],[129,98],[130,95],[131,93],[132,93],[133,95],[134,95],[135,93],[136,95],[128,99],[142,2],[126,2],[143,95],[144,100],[162,2],[164,101],[163,102],[196,103],[218,2],[220,104],[222,105],[221,104],[219,2],[224,106],[223,2],[175,107],[173,108],[174,108],[176,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[23,2],[20,2],[21,2],[22,2],[24,2],[25,2],[26,2],[5,2],[27,2],[28,2],[29,2],[30,2],[6,2],[31,2],[32,2],[33,2],[34,2],[7,2],[39,2],[35,2],[36,2],[37,2],[38,2],[8,2],[40,2],[41,2],[42,2],[1,2],[9,2],[43,2],[202,109],[166,110],[180,111],[187,112],[172,113],[186,114],[188,115],[181,116],[182,117],[183,118],[178,119],[179,120],[184,121],[185,122],[200,123],[194,124],[195,125],[199,126],[198,127],[191,128],[167,2],[192,129],[169,130],[190,111],[189,131],[170,132],[171,133],[168,2],[203,2],[193,134],[165,135],[201,136]],"semanticDiagnosticsPerFile":[206,204,159,158,156,155,157,148,154,145,146,147,149,150,151,152,153,99,160,177,197,46,44,45,209,205,207,208,213,214,211,215,216,217,225,226,210,227,47,48,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,49,96,65,66,67,97,68,69,70,71,72,73,74,75,76,77,78,79,81,80,82,83,84,85,86,87,88,89,90,91,92,93,94,95,228,229,230,212,231,161,232,233,140,141,98,102,103,105,104,106,116,118,109,101,110,113,139,107,119,120,100,111,108,115,138,114,112,117,121,122,123,124,125,127,137,129,130,131,132,133,134,135,136,128,142,126,143,144,162,164,163,196,218,220,222,221,219,224,223,175,173,174,176,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,31,32,33,34,7,39,35,36,37,38,8,40,41,42,1,9,43,202,166,180,187,172,186,188,181,182,183,178,179,184,185,200,194,195,199,198,191,167,192,169,190,189,170,171,168,203,193,165,201]},"version":"4.4.3"}
|
package/dist/type.d.ts
CHANGED
|
@@ -1,46 +1,101 @@
|
|
|
1
1
|
import type ytdl from "@distube/ytdl-core";
|
|
2
|
-
import type { CustomPlugin, ExtractorPlugin, Queue, Song } from "
|
|
2
|
+
import type { CustomPlugin, DisTubeVoice, ExtractorPlugin, Playlist, Queue, SearchResult, Song } from ".";
|
|
3
3
|
import type { Guild, GuildMember, Interaction, Message, Snowflake, StageChannel, TextChannel, User, VoiceChannel, VoiceState } from "discord.js";
|
|
4
|
+
declare type Awaitable = Promise<void> | void;
|
|
5
|
+
export declare type DisTubeVoiceEvents = {
|
|
6
|
+
disconnect: (error?: Error) => Awaitable;
|
|
7
|
+
error: (error: Error) => Awaitable;
|
|
8
|
+
finish: () => Awaitable;
|
|
9
|
+
};
|
|
10
|
+
export declare type DisTubeEvents = {
|
|
11
|
+
/** Emitted after DisTube add a new song to the playing {@link Queue}. */
|
|
12
|
+
addSong: (queue: Queue, song: Song) => Awaitable;
|
|
13
|
+
/**
|
|
14
|
+
* Emitted when DisTube play a song.
|
|
15
|
+
*
|
|
16
|
+
* If {@link DisTubeOptions.emitNewSongOnly} is `true`,
|
|
17
|
+
* this event is not emitted when looping a song or next song is the previous one.
|
|
18
|
+
*/
|
|
19
|
+
playSong: (queue: Queue, song: Song) => Awaitable;
|
|
20
|
+
/** Emitted when DisTube finished a song. */
|
|
21
|
+
finishSong: (queue: Queue, song: Song) => Awaitable;
|
|
22
|
+
/**
|
|
23
|
+
* Emitted when there is no user in the voice channel,
|
|
24
|
+
* {@link DisTubeOptions.leaveOnEmpty} is `true` and there is a playing queue.
|
|
25
|
+
*
|
|
26
|
+
* If there is no playing queue (stopped and {@link DisTubeOptions.leaveOnStop} is `false`),
|
|
27
|
+
* it will leave the channel without emitting this event.
|
|
28
|
+
*/
|
|
29
|
+
empty: (queue: Queue) => Awaitable;
|
|
30
|
+
/**
|
|
31
|
+
* Emitted when there is no more song in the queue and {@link Queue#autoplay} is `false`.
|
|
32
|
+
* DisTube will leave voice channel if {@link DisTubeOptions.leaveOnFinish} is `true`.
|
|
33
|
+
*/
|
|
34
|
+
finish: (queue: Queue) => Awaitable;
|
|
35
|
+
/** Emitted when DisTube initialize a queue to change queue default properties. */
|
|
36
|
+
initQueue: (queue: Queue) => Awaitable;
|
|
37
|
+
/**
|
|
38
|
+
* Emitted when {@link Queue#autoplay} is `true`, {@link Queue#songs} is empty,
|
|
39
|
+
* and DisTube cannot find related songs to play.
|
|
40
|
+
*/
|
|
41
|
+
noRelated: (queue: Queue) => Awaitable;
|
|
42
|
+
/** Emitted when the bot is disconnected to a voice channel. */
|
|
43
|
+
disconnect: (queue: Queue) => Awaitable;
|
|
44
|
+
/** Emitted when a {@link Queue} is deleted with any reasons. */
|
|
45
|
+
deleteQueue: (queue: Queue) => Awaitable;
|
|
46
|
+
/**
|
|
47
|
+
* Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,
|
|
48
|
+
* and the search canceled due to {@link DisTubeOptions.searchTimeout}.
|
|
49
|
+
*/
|
|
50
|
+
searchCancel: (message: Message, query: string) => Awaitable;
|
|
51
|
+
/** Emitted when DisTube cannot find any results for the query. */
|
|
52
|
+
searchNoResult: (message: Message, query: string) => Awaitable;
|
|
53
|
+
/**
|
|
54
|
+
* Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,
|
|
55
|
+
* and after the user chose a search result to play.
|
|
56
|
+
*/
|
|
57
|
+
searchDone: (message: Message, answer: Message, query: string) => Awaitable;
|
|
58
|
+
/**
|
|
59
|
+
* Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,
|
|
60
|
+
* and the search canceled due to user's next message is not a number or out of results range.
|
|
61
|
+
*/
|
|
62
|
+
searchInvalidAnswer: (message: Message, answer: Message, query: string) => Awaitable;
|
|
63
|
+
/** Emitted when DisTube encounters an error. */
|
|
64
|
+
error: (channel: TextChannel, error: Error) => Awaitable;
|
|
65
|
+
/** Emitted after DisTube add a new playlist to the playing {@link Queue}. */
|
|
66
|
+
addList: (queue: Queue, playlist: Playlist) => Awaitable;
|
|
67
|
+
/**
|
|
68
|
+
* Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,
|
|
69
|
+
* and song param of {@link DisTube#playVoiceChannel} is invalid url.
|
|
70
|
+
* DisTube will wait for user's next message to choose a song manually.
|
|
71
|
+
*
|
|
72
|
+
* Safe search is enabled
|
|
73
|
+
* if {@link DisTubeOptions.nsfw} is disabled and the message's channel is not a nsfw channel.
|
|
74
|
+
*/
|
|
75
|
+
searchResult: (message: Message, results: SearchResult[], query: string) => Awaitable;
|
|
76
|
+
};
|
|
4
77
|
export declare type Filters = Record<string, string>;
|
|
5
78
|
export interface DisTubeOptions {
|
|
6
|
-
/** DisTube plugins.*/
|
|
7
79
|
plugins?: (CustomPlugin | ExtractorPlugin)[];
|
|
8
|
-
/** If `true`, {@link DisTube#event:playSong} will not be emitted when looping a song or next song is the same as the previous one */
|
|
9
80
|
emitNewSongOnly?: boolean;
|
|
10
|
-
/** Whether or not leaving voice channel when the queue finishes. */
|
|
11
81
|
leaveOnFinish?: boolean;
|
|
12
|
-
/** Whether or not leaving voice channel after using {@link DisTube#stop} function. */
|
|
13
82
|
leaveOnStop?: boolean;
|
|
14
|
-
/** Whether or not leaving voice channel if the voice channel is empty after {@link DisTubeOptions}.emptyCooldown seconds. */
|
|
15
83
|
leaveOnEmpty?: boolean;
|
|
16
|
-
/** Built-in leave on empty cooldown in seconds (When leaveOnEmpty is true) */
|
|
17
84
|
emptyCooldown?: number;
|
|
18
|
-
/** Whether or not saving the previous songs of the queue and enable {@link DisTube#previous} method */
|
|
19
85
|
savePreviousSongs?: boolean;
|
|
20
|
-
/** Limit of search results emits in {@link DisTube#event:searchResult} event when {@link DisTube#play} method executed. If `searchSongs <= 1`, play the first result */
|
|
21
86
|
searchSongs?: number;
|
|
22
|
-
/** Built-in search cooldown in seconds (When `searchSongs` is bigger than 0) */
|
|
23
87
|
searchCooldown?: number;
|
|
24
|
-
/** YouTube cookies. Read how to get it in {@link https://github.com/fent/node-ytdl-core/blob/997efdd5dd9063363f6ef668bb364e83970756e7/example/cookies.js#L6-L12|YTDL's Example} */
|
|
25
88
|
youtubeCookie?: string;
|
|
26
|
-
/** If not given; ytdl-core will try to find it. You can find this by going to a video's watch page; viewing the source; and searching for "ID_TOKEN". */
|
|
27
89
|
youtubeIdentityToken?: string;
|
|
28
|
-
/** Whether or not using youtube-dl. */
|
|
29
90
|
youtubeDL?: boolean;
|
|
30
|
-
/** Whether or not updating youtube-dl automatically. */
|
|
31
91
|
updateYouTubeDL?: boolean;
|
|
32
|
-
/** Override {@link DefaultFilters} or add more ffmpeg filters. Example=`{ "Filter name"="Filter value"; "8d"="apulsator=hz=0.075" }` */
|
|
33
92
|
customFilters?: Filters;
|
|
34
|
-
/** `ytdl-core` options */
|
|
35
93
|
ytdlOptions?: ytdl.downloadOptions;
|
|
36
|
-
/** Whether or not playing age-restricted content and disabling safe search when using {@link DisTube#play} in non-NSFW channel. */
|
|
37
94
|
nsfw?: boolean;
|
|
38
|
-
/** Whether or not emitting `addList` event when creating a new Queue */
|
|
39
95
|
emitAddSongWhenCreatingQueue?: boolean;
|
|
40
|
-
/** Whether or not emitting `addSong` event when creating a new Queue */
|
|
41
96
|
emitAddListWhenCreatingQueue?: boolean;
|
|
42
97
|
}
|
|
43
|
-
export declare type GuildIDResolvable = Queue | Snowflake | Message | VoiceChannel | StageChannel | VoiceState | Guild | TextChannel | GuildMember | Interaction | string;
|
|
98
|
+
export declare type GuildIDResolvable = Queue | DisTubeVoice | Snowflake | Message | VoiceChannel | StageChannel | VoiceState | Guild | TextChannel | GuildMember | Interaction | string;
|
|
44
99
|
export interface OtherSongInfo {
|
|
45
100
|
src?: string;
|
|
46
101
|
id?: string;
|
|
@@ -100,4 +155,5 @@ export interface PlaylistInfo {
|
|
|
100
155
|
*/
|
|
101
156
|
thumbnail?: string;
|
|
102
157
|
}
|
|
158
|
+
export {};
|
|
103
159
|
//# sourceMappingURL=type.d.ts.map
|
package/dist/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../src/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../src/type.ts"],"names":[],"mappings":"AAAA,OAAO,KA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C;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,OAAO;IACtB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,sBAAsB;IACtB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
package/dist/type.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../src/type.ts"],"names":[],"mappings":"","sourcesContent":["import type ytdl from \"@distube/ytdl-core\";\nimport type { CustomPlugin, ExtractorPlugin, Queue, Song } from \"
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../src/type.ts"],"names":[],"mappings":"","sourcesContent":["import type ytdl from \"@distube/ytdl-core\";\nimport type { CustomPlugin, DisTubeVoice, ExtractorPlugin, Playlist, Queue, SearchResult, Song } from \".\";\nimport type {\n Guild,\n GuildMember,\n Interaction,\n Message,\n Snowflake,\n StageChannel,\n TextChannel,\n User,\n VoiceChannel,\n VoiceState,\n} from \"discord.js\";\n\ntype Awaitable = Promise<void> | void;\n\nexport type DisTubeVoiceEvents = {\n disconnect: (error?: Error) => Awaitable;\n error: (error: Error) => Awaitable;\n finish: () => Awaitable;\n};\n\nexport type DisTubeEvents = {\n /** Emitted after DisTube add a new song to the playing {@link Queue}. */\n addSong: (queue: Queue, song: Song) => Awaitable;\n /**\n * Emitted when DisTube play a song.\n *\n * If {@link DisTubeOptions.emitNewSongOnly} is `true`,\n * this event is not emitted when looping a song or next song is the previous one.\n */\n playSong: (queue: Queue, song: Song) => Awaitable;\n /** Emitted when DisTube finished a song. */\n finishSong: (queue: Queue, song: Song) => Awaitable;\n\n /**\n * Emitted when there is no user in the voice channel,\n * {@link DisTubeOptions.leaveOnEmpty} is `true` and there is a playing queue.\n *\n * If there is no playing queue (stopped and {@link DisTubeOptions.leaveOnStop} is `false`),\n * it will leave the channel without emitting this event.\n */\n empty: (queue: Queue) => Awaitable;\n /**\n * Emitted when there is no more song in the queue and {@link Queue#autoplay} is `false`.\n * DisTube will leave voice channel if {@link DisTubeOptions.leaveOnFinish} is `true`.\n */\n finish: (queue: Queue) => Awaitable;\n /** Emitted when DisTube initialize a queue to change queue default properties. */\n initQueue: (queue: Queue) => Awaitable;\n /**\n * Emitted when {@link Queue#autoplay} is `true`, {@link Queue#songs} is empty,\n * and DisTube cannot find related songs to play.\n */\n noRelated: (queue: Queue) => Awaitable;\n /** Emitted when the bot is disconnected to a voice channel. */\n disconnect: (queue: Queue) => Awaitable;\n /** Emitted when a {@link Queue} is deleted with any reasons. */\n deleteQueue: (queue: Queue) => Awaitable;\n\n /**\n * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,\n * and the search canceled due to {@link DisTubeOptions.searchTimeout}.\n */\n searchCancel: (message: Message, query: string) => Awaitable;\n /** Emitted when DisTube cannot find any results for the query. */\n searchNoResult: (message: Message, query: string) => Awaitable;\n\n /**\n * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,\n * and after the user chose a search result to play.\n */\n searchDone: (message: Message, answer: Message, query: string) => Awaitable;\n /**\n * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,\n * and the search canceled due to user's next message is not a number or out of results range.\n */\n searchInvalidAnswer: (message: Message, answer: Message, query: string) => Awaitable;\n\n /** Emitted when DisTube encounters an error. */\n error: (channel: TextChannel, error: Error) => Awaitable;\n /** Emitted after DisTube add a new playlist to the playing {@link Queue}. */\n addList: (queue: Queue, playlist: Playlist) => Awaitable;\n /**\n * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,\n * and song param of {@link DisTube#playVoiceChannel} is invalid url.\n * DisTube will wait for user's next message to choose a song manually.\n *\n * Safe search is enabled\n * if {@link DisTubeOptions.nsfw} is disabled and the message's channel is not a nsfw channel.\n */\n searchResult: (message: Message, results: SearchResult[], query: string) => Awaitable;\n};\n\nexport type Filters = Record<string, string>;\n\nexport interface DisTubeOptions {\n plugins?: (CustomPlugin | ExtractorPlugin)[];\n emitNewSongOnly?: boolean;\n leaveOnFinish?: boolean;\n leaveOnStop?: boolean;\n leaveOnEmpty?: boolean;\n emptyCooldown?: number;\n savePreviousSongs?: boolean;\n searchSongs?: number;\n searchCooldown?: number;\n youtubeCookie?: string;\n youtubeIdentityToken?: string;\n youtubeDL?: boolean;\n updateYouTubeDL?: boolean;\n customFilters?: Filters;\n ytdlOptions?: ytdl.downloadOptions;\n nsfw?: boolean;\n emitAddSongWhenCreatingQueue?: boolean;\n emitAddListWhenCreatingQueue?: boolean;\n}\n\nexport type GuildIDResolvable =\n | Queue\n | DisTubeVoice\n | Snowflake\n | Message\n | VoiceChannel\n | StageChannel\n | VoiceState\n | Guild\n | TextChannel\n | GuildMember\n | Interaction\n | string;\n\nexport interface OtherSongInfo {\n src?: string;\n id?: string;\n title?: string;\n name?: string;\n is_live?: boolean;\n isLive?: boolean;\n _duration_raw?: string | number;\n duration?: string | number;\n webpage_url?: string;\n url: string;\n thumbnail?: string;\n related?: Song[];\n view_count?: string | number;\n views?: string | number;\n like_count?: string | number;\n likes?: string | number;\n dislike_count?: string | number;\n dislikes?: string | number;\n repost_count?: string | number;\n reposts?: string | number;\n uploader?: string;\n uploader_url?: string;\n age_limit?: string | number;\n chapters?: Chapter[];\n age_restricted?: boolean;\n}\n\nexport interface Chapter {\n /** Chapter title */\n title: string;\n /** Chapter start time in seconds */\n start_time: number;\n}\n\nexport interface PlaylistInfo {\n /** The source of the playlist */\n source: string;\n /**\n * User requested.\n */\n member?: GuildMember;\n /**\n * User requested.\n */\n user?: User;\n /** Playlist songs. */\n songs: Song[];\n /**\n * Playlist name.\n */\n name?: string;\n /**\n * Playlist URL.\n */\n url?: string;\n /**\n * Playlist thumbnail.\n */\n thumbnail?: string;\n}\n"]}
|
package/dist/util.d.ts
CHANGED
|
@@ -43,5 +43,5 @@ export declare function isSupportedVoiceChannel(channel: any): channel is VoiceC
|
|
|
43
43
|
export declare function isGuildInstance(guild: any): guild is Guild;
|
|
44
44
|
export declare function resolveGuildID(resolvable: GuildIDResolvable): Snowflake;
|
|
45
45
|
export declare function isClientInstance(client: any): client is Client;
|
|
46
|
-
export declare function checkInvalidKey(target: Record<string, any>, source: Record<string, any
|
|
46
|
+
export declare function checkInvalidKey(target: Record<string, any>, source: Record<string, any> | string[], sourceName: string): void;
|
|
47
47
|
//# sourceMappingURL=util.d.ts.map
|