agefans Enhance

增强播放功能,实现自动换集、无缝换集、画中画、历史记录、断点续播、弹幕等功能。适配agefans、NT动漫、bimiacg、mutefun、次元城、稀饭动漫

目前为 2025-02-12 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name agefans Enhance
  3. // @namespace https://github.com/IronKinoko/agefans-enhance
  4. // @icon https://www.agemys.com/favicon.ico
  5. // @version 1.45.0
  6. // @description 增强播放功能,实现自动换集、无缝换集、画中画、历史记录、断点续播、弹幕等功能。适配agefans、NT动漫、bimiacg、mutefun、次元城、稀饭动漫
  7. // @author IronKinoko
  8. // @include https://www.age.tv/*
  9. // @include https://www.agefans.*
  10. // @include https://www.agemys.*
  11. // @include https://www.agedm.*
  12. // @include https://m.agedm.*
  13. // @include http*://www.ntdm9.*
  14. // @include http*://www.bimiacg*.net*
  15. // @include https://pro.ascepan.top/*
  16. // @include https://danmu.yhdmjx.com/*
  17. // @include https://*.sp-flv.com*
  18. // @include https://*43.240.74.134*
  19. // @include https://*43.240.156.118*
  20. // @include https://www.mutedm.com/*
  21. // @include https://www.mutean.com/*
  22. // @include https://www.mute01.com/*
  23. // @include https://www.cycanime.com/*
  24. // @include https://www.cyc-anime.net/*
  25. // @include https://www.cycani.org/*
  26. // @include https://player.cycanime.com/*
  27. // @include https://dick.xfani.com/*
  28. // @include https://player.moedot.net/*
  29. // @include http://127.0.0.1:5500/*
  30. // @include https://ironkinoko.github.io/agefans-enhance/*
  31. // @run-at document-end
  32. // @require https://unpkg.com/jquery@3.6.0/dist/jquery.min.js
  33. // @require https://unpkg.com/plyr@3.6.4/dist/plyr.min.js
  34. // @require https://unpkg.com/hls.js@1.0.9/dist/hls.min.js
  35. // @require https://unpkg.com/@ironkinoko/danmaku@1.4.1/dist/danmaku.umd.js
  36. // @grant GM_getValue
  37. // @grant GM_setValue
  38. // @grant GM_xmlhttpRequest
  39. // @connect dandanplay.net
  40. // @license MIT
  41. // ==/UserScript==
  42.  
  43. /**
  44. * 权限声明:
  45. * 1. GM_xmlhttpRequest
  46. * 脚本会请求有限的网络权限。仅用于访问弹幕查询功能需要链接到的 dandanplay.net 第三方域名
  47. * 你可以从 脚本编辑/设置/XHR安全 中管理网络权限
  48. *
  49. * 2. GM_getValue, GM_setValue
  50. * 脚本会使用本地存储功能,用于在不同页面间保存“播放器配置”与“agefans 历史浏览记录”。
  51. *
  52. * 3. @include
  53. * 脚本还匹配了 agefans 以外的一些链接,用于提供相同视频资源搜索功能
  54. */
  55.  
  56. (function (Hls, Plyr, Danmaku) {
  57. 'use strict';
  58.  
  59. /** @type {HTMLElement[]} */
  60. var containers = [];
  61. /** @type {{prepend:HTMLStyleElement,append:HTMLStyleElement}[]} */
  62.  
  63. var styleTags = [];
  64. /**
  65. * @param {string} css
  66. * @param {object} options
  67. * @param {boolean} [options.prepend]
  68. * @param {boolean} [options.singleTag]
  69. * @param {string} [options.container]
  70. * @param {Record<string,string>} [options.attributes]
  71. * @returns {void}
  72. */
  73.  
  74. function injectCss (css, options) {
  75. if (!css || typeof document === "undefined") return;
  76. var position = options.prepend === true ? "prepend" : "append";
  77. var singleTag = options.singleTag === true;
  78. var container = typeof options.container === "string" ? document.querySelector(options.container) : document.getElementsByTagName("head")[0];
  79.  
  80. function createStyleTag() {
  81. var styleTag = document.createElement("style");
  82. styleTag.setAttribute("type", "text/css");
  83.  
  84. if (options.attributes) {
  85. var k = Object.keys(options.attributes);
  86.  
  87. for (var i = 0; i < k.length; i++) {
  88. styleTag.setAttribute(k[i], options.attributes[k[i]]);
  89. }
  90. }
  91.  
  92. var pos = position === "prepend" ? "afterbegin" : "beforeend";
  93. container.insertAdjacentElement(pos, styleTag);
  94. return styleTag;
  95. }
  96. /** @type {HTMLStyleElement} */
  97.  
  98.  
  99. var styleTag;
  100.  
  101. if (singleTag) {
  102. var id = containers.indexOf(container);
  103.  
  104. if (id === -1) {
  105. id = containers.push(container) - 1;
  106. styleTags[id] = {};
  107. }
  108.  
  109. if (styleTags[id] && styleTags[id][position]) {
  110. styleTag = styleTags[id][position];
  111. } else {
  112. styleTag = styleTags[id][position] = createStyleTag();
  113. }
  114. } else {
  115. styleTag = createStyleTag();
  116. } // strip potential UTF-8 BOM if css was read from a file
  117.  
  118.  
  119. if (css.charCodeAt(0) === 0xfeff) css = css.substring(1);
  120.  
  121. if (styleTag.styleSheet) {
  122. styleTag.styleSheet.cssText += css;
  123. } else {
  124. styleTag.appendChild(document.createTextNode(css));
  125. }
  126. }
  127.  
  128. var css$g = "@keyframes plyr-progress{to{background-position:25px 0;background-position:var(--plyr-progress-loading-size,25px) 0}}@keyframes plyr-popup{0%{opacity:.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:inherit;font-family:var(--plyr-font-family,inherit);font-variant-numeric:tabular-nums;font-weight:400;font-weight:var(--plyr-font-weight-regular,400);line-height:1.7;line-height:var(--plyr-line-height,1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow .3s ease;z-index:0}.plyr audio,.plyr iframe,.plyr video{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui ::after,.plyr--full-ui ::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:#4a5464;background:var(--plyr-badge-background,#4a5464);border-radius:2px;border-radius:var(--plyr-badge-border-radius,2px);color:#fff;color:var(--plyr-badge-text-color,#fff);font-size:9px;font-size:var(--plyr-font-size-badge,9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in .3s ease;bottom:0;display:none;font-size:13px;font-size:var(--plyr-font-size-small,13px);left:0;padding:10px;padding:var(--plyr-control-spacing,10px);position:absolute;text-align:center;transition:transform .4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width:480px){.plyr__captions{font-size:15px;font-size:var(--plyr-font-size-base,15px);padding:calc(10px * 2);padding:calc(var(--plyr-control-spacing,10px) * 2)}}@media (min-width:768px){.plyr__captions{font-size:18px;font-size:var(--plyr-font-size-large,18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(10px * -4));transform:translateY(calc(var(--plyr-control-spacing,10px) * -4))}.plyr__caption{background:rgba(0,0,0,.8);background:var(--plyr-captions-background,rgba(0,0,0,.8));border-radius:2px;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#fff;color:var(--plyr-captions-text-color,#fff);line-height:185%;padding:.2em .5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:0 0;border:0;border-radius:3px;border-radius:var(--plyr-control-radius,3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(10px * .7);padding:calc(var(--plyr-control-spacing,10px) * .7);position:relative;transition:all .3s ease}.plyr__control svg{display:block;fill:currentColor;height:18px;height:var(--plyr-control-icon-size,18px);pointer-events:none;width:18px;width:var(--plyr-control-icon-size,18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control.plyr__control--pressed .label--not-pressed,.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(10px / 4);margin-left:calc(var(--plyr-control-spacing,10px)/ 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(10px / 4);padding-left:calc(var(--plyr-control-spacing,10px)/ 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(10px / 2);padding:0 calc(var(--plyr-control-spacing,10px)/ 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time,.plyr__controls .plyr__controls__item.plyr__time:first-child{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=airplay],.plyr [data-plyr=captions],.plyr [data-plyr=fullscreen],.plyr [data-plyr=pip]{display:none}.plyr--airplay-supported [data-plyr=airplay],.plyr--captions-enabled [data-plyr=captions],.plyr--fullscreen-enabled [data-plyr=fullscreen],.plyr--pip-supported [data-plyr=pip]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform .3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup .2s ease;background:rgba(255,255,255,.9);background:var(--plyr-menu-background,rgba(255,255,255,.9));border-radius:4px;bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);box-shadow:var(--plyr-menu-shadow,0 1px 2px rgba(0,0,0,.15));color:#4a5464;color:var(--plyr-menu-color,#4a5464);font-size:15px;font-size:var(--plyr-font-size-base,15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height .35s cubic-bezier(.4,0,.2,1),width .35s cubic-bezier(.4,0,.2,1)}.plyr__menu__container::after{border:4px solid transparent;border:var(--plyr-menu-arrow-size,4px) solid transparent;border-top-color:rgba(255,255,255,.9);border-top-color:var(--plyr-menu-background,rgba(255,255,255,.9));content:'';height:0;position:absolute;right:calc(((18px / 2) + calc(10px * .7)) - (4px / 2));right:calc(((var(--plyr-control-icon-size,18px)/ 2) + calc(var(--plyr-control-spacing,10px) * .7)) - (var(--plyr-menu-arrow-size,4px)/ 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(10px * .7);padding:calc(var(--plyr-control-spacing,10px) * .7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:#4a5464;color:var(--plyr-menu-color,#4a5464);display:flex;font-size:13px;font-size:var(--plyr-font-size-menu,var(--plyr-font-size-small,13px));padding-bottom:calc(calc(10px * .7)/ 1.5);padding-bottom:calc(calc(var(--plyr-control-spacing,10px) * .7)/ 1.5);padding-left:calc(calc(10px * .7) * 1.5);padding-left:calc(calc(var(--plyr-control-spacing,10px) * .7) * 1.5);padding-right:calc(calc(10px * .7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing,10px) * .7) * 1.5);padding-top:calc(calc(10px * .7)/ 1.5);padding-top:calc(calc(var(--plyr-control-spacing,10px) * .7)/ 1.5);-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:4px solid transparent;border:var(--plyr-menu-item-arrow-size,4px) solid transparent;content:'';position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(10px * .7) * 4);padding-right:calc(calc(var(--plyr-control-spacing,10px) * .7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:#728197;border-left-color:var(--plyr-menu-arrow-color,#728197);right:calc((calc(10px * .7) * 1.5) - 4px);right:calc((calc(var(--plyr-control-spacing,10px) * .7) * 1.5) - var(--plyr-menu-item-arrow-size,4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:400;font-weight:var(--plyr-font-weight-regular,400);margin:calc(10px * .7);margin:calc(var(--plyr-control-spacing,10px) * .7);margin-bottom:calc(calc(10px * .7)/ 2);margin-bottom:calc(calc(var(--plyr-control-spacing,10px) * .7)/ 2);padding-left:calc(calc(10px * .7) * 4);padding-left:calc(calc(var(--plyr-control-spacing,10px) * .7) * 4);position:relative;width:calc(100% - (calc(10px * .7) * 2));width:calc(100% - (calc(var(--plyr-control-spacing,10px) * .7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:#728197;border-right-color:var(--plyr-menu-arrow-color,#728197);left:calc((calc(10px * .7) * 1.5) - 4px);left:calc((calc(var(--plyr-control-spacing,10px) * .7) * 1.5) - var(--plyr-menu-item-arrow-size,4px))}.plyr__menu__container .plyr__control--back::before{background:#dcdfe5;background:var(--plyr-menu-back-border-color,#dcdfe5);box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color,#fff);content:'';height:1px;left:0;margin-top:calc(calc(10px * .7)/ 2);margin-top:calc(calc(var(--plyr-control-spacing,10px) * .7)/ 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(10px * .7);padding-left:calc(var(--plyr-control-spacing,10px) * .7)}.plyr__menu__container .plyr__control[role=menuitemradio]::after,.plyr__menu__container .plyr__control[role=menuitemradio]::before{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0,0,0,.1);content:'';display:block;flex-shrink:0;height:16px;margin-right:10px;margin-right:var(--plyr-control-spacing,10px);transition:all .3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform .3s ease,opacity .3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:#00b3ff;background:var(--plyr-control-toggle-checked-background,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35,40,47,.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(10px * .7) - 2) * -1);margin-right:calc((calc(var(--plyr-control-spacing,10px) * .7) - 2) * -1);overflow:hidden;padding-left:calc(calc(10px * .7) * 3.5);padding-left:calc(calc(var(--plyr-control-spacing,10px) * .7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:0 0;border:0;border-radius:calc(13px * 2);border-radius:calc(var(--plyr-range-thumb-height,13px) * 2);color:#00b3ff;color:var(--plyr-range-fill-background,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));display:block;height:calc((3px * 2) + 13px);height:calc((var(--plyr-range-thumb-active-shadow-width,3px) * 2) + var(--plyr-range-thumb-height,13px));margin:0;min-width:0;padding:0;transition:box-shadow .3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:0 0;border:0;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px);-webkit-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-webkit-user-select:none;user-select:none;background-image:linear-gradient(to right,currentColor 0,transparent 0);background-image:linear-gradient(to right,currentColor var(--value,0),transparent var(--value,0))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);position:relative;-webkit-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px);-webkit-appearance:none;margin-top:calc(((13px - 5px)/ 2) * -1);margin-top:calc(((var(--plyr-range-thumb-height,13px) - var(--plyr-range-track-height,5px))/ 2) * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:0 0;border:0;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px);-moz-transition:box-shadow .3s ease;transition:box-shadow .3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);position:relative;-moz-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px)}.plyr--full-ui input[type=range]::-ms-track{background:0 0;border:0;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:0 0;border:0;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:0 0;border:0;border-radius:calc(5px / 2);border-radius:calc(var(--plyr-range-track-height,5px)/ 2);height:5px;height:var(--plyr-range-track-height,5px);-ms-transition:box-shadow .3s ease;transition:box-shadow .3s ease;-ms-user-select:none;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:#fff;background:var(--plyr-range-thumb-background,#fff);border:0;border-radius:100%;box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2));height:13px;height:var(--plyr-range-thumb-height,13px);position:relative;-ms-transition:all .2s ease;transition:all .2s ease;width:13px;width:var(--plyr-range-thumb-height,13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:#00b3ff;outline-color:var(--plyr-tab-focus-color,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:#000;background-color:var(--plyr-video-background,var(--plyr-video-background,#000));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr__time{font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px))}.plyr__time+.plyr__time::before{content:'\\2044';margin-right:10px;margin-right:var(--plyr-control-spacing,10px)}@media (max-width:767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:rgba(255,255,255,.9);background:var(--plyr-tooltip-background,rgba(255,255,255,.9));border-radius:3px;border-radius:var(--plyr-tooltip-radius,3px);bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);box-shadow:var(--plyr-tooltip-shadow,0 1px 2px rgba(0,0,0,.15));color:#4a5464;color:var(--plyr-tooltip-color,#4a5464);font-size:13px;font-size:var(--plyr-font-size-small,13px);font-weight:400;font-weight:var(--plyr-font-weight-regular,400);left:50%;line-height:1.3;margin-bottom:calc(calc(10px / 2) * 2);margin-bottom:calc(calc(var(--plyr-control-spacing,10px)/ 2) * 2);opacity:0;padding:calc(10px / 2) calc(calc(10px / 2) * 1.5);padding:calc(var(--plyr-control-spacing,10px)/ 2) calc(calc(var(--plyr-control-spacing,10px)/ 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s .1s ease,opacity .2s .1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:4px solid transparent;border-left:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-right:4px solid transparent;border-right:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-top:4px solid rgba(255,255,255,.9);border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,rgba(255,255,255,.9));bottom:calc(4px * -1);bottom:calc(var(--plyr-tooltip-arrow-size,4px) * -1);content:'';height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr .plyr__control:hover .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%,0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0,10px) scale(.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((18px / 2) + calc(10px * .7));left:calc((var(--plyr-control-icon-size,18px)/ 2) + calc(var(--plyr-control-spacing,10px) * .7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0,10px) scale(.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((18px / 2) + calc(10px * .7));right:calc((var(--plyr-control-icon-size,18px)/ 2) + calc(var(--plyr-control-spacing,10px) * .7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip{transform:translate(0,0) scale(1)}.plyr__progress{left:calc(13px * .5);left:calc(var(--plyr-range-thumb-height,13px) * .5);margin-right:13px;margin-right:var(--plyr-range-thumb-height,13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(13px * -.5);margin-left:calc(var(--plyr-range-thumb-height,13px) * -.5);margin-right:calc(13px * -.5);margin-right:calc(var(--plyr-range-thumb-height,13px) * -.5);width:calc(100% + 13px);width:calc(100% + var(--plyr-range-thumb-height,13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:0 0;border:0;border-radius:100px;height:5px;height:var(--plyr-range-track-height,5px);left:0;margin-top:calc((5px / 2) * -1);margin-top:calc((var(--plyr-range-track-height,5px)/ 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:0 0}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-webkit-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:5px;min-width:var(--plyr-range-track-height,5px);-moz-transition:width .2s ease;transition:width .2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;-ms-transition:width .2s ease;transition:width .2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg,rgba(35,40,47,.6) 25%,transparent 25%,transparent 50%,rgba(35,40,47,.6) 50%,rgba(35,40,47,.6) 75%,transparent 75%,transparent);background-image:linear-gradient(-45deg,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 25%,transparent 25%,transparent 50%,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 50%,var(--plyr-progress-loading-background,rgba(35,40,47,.6)) 75%,transparent 75%,transparent);background-repeat:repeat-x;background-size:25px 25px;background-size:var(--plyr-progress-loading-size,25px) var(--plyr-progress-loading-size,25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-progress-buffered-background,rgba(255,255,255,.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(10px / 2);margin-left:calc(var(--plyr-control-spacing,10px)/ 2);margin-right:calc(10px / 2);margin-right:calc(var(--plyr-control-spacing,10px)/ 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:#fff;background:var(--plyr-audio-controls-background,#fff);border-radius:inherit;color:#4a5464;color:var(--plyr-audio-control-color,#4a5464);padding:10px;padding:var(--plyr-control-spacing,10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:#00b3ff;background:var(--plyr-audio-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));color:#fff;color:var(--plyr-audio-control-color-hover,#fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:rgba(193,200,209,.6);background-color:var(--plyr-audio-range-track-background,var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(35,40,47,.1);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(35,40,47,.1))}.plyr--audio .plyr__progress__buffer{color:rgba(193,200,209,.6);color:var(--plyr-audio-progress-buffered-background,rgba(193,200,209,.6))}.plyr--video{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:#000;background:var(--plyr-video-background,var(--plyr-video-background,#000));height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;left:0;position:absolute;top:0}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.75));background:var(--plyr-video-controls-background,linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:#fff;color:var(--plyr-video-control-color,#fff);left:0;padding:calc(10px / 2);padding:calc(var(--plyr-control-spacing,10px)/ 2);padding-top:calc(10px * 2);padding-top:calc(var(--plyr-control-spacing,10px) * 2);position:absolute;right:0;transition:opacity .4s ease-in-out,transform .4s ease-in-out;z-index:3}@media (min-width:480px){.plyr--video .plyr__controls{padding:10px;padding:var(--plyr-control-spacing,10px);padding-top:calc(10px * 3.5);padding-top:calc(var(--plyr-control-spacing,10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:#00b3ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover,#fff)}.plyr__control--overlaid{background:#00b3ff;background:var(--plyr-video-control-background-hover,var(--plyr-color-main,var(--plyr-color-main,#00b3ff)));border:0;border-radius:100%;color:#fff;color:var(--plyr-video-control-color,#fff);display:none;left:50%;opacity:.9;padding:calc(10px * 1.5);padding:calc(var(--plyr-control-spacing,10px) * 1.5);position:absolute;top:50%;transform:translate(-50%,-50%);transition:.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:focus,.plyr__control--overlaid:hover{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,rgba(255,255,255,.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,rgba(255,255,255,.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:rgba(255,255,255,.25);background-color:var(--plyr-video-range-track-background,var(--plyr-video-progress-buffered-background,rgba(255,255,255,.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(255,255,255,.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(255,255,255,.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2),0 0 0 3px rgba(255,255,255,.5);box-shadow:var(--plyr-range-thumb-shadow,0 1px 1px rgba(35,40,47,.15),0 0 0 1px rgba(35,40,47,.2)),0 0 0 var(--plyr-range-thumb-active-shadow-width,3px) var(--plyr-audio-range-thumb-active-shadow-color,rgba(255,255,255,.5))}.plyr--video .plyr__progress__buffer{color:rgba(255,255,255,.25);color:var(--plyr-video-progress-buffered-background,rgba(255,255,255,.25))}.plyr:-webkit-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:fullscreen video{height:100%}.plyr:-webkit-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-ms-fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:-webkit-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-ms-fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}.plyr:-ms-fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}.plyr:fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-webkit-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-moz-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-moz-full-screen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0!important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:-ms-fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0!important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__video-wrapper{height:100%;position:static}.plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width:1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:21px;font-size:var(--plyr-font-size-xlarge,21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:10px;bottom:var(--plyr-control-spacing,10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:10px;right:var(--plyr-control-spacing,10px);z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:5px;height:var(--plyr-range-track-height,5px);left:0;margin:-var(--plyr-range-track-height,5px)/2 0 0;opacity:.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:rgba(255,255,255,.9);background-color:var(--plyr-tooltip-background,rgba(255,255,255,.9));border-radius:3px;bottom:100%;box-shadow:0 1px 2px rgba(0,0,0,.15);box-shadow:var(--plyr-tooltip-shadow,0 1px 2px rgba(0,0,0,.15));margin-bottom:calc(calc(10px / 2) * 2);margin-bottom:calc(calc(var(--plyr-control-spacing,10px)/ 2) * 2);opacity:0;padding:3px;padding:var(--plyr-tooltip-radius,3px);pointer-events:none;position:absolute;transform:translate(0,10px) scale(.8);transform-origin:50% 100%;transition:transform .2s .1s ease,opacity .2s .1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0,0) scale(1)}.plyr__preview-thumb::before{border-left:4px solid transparent;border-left:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-right:4px solid transparent;border-right:var(--plyr-tooltip-arrow-size,4px) solid transparent;border-top:4px solid rgba(255,255,255,.9);border-top:var(--plyr-tooltip-arrow-size,4px) solid var(--plyr-tooltip-background,rgba(255,255,255,.9));bottom:calc(4px * -1);bottom:calc(var(--plyr-tooltip-arrow-size,4px) * -1);content:'';height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(3px - 1px);border-radius:calc(var(--plyr-tooltip-radius,3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0,0,0,.55);border-radius:calc(3px - 1px);border-radius:calc(var(--plyr-tooltip-radius,3px) - 1px);color:#fff;font-size:13px;font-size:var(--plyr-font-size-time,var(--plyr-font-size-small,13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none!important}.plyr__sr-only{clip:rect(1px,1px,1px,1px);overflow:hidden;border:0!important;height:1px!important;padding:0!important;position:absolute!important;width:1px!important}.plyr [hidden]{display:none!important}";
  129. injectCss(css$g,{});
  130.  
  131. var css$f = ":root {\n --k-player-background-highlight: rgba(95, 95, 95, 0.65);\n --k-player-background: rgba(0, 0, 0, 0.65);\n --k-player-color: white;\n --k-player-primary-color: #00b3ff;\n --k-player-primary-color-highlight: rgba(0, 179, 255, 0.1);\n}\n\n.k-menu {\n list-style: none;\n margin: 0;\n padding: 0;\n border-radius: 4px;\n overflow: hidden;\n}\n.k-menu-item {\n padding: 0 16px;\n line-height: 36px;\n height: 36px;\n cursor: pointer;\n width: 100%;\n white-space: nowrap;\n color: white;\n transition: all 0.3s;\n text-align: center;\n}\n.k-menu-item:hover {\n background: var(--k-player-background-highlight);\n}\n\n.k-btn, .k-capsule div {\n color: var(--k-player-primary-color);\n background: var(--k-player-primary-color-highlight);\n padding: 4px 8px;\n border-radius: 4px;\n cursor: pointer;\n white-space: nowrap;\n transition: all 0.15s;\n user-select: none;\n}\n\n.k-capsule input:not(:checked) + div {\n color: #999;\n background: #ddd;\n}\n\n.k-menu-item.k-menu-active {\n color: var(--k-player-primary-color);\n}\n\n.k-input,\n.k-select {\n background: white;\n border: 1px solid #f1f1f1;\n color: black;\n outline: 0;\n border-radius: 2px;\n transition: all 0.15s ease;\n}\n.k-input:focus, .k-input:hover,\n.k-select:focus,\n.k-select:hover {\n border-color: var(--k-player-primary-color);\n}\n.k-input::placeholder,\n.k-select::placeholder {\n color: #999;\n}\n\n.k-settings-list {\n margin: 0;\n padding: 8px;\n text-align: left;\n}\n.k-settings-item {\n width: 100%;\n white-space: nowrap;\n color: white;\n display: flex;\n align-items: center;\n gap: 8px;\n}\n.k-settings-list > .k-settings-item + .k-settings-item {\n margin-top: 8px;\n}";
  132. injectCss(css$f,{});
  133.  
  134. /** Detect free variable `global` from Node.js. */
  135. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  136.  
  137. /** Detect free variable `self`. */
  138. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  139.  
  140. /** Used as a reference to the global object. */
  141. var root = freeGlobal || freeSelf || Function('return this')();
  142.  
  143. /** Built-in value references. */
  144. var Symbol = root.Symbol;
  145.  
  146. /** Used for built-in method references. */
  147. var objectProto$4 = Object.prototype;
  148.  
  149. /** Used to check objects for own properties. */
  150. var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
  151.  
  152. /**
  153. * Used to resolve the
  154. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  155. * of values.
  156. */
  157. var nativeObjectToString$1 = objectProto$4.toString;
  158.  
  159. /** Built-in value references. */
  160. var symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;
  161.  
  162. /**
  163. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  164. *
  165. * @private
  166. * @param {*} value The value to query.
  167. * @returns {string} Returns the raw `toStringTag`.
  168. */
  169. function getRawTag(value) {
  170. var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
  171. tag = value[symToStringTag$1];
  172.  
  173. try {
  174. value[symToStringTag$1] = undefined;
  175. var unmasked = true;
  176. } catch (e) {}
  177.  
  178. var result = nativeObjectToString$1.call(value);
  179. if (unmasked) {
  180. if (isOwn) {
  181. value[symToStringTag$1] = tag;
  182. } else {
  183. delete value[symToStringTag$1];
  184. }
  185. }
  186. return result;
  187. }
  188.  
  189. /** Used for built-in method references. */
  190. var objectProto$3 = Object.prototype;
  191.  
  192. /**
  193. * Used to resolve the
  194. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  195. * of values.
  196. */
  197. var nativeObjectToString = objectProto$3.toString;
  198.  
  199. /**
  200. * Converts `value` to a string using `Object.prototype.toString`.
  201. *
  202. * @private
  203. * @param {*} value The value to convert.
  204. * @returns {string} Returns the converted string.
  205. */
  206. function objectToString(value) {
  207. return nativeObjectToString.call(value);
  208. }
  209.  
  210. /** `Object#toString` result references. */
  211. var nullTag = '[object Null]',
  212. undefinedTag = '[object Undefined]';
  213.  
  214. /** Built-in value references. */
  215. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  216.  
  217. /**
  218. * The base implementation of `getTag` without fallbacks for buggy environments.
  219. *
  220. * @private
  221. * @param {*} value The value to query.
  222. * @returns {string} Returns the `toStringTag`.
  223. */
  224. function baseGetTag(value) {
  225. if (value == null) {
  226. return value === undefined ? undefinedTag : nullTag;
  227. }
  228. return (symToStringTag && symToStringTag in Object(value))
  229. ? getRawTag(value)
  230. : objectToString(value);
  231. }
  232.  
  233. /**
  234. * Checks if `value` is object-like. A value is object-like if it's not `null`
  235. * and has a `typeof` result of "object".
  236. *
  237. * @static
  238. * @memberOf _
  239. * @since 4.0.0
  240. * @category Lang
  241. * @param {*} value The value to check.
  242. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  243. * @example
  244. *
  245. * _.isObjectLike({});
  246. * // => true
  247. *
  248. * _.isObjectLike([1, 2, 3]);
  249. * // => true
  250. *
  251. * _.isObjectLike(_.noop);
  252. * // => false
  253. *
  254. * _.isObjectLike(null);
  255. * // => false
  256. */
  257. function isObjectLike(value) {
  258. return value != null && typeof value == 'object';
  259. }
  260.  
  261. /** `Object#toString` result references. */
  262. var symbolTag = '[object Symbol]';
  263.  
  264. /**
  265. * Checks if `value` is classified as a `Symbol` primitive or object.
  266. *
  267. * @static
  268. * @memberOf _
  269. * @since 4.0.0
  270. * @category Lang
  271. * @param {*} value The value to check.
  272. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  273. * @example
  274. *
  275. * _.isSymbol(Symbol.iterator);
  276. * // => true
  277. *
  278. * _.isSymbol('abc');
  279. * // => false
  280. */
  281. function isSymbol(value) {
  282. return typeof value == 'symbol' ||
  283. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  284. }
  285.  
  286. /** Used to match a single whitespace character. */
  287. var reWhitespace = /\s/;
  288.  
  289. /**
  290. * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
  291. * character of `string`.
  292. *
  293. * @private
  294. * @param {string} string The string to inspect.
  295. * @returns {number} Returns the index of the last non-whitespace character.
  296. */
  297. function trimmedEndIndex(string) {
  298. var index = string.length;
  299.  
  300. while (index-- && reWhitespace.test(string.charAt(index))) {}
  301. return index;
  302. }
  303.  
  304. /** Used to match leading whitespace. */
  305. var reTrimStart = /^\s+/;
  306.  
  307. /**
  308. * The base implementation of `_.trim`.
  309. *
  310. * @private
  311. * @param {string} string The string to trim.
  312. * @returns {string} Returns the trimmed string.
  313. */
  314. function baseTrim(string) {
  315. return string
  316. ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
  317. : string;
  318. }
  319.  
  320. /**
  321. * Checks if `value` is the
  322. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  323. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  324. *
  325. * @static
  326. * @memberOf _
  327. * @since 0.1.0
  328. * @category Lang
  329. * @param {*} value The value to check.
  330. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  331. * @example
  332. *
  333. * _.isObject({});
  334. * // => true
  335. *
  336. * _.isObject([1, 2, 3]);
  337. * // => true
  338. *
  339. * _.isObject(_.noop);
  340. * // => true
  341. *
  342. * _.isObject(null);
  343. * // => false
  344. */
  345. function isObject(value) {
  346. var type = typeof value;
  347. return value != null && (type == 'object' || type == 'function');
  348. }
  349.  
  350. /** Used as references for various `Number` constants. */
  351. var NAN = 0 / 0;
  352.  
  353. /** Used to detect bad signed hexadecimal string values. */
  354. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  355.  
  356. /** Used to detect binary string values. */
  357. var reIsBinary = /^0b[01]+$/i;
  358.  
  359. /** Used to detect octal string values. */
  360. var reIsOctal = /^0o[0-7]+$/i;
  361.  
  362. /** Built-in method references without a dependency on `root`. */
  363. var freeParseInt = parseInt;
  364.  
  365. /**
  366. * Converts `value` to a number.
  367. *
  368. * @static
  369. * @memberOf _
  370. * @since 4.0.0
  371. * @category Lang
  372. * @param {*} value The value to process.
  373. * @returns {number} Returns the number.
  374. * @example
  375. *
  376. * _.toNumber(3.2);
  377. * // => 3.2
  378. *
  379. * _.toNumber(Number.MIN_VALUE);
  380. * // => 5e-324
  381. *
  382. * _.toNumber(Infinity);
  383. * // => Infinity
  384. *
  385. * _.toNumber('3.2');
  386. * // => 3.2
  387. */
  388. function toNumber(value) {
  389. if (typeof value == 'number') {
  390. return value;
  391. }
  392. if (isSymbol(value)) {
  393. return NAN;
  394. }
  395. if (isObject(value)) {
  396. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  397. value = isObject(other) ? (other + '') : other;
  398. }
  399. if (typeof value != 'string') {
  400. return value === 0 ? value : +value;
  401. }
  402. value = baseTrim(value);
  403. var isBinary = reIsBinary.test(value);
  404. return (isBinary || reIsOctal.test(value))
  405. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  406. : (reIsBadHex.test(value) ? NAN : +value);
  407. }
  408.  
  409. /** `Object#toString` result references. */
  410. var asyncTag = '[object AsyncFunction]',
  411. funcTag = '[object Function]',
  412. genTag = '[object GeneratorFunction]',
  413. proxyTag = '[object Proxy]';
  414.  
  415. /**
  416. * Checks if `value` is classified as a `Function` object.
  417. *
  418. * @static
  419. * @memberOf _
  420. * @since 0.1.0
  421. * @category Lang
  422. * @param {*} value The value to check.
  423. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  424. * @example
  425. *
  426. * _.isFunction(_);
  427. * // => true
  428. *
  429. * _.isFunction(/abc/);
  430. * // => false
  431. */
  432. function isFunction(value) {
  433. if (!isObject(value)) {
  434. return false;
  435. }
  436. // The use of `Object#toString` avoids issues with the `typeof` operator
  437. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  438. var tag = baseGetTag(value);
  439. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  440. }
  441.  
  442. /** Used to detect overreaching core-js shims. */
  443. var coreJsData = root['__core-js_shared__'];
  444.  
  445. /** Used to detect methods masquerading as native. */
  446. var maskSrcKey = (function() {
  447. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  448. return uid ? ('Symbol(src)_1.' + uid) : '';
  449. }());
  450.  
  451. /**
  452. * Checks if `func` has its source masked.
  453. *
  454. * @private
  455. * @param {Function} func The function to check.
  456. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  457. */
  458. function isMasked(func) {
  459. return !!maskSrcKey && (maskSrcKey in func);
  460. }
  461.  
  462. /** Used for built-in method references. */
  463. var funcProto$1 = Function.prototype;
  464.  
  465. /** Used to resolve the decompiled source of functions. */
  466. var funcToString$1 = funcProto$1.toString;
  467.  
  468. /**
  469. * Converts `func` to its source code.
  470. *
  471. * @private
  472. * @param {Function} func The function to convert.
  473. * @returns {string} Returns the source code.
  474. */
  475. function toSource(func) {
  476. if (func != null) {
  477. try {
  478. return funcToString$1.call(func);
  479. } catch (e) {}
  480. try {
  481. return (func + '');
  482. } catch (e) {}
  483. }
  484. return '';
  485. }
  486.  
  487. /**
  488. * Used to match `RegExp`
  489. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  490. */
  491. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  492.  
  493. /** Used to detect host constructors (Safari). */
  494. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  495.  
  496. /** Used for built-in method references. */
  497. var funcProto = Function.prototype,
  498. objectProto$2 = Object.prototype;
  499.  
  500. /** Used to resolve the decompiled source of functions. */
  501. var funcToString = funcProto.toString;
  502.  
  503. /** Used to check objects for own properties. */
  504. var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
  505.  
  506. /** Used to detect if a method is native. */
  507. var reIsNative = RegExp('^' +
  508. funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
  509. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  510. );
  511.  
  512. /**
  513. * The base implementation of `_.isNative` without bad shim checks.
  514. *
  515. * @private
  516. * @param {*} value The value to check.
  517. * @returns {boolean} Returns `true` if `value` is a native function,
  518. * else `false`.
  519. */
  520. function baseIsNative(value) {
  521. if (!isObject(value) || isMasked(value)) {
  522. return false;
  523. }
  524. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  525. return pattern.test(toSource(value));
  526. }
  527.  
  528. /**
  529. * Gets the value at `key` of `object`.
  530. *
  531. * @private
  532. * @param {Object} [object] The object to query.
  533. * @param {string} key The key of the property to get.
  534. * @returns {*} Returns the property value.
  535. */
  536. function getValue(object, key) {
  537. return object == null ? undefined : object[key];
  538. }
  539.  
  540. /**
  541. * Gets the native function at `key` of `object`.
  542. *
  543. * @private
  544. * @param {Object} object The object to query.
  545. * @param {string} key The key of the method to get.
  546. * @returns {*} Returns the function if it's native, else `undefined`.
  547. */
  548. function getNative(object, key) {
  549. var value = getValue(object, key);
  550. return baseIsNative(value) ? value : undefined;
  551. }
  552.  
  553. /**
  554. * Performs a
  555. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  556. * comparison between two values to determine if they are equivalent.
  557. *
  558. * @static
  559. * @memberOf _
  560. * @since 4.0.0
  561. * @category Lang
  562. * @param {*} value The value to compare.
  563. * @param {*} other The other value to compare.
  564. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  565. * @example
  566. *
  567. * var object = { 'a': 1 };
  568. * var other = { 'a': 1 };
  569. *
  570. * _.eq(object, object);
  571. * // => true
  572. *
  573. * _.eq(object, other);
  574. * // => false
  575. *
  576. * _.eq('a', 'a');
  577. * // => true
  578. *
  579. * _.eq('a', Object('a'));
  580. * // => false
  581. *
  582. * _.eq(NaN, NaN);
  583. * // => true
  584. */
  585. function eq(value, other) {
  586. return value === other || (value !== value && other !== other);
  587. }
  588.  
  589. /* Built-in method references that are verified to be native. */
  590. var nativeCreate = getNative(Object, 'create');
  591.  
  592. /**
  593. * Removes all key-value entries from the hash.
  594. *
  595. * @private
  596. * @name clear
  597. * @memberOf Hash
  598. */
  599. function hashClear() {
  600. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  601. this.size = 0;
  602. }
  603.  
  604. /**
  605. * Removes `key` and its value from the hash.
  606. *
  607. * @private
  608. * @name delete
  609. * @memberOf Hash
  610. * @param {Object} hash The hash to modify.
  611. * @param {string} key The key of the value to remove.
  612. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  613. */
  614. function hashDelete(key) {
  615. var result = this.has(key) && delete this.__data__[key];
  616. this.size -= result ? 1 : 0;
  617. return result;
  618. }
  619.  
  620. /** Used to stand-in for `undefined` hash values. */
  621. var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
  622.  
  623. /** Used for built-in method references. */
  624. var objectProto$1 = Object.prototype;
  625.  
  626. /** Used to check objects for own properties. */
  627. var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
  628.  
  629. /**
  630. * Gets the hash value for `key`.
  631. *
  632. * @private
  633. * @name get
  634. * @memberOf Hash
  635. * @param {string} key The key of the value to get.
  636. * @returns {*} Returns the entry value.
  637. */
  638. function hashGet(key) {
  639. var data = this.__data__;
  640. if (nativeCreate) {
  641. var result = data[key];
  642. return result === HASH_UNDEFINED$1 ? undefined : result;
  643. }
  644. return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
  645. }
  646.  
  647. /** Used for built-in method references. */
  648. var objectProto = Object.prototype;
  649.  
  650. /** Used to check objects for own properties. */
  651. var hasOwnProperty = objectProto.hasOwnProperty;
  652.  
  653. /**
  654. * Checks if a hash value for `key` exists.
  655. *
  656. * @private
  657. * @name has
  658. * @memberOf Hash
  659. * @param {string} key The key of the entry to check.
  660. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  661. */
  662. function hashHas(key) {
  663. var data = this.__data__;
  664. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  665. }
  666.  
  667. /** Used to stand-in for `undefined` hash values. */
  668. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  669.  
  670. /**
  671. * Sets the hash `key` to `value`.
  672. *
  673. * @private
  674. * @name set
  675. * @memberOf Hash
  676. * @param {string} key The key of the value to set.
  677. * @param {*} value The value to set.
  678. * @returns {Object} Returns the hash instance.
  679. */
  680. function hashSet(key, value) {
  681. var data = this.__data__;
  682. this.size += this.has(key) ? 0 : 1;
  683. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  684. return this;
  685. }
  686.  
  687. /**
  688. * Creates a hash object.
  689. *
  690. * @private
  691. * @constructor
  692. * @param {Array} [entries] The key-value pairs to cache.
  693. */
  694. function Hash(entries) {
  695. var index = -1,
  696. length = entries == null ? 0 : entries.length;
  697.  
  698. this.clear();
  699. while (++index < length) {
  700. var entry = entries[index];
  701. this.set(entry[0], entry[1]);
  702. }
  703. }
  704.  
  705. // Add methods to `Hash`.
  706. Hash.prototype.clear = hashClear;
  707. Hash.prototype['delete'] = hashDelete;
  708. Hash.prototype.get = hashGet;
  709. Hash.prototype.has = hashHas;
  710. Hash.prototype.set = hashSet;
  711.  
  712. /**
  713. * Removes all key-value entries from the list cache.
  714. *
  715. * @private
  716. * @name clear
  717. * @memberOf ListCache
  718. */
  719. function listCacheClear() {
  720. this.__data__ = [];
  721. this.size = 0;
  722. }
  723.  
  724. /**
  725. * Gets the index at which the `key` is found in `array` of key-value pairs.
  726. *
  727. * @private
  728. * @param {Array} array The array to inspect.
  729. * @param {*} key The key to search for.
  730. * @returns {number} Returns the index of the matched value, else `-1`.
  731. */
  732. function assocIndexOf(array, key) {
  733. var length = array.length;
  734. while (length--) {
  735. if (eq(array[length][0], key)) {
  736. return length;
  737. }
  738. }
  739. return -1;
  740. }
  741.  
  742. /** Used for built-in method references. */
  743. var arrayProto = Array.prototype;
  744.  
  745. /** Built-in value references. */
  746. var splice = arrayProto.splice;
  747.  
  748. /**
  749. * Removes `key` and its value from the list cache.
  750. *
  751. * @private
  752. * @name delete
  753. * @memberOf ListCache
  754. * @param {string} key The key of the value to remove.
  755. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  756. */
  757. function listCacheDelete(key) {
  758. var data = this.__data__,
  759. index = assocIndexOf(data, key);
  760.  
  761. if (index < 0) {
  762. return false;
  763. }
  764. var lastIndex = data.length - 1;
  765. if (index == lastIndex) {
  766. data.pop();
  767. } else {
  768. splice.call(data, index, 1);
  769. }
  770. --this.size;
  771. return true;
  772. }
  773.  
  774. /**
  775. * Gets the list cache value for `key`.
  776. *
  777. * @private
  778. * @name get
  779. * @memberOf ListCache
  780. * @param {string} key The key of the value to get.
  781. * @returns {*} Returns the entry value.
  782. */
  783. function listCacheGet(key) {
  784. var data = this.__data__,
  785. index = assocIndexOf(data, key);
  786.  
  787. return index < 0 ? undefined : data[index][1];
  788. }
  789.  
  790. /**
  791. * Checks if a list cache value for `key` exists.
  792. *
  793. * @private
  794. * @name has
  795. * @memberOf ListCache
  796. * @param {string} key The key of the entry to check.
  797. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  798. */
  799. function listCacheHas(key) {
  800. return assocIndexOf(this.__data__, key) > -1;
  801. }
  802.  
  803. /**
  804. * Sets the list cache `key` to `value`.
  805. *
  806. * @private
  807. * @name set
  808. * @memberOf ListCache
  809. * @param {string} key The key of the value to set.
  810. * @param {*} value The value to set.
  811. * @returns {Object} Returns the list cache instance.
  812. */
  813. function listCacheSet(key, value) {
  814. var data = this.__data__,
  815. index = assocIndexOf(data, key);
  816.  
  817. if (index < 0) {
  818. ++this.size;
  819. data.push([key, value]);
  820. } else {
  821. data[index][1] = value;
  822. }
  823. return this;
  824. }
  825.  
  826. /**
  827. * Creates an list cache object.
  828. *
  829. * @private
  830. * @constructor
  831. * @param {Array} [entries] The key-value pairs to cache.
  832. */
  833. function ListCache(entries) {
  834. var index = -1,
  835. length = entries == null ? 0 : entries.length;
  836.  
  837. this.clear();
  838. while (++index < length) {
  839. var entry = entries[index];
  840. this.set(entry[0], entry[1]);
  841. }
  842. }
  843.  
  844. // Add methods to `ListCache`.
  845. ListCache.prototype.clear = listCacheClear;
  846. ListCache.prototype['delete'] = listCacheDelete;
  847. ListCache.prototype.get = listCacheGet;
  848. ListCache.prototype.has = listCacheHas;
  849. ListCache.prototype.set = listCacheSet;
  850.  
  851. /* Built-in method references that are verified to be native. */
  852. var Map = getNative(root, 'Map');
  853.  
  854. /**
  855. * Removes all key-value entries from the map.
  856. *
  857. * @private
  858. * @name clear
  859. * @memberOf MapCache
  860. */
  861. function mapCacheClear() {
  862. this.size = 0;
  863. this.__data__ = {
  864. 'hash': new Hash,
  865. 'map': new (Map || ListCache),
  866. 'string': new Hash
  867. };
  868. }
  869.  
  870. /**
  871. * Checks if `value` is suitable for use as unique object key.
  872. *
  873. * @private
  874. * @param {*} value The value to check.
  875. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  876. */
  877. function isKeyable(value) {
  878. var type = typeof value;
  879. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  880. ? (value !== '__proto__')
  881. : (value === null);
  882. }
  883.  
  884. /**
  885. * Gets the data for `map`.
  886. *
  887. * @private
  888. * @param {Object} map The map to query.
  889. * @param {string} key The reference key.
  890. * @returns {*} Returns the map data.
  891. */
  892. function getMapData(map, key) {
  893. var data = map.__data__;
  894. return isKeyable(key)
  895. ? data[typeof key == 'string' ? 'string' : 'hash']
  896. : data.map;
  897. }
  898.  
  899. /**
  900. * Removes `key` and its value from the map.
  901. *
  902. * @private
  903. * @name delete
  904. * @memberOf MapCache
  905. * @param {string} key The key of the value to remove.
  906. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  907. */
  908. function mapCacheDelete(key) {
  909. var result = getMapData(this, key)['delete'](key);
  910. this.size -= result ? 1 : 0;
  911. return result;
  912. }
  913.  
  914. /**
  915. * Gets the map value for `key`.
  916. *
  917. * @private
  918. * @name get
  919. * @memberOf MapCache
  920. * @param {string} key The key of the value to get.
  921. * @returns {*} Returns the entry value.
  922. */
  923. function mapCacheGet(key) {
  924. return getMapData(this, key).get(key);
  925. }
  926.  
  927. /**
  928. * Checks if a map value for `key` exists.
  929. *
  930. * @private
  931. * @name has
  932. * @memberOf MapCache
  933. * @param {string} key The key of the entry to check.
  934. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  935. */
  936. function mapCacheHas(key) {
  937. return getMapData(this, key).has(key);
  938. }
  939.  
  940. /**
  941. * Sets the map `key` to `value`.
  942. *
  943. * @private
  944. * @name set
  945. * @memberOf MapCache
  946. * @param {string} key The key of the value to set.
  947. * @param {*} value The value to set.
  948. * @returns {Object} Returns the map cache instance.
  949. */
  950. function mapCacheSet(key, value) {
  951. var data = getMapData(this, key),
  952. size = data.size;
  953.  
  954. data.set(key, value);
  955. this.size += data.size == size ? 0 : 1;
  956. return this;
  957. }
  958.  
  959. /**
  960. * Creates a map cache object to store key-value pairs.
  961. *
  962. * @private
  963. * @constructor
  964. * @param {Array} [entries] The key-value pairs to cache.
  965. */
  966. function MapCache(entries) {
  967. var index = -1,
  968. length = entries == null ? 0 : entries.length;
  969.  
  970. this.clear();
  971. while (++index < length) {
  972. var entry = entries[index];
  973. this.set(entry[0], entry[1]);
  974. }
  975. }
  976.  
  977. // Add methods to `MapCache`.
  978. MapCache.prototype.clear = mapCacheClear;
  979. MapCache.prototype['delete'] = mapCacheDelete;
  980. MapCache.prototype.get = mapCacheGet;
  981. MapCache.prototype.has = mapCacheHas;
  982. MapCache.prototype.set = mapCacheSet;
  983.  
  984. /** Error message constants. */
  985. var FUNC_ERROR_TEXT$2 = 'Expected a function';
  986.  
  987. /**
  988. * Creates a function that memoizes the result of `func`. If `resolver` is
  989. * provided, it determines the cache key for storing the result based on the
  990. * arguments provided to the memoized function. By default, the first argument
  991. * provided to the memoized function is used as the map cache key. The `func`
  992. * is invoked with the `this` binding of the memoized function.
  993. *
  994. * **Note:** The cache is exposed as the `cache` property on the memoized
  995. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  996. * constructor with one whose instances implement the
  997. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  998. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  999. *
  1000. * @static
  1001. * @memberOf _
  1002. * @since 0.1.0
  1003. * @category Function
  1004. * @param {Function} func The function to have its output memoized.
  1005. * @param {Function} [resolver] The function to resolve the cache key.
  1006. * @returns {Function} Returns the new memoized function.
  1007. * @example
  1008. *
  1009. * var object = { 'a': 1, 'b': 2 };
  1010. * var other = { 'c': 3, 'd': 4 };
  1011. *
  1012. * var values = _.memoize(_.values);
  1013. * values(object);
  1014. * // => [1, 2]
  1015. *
  1016. * values(other);
  1017. * // => [3, 4]
  1018. *
  1019. * object.a = 2;
  1020. * values(object);
  1021. * // => [1, 2]
  1022. *
  1023. * // Modify the result cache.
  1024. * values.cache.set(object, ['a', 'b']);
  1025. * values(object);
  1026. * // => ['a', 'b']
  1027. *
  1028. * // Replace `_.memoize.Cache`.
  1029. * _.memoize.Cache = WeakMap;
  1030. */
  1031. function memoize(func, resolver) {
  1032. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  1033. throw new TypeError(FUNC_ERROR_TEXT$2);
  1034. }
  1035. var memoized = function() {
  1036. var args = arguments,
  1037. key = resolver ? resolver.apply(this, args) : args[0],
  1038. cache = memoized.cache;
  1039.  
  1040. if (cache.has(key)) {
  1041. return cache.get(key);
  1042. }
  1043. var result = func.apply(this, args);
  1044. memoized.cache = cache.set(key, result) || cache;
  1045. return result;
  1046. };
  1047. memoized.cache = new (memoize.Cache || MapCache);
  1048. return memoized;
  1049. }
  1050.  
  1051. // Expose `MapCache`.
  1052. memoize.Cache = MapCache;
  1053.  
  1054. /**
  1055. * The base implementation of `_.clamp` which doesn't coerce arguments.
  1056. *
  1057. * @private
  1058. * @param {number} number The number to clamp.
  1059. * @param {number} [lower] The lower bound.
  1060. * @param {number} upper The upper bound.
  1061. * @returns {number} Returns the clamped number.
  1062. */
  1063. function baseClamp(number, lower, upper) {
  1064. if (number === number) {
  1065. if (upper !== undefined) {
  1066. number = number <= upper ? number : upper;
  1067. }
  1068. if (lower !== undefined) {
  1069. number = number >= lower ? number : lower;
  1070. }
  1071. }
  1072. return number;
  1073. }
  1074.  
  1075. /**
  1076. * Clamps `number` within the inclusive `lower` and `upper` bounds.
  1077. *
  1078. * @static
  1079. * @memberOf _
  1080. * @since 4.0.0
  1081. * @category Number
  1082. * @param {number} number The number to clamp.
  1083. * @param {number} [lower] The lower bound.
  1084. * @param {number} upper The upper bound.
  1085. * @returns {number} Returns the clamped number.
  1086. * @example
  1087. *
  1088. * _.clamp(-10, -5, 5);
  1089. * // => -5
  1090. *
  1091. * _.clamp(10, -5, 5);
  1092. * // => 5
  1093. */
  1094. function clamp(number, lower, upper) {
  1095. if (upper === undefined) {
  1096. upper = lower;
  1097. lower = undefined;
  1098. }
  1099. if (upper !== undefined) {
  1100. upper = toNumber(upper);
  1101. upper = upper === upper ? upper : 0;
  1102. }
  1103. if (lower !== undefined) {
  1104. lower = toNumber(lower);
  1105. lower = lower === lower ? lower : 0;
  1106. }
  1107. return baseClamp(toNumber(number), lower, upper);
  1108. }
  1109.  
  1110. /**
  1111. * Gets the timestamp of the number of milliseconds that have elapsed since
  1112. * the Unix epoch (1 January 1970 00:00:00 UTC).
  1113. *
  1114. * @static
  1115. * @memberOf _
  1116. * @since 2.4.0
  1117. * @category Date
  1118. * @returns {number} Returns the timestamp.
  1119. * @example
  1120. *
  1121. * _.defer(function(stamp) {
  1122. * console.log(_.now() - stamp);
  1123. * }, _.now());
  1124. * // => Logs the number of milliseconds it took for the deferred invocation.
  1125. */
  1126. var now = function() {
  1127. return root.Date.now();
  1128. };
  1129.  
  1130. /** Error message constants. */
  1131. var FUNC_ERROR_TEXT$1 = 'Expected a function';
  1132.  
  1133. /* Built-in method references for those with the same name as other `lodash` methods. */
  1134. var nativeMax = Math.max,
  1135. nativeMin = Math.min;
  1136.  
  1137. /**
  1138. * Creates a debounced function that delays invoking `func` until after `wait`
  1139. * milliseconds have elapsed since the last time the debounced function was
  1140. * invoked. The debounced function comes with a `cancel` method to cancel
  1141. * delayed `func` invocations and a `flush` method to immediately invoke them.
  1142. * Provide `options` to indicate whether `func` should be invoked on the
  1143. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  1144. * with the last arguments provided to the debounced function. Subsequent
  1145. * calls to the debounced function return the result of the last `func`
  1146. * invocation.
  1147. *
  1148. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  1149. * invoked on the trailing edge of the timeout only if the debounced function
  1150. * is invoked more than once during the `wait` timeout.
  1151. *
  1152. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  1153. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  1154. *
  1155. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  1156. * for details over the differences between `_.debounce` and `_.throttle`.
  1157. *
  1158. * @static
  1159. * @memberOf _
  1160. * @since 0.1.0
  1161. * @category Function
  1162. * @param {Function} func The function to debounce.
  1163. * @param {number} [wait=0] The number of milliseconds to delay.
  1164. * @param {Object} [options={}] The options object.
  1165. * @param {boolean} [options.leading=false]
  1166. * Specify invoking on the leading edge of the timeout.
  1167. * @param {number} [options.maxWait]
  1168. * The maximum time `func` is allowed to be delayed before it's invoked.
  1169. * @param {boolean} [options.trailing=true]
  1170. * Specify invoking on the trailing edge of the timeout.
  1171. * @returns {Function} Returns the new debounced function.
  1172. * @example
  1173. *
  1174. * // Avoid costly calculations while the window size is in flux.
  1175. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  1176. *
  1177. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  1178. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  1179. * 'leading': true,
  1180. * 'trailing': false
  1181. * }));
  1182. *
  1183. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  1184. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  1185. * var source = new EventSource('/stream');
  1186. * jQuery(source).on('message', debounced);
  1187. *
  1188. * // Cancel the trailing debounced invocation.
  1189. * jQuery(window).on('popstate', debounced.cancel);
  1190. */
  1191. function debounce(func, wait, options) {
  1192. var lastArgs,
  1193. lastThis,
  1194. maxWait,
  1195. result,
  1196. timerId,
  1197. lastCallTime,
  1198. lastInvokeTime = 0,
  1199. leading = false,
  1200. maxing = false,
  1201. trailing = true;
  1202.  
  1203. if (typeof func != 'function') {
  1204. throw new TypeError(FUNC_ERROR_TEXT$1);
  1205. }
  1206. wait = toNumber(wait) || 0;
  1207. if (isObject(options)) {
  1208. leading = !!options.leading;
  1209. maxing = 'maxWait' in options;
  1210. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  1211. trailing = 'trailing' in options ? !!options.trailing : trailing;
  1212. }
  1213.  
  1214. function invokeFunc(time) {
  1215. var args = lastArgs,
  1216. thisArg = lastThis;
  1217.  
  1218. lastArgs = lastThis = undefined;
  1219. lastInvokeTime = time;
  1220. result = func.apply(thisArg, args);
  1221. return result;
  1222. }
  1223.  
  1224. function leadingEdge(time) {
  1225. // Reset any `maxWait` timer.
  1226. lastInvokeTime = time;
  1227. // Start the timer for the trailing edge.
  1228. timerId = setTimeout(timerExpired, wait);
  1229. // Invoke the leading edge.
  1230. return leading ? invokeFunc(time) : result;
  1231. }
  1232.  
  1233. function remainingWait(time) {
  1234. var timeSinceLastCall = time - lastCallTime,
  1235. timeSinceLastInvoke = time - lastInvokeTime,
  1236. timeWaiting = wait - timeSinceLastCall;
  1237.  
  1238. return maxing
  1239. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  1240. : timeWaiting;
  1241. }
  1242.  
  1243. function shouldInvoke(time) {
  1244. var timeSinceLastCall = time - lastCallTime,
  1245. timeSinceLastInvoke = time - lastInvokeTime;
  1246.  
  1247. // Either this is the first call, activity has stopped and we're at the
  1248. // trailing edge, the system time has gone backwards and we're treating
  1249. // it as the trailing edge, or we've hit the `maxWait` limit.
  1250. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  1251. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  1252. }
  1253.  
  1254. function timerExpired() {
  1255. var time = now();
  1256. if (shouldInvoke(time)) {
  1257. return trailingEdge(time);
  1258. }
  1259. // Restart the timer.
  1260. timerId = setTimeout(timerExpired, remainingWait(time));
  1261. }
  1262.  
  1263. function trailingEdge(time) {
  1264. timerId = undefined;
  1265.  
  1266. // Only invoke if we have `lastArgs` which means `func` has been
  1267. // debounced at least once.
  1268. if (trailing && lastArgs) {
  1269. return invokeFunc(time);
  1270. }
  1271. lastArgs = lastThis = undefined;
  1272. return result;
  1273. }
  1274.  
  1275. function cancel() {
  1276. if (timerId !== undefined) {
  1277. clearTimeout(timerId);
  1278. }
  1279. lastInvokeTime = 0;
  1280. lastArgs = lastCallTime = lastThis = timerId = undefined;
  1281. }
  1282.  
  1283. function flush() {
  1284. return timerId === undefined ? result : trailingEdge(now());
  1285. }
  1286.  
  1287. function debounced() {
  1288. var time = now(),
  1289. isInvoking = shouldInvoke(time);
  1290.  
  1291. lastArgs = arguments;
  1292. lastThis = this;
  1293. lastCallTime = time;
  1294.  
  1295. if (isInvoking) {
  1296. if (timerId === undefined) {
  1297. return leadingEdge(lastCallTime);
  1298. }
  1299. if (maxing) {
  1300. // Handle invocations in a tight loop.
  1301. clearTimeout(timerId);
  1302. timerId = setTimeout(timerExpired, wait);
  1303. return invokeFunc(lastCallTime);
  1304. }
  1305. }
  1306. if (timerId === undefined) {
  1307. timerId = setTimeout(timerExpired, wait);
  1308. }
  1309. return result;
  1310. }
  1311. debounced.cancel = cancel;
  1312. debounced.flush = flush;
  1313. return debounced;
  1314. }
  1315.  
  1316. /** Error message constants. */
  1317. var FUNC_ERROR_TEXT = 'Expected a function';
  1318.  
  1319. /**
  1320. * Creates a throttled function that only invokes `func` at most once per
  1321. * every `wait` milliseconds. The throttled function comes with a `cancel`
  1322. * method to cancel delayed `func` invocations and a `flush` method to
  1323. * immediately invoke them. Provide `options` to indicate whether `func`
  1324. * should be invoked on the leading and/or trailing edge of the `wait`
  1325. * timeout. The `func` is invoked with the last arguments provided to the
  1326. * throttled function. Subsequent calls to the throttled function return the
  1327. * result of the last `func` invocation.
  1328. *
  1329. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  1330. * invoked on the trailing edge of the timeout only if the throttled function
  1331. * is invoked more than once during the `wait` timeout.
  1332. *
  1333. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  1334. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  1335. *
  1336. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  1337. * for details over the differences between `_.throttle` and `_.debounce`.
  1338. *
  1339. * @static
  1340. * @memberOf _
  1341. * @since 0.1.0
  1342. * @category Function
  1343. * @param {Function} func The function to throttle.
  1344. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  1345. * @param {Object} [options={}] The options object.
  1346. * @param {boolean} [options.leading=true]
  1347. * Specify invoking on the leading edge of the timeout.
  1348. * @param {boolean} [options.trailing=true]
  1349. * Specify invoking on the trailing edge of the timeout.
  1350. * @returns {Function} Returns the new throttled function.
  1351. * @example
  1352. *
  1353. * // Avoid excessively updating the position while scrolling.
  1354. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  1355. *
  1356. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  1357. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  1358. * jQuery(element).on('click', throttled);
  1359. *
  1360. * // Cancel the trailing throttled invocation.
  1361. * jQuery(window).on('popstate', throttled.cancel);
  1362. */
  1363. function throttle(func, wait, options) {
  1364. var leading = true,
  1365. trailing = true;
  1366.  
  1367. if (typeof func != 'function') {
  1368. throw new TypeError(FUNC_ERROR_TEXT);
  1369. }
  1370. if (isObject(options)) {
  1371. leading = 'leading' in options ? !!options.leading : leading;
  1372. trailing = 'trailing' in options ? !!options.trailing : trailing;
  1373. }
  1374. return debounce(func, wait, {
  1375. 'leading': leading,
  1376. 'maxWait': wait,
  1377. 'trailing': trailing
  1378. });
  1379. }
  1380.  
  1381. function createTest(target) {
  1382. return (test) => typeof test === "function" ? test() : typeof test === "string" ? target.includes(test) || test === "*" : test.test(target);
  1383. }
  1384. class Runtime {
  1385. constructor() {
  1386. this.getTopLocationHref = memoize(
  1387. async () => {
  1388. if (parent === self)
  1389. return window.location.href;
  1390. return new Promise((resolve) => {
  1391. window.addEventListener("message", function once(e) {
  1392. var _a;
  1393. if (((_a = e.data) == null ? void 0 : _a.key) === "getLocationHref") {
  1394. window.removeEventListener("message", once);
  1395. resolve(e.data.url);
  1396. }
  1397. });
  1398. parent.postMessage({ key: "getLocationHref" }, "*");
  1399. });
  1400. },
  1401. () => window.location.href
  1402. );
  1403. this.list = [
  1404. {
  1405. domains: [],
  1406. opts: [],
  1407. search: {
  1408. name: "[BT]\u871C\u67D1\u8BA1\u5212",
  1409. search: (name) => `https://mikanani.me/Home/Search?searchstr=${name}`
  1410. }
  1411. }
  1412. ];
  1413. if (parent === self) {
  1414. window.addEventListener("message", (e) => {
  1415. var _a, _b;
  1416. if (((_a = e.data) == null ? void 0 : _a.key) === "getLocationHref") {
  1417. (_b = e.source) == null ? void 0 : _b.postMessage(
  1418. { key: "getLocationHref", url: location.href },
  1419. { targetOrigin: "*" }
  1420. );
  1421. }
  1422. });
  1423. }
  1424. }
  1425. register(item) {
  1426. this.list.push(item);
  1427. }
  1428. async getSearchActions() {
  1429. const isInIframe = parent !== self;
  1430. const searchs = this.list.map((o) => o.search).filter(Boolean).filter((o) => !(isInIframe && o.disabledInIframe));
  1431. const register = this.getActiveRegister();
  1432. const info = await this.getCurrentVideoNameAndEpisode();
  1433. if (!(info == null ? void 0 : info.name))
  1434. return [];
  1435. let name = info.name;
  1436. return searchs.filter((search) => search !== register.search && search.search).map((search) => ({
  1437. name: search.name,
  1438. search: () => {
  1439. const url = search.search(encodeURIComponent(name));
  1440. if (!url)
  1441. return;
  1442. if (isInIframe)
  1443. parent.postMessage({ key: "openLink", url }, "*");
  1444. else
  1445. window.open(url);
  1446. }
  1447. }));
  1448. }
  1449. async getCurrentVideoNameAndEpisode() {
  1450. var _a, _b, _c, _d;
  1451. const register = this.getActiveRegister();
  1452. if (!((_a = register.search) == null ? void 0 : _a.getSearchName))
  1453. return;
  1454. let rawName = await register.search.getSearchName() || "";
  1455. let episode = await ((_c = (_b = register.search).getEpisode) == null ? void 0 : _c.call(_b)) || "";
  1456. let name = rawName.replace(/第.季/, "").replace(/[<>《》''‘’""“”\[\]]/g, "").trim();
  1457. episode = ((_d = episode.match(/([0-9.]+)[集话]/)) == null ? void 0 : _d[1].replace(/^0+/, "")) || episode.replace(/[第集话()()]/g, "") || episode;
  1458. return { name, rawName, episode };
  1459. }
  1460. getActiveRegister() {
  1461. const registers = this.list.filter(
  1462. ({ domains }) => domains.some(createTest(location.origin))
  1463. );
  1464. if (registers.length !== 1) {
  1465. console.log(window.location, registers);
  1466. throw new Error(`\u6FC0\u6D3B\u7684\u57DF\u540D\u5E94\u8BE5\u5C31\u4E00\u4E2A`);
  1467. }
  1468. console.log("\u6FC0\u6D3B\u7684Register", registers[0]);
  1469. return registers[0];
  1470. }
  1471. getActiveOpts() {
  1472. const register = this.getActiveRegister();
  1473. return register.opts.filter(({ test }) => {
  1474. const testArr = Array.isArray(test) ? test : [test];
  1475. return testArr.some(createTest(location.pathname + location.search));
  1476. });
  1477. }
  1478. run() {
  1479. let setupList = [];
  1480. let runList = [];
  1481. const opts = this.getActiveOpts();
  1482. opts.forEach((opt) => {
  1483. const { run, setup, runInIframe } = opt;
  1484. let needRun = runInIframe ? parent !== self : parent === self;
  1485. if (needRun) {
  1486. console.log("\u6FC0\u6D3B\u7684opt", opt);
  1487. setup && setupList.push(setup);
  1488. runList.push(run);
  1489. }
  1490. });
  1491. const init = () => {
  1492. setupList.forEach((setup) => setup());
  1493. runList.forEach((run) => run());
  1494. };
  1495. if (document.readyState !== "loading") {
  1496. init();
  1497. } else {
  1498. window.addEventListener("DOMContentLoaded", init);
  1499. }
  1500. }
  1501. }
  1502. const runtime = new Runtime();
  1503.  
  1504. var css$e = "#k-player-message {\n z-index: 999;\n position: absolute;\n left: 20px;\n bottom: 60px;\n}\n#k-player-message .k-player-message-item {\n display: block;\n width: max-content;\n padding: 8px 16px;\n background: var(--k-player-background);\n border-radius: 4px;\n color: white;\n font-size: 14px;\n white-space: nowrap;\n overflow: hidden;\n box-sizing: border-box;\n margin-top: 4px;\n}\n#k-player-message .k-player-message-item:hover {\n background: var(--k-player-background-highlight);\n transition: all 0.3s;\n}";
  1505. injectCss(css$e,{});
  1506.  
  1507. class Message {
  1508. constructor(selector) {
  1509. this.MaxLength = 5;
  1510. this.$message = $('<div id="k-player-message">');
  1511. this.$message.appendTo($(selector));
  1512. }
  1513. info(message, ms = 1500) {
  1514. if (this.$message.children().length > this.MaxLength) {
  1515. this.$message.children().first().remove();
  1516. }
  1517. return new Promise((resolve) => {
  1518. $(`<div class="k-player-message-item"></div>`).append(message).hide().appendTo(this.$message).show(150).delay(ms).hide(150, function() {
  1519. $(this).remove();
  1520. resolve();
  1521. });
  1522. });
  1523. }
  1524. destroy() {
  1525. this.$message.empty();
  1526. }
  1527. }
  1528.  
  1529. function parseTime(time = 0) {
  1530. time = Math.round(time);
  1531. return `${Math.floor(time / 60).toString().padStart(2, "0")}:${(time % 60).toString().padStart(2, "0")}`;
  1532. }
  1533.  
  1534. function createStorage$1(storage) {
  1535. function getItem(key, defaultValue) {
  1536. try {
  1537. const value = storage.getItem(key);
  1538. if (value)
  1539. return JSON.parse(value);
  1540. return defaultValue;
  1541. } catch (error) {
  1542. return defaultValue;
  1543. }
  1544. }
  1545. return {
  1546. getItem,
  1547. setItem(key, value) {
  1548. storage.setItem(key, JSON.stringify(value));
  1549. },
  1550. removeItem: storage.removeItem.bind(storage),
  1551. clear: storage.clear.bind(storage)
  1552. };
  1553. }
  1554. const session = createStorage$1(window.sessionStorage);
  1555. const local = createStorage$1(window.localStorage);
  1556. let gm;
  1557. try {
  1558. gm = { getItem: GM_getValue, setItem: GM_setValue };
  1559. } catch (error) {
  1560. gm = local;
  1561. }
  1562.  
  1563. var css$d = ".k-popover {\n position: relative;\n}\n.k-popover-overlay {\n position: absolute;\n display: none;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n z-index: 100;\n padding-bottom: 20px;\n}\n.k-popover-content {\n background: var(--k-player-background);\n border-radius: 4px;\n overflow-x: hidden;\n overflow-y: auto;\n cursor: initial;\n max-height: var(--k-player-popover-max-height, 70vh);\n}\n.k-popover-content::-webkit-scrollbar {\n display: none;\n}";
  1564. injectCss(css$d,{});
  1565.  
  1566. function popover(target, overlay, trigger = "hover") {
  1567. const $target = $(target);
  1568. const $content = $(
  1569. `<div class="k-popover-overlay"><div class="k-popover-content"></div></div>`
  1570. );
  1571. $content.on("click", (e) => e.stopPropagation());
  1572. $content.find(".k-popover-content").append(overlay);
  1573. $target.addClass("k-popover");
  1574. $target.append($content);
  1575. if (trigger === "click") {
  1576. $target.on("click", () => {
  1577. $content.fadeIn("fast");
  1578. $target.addClass("k-popover-active");
  1579. });
  1580. window.addEventListener("click", (e) => {
  1581. if (!$target[0].contains(e.target)) {
  1582. $content.fadeOut("fast");
  1583. $target.removeClass("k-popover-active");
  1584. }
  1585. });
  1586. } else {
  1587. let timeID;
  1588. $target.on("mouseenter", () => {
  1589. clearTimeout(timeID);
  1590. timeID = window.setTimeout(() => {
  1591. $content.fadeIn("fast");
  1592. $target.addClass("k-popover-active");
  1593. }, 100);
  1594. });
  1595. $target.on("mouseleave", () => {
  1596. clearTimeout(timeID);
  1597. timeID = window.setTimeout(() => {
  1598. $content.fadeOut("fast");
  1599. $target.removeClass("k-popover-active");
  1600. }, 100);
  1601. });
  1602. }
  1603. return $target;
  1604. }
  1605.  
  1606. const isMac$1 = /macintosh|mac os x/i.test(navigator.userAgent);
  1607. const KeyMap = {
  1608. ArrowUp: "\u2191",
  1609. ArrowDown: "\u2193",
  1610. ArrowLeft: "\u2190",
  1611. ArrowRight: "\u2192",
  1612. ctrl: "Ctrl",
  1613. alt: "Alt",
  1614. shift: "Shift"
  1615. };
  1616. const MacKeyMap = {
  1617. ctrl: "\u2303",
  1618. meta: "\u2318",
  1619. alt: "\u2325",
  1620. shift: "\u21E7"
  1621. };
  1622. if (isMac$1) {
  1623. Object.assign(KeyMap, MacKeyMap);
  1624. }
  1625. function renderKey(key) {
  1626. Object.entries(KeyMap).forEach(([k, v]) => {
  1627. key = key.replace(new RegExp(k, "i"), v);
  1628. });
  1629. return key;
  1630. }
  1631.  
  1632. var Commands$1 = /* @__PURE__ */ ((Commands2) => {
  1633. Commands2["forward5"] = "forward5";
  1634. Commands2["backward5"] = "backward5";
  1635. Commands2["forward30"] = "forward30";
  1636. Commands2["backward30"] = "backward30";
  1637. Commands2["forward60"] = "forward60";
  1638. Commands2["backward60"] = "backward60";
  1639. Commands2["forward90"] = "forward90";
  1640. Commands2["backward90"] = "backward90";
  1641. Commands2["togglePlay"] = "togglePlay";
  1642. Commands2["next"] = "next";
  1643. Commands2["prev"] = "prev";
  1644. Commands2["toggleWidescreen"] = "toggleWidescreen";
  1645. Commands2["Escape"] = "Escape";
  1646. Commands2["restoreSpeed"] = "restoreSpeed";
  1647. Commands2["increaseSpeed"] = "increaseSpeed";
  1648. Commands2["decreaseSpeed"] = "decreaseSpeed";
  1649. Commands2["temporaryIncreaseSpeed"] = "temporaryIncreaseSpeed";
  1650. Commands2["togglePIP"] = "togglePIP";
  1651. Commands2["internal"] = "internal";
  1652. Commands2["help"] = "help";
  1653. Commands2["prevFrame"] = "prevFrame";
  1654. Commands2["nextFrame"] = "nextFrame";
  1655. Commands2["toggleFullscreen"] = "toggleFullscreen";
  1656. Commands2["decreaseVolume"] = "decreaseVolume";
  1657. Commands2["increaseVolume"] = "increaseVolume";
  1658. Commands2["toggleMute"] = "toggleMute";
  1659. Commands2["forwardCustom"] = "forwardCustom";
  1660. Commands2["backwardCustom"] = "backwardCustom";
  1661. Commands2["recordCustomSeekTime"] = "recordCustomSeekTime";
  1662. return Commands2;
  1663. })(Commands$1 || {});
  1664.  
  1665. var __defProp$3 = Object.defineProperty;
  1666. var __defProps$2 = Object.defineProperties;
  1667. var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
  1668. var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
  1669. var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
  1670. var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
  1671. var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  1672. var __spreadValues$3 = (a, b) => {
  1673. for (var prop in b || (b = {}))
  1674. if (__hasOwnProp$3.call(b, prop))
  1675. __defNormalProp$3(a, prop, b[prop]);
  1676. if (__getOwnPropSymbols$3)
  1677. for (var prop of __getOwnPropSymbols$3(b)) {
  1678. if (__propIsEnum$3.call(b, prop))
  1679. __defNormalProp$3(a, prop, b[prop]);
  1680. }
  1681. return a;
  1682. };
  1683. var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
  1684. const isMac = /macintosh|mac os x/i.test(navigator.userAgent);
  1685. const DefaultKeyBindings = [
  1686. { command: Commands$1.togglePlay, key: "Space", description: "\u64AD\u653E/\u6682\u505C" },
  1687. {
  1688. command: Commands$1.backward5,
  1689. key: "ArrowLeft",
  1690. description: "\u6B65\u90005s"
  1691. },
  1692. {
  1693. command: Commands$1.forward5,
  1694. key: "ArrowRight",
  1695. description: "\u6B65\u8FDB5s"
  1696. },
  1697. {
  1698. command: Commands$1.backward30,
  1699. key: "shift ArrowLeft",
  1700. description: "\u6B65\u900030s"
  1701. },
  1702. {
  1703. command: Commands$1.forward30,
  1704. key: "shift ArrowRight",
  1705. description: "\u6B65\u8FDB30s"
  1706. },
  1707. {
  1708. command: Commands$1.backward60,
  1709. key: "alt ArrowLeft",
  1710. description: "\u6B65\u900060s"
  1711. },
  1712. {
  1713. command: Commands$1.forward60,
  1714. key: "alt ArrowRight",
  1715. description: "\u6B65\u8FDB60s"
  1716. },
  1717. {
  1718. command: Commands$1.backward90,
  1719. key: "ctrl ArrowLeft",
  1720. mac: "meta ArrowLeft",
  1721. description: "\u6B65\u900090s"
  1722. },
  1723. {
  1724. command: Commands$1.forward90,
  1725. key: "ctrl ArrowRight",
  1726. mac: "meta ArrowRight",
  1727. description: "\u6B65\u8FDB90s"
  1728. },
  1729. {
  1730. command: Commands$1.backwardCustom,
  1731. key: "shift J",
  1732. description: "\u6B65\u9000[\u8BB0\u5FC6\u65F6\u95F4]"
  1733. },
  1734. { command: Commands$1.forwardCustom, key: "J", description: "\u6B65\u8FDB[\u8BB0\u5FC6\u65F6\u95F4]" },
  1735. {
  1736. command: Commands$1.recordCustomSeekTime,
  1737. key: "K",
  1738. description: "\u8BB0\u5F55\u6B65\u8FDB\u65F6\u95F4"
  1739. },
  1740. { command: Commands$1.prevFrame, key: "", description: "\u4E0A\u4E00\u5E27" },
  1741. { command: Commands$1.nextFrame, key: "", description: "\u4E0B\u4E00\u5E27" },
  1742. { command: Commands$1.prev, key: "P", description: "\u4E0A\u4E00\u96C6" },
  1743. { command: Commands$1.next, key: "N", description: "\u4E0B\u4E00\u96C6" },
  1744. { command: Commands$1.toggleWidescreen, key: "W", description: "\u5BBD\u5C4F" },
  1745. {
  1746. command: Commands$1.toggleFullscreen,
  1747. key: "F",
  1748. description: "\u5168\u5C4F"
  1749. },
  1750. {
  1751. command: Commands$1.Escape,
  1752. key: "Escape",
  1753. editable: false,
  1754. description: "\u9000\u51FA\u5168\u5C4F/\u5BBD\u5C4F"
  1755. },
  1756. { command: Commands$1.restoreSpeed, key: "Z", description: "\u539F\u901F\u64AD\u653E" },
  1757. { command: Commands$1.decreaseSpeed, key: "X", description: "\u51CF\u901F\u64AD\u653E" },
  1758. { command: Commands$1.increaseSpeed, key: "C", description: "\u52A0\u901F\u64AD\u653E" },
  1759. {
  1760. command: Commands$1.temporaryIncreaseSpeed,
  1761. key: "V",
  1762. description: "\u957F\u6309\u52A0\u901F"
  1763. },
  1764. { command: Commands$1.togglePIP, key: "I", description: "\u753B\u4E2D\u753B" },
  1765. {
  1766. command: Commands$1.increaseVolume,
  1767. key: "ArrowUp",
  1768. description: "\u589E\u5927\u97F3\u91CF"
  1769. },
  1770. {
  1771. command: Commands$1.decreaseVolume,
  1772. key: "ArrowDown",
  1773. description: "\u51CF\u5C0F\u97F3\u91CF"
  1774. },
  1775. {
  1776. command: Commands$1.toggleMute,
  1777. key: "M",
  1778. description: "\u5207\u6362\u9759\u97F3"
  1779. },
  1780. {
  1781. command: Commands$1.internal,
  1782. key: "?",
  1783. editable: false,
  1784. description: "\u663E\u793A\u5E2E\u52A9"
  1785. }
  1786. ];
  1787. class KeyBindings {
  1788. constructor() {
  1789. this.storageKey = "user-custom-keybindings";
  1790. this.listener = [];
  1791. }
  1792. getCustomKeyBindings() {
  1793. return gm.getItem(this.storageKey, []);
  1794. }
  1795. setCustomKeyBindings(keyBindings) {
  1796. gm.setItem(this.storageKey, keyBindings);
  1797. }
  1798. registerKeyBinding(keyBinding) {
  1799. DefaultKeyBindings.push(keyBinding);
  1800. this.notify();
  1801. }
  1802. setKeyBinding(command, key) {
  1803. let customKeyBindings = this.getCustomKeyBindings();
  1804. customKeyBindings = customKeyBindings.filter((o) => o.command !== command);
  1805. if (key) {
  1806. customKeyBindings.push({ command, key });
  1807. }
  1808. this.setCustomKeyBindings(customKeyBindings);
  1809. this.notify();
  1810. }
  1811. getKeyBindings() {
  1812. const customKeyBindings = this.getCustomKeyBindings();
  1813. return DefaultKeyBindings.map((keyBinding) => {
  1814. const customKeyBinding = customKeyBindings.find(
  1815. (o) => o.command === keyBinding.command
  1816. );
  1817. const nextKeyBinding = __spreadProps$2(__spreadValues$3({}, keyBinding), { originKey: "", customKey: "" });
  1818. if (isMac && nextKeyBinding.mac) {
  1819. nextKeyBinding.key = nextKeyBinding.mac;
  1820. }
  1821. nextKeyBinding.originKey = nextKeyBinding.key;
  1822. if (customKeyBinding) {
  1823. nextKeyBinding.key = customKeyBinding.key;
  1824. nextKeyBinding.customKey = customKeyBinding.key;
  1825. }
  1826. return nextKeyBinding;
  1827. });
  1828. }
  1829. getKeyBinding(command) {
  1830. const keyBindings = this.getKeyBindings();
  1831. return keyBindings.find((o) => o.command === command);
  1832. }
  1833. getCommand(key) {
  1834. var _a;
  1835. const keyBindings = this.getKeyBindings();
  1836. return (_a = keyBindings.find((o) => o.key === key)) == null ? void 0 : _a.command;
  1837. }
  1838. subscribe(cb) {
  1839. this.listener.push(cb);
  1840. return () => {
  1841. this.listener = this.listener.filter((fn) => fn !== cb);
  1842. };
  1843. }
  1844. notify() {
  1845. this.listener.forEach((fn) => fn());
  1846. }
  1847. }
  1848.  
  1849. function normalizeKeyEvent(e) {
  1850. const SPECIAL_KEY_EN = "`-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?".split("");
  1851. const SPECIAL_KEY_ZH = "\xB7-=\u3010\u3011\u3001\uFF1B\u2018\uFF0C\u3002/\uFF5E\uFF01@#\xA5%\u2026&*\uFF08\uFF09\u2014+\u300C\u300D\uFF5C\uFF1A\u201C\u300A\u300B\uFF1F".split("");
  1852. let key = e.key;
  1853. if (e.code === "Space") {
  1854. key = "Space";
  1855. }
  1856. if (/^[a-z]$/.test(key)) {
  1857. key = key.toUpperCase();
  1858. } else if (SPECIAL_KEY_ZH.includes(key)) {
  1859. key = SPECIAL_KEY_EN[SPECIAL_KEY_ZH.indexOf(key)];
  1860. }
  1861. let keyArr = [];
  1862. e.ctrlKey && keyArr.push("ctrl");
  1863. e.metaKey && keyArr.push("meta");
  1864. e.shiftKey && !SPECIAL_KEY_EN.includes(key) && keyArr.push("shift");
  1865. e.altKey && keyArr.push("alt");
  1866. if (!/Control|Meta|Shift|Alt/i.test(key))
  1867. keyArr.push(key);
  1868. keyArr = [...new Set(keyArr)];
  1869. return keyArr.join(" ");
  1870. }
  1871.  
  1872. const _Shortcuts = class {
  1873. constructor(player) {
  1874. this.player = player;
  1875. this.handleKeyEvent = (e) => {
  1876. var _a;
  1877. if (/input|textarea|select/i.test((_a = document.activeElement) == null ? void 0 : _a.tagName))
  1878. return;
  1879. const key = normalizeKeyEvent(e);
  1880. const command = _Shortcuts.keyBindings.getCommand(key);
  1881. if (command) {
  1882. e.preventDefault();
  1883. this.invoke(command, e);
  1884. }
  1885. };
  1886. window.addEventListener("keydown", this.handleKeyEvent);
  1887. window.addEventListener("keyup", this.handleKeyEvent);
  1888. }
  1889. static registerCommand(command, keydown, keyup) {
  1890. this.commands.push({ command, keydown, keyup });
  1891. }
  1892. invoke(command, e) {
  1893. var _a;
  1894. const cmd = _Shortcuts.commands.find((cmd2) => cmd2.command === command);
  1895. if (cmd) {
  1896. const type = e.type === "keydown" ? "keydown" : "keyup";
  1897. (_a = cmd[type]) == null ? void 0 : _a.call(this.player, e);
  1898. }
  1899. }
  1900. };
  1901. let Shortcuts = _Shortcuts;
  1902. Shortcuts.Commands = Commands$1;
  1903. Shortcuts.keyBindings = new KeyBindings();
  1904. Shortcuts.commands = [];
  1905. customElements.define(
  1906. "k-shortcuts-tip",
  1907. class extends HTMLElement {
  1908. constructor() {
  1909. super();
  1910. this.node = document.createElement("span");
  1911. const shadowRoot = this.attachShadow({ mode: "open" });
  1912. shadowRoot.appendChild(this.node);
  1913. this.unsubscribe = Shortcuts.keyBindings.subscribe(() => {
  1914. this.renderKey();
  1915. });
  1916. this.renderKey();
  1917. }
  1918. renderKey() {
  1919. const command = this.getAttribute("command");
  1920. const kb = Shortcuts.keyBindings.getKeyBinding(command);
  1921. if (kb) {
  1922. this.node.textContent = renderKey(kb.key);
  1923. }
  1924. }
  1925. disconnectedCallback() {
  1926. this.unsubscribe();
  1927. }
  1928. }
  1929. );
  1930. function setup$1(player) {
  1931. new Shortcuts(player);
  1932. }
  1933.  
  1934. const SHIFT_KEY = '~!@#$%^&*()_+{}|:"<>?\uFF5E\uFF01@#\xA5%\u2026&*\uFF08\uFF09\u2014\u2014+\u300C\u300D\uFF5C\uFF1A\u201C\u300A\u300B\uFF1F';
  1935. function keybind(keys, cb) {
  1936. const isMac = /macintosh|mac os x/i.test(navigator.userAgent);
  1937. keys = keys.filter((key) => !key.includes(isMac ? "ctrl" : "meta"));
  1938. $(window).on("keydown", (e) => {
  1939. var _a;
  1940. if (((_a = document.activeElement) == null ? void 0 : _a.tagName) === "INPUT")
  1941. return;
  1942. let keyArr = [];
  1943. e.ctrlKey && keyArr.push("ctrl");
  1944. e.metaKey && keyArr.push("meta");
  1945. e.shiftKey && !SHIFT_KEY.includes(e.key) && keyArr.push("shift");
  1946. e.altKey && keyArr.push("alt");
  1947. if (!["Control", "Meta", "Shift", "Alt"].includes(e.key)) {
  1948. keyArr.push(e.key);
  1949. }
  1950. keyArr = [...new Set(keyArr)];
  1951. const key = keyArr.join("+");
  1952. if (keys.includes(key)) {
  1953. cb(e.originalEvent, key);
  1954. }
  1955. });
  1956. }
  1957.  
  1958. var css$c = ".k-modal {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 2147483647;\n text-align: left;\n animation: fadeIn 0.3s ease forwards;\n color: rgba(0, 0, 0, 0.85);\n font-family: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;\n}\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.k-modal * {\n color: inherit;\n}\n.k-modal-mask {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background: rgba(0, 0, 0, 0.45);\n cursor: pointer;\n}\n.k-modal-wrap {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n overflow: auto;\n text-align: center;\n user-select: none;\n}\n.k-modal-wrap::before {\n content: \"\";\n display: inline-block;\n width: 0;\n height: 100%;\n vertical-align: middle;\n}\n.k-modal-container {\n margin: 20px 0;\n display: inline-block;\n vertical-align: middle;\n text-align: left;\n position: relative;\n width: 520px;\n min-height: 100px;\n background: white;\n border-radius: 2px;\n user-select: text;\n}\n.k-modal-header {\n font-size: 16px;\n border-bottom: 1px solid #f1f1f1;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.k-modal-header-title {\n padding: 16px;\n font-weight: 500;\n}\n.k-modal-close {\n cursor: pointer;\n height: 55px;\n width: 55px;\n position: absolute;\n right: 0;\n top: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n user-select: none;\n}\n.k-modal-close * {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.15s ease;\n}\n.k-modal-close:hover * {\n color: rgba(0, 0, 0, 0.85);\n}\n.k-modal-body {\n padding: 16px;\n font-size: 14px;\n}\n.k-modal-footer {\n padding: 10px 16px;\n font-size: 14px;\n border-top: 1px solid #f1f1f1;\n display: flex;\n justify-content: flex-end;\n}\n.k-modal-btn {\n user-select: none;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 32px;\n line-height: 32px;\n border-radius: 2px;\n border: 1px solid #1890ff;\n background: #1890ff;\n color: white;\n min-width: 64px;\n cursor: pointer;\n padding: 0 8px;\n}";
  1959. injectCss(css$c,{});
  1960.  
  1961. function modal(opts) {
  1962. const { title, content, onClose, onOk, afterClose, okText = "\u786E \u5B9A" } = opts;
  1963. const store = {
  1964. width: document.body.style.width,
  1965. overflow: document.body.style.overflow
  1966. };
  1967. const ID = Math.random().toString(16).slice(2);
  1968. $(`
  1969. <div class="k-modal ${opts.className || ""}" role="dialog" id="${ID}">
  1970. <div class="k-modal-mask"></div>
  1971. <div class="k-modal-wrap">
  1972. <div class="k-modal-container" ${opts.width ? `style="width:${opts.width}px;"` : ""}>
  1973. <div class="k-modal-header">
  1974. <div class="k-modal-header-title"></div>
  1975. <a class="k-modal-close">
  1976. <svg viewBox="64 64 896 896" focusable="false" data-icon="close" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"></path></svg>
  1977. </a>
  1978. </div>
  1979. <div class="k-modal-body">
  1980. </div>
  1981. </div>
  1982. </div>
  1983. </div>`).appendTo("body");
  1984. $("body").css({
  1985. width: `calc(100% - ${window.innerWidth - document.body.clientWidth}px)`,
  1986. overflow: "hidden"
  1987. });
  1988. if (title) {
  1989. $(`#${ID} .k-modal-header-title`).append(title);
  1990. } else
  1991. $(`#${ID} .k-modal-header-title`).remove();
  1992. $(`#${ID} .k-modal-body`).append(content);
  1993. $(`#${ID} .k-modal-close`).on("click", () => {
  1994. handleClose();
  1995. });
  1996. $(`#${ID} .k-modal-container`).on("click", (e) => {
  1997. e.stopPropagation();
  1998. });
  1999. $(`#${ID} .k-modal-wrap`).on("click", () => {
  2000. handleClose();
  2001. });
  2002. function reset() {
  2003. $(`#${ID}`).remove();
  2004. $("body").css(store);
  2005. window.removeEventListener("keydown", fn, { capture: true });
  2006. afterClose == null ? void 0 : afterClose();
  2007. }
  2008. function handleClose() {
  2009. onClose == null ? void 0 : onClose();
  2010. reset();
  2011. }
  2012. function handleOk() {
  2013. onOk == null ? void 0 : onOk();
  2014. reset();
  2015. }
  2016. function fn(e) {
  2017. if (["Escape"].includes(e.key)) {
  2018. e.stopPropagation();
  2019. handleClose();
  2020. }
  2021. }
  2022. window.addEventListener("keydown", fn, { capture: true });
  2023. if (onOk) {
  2024. $(`#${ID} .k-modal-container`).append(`
  2025. <div class="k-modal-footer">
  2026. <button class="k-modal-btn k-modal-ok">${okText}</button>
  2027. </div>
  2028. `);
  2029. $(`#${ID} .k-modal-ok`).on("click", () => {
  2030. handleOk();
  2031. });
  2032. }
  2033. }
  2034.  
  2035. var css$b = ".k-alert {\n margin-bottom: 16px;\n box-sizing: border-box;\n color: black;\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: relative;\n display: flex;\n align-items: center;\n padding: 8px 15px;\n word-wrap: break-word;\n border-radius: 2px;\n}\n.k-alert-icon {\n margin-right: 8px;\n display: block;\n color: var(--k-player-primary-color);\n}\n.k-alert-content {\n flex: 1;\n min-width: 0;\n}\n.k-alert-info {\n background-color: var(--k-player-primary-color-highlight);\n border: 1px solid var(--k-player-primary-color);\n}";
  2036. injectCss(css$b,{});
  2037.  
  2038. function alert(html) {
  2039. return `<div class="k-alert k-alert-info">
  2040. <svg class="k-alert-icon" viewBox="64 64 896 896" focusable="false" data-icon="info-circle" width="1em" height="1em" fill="currentColor" aria-hidden="true">
  2041. <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"></path>
  2042. </svg>
  2043. <div class="k-alert-content">
  2044. <div class="k-alert-message">${html}</div>
  2045. </div>
  2046. </div>`;
  2047. }
  2048.  
  2049. var css$a = ".k-tab {\n flex: 1;\n white-space: nowrap;\n cursor: pointer;\n text-align: center;\n padding: 8px 0;\n}\n.k-tabs {\n display: flex;\n position: relative;\n border-bottom: 1px solid rgba(255, 255, 255, 0.2);\n}\n.k-tabs-wrapper {\n text-align: left;\n overflow: hidden;\n}\n.k-tabs-wrapper * {\n box-sizing: border-box;\n}\n.k-tab-indicator {\n position: absolute;\n width: 0;\n height: 1px;\n left: 0;\n bottom: -1px;\n background-color: var(--k-player-primary-color);\n transition: all 0.3s;\n}\n.k-tabs-panes {\n display: flex;\n flex-wrap: nowrap;\n transition: all 0.3s;\n}\n.k-tab-pane {\n flex: 0 0 100%;\n width: 100%;\n padding: 8px;\n position: relative;\n}";
  2050. injectCss(css$a,{});
  2051.  
  2052. function tabs(opts) {
  2053. const tabsHTML = [];
  2054. const tabsContentHTML = [];
  2055. opts.forEach((tab, idx) => {
  2056. const tabHTML = `<div class="k-tab" data-idx="${idx}">${tab.name}</div>`;
  2057. const $contentHTML = $(
  2058. `<div class="k-tab-pane ${tab.className || ""}"></div>`
  2059. );
  2060. $contentHTML.append(
  2061. typeof tab.content === "function" ? tab.content() : tab.content
  2062. );
  2063. tabsHTML.push(tabHTML);
  2064. tabsContentHTML.push($contentHTML);
  2065. });
  2066. const $root = $(`<div class="k-tabs-wrapper">
  2067. <div class="k-tabs">
  2068. ${tabsHTML.join("")}
  2069. <div class="k-tab-indicator"></div>
  2070. </div>
  2071. <div class="k-tabs-panes"></div>
  2072. </div>`);
  2073. $root.find(".k-tabs-panes").append(...tabsContentHTML);
  2074. const $indicator = $root.find(".k-tab-indicator");
  2075. $root.find(".k-tab").on("click", (e) => {
  2076. $root.find(".k-tab").removeClass("active");
  2077. const $tab = $(e.target).addClass("active");
  2078. const idx = parseInt($tab.attr("data-idx"));
  2079. $root.find(".k-tabs-panes").css("transform", `translateX(-${idx * 100}%)`);
  2080. function updateIndictor() {
  2081. const width = $tab.outerWidth();
  2082. if (width)
  2083. $indicator.css({ width, left: idx * width });
  2084. else
  2085. requestAnimationFrame(updateIndictor);
  2086. }
  2087. updateIndictor();
  2088. });
  2089. $root.find(".k-tab:first").trigger("click");
  2090. return $root;
  2091. }
  2092.  
  2093. var css$9 = ".script-info .k-modal-body {\n padding: 0;\n}\n.script-info .k-modal-body * {\n box-sizing: border-box;\n font-size: 14px;\n line-height: normal;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;\n}\n.script-info .k-modal-body table {\n width: 100%;\n border-spacing: 0;\n border-collapse: separate;\n}\n.script-info .k-modal-body tbody tr td:first-child {\n white-space: nowrap;\n width: 85px;\n}\n.script-info .k-modal-body th,\n.script-info .k-modal-body td {\n padding: 8px;\n border-bottom: 1px solid #f1f1f1;\n word-wrap: break-word;\n word-break: break-all;\n}\n.script-info .k-modal-body .info-title {\n font-weight: 600;\n padding-top: 24px;\n}\n.script-info .k-modal-body a {\n color: var(--k-player-primary-color);\n margin: -4px 0 -4px -8px;\n padding: 4px 8px;\n border-radius: 4px;\n text-decoration: none;\n cursor: pointer;\n display: inline-block;\n white-space: nowrap;\n}\n.script-info .k-modal-body a:hover {\n color: var(--k-player-primary-color);\n text-decoration: underline;\n background-color: var(--k-player-primary-color-highlight);\n}\n.script-info .k-modal-body .k-tabs {\n border-bottom: 1px solid #f1f1f1;\n}\n.script-info .k-modal-body .shortcuts {\n padding: 8px;\n}\n.script-info .k-modal-body .shortcuts-wrapper {\n height: 400px;\n padding: 0;\n overflow-y: scroll;\n position: relative;\n}\n.script-info .k-modal-body .shortcuts-wrapper::-webkit-scrollbar {\n width: 8px;\n}\n.script-info .k-modal-body .shortcuts-wrapper::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n}\n.script-info .k-modal-body .shortcuts-wrapper::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.45);\n}\n.script-info .k-modal-body .shortcuts th {\n position: sticky;\n background-color: white;\n top: 0;\n z-index: 1;\n}\n.script-info .k-modal-body .shortcuts .shortcuts-input-wrapper {\n display: flex;\n align-items: center;\n}\n.script-info .k-modal-body .shortcuts .k-input {\n flex: 1;\n padding: 4px 8px;\n border-radius: 4px;\n}\n.script-info .k-modal-body .shortcuts a {\n margin-left: 8px;\n}\n.script-info .k-modal-body .shortcuts .k-font-kbd {\n font-family: consolas, monospace;\n}\n.script-info .k-modal-body .feature {\n margin-bottom: 8px;\n}\n.script-info .k-modal-body .feature-title {\n font-weight: 500;\n}\n.script-info .k-modal-body .feature-description {\n color: #666;\n}";
  2094. injectCss(css$9,{});
  2095.  
  2096. function genIssueURL({ title, body }) {
  2097. const url = new URL(
  2098. `https://github.com/IronKinoko/agefans-enhance/issues/new`
  2099. );
  2100. url.searchParams.set("title", title);
  2101. url.searchParams.set("body", body);
  2102. return url.toString();
  2103. }
  2104. const scriptInfo = (video) => {
  2105. const githubIssueURL = genIssueURL({
  2106. title: "\u{1F41B}[Bug]",
  2107. body: issueBody(video == null ? void 0 : video.src)
  2108. });
  2109. return tabs([
  2110. {
  2111. name: "\u811A\u672C\u4FE1\u606F",
  2112. content: `
  2113. <table>
  2114. <tbody>
  2115. <tr><td>\u811A\u672C\u7248\u672C</td><td>${"1.45.0"}</td></tr>
  2116. <tr>
  2117. <td>\u811A\u672C\u4F5C\u8005</td>
  2118. <td><a target="_blank" rel="noreferrer" href="https://github.com/IronKinoko">IronKinoko</a></td>
  2119. </tr>
  2120. <tr>
  2121. <td>\u811A\u672C\u6E90\u7801</td>
  2122. <td>
  2123. <a target="_blank" rel="noreferrer" href="https://github.com/IronKinoko/agefans-enhance">GitHub</a>
  2124. <a target="_blank" rel="noreferrer" href="https://github.com/IronKinoko/agefans-enhance/releases">\u66F4\u65B0\u8BB0\u5F55</a>
  2125. </td>
  2126. </tr>
  2127. <tr>
  2128. <td>\u62A5\u9519/\u610F\u89C1</td>
  2129. <td>
  2130. <a target="_blank" rel="noreferrer" href="${githubIssueURL}">GitHub Issues</a>
  2131. <a target="_blank" rel="noreferrer" href="https://gf.qytechs.cn/scripts/424023/feedback">Greasy Fork镜像 \u53CD\u9988</a>
  2132. </td>
  2133. </tr>
  2134. <tr>
  2135. <td>\u7279\u522B\u9E23\u8C22</td>
  2136. <td>
  2137. <a target="_blank" rel="noreferrer" href="https://www.dandanplay.com/">\u5F39\u5F39play</a>\u63D0\u4F9B\u5F39\u5E55\u670D\u52A1
  2138. </td>
  2139. </tr>
  2140. ${video ? `<tr><td colspan="2" class="info-title">\u89C6\u9891\u4FE1\u606F</td></tr>
  2141. <tr><td>\u89C6\u9891\u94FE\u63A5</td><td>${video.src}</td></tr>
  2142. <tr><td>\u89C6\u9891\u4FE1\u606F</td><td>${video.videoWidth} x ${video.videoHeight}</td></tr>` : ""}
  2143. </tbody>
  2144. </table>
  2145. `
  2146. },
  2147. {
  2148. name: "\u5FEB\u6377\u952E",
  2149. className: "shortcuts-wrapper",
  2150. content: () => {
  2151. const $root = $(`
  2152. <div class="shortcuts">
  2153. ${alert("\u81EA\u5B9A\u4E49\u6309\u952E\u7ACB\u5373\u751F\u6548\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u8F93\u5165\u6CD5")}
  2154.  
  2155. <table>
  2156. <thead>
  2157. <tr>
  2158. <th>\u52A8\u4F5C</th>
  2159. <th>\u9ED8\u8BA4\u6309\u952E</th>
  2160. <th>\u81EA\u5B9A\u4E49</th>
  2161. </tr>
  2162. </thead>
  2163. <colgroup>
  2164. <col style="width:130px"></col>
  2165. <col style="width:130px"></col>
  2166. <col></col>
  2167. </colgroup>
  2168. <tbody></tbody>
  2169. </table>
  2170. </div>
  2171. `);
  2172. const keyBindings = Shortcuts.keyBindings.getKeyBindings();
  2173. keyBindings.forEach((kb) => {
  2174. const $tr = $(`
  2175. <tr>
  2176. <td>${kb.description}</td>
  2177. <td><span class="k-font-kbd">${renderKey(kb.originKey)}</span></td>
  2178. <td>
  2179. <div class="shortcuts-input-wrapper">
  2180. <input type="text" class="k-input k-font-kbd"><a>\u5220\u9664</a>
  2181. </div>
  2182. </td>
  2183. </tr>
  2184. `);
  2185. if (kb.editable !== false) {
  2186. $tr.find("input").val(renderKey(kb.customKey)).on("keydown", function(e) {
  2187. e.stopPropagation();
  2188. e.preventDefault();
  2189. const key = normalizeKeyEvent(e.originalEvent);
  2190. this.value = renderKey(key);
  2191. Shortcuts.keyBindings.setKeyBinding(kb.command, key);
  2192. });
  2193. $tr.find("a").on("click", function(e) {
  2194. $tr.find("input").val("");
  2195. Shortcuts.keyBindings.setKeyBinding(kb.command, "");
  2196. });
  2197. } else {
  2198. $tr.find("td").eq(2).html("\u4E0D\u652F\u6301\u81EA\u5B9A\u4E49");
  2199. }
  2200. $root.find("tbody").append($tr);
  2201. });
  2202. return $root;
  2203. }
  2204. },
  2205. {
  2206. name: "\u5B9E\u9A8C\u6027\u529F\u80FD",
  2207. className: "feature-wrapper",
  2208. content: () => `
  2209. <div>
  2210. ${alert("\u5B9E\u9A8C\u6027\u529F\u80FD\u53EF\u80FD\u5B58\u5728\u95EE\u9898\uFF0C\u4EC5\u4F9B\u5C1D\u8BD5")}
  2211.  
  2212. <ul class="features">
  2213. <li class="feature">
  2214. <div class="feature-title">\u64AD\u653E\u672C\u5730\u89C6\u9891</div>
  2215. <div class="feature-desc">\u5C06\u672C\u5730\u89C6\u9891\u6587\u4EF6\u62D6\u5165\u5230\u89C6\u9891\u533A\u57DF\uFF0C\u5E38\u7528\u4E8E\u64AD\u653E\u672C\u5730\u66F4\u9AD8\u6E05\u7684\u89C6\u9891</div>
  2216. </li>
  2217. <li class="feature">
  2218. <div class="feature-title">\u652F\u6301\u5BFC\u5165 <a target="_blank" rel="noreferrer" href="https://github.com/xmcp/pakku.js">Pakku\u54D4\u54E9\u54D4\u54E9\u5F39\u5E55\u8FC7\u6EE4\u5668</a>\u751F\u6210\u7684\u5F39\u5E55\u6587\u4EF6</div>
  2219. <div class="feature-desc">\u5C06 Pakku \u751F\u6210\u7684XML\u5F39\u5E55\u6587\u4EF6\u62D6\u5165\u5230\u89C6\u9891\u533A\u57DF\uFF0C\u4F1A\u8986\u76D6\u5185\u7F6E\u7684\u5F39\u5E55\u6570\u636E</div>
  2220. </li>
  2221. <ul>
  2222. </div>
  2223. `
  2224. }
  2225. ]);
  2226. };
  2227. const issueBody = (src = "") => `# \u6587\u5B57\u63CF\u8FF0
  2228. <!-- \u5982\u679C\u6709\u9700\u8981\u989D\u5916\u63CF\u8FF0\uFF0C\u6216\u8005\u63D0\u610F\u89C1\u53EF\u4EE5\u5199\u5728\u4E0B\u9762\u7A7A\u767D\u5904 -->
  2229.  
  2230.  
  2231. # \u7F51\u5740\u94FE\u63A5
  2232. ${window.location.href}
  2233.  
  2234. # \u89C6\u9891\u94FE\u63A5
  2235. ${src}
  2236.  
  2237. # \u73AF\u5883
  2238. userAgent: ${navigator.userAgent}
  2239. \u811A\u672C\u7248\u672C: ${"1.45.0"}
  2240. `;
  2241.  
  2242. const GlobalKey = "show-help-info";
  2243. function help() {
  2244. if (!document.fullscreenElement) {
  2245. const video = $("#k-player")[0];
  2246. if (parent !== self) {
  2247. parent.postMessage(
  2248. {
  2249. key: GlobalKey,
  2250. video: video ? {
  2251. src: video.currentSrc,
  2252. videoWidth: video.videoWidth,
  2253. videoHeight: video.videoHeight
  2254. } : null
  2255. },
  2256. "*"
  2257. );
  2258. return;
  2259. }
  2260. showHelp(video);
  2261. }
  2262. }
  2263. function showHelp(video) {
  2264. if ($(".script-info").length)
  2265. return;
  2266. modal({
  2267. className: "script-info",
  2268. title: "agefans Enhance",
  2269. content: scriptInfo(video)
  2270. });
  2271. }
  2272. keybind(["?", "\uFF1F"], help);
  2273. window.addEventListener("message", (e) => {
  2274. var _a;
  2275. if (((_a = e.data) == null ? void 0 : _a.key) !== GlobalKey)
  2276. return;
  2277. showHelp(e.data.video);
  2278. });
  2279.  
  2280. function seekTime(duration) {
  2281. return function() {
  2282. this.currentTime = clamp(this.currentTime + duration, 0, this.plyr.duration);
  2283. this.message.info(`\u6B65${duration < 0 ? "\u9000" : "\u8FDB"}${Math.abs(duration)}s`);
  2284. };
  2285. }
  2286. Shortcuts.registerCommand(Commands$1.forward5, seekTime(5));
  2287. Shortcuts.registerCommand(Commands$1.backward5, seekTime(-5));
  2288. Shortcuts.registerCommand(Commands$1.forward30, seekTime(30));
  2289. Shortcuts.registerCommand(Commands$1.backward30, seekTime(-30));
  2290. Shortcuts.registerCommand(Commands$1.forward60, seekTime(60));
  2291. Shortcuts.registerCommand(Commands$1.backward60, seekTime(-60));
  2292. Shortcuts.registerCommand(Commands$1.forward90, seekTime(90));
  2293. Shortcuts.registerCommand(Commands$1.backward90, seekTime(-90));
  2294. Shortcuts.registerCommand(Commands$1.forwardCustom, function(e) {
  2295. seekTime(+this.localConfig.customSeekTime).call(this, e);
  2296. });
  2297. Shortcuts.registerCommand(Commands$1.backwardCustom, function(e) {
  2298. seekTime(-this.localConfig.customSeekTime).call(this, e);
  2299. });
  2300. Shortcuts.registerCommand(
  2301. Commands$1.recordCustomSeekTime,
  2302. (() => {
  2303. let start = null;
  2304. return function() {
  2305. if (start === null) {
  2306. start = this.currentTime;
  2307. this.message.info("\u5F00\u59CB\u8BB0\u5F55\u81EA\u5B9A\u4E49\u8DF3\u8F6C\u65F6\u95F4");
  2308. } else {
  2309. this.configSaveToLocal(
  2310. "customSeekTime",
  2311. Math.abs(Math.round(this.currentTime - start))
  2312. );
  2313. this.message.info(
  2314. `\u8BB0\u5F55\u6210\u529F\uFF0C\u81EA\u5B9A\u4E49\u8DF3\u8F6C\u65F6\u95F4\u4E3A${this.localConfig.customSeekTime}s`
  2315. );
  2316. start = null;
  2317. }
  2318. };
  2319. })()
  2320. );
  2321. Shortcuts.registerCommand(Commands$1.prev, function() {
  2322. this.trigger("prev");
  2323. });
  2324. Shortcuts.registerCommand(Commands$1.next, function() {
  2325. this.trigger("next");
  2326. });
  2327. Shortcuts.registerCommand(Commands$1.toggleWidescreen, function() {
  2328. if (this.plyr.fullscreen.active)
  2329. return;
  2330. this.toggleWidescreen();
  2331. });
  2332. Shortcuts.registerCommand(Commands$1.togglePlay, function() {
  2333. this.plyr.togglePlay();
  2334. });
  2335. Shortcuts.registerCommand(Commands$1.Escape, function() {
  2336. if (this.plyr.fullscreen.active || !this.isWideScreen)
  2337. return;
  2338. this.toggleWidescreen(false);
  2339. });
  2340. Shortcuts.registerCommand(
  2341. Commands$1.restoreSpeed,
  2342. (() => {
  2343. let prevSpeed = 1;
  2344. return function() {
  2345. if (this.speed !== 1) {
  2346. prevSpeed = this.speed;
  2347. this.speed = 1;
  2348. } else {
  2349. if (this.speed !== prevSpeed) {
  2350. this.speed = prevSpeed;
  2351. }
  2352. }
  2353. };
  2354. })()
  2355. );
  2356. function changeSpeed(diff) {
  2357. return function() {
  2358. let idx = this.speedList.indexOf(this.speed);
  2359. const newIdx = clamp(idx + diff, 0, this.speedList.length - 1);
  2360. if (newIdx === idx)
  2361. return;
  2362. const speed = this.speedList[newIdx];
  2363. this.speed = speed;
  2364. };
  2365. }
  2366. Shortcuts.registerCommand(Commands$1.increaseSpeed, changeSpeed(1));
  2367. Shortcuts.registerCommand(Commands$1.decreaseSpeed, changeSpeed(-1));
  2368. function createTemporaryIncreaseSpeed() {
  2369. let prevSpeed = 1;
  2370. let isIncreasingSpeed = false;
  2371. return [
  2372. function keydown(e) {
  2373. if (!e.repeat || isIncreasingSpeed)
  2374. return;
  2375. isIncreasingSpeed = true;
  2376. prevSpeed = this.speed;
  2377. this.plyr.speed = 3;
  2378. this.message.info("\u500D\u901F\u64AD\u653E\u4E2D", 500);
  2379. },
  2380. function keyup(e) {
  2381. if (!isIncreasingSpeed)
  2382. return;
  2383. isIncreasingSpeed = false;
  2384. this.plyr.speed = prevSpeed;
  2385. }
  2386. ];
  2387. }
  2388. Shortcuts.registerCommand(
  2389. Commands$1.temporaryIncreaseSpeed,
  2390. ...createTemporaryIncreaseSpeed()
  2391. );
  2392. Shortcuts.registerCommand(Commands$1.togglePIP, function() {
  2393. this.plyr.pip = !this.plyr.pip;
  2394. });
  2395. Shortcuts.registerCommand(Commands$1.internal, function() {
  2396. });
  2397. function changeFrame(diff) {
  2398. let fps = 30;
  2399. let isSuspend = false;
  2400. return function() {
  2401. this.plyr.pause();
  2402. this.currentTime = clamp(
  2403. this.currentTime + diff / fps,
  2404. 0,
  2405. this.plyr.duration
  2406. );
  2407. if (this.localConfig.autoplay) {
  2408. if (!isSuspend) {
  2409. this.plyr.play = ((play) => {
  2410. isSuspend = true;
  2411. return () => {
  2412. isSuspend = false;
  2413. this.plyr.play = play;
  2414. };
  2415. })(this.plyr.play);
  2416. }
  2417. }
  2418. this.message.destroy();
  2419. this.message.info(`${diff > 0 ? "\u4E0B" : "\u4E0A"}\u4E00\u5E27`);
  2420. };
  2421. }
  2422. Shortcuts.registerCommand(Commands$1.prevFrame, changeFrame(-1));
  2423. Shortcuts.registerCommand(Commands$1.nextFrame, changeFrame(1));
  2424. Shortcuts.registerCommand(Commands$1.toggleFullscreen, function() {
  2425. this.plyr.fullscreen.toggle();
  2426. });
  2427. Shortcuts.registerCommand(Commands$1.increaseVolume, function() {
  2428. this.plyr.increaseVolume(0.05);
  2429. this.message.info(`\u97F3\u91CF${Math.round(this.plyr.volume * 100)}%`);
  2430. });
  2431. Shortcuts.registerCommand(Commands$1.decreaseVolume, function() {
  2432. this.plyr.decreaseVolume(0.05);
  2433. this.message.info(`\u97F3\u91CF${Math.round(this.plyr.volume * 100)}%`);
  2434. });
  2435. Shortcuts.registerCommand(Commands$1.toggleMute, function() {
  2436. this.plyr.muted = !this.plyr.muted;
  2437. this.message.info(this.plyr.muted ? "\u9759\u97F3" : "\u53D6\u6D88\u9759\u97F3");
  2438. });
  2439.  
  2440. const icons = `
  2441. <svg
  2442. xmlns="http://www.w3.org/2000/svg"
  2443. style="position: absolute; width: 0px; height: 0px; overflow: hidden"
  2444. aria-hidden="true"
  2445. >
  2446. <symbol id="next" viewBox="0 0 22 22">
  2447. <path
  2448. d="M16 5a1 1 0 00-1 1v4.615a1.431 1.431 0 00-.615-.829L7.21 5.23A1.439 1.439 0 005 6.445v9.11a1.44 1.44 0 002.21 1.215l7.175-4.555a1.436 1.436 0 00.616-.828V16a1 1 0 002 0V6C17 5.448 16.552 5 16 5z"
  2449. ></path>
  2450. </symbol>
  2451.  
  2452. <symbol
  2453. id="widescreen"
  2454. viewBox="0 0 88 88"
  2455. preserveAspectRatio="xMidYMid meet"
  2456. >
  2457. <defs>
  2458. <clipPath id="__lottie_element_127">
  2459. <rect width="88" height="88" x="0" y="0"></rect>
  2460. </clipPath>
  2461. </defs>
  2462. <g clip-path="url(#__lottie_element_127)">
  2463. <g
  2464. transform="matrix(1,0,0,1,44,44)"
  2465. opacity="1"
  2466. style="display: block"
  2467. >
  2468. <g opacity="1" transform="matrix(1,0,0,1,0,0)">
  2469. <path
  2470. fill="rgb(255,255,255)"
  2471. fill-opacity="1"
  2472. d=" M-14,-20 C-14,-20 -26,-20 -26,-20 C-27.049999237060547,-20 -27.920000076293945,-19.18000030517578 -27.989999771118164,-18.149999618530273 C-27.989999771118164,-18.149999618530273 -28,-18 -28,-18 C-28,-18 -28,-6 -28,-6 C-28,-4.949999809265137 -27.18000030517578,-4.079999923706055 -26.149999618530273,-4.010000228881836 C-26.149999618530273,-4.010000228881836 -26,-4 -26,-4 C-26,-4 -22,-4 -22,-4 C-20.950000762939453,-4 -20.079999923706055,-4.820000171661377 -20.010000228881836,-5.849999904632568 C-20.010000228881836,-5.849999904632568 -20,-6 -20,-6 C-20,-6 -20,-12 -20,-12 C-20,-12 -14,-12 -14,-12 C-12.949999809265137,-12 -12.079999923706055,-12.819999694824219 -12.010000228881836,-13.850000381469727 C-12.010000228881836,-13.850000381469727 -12,-14 -12,-14 C-12,-14 -12,-18 -12,-18 C-12,-19.049999237060547 -12.819999694824219,-19.920000076293945 -13.850000381469727,-19.989999771118164 C-13.850000381469727,-19.989999771118164 -14,-20 -14,-20z M26,-20 C26,-20 14,-20 14,-20 C12.949999809265137,-20 12.079999923706055,-19.18000030517578 12.010000228881836,-18.149999618530273 C12.010000228881836,-18.149999618530273 12,-18 12,-18 C12,-18 12,-14 12,-14 C12,-12.949999809265137 12.819999694824219,-12.079999923706055 13.850000381469727,-12.010000228881836 C13.850000381469727,-12.010000228881836 14,-12 14,-12 C14,-12 20,-12 20,-12 C20,-12 20,-6 20,-6 C20,-4.949999809265137 20.81999969482422,-4.079999923706055 21.850000381469727,-4.010000228881836 C21.850000381469727,-4.010000228881836 22,-4 22,-4 C22,-4 26,-4 26,-4 C27.049999237060547,-4 27.920000076293945,-4.820000171661377 27.989999771118164,-5.849999904632568 C27.989999771118164,-5.849999904632568 28,-6 28,-6 C28,-6 28,-18 28,-18 C28,-19.049999237060547 27.18000030517578,-19.920000076293945 26.149999618530273,-19.989999771118164 C26.149999618530273,-19.989999771118164 26,-20 26,-20z M-22,4 C-22,4 -26,4 -26,4 C-27.049999237060547,4 -27.920000076293945,4.820000171661377 -27.989999771118164,5.849999904632568 C-27.989999771118164,5.849999904632568 -28,6 -28,6 C-28,6 -28,18 -28,18 C-28,19.049999237060547 -27.18000030517578,19.920000076293945 -26.149999618530273,19.989999771118164 C-26.149999618530273,19.989999771118164 -26,20 -26,20 C-26,20 -14,20 -14,20 C-12.949999809265137,20 -12.079999923706055,19.18000030517578 -12.010000228881836,18.149999618530273 C-12.010000228881836,18.149999618530273 -12,18 -12,18 C-12,18 -12,14 -12,14 C-12,12.949999809265137 -12.819999694824219,12.079999923706055 -13.850000381469727,12.010000228881836 C-13.850000381469727,12.010000228881836 -14,12 -14,12 C-14,12 -20,12 -20,12 C-20,12 -20,6 -20,6 C-20,4.949999809265137 -20.81999969482422,4.079999923706055 -21.850000381469727,4.010000228881836 C-21.850000381469727,4.010000228881836 -22,4 -22,4z M26,4 C26,4 22,4 22,4 C20.950000762939453,4 20.079999923706055,4.820000171661377 20.010000228881836,5.849999904632568 C20.010000228881836,5.849999904632568 20,6 20,6 C20,6 20,12 20,12 C20,12 14,12 14,12 C12.949999809265137,12 12.079999923706055,12.819999694824219 12.010000228881836,13.850000381469727 C12.010000228881836,13.850000381469727 12,14 12,14 C12,14 12,18 12,18 C12,19.049999237060547 12.819999694824219,19.920000076293945 13.850000381469727,19.989999771118164 C13.850000381469727,19.989999771118164 14,20 14,20 C14,20 26,20 26,20 C27.049999237060547,20 27.920000076293945,19.18000030517578 27.989999771118164,18.149999618530273 C27.989999771118164,18.149999618530273 28,18 28,18 C28,18 28,6 28,6 C28,4.949999809265137 27.18000030517578,4.079999923706055 26.149999618530273,4.010000228881836 C26.149999618530273,4.010000228881836 26,4 26,4z M28,-28 C32.41999816894531,-28 36,-24.420000076293945 36,-20 C36,-20 36,20 36,20 C36,24.420000076293945 32.41999816894531,28 28,28 C28,28 -28,28 -28,28 C-32.41999816894531,28 -36,24.420000076293945 -36,20 C-36,20 -36,-20 -36,-20 C-36,-24.420000076293945 -32.41999816894531,-28 -28,-28 C-28,-28 28,-28 28,-28z"
  2473. ></path>
  2474. </g>
  2475. </g>
  2476. </g>
  2477. </symbol>
  2478.  
  2479. <symbol
  2480. id="widescreen-quit"
  2481. viewBox="0 0 88 88"
  2482. preserveAspectRatio="xMidYMid meet"
  2483. >
  2484. <defs>
  2485. <clipPath id="__lottie_element_132">
  2486. <rect width="88" height="88" x="0" y="0"></rect>
  2487. </clipPath>
  2488. </defs>
  2489. <g clip-path="url(#__lottie_element_132)">
  2490. <g
  2491. transform="matrix(1,0,0,1,44,44)"
  2492. opacity="1"
  2493. style="display: block"
  2494. >
  2495. <g opacity="1" transform="matrix(1,0,0,1,0,0)">
  2496. <path
  2497. fill="rgb(255,255,255)"
  2498. fill-opacity="1"
  2499. d=" M-14,-20 C-14,-20 -18,-20 -18,-20 C-19.049999237060547,-20 -19.920000076293945,-19.18000030517578 -19.989999771118164,-18.149999618530273 C-19.989999771118164,-18.149999618530273 -20,-18 -20,-18 C-20,-18 -20,-12 -20,-12 C-20,-12 -26,-12 -26,-12 C-27.049999237060547,-12 -27.920000076293945,-11.180000305175781 -27.989999771118164,-10.149999618530273 C-27.989999771118164,-10.149999618530273 -28,-10 -28,-10 C-28,-10 -28,-6 -28,-6 C-28,-4.949999809265137 -27.18000030517578,-4.079999923706055 -26.149999618530273,-4.010000228881836 C-26.149999618530273,-4.010000228881836 -26,-4 -26,-4 C-26,-4 -14,-4 -14,-4 C-12.949999809265137,-4 -12.079999923706055,-4.820000171661377 -12.010000228881836,-5.849999904632568 C-12.010000228881836,-5.849999904632568 -12,-6 -12,-6 C-12,-6 -12,-18 -12,-18 C-12,-19.049999237060547 -12.819999694824219,-19.920000076293945 -13.850000381469727,-19.989999771118164 C-13.850000381469727,-19.989999771118164 -14,-20 -14,-20z M18,-20 C18,-20 14,-20 14,-20 C12.949999809265137,-20 12.079999923706055,-19.18000030517578 12.010000228881836,-18.149999618530273 C12.010000228881836,-18.149999618530273 12,-18 12,-18 C12,-18 12,-6 12,-6 C12,-4.949999809265137 12.819999694824219,-4.079999923706055 13.850000381469727,-4.010000228881836 C13.850000381469727,-4.010000228881836 14,-4 14,-4 C14,-4 26,-4 26,-4 C27.049999237060547,-4 27.920000076293945,-4.820000171661377 27.989999771118164,-5.849999904632568 C27.989999771118164,-5.849999904632568 28,-6 28,-6 C28,-6 28,-10 28,-10 C28,-11.050000190734863 27.18000030517578,-11.920000076293945 26.149999618530273,-11.989999771118164 C26.149999618530273,-11.989999771118164 26,-12 26,-12 C26,-12 20,-12 20,-12 C20,-12 20,-18 20,-18 C20,-19.049999237060547 19.18000030517578,-19.920000076293945 18.149999618530273,-19.989999771118164 C18.149999618530273,-19.989999771118164 18,-20 18,-20z M-14,4 C-14,4 -26,4 -26,4 C-27.049999237060547,4 -27.920000076293945,4.820000171661377 -27.989999771118164,5.849999904632568 C-27.989999771118164,5.849999904632568 -28,6 -28,6 C-28,6 -28,10 -28,10 C-28,11.050000190734863 -27.18000030517578,11.920000076293945 -26.149999618530273,11.989999771118164 C-26.149999618530273,11.989999771118164 -26,12 -26,12 C-26,12 -20,12 -20,12 C-20,12 -20,18 -20,18 C-20,19.049999237060547 -19.18000030517578,19.920000076293945 -18.149999618530273,19.989999771118164 C-18.149999618530273,19.989999771118164 -18,20 -18,20 C-18,20 -14,20 -14,20 C-12.949999809265137,20 -12.079999923706055,19.18000030517578 -12.010000228881836,18.149999618530273 C-12.010000228881836,18.149999618530273 -12,18 -12,18 C-12,18 -12,6 -12,6 C-12,4.949999809265137 -12.819999694824219,4.079999923706055 -13.850000381469727,4.010000228881836 C-13.850000381469727,4.010000228881836 -14,4 -14,4z M26,4 C26,4 14,4 14,4 C12.949999809265137,4 12.079999923706055,4.820000171661377 12.010000228881836,5.849999904632568 C12.010000228881836,5.849999904632568 12,6 12,6 C12,6 12,18 12,18 C12,19.049999237060547 12.819999694824219,19.920000076293945 13.850000381469727,19.989999771118164 C13.850000381469727,19.989999771118164 14,20 14,20 C14,20 18,20 18,20 C19.049999237060547,20 19.920000076293945,19.18000030517578 19.989999771118164,18.149999618530273 C19.989999771118164,18.149999618530273 20,18 20,18 C20,18 20,12 20,12 C20,12 26,12 26,12 C27.049999237060547,12 27.920000076293945,11.180000305175781 27.989999771118164,10.149999618530273 C27.989999771118164,10.149999618530273 28,10 28,10 C28,10 28,6 28,6 C28,4.949999809265137 27.18000030517578,4.079999923706055 26.149999618530273,4.010000228881836 C26.149999618530273,4.010000228881836 26,4 26,4z M28,-28 C32.41999816894531,-28 36,-24.420000076293945 36,-20 C36,-20 36,20 36,20 C36,24.420000076293945 32.41999816894531,28 28,28 C28,28 -28,28 -28,28 C-32.41999816894531,28 -36,24.420000076293945 -36,20 C-36,20 -36,-20 -36,-20 C-36,-24.420000076293945 -32.41999816894531,-28 -28,-28 C-28,-28 28,-28 28,-28z"
  2500. ></path>
  2501. </g>
  2502. </g>
  2503. </g>
  2504. </symbol>
  2505.  
  2506. <symbol id="question" width="1em" height="1em" viewBox="0 0 22 22">
  2507. <path fill="currentColor" d="M6 16l-3 3V5a2 2 0 012-2h12a2 2 0 012 2v9a2 2 0 01-2 2H6zm4-4v2h2v-2h-2zm2-.998c0-.34.149-.523.636-.925.022-.018.296-.24.379-.31a5.81 5.81 0 00.173-.152C13.705 9.145 14 8.656 14 8a3 3 0 00-5.698-1.314c-.082.17-.153.41-.213.72A.5.5 0 008.581 8h1.023a.5.5 0 00.476-.348.851.851 0 01.114-.244A.999.999 0 0112 8c0 1.237-2 1.16-2 3h2z"></path>
  2508. </symbol>
  2509. </svg>
  2510.  
  2511. <template id="plyr__next">
  2512. <button
  2513. class="plyr__controls__item plyr__control plyr__next plyr__custom"
  2514. type="button"
  2515. data-plyr="next"
  2516. aria-label="Next"
  2517. >
  2518. <svg focusable="false">
  2519. <use xlink:href="#next"></use>
  2520. </svg>
  2521. <span class="plyr__tooltip">\u4E0B\u4E00\u96C6(<k-shortcuts-tip command="${Shortcuts.Commands.next}"></k-shortcuts-tip>)</span>
  2522. </button>
  2523. </template>
  2524.  
  2525. <template id="plyr__widescreen">
  2526. <button
  2527. class="plyr__controls__item plyr__control plyr__widescreen plyr__custom"
  2528. type="button"
  2529. data-plyr="widescreen"
  2530. aria-label="widescreen"
  2531. >
  2532. <svg class="icon--not-pressed" focusable="false">
  2533. <use xlink:href="#widescreen"></use>
  2534. </svg>
  2535. <svg class="icon--pressed" focusable="false">
  2536. <use xlink:href="#widescreen-quit"></use>
  2537. </svg>
  2538. <span class="label--not-pressed plyr__tooltip">\u7F51\u9875\u5168\u5C4F(<k-shortcuts-tip command="${Shortcuts.Commands.toggleWidescreen}"></k-shortcuts-tip>)</span>
  2539. <span class="label--pressed plyr__tooltip">\u9000\u51FA\u7F51\u9875\u5168\u5C4F(<k-shortcuts-tip command="${Shortcuts.Commands.toggleWidescreen}"></k-shortcuts-tip>)</span>
  2540. </button>
  2541. </template>
  2542.  
  2543. `;
  2544. $("body").append(icons);
  2545. const loadingHTML = `
  2546. <div id="k-player-loading" style="display: none">
  2547. <div class="k-player-center">
  2548. <div class="k-player-tsuma"></div>
  2549. <div class="lds-spinner">
  2550. <div></div>
  2551. <div></div>
  2552. <div></div>
  2553. <div></div>
  2554. <div></div>
  2555. <div></div>
  2556. <div></div>
  2557. <div></div>
  2558. <div></div>
  2559. <div></div>
  2560. <div></div>
  2561. <div></div>
  2562. </div>
  2563. </div>
  2564. </div>
  2565. `;
  2566. const errorHTML = `
  2567. <div id="k-player-error" style="display: none">
  2568. <div class="k-player-center">
  2569. <div class="k-player-error-img"></div>
  2570. <div class="k-player-tsuma"></div>
  2571. <div class="k-player-error-info"></div>
  2572. </div>
  2573. </div>`;
  2574. const pipHTML = `
  2575. <div id="k-player-pip" style="display: none">
  2576. <div class="k-player-center">
  2577. <div class="k-player-tsuma"></div>
  2578. </div>
  2579. </div>`;
  2580. const speedList = [0.5, 0.75, 1, 1.25, 1.5, 2, 2.5, 3, 3.5, 4];
  2581. const speedHTML = popover(
  2582. `
  2583. <div id="k-speed" class="plyr__controls__item k-popover k-text-btn">
  2584. <span id="k-speed-text" class="k-text-btn-text">\u500D\u901F</span>
  2585. </div>
  2586. `,
  2587. `<ul class="k-menu">
  2588. ${[...speedList].reverse().map(
  2589. (speed) => `<li class="k-menu-item k-speed-item" data-speed="${speed}">${speed}x</li>`
  2590. ).join("")}
  2591. </ul>`
  2592. );
  2593. const settingsHTML = popover(
  2594. `
  2595. <button id="k-settings" type="button" class="plyr__control plyr__controls__item">
  2596. <svg><use href="#plyr-settings" /></svg>
  2597. </button>
  2598. `,
  2599. `
  2600. <div class="k-settings-list">
  2601. <label class="k-settings-item">
  2602. <input type="checkbox" name="showSearchActions" />
  2603. \u663E\u793A\u753B\u8D28
  2604. </label>
  2605. <label class="k-settings-item">
  2606. <input type="checkbox" name="autoplay" />
  2607. \u81EA\u52A8\u64AD\u653E
  2608. </label>
  2609. <label class="k-settings-item">
  2610. <input type="checkbox" name="autoNext" />
  2611. \u81EA\u52A8\u4E0B\u4E00\u96C6
  2612. </label>
  2613. <label class="k-settings-item">
  2614. <input type="checkbox" name="showPlayLarge" />
  2615. \u663E\u793A\u64AD\u653E\u56FE\u6807
  2616. </label>
  2617. <label class="k-settings-item">
  2618. <input type="checkbox" name="continuePlay" />
  2619. \u8BB0\u5FC6\u64AD\u653E\u4F4D\u7F6E
  2620. </label>
  2621. <label class="k-settings-item">
  2622. <input type="checkbox" name="showProgress" />
  2623. \u663E\u793A\u5E95\u90E8\u8FDB\u5EA6\u6761
  2624. </label>
  2625. </div>
  2626. `
  2627. );
  2628. const searchActionsHTML = popover(
  2629. `
  2630. <div class="plyr__controls__item k-popover k-text-btn">
  2631. <span class="k-text-btn-text">\u753B\u8D28</span>
  2632. </div>
  2633. `,
  2634. `<ul class="k-menu"></ul>`
  2635. );
  2636. const progressHTML = `
  2637. <div class="k-player-progress">
  2638. <div class="k-player-progress-current"></div>
  2639. <div class="k-player-progress-buffer"></div>
  2640. </div>
  2641. `;
  2642. const i18n = {
  2643. restart: "\u91CD\u64AD",
  2644. rewind: "\u5FEB\u9000 {seektime}s",
  2645. play: "\u64AD\u653E(\u7A7A\u683C\u952E)",
  2646. pause: "\u6682\u505C(\u7A7A\u683C\u952E)",
  2647. fastForward: "\u5FEB\u8FDB {seektime}s",
  2648. seek: "Seek",
  2649. seekLabel: "{currentTime} / {duration}",
  2650. played: "\u5DF2\u64AD\u653E",
  2651. buffered: "\u5DF2\u7F13\u51B2",
  2652. currentTime: "\u5F53\u524D\u65F6\u95F4",
  2653. duration: "\u7247\u957F",
  2654. volume: "\u97F3\u91CF",
  2655. mute: "\u9759\u97F3(M)",
  2656. unmute: "\u53D6\u6D88\u9759\u97F3(M)",
  2657. enableCaptions: "\u663E\u793A\u5B57\u5E55",
  2658. disableCaptions: "\u9690\u85CF\u5B57\u5E55",
  2659. download: "\u4E0B\u8F7D",
  2660. enterFullscreen: "\u8FDB\u5165\u5168\u5C4F(F)",
  2661. exitFullscreen: "\u9000\u51FA\u5168\u5C4F(F)",
  2662. frameTitle: "\u6807\u9898\u540D\u79F0\uFF1A {title}",
  2663. captions: "\u5B57\u5E55",
  2664. settings: "\u8BBE\u7F6E",
  2665. menuBack: "\u8FD4\u56DE\u4E0A\u7EA7",
  2666. speed: "\u500D\u901F",
  2667. normal: "1.0x",
  2668. quality: "\u5206\u8FA8\u7387",
  2669. loop: "\u5FAA\u73AF",
  2670. start: "\u5F00\u59CB",
  2671. end: "\u7ED3\u675F",
  2672. all: "\u5168\u90E8",
  2673. reset: "\u91CD\u7F6E",
  2674. disabled: "\u7981\u7528",
  2675. enabled: "\u542F\u7528",
  2676. advertisement: "\u5E7F\u544A",
  2677. qualityBadge: {
  2678. 2160: "4K",
  2679. 1440: "HD",
  2680. 1080: "HD",
  2681. 720: "HD",
  2682. 576: "SD",
  2683. 480: "SD"
  2684. }
  2685. };
  2686.  
  2687. var css$8 = "#k-player-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n background: #000;\n overflow: hidden;\n font-size: 14px;\n --k-player-error-background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWEAAAEQCAMAAABWXzWBAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAB+UExURUdwTP/v3zJRbd6wpUZuiR4eJZKUmcbGxispL8bIzQoHCJqanhQUGEFkfaysr6Khpb+/wTBGWSAQET4iJLa3ujc5P4F9gMPExyYwPouLjmJVWX1fX08vMUtJTWhHQP///y8XGWhmaXhydOfm5uTEts+mmuLX0aN9c/fi07uUioFWbdMAAAABdFJOUwBA5thmAAAgAElEQVR42uyd6XKjOhCFp1xBrBYCCwnhcMs4VX7/R7xqSYDA4CWB2I7VMzUVk+THfD45vagh//65cOHChQsXLly4cOHChYv3i/3ucDjs9g7EarHLIxmO8ZqAC1Yoxg7GKh5xiALsE+EYryfhhPkyKAuiKD98OiKLE44K6qvAjScZ7yrHZFmTyKOj30ZaJ84qVjCJtCPsE1SAjJ1VLGsSxLeCaKtwYBaLQ1T5w0hr58bL2rAYEfZp49x4SZPwsH8WAgo31+OtYsM6eKyKCpfwVrFhY8Yu4S1lw7qhO1dxKgrnFAvEZ56g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PuIm7ZOS/Ypdzviv8vC+IaHgDZVHfwl0bxcg1+rqLYjfgJhL83l6AesccQ9BW8/eN0KMIE9tT/u+nZqcsHav0Q4fDrHWM8hFHDmZRo/vmzIKU+N/3ezcI/3pNFbb/gsSsSb1wLyRxti/Wxf4Cqio6zxtotzj+/bU+N4kHUUeXh8+fPjw4cOHDx8+fPjw8WfifzujtuTxyJZ/AAAAAElFTkSuQmCC);\n --k-player-tsuma-length: 2;\n --plyr-line-height: 1;\n --plyr-tooltip-background: var(--k-player-background);\n --plyr-tooltip-color: var(--k-player-color);\n --plyr-range-thumb-background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAGSUExURUdwTMnHx+vr6oyMjOnp6eTl5dbW1ry8wNXV1efl5O3t7ePj5NnZ2cTDw/Hx8Ozs7Onp6XFfcePj5OPj5OLi4tbW1ubm5t/f4M7NzuPj4+7u7t3d3eHj4+bl5eLi4+Hh4drc3NTU1M/Pz9DOzuHh4RESFQ8QEw0OERcXGOvq6iYlJh0bG87MyeHg3lRRThMUFsbDwGJfXYyJhiAfIHl2cdjW0y4rJ0FAPzIxMxscJvB5ZJiVkri1sqajoEpDbRMtPxIXGyckGelkXrGuq768ubWxrXNwbm9boYNzww6c4gGu8sdeVhNffJibTfOQYNWLS3zDkuymQz0yIJzMWd7ZTLq+RGN/QoOAfG9raKyqqYNltXZGPBllkTWJ1Wk1MWOEzCZMWAK8+AWTv8x5VAxMRRa8o7jQjTeKUFjKw6pwPaRaR7SEM8DOWFNeLU5EIv22RE9cnmItMQd2prJOTCGDpVNurGSk3TS380E5Vwlwj3d6toaXcHGilAh3cH3EYk7AdmlBMUrFnZd3J3NsK49rKEY6HBLcix4AAAAqdFJOUwAV9AfFuCYNMv/oqkUg+8nTA5OfblDggEBi2lyLv7V1dmdlfmj//////gxP1k4AAAKHSURBVDjLtZRXc9pAFIWFQAKJXl2x03bVCwgJ0XHDvfcS917Te+LU/50VMI7BJjN5yNFodnb0Sbv37LnCsH+S00UGb09J5z1MGKdDtpupJ04TrjvQE65QoEJke0ck0uEhu2hxgIvbmhhv5yDPJjka5yzRPjUtFHxdTVAHl2CglsxVErKcSOVW0wyTlkKNjM0h8hCgi2EYdAMWAsCu+hv2ThK+JGgWU/F139qVK0Al0YeaBPkc57ipkPRLK8odBlFsigrUKaebSoB7GEQpFaruQ4RbBi0EkSu91cU68xpsSfGDnSSC2iiZAS0FZaoNOeQfEuBfICEfsGEevMLUlhdqFSrVAUKlVgyTwqNYr5S2IOX5y/HTOQCEi6Oj/TKApYkXG6UqlJa6sbBoWG9s9vdnp6bn2KX5L9cHn8ul3bGx0acl9AQaIoHFVas2YRwxU7M/Lxfn52e+Hey/30HM1rMygjQ1gDksCBr92dOv01dnPxbOl5Zmjid2d0YnXo8MZ6AFxbDa8Wvj2U1wcvX9YmGxj5853n71doN5hyDLKdGPuXUTLaesZ/dOZmd/9S0uTE4efspsv9kqDq8VrTJNvQeL1Lxk1/emzy4BnJs8P/xownLxw8haMWNVZ7npoutJEvqspAHWMKpjxuSVqgVJ2oPZ3aLZ4DiEt0doqHGUzyieVFofC0hRVjvYw1Ki5eExst5TDbrXobcKHZTFWD2aLoe0bMC7GWe0FT0WrWc86A3jaspkUTfVUWi1FZ8YouLtf9rFHiVwvZCSTV4TWJYVNCOdyKlS4HFjozs93Q5a0sXB/MDAUF4VJTzmfuS9798TfRAK9xAE4Q63PWz3Blv+pYJ2pCAWxP6PfgNybqCJigGJ+wAAAABJRU5ErkJggg==) no-repeat\n center/contain;\n --plyr-range-thumb-width: 18px;\n --plyr-range-thumb-height: 18px;\n --plyr-color-main: var(--k-player-primary-color);\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range] {\n cursor: pointer;\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-thumb {\n transform: scale(0);\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range]:hover::-webkit-slider-thumb {\n transform: scale(1);\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb {\n transition: all 0.1s linear;\n box-shadow: none;\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range].shake-0:active::-webkit-slider-thumb {\n transform: scale(1.3) rotate(15deg);\n}\n#k-player-wrapper .plyr--full-ui.plyr--video input[type=range].shake-1:active::-webkit-slider-thumb {\n transform: scale(1.3) rotate(-15deg);\n}\n#k-player-wrapper.k-player-widescreen {\n position: fixed;\n left: 0;\n top: 0;\n z-index: 10000;\n}\n#k-player-wrapper .k-player-contianer {\n width: 100%;\n height: 100%;\n}\n#k-player-wrapper .k-player-controls-spacer {\n flex: 1;\n}\n#k-player-wrapper #k-player-loading,\n#k-player-wrapper #k-player-error {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 10;\n font-size: 66px;\n color: white;\n pointer-events: none;\n background: black;\n}\n#k-player-wrapper .k-player-error-img {\n background: var(--k-player-error-background) no-repeat center/contain;\n width: 200px;\n height: 200px;\n opacity: 0.4;\n}\n#k-player-wrapper .k-player-error-info {\n text-align: center;\n padding: 24px;\n font-size: 18px;\n}\n#k-player-wrapper #k-player-pip {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 10;\n pointer-events: none;\n}\n#k-player-wrapper .k-player-tsuma {\n width: 200px;\n height: 200px;\n position: absolute;\n bottom: 0;\n right: 0;\n background: no-repeat center/contain;\n opacity: 0.1;\n z-index: -1;\n pointer-events: none;\n}\n#k-player-wrapper .k-player-tsuma[data-bg-idx=\"0\"] {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAAE2CAMAAADcYk6bAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAADDUExURUdwTJKUmcPDwwAAAMbGxkZuicKHkQAAAAAAACspL/bVyfPNwh4eJDFPa728vZeZne/BuPne0Y2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bQnhm2fnw+0y7QuJmNDDqTFzr6V1VjOxYr0djqtH7KRt4oo0Pi4rYHpKaKFgIIO0yFO1gsnEtICxJFjtTunIkemNqjIjM9nv0M85+Bxg1fVV3bHmFN2rEaCdUVBYZNVOihV0c4UegwgmEUKn5RfTfHx0HJxYUd7m7aziKo9N9z2SKi1k5We1vUNU2DU1Iy0jGbGbaX6eLwOjwyebyF7Q+EDaStGukQ60JMxxxRp/qN+Psib6/TXO5lh9GO2SzyX9iScdJ+yc6/Q5BgbHF3WgWG44+DrnTOAVudZkHGzeTxBlulXMLRzizBmmmhtLQE/y3ErWgdyNxHt254+5IkbxIHC7cHQxG9tpCqojFtfXkSNqykI61iwJZnzzILMm76iNJga7hdA2kT2NjD9WFozTxRp+ukvtzcC+9cWsq0aiLJu5Zu1Le3yXonUztG1nZIW9rmuBj6hl9X2BlX6pGWgo5q9TfYpLStpGfYVnKoR75gnacQt3K8xHZTH7YuS8ZwJCAWtrXtu4+OiWdlkeK3sMVTe+D6ByzYsqLdvun7ZuA3iZlT30L4hH+AlH60kAnxVQAAAABJRU5ErkJggg==);\n}\n#k-player-wrapper .k-player-tsuma[data-bg-idx=\"1\"] {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATYAAAE2CAMAAADcYk6bAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAB+UExURUdwTMKHkf++sQYGBgEBATs3PP///wAAAP/v38bGxg4ODhYVFfapocPDwx8dHjIwMEdFRSgmJ2FeXlRRUW5ra728vIeHh3p6eZSUlKqqqaCgn+zs7LOzs/bi09TT08O0rZ3D0dF2eeTVyOHg4MHc76Btb9THusOco+GXkseRisc763UAAAAIdFJOUwD///////+AFXA4nwAAIABJREFUeNrsnImuozYUhhsxngy2vLJzKZGKMnn/N6wXEpYY7IDvTCJx2qqtJje5+fjP6gP//HPYYYcddthhhx122GGHHRbUzj8edj5obKB2oNtM7UDnTy2ChBMYHeRewoaSvGqaumAkOsD5U0uzWBn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KlxsX1hZ7C1s8WHFParXE6VJqhqbhtKQfqQPbvYUt4xN6dnHdTUuZj0VPz9/QIP21bZe/C/SjdFknXJ+N2uXeyWgxeWYa0tsX54QcL+3UYiMPNguTiqt5N4nxnE8Qfed6T49Ryfxmhj+OMNE8OOYR7XJFlr+RW/AI8QVXV93g8SdlBuSPsfE2iJ5X68aqjj6ATTyALfEJSisxHs6wdfl00cUzX00/T4bNm20WhZB/zSd3eUq1M56D54mbSSnx4GgMrmBUVdhEMhfzA9hi49ZrcToECA+kGgr7XS56Dkjp/bC8s7R+aCqYNp5EwyWZTPMqrZNgfhUob0wbhgfs97Alxq23DSroDmRxK86sApOk55NmlYTt0KXq8pPjAAUGsjMPNkPRcUyiGoinsDU/gI2JeEiNGWFrd3AHei9NIJrKB79W+xsjWRK2G/rBb84C8NyQhH921xm36ca0YXRwC5u8lzYZaog8kx2EWimha32nY/CXQykd5fzdPSLjSsc2zz/8i1jbTa8Q6KSq/8Uj2C6fIMnMSbP8FGcxm+JibBdD81jJXngFPhsivH4NW5IDaYPpXzN8guP96itpk82vYOsochYKRR2rkY0or1g0HR0BiXdanvMi1yz9L2BLt2QvwocNtfgmIM1J2w9hs66UMcP79zPR14iKtBkc4qMvEBynjY1P49Hv1z1Plrb9464k4gRY/YdOpS3B8TYB4sHWsM7MRLaUHWy6rinvWDyfOCLyEMNv87hsaX7H+/n81/9ZNrkhKCpo7gAAAABJRU5ErkJggg==);\n}\n#k-player-wrapper .k-player-center {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n#k-player-wrapper #k-player-header {\n transform: translateY(0);\n transition: transform 0.3s;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n padding: 8px;\n text-align: right;\n}\n#k-player-wrapper #k-player-header .k-player-question-icon {\n font-size: 24px;\n width: 1em;\n height: 1em;\n color: white;\n cursor: pointer;\n}\n#k-player-wrapper .plyr--hide-controls #k-player-header {\n transform: translateY(-100%);\n}\n#k-player-wrapper .plyr {\n width: 100%;\n height: 100%;\n}\n#k-player-wrapper .plyr__control svg {\n font-size: 18px;\n}\n#k-player-wrapper video {\n display: block;\n}\n#k-player-wrapper .plyr__next svg {\n transform: scale(1.7);\n}\n#k-player-wrapper .plyr__widescreen svg {\n transform: scale(1.3);\n}\n#k-player-wrapper .plyr--hide-cursor {\n cursor: none;\n}\n#k-player-wrapper .plyr__control span:not(.plyr__tooltip) {\n color: inherit;\n}\n#k-player-wrapper .plyr--hide-controls .k-player-progress {\n opacity: 1;\n transition: opacity 0.3s ease-in 0.2s;\n}\n#k-player-wrapper .k-player-fullscreen .k-player-progress,\n#k-player-wrapper .k-player-fullscreen [data-plyr=widescreen] {\n display: none;\n}\n#k-player-wrapper .k-player-progress {\n opacity: 0;\n transition: opacity 0.2s ease-out;\n height: 2px;\n width: 100%;\n position: absolute;\n bottom: 0;\n}\n#k-player-wrapper .k-player-progress .k-player-progress-current {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n z-index: 2;\n background-color: var(--k-player-primary-color);\n}\n#k-player-wrapper .k-player-progress .k-player-progress-buffer {\n position: absolute;\n left: 0;\n top: 0;\n z-index: 1;\n height: 100%;\n background-color: var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25));\n}\n#k-player-wrapper .plyr__controls {\n z-index: 20;\n}\n#k-player-wrapper .plyr__controls .plyr__controls__item:first-child {\n margin-right: 0;\n}\n#k-player-wrapper .plyr__controls .plyr__controls__item.plyr__progress__container {\n position: absolute;\n top: 15px;\n left: 10px;\n right: 10px;\n --plyr-range-track-height: 2px;\n}\n#k-player-wrapper .plyr__controls .plyr__controls__item.plyr__progress__container:hover {\n --plyr-range-track-height: 4px;\n}\n#k-player-wrapper .plyr__controls .k-text-btn {\n display: inline-block;\n padding: 0 8px;\n text-align: center;\n}\n#k-player-wrapper .plyr__controls .k-text-btn-text {\n line-height: 32px;\n user-select: none;\n}\n@media (max-width: 576px) {\n #k-player-wrapper .plyr__controls {\n padding-top: 30px;\n }\n #k-player-wrapper [data-plyr=pip],\n #k-player-wrapper [data-plyr=widescreen],\n #k-player-wrapper .plyr__volume {\n display: none;\n }\n}\n\n.lds-spinner {\n color: official;\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n}\n.lds-spinner div {\n transform-origin: 40px 40px;\n animation: lds-spinner 1.2s linear infinite;\n}\n.lds-spinner div::after {\n content: \" \";\n display: block;\n position: absolute;\n top: 3px;\n left: 37px;\n width: 6px;\n height: 18px;\n border-radius: 20%;\n background: #fff;\n}\n.lds-spinner div:nth-child(1) {\n transform: rotate(0deg);\n animation-delay: -1.1s;\n}\n.lds-spinner div:nth-child(2) {\n transform: rotate(30deg);\n animation-delay: -1s;\n}\n.lds-spinner div:nth-child(3) {\n transform: rotate(60deg);\n animation-delay: -0.9s;\n}\n.lds-spinner div:nth-child(4) {\n transform: rotate(90deg);\n animation-delay: -0.8s;\n}\n.lds-spinner div:nth-child(5) {\n transform: rotate(120deg);\n animation-delay: -0.7s;\n}\n.lds-spinner div:nth-child(6) {\n transform: rotate(150deg);\n animation-delay: -0.6s;\n}\n.lds-spinner div:nth-child(7) {\n transform: rotate(180deg);\n animation-delay: -0.5s;\n}\n.lds-spinner div:nth-child(8) {\n transform: rotate(210deg);\n animation-delay: -0.4s;\n}\n.lds-spinner div:nth-child(9) {\n transform: rotate(240deg);\n animation-delay: -0.3s;\n}\n.lds-spinner div:nth-child(10) {\n transform: rotate(270deg);\n animation-delay: -0.2s;\n}\n.lds-spinner div:nth-child(11) {\n transform: rotate(300deg);\n animation-delay: -0.1s;\n}\n.lds-spinner div:nth-child(12) {\n transform: rotate(330deg);\n animation-delay: 0s;\n}\n\n@keyframes lds-spinner {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}";
  2688. injectCss(css$8,{});
  2689.  
  2690. function isUrl(text) {
  2691. return /^((https?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/.test(
  2692. text
  2693. );
  2694. }
  2695.  
  2696. var __defProp$2 = Object.defineProperty;
  2697. var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
  2698. var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
  2699. var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
  2700. var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  2701. var __spreadValues$2 = (a, b) => {
  2702. for (var prop in b || (b = {}))
  2703. if (__hasOwnProp$2.call(b, prop))
  2704. __defNormalProp$2(a, prop, b[prop]);
  2705. if (__getOwnPropSymbols$2)
  2706. for (var prop of __getOwnPropSymbols$2(b)) {
  2707. if (__propIsEnum$2.call(b, prop))
  2708. __defNormalProp$2(a, prop, b[prop]);
  2709. }
  2710. return a;
  2711. };
  2712. const MediaErrorMessage = {
  2713. 1: "\u4F60\u4E2D\u6B62\u4E86\u5A92\u4F53\u64AD\u653E",
  2714. 2: "\u7F51\u7EDC\u9519\u8BEF",
  2715. 3: "\u6587\u4EF6\u635F\u574F",
  2716. 4: "\u8D44\u6E90\u6709\u95EE\u9898\u770B\u4E0D\u4E86",
  2717. 5: "\u8D44\u6E90\u88AB\u52A0\u5BC6\u4E86"
  2718. };
  2719. const defaultConfig = {
  2720. customSeekTime: 89,
  2721. speed: 1,
  2722. continuePlay: true,
  2723. autoNext: true,
  2724. showProgress: true,
  2725. volume: 1,
  2726. showSearchActions: true,
  2727. autoplay: true,
  2728. showPlayLarge: false
  2729. };
  2730. const _KPlayer = class {
  2731. constructor(selector, opts = {}) {
  2732. this.isHoverControls = false;
  2733. this.speedList = speedList;
  2734. this.setCurrentTimeLogThrottled = throttle(() => {
  2735. if (this.currentTime > 3)
  2736. this.setCurrentTimeLog();
  2737. }, 1e3);
  2738. this.hideControlsDebounced = debounce(() => {
  2739. const dom = document.querySelector(".plyr");
  2740. if (!this.isHoverControls)
  2741. dom == null ? void 0 : dom.classList.add("plyr--hide-controls");
  2742. }, 1e3);
  2743. this.hideCursorDebounced = debounce(() => {
  2744. const dom = document.querySelector(".plyr");
  2745. dom == null ? void 0 : dom.classList.add("plyr--hide-cursor");
  2746. }, 1e3);
  2747. this.isJumped = false;
  2748. this.opts = opts;
  2749. this.$wrapper = $('<div id="k-player-wrapper"/>').replaceAll(selector);
  2750. this.$loading = $(loadingHTML);
  2751. this.$error = $(errorHTML);
  2752. this.$pip = $(pipHTML);
  2753. this.$video = (opts.video ? $(opts.video) : $("<video />")).attr({ id: "k-player", playsinline: true });
  2754. this.$progress = $(progressHTML);
  2755. this.$header = $('<div id="k-player-header"/>');
  2756. this.$wrapper.append(this.$video);
  2757. this.localConfigKey = "kplayer";
  2758. this.statusSessionKey = "k-player-status";
  2759. this.localPlayTimeKey = "k-player-play-time";
  2760. this.localConfig = Object.assign(
  2761. {},
  2762. defaultConfig,
  2763. gm.getItem(this.localConfigKey)
  2764. );
  2765. const isIOS = /ip(hone|od)/i.test(navigator.userAgent);
  2766. this.plyr = new Plyr("#k-player", __spreadValues$2({
  2767. autoplay: this.localConfig.autoplay,
  2768. keyboard: { global: false, focused: false },
  2769. controls: [
  2770. "play-large",
  2771. "play",
  2772. "progress",
  2773. "current-time",
  2774. "duration",
  2775. "mute",
  2776. "volume",
  2777. "pip",
  2778. "fullscreen"
  2779. ],
  2780. storage: { enabled: false },
  2781. volume: this.localConfig.volume,
  2782. fullscreen: {
  2783. enabled: true,
  2784. iosNative: isIOS
  2785. },
  2786. i18n,
  2787. tooltips: {
  2788. controls: true,
  2789. seek: true
  2790. },
  2791. disableContextMenu: false
  2792. }, opts));
  2793. this.$videoWrapper = this.$wrapper.find(".plyr");
  2794. this.$videoWrapper.find(".plyr__time--duration").after('<div class="plyr__controls__item k-player-controls-spacer"/>');
  2795. this.$videoWrapper.find('[data-plyr="pip"] .plyr__tooltip').html(
  2796. `\u753B\u4E2D\u753B(<k-shortcuts-tip command=${Shortcuts.Commands.togglePIP}></k-shortcuts-tip>)`
  2797. );
  2798. this.$videoWrapper.append(
  2799. this.$loading,
  2800. this.$error,
  2801. this.$pip,
  2802. this.$progress,
  2803. this.$header
  2804. );
  2805. this.message = new Message(this.$videoWrapper);
  2806. this.eventMap = {};
  2807. this.isWideScreen = false;
  2808. this.wideScreenBodyStyles = {};
  2809. this.tsumaLength = +getComputedStyle(this.$wrapper[0]).getPropertyValue("--k-player-tsuma-length").trim();
  2810. this.curentTsuma = -1;
  2811. this.injectSettings();
  2812. this.injectSpeed();
  2813. this.injectNext();
  2814. this.injectSreen();
  2815. this.injectSearchActions();
  2816. _KPlayer.plguinList.forEach((setup) => setup(this));
  2817. this.initEvent();
  2818. if (opts.eventToParentWindow) {
  2819. this.eventToParentWindow();
  2820. }
  2821. const status = session.getItem(this.statusSessionKey);
  2822. if (status) {
  2823. session.removeItem(this.statusSessionKey);
  2824. this.toggleWidescreen(status);
  2825. }
  2826. }
  2827. static register(setup) {
  2828. this.plguinList.push(setup);
  2829. }
  2830. async setCurrentTimeLog(time) {
  2831. time = Math.floor(time != null ? time : this.currentTime);
  2832. const store = local.getItem(this.localPlayTimeKey, {});
  2833. const key = await this.playTimeStoreKey();
  2834. store[key] = time;
  2835. local.setItem(this.localPlayTimeKey, store);
  2836. }
  2837. async getCurrentTimeLog() {
  2838. const store = local.getItem(this.localPlayTimeKey, {});
  2839. const key = await this.playTimeStoreKey();
  2840. return store[key];
  2841. }
  2842. async playTimeStoreKey() {
  2843. return await runtime.getTopLocationHref();
  2844. }
  2845. async jumpToLogTime() {
  2846. if (this.isJumped)
  2847. return;
  2848. if (this.currentTime < 3) {
  2849. this.isJumped = true;
  2850. const logTime = await this.getCurrentTimeLog();
  2851. if (logTime && this.plyr.duration - logTime > 10) {
  2852. this.message.info(`\u5DF2\u81EA\u52A8\u8DF3\u8F6C\u81F3\u5386\u53F2\u64AD\u653E\u4F4D\u7F6E ${parseTime(logTime)}`);
  2853. this.currentTime = logTime;
  2854. }
  2855. }
  2856. }
  2857. initEvent() {
  2858. this.onDrop((e) => {
  2859. var _a, _b;
  2860. e.preventDefault();
  2861. const file = (_a = e.dataTransfer) == null ? void 0 : _a.files[0];
  2862. if (file && file.type.includes("video")) {
  2863. this.src = URL.createObjectURL(file);
  2864. }
  2865. const text = (_b = e.dataTransfer) == null ? void 0 : _b.getData("text");
  2866. if (text && isUrl(text)) {
  2867. this.src = text;
  2868. }
  2869. });
  2870. this.on("loadstart", () => {
  2871. this.$loading.show();
  2872. this.hideError();
  2873. });
  2874. this.on("loadedmetadata", () => {
  2875. this.$loading.hide();
  2876. this.$searchActions.find(".k-text-btn-text").text(this.media.videoHeight + "P");
  2877. });
  2878. this.on("canplay", () => {
  2879. this.$loading.hide();
  2880. if (this.localConfig.autoplay) {
  2881. (async () => {
  2882. try {
  2883. await this.plyr.play();
  2884. } catch (error) {
  2885. } finally {
  2886. if (this.media.paused) {
  2887. window.addEventListener(
  2888. "click",
  2889. () => {
  2890. setTimeout(() => {
  2891. if (this.media.paused)
  2892. this.plyr.play();
  2893. }, 100);
  2894. },
  2895. { capture: true, once: true }
  2896. );
  2897. }
  2898. }
  2899. })();
  2900. }
  2901. if (this.localConfig.continuePlay) {
  2902. this.jumpToLogTime();
  2903. }
  2904. });
  2905. this.on("error", () => {
  2906. this.setCurrentTimeLog(0);
  2907. this.$searchActions.show();
  2908. const code = this.media.error.code;
  2909. this.$loading.hide();
  2910. this.showError(MediaErrorMessage[code] || this.src);
  2911. if (code === 3) {
  2912. const countKey = "skip-error-retry-count" + window.location.search;
  2913. let skipErrorRetryCount = parseInt(session.getItem(countKey) || "0");
  2914. if (skipErrorRetryCount < 3) {
  2915. skipErrorRetryCount++;
  2916. const duration = 2 * skipErrorRetryCount;
  2917. this.message.info(
  2918. `\u89C6\u9891\u6E90\u51FA\u73B0\u95EE\u9898\uFF0C\u7B2C${skipErrorRetryCount}\u6B21\u5C1D\u8BD5\u8DF3\u8FC7${duration}s\u9519\u8BEF\u7247\u6BB5`,
  2919. 4e3
  2920. ).then(() => {
  2921. this.trigger("skiperror", 2 * skipErrorRetryCount);
  2922. });
  2923. session.setItem(countKey, skipErrorRetryCount.toString());
  2924. } else {
  2925. this.message.info(`\u89C6\u9891\u6E90\u51FA\u73B0\u95EE\u9898\uFF0C\u591A\u6B21\u5C1D\u8BD5\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u8DF3\u8FC7\u9519\u8BEF\u7247\u6BB5`, 4e3).then(() => {
  2926. this.trigger("skiperror", 0);
  2927. });
  2928. session.removeItem(countKey);
  2929. }
  2930. } else {
  2931. this.message.info("\u89C6\u9891\u64AD\u653E\u5931\u8D25\uFF0C\u94FE\u63A5\u8D44\u6E90\u53EF\u80FD\u5931\u6548\u4E86", 4e3);
  2932. }
  2933. });
  2934. this.on("pause", () => {
  2935. this.hideControlsDebounced();
  2936. });
  2937. this.on("prev", () => {
  2938. this.message.info("\u6B63\u5728\u5207\u6362\u4E0A\u4E00\u96C6");
  2939. });
  2940. this.on("next", () => {
  2941. this.message.info("\u6B63\u5728\u5207\u6362\u4E0B\u4E00\u96C6");
  2942. });
  2943. this.on("enterfullscreen", () => {
  2944. this.$videoWrapper.addClass("k-player-fullscreen");
  2945. });
  2946. this.on("exitfullscreen", () => {
  2947. this.$videoWrapper.removeClass("k-player-fullscreen");
  2948. });
  2949. this.on("volumechange", () => {
  2950. this.configSaveToLocal("volume", this.plyr.volume);
  2951. });
  2952. this.on("timeupdate", () => {
  2953. this.setCurrentTimeLogThrottled();
  2954. this.$progress.find(".k-player-progress-current").css("width", (this.currentTime / this.plyr.duration || 0) * 100 + "%");
  2955. this.$progress.find(".k-player-progress-buffer").css("width", this.plyr.buffered * 100 + "%");
  2956. });
  2957. this.on("ended", () => {
  2958. if (this.localConfig.autoNext) {
  2959. this.trigger("next");
  2960. }
  2961. });
  2962. this.on("enterpictureinpicture", () => {
  2963. this.setRandomTsuma();
  2964. this.$pip.fadeIn();
  2965. });
  2966. this.on("leavepictureinpicture", () => {
  2967. this.$pip.fadeOut();
  2968. });
  2969. $(".plyr__controls button,.plyr__controls input").on("mouseleave", (e) => {
  2970. e.target.blur();
  2971. });
  2972. const playerEl = document.querySelector(".plyr");
  2973. playerEl.addEventListener("mousemove", () => {
  2974. playerEl.classList.remove("plyr--hide-cursor");
  2975. this.hideCursorDebounced();
  2976. if (this.plyr.paused) {
  2977. this.hideControlsDebounced();
  2978. }
  2979. });
  2980. const controlsEl = document.querySelector(".plyr__controls");
  2981. controlsEl.addEventListener("mouseenter", () => {
  2982. this.isHoverControls = true;
  2983. });
  2984. controlsEl.addEventListener("mouseleave", () => {
  2985. this.isHoverControls = false;
  2986. });
  2987. this.initInputEvent();
  2988. }
  2989. initInputEvent() {
  2990. let timeId;
  2991. const $dom = $("#k-player-wrapper input[type='range']");
  2992. $dom.trigger("mouseup").off("mousedown").off("mouseup");
  2993. $dom.on("mousedown", function() {
  2994. clearInterval(timeId);
  2995. let i = 0;
  2996. timeId = window.setInterval(() => {
  2997. $(this).removeClass().addClass(`shake-${i++ % 2}`);
  2998. }, 100);
  2999. });
  3000. $dom.on("mouseup", function() {
  3001. clearInterval(timeId);
  3002. $(this).removeClass();
  3003. });
  3004. }
  3005. on(event, callback) {
  3006. if ([
  3007. "prev",
  3008. "next",
  3009. "enterwidescreen",
  3010. "exitwidescreen",
  3011. "skiperror"
  3012. ].includes(event)) {
  3013. if (!this.eventMap[event])
  3014. this.eventMap[event] = [];
  3015. this.eventMap[event].push(callback);
  3016. } else {
  3017. this.plyr.on(event, callback);
  3018. }
  3019. }
  3020. trigger(event, params) {
  3021. const fnList = this.eventMap[event] || [];
  3022. fnList.forEach((fn) => {
  3023. fn(this, params);
  3024. });
  3025. }
  3026. onDrop(callback) {
  3027. this.$video.on("dragover", (e) => {
  3028. e.preventDefault();
  3029. }).on("drop", (_e) => {
  3030. const e = _e.originalEvent;
  3031. callback(e);
  3032. });
  3033. }
  3034. injectSettings() {
  3035. this.$settings = $(settingsHTML);
  3036. this.$settings.find("[name=showPlayLarge]").prop("checked", this.localConfig.showPlayLarge).on("change", (e) => {
  3037. const checked = e.target.checked;
  3038. this.configSaveToLocal("showPlayLarge", checked);
  3039. this.$videoWrapper.find(".plyr__control.plyr__control--overlaid").toggle(checked);
  3040. });
  3041. this.$videoWrapper.find(".plyr__control.plyr__control--overlaid").toggle(this.localConfig.showPlayLarge);
  3042. this.$settings.find("[name=showSearchActions]").prop("checked", this.localConfig.showSearchActions).on("change", (e) => {
  3043. const checked = e.target.checked;
  3044. this.configSaveToLocal("showSearchActions", checked);
  3045. this.$searchActions.toggle(checked);
  3046. });
  3047. this.$settings.find("[name=autoNext]").prop("checked", this.localConfig.autoNext).on("change", (e) => {
  3048. const checked = e.target.checked;
  3049. this.configSaveToLocal("autoNext", checked);
  3050. });
  3051. this.$settings.find("[name=showProgress]").prop("checked", this.localConfig.showProgress).on("change", (e) => {
  3052. const checked = e.target.checked;
  3053. this.configSaveToLocal("showProgress", checked);
  3054. this.$progress.toggle(checked);
  3055. });
  3056. this.$progress.toggle(this.localConfig.showProgress);
  3057. this.$settings.find("[name=autoplay]").prop("checked", this.localConfig.autoplay).on("change", (e) => {
  3058. const checked = e.target.checked;
  3059. this.configSaveToLocal("autoplay", checked);
  3060. this.plyr.autoplay = checked;
  3061. });
  3062. this.$settings.find("[name=continuePlay]").prop("checked", this.localConfig.continuePlay).on("change", (e) => {
  3063. const checked = e.target.checked;
  3064. this.configSaveToLocal("continuePlay", checked);
  3065. });
  3066. this.$settings.insertAfter(".plyr__controls__item.plyr__volume");
  3067. }
  3068. configSaveToLocal(key, value) {
  3069. this.localConfig[key] = value;
  3070. gm.setItem(this.localConfigKey, this.localConfig);
  3071. }
  3072. injectSpeed() {
  3073. this.$speed = $(speedHTML);
  3074. const speedItems = this.$speed.find(".k-speed-item");
  3075. const localSpeed = this.localConfig.speed;
  3076. speedItems.each((_, el) => {
  3077. const speed = +el.dataset.speed;
  3078. if (speed === localSpeed) {
  3079. el.classList.add("k-menu-active");
  3080. }
  3081. $(el).on("click", () => {
  3082. this.speed = speed;
  3083. });
  3084. });
  3085. this.plyr.speed = localSpeed;
  3086. this.$speed.find("#k-speed-text").text(localSpeed === 1 ? "\u500D\u901F" : localSpeed + "x");
  3087. this.$speed.insertBefore(".plyr__controls__item.plyr__volume");
  3088. }
  3089. injectNext() {
  3090. $($("#plyr__next").html()).insertBefore(".plyr__controls__item.plyr__progress__container").on("click", () => {
  3091. this.trigger("next");
  3092. });
  3093. }
  3094. injectSreen() {
  3095. $($("#plyr__widescreen").html()).insertBefore('[data-plyr="fullscreen"]').on("click", () => {
  3096. this.toggleWidescreen();
  3097. });
  3098. }
  3099. async injectSearchActions() {
  3100. this.$searchActions = $(searchActionsHTML).toggle(
  3101. this.localConfig.showSearchActions
  3102. );
  3103. this.$searchActions.insertBefore(this.$speed);
  3104. const actions = await runtime.getSearchActions();
  3105. if (actions.length === 0)
  3106. return;
  3107. this.$searchActions.find(".k-menu").append(
  3108. actions.map(({ name, search }) => {
  3109. return $(
  3110. `<li class="k-menu-item k-speed-item">${name}</li>`
  3111. ).on("click", search);
  3112. })
  3113. );
  3114. }
  3115. toggleWidescreen(bool = !this.isWideScreen) {
  3116. if (this.isWideScreen === bool)
  3117. return;
  3118. this.isWideScreen = bool;
  3119. session.setItem(this.statusSessionKey, this.isWideScreen);
  3120. if (this.isWideScreen) {
  3121. this.wideScreenBodyStyles = $("body").css(["overflow"]);
  3122. $("body").css("overflow", "hidden");
  3123. this.$wrapper.addClass("k-player-widescreen");
  3124. $(".plyr__widescreen").addClass("plyr__control--pressed");
  3125. } else {
  3126. $("body").css(this.wideScreenBodyStyles);
  3127. this.$wrapper.removeClass("k-player-widescreen");
  3128. $(".plyr__widescreen").removeClass("plyr__control--pressed");
  3129. }
  3130. this.trigger(this.isWideScreen ? "enterwidescreen" : "exitwidescreen");
  3131. }
  3132. get media() {
  3133. return this.$video[0];
  3134. }
  3135. set src(src) {
  3136. this.isJumped = false;
  3137. if (src.includes(".m3u8")) {
  3138. if (Hls.isSupported()) {
  3139. const hls = new Hls();
  3140. hls.loadSource(src);
  3141. hls.attachMedia(this.media);
  3142. } else if (this.media.canPlayType("application/vnd.apple.mpegurl")) {
  3143. this.$video.attr("src", src);
  3144. } else {
  3145. throw new Error("\u4E0D\u652F\u6301\u64AD\u653E hls \u6587\u4EF6");
  3146. }
  3147. } else {
  3148. this.$video.attr("src", src);
  3149. }
  3150. }
  3151. get src() {
  3152. return this.media.currentSrc;
  3153. }
  3154. set currentTime(value) {
  3155. this.plyr.currentTime = value;
  3156. }
  3157. get currentTime() {
  3158. return this.plyr.currentTime;
  3159. }
  3160. get speed() {
  3161. return this.plyr.speed;
  3162. }
  3163. set speed(speed) {
  3164. this.plyr.speed = speed;
  3165. const speedItems = this.$speed.find(".k-speed-item");
  3166. speedItems.each((_, el) => {
  3167. if (speed === +el.dataset.speed) {
  3168. el.classList.add("k-menu-active");
  3169. } else {
  3170. el.classList.remove("k-menu-active");
  3171. }
  3172. });
  3173. this.$speed.find("#k-speed-text").text(speed === 1 ? "\u500D\u901F" : speed + "x");
  3174. this.message.destroy();
  3175. this.message.info(`\u89C6\u9891\u901F\u5EA6\uFF1A${speed}`);
  3176. this.configSaveToLocal("speed", speed);
  3177. }
  3178. showError(text) {
  3179. this.setRandomTsuma();
  3180. this.$error.show().find(".k-player-error-info").text(text);
  3181. }
  3182. hideError() {
  3183. this.$error.hide();
  3184. }
  3185. setRandomTsuma() {
  3186. this.curentTsuma = ++this.curentTsuma % this.tsumaLength;
  3187. this.$wrapper.find(".k-player-tsuma").attr("data-bg-idx", this.curentTsuma);
  3188. }
  3189. eventToParentWindow() {
  3190. const evnetKeys = [
  3191. "prev",
  3192. "next",
  3193. "enterwidescreen",
  3194. "exitwidescreen",
  3195. "skiperror",
  3196. "progress",
  3197. "playing",
  3198. "play",
  3199. "pause",
  3200. "timeupdate",
  3201. "volumechange",
  3202. "seeking",
  3203. "seeked",
  3204. "ratechange",
  3205. "ended",
  3206. "enterfullscreen",
  3207. "exitfullscreen",
  3208. "captionsenabled",
  3209. "captionsdisabled",
  3210. "languagechange",
  3211. "controlshidden",
  3212. "controlsshown",
  3213. "ready",
  3214. "loadstart",
  3215. "loadeddata",
  3216. "loadedmetadata",
  3217. "canplay",
  3218. "canplaythrough",
  3219. "stalled",
  3220. "waiting",
  3221. "emptied",
  3222. "cuechange",
  3223. "error"
  3224. ];
  3225. evnetKeys.forEach((key) => {
  3226. this.on(key, () => {
  3227. const video = this.media;
  3228. const info = {
  3229. width: video.videoWidth,
  3230. height: video.videoHeight,
  3231. currentTime: video.currentTime,
  3232. src: video.src,
  3233. duration: video.duration
  3234. };
  3235. window.parent.postMessage({ key, video: info }, "*");
  3236. });
  3237. });
  3238. }
  3239. };
  3240. let KPlayer = _KPlayer;
  3241. KPlayer.plguinList = [];
  3242.  
  3243. function request(opts) {
  3244. let { url, method, params } = opts;
  3245. if (params) {
  3246. let u = new URL(url);
  3247. Object.keys(params).forEach((key) => {
  3248. const value = params[key];
  3249. if (value !== void 0 && value !== null) {
  3250. u.searchParams.set(key, params[key]);
  3251. }
  3252. });
  3253. url = u.toString();
  3254. }
  3255. return new Promise((resolve, reject) => {
  3256. GM_xmlhttpRequest({
  3257. url,
  3258. method: method || "GET",
  3259. responseType: "json",
  3260. headers: opts.headers,
  3261. onload: (res) => {
  3262. resolve(res.response);
  3263. },
  3264. onerror: reject
  3265. });
  3266. });
  3267. }
  3268.  
  3269. function createStorage(storageKey) {
  3270. function storage(key, value) {
  3271. const store = local.getItem(storageKey, {});
  3272. if (value) {
  3273. store[key] = value;
  3274. local.setItem(storageKey, store);
  3275. } else {
  3276. return store[key];
  3277. }
  3278. }
  3279. return storage;
  3280. }
  3281. const storageAnimeName = createStorage("k-player-danmaku-anime-name-v2");
  3282. const storageEpisodeName = createStorage("k-player-danmaku-episode-name");
  3283. function convert32ToHex(color) {
  3284. return "#" + parseInt(color).toString(16);
  3285. }
  3286. function parseUid(uid) {
  3287. let source = "\u5F39\u5F39play", id = uid;
  3288. const matcher = uid.match(/^\[(.*?)\](.*)/);
  3289. if (matcher) {
  3290. source = matcher[1];
  3291. id = matcher[2];
  3292. }
  3293. return { source, id };
  3294. }
  3295. function rangePercent(min, input, max) {
  3296. input = Math.min(max, Math.max(min, input));
  3297. return (input - min) / (max - min) * 100;
  3298. }
  3299. function addRangeListener(opts) {
  3300. const { $dom, name, onInput, player, onChange } = opts;
  3301. const $valueDom = $(
  3302. '<div style="width:45px;flex-shrink:0;text-align:right;white-space:nowrap;"></div>'
  3303. );
  3304. $valueDom.insertAfter($dom);
  3305. const min = parseFloat($dom.attr("min"));
  3306. const max = parseFloat($dom.attr("max"));
  3307. const setStyle = () => {
  3308. const value = parseFloat($dom.val());
  3309. player.configSaveToLocal(name, value);
  3310. onInput == null ? void 0 : onInput(value);
  3311. $valueDom.text((value * 100).toFixed(0) + "%");
  3312. $dom.css("--value", rangePercent(min, value, max) + "%");
  3313. };
  3314. $dom.val(player.localConfig[name]);
  3315. $dom.on("input", setStyle);
  3316. $dom.on("change", () => {
  3317. onChange == null ? void 0 : onChange(parseFloat($dom.val()));
  3318. });
  3319. setStyle();
  3320. }
  3321. function getCheckboxGroupValue($dom) {
  3322. const ret = [];
  3323. $dom.each((_, el) => {
  3324. if (el.checked)
  3325. ret.push(el.value);
  3326. });
  3327. return ret;
  3328. }
  3329. function setCheckboxGroupValue($dom, value) {
  3330. $dom.each((_, el) => {
  3331. if (value.includes(el.value)) {
  3332. el.checked = true;
  3333. }
  3334. });
  3335. }
  3336.  
  3337. const KEY = "eyJYLUFwcElkIjoiaHZmNnB6dnhjbSIsIlgtQXBwU2VjcmV0IjoiSVpoY1VJYWtveEZhSzl4QkJESjlCczFPVTJzNGtLNXQifQ==";
  3338. const headers = JSON.parse(atob(KEY));
  3339. async function getComments(episodeId) {
  3340. const res = await request({
  3341. url: `https://api.dandanplay.net/api/v2/comment/${episodeId}?withRelated=true&chConvert=1`,
  3342. headers
  3343. });
  3344. return res.comments.map((o) => {
  3345. const [time, type, color, uid] = o.p.split(",");
  3346. const user = parseUid(uid);
  3347. return {
  3348. mode: { 1: "rtl", 4: "bottom", 5: "top" }[type] || "rtl",
  3349. text: o.m,
  3350. time: parseFloat(time),
  3351. style: { color: convert32ToHex(color) },
  3352. user
  3353. };
  3354. }).sort((a, b) => a.time - b.time);
  3355. }
  3356. async function searchAnimeWithEpisode(anime, episode) {
  3357. const res = await request({
  3358. url: "https://api.dandanplay.net/api/v2/search/episodes",
  3359. params: { anime, episode },
  3360. headers
  3361. });
  3362. return res.animes;
  3363. }
  3364.  
  3365. function createDanmakuList(player, getComments, refreshDanmaku) {
  3366. const $open = $("#k-player-danmaku-search-form .open-danmaku-list");
  3367. $open.on("click", () => {
  3368. const comments = getComments();
  3369. if (!comments)
  3370. return;
  3371. const $root = $(`
  3372. <div class="k-player-danmaku-list-wrapper">
  3373. <div class="k-player-danmaku-list-source-filter">
  3374. <div>\u6765\u6E90\uFF1A</div>
  3375. <div class="k-player-danmaku-list-source"></div>
  3376. </div>
  3377. <div class="k-player-danmaku-list-table-wrapper">
  3378. <div class="k-player-danmaku-list-table-content">
  3379. <table class="k-player-danmaku-list-table">
  3380. <thead>
  3381. <tr>
  3382. <th>\u65F6\u95F4</th>
  3383. <th>\u5185\u5BB9</th>
  3384. <th>\u6765\u6E90</th>
  3385. </tr>
  3386. </thead>
  3387. <tbody>
  3388. </tbody>
  3389. </table>
  3390. </div>
  3391. </div>
  3392.  
  3393. </div>
  3394. `);
  3395. let i = 0;
  3396. let end = 100;
  3397. const render = () => {
  3398. if (i >= comments.length) {
  3399. $content.height("");
  3400. return;
  3401. }
  3402. $root.find("tbody").append(
  3403. comments.slice(i, end).map(
  3404. (cmt) => `
  3405. <tr data-source="${cmt.user.source}">
  3406. <td>${parseTime(cmt.time)}</td>
  3407. <td>${cmt.text}</td>
  3408. <td>${cmt.user.source}</td>
  3409. </tr>`
  3410. ).join("")
  3411. );
  3412. i = end;
  3413. };
  3414. render();
  3415. modal({
  3416. title: "\u5F39\u5E55\u5217\u8868",
  3417. content: $root,
  3418. className: "k-player-danmaku-list",
  3419. afterClose: () => {
  3420. refreshDanmaku();
  3421. }
  3422. });
  3423. const $source = $root.find(".k-player-danmaku-list-source");
  3424. const sourceCountMap = comments.reduce(
  3425. (map, cmt) => {
  3426. var _a;
  3427. const source = cmt.user.source;
  3428. (_a = map[source]) != null ? _a : map[source] = 0;
  3429. map[source]++;
  3430. return map;
  3431. },
  3432. {}
  3433. );
  3434. Object.entries(sourceCountMap).forEach(([source, count]) => {
  3435. const isDisabled = player.localConfig.danmakuSourceDisabledList.includes(source);
  3436. const percent = (count / comments.length * 100).toFixed(2);
  3437. $(`<label class="k-player-danmaku-list-source-item k-capsule">
  3438. <input hidden type="checkbox" value="${source}"/>
  3439. <div title="${source}\u6709${count}\u6761\u5F39\u5E55">${source}(${percent}%)</div>
  3440. </label>`).appendTo($source).find("input").prop("checked", !isDisabled).on("change", (e) => {
  3441. let next = [...player.localConfig.danmakuSourceDisabledList];
  3442. if (e.currentTarget.checked) {
  3443. next = next.filter((src) => src !== source);
  3444. } else {
  3445. next.push(source);
  3446. }
  3447. player.configSaveToLocal("danmakuSourceDisabledList", next);
  3448. });
  3449. });
  3450. const $wrapper = $root.find(".k-player-danmaku-list-table-wrapper");
  3451. const $content = $root.find(".k-player-danmaku-list-table-content");
  3452. const $table = $root.find(".k-player-danmaku-list-table");
  3453. const itemHeight = $root.find("thead tr").height();
  3454. $content.height(itemHeight * (comments.length + 1));
  3455. $wrapper.on("scroll", (e) => {
  3456. const dom = e.currentTarget;
  3457. const height = dom.scrollTop + dom.clientHeight + 1e3;
  3458. if ($table.height() < height) {
  3459. end = Math.ceil(height / itemHeight);
  3460. render();
  3461. }
  3462. });
  3463. });
  3464. }
  3465.  
  3466. function parseToJSON(raw) {
  3467. return new Promise((resolve, reject) => {
  3468. const blob = new Blob([raw], { type: "application/json" });
  3469. const url = URL.createObjectURL(blob);
  3470. fetch(url).then((r) => r.json()).then(resolve).catch(reject).finally(() => {
  3471. URL.revokeObjectURL(url);
  3472. });
  3473. });
  3474. }
  3475.  
  3476. function createFilter(player, refreshDanmaku) {
  3477. const $filter = $("#k-player-danmaku-filter-form");
  3478. const $importLabel = $("#k-player-danmaku-filter-import");
  3479. $importLabel.on("click", () => {
  3480. modal({
  3481. title: "\u5BFC\u5165B\u7AD9\u5C4F\u853D\u8BBE\u5B9A",
  3482. content: `
  3483. <p>1. \u968F\u4FBF\u70B9\u5F00\u4E00\u4E2A\u89C6\u9891\uFF0C\u53F3\u4FA7\u5F39\u5E55\u5217\u8868\u6253\u5F00\u5C4F\u853D\u8BBE\u5B9A\uFF0C\u5BF9\u5C4F\u853D\u5217\u8868\u53F3\u952E\uFF0C\u5BFC\u51FAxml\u6216json\u6587\u4EF6\u3002</p>
  3484. <p>2. \u70B9\u51FB\u4E0B\u9762\u3010\u5F00\u59CB\u5BFC\u5165\u3011\u6309\u94AE\uFF0C\u9009\u62E9\u521A\u4E0B\u8F7D\u7684xml\u6216json\u6587\u4EF6</p>
  3485. `,
  3486. okText: "\u5F00\u59CB\u5BFC\u5165",
  3487. onOk: importBiliSettings
  3488. });
  3489. });
  3490. function importBiliSettings() {
  3491. var _a;
  3492. const $import = $(
  3493. '<input type="file" style="display:none" accept=".xml,.json"/>'
  3494. );
  3495. $import.on("change", (e) => {
  3496. var _a2;
  3497. const file = (_a2 = e.target.files) == null ? void 0 : _a2[0];
  3498. $import.remove();
  3499. if (!file)
  3500. return;
  3501. const fd = new FileReader();
  3502. fd.onload = () => {
  3503. const result = fd.result;
  3504. if (typeof result === "string") {
  3505. if (file.name.endsWith(".xml"))
  3506. importBiliXML(result);
  3507. if (file.name.endsWith(".json"))
  3508. importBiliJSON(result);
  3509. }
  3510. };
  3511. fd.readAsText(file);
  3512. });
  3513. $import.appendTo("body");
  3514. (_a = $import.get(0)) == null ? void 0 : _a.click();
  3515. }
  3516. function importBiliXML(xml) {
  3517. const $xml = $(xml);
  3518. const $activeItems = $xml.find('item[enabled="true"]');
  3519. let rules = $activeItems.map((_, el) => el.textContent).get().filter((t) => /^(t|r)=/.test(t)).map((t) => t.replace(/^(t|r)=/, ""));
  3520. mergeRules(rules);
  3521. }
  3522. async function importBiliJSON(jsonStr) {
  3523. try {
  3524. let json = await parseToJSON(jsonStr);
  3525. let rules = json.filter((o) => o.opened && o.type !== 2).map((o) => o.type === 1 ? `/${o.filter}/` : o.filter);
  3526. mergeRules(rules);
  3527. } catch (error) {
  3528. player.message.info("\u5BFC\u5165\u5931\u8D25\uFF0CJSON \u683C\u5F0F\u6709\u8BEF", 3e3);
  3529. }
  3530. }
  3531. function mergeRules(rules) {
  3532. const mergedRules = /* @__PURE__ */ new Set([...player.localConfig.danmakuFilter, ...rules]);
  3533. player.message.info(
  3534. `\u5BFC\u5165 ${mergedRules.size - player.localConfig.danmakuFilter.length} \u6761\u89C4\u5219`
  3535. );
  3536. player.configSaveToLocal("danmakuFilter", [...mergedRules]);
  3537. refreshDanmaku();
  3538. refreshFilterDom();
  3539. }
  3540. const $input = $filter.find('[name="filter-input"]');
  3541. $input.on("keypress", (e) => {
  3542. if (e.key === "Enter")
  3543. addFilter($input.val());
  3544. });
  3545. function refreshFilterDom() {
  3546. const filters = player.localConfig.danmakuFilter;
  3547. let html = "";
  3548. filters.forEach((filter, idx) => {
  3549. html += `<div class="ft-row">
  3550. <div class="ft-content">${filter}</div>
  3551. <div class="ft-op"><a key="delete" data-idx="${idx}">\u5220\u9664</a></div>
  3552. </div>`;
  3553. });
  3554. $filter.find(".ft-body").empty().append(html);
  3555. $filter.find("[key=delete]").on("click", (e) => {
  3556. const idx = parseInt($(e.target).attr("data-idx"));
  3557. deleteFilter(idx);
  3558. });
  3559. $filter.find("#filter-count").text(filters.length);
  3560. }
  3561. function deleteFilter(idx) {
  3562. player.localConfig.danmakuFilter.splice(idx, 1);
  3563. player.configSaveToLocal("danmakuFilter", player.localConfig.danmakuFilter);
  3564. refreshDanmaku();
  3565. refreshFilterDom();
  3566. }
  3567. function addFilter(filter) {
  3568. const filters = player.localConfig.danmakuFilter;
  3569. $input.val("");
  3570. if (!filter || filters.includes(filter))
  3571. return;
  3572. if (/^\/.*\/$/.test(filter)) {
  3573. try {
  3574. new RegExp(filter.slice(1, -1));
  3575. } catch (error) {
  3576. return;
  3577. }
  3578. }
  3579. filters.push(filter);
  3580. player.configSaveToLocal("danmakuFilter", filters);
  3581. refreshFilterDom();
  3582. refreshDanmaku();
  3583. }
  3584. refreshFilterDom();
  3585. }
  3586.  
  3587. var Commands = /* @__PURE__ */ ((Commands2) => {
  3588. Commands2["danmakuSwitch"] = "switchDanmaku";
  3589. Commands2["danmakuSyncBack"] = "danmakuSyncBack";
  3590. Commands2["danmakuSyncForward"] = "danmakuSyncForward";
  3591. Commands2["danmakuSyncRestore"] = "danmakuSyncRestore";
  3592. return Commands2;
  3593. })(Commands || {});
  3594.  
  3595. const $danmakuOverlay = tabs([
  3596. {
  3597. name: "\u641C\u7D22",
  3598. content: `<div id="k-player-danmaku-search-form">
  3599. <label>
  3600. <span>\u641C\u7D22\u756A\u5267\u540D\u79F0</span>
  3601. <input type="text" id="animeName" class="k-input" />
  3602. </label>
  3603. <div style="min-height:24px; padding-top:4px">
  3604. <span id="tips"></span>
  3605. </div>
  3606. <label>
  3607. <span>\u756A\u5267\u540D\u79F0</span>
  3608. <select id="animes" class="k-select"></select>
  3609. </label>
  3610. <label>
  3611. <span>\u7AE0\u8282</span>
  3612. <select id="episodes" class="k-select"></select>
  3613. </label>
  3614. <label>
  3615. <span class="open-danmaku-list">
  3616. <span>\u5F39\u5E55\u5217\u8868</span><small data-id="count"></small>
  3617. </span>
  3618. </label>
  3619. <span class="specific-thanks">\u5F39\u5E55\u670D\u52A1\u7531 \u5F39\u5F39play \u63D0\u4F9B</span>
  3620. </div>`
  3621. },
  3622. {
  3623. name: "\u8BBE\u7F6E",
  3624. content: `
  3625. <div id="k-player-danmaku-setting-form" class="k-settings-list">
  3626. <label class="k-settings-item">
  3627. <input type="checkbox" name="showDanmaku" />
  3628. <span>\u663E\u793A\u5F39\u5E55(<k-shortcuts-tip command="${Commands.danmakuSwitch}"></k-shortcuts-tip>)</span>
  3629. </label>
  3630. <label class="k-settings-item">
  3631. <input type="checkbox" name="showPbp" />
  3632. <span>\u663E\u793A\u9AD8\u80FD\u8FDB\u5EA6\u6761</span>
  3633. </label>
  3634. <div class="k-settings-item">
  3635. <label class="k-settings-item" title="\u542F\u7528\u540E\u5408\u5E76\u663E\u793A\u91CD\u590D\u7684\u5F39\u5E55">
  3636. <input type="checkbox" name="danmakuMerge" />
  3637. <span>\u5408\u5E76\u5F39\u5E55</span>
  3638. </label>
  3639. <label class="k-settings-item" title="\u542F\u7528\u540E\u5F53\u5F39\u5E55\u8FC7\u591A\u7684\u65F6\u5019\u53EF\u4EE5\u91CD\u53E0\u663E\u793A">
  3640. <input type="checkbox" name="danmakuOverlap" />
  3641. <span>\u91CD\u53E0\u5F39\u5E55</span>
  3642. </label>
  3643. </div>
  3644. <label class="k-settings-item">
  3645. <span>\u900F\u660E\u5EA6&#12288;</span>
  3646. <input type="range" name="opacity" step="0.01" min="0" max="1" />
  3647. </label>
  3648. <label class="k-settings-item">
  3649. <span>\u5F39\u5E55\u5927\u5C0F</span>
  3650. <input type="range" name="danmakuFontSize" step="0.01" min="0.5" max="2" />
  3651. </label>
  3652. <label class="k-settings-item">
  3653. <span>\u5F39\u5E55\u901F\u5EA6</span>
  3654. <input type="range" name="danmakuSpeed" step="0.01" min="0.5" max="1.5" />
  3655. </label>
  3656. <label class="k-settings-item" title="\u57FA\u51C6\u4E3A 24 \u5206\u949F 3000 \u6761\u5F39\u5E55">
  3657. <span>\u5F39\u5E55\u5BC6\u5EA6</span>
  3658. <input type="range" name="danmakuDensity" step="0.01" min="0.5" max="2" />
  3659. </label>
  3660. <label class="k-settings-item">
  3661. <span>\u5F39\u5E55\u533A\u57DF</span>
  3662. <input type="range" name="danmakuScrollAreaPercent" step="0.01" min="0.25" max="1" />
  3663. </label>
  3664. <div class="k-settings-item" style="height:24px">
  3665. <div>\u5F39\u5E55\u7C7B\u578B</div>
  3666. <label class="k-settings-item" title="\u9876\u90E8\u5F39\u5E55">
  3667. <input type="checkbox" name="danmakuMode" value="top"/>
  3668. <span>\u9876</span>
  3669. </label>
  3670. <label class="k-settings-item" title="\u5E95\u90E8\u5F39\u5E55">
  3671. <input type="checkbox" name="danmakuMode" value="bottom"/>
  3672. <span>\u5E95</span>
  3673. </label>
  3674. <label class="k-settings-item" title="\u5F69\u8272\u5F39\u5E55">
  3675. <input type="checkbox" name="danmakuMode" value="color" />
  3676. <span>\u5F69</span>
  3677. </label>
  3678. </div>
  3679. </div>
  3680. `
  3681. },
  3682. {
  3683. name: "\u8FC7\u6EE4",
  3684. content: `
  3685. <div id="k-player-danmaku-filter-form">
  3686. <div class="ft-input-wrapper">
  3687. <div>
  3688. <input name="filter-input" placeholder="\u53EF\u6B63\u5219\u201C/\u201D\u5F00\u5934\u201C/\u201D\u7ED3\u5C3E" class="k-select"/>
  3689. </div>
  3690. <label id="k-player-danmaku-filter-import" title="\u5BFC\u5165B\u7AD9\u5F39\u5E55\u8FC7\u6EE4\u8BBE\u7F6E">
  3691. \u5BFC\u5165
  3692. </label>
  3693. </div>
  3694.  
  3695. <div id="k-player-danmaku-filter-table">
  3696. <div class="ft-row" style="pointer-events:none;">
  3697. <div class="ft-content">\u5185\u5BB9(<span id="filter-count"></span>)</div>
  3698. <div class="ft-op">\u64CD\u4F5C</div>
  3699. </div>
  3700. <div class="ft-body"></div>
  3701. </div>
  3702. </div>
  3703. `
  3704. }
  3705. ]);
  3706. $danmakuOverlay.attr("id", "k-player-danmaku-overlay");
  3707. const $danmakuSwitch = $(`
  3708. <button
  3709. class="plyr__controls__item plyr__control plyr__switch-danmaku plyr__custom"
  3710. type="button"
  3711. data-plyr="switch-danmaku"
  3712. aria-label="switch-danmaku"
  3713. >
  3714. <svg class="icon--not-pressed" focusable="false" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="bpx-svg-sprite-danmu-off"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.085 4.891l-.999-1.499a1.008 1.008 0 011.679-1.118l1.709 2.566c.54-.008 1.045-.012 1.515-.012h.13c.345 0 .707.003 1.088.007l1.862-2.59a1.008 1.008 0 011.637 1.177l-1.049 1.46c.788.02 1.631.046 2.53.078 1.958.069 3.468 1.6 3.74 3.507.088.613.13 2.158.16 3.276l.001.027c.01.333.017.63.025.856a.987.987 0 01-1.974.069c-.008-.23-.016-.539-.025-.881v-.002c-.028-1.103-.066-2.541-.142-3.065-.143-1.004-.895-1.78-1.854-1.813-2.444-.087-4.466-.13-6.064-.131-1.598 0-3.619.044-6.063.13a2.037 2.037 0 00-1.945 1.748c-.15 1.04-.225 2.341-.225 3.904 0 1.874.11 3.474.325 4.798.154.949.95 1.66 1.91 1.708a97.58 97.58 0 005.416.139.988.988 0 010 1.975c-2.196 0-3.61-.047-5.513-.141A4.012 4.012 0 012.197 17.7c-.236-1.446-.351-3.151-.351-5.116 0-1.64.08-3.035.245-4.184A4.013 4.013 0 015.92 4.96c.761-.027 1.483-.05 2.164-.069zm4.436 4.707h-1.32v4.63h2.222v.848h-2.618v1.078h2.431a5.01 5.01 0 013.575-3.115V9.598h-1.276a8.59 8.59 0 00.748-1.42l-1.089-.384a14.232 14.232 0 01-.814 1.804h-1.518l.693-.308a8.862 8.862 0 00-.814-1.408l-1.045.352c.297.396.572.847.825 1.364zm-4.18 3.564l.154-1.485h1.98V8.289h-3.2v.979h2.067v1.43H7.483l-.308 3.454h2.277c0 1.166-.044 1.925-.12 2.277-.078.352-.386.528-.936.528-.308 0-.616-.022-.902-.055l.297 1.067.062.004c.285.02.551.04.818.04 1.001-.066 1.562-.418 1.694-1.056.11-.638.176-1.903.176-3.795h-2.2zm7.458.11v-.858h-1.254v.858H15.8zm-2.376-.858v.858h-1.199v-.858h1.2zm-1.199-.946h1.2v-.902h-1.2v.902zm2.321 0v-.902H15.8v.902h-1.254zm3.517 10.594a4 4 0 100-8 4 4 0 000 8zm-.002-1.502a2.5 2.5 0 01-2.217-3.657l3.326 3.398a2.49 2.49 0 01-1.109.259zm2.5-2.5c0 .42-.103.815-.286 1.162l-3.328-3.401a2.5 2.5 0 013.614 2.239z"></path></svg>
  3715. <svg class="icon--pressed" focusable="false" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="bpx-svg-sprite-danmu-on"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.989 4.828c-.47 0-.975.004-1.515.012l-1.71-2.566a1.008 1.008 0 00-1.678 1.118l.999 1.5c-.681.018-1.403.04-2.164.068a4.013 4.013 0 00-3.83 3.44c-.165 1.15-.245 2.545-.245 4.185 0 1.965.115 3.67.35 5.116a4.012 4.012 0 003.763 3.363l.906.046c1.205.063 1.808.095 3.607.095a.988.988 0 000-1.975c-1.758 0-2.339-.03-3.501-.092l-.915-.047a2.037 2.037 0 01-1.91-1.708c-.216-1.324-.325-2.924-.325-4.798 0-1.563.076-2.864.225-3.904.14-.977.96-1.713 1.945-1.747 2.444-.087 4.465-.13 6.063-.131 1.598 0 3.62.044 6.064.13.96.034 1.71.81 1.855 1.814.075.524.113 1.962.141 3.065v.002c.01.342.017.65.025.88a.987.987 0 101.974-.068c-.008-.226-.016-.523-.025-.856v-.027c-.03-1.118-.073-2.663-.16-3.276-.273-1.906-1.783-3.438-3.74-3.507-.9-.032-1.743-.058-2.531-.078l1.05-1.46a1.008 1.008 0 00-1.638-1.177l-1.862 2.59c-.38-.004-.744-.007-1.088-.007h-.13zm.521 4.775h-1.32v4.631h2.222v.847h-2.618v1.078h2.618l.003.678c.36.026.714.163 1.01.407h.11v-1.085h2.694v-1.078h-2.695v-.847H16.8v-4.63h-1.276a8.59 8.59 0 00.748-1.42L15.183 7.8a14.232 14.232 0 01-.814 1.804h-1.518l.693-.308a8.862 8.862 0 00-.814-1.408l-1.045.352c.297.396.572.847.825 1.364zm-4.18 3.564l.154-1.485h1.98V8.294h-3.2v.98H9.33v1.43H7.472l-.308 3.453h2.277c0 1.166-.044 1.925-.12 2.277-.078.352-.386.528-.936.528-.308 0-.616-.022-.902-.055l.297 1.067.062.005c.285.02.551.04.818.04 1.001-.067 1.562-.419 1.694-1.057.11-.638.176-1.903.176-3.795h-2.2zm7.458.11v-.858h-1.254v.858h1.254zm-2.376-.858v.858h-1.199v-.858h1.2zm-1.199-.946h1.2v-.902h-1.2v.902zm2.321 0v-.902h1.254v.902h-1.254z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M22.846 14.627a1 1 0 00-1.412.075l-5.091 5.703-2.216-2.275-.097-.086-.008-.005a1 1 0 00-1.322 1.493l2.963 3.041.093.083.007.005c.407.315 1 .27 1.354-.124l5.81-6.505.08-.102.005-.008a1 1 0 00-.166-1.295z" fill="var(--color)"></path></svg>
  3716. <span class="label--not-pressed plyr__tooltip">\u5F00\u542F\u5F39\u5E55(<k-shortcuts-tip command="${Commands.danmakuSwitch}"></k-shortcuts-tip>)</span>
  3717. <span class="label--pressed plyr__tooltip">\u5173\u95ED\u5F39\u5E55(<k-shortcuts-tip command="${Commands.danmakuSwitch}"></k-shortcuts-tip>)</span>
  3718. </button>`);
  3719. const $danmakuSettingButton = $(`<button class="plyr__controls__item plyr__control" type="button" data-plyr="danmaku-setting">
  3720. <svg class="icon--not-pressed" focusable="false" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" id="bpx-svg-sprite-new-danmu-setting"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.645 4.881l1.06-1.473a.998.998 0 10-1.622-1.166L13.22 4.835a110.67 110.67 0 00-1.1-.007h-.131c-.47 0-.975.004-1.515.012L8.783 2.3A.998.998 0 007.12 3.408l.988 1.484c-.688.019-1.418.042-2.188.069a4.013 4.013 0 00-3.83 3.44c-.165 1.15-.245 2.545-.245 4.185 0 1.965.115 3.67.35 5.116a4.012 4.012 0 003.763 3.363c1.903.094 3.317.141 5.513.141a.988.988 0 000-1.975 97.58 97.58 0 01-5.416-.139 2.037 2.037 0 01-1.91-1.708c-.216-1.324-.325-2.924-.325-4.798 0-1.563.076-2.864.225-3.904.14-.977.96-1.713 1.945-1.747 2.444-.087 4.465-.13 6.063-.131 1.598 0 3.62.044 6.064.13.96.034 1.71.81 1.855 1.814.075.524.113 1.962.141 3.065v.002c.005.183.01.07.014-.038.004-.096.008-.189.011-.081a.987.987 0 101.974-.069c-.004-.105-.007-.009-.011.09-.002.056-.004.112-.007.135l-.002.01a.574.574 0 01-.005-.091v-.027c-.03-1.118-.073-2.663-.16-3.276-.273-1.906-1.783-3.438-3.74-3.507-.905-.032-1.752-.058-2.543-.079zm-3.113 4.703h-1.307v4.643h2.2v.04l.651-1.234c.113-.215.281-.389.482-.509v-.11h.235c.137-.049.283-.074.433-.074h1.553V9.584h-1.264a8.5 8.5 0 00.741-1.405l-1.078-.381c-.24.631-.501 1.23-.806 1.786h-1.503l.686-.305c-.228-.501-.5-.959-.806-1.394l-1.034.348c.294.392.566.839.817 1.35zm-1.7 5.502h2.16l-.564 1.068h-1.595v-1.068zm-2.498-1.863l.152-1.561h1.96V8.289H7.277v.969h2.048v1.435h-1.84l-.306 3.51h2.254c0 1.155-.043 1.906-.12 2.255-.076.348-.38.523-.925.523-.305 0-.61-.022-.893-.055l.294 1.056.061.005c.282.02.546.039.81.039.991-.065 1.547-.414 1.677-1.046.11-.631.175-1.883.175-3.757H8.334zm5.09-.8v.85h-1.188v-.85h1.187zm-1.188-.955h1.187v-.893h-1.187v.893zm2.322.007v-.893h1.241v.893h-1.241zm.528 2.757a1.26 1.26 0 011.087-.627l4.003-.009a1.26 1.26 0 011.094.63l1.721 2.982c.226.39.225.872-.001 1.263l-1.743 3a1.26 1.26 0 01-1.086.628l-4.003.009a1.26 1.26 0 01-1.094-.63l-1.722-2.982a1.26 1.26 0 01.002-1.263l1.742-3zm1.967.858a1.26 1.26 0 00-1.08.614l-.903 1.513a1.26 1.26 0 00-.002 1.289l.885 1.492c.227.384.64.62 1.086.618l2.192-.005a1.26 1.26 0 001.08-.615l.904-1.518a1.26 1.26 0 00.001-1.288l-.884-1.489a1.26 1.26 0 00-1.086-.616l-2.193.005zm2.517 2.76a1.4 1.4 0 11-2.8 0 1.4 1.4 0 012.8 0z"></path></svg>
  3721. <span class="label--not-pressed plyr__tooltip">\u5F39\u5E55\u8BBE\u7F6E</span>
  3722. </button>`);
  3723. const $danmaku = popover($danmakuSettingButton, $danmakuOverlay, "click");
  3724. const $danmakuContainer = $('<div id="k-player-danmaku"></div>');
  3725. const $pbp = $(`
  3726. <svg
  3727. viewBox="0 0 1000 100"
  3728. preserveAspectRatio="none"
  3729. id="k-player-pbp"
  3730. >
  3731. <defs>
  3732. <clipPath id="k-player-pbp-curve-path" clipPathUnits="userSpaceOnUse">
  3733. <path d=""></path>
  3734. </clipPath>
  3735. </defs>
  3736.  
  3737. <g
  3738. fill-opacity="0.2"
  3739. clip-path="url(#k-player-pbp-curve-path)"
  3740. hover-bind="1"
  3741. >
  3742. <rect x="0" y="0" width="100%" height="100%" fill="rgb(255,255,255)"></rect>
  3743. <rect id="k-player-pbp-played-path" x="0" y="0" width="0" height="100%" fill="currentColor"></rect>
  3744. </g>
  3745. </svg>
  3746. `);
  3747.  
  3748. var css$7 = "#k-player-danmaku {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 10;\n pointer-events: none;\n font-family: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;\n}\n#k-player-danmaku-notification {\n line-height: 1.6;\n}\n#k-player-danmaku-notification .title {\n text-align: center;\n font-weight: 500;\n font-size: 16px;\n}\n#k-player-danmaku-notification img {\n width: 40%;\n display: block;\n margin: 0 auto 8px;\n}\n#k-player-danmaku-notification a {\n color: var(--k-player-primary-color);\n}\n#k-player-danmaku-notification p {\n margin: 0;\n}\n#k-player-danmaku-notification p:not(:last-child) {\n margin-bottom: 8px;\n}\n#k-player-danmaku .danmaku {\n font-size: calc(var(--danmaku-font-size, 24px) * var(--danmaku-font-size-scale, 1));\n font-family: SimHei, \"Microsoft JhengHei\", Arial, Helvetica, sans-serif;\n font-weight: bold;\n text-shadow: black 1px 0px 1px, black 0px 1px 1px, black 0px -1px 1px, black -1px 0px 1px;\n line-height: 1.3;\n}\n@media (max-width: 576px) {\n #k-player-danmaku .danmaku {\n --danmaku-font-size: 16px;\n }\n}\n#k-player-danmaku-overlay {\n width: 210px;\n}\n#k-player-danmaku-search-form > * {\n font-size: 14px;\n box-sizing: border-box;\n text-align: left;\n}\n#k-player-danmaku-search-form input,\n#k-player-danmaku-search-form select {\n display: block;\n margin-top: 4px;\n width: 100%;\n}\n#k-player-danmaku-search-form label {\n display: block;\n}\n#k-player-danmaku-search-form label span {\n line-height: 1.4;\n}\n#k-player-danmaku-search-form label + label {\n margin-top: 8px;\n}\n#k-player-danmaku-search-form .open-danmaku-list {\n cursor: pointer;\n transition: color 0.15s;\n}\n#k-player-danmaku-search-form .open-danmaku-list:hover * {\n color: var(--k-player-primary-color);\n}\n#k-player-danmaku-search-form .specific-thanks {\n color: #757575;\n font-size: 12px;\n position: absolute;\n left: 8px;\n bottom: 8px;\n user-select: none;\n}\n#k-player-danmaku-setting-form {\n padding: 0;\n}\n#k-player-danmaku-setting-form input {\n margin: 0;\n}\n#k-player-danmaku-filter-form {\n padding: 0;\n}\n#k-player-danmaku-filter-form .ft-input-wrapper {\n display: flex;\n align-items: center;\n}\n#k-player-danmaku-filter-form .ft-input-wrapper > div {\n flex: 1;\n}\n#k-player-danmaku-filter-form .ft-input-wrapper > div input {\n width: 100%;\n}\n#k-player-danmaku-filter-form .ft-input-wrapper label {\n margin-left: 8px;\n border: 0;\n color: white;\n cursor: pointer;\n transition: color 0.15s;\n white-space: nowrap;\n user-select: none;\n}\n#k-player-danmaku-filter-form .ft-input-wrapper label:hover {\n color: var(--k-player-primary-color);\n}\n#k-player-danmaku-filter-table {\n margin-top: 8px;\n}\n#k-player-danmaku-filter-table .ft-body {\n height: 200px;\n overflow: auto;\n}\n#k-player-danmaku-filter-table .ft-body::-webkit-scrollbar {\n display: none;\n}\n#k-player-danmaku-filter-table .ft-row {\n display: flex;\n border-radius: 4px;\n transition: all 0.15s;\n}\n#k-player-danmaku-filter-table .ft-row:hover {\n background: var(--k-player-background-highlight);\n}\n#k-player-danmaku-filter-table .ft-content {\n padding: 4px 8px;\n flex: 1px;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n#k-player-danmaku-filter-table .ft-op {\n flex-shrink: 0;\n padding: 4px 8px;\n}\n#k-player-danmaku-filter-table a {\n color: white;\n cursor: pointer;\n transition: color 0.15s;\n user-select: none;\n}\n#k-player-danmaku-filter-table a:hover {\n color: var(--k-player-primary-color);\n}\n\n#k-player-pbp {\n position: absolute;\n top: -17px;\n height: 28px;\n -webkit-appearance: none;\n appearance: none;\n left: 0;\n position: absolute;\n margin-left: calc(var(--plyr-range-thumb-height, 13px) * -0.5);\n margin-right: calc(var(--plyr-range-thumb-height, 13px) * -0.5);\n width: calc(100% + var(--plyr-range-thumb-height, 13px));\n pointer-events: none;\n}\n\n#k-player-pbp-played-path {\n color: var(--k-player-primary-color);\n}\n\n.plyr__controls__item.plyr__progress__container:hover #k-player-pbp {\n top: -18px;\n}\n\n.plyr__switch-danmaku .icon--pressed {\n --color: var(--k-player-primary-color);\n transition: 0.3s all ease;\n}\n\n.plyr__switch-danmaku:hover .icon--pressed {\n --color: white;\n}\n\n.k-popover-active .plyr__tooltip {\n display: none;\n}\n\n.k-player-danmaku-list * {\n box-sizing: border-box;\n font-size: 14px;\n line-height: normal;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\", sans-serif;\n}\n.k-player-danmaku-list .k-modal-body {\n padding: 0;\n}\n.k-player-danmaku-list-wrapper {\n height: 500px;\n max-height: 80vh;\n display: flex;\n flex-direction: column;\n}\n.k-player-danmaku-list-source-filter {\n display: flex;\n align-items: center;\n white-space: nowrap;\n padding: 16px;\n}\n.k-player-danmaku-list-source {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n.k-player-danmaku-list-table-wrapper {\n flex: 1;\n min-height: 0;\n overflow-y: scroll;\n position: relative;\n}\n.k-player-danmaku-list-table-wrapper::-webkit-scrollbar {\n width: 8px;\n}\n.k-player-danmaku-list-table-wrapper::-webkit-scrollbar-thumb {\n background: rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n}\n.k-player-danmaku-list-table-wrapper::-webkit-scrollbar-thumb:hover {\n background-color: rgba(0, 0, 0, 0.45);\n}\n.k-player-danmaku-list-table {\n width: 100%;\n border-spacing: 0;\n border-collapse: separate;\n table-layout: fixed;\n}\n.k-player-danmaku-list-table th,\n.k-player-danmaku-list-table td {\n padding: 8px;\n border-bottom: 1px solid #f1f1f1;\n word-wrap: break-word;\n word-break: break-all;\n white-space: nowrap;\n}\n.k-player-danmaku-list-table th {\n position: sticky;\n background-color: white;\n top: 0;\n z-index: 1;\n}\n.k-player-danmaku-list-table th:nth-child(1) {\n width: 55px;\n}\n.k-player-danmaku-list-table td:nth-child(2) {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.k-player-danmaku-list-table th:nth-child(3) {\n width: 100px;\n}";
  3749. injectCss(css$7,{});
  3750.  
  3751. function createProgressBarPower(duration, comments) {
  3752. const data = comments.map((cmt) => cmt.time);
  3753. const svgMaxLength = 1e3;
  3754. const size = 100;
  3755. const stepLength = svgMaxLength / size;
  3756. const stepTime = duration / size;
  3757. const counts = [];
  3758. let i = 0, j = 0;
  3759. while (i++ <= size) {
  3760. const base = stepTime * i;
  3761. let count = 0;
  3762. while (data[j++] < base) {
  3763. count++;
  3764. }
  3765. counts.push(count);
  3766. }
  3767. let start = "M 0 100, L ";
  3768. let end = " 1000.0 80.0 L 1000 100 Z";
  3769. const maxCount = Math.max(Math.max(...counts), 1);
  3770. const points = [];
  3771. counts.forEach((count, i2) => {
  3772. const x = i2 * stepLength;
  3773. const y = (1 - count / maxCount) * 80;
  3774. if (i2 !== 0)
  3775. points.push({ x: (x - stepLength / 2).toFixed(2), y: y.toFixed(2) });
  3776. if (i2 !== counts.length - 1)
  3777. points.push({ x: x.toFixed(2), y: y.toFixed(2) });
  3778. });
  3779. for (let i2 = 0; i2 < points.length; ) {
  3780. const p1 = points[i2++];
  3781. const p2 = points[i2++];
  3782. start += `${p1.x} ${p1.y} C ${p2.x} ${p1.y}, ${p2.x} ${p2.y},`;
  3783. }
  3784. $pbp.find("path").attr("d", start + end);
  3785. $(".plyr__controls__item.plyr__progress__container .plyr__progress").append(
  3786. $pbp
  3787. );
  3788. }
  3789.  
  3790. function parsePakkuDanmakuXML(xml) {
  3791. const $xml = $(xml);
  3792. return $xml.find("d").map((_, el) => {
  3793. const p = el.getAttribute("p");
  3794. const [
  3795. time,
  3796. type,
  3797. fontSize,
  3798. color,
  3799. sendTime,
  3800. pool,
  3801. senderHash,
  3802. id,
  3803. weight
  3804. ] = p.split(",");
  3805. return {
  3806. mode: { 1: "rtl", 4: "bottom", 5: "top" }[type] || "rtl",
  3807. text: el.textContent,
  3808. time: parseFloat(time),
  3809. style: { color: convert32ToHex(color) },
  3810. user: { source: "Pakku", id: senderHash }
  3811. };
  3812. }).toArray();
  3813. }
  3814.  
  3815. Object.assign(defaultConfig, {
  3816. showDanmaku: false,
  3817. opacity: 0.6,
  3818. showPbp: false,
  3819. danmakuSpeed: 1,
  3820. danmakuFontSize: 1,
  3821. danmakuMode: ["top", "color"],
  3822. danmakuFilter: [],
  3823. danmakuScrollAreaPercent: 1,
  3824. danmakuMerge: false,
  3825. danmakuDensity: 1,
  3826. danmakuOverlap: false,
  3827. danmakuSourceDisabledList: []
  3828. });
  3829. const baseDanmkuSpeed = 130;
  3830. let state = 0 /* unSearched */;
  3831. const $animeName = $danmaku.find("#animeName");
  3832. const $animes = $danmaku.find("#animes");
  3833. const $episodes = $danmaku.find("#episodes");
  3834. const $openDanmakuList = $danmaku.find(".open-danmaku-list");
  3835. const $tips = $danmaku.find("#tips");
  3836. const $showDanmaku = $danmaku.find("[name='showDanmaku']");
  3837. const $showPbp = $danmaku.find("[name='showPbp']");
  3838. const $danmakuMerge = $danmaku.find("[name='danmakuMerge']");
  3839. const $danmakuOverlap = $danmaku.find(
  3840. "[name='danmakuOverlap']"
  3841. );
  3842. const $opacity = $danmaku.find("[name='opacity']");
  3843. const $danmakuSpeed = $danmaku.find("[name='danmakuSpeed']");
  3844. const $danmakuFontSize = $danmaku.find(
  3845. "[name='danmakuFontSize']"
  3846. );
  3847. const $danmakuDensity = $danmaku.find(
  3848. "[name='danmakuDensity']"
  3849. );
  3850. const $danmakuScrollAreaPercent = $danmaku.find(
  3851. "[name='danmakuScrollAreaPercent']"
  3852. );
  3853. const $danmakuMode = $danmaku.find("[name='danmakuMode']");
  3854. let core;
  3855. let comments;
  3856. let player$1;
  3857. let videoInfo;
  3858. let syncDiff = 0;
  3859. function refreshDanmaku() {
  3860. stop();
  3861. autoStart();
  3862. }
  3863. const showTips = (message, duration = 1500) => {
  3864. $tips.text(message).fadeIn("fast").delay(duration).fadeOut("fast");
  3865. };
  3866. const stop = () => {
  3867. core == null ? void 0 : core.hide();
  3868. };
  3869. const start = () => {
  3870. function run() {
  3871. if (!player$1.media.duration)
  3872. return requestAnimationFrame(run);
  3873. if (!comments)
  3874. return;
  3875. const nextComments = adjustCommentCount(comments);
  3876. $openDanmakuList.find('[data-id="count"]').text(`(${nextComments.length}/${comments.length})`);
  3877. if (player$1.localConfig.showDanmaku) {
  3878. if (!core) {
  3879. core = new Danmaku({
  3880. container: $danmakuContainer[0],
  3881. media: player$1.media,
  3882. comments: nextComments,
  3883. merge: player$1.localConfig.danmakuMerge,
  3884. scrollAreaPercent: player$1.localConfig.danmakuScrollAreaPercent,
  3885. overlap: player$1.localConfig.danmakuOverlap
  3886. });
  3887. } else {
  3888. core.reload(nextComments);
  3889. core.show();
  3890. }
  3891. core.speed = baseDanmkuSpeed * player$1.localConfig.danmakuSpeed;
  3892. }
  3893. if (player$1.localConfig.showPbp) {
  3894. createProgressBarPower(player$1.media.duration, nextComments);
  3895. }
  3896. }
  3897. requestAnimationFrame(run);
  3898. };
  3899. const adjustCommentCount = (comments2) => {
  3900. let ret = comments2;
  3901. ret = ret.filter((cmt) => {
  3902. const isFilterMatch = player$1.localConfig.danmakuFilter.some((filter) => {
  3903. if (/^\/.*\/$/.test(filter)) {
  3904. const re = new RegExp(filter.slice(1, -1));
  3905. return re.test(cmt.text);
  3906. } else {
  3907. return cmt.text.includes(filter);
  3908. }
  3909. });
  3910. return !isFilterMatch;
  3911. });
  3912. ret = ret.filter((cmt) => {
  3913. const isDisabledSource = player$1.localConfig.danmakuSourceDisabledList.includes(cmt.user.source);
  3914. return !isDisabledSource;
  3915. });
  3916. const mode = player$1.localConfig.danmakuMode;
  3917. if (!mode.includes("color")) {
  3918. ret = ret.filter(
  3919. (cmt) => cmt.style.color === "#ffffff"
  3920. );
  3921. }
  3922. if (!mode.includes("bottom")) {
  3923. ret = ret.filter((cmt) => cmt.mode !== "bottom");
  3924. }
  3925. if (!mode.includes("top")) {
  3926. ret = ret.filter((cmt) => cmt.mode !== "top");
  3927. }
  3928. const maxLength = Math.round(
  3929. 3e3 / (24 * 60) * player$1.media.duration * player$1.localConfig.danmakuDensity
  3930. );
  3931. if (ret.length > maxLength) {
  3932. let ratio = ret.length / maxLength;
  3933. ret = [...new Array(maxLength)].map((_, i) => ret[Math.floor(i * ratio)]);
  3934. }
  3935. return ret;
  3936. };
  3937. const loadEpisode = async (episodeId) => {
  3938. stop();
  3939. comments = await getComments(episodeId);
  3940. syncDiff = 0;
  3941. state = 3 /* getComments */;
  3942. start();
  3943. player$1.message.info(`\u756A\u5267\uFF1A${$animes.find(":selected").text()}`, 2e3);
  3944. player$1.message.info(`\u7AE0\u8282\uFF1A${$episodes.find(":selected").text()}`, 2e3);
  3945. player$1.message.info(`\u5DF2\u52A0\u8F7D ${comments.length} \u6761\u5F39\u5E55`, 2e3);
  3946. };
  3947. const searchAnime = async (name) => {
  3948. state = 1 /* searched */;
  3949. name || (name = $animeName.val());
  3950. if (!name || name.length < 2)
  3951. return showTips("\u756A\u5267\u540D\u79F0\u4E0D\u5C11\u4E8E2\u4E2A\u5B57");
  3952. try {
  3953. const animes = await searchAnimeWithEpisode(name);
  3954. if (animes.length === 0)
  3955. return showTips("\u672A\u641C\u7D22\u5230\u756A\u5267");
  3956. updateAnimes(animes);
  3957. findEpisode(animes);
  3958. } catch (error) {
  3959. showTips("\u5F39\u5E55\u670D\u52A1\u5F02\u5E38\uFF0C\u7A0D\u540E\u518D\u8BD5", 3e3);
  3960. }
  3961. };
  3962. const findEpisode = async (animes) => {
  3963. if (!animes)
  3964. return;
  3965. const anime = animes.find((anime2) => {
  3966. const storeAnime = storageAnimeName(videoInfo.rawName);
  3967. if (storeAnime) {
  3968. return anime2.animeId === storeAnime.animeId;
  3969. }
  3970. return anime2.animeTitle === videoInfo.rawName;
  3971. });
  3972. if (anime) {
  3973. let episodeName = videoInfo.episode;
  3974. let episode;
  3975. let storedEpisodeId = storageEpisodeName(
  3976. `${videoInfo.rawName}.${videoInfo.episode}`
  3977. );
  3978. if (storedEpisodeId) {
  3979. episode = anime.episodes.find(
  3980. (episode2) => String(episode2.episodeId) === storedEpisodeId
  3981. );
  3982. }
  3983. if (!episode && !isNaN(+episodeName)) {
  3984. episode = anime.episodes.find(
  3985. (episode2) => new RegExp(`${episodeName}[\u8BDD\u96C6]`).test(episode2.episodeTitle)
  3986. );
  3987. if (!episode) {
  3988. episode = anime.episodes.find(
  3989. (episode2) => episode2.episodeTitle.includes(episodeName)
  3990. );
  3991. }
  3992. }
  3993. if (episode) {
  3994. state = 2 /* findEpisode */;
  3995. $animes.val(anime.animeId);
  3996. $animes.trigger("change");
  3997. $episodes.val(episode.episodeId);
  3998. $episodes.trigger("change");
  3999. return;
  4000. }
  4001. }
  4002. player$1.message.info("\u5F39\u5E55\u672A\u80FD\u81EA\u52A8\u5339\u914D\u6570\u636E\u6E90\uFF0C\u8BF7\u624B\u52A8\u641C\u7D22");
  4003. };
  4004. const injectDanmakuDropEvent = () => {
  4005. player$1.onDrop((e) => {
  4006. var _a;
  4007. e.preventDefault();
  4008. const file = (_a = e.dataTransfer) == null ? void 0 : _a.files[0];
  4009. if ((file == null ? void 0 : file.type) === "text/xml") {
  4010. const reader = new FileReader();
  4011. reader.onload = async () => {
  4012. stop();
  4013. comments = parsePakkuDanmakuXML(reader.result);
  4014. syncDiff = 0;
  4015. state = 3 /* getComments */;
  4016. start();
  4017. player$1.message.info(`\u5DF2\u52A0\u8F7D ${comments.length} \u6761\u5F39\u5E55`, 2e3);
  4018. };
  4019. reader.readAsText(file);
  4020. }
  4021. });
  4022. };
  4023. const initEvents = (name) => {
  4024. $animeName.val(name);
  4025. $animeName.on("keypress", (e) => {
  4026. if (e.key === "Enter")
  4027. searchAnime($animeName.val());
  4028. });
  4029. $animeName.on("blur", (e) => {
  4030. searchAnime($animeName.val());
  4031. });
  4032. $animes.on("change", (e) => {
  4033. const animeId = $(e.target).val();
  4034. const animes = $animes.data("animes");
  4035. const anime = animes.find((anime2) => String(anime2.animeId) === animeId);
  4036. if (!anime)
  4037. return;
  4038. storageAnimeName(videoInfo.rawName, {
  4039. animeId: anime.animeId,
  4040. animeTitle: anime.animeTitle,
  4041. keyword: $animeName.val()
  4042. });
  4043. updateEpisodes(anime);
  4044. });
  4045. $episodes.on("change", (e) => {
  4046. const episodeId = $(e.target).val();
  4047. const anime = $episodes.data("anime");
  4048. storageAnimeName(videoInfo.rawName, {
  4049. animeId: anime.animeId,
  4050. animeTitle: anime.animeTitle,
  4051. keyword: $animeName.val()
  4052. });
  4053. storageEpisodeName(`${videoInfo.rawName}.${videoInfo.episode}`, episodeId);
  4054. loadEpisode(episodeId);
  4055. });
  4056. $danmakuSwitch.toggleClass("plyr__control--pressed", player$1.localConfig.showDanmaku).on("click", () => {
  4057. switchDanmaku();
  4058. });
  4059. const resizeOb = new ResizeObserver(() => {
  4060. core == null ? void 0 : core.resize();
  4061. });
  4062. resizeOb.observe($danmakuContainer[0]);
  4063. const mutationOb = new MutationObserver(async () => {
  4064. Object.assign(videoInfo, await runtime.getCurrentVideoNameAndEpisode());
  4065. state = 1 /* searched */;
  4066. autoStart();
  4067. });
  4068. mutationOb.observe(player$1.media, { attributeFilter: ["src"] });
  4069. player$1.initInputEvent();
  4070. $showDanmaku.prop("checked", player$1.localConfig.showDanmaku).on("change", (e) => {
  4071. switchDanmaku(e.target.checked);
  4072. });
  4073. $showPbp.prop("checked", player$1.localConfig.showPbp).on("change", (e) => {
  4074. const chekced = e.target.checked;
  4075. $pbp.toggle(chekced);
  4076. player$1.configSaveToLocal("showPbp", chekced);
  4077. if (chekced)
  4078. autoStart();
  4079. });
  4080. $pbp.toggle(player$1.localConfig.showPbp || false);
  4081. const $pbpPlayed = $pbp.find("#k-player-pbp-played-path");
  4082. player$1.on("timeupdate", () => {
  4083. $pbpPlayed.attr(
  4084. "width",
  4085. (player$1.currentTime / player$1.plyr.duration || 0) * 100 + "%"
  4086. );
  4087. });
  4088. $danmakuMerge.prop("checked", player$1.localConfig.danmakuMerge).on("change", (e) => {
  4089. const chekced = e.target.checked;
  4090. player$1.configSaveToLocal("danmakuMerge", chekced);
  4091. if (core)
  4092. core.merge = chekced;
  4093. });
  4094. $danmakuOverlap.prop("checked", player$1.localConfig.danmakuOverlap).on("change", (e) => {
  4095. const chekced = e.target.checked;
  4096. player$1.configSaveToLocal("danmakuOverlap", chekced);
  4097. if (core)
  4098. core.overlap = chekced;
  4099. });
  4100. addRangeListener({
  4101. $dom: $opacity,
  4102. name: "opacity",
  4103. onInput: (v) => {
  4104. $danmakuContainer.css({ opacity: v });
  4105. },
  4106. player: player$1
  4107. });
  4108. addRangeListener({
  4109. $dom: $danmakuFontSize,
  4110. name: "danmakuFontSize",
  4111. onInput: (v) => {
  4112. $danmakuContainer.css("--danmaku-font-size-scale", v);
  4113. },
  4114. player: player$1
  4115. });
  4116. addRangeListener({
  4117. $dom: $danmakuSpeed,
  4118. name: "danmakuSpeed",
  4119. onChange: (v) => {
  4120. if (core)
  4121. core.speed = baseDanmkuSpeed * v;
  4122. },
  4123. player: player$1
  4124. });
  4125. addRangeListener({
  4126. $dom: $danmakuDensity,
  4127. name: "danmakuDensity",
  4128. onChange: refreshDanmaku,
  4129. player: player$1
  4130. });
  4131. addRangeListener({
  4132. $dom: $danmakuScrollAreaPercent,
  4133. name: "danmakuScrollAreaPercent",
  4134. onChange: (val) => {
  4135. if (core)
  4136. core.scrollAreaPercent = val;
  4137. },
  4138. player: player$1
  4139. });
  4140. setCheckboxGroupValue($danmakuMode, player$1.localConfig.danmakuMode);
  4141. $danmakuMode.on("change", () => {
  4142. const modes = getCheckboxGroupValue($danmakuMode);
  4143. player$1.configSaveToLocal("danmakuMode", modes);
  4144. if (core) {
  4145. refreshDanmaku();
  4146. }
  4147. });
  4148. createFilter(player$1, refreshDanmaku);
  4149. createDanmakuList(player$1, () => comments, refreshDanmaku);
  4150. injectDanmakuDropEvent();
  4151. };
  4152. function switchDanmaku(bool) {
  4153. bool != null ? bool : bool = !player$1.localConfig.showDanmaku;
  4154. player$1.configSaveToLocal("showDanmaku", bool);
  4155. $danmakuSwitch.toggleClass("plyr__control--pressed", bool);
  4156. $showDanmaku.prop("checked", bool);
  4157. player$1.message.info(`\u5F39\u5E55${bool ? "\u5F00\u542F" : "\u5173\u95ED"}`);
  4158. if (bool) {
  4159. autoStart();
  4160. } else {
  4161. stop();
  4162. }
  4163. }
  4164. Shortcuts.keyBindings.registerKeyBinding({
  4165. command: Commands.danmakuSwitch,
  4166. description: "\u663E\u793A/\u9690\u85CF\u5F39\u5E55",
  4167. key: "D"
  4168. });
  4169. Shortcuts.registerCommand(Commands.danmakuSwitch, function() {
  4170. switchDanmaku();
  4171. });
  4172. Shortcuts.keyBindings.registerKeyBinding({
  4173. command: Commands.danmakuSyncBack,
  4174. description: "\u5F39\u5E55\u6EDE\u540E0.5s",
  4175. key: ","
  4176. });
  4177. Shortcuts.registerCommand(Commands.danmakuSyncBack, function() {
  4178. if (!comments)
  4179. return;
  4180. comments.forEach((comment) => {
  4181. comment.time += 0.5;
  4182. });
  4183. syncDiff += 0.5;
  4184. this.message.destroy();
  4185. this.message.info(`\u5F39\u5E55\u540C\u6B65\uFF1A\u6EDE\u540E\u4E860.5s\uFF08${syncDiff}s\uFF09`);
  4186. refreshDanmaku();
  4187. });
  4188. Shortcuts.keyBindings.registerKeyBinding({
  4189. command: Commands.danmakuSyncForward,
  4190. description: "\u5F39\u5E55\u8D85\u524D0.5s",
  4191. key: "."
  4192. });
  4193. Shortcuts.registerCommand(Commands.danmakuSyncForward, function() {
  4194. if (!comments)
  4195. return;
  4196. comments.forEach((comment) => {
  4197. comment.time += -0.5;
  4198. });
  4199. syncDiff += -0.5;
  4200. this.message.destroy();
  4201. this.message.info(`\u5F39\u5E55\u540C\u6B65\uFF1A\u8D85\u524D\u4E860.5s\uFF08${syncDiff}s\uFF09`);
  4202. refreshDanmaku();
  4203. });
  4204. Shortcuts.keyBindings.registerKeyBinding({
  4205. command: Commands.danmakuSyncRestore,
  4206. description: "\u5F39\u5E55\u540C\u6B65\u590D\u4F4D",
  4207. key: "/"
  4208. });
  4209. Shortcuts.registerCommand(Commands.danmakuSyncRestore, function() {
  4210. if (!comments)
  4211. return;
  4212. comments.forEach((comment) => {
  4213. comment.time += -syncDiff;
  4214. });
  4215. syncDiff = 0;
  4216. this.message.destroy();
  4217. this.message.info("\u5F39\u5E55\u540C\u6B65\uFF1A\u5DF2\u590D\u4F4D");
  4218. refreshDanmaku();
  4219. });
  4220. const updateAnimes = (animes) => {
  4221. const html = animes.reduce(
  4222. (html2, anime) => html2 + `<option value="${anime.animeId}">${anime.animeTitle}</option>`,
  4223. ""
  4224. );
  4225. $animes.data("animes", animes);
  4226. $animes.html(html);
  4227. updateEpisodes(animes[0]);
  4228. showTips(`\u627E\u5230 ${animes.length} \u90E8\u756A\u5267`);
  4229. };
  4230. const updateEpisodes = (anime) => {
  4231. const { episodes } = anime;
  4232. const html = episodes.reduce(
  4233. (html2, episode) => html2 + `<option value="${episode.episodeId}">${episode.episodeTitle}</option>`,
  4234. ""
  4235. );
  4236. $episodes.data("anime", anime);
  4237. $episodes.html(html);
  4238. $episodes.val("");
  4239. };
  4240. function autoStart() {
  4241. if (!(player$1.localConfig.showDanmaku || player$1.localConfig.showPbp))
  4242. return;
  4243. switch (state) {
  4244. case 0 /* unSearched */:
  4245. searchAnime();
  4246. break;
  4247. case 1 /* searched */:
  4248. findEpisode($animes.data("animes"));
  4249. break;
  4250. case 2 /* findEpisode */:
  4251. $episodes.trigger("change");
  4252. break;
  4253. case 3 /* getComments */:
  4254. start();
  4255. break;
  4256. }
  4257. }
  4258. async function setup(_player) {
  4259. player$1 = _player;
  4260. const info = await runtime.getCurrentVideoNameAndEpisode();
  4261. if (!info)
  4262. return;
  4263. videoInfo = info;
  4264. player$1.$videoWrapper.append($danmakuContainer);
  4265. $danmaku.insertBefore(player$1.$searchActions);
  4266. $danmaku.before($danmakuSwitch);
  4267. let defaultSearchName = storageAnimeName(videoInfo.rawName) || videoInfo.name;
  4268. initEvents(
  4269. typeof defaultSearchName === "object" ? defaultSearchName.keyword : defaultSearchName
  4270. );
  4271. autoStart();
  4272. }
  4273.  
  4274. KPlayer.register(setup);
  4275. KPlayer.register(setup$1);
  4276.  
  4277. function execInUnsafeWindow(fn) {
  4278. return new Promise((resolve, reject) => {
  4279. const contextId = Math.random().toFixed(16).slice(2);
  4280. window.addEventListener("message", function listener(e) {
  4281. if (e.data && e.data.contextId === contextId) {
  4282. const data = e.data.data;
  4283. resolve(data);
  4284. window.removeEventListener("message", listener);
  4285. script.remove();
  4286. }
  4287. });
  4288. const code = `
  4289. ;(async function runInUnsafeWindow() {
  4290. const data = await (${fn.toString()})()
  4291. window.postMessage({ contextId: '${contextId}', data }, '*')
  4292. })()
  4293. `;
  4294. const script = document.createElement("script");
  4295. script.textContent = code;
  4296. document.body.appendChild(script);
  4297. });
  4298. }
  4299.  
  4300. function queryDom(selector) {
  4301. return new Promise((resolve) => {
  4302. let dom;
  4303. function search() {
  4304. dom = $(selector);
  4305. if (dom.length === 0) {
  4306. requestAnimationFrame(search);
  4307. } else {
  4308. resolve(dom[0]);
  4309. }
  4310. }
  4311. search();
  4312. });
  4313. }
  4314.  
  4315. function sleep(ms) {
  4316. if (!ms) {
  4317. return new Promise((resolve) => {
  4318. requestAnimationFrame(resolve);
  4319. });
  4320. }
  4321. return new Promise((resolve) => {
  4322. setTimeout(resolve, ms);
  4323. });
  4324. }
  4325.  
  4326. async function wait(selector) {
  4327. let bool = selector();
  4328. while (!bool) {
  4329. await sleep();
  4330. bool = selector();
  4331. }
  4332. }
  4333.  
  4334. let player;
  4335. const parser$3 = {
  4336. "danmu.yhdmjx.com": async () => {
  4337. const video = await queryDom("video");
  4338. video.src = "";
  4339. player = new KPlayer("#player", { eventToParentWindow: true });
  4340. player.src = await execInUnsafeWindow(
  4341. () => window.v_decrypt(window.config.url, window._token_key, window.key_token)
  4342. );
  4343. },
  4344. "pro.ascepan.top": async () => {
  4345. const video = await queryDom("video");
  4346. video.src = "";
  4347. player = new KPlayer("#player", { eventToParentWindow: true });
  4348. player.src = await execInUnsafeWindow(() => window.config.url);
  4349. },
  4350. "sp-flv.com": async () => {
  4351. const video = await queryDom("video");
  4352. await wait(() => !!video.currentSrc);
  4353. let url = video.currentSrc;
  4354. if (url.startsWith("blob:")) {
  4355. url = await execInUnsafeWindow(() => window.video_url);
  4356. if (url) {
  4357. video.src = "";
  4358. player = new KPlayer("#mplayer-media-wrapper", {
  4359. eventToParentWindow: true
  4360. });
  4361. player.src = url;
  4362. }
  4363. } else {
  4364. video.src = "";
  4365. player = new KPlayer("#mplayer-media-wrapper", {
  4366. eventToParentWindow: true
  4367. });
  4368. player.src = url;
  4369. }
  4370. console.log("\u{1F680} ~ file: parser.ts:29 ~ 'vip.sp-flv.com': ~ url:", url);
  4371. },
  4372. "agefans-01": async () => {
  4373. let url = "";
  4374. while (!url) {
  4375. url = await execInUnsafeWindow(() => {
  4376. var _a;
  4377. return (_a = window.stray) == null ? void 0 : _a.url;
  4378. });
  4379. await sleep(100);
  4380. }
  4381. $("#artplayer").remove();
  4382. $("body").append('<div id="k-player-container"/>');
  4383. player = new KPlayer("#k-player-container", { eventToParentWindow: true });
  4384. player.src = url;
  4385. },
  4386. "agefans-02": async () => {
  4387. let url = "";
  4388. while (!url) {
  4389. url = await execInUnsafeWindow(() => {
  4390. var _a, _b;
  4391. return ((_b = (_a = window.art) == null ? void 0 : _a.hls) == null ? void 0 : _b.url) || window.Vurl;
  4392. });
  4393. await sleep(100);
  4394. }
  4395. await execInUnsafeWindow(() => window.art.destroy(false));
  4396. $("#loading").remove();
  4397. $("body").append('<div id="k-player-container"/>');
  4398. player = new KPlayer("#k-player-container", { eventToParentWindow: true });
  4399. player.src = url;
  4400. }
  4401. };
  4402.  
  4403. var css$6 = ".pro-ascepan-top #bkcl {\n display: none !important;\n}";
  4404. injectCss(css$6,{});
  4405.  
  4406. runtime.register({
  4407. domains: [
  4408. "pro.ascepan.top",
  4409. "danmu.yhdmjx.com",
  4410. "sp-flv.com",
  4411. "43.240.74.134",
  4412. "43.240.156.118"
  4413. ],
  4414. opts: [
  4415. {
  4416. test: () => window.location.href.includes("danmu.yhdmjx.com/m3u8.php"),
  4417. runInIframe: true,
  4418. run: parser$3["danmu.yhdmjx.com"]
  4419. },
  4420. {
  4421. test: () => window.location.href.includes("pro.ascepan.top/player"),
  4422. runInIframe: true,
  4423. run: parser$3["pro.ascepan.top"],
  4424. setup: () => $("body").addClass("pro-ascepan-top")
  4425. },
  4426. {
  4427. test: () => !!window.location.href.match(/sp-flv\.com.*url=/),
  4428. runInIframe: true,
  4429. run: parser$3["sp-flv.com"]
  4430. },
  4431. {
  4432. test: () => !!window.location.href.match(
  4433. /((43.240.74.134)|(43.240.156.118)).*vip.*url=/
  4434. ),
  4435. runInIframe: true,
  4436. run: parser$3["agefans-01"]
  4437. },
  4438. {
  4439. test: () => !!window.location.href.match(
  4440. /((43.240.74.134)|(43.240.156.118)).*m3u8.*url=/
  4441. ),
  4442. runInIframe: true,
  4443. run: parser$3["agefans-02"]
  4444. }
  4445. ],
  4446. search: {
  4447. getSearchName: () => {
  4448. return new Promise((resolve) => {
  4449. const fn = (e) => {
  4450. if (e.data.key === "getSearchName") {
  4451. resolve(e.data.name);
  4452. window.removeEventListener("message", fn);
  4453. }
  4454. };
  4455. window.addEventListener("message", fn);
  4456. parent.postMessage({ key: "getSearchName" }, "*");
  4457. });
  4458. },
  4459. getEpisode: () => {
  4460. return new Promise((resolve) => {
  4461. const fn = (e) => {
  4462. if (e.data.key === "getEpisode") {
  4463. resolve(e.data.name);
  4464. window.removeEventListener("message", fn);
  4465. }
  4466. };
  4467. window.addEventListener("message", fn);
  4468. parent.postMessage({ key: "getEpisode" }, "*");
  4469. });
  4470. }
  4471. }
  4472. });
  4473.  
  4474. var css$5 = ".agefans-wrapper .video_detail_episode a:visited {\n color: rgb(220, 53, 69) !important;\n}";
  4475. injectCss(css$5,{});
  4476.  
  4477. var css$4 = ".k-episode-anchor:visited {\n color: rgb(220, 53, 69) !important;\n}\n\n.k-his-table {\n width: 100%;\n line-height: 1.4;\n border-spacing: 0;\n border-collapse: separate;\n}\n.k-his-table th,\n.k-his-table td {\n padding: 4px 8px;\n transition: background 0.3s ease;\n}\n.k-his-table tr:hover td {\n background: #f1f1f1;\n}";
  4478. injectCss(css$4,{});
  4479.  
  4480. var __defProp$1 = Object.defineProperty;
  4481. var __defProps$1 = Object.defineProperties;
  4482. var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
  4483. var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
  4484. var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
  4485. var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
  4486. var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  4487. var __spreadValues$1 = (a, b) => {
  4488. for (var prop in b || (b = {}))
  4489. if (__hasOwnProp$1.call(b, prop))
  4490. __defNormalProp$1(a, prop, b[prop]);
  4491. if (__getOwnPropSymbols$1)
  4492. for (var prop of __getOwnPropSymbols$1(b)) {
  4493. if (__propIsEnum$1.call(b, prop))
  4494. __defNormalProp$1(a, prop, b[prop]);
  4495. }
  4496. return a;
  4497. };
  4498. var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
  4499. const his$1 = {
  4500. key: "k-history",
  4501. load() {
  4502. return local.getItem(this.key, []);
  4503. },
  4504. save(data) {
  4505. local.setItem(this.key, data.slice(0, 100));
  4506. },
  4507. log(info, time) {
  4508. let data = local.getItem(this.key, []);
  4509. data = data.filter((o) => o.id !== info.id);
  4510. data.unshift(__spreadProps$1(__spreadValues$1({}, info), { time }));
  4511. this.save(data);
  4512. }
  4513. };
  4514. const logHis$1 = throttle(his$1.log.bind(his$1), 1e3);
  4515. function renderHistroy$1() {
  4516. const data = his$1.load();
  4517. const content = data.map(
  4518. (info) => `<tr>
  4519. <td>
  4520. <a href="${info.url}">${info.animeName}</a>
  4521. </td>
  4522. <td>
  4523. <a href="${info.url}">${info.episodeName}</a>
  4524. </td>
  4525. <td>${parseTime(info.time)}</td>
  4526. </tr>`
  4527. ).join("");
  4528. modal({
  4529. title: "\u5386\u53F2\u8BB0\u5F55",
  4530. content: `
  4531. <table class="k-his-table">
  4532. <thead>
  4533. <tr>
  4534. <th>\u6807\u9898</th>
  4535. <th style="width:80px">\u7AE0\u8282</th>
  4536. <th style="width:80px">\u65F6\u95F4</th>
  4537. </tr>
  4538. </thead>
  4539. <tbody>
  4540. ${content}
  4541. </tbody>
  4542. </table>
  4543. `
  4544. });
  4545. }
  4546.  
  4547. function defineIframePlayer(config) {
  4548. const { iframeSelector, search } = config;
  4549. function createIframeReadyToChangeIframeSrc(url) {
  4550. const iframe = document.createElement("iframe");
  4551. iframe.className = "ready-to-change-iframe-src";
  4552. iframe.style.cssText = "position:fixed;left:0;top:0;z-index:9999;opacity:0;pointer-events:none;";
  4553. iframe.src = url;
  4554. document.body.appendChild(iframe);
  4555. }
  4556. function setActive(url) {
  4557. if (window.location.href !== url) {
  4558. window.history.pushState(window.history.state, "", url);
  4559. }
  4560. config.setActive(url);
  4561. createIframeReadyToChangeIframeSrc(url);
  4562. }
  4563. function createHistrory() {
  4564. if (config.history) {
  4565. config.history.creator(renderHistroy$1);
  4566. }
  4567. }
  4568. function isFocusInputElement() {
  4569. if (!document.activeElement)
  4570. return false;
  4571. return ["input", "textarea", "select"].includes(
  4572. document.activeElement.tagName.toLowerCase()
  4573. );
  4574. }
  4575. function runInTop() {
  4576. window.addEventListener("keydown", (e) => {
  4577. var _a;
  4578. if (isFocusInputElement())
  4579. return;
  4580. if ((_a = window.getSelection()) == null ? void 0 : _a.toString())
  4581. return;
  4582. if (e.ctrlKey || e.shiftKey || e.altKey || e.metaKey)
  4583. return;
  4584. $(iframeSelector)[0].blur();
  4585. $(iframeSelector)[0].focus();
  4586. if (e.key === " ")
  4587. e.preventDefault();
  4588. });
  4589. $(iframeSelector).attr({ allow: "autoplay; fullscreen" });
  4590. window.addEventListener("popstate", () => {
  4591. setActive(window.location.href);
  4592. });
  4593. config.getEpisodeList().each((_, el) => {
  4594. el.classList.add("k-episode-anchor");
  4595. el.addEventListener("click", (e) => {
  4596. e.preventDefault();
  4597. if ($(".ready-to-change-iframe-src").length)
  4598. return;
  4599. if (!el.href)
  4600. return;
  4601. setActive(el.href);
  4602. });
  4603. });
  4604. window.addEventListener("message", async (e) => {
  4605. var _a, _b, _c, _d;
  4606. if (!e.data.key)
  4607. return;
  4608. switch (e.data.key) {
  4609. case "getSearchName": {
  4610. (_a = e.source) == null ? void 0 : _a.postMessage(
  4611. {
  4612. key: "getSearchName",
  4613. name: await search.getSearchName()
  4614. },
  4615. { targetOrigin: "*" }
  4616. );
  4617. break;
  4618. }
  4619. case "getEpisode": {
  4620. (_b = e.source) == null ? void 0 : _b.postMessage(
  4621. { key: "getEpisode", name: await search.getEpisode() },
  4622. { targetOrigin: "*" }
  4623. );
  4624. break;
  4625. }
  4626. case "openLink": {
  4627. window.open(e.data.url);
  4628. break;
  4629. }
  4630. case "changeIframeSrc": {
  4631. const iframe = $(iframeSelector)[0];
  4632. (_c = iframe.contentWindow) == null ? void 0 : _c.location.replace(e.data.url);
  4633. document.title = e.data.title;
  4634. $(".ready-to-change-iframe-src").remove();
  4635. break;
  4636. }
  4637. case "prev":
  4638. case "next": {
  4639. if ($(".ready-to-change-iframe-src").length)
  4640. return;
  4641. const url = config.switchEpisode(e.data.key === "next");
  4642. if (url)
  4643. setActive(url);
  4644. break;
  4645. }
  4646. case "enterwidescreen": {
  4647. $("body").css("overflow", "hidden");
  4648. $("body").addClass("widescreen");
  4649. $(iframeSelector).css({
  4650. position: "fixed",
  4651. left: 0,
  4652. right: 0,
  4653. bottom: 0,
  4654. top: 0,
  4655. zIndex: 2147483648
  4656. });
  4657. break;
  4658. }
  4659. case "exitwidescreen": {
  4660. $("body").css("overflow", "");
  4661. $("body").removeClass("widescreen");
  4662. $(iframeSelector).removeAttr("style");
  4663. break;
  4664. }
  4665. case "timeupdate": {
  4666. if (config.history) {
  4667. logHis$1(
  4668. {
  4669. animeName: await search.getSearchName(),
  4670. episodeName: await search.getEpisode(),
  4671. id: await config.history.getId(),
  4672. url: window.location.href
  4673. },
  4674. e.data.video.currentTime
  4675. );
  4676. }
  4677. break;
  4678. }
  4679. }
  4680. (_d = config.onIframeMessage) == null ? void 0 : _d.call(config, e.data.key, e.data, e);
  4681. });
  4682. }
  4683. function runInIframe() {
  4684. top == null ? void 0 : top.postMessage(
  4685. {
  4686. key: "changeIframeSrc",
  4687. url: $(iframeSelector).attr("src"),
  4688. title: document.title
  4689. },
  4690. "*"
  4691. );
  4692. }
  4693. return { runInTop, runInIframe, createHistrory };
  4694. }
  4695.  
  4696. function getActive$5() {
  4697. return $(".van-grid-item.van-grid-item--active");
  4698. }
  4699. function switchPart$6(next) {
  4700. var _a;
  4701. const $active = getActive$5();
  4702. let $nextActive = $active[next ? "next" : "prev"]();
  4703. (_a = $nextActive[0]) == null ? void 0 : _a.click();
  4704. return null;
  4705. }
  4706. const iframePlayer$5 = defineIframePlayer({
  4707. iframeSelector: "#playerIFrame iframe",
  4708. getActive: getActive$5,
  4709. setActive: (href) => {
  4710. },
  4711. search: {
  4712. getSearchName: () => $(".detail-box h2").text(),
  4713. getEpisode: () => getActive$5().text()
  4714. },
  4715. getEpisodeList: () => $(".video-source-box .van-grid-item"),
  4716. switchEpisode: (next) => switchPart$6(next)
  4717. });
  4718. async function mobilePlayModule() {
  4719. await wait(() => getActive$5().length > 0);
  4720. iframePlayer$5.runInTop();
  4721. }
  4722.  
  4723. function calcSortDirection() {
  4724. var _a, _b, _c;
  4725. const $active = getActive$4();
  4726. const $prev = $active.prev();
  4727. const $next = $active.next();
  4728. const prevText = (_a = $prev.text().match(/\d+/)) == null ? void 0 : _a[0];
  4729. const nextText = (_b = $next.text().match(/\d+/)) == null ? void 0 : _b[0];
  4730. const activeText = (_c = $active.text().match(/\d+/)) == null ? void 0 : _c[0];
  4731. const prev = Number(prevText);
  4732. const current = Number(activeText);
  4733. const next = Number(nextText);
  4734. if (prevText) {
  4735. if (prev < current) {
  4736. local.setItem("sortDirection", "asc");
  4737. } else {
  4738. local.setItem("sortDirection", "desc");
  4739. }
  4740. } else if (nextText) {
  4741. if (next > current) {
  4742. local.setItem("sortDirection", "asc");
  4743. } else {
  4744. local.setItem("sortDirection", "desc");
  4745. }
  4746. } else {
  4747. local.setItem("sortDirection", "asc");
  4748. }
  4749. return local.getItem("sortDirection");
  4750. }
  4751. function getActiveTabIndex() {
  4752. const pathname = window.location.pathname;
  4753. const match = pathname.match(/play\/.*\/(\d+)\/(\d+)/);
  4754. if (match) {
  4755. const activeTab = match[1];
  4756. return Number(activeTab) - 1;
  4757. }
  4758. return null;
  4759. }
  4760. function getSortButon() {
  4761. return $('button:contains("\u66F4\u6539\u6392\u5E8F")');
  4762. }
  4763. function rememberSortDirection() {
  4764. const $btn = getSortButon();
  4765. $btn.on("click", () => {
  4766. setTimeout(() => {
  4767. calcSortDirection();
  4768. activeScrollIntoView();
  4769. }, 100);
  4770. });
  4771. }
  4772. function getSortDirection() {
  4773. return local.getItem("sortDirection", "asc");
  4774. }
  4775. function restoreSortDirection() {
  4776. const sortDirection = getSortDirection();
  4777. if (sortDirection === "desc") {
  4778. getSortButon().trigger("click");
  4779. }
  4780. }
  4781. function activeScrollIntoView() {
  4782. const $active = getActive$4();
  4783. function getScrollParent() {
  4784. let parent = $active.parent()[0];
  4785. while (parent && parent.tagName !== "BODY") {
  4786. const overflowY = getComputedStyle(parent).overflowY;
  4787. if (overflowY === "auto" || overflowY === "scroll") {
  4788. return parent;
  4789. }
  4790. parent = parent.parentElement;
  4791. }
  4792. return document.body;
  4793. }
  4794. const scrollEl = getScrollParent();
  4795. const scrollRect = scrollEl.getBoundingClientRect();
  4796. const activeRect = $active[0].getBoundingClientRect();
  4797. scrollEl.scrollTop += activeRect.top - scrollRect.top - 100;
  4798. }
  4799. function insertFocusBtn() {
  4800. const html = `
  4801. <button id="k-focus" type="button" class="btn btn-sm btn-outline-light btn-playlist-order">\u805A\u7126</button>
  4802. `;
  4803. $(html).on("click", async () => {
  4804. const idx = getActiveTabIndex();
  4805. if (idx != null) {
  4806. const $activeTab = $(".playlist-source-tab button[data-bs-toggle]").eq(
  4807. idx
  4808. );
  4809. if (!$activeTab.hasClass("active")) {
  4810. $activeTab.trigger("click");
  4811. await sleep(100);
  4812. }
  4813. }
  4814. activeScrollIntoView();
  4815. }).prependTo(".playlist-source-tab .float-end");
  4816. }
  4817. function getActive$4() {
  4818. return $(".video_detail_episode .video_detail_spisode_playing").parent();
  4819. }
  4820. function switchPart$5(next) {
  4821. var _a;
  4822. const $active = getActive$4();
  4823. const sortDirection = getSortDirection();
  4824. let $nextActive;
  4825. if (sortDirection === "asc")
  4826. $nextActive = $active[next ? "next" : "prev"]();
  4827. else
  4828. $nextActive = $active[next ? "prev" : "next"]();
  4829. return (_a = $nextActive.find("a")[0]) == null ? void 0 : _a.href;
  4830. }
  4831. const iframePlayer$4 = defineIframePlayer({
  4832. iframeSelector: ".video_play_wrapper iframe",
  4833. getActive: getActive$4,
  4834. setActive: (href) => {
  4835. $(".video_detail_episode a").each((_, el) => {
  4836. const $el = $(el);
  4837. if (el.href === href) {
  4838. $(".video_detail_spisode_playing").appendTo($el.parent());
  4839. }
  4840. });
  4841. $("#k-focus").trigger("click");
  4842. },
  4843. search: {
  4844. getSearchName: () => $(".video_detail_wrapper .cata_video_item .card-title").text(),
  4845. getEpisode: () => getActive$4().text()
  4846. },
  4847. getEpisodeList: () => $(".video_detail_episode a"),
  4848. switchEpisode: (next) => switchPart$5(next)
  4849. });
  4850. function playModule$1() {
  4851. $(".video_detail_episode a").each((_, el) => {
  4852. if (el.href)
  4853. el.href = el.href.replace("http://", "https://");
  4854. });
  4855. iframePlayer$4.runInTop();
  4856. rememberSortDirection();
  4857. restoreSortDirection();
  4858. insertFocusBtn();
  4859. activeScrollIntoView();
  4860. }
  4861. function playModuleInIframe() {
  4862. iframePlayer$4.runInIframe();
  4863. }
  4864.  
  4865. runtime.register({
  4866. domains: ["age.tv", "agemys", "agefans", "agedm"],
  4867. opts: [
  4868. {
  4869. test: "*",
  4870. run: () => {
  4871. $("body").addClass("agefans-wrapper");
  4872. }
  4873. },
  4874. { test: "/play", run: playModule$1 },
  4875. { test: "/play", run: playModuleInIframe, runInIframe: true },
  4876. { test: () => location.hash.includes("/play/"), run: mobilePlayModule }
  4877. ],
  4878. search: {
  4879. name: "agefans",
  4880. search: (name) => `https://www.agefans.com/search?query=${name}`
  4881. }
  4882. });
  4883.  
  4884. const favoriteKey = "favorite";
  4885. function getFavorite(id) {
  4886. const favorites = local.getItem(favoriteKey, []);
  4887. if (id) {
  4888. return favorites.find((f) => f.id === id);
  4889. }
  4890. return favorites;
  4891. }
  4892. function setFavorite(favorite) {
  4893. const favorites = getFavorite();
  4894. const index = favorites.findIndex((f) => f.id === favorite.id);
  4895. if (index === -1) {
  4896. favorites.push(favorite);
  4897. } else {
  4898. favorites[index] = favorite;
  4899. }
  4900. local.setItem(favoriteKey, favorites.slice(-100));
  4901. }
  4902. function removeFavorite(id) {
  4903. const favorites = getFavorite();
  4904. const index = favorites.findIndex((f) => f.id === id);
  4905. if (index !== -1) {
  4906. favorites.splice(index, 1);
  4907. local.setItem(favoriteKey, favorites);
  4908. }
  4909. }
  4910. function renderFavoriteList() {
  4911. const favorites = getFavorite();
  4912. const $root = $(".div_right.baseblock");
  4913. const $content = $(`<div class="blockcontent">
  4914. <ul id="anime_update"></ul>
  4915. </div>`);
  4916. $root.prepend(`<div class="blocktitle">\u8BA2\u9605</div>`, $content);
  4917. let groups = $(".mod").map((idx, el) => {
  4918. let list = [];
  4919. $(el).find(".one_new_anime").each((_, el2) => {
  4920. const $el = $(el2);
  4921. const id = $el.find("a").attr("href").match(/\/(\d+).html/)[1];
  4922. const title = $el.find(".one_new_anime_name").text();
  4923. const update = $el.find(".one_new_anime_ji").text();
  4924. const favorite = favorites.find((f) => f.id === id);
  4925. if (favorite) {
  4926. list.push({ favorite, title, update });
  4927. }
  4928. });
  4929. return { idx, list };
  4930. }).get();
  4931. const day = new Date().getDay() - 1;
  4932. groups = [...groups.slice(day), ...groups.slice(0, day)];
  4933. groups.filter((o) => o.list.length > 0).forEach(({ idx, list }, index) => {
  4934. const $ul = $(`<ul id="new_anime_page"></ul>`);
  4935. list.forEach(({ favorite, title: title2, update }) => {
  4936. $ul.append(
  4937. `<li class="one_new_anime" style="display:flex; justify-content:space-between;">
  4938. <a class="one_new_anime_name" href="${favorite.current.url}">${title2}</a>
  4939. <a class="one_new_anime_ji" style="flex-shrink:0;" href="${favorite.current.url}">${favorite.current.name}/${update}</a>
  4940. </li>`
  4941. );
  4942. });
  4943. const title = $("#new_anime_btns .new_anime_btn").eq(idx).text();
  4944. $content.find("#anime_update").append(
  4945. `<div style="margin-top:${index !== 0 ? 8 : 0}px;">${title}</div>`,
  4946. $ul
  4947. );
  4948. });
  4949. }
  4950. function renderFavoriteBtn() {
  4951. const $btn = $(`<a href="javascript:void(0)" style="float:right;">\u8BA2\u9605</a>`);
  4952. $btn.on("click", () => {
  4953. if (getFavorite(id)) {
  4954. removeFavorite(id);
  4955. $btn.text("\u8BA2\u9605");
  4956. return;
  4957. } else {
  4958. updateFavoriteCurrent(true);
  4959. $btn.text("\u5DF2\u8BA2\u9605");
  4960. }
  4961. });
  4962. const id = location.pathname.match(/\/(\d+)-/)[1];
  4963. if (getFavorite().find((f) => f.id === id)) {
  4964. $btn.text("\u5DF2\u8BA2\u9605");
  4965. }
  4966. $("#detailname").append($btn);
  4967. }
  4968. function updateFavoriteCurrent(push) {
  4969. const id = location.pathname.match(/\/(\d+)-/)[1];
  4970. if (!push && !getFavorite(id))
  4971. return;
  4972. const name = $(".active-play").text();
  4973. const url = location.pathname;
  4974. setFavorite({ id, current: { name, url } });
  4975. }
  4976.  
  4977. function getActive$3() {
  4978. return $(".active-play");
  4979. }
  4980. function switchPart$4(next) {
  4981. return $(".active-play").parent()[next ? "next" : "prev"]().find("a")[0].href;
  4982. }
  4983. function runInTop$3() {
  4984. iframePlayer$3.runInTop();
  4985. renderFavoriteBtn();
  4986. }
  4987. const iframePlayer$3 = defineIframePlayer({
  4988. iframeSelector: "#playleft iframe",
  4989. getActive: () => $(".active-play"),
  4990. setActive: (href) => {
  4991. $(".movurl a").each((_, el) => {
  4992. if (el.href === href) {
  4993. el.classList.add("active-play");
  4994. } else {
  4995. el.classList.remove("active-play");
  4996. }
  4997. });
  4998. },
  4999. search: {
  5000. getSearchName: () => $("#detailname a:nth-child(1)").text(),
  5001. getEpisode: () => getActive$3().text()
  5002. },
  5003. getEpisodeList: () => $(".movurl a"),
  5004. switchEpisode: (next) => switchPart$4(next),
  5005. history: {
  5006. creator: (renderHistory) => {
  5007. const $btn = $(`<a class="nav_button">\u5386\u53F2</a>`);
  5008. $btn.on("click", renderHistory);
  5009. $btn.insertBefore("#top_search_from");
  5010. },
  5011. getId: () => location.pathname.match(/\/(\d+)-/)[1]
  5012. },
  5013. onIframeMessage: (key, data) => {
  5014. if (key === "canplay") {
  5015. const video = data.video;
  5016. const width = $("#ageframediv").width();
  5017. if (width)
  5018. $("#ageframediv").height(video.height / video.width * width);
  5019. updateFavoriteCurrent(false);
  5020. }
  5021. }
  5022. });
  5023.  
  5024. runtime.register({
  5025. domains: [".ntdm9."],
  5026. opts: [
  5027. { test: "*", run: iframePlayer$3.createHistrory },
  5028. { test: "/", run: renderFavoriteList },
  5029. { test: "/play", run: runInTop$3 },
  5030. { test: "/play", run: iframePlayer$3.runInIframe, runInIframe: true }
  5031. ],
  5032. search: {
  5033. name: "NT\u52A8\u6F2B",
  5034. search: (name) => `http://www.ntdm9.com/search/-------------.html?wd=${name}&page=1`
  5035. }
  5036. });
  5037.  
  5038. var css$3 = ".bimi-wrapper .play-full,\n.bimi-wrapper #bkcl,\n.bimi-wrapper marquee {\n display: none !important;\n}\n.bimi-wrapper .bimi-his-table {\n width: 100%;\n line-height: 1.4;\n border-spacing: 0;\n border-collapse: separate;\n}\n.bimi-wrapper .bimi-his-table th,\n.bimi-wrapper .bimi-his-table td {\n padding: 4px 8px;\n transition: background 0.3s ease;\n}\n.bimi-wrapper .bimi-his-table tr:hover td {\n background: #f1f1f1;\n}";
  5039. injectCss(css$3,{});
  5040.  
  5041. var __defProp = Object.defineProperty;
  5042. var __defProps = Object.defineProperties;
  5043. var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
  5044. var __getOwnPropSymbols = Object.getOwnPropertySymbols;
  5045. var __hasOwnProp = Object.prototype.hasOwnProperty;
  5046. var __propIsEnum = Object.prototype.propertyIsEnumerable;
  5047. var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  5048. var __spreadValues = (a, b) => {
  5049. for (var prop in b || (b = {}))
  5050. if (__hasOwnProp.call(b, prop))
  5051. __defNormalProp(a, prop, b[prop]);
  5052. if (__getOwnPropSymbols)
  5053. for (var prop of __getOwnPropSymbols(b)) {
  5054. if (__propIsEnum.call(b, prop))
  5055. __defNormalProp(a, prop, b[prop]);
  5056. }
  5057. return a;
  5058. };
  5059. var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
  5060. const his = {
  5061. key: "bangumi-history",
  5062. load() {
  5063. return local.getItem(this.key, []);
  5064. },
  5065. save(data) {
  5066. local.setItem(this.key, data.slice(0, 100));
  5067. },
  5068. log(info, time) {
  5069. let data = local.getItem(this.key, []);
  5070. data = data.filter((o) => o.id !== info.id);
  5071. data.unshift(__spreadProps(__spreadValues({}, info), { time }));
  5072. this.save(data);
  5073. }
  5074. };
  5075. const logHis = throttle(his.log.bind(his), 1e3);
  5076. function renderHistroy() {
  5077. const data = his.load();
  5078. const content = data.map(
  5079. (info) => `<tr>
  5080. <td>
  5081. <a href="${info.url}">${info.animeName}</a>
  5082. </td>
  5083. <td>
  5084. <a href="${info.url}">${info.episodeName}</a>
  5085. </td>
  5086. <td>${parseTime(info.time)}</td>
  5087. </tr>`
  5088. ).join("");
  5089. modal({
  5090. title: "\u5386\u53F2\u8BB0\u5F55",
  5091. content: `
  5092. <table class="bimi-his-table">
  5093. <thead>
  5094. <tr>
  5095. <th>\u6807\u9898</th>
  5096. <th>\u7AE0\u8282</th>
  5097. <th style="width:100px">\u65F6\u95F4</th>
  5098. </tr>
  5099. </thead>
  5100. <tbody>
  5101. ${content}
  5102. </tbody>
  5103. </table>
  5104. `
  5105. });
  5106. }
  5107. function createButton() {
  5108. const $btn = $('<li class="item"><a>\u5386\u53F2</a></li>');
  5109. $btn.on("click", renderHistroy);
  5110. $(".header-top__nav ul").append($btn);
  5111. }
  5112. function histroyModule() {
  5113. createButton();
  5114. }
  5115.  
  5116. function replacePlayer$1() {
  5117. new KPlayer("#player", {
  5118. video: $("video")[0],
  5119. eventToParentWindow: true
  5120. });
  5121. }
  5122. function switchPart$3(next) {
  5123. var _a;
  5124. (_a = $(
  5125. `.player-info .play-qqun .${next ? "next" : "pre"}:not(.btns_disad)`
  5126. )[0]) == null ? void 0 : _a.click();
  5127. }
  5128. function getPlayInfo() {
  5129. const animeName = $(".v_path a.current").text();
  5130. const episodeName = (() => {
  5131. let name = "";
  5132. let pre = $(".player-info .play-qqun .pre").attr("href");
  5133. let next = $(".player-info .play-qqun .next").attr("href");
  5134. if (pre) {
  5135. name = $(`.player_list a[href='${pre}']`).parent().next().find("a").text();
  5136. } else if (next) {
  5137. name = $(`.player_list a[href='${next}']`).parent().prev().find("a").text();
  5138. } else {
  5139. name = $(`.player_list a[href='${location.pathname}']`).text();
  5140. }
  5141. return name;
  5142. })();
  5143. const url = location.pathname;
  5144. const id = location.pathname.match(new RegExp("\\/(?<id>\\d+)\\/play")).groups.id;
  5145. return { id, url, animeName, episodeName };
  5146. }
  5147. async function playModule() {
  5148. var _a;
  5149. $("#bkcl").remove();
  5150. const info = getPlayInfo();
  5151. const iframe = await queryDom(
  5152. `#playleft iframe[src*='url=']`
  5153. );
  5154. window.addEventListener("message", (e) => {
  5155. var _a2, _b, _c, _d;
  5156. if (!((_a2 = e.data) == null ? void 0 : _a2.key))
  5157. return;
  5158. const key = e.data.key;
  5159. const video = e.data.video;
  5160. if (key === "initDone") {
  5161. (_b = iframe.contentWindow) == null ? void 0 : _b.postMessage({ key: "initDone" }, "*");
  5162. }
  5163. if (key === "prev")
  5164. switchPart$3(false);
  5165. if (key === "next")
  5166. switchPart$3(true);
  5167. if (key === "enterwidescreen") {
  5168. $("body").css("overflow", "hidden");
  5169. $(iframe).css({
  5170. position: "fixed",
  5171. left: 0,
  5172. right: 0,
  5173. bottom: 0,
  5174. top: 0,
  5175. zIndex: 99999
  5176. });
  5177. }
  5178. if (key === "exitwidescreen") {
  5179. $("body").css("overflow", "");
  5180. $(iframe).removeAttr("style");
  5181. }
  5182. if (key === "getSearchName") {
  5183. (_c = iframe.contentWindow) == null ? void 0 : _c.postMessage(
  5184. { key: "getSearchName", name: info.animeName },
  5185. "*"
  5186. );
  5187. }
  5188. if (key === "getEpisode") {
  5189. (_d = iframe.contentWindow) == null ? void 0 : _d.postMessage(
  5190. { key: "getEpisode", name: info.episodeName },
  5191. "*"
  5192. );
  5193. }
  5194. if (key === "openLink") {
  5195. window.open(e.data.url);
  5196. }
  5197. if (key === "canplay") {
  5198. const height = $("#video").width() / video.width * video.height;
  5199. $("#video").height(height);
  5200. }
  5201. if (key === "timeupdate") {
  5202. logHis(info, video.currentTime);
  5203. }
  5204. });
  5205. (_a = iframe.contentWindow) == null ? void 0 : _a.postMessage({ key: "initDone" }, "*");
  5206. iframe.focus();
  5207. window.addEventListener("keydown", (e) => {
  5208. if (document.activeElement !== document.body)
  5209. return;
  5210. iframe.focus();
  5211. if (e.key === " ")
  5212. e.preventDefault();
  5213. });
  5214. }
  5215. function playInIframeModule() {
  5216. const fn = (e) => {
  5217. var _a;
  5218. if (!((_a = e.data) == null ? void 0 : _a.key))
  5219. return;
  5220. if (e.data.key === "initDone") {
  5221. replacePlayer$1();
  5222. window.removeEventListener("message", fn);
  5223. }
  5224. };
  5225. window.addEventListener("message", fn);
  5226. parent.postMessage({ key: "initDone" }, "*");
  5227. }
  5228.  
  5229. runtime.register({
  5230. domains: [/bimiacg\d+.net/],
  5231. opts: [
  5232. {
  5233. test: /.*/,
  5234. setup: () => $("body").addClass("bimi-wrapper"),
  5235. run: histroyModule
  5236. },
  5237. { test: ["/play/"], run: playModule },
  5238. { test: [/.*/], runInIframe: true, run: playInIframeModule }
  5239. ],
  5240. search: {
  5241. name: "BIMI\u52A8\u6F2B",
  5242. search: (name) => `http://www.bimiacg10.net/vod/search/wd/${name}/`,
  5243. getSearchName: () => {
  5244. return new Promise((resolve) => {
  5245. const fn = (e) => {
  5246. if (e.data.key === "getSearchName") {
  5247. resolve(e.data.name);
  5248. window.removeEventListener("message", fn);
  5249. }
  5250. };
  5251. window.addEventListener("message", fn);
  5252. parent.postMessage({ key: "getSearchName" }, "*");
  5253. });
  5254. },
  5255. getEpisode: () => {
  5256. return new Promise((resolve) => {
  5257. const fn = (e) => {
  5258. if (e.data.key === "getEpisode") {
  5259. resolve(e.data.name);
  5260. window.removeEventListener("message", fn);
  5261. }
  5262. };
  5263. window.addEventListener("message", fn);
  5264. parent.postMessage({ key: "getEpisode" }, "*");
  5265. });
  5266. }
  5267. }
  5268. });
  5269.  
  5270. function getActive$2() {
  5271. return $(".module-play-list .module-play-list-link.active");
  5272. }
  5273. function switchPart$2(next) {
  5274. var _a;
  5275. return (_a = getActive$2()[next ? "next" : "prev"]().get(0)) == null ? void 0 : _a.href;
  5276. }
  5277. function runInTop$2() {
  5278. $("body").addClass("mutefun");
  5279. iframePlayer$2.runInTop();
  5280. }
  5281. const iframePlayer$2 = defineIframePlayer({
  5282. iframeSelector: "#playleft iframe",
  5283. getActive: getActive$2,
  5284. setActive: (href) => {
  5285. $(".module-play-list-link").each((_, el) => {
  5286. if (el.href === href) {
  5287. el.classList.add("active");
  5288. $(".playon").insertAfter($(el).find("span"));
  5289. } else {
  5290. el.classList.remove("active");
  5291. }
  5292. });
  5293. },
  5294. search: {
  5295. getSearchName: () => $(".module-info-heading h1").text(),
  5296. getEpisode: () => getActive$2().text()
  5297. },
  5298. getEpisodeList: () => $(".module-play-list-link"),
  5299. switchEpisode: (next) => switchPart$2(next)
  5300. });
  5301. async function parser$2() {
  5302. const video = await queryDom("video");
  5303. await wait(() => !!video.currentSrc);
  5304. let url = video.currentSrc;
  5305. url = await execInUnsafeWindow(() => window.config.url);
  5306. video.src = "";
  5307. const player = new KPlayer("#player", {
  5308. eventToParentWindow: true
  5309. });
  5310. player.src = url;
  5311. $("#ADplayer,#ADtip").remove();
  5312. }
  5313.  
  5314. var css$2 = ".mutefun.widescreen .header,\n.mutefun.widescreen .module-player-side,\n.mutefun.widescreen .fixedGroup {\n visibility: hidden;\n pointer-events: none;\n}";
  5315. injectCss(css$2,{});
  5316.  
  5317. runtime.register({
  5318. domains: [".mutedm.", ".mutean.", ".mute01."],
  5319. opts: [
  5320. { test: "/vodplay", run: runInTop$2 },
  5321. { test: "/vodplay", run: iframePlayer$2.runInIframe, runInIframe: true },
  5322. {
  5323. test: ["/addons/dp/player/dp.php"],
  5324. run: parser$2,
  5325. runInIframe: true
  5326. }
  5327. ],
  5328. search: {
  5329. name: "MuteFun",
  5330. search: (name) => `https://www.mutean.com/vodsearch/${name}-------------.html`,
  5331. getSearchName: () => {
  5332. return new Promise((resolve) => {
  5333. const fn = (e) => {
  5334. if (e.data.key === "getSearchName") {
  5335. resolve(e.data.name);
  5336. window.removeEventListener("message", fn);
  5337. }
  5338. };
  5339. window.addEventListener("message", fn);
  5340. parent.postMessage({ key: "getSearchName" }, "*");
  5341. });
  5342. },
  5343. getEpisode: () => {
  5344. return new Promise((resolve) => {
  5345. const fn = (e) => {
  5346. if (e.data.key === "getEpisode") {
  5347. resolve(e.data.name);
  5348. window.removeEventListener("message", fn);
  5349. }
  5350. };
  5351. window.addEventListener("message", fn);
  5352. parent.postMessage({ key: "getEpisode" }, "*");
  5353. });
  5354. }
  5355. }
  5356. });
  5357.  
  5358. function getActive$1() {
  5359. return $(".anthology-list-play li.on > a");
  5360. }
  5361. function switchPart$1(next) {
  5362. var _a;
  5363. return (_a = getActive$1().parent()[next ? "next" : "prev"]().find("a")[0]) == null ? void 0 : _a.href;
  5364. }
  5365. function runInTop$1() {
  5366. $("body").addClass("cycanime");
  5367. iframePlayer$1.runInTop();
  5368. }
  5369. const iframePlayer$1 = defineIframePlayer({
  5370. iframeSelector: "#playleft iframe",
  5371. getActive: getActive$1,
  5372. setActive: (href) => {
  5373. $(".anthology-list-play li a").each((_, el) => {
  5374. if (el.href === href) {
  5375. el.parentElement.classList.add("ecnav-dt", "on");
  5376. $(".play-on").insertAfter($(el).find("span"));
  5377. } else {
  5378. el.parentElement.classList.remove("ecnav-dt", "on");
  5379. }
  5380. });
  5381. },
  5382. search: {
  5383. getSearchName: () => $(".player-title-link").text(),
  5384. getEpisode: () => getActive$1().text()
  5385. },
  5386. getEpisodeList: () => $(".anthology-list-play li a"),
  5387. switchEpisode: (next) => switchPart$1(next)
  5388. });
  5389. async function parser$1() {
  5390. const video = await queryDom("video");
  5391. await wait(() => !!video.currentSrc);
  5392. let url = video.currentSrc;
  5393. video.src = "";
  5394. const player = new KPlayer("#mui-player", {
  5395. eventToParentWindow: true
  5396. });
  5397. player.src = url;
  5398. }
  5399.  
  5400. var css$1 = ".cycanime.widescreen .header_nav0,\n.cycanime.widescreen .top-back.hoa,\n.cycanime.widescreen .fixedGroup {\n visibility: hidden;\n pointer-events: none;\n}";
  5401. injectCss(css$1,{});
  5402.  
  5403. runtime.register({
  5404. domains: [".cycanime.", ".cyc-anime.", ".cycani."],
  5405. opts: [
  5406. { test: "/watch", run: runInTop$1 },
  5407. { test: "/watch", run: iframePlayer$1.runInIframe, runInIframe: true },
  5408. {
  5409. test: () => location.hostname.includes("player.cycanime"),
  5410. run: parser$1,
  5411. runInIframe: true
  5412. }
  5413. ],
  5414. search: {
  5415. name: "\u6B21\u5143\u57CE",
  5416. search: (name) => `https://www.cycani.org/search.html?wd=${name}`,
  5417. getSearchName: () => {
  5418. return new Promise((resolve) => {
  5419. const fn = (e) => {
  5420. if (e.data.key === "getSearchName") {
  5421. resolve(e.data.name);
  5422. window.removeEventListener("message", fn);
  5423. }
  5424. };
  5425. window.addEventListener("message", fn);
  5426. parent.postMessage({ key: "getSearchName" }, "*");
  5427. });
  5428. },
  5429. getEpisode: () => {
  5430. return new Promise((resolve) => {
  5431. const fn = (e) => {
  5432. if (e.data.key === "getEpisode") {
  5433. resolve(e.data.name);
  5434. window.removeEventListener("message", fn);
  5435. }
  5436. };
  5437. window.addEventListener("message", fn);
  5438. parent.postMessage({ key: "getEpisode" }, "*");
  5439. });
  5440. }
  5441. }
  5442. });
  5443.  
  5444. function getActive() {
  5445. return $(".anthology-list-play li.on > a");
  5446. }
  5447. function switchPart(next) {
  5448. var _a;
  5449. return (_a = getActive().parent()[next ? "next" : "prev"]().find("a")[0]) == null ? void 0 : _a.href;
  5450. }
  5451. function runInTop() {
  5452. $("body").addClass("xfani");
  5453. $(".player-news").remove();
  5454. iframePlayer.runInTop();
  5455. }
  5456. const iframePlayer = defineIframePlayer({
  5457. iframeSelector: "#playleft iframe",
  5458. getActive,
  5459. setActive: (href) => {
  5460. $(".anthology-list-play li a").each((_, el) => {
  5461. if (el.href === href) {
  5462. el.parentElement.classList.add("ecnav-dt", "on");
  5463. $(".play-on").insertAfter($(el).find("span"));
  5464. } else {
  5465. el.parentElement.classList.remove("ecnav-dt", "on");
  5466. }
  5467. });
  5468. },
  5469. search: {
  5470. getSearchName: () => $(".player-title-link").text(),
  5471. getEpisode: () => getActive().text()
  5472. },
  5473. getEpisodeList: () => $(".anthology-list-play li a"),
  5474. switchEpisode: (next) => switchPart(next)
  5475. });
  5476. async function parser() {
  5477. const video = await queryDom("video");
  5478. await wait(() => !!video.currentSrc);
  5479. let url = video.currentSrc;
  5480. video.src = "";
  5481. const player = new KPlayer("#player", {
  5482. eventToParentWindow: true
  5483. });
  5484. player.src = url;
  5485. $("#loading").remove();
  5486. await execInUnsafeWindow(() => {
  5487. PlayEr.void.destroy();
  5488. });
  5489. }
  5490.  
  5491. var css = ".xfani.widescreen .header_nav0,\n.xfani.widescreen .top-back.hoa,\n.xfani.widescreen .fixedGroup {\n visibility: hidden;\n pointer-events: none;\n}";
  5492. injectCss(css,{});
  5493.  
  5494. runtime.register({
  5495. domains: [".xfani.", "player.moedot"],
  5496. opts: [
  5497. { test: "/watch", run: runInTop },
  5498. { test: "/watch", run: iframePlayer.runInIframe, runInIframe: true },
  5499. {
  5500. test: () => location.hostname.includes("player.moedot"),
  5501. run: parser,
  5502. runInIframe: true
  5503. }
  5504. ],
  5505. search: {
  5506. name: "\u7A00\u996D\u52A8\u6F2B",
  5507. search: (name) => `https://dick.xfani.com/search.html?wd=${name}`,
  5508. getSearchName: () => {
  5509. return new Promise((resolve) => {
  5510. const fn = (e) => {
  5511. if (e.data.key === "getSearchName") {
  5512. resolve(e.data.name);
  5513. window.removeEventListener("message", fn);
  5514. }
  5515. };
  5516. window.addEventListener("message", fn);
  5517. parent.postMessage({ key: "getSearchName" }, "*");
  5518. });
  5519. },
  5520. getEpisode: () => {
  5521. return new Promise((resolve) => {
  5522. const fn = (e) => {
  5523. if (e.data.key === "getEpisode") {
  5524. resolve(e.data.name);
  5525. window.removeEventListener("message", fn);
  5526. }
  5527. };
  5528. window.addEventListener("message", fn);
  5529. parent.postMessage({ key: "getEpisode" }, "*");
  5530. });
  5531. }
  5532. }
  5533. });
  5534.  
  5535. function main() {
  5536. replacePlayer();
  5537. }
  5538. function getUrlId(url) {
  5539. const key = "k-player-standalone-url-store";
  5540. const store = local.getItem(key, {});
  5541. let id = store[url];
  5542. if (!id) {
  5543. id = Math.random().toString(36).slice(2);
  5544. store[url] = id;
  5545. local.setItem(key, store);
  5546. }
  5547. return id;
  5548. }
  5549. function replacePlayer() {
  5550. const player = new KPlayer("#player");
  5551. player.message.info(
  5552. "\u8BF7\u4F7F\u7528Ctrl+V\u7C98\u8D34\u89C6\u9891\u5730\u5740\uFF0C\u6216\u8005\u62D6\u62FD\u89C6\u9891\u6587\u4EF6/\u94FE\u63A5\u5230\u9875\u9762",
  5553. 6e4
  5554. );
  5555. player.on("loadstart", (e) => {
  5556. player.message.destroy();
  5557. const id = getUrlId(player.src);
  5558. history.replaceState(null, "", `#${id}`);
  5559. });
  5560. window.addEventListener("paste", (e) => {
  5561. var _a;
  5562. const text = (_a = e.clipboardData) == null ? void 0 : _a.getData("text");
  5563. if (text && isUrl(text)) {
  5564. player.src = text;
  5565. }
  5566. });
  5567. }
  5568.  
  5569. runtime.register({
  5570. domains: ["127.0.0.1", "ironkinoko.github.io"],
  5571. opts: [{ test: "*", run: main }],
  5572. search: {
  5573. getEpisode() {
  5574. return "";
  5575. },
  5576. getSearchName() {
  5577. return "";
  5578. }
  5579. }
  5580. });
  5581.  
  5582. runtime.run();
  5583.  
  5584. })(Hls, Plyr, Danmaku);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址