diff --git a/README.md b/README.md index 2b4ab16..628839f 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ - 作者首页:[https://amujie.com](https://amujie.com) - 加群链接:[https://jq.qq.com/?_wv=1027&k=5Cpumac](https://jq.qq.com/?_wv=1027&k=5Cpumac) - 扣群号码:137183109 -- 静态文件:[https://cdn.jsdelivr.net/gh/amujie/mojia@latest/](https://cdn.jsdelivr.net/gh/amujie/mojia@latest/) +- 静态文件:[https://cdn.jsdelivr.net/gh/amujie/mojia@master/](https://cdn.jsdelivr.net/gh/amujie/mojia@master/) #### 主题简介 - 主题定价:¥198(一个站点丨售后永久免费更新) diff --git a/about/changelog.json b/about/changelog.json index 177cafb..a3bf8b5 100644 --- a/about/changelog.json +++ b/about/changelog.json @@ -1,4 +1,14 @@ { + "1.1.0": [ + "优化主题设置移动端显示问题", + "优化评论留言表情显示效果", + "优化采集功能播放器配置问题", + "优化浏览器访问控制功能", + "修复详情标签错误导致错位问题", + "修复Satari深色模式的问题", + "修复图片盗链接口错误的问题", + "修复二维码小图标跨域的问题" + ], "1.0.9": [ "修复视频集数列表的问题", "修复采集优化标签问题", diff --git a/asset/css/style.css b/asset/css/style.css index 274284d..6a78a5f 100644 --- a/asset/css/style.css +++ b/asset/css/style.css @@ -220,7 +220,7 @@ p {line-height: 1.875rem;word-wrap: break-word} i {font-style: normal;display: inline-block} li {list-style: none} hr {border-width: 0;border-bottom-width: 1px;} -img {display: inline-block;border: 0;vertical-align: middle;max-width: 100%;} +img {display: inline-block;border: 0;vertical-align: middle;max-width: 100% !important;} table {border-collapse: collapse;border-spacing: 0} html, body {height: auto !important;} @@ -569,9 +569,34 @@ input:-webkit-autofill:focus {background-clip: content-box !important;} .mo-lhxl-24px {line-height: 1.5rem} .mo-byxl-20by15 {padding-top: 75%} } +@media(min-width:1400px) { + /* 1440 */ + .mo-cols-sl1 {width: 8.33333333%} + .mo-cols-sl2 {width: 16.66666667%} + .mo-cols-sl3 {width: 25%} + .mo-cols-sl4 {width: 33.33333333%} + .mo-cols-sl5 {width: 41.66666667%} + .mo-cols-sl6 {width: 50%} + .mo-cols-sl7 {width: 58.33333333%} + .mo-cols-sl8 {width: 66.66666667%} + .mo-cols-sl9 {width: 75%} + .mo-cols-sl10 {width: 83.33333333%} + .mo-cols-sl11 {width: 91.66666667%} + .mo-cols-sl12 {width: 100%} + .mo-cols-sl1x {width: 10%} + .mo-cols-case {width: 82.5rem} + .mo-cosl-west {float: left;} + .mo-cosl-east {float: right;} + .mo-cosl-none {display: none !important} + .mo-cosl-block {display: block !important} + .mo-cosl-inline {display: inline !important} + .mo-cosl-iblock {display: inline-block !important} + .mo-cosl-table {display: table-cell !important} + .mo-cosl-left {text-align: left !important} + .mo-cosl-right {text-align: right !important} + .mo-cosl-center {text-align: center !important} +} /* 通用组件 */ -.mo-part-hide {display: none !important} -.mo-part-show {display: block !important} .mo-part-curs {cursor: pointer} .mo-part-coin {border-radius: 100%} .mo-part-hund {border-radius: 6.25rem} diff --git a/asset/exc/config.php b/asset/exc/config.php index 5d1c028..f7d6fa5 100644 --- a/asset/exc/config.php +++ b/asset/exc/config.php @@ -221,7 +221,7 @@ 'type' => '', 'brand' => '', 'sort' => '0', - 'ver' => '1.2.2', + 'ver' => '1.2.3', 'num' => '12', 'state' => '0', ), @@ -1046,13 +1046,20 @@ 'time' => '2021-05-20 13:14:20', 'state' => '1', ), - 'cdns' => + 'cdns' => array ( 'name' => '静态加速', 'link' => 'https://cdn.jsdelivr.net/gh/amujie/mojia', 'debug' => '1', 'state' => '1', ), + 'init' => + array ( + 'name' => '脚本入口', + 'file' => 'global', + 'exclu' => '0', + 'state' => '0', + ), 'edit' => array ( 'name' => '编辑按钮', diff --git a/asset/exc/create.php b/asset/exc/create.php index a15b27d..82b0fe3 100644 --- a/asset/exc/create.php +++ b/asset/exc/create.php @@ -1,278 +1,299 @@ '0', 'msg' => '请先登录后台管理系统再进行操作'))); + die(json_encode(array('code' => '0', 'msg' => '请先登录后台管理系统再进行操作'))); } elseif (@$_GET['id'] == 'opt') { - moJiaOptions(); + moJiaOptions(); } elseif (@$_GET['id'] == 'col') { - moJiaCollect(); + moJiaCollect(); } elseif (@$_GET['id'] == 'url') { - moJiaCommon(); + moJiaCommon(); } + // 主题设置 -function moJiaOptions() -{ - if (!moJiaPower('mojia', moJiaPath('base'))) { - die(json_encode(array('msg' => '权限不足'))); - } elseif (isset($_POST['ver'])) { - if (@$_POST['ver'] == 'now') { - $version = parse_ini_file('../../info.ini'); - echo json_encode(array('ver' => $version['version'])); - } elseif (@$_POST['ver'] == 'new') { - $versnew = moJiaCurlGet(moJiaPath('vers')); - preg_match_all('//i', $versnew, $match); - echo json_encode(array('ver' => $match[1][0], 'key' => md5('mojia-' . $match[1][0]))); - } elseif (@$_POST['ver'] == 'log') { - echo moJiaCurlGet(str_replace('latest', $_POST['new'], moJiaPath('vers')) . 'about/changelog.json'); - } - } elseif (isset($_POST['key'])) { - if (file_put_contents(moJiaPath('path') . 'application/extra/mojiakey.php', '')) { - file_put_contents(moJiaPath('path') . 'runtime/temp/' . md5('mojia') . '.php', ''); - $path = moJiaPath('path') . 'application/data/config/quickmenu.txt'; - $info = '魔加主题设置,' . moJiaPath('home') . 'index.php/label/admin' . chr(13) . chr(10) . '魔加采集优化,' . moJiaPath('home') . 'index.php/label/union'; - if (stristr(file_get_contents($path), $info)) { - die(json_encode(array('msg' => '授权成功,快捷菜单已存在'))); - } elseif (file_put_contents($path, '行分隔符,###' . chr(13) . chr(10) . $info . chr(13) . chr(10) . '行分隔符,###' . chr(13) . chr(10) . file_get_contents($path))) { - die(json_encode(array('msg' => '授权成功,快捷菜单添加成功'))); - } - } else { - die(json_encode(array('msg' => '授权失败,请联系QQ1570457334'))); - } - } elseif (isset($_POST['def'])) { - if (file_exists(moJiaPath('path') . 'application/extra/mojiaopt.php')) { - if (@unlink(moJiaPath('path') . 'application/extra/mojiaopt.php')) { - $html = file_get_contents('../../html/basics/seokey.html'); - $seokey = @require('config.php'); - foreach ($seokey['seo'] as $value => $key) { - foreach ($seokey['seo'][$value] as $item => $sub) { - $html = str_replace('{' . $item . $seokey['seo'][$value]['aid'] . '}', $sub, $html); - } - } - if (!file_put_contents('../../html/tinier/seokey.html', $html)) { - die(json_encode(array('msg' => 'SEO设置恢复失败,请检查文件权限'))); - } - die(json_encode(array('msg' => '恢复成功'))); - } else { - die(json_encode(array('msg' => '恢复失败'))); - } - } else { - die(json_encode(array('msg' => '当前已经是默认设置了'))); - } - } elseif (isset($_POST['chat'])) { - $option = @require(moJiaPath('path') . 'application/extra/maccms.php'); - $option['weixin']['gjc1'] = @$_POST['send']; - $option['weixin']['gjcm1'] = @$_POST['code']; - $option['site']['site_status'] = @$_POST['close']; - if (file_put_contents(moJiaPath('path') . 'application/extra/maccms.php', '')) { - die(json_encode(array('msg' => '修改成功'))); - } else { - die(json_encode(array('msg' => '执行失败'))); - } - } elseif (isset($_POST['tpl'])) { - $option = @require(moJiaPath('path') . 'application/extra/maccms.php'); - $option['site']['template_dir'] = @$_POST['tpl']; - if (file_put_contents(moJiaPath('path') . 'application/extra/maccms.php', '')) { - @unlink('../../../' . $_POST['tpl'] . '.zip'); - $option = @require(moJiaPath('path') . 'application/extra/maccms.php'); - die(json_encode(array('msg' => $option['site']['template_dir']))); - } else { - die(json_encode(array('msg' => '执行失败'))); - } - } elseif (isset($_POST['seo'])) { - $option = @require(moJiaPath('path') . 'application/extra/mojiaopt.php'); - unset($option['seo']); - $seokey = @require('config.php'); - $option['seo'] = $seokey['seo']; - if (file_put_contents(moJiaPath('path') . 'application/extra/mojiaopt.php', '')) { - $html = file_get_contents('../../html/basics/seokey.html'); - foreach ($seokey['seo'] as $value => $key) { - foreach ($seokey['seo'][$value] as $item => $sub) { - $html = str_replace('{' . $item . $seokey['seo'][$value]['aid'] . '}', $sub, $html); - } - } - if (!file_put_contents('../../html/tinier/seokey.html', $html)) { - die(json_encode(array('msg' => 'SEO设置恢复失败,请检查文件权限'))); - } - die(json_encode(array('msg' => 'SEO设置恢复成功'))); - } else { - die(json_encode(array('msg' => 'SEO设置恢复失败'))); - } - } elseif (isset($_POST['mojia'])) { - if (file_put_contents(moJiaPath('path') . 'application/extra/mojiaopt.php', '')) { - $html = file_get_contents('../../html/basics/seokey.html'); - $seokey = $_POST['mojia']['seo']; - foreach ($seokey as $value => $key) { - foreach ($seokey[$value] as $item => $sub) { - $html = str_replace('{' . $item . $seokey[$value]['aid'] . '}', $sub, $html); - } - } - if (!file_put_contents('../../html/tinier/seokey.html', $html)) { - die(json_encode(array('msg' => 'SEO设置保存失败,请检查文件权限'))); - } - die(json_encode(array('msg' => '保存成功'))); - } else { - die(json_encode(array('msg' => '保存失败'))); - } - } elseif (isset($_POST['news'])) { - $path = '../../../'; - $name = 'mojia-' . $_POST['news'] . '.zip'; - $href = moJiaPath('down') . $name . '?v=' . time(); - if (!moJiaIsExists($href)) { - die(json_encode(array('code' => '0', 'msg' => '未找到到最新版主题文件'))); - } - if (!moJiaDownload($href, $path, $name)) { - die(json_encode(array('code' => '0', 'msg' => '主题下载失败'))); - } - if (moJiaUnzip($path, $name, @$_POST['pass'])) { - die(json_encode(array('code' => '1', 'msg' => '主题升级成功'))); - } else { - die(json_encode(array('code' => '0', 'msg' => '主题解压失败'))); - } - } else { - die(json_encode(array('msg' => '执行失败'))); - } +function moJiaOptions() { + if (!moJiaPower('mojia', moJiaPath('base'))) { + die(json_encode(array('msg' => '权限不足'))); + } elseif (isset($_POST['ver'])) { + if (@$_POST['ver'] == 'now') { + $version = parse_ini_file('../../info.ini'); + echo json_encode(array('ver' => $version['version'])); + } elseif (@$_POST['ver'] == 'new') { + $versnew = moJiaCurlGet(moJiaPath('vers')); + preg_match_all('//i', $versnew, $match); + echo json_encode(array('ver' => $match[1][0], 'key' => md5('mojia-' . $match[1][0]))); + } elseif (@$_POST['ver'] == 'log') { + echo moJiaCurlGet(str_replace('latest', $_POST['new'], moJiaPath('vers')) . 'about/changelog.json'); + } + } elseif (isset($_POST['key'])) { + if (file_put_contents(moJiaPath('path') . 'application/extra/mojiakey.php', '')) { + file_put_contents(moJiaPath('path') . 'runtime/temp/' . md5('mojia') . '.php', ''); + $path = moJiaPath('path') . 'application/data/config/quickmenu.txt'; + $info = '魔加主题设置,' . moJiaPath('home') . 'index.php/label/admin' . chr(13) . chr(10) . '魔加采集优化,' . moJiaPath('home') . 'index.php/label/union'; + if (stristr(file_get_contents($path), $info)) { + die(json_encode(array('msg' => '授权成功,快捷菜单已存在'))); + } elseif (file_put_contents($path, '行分隔符,###' . chr(13) . chr(10) . $info . chr(13) . chr(10) . '行分隔符,###' . chr(13) . chr(10) . file_get_contents($path))) { + die(json_encode(array('msg' => '授权成功,快捷菜单添加成功'))); + } + } else { + die(json_encode(array('msg' => '授权失败,请联系QQ1570457334'))); + } + } elseif (isset($_POST['def'])) { + if (file_exists(moJiaPath('path') . 'application/extra/mojiaopt.php')) { + if (@unlink(moJiaPath('path') . 'application/extra/mojiaopt.php')) { + $html = file_get_contents('../../html/basics/seokey.html'); + $seokey = @require ('config.php'); + foreach ($seokey['seo'] as $value => $key) { + foreach ($seokey['seo'][$value] as $item => $sub) { + $html = str_replace('{' . $item . $seokey['seo'][$value]['aid'] . '}', $sub, $html); + } + } + if (!file_put_contents('../../html/tinier/seokey.html', $html)) { + die(json_encode(array('msg' => 'SEO设置恢复失败,请检查文件权限'))); + } + die(json_encode(array('msg' => '恢复成功'))); + } else { + die(json_encode(array('msg' => '恢复失败'))); + } + } else { + die(json_encode(array('msg' => '当前已经是默认设置了'))); + } + } elseif (isset($_POST['chat'])) { + $option = @require (moJiaPath('path') . 'application/extra/maccms.php'); + $option['weixin']['gjc1'] = @$_POST['send']; + $option['weixin']['gjcm1'] = @$_POST['code']; + $option['site']['site_status'] = @$_POST['close']; + if (file_put_contents(moJiaPath('path') . 'application/extra/maccms.php', '')) { + die(json_encode(array('msg' => '修改成功'))); + } else { + die(json_encode(array('msg' => '执行失败'))); + } + } elseif (isset($_POST['tpl'])) { + $option = @require (moJiaPath('path') . 'application/extra/maccms.php'); + $option['site']['template_dir'] = @$_POST['tpl']; + if (file_put_contents(moJiaPath('path') . 'application/extra/maccms.php', '')) { + @unlink('../../../' . $_POST['tpl'] . '.zip'); + $option = @require (moJiaPath('path') . 'application/extra/maccms.php'); + die(json_encode(array('msg' => $option['site']['template_dir']))); + } else { + die(json_encode(array('msg' => '执行失败'))); + } + } elseif (isset($_POST['seo'])) { + $option = @require (moJiaPath('path') . 'application/extra/mojiaopt.php'); + unset($option['seo']); + $seokey = @require ('config.php'); + $option['seo'] = $seokey['seo']; + if (file_put_contents(moJiaPath('path') . 'application/extra/mojiaopt.php', '')) { + $html = file_get_contents('../../html/basics/seokey.html'); + foreach ($seokey['seo'] as $value => $key) { + foreach ($seokey['seo'][$value] as $item => $sub) { + $html = str_replace('{' . $item . $seokey['seo'][$value]['aid'] . '}', $sub, $html); + } + } + if (!file_put_contents('../../html/tinier/seokey.html', $html)) { + die(json_encode(array('msg' => 'SEO设置恢复失败,请检查文件权限'))); + } + die(json_encode(array('msg' => 'SEO设置恢复成功'))); + } else { + die(json_encode(array('msg' => 'SEO设置恢复失败'))); + } + } elseif (isset($_POST['mojia'])) { + if (file_put_contents(moJiaPath('path') . 'application/extra/mojiaopt.php', '')) { + $html = file_get_contents('../../html/basics/seokey.html'); + $seokey = $_POST['mojia']['seo']; + foreach ($seokey as $value => $key) { + foreach ($seokey[$value] as $item => $sub) { + $html = str_replace('{' . $item . $seokey[$value]['aid'] . '}', $sub, $html); + } + } + if (!file_put_contents('../../html/tinier/seokey.html', $html)) { + die(json_encode(array('msg' => 'SEO设置保存失败,请检查文件权限'))); + } + $option = @require (moJiaPath('path') . 'application/extra/maccms.php'); + $option['weixin']['gjc1'] = $_POST['mojia']['play']['chat']['send']; + $option['weixin']['gjcm1'] = $_POST['mojia']['play']['chat']['code']; + $option['site']['site_status'] = $_POST['mojia']['other']['close']['state']; + if (!file_put_contents(moJiaPath('path') . 'application/extra/maccms.php', '')) { + die(json_encode(array('msg' => '系统设置保存失败'))); + } + if ($_POST['mojia']['home']['taoke']['state'] == 1) { + $taoke = moJiaDaTaoKe('https://openapi.dataoke.com/api/goods/get-goods-list', array('pageSize' => '50', 'cids' => $_POST['mojia']['home']['taoke']['type'], 'juHuaSuan' => $_POST['mojia']['home']['taoke']['qiang'] == 1 ? 1 : '', 'taoQiangGou' => $_POST['mojia']['home']['taoke']['qiang'] == 2 ? 1 : '', 'tmall' => $_POST['mojia']['home']['taoke']['qiang'] == 3 ? 1 : '', 'tchaoshi' => $_POST['mojia']['home']['taoke']['qiang'] == 4 ? 1 : '', 'goldSeller' => $_POST['mojia']['home']['taoke']['qiang'] == 5 ? 1 : '', 'haitao' => $_POST['mojia']['home']['taoke']['qiang'] == 6 ? 1 : '', 'specialId' => $_POST['mojia']['home']['taoke']['brand'], 'sort' => $_POST['mojia']['home']['taoke']['sort'], 'version' => $_POST['mojia']['home']['taoke']['ver'], 'appKey' => $_POST['mojia']['other']['taoke']['key']), $_POST['mojia']['other']['taoke']['secret']); + if (!file_put_contents(moJiaPath('path') . 'application/extra/mojiatao.php', '')) { + die(json_encode(array('msg' => '首页淘客数据更新失败'))); + } + } + if ($_POST['mojia']['other']['init']['state'] == 1 && $_POST['mojia']['other']['init']['file'] != 'global') { + if (!file_put_contents('../../asset/js/' . $_POST['mojia']['other']['init']['file'] . '.js', file_get_contents('../../asset/js/global.js'))) { + die(json_encode(array('msg' => '脚本入口文件更新失败'))); + } + } + die(json_encode(array('msg' => '保存成功'))); + } else { + die(json_encode(array('msg' => '保存失败'))); + } + } elseif (isset($_POST['news'])) { + $path = '../../../'; + $name = 'mojia-' . $_POST['news'] . '.zip'; + $href = moJiaPath('down') . $name . '?v=' . time(); + if (!moJiaIsExists($href)) { + die(json_encode(array('code' => '0', 'msg' => '未找到到最新版主题文件'))); + } + if (!moJiaDownload($href, $path, $name)) { + die(json_encode(array('code' => '0', 'msg' => '主题下载失败'))); + } + if (moJiaUnzip($path, $name, @$_POST['pass'])) { + die(json_encode(array('code' => '1', 'msg' => '主题升级成功'))); + } else { + die(json_encode(array('code' => '0', 'msg' => '主题解压失败'))); + } + } else { + die(json_encode(array('msg' => '执行失败'))); + } } // 采集设置 -function moJiaCollect() -{ - if (isset($_POST['info'])) { - require(moJiaPath('path') . 'application/common.php'); - $where = isset($_POST['id']) ? ' where collect_id = ' . $_POST['id'] : ''; - $array = moJiaMysql(1, moJiaPath('base'), "select * from {pre}collect" . $where); - foreach ($array as $value => $key) { - $array[$value]['collect_flag'] = md5($array[$value]['collect_url']); - $array[$value]['collect_mold'] = $array[$value]['collect_param'] == '&ct=1' ? 'down' : ($array[$value]['collect_mid'] == 1 ? 'play' : mac_get_mid_code($array[$value]['collect_mid'])); - $array[$value]['collect_text'] = $array[$value]['collect_param'] == '&ct=1' ? '下载' : mac_get_mid_text($array[$value]['collect_mid']); - $array[$value]['collect_code'] = mac_get_mid_code($array[$value]['collect_mid']); - $array[$value]['collect_param'] = base64_encode($array[$value]['collect_param']); - } - die(json_encode($array ? $array : array())); - } elseif (isset($_POST['code'])) { - $data = moJiaCurlGet($_POST['url']); - if (@$_POST['type'] == 1) { - $result = moJiaSimple($data); - $recordcount = @$result['list']['@attributes']['recordcount']; - if ($recordcount == 0) { - die(json_encode(array())); - } elseif (!@$result['list']['video'][0]['dt']) { - die(json_encode(array())); - } elseif ($recordcount == 1) { - die('[' . json_encode(@explode(',', @$result['list']['video'][0]['dt'])) . ']'); - } else { - die(json_encode(@explode(',', @$result['list']['video'][0]['dt']))); - } - } else { - $result = json_decode($data, true); - die(json_encode(@explode(',', @$result['list'][0]['vod_play_from']))); - } - } elseif (isset($_POST['seek'])) { - $data = moJiaCurlGet($_POST['url'] . '?wd=' . urlencode($_POST['name'])); - if (@$_POST['type'] == 1) { - $result = moJiaSimple($data); - $recordcount = @$result['list']['@attributes']['recordcount']; - if ($recordcount == 0) { - die(json_encode(array())); - } elseif (!@$result['list']['video']) { - die(json_encode(array())); - } elseif ($recordcount == 1) { - $array = array($result['list']['video']); - } else { - $array = $result['list']['video']; - } - foreach ($array as $value => $key) { - $array[$value]['vod_name'] = $array[$value]['name']; - $array[$value]['type_name'] = $array[$value]['type']; - $array[$value]['vod_time'] = $array[$value]['last']; - $array[$value]['vod_remarks'] = $array[$value]['note']; - $array[$value]['vod_play_from'] = $array[$value]['dt']; - } - die(json_encode($array)); - } else { - $result = json_decode($data, true); - die(json_encode(@$result['list'])); - } - } elseif (isset($_POST['favs'])) { - if ($_POST['favs'] == 'add') { - if (file_exists(moJiaPath('path') . 'application/extra/mojiafav.php')) { - $html = @require(moJiaPath('path') . 'application/extra/mojiafav.php'); - if (is_array($html)) { - $html[$_POST['collect_id']] = $_POST; - } else { - $html = array($_POST['collect_id'] => $_POST); - } - if (file_put_contents(moJiaPath('path') . 'application/extra/mojiafav.php', '')) { - die(json_encode(array('msg' => '收藏成功'))); - } else { - die(json_encode(array('msg' => '收藏失败'))); - } - } else { - if (file_put_contents(moJiaPath('path') . 'application/extra/mojiafav.php', ' $_POST), true) . ';?>')) { - die(json_encode(array('msg' => '收藏成功'))); - } else { - die(json_encode(array('msg' => '收藏失败'))); - } - } - } elseif ($_POST['favs'] == 'del') { - $html = @require(moJiaPath('path') . 'application/extra/mojiafav.php'); - unset($html[$_POST['id']]); - if (file_put_contents(moJiaPath('path') . 'application/extra/mojiafav.php', '')) { - die(json_encode(array('msg' => '取消收藏成功'))); - } else { - die(json_encode(array('msg' => '取消收藏失败'))); - } - } elseif ($_POST['favs'] == 'list') { - if (file_exists(moJiaPath('path') . 'application/extra/mojiafav.php')) { - die(json_encode(@require(moJiaPath('path') . 'application/extra/mojiafav.php'))); - } else { - die(json_encode(array())); - } - } - } +function moJiaCollect() { + if (isset($_POST['info'])) { + require (moJiaPath('path') . 'application/common.php'); + $where = isset($_POST['id']) ? ' where collect_id = ' . $_POST['id'] : ''; + $array = moJiaMysql(1, moJiaPath('base'), "select * from {pre}collect" . $where); + foreach ($array as $value => $key) { + $array[$value]['collect_flag'] = md5($array[$value]['collect_url']); + $array[$value]['collect_mold'] = $array[$value]['collect_param'] == '&ct=1' ? 'down' : ($array[$value]['collect_mid'] == 1 ? 'play' : mac_get_mid_code($array[$value]['collect_mid'])); + $array[$value]['collect_text'] = $array[$value]['collect_param'] == '&ct=1' ? '下载' : mac_get_mid_text($array[$value]['collect_mid']); + $array[$value]['collect_code'] = mac_get_mid_code($array[$value]['collect_mid']); + $array[$value]['collect_param'] = base64_encode($array[$value]['collect_param']); + } + die(json_encode($array ? $array : array())); + } elseif (isset($_POST['code'])) { + $data = moJiaCurlGet($_POST['url']); + if (@$_POST['type'] == 1) { + $result = moJiaSimple($data); + $recordcount = @$result['list']['@attributes']['recordcount']; + if ($recordcount == 0) { + die(json_encode(array())); + } elseif (!@$result['list']['video'][0]['dt']) { + die(json_encode(array())); + } elseif ($recordcount == 1) { + die('[' . json_encode(@explode(',', @$result['list']['video'][0]['dt'])) . ']'); + } else { + die(json_encode(@explode(',', @$result['list']['video'][0]['dt']))); + } + } else { + $result = json_decode($data, true); + die(json_encode(@explode(',', @$result['list'][0]['vod_play_from']))); + } + } elseif (isset($_POST['seek'])) { + $data = moJiaCurlGet($_POST['url'] . '?wd=' . urlencode($_POST['name'])); + if (@$_POST['type'] == 1) { + $result = moJiaSimple($data); + $recordcount = @$result['list']['@attributes']['recordcount']; + if ($recordcount == 0) { + die(json_encode(array())); + } elseif (!@$result['list']['video']) { + die(json_encode(array())); + } elseif ($recordcount == 1) { + $array = array($result['list']['video']); + } else { + $array = $result['list']['video']; + } + foreach ($array as $value => $key) { + $array[$value]['vod_name'] = $array[$value]['name']; + $array[$value]['type_name'] = $array[$value]['type']; + $array[$value]['vod_time'] = $array[$value]['last']; + $array[$value]['vod_remarks'] = $array[$value]['note']; + $array[$value]['vod_play_from'] = $array[$value]['dt']; + } + die(json_encode($array)); + } else { + $result = json_decode($data, true); + die(json_encode(@$result['list'])); + } + } elseif (isset($_POST['favs'])) { + if ($_POST['favs'] == 'add') { + if (file_exists(moJiaPath('path') . 'application/extra/mojiafav.php')) { + $html = @require (moJiaPath('path') . 'application/extra/mojiafav.php'); + if (is_array($html)) { + $html[$_POST['collect_id']] = $_POST; + } else { + $html = array($_POST['collect_id'] => $_POST); + } + if (file_put_contents(moJiaPath('path') . 'application/extra/mojiafav.php', '')) { + die(json_encode(array('msg' => '收藏成功'))); + } else { + die(json_encode(array('msg' => '收藏失败'))); + } + } else { + if (file_put_contents(moJiaPath('path') . 'application/extra/mojiafav.php', ' $_POST), true) . ';?>')) { + die(json_encode(array('msg' => '收藏成功'))); + } else { + die(json_encode(array('msg' => '收藏失败'))); + } + } + } elseif ($_POST['favs'] == 'del') { + $html = @require (moJiaPath('path') . 'application/extra/mojiafav.php'); + unset($html[$_POST['id']]); + if (file_put_contents(moJiaPath('path') . 'application/extra/mojiafav.php', '')) { + die(json_encode(array('msg' => '取消收藏成功'))); + } else { + die(json_encode(array('msg' => '取消收藏失败'))); + } + } elseif ($_POST['favs'] == 'list') { + if (file_exists(moJiaPath('path') . 'application/extra/mojiafav.php')) { + die(json_encode(@require (moJiaPath('path') . 'application/extra/mojiafav.php'))); + } else { + die(json_encode(array())); + } + } + } } // 短链生成 -function moJiaCommon() -{ - if (isset($_POST['tao'])) { - $mojia = moJiaPath('mojia'); - $taoke = moJiaDaTaoKe('https://openapi.dataoke.com/api/goods/get-goods-list', array('pageSize' => '50', 'cids' => $mojia['home']['taoke']['type'], 'juHuaSuan' => $mojia['home']['taoke']['qiang'] == 1 ? 1 : '', 'taoQiangGou' => $mojia['home']['taoke']['qiang'] == 2 ? 1 : '', 'tmall' => $mojia['home']['taoke']['qiang'] == 3 ? 1 : '', 'tchaoshi' => $mojia['home']['taoke']['qiang'] == 4 ? 1 : '', 'goldSeller' => $mojia['home']['taoke']['qiang'] == 5 ? 1 : '', 'haitao' => $mojia['home']['taoke']['qiang'] == 6 ? 1 : '', 'specialId' => $mojia['home']['taoke']['brand'], 'sort' => $mojia['home']['taoke']['sort'], 'version' => $mojia['home']['taoke']['ver'], 'appKey' => $mojia['other']['taoke']['key']), $mojia['other']['taoke']['secret']); - if (file_put_contents(moJiaPath('path') . 'application/extra/mojiatao.php', '')) { - die(json_encode(array('msg' => '更新成功'))); - } else { - die(json_encode(array('msg' => '更新失败'))); - } - } elseif (isset($_POST['time'])) { - if (file_put_contents(moJiaPath('path') . 'runtime/temp/' . md5('mojia') . '.php', '')) { - die(json_encode(array('msg' => '更新成功'))); - } else { - die(json_encode(array('msg' => '更新失败'))); - } - } elseif (isset($_POST['addr'])) { - die(json_encode(array('msg' => md5($_SERVER['SERVER_ADDR'])))); - } elseif (isset($_POST['key'])) { - $output = moJiaCurlGet(@$_POST['key']); - parse_str(parse_url(@$_POST['key'], PHP_URL_QUERY)); - die($output ? $output : json_encode(dns_get_record($name, DNS_TXT))); - } elseif (isset($_POST['url'])) { - $mojia = moJiaPath('mojia'); - $url = $mojia['other']['share']['host'] ? $mojia['other']['share']['host'] . parse_url(@$_POST['url'], PHP_URL_PATH) : @$_POST['url']; - die(json_encode(array('msg' => moJiaCurlGet($mojia['other']['share']['apis'] . rawurlencode($url))))); - } elseif (isset($_GET['pic'])) { - header('Content-Type: image/jpeg; charset=utf-8'); - $time = isset($_GET['time']) ? $_GET['time'] : 5; - $curl = curl_init($_GET['pic']); - curl_setopt($curl, CURLOPT_HEADER, 0); - curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); - curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); - curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $time); - curl_setopt($curl, CURLOPT_TIMEOUT, $time); - $output = curl_exec($curl); - curl_close($curl); - echo $output; - exit ; - } +function moJiaCommon() { + if (isset($_POST['tao'])) { + $mojia = moJiaPath('mojia'); + $taoke = moJiaDaTaoKe('https://openapi.dataoke.com/api/goods/get-goods-list', array('pageSize' => '50', 'cids' => $mojia['home']['taoke']['type'], 'juHuaSuan' => $mojia['home']['taoke']['qiang'] == 1 ? 1 : '', 'taoQiangGou' => $mojia['home']['taoke']['qiang'] == 2 ? 1 : '', 'tmall' => $mojia['home']['taoke']['qiang'] == 3 ? 1 : '', 'tchaoshi' => $mojia['home']['taoke']['qiang'] == 4 ? 1 : '', 'goldSeller' => $mojia['home']['taoke']['qiang'] == 5 ? 1 : '', 'haitao' => $mojia['home']['taoke']['qiang'] == 6 ? 1 : '', 'specialId' => $mojia['home']['taoke']['brand'], 'sort' => $mojia['home']['taoke']['sort'], 'version' => $mojia['home']['taoke']['ver'], 'appKey' => $mojia['other']['taoke']['key']), $mojia['other']['taoke']['secret']); + if (file_put_contents(moJiaPath('path') . 'application/extra/mojiatao.php', '')) { + die(json_encode(array('msg' => '更新成功'))); + } else { + die(json_encode(array('msg' => '更新失败'))); + } + } elseif (isset($_POST['time'])) { + if (file_put_contents(moJiaPath('path') . 'runtime/temp/' . md5('mojia') . '.php', '')) { + die(json_encode(array('msg' => '更新成功'))); + } else { + die(json_encode(array('msg' => '更新失败'))); + } + } elseif (isset($_POST['addr'])) { + die(json_encode(array('msg' => md5($_SERVER['SERVER_ADDR'])))); + } elseif (isset($_POST['key'])) { + $output = moJiaCurlGet(@$_POST['key']); + parse_str(parse_url(@$_POST['key'], PHP_URL_QUERY)); + die($output ? $output : json_encode(dns_get_record($name, DNS_TXT))); + } elseif (isset($_POST['url'])) { + $mojia = moJiaPath('mojia'); + $url = $mojia['other']['share']['host'] ? $mojia['other']['share']['host'] . parse_url(@$_POST['url'], PHP_URL_PATH) : @$_POST['url']; + die(json_encode(array('msg' => moJiaCurlGet($mojia['other']['share']['apis'] . rawurlencode($url))))); + } elseif (isset($_GET['pic'])) { + header('Content-Type: image/jpeg; charset=utf-8'); + $time = isset($_GET['time']) ? $_GET['time'] : 5; + $curl = curl_init($_GET['pic']); + curl_setopt($curl, CURLOPT_HEADER, 0); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); + curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); + curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $time); + curl_setopt($curl, CURLOPT_TIMEOUT, $time); + $output = curl_exec($curl); + curl_close($curl); + echo $output; + exit ; + } } diff --git a/asset/exc/obtain.php b/asset/exc/obtain.php index 18b7307..574cb5f 100644 --- a/asset/exc/obtain.php +++ b/asset/exc/obtain.php @@ -1,4 +1,10 @@ $value) { - $data = str_replace($match[0][$key], '', $data); + if (preg_match('/\[(.*)\/(.*)\]/', $match[0][$key])) { + $data = str_replace($match[0][$key], '', $data); + } } return $data; } @@ -103,6 +111,41 @@ function moJiaSimple($data) { } } +// HTML标签校对 +function moJiaHtmlTags($html, $tags = array()) { + $result = null; + $stack = array(); + $single = array('br', 'hr', 'img', 'input'); + if ($tags && is_array($tags)) { + $single = array_merge($single, $tags); + $single = array_map('strtolower', $single); + $single = array_unique($single); + } + $content = preg_split('/(<[^>]+>)/si', $html, null, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); + foreach ($content as $val) { + if (preg_match('/<(\w+)[^\/]*>/si', $val, $m) && in_array(strtolower($m[1]), $single)) { + $result .= "\r\n" . $val; + } else if (preg_match('/<(\w+)[^\/]*\/>/si', $val, $m)) { + $result .= $val; + } else if (preg_match('/<(\w+)[^\/]*>/si', $val, $m)) { + $result .= "\r\n" . str_repeat("\t", count($stack)) . $val; + array_push($stack, $m[1]); + } else if (preg_match('/<\/(\w+)[^\/]*>/si', $val, $m)) { + if (strtolower(end($stack)) == strtolower($m[1])) { + array_pop($stack); + $result .= $val; + } + } else { + $result .= $val; + } + } + while ($stack) { + $result .= ""; + $result .= "\r\n"; + } + return $result; +} + // 获取网址内容 function moJiaCurlGet($url) { $curl = curl_init(); diff --git a/asset/js/admin.js b/asset/js/admin.js index 955ecfc..6a87ddd 100644 --- a/asset/js/admin.js +++ b/asset/js/admin.js @@ -1,13 +1,15 @@ -layui.define(['mojia', 'common', 'iconfonts', 'multiple', 'sortable'], function(exports) { +layui.define(['income', 'iconfonts', 'multiple', 'sortable'], function(exports) { var $ = layui.jquery; var mojia = { 'global': { 'init': function() { - layui.util.fixbar(); - mojia.global.seokey(); - mojia.global.update(0); - layui.multiple.init('select[multiple]'); + layui.income.global.init(); layui.iconfonts.init('.layui-font-info'); + layui.multiple.init('select[multiple]'); + mojia.global.update(); + mojia.global.seokey(); + mojia.global.browse(); + layui.util.fixbar(); layui.laydate.render({ elem: '.mo-date-time', type: 'datetime' @@ -21,6 +23,9 @@ layui.define(['mojia', 'common', 'iconfonts', 'multiple', 'sortable'], function( $(this).parents('td').next().next().next().find('input').val(data.elem[data.elem.selectedIndex].dataset.link); }); layui.form.on('select(iconer)', function(data) { + $(this).parents('td').prev().find('input').next().find('span').find('i').attr('class', 'mo-icon-font ' + data.elem[data.elem.selectedIndex].dataset.icon); + $(this).parents('td').prev().find('input').val(data.elem[data.elem.selectedIndex].dataset.icon); + $(this).parents('td').next().find('input').val(data.elem[data.elem.selectedIndex].dataset.url); if (data.value == 'artist') { $(this).parents('td').next().find('.layui-form-select').addClass('mo-cols-show').removeClass('mo-cols-hide'); $(this).parents('td').next().find('.layui-font-select').addClass('mo-cols-hide').removeClass('mo-cols-show'); @@ -31,8 +36,6 @@ layui.define(['mojia', 'common', 'iconfonts', 'multiple', 'sortable'], function( }); layui.form.on('submit(submit)', function(data) { $.post($('.layui-form-pane').attr('action'), data.field, function(data) { - $.post(magic.tpl + 'asset/exc/create.php?id=opt', 'chat=chat&send=' + $('input[name="mojia[play][chat][send]"]').val() + '&code=' + $('input[name="mojia[play][chat][code]"]').val() + '&close=' + $('input[name="mojia[other][close][state]"]:checked').val()); - $.post(magic.tpl + 'asset/exc/create.php?id=url', 'tao=tao'); layer.msg(data.msg, { time: 1000 }, function() { @@ -117,12 +120,6 @@ layui.define(['mojia', 'common', 'iconfonts', 'multiple', 'sortable'], function( } } }); - layui.element.on('tab(table)', function() { - layui.common.cookie.set('mo_table', this.getAttribute('lay-id'), 1); - }); - if (layui.common.cookie.get('mo_table') != null) { - layui.element.tabChange('table', layui.common.cookie.get('mo_table')); - } $('.mo-look-btns').each(function(nums, info) { layui.colorpicker.render({ elem: '.mo-look-btns' + nums, @@ -162,9 +159,9 @@ layui.define(['mojia', 'common', 'iconfonts', 'multiple', 'sortable'], function( var array = []; for (var i = 0; i < string.length; i++) { var item = string[i]; - if (item === "(") { - array.push("("); - } else if (item === ")") { + if (item === '(') { + array.push('('); + } else if (item === ')') { if (array.length === 0) { return false; } else { @@ -176,6 +173,60 @@ layui.define(['mojia', 'common', 'iconfonts', 'multiple', 'sortable'], function( }; return array.length === 0; }, + 'browse': function() { + $(document).on('click', '.mo-java-brow', function(data) { + var that = $(this); + if (that.css('background-color') != 'rgb(176, 224, 230)') { + that.css('background-color', 'lemonchiffon'); + } + var array = $(this).val().substring(1, $(this).val().indexOf('/i')).split('|'); + layer.open({ + type: 1, + btn: '确认修改', + area: ['640px', '500px'], + content: '', + success: function(layero, index) { + $('.layui-layer-content').addClass('mo-cols-rows mo-paxs-20px'); + $('.mo-brow-nows').after('
正则表达式添加内容
'); + var html = ''; + for (var i = 0; i < array.length; i++) { + html += '
  • ' + array[i] + '
  • '; + } + $('.mo-brow-nows').html(html); + var item = ''; + var income = layui.income.browse; + $.each(income, function(nums, info) { + item += '
  • ' + info + '
  • '; + }); + $('.mo-brow-news').html(item); + }, + yes: function(index, layero) { + var array = []; + that.css('background-color', 'powderblue'); + $('.mo-brow-nows').find('li').each(function() { + array.push($(this).find('span').text()); + }); + that.val('/' + array.join('|') + '/i'); + layer.close(index); + }, + cancel: function(index, layero) { + if (that.css('background-color') == 'rgb(255, 250, 205)') { + that.css('background-color', ''); + } + } + }); + }); + $(document).on('click', '.mo-brow-cust', function(data) { + if (!$(this).parent().prev().find('input').val()) return false; + $('.mo-brow-nows').append('
  • ' + $(this).parent().prev().find('input').val() + '
  • '); + }); + $(document).on('click', '.mo-brow-dels', function(data) { + $(this).parent().parent().remove(); + }); + $(document).on('click', '.mo-brow-adds', function(data) { + $('.mo-brow-nows').append('
  • ' + $(this).prev().attr('data-code') + '
  • '); + }); + }, 'seokey': function() { $(document).on('click', '.mo-java-seos', function(data) { var that = $(this); @@ -192,25 +243,23 @@ layui.define(['mojia', 'common', 'iconfonts', 'multiple', 'sortable'], function( content: '', success: function(layero, index) { $('.layui-layer-content').addClass('mo-cols-rows mo-paxs-20px'); - $('.mo-seos-nows').after('
    自定义内容添加内容
    '); - layui.use('income', function() { - var html = ''; - for (var i = 0; i < array.length; i++) { - html += '
  • ' + array[i] + '
  • '; + $('.mo-seos-nows').after('
    自定义内容添加内容
    '); + var html = ''; + for (var i = 0; i < array.length; i++) { + html += '
  • ' + array[i] + '
  • '; + } + $('.mo-seos-nows').html(html); + $('.mo-java-seoe').arrangeable(); + var item = ''; + var income = layui.income.seokey; + $.each(income, function(nums, info) { + if (nums == 'common' || mojia.global.search(aids, nums.split(','))) { + for (var i = 0; i < info.length; i++) { + item += '
  • ' + income[nums][i].name + '
  • '; + }; } - $('.mo-seos-nows').html(html); - $('.mo-java-seoe').arrangeable(); - var item = ''; - var income = layui.income.seokey; - $.each(income, function(nums, info) { - if (nums == 'common' || mojia.global.search(aids, nums.split(','))) { - for (var i = 0; i < info.length; i++) { - item += '
  • ' + income[nums][i].name + '
  • '; - }; - } - }); - $('.mo-seos-news').html(item); }); + $('.mo-seos-news').html(item); }, yes: function(index, layero) { var array = []; @@ -275,7 +324,7 @@ layui.define(['mojia', 'common', 'iconfonts', 'multiple', 'sortable'], function( }); }); }, - 'update': function(count) { + 'update': function() { $('.layui-body', parent.document).css('overflow-y', 'hidden'); $.post(magic.tpl + 'asset/exc/create.php?id=opt', 'ver=new', function(data) { if (mojia.global.contra(0, $('.mo-opts-vers').text(), data.ver) > 0) { @@ -298,7 +347,7 @@ layui.define(['mojia', 'common', 'iconfonts', 'multiple', 'sortable'], function( $.post(magic.tpl + 'asset/exc/create.php?id=opt', 'tpl=mojia-' + news, function(data) { if (data.msg == 'mojia-' + news) { layer.alert('升级成功', function(index) { - $.post($('.j-ajax', parent.document).attr('href'), function(data) { + $.post(magic.path + magic.admin + '/admin/index/clear', function(data) { layer.msg((data.msg ? data.msg : '请手动清除缓存'), { time: 1000 }, function() { diff --git a/asset/js/common.js b/asset/js/common.js index 52c4abf..402c060 100644 --- a/asset/js/common.js +++ b/asset/js/common.js @@ -11,6 +11,7 @@ layui.define(['jquery'], function(exports) { mojia.global.output(); mojia.global.paging(); mojia.global.passer(); + mojia.global.verify(); mojia.global.jumper(3); mojia.picing.init('.mo-situ-lazy'); var screen = [['.mo-movs-btns', '.mo-movs-item'], ['.mo-down-btns', '.mo-down-item'], ['.mo-tabs-btns', '.mo-tabs-item'], ['.mo-face-btns', '.mo-face-item'], ['.mo-pops-hots', '.mo-pops-boxs']]; @@ -126,10 +127,10 @@ layui.define(['jquery'], function(exports) { }); }, 'mobile': function() { - return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)); + return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|EdgA|Opera\sMini/i.test(navigator.userAgent)); }, 'trident': function() { - return (/MSIE\s[0-9]|Trident\/[\d.]/i.test(navigator.userAgent)); + return (/MSIE\s[0-9]|Trident\/[0-9]/i.test(navigator.userAgent)); }, 'filter': function(keyword) { return keyword.replace(//g, '').trim(); @@ -168,10 +169,9 @@ layui.define(['jquery'], function(exports) { }); }, 'jumper': function(count) { - if (count == 0) { - if ($('.mo-jump-info').attr('data-msg')) { - location.href = $('.mo-jump-href').attr('href'); - } else return false; + if (count == 0 && $('.mo-jump-info').attr('data-msg')) { + location.href = $('.mo-jump-href').attr('href'); + return false; } else $('.mo-jump-nums').empty().append(count--); setTimeout(function() { mojia.global.jumper(count); @@ -442,6 +442,7 @@ layui.define(['jquery'], function(exports) { var load = layer.load(2); $('.mo-java-left').addClass('mo-part-left'); $.post(magic.path + 'index.php/label/share.html', function(data) { + var chain = that.attr('data-agent') == 1 ? (that.attr('data-chain').indexOf('asset/exc/create') != -1 && $('meta[itemprop="image"]').attr('content').indexOf('//') != -1 ? that.attr('data-tpl') : '') + ($('meta[itemprop="image"]').attr('content').indexOf('//') != -1 ? that.attr('data-chain') : '') : ''; layer.close(load); $('.mo-java-left').addClass('mo-part-left'); layer.open({ @@ -452,7 +453,7 @@ layui.define(['jquery'], function(exports) { closeBtn: 0, shadeClose: true, skin: 'mo-bord-round mo-have-open', - content: data.replace('{image}', $('meta[itemprop="image"]').attr('content')).replace('{title}', $(document).attr('title')).replace('{keywords}', $('meta[name="keywords"]').attr('content').substring(0, 28)), + content: data.replace('{favicon}', chain + $('link[type="image/ico"]').attr('href')).replace('{image}', chain + $('meta[itemprop="image"]').attr('content')).replace('{title}', $(document).attr('title')).replace('{keywords}', $('meta[name="keywords"]').attr('content').substring(0, 28)), success: function(layero, index) { if (that.attr('data-api')) { $.post(magic.tpl + 'asset/exc/create.php?id=url', 'url=' + encodeURIComponent(location.href), function(data) { @@ -509,13 +510,14 @@ layui.define(['jquery'], function(exports) { }); }, 'colors': function(str) { - var color = $('#mo-java-dark').html(); + var color1 = $('#mo-java-rule').html(); + var color2 = $('#mo-java-dark').html(); $(document).on('click', str, function() { if (mojia.cookie.get('mo_dark')) { - $('#mo-java-dark').attr('type', 'text/dark').html(''); + $('#mo-java-dark').attr('type', 'text/css').html(color1); mojia.cookie.del('mo_dark'); } else { - $('#mo-java-dark').attr('type', 'text/css').html(color); + $('#mo-java-dark').attr('type', 'text/css').html(color2); mojia.cookie.set('mo_dark', '1', 7); } }); @@ -534,6 +536,7 @@ layui.define(['jquery'], function(exports) { }, 'player': { 'init': function() { + this.copyer(); this.store(2); this.parse(); this.click(); @@ -566,6 +569,39 @@ layui.define(['jquery'], function(exports) { } }); }, + 'copyer': function(that) { + if ($('.mo-java-data').attr('data-aid') == 16) { + layui.use(['layer', 'clipboard'], function() { + var copy = new ClipboardJS('.mo-copy-btns', { + text: function() { + var that = $('.mo-copy-btns'); + var html = ''; + var sort = that.parents('.mo-sort-head').find('.mo-text-mojia').index(); + for (var i = 0; i < that.parents('.mo-sort-head').nextAll('.mo-sort-boxs').eq(sort).find('li').length; i++) { + html += "\n" + that.parents('.mo-sort-head').nextAll('.mo-sort-boxs').eq(sort).find('li').eq(i).find('input').val(); + } + return html; + } + }); + copy.on('success', function(data) { + layer.msg($('.mo-copy-btns').parents('.mo-sort-head').find('.mo-text-mojia').text() + '链接全部复制成功,快去粘贴下载吧'); + data.clearSelection(); + }); + $(document).on('focus', '.mo-down-copy', function() { + var that = $(this); + var copy = new ClipboardJS('.mo-down-copy' + (that.parent().parent().index() + 1), { + text: function() { + return that.val(); + } + }); + copy.on('success', function(data) { + layer.msg(that.parent().next().find('a').text() + '复制成功,快去粘贴下载吧'); + data.clearSelection(); + }); + }); + }); + } + }, 'power': function(that) { $(that).click(function() { var that = $(this); @@ -706,7 +742,7 @@ layui.define(['jquery'], function(exports) { live: JSON.parse(live), video: { url: mojia.player.video(str), - type: (!/MSIE\s[0-9]|Trident\/[\d.]|MQQBrowser/i.test(navigator.userAgent)) && mojia.player.video(str).indexOf('.m3u8') > -1 ? 'customHls' : 'auto', + type: !mojia.global.mobile() && mojia.player.video(str).indexOf('.m3u8') > -1 ? 'customHls' : 'auto', pic: $(str).attr('data-pics'), customType: { 'customHls': function(video, player) { @@ -731,10 +767,15 @@ layui.define(['jquery'], function(exports) { } }); player.on('loadstart', function() { + if (mojia.global.mobile()) { + $('video').attr('controls', 'true'); + $('.dplayer-controller,.dplayer-mobile-play').hide(); + } $('video').attr('playsinline', 'true'); $('video').attr('x5-playsinline', 'true'); $('video').attr('webkit-playsinline', 'true'); - $('.mo-play-player').show().css('z-index', '99').prepend(''); + $('video').attr('autoplay', JSON.parse($(str).attr('data-auto'))); + $('.mo-play-player').show().css('z-index', '99'); $('.dplayer-info-panel-close').html('×').css('font-size', '20px').css('font-family', 'monospace'); $('.dplayer-info-panel').css('line-height', '20px'); $('.dplayer-icon.dplayer-full-in-icon').remove(); @@ -742,7 +783,6 @@ layui.define(['jquery'], function(exports) { mojia.player.logo('player', str); }); player.on('loadeddata', function() { - if (!player.video.paused) $('.mo-play-btns').hide(); if (mojia.cookie.get(sole) && JSON.parse(live) == false) { if (player.video.duration - mojia.cookie.get(sole) < 60 || mojia.cookie.get(sole) < $(str).attr('data-trys') * 60) player.seek(0); else player.seek(mojia.cookie.get(sole)); @@ -771,13 +811,6 @@ layui.define(['jquery'], function(exports) { player.on('ended', function() { if ($(str).attr('data-next')) top.location.href = $(str).attr('data-next'); }); - player.on('pause', function() { - $('.mo-play-btns').show(); - }); - $(document).on('click', '.mo-play-btns', function() { - $(this).hide(); - player.play(); - }); }); }, 'parse': function(str) { diff --git a/asset/js/global.js b/asset/js/global.js new file mode 100644 index 0000000..ef70497 --- /dev/null +++ b/asset/js/global.js @@ -0,0 +1 @@ +'use strict';var _typeof='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e};function _defineProperty(e,w,n){return w in e?Object.defineProperty(e,w,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[w]=n,e}var _0xode='jsjiami.com.v6',_0x48c7=[_0xode,'dmvlpr/prL/DgHXCjuacmeS6osOJ5Ymew6rnl6ZZGMKBbVPDiAnDvcKC6aiw6LSr56yqQumCnF/noYfCpuWsmcOq57C75ZmpaOaNq+aer8KZ5YqfIXnphbzDp8KFLui8mMOXFOenhO+/uOeZquaupXHljLtMSe+9nuafvOivq1LCleaKmhjnvZ/mnYjCvELDhA/Cq+WHt+afsOepiUjDk2PCnDXDiW3og5/lpJrnnaLCni9s5beK5Yyp6aCZ6K+EEjddHeWMrMK/XOittuS7jMKywo0m5Yiz6ImYZnRx5LmM6K6Jwq8hwoPovaHDmsOsNeaahMO3NsKM562S5ZCm','w73Dr8K/w6vnraXvvqBkwpkRQGjorJTmj7jorrjns47mnafoi4rDhMKXLOWLul435Lqr5bSFDuaeieadpgHno7jpqo7lj5bDgzdpNMKI6K605LuwwqTpobPlrq0r5aSj6YeVw4Naw5lyLVLmn47CkBfliqVvwpN+6a6u77+cMcOSdATCreems2FHCcORWxbDu+S4luetiiXli6vnvIjovrwrOMKI5ZOvw5TDqOmBtMKTLuadquaLrcODw6/nl7LlmYrCocKh5Y+gw64m6IGy55qJNMKE6Ly6feepieeehMOyHOWEjcKN5qyP5aaD5Y2n5pqSwrY0wr9i6LeQOOiumg==','5YiAw55KYOmEpH0iw4XvvLbDsVfljZ/mn5XDlcKkwqPkuIpwVuewgXXnnKrmjajnq5rotZfmnpzlhIHCgeS6lOi9s8OZ5omMdOeunMOgNwzCicOmUuW1hTzClknliIfnrZfDueitlOennOiIuwDlmoLDs0jCreWuheiCo8Ojwo3nl4hRw4nDuG7CmwDkuazorqojwqzlkLvpo5/Cj8KN5p616LyN6K+AM8Kw5Y2hHMKmOuegjOacn1HCk0YcI+Wmnl/pqYnlpbB5576hIOmBhy84wpkC772rw77mm6tPSOasleafp+ebtOWNqGnorKvlipAr6a63w5DCvsO0wpxDwqg=','5o+05p6k5omh57Gu6YS4M+adsOetv+iuguWSljfvvq7lmInoroIuw43DmOWGqcKx5aSU5p6K6L2056Kea8ObMWFf5q2gIXV96K+N56iw5Y6356WaYQ0nw5t1wr9Y5pmK5p6Bw7npg5dswpjDg3LCjemstwjDmOe/leiCilzCiMO5W2nporvvvrjkuJxMw4LljqdQ5bSx6Kyr5YihD+eYlMKJwoRF5Lih5pymHzsQw6Pnl65r5Yu+552Z6L+lB8OQw4zCtMKQB3bCnMO9LOWsnuWKtm3Dq+mrv8OfNMK7NOi1kzTkuaDCm+iLuBbnr4vlp7xDw5fljK1FLAo5','5omV6L+PIsKJ6a6hZMOSKMKn5LmKwrTphoAc5Y+2w63pgLPmnpDCrOWImei/n+W2uMOQeVrCgyLCjMKG57+355q9wp8Bw5JBPMO85YqudXTDq0blhonnorMSMcK3B+mhg+isueabp1XCnS7lj6zmnq3Doui0gsO25q6d77+86K+Za+Wvl+aPu8Ob5py4wrjCuyrCmumqqcOX6IGNwqk+566pwrzorr7Do2Dlm73nsqrkurg9bMON562G776955WDw5DliJTlk6XCiCXDjUHorYHCueelmcKu5YyXwrbmnq1f5Luk5aW0wrDnnavCqOaegSwE6IiTRMO1OOequ3F+5aSODcOG','w7fku4LlkK7nrqVc572m6L2RRDDDrsOCwqYqfeW1nSDprIV8OxvDguS5u8OS56md6LeEwqPDrS0W77+Z5YWH55q36K2X6YaKKOmrj+WNjsOj56Sv6YCnPsOJRiPmnoXCsOWmuuisoW/DoeaIpsK8GHrCuuWOszrnrYfDqWFrWOaar+afquiJplDpobnDqjLDkueUteWmu8KJ5py46IOl5a+F5Yi05o+R5YuCwplRwq7mrIbDnMKsE+acv8OEFOitjuWKsGLDknjorZBYwonCoOacpsKnfcK35LqOw7/nooJu776n5Zqcw5Tns4Nn556Ywq7Dj8KEwrNYw43DkcKL6L+35Y+2','5Yy6572v77yjw4XkupZMUxXovarCleaas8OjQ+eop1TmnqAf6K6FdeiAvsKt55ifw4rphoIy5omZAT3mnKblpYdh6aC4SsOOGMOY6IqKwqTns4Ic6aidIcOpwq7liarCsuWlmOavkO++guitrEjCheS7msOreOWIq8ODAsOaGMOTXRt1w5zDl+S4glbCv8Ka5Y6rLxx65Y67dOmvtOWHgT0H6L2ow6IpwofDm8OFfuenr+WIl2nmjo/DljXnoYIl56+hcOevrk7mnZboradR6YGQb8Oaw7TlmKTnlYvmn6zltKzlrbvDvxrnnKLorLnDu+WSmHLmnITot58eVA==','57GxJOi8lsOZ5aemw5UrbOS4p8K6w7bDvumCtsO76ImH5bSN6Kyyw6jmnqARceaeu1bChMOVYsK65Y+hdei/qHw8LQ7CssOXwqzDoumEluedkOackeaPpQTorLjlhIXCqOWLssK+w5vlipznmaMUw7XlrYbCm+aflcOX5piFw6vlmp8j6LST56S06aGM6a625Y6jwpDCmcOhw5fCkMO8bee8sMODVcObJOaJrCDDkMO9wrTDgOmqjCjmrIPliKTorqTogrYpQeeUrMKT5LqWP+WknRHDquetnuS7ueWOgX1Hwp7noYnDuMKR6K+u5ZG856iG77y+5p+mw5vCtcOKEsO2A8KD56y177+C','Xuadveezguisl8K3ehXnraHCtsODa+WntE3lmYJy55eL6IqeTe+8twHDnui9nOS7j8OnX0dEAQpoI+itoU7DpOacqsK/5524w4vli4cB6aidN8K75Yy35ZOG6a+KMsKF6YeDwqcXwpLCs+i3rTnltKforIrnrJDmioPmrK/Dhue9jeWKg+afmsKjw5EXAueknMKlKERM55qUwp1s6YKpwp09f+++o8KIccODw4zmjLlBRuWHkg9gw6Q85YqM5aWWwpnmnrzmmLx8w7LpoIjnobzljaDorq7DvMOvNOWMrOeohMKPwqHDrOiBoQnCl+S6j+i8huWuoXDDgeadu+S5sg==','5qya5ay/woLCguWMgDHmn5s4fsKxWei/tOaPs8K+5Lqu6L+h6YKdL+afjcKx6K+e5YeL6K+6wpbDnumEs+acseecvwNA6IKWAsORw7fnm5vCpueVr2BV56mM5Yq+6aCuS8O/5YmMwqzlkr9X5pyjw44owqAu6aq6w5/kuo7otYfmnrJo77+p5YuM5aSQKOeihsOZG3zDp8OFbCTDkivDr+euvMKM5pmU77yQQ8OYwoVO6ImW5LmC5Y63w4TDl8OHwrDnpYbpraJF56yA6KypBMOTwp7ltYRn572PWwvDueWOunPClMOIwoXCvsOT6Kynwpnnsrrlpbtp5oiNw5Ngwqflm5nCjkU=','w7rmrqTCtMOs5Yui5p635p+sw69O5LmMPuitjSE7X+iCr3jDg8O25p2dK1PorqLCouWan1/DtuexuEzlpoxW5Y+Ww78zfR/ChuWFqcOY6a6Uw5ror7Q+LsO777+777y+w4UsGeett8Kiw4Z35puw5Yqo5Y2PPOevnOiIqT3CkOWRh+mjquW0qOWKvemFg38Jw4TljKgG6Kyn6L+fNeaJnWnnlbFwR+e9mMKq55mmw5zku5JEw4bmnolf5p6Zw6bnqoDCg+WuuueigsOCwobCgQ4cM+i/tsOQw4LkuIUzwrrlp7pUS8K86YGlwrfpqITotYPnpIVw5o2NeMKbK+edpg==','BmAPwpHDnSjliKMN6YOCe8K0woZNw6bCpuivje+9r8Kjw48UauaekFR/5YeP6ayV5p64w6borJ7lrqHDvxLmjaJV56a/w7/phYN/JsOnZ++/oOmhhUXmnJfDjOafnsK3w7xW6LSL6IOsZeafpuWkq8OIE+mpi8KM5ZO9LGE+Q8Kf5ZmPwoPCjeWLt+evtUPDnUDDtOS5tMOOwrvnvK7DhizCrwLDoeWNmnzmmIvljo/DpeWlmuitkMKB55ms5bWA5q2xw44e56KB6L2A6ImQw5Dlio/Dieeeq+eUnei9jB7DvFHku4LDteWMuuiukcODdcOq562w5Lq75oiJ56meEinnsIg=','wqDDmiXor43ljbDDhcOMXz9Qb+adiueZhEgj6aCrw6VLNGTphILliZTlja/CsueVtsOU5a+R77+GU+ediMOId3/nrLPDl+i9hUXkuafCtcKsHsO+wqTljIZtEu+/uOeguOacogHCmemulsODa3Llp4jDtEjCozXnso3lhY7otLk3dQbCieiBmsKDX+WJmeWkq2HDuxfCr33npIJrS+WLpcKZ6YCLDMOP6IilCuS6huaaguafuOWbj+aPrsOHOjbDt+erj8OQ5ZCy6K6LRempn+W3heacscKNEeafgeiuvMOO5oqATee8puevmui/seishcKZ5LqVwoVZwr7mrKzDsw==','bGfCp+Wmg+eXjlXpqYbnnpLmjaTpoahG5pyYw7LlipvDisKC57Op6K6D5a2Sw5fmnaDvv6Bi5oiB6K+MwpzDmOWNveS4pzzCheemgsKBwo7mn4novq/lh7ZjwonDtXsN5Zqg56+Q6a6owpnDqMKNdMKNw7HlkrvDildRDee+vMON56+TZnBpw4vliL7kupTno4Hltq7ljqvog74KwqcaR+eYgMKn5LiK6K+Nw73mmaTmnqrpgpgI6Yey6L6qwrl55Y6ZdOaviuiLl+aeqgTDocOIXyJYd3BcwoYk5Yme56ifwq1tfSnCvO+9ouWkg2fotLdLw73CnhvDrBLor5Rvwos=','wrjlr4DpgLrDkO++sFHlpLwswopM5YuzP+WYlcO25Y6/HOesicOBclgj5Y6yQ+WPiMO75ouWbsOOZOeem+iKlkHnoYrmjoPmmaLnl7vmnaBBJXh2wpbov7/DvsK3w4jlhY/prZbCmMOMRcOy56ifTOivtXZqYeS5reitvOemt8OM6L2aTOitqwnCrui1ieeti8K3w5Xli6/mn6TkuotvVeezjuWKricd572+6aimwobDgeasgsKX5bWwWFnnmpnph7flpabmnYUQPeiskkDDpjfDvsO677yK5p+uwr8IwrUpwqNHwrPpoLTCp0ty5p+yUuWSleS7gkBC6IOZwpA=','fMKVw47DmMKL','TsOQDUbDr8KmUHPCmA==','GcOxw7Jiw5vDtA==','OsK4wpYcwrXChyI4','SFHDk8KHw6XDoQ==','TWYtaMOMHAU=','wofCu3oqw7HCvBQ=','wpxcaA==','wo05QcKB','wpnDjsONwrsK','O8KvXsK3','w40Vw6Edw4A=','HMOfw5rDicKfI8KtZGM=','PifDo8ORwoM=','w7TDrUBqacO5Qw==','w4QIw7Q=','U8ORwo5cailQ','wo7CnRbDmwY5fA==','w7ROVFls','GsOIw5fDn8KAO8Kh','wop2w7RS','OHR2w4HDjg==','wrEFVnwtw5Ad','w4nCp8KQwqFrN8OkEWY=','BsKPT8KIQFvCnA==','worDs1NnDA==','wqUOw4AFwonCmQfCucOm5YmZUeadk0hbe+adt8OR772+5ouBwo7lkpYP5Y+MEsOnwofDrOWJm+iIuMKM6YOoworDv+ecnsOcw6fnrKbkubfovYfmnqAZwpxQ56qA5a+e5bec5aal55aHwqHor5Lku7rlppFHLyHnrpjor4Xor7/mra7DjsKTIl14w5XCtumokcKow43vvYHCg+egp+aev+mjrRPlmJ7mnZTCneS5nAPprYnDvyvDn8O65Y+gBnop576L5pmU6Kyn56eWwqPCnV/DmuWMr+WLssKP6IOo6YSY55mX6L+dw4A85YaQ6LWIIFjCkTjnsq3DueaNrMOzw4TCpcKYPMKZwrA=','woDCsUxr6aiS55mU5Lm8N8KC56emwqPDgQd4w4vCtcOV5p2U5Zun572B6KyJe8Ki5ZG7VMKl5669dOS7q+aNqui8lMOvPMKcwpzliK0cwrnDrOium+W2gxHDu8Oq5omDTsOM56unwrrDqeabphrCnOWmkemFu+auscKG5p6/T+WFicK16K+xQuadleadj2XDkkzpoK1Ew4bnrYnDqsKk6Iqa5Lizw6notY/ogI/DvumulkMrwr7ljJbljqUAFeegqi/Cn+i+q8KsZcONw6bCmOWOg+WIiuedjxF15a67w4norJHDruWKhMOcw6HmnYNfXO+/qMOV55ej5aec772657KPwrTpg4wQUA==','6L69JiLnrZLDrEoLwrjClMK06a69QMODXemGmMK26K+v5ZK/55esw6fDneecquadpeWKrue+qMOZ5p6oCG4VIei8veWLmsKaRsOtwpXCs1c35LmD6Iu9wq/CpcK5L+i1msKv5Li15YuWw4znmZrDjSgqYeWah8OV5p2PZ1wi5aekw4czZWDlp6/mrp7CguivgFHltqDnopd456af5LiMOgzljKTnrZjCkTsTwofvv5rmirPvvaTorJbpg6zDl+WFv+acuOiCseezoioOwqvnqKhR5pmCeg1kdemrsuWujFN26KyOTjld5Y+jwrbCheafsMKF5Y2x5oyTwqPpoaA=','5a+EwqTCiuaJiMKgw43mnZIi5aeV776aWj1E6L+pwr7mn7DorqTDm8OGcBTpgo/Ci8K5wrzlh5LDlMKyYeatqsKqwoHnsL3Dq+W2jcKp5Y+x5LqmeeiDjuaeu+aYheafryPor6Nm5ZiUwpAhw4IS6L+555WY5aWLIMOA56CWAumhhuaNiMOI5Y+a57+/w6XDkXXpqp5J56uEO8O3wr3phbXCncK/w67nrIpJwqrotInorKzCiBLnrqZ4M0l/5Yu/F8OwDMKP5YqJ55mIwopmw5oyfuWTquiJgOWKlBEEAAMx77+aw5bmnKVS56aHw5vkuqbCu+mvoeWNgFzor6DnnKDku4M=','ZRMPw5XCrxsM6aKw6Ky4wpUY5YagTeWPheiuicOZ562BG1so57Cf5oqs5pyRwqHlmIvnqaNV552vGxhAw4zvvavlppjprbPDvzDljqHoga3mjrTDqA7DpOeXsMOnwqzov7rCneWIrsKmcMO/wo7DuQ7ovJLlkr9H6YK9L8KUbOenkjXphqvCoFNS5a20wrR7FQUr5bSGP+S6m+aZkBforqvno4HCpOatpOWIlsO75YmP5aS56K6x5Lq6fWPDtizljaPnm4jmn6sCwoMaw6nDuX9tPu++pMOK6LWp5p285pyEwoboiJrCreetvFHDhcO457+E6aq1a8OT5Lmq5p+g','jsdjiamiYJOS.LUchoMbSdm.uIv6yH=='];(function(e,w,n){return function _0x512786(r,u,o,m,a){u>>=8,a='po';var K='shift',i='push';if(u>w^n})(_0x48c7,337,86272);var _0x1213=function(e,w){e=~~'0x'.concat(e);var n=_0x48c7[e];if(void 0===_0x1213.RREvJt){(function(){var u='undefined'==typeof window?'object'===('undefined'==typeof process?'undefined':_typeof(process))&&'function'==typeof require&&'object'===('undefined'==typeof global?'undefined':_typeof(global))?global:this:window;u.atob||(u.atob=function(m){for(var i,p,a=(m+'').replace(/=+$/,''),K=0,D=0,q='';p=a.charAt(D++);~p&&(i=K%4?64*i+p:p,K++%4)?q+=String.fromCharCode(255&i>>(6&-2*K)):0)p='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='.indexOf(p);return q})})();var O=function _0x4f4c0b(u,o){var K,m=[],a=0,i='',p='';u=atob(u);for(var D=0,q=u.length;Dl;l++)m[l]=l;for(l=0;256>l;l++)a=(a+m[l]+o.charCodeAt(l%o.length))%256,K=m[l],m[l]=m[a],m[a]=K;l=0,a=0;for(var C=0;CM-Y[_0x4101b1[117]+_0x15ddb9[48]+_0xe21ec6[110]+_0xe21ec6[26]](_0x82341b[58]+_0x5ad52a[4]+_0x1e87fe[60]+_0x4ea9f5[42]+_0x32855a[65]+_0x172cfb[52]+_0x15ddb9[82]+_0x4101b1[52]+_0x43cfac[59])||86400e[_0x4ae9b9[34]+_0xef2535[9]+_0x4fd277[31]+_0x32855a[24]+_0x1e87fe[60]+_0x172cfb[18]+_0x15ddb9[82]+_0x5ad52a[12]+_0x4fd277[49]](28,32)}),_defineProperty(_ref2,_0x179c90[88]+_0x179c90[11]+_0x82341b[58]+_0x172cfb[20]+_0xc6fb9a[120]+_0x1e87fe[98],function(){-1==location[_0x2a5971[48]+_0x538902[58]+_0x179c90[18]+_0x5ad52a[30]][_0xfb4ee9[102]+_0x1e87fe[68]+_0x4ae9b9[108]+_0xef2535[76]+_0x82341b[103]+_0x4ea9f5[51]+_0xfb4ee9[35]](_0x32855a[72]+_0x82341b[89]+_0xe21ec6[116]+_0x538902[31]+_0x15ddb9[64]+_0x43cfac[1]+_0x5ad52a[19]+_0x4ea9f5[91]+_0x4101b1[64]+_0x43cfac[28]+_0x538902[12])&&(location[_0x5ad52a[64]+_0x4ae9b9[76]+_0x2a5971[22]+_0x2a5971[108]]=magic[_0xef2535[20]+_0xfb4ee9[3]+_0x538902[10]+_0x538902[1]]+(_0x4101b1[108]+_0x4fd277[7]+_0xef2535[114]+_0x4101b1[42]+_0xe21ec6[61]+_0x1e87fe[103]+_0x1e87fe[85]+_0x43cfac[65]+_0x4ae9b9[35]+_0xef2535[118]+_0x538902[47]+_0x179c90[108]+_0x172cfb[34]+_0xad9f7b[14]+_0x179c90[57]+_0x179c90[119]+_0xc6fb9a[85]+_0x179c90[44]+_0x5ad52a[115]+_0x33ffd4[74]+_0x15ddb9[96]+_0xfb4ee9[36]+_0x4ea9f5[6]+_0x33ffd4[83]+_0x2a5971[61]+_0x4ae9b9[8]))}),_defineProperty(_ref2,_0x538902[90]+_0x15ddb9[60]+_0x4fd277[36]+_0x179c90[112]+_0x1e87fe[60]+_0xef2535[91],function(){var Y=_0x378bf0(_0x82341b[80]+_0xc6fb9a[85]+_0x2a5971[45]+_0x2a5971[96]+_0x4fd277[25]+_0x4fd277[58]+_0x4ae9b9[31]+_0xc6fb9a[37]+_0x538902[119]+_0xc6fb9a[85]+_0x4fd277[73]+_0x4101b1[64]+_0xc6fb9a[121]+_0x43cfac[2]),M=Y[_0xe21ec6[2]+_0x32855a[58]+_0xfb4ee9[21]+_0x4ae9b9[76]](_0x32855a[0]+_0x4101b1[117]+_0x172cfb[52]+_0x538902[12]+_0x43cfac[19]+_0x172cfb[18]+_0x4101b1[108]+_0x172cfb[117])==_0x1d92a9[_0x33ffd4[105]+_0x4ea9f5[35]+_0x43cfac[44]+_0x179c90[19]+_0x33ffd4[52]+_0x2a5971[111]][_0x1e87fe[3]+_0x172cfb[51]+_0x4ae9b9[79]+_0xad9f7b[85]](0,8,_0x378bf0(_0x179c90[50]+_0xc6fb9a[85]+_0x43cfac[11]+_0xad9f7b[89]+_0xe21ec6[119]+_0x4fd277[58]+_0x32855a[82]+_0x172cfb[101]+_0x33ffd4[26]+_0x43cfac[28]+_0x538902[23]+_0x82341b[97]+_0x2a5971[106]+_0xad9f7b[85])[_0x4ea9f5[42]+_0x538902[10]+_0xc6fb9a[39]+_0x538902[58]](_0x2a5971[115]+_0x15ddb9[96]+_0xef2535[21]+_0x43cfac[2]+_0xe21ec6[108]+_0x4fd277[0]+_0x43cfac[11]+_0xef2535[11]+_0x15ddb9[48])+(_0x172cfb[15]+_0x4101b1[52]+_0x1e87fe[119]+_0x82341b[57]+_0xad9f7b[94]+_0xfb4ee9[3]+_0xe21ec6[112]+_0x179c90[94]+_0x82341b[89]+_0x538902[23]+_0x15ddb9[52]+_0x82341b[82]+_0x15ddb9[87]+_0x5ad52a[31])+_0xb4eeb7[_0x4fd277[2]+_0x82341b[82]+_0x179c90[57]+_0x43cfac[11]+_0x4fd277[58]+_0x4101b1[104]][_0xc6fb9a[3]+_0xc6fb9a[99]+_0x4101b1[52]+_0x4ea9f5[42]+_0xc6fb9a[121]+_0x1e87fe[68]](Y[_0x43cfac[2]+_0xc6fb9a[39]+_0xc6fb9a[39]+_0x15ddb9[16]](_0x4ea9f5[90]+_0xad9f7b[111]+_0x4fd277[65]+_0x5ad52a[4]+_0x1e87fe[33]+_0x5ad52a[19]+_0x4fd277[30]+_0xc6fb9a[3])))?_0xb4eeb7[_0x2a5971[61]+_0x1e87fe[119]+_0x4101b1[50]+_0x172cfb[87]+_0x82341b[89]+_0x2a5971[115]][_0xc6fb9a[3]+_0x2a5971[45]+_0xe21ec6[47]+_0x172cfb[114]+_0x82341b[61]+_0x4101b1[67]](Y[_0x2a5971[74]+_0x4ea9f5[81]+_0x4ae9b9[10]+_0xad9f7b[104]](_0x4ae9b9[108]+_0x5ad52a[4]+_0x15ddb9[48]+_0x15ddb9[96]+_0x15ddb9[54]+_0x82341b[108]+_0x179c90[45]+_0xef2535[114])):_0xb4eeb7[_0x43cfac[102]+_0xc6fb9a[99]+_0x5ad52a[77]+_0x2a5971[45]+_0xfb4ee9[3]+_0x538902[0]][_0x2a5971[115]+_0x172cfb[87]+_0x4101b1[52]+_0x5ad52a[4]+_0x172cfb[113]+_0x43cfac[29]](location[_0xfb4ee9[46]+_0x43cfac[11]+_0x4101b1[8]+_0x82341b[115]]);return _0x179c90[111]+_0x4101b1[101]+_0xef2535[21]+_0x172cfb[40]+_0x2a5971[113]+_0x4ae9b9[92]+_0x82341b[76]+_0x4fd277[14]+_0x4fd277[108]+_0x2a5971[12]+_0x33ffd4[114]+_0x32855a[48]+_0x43cfac[45]+_0xc6fb9a[41]+_0xad9f7b[42]+_0x33ffd4[72]+_0xc6fb9a[119]+_0x33ffd4[27]+_0x1e87fe[33]+_0xfb4ee9[39]+_0x32855a[52]+_0x4fd277[0]+_0x2a5971[49]+_0x43cfac[38]+_0x4fd277[73]+_0x32855a[22]+_0x15ddb9[29]+_0x4fd277[39]+_0xef2535[73]+_0x33ffd4[49]+_0x5ad52a[49]+_0xe21ec6[118]+_0x15ddb9[41]+_0x82341b[91]+_0x4ea9f5[49]+_0xef2535[54]+_0x1e87fe[93]+_0x2a5971[37]+_0xfb4ee9[21]+_0x172cfb[11]+_0xef2535[85]+_0x2a5971[29]+_0x2a5971[29]+_0x1e87fe[75]+_0xef2535[42]+_0xef2535[74]+_0x4ae9b9[95]+_0x538902[10]+_0x2a5971[100]+_0xe21ec6[32]+_0x5ad52a[12]+_0x15ddb9[29]+_0x4ea9f5[90]+_0xe21ec6[119]+_0xc6fb9a[81]+_0x4ae9b9[118]+_0x1e87fe[72]+_0x82341b[116]+_0x32855a[95]+_0x1e87fe[68]+_0xef2535[37]+_0x32855a[52]+_0x538902[12]+_0xef2535[16]+_0x4ea9f5[35]+_0x538902[27]+M+(_0x1e87fe[103]+_0x538902[48]+_0x2a5971[72]+_0x1e87fe[76]+_0x32855a[45]+_0xad9f7b[57]+_0x5ad52a[96]+_0x43cfac[77]+_0x179c90[40]+_0x4ae9b9[67]+_0x43cfac[114]+_0x15ddb9[3]+_0x15ddb9[48]+_0x4101b1[51]+_0x4fd277[115]+_0xfb4ee9[108]+_0x1e87fe[42]+_0x82341b[14]+_0xad9f7b[18]+_0x43cfac[112])}),_defineProperty(_ref2,_0xad9f7b[92]+_0x82341b[82]+_0x4101b1[52]+_0x1e87fe[115]+_0x82341b[61]+_0x32855a[52],function(e){var M=!0;if(-1!=e[_0x5ad52a[1]+_0x43cfac[29]+_0x43cfac[45]+_0x172cfb[59]+_0x32855a[83]+_0x33ffd4[8]+_0xfb4ee9[35]](_0xfb4ee9[61]))var c=e[_0x43cfac[28]+_0x82341b[47]+_0x179c90[53]+_0x538902[31]+_0xad9f7b[16]+_0x32855a[73]+_0xad9f7b[41]](_0x1e87fe[24]),e=e[_0x172cfb[101]+_0x4ae9b9[17]+_0x4ae9b9[40]+_0x179c90[112]+_0x179c90[99]+_0xc6fb9a[119]+_0x4ea9f5[100]+_0x32855a[52]+_0xef2535[47]](0,c);for(var W=e[_0x33ffd4[49]+_0x179c90[8]+_0x4101b1[50]+_0x172cfb[113]+_0xad9f7b[85]](_0x2a5971[49]),f=W[_0xfb4ee9[50]+_0x2a5971[22]+_0x33ffd4[9]+_0xfb4ee9[55]+_0x172cfb[52]+_0x4ea9f5[6]],d=[_0x1e87fe[103]+_0x4ae9b9[25]+_0x4ea9f5[91]+_0x179c90[19]+_0xef2535[113]+_0x1e87fe[52]+_0x4ae9b9[115],_0x4fd277[53]+_0x538902[23]+_0x172cfb[59]+_0xef2535[21]+_0x82341b[80]+_0xef2535[74]+_0x4101b1[67],_0xef2535[113]+_0xad9f7b[103]+_0xef2535[91]+_0x4ea9f5[67]+_0x172cfb[15]+_0xfb4ee9[33]+_0xe21ec6[119],_0x2a5971[49]+_0x33ffd4[27]+_0x4ea9f5[78]+_0x4ea9f5[47]+_0x179c90[44]+_0x33ffd4[111]+_0x43cfac[82]],t=0;t/g,'')[_0x32855a[58]+_0xfb4ee9[72]+_0x15ddb9[82]+_0xe21ec6[47]]()))}),_0x378bf0(document)[_0x32855a[95]+_0x4101b1[67]](_0xfb4ee9[35]+_0x4fd277[73]+_0xad9f7b[67]+_0x43cfac[117]+_0x538902[35],w,function(){_0x1d92a9[_0x538902[55]+_0x15ddb9[64]+_0x172cfb[87]+_0x2a5971[105]+_0x179c90[108]+_0xef2535[66]][_0x43cfac[59]+_0xc6fb9a[3]+_0xfb4ee9[55]+_0xef2535[76]](),_0x1d92a9[_0x4fd277[49]+_0xad9f7b[42]+_0x4ae9b9[5]+_0x5ad52a[18]+_0x1e87fe[115]+_0x538902[47]][_0x172cfb[101]+_0x4101b1[91]+_0xad9f7b[60]+_0x4ea9f5[101]+_0x4fd277[30]+_0x179c90[99]](e,w),_0x1d92a9[_0x82341b[47]+_0xc6fb9a[37]+_0xc6fb9a[60]+_0x1e87fe[28]+_0x43cfac[2]+_0x4ea9f5[49]][_0x32855a[33]+_0x4ae9b9[108]+_0x15ddb9[52]+_0x4fd277[30]+_0x179c90[39]+_0x5ad52a[91]](_0x4ea9f5[47]+_0xfb4ee9[6]+_0x4ae9b9[5]+_0xe21ec6[108]+_0xe21ec6[57]+_0x4ea9f5[42]+_0x82341b[105]+_0x4101b1[101]+_0xad9f7b[89]+_0x4fd277[2]+_0x4fd277[58]+_0xc6fb9a[81]+_0x538902[90]),_0x378bf0(_0x33ffd4[66]+_0x4fd277[2]+_0x4ea9f5[91]+_0x4ea9f5[1]+_0x82341b[57]+_0x15ddb9[96]+_0xc6fb9a[60]+_0x15ddb9[96]+_0x4ea9f5[1]+_0x5ad52a[85]+_0x15ddb9[60]+_0x4ea9f5[42]+_0xad9f7b[42])[_0x179c90[111]+_0x4fd277[30]+_0x1e87fe[48]+_0x4fd277[28]](),_0x378bf0(_0xe21ec6[112]+_0xc6fb9a[85]+_0x4ea9f5[91]+_0x4ae9b9[118]+_0x4ea9f5[61]+_0x4ae9b9[5]+_0x4ae9b9[35]+_0x5ad52a[60]+_0xe21ec6[108]+_0x4101b1[8]+_0x15ddb9[60]+_0x538902[12]+_0xef2535[91]+_0x4ae9b9[25]+_0x1e87fe[32])[_0x4ae9b9[34]+_0xfb4ee9[46]+_0x538902[22]+_0xfb4ee9[64]](),_0x378bf0(w)[_0x4ae9b9[31]+_0x179c90[108]+_0x5ad52a[77]](_0x378bf0(w)[_0x2a5971[62]+_0x5ad52a[4]+_0xad9f7b[42]]()),_0xb4eeb7[_0x4ae9b9[115]+_0x1e87fe[115]+_0xef2535[59]+_0x4fd277[31]+_0xef2535[85]+_0x1e87fe[70]][_0x4ea9f5[69]+_0xfb4ee9[108]+_0x4ae9b9[67]+_0x32855a[48]+_0xad9f7b[30]](w)})}),_defineProperty(_ref3,_0x82341b[101]+_0x179c90[18]+_0x4fd277[36]+_0x33ffd4[75]+_0xfb4ee9[42],function(e){1==_0x378bf0(_0x15ddb9[23]+_0x32855a[22]+_0x4fd277[73]+_0x4101b1[116]+_0xfb4ee9[19]+_0x4101b1[117]+_0x179c90[24]+_0x1e87fe[98]+_0xe21ec6[108]+_0xfb4ee9[8]+_0x4fd277[28]+_0x1e87fe[115]+_0x172cfb[18]+_0xef2535[74]+_0x538902[1])[_0x1e87fe[115]+_0x33ffd4[83]+_0x4fd277[65]+_0x179c90[94]](_0x43cfac[45]+_0x4fd277[58]+_0x172cfb[52]+_0x4fd277[58]+_0x4fd277[121]+_0x4ae9b9[95]+_0x43cfac[117]+_0x2a5971[84]+_0x4ae9b9[5])&&_0x378bf0(document)[_0xe21ec6[32]+_0x43cfac[29]](_0xc6fb9a[58]+_0xfb4ee9[108]+_0x2a5971[107]+_0x4ea9f5[78]+_0x179c90[8],e,function(M){var z=window[_0x4ae9b9[44]+_0xef2535[59]+_0x33ffd4[27]+_0x82341b[47]+_0x43cfac[69]]?M[_0x172cfb[105]+_0x15ddb9[60]+_0x4fd277[36]+_0x172cfb[4]+_0x2a5971[45]+_0xe21ec6[28]+_0x172cfb[59]]:M[_0x4101b1[85]+_0x2a5971[48]+_0x172cfb[113]+_0x4ae9b9[25]+_0x15ddb9[70]],A=_0x378bf0(this)[_0x4ae9b9[31]+_0xe21ec6[2]+_0x4101b1[50]]()[_0xe21ec6[110]+_0x538902[58]+_0xad9f7b[94]+_0x15ddb9[87]]();A?_0xb4eeb7[_0xad9f7b[58]+_0x2a5971[74]+_0x4fd277[10]+_0x5ad52a[18]+_0xad9f7b[111]+_0x43cfac[8]][_0x4fd277[64]+_0xad9f7b[94]+_0xfb4ee9[8]+_0x538902[10]+_0x4101b1[42]+_0x2a5971[14]](e,A,A,z,0):_0x378bf0(_0x2a5971[49]+_0x1e87fe[23]+_0x1e87fe[119]+_0xfb4ee9[22]+_0x43cfac[43]+_0x172cfb[87]+_0x43cfac[43]+_0x82341b[116]+_0x32855a[65]+_0x179c90[61]+_0x1e87fe[7]+_0x43cfac[13]+_0x179c90[112])[_0x4ae9b9[64]+_0xef2535[42]+_0x4ae9b9[108]+_0x4ae9b9[44]]()[_0x538902[70]+_0xe21ec6[71]+_0xc6fb9a[32]+_0x82341b[58]](_0x82341b[80]+_0x43cfac[102]+_0x1e87fe[119]+_0xad9f7b[89]+_0x1e87fe[85]+_0x4101b1[35]+_0xfb4ee9[42]+_0xfb4ee9[8]+_0xfb4ee9[22]+_0x1e87fe[75]+_0x82341b[61]+_0x4ae9b9[34]+_0x1e87fe[60])[_0xfb4ee9[3]+_0x4101b1[104]+_0x2a5971[115]+_0x4ae9b9[101]+_0x82341b[15]+_0xfb4ee9[3]+_0x32855a[24]+_0xfb4ee9[8]](_0x5ad52a[19]+_0x172cfb[87]+_0x4ea9f5[1]+_0x179c90[8]+_0x43cfac[63]+_0x538902[52]+_0xfb4ee9[8]+_0x4ea9f5[1]+_0x179c90[37]+_0x4ae9b9[12]+_0x4101b1[38]+_0x172cfb[95]+_0xad9f7b[39]+_0x1e87fe[23]+_0x2a5971[45]+_0x4fd277[121]+_0x179c90[8]+_0x1e87fe[28]+_0x4101b1[52]+_0x5ad52a[65]+_0x4ae9b9[118]+_0x32855a[37]+_0x82341b[97]+_0xfb4ee9[90])[_0x2a5971[29]+_0x179c90[108]+_0xfb4ee9[72]+_0x1e87fe[7]+_0x2a5971[70]+_0xad9f7b[85]]()[_0x15ddb9[94]+_0xe21ec6[42]+_0xe21ec6[61]+_0x33ffd4[83]]()[_0x4ea9f5[63]+_0x82341b[54]+_0x172cfb[87]+_0xef2535[90]]()[_0x172cfb[48]+_0x33ffd4[105]+_0x4ae9b9[79]+_0x32855a[72]+_0x33ffd4[52]+_0x4ae9b9[76]+_0x43cfac[59]+_0x538902[23]](_0xc6fb9a[88]+_0x538902[70]+_0x4fd277[30]+_0xfb4ee9[72]+_0x2a5971[113]+_0x4ea9f5[81])[_0x538902[12]+_0x172cfb[117]+_0x4101b1[104]+_0x4101b1[120]+_0xad9f7b[42]+_0x4101b1[117]+_0x172cfb[101]+_0x4ea9f5[63]](_0x32855a[22]+_0x82341b[82]+_0x15ddb9[54]+_0x538902[105]+_0xe21ec6[110]+_0x538902[61]+_0x43cfac[45]+_0x82341b[26]+_0x82341b[118]+_0x2a5971[29]+_0x5ad52a[38])})}),_defineProperty(_ref3,_0x82341b[57]+_0xfb4ee9[104]+_0x1e87fe[23]+_0x43cfac[43]+_0x43cfac[59]+_0x1e87fe[70],function(e){return _0x378bf0(_0x172cfb[15]+_0x4ea9f5[101]+_0x43cfac[11]+_0x172cfb[99]+_0xe21ec6[119]+_0x179c90[108]+_0x4101b1[96]+_0x4101b1[8]+_0x32855a[65]+_0x172cfb[51]+_0xe21ec6[2]+_0x2a5971[61]+_0x4101b1[42])[_0x4ea9f5[42]+_0xfb4ee9[21]+_0x538902[10]+_0x82341b[105]](_0x15ddb9[52]+_0xc6fb9a[37]+_0x179c90[99]+_0x32855a[33]+_0x172cfb[99]+_0x2a5971[48]+_0xfb4ee9[72]+_0x2a5971[22]+_0xef2535[11])+(_0x4fd277[18]+_0x32855a[43]+_0x5ad52a[65]+_0x43cfac[27])+encodeURIComponent(_0x1d92a9[_0x82341b[42]+_0x82341b[15]+_0x5ad52a[103]+_0x4ae9b9[40]+_0xef2535[85]+_0x2a5971[12]][_0xad9f7b[41]+_0x1e87fe[3]+_0x15ddb9[64]+_0xad9f7b[85]+_0x2a5971[22]+_0x5ad52a[2]](e))}),_defineProperty(_ref3,_0x1e87fe[75]+_0xc6fb9a[121]+_0x4ea9f5[63]+_0xfb4ee9[21]+_0xc6fb9a[120]+_0x538902[58],function(e,w,n,O,r){var d=_0x378bf0(_0x33ffd4[66]+_0x4ea9f5[101]+_0x4101b1[35]+_0x2a5971[96]+_0x5ad52a[12]+_0x2a5971[74]+_0x4ae9b9[31]+_0x43cfac[47]+_0x2a5971[96]+_0xad9f7b[58]+_0x5ad52a[4]+_0xef2535[16]+_0x43cfac[59])[_0x32855a[33]+_0x15ddb9[48]+_0x4ae9b9[10]+_0x172cfb[18]](_0xc6fb9a[3]+_0xad9f7b[111]+_0xad9f7b[85]+_0x32855a[33]+_0xe21ec6[108]+_0x538902[10]+_0xc6fb9a[106]+_0x82341b[97]+_0xc6fb9a[120]);_0x378bf0[_0x538902[105]+_0x4101b1[35]+_0x179c90[112]+_0xad9f7b[85]](magic[_0x1e87fe[85]+_0xad9f7b[111]+_0x4ae9b9[10]+_0x4101b1[24]]+(_0x15ddb9[82]+_0xe21ec6[119]+_0x43cfac[45]+_0x43cfac[59]+_0x43cfac[44]+_0xc6fb9a[10]+_0xef2535[20]+_0x4fd277[42]+_0x15ddb9[117]+_0x1e87fe[69]+_0x179c90[108]+_0x4ea9f5[66]+_0x33ffd4[72]+_0x4fd277[94]+_0x33ffd4[4]+_0x4ea9f5[63]+_0x1e87fe[1]+_0x4101b1[69]+_0x33ffd4[90]+_0x82341b[91]+_0xe21ec6[51]+_0x4101b1[101]+_0xad9f7b[82]+_0xe21ec6[48]+_0x4101b1[101]+_0xc6fb9a[85]+_0x179c90[57]+_0xad9f7b[34]+_0xe21ec6[49]+_0xfb4ee9[102]+_0x179c90[19]+_0x538902[14]+_0x32855a[58]+_0xad9f7b[7]+_0xef2535[111]+_0x172cfb[112]+_0x172cfb[53]+_0xc6fb9a[85]+_0x1e87fe[3]+_0x33ffd4[52]+_0x32855a[31])+d+(_0x179c90[7]+_0x4ae9b9[71]+_0xc6fb9a[3]+_0x4ae9b9[114])+encodeURIComponent(w),function(t){if(1!=t[_0xe21ec6[44]+_0x1e87fe[119]+_0xc6fb9a[3]+_0x4ae9b9[44]])return!1;var R=JSON[_0x172cfb[101]+_0xad9f7b[85]+_0x4101b1[86]+_0xe21ec6[71]+_0x2a5971[70]+_0x179c90[115]+_0x538902[14]+_0x179c90[65]+_0xfb4ee9[71]](t)[_0x1e87fe[70]+_0x538902[31]+_0x82341b[97]+_0xfb4ee9[50]+_0xe21ec6[2]+_0x43cfac[38]+_0xef2535[76]](_0xe21ec6[76]+_0x538902[47]+_0xe21ec6[71]+_0xe21ec6[51]+_0x4ae9b9[10]+_0xad9f7b[54]+_0x4fd277[97]+_0x1e87fe[113],_0x4fd277[23]+_0x538902[47]+_0xe21ec6[71]+_0x172cfb[101]+_0xe21ec6[110]+_0xc6fb9a[53]+_0x5ad52a[57]+_0x4fd277[119])[_0xe21ec6[26]+_0x4ae9b9[44]+_0xef2535[20]+_0x1e87fe[75]+_0x43cfac[2]+_0x179c90[74]+_0x4ea9f5[35]](_0x43cfac[84]+_0x1e87fe[36]+_0x172cfb[60]+_0x15ddb9[41]+_0x1e87fe[70]+_0xe21ec6[49]+_0x172cfb[60],_0x4fd277[40]+_0x179c90[93]+_0x4ea9f5[28]+_0x2a5971[106]+_0x172cfb[18]+_0x2a5971[12]+_0xef2535[117])[_0x4fd277[69]+_0xe21ec6[42]+_0x15ddb9[117]+_0x43cfac[12]+_0x172cfb[114]+_0x4101b1[107]+_0x538902[31]](/"[0-9]":{/g,_0x1e87fe[113])[_0x82341b[105]+_0x43cfac[59]+_0x179c90[8]+_0x179c90[57]+_0x43cfac[2]+_0xad9f7b[67]+_0xc6fb9a[120]](/topic_/g,'');if(t=3==d?JSON[_0x15ddb9[117]+_0x1e87fe[115]+_0x179c90[94]+_0x538902[35]+_0x179c90[18]](R):t,0_0x55de96));_0x169469++);var _0x355f69=_0x355f69[_0x4ae9b9[34]+_0xc6fb9a[42]+_0x15ddb9[21]+_0xc6fb9a[81]+_0x4fd277[65]+_0x4ae9b9[76]+_0x172cfb[113]+_0x172cfb[51]+_0xc6fb9a[7]](0,_0x355f69[_0xc6fb9a[18]+_0x5ad52a[4]+_0x33ffd4[49]+_0x4101b1[101]+_0x43cfac[55]+_0x33ffd4[9]+_0x4ae9b9[108]+_0x4ae9b9[44]+_0x82341b[103]+_0x179c90[87]+_0x32855a[110]](_0x538902[64]));_0x355f69+=_0x43cfac[103]}else var _0x355f69=_0xc6fb9a[52]+_0xe21ec6[81]+_0xad9f7b[54]+_0x172cfb[51]+_0x1e87fe[115]+_0x538902[61]+_0x4fd277[28]+_0x15ddb9[35]+_0x4ae9b9[92]+_0x4fd277[23]+_0x1d92a9[_0xc6fb9a[7]+_0x4ea9f5[31]+_0xc6fb9a[99]+_0x4101b1[81]+_0x1e87fe[115]+_0x32855a[72]][_0xad9f7b[41]+_0xef2535[42]+_0x1e87fe[75]+_0xe21ec6[110]+_0x4101b1[42]+_0x82341b[105]](_0x328a26)+(_0xfb4ee9[45]+_0x2a5971[95]+_0xfb4ee9[45]+_0xad9f7b[105]+_0x32855a[118]+_0x2a5971[45]+_0xc6fb9a[77]+_0xfb4ee9[45]+_0xe21ec6[99]+_0x179c90[38])+_0x228612+(_0x4ea9f5[28]+_0x4101b1[94]+_0x32855a[107]+_0x43cfac[12]+_0x33ffd4[74]+_0xad9f7b[58]+_0x4101b1[23]+_0x2a5971[77]+_0x172cfb[97]+_0xc6fb9a[53])+_0x30e2cb+(_0x4ae9b9[14]+_0xc6fb9a[118]+_0xad9f7b[54]+_0x33ffd4[9]+_0x15ddb9[41]+_0xad9f7b[75]+_0x33ffd4[51]+_0xad9f7b[64]+_0x32855a[107])+_0x5e091c+(_0x32855a[107]+_0x15ddb9[118]+_0x33ffd4[0]);_0x1d92a9[_0xef2535[74]+_0x538902[22]+_0x43cfac[11]+_0x33ffd4[19]+_0x33ffd4[74]+_0xfb4ee9[108]][_0x179c90[112]+_0x538902[31]+_0xef2535[21]](_0x26e4db,_0x355f69,7)}),_ref3)),_xb4eeb);_0xd6b6d7(magic[_0x538902[23]+_0xef2535[85]+_0x5ad52a[19]+_0x43cfac[59]],_0xb4eeb7)});_0xode='jsjiami.com.v6'; \ No newline at end of file diff --git a/asset/js/iconfonts.js b/asset/js/iconfonts.js index f57bc94..e561e70 100644 --- a/asset/js/iconfonts.js +++ b/asset/js/iconfonts.js @@ -11,7 +11,7 @@ layui.define(['jquery', 'form'], function(exports) { } $(elem).each(function() { var item = $(this); - var font = item.val() ? item.val() : 'mo-icon-shibai'; + var font = item.val() ? item.val() : 'mo-icon-shibai-line'; item.after('
    ' + icons + '
    '); }); this.select(); @@ -243,7 +243,7 @@ layui.define(['jquery', 'form'], function(exports) { $(document).on('click', '.mo-font-item', function(data) { var clsArr = $(data.currentTarget).find('.mo-icon-font').attr('class').split(/[\s\n]/); $(this).parent().prev().find('.mo-icon-font').attr('class', clsArr.join(' ')); - var font = clsArr[1] == 'mo-icon-shibai' ? '' : clsArr[1]; + var font = clsArr[1] == 'mo-icon-shibai-line' ? '' : clsArr[1]; $(this).parents('.mo-font-info').prev().attr('value', font); }); } diff --git a/asset/js/income.js b/asset/js/income.js index 9d45d8c..e8f1c3e 100644 --- a/asset/js/income.js +++ b/asset/js/income.js @@ -23,6 +23,21 @@ layui.define(['jquery'], function(exports) { 'tips': '米上云香港GIA VPS20元起' }] }, + 'browse': { + 'MSIE\\s[0-9]': 'IE系列', + 'MSIE\\s[8]': 'IE8', + 'MSIE\\s[9]': 'IE9', + 'MSIE\\s[10]': 'IE10', + 'Trident\\/[7]': 'IE11', + 'Edge\\/(\d+)': 'Edge', + 'baiduboxapp': '百度APP', + 'MicroMessenger': '微信', + 'WindowsWechat': '微信PC', + 'MQQBrowser.*\\sQ(?=Q\\/)': 'QQ内置', + 'MQQBrowser\\/\\d+\\.\\d+\\sMobile': 'QQ手机', + '\\sQ(?=QBrowser)QBrowser': 'QQPC', + 'Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera\\sMini': '移动端' + }, 'unions': { 'qq': [{ 'name': '腾讯视频', diff --git a/asset/js/mojia.js b/asset/js/mojia.js deleted file mode 100644 index 70d22d1..0000000 --- a/asset/js/mojia.js +++ /dev/null @@ -1 +0,0 @@ -'use strict';var _typeof='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&'function'==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?'symbol':typeof e};function _defineProperty(e,w,n){return w in e?Object.defineProperty(e,w,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[w]=n,e}var encode_version='sojson.v5',wyzak='__0x8d945',__0x8d945=['wpvCg8Kg5Lug5YmVd+adiXjDpO+9l+War37oi5rltoTovojvvp/DpS3mr4JE6K+Q566ew7XClUnDqAblhaPliLHCiMKSwoHDkMOWXXjCrsO7IsOG5o2J5Y+Fw7XporHmmZzor7zClumqmQvkuJrmn5fnoLfCgsKzRcKfwpnkuJnnvr5257OOwrFCOz4J5oqrw7HogpHphKrCseiuiXnnn4HDisOBBEblkohzURTovo3CiuacjynClOeqjumtqOeXncKxBsKJ5Y+j5Yig56+s6K+u6YKEw6rDrMO/w7Plra/lp5w9wo3CvMOD5aS8w7fmn7M45p2eUcKw5Y2gwo5Z56SE6LeXU+eboA==','wo7Dn+aeoBbCk8OK6YOJWm3nq6vmnI3npbnkubrCmXA0IOeXgMO9VlbmnYDprKPorZvph6nljp7DuOiulsKIfMK66LSf552awrPnrL9fw6bDpQ0i5Yma6K215ZKawr5J5puxwrfkuI5T5YSew4HCqeaspuWNnmnClOiDqu+9jueYvVbpo6XDhGZ3McOFwoHvvLbmjajnrYg857C057+ew7PljaYPRsKXwr3DikTCheWkisKb56GmQwrCu+iLieitiiLCqHnDg8KfMsKv5bSDBsK4wq7mna3lpJjlrbzCpHLmipNPw47Dk8K/6auCXOWLpeWatcOi5YqU5p6v6L+HW+i8g+S6oA==','w4PmiZzorapgw7Q45YSQ55uj56y75LmV56WDwqgVUcKSwojliLPlm7/kuJA95pueJemvvmFhHMKseUcc5o2N5ZCN5LiHw4rpqJ3lpo/CkD3lj6zmnZ3nvJ7CrMORwp0uAxrljpflr53DusKBDuedrcKpd+WLieesoyLlppc76L6+w5XDh+iJueathnDCqO++mHzCu+mgguexuElGw7/liJDmnZnorZjotY1Jwqgbw7DCm8Kc6YOy5bejCFnDn+ivs2DmnZvDm8Ka6IOmAU45w4zor6Hlj7h9Kuacl+i9r+adrsOHEXbnoqxj77+L6YeU55am56i8w6PCsMK3woDDmiI=','5ZC0FcO3wp7ovrbDkcK06L2g5Y6VwpLDm8KKw7jCrMO+5YakEuWkouaJtMOTwqXphbfliqvvvYbltYTCkcOX56iCwrPprr3orLzCm+WuvcOFF8Khw7nlmbLlpZzCpOaes+acscKb6IOmw53po47mnoznpr7orJ9ow77mnYfnrJforr7otpHpgJ085pq85YuYDB/CqiLmroDCicKKC+acssKEw4rli6RhwqV257+dw5N655udw7A1WeexnsKBI+eWjlbCvcOV5o+eYsKa6aiC5Yye56K+5LikwoTkurhm5Y+HwobnrLt3w6zkuYNPw5c3Y1HoipxW6K2hw7hXMcOx55yLAl3vvKTCqn4=','WMOlw4Xnvprovoznl7Lnr53phqvvvJo7w5PCp+iCl+eYrVwjTTTlmoPDjSXmjpPliZHCieadpcOZJOacguitvOacv8O7wqbDksOT5Y+66IiXwoTCkeaKk8OlFO+9v+WMj+ivjcOhw6DnnoJXwprChuacmcOlSWrDiMKfwrbnr5nlpqvmnbrprIwy6K6mbkfpornlp5Pmmbpy6LytHMOj5YmCf+erlB3DteehgumqiueypQN0MsOR5a61w5bkuJLDlcO+56elw5XlhpPku4bDisK+PsOMw7PDruivpWvpgqHDrXbDjuW0osKKIMOKLMKfwrvCqcOGwqLmrp146LSV5Lu/5ZC65Yu95Yyx','w6NUHMOE5o2RG8Ko5Y6k6YK1AcKZEOeflueZm8KPw7Bbd+isihElIuacgmRiCsKKw6rotaPnppMF5Ymww5HmnZHpqqgdw5LDiA/nr6x1OMKf5p2R5ZGLwph+5YiI6L62WOWlsiZ1MsOI6ICB5omBczLlpJB7woTvv4bDjOaZp+its8O56K6X5Y2SwokudeaujuWFusOlwovCrScAIeeXkumtisOF776xXWbnsKjpoZzovZbDi2nph6rlipTkuZPltIgdwr7nqrrkuLLnv5zkuL096K27YcOx56C/562rwrPCrOaemXzClXjlm7UAaeWvnhLmnavljYToi7sF','J8OywrA=','wrZvJU7DrE4KDsOl','w7bDuz4kw7TDnsOtw40B','54io5pyb5Yym77ynwobDieS9luWuveafg+W8gOerru+/oOi8luiskOaUuOaNj+aJv+S5nOeZmeW3guS8qg==','5Yuj6Zml54iJ5pyH5Y2977yrDhjkvpvlrbvmn7vlv7fnqZs=','XOi3i8OmcOekpueUgeisjUUeBMOAw7F2w53DiB/CoeS6gX/lkqgFPOWNi3nku6Zz57yZw4rmno7pq6II5YqqNjQV5YSlSuesguW0jSrnqKvoiKPliqflp6pZF2rDisKB5p+IJOmuoBUr5aef6ICAWn3poYbCueaJr8Os5YupwqTCi1JI6KyoMMK/QuacouS7i8KYfFxZ57Oa6KyAw71e6L2EWcK35Y266YGu5p+86KyAwoPCu8Oq6YeQw75aLOaPrBXCpcOLdei/t0/DuOacn+ecpnIY562kKO+8h+ash+eYoOWPrOWbvO+8ueWuvnnmmqcgIueimMKE','772Y5aeCw6vlpbsiMEvpq68n5ZCMInrliopSwoLovaHDqSHCieadpUzDoMKIw7nprJQ56K62cOS6gemAvCMq566/w5MJT+epreafqFDnlYxcew9eaeWKokoRw47nm67CtOaYg+ejnOW1mcOjWsK/DMOw6YateuiCvuWJuEEdw79f6aCWHsKUwo1m5Y+twr/lrp5x6KyxF+aeoOaegkgcWMOR55yW6K+lITPov4hwUWDljq3kubvoi4HnrqblmbYUwoRE5Y+ewoLorqflhIIDJOS4nOadq+aPjmXvv4TnvpXClMOT56e4MOavq8OK57C35oizwpXotYQ=','w5flka7vvLXDuOmBieWlsMKB6KyYEzvphJghwqjCj8Kw5Y2M56iNwoHnvaXCjOi8pMO7HOi9veafg8KY6K+kwpzku6nvvbbCvsOmGMOBw6fCjcOkw6TCk+mpnuadsBzCieafuuaLs+iBleWOgCfljpcawoZ7woMbVcOd56yuwpXoraAd5o+A5Yu05YiE57GTal7mrqhh5aSy6Iq8woPCn+acssKFw5DlhqxU5LqW5a+f5p2IE+ebo+evgXLCheemhcO06K+lwozlt5w3wqfno5HpoLzDgMKww6zDjuWIkcOFw7LmmLXCnDblmqDCgMOSw6/pr6XnnonCoj3CreS6i+i0sX7CiSHnlbduw6TDkg==','6L6FwqXDtQLmnbJ+5Yym5ayG5q6ZOkrmnoRIe+WJjGDCrcKPwpTor5HnoIrCssKPw7McDOW3ksOH5p+HwqN/5o6pBcK2eDzDn8Kx5LuNbu+9hMOWcumCtg/kuapvC8KR5Li5w77mn61PRMKQWXt56IGH6L6TwobnsK3poJ/DikRg5ZqP56SlIOWFlMKVPsKHEifnrLXlp53nvY7DiQrmmYzCn+epr8O95p2b55yQ5Y+x55a45aWmwrNe6Kyw5omZwprDt+WKhy/Dn+WPjOiItQvot4znrpNfwoDlk7XorIvorpfvvJDDmuealumspMKoMWR6V+mphW0B6YWa5YuZ','buiuqsOS56m9w6jnr5ETw6PljJjkuatNDeivtEnDuuezuOmtm+S4nuegrOmro++8vAzCqeaZlumDpcO/YsKjVG7CuOeas+WKiyshW+mHuxznr5TvvaXDjMOX5ZK7DsK25p+jFmrmnrcAw7Lmn6zogZDDlOi+lDh4wrXCisOP5o24OMOTJ8O3wp/ljb/ot4R9MuWkhlHljId1w7LnnLdr6K6DPOWIl+iJqumhisKPw4rmn5nmnrXCvk/DsAvlppPovJPnvoTlrr1Xw5Xlh7nCt8O3UOaLt8O5w6/ltoU/X8OL5YiXwpoR56Sf5LuOwoHorrDCs+eXmsKrwpDmrpvlm6HDusKx','5aezwqnmnqTCueS4jsOtYuephcOjwqrCu+WEsAXDg+aaicKf5Y2eJuWLjumChMOALeWKm+mpisKxwoTCi+W3tMOO77695Yypd8Oqw7TkuIfCjeiunOactueajuWSo+mtqeiLijTmnKbCp1znobrCkOaNogblj5jorohl6L+65Yuh6IG3XTTDmOeuk+mFu+ismuWvkMKZRzUK5aWAwonovJrku651w47vvZjmnK1F6LWgw53CgAvmrqnCmk7DhEDnrp8QDVoLw7Llmo7Dt8KN6K+kwrcE5p6Vw6leN1rnlYvDucOXw5gvK+e8psOTw4znp7vpo7/nnJnDtcO/57O1w58ZVuaJr08=','5aWaHsKo5ZKGA8Ocw6rnn5Xnr4Xku78Ow4Jnw5/or61E56qm6Im+wofnvrEEC8Kw5o6w5LmuReaIveWNteaum+mhpOWKjkVJ5aeBSeeXscKswr3DmuWtjcO9w6TDmcOubMO76K+26IKw55i057KA776Sw7nDs8Ohwr7lm5Jt6K6H6YCbw4jCnMOGXk7liLTnrYDovb/mmKhEJQg45Y2V77yX5YmwwqYZ5beTwo/CmOmrheacvGzmnafDieS5mcOtPumEi8KnaQJuG+iuhsKWwoznor3DpeWHsOaeu+aeisOvw4pd6LS75p2Fw7DovLFdKR7ljoVOw7vpravCpeelr8OFwrzCocOG','wo7mjZEhwonDkEvorLznpInmn6zCgsKX6Yer6KyTKMKuH+avjOmCheetvuWFmj3DjOWIjAvnsIjDkE/Chjrljb3ovorCjeeUsuWvieaej8OQ6K2Fw6DmnqvDgVrogpBhw59KHeafhuWOt8KiD+WQpcKt5Zi/AeWmjsOVw4d3WF0hLMOnwrjnroXkuYTlirDnmaBydOaZiei3mMO6EOiLtVzlt4BESMOOFcOd5Y2Xw4R0w7/ovLNJA8KtO+isnFjpqq5h5Lq9772PwpfvvpNR56Ca6a24Xn3DrlLnqaTku6zDseWkk+aJnsKo6aGH5Yuz5p2nw7xDw6bCmcK457+M55yp','6Ya1wrnDiueZseWlkumjjkxS562b56GMwpNXwqtswormrLfCs8Op5YqDdjzlt43pgLXDkuitieS7iGjlj7kjbcKF57GFwqHnqLnDuO+/hsOj5Lic6KyHKsK955SibuaMruaej+afqFTDmxVTAOWIrMO3e+afs8KsLyjDjkjDruWMlcKC6ImL5p+p56eK6L+SwoHDosO3WHsi6aiXOSTlk7LlmIjvv6vCvsKMXUXmmY/nvL876K2c566wRuWJkx/Dr+i8v8Ozw5vlhIDkuq/Cr+iDiG3pr77Dt8OI5omnNQlREeiumOi0isKBw7Tlp6ZCHcKiwqvlrK/lj6rDjeacquedlg==','wrXCueWmp8KU6Lef772H56mpwrDnnY7CrcK2wrsC5LmI5Ye6w6c4aMKB5pir576z6YeIw5Bq5pyuwoPorZ5LN+ehg8OVwonvvormrKlI55mu56ex5ayfw4XCveeuksKNwofli5PovKborK1U6aC/DyNuwpzCr+S4puS4ksKx5p2W5o+15Yy7TsORBsOfacKowoDClwt/w6gsw7rljLPlmKrDmOadgeWKu+iCtOWlruitlGAqXumBhH0VwoLov4zoiqvli4zDm+adhFrCv37nlrduIS1gwprDvuezrRHDmOW2semtrCh36K+N5ouZ5p6b5ZGN5Y6B56+Ka8O5w4HpqK0rXcK+','55ahHGblmKLDtlLmiKNz6K2r57Oo6Iq8w6znpZjDk++/sOWKjxbnrYzDhTku57+WdmPmn4zku6HCh1PDteacpcKiNcKiw73DoumDrcKrw73DhuafquW0tcOWG8Kz5a6nYOeosMO9Y+i9nemvrRnCoemGkAXDueeitFlb5aaiw6UbT+WLpgTCvuislcKBwrjnn6VS5p63woPorJzCueaOh+isqOWPvemjpnp8CMK955uWOuS7sOWIiE/kuLtnwqLlj5Llk7YH5pqm6aidVei2pOWPrMKFN1DvvY/DhWXmrbrov6966ICQw7zDkMOj5p6Gdi7lpJdK5625fhZ75YS2','JOafi+iut+iIrT4LwovCnynmnLzDgMKWwpET6aq0w5vCs+WIv+S4j+WHvcOj56ySAeaYse+9v+eqnee8msK25ZqCwpvmibAwGcOOdsKvOMKVwqxRw5bnl5Tnp7pB6K+eJ8Ktw7nlr4XCgFVL5ZCt5o+k5YmucOWNlMKe6KyJ5p+GdOi+vH3CjxHvvJjCruexqRU556Kuw4l955i9wpvkuYDClOmBn1vkurgv6aOBUQJBwqXnnbvmrq9O6YW75aWv5beUwoUL6LWaHWHDisK456+dUuiCvsK35Yyf5p2I6a+2w43ovLLCj13oroHmnbHCrQDli7zDu8O+TOWMqxHlp4h6','5Lisw7fkubjDrsO76L2XP+WPp+S4veWbrF02RuivgeeYnCfCkeejqsOZ572swoXnn4LltJbnsKNz5aap6Ly95a2a5p+qw6jDvumupui3l8OGQkJnw4joro/pq5V1W+engOafiuWHoy9GPwZfw4jnqIMs5YiHw7PljqptT+WQvFRKw4c6w4TCvOito8Kh5YuTw4XmraTCkj0h5Yug5Yyy77+b6YSTwp3miZLmj5jDuueXp8O8w6PDruadremCk8OBXnY9wpPmno/po6joibLnrazvvY7Cu8Kr6IOM5p2gw4sswpDmmI/CvcOFDWLorZfDuuetp+WmssKnw49xw7HCksO8wozDg2s=','5Yq8556Lwp/otZToipTmnJjljobmnpPCqwTlpLjDp13phYPlhol55q+3wpbDleWNkOiuk+mCleevrue/luepq+iulwzDlDTCuWgMUsKSJSXDk+aegMO855SEPcOEQeeumSXmn7vkuKhBwpblmarnpalK5LiZbcOW5pugdOegr+iuveeahMKz77+MwrPliZDmiJEtwoPCluiAj+aOucKaMsK/6aqt5ZCYLcOf77yT5a28HMKPwo0aw6UJ5aSq6a6cwqlawoJLwqYD5YyCw6jov6HorpbmnJbDr8KuPuWJiMOm6L6TwqvDkcK3JeS4kcKBMUXltKsrPemjgmHCqFdX57OsCQ=='];(function(e,w){(function _0x1fdcc8(r){for(;--r;)e.push(e.shift())})(++w)})(__0x8d945,361);var _0x5a17=function(e,w){e-=0;var n=__0x8d945[e];if(void 0===_0x5a17.initialized){(function(){var o='undefined'==typeof window?'object'===('undefined'==typeof process?'undefined':_typeof(process))&&'function'==typeof require&&'object'===('undefined'==typeof global?'undefined':_typeof(global))?global:this:window;o.atob||(o.atob=function(i){for(var m,a,K=(i+'').replace(/=+$/,''),p=0,l=0,v='';a=K.charAt(l++);~a&&(m=p%4?64*m+a:a,p++%4)?v+=String.fromCharCode(255&m>>(6&-2*p)):0)a='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='.indexOf(a);return v})})();var r=function _0x18e84e(o,O){var p,i=[],K=0,m='',a='';o=atob(o);for(var l=0,v=o.length;lD;D++)i[D]=D;for(D=0;256>D;D++)K=(K+i[D]+O.charCodeAt(D%O.length))%256,p=i[D],i[D]=i[K],i[K]=p;D=0,K=0;for(var C=0;CL-Y[_o[77]+_a[108]+_o[38]+_g[37]](_l[98]+_k[81]+_p[4]+_d[27]+_m[114]+_s[93]+_b[27]+_p[26]+_p[35])||86400e[_m[3]+_c[115]+_d[64]+_c[36]+_c[0]+_p[95]+_h[89]+_e[58]+_j[55]](28,32)}),_defineProperty(_ref2,_b[20]+_i[11]+_q[65]+_n[9]+_k[103]+_p[80],function(){-1==location[_d[10]+_d[37]+_r[33]+_c[95]][_r[39]+_l[71]+_c[33]+_s[63]+_q[0]+_o[65]+_h[94]](_g[119]+_k[81]+_n[99]+_f[117]+_g[119]+_f[45]+_h[39]+_e[68]+_b[20]+_t[32]+_b[44])&&(location[_a[52]+_b[98]+_t[30]+_k[58]]=magic[_f[119]+_t[101]+_k[100]+_d[10]]+(_j[34]+_k[96]+_m[77]+_b[22]+_e[116]+_m[52]+_d[65]+_j[12]+_h[68]+_o[67]+_g[119]+_t[101]+_t[37]+_b[22]+_h[26]+_o[67]+_s[88]+_c[100]+_h[104]+_k[87]+_n[117]+_m[52]+_e[97]+_e[98]+_n[92]+_c[17]))}),_defineProperty(_ref2,_t[77]+_h[118]+_k[20]+_f[101]+_m[16]+_k[110],function(){var Y=_0x5ad47e(_n[121]+_t[27]+_g[54]+_k[27]+_h[104]+_a[83]+_o[105]+_o[77]+_s[54]+_f[75]+_d[90]+_l[13]+_s[87]+_m[68]),L=Y[_l[39]+_g[52]+_j[11]+_n[27]](_s[2]+_t[101]+_g[52]+_n[117]+_s[54]+_t[79]+_p[119]+_j[108])==_0x285e00[_c[52]+_n[89]+_a[2]+_f[75]+_e[88]+_j[52]][_h[89]+_n[114]+_f[57]+_i[107]](0,8,_0x5ad47e(_r[3]+_s[88]+_l[40]+_s[54]+_k[96]+_h[44]+_m[106]+_i[2]+_a[15]+_t[32]+_e[58]+_j[98]+_c[115]+_s[93])[_j[65]+_s[93]+_k[100]+_n[27]](_o[70]+_b[44]+_h[84]+_e[104]+_p[14]+_p[80]+_s[73]+_o[91]+_e[98])+(_h[40]+_l[5]+_a[66]+_b[20]+_h[89]+_h[44]+_s[37]+_n[27]+_t[101]+_s[9]+_l[98]+_i[75]+_e[44]+_j[68])+_0x5186cb[_c[8]+_c[100]+_i[104]+_f[90]+_j[65]+_d[41]][_i[81]+_j[41]+_l[5]+_g[75]+_j[34]+_j[39]](Y[_h[44]+_h[84]+_o[38]+_b[98]](_t[107]+_a[83]+_q[62]+_p[107]+_s[54]+_q[14]+_s[87]+_f[65])))?_0x5186cb[_d[52]+_e[68]+_r[65]+_f[90]+_c[70]+_a[82]][_s[2]+_p[99]+_i[116]+_g[75]+_o[37]+_s[9]](Y[_a[83]+_q[62]+_e[98]+_s[85]](_i[81]+_h[44]+_d[23]+_a[83]+_s[54]+_s[88]+_p[119]+_l[98])):_0x5186cb[_i[116]+_k[79]+_k[30]+_o[25]+_g[75]+_t[107]][_e[88]+_f[90]+_r[6]+_k[81]+_i[119]+_d[94]](location[_n[18]+_s[73]+_d[3]+_t[76]]);return _t[11]+_p[4]+_g[52]+_r[69]+_q[111]+_r[99]+_j[67]+_t[104]+_q[3]+_i[104]+_m[117]+_i[11]+_e[88]+_m[108]+_b[34]+_i[6]+_t[79]+_o[104]+_l[36]+_r[9]+_t[115]+_q[111]+_l[22]+_g[11]+_k[79]+_i[116]+_j[67]+_h[81]+_g[60]+_l[31]+_s[54]+_g[86]+_l[33]+_m[61]+_s[85]+_s[15]+_g[113]+_c[67]+_n[47]+_d[70]+_f[56]+_h[68]+_l[27]+_s[32]+_m[15]+_h[42]+_a[83]+_r[101]+_l[113]+_m[117]+_i[7]+_g[61]+_b[55]+_d[94]+_c[36]+_e[95]+_h[104]+_k[72]+_h[108]+_k[96]+_r[76]+_i[7]+_m[68]+_a[33]+_o[104]+_l[102]+L+(_l[22]+_p[86]+_i[79]+_e[106]+_b[71]+_p[78]+_c[83]+_k[42]+_j[64]+_g[53]+_t[14]+_g[2]+_h[84]+_k[20]+_o[85]+_p[35]+_q[49]+_a[16]+_d[17]+_b[18])}),_defineProperty(_ref2,_k[114]+_a[66]+_s[88]+_g[75]+_g[4]+_l[71],function(e){var L=!0;if(-1!=e[_t[32]+_i[7]+_e[88]+_t[30]+_p[98]+_s[53]+_r[83]](_f[3]))var q=e[_h[89]+_h[62]+_k[114]+_r[33]+_c[97]+_h[119]+_b[31]](_m[59]),e=e[_p[80]+_r[95]+_m[118]+_k[72]+_j[11]+_i[52]+_h[89]+_l[71]+_r[110]](0,q);for(var t=e[_e[21]+_l[27]+_o[83]+_t[32]+_a[108]](_o[29]),k=t[_i[104]+_t[30]+_o[113]+_i[48]+_f[15]+_q[51]],b=[_c[38]+_a[90]+_o[25]+_n[92]+_b[66]+_i[17]+_s[9],_n[121]+_t[115]+_d[71]+_j[11]+_j[68]+_e[26]+_c[54],_i[53]+_e[68]+_a[121]+_g[21]+_i[53]+_m[29]+_r[36],_k[42]+_g[18]+_b[63]+_k[42]+_f[90]+_t[79]+_h[116]],f=0;f/g,'')[_r[101]+_j[0]+_d[33]+_d[52]]()))}),_0x5ad47e(document)[_f[90]+_t[115]](_t[60]+_h[108]+_t[1]+_j[59]+_p[80],w,function(){_0x285e00[_m[87]+_a[23]+_t[57]+_o[8]+_o[77]+_n[98]][_f[117]+_o[70]+_f[68]+_g[18]](),_0x285e00[_h[116]+_s[32]+_i[75]+_a[59]+_r[49]+_s[32]][_g[91]+_p[92]+_f[63]+_q[14]+_e[30]+_n[47]](e,w),_0x285e00[_s[9]+_t[101]+_r[71]+_l[76]+_h[44]+_c[3]][_o[77]+_o[70]+_d[41]+_p[119]+_e[58]+_r[110]](_t[90]+_b[47]+_r[79]+_j[61]+_p[109]+_a[83]+_p[95]+_m[16]+_h[49]+_i[116]+_h[44]+_t[114]+_r[78]),_0x5ad47e(_i[53]+_o[106]+_n[28]+_q[119]+_h[104]+_m[68]+_b[16]+_l[39]+_c[14]+_d[44]+_e[114]+_e[104]+_j[70])[_f[44]+_p[119]+_o[70]+_e[114]](),_0x5ad47e(_r[3]+_f[75]+_l[40]+_e[95]+_e[105]+_m[117]+_h[68]+_i[2]+_g[79]+_q[111]+_c[53]+_s[30]+_i[52]+_n[40]+_h[111])[_c[36]+_i[46]+_m[117]+_j[25]](),_0x5ad47e(w)[_e[0]+_b[44]+_c[17]](_0x5ad47e(w)[_a[99]+_m[68]+_j[70]]()),_0x5186cb[_l[71]+_r[49]+_r[71]+_m[118]+_k[81]+_d[37]][_p[104]+_d[71]+_p[62]+_a[45]+_e[105]](w)})}),_defineProperty(_ref3,_p[104]+_p[35]+_r[115]+_b[63]+_s[82],function(e){1==_0x5ad47e(_o[29]+_k[38]+_e[68]+_s[54]+_t[115]+_n[117]+_i[49]+_j[86]+_t[49]+_h[45]+_l[12]+_q[82]+_c[3]+_d[44]+_t[11])[_b[44]+_p[4]+_m[16]+_i[52]](_k[114]+_p[107]+_r[101]+_j[65]+_h[49]+_e[104]+_n[32]+_b[8]+_r[79])&&_0x5ad47e(document)[_j[41]+_d[94]](_a[10]+_i[30]+_n[118]+_r[95]+_q[73],e,function(L){var F=window[_f[117]+_j[60]+_f[117]+_o[113]+_m[16]]?L[_k[111]+_s[63]+_j[119]+_m[36]+_c[100]+_h[81]+_r[33]]:L[_f[42]+_q[51]+_s[87]+_r[59]+_n[18]],A=_0x5ad47e(this)[_h[10]+_p[107]+_s[32]]()[_k[100]+_l[6]+_e[30]+_o[106]]();A?_0x5186cb[_l[71]+_f[56]+_a[99]+_s[104]+_b[44]+_i[52]][_e[73]+_n[71]+_g[91]+_h[84]+_b[22]+_n[27]](e,A,A,F,0):_0x5ad47e(_b[66]+_d[52]+_s[73]+_j[61]+_l[27]+_e[68]+_l[27]+_f[101]+_f[89]+_m[102]+_r[33]+_d[5]+_a[14])[_b[35]+_b[27]+_a[82]+_o[104]]()[_r[83]+_t[32]+_g[60]+_a[82]](_g[59]+_j[81]+_l[40]+_h[49]+_d[65]+_o[25]+_n[104]+_c[36]+_e[95]+_s[32]+_t[32]+_m[3]+_t[76])[_g[75]+_g[76]+_k[114]+_s[106]+_n[98]+_q[82]+_i[2]+_q[111]](_p[26]+_s[73]+_e[95]+_c[111]+_i[85]+_r[75]+_g[91]+_m[114]+_r[42]+_c[119]+_s[82]+_t[20]+_f[96]+_e[44]+_h[108]+_s[54]+_r[69]+_g[68]+_s[88]+_e[88]+_n[31]+_g[71]+_k[33]+_b[2])[_e[105]+_p[107]+_h[58]+_f[117]+_n[114]+_g[52]]()[_j[39]+_t[30]+_c[97]+_g[52]]()[_o[5]+_b[35]+_s[73]+_p[76]]()[_c[67]+_o[61]+_i[119]+_o[83]+_m[77]+_p[95]+_b[22]+_s[9]](_d[63]+_c[95]+_f[57]+_h[58]+_s[48]+_i[107])[_p[107]+_j[108]+_t[107]+_g[12]+_p[105]+_g[75]+_n[72]+_k[72]](_t[27]+_t[57]+_i[13]+_d[65]+_t[76]+_b[47]+_t[107]+_e[95]+_j[52]+_g[107]+_h[79])})}),_defineProperty(_ref3,_a[11]+_p[92]+_l[5]+_s[82]+_o[104]+_g[37],function(e){return _0x5ad47e(_f[98]+_e[44]+_d[90]+_f[89]+_g[60]+_m[68]+_s[16]+_h[45]+_l[36]+_n[114]+_g[75]+_r[6]+_e[114])[_p[107]+_t[76]+_f[15]+_d[37]](_c[33]+_r[49]+_c[0]+_f[56]+_a[15]+_j[12]+_f[6]+_g[18]+_n[100])+(_d[30]+_t[10]+_h[81]+_s[112])+encodeURIComponent(_0x285e00[_h[116]+_m[72]+_n[28]+_b[82]+_e[104]+_a[23]][_g[45]+_c[51]+_o[83]+_s[93]+_j[92]+_t[79]](e))}),_defineProperty(_ref3,_e[73]+_n[71]+_t[114]+_o[38]+_l[12]+_f[6],function(e,w,n,r,u){var b=_0x5ad47e(_j[68]+_d[52]+_s[73]+_l[36]+_p[93]+_s[30]+_s[16]+_m[3]+_t[49]+_r[36]+_m[68]+_i[116]+_q[54])[_i[6]+_o[38]+_f[15]+_p[95]](_n[66]+_q[82]+_g[52]+_i[6]+_h[49]+_m[16]+_o[63]+_l[27]+_f[117]);_0x5ad47e[_c[111]+_j[41]+_p[80]+_k[100]](magic[_f[119]+_j[65]+_d[23]+_o[61]]+(_o[37]+_l[71]+_p[55]+_t[30]+_p[98]+_c[38]+_m[20]+_b[35]+_m[20]+_r[50]+_e[104]+_i[19]+_e[104]+_p[98]+_p[28]+_l[31]+_r[95]+_b[40]+_j[55]+_e[114]+_n[72]+_s[93]+_m[52]+_o[61]+_b[8]+_p[26]+_r[65]+_b[11]+_k[30]+_n[71]+_i[116]+_j[34]+_i[107]+_t[96]+_t[84]+_s[70]+_t[46]+_o[106]+_j[34]+_c[33]+_r[104])+b+(_o[1]+_a[61]+_p[55]+_d[70])+encodeURIComponent(w),function(f){if(1!=f[_h[42]+_b[41]+_k[114]+_q[54]])return!1;var N=JSON[_j[86]+_d[23]+_m[46]+_j[34]+_f[49]+_e[89]+_b[27]+_m[108]+_a[46]](f)[_p[95]+_a[118]+_j[98]+_l[29]+_g[75]+_l[43]+_k[103]](_n[35]+_n[98]+_g[4]+_i[2]+_j[11]+_i[14]+_d[63]+_r[34],_c[34]+_h[26]+_a[102]+_o[5]+_e[98]+_j[80]+_d[63]+_i[88])[_o[17]+_s[63]+_i[29]+_e[73]+_g[75]+_g[11]+_r[33]](_r[68]+_f[9]+_p[83]+_c[115]+_e[41]+_g[119]+_p[83],_f[1]+_m[40]+_k[11]+_s[47]+_d[37]+_b[34]+_t[66])[_t[79]+_k[103]+_k[33]+_r[65]+_j[65]+_p[48]+_b[22]](/"[0-9]":{/g,_q[59])[_o[17]+_c[53]+_s[82]+_b[34]+_l[39]+_f[21]+_s[63]](/topic_/g,'');if(f=3==b?JSON[_q[73]+_f[56]+_b[98]+_h[45]+_c[53]](N):f,0_0x2a4eb0));_0x183200++);var _0x11a00f=_0x11a00f[_a[14]+_j[59]+_m[118]+_m[3]+_f[15]+_g[37]+_o[37]+_t[115]+_q[24]](0,_0x11a00f[_r[65]+_l[39]+_i[2]+_f[15]+_e[55]+_d[94]+_p[55]+_o[104]+_m[50]+_m[91]+_k[58]](_q[44]));_0x11a00f+=_m[62]}else var _0x11a00f=_i[88]+_i[105]+_c[34]+_d[94]+_o[77]+_e[44]+_g[18]+_s[96]+_o[72]+_o[62]+_0x285e00[_k[13]+_p[105]+_f[90]+_d[64]+_j[65]+_e[73]][_d[60]+_r[39]+_j[70]+_i[107]+_b[22]+_a[121]](_0x1f7a54)+(_s[96]+_l[96]+_l[51]+_k[72]+_g[10]+_l[40]+_n[116]+_n[35]+_e[102]+_a[80])+_0x12c501+(_p[83]+_g[22]+_i[14]+_f[115]+_e[30]+_j[39]+_o[74]+_g[51]+_h[88]+_j[80])+_0x51f7e6+(_n[35]+_b[89]+_s[96]+_e[58]+_e[4]+_a[33]+_q[99]+_c[25]+_j[80])+_0x273394+(_m[12]+_a[36]+_t[111]);_0x285e00[_k[52]+_m[117]+_i[75]+_f[105]+_r[39]+_a[118]][_i[2]+_j[92]+_d[23]](_0x1709c6,_0x11a00f,7)}),_ref3)),_x5186cb);_0x53f80e(_a[33]+_c[100]+_l[13]+_i[119]+_s[30],_0x5186cb)});(function(e,w,n){n='al';try{n+=_0x5a17('0x14','A@ks'),w=encode_version,('undefined'==typeof w?'undefined':_typeof(w))!==_0x5a17('0x15','tE6l')&&w===_0x5a17('0x16','!(@K')||e[n]('\u5220\u9664'+_0x5a17('0x17','tL%G'))}catch(r){e[n](_0x5a17('0x18','tE6l'))}})(window);encode_version='sojson.v5'; \ No newline at end of file diff --git a/asset/js/player.js b/asset/js/player.js index 0607614..db99575 100644 --- a/asset/js/player.js +++ b/asset/js/player.js @@ -1,4 +1,4 @@ layui.define(function(exports) { - !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("DPlayer",[],t):"object"==typeof exports?exports.DPlayer=t():e.DPlayer=t()}(window,(function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/",a(a.s=57)}([function(e,t,a){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=a(6),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function l(e){return void 0===e}function s(e){return null!==e&&"object"===n(e)}function d(e){return"[object Function]"===o.call(e)}function p(e,t){if(null!=e)if("object"!==n(e)&&(e=[e]),i(e))for(var a=0,r=e.length;a\n ",a&&(t+='\n \n '),t+="\n"}},function(e,t,a){e.exports=a(40)},function(e,t,a){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var a=function(e,t){var a=e[1]||"",n=e[3];if(!n)return a;if(t&&"function"==typeof btoa){var r=(i=n,l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(s," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[a].concat(o).concat([r]).join("\n")}var i,l,s;return[a].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(a,"}"):a})).join("")},t.i=function(e,a,n){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(n)for(var o=0;o1)for(var a=1;a=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){s.headers[e]=n.merge(o)})),e.exports=s}).call(this,a(5))},function(e,t,a){"use strict";var n=a(0),r=a(46),o=a(7),i=a(48),l=a(51),s=a(52),d=a(11);e.exports=function(e){return new Promise((function(t,p){var c=e.data,u=e.headers;n.isFormData(c)&&delete u["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",h=e.auth.password||"";u.Authorization="Basic "+btoa(m+":"+h)}var f=i(e.baseURL,e.url);if(y.open(e.method.toUpperCase(),o(f,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,y.onreadystatechange=function(){if(y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))){var a="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:a,config:e,request:y};r(t,p,n),y=null}},y.onabort=function(){y&&(p(d("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){p(d("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),p(d(t,e,"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var b=a(53),v=(e.withCredentials||s(f))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;v&&(u[e.xsrfHeaderName]=v)}if("setRequestHeader"in y&&n.forEach(u,(function(e,t){void 0===c&&"content-type"===t.toLowerCase()?delete u[t]:y.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),e.responseType)try{y.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){y&&(y.abort(),p(e),y=null)})),void 0===c&&(c=null),y.send(c)}))}},function(e,t,a){"use strict";var n=a(47);e.exports=function(e,t,a,r,o){var i=new Error(e);return n(i,t,a,r,o)}},function(e,t,a){"use strict";var n=a(0);e.exports=function(e,t){t=t||{};var a={},r=["url","method","params","data"],o=["headers","auth","proxy"],i=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(r,(function(e){void 0!==t[e]&&(a[e]=t[e])})),n.forEach(o,(function(r){n.isObject(t[r])?a[r]=n.deepMerge(e[r],t[r]):void 0!==t[r]?a[r]=t[r]:n.isObject(e[r])?a[r]=n.deepMerge(e[r]):void 0!==e[r]&&(a[r]=e[r])})),n.forEach(i,(function(n){void 0!==t[n]?a[n]=t[n]:void 0!==e[n]&&(a[n]=e[n])}));var l=r.concat(o).concat(i),s=Object.keys(t).filter((function(e){return-1===l.indexOf(e)}));return n.forEach(s,(function(n){void 0!==t[n]?a[n]=t[n]:void 0!==e[n]&&(a[n]=e[n])})),a}},function(e,t,a){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,a){"use strict";e.exports=a(56)},function(e,t,a){"use strict";(function(e){var n=a(16);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=setTimeout;function i(e){return Boolean(e&&void 0!==e.length)}function l(){}function s(e){if(!(this instanceof s))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],m(e,this)}function d(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,s._immediateFn((function(){var a=1===e._state?t.onFulfilled:t.onRejected;if(null!==a){var n;try{n=a(e._value)}catch(e){return void c(t.promise,e)}p(t.promise,n)}else(1===e._state?p:c)(t.promise,e._value)}))):e._deferreds.push(t)}function p(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===r(t)||"function"==typeof t)){var a=t.then;if(t instanceof s)return e._state=3,e._value=t,void u(e);if("function"==typeof a)return void m((n=a,o=t,function(){n.apply(o,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){c(e,t)}var n,o}function c(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&s._immediateFn((function(){e._handled||s._unhandledRejectionFn(e._value)}));for(var t=0,a=e._deferreds.length;t\n
    \n '),t+='\n
    \n
    \n
    \n
    \n
    \n \n ',i.danmaku&&(t+='\n ',t+=l(s("Danmaku is loading")),t+="\n "),t+='\n ',t+=d.loading,t+='\n
    \n\n
    \n
    \n
    \n \n
    \n
    \n
    ',t+=l(s("Set danmaku color")),t+='
    \n \n \n \n \n \n \n
    \n
    \n
    ',t+=l(s("Set danmaku type")),t+='
    \n \n \n \n
    \n
    \n \n ',t+=d.send,t+='\n \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n 0:00 /\n 0:00\n \n ',i.live&&(t+='\n ',t+=l(s("Live")),t+="\n "),t+='\n
    \n
    \n ',i.video.quality&&(t+='\n
    \n \n
    \n
    \n ',c(i.video.quality,(function(e,a){t+='\n
    ',t+=l(e.name),t+="
    \n "})),t+="\n
    \n
    \n
    \n "),t+="\n ",i.screenshot&&(t+='\n
    \n
    \n "),t+='\n
    \n \n
    \n ",i.subtitle&&(t+='\n
    \n \n
    \n "),t+='\n
    \n \n
    \n
    \n
    \n ',t+=l(s("Speed")),t+='\n
    ',t+=d.right,t+='
    \n
    \n
    \n ',t+=l(s("Loop")),t+='\n
    \n \n \n
    \n
    \n
    \n ',t+=l(s("Show danmaku")),t+='\n
    \n \n \n
    \n
    \n
    \n ',t+=l(s("Unlimited danmaku")),t+='\n
    \n \n \n
    \n
    \n
    \n ',t+=l(s("Opacity for danmaku")),t+='\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n 0.5\n
    \n
    \n 0.75\n
    \n
    \n ',t+=l(s("Normal")),t+='\n
    \n
    \n 1.25\n
    \n
    \n 1.5\n
    \n
    \n 2\n
    \n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    [x]
    \n
    \n Player version\n \n
    \n
    \n Player FPS\n \n
    \n
    \n Video type\n \n
    \n
    \n Video url\n \n
    \n
    \n Video resolution\n \n
    \n
    \n Video duration\n \n
    \n ',i.danmaku&&(t+='\n
    \n Danamku id\n \n
    \n
    \n Danamku api\n \n
    \n
    \n Danamku amount\n \n
    \n '),t+='\n
    \n
    \n ',c(i.contextmenu,(function(e,a){t+='\n
    \n ',t+=l(s(e.text)),t+="\n
    \n "})),t+='\n
    \n
    \n"}},function(e,t,a){var n=a(35),r=a(36);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},i=(n(r,o),r.locals?r.locals:{});e.exports=i},function(e,t,a){"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(t){if(void 0===e[t]){var a=document.querySelector(t);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}e[t]=a}return e[t]}}(),i=[];function l(e){for(var t=-1,a=0;adiv{display:none}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-box>div.dplayer-setting-origin-panel{display:block}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-box.dplayer-setting-box-open{-webkit-transform:scale(1);transform:scale(1)}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-box.dplayer-setting-box-narrow{width:70px;height:180px;text-align:center}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-box.dplayer-setting-box-speed .dplayer-setting-origin-panel{display:none}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-box.dplayer-setting-box-speed .dplayer-setting-speed-panel{display:block}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-item,.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-speed-item{height:30px;padding:5px 10px;box-sizing:border-box;cursor:pointer;position:relative}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-item:hover,.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-speed-item:hover{background-color:hsla(0,0%,100%,.1)}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku{padding:5px 0}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku .dplayer-label{padding:0 10px;display:inline}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku:hover .dplayer-label{display:none}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku:hover .dplayer-danmaku-bar-wrap{display:inline-block}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku.dplayer-setting-danmaku-active .dplayer-label{display:none}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku.dplayer-setting-danmaku-active .dplayer-danmaku-bar-wrap{display:inline-block}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku .dplayer-danmaku-bar-wrap{padding:0 10px;box-sizing:border-box;display:none;vertical-align:middle;height:100%;width:100%}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku .dplayer-danmaku-bar-wrap .dplayer-danmaku-bar{position:relative;top:8.5px;width:100%;height:3px;background:#fff;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku .dplayer-danmaku-bar-wrap .dplayer-danmaku-bar .dplayer-danmaku-bar-inner{position:absolute;bottom:0;left:0;height:100%;-webkit-transition:all .1s ease;transition:all .1s ease;background:#aaa;will-change:width}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku .dplayer-danmaku-bar-wrap .dplayer-danmaku-bar .dplayer-danmaku-bar-inner .dplayer-thumb{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;background:#aaa}.dplayer-controller .dplayer-icons .dplayer-full{display:inline-block;height:100%;position:relative}.dplayer-controller .dplayer-icons .dplayer-full:hover .dplayer-full-in-icon{display:block}.dplayer-controller .dplayer-icons .dplayer-full .dplayer-full-in-icon{position:absolute;top:-30px;z-index:1;display:none}.dplayer-controller .dplayer-icons .dplayer-quality{position:relative;display:inline-block;height:100%;z-index:2}.dplayer-controller .dplayer-icons .dplayer-quality:hover .dplayer-quality-list{display:block}.dplayer-controller .dplayer-icons .dplayer-quality:hover .dplayer-quality-mask{display:block}.dplayer-controller .dplayer-icons .dplayer-quality .dplayer-quality-mask{display:none;position:absolute;bottom:38px;left:-18px;width:80px;padding-bottom:12px}.dplayer-controller .dplayer-icons .dplayer-quality .dplayer-quality-list{display:none;font-size:12px;width:80px;border-radius:2px;background:rgba(28,28,28,.9);padding:5px 0;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;overflow:hidden;color:#fff;text-align:center}.dplayer-controller .dplayer-icons .dplayer-quality .dplayer-quality-item{height:25px;box-sizing:border-box;cursor:pointer;line-height:25px}.dplayer-controller .dplayer-icons .dplayer-quality .dplayer-quality-item:hover{background-color:hsla(0,0%,100%,.1)}.dplayer-controller .dplayer-icons .dplayer-comment{display:inline-block;height:100%}.dplayer-controller .dplayer-icons .dplayer-label{color:#eee;font-size:13px;display:inline-block;vertical-align:middle;white-space:nowrap}.dplayer-controller .dplayer-icons .dplayer-toggle{width:32px;height:20px;text-align:center;font-size:0;vertical-align:middle;position:absolute;top:5px;right:10px}.dplayer-controller .dplayer-icons .dplayer-toggle input{max-height:0;max-width:0;display:none}.dplayer-controller .dplayer-icons .dplayer-toggle input+label{display:inline-block;position:relative;box-shadow:inset 0 0 0 0 #dfdfdf;border:1px solid #dfdfdf;height:20px;width:32px;border-radius:10px;box-sizing:border-box;cursor:pointer;-webkit-transition:.2s ease-in-out;transition:.2s ease-in-out}.dplayer-controller .dplayer-icons .dplayer-toggle input+label:before{content:"";position:absolute;display:block;height:18px;width:18px;top:0;left:0;border-radius:15px;-webkit-transition:.2s ease-in-out;transition:.2s ease-in-out}.dplayer-controller .dplayer-icons .dplayer-toggle input+label:after{content:"";position:absolute;display:block;left:0;top:0;border-radius:15px;background:#fff;-webkit-transition:.2s ease-in-out;transition:.2s ease-in-out;box-shadow:0 1px 3px rgba(0,0,0,.4);height:18px;width:18px}.dplayer-controller .dplayer-icons .dplayer-toggle input:checked+label{border-color:hsla(0,0%,100%,.5)}.dplayer-controller .dplayer-icons .dplayer-toggle input:checked+label:before{width:30px;background:hsla(0,0%,100%,.5)}.dplayer-controller .dplayer-icons .dplayer-toggle input:checked+label:after{left:12px}.dplayer-mobile-play{display:none;width:50px;height:50px;border:none;background-color:transparent;outline:none;cursor:pointer;box-sizing:border-box;bottom:0;opacity:.8;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.dplayer-danmaku{position:absolute;left:0;right:0;top:0;bottom:0;font-size:22px;color:#fff}.dplayer-danmaku .dplayer-danmaku-item{display:inline-block;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;white-space:nowrap;text-shadow:.5px .5px .5px rgba(0,0,0,.5)}.dplayer-danmaku .dplayer-danmaku-item--demo{position:absolute;visibility:hidden}.dplayer-danmaku .dplayer-danmaku-right{position:absolute;right:0;-webkit-transform:translateX(100%);transform:translateX(100%)}.dplayer-danmaku .dplayer-danmaku-right.dplayer-danmaku-move{will-change:transform;-webkit-animation:danmaku 5s linear;animation:danmaku 5s linear;-webkit-animation-play-state:paused;animation-play-state:paused}@-webkit-keyframes danmaku{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes danmaku{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}}.dplayer-danmaku .dplayer-danmaku-bottom,.dplayer-danmaku .dplayer-danmaku-top{position:absolute;width:100%;text-align:center;visibility:hidden}.dplayer-danmaku .dplayer-danmaku-bottom.dplayer-danmaku-move,.dplayer-danmaku .dplayer-danmaku-top.dplayer-danmaku-move{will-change:visibility;-webkit-animation:danmaku-center 4s linear;animation:danmaku-center 4s linear;-webkit-animation-play-state:paused;animation-play-state:paused}@-webkit-keyframes danmaku-center{0%{visibility:visible}to{visibility:visible}}@keyframes danmaku-center{0%{visibility:visible}to{visibility:visible}}.dplayer-logo{pointer-events:none;position:absolute;left:20px;top:20px;max-width:50px;max-height:50px}.dplayer-logo img{max-width:100%;max-height:100%;background:none}.dplayer-menu{position:absolute;width:170px;border-radius:2px;background:rgba(28,28,28,.85);padding:5px 0;overflow:hidden;z-index:3;display:none}.dplayer-menu.dplayer-menu-show{display:block}.dplayer-menu .dplayer-menu-item{height:30px;box-sizing:border-box;cursor:pointer}.dplayer-menu .dplayer-menu-item:hover{background-color:hsla(0,0%,100%,.1)}.dplayer-menu .dplayer-menu-item a{padding:0 10px;line-height:30px;color:#eee;font-size:13px;display:inline-block;vertical-align:middle;width:100%;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dplayer-menu .dplayer-menu-item a:hover{text-decoration:none}.dplayer-notice{opacity:0;position:absolute;bottom:60px;left:20px;font-size:14px;border-radius:2px;background:rgba(28,28,28,.9);padding:7px 20px;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;overflow:hidden;color:#fff;pointer-events:none}.dplayer-subtitle{position:absolute;bottom:40px;width:90%;left:5%;text-align:center;color:#fff;text-shadow:.5px .5px .5px rgba(0,0,0,.5);font-size:20px}.dplayer-subtitle.dplayer-subtitle-hide{display:none}.dplayer-mask{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;display:none}.dplayer-mask.dplayer-mask-show{display:block}.dplayer-video-wrap{position:relative;background:#000;font-size:0;width:100%;height:100%}.dplayer-video-wrap .dplayer-video{width:100%;height:100%;display:none}.dplayer-video-wrap .dplayer-video-current{display:block}.dplayer-video-wrap .dplayer-video-prepare{display:none}.dplayer-info-panel{position:absolute;top:10px;left:10px;width:400px;background:rgba(28,28,28,.8);padding:10px;color:#fff;font-size:12px;border-radius:2px}.dplayer-info-panel-hide{display:none}.dplayer-info-panel .dplayer-info-panel-close{cursor:pointer;position:absolute;right:10px;top:10px}.dplayer-info-panel .dplayer-info-panel-item>span{display:inline-block;vertical-align:middle;line-height:15px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dplayer-info-panel .dplayer-info-panel-item-title{width:100px;text-align:right;margin-right:10px}.dplayer-info-panel .dplayer-info-panel-item-data{width:260px}',""]),e.exports=t},function(e,t,a){(t=a(3)(!1)).push([e.i,':root{--balloon-color:rgba(16,16,16,0.95);--balloon-font-size:12px;--balloon-move:4px}button[aria-label][data-balloon-pos]{overflow:visible}[aria-label][data-balloon-pos]{position:relative;cursor:pointer}[aria-label][data-balloon-pos]:after{opacity:0;pointer-events:none;-webkit-transition:all .18s ease-out .18s;transition:all .18s ease-out .18s;text-indent:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;font-weight:400;font-style:normal;text-shadow:none;font-size:var(--balloon-font-size);background:var(--balloon-color);border-radius:2px;color:#fff;content:attr(aria-label);padding:.5em 1em;position:absolute;white-space:nowrap;z-index:10}[aria-label][data-balloon-pos]:before{width:0;height:0;border:5px solid transparent;border-top:5px solid var(--balloon-color);opacity:0;pointer-events:none;-webkit-transition:all .18s ease-out .18s;transition:all .18s ease-out .18s;content:"";position:absolute;z-index:10}[aria-label][data-balloon-pos]:hover:after,[aria-label][data-balloon-pos]:hover:before,[aria-label][data-balloon-pos]:not([data-balloon-nofocus]):focus:after,[aria-label][data-balloon-pos]:not([data-balloon-nofocus]):focus:before,[aria-label][data-balloon-pos][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-visible]:before{opacity:1;pointer-events:none}[aria-label][data-balloon-pos].font-awesome:after{font-family:FontAwesome,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}[aria-label][data-balloon-pos][data-balloon-break]:after{white-space:pre}[aria-label][data-balloon-pos][data-balloon-break][data-balloon-length]:after{white-space:pre-line;word-break:break-word}[aria-label][data-balloon-pos][data-balloon-blunt]:after,[aria-label][data-balloon-pos][data-balloon-blunt]:before{-webkit-transition:none;transition:none}[aria-label][data-balloon-pos][data-balloon-pos=up]:after{bottom:100%;left:50%;margin-bottom:10px;-webkit-transform:translate(-50%,var(--balloon-move));transform:translate(-50%,var(--balloon-move));-webkit-transform-origin:top;transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up]:before{bottom:100%;left:50%;-webkit-transform:translate(-50%,var(--balloon-move));transform:translate(-50%,var(--balloon-move));-webkit-transform-origin:top;transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=up][data-balloon-visible]:after{-webkit-transform:translate(-50%);transform:translate(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=up]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=up][data-balloon-visible]:before{-webkit-transform:translate(-50%);transform:translate(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=up-left]:after{bottom:100%;left:0;margin-bottom:10px;-webkit-transform:translateY(var(--balloon-move));transform:translateY(var(--balloon-move));-webkit-transform-origin:top;transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up-left]:before{bottom:100%;left:5px;-webkit-transform:translateY(var(--balloon-move));transform:translateY(var(--balloon-move));-webkit-transform-origin:top;transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up-left]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=up-left][data-balloon-visible]:after{-webkit-transform:translate(0);transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=up-left]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=up-left][data-balloon-visible]:before{-webkit-transform:translate(0);transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=up-right]:after{bottom:100%;right:0;margin-bottom:10px;-webkit-transform:translateY(var(--balloon-move));transform:translateY(var(--balloon-move));-webkit-transform-origin:top;transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up-right]:before{bottom:100%;right:5px;-webkit-transform:translateY(var(--balloon-move));transform:translateY(var(--balloon-move));-webkit-transform-origin:top;transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up-right]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=up-right][data-balloon-visible]:after{-webkit-transform:translate(0);transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=up-right]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=up-right][data-balloon-visible]:before{-webkit-transform:translate(0);transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=down]:after{left:50%;margin-top:10px;top:100%;-webkit-transform:translate(-50%,calc(var(--balloon-move)*-1));transform:translate(-50%,calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down]:before{width:0;height:0;border:5px solid transparent;border-bottom:5px solid var(--balloon-color);left:50%;top:100%;-webkit-transform:translate(-50%,calc(var(--balloon-move)*-1));transform:translate(-50%,calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=down][data-balloon-visible]:after{-webkit-transform:translate(-50%);transform:translate(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=down]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=down][data-balloon-visible]:before{-webkit-transform:translate(-50%);transform:translate(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=down-left]:after{left:0;margin-top:10px;top:100%;-webkit-transform:translateY(calc(var(--balloon-move)*-1));transform:translateY(calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down-left]:before{width:0;height:0;border:5px solid transparent;border-bottom:5px solid var(--balloon-color);left:5px;top:100%;-webkit-transform:translateY(calc(var(--balloon-move)*-1));transform:translateY(calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down-left]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=down-left][data-balloon-visible]:after{-webkit-transform:translate(0);transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=down-left]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=down-left][data-balloon-visible]:before{-webkit-transform:translate(0);transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=down-right]:after{right:0;margin-top:10px;top:100%;-webkit-transform:translateY(calc(var(--balloon-move)*-1));transform:translateY(calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down-right]:before{width:0;height:0;border:5px solid transparent;border-bottom:5px solid var(--balloon-color);right:5px;top:100%;-webkit-transform:translateY(calc(var(--balloon-move)*-1));transform:translateY(calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down-right]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=down-right][data-balloon-visible]:after{-webkit-transform:translate(0);transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=down-right]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=down-right][data-balloon-visible]:before{-webkit-transform:translate(0);transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=left]:after{margin-right:10px;right:100%;top:50%;-webkit-transform:translate(var(--balloon-move),-50%);transform:translate(var(--balloon-move),-50%)}[aria-label][data-balloon-pos][data-balloon-pos=left]:before{width:0;height:0;border:5px solid transparent;border-left:5px solid var(--balloon-color);right:100%;top:50%;-webkit-transform:translate(var(--balloon-move),-50%);transform:translate(var(--balloon-move),-50%)}[aria-label][data-balloon-pos][data-balloon-pos=left]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=left][data-balloon-visible]:after{-webkit-transform:translateY(-50%);transform:translateY(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=left]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=left][data-balloon-visible]:before{-webkit-transform:translateY(-50%);transform:translateY(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=right]:after{left:100%;margin-left:10px;top:50%;-webkit-transform:translate(calc(var(--balloon-move)*-1),-50%);transform:translate(calc(var(--balloon-move)*-1),-50%)}[aria-label][data-balloon-pos][data-balloon-pos=right]:before{width:0;height:0;border:5px solid transparent;border-right:5px solid var(--balloon-color);left:100%;top:50%;-webkit-transform:translate(calc(var(--balloon-move)*-1),-50%);transform:translate(calc(var(--balloon-move)*-1),-50%)}[aria-label][data-balloon-pos][data-balloon-pos=right]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=right][data-balloon-visible]:after{-webkit-transform:translateY(-50%);transform:translateY(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=right]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=right][data-balloon-visible]:before{-webkit-transform:translateY(-50%);transform:translateY(-50%)}[aria-label][data-balloon-pos][data-balloon-length=small]:after{white-space:normal;width:80px}[aria-label][data-balloon-pos][data-balloon-length=medium]:after{white-space:normal;width:150px}[aria-label][data-balloon-pos][data-balloon-length=large]:after{white-space:normal;width:260px}[aria-label][data-balloon-pos][data-balloon-length=xlarge]:after{white-space:normal;width:380px}@media screen and (max-width:768px){[aria-label][data-balloon-pos][data-balloon-length=xlarge]:after{white-space:normal;width:90vw}}[aria-label][data-balloon-pos][data-balloon-length=fit]:after{white-space:normal;width:100%}',""]),e.exports=t},function(e,t,a){var n=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new r(n.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(n.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},a(39),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,a){(function(e,t){!function(e,a){"use strict";if(!e.setImmediate){var n,r,o,i,l,s=1,d={},p=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){m(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,a=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=a,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){m(e.data)},n=function(e){o.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,n=function(e){var t=c.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(m,0,e)}:(i="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&m(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),n=function(t){e.postMessage(i+t,"*")}),u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),a=0;a=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([a]):i[t]?i[t]+", "+a:a}})),i):i}},function(e,t,a){"use strict";var n=a(0);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");function r(e){var n=e;return t&&(a.setAttribute("href",n),n=a.href),a.setAttribute("href",n),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname}}return e=r(window.location.href),function(t){var a=n.isString(t)?r(t):t;return a.protocol===e.protocol&&a.host===e.host}}():function(){return!0}},function(e,t,a){"use strict";var n=a(0);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,a,r,o,i){var l=[];l.push(e+"="+encodeURIComponent(t)),n.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),n.isString(r)&&l.push("path="+r),n.isString(o)&&l.push("domain="+o),!0===i&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,a){"use strict";var n=a(13);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var a=this;e((function(e){a.reason||(a.reason=new n(e),t(a.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},function(e,t,a){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,a){"use strict";(function(t){var a="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},n=Object.create(a),r=/["&'<>]/;n.$escape=function(e){return function(e){var t=""+e,a=r.exec(t);if(!a)return e;var n="",o=void 0,i=void 0,l=void 0;for(o=a.index,i=0;o0?[t,a,n]:[a,n]).map((function(e){return e<10?"0"+e:""+e})).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,a=e.offsetParent,n=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==a&&a!==e;)t+=a.offsetLeft,a=a.offsetParent;else for(;null!==a;)t+=a.offsetLeft,a=a.offsetParent;return t-n},getBoundingClientRectViewLeft:function(e){var t=window.scrollY||window.pageYOffset||document.body.scrollTop+(document.documentElement&&document.documentElement.scrollTop||0);if(e.getBoundingClientRect){if("number"!=typeof this.getBoundingClientRectViewLeft.offset){var a=document.createElement("div");a.style.cssText="position:absolute;top:0;left:0;",document.body.appendChild(a),this.getBoundingClientRectViewLeft.offset=-a.getBoundingClientRect().top-t,document.body.removeChild(a),a=null}var n=e.getBoundingClientRect(),r=this.getBoundingClientRectViewLeft.offset;return n.left+r}return this.getElementViewLeft(e)},getScrollPosition:function(){return{left:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},setScrollPosition:function(e){var t=e.left,a=void 0===t?0:t,n=e.top,r=void 0===n?0:n;this.isFirefox?(document.documentElement.scrollLeft=a,document.documentElement.scrollTop=r):window.scrollTo(a,r)},isMobile:r,isFirefox:/firefox/i.test(window.navigator.userAgent),isChrome:/chrome/i.test(window.navigator.userAgent),storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:r?"touchstart":"mousedown",dragMove:r?"touchmove":"mousemove",dragEnd:r?"touchend":"mouseup"},color2Number:function(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length&&(e="".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2])),parseInt(e,16)+0&16777215},number2Color:function(e){return"#"+("00000"+e.toString(16)).slice(-6)},number2Type:function(e){switch(e){case 0:return"right";case 1:return"top";case 2:return"bottom";default:return"right"}}},i=a(2),l=a.n(i),s={send:function(e){l.a.post(e.url,e.data).then((function(t){var a=t.data;a&&0===a.code?e.success&&e.success(a):e.error&&e.error(a&&a.msg)})).catch((function(t){console.error(t),e.error&&e.error()}))},read:function(e){l.a.get(e.url).then((function(t){var a=t.data;a&&0===a.code?e.success&&e.success(a.data.map((function(e){return{time:e[0],type:e[1],color:e[2],author:e[3],text:e[4]}}))):e.error&&e.error(a&&a.msg)})).catch((function(t){console.error(t),e.error&&e.error()}))}};function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=function(e){var t={container:e.element||document.getElementsByClassName("dplayer")[0],live:!1,autoplay:!1,theme:"#b7daff",loop:!1,lang:(navigator.language||navigator.browserLanguage).toLowerCase(),screenshot:!1,hotkey:!0,preload:"metadata",volume:.7,apiBackend:s,video:{},contextmenu:[],mutex:!0,pluginOptions:{hls:{},flvjs:{},dash:{},webtorrent:{}}};for(var a in t)t.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=t[a]);return e.video&&!e.video.type&&(e.video.type="auto"),"object"===d(e.danmaku)&&e.danmaku&&!e.danmaku.user&&(e.danmaku.user="DIYgod"),e.subtitle&&(!e.subtitle.type&&(e.subtitle.type="webvtt"),!e.subtitle.fontSize&&(e.subtitle.fontSize="20px"),!e.subtitle.bottom&&(e.subtitle.bottom="40px"),!e.subtitle.color&&(e.subtitle.color="#fff")),e.video.quality&&(e.video.url=e.video.quality[e.video.defaultQuality].url),e.lang&&(e.lang=e.lang.toLowerCase()),e.contextmenu=e.contextmenu.concat([{text:"Video info",click:function(e){e.infoPanel.triggle()}},{text:"About author",link:"https://diygod.me"},{text:"DPlayer v".concat("1.25.1"),link:"https://github.com/MoePlayer/DPlayer"}]),e};var c={"zh-cn":{"Danmaku is loading":"弹幕加载中",Top:"顶部",Bottom:"底部",Rolling:"滚动","Input danmaku, hit Enter":"输入弹幕,回车发送","About author":"关于作者","DPlayer feedback":"播放器意见反馈","About DPlayer":"关于 DPlayer 播放器",Loop:"洗脑循环",Speed:"速度","Opacity for danmaku":"弹幕透明度",Normal:"正常","Please input danmaku content!":"要输入弹幕内容啊喂!","Set danmaku color":"设置弹幕颜色","Set danmaku type":"设置弹幕类型","Show danmaku":"显示弹幕","Video load failed":"视频加载失败","Danmaku load failed":"弹幕加载失败","Danmaku send failed":"弹幕发送失败","Switching to":"正在切换至","Switched to":"已经切换至",quality:"画质",FF:"快进",REW:"快退","Unlimited danmaku":"海量弹幕","Send danmaku":"发送弹幕",Setting:"设置","Full screen":"全屏","Web full screen":"页面全屏",Send:"发送",Screenshot:"截图",s:"秒","Show subtitle":"显示字幕","Hide subtitle":"隐藏字幕",Volume:"音量",Live:"直播","Video info":"视频统计信息"},"zh-tw":{"Danmaku is loading":"彈幕載入中",Top:"頂部",Bottom:"底部",Rolling:"滾動","Input danmaku, hit Enter":"輸入彈幕,Enter 發送","About author":"關於作者","DPlayer feedback":"播放器意見回饋","About DPlayer":"關於 DPlayer 播放器",Loop:"循環播放",Speed:"速度","Opacity for danmaku":"彈幕透明度",Normal:"正常","Please input danmaku content!":"請輸入彈幕內容啊!","Set danmaku color":"設定彈幕顏色","Set danmaku type":"設定彈幕類型","Show danmaku":"顯示彈幕","Video load failed":"影片載入失敗","Danmaku load failed":"彈幕載入失敗","Danmaku send failed":"彈幕發送失敗","Switching to":"正在切換至","Switched to":"已經切換至",quality:"畫質",FF:"快進",REW:"快退","Unlimited danmaku":"巨量彈幕","Send danmaku":"發送彈幕",Setting:"設定","Full screen":"全螢幕","Web full screen":"頁面全螢幕",Send:"發送",Screenshot:"截圖",s:"秒","Show subtitle":"顯示字幕","Hide subtitle":"隱藏字幕",Volume:"音量",Live:"直播","Video info":"影片統計訊息"}},u=function(e){var t=this;this.lang=e,this.tran=function(e){return c[t.lang]&&c[t.lang][e]?c[t.lang][e]:e}},y=a(17),m=a.n(y),h=a(18),f=a.n(h),b=a(19),v=a.n(b),g=a(20),w=a.n(g),k=a(21),x=a.n(k),S=a(22),T=a.n(S),L=a(23),E=a.n(L),Y=a(24),q=a.n(Y),B=a(25),M=a.n(B),z=a(26),C=a.n(z),O=a(27),j=a.n(O),P=a(28),A=a.n(P),F=a(29),_=a.n(F),D=a(30),R=a.n(D),I=a(31),W=a.n(I),H=a(32),N=a.n(H),U={play:m.a,pause:f.a,volumeUp:v.a,volumeDown:w.a,volumeOff:x.a,full:T.a,fullWeb:E.a,setting:q.a,right:M.a,comment:C.a,commentOff:j.a,send:A.a,pallette:_.a,camera:R.a,subtitle:W.a,loading:N.a},V=a(33),X=a.n(V);function Q(e,t){for(var a=0;aparseFloat(t.time);)a.push(t),t=this.dan[++this.danIndex];this.draw(a)}window.requestAnimationFrame((function(){e.frame()}))}},{key:"opacity",value:function(e){if(void 0!==e){for(var t=this.container.getElementsByClassName("dplayer-danmaku-item"),a=0;a').concat(e[r].text,""):i.innerHTML=e[r].text,i.style.opacity=t._opacity,i.style.color=o.number2Color(e[r].color),i.addEventListener("animationend",(function(){t.container.removeChild(i)}));var l=t._measure(e[r].text),s=void 0;switch(e[r].type){case"right":(s=d(i,e[r].type,l))>=0&&(i.style.width=l+1+"px",i.style.top=a*s+"px",i.style.transform="translateX(-".concat(n,"px)"));break;case"top":(s=d(i,e[r].type))>=0&&(i.style.top=a*s+"px");break;case"bottom":(s=d(i,e[r].type))>=0&&(i.style.bottom=a*s+"px");break;default:console.error("Can't handled danmaku type: ".concat(e[r].type))}s>=0&&(i.classList.add("dplayer-danmaku-move"),p.appendChild(i))},u=0;u=this.options.time()){this.danIndex=e;break}this.danIndex=this.dan.length}}},{key:"clear",value:function(){this.danTunnel={right:{},top:{},bottom:{}},this.danIndex=0,this.options.container.innerHTML="",this.events&&this.events.trigger("danmaku_clear")}},{key:"htmlEncode",value:function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}},{key:"resize",value:function(){for(var e=this.container.offsetWidth,t=this.container.getElementsByClassName("dplayer-danmaku-item"),a=0;a0&&void 0!==arguments[0]?arguments[0]:"browser";switch(e){case"browser":return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;case"web":return this.player.container.classList.contains("dplayer-fulled")}}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser",t="browser"===e?"web":"browser",a=this.isFullScreen(t);switch(a||(this.lastScrollPosition=o.getScrollPosition()),e){case"browser":this.player.container.requestFullscreen?this.player.container.requestFullscreen():this.player.container.mozRequestFullScreen?this.player.container.mozRequestFullScreen():this.player.container.webkitRequestFullscreen?this.player.container.webkitRequestFullscreen():this.player.video.webkitEnterFullscreen?this.player.video.webkitEnterFullscreen():this.player.video.webkitEnterFullScreen?this.player.video.webkitEnterFullScreen():this.player.container.msRequestFullscreen&&this.player.container.msRequestFullscreen();break;case"web":this.player.container.classList.add("dplayer-fulled"),document.body.classList.add("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen")}a&&this.cancel(t)}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser";switch(e){case"browser":document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitCancelFullscreen?document.webkitCancelFullscreen():document.msCancelFullScreen?document.msCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen();break;case"web":this.player.container.classList.remove("dplayer-fulled"),document.body.classList.remove("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen_cancel")}}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser";this.isFullScreen(e)?this.cancel(e):this.request(e)}}])&&te(t.prototype,a),n&&te(t,n),e}();function ne(e,t){for(var a=0;a".concat(e,"

    ")})).join("");e.container.innerHTML=r}e.events.trigger("subtitle_change")}}}},{key:"show",value:function(){this.container.classList.remove("dplayer-subtitle-hide"),this.events.trigger("subtitle_show")}},{key:"hide",value:function(){this.container.classList.add("dplayer-subtitle-hide"),this.events.trigger("subtitle_hide")}},{key:"toggle",value:function(){this.container.classList.contains("dplayer-subtitle-hide")?this.show():this.hide()}}])&&oe(t.prototype,a),n&&oe(t,n),e}();function le(e,t){for(var a=0;at&&!e.player.video.paused&&(e.player.container.classList.remove("dplayer-loading"),n=!1),t=a)}),100)}},{key:"initfpsChecker",value:function(){var e=this;window.requestAnimationFrame((function(){if(e.enablefpsChecker)if(e.initfpsChecker(),e.fpsStart){e.fpsIndex++;var t=new Date;t-e.fpsStart>1e3&&(e.player.infoPanel.fps(e.fpsIndex/(t-e.fpsStart)*1e3),e.fpsStart=new Date,e.fpsIndex=0)}else e.fpsStart=new Date,e.fpsIndex=0;else e.fpsStart=0,e.fpsIndex=0}))}},{key:"initinfoChecker",value:function(){var e=this;this.infoChecker=setInterval((function(){e.enableinfoChecker&&e.player.infoPanel.update()}),1e3)}},{key:"enable",value:function(e){this["enable".concat(e,"Checker")]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable".concat(e,"Checker")]=!1}},{key:"destroy",value:function(){var e=this;this.types.map((function(t){return e["enable".concat(t,"Checker")]=!1,e["".concat(t,"Checker")]&&clearInterval(e["".concat(t,"Checker")]),t}))}}])&&de(t.prototype,a),n&&de(t,n),e}();function ce(e,t){for(var a=0;a'+e.player.options.highlight[a].text+"",e.player.template.playedBarWrap.insertBefore(n,e.player.template.playedBarTime)}}}))}},{key:"initThumbnails",value:function(){var e=this;this.player.options.video.thumbnails&&(this.thumbnails=new me({container:this.player.template.barPreview,barWidth:this.player.template.barWrap.offsetWidth,url:this.player.options.video.thumbnails,events:this.player.events}),this.player.on("loadedmetadata",(function(){e.thumbnails.resize(160,e.player.video.videoHeight/e.player.video.videoWidth*160,e.player.template.barWrap.offsetWidth)})))}},{key:"initPlayedBar",value:function(){var e=this,t=function(t){var a=((t.clientX||t.changedTouches[0].clientX)-o.getBoundingClientRectViewLeft(e.player.template.playedBarWrap))/e.player.template.playedBarWrap.clientWidth;a=Math.max(a,0),a=Math.min(a,1),e.player.bar.set("played",a,"width"),e.player.template.ptime.innerHTML=o.secondToTime(a*e.player.video.duration)},a=function a(n){document.removeEventListener(o.nameMap.dragEnd,a),document.removeEventListener(o.nameMap.dragMove,t);var r=((n.clientX||n.changedTouches[0].clientX)-o.getBoundingClientRectViewLeft(e.player.template.playedBarWrap))/e.player.template.playedBarWrap.clientWidth;r=Math.max(r,0),r=Math.min(r,1),e.player.bar.set("played",r,"width"),e.player.seek(e.player.bar.get("played")*e.player.video.duration),e.player.timer.enable("progress")};this.player.template.playedBarWrap.addEventListener(o.nameMap.dragStart,(function(){e.player.timer.disable("progress"),document.addEventListener(o.nameMap.dragMove,t),document.addEventListener(o.nameMap.dragEnd,a)})),this.player.template.playedBarWrap.addEventListener(o.nameMap.dragMove,(function(t){if(e.player.video.duration){var a=e.player.template.playedBarWrap.getBoundingClientRect().left,n=(t.clientX||t.changedTouches[0].clientX)-a;if(n<0||n>e.player.template.playedBarWrap.offsetWidth)return;var r=e.player.video.duration*(n/e.player.template.playedBarWrap.offsetWidth);o.isMobile&&e.thumbnails&&e.thumbnails.show(),e.thumbnails&&e.thumbnails.move(n),e.player.template.playedBarTime.style.left="".concat(n-(r>=3600?25:20),"px"),e.player.template.playedBarTime.innerText=o.secondToTime(r),e.player.template.playedBarTime.classList.remove("hidden")}})),this.player.template.playedBarWrap.addEventListener(o.nameMap.dragEnd,(function(){o.isMobile&&e.thumbnails&&e.thumbnails.hide()})),o.isMobile||(this.player.template.playedBarWrap.addEventListener("mouseenter",(function(){e.player.video.duration&&(e.thumbnails&&e.thumbnails.show(),e.player.template.playedBarTime.classList.remove("hidden"))})),this.player.template.playedBarWrap.addEventListener("mouseleave",(function(){e.player.video.duration&&(e.thumbnails&&e.thumbnails.hide(),e.player.template.playedBarTime.classList.add("hidden"))})))}},{key:"initFullButton",value:function(){var e=this;this.player.template.browserFullButton.addEventListener("click",(function(){e.player.fullScreen.toggle("browser")})),this.player.template.webFullButton.addEventListener("click",(function(){e.player.fullScreen.toggle("web")}))}},{key:"initVolumeButton",value:function(){var e=this,t=function(t){var a=t||window.event,n=((a.clientX||a.changedTouches[0].clientX)-o.getBoundingClientRectViewLeft(e.player.template.volumeBarWrap)-5.5)/35;e.player.volume(n)},a=function a(){document.removeEventListener(o.nameMap.dragEnd,a),document.removeEventListener(o.nameMap.dragMove,t),e.player.template.volumeButton.classList.remove("dplayer-volume-active")};this.player.template.volumeBarWrapWrap.addEventListener("click",(function(t){var a=t||window.event,n=((a.clientX||a.changedTouches[0].clientX)-o.getBoundingClientRectViewLeft(e.player.template.volumeBarWrap)-5.5)/35;e.player.volume(n)})),this.player.template.volumeBarWrapWrap.addEventListener(o.nameMap.dragStart,(function(){document.addEventListener(o.nameMap.dragMove,t),document.addEventListener(o.nameMap.dragEnd,a),e.player.template.volumeButton.classList.add("dplayer-volume-active")})),this.player.template.volumeButtonIcon.addEventListener("click",(function(){e.player.video.muted?(e.player.video.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set("volume",e.player.volume(),"width")):(e.player.video.muted=!0,e.player.template.volumeIcon.innerHTML=U.volumeOff,e.player.bar.set("volume",0,"width"))}))}},{key:"initQualityButton",value:function(){var e=this;this.player.options.video.quality&&this.player.template.qualityList.addEventListener("click",(function(t){t.target.classList.contains("dplayer-quality-item")&&e.player.switchQuality(t.target.dataset.index)}))}},{key:"initScreenshotButton",value:function(){var e=this;this.player.options.screenshot&&this.player.template.camareButton.addEventListener("click",(function(){var t,a=document.createElement("canvas");a.width=e.player.video.videoWidth,a.height=e.player.video.videoHeight,a.getContext("2d").drawImage(e.player.video,0,0,a.width,a.height),a.toBlob((function(e){t=URL.createObjectURL(e);var a=document.createElement("a");a.href=t,a.download="DPlayer.png",a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(t)})),e.player.events.trigger("screenshot",t)}))}},{key:"initSubtitleButton",value:function(){var e=this;this.player.options.subtitle&&(this.player.events.on("subtitle_show",(function(){e.player.template.subtitleButton.dataset.balloon=e.player.tran("Hide subtitle"),e.player.template.subtitleButtonInner.style.opacity="",e.player.user.set("subtitle",1)})),this.player.events.on("subtitle_hide",(function(){e.player.template.subtitleButton.dataset.balloon=e.player.tran("Show subtitle"),e.player.template.subtitleButtonInner.style.opacity="0.4",e.player.user.set("subtitle",0)})),this.player.template.subtitleButton.addEventListener("click",(function(){e.player.subtitle.toggle()})))}},{key:"setAutoHide",value:function(){var e=this;this.show(),clearTimeout(this.autoHideTimer),this.autoHideTimer=setTimeout((function(){!e.player.video.played.length||e.player.paused||e.disableAutoHide||e.hide()}),3e3)}},{key:"show",value:function(){this.player.container.classList.remove("dplayer-hide-controller")}},{key:"hide",value:function(){this.player.container.classList.add("dplayer-hide-controller"),this.player.setting.hide(),this.player.comment&&this.player.comment.hide()}},{key:"isShow",value:function(){return!this.player.container.classList.contains("dplayer-hide-controller")}},{key:"toggle",value:function(){this.isShow()?this.hide():this.show()}},{key:"destroy",value:function(){clearTimeout(this.autoHideTimer)}}])&&he(t.prototype,a),n&&he(t,n),e}();function be(e,t){for(var a=0;a=a.width?(this.player.template.menu.style.right=a.width-e+"px",this.player.template.menu.style.left="initial"):(this.player.template.menu.style.left=e+"px",this.player.template.menu.style.right="initial"),t+this.player.template.menu.offsetHeight>=a.height?(this.player.template.menu.style.bottom=a.height-t+"px",this.player.template.menu.style.top="initial"):(this.player.template.menu.style.top=t+"px",this.player.template.menu.style.bottom="initial"),this.player.template.mask.classList.add("dplayer-mask-show"),this.shown=!0,this.player.events.trigger("contextmenu_show")}},{key:"hide",value:function(){this.player.template.mask.classList.remove("dplayer-mask-show"),this.player.template.menu.classList.remove("dplayer-menu-show"),this.shown=!1,this.player.events.trigger("contextmenu_hide")}}])&&xe(t.prototype,a),n&&xe(t,n),e}();function Te(e,t){for(var a=0;ae&&this.notice("".concat(this.tran("REW")," ").concat((this.video.currentTime-e).toFixed(0)," ").concat(this.tran("s"))),this.video.currentTime=e,this.danmaku&&this.danmaku.seek(),this.bar.set("played",e/this.video.duration,"width"),this.template.ptime.innerHTML=o.secondToTime(e)}},{key:"play",value:function(e){var t=this;if(this.paused=!1,this.video.paused&&!o.isMobile&&this.bezel.switch(U.play),this.template.playButton.innerHTML=U.pause,this.template.mobilePlayButton.innerHTML=U.pause,e||n.a.resolve(this.video.play()).catch((function(){t.pause()})).then((function(){})),this.timer.enable("loading"),this.container.classList.remove("dplayer-paused"),this.container.classList.add("dplayer-playing"),this.danmaku&&this.danmaku.play(),this.options.mutex)for(var a=0;a=.95?this.template.volumeIcon.innerHTML=U.volumeUp:this.volume()>0?this.template.volumeIcon.innerHTML=U.volumeDown:this.template.volumeIcon.innerHTML=U.volumeOff}},{key:"volume",value:function(e,t,a){if(e=parseFloat(e),!isNaN(e)){e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"width");var n="".concat((100*e).toFixed(0),"%");this.template.volumeBarWrapWrap.dataset.balloon=n,t||this.user.set("volume",e),a||this.notice("".concat(this.tran("Volume")," ").concat((100*e).toFixed(0),"%")),this.video.volume=e,this.video.muted&&(this.video.muted=!1),this.switchVolumeIcon()}return this.video.volume}},{key:"toggle",value:function(){this.video.paused?this.play():this.pause()}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"switchVideo",value:function(e,t){this.pause(),this.video.poster=e.pic?e.pic:"",this.video.src=e.url,this.initMSE(this.video,e.type||"auto"),t&&(this.template.danmakuLoading.style.display="block",this.bar.set("played",0,"width"),this.bar.set("loaded",0,"width"),this.template.ptime.innerHTML="00:00",this.template.danmaku.innerHTML="",this.danmaku&&this.danmaku.reload({id:t.id,address:t.api,token:t.token,maximum:t.maximum,addition:t.addition,user:t.user}))}},{key:"initMSE",value:function(e,t){var a=this;if(this.type=t,this.options.video.customType&&this.options.video.customType[t])"[object Function]"===Object.prototype.toString.call(this.options.video.customType[t])?this.options.video.customType[t](this.video,this):console.error("Illegal customType: ".concat(t));else switch("auto"===this.type&&(/m3u8(#|\?|$)/i.exec(e.src)?this.type="hls":/.flv(#|\?|$)/i.exec(e.src)?this.type="flv":/.mpd(#|\?|$)/i.exec(e.src)?this.type="dash":this.type="normal"),"hls"===this.type&&(e.canPlayType("application/x-mpegURL")||e.canPlayType("application/vnd.apple.mpegURL"))&&(this.type="normal"),this.type){case"hls":if(window.Hls)if(window.Hls.isSupported()){var n=this.options.pluginOptions.hls,r=new window.Hls(n);this.plugins.hls=r,r.loadSource(e.src),r.attachMedia(e),this.events.on("destroy",(function(){r.destroy(),delete a.plugins.hls}))}else this.notice("Error: Hls is not supported.");else this.notice("Error: Can't find Hls.");break;case"flv":if(window.flvjs)if(window.flvjs.isSupported()){var o=Object.assign(this.options.pluginOptions.flvjs,{type:"flv",url:e.src}),i=window.flvjs.createPlayer(o);this.plugins.flvjs=i,i.attachMediaElement(e),i.load(),this.events.on("destroy",(function(){i.unload(),i.detachMediaElement(),i.destroy(),delete a.plugins.flvjs}))}else this.notice("Error: flvjs is not supported.");else this.notice("Error: Can't find flvjs.");break;case"dash":if(window.dashjs){var l=window.dashjs.MediaPlayer().create().initialize(e,e.src,!1),s=this.options.pluginOptions.dash;l.updateSettings(s),this.plugins.dash=l,this.events.on("destroy",(function(){window.dashjs.MediaPlayer().reset(),delete a.plugins.dash}))}else this.notice("Error: Can't find dashjs.");break;case"webtorrent":if(window.WebTorrent)if(window.WebTorrent.WEBRTC_SUPPORT){this.container.classList.add("dplayer-loading");var d=this.options.pluginOptions.webtorrent,p=new window.WebTorrent(d);this.plugins.webtorrent=p;var c=e.src;e.src="",e.preload="metadata",e.addEventListener("durationchange",(function(){return a.container.classList.remove("dplayer-loading")}),{once:!0}),p.add(c,(function(e){e.files.find((function(e){return e.name.endsWith(".mp4")})).renderTo(a.video,{autoplay:a.options.autoplay})})),this.events.on("destroy",(function(){p.remove(c),p.destroy(),delete a.plugins.webtorrent}))}else this.notice("Error: Webtorrent is not supported.");else this.notice("Error: Can't find Webtorrent.")}}},{key:"initVideo",value:function(e,t){var a=this;this.initMSE(e,t),this.on("durationchange",(function(){1!==e.duration&&e.duration!==1/0&&(a.template.dtime.innerHTML=o.secondToTime(e.duration))})),this.on("progress",(function(){var t=e.buffered.length?e.buffered.end(e.buffered.length-1)/e.duration:0;a.bar.set("loaded",t,"width")})),this.on("error",(function(){a.video.error&&a.tran&&a.notice&&"webtorrent"!==a.type&&a.notice(a.tran("Video load failed"),-1)})),this.on("ended",(function(){a.bar.set("played",1,"width"),a.setting.loop?(a.seek(0),a.play()):a.pause(),a.danmaku&&(a.danmaku.danIndex=0)})),this.on("play",(function(){a.paused&&a.play(!0)})),this.on("pause",(function(){a.paused||a.pause(!0)})),this.on("timeupdate",(function(){a.bar.set("played",a.video.currentTime/a.video.duration,"width");var e=o.secondToTime(a.video.currentTime);a.template.ptime.innerHTML!==e&&(a.template.ptime.innerHTML=e)}));for(var n=function(t){e.addEventListener(a.events.videoEvents[t],(function(){a.events.trigger(a.events.videoEvents[t])}))},r=0;r1&&void 0!==arguments[1]?arguments[1]:2e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=n,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("notice_show",e),a>0&&(this.noticeTime=setTimeout((function(){t.template.notice.style.opacity=0,t.events.trigger("notice_hide")}),a))}},{key:"resize",value:function(){this.danmaku&&this.danmaku.resize(),this.controller.thumbnails&&this.controller.thumbnails.resize(160,this.video.videoHeight/this.video.videoWidth*160,this.template.barWrap.offsetWidth),this.events.trigger("resize")}},{key:"speed",value:function(e){this.video.playbackRate=e}},{key:"destroy",value:function(){Ce.splice(Ce.indexOf(this),1),this.pause(),this.controller.destroy(),this.timer.destroy(),this.video.src="",this.container.innerHTML="",this.events.trigger("destroy")}}])&&Me(t.prototype,a),r&&Me(t,r),e}();console.log("\n".concat(" %c DPlayer v","1.25.1"," ").concat("e3a4631"," %c http://dplayer.js.org ","\n","\n"),"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;");t.default=Oe}]).default})); + !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("DPlayer",[],t):"object"==typeof exports?exports.DPlayer=t():e.DPlayer=t()}(window,(function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/",a(a.s=58)}([function(e,t,a){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=a(6),r=Object.prototype.toString;function i(e){return"[object Array]"===r.call(e)}function l(e){return void 0===e}function s(e){return null!==e&&"object"===n(e)}function d(e){return"[object Function]"===r.call(e)}function p(e,t){if(null!=e)if("object"!==n(e)&&(e=[e]),i(e))for(var a=0,o=e.length;a\n ",a&&(t+='\n \n '),t+="\n"}},function(e,t,a){e.exports=a(41)},function(e,t,a){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var a=function(e,t){var a=e[1]||"",n=e[3];if(!n)return a;if(t&&"function"==typeof btoa){var o=(i=n,l=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(s," */")),r=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[a].concat(r).concat([o]).join("\n")}var i,l,s;return[a].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(a,"}"):a})).join("")},t.i=function(e,a,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var r=0;r1)for(var a=1;a=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){s.headers[e]=n.merge(r)})),e.exports=s}).call(this,a(5))},function(e,t,a){"use strict";var n=a(0),o=a(47),r=a(7),i=a(49),l=a(52),s=a(53),d=a(11);e.exports=function(e){return new Promise((function(t,p){var c=e.data,u=e.headers;n.isFormData(c)&&delete u["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password||"";u.Authorization="Basic "+btoa(h+":"+m)}var f=i(e.baseURL,e.url);if(y.open(e.method.toUpperCase(),r(f,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,y.onreadystatechange=function(){if(y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))){var a="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:a,config:e,request:y};o(t,p,n),y=null}},y.onabort=function(){y&&(p(d("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){p(d("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),p(d(t,e,"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var v=a(54),b=(e.withCredentials||s(f))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;b&&(u[e.xsrfHeaderName]=b)}if("setRequestHeader"in y&&n.forEach(u,(function(e,t){void 0===c&&"content-type"===t.toLowerCase()?delete u[t]:y.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),e.responseType)try{y.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){y&&(y.abort(),p(e),y=null)})),void 0===c&&(c=null),y.send(c)}))}},function(e,t,a){"use strict";var n=a(48);e.exports=function(e,t,a,o,r){var i=new Error(e);return n(i,t,a,o,r)}},function(e,t,a){"use strict";var n=a(0);e.exports=function(e,t){t=t||{};var a={},o=["url","method","params","data"],r=["headers","auth","proxy"],i=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(o,(function(e){void 0!==t[e]&&(a[e]=t[e])})),n.forEach(r,(function(o){n.isObject(t[o])?a[o]=n.deepMerge(e[o],t[o]):void 0!==t[o]?a[o]=t[o]:n.isObject(e[o])?a[o]=n.deepMerge(e[o]):void 0!==e[o]&&(a[o]=e[o])})),n.forEach(i,(function(n){void 0!==t[n]?a[n]=t[n]:void 0!==e[n]&&(a[n]=e[n])}));var l=o.concat(r).concat(i),s=Object.keys(t).filter((function(e){return-1===l.indexOf(e)}));return n.forEach(s,(function(n){void 0!==t[n]?a[n]=t[n]:void 0!==e[n]&&(a[n]=e[n])})),a}},function(e,t,a){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,a){"use strict";e.exports=a(57)},function(e,t,a){"use strict";(function(e){var n=a(16);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=setTimeout;function i(e){return Boolean(e&&void 0!==e.length)}function l(){}function s(e){if(!(this instanceof s))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(e,this)}function d(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,s._immediateFn((function(){var a=1===e._state?t.onFulfilled:t.onRejected;if(null!==a){var n;try{n=a(e._value)}catch(e){return void c(t.promise,e)}p(t.promise,n)}else(1===e._state?p:c)(t.promise,e._value)}))):e._deferreds.push(t)}function p(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===o(t)||"function"==typeof t)){var a=t.then;if(t instanceof s)return e._state=3,e._value=t,void u(e);if("function"==typeof a)return void h((n=a,r=t,function(){n.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){c(e,t)}var n,r}function c(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&s._immediateFn((function(){e._handled||s._unhandledRejectionFn(e._value)}));for(var t=0,a=e._deferreds.length;t\n \n '),t+='\n
    \n
    \n
    \n
    \n
    \n \n ',i.danmaku&&(t+='\n ',t+=l(s("Danmaku is loading")),t+="\n "),t+='\n ',t+=d.loading,t+='\n
    \n\n
    \n
    \n
    \n \n
    \n
    \n
    ',t+=l(s("Set danmaku color")),t+='
    \n \n \n \n \n \n \n
    \n
    \n
    ',t+=l(s("Set danmaku type")),t+='
    \n \n \n \n
    \n
    \n \n ',t+=d.send,t+='\n \n
    \n
    \n \n
    \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n 0:00 /\n 0:00\n \n ',i.live&&(t+='\n ',t+=l(s("Live")),t+="\n "),t+='\n
    \n
    \n ',i.video.quality&&(t+='\n
    \n \n
    \n
    \n ',c(i.video.quality,(function(e,a){t+='\n
    ',t+=l(e.name),t+="
    \n "})),t+="\n
    \n
    \n
    \n "),t+="\n ",i.screenshot&&(t+='\n
    \n
    \n "),t+="\n ",i.airplay&&(t+='\n
    \n
    \n "),t+='\n
    \n \n
    \n ",i.subtitle&&(t+='\n
    \n \n
    \n "),t+='\n
    \n \n
    \n
    \n
    \n ',t+=l(s("Speed")),t+='\n
    ',t+=d.right,t+='
    \n
    \n
    \n ',t+=l(s("Loop")),t+='\n
    \n \n \n
    \n
    \n
    \n ',t+=l(s("Show danmaku")),t+='\n
    \n \n \n
    \n
    \n
    \n ',t+=l(s("Unlimited danmaku")),t+='\n
    \n \n \n
    \n
    \n
    \n ',t+=l(s("Opacity for danmaku")),t+='\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n ',c(i.playbackSpeed,(function(e,a){t+='\n
    \n ',t+=l(1===e?s("Normal"):e),t+="\n
    \n "})),t+='\n
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    [x]
    \n
    \n Player version\n \n
    \n
    \n Player FPS\n \n
    \n
    \n Video type\n \n
    \n
    \n Video url\n \n
    \n
    \n Video resolution\n \n
    \n
    \n Video duration\n \n
    \n ',i.danmaku&&(t+='\n
    \n Danmaku id\n \n
    \n
    \n Danmaku api\n \n
    \n
    \n Danmaku amount\n \n
    \n '),t+='\n
    \n
    \n ',c(i.contextmenu,(function(e,a){t+='\n
    \n ',t+=l(s(e.text)),t+="\n
    \n "})),t+='\n
    \n
    \n"}},function(e,t,a){var n=a(36),o=a(37);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);e.exports=o.locals||{}},function(e,t,a){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var a=document.querySelector(t);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}e[t]=a}return e[t]}}(),i=[];function l(e){for(var t=-1,a=0;adiv{display:none}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-box>div.dplayer-setting-origin-panel{display:block}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-box.dplayer-setting-box-open{transform:scale(1)}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-box.dplayer-setting-box-narrow{width:70px;text-align:center}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-box.dplayer-setting-box-speed .dplayer-setting-origin-panel{display:none}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-box.dplayer-setting-box-speed .dplayer-setting-speed-panel{display:block}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-item,.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-speed-item{height:30px;padding:5px 10px;box-sizing:border-box;cursor:pointer;position:relative}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-item:hover,.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-speed-item:hover{background-color:hsla(0,0%,100%,.1)}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku{padding:5px 0}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku .dplayer-label{padding:0 10px;display:inline}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku:hover .dplayer-label{display:none}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku:hover .dplayer-danmaku-bar-wrap{display:inline-block}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku.dplayer-setting-danmaku-active .dplayer-label{display:none}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku.dplayer-setting-danmaku-active .dplayer-danmaku-bar-wrap{display:inline-block}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku .dplayer-danmaku-bar-wrap{padding:0 10px;box-sizing:border-box;display:none;vertical-align:middle;height:100%;width:100%}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku .dplayer-danmaku-bar-wrap .dplayer-danmaku-bar{position:relative;top:8.5px;width:100%;height:3px;background:#fff;transition:all .3s ease-in-out}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku .dplayer-danmaku-bar-wrap .dplayer-danmaku-bar .dplayer-danmaku-bar-inner{position:absolute;bottom:0;left:0;height:100%;transition:all .1s ease;background:#aaa;will-change:width}.dplayer-controller .dplayer-icons .dplayer-setting .dplayer-setting-danmaku .dplayer-danmaku-bar-wrap .dplayer-danmaku-bar .dplayer-danmaku-bar-inner .dplayer-thumb{position:absolute;top:0;right:5px;margin-top:-4px;margin-right:-10px;height:11px;width:11px;border-radius:50%;cursor:pointer;transition:all .3s ease-in-out;background:#aaa}.dplayer-controller .dplayer-icons .dplayer-full{display:inline-block;height:100%;position:relative}.dplayer-controller .dplayer-icons .dplayer-full:hover .dplayer-full-in-icon{display:block}.dplayer-controller .dplayer-icons .dplayer-full .dplayer-full-in-icon{position:absolute;top:-30px;z-index:1;display:none}.dplayer-controller .dplayer-icons .dplayer-quality{position:relative;display:inline-block;height:100%;z-index:2}.dplayer-controller .dplayer-icons .dplayer-quality:hover .dplayer-quality-list,.dplayer-controller .dplayer-icons .dplayer-quality:hover .dplayer-quality-mask{display:block}.dplayer-controller .dplayer-icons .dplayer-quality .dplayer-quality-mask{display:none;position:absolute;bottom:38px;left:-18px;width:80px;padding-bottom:12px}.dplayer-controller .dplayer-icons .dplayer-quality .dplayer-quality-list{display:none;font-size:12px;width:80px;border-radius:2px;background:rgba(28,28,28,.9);padding:5px 0;transition:all .3s ease-in-out;overflow:hidden;color:#fff;text-align:center}.dplayer-controller .dplayer-icons .dplayer-quality .dplayer-quality-item{height:25px;box-sizing:border-box;cursor:pointer;line-height:25px}.dplayer-controller .dplayer-icons .dplayer-quality .dplayer-quality-item:hover{background-color:hsla(0,0%,100%,.1)}.dplayer-controller .dplayer-icons .dplayer-comment{display:inline-block;height:100%}.dplayer-controller .dplayer-icons .dplayer-label{color:#eee;font-size:13px;display:inline-block;vertical-align:middle;white-space:nowrap}.dplayer-controller .dplayer-icons .dplayer-toggle{width:32px;height:20px;text-align:center;font-size:0;vertical-align:middle;position:absolute;top:5px;right:10px}.dplayer-controller .dplayer-icons .dplayer-toggle input{max-height:0;max-width:0;display:none}.dplayer-controller .dplayer-icons .dplayer-toggle input+label{display:inline-block;position:relative;box-shadow:inset 0 0 0 0 #dfdfdf;border:1px solid #dfdfdf;height:20px;width:32px;border-radius:10px;box-sizing:border-box;cursor:pointer;transition:.2s ease-in-out}.dplayer-controller .dplayer-icons .dplayer-toggle input+label:after,.dplayer-controller .dplayer-icons .dplayer-toggle input+label:before{content:"";position:absolute;display:block;height:18px;width:18px;top:0;left:0;border-radius:15px;transition:.2s ease-in-out}.dplayer-controller .dplayer-icons .dplayer-toggle input+label:after{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}.dplayer-controller .dplayer-icons .dplayer-toggle input:checked+label{border-color:hsla(0,0%,100%,.5)}.dplayer-controller .dplayer-icons .dplayer-toggle input:checked+label:before{width:30px;background:hsla(0,0%,100%,.5)}.dplayer-controller .dplayer-icons .dplayer-toggle input:checked+label:after{left:12px}.dplayer-mobile-play{display:none;width:50px;height:50px;border:none;background-color:transparent;outline:none;cursor:pointer;box-sizing:border-box;bottom:0;opacity:.8;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.dplayer-danmaku{position:absolute;left:0;right:0;top:0;bottom:0;font-size:22px;color:#fff}.dplayer-danmaku .dplayer-danmaku-item{display:inline-block;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;white-space:nowrap;text-shadow:.5px .5px .5px rgba(0,0,0,.5)}.dplayer-danmaku .dplayer-danmaku-item--demo{position:absolute;visibility:hidden}.dplayer-danmaku .dplayer-danmaku-right{position:absolute;right:0;transform:translateX(100%)}.dplayer-danmaku .dplayer-danmaku-right.dplayer-danmaku-move{will-change:transform;-webkit-animation:danmaku 5s linear;animation:danmaku 5s linear;-webkit-animation-play-state:paused;animation-play-state:paused}@-webkit-keyframes danmaku{0%{transform:translateX(100%)}}@keyframes danmaku{0%{transform:translateX(100%)}}.dplayer-danmaku .dplayer-danmaku-bottom,.dplayer-danmaku .dplayer-danmaku-top{position:absolute;width:100%;text-align:center;visibility:hidden}.dplayer-danmaku .dplayer-danmaku-bottom.dplayer-danmaku-move,.dplayer-danmaku .dplayer-danmaku-top.dplayer-danmaku-move{will-change:visibility;-webkit-animation:danmaku-center 4s linear;animation:danmaku-center 4s linear;-webkit-animation-play-state:paused;animation-play-state:paused}@-webkit-keyframes danmaku-center{0%{visibility:visible}to{visibility:visible}}@keyframes danmaku-center{0%{visibility:visible}to{visibility:visible}}.dplayer-logo{pointer-events:none;position:absolute;left:20px;top:20px;max-width:50px;max-height:50px}.dplayer-logo img{max-width:100%;max-height:100%;background:none}.dplayer-menu{position:absolute;width:170px;border-radius:2px;background:rgba(28,28,28,.85);padding:5px 0;overflow:hidden;z-index:3;display:none}.dplayer-menu.dplayer-menu-show{display:block}.dplayer-menu .dplayer-menu-item{height:30px;box-sizing:border-box;cursor:pointer}.dplayer-menu .dplayer-menu-item:hover{background-color:hsla(0,0%,100%,.1)}.dplayer-menu .dplayer-menu-item a{padding:0 10px;line-height:30px;color:#eee;font-size:13px;display:inline-block;vertical-align:middle;width:100%;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dplayer-menu .dplayer-menu-item a:hover{text-decoration:none}.dplayer-notice{opacity:0;position:absolute;bottom:60px;left:20px;font-size:14px;border-radius:2px;background:rgba(28,28,28,.9);padding:7px 20px;transition:all .3s ease-in-out;overflow:hidden;color:#fff;pointer-events:none}.dplayer-subtitle{position:absolute;bottom:40px;width:90%;left:5%;text-align:center;color:#fff;text-shadow:.5px .5px .5px rgba(0,0,0,.5);font-size:20px}.dplayer-subtitle.dplayer-subtitle-hide{display:none}.dplayer-mask{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;display:none}.dplayer-mask.dplayer-mask-show{display:block}.dplayer-video-wrap{position:relative;background:#000;font-size:0;width:100%;height:100%}.dplayer-video-wrap .dplayer-video{width:100%;height:100%;display:none}.dplayer-video-wrap .dplayer-video-current{display:block}.dplayer-video-wrap .dplayer-video-prepare{display:none}.dplayer-info-panel{position:absolute;top:10px;left:10px;width:400px;background:rgba(28,28,28,.8);padding:10px;color:#fff;font-size:12px;border-radius:2px}.dplayer-info-panel-hide{display:none}.dplayer-info-panel .dplayer-info-panel-close{cursor:pointer;position:absolute;right:10px;top:10px}.dplayer-info-panel .dplayer-info-panel-item>span{display:inline-block;vertical-align:middle;line-height:15px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dplayer-info-panel .dplayer-info-panel-item-title{width:100px;text-align:right;margin-right:10px}.dplayer-info-panel .dplayer-info-panel-item-data{width:260px}',""]),e.exports=t},function(e,t,a){(t=a(3)(!1)).push([e.i,':root{--balloon-border-radius:2px;--balloon-color:rgba(16,16,16,0.95);--balloon-text-color:#fff;--balloon-font-size:12px;--balloon-move:4px}button[aria-label][data-balloon-pos]{overflow:visible}[aria-label][data-balloon-pos]{position:relative;cursor:pointer}[aria-label][data-balloon-pos]:after{text-indent:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;font-weight:400;font-style:normal;text-shadow:none;font-size:var(--balloon-font-size);background:var(--balloon-color);border-radius:2px;color:var(--balloon-text-color);border-radius:var(--balloon-border-radius);content:attr(aria-label);padding:.5em 1em;white-space:nowrap}[aria-label][data-balloon-pos]:after,[aria-label][data-balloon-pos]:before{opacity:0;pointer-events:none;transition:all .18s ease-out .18s;position:absolute;z-index:10}[aria-label][data-balloon-pos]:before{width:0;height:0;border:5px solid transparent;border-top:5px solid var(--balloon-color);content:""}[aria-label][data-balloon-pos]:hover:after,[aria-label][data-balloon-pos]:hover:before,[aria-label][data-balloon-pos]:not([data-balloon-nofocus]):focus:after,[aria-label][data-balloon-pos]:not([data-balloon-nofocus]):focus:before,[aria-label][data-balloon-pos][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-visible]:before{opacity:1;pointer-events:none}[aria-label][data-balloon-pos].font-awesome:after{font-family:FontAwesome,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}[aria-label][data-balloon-pos][data-balloon-break]:after{white-space:pre}[aria-label][data-balloon-pos][data-balloon-break][data-balloon-length]:after{white-space:pre-line;word-break:break-word}[aria-label][data-balloon-pos][data-balloon-blunt]:after,[aria-label][data-balloon-pos][data-balloon-blunt]:before{transition:none}[aria-label][data-balloon-pos][data-balloon-pos=up]:after{margin-bottom:10px}[aria-label][data-balloon-pos][data-balloon-pos=up]:after,[aria-label][data-balloon-pos][data-balloon-pos=up]:before{bottom:100%;left:50%;transform:translate(-50%,var(--balloon-move));transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=up]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=up][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-pos=up][data-balloon-visible]:before{transform:translate(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=up-left]:after{bottom:100%;left:0;margin-bottom:10px;transform:translateY(var(--balloon-move));transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up-left]:before{bottom:100%;left:5px;transform:translateY(var(--balloon-move));transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up-left]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=up-left]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=up-left][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-pos=up-left][data-balloon-visible]:before{transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=up-right]:after{bottom:100%;right:0;margin-bottom:10px;transform:translateY(var(--balloon-move));transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up-right]:before{bottom:100%;right:5px;transform:translateY(var(--balloon-move));transform-origin:top}[aria-label][data-balloon-pos][data-balloon-pos=up-right]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=up-right]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=up-right][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-pos=up-right][data-balloon-visible]:before{transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=down]:after{left:50%;margin-top:10px;top:100%;transform:translate(-50%,calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down]:before{width:0;height:0;border:5px solid transparent;border-bottom:5px solid var(--balloon-color);left:50%;top:100%;transform:translate(-50%,calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=down]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=down][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-pos=down][data-balloon-visible]:before{transform:translate(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=down-left]:after{left:0;margin-top:10px;top:100%;transform:translateY(calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down-left]:before{width:0;height:0;border:5px solid transparent;border-bottom:5px solid var(--balloon-color);left:5px;top:100%;transform:translateY(calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down-left]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=down-left]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=down-left][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-pos=down-left][data-balloon-visible]:before{transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=down-right]:after{right:0;margin-top:10px;top:100%;transform:translateY(calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down-right]:before{width:0;height:0;border:5px solid transparent;border-bottom:5px solid var(--balloon-color);right:5px;top:100%;transform:translateY(calc(var(--balloon-move)*-1))}[aria-label][data-balloon-pos][data-balloon-pos=down-right]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=down-right]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=down-right][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-pos=down-right][data-balloon-visible]:before{transform:translate(0)}[aria-label][data-balloon-pos][data-balloon-pos=left]:after{margin-right:10px;right:100%;top:50%;transform:translate(var(--balloon-move),-50%)}[aria-label][data-balloon-pos][data-balloon-pos=left]:before{width:0;height:0;border:5px solid transparent;border-left:5px solid var(--balloon-color);right:100%;top:50%;transform:translate(var(--balloon-move),-50%)}[aria-label][data-balloon-pos][data-balloon-pos=left]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=left]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=left][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-pos=left][data-balloon-visible]:before{transform:translateY(-50%)}[aria-label][data-balloon-pos][data-balloon-pos=right]:after{left:100%;margin-left:10px;top:50%;transform:translate(calc(var(--balloon-move)*-1),-50%)}[aria-label][data-balloon-pos][data-balloon-pos=right]:before{width:0;height:0;border:5px solid transparent;border-right:5px solid var(--balloon-color);left:100%;top:50%;transform:translate(calc(var(--balloon-move)*-1),-50%)}[aria-label][data-balloon-pos][data-balloon-pos=right]:hover:after,[aria-label][data-balloon-pos][data-balloon-pos=right]:hover:before,[aria-label][data-balloon-pos][data-balloon-pos=right][data-balloon-visible]:after,[aria-label][data-balloon-pos][data-balloon-pos=right][data-balloon-visible]:before{transform:translateY(-50%)}[aria-label][data-balloon-pos][data-balloon-length=small]:after{white-space:normal;width:80px}[aria-label][data-balloon-pos][data-balloon-length=medium]:after{white-space:normal;width:150px}[aria-label][data-balloon-pos][data-balloon-length=large]:after{white-space:normal;width:260px}[aria-label][data-balloon-pos][data-balloon-length=xlarge]:after{white-space:normal;width:380px}@media screen and (max-width:768px){[aria-label][data-balloon-pos][data-balloon-length=xlarge]:after{white-space:normal;width:90vw}}[aria-label][data-balloon-pos][data-balloon-length=fit]:after{white-space:normal;width:100%}',""]),e.exports=t},function(e,t,a){var n=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(n.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(n.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},a(40),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,a){(function(e,t){!function(e,a){"use strict";if(!e.setImmediate){var n,o,r,i,l,s=1,d={},p=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,a=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=a,t}}()?e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){h(e.data)},n=function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(o=c.documentElement,n=function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):n=function(e){setTimeout(h,0,e)}:(i="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&h(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),n=function(t){e.postMessage(i+t,"*")}),u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),a=0;a=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([a]):i[t]?i[t]+", "+a:a}})),i):i}},function(e,t,a){"use strict";var n=a(0);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");function o(e){var n=e;return t&&(a.setAttribute("href",n),n=a.href),a.setAttribute("href",n),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname}}return e=o(window.location.href),function(t){var a=n.isString(t)?o(t):t;return a.protocol===e.protocol&&a.host===e.host}}():function(){return!0}},function(e,t,a){"use strict";var n=a(0);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,a,o,r,i){var l=[];l.push(e+"="+encodeURIComponent(t)),n.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),n.isString(o)&&l.push("path="+o),n.isString(r)&&l.push("domain="+r),!0===i&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,a){"use strict";var n=a(13);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var a=this;e((function(e){a.reason||(a.reason=new n(e),t(a.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,a){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,a){"use strict";(function(t){var a="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},n=Object.create(a),o=/["&'<>]/;n.$escape=function(e){return function(e){var t=""+e,a=o.exec(t);if(!a)return e;var n="",r=void 0,i=void 0,l=void 0;for(r=a.index,i=0;r0?[t,a,n]:[a,n]).map((function(e){return e<10?"0"+e:""+e})).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,a=e.offsetParent,n=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==a&&a!==e;)t+=a.offsetLeft,a=a.offsetParent;else for(;null!==a;)t+=a.offsetLeft,a=a.offsetParent;return t-n},getBoundingClientRectViewLeft:function(e){var t=window.scrollY||window.pageYOffset||document.body.scrollTop+(document.documentElement&&document.documentElement.scrollTop||0);if(e.getBoundingClientRect){if("number"!=typeof this.getBoundingClientRectViewLeft.offset){var a=document.createElement("div");a.style.cssText="position:absolute;top:0;left:0;",document.body.appendChild(a),this.getBoundingClientRectViewLeft.offset=-a.getBoundingClientRect().top-t,document.body.removeChild(a),a=null}var n=e.getBoundingClientRect(),o=this.getBoundingClientRectViewLeft.offset;return n.left+o}return this.getElementViewLeft(e)},getScrollPosition:function(){return{left:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},setScrollPosition:function(e){var t=e.left,a=void 0===t?0:t,n=e.top,o=void 0===n?0:n;this.isFirefox?(document.documentElement.scrollLeft=a,document.documentElement.scrollTop=o):window.scrollTo(a,o)},isMobile:o,isSafari:/Safari/i.test(window.navigator.userAgent),isFirefox:/firefox/i.test(window.navigator.userAgent),isChrome:/chrome/i.test(window.navigator.userAgent),storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:o?"touchstart":"mousedown",dragMove:o?"touchmove":"mousemove",dragEnd:o?"touchend":"mouseup"},color2Number:function(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length&&(e="".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2])),parseInt(e,16)+0&16777215},number2Color:function(e){return"#"+("00000"+e.toString(16)).slice(-6)},number2Type:function(e){switch(e){case 0:return"right";case 1:return"top";case 2:return"bottom";default:return"right"}}},i=a(2),l=a.n(i),s={send:function(e){l.a.post(e.url,e.data).then((function(t){var a=t.data;a&&0===a.code?e.success&&e.success(a):e.error&&e.error(a&&a.msg)})).catch((function(t){console.error(t),e.error&&e.error()}))},read:function(e){l.a.get(e.url).then((function(t){var a=t.data;a&&0===a.code?e.success&&e.success(a.data.map((function(e){return{time:e[0],type:e[1],color:e[2],author:e[3],text:e[4]}}))):e.error&&e.error(a&&a.msg)})).catch((function(t){console.error(t),e.error&&e.error()}))}};function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=function(e){var t={container:e.element||document.getElementsByClassName("dplayer")[0],live:!1,autoplay:!1,theme:"#b7daff",loop:!1,lang:(navigator.language||navigator.browserLanguage).toLowerCase(),screenshot:!1,airplay:!0,hotkey:!0,preload:"metadata",volume:.7,playbackSpeed:[.5,.75,1,1.25,1.5,2],apiBackend:s,video:{},contextmenu:[],mutex:!0,pluginOptions:{hls:{},flv:{},dash:{},webtorrent:{}}};for(var a in t)t.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=t[a]);return e.video&&!e.video.type&&(e.video.type="auto"),"object"===d(e.danmaku)&&e.danmaku&&!e.danmaku.user&&(e.danmaku.user="DIYgod"),e.subtitle&&(!e.subtitle.type&&(e.subtitle.type="webvtt"),!e.subtitle.fontSize&&(e.subtitle.fontSize="20px"),!e.subtitle.bottom&&(e.subtitle.bottom="40px"),!e.subtitle.color&&(e.subtitle.color="#fff")),e.video.quality&&(e.video.url=e.video.quality[e.video.defaultQuality].url),e.lang&&(e.lang=e.lang.toLowerCase()),e.contextmenu=e.contextmenu.concat([{text:"Video info",click:function(e){e.infoPanel.triggle()}},{text:"About author",link:"https://diygod.me"},{text:"DPlayer v".concat("1.26.0"),link:"https://github.com/MoePlayer/DPlayer"}]),e};var c={"zh-cn":{"Danmaku is loading":"弹幕加载中",Top:"顶部",Bottom:"底部",Rolling:"滚动","Input danmaku, hit Enter":"输入弹幕,回车发送","About author":"关于作者","DPlayer feedback":"播放器意见反馈","About DPlayer":"关于 DPlayer 播放器",Loop:"洗脑循环",Speed:"速度","Opacity for danmaku":"弹幕透明度",Normal:"正常","Please input danmaku content!":"要输入弹幕内容啊喂!","Set danmaku color":"设置弹幕颜色","Set danmaku type":"设置弹幕类型","Show danmaku":"显示弹幕","Video load failed":"视频加载失败","Danmaku load failed":"弹幕加载失败","Danmaku send failed":"弹幕发送失败","Switching to":"正在切换至","Switched to":"已经切换至",quality:"画质",FF:"快进",REW:"快退","Unlimited danmaku":"海量弹幕","Send danmaku":"发送弹幕",Setting:"设置","Full screen":"全屏","Web full screen":"页面全屏",Send:"发送",Screenshot:"截图",AirPlay:"无线投屏",s:"秒","Show subtitle":"显示字幕","Hide subtitle":"隐藏字幕",Volume:"音量",Live:"直播","Video info":"视频统计信息"},"zh-tw":{"Danmaku is loading":"彈幕載入中",Top:"頂部",Bottom:"底部",Rolling:"滾動","Input danmaku, hit Enter":"輸入彈幕,Enter 發送","About author":"關於作者","DPlayer feedback":"播放器意見回饋","About DPlayer":"關於 DPlayer 播放器",Loop:"循環播放",Speed:"速度","Opacity for danmaku":"彈幕透明度",Normal:"正常","Please input danmaku content!":"請輸入彈幕內容啊!","Set danmaku color":"設定彈幕顏色","Set danmaku type":"設定彈幕類型","Show danmaku":"顯示彈幕","Video load failed":"影片載入失敗","Danmaku load failed":"彈幕載入失敗","Danmaku send failed":"彈幕發送失敗","Switching to":"正在切換至","Switched to":"已經切換至",quality:"畫質",FF:"快進",REW:"快退","Unlimited danmaku":"巨量彈幕","Send danmaku":"發送彈幕",Setting:"設定","Full screen":"全螢幕","Web full screen":"頁面全螢幕",Send:"發送",Screenshot:"截圖",AirPlay:"無線投屏",s:"秒","Show subtitle":"顯示字幕","Hide subtitle":"隱藏字幕",Volume:"音量",Live:"直播","Video info":"影片統計訊息"}},u=function(e){var t=this;this.lang=e,this.tran=function(e){return c[t.lang]&&c[t.lang][e]?c[t.lang][e]:e}},y=a(17),h=a.n(y),m=a(18),f=a.n(m),v=a(19),b=a.n(v),g=a(20),w=a.n(g),x=a(21),k=a.n(x),S=a(22),T=a.n(S),L=a(23),E=a.n(L),q=a(24),B=a.n(q),M=a(25),z=a.n(M),C=a(26),A=a.n(C),O=a(27),P=a.n(O),j=a(28),F=a.n(j),_=a(29),Y=a.n(_),D=a(30),R=a.n(D),I=a(31),H=a.n(I),W=a(32),N=a.n(W),U=a(33),V=a.n(U),X={play:h.a,pause:f.a,volumeUp:b.a,volumeDown:w.a,volumeOff:k.a,full:T.a,fullWeb:E.a,setting:B.a,right:z.a,comment:A.a,commentOff:P.a,send:F.a,pallette:Y.a,camera:R.a,subtitle:N.a,loading:V.a,airplay:H.a},Q=a(34),$=a.n(Q);function J(e,t){for(var a=0;aparseFloat(t.time);)a.push(t),t=this.dan[++this.danIndex];this.draw(a)}window.requestAnimationFrame((function(){e.frame()}))}},{key:"opacity",value:function(e){if(void 0!==e){for(var t=this.container.getElementsByClassName("dplayer-danmaku-item"),a=0;a').concat(e[o].text,""):i.innerHTML=e[o].text,i.style.opacity=t._opacity,i.style.color=r.number2Color(e[o].color),i.addEventListener("animationend",(function(){t.container.removeChild(i)}));var l=t._measure(e[o].text),s=void 0;switch(e[o].type){case"right":(s=d(i,e[o].type,l))>=0&&(i.style.width=l+1+"px",i.style.top=a*s+"px",i.style.transform="translateX(-".concat(n,"px)"));break;case"top":(s=d(i,e[o].type))>=0&&(i.style.top=a*s+"px");break;case"bottom":(s=d(i,e[o].type))>=0&&(i.style.bottom=a*s+"px");break;default:console.error("Can't handled danmaku type: ".concat(e[o].type))}s>=0&&(i.classList.add("dplayer-danmaku-move"),p.appendChild(i))},u=0;u=this.options.time()){this.danIndex=e;break}this.danIndex=this.dan.length}}},{key:"clear",value:function(){this.danTunnel={right:{},top:{},bottom:{}},this.danIndex=0,this.options.container.innerHTML="",this.events&&this.events.trigger("danmaku_clear")}},{key:"htmlEncode",value:function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}},{key:"resize",value:function(){for(var e=this.container.offsetWidth,t=this.container.getElementsByClassName("dplayer-danmaku-item"),a=0;a0&&void 0!==arguments[0]?arguments[0]:"browser";switch(e){case"browser":return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;case"web":return this.player.container.classList.contains("dplayer-fulled")}}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser",t="browser"===e?"web":"browser",a=this.isFullScreen(t);switch(a||(this.lastScrollPosition=r.getScrollPosition()),e){case"browser":this.player.container.requestFullscreen?this.player.container.requestFullscreen():this.player.container.mozRequestFullScreen?this.player.container.mozRequestFullScreen():this.player.container.webkitRequestFullscreen?this.player.container.webkitRequestFullscreen():this.player.video.webkitEnterFullscreen?this.player.video.webkitEnterFullscreen():this.player.video.webkitEnterFullScreen?this.player.video.webkitEnterFullScreen():this.player.container.msRequestFullscreen&&this.player.container.msRequestFullscreen();break;case"web":this.player.container.classList.add("dplayer-fulled"),document.body.classList.add("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen")}a&&this.cancel(t)}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser";switch(e){case"browser":document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitCancelFullscreen?document.webkitCancelFullscreen():document.msCancelFullScreen?document.msCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen();break;case"web":this.player.container.classList.remove("dplayer-fulled"),document.body.classList.remove("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen_cancel")}}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser";this.isFullScreen(e)?this.cancel(e):this.request(e)}}])&&ne(t.prototype,a),n&&ne(t,n),e}();function re(e,t){for(var a=0;a".concat(e,"

    ")})).join("");e.container.innerHTML=o}e.events.trigger("subtitle_change")}}}},{key:"show",value:function(){this.container.classList.remove("dplayer-subtitle-hide"),this.events.trigger("subtitle_show")}},{key:"hide",value:function(){this.container.classList.add("dplayer-subtitle-hide"),this.events.trigger("subtitle_hide")}},{key:"toggle",value:function(){this.container.classList.contains("dplayer-subtitle-hide")?this.show():this.hide()}}])&&le(t.prototype,a),n&&le(t,n),e}();function de(e,t){for(var a=0;at&&!e.player.video.paused&&(e.player.container.classList.remove("dplayer-loading"),n=!1),t=a)}),100)}},{key:"initfpsChecker",value:function(){var e=this;window.requestAnimationFrame((function(){if(e.enablefpsChecker)if(e.initfpsChecker(),e.fpsStart){e.fpsIndex++;var t=new Date;t-e.fpsStart>1e3&&(e.player.infoPanel.fps(e.fpsIndex/(t-e.fpsStart)*1e3),e.fpsStart=new Date,e.fpsIndex=0)}else e.fpsStart=new Date,e.fpsIndex=0;else e.fpsStart=0,e.fpsIndex=0}))}},{key:"initinfoChecker",value:function(){var e=this;this.infoChecker=setInterval((function(){e.enableinfoChecker&&e.player.infoPanel.update()}),1e3)}},{key:"enable",value:function(e){this["enable".concat(e,"Checker")]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable".concat(e,"Checker")]=!1}},{key:"destroy",value:function(){var e=this;this.types.map((function(t){return e["enable".concat(t,"Checker")]=!1,e["".concat(t,"Checker")]&&clearInterval(e["".concat(t,"Checker")]),t}))}}])&&ce(t.prototype,a),n&&ce(t,n),e}();function ye(e,t){for(var a=0;a'+e.player.options.highlight[a].text+"",e.player.template.playedBarWrap.insertBefore(n,e.player.template.playedBarTime)}}}))}},{key:"initThumbnails",value:function(){var e=this;this.player.options.video.thumbnails&&(this.thumbnails=new fe({container:this.player.template.barPreview,barWidth:this.player.template.barWrap.offsetWidth,url:this.player.options.video.thumbnails,events:this.player.events}),this.player.on("loadedmetadata",(function(){e.thumbnails.resize(160,e.player.video.videoHeight/e.player.video.videoWidth*160,e.player.template.barWrap.offsetWidth)})))}},{key:"initPlayedBar",value:function(){var e=this,t=function(t){var a=((t.clientX||t.changedTouches[0].clientX)-r.getBoundingClientRectViewLeft(e.player.template.playedBarWrap))/e.player.template.playedBarWrap.clientWidth;a=Math.max(a,0),a=Math.min(a,1),e.player.bar.set("played",a,"width"),e.player.template.ptime.innerHTML=r.secondToTime(a*e.player.video.duration)},a=function a(n){document.removeEventListener(r.nameMap.dragEnd,a),document.removeEventListener(r.nameMap.dragMove,t);var o=((n.clientX||n.changedTouches[0].clientX)-r.getBoundingClientRectViewLeft(e.player.template.playedBarWrap))/e.player.template.playedBarWrap.clientWidth;o=Math.max(o,0),o=Math.min(o,1),e.player.bar.set("played",o,"width"),e.player.seek(e.player.bar.get("played")*e.player.video.duration),e.player.timer.enable("progress")};this.player.template.playedBarWrap.addEventListener(r.nameMap.dragStart,(function(){e.player.timer.disable("progress"),document.addEventListener(r.nameMap.dragMove,t),document.addEventListener(r.nameMap.dragEnd,a)})),this.player.template.playedBarWrap.addEventListener(r.nameMap.dragMove,(function(t){if(e.player.video.duration){var a=e.player.template.playedBarWrap.getBoundingClientRect().left,n=(t.clientX||t.changedTouches[0].clientX)-a;if(n<0||n>e.player.template.playedBarWrap.offsetWidth)return;var o=e.player.video.duration*(n/e.player.template.playedBarWrap.offsetWidth);r.isMobile&&e.thumbnails&&e.thumbnails.show(),e.thumbnails&&e.thumbnails.move(n),e.player.template.playedBarTime.style.left="".concat(n-(o>=3600?25:20),"px"),e.player.template.playedBarTime.innerText=r.secondToTime(o),e.player.template.playedBarTime.classList.remove("hidden")}})),this.player.template.playedBarWrap.addEventListener(r.nameMap.dragEnd,(function(){r.isMobile&&e.thumbnails&&e.thumbnails.hide()})),r.isMobile||(this.player.template.playedBarWrap.addEventListener("mouseenter",(function(){e.player.video.duration&&(e.thumbnails&&e.thumbnails.show(),e.player.template.playedBarTime.classList.remove("hidden"))})),this.player.template.playedBarWrap.addEventListener("mouseleave",(function(){e.player.video.duration&&(e.thumbnails&&e.thumbnails.hide(),e.player.template.playedBarTime.classList.add("hidden"))})))}},{key:"initFullButton",value:function(){var e=this;this.player.template.browserFullButton.addEventListener("click",(function(){e.player.fullScreen.toggle("browser")})),this.player.template.webFullButton.addEventListener("click",(function(){e.player.fullScreen.toggle("web")}))}},{key:"initVolumeButton",value:function(){var e=this,t=function(t){var a=t||window.event,n=((a.clientX||a.changedTouches[0].clientX)-r.getBoundingClientRectViewLeft(e.player.template.volumeBarWrap)-5.5)/35;e.player.volume(n)},a=function a(){document.removeEventListener(r.nameMap.dragEnd,a),document.removeEventListener(r.nameMap.dragMove,t),e.player.template.volumeButton.classList.remove("dplayer-volume-active")};this.player.template.volumeBarWrapWrap.addEventListener("click",(function(t){var a=t||window.event,n=((a.clientX||a.changedTouches[0].clientX)-r.getBoundingClientRectViewLeft(e.player.template.volumeBarWrap)-5.5)/35;e.player.volume(n)})),this.player.template.volumeBarWrapWrap.addEventListener(r.nameMap.dragStart,(function(){document.addEventListener(r.nameMap.dragMove,t),document.addEventListener(r.nameMap.dragEnd,a),e.player.template.volumeButton.classList.add("dplayer-volume-active")})),this.player.template.volumeButtonIcon.addEventListener("click",(function(){e.player.video.muted?(e.player.video.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set("volume",e.player.volume(),"width")):(e.player.video.muted=!0,e.player.template.volumeIcon.innerHTML=X.volumeOff,e.player.bar.set("volume",0,"width"))}))}},{key:"initQualityButton",value:function(){var e=this;this.player.options.video.quality&&this.player.template.qualityList.addEventListener("click",(function(t){t.target.classList.contains("dplayer-quality-item")&&e.player.switchQuality(t.target.dataset.index)}))}},{key:"initScreenshotButton",value:function(){var e=this;this.player.options.screenshot&&this.player.template.camareButton.addEventListener("click",(function(){var t,a=document.createElement("canvas");a.width=e.player.video.videoWidth,a.height=e.player.video.videoHeight,a.getContext("2d").drawImage(e.player.video,0,0,a.width,a.height),a.toBlob((function(e){t=URL.createObjectURL(e);var a=document.createElement("a");a.href=t,a.download="DPlayer.png",a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(t)})),e.player.events.trigger("screenshot",t)}))}},{key:"initAirplayButton",value:function(){this.player.options.airplay&&(window.WebKitPlaybackTargetAvailabilityEvent?this.player.video.addEventListener("webkitplaybacktargetavailabilitychanged",function(e){switch(e.availability){case"available":this.template.airplayButton.disable=!1;break;default:this.template.airplayButton.disable=!0}this.template.airplayButton.addEventListener("click",function(){this.video.webkitShowPlaybackTargetPicker()}.bind(this))}.bind(this.player)):this.player.template.airplayButton.style.display="none")}},{key:"initSubtitleButton",value:function(){var e=this;this.player.options.subtitle&&(this.player.events.on("subtitle_show",(function(){e.player.template.subtitleButton.dataset.balloon=e.player.tran("Hide subtitle"),e.player.template.subtitleButtonInner.style.opacity="",e.player.user.set("subtitle",1)})),this.player.events.on("subtitle_hide",(function(){e.player.template.subtitleButton.dataset.balloon=e.player.tran("Show subtitle"),e.player.template.subtitleButtonInner.style.opacity="0.4",e.player.user.set("subtitle",0)})),this.player.template.subtitleButton.addEventListener("click",(function(){e.player.subtitle.toggle()})))}},{key:"setAutoHide",value:function(){var e=this;this.show(),clearTimeout(this.autoHideTimer),this.autoHideTimer=setTimeout((function(){!e.player.video.played.length||e.player.paused||e.disableAutoHide||e.hide()}),3e3)}},{key:"show",value:function(){this.player.container.classList.remove("dplayer-hide-controller")}},{key:"hide",value:function(){this.player.container.classList.add("dplayer-hide-controller"),this.player.setting.hide(),this.player.comment&&this.player.comment.hide()}},{key:"isShow",value:function(){return!this.player.container.classList.contains("dplayer-hide-controller")}},{key:"toggle",value:function(){this.isShow()?this.hide():this.show()}},{key:"destroy",value:function(){clearTimeout(this.autoHideTimer)}}])&&ve(t.prototype,a),n&&ve(t,n),e}();function ge(e,t){for(var a=0;a=a.width?(this.player.template.menu.style.right=a.width-e+"px",this.player.template.menu.style.left="initial"):(this.player.template.menu.style.left=e+"px",this.player.template.menu.style.right="initial"),t+this.player.template.menu.offsetHeight>=a.height?(this.player.template.menu.style.bottom=a.height-t+"px",this.player.template.menu.style.top="initial"):(this.player.template.menu.style.top=t+"px",this.player.template.menu.style.bottom="initial"),this.player.template.mask.classList.add("dplayer-mask-show"),this.shown=!0,this.player.events.trigger("contextmenu_show")}},{key:"hide",value:function(){this.player.template.mask.classList.remove("dplayer-mask-show"),this.player.template.menu.classList.remove("dplayer-menu-show"),this.shown=!1,this.player.events.trigger("contextmenu_hide")}}])&&Te(t.prototype,a),n&&Te(t,n),e}();function Ee(e,t){for(var a=0;ae&&this.notice("".concat(this.tran("REW")," ").concat((this.video.currentTime-e).toFixed(0)," ").concat(this.tran("s"))),this.video.currentTime=e,this.danmaku&&this.danmaku.seek(),this.bar.set("played",e/this.video.duration,"width"),this.template.ptime.innerHTML=r.secondToTime(e)}},{key:"play",value:function(e){var t=this;if(this.paused=!1,this.video.paused&&!r.isMobile&&this.bezel.switch(X.play),this.template.playButton.innerHTML=X.pause,this.template.mobilePlayButton.innerHTML=X.pause,e||n.a.resolve(this.video.play()).catch((function(){t.pause()})).then((function(){})),this.timer.enable("loading"),this.container.classList.remove("dplayer-paused"),this.container.classList.add("dplayer-playing"),this.danmaku&&this.danmaku.play(),this.options.mutex)for(var a=0;a=.95?this.template.volumeIcon.innerHTML=X.volumeUp:this.volume()>0?this.template.volumeIcon.innerHTML=X.volumeDown:this.template.volumeIcon.innerHTML=X.volumeOff}},{key:"volume",value:function(e,t,a){if(e=parseFloat(e),!isNaN(e)){e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"width");var n="".concat((100*e).toFixed(0),"%");this.template.volumeBarWrapWrap.dataset.balloon=n,t||this.user.set("volume",e),a||this.notice("".concat(this.tran("Volume")," ").concat((100*e).toFixed(0),"%")),this.video.volume=e,this.video.muted&&(this.video.muted=!1),this.switchVolumeIcon()}return this.video.volume}},{key:"toggle",value:function(){this.video.paused?this.play():this.pause()}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"switchVideo",value:function(e,t){this.pause(),this.video.poster=e.pic?e.pic:"",this.video.src=e.url,this.initMSE(this.video,e.type||"auto"),t&&(this.template.danmakuLoading.style.display="block",this.bar.set("played",0,"width"),this.bar.set("loaded",0,"width"),this.template.ptime.innerHTML="00:00",this.template.danmaku.innerHTML="",this.danmaku&&this.danmaku.reload({id:t.id,address:t.api,token:t.token,maximum:t.maximum,addition:t.addition,user:t.user}))}},{key:"initMSE",value:function(e,t){var a=this;if(this.type=t,this.options.video.customType&&this.options.video.customType[t])"[object Function]"===Object.prototype.toString.call(this.options.video.customType[t])?this.options.video.customType[t](this.video,this):console.error("Illegal customType: ".concat(t));else switch("auto"===this.type&&(/m3u8(#|\?|$)/i.exec(e.src)?this.type="hls":/.flv(#|\?|$)/i.exec(e.src)?this.type="flv":/.mpd(#|\?|$)/i.exec(e.src)?this.type="dash":this.type="normal"),"hls"===this.type&&(e.canPlayType("application/x-mpegURL")||e.canPlayType("application/vnd.apple.mpegURL"))&&(this.type="normal"),this.type){case"hls":if(window.Hls)if(window.Hls.isSupported()){var n=this.options.pluginOptions.hls,o=new window.Hls(n);this.plugins.hls=o,o.loadSource(e.src),o.attachMedia(e),this.events.on("destroy",(function(){o.destroy(),delete a.plugins.hls}))}else this.notice("Error: Hls is not supported.");else this.notice("Error: Can't find Hls.");break;case"flv":if(window.flvjs)if(window.flvjs.isSupported()){var r=window.flvjs.createPlayer(Object.assign(this.options.pluginOptions.flv.mediaDataSource||{},{type:"flv",url:e.src}),this.options.pluginOptions.flv.config);this.plugins.flvjs=r,r.attachMediaElement(e),r.load(),this.events.on("destroy",(function(){r.unload(),r.detachMediaElement(),r.destroy(),delete a.plugins.flvjs}))}else this.notice("Error: flvjs is not supported.");else this.notice("Error: Can't find flvjs.");break;case"dash":if(window.dashjs){var i=window.dashjs.MediaPlayer().create().initialize(e,e.src,!1),l=this.options.pluginOptions.dash;i.updateSettings(l),this.plugins.dash=i,this.events.on("destroy",(function(){window.dashjs.MediaPlayer().reset(),delete a.plugins.dash}))}else this.notice("Error: Can't find dashjs.");break;case"webtorrent":if(window.WebTorrent)if(window.WebTorrent.WEBRTC_SUPPORT){this.container.classList.add("dplayer-loading");var s=this.options.pluginOptions.webtorrent,d=new window.WebTorrent(s);this.plugins.webtorrent=d;var p=e.src;e.src="",e.preload="metadata",e.addEventListener("durationchange",(function(){return a.container.classList.remove("dplayer-loading")}),{once:!0}),d.add(p,(function(e){e.files.find((function(e){return e.name.endsWith(".mp4")})).renderTo(a.video,{autoplay:a.options.autoplay,controls:!1})})),this.events.on("destroy",(function(){d.remove(p),d.destroy(),delete a.plugins.webtorrent}))}else this.notice("Error: Webtorrent is not supported.");else this.notice("Error: Can't find Webtorrent.")}}},{key:"initVideo",value:function(e,t){var a=this;this.initMSE(e,t),this.on("durationchange",(function(){1!==e.duration&&e.duration!==1/0&&(a.template.dtime.innerHTML=r.secondToTime(e.duration))})),this.on("progress",(function(){var t=e.buffered.length?e.buffered.end(e.buffered.length-1)/e.duration:0;a.bar.set("loaded",t,"width")})),this.on("error",(function(){a.video.error&&a.tran&&a.notice&&"webtorrent"!==a.type&&a.notice(a.tran("Video load failed"),-1)})),this.on("ended",(function(){a.bar.set("played",1,"width"),a.setting.loop?(a.seek(0),a.play()):a.pause(),a.danmaku&&(a.danmaku.danIndex=0)})),this.on("play",(function(){a.paused&&a.play(!0)})),this.on("pause",(function(){a.paused||a.pause(!0)})),this.on("timeupdate",(function(){a.bar.set("played",a.video.currentTime/a.video.duration,"width");var e=r.secondToTime(a.video.currentTime);a.template.ptime.innerHTML!==e&&(a.template.ptime.innerHTML=e)}));for(var n=function(t){e.addEventListener(a.events.videoEvents[t],(function(){a.events.trigger(a.events.videoEvents[t])}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:2e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=n,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("notice_show",e),a>0&&(this.noticeTime=setTimeout((function(){t.template.notice.style.opacity=0,t.events.trigger("notice_hide")}),a))}},{key:"resize",value:function(){this.danmaku&&this.danmaku.resize(),this.controller.thumbnails&&this.controller.thumbnails.resize(160,this.video.videoHeight/this.video.videoWidth*160,this.template.barWrap.offsetWidth),this.events.trigger("resize")}},{key:"speed",value:function(e){this.video.playbackRate=e}},{key:"destroy",value:function(){Pe.splice(Pe.indexOf(this),1),this.pause(),this.controller.destroy(),this.timer.destroy(),this.video.src="",this.container.innerHTML="",this.events.trigger("destroy")}}])&&Ae(t.prototype,a),o&&Ae(t,o),e}();console.log("\n".concat(" %c DPlayer v","1.26.0"," ").concat("63275c8"," %c http://dplayer.js.org ","\n","\n"),"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;");t.default=je}]).default})); exports('player', window.DPlayer); }); diff --git a/asset/js/union.js b/asset/js/union.js index 2d72cf6..5e190f6 100644 --- a/asset/js/union.js +++ b/asset/js/union.js @@ -1,4 +1,4 @@ -layui.define(['jquery', 'mojia', 'form', 'element', 'layer', 'income'], function(exports) { +layui.define(['income'], function(exports) { var $ = layui.jquery; var mojia = { 'global': { @@ -12,7 +12,8 @@ layui.define(['jquery', 'mojia', 'form', 'element', 'layer', 'income'], function }, 'lister': { 'name': function(name, str) { - return name.substring(0, name.indexOf(str)); + if (name.indexOf(str) == -1) return name; + else return name.substring(0, name.indexOf(str)); }, 'list': function(title, name, favs, data, type) { $.post(magic.tpl + 'asset/exc/create.php?id=col', data, function(data) { @@ -137,7 +138,6 @@ layui.define(['jquery', 'mojia', 'form', 'element', 'layer', 'income'], function if (!that.attr('data-url')) return false; if (window.top != window.self) { if ($(window.parent.document).find('iframe[lay-id="' + that.attr('data-id') + '"]')[0]) { - console.log(that.attr('data-id')); parent.layui.element.tabChange('macTab', that.attr('data-id')); event.stopPropagation(); return false; @@ -295,16 +295,18 @@ layui.define(['jquery', 'mojia', 'form', 'element', 'layer', 'income'], function var body = layer.getChildFrame('body', index); var name = that.attr('data-name').substring(0, 2); var name = data.indexOf('m3u8') != -1 ? name + '在线' : (data.indexOf('yun') != -1 ? name + '云播' : that.attr('data-name')); + body.find('button[type="submit"]').attr('data-child', 'no'); if (!body.find('#from').val()) body.find('#from').val(data); if (!body.find('#sort').val()) body.find('#sort').val(layui.income.unions[data] ? layui.income.unions[data][0].sort : 999); - if (!body.find('#show').val()) body.find('#show').val(layui.income.unions[data] ? layui.income.unions[data][0].name : name); + if (!body.find('#show').val()) body.find('#show').val(layui.income.unions[data] ? layui.income.unions[data][0].name : mojia.lister.name(name, '【')); if (!body.find('#des').val()) body.find('#des').val(that.attr('data-url').split('/')[2]); if (!body.find('textarea[name="tip"]').val()) body.find('textarea[name="tip"]').val(layui.income.unions[data] ? layui.income.unions[data][0].tips : '在线' + that.attr('data-text')); if (body.find('#rad-1').is(':checked')) body.find('#rad-1').attr('checked', false).next('.layui-form-radio').removeClass('layui-form-radioed').find('i').removeClass('layui-anim-scaleSpring').html(''); if (!body.find('#rad-2').is(':checked')) body.find('#rad-2').attr('checked', true).next('.layui-form-radio').addClass('layui-form-radioed').find('i').addClass('layui-anim-scaleSpring').html(''); - if (body.find('input[name="ps"]').eq(0).is(':checked')) body.find('input[name="ps"]').eq(0).attr('checked', false).next('.layui-form-radio').removeClass('layui-form-radioed').find('i').removeClass('layui-anim-scaleSpring').html(''); - if (!body.find('input[name="ps"]').eq(1).is(':checked')) body.find('input[name="ps"]').eq(1).attr('checked', true).next('.layui-form-radio').addClass('layui-form-radioed').find('i').addClass('layui-anim-scaleSpring').html(''); - body.find('button[type="submit"]').attr('data-child', 'no'); + if (data.indexOf('m3u8') == -1) { + if (body.find('input[name="ps"]').eq(0).is(':checked')) body.find('input[name="ps"]').eq(0).attr('checked', false).next('.layui-form-radio').removeClass('layui-form-radioed').find('i').removeClass('layui-anim-scaleSpring').html(''); + if (!body.find('input[name="ps"]').eq(1).is(':checked')) body.find('input[name="ps"]').eq(1).attr('checked', true).next('.layui-form-radio').addClass('layui-form-radioed').find('i').addClass('layui-anim-scaleSpring').html(''); + } } }); } diff --git a/html/actor/detail.html b/html/actor/detail.html index 14b017c..d68b08e 100644 --- a/html/actor/detail.html +++ b/html/actor/detail.html @@ -21,7 +21,7 @@

    - {$obj.actor_content|mac_default='暂无明星简介'} + {:mac_default(mac_url_content_img(moJiaHtmlTags($obj[mac_get_mid_code($maccms['mid']).'_content'])),'暂无简介')}
    diff --git a/html/admin/config.html b/html/admin/config.html index 4d327ab..8e27ff5 100644 --- a/html/admin/config.html +++ b/html/admin/config.html @@ -1,5 +1,4 @@ checkLogin()['code']!=1) header('location:'.mac_url('index/index')); ?> - \ No newline at end of file diff --git a/html/admin/header.html b/html/admin/header.html index 56621cd..8a7e257 100644 --- a/html/admin/header.html +++ b/html/admin/header.html @@ -3,10 +3,10 @@ 魔加主题设置 {include file="tinier/config,admin/config,tinier/metaer"} - - + + {include file="tinier/colour"} - + - + diff --git a/html/admin/mojias.html b/html/admin/mojias.html index 4336f52..bb3a6f0 100644 --- a/html/admin/mojias.html +++ b/html/admin/mojias.html @@ -1,5 +1,5 @@
    -
    +

    欢迎使用大橙影视模板 {$config['name']},用心做模板,让你体验不一样的苹果CMS!

    当前主题版本:{$config['version']}已经是最新版啦!

    diff --git a/html/admin/navbar.html b/html/admin/navbar.html index b26a770..f4d7253 100644 --- a/html/admin/navbar.html +++ b/html/admin/navbar.html @@ -55,7 +55,7 @@ - + {maccms:foreach name=":explode(',','1,2,3,5,6,7,8,9,10,11')"} {/maccms:foreach} @@ -135,11 +135,12 @@ @@ -159,11 +160,12 @@ diff --git a/html/admin/others.html b/html/admin/others.html index a9385cd..2f24246 100644 --- a/html/admin/others.html +++ b/html/admin/others.html @@ -40,6 +40,20 @@ + + + + + + + + + + + @@ -170,7 +184,7 @@ - + +
    {assign name="download" value=":str_replace(array('thunder','magnet','ed2k','pan.baidu.com','share.weiyun.com'),'',$sub.url,$count)"} - {$sub.name} + {$sub.name}
    {/maccms:foreach} @@ -59,11 +62,11 @@

    扫描二维
  • {if$popedom.code==1||$popedom.code==''}
    - +
    {assign name="download" value=":str_replace(array('thunder','magnet','ed2k','pan.baidu.com','share.weiyun.com'),'',$obj['vod_down_list'][$param['sid']]['urls'][$param['nid']]['url'],$count)"} - {$obj['vod_down_list'][$param['sid']]['urls'][$param['nid']]['name']} + {$obj['vod_down_list'][$param['sid']]['urls'][$param['nid']]['name']}
    {else}
    diff --git a/html/tinier/qrcode.html b/html/tinier/qrcode.html index 84589ed..380acd3 100644 --- a/html/tinier/qrcode.html +++ b/html/tinier/qrcode.html @@ -1,6 +1,7 @@

    扫描二维码打开

    - + {assign name="chain" value="$mojia['other']['share']['agent']?(stristr($mojia['other']['chain']['apis'],'asset/exc/create')==true&&stristr($mojia['other']['icon']['pics'],'//')==true?$template:'').(stristr($mojia['other']['icon']['pics'],'//')==true?$mojia['other']['chain']['apis']:''):''"} +
    \ No newline at end of file diff --git a/html/tinier/videos.html b/html/tinier/videos.html index f0b9e69..be09008 100644 --- a/html/tinier/videos.html +++ b/html/tinier/videos.html @@ -102,7 +102,7 @@

  • {else}
  • - 刷新 + 刷新
  • {/if}{if$GLOBALS['config']['user']['status']}{assign name="somake" value=":model('Ulog')->listData(array('ulog_type'=>'2','ulog_rid'=>$obj['vod_id'],'ulog_sid'=>$param['sid'],'ulog_nid'=>$param['nid'],'user_id'=>$user['user_id']),'ulog_time desc')"}
  • @@ -110,7 +110,7 @@

  • {/if}{if$mojia['other']['share']['state']}
  • - 分享 + 分享
  • {/if}
  • diff --git a/html/topic/detail.html b/html/topic/detail.html index 1108953..9a77f83 100644 --- a/html/topic/detail.html +++ b/html/topic/detail.html @@ -43,7 +43,7 @@

    - {$obj.topic_content|mac_default='暂无简介'} + {:mac_default(mac_url_content_img(moJiaHtmlTags($obj[mac_get_mid_code($maccms['mid']).'_content'])),'暂无简介')}
    diff --git a/html/user/banner.html b/html/user/banner.html index b84a5a6..d7edb1a 100644 --- a/html/user/banner.html +++ b/html/user/banner.html @@ -2,8 +2,8 @@
    - - + +
    {$obj.user_nick_name|mac_default=$obj.user_name}
    diff --git a/html/user/info.html b/html/user/info.html index 3123697..56ef539 100644 --- a/html/user/info.html +++ b/html/user/info.html @@ -25,16 +25,16 @@
    QQ号 - +
    邮箱 - + {if!$obj.user_email}绑定{else}解绑{/if}
    手机号 - + {if!$obj.user_phone}绑定{else}解绑{/if}
    diff --git a/html/website/detail.html b/html/website/detail.html index dbf3e91..b7c3846 100644 --- a/html/website/detail.html +++ b/html/website/detail.html @@ -16,7 +16,7 @@

    - {$obj.website_content|mac_default='暂无站点简介'} + {:mac_default(mac_url_content_img(moJiaHtmlTags($obj[mac_get_mid_code($maccms['mid']).'_content'])),'暂无简介')}
    diff --git a/info.ini b/info.ini index dfec619..bac3b31 100644 --- a/info.ini +++ b/info.ini @@ -5,6 +5,6 @@ webtest = https://mojia.amujie.com qqcode = 1570457334 qqgroup = 137183109 addgroup= 51Zakp5 -lastdate= 2020-07-17 -version = 1.0.9 +lastdate= 2020-07-24 +version = 1.1.0 adsdir = about \ No newline at end of file