!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self)["jessibuca-talk"]=t()}(this,(function(){"use strict";const e=r;function t(){const e=["1360890aQXWLK","2696057YRMJoT","once","off","104378YgEEEl","slice","push","length","1350532aSWfzA","3IRjPhH","9120vNsusT","apply","ctx","emit","keys","5DJjUjT","3832192wttkPH","3970872rvuXyb"];return(t=function(){return e})()}function r(e,s){const o=t();return(r=function(e,t){return o[e-=293]})(e,s)}!function(e,t){const s=r,o=e();for(;;)try{if(250840===-parseInt(s(300))/1+-parseInt(s(294))/2+parseInt(s(299))/3*(-parseInt(s(298))/4)+-parseInt(s(305))/5*(-parseInt(s(308))/6)+parseInt(s(309))/7+parseInt(s(306))/8+-parseInt(s(307))/9)break;o.push(o.shift())}catch(e){o.push(o.shift())}}(t);class s{on(e,t,r){const s=this.e||(this.e={});return(s[e]||(s[e]=[])).push({fn:t,ctx:r}),this}[e(310)](e,t,s){const o=this;function i(){const n=r;o[n(293)](e,i);for(var a=arguments[n(297)],c=new Array(a),l=0;l<a;l++)c[l]=arguments[l];t[n(301)](s,c)}return i._=t,this.on(e,i,s)}[e(303)](t){const r=e,s=((this.e||(this.e={}))[t]||[])[r(295)]();for(var o=arguments[r(297)],i=new Array(o>1?o-1:0),n=1;n<o;n++)i[n-1]=arguments[n];for(let e=0;e<s[r(297)];e+=1)s[e].fn.apply(s[e][r(302)],i);return this}[e(293)](t,r){const s=e,o=this.e||(this.e={});if(!t)return Object[s(304)](o).forEach((e=>{delete o[e]})),void delete this.e;const i=o[t],n=[];if(i&&r)for(let e=0,t=i[s(297)];e<t;e+=1)i[e].fn!==r&&i[e].fn._!==r&&n[s(296)](i[e]);return n[s(297)]?o[t]=n:delete o[t],this}}const o=_;!function(e,t){const r=_,s=e();for(;;)try{if(945610===-parseInt(r(441))/1*(parseInt(r(692))/2)+-parseInt(r(455))/3*(-parseInt(r(612))/4)+-parseInt(r(836))/5*(-parseInt(r(485))/6)+parseInt(r(548))/7+parseInt(r(857))/8*(-parseInt(r(508))/9)+-parseInt(r(854))/10*(parseInt(r(703))/11)+parseInt(r(534))/12)break;s.push(s.shift())}catch(e){s.push(s.shift())}}(S);const i={websocket:1,fetch:2,hls:3,webrtc:4,webTransport:5,aliyunRtc:6,ts:7};o(360),o(702),o(770),o(547),o(702),o(770),o(360),o(799),o(547),o(767),o(398),o(426),o(697);const n={player:o(490),playerAudio:o(787),playbackTF:o(469),talk:"talk",playVod:"playVod"},a={mp4:o(426),webm:o(781),flv:"flv",mov:o(849)},c={flv:o(697),m7s:o(544),hls:o(770),webrtc:o(799),webTransport:o(547),nakedFlow:"nakedFlow",fmp4:"fmp4",mpeg4:o(431),aliyunRtc:"aliyunRtc",ts:"ts",g711:"g711",pcm:o(564)};o(808),o(701),o(374),o(411),o(858);const l={mse:"mse",wcs:"wcs",offscreen:o(403),wasm:o(731),simd:o(607),mt:"mt",webrtc:o(799),hls:"hls",aliyunRtc:o(398)},u={canvas:"canvas",video:o(778)},h={debug:o(371),warn:o(367)},d={click:o(484),mouseDownAndUp:o(663)},p={normal:"normal",simple:o(742)},f={normal:o(749),small:"small"};o(798);o(819),o(646);const m={playIsNotPauseOrUrlIsNull:o(418),webglAlignmentError:o(773),webglContextLostError:"webgl 上下文丢失",mediaSourceH265NotSupport:o(396),mseSourceBufferFull:o(519),mediaSourceAppendBufferError:o(532),mseSourceBufferError:"解码失败",mseAddSourceBufferError:o(532),mseWorkerAddSourceBufferError:o(532),mediaSourceDecoderConfigurationError:o(532),mediaSourceTsIsMaxDiff:o(563),mseWidthOrHeightChange:o(563),mediaSourceAudioG711NotSupport:o(673),mediaSourceAudioInitTimeout:o(377),mediaSourceAudioNoDataTimeout:o(511),mediaSourceUseCanvasRenderPlayFailed:"MediaSource解码使用canvas渲染失败",mediaSourceBufferedIsZeroError:o(563),webcodecsH265NotSupport:o(396),webcodecsUnsupportedConfigurationError:o(532),webcodecsDecodeConfigureError:"初始化解码器失败",webcodecsDecodeError:o(631),webcodecsAudioInitTimeout:o(377),webcodecsAudioNoDataTimeout:o(511),wcsWidthOrHeightChange:o(631),wasmDecodeError:o(631),simdDecodeError:o(631),wasmWidthOrHeightChange:o(563),wasmUseVideoRenderError:o(705),videoElementPlayingFailed:o(705),simdH264DecodeVideoWidthIsTooLarge:o(772),networkDelayTimeout:o(690),fetchError:"请求失败",streamEnd:o(696),websocket1006Error:"流异常结束",websocketError:o(751),webrtcError:o(751),hlsError:o(751),decoderWorkerInitError:o(825),decoderWorkerWasmError:o(460),videoElementPlayingFailedForWebrtc:o(705),videoInfoError:o(783),webrtcStreamH265:o(617),delayTimeout:o(710),loadingTimeout:"加载超时重播失败",loadingTimeoutRetryEnd:o(436),delayTimeoutRetryEnd:o(710),flvDemuxBufferSizeTooLarge:o(732),audioChannelError:o(454),aliyunRtcError:o(751),mseWaitVideoCanplayTimeout:o(563),initDecoderWorkerTimeout:o(517)};o(490),o(367),o(480),o(442),o(421),o(620),o(688),o(507),o(822),o(749),o(702),o(697),o(731),o(426),o(388),o(778);o(639),o(405),o(539),o(753),o(816),o(633),o(566),o(453),o(419),o(537),o(505),o(739),o(569),o(446),o(438),o(622),o(520),o(629),o(540),o(502),o(562),o(509),o(683),o(390),o(641),o(400),o(575),o(456),o(492),o(609),o(655),o(820),o(832),o(579),o(573),o(414),o(656),o(848),o(694),o(792),o(788),o(550),o(409),o(640),o(826),o(590),o(404),o(571),o(647),o(449),o(741),o(558),o(763),o(567),o(552),o(541),o(415),o(715),o(593),o(803),o(786),o(771),o(584),o(637),o(578),o(413),o(615),o(740),o(559),o(824),o(489),o(488),o(577),o(391),o(716),o(754),o(702),o(378),o(488),o(707),o(577),o(651),o(823),o(590),o(575);const g={fullscreen:o(625),fullScreenByStart:"fullScreenByStart",webFullscreen:o(717),decoderWorkerInit:o(435),play:o(863),playing:o(553),pause:"pause",mute:"mute",load:"load",loading:o(486),zooming:o(843),drawingRect:"drawingRect",drawingRectInfo:o(724),videoInfo:o(624),timeUpdate:o(630),audioInfo:o(457),log:o(782),error:"error",kBps:o(503),timeout:o(390),delayTimeout:"delayTimeout",delayTimeoutRetryEnd:o(358),loadingTimeout:o(641),loadingTimeoutRetryEnd:o(634),stats:"stats",performance:"performance",videoSmooth:o(561),faceDetectActive:o(538),objectDetectActive:o(689),occlusionDetectActive:"occlusionDetectActive",imageDetectActive:"imageDetectActive",record:"record",recording:o(757),recordingTimestamp:o(726),recordStart:o(389),recordEnd:o(465),recordCreateError:o(636),recordBlob:o(440),recordCancel:o(533),buffer:o(577),videoFrame:o(695),videoSEI:"videoSEI",videoSEISyncPts:o(496),start:"start",metadata:o(401),resize:"resize",volumechange:"volumechange",volume:"volume",destroy:o(488),beforeDestroy:"beforeDestroy",streamEnd:o(797),streamRate:o(504),streamAbps:o(475),streamVbps:o(627),streamDts:o(424),streamSuccess:o(720),streamMessage:o(466),streamError:o(759),streamStats:o(429),streamEndInner:"streamEndInner",mseSourceOpen:"mseSourceOpen",mseSourceClose:o(784),mseSourceended:"mseSourceended",mseSourceStartStreaming:o(769),mseSourceEndStreaming:o(766),mseSourceBufferError:"mseSourceBufferError",mseAddSourceBufferError:o(713),mseWorkerAddSourceBufferError:"mseWorkerAddSourceBufferError",mseSourceBufferBusy:o(372),mseSourceBufferFull:o(743),videoWaiting:o(395),videoTimeUpdate:o(736),videoSyncAudio:o(780),playToRenderTimes:o(664),playbackTime:o(652),playbackTimestamp:o(793),playbackTimeScroll:"playbackTimeScroll",playbackPrecision:"playbackPrecision",playbackShowPrecisionChange:o(555),playbackJustTime:o(361),playbackStats:o(506),playbackSeek:o(714),playbackPause:o(626),playbackPauseOrResume:"playbackPauseOrResume",playbackRateChange:"playbackRateChange",playbackPreRateChange:"playbackPreRateChange",playbackEndInner:o(595),playbackEnd:o(722),playVodStats:o(730),playVodPause:o(750),playVodPauseOrResume:o(525),playVodRateChange:o(815),playVodTime:o(796),playVodBufferedTime:o(363),playVodTimeCache:"playVodTimeCache",playVodSeek:o(800),playVodSeekEnd:o(406),playVodVideoSeekingByMse:o(468),playVodVideoSeekedByMse:o(452),playVodCanplay:"playVodCanplay",playVodWaiting:o(644),playVodEndedAndReplay:o(794),playVodEnded:o(795),ptz:o(463),streamQualityChange:o(746),visibilityChange:o(543),netBuf:o(648),close:o(637),networkDelayTimeout:o(748),togglePerformancePanel:o(817),viewResizeChange:o(619),flvDemuxBufferSizeTooLarge:o(660),talkGetUserMediaSuccess:"talkGetUserMediaSuccess",talkGetUserMediaFail:o(393),talkGetUserMediaTimeout:o(359),talkStreamStart:o(416),talkStreamOpen:"talkStreamOpen",talkStreamClose:o(775),talkStreamError:o(811),talkStreamInactive:o(369),talkStreamMsg:o(478),webrtcDisconnect:o(653),webrtcFailed:o(422),webrtcClosed:o(835),webrtcChecking:"webrtcChecking",webrtcConnected:o(755),webrtcCompleted:"webrtcCompleted",webrtcOnConnectionStateChange:o(545),webrtcOnIceConnectionStateChange:o(597),crashLog:"crashLog",focus:o(745),blur:"blur",inView:o(417),visibilityHiddenTimeout:o(524),websocketOpen:o(590),websocketClose:o(823),websocketError:"websocketError",websocketStringMsg:"websocketStringMsg",aiObjectDetectorInfo:o(425),aiFaceDetectorInfo:o(427),aiOcclusionDetectResult:o(789),aiImageDetectResult:"aiImageDetectResult",playFailedAndPaused:o(461),audioResumeState:o(699),webrtcStreamH265:o(560),flvMetaData:o(802),talkFailedAndStop:"talkFailedAndStop",removeLoadingBgImage:"removeLoadingBgImage",memoryLog:o(581),downloadMemoryLog:o(516),pressureObserverCpu:o(487),currentPts:o(602),online:o(632),offline:o(735),networkState:"networkState",clickInitPlayer:o(373),audioSplitBuffer:o(523)};o(630),o(624),o(457),o(762),o(503),o(841),o(390),o(641),o(634),o(711),o(358),o(862),o(863),o(761),o(383),o(606),o(477),o(726),o(389),o(636),o(465),o(440),o(533),o(793),o(687),o(439),o(574),o(555),o(795),o(525),o(815),o(796),o(363),o(406),o(463),o(746),o(843),o(591),o(745),o(604),o(524),o(543),o(590),o(404),o(425),o(427),o(789),o(513),o(461),o(797),o(699),o(449),o(496),o(802),o(545),o(602),o(724),o(373);const w={talkStreamClose:g[o(775)],talkStreamError:g[o(811)],talkStreamInactive:g.talkStreamInactive,talkGetUserMediaTimeout:g.talkGetUserMediaTimeout,talkFailedAndStop:g.talkFailedAndStop,talkStreamMsg:g[o(478)]};o(585),o(630),o(457),o(762),o(641),o(711),o(358),o(863),o(606),o(591),o(823),o(461),o(699);const y={talkStreamError:g[o(811)],talkStreamClose:g[o(775)]},b={playError:"playIsNotPauseOrUrlIsNull",fetchError:"fetchError",fetchErrorWorker:o(391),websocketError:o(651),websocketOpenTimeout:"websocketOpenTimeout",webcodecsH265NotSupport:"webcodecsH265NotSupport",webcodecsDecodeError:o(471),webcodecsUnsupportedConfigurationError:o(804),webcodecsDecodeConfigureError:"webcodecsDecodeConfigureError",webcodecsAudioInitTimeout:o(818),webcodecsAudioNoDataTimeout:o(618),mediaSourceH265NotSupport:o(445),mediaSourceAudioG711NotSupport:"mediaSourceAudioG711NotSupport",mediaSourceAudioInitTimeout:o(765),mediaSourceAudioNoDataTimeout:o(450),mediaSourceDecoderConfigurationError:o(387),mediaSourceFull:g.mseSourceBufferFull,mseSourceBufferError:g[o(611)],mseAddSourceBufferError:g.mseAddSourceBufferError,mseWorkerAddSourceBufferError:g[o(686)],mediaSourceAppendBufferError:o(397),mediaSourceTsIsMaxDiff:"mediaSourceTsIsMaxDiff",mediaSourceUseCanvasRenderPlayFailed:o(494),mediaSourceBufferedIsZeroError:o(500),wasmDecodeError:"wasmDecodeError",wasmUseVideoRenderError:o(549),simdH264DecodeVideoWidthIsTooLarge:o(645),simdDecodeError:"simdDecodeError",hlsError:"hlsError",webrtcError:"webrtcError",webrtcClosed:g[o(835)],webrtcIceCandidateError:o(681),webglAlignmentError:o(700),wasmWidthOrHeightChange:o(447),mseWidthOrHeightChange:o(847),wcsWidthOrHeightChange:o(483),widthOrHeightChange:o(599),tallWebsocketClosedByError:o(672),flvDemuxBufferSizeTooLarge:g.flvDemuxBufferSizeTooLarge,audioChannelError:o(370),webglContextLostError:"webglContextLostError",videoElementPlayingFailed:o(805),videoElementPlayingFailedForWebrtc:"videoElementPlayingFailedForWebrtc",decoderWorkerInitError:o(434),decoderWorkerWasmError:o(530),videoInfoError:o(833),streamEnd:g[o(797)],websocket1006Error:o(528),delayTimeout:g[o(711)],loadingTimeout:g[o(641)],networkDelayTimeout:g[o(748)],fullscreenError:"fullscreenError",aliyunRtcError:o(600),mseWaitVideoCanplayTimeout:o(840),initDecoderWorkerTimeout:o(738),notSupportNewWasm:o(593),failedToAsynchronouslyPrepareWasm:"failedToAsynchronouslyPrepareWasm",playVodMp4Error:o(682),playVodFlvError:"playVodFlvError",mp4Error:o(785),...y},k={notConnect:o(704),open:o(621),close:o(637),error:o(762)};function S(){const e=["playbackTF","sourcebuffer-created","webcodecsDecodeError","wiperClose","FSimd","emptied","streamAbps","certificate","performance","talkStreamMsg","multiMouseover","decoder-pro.js","Wasm","csrc","wcsWidthOrHeightChange","click","10943382JRLuIi","loading","pressureObserverCpu","destroy","playbackIsPause","player","loadeddata","render","speed","mediaSourceUseCanvasRenderPlayFailed","multiMousemove","videoSEISyncPts","webrtc-connected","audio packet","webrtc-failed","mediaSourceBufferedIsZeroError","subtitle-segments","ghostWatermarkConfig","kBps","streamRate","isFmp4","playbackStats","none","9hyWfFw","watermarkConfig","stalled","等待音频数据超时","mse","aiImageDetectResult","3-4","remove-buffer","downloadMemoryLog","初始化解码worker超时","rightUp","缓冲区已满","isWebrtcForOthers","multiDrop","webrtc-closed","audioSplitBuffer","visibilityHiddenTimeout","playVodPauseOrResume","five-min","loadedmetadata","websocket1006Error","waiting","decoderWorkerWasmError","load-response-headers","初始化解码器失败","recordCancel","8187828DtxZpv","complete","multiDragleave","isFlv","faceDetectActive","isM7sCrypto","isTs","mseHandle","loadstart","visibilityChange","m7s","webrtcOnConnectionStateChange",'video/mp4;codecs="hev1.1.6.L120.90"',"webTransport","7880691VvaTgw","wasmUseVideoRenderError","isDropping","video decoder initialization failed","checkFirstIFrame","playing","ten-min","playbackShowPrecisionChange","paused","A key frame is required after configure() or flush()","aacSequenceHeader","sendWsMessage","webrtcStreamH265","videoSmooth","dynamicWatermarkConfig","流异常","pcm","seeked","widthOrHeightChangeReplayDelayTime","flvBufferData","download","isNakedFlow","buffering","closeEnd","hls-level-loaded","videoCodec","playbackRateChange","init","halfHour","buffer","updateConfig","videoCode","remote-candidate","memoryLog","down","switch-url-failed","initAudioCodec","load","0000000000","HEVC decoding is not supported","The user aborted a request","Simd","websocketOpen","crashLog","ALAW(g711a)","notSupportNewWasm","cruiseStart","playbackEndInner","memory access out of bounds","webrtcOnIceConnectionStateChange","canplaythrough","widthOrHeightChange","aliyunRtcError","opus","currentPts","zoomNarrow","blur","sourceclose","stats","simd","volumechange","decode","object","mseSourceBufferError","76HsheHI","full","left-down","resetVideoDecode","seeking","webrtc不支持H265","webcodecsAudioNoDataTimeout","viewResizeChange","decoder-pro-hard-not-wasm.js","open","isWebrtcForSRS","key","videoInfo","fullscreen$2","playbackPause","streamVbps","保存日志","isAliyunRtc","timeUpdate","解码失败","online","replayUseLastFrameShow","loadingTimeoutRetryEnd","base64","recordCreateError","close","endstreaming","playType","networkDelay","loadingTimeout","progress","image/jpeg","playVodWaiting","simdH264DecodeVideoWidthIsTooLarge","jbprovm","tempStream","netBuf","AbortError","buffereos","websocketError","playbackTime","webrtcDisconnect","remote-inbound-rtp","audioCode","videoPayload","canplay","local-candidate","sourceopen","flvDemuxBufferSizeTooLarge","H264(AVC)","人脸识别激活","mouseDownAndUp","playToRenderTimes","stream","Unsupported configuration","#FFCC00","startstreaming","canvas","focusNear","MEDIA_ERR_NETWORK","tallWebsocketClosedByError","硬解码不支持G711a/u音频格式","script","udp","leftDown","webgl2","avc","webrtc-checking","sourceended","webrtcIceCandidateError","playVodMp4Error","defaultStreamQuality","ALAW","wcsDecodeError","mseWorkerAddSourceBufferError","playbackPauseOrResume","jessibuca-pro-mp4-recorder-decoder.js","objectDetectActive","网络超时重播失败","candidate-pair","52JxPBdx","sei","wasmError","videoFrame","请求结束","flv","g711a","audioResumeState","webglAlignmentError","M7S","fetch","11QcYgUi","notConnect","video自动渲染失败","webrtc-completed","destroyEnd","self","oneHour","播放超时重播失败","delayTimeout","fiStop","mseAddSourceBufferError","playbackSeek","mseError","fetchClose","webFullscreen","leftUp","play() failed because the user didn't interact with the document first","streamSuccess","multiDblSelected","playbackEnd","tenMin","drawingRectInfo","blob","recordingTimestamp","media-source","停止录制","fogClose","playVodStats","wasm","FLV待解封装buffer过大","sei-in-time","Decoder failure","offline","videoTimeUpdate","image/webp","initDecoderWorkerTimeout","isMpeg4","fetchStream","flvScriptData","simple","mseSourceBufferFull","webcodecs","focus","streamQualityChange","metadata-parsed","networkDelayTimeout","normal","playVodPause","请求失败","worklet","supportHls265","fetchSuccess","webrtcConnected","MEDIA_ERR_SRC_NOT_SUPPORTED","recording","电子放大","streamError","load-start","pause","error","videoSequenceHeader","rightDown","mediaSourceAudioInitTimeout","mseSourceEndStreaming","worker","empty","mseSourceStartStreaming","hls","videoDecode","不支持该分辨率的视频","Webgl 渲染失败","no-audio-track","talkStreamClose","multiMouseout","遮挡物检查激活","video","av1","videoSyncAudio","webm","log","解析视频分辨率失败","mseSourceClose","mp4Error","audioDecode","playerAudio","iframeIntervalTs","aiOcclusionDetectResult","load-complete","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","workerFetch","playbackTimestamp","playVodEndedAndReplay","playVodEnded","playVodTime","streamEnd","JessibucaPro","webrtc","playVodSeek","wiperOpen","flvMetaData","failedToAsynchronouslyPrepareWasm","webcodecsUnsupportedConfigurationError","videoElementPlayingFailed","right-down","stop","FLV","idle","NotAllowedError","talkStreamError","ulaw","rtp","ttfb","playVodRateChange","pauseAndNextPlayUseLastFrameShow","togglePerformancePanel","webcodecsAudioInitTimeout","/crypto/","audioNalu","codec","default","websocketClose","mseUpdateVideoTimestamp","初始化worker失败","simdDecodeError",'video/mp4;codecs="hev1.4.10.L120.90"',"left","focusFar","outbound-rtp","MULAW(g711u)","audioAACSequenceHeader","videoInfoError","#000","webrtcClosed","5aIHLGY","created","webgpu","switch-url-success","mseWaitVideoCanplayTimeout","start","遮挡物检查","zooming","transport","Decoder error","left-up","mseWidthOrHeightChange","audioPayload","mov","connecting","multiDragstart","webgl","ceil","9023990ezysok","multiDragenter","webrtc-disconnected","14474776vPQPjE","WebTransport","人脸识别","退出全屏","fiveMin","fullscreen","play","timeupdate","hls-manifest-loaded","delayTimeoutRetryEnd","talkGetUserMediaTimeout","websocket","playbackJustTime","stream-parsed","playVodBufferedTime","peer-connection","demuxed-track","30min","warn","g711u","talkStreamInactive","audioChannelError","debug","mseSourceBufferBusy","clickInitPlayer","HLS","#343434","Decoding error","初始化音频解码器失败","sendMessage","操作盘","MPEG4","multiMousedown","MP3","mute","jtt","multiMouseup","load-retry","mediaSourceDecoderConfigurationError","vertical","recordStart","timeout","fetchErrorWorker","ws1006","talkGetUserMediaFail","3-1","videoWaiting","不支持硬解码H265","mediaSourceAppendBufferError","aliyunRtc","right","heartTimeout","metadata","multiSelected","offscreen","websocketStringMsg","isMulti","playVodSeekEnd","mp3","apertureFar","workerEnd","4-1","FMP4","flv-script-data","clearBuffer","videoNalu","mseFirstRenderTime","talkStreamStart","inView","播放地址不能为空","multiIndex","ended","decoder-pro-hard.js","webrtcFailed",'video/mp4;codecs="hev1.2.4.L120.90"',"streamDts","aiObjectDetectorInfo","mp4","aiFaceDetectorInfo","closed","streamStats","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C(wasm%E5%86%85%E9%83%A8%E4%BC%9A%E6%9A%82%E5%81%9C%E8%A7%A3%E7%A0%81)%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","mpeg4","关闭电子放大","durationchange","decoderWorkerInitError","decoderWorkerInit","加载超时重播失败","active","isWebrtc","playbackPreRateChange","recordBlob","62586QYShGt","decoder-pro-audio.js","delta","1-1","mediaSourceH265NotSupport","isHls","wasmWidthOrHeightChange","tcp","videoSEI","mediaSourceAudioNoDataTimeout","sender","playVodVideoSeekedByMse","controlSize","音频通道错误","260931hegLEJ","initVideo","audioInfo","MEDIA_ERR_DECODE","decoder-pro-audio-player.js","wasm解码失败","playFailedAndPaused","ratechange","ptz","性能面板激活","recordEnd","streamMessage","Unsupported audio format","playVodVideoSeekingByMse"];return(S=function(){return e})()}o(613),o(568),o(635),o(725),o(725),o(380),o(661),o(592),o(831),o(382),o(684),o(744),o(852),o(677),o(838),o(512),o(770),o(799),o(669),o(623),o(443),o(546),o(423),o(827),o(420),o(621),o(428),Math[o(853)](40);o(576),o(861),o(554),o(526),o(366),o(709),o(576),o(723),o(861),o(399),o(582),o(846),o(614),o(806),o(399),o(582),o(828),o(718),o(676),o(518),o(764),o(807),o(712),o(603),o(408),o(829),o(670),o(594),o(729),o(801),o(472);const E={g711a:"g711a",g711u:o(368),pcm:o(564),opus:o(601)};o(643),o(737),o(605),o(659),o(680),o(668),o(638),o(529),o(356),o(462),o(510),o(642),o(678),o(779),o(557),o(666),o(734),o(376),o(845),o(587),o(588),o(649),o(649),o(486),o(553),o(556),o(488);const I={pcma:8,g711a:8,pcmu:0,g711u:0,jpeg:26,h264:96,h265:97,opus:98,aac:99},A={empty:o(768),rtp:"rtp",jtt:o(384)},v={tcp:o(448),udp:o(675)};o(665);const T={open:"open",close:"close",error:o(762),message:"message"},C={worklet:"worklet",script:o(674)},B={encType:E[o(698)],packetType:A[o(813)],packetTcpSendType:v[o(448)],rtpSsrc:o(586),numberChannels:1,sampleRate:8e3,sampleBitsWidth:16,frameDuration:20,debug:!1,debugLevel:h.warn,testMicrophone:!1,saveToTempFile:!1,audioBufferLength:160,engine:C[o(752)],checkGetUserMediaTimeout:!1,getUserMediaTimeout:1e4,audioConstraints:{latency:!0,noiseSuppression:!0,autoGainControl:!0,echoCancellation:!0,sampleRate:48e3,channelCount:1},isG711a:!1,isG711u:!1,jttSimNumber:null,jttChannelNumber:1,openWebsocketHeart:!1,websocketHeartInterval:15,websocketHeartContent:"",websocketOpenTimeout:8},M={worklet:o(752),script:o(674),active:o(437)};function _(e,t){const r=S();return(_=function(e,t){return r[e-=356]})(e,t)}o(375),o(667),o(834),o(721),o(402),o(479),o(776),o(385),o(381),o(495),o(851),o(855),o(536),o(521),o(394),o(410),o(444),o(514),o(778),o(787),o(367),o(702),o(697),o(459),o(501),o(357),o(572),o(365),o(412),o(747),o(814),o(386),o(760),o(493),o(790),o(531),o(693),o(733),o(774),o(515),o(650),o(470),o(583),o(839),o(362),o(809),o(850),o(570),o(762),o(535),o(671),o(458),o(756),o(551),o(498),o(467),o(719),o(810),o(596),o(691),o(476),o(821),o(482),o(658),o(830),o(364),o(580),o(654),o(451),o(665),o(844),o(727),o(392),o(685),o(759),o(812),o(407),o(601),o(679),o(497),o(706),o(856),o(499),o(522),o(837),o(486),typeof window===o(610)&&window.window===window?window:"object"==typeof self&&self[o(708)]===self?self:typeof global===o(610)&&global.global===global&&global,o(657),o(598),o(535),o(433),o(474),o(420),o(762),o(491),o(527),o(542),o(863),o(553),o(642),o(462),o(565),o(616),o(356),o(608),o(529),o(762),o(860),o(728),o(379),o(758),o(432),o(464),o(859),o(662),o(842),o(777),o(628),o(481),o(589),o(473);const D=o(791);o(430);var U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var F=Object.freeze({__proto__:null,commonjsGlobal:U,commonjsRequire:function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")},unwrapExports:function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},createCommonjsModule:function(e,t){return e(t={exports:{}},t.exports),t.exports},getCjsExportFromNamespace:function(e){return e&&e.default||e}}),R=W;function W(e,t){var r=L();return(W=function(e,t){return r[e-=190]})(e,t)}function L(){var e=["off","webkitCurrentFullScreenElement","mozCancelFullScreen","exitFullscreen","754817hbRWxO","requestFullscreen","msExitFullscreen","request","2119976xTuATo","catch","1580120DVqPEs","841314OWXdBB","MSFullscreenError","mozRequestFullScreen","10PvAxLN","webkitExitFullscreen","fullscreenElement","webkitCancelFullScreen","1256852SSqquJ","createCommonjsModule","isEnabled","screenfull","exports","isFullscreen","defineProperties","msRequestFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","8AcLkeu","MSFullscreenChange","mozFullScreenElement","exit","undefined","1007217SWfSMG","addEventListener","then","msFullscreenEnabled","mozfullscreenerror","error","webkitfullscreenerror","bind","length","3hWsMmG","documentElement","webkitRequestFullScreen","600210ruEPIm","change","webkitRequestFullscreen","fullscreenchange","document","fullscreenerror","removeEventListener","mozFullScreenEnabled"];return(L=function(){return e})()}!function(e,t){for(var r=W,s=e();;)try{if(321711===-parseInt(r(209))/1+parseInt(r(235))/2+parseInt(r(206))/3*(parseInt(r(225))/4)+-parseInt(r(227))/5+-parseInt(r(228))/6+parseInt(r(221))/7*(parseInt(r(192))/8)+parseInt(r(197))/9*(parseInt(r(231))/10))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(L),F[R(236)]((function(e){var t,r,s,o,i,n;t=W,r=typeof window!==t(196)&&typeof window[t(213)]!==t(196)?window.document:{},s=e[t(239)],o=function(){for(var e,s=t,o=[[s(222),s(220),s(233),"fullscreenEnabled","fullscreenchange",s(214)],[s(211),s(232),s(190),s(191),"webkitfullscreenchange","webkitfullscreenerror"],[s(208),s(234),s(218),s(234),"webkitfullscreenchange",s(203)],[s(230),s(219),s(194),s(216),"mozfullscreenchange",s(201)],[s(242),s(223),"msFullscreenElement",s(200),s(193),s(229)]],i=0,n=o[s(205)],a={};i<n;i++)if((e=o[i])&&e[1]in r){for(i=0;i<e.length;i++)a[o[0][i]]=e[i];return a}return!1}(),i={change:o[t(212)],error:o[t(214)]},n={request:function(e,s){return new Promise(function(t,i){var n=W,a=function(){this.off("change",a),t()}[n(204)](this);this.on(n(210),a);var c=(e=e||r[n(207)])[o[n(222)]](s);c instanceof Promise&&c[n(199)](a).catch(i)}[t(204)](this))},exit:function(){return new Promise(function(e,t){var s=W;if(this[s(240)]){var i=function(){var t=s;this[t(217)](t(210),i),e()}[s(204)](this);this.on(s(210),i);var n=r[o.exitFullscreen]();n instanceof Promise&&n[s(199)](i)[s(226)](t)}else e()}[t(204)](this))},toggle:function(e,r){var s=t;return this[s(240)]?this[s(195)]():this[s(224)](e,r)},onchange:function(e){var r=t;this.on(r(210),e)},onerror:function(e){var r=t;this.on(r(202),e)},on:function(e,s){var o=i[e];o&&r[t(198)](o,s,!1)},off:function(e,s){var o=i[e];o&&r[t(215)](o,s,!1)},raw:o},o?(Object[t(241)](n,{isFullscreen:{get:function(){return Boolean(r[o[t(233)]])}},element:{enumerable:!0,get:function(){return r[o[t(233)]]}},isEnabled:{enumerable:!0,get:function(){return Boolean(r[o.fullscreenEnabled])}}}),s?e[t(239)]=n:window[t(238)]=n):s?e.exports={isEnabled:!1}:window[t(238)]={isEnabled:!1}}))[R(237)];const x=P;!function(e,t){const r=P,s=e();for(;;)try{if(147953===-parseInt(r(125))/1+-parseInt(r(136))/2+parseInt(r(116))/3+-parseInt(r(130))/4*(-parseInt(r(137))/5)+parseInt(r(110))/6+parseInt(r(127))/7*(parseInt(r(113))/8)+parseInt(r(123))/9*(parseInt(r(129))/10))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(O);x(133),x(124),x(119),x(117),x(115),x(122),x(112);function P(e,t){const r=O();return(P=function(e,t){return r[e-=110]})(e,t)}function O(){const e=["destroy","buffer","_buffer_index","273570yjbiEX","10qpLzCC","_current_word","514866xyGRhX","set","readSEG","8tCwgjf","_current_word_bits_left","_skipLeadingZero","339972YmqkUv","readBool","subarray","readBits","_total_bytes","_total_bits","readUEG","1827WEJLek","_fillCurrentWord","284977aQyJgq","byteLength","1307285jMAwDf","getUint32","8530KOuWQp","21332ZJMCaf","min","_buffer"];return(O=function(){return e})()}const G=V;!function(e,t){const r=V,s=e();for(;;)try{if(215729===parseInt(r(512))/1+-parseInt(r(513))/2+parseInt(r(552))/3*(-parseInt(r(505))/4)+-parseInt(r(486))/5*(-parseInt(r(536))/6)+parseInt(r(523))/7*(parseInt(r(484))/8)+parseInt(r(520))/9*(parseInt(r(490))/10)+parseInt(r(535))/11*(-parseInt(r(529))/12))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(j);const N=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350,-1,-1,-1];function V(e,t){const r=j();return(V=function(e,t){return r[e-=483]})(e,t)}function j(){const e=["more than 2 numSubFrames Not Supported","sampling_freq_index","iserro","current_syncword_offset_","2133RqBdyC","bufpos","toLowerCase","2254371gBfBOY","chan_config","error","sequenceHeader","Could not found ADTS syncword until payload end","audio_object_type","188340oSLyuz","slice","length","channels","allStreamsSameTimeFraming zero is Not Supported","channel: ","473ZLjkgv","78aKKYjH","mp4a.40.","readBits","byteLength","getIncompleteData","channel_config","Flv: AAC invalid sampling frequency index!","findNextSyncwordOffset","AAC","read_golomb","data_","sampleRate: ","eof_flag_","look","sbr","log","3396AsmCfv","navigator","readByte","buffer","destroy","8QetKJX","buflen","108415iGxbtn","sample_rate","bufoff","StreamMuxConfig Missing","17000OVfCvV","readNextAACFrame","data","sampling_index","subarray","more than 2 numLayer Not Supported",". Only frameLengthType = 0 Supported","read","other_data_present","android","push","frameLengthType = ","sampling_frequency","Flv: AAC invalid channel configuration","object_type","564SEYtpC","ext_object_type","unshift","getLATMValue","set","readBool","mp4a.40.2","372218MCmDVS","657648uCjVMQ","has_last_incomplete_data","indexOf"];return(j=function(){return e})()}G(549),G(545);G(543),G(491);G(543),G(508),G(540);function z(e,t){const r=H();return(z=function(e,t){return r[e-=152]})(e,t)}function H(){const e=["402391UiyzIV","length","332722gylVRZ","1000515KLDCFL","byteLength","set","1017380iTEwjp","shift","setUint32","354412xGuwXG","push","toString","subarray","583446NXkfVC","146976cTBoij"];return(H=function(){return e})()}!function(e,t){const r=z,s=e();for(;;)try{if(246265===-parseInt(r(165))/1+parseInt(r(152))/2+-parseInt(r(164))/3+parseInt(r(159))/4+parseInt(r(153))/5+parseInt(r(163))/6+parseInt(r(156))/7)break;s.push(s.shift())}catch(e){s.push(s.shift())}}(H);const q=$;function J(){const e=$;return(new Date)[e(536)]()}!function(e,t){const r=$,s=e();for(;;)try{if(291889===-parseInt(r(430))/1+-parseInt(r(612))/2*(parseInt(r(451))/3)+-parseInt(r(531))/4*(parseInt(r(483))/5)+-parseInt(r(691))/6*(-parseInt(r(606))/7)+-parseInt(r(640))/8*(-parseInt(r(662))/9)+parseInt(r(665))/10+-parseInt(r(552))/11*(-parseInt(r(696))/12))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(Z),(()=>{const e=$;try{if(typeof WebAssembly===e(632)&&typeof WebAssembly[e(543)]===e(410)){const t=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(t instanceof WebAssembly[e(664)])return new(WebAssembly[e(535)])(t)instanceof WebAssembly[e(535)]}}catch(e){}})();q(496),q(510),q(521);const Y=q(571);const Q=()=>(()=>{const e=q,t=window[e(421)][e(378)];return/MicroMessenger/i[e(591)](t)})()&&function(){const e=q,t=window[e(421)].userAgent.toLowerCase();return/android/i[e(591)](t)}();function Z(){const e=["sampleRate","lineWidth","transferControlToOffscreen","pow","getContext","touchmove","script","mozGetUserMedia","h265","chrome","max","match","borderWidth","function","#000","WebGL2RenderingContext","type","hev1.1.6.L120.90","atob","not compiled with thread support, using thread emulation","borderColor","font","hour","element","navigator","QQBrowser","numberOfFrames","forEach","edge","webkitFullscreenElement","length","avc1.","map","4097kvMRJT","fromCharCode","not compiled with thread support","getUint8","GB/s","application/360softmgrplugin","destination","onerror","nLp","createEvent","drawImage","ActiveXObject","substring","content","srcElement","setAttribute","toFixed","random","kSliceBLA_W_LP","dispatchEvent","protocol","1221EYRWkV","body","message","quality","text","stringify","setUint32","AudioData","attachShadow","Edg","height","trim","ALAW","result","width","pathname","Chrome","h264","high","charCodeAt","apply","isConfigSupported","target","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","createElement","kSliceBLA_N_LP","experimental-webgl","imageSmoothingQuality","display","click","application/vnd.chromium.remoting-viewer","green yuv","270295exRHoP","createObjectURL","getMinutes","hostname","data","byteLength","0 Bytes","mouseup","appendChild","isFullscreen","filter","string","AAC",'"production"',"webkit-3d","webm","hev","fillText","dataset","top","min","setUint16","performance","textAlign","file","subarray","hev2",'"delaytime"',"[object DOMException]","-o-user-select","user-select","bottom","mediaDevices","clientX","scrollTop","green","-ms-user-select","endsWith",'"2025-3-1"',"download","360SE","imageSmoothingEnabled","onload","showModalDialog","Reserved SBR extensions is not implemented","MB/s","buffer","hev3","36XKKqrz","start","xxxxxxxxxxxx4xxx","audioWorklet","Instance","getTime","getParameter","ManagedMediaSource","PB/s","sps","WebGLRenderingContext","playbackRate","instantiate","getUserMedia","kSliceRSV_IRAP_VCL23","demuxUseWorker","text/javascript","second","push","isTypeSupported","format","14179dfXuEx","px Arial","block","src","100","MediaStreamTrackGenerator","backgroundColor","mimeTypes","substr","safari","useWCS","status","hev4","true","indexOf","getAttribute","set","MediaStream","wow64","1740758400000","Safari","getImageData","9999999","close","log","toString","ZB/s","VideoEncoder.isConfigSupported is not a function","div","search","EB/s","VideoEncoder.isConfigSupported() result is not supported","fmt ","setHours","document","setInt8","open","pageY","noteOn","test","webkitGetUserMedia","getElementById","slice","illegal icc","application/asx","style","html","-webkit-tap-highlight-color","toLowerCase","getHours","left","floor","createBuffer","copyright","266Dusepn","kSliceBLA_W_RADL","PressureObserver","error","pageX","line","1922zDeIZB","charAt","resume","color","firefox","isEnabled","360EE","replace","createImageBitmap","children","Bytes","VideoDecoder","mousemove","join",'video/mp4; codecs="',"rect","KB/s","save","WAVE","application/mozilla-npqihooquicklogin","object","toDataURL","data-","memory","readyState","pps","Anonymous","100%","8bkYBQB","right","validate","shadowRoot","touches","TB/s","useMSE","origin","clientY","getFullYear","solid","MediaSource","webgl2","wow32","revokeObjectURL","strokeRect","location","readAsArrayBuffer","objectFit","canvas","AudioDecoder","RIFF","2524455bOfPUa","assign","Module","2557760VaIBfI","pointer-events: none !important; display: block !important","hidden","touchstart","fontSize","hev5","QihooBrowser","Worker","image/png","getSeconds","iFrame","paused","f32-planar","visibility","application/vnd.apple.mpegurl","split","documentElement","-webkit-touch-callout","removeChild","useOffscreen","0 KB/s","opera","mseDecodeAudio","contain","now","putImageData","12918LJhczo","crossOrigin","data:","fontFamily","scrollLeft","5172WKluOS","URL","img","setInt16","none","canConstructInDedicatedWorker","round","parse","version","repeat","opacity","image","undefined","sequenceHeader","hasAudio","application/hwepass2001.installepass2001","overflow","application/javascript","container","getDate","QHBrowser","call","-webkit-text-size-adjust","setInt32","MULAW","event","userAgent","then","craNut","strokeStyle","xxxx","touchend","VideoFrame","[object Number]","px 宋体","gpu","prototype","failed to asynchronously prepare wasm","restore","copyToChannel","createBufferSource","keys","href","wcsDecodeAudio","ended"];return(Z=function(){return e})()}function K(e){const t=q;let r="";if(typeof e===t(632))try{r=JSON[t(456)](e),r=JSON[t(703)](r)}catch(t){r=e}else r=e;return r}function X(e){return!0===e||e===q(565)}function $(e,t){const r=Z();return($=function(e,t){return r[e-=374]})(e,t)}function ee(){return J()>=Number(Y)}const te=se;function re(){const e=["resample","outputBufferSize","multiTap","outputBuffer","1225340NUpKiZ","lastWeight","toSampleRate","channels","806813PaenKf","3009105vBVIuc","ceil","destroy","initializeBuffers","inputBufferSize","186740wXTDOn","linearInterpolation","Invalid settings specified for the resampler.","subarray","192nqGBxv","5501504ScXWgm","ratioWeight","length","Buffer was of incorrect sample length.","bufferSlice","resampler","slice","fromSampleRate","tailExists","lastOutput","4789832iysvJw","7516033AHltBP"];return(re=function(){return e})()}function se(e,t){const r=re();return(se=function(e,t){return r[e-=147]})(e,t)}!function(e,t){const r=se,s=e();for(;;)try{if(658789===parseInt(r(171))/1+parseInt(r(167))/2+parseInt(r(172))/3+-parseInt(r(161))/4+parseInt(r(177))/5*(parseInt(r(150))/6)+-parseInt(r(162))/7+-parseInt(r(151))/8)break;s.push(s.shift())}catch(e){s.push(s.shift())}}(re);class oe{constructor(e){const t=se,{fromSampleRate:r,toSampleRate:s,channels:o,inputBufferSize:i}=e;if(!r||!s||!o)throw new Error(t(148));this.resampler=null,this[t(158)]=r,this[t(169)]=s,this[t(170)]=o||0,this.inputBufferSize=i,this.initialize()}[te(174)](){const e=te;this[e(156)]=null,this[e(158)]=null,this[e(169)]=null,this[e(170)]=null,this[e(176)]=null}initialize(){const e=te;this[e(158)]==this[e(169)]?(this[e(156)]=e=>e,this[e(152)]=1):(this[e(158)]<this[e(169)]?(this[e(147)](),this[e(168)]=1):(this[e(165)](),this[e(159)]=!1,this[e(168)]=0),this[e(175)](),this[e(152)]=this.fromSampleRate/this[e(169)])}[te(155)](e){const t=te;try{return this[t(166)][t(149)](0,e)}catch(r){try{return this.outputBuffer[t(153)]=e,this[t(166)]}catch(r){return this[t(166)][t(157)](0,e)}}}[te(175)](){const e=te;this[e(164)]=Math[e(173)](this[e(176)]*this[e(169)]/this[e(158)]/this[e(170)]*1.0000004768371582)+this.channels+this[e(170)];try{this[e(166)]=new Float32Array(this.outputBufferSize),this[e(160)]=new Float32Array(this[e(170)])}catch(t){this.outputBuffer=[],this[e(160)]=[]}}[te(147)](){const e=te;this[e(156)]=t=>{const r=e;let s,o,i,n,a,c,l,u,h,d=t.length,p=this[r(170)];if(d%p!=0)throw new Error("Buffer was of incorrect sample length.");if(d<=0)return[];for(s=this.outputBufferSize,o=this[r(152)],i=this.lastWeight,n=0,a=0,c=0,l=0,u=this[r(166)];i<1;i+=o)for(a=i%1,n=1-a,this.lastWeight=i%1,h=0;h<this[r(170)];++h)u[l++]=this[r(160)][h]*n+t[h]*a;for(i-=1,d-=p,c=Math.floor(i)*p;l<s&&c<d;){for(a=i%1,n=1-a,h=0;h<this[r(170)];++h)u[l++]=t[c+(h>0?h:0)]*n+t[c+(p+h)]*a;i+=o,c=Math.floor(i)*p}for(h=0;h<p;++h)this[r(160)][h]=t[c++];return this[r(155)](l)}}[te(165)](){const e=te;this[e(156)]=t=>{const r=e;let s,o,i,n,a,c,l,u,h,d,p,f=t[r(153)],m=this.channels;if(f%m!=0)throw new Error(r(154));if(f<=0)return[];for(s=this.outputBufferSize,o=[],i=this[r(152)],n=0,c=0,l=0,u=!this[r(159)],this[r(159)]=!1,h=this[r(166)],d=0,p=0,a=0;a<m;++a)o[a]=0;do{if(u)for(n=i,a=0;a<m;++a)o[a]=0;else{for(n=this.lastWeight,a=0;a<m;++a)o[a]=this.lastOutput[a];u=!0}for(;n>0&&c<f;){if(l=1+c-p,!(n>=l)){for(a=0;a<m;++a)o[a]+=t[c+(a>0?a:0)]*n;p+=n,n=0;break}for(a=0;a<m;++a)o[a]+=t[c++]*l;p=c,n-=l}if(0!==n){for(this[r(168)]=n,a=0;a<m;++a)this[r(160)][a]=o[a];this[r(159)]=!0;break}for(a=0;a<m;++a)h[d++]=o[a]/i}while(c<f&&d<s);return this[r(155)](d)}}[te(163)](e){const t=te;return this[t(158)]==this.toSampleRate?this[t(152)]=1:(this.fromSampleRate<this.toSampleRate?this[t(168)]=1:(this[t(159)]=!1,this[t(168)]=0),this[t(175)](),this[t(152)]=this.fromSampleRate/this[t(169)]),this[t(156)](e)}}function ie(){const e=["28cjCkYu","111310YOcueS","8MUPSuM","494130oBtWPd","1335856clNPcO","1470042bxqxqk","1620729zJkotJ","1628zxZimw","5mchHth","286905lRrROr","min","max","2464554rZRCZA","length"];return(ie=function(){return e})()}function ne(e,t){const r=ie();return(ne=function(e,t){return r[e-=124]})(e,t)}function ae(e,t){const r=fe();return(ae=function(e,t){return r[e-=368]})(e,t)}!function(e,t){const r=ne,s=e();for(;;)try{if(798403===-parseInt(r(125))/1+parseInt(r(127))/2+parseInt(r(131))/3*(-parseInt(r(124))/4)+parseInt(r(130))/5*(-parseInt(r(134))/6)+-parseInt(r(136))/7*(parseInt(r(126))/8)+parseInt(r(128))/9+-parseInt(r(137))/10*(-parseInt(r(129))/11))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(ie),function(e,t){const r=ae,s=e();for(;;)try{if(846923===parseInt(r(372))/1*(parseInt(r(373))/2)+parseInt(r(384))/3+-parseInt(r(370))/4+parseInt(r(368))/5*(parseInt(r(380))/6)+parseInt(r(379))/7*(parseInt(r(377))/8)+-parseInt(r(375))/9+parseInt(r(371))/10*(-parseInt(r(383))/11))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(fe);const ce=132,le=[255,511,1023,2047,4095,8191,16383,32767];function ue(e,t,r){for(let s=0;s<r;s++)if(e<=t[s])return s;return r}function he(e){const t=ae,r=[];return Array[t(378)].slice[t(376)](e)[t(385)](((e,t)=>{r[t]=function(e){let t,r,s;return e>=0?t=213:(t=85,(e=-e-1)<0&&(e=32767)),r=ue(e,le,8),r>=8?127^t:(s=r<<4,s|=r<2?e>>4&15:e>>r+3&15,s^t)}(e)})),r}function de(e){const t=ae,r=[];return Array.prototype[t(386)][t(376)](e).forEach(((e,t)=>{r[t]=function(e){let t=0;e<0?(e=ce-e,t=127):(e+=ce,t=255);let r=ue(e,le,8);return r>=8?127^t:(r<<4|e>>r+3&15)^t}(e)})),r}function pe(e){const t=[];return e[ae(385)]((e=>{t[e]=function(e){let t=((15&(e=~e))<<3)+ce;return t<<=(112&e)>>4,128&e?ce-t:t-ce}(e)})),t}function fe(){const e=["250HunApc","MULAW","1707076UZqQGL","20fFfSMv","5jluhdo","556678CVWtzJ","ALAW","4171032iaXhzq","call","8DMeNqS","prototype","1404753PcQYIW","42144sPsPnD","set","length","5411604SawRBm","2332482RVSUYK","forEach","slice"];return(fe=function(){return e})()}function me(){const e=["warn","[❌❌❌][","[❗❗❗][","112QBjjZM","debugUuid","1913483axdSUc","863046cLFvPM","96790wCCZhl","15805saZWnq","debug","_opt","7oIeLCv","3832763aaRZJd","524cdcrQG","[✅✅✅][","12dDdzIV","10FHqPOM","length","debugLevel","log","2494482SBtRck","JbPro","7ZJDADx","error","137736phgTBK"];return(me=function(){return e})()}function ge(e,t){const r=me();return(ge=function(e,t){return r[e-=237]})(e,t)}!function(e,t){const r=ge,s=e();for(;;)try{if(212107===parseInt(r(259))/1*(parseInt(r(255))/2)+parseInt(r(254))/3+-parseInt(r(261))/4*(parseInt(r(256))/5)+-parseInt(r(243))/6*(parseInt(r(245))/7)+-parseInt(r(251))/8*(-parseInt(r(247))/9)+-parseInt(r(239))/10*(-parseInt(r(260))/11)+-parseInt(r(238))/12*(parseInt(r(253))/13))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(me);class we{constructor(e){const t=ge;this[t(242)]=function(r){const s=t;if(e[s(258)][s(241)]==h[s(257)]){const t=e[s(258)].debugUuid?"["+e[s(258)][s(252)]+"]":"";for(var o=arguments.length,i=new Array(o>1?o-1:0),n=1;n<o;n++)i[n-1]=arguments[n];console[s(242)](s(244)+t+s(237)+r+"]",...i)}},this[t(248)]=function(r){const s=t;if(e._opt[s(241)]==h[s(257)]||e[s(258)][s(241)]==h[s(248)]){const t=e[s(258)][s(252)]?"["+e[s(258)][s(252)]+"]":"";for(var o=arguments[s(240)],i=new Array(o>1?o-1:0),n=1;n<o;n++)i[n-1]=arguments[n];console.log(s(244)+t+s(250)+r+"]",...i)}},this[t(246)]=function(r){const s=t,o=e[s(258)][s(252)]?"["+e[s(258)][s(252)]+"]":"";for(var i=arguments[s(240)],n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];console[s(246)](s(244)+o+s(249)+r+"]",...n)}}}const ye=be;function be(e,t){const r=Se();return(be=function(e,t){return r[e-=439]})(e,t)}!function(e,t){const r=be,s=e();for(;;)try{if(772731===parseInt(r(443))/1*(-parseInt(r(439))/2)+-parseInt(r(452))/3*(parseInt(r(461))/4)+parseInt(r(460))/5*(-parseInt(r(462))/6)+parseInt(r(444))/7+parseInt(r(448))/8+-parseInt(r(457))/9*(-parseInt(r(441))/10)+-parseInt(r(453))/11*(-parseInt(r(446))/12))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(Se);class ke{constructor(e){const t=be;this[t(449)]=[],this[t(440)]=this[t(440)][t(454)](this),this[t(445)]=e}[ye(440)](e,t,r){const s=ye;let o=arguments[s(455)]>3&&void 0!==arguments[3]?arguments[3]:{};if(!e)return;if(Array[s(442)](t))return t[s(459)]((t=>this[s(440)](e,t,r,o)));e.addEventListener(t,r,o);const i=()=>{const i=s;var n;(n=e[i(458)])&&typeof n===q(410)&&e[i(458)](t,r,o)};return this.destroys.push(i),i}[ye(447)](){const e=ye;this[e(445)][e(450)](e(456),e(447)),this[e(449)][e(451)]((e=>e())),this[e(449)]=[]}}function Se(){const e=["forEach","2955363DLwSkf","5124218ijYYPb","bind","length","Events","702873soBiNn","removeEventListener","map","10bInWSY","4aYhlIg","1850106TtrJjQ","2yoGyYW","proxy","150sHbelt","isArray","775378iAuRPM","2371404wuLsaH","master","12nQPOew","destroy","9390936girJRv","destroys","debugLog"];return(Se=function(){return e})()}const Ee=Ae;function Ie(){const e=["_initIntervalScriptNode","active","player","right","duration","engineType","686682zdvVpd","_opt","set","play","2872845KFRHOd","createGain","port","onaudioprocess","_getAutoAudioEngineType","worklet","webkitAudioContext","TAG_NAME","874654BSOfaT","postMessage","addModule","565482AvCBaL","parentNode","stashBuffer","audioChannel","script","left","createBuffer","destroy","mediaStreamAudioDestinationNode","$audio","function","audioContext","_initWorkletScriptNode()","bufferList","createMediaStreamDestination","closeAudio","getBufferListDuration","createBufferSource","_supportAudioWorklet","105314iDcUtz","value","gain","_initScriptNode","fill","gainNode","debugLog","108uqedBW","audioBufferSize","scriptNode","outputBuffer","push","_isMoreThanMinBufferDuration","srcObject","disconnect","_getAudioBufferSizeByType","destination","scriptNodeInterval","18Fqabnt","84kKszyv","AudioContext","_createAudioContext","shift","clear","isMute","_initWorkletScriptNode","stream","buffer","subarray","scriptStartTime","140WYMQex","connect","removeChild","_getAudioChannel","audioWorklet","data","init","_initProcessScriptNode","getChannelData","229930QfyKuV","sampleRate","zero","size","isG711u","length","321528prrJCS","isG711a","_initProcessScriptNode()","currentTime","_handleScriptNodeCallback","8rwDZSY","AudioTalkLoader"," is less than current time ","_fillScriptNodeOutputBuffer","start"];return(Ie=function(){return e})()}function Ae(e,t){const r=Ie();return(Ae=function(e,t){return r[e-=160]})(e,t)}!function(e,t){const r=Ae,s=e();for(;;)try{if(546868===parseInt(r(221))/1*(-parseInt(r(239))/2)+-parseInt(r(191))/3+parseInt(r(176))/4*(parseInt(r(165))/5)+parseInt(r(202))/6+parseInt(r(240))/7*(parseInt(r(171))/8)+-parseInt(r(187))/9*(-parseInt(r(251))/10)+parseInt(r(199))/11*(parseInt(r(228))/12))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(Ie);Ee(217),Ee(242),Ee(254),Ee(195),Ee(236),Ee(220),Ee(224),Ee(246),Ee(181),Ee(179),Ee(245),Ee(233),Ee(218),Ee(244),Ee(190);function ve(e,t){const r=Te();return(ve=function(e,t){return r[e-=292]})(e,t)}function Te(){const e=["reduce","constructor","63074wDjiDM","toString","8168HlpIoi","byteLength","315496xRRMRY","285oeZiJq","334890xKDqxG","padStart","hexStringToUint8Array: invalid hexString length, must be even and bexString length is: ","error","length","substr","687696RTEwyC","954636NcMrur","2268679eeezDN","set","replace"];return(Te=function(){return e})()}function Ce(){class e extends AudioWorkletProcessor{constructor(e){super(),this._cursor=0,this._bufferSize=e.processorOptions.bufferSize,this._buffer=new Float32Array(this._bufferSize)}process(e,t,r){if(!e.length||!e[0].length)return!0;for(let t=0;t<e[0][0].length;t++)this._cursor+=1,this._cursor===this._bufferSize&&(this._cursor=0,this.port.postMessage({eventType:"data",buffer:this._buffer})),this._buffer[this._cursor]=e[0][0][t];return!0}}registerProcessor("talk-processor",e)}!function(e,t){const r=ve,s=e();for(;;)try{if(167827===-parseInt(r(304))/1+parseInt(r(298))/2+parseInt(r(310))/3+-parseInt(r(300))/4*(-parseInt(r(303))/5)+-parseInt(r(292))/6+parseInt(r(293))/7+-parseInt(r(302))/8)break;s.push(s.shift())}catch(e){s.push(s.shift())}}(Te);const Be=Me;function Me(e,t){const r=_e();return(Me=function(e,t){return r[e-=291]})(e,t)}function _e(){const e=["message","bufferSize","webkitGetUserMedia","stream oninactive","emit","stringify","lowpass","_log","g711u","resampler","clearWorkletUrlTimeout","encType","_stopCheckWsOpenTimeout","setVolume","finally","tempJttBufferList","apply","_getSequenceId","opusEncoder","82648DlCCXN","getTracks","send","assign","arraybuffer","jtt","_sendTalkMsg","debugError","audioContext samplerate","mozGetUserMedia","byteLength","rtpSsrc","addRtpToBuffer","workletRecorder","debugLog","_sendClose","then","toFixed","websocket open -> do talk","_stopHeartInterval","empty",", rtp only support g711a or g711u or opus so set packetType to empty","frequency","_getUserMedia3","biquadFilter","addPcmToBuffer","createObjectURL","download","downloadG711File"," only support sampleRate 8000 and sampleBitsWidth 16","click","websocket close -> reject","saveToTempFile","once","talkStreamError","proxy","log","call","navigator","_handleStreamInactive","rtpPacket","jttChannelNumber","string","getUserMedia success","player","sequenceId","wsUrl is null","isDestroyed","audioBufferList","talk","rtp",'websocket handle message message is "',"warn","mediaStreamSource","gain","getUserMedia fail","_onaudioprocess","concat","opusDecoder","stop checkGetUserMediaTimeout","empty audio data","_doTalk","connect","talkStreamOpen","startTalk",", and ","disconnect","forEach","heartInterval","sampleRate","tempOpusBufferList","destroy","onaudioprocess","_createWebSocket","772662szeSaU","numberChannels","talkGetUserMediaTimeout","_getUserMedia","downloadRtpFile","now","events","_initTalk","audio/ogg","createGain","stop heart interval",".ogg","_encodeAudioData","mediaDevices","not support getUserMedia","talkStreamStart","revokeObjectURL","send talk msg and diff is ","debug","63iizuyJ","getUserMedia3 fail","612kRkpLY","data","_startCheckGetUserMediaTimeout","getChannelData","error","audioConstraints","audioWorklet","tempPcmBufferList","addG711ToBuffer",".jtt","getOption","open","onmessage","socket","worklet","downloadOpusFile_1","jttChannelNumber is null or length is not 2","2023437CmzSfq","tempRtpBufferList","2386435EBIeiH","tempTimestamp","jttSimNumber is null or length is not 12","1691236DOqGgV","addJttToBuffer","TAG_NAME","1480454RnwCQw","set"," and sampleRate is ","audioPlayer","heart interval","URL","play","gainNode","audioContext","_initMethods","_getUserMedia2","_opt","_initScriptProcessor","jttSimNumber","tempG711BufferList","talkGetUserMediaSuccess","createScriptProcessor","window.navigator.mediaDevices.getUserMedia is undefined and init function","downloadPcmFile","getUserMedia2 fail","audio/wav","notConnect","engine","inputBuffer","wsUrl","tallWebsocketClosedByError","stop","tcp"," and encType is ","createMediaStreamSource","getUserMediaTimeout","calcAudioBufferLength","value","check getUserMedia timeout","socketStatus","startTimestamp","binaryType","AudioContext","_handleMessage","port","getUserMedia","msGetUserMedia","pcm","getUserMedia3","packetType","href","recorder","buffer",".rtp","script","audioBufferLength","reject","testMicrophone","jttPacket","addModule","createElement","_parseAudioMsg","sampleBitsWidth","_stopCheckGetUserMediaTimeout","userMediaStream","talkStreamClose","debugWarn","emitError","close","length","addOpusToBuffer","g711a","packetType is ","getUserMedia3 success","socketStatusOpen","getUserMedia is not implemented in this browser","downloadOpusFile","oninactive","_destroyed","getUserMedia2 success","resample","checkGetUserMediaTimeout","downloadJttFile","talkGetUserMediaFail",", and sampleBitsWidth is ","opus","talk-processor","_startHeartInterval","init","catch","destination","toString","checkWsOpenTimeout","286662PTCduJ","_initWorklet"];return(_e=function(){return e})()}!function(e,t){const r=Me,s=e();for(;;)try{if(488877===parseInt(r(388))/1+-parseInt(r(434))/2+parseInt(r(426))/3+-parseInt(r(431))/4+parseInt(r(428))/5+parseInt(r(293))/6*(parseInt(r(407))/7)+parseInt(r(314))/8*(-parseInt(r(409))/9))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(_e);class De extends s{constructor(e){const t=Me;let r=arguments[t(498)]>1&&void 0!==arguments[1]?arguments[1]:{};super(),this[t(445)]={},e&&(this[t(358)]=e),this[t(433)]=t(363);const s=K(B);this._opt=Object[t(317)]({},s,r),!this.player&&(this.debug=new we(this)),this[t(350)](this[t(433)],"init and version is",'"1-24-2025"'),this._opt.sampleRate=parseInt(this[t(445)][t(383)],10),this[t(445)][t(491)]=parseInt(this[t(445)].sampleBitsWidth,10),(this[t(445)][t(306)]===E[t(500)]||this[t(445)].encType===E[t(303)])&&(8e3!==this[t(445)][t(383)]||16!==this[t(445)][t(491)])&&(this[t(366)](this.TAG_NAME,"\n encType is "+this[t(445)][t(306)]+t(436)+this[t(445)][t(383)]+t(513)+this[t(445)][t(491)]+"。\n "+this[t(445)][t(306)]+t(343)),this[t(445)][t(383)]=8e3,this[t(445)][t(491)]=16),this[t(445)][t(478)]===A[t(364)]&&this[t(445)].encType===E[t(476)]&&(this[t(366)](this[t(433)],t(501)+this[t(445)][t(478)]+t(462)+this[t(445)][t(306)]+t(335)),this._opt[t(478)]=A[t(334)]),this._opt[t(478)],this[t(445)][t(306)],t(514),this[t(442)]=null,this.gainNode=null,this[t(480)]=null,this[t(327)]=null,this[t(338)]=null,this[t(493)]=null,this[t(305)]=null,this[t(296)]=512,this._opt[t(484)]=this[t(465)](),this[t(362)]=[],this[t(313)]=null,this[t(372)]=null,this.resampler=null,this[t(445)].encType,t(514),this[t(422)]=null,this.socketStatus=k[t(455)],this.mediaStreamSource=null,this[t(382)]=null,this[t(510)]=null,this.wsUrl=null,this.startTimestamp=0,this[t(292)]=null,this.sequenceId=0,this[t(429)]=null,this[t(507)]=!1,this.tempG711BufferList=new Uint8Array(0),this[t(427)]=new Uint8Array(0),this[t(310)]=new Uint8Array(0),this[t(416)]=new Uint8Array(0),this[t(384)]=new Uint8Array(0),this[t(394)]=new ke(this),this[t(437)]=null,this[t(395)]();try{this[t(350)](this[t(433)],t(517),JSON[t(300)](this._opt))}catch(e){this[t(350)](this.TAG_NAME,t(517),this[t(445)])}}[Be(385)](){const e=Be;this._destroyed=!0,this.clearWorkletUrlTimeout&&(clearTimeout(this.clearWorkletUrlTimeout),this[e(305)]=null),this[e(307)](),this[e(493)]&&(this[e(493)].getTracks&&this.userMediaStream[e(315)]()[e(381)]((t=>{t[e(460)]()})),this.userMediaStream=null),this[e(367)]&&(this.mediaStreamSource[e(380)](),this[e(367)]=null),this[e(480)]&&(this[e(480)][e(380)](),this[e(480)][e(386)]=null,this[e(480)]=null),this[e(338)]&&(this[e(338)][e(380)](),this[e(338)]=null),this[e(441)]&&(this[e(441)][e(380)](),this[e(441)]=null),this[e(327)]&&(this.workletRecorder[e(380)](),this[e(327)]=null),this[e(313)]&&(this.opusEncoder[e(385)](),this[e(313)]=null),this[e(372)]&&(this[e(372)][e(385)](),this[e(372)]=null),this.resampler&&(this.resampler[e(385)](),this[e(304)]=null),this[e(422)]&&(this[e(468)]===k[e(420)]&&this[e(329)](),this[e(422)].close(),this[e(422)]=null),this.audioPlayer&&(this[e(437)][e(385)](),this[e(437)]=null),this[e(333)](),this[e(492)](),this[e(442)]=null,this[e(441)]=null,this.recorder=null,this.audioBufferList=[],this[e(359)]=0,this[e(458)]=null,this[e(429)]=null,this.tempRtpBufferList=null,this[e(448)]=null,this[e(416)]=null,this.tempOpusBufferList=null,this[e(469)]=0,this.log(this[e(433)],e(385))}_stopCheckWsOpenTimeout(){const e=Be;this.checkWsOpenTimeout&&(clearTimeout(this[e(292)]),this[e(292)]=null)}[Be(361)](){return this._destroyed}[Be(326)](e){const t=Be,r=e[t(498)]+this[t(427)].length,s=new Uint8Array(r);s[t(435)](this[t(427)],0),s[t(435)](e,this[t(427)][t(498)]),this[t(427)]=s}addG711ToBuffer(e){const t=Be,r=e[t(498)]+this.tempG711BufferList[t(498)],s=new Uint8Array(r);s[t(435)](this[t(448)],0),s[t(435)](e,this[t(448)][t(498)]),this[t(448)]=s}addPcmToBuffer(e){const t=Be,r=e[t(498)]+this[t(416)].length,s=new Uint8Array(r);s[t(435)](this[t(416)],0),s[t(435)](e,this[t(416)][t(498)]),this[t(416)]=s}[Be(432)](e){const t=Be,r=e[t(498)]+this.tempJttBufferList[t(498)],s=new Uint8Array(r);s[t(435)](this.tempJttBufferList,0),s[t(435)](e,this[t(310)][t(498)]),this[t(310)]=s}addOpusToBuffer_1(e){const t=Be;!this[t(372)]&&(this.opusDecoder=new OpusDecoder(this._opt[t(383)],this._opt[t(389)]));const r=this[t(372)].decode(e),s=new Uint8Array(r[t(481)]);this[t(339)](s)}[Be(499)](e){const t=Be,r=this[t(384)][t(498)]+1+e[t(498)],s=new Uint8Array(r);s[t(435)](this[t(384)],0),s[t(435)]([e[t(498)]],this[t(384)].length),s[t(435)](e,this[t(384)][t(498)]+1),this[t(384)]=s}[Be(392)](){const e=Be;this.debugLog(this[e(433)],e(392));const t=new Blob([this[e(427)]]);try{const r=document[e(489)]("a");r[e(479)]=window[e(439)][e(340)](t),r[e(341)]=Date.now()+e(482),r.click(),this[e(427)]=new Uint8Array(0),window.URL[e(404)](r[e(479)])}catch(t){console.error(e(392),t)}}[Be(342)](){const e=Be;this.debugLog(this[e(433)],e(342));const t=new Blob([this[e(448)]]);try{const r=document[e(489)]("a");r.href=window[e(439)][e(340)](t),r[e(341)]=Date.now()+"."+this._opt.encType,r[e(344)](),this[e(448)]=new Uint8Array(0),window.URL[e(404)](r[e(479)])}catch(t){console.error(e(342),t)}}[Be(424)](){const e=Be;this.debugLog(this[e(433)],e(505)),this[e(452)]()}[Be(505)](){const e=Be;this.debugLog(this[e(433)],e(505));const t=function(e,t,r){const s=q,o=new Uint8Array([79,103,103,83,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),i=new Uint8Array([79,112,117,115,72,101,97,100,1,0,0,0,0,0,0,0,0,0,0,0,255&t,t>>8&255,t>>16&255,t>>24&255,255&r,r>>8&255,0,0,0,0]),n=new Uint8Array(o[s(427)]+i.length+e.length);return n[s(568)](o),n[s(568)](i,o[s(427)]),n[s(568)](e,o[s(427)]+i[s(427)]),n}(this.tempOpusBufferList,this[e(445)][e(383)],this[e(445)].numberChannels),r=new Blob([t],{type:e(396)});try{const t=document.createElement("a");t[e(479)]=window[e(439)][e(340)](r),t[e(341)]=Date.now()+e(399),t.click(),this[e(384)]=new Uint8Array(0),window[e(439)].revokeObjectURL(t[e(479)])}catch(t){console.error(e(505),t)}}[Be(452)](){const e=Be;let t=arguments[e(498)]>0&&void 0!==arguments[0]&&arguments[0];this.debugLog(this[e(433)],e(452),this[e(445)][e(383)],this._opt[e(389)],this._opt[e(491)]);let r=new DataView(this.tempPcmBufferList[e(481)]),s=null,o="";t?(r=function(e,t,r,s){const o=q;var i=function(e,t,r){const s=$;for(var o=0;o<r.length;o++)e.setUint8(t+o,r[s(470)](o))},n=t,a=s,c=new ArrayBuffer(44+e[o(488)]),l=new DataView(c),u=r,h=0;i(l,h,o(661)),h+=4,l[o(457)](h,36+e[o(488)],!0),i(l,h+=4,o(630)),i(l,h+=4,o(584)),h+=4,l[o(457)](h,16,!0),h+=4,l[o(504)](h,1,!0),h+=2,l.setUint16(h,u,!0),h+=2,l[o(457)](h,n,!0),h+=4,l[o(457)](h,u*n*(a/8),!0),h+=4,l[o(504)](h,u*(a/8),!0),h+=2,l[o(504)](h,a,!0),i(l,h+=2,o(487)),h+=4,l[o(457)](h,e[o(488)],!0),h+=4;for(let t=0;t<e[o(488)];)l.setUint8(h,e[o(433)](t)),h++,t++;return l}(r,this[e(445)][e(383)],this[e(445)].numberChannels,this._opt[e(491)]),o=".wav",s=new Blob([r],{type:e(454)})):(o=".pcm",s=new Blob([this.tempPcmBufferList]));try{const t=document[e(489)]("a");t[e(479)]=window[e(439)][e(340)](s),t[e(341)]=Date[e(393)]()+o,t[e(344)](),this[e(416)]=new Uint8Array(0),window[e(439)].revokeObjectURL(t[e(479)])}catch(e){console.error("downloadRtpFile",e)}}[Be(511)](){const e=Be;this[e(328)](this[e(433)],e(511));const t=new Blob([this[e(310)]]);try{const r=document[e(489)]("a");r.href=window[e(439)][e(340)](t),r[e(341)]=Date[e(393)]()+e(418),r.click(),this[e(310)]=new Uint8Array(0),window[e(439)][e(404)](r[e(479)])}catch(t){console[e(413)](e(511),t)}}downloadFile(){const e=Be;this._opt[e(478)]===A[e(364)]?this.downloadRtpFile():this[e(445)][e(478)]===A[e(319)]?this.downloadJttFile():this._opt[e(306)]===E[e(500)]||this[e(445)][e(306)]===E[e(303)]?this[e(342)]():this[e(445)][e(306)]===E[e(514)]?this[e(505)]():this[e(445)][e(306)]===E[e(476)]&&this[e(452)]()}[Be(465)](){const e=Be,{sampleRate:t,sampleBitsWidth:r,frameDuration:s}=this[e(445)];return t*r*(s/1e3)/8}get[Be(503)](){const e=Be;return this.socketStatus===k[e(420)]}[Be(350)](){const e=Be;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];this[e(302)](e(350),...r)}[Be(366)](){const e=Be;for(var t=arguments[e(498)],r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];this[e(302)]("warn",...r)}[Be(413)](){const e=Be;for(var t=arguments[e(498)],r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];this[e(302)](e(413),...r)}[Be(302)](e){const t=Be;for(var r=arguments[t(498)],s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];this[t(358)]?this[t(358)].debug[e](...s):this[t(406)]?this.debug[e](...s):console[e](...s)}[Be(312)](){return++this[Be(359)]}[Be(387)](e){return new Promise(((t,r)=>{const s=Me,o=this[s(394)][s(349)];this[s(422)]=new WebSocket(this[s(458)],e.protocols||[]),this[s(422)][s(470)]=s(318),this.emit(g[s(403)]),o(this.socket,T[s(420)],(()=>{const e=s;this[e(468)]=k[e(420)],this[e(307)](),this.log(this.TAG_NAME,e(332)),this[e(299)](g[e(377)]),t(),this._doTalk()})),o(this[s(422)],T[s(295)],(e=>{const t=s;typeof e[t(410)]!==t(356)?this._handleMessage(e.data):this[t(495)](this.TAG_NAME,t(365)+e.data+'" string so return')})),o(this[s(422)],T.close,(e=>{const t=s,o=this[t(468)];this.socketStatus=k[t(497)],this[t(366)](this[t(433)],t(345),e),this[t(496)](g[t(494)]),o===k[t(455)]&&r(e)})),o(this[s(422)],T[s(413)],(e=>{const t=s,o=this.socketStatus;this[t(468)]=k[t(413)],this[t(413)](this[t(433)],"websocket error -> reject",e),this.emitError(g[t(348)],e),o===k[t(455)]&&r(e)}))}))}[Be(329)](){}[Be(395)](){const e=Be;this[e(443)](),this[e(445)].engine===C[e(423)]?this[e(294)]():this._opt[e(456)]===C[e(483)]&&this[e(446)](),this.log(this.TAG_NAME,e(322),this[e(442)][e(383)])}_initMethods(){const e=Be;this[e(442)]=new(window[e(471)]||window.webkitAudioContext)({sampleRate:48e3}),this[e(441)]=this.audioContext[e(397)](),this[e(441)][e(368)].value=1,this[e(338)]=this[e(442)].createBiquadFilter(),this[e(338)].type=e(301),this[e(338)][e(336)][e(466)]=3e3,this[e(304)]=new oe({fromSampleRate:this[e(442)][e(383)],toSampleRate:this[e(445)][e(383)],channels:this[e(445)][e(389)],inputBufferSize:this.bufferSize})}[Be(446)](){const e=Be,t=this.audioContext[e(450)]||this[e(442)].createJavaScriptNode;this[e(480)]=t[e(311)](this[e(442)],[this.bufferSize,this._opt[e(389)],this[e(445)][e(389)]]),this[e(480)][e(386)]=e=>this._onaudioprocess(e)}[Be(294)](){const e=Be,t=function(e){const t=q,r=e[t(577)]()[$(462)]().match(/^function\s*\w*\s*\([\w\s,]*\)\s*{([\w\W]*?)}$/)[1],s=new Blob([r],{type:t(713)});return URL[t(484)](s)}(Ce);this[e(442)][e(415)]&&this.audioContext.audioWorklet[e(488)](t)[e(330)]((()=>{const t=e,r=new AudioWorkletNode(this[t(442)],t(515),{processorOptions:{bufferSize:this[t(296)]}});r[t(376)](this[t(441)]),r[t(473)][t(421)]=e=>{const r=t;e.data.eventType===r(410)&&this[r(400)](e.data[r(481)])},this[t(327)]=r})),this[e(305)]=setTimeout((()=>{const r=e;URL.revokeObjectURL(t),this[r(305)]=null}),1e4)}[Be(370)](e){const t=Be,r=e[t(457)][t(412)](0);this[t(400)](new Float32Array(r))}_encodeAudioData(e){const t=Be;if(this[t(361)]())return;if(0===e[0]&&0===e[1])return void this.log(this[t(433)],t(374));const r=this[t(304)][t(509)](e);if(this[t(445)][t(306)]===E.opus);else{let e=r;16===this[t(445)][t(491)]?e=function(e){const t=ne;let r=e[t(135)],s=new Int16Array(r);for(;r--;){let o=Math[t(133)](-1,Math[t(132)](1,e[r]));s[r]=o<0?32768*o:32767*o}return s}(r):8===this[t(445)][t(491)]?e=function(e){const t=ne;let r=e[t(135)],s=new Int8Array(r);for(;r--;){let o=Math[t(133)](-1,Math[t(132)](1,e[r]));const i=o<0?32768*o:32767*o;s[r]=parseInt(255/(65535/(32768+i)),10)}return s}(r):32===this[t(445)][t(491)]&&(e=function(e){let t=e[ne(135)],r=new Int32Array(t);for(;t--;){let s=Math.max(-1,Math.min(1,e[t]));r[t]=s<0?2147483648*s:2147483647*s}return r}(r));let s=null;this[t(445)][t(306)]===E.g711a?s=he(e):this[t(445)].encType===E[t(303)]?s=de(e):this[t(445)][t(306)]===E[t(476)]&&(s=e[t(481)]);const o=new Uint8Array(s);for(let e=0;e<o[t(498)];e++){let r=this[t(362)][t(498)];this[t(362)][r++]=o[e],this[t(362)].length===this._opt[t(484)]&&(this[t(320)](new Uint8Array(this[t(362)])),this[t(362)]=[])}}}_parseAudioMsg(e){const t=Be;let r=null;return this[t(445)][t(478)]!==A[t(364)]||this._opt[t(306)]!==E[t(500)]&&this[t(445)][t(306)]!==E[t(303)]&&this[t(445)].enc!==E[t(514)]?this[t(445)][t(478)]!==A.jtt||this[t(445)][t(306)]!==E.g711a&&this._opt[t(306)]!==E[t(303)]?this[t(445)][t(478)]===A[t(334)]&&(r=e):r=this[t(487)](e):r=this[t(354)](e),r}[Be(354)](e){const t=Be,r=[];let s=0,o=0,i=0;const n=this._opt[t(325)],a=e[t(498)];this[t(445)][t(306)]===E[t(500)]?s=I[t(500)]:this[t(445)][t(306)]===E[t(303)]?s=I[t(303)]:this[t(445)][t(306)]===E[t(514)]&&(s=I[t(514)]),!this[t(469)]&&(this[t(469)]=J()),i=J()-this.startTimestamp,o=this._getSequenceId();let c=0;if(this[t(445)].packetTcpSendType===v[t(461)]){const e=a+12;r[c++]=255&e>>8,r[c++]=255&e>>0}r[c++]=128,r[c++]=128+s,r[c++]=o/256,r[c++]=o%256,r[c++]=i/65536/256,r[c++]=i/65536%256,r[c++]=i%65536/256,r[c++]=i%65536%256,r[c++]=n/65536/256,r[c++]=n/65536%256,r[c++]=n%65536/256,r[c++]=n%65536%256;let l=r[t(371)]([...e]),u=new Uint8Array(l.length);for(let e=0;e<l[t(498)];e++)u[e]=l[e];return u}[Be(487)](e){const t=Be,r=[],s=[48,49,99,100],o=[129,134];let i=0;const n=this._opt[t(447)],a=this[t(445)][t(355)];let c=0;const l=e[t(498)];!this.startTimestamp&&(this[t(469)]=J()),c=J()-this[t(469)],i=this._getSequenceId(),r[0]=s[0],r[1]=s[1],r[2]=s[2],r[3]=s[3],r[4]=o[0],r[5]=o[1],r[6]=i/256,r[7]=i%256;const u=function(e){const t=ve;if((e=e[t(295)](/\s/g,"")).length%2!=0)return console[t(307)](t(306),e[t(308)]),null;const r=new Uint8Array(e[t(308)]/2);for(let s=0;s<e.length;s+=2){const o=parseInt(e[t(309)](s,2),16);r[s/2]=o}return r}(n);u&&(r[8]=u[0],r[9]=u[1],r[10]=u[2],r[11]=u[3],r[12]=u[4],r[13]=u[5]),r[14]=parseInt(a,16),r[15]=48,r[16]=255&c>>56,r[17]=255&c>>48,r[18]=255&c>>40,r[19]=255&c>>32,r[20]=255&c>>24,r[21]=255&c>>16,r[22]=255&c>>8,r[23]=255&c>>0,r[24]=l/256,r[25]=l%256;let h=r.concat([...e]),d=new Uint8Array(h.length);for(let e=0;e<h[t(498)];e++)d[e]=h[e];return d}_sendTalkMsg(e){const t=Be;null===this[t(429)]&&(this[t(429)]=J());const r=J(),s=r-this[t(429)],o=this[t(490)](e);this[t(350)](this.TAG_NAME,t(405)+s+" and byteLength is "+o[t(324)]+" and length is "+o[t(498)]+t(379)+this[t(445)].encType+" length is "+e.length),X(this[t(445)][t(346)])&&X(this._opt[t(406)])&&(this[t(445)][t(478)]===A.rtp?this[t(326)](o):this[t(445)][t(478)]===A[t(319)]?this.addJttToBuffer(o):this[t(445)][t(306)]===E[t(500)]||this[t(445)][t(306)]===E.g711u?this[t(417)](o):this[t(445)].encType===E.pcm?this[t(339)](o):this[t(445)].encType===E.opus&&this.addOpusToBuffer(o)),o&&(this[t(445)][t(486)]?this.emit(g.talkStreamMsg,o[t(481)]):this[t(503)]?this[t(422)][t(316)](o[t(481)]):this[t(496)](b[t(459)])),this[t(429)]=r}[Be(375)](){const e=Be;this[e(391)](),this._opt.openWebsocketHeart&&this[e(516)]()}[Be(391)](){const e=Be;this[e(350)](this[e(433)],"getUserMedia"),void 0===window[e(352)][e(401)]&&(window[e(352)][e(401)]={}),void 0===window[e(352)][e(401)].getUserMedia&&(this[e(350)](this[e(433)],e(451)),window[e(352)][e(401)][e(474)]=function(t){const r=e;var s=navigator.getUserMedia||navigator[r(297)]||navigator[r(323)]||navigator[r(475)];return s?new Promise((function(e,o){s[r(351)](navigator,t,e,o)})):Promise[r(485)](new Error(r(504)))}),this[e(445)].checkGetUserMediaTimeout&&this[e(411)](),window.navigator[e(401)][e(474)]({audio:this[e(445)][e(414)],video:!1})[e(330)]((t=>{const r=e;this[r(350)](this[r(433)],r(357)),this[r(493)]=t,this[r(367)]=this[r(442)][r(463)](t),this[r(367)].connect(this[r(338)]),this.recorder?(this[r(338)][r(376)](this[r(480)]),this[r(480)].connect(this[r(441)])):this[r(327)]&&(this[r(338)][r(376)](this[r(327)]),this[r(327)][r(376)](this[r(441)])),this[r(441)][r(376)](this.audioContext[r(519)]),this[r(299)](g.talkGetUserMediaSuccess),null===t[r(506)]&&(t[r(506)]=e=>{this[r(353)](e)})}))[e(518)]((t=>{const r=e;this[r(413)](this[r(433)],"getUserMedia error",t[r(291)]()),this[r(299)](g.talkGetUserMediaFail,t[r(291)]())}))[e(309)]((()=>{const t=e;this.log(this.TAG_NAME,"getUserMedia finally"),this[t(492)]()}))}[Be(444)](){const e=Be;this[e(350)](this[e(433)],e(474)),navigator[e(401)]?navigator[e(401)][e(474)]({audio:!0})[e(330)]((t=>{const r=e;this[r(350)](this[r(433)],r(508))})):navigator[e(474)]({audio:!0},this[e(350)](this[e(433)],"getUserMedia2 success"),this[e(350)](this.TAG_NAME,e(453)))}async[Be(337)](){const e=Be;this[e(350)](this[e(433)],e(477));try{const t=await navigator[e(401)][e(474)]({audio:{latency:!0,noiseSuppression:!0,autoGainControl:!0,echoCancellation:!0,sampleRate:48e3,channelCount:1},video:!1});console[e(350)]("getUserMedia() got stream:",t),this[e(350)](this[e(433)],e(502))}catch(t){this.log(this.TAG_NAME,e(408))}}[Be(353)](e){const t=Be;this[t(493)]&&(this[t(366)](this.TAG_NAME,t(298),e),this[t(299)](g.talkStreamInactive))}[Be(411)](){const e=Be;this[e(492)](),this[e(510)]=setTimeout((()=>{const t=e;this[t(350)](this.TAG_NAME,t(467)),this[t(299)](g[t(390)])}),this._opt[e(464)])}[Be(492)](){const e=Be;this.checkGetUserMediaTimeout&&(this[e(350)](this[e(433)],e(373)),clearTimeout(this[e(510)]),this[e(510)]=null)}[Be(516)](){const e=Be;this[e(382)]=setInterval((()=>{const t=e;this[t(350)](this.TAG_NAME,t(438));let r=this[t(445)].websocketHeartContent;r=new Uint8Array(r),this.socket[t(316)](r[t(481)])}),1e3*this[e(445)].websocketHeartInterval)}[Be(333)](){const e=Be;this[e(382)]&&(this[e(350)](this[e(433)],e(398)),clearInterval(this[e(382)]),this[e(382)]=null)}[Be(378)](e){const t=Be;let r=arguments[t(498)]>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((s,o)=>{const i=t;if(!function(){const e=q;let t=!1;const r=window[e(421)];return r&&(t=!(!r[e(515)]||!r[e(515)].getUserMedia),!t&&(t=!!(r[e(544)]||r[e(592)]||r[e(404)]||r.msGetUserMedia))),t}())return o(i(402));if(this[i(445)][i(478)]===A[i(319)]){if(!this[i(445)][i(447)]||12!==(""+this[i(445)][i(447)]).length)return o(i(430));if(!this._opt[i(355)]||2!==(""+this._opt[i(355)]).length)return o(i(425))}if(this[i(458)]=e,this._opt[i(486)])this[i(375)]();else{if(!this[i(458)])return o(i(360));if(ee())return o(decodeURIComponent(D));this[i(387)](r)[i(518)]((e=>{o(e)}))}this[i(347)](g[i(512)],(()=>{o(i(369))})),this[i(347)](g[i(449)],(()=>{s()}))}))}[Be(308)](e){const t=Be;e=parseFloat(e).toFixed(2),isNaN(e)||(e=function(e,t,r){const s=$;return Math[s(407)](Math[s(503)](e,Math[s(407)](t,r)),Math[s(503)](t,r))}(e,0,1),this[t(441)][t(368)][t(466)]=e)}[Be(419)](){return this._opt}get volume(){const e=Be;return this[e(441)]?parseFloat(100*this[e(441)][e(368)][e(466)])[e(331)](0):null}[Be(328)](e){const t=Be;if(this[t(445)][t(406)]&&this[t(406)]){for(var r=arguments[t(498)],s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];this[t(406)][t(350)](e,...s)}}[Be(495)](e){const t=Be;if(this[t(445)].debug&&this[t(406)]){for(var r=arguments[t(498)],s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];this.debug[t(366)](e,...s)}}[Be(321)](e){const t=Be;if(this.debug){for(var r=arguments[t(498)],s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];this.debug.error(e,...s)}}[Be(472)](e){const t=Be;this.debugLog(this[t(433)],t(472),e)}[Be(496)](e){const t=Be;let r=arguments[t(498)]>1&&void 0!==arguments[1]?arguments[1]:"";this.emit(g.error,e,r),this[t(299)](e,r)}}const Ue=Fe;function Fe(e,t){const r=Re();return(Fe=function(e,t){return r[e-=293]})(e,t)}function Re(){const e=["finally","talkStreamInactive -> stopTalk","_handleTalkGetUserMediaTimeout","40uaEPAx","_handleTalkStreamError","downloadTempRtpFile","_handleTalkStreamInactive","talkWebsocketClosedByError -> stopTalk","443508znMrjc","781hqGxWH","downloadRtpFile","keys","1228eXrZIm","getOption","downloadPcmFile","WebPlayerProTalk","532908NREGhA","EVENTS","debugLog","setTalkVolume","init","20JBJHBJ","LOG_TAG","talkStreamInactive","1197ykcfcY","once","45684FXcygk","stopTalk","tallWebsocketClosedByError","debugWarn","downloadTempOpusFile","downloadG711File","debug","85394pEhGfP","startTalk","talkFailedAndStop","debugError","198156NyHcLr","stringify","273368mESUTV","catch","talkStreamError stopTalk","_bindTalkEvents","talkStreamClose -> stopTalk","_opt","_handleTalkStreamClose","talkGetUserMediaTimeout -> stopTalk","length","talkGetUserMediaTimeout stopTalk","talkStreamError","log","downloadFile","talk","getTalkVolume","toString","21ouXcdo","off","talkStreamError -> stopTalk","destroy","bind","_initTalk","talk is not init","talkStreamInactive stopTalk","JbProTalk","volume","emit","destroy()","setVolume","talkStreamClose","talkGetUserMediaTimeout"];return(Re=function(){return e})()}!function(e,t){const r=Fe,s=e();for(;;)try{if(164629===-parseInt(r(318))/1+-parseInt(r(322))/2+parseInt(r(309))/3*(parseInt(r(297))/4)+-parseInt(r(306))/5*(-parseInt(r(293))/6)+parseInt(r(340))/7*(-parseInt(r(324))/8)+-parseInt(r(301))/9*(parseInt(r(358))/10)+-parseInt(r(294))/11*(-parseInt(r(311))/12))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(Re);class We extends s{constructor(){const e=Fe;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this[e(337)]=null,this[e(329)]=t,this[e(307)]=e(348),this[e(317)]=new we(this);try{this[e(303)](this[e(307)],e(305),JSON.stringify(t))}catch(r){this[e(303)](this[e(307)],e(305),t)}}[Ue(343)](){const e=Ue;this[e(303)](this[e(307)],e(351)),this[e(341)](),this[e(337)]&&(this[e(337)][e(343)](),this.talk=null),this.debugLog(this[e(307)],e(343))}[Ue(345)](){const e=Ue;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this[e(337)]&&(this.debugLog(this[e(307)],"_initTalk this.talk is not null and destroy"),this[e(337)].destroy(),this[e(337)]=null);const r=Object.assign({},K(this[e(329)]),t);this[e(329)]=r,this[e(337)]=new De(null,r),this.debugLog(this[e(307)],e(345),this[e(337)][e(298)]()),this[e(327)]()}[Ue(327)](){const e=Ue;Object[e(296)](w).forEach((t=>{const r=e;this[r(337)].on(w[t],(e=>{this[r(350)](t,e)}))}))}[Ue(319)](e){const t=Ue;let r=arguments[t(332)]>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments[t(332)]>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(((o,i)=>{const n=t;try{this[n(303)](this.LOG_TAG,n(319),e,JSON[n(323)](r))}catch(t){this[n(303)](this[n(307)],n(319),e,r)}if(this[n(345)](r),ee()){const e=decodeURIComponent(D);return this[n(321)](this[n(307)],e),void i(e)}this[n(337)][n(319)](e,s).then((()=>{const e=n;o(),this.talk[e(310)](g[e(353)],this[e(330)][e(344)](this)),this[e(337)][e(310)](g[e(334)],this[e(359)][e(344)](this)),this[e(337)][e(310)](g.talkStreamInactive,this[e(361)][e(344)](this)),this[e(337)][e(310)](g.talkGetUserMediaTimeout,this[e(357)][e(344)](this)),this[e(337)][e(310)](b.tallWebsocketClosedByError,this._handleTalkWebsocketClosedByError.bind(this))})).catch((e=>{const t=n;this[t(314)](this[t(307)],"startTalk error",e,e[t(339)]()),this[t(312)]().finally((()=>{i(e)}))}))}))}[Ue(312)](){return new Promise(((e,t)=>{const r=Fe;this[r(303)](this.LOG_TAG,"stopTalk()"),!this[r(337)]&&t(r(346)),this[r(337)][r(343)](),this[r(337)]=null,e()}))}[Ue(338)](){return new Promise(((e,t)=>{const r=Fe;!this.talk&&t(r(346)),e(this[r(337)][r(349)])}))}[Ue(304)](e){return new Promise(((t,r)=>{const s=Fe;this[s(303)](this[s(307)],s(304),e),!this[s(337)]&&r("talk is not init"),this[s(337)][s(352)](e/100),t()}))}[Ue(360)](){return new Promise(((e,t)=>{const r=Fe;this[r(337)]?(this[r(337)][r(295)](),e()):t(r(346))}))}downloadTempG711File(){return new Promise(((e,t)=>{const r=Fe;this[r(337)]?(this[r(337)][r(316)](),e()):t(r(346))}))}downloadTempPcmFile(e){return new Promise(((t,r)=>{const s=Fe;this[s(337)]?(this[s(337)][s(299)](e),t()):r("talk is not init")}))}[Ue(315)](){return new Promise(((e,t)=>{const r=Fe;this.talk?(this.talk.downloadOpusFile(),e()):t(r(346))}))}downloadTempFile(){return new Promise(((e,t)=>{const r=Fe;this.talk?(this[r(337)][r(336)](),e()):t(r(346))}))}[Ue(303)](e){const t=Ue;if(this._opt[t(317)]&&this.debug){for(var r=arguments[t(332)],s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];this[t(317)][t(335)](e,...s)}}debugWarn(e){const t=Ue;if(this[t(329)][t(317)]&&this[t(317)]){for(var r=arguments[t(332)],s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];this[t(317)].warn(e,...s)}}[Ue(321)](e){const t=Ue;if(this.debug){for(var r=arguments[t(332)],s=new Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];this.debug.error(e,...s)}}[Ue(330)](){const e=Ue;this.debugWarn(this[e(307)],e(328)),this[e(312)]()[e(325)]((t=>{const r=e;this[r(314)](this[r(307)],"talkStreamClose stopTalk",t)}))[e(355)]((()=>{const t=e;this[t(350)](g.talkFailedAndStop,g[t(353)])}))}[Ue(359)](){const e=Ue;this.debugError(this.LOG_TAG,e(342)),this.stopTalk()[e(325)]((t=>{const r=e;this[r(314)](this[r(307)],r(326),t)}))[e(355)]((()=>{const t=e;this.emit(g[t(320)],g[t(334)])}))}[Ue(361)](){const e=Ue;this[e(314)](this.LOG_TAG,e(356)),this[e(312)]()[e(325)]((t=>{const r=e;this[r(314)](this[r(307)],r(347),t)}))[e(355)]((()=>{const t=e;this[t(350)](g[t(320)],g[t(308)])}))}_handleTalkGetUserMediaTimeout(){const e=Ue;this[e(314)](this[e(307)],e(331)),this.stopTalk()[e(325)]((t=>{const r=e;this[r(314)](this[r(307)],r(333),t)})).finally((()=>{const t=e;this.emit(g.talkFailedAndStop,g[t(354)])}))}_handleTalkWebsocketClosedByError(){const e=Ue;this[e(314)](this[e(307)],e(362)),this[e(312)]()[e(325)]((t=>{this[e(314)](this.LOG_TAG,"talkWebsocketClosedByError stopTalk",t)}))[e(355)]((()=>{const t=e;this[t(350)](g.talkFailedAndStop,b[t(313)])}))}}return We[Ue(302)]=w,window.JessibucaProTalk=We,window[Ue(348)]=We,window[Ue(300)]=We,We}));