learning_cesium/js/XbsjCesium/Workers/transcodeBASISToTexture.js

2 lines
33 KiB
JavaScript
Raw Normal View History

2024-03-19 18:06:25 +08:00
define(["./CompressedTextureBuffer-b8621cc1","./createTaskProcessorWorker","./when-54335d57"],function(C,e,r){"use strict";var gr,t,n=(gr="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(gr=gr||__filename),function(e){var r,a=void 0!==(e=e||{})?e:{},t={};for(r in a)a.hasOwnProperty(r)&&(t[r]=a[r]);var n,i,o,u,s=!1,c=!1,l=!1,s="object"==typeof window,c="function"==typeof importScripts,f="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,l=!s&&!f&&!c,p="";f?(p=c?require("path").dirname(p)+"/":__dirname+"/",n=function(e,r){return o=o||require("fs"),e=(u=u||require("path")).normalize(e),o.readFileSync(e,r?null:"utf8")},i=function(e){e=n(e,!0);return g((e=!e.buffer?new Uint8Array(e):e).buffer),e},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",function(e){if(!(e instanceof function(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}))throw e}),process.on("unhandledRejection",Z),a.inspect=function(){return"[Emscripten Module object]"}):l?("undefined"!=typeof read&&(n=function(e){return read(e)}),i=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(g("object"==typeof(e=read(e,"binary"))),e)},"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(s||c)&&(c?p=self.location.href:document.currentScript&&(p=document.currentScript.src),p=0!==(p=gr?gr:p).indexOf("blob:")?p.substr(0,p.lastIndexOf("/")+1):"",n=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},c&&(i=function(e){var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var d,h,y=a.print||console.log.bind(console),v=a.printErr||console.warn.bind(console);for(r in t)t.hasOwnProperty(r)&&(a[r]=t[r]);t=null,a.arguments,a.thisProgram,a.quit,a.wasmBinary&&(d=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&v("no native wasm support detected");var f=new WebAssembly.Table({initial:59,maximum:59,element:"anyfunc"}),m=!1;function g(e,r){e||Z("Assertion failed: "+r)}var T="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function C(e,r,t){for(var n=r+t,i=r;e[i]&&!(n<=i);)++i;if(16<i-r&&e.subarray&&T)return T.decode(e.subarray(r,i));for(var o="";r<i;){var a,u,s=e[r++];128&s?(a=63&e[r++],192!=(224&s)?(u=63&e[r++],(s=224==(240&s)?(15&s)<<12|a<<6|u:(7&s)<<18|a<<12|u<<6|63&e[r++])<65536?o+=String.fromCharCode(s):(u=s-65536,o+=String.fromCharCode(55296|u>>10,56320|1023&u))):o+=String.fromCharCode((31&s)<<6|a)):o+=String.fromCharCode(s)}return o}function w(e,r){return e?C(W,e,r):""}function b(e,r,t){return function(e,r,t,n){if(!(0<n))return;for(var i=t,o=t+n-1,a=0;a<e.length;++a){var u=e.charCodeAt(a);if((u=55296<=u&&u<=57343?65536+((1023&u)<<10)|1023&e.charCodeAt(++a):u)<=127){if(o<=t)break;r[t++]=u}else if(u<=2047){if(o<=t+1)break;r[t++]=192|u>>6,r[t++]=128|63&u}else if(u<=65535){if(o<=t+2)break;r[t++]=224|u>>12,r[t++]=128|u>>6&63,r[t++]=128|63&u}else{if(o<=t+3)break;r[t++]=240|u>>18,r[t++]=128|u>>12&63,r[t++]=128|u>>6&63,r[t++]=128|63&u}}return r[t]=0,t-i}(e,W,r,t)}var _="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function P(e){for(var r,t=e>>1;I[t];)++t;if(32<(r=t<<1)-e&&_)return _.decode(W.subarray(e,r));for(var n=0,i="";;){var o=I[e+2*n>>1];if(0==o)return i;++n,i+=String.fromCharCode(o)}}function $(e,r,t){if((t=void 0===t?2147483647:t)<2)return 0;for(var n=r,i=(t-=2)<2*e.length?t/2:e.length,o=0;o<i;++o){var a=e.charCodeAt(o);I[r>>1]=a,r+=2}return I[r>>1]=0,r-n}function A(e){return 2*e.length}function F(e){for(var r=0,t="";;){var n,i=k[e+4*r>>2];if(0==i)return t;++r,65536<=i?(n=i-65536,t+=String.fromCharCode(55296|n>>10,56320|1023&n)):t+=String.fromCharCode(i)}}function R(e,r,t){if((t=void 0===t?2147483647:t)<4)return 0;for(var n=r,i=n+t-4,o=0;o<e.length;++o){var a=e.charCodeAt(o);