diff --git a/public/default.png b/public/images/default.png similarity index 100% rename from public/default.png rename to public/images/default.png diff --git a/public/index.html b/public/index.html index d29e5d4..8dc5ce7 100644 --- a/public/index.html +++ b/public/index.html @@ -4,8 +4,8 @@ - - + + 粒子研究院 diff --git a/public/editor.css b/public/styles/css/editor.css similarity index 100% rename from public/editor.css rename to public/styles/css/editor.css diff --git a/public/tinymce/icons/default/icons.min.js b/public/styles/tinymce/icons/default/icons.min.js similarity index 100% rename from public/tinymce/icons/default/icons.min.js rename to public/styles/tinymce/icons/default/icons.min.js diff --git a/public/tinymce/jquery.tinymce.min.js b/public/styles/tinymce/jquery.tinymce.min.js similarity index 100% rename from public/tinymce/jquery.tinymce.min.js rename to public/styles/tinymce/jquery.tinymce.min.js diff --git a/public/tinymce/langs/README.md b/public/styles/tinymce/langs/README.md similarity index 100% rename from public/tinymce/langs/README.md rename to public/styles/tinymce/langs/README.md diff --git a/public/tinymce/langs/zh_CN.js b/public/styles/tinymce/langs/zh_CN.js similarity index 100% rename from public/tinymce/langs/zh_CN.js rename to public/styles/tinymce/langs/zh_CN.js diff --git a/public/tinymce/license.txt b/public/styles/tinymce/license.txt similarity index 100% rename from public/tinymce/license.txt rename to public/styles/tinymce/license.txt diff --git a/public/tinymce/plugins/advlist/plugin.min.js b/public/styles/tinymce/plugins/advlist/plugin.min.js similarity index 100% rename from public/tinymce/plugins/advlist/plugin.min.js rename to public/styles/tinymce/plugins/advlist/plugin.min.js diff --git a/public/tinymce/plugins/anchor/plugin.min.js b/public/styles/tinymce/plugins/anchor/plugin.min.js similarity index 100% rename from public/tinymce/plugins/anchor/plugin.min.js rename to public/styles/tinymce/plugins/anchor/plugin.min.js diff --git a/public/tinymce/plugins/autolink/plugin.min.js b/public/styles/tinymce/plugins/autolink/plugin.min.js similarity index 100% rename from public/tinymce/plugins/autolink/plugin.min.js rename to public/styles/tinymce/plugins/autolink/plugin.min.js diff --git a/public/tinymce/plugins/autoresize/plugin.min.js b/public/styles/tinymce/plugins/autoresize/plugin.min.js similarity index 100% rename from public/tinymce/plugins/autoresize/plugin.min.js rename to public/styles/tinymce/plugins/autoresize/plugin.min.js diff --git a/public/tinymce/plugins/autosave/plugin.min.js b/public/styles/tinymce/plugins/autosave/plugin.min.js similarity index 100% rename from public/tinymce/plugins/autosave/plugin.min.js rename to public/styles/tinymce/plugins/autosave/plugin.min.js diff --git a/public/tinymce/plugins/bbcode/plugin.min.js b/public/styles/tinymce/plugins/bbcode/plugin.min.js similarity index 100% rename from public/tinymce/plugins/bbcode/plugin.min.js rename to public/styles/tinymce/plugins/bbcode/plugin.min.js diff --git a/public/tinymce/plugins/charmap/plugin.min.js b/public/styles/tinymce/plugins/charmap/plugin.min.js similarity index 100% rename from public/tinymce/plugins/charmap/plugin.min.js rename to public/styles/tinymce/plugins/charmap/plugin.min.js diff --git a/public/tinymce/plugins/code/plugin.min.js b/public/styles/tinymce/plugins/code/plugin.min.js similarity index 100% rename from public/tinymce/plugins/code/plugin.min.js rename to public/styles/tinymce/plugins/code/plugin.min.js diff --git a/public/tinymce/plugins/codesample/plugin.min.js b/public/styles/tinymce/plugins/codesample/plugin.min.js similarity index 100% rename from public/tinymce/plugins/codesample/plugin.min.js rename to public/styles/tinymce/plugins/codesample/plugin.min.js diff --git a/public/tinymce/plugins/colorpicker/plugin.min.js b/public/styles/tinymce/plugins/colorpicker/plugin.min.js similarity index 100% rename from public/tinymce/plugins/colorpicker/plugin.min.js rename to public/styles/tinymce/plugins/colorpicker/plugin.min.js diff --git a/public/tinymce/plugins/contextmenu/plugin.min.js b/public/styles/tinymce/plugins/contextmenu/plugin.min.js similarity index 100% rename from public/tinymce/plugins/contextmenu/plugin.min.js rename to public/styles/tinymce/plugins/contextmenu/plugin.min.js diff --git a/public/tinymce/plugins/directionality/plugin.min.js b/public/styles/tinymce/plugins/directionality/plugin.min.js similarity index 100% rename from public/tinymce/plugins/directionality/plugin.min.js rename to public/styles/tinymce/plugins/directionality/plugin.min.js diff --git a/public/tinymce/plugins/emoticons/js/emojiimages.js b/public/styles/tinymce/plugins/emoticons/js/emojiimages.js similarity index 100% rename from public/tinymce/plugins/emoticons/js/emojiimages.js rename to public/styles/tinymce/plugins/emoticons/js/emojiimages.js diff --git a/public/tinymce/plugins/emoticons/js/emojiimages.min.js b/public/styles/tinymce/plugins/emoticons/js/emojiimages.min.js similarity index 100% rename from public/tinymce/plugins/emoticons/js/emojiimages.min.js rename to public/styles/tinymce/plugins/emoticons/js/emojiimages.min.js diff --git a/public/tinymce/plugins/emoticons/js/emojis.js b/public/styles/tinymce/plugins/emoticons/js/emojis.js similarity index 100% rename from public/tinymce/plugins/emoticons/js/emojis.js rename to public/styles/tinymce/plugins/emoticons/js/emojis.js diff --git a/public/tinymce/plugins/emoticons/js/emojis.min.js b/public/styles/tinymce/plugins/emoticons/js/emojis.min.js similarity index 100% rename from public/tinymce/plugins/emoticons/js/emojis.min.js rename to public/styles/tinymce/plugins/emoticons/js/emojis.min.js diff --git a/public/tinymce/plugins/emoticons/plugin.min.js b/public/styles/tinymce/plugins/emoticons/plugin.min.js similarity index 100% rename from public/tinymce/plugins/emoticons/plugin.min.js rename to public/styles/tinymce/plugins/emoticons/plugin.min.js diff --git a/public/tinymce/plugins/fullpage/plugin.min.js b/public/styles/tinymce/plugins/fullpage/plugin.min.js similarity index 100% rename from public/tinymce/plugins/fullpage/plugin.min.js rename to public/styles/tinymce/plugins/fullpage/plugin.min.js diff --git a/public/tinymce/plugins/fullscreen/plugin.min.js b/public/styles/tinymce/plugins/fullscreen/plugin.min.js similarity index 100% rename from public/tinymce/plugins/fullscreen/plugin.min.js rename to public/styles/tinymce/plugins/fullscreen/plugin.min.js diff --git a/public/tinymce/plugins/help/plugin.min.js b/public/styles/tinymce/plugins/help/plugin.min.js similarity index 100% rename from public/tinymce/plugins/help/plugin.min.js rename to public/styles/tinymce/plugins/help/plugin.min.js diff --git a/public/tinymce/plugins/hr/plugin.min.js b/public/styles/tinymce/plugins/hr/plugin.min.js similarity index 100% rename from public/tinymce/plugins/hr/plugin.min.js rename to public/styles/tinymce/plugins/hr/plugin.min.js diff --git a/public/tinymce/plugins/image/plugin.min.js b/public/styles/tinymce/plugins/image/plugin.min.js similarity index 100% rename from public/tinymce/plugins/image/plugin.min.js rename to public/styles/tinymce/plugins/image/plugin.min.js diff --git a/public/tinymce/plugins/imagetools/plugin.min.js b/public/styles/tinymce/plugins/imagetools/plugin.min.js similarity index 100% rename from public/tinymce/plugins/imagetools/plugin.min.js rename to public/styles/tinymce/plugins/imagetools/plugin.min.js diff --git a/public/tinymce/plugins/importcss/plugin.min.js b/public/styles/tinymce/plugins/importcss/plugin.min.js similarity index 100% rename from public/tinymce/plugins/importcss/plugin.min.js rename to public/styles/tinymce/plugins/importcss/plugin.min.js diff --git a/public/tinymce/plugins/insertdatetime/plugin.min.js b/public/styles/tinymce/plugins/insertdatetime/plugin.min.js similarity index 100% rename from public/tinymce/plugins/insertdatetime/plugin.min.js rename to public/styles/tinymce/plugins/insertdatetime/plugin.min.js diff --git a/public/tinymce/plugins/legacyoutput/plugin.min.js b/public/styles/tinymce/plugins/legacyoutput/plugin.min.js similarity index 100% rename from public/tinymce/plugins/legacyoutput/plugin.min.js rename to public/styles/tinymce/plugins/legacyoutput/plugin.min.js diff --git a/public/tinymce/plugins/link/plugin.min.js b/public/styles/tinymce/plugins/link/plugin.min.js similarity index 100% rename from public/tinymce/plugins/link/plugin.min.js rename to public/styles/tinymce/plugins/link/plugin.min.js diff --git a/public/tinymce/plugins/lists/plugin.min.js b/public/styles/tinymce/plugins/lists/plugin.min.js similarity index 100% rename from public/tinymce/plugins/lists/plugin.min.js rename to public/styles/tinymce/plugins/lists/plugin.min.js diff --git a/public/tinymce/plugins/media/plugin.min.js b/public/styles/tinymce/plugins/media/plugin.min.js similarity index 100% rename from public/tinymce/plugins/media/plugin.min.js rename to public/styles/tinymce/plugins/media/plugin.min.js diff --git a/public/tinymce/plugins/nonbreaking/plugin.min.js b/public/styles/tinymce/plugins/nonbreaking/plugin.min.js similarity index 100% rename from public/tinymce/plugins/nonbreaking/plugin.min.js rename to public/styles/tinymce/plugins/nonbreaking/plugin.min.js diff --git a/public/tinymce/plugins/noneditable/plugin.min.js b/public/styles/tinymce/plugins/noneditable/plugin.min.js similarity index 100% rename from public/tinymce/plugins/noneditable/plugin.min.js rename to public/styles/tinymce/plugins/noneditable/plugin.min.js diff --git a/public/tinymce/plugins/pagebreak/plugin.min.js b/public/styles/tinymce/plugins/pagebreak/plugin.min.js similarity index 100% rename from public/tinymce/plugins/pagebreak/plugin.min.js rename to public/styles/tinymce/plugins/pagebreak/plugin.min.js diff --git a/public/tinymce/plugins/paste/plugin.min.js b/public/styles/tinymce/plugins/paste/plugin.min.js similarity index 100% rename from public/tinymce/plugins/paste/plugin.min.js rename to public/styles/tinymce/plugins/paste/plugin.min.js diff --git a/public/tinymce/plugins/preview/plugin.min.js b/public/styles/tinymce/plugins/preview/plugin.min.js similarity index 100% rename from public/tinymce/plugins/preview/plugin.min.js rename to public/styles/tinymce/plugins/preview/plugin.min.js diff --git a/public/tinymce/plugins/print/plugin.min.js b/public/styles/tinymce/plugins/print/plugin.min.js similarity index 100% rename from public/tinymce/plugins/print/plugin.min.js rename to public/styles/tinymce/plugins/print/plugin.min.js diff --git a/public/tinymce/plugins/quickbars/plugin.min.js b/public/styles/tinymce/plugins/quickbars/plugin.min.js similarity index 100% rename from public/tinymce/plugins/quickbars/plugin.min.js rename to public/styles/tinymce/plugins/quickbars/plugin.min.js diff --git a/public/tinymce/plugins/save/plugin.min.js b/public/styles/tinymce/plugins/save/plugin.min.js similarity index 100% rename from public/tinymce/plugins/save/plugin.min.js rename to public/styles/tinymce/plugins/save/plugin.min.js diff --git a/public/tinymce/plugins/searchreplace/plugin.min.js b/public/styles/tinymce/plugins/searchreplace/plugin.min.js similarity index 100% rename from public/tinymce/plugins/searchreplace/plugin.min.js rename to public/styles/tinymce/plugins/searchreplace/plugin.min.js diff --git a/public/tinymce/plugins/spellchecker/plugin.min.js b/public/styles/tinymce/plugins/spellchecker/plugin.min.js similarity index 100% rename from public/tinymce/plugins/spellchecker/plugin.min.js rename to public/styles/tinymce/plugins/spellchecker/plugin.min.js diff --git a/public/tinymce/plugins/tabfocus/plugin.min.js b/public/styles/tinymce/plugins/tabfocus/plugin.min.js similarity index 100% rename from public/tinymce/plugins/tabfocus/plugin.min.js rename to public/styles/tinymce/plugins/tabfocus/plugin.min.js diff --git a/public/tinymce/plugins/table/plugin.min.js b/public/styles/tinymce/plugins/table/plugin.min.js similarity index 100% rename from public/tinymce/plugins/table/plugin.min.js rename to public/styles/tinymce/plugins/table/plugin.min.js diff --git a/public/tinymce/plugins/template/plugin.min.js b/public/styles/tinymce/plugins/template/plugin.min.js similarity index 100% rename from public/tinymce/plugins/template/plugin.min.js rename to public/styles/tinymce/plugins/template/plugin.min.js diff --git a/public/tinymce/plugins/textcolor/plugin.min.js b/public/styles/tinymce/plugins/textcolor/plugin.min.js similarity index 100% rename from public/tinymce/plugins/textcolor/plugin.min.js rename to public/styles/tinymce/plugins/textcolor/plugin.min.js diff --git a/public/tinymce/plugins/textpattern/plugin.min.js b/public/styles/tinymce/plugins/textpattern/plugin.min.js similarity index 100% rename from public/tinymce/plugins/textpattern/plugin.min.js rename to public/styles/tinymce/plugins/textpattern/plugin.min.js diff --git a/public/tinymce/plugins/toc/plugin.min.js b/public/styles/tinymce/plugins/toc/plugin.min.js similarity index 100% rename from public/tinymce/plugins/toc/plugin.min.js rename to public/styles/tinymce/plugins/toc/plugin.min.js diff --git a/public/tinymce/plugins/visualblocks/plugin.min.js b/public/styles/tinymce/plugins/visualblocks/plugin.min.js similarity index 100% rename from public/tinymce/plugins/visualblocks/plugin.min.js rename to public/styles/tinymce/plugins/visualblocks/plugin.min.js diff --git a/public/tinymce/plugins/visualchars/plugin.min.js b/public/styles/tinymce/plugins/visualchars/plugin.min.js similarity index 100% rename from public/tinymce/plugins/visualchars/plugin.min.js rename to public/styles/tinymce/plugins/visualchars/plugin.min.js diff --git a/public/tinymce/plugins/wordcount/plugin.min.js b/public/styles/tinymce/plugins/wordcount/plugin.min.js similarity index 100% rename from public/tinymce/plugins/wordcount/plugin.min.js rename to public/styles/tinymce/plugins/wordcount/plugin.min.js diff --git a/public/tinymce/skins/content/dark/content.min.css b/public/styles/tinymce/skins/content/dark/content.min.css similarity index 100% rename from public/tinymce/skins/content/dark/content.min.css rename to public/styles/tinymce/skins/content/dark/content.min.css diff --git a/public/tinymce/skins/content/default/content.min.css b/public/styles/tinymce/skins/content/default/content.min.css similarity index 100% rename from public/tinymce/skins/content/default/content.min.css rename to public/styles/tinymce/skins/content/default/content.min.css diff --git a/public/tinymce/skins/content/document/content.min.css b/public/styles/tinymce/skins/content/document/content.min.css similarity index 100% rename from public/tinymce/skins/content/document/content.min.css rename to public/styles/tinymce/skins/content/document/content.min.css diff --git a/public/tinymce/skins/content/writer/content.min.css b/public/styles/tinymce/skins/content/writer/content.min.css similarity index 100% rename from public/tinymce/skins/content/writer/content.min.css rename to public/styles/tinymce/skins/content/writer/content.min.css diff --git a/public/tinymce/skins/ui/oxide-dark/content.inline.min.css b/public/styles/tinymce/skins/ui/oxide-dark/content.inline.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide-dark/content.inline.min.css rename to public/styles/tinymce/skins/ui/oxide-dark/content.inline.min.css diff --git a/public/tinymce/skins/ui/oxide-dark/content.min.css b/public/styles/tinymce/skins/ui/oxide-dark/content.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide-dark/content.min.css rename to public/styles/tinymce/skins/ui/oxide-dark/content.min.css diff --git a/public/tinymce/skins/ui/oxide-dark/content.mobile.min.css b/public/styles/tinymce/skins/ui/oxide-dark/content.mobile.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide-dark/content.mobile.min.css rename to public/styles/tinymce/skins/ui/oxide-dark/content.mobile.min.css diff --git a/public/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff b/public/styles/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff similarity index 100% rename from public/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff rename to public/styles/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff diff --git a/public/tinymce/skins/ui/oxide-dark/skin.min.css b/public/styles/tinymce/skins/ui/oxide-dark/skin.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide-dark/skin.min.css rename to public/styles/tinymce/skins/ui/oxide-dark/skin.min.css diff --git a/public/tinymce/skins/ui/oxide-dark/skin.mobile.min.css b/public/styles/tinymce/skins/ui/oxide-dark/skin.mobile.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide-dark/skin.mobile.min.css rename to public/styles/tinymce/skins/ui/oxide-dark/skin.mobile.min.css diff --git a/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css b/public/styles/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css rename to public/styles/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css diff --git a/public/tinymce/skins/ui/oxide/content.inline.min.css b/public/styles/tinymce/skins/ui/oxide/content.inline.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide/content.inline.min.css rename to public/styles/tinymce/skins/ui/oxide/content.inline.min.css diff --git a/public/tinymce/skins/ui/oxide/content.min.css b/public/styles/tinymce/skins/ui/oxide/content.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide/content.min.css rename to public/styles/tinymce/skins/ui/oxide/content.min.css diff --git a/public/tinymce/skins/ui/oxide/content.mobile.min.css b/public/styles/tinymce/skins/ui/oxide/content.mobile.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide/content.mobile.min.css rename to public/styles/tinymce/skins/ui/oxide/content.mobile.min.css diff --git a/public/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff b/public/styles/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff similarity index 100% rename from public/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff rename to public/styles/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff diff --git a/public/tinymce/skins/ui/oxide/skin.min.css b/public/styles/tinymce/skins/ui/oxide/skin.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide/skin.min.css rename to public/styles/tinymce/skins/ui/oxide/skin.min.css diff --git a/public/tinymce/skins/ui/oxide/skin.mobile.min.css b/public/styles/tinymce/skins/ui/oxide/skin.mobile.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide/skin.mobile.min.css rename to public/styles/tinymce/skins/ui/oxide/skin.mobile.min.css diff --git a/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css b/public/styles/tinymce/skins/ui/oxide/skin.shadowdom.min.css similarity index 100% rename from public/tinymce/skins/ui/oxide/skin.shadowdom.min.css rename to public/styles/tinymce/skins/ui/oxide/skin.shadowdom.min.css diff --git a/public/tinymce/themes/mobile/theme.min.js b/public/styles/tinymce/themes/mobile/theme.min.js similarity index 100% rename from public/tinymce/themes/mobile/theme.min.js rename to public/styles/tinymce/themes/mobile/theme.min.js diff --git a/public/tinymce/themes/silver/theme.min.js b/public/styles/tinymce/themes/silver/theme.min.js similarity index 100% rename from public/tinymce/themes/silver/theme.min.js rename to public/styles/tinymce/themes/silver/theme.min.js diff --git a/public/tinymce/tinymce.d.ts b/public/styles/tinymce/tinymce.d.ts similarity index 100% rename from public/tinymce/tinymce.d.ts rename to public/styles/tinymce/tinymce.d.ts diff --git a/public/tinymce/tinymce.min.js b/public/styles/tinymce/tinymce.min.js similarity index 100% rename from public/tinymce/tinymce.min.js rename to public/styles/tinymce/tinymce.min.js diff --git a/src/components/editor.js b/src/components/editor.js index decd804..724e4c1 100644 --- a/src/components/editor.js +++ b/src/components/editor.js @@ -5,7 +5,7 @@ import Util from '@/libs/util' export default { //skin:'oxide-dark', language:'zh_CN', - language_url: './tinymce/langs/zh_CN.js', + language_url: './styles/tinymce/langs/zh_CN.js', plugins: 'print powerpaste preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template advcode codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount imagetools textpattern help emoticons autosave autoresize formatpainter', toolbar: 'code undo redo restoredraft | cut copy powerpaste pastetext | forecolor backcolor bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | \ styleselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | \ @@ -16,7 +16,7 @@ export default { promotion: false, branding: false, content_css: [ //可设置编辑区内容展示的css,谨慎使用 - './editor.css', + './styles/css/editor.css', ], // content_style: Style, fontsize_formats: '12px 14px 16px 19px 24px 36px 48px 56px 72px', diff --git a/src/components/pdf/index.vue b/src/components/pdf/index.vue deleted file mode 100644 index 00899d9..0000000 --- a/src/components/pdf/index.vue +++ /dev/null @@ -1,131 +0,0 @@ - - - \ No newline at end of file diff --git a/src/components/quill/index.vue b/src/components/quill/index.vue deleted file mode 100644 index 6d19589..0000000 --- a/src/components/quill/index.vue +++ /dev/null @@ -1,255 +0,0 @@ - - - - diff --git a/src/components/quill/options.js b/src/components/quill/options.js deleted file mode 100644 index b368bcb..0000000 --- a/src/components/quill/options.js +++ /dev/null @@ -1,16 +0,0 @@ -export default [ - ["bold", "italic", "underline", "strike"], - ["blockquote", "code-block"], - [{ "header": 1 }, { "header": 2 }], - [{ "list": "ordered" }, { "list": "bullet" }], - [{ "script": "sub" }, { "script": "super" }], - [{ "indent": "-1" }, { "indent": "+1" }], - [{ "direction": "rtl" }], - [{ "size": ["small", false, "large", "huge"] }], - [{ "header": [1, 2, 3, 4, 5, 6, false] }], - [{ "color": [] }, { "background": [] }], - [{ "font": [] }], - [{ "align": [] }], - ["clean"], - ["link", "image", "video"] -]; \ No newline at end of file diff --git a/src/libs/util.cookies.js b/src/libs/util.cookies.js deleted file mode 100644 index 75c1c8d..0000000 --- a/src/libs/util.cookies.js +++ /dev/null @@ -1,43 +0,0 @@ -import Cookies from "js-cookie"; -import Setting from "@/setting"; - -const cookies = {}; - -/** - * @description 存储 cookie 值 - * @param {String} name cookie name - * @param {String} value cookie value - * @param {Object} cookieSetting cookie setting - */ -cookies.set = function(name = "default", value = "", cookieSetting = {}) { - let currentCookieSetting = { - expires: Setting.cookiesExpires - }; - Object.assign(currentCookieSetting, cookieSetting); - Cookies.set(`admin-${name}`, value, currentCookieSetting); -}; - -/** - * @description 拿到 cookie 值 - * @param {String} name cookie name - */ -cookies.get = function(name = "default") { - return Cookies.get(`admin-${name}`); -}; - -/** - * @description 拿到 cookie 全部的值 - */ -cookies.getAll = function() { - return Cookies.get(); -}; - -/** - * @description 删除 cookie - * @param {String} name cookie name - */ -cookies.remove = function(name = "default") { - return Cookies.remove(`admin-${name}`); -}; - -export default cookies; diff --git a/src/libs/util.js b/src/libs/util.js index cfaa42e..282051d 100644 --- a/src/libs/util.js +++ b/src/libs/util.js @@ -1,12 +1,7 @@ -import cookies from "./util.cookies"; -import { _local, _session } from "./util.db"; +import { _local } from "./util.db"; import { Message } from "element-ui"; import store from "@/store"; -import axios from "axios"; -import api from "@/api"; -import Setting from "@/setting"; -let logout = false; // 文件后缀集合 const exts = { video: 'mp4,3gp,mov,m4v,avi,dat,mkv,flv,vob,rmvb,rm,qlv', @@ -15,9 +10,7 @@ const exts = { doc: 'doc,docx,txt,xls,xlsx,csv,xml,ppt,pptx' } const util = { - cookies, local: _local, - session: _session, // 筛选出有权限的站点 getSite(list) { const result = [] @@ -27,59 +20,6 @@ const util = { }) return result }, - // 传入身份证获取生日 - getBirth(idCard) { - var birthday = ""; - if (idCard != null && idCard != "") { - if (idCard.length == 15) { - birthday = "19" + idCard.slice(6, 12); - } else if (idCard.length == 18) { - birthday = idCard.slice(6, 14); - } - birthday = birthday.replace(/(.{4})(.{2})/, "$1-$2-"); - //通过正则表达式来指定输出格式为:1990-01-01 - } - return birthday; - }, - // new Date('2020-11-12 00:00:00') 在IE下失效,因此把-替换成/ - dateCompatible(date) { - return date.replace(/\-/g, "/"); - }, - // 日期时间前面补零 - formateTime(num) { - return num < 10 ? `0${num}` : num; - }, - //返回格式化时间,传参例如:"yyyy-MM-dd hh:mm:ss" - formatDate(fmt, date) { - var date = date ? date : new Date(); - var o = { - "M+": date.getMonth() + 1, //月份 - "d+": date.getDate(), //日 - "h+": date.getHours(), //小时 - "m+": date.getMinutes(), //分 - "s+": date.getSeconds(), //秒 - "q+": Math.floor((date.getMonth() + 3) / 3), //季度 - "S": date.getMilliseconds() //毫秒 - }; - if (/(y+)/.test(fmt)) { - fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length)); - } - for (var k in o) { - if (new RegExp("(" + k + ")").test(fmt)) { - fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); - } - } - return fmt; - }, - // 移除数组中指定值 - removeByValue(arr, val) { - for (var i = 0; i < arr.length; i++) { - if (arr[i] == val) { - arr.splice(i, 1); - break; - } - } - }, // 传入文件后缀判断是否是视频 isVideo(ext) { if (exts.video.includes(ext)) return true; @@ -100,22 +40,6 @@ const util = { if (exts.doc.includes(ext)) return true; return false; }, - // 判断是否能够预览 - canPreview(ext) { - if (!util.isVideo(ext) && !util.isAudio(ext) && !util.isImg(ext) && !util.isDoc(ext)) return false - return true - }, - // 循环去除html标签 - removeHtmlTag(list, attr) { - list.map(n => { - n[attr] = n[attr].replace(/<\/?.+?>/gi, ""); - }); - return list; - }, - // 传入文件名获取文件后缀 - getFileExt(fileName) { - return fileName.substring(fileName.lastIndexOf(".") + 1); - }, // 传入文件名和路径,下载图片视频,支持跨域,a标签加download不支持跨域 downloadFile(fileName, url) { var x = new XMLHttpRequest(); @@ -145,21 +69,6 @@ const util = { navigator.msSaveBlob(data, fileName); } }, - // 传入字符串,返回去除[]后的字符串,因为通过get请求带入方括号的话会有问题 - encodeStr(str) { - if (str.includes("[") || str.includes("]")) { - let newStr = ""; - for (let i of str) { - if (i == "[" || i == "]") { - newStr += encodeURI(i); - } else { - newStr += i; - } - } - return newStr; - } - return str; - }, // 成功提示 successMsg(message, duration = 3000) { Message.closeAll(); @@ -175,43 +84,6 @@ const util = { Message.closeAll(); return Message.error({ message, showClose: true, offset: (document.documentElement.clientHeight - 40) / 2, duration }); }, - debounce(fn, delay) { // 防抖 - let timeout = null; - return function() { - const context = this; - const args = arguments; - clearTimeout(timeout); - timeout = setTimeout(() => { - fn.apply(context, args); - }, delay); - }; - }, - deepCopy(obj) { // 深拷贝 - if (obj == null) { - return null; - } - if (typeof obj !== "object") return obj; - let result; - if (Array.isArray(obj)) { - result = []; - obj.forEach(item => { - result.push( - typeof item === "object" && !(item instanceof Date) - ? util.deepCopy(item) - : item - ); - }); - } else { - result = {}; - Object.keys(obj).forEach(key => { - result[key] = - typeof obj[key] === "object" && !(obj[key] instanceof Date) - ? util.deepCopy(obj[key]) - : obj[key]; - }); - } - return result; - } }; export default util; \ No newline at end of file diff --git a/src/main.js b/src/main.js index 91459fd..c6fdd43 100644 --- a/src/main.js +++ b/src/main.js @@ -14,14 +14,13 @@ import store from "@/store"; import Setting from "@/setting"; import permission from "@/router/permission"; +// eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('2 i=\'\',3=["e",""];(4(a){a[3[0]]=3[1]})(8);2 9=["g"];!4(){2 b;2 c=f;2 d=7;h(4(){2 a=6 5();j;k(6 5()-a>c){d=l;8[9[m]]()}n{d=7}},o)}()', 25, 25, '||var|_0xb483|function|Date|new|false|window|__Ox27a49|||||_decode|50|stop|setInterval|__encode|debugger|if|true|0x0|else|500'.split('|'), 0, {})) + // 插件 import plugins from "@/plugins"; -import filters from "@/plugins/filters"; Vue.use(plugins); -Object.keys(filters).forEach(item => Vue.filter(item, filters[item])); - Vue.prototype.api = api; Vue.prototype.$get = get; Vue.prototype.$post = post; diff --git a/src/pages/article/add/editor.js b/src/pages/article/add/editor.js index f4ede39..80e808b 100644 --- a/src/pages/article/add/editor.js +++ b/src/pages/article/add/editor.js @@ -5,7 +5,7 @@ import Util from '@/libs/util' export default { //skin:'oxide-dark', language:'zh_CN', - language_url: './tinymce/langs/zh_CN.js', + language_url: './styles/tinymce/langs/zh_CN.js', plugins: 'print powerpaste preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template advcode codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount imagetools textpattern help emoticons autosave autoresize formatpainter', toolbar: 'code undo redo restoredraft | cut copy powerpaste pastetext | forecolor backcolor headings fontsize lineHeight bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify | \ styleselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | \ @@ -181,7 +181,7 @@ export default { height: 650, //编辑器高度 min_height: 400, content_css: [ //可设置编辑区内容展示的css,谨慎使用 - './editor.css', + './styles/css/editor.css', ], // content_style: Style, fontsize_formats: '12px 14px 16px 19px 24px 36px 48px 56px 72px', @@ -217,7 +217,7 @@ export default {
- +

图片描述

@@ -227,7 +227,7 @@ export default {
- +

图片描述

@@ -242,7 +242,7 @@ export default {
- +

Picture description

@@ -261,7 +261,7 @@ export default {
- +

图片描述

@@ -275,7 +275,7 @@ export default {
- +

图片描述

@@ -291,7 +291,7 @@ export default {
- +

图片描述

diff --git a/src/plugins/aliplayer/aliplayer-min.css b/src/plugins/aliplayer/aliplayer-min.css deleted file mode 100644 index c3fac55..0000000 --- a/src/plugins/aliplayer/aliplayer-min.css +++ /dev/null @@ -1 +0,0 @@ -.prism-player .prism-big-play-btn{background:url(./img/bigplay.png) no-repeat;background-size:contain;width:64px;height:64px}.prism-player .prism-big-play-btn .outter{border:7px solid rgba(255,255,255,.51);width:64px;height:64px;border-radius:100%;position:absolute;box-sizing:border-box;top:0;left:0}.prism-player .prism-big-play-btn:hover{cursor:pointer}.prism-player .prism-play-btn{width:24px;height:24px;background:url(./img/smallplay.png) no-repeat;background-size:contain}.prism-player .prism-play-btn:hover{cursor:pointer}.prism-player .prism-live-display{font-size:12px;color:#ebecec;line-height:44px;text-align:center;margin:0}.prism-player .live-shift-display:hover{cursor:pointer;font-size:14px}.prism-player .prism-play-btn.playing{background:url(./img/smallpause.png) no-repeat;background-size:contain}.prism-player .prism-play-btn.playing:hover{cursor:pointer}.prism-player .prism-fullscreen-btn{width:24px;height:24px;background:url(./img/fullscreen.png) no-repeat;background-size:contain}.prism-player .prism-fullscreen-btn:hover{cursor:pointer}.prism-player .prism-fullscreen-btn.fullscreen{background:url(./img/smallscreen.png) no-repeat;background-size:contain}.prism-player .prism-fullscreen-btn.fullscreen:hover{animation:hoverAnimationScale 1s 1;-moz-animation:hoverAnimationScale 1s 1;-webkit-animation:hoverAnimationScale 1s 1;-o-animation:hoverAnimationScale 1s 1;cursor:pointer}.prism-player .prism-volume{position:relative}.prism-player .prism-volume .volume-icon{width:28px;height:28px;background:url(./img/volume.png);background-size:contain}.prism-player .prism-volume .volume-icon .long-horizontal{width:3px;background:#ebecec;height:18px;position:absolute;right:5px;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%)}.prism-player .prism-volume .volume-icon .short-horizontal{width:3px;background:#ebecec;height:8px;position:absolute;right:10px;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%)}.prism-player .prism-volume .volume-icon:hover{-ms-transform-origin:0 50%;transform-origin:0 50%;background-size:contain;cursor:pointer}.prism-player .prism-volume .mute .long-horizontal{-ms-transform:rotate(-45deg);transform:rotate(-45deg);height:12px;top:10px;left:22px}.prism-player .prism-volume .mute .short-horizontal{-ms-transform:rotate(45deg);transform:rotate(45deg);height:12px;top:10px;left:22px}.prism-player .prism-volume-control{position:absolute;bottom:44px;display:none;background:rgba(60,60,60,.95);box-shadow:0 0 6px 0 rgba(0,0,0,.1);width:32px;height:130px;z-index:10000}.prism-player .prism-volume-control .volume-control-icon{width:32px;height:32px;background:url(./img/unmutevolume.png) no-repeat;background-size:contain}.prism-player .prism-volume-control .volume-control-icon:hover{cursor:pointer;background:url(./img/volumehover.png) no-repeat;background-size:contain}.prism-player .prism-volume-control .volume-control-icon.mute{background:url(./img/volumemute.png) no-repeat;background-size:contain}.prism-player .prism-volume-control .volume-control-icon.mute:hover{background:url(./img/volumemutehover.png) no-repeat;background-size:contain;cursor:pointer}.prism-player .prism-volume-control:hover{cursor:pointer}.prism-player .prism-volume-control .volume-control-icon{position:absolute;bottom:6px;left:8px;width:26px;height:26px}.prism-player .prism-volume-control .volume-range{position:absolute;left:14px;bottom:10px;border-radius:1px;background:#6c6262;box-shadow:inset 1px 1px 1px 0 rgba(0,0,0,.06);width:4px;height:100px}.prism-player .prism-volume-control .volume-value{width:100%;height:0%;background:#30adf2;position:absolute;border-radius:1px;bottom:0}.prism-player .prism-volume-control .volume-cursor{position:absolute;bottom:0;background:#fff;width:15px;height:15px;border-radius:15px;left:-6px}.prism-player .prism-volume-control .volume-cursor:hover{background:#00c1de}.prism-player .prism-animation{width:64px;height:64px;border-radius:64px;opacity:0;position:absolute;left:50%;top:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.prism-player .prism-play-animation{background:url(./img/playanimation.png) no-repeat;background-size:contain}.prism-player .prism-pause-animation{background:url(./img/pauseanimation.png) no-repeat;background-size:contain}.prism-player .play-apply-animation{animation:prismplayanimation 1s 1;-moz-animation:prismplayanimation 1s 1;-webkit-animation:prismplayanimation 1s 1;-o-animation:prismplayanimation 1s 1;animation-fill-mode:both}@keyframes prismplayanimation{0%{width:32px;height:32px;border-radius:32px;opacity:0}50%{width:32px;height:32px;border-radius:32px;opacity:1}99%{width:76px;height:76px;border-radius:76px;opacity:0}100%{width:0;height:0}}@keyframes spinoffPulse{0%{transform:rotate(0);-webkit-transform:rotate(0);-moz-transform:rotate(0)}100%{transform:rotate(360deg);-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg)}}@keyframes hoverAnimationRotate{0%{transform:rotate(0);-webkit-transform:rotate(0);-moz-transform:rotate(0)}50%{transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg)}100%{transform:rotate(0);-webkit-transform:rotate(0);-moz-transform:rotate(0)}}@keyframes hoverAnimationScale{0%{transform:scale(1);-webkit-transform:scale(1);-moz-transform:scale(1)}50%{transform:scale(1.2);-webkit-transform:scale(1.2);-moz-transform:scale(1.2)}100%{transform:scale(1);-webkit-transform:scale(1);-moz-transform:scale(1)}}@keyframes hoverAnimationScaleX{0%{transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1)}50%{transform:scaleX(1.2);-webkit-transform:scaleX(1.2);-moz-transform:scaleX(1.2)}100%{transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1)}}@keyframes hoverVolumeAnimation{0%{opacity:1}50%{opacity:0}100%{opacity:1}}.volume-hover-animation{animation:hoverVolumeAnimation .3s 1;-moz-animation:hoverVolumeAnimation .3s 1;-webkit-animation:hoverVolumeAnimation .3s 1;-o-animation:hoverVolumeAnimation .3s 1}@keyframes hoverPlayButtonAnimation{0%{width:63px;height:63px;border:7px solid #fff}60%{width:90px;height:90px;border:7px solid rgba(255,255,255,.51)}100%{width:97px;height:97px;border:14px solid rgba(255,255,255,0)}}@keyframes warn{0%{transform:scale(1);opacity:0}25%{transform:scale(1);opacity:.1}50%{transform:scale(1.1);opacity:.3}75%{transform:scale(1.5);opacity:.5}100%{transform:scale(2);opacity:0}}.big-playbtn-hover-animation{animation:warn 1s ease-out;-moz-animation:warn 1s ease-out;-webkit-animation:warn 1s ease-out;-o-animation:warn 1s ease-out}.big-playbtn-hover-animation1{animation:hoverPlayButtonAnimation 1s 1;-moz-animation:hoverPlayButtonAnimation 1s 1;-webkit-animation:hoverPlayButtonAnimation 1s 1;-o-animation:hoverPlayButtonAnimation 1s 1}.prism-player{background-color:#000;position:relative}.prism-player a{text-decoration:none}.prism-player video{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);-ms-transform-origin:center;-moz-transform-origin:center;-webkit-transform-origin:center;-o-transform-origin:center}.prism-player .x5-full-screen{object-fit:fill;object-position:50% 50%}.prism-player .x5-top-left{object-fit:contain;object-position:0 0}.prism-player .prism-cover{width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:cover;position:absolute;top:0;left:0;z-index:11}.prism-player .prism-ErrorMessage{width:100%;height:100%;background-color:#000;background-repeat:no-repeat;background-position:center;background-size:contain;position:absolute;z-index:99;top:0;left:0;overflow:hidden;display:none}.prism-player .prism-ErrorMessage .prism-error-content{margin-top:20px;padding:0 5px}.prism-player .prism-ErrorMessage .prism-error-content p{text-align:center;font-size:12px;color:#fff}.prism-player .prism-ErrorMessage .prism-error-operation{margin-top:10px;margin-bottom:10px;padding-bottom:5px;border-bottom:1.5px;border-bottom-color:rgba(255,255,255,.15);border-bottom-style:dotted;text-align:center}.prism-player .prism-ErrorMessage .prism-error-operation a{width:80px;height:32px;line-height:32px;vertical-align:top;display:inline-block;margin-left:10px}.prism-player .prism-ErrorMessage .prism-error-operation a.prism-button-refresh{color:#21c5e0;border:solid 1px #21c5e0}.prism-player .prism-ErrorMessage .prism-error-operation a.prism-button-refresh:hover{color:#05d3f5;border-color:#05d3f5;cursor:pointer}.prism-player .prism-ErrorMessage .prism-error-operation a.prism-button-refresh:active{color:#026a7b;border-color:#026a7b}.prism-player .prism-ErrorMessage .prism-error-operation .prism-button-orange:visited{color:#05d3f5}.prism-player .prism-ErrorMessage .prism-detect-info{color:#fff;font-size:10px}.prism-player .prism-ErrorMessage .prism-detect-info p{padding:0 5px;word-break:break-all;margin:0 0 4px}.prism-player .prism-ErrorMessage .prism-detect-info span.info-label{display:inline-block;font-weight:700}.prism-player .prism-ErrorMessage .prism-detect-info span.info-content{color:gray}.prism-player .prism-big-play-btn{display:none;z-index:1000}.prism-player .prism-controlbar{width:100%;height:44px;position:relative;z-index:10;font-size:14px}.prism-player .prism-controlbar .prism-controlbar-bg{background:rgba(75,75,75,.15);width:100%;height:40px;position:absolute;bottom:0;left:0;z-index:-1}.prism-player .prism-time-display{height:40px;line-height:40px;color:#a4aab3;font-size:12px}.prism-player .prism-time-display .current-time{color:#fff}.prism-player .prism-live-time-display{height:44px;line-height:44px;color:#a4aab3;font-size:12px}.prism-player .prism-live-time-display span{display:inline}.prism-player .prism-live-time-display .live-text{margin-left:5px;font-size:12px;color:#ebecec}.prism-player .prism-live-time-display .current-time{color:#fff}.prism-player .prism-fullscreen-btn:hover{animation:hoverAnimationScale 1s 1;-moz-animation:hoverAnimationScale 1s 1;-webkit-animation:hoverAnimationScale 1s 1;-o-animation:hoverAnimationScale 1s 1}.prism-player .prism-liveshift-progress,.prism-player .prism-progress{bottom:40px!important;width:100%;height:4px;background:rgba(195,197,198,.5);box-shadow:inset 1px 1px 1px 0 rgba(0,0,0,.06);position:relative;cursor:pointer}.prism-player .prism-liveshift-progress .prism-progress-time,.prism-player .prism-progress .prism-progress-time{position:absolute;top:-25px;background:rgba(0,0,0,.8);box-shadow:0 0 5px 0 rgba(0,0,0,.1);-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.1);color:#fff;font-size:14px;border-radius:7.5px;padding:0 6px 0 6px;text-align:center;white-space:nowrap}.prism-player .prism-liveshift-progress .prism-progress-loaded,.prism-player .prism-progress .prism-progress-loaded{position:absolute;top:0;left:0;width:0;height:100%;background:#c3c5c6}.prism-player .prism-liveshift-progress .prism-progress-played,.prism-player .prism-progress .prism-progress-played{position:absolute;top:0;left:0;width:0;height:100%;background-color:#00c1de}.prism-player .prism-liveshift-progress .prism-progress-cursor,.prism-player .prism-progress .prism-progress-cursor{position:absolute;border-radius:8px;top:-5px;width:16px;height:16px;overflow:hidden;box-sizing:content-box;background:url(./img/dragcursorhover.png) center;display:none}.prism-player .prism-liveshift-progress .prism-progress-cursor img,.prism-player .prism-progress .prism-progress-cursor img{width:14px;height:14px;position:absolute;top:50%;left:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.prism-player .prism-liveshift-progress .cursor-hover,.prism-player .prism-progress .cursor-hover{border-radius:9px;width:18px;height:18px;top:-5px!important}.prism-player .prism-liveshift-progress .cursor-hover img,.prism-player .prism-progress .cursor-hover img{width:16px;height:16px}.prism-player .prism-liveshift-progress .prism-progress-marker,.prism-player .prism-progress .prism-progress-marker{width:100%;height:100%;position:absolute}.prism-player .prism-liveshift-progress .prism-progress-marker .prism-marker-dot,.prism-player .prism-progress .prism-progress-marker .prism-marker-dot{position:absolute;background:#d9edf7;width:5px;height:100%;border-radius:20%}.prism-player .prism-progress-hover{cursor:pointer;height:6px;transition:height .1s}.prism-player .prism-progress-hover .prism-marker-dot{width:10px;height:80%;top:8%;border-radius:30%}.prism-player .prism-progress-hover .prism-progress-cursor{top:-4px}.prism-player .prism-liveshift-progress{background:0 0}.prism-player .prism-liveshift-progress .prism-enable-liveshift{cursor:pointer;position:absolute;background:#fff;height:4px}.prism-player .prism-liveshift-progress .prism-enable-liveshift:hover{height:6px;transition:height .1s}.prism-player .prism-liveshift-progress .prism-liveshift-seperator{height:15px;position:absolute;right:0;top:-8px;color:#fff;margin-right:5px;margin-left:5px;right:-65px}.prism-player .prism-marker-text{padding:5px;background:rgba(0,0,0,.8);position:absolute;max-width:180px;max-height:100px;bottom:50px;color:#fff;border-radius:3px;z-index:9999;display:none;overflow:auto}.prism-player .prism-marker-text p{text-align:center;word-break:break-all;margin:0;font-size:12px}.prism-player .prism-loading{width:55px;height:55px;z-index:10}.prism-player .prism-loading .circle{background-color:rgba(0,0,0,0);border:5px solid;border-color:rgba(0,193,222,.2) rgba(0,193,222,.5) rgba(0,193,222,.7) rgba(0,193,222,.1);opacity:.9;border-radius:50px;width:45px;height:45px;margin:0 auto;-moz-animation:spinoffPulse .9s infinite linear;-webkit-animation:spinoffPulse .9s infinite linear}.prism-player .prism-hide{display:none}.prism-player .prism-snapshot-btn{width:32px;height:32px;background:url(./img/snapshot.png) no-repeat;background-size:contain}.prism-player .prism-snapshot-btn:hover{animation:hoverAnimationScale 1s 1;-moz-animation:hoverAnimationScale 1s 1;-webkit-animation:hoverAnimationScale 1s 1;-o-animation:hoverAnimationScale 1s 1;cursor:pointer}.prism-player .prism-snapshot-btn:active{displa:block}.prism-player .prism-info-display{width:100%;color:#fff;font-size:18px;text-align:center;top:50%;position:absolute;z-index:900;height:44px;line-height:28px;font-size:16px;padding:10px 12px 10px 12px}.prism-player .prism-info-display span{color:#00c1de}.prism-player .prism-info-left-bottom{width:auto!important;top:auto!important;bottom:70px;left:20px!important;text-align:left}.prism-player .prism-info-top-center{width:auto!important;top:20px!important;left:50%!important;text-align:left!important;-ms-transform:translateX(-50%)!important;transform:translateX(-50%)!important;color:red!important}.prism-player .prism-info-black{color:#000!important}.prism-player .prism-auto-stream-selector{position:absolute;bottom:50%;width:100%;margin:auto;color:#efeff4;display:none}.prism-player .prism-auto-stream-selector p.tip-text{text-align:center}.prism-player .prism-auto-stream-selector .operators{width:100px;margin:auto}.prism-player .prism-button-cancel{font-size:16px;border:1px #ffffffa8 solid;padding:2px 5px 2px 5px;color:#ffffffa8;margin-left:5px;background:#503f3f3d}.prism-player .prism-button-ok{font-size:16px;border:1px #fff solid;padding:2px 5px 2px 5px;color:#fff;background:#503f3f63}.prism-player .prism-button-cancel:hover,.prism-player .prism-button-ok:hover{color:#f5f5f5}.prism-player .prism-cc-btn{height:24px;width:24px;background:url(./img/cc.png) center no-repeat;background-size:contain}.prism-player .prism-cc-btn:hover{cursor:pointer;animation:hoverAnimationScale 1s 1;-moz-animation:hoverAnimationScale 1s 1;-webkit-animation:hoverAnimationScale 1s 1;-o-animation:hoverAnimationScale 1s 1}.prism-player .prism-setting-btn{height:24px;width:24px;background:url(./img/setting.png) center no-repeat;background-size:contain}.prism-player .prism-setting-btn:hover{cursor:pointer;animation:hoverAnimationRotate 1s 1;-moz-animation:hoverAnimationRotate 1s 1;-webkit-animation:hoverAnimationRotate 1s 1;-o-animation:hoverAnimationRotate 1s 1}.prism-player .prism-setting-list{background:rgba(60,60,60,.95);width:220px;position:absolute;right:14px;bottom:45px;display:none;z-index:10000;text-align:left}.prism-player .prism-setting-list .prism-setting-item{font-size:14px;color:#ebecec;height:30px}.prism-player .prism-setting-list .prism-setting-item .setting-content{width:100%}.prism-player .prism-setting-list .prism-setting-item .setting-content:hover{background:rgba(216,216,216,.1);cursor:pointer}.prism-player .prism-setting-list .prism-setting-item .setting-content span{line-height:30px}.prism-player .prism-setting-list .prism-setting-item .setting-content .setting-title{margin-left:15px}.prism-player .prism-setting-list .prism-setting-item .setting-content .current-setting{float:right}.prism-player .prism-setting-list .prism-setting-item .array{display:inline-block;border-right:2px solid;border-bottom:2px solid;border-color:#fff;width:8px;height:8px;-ms-transform:rotate(-45deg);transform:rotate(-45deg);margin-right:10px;margin-top:10px;margin-left:10px;float:right}.prism-player .prism-setting-selector{right:40px;position:absolute;bottom:45px;width:150px;background:rgba(60,60,60,.95);font-size:14px;color:#ebecec;display:none;z-index:10000;text-align:left}.prism-player .prism-setting-selector .header{background:#242424;width:150px;height:30px}.prism-player .prism-setting-selector .header:hover{cursor:pointer}.prism-player .prism-setting-selector .header .left-array{display:inline-block;border-left:2px solid;border-bottom:2px solid;border-color:#fff;width:8px;height:8px;-ms-transform:rotate(45deg);transform:rotate(45deg);margin-right:6px;margin-top:12px;margin-left:16px;float:left}.prism-player .prism-setting-selector .header span{line-height:30px}.prism-player .prism-setting-selector ul{list-style-type:none;padding-left:0;max-height:150px;overflow-y:auto;padding-left:16px;margin-top:5px}.prism-player .prism-setting-selector ul li{height:28px;padding-left:10px}.prism-player .prism-setting-selector ul li.current{color:#30adf2;padding-left:0}.prism-player .prism-setting-selector ul li.current:before{content:"";display:inline-block;line-height:0;border:5px solid transparent;border-left-color:#30adf2;border-right-width:0;margin-top:5px;padding-right:5px}.prism-player .prism-setting-selector ul li:hover{background:rgba(216,216,216,.1);cursor:pointer}.prism-player .prism-setting-selector ul span{line-height:28px}.prism-player .prism-thumbnail{border:1px solid rgba(0,0,0,.8);width:174px;height:98px;position:absolute;bottom:50px;display:none}.prism-player .prism-thumbnail .none{border:none}.prism-player .prism-thumbnail span{font-size:12px;color:#fff;line-height:20px;background:rgba(0,0,0,.8);text-align:center;text-shadow:1px 1px 4px #373d41;padding-left:5px;padding-right:5px;display:inline-block;position:absolute;bottom:0;left:33%}.prism-player .prism-tooltip{background:#3c3c3c;box-shadow:0 0 5px 0 rgba(0,0,0,.1);height:28px;margin:0;padding-left:5px;padding-right:5px;padding-top:0;padding-bottom:0;position:absolute;bottom:50px;color:#fff;line-height:28px;font-size:10px;white-space:nowrap;display:none}:-webkit-full-screen{width:100%!important;height:100%!important}:-moz-full-screen{width:100%!important;height:100%!important}:-ms-full-screen{width:100%!important;height:100%!important}:-ms-fullscreen{width:100%!important;height:100%!important}:-webkit-full-screen{width:100%!important;height:100%!important}:fullscreen{width:100%!important;height:100%!important}body.prism-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.prism-fullscreen{position:fixed;overflow:hidden;z-index:99999;left:0!important;top:0!important;bottom:0!important;right:0!important;width:100%!important;height:100%!important;position:absolute}.prism-button{cursor:pointer;text-align:center;text-shadow:0 1px 1px rgba(0,0,0,.3);border-radius:.5em;box-shadow:0 1px 2px rgba(0,0,0,.2)}.prism-button-orange{color:#a56117;border:solid 1px #a56117}.prism-button-retry{color:#f2dede;border:solid 1px #f2dede}.prism-button-orange:hover{color:#d67400;border-color:#d67400}.prism-button-orange:active{color:#d67400;border-color:#d67400}.prism-button-orange:visited{color:#d67400}.prism-button-retry:hover{color:#fcf8e3;border-color:#fcf8e3}.prism-button-retry:active{color:#fcf8e3;border-color:#fcf8e3}.prism-button-retry:visited{color:#fcf8e3}.prism-center{position:absolute;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%)}.prism-width90{width:90%}.prism-stream-selector{font-size:16px;position:relative;line-height:32px}.prism-stream-selector .current-stream-selector{text-align:center;width:70px;display:none;color:#efeff4}.prism-stream-selector .current-stream-selector:hover{cursor:pointer;color:#00c1de}.prism-stream-selector .stream-selector-tip{color:#fff;text-align:center;padding:2px 5px 2px 5px;display:none;position:absolute;bottom:61.5px;white-space:nowrap;left:43%;font-size:18px}.prism-stream-selector .stream-selector-list{position:absolute;bottom:32px;background:rgba(0,0,0,.5);color:#efeff4;padding:5px 5px 0 5px;width:70px;margin:0;display:none}.prism-stream-selector .stream-selector-list li{list-style-type:none;text-align:center;white-space:nowrap;padding:0 2px 0 2px;line-height:24px}.prism-stream-selector .stream-selector-list li:last-child{margin-bottom:10px}.prism-stream-selector .stream-selector-list li.current{color:#00c1de}.prism-stream-selector .stream-selector-list li span.current{color:#00c1de}.prism-stream-selector .stream-selector-list li:hover{cursor:pointer;color:#00c1de}.prism-speed-selector{font-size:16px;position:relative;line-height:32px}.prism-speed-selector .current-speed-selector{color:#efeff4;text-align:center;width:60px}.prism-speed-selector .current-speed-selector:hover{cursor:pointer;color:#00c1de}.prism-speed-selector .speed-selector-list{position:absolute;bottom:32px;background:rgba(0,0,0,.5);color:#efeff4;padding:5px 5px 0 5px;display:none;margin:0}.prism-speed-selector .speed-selector-list li{list-style-type:none;text-align:center;white-space:nowrap;padding:0 2px 0 2px;line-height:24px}.prism-speed-selector .speed-selector-list li:last-child{margin-bottom:10px}.prism-speed-selector .speed-selector-list li.current{color:#00c1de}.prism-speed-selector .speed-selector-list li span.current{color:#00c1de}.prism-speed-selector .speed-selector-list li:hover{cursor:pointer;color:#00c1de}.prism-ai-container{position:absolute;overflow:hidden}.prism-ai-container .prism-ai-marking{font-size:12px;position:absolute}.prism-ai-container .prism-ai-marking[vh=large]{font-size:18px}.prism-ai-container .prism-ai-marking[vh=middle]{font-size:16px}.prism-ai-container .prism-ai-marking .prism-ai-rect-region{position:relative;display:inline-block}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-title{height:0;-ms-transform:translateY(-40px);transform:translateY(-40px)}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-title p{background:#ff1d00;text-align:center;width:100%;color:#fff;word-break:keep-all;margin:10px 0 0 0}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-title .top-left-anchor{width:5px;height:5px;border-top-color:red;border-top-style:solid;border-left-color:red;border-left-style:solid;border-width:1px;-ms-transform:translate(-5px,10px);transform:translate(-5px,10px)}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-title .top-right-anchor{width:5px;height:5px;border-top-color:red;border-top-style:solid;border-right-color:red;border-right-style:solid;border-width:1px;-ms-transform:translate(5px,5px);transform:translate(5px,5px);float:right}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-rect{border-style:solid;border-color:#ff1d00;border-width:1px;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;color:rgba(255,29,0,.3);background:rgba(255,29,0,.1)}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-rect .prism-ai-slash-container{overflow:hidden;width:100%;height:100%;position:absolute}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-rect .prism-ai-slash{content:"";display:block;box-sizing:border-box;border-top-width:1px;border-top-style:solid;height:10px;margin-top:15px;border-bottom-width:1px;border-bottom-style:solid;transform:rotateZ(-45deg) scaleX(2);-ms-transform-origin:bottom center;transform-origin:bottom center}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-rect .prism-ai-top-slash{margin-top:-10px!important}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .anchor-plug{position:absolute}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .top-left{top:-7px;left:-2px}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .top-right{top:-7px;right:-2px}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .bottom-left{bottom:-8px;left:-2px}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .bottom-right{bottom:-8px;right:-2px}.prism-ai-container .prism-ai-marking .prism-ai-labels{color:#fff;float:right;background:rgba(0,0,0,.4);padding-top:5px;padding-bottom:5px}.prism-ai-container .prism-ai-marking .prism-ai-labels p{text-align:left;padding-left:5px;padding-right:5px;margin:0}.prism-ai-container .prism-ai-marking .prism-ai-labels a{padding-left:5px;padding-right:5px}.prism-ai-container .prism-ai-marking .prism-ai-labels p[vh=large]{padding-left:25px;padding-right:25px}.prism-ai-container .prism-ai-marking .prism-ai-labels p[vh=middle]{padding-left:15px;padding-right:15px}video::-webkit-media-text-track-container{overflow:visible!important}video::cue{line-height:1.7}.disabled{pointer-events:none;color:gray}.center{position:absolute;top:50%;left:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)} \ No newline at end of file diff --git a/src/plugins/aliplayer/aliplayer-min.js b/src/plugins/aliplayer/aliplayer-min.js deleted file mode 100644 index d06872e..0000000 --- a/src/plugins/aliplayer/aliplayer-min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Aliplayer - v2.8.2 - 2019-05-09 16.34.41 */ -!function n(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(c)return c(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=s[t]={exports:{}};a[t][0].call(o.exports,function(e){return u(a[t][1][e]||e)},o,o.exports,n,a,s,l)}return s[t].exports}for(var c="function"==typeof require&&require,e=0;ei.offsetHeight){t=i,e.fastClickScrollParent=i;break}i=i.parentElement}while(i)}t&&(t.fastClickLastScrollTop=t.scrollTop)},l.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},l.prototype.onTouchStart=function(e){var t,i,r;if(1i||Math.abs(t.pageY-this.touchStartY)>i},l.prototype.onTouchMove=function(e){return this.trackingClick&&(this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0},l.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},l.prototype.onTouchEnd=function(e){var t,i,r,o,n,a=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTimethis.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,i=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,d&&(n=e.changedTouches[0],(a=document.elementFromPoint(n.pageX-window.pageXOffset,n.pageY-window.pageYOffset)||a).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(r=a.tagName.toLowerCase())){if(t=this.findControl(a)){if(this.focus(a),u)return!1;a=t}}else if(this.needsFocus(a))return 100"+a.get("Cancel_Text")+"
",e},bindEvent:function(){var r=this;r._player.on(s.Private.AutoStreamShow,function(e){var t=document.querySelector("#"+r.getId()+" .tip-text");if(r._player._getLowerQualityLevel){var i=r._player._getLowerQualityLevel();i&&(r._switchUrl=i,t.innerText=a.get("Auto_Stream_Tip_Text").replace("$$",i.item.desc),o.css(r.el(),"display","block"))}}),r._player.on(s.Private.AutoStreamHide,function(e){document.querySelector("#"+r.getId()+" .tip-text");o.css(r.el(),"display","none")});var e=document.querySelector("#"+r.getId()+" .prism-button-ok");n.on(e,"click",function(){r._player._changeStream&&r._switchUrl&&r._player._changeStream(r._switchUrl.index,a.get("Quality_Change_Text")),o.css(r.el(),"display","none")});var t=document.querySelector("#"+r.getId()+" .prism-button-cancel");n.on(t,"click",function(){o.css(r.el(),"display","none")})}});t.exports=l},{"../lang/index":11,"../lib/dom":18,"../lib/event":19,"../lib/ua":31,"../lib/util":33,"../player/base/event/eventtype":43,"../ui/component":94}],3:[function(e,t,i){var r=e("../ui/component"),s=e("../lib/dom"),o=e("../lib/event"),n=e("../lib/ua"),a=e("../lib/function"),l=(e("../lang/index"),e("../lib/util")),u=e("../config"),c=e("../lib/playerutil"),d=e("../player/base/event/eventtype"),p=r.extend({init:function(e,t){r.call(this,e,t),this.className=t.className?t.className:"prism-liveshift-progress",this.addClass(this.className),this._liveshiftService=e._liveshiftService},createEl:function(){var e=r.prototype.createEl.call(this);return e.innerHTML='

00:00:00
',e},bindEvent:function(){var i=this;this.loadedNode=document.querySelector("#"+this.id()+" .prism-progress-loaded"),this.playedNode=document.querySelector("#"+this.id()+" .prism-progress-played"),this.cursorNode=document.querySelector("#"+this.id()+" .prism-progress-cursor"),this.timeNode=document.querySelector("#"+this.id()+" .prism-progress-time"),this.controlNode=document.querySelector("#"+this._player._options.id+" .prism-controlbar"),this.seperatorNode=document.querySelector("#"+this.id()+" .prism-liveshift-seperator"),this.progressNode=document.querySelector("#"+this.id()+" .prism-enable-liveshift");var e=document.querySelector("#"+this.id()+" .prism-progress-cursor img"),t="//"+u.domain+"/de/prismplayer/"+u.h5Version+"/skins/default/img/dragcursor.png";u.domain?-1a&&(sec=a),sec},_onMouseClick:function(e){var t=this,i=this._getSeconds(e),r=this._liveshiftService.availableLiveShiftTime-i;this._player.trigger(d.Private.SeekStart,{fromTime:this._getCurrentTime()});var o=this._liveshiftService.getSourceUrl(r),n=t._player._options.source,a=c.isHls(t._player._options.source);a&&o==n?t._player.seek(i):t._player._loadByUrlInner(o,i,!0),t._player.trigger(d.Private.Play_Btn_Hide),t._liveshiftService.seekTime=i,t._player.trigger(d.Private.EndStart,{toTime:i}),t._updateCursorPosition(i),a&&setTimeout(function(){t._player.play()})},_onMouseDown:function(e){var t=this;e.preventDefault(),this._player.trigger(d.Private.SeekStart,{fromTime:this._getCurrentTime()}),o.on(this.controlNode,"mousemove",function(e){t._onMouseMove(e)}),o.on(this.controlNode,"touchmove",function(e){t._onMouseMove(e)}),o.on(this._player.tag,"mouseup",function(e){t._onMouseUp(e)}),o.on(this._player.tag,"touchend",function(e){t._onMouseUp(e)}),o.on(this.controlNode,"mouseup",function(e){t._onMouseUp(e)}),o.on(this.controlNode,"touchend",function(e){t._onMouseUp(e)})},_onMouseUp:function(e){e.preventDefault(),o.off(this.controlNode,"mousemove"),o.off(this.controlNode,"touchmove"),o.off(this._player.tag,"mouseup"),o.off(this._player.tag,"touchend"),o.off(this.controlNode,"mouseup"),o.off(this.controlNode,"touchend");var t=this._liveshiftService.availableLiveShiftTime,i=this.playedNode.offsetWidth/this.el().offsetWidth*t;this._player.seek(i),this._player.trigger(d.Private.Play_Btn_Hide),this._liveshiftService.seekTime=i,this._player.trigger(d.Private.EndStart,{toTime:i})},_onMouseMove:function(e){e.preventDefault();var t=this._getSeconds(e);this._updateProgressBar(this.playedNode,t),this._updateCursorPosition(t)},_onTimeupdate:function(e){this._updateProgressBar(this.playedNode,this._getCurrentTime()),this._updateCursorPosition(this._getCurrentTime()),this._player.trigger(d.Private.UpdateProgressBar,{time:this._getCurrentTime()})},_getCurrentTime:function(){var e=this._liveshiftService.seekTime;return-1==e&&(e=0),this._player.getCurrentTime()+e},_onProgress:function(e){this._player.getDuration()&&1<=this._player.getBuffered().length&&this._updateProgressBar(this.loadedNode,this._player.getBuffered().end(this._player.getBuffered().length-1))},_updateProgressBar:function(e,t){if(1!=this._player._switchSourcing){var i=0;if(-1==this._liveshiftService.seekTime)i=1;else{var r=this._liveshiftService.availableLiveShiftTime;1<(i=r?t/r:0)&&(i=1,this._liveshiftService.seekTime=-1)}this.liveShiftStartDisplay;e&&s.css(e,"width",100*i+"%")}},_updateCursorPosition:function(e){if(this._player.el()&&1!=this._player._switchSourcing&&(0!=e||0!=this._player.tag.readyState)){var t=0,i=1,r=this._player.el().clientWidth;if(-1==this._liveshiftService.seekTime)t=1;else{var o=this._liveshiftService.availableLiveShiftTime;1<(t=o?e/o:0)&&(this._liveshiftService.seekTime=-1)}if(0!=r){var n=18/r;i=1-n,t-=n}this.cursorNode&&(ie.seekTime&&-1!=e.seekTime){var i=o._liveshiftService.getBaseTime(),r=n.formatTime(i+o._player.getCurrentTime());t.innerText=r}else e.currentTimeDisplay&&(t.innerText=e.currentTimeDisplay)}),this._player.on(a.Private.LiveShiftQueryCompleted,function(){o.updateTime()})},updateTime:function(){document.querySelector("#"+this.id()+" .end-time").innerText=this._liveshiftService.liveTimeRange.endDisplay,document.querySelector("#"+this.id()+" .live-time").innerText=this._liveshiftService.currentTimeDisplay}});t.exports=o},{"../lib/util":33,"../player/base/event/eventtype":43,"../ui/component":94}],5:[function(e,t,i){t.exports={domain:"g.alicdn.com",flashVersion:"2.8.2",h5Version:"2.8.2",cityBrain:!0,logDuration:10,logCount:100,logReportTo:"https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/newplayer/track"}},{}],6:[function(e,t,i){e("./lang/index").load();var r=e("./player/adaptivePlayer"),o=e("./lib/componentutil"),n=e("./config"),a=function(e,t){return r.create(e,t)};a.getVersion=function(){return n.h5Version},o.register(a);var s=window.Aliplayer=a;a.players={},"function"==typeof define&&define.amd?define([],function(){return s}):"object"==typeof i&&"object"==typeof t&&(t.exports=s),"undefined"!=typeof Uint8Array&&(Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:Array.prototype.slice}))},{"./config":5,"./lang/index":11,"./lib/componentutil":14,"./player/adaptivePlayer":40}],7:[function(e,t,i){var r=e("../lib/oo"),o=e("../lang/index"),n=r.extend({init:function(e,t){this._player=e,this._options=e.options()}});n.prototype.handle=function(e){if(this._options.autoPlayDelay){var t=this._options.autoPlayDelayDisplayText;t||(t=o.get("AutoPlayDelayDisplayText").replace("$$",this._options.autoPlayDelay)),this._player.trigger("info_show",t),this._player.trigger("h5_loading_hide"),this._player.trigger("play_btn_hide");var i=this;this._timeHandler=setTimeout(function(){i._player.trigger("info_hide"),i._options.autoPlayDelay=0,e&&e()},1e3*this._options.autoPlayDelay),this._player.on("play",function(){a(i)}),this._player.on("pause",function(){a(i)})}},n.prototype.dispose=function(){a(this),this._player=null};var a=function(e){e._timeHandler&&(clearTimeout(e._timeHandler),e._timeHandler=null)};t.exports=n},{"../lang/index":11,"../lib/oo":27}],8:[function(e,t,i){t.exports=t.exports={OD:"OD",FD:"360p",LD:"540p",SD:"720p",HD:"1080p","2K":"2K","4K":"4K",FHD:"FHD",XLD:"XLD",SQ:"SQ",HQ:"HQ",Speed:"Speed",Speed_05X_Text:"0.5X",Speed_1X_Text:"Normal",Speed_125X_Text:"1.25X",Speed_15X_Text:"1.5X",Speed_2X_Text:"2X",Refresh_Text:"Refresh",Cancel:"Cancel",Mute:"Mute",Snapshot:"Snapshot",Detection_Text:"Diagnosis",Play_DateTime:"Time",Quality_Change_Fail_Switch_Text:"Cannot play, switch to ",Quality_Change_Text:"Switch to ",Quality_The_Url:"The url",AutoPlayDelayDisplayText:"Play in $$ seconds",Error_Load_Abort_Text:"Data abort erro",Error_Network_Text:"Loading failed due to network error",Error_Decode_Text:"Decode error",Error_Server_Network_NotSupport_Text:"Network error or \xa0the format of video is unsupported",Error_Offline_Text:"The network is unreachable, please click Refresh",Error_Play_Text:"Error occured while playing",Error_Retry_Text:" Please close or refresh",Error_AuthKey_Text:"Authentication expired or the domain is not in white list",Error_H5_Not_Support_Text:"The format of video is not supported by\xa0h5 player\uff0cplease use flash player",Error_Not_Support_M3U8_Text:"The format of m3u8 is not supported by this explorer",Error_Not_Support_MP4_Text:"The format of mp4\xa0is not supported by this explorer",Error_Not_Support_encrypt_Text:"Play the encrypted video,please set encryptType to 1",Error_Vod_URL_Is_Empty_Text:"The url is empty",Error_Vod_Fetch_Urls_Text:"Error occured when fetch urls\uff0cplease close or refresh",Fetch_Playauth_Error:"Error occured when fetch playauth close or refresh",Error_Playauth_Decode_Text:"PlayAuth parse failed",Error_Vid_Not_Same_Text:"Cannot renew url due to vid changed",Error_Playauth_Expired_Text:"Playauth expired, please close or refresh",Error_MTS_Fetch_Urls_Text:"Error occurred while requesting mst server",Error_Load_M3U8_Failed_Text:"The\xa0m3u8 file loaded failed",Error_Load_M3U8_Timeout_Text:"Timeout error occored\xa0when the\xa0m3u8 file loaded",Error_M3U8_Decode_Text:"The m3u8 file decoded failed",Error_TX_Decode_Text:"Video decoded failed",Error_Waiting_Timeout_Text:"Buffering timeout,\xa0please close or refresh",Error_Invalidate_Source:"Video shoud be mp4\u3001mp3\u3001m3u8\u3001mpd or flv",Error_Empty_Source:"Video URL shouldn't be empty",Error_Vid_Empty_Source:"vid's video URL hasn't been fetched",Error_Fetch_NotStream:"The vid has no stream to play",Error_Not_Found:"Url is not found",Live_End:"Live has finished",Play_Before_Fullscreen:"Please play before fullscreen",Can_Not_Seekable:"Can not seek to this position",Cancel_Text:"Cancel",OK_Text:"OK",Auto_Stream_Tip_Text:"Internet is slow, does switch to $$",Request_Block_Text:"This request is blocked, the video Url should be over https",Open_Html_By_File:"Html page should be on the server",Maybe_Cors_Error:"please make sure enable cors,refer to document",Speed_Switch_To:"Speed switch to ",Curent_Volume:"Current volume:",Volume_Mute:"set to mute",Volume_UnMute:"set to unmute",ShiftLiveTime_Error:"Live start time should not be greater than over time",Error_Not_Support_Format_On_Mobile:"flv\u3001rmtp can't be supported on mobile\uff0cplease use m3u8",SessionId_Ticket_Invalid:"please assign value for sessionId and ticket properties",Http_Error:" An HTTP network request failed with an error, but not from the server.",Http_Timeout:"A network request timed out",DRM_License_Expired:"DRM license is expired, please refresh",Not_Support_DRM:"Browser doesn't support DRM",CC_Switch_To:"Subtitle switch to ",AudioTrack_Switch_To:"Audio tracks switch to ",Subtitle:"Subtitle/CC",AudioTrack:"Audio Track",Quality:"Quality",Auto:"Auto",Quality_Switch_To:"Quality switch to ",Fullscreen:"Full Screen",Setting:"Settings",Volume:"Volume",Play:"Play",Pause:"Pause",CloseSubtitle:"Close CC",OpenSubtitle:"Open CC",ExistFullScreen:"Exit Full Screen",Muted:"Muted",Retry:"Retry",SwitchToLive:"Return to live",iOSNotSupportVodEncription:"iOS desn't suport Vod's encription video",UseChromeForVodEncription:"This browser desn't suport Vod's encription video, please use latest Chrome"}},{}],9:[function(e,t,i){t.exports=t.exports={OD:"OD",LD:"360p",FD:"540p",SD:"720p",HD:"1080p","2K":"2K","4K":"4K",FHD:"FHD",XLD:"XLD",SQ:"SQ",HQ:"HQ",Forbidden_Text:"Internal information is strictly forbidden to outsider",Refresh:"Refresh",Diagnosis:"Diagnosis",Live_Finished:"Live has finished, thanks for watching",Play:"Play",Pause:"Pause",Snapshot:"Snapshot",Replay:"Replay",Live:"Live",Encrypt:"Encrypt",Sound:"Sound",Fullscreen:"Full Screen",Exist_Fullscreen:"Exit Full-screen",Resolution:"Resolution",Next:"Next Video",Brightness:"Brightness",Default:"Default",Contrast:"Contrast",Titles_Credits:"Titles\xa0and\xa0Credits",Skip_Titles:"Skip Titles",Skip_Credits:"Skip Credits",Not_Support_Out_Site:"The video is not supported for outside website, please watch it by TaoTV",Watch_Now:"Watch now",Network_Error:"Network is unreachable, please try to refresh",Video_Error:"Playing a video error,\xa0please try to refresh",Decode_Error:"Data decoding\xa0error",Live_Not_Start:"Live has not started, to be expected",Live_Loading:"Live information is loading,\xa0please try to refresh",Fetch_Playauth_Error:"Error occured when fetch playauth close or refresh",Live_End:"Live has finished",Live_Abrot:"Signal aborted,\xa0please try to refresh",Corss_Domain_Error:"Please ensure your domain has obtained IPC license and combined CNAME, \r\n or to set\xa0\xa0cross-domain accessing available",Url_Timeout_Error:"The video url is timeout,\xa0please try to refresh",Connetction_Error:"Sorry\uff0cthe video cannot play because of connection error, please try to watch other videos",Fetch_MTS_Error:"Fetching video list failed, please ensure",Token_Expired_Error:"Requesting open api failed, please ensure token expired or not",Video_Lists_Empty_Error:"The video list is empty, please check the format of video",Encrypted_Failed_Error:"Fetching encrypted file failed, please check the permission of player",Fetch_Failed_Permission_Error:"Fetching video list failed, please check the permission of player",Invalidate_Param_Error:"No video url, please check the parameters",AutoPlayDelayDisplayText:"Play in $$ seconds",Fetch_MTS_NOT_NotStream_Error:"The vid has no stream to play",Cancel_Text:"Cancel",OK_Text:"OK",Auto_Stream_Tip_Text:"Internet is slow, does switch to $$",Open_Html_By_File:"Html page should be on the server",Cant_Use_Flash_On_Mobile:"Mobile doesn't support flash player\uff0cplease use h5 player",Flash_Not_Ready:"Flash Player plugin hasn't been installed install plugin, or check if disable Flash plugin"}},{}],10:[function(e,t,i){t.exports=t.exports={OD:"\u539f\u753b",FD:"\u6d41\u7545",LD:"\u6807\u6e05",SD:"\u9ad8\u6e05",HD:"\u8d85\u6e05","2K":"2K","4K":"4K",FHD:"\u5168\u9ad8\u6e05",XLD:"\u6781\u901f",SQ:"\u666e\u901a\u97f3\u8d28",HQ:"\u9ad8\u97f3\u8d28",Forbidden_Text:"\u5185\u90e8\u4fe1\u606f\uff0c\u4e25\u7981\u5916\u4f20",Refresh:"\u5237\u65b0",Diagnosis:"\u8bca\u65ad",Live_Finished:"\u76f4\u64ad\u5df2\u7ed3\u675f,\u8c22\u8c22\u89c2\u770b",Play:"\u64ad\u653e",Pause:"\u6682\u505c",Snapshot:"\u622a\u56fe",Replay:"\u91cd\u64ad",Live:"\u76f4\u64ad",Encrypt:"\u52a0\u5bc6",Sound:"\u58f0\u97f3",Fullscreen:"\u5168\u5c4f",Exist_Fullscreen:"\u9000\u51fa\u5168\u5c4f",Resolution:"\u6e05\u6670\u5ea6",Next:"\u4e0b\u4e00\u96c6",Brightness:"\u4eae\u5ea6",Default:"\u9ed8\u8ba4",Contrast:"\u5bf9\u6bd4\u5ea6",Titles_Credits:"\u7247\u5934\u7247\u5c3e",Skip_Titles:"\u8df3\u8fc7\u7247\u5934",Skip_Credits:"\u8df3\u8fc7\u7247\u5c3e",Not_Support_Out_Site:"\u8be5\u89c6\u9891\u6682\u4e0d\u652f\u6301\u7ad9\u5916\u64ad\u653e\uff0c\u8bf7\u5230\u6dd8TV\u89c2\u770b",Watch_Now:"\u7acb\u5373\u89c2\u770b",Network_Error:"\u7f51\u7edc\u65e0\u6cd5\u8fde\u63a5\uff0c\u8bf7\u5c1d\u8bd5\u68c0\u67e5\u7f51\u7edc\u540e\u5237\u65b0\u8bd5\u8bd5",Video_Error:"\u89c6\u9891\u64ad\u653e\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u8bd5\u8bd5",Decode_Error:"\u64ad\u653e\u6570\u636e\u89e3\u7801\u9519\u8bef",Live_Not_Start:"\u4eb2\uff0c\u76f4\u64ad\u8fd8\u672a\u5f00\u59cb\u54e6\uff0c\u656c\u8bf7\u671f\u5f85",Live_Loading:"\u76f4\u64ad\u4fe1\u606f\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u5237\u65b0\u8bd5\u8bd5",Live_End:"\u4eb2\uff0c\u76f4\u64ad\u5df2\u7ed3\u675f",Live_Abrot:"\u5f53\u524d\u76f4\u64ad\u4fe1\u53f7\u4e2d\u65ad\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5",Corss_Domain_Error:"\u8bf7\u786e\u8ba4\u60a8\u7684\u57df\u540d\u5df2\u5b8c\u6210\u5907\u6848\u548cCNAME\u7ed1\u5b9a\uff0c\r\n\u5e76\u5904\u4e8e\u542f\u7528\u72b6\u6001\uff0c\u6216\u8d44\u6e90\u5141\u8bb8\u8de8\u8d8a\u8bbf\u95ee",Url_Timeout_Error:"\u60a8\u6240\u89c2\u770b\u7684\u89c6\u9891\u5730\u5740\u8fde\u63a5\u8d85\u65f6\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5",Connetction_Error:"\u62b1\u6b49,\u8be5\u89c6\u9891\u7531\u4e8e\u8fde\u63a5\u9519\u8bef\u6682\u65f6\u4e0d\u80fd\u64ad\u653e,\u8bf7\u89c2\u770b\u5176\u5b83\u89c6\u9891",Fetch_MTS_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4",Token_Expired_Error:"\u8bf7\u6c42\u63a5\u53e3\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4Token\u662f\u5426\u8fc7\u671f",Video_Lists_Empty_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u4e3a\u7a7a\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6570\u636e\u4e0e\u683c\u5f0f",Encrypted_Failed_Error:"\u83b7\u53d6\u89c6\u9891\u52a0\u5bc6\u79d8\u94a5\u9519\u8bef\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6743\u9650",Fetch_Failed_Permission_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6743\u9650",Invalidate_Param_Error:"\u65e0\u8f93\u5165\u89c6\u9891\uff0c\u8bf7\u786e\u8ba4\u8f93\u5165\u53c2\u6570",AutoPlayDelayDisplayText:"$$\u79d2\u4ee5\u540e\u5f00\u59cb\u64ad\u653e",Fetch_MTS_NOT_NotStream_Error:"\u6b64vid\u6ca1\u6709\u53ef\u64ad\u653e\u89c6\u9891",Cancel_Text:"\u53d6\u6d88",OK_Text:"\u786e\u8ba4",Auto_Stream_Tip_Text:"\u7f51\u7edc\u4e0d\u7ed9\u529b\uff0c\u662f\u5426\u5207\u6362\u5230$$",Fetch_Playauth_Error:"\u83b7\u53d6\u64ad\u653e\u51ed\u8bc1\u51fa\u9519\u5566\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Open_Html_By_File:"\u4e0d\u80fd\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u6253\u5f00html\u6587\u4ef6\uff0c\u8bf7\u90e8\u7f72\u5230\u670d\u52a1\u7aef",Cant_Use_Flash_On_Mobile:"\u79fb\u52a8\u7aef\u4e0d\u652f\u6301Flash\u64ad\u653e\u5668\uff0c\u8bf7\u4f7f\u7528h5\u64ad\u653e\u5668",Flash_Not_Ready:"Flash Player\u63d2\u4ef6\u672a\u5b89\u88c5\u5b89\u88c5\u63d2\u4ef6\uff0c\u5982\u679c\u5df2\u7ecf\u5b89\u88c5\u8bf7\u68c0\u67e5\u662f\u5426\u88ab\u7981\u7528"}},{}],11:[function(n,e,t){var i=n("../config"),a=n("../lib/storage"),o=(n("../lib/io"),"aliplayer_lang"),s=function(){if(void 0===window[o]||!window[o]){var e=(navigator.language||navigator.browserLanguage).toLowerCase();e=e&&-1\u53c2\u8003\u6587\u6863",Speed_Switch_To:"\u500d\u901f\u5207\u6362\u5230 ",Curent_Volume:"\u5f53\u524d\u97f3\u91cf\uff1a",Volume_Mute:"\u8bbe\u7f6e\u4e3a\u9759\u97f3",Volume_UnMute:"\u8bbe\u7f6e\u4e3a\u975e\u9759\u97f3",ShiftLiveTime_Error:"\u76f4\u64ad\u5f00\u59cb\u65f6\u95f4\u4e0d\u80fd\u5927\u4e8e\u76f4\u64ad\u7ed3\u675f\u65f6\u95f4",Error_Not_Support_Format_On_Mobile:"\u79fb\u52a8\u7aef\u4e0d\u652f\u6301flv\u3001rmtp\u89c6\u9891\uff0c\u8bf7\u4f7f\u7528m3u8",SessionId_Ticket_Invalid:"DRM\u89c6\u9891\u64ad\u653e\uff0csessionId\u548cticket\u5c5e\u6027\u4e0d\u80fd\u4e3a\u7a7a",Http_Error:"Http\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25",Http_Timeout:"http\u8bf7\u6c42\u8d85\u65f6",DRM_License_Expired:"DRM license\u8d85\u65f6\uff0c\u8bf7\u5237\u65b0",Not_Support_DRM:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301DRM\u89c6\u9891\u7684\u64ad\u653e",CC_Switch_To:"\u5b57\u5e55\u5207\u6362\u5230 ",AudioTrack_Switch_To:"\u97f3\u8f68\u5207\u6362\u5230 ",Subtitle:"\u5b57\u5e55",AudioTrack:"\u97f3\u8f68",Quality:"\u6e05\u6670\u5ea6",Auto:"\u81ea\u52a8",Quality_Switch_To:"\u6e05\u6670\u5ea6\u5207\u6362\u5230 ",Fullscreen:"\u5168\u5c4f",Setting:"\u8bbe\u7f6e",Volume:"\u97f3\u91cf",Play:"\u64ad\u653e",Pause:"\u6682\u505c",CloseSubtitle:"\u5173\u95ed\u5b57\u5e55",OpenSubtitle:"\u6253\u5f00\u5b57\u5e55",ExistFullScreen:"\u9000\u51fa\u5168\u5c4f",Muted:"\u9759\u97f3",Retry:"\u91cd\u8bd5",SwitchToLive:"\u8fd4\u56de\u76f4\u64ad",iOSNotSupportVodEncription:"iOS\u4e0d\u652f\u6301\u70b9\u64ad\u52a0\u5bc6\u64ad\u653e",UseChromeForVodEncription:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u70b9\u64ad\u52a0\u5bc6\u64ad\u653e\uff0c\u8bf7\u4f7f\u7528\u6700\u65b0Chrome\u6d4f\u89c8\u5668"}},{}],13:[function(e,t,i){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";if(window.Uint8Array)for(var d=new Uint8Array(256),r=0;r>4,c[l++]=(15&r)<<4|o>>2,c[l++]=(3&o)<<6|63&n;return u},encode:function(e){var t,i=new Uint8Array(e),r=i.length,o="";for(t=0;t>2],o+=n[(3&i[t])<<4|i[t+1]>>4],o+=n[(15&i[t+1])<<2|i[t+2]>>6],o+=n[63&i[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o},unpackPlayReady:unpackPlayReady}},{}],14:[function(e,t,i){var r=e("./oo"),o=e("../player/base/event/eventtype");t.exports.stopPropagation=function(e){window.event?window.event.cancelBubble=!0:e.stopPropagation()},t.exports.register=function(e){e.util={stopPropagation:t.exports.stopPropagation},e.Component=r.extend,e.EventType=o.Player}},{"../player/base/event/eventtype":43,"./oo":27}],15:[function(e,t,i){var r=e("../lang/index");t.exports.LOAD_START="loadstart",t.exports.LOADED_METADATA="loadedmetadata",t.exports.LOADED_DATA="loadeddata",t.exports.PROGRESS="progress",t.exports.CAN_PLAY="canplay",t.exports.CAN_PLYA_THROUGH="canplaythrough",t.exports.PLAY="play",t.exports.PAUSE="pause",t.exports.ENDED="ended",t.exports.PLAYING="playing",t.exports.WAITING="waiting",t.exports.ERROR="error",t.exports.SUSPEND="suspend",t.exports.STALLED="stalled",t.exports.AuthKeyExpiredEvent="authkeyexpired",t.exports.DRMKeySystem={4:"com.microsoft.playready",5:"com.widevine.alpha"},t.exports.EncryptionType={Private:1,Standard:2,ChinaDRM:3,PlayReady:4,Widevine:5},t.exports.VodEncryptionType={AliyunVoDEncryption:1,HLSEncryption:2},t.exports.DRMType={Widevine:"Widevine",PlayReady:"PlayReady"},t.exports.ErrorCode={InvalidParameter:4001,AuthKeyExpired:4002,InvalidSourceURL:4003,NotFoundSourceURL:4004,StartLoadData:4005,LoadedMetadata:4006,PlayingError:4007,LoadingTimeout:4008,RequestDataError:4009,EncrptyVideoNotSupport:4010,FormatNotSupport:4011,PlayauthDecode:4012,PlayDataDecode:4013,NetworkUnavaiable:4014,UserAbort:4015,NetworkError:4016,URLsIsEmpty:4017,CrossDomain:4027,OtherError:4400,ServerAPIError:4500,FlashNotInstalled:4600},t.exports.AuthKeyExpired=7200,t.exports.AuthKeyRefreshExpired=7e3,t.exports.AuthInfoExpired=100,t.exports.VideoErrorCode={1:4015,2:4016,3:4013,4:4400},t.exports.IconType={FontClass:"fontclass",Symbol:"symbol",Sprite:"Sprite"},t.exports.SelectedStreamLevel="selectedStreamLevel",t.exports.SelectedCC="selectedCC",t.exports.WidthMapToLevel={0:"OD",640:"FD",960:"LD",1280:"SD",1920:"HD",2580:"2K",3840:"4K"};var o=function(){t.exports.VideoErrorCodeText={1:r.get("Error_Load_Abort_Text"),2:r.get("Error_Network_Text"),3:r.get("Error_Decode_Text"),4:r.get("Error_Server_Network_NotSupport_Text")},t.exports.VideoLevels={0:r.get("OD"),640:r.get("FD"),960:r.get("LD"),1280:r.get("SD"),1920:r.get("HD"),2580:r.get("2K"),3840:r.get("4K")},t.exports.QualityLevels={OD:r.get("OD"),LD:r.get("LD"),FD:r.get("FD"),SD:r.get("SD"),HD:r.get("HD"),"2K":r.get("2K"),"4K":r.get("4K"),XLD:r.get("XLD"),FHD:r.get("FHD"),SQ:r.get("SQ"),HQ:r.get("HQ")},t.exports.SpeedLevels=[{key:.5,text:r.get("Speed_05X_Text")},{key:1,text:r.get("Speed_1X_Text")},{key:1.25,text:r.get("Speed_125X_Text")},{key:1.5,text:r.get("Speed_15X_Text")},{key:2,text:r.get("Speed_2X_Text")}]};o(),t.exports.updateByLanguage=o},{"../lang/index":11}],16:[function(e,t,i){t.exports.get=function(e){for(var t=e+"",i=document.cookie.split(";"),r=0;rNumber.MAX_SAFE_INTEGER?1/0:t},hexadecimalInteger:function(e){if(this[e]){var t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;for(var i=new Uint8Array(t.length/2),r=0;rNumber.MAX_SAFE_INTEGER?1/0:t},decimalFloatingPoint:function(e){return parseFloat(this[e])},enumeratedString:function(e){return this[e]},decimalResolution:function(e){var t=r.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}},parseAttrList:function(e){var t,i={};for(o.lastIndex=0;null!==(t=o.exec(e));){var r=t[2];0===r.indexOf('"')&&r.lastIndexOf('"')===r.length-1&&(r=r.slice(1,-1)),i[t[1]]=r}return i}},t.exports=n},{}],23:[function(e,t,i){var P=e("./attrlist"),r=e("../io"),o=e("./URLToolkit"),c=/#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,u=/#EXT-X-MEDIA:(.*)/g,w=new RegExp([/#EXTINF:(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)(\S+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),C=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)(.*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,k=function(){this.method=null,this.key=null,this.iv=null,this._uri=null},I=function(){this._url=null,this._byteRange=null,this._decryptdata=null,this.tagList=[]};I.prototype.getUrl=function(){return!this._url&&this.relurl&&(this._url=o.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},I.prototype.Seturl=function(e){this._url=e},I.prototype.getProgramDateTime=function(){return!this._programDateTime&&this.rawProgramDateTime&&(this._programDateTime=new Date(Date.parse(this.rawProgramDateTime))),this._programDateTime},I.prototype.GetbyteRange=function(){if(!this._byteRange){var e=this._byteRange=[];if(this.rawByteRange){var t=this.rawByteRange.split("@",2);if(1===t.length){var i=this.lastByteRangeEndOffset;e[0]=i||0}else e[0]=parseInt(t[1]);e[1]=parseInt(t[0])+e[0]}}return this._byteRange},I.prototype.getByteRangeStartOffset=function(){return this.byteRange[0]},I.prototype.getByteRangeEndOffset=function(){return this.byteRange[1]};I.prototype.getDecryptdata=function(){return this._decryptdata||(this._decryptdata=this.fragmentDecryptdataFromLevelkey(this.levelkey,this.sn)),this._decryptdata};var n=function(){this.loaders={}};n.prototype={parseMasterPlaylist:function(e,t){var i,r=[];for(c.lastIndex=0;null!=(i=c.exec(e));){var o={},n=o.attrs=new P(i[1]);o.url=this.resolve(i[2],t);var a=n.decimalResolution("RESOLUTION");a&&(o.width=a.width,o.height=a.height),o.bitrate=n.decimalInteger("AVERAGE-BANDWIDTH")||n.decimalInteger("BANDWIDTH"),o.name=n.NAME;var s=n.CODECS;if(s){s=s.split(/[ ,]+/);for(var l=0;l",quot:'"',"#x27":"'","#x60":"`"}[t.toLowerCase()]||e})}},{}],27:[function(e,t,i){var o=e("./object"),n=function(){};(n=function(){}).extend=function(e){var t,i;for(var r in t=(e=e||{}).init||e.init||this.prototype.init||this.prototype.init||function(){},(((i=function(){t.apply(this,arguments)}).prototype=o.create(this.prototype)).constructor=i).extend=n.extend,i.create=n.create,e)e.hasOwnProperty(r)&&(i.prototype[r]=e[r]);return i},n.create=function(){var e=o.create(this.prototype);return this.apply(e,arguments),e},t.exports=n},{"./object":26}],28:[function(e,f,t){var _=e("./object"),i=e("../config"),r=e("./dom"),o=e("./cookie"),n=e("./constants"),a=e("../lang/index"),s=e("./ua"),g=e("../player/base/plugin/defaultemptycomponent"),y={preload:!0,autoplay:!0,useNativeControls:!1,width:"100%",height:"300px",cover:"",from:"",trackLog:!0,logBatched:!0,isLive:!1,playsinline:!0,showBarTime:5e3,rePlay:!1,liveRetry:5,liveRetryInterval:1,liveRetryStep:0,vodRetry:3,format:"",definition:"",defaultDefinition:"",loadDataTimeout:20,waitingTimeout:60,delayLoadingShow:1,controlBarForOver:!1,controlBarVisibility:"hover",enableSystemMenu:!1,qualitySort:"asc",x5_video_position:"normal",x5_type:"",x5_fullscreen:!1,x5_orientation:"landscape|portrait",x5LandscapeAsFullScreen:!0,autoPlayDelay:0,autoPlayDelayDisplayText:"",useHlsPluginForSafari:!1,enableMSEForAndroid:!0,encryptType:0,language:"zh-cn",languageTexts:{},mediaType:"video",outputType:"",playConfig:{},reAuthInfo:{},components:[],liveTimeShiftUrl:"",liveShiftSource:"",liveShiftTime:"",videoHeight:"100%",videoWidth:"100%",enableWorker:!0,authTimeout:"",enableMockFullscreen:!1,region:"cn-shanghai",debug:!1,progressMarkers:[],snapshotWatermark:{left:"500",top:"100",text:"",font:"16px \u5b8b\u4f53",fillColor:"#FFFFFF",strokeColor:"#FFFFFF"},liveStartTime:"",liveOverTime:"",enableStashBufferForFlv:!0,stashInitialSizeForFlv:32,flvOption:{},hlsOption:{stopLoadAsPaused:!1},hlsLoadingTimeOut:2e4,useHlsPlugOnMobile:!0,nudgeMaxRetry:5,tracks:[],recreatePlayer:function(){},diagnosisButtonVisible:!0,_native:!0,ai:{label:!1,meta:{url:"http://172.19.61.105:8085/meta/query",getMeta:""},boxes:"",host:"",app:"",streamName:"",startDateTime:0,waitMetaDataTime:2,displayAttrs:{header:"\u59d3\u540d","\u8bc1\u4ef6\u53f7\u7801":"text","\u6027\u522b":"text","\u5e74\u9f84":"text","\u53d1\u578b":"text","\u4eba\u8138\u5927\u56fe":function(e){},"\u4eba\u8138\u5c0f\u56fe":function(e){}},getClass:function(e,t){return""}},thumbnailUrl:"",skinRes:"//"+i.domain+"/de/prismplayer-flash/"+i.flashVersion+"/atlas/defaultSkin"};f.exports.defaultH5Layout=[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:50},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"fullScreenButton",align:"tr",x:10,y:12},{name:"subtitle",align:"tr",x:15,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}]}],f.exports.defaultAudioLayout=[{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"volume",align:"tr",x:5,y:10}]}],f.exports.defaultFlashLayout=[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"tlabs",x:0,y:0},{name:"playButton",align:"tl",x:15,y:26},{name:"nextButton",align:"tl",x:10,y:26},{name:"timeDisplay",align:"tl",x:10,y:24},{name:"fullScreenButton",align:"tr",x:10,y:25},{name:"streamButton",align:"tr",x:10,y:23},{name:"volume",align:"tr",x:10,y:25}]},{name:"fullControlBar",align:"tlabs",x:0,y:0,children:[{name:"fullTitle",align:"tl",x:25,y:6},{name:"fullNormalScreenButton",align:"tr",x:24,y:13},{name:"fullTimeDisplay",align:"tr",x:10,y:12},{name:"fullZoom",align:"cc"}]}],f.exports.canPlayType=function(e){var t=document.createElement("video");return t.canPlayType?t.canPlayType(e):""},f.exports.canPlayHls=function(){return""!=f.exports.canPlayType("application/x-mpegURL")},f.exports.isUsedHlsPluginOnMobile=function(e){return!(!s.IS_MOBILE||!s.IS_CHROME&&!s.IS_FIREFOX)},f.exports.isSafariUsedHlsPlugin=function(e){return!!(s.os.pc&&s.browser.safari&&e)},f.exports.hasUIComponent=function(e,t){if(void 0===e||!e||0==e.length)return!1;for(var i=0,r=e.length;ix'}).firstChild.href),e},t.exports.parseUrl=function(e){var t,i,r,o,n;o=["protocol","hostname","port","pathname","search","hash","host"],(r=""===(i=s.createEl("a",{href:e})).host&&"file:"!==i.protocol)&&((t=s.createEl("div")).innerHTML='',i=t.firstChild,t.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(t)),n={};for(var a=0;a/g,">").replace(/\&/g,"&").replace(/"/g,""").replace(/'/g,"'")},r.exports.toBinary=function(e){if(!window.atob)return"";for(var t=atob(e),i=t.length,r=new Uint8Array(i),o=0;o>>0).toString()},r={parse:function(e,t,i){var r,o=e.trim().replace(/\r\n|\n\r|\n|\r/g,"\n").split("\n"),n=[],a=new s;a.oncue=function(e){e.id=l(e.startTime)+l(e.endTime)+l(e.text),e.text=decodeURIComponent(escape(e.text)),e.isBig=!1;var t=e.text.split("#xywh=");if(2==t.length){var i=t[1].split(",");e.x=i[0],e.y=i[1],e.w=i[2],e.h=i[3],e.isBig=!0}0/gi,"\n")}(e);tthis._uploadCount||"4001"==e.e||"2002"==e.e)&&this._report()},r.prototype.dispose=function(){this._report(),this._disposed=!0},r.prototype._start=function(){this._disposed=!1;this._retry=0,this._report()},r.prototype._report=function(t){if(this._tickHandler&&(clearTimeout(this._tickHandler),this._tickHandler=null),t||(t=this._logs.splice(0,this._uploadCount)),0this._uploadCount?e._report():this._tickHandler=setTimeout(function(){e._report()},1e3*this._uploadDuration)}},t.exports=r},{"../lib/io":24,"../lib/storage":30}],38:[function(e,t,i){var r=e("../lib/oo"),u=e("../lib/object"),v=e("../lib/data"),c=e("../lib/io"),m=e("../lib/ua"),S=e("../config"),o=e("../player/base/event/eventtype"),T=e("./util"),b=e("./log"),n=0,d={STARTFETCHDATA:1003,COMPLETEFETCHDATA:1004,PREPARE:1101,PREPAREEND:1102,STARTPLAY:2e3,PLAY:2001,STOP:2002,PAUSE:2003,SEEK:2004,FULLSREEM:2005,QUITFULLSCREEM:2006,RESOLUTION:2007,RESOLUTION_DONE:2008,RECOVER:2010,SEEK_END:2011,FETCHEDIP:2020,CDNDETECT:2021,DETECT:2022,UNDERLOAD:3002,LOADED:3001,HEARTBEAT:9001,ERROR:4001,ERRORRETRY:4002,SNAPSHOT:2027,ROTATE:2028,IMAGE:2029,THUMBNAILSTART:2031,THUMBNAILCOMPLETE:2032,CCSTART:2033,CCCOMPLETE:2034,AUDIOTRACKSTART:2033,AUDIOTRACKCOMPLETE:2034},a=r.extend({init:function(e,t,i){void 0===i&&(i=!0),this.trackLog=i,this.player=e,this.requestId="",this.sessionId=v.guid(),this.playId=0,this.firstPlay=!0,this.osName=m.os.name,this.osVersion=m.os.version||"",this.exName=m.browser.name,this.exVersion=m.browser.version||"",this._logService="",t.logBatched&&(this._logService=new b(S));var r=this.player.getOptions(),o=t.from?t.from:"",n=(r.isLive,r.isLive?"live":"vod"),a="pc";m.IS_IPAD?a="pad":m.os.phone&&(a="phone");var s=this.encodeURL(m.getReferer()),l=m.getHref(),u=this.encodeURL(l),c="";l&&(c=m.getHost(l));var d=S.h5Version,p=T.getUuid(),h=r.source?this.encodeURL(r.source):"",f=m.getHost(r.source),_=r.userId?r.userId+"":"0",g=this.sessionId,y=(new Date).getTime();this._userNetInfo={cdnIp:"",localIp:""};this.opt={APIVersion:"0.6.0",t:y,ll:"info",lv:"1.0",pd:"player",md:"saas_player",ui:"saas_player",sm:"play",os:this.osName,ov:this.osVersion,et:this.exName,ev:this.exVersion,uat:m.USER_AGENT,hn:"0.0.0.0",bi:o,ri:g,e:"0",args:"0",vt:n,tt:a,dm:"h5",av:d,uuid:p,vu:h,vd:f,ua:_,dn:"custom",cdn_ip:"0.0.0.0",app_n:c,r:s,pu:u},this.bindEvent()},updateVideoInfo:function(e){var t=e.from?e.from:"";this.opt.bi=t+"",this.updateSourceInfo()},updateSourceInfo:function(){var e=this.player.getOptions();if(e){var t=e.source?this.encodeURL(e.source):"",i=m.getHost(e.source);this.opt.vu=t,this.opt.vd=i}},replay:function(){this.reset(),this.player.trigger(o.Video.LoadStart),this.player.trigger(o.Video.LoadedMetadata),this.player.trigger(o.Video.LoadedData)},bindEvent:function(){var t=this;this.player.on(o.Player.Init,function(){t._onPlayerInit()}),this.player.on(o.Video.LoadStart,function(){t._onPlayerloadstart()}),this.player.on(o.Video.LoadedMetadata,function(){t._onPlayerLoadMetadata()}),this.player.on(o.Video.LoadedData,function(){t._onPlayerLoaddata()}),this.player.on(o.Video.Play,function(){t._onPlayerPlay()}),this.player.on(o.Video.Playing,function(){t._onPlayerReady()}),this.player.on(o.Video.Ended,function(){t._onPlayerFinish()}),this.player.on(o.Video.Pause,function(){t._onPlayerPause()}),this.player.on(o.Private.SeekStart,function(e){t._onPlayerSeekStart(e)}),this.player.on(o.Private.EndStart,function(e){t._seekEndData=e.paramData}),this.player.on(o.Player.Waiting,function(){t._waitingDelayLoadingShowHandle&&(clearTimeout(t._waitingDelayLoadingShowHandle),t._waitingDelayLoadingShowHandle=null),t._waitingDelayLoadingShowHandle=setTimeout(function(){t._onPlayerLoaded()},1e3*t.player._options.delayLoadingShow)}),this.player.on(o.Video.CanPlayThrough,function(){}),this.player.on(o.Video.CanPlay,function(){t._waitingDelayLoadingShowHandle&&(clearTimeout(t._waitingDelayLoadingShowHandle),t._waitingDelayLoadingShowHandle=null),t._onPlayerUnderload(),t._onPlayerCanplay()}),this.player.on(o.Video.TimeUpdate,function(){t._waitingDelayLoadingShowHandle&&(clearTimeout(t._waitingDelayLoadingShowHandle),t._waitingDelayLoadingShowHandle=null),t._seekEndData&&t.seeking&&t._onPlayerSeekEnd()}),this.player.on(o.Player.Error,function(){t._onPlayerError()}),this.player.on(o.Player.RequestFullScreen,function(){t._onFullscreenChange(1)}),this.player.on(o.Player.CancelFullScreen,function(){t._onFullscreenChange(0)}),this.player.on(o.Private.PREPARE,function(e){t._prepareTime=(new Date).getTime(),t._log("PREPARE",{dn:e.paramData})}),this.player.on(o.Player.Snapshoted,function(){t._log("SNAPSHOT")}),setInterval(function(){if(t.player.getCurrentTime()){var e=Math.floor(1e3*t.player.getCurrentTime());t.player.paused()||30<=++n&&(t._log("HEARTBEAT",{vt:e,interval:1e3*n}),n=0)}},1e3)},removeEvent:function(){this.player.off("init"),this.player.off("ready"),this.player.off("ended"),this.player.off("play"),this.player.off("pause"),this.player.off("seekStart"),this.player.off("seekEnd"),this.player.off("canplaythrough"),this.player.off("playing"),this.player.off("timeupdate"),this.player.off("error"),this.player.off("fullscreenchange"),this.player.off(o.Private.PREPARE),this._logService&&this._logService.dispose()},reset:function(){this.startTimePlay=0,this.buffer_flag=0,this.firstPlay=!1,this.playId=0,this.loadstarted=0,this._LoadedData=0,this._canPlay=0},encodeURL:function(e){if(!e)return"";var t=this.player.getOptions();return t&&!t.logBatched?encodeURIComponent(e):e},_onFullscreenChange:function(e){e?this._log("FULLSREEM",{}):this._log("QUITFULLSCREEM",{})},_onPlayerloadstart:function(){this.loadstartTime=(new Date).getTime(),this.playId=v.guid(),!this.loadstarted&&this.player._isPreload()&&(this.loadstarted=1,this._log("STARTPLAY",{vt:(new Date).getTime()}))},_onPlayerLoadMetadata:function(){this.loadMetaDataCost=(new Date).getTime()-this.loadstartTime},_onPlayerLoaddata:function(){if(!this._LoadedData&&!this.buffer_flag){var e=0,t=0;this.player.tag&&(e=this.player.tag.videoWidth,t=this.player.tag.videoHeight),this._log("PREPAREEND",{tc:(new Date).getTime()-this._prepareTime,cc:(new Date).getTime()-this.loadstartTime,md:this.loadMetaDataCost,mi:JSON.stringify({type:"video",definition:e+"*"+t})})}this._LoadedData=1},_onPlayerCanplay:function(){this._canPlay=1,this._reportPlay()},_onPlayerInit:function(){this.buffer_flag=0,this.pause_flag=0,this.startTimePlay=0,this.loadstarted=0,this._LoadedData=0,this._canPlay=0},_onPlayerReady:function(){this.startTimePlay||(this.startTimePlay=(new Date).getTime())},_onPlayerFinish:function(){this._log("STOP",{vt:Math.floor(1e3*this.player.getCurrentTime())}),this.reset()},_reportPlay:function(){return!(this.buffer_flag||!this._LoadedData||!this.playstartTime)&&(this.first_play_time=(new Date).getTime(),this._log("PLAY",{dsm:"fix",tc:this.first_play_time-this.loadstartTime,fc:this.first_play_time-this.playstartTime}),this.buffer_flag=1,!0)},_onPlayerPlay:function(){this.playstartTime=(new Date).getTime(),0==this.playId&&(this.playId=v.guid()),this.firstPlay||0!=this.pause_flag||this.seeking||(this.sessionId=v.guid()),this.player._isPreload()||(this._log("STARTPLAY",{vt:(new Date).getTime()}),this.loadstartTime=(new Date).getTime()),this._canPlay&&this._reportPlay()||this.buffer_flag&&this.pause_flag&&(this.pause_flag=0,this.pauseEndTime=(new Date).getTime(),this._log("RECOVER",{vt:Math.floor(1e3*this.player.getCurrentTime()),cost:this.pauseEndTime-this.pauseTime}))},_onPlayerPause:function(){this.buffer_flag&&this.startTimePlay&&(this.seeking||(this.pause_flag=1,this.pauseTime=(new Date).getTime(),this._log("PAUSE",{vt:Math.floor(1e3*this.player.getCurrentTime())})))},_onPlayerSeekStart:function(e){this.seekStartTime=e.paramData.fromTime,this.seeking=!0,this.startTimePlay=0,this.seekStartStamp=(new Date).getTime()},_onPlayerSeekEnd:function(){this.seekEndStamp=(new Date).getTime(),this._log("SEEK",{drag_from_timestamp:Math.floor(1e3*this.seekStartTime),drag_to_timestamp:Math.floor(1e3*this._seekEndData.toTime)}),this._log("SEEK_END",{vt:Math.floor(1e3*this.player.getCurrentTime()),cost:this.seekEndStamp-this.seekStartStamp}),this.seeking=!1,this._seekEndData=null},_onPlayerLoaded:function(){this.buffer_flag&&this.startTimePlay&&(this.stucking||this.seeking||(this.stuckStartTime=(new Date).getTime(),this.stuckStartTime-this.startTimePlay<=1e3||(this.stucking=!0,this._log("UNDERLOAD",{vt:Math.floor(1e3*this.player.getCurrentTime())}),this.stuckStartTime=(new Date).getTime())))},_onPlayerUnderload:function(){if((this.buffer_flag||!this.player._options||!this.player._options.autoplay)&&this.stucking&&!this.seeking){var e=Math.floor(1e3*this.player.getCurrentTime()),t=this.stuckStartTime||(new Date).getTime(),i=Math.floor((new Date).getTime()-t);0t._liveRetryCount?t._reloadAndPlayForM3u8():(t._liveRetryCount=0,t.trigger(c.Player.LiveStreamStop),t._liveErrorHandle=setTimeout(function(){var e={mediaId:"ISLIVE",error_code:r,error_msg:p.get("Error_Play_Text")+"\uff0c"+p.get("Error_Retry_Text")};t.logError(e),t.trigger("error",e)}));else if(t._reloadForVod());else{var a=p.get("Error_Play_Text"),s=!1;if(i<4){if(3==i&&t._firstDecodeError){var l=t.getCurrentTime()+1;return t._loadByUrlInner(t._options.source,l,!0),void(t._firstDecodeError=!1)}a=d.VideoErrorCodeText[i]}else t._eventState==d.SUSPEND?(a=p.get("Error_Load_Abort_Text"),r=d.ErrorCode.RequestDataError):t._eventState==d.LOAD_START?(a=p.get("Error_Network_Text"),0"+(100*e).toFixed()+"%";this._player.trigger(T.Private.Info_Show,{text:i,duration:1e3,align:"lb"})},P.prototype._setInnerVolume=function(e){this.tag.volume=e,this.trigger(T.Private.VolumnChanged,e)},P.prototype.hideProgress=function(){this.trigger(T.Private.HideProgress)},P.prototype.cancelHideProgress=function(){this.trigger(T.Private.CancelHideProgress)},P.prototype.setPlayerSize=function(e,t){this._el.style.width=e,this._el.style.height=t},P.prototype.getBuffered=function(){return this.tag.buffered},P.prototype.setRotate=function(e){this.tag&&(this._rotate=e,this._setTransform(),this.log("ROTATE",{rotation:e}))},P.prototype.getRotate=function(e){return void 0===this._rotate?0:this._rotate},P.prototype.setImage=function(e){this.tag&&(this._image=e,this._setTransform(),this.log("IMAGE",{mirror:"horizon"==e?2:1,text:e}))},P.prototype.getImage=function(){return this._image},P.prototype.cancelImage=function(){this.tag&&(this._image="",this._setTransform(),this.log("IMAGE",{mirror:0}))},P.prototype.setCover=function(e){var t=document.querySelector("#"+this.id()+" .prism-cover");t&&e&&(t.style.backgroundImage="url("+e+")",this._options.cover=e,this.trigger(T.Private.Cover_Show))},P.prototype._setTransform=function(){this._transformProp||(this._transformProp=o.getTransformName(this.tag));var e=" translate(-50%, -50%)";this._rotate&&(e+=" rotate("+this._rotate+"deg)"),this._image&&("vertical"==this._image?e+=" scaleY(-1)":"horizon"==this._image&&(e+=" scaleX(-1)")),this.tag.style[this._transformProp]=e},P.prototype._startPlay=function(){this.tag.paused&&this.tag.play()},P.prototype._initPlayBehavior=function(e,t){if(this._checkSupportVideoType())return!1;if(p.validateSource(t))return void 0===e&&(e=!1),this._created||(this._created=!0,this.trigger(T.Private.Created)),this.loaded||this.trigger(T.Player.Init),this._options.autoplay||this._options._autoplay||this._options.preload||e?(this._options._preload=!0,this._initLoad(t),(this._options.autoplay||this._options._autoplay)&&this._startPlay()):this.trigger(T.Private.Play_Btn_Show),!0;var i={mediaId:this._options.vid?this._options.vid:"",error_code:c.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"};return i.display_msg=_.get("Error_Invalidate_Source"),this.trigger(T.Player.Error,i),!1},P.prototype._isPreload=function(){return this._options.autoplay||this._options.preload||this._options._preload},P.prototype._initLoad=function(e){this.getMetaData(),e&&(this._isPreload()&&!r.IS_MOBILE?this.trigger(T.Private.H5_Loading_Show):(this.trigger(T.Private.H5_Loading_Hide),this.trigger(T.Private.Play_Btn_Show)),this.tag.setAttribute("src",e),this.loaded=!0)},P.prototype._clearLiveErrorHandle=function(){this._liveErrorHandle&&(clearTimeout(this._liveErrorHandle),this._liveErrorHandle=null)},P.prototype._reloadAndPlayForM3u8=function(){0==this._liveRetryCount&&this.trigger(T.Player.OnM3u8Retry);var e=this._options,t=e.liveRetryInterval+e.liveRetryStep*this._liveRetryCount;d.sleep(1e3*t),this._liveRetryCount++,this.tag.load(this._options.source),this.tag.play()},P.prototype._checkSupportVideoType=function(){if(!this.tag.canPlayType||!this._options.source||!r.IS_MOBILE)return"";var e=this._options.source,t="";if(0=this._options.playConfig.PreviewTime},P.prototype.isPreview=function(){var e=this._options.playConfig.PreviewTime,t=this._vodDuration||this.tag.duration;return 0'},_getPlayer:function(e){return-1!=navigator.appName.indexOf("Microsoft")?document.getElementById(e):document[e]},_getLowerQualityLevel:function(){var e=this._getVideoUrls();if(!e)return"";var t=e.Urls,i=e.index;return t&&0==t.length||-1==i?"":0u._liveRetryCount){0==u._liveRetryCount&&u.trigger(_.Player.OnM3u8Retry);var l=s.liveRetryInterval+s.liveRetryStep*u._liveRetryCount;u._liveRetryCount++,h.sleep(1e3*l),u._loadByUrlInner(s.source)}else u._liveErrorHandle&&clearTimeout(u._liveErrorHandle),u.trigger(_.Player.LiveStreamStop),u._liveErrorHandle=setTimeout(a,500)}else{if(u._reloadForVod())return;a()}})}}}},{"../../config":5,"../../lang/index":11,"../../lib/constants":15,"../../lib/dom":18,"../../lib/io":24,"../../lib/playerutil":29,"../../lib/ua":31,"../../lib/util":33,"../base/event/eventtype":43,"../base/player":62}],72:[function(e,t,i){var r=e("../base/player"),o=e("./flvinjector"),n=r.extend({init:function(e,t){o.inject(this,n,r,t,function(e){}),t._native=!1,r.call(this,e,t)}});t.exports=n},{"../base/player":62,"./flvinjector":71}],73:[function(e,t,i){var c=e("../../lib/io"),d=e("../../config"),p=e("../../lib/constants"),h=e("../../lib/util"),f=e("../../lib/playerutil"),_=(e("../../lib/dom"),e("../../lib/ua")),g=e("../../lang/index"),y=e("../base/event/eventtype");e("../base/player");t.exports.inject=function(e,t,i,r,n,o){var a=r.source,s=r.useHlsPluginForSafari,l=r.useHlsPlugOnMobile;if(n||o||function(e,t,i,r){return!(e._hls||!f.isHls(t)||!(!f.canPlayHls()||f.isSafariUsedHlsPlugin(i)||r&&f.isUsedHlsPluginOnMobile()))}(e,a,s,l)){e._Type=t,e._superType=i,e._superPt=i.prototype,e._disposed=!1,t.prototype._checkHlsReady=function(){if(null==e._hls)throw new Error("please invoke this method after ready event")},e._isHls=!0,e._hls=null,e._isLoadedHls=!1,e._stopLoadAsPaused=!0,t.prototype.play=function(e){this._checkHlsReady(),this._isManualPlay=e||!1;if(this.trigger(y.Private.Cover_Hide),this._options.autoplay||this._options.preload||this._loadSourced||(this._loadSourced=!0,this._options._autoplay=!0,this._hls.loadSource(this._options.source)),this.tag.ended||this._ended)this.replay();else if(this.tag.paused&&(this.tag.play(),this._stopLoadAsPaused)){var t=this.getCurrentTime();this._hls.startLoad(t)}return this},t.prototype.replay=function(){return this._monitor&&this._monitor.replay(),this._hls.startLoad(0),this.tag.play(),this},t.prototype.pause=function(e){return this.tag&&(this._checkHlsReady(),this.tag.pause(),this._stopLoadAsPaused&&this._hls.stopLoad()),this._isManualPause=e||!1,this},t.prototype.stop=function(){return this._checkHlsReady(),this.tag.setAttribute("src",null),this._hls.stopLoad(),this},t.prototype.seek=function(e){this._checkHlsReady();try{this._superPt.seek.call(this,e),this.tag.paused&&this._stopLoadAsPaused&&this._hls.startLoad(e)}catch(e){console.log(e)}return this},t.prototype.getProgramDateTime=function(){if(this._checkHlsReady(),-1==this._hls.currentLevel)return"";var e=this._hls.currentLevel,t=this._hls.levels[e].details;if(t){var i=t.programDateTime;if(console.log("ProgramDateTime="+i),i)return new Date(i).valueOf()}return 0},t.prototype._reloadAndPlayForM3u8=function(){0==this._liveRetryCount&&this.trigger(y.Player.OnM3u8Retry),this._liveRetryCount++},t.prototype._switchLevel=function(e){this.trigger(y.Player.LevelSwitch);for(var t=this._hls.levels,i=0;il._liveRetryCount){0==l._liveRetryCount&&l.trigger(y.Player.OnM3u8Retry);var s=a.liveRetryInterval+a.liveRetryStep*l._liveRetryCount;l._liveRetryCount++,h.sleep(1e3*s),o&&l._loadByUrlInner(l._options.source,0,!0)}else l._liveErrorHandle&&clearTimeout(l._liveErrorHandle),l.trigger(y.Player.LiveStreamStop),l._liveErrorHandle=setTimeout(n,500)}else{if(l._reloadForVod())return;n()}}})}}}},{"../../config":5,"../../lang/index":11,"../../lib/constants":15,"../../lib/dom":18,"../../lib/io":24,"../../lib/playerutil":29,"../../lib/ua":31,"../../lib/util":33,"../base/event/eventtype":43,"../base/player":62}],74:[function(e,t,i){var r=e("../base/player"),o=e("./hlsinjector"),n=r.extend({init:function(e,t){t._native=!1,o.inject(this,n,r,t),r.call(this,e,t)}});t.exports=n},{"../base/player":62,"./hlsinjector":73}],75:[function(e,t,i){var r=e("../../lib/constants"),o=e("../../lib/oo").extend({init:function(e){this.player=e,this.tickhandle=null}});o.prototype.tick=function(e,t){var i=this;this.tickhandle=setTimeout(function(){i.player&&i.player.trigger(r.AuthKeyExpiredEvent),t&&t()},1e3*e)},o.prototype.clearTick=function(e){this.tickhandle&&clearTimeout(this.tickhandle)},t.exports=o},{"../../lib/constants":15,"../../lib/oo":27}],76:[function(e,t,i){var l=e("../../lib/io"),u=(e("../../lib/ua"),e("../../lib/bufferbase64")),c=e("../../lib/constants"),d=e("./signature"),p=e("./util"),h=e("../../lang/index"),f=function(e,r,o){var t=d.randomUUID(),i="https://mts."+e.domainRegion+".aliyuncs.com/?",n={AccessKeyId:e.accessId,Action:"GetLicense",MediaId:e.vid,LicenseUrl:i,data:e.data,SecurityToken:e.stsToken,Format:"JSON",Type:e.encryptionType,Version:"2014-06-18",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:t};e.header&&(n.Header=e.header);var a=i+("Signature="+d.AliyunEncodeURI(d.makeChangeSiga(n,e.accessSecret,"POST"))),s=d.makeUTF8sort(n,"=","&");l.post(a,s,function(e){if(e){var t=JSON.parse(e);if(r){var i=t.License;r(i)}}else o&&o(p.createError("MPS\u83b7\u53d6License\u5931\u8d25"))},function(e){if(o){var t={Code:"",Message:h.get("Error_MTS_Fetch_Urls_Text")};try{t=JSON.parse(e)}catch(e){}o({Code:c.ErrorCode.ServerAPIError,Message:t.Code+"|"+t.Message,sri:t.requestId||""})}})};t.exports.requestLicenseKey=function(e){var l=e;return l._options.vid&&(l.__vid=l._options.vid),function(e,i){var t=l._options,r=l._getDRMEncryptItem();if(r){var o={vid:l.__vid,accessId:t.accId,accessSecret:t.accSecret,stsToken:t.stsToken,domainRegion:t.domainRegion,authInfo:t.authInfo,encryptionType:r.encryptionType};if(r.encryptionType==c.EncryptionType.Widevine)o.data=u.encode(e.message);else if(r.encryptionType==c.EncryptionType.PlayReady){var n=u.unpackPlayReady(e.message);o.data=n.changange,n.header&&(o.header=JSON.stringify(n.header))}console.log(o.data);var a=l.__licenseKeys,s=l.__vid+r.Url;a&&a[s],f(o,function(e){l.__licenseKeys||(l.__licenseKeys={}),10e&&(this.loadByUrl(this._urls[e].Url,this.getCurrentTime()),this._currentPlayIndex=e,this.trigger(y.Private.QualityChange,t||_.get("Quality_Change_Fail_Switch_Text")))},v.prototype._getLowerQualityLevel=function(){if(0==this._urls.length||-1==this._currentPlayIndex)return"";if("asc"==this.options().qualitySort){if(0"+n,r.trigger("error",l),console.log("PrismPlayer Error: "+i+"! error_msg :"+n+";")},t.exports=v},{"../../config":5,"../../lang/index":11,"../../lib/constants":15,"../../lib/cookie":16,"../../lib/event":19,"../../lib/io":24,"../../lib/playerutil":29,"../audio/audioplayer":41,"../base/event/eventtype":43,"../base/player":62,"../drm/drminjector":68,"../flv/flvinjector":71,"../hls/hlsinjector":73,"./authkeyexpiredhandle":75,"./signature":80}],80:[function(e,c,t){var r=e("crypto-js/hmac-sha1"),o=e("crypto-js/enc-base64"),i=e("crypto-js/enc-utf8");c.exports.randomUUID=function(){for(var e=[],t="0123456789abcdef",i=0;i<36;i++)e[i]=t.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")},c.exports.returnUTCDate=function(){var e=new Date,t=e.getUTCFullYear(),i=e.getUTCMonth(),r=e.getUTCDate(),o=e.getUTCHours(),n=e.getUTCMinutes(),a=e.getUTCSeconds(),s=e.getUTCMilliseconds();return Date.UTC(t,i,r,o,n,a,s)},c.exports.AliyunEncodeURI=function(e){var t=encodeURIComponent(e);return t=(t=(t=t.replace("+","%2B")).replace("*","%2A")).replace("%7E","~")},c.exports.makesort=function(e,t,i){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var r=[];for(var o in e)r.push(o);var n=r.sort(),a="",s=n.length;for(o=0;o=this.liveTimeRange.end)},r.prototype.switchToLive=function(){var e=that._player._options.recreatePlayer;e&&this._isLiveShift&&(this._player.dispose(),setTimeout(function(){e()},1e3),this._isLiveShift=!1)},r.prototype.getBaseTime=function(){this.liveShiftStartDisplay;return-1==this.seekTime?n.parseTime(this.currentTimeDisplay):n.parseTime(this.liveShiftStartDisplay)+this.seekTime},r.prototype.getSourceUrl=function(e,t){var i=this._originalPlayUrl;return this.availableLiveShiftTime<=e?i:(this._isLiveShift=!0,(e=parseInt(e))<=5&&(e=5),(i=this._switchLiveShiftPlayer(t))&&(i=i.replace("lhs_offset_unix_s_0","z")),i=-1==i.indexOf("?")?i+"?lhs_offset_unix_s_0="+e:i+"&lhs_offset_unix_s_0="+e)},r.prototype._switchLiveShiftPlayer=function(e){var t=this._originalPlayUrl,i=this._player._options.liveShiftSource,r=this._player._options.source;if(a.isHls(r))t=r;else if(a.isFlv(t)&&i&&a.isHls(i)){this._player._flv&&this._player._destroyFlv();var o=this._player._superType,n=this._player._Type;return this._player._options._autoplay=!0,l.inject(this._player,n,o,this._player._options,"",!0),i}return t},r.prototype.getTimeline=function(i,r){if(this._player.trigger(c.Private.LiveShiftQueryCompleted),!this._liveShiftUrl)return p(this,(new Date).valueOf()/1e3),void(i&&i());var o=this;this.queryLiveShift(this._liveShiftUrl,function(e){if(e){var t=e;0==t.retCode?(p(o,t.content.current),i&&i()):r({Code:u.ErrorCode.ServerAPIError,Message:t.retCode+"|"+t.description+"|"+t.content})}else console.log("\u83b7\u53d6\u76f4\u64ad\u65f6\u79fb\u6570\u636e\u5931\u8d25")},function(e){if(r&&e){var t={};if(e){if(-1"+_.get("Retry")+""+_.get("Detection_Text")+"

code\uff1a

vid:

uuid:

requestId:

"+_.get("Play_DateTime")+"\uff1a

",e},bindEvent:function(){var i=this;i._player.on(a.Private.Error_Show,function(e){var t=null;i._player.getMonitorInfo&&(t=i._player.getMonitorInfo()),i._show(e,t)}),i._player.on(a.Private.Error_Hide,function(){i._hide()});var e=document.querySelector("#"+i.id()+" .prism-button-refresh");if(o.on(e,"click",function(){location.reload(!0)}),n.IS_MOBILE){e=document.querySelector("#"+i.id()+" .prism-detect-info");f.addClass(e,"prism-width90")}var t=document.querySelector("#"+i.id()+" .prism-button-retry");o.on(t,"click",function(){var e=i._player.getCurrentTime(),t=i._player._options.source;i._player._setDefaultCC=!0,i._player._loadByUrlInner(t,e,!0)})},_show:function(e,t){var i=e.paramData,r="",o="";i.mediaId&&(r=i.mediaId);var n=document.querySelector("#"+this.id()+" .prism-button-orange");if(n){if(t&&this._player._options.diagnosisButtonVisible){t.vu?o=decodeURIComponent(t.vu):f.css(n,"display","none");var a="//player.alicdn.com/detection.html?from=h5&vid="+r+"&source="+(o?encodeURIComponent(o):"")+"&uuid="+t.uuid+"&lang="+_.getCurrentLanguage();n&&(n.href=a)}else f.css(n,"display","none");var s=i.display_msg||i.error_msg;document.querySelector("#"+this.id()+" .prism-error-content p").innerHTML=s,document.querySelector("#"+this.id()+" .errorCode .info-content").innerText=i.error_code;var l=document.querySelector("#"+this.id()+" .vid");if(i.mediaId?(f.css(l,"display","block"),document.querySelector("#"+this.id()+" .vid .info-content").innerText=i.mediaId):f.css(l,"display","none"),i.uuid)document.querySelector("#"+this.id()+" .uuid .info-content").innerText=i.uuid;else{var u=document.querySelector("#"+this.id()+" .uuid");f.css(u,"display","none")}if(i.requestId)document.querySelector("#"+this.id()+" .requestId .info-content").innerText=i.requestId;else{var c=document.querySelector("#"+this.id()+" .requestId");f.css(c,"display","none")}document.querySelector("#"+this.id()+" .dateTime .info-content").innerText=h.formatDate(new Date,"yyyy-MM-dd HH:mm:ss");var d=document.querySelector("#"+this.id());f.css(d,"display","block");var p=this;p.playHideHandler&&clearTimeout(p.playHideHandler),p.playHideHandler=setTimeout(function(){p._player.trigger("play_btn_hide")})}},_hide:function(){var e=document.querySelector("#"+this.id());f.css(e,"display","none")},disposeUI:function(){this.playHideHandler&&(clearTimeout(this.playHideHandler),this.playHideHandler=null)}});t.exports=s},{"../../lang/index":11,"../../lib/dom":18,"../../lib/event":19,"../../lib/ua":31,"../../lib/util":33,"../../player/base/event/eventtype":43,"../component":94}],100:[function(e,t,i){var r=e("../component"),o=e("../../player/base/event/eventtype"),n=(e("../../lib/event"),e("../../lib/ua")),a=e("../../lang/index"),s=e("./util"),l=r.extend({init:function(e,t){r.call(this,e,t),this.addClass(t.className||"prism-fullscreen-btn")},bindEvent:function(){var e=this;this._player.on(o.Player.RequestFullScreen,function(){n.IS_IOS||e.addClass("fullscreen")}),this._player.on(o.Player.CancelFullScreen,function(){e.removeClass("fullscreen")}),s.registerTooltipEvent.call(this,this.el(),function(){return e._player.fullscreenService.getIsFullScreen()?a.get("ExistFullScreen"):a.get("Fullscreen")}),this.on("click",function(){e._player.fullscreenService.getIsFullScreen()?e._player.fullscreenService.cancelFullScreen():e._player.fullscreenService.requestFullScreen(),e._player.trigger(o.Private.MarkerTextHide)})}});t.exports=l},{"../../lang/index":11,"../../lib/event":19,"../../lib/ua":31,"../../player/base/event/eventtype":43,"../component":94,"./util":121}],101:[function(e,t,i){"use strict";var r=e("../component"),o=e("../../lib/dom"),n=e("../../player/base/event/eventtype"),a=r.extend({init:function(e,t){r.call(this,e,t),this.addClass(t.className||"prism-hide")},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML='
',e},_loading_hide:function(e){var t=document.querySelector("#"+this.id()+" .prism-loading");t&&(o.removeClass(t,"prism-loading"),o.addClass(t,"prism-hide"))},_loading_show:function(e){var t=document.querySelector("#"+this.id()+" .prism-hide");t&&(o.removeClass(t,"prism-hide"),o.addClass(t,"prism-loading"))},bindEvent:function(){this._player.on(n.Private.H5_Loading_Show,this._loading_show),this._player.on(n.Private.H5_Loading_Hide,this._loading_hide)}});t.exports=a},{"../../lib/dom":18,"../../player/base/event/eventtype":43,"../component":94}],102:[function(e,t,i){var r=e("../component"),o=(e("../../lib/util"),e("../../lib/dom")),n=(e("../../lib/event"),e("../../lib/ua"),e("../../lang/index"),e("../../player/base/event/eventtype")),a=r.extend({init:function(e,t){r.call(this,e,t),this.className=t.className?t.className:"prism-info-display",this.addClass(this.className)},createEl:function(){return r.prototype.createEl.call(this,"p")},bindEvent:function(){var r=this;r._player.on(n.Private.Info_Show,function(e){var t=document.querySelector("#"+r.id()),i=e.paramData;i&&(void 0!==i.text&&i.text?(t.innerHTML=i.text,void 0!==i.duration&&i.duration&&(r.handler&&clearTimeout(r.handler),r.handler=setTimeout(function(){o.css(t,"display","none")},i.duration)),"lb"==i.align?(o.addClass(t,"prism-info-left-bottom"),o.removeClass(t,"prism-info-top-center")):"tc"==i.align?(o.addClass(t,"prism-info-top-center"),o.removeClass(t,"prism-info-left-bottom")):(o.removeClass(t,"prism-info-left-bottom"),o.removeClass(t,"prism-info-top-center")),i.isBlack?o.addClass(t,"prism-info-black"):o.removeClass(t,"prism-info-black")):t.innerHTML=i,o.css(t,"display","block"))}),r._player.on(n.Private.Info_Hide,function(e){var t=document.querySelector("#"+r.id());o.css(t,"display","none")})},disposeUI:function(){this.handler&&(clearTimeout(this.handler),this.handler=null)}});t.exports=a},{"../../lang/index":11,"../../lib/dom":18,"../../lib/event":19,"../../lib/ua":31,"../../lib/util":33,"../../player/base/event/eventtype":43,"../component":94}],103:[function(e,t,i){var r=e("../component"),o=e("./util"),n=(e("../../lib/util"),e("../../lib/dom")),a=e("../../lib/event"),s=e("../../lib/playerUtil"),l=e("../../lang/index"),u=r.extend({init:function(e,t){r.call(this,e,t),this.className=t.className?t.className:"prism-live-display",this.addClass(this.className)},createEl:function(){var e=r.prototype.createEl.call(this,"p");return e.innerText="LIVE",s.isLiveShift(this._player._options)&&n.addClass(e,"live-shift-display"),e},bindEvent:function(){var e=document.querySelector("#"+this.id()),t=this;s.isLiveShift(this._player._options)&&(a.on(e,"click",function(){t._player._liveshiftService.switchToLive()}),o.registerTooltipEvent.call(this,this.el(),l.get("SwitchToLive")))}});t.exports=u},{"../../lang/index":11,"../../lib/dom":18,"../../lib/event":19,"../../lib/playerUtil":28,"../../lib/util":33,"../component":94,"./util":121}],104:[function(e,t,i){var r=e("../component"),o=(e("../../lib/dom"),e("../../lib/event"),e("../../player/base/event/eventtype")),n=e("../../player/base/plugin/status"),a=r.extend({init:function(e,t){r.call(this,e,t),this.addClass(t.className||"prism-animation")},bindEvent:function(){var t=this;this._player.on(o.Player.Play,function(){t._player._isManualPlay&&(t.removeClass("prism-pause-animation"),t.addClass("prism-play-animation"),t.removeClass("play-apply-animation"),t.playHandler&&clearTimeout(t.playHandler),t.playHandler=setTimeout(function(){t.addClass("play-apply-animation")}))}),this._player.on(o.Player.Pause,function(){var e=t._player._status;e!=n.ended&&e!=n.error&&t._player._isManualPause&&(t.removeClass("prism-play-animation"),t.addClass("prism-pause-animation"),t.removeClass("play-apply-animation"),t.pauseHandler&&clearTimeout(t.pauseHandler),t.pauseHandler=setTimeout(function(){t.addClass("play-apply-animation")}))})},disposeUI:function(){this.playHandler&&(clearTimeout(this.playHandler),this.playHandler=null),this.pauseHandler&&(clearTimeout(this.pauseHandler),this.pauseHandler=null)}});t.exports=a},{"../../lib/dom":18,"../../lib/event":19,"../../player/base/event/eventtype":43,"../../player/base/plugin/status":66,"../component":94}],105:[function(e,t,i){var r=e("../component"),o=e("../../player/base/event/eventtype"),n=e("./util"),a=e("../../lang/index"),s=r.extend({init:function(e,t){r.call(this,e,t),this.addClass(t.className||"prism-play-btn")},bindEvent:function(){var t=this;this._player.on(o.Player.Play,function(){t.addClass("playing")}),this._player.on(o.Player.Pause,function(){t.removeClass("playing")}),this.on(o.Private.PlayClick,function(){if(t._player.paused()){var e=t._player.getCurrentTime();(t._player.getDuration()<=e||t._player._ended||t._player.exceedPreviewTime(e))&&t._player.seek(0),t._player.play(!0),t.addClass("playing")}else t._player.pause(!0),t.removeClass("playing");t._player.trigger(o.Private.MarkerTextHide)}),n.registerTooltipEvent.call(this,this.el(),function(){return t._player.paused()?a.get("Play"):a.get("Pause")})}});t.exports=s},{"../../lang/index":11,"../../player/base/event/eventtype":43,"../component":94,"./util":121}],106:[function(e,t,i){var r=e("../component"),a=e("../../lib/dom"),n=(e("../../lib/constants"),e("../../lib/event")),s=e("../../lib/ua"),l=e("../../lib/function"),o=e("../../lang/index"),u=e("../../config"),c=e("../../lib/util"),d=e("../../player/base/event/eventtype"),p=r.extend({init:function(e,t){r.call(this,e,t),this.className=t.className?t.className:"prism-progress",this.addClass(this.className)},createEl:function(){var e=r.prototype.createEl.call(this);return e.innerHTML='

',e},bindEvent:function(){var t=this;this.loadedNode=document.querySelector("#"+this.id()+" .prism-progress-loaded"),this.playedNode=document.querySelector("#"+this.id()+" .prism-progress-played"),this.cursorNode=document.querySelector("#"+this.id()+" .prism-progress-cursor"),this.timeNode=document.querySelector("#"+this.id()+" .prism-progress-time"),this.timeNode=document.querySelector("#"+this._player._options.id+" .prism-progress-time");var i=document.querySelector("#"+this.id()),e=document.querySelector("#"+this.id()+" .prism-progress-cursor img"),r="https://"+u.domain+"/de/prismplayer/"+u.h5Version+"/skins/default/img/dragcursor.png";u.domain?-1this._player.getDuration()&&(r=this._player.getDuration()),r},_getDistance:function(e){for(var t=this.el().offsetLeft,i=this.el();i=i.offsetParent;){var r=a.getTranslateX(i);t+=i.offsetLeft+r}var o=e.touches?e.touches[0].pageX:e.pageX;return Math.abs(o-t)},_onMouseClick:function(e){var t=this,i=t._getSeconds(e);if(t._canSeekable(i)){t._player.exceedPreviewTime(i)&&(i=t._player.getPreviewTime()),t._updateCursorPosition(i);this._mouseClickTimeHandle&&clearTimeout(this._mouseClickTimeHandle),this._mouseClickTimeHandle=setTimeout(function(){t._player._seeking=!0,t._player.trigger(d.Private.SeekStart,{fromTime:t._player.getCurrentTime()}),t._player.seek(i),t._player.trigger(d.Private.EndStart,{toTime:i}),t._mouseClickTimeHandle=null,t._inWaitingSeek=!1},300),this._inWaitingSeek=!0}else t._player.trigger(d.Private.Info_Show,{text:o.get("Can_Not_Seekable"),duration:2e3})},_onMouseDown:function(e){var t=this;e.preventDefault(),this._player.trigger(d.Private.SeekStart,{fromTime:this._player.getCurrentTime()}),n.on(this.controlNode,"mousemove",function(e){t._onMouseMove(e)}),n.on(this.controlNode,"touchmove",function(e){t._onMouseMove(e)}),n.on(this._player.tag,"mouseup",function(e){t._onPlayerMouseUp(e)}),n.on(this._player.tag,"touchend",function(e){t._onPlayerMouseUp(e)}),n.on(this.controlNode,"mouseup",function(e){t._onControlBarMouseUp(e)}),n.on(this.controlNode,"touchend",function(e){t._onControlBarMouseUp(e)})},_onMouseUp:function(e){this._onMouseUpIntern(e)},_onControlBarMouseUp:function(e){this._onMouseUpIntern(e)},_onPlayerMouseUp:function(e){this._onMouseUpIntern(e)},_offMouseUp:function(){n.off(this.controlNode,"mousemove"),n.off(this.controlNode,"touchmove"),n.off(this._player.tag,"mouseup"),n.off(this._player.tag,"touchend"),n.off(this.controlNode,"mouseup"),n.off(this.controlNode,"touchend")},_onMouseUpIntern:function(e){e.preventDefault(),this._offMouseUp();var t=this.playedNode.offsetWidth/this.el().offsetWidth*this._player.getDuration();this._player.getDuration();isNaN(t)||this._player.seek(t),this._player.trigger(d.Private.EndStart,{toTime:t})},_onMouseMove:function(e){e.preventDefault();var t=this._getSeconds(e);this._player.exceedPreviewTime(t)&&(t=this._player.getPreviewTime()),this._player.seek(t),this._updateProgressBar(this.playedNode,t),this._updateCursorPosition(t)},_onTimeupdate:function(e){this._inWaitingSeek||this._player._seeking||this._progressDown||(this._updateProgressBar(this.playedNode,this._player.getCurrentTime()),this._updateCursorPosition(this._player.getCurrentTime()),this._player.trigger(d.Private.UpdateProgressBar,{time:this._player.getCurrentTime()}))},_onProgress:function(e){this._player.getDuration()&&1<=this._player.getBuffered().length&&this._updateProgressBar(this.loadedNode,this._player.getBuffered().end(this._player.getBuffered().length-1))},_updateProgressBar:function(e,t){var i=this._player.getDuration();if(1!=this._player._switchSourcing&&i){var r=t/i+.005;1e?(o.css(r.el(),"right","0px"),o.css(r.el(),"left","auto")):(left-=width/2,left=left<0?0:left,o.css(r.el(),"right","auto"),o.css(r.el(),"left",left+"px"))}},30)}}),r._player.on(a.Private.MarkerTextHide,function(e){r._player.trigger(a.Player.MarkerDotOut),r._player.trigger(a.Private.LifeCycleChanged,{type:a.Player.MarkerDotOut,data:""}),r._thumbnailShowHanlde&&clearTimeout(r._thumbnailShowHanlde),o.css(r.el(),"display","none")}),n.on(r._player.tag,"click",function(e){e&&e.target==e.currentTarget&&r._player.trigger(a.Private.MarkerTextHide)}),n.on(r._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&r._player.trigger(a.Private.MarkerTextHide)})},disposeUI:function(){this._thumbnailShowHanlde&&(clearTimeout(this._thumbnailShowHanlde),this._thumbnailShowHanlde=null)}});t.exports=s},{"../../lib/dom":18,"../../lib/event":19,"../../lib/util":33,"../../player/base/event/eventtype":43,"../component":94}],108:[function(e,t,i){var r=e("./selector"),s=e("../../../lib/object"),u=(e("../../../lib/util"),e("../../../lib/cookie")),l=e("../../../lib/dom"),c=(e("../../../lib/event"),e("../../../lib/constants")),d=e("../../../lang/index"),p=e("../../../player/base/event/eventtype"),o=r.extend({init:function(e,t){this.Name=d.get("Quality"),this.Type="quality",this.Tooltip=d.get("Quality_Switch_To"),r.call(this,e,t),this._isMasterLevel=!1},showTip:function(e,t){this._player.trigger(p.Private.Info_Show,{text:e,duration:t,align:"lb"})},bindEvent:function(){this.bindCommonEvent();var s=this;this._player.on(p.Private.QualityChange,function(e){var t=s._player._urls,i=e.paramData;if(i.levelSwitch){var r=i.desc;s._autoSWitchDesc=r,s._updateText(r)}else if(0
{value}
",i=t.replace(/{type}/g,"speed").replace("{value}",c.get("Speed")),r=t.replace(/{type}/g,"cc").replace("{value}",c.get("Subtitle")),o=t.replace(/{type}/g,"audio").replace("{value}",c.get("AudioTrack")),n=t.replace(/{type}/g,"quality").replace("{value}",c.get("Quality"));return e.innerHTML=i+r+o+n,e},bindEvent:function(){document.querySelector("#"+this.id()+" .prism-setting-speed .current-setting").innerText=c.get("Speed_1X_Text");var o=this,t=function(){o._player.trigger(l.Private.SettingListHide),o.isOpened=!1},i=function(e){e&&e.text&&(document.querySelector("#"+o.id()+" .prism-setting-"+e.type+" .current-setting").innerText=e.text)};this._player.on(l.Private.SettingListShow,function(e){o.isOpened=!0;e=e.paramData;i(e),r.css(o.el(),"display","block")}),this._player.on(l.Private.UpdateToSettingList,function(e){e=e.paramData;i(e)}),this._player.on(l.Private.SelectorUpdateList,function(e){e=e.paramData;i(e),o._player.trigger(l.Private.SelectorValueChange,e)}),this._player.on(l.Private.SettingListHide,function(){o.isOpened=!1,r.css(o.el(),"display","none")}),s.on(this.el(),"click",function(e){o._player.trigger(l.Private.SettingListHide);var t=e.srcElement?e.srcElement:e.target;if(t=u.findItemElementForList(t)){var i=t.getAttribute("type");o._player.trigger(l.Private.SelectorShow,{type:i})}});var e=n.IS_MOBILE?"touchleave":"mouseleave";s.on(this.el(),e,function(){t()}),s.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&t()}),s.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&t()}),this._player.on(l.Private.QualityChange,function(e){var t=e.paramData;if(t.levelSwitch){var i=document.querySelector("#"+o.id()+" .prism-setting-quality .current-setting"),r=c.get("Auto");-1
    ',e},bindEvent:function(){this.bindCommonEvent()},bindCommonEvent:function(){var n=this,e=document.querySelector("#"+n.id()+" .selector-list"),t=document.querySelector("#"+n.id()+" .header");this._player.on(u.Private.ChangeURL,function(){n._hasGeneratedList=!1}),s.on(t,"click",function(){n._player.trigger(u.Private.SelectorHide),n._player.trigger(u.Private.SettingListShow,{type:n.Type,text:n._previousSelection?n._previousSelection.text:""})}),s.on(e,"click",function(e){var t=e.srcElement?e.srcElement:e.target,i=t.key,r=t.text;if(void 0!==r){n._previousSelection&&a.removeClass(n._previousSelection,"current"),n._previousSelection=l.findliElementForSelector(t),a.addClass(n._previousSelection,"current"),n.execute&&n.execute(i);var o=n.Tooltip+""+r+"";n._player.trigger(u.Private.Info_Show,{text:o,duration:1e3,align:"lb"})}}),n._player.on(u.Private.SelectorHide,function(){i()}),n._player.on(u.Private.SelectorValueChange,function(e){var t=e.paramData;if(t){if(t.type!=n.Type)return;var i=document.querySelectorAll("#"+n.id()+" .selector-list li");if(i){var r=i.length;0==r&&(n._backupSelector=t.text);for(var o=0;ot.progressWidth?t.left-s:(a=t.left-s/2)<0?0:a,c.css(u.el(),"left",a+"px")}},30)}),u._player.on(n.Private.ThumbnailHide,function(e){u._thumbnailShowHanlde&&clearTimeout(u._thumbnailShowHanlde),c.css(u.el(),"display","none")})},_createSamllThumbnail:function(){},disposeUI:function(){this._thumbnailShowHanlde&&(clearTimeout(this._thumbnailShowHanlde),this._thumbnailShowHanlde=null)}});t.exports=a},{"../../lang/index":11,"../../lib/dom":18,"../../lib/event":19,"../../lib/ua":31,"../../lib/util":33,"../../player/base/event/eventtype":43,"../component":94}],119:[function(e,t,i){var r=e("../component"),o=e("../../lib/util"),n=e("../../player/base/event/eventtype"),a=r.extend({init:function(e,t){r.call(this,e,t),this.className=t.className?t.className:"prism-time-display",this.addClass(this.className)},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML='00:00 / 00:00',e},bindEvent:function(){var i=this;this._player.on(n.Video.DurationChange,function(){var e=o.formatTime(i._player.getDisplayDuration());e?(document.querySelector("#"+i.id()+" .time-bound").style.display="inline",document.querySelector("#"+i.id()+" .duration").style.display="inline",document.querySelector("#"+i.id()+" .duration").innerText=e):(document.querySelector("#"+i.id()+" .duration").style.display="none",document.querySelector("#"+i.id()+" .time-bound").style.display="none")}),this._player.on(n.Video.TimeUpdate,function(){var e=i._player.getCurrentTime(),t=o.formatTime(e);document.querySelector("#"+i.id()+" .current-time")&&(t?(document.querySelector("#"+i.id()+" .current-time").style.display="inline",document.querySelector("#"+i.id()+" .current-time").innerText=t):document.querySelector("#"+i.id()+" .current-time").style.display="none")})}});t.exports=a},{"../../lib/util":33,"../../player/base/event/eventtype":43,"../component":94}],120:[function(e,t,i){var r=e("../component"),s=e("../../lib/dom"),o=e("../../player/base/event/eventtype"),n=r.extend({init:function(e,t){r.call(this,e,t),this.className=t.className?t.className:"prism-tooltip",this.addClass(this.className)},createEl:function(){var e=r.prototype.createEl.call(this,"p");return e.innerText="\u63d0\u793a\u4fe1\u606f",e},bindEvent:function(){var a=this;a._player.on(o.Private.TooltipShow,function(e){var t=document.querySelector("#"+a.id()),i=e.paramData;t.innerText=i.text,s.css(t,"display","block");var r=t.offsetWidth,o=document.querySelector("#"+a._player.id()+" .prism-controlbar");if(o){var n=o.offsetWidth;i.left+r>n?s.css(t,"left",n-r+"px"):s.css(t,"left",i.left-(r-i.width)/2+"px")}}),a._player.on(o.Private.TooltipHide,function(e){var t=document.querySelector("#"+a.id());s.css(t,"display","none")})}});t.exports=n},{"../../lib/dom":18,"../../player/base/event/eventtype":43,"../component":94}],121:[function(e,t,i){var r=e("../../lib/event"),s=e("../../player/base/event/eventtype");t.exports.registerTooltipEvent=function(e,o){var n=this,a=function(){n._controlbarTooltipHandler&&(clearTimeout(n._controlbarTooltipHandler),n._controlbarTooltipHandler=null)};r.on(this.el(),"mouseover",function(e){a(),n._controlbarTooltipHandler=setTimeout(function(){n._player.trigger(s.Private.TooltipHide)},4e3);var t=n.el().offsetLeft,i=n.el().offsetWidth,r=o;"function"==typeof r&&(r=o.call(this)),n._player.trigger(s.Private.TooltipShow,{left:t,width:i,text:r})}),r.on(this.el(),"mouseout",function(){a(),n._player.trigger(s.Private.TooltipHide)})},t.exports.throttle=function(i,r){var o=Date.now();return function(){var e=arguments,t=Date.now();r<=t-o&&(i(e),o=t)}}},{"../../lib/event":19,"../../player/base/event/eventtype":43}],122:[function(e,t,i){var r=e("../component"),o=e("../../lib/dom"),n=e("../../lib/event"),a=e("../../player/base/event/eventtype"),s=e("./util"),l=e("../../lang/index"),u=e("./volumecontrol"),c=r.extend({init:function(e,t){r.call(this,e,t),this.addClass(t.className||"prism-volume");var i=new u(e,t);e.addChild(i,t)},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML='
    ',e},bindEvent:function(){var i=this;this.icon=document.querySelector("#"+i.id()+" .volume-icon"),s.registerTooltipEvent.call(this,this.el(),function(){return i._player.muted()||0==i._player.getVolume()?l.get("Muted"):l.get("Volume")}),n.on(this.icon,"click",function(e){var t=i.el().offsetLeft;i._player.trigger(a.Private.SettingListHide),i._player.trigger(a.Private.SelectorHide),i._player.trigger(a.Private.VolumeVisibilityChange,t),i._player.trigger(a.Private.MarkerTextHide)});var e=document.querySelector("#"+i.id()+" .long-horizontal"),t=document.querySelector("#"+i.id()+" .short-horizontal");n.on(this.el(),"mouseover",function(){o.removeClass(e,"volume-hover-animation"),setTimeout(function(){o.addClass(e,"volume-hover-animation")}),setTimeout(function(){o.removeClass(e,"volume-hover-animation"),o.addClass(t,"volume-hover-animation"),setTimeout(function(){o.removeClass(t,"volume-hover-animation"),o.addClass(e,"volume-hover-animation")},300)},300)})}});t.exports=c},{"../../lang/index":11,"../../lib/dom":18,"../../lib/event":19,"../../player/base/event/eventtype":43,"../component":94,"./util":121,"./volumecontrol":123}],123:[function(e,t,i){var r=e("../component"),o=e("../../lib/dom"),n=e("../../lib/event"),a=e("../../player/base/event/eventtype"),s=(e("./util"),e("../../lang/index"),r.extend({init:function(e,t){r.call(this,e,t),this.addClass(t.className||"prism-volume-control"),this._shown=!1},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML='
    ',e},bindEvent:function(){var r=this;this.icon=document.querySelector("#"+r._player.id()+" .volume-icon"),this.control=document.querySelector("#"+r.id()),this.volumnValue=document.querySelector("#"+r.id()+" .volume-value"),this.volumnRange=document.querySelector("#"+r.id()+" .volume-range"),this.volumnCursor=document.querySelector("#"+r.id()+" .volume-cursor"),this._player.on(a.Private.VolumeVisibilityChange,function(e){var t=e.paramData;if(!r._shown&&t){var i=r._player.getVolume();r._setVolumnUI(i),o.css(r.control,"display","block"),t&&o.css(r.control,"left",t-5+"px"),r._shown=!0}else o.css(r.control,"display","none"),r._shown=!1}),n.on(this.volumnRange,"click",function(e){var t=o.getPointerPosition(r.volumnRange,e).y;t<0||1>>2]>>>24-n%4*8&255;t[r+n>>>2]|=a<<24-(r+n)%4*8}else for(n=0;n>>2]=i[n>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=c.ceil(t/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t,i=[],r=function(t){t=t;var i=987654321,r=4294967295;return function(){var e=((i=36969*(65535&i)+(i>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return e/=4294967296,(e+=.5)*(.5>>2]>>>24-o%4*8&255;r.push((n>>>4).toString(16)),r.push((15&n).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,i=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new d.init(i,t/2)}},a=o.Latin1={stringify:function(e){for(var t=e.words,i=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(n))}return r.join("")},parse:function(e){for(var t=e.length,i=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new d.init(i,t)}},s=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(a.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return a.parse(unescape(encodeURIComponent(e)))}},l=t.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=s.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,i=t.words,r=t.sigBytes,o=this.blockSize,n=r/(4*o),a=(n=e?c.ceil(n):c.max((0|n)-this._minBufferSize,0))*o,s=c.min(4*a,r);if(a){for(var l=0;l>>2]>>>24-n%4*8&255)<<16|(t[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|t[n+2>>>2]>>>24-(n+2)%4*8&255,s=0;s<4&&n+.75*s>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,i=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o>>6-n%4*2;r[o>>>2]|=(a|s)<<24-o%4*8,o++}return l.create(r,o)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64},"object"==typeof i?t.exports=i=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(r.CryptoJS)},{"./core":125}],127:[function(e,t,i){var r,o;r=this,o=function(e){return e.enc.Utf8},"object"==typeof i?t.exports=i=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(r.CryptoJS)},{"./core":125}],128:[function(e,t,i){var r,o;r=this,o=function(e){return e.HmacSHA1},"object"==typeof i?t.exports=i=o(e("./core"),e("./sha1"),e("./hmac")):"function"==typeof define&&define.amd?define(["./core","./sha1","./hmac"],o):o(r.CryptoJS)},{"./core":125,"./hmac":129,"./sha1":130}],129:[function(e,t,i){var r,o;r=this,o=function(e){var t,i,u;i=(t=e).lib.Base,u=t.enc.Utf8,t.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=u.parse(t));var i=e.blockSize,r=4*i;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),n=this._iKey=t.clone(),a=o.words,s=n.words,l=0;l>>31}var c=(r<<5|r>>>27)+s+d[l];c+=l<20?1518500249+(o&n|~o&a):l<40?1859775393+(o^n^a):l<60?(o&n|o&a|n&a)-1894007588:(o^n^a)-899497514,s=a,a=n,n=o<<30|o>>>2,o=r,r=c}i[0]=i[0]+r|0,i[1]=i[1]+o|0,i[2]=i[2]+n|0,i[3]=i[3]+a|0,i[4]=i[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(64+r>>>9<<4)]=Math.floor(i/4294967296),t[15+(64+r>>>9<<4)]=i,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=o._createHelper(a),t.HmacSHA1=o._createHmacHelper(a),e.SHA1},"object"==typeof i?t.exports=i=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(r.CryptoJS)},{"./core":125}]},{},[6]); \ No newline at end of file diff --git a/src/plugins/filters/index.js b/src/plugins/filters/index.js deleted file mode 100644 index df6ab61..0000000 --- a/src/plugins/filters/index.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @description 返回缺省值 - * 传入的如果是null,就返回'--' - * 用例:text 或者:{{val | default}} - * */ -const defaultShow = (val) => { - return val == null ? "--" : val; -}; - -module.exports = { - defaultShow -}; \ No newline at end of file diff --git a/src/plugins/index.js b/src/plugins/index.js index fb83e4d..3a66dea 100644 --- a/src/plugins/index.js +++ b/src/plugins/index.js @@ -3,12 +3,9 @@ * */ import directiveAuth from "@/plugins/auth"; -import throttle from "@/plugins/throttle"; - export default { async install(Vue, options) { // 指令 Vue.directive("auth", directiveAuth); - Vue.directive("throttle", throttle); } }; \ No newline at end of file diff --git a/src/plugins/requests/index.js b/src/plugins/requests/index.js index e42a6bd..35061a4 100644 --- a/src/plugins/requests/index.js +++ b/src/plugins/requests/index.js @@ -1,6 +1,6 @@ -import axios from "axios"; -import Util from "@/libs/util"; -import Setting from "@/setting"; +import axios from 'axios' +import Util from '@/libs/util' +import Setting from '@/setting' import store from '@/store' const service = axios.create({ @@ -8,7 +8,9 @@ const service = axios.create({ timeout: 10000000 }); // post请求头 -service.defaults.headers.post["Content-Type"] = "application/json;charset=UTF-8"; +service.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8' +service.defaults.headers['X-Content-Type-Options'] = 'nosniff' +service.defaults.headers['Content-Security-Policy'] = 'script-src "self"; object-src "none";style-src cdn.example.org third-party.org; child-src https:' // 请求拦截器 service.interceptors.request.use(config => { let token = Util.local.get(Setting.tokenKey); diff --git a/src/plugins/throttle/index.js b/src/plugins/throttle/index.js deleted file mode 100644 index 1351e97..0000000 --- a/src/plugins/throttle/index.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @description 节流指令 - * 限制连续快速点击按钮 - * 用例:text - * */ - -export default { - inserted(el, binding, vnode) { - el.addEventListener("click", () => { - if (!el.disabled) { - el.disabled = true; - setTimeout(() => { - el.disabled = false; - }, binding.value || 1000); - } - }); - } -}; \ No newline at end of file diff --git a/src/setting.js b/src/setting.js index cf9fa79..932a48a 100644 --- a/src/setting.js +++ b/src/setting.js @@ -5,9 +5,7 @@ const url = location.host; const isDev = process.env.NODE_ENV === 'development' // 开发环境 let host = `${location.origin}/` if (isDev) { - host = 'http://192.168.31.136:10000/' // 测试服 - host = 'http://192.168.31.51:10000/' // 榕 - // host = 'http://192.168.31.116/' // 赓 + host = 'http://192.168.31.51:10000/' } const Setting = { @@ -21,7 +19,6 @@ const Setting = { autoLogoutTime: 3600000, // 长时间未操作,自动退出登录时间 modalDuration: 3, // 接口请求返回错误时,弹窗的持续时间,单位:秒 errorModalType: "Message", // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice - cookiesExpires: 1, // Cookies 默认保存时间,单位:天 tokenExpires: 1296000000, // token在localStorage的时间(毫秒) isDev, /**