mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
update deps
This commit is contained in:
1 parent
17ece4c0c8
commit
0aabb42db3
222 files changed
+2791
-2603
No files matched your search
@@ -5,4 +5,4 @@
|
||||
* (c) 2017-2025 Harvey Zack
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
!function(e,r,t,n,o){var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},a="function"==typeof i[n]&&i[n],c=a.cache||{},u="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function s(r,t){if(!c[r]){if(!e[r]){var o="function"==typeof i[n]&&i[n];if(!t&&o)return o(r,!0);if(a)return a(r,!0);if(u&&"string"==typeof r)return u(r);var f=Error("Cannot find module '"+r+"'");throw f.code="MODULE_NOT_FOUND",f}p.resolve=function(t){var n=e[r][1][t];return null!=n?n:t},p.cache={};var l=c[r]=new s.Module(r);e[r][0].call(l.exports,p,l,l.exports,this)}return c[r].exports;function p(e){var r=p.resolve(e);return!1===r?{}:s(r)}}s.isParcelRequire=!0,s.Module=function(e){this.id=e,this.bundle=s,this.exports={}},s.modules=e,s.cache=c,s.parent=a,s.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]},Object.defineProperty(s,"root",{get:function(){return i[n]}}),i[n]=s;for(var f=0;f<r.length;f++)s(r[f]);if(t){var l=s(t);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd&&define(function(){return l})}}({"59CNb":[function(e,r,t){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(t),n.export(t,"default",function(){return c});var o=e("@swc/helpers/_/_async_to_generator"),i=e("@swc/helpers/_/_to_consumable_array"),a=e("@swc/helpers/_/_ts_generator");function c(e){return function(r){var t,n=function(e){e in f||Object.defineProperty(f,e,{get:function(){var r=l[e];return"function"==typeof r?r.bind(l):r},set:function(r){l[e]=r},configurable:!0,enumerable:!0})},c=function(e){f[e]=function(){for(var r=arguments.length,t=Array(r),n=0;n<r;n++)t[n]=arguments[n];return e in _?_[e].apply(_,(0,i._)(t)):l[e].apply(l,t)}},u=r.constructor,s=u.utils.createElement,f=s("canvas"),l=s("video"),p=f.getContext("2d"),d=null,_={};for(var y in f)"function"==typeof f[y]&&(_[y]=f[y].bind(f));for(var h in l)n(h);for(var m in _)c(m);return t=u.config.events,setTimeout(function(){t.forEach(function(e){r.proxy(l,e,function(e){r.emit("video:".concat(e.type),e)})})}),r.on("video:loadedmetadata",function(){f.width=l.videoWidth,f.height=l.videoHeight}),r.on("video:play",function(){cancelAnimationFrame(d),j()}),r.on("video:pause",function(){cancelAnimationFrame(d)}),r.on("resize",function(){(function(){var e,t,n,o=null===(e=r.template)||void 0===e?void 0:e.$player;if(o&&!r.option.autoSize){var i=l.videoWidth/l.videoHeight,a=o.clientWidth,c=o.clientHeight;a/c>i?t=(n=c)*i:n=(t=a)/i,f.width=t,f.height=n;var u=(a-t)/2,s=(c-n)/2;Object.assign(f.style,{padding:"".concat(s,"px ").concat(u,"px")})}})(),v()}),r.on("destroy",function(){cancelAnimationFrame(d)}),f;function v(){return b.apply(this,arguments)}function b(){return(b=(0,o._)(function(){var t,n;return(0,a._)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,4,,5]),!("undefined"!=typeof createImageBitmap))return[3,2];return[4,createImageBitmap(l)];case 1:return t=o.sent(),p.drawImage(t,0,0,f.width,f.height),t.close(),[3,3];case 2:p.drawImage(l,0,0,f.width,f.height),o.label=3;case 3:return e&&e(p,l),r.emit("artplayerProxyCanvas:draw",p,l),[3,5];case 4:return n=o.sent(),r.emit("artplayerProxyCanvas:error",n),[3,5];case 5:return[2]}})})).apply(this,arguments)}function j(){return w.apply(this,arguments)}function w(){return(w=(0,o._)(function(){return(0,a._)(this,function(e){switch(e.label){case 0:return[4,v()];case 1:return e.sent(),d=requestAnimationFrame(j),[2]}})})).apply(this,arguments)}}}"undefined"!=typeof window&&(window.artplayerProxyCanvas=c)},{"@swc/helpers/_/_async_to_generator":"eONSn","@swc/helpers/_/_to_consumable_array":"iwLF0","@swc/helpers/_/_ts_generator":"6Xyd0","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],eONSn:[function(e,r,t){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function o(e,r,t,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){t(e);return}c.done?r(u):Promise.resolve(u).then(n,o)}function i(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var a=e.apply(r,t);function c(e){o(a,n,i,c,u,"next",e)}function u(e){o(a,n,i,c,u,"throw",e)}c(void 0)})}}n.defineInteropFlag(t),n.export(t,"_",function(){return i})},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],iWrD0:[function(e,r,t){t.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},t.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.exportAll=function(e,r){return Object.keys(e).forEach(function(t){"default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),r},t.export=function(e,r,t){Object.defineProperty(e,r,{enumerable:!0,get:t})}},{}],iwLF0:[function(e,r,t){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(t),n.export(t,"_",function(){return u});var o=e("./_array_without_holes.js"),i=e("./_iterable_Line truncated
|
||||
!function(e,r,t,n,o,i,a,c){var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof u[n]&&u[n],f=s.i||{},l=s.cache||{},p="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function d(r,t){if(!l[r]){if(!e[r]){if(o[r])return o[r];var i="function"==typeof u[n]&&u[n];if(!t&&i)return i(r,!0);if(s)return s(r,!0);if(p&&"string"==typeof r)return p(r);var a=Error("Cannot find module '"+r+"'");throw a.code="MODULE_NOT_FOUND",a}f.resolve=function(t){var n=e[r][1][t];return null!=n?n:t},f.cache={};var c=l[r]=new d.Module(r);e[r][0].call(c.exports,f,c,c.exports,u)}return l[r].exports;function f(e){var r=f.resolve(e);return!1===r?{}:d(r)}}d.isParcelRequire=!0,d.Module=function(e){this.id=e,this.bundle=d,this.require=p,this.exports={}},d.modules=e,d.cache=l,d.parent=s,d.distDir=void 0,d.publicUrl=void 0,d.devServer=void 0,d.i=f,d.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]},Object.defineProperty(d,"root",{get:function(){return u[n]}}),u[n]=d;for(var _=0;_<r.length;_++)d(r[_]);if(t){var y=d(t);"object"==typeof exports&&"undefined"!=typeof module?module.exports=y:"function"==typeof define&&define.amd&&define(function(){return y})}}({"59CNb":[function(e,r,t,n){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(t),o.export(t,"default",function(){return u});var i=e("@swc/helpers/_/_async_to_generator"),a=e("@swc/helpers/_/_to_consumable_array"),c=e("@swc/helpers/_/_ts_generator");function u(e){return function(r){var t,n=function(e){e in f||Object.defineProperty(f,e,{get:function(){var r=l[e];return"function"==typeof r?r.bind(l):r},set:function(r){l[e]=r},configurable:!0,enumerable:!0})},o=function(e){f[e]=function(){for(var r=arguments.length,t=Array(r),n=0;n<r;n++)t[n]=arguments[n];return e in _?_[e].apply(_,(0,a._)(t)):l[e].apply(l,t)}},u=r.constructor,s=u.utils.createElement,f=s("canvas"),l=s("video"),p=f.getContext("2d"),d=null,_={};for(var y in f)"function"==typeof f[y]&&(_[y]=f[y].bind(f));for(var h in l)n(h);for(var m in _)o(m);return t=u.config.events,setTimeout(function(){t.forEach(function(e){r.proxy(l,e,function(e){r.emit("video:".concat(e.type),e)})})}),r.on("video:loadedmetadata",function(){f.width=l.videoWidth,f.height=l.videoHeight}),r.on("video:play",function(){cancelAnimationFrame(d),j()}),r.on("video:pause",function(){cancelAnimationFrame(d)}),r.on("resize",function(){!function(){var e,t,n,o=null==(e=r.template)?void 0:e.$player;if(o&&!r.option.autoSize){var i=l.videoWidth/l.videoHeight,a=o.clientWidth,c=o.clientHeight;a/c>i?t=(n=c)*i:n=(t=a)/i,f.width=t,f.height=n;var u=(a-t)/2,s=(c-n)/2;Object.assign(f.style,{padding:"".concat(s,"px ").concat(u,"px")})}}(),v()}),r.on("destroy",function(){cancelAnimationFrame(d)}),f;function v(){return b.apply(this,arguments)}function b(){return(b=(0,i._)(function(){var t,n;return(0,c._)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,4,,5]),"undefined"==typeof createImageBitmap)return[3,2];return[4,createImageBitmap(l)];case 1:return t=o.sent(),p.drawImage(t,0,0,f.width,f.height),t.close(),[3,3];case 2:p.drawImage(l,0,0,f.width,f.height),o.label=3;case 3:return e&&e(p,l),r.emit("artplayerProxyCanvas:draw",p,l),[3,5];case 4:return n=o.sent(),r.emit("artplayerProxyCanvas:error",n),[3,5];case 5:return[2]}})})).apply(this,arguments)}function j(){return w.apply(this,arguments)}function w(){return(w=(0,i._)(function(){return(0,c._)(this,function(e){switch(e.label){case 0:return[4,v()];case 1:return e.sent(),d=requestAnimationFrame(j),[2]}})})).apply(this,arguments)}}}"undefined"!=typeof window&&(window.artplayerProxyCanvas=u)},{"@swc/helpers/_/_async_to_generator":"eONSn","@swc/helpers/_/_to_consumable_array":"iwLF0","@swc/helpers/_/_ts_generator":"6Xyd0","@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],eONSn:[function(e,r,t,n){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");function i(e,r,t,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){t(e);return}c.done?r(u):Promise.resolve(u).then(n,o)}function a(e){return function(){var r=this,t=arguments;return new Promise(function(n,o){var a=e.apply(r,t);function c(e){i(a,n,o,c,u,"next",e)}function u(e){i(a,n,o,c,u,"throw",e)}c(void 0)})}}o.defineInteropFlag(t),o.export(t,"_",function(){return a})},{"@parcel/transformer-js/src/esmodule-helpers.js":"iWrD0"}],iWrD0:[function(e,r,t,n){t.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},t.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.exportAll=function(e,r){return Object.keys(e).forEach(function(t){"default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return e[t]}})}),r},t.export=function(e,r,t){Object.defineProperty(e,r,{enumerable:!0,get:t})}},{}],iwLF0:[function(e,r,t,n){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteroLine truncated
|
||||
Reference in new issue
Block a user