Files

1 line
102 KiB
JavaScript
Raw Permalink Normal View History

2024-07-12 22:00:06 +01:00
var createFFmpegCore=function(){var e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return"undefined"!=typeof __filename&&(e=e||__filename),function(t){var n,r,i;t=t||{},n||(n=void 0!==t?t:{}),n.ready=new Promise((function(e,t){r=e,i=t}));var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var f=[],u="./this.program";function c(e,t){throw t}var s,l=!1,d=!1,h=!1;l="object"==typeof window,d="function"==typeof importScripts,h="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,s=!l&&!h&&!d;var p=n.ENVIRONMENT_IS_PTHREAD||!1;p&&(G=n.buffer);var m,g,w,y,v="";function b(e){return n.locateFile?n.locateFile(e,v):v+e}if(h){var _;v=d?require("path").dirname(v)+"/":__dirname+"/",m=function(e,t){return w||(w=require("fs")),y||(y=require("path")),e=y.normalize(e),w.readFileSync(e,t?null:"utf8")},g=function(e){return(e=m(e,!0)).buffer||(e=new Uint8Array(e)),F(e.buffer),e},1<process.argv.length&&(u=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof br))throw e})),process.on("unhandledRejection",de),c=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"};try{_=require("worker_threads")}catch(e){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),e}global.Worker=_.Worker}else s?("undefined"!=typeof read&&(m=function(e){return read(e)}),g=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(F("object"==typeof(e=read(e,"binary"))),e)},"undefined"!=typeof scriptArgs?f=scriptArgs:void 0!==arguments&&(f=arguments),"function"==typeof quit&&(c=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||d)&&(d?v=self.location.href:"undefined"!=typeof document&&document.currentScript&&(v=document.currentScript.src),e&&(v=e),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",h?(m=function(e,t){return w||(w=require("fs")),y||(y=require("path")),e=y.normalize(e),w.readFileSync(e,t?null:"utf8")},g=function(e){return(e=m(e,!0)).buffer||(e=new Uint8Array(e)),F(e.buffer),e}):(m=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},d&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})));h&&"undefined"==typeof performance&&(global.performance=require("perf_hooks").performance);var k=n.print||console.log.bind(console),A=n.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);a=null,n.arguments&&(f=n.arguments),n.thisProgram&&(u=n.thisProgram),n.quit&&(c=n.quit);var x,E,S,j=0;n.wasmBinary&&(E=n.wasmBinary),n.noExitRuntime&&(S=n.noExitRuntime),"object"!=typeof WebAssembly&&de("no native wasm support detected");var $,M,T=0,D=0,C=!1;function F(e,t){e||de("Assertion failed: "+t)}function O(e){var t=n["_"+e];return F(t,"Cannot call unknown function "+e+", make sure it is exported"),t}function I(e,t,n,r){var i={string:function(e){var t=0;if(null!=e&&0!==e){var n=1+(e.length<<2);t=ar(n),R(e,q,t,n)}return t},array:function(e){var t=ar(e.length);return W.set(e,t),t}},o=O(e),a=[];if(e=0,r)for(var f=0;f<r.length;f++){var u=i[n[f]];u?(0===e&&(e=ir()),a[f]=u(r[f])):a[f]=r[f]}return n=o.apply(null,a),n="string"===t?L(n):"boolean"===t?!!n:n,0!==e&&or(e),n}function P(e,t,n){n=t+n;for(var r="";!(t>=n);){var i=e[t++];if(!i)break;if(128&i){var o=63&e[t++];if(192==(224&i))r+=String.fromCharCode((31&i)<<6|o);else{var a=63&e[t++];65536>(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&e[t++])?r+=String.fromCharCode(i):(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else r+=String.fromCharCode(i)}return r}function L(e,t){return e?P(q,e,t):""}function R(e,t,n,r){if(!(0<r))return 0;var i=n;r=n+r-1;for(var o=0;o<e.length;++o){var a=e.charCodeAt(o);if(55296<=a&&57343>=a)a=65536+((1023&a)<<