module.exports = function (e) {
    var t = {};

    function n(i) {
        if (t[i]) return t[i].exports;
        var o = t[i] = {i, l: !1, exports: {}};
        return e[i].call(o.exports, o, o.exports, n), o.l = !0, o.exports
    }

    return n.m = e, n.c = t, n.d = function (e, t, i) {
        n.o(e, t) || Object.defineProperty(e, t, {enumerable: !0, get: i})
    }, n.r = function (e) {
        "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {value: "Module"}), Object.defineProperty(e, "__esModule", {value: !0})
    }, n.t = function (e, t) {
        if (1 & t && (e = n(e)), 8 & t) return e;
        if (4 & t && "object" == typeof e && e && e.__esModule) return e;
        var i = Object.create(null);
        if (n.r(i), Object.defineProperty(i, "default", {
            enumerable: !0,
            value: e
        }), 2 & t && "string" != typeof e) for (var o in e) n.d(i, o, function (t) {
            return e[t]
        }.bind(null, o));
        return i
    }, n.n = function (e) {
        var t = e && e.__esModule ? function () {
            return e.default
        } : function () {
            return e
        };
        return n.d(t, "a", t), t
    }, n.o = function (e, t) {
        return Object.prototype.hasOwnProperty.call(e, t)
    }, n.p = "", n(n.s = 988)
}({
    0: function (e, t, n) {
        "use strict";

        function i(e, t, n, i, o, r, s, a) {
            var l, d = "function" == typeof e ? e.options : e;
            if (t && (d.render = t, d.staticRenderFns = n, d._compiled = !0), i && (d.functional = !0), r && (d._scopeId = "data-v-" + r), s ? (l = function (e) {
                (e = e || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || "undefined" == typeof __VUE_SSR_CONTEXT__ || (e = __VUE_SSR_CONTEXT__), o && o.call(this, e), e && e._registeredComponents && e._registeredComponents.add(s)
            }, d._ssrRegister = l) : o && (l = a ? function () {
                o.call(this, this.$root.$options.shadowRoot)
            } : o), l) if (d.functional) {
                d._injectStyles = l;
                var u = d.render;
                d.render = function (e, t) {
                    return l.call(t), u(e, t)
                }
            } else {
                var c = d.beforeCreate;
                d.beforeCreate = c ? [].concat(c, l) : [l]
            }
            return {exports: e, options: d}
        }

        n.d(t, "a", function () {
            return i
        })
    }, 1: function (e, t, n) {
        e.exports = n(9)(137)
    }, 1000: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), function (e) {
            let t, n, i, o, r, s, a, l, d, u;
            !function (e) {
                e.Unkown = "XgtType.Unkown", e.Try = "XgtType.Try", e.Ad = "XgtType.Ad", e.Baotuan = "XgtType.Baotuan", e.PlayGame = "XgtType.PlayGame", e.PackageTry = "XgtType.PackageTry"
            }(t = e.XgtType || (e.XgtType = {})), function (e) {
                e[e.Before_All = 0] = "Before_All", e[e.Before_Novice = 1] = "Before_Novice", e[e.Before_Join = 2] = "Before_Join", e[e.Before_CutLine = 3] = "Before_CutLine", e[e.Doing_CutLineOut = 4] = "Doing_CutLineOut", e[e.Doing_Succeed = 5] = "Doing_Succeed", e[e.Doing_SucceedCutLineOut = 6] = "Doing_SucceedCutLineOut", e[e.Doing_SucceedOpenAuto = 7] = "Doing_SucceedOpenAuto", e[e.Doing_KickOut = 8] = "Doing_KickOut"
            }(n = e.BaotuanXgt || (e.BaotuanXgt = {})), function (e) {
                e[e.NoVip = -1] = "NoVip", e[e.Vip = 0] = "Vip", e[e.Try = 1] = "Try", e[e.Ad = 2] = "Ad"
            }(i = e.VipTaskType || (e.VipTaskType = {})), function (e) {
                e[e.PlatinumVip = 0] = "PlatinumVip", e[e.SuperVip = 1] = "SuperVip", e[e.MixVip = 2] = "MixVip"
            }(o = e.TryType || (e.TryType = {})), function (e) {
                e[e.Unkown = -1] = "Unkown", e[e.Init = 0] = "Init", e[e.CommitWait = 1] = "CommitWait", e[e.Commiting = 2] = "Commiting", e[e.CommitFailed = 3] = "CommitFailed", e[e.CommitSuccess = 4] = "CommitSuccess", e[e.AcclerateWait = 5] = "AcclerateWait", e[e.SearchResource = 6] = "SearchResource", e[e.AcclerateFailed = 7] = "AcclerateFailed", e[e.AcclerateStoped = 8] = "AcclerateStoped", e[e.Acclerating = 9] = "Acclerating", e[e.Finished = 10] = "Finished"
            }(r = e.VipTaskStatus || (e.VipTaskStatus = {})), function (e) {
                e[e.StatusOnly = 1] = "StatusOnly", e[e.TokenOnly = 2] = "TokenOnly", e[e.Others = 3] = "Others"
            }(s = e.QueryOption || (e.QueryOption = {})), function (e) {
                e[e.Commit = 0] = "Commit", e[e.Status = 1] = "Status", e[e.Token = 2] = "Token", e[e.Acclerate = 3] = "Acclerate"
            }(a = e.ErrorStep || (e.ErrorStep = {})), function (e) {
                e.Unkown = "XgtState.Unkown", e.Ready = "XgtState.Ready", e.Show = "XgtState.Show", e.Background = "XgtState.Background", e.Exit = "XgtState.Exit"
            }(l = e.XgtState || (e.XgtState = {})), function (e) {
                e[e.Unkown = 0] = "Unkown", e[e.Showing = 1] = "Showing", e[e.Hiding = 2] = "Hiding", e[e.Clicked = 3] = "Clicked"
            }(d = e.PlayGameXgtState || (e.PlayGameXgtState = {})), function (e) {
                e.clickJoinBtn = "clickJoinBtn", e.clickJoinBtnByWeb = "clickJoinBtnByWeb", e.clickJoinBtnByMenu = "clickJoinBtnByMenu", e.clickCutLineBtn = "clickCutLineBtn", e.teamImmediately = "teamImmediately", e.statusCallbackEndAutoJoin = "statusCallbackEndAutoJoin", e.statusCallbackEndEnter = "statusCallbackEndEnter", e.authority = "authority", e.loginAutoJoin = "loginAutoJoin", e.taskStarted = "taskStarted", e.grayAutoJoin = "grayAutoJoin", e.restartAppJoin = "restartAppJoin", e.resumeBaotuan = "resumeBaotuan", e.packagetry = "packagetry"
            }(u = e.BaotuanEnterBy || (e.BaotuanEnterBy = {}))
        }(t.VipDownloadDefineNS || (t.VipDownloadDefineNS = {}))
    }, 1001: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(7), r = n(238), s = n(8), a = n(2), l = n(80), d = n(1).default.getLogger("draggable"),
            u = s.default(a.join(__rootDir, "../bin/ThunderHelper.node"));
        t.default = function (e, t) {
            return i(this, void 0, void 0, function* () {
                let n = {x: 0, y: 0}, s = document.querySelector(e), a = !1, c = void 0,
                    h = (yield t.getNativeWindowHandle()).readUIntLE(0, 4), p = function () {
                        c && a && (s.releasePointerCapture(c), a = !1, c = void 0)
                    }, f = yield o.asyncRemoteCall.getCurrentWindow();
                f.on("hide", p);
                let m = function (e) {
                    return i(this, void 0, void 0, function* () {
                        yield l.ToolsUtilitiesAWNS.setForegroundWindow(u, t);
                        let i = u.getWindowRect(h), o = u.getCursorPos();
                        if (n = {x: i.x - o.x, y: i.y - o.y}, yield t.isFullScreen()) a = !1, c = void 0; else {
                            a = !0, c = e.pointerId;
                            try {
                                s.setPointerCapture(e.pointerId)
                            } catch (e) {
                                d.error("pointerDownListener setPointerCapture", e.message)
                            }
                        }
                    })
                }, g = function (e) {
                    a && (a = !1, c = void 0, s.releasePointerCapture(e.pointerId))
                }, S = function (e) {
                    return i(this, void 0, void 0, function* () {
                        let i = !1;
                        do {
                            if (!a) break;
                            if (yield t.isMaximized()) break;
                            if (yield t.isFullScreen()) break;
                            if ("mouse" === e.pointerType) {
                                let e = u.getAsyncKeyState(r.VirtualKeyCode.VK_LBUTTON);
                                if (!(32768 & e)) {
                                    d.information("## pointerMoveListener LButton Down false", e);
                                    break
                                }
                            }
                            let o = u.getCursorPos(), s = Math.floor(o.x + n.x), l = Math.floor(o.y + n.y);
                            u.setWindowPos(h, 0, s, l, 0, 0, r.Uflag.SWP_NOSIZE | r.Uflag.SWP_NOZORDER), i = !0
                        } while (0);
                        if (!i && a) a = !1, c = void 0, s.releasePointerCapture(e.pointerId); else if (i && !s.hasPointerCapture(e.pointerId)) {
                            try {
                                s.setPointerCapture(e.pointerId)
                            } catch (e) {
                                d.error("setPointerCapture", e.message)
                            }
                            c = e.pointerId
                        }
                    })
                };
                return s.addEventListener("pointerdown", m), s.addEventListener("pointerup", g), s.addEventListener("pointermove", S), function () {
                    s.removeEventListener("pointerdown", m), s.removeEventListener("pointerup", g), s.removeEventListener("pointermove", S), f.removeListener("hide", p)
                }
            })
        }
    }, 1002: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), function (e) {
            e[e.autoHideAtX = 380] = "autoHideAtX", e[e.autoHideAtY = 226] = "autoHideAtY", e[e.ballSize = 52] = "ballSize", e[e.ballTop = 10] = "ballTop", e[e.weltSize = 12] = "weltSize", e[e.weltTopSize = 62] = "weltTopSize", e[e.speedWidth = 72] = "speedWidth", e[e.floatHeight = 262] = "floatHeight"
        }(t.SuspensionInfo || (t.SuspensionInfo = {}))
    }, 1003: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(4), r = n(1004), s = n(1005), a = "main-renderer";
        !function (e) {
            function t(e, ...t) {
                return i(this, void 0, void 0, function* () {
                    let n = yield o.client.callRemoteClientFunction(a, e, ...t).catch();
                    return n && n.length > 0 ? n[0] : {}
                })
            }

            function n() {
                return i(this, void 0, void 0, function* () {
                    return yield t(r.XmpPlayerFunction.getXmpPlayType)
                })
            }

            function l() {
                return i(this, void 0, void 0, function* () {
                    return (yield n()) === r.XmpPlayType.yunBo
                })
            }

            function d() {
                return i(this, void 0, void 0, function* () {
                    return Number(yield t(r.XmpPlayerFunction.getPlayingTaskId))
                })
            }

            e.openPayVipUrl = function (e) {
                o.client.callRemoteClientFunction("vip-download-webview", "OpenPayVipUrl", e).catch()
            }, e.callXmp = t, e.getXmpPlayType = n, e.isYunBo = l, e.isPlayAndDownload = function () {
                return i(this, void 0, void 0, function* () {
                    return (yield n()) === r.XmpPlayType.downloadAndPlay
                })
            }, e.isLocalPlay = function () {
                return i(this, void 0, void 0, function* () {
                    return (yield n()) === r.XmpPlayType.localFile
                })
            }, e.getXmpCurrentMode = function () {
                return i(this, void 0, void 0, function* () {
                    return t(r.XmpPlayerFunction.getXmpCurrentMode)
                })
            }, e.getCurrentTaskGcid = function () {
                return i(this, void 0, void 0, function* () {
                    return t(r.XmpPlayerFunction.getCurrentMediaAttribute, r.XmpMediaAttr.Gcid)
                })
            }, e.getCurrentTaskId = d, e.getCurrentTaskIdOrPanId = function () {
                return i(this, void 0, void 0, function* () {
                    return (yield l()) ? t(r.XmpPlayerFunction.getCurrentMediaAttribute, r.XmpMediaAttr.PanFileId) : t(r.XmpPlayerFunction.getPlayingTaskId)
                })
            }, e.getCurrentTaskStatus = function () {
                return i(this, void 0, void 0, function* () {
                    let e = yield d();
                    return s.default.getTaskStatus(e)
                })
            }, e.getStatPlayType = function () {
                return i(this, void 0, void 0, function* () {
                    return t(r.XmpPlayerFunction.getCurrentMediaAttribute, r.XmpMediaAttr.PlayType)
                })
            }, e.getStatPlayfrom = function () {
                return i(this, void 0, void 0, function* () {
                    return (yield t(r.XmpPlayerFunction.getCurrentMediaAttribute, r.XmpMediaAttr.PlayFrom)) || ""
                })
            }, e.getStatOpenFrom = function () {
                return i(this, void 0, void 0, function* () {
                    return (yield t(r.XmpPlayerFunction.getCurrentMediaAttribute, r.XmpMediaAttr.OpenFrom)) || ""
                })
            }, e.trackShowEvnet = function (e, n, i) {
                t("TrackShowEvent", (new Date).getTime(), e, n, function (e) {
                    let t = "";
                    return e.forEach((e, n) => {
                        "" !== t && (t += ","), t = t + n + "=" + e
                    }), t
                }(i)).catch()
            }
        }(t.CommonNS || (t.CommonNS = {}))
    }, 1004: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), function (e) {
            e[e.Invalid = -100] = "Invalid", e[e.PreOpen = -10] = "PreOpen", e[e.QueryExt = -9] = "QueryExt", e[e.DownloadTorrent = -3] = "DownloadTorrent", e[e.ParserTorrent = -2] = "ParserTorrent", e[e.GetPlayUrl = -1] = "GetPlayUrl", e[e.Ready = 0] = "Ready", e[e.Opening = 1] = "Opening", e[e.Pausing = 2] = "Pausing", e[e.Paused = 3] = "Paused", e[e.Playing = 4] = "Playing", e[e.Play = 5] = "Play", e[e.Closeing = 6] = "Closeing", e[e.Completed = 7] = "Completed", e[e.Stopped = 8] = "Stopped", e[e.Error = 9] = "Error"
        }(t.XmpMediaState || (t.XmpMediaState = {})), function (e) {
            e[e.NumberStart = 0] = "NumberStart", e[e.MediaId = 1] = "MediaId", e[e.OwnerMediaId = 2] = "OwnerMediaId", e[e.CreateTime = 3] = "CreateTime", e[e.PlayTime = 4] = "PlayTime", e[e.LastPlayTime = 5] = "LastPlayTime", e[e.Duration = 6] = "Duration", e[e.Height = 7] = "Height", e[e.Width = 8] = "Width", e[e.PreState = 9] = "PreState", e[e.State = 10] = "State", e[e.Position = 11] = "Position", e[e.LastStartPos = 12] = "LastStartPos", e[e.PlaySpeed = 13] = "PlaySpeed", e[e.SubtitleShow = 14] = "SubtitleShow", e[e.SubtitleLanguage = 15] = "SubtitleLanguage", e[e.SubtitleType = 16] = "SubtitleType", e[e.SubtitlePosition = 17] = "SubtitlePosition", e[e.SubtitleTimming = 18] = "SubtitleTimming", e[e.Subtitle3D = 19] = "Subtitle3D", e[e.Subtitle2Show = 20] = "Subtitle2Show", e[e.Subtitle2Language = 21] = "Subtitle2Language", e[e.Subtitle2Type = 22] = "Subtitle2Type", e[e.Subtitle2Position = 23] = "Subtitle2Position", e[e.Subtitle2Timming = 24] = "Subtitle2Timming", e[e.Subtitle23D = 25] = "Subtitle23D", e[e.FileSize = 26] = "FileSize", e[e.Category = 27] = "Category", e[e.Type = 28] = "Type", e[e.MediaIndex = 29] = "MediaIndex", e[e.TaskId = 30] = "TaskId", e[e.TaskStop = 31] = "TaskStop", e[e.AudioTrack = 32] = "AudioTrack", e[e.ThunderTaskId = 33] = "ThunderTaskId", e[e.ThunderTaskSubId = 34] = "ThunderTaskSubId", e[e.PlayPercent = 35] = "PlayPercent", e[e.OpenFrom = 36] = "OpenFrom", e[e.DLNA = 37] = "DLNA", e[e.transcode = 38] = "transcode", e[e.NumberEnd = 39] = "NumberEnd", e[e.StringStart = 4096] = "StringStart", e[e.Name = 4097] = "Name", e[e.Url = 4098] = "Url", e[e.PlayUrl = 4099] = "PlayUrl", e[e.Cid = 4100] = "Cid", e[e.Gcid = 4101] = "Gcid", e[e.Subtitle = 4102] = "Subtitle", e[e.Subtitle2 = 4103] = "Subtitle2", e[e.Ext = 4104] = "Ext", e[e.Played = 4105] = "Played", e[e.AudioChannel = 4106] = "AudioChannel", e[e.OutputMode = 4107] = "OutputMode", e[e.Brightness = 4108] = "Brightness", e[e.ContrastRatio = 4109] = "ContrastRatio", e[e.Saturation = 4110] = "Saturation", e[e.SubtitleSize = 4111] = "SubtitleSize", e[e.SubtitleColor = 4112] = "SubtitleColor", e[e.SubtitleFont = 4113] = "SubtitleFont", e[e.Subtitle2Size = 4114] = "Subtitle2Size", e[e.Subtitle2Color = 4115] = "Subtitle2Color", e[e.Subtitle2Font = 4116] = "Subtitle2Font", e[e.Proportion = 4117] = "Proportion", e[e.AudioTime = 4118] = "AudioTime", e[e.Rorate = 4119] = "Rorate", e[e.FlipH = 4120] = "FlipH", e[e.FlipV = 4121] = "FlipV", e[e.LocalAudioTrack = 4122] = "LocalAudioTrack", e[e.ImgSrc = 4123] = "ImgSrc", e[e.PanFileId = 4124] = "PanFileId", e[e.RationText = 4125] = "RationText", e[e.RationTextEx = 4126] = "RationTextEx", e[e.vipLevel = 4127] = "vipLevel", e[e.PlayFrom = 4128] = "PlayFrom", e[e.resolution = 4129] = "resolution", e[e.trans_gcid = 4130] = "trans_gcid", e[e.PlayType = 4131] = "PlayType", e[e.StringEnd = 4132] = "StringEnd"
        }(t.XmpMediaAttr || (t.XmpMediaAttr = {})), function (e) {
            e.unKnow = "UnKnow", e.localFile = "LocalFile", e.downloadAndPlay = "DownloadAndPlay", e.yunBo = "YunBo"
        }(t.XmpPlayType || (t.XmpPlayType = {})), function (e) {
            e.init = "XmpPlayerInit", e.showAPlayerWindow = "XmpShowAPlayerWindow", e.createXmpMedia = "XmpPlayerCreateXmpMedia", e.open = "XmpPlayerOpen", e.openFile = "XmpPlayerOpenFile", e.addFile = "XmpPlayerAddFile", e.openFolder = "XmpPlayerOpenFolder", e.openBt = "XmpPlayerOpenBt", e.openUrl = "XmpPlayerOpenUrl", e.openMedia = "XmpPlayerOpenMedia", e.close = "XmpPlayerClose", e.stop = "XmpPlayerStop", e.play = "XmpPlayerPlay", e.pause = "XmpPlayerPause", e.getVersion = "XmpPlayerGetVersion", e.getState = "XmpPlayerGetState", e.isPlaying = "XmpPlayerIsPlaying", e.getDuration = "XmpPlayerGetDuration", e.getPosition = "XmpPlayerGetPosition", e.setPosition = "XmpPlayerSetPosition", e.getVideoWidth = "XmpPlayerGetVideoWidth", e.getVideoHeight = "XmpPlayerGetVideoHeight", e.getVolume = "XmpPlayerGetVolume", e.setVolume = "XmpPlayerSetVolume", e.isSeeking = "XmpPlayerIsSeeking", e.getBufferProgress = "XmpPlayerGetBufferProgress", e.getConfig = "XmpPlayerGetConfig", e.setConfig = "XmpPlayerSetConfig", e.setCurrentMedia = "XmpPlayerSetCurrentMedia", e.getCurrentMedia = "XmpPlayerGetCurrentMedia", e.getMediaAttribute = "XmpPlayerMediaAttribute", e.getCurrentMediaAttribute = "XmpPlayerGetCurrentMediaAttribute", e.clearCurrentMedia = "XmpPlayerClearCurrentMedia", e.openPreMedia = "XmpPlayerOpenPreMedia", e.openNextMedia = "XmpPlayerOpenNextMedia", e.isPlayOrderFirstMedia = "XmpPlayerIsPlayOrderFirstMedia", e.isPlayOrderLastMedia = "XmpPlayerIsPlayOrderLastMedia", e.isFirstMedia = "XmpPlayerIsFirstMedia", e.isLastMedia = "XmpPlayerIsLastMedia", e.isMediasLoadFinished = "XmpPlayerIsMediasLoadFinished", e.getMediasInfo = "XmpPlayerGetMediasInfo", e.removeMedia = "XmpPlayerRemoveMedia", e.removeAllMedia = "XmpPlayerRemoveAllMedia", e.setASpectRatioAtive = "XmpPlayerSetASpectRatioAtive", e.setPlayForward = "XmpPlayerSetPlayForward", e.postionChange = "XmpPlayerPostionChange", e.getBufferRange = "XmpPlayerGetBufferRange", e.fireKeyDown = "XmpPlayerFireKeyDown", e.fireKeyUp = "XmpPlayerFireKeyUp", e.setAudioTime = "XmpPlayerSetAudioTime", e.setProportion = "XmpPlayerSetProportion", e.setVlomue = "XmpPlayerSetVlomue", e.getCurView = "XmpPlayerGetCurView", e.recordStat = "XmpPlayerRecordStat", e.getHostWnd = "XmpPlayerGetHostWnd", e.startWindowZorderChecker = "StartWindowZorderChecker", e.stopWindowZorderChecker = "StopWindowZorderChecker", e.setZOrderCheckerWindowHandle = "SetZOrderCheckerWindowHandle", e.removeZOrderCheckerWindowHandle = "RemoveZOrderCheckerWindowHandle", e.getVideoDuration = "GetVideoDuration", e.getDownloadState = "GetDownloadState", e.getResConfig = "GetResConfig", e.queryTaskState = "QueryTaskState", e.shareMediaInfo = "ShareMediaInfo", e.getThunderDirState = "GetThunderDirState", e.setThunderDirState = "SetThunderDirState", e.showSyncDig = "ShowSyncDig", e.isXmpLite = "IsXmpLite", e.handleVipPlaySpeed = "handleVipPlaySpeed", e.getMediaInfo = "GetMediaInfo", e.getCurrentMediaInfo = "GetCurrentMediaInfo", e.setMediaAttribute = "XmpPlayerSetMediaAttribute", e.updateDownloadEmbedRect = "UpdateDownloadEmbedRect", e.updatePanEmbedRect = "UpdatePanEmbedRect", e.createIndependentWindow = "CreateIndependentWindow", e.thunderResize = "ThunderResize", e.updateFloatHwnd = "UpdateFloatHwnd", e.updateAplayerHwnd = "UpdateAplayerHwnd", e.updatePlaySource = "UpdatePlaySource", e.setXmpCurrentMode = "SetXmpCurrentMode", e.getXmpCurrentMode = "GetXmpCurrentMode", e.destroy = "XmpDestroy", e.maximize = "XmpMaximize", e.unmaximize = "XmpUnmaximize", e.minmized = "XmpMinmized", e.setPlaySpeed = "SetPlaySpeed", e.getPlaySpeed = "GetPlaySpeed", e.setWindowTopMode = "SetWindowTopMode", e.calcelWindowTopMode = "CalcelWindowTopMode", e.enterFullScreen = "EnterFullScreen", e.leaveFullScreen = "LeaveFullScreen", e.getIsFullScreen = "GetIsFullScreen", e.setPlayingTaskId = "SetPlayingTaskId", e.setlayPingPanFileId = "SetPlayingPanFileId", e.setSelectTaskId = "SetSelectTaskId", e.setSelectPanel = "SetSelectPanel", e.setSelectTab = "SetSelectTab", e.setSelectPanFileId = "SetSelectPanFileId", e.getPlayingTaskId = "GetPlayingTaskId", e.getPlayingPanFileId = "GetPlayingPanFileId", e.getSelectTaskId = "GetSelectTaskId",e.getSelectPanel = "GetSelectPanel",e.getSelectTab = "GetSelectTab",e.getSelectPanFileId = "GetSelectPanFileId",e.getXmpPlayType = "GetXmpPlayType",e.getDownloadAndPlayTaskData = "GetDownloadAndPlayTaskData",e.isCurrentBuffingIsByDrag = "IsCurrentBuffingIsByDrag",e.getLastPlayError = "GetLastPlayError",e.getPlayId = "GetPlayId",e.getPlayTick = "GetPlayTick"
        }(t.XmpPlayerFunction || (t.XmpPlayerFunction = {})), function (e) {
            e.onWindowMessage = "OnWindowMessage", e.onStateChanged = "OnStateChanged", e.onCreateMediaError = "OnCreateMediaError", e.onOpenSucceeded = "OnOpenSucceeded", e.onVideoSizeChanged = "OnVideoSizeChanged", e.onAPlayerCreated = "OnAPlayerCreated", e.onAllStoped = "OnAllStoped", e.onSeekCompleted = "OnSeekCompleted", e.onBuffer = "OnBuffer", e.onDownloadCodec = "OnDownloadCodec", e.onDownloadCodecProgress = "OnDownloadCodecProgress", e.onDropFiles = "OnDropFiles", e.onEvent = "OnEvent", e.onGetPlayUrl = "OnGetPlayUrl", e.onOpenFailed = "OnOpenFailed", e.onPlayFailed = "OnPlayFailed", e.onClearError = "OnClearError", e.onError = "OnError", e.onPlaying = "OnPlaying", e.onPreOpen = "OnPreOpen", e.onPaused = "OnPaused", e.onPlayCompleted = "OnPlayCompleted", e.onPreStop = "OnPreStop", e.onStop = "OnStop", e.onForceLoadingState = "OnForceLoadingState", e.onVipStruckPlayState = "OnVipStruckPlayState", e.onTimeDesChange = "OnTimeDesChange", e.onPositionChanged = "OnPositionChanged", e.onSnapShotCreated = "OnSnapShotCreated", e.onXmpPlayerEvent = "OnXmpPlayerEvent", e.onXmpAplayerCrash = "OnXmpAplayerCrash", e.onUpdateMediaCid = "OnUpdateMediaCid", e.onUpdateMediaGcid = "OnUpdateMediaGcid", e.onSpeedChange = "OnSpeedChange", e.onFullScreenStateChange = "OnFullScreenStateChange", e.onSetConfig = "OnSetConfig", e.onVolumeChange = "OnVolumeChange", e.onPlayStateChange = "OnPlayStateChange", e.onCurViewChanged = "OnCurViewChanged", e.onUserLogin = "OnUserLogin", e.onDwmCompositionChanged = "OnDwmCompositionChanged", e.onDpiChanged = "OnDpiChanged", e.onGPUProcessCrashed = "OnGPUProcessCrashed", e.onSetCurrentDevice = "OnSetCurrentDevice", e.onXmpPlayerRemoveMedias = "OnXmpPlayerRemoveMedias", e.onOpenMediaNotExist = "OnOpenMediaNotExist", e.onSwitchModeError = "OnSwitchModeError", e.onDlnaEvent = "OnDlnaEvent", e.onSubtitleInit = "OnSubtitleInit", e.onSubtitleUnInit = "onSubtitleUnInit", e.onEmbedSubInitFinish = "OnEmbedSubInitFinish", e.onEntertCurrentDevice = "OnEntertCurrentDevice", e.onWindowZOrderChanged = "OnWindowZOrderChanged", e.onAplayerSeekFrameChanged = "OnAplayerSeekFrameChanged", e.onModeBarChange = "OnModeBarChange", e.onThunderTaskRemove = "OnThunderTaskRemove", e.onXmpClose = "OnXmpClose", e.onXmpStartFailed = "OnXmpStartFailed", e.onVipViewInitFinish = "OnVipViewInitFinish", e.onModeEvent = "OnModeEvent", e.onMaxmized = "OnMaxmized", e.onUnMaxmized = "OnUnMaxmized", e.onSetWindowTopMost = "OnWindowTopMost", e.onCancelWindowTopMost = "OnCancelWindowTopMost", e.onOpenOrCloseSettingCenter = "OnOpenOrCloseSettingCenter", e.onUpdateBufferingUI = "OnUpdateBufferingUI"
        }(t.XmpEvent || (t.XmpEvent = {})), function (e) {
            e.XMP = "xmp", e.APlayer = "aplayer", e.DownloadKernel = "download_kernel", e.Thunder = "thunder", e.Other = "other", e.Exit = "exit", e.Crash = "crash", e.Restart = "restart", e.CancelDownloadCodecs = "cancel_download_codecs"
        }(t.ErrorFrom || (t.ErrorFrom = {})), function (e) {
            e[e.UNKNOWN_MODE = -1] = "UNKNOWN_MODE", e[e.INDEPENDENT_MODE = 0] = "INDEPENDENT_MODE", e[e.MAGNETIC_MODE = 1] = "MAGNETIC_MODE", e[e.EMBED_MODE = 2] = "EMBED_MODE"
        }(t.XmpMode || (t.XmpMode = {})), function (e) {
            let t = new Map([[2147746328, "无法解码该文件, 找不到所需的解码器或格式不支持，请尝试重新安装"], [2147680258, "找不到指定的资源"], [2147533648, "找不到指定的模块，请尝试重新安装"], [3222077446, "无法连接指定的服务器"], [3222080445, "无法播放受到版权保护的媒体文件"], [2147746351, "文件为空或无法访问"], [2147943792, "无效的播放参数，请确认输入了有效的播放文件地址"], [4294967263, "全网点播服务在维护中"], [1, "任务创建失败，无法继续下载"], [2, "任务参数错误，无法继续下载"], [3, "链接失效，无法继续下载"], [4, "任务配置文件错误，无法继续下载"], [5, "任务连接超时，无法继续下载"], [6, "文件校验失败，无法继续下载"], [7, "任务包含违规内容，无法继续下载"], [8, "下载引擎加速出错，无法继续下载"], [9, "文件路径超出系统限制，无法继续下载"], [201, "缓存文件创建失败，无法继续下载"], [202, "缓存文件写入失败，无法继续下载"], [203, "缓存文件读取失败，无法继续下载"], [204, "缓存文件文件重命名失败，无法继续下载"], [205, "缓存磁盘空间不足，无法继续下载，请清理再试"], [601, "BT任务已存在，无法继续下载"], [701, "任务包含违规内容，无法继续下载"], [702, "帐号存在异常，无法继续下载"], [703, "根据当地法律法规，文件无法下载"], [704, "应版权方要求，该文件无法下载"], [10001, "下载引擎未启动，无法继续下载"], [10002, "种子文件不存在，无法继续下载"], [44093, "播放进程崩溃了"], [44172, "边下边播任务异常,请尝试重启迅雷"], [44041, "本地BT媒体文件找不到,请稍后再试"], [44042, "种子内无有效的视频文件"], [44013, "媒体链接为网页地址,无法播放"], [44014, "媒体链接无法连接成功"], [44018, "不支持此媒体播放"], [44019, "媒体解码失败,无法播放"], [44091, "下载库崩溃,请重启迅雷播放组件再试"], [44111, "获取媒体格式失败"], [44112, "媒体文件下载失败"], [71200, "切换校验模式后，仍无法打开媒体文件"], [168965206, "播放失败，缺少必要的解码器"], [305419896, "播放出错, 可能暂不支持该格式解码, 建议尝试播放其他音视频文件"], [2326396930, "失效文件，可能已经被删除"]]);
            e.getErrorTextByErrorCode = function (e) {
                let n = t.get(e);
                return n || (n = "未知错误"), n
            }
        }(t.XmpErrorCodeNS || (t.XmpErrorCodeNS = {})), function (e) {
            e[e.Unkown = 0] = "Unkown", e[e.Download = 1] = "Download", e[e.Play = 2] = "Play", e[e.Collect = 3] = "Collect"
        }(t.XmpMediaCategory || (t.XmpMediaCategory = {})), function (e) {
            e[e.XMPDrag = 0] = "XMPDrag"
        }(t.OpenMode || (t.OpenMode = {})), function (e) {
            e[e.Unkown = 0] = "Unkown", e[e.Dc = 1] = "Dc", e[e.Vod = 2] = "Vod", e[e.P2s = 3] = "P2s", e[e.Gvod = 4] = "Gvod", e[e.ServerXlpan = 5] = "ServerXlpan", e[e.LocalXlpan = 6] = "LocalXlpan"
        }(t.XmpMediaType || (t.XmpMediaType = {})), function (e) {
            e.createButton = "CreateButton", e.updateButton = "UpdateButton", e.createWebview = "CreateWebview", e.setDefaultVipSpeedStatus = "SetDefaultVipSpeedStatus", e.updateVipSpeedStatus = "UpdateVipSpeedStatus", e.getWebviewInfo = "GetWebviewInfo", e.createVipView = "CreateVipview", e.showCurveChart = "showCurveChart", e.applyBrowserView = "ApplyBrowserView", e.getBrowserViewId = "GetBrowserViewId", e.initBrowserViewConfig = "initBrowserViewConfig", e.createVipMenu = "CreateVipMenu", e.getMenuSlot = "GetMenuSlot", e.openNewTab = "OpenNewTab", e.videoPause = "DoVideoPause", e.videoPlay = "DoVideoPlay", e.videoPauseEx = "DoVideoPauseEx", e.videoPlayEx = "DoVideoPlayEx", e.setPlaySpeed = "SetPlaySpeed", e.setProgressColor = "SetProgressColor", e.getProgressColor = "GetProgressColor", e.showBufferingEntry = "ShowBufferingEntry", e.isBufferingEntryShow = "IsBufferingEntryShow", e.showOpenVipEntry = "ShowOpenVipEntry", e.registerFunctionCall = "RegisterFunctionCall", e.executeFunctionCall = "ExecuteFunctionCall", e.videoGetPlayState = "VideoGetPlayState", e.setXmpFocus = "SetXmpFocus", e.leaveFullScreen = "LeaveFullScreen"
        }(t.UIFunction || (t.UIFunction = {})), function (e) {
            e.onXmpModeChanging = "OnXmpModeChanging", e.onXmpModeChanged = "OnXmpModeChanged", e.onXmpEnterFullScreen = "OnXmpEnterFullScreen", e.onXmpLeaveFullScreen = "OnXmpLeaveFullScreen"
        }(t.ModeChangeEvent || (t.ModeChangeEvent = {})), function (e) {
            e.saveConfig = "SaveConfig", e.getConfigValue = "GetConfigValue", e.setConfigValue = "SetConfigValue", e.isConfigInitFinish = "IsConfigInitFinish", e.getConfigModules = "GetConfigModules", e.setXmpAndThunderConfigValue = "SetXmpAndThunderConfigValue"
        }(t.ConfigFunction || (t.ConfigFunction = {}))
    }, 1005: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(1006), r = n(12), s = n(4), a = n(1).default.getLogger("xmp-vip-download-kernel-helper");
        var l;
        !function (e) {
            e.taskInserted = "OnTaskInserted", e.taskCompleted = "OnTaskCompleted", e.taskRemoved = "OnTaskRemoved", e.taskStatusChanged = "OnTaskStatusChanged", e.taskDetailChanged = "OnTaskDetailChanged", e.taskDcdnStatusChanged = "OnTaskDcdnStatusChanged", e.btSubFileDcdnStatusChanged = "OnBtSubFileDcdnStatusChanged", e.btSubFileDetailChanged = "OnBtSubFileDetailChanged"
        }(l = t.DkEventNS || (t.DkEventNS = {}));

        class d extends r.EventEmitter {
            constructor() {
                super(), this.mPeerId = void 0, this.init()
            }

            init() {
                this.setMaxListeners(0)
            }

            getTpPeerId() {
                return i(this, void 0, void 0, function* () {
                    if (this.mPeerId) return this.mPeerId;
                    {
                        let e = yield s.client.callServerFunction("GetTpPeerId");
                        return e && "" !== e && (this.mPeerId = e), this.mPeerId || ""
                    }
                })
            }

            getCurrentCategoryId() {
                return i(this, void 0, void 0, function* () {
                    return yield s.client.callServerFunction("GetCurrentCategoryId")
                })
            }

            getTaskBaseInfo(e) {
                return i(this, void 0, void 0, function* () {
                    let t = null, n = yield s.client.callServerFunction("GetTaskBaseInfo", e);
                    if (n) try {
                        t = JSON.parse(n)
                    } catch (e) {
                        a.warning(e)
                    }
                    return t
                })
            }

            getTaskGcid(e) {
                return i(this, void 0, void 0, function* () {
                    let t = yield this.getTaskBaseInfo(e), n = "";
                    return t && t.gcid && (n = t.gcid), n
                })
            }

            getTaskStatus(e) {
                return i(this, void 0, void 0, function* () {
                    return yield s.client.callServerFunction("GetTaskStatus", e)
                })
            }

            IsTaskExist(e) {
                return i(this, void 0, void 0, function* () {
                    return yield s.client.callServerFunction("IsTaskExist", e)
                })
            }

            getTaskDetail(e) {
                return i(this, void 0, void 0, function* () {
                    let t = null, n = yield s.client.callServerFunction("GetTaskInfo", e, void 0, "taskDetail");
                    a.information("getTaskDetail", n);
                    do {
                        if (!n) break;
                        let e = null;
                        try {
                            e = JSON.parse(n)
                        } catch (e) {
                            a.warning(e)
                        }
                        if (!e || !e.fileList) break;
                        let i = e.infoId, r = e.type;
                        t = {infoId: i, files: new Map};
                        for (let n of e.fileList) {
                            let e = -1, s = n.url;
                            r === o.DownloadKernel.TaskType.Bt ? (e = n.index, s = this.createBtFileUrl(n.index, i)) : r === o.DownloadKernel.TaskType.Group && (e = n.taskId);
                            let a = {
                                subId: e,
                                taskStatus: n.status,
                                filePath: n.filePath,
                                fileName: n.fileName,
                                gcid: n.gcid,
                                cid: n.cid,
                                url: s,
                                refUrl: n.refUrl || "",
                                fileSize: n.fileSize,
                                downloadSize: n.downloadSize,
                                errCode: n.errCode,
                                isNeedDownload: n.isNeedDownload,
                                dcdnStatus: n.dcdnStatus
                            };
                            t.files.set(e, a)
                        }
                    } while (0);
                    return t
                })
            }

            createBtTaskUrl(e) {
                return "bt://" + e
            }

            createBtFileUrl(e, t) {
                let n = this.createBtTaskUrl(t);
                return n = n + "/" + e
            }

            startTask(e) {
                this.operateTask(e, "continue")
            }

            stopTask(e) {
                this.operateTask(e, "pause")
            }

            enableDcdnWithVipCert(e, t) {
                return i(this, void 0, void 0, function* () {
                    a.information("enableDcdnWithVipCert", "taskId", e, "vipCert", t), yield s.client.callServerFunction("EnableDcdnWithVipCert", e, t)
                })
            }

            updateDcdnWithVipCert(e, t) {
                return i(this, void 0, void 0, function* () {
                    a.information("updateDcdnWithVipCert", "taskId", e, "vipCert", t), yield s.client.callServerFunction("UpdateDcdnWithVipCert", e, t)
                })
            }

            disableDcdnWithVipCert(e) {
                return i(this, void 0, void 0, function* () {
                    a.information("disableDcdnWithVipCert", "taskId", e), yield s.client.callServerFunction("DisableDcdnWithVipCert", e)
                })
            }

            getDownloadingActiveTaskId() {
                return i(this, void 0, void 0, function* () {
                    return yield s.client.callServerFunction("GetDownloadingActiveTaskId")
                })
            }

            attachDkEvents() {
                s.client.attachServerEvent("OnTaskInserted", this.onTaskInserted.bind(this)), s.client.attachServerEvent("OnTaskRemoved", this.onTaskRemoved.bind(this)), s.client.attachServerEvent("OnTaskStatusChanged", (e, t) => {
                    {
                        let e = null;
                        try {
                            e = JSON.parse(t)
                        } catch (e) {
                            a.warning(e)
                        }
                        if (null !== e) for (let t in e) {
                            let n = e[t];
                            this.onTaskStatusChanged(Number(t), n)
                        }
                    }
                }), s.client.attachServerEvent("OnTaskDetailChanged", (e, t, n) => {
                    t.forEach(e => i(this, void 0, void 0, function* () {
                        this.onTaskDetailChanged(Number(e), yield this.getTaskBaseInfo(e))
                    }))
                }), s.client.attachServerEvent("OnTaskDcdnStatusChanged", (e, t) => {
                    if (null !== t) for (let e in t) {
                        let n = t[e];
                        this.onTaskDcdnStatusChanged(Number(e), n)
                    }
                }), s.client.attachServerEvent("OnBtSubFileDcdnStatusChanged", this.onBtSubFileDcdnStatusChanged.bind(this)), s.client.attachServerEvent("OnBtSubFileDetailChanged", (e, t, n) => {
                    {
                        let e = null;
                        try {
                            e = JSON.parse(n)
                        } catch (e) {
                            a.warning(e)
                        }
                        null !== e && this.onBtSubFileDetailChanged(t, e)
                    }
                })
            }

            operateTask(e, t, n) {
                s.client.callServerFunction("OperateTask", e, t, n).catch()
            }

            onTaskInserted(e, t, n, i) {
                if (a.information("onTaskInserted categoryId:", t, ", categoryViewId:", n), null !== i) switch (n) {
                    case o.DownloadKernel.CategroyViewID.Downloading:
                        i.forEach(e => {
                            this.emit(l.taskInserted, e)
                        });
                        break;
                    case o.DownloadKernel.CategroyViewID.Completed:
                        i.forEach(e => {
                            this.emit(l.taskCompleted, e)
                        })
                }
            }

            onTaskRemoved(e, t, n, i) {
                if (a.information("onTaskRemoved categoryId:", t, ", categoryViewId:", n), i) switch (n) {
                    case o.DownloadKernel.CategroyViewID.Downloading:
                    case o.DownloadKernel.CategroyViewID.Completed:
                        i.forEach(e => {
                            this.emit(l.taskRemoved, e)
                        })
                }
            }

            onTaskStatusChanged(e, t) {
                this.emit(l.taskStatusChanged, e, t)
            }

            onTaskDetailChanged(e, t) {
                this.emit(l.taskDetailChanged, e, t)
            }

            onTaskDcdnStatusChanged(e, t) {
                this.emit(l.taskDcdnStatusChanged, e, t)
            }

            onBtSubFileDcdnStatusChanged(e, t, n, i) {
                this.emit(l.btSubFileDcdnStatusChanged, t, n, i)
            }

            onBtSubFileDetailChanged(e, t) {
                this.emit(l.btSubFileDetailChanged, e, t)
            }
        }

        t.DkHelper = d, t.default = new d
    }, 1006: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), function (e) {
            let t, n, i, o, r, s, a, l, d, u, c, h, p, f, m, g, S, v, T;
            !function (e) {
                e[e.Unkown = 0] = "Unkown", e[e.Create = 1] = "Create", e[e.InvaldParam = 2] = "InvaldParam", e[e.InvaldLink = 3] = "InvaldLink", e[e.InvaldConfig = 4] = "InvaldConfig", e[e.Timeout = 5] = "Timeout", e[e.VerifyData = 6] = "VerifyData", e[e.Forbidden = 7] = "Forbidden", e[e.RangeDispatch = 8] = "RangeDispatch", e[e.FilePathOverRanging = 9] = "FilePathOverRanging", e[e.FileCreate = 201] = "FileCreate", e[e.FileWrite = 202] = "FileWrite", e[e.FileRead = 203] = "FileRead", e[e.FileRename = 204] = "FileRename", e[e.FileFull = 205] = "FileFull", e[e.BtUploadExist = 601] = "BtUploadExist", e[e.ForbinddenResource = 701] = "ForbinddenResource", e[e.ForbinddenAccount = 702] = "ForbinddenAccount", e[e.ForbinddenArea = 703] = "ForbinddenArea", e[e.ForbinddenCopyright = 704] = "ForbinddenCopyright", e[e.ForbinddenReaction = 705] = "ForbinddenReaction", e[e.ForbinddenPorn = 706] = "ForbinddenPorn", e[e.DownloadSDKCrash = 10001] = "DownloadSDKCrash"
            }(t = e.TaskError || (e.TaskError = {})), function (e) {
                e[e.Unkown = -1] = "Unkown", e[e.Success = 0] = "Success", e[e.QueryFailed = 1] = "QueryFailed", e[e.ServerError = 2] = "ServerError", e[e.ResourceNotFound = 3] = "ResourceNotFound", e[e.AuthorizingFailed = 4] = "AuthorizingFailed", e[e.ForbidByCopyright = 5] = "ForbidByCopyright", e[e.ForbidByPorNoGraphy = 6] = "ForbidByPorNoGraphy", e[e.ForbidByReactionary = 7] = "ForbidByReactionary", e[e.ForbidByOtherFilter = 8] = "ForbidByOtherFilter"
            }(n = e.DcdnStatusCode || (e.DcdnStatusCode = {})), function (e) {
                e[e.Begin = -1] = "Begin", e[e.Unkown = 0] = "Unkown", e[e.StandBy = 1] = "StandBy", e[e.PreDownloading = 2] = "PreDownloading", e[e.StartWaiting = 3] = "StartWaiting", e[e.StartPending = 4] = "StartPending", e[e.Started = 5] = "Started", e[e.StopPending = 6] = "StopPending", e[e.Stopped = 7] = "Stopped", e[e.Succeeded = 8] = "Succeeded", e[e.Failed = 9] = "Failed", e[e.Seeding = 10] = "Seeding", e[e.DestroyPending = 11] = "DestroyPending", e[e.End = 12] = "End"
            }(i = e.TaskStatus || (e.TaskStatus = {})), function (e) {
                e[e.Begin = -1] = "Begin", e[e.StandBy = 0] = "StandBy", e[e.Stopped = 1] = "Stopped", e[e.Started = 2] = "Started", e[e.Complete = 3] = "Complete", e[e.Forbidden = 4] = "Forbidden", e[e.Error = 5] = "Error", e[e.End = 6] = "End"
            }(o = e.BtFileStatus || (e.BtFileStatus = {})), function (e) {
                e[e.DispatchStrategyNone = 0] = "DispatchStrategyNone", e[e.DispatchStrategyOrigin = 1] = "DispatchStrategyOrigin", e[e.DispatchStrategyP2s = 2] = "DispatchStrategyP2s", e[e.DispatchStrategyP2p = 4] = "DispatchStrategyP2p", e[e.DispatchStrategyAll = -1] = "DispatchStrategyAll"
            }(r = e.DispatchStrategy || (e.DispatchStrategy = {})), function (e) {
                e[e.Unkown = 0] = "Unkown", e[e.P2sp = 1] = "P2sp", e[e.Bt = 2] = "Bt", e[e.Emule = 3] = "Emule", e[e.Group = 4] = "Group", e[e.Magnet = 5] = "Magnet"
            }(s = e.TaskType || (e.TaskType = {})), function (e) {
                e.Unkown = "Unkown", e.Downloading = "Downloading", e.Completed = "Completed", e.Recycle = "Recycle"
            }(a = e.CategroyViewID || (e.CategroyViewID = {})), function (e) {
                e[e.Unknow = 0] = "Unknow", e[e.TaskCreated = 1] = "TaskCreated", e[e.InsertToCategoryView = 2] = "InsertToCategoryView", e[e.RemoveFromCategoryView = 3] = "RemoveFromCategoryView", e[e.StatusChanged = 4] = "StatusChanged", e[e.DetailChanged = 5] = "DetailChanged", e[e.ChannelInfoChanged = 6] = "ChannelInfoChanged", e[e.DcdnStatusChanged = 7] = "DcdnStatusChanged", e[e.TaskDescriptionChanged = 8] = "TaskDescriptionChanged", e[e.TaskUserRead = 9] = "TaskUserRead", e[e.TaskRenamed = 10] = "TaskRenamed", e[e.TaskMovedEnd = 11] = "TaskMovedEnd", e[e.TaskMovingStateChange = 12] = "TaskMovingStateChange", e[e.BtSubFileDetailChanged = 13] = "BtSubFileDetailChanged", e[e.BtSubFileLoaded = 14] = "BtSubFileLoaded", e[e.BtSubFileForbidden = 15] = "BtSubFileForbidden", e[e.BtSubFileDcdnStatusChanged = 16] = "BtSubFileDcdnStatusChanged", e[e.TaskCategoryMovedEnd = 17] = "TaskCategoryMovedEnd", e[e.GroupTaskSubFileDetailChanged = 18] = "GroupTaskSubFileDetailChanged", e[e.TaskDestroying = 19] = "TaskDestroying", e[e.TaskDestroyed = 20] = "TaskDestroyed"
            }(l = e.TaskEventType || (e.TaskEventType = {})), function (e) {
                e[e.NumberStrart = 0] = "NumberStrart", e[e.TaskId = 1] = "TaskId", e[e.VirtualId = 2] = "VirtualId", e[e.SrcTotal = 3] = "SrcTotal", e[e.SrcUsing = 4] = "SrcUsing", e[e.FileSize = 5] = "FileSize", e[e.ReceivedSize = 6] = "ReceivedSize", e[e.DownloadSize = 7] = "DownloadSize", e[e.CreateTime = 8] = "CreateTime", e[e.CompletionTime = 9] = "CompletionTime", e[e.DownloadingPeriod = 10] = "DownloadingPeriod", e[e.Progress = 11] = "Progress", e[e.RecycleTime = 12] = "RecycleTime", e[e.FileCreated = 13] = "FileCreated", e[e.Forbidden = 14] = "Forbidden", e[e.CategoryId = 15] = "CategoryId", e[e.UserRead = 16] = "UserRead", e[e.OpenOnComplete = 17] = "OpenOnComplete", e[e.GroupTaskId = 18] = "GroupTaskId", e[e.DownloadSubTask = 19] = "DownloadSubTask", e[e.NameType = 20] = "NameType", e[e.OwnerProduct = 21] = "OwnerProduct", e[e.FileIndex = 22] = "FileIndex", e[e.NumberEnd = 23] = "NumberEnd", e[e.BooleanStart = 24] = "BooleanStart", e[e.Destroyed = 25] = "Destroyed", e[e.Background = 26] = "Background", e[e.Moving = 27] = "Moving", e[e.BooleanEnd = 28] = "BooleanEnd", e[e.StringStart = 29] = "StringStart", e[e.TaskName = 30] = "TaskName", e[e.SavePath = 31] = "SavePath", e[e.RelativePath = 32] = "RelativePath", e[e.TaskUrl = 33] = "TaskUrl", e[e.RefUrl = 34] = "RefUrl", e[e.Cid = 35] = "Cid", e[e.Gcid = 36] = "Gcid", e[e.Cookie = 37] = "Cookie", e[e.ProductInfo = 38] = "ProductInfo", e[e.Origin = 39] = "Origin", e[e.Description = 40] = "Description", e[e.UserData = 41] = "UserData", e[e.StringEnd = 42] = "StringEnd", e[e.ObjectStart = 43] = "ObjectStart", e[e.ObjectEnd = 44] = "ObjectEnd", e[e.CategoryViewId = 45] = "CategoryViewId", e[e.TaskType = 46] = "TaskType", e[e.ErrorCode = 47] = "ErrorCode"
            }(d = e.TaskAttribute || (e.TaskAttribute = {})), function (e) {
                e[e.UnKnown = 0] = "UnKnown", e[e.SrcTotal = 1] = "SrcTotal", e[e.SrcUsing = 2] = "SrcUsing", e[e.FileSize = 4] = "FileSize", e[e.ReceivedSize = 8] = "ReceivedSize", e[e.DownloadSize = 16] = "DownloadSize", e[e.CompletionTime = 32] = "CompletionTime", e[e.DownloadingPeriod = 64] = "DownloadingPeriod", e[e.Progress = 128] = "Progress", e[e.RecycleTime = 256] = "RecycleTime", e[e.FileCreated = 512] = "FileCreated", e[e.Forbidden = 1024] = "Forbidden", e[e.UserRead = 2048] = "UserRead", e[e.OpenOnComplete = 4096] = "OpenOnComplete", e[e.DownloadSubTask = 8192] = "DownloadSubTask", e[e.TaskName = 16384] = "TaskName", e[e.SavePath = 32768] = "SavePath", e[e.Cid = 65536] = "Cid", e[e.Gcid = 131072] = "Gcid", e[e.UserData = 262144] = "UserData", e[e.CategoryViewId = 524288] = "CategoryViewId", e[e.ErrorCode = 1048576] = "ErrorCode", e[e.TaskSpeed = 2097152] = "TaskSpeed", e[e.ChannelInfo = 4194304] = "ChannelInfo"
            }(u = e.TaskDetailChangedFlags || (e.TaskDetailChangedFlags = {})), function (e) {
                e[e.UnKnown = 0] = "UnKnown"
            }(c = e.BtSubFileDetailChangedFlags || (e.BtSubFileDetailChangedFlags = {})), function (e) {
                e[e.UnKnown = 0] = "UnKnown"
            }(h = e.GroupTaskSubFileDetailChangedFlags || (e.GroupTaskSubFileDetailChangedFlags = {})), function (e) {
                e[e.NumberStrart = 0] = "NumberStrart", e[e.TaskId = 1] = "TaskId", e[e.FileStatus = 2] = "FileStatus", e[e.DownloadSize = 3] = "DownloadSize", e[e.FileSize = 4] = "FileSize", e[e.EnableDcdn = 5] = "EnableDcdn", e[e.ErrorCode = 6] = "ErrorCode", e[e.DcdnStatus = 7] = "DcdnStatus", e[e.RealIndex = 8] = "RealIndex", e[e.FileOffset = 9] = "FileOffset", e[e.Visible = 10] = "Visible", e[e.Download = 11] = "Download", e[e.NumberEnd = 12] = "NumberEnd", e[e.StringStart = 13] = "StringStart", e[e.FinalName = 14] = "FinalName", e[e.RelativePath = 15] = "RelativePath", e[e.FileName = 16] = "FileName", e[e.FilePath = 17] = "FilePath", e[e.Cid = 18] = "Cid", e[e.Gcid = 19] = "Gcid", e[e.StringEnd = 20] = "StringEnd"
            }(p = e.BtFileAttribute || (e.BtFileAttribute = {})), function (e) {
                e[e.P2spUrl = 0] = "P2spUrl", e[e.BtInfoId = 1] = "BtInfoId", e[e.EmuleFileHash = 2] = "EmuleFileHash", e[e.MagnetUrl = 3] = "MagnetUrl", e[e.GroupTaskName = 4] = "GroupTaskName"
            }(f = e.KeyType || (e.KeyType = {})), function (e) {
                e[e.NameInclude = 1] = "NameInclude", e[e.BtDisplayNameInclude = 2] = "BtDisplayNameInclude"
            }(m = e.SearchKeyType || (e.SearchKeyType = {})), function (e) {
                e[e.ExtEqual = 1] = "ExtEqual", e[e.NameLikeAndExtEqual = 2] = "NameLikeAndExtEqual", e[e.TaskTypeEqual = 4] = "TaskTypeEqual"
            }(g = e.FilterKeyType || (e.FilterKeyType = {})), function (e) {
                e[e.All = 0] = "All", e[e.CommonForeground = 1] = "CommonForeground", e[e.CommonBackground = 2] = "CommonBackground", e[e.Temporary = 3] = "Temporary", e[e.PreDownload = 4] = "PreDownload", e[e.PrivateForeground = 5] = "PrivateForeground"
            }(S = e.KeyFilter || (e.KeyFilter = {})), function (e) {
                e[e.Unknown = -1] = "Unknown", e[e.LoadTaskBasic = 0] = "LoadTaskBasic", e[e.Create = 1] = "Create", e[e.Recycle = 2] = "Recycle", e[e.Recover = 3] = "Recover", e[e.ReDownload = 4] = "ReDownload", e[e.MoveThoughCategory = 5] = "MoveThoughCategory"
            }(v = e.TaskInsertReason || (e.TaskInsertReason = {})), function (e) {
                e[e.Unknown = -1] = "Unknown", e[e.ContextMenu = 0] = "ContextMenu", e[e.Button = 1] = "Button", e[e.TaskDetail = 2] = "TaskDetail", e[e.DownloadMagnet = 3] = "DownloadMagnet", e[e.ToolbarButton = 4] = "ToolbarButton", e[e.SelectDownloadLists = 5] = "SelectDownloadLists", e[e.DeleteTask = 6] = "DeleteTask"
            }(T = e.TaskStopReason || (e.TaskStopReason = {}))
        }(t.DownloadKernel || (t.DownloadKernel = {}))
    }, 1007: function (e, t, n) {
        "use strict";
        var i = n(1291);
        n.n(i).a
    }, 1008: function (e, t, n) {
        "use strict";
        var i = n(1293);
        n.n(i).a
    }, 1009: function (e, t, n) {
        "use strict";
        var i = n(1295);
        n.n(i).a
    }, 1010: function (e, t, n) {
        "use strict";
        var i = n(1297);
        n.n(i).a
    }, 11: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(2), r = n(8), s = n(1).default.getLogger("XLStat");
        let a = r.default(o.join(__rootDir, "../bin/ThunderHelper.node"));

        function l(e = "") {
            let t;
            if ("string" == typeof e) t = e; else if (d(e) && "object" == typeof e) {
                let n = [];
                for (let t in e) d(e[t]) && n.push(t + "=" + encodeURIComponent(e[t]));
                t = n.join(",")
            }
            return t
        }

        function d(e) {
            return void 0 !== e && null !== e
        }

        !function (e) {
            let t = null;

            function n() {
                return t || (t = a.xlstat4), t
            }

            function o(e, t = "", o = "", r = 0, a = 0, d = 0, u = 0, c = "", h = 0) {
                return i(this, void 0, void 0, function* () {
                    let i = 0;
                    do {
                        if (void 0 === e) {
                            i = 1;
                            break
                        }
                        let p = l(c);
                        i = "browser" === process.type ? yield new Promise(s => {
                            i = n().asyncTrackEvent(e, t, o, r, a, d, u, p, h, e => {
                                s(e)
                            })
                        }) : n().trackEvent(e, t, o, r, a, d, u, p, h), s.information(e, t, o, r, a, d, u, p, h)
                    } while (0);
                    return i
                })
            }

            function r(e, t = 0) {
                do {
                    if (void 0 === e) break;
                    "browser" !== process.type && n().trackClick(e, t)
                } while (0)
            }

            e.asyncTrackEvent = o, e.trackEvent = function (e, t = "", n = "", i = 0, r = 0, s = 0, a = 0, l = "", d = 0) {
                o(e, t, n, i, r, s, a, l, d).catch()
            }, e.trackClick = r, e.trackShow = function (e, t = 0) {
                r(e, t)
            }, e.setUserID = function (e = 0, t = 0) {
                "browser" !== process.type && n().setUserID(e, t)
            }, e.initParam = function (e) {
                return i(this, void 0, void 0, function* () {
                    let t = -1;
                    return t = "browser" === process.type ? yield new Promise(t => {
                        n().asyncInitParam(e, (e, n) => {
                            t(e ? n : -1)
                        })
                    }) : yield new Promise(t => {
                        n().initParamRemote(e, e => {
                            t(e)
                        })
                    })
                })
            }, e.asyncUninit = function (e) {
                return i(this, void 0, void 0, function* () {
                    "browser" === process.type && (yield new Promise(t => {
                        n().asyncUninit(e, () => {
                            t()
                        })
                    }))
                })
            }, e.uninit = function () {
                "browser" === process.type && n().waitFinish()
            }
        }(t.XLStatNS || (t.XLStatNS = {}))
    }, 12: function (e, t) {
        e.exports = require("events")
    }, 1279: function (e, t) {
    }, 1291: function (e, t) {
    }, 1293: function (e, t) {
    }, 1295: function (e, t) {
    }, 1297: function (e, t) {
    }, 13: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), t.assert = t.log = t.error = t.warn = t.info = t.trace = t.timeEnd = t.time = t.traceback = void 0;
        const i = n(2);
        let o, r = console;

        function s(e = 5) {
            let t = /at\s+(.*)\s+\((.*):(\d*):(\d*)\)/i, n = /at\s+()(.*):(\d*):(\d*)/i,
                o = (new Error).stack.split("\n").slice(e + 1);
            o.shift();
            let r = [];
            return o.forEach((e, o) => {
                let s = t.exec(e) || n.exec(e), a = {};
                s && 5 === s.length && (a.method = s[1], a.path = s[2], a.line = s[3], a.pos = s[4], a.file = i.basename(a.path), r.push(a))
            }), r
        }

        if (o = "renderer" === process.type ? "[Renderer] [async-remote]:" : "browser" === process.type ? "[Browser] [async-remote]:" : `[${process.type}] [async-remote]`, t.traceback = function (e = 5) {
            return s(e).map(e => e.method + "@(" + e.file + ")").join(" <= ")
        }, t.time = function (...e) {
            r.time(...e)
        }, t.timeEnd = function (...e) {
            r.timeEnd(...e)
        }, t.trace = function (...e) {
            let t = s(), n = "";
            t[0] && t[0].method && (n = n), r.trace(o, ...e)
        }, t.info = function (...e) {
            let t = s(), n = "anonymous";
            t[0] && t[0].method && (n = n), r.info(o, "[" + n + "]", e.join(","))
        }, t.warn = function (...e) {
            let t = s(), n = "";
            t[0] && t[0].method && (n = n), r.warn("<WARN>" + o, "[" + n + "]", e.join(","))
        }, t.error = function (...e) {
            let t = s(), n = "";
            t[0] && t[0].method && (n = n), r.error("<ERROR>" + o, "[" + n + "]", e.join(","))
        }, t.log = function (...e) {
            r.log(o, ...e)
        }, t.assert = function (e, t) {
            if (!e) throw new Error(t)
        }, !process.env.DEBUG_ASYNC_REMOTE) {
            let e = function () {
            };
            t.traceback = e, t.time = e, t.timeEnd = e, t.trace = e, t.info = e, t.warn = e, t.error = e, t.log = e, t.assert = e
        }
    }, 14: function (e, t) {
        e.exports = require("os")
    }, 142: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(4);
        !function (e) {
            e.getValue = function (e, t, n) {
                return i(this, void 0, void 0, function* () {
                    return yield o.client.callServerFunction("GetConfigValue", e, t, n)
                })
            }, e.setValue = function (e, t, n) {
                return i(this, void 0, void 0, function* () {
                    yield o.client.callServerFunction("SetConfigValue", e, t, n)
                })
            }
        }(t.ConfigHelperNS || (t.ConfigHelperNS = {}))
    }, 15: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), function (e) {
            let t, n, i, o, r, s, a, l, d, u, c, h, p, f, m, g, S, v, T, y, w, _;
            !function (e) {
                e[e.Unkown = 0] = "Unkown", e[e.Create = 1] = "Create", e[e.InvaldParam = 2] = "InvaldParam", e[e.InvaldLink = 3] = "InvaldLink", e[e.InvaldConfig = 4] = "InvaldConfig", e[e.Timeout = 5] = "Timeout", e[e.VerifyData = 6] = "VerifyData", e[e.Forbidden = 7] = "Forbidden", e[e.RangeDispatch = 8] = "RangeDispatch", e[e.FilePathOverRanging = 9] = "FilePathOverRanging", e[e.FileCreate = 201] = "FileCreate", e[e.FileWrite = 202] = "FileWrite", e[e.FileRead = 203] = "FileRead", e[e.FileRename = 204] = "FileRename", e[e.FileFull = 205] = "FileFull", e[e.FileOccupied = 211] = "FileOccupied", e[e.FileAccessDenied = 212] = "FileAccessDenied", e[e.BtUploadExist = 601] = "BtUploadExist", e[e.ForbinddenResource = 701] = "ForbinddenResource", e[e.ForbinddenAccount = 702] = "ForbinddenAccount", e[e.ForbinddenArea = 703] = "ForbinddenArea", e[e.ForbinddenCopyright = 704] = "ForbinddenCopyright", e[e.ForbinddenReaction = 705] = "ForbinddenReaction", e[e.ForbinddenPorn = 706] = "ForbinddenPorn", e[e.DownloadSDKCrash = 10001] = "DownloadSDKCrash", e[e.torrentFileNotExist = 10002] = "torrentFileNotExist"
            }(t = e.TaskError || (e.TaskError = {})), function (e) {
                e[e.Unkown = -1] = "Unkown", e[e.Success = 0] = "Success", e[e.QueryFailed = 1] = "QueryFailed", e[e.ServerError = 2] = "ServerError", e[e.ResourceNotFound = 3] = "ResourceNotFound", e[e.AuthorizingFailed = 4] = "AuthorizingFailed", e[e.ForbidByCopyright = 5] = "ForbidByCopyright", e[e.ForbidByPorNoGraphy = 6] = "ForbidByPorNoGraphy", e[e.ForbidByReactionary = 7] = "ForbidByReactionary", e[e.ForbidByOtherFilter = 8] = "ForbidByOtherFilter"
            }(n = e.DcdnStatusCode || (e.DcdnStatusCode = {})), function (e) {
                e[e.Begin = -1] = "Begin", e[e.Unkown = 0] = "Unkown", e[e.StandBy = 1] = "StandBy", e[e.PreDownloading = 2] = "PreDownloading", e[e.StartWaiting = 3] = "StartWaiting", e[e.StartPending = 4] = "StartPending", e[e.Started = 5] = "Started", e[e.StopPending = 6] = "StopPending", e[e.Stopped = 7] = "Stopped", e[e.Succeeded = 8] = "Succeeded", e[e.Failed = 9] = "Failed", e[e.Seeding = 10] = "Seeding", e[e.DestroyPending = 11] = "DestroyPending", e[e.End = 12] = "End"
            }(i = e.TaskStatus || (e.TaskStatus = {})), function (e) {
                e[e.Begin = -1] = "Begin", e[e.StandBy = 0] = "StandBy", e[e.Stopped = 1] = "Stopped", e[e.Started = 2] = "Started", e[e.Complete = 3] = "Complete", e[e.Forbidden = 4] = "Forbidden", e[e.Error = 5] = "Error", e[e.End = 6] = "End"
            }(o = e.BtFileStatus || (e.BtFileStatus = {})), function (e) {
                e[e.DispatchStrategyNone = 0] = "DispatchStrategyNone", e[e.DispatchStrategyOrigin = 1] = "DispatchStrategyOrigin", e[e.DispatchStrategyP2s = 2] = "DispatchStrategyP2s", e[e.DispatchStrategyP2p = 4] = "DispatchStrategyP2p", e[e.DispatchStrategyAll = -1] = "DispatchStrategyAll"
            }(r = e.DispatchStrategy || (e.DispatchStrategy = {})), function (e) {
                e[e.Unkown = 0] = "Unkown", e[e.P2sp = 1] = "P2sp", e[e.Bt = 2] = "Bt", e[e.Emule = 3] = "Emule", e[e.Group = 4] = "Group", e[e.Magnet = 5] = "Magnet"
            }(s = e.TaskType || (e.TaskType = {})), function (e) {
                e[e.Invalid = 0] = "Invalid", e[e.P2sp = 1] = "P2sp", e[e.Emule = 2] = "Emule"
            }(a = e.TaskCfgType || (e.TaskCfgType = {})), function (e) {
                e.Unkown = "Unkown", e.Downloading = "Downloading", e.Completed = "Completed", e.Recycle = "Recycle"
            }(l = e.CategroyViewID || (e.CategroyViewID = {})), function (e) {
                e[e.Unknow = 0] = "Unknow", e[e.TaskCreated = 1] = "TaskCreated", e[e.InsertToCategoryView = 2] = "InsertToCategoryView", e[e.RemoveFromCategoryView = 3] = "RemoveFromCategoryView", e[e.StatusChanged = 4] = "StatusChanged", e[e.DetailChanged = 5] = "DetailChanged", e[e.ChannelInfoChanged = 6] = "ChannelInfoChanged", e[e.DcdnStatusChanged = 7] = "DcdnStatusChanged", e[e.TaskDescriptionChanged = 8] = "TaskDescriptionChanged", e[e.TaskUserRead = 9] = "TaskUserRead", e[e.TaskRenamed = 10] = "TaskRenamed", e[e.TaskMovedEnd = 11] = "TaskMovedEnd", e[e.TaskMovingStateChange = 12] = "TaskMovingStateChange", e[e.BtSubFileDetailChanged = 13] = "BtSubFileDetailChanged", e[e.BtSubFileLoaded = 14] = "BtSubFileLoaded", e[e.BtSubFileForbidden = 15] = "BtSubFileForbidden", e[e.BtSubFileDcdnStatusChanged = 16] = "BtSubFileDcdnStatusChanged", e[e.TaskCategoryMovedEnd = 17] = "TaskCategoryMovedEnd", e[e.GroupTaskSubFileDetailChanged = 18] = "GroupTaskSubFileDetailChanged", e[e.TaskDestroying = 19] = "TaskDestroying", e[e.TaskDestroyed = 20] = "TaskDestroyed"
            }(d = e.TaskEventType || (e.TaskEventType = {})), function (e) {
                e[e.NumberStrart = 0] = "NumberStrart", e[e.TaskId = 1] = "TaskId", e[e.VirtualId = 2] = "VirtualId", e[e.SrcTotal = 3] = "SrcTotal", e[e.SrcUsing = 4] = "SrcUsing", e[e.FileSize = 5] = "FileSize", e[e.ReceivedSize = 6] = "ReceivedSize", e[e.DownloadSize = 7] = "DownloadSize", e[e.TotalDownloadSize = 8] = "TotalDownloadSize", e[e.CreateTime = 9] = "CreateTime", e[e.CompletionTime = 10] = "CompletionTime", e[e.DownloadingPeriod = 11] = "DownloadingPeriod", e[e.Progress = 12] = "Progress", e[e.RecycleTime = 13] = "RecycleTime", e[e.FileCreated = 14] = "FileCreated", e[e.Forbidden = 15] = "Forbidden", e[e.CategoryId = 16] = "CategoryId", e[e.UserRead = 17] = "UserRead", e[e.OpenOnComplete = 18] = "OpenOnComplete", e[e.GroupTaskId = 19] = "GroupTaskId", e[e.DownloadSubTask = 20] = "DownloadSubTask", e[e.NameType = 21] = "NameType", e[e.OwnerProduct = 22] = "OwnerProduct", e[e.FileIndex = 23] = "FileIndex", e[e.NameFixed = 24] = "NameFixed", e[e.ValidDownloadSize = 25] = "ValidDownloadSize", e[e.RealDownloadSize = 26] = "RealDownloadSize", e[e.ResourceLegal = 27] = "ResourceLegal", e[e.TaskType = 28] = "TaskType", e[e.ErrorCode = 29] = "ErrorCode", e[e.PlayPosition = 30] = "PlayPosition", e[e.Duration = 31] = "Duration", e[e.NumberEnd = 32] = "NumberEnd", e[e.BooleanStart = 4096] = "BooleanStart", e[e.Destroyed = 4097] = "Destroyed", e[e.Background = 4098] = "Background", e[e.Moving = 4099] = "Moving", e[e.BooleanEnd = 4100] = "BooleanEnd", e[e.StringStart = 8192] = "StringStart", e[e.TaskName = 8193] = "TaskName", e[e.SavePath = 8194] = "SavePath", e[e.RelativePath = 8195] = "RelativePath", e[e.TaskUrl = 8196] = "TaskUrl", e[e.RefUrl = 8197] = "RefUrl", e[e.Cid = 8198] = "Cid", e[e.Gcid = 8199] = "Gcid", e[e.Cookie = 8200] = "Cookie", e[e.ProductInfo = 8201] = "ProductInfo", e[e.Origin = 8202] = "Origin", e[e.Description = 8203] = "Description", e[e.UserData = 8204] = "UserData", e[e.OriginName = 8205] = "OriginName", e[e.HTTPContentType = 8206] = "HTTPContentType", e[e.CategoryViewId = 8207] = "CategoryViewId", e[e.YunTaskId = 8208] = "YunTaskId", e[e.StringEnd = 8209] = "StringEnd", e[e.ObjectStart = 12288] = "ObjectStart", e[e.ObjectEnd = 12289] = "ObjectEnd"
            }(u = e.TaskAttribute || (e.TaskAttribute = {})), function (e) {
                e[e.UnKnown = 0] = "UnKnown", e[e.SrcTotal = 1] = "SrcTotal", e[e.SrcUsing = 2] = "SrcUsing", e[e.FileSize = 4] = "FileSize", e[e.ReceivedSize = 8] = "ReceivedSize", e[e.DownloadSize = 16] = "DownloadSize", e[e.CompletionTime = 32] = "CompletionTime", e[e.DownloadingPeriod = 64] = "DownloadingPeriod", e[e.Progress = 128] = "Progress", e[e.RecycleTime = 256] = "RecycleTime", e[e.FileCreated = 512] = "FileCreated", e[e.Forbidden = 1024] = "Forbidden", e[e.UserRead = 2048] = "UserRead", e[e.OpenOnComplete = 4096] = "OpenOnComplete", e[e.DownloadSubTask = 8192] = "DownloadSubTask", e[e.TaskName = 16384] = "TaskName", e[e.SavePath = 32768] = "SavePath", e[e.Cid = 65536] = "Cid", e[e.Gcid = 131072] = "Gcid", e[e.UserData = 262144] = "UserData", e[e.CategoryViewId = 524288] = "CategoryViewId", e[e.ErrorCode = 1048576] = "ErrorCode", e[e.TaskSpeed = 2097152] = "TaskSpeed", e[e.ChannelInfo = 4194304] = "ChannelInfo", e[e.ValidDownloadSize = 8388608] = "ValidDownloadSize", e[e.OriginName = 16777216] = "OriginName", e[e.HTTPContentType = 33554432] = "HTTPContentType", e[e.PlayPosition = 67108864] = "PlayPosition", e[e.Duration = 134217728] = "Duration", e[e.YunTaskId = 268435456] = "YunTaskId"
            }(c = e.TaskDetailChangedFlags || (e.TaskDetailChangedFlags = {})), function (e) {
                e[e.UnKnown = 0] = "UnKnown"
            }(h = e.BtSubFileDetailChangedFlags || (e.BtSubFileDetailChangedFlags = {})), function (e) {
                e[e.UnKnown = 0] = "UnKnown"
            }(p = e.GroupTaskSubFileDetailChangedFlags || (e.GroupTaskSubFileDetailChangedFlags = {})), function (e) {
                e[e.NumberStrart = 0] = "NumberStrart", e[e.TaskId = 1] = "TaskId", e[e.FileStatus = 2] = "FileStatus", e[e.DownloadSize = 3] = "DownloadSize", e[e.FileSize = 4] = "FileSize", e[e.EnableDcdn = 5] = "EnableDcdn", e[e.ErrorCode = 6] = "ErrorCode", e[e.DcdnStatus = 7] = "DcdnStatus", e[e.RealIndex = 8] = "RealIndex", e[e.FileOffset = 9] = "FileOffset", e[e.Visible = 10] = "Visible", e[e.Download = 11] = "Download", e[e.UserRead = 12] = "UserRead", e[e.PlayPosition = 13] = "PlayPosition", e[e.Duration = 14] = "Duration", e[e.NumberEnd = 15] = "NumberEnd", e[e.StringStart = 4096] = "StringStart", e[e.FinalName = 4097] = "FinalName", e[e.RelativePath = 4098] = "RelativePath", e[e.FileName = 4099] = "FileName", e[e.FilePath = 4100] = "FilePath", e[e.Cid = 4101] = "Cid", e[e.Gcid = 4102] = "Gcid", e[e.StringEnd = 4103] = "StringEnd"
            }(f = e.BtFileAttribute || (e.BtFileAttribute = {})), function (e) {
                e[e.P2spUrl = 0] = "P2spUrl", e[e.BtInfoId = 1] = "BtInfoId", e[e.EmuleFileHash = 2] = "EmuleFileHash", e[e.MagnetUrl = 3] = "MagnetUrl", e[e.GroupTaskName = 4] = "GroupTaskName"
            }(m = e.KeyType || (e.KeyType = {})), function (e) {
                e[e.NameInclude = 1] = "NameInclude", e[e.BtDisplayNameInclude = 2] = "BtDisplayNameInclude"
            }(g = e.SearchKeyType || (e.SearchKeyType = {})), function (e) {
                e[e.ExtEqual = 1] = "ExtEqual", e[e.NameLikeAndExtEqual = 2] = "NameLikeAndExtEqual", e[e.TaskTypeEqual = 4] = "TaskTypeEqual"
            }(S = e.FilterKeyType || (e.FilterKeyType = {})), function (e) {
                e[e.All = 0] = "All", e[e.CommonForeground = 1] = "CommonForeground", e[e.CommonBackground = 2] = "CommonBackground", e[e.Temporary = 3] = "Temporary", e[e.PreDownload = 4] = "PreDownload", e[e.PrivateForeground = 5] = "PrivateForeground"
            }(v = e.KeyFilter || (e.KeyFilter = {})), function (e) {
                e[e.Unknown = -1] = "Unknown", e[e.LoadTaskBasic = 0] = "LoadTaskBasic", e[e.Create = 1] = "Create", e[e.Complete = 2] = "Complete", e[e.Recycle = 3] = "Recycle", e[e.Recover = 4] = "Recover", e[e.ReDownload = 5] = "ReDownload", e[e.MoveThoughCategory = 6] = "MoveThoughCategory"
            }(T = e.TaskInsertReason || (e.TaskInsertReason = {})), function (e) {
                e[e.Unknown = -1] = "Unknown", e[e.Manual = 0] = "Manual", e[e.PauseAll = 1] = "PauseAll", e[e.DeleteTask = 2] = "DeleteTask", e[e.TaskJammed = 3] = "TaskJammed", e[e.LowSpeed = 4] = "LowSpeed", e[e.MaxDownloadReduce = 5] = "MaxDownloadReduce", e[e.MoveTask = 6] = "MoveTask", e[e.SelectDownloadLists = 7] = "SelectDownloadLists", e[e.PrivateLoginOut = 8] = "PrivateLoginOut", e[e.FreeDownload = 9] = "FreeDownload", e[e.Exit = 10] = "Exit"
            }(y = e.TaskStopReason || (e.TaskStopReason = {})), function (e) {
                e[e.RESOURCE_FROM_MEMBER = 1] = "RESOURCE_FROM_MEMBER", e[e.RESOURCE_FROM_OFFLINE = 2] = "RESOURCE_FROM_OFFLINE", e[e.RESOURCE_FROM_CRYSTAL_LARGE = 4] = "RESOURCE_FROM_CRYSTAL_LARGE", e[e.RESOURCE_FROM_CRYSTAL_SMALL = 8] = "RESOURCE_FROM_CRYSTAL_SMALL", e[e.RESOURCE_FROM_DCDN = 16] = "RESOURCE_FROM_DCDN", e[e.RESOURCE_FROM_FREEDCDN = 32] = "RESOURCE_FROM_FREEDCDN"
            }(w = e.XLResourceFrom || (e.XLResourceFrom = {})), function (e) {
                e[e.XL_TASKDOWNLOAD_STRATEGY_NORMALDOWNLOAD = 0] = "XL_TASKDOWNLOAD_STRATEGY_NORMALDOWNLOAD", e[e.XL_TASKDOWNLOAD_STRATEGY_DOWNLOADINGPLAYING = 1] = "XL_TASKDOWNLOAD_STRATEGY_DOWNLOADINGPLAYING", e[e.XL_TASKDOWNLOAD_STRATEGY_ONLINEPLAYING = 2] = "XL_TASKDOWNLOAD_STRATEGY_ONLINEPLAYING"
            }(_ = e.XLDownloadStrategy || (e.XLDownloadStrategy = {}))
        }(t.DownloadKernel || (t.DownloadKernel = {}))
    }, 153: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(37), o = n(44), r = n(1).default.getLogger("Thunder.shub-http.http-session"), s = n(40),
            a = n(16), {isDef: l} = a.ThunderUtil;
        var d;
        !function (e) {
            e.HTTP = "HTTP", e.HTTPS = "HTTPS"
        }(d = t.Protocol || (t.Protocol = {}));
        t.HttpSession = class {
            constructor() {
                this.mRetries = 0, this.mHost = void 0, this.mPort = void 0, this.mPath = void 0, this.mAuth = void 0, this.mAccept = void 0, this.mBody = null, this.mUrl = void 0, this.mCookie = void 0, this.mProtocol = d.HTTP, this.mTimeout = void 0, this.mCurRetries = 0
            }

            set host(e) {
                this.mHost = e
            }

            get host() {
                return this.mHost
            }

            set port(e) {
                this.mPort = e
            }

            get port() {
                let e = void 0;
                return e = l(this.mPort) ? this.mPort : this.protocol === d.HTTPS ? 443 : 80
            }

            set path(e) {
                this.mPath = e
            }

            get path() {
                return this.mPath
            }

            set url(e) {
                this.mUrl = e
            }

            get protocol() {
                return this.mProtocol
            }

            set protocol(e) {
                this.mProtocol = e
            }

            get url() {
                return this.mUrl
            }

            get cookie() {
                return this.mCookie
            }

            set cookie(e) {
                this.mCookie = e
            }

            set auth(e) {
                this.mAuth = e
            }

            get auth() {
                return this.mAuth
            }

            set accept(e) {
                this.mAccept = e
            }

            get accept() {
                return this.mAccept
            }

            set body(e) {
                this.mBody = e
            }

            get body() {
                return this.mBody
            }

            set retries(e) {
                this.mRetries = e
            }

            get retries() {
                return this.mRetries
            }

            set timeout(e) {
                this.mTimeout = e
            }

            get timeout() {
                return this.mTimeout
            }

            post(e, t) {
                do {
                    let n = this.body;
                    if (!n) {
                        r.information("body is empty"), t(null);
                        break
                    }
                    let i = this.auth, o = this.accept, s = {
                        hostname: this.host,
                        port: this.port,
                        path: this.path || "/",
                        method: "POST",
                        auth: i || void 0,
                        headers: {"Content-Length": n ? n.length : 0, Cookie: this.cookie || "", Accept: o || "*/*"}
                    };
                    r.verbose("option", s);
                    try {
                        this.postImpl(n, s, e, n => {
                            this.mCurRetries < this.retries ? (this.mCurRetries++, r.information("mCurRetries", this.mCurRetries), this.post(e, t)) : t(n)
                        })
                    } catch (e) {
                        r.warning("error ", e), t(null)
                    }
                } while (0)
            }

            get(e, t) {
                let n = null;
                if (this.url) {
                    let e = i.parse(this.url, !0);
                    e && "https:" === e.protocol ? this.protocol = d.HTTPS : this.protocol = d.HTTP, n = this.url
                } else {
                    let e = this.auth, t = this.accept;
                    n = {
                        hostname: this.host,
                        port: this.port,
                        path: this.path || "/",
                        method: "GET",
                        auth: e || void 0,
                        headers: {Cookie: this.cookie || "", Accept: t || "*/*"}
                    }
                }
                r.verbose("option", n);
                try {
                    this.getImpl(n, e, n => {
                        this.mCurRetries < this.retries ? (this.mCurRetries++, r.information("mCurRetries", this.mCurRetries), this.get(e, t)) : t(n)
                    })
                } catch (e) {
                    r.warning("error ", e), t(null)
                }
            }

            postImpl(e, t, n, i) {
                let a = (this.protocol === d.HTTPS ? s : o).request(t, e => {
                    let t = null;
                    e.on("data", e => {
                        t = t ? Buffer.concat([t, e]) : e
                    }), e.on("end", () => {
                        r.information("statusCode", e.statusCode), r.information("headers", e.headers), n({
                            statusCode: e.statusCode,
                            headers: e.headers,
                            body: t
                        })
                    })
                });
                a.on("error", e => {
                    i(e)
                }), a.on("timeout", () => {
                    a.abort()
                }), this.timeout && a.setTimeout(this.timeout), a.write(e), a.end()
            }

            getImpl(e, t, n) {
                (this.protocol === d.HTTPS ? s : o).get(e, e => {
                    let n = null;
                    e.on("data", e => {
                        n = n ? Buffer.concat([n, e]) : e
                    }), e.on("end", () => {
                        r.information("statusCode", e.statusCode), r.information("headers", e.headers), t({
                            statusCode: e.statusCode,
                            headers: e.headers,
                            body: n
                        })
                    })
                }).on("error", e => {
                    n(e)
                })
            }
        }
    }, 16: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(3), r = n(2), s = n(1), a = n(20), l = n(25), d = s.default.getLogger("Thunder.Util"),
            u = "Thunder Network\\Thunder7.9\\";

        function c(e) {
            let t = e;
            return 0 === e.indexOf('"') && e.lastIndexOf('"') === e.length - 1 ? t = e.substring(1, e.length - 1) : 0 === e.indexOf("'") && e.lastIndexOf("'") === e.length - 1 && (t = e.substring(1, e.length - 1)), t
        }

        !function (e) {
            function t() {
                let e = l.ThunderHelper.getSystemTempPath(), t = l.ThunderHelper.getLogicalDriveStrings(), n = 0;
                for (let i = 0; i < t.length; i++) {
                    if (l.ThunderHelper.getDriveType(t[i]) === l.ThunderHelper.DriverType.DRIVE_FIXED) {
                        let o = l.ThunderHelper.getDriveInfo(t[i]);
                        n < o.freeBytes && t[i] !== e && (n = o.freeBytes, e = t[i])
                    }
                }
                return e.substring(0, 1) + ":\\迅雷下载"
            }

            function s(e) {
                let t = (e.style.webkitTransform || getComputedStyle(e, "").getPropertyValue("-webkit-transform") || e.style.transform || getComputedStyle(e, "").getPropertyValue("transform")).match(/\-?[0-9]+\.?[0-9]*/g);
                return {x: parseInt(t && (t[12] || t[4]) || "0", 10), y: parseInt(t && (t[13] || t[5]) || "0", 10)}
            }

            function h(e) {
                let t = !1;
                do {
                    let n = "", i = "";
                    if (/^[a-zA-Z]:\\/.test(e)) n = e.slice(3); else {
                        if (0 !== e.indexOf("\\\\")) break;
                        {
                            let t = e.indexOf("\\", 2);
                            if (-1 === t || t === e.length - 1) break;
                            if ("" === (i = (n = e.slice(2)).substr(0, t - 2))) break
                        }
                    }
                    if (/[\*\"<>\?:\|]/i.test(n)) break;
                    if (e.length > 256) break;
                    if ("" === i) {
                        t = !0;
                        break
                    }
                    let o = i.indexOf(".ipv6-literal.net");
                    -1 !== o ? (-1 !== (o = (i = i.substr(0, o)).indexOf("%")) && (i = i.substr(0, o)), i = i.replace(/\-/g, ":"), /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/.test(i) && (t = !0)) : /(?=(\b|\D))(((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))(?=(\b|\D))/.test(i) && (t = !0)
                } while (0);
                return t
            }

            e.formatSize = function (e, t) {
                0 === t || (t = t || 2);
                let n = "0B";
                if ("number" == typeof e && e > 0) {
                    let i = ["B", "KB", "MB", "GB", "TB"], o = 0, r = e;
                    for (; r >= 1e3 && !(o >= 4);) r /= 1024, o += 1;
                    n = -1 === String(r).indexOf(".") ? r + i[o] : r.toFixed(t) + i[o]
                }
                return n
            }, e.formatSizeCustom = function (e, t = 2, n = 5) {
                let i = "0B";
                if ("number" == typeof e && e > 0) {
                    let o = ["B", "KB", "MB", "GB", "TB"], r = 0, s = e;
                    for (; s >= 1e3 && !(r >= 4);) s /= 1024, r += 1;
                    if (-1 === String(s).indexOf(".")) i = s + o[r]; else {
                        let e = s.toFixed(t);
                        e.length <= n ? i = "KB" !== o[r] && "MB" !== o[r] || 1 === t ? e + o[r] : s.toFixed(1) + o[r] : ("." === (e = e.substr(0, n))[n - 1] && (e = e.substr(0, n - 1)), i = e + o[r])
                    }
                }
                return i
            }, e.isDigital = function (e) {
                let t = !1;
                return /^\d+$/.test(e) && (t = !0), t
            }, e.isAlpha = function (e) {
                let t = !1;
                return /[A-Za-z]/.test(e) && (t = !0), t
            }, e.isUpperCase = function (e) {
                let t = !1;
                return /[A-Z]/.test(e) && (t = !0), t
            }, e.isLowerCase = function (e) {
                let t = !1;
                return /[a-z]/.test(e) && (t = !0), t
            }, e.isChinese = function (e) {
                let t = !1;
                return /[\u4E00-\u9FA5]/.test(e) && (t = !0), t
            }, e.replaceNonDigital = function (e) {
                return e.replace(/[^\d]/g, "")
            }, e.replaceNonAlpha = function (e) {
                return e.replace(/[^A-Za-z]/g, "")
            }, e.replaceNonWord = function (e) {
                return e.replace(/[^\W]/g, "")
            }, e.getDefaultDownloadDir = t, e.getMaxFreeDriver = function () {
                return t().substring(0, 1)
            }, e.deepCopy = function (e) {
                let t = JSON.stringify(e), n = null;
                try {
                    n = JSON.parse(t)
                } catch (e) {
                    d.warning(e)
                }
                return n
            }, e.swap = function (e, t, n) {
                do {
                    if (t < 0 || t >= e.length) break;
                    if (n < 0 || n >= e.length) break;
                    if (t === n) break;
                    e[t] = e.splice(n, 1, e[t])[0]
                } while (0);
                return e
            }, e.compareNocase = function (e, t) {
                let n = !1;
                do {
                    if (void 0 === e && void 0 === t) {
                        n = !0;
                        break
                    }
                    if (void 0 === e || void 0 === t) break;
                    if ("string" != typeof e || "string" != typeof t) break;
                    n = e.toLowerCase() === t.toLowerCase()
                } while (0);
                return n
            }, e.parseCommandLine = function (e) {
                let t = 0, n = "", i = !1, o = [], r = e.length;
                for (let s = 0; s < r; s++) {
                    let a = e[s];
                    if ('"' !== a && "'" !== a || ("" === n ? (i = !0, n = a) : n === a && (i = !1, n = "")), " " !== a || i || s === r - 1) {
                        if (s === r - 1) {
                            let n = e.substring(t);
                            "" !== n.trim() && o.push(c(n))
                        }
                    } else {
                        let n = e.substring(t, s);
                        "" !== n.trim() && o.push(c(n)), t = s + 1
                    }
                }
                return o
            }, e.getThunderTempPath = function (e, t) {
                return i(this, void 0, void 0, function* () {
                    const i = yield Promise.resolve().then(() => n(14));
                    let o = r.join(i.tmpdir(), u);
                    return t && (o = r.join(o, t)), void 0 !== e && e && (yield a.FileSystemAWNS.mkdirsAW(o)), o
                })
            }, e.setQueryString = function (e, t) {
                return Object.keys(t).forEach((n, i) => {
                    e += 0 === i ? "?" : "&", e += `${n}=${t[n]}`
                }), e
            }, e.setQueryStringEx = function (e, t) {
                for (let n in t) e += -1 === e.indexOf("?") ? "?" : "&", e += `${n}=${t[n]}`;
                return e
            }, e.getQueryString = function (e, t) {
                return e && t && e.match(new RegExp(`(^${t}|[?|&]${t})=([^&#]+)`)) ? RegExp.$2 : ""
            }, e.isClipboardTextFormatAvailable = function () {
                let e = !1, t = o.clipboard.availableFormats();
                for (let n of t) if ("text/plain" === n) {
                    e = !0;
                    break
                }
                return e
            }, e.keywordsHighLight = function (e, t, n) {
                if (!e) return "";
                if (!t) return e;
                if (0 === e.length) return e;
                if (0 === t.length) return e;
                let i = /\\/, o = t.split(" ");
                if (0 === (o = o.filter(e => e.trim().length > 0)).length) return e;
                for (let t = 0; t < o.length; t++) if (o[t].search(i) > 0) return e;
                n = void 0 === n || null === n ? "#FF0000" : n;
                let r = "", s = ["\\[", "\\^", "\\*", "\\(", "\\)", "\\|", "\\?", "\\$", "\\.", "\\+"], a = "", l = "|";
                for (let e = 0; e < o.length; e++) {
                    for (let t = 0; t < s.length; t++) {
                        let n = new RegExp(s[t], "g");
                        o[e] = o[e].replace(n, s[t])
                    }
                    e === o.length - 1 && (l = ""), a = a.concat(o[e], l)
                }
                let d = new RegExp(a, "gi");
                return r = e.replace(d, e => '<span style= "color:' + n + '">' + e + "</span>")
            }, e.isDef = function (e) {
                return void 0 !== e && null !== e
            }, e.isUndef = function (e) {
                return void 0 === e || null === e
            }, e.setStyle = function (e, t) {
                Object.entries(t).forEach(([t, n]) => {
                    e.style[t] = n
                })
            }, e.setCSSProperties = function (e, t) {
                Object.entries(t).forEach(([t, n]) => {
                    e.style.setProperty(t, n)
                })
            }, e.versionCompare = function (e, t) {
                let n = e.split("."), i = t.split("."), o = 0;
                for (let e = 0; e < n.length; e++) {
                    if (Number(n[e]) - Number(i[e]) > 0) {
                        o = 1;
                        break
                    }
                    if (Number(n[e]) - Number(i[e]) < 0) {
                        o = -1;
                        break
                    }
                }
                return o
            }, e.throttle = function (e, t) {
                let n, i = 0;
                return (...o) => {
                    const r = Date.now();
                    clearTimeout(n), r - i > t ? (e(...o), i = r) : n = setTimeout(() => {
                        e(...o), i = r
                    }, t)
                }
            }, e.debounce = function (e, t) {
                let n = null;
                return (...i) => {
                    n && clearTimeout(n), n = setTimeout(() => {
                        e(...i)
                    }, t)
                }
            }, e.getElementFixed = function (e) {
                let t = e.offsetLeft, n = e.offsetTop, i = e.offsetParent;
                for (; null !== i;) {
                    let e = s(i);
                    t += i.offsetLeft + e.x, n += i.offsetTop + e.y, i = i.offsetParent
                }
                return {x: t, y: n}
            }, e.escapeHTML = function (e) {
                return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;")
            }, e.unescapeHTML = function (e) {
                return e.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&").replace(/&quot;/g, '"').replace(/&apos;/g, "'")
            }, e.isValidPath = h, e.isValidDownloadPath = function (e) {
                return i(this, void 0, void 0, function* () {
                    let t = !1;
                    do {
                        if (e.length < 3) break;
                        if ("私人空间" === e) {
                            t = !0;
                            break
                        }
                        if (l.ThunderHelper.getDriveType(e) === l.ThunderHelper.DriverType.DRIVE_REMOTE) {
                            t = !0;
                            break
                        }
                        if (!h(e)) break;
                        if (!(yield a.FileSystemAWNS.dirExistsAW(e)) && !(yield a.FileSystemAWNS.mkdirsAW(e))) break;
                        t = !0
                    } while (0);
                    return t
                })
            };
            let p = void 0;

            function f(e, t = "normal 12px sans-serif") {
                p || (p = document.createElement("canvas"));
                let n = p.getContext("2d");
                return n.font = t, n.measureText(e).width
            }

            function m(e, t, n = "normal 12px sans-serif", i = 1) {
                function o(e, t, i, r, s) {
                    let a = -1;
                    do {
                        if (e > t) {
                            a = t;
                            break
                        }
                        let l = Math.round((e + t) / 2), d = f(`${i.substr(0, l)}...${r}`, n);
                        if (s === d) {
                            a = l;
                            break
                        }
                        if (s > d) {
                            if (Math.round(s) === Math.round(d)) {
                                a = l;
                                break
                            }
                            a = o(l + 1, t, i, r, s)
                        } else if (d > s) {
                            if (Math.round(s) === Math.round(d)) {
                                a = l - 1;
                                break
                            }
                            a = o(e, l - 1, i, r, s)
                        }
                    } while (0);
                    return a
                }

                let s = e;
                do {
                    if (!t) break;
                    if (!e) break;
                    let a = t.offsetWidth * i;
                    if (a > f(e, n)) break;
                    let l = r.extname(e);
                    "" !== l && (l = l.substring(1));
                    let d = e.substr(0, e.length - l.length - 1);
                    if (!d) break;
                    let u = o(0, d.length, d, l, a);
                    if (-1 === u) break;
                    s = `${d.substr(0, u - 2 * (i - 1))}...${l}`
                } while (0);
                return s
            }

            e.getTextWidth = f, e.getOmitName = m, e.getOmitNameMultiLine = function (e, t, n) {
                return m(e, t, "normal 12px microsoft yahei", 2)
            }, e.setTimeoutAw = function (e, t) {
                return new Promise((n, i) => {
                    setTimeout(() => {
                        t && t(), n()
                    }, e)
                })
            }
        }(t.ThunderUtil || (t.ThunderUtil = {}))
    }, 176: function (e, t, n) {
        e.exports = n(9)(138)
    }, 18: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), function (e) {
            e.channelRMNewTaskReadyForSetTaskData = "RM_NEWTASK_READYRORSETTASKDATA", e.channelRMNewTaskSetTaskData = "RM_NEWTASK_SETTASKDATA", e.channelRMPreNewTaskSetTaskData = "RM_PRENEWTASK_SETTASKDATA", e.channelRMNewTaskCreateNewTask = "RM_NEWTASK_CREATENEWTASK", e.channelRMNewTaskClose = "RM_NEWTASK_CLOSE", e.channelRMPreNewTaskClose = "RM_PRENEWTASK_CLOSE", e.channelRMNewTaskSetBTInfo = "RM_NEWTASK_SETBTINFO", e.channelRMNewTaskDownloadTorrent = "RM_NEW_TASK_DOWNLOAD_TORRENT", e.channelRMNewTaskCreateBtTask = "RM_NEWTASK_CRATEBTTASK", e.channelRMNewTaskCancleMagnet = "RM_NEWTASK_CANCLE_MAGNET", e.channelRMImportTorrent = "RM_NEWTASK_IMPORT_TORRENT", e.channelRMGetConfigValueResolve = "RM_GET_CONFIG_VALUE_RESOLVE", e.channelRMGetConfigValueReject = "RM_GET_CONFIG_VALUE_REJECT", e.channelRMSetConfigValueReject = "RM_SET_CONFIG_VALUE_REJECT", e.channelMRTrayMenuClick = "MR_TRAY_MENU_CLICK", e.channelMRNewTaskMagnetTaskCreated = "MR_NEW_TASK_MAGNET_TASK_CREATED", e.channelMRNewTaskDownloadTorrentResult = "MR_NEW_TASK_DOWNLOAD_TORRENT_RESULT", e.channelMRNewTaskCreateNewTaskResult = "MR_NEWTASK_CREATENEWTASK_RESULT", e.channelMRNewTaskCreateBtTaskResult = "RM_NEWTASK_CRATEBTTASK_RESULT", e.channelMRGetConfigValue = "MR_GET_CONFIG_VALUE", e.channelMRSetConfigValue = "MR_SET_CONFIG_VALUE", e.channelRMCommitPlanTask = "RM_PLANTASK_COMMIT", e.channelRMPerformePlanTask = "RM_PLANTASK_PERFORME", e.channelRMProcessSend = "RM_RENDER_PROCESS_INFO", e.channelRMGetPrivateSpaceInfo = "RM_RENDER_GET_PRIVATE_SPACE_INFO", e.channelMRGetPrivateSpaceInfoResult = "MR_RENDER_GET_PRIVATE_SPACE_INFO_RESULT", e.channelRMFileCopy = "RM_FILE_COPY", e.channelRMFileMove = "RM_FILE_MOVE", e.channelMRFileCopyResult = "MR_FILE_COPY_RESULT", e.channelMRFileMoveResult = "MR_FILE_MOVE_RESULT", e.channelRMGetSutitleByCid = "RM_RENDER_GET_SUBTITLE_BY_CID", e.channelMRGetSutitleByCidResult = "MR_RENDER_GET_SUBTITLE_BY_CID_RESULT", e.channelRMGetSutitleByName = "RM_RENDER_GET_SUBTITLE_BY_NAME", e.channelMRGetSutitleByNameResult = "MR_RENDER_GET_SUBTITLE_BY_NAME_RESULT", e.channelRMDownloadSutitle = "RM_RENDER_DOWNLOAD_SUBTITLE", e.channelMRDownloadSutitleSuc = "MR_RENDER_DOWNLOAD_SUBTITLE_SUCCESS", e.channelMRDownloadSutitleFail = "MR_RENDER_DOWNLOAD_SUBTITLE_FAIL", e.channelRMGetDisplayName = "RM_RENDER_GET_SUBTITLE_DISPLAYNAME", e.channelMRGetDisplayNameResult = "MR_RENDER_GET_SUBTITLE_DISPLAYNAME_RESULT", e.channelMRBringWindowToTop = "MR_RENDER_BRING_WINDOW_TO_TOP", e.channelRMDownloadXmp = "RM_RENDER_DOWNLOAD_XMP", e.channelRMXmpFixBoxCreated = "RM_RENDER_XMPFIXBOX_CREATED", e.channelMRFixXmpSuc = "MR_RENDER_FIX_XMP_SUC", e.channelMRFixXMPFail = "MR_RENDER_FIX_XMP_FAIL", e.channelRMDownloadXmpEx = "RM_RENDER_DOWNLOAD_XMP_EX", e.channelRMSetPosition = "RM_SET_POSITION", e.channelRMSetFoucs = "RM_SET_FOCUS", e.channelRMCreateAddressDropWnd = "RM_CREATE_ADDRESS_DROPWND", e.channelRMRefreshAddressDropWnd = "RM_REFRESH_ADDRESS_DROPWND", e.channelRMSelectAddressDropItem = "RM_SELECT_ADDRESS_DROPITEM", e.channelRMCreateSearchWindow = "RM_CREATE_SEARCH_WINDOW", e.channelRMShowSearchWindow = "RM_SHOW_SEARCH_WINDOW", e.channelRMAddressKeyDown = "RM_ADDRESS_BAR_KEYDOWN", e.channelMRFWAddressKeyDown = "MR_ADDRESS_FW_BAR_KEYDOWN", e.channelMRFWSelectAddressDropItem = "MR_FW_SELECT_ADDRESS_DROPITEM", e.channelRMAddressDropWndKeyDown = "RM_ADDRESS_DROPWND_KEYDOWN", e.channelRMClickMouse = "RM_CLICK_MOUSE", e.channelMRSearchBarFocusChange = "MR_SEARCHBAR_FOCUS_CHANGE", e.channelMRFWAddressDropWndKeyDown = "MR_FW_ADDRESS_DROPWND_KEYDOWN", e.channelMRClickAddressDropItem = "MR_CLICK_ADDRESS_DROPITEM", e.channelMRMainWndMax = "MR_MAINWINDOW_MAX", e.channelMRMainWndMin = "MR_MAINWINDOW_MIN", e.channelMRMainWndRestore = "MR_MAINWINDOW_RESTORE", e.channelRMGetBrowserStartType = "RM_GET_BROWSER_START_TYPE", e.channelMRGetBrowserStartTypeResult = "MR_GET_BROWSER_START_TYPE_RESULT", e.channelRMExecute = "RM_SHELL_EXECUTE", e.channelMRExecuteResult = "MR_SHELL_EXECUTE_RESULT", e.channelMRAdTipsClick = "MR_AD_TIPS_CLICK", e.channelMRNotificationMsg = "MR_NOTIFICATION_MSG", e.channelRMSetProgressBar = "RM_SET_PROGRESS_BAR", e.channelRMRoundWindow = "RM_ROUND_WINDOW", e.channelMRShowOrHideWindow = "MR_SHOW_OR_HIDE_WINDOW", e.channelMRSuspensionWindowShowOrHide = "MR_SUSPENSION_WINDOW_SHOW_OR_HIDE", e.channelRMConfigInitFinished = "RM_CONFIG_INIT_FINISHED", e.channelRMConfigValueChanged = "RM_CONFIG_VALUE_CHANGED", e.channelRMIndividuationBrowserMsg = "RM_INDIVIDUATION_BROWSER_MSG", e.channelMRIndividuationBrowserMsg = "MR_INDIVIDUATION_BROWSER_MSG", e.channelRMSetEnvironmentVariable = "RM_SET_ENVIRONMENT_VARIABLE", e.channelMREmbedPlayerPos = "MR_EMBED_PLAYER_POSITION", e.channelRMUpdateLogEnviroment = "RM_UPDATE_LOG_ENVIRONMENT", e.channelMRUpdateLogEnviroment = "MR_UPDATE_LOG_ENVIRONMENT"
        }(t.ThunderChannelList || (t.ThunderChannelList = {}))
    }, 2: function (e, t) {
        e.exports = require("path")
    }, 20: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(21), r = n(2), s = n(6), a = n(60), l = s.promisify,
            d = n(1).default.getLogger("Thunder.base.fs-utilities");
        !function (e) {
            function t(e) {
                return i(this, void 0, void 0, function* () {
                    let t = !1;
                    if (void 0 !== e) {
                        const n = l(o.access);
                        try {
                            yield n(e), t = !0
                        } catch (e) {
                            d.information(e)
                        }
                    }
                    return t
                })
            }

            function s(e) {
                return i(this, void 0, void 0, function* () {
                    let t = !1;
                    if (void 0 !== e) {
                        const n = l(o.mkdir);
                        try {
                            yield n(e), t = !0
                        } catch (e) {
                            d.warning(e)
                        }
                    }
                    return t
                })
            }

            function u(e) {
                return i(this, void 0, void 0, function* () {
                    let t = !1;
                    if (void 0 !== e) {
                        const n = l(o.rmdir);
                        try {
                            yield n(e), t = !0
                        } catch (e) {
                            d.warning(e)
                        }
                    }
                    return t
                })
            }

            function c(e) {
                return i(this, void 0, void 0, function* () {
                    let t = !1;
                    if (void 0 !== e) {
                        const n = l(o.unlink);
                        try {
                            yield n(e), t = !0
                        } catch (e) {
                            d.warning(e)
                        }
                    }
                    return t
                })
            }

            function h(e) {
                return i(this, void 0, void 0, function* () {
                    let t = null;
                    if (void 0 !== e) {
                        const n = l(o.readdir);
                        try {
                            t = yield n(e)
                        } catch (e) {
                            d.warning(e)
                        }
                    }
                    return t
                })
            }

            function p(e) {
                return i(this, void 0, void 0, function* () {
                    let t = null;
                    if (void 0 !== e) {
                        const n = l(o.lstat);
                        try {
                            t = yield n(e)
                        } catch (e) {
                            d.warning(e)
                        }
                    }
                    return t
                })
            }

            function f(e, t) {
                return i(this, void 0, void 0, function* () {
                    let n = !1;
                    if (void 0 !== e && void 0 !== t) {
                        let i = r.join(e, t), o = yield p(i);
                        n = null !== o && o.isDirectory() ? yield m(i) : yield c(i)
                    }
                    return n
                })
            }

            function m(e) {
                return i(this, void 0, void 0, function* () {
                    let n = !1;
                    if (void 0 !== e) {
                        if (yield t(e)) {
                            n = !0;
                            let t = (yield h(e)) || [];
                            for (let i = 0; i < t.length; i++) n = (yield f(e, t[i])) && n;
                            (n || 0 === t.length) && (n = (yield u(e)) && n)
                        }
                    }
                    return n
                })
            }

            function g(e) {
                return i(this, void 0, void 0, function* () {
                    let n = !1;
                    return d.information("mkdirsAW", e), void 0 !== e && ((yield t(e)) ? n = !0 : r.dirname(e) === e ? n = !1 : (yield g(r.dirname(e))) && (n = yield s(e))), n
                })
            }

            function S(e, n) {
                return i(this, void 0, void 0, function* () {
                    let i;
                    if (e.toLowerCase() !== n.toLowerCase() && (yield t(e))) {
                        let t = o.createReadStream(e), r = o.createWriteStream(n);
                        i = new Promise(e => {
                            t.pipe(r).on("finish", () => {
                                e(!0)
                            })
                        })
                    } else i = new Promise(e => {
                        e(!1)
                    });
                    return i
                })
            }

            e.readFileAW = function (e) {
                return i(this, void 0, void 0, function* () {
                    let t = null;
                    if (void 0 !== e) {
                        const n = l(o.readFile);
                        try {
                            t = yield n(e)
                        } catch (e) {
                            d.warning(e)
                        }
                    }
                    return t
                })
            }, e.readLineAw = function (e) {
                return i(this, void 0, void 0, function* () {
                    let n = null;
                    do {
                        if (!e) break;
                        if (!t(e)) break;
                        n = yield new Promise(t => {
                            let n = [];
                            const i = o.createReadStream(e), r = a.createInterface({input: i});
                            r.on("line", e => {
                                n.push(e)
                            }), r.on("close", () => {
                                t(n)
                            })
                        })
                    } while (0);
                    return n
                })
            }, e.writeFileAW = function (e, t) {
                return i(this, void 0, void 0, function* () {
                    let n = !1;
                    if (void 0 !== e && null !== t) {
                        const i = l(o.writeFile);
                        try {
                            yield i(e, t), n = !0
                        } catch (e) {
                            d.warning(e)
                        }
                    }
                    return n
                })
            }, e.existsAW = t, e.dirExistsAW = function (e) {
                return i(this, void 0, void 0, function* () {
                    let n = !1;
                    do {
                        if (!(n = yield t(e))) break;
                        let i = yield p(e);
                        if (!i) break;
                        n = i.isDirectory()
                    } while (0);
                    return n
                })
            }, e.mkdirAW = s, e.rmdirAW = u, e.unlinkAW = c, e.readdirAW = h, e.lstatAW = p, e.rmdirsAW = m, e.mkdirsAW = g, e.renameAW = function (e, t) {
                return i(this, void 0, void 0, function* () {
                    if (void 0 !== e && void 0 !== t) {
                        const n = l(o.rename);
                        try {
                            yield n(e, t)
                        } catch (e) {
                            d.warning(e)
                        }
                    }
                })
            }, e.copyFileAW = S, e.copyDirsAW = function e(n, o) {
                return i(this, void 0, void 0, function* () {
                    let i = !1, s = yield p(n);
                    if (s.isDirectory()) {
                        i = yield g(o);
                        let a = (yield h(n)) || [];
                        for (let l = 0; l < a.length; l++) {
                            let d = r.join(n, a[l]), u = r.join(o, a[l]);
                            (i = yield t(d)) && (i = (s = yield p(d)).isDirectory() ? yield e(d, u) : yield S(d, u))
                        }
                    }
                    return i
                })
            }, e.mkdtempAW = function () {
                return i(this, void 0, void 0, function* () {
                    let e = !1;
                    const t = l(o.mkdtemp), i = (yield Promise.resolve().then(() => n(14))).tmpdir();
                    try {
                        e = yield t(`${i}${r.sep}`)
                    } catch (e) {
                        d.warning(e)
                    }
                    return e
                })
            }, e.deleteEmptySubDirs = function (e, n) {
                return i(this, void 0, void 0, function* () {
                    let i = !0;
                    e = r.normalize(e), n = r.normalize(n), e.length > 3 && "\\" === e[e.length - 1] && (e = e.slice(0, e.length - 1)), n.length > 3 && "\\" === n[n.length - 1] && (n = n.slice(0, n.length - 1));
                    do {
                        if (0 !== e.indexOf(n)) {
                            i = !1;
                            break
                        }
                        let o = e;
                        for (; o !== n;) {
                            if ((yield t(o)) && !(yield u(o))) {
                                i = !1;
                                break
                            }
                            o = r.dirname(o)
                        }
                    } while (0);
                    return i
                })
            }, e.getFileSize = function e(n) {
                return i(this, void 0, void 0, function* () {
                    let i = 0;
                    do {
                        if (!n) break;
                        if (!(yield t(n))) break;
                        let o = yield p(n);
                        if (o) if (o.isDirectory()) {
                            let t = yield h(n);
                            for (let o = 0; o < t.length; o++) i += (yield e(r.join(n, t[o])))
                        } else i = o.size
                    } while (0);
                    return i
                })
            }, e.isDirectoryEmptyAW = function (e, n = !0) {
                return i(this, void 0, void 0, function* () {
                    let i = !0;
                    do {
                        if (!e) {
                            i = !1;
                            break
                        }
                        if (!(yield t(e))) {
                            i = n;
                            break
                        }
                        let o = yield p(e);
                        if (!o) {
                            i = !1;
                            break
                        }
                        if (!o.isDirectory()) {
                            i = !1;
                            break
                        }
                        if ((yield h(e)).length > 0) {
                            i = !1;
                            break
                        }
                    } while (0);
                    return i
                })
            }
        }(t.FileSystemAWNS || (t.FileSystemAWNS = {}))
    }, 21: function (e, t) {
        e.exports = require("fs")
    }, 22: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), t.information = function (...e) {
        }, t.error = function (...e) {
        }, t.warning = function (...e) {
        }, t.critical = function (...e) {
        }, t.verbose = function (...e) {
        }, "development" === process.env.LOGGER_ENV && (t.information = function (...e) {
            console.log("information", e)
        }, t.error = function (...e) {
            console.log("error", e)
        }, t.warning = function (...e) {
            console.log("warning", e)
        }, t.critical = function (...e) {
            console.log("critical", e)
        }, t.verbose = function (...e) {
            console.log("verbose", e)
        })
    }, 227: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(4);

        class r {
            constructor() {
                this.mPeerId = void 0, this.mUserId = "0", this.mSessionId = void 0, this.mIsLogin = !1, this.mIsVip = !1, this.mVipLevel = 0, this.mVasType = 0, this.mExpireDate = "", this.mThunderVersionStr = void 0, this.mThunderVersionNumber = void 0
            }

            get expireDate() {
                return this.mExpireDate
            }

            get thunderVersionNumber() {
                return this.mThunderVersionNumber
            }

            get thunderVersionString() {
                return this.mThunderVersionStr
            }

            get vasType() {
                return this.mVasType
            }

            get vipLevel() {
                return this.mVipLevel
            }

            get userId() {
                return this.mUserId
            }

            get isLogin() {
                return this.mIsLogin
            }

            get isVip() {
                return this.mIsVip
            }

            get isPlatinumVip() {
                return this.isVip && this.mVasType > 2
            }

            get isSuperVip() {
                return this.isVip && 5 === this.mVasType
            }

            getSessionId() {
                return i(this, void 0, void 0, function* () {
                    return new Promise(e => {
                        this.mSessionId ? e(this.mSessionId) : o.client.callServerFunction("GetSessionID").then(t => {
                            this.mSessionId = t, e(this.mSessionId || "0")
                        }).catch()
                    })
                })
            }

            getPeerId() {
                return i(this, void 0, void 0, function* () {
                    return new Promise(e => {
                        this.mPeerId ? e(this.mPeerId) : o.client.callServerFunction("GetPeerID").then(t => {
                            this.mPeerId = t, e(this.mPeerId || "")
                        }).catch()
                    })
                })
            }

            getUserinfo() {
                return i(this, void 0, void 0, function* () {
                    return yield o.client.callServerFunction("GetAllUserInfo")
                })
            }

            parseUserInfo() {
                return i(this, void 0, void 0, function* () {
                    let e = yield this.getUserinfo();
                    if (e) if (this.mIsLogin = !0, this.mUserId = e.userID || "0", e.vipList && e.vipList[0]) {
                        if (e.vipList[0].isVip) {
                            let t = Number(e.vipList[0].isVip).valueOf();
                            this.mIsVip = t > 0
                        } else this.mIsVip = !1;
                        e.vipList[0].vipLevel && (this.mVipLevel = Number(e.vipList[0].vipLevel).valueOf()), e.vipList[0].vasType && (this.mVasType = Number(e.vipList[0].vasType).valueOf()), e.vipList[0].expireDate && (this.mExpireDate = e.vipList[0].expireDate)
                    } else this.mIsVip = !1
                })
            }

            loadThunderVersion() {
                o.client.callServerFunction("GetThunderVersion").then(e => {
                    this.mThunderVersionStr = e, this.mThunderVersionNumber = 0;
                    let t = this.mThunderVersionStr.split(".");
                    if (t && 4 === t.length) {
                        let e = Number(t[0]).valueOf(), n = Number(t[1]).valueOf(), i = Number(t[2]).valueOf(), o = 128;
                        this.mThunderVersionNumber = o * Math.pow(2, 24) + e * Math.pow(2, 16) + n * Math.pow(2, 8) + i
                    }
                }).catch()
            }

            onLogin() {
                return i(this, void 0, void 0, function* () {
                    this.clear(), yield this.parseUserInfo()
                })
            }

            onLogout() {
                this.clear()
            }

            clear() {
                this.mUserId = "0", this.mSessionId = void 0, this.mIsVip = !1, this.mIsLogin = !1, this.mVasType = 0, this.mVipLevel = 0
            }
        }

        t.UserHelper = r, function (e) {
            const t = new r;
            e.getUserHelper = function () {
                return t
            }
        }(t.UserHelperNS || (t.UserHelperNS = {}))
    }, 23: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), function (e) {
            e.msgIPCCommunicatorForward = "ipc_communicator_forward", e.msgIPCSendToMain = "ipc_send_to_main", e.msgIPCSendToRenderer = "ipc_send_to_renderer", e.msgIPCRendererConnect = "ipc_renderer_connect", e.msgIPCRendererDisconnect = "ipc_renderer_disconnect", e.msgNCCallNativeFunction = "nc_call_native_function", e.msgNCCheckNativeFunction = "nc_check_native_function", e.msgNCCallJsFunctionById = "nc_call_js_function_by_id", e.msgNCCallJsFunctionByName = "nc_call_js_function_by_name", e.msgNCNativeFireEvent = "nc_native_fire_event", e.msgNCNativeCallReady = "nc_native_call_ready"
        }(t.CommonIPCMessage || (t.CommonIPCMessage = {}))
    }, 238: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), function (e) {
            e[e.HWND_NOTOPMOST = -2] = "HWND_NOTOPMOST", e[e.HWND_TOPMOST = -1] = "HWND_TOPMOST", e[e.HWND_TOP = 0] = "HWND_TOP", e[e.HWND_BOTTOM = 1] = "HWND_BOTTOM"
        }(t.OptionOfHWNDInAfter || (t.OptionOfHWNDInAfter = {})), function (e) {
            e[e.SWP_ASYNCWINDOWPOS = 16384] = "SWP_ASYNCWINDOWPOS", e[e.SWP_DEFERERASE = 8192] = "SWP_DEFERERASE", e[e.SWP_DRAWFRAME = 32] = "SWP_DRAWFRAME", e[e.SWP_FRAMECHANGED = 32] = "SWP_FRAMECHANGED", e[e.SWP_HIDEWINDOW = 128] = "SWP_HIDEWINDOW", e[e.SWP_NOACTIVATE = 16] = "SWP_NOACTIVATE", e[e.SWP_NOCOPYBITS = 256] = "SWP_NOCOPYBITS", e[e.SWP_NOMOVE = 2] = "SWP_NOMOVE", e[e.SWP_NOOWNERZORDER = 512] = "SWP_NOOWNERZORDER", e[e.SWP_NOREDRAW = 8] = "SWP_NOREDRAW", e[e.SWP_NOREPOSITION = 512] = "SWP_NOREPOSITION", e[e.SWP_NOSENDCHANGING = 1024] = "SWP_NOSENDCHANGING", e[e.SWP_NOSIZE = 1] = "SWP_NOSIZE", e[e.SWP_NOZORDER = 4] = "SWP_NOZORDER", e[e.SWP_SHOWWINDOW = 64] = "SWP_SHOWWINDOW"
        }(t.Uflag || (t.Uflag = {})), function (e) {
            e[e.SW_FORCEMINIMIZE = 11] = "SW_FORCEMINIMIZE", e[e.SW_HIDE = 0] = "SW_HIDE", e[e.SW_MAXIMIZE = 3] = "SW_MAXIMIZE", e[e.SW_MINIMIZE = 6] = "SW_MINIMIZE", e[e.SW_RESTORE = 9] = "SW_RESTORE", e[e.SW_SHOW = 5] = "SW_SHOW", e[e.SW_SHOWDEFAULT = 10] = "SW_SHOWDEFAULT", e[e.SW_SHOWMAXIMIZED = 3] = "SW_SHOWMAXIMIZED", e[e.SW_SHOWMINIMIZED = 2] = "SW_SHOWMINIMIZED", e[e.SW_SHOWMINNOACTIVE = 7] = "SW_SHOWMINNOACTIVE", e[e.SW_SHOWNA = 8] = "SW_SHOWNA", e[e.SW_SHOWNOACTIVATE = 4] = "SW_SHOWNOACTIVATE", e[e.SW_SHOWNORMAL = 1] = "SW_SHOWNORMAL"
        }(t.CmdShow || (t.CmdShow = {})), function (e) {
            e[e.WS_BORDER = 8388608] = "WS_BORDER", e[e.WS_CAPTION = 12582912] = "WS_CAPTION", e[e.WS_CHILD = 1073741824] = "WS_CHILD", e[e.WS_CHILDWINDOW = 1073741824] = "WS_CHILDWINDOW", e[e.WS_CLIPCHILDREN = 33554432] = "WS_CLIPCHILDREN", e[e.WS_CLIPSIBLINGS = 67108864] = "WS_CLIPSIBLINGS", e[e.WS_POPUP = 2147483648] = "WS_POPUP", e[e.WS_THICKFRAME = 262144] = "WS_THICKFRAME"
        }(t.WindowStyle || (t.WindowStyle = {})), function (e) {
            e[e.WS_EX_TOOLWINDOW = 128] = "WS_EX_TOOLWINDOW", e[e.WS_EX_APPWINDOW = 262144] = "WS_EX_APPWINDOW", e[e.WS_EX_TOPMOST = 8] = "WS_EX_TOPMOST", e[e.WS_EX_WINDOWEDGE = 256] = "WS_EX_WINDOWEDGE", e[e.WS_EX_NOACTIVATE = 134217728] = "WS_EX_NOACTIVATE", e[e.WS_EX_TRANSPARENT = 32] = "WS_EX_TRANSPARENT", e[e.WS_EX_LAYERED = 524288] = "WS_EX_LAYERED"
        }(t.WindowStyleEx || (t.WindowStyleEx = {})), function (e) {
            e[e.GWL_EXSTYLE = -20] = "GWL_EXSTYLE", e[e.GWL_HINSTANCE = -6] = "GWL_HINSTANCE", e[e.GWL_ID = -12] = "GWL_ID", e[e.GWL_STYLE = -16] = "GWL_STYLE", e[e.GWL_USERDATA = -21] = "GWL_USERDATA", e[e.GWL_WNDPROC = -4] = "GWL_WNDPROC"
        }(t.SetWindowType || (t.SetWindowType = {})), function (e) {
            e[e.WM_CREATE = 1] = "WM_CREATE", e[e.WM_DESTROY = 2] = "WM_DESTROY", e[e.WM_MOVE = 3] = "WM_MOVE", e[e.WM_SIZE = 5] = "WM_SIZE", e[e.WM_ACTIVATE = 6] = "WM_ACTIVATE", e[e.WM_SETFOCUS = 7] = "WM_SETFOCUS", e[e.WM_KILLFOCUS = 8] = "WM_KILLFOCUS", e[e.WM_ENABLE = 10] = "WM_ENABLE", e[e.WM_KEYDOWN = 256] = "WM_KEYDOWN", e[e.WM_KEYUP = 257] = "WM_KEYUP", e[e.WM_SYSKEYDOWN = 260] = "WM_SYSKEYDOWN", e[e.WM_MOUSEMOVE = 512] = "WM_MOUSEMOVE", e[e.WM_SETCURSOR = 32] = "WM_SETCURSOR", e[e.WM_LBUTTONDOWN = 513] = "WM_LBUTTONDOWN", e[e.WM_LBUTTONUP = 514] = "WM_LBUTTONUP", e[e.WM_LBUTTONDBLCLK = 515] = "WM_LBUTTONDBLCLK", e[e.WM_RBUTTONUP = 517] = "WM_RBUTTONUP", e[e.WM_MOUSEWHEEL = 522] = "WM_MOUSEWHEEL", e[e.WM_MOUSELEAVE = 675] = "WM_MOUSELEAVE", e[e.WM_DPICHANGED = 736] = "WM_DPICHANGED", e[e.WM_GETMINMAXINFO = 36] = "WM_GETMINMAXINFO", e[e.WM_NCHITTEST = 132] = "WM_NCHITTEST", e[e.WM_NCMOUSEMOVE = 160] = "WM_NCMOUSEMOVE", e[e.WM_NCLBUTTONDOWN = 161] = "WM_NCLBUTTONDOWN", e[e.WM_NCLBUTTONUP = 162] = "WM_NCLBUTTONUP", e[e.WM_NCLBUTTONDBLCLK = 163] = "WM_NCLBUTTONDBLCLK", e[e.WM_NCRBUTTONDOWN = 164] = "WM_NCRBUTTONDOWN", e[e.WM_NCRBUTTONUP = 165] = "WM_NCRBUTTONUP", e[e.WM_NCRBUTTONDBLCLK = 166] = "WM_NCRBUTTONDBLCLK", e[e.WM_NCMBUTTONDOWN = 167] = "WM_NCMBUTTONDOWN", e[e.WM_NCMBUTTONUP = 168] = "WM_NCMBUTTONUP", e[e.WM_NCMBUTTONDBLCLK = 169] = "WM_NCMBUTTONDBLCLK", e[e.WM_WINDOWPOSCHANGED = 71] = "WM_WINDOWPOSCHANGED", e[e.WM_WINDOWPOSCHANGING = 70] = "WM_WINDOWPOSCHANGING", e[e.WM_ACTIVATEAPP = 28] = "WM_ACTIVATEAPP", e[e.WM_DWMCOMPOSITIONCHANGED = 798] = "WM_DWMCOMPOSITIONCHANGED", e[e.WM_QUERYENDSESSION = 17] = "WM_QUERYENDSESSION"
        }(t.WindowMessage || (t.WindowMessage = {})), function (e) {
            e[e.GW_HWNDFIRST = 0] = "GW_HWNDFIRST", e[e.GW_HWNDLAST = 1] = "GW_HWNDLAST", e[e.GW_HWNDNEXT = 2] = "GW_HWNDNEXT", e[e.GW_HWNDPREV = 3] = "GW_HWNDPREV", e[e.GW_OWNER = 4] = "GW_OWNER", e[e.GW_CHILD = 5] = "GW_CHILD", e[e.GW_ENABLEDPOPUP = 6] = "GW_ENABLEDPOPUP"
        }(t.GWCmd || (t.GWCmd = {})), function (e) {
            e[e.HTERROR = -2] = "HTERROR", e[e.HTTRANSPARENT = -1] = "HTTRANSPARENT", e[e.HTNOWHERE = 0] = "HTNOWHERE", e[e.HTCLIENT = 1] = "HTCLIENT", e[e.HTCAPTION = 2] = "HTCAPTION", e[e.HTSYSMENU = 3] = "HTSYSMENU", e[e.HTGROWBOX = 4] = "HTGROWBOX", e[e.HTSIZE = 4] = "HTSIZE", e[e.HTMENU = 5] = "HTMENU", e[e.HTHSCROLL = 6] = "HTHSCROLL", e[e.HTVSCROLL = 7] = "HTVSCROLL", e[e.HTMINBUTTON = 8] = "HTMINBUTTON", e[e.HTMAXBUTTON = 9] = "HTMAXBUTTON", e[e.HTLEFT = 10] = "HTLEFT", e[e.HTRIGHT = 11] = "HTRIGHT", e[e.HTTOP = 12] = "HTTOP", e[e.HTTOPLEFT = 13] = "HTTOPLEFT", e[e.HTTOPRIGHT = 14] = "HTTOPRIGHT", e[e.HTBOTTOM = 15] = "HTBOTTOM", e[e.HTBOTTOMLEFT = 16] = "HTBOTTOMLEFT", e[e.HTBOTTOMRIGHT = 17] = "HTBOTTOMRIGHT", e[e.HTBORDER = 18] = "HTBORDER", e[e.HTREDUCE = 8] = "HTREDUCE", e[e.HTZOOM = 9] = "HTZOOM", e[e.HTSIZEFIRST = 10] = "HTSIZEFIRST", e[e.HTSIZELAST = 17] = "HTSIZELAST", e[e.HTOBJECT = 19] = "HTOBJECT", e[e.HTCLOSE = 20] = "HTCLOSE", e[e.HTHELP = 21] = "HTHELP"
        }(t.HitTestPositionCode || (t.HitTestPositionCode = {})), function (e) {
            e[e.VK_LBUTTON = 1] = "VK_LBUTTON", e[e.VK_RBUTTON = 2] = "VK_RBUTTON", e[e.VK_MBUTTON = 4] = "VK_MBUTTON", e[e.VK_BACK = 8] = "VK_BACK", e[e.VK_TAB = 9] = "VK_TAB", e[e.VK_RETURN = 13] = "VK_RETURN", e[e.VK_SHIFT = 16] = "VK_SHIFT", e[e.VK_CONTROL = 17] = "VK_CONTROL", e[e.VK_MENU = 18] = "VK_MENU", e[e.VK_ESCAPE = 27] = "VK_ESCAPE", e[e.VK_SPACE = 32] = "VK_SPACE", e[e.VK_PRIOR = 33] = "VK_PRIOR", e[e.VK_NEXT = 34] = "VK_NEXT", e[e.VK_END = 35] = "VK_END", e[e.VK_LEFT = 37] = "VK_LEFT", e[e.VK_UP = 38] = "VK_UP", e[e.VK_RIGHT = 39] = "VK_RIGHT", e[e.VK_DOWN = 40] = "VK_DOWN", e[e.VK_DELETE = 46] = "VK_DELETE", e[e.VK_F1 = 112] = "VK_F1", e[e.VK_F2 = 113] = "VK_F2", e[e.VK_F3 = 114] = "VK_F3", e[e.VK_F4 = 115] = "VK_F4", e[e.VK_F5 = 116] = "VK_F5", e[e.VK_F6 = 117] = "VK_F6", e[e.VK_F7 = 118] = "VK_F7", e[e.VK_F8 = 119] = "VK_F8", e[e.VK_F9 = 120] = "VK_F9", e[e.VK_F10 = 121] = "VK_F10", e[e.VK_F11 = 122] = "VK_F11", e[e.VK_F12 = 123] = "VK_F12", e[e.VK_OEM_1 = 186] = "VK_OEM_1", e[e.VK_OEM_PLUS = 187] = "VK_OEM_PLUS", e[e.VK_OEM_COMMA = 188] = "VK_OEM_COMMA", e[e.VK_OEM_MINUS = 189] = "VK_OEM_MINUS", e[e.VK_OEM_PERIOD = 190] = "VK_OEM_PERIOD", e[e.VK_OEM_2 = 191] = "VK_OEM_2", e[e.VK_OEM_3 = 192] = "VK_OEM_3", e[e.VK_OEM_4 = 219] = "VK_OEM_4", e[e.VK_OEM_5 = 220] = "VK_OEM_5", e[e.VK_OEM_6 = 221] = "VK_OEM_6", e[e.VK_OEM_7 = 222] = "VK_OEM_7", e[e.VK_PROCESSKEY = 229] = "VK_PROCESSKEY"
        }(t.VirtualKeyCode || (t.VirtualKeyCode = {})), function (e) {
            e[e.SW_HIDE = 0] = "SW_HIDE", e[e.SW_SHOWMAXIMIZED = 3] = "SW_SHOWMAXIMIZED", e[e.SW_SHOW = 5] = "SW_SHOW"
        }(t.ShowWindowCmd || (t.ShowWindowCmd = {})), function (e) {
            e[e.MIN_WINDOW_WIDTH = 520] = "MIN_WINDOW_WIDTH", e[e.MIN_WINDOW_HEIGHT = 335] = "MIN_WINDOW_HEIGHT", e[e.MIN_WINDOW_WIDTH_TAB = 910] = "MIN_WINDOW_WIDTH_TAB", e[e.MIN_WINDOW_HEIGHT_TAB = 600] = "MIN_WINDOW_HEIGHT_TAB", e[e.TOP_WINDOW_HEIGHT = 68] = "TOP_WINDOW_HEIGHT", e[e.TOP_WINDOW_HEIGHT_NORMAL = 68] = "TOP_WINDOW_HEIGHT_NORMAL", e[e.PLAYCTRL_HEIGHT = 82] = "PLAYCTRL_HEIGHT", e[e.PLAYLIST_WIDTH = 240] = "PLAYLIST_WIDTH", e[e.FRAME_BORDER = 0] = "FRAME_BORDER", e[e.FRAME_RESIZE_BORDER = 0] = "FRAME_RESIZE_BORDER", e[e.BROWSERWINDOW_SHADOW = 8] = "BROWSERWINDOW_SHADOW", e[e.SIDE_BAR_WIDTH = 25] = "SIDE_BAR_WIDTH", e[e.SIDE_BAR_HEIGHT = 100] = "SIDE_BAR_HEIGHT", e[e.SHOWHIDE_DELAY_TIME = 2e3] = "SHOWHIDE_DELAY_TIME", e[e.TIME_TIP_WINDOW_WIDTH = 111] = "TIME_TIP_WINDOW_WIDTH", e[e.TIME_TIP_WINDOW_HEIGHT = 30] = "TIME_TIP_WINDOW_HEIGHT", e[e.TIME_IMG_TIP_WINDOW_HEIGHT = 75] = "TIME_IMG_TIP_WINDOW_HEIGHT"
        }(t.WindowParams || (t.WindowParams = {})), function (e) {
            e[e.UNKNOWN_MODE = -1] = "UNKNOWN_MODE", e[e.TRANSPARENT_MODE = 0] = "TRANSPARENT_MODE", e[e.NORMAL_MODE = 1] = "NORMAL_MODE", e[e.MINI_MODE = 2] = "MINI_MODE", e[e.EMBED_CHILD_MODE = 3] = "EMBED_CHILD_MODE"
        }(t.XMPShowMode || (t.XMPShowMode = {})), function (e) {
            e[e.NO_TOPMOST_MODE = 0] = "NO_TOPMOST_MODE", e[e.PLAYING_TOPMOST_MODE = 1] = "PLAYING_TOPMOST_MODE", e[e.ALWAYLS_TOPMOST_MODE = 2] = "ALWAYLS_TOPMOST_MODE"
        }(t.WindowTopMode || (t.WindowTopMode = {})), function (e) {
            e[e.RGN_AND = 1] = "RGN_AND", e[e.RGN_OR = 2] = "RGN_OR", e[e.RGN_XOR = 3] = "RGN_XOR", e[e.RGN_DIFF = 4] = "RGN_DIFF", e[e.RGN_COPY = 5] = "RGN_COPY"
        }(t.CombineRgnType || (t.CombineRgnType = {})), function (e) {
            e[e.PLAY_UNKNOWN = 0] = "PLAY_UNKNOWN", e[e.PLAY_BY_DOWNLOAD = 1] = "PLAY_BY_DOWNLOAD", e[e.PLAY_BY_PAN = 2] = "PLAY_BY_PAN"
        }(t.XmpPlaySoure || (t.XmpPlaySoure = {})), function (e) {
            e.onOpenSucceeded = "OnOpenSucceeded", e.onOpenFailed = "OnOpenFailed", e.onPlayFailed = "OnPlayFailed", e.onPlaying = "OnPlaying", e.onPreOpen = "OnPreOpen", e.onPaused = "OnPaused", e.onPlayCompleted = "OnPlayCompleted", e.onPreStop = "OnPreStop", e.onStop = "OnStop", e.onXmpQuit = "OnXmpQuit", e.onXmpStartFailed = "OnXmpStartFailed", e.onError = "OnError"
        }(t.XmpEvent || (t.XmpEvent = {})), function (e) {
            e[e.Invalid = -100] = "Invalid", e[e.PreOpen = -10] = "PreOpen", e[e.QueryExt = -9] = "QueryExt", e[e.DownloadTorrent = -3] = "DownloadTorrent", e[e.ParserTorrent = -2] = "ParserTorrent", e[e.GetPlayUrl = -1] = "GetPlayUrl", e[e.Ready = 0] = "Ready", e[e.Opening = 1] = "Opening", e[e.Pausing = 2] = "Pausing", e[e.Paused = 3] = "Paused", e[e.Playing = 4] = "Playing", e[e.Play = 5] = "Play", e[e.Closeing = 6] = "Closeing", e[e.Completed = 7] = "Completed", e[e.Stopped = 8] = "Stopped", e[e.Error = 9] = "Error"
        }(t.XmpMediaState || (t.XmpMediaState = {})), function (e) {
            e[e.AbeLeft = 0] = "AbeLeft", e[e.AbeTop = 1] = "AbeTop", e[e.AbeRright = 2] = "AbeRright", e[e.AbeBottom = 3] = "AbeBottom"
        }(t.WindowTaskBarAbe || (t.WindowTaskBarAbe = {}))
    }, 239: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(2), o = n(8), r = n(1), s = n(15), a = n(16),
            l = o.default(i.join(__rootDir, "../bin/ThunderHelper.node")),
            d = r.default.getLogger("Thunder.FloatPanelHelper");
        !function (e) {
            e[e.LeftBottom = 0] = "LeftBottom", e[e.LeftTop = 1] = "LeftTop", e[e.RightTop = 2] = "RightTop", e[e.RightBottom = 3] = "RightBottom"
        }(t.FloatPanelDirection || (t.FloatPanelDirection = {})), function (e) {
            let t, n, i;

            function o(e) {
                let o = null, r = e.receiveSize, a = e.srcUsing;
                do {
                    if (e.taskType === s.DownloadKernel.TaskType.P2sp) {
                        if (r > 0) {
                            o = t.Stared;
                            break
                        }
                        if (e.taskStatus === s.DownloadKernel.TaskStatus.StartPending) {
                            o = t.Starting;
                            break
                        }
                        if (e.taskStatus === s.DownloadKernel.TaskStatus.Started && 0 === r) {
                            o = t.Connect;
                            break
                        }
                    } else if (e.taskType === s.DownloadKernel.TaskType.Bt) {
                        if (r > 0) {
                            o = n.Stared;
                            break
                        }
                        if (e.taskStatus === s.DownloadKernel.TaskStatus.StartPending) {
                            o = n.Analy;
                            break
                        }
                        if (e.taskStatus === s.DownloadKernel.TaskStatus.Started) {
                            o = a > 0 ? n.Connect : n.Search;
                            break
                        }
                    } else if (e.taskType === s.DownloadKernel.TaskType.Emule) {
                        if (r > 0) {
                            o = i.Stared;
                            break
                        }
                        if (e.taskStatus === s.DownloadKernel.TaskStatus.StartPending) {
                            o = i.Starting;
                            break
                        }
                        if (e.taskStatus === s.DownloadKernel.TaskStatus.Started) {
                            o = a > 0 ? i.Connect : i.Search;
                            break
                        }
                    }
                } while (0);
                return o
            }

            e.pageSize = 20, e.noneReactiveTaskBaseInfos = {}, e.cloudNoneReactiveTasksMap = {}, e.isDownloadStatus = function (e) {
                let t = !1;
                return e !== s.DownloadKernel.TaskStatus.StartPending && e !== s.DownloadKernel.TaskStatus.StartWaiting && e !== s.DownloadKernel.TaskStatus.Started || (t = !0), t
            }, e.formatSpeed = function (e) {
                let t = {speed: "0.0", unit: "B/s"};
                if ("number" == typeof e && e > 0) {
                    let n = ["B/s", "KB/s", "MB/s", "GB/s", "TB/s"], i = 0, o = e;
                    for (; o >= 1e3 && !(i >= 4);) o /= 1024, i += 1;
                    if (-1 === String(o).indexOf(".")) t = {speed: String(o), unit: n[i]}; else {
                        let e = o.toFixed(1);
                        1 === i && (e = o.toFixed(0)), t = {speed: e, unit: n[i]}
                    }
                }
                return t
            }, e.isThunderMainWndForeground = function () {
                let e = l.getForegroundProcessName();
                d.information("foreProcName:", e);
                let t = !1;
                return (e.toLowerCase().indexOf("thunder.exe") > -1 || e.toLowerCase().indexOf("xlbrowser.exe") > -1) && (t = !0), t
            }, function (e) {
                e[e.Unkown = 0] = "Unkown", e[e.Starting = 1] = "Starting", e[e.Connect = 2] = "Connect", e[e.Stared = 3] = "Stared"
            }(t || (t = {})), function (e) {
                e[e.Unkown = 0] = "Unkown", e[e.Analy = 1] = "Analy", e[e.Search = 2] = "Search", e[e.Connect = 3] = "Connect", e[e.Stared = 4] = "Stared"
            }(n || (n = {})), function (e) {
                e[e.Unkown = 0] = "Unkown", e[e.Starting = 1] = "Starting", e[e.Search = 2] = "Search", e[e.Connect = 3] = "Connect", e[e.Stared = 4] = "Stared"
            }(i || (i = {})), e.getTaskStartPrompt = function (e) {
                let r = void 0;
                do {
                    if (null === e) break;
                    if (e.taskStatus === s.DownloadKernel.TaskStatus.StartPending || e.taskStatus === s.DownloadKernel.TaskStatus.Started) {
                        if (e.taskType === s.DownloadKernel.TaskType.P2sp) {
                            let n = o(e);
                            if (null === n) break;
                            n === t.Connect && (r = "连接资源");
                            break
                        }
                        if (e.taskType === s.DownloadKernel.TaskType.Bt) {
                            let t = o(e);
                            if (null === t) break;
                            t === n.Analy ? r = "解析种子" : t === n.Search ? r = "寻找资源" : t === n.Connect && (r = "连接资源");
                            break
                        }
                        if (e.taskType === s.DownloadKernel.TaskType.Emule) {
                            let t = o(e);
                            if (null === t) break;
                            t === i.Search ? r = "寻找资源" : t === i.Connect && (r = "连接资源")
                        }
                    }
                } while (0);
                return r
            }, e.getTaskStatusPrompt = function (e) {
                let t = "";
                if (e) switch (e.taskStatus) {
                    case s.DownloadKernel.TaskStatus.Unkown:
                        t = "未知错误";
                        break;
                    case s.DownloadKernel.TaskStatus.StandBy:
                        t = "准备开始";
                        break;
                    case s.DownloadKernel.TaskStatus.PreDownloading:
                        t = "等待中";
                        break;
                    case s.DownloadKernel.TaskStatus.StartWaiting:
                        t = "排队等待";
                        break;
                    case s.DownloadKernel.TaskStatus.StartPending:
                        t = "正在开始";
                        break;
                    case s.DownloadKernel.TaskStatus.Started:
                        e.downloadSpeed >= 0 && (t = a.ThunderUtil.formatSize(e.downloadSpeed, 1), t += "/S");
                        break;
                    case s.DownloadKernel.TaskStatus.StopPending:
                        t = "正在停止";
                        break;
                    case s.DownloadKernel.TaskStatus.Stopped:
                        t = "暂停";
                        break;
                    case s.DownloadKernel.TaskStatus.Succeeded:
                        t = "完成";
                        break;
                    case s.DownloadKernel.TaskStatus.Failed:
                        t = "任务出错";
                        break;
                    case s.DownloadKernel.TaskStatus.Seeding:
                        t = "完成"
                }
                return t
            }, e.getProgress = function (e) {
                let t = 0;
                if (e) {
                    let n = e.downloadSize, i = e.taskStatus;
                    if (i === s.DownloadKernel.TaskStatus.Succeeded || i === s.DownloadKernel.TaskStatus.Seeding) t = 100; else {
                        let i = e.fileSize;
                        0 !== i && (t = n / i * 100, (t = parseInt(t.toString(), 10)) > 100 ? t = 100 : t < 0 && (t = 0))
                    }
                }
                return t
            }
        }(t.FloatPanelHelper || (t.FloatPanelHelper = {}))
    }, 240: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(31), o = n(83), r = n(84), s = n(997);
        i.default.use(o.default);
        const a = new o.default.Store({modules: {CloudDownload: s.default}, strict: !1});
        t.connector = new r.default(a)
    }, 25: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(2), r = n(33), s = n(14), a = n(15),
            l = n(8).default(o.join(__rootDir, "../bin/ThunderHelper.node"));
        !function (e) {
            let t, n;

            function o(e) {
                let t = e;
                return /^[a-zA-Z]:\\/.test(e) ? t = e.slice(0, 3) : e && "\\" !== e[e.length - 1] && (t = e + "\\"), t
            }

            !function (e) {
                e[e.DRIVE_UNKNOWN = 0] = "DRIVE_UNKNOWN", e[e.DRIVE_NO_ROOT_DIR = 1] = "DRIVE_NO_ROOT_DIR", e[e.DRIVE_REMOVABLE = 2] = "DRIVE_REMOVABLE", e[e.DRIVE_FIXED = 3] = "DRIVE_FIXED", e[e.DRIVE_REMOTE = 4] = "DRIVE_REMOTE", e[e.DRIVE_CDROM = 5] = "DRIVE_CDROM", e[e.DRIVE_RAMDISK = 6] = "DRIVE_RAMDISK"
            }(t = e.DriverType || (e.DriverType = {})), function (e) {
                e[e.Unspecified = 0] = "Unspecified", e[e.HDD = 3] = "HDD", e[e.SSD = 4] = "SSD", e[e.SCM = 5] = "SCM"
            }(n = e.MediaType || (e.MediaType = {})), e.getDriveType = function (e) {
                return e = o(e), l.getDriveType(e)
            }, e.getDriveInfo = function (e) {
                return e = o(e), l.getDriveInfo(e)
            }, e.getFreePartitionSpace = function (e) {
                return e = o(e), l.getFreePartitionSpace(e)
            }, e.getLogicalDriveStrings = function () {
                return l.getLogicalDriveStrings()
            }, e.getPartitionSpace = function (e) {
                return e = o(e), l.getPartitionSpace(e)
            }, e.getSystemTempPath = function () {
                return l.getSystemTempPath()
            }, e.getTaskTypeFromUrl = function (e) {
                let t = l.getTaskTypeFromUrl(e);
                if (t === a.DownloadKernel.TaskType.Unkown && function (e) {
                    e = e.toLowerCase();
                    let t = !1;
                    do {
                        if ("http://" === e.substr(0, "http://".length)) {
                            t = !0;
                            break
                        }
                        if ("https://" === e.substr(0, "https://".length)) {
                            t = !0;
                            break
                        }
                        if ("ftp://" === e.substr(0, "ftp://".length)) {
                            t = !0;
                            break
                        }
                    } while (0);
                    return t
                }(e)) {
                    let n = /:\/\/\[(.+?)\].*/.exec(e);
                    n || (n = /.+?:\/\/.*?\[(.+?)\].*/.exec(e)), n && n[1] && r.isIPv6(n[1]) && (t = a.DownloadKernel.TaskType.P2sp)
                }
                return t
            }, e.extractIcon = function (e, t) {
                return l.extractIcon(e, t)
            }, e.isWindow7 = function () {
                return 1 === l.isWin7()
            }, e.isWindow8OrLater = function () {
                let e = !1;
                do {
                    let t = s.release();
                    if (!t) break;
                    let n = t.indexOf(".", 0);
                    if (n < 0) break;
                    let i = t.substring(0, n);
                    if (!i) break;
                    let o = parseInt(i, 10);
                    o && o >= 8 && (e = !0)
                } while (0);
                return e
            }, e.isWindows10 = function () {
                let e = !1;
                do {
                    let t = s.release();
                    if (!t) break;
                    if (0 === t.indexOf("10.0.")) {
                        e = !0;
                        break
                    }
                } while (0);
                return e
            }, e.compareStr = function (e, t) {
                return l.compareStr(e, t)
            }, e.getTickCount = function () {
                return l.getTickCount()
            }, e.setScreenSaveActive = function (e, t) {
                return l.setScreenSaveActive(e, t)
            }, e.isSparseDriver = function (e) {
                return e = o(e), l.isSparseDriver(e)
            }, e.getAppList = function () {
                return i(this, void 0, void 0, function* () {
                    return new Promise(e => {
                        l.getAppList(t => {
                            e(t)
                        })
                    })
                })
            }, e.isSSD = function () {
                return i(this, void 0, void 0, function* () {
                    return new Promise(e => {
                        l.isSSD((t, n) => {
                            e(n)
                        })
                    })
                })
            }, e.getMemoryInfo = function () {
                return i(this, void 0, void 0, function* () {
                    return new Promise(e => {
                        l.getMemoryInfo((t, n) => {
                            e({totalPhy: t, totalVir: n})
                        })
                    })
                })
            }, e.getHardDiskSpaceList = function () {
                return i(this, void 0, void 0, function* () {
                    return new Promise(e => {
                        l.getHardDiskSpaceList(t => {
                            e(t)
                        })
                    })
                })
            }, e.getCpuList = function () {
                return i(this, void 0, void 0, function* () {
                    return new Promise(e => {
                        l.getCpuList(t => {
                            e(t)
                        })
                    })
                })
            }, e.getFixedDriveMediaType = function (e) {
                return i(this, void 0, void 0, function* () {
                    return new Promise(t => {
                        e.length > 1 && (e = e.slice(0, 1)), l.getDriveMediaType(e.toUpperCase(), (e, n) => {
                            t(n)
                        })
                    })
                })
            }, e.sleep = function (e) {
                return i(this, void 0, void 0, function* () {
                    yield new Promise((t, n) => {
                        setTimeout(t, e)
                    })
                })
            }, e.getSystemDirectory = function () {
                return l.getSystemDirectory()
            }, e.getVersionBlockString = function (e, t) {
                return l.getVersionBlockString(e, t)
            }, e.getOwnerName = function (e) {
                return l.getOwnerName(e)
            }
        }(t.ThunderHelper || (t.ThunderHelper = {}))
    }, 28: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(3), o = n(6), r = n(22), s = n(23);
        !function (e) {
            e.mainProcessContext = "main-process", e.mainRendererContext = "main-renderer", e.mainPageWebviewRendererContext = "main-page-webview-renderer", e.newTaskRendererContext = "new-task-renderer", e.preNewTaskRendererContext = "pre-new-task-renderer", e.loginRendererContext = "login-renderer";

            class t {
                constructor() {
                    this.isConnected = !1, this.isOnIPCEvent = !1, this.rendererInfos = [], this.listeners = new Map, t.intervalIPCModuleMsgs = [s.CommonIPCMessage.msgIPCRendererConnect, s.CommonIPCMessage.msgIPCRendererDisconnect]
                }

                onMessage(e, t) {
                    do {
                        if (!o.isString(e) || 0 === e.length) {
                            r.error("msgName is null");
                            break
                        }
                        if (o.isNullOrUndefined(t)) {
                            r.error("listener is null");
                            break
                        }
                        this.listeners.has(e) ? this.listeners.get(e).push(t) : this.listeners.set(e, [t])
                    } while (0)
                }

                getCommunicatorInfo() {
                    return this.currInfo
                }

                getAllRenderer() {
                    return this.rendererInfos
                }

                getCommunicatorInfoById(e) {
                    for (let t of this.rendererInfos) if (t.id === e) return t;
                    return null
                }

                getCommunicatorInfoByContext(e) {
                    for (let t of this.rendererInfos) if (t.context === e) return t;
                    return null
                }

                startListenIPCMessage(e) {
                    this.isOnIPCEvent || (this.isOnIPCEvent = !0, e && this.ListenSendToMainMsg(), this.ListenSendToRendererMsg(e))
                }

                ListenSendToMainMsg() {
                    i.ipcMain.on(s.CommonIPCMessage.msgIPCSendToMain, (e, t) => {
                        let n = void 0;
                        do {
                            if (o.isNullOrUndefined(t)) {
                                r.error("msgInfo is empty");
                                break
                            }
                            if (!this.isConnected) {
                                r.warning("hasnot been connected yet");
                                break
                            }
                            let i = t.msg.name;
                            if (this.isIPCModuleIntervalMsg(i)) {
                                r.information(`IPC module interval msg : ${i}`);
                                let o = this.handleIPCModuleIntervalMsg(e.sender, t);
                                if (n = o[1], !o[0]) break;
                                r.information("need to dispatch msg:" + i)
                            }
                            o.isNullOrUndefined(n) ? n = this.NotifyListener(t) : this.NotifyListener(t)
                        } while (0);
                        o.isNullOrUndefined(n) || (e.returnValue = n), t = null
                    })
                }

                ListenSendToRendererMsg(e) {
                    (e ? i.ipcMain : i.ipcRenderer).on(s.CommonIPCMessage.msgIPCSendToRenderer, (t, n) => {
                        let i = void 0;
                        do {
                            if (o.isNullOrUndefined(n)) {
                                r.error("msgInfo is empty");
                                break
                            }
                            if (!this.isConnected) {
                                r.warning("hasnot been connected yet");
                                break
                            }
                            let s = n.msg.name;
                            if (this.isIPCModuleIntervalMsg(s)) {
                                r.information(`IPC module interval msg : ${s}`);
                                let e = this.handleIPCModuleIntervalMsg(t.sender, n);
                                if (i = e[1], !e[0]) break;
                                r.information("need to dispatch msg:" + s)
                            }
                            e ? (r.information("is main, handle forward msg"), this.handleForwardRendererToRendererMsg(n)) : (r.information("is renderer, handle business msg"), o.isNullOrUndefined(i) ? i = this.NotifyListener(n) : this.NotifyListener(n))
                        } while (0);
                        o.isNullOrUndefined(i) || (t.returnValue = i), n = null
                    })
                }

                isIPCModuleIntervalMsg(e) {
                    for (let n of t.intervalIPCModuleMsgs) if (e === n) return !0;
                    return !1
                }

                handleIPCModuleIntervalMsg(e, t) {
                    let n = [!1, void 0];
                    do {
                        let i = t.msg.name;
                        if (i === s.CommonIPCMessage.msgIPCRendererConnect) {
                            n = [!0, this.handleRendererConnectMsg(e, t)];
                            break
                        }
                        if (i === s.CommonIPCMessage.msgIPCRendererDisconnect) {
                            n = [!0, this.handleRendererDisconnectMsg(e, t)];
                            break
                        }
                    } while (0);
                    return n
                }

                handleRendererConnectMsg(e, t) {
                    r.verbose(e), r.verbose(t)
                }

                handleRendererDisconnectMsg(e, t) {
                    r.verbose(e), r.verbose(t)
                }

                handleForwardRendererToRendererMsg(e) {
                    this.sendForwardRendererToRendererMsg(e)
                }

                sendForwardRendererToRendererMsg(e) {
                    r.verbose(e)
                }

                NotifyListener(e) {
                    let t = void 0, n = e.msg.name;
                    if (this.listeners.has(n)) {
                        let i = this.listeners.get(n), o = !0;
                        for (let n of i) o ? (o = !1, t = n(e)) : n(e)
                    }
                    return t
                }
            }

            e.Communicator = t
        }(t.CommonIPCBase || (t.CommonIPCBase = {}))
    }, 29: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(14), o = n(2);
        t.getDefaultPrex = function () {
            return o.basename(process.execPath, ".exe")
        }, t.getSockPath = function (e) {
            const t = i.tmpdir();
            let n = e;
            e || (n = o.basename(process.execPath, ".exe"));
            let r = o.join(t, `${n}-xunlei-node-net-ipc-{FD196984-2591-4588-AA6F-5C8AC1266290}.sock`);
            return "win32" === process.platform && (r = "\\\\.\\pipe\\" + (r = (r = r.replace(/^\//, "")).replace(/\//g, "-"))), r
        }, t.serverContextName = "xunlei-node-net-ipc-server-{46105371-DE78-4442-B59F-FDA1D6D7D430}", t.mainProcessContext = "main-process", t.mainRendererContext = "main-renderer", t.isObjectEmpty = function (e) {
            let t = !0;
            do {
                if (!e) break;
                if (0 === Object.keys(e).length) break;
                t = !1
            } while (0);
            return t
        }
    }, 3: function (e, t) {
        e.exports = require("electron")
    }, 30: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), t.information = ((...e) => {
        }), t.error = ((...e) => {
        }), t.warning = ((...e) => {
        }), t.critical = ((...e) => {
        }), t.verbose = ((...e) => {
        })
    }, 31: function (e, t, n) {
        e.exports = n(9)(45)
    }, 32: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(2), o = n(8).default(i.join(__rootDir, "../bin/ThunderHelper.node"));
        !function (e) {
            function t() {
                let e = !0;
                {
                    0;
                    let t = i.resolve("C:\\ETW_LOG\\log.ini");
                    e = "1" === o.readINI(t, "Log", "enable")
                }
                return e
            }

            e.isDevToolsEnable = function () {
                return t()
            }, e.isLogEnable = t, e.getLogOutput = function () {
                let e = process.env.TL_OUTPUT;
                do {
                    if (e && "" !== e) break;
                    let t = i.resolve("C:\\ETW_LOG\\log.ini");
                    e = o.readINI(t, "Log", "output")
                } while (0);
                return e
            }
        }(t.DevEnvHelperNS || (t.DevEnvHelperNS = {}))
    }, 33: function (e, t) {
        e.exports = require("net")
    }, 34: function (e, t, n) {
        "use strict";
        var i;
        Object.defineProperty(t, "__esModule", {value: !0}), function (e) {
            let t, n;
            !function (e) {
                e.require = "AR_BROWSER_REQUIRE", e.builtIn = "AR_BROWSER_GET_BUILTIN", e.global = "AR_BROWSER_GET_GLOBAL", e.functionCall = "AR_BROWSER_FUNCTION_CALL", e.construct = "AR_BROWSER_CONSTRUCTOR", e.memberConstruct = "AR_BROWSER_MEMBER_CONSTRUCTOR", e.memberCall = "AR_BROWSER_MEMBER_CALL", e.memberSet = "AR_BROWSER_MEMBER_SET", e.memberGet = "AR_BROWSER_MEMBER_GET", e.currentWindow = "AR_BROWSER_CURRENT_WINDOW", e.currentWebContents = "AR_BROWSER_CURRENT_WEB_CONTENTS", e.clientWebContents = "AR_BROWSER_CLIENT_WEB_CONTENTS", e.webContents = "AR_BROWSER_WEB_CONTENTS", e.sync = "AR_BROWSER_SYNC", e.contextRelease = "AR_BROWSER_CONTEXT_RELEASE"
            }(t = e.browser || (e.browser = {})), function (e) {
                e.requireReturn = "AR_RENDERER_REQUIRE_RETURN", e.getBuiltInReturn = "AR_RENDERER_BUILTIN_RETURN", e.getGlobalReturn = "AR_RENDERER_GLOBAL_RETURN", e.functionCallReturn = "AR_RENDERER_FUNCTION_CALL_RETURN", e.memberConstructReturn = "AR_RENDERER_MEMBER_CONSTRUCTOR_RETURN", e.constructReturn = "AR_RENDERER_CONSTRUCTOR_RETURN", e.memberCallReturn = "AR_RENDERER_MEMBER_CALL_RETURN", e.memberSetReturn = "AR_RENDERER_MEMBER_SET_RETURN", e.memberGetReturn = "AR_RENDERER_MEMBER_GET_RETURN", e.currentWindowReturn = "AR_BROWSER_CURRENT_WINDOW_RETURN", e.currentWebContentsReturn = "AR_RENDERER_CURRENT_WEB_CONTENTS_RETURN", e.clientWebContentsReturn = "AR_RENDERER_CLIENT_WEB_CONTENTS_RETURN", e.webContentsReturn = "AR_RENDERER_WEB_CONTENTS_RETURN", e.syncReturn = "AR_RENDERER_SYNC_RETURN", e.callback = "AR_RENDERER_CALLBACK"
            }(n = e.renderer || (e.renderer = {}))
        }(i || (i = {})), t.default = i
    }, 35: function (e, t, n) {
        "use strict";
        var i;
        !function (e) {
            e.getRemoteObjectName = function (e) {
                let t = typeof e;
                if ("function" === t) t = e.name; else if ("object" === t) {
                    let t = e.name;
                    if ("string" != typeof t) {
                        let n = e.constructor;
                        t = n ? n.name : Object.toString.call(e)
                    }
                }
                return t
            }, e.isPromise = function (e) {
                return e && e.then && e.then instanceof Function && e.constructor && e.constructor.reject && e.constructor.reject instanceof Function && e.constructor.resolve && e.constructor.resolve instanceof Function
            }
        }(i || (i = {})), e.exports = i
    }, 36: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(2), o = n(15);
        let r = ["apk", "pic", "video", "mp4", "rmvb", "wmv", "mpg", "mkv", "mov", "rm", "avi", "flv", "doc", "link", "ppt", "word", "magnetic", "music", "pdf", "rar", "xls", "txt", "unknow", "gif", "ipa", "ipsw", "dll", "chm", "text", "install", "iso"];
        const s = ".xv;.xlmv;.3gp;.3gp2;.3gpp;.3gpp2;.3mm;.3p2;.60d;.787;.aaf;.aep;.aepx;.aet;.aetx;.ajp;.ale;.amv;.amx;.arf;\n  .asf;.asx;.avb;.avd;.avi;.avp;.avs;.avs;.axm;.bdm;.bdmv;.bik;.bix;.bmk;.bnp;.box;.bs4;.bsf;.byu;.camproj;.camrec;.clpi;.cmmp;\n  .cmmtpl;.cmproj;.cmrec;.cpi;.cst;.cvc;.d2v;.d3v;.dat;.dav;.dce;.dck;.ddat;.dif;.dir;.divx;.dlx; .dmb;.dmsm;.dmsm3d;.dmss;.dnc;.dpg;\n  .dream;.dsy;.dv;.dv-avi;.dv4;.dvdmedia;.dvr-ms;.dvx;.dxr;.dzm;.dzp;.dzt;.edl;.evo;.eye;.f4p;.f4v;.fbr;.fbr;.fbz;.fcp;.flc;.flh;\n  .fli;.flv;.flx;.gfp;.gl;.grasp;.gts;.gvi;.gvp;.hdmov;.hkm;.ifo;.imovieproj;.imovieproject;.iva;.ivf;.ivr;.ivs;.izz;.izzy;.jts;.jtv;\n  .k3g;.lrec;.lsf;.lsx;.m15;.m1pg;.m1v;.m21;.m21;.m2a;.m2p;.m2t;.m2ts;.m2v;.m4e;.m4u;.m4v;.m75;.meta;.mgv;.mj2;.mjp;.mjpg;.mkv;.mmv;\n  .mnv;.mod;.modd;.moff;.moi;.moov;.mov;.movie;.mp21;.mp2v;.mp4;.mp4v;.mpe;.mpeg;.mpeg4;.mpf;.mpg;.mpg2;.mpgindex;.mpl;.mpls;\n  .mpsub;.mpv;.mpv2;.mqv;.msdvd;.msh;.mswmm;.mts;.mtv;.mvb;.mvc;.mvd;.mve;.mvp;.mvy;.mxf;.mys;.ncor;.nsv;.nuv;.nvc;.ogm;.ogv;.ogx;.osp;\n  .par;.pds;.pgi;.piv;.pjs;.pmf;.pns;.ppj;.prel;.pro;.prproj;.prtl;.psh;.pssd;.pva;.pvr;.pxv;.qt;.qtch;.qtl;.qtm;.qtz;\n  .r3d;.rcproject;.rdb;.rec;.rm;.rmd;.rmp;.rms;.rmvb;.roq;.rp;.rts;.rts;.rum;.rv;.sbk;.sbt;.scc;.scm;.scn;.screenflow;.sec;.seq;.sfd;\n  .sfvidcap;.smk;.sml;.smv;.spl;.ssm;.stl;.str;.stx;.svi;.swf;.swi;.swt;.tda3mt;.tivo;.tix;.tod;.tp;.tp0;.tpd;\n  .tpr;.trp;.ts;.tts;.tvs;.vc1;.vcpf;.vcr;.vcv;.vdo;.vdr;.veg;.vem;.vf;.vfw;.vfz;.vgz;.vid;.viewlet;.viv;.vivo;.vlab;.vob;.vp3;.vp6;.vp7;\n  .vro;.vs4;.vse;.vsp;.w32;.wcp;.webm;.wlmp;.wm;.wmd;.wmmp;.wmv;.wmx;.wp3;.wpl;.wtv;.wvx;.xfl;.xvid;.yuv;.zm1;.zm2;.zm3;.zmv;",
            a = ".exe;.com;.bat;.msi;.apk;.ipa;.iso;.mds;.bin;.img;.ipsw;",
            l = ".txt;.html;.htm;.shtml;.xhtml;.chm;.hlp;.inf;.rtf;.tex;.ltx;.doc;.docx;.wps;.ppt;.pptx;.odf;.pdf;.xls;.xlsx;.docm;.\n  dot;.dotm;.dotx;.email;.rp;.pps;.et;.ett;.xlt;.dbf;.prn;.csv;.mht;.mhtml;.xml;.wpt;.dps;.dpt;.pot;.ppsx;.epub;.mobi;.lit;.wdl;.ceb;.abm;\n  .pdg;.umb;.ibooks;",
            d = ".aiff;.cue;.m3u;.au;.cdda;.raw;.wav;.flac;.tak;.mp3;.aac;.wma;.m4a;.mid;.mka;.mp2;.mpa;.mpc;.ape;.ofr;\n  .ogg;.ra;.wv;.tta;.ac3;.dts;.nsf;.mod;.s3m;.xm;.it;.vst;",
            u = ".psd;.tga;.gif;.jpeg;.jpg;.jp2;.bmp;.ico;.pcx;.png;.pbm;.pgm;.ppm;.pnm;.pgf;.arw;.cr2;.crw;.dcr;.dng;.erf;.kdc;.mef;\n  .mos;.mrw;.nef;.nrw;.orf;.pef;.ptx;.r3d;.raf;.raw;.rw2;.srf;.srw;.x3f;.ras;.tiff;.tif;.wbmp;.ilbm;.lbm;.iff;.ico;",
            c = ".zip;.zipx;.rar;.7z;.isz;.cab;.arj;.ace;.alz;.uue;.tar;.gz; .gzip;.tgz;.tpz;.bzip2;.bz2;.bz;.tbz;.tbz2;.xz;.txz;\n  .lzh;.lha;.zt;.az; .xpi;.jar;.wim;.swm;.rpm;.xar;.deb;.dmg;.hfs;.cpio;.lzma;.lzma86;.split;",
            h = ".torrent;", p = ".idx;.smi;.sub;.psb;.ssa;.ass;.usf;.ssf;.srt;.sup",
            f = ".3gp;.asf;.avi;.divx;.f4v;.flv;.mkv;.mov;.movie;.mp4;.mpeg;.mpeg4;.mpg;.mpg2;.rm;.rmvb;.rp;.swf;.tp;.tp0;.ts;.wmv",
            m = ".exe;.com;.bat;.msi", g = ".wav;.flac;.mp3;.aac;.wma;.m4a;.mid;.ape;.ogg;.ra;.mod",
            S = ".psd;.tga;.gif;.jpeg;.jpg;.jp2;.bmp;.ico;.pcx;.pdf;.png;.pbm;.pgm;.ppm;.pnm;.pgf;.arw;.cr2;.crw;.dcr;.dng;.erf;.kdc;\n  .mef;.mos;.mrw;.nef;.nrw;.orf;.pef;.ptx;.r3d;.raf;.raw;.rw2;.srf;.srw;.x3f;.ras;.tiff;.tif;.wbmp;.ilbm;.lbm;.iff;.ico",
            v = ".txt;.html;.htm;.shtml;.xhtml;.chm;.hlp;.inf;.rtf;.tex;.ltx;.doc;.docx;.wps;.ppt;.pptx;.odf;.pdf;.xls;.xlsx;.docm;.dot;.dotm;.dotx;.email;.rp;.pps",
            T = ".rar;.tar;.zip;.gzip;.cab;.uue;.arj;.bz2;.lzh;.jar;.ace;.iso;.7-zip;.7z",
            y = ".asf;.mpg;.rmvb;.rm;.wmv;.avi;.mp4;.mpeg;.mkv;.mov;.ts;.flv;.3gp;.m2ts;",
            w = ".exe;.com;.bat;.scr;.lnk;.pif;.wsh;", _ = ".iso;";
        !function (e) {
            let t;

            function n(e) {
                let n = t.Unkown, o = i.extname(e);
                return null !== o && void 0 !== o && o.length >= 2 && (o = o.toLowerCase()), void 0 === o || "" === o || o.length < 2 ? n = t.Unkown : f.indexOf(o) > -1 ? n = t.Video : m.indexOf(o) > -1 ? n = t.Software : v.indexOf(o) > -1 ? n = t.Doc : g.indexOf(o) > -1 ? n = t.Music : S.indexOf(o) > -1 ? n = t.Pic : T.indexOf(o) > -1 && (n = t.Zip), o.length > 1 && ".z" === o.slice(0, 2) && /[0-9]+/.test(o.substring(2)) && (n = t.Zip), n
            }

            e.getTaskIcon = function (e, t, n) {
                n = n || "xly-type-";
                let f = "";
                do {
                    if (t === o.DownloadKernel.TaskType.Bt) {
                        f = "bt-file";
                        break
                    }
                    if (t === o.DownloadKernel.TaskType.Group) {
                        f = "group";
                        break
                    }
                    f = "unknown";
                    let n = i.extname(e);
                    if ("" === n || n.length < 2) break;
                    let m = (n = n.toLowerCase()).substring(1);
                    if (r.indexOf(m) > -1) {
                        f = "doc" === n ? "word" : m;
                        break
                    }
                    if (n += ";", s.indexOf(n) > -1) {
                        f = "video";
                        break
                    }
                    if (a.indexOf(n) > -1) {
                        f = "install", [".mds", ".bin", ".img"].indexOf(n) > -1 && (f = "iso");
                        break
                    }
                    if (l.indexOf(n) > -1) {
                        if (f = "doc", [".htm", ".html", ".mht"].indexOf(n) > -1) {
                            f = "link";
                            break
                        }
                        if ("docx" === n) {
                            f = "word";
                            break
                        }
                        if ("xlsx" === n) {
                            f = "xls";
                            break
                        }
                        if ("pptx" === n) {
                            f = "ppt";
                            break
                        }
                        break
                    }
                    if (d.indexOf(n) > -1) {
                        f = "music";
                        break
                    }
                    if (u.indexOf(n) > -1) {
                        f = "pic";
                        break
                    }
                    if (c.indexOf(n) > -1) {
                        f = "rar";
                        break
                    }
                    if (h.indexOf(n) > -1) {
                        f = "bt-link";
                        break
                    }
                    if (p.indexOf(n) > -1) {
                        f = "text";
                        break
                    }
                } while (0);
                return `${n}${f}`
            }, function (e) {
                e[e.Unkown = 0] = "Unkown", e[e.Video = 1] = "Video", e[e.Software = 2] = "Software", e[e.Doc = 3] = "Doc", e[e.Music = 4] = "Music", e[e.Pic = 5] = "Pic", e[e.Zip = 6] = "Zip", e[e.Bt = 7] = "Bt"
            }(t = e.FileExtType || (e.FileExtType = {})), e.getTaskFileType = function (e, n) {
                let o = t.Unkown;
                return void 0 === n && void 0 !== e && (n = i.extname(e)), null !== n && void 0 !== n && n.length >= 2 && (n = n.toLowerCase(), n += ";"), void 0 === n || "" === n || n.length < 3 ? o = t.Unkown : s.indexOf(n) > -1 ? o = t.Video : a.indexOf(n) > -1 ? o = t.Software : l.indexOf(n) > -1 ? o = t.Doc : d.indexOf(n) > -1 ? o = t.Music : u.indexOf(n) > -1 ? o = t.Pic : c.indexOf(n) > -1 ? o = t.Zip : h.indexOf(n) > -1 && (o = t.Bt), n.length > 1 && ".z" === n.slice(0, 2) && /[0-9]+/.test(n.substring(2)) && (o = t.Zip), o
            }, e.isVideoFileExt = function (e) {
                let t = !1;
                do {
                    if (null === e || void 0 === e || "" === e) break;
                    let n = i.extname(e);
                    if (!(null !== n && void 0 !== n && n.length >= 2)) break;
                    n = n.toLowerCase(), n += ";", y.indexOf(n) > -1 && (t = !0)
                } while (0);
                return t
            }, e.isSubtitleExt = function (e) {
                let t = !1;
                do {
                    if (null === e || void 0 === e || "" === e) break;
                    let n = i.extname(e);
                    if (!(null !== n && void 0 !== n && n.length >= 2)) break;
                    n = n.toLowerCase(), n += ";", p.indexOf(n) > -1 && (t = !0)
                } while (0);
                return t
            }, e.isExecutableExt = function (e) {
                let t = !1;
                do {
                    if (null === e || void 0 === e || "" === e) break;
                    let n = i.extname(e);
                    if (!(null !== n && void 0 !== n && n.length >= 2)) break;
                    n = n.toLowerCase(), n += ";", w.indexOf(n) > -1 && (t = !0)
                } while (0);
                return t
            }, e.isIsoExt = function (e) {
                let t = !1;
                do {
                    if (null === e || void 0 === e || "" === e) break;
                    let n = i.extname(e);
                    if (!(null !== n && void 0 !== n && n.length >= 2)) break;
                    n = n.toLowerCase(), n += ";", _.indexOf(n) > -1 && (t = !0)
                } while (0);
                return t
            }, e.getGroupFileType = n, e.getDefaultGroupPrefix = function (e) {
                let i = "任务组";
                do {
                    if (void 0 === e || null === e || 0 === e.length) break;
                    let o = [];
                    for (let e = 0; e < 7; e++) o[e] = 0;
                    for (let t of e) {
                        let e = n(t);
                        o[e] = o[e] + 1
                    }
                    let r = t.Unkown;
                    for (let e = 1; e < o.length; e++) o[e] > o[r] && (r = e);
                    r === t.Video ? i = "视频任务组" : r === t.Software ? i = "程序任务组" : r === t.Music ? i = "音乐任务组" : r === t.Pic ? i = "图片任务组" : r === t.Doc ? i = "文档任务组" : r === t.Zip && (i = "压缩包任务组")
                } while (0);
                return i
            }, e.compareVersion = function (e, t) {
                let n = -2;
                do {
                    if (null === e || void 0 === e || "" === e || null === t || void 0 === t || "" === t) break;
                    let i = 0, o = 0, r = 0, s = 0, a = 0, l = 0, d = 0, u = 0, c = e.split(/\./);
                    if (null === c || void 0 === c || c.length < 3) break;
                    if (i = Number(c[0]), o = Number(c[1]), r = Number(c[2]), null !== c[3] && void 0 !== c[3] && "" !== c[3] && (s = Number(c[3])), null === (c = t.split(/\./)) || void 0 === c || c.length < 3) break;
                    if (a = Number(c[0]), l = Number(c[1]), d = Number(c[2]), null !== c[3] && void 0 !== c[3] && "" !== c[3] && (u = Number(c[3])), a > i) {
                        n = 1;
                        break
                    }
                    if (a < i) {
                        n = -1;
                        break
                    }
                    if (l > o) {
                        n = 1;
                        break
                    }
                    if (l < o) {
                        n = -1;
                        break
                    }
                    if (d > r) {
                        n = 1;
                        break
                    }
                    if (d < r) {
                        n = -1;
                        break
                    }
                    if (0 !== s) {
                        if (u > s) {
                            n = 1;
                            break
                        }
                        if (u < s) {
                            n = -1;
                            break
                        }
                    }
                    n = 0
                } while (0);
                return n
            }
        }(t.TaskUtilHelper || (t.TaskUtilHelper = {}))
    }, 37: function (e, t) {
        e.exports = require("url")
    }, 38: function (e, t) {
        e.exports = require("crypto")
    }, 39: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(3), o = n(6), r = n(22), s = n(23), a = n(28);
        !function (e) {
            class t extends a.CommonIPCBase.Communicator {
                constructor() {
                    super()
                }

                initialize(e) {
                    this.currInfo = {id: void 0, context: e, isMainCommunicator: !1}
                }

                connect() {
                    this.isConnected ? r.warning("has been connected") : (this.sendConnectMsgToMain(), this.isConnected = !0, this.startListenIPCMessage(!1))
                }

                disconnect() {
                    this.isConnected ? (this.isConnected = !1, this.sendDisconnectMsgToMain()) : r.warning("hasnot been connected yet")
                }

                sendMessageToMain(e) {
                    this.sendIPCMsgToMain(e)
                }

                sendMessageToMainSync(e) {
                    return this.sendIPCMsgToMain(e, !0)
                }

                sendMessageToRenderer(e, t) {
                    this.sendIPCMsgToRenderer(e, t)
                }

                handleRendererConnectMsg(e, t) {
                    do {
                        if (o.isNullOrUndefined(t)) {
                            r.error("msgInfo is null");
                            break
                        }
                        let e = t.msg.args[0];
                        if (o.isNullOrUndefined(e)) {
                            r.error("connectRendererInfo is null");
                            break
                        }
                        r.information(`Renderer: new renderer will connect, id = ${e.id}, context = ${e.context}`), this.rendererInfos.push(e)
                    } while (0)
                }

                handleRendererDisconnectMsg(e, t) {
                    do {
                        if (o.isNullOrUndefined(t)) {
                            r.error("msgInfo is null");
                            break
                        }
                        let e = t.msg.args[0];
                        if (o.isNullOrUndefined(e)) {
                            r.error("disconnectRendererInfo is null");
                            break
                        }
                        r.information(`renderer will disconnect, id = ${e.id}, context = ${e.context}`);
                        for (let t = 0; t < this.rendererInfos.length; ++t) if (this.rendererInfos[t] === e) {
                            this.rendererInfos.splice(t, 1);
                            break
                        }
                    } while (0)
                }

                sendConnectMsgToMain() {
                    let e = this.sendMessageToMainSync({name: s.CommonIPCMessage.msgIPCRendererConnect, args: []});
                    this.currInfo.id = e[0], this.rendererInfos = e[1]
                }

                sendDisconnectMsgToMain() {
                    this.sendMessageToMain({name: s.CommonIPCMessage.msgIPCRendererDisconnect, args: []})
                }

                sendIPCMsgToMain(e, t = !1) {
                    let n = void 0;
                    do {
                        if (o.isNullOrUndefined(e)) {
                            r.error("msg is null");
                            break
                        }
                        n = (t ? i.ipcRenderer.sendSync : i.ipcRenderer.send)(s.CommonIPCMessage.msgIPCSendToMain, {
                            msg: e,
                            senderInfo: this.currInfo
                        })
                    } while (0);
                    return n
                }

                sendIPCMsgToRenderer(e, t) {
                    do {
                        if (o.isNullOrUndefined(e)) {
                            r.error("rendererId is null");
                            break
                        }
                        if (o.isNullOrUndefined(t)) {
                            r.error("msg is null");
                            break
                        }
                        let n = [e].concat(t.args);
                        t.args = n, i.ipcRenderer.send(s.CommonIPCMessage.msgIPCSendToRenderer, {
                            msg: t,
                            senderInfo: this.currInfo
                        })
                    } while (0)
                }
            }

            e.RendererCommunicator = t, e.rendererCommunicator = new t
        }(t.CommonIPCRenderer || (t.CommonIPCRenderer = {}))
    }, 4: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(12), r = n(50), s = n(29), a = n(30);

        function l(e) {
            a.information("on object freeer"), global.__xdasIPCClienInstance.notifyFreer(e.remoteId, e.callbackId)
        }

        let d = void 0;
        global.__xdasIPCClienInstance || (global.__xdasIPCClienInstance = new class extends o.EventEmitter {
            constructor() {
                super(), this.rid = 0, this.apis = {}, this.singletonMap = {}, this.connectedMap = {}, this.retCallbackMap = {}, this.eventCallbackMaps = {}, this.contextCallbackMap = {}
            }

            start(e, t, n, i) {
                do {
                    if (t || (t = s.getDefaultPrex()), this.singletonMap.hasOwnProperty(t.toLowerCase())) {
                        if (i) if (this.connectedMap.hasOwnProperty(t.toLowerCase())) i("connect"); else {
                            let e = this.singletonMap[t.toLowerCase()];
                            e.on("error", e => {
                                i("error", e)
                            }), e.on("connect", () => {
                                i("connect")
                            }), e.on("end", () => {
                                let t = e.isInprocess();
                                i("end", e.getContext(), n, t)
                            })
                        }
                        break
                    }
                    if (global.__xdasPluginConfig && global.__xdasPluginConfig.name ? e = {
                        name: global.__xdasPluginConfig.name,
                        version: global.__xdasPluginConfig.version
                    } : void 0 !== e && null !== e || (e = this.parseContext()), !e) {
                        if (!this.client || !this.client.getContext()) throw new Error("no suitable context for client, please specify context with start function");
                        e = {name: this.client.getContext().name, version: this.client.getContext().version}
                    }
                    if (e.name === s.serverContextName) throw new Error("client context must difference from server");
                    if (n && !this.client) throw new Error("connect to other product must start self firstly");
                    global.__xdasPluginConfig || (global.__xdasPluginConfig = e);
                    let o = new r.Client({context: e, socketPrex: t});
                    this.singletonMap[t.toLowerCase()] = o, n || (this.client = o), o.on("message", e => {
                        if ("fire_event" === e.action) this.fireServerEvent(o, e.name, [e.__context].concat(e.args)); else if ("client_context_freer" === e.action) do {
                            let t = e.rid;
                            if (t) {
                                if (!this.contextCallbackMap[t]) break;
                                delete this.contextCallbackMap[t]
                            }
                        } while (0); else if ("call_client_by_id" === e.action) this.callFunctionById(o, e.rid, e.s_rid, e.args); else if ("call_client_api" === e.action) this.callRegisterFunction(o, e); else if ("check_client_function" === e.action) {
                            let t = e.method, n = !0;
                            t && this.apis && this.apis[t] || (n = !1), this.sendAdapter(o, {
                                s_rid: e.s_rid,
                                action: "check_client_function_callback",
                                success: !0,
                                data: n
                            })
                        } else if (void 0 !== e.success && null !== e.success) {
                            let t = e;
                            this.client === o && this.emit("stat_call_function_back", o.getContext(), e);
                            const n = this.retCallbackMap[t.rid].callback;
                            if (n) if (t.success) do {
                                if ("remote_client_callback" === e.action && e.__context && e.__context.name && e.__context.productId) {
                                    let i = `${e.__context.productId}-${e.__context.name}`.toLowerCase();
                                    n(null, this.decodeParameter(t.data, i));
                                    break
                                }
                                n(null, t.data)
                            } while (0); else n(t.error, t.data);
                            delete this.retCallbackMap[t.rid]
                        }
                    }), o.on("error", e => {
                        i && i("error", e), this.emit("socket-error", e, o.getContext(), n, o.isInprocess()), delete this.singletonMap[t.toLowerCase()], delete this.connectedMap[t.toLowerCase()], n || (this.client = null)
                    }), o.isInprocess() ? (this.connectedMap[t.toLowerCase()] = o, i && i("connect"), this.emit("connect", o.getContext(), n, !0)) : o.on("connect", () => {
                        this.connectedMap[t.toLowerCase()] = o, i && i("connect"), this.emit("connect", o.getContext(), n, !1)
                    }), o.on("end", () => {
                        let e = o.isInprocess();
                        a.information("server is ended, and this client emit end", t, n, e), i && i("end", o.getContext(), n, e), this.emit("end", o.getContext(), n, e), delete this.singletonMap[t.toLowerCase()], delete this.connectedMap[t.toLowerCase()], n || (this.client = null)
                    }), this.registry(o)
                } while (0)
            }

            registerFunctions(e) {
                do {
                    if (!e) break;
                    let t = void 0;
                    for (let n in e) if (this.apis.hasOwnProperty(n)) {
                        t = n;
                        break
                    }
                    if (t) throw new Error(`try to coverd function ${t}`);
                    this.apis = Object.assign({}, this.apis, e)
                } while (0)
            }

            checkServerFunction(e) {
                return i(this, void 0, void 0, function* () {
                    return this.internalCheckServerFunction(this.client, e)
                })
            }

            callServerFunction(e, ...t) {
                return i(this, void 0, void 0, function* () {
                    let n = null, i = yield this.callServerFunctionEx(e, ...t);
                    return i && (n = i[0]), n
                })
            }

            callServerFunctionEx(e, ...t) {
                return this.internalCallServerFunctionEx(this.client, e, ...t)
            }

            isRemoteClientExist(e) {
                return this.internalIsRemoteClientExist(this.client, e)
            }

            checkRemoteFunction(e, t) {
                return this.internalCheckRemoteFunction(this.client, e, t)
            }

            callRemoteClientFunction(e, t, ...n) {
                return this.internalCallRemoteClientFunction(this.client, e, t, ...n)
            }

            notifyFreer(e, t) {
                this.sendAdapter(this.client, {action: "client_context_freer", dst: e, rid: t})
            }

            callRemoteContextById(e, t, ...n) {
                this.sendAdapter(this.client, {dst: e, action: "call_remote_context_by_id", rid: t, args: n})
            }

            attachServerEvent(e, t) {
                return this.internalAttachServerEvent(this.client, e, t)
            }

            detachServerEvent(e, t) {
                this.internalDetachServerEvent(this.client, e, t)
            }

            broadcastEvent(e, ...t) {
                this.sendAdapter(this.client, {action: "broadcast", name: e, args: t})
            }

            crossCheckServerFunction(e, t) {
                return i(this, void 0, void 0, function* () {
                    {
                        if (!e) throw new Error("An argument for 'productId' was not provided");
                        let n = this.singletonMap[e.toLowerCase()];
                        if (!n) throw new Error("Please call the 'start' interface first");
                        return this.internalCheckServerFunction(n, t)
                    }
                })
            }

            crossCallServerFunction(e, t, ...n) {
                return i(this, void 0, void 0, function* () {
                    let i = null, o = yield this.crossCallServerFunctionEx(e, t, ...n);
                    return o && (i = o[0]), i
                })
            }

            crossCallServerFunctionEx(e, t, ...n) {
                {
                    if (!e) throw new Error("An argument for 'productId' was not provided");
                    let i = this.singletonMap[e.toLowerCase()];
                    if (!i) throw new Error("Please call the 'start' interface first");
                    if (!t) throw new Error("An argument for 'funcName' was not provided");
                    return this.internalCallServerFunctionEx(i, t, ...n)
                }
            }

            crossIsRemoteClientExist(e, t) {
                return i(this, void 0, void 0, function* () {
                    {
                        if (!e) throw new Error("An argument for 'productId' was not provided");
                        let n = this.singletonMap[e.toLowerCase()];
                        if (!n) throw new Error("Please call the 'start' interface first");
                        return this.internalIsRemoteClientExist(n, t)
                    }
                })
            }

            crossCheckRemoteFunction(e, t, n) {
                return i(this, void 0, void 0, function* () {
                    {
                        if (!e) throw new Error("An argument for 'productId' was not provided");
                        let i = this.singletonMap[e.toLowerCase()];
                        if (!i) throw new Error("Please call the 'start' interface first");
                        if (!t) throw new Error("An argument for 'remoteId' was not provided");
                        if (!n) throw new Error("An argument for 'funcName' was not provided");
                        return this.internalCheckRemoteFunction(i, t, n)
                    }
                })
            }

            crossCallRemoteClientFunction(e, t, n, ...i) {
                {
                    if (!e) throw new Error("An argument for 'productId' was not provided");
                    let o = this.singletonMap[e.toLowerCase()];
                    if (!o) throw new Error("Please call the 'start' interface first");
                    if (!t) throw new Error("An argument for 'remoteId' was not provided");
                    if (!n) throw new Error("An argument for 'funcName' was not provided");
                    return this.internalCallRemoteClientFunction(o, t, n, ...i)
                }
            }

            crossAttachServerEvent(e, t, n) {
                let i = void 0;
                {
                    if (!e) throw new Error("An argument for 'productId' was not provided");
                    let o = this.singletonMap[e.toLowerCase()];
                    if (!o) throw new Error("Please call the 'start' interface first");
                    if (!t) throw new Error("An argument for 'eventName' was not provided");
                    i = this.internalAttachServerEvent(o, t, n)
                }
                return i
            }

            crossDetachServerEvent(e, t, n) {
                {
                    if (!e) throw new Error("An argument for 'productId' was not provided");
                    let i = this.singletonMap[e.toLowerCase()];
                    if (!i) throw new Error("Please call the 'start' interface first");
                    if (!t) throw new Error("An argument for 'eventName' was not provided");
                    this.internalDetachServerEvent(i, t, n)
                }
            }

            crossBroadcastEvent(e, t, ...n) {
                {
                    if (!e) throw new Error("An argument for 'productId' was not provided");
                    let i = this.singletonMap[e.toLowerCase()];
                    if (!i) throw new Error("Please call the 'start' interface first");
                    if (!t) throw new Error("An argument for 'eventName' was not provided");
                    this.sendAdapter(i, {
                        action: "broadcast",
                        name: t,
                        args: n,
                        __context: Object.assign({}, this.client.getContext())
                    })
                }
            }

            registry(e) {
                let t = this.getFullContextName(this.client);
                return new Promise((n, i) => {
                    do {
                        if (!t) {
                            n(!1);
                            break
                        }
                        let i = this.generateId();
                        const o = {alias: t, action: "register", rid: i};
                        let r = (e, i) => {
                            e ? (a.error("register error", e.message), n(i)) : n(t)
                        };
                        this.retCallbackMap[i] = Object.assign({callback: r}, o), this.sendAdapter(e, o)
                    } while (0)
                })
            }

            getNow() {
                return Date.now()
            }

            sendAdapter(e, t) {
                do {
                    if (!t) break;
                    let n = this.getNow();
                    if (t.timestamp ? t.timestamp = [...t.timestamp].concat(n) : t.timestamp = [].concat(n), !t.__context) {
                        let n = e.getContext();
                        n && (t = Object.assign({__context: n}, t))
                    }
                    e.isInprocess() ? (a.information("send to server in process"), global.__xdasIPCServer.emit("message", t, e)) : e.send(t)
                } while (0)
            }

            parseContext() {
                let e = void 0;
                do {
                    let t = "";
                    for (let e = 0; e < process.argv.length; e++) {
                        let n = process.argv[e];
                        if (0 === n.indexOf("--xdas-plugin-name=", 0)) {
                            t = n.substr("--xdas-plugin-name=".length);
                            break
                        }
                    }
                    if (!t) break;
                    e = {name: t}
                } while (0);
                return e
            }

            generateId() {
                return this.rid++
            }

            getFullContextName(e, t) {
                let n = "";
                do {
                    if (t === s.serverContextName) {
                        n = t;
                        break
                    }
                    if (void 0 === t) {
                        n = `${e.getContext().productId}-${e.getContext().name}`.toLowerCase();
                        break
                    }
                    n = `${e.getContext().productId}-${t}`.toLowerCase()
                } while (0);
                return n
            }

            internalCheckServerFunction(e, t) {
                return new Promise((n, i) => {
                    do {
                        if (!e) {
                            n(!1);
                            break
                        }
                        if (!t) {
                            n(!1);
                            break
                        }
                        let i = this.generateId();
                        const o = {action: "check_server_function_exist", method: t, rid: i};
                        let r = (e, t) => {
                            n(!e && t)
                        };
                        this.retCallbackMap[i] = Object.assign({callback: r}, o), this.sendAdapter(e, o)
                    } while (0)
                })
            }

            internalCallServerFunctionEx(e, t, ...n) {
                return new Promise((i, o) => {
                    do {
                        if (!e) {
                            i([null, "client doesn't ready"]);
                            break
                        }
                        if (!t) {
                            i([null, "funcName is not specifed"]);
                            break
                        }
                        e === this.client && this.emit("stat_call_function", this.client.getContext(), t);
                        let o = this.generateId();
                        if (n) for (let e = 0; e < n.length; e++) n[e] = this.convertFunction2IdEx(n[e]);
                        const r = {rid: o, method: t, args: n};
                        let s = (t, n) => {
                            t ? (a.error("callServerFunction error", t, e.getContext()), i([null, t])) : i([n, void 0])
                        };
                        this.retCallbackMap[o] = Object.assign({callback: s}, r), this.sendAdapter(e, r)
                    } while (0)
                })
            }

            internalIsRemoteClientExist(e, t) {
                return new Promise((n, i) => {
                    do {
                        if (!t) {
                            n([!1, "remote client alias is not specifed"]);
                            break
                        }
                        if (e === this.client && t.toLowerCase() === e.getContext().name.toLowerCase()) {
                            n([!0, "self is exist"]);
                            break
                        }
                        let i = this.generateId();
                        const o = {dst: this.getFullContextName(e, t), action: "check_client_exist", rid: i};
                        let r = (e, t) => {
                            n(e ? [!1, e] : [t, "success"])
                        };
                        this.retCallbackMap[i] = Object.assign({callback: r}, o), this.sendAdapter(e, o)
                    } while (0)
                })
            }

            internalCheckRemoteFunction(e, t, n) {
                return new Promise((i, o) => {
                    do {
                        if (!e) {
                            i(!1);
                            break
                        }
                        if (!t) {
                            i(!1);
                            break
                        }
                        if (!n) {
                            i(!1);
                            break
                        }
                        if (e === this.client && t.toLowerCase() === e.getContext().name.toLowerCase()) {
                            i(!(!this.apis || !this.apis[n]));
                            break
                        }
                        let o = this.generateId();
                        const r = {
                            action: "check_client_function_exist",
                            method: n,
                            rid: o,
                            src: this.getFullContextName(this.client),
                            dst: this.getFullContextName(e, t)
                        };
                        let s = (e, t) => {
                            i(!e && t)
                        };
                        this.retCallbackMap[o] = Object.assign({callback: s}, r), this.sendAdapter(e, r)
                    } while (0)
                })
            }

            internalCallRemoteClientFunction(e, t, n, ...i) {
                return new Promise((o, r) => {
                    do {
                        if (!e) {
                            o([null, "client doesn't ready"]);
                            break
                        }
                        if (!t) {
                            o([null, "remote client alias is not specifed"]);
                            break
                        }
                        if (!n) {
                            o([null, "funcName is not specifed"]);
                            break
                        }
                        let r = (e, t) => {
                            e ? (a.information("callRemoteClientFunction", e.message), o([null, e])) : o([t, void 0])
                        };
                        if (i) for (let e = 0; e < i.length; e++) i[e] = this.convertFunction2IdEx(i[e]);
                        let s = this.generateId();
                        const l = {
                            src: this.getFullContextName(this.client),
                            dst: this.getFullContextName(e, t),
                            action: "call_remote_client_api",
                            method: n,
                            args: i,
                            rid: s
                        };
                        this.retCallbackMap[s] = Object.assign({callback: r}, l), this.sendAdapter(e, l)
                    } while (0)
                })
            }

            internalAttachServerEvent(e, t, n) {
                let i = e.getContext().productId.toLowerCase();
                this.eventCallbackMaps.hasOwnProperty(i) || (this.eventCallbackMaps[i] = {}), this.eventCallbackMaps[i].hasOwnProperty(t) || (this.eventCallbackMaps[i][t] = {}), s.isObjectEmpty(this.eventCallbackMaps[i][t]) && this.sendAdapter(e, {
                    action: "attach_event",
                    name: t
                });
                let o = this.generateId();
                return this.eventCallbackMaps[i][t][o] = n, o
            }

            internalDetachServerEvent(e, t, n) {
                let i = e.getContext().productId.toLowerCase();
                do {
                    if (!this.eventCallbackMaps.hasOwnProperty(i)) break;
                    if (!this.eventCallbackMaps[i].hasOwnProperty(t)) break;
                    delete this.eventCallbackMaps[i][t][n], s.isObjectEmpty(this.eventCallbackMaps[i][t]) && this.sendAdapter(e, {
                        action: "detach_event",
                        name: t
                    })
                } while (0)
            }

            fireServerEvent(e, t, ...n) {
                let i = e.getContext().productId.toLowerCase();
                do {
                    if (!this.eventCallbackMaps.hasOwnProperty(i)) break;
                    if (!this.eventCallbackMaps[i].hasOwnProperty(t)) break;
                    let e = this.eventCallbackMaps[i][t];
                    for (let t in e) {
                        let i = e[t];
                        i && i.apply(null, ...n)
                    }
                } while (0)
            }

            callFunctionById(e, t, n, ...i) {
                let o = void 0, r = !1;
                do {
                    const s = this.contextCallbackMap[t];
                    if (!s) {
                        a.error("the context function has been freeer", t), o = {
                            s_rid: n,
                            action: "call_client_by_id_callback",
                            success: !1,
                            error: "the context function has been freeer"
                        };
                        break
                    }
                    let l = void 0, d = void 0;
                    try {
                        l = s.apply(null, ...i)
                    } catch (e) {
                        d = e.message;
                        break
                    }
                    if (void 0 === n || null === n) break;
                    if (o = {s_rid: n, action: "call_client_by_id_callback", success: !1}, void 0 !== d) {
                        o.error = d;
                        break
                    }
                    if (l && l.then) {
                        l.then(t => {
                            o.data = this.convertFunction2IdEx(t), o.success = !0, this.sendAdapter(e, o)
                        }).catch(t => {
                            o.error = t instanceof Error ? t.message : t, this.sendAdapter(e, o)
                        }), r = !0;
                        break
                    }
                    o.success = !0, o.data = this.convertFunction2IdEx(l)
                } while (0);
                !r && o && this.sendAdapter(e, o)
            }

            convertFunction2IdEx(e) {
                let t = e;
                if ("function" == typeof e) {
                    let n = this.generateId();
                    this.contextCallbackMap[n] = e, t = {"__nodeipc_callback_id__{A9C9D760-14E8-42CB-A3CB-9C0A0DDFD732}": n}
                } else if (e && "object" == typeof e) {
                    t = Array.isArray(e) ? [...e] : Object.assign({}, e);
                    for (let e in t) {
                        let n = t[e];
                        if ("function" == typeof n) {
                            let i = this.generateId();
                            this.contextCallbackMap[i] = n, t[e] = {"__nodeipc_callback_id__{A9C9D760-14E8-42CB-A3CB-9C0A0DDFD732}": i}
                        } else n && "object" == typeof n && (t[e] = this.convertFunction2IdEx(n))
                    }
                }
                return t
            }

            decodeParameter(e, t) {
                let n = e;
                do {
                    if (!e) break;
                    if (!t) break;
                    if ("object" != typeof e) break;
                    let i = e["__nodeipc_callback_id__{A9C9D760-14E8-42CB-A3CB-9C0A0DDFD732}"];
                    if (i) {
                        n = ((...e) => {
                            this.callRemoteContextById(t, i, ...e)
                        }), global.__xdasObjectLiftMonitor && global.__xdasObjectLiftMonitor.setObjectFreer(n, {
                            remoteId: t,
                            callbackId: i
                        }, l);
                        break
                    }
                    for (let n in e) {
                        let i = e[n];
                        e[n] = this.decodeParameter(i, t)
                    }
                } while (0);
                return n
            }

            callRegisterFunction(e, t) {
                let n = void 0, i = !1;
                do {
                    if (!t) break;
                    let o = t.method;
                    if (!o) break;
                    let r = this.getNow();
                    if (n = {
                        s_rid: t.s_rid,
                        action: "remote_client_callback",
                        success: !1,
                        rid: t.rid,
                        method: t.method,
                        src: t.src,
                        timestamp: t.timestamp ? t.timestamp.concat(r) : [].concat(r)
                    }, !this.apis || !this.apis[o]) {
                        n.error = `callRegisterFunction ${o} is undefined`;
                        break
                    }
                    let s = void 0, a = this.decodeParameter(t.args, t.src);
                    try {
                        s = this.apis[o].apply(null, [t.src].concat(a))
                    } catch (e) {
                        n.error = e.message;
                        break
                    }
                    if (s && s.then) {
                        s.then(t => {
                            n.data = this.convertFunction2IdEx(t), n.success = !0, this.sendAdapter(e, n)
                        }).catch(t => {
                            n.error = t instanceof Error ? t.message : t, this.sendAdapter(e, n)
                        }), i = !0;
                        break
                    }
                    n.success = !0, n.data = this.convertFunction2IdEx(s)
                } while (0);
                a.information("callRegisterFunction", n), !i && n && this.sendAdapter(e, n)
            }
        }), d = global.__xdasIPCClienInstance, t.client = d
    }, 40: function (e, t) {
        e.exports = require("https")
    }, 41: function (e, t) {
        e.exports = require("buffer")
    }, 42: function (e, t, n) {
        "use strict";
        const i = n(13);
        if ("renderer" === process.type) {
            if (i.info("client running"), !global.__xdasAsyncRemoteExports) {
                let e = {};
                global.__xdasAsyncRemoteExports = e;
                let t = n(53);
                e.require = t.remoteRequire, e.getCurrentWebContents = t.getCurrentWebContents, e.getCurrentWindow = t.getCurrentWindow, e.Interest = t.Interest, e.global = new Proxy({}, {get: (e, n, i) => t.getGlobal(n)}), e.electron = new Proxy({}, {get: (e, n, i) => t.getBuiltin(n)}), Object.defineProperty(e, "currentWindow", {get: () => t.getCurrentWindow()}), Object.defineProperty(e, "currentWebContents", {get: () => t.getCurrentWebContents()}), Object.defineProperty(e, "process", {get: () => t.getGlobal("process")}), Object.defineProperty(e, "webContents", {get: () => t.getWebContents()})
            }
        } else if ("browser" === process.type && (i.info("server running"), !global.__xdasAsyncRemoteExports)) {
            let e = {};
            global.__xdasAsyncRemoteExports = e;
            const t = n(57);
            t.startServer(), e.getObjectRegistry = t.getObjectRegistry
        }
        e.exports = global.__xdasAsyncRemoteExports
    }, 43: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(6), o = n(22), r = n(23), s = n(28), a = n(39);
        !function (e) {
            let t;
            !function (e) {
                e[e.Unknown = -1] = "Unknown", e[e.Success = 0] = "Success", e[e.FunctionNotExist = 1] = "FunctionNotExist", e[e.ParamaterError = 2] = "ParamaterError", e[e.CallFailed = 3] = "CallFailed"
            }(t = e.NativeCallErrorCode || (e.NativeCallErrorCode = {}));

            class n {
                constructor(e, t, n) {
                    this.maxId = e, this.minId = t, this.invalidId = n
                }

                generateId() {
                    return this.minId === this.maxId ? this.invalidId : this.minId++
                }

                isInvalidId(e) {
                    return e === this.invalidId
                }
            }

            e.IdGenerator = n;
            const l = 0;
            e.idGenerator = new n(1e7, 1, l);

            class d {
                constructor() {
                    this.jsCallbacks = new Map, this.jsReturnCallbacks = new Map, this.eventJsCallbakcs = new Map, this.jsRegisterFunctions = new Map, this.targetCommunitorInfo = a.CommonIPCRenderer.rendererCommunicator.getCommunicatorInfoByContext(s.CommonIPCBase.mainRendererContext), this.bindMsgListeners(), this.notifyNativeCallReady()
                }

                CallNativeFunction(t, ...n) {
                    do {
                        if (i.isNullOrUndefined(t) || 0 === t.length) {
                            o.error("funcName is empty");
                            break
                        }
                        if (!this.targetCommunitorInfo) {
                            o.error("CallNativeFunction but targetCommunitorInfo null");
                            break
                        }
                        o.information("funcName = ", t), this.printArgs(n);
                        let s = l;
                        for (let t = 0; t < n.length; ++t) if (i.isFunction(n[t])) {
                            let i = e.idGenerator.generateId(), o = n[t];
                            t === n.length - 1 ? (this.jsReturnCallbacks.set(i, o), s = i, n.pop()) : (this.jsCallbacks.set(i, o), n[t] = i)
                        }
                        a.CommonIPCRenderer.rendererCommunicator.sendMessageToRenderer(this.targetCommunitorInfo.id, {
                            name: r.CommonIPCMessage.msgNCCallNativeFunction,
                            args: [t, s].concat(n)
                        })
                    } while (0)
                }

                AttachNativeEvent(t, n) {
                    let r = void 0;
                    do {
                        if (i.isNullOrUndefined(t) || 0 === t.length) {
                            o.error("eventName is empty");
                            break
                        }
                        if (i.isNullOrUndefined(n)) {
                            o.error("callback is empty");
                            break
                        }
                        let s = e.idGenerator.generateId();
                        if (e.idGenerator.isInvalidId(s)) {
                            o.error("id error");
                            break
                        }
                        if (this.eventJsCallbakcs.has(t)) this.eventJsCallbakcs.get(t).set(s, n); else {
                            let e = new Map;
                            e.set(s, n), this.eventJsCallbakcs.set(t, e)
                        }
                        r = s
                    } while (0);
                    return r
                }

                DetachNativeEvent(e, t) {
                    do {
                        if (i.isNullOrUndefined(e) || 0 === e.length) {
                            o.error("eventName is empty");
                            break
                        }
                        if (i.isNullOrUndefined(t)) {
                            o.error("callback is empty");
                            break
                        }
                        if (!this.eventJsCallbakcs.has(e)) {
                            o.error(`event: ${e} doesnot have listener`);
                            break
                        }
                        if (!this.eventJsCallbakcs.get(e).has(t)) {
                            o.error(`event: ${e} doesnot have the listener of id=${t}`);
                            break
                        }
                        this.eventJsCallbakcs.get(e).delete(t)
                    } while (0)
                }

                CheckNativeFunction(t, n) {
                    do {
                        if (i.isNullOrUndefined(t) || 0 === t.length) {
                            o.error("funcName is empty");
                            break
                        }
                        if (i.isNullOrUndefined(n)) {
                            o.error("callback is empty");
                            break
                        }
                        if (!this.targetCommunitorInfo) {
                            o.error("CheckNativeFunction but targetCommunitorInfo null");
                            break
                        }
                        o.information("funcName = ", t);
                        let s = e.idGenerator.generateId();
                        this.jsReturnCallbacks.set(s, n), a.CommonIPCRenderer.rendererCommunicator.sendMessageToRenderer(this.targetCommunitorInfo.id, {
                            name: r.CommonIPCMessage.msgNCCheckNativeFunction,
                            args: [t, s]
                        })
                    } while (0)
                }

                RegisterJSFunction(e, n) {
                    let r = t.ParamaterError;
                    do {
                        if (i.isNullOrUndefined(e) || 0 === e.length) {
                            o.error("funcName is empty");
                            break
                        }
                        if (i.isNullOrUndefined(n)) {
                            o.error("jsFunc is empty");
                            break
                        }
                        this.jsRegisterFunctions.set(e, n), r = t.Success
                    } while (0);
                    return r
                }

                bindMsgListeners() {
                    a.CommonIPCRenderer.rendererCommunicator.onMessage(r.CommonIPCMessage.msgNCCallJsFunctionById, e => {
                        this.handleCallJsFunctionById(e.msg.args)
                    }), a.CommonIPCRenderer.rendererCommunicator.onMessage(r.CommonIPCMessage.msgNCCallJsFunctionByName, e => {
                        this.handleCallJsFunctionByName(e.msg.args)
                    }), a.CommonIPCRenderer.rendererCommunicator.onMessage(r.CommonIPCMessage.msgNCNativeFireEvent, e => {
                        this.handleNativeFireEvent(e.msg.args)
                    })
                }

                handleCallJsFunctionById(t) {
                    do {
                        let n = t[0];
                        if (!i.isNumber(n)) {
                            o.error(`id error id = ${n}`);
                            break
                        }
                        if (e.idGenerator.isInvalidId(n)) {
                            o.error(`id = ${n} invalid`);
                            break
                        }
                        let r = null, s = 0;
                        if (this.jsCallbacks.has(n) && (s = 1, r = this.jsCallbacks.get(n)), this.jsReturnCallbacks.has(n) && (s = 2, r = this.jsReturnCallbacks.get(n)), 0 === s) {
                            o.error(`callbacks[${n}] is null`);
                            break
                        }
                        t.splice(0, 1), r.apply(null, t), 2 === s && this.jsReturnCallbacks.delete(n)
                    } while (0)
                }

                handleCallJsFunctionByName(e) {
                    do {
                        let t = e[0];
                        if (!i.isString(t)) {
                            o.error(`funcName error funcName = ${t}`);
                            break
                        }
                        if (!this.jsRegisterFunctions.has(t)) {
                            o.error(`jsRegisterFunctions[${t}] is null`);
                            break
                        }
                        e.splice(0, 1), this.jsRegisterFunctions.get(t).apply(null, e)
                    } while (0)
                }

                handleNativeFireEvent(e) {
                    do {
                        let t = e[0];
                        if (!i.isString(t)) {
                            o.warning(`eventName error eventName = ${t}`);
                            break
                        }
                        if (!this.eventJsCallbakcs.has(t)) {
                            o.warning(`eventJsCallbakcs[${t}] is null`);
                            break
                        }
                        e.shift(), this.eventJsCallbakcs.get(t).forEach((t, n, r) => {
                            o.information(`value = ${t}, key = ${n}, map = ${r}`), i.isNullOrUndefined(t) || t.apply(null, e)
                        })
                    } while (0)
                }

                notifyNativeCallReady() {
                    do {
                        if (!this.targetCommunitorInfo) {
                            o.error("notifyNativeCallReady but targetCommunitorInfo null");
                            break
                        }
                        a.CommonIPCRenderer.rendererCommunicator.sendMessageToRenderer(this.targetCommunitorInfo.id, {
                            name: r.CommonIPCMessage.msgNCNativeCallReady,
                            args: [a.CommonIPCRenderer.rendererCommunicator.getCommunicatorInfo()]
                        })
                    } while (0)
                }

                printArgs(e) {
                    for (let t in e) o.information(`index ${t} = `, e[t])
                }
            }

            e.NativeCallImpl = d, e.nativeCall = new d
        }(t.NativeCallModule || (t.NativeCallModule = {}))
    }, 44: function (e, t) {
        e.exports = require("http")
    }, 47: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(51), o = n(12);
        t.Parser = class extends o.EventEmitter {
            constructor() {
                super(), this.decoder = new i.StringDecoder("utf8"), this.jsonBuffer = ""
            }

            encode(e) {
                return JSON.stringify(e) + "\n"
            }

            feed(e) {
                let t = this.jsonBuffer, n = 0, i = (t += this.decoder.write(e)).indexOf("\n", n);
                for (; i >= 0;) {
                    const e = t.slice(n, i), o = JSON.parse(e);
                    this.emit("message", o), n = i + 1, i = t.indexOf("\n", n)
                }
                this.jsonBuffer = t.slice(n)
            }
        }
    }, 486: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(487), o = n.n(i);
        for (var r in i) "default" !== r && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(r);
        t.default = o.a
    }, 487: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(991), o = n(240);
        t.default = o.connector.connect({
            mapStateToProps: {cloudTaskIds: e => e.CloudDownload.cloudTaskIds},
            mapCommitToProps: {},
            mapDispatchToProps: {},
            mapGettersToProps: {}
        })(i.default)
    }, 488: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(489), o = n.n(i);
        for (var r in i) "default" !== r && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(r);
        t.default = o.a
    }, 489: function (e, t, n) {
        "use strict";
        var i = this && this.__decorate || function (e, t, n, i) {
            var o, r = arguments.length, s = r < 3 ? t : null === i ? i = Object.getOwnPropertyDescriptor(t, n) : i;
            if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) s = Reflect.decorate(e, t, n, i); else for (var a = e.length - 1; a >= 0; a--) (o = e[a]) && (s = (r < 3 ? o(s) : r > 3 ? o(t, n, s) : o(t, n)) || s);
            return r > 3 && s && Object.defineProperty(t, n, s), s
        }, o = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const r = n(6), s = n(3), a = n(42), l = n(28), d = n(15), u = n(7), c = n(5), h = n(992), p = n(1), f = n(43),
            m = n(4), g = n(18), S = n(239), v = n(998), T = n(11), y = n(63), w = n(999), _ = n(684), b = n(1e3),
            C = n(550), k = n(2), E = n(8), I = n(1001), P = n(238), R = n(1002), O = n(1003),
            D = E.default(k.join(__rootDir, "../bin/ThunderHelper.node")),
            M = p.default.getLogger("Thunder.SuspensionRender"), N = _.HoverTextManagerNS.getHoverTextManager(),
            x = w.BubbleManagerNS.getBubbleManager();
        var F, W;
        !function (e) {
            e.Comments = "comments", e.FileList = "files", e.Attribute = "detail"
        }(t.DetailIndex || (t.DetailIndex = {})), function (e) {
            e[e.TransverseConnect = 1] = "TransverseConnect", e[e.VerticalConnect = 2] = "VerticalConnect"
        }(F || (F = {})), function (e) {
            e[e.start = 1] = "start", e[e.pause = 2] = "pause"
        }(W || (W = {}));
        let L = class extends c.Vue {
            constructor() {
                super(...arguments), this.isLogined = !1, this.isVip = !1, this.vipType = 0, this.isInVipAcc = !1, this.isVipSkin = !1, this.isVipLogin = !1, this.isSuperLogin = !1, this.isStopAnimation = !1, this.isLeftTop = !1, this.isLeftBottom = !0, this.isRightTop = !1, this.isRightBottom = !1, this.isLeftDown = !1, this.isClick = !1, this.clickCount = 0, this.isStatus = !1, this.isTryInit = !1, this.isTrying = !1, this.isPlaneIn = !1, this.isPlaneHold = !1, this.isPlaneOut = !1, this.statusText = "", this.floatPanelStyle = "display: none", this.mainWindow = null, this.suspensionWindows = null, this.isShowSpeedType = 0, this.showFloatPanelType = 0, this.totalSpeed = {
                    speed: "0.0",
                    unit: "B/S"
                }, this.vipSpeed = "", this.movewindowTimeIntervalId = -1, this.movewindowToBottomTimeIntervalId = -1, this.width = 0, this.height = 0, this.left = 0, this.top = 0, this.isThunderForeground = !1, this.isDowningStatus = !1, this.downloadProgress = "0.0%", this.startShowTime = 0, this.showState = !1, this.isBubbleLeftVip = !1, this.isBubbleRightVip = !1, this.isBubbleLeftVipHide = !1, this.isBubbleRightVipHide = !1, this.bubbleInfo = null, this.skinInfo = void 0, this.selectedTaskId = 0, this.isShowPlaneAni = !1, this.isFloatPanelShowed = !1, this.hwndVal = 0, this.suspensionX = 0, this.suspensionY = 0, this.dpiFactor = 1, this.isWelt = !1, this.weltLeft = 0, this.weltTop = 0, this.isWeltTop = !1, this.enterBall = !1, this.enterFloat = !1, this.isRightDown = !1, this.contextMenuShow = !1, this.isSuperVip = !1, this.isEnterDowning = !1, this.showRocket = !1, this.showRocketHold = !1, this.isDowning = !1, this.hideTextTimer = null, this.hoverPlaneTimer = null, this.leavePlaneTimer = null, this.showRocketTimer = null, this.showTrialSuccTimer = null, this.weltLeaveTimer = null, this.ballLeaveTimer = null, this.calWeltTimer = null, this.superLoginTimer = null, this.vipLoginTimer = null, this.isOnTrialSucc = !1, this.loginFlag = !1, this.showFloat = !0, this.isShLoginState = !1, this.allScreenDisplay = [], this.isMainUnFocus = !1, this.connectState = F.TransverseConnect, this.isOnline = !0, this.weltPosition = {
                    x: -99999,
                    y: -99999
                }
            }

            onIsSuperLoginChange() {
                return o(this, void 0, void 0, function* () {
                    this.isSuperLogin && (this.isShLoginState = !0, clearTimeout(this.superLoginTimer), this.superLoginTimer = setTimeout(() => {
                        this.isSuperLogin = !1
                    }, 3e3))
                })
            }

            onIsVipLoginChange() {
                return o(this, void 0, void 0, function* () {
                    this.isVipLogin && (this.isShLoginState = !0, clearTimeout(this.vipLoginTimer), this.vipLoginTimer = setTimeout(() => {
                        this.isVipLogin = !1
                    }, 3e3))
                })
            }

            onIsDowningChanged(e) {
                return o(this, void 0, void 0, function* () {
                    this.hideTextTimer && (clearTimeout(this.hideTextTimer), this.hideTextTimer = null), e ? this.hideTextTimer = setTimeout(() => {
                        this.isTry || (this.isEnterDowning = e)
                    }, 500) : this.isEnterDowning = e
                })
            }

            onDownloadingChanged(e) {
                return o(this, void 0, void 0, function* () {
                    1 === this.showFloatPanelType && (e ? (yield this.canHideWindow()) || (yield this.getSuspensionWindows()).showInactive() : (yield this.getSuspensionWindows()).hide())
                })
            }

            get isDownOrConnect() {
                return this.isDowning && !this.isShowPlaneAni || this.isStatus && !this.isShowPlaneAni
            }

            onDownOrConnectChanged(e) {
                return o(this, void 0, void 0, function* () {
                    if (!this.isWelt && e) {
                        let e = yield this.getSuspensionWindows(), [t, n] = yield e.getPosition();
                        t + R.SuspensionInfo.autoHideAtX + R.SuspensionInfo.ballSize + R.SuspensionInfo.speedWidth >= this.left + this.width && this.width > 0 && (t = this.left + this.width - R.SuspensionInfo.autoHideAtX - R.SuspensionInfo.ballSize - R.SuspensionInfo.speedWidth, yield e.setPosition(t, n))
                    }
                })
            }

            get suspensionBallClass() {
                return {
                    "is-downing": this.isDowning && !this.isShowPlaneAni && !this.showRocket && !this.showRocketHold && this.isOnline,
                    "is-connecting": this.isStatus && !this.isShowPlaneAni,
                    "is-plane-in": this.isPlaneIn,
                    "is-plane-hold": this.isPlaneHold,
                    "is-plane-out": this.isPlaneOut,
                    "is-left-vip": this.isBubbleLeftVip,
                    "is-right-vip": this.isBubbleRightVip,
                    "is-left-vip-hide": this.isBubbleLeftVipHide,
                    "is-right-vip-hide": this.isBubbleRightVipHide,
                    "is-vip-login": this.showVipLogin,
                    "is-vip": this.isVipSkin || this.isTrying && !this.isVip,
                    "is-super-login": this.isSuperLogin && !this.isDowning && !this.isTry,
                    "is-super": this.isSuperVip,
                    "is-hide-text": this.isEnterDowning && !this.showRocket && !this.showRocketHold,
                    "is-try": this.isTry,
                    "is-rocket-in": this.showRocket,
                    "is-rocket-hold": this.showRocketHold,
                    "is-try is-rocket-out is-hide-text": this.isOnTrialSucc && this.isDowning
                }
            }

            get showVipLogin() {
                return this.isVipLogin && !this.isDowning && !this.isTry && this.loginFlag
            }

            get suspensionFloatClass() {
                return {
                    "is-left-bottom": this.isLeftBottom,
                    "is-left-top": this.isLeftTop,
                    "is-right-bottom": this.isRightBottom,
                    "is-right-top": this.isRightTop
                }
            }

            get weltLeftPx() {
                return this.weltLeft
            }

            get weltTopPx() {
                return this.weltTop
            }

            get weltClass() {
                return {
                    "is-vip": this.isVipSkin || this.isTrying && !this.isVip,
                    "is-super": this.vipType >= 5,
                    "is-top": this.isWeltTop
                }
            }

            get suspensionStatusText() {
                return this.statusText
            }

            get bubbleText() {
                let e = "";
                return this.bubbleInfo && (e = this.bubbleInfo.bubbleText || ""), e
            }

            get bubbleEndText() {
                let e = "";
                return this.bubbleInfo && (e = this.bubbleInfo.bubbleEndText || ""), e
            }

            get expireDate() {
                let e = "";
                return this.bubbleInfo && void 0 !== this.bubbleInfo.expireDate && (e = this.bubbleInfo.expireDate.toString() || ""), e
            }

            get bubbleBtnText() {
                let e = "";
                return this.bubbleInfo && (e = this.bubbleInfo.bubbleBtnText || ""), e
            }

            get isTry() {
                return !this.isVip && !this.isStatus && this.isTryInit && this.isDowning
            }

            onIsTryChanged(e) {
                return o(this, void 0, void 0, function* () {
                    e ? (this.isEnterDowning = !1, this.isOnTrialSucc || (this.showRocket = e), this.toShowRocketTimer()) : (this.showRocket = e, this.isEnterDowning = this.isDowning)
                })
            }

            toShowRocketTimer() {
                clearTimeout(this.showRocketTimer), this.showRocketTimer = setTimeout(() => {
                    this.showRocket = !1, this.isDowning && (this.isEnterDowning = !0)
                }, 3e3)
            }

            doDownloadEvent(e, t, n, i, o) {
                r.isNullOrUndefined(o) ? this.isStatus = !1 : (this.statusText = o, this.isStatus = i), e || (this.loginFlag = !1, this.isSuperLogin = !1, this.isVipLogin = !1), this.isDowning = e, this.isStatus && (this.isDowning = !1), this.isDowningStatus = this.isDowning || this.isStatus, N.isDonwloading = this.isDowningStatus, r.isNullOrUndefined(this.statusText) || (N.isDonwloading = !0)
            }

            showOrHideFloatPanel(e) {
                return o(this, void 0, void 0, function* () {
                    if (this.showFloat) {
                        if (e) {
                            let e = yield(yield this.getSuspensionWindows()).getBounds(),
                                t = yield this.getFloatPanelDirection(e.x, e.y);
                            this.setFloatPanelDirection(t);
                            let n = "state=full_show";
                            this.isMainUnFocus = !0, this.isWelt && (n = "welt"), this.stat("float_monitor_hover_show", n), this.floatPanelStyle = ""
                        } else this.isMainUnFocus = !1, this.floatPanelStyle = "display: none";
                        x.isFloatPanelShowed = e, this.isFloatPanelShowed = e
                    }
                })
            }

            setFloatPanelDirection(e) {
                switch (e) {
                    case S.FloatPanelDirection.LeftBottom:
                        this.isLeftBottom = !0, this.isLeftTop = !1, this.isRightTop = !1, this.isRightBottom = !1;
                        break;
                    case S.FloatPanelDirection.LeftTop:
                        this.isLeftBottom = !1, this.isLeftTop = !0, this.isRightTop = !1, this.isRightBottom = !1;
                        break;
                    case S.FloatPanelDirection.RightTop:
                        this.isLeftBottom = !1, this.isLeftTop = !1, this.isRightTop = !0, this.isRightBottom = !1;
                        break;
                    case S.FloatPanelDirection.RightBottom:
                        this.isLeftBottom = !1, this.isLeftTop = !1, this.isRightTop = !1, this.isRightBottom = !0
                }
            }

            showOrHideHoverPlane(e) {
                this.isShowPlaneAni = e, e ? this.hoverPlaneTimer || (this.isPlaneIn = !0, this.hoverPlaneTimer = setTimeout(() => {
                    this.isPlaneIn = !1, this.isPlaneHold = !0, this.hoverPlaneTimer = null
                }, 500)) : (this.hoverPlaneTimer && (clearTimeout(this.hoverPlaneTimer), this.hoverPlaneTimer = null), this.isPlaneIn = !1, this.isPlaneHold = !1)
            }

            showLeavePlane() {
                this.leavePlaneTimer || (this.isPlaneOut = !0, this.leavePlaneTimer = setTimeout(() => {
                    this.isPlaneOut = !1, this.leavePlaneTimer = null
                }, 500))
            }

            weltEnter() {
                return o(this, void 0, void 0, function* () {
                    if (this.isLeftDown) return;
                    this.isSuperLogin && (this.isSuperVip = !0), this.isVipLogin && (this.isVipLogin = !1), yield this.showOrHideFloatPanel(!1);
                    let e = yield this.getSuspensionWindows(), [t, n] = yield e.getPosition();
                    this.showFloat = !1, this.isWelt = !1, this.isDowningStatus && (t >= this.left + this.width - R.SuspensionInfo.ballSize - R.SuspensionInfo.autoHideAtX && (t -= R.SuspensionInfo.speedWidth), yield e.setPosition(t, n)), this.weltPosition = {
                        x: t,
                        y: n
                    }
                })
            }

            weltLeave() {
                return o(this, void 0, void 0, function* () {
                    clearTimeout(this.weltLeaveTimer), this.weltLeaveTimer = setTimeout(() => {
                        this.enterBall || this.isRightDown || this.calculIsWelt("weltLeave")
                    }, 50)
                })
            }

            weltDown(e) {
                return o(this, void 0, void 0, function* () {
                    M.warning("weltDown"), 0 === e.button && (this.isWelt = !1)
                })
            }

            weltUp(e) {
                return o(this, void 0, void 0, function* () {
                    M.warning("weltUp"), 0 === e.button && this.calculIsWelt("weltLeftUp")
                })
            }

            enterFloatPanel() {
                this.enterFloat = !0
            }

            leaveFloat() {
                this.enterFloat = !1, this.showOrHideFloatPanel(!1), this.calculIsWelt("leaveFloat")
            }

            hoverEnter(e) {
                clearTimeout(this.calWeltTimer)
            }

            hoverLeave() {
                clearTimeout(this.calWeltTimer), this.calWeltTimer = setTimeout(() => o(this, void 0, void 0, function* () {
                    yield this.setPosition(), yield this.calculIsWelt("ballLeftup")
                }), 500)
            }

            enter() {
                return o(this, void 0, void 0, function* () {
                    clearTimeout(this.ballLeaveTimer), clearTimeout(this.calWeltTimer), this.enterBall = !0, this.isTry && (this.isEnterDowning = !1, this.isOnTrialSucc || (this.showRocketHold = !0)), this.isLeftDown || x.isBubbleVisible || this.showOrHideFloatPanel(!0), setTimeout(() => {
                        this.isClick || (this.isThunderForeground = S.FloatPanelHelper.isThunderMainWndForeground())
                    }, 100)
                })
            }

            leave() {
                return o(this, void 0, void 0, function* () {
                    if (this.contextMenuShow) return;
                    this.hoverLeave(), clearTimeout(this.ballLeaveTimer), this.ballLeaveTimer = setTimeout(() => {
                        this.isEnterDowning = this.isDowning, this.showRocketHold = !1, this.isClick || this.enterFloat || (this.showOrHideFloatPanel(!1), this.isLeftDown = !1, x.showBubble())
                    }, 100);
                    let e = yield this.getSuspensionWindows(), [t, n] = yield e.getPosition();
                    t === this.weltPosition.x && n === this.weltPosition.y || (this.showFloat = !0)
                })
            }

            click() {
                return o(this, void 0, void 0, function* () {
                    if (this.isClick || (this.isClick = !0, setTimeout(() => {
                        this.isClick = !1
                    }, 150)), this.clickCount++, 1 === this.clickCount && setTimeout(() => o(this, void 0, void 0, function* () {
                        if (this.clickCount > 1) this.showOrHideMainWindow().catch(), x.isBubbleVisible && x.clickBubble(4); else if (x.isBubbleVisible) {
                            let e = yield m.client.callServerFunction("GetMainWindowStates");
                            !e.minimized && e.visible && x.clickBubble(4)
                        }
                        this.clickCount = 0
                    }), 250), this.isTry && this.isInInner()) {
                        this.showOrHideHoverPlane(!1), this.showLeavePlane(), this.isTryInit = !1;
                        let e = this.getCommonExtData();
                        e += ",float_type=wzl", this.stat("xfq_click", e), m.client.callServerFunction("BringMainWndToTop").catch(), C.VipPluginFunctionNS.clickTryAcclerateBtn(this.selectedTaskId, "xfq").catch()
                    }
                })
            }

            dbclick() {
                return o(this, void 0, void 0, function* () {
                    M.information("speed dbclick"), this.showOrHideFloatPanel(!1), yield this.showOrHideMainWindow(!0), x.isBubbleVisible && x.clickBubble(4)
                })
            }

            getCommonExtData() {
                let e = "";
                return e = (e = (e = e + ",is_login=" + (this.isLogined ? "1" : "0")) + ",is_vip=" + (this.isVip ? "1" : "0")) + ",vip_type=" + this.vipType
            }

            getLeft() {
                let e = 0;
                return this.allScreenDisplay.forEach((t, n) => {
                    e = Math.min(e, t.bounds.x)
                }), e
            }

            getBottom() {
                let e = 0;
                return this.allScreenDisplay.forEach((t, n) => {
                    e = Math.max(e, t.bounds.y + t.bounds.height)
                }), e
            }

            getFloatPanelDirection(e, t) {
                return o(this, void 0, void 0, function* () {
                    let n = this.left, i = this.top;
                    n = this.getLeft(), i = this.getBottom();
                    let o = this.calculIsInScreen(e, t).display;
                    this.connectState === F.TransverseConnect ? o && (i = o.bounds.y + o.bounds.height) : o && (n = o.bounds.x);
                    let r = S.FloatPanelDirection.RightBottom;
                    return e < n ? (r = S.FloatPanelDirection.RightBottom, t + R.SuspensionInfo.autoHideAtY + R.SuspensionInfo.ballSize > i - R.SuspensionInfo.floatHeight && (r = S.FloatPanelDirection.RightTop)) : (r = S.FloatPanelDirection.LeftBottom, t + R.SuspensionInfo.autoHideAtY + R.SuspensionInfo.ballSize > i - R.SuspensionInfo.floatHeight && (r = S.FloatPanelDirection.LeftTop)), r
                })
            }

            down(e) {
                0 === e.button && (this.showOrHideFloatPanel(!1), this.isLeftDown = !0), 2 === e.button && (this.isRightDown = !0)
            }

            up(e) {
                return o(this, void 0, void 0, function* () {
                    0 === e.button && (this.isLeftDown = !1, yield this.setPosition()), 2 === e.button && (this.isRightDown = !1)
                })
            }

            setPosition() {
                return o(this, void 0, void 0, function* () {
                    let e = yield this.getSuspensionWindows(), [t, n] = yield e.getPosition(), i = t, o = n,
                        r = t + R.SuspensionInfo.autoHideAtX + R.SuspensionInfo.ballSize;
                    this.isDowningStatus && (r += R.SuspensionInfo.speedWidth);
                    let s = this.left, a = this.top, l = this.width, d = this.height, u = this.calculIsInScreen(t, n),
                        c = u.display, h = this.connectState;
                    c && this.allScreenDisplay.length > 1 && (h === F.TransverseConnect ? (s = c.bounds.x, a = c.bounds.y, l = 0 === u.value ? c.bounds.width : u.value, d = c.bounds.height) : (s = c.bounds.x, a = c.bounds.y, l = c.bounds.width, d = 0 === u.value ? c.bounds.height : u.value)), M.warning("startPositionTimer x", t, "y", n, "left", s, "top", a, "width", l, "heigth", d), t + R.SuspensionInfo.autoHideAtX < s && (t = s - R.SuspensionInfo.autoHideAtX), r > s + l - 2.1 && (t = s + l - R.SuspensionInfo.autoHideAtX - R.SuspensionInfo.ballSize), n + R.SuspensionInfo.autoHideAtY < a && (n = a - R.SuspensionInfo.autoHideAtY - R.SuspensionInfo.ballTop), n + R.SuspensionInfo.autoHideAtY + R.SuspensionInfo.ballSize + R.SuspensionInfo.ballTop > a + d && (n = a + d - R.SuspensionInfo.autoHideAtY - R.SuspensionInfo.ballTop - R.SuspensionInfo.ballSize, n -= R.SuspensionInfo.weltTopSize - R.SuspensionInfo.ballSize), i === t && o === n || (yield e.hide(), yield e.setPosition(t, n), yield e.show())
                })
            }

            calculDisplayConnectState() {
                let e = F.TransverseConnect;
                do {
                    if (1 === this.allScreenDisplay.length) break;
                    let t = D.getAllScreen();
                    M.information("allScreen", t);
                    let n = t.find(e => 0 !== e.x || 0 !== e.y);
                    if (!n) break;
                    n.y + n.height !== 0 && n.y !== n.height || (e = F.VerticalConnect)
                } while (0);
                this.connectState = e
            }

            calculIsInScreen(e, t) {
                let n = null, i = 0, o = 0, r = 0, s = 0, a = 0;
                do {
                    if (1 === this.allScreenDisplay.length) {
                        n = this.allScreenDisplay[0], a = this.allScreenDisplay[0].bounds.width;
                        break
                    }
                    let l = this.connectState;
                    for (let a of this.allScreenDisplay) l === F.TransverseConnect ? (e >= a.bounds.x && e <= a.bounds.x + a.bounds.width && (n = a), i = Math.min(i, a.bounds.x), r = Math.max(r, a.bounds.x + a.bounds.width)) : (t >= a.bounds.y && t <= a.bounds.y + a.bounds.height && (n = a), o = Math.min(o, a.bounds.y), s = Math.max(s, a.bounds.y + a.bounds.height));
                    if (!n) for (let e of this.allScreenDisplay) if (l === F.TransverseConnect) {
                        if (i === e.bounds.x) {
                            n = e;
                            break
                        }
                    } else if (o === e.bounds.y) {
                        n = e;
                        break
                    }
                    let d = 0, u = 0;
                    if (n) {
                        for (let e of this.allScreenDisplay) if (l === F.TransverseConnect) {
                            if (n.bounds.x + n.bounds.width === r) {
                                d = n.bounds.width;
                                break
                            }
                            d += e.bounds.width
                        } else {
                            if (n.bounds.y + n.bounds.height === s) {
                                u = n.bounds.height;
                                break
                            }
                            u += e.bounds.height
                        }
                        a = l === F.TransverseConnect ? d : u
                    }
                } while (0);
                return {display: n, value: a}
            }

            calculIsWelt(e) {
                return o(this, void 0, void 0, function* () {
                    let t = yield this.getSuspensionWindows(), [n, i] = yield t.getPosition(), o = this.left,
                        r = this.top, s = this.width, a = this.height, l = this.calculIsInScreen(n, i), d = l.display,
                        u = this.connectState;
                    d && this.allScreenDisplay.length > 1 && (u === F.TransverseConnect ? (o = d.bounds.x, r = d.bounds.y, s = 0 === l.value ? d.bounds.width : l.value, a = d.bounds.height) : (o = d.bounds.x, r = d.bounds.y, s = d.bounds.width, a = 0 === l.value ? d.bounds.height : l.value));
                    let c = n, h = D.getTaskBarRect(), p = !1;
                    do {
                        if (M.warning("calculIsWelt x", n, "y", i, "left", o, "top", r, "width", s, "heigth", a), this.weltLeft = R.SuspensionInfo.autoHideAtX, this.weltTop = R.SuspensionInfo.autoHideAtY + R.SuspensionInfo.ballTop, this.isWeltTop = !1, n + R.SuspensionInfo.autoHideAtX <= o && h !== P.WindowTaskBarAbe.AbeLeft) {
                            p = !0;
                            break
                        }
                        if (this.isDownOrConnect && (n += R.SuspensionInfo.speedWidth), n + R.SuspensionInfo.autoHideAtX + R.SuspensionInfo.ballSize + 2 >= o + s && h !== P.WindowTaskBarAbe.AbeRright) {
                            this.weltLeft = R.SuspensionInfo.autoHideAtX + R.SuspensionInfo.ballSize - R.SuspensionInfo.weltSize, p = !0;
                            break
                        }
                        if (i + R.SuspensionInfo.autoHideAtY + R.SuspensionInfo.ballTop <= r && h !== P.WindowTaskBarAbe.AbeTop) {
                            this.weltLeft = this.weltLeft + R.SuspensionInfo.weltTopSize - (R.SuspensionInfo.weltTopSize - R.SuspensionInfo.ballSize) / 2, this.isWeltTop = !0, p = !0;
                            break
                        }
                        if (i + R.SuspensionInfo.autoHideAtY + R.SuspensionInfo.ballSize + R.SuspensionInfo.ballTop >= r + a && h !== P.WindowTaskBarAbe.AbeBottom) {
                            this.weltLeft = this.weltLeft + R.SuspensionInfo.weltTopSize - (R.SuspensionInfo.weltTopSize - R.SuspensionInfo.ballSize) / 2, this.weltTop = this.weltTop + R.SuspensionInfo.ballSize - R.SuspensionInfo.weltSize, this.isWeltTop = !0, p = !0;
                            break
                        }
                        this.weltLeft = 0, this.weltTop = 0, p = !1
                    } while (0);
                    if (p) {
                        let e = c + R.SuspensionInfo.autoHideAtX + R.SuspensionInfo.ballSize;
                        this.isDownOrConnect && (e += R.SuspensionInfo.speedWidth), e >= o + s && (c = o + s - R.SuspensionInfo.autoHideAtX - R.SuspensionInfo.ballSize, yield t.setPosition(c, i))
                    } else this.showFloat = !0;
                    this.isWelt = p, "ballLeftup" === e && (this.isWelt ? this.stat("float_monitor_dragin_welt") : this.stat("float_monitor_dragout_welt")), M.warning("calculIsWelt this.weltLeft", this.weltLeft, "weltTop", this.weltTop, "isWelt", this.isWelt, "isWeltTop", this.isWeltTop)
                })
            }

            canHideWindow() {
                return o(this, void 0, void 0, function* () {
                    let e = !0;
                    do {
                        if (0 === this.showFloatPanelType) {
                            e = !1;
                            break
                        }
                        if (2 === this.showFloatPanelType) {
                            e = !0;
                            break
                        }
                        let t = yield m.client.callServerFunction("GetMainWindowStates");
                        if (t.maximized && S.FloatPanelHelper.isThunderMainWndForeground() && t.visible) {
                            e = !0;
                            break
                        }
                        (this.isDowning || this.isStatus) && (e = !1)
                    } while (0);
                    return e
                })
            }

            onshowFloatPanel(e) {
                return o(this, void 0, void 0, function* () {
                    this.showFloatPanelType = e, yield m.client.callServerFunction("SetConfigValue", "ConfigFloatPanel", "FloatPanelValue", e.toString()), yield m.client.callServerFunction("SaveConfig")
                })
            }

            handleBubbleClick() {
                M.information("handleBubbleClick"), x.isBubbleVisible && x.clickBubble(3)
            }

            handleBubbleBtnClick() {
                M.information("handleBubbleBtnClick"), x.isBubbleVisible && x.clickBubble(1)
            }

            handleBubbleCloseClick() {
                M.information("handleBubbleCloseClick"), x.isBubbleVisible && x.clickBubble(2)
            }

            handleRightClick() {
                return o(this, void 0, void 0, function* () {
                    this.showOrHideFloatPanel(!1);
                    let e = [{
                        type: "normal",
                        label: "新建任务(&N)",
                        icon: `${__rootDir}/static/icon/newtask.png`,
                        click: () => o(this, void 0, void 0, function* () {
                            this.stat("float_monitor_rk_click", "button=create"), (yield this.getMainWindows()).webContents.send(g.ThunderChannelList.channelMRTrayMenuClick, "-task:newtask", "floatmonitor")
                        })
                    }, {type: "separator"}, {
                        type: "normal",
                        label: "开始全部任务",
                        icon: `${__rootDir}/static/icon/startalltask.png`,
                        click: () => o(this, void 0, void 0, function* () {
                            this.stat("float_monitor_rk_click", "button=start"), (yield this.getMainWindows()).webContents.send(g.ThunderChannelList.channelMRTrayMenuClick, "-task:startall"), yield m.client.callRemoteClientFunction("ThunderPanPluginWebview", "IpcAllRetrieveTaskControl", W.start)
                        })
                    }, {
                        type: "normal",
                        label: "暂停全部任务",
                        icon: `${__rootDir}/static/icon/stoptask.png`,
                        click: () => o(this, void 0, void 0, function* () {
                            this.stat("float_monitor_rk_click", "button=pause"), (yield this.getMainWindows()).webContents.send(g.ThunderChannelList.channelMRTrayMenuClick, "-task:pauseall"), yield m.client.callRemoteClientFunction("ThunderPanPluginWebview", "IpcAllRetrieveTaskControl", W.pause)
                        })
                    }, {
                        type: "submenu",
                        label: "悬浮窗设置",
                        submenu: [{
                            type: "normal",
                            label: "显示悬浮窗",
                            icon: 0 === this.showFloatPanelType ? `${__rootDir}/static/icon/ok.png` : "",
                            click: () => {
                                this.stat("float_monitor_display_setting", "result=show"), this.onshowFloatPanel(0).catch()
                            }
                        }, {
                            type: "normal",
                            icon: 1 === this.showFloatPanelType ? `${__rootDir}/static/icon/ok.png` : "",
                            label: "下载时显示悬浮窗",
                            click: () => {
                                this.stat("float_monitor_display_setting", "result=undl_hide"), this.onshowFloatPanel(1).catch()
                            }
                        }, {
                            type: "normal",
                            label: "隐藏悬浮窗",
                            icon: 2 === this.showFloatPanelType ? `${__rootDir}/static/icon/ok.png` : "",
                            click: () => {
                                this.stat("float_monitor_display_setting", "result=hide"), this.onshowFloatPanel(2).catch()
                            }
                        }]
                    }, {
                        type: "normal", label: "关闭悬浮窗", click: () => o(this, void 0, void 0, function* () {
                            this.showFloatPanelType = 2, (yield this.getSuspensionWindows()).hide(), this.stat("float_monitor_rk_click", "button=close")
                        })
                    }, {
                        type: "normal",
                        icon: `${__rootDir}/static/icon/exit.png`,
                        label: "退出迅雷(&X)",
                        click: () => o(this, void 0, void 0, function* () {
                            this.stat("float_monitor_rk_click", "button=exit"), (yield this.getMainWindows()).webContents.send(g.ThunderChannelList.channelMRTrayMenuClick, "-task:quitprocess")
                        })
                    }], t = yield m.client.callServerFunction("GetMainWindowStates");
                    t && t.visible ? t.minimized ? e.splice(0, 0, {
                        label: "打开迅雷", type: "normal", click: () => {
                            this.stat("float_monitor_rk_click", "button=showmain"), m.client.callServerFunction("BringMainWndToTop").catch()
                        }
                    }) : e.splice(0, 0, {
                        label: "隐藏主界面",
                        type: "normal",
                        click: () => o(this, void 0, void 0, function* () {
                            this.stat("float_monitor_rk_click", "button=hidemain");
                            let e = yield this.getMainWindows();
                            e.minimize(), e.hide()
                        })
                    }) : e.splice(0, 0, {
                        label: "打开迅雷", type: "normal", click: () => {
                            this.stat("float_monitor_rk_click", "button=showmain"), m.client.callServerFunction("BringMainWndToTop").catch()
                        }
                    });
                    let n = yield(yield u.asyncRemoteCall.getMenu()).buildFromTemplate(e);
                    n.once("menu-will-close", () => {
                        this.contextMenuShow = !1, this.leave()
                    }), yield y.MenuSkinNS.setStyle(n, {}), this.contextMenuShow = !0, yield n.popup({window: yield this.getSuspensionWindows()})
                })
            }

            isInInner() {
                let e = !1, t = D.getCursorPos(),
                    n = (this.suspensionX + R.SuspensionInfo.autoHideAtX - R.SuspensionInfo.ballSize) * this.dpiFactor,
                    i = (this.suspensionX + R.SuspensionInfo.autoHideAtX + R.SuspensionInfo.ballSize) * this.dpiFactor,
                    o = (this.suspensionY + R.SuspensionInfo.autoHideAtY - R.SuspensionInfo.ballSize) * this.dpiFactor,
                    r = (this.suspensionY + R.SuspensionInfo.autoHideAtY + R.SuspensionInfo.ballSize) * this.dpiFactor;
                return t.x > n && t.x < i && t.y > o && t.y < r && (e = !0), e
            }

            showOrHideMainWindow(e = !1) {
                return o(this, void 0, void 0, function* () {
                    if (this.isInInner() || e) {
                        let e = "", t = yield m.client.callServerFunction("GetMainWindowStates");
                        if (t.minimized) yield m.client.callServerFunction("BringMainWndToTop"), this.isThunderForeground = !0, e = "showmain"; else if (t.visible) if (this.isThunderForeground) {
                            let t = yield this.getMainWindows();
                            t.minimize(), t.hide(), this.isThunderForeground = !1, e = "hidemain"
                        } else yield m.client.callServerFunction("BringMainWndToTop"), this.isThunderForeground = !0, e = "showmain"; else yield m.client.callServerFunction("BringMainWndToTop"), this.isThunderForeground = !0, e = "showmain";
                        this.stat("float_monitor_dbclick_main_status_get", `status=${e}`)
                    }
                })
            }

            getMainWindows() {
                return o(this, void 0, void 0, function* () {
                    return null === this.mainWindow && (this.mainWindow = yield a.global.mainRendererWindow.__resolve()), this.mainWindow
                })
            }

            getSuspensionWindows() {
                return o(this, void 0, void 0, function* () {
                    return null === this.suspensionWindows && (this.suspensionWindows = yield u.asyncRemoteCall.getCurrentWindow()), this.suspensionWindows
                })
            }

            onGetUserInfo(e = !0) {
                m.client.callServerFunction("GetAllUserInfo").then(t => {
                    do {
                        if (M.information("onGetUserInfo allUserinfo", t), !t) {
                            this.isSuperLogin = !1, this.isSuperVip = !1, this.isVipLogin = !1, this.loginFlag = !1, this.isVip = !1;
                            break
                        }
                        let n = t.vipList[0], i = Number(n.vasType);
                        this.isLogined = !0, this.vipType = Number(n.vasType), M.information("onGetUserInfo vipInfo", n), 1 === Number(n.isVip) ? (this.isVip = !0, i >= 5 ? (this.isShLoginState || (this.isSuperLogin = !0), this.isSuperVip = !0) : i >= 2 && (e && (this.isSuperLogin = !1, this.isShLoginState || (this.isVipLogin = !0)), this.isSuperVip = !1, this.loginFlag = !0, this.isVip = !0)) : (this.isSuperLogin = !1, this.isSuperVip = !1, this.isVipLogin = !1, this.loginFlag = !1, this.isVip = !1)
                    } while (0);
                    e && this.onChangeSkin(this.skinInfo)
                }).catch()
            }

            onTotalVipAcclerateStatusChanged(e) {
                e && (this.isInVipAcc = e.acclerating)
            }

            listenLoginEvent() {
                f.NativeCallModule.nativeCall.AttachNativeEvent("onLoginSuc", () => {
                    this.isLogined = !0, this.isVip = !1, this.onGetUserInfo()
                }), f.NativeCallModule.nativeCall.AttachNativeEvent("onLoginFailed", () => {
                    this.isLogined = !1, this.isVip = !1, this.vipType = 0, this.isSuperLogin = !1, this.isSuperVip = !1, this.isShLoginState = !1
                }), f.NativeCallModule.nativeCall.AttachNativeEvent("onUserInfoChange", (e, t) => {
                    "vipinfo" === e && this.onGetUserInfo()
                }), f.NativeCallModule.nativeCall.AttachNativeEvent("onLogout", () => {
                    this.isLogined = !1, this.vipType = 0, this.isVipLogin = !1, this.loginFlag = !1, this.isVipSkin = !1, this.isVip = !1, this.isTrying = !1, this.isSuperVip = !1, this.isSuperLogin = !1, this.isShLoginState = !1
                })
            }

            getBooskeyState() {
                return o(this, void 0, void 0, function* () {
                    return yield m.client.callServerFunction("GetConfigValue", "BossKey", "BossKeyState", !1)
                })
            }

            setSuspensionPosition() {
                return o(this, void 0, void 0, function* () {
                    let e = yield m.client.callServerFunction("GetConfigValue", "ConfigSuspensionXdas", "SuspensionX");
                    this.suspensionX = e;
                    let t = yield m.client.callServerFunction("GetConfigValue", "ConfigSuspensionXdas", "SuspensionY");
                    this.suspensionY = t, M.warning("setSuspensionPosition x", e, "screen.availWidth - 510", screen.availWidth - 510, "y", t);
                    let n = yield this.getSuspensionWindows(), i = yield n.getBounds();
                    yield n.setBounds({x: e || screen.availWidth - 510, y: t || -160, width: i.width, height: i.height})
                })
            }

            setVipSkin(e) {
                this.isVipSkin = e, this.isVipLogin = e, this.loginFlag = e
            }

            getConfigValue() {
                return o(this, void 0, void 0, function* () {
                    m.client.callServerFunction("GetConfigValue", "ConfigFloatPanel", "ConfigFloatPanelShowSpeedType", "0").then(e => {
                        null !== e && (this.isShowSpeedType = Number(e), this.isShowSpeedType > 1 && (this.isShowSpeedType = 0))
                    }), m.client.callServerFunction("GetConfigValue", "ConfigFloatPanel", "FloatPanelValue", "0").then(e => o(this, void 0, void 0, function* () {
                        if (null !== e) {
                            this.showFloatPanelType = Number(e);
                            let t = yield(yield this.getSuspensionWindows()).getBounds(),
                                n = yield this.getFloatPanelDirection(t.x, t.y);
                            this.setFloatPanelDirection(n);
                            let i = yield m.client.callServerFunction("GetMainWindowStates");
                            if (i.maximized && i.visible) (yield this.getSuspensionWindows()).hide(); else if (2 === this.showFloatPanelType) (yield this.getSuspensionWindows()).hide(); else if (0 === this.showFloatPanelType) {
                                (yield m.client.callRemoteClientFunction(l.CommonIPCBase.mainProcessContext, "IsSilentSupsWnd"))[0] || (yield this.getSuspensionWindows()).showInactive()
                            } else if (yield this.canHideWindow()) (yield this.getSuspensionWindows()).hide(); else {
                                (yield m.client.callRemoteClientFunction(l.CommonIPCBase.mainProcessContext, "IsSilentSupsWnd"))[0] || (yield this.getSuspensionWindows()).showInactive()
                            }
                        }
                    }))
                })
            }

            getAnimationLevel() {
                return o(this, void 0, void 0, function* () {
                    let e = yield m.client.callServerFunction("GetConfigValue", "GenericSettings", "AnimationLevel", "0");
                    this.isStopAnimation = "0" === e
                })
            }

            listenFullScreen() {
                let e = !1;
                setInterval(() => o(this, void 0, void 0, function* () {
                    (yield O.CommonNS.callXmp("GetIsFullScreenEx")) || D.IsInFullScreen() ? ((yield this.getSuspensionWindows()).hide(), e = !0) : e && ((yield this.canHideWindow()) || ((yield this.getSuspensionWindows()).showInactive(), e = !1))
                }), 1e3)
            }

            listenConfigEvent() {
                m.client.callServerFunction("IsConfigInitFinish").then(() => {
                    this.setSuspensionPosition().catch(), this.getConfigValue(), this.getAnimationLevel().catch()
                }).catch(), m.client.attachServerEvent("OnConfigValueChanged", (e, t, n, i, o) => {
                    "ConfigFloatPanel" === t ? i !== o && this.getConfigValue() : "GenericSettings" === t && "AnimationLevel" === n ? i !== o && this.getAnimationLevel().catch() : "ConfigSuspensionXdas" === t && i !== o && ("SuspensionX" === n ? this.suspensionX = o : "SuspensionY" === n && (this.suspensionY = o))
                })
            }

            listenVipBubbleEvent() {
                x.addListener(w.BubbleEventNS.bubbleShowChanged, (e, t) => o(this, void 0, void 0, function* () {
                    if (M.information(w.BubbleEventNS.bubbleShowChanged, e, t), e) {
                        let e = yield(yield this.getSuspensionWindows()).getBounds(),
                            n = e.x + e.width - R.SuspensionInfo.autoHideAtX + R.SuspensionInfo.ballSize,
                            i = this.left + this.width;
                        M.information("screenRight:", i, "windowRight:", n), this.bubbleInfo = t, i - n <= 170 ? (this.isBubbleLeftVip = !0, this.isBubbleRightVip = !1, this.isBubbleLeftVipHide = !1, this.isBubbleRightVipHide = !1, M.information("isBubbleLeftVip")) : (this.isBubbleLeftVip = !1, this.isBubbleRightVip = !0, this.isBubbleLeftVipHide = !1, this.isBubbleRightVipHide = !1, M.information("isBubbleRightVip"))
                    } else this.isBubbleLeftVip ? (this.isBubbleRightVip = !1, this.isBubbleLeftVipHide = !0, this.isBubbleRightVipHide = !1, M.information("isBubbleLeftVipHide")) : (this.isBubbleLeftVip = !1, this.isBubbleLeftVipHide = !1, this.isBubbleRightVipHide = !0, M.information("isBubbleRightVipHide"))
                }))
            }

            listenMainEvent() {
                return o(this, void 0, void 0, function* () {
                    let e = yield this.getMainWindows();
                    e.on("maximize", () => o(this, void 0, void 0, function* () {
                        (yield this.getSuspensionWindows()).hide()
                    })), e.on("blur", () => o(this, void 0, void 0, function* () {
                        (yield this.canHideWindow()) ? (yield this.getSuspensionWindows()).hide() : S.FloatPanelHelper.isThunderMainWndForeground() || (yield this.getSuspensionWindows()).showInactive()
                    })), e.on("focus", () => o(this, void 0, void 0, function* () {
                        (yield e.isMaximized()) || (yield e.isFullScreen()) ? (yield this.getSuspensionWindows()).hide() : (yield this.canHideWindow()) ? (yield this.getSuspensionWindows()).hide() : (yield this.getSuspensionWindows()).showInactive()
                    })), e.on("minimize", () => o(this, void 0, void 0, function* () {
                        (yield this.getBooskeyState()) ? (yield this.getSuspensionWindows()).hide() : (yield e.isVisible()) && ((yield this.canHideWindow()) ? (yield this.getSuspensionWindows()).hide() : (yield this.getSuspensionWindows()).showInactive())
                    })), e.on("unmaximize", () => o(this, void 0, void 0, function* () {
                        (yield this.canHideWindow()) ? (yield this.getSuspensionWindows()).hide() : (yield this.getSuspensionWindows()).showInactive()
                    })), e.on("hide", () => o(this, void 0, void 0, function* () {
                        let e = yield this.getBooskeyState(), t = yield this.getSuspensionWindows();
                        if (e) yield t.hide(); else if (yield this.canHideWindow()) yield t.hide(); else {
                            let e = (yield m.client.callRemoteClientFunction(l.CommonIPCBase.mainProcessContext, "IsSilentSupsWnd"))[0],
                                n = (yield m.client.callRemoteClientFunction(l.CommonIPCBase.mainProcessContext, "IsAppExit"))[0];
                            e || n || (yield t.showInactive())
                        }
                    }))
                })
            }

            getCloudDownloadingDetail() {
                let e = 0, t = 0, n = [], i = S.FloatPanelHelper.cloudNoneReactiveTasksMap;
                for (let o in i) {
                    let r = i[o], s = r.taskStatus;
                    s !== d.DownloadKernel.TaskStatus.PreDownloading && s !== d.DownloadKernel.TaskStatus.StartWaiting && s !== d.DownloadKernel.TaskStatus.StartPending && s !== d.DownloadKernel.TaskStatus.Started || (t += r.fileSize, e += r.downloadSize, n.push(Number(o)))
                }
                return {downSize: e, totalSize: t, downloading: n}
            }

            listenGlobalSpeedChangeEvent() {
                m.client.attachServerEvent("OnTotalVipAcclerateStatusChanged", (e, t) => {
                    e && "vip-download-webview" === e.name && this.onTotalVipAcclerateStatusChanged(t)
                }), f.NativeCallModule.nativeCall.AttachNativeEvent("OnGlobalDownloadSpeedChanged", (e, t) => o(this, void 0, void 0, function* () {
                    this.totalSpeed = S.FloatPanelHelper.formatSpeed(e), this.isVip || this.isInVipAcc || (t = 0);
                    let n = S.FloatPanelHelper.formatSpeed(t);
                    this.vipSpeed = "+" + n.speed + n.unit;
                    let i = yield m.client.callServerFunction("GetDownloadDetails");
                    if (i) {
                        let e = this.getCloudDownloadingDetail(), t = i.totalSize + e.totalSize,
                            n = i.downSize + e.downSize, o = 0;
                        t > 0 && (o = n / t);
                        let r = "0.01%";
                        r = (100 * (o = (o = o > 1 ? 1 : o) < 0 ? 0 : o)).toFixed(2) + "%", this.downloadProgress = r
                    }
                }))
            }

            listenTrialEvent() {
                M.information("listenTrialEvent-----------------------------"), f.NativeCallModule.nativeCall.AttachNativeEvent("OnCurTaskChange", (e, t, n) => o(this, void 0, void 0, function* () {
                    this.selectedTaskId = e, M.information("OnCurTaskChange taskId:", e), this.updateTrialState(e).catch()
                })), m.client.attachServerEvent("OnVipTaskInfoChanged", (e, t, n) => {
                    e && "vip-download-webview" === e.name && this.updateTrialState(t, n).catch()
                })
            }

            updateTrialState(e, t) {
                return o(this, void 0, void 0, function* () {
                    if (t || (t = yield C.VipPluginFunctionNS.getVipTaskInfo(e)), t && e === this.selectedTaskId) {
                        t.taskType === b.VipDownloadDefineNS.VipTaskType.Try || t.taskType === b.VipDownloadDefineNS.VipTaskType.Ad ? t.taskStatus === b.VipDownloadDefineNS.VipTaskStatus.Unkown || t.taskStatus === b.VipDownloadDefineNS.VipTaskStatus.Init || t.taskStatus === b.VipDownloadDefineNS.VipTaskStatus.CommitFailed || t.taskStatus === b.VipDownloadDefineNS.VipTaskStatus.AcclerateFailed || t.taskStatus === b.VipDownloadDefineNS.VipTaskStatus.Finished ? this.isTrying = !1 : this.isTrying = !0 : this.isTrying = !1;
                        let e = t.taskStatus,
                            n = t.taskType === b.VipDownloadDefineNS.VipTaskType.Try && e === b.VipDownloadDefineNS.VipTaskStatus.Init;
                        if (M.information("isTryInit", n, "taskInfo", t), n !== this.isTryInit && (this.isTryInit = n, n)) {
                            this.isStatus = !1;
                            let e = this.getCommonExtData();
                            this.stat("xfq_wzl_show", e)
                        }
                        e === b.VipDownloadDefineNS.VipTaskStatus.Acclerating || e === b.VipDownloadDefineNS.VipTaskStatus.AcclerateStoped || e === b.VipDownloadDefineNS.VipTaskStatus.Commiting || e === b.VipDownloadDefineNS.VipTaskStatus.CommitSuccess || e === b.VipDownloadDefineNS.VipTaskStatus.AcclerateWait ? t.trySection === b.VipDownloadDefineNS.TryType.PlatinumVip || t.trySection === b.VipDownloadDefineNS.TryType.MixVip ? (this.isOnTrialSucc = !0, this.startTrialSuccTimer()) : (t.trySection === b.VipDownloadDefineNS.TryType.SuperVip || t.isSuper) && (this.isOnTrialSucc && (this.isOnTrialSucc = !1), this.isOnTrialSucc = !0, this.isSuperVip = !0, this.startTrialSuccTimer()) : (this.isOnTrialSucc = !1, this.onGetUserInfo(!1))
                    }
                })
            }

            startTrialSuccTimer() {
                clearTimeout(this.showTrialSuccTimer), this.showTrialSuccTimer = setTimeout(() => {
                    this.isOnTrialSucc = !1
                }, 5e3)
            }

            stat(e, t) {
                let n = "";
                null !== t && void 0 !== t && "" !== t && (n = t), M.information(e, n), T.XLStatNS.trackEvent("client_quick", e, "", 0, 0, 0, 0, n)
            }

            onChangeSkin(e) {
                this.skinInfo = 1, this.isVipSkin = 1, this.isVipLogin = this.isVipSkin, this.loginFlag = this.isVipSkin
            }

            getDpiFactor(e) {
                let t = 1;
                return t = D.getDPIAwareSupport() ? D.getMonitorDPIFactor(e) : D.getSysDPIFactor()
            }

            mounted() {
                return o(this, void 0, void 0, function* () {
                    let e = yield this.getSuspensionWindows(), t = (yield e.getNativeWindowHandle()).readUInt32LE(0);
                    this.dpiFactor = this.getDpiFactor(t);
                    let n = yield v.MutiScreenHelper.getScreenRectangle();
                    this.allScreenDisplay = yield v.MutiScreenHelper.getAllScreenDisplay(), M.warning("getScreenRectangle rect", n), this.width = n.width, this.height = n.height, this.left = n.x, this.top = n.y, e.on("show", () => {
                        this.showState || (this.showState = !0, this.startShowTime = (new Date).getTime(), this.stat("float_monitor_show"))
                    }), e.on("hide", () => {
                        if (this.showState) {
                            this.showState = !1;
                            let e = (((new Date).getTime() - this.startShowTime) / 1e3).toFixed(2);
                            this.stat("float_monitor_online_time", `time=${e}`), this.startShowTime = 0
                        }
                    }), this.listenMainEvent().catch(), this.onGetUserInfo(), this.listenLoginEvent(), this.listenConfigEvent(), this.listenFullScreen(), this.listenVipBubbleEvent(), this.listenGlobalSpeedChangeEvent(), this.listenTrialEvent(), this.calculDisplayConnectState(), s.ipcRenderer.on("suspension-window-restore", () => {
                        this.showFloatPanelType = 0, this.suspensionWindows.showInactive()
                    }), (yield this.getSuspensionWindows()).hookWindowMessage(736, (e, t) => o(this, void 0, void 0, function* () {
                        M.information("hookWindowMessage 0x02e0 wparam", e, "lparam", t), this.dpiFactor = Number((100 * e[0] / 96 / 100).toFixed(2)), yield this.getScreenSize()
                    })), (yield this.getSuspensionWindows()).hookWindowMessage(126, (e, t) => o(this, void 0, void 0, function* () {
                        M.information("hookWindowMessage 0x007E wparam", e, "lparam", t), yield this.getScreenSize(), M.information("0x007E setPosition"), this.setPosition(), yield this.calculIsWelt("displayChange")
                    })), (yield this.getSuspensionWindows()).hookWindowMessage(26, (e, t) => o(this, void 0, void 0, function* () {
                        47 === e[0] && (M.information("hookWindowMessage 0x001A wparam", e, "lparam", t), this.calculDisplayConnectState(), yield this.getScreenSize(), yield this.calculIsWelt("taskbarChange"))
                    })), setTimeout(() => {
                        m.client.attachServerEvent("OnChangeSuspensionSkin", (e, ...t) => {
                            this.onChangeSkin(t[0])
                        }), m.client.callServerFunction("GetSuspensionSkinInfo").then(e => {
                            e && void 0 === this.skinInfo && this.onChangeSkin(e)
                        }).catch()
                    }, 2e3), yield I.default(".xly-suspension-polygon", this.suspensionWindows), yield I.default(".xly-suspension-status", this.suspensionWindows), D.modifyStyleEx(t, P.WindowStyleEx.WS_EX_TOOLWINDOW, 0), this.hwndVal = t, x.init(), N.init(), m.client.attachServerEvent("OnInternetConnectChange", (e, t, n) => o(this, void 0, void 0, function* () {
                        this.isOnline = 2 !== n
                    }))
                })
            }

            getScreenSize() {
                return o(this, void 0, void 0, function* () {
                    let e = yield v.MutiScreenHelper.getScreenRectangle();
                    this.allScreenDisplay = yield v.MutiScreenHelper.getAllScreenDisplay(), M.warning("getScreenSize getScreenRectangle rect", e), this.width = e.width, this.height = e.height, this.left = e.x, this.top = e.y
                })
            }
        };
        i([c.Watch("isSuperLogin")], L.prototype, "onIsSuperLoginChange", null), i([c.Watch("isVipLogin")], L.prototype, "onIsVipLoginChange", null), i([c.Watch("isDowning")], L.prototype, "onIsDowningChanged", null), i([c.Watch("isDowningStatus")], L.prototype, "onDownloadingChanged", null), i([c.Watch("isDownOrConnect")], L.prototype, "onDownOrConnectChanged", null), i([c.Watch("isTry")], L.prototype, "onIsTryChanged", null), L = i([c.Component({components: {FloatPanelContainer: h.default}})], L), t.default = L
    }, 49: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(2), o = n(6), r = n(1), s = n(8), a = n(32), l = n(3), d = n(18),
            u = s.default(i.join(__rootDir, "../bin/ThunderHelper.node"));

        function c() {
            "console" === process.env.TL_OUTPUT ? r.default.outputLogger = r.outputLoggerConsole : r.default.outputLogger = function () {
                function e(e) {
                    return function (...t) {
                        u.printEtwLog(e, function (...e) {
                            return e.map(e => o.inspect(e)).join(" ").replace(/%/g, "%%")
                        }(...t))
                    }
                }

                return {
                    [r.LogLevel.Critical]: e(r.LogLevel.Critical),
                    [r.LogLevel.Error]: e(r.LogLevel.Error),
                    [r.LogLevel.Warning]: e(r.LogLevel.Warning),
                    [r.LogLevel.Information]: e(r.LogLevel.Information),
                    [r.LogLevel.Verbose]: e(r.LogLevel.Verbose)
                }
            }()
        }

        function h() {
            let e = a.DevEnvHelperNS.isLogEnable();
            "1" === process.env.TL_ENABLE !== e && (process.env.TL_ENABLE = e ? "1" : "0", r.default.enableLogger = e, u.enableETWLogger(e));
            let t = a.DevEnvHelperNS.getLogOutput();
            t && t !== process.env.TL_OUTPUT && (process.env.TL_OUTPUT = t, c())
        }

        process.env.TL_ENABLE = "0", r.default.enableLogger = "1" === process.env.TL_ENABLE, c(), h(), "browser" === process.type ? l.ipcMain.on(d.ThunderChannelList.channelRMUpdateLogEnviroment, () => {
            l.BrowserWindow.getAllWindows().forEach(e => {
                e.isDestroyed() || e.webContents.send(d.ThunderChannelList.channelMRUpdateLogEnviroment)
            }), h()
        }) : "renderer" === process.type && l.ipcRenderer.on(d.ThunderChannelList.channelMRUpdateLogEnviroment, () => {
            h()
        })
    }, 490: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(491), o = n.n(i);
        for (var r in i) "default" !== r && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(r);
        t.default = o.a
    }, 491: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(993), o = n(240);
        t.default = o.connector.connect({
            mapStateToProps: {
                cloudTaskIds: e => e.CloudDownload.cloudTaskIds,
                cloudLoadedTasksMap: e => e.CloudDownload.cloudTasksMap
            }, mapCommitToProps: {}, mapDispatchToProps: {}, mapGettersToProps: {}
        })(i.default)
    }, 492: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(493), o = n.n(i);
        for (var r in i) "default" !== r && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(r);
        t.default = o.a
    }, 493: function (e, t, n) {
        "use strict";
        var i = this && this.__decorate || function (e, t, n, i) {
            var o, r = arguments.length, s = r < 3 ? t : null === i ? i = Object.getOwnPropertyDescriptor(t, n) : i;
            if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) s = Reflect.decorate(e, t, n, i); else for (var a = e.length - 1; a >= 0; a--) (o = e[a]) && (s = (r < 3 ? o(s) : r > 3 ? o(t, n, s) : o(t, n)) || s);
            return r > 3 && s && Object.defineProperty(t, n, s), s
        }, o = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const r = n(5), s = n(683), a = n(994), l = n(15), d = n(4), u = n(239), c = n(684), h = n(11),
            p = n(1).default.getLogger("Thunder.SuspensionRender FloatPanelVue"),
            f = c.HoverTextManagerNS.getHoverTextManager();
        let m = class extends r.Vue {
            constructor() {
                super(...arguments), this.refreshTimerId = void 0, this.taskBaseInfos = {}, this.taskIdLists = [], this.loadedIndex = 0, this.yellowTextShow = !1, this.blueTextShow = !1, this.textShowTimer = null, this.timerPause = !1, this.vipNoTaskText = "", this.vipNoTaskUrl = "", this.vipNoTaskReferfrom = "", this.vipNoTaskAidfrom = "", this.vipNoTaskColor = "", this.activeKey = "download", this.manualChangeTab = !1
            }

            get tabs() {
                return [{title: `${this.downloadingTitle}`, key: "download"}, {
                    title: `${this.cloudTitle}`,
                    key: "cloud"
                }]
            }

            get haveDownloadTask() {
                return this.taskIdLists.length > 0
            }

            onIsVipChanged(e) {
                p.information("onIsVipChanged", e), this.updateVipText()
            }

            onIsLoginedChanged(e) {
                p.information("onIsLoginedChanged", e), this.resetVipTextData()
            }

            onIsVisibleChanged(e) {
                p.information("onIsVisibleChanged", e), this.updateVipText(), e && this.initVipNoTaskText().catch(), this.onFloatPanelHover(e)
            }

            onShowVipNoTaskText(e) {
                if (p.information("onShowVipNoTaskText", e), e) {
                    let e = this.getCommonExtData();
                    this.statVipEvent("float_hover_vipsp_show", e)
                }
            }

            get downloadingTitle() {
                return 0 === this.taskIdLists.length ? "正在下载" : `正在下载(${this.taskIdLists.length})`
            }

            get cloudTitle() {
                let e = "云盘下载";
                do {
                    if (!this.isLogined) break;
                    if (0 === this.cloudTaskIds.length) break;
                    e = `云盘下载(${this.cloudTaskIds.length})`
                } while (0);
                return e
            }

            get footerText() {
                return "查看已完成"
            }

            get footerVisible() {
                return !0
            }

            get haveDownloadTaskStyle() {
                let e = "display: none";
                return this.haveDownloadTask && (e = ""), e
            }

            get isHaveDownloadTaskStyle() {
                let e = "";
                return this.haveDownloadTask && (e = "display: none"), e
            }

            get showVipNoTaskText() {
                return this.isVisible && !this.haveDownloadTask && Boolean(this.vipNoTaskText) && Boolean(this.vipNoTaskUrl)
            }

            getCloudLoadedDownloadingDetail() {
                let e = 0, t = 0, n = [], i = this.cloudLoadedTasksMap;
                for (let o in i) {
                    let r = i[o], s = r.taskStatus;
                    s !== l.DownloadKernel.TaskStatus.PreDownloading && s !== l.DownloadKernel.TaskStatus.StartWaiting && s !== l.DownloadKernel.TaskStatus.StartPending && s !== l.DownloadKernel.TaskStatus.Started || (t += r.fileSize, e += r.downloadSize, n.push(Number(o)))
                }
                return {downSize: e, totalSize: t, downloading: n}
            }

            getDownloadingDetail() {
                let e = 0, t = 0, n = [];
                for (let i in this.taskBaseInfos) {
                    let o = this.taskBaseInfos[i], r = o.taskStatus;
                    r !== l.DownloadKernel.TaskStatus.PreDownloading && r !== l.DownloadKernel.TaskStatus.StartWaiting && r !== l.DownloadKernel.TaskStatus.StartPending && r !== l.DownloadKernel.TaskStatus.Started || (t += o.fileSize, e += o.downloadSize, n.push(Number(i)))
                }
                return {downSize: e, totalSize: t, downloading: n}
            }

            get loadedList() {
                let e = this.loadedIndex + u.FloatPanelHelper.pageSize;
                return e > this.taskIdLists.length && (e = this.taskIdLists.length), this.taskIdLists.slice(0, e)
            }

            onTabSelectChange(e) {
                let t = "download" === e ? "downloading" : "yunpan_getback";
                h.XLStatNS.trackEvent("client_quick", "float_monitor_hover_tab_click", "", 0, 0, 0, 0, `tab_id=${t}`)
            }

            onFloatPanelHover(e) {
                do {
                    if (!e) break;
                    if (this.manualChangeTab) break;
                    if (this.activeKey = "download", !this.isLogined) break;
                    if (0 === this.cloudTaskIds.length) break;
                    if (0 === this.taskIdLists.length) {
                        this.activeKey = "cloud";
                        break
                    }
                    if (0 === this.getCloudLoadedDownloadingDetail().downloading.length) break;
                    if (0 === this.getDownloadingDetail().downloading.length) {
                        this.activeKey = "cloud";
                        break
                    }
                } while (0)
            }

            onClickShowFinishTask() {
                this.stat("float_monitor_hover_finished_click"), d.client.callServerFunction("SelectCategoryView", -1, l.DownloadKernel.CategroyViewID.Completed, void 0, !0).catch(), this.$emit("show-float-panel", !1)
            }

            onClickVipNoTaskText() {
                let e = this.vipNoTaskUrl;
                -1 !== e.indexOf("?") ? e += `&referfrom=${this.vipNoTaskReferfrom}&aidfrom=${this.vipNoTaskAidfrom}` : e += `?referfrom=${this.vipNoTaskReferfrom}&aidfrom=${this.vipNoTaskAidfrom}`, d.client.callServerFunction("OpenNewTab", e).catch();
                let t = this.getCommonExtData();
                this.statVipEvent("float_hover_vipsp_click", t)
            }

            clickItem(e) {
                this.stat("float_monitor_hover_downloading_click"), d.client.callServerFunction("SelectCategoryView", -1, l.DownloadKernel.CategroyViewID.Downloading, e, !0).catch(), this.$emit("show-float-panel", !1)
            }

            loadMore() {
                this.loadedIndex + u.FloatPanelHelper.pageSize > this.taskIdLists.length ? this.loadedIndex = this.taskIdLists.length : this.loadedIndex += u.FloatPanelHelper.pageSize, this.updateLoadedTasksMap()
            }

            updateLoadedTasksMap() {
                let e = this.loadedIndex + u.FloatPanelHelper.pageSize;
                e > this.taskIdLists.length && (e = this.taskIdLists.length);
                let t = this.taskIdLists.slice(0, e), n = {};
                for (let e of t) n[e] = u.FloatPanelHelper.noneReactiveTaskBaseInfos[e];
                this.taskBaseInfos = Object.assign({}, n)
            }

            refresh() {
                do {
                    if (this.refreshTimerId) break;
                    this.refreshTimerId = setTimeout(() => {
                        this.refreshTimerId = void 0, this.refreshImpl()
                    }, 200)
                } while (0)
            }

            refreshImpl() {
                let e = !1, t = 0, n = 0, i = !1, o = void 0, r = [], s = void 0;
                for (let i = 0; i < this.taskIdLists.length; i++) s = this.taskIdLists[i], u.FloatPanelHelper.isDownloadStatus(u.FloatPanelHelper.noneReactiveTaskBaseInfos[s].taskStatus) && (e = !0, t += u.FloatPanelHelper.noneReactiveTaskBaseInfos[s].downloadSpeed, n += u.FloatPanelHelper.noneReactiveTaskBaseInfos[s].vipSpeed, r.push(s));
                let a = u.FloatPanelHelper.cloudNoneReactiveTasksMap;
                for (let i = 0; i < this.cloudTaskIds.length; i++) {
                    let o = this.cloudTaskIds[i];
                    u.FloatPanelHelper.isDownloadStatus(a[o].taskStatus) && (e = !0, t += a[o].downloadSpeed, n += a[o].vipSpeed, r.push(o))
                }
                if (i = 1 === r.length) {
                    a.hasOwnProperty(String(r[0])) ? (o = u.FloatPanelHelper.getTaskStartPrompt(a[r[0]]), a[r[0]].taskStatus === l.DownloadKernel.TaskStatus.StartPending && void 0 === o && (o = "连接资源")) : (o = u.FloatPanelHelper.getTaskStartPrompt(u.FloatPanelHelper.noneReactiveTaskBaseInfos[r[0]]), u.FloatPanelHelper.noneReactiveTaskBaseInfos[r[0]].taskStatus === l.DownloadKernel.TaskStatus.StartPending && void 0 === o && (o = "连接资源"))
                }
                this.$emit("download-event", e, t, n, i, o)
            }

            onGetTaskListCallback(e) {
                if (e) {
                    e.sort((e, t) => t.createTime - e.createTime);
                    for (let t of e) u.FloatPanelHelper.noneReactiveTaskBaseInfos[t.taskId] = t;
                    this.taskIdLists = e.map(e => e.taskId), this.updateLoadedTasksMap()
                } else this.taskIdLists = [];
                this.refresh(), d.client.attachServerEvent("OnTaskInserted", this.onTaskInsertedCallback), d.client.attachServerEvent("OnTaskRemoved", this.onTaskRemovedCallback), d.client.attachServerEvent("OnTaskStatusChanged", this.onTaskStatusChangedCallback), d.client.attachServerEvent("OnTaskDetailChanged", this.onTaskDetailChangedCallback)
            }

            getTaskListAfterLoadTaskFinish() {
                d.client.callServerFunction("GetCategoryViewTaskListForSuspensionWnd", l.DownloadKernel.CategroyViewID.Downloading).then(e => {
                    this.onGetTaskListCallback(e)
                })
            }

            onGetTaskbaseInfosCallback(e, t) {
                for (let t of e) u.FloatPanelHelper.noneReactiveTaskBaseInfos[t.taskId] = t;
                this.taskIdLists.splice(0, 0, ...t), this.updateLoadedTasksMap()
            }

            onTaskInsertedCallback(e, t, n, i) {
                return o(this, void 0, void 0, function* () {
                    if (-1 === t && n === l.DownloadKernel.CategroyViewID.Downloading) {
                        let e = null;
                        try {
                            e = JSON.parse(i)
                        } catch (e) {
                            p.warning(e)
                        }
                        if (e && e.length > 0) {
                            let t = yield d.client.callServerFunction("GetTaskBaseInfos", e);
                            this.onGetTaskbaseInfosCallback(t, e)
                        }
                    }
                })
            }

            onTaskRemovedCallback(e, t, n, i) {
                if (-1 === t && n === l.DownloadKernel.CategroyViewID.Downloading) {
                    let e = [];
                    try {
                        e = JSON.parse(i)
                    } catch (e) {
                        p.warning(e)
                    }
                    let t = [...this.taskIdLists];
                    for (let n = 0; n < e.length; n++) {
                        let i = e[n];
                        delete u.FloatPanelHelper.noneReactiveTaskBaseInfos[i];
                        let o = t.indexOf(i);
                        -1 !== o && t.splice(o, 1)
                    }
                    this.taskIdLists = t, this.updateLoadedTasksMap(), this.refresh()
                }
            }

            onTaskStatusChangedCallback(e, t) {
                {
                    let e = null;
                    try {
                        e = JSON.parse(t)
                    } catch (e) {
                        p.warning(e)
                    }
                    if (e) {
                        for (let t in e) {
                            let n = e[t];
                            u.FloatPanelHelper.noneReactiveTaskBaseInfos.hasOwnProperty(String(t)) && (u.FloatPanelHelper.noneReactiveTaskBaseInfos[t].taskStatus = n)
                        }
                        this.updateLoadedTasksMap(), this.refresh()
                    }
                }
            }

            onTaskDetailChangedCallback(e, t) {
                {
                    let e = null;
                    try {
                        e = JSON.parse(t)
                    } catch (e) {
                        p.warning(e)
                    }
                    e && (u.FloatPanelHelper.noneReactiveTaskBaseInfos = Object.assign({}, u.FloatPanelHelper.noneReactiveTaskBaseInfos, e), this.updateLoadedTasksMap(), this.refresh())
                }
            }

            listenTasksEvent() {
                d.client.callServerFunction("IsLoadStorageTaskFinish").then(e => {
                    e && this.getTaskListAfterLoadTaskFinish()
                })
            }

            stat(e, t) {
                let n = "";
                null !== t && void 0 !== t && "" !== t && (n = t), p.information(e, n), h.XLStatNS.trackEvent("client_quick", e, "", 0, 0, 0, 0, n)
            }

            statVipEvent(e, t) {
                let n = "";
                null !== t && void 0 !== t && "" !== t && (n = t), p.information(e, n), h.XLStatNS.trackEvent("xlx_vip_event", e, "", 0, 0, 0, 0, n)
            }

            escape2Html(e) {
                return e.replace("&gt;", ">")
            }

            checkUrlRefParam(e) {
                return -1 === e.indexOf("?") && (e += "?"), e += "referfrom=v_pc_xlx_ggong_pay_xfq"
            }

            getCommonExtData() {
                let e = "";
                return e = (e = (e = e + ",is_login=" + (this.isLogined ? "1" : "0")) + ",is_vip=" + (this.isVip ? "1" : "0")) + ",vip_type=" + this.vipType
            }

            onTextShow(e) {
                p.information("onTextShow", e);
                let t = this.getCommonExtData();
                t = t + ",type=" + e, this.statVipEvent("float_hover_wzl_show", t)
            }

            onTextClick(e) {
                p.information("onTextShow");
                let t = this.getCommonExtData();
                t = t + ",type=" + e, this.statVipEvent("float_open_vip_click", t);
                let n = this.yellowTextUrl + "&aidfrom=xds_golden";
                "blue" === e && (n = this.blueTextUrl + "&aidfrom=xds_common"), p.information("url", n), d.client.callServerFunction("OpenNewTab", n).catch()
            }

            resetVipTextData() {
                let e = f.getText(this.isLogined);
                if (p.information("textData", e), e) for (let t = 0; t < e.length; t++) {
                    const n = e[t];
                    p.information("element", n), n && n.color && "yellow" === n.color && (n.text && "" !== n.text && (this.yellowhoverText = this.escape2Html(n.text)), n.url && "" !== n.url && (this.yellowTextUrl = this.checkUrlRefParam(n.url))), n && n.color && "blue" === n.color && (n.text && "" !== n.text && (this.bluehoverText = this.escape2Html(n.text)), n.url && "" !== n.url && (this.blueTextUrl = this.checkUrlRefParam(n.url)))
                }
            }

            showVipText() {
                this.yellowTextShow = !1, this.blueTextShow = !0;
                let e = this.getCommonExtData();
                this.statVipEvent("float_hover_show", e), this.onTextShow("1"), p.information("bluehoverText", this.bluehoverText), p.information("yellowhoverText", this.yellowhoverText), p.information("blueTextUrl", this.blueTextUrl), p.information("yellowTextUrl", this.yellowTextUrl), p.information("textShowTimer", this.textShowTimer), this.textShowTimer || (this.textShowTimer = setInterval(() => {
                    this.timerPause || (this.blueTextShow = !this.blueTextShow, this.yellowTextShow = !this.yellowTextShow, p.information("bluehoverText", this.bluehoverText), p.information("yellowhoverText", this.yellowhoverText), p.information("blueTextUrl", this.blueTextUrl), p.information("yellowTextUrl", this.yellowTextUrl), p.information("blueTextShow", this.blueTextShow), p.information("yellowTextShow", this.yellowTextShow), this.blueTextShow && this.onTextShow("1"), this.yellowTextShow && this.onTextShow("2"))
                }, 5e3))
            }

            hideVipText() {
                this.blueTextShow = !1, this.yellowTextShow = !1, this.textShowTimer && (clearInterval(this.textShowTimer), this.textShowTimer = null)
            }

            updateVipText() {
                !this.isVip && this.isVisible ? this.showVipText() : this.hideVipText()
            }

            enter() {
                this.$emit("floatenter")
            }

            leave() {
                this.$emit("floatleave")
            }

            onMouseOver(e) {
                p.information("onMouseOver", e), p.information("isDonwloading", f.isDonwloading), this.timerPause = !0, e && this.$emit("set-vip-skin", !0)
            }

            onMouseLeave(e) {
                p.information("onMouseLeave", e), this.timerPause = !1, e && this.$emit("set-vip-skin", !1)
            }

            clearVipNoTaskText() {
                this.vipNoTaskText = "", this.vipNoTaskUrl = "", this.vipNoTaskReferfrom = "", this.vipNoTaskAidfrom = "", this.vipNoTaskColor = ""
            }

            initVipNoTaskText() {
                return o(this, void 0, void 0, function* () {
                    this.clearVipNoTaskText();
                    let e = yield d.client.callServerFunction("GetVipLabelConfig", "xlx_xfq_notask_text");
                    p.information("initVipNoTaskText", e);
                    let t = e && e.xlx_xfq_notask_text ? e.xlx_xfq_notask_text : null;
                    if (t) {
                        let e = 0, n = t[e];
                        n && (n.text && (this.vipNoTaskText = n.text), n.url && (this.vipNoTaskUrl = n.url), this.vipNoTaskReferfrom = n.referfrom, this.vipNoTaskAidfrom = n.aidfrom), (n = t[e = 1]) && n.text && (this.vipNoTaskColor = n.text)
                    }
                })
            }

            mounted() {
                this.listenTasksEvent(), p.information("float-panel mounted"), this.resetVipTextData(), this.updateVipText()
            }

            destroyed() {
                null !== this.textShowTimer && (clearTimeout(this.textShowTimer), this.textShowTimer = null)
            }
        };
        i([r.Prop({})], m.prototype, "cloudTaskIds", void 0), i([r.Prop({})], m.prototype, "isLogined", void 0), i([r.Prop({})], m.prototype, "isVip", void 0), i([r.Prop({})], m.prototype, "vipType", void 0), i([r.Prop({})], m.prototype, "isVisible", void 0), i([r.Prop({})], m.prototype, "cloudLoadedTasksMap", void 0), i([r.Watch("isVip")], m.prototype, "onIsVipChanged", null), i([r.Watch("isLogined")], m.prototype, "onIsLoginedChanged", null), i([r.Watch("isVisible")], m.prototype, "onIsVisibleChanged", null), i([r.Watch("showVipNoTaskText")], m.prototype, "onShowVipNoTaskText", null), i([r.Watch("activeKey")], m.prototype, "onTabSelectChange", null), m = i([r.Component({
            components: {
                TaskItem: s.default,
                CloudDownloadContainer: a.default
            }
        })], m), t.default = m
    }, 494: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(495), o = n.n(i);
        for (var r in i) "default" !== r && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(r);
        t.default = o.a
    }, 495: function (e, t, n) {
        "use strict";
        var i = this && this.__decorate || function (e, t, n, i) {
            var o, r = arguments.length, s = r < 3 ? t : null === i ? i = Object.getOwnPropertyDescriptor(t, n) : i;
            if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) s = Reflect.decorate(e, t, n, i); else for (var a = e.length - 1; a >= 0; a--) (o = e[a]) && (s = (r < 3 ? o(s) : r > 3 ? o(t, n, s) : o(t, n)) || s);
            return r > 3 && s && Object.defineProperty(t, n, s), s
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(6), r = n(5), s = n(36), a = n(239);
        let l = class extends r.Vue {
            get taskName() {
                return this.taskBase.taskName
            }

            get getTaskProgress() {
                let e = "width: ", t = 0;
                0 !== this.taskBase.fileSize && (t = this.taskBase.downloadSize / this.taskBase.fileSize), t >= 1 && (t = .9999);
                let n = (100 * t).toFixed(2) + "%";
                return "100.00%" === n && (n = "99.99%"), e += n
            }

            get getTaskIcon() {
                return s.TaskUtilHelper.getTaskIcon(this.taskBase.taskName, this.taskBase.taskType)
            }

            get stateName() {
                let e = "", t = a.FloatPanelHelper.getTaskStatusPrompt(this.taskBase),
                    n = a.FloatPanelHelper.getTaskStartPrompt(this.taskBase);
                return o.isNullOrUndefined(n) ? o.isNullOrUndefined(t) || (e = t) : e = n, e
            }
        };
        i([r.Prop({})], l.prototype, "taskId", void 0), i([r.Prop({})], l.prototype, "taskBase", void 0), l = i([r.Component({})], l), t.default = l
    }, 496: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(497), o = n.n(i);
        for (var r in i) "default" !== r && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(r);
        t.default = o.a
    }, 497: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(995), o = n(240);
        t.default = o.connector.connect({
            mapStateToProps: {cloudTaskIds: e => e.CloudDownload.cloudTaskIds},
            mapCommitToProps: {
                resetStore: "RESET_STORE",
                initTasks: "INIT_TASKS",
                removeTasks: "REMOVE_TASKS",
                insertTasks: "INSERT_TASKS",
                updateTasksDetail: "UPDATE_TASKS_DETAIL",
                updateTasksStatus: "UPDATE_TASKS_STATUS",
                loadMore: "LOAD_MORE"
            },
            mapDispatchToProps: {},
            mapGettersToProps: {loadedList: e => e.loadedList}
        })(i.default)
    }, 498: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(499), o = n.n(i);
        for (var r in i) "default" !== r && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(r);
        t.default = o.a
    }, 499: function (e, t, n) {
        "use strict";
        var i = this && this.__decorate || function (e, t, n, i) {
            var o, r = arguments.length, s = r < 3 ? t : null === i ? i = Object.getOwnPropertyDescriptor(t, n) : i;
            if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) s = Reflect.decorate(e, t, n, i); else for (var a = e.length - 1; a >= 0; a--) (o = e[a]) && (s = (r < 3 ? o(s) : r > 3 ? o(t, n, s) : o(t, n)) || s);
            return r > 3 && s && Object.defineProperty(t, n, s), s
        }, o = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const r = n(5), s = n(1), a = n(4), l = n(11), d = n(15), u = n(996),
            c = s.default.getLogger("Suspension cloud");
        let h = class extends r.Vue {
            constructor() {
                super(...arguments), this.currentCategoryId = null, this.statusChangedCookie = null, this.detailChangedCookie = null, this.insertedCookie = null, this.removedCookie = null
            }

            get empty() {
                return !this.isLogined || !this.cloudTaskIds.length
            }

            onLoginChange(e, t) {
                return o(this, void 0, void 0, function* () {
                    if (c.information("cloud login change", e, t), this.resetStore(), this.currentCategoryId = null, this.isLogined) {
                        yield a.client.callServerFunction("IsCategoryLoaded"), yield a.client.callServerFunction("IsLoadStorageTaskFinish");
                        let e = yield a.client.callServerFunction("GetUserID"),
                            t = yield a.client.callServerFunction("GetCategoryFromUserId", "ThunderPanPlugin", e, "ThunderPan Download Category");
                        t && (this.currentCategoryId = t.categoryId);
                        let n = yield a.client.callServerFunction("GetCategoryTaskList", this.currentCategoryId, d.DownloadKernel.CategroyViewID.Downloading);
                        if (n && n.length > 0) {
                            let e = yield a.client.callServerFunction("GetTaskBaseInfos", n);
                            e && e.length > 0 && this.initTasks(e)
                        }
                    }
                })
            }

            onTaskStatusChanged(e, t) {
                c.information("onTaskStatusChanged"), this.updateTasksStatus(t)
            }

            onTaskDetailChanged(e, t) {
                c.information("onTaskDetailChanged"), this.updateTasksDetail(t)
            }

            onTaskInserted(e, t, n, i) {
                return o(this, void 0, void 0, function* () {
                    c.information("onTaskInserted");
                    do {
                        if (0 === i.length) break;
                        if (this.currentCategoryId !== t) break;
                        if (n !== d.DownloadKernel.CategroyViewID.Downloading) break;
                        let e = yield a.client.callServerFunction("GetTaskBaseInfos", i);
                        e && e.length > 0 && this.insertTasks(e)
                    } while (0)
                })
            }

            onTaskRemoved(e, t, n, i) {
                c.information("onTaskRemoved");
                do {
                    if (0 === i.length) break;
                    if (this.currentCategoryId !== t) break;
                    if (n !== d.DownloadKernel.CategroyViewID.Downloading) break;
                    this.removeTasks(i)
                } while (0)
            }

            created() {
                return o(this, void 0, void 0, function* () {
                    c.information("cloud created"), this.statusChangedCookie = a.client.attachServerEvent("OnTaskStatusChanged", (e, ...t) => {
                        let n = null;
                        try {
                            n = JSON.parse(t[0])
                        } catch (e) {
                        }
                        n && (this.onTaskStatusChanged(e, n), this.$nextTick(() => {
                            this.$emit("refresh-event")
                        }))
                    }), this.detailChangedCookie = a.client.attachServerEvent("OnTaskDetailChanged", (e, ...t) => {
                        let n = null;
                        try {
                            n = JSON.parse(t[0])
                        } catch (e) {
                        }
                        n && (this.onTaskDetailChanged(e, n), this.$nextTick(() => {
                            this.$emit("refresh-event")
                        }))
                    }), this.insertedCookie = a.client.attachServerEvent("OnTaskInserted", (e, t, n, i) => {
                        let o = [];
                        try {
                            o = JSON.parse(i)
                        } catch (e) {
                        }
                        o && this.onTaskInserted(e, t, n, o)
                    }), this.removedCookie = a.client.attachServerEvent("OnTaskRemoved", (e, t, n, i) => {
                        let o = [];
                        try {
                            o = JSON.parse(i)
                        } catch (e) {
                        }
                        o && this.onTaskRemoved(e, t, n, o)
                    })
                })
            }

            mounted() {
                c.information("cloud panel mounted")
            }

            destroyed() {
                this.statusChangedCookie && (a.client.detachServerEvent("OnTaskStatusChanged", this.statusChangedCookie), this.statusChangedCookie = null), this.detailChangedCookie && (a.client.detachServerEvent("OnTaskDetailChanged", this.detailChangedCookie), this.detailChangedCookie = null), this.insertedCookie && (a.client.detachServerEvent("OnTaskInserted", this.insertedCookie), this.insertedCookie = null), this.removedCookie && (a.client.detachServerEvent("OnTaskRemoved", this.removedCookie), this.removedCookie = null)
            }

            clickItem(e) {
                l.XLStatNS.trackEvent("client_quick", "float_monitor_hover_getback_item_click"), a.client.callServerFunction("SelectCategoryView", -1, d.DownloadKernel.CategroyViewID.Downloading, e, !0).catch(), this.$emit("show-float-panel", !1)
            }
        };
        i([r.Prop({})], h.prototype, "isLogined", void 0), i([r.Prop({})], h.prototype, "cloudTaskIds", void 0), i([r.Prop({})], h.prototype, "loadedList", void 0), i([r.Prop({})], h.prototype, "resetStore", void 0), i([r.Prop({})], h.prototype, "initTasks", void 0), i([r.Prop({})], h.prototype, "removeTasks", void 0), i([r.Prop({})], h.prototype, "insertTasks", void 0), i([r.Prop({})], h.prototype, "updateTasksDetail", void 0), i([r.Prop({})], h.prototype, "updateTasksStatus", void 0), i([r.Prop({})], h.prototype, "loadMore", void 0), i([r.Watch("isLogined", {immediate: !0})], h.prototype, "onLoginChange", null), h = i([r.Component({components: {TaskItemContainer: u.default}})], h), t.default = h
    }, 5: function (e, t, n) {
        e.exports = n(9)(213)
    }, 50: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(33), o = n(12), r = n(30), s = n(47), a = n(29);
        t.Client = class extends o.EventEmitter {
            constructor(e) {
                if (e = e || {}, super(), this.inprocess = !1, this.context = void 0, e.context && (this.context = Object.assign({}, e.context), this.context.productId = e.socketPrex), e.socket) this.socket = e.socket, this.bind(); else if (global.__xdasIPCServer && global.__xdasIPCServer.getProductId().toLowerCase() === e.socketPrex.toLowerCase()) this.inprocess = !0; else {
                    let t = a.getSockPath(e.socketPrex);
                    this.socket = i.connect(t), this.bind()
                }
            }

            isInprocess() {
                return this.inprocess
            }

            getContext() {
                return this.context
            }

            bind() {
                const e = new s.Parser, t = this.socket;
                t.on("data", t => {
                    e.feed(t)
                }), t.on("connect", () => {
                    this.emit("connect")
                }), t.on("end", () => {
                    r.information("socket is ended"), this.socket = null, this.emit("end")
                }), t.on("error", e => {
                    this.socket = null, this.emit("error", e)
                }), e.on("message", e => {
                    this.emit("message", e)
                }), this.parser = e
            }

            send(e) {
                if (this.socket) try {
                    this.socket.write(this.parser.encode(e))
                } catch (e) {
                    r.error(e.message)
                } else r.information("This socket has been ended by the other party", this.context && this.context.name)
            }
        }
    }, 500: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(501), o = n.n(i);
        for (var r in i) "default" !== r && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(r);
        t.default = o.a
    }, 501: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(683), o = n(240);
        t.default = o.connector.connect({
            mapStateToProps: {
                taskBase: (e, t) => {
                    let n = null, i = t.taskId;
                    return n = e.CloudDownload.cloudTasksMap[i]
                }
            }, mapCommitToProps: {}, mapDispatchToProps: {}, mapGettersToProps: {}
        })(i.default)
    }, 51: function (e, t) {
        e.exports = require("string_decoder")
    }, 52: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(14), r = (n(21), n(2)), s = n(6);
        let a = null;
        const l = n(11), d = n(3), u = n(1), c = n(8), h = n(18), p = n(7), f = "xdas_profile_stat";
        let m = "", g = void 0, S = null, v = void 0, T = null,
            y = c.default(r.join(__rootDir, "../bin/ThunderHelper.node")), w = new Set;

        function _() {
            return i(this, void 0, void 0, function* () {
                return new Promise(e => i(this, void 0, void 0, function* () {
                    void 0 === v && (null === T && (T = new Promise(e => {
                        e(v = function (e) {
                            let t = "";
                            if (0 === e.length && "renderer" === process.type) {
                                let e = r.normalize(decodeURIComponent(window.location.href)),
                                    n = e.indexOf(process.resourcesPath);
                                n = n > -1 ? n + process.resourcesPath.length + 1 : n;
                                let i = e.length - 1, o = e.indexOf("?"), s = e.indexOf("#");
                                i = o > -1 ? Math.min(o - 1, i) : i, i = s > -1 ? Math.min(s - 1, i) : i, n > -1 && i >= n && (t = e.substr(n, i - n + 1))
                            }
                            return 0 === t.length && (t = 0 !== e.length ? e : process.type), t = t.replace(/\||,|;/g, "_")
                        }(""))
                    })), v = yield T), e(v)
                }))
            })
        }

        function b(e) {
            let t = "";
            do {
                if (null === e || void 0 === e) break;
                switch (typeof e) {
                    case"string":
                        t = e;
                        break;
                    case"object":
                        t = s.inspect(e) || "";
                        break;
                    case"number":
                    case"boolean":
                        t = e.toString() || ""
                }
            } while (0);
            return t
        }

        function C(e) {
            return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")
        }

        function k(e) {
            return i(this, void 0, void 0, function* () {
                return new Promise(t => i(this, void 0, void 0, function* () {
                    let i = void 0;
                    null === a && (a = yield Promise.resolve().then(() => n(38)));
                    let o = a.createHash("md5");
                    null !== o && (i = o.update(e).digest("hex")), t(i)
                }))
            })
        }

        function E() {
            return new Promise(e => i(this, void 0, void 0, function* () {
                let t = "";
                t = void 0 === g ? "browser" === process.type ? function () {
                    if (void 0 === g) {
                        let e = process.argv.length, t = process.argv;
                        for (let n = 0; n < e; n++) {
                            let e = t[n];
                            if (e.startsWith("-StartType:")) {
                                g = e.substring("-StartType:".length);
                                break
                            }
                        }
                        void 0 === g && (g = "")
                    }
                    return g
                }() : yield function () {
                    return i(this, void 0, void 0, function* () {
                        return null === S && (S = new Promise(e => {
                            d.ipcRenderer.send(h.ThunderChannelList.channelRMGetBrowserStartType), d.ipcRenderer.once(h.ThunderChannelList.channelMRGetBrowserStartTypeResult, (t, n) => {
                                g = n, e(n), S = null
                            })
                        })), S
                    })
                }() : g, e(t)
            }))
        }

        function I(e, t, n, o) {
            return i(this, void 0, void 0, function* () {
                let r = b(t), s = b(n), a = yield k(s), d = function (e) {
                    let t = new RegExp(C("file:///"), "g"), n = new RegExp(C(process.resourcesPath + "\\"), "g"),
                        i = new RegExp(C(encodeURI(process.resourcesPath.replace(/\\/g, "/") + "/")), "g");
                    return e.replace(t, "").replace(n, "").replace(i, "")
                }(b(o)), u = yield k(d), c = `${e}:${a}:${u}`;
                w.has(c) || (w.add(c), l.XLStatNS.trackEvent(f, "uncaught_exception", "", 0, 0, 0, 0, `type=${e},business_name=${yield _()},code=${r},message_hash=${a},message=${encodeURI(s)},stack_hash=${u},stack=${encodeURI(d)}`)), function (e, t, n, o) {
                    return i(this, void 0, void 0, function* () {
                    })
                }().catch()
            })
        }

        function P(e) {
            console.error(e);
            let t = e || {};
            I("unhandledRejection", t.code, t instanceof Error ? t.message : t, t.stack).catch()
        }

        !function (e) {
            e.init = function (e) {
                m = e
            }, e.trackColdStartUpEvent = function (e) {
                return i(this, void 0, void 0, function* () {
                    let t = y.iSColdStartUp() ? 1 : 0, n = o.release(),
                        i = y.performanceMonitorReporter.getProcessUptime(), r = yield E(),
                        s = `key=${e},start_type=${r},cold_start_up=${t},os_version=${n},cost_time=${i}`;
                    l.XLStatNS.trackEvent(f, "cold_start_up", "", 0, 0, 0, 0, s)
                })
            }
        }(t.PerformanceMonitorStatNS || (t.PerformanceMonitorStatNS = {})), function () {
            return i(this, void 0, void 0, function* () {
                if (process.on("uncaughtException", e => {
                    console.error(e);
                    let t = e || {};
                    I("uncaughtException", t.code, t.message, t.stack).catch()
                }), "browser" === process.type) process.on("unhandledRejection", (e, t) => {
                    P(e)
                }), d.ipcMain.on(h.ThunderChannelList.channelRMGetBrowserStartType, function (e) {
                    return i(this, void 0, void 0, function* () {
                        let t = yield E();
                        e.sender.send(h.ThunderChannelList.channelMRGetBrowserStartTypeResult, t)
                    })
                }); else if ("browser" !== process.type) {
                    window.addEventListener("unhandledrejection", e => {
                        P(e && e.reason || {})
                    });
                    let e = yield p.asyncRemoteCall.getCurrentWebContents();
                    null !== e && void 0 !== e && e.once("did-finish-load", () => {
                        (function () {
                            return i(this, void 0, void 0, function* () {
                                do {
                                    if ("browser" === process.type) break;
                                    if (null === window.performance.timing || void 0 === window.performance.timing) break;
                                    let e = y.iSColdStartUp() ? 1 : 0, t = o.release(), n = window.performance.timing,
                                        i = n.loadEventEnd - n.navigationStart, r = n.fetchStart - n.navigationStart,
                                        s = n.domainLookupEnd - n.domainLookupStart, a = n.connectEnd - n.connectStart,
                                        d = n.responseStart - n.requestStart, u = n.responseEnd - n.responseStart,
                                        c = n.domComplete - n.domLoading, h = yield E();
                                    l.XLStatNS.trackEvent(f, "page_load_time", "", 0, 0, 0, 0, `start_type=${h},cold_start_up=${e},os_version=${t},load_time=${i},before_fetch_time=${r},domin_lookup_time=${s},connect_time=${a},first_response_time=${d},responseTime=${u},domTime=${c},process=${m}`)
                                } while (0)
                            })
                        })().catch()
                    })
                }
                u.default.hook("beforeLog", (e, t, ...n) => {
                    e === u.LogLevel.Critical && l.XLStatNS.trackEvent(f, "critical_error", "", 0, 0, 0, 0, `module_name=${t},messages=${n}`)
                })
            })
        }().catch()
    }, 53: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), t.getWebContents = t.getCurrentWebContents = t.getCurrentWindow = t.getGlobal = t.getBuiltin = t.remoteRequire = t.Interest = void 0;
        const i = n(3), o = n(41), r = n(54), s = n(55), a = n(34), l = n(56), d = n(13), u = n(35), c = i.ipcRenderer,
            h = process.electronBinding("v8_util"), p = new r.default, f = h.createIDWeakMap(),
            m = h.getHiddenValue(global, "contextId");

        class g {
            constructor(e) {
                if ("object" == typeof e ? (this.on = "object" == typeof e.on ? e.on : {}, this.once = "object" == typeof e.once ? e.once : {}) : (this.on = {}, this.once = {}), !this.check()) throw new Error("unexpected param")
            }

            check() {
                let e = !0;
                do {
                    let t = Object.getOwnPropertyNames(this.on);
                    if (t.forEach(t => {
                        "function" != typeof this.on[t] && (e = !1)
                    }), !e) break;
                    (t = Object.getOwnPropertyNames(this.once)).forEach(t => {
                        "function" != typeof this.once[t] && (e = !1)
                    })
                } while (0);
                return e
            }
        }

        function S(e, t = new Set) {
            const n = e => {
                if (t.has(e)) return {type: "value", value: null};
                let i = e;
                if (Array.isArray(e)) {
                    t.add(e);
                    let n = {type: "array", value: S(e, t)};
                    return t.delete(e), n
                }
                if (ArrayBuffer.isView(i)) return {type: "buffer", value: o.Buffer.from(e)};
                if (e instanceof Date) return {type: "date", value: e.getTime()};
                if (null != e && "object" == typeof e) {
                    if (u.isPromise(e)) return {
                        type: "promise", then: n(function (t, n) {
                            e.then(t, n)
                        })
                    };
                    if (h.getHiddenValue(e, "__remote_id__")) return {
                        type: "remote-object",
                        id: h.getHiddenValue(e, "__remote_id__")
                    };
                    let i = {
                        type: e instanceof g ? "interest" : "object",
                        name: e.constructor ? e.constructor.name : "",
                        members: []
                    };
                    t.add(e);
                    for (let t in e) i.members.push({name: t, value: n(e[t])});
                    return t.delete(e), i
                }
                if ("function" == typeof e) {
                    return {
                        type: "function",
                        id: p.add(e),
                        location: h.getHiddenValue(e, "__remote_call_location__"),
                        length: e.length
                    }
                }
                return {type: "value", value: e}
            };
            return e.map(n)
        }

        function v(e, t, n) {
            u.isPromise(e) ? e.then(e => {
                t(e)
            }, e => {
                n(e)
            }) : t(e)
        }

        function T(e, t, n, i = !1) {
            const o = t => {
                if (e.hasOwnProperty(t.name) && !i) return;
                let n, o = {enumerable: t.enumerable, configurable: !0};
                if ("method" === t.type) {
                    if (t.value.refId) {
                        if (f.has(t.value.refId) && (n = f.get(t.value.refId)), null == n) throw new Error("member refId pointer to null" + t.value.refId + "name: " + t.name)
                    } else n = b(t.value, e, t.name);
                    o.get = (() => n), o.set = (e => n = e)
                } else "get" === t.type && (o.get = (() => n), t.writable && (o.set = (e => {
                    n = e
                })), n = b(t.value));
                Object.defineProperty(e, t.name, o)
            };
            if (Array.isArray(n)) {
                let e = n.length;
                for (let t = 0; t < e; t++) o(n[t])
            }
        }

        function y(e, t, n) {
            if (n) {
                let t = b(n);
                Object.setPrototypeOf(e, t)
            }
        }

        function w(e, t) {
            h.setHiddenValue(e, "__remote_id__", t)
        }

        function _(e) {
            return h.getHiddenValue(e, "__remote_id__")
        }

        function b(e, t, n) {
            const i = {
                value: () => e.value,
                array: () => e.members.map(e => b(e)),
                buffer: () => o.Buffer.from(e.value),
                promise: () => Promise.resolve({then: b(e.then)}),
                error: () => (function (e) {
                    const t = (() => "error" === e.type ? new Error : {})();
                    for (let n = 0; n < e.members.length; n++) {
                        let {name: i, value: o} = e.members[n];
                        t[i] = o
                    }
                    return t
                })(e),
                date: () => new Date(e.value),
                exception: () => {
                    throw new Error(`${e.message}\n${e.stack}`)
                }
            };
            let r;
            return e.type in i ? r = i[e.type]() : e.refId ? f.has(e.refId) ? (h.addRemoteObjectRef(m, e.refId), r = f.get(e.refId)) : (d.warn("[metaToValue] refId point to null" + e.refId), r = "function" === e.type ? () => {
            } : {}) : e.id ? f.has(e.id) ? (h.addRemoteObjectRef(m, e.id), T(r = f.get(e.id), e.id, e.members, !0), y(r, e.id, e.proto)) : (r = "function" === e.type ? t ? function (e, t, n) {
                if (f.has(n.id)) return f.get(n.id);
                let i = _(e), o = function (...e) {
                    throw Error("never should come to a proxied function")
                };
                Object.defineProperty(o, "name", {value: t, writable: !1, enumerable: !0});
                let r = new Proxy(o, {
                    apply: (e, n, o) => new Promise((e, r) => {
                        let d = _(n);
                        if (d || (d = _(n.__remoteObj_)), !d) throw Error("is this function was a bound function?");
                        let u = a.default.browser.memberCall, h = l.default(u), p = S(o);
                        c.send(u, m, h, d, i, t, p), s.default.add(h, t => {
                            try {
                                v(b(t), e, r)
                            } catch (e) {
                                r(e)
                            }
                        })
                    }), construct: (e, n, o) => new Promise((e, o) => {
                        let r = a.default.browser.memberConstruct, d = l.default(r);
                        c.send(r, m, d, i, t, S(n)), s.default.add(d, t => {
                            try {
                                let n = b(t);
                                e(n)
                            } catch (e) {
                                o(e)
                            }
                        })
                    })
                });
                return h.setHiddenValue(o, "__remote_id__", n.id), r
            }(t, n, e) : function (e) {
                let t = e.id;
                const n = function (...e) {
                    throw new Error("Should Never com to a remoteFunction PlaceHolder")
                };
                return w(n, t), new Proxy(n, {
                    apply: (e, n, i) => new Promise((e, o) => {
                        let r = a.default.browser.functionCall, d = l.default(r), u = _(n);
                        c.send(r, m, d, u, t, S(i)), s.default.add(d, t => {
                            try {
                                v(b(t), e, o)
                            } catch (e) {
                                o(e)
                            }
                        })
                    }), construct: (e, n, i) => new Promise((e, i) => {
                        let o = a.default.browser.construct, r = l.default(o);
                        c.send(o, m, r, t, S(n)), s.default.add(r, t => {
                            try {
                                let n = b(t);
                                e(n)
                            } catch (e) {
                                i(e)
                            }
                        })
                    })
                })
            }(e) : {}, h.setRemoteObjectFreer(r, m, e.id), f.set(e.id, r), h.setHiddenValue(r, "__remote_id__", e.id), h.addRemoteObjectRef(m, e.id), function (e) {
                let t = _(e);
                Object.defineProperties(e, {
                    __set: {
                        enumerable: !1, writable: !1, value: function (n, i) {
                            if ("function" == typeof i) throw new Error("set a function to a remote member is dangerous");
                            return new Promise((o, r) => {
                                let d = a.default.browser.memberSet, u = l.default(d), h = S([i]);
                                c.send(d, m, u, t, n, h), s.default.add(u, t => {
                                    try {
                                        let s = b(t);
                                        e[n] = i, o(s)
                                    } catch (e) {
                                        r(e)
                                    }
                                })
                            })
                        }
                    }, __get: {
                        enumerable: !1, writable: !1, value: function (n) {
                            return new Promise((i, o) => {
                                let r = a.default.browser.memberGet, d = l.default(r);
                                c.send(r, m, d, t, n), s.default.add(d, t => {
                                    try {
                                        const r = b(t);
                                        e[n] = r, i(r)
                                    } catch (e) {
                                        o(e)
                                    }
                                })
                            })
                        }
                    }, __sync: {
                        enumerable: !1, writable: !1, value: function () {
                            return new Promise((e, n) => {
                                let i = a.default.browser.sync, o = l.default(i);
                                c.send(i, m, o, t), s.default.add(o, i => {
                                    try {
                                        if (i.id !== t) throw Error("SYNC_RETURN: remote id not match");
                                        let o = b(i);
                                        e(o)
                                    } catch (e) {
                                        n(e)
                                    }
                                })
                            })
                        }
                    }
                })
            }(r), T(r, e.id, e.members), y(r, e.id, e.proto), Object.defineProperty(r.constructor, "name", {value: e.name}), e.extendedMemberNames && e.extendedMemberNames.forEach((e, t) => {
                let n = r[e], i = r.__proto__;
                for (; i;) {
                    if (Object.prototype.hasOwnProperty.call(i, e)) {
                        delete i[e];
                        break
                    }
                    i = i.__proto__
                }
                Object.defineProperty(r, e, {value: n, enumerable: !1, writable: !1, configurable: !0})
            })) : d.error("no id of meta:", e), r
        }

        t.Interest = g;

        class C {
            constructor(...e) {
                if (this.__resolved_ = !1, this.__promise_ = null, this.__remoteObj_ = null, this.__what_ = "", this.__name_ = "", "string" === typeof arguments[0]) {
                    let e = arguments[0], t = arguments[1];
                    this.__what_ = e, this.__name_ = t || e, this.__resolved_ = !1, this.__remoteObj_ = null, this.__promise_ = new Promise((n, i) => {
                        let o = this.getChannel(e), r = l.default(o);
                        c.send(o, m, r, t), s.default.add(r, e => {
                            try {
                                let t = b(e);
                                this.__remoteObj_ = t, this.__resolved_ = !0, n(t)
                            } catch (e) {
                                i(e)
                            }
                        })
                    })
                } else this.__remoteObj_ = arguments[0], this.__resolved_ = !0, this.__promise_ = null
            }

            getChannel(e) {
                let t = "";
                switch (e) {
                    case"module":
                        t = a.default.browser.require;
                        break;
                    case"builtin":
                        t = a.default.browser.builtIn;
                        break;
                    case"global":
                        t = a.default.browser.global;
                        break;
                    case"current_window":
                        t = a.default.browser.currentWindow;
                        break;
                    case"current_web_contents":
                        t = a.default.browser.currentWebContents;
                        break;
                    case"client_web_contents":
                        t = a.default.browser.clientWebContents;
                        break;
                    case"web_contents":
                        t = a.default.browser.webContents
                }
                return t
            }

            __resolve() {
                let e = this.__promise_;
                if (null !== e) ; else {
                    if (!this.__resolved_) throw Error("missing the promise for ayncnomously get remote object");
                    e = new Promise((e, t) => {
                        e(this.__remoteObj_)
                    }), this.__promise_ = e
                }
                return e
            }

            __isResolved() {
                return this.__resolved_
            }
        }

        function k(e, t, n) {
            try {
                s.default.invoke(t, n).remove(t)
            } finally {
                s.default.remove(t)
            }
        }

        c.on(a.default.renderer.requireReturn, k), c.on(a.default.renderer.getBuiltInReturn, k), c.on(a.default.renderer.getGlobalReturn, k), c.on(a.default.renderer.currentWindowReturn, k), c.on(a.default.renderer.currentWebContentsReturn, k), c.on(a.default.renderer.functionCallReturn, k), c.on(a.default.renderer.constructReturn, k), c.on(a.default.renderer.memberCallReturn, k), c.on(a.default.renderer.memberSetReturn, k), c.on(a.default.renderer.memberGetReturn, k), c.on(a.default.renderer.memberConstructReturn, k), c.on(a.default.renderer.callback, (e, t, n) => {
            p.apply(t, b(n))
        }), c.on(a.default.renderer.syncReturn, k), c.on("ELECTRON_RENDERER_RELEASE_CALLBACK", (e, t) => {
            d.info("[RELEASE_CALLBACK]: callbackId:", t), p.remove(t)
        }), process.on("exit", () => {
            c.send(a.default.browser.contextRelease)
        });
        const E = ["__resolve", "__isResolved"],
            I = ["__promise_", "__resolved_", "__remoteObj_", "__name_", "__what_"], P = e => {
                if (!e.__isResolved()) throw Error("Can not access the property of a remote module which has not Resolved yet.")
            };

        function R(e) {
            const t = function () {
            };
            Object.defineProperty(t, "name", {value: e.__name_}), Object.defineProperty(t, "what", {
                enumerable: !1,
                value: e.__what_
            });
            let n = new Proxy(t, {
                getPrototypeOf: t => (P(e), Reflect.getPrototypeOf(e.__remoteObj_)),
                setPrototypeOf: (e, t) => {
                    throw new Error("changing prototype of remote object is forbidden")
                },
                isExtensible: t => (P(e), Reflect.isExtensible(e.__remoteObj_)),
                preventExtensions: t => (P(e), Reflect.preventExtensions(e)),
                getOwnPropertyDescriptor: (t, n) => (P(e), Reflect.getOwnPropertyDescriptor(e.__remoteObj_, n)),
                has: (t, n) => (P(e), Reflect.has(e.__remoteObj_, n)),
                deleteProperty: (t, n) => (P(t), Reflect.deleteProperty(e.__remoteObj_, n)),
                defineProperty: (t, n, i) => (P(e), Reflect.defineProperty(e.__remoteObj_, n, i)),
                get: (t, n, i) => {
                    if ("string" == typeof n) {
                        if (String.prototype.includes.call(I, n)) {
                            return e[n]
                        }
                        if (String.prototype.includes.call(E, n)) {
                            return e[n]
                        }
                    }
                    return P(e), Reflect.get(e.__remoteObj_, n)
                },
                set: (t, n, i, o) => (P(e), Reflect.set(e.__remoteObj_, n, i, o)),
                ownKeys: t => (P(e), Reflect.ownKeys(e.__remoteObj_)),
                apply: (t, n, i) => {
                    P(e), Reflect.apply(e.__remoteObj_, n, i)
                },
                construct: (t, n, i) => {
                    if (P(e), "function" != typeof e.__remoteObj_) throw Error("operator new ONLY used for function");
                    return new Promise((t, i) => {
                        let o = a.default.browser.construct, r = l.default(o),
                            d = h.getHiddenValue(e.__remoteObj_, "__remote_id__");
                        c.send(o, m, r, d, S(n)), s.default.add(r, e => {
                            try {
                                t(b(e))
                            } catch (e) {
                                i(e)
                            }
                        })
                    })
                }
            });
            return e.__promise_.then(e => {
                let t = typeof e;
                if ("function" === t || "object" === t) {
                    let t = _(e);
                    t && w(n, t)
                }
            }), n
        }

        t.remoteRequire = function (e) {
            return R(new C("module", e))
        }, t.getBuiltin = function (e) {
            return R(new C("builtin", e))
        }, t.getGlobal = function (e) {
            return R(new C("global", e))
        }, t.getCurrentWindow = function () {
            return R(new C("current_window"))
        }, t.getCurrentWebContents = function () {
            return R(new C("current_web_contents"))
        }, t.getWebContents = function () {
            return R(new C("web_contents"))
        }
    }, 54: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = process.electronBinding("v8_util");
        t.default = class {
            constructor() {
                this.nextId = 0, this.callbacks = {}
            }

            add(e) {
                let t = i.getHiddenValue(e, "__remote_callback_id__");
                if (null != t) return t;
                t = this.nextId -= 1;
                const n = /at (.*)/gi, o = (new Error).stack;
                let r, s = n.exec(o);
                for (; null !== s;) {
                    const e = s[1];
                    if (!e.includes("native") && !e.includes("electron.asar")) {
                        r = /([^/^)]*)\)?$/gi.exec(e)[1];
                        break
                    }
                    s = n.exec(o)
                }
                return this.callbacks[t] = e, i.setHiddenValue(e, "__remote_callback_id__", t), i.setHiddenValue(e, "__remote_call_location__", r), t
            }

            get(e) {
                return this.callbacks[e] || function () {
                }
            }

            apply(e, ...t) {
                return this.get(e).apply(global, ...t)
            }

            remove(e) {
                const t = this.callbacks[e];
                t && (i.deleteHiddenValue(t, "__remote_callback_id__"), delete this.callbacks[e])
            }
        }
    }, 547: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(153), r = n(548), s = n(1).default.getLogger("Thunder.SuspensionRender.hovertext");
        t.SettingHttpSession = class extends o.HttpSession {
            querySetting() {
                return i(this, void 0, void 0, function* () {
                    return this.host = "images.client.vip.xunlei.com", this.retries = 2, this.timeout = 2e4, this.path = "/mini/xlx/tips_300x310/ssi_html/xds_common.js", s.information("uri:" + this.path), s.information("host:" + this.host), new Promise(e => {
                        this.get(t => {
                            let n = null;
                            s.information("response", n), 200 === t.statusCode && t.body && (n = r.SettingHttpPackageNS.praseQueryBuffer(t.body)), e(n)
                        }, t => {
                            s.information("error", t), e(null)
                        })
                    })
                })
            }
        }
    }, 548: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(1).default.getLogger("Thunder.SuspensionRender.hovertext");
        !function (e) {
            e.praseQueryBuffer = function (e) {
                if (!e) return null;
                let t = e.toString(), n = null;
                try {
                    n = JSON.parse(t)
                } catch (e) {
                }
                if (i.information("resObj", n), !n) return null;
                let o = n.hangball ? n.hangball : null;
                i.information("touches", o);
                let r = null;
                if (o && o.unlogin) {
                    let e = o.unlogin ? o.unlogin : null;
                    i.information("unlogin", e), r = {unlogin: e, notvip: null}
                }
                if (o && o.notvip) {
                    let e = o.notvip ? o.notvip : null;
                    i.information("notvip", e), r.notvip = e
                }
                return r
            }
        }(t.SettingHttpPackageNS || (t.SettingHttpPackageNS = {}))
    }, 55: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(13);
        var o;
        !function (e) {
            let t = {};
            e.add = function (e, n, i) {
                t[e] = {func: n, thisArg: i}
            }, e.invoke = function (n, ...o) {
                let r = t[n];
                return r ? r.thisArg ? r.func.apply(r.thisArg, ...o) : r.func(...o) : i.error(`Cannot invoke function by unrecognize id. ${n}`), e
            }, e.remove = function (e) {
                delete t[e]
            }
        }(o || (o = {})), t.default = o
    }, 550: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(4);
        !function (e) {
            const t = "vip-download-webview";
            let n = void 0;
            e.getVipTaskInfo = function (e) {
                return i(this, void 0, void 0, function* () {
                    let n = null;
                    try {
                        n = (yield o.client.callRemoteClientFunction(t, "GetVipTaskInfo", e))[0]
                    } catch (e) {
                    }
                    return n
                })
            }, e.getVipSubTaskInfo = function (e, n) {
                return i(this, void 0, void 0, function* () {
                    let i = null;
                    try {
                        i = (yield o.client.callRemoteClientFunction(t, "GetVipSubTaskInfo", e, n))[0]
                    } catch (e) {
                    }
                    return i
                })
            }, e.getVipSpeedColor = function (e) {
                return i(this, void 0, void 0, function* () {
                    let n = void 0;
                    try {
                        n = (yield o.client.callRemoteClientFunction(t, "GetVipSpeedColor", e))[0]
                    } catch (e) {
                    }
                    return n
                })
            }, e.clickTryAcclerateBtn = function (e, n) {
                return i(this, void 0, void 0, function* () {
                    try {
                        yield o.client.callRemoteClientFunction(t, "ClickTryAcclerateBtn", e, n)
                    } catch (e) {
                    }
                })
            }, e.getThunderVersionNumber = function () {
                return i(this, void 0, void 0, function* () {
                    if (void 0 === n) {
                        const e = yield o.client.callServerFunction("GetThunderVersion");
                        n = 0;
                        let t = e.split(".");
                        if (t && 4 === t.length) {
                            let e = Number(t[0]).valueOf(), i = Number(t[1]).valueOf(), o = Number(t[2]).valueOf();
                            n = 128 * Math.pow(2, 24) + e * Math.pow(2, 16) + i * Math.pow(2, 8) + o
                        }
                    }
                    return n
                })
            }
        }(t.VipPluginFunctionNS || (t.VipPluginFunctionNS = {}))
    }, 551: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(552), r = n(553), s = n(1).default.getLogger("Thunder.Suspension.bubble"),
            a = n(227).UserHelperNS.getUserHelper();
        t.BubbleHttpSession = class extends o.HttpSession {
            queryTip() {
                return i(this, void 0, void 0, function* () {
                    s.information("querytip");
                    let e = a.userId, t = yield a.getSessionId();
                    this.host = "touch.vip.xunlei.com", this.retries = 2, this.timeout = 2e4;
                    let n = a.thunderVersionString, i = a.thunderVersionNumber, o = yield a.getPeerId();
                    return this.path = "/xl11/touch?iver=" + i + "&vfilter=" + n + "&deviceid=" + o + "&scene=xl11_suspendedball", this.cookie = "userid=" + e + ";sessionid=" + t + ";", s.information("uri:" + this.path), s.information("host:" + this.host), s.information("cookie:" + this.cookie), new Promise(t => {
                        this.get(n => {
                            let i = null;
                            200 === n.statusCode && n.body && (i = r.BubbleHttpPackageNS.praseQueryBuffer(e, n.body)), t(i)
                        }, e => {
                            s.information("error", e), t(null)
                        })
                    })
                })
            }

            reportTip(e, t) {
                return i(this, void 0, void 0, function* () {
                    s.information("reportTip");
                    let n = a.userId, i = yield a.getSessionId();
                    return this.host = "touch.vip.xunlei.com", this.retries = 2, this.timeout = 2e4, this.path = "/xl11/setreaded?msgid=" + e + "&reachtype=" + t, this.cookie = "userid=" + n + ";sessionid=" + i + ";", s.information("uri:" + this.path), s.information("host:" + this.host), s.information("cookie:" + this.cookie), new Promise(e => {
                        this.get(t => {
                            let i = null;
                            200 === t.statusCode && t.body && (i = r.BubbleHttpPackageNS.praseReportBuffer(n, t.body)), e(i)
                        }, t => {
                            s.information("error", t), e(null)
                        })
                    })
                })
            }
        }
    }, 552: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(44);
        t.HttpSession = class {
            constructor() {
                this.mRetries = 0, this.mHost = void 0, this.mPort = 80, this.mPath = void 0, this.mAuth = void 0, this.mAccept = void 0, this.mBody = null, this.mUrl = void 0, this.mTimeout = void 0, this.mCurRetries = 0, this.mCookie = void 0
            }

            get cookie() {
                return this.mCookie
            }

            set cookie(e) {
                this.mCookie = e
            }

            set host(e) {
                this.mHost = e
            }

            get host() {
                return this.mHost
            }

            set port(e) {
                this.mPort = e
            }

            get port() {
                return this.mPort
            }

            set path(e) {
                this.mPath = e
            }

            get path() {
                return this.mPath
            }

            set url(e) {
                this.mUrl = e
            }

            get url() {
                return this.mUrl
            }

            set auth(e) {
                this.mAuth = e
            }

            get auth() {
                return this.mAuth
            }

            set accept(e) {
                this.mAccept = e
            }

            get accept() {
                return this.mAccept
            }

            set body(e) {
                this.mBody = e
            }

            get body() {
                return this.mBody
            }

            set retries(e) {
                this.mRetries = e
            }

            get retries() {
                return this.mRetries
            }

            set timeout(e) {
                this.mTimeout = e
            }

            get timeout() {
                return this.mTimeout
            }

            post(e, t) {
                let n = this.body;
                if (!n) return void t(null);
                let i = this.auth, o = this.accept, r = {
                    hostname: this.host,
                    port: this.port,
                    path: this.path || "/",
                    method: "POST",
                    auth: i || void 0,
                    headers: {"Content-Length": n ? n.length : 0, Accept: o || "*/*"}
                };
                this.postImpl(n, r, e, n => {
                    this.mCurRetries < this.retries ? (this.mCurRetries++, this.post(e, t)) : t(n)
                })
            }

            get(e, t) {
                let n = {
                    hostname: this.host,
                    port: this.port,
                    path: this.path || "/",
                    method: "GET",
                    headers: {Cookie: this.cookie}
                };
                this.getImpl(n, e, n => {
                    this.mCurRetries < this.retries ? (this.mCurRetries++, this.get(e, t)) : t(n)
                })
            }

            postImpl(e, t, n, o) {
                let r = i.request(t, e => {
                    let t = null;
                    e.on("data", e => {
                        t = t ? Buffer.concat([t, e]) : e
                    }), e.on("end", () => {
                        n({statusCode: e.statusCode, headers: e.headers, body: t})
                    })
                });
                r.on("error", e => {
                    o(e)
                }), r.on("timeout", () => {
                    r.abort()
                }), this.timeout && r.setTimeout(this.timeout), r.write(e), r.end()
            }

            getImpl(e, t, n) {
                i.get(e, e => {
                    let n = null;
                    e.on("data", e => {
                        n = n ? Buffer.concat([n, e]) : e
                    }), e.on("end", () => {
                        t({statusCode: e.statusCode, headers: e.headers, body: n})
                    })
                }).on("error", e => {
                    n(e)
                })
            }
        }
    }, 553: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(1).default.getLogger("Thunder.Suspension.bubble");
        !function (e) {
            e.praseQueryBuffer = function (e, t) {
                if (!t) return null;
                let n = t.toString(), o = null;
                try {
                    o = JSON.parse(n)
                } catch (e) {
                    return null
                }
                if (i.information("jsonstr", n), i.information("resObj", o), !o) return null;
                let r = o.data ? o.data.touches : null, s = null;
                if (r && r.length > 0) {
                    let e = r[0];
                    s = {result: o.result, msg: o.msg, data: e}
                }
                return s
            }, e.praseReportBuffer = function (e, t) {
                if (!t) return null;
                let n = t.toString();
                try {
                    let e = JSON.parse(n);
                    return {result: e.result, msg: e.msg}
                } catch (e) {
                    return null
                }
            }
        }(t.BubbleHttpPackageNS || (t.BubbleHttpPackageNS = {}))
    }, 556: function (e, t, n) {
        "use strict";
        var i = n(1279);
        n.n(i).a
    }, 56: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        let i = 0;
        t.default = function (e) {
            return e ? e.concat(".").concat(String(++i)) : String(++i)
        }
    }, 57: function (e, t, n) {
        "use strict";
        const i = n(3), o = n(58), r = n(34), s = n(59), a = n(13), l = n(35), d = i.ipcMain,
            u = process.electronBinding("v8_util");
        let c = u.createDoubleIDWeakMap();
        const h = new o.default;

        function p(e, t, n, i, o, r) {
            let s, l = !1, d = null, u = !1;
            do {
                try {
                    s = t[i]
                } catch (e) {
                    l = !0
                }
                if (l) try {
                    s = n.value[i], l = !1, n.meta.extendedMemberNames.push(i), u = !0
                } catch (e) {
                    a.error(`property ${i} untouchable, even try root[name]`)
                }
                if (l) break;
                let o = Object.getOwnPropertyDescriptor(t, i);
                if (void 0 === o) {
                    a.warn(`descriptor of property ${i} is undefined`);
                    break
                }
                d = {
                    name: i,
                    enumerable: o.enumerable,
                    writable: !1,
                    type: "get"
                }, void 0 === o.get && "function" == typeof s ? d.type = "method" : ((o.set || o.writable) && (d.writable = !0), d.type = "get"), u ? (d.configurable = !0, d.value = g(e, s, r, !1, null)) : d.value = g(e, s, r, !1, n)
            } while (0);
            return d
        }

        function f(e, t, n, i = null) {
            let o = Object.getOwnPropertyNames(t);
            "function" == typeof t && (o = o.filter(function (e) {
                return !String.prototype.includes.call(s.propertiesOfFunction, e)
            }));
            let r = [];
            do {
                if (0 === o.length) break;
                let s = o.length;
                for (let a = 0; a < s; a++) {
                    let s = p(e, t, n, o[a], 0, i);
                    s && r.push(s)
                }
            } while (0);
            return r
        }

        function m(e, t, n, i = null) {
            let o = null, r = Object.getPrototypeOf(t);
            return o = null === r || r === Object.prototype || r === Function.prototype ? null : g(e, r, i, !1, n)
        }

        function g(e, t, n = null, i = !1, o = null) {
            n = null === n ? {} : n;
            const r = {type: typeof t};
            "object" === r.type && (r.type = function (e, t) {
                let n = typeof e;
                if ("object" !== n) throw new Error("incorrect arg at index 0. non-object");
                return null === e ? n = "value" : ArrayBuffer.isView(e) ? n = "buffer" : Array.isArray(e) ? n = "array" : e instanceof Error ? n = "error" : e instanceof Date ? n = "date" : l.isPromise(e) ? n = "promise" : Object.prototype.hasOwnProperty.call(e, "callee") && null != e.length ? n = "array" : t && u.getHiddenValue(e, "simple") && (n = "value"), n
            }(t, i));
            do {
                if ("object" === r.type || "function" === r.type) {
                    let i = h.getIdOfObject(t);
                    if (i && n[i]) {
                        r.refId = i, h.add(e, t);
                        break
                    }
                }
                "array" === r.type ? r.members = t.map(t => g(e, t, n)) : "object" === r.type || "function" === r.type ? (null == o && (r.extendedMemberNames = [], o = {
                    value: t,
                    meta: r
                }), r.name = t.constructor ? t.constructor.name : "", r.id = h.add(e, t), n[r.id] = !0, r.members = f(e, t, o, n), r.proto = m(e, t, o, n)) : "buffer" === r.type ? r.value = Buffer.from(t) : "promise" === r.type ? (t.then(function () {
                }, function () {
                }), r.then = g(e, function (e, n) {
                    t.then(e, n)
                })) : "error" === r.type ? (r.members = S(t), r.members.push({
                    name: "name",
                    value: t.name
                })) : "date" === r.type ? r.value = t.getTime() : (r.type = "value", r.value = t)
            } while (0);
            return r
        }

        function S(e) {
            return Object.getOwnPropertyNames(e).map(t => ({name: t, value: e[t]}))
        }

        function v(e, t, n, o) {
            const s = function (o) {
                let l, d, p = 0, f = 0;
                switch (o.type) {
                    case"value":
                        return o.value;
                    case"remote-object":
                        return h.get(o.id);
                    case"array":
                        return v(e, t, n, o.value);
                    case"buffer":
                        return Buffer.from(o.value);
                    case"date":
                        return new Date(o.value);
                    case"promise":
                        return Promise.resolve({then: s(o.then)});
                    case"object":
                    case"interest": {
                        let e = {};
                        for (Object.defineProperty(e.constructor, "name", {value: o.name}), p = 0, f = (d = o.members).length; p < f; p++) e[(l = d[p]).name] = s(l.value);
                        return e
                    }
                    case"function": {
                        const s = e.id, l = [n, o.id];
                        if (a.info("renderer function id:" + l), c.has(l)) return c.get(l);
                        let d = function (...t) {
                            a.info("[CALLBACK] args", t);
                            let n = [...t];
                            e.isDestroyed() || s !== e.id ? function (e, t, n) {
                                let o = "Attempting to call a function in a renderer window that has been closed or released." + `\nFunction provided here: ${e.location}`;
                                if (t.length > 0 && t[0].sender && t[0].sender instanceof i.webContents.constructor) {
                                    const {sender: e} = t[0], i = e.eventNames().filter(t => {
                                        let i = e.listeners(t), o = !1;
                                        return i.forEach(e => {
                                            e === n && (o = !0)
                                        }), o
                                    });
                                    i.length > 0 && (o += `\nRemote event names: ${i.join(", ")}`, i.forEach(t => {
                                        Object.getPrototypeOf(e).removeListener.call(e, t, n)
                                    }))
                                }
                                a.warn(o)
                            }(o, n, d) : e.send(r.default.renderer.callback, o.id, g(e, n))
                        };
                        return Object.defineProperty(d, "length", {value: o.length}), u.setRemoteCallbackFreer(d, t, n, o.id, e), c.set(l, d), d
                    }
                    default:
                        throw new TypeError(`Unknown type: ${o.type}`)
                }
            };
            return o.map(s)
        }

        function T(e, t, n, i) {
            let o, r;
            try {
                return t.apply(n, i)
            } catch (e) {
                return r = t.name, new Error(`Could not call remote function '${o = null != r ? r : "anonymous"}'. Check that the function signature is correct. Underlying error: ${e.message}`)
            }
        }

        function y(e) {
            return {type: "exception", message: e.message, stack: e.stack || e}
        }

        function w(e) {
            const t = new Error(e);
            throw Object.defineProperty(t, "code", {value: "EBADRPC"}), Object.defineProperty(t, "errno", {value: -72}), t
        }

        var _;
        !function (e) {
            const t = (e, t, ...n) => {
                const i = e.sender;
                i.isDestroyed() ? a.warn("webcontext is destroyed.") : i.send(t, ...n)
            };
            e.startServer = function () {
                d.on(r.default.browser.require, (e, n, i, o) => {
                    a.info(`[REQUIRE] module=${o} `);
                    let s = process.mainModule.require(o), l = g(e.sender, s);
                    t(e, r.default.renderer.requireReturn, i, l)
                }), d.on(r.default.browser.builtIn, (e, n, o, s) => {
                    a.info(`[BUILTIN]: property=${s} contextId=${n}`);
                    let l = i[s], d = g(e.sender, l);
                    a.info(`[BUILTIN]: returns remoteId:${d.id}, type: ${typeof l}`), t(e, r.default.renderer.getBuiltInReturn, o, d)
                }), d.on(r.default.browser.global, (e, n, i, o) => {
                    a.info(`[GLOBAL]: proerty:${o} contextId=${n}`);
                    let s, l = global[o];
                    s = g(e.sender, l), a.info(`[GLOBAL]: returns remoteid=${s.id}, obj=` + typeof l), t(e, r.default.renderer.getGlobalReturn, i, s)
                }), d.on(r.default.browser.currentWindow, (e, n, i, o) => {
                    a.info(`[CURRENT_WINDOW]: property=${o} contextId=${n}`);
                    let s = e.sender.getOwnerBrowserWindow.call(e.sender), l = g(e.sender, s);
                    a.info(`[CURRENT_WINDOW]: returns remoteid=${l.id}, obj=` + s), t(e, r.default.renderer.currentWindowReturn, i, l)
                }), d.on(r.default.browser.currentWebContents, (e, n, i, o) => {
                    t(e, r.default.renderer.currentWebContentsReturn, i, g(e.sender, e.sender))
                }), d.on(r.default.browser.webContents, (e, n, o, s) => {
                    a.info(`[WebContents]: proerty:${s} contextId=${n}`);
                    let l, d = i.webContents;
                    l = g(e.sender, d), a.info(`[WebContents]: returns remoteid=${l.id}, obj=` + typeof d), t(e, r.default.renderer.webContentsReturn, o, l)
                });
                const e = (e, t) => {
                    const n = (t, n) => {
                        t && Object.getOwnPropertyNames(t).forEach(i => {
                            n ? e.once(i, t[i]) : e.on(i, t[i])
                        })
                    };
                    t.on && n(t.on, !1), t.once && n(t.once, !0)
                };
                d.on(r.default.browser.construct, (n, i, o, s, l) => {
                    let d, u = null;
                    try {
                        a.info(`[CONSTRUCTOR]: remoteId=${s} `);
                        let c = l.length > 0 ? l[l.length - 1] : null;
                        l = v(n.sender, n.frameId, i, l);
                        let p = h.get(s);
                        null == p && w(`Cannot call constructor on missing remote object ${s}`), c && "interest" === c.type && (u = l.pop());
                        let f = new (Function.prototype.bind.apply(p, [null, ...l]));
                        f && u && e(f, u), d = g(n.sender, f, null, !1), a.info(`[CONSTRUCTOR]: returns remoteId =${d.id} name=${p.name} `)
                    } catch (e) {
                        d = y(e)
                    } finally {
                        t(n, r.default.renderer.constructReturn, o, d)
                    }
                }), d.on(r.default.browser.functionCall, function (e, n, i, o, s, l) {
                    let d;
                    try {
                        a.info(`[FUNCTION_CALL]: remoteId=${s}`), l = v(e.sender, e.frameId, n, l);
                        let u = h.get(s);
                        if (null == u) a.error(`Cannot call function on missing remote object ${s}`), d = g(e.sender, void 0); else {
                            let t = o ? h.get(o) : global;
                            if (t) {
                                let n = T(0, u, t, l);
                                d = g(e.sender, n)
                            } else a.error(`Cannot call function(${s}) on missing context(${o})`), d = g(e.sender, void 0)
                        }
                        a.info(`[FUNCTION_CALL]: name=${u.name}`)
                    } catch (e) {
                        d = y(e)
                    } finally {
                        t(e, r.default.renderer.functionCallReturn, i, d)
                    }
                }), d.on(r.default.browser.memberCall, function (e, n, i, o, s, l, d) {
                    let u;
                    a.info(`[MEMBER_CALL]: thisArg=${o}, remoteId=${s}, method=${l}, args count=${d.length}`);
                    try {
                        d = v(e.sender, e.frameId, n, d);
                        let c = h.get(s);
                        null == c && w(`Cannot call function '${l}' on missing remote object ${s}`);
                        let p = o ? h.get(o) : c;
                        if (p) {
                            let t = T(0, c[l], p, d);
                            u = g(e.sender, t), a.info("[MEMBER_CALL]: return=" + t)
                        } else u = g(e.sender, void 0)
                    } catch (e) {
                        u = y(e)
                    } finally {
                        t(e, r.default.renderer.memberCallReturn, i, u)
                    }
                }), d.on(r.default.browser.memberGet, function (e, n, i, o, s) {
                    let l;
                    try {
                        a.info(`[MEMBER_GET]: remoteId=${o}, property=`, s);
                        let n = h.get(o);
                        null == n && w(`Cannot get property '${Object.toString.call(s)}' on missing remote object ${o}`);
                        let d = n[s];
                        l = g(e.sender, d)
                    } catch (e) {
                        l = y(e)
                    } finally {
                        t(e, r.default.renderer.memberGetReturn, i, l)
                    }
                }), d.on(r.default.browser.memberSet, function (e, n, i, o, s, l) {
                    try {
                        a.info(`[MEMBER_SET]: remoteId=${o}, property=` + s), l = v(e.sender, e.frameId, n, l);
                        let d = h.get(o);
                        null == d && w(`Cannot set property '${Object.toString.call(s)}' on missing remote object ${o}`), d[s] = l[0], t(e, r.default.renderer.memberSetReturn, i, {
                            type: "value",
                            value: !0
                        })
                    } catch (n) {
                        t(e, r.default.renderer.memberSetReturn, i, y(n))
                    }
                }), d.on(r.default.browser.memberConstruct, function (n, i, o, s, l, d) {
                    let u, c = null;
                    try {
                        a.info(`[MEMBER_CONSTRUCTOR]: regId=${s}, method=${l}`);
                        let p = d.length > 0 ? d[d.length - 1] : null;
                        d = v(n.sender, n.frameId, i, d);
                        let f = h.get(s);
                        null == f && w(`Cannot call constructor '${l}' on missing remote object ${s}`), p && "interest" === p.type && (c = d.pop());
                        let m = f[l], S = new (Function.prototype.bind.apply(m, [null, ...d]));
                        S && c && e(S, c), u = g(n.sender, S)
                    } catch (e) {
                        u = y(e)
                    } finally {
                        t(n, r.default.renderer.memberConstructReturn, o, u)
                    }
                }), d.on(r.default.browser.sync, function (e, n, i, o) {
                    let s = h.get(o);
                    t(e, r.default.renderer.syncReturn, i, g(e.sender, s))
                }), d.on("ELECTRON_BROWSER_DEREFERENCE", function (e, t) {
                    let n = h.get(t);
                    if (i.ipcMain.emit("log_to_renderer", "ELECTRON_BROWSER_DEREFERENCE", t, typeof n), n) {
                        let i = n.name;
                        i || (i = n.constructor ? n.constructor.name : ""), h.remove(e.sender.id, t)
                    } else t < 0 && a.warn("remote id reference to nothing:", t)
                }), d.on(r.default.browser.contextRelease, e => {
                    h.clear(e.sender.id)
                })
            }, e.getObjectRegistry = function () {
                return h
            }
        }(_ || (_ = {})), e.exports = _
    }, 58: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(13), o = -1 * Math.pow(2, 31), r = process.electronBinding("v8_util");
        t.default = class {
            constructor() {
                this.nextId = 0, this.storage = new Map, this.owners = new Map
            }

            add(e, t) {
                const n = this.saveToStorage(t), i = e.id;
                let o = this.owners.get(i);
                return o || (o = new Set, this.owners.set(i, o), this.registerDeleteListener(e, i)), o.has(n) || (o.add(n), this.storage.get(n).count++), n
            }

            getIdOfObject(e) {
                return r.getHiddenValue(e, "__remote_id__")
            }

            get(e) {
                const t = this.storage.get(e);
                if (void 0 !== t) return t.object
            }

            remove(e, t) {
                this.dereference(t);
                let n = this.owners.get(e);
                n && n.delete(t)
            }

            clear(e) {
                let t = this.owners.get(e);
                if (t) {
                    for (let e of t) this.dereference(e);
                    this.owners.delete(e)
                }
            }

            getStorageSize() {
                return this.storage.size
            }

            saveToStorage(e) {
                let t = r.getHiddenValue(e, "__remote_id__");
                if (!t) {
                    if ((t = --this.nextId) <= o) throw new Error("object registry id overflow");
                    this.storage.set(t, {object: e, count: 0}), r.setHiddenValue(e, "__remote_id__", t)
                }
                return t
            }

            dereference(e) {
                let t = this.storage.get(e);
                null != t && (t.count -= 1, 0 === t.count && (r.deleteHiddenValue(t.object, "__remote_id__"), this.storage.delete(e)))
            }

            registerDeleteListener(e, t) {
                const n = e.getProcessId(), o = (r, s) => {
                    s === n && (i.info("render-view-deleted: processid=" + n), (() => {
                        i.info("before clear. objectsRegistry capacity=" + this.storage.size, "owners size:" + this.owners.size)
                    })(), e.removeListener("render-view-deleted", o), this.clear(t))
                };
                e.on("render-view-deleted", o)
            }
        }
    }, 59: function (e, t, n) {
        "use strict";
        var i;
        !function (e) {
            e.propertiesOfFunction = ["length", "name", "arguments", "caller", "prototype", "apply", "bind", "call", "toString"]
        }(i || (i = {})), e.exports = i
    }, 6: function (e, t) {
        e.exports = require("util")
    }, 60: function (e, t) {
        e.exports = require("readline")
    }, 61: function (e, t, n) {
        e.exports = n(9)(216)
    }, 62: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(7), r = n(20), s = n(4), a = n(32);
        !function (e) {
            function t(e, t) {
                return i(this, void 0, void 0, function* () {
                    if (null !== e) {
                        let n = e.webContents;
                        (yield n.isDevToolsOpened()) ? yield n.closeDevTools() : yield n.openDevTools(t)
                    }
                })
            }

            e.openDevTool = t, e.enableDevTools = function (e) {
                return i(this, void 0, void 0, function* () {
                    window.addEventListener("keyup", n => i(this, void 0, void 0, function* () {
                        if ("F12" === n.key && n.ctrlKey) a.DevEnvHelperNS.isLogEnable() && (yield t(yield o.asyncRemoteCall.getCurrentWindow(), e)); else if (("t" === n.key || "T" === n.key) && n.altKey && a.DevEnvHelperNS.isLogEnable()) {
                            let e = document.getElementById("DevProcessPid");
                            if (e) document.body.removeChild(e); else {
                                (e = document.createElement("p")).id = "DevProcessPid", e.style.position = "absolute", e.style.left = "0px", e.style.top = "0px", e.style.width = "100%", e.style.zIndex = "10000", e.style.color = "rgb(255,0,0)", document.body.appendChild(e);
                                let t = "process.pid:" + process.pid;
                                t += "\r\nlocation.href:" + location.href, t += "\r\nprocess.argv:" + process.argv, e.innerText = t
                            }
                        }
                    }), !0)
                })
            }, e.enableDragOpenFile = function (e) {
                void 0 === e && (e = !1), document.addEventListener("dragover", e => (e.preventDefault(), e.stopPropagation(), !1), !0), document.addEventListener("drop", e => i(this, void 0, void 0, function* () {
                    e.preventDefault(), e.stopPropagation();
                    let t = e.dataTransfer, n = t.files, i = t.items;
                    if (void 0 !== i && null !== i && i.length > 0) for (let e = 0; e < i.length; e++) {
                        let t = i[e];
                        "string" === t.kind && "text/uri-list" === t.type ? t.getAsString(e => {
                            s.client.callServerFunction("DropOpenUrl", e).catch()
                        }) : t.kind
                    }
                    if (void 0 !== n && null !== n && n.length > 0) for (let e = 0; e < n.length; e++) {
                        let t = n[e].path;
                        void 0 !== t && null !== t && "" !== t && (yield r.FileSystemAWNS.existsAW(t)) && s.client.callServerFunction("DropOpenFile", t).catch()
                    }
                    return !1
                }), !0)
            }
        }(t.ThunderToolsNS || (t.ThunderToolsNS = {}))
    }, 628: function (e, t, n) {
        "use strict";
        var i = function () {
            var e = this, t = e.$createElement, n = e._self._c || t;
            return n("div", {attrs: {id: "app"}}, [n("div", {staticClass: "box"}, [n("div", {
                directives: [{
                    name: "show",
                    rawName: "v-show",
                    value: !e.isWelt,
                    expression: "!isWelt"
                }],
                staticClass: "xly-suspension",
                class: e.suspensionBallClass,
                staticStyle: {left: "380px", top: "226px"}
            }, [n("div", {
                staticClass: "xly-suspension-main",
                class: {"is-unfocus": e.isMainUnFocus}
            }, [e._m(0), e._v(" "), n("div", {
                staticClass: "xly-suspension-area",
                staticStyle: {background: "rgba(0,0,0,0.002)"},
                attrs: {id: "xly-suspension-area"},
                on: {mouseleave: e.hoverLeave, mouseover: e.hoverEnter}
            })]), e._v(" "), n("div", {
                staticClass: "xly-suspension-status", on: {
                    contextmenu: function (t) {
                        return e.handleRightClick(t)
                    }, mouseenter: e.enter, mouseleave: e.leave, dblclick: e.dbclick, mousedown: e.down
                }
            }, [n("div", {staticClass: "xly-suspension-status__inner"}, [n("span", {
                staticClass: "xly-suspension-status__progress",
                style: "width: " + e.downloadProgress
            }), e._v(" "), n("p", {staticClass: "xly-suspension-status__text"}, [e._v(e._s(e.statusText))]), e._v(" "), n("p", {staticClass: "xly-suspension-status__speed"}, [n("span", [e._v(e._s(e.totalSpeed.speed))]), e._v(e._s(e.totalSpeed.unit))]), e._v(" "), e.isTry ? n("p", {staticClass: "xly-suspension-status__try"}, [e._v("加速试用")]) : e._e()])]), e._v(" "), n("div", {
                ref: "suspension",
                staticClass: "xly-suspension-polygon",
                on: {
                    contextmenu: function (t) {
                        return e.handleRightClick(t)
                    }, mouseenter: e.enter, mouseleave: e.leave, mousedown: e.down, mouseup: e.up, click: e.click
                }
            }), e._v(" "), n("float-panel-container", {
                class: e.suspensionFloatClass,
                style: e.floatPanelStyle,
                attrs: {isLogined: e.isLogined, isVip: e.isVip, vipType: e.vipType, isVisible: e.isFloatPanelShowed},
                on: {
                    "download-event": e.doDownloadEvent,
                    "show-float-panel": e.showOrHideFloatPanel,
                    "set-vip-skin": e.setVipSkin,
                    floatenter: e.enterFloatPanel,
                    floatleave: e.leaveFloat
                }
            })], 1)]), e._v(" "), n("div", {
                directives: [{
                    name: "show",
                    rawName: "v-show",
                    value: e.isWelt,
                    expression: "isWelt"
                }],
                staticClass: "xly-suspension-mini",
                class: e.weltClass,
                style: "left: " + e.weltLeftPx + "px; top: " + e.weltTopPx + "px;",
                on: {mouseenter: e.weltEnter, mouseleave: e.weltLeave, mousedown: e.weltDown, mouseup: e.weltUp}
            }, [n("svg", {attrs: {viewBox: "0 0 12 62"}}, [n("path", {
                staticClass: "xly-suspension-mini__svg",
                attrs: {d: "M6,61.5c-0.34,0-0.67-0.1-0.96-0.28L1.4,58.88c-0.56-0.36-0.9-1.01-0.9-1.7V4.81c0-0.69,0.35-1.34,0.9-1.7\n      l3.64-2.33C5.33,0.6,5.66,0.5,6,0.5s0.67,0.1,0.96,0.28l3.64,2.33c0.56,0.36,0.9,1.01,0.9,1.7v52.37c0,0.69-0.35,1.34-0.9,1.7\n      l-3.64,2.33C6.67,61.4,6.34,61.5,6,61.5z"}
            })]), e._v(" "), n("div", {staticClass: "xly-suspension-mini__progress"}, [n("span", {style: "height: " + e.downloadProgress})])])])
        }, o = [function () {
            var e = this.$createElement, t = this._self._c || e;
            return t("div", {staticClass: "xly-suspension-wrap"}, [t("div", {staticClass: "xly-suspension-panel"}, [t("span", {staticClass: "xly-suspension-panel__light"})]), this._v(" "), t("div", {staticClass: "xly-suspension-down"}), this._v(" "), t("div", {staticClass: "xly-suspension-connect"}), this._v(" "), t("div", {staticClass: "xly-suspension-try"}, [t("i", {staticClass: "xly-img-logo"}), this._v(" "), t("i", {staticClass: "xly-suspension-try__cloud"}), this._v(" "), t("i", {staticClass: "xly-suspension-try__rocket"})])])
        }];
        i._withStripped = !0, n.d(t, "a", function () {
            return i
        }), n.d(t, "b", function () {
            return o
        })
    }, 63: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(7), r = n(1), s = n(16), a = r.default.getLogger("MenuSkinNS");
        !function (e) {
            e.setStyle = function (e, t) {
                return i(this, void 0, void 0, function* () {
                    if (a.information("setStyle", e, t), null !== e) {
                        const {WindowPreferenceNS: e} = yield Promise.resolve().then(() => n(72));
                        let t = {windowPreference: e.getWindowPreference()};
                        a.information("skinOpts", t)
                    }
                })
            }, e.popEditableDefaultContextMenu = function (e, t, n) {
                return i(this, void 0, void 0, function* () {
                    let n = yield o.asyncRemoteCall.getCurrentWebContents();
                    n.once("context-menu", (r, l) => i(this, void 0, void 0, function* () {
                        if (a.verbose(r), l.isEditable) {
                            let i = [{
                                label: "撤销", enabled: l.editFlags.canUndo, click: () => {
                                    n.undo()
                                }
                            }, {type: "separator"}, {
                                label: "剪切", enabled: l.editFlags.canCut, click: () => {
                                    n.cut()
                                }
                            }, {
                                label: "复制", enabled: l.editFlags.canCopy, click: () => {
                                    n.copy()
                                }
                            }, {
                                label: "粘贴",
                                enabled: l.editFlags.canPaste && s.ThunderUtil.isClipboardTextFormatAvailable(),
                                click: () => {
                                    n.paste()
                                }
                            }, {
                                label: "删除", enabled: l.editFlags.canDelete, click: () => {
                                    n.delete()
                                }
                            }, {type: "separator"}, {
                                label: "全选", enabled: l.editFlags.canSelectAll, click: () => {
                                    n.selectAll()
                                }
                            }];
                            if (void 0 !== e && "function" == typeof e) {
                                let n = e(l);
                                void 0 !== n && n.length > 0 && (void 0 === t ? t = i.length : (t < 0 && (t = i.length + 1 + t) < 0 && (t = 0), t > i.length && (t = i.length)), i.splice(t, 0, ...n))
                            }
                            let r = yield(yield o.asyncRemoteCall.getMenu()).buildFromTemplate(i),
                                a = yield o.asyncRemoteCall.getCurrentWindow();
                            yield r.popup({window: a})
                        }
                    }))
                })
            }
        }(t.MenuSkinNS || (t.MenuSkinNS = {}))
    }, 655: function (e, t, n) {
        "use strict";
        var i = function () {
            var e = this, t = e.$createElement, n = e._self._c || t;
            return n("div", {
                staticClass: "xly-suspension-list",
                on: {
                    mouseover: e.enter, mouseleave: e.leave, mousedown: function (e) {
                        if ("button" in e && 1 !== e.button) return null;
                        e.preventDefault()
                    }
                }
            }, [n("td-tabs", {
                attrs: {tabs: e.tabs, "active-key": e.activeKey}, on: {
                    "update:activeKey": function (t) {
                        e.activeKey = t
                    }
                }, scopedSlots: e._u([{
                    key: "title", fn: function (t) {
                        var i = t.tab;
                        return [n("div", {
                            on: {
                                click: function (t) {
                                    e.manualChangeTab = !0
                                }
                            }
                        }, [e._v(e._s("download" === i.key ? e.downloadingTitle : e.cloudTitle))])]
                    }
                }, {
                    key: "default", fn: function (t) {
                        var i = t.tab;
                        return [n("div", {
                            directives: [{
                                name: "show",
                                rawName: "v-show",
                                value: "download" === i.key,
                                expression: "tab.key === 'download'"
                            }]
                        }, [e.haveDownloadTask ? n("ul", [e._l(e.loadedList, function (t) {
                            return n("task-item", {
                                key: t,
                                attrs: {taskId: t, taskBase: e.taskBaseInfos[t]},
                                nativeOn: {
                                    click: function (n) {
                                        e.clickItem(t)
                                    }
                                }
                            })
                        }), e._v(" "), n("li", {
                            directives: [{
                                name: "load",
                                rawName: "v-load",
                                value: {handler: e.loadMore, distance: "50px"},
                                expression: "{ handler: loadMore, distance: `50px` }"
                            }]
                        })], 2) : n("div", {staticClass: "xly-suspension-list__empty"}, [n("p", [e._v("暂无下载任务")])])]), e._v(" "), n("div", {
                            directives: [{
                                name: "show",
                                rawName: "v-show",
                                value: "cloud" === i.key,
                                expression: "tab.key === 'cloud'"
                            }]
                        }, [n("cloud-download-container", {
                            attrs: {"is-logined": e.isLogined},
                            on: {"refresh-event": e.refresh}
                        })], 1)]
                    }
                }])
            }, [n("a", {
                directives: [{
                    name: "show",
                    rawName: "v-show",
                    value: this.blueTextShow,
                    expression: "this.blueTextShow"
                }], attrs: {slot: "extra", href: "javascript:;"}, on: {
                    mouseover: function (t) {
                        e.onMouseOver(!1)
                    }, mouseleave: function (t) {
                        e.onMouseLeave(!1)
                    }, click: function (t) {
                        e.onTextClick("blue")
                    }
                }, slot: "extra"
            }, [e._v(e._s(this.bluehoverText))]), e._v(" "), n("a", {
                directives: [{
                    name: "show",
                    rawName: "v-show",
                    value: this.yellowTextShow,
                    expression: "this.yellowTextShow"
                }],
                staticClass: " xly-suspension-list__link--vip",
                attrs: {slot: "extra", href: "javascript:;"},
                on: {
                    mouseover: function (t) {
                        e.onMouseOver(!0)
                    }, mouseleave: function (t) {
                        e.onMouseLeave(!0)
                    }, click: function (t) {
                        e.onTextClick("yellow")
                    }
                },
                slot: "extra"
            }, [e._v(e._s(this.yellowhoverText))])]), e._v(" "), n("div", {staticClass: "xly-suspension-list__footer"}, [n("td-button", {
                directives: [{
                    name: "show",
                    rawName: "v-show",
                    value: e.footerVisible,
                    expression: "footerVisible"
                }], staticClass: "td-button--other", on: {click: e.onClickShowFinishTask}
            }, [e._v(e._s(e.footerText))])], 1)], 1)
        }, o = [];
        i._withStripped = !0, n.d(t, "a", function () {
            return i
        }), n.d(t, "b", function () {
            return o
        })
    }, 662: function (e, t, n) {
        "use strict";
        var i = function () {
            var e = this, t = e.$createElement, n = e._self._c || t;
            return n("li", {staticClass: "xly-suspension-list__item"}, [n("span", {
                staticClass: "xly-suspension-list__background",
                style: e.getTaskProgress
            }), e._v(" "), n("i", {
                staticClass: "xly-icon-type is-middle",
                class: e.getTaskIcon
            }), e._v(" "), n("p", {
                staticClass: "xly-suspension-list__name",
                attrs: {title: e.taskName}
            }, [e._v(e._s(e.taskName))]), e._v(" "), n("p", {staticClass: "xly-suspension-list__status"}, [e._v(e._s(e.stateName))])])
        }, o = [];
        i._withStripped = !0, n.d(t, "a", function () {
            return i
        }), n.d(t, "b", function () {
            return o
        })
    }, 666: function (e, t, n) {
        "use strict";
        var i = function () {
            var e = this, t = e.$createElement, n = e._self._c || t;
            return e.empty ? n("div", {staticClass: "xly-suspension-list__empty"}, [n("p", [e._v("暂无云盘下载任务")])]) : n("ul", [e._l(e.loadedList, function (t) {
                return n("task-item-container", {
                    key: t, attrs: {taskId: t}, nativeOn: {
                        click: function (n) {
                            e.clickItem(t)
                        }
                    }
                })
            }), e._v(" "), n("li", {
                directives: [{
                    name: "load",
                    rawName: "v-load",
                    value: {handler: e.loadMore, distance: "50px"},
                    expression: "{ handler: loadMore, distance: `50px` }"
                }]
            })], 2)
        }, o = [];
        i._withStripped = !0, n.d(t, "a", function () {
            return i
        }), n.d(t, "b", function () {
            return o
        })
    }, 683: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(662), o = n(494);
        for (var r in o) "default" !== r && function (e) {
            n.d(t, e, function () {
                return o[e]
            })
        }(r);
        var s = n(0), a = Object(s.a)(o.default, i.a, i.b, !1, null, null, null);
        a.options.__file = "src\\suspension-xdas-renderer\\views\\task-item.vue", t.default = a.exports
    }, 684: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(1).default.getLogger("Thunder.SuspensionRender.hovertext.manager"), r = n(547);
        !function (e) {
            class t {
                constructor() {
                    this.mIsDonwloading = !1
                }

                get isDonwloading() {
                    return this.mIsDonwloading
                }

                set isDonwloading(e) {
                    this.mIsDonwloading = e
                }

                init() {
                    this.querySettingText().catch()
                }

                getText(e) {
                    let t = null;
                    return this.mResponse && (t = e ? this.mResponse.notvip : this.mResponse.unlogin), o.information("data", t), t
                }

                querySettingText() {
                    return i(this, void 0, void 0, function* () {
                        let e = new r.SettingHttpSession;
                        this.mResponse = yield e.querySetting(), o.information("mResponse", this.mResponse)
                    })
                }
            }

            e.HoverTextManager = t;
            let n = null;
            e.getHoverTextManager = function () {
                return n || (n = new t), n
            }
        }(t.HoverTextManagerNS || (t.HoverTextManagerNS = {}))
    }, 7: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(1).default.getLogger("async-remote-call"), r = n(42), s = n(12), a = n(6);
        t.asyncRemoteCall = new class extends s.EventEmitter {
            constructor() {
                super(), this.mapObj = new Map, this.mapObjIniting = new Map, "renderer" !== process.type && o.warning('can not import "renderer-process-call" module in non-renderer process', process.type)
            }

            getAppName() {
                return i(this, void 0, void 0, function* () {
                    if (void 0 === this.appName) {
                        let e = yield this.getApp();
                        this.appName = yield e.getName()
                    }
                    return this.appName
                })
            }

            getAppVersion() {
                return i(this, void 0, void 0, function* () {
                    if (void 0 === this.appVersion) {
                        let e = yield this.getApp();
                        this.appVersion = yield e.getVersion()
                    }
                    return this.appVersion
                })
            }

            getProcess() {
                return i(this, void 0, void 0, function* () {
                    return r.global.process.__resolve()
                })
            }

            getIpcMain() {
                return i(this, void 0, void 0, function* () {
                    return this.getCurrentObject("ipcMain")
                })
            }

            getDialog() {
                return i(this, void 0, void 0, function* () {
                    return this.getCurrentObject("dialog")
                })
            }

            getApp() {
                return i(this, void 0, void 0, function* () {
                    return this.getCurrentObject("app")
                })
            }

            getShell() {
                return i(this, void 0, void 0, function* () {
                    return this.getCurrentObject("shell")
                })
            }

            getMenu() {
                return i(this, void 0, void 0, function* () {
                    return this.getCurrentObject("Menu")
                })
            }

            getScreen() {
                return i(this, void 0, void 0, function* () {
                    return this.getCurrentObject("screen")
                })
            }

            getBrowserWindow() {
                return i(this, void 0, void 0, function* () {
                    return this.getCurrentObject("BrowserWindow")
                })
            }

            getWebContents() {
                return i(this, void 0, void 0, function* () {
                    return this.getCurrentObject("webContents")
                })
            }

            getGlobalShortcut() {
                return i(this, void 0, void 0, function* () {
                    return this.getCurrentObject("globalShortcut")
                })
            }

            getCurrentWebContents() {
                return i(this, void 0, void 0, function* () {
                    let e = this.mapObj.get("currentWebContents");
                    return void 0 === e && (this.mapObjIniting.get("currentWebContents") ? e = yield new Promise(e => i(this, void 0, void 0, function* () {
                        this.on("OnInitCurrentWebContents", t => {
                            e(t)
                        })
                    })) : (this.mapObjIniting.set("currentWebContents", !0), e = yield r.getCurrentWebContents().__resolve(), this.mapObjIniting.set("currentWebContents", !1), this.emit("OnInitCurrentWebContents", e), this.listeners("OnInitCurrentWebContents").forEach(e => {
                        this.removeListener("OnInitCurrentWebContents", e)
                    })), this.mapObj.set("currentWebContents", e)), e
                })
            }

            getCurrentWindow() {
                return i(this, void 0, void 0, function* () {
                    let e = this.mapObj.get("currentWindow");
                    return void 0 === e && (this.mapObjIniting.get("currentWindow") ? e = yield new Promise(e => i(this, void 0, void 0, function* () {
                        this.on("OnInitCurrentWindow", t => {
                            e(t)
                        })
                    })) : (this.mapObjIniting.set("currentWindow", !0), e = yield r.getCurrentWindow().__resolve(), this.mapObjIniting.set("currentWindow", !1), this.emit("OnInitCurrentWindow", e), this.listeners("OnInitCurrentWindow").forEach(e => {
                        this.removeListener("OnInitCurrentWindow", e)
                    })), this.mapObj.set("currentWindow", e)), e
                })
            }

            getCurrentObject(e) {
                return i(this, void 0, void 0, function* () {
                    let t = this.mapObj.get(e);
                    return a.isNullOrUndefined(t) && (this.mapObjIniting.get(e) ? t = yield new Promise(t => i(this, void 0, void 0, function* () {
                        this.on(e, e => {
                            t(e)
                        })
                    })) : (this.mapObjIniting.set(e, !0), t = yield r.electron[e].__resolve(), this.mapObjIniting.set(e, !1), this.emit(e, t), this.listeners(e).forEach(t => {
                        this.removeListener(e, t)
                    })), this.mapObj.set(e, t)), t
                })
            }
        }
    }, 72: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(79), o = n(73);
        !function (e) {
            e.getWindowPreference = function (e = !1) {
                let t = o.default(), n = {};
                return t && t.colors && "string" == typeof t.colors.colorPrimaryControl1 && (n.hoverBackgroundColor = e ? parseInt(i.ColorUtilNS.rgbaStringToHexWith0xBegin(t.colors.colorPrimaryControl1), 16) : i.ColorUtilNS.rgbaStringToHexWith0xBegin(t.colors.colorPrimaryControl1)), n
            }
        }(t.WindowPreferenceNS || (t.WindowPreferenceNS = {}))
    }, 73: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(3), r = n(1), s = n(4), a = r.default.getLogger("GetSkinInfo");
        let l;
        (function () {
            return i(this, void 0, void 0, function* () {
                "renderer" === process.type ? (a.information("renderer process"), s.client.callServerFunction("GetSkinInfo").then(e => {
                    l = e, a.information("send OnChangeSkin", e)
                }).catch(e => {
                    a.warning(e)
                }), s.client.attachServerEvent("OnChangeSkin", (e, t) => {
                    l = t, a.information("send OnChangeSkin", t)
                })) : "browser" === process.type && (a.information("main process"), o.ipcMain.on("OnChangeSkin", (e, t) => {
                    a.information("OnChangeSkin", t), l = t
                }))
            })
        })().catch(e => {
            a.information(e)
        }), t.default = function () {
            return l
        }
    }, 79: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), function (e) {
            function t(e) {
                let t = e.toString(16).toUpperCase();
                return t.length < 2 && (t = "0" + t), t
            }

            function n(e, n, i, o) {
                return "0x" + t(o) + t(e) + t(n) + t(i)
            }

            e.rgbaStringToHexWith0xBegin = function (e) {
                if (void 0 !== e) {
                    let t = e.split(",");
                    return n(parseInt(t[0] || "0", 10), parseInt(t[1] || "0", 10), parseInt(t[2] || "0", 10), parseInt(t[3] || "255", 10))
                }
            }, e.colorNumberToHex = t, e.rgbaToHexWith0xBegin = n
        }(t.ColorUtilNS || (t.ColorUtilNS = {}))
    }, 8: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0}), t.default = function (e) {
            return require(e)
        }
    }, 80: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(38), r = n(21), s = n(20), a = n(1).default.getLogger("Thunder.base.tools-utilities"), l = n(2),
            d = n(8).default(l.join(__rootDir, "../bin/ThunderHelper.node"));
        !function (e) {
            function t(e) {
                return i(this, void 0, void 0, function* () {
                    let t;
                    return t = e && (yield s.FileSystemAWNS.existsAW(e)) ? new Promise(t => {
                        d.asyncCalcuteFileMD5(e, (e, n) => {
                            e ? (n = n.toUpperCase(), t(n)) : t(void 0)
                        })
                    }) : new Promise(e => {
                        e(void 0)
                    })
                })
            }

            e.genarateMd5 = function (e) {
                let t = void 0, n = o.createHash("md5");
                return null !== n && (t = n.update(e).digest("hex")), t
            }, e.matchFileMd5 = function (e, n) {
                return i(this, void 0, void 0, function* () {
                    let i = !1, o = yield t(e);
                    return void 0 !== o && o === n.toUpperCase() && (a.information("check full md5 sucessful"), i = !0), i
                })
            }, e.calculateFileMd5Ex = function (e) {
                return i(this, void 0, void 0, function* () {
                    let t;
                    if (e && (yield s.FileSystemAWNS.existsAW(e))) {
                        let n = r.createReadStream(e), i = o.createHash("md5");
                        n.on("data", e => {
                            i.update(e)
                        }), t = new Promise(e => {
                            n.on("end", () => {
                                let t = i.digest("hex");
                                t = t.toUpperCase(), e(t)
                            })
                        })
                    } else t = new Promise(e => {
                        e(void 0)
                    });
                    return t
                })
            }, e.calculateFileMd5 = t, e.encryptBuffer = function (e, t) {
                let n = null;
                try {
                    let i = o.createCipheriv("aes-128-ecb", t, ""), r = i.update(e), s = i.final();
                    n = Buffer.concat([r, s])
                } catch (e) {
                    a.warning("encryptBuffer", e)
                }
                return n
            }, e.decryptBuffer = function (e, t) {
                let n = null;
                try {
                    let i = o.createDecipheriv("aes-128-ecb", t, ""), r = i.update(e), s = i.final();
                    n = Buffer.concat([r, s])
                } catch (e) {
                    a.warning("decryptBuffer", e)
                }
                return n
            }, e.encryptSha1Buffer = function (e) {
                let t = null;
                try {
                    t = o.createHash("sha1").update(e).digest("hex")
                } catch (e) {
                    a.warning("encryptSha1Buffer", e)
                }
                return t
            }, e.encryptHmacBuffer = function (e, t, n, i = "hex") {
                let r = null;
                try {
                    r = o.createHmac(e, t).update(n, "utf8").digest(i)
                } catch (e) {
                    a.warning("encryptSha1Buffer", e)
                }
                return r
            }, e.setForegroundWindow = function (e, t) {
                return i(this, void 0, void 0, function* () {
                    if (null !== e && null !== t) {
                        let n = void 0, o = [];
                        "renderer" === process.type ? (n = yield t.getNativeWindowHandle(), o = yield t.getChildWindows()) : (n = t.getNativeWindowHandle(), o = t.getChildWindows());
                        let r = [];
                        for (let e = 0; e < o.length; ++e) {
                            let t = o[e], n = !1;
                            "renderer" === process.type ? (yield t.isDestroyed()) || (n = yield t.isAlwaysOnTop()) : t.isDestroyed() || (n = t.isAlwaysOnTop()), n && r.push(t)
                        }
                        let s = n.readUIntLE(0, 4);
                        e.setForegroundWindow(s) ? a.information("setForegroundWindow sucessful") : a.information("setForegroundWindow failed"), r.forEach(e => i(this, void 0, void 0, function* () {
                            "renderer" === process.type ? (yield e.isDestroyed()) || e.setAlwaysOnTop(!0).catch() : e.isDestroyed() || e.setAlwaysOnTop(!0)
                        }))
                    }
                })
            }
        }(t.ToolsUtilitiesAWNS || (t.ToolsUtilitiesAWNS = {}))
    }, 83: function (e, t, n) {
        e.exports = n(9)(215)
    }, 84: function (e, t, n) {
        e.exports = n(9)(194)
    }, 9: function (e, t) {
        e.exports = vendor_0aff229d1d3a2d2be355
    }, 988: function (e, t, n) {
        n(49), e.exports = n(989)
    }, 989: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(39);
        n(4).client.start({name: "suspensionXdasRenderer"}), i.CommonIPCRenderer.rendererCommunicator.initialize("suspensionXdasRenderer"), i.CommonIPCRenderer.rendererCommunicator.connect();
        const o = n(52), r = n(31), s = n(990), a = n(176);
        n(61);
        const l = n(62), d = n(1).default.getLogger("SuspensionXdasRenderer");
        o.PerformanceMonitorStatNS.init("suspension-xdas-renderer"), l.ThunderToolsNS.enableDevTools().catch(e => {
            d.warning(e)
        }), r.default.use(a.default), l.ThunderToolsNS.enableDragOpenFile(), new r.default({
            components: {AppContainer: s.default},
            render: e => e("app-container")
        }).$mount("#app")
    }, 990: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(486);
        for (var o in i) "default" !== o && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(o);
        var r = n(0), s = Object(r.a)(i.default, void 0, void 0, !1, null, null, null);
        s.options.__file = "src\\suspension-xdas-renderer\\app-container.vue", t.default = s.exports
    }, 991: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(628), o = n(488);
        for (var r in o) "default" !== r && function (e) {
            n.d(t, e, function () {
                return o[e]
            })
        }(r);
        n(1007), n(1008), n(1009), n(556), n(1010);
        var s = n(0), a = Object(s.a)(o.default, i.a, i.b, !1, null, null, null);
        a.options.__file = "src\\suspension-xdas-renderer\\app.vue", t.default = a.exports
    }, 992: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(490);
        for (var o in i) "default" !== o && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(o);
        var r = n(0), s = Object(r.a)(i.default, void 0, void 0, !1, null, null, null);
        s.options.__file = "src\\suspension-xdas-renderer\\views\\float-panel-container.vue", t.default = s.exports
    }, 993: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(655), o = n(492);
        for (var r in o) "default" !== r && function (e) {
            n.d(t, e, function () {
                return o[e]
            })
        }(r);
        var s = n(0), a = Object(s.a)(o.default, i.a, i.b, !1, null, null, null);
        a.options.__file = "src\\suspension-xdas-renderer\\views\\float-panel.vue", t.default = a.exports
    }, 994: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(496);
        for (var o in i) "default" !== o && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(o);
        var r = n(0), s = Object(r.a)(i.default, void 0, void 0, !1, null, null, null);
        s.options.__file = "src\\suspension-xdas-renderer\\views\\cloud-download\\index-container.vue", t.default = s.exports
    }, 995: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(666), o = n(498);
        for (var r in o) "default" !== r && function (e) {
            n.d(t, e, function () {
                return o[e]
            })
        }(r);
        var s = n(0), a = Object(s.a)(o.default, i.a, i.b, !1, null, null, null);
        a.options.__file = "src\\suspension-xdas-renderer\\views\\cloud-download\\index.vue", t.default = a.exports
    }, 996: function (e, t, n) {
        "use strict";
        n.r(t);
        var i = n(500);
        for (var o in i) "default" !== o && function (e) {
            n.d(t, e, function () {
                return i[e]
            })
        }(o);
        var r = n(0), s = Object(r.a)(i.default, void 0, void 0, !1, null, null, null);
        s.options.__file = "src\\suspension-xdas-renderer\\views\\cloud-download\\task-item-container.vue", t.default = s.exports
    }, 997: function (e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {value: !0});
        const i = n(1), o = n(239), r = i.default.getLogger("store cloud");

        function s(e) {
            let t = e.loadedIndex + o.FloatPanelHelper.pageSize;
            t > e.cloudTaskIds.length && (t = e.cloudTaskIds.length);
            let n = e.cloudTaskIds.slice(0, t), i = {};
            for (let e of n) i[e] = o.FloatPanelHelper.cloudNoneReactiveTasksMap[e];
            e.cloudTasksMap = Object.assign({}, i)
        }

        const a = {
            INIT_TASKS(e, t) {
                let n = {}, i = [];
                for (let e of t) n[e.taskId] = e, i.unshift(e.taskId);
                o.FloatPanelHelper.cloudNoneReactiveTasksMap = n, e.cloudTaskIds = i, s(e)
            }, INSERT_TASKS(e, t) {
                let n = [];
                for (let e of t) o.FloatPanelHelper.cloudNoneReactiveTasksMap[e.taskId] = e, n.unshift(e.taskId);
                e.cloudTaskIds.splice(0, 0, ...n), s(e), r.information(JSON.stringify(e.cloudTasksMap), JSON.stringify(e.cloudTaskIds))
            }, REMOVE_TASKS(e, t) {
                let n = [...e.cloudTaskIds];
                for (let e of t) {
                    delete o.FloatPanelHelper.cloudNoneReactiveTasksMap[e];
                    let t = n.indexOf(e);
                    -1 !== t && n.splice(t, 1)
                }
                e.cloudTaskIds = n, s(e)
            }, UPDATE_TASKS_DETAIL(e, t) {
                for (let n in t) o.FloatPanelHelper.cloudNoneReactiveTasksMap.hasOwnProperty(String(n)) && (o.FloatPanelHelper.cloudNoneReactiveTasksMap[n] = t[n], e.cloudTasksMap.hasOwnProperty(String(n)) && (e.cloudTasksMap[n] = Object.assign({}, t[n])))
            }, UPDATE_TASKS_STATUS(e, t) {
                r.information("update tasks status");
                for (let n in t) o.FloatPanelHelper.cloudNoneReactiveTasksMap.hasOwnProperty(String(n)) && (o.FloatPanelHelper.cloudNoneReactiveTasksMap[n].taskStatus = t[n], e.cloudTasksMap.hasOwnProperty(String(n)) && (e.cloudTasksMap[n].taskStatus = t[n]))
            }, LOAD_MORE(e) {
                e.loadedIndex + o.FloatPanelHelper.pageSize > e.cloudTaskIds.length ? e.loadedIndex = e.cloudTaskIds.length : e.loadedIndex += o.FloatPanelHelper.pageSize, s(e)
            }, RESET_STORE(e) {
                e.cloudTaskIds.splice(0, e.cloudTaskIds.length), e.cloudTasksMap = {}, o.FloatPanelHelper.cloudNoneReactiveTasksMap = {}
            }
        }, l = {
            loadedList: e => {
                let t = e.loadedIndex + o.FloatPanelHelper.pageSize;
                return t > e.cloudTaskIds.length && (t = e.cloudTaskIds.length), e.cloudTaskIds.slice(0, t)
            }
        };
        t.default = {
            state: {cloudTaskIds: [], loadedIndex: 0, cloudTasksMap: {}},
            mutations: a,
            actions: {},
            getters: l
        }
    }, 998: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(7);
        !function (e) {
            e.getScreenRectangle = function () {
                return i(this, void 0, void 0, function* () {
                    let e = {x: 0, y: 0, width: 0, height: 0}, t = yield o.asyncRemoteCall.getScreen(),
                        n = yield t.getPrimaryDisplay();
                    e.width = Math.floor(n.size.width), e.height = Math.floor(n.size.height);
                    let i = (yield t.getAllDisplays()).find(e => 0 !== e.bounds.x || 0 !== e.bounds.y);
                    return i && (i.bounds.x < 0 ? (e.x = i.bounds.x, e.width += Math.floor(i.bounds.width), e.y = 0) : i.bounds.x > 0 ? (e.x = 0, e.width += Math.floor(i.bounds.width), e.y = 0) : i.bounds.y < 0 ? (e.x = 0, e.y = i.bounds.y, e.height += Math.floor(i.bounds.height)) : i.bounds.y > 0 && (e.x = 0, e.y = 0, e.height += Math.floor(i.bounds.height))), e
                })
            }, e.getAllScreenDisplay = function () {
                return i(this, void 0, void 0, function* () {
                    let e = {x: 0, y: 0, width: 0, height: 0}, t = yield o.asyncRemoteCall.getScreen(),
                        n = yield t.getPrimaryDisplay();
                    return e.width = Math.floor(n.size.width), e.height = Math.floor(n.size.height), yield t.getAllDisplays()
                })
            }
        }(t.MutiScreenHelper || (t.MutiScreenHelper = {}))
    }, 999: function (e, t, n) {
        "use strict";
        var i = this && this.__awaiter || function (e, t, n, i) {
            return new (n || (n = Promise))(function (o, r) {
                function s(e) {
                    try {
                        l(i.next(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function a(e) {
                    try {
                        l(i.throw(e))
                    } catch (e) {
                        r(e)
                    }
                }

                function l(e) {
                    e.done ? o(e.value) : new n(function (t) {
                        t(e.value)
                    }).then(s, a)
                }

                l((i = i.apply(e, t || [])).next())
            })
        };
        Object.defineProperty(t, "__esModule", {value: !0});
        const o = n(551), r = n(1).default.getLogger("Thunder.Suspension.bubble"), s = n(43), a = n(11), l = n(142),
            d = n(227), u = n(12), c = n(4), h = d.UserHelperNS.getUserHelper();
        var p;
        !function (e) {
            e.bubbleShowChanged = "OnBubbleShowChanged"
        }(p = t.BubbleEventNS || (t.BubbleEventNS = {}));

        class f extends u.EventEmitter {
            constructor() {
                super(...arguments), this.mIsBubbleVisible = !1, this.mIsFloatPanelShowed = !1, this.mIsClosed = !1, this.mCloseTimer = null, this.mQueryTimer = null
            }

            get isFloatPanelShowed() {
                return this.mIsFloatPanelShowed
            }

            set isFloatPanelShowed(e) {
                this.mIsFloatPanelShowed = e
            }

            get isBubbleVisible() {
                return r.information("mIsBubbleVisible", this.mIsBubbleVisible), this.mIsBubbleVisible
            }

            init() {
                return i(this, void 0, void 0, function* () {
                    {
                        this.attachUserEvents(), h.loadThunderVersion();
                        let e = yield this.isLogin().then();
                        r.information("islogin", e), e && this.onLogin().catch()
                    }
                })
            }

            closeBubble(e) {
                r.information("closeBubble", e), this.mIsBubbleVisible = !1, this.emit(p.bubbleShowChanged, !1)
            }

            showBubble() {
                return i(this, void 0, void 0, function* () {
                    do {
                        let e = yield this.isCanShowBubble();
                        if (r.information("isCanShow", e), this.calculateExpireDate(), !this.mResponse || 0 !== this.mResponse.result || !e || this.mIsClosed) break;
                        try {
                            if (this.mTipContent = JSON.parse(this.mResponse.data.content), !this.mTipContent || !this.mTipContent.text) break;
                            r.information("mTipContent", this.mTipContent), this.mIsBubbleVisible = !0;
                            let e = this.mTipContent.text.split("{{day}}");
                            r.information("textArray", e);
                            let t = {};
                            if (e.length > 1) {
                                t.bubbleText = e[0], t.bubbleEndText = e[1];
                                let n = this.calculateExpireDate();
                                r.information("expireDate", n), t.expireDate = n
                            } else t.bubbleText = this.mTipContent.text;
                            t.bubbleBtnText = this.mTipContent.buttonText, this.emit(p.bubbleShowChanged, !0, t), yield this.reportTip();
                            let n = this.getCurrentDateStr();
                            yield l.ConfigHelperNS.setValue("SuspensionBubble", h.userId + "_ShowDate", n), r.information("SuspensionBubble", h.userId + "_ShowDate", n), this.killTimer(), this.mCloseTimer = setTimeout(() => i(this, void 0, void 0, function* () {
                                this.mIsClosed || this.closeBubble(1)
                            }), 6e4)
                        } catch (e) {
                        }
                    } while (0)
                })
            }

            queryTip() {
                return i(this, void 0, void 0, function* () {
                    {
                        let e = new o.BubbleHttpSession;
                        this.mResponse = yield e.queryTip(), r.information("mResponse :", this.mResponse), yield this.showBubble()
                    }
                })
            }

            traceEvent(e, t) {
                let n = "";
                null !== t && void 0 !== t && "" !== t && (n = t), r.information(e, n), a.XLStatNS.trackEvent("xlx_vip_event", e, "", 0, 0, 0, 0, n)
            }

            getCommonExtData() {
                let e = "";
                return e = (e = (e = e + ",is_login=" + (this.isLogin() ? "1" : "0")) + ",is_vip=" + (h.isVip ? "1" : "0")) + ",vip_type=" + h.vasType
            }

            showTip() {
                let e = this.getCommonExtData();
                this.traceEvent("xfq_xfmodel_show", e)
            }

            closeTip(e) {
                let t = this.getCommonExtData();
                t = t + ",button=" + e, this.traceEvent("xfq_xfmodel_click", t)
            }

            isCanShowBubble() {
                return i(this, void 0, void 0, function* () {
                    let e = !0;
                    do {
                        let t = yield l.ConfigHelperNS.getValue("SuspensionBubble", h.userId + "_ShowDate", "0");
                        r.information("bubbleShowDate", t);
                        let n = this.getCurrentDateStr();
                        if (r.information("curDate", n), t === n) {
                            e = !1;
                            break
                        }
                        let i = yield l.ConfigHelperNS.getValue("CenterTip", h.userId + "_ShowDate", "0");
                        if (r.information("centerTipShowDate", i), i === n) {
                            e = !1;
                            break
                        }
                        let o = yield this.isLogin();
                        if (r.information("islogin", o), !o) {
                            e = !1;
                            break
                        }
                        if (this.mIsFloatPanelShowed) {
                            e = !1;
                            break
                        }
                    } while (0);
                    return e
                })
            }

            killTimer() {
                null !== this.mCloseTimer && (clearTimeout(this.mCloseTimer), this.mCloseTimer = null), null !== this.mQueryTimer && (clearTimeout(this.mQueryTimer), this.mQueryTimer = null)
            }

            isLogin() {
                return i(this, void 0, void 0, function* () {
                    return yield c.client.callServerFunction("IsLogined")
                })
            }

            attachUserEvents() {
                s.NativeCallModule.nativeCall.AttachNativeEvent("onLoginSuc", () => i(this, void 0, void 0, function* () {
                    r.information("onLoginSuc"), this.onLogin().catch()
                })), s.NativeCallModule.nativeCall.AttachNativeEvent("onLogout", () => {
                    h.onLogout(), this.killTimer(), this.closeBubble(0), this.mIsBubbleVisible = !1, this.mIsClosed = !1, this.mResponse = null, this.mTipContent = null
                }), s.NativeCallModule.nativeCall.AttachNativeEvent("onUserInfoChange", (e, t) => i(this, void 0, void 0, function* () {
                    yield this.onUserInfoChange(e, t)
                })), s.NativeCallModule.nativeCall.AttachNativeEvent("onLoginStatusChange", (e, t) => {
                    this.onLoginStatusChange(t)
                })
            }

            calculateExpireDate() {
                let e, t, n;
                e = h.expireDate.substring(0, 4), t = h.expireDate.substring(4, 6), n = h.expireDate.substring(6, 8);
                let i = new Date(e + "-" + t + "-" + n + " 00:00:00").getTime() / 1e3, o = new Date,
                    r = o.getFullYear(), s = o.getMonth(), a = o.getDate(),
                    l = (o = new Date(r + "-" + (s < 10 ? "0" + (s + 1) : s + 1) + "-" + (a < 10 ? "0" + a : a) + " 00:00:00")).getTime() / 1e3;
                return Math.ceil(Math.abs(i - l) / 86400)
            }

            getCurrentDateStr() {
                let e = new Date, t = e.getFullYear(), n = e.getMonth(), i = e.getDate();
                return t.toString() + (n < 10 ? "0" + (n + 1) : n + 1) + (i < 10 ? "0" + i : i)
            }

            reportTip() {
                return i(this, void 0, void 0, function* () {
                    let e = yield(new o.BubbleHttpSession).reportTip(this.mResponse.data.msgid, this.mResponse.data.reach_type);
                    r.information("ret", e), this.showTip()
                })
            }

            clickBubble(e) {
                this.mIsBubbleVisible = !1, r.information("clickType", e), this.mIsClosed = !0;
                let t = null;
                if (1 === e ? t = "xf" : 2 === e ? t = "x" : 3 === e ? t = "other_area" : 4 === e && (t = "xfq"), this.closeBubble(1), this.closeTip(t), 2 !== e && this.mTipContent && this.mTipContent.url) {
                    let e = this.mTipContent.url;
                    this.mTipContent.aid && (e = e + "?aidfrom=" + this.mTipContent.aid), this.mTipContent.refer && (e = e + "&referfrom=" + this.mTipContent.refer), r.information("url", e), c.client.callServerFunction("BringMainWndToTop").catch(), c.client.callServerFunction("OpenNewTab", e).catch()
                }
            }

            onUserInfoChange(e, t) {
                return i(this, void 0, void 0, function* () {
                    "vipinfo" === e && (yield h.parseUserInfo())
                })
            }

            onLoginStatusChange(e) {
                "offline" === e && h.onLogout()
            }

            onLogin() {
                return i(this, void 0, void 0, function* () {
                    yield h.onLogin(), this.mQueryTimer || (r.information("start timer 30s"), this.mQueryTimer = setTimeout(() => i(this, void 0, void 0, function* () {
                        this.mQueryTimer = null, this.isCanShowBubble() && (yield this.queryTip())
                    }), 3e4))
                })
            }
        }

        t.BubbleManager = f, function (e) {
            let t = null;
            e.getBubbleManager = function () {
                return t || (t = new f), t
            }
        }(t.BubbleManagerNS || (t.BubbleManagerNS = {}))
    }
});