ChengDa_English/SGGL/FineUIPro.Web/res/liveplayer/liveplayer-element.min.js

1 line
1.1 MiB
JavaScript
Raw Normal View History

2022-03-15 17:36:38 +08:00
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("global/window"),require("global/document")):"function"==typeof define&&define.amd?define(["global/window","global/document"],t):(e=e||self).videojs=t(e.window,e.document)}(this,(function(e,t){function n(e,t){Ye(e).forEach((function(n){return t(e[n],n)}))}function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return Object.assign?Object.assign.apply(Object,[e].concat(r)):(r.forEach((function(t){t&&n(t,(function(t,n){e[n]=t}))})),e)}function i(e){return!!e&&"object"==typeof e}function o(e){return i(e)&&"[object Object]"===Ke.call(e)&&e.constructor===Object}function a(t,n){if(!t||!n)return"";if("function"==typeof e.getComputedStyle){var r=e.getComputedStyle(t);return r?r.getPropertyValue(n)||r[n]:""}return""}function s(e){return"string"==typeof e&&/\S/.test(e)}function u(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function l(){return t===e.document}function c(e){return i(e)&&1===e.nodeType}function d(){try{return e.parent!==e.self}catch(e){return!0}}function f(e){return function(n,r){if(!s(n))return t[e](null);s(r)&&(r=t.querySelector(r));var i=c(r)?r:t;return i[e]&&i[e](n)}}function h(e,n,r,i){void 0===e&&(e="div"),void 0===n&&(n={}),void 0===r&&(r={});var o=t.createElement(e);return Object.getOwnPropertyNames(n).forEach((function(e){var t=n[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(qe.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+t+"."),o.setAttribute(e,t)):"textContent"===e?p(o,t):o[e]=t})),Object.getOwnPropertyNames(r).forEach((function(e){o.setAttribute(e,r[e])})),i&&R(o,i),o}function p(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function v(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function m(e,t){return u(t),e.classList?e.classList.contains(t):function(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}(t).test(e.className)}function g(e,t){return e?(e.classList?e.classList.add(t):m(e,t)||(e.className=(e.className+" "+t).trim()),e):e}function y(e,t){return e?(e.classList?e.classList.remove(t):(u(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e):e}function _(e,t,n){var r=m(e,t);return"function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!r),n===r||(n?g(e,t):y(e,t)),e}function b(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)}))}function T(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,r=n.length-1;r>=0;r--){var i=n[r].name,o=n[r].value;"boolean"!=typeof e[i]&&-1===",autoplay,stretch,fluent,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+i+",")||(o=null!==o),t[i]=o}return t}function S(e,t){return e.getAttribute(t)}function w(e,t,n){e.setAttribute(t,n)}function k(e,t){e.removeAttribute(t)}function E(){t.body.focus(),t.onselectstart=function(){return!1}}function C(){t.onselectstart=function(){return!0}}function A(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(a(e,"height"))),n.width||(n.width=parseFloat(a(e,"width"))),n}}function j(n){var r;if(n.getBoundingClientRect&&n.parentNode&&(r=n.getBoundingClientRect()),!r)return{left:0,top:0};var i=t.documentElement,o=t.body,a=i.clientLeft||o.clientLeft||0,s=e.pageXOffset||o.scrollLeft,u=r.left+s-a,l=i.clientTop||o.clientTop||0,c=e.pageYOffset||o.scrollTop,d=r.top+c-l;return{left:Math.round(u),top:Math.round(d)}}function x(e,t){var n={},r=j(e),i=e.offsetWidth,o=e.offsetHeight,a=r.top,s=r.left,u=t.pageY,l=t.pageX;return t.changedTouches&&(l=t.changedTouches[0].pageX,u=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-u+o)/o)),n.x=Math.max(0,Math.min(1,(l-s)/i)),n}function O(e)