mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-01 05:31:01 +01:00
2 lines
1.4 MiB
JavaScript
2 lines
1.4 MiB
JavaScript
|
/*! For license information please see Crypto.js.LICENSE.txt */
|
||
|
(()=>{var t,e,r={53905:(t,e,r)=>{var n,i=r(65606),a="undefined"!=typeof self&&void 0!==self.Module?self.Module:{},o={};for(n in a)a.hasOwnProperty(n)&&(o[n]=a[n]);var s,u,h,c,f=[];h="object"==typeof window,c="function"==typeof importScripts,s="object"==typeof i&&"object"==typeof i.versions&&"string"==typeof i.versions.node,u=!h&&!s&&!c;var l,d,p,g,A,m="";s?(m=c?r(43627).dirname(m)+"/":"//",l=function(t,e){return g||(g=r(42789)),A||(A=r(43627)),t=A.normalize(t),g.readFileSync(t,e?null:"utf8")},p=function(t){var e=l(t,!0);return e.buffer||(e=new Uint8Array(e)),C(e.buffer),e},i.argv.length>1&&i.argv[1].replace(/\\/g,"/"),f=i.argv.slice(2),t.exports=a,i.on("uncaughtException",(function(t){if(!(t instanceof q))throw t})),i.on("unhandledRejection",x),a.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(l=function(t){return read(t)}),p=function(t){var e;return"function"==typeof readbuffer?new Uint8Array(readbuffer(t)):(C("object"==typeof(e=read(t,"binary"))),e)},"undefined"!=typeof scriptArgs?f=scriptArgs:"undefined"!=typeof arguments&&(f=arguments),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(h||c)&&(c?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),m=0!==m.indexOf("blob:")?m.substr(0,m.lastIndexOf("/")+1):"",l=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},c&&(p=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),d=function(t,e,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)}),a.print||console.log.bind(console);var y,v,b=a.printErr||console.warn.bind(console);for(n in o)o.hasOwnProperty(n)&&(a[n]=o[n]);o=null,a.arguments&&(f=a.arguments),a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(y=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&x("no native wasm support detected");var w=!1;function C(t,e){t||x("Assertion failed: "+e)}var E,S,I="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(t){E=t,a.HEAP8=new Int8Array(t),a.HEAP16=new Int16Array(t),a.HEAP32=new Int32Array(t),a.HEAPU8=S=new Uint8Array(t),a.HEAPU16=new Uint16Array(t),a.HEAPU32=new Uint32Array(t),a.HEAPF32=new Float32Array(t),a.HEAPF64=new Float64Array(t)}a.INITIAL_MEMORY;var _,M=[],T=[],k=[],R=0,L=null,D=null;function x(t){throw a.onAbort&&a.onAbort(t),b(t+=""),w=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}a.preloadedImages={},a.preloadedAudios={};function Q(t){return t.startsWith("data:application/octet-stream;base64,")}function N(t){return t.startsWith("file://")}var U,H="argon2.wasm";function F(t){try{if(t==H&&y)return new Uint8Array(y);if(p)return p(t);throw"both async and sync fetching of the wasm failed"}catch(t){x(t)}}function O(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?_.get(r)():_.get(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(a)}}function P(t){try{return v.grow(t-E.byteLength+65535>>>16),B(v.buffer),1}catch(t){}}Q(H)||(U=H,H=a.locateFile?a.locateFile(U,m):m+U);var G,j={a:function(t,e,r){S.copyWithin(t,e,e+r)},b:function(t){var e,r=S.length,n=2147418112;if((t>>>=0)>n)return!1;for(var i=1;i<=4;i*=2){var a=r*(1+.2/i);if(a=Math.min(a,t+100663296),P(Math.min(n,((e=Math.max(t,a))%65536>0&&(e+=65536-e%65536),e))))return!0}return!1}},K=(function(){var t={a:j};function e(t,e){var r,n=t.exports;a.asm=n,B((v=a.asm.c).buffer),_=a.asm.k,r=a.asm.d,T.unshift(r),function(t){if(R--,a.monitorRunDependencies&&a.monitorRunDependencies(R),0==R&&(null!==L&&(clearInterval(L),L=null),D)){var e=D;D=null,e()}}()}function r(t){e(t.instance)}function n(e){return function(){if(!y&&(h||c)){if("function"==typeof fetch&&!N(H))return fetch(H,{credentials:"same-origin"
|