2026-07-24 07:16:23 +00:00
// Module ID: 9514
// Function ID: 74047
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 4808, 664, 669, 566, 686, 2]
2026-07-20 16:05:17 +00:00
2026-07-24 07:16:23 +00:00
// Module 9514 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import closure_3 from "set" ;
import closure_4 from "set" ;
import _possibleConstructorReturn from "_possibleConstructorReturn" ;
import _getPrototypeOf from "_getPrototypeOf" ;
import _inherits from "_inherits" ;
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import set from "_possibleConstructorReturn" ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) = > {
} ) ) ;
function _isNativeReflectConstruct() {
return closure_0 ;
}
const result = _isNativeReflectConstruct ( ) ;
}
2026-07-23 10:11:24 +00:00
function _createForOfIteratorHelperLoose ( iterable ) {
let closure_0 = iterable ;
iterable = "undefined" !== typeof Symbol ;
if ( iterable ) {
2026-07-20 16:05:17 +00:00
const _Symbol = Symbol ;
2026-07-23 10:11:24 +00:00
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( ! iterable ) {
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( iterable ) {
const iter = iterable . call ( iterable ) ;
2026-07-20 16:05:17 +00:00
const next = iter . next ;
return next . bind ( iter ) ;
} else {
const _Array = Array ;
2026-07-23 10:11:24 +00:00
let tmp = iterable ;
if ( ! Array . isArray ( iterable ) ) {
2026-07-20 16:05:17 +00:00
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( iterable ) {
if ( "string" === typeof iterable ) {
tmp2 = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
const toString = { } . toString ;
2026-07-23 10:11:24 +00:00
const substr = toString . call ( iterable ) . slice ( 8 , - 1 ) ;
2026-07-20 16:05:17 +00:00
let name = substr ;
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
name = iterable . constructor . name ;
2026-07-20 16:05:17 +00:00
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
2026-07-23 10:11:24 +00:00
let arr = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
2026-07-20 16:05:17 +00:00
}
}
tmp2 = arr ;
}
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
arr = Array . from ( iterable ) ;
const callResult = toString . call ( iterable ) ;
tmp3 = "Object" === substr && iterable . constructor ;
2026-07-20 16:05:17 +00:00
}
}
tmp = tmp2 ;
if ( ! tmp2 ) {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
}
if ( tmp ) {
2026-07-23 10:11:24 +00:00
closure_0 = tmp ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
2026-07-20 16:05:17 +00:00
return ( ) = > {
2026-07-23 10:11:24 +00:00
if ( closure_1 >= length . length ) {
2026-07-20 16:05:17 +00:00
let obj = { done : true } ;
} else {
obj = { done : false } ;
closure_1 = tmp3 + 1 ;
2026-07-23 10:11:24 +00:00
obj . value = length [ + closure_1 ] ;
2026-07-20 16:05:17 +00:00
}
return obj ;
} ;
}
}
function _arrayLikeToArray ( arg0 , arg1 ) {
let length ;
if ( tmp ) {
length = arg0 . length ;
}
const ArrayResult = Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
ArrayResult [ num ] = arg0 [ num ] ;
}
return ArrayResult ;
}
function _toTimestampMs ( voiceStartTime ) {
2026-07-23 10:11:24 +00:00
return new Date ( voiceStartTime * importDefault ( 664 ) . Millis . SECOND ) . getTime ( ) ;
2026-07-20 16:05:17 +00:00
}
function handleConnectionReset() {
set . clear ( ) ;
}
function handleGuildReset ( guild ) {
set . delete ( guild . guild . id ) ;
}
2026-07-23 10:11:24 +00:00
let set = new Set ( ) ;
2026-07-20 16:05:17 +00:00
let closure_10 = { } ;
2026-07-23 10:11:24 +00:00
let tmp3 = ( ( Store ) = > {
2026-07-20 16:05:17 +00:00
class VoiceChannelStartTimeStore {
constructor ( ) {
self = this ;
2026-07-23 10:11:24 +00:00
tmp = outer1_3 ( this , VoiceChannelStartTimeStore ) ;
obj = outer1_6 ( VoiceChannelStartTimeStore ) ;
tmp2 = outer1_5 ;
if ( outer1_11 ( ) ) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis ;
_Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_6 ;
2026-07-20 16:05:17 +00:00
tmp8 = arguments ;
2026-07-23 10:11:24 +00:00
constructResult = Reflect . construct ( obj , arguments , outer1_6 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments ;
tmp4 = arguments ;
constructResult = obj ( . . . arguments ) ;
}
return tmp2 ( self , constructResult ) ;
}
}
callback2 ( VoiceChannelStartTimeStore , Store ) ;
let obj = {
key : "initialize" ,
value() {
2026-07-23 10:11:24 +00:00
this . waitFor ( outer1_8 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
const items = [ obj , , ] ;
obj = {
key : "getStartTime" ,
value ( guild_id ) {
if ( null != guild_id ) {
if ( null != guild_id . guild_id ) {
2026-07-23 10:11:24 +00:00
if ( guild_id . type === VoiceChannelStartTimeStore ( outer1_2 [ 7 ] ) . ChannelTypes . GUILD_VOICE ) {
2026-07-20 16:05:17 +00:00
let tmp5 ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_10 [ guild_id . guild_id ] ) {
2026-07-20 16:05:17 +00:00
tmp5 = tmp4 [ guild_id . id ] ;
}
return tmp5 ;
}
}
}
}
} ;
items [ 1 ] = obj ;
obj = {
key : "hasRequestedStartTimes" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
return outer1_9 . has ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 2 ] = obj ;
return callback ( VoiceChannelStartTimeStore , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "initialize" ) . Store ) ;
2026-07-20 16:05:17 +00:00
tmp3 . displayName = "VoiceChannelStartTimeStore" ;
2026-07-23 10:11:24 +00:00
tmp3 = new tmp3 ( require ( "dispatcher" ) , {
2026-07-20 16:05:17 +00:00
GUILD_CREATE : handleGuildReset ,
GUILD_DELETE : handleGuildReset ,
CONNECTION_RESUMED : handleConnectionReset ,
CONNECTION_OPEN : handleConnectionReset ,
VOICE_CHANNEL_START_TIME_UPDATE : function handleVoiceChannelStartTimeUpdate ( id ) {
let guildId ;
let voiceStartTime ;
( { guildId , voiceStartTime } = id ) ;
2026-07-23 10:11:24 +00:00
if ( null == dependencyMap [ guildId ] ) {
dependencyMap [ guildId ] = { } ;
2026-07-20 16:05:17 +00:00
}
let tmp2 ;
if ( null != voiceStartTime ) {
tmp2 = _toTimestampMs ( voiceStartTime ) ;
}
2026-07-23 10:11:24 +00:00
dependencyMap [ guildId ] [ id . id ] = tmp2 ;
2026-07-20 16:05:17 +00:00
} ,
CHANNEL_INFO : function handleStartTimes ( guildId ) {
let iter2 ;
guildId = guildId . guildId ;
2026-07-23 10:11:24 +00:00
dependencyMap [ guildId ] = { } ;
2026-07-20 16:05:17 +00:00
const tmp = _createForOfIteratorHelperLoose ( guildId . channels ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
let value = iter . value ;
let voiceStartTime = value . voiceStartTime ;
2026-07-23 10:11:24 +00:00
let tmp2 = dependencyMap ;
2026-07-20 16:05:17 +00:00
let tmp3 ;
if ( null != voiceStartTime ) {
2026-07-23 10:11:24 +00:00
let tmp4 = _toTimestampMs ;
tmp3 = _toTimestampMs ( voiceStartTime ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
dependencyMap [ guildId ] [ value . id ] = tmp3 ;
2026-07-20 16:05:17 +00:00
iter2 = tmp ( ) ;
iter = iter2 ;
} while ( ! iter2 . done ) ;
}
} ,
FETCH_CHANNEL_INFO : function handleFetchChannelInfo ( guildId ) {
set . add ( guildId . guildId ) ;
}
} ) ;
2026-07-23 10:11:24 +00:00
let result = set . fileFinishedImporting ( "modules/channel/VoiceChannelStartTimeStore.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default tmp3 ;