@loaders.gl/crypto
Advanced tools
Comparing version 4.3.0-alpha.8 to 4.3.0-beta.1
@@ -1,2 +0,2 @@ | ||
"use strict";(()=>{var ye=null;function fe(i,e=!0,x){let A=x||new Set;if(i){if(Be(i))A.add(i);else if(Be(i.buffer))A.add(i.buffer);else if(!ArrayBuffer.isView(i)){if(e&&typeof i=="object")for(let d in i)fe(i[d],e,A)}}return x===void 0?Array.from(A):[]}function Be(i){return i?i instanceof ArrayBuffer||typeof MessagePort<"u"&&i instanceof MessagePort||typeof ImageBitmap<"u"&&i instanceof ImageBitmap||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas:!1}async function N(){return ye}var ce=new Map,v=class{static async inWorkerThread(){return typeof self<"u"||Boolean(await N())}static set onmessage(e){async function x(A){let d=await N(),{type:l,payload:p}=d?A:A.data;e(l,p)}N().then(A=>{A?(A.on("message",d=>{x(d)}),A.on("exit",()=>console.debug("Node worker closing"))):globalThis.onmessage=x})}static async addEventListener(e){let x=ce.get(e);x||(x=async d=>{if(!Fe(d))return;let l=await N(),{type:p,payload:E}=l?d:d.data;e(p,E)}),await N()?console.error("not implemented"):globalThis.addEventListener("message",x)}static async removeEventListener(e){let x=ce.get(e);ce.delete(e),await N()?console.error("not implemented"):globalThis.removeEventListener("message",x)}static async postMessage(e,x){let A={source:"loaders.gl",type:e,payload:x},d=fe(x),l=await N();l?l.postMessage(A,d):globalThis.postMessage(A,d)}};function Fe(i){let{type:e,data:x}=i;return e==="message"&&x&&typeof x.source=="string"&&x.source.startsWith("loaders.gl")}var Y=class{_values;_settlers;_closed;constructor(){this._values=[],this._settlers=[],this._closed=!1}[Symbol.asyncIterator](){return this}push(e){return this.enqueue(e)}enqueue(e){if(this._closed)throw new Error("Closed");if(this._settlers.length>0){if(this._values.length>0)throw new Error("Illegal internal state");let x=this._settlers.shift();e instanceof Error?x.reject(e):x.resolve({value:e})}else this._values.push(e)}close(){for(;this._settlers.length>0;)this._settlers.shift().resolve({done:!0});this._closed=!0}next(){if(this._values.length>0){let e=this._values.shift();return e instanceof Error?Promise.reject(e):Promise.resolve({done:!1,value:e})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise((e,x)=>{this._settlers.push({resolve:e,reject:x})})}};var Ge=0,te,he;async function xe(i,e){if(!await v.inWorkerThread())return;let x={process:Se};v.onmessage=async(A,d)=>{try{switch(A){case"process":if(!i)throw new Error("Worker does not support atomic processing");let l=await i(d.input,d.options||{},x);v.postMessage("done",{result:l});break;case"process-in-batches":if(!e)throw new Error("Worker does not support batched processing");te=new Y,he=d.options||{};let p=e(te,he,x);for await(let E of p)v.postMessage("output-batch",{result:E});v.postMessage("done",{});break;case"input-batch":te.push(d.input);break;case"input-done":te.close();break;default:}}catch(l){let p=l instanceof Error?l.message:"";v.postMessage("error",{error:p})}}}function Se(i,e={}){return new Promise((x,A)=>{let d=Ge++,l=(E,I)=>{if(I.id===d)switch(E){case"done":v.removeEventListener(l),x(I.result);break;case"error":v.removeEventListener(l),A(I.error);break;default:}};v.addEventListener(l);let p={id:d,input:i,options:e};v.postMessage("process",p)})}function ge(...i){return Pe(i)}function Pe(i){let e=i.map(l=>l instanceof ArrayBuffer?new Uint8Array(l):l),x=e.reduce((l,p)=>l+p.byteLength,0),A=new Uint8Array(x),d=0;for(let l of e)A.set(l,d),d+=l.byteLength;return A.buffer}async function ie(i){let e=[];for await(let x of i)e.push(x);return ge(...e)}var V=class{constructor(e={}){this.hashBatches=this.hashBatches.bind(this)}async preload(){}async*hashBatches(e,x="base64"){let A=[];for await(let p of e)A.push(p),yield p;let d=await this.concatenate(A),l=await this.hash(d,x);this.options.crypto?.onEnd?.({hash:l})}async concatenate(e){return await ie(e)}};var X=class{crc;constructor(){this.crc=-1}update(e){let x=De(),A=new Uint8Array(e);for(let d=0;d<A.byteLength;d++)this.crc=this.crc>>>8^x[(this.crc^A[d])&255];return this}finalize(){return this.crc=(this.crc^-1)>>>0,this.crc}},Le=Uint32Array.of(0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117);function De(){return Le}function we(i){i=`${i}`;for(let x=0;x<i.length;x++)if(i.charCodeAt(x)>255)return null;let e="";for(let x=0;x<i.length;x+=3){let A=[void 0,void 0,void 0,void 0];A[0]=i.charCodeAt(x)>>2,A[1]=(i.charCodeAt(x)&3)<<4,i.length>x+1&&(A[1]|=i.charCodeAt(x+1)>>4,A[2]=(i.charCodeAt(x+1)&15)<<2),i.length>x+2&&(A[2]|=i.charCodeAt(x+2)>>6,A[3]=i.charCodeAt(x+2)&63);for(let d=0;d<A.length;d++)typeof A[d]>"u"?e+="=":e+=je(A[d])}return e}function je(i){if(i<26)return String.fromCharCode(i+"A".charCodeAt(0));if(i<52)return String.fromCharCode(i-26+"a".charCodeAt(0));if(i<62)return String.fromCharCode(i-52+"0".charCodeAt(0));if(i===62)return"+";if(i===63)return"/"}function z(i,e){switch(e){case"hex":return Ee(i);case"base64":return Ie(Ee(i));default:throw new Error(e)}}function Qe(i,e){switch(e){case"hex":return i;case"base64":return Ie(i);default:throw new Error(e)}}function Ie(i){i.length%2!==0&&(i=`0${i}`);let x=(i.match(/\w{2}/g)||[]).map(A=>String.fromCharCode(parseInt(A,16))).join("");return we(x)||""}function Ee(i){let e=i.toString(16);return e==="0"?`0${e}`:e}var ae=class extends V{name="crc32";options;constructor(e={}){super(),this.options={crypto:{},...e},this.hashBatches=this.hashBatches.bind(this)}async hash(e,x){return this.hashSync(e,x)}hashSync(e,x){let A=new X;A.update(e);let d=A.finalize();return z(d,x)}async*hashBatches(e,x="base64"){let A=new X;for await(let l of e)A.update(l),yield l;let d=A.finalize();this.options.crypto?.onEnd?.({hash:z(d,x)})}};var O=class{options;crc;constructor(e={}){this.options=e,this.crc=-1}update(e){let x=new Uint8Array(e),A=Ue();for(let d=0;d<x.length;d++)this.crc=A[(this.crc^x[d])&255]^this.crc>>>8;return this}finalize(){return this.crc=(this.crc^-1)>>>0,this.crc}},qe=Int32Array.of(0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697);function Ue(){return qe}var oe=class extends V{name="crc32c";options;constructor(e={}){super(),this.options={crypto:{},...e}}async hash(e,x){return this.hashSync(e,x)}hashSync(e,x){let A=new O(this.options);A.update(e);let d=A.finalize();return z(d,x)}async*hashBatches(e,x="base64"){let A=new O(this.options);for await(let l of e)A.update(l),yield l;let d=A.finalize();this.options.crypto?.onEnd?.({hash:z(d,x)})}};var Me=typeof atob=="function"?atob:typeof Buffer=="function"?Xe:ve,Je=Me("AGFzbQEAAAABDANgAX8AYAAAYAABfwIeAgdpbXBvcnRzA2xvZwAAB2ltcG9ydHMDbWVtAgABAzIxAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAAAAAAAAAAAAgICAgIAAAAAAAaYARt/AUGBxpS6Bgt/AUGJ17b+fgt/AUH+uevFeQt/AUH2qMmBAQt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALB7oCJQhvbmVGdWxsQQAYCG9uZUZ1bGxCABkIb25lRnVsbEMAGghvbmVGdWxsRAAbBWxvb3BzAAEEbG9vcAACBXByaW1lAAMFbG9vcEEABAZsb29wQTEABQZ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ACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgCAAABAW4ZAgAAAQFuGgIAAAEBbhsCAAABAW4cAgAAAQFuHQIAAAEBbh4CAAABAW4fAgAAAQFuIAIAAAEBbiECAAABAW4iAgAAAQFuIwIAAAEBbiQCAAABAW4lAgAAAQFuJgIAAAEBbicCAAABAW4oACkAKgArACwALQEAAC4BAAAvAQAAMAEAADEBAAA="),Ae=WebAssembly&&Me!==ve?Ze(Je).buffer:!1,q=ze(),de=240*16*16,We=Math.floor(de*16*1.066666667),Re=268435456-65536,Ce="Parameter must be Buffer, ArrayBuffer or Uint8Array",He="Parameter exceeds max size of 255.9 Mbytes";Ae||console.log("WebAssembly not available or WASM module could not be decoded; md5WASM will fall back to JavaScript");function be(i){var e,x,A,d,l,p,E,I,S,L;let U=Ne(),T=Ve(),k={},G=new Date().getTime();return k.then=function(y){return E=y,C(),k},k.catch=function(y){return I=y,k},i&&typeof i=="object"?typeof Buffer=="function"&&i.constructor===Buffer?p=i:i.constructor===Uint8Array||i.constructor===ArrayBuffer?p=i.constructor===ArrayBuffer?new Uint8Array(i):i:Q(new TypeError(Ce)):Q(new TypeError(Ce)),p&&(l=p.length,Ae&&l>We?l>Re?Q(new Error(He)):(e=new WebAssembly.Memory({initial:l>32e6?l>64e6?l>128e6?4096:2048:1024:512}),x=new Uint32Array(e.buffer),d={mem:e,log:console.log},A={imports:d},WebAssembly.instantiate(Ae,A).then(B)):C(U(p))),k;function B(y){C(T(p,y.instance.exports,x))}function C(y){var P=Boolean(y)?y:S;Boolean(y)&&(L=new Date().getTime()),typeof E=="function"?Boolean(P)&&(E(P,L-G),E=I=null):Boolean(y)&&(S=y)}function Q(y){typeof I=="function"&&I(y)}}function Ve(){var i,e,x,A,d,l,p,E,I,S,L,U,T,k=function(G){var B,C,Q,y,P,J,R,H,m,Z,r,t,a,o,D,F,g,b,K,$,w,Oe,_e=new Date().getTime(),Te=0,s=1732584193,n=-271733879,f=-1732584194,c=271733878,h=0,_=G.length*8,ee;for(ee=ke(G,T),T[_>>>5]|=128<<_%32,T[(_+64>>>9<<4)+14]=_,ee=(_+64>>>9<<4)+15,w=T;h<ee;)ee>h+We?(A(s),l(n),E(f),S(c),e(de),h=h+de*16,s=x(),n=d(),f=p(),c=I(),Te++):(g=s,b=n,K=f,$=c,B=w[h+0]>>>0,C=w[h+1]>>>0,Q=w[h+2]>>>0,y=w[h+3]>>>0,P=w[h+4]>>>0,J=w[h+5]>>>0,R=w[h+6]>>>0,H=w[h+7]>>>0,m=w[h+8]>>>0,Z=w[h+9]>>>0,r=w[h+10]>>>0,t=w[h+11]>>>0,a=w[h+12]>>>0,o=w[h+13]>>>0,D=w[h+14]>>>0,F=w[h+15]>>>0,s=u(7,25,s+(n&f|~n&c)+B-680876936)+n,c=u(12,20,c+(s&n|~s&f)+C-389564586)+s,f=u(17,15,f+(c&s|~c&n)+Q+606105819)+c,n=u(22,10,n+(f&c|~f&s)+y-1044525330)+f,s=u(7,25,s+(n&f|~n&c)+P-176418897)+n,c=u(12,20,c+(s&n|~s&f)+J+1200080426)+s,f=u(17,15,f+(c&s|~c&n)+R-1473231341)+c,n=u(22,10,n+(f&c|~f&s)+H-45705983)+f,s=u(7,25,s+(n&f|~n&c)+m+1770035416)+n,c=u(12,20,c+(s&n|~s&f)+Z-1958414417)+s,f=u(17,15,f+(c&s|~c&n)+r-42063)+c,n=u(22,10,n+(f&c|~f&s)+t-1990404162)+f,s=u(7,25,s+(n&f|~n&c)+a+1804603682)+n,c=u(12,20,c+(s&n|~s&f)+o-40341101)+s,f=u(17,15,f+(c&s|~c&n)+D-1502002290)+c,n=u(22,10,n+(f&c|~f&s)+F+1236535329)+f,s=u(5,27,s+(n&c|f&~c)+C-165796510)+n,c=u(9,23,c+(s&f|n&~f)+R-1069501632)+s,f=u(14,18,f+(c&n|s&~n)+t+643717713)+c,n=u(20,12,n+(f&s|c&~s)+B-373897302)+f,s=u(5,27,s+(n&c|f&~c)+J-701558691)+n,c=u(9,23,c+(s&f|n&~f)+r+38016083)+s,f=u(14,18,f+(c&n|s&~n)+F-660478335)+c,n=u(20,12,n+(f&s|c&~s)+P-405537848)+f,s=u(5,27,s+(n&c|f&~c)+Z+568446438)+n,c=u(9,23,c+(s&f|n&~f)+D-1019803690)+s,f=u(14,18,f+(c&n|s&~n)+y-187363961)+c,n=u(20,12,n+(f&s|c&~s)+m+1163531501)+f,s=u(5,27,s+(n&c|f&~c)+o-1444681467)+n,c=u(9,23,c+(s&f|n&~f)+Q-51403784)+s,f=u(14,18,f+(c&n|s&~n)+H+1735328473)+c,n=u(20,12,n+(f&s|c&~s)+a-1926607734)+f,s=u(4,28,s+(n^f^c)+J-378558)+n,c=u(11,21,c+(s^n^f)+m-2022574463)+s,f=u(16,16,f+(c^s^n)+t+1839030562)+c,n=u(23,9,n+(f^c^s)+D-35309556)+f,s=u(4,28,s+(n^f^c)+C-1530992060)+n,c=u(11,21,c+(s^n^f)+P+1272893353)+s,f=u(16,16,f+(c^s^n)+H-155497632)+c,n=u(23,9,n+(f^c^s)+r-1094730640)+f,s=u(4,28,s+(n^f^c)+o+681279174)+n,c=u(11,21,c+(s^n^f)+B-358537222)+s,f=u(16,16,f+(c^s^n)+y-722521979)+c,n=u(23,9,n+(f^c^s)+R+76029189)+f,s=u(4,28,s+(n^f^c)+Z-640364487)+n,c=u(11,21,c+(s^n^f)+a-421815835)+s,f=u(16,16,f+(c^s^n)+F+530742520)+c,n=u(23,9,n+(f^c^s)+Q-995338651)+f,s=u(6,26,s+(f^(n|~c))+B-198630844)+n,c=u(10,22,c+(n^(s|~f))+H+1126891415)+s,f=u(15,17,f+(s^(c|~n))+D-1416354905)+c,n=u(21,11,n+(c^(f|~s))+J-57434055)+f,s=u(6,26,s+(f^(n|~c))+a+1700485571)+n,c=u(10,22,c+(n^(s|~f))+y-1894986606)+s,f=u(15,17,f+(s^(c|~n))+r-1051523)+c,n=u(21,11,n+(c^(f|~s))+C-2054922799)+f,s=u(6,26,s+(f^(n|~c))+m+1873313359)+n,c=u(10,22,c+(n^(s|~f))+F-30611744)+s,f=u(15,17,f+(s^(c|~n))+R-1560198380)+c,n=u(21,11,n+(c^(f|~s))+o+1309151649)+f,s=u(6,26,s+(f^(n|~c))+P-145523070)+n,c=u(10,22,c+(n^(s|~f))+t-1120210379)+s,f=u(15,17,f+(s^(c|~n))+Q+718787259)+c,n=u(21,11,n+(c^(f|~s))+Z-343485551)+f,h=h+16,s=s+g>>>0,n=n+b>>>0,f=f+K>>>0,c=c+$>>>0);return q.endian([s,n,f,c]);function u(M,re,j){return j<<M|j>>>re}function ke(M,re){for(var j=-1,ne=Math.floor((M.length-1)/4),W=0,ue,le,pe,me;ne-8>j++;)W=j<<2,re[j]=M[W+0]|M[W+1]<<8|M[W+2]<<16|M[W+3]<<24;for(j--;ne>j++;)W=j<<2,ue=typeof M[W+0]>"u"?0:M[W+0],le=typeof M[W+1]>"u"?0:M[W+1],pe=typeof M[W+2]>"u"?0:M[W+2],me=typeof M[W+3]>"u"?0:M[W+3],re[j]=ue|le<<8|pe<<16|me<<24;return ne+1}};return function(G,B,C,Q){var y;return e=B.loops,i=B.loop,x=B.getA,d=B.getB,p=B.getC,I=B.getD,L=B.getX,A=B.setA,l=B.setB,E=B.setC,S=B.setD,U=B.setX,T=C,y=q.wordsToBytes(k(G)),Q&&Q.asBytes?y:q.bytesconvertNumberToHex(y)}}function Ne(){var i=function(e,x){var A,d,l,p,E,I,S,L,U,T,k,G,B,C,Q,y,P,J,R,H,m,Z=new Date().getTime(),r=1732584193,t=-271733879,a=-1732584194,o=271733878,D=e.length*8;m=q.bytesToWords(e);for(var F=0;F<m.length;F++)m[F]=(m[F]<<8|m[F]>>>24)&16711935|(m[F]<<24|m[F]>>>8)&4278255360;m[D>>>5]|=128<<D%32,m[(D+64>>>9<<4)+14]=D;for(var g=0;g<m.length;g+=16)P=r,J=t,R=a,H=o,A=m[g+0]>>>0,d=m[g+1]>>>0,l=m[g+2]>>>0,p=m[g+3]>>>0,E=m[g+4]>>>0,I=m[g+5]>>>0,S=m[g+6]>>>0,L=m[g+7]>>>0,U=m[g+8]>>>0,T=m[g+9]>>>0,k=m[g+10]>>>0,G=m[g+11]>>>0,B=m[g+12]>>>0,C=m[g+13]>>>0,Q=m[g+14]>>>0,y=m[g+15]>>>0,r=b(7,25,r+(t&a|~t&o)+A-680876936)+t,o=b(12,20,o+(r&t|~r&a)+d-389564586)+r,a=b(17,15,a+(o&r|~o&t)+l+606105819)+o,t=b(22,10,t+(a&o|~a&r)+p-1044525330)+a,r=b(7,25,r+(t&a|~t&o)+E-176418897)+t,o=b(12,20,o+(r&t|~r&a)+I+1200080426)+r,a=b(17,15,a+(o&r|~o&t)+S-1473231341)+o,t=b(22,10,t+(a&o|~a&r)+L-45705983)+a,r=b(7,25,r+(t&a|~t&o)+U+1770035416)+t,o=b(12,20,o+(r&t|~r&a)+T-1958414417)+r,a=b(17,15,a+(o&r|~o&t)+k-42063)+o,t=b(22,10,t+(a&o|~a&r)+G-1990404162)+a,r=b(7,25,r+(t&a|~t&o)+B+1804603682)+t,o=b(12,20,o+(r&t|~r&a)+C-40341101)+r,a=b(17,15,a+(o&r|~o&t)+Q-1502002290)+o,t=b(22,10,t+(a&o|~a&r)+y+1236535329)+a,r=b(5,27,r+(t&o|a&~o)+d-165796510)+t,o=b(9,23,o+(r&a|t&~a)+S-1069501632)+r,a=b(14,18,a+(o&t|r&~t)+G+643717713)+o,t=b(20,12,t+(a&r|o&~r)+A-373897302)+a,r=b(5,27,r+(t&o|a&~o)+I-701558691)+t,o=b(9,23,o+(r&a|t&~a)+k+38016083)+r,a=b(14,18,a+(o&t|r&~t)+y-660478335)+o,t=b(20,12,t+(a&r|o&~r)+E-405537848)+a,r=b(5,27,r+(t&o|a&~o)+T+568446438)+t,o=b(9,23,o+(r&a|t&~a)+Q-1019803690)+r,a=b(14,18,a+(o&t|r&~t)+p-187363961)+o,t=b(20,12,t+(a&r|o&~r)+U+1163531501)+a,r=b(5,27,r+(t&o|a&~o)+C-1444681467)+t,o=b(9,23,o+(r&a|t&~a)+l-51403784)+r,a=b(14,18,a+(o&t|r&~t)+L+1735328473)+o,t=b(20,12,t+(a&r|o&~r)+B-1926607734)+a,r=b(4,28,r+(t^a^o)+I-378558)+t,o=b(11,21,o+(r^t^a)+U-2022574463)+r,a=b(16,16,a+(o^r^t)+G+1839030562)+o,t=b(23,9,t+(a^o^r)+Q-35309556)+a,r=b(4,28,r+(t^a^o)+d-1530992060)+t,o=b(11,21,o+(r^t^a)+E+1272893353)+r,a=b(16,16,a+(o^r^t)+L-155497632)+o,t=b(23,9,t+(a^o^r)+k-1094730640)+a,r=b(4,28,r+(t^a^o)+C+681279174)+t,o=b(11,21,o+(r^t^a)+A-358537222)+r,a=b(16,16,a+(o^r^t)+p-722521979)+o,t=b(23,9,t+(a^o^r)+S+76029189)+a,r=b(4,28,r+(t^a^o)+T-640364487)+t,o=b(11,21,o+(r^t^a)+B-421815835)+r,a=b(16,16,a+(o^r^t)+y+530742520)+o,t=b(23,9,t+(a^o^r)+l-995338651)+a,r=b(6,26,r+(a^(t|~o))+A-198630844)+t,o=b(10,22,o+(t^(r|~a))+L+1126891415)+r,a=b(15,17,a+(r^(o|~t))+Q-1416354905)+o,t=b(21,11,t+(o^(a|~r))+I-57434055)+a,r=b(6,26,r+(a^(t|~o))+B+1700485571)+t,o=b(10,22,o+(t^(r|~a))+p-1894986606)+r,a=b(15,17,a+(r^(o|~t))+k-1051523)+o,t=b(21,11,t+(o^(a|~r))+d-2054922799)+a,r=b(6,26,r+(a^(t|~o))+U+1873313359)+t,o=b(10,22,o+(t^(r|~a))+y-30611744)+r,a=b(15,17,a+(r^(o|~t))+S-1560198380)+o,t=b(21,11,t+(o^(a|~r))+C+1309151649)+a,r=b(6,26,r+(a^(t|~o))+E-145523070)+t,o=b(10,22,o+(t^(r|~a))+G-1120210379)+r,a=b(15,17,a+(r^(o|~t))+l+718787259)+o,t=b(21,11,t+(o^(a|~r))+T-343485551)+a,r=r+P>>>0,t=t+J>>>0,a=a+R>>>0,o=o+H>>>0;return q.endian([r,t,a,o]);function b(K,$,w){return w<<K|w>>>$}};return function(e,x){var A=q.wordsToBytes(i(e,x)),d=x&&x.asBytes?A:q.bytesconvertNumberToHex(A);return d}}function Ze(i){var e,x,A,d=-1;for(e=i.length-1,x=new ArrayBuffer(i.length),A=new Uint8Array(x);e>d++;)A[d]=i.charCodeAt(d);return A}function Xe(i){return Buffer.from(i,"base64").toString("binary")}function ve(i){return i}function ze(){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return{rotl:function(e,x){return e<<x|e>>>32-x},endian:function(e){if(e.constructor==Number)return q.rotl(e,8)&16711935|q.rotl(e,24)&4278255360;for(var x=0;x<e.length;x++)e[x]=q.endian(e[x]);return e},bytesToWords:function(e){for(var x=[],A=0,d=0;A<e.length;A++,d+=8)x[d>>>5]|=e[A]<<24-d%32;return x},wordsToBytes:function(e){for(var x=[],A=0;A<e.length*32;A+=8)x.push(e[A>>>5]>>>24-A%32&255);return x},bytesconvertNumberToHex:function(e){for(var x=[],A=0;A<e.length;A++)x.push((e[A]>>>4).toString(16)),x.push((e[A]&15).toString(16));return x.join("")}}}var se=class extends V{name="md5";options;constructor(e={}){super(),this.options=e}async hash(e,x){let d=await new Promise((l,p)=>be(e).then(l).catch(p));return Qe(d,x)}};xe(async(i,e={})=>{let{operation:x,encoding:A="base64"}=e;switch(x){case"crc32":return await new ae(e).hash(i,A);case"crc32c":return await new oe(e).hash(i,A);case"md5":return await new se(e).hash(i,A);default:throw new Error(`invalid option: ${x}`)}});})(); | ||
"use strict";(()=>{var me=null;function ce(i,e=!0,x){let A=x||new Set;if(i){if(Be(i))A.add(i);else if(Be(i.buffer))A.add(i.buffer);else if(!ArrayBuffer.isView(i)){if(e&&typeof i=="object")for(let d in i)ce(i[d],e,A)}}return x===void 0?Array.from(A):[]}function Be(i){return i?i instanceof ArrayBuffer||typeof MessagePort<"u"&&i instanceof MessagePort||typeof ImageBitmap<"u"&&i instanceof ImageBitmap||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas:!1}async function N(){return me}var fe=new Map,v=class{static async inWorkerThread(){return typeof self<"u"||Boolean(await N())}static set onmessage(e){async function x(A){let d=await N(),{type:l,payload:p}=d?A:A.data;e(l,p)}N().then(A=>{A?(A.on("message",d=>{x(d)}),A.on("exit",()=>console.debug("Node worker closing"))):globalThis.onmessage=x})}static async addEventListener(e){let x=fe.get(e);x||(x=async d=>{if(!Fe(d))return;let l=await N(),{type:p,payload:E}=l?d:d.data;e(p,E)}),await N()?console.error("not implemented"):globalThis.addEventListener("message",x)}static async removeEventListener(e){let x=fe.get(e);fe.delete(e),await N()?console.error("not implemented"):globalThis.removeEventListener("message",x)}static async postMessage(e,x){let A={source:"loaders.gl",type:e,payload:x},d=ce(x),l=await N();l?l.postMessage(A,d):globalThis.postMessage(A,d)}};function Fe(i){let{type:e,data:x}=i;return e==="message"&&x&&typeof x.source=="string"&&x.source.startsWith("loaders.gl")}var Y=class{_values;_settlers;_closed;constructor(){this._values=[],this._settlers=[],this._closed=!1}[Symbol.asyncIterator](){return this}push(e){return this.enqueue(e)}enqueue(e){if(this._closed)throw new Error("Closed");if(this._settlers.length>0){if(this._values.length>0)throw new Error("Illegal internal state");let x=this._settlers.shift();e instanceof Error?x.reject(e):x.resolve({value:e})}else this._values.push(e)}close(){for(;this._settlers.length>0;)this._settlers.shift().resolve({done:!0});this._closed=!0}next(){if(this._values.length>0){let e=this._values.shift();return e instanceof Error?Promise.reject(e):Promise.resolve({done:!1,value:e})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise((e,x)=>{this._settlers.push({resolve:e,reject:x})})}};var Ge=0,te,he;async function xe(i,e){if(!await v.inWorkerThread())return;let x={process:Se};v.onmessage=async(A,d)=>{try{switch(A){case"process":if(!i)throw new Error("Worker does not support atomic processing");let l=await i(d.input,d.options||{},x);v.postMessage("done",{result:l});break;case"process-in-batches":if(!e)throw new Error("Worker does not support batched processing");te=new Y,he=d.options||{};let p=e(te,he,x);for await(let E of p)v.postMessage("output-batch",{result:E});v.postMessage("done",{});break;case"input-batch":te.push(d.input);break;case"input-done":te.close();break;default:}}catch(l){let p=l instanceof Error?l.message:"";v.postMessage("error",{error:p})}}}function Se(i,e={}){return new Promise((x,A)=>{let d=Ge++,l=(E,I)=>{if(I.id===d)switch(E){case"done":v.removeEventListener(l),x(I.result);break;case"error":v.removeEventListener(l),A(I.error);break;default:}};v.addEventListener(l);let p={id:d,input:i,options:e};v.postMessage("process",p)})}function ge(...i){return Le(i)}function Le(i){let e=i.map(l=>l instanceof ArrayBuffer?new Uint8Array(l):l),x=e.reduce((l,p)=>l+p.byteLength,0),A=new Uint8Array(x),d=0;for(let l of e)A.set(l,d),d+=l.byteLength;return A.buffer}async function ie(i){let e=[];for await(let x of i)e.push(x);return ge(...e)}var V=class{constructor(e={}){this.hashBatches=this.hashBatches.bind(this)}async preload(){}async*hashBatches(e,x="base64"){let A=[];for await(let p of e)A.push(p),yield p;let d=await this.concatenate(A),l=await this.hash(d,x);this.options.crypto?.onEnd?.({hash:l})}async concatenate(e){return await ie(e)}};var X=class{crc;constructor(){this.crc=-1}update(e){let x=De(),A=new Uint8Array(e);for(let d=0;d<A.byteLength;d++)this.crc=this.crc>>>8^x[(this.crc^A[d])&255];return this}finalize(){return this.crc=(this.crc^-1)>>>0,this.crc}},Pe=Uint32Array.of(0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117);function De(){return Pe}function we(i){i=`${i}`;for(let x=0;x<i.length;x++)if(i.charCodeAt(x)>255)return null;let e="";for(let x=0;x<i.length;x+=3){let A=[void 0,void 0,void 0,void 0];A[0]=i.charCodeAt(x)>>2,A[1]=(i.charCodeAt(x)&3)<<4,i.length>x+1&&(A[1]|=i.charCodeAt(x+1)>>4,A[2]=(i.charCodeAt(x+1)&15)<<2),i.length>x+2&&(A[2]|=i.charCodeAt(x+2)>>6,A[3]=i.charCodeAt(x+2)&63);for(let d=0;d<A.length;d++)typeof A[d]>"u"?e+="=":e+=je(A[d])}return e}function je(i){if(i<26)return String.fromCharCode(i+"A".charCodeAt(0));if(i<52)return String.fromCharCode(i-26+"a".charCodeAt(0));if(i<62)return String.fromCharCode(i-52+"0".charCodeAt(0));if(i===62)return"+";if(i===63)return"/"}function z(i,e){switch(e){case"hex":return Ee(i);case"base64":return Ie(Ee(i));default:throw new Error(e)}}function Qe(i,e){switch(e){case"hex":return i;case"base64":return Ie(i);default:throw new Error(e)}}function Ie(i){i.length%2!==0&&(i=`0${i}`);let x=(i.match(/\w{2}/g)||[]).map(A=>String.fromCharCode(parseInt(A,16))).join("");return we(x)||""}function Ee(i){let e=i.toString(16);return e==="0"?`0${e}`:e}var ae=class extends V{name="crc32";options;constructor(e={}){super(),this.options={crypto:{},...e},this.hashBatches=this.hashBatches.bind(this)}async hash(e,x){return this.hashSync(e,x)}hashSync(e,x){let A=new X;A.update(e);let d=A.finalize();return z(d,x)}async*hashBatches(e,x="base64"){let A=new X;for await(let l of e)A.update(l),yield l;let d=A.finalize();this.options.crypto?.onEnd?.({hash:z(d,x)})}};var O=class{options;crc;constructor(e={}){this.options=e,this.crc=-1}update(e){let x=new Uint8Array(e),A=Ue();for(let d=0;d<x.length;d++)this.crc=A[(this.crc^x[d])&255]^this.crc>>>8;return this}finalize(){return this.crc=(this.crc^-1)>>>0,this.crc}},qe=Int32Array.of(0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697);function Ue(){return qe}var oe=class extends V{name="crc32c";options;constructor(e={}){super(),this.options={crypto:{},...e}}async hash(e,x){return this.hashSync(e,x)}hashSync(e,x){let A=new O(this.options);A.update(e);let d=A.finalize();return z(d,x)}async*hashBatches(e,x="base64"){let A=new O(this.options);for await(let l of e)A.update(l),yield l;let d=A.finalize();this.options.crypto?.onEnd?.({hash:z(d,x)})}};var Me=typeof atob=="function"?atob:typeof Buffer=="function"?Xe:ve,Re=Me("AGFzbQEAAAABDANgAX8AYAAAYAABfwIeAgdpbXBvcnRzA2xvZwAAB2ltcG9ydHMDbWVtAgABAzIxAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAAAAAAAAAAAAgICAgIAAAAAAAaYARt/AUGBxpS6Bgt/AUGJ17b+fgt/AUH+uevFeQt/AUH2qMmBAQt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALB7oCJQhvbmVGdWxsQQAYCG9uZUZ1bGxCABkIb25lRnVsbEMAGghvbmVGdWxsRAAbBWxvb3BzAAEEbG9vcAACBXByaW1lAAMFbG9vcEEABAZsb29wQTEABQZsb29wQTIABgZsb29wQTMABwZsb29wQTQACAVsb29wQgAJBmxvb3BCMQAKBmxvb3BCMgALBmxvb3BCMwAMBmxvb3BCNAANBWxvb3BDAA4GbG9vcEMxAA8GbG9vcEMyABAGbG9vcEMzABEGbG9vcEM0ABIFbG9vcEQAEwZsb29wRDEAFAZsb29wRDIAFQZsb29wRDMAFgZsb29wRDQAFwRnZXRBACgEZ2V0QgApBGdldEMAKgRnZXREACsEZ2V0WAAsBHNldEEALQRzZXRCAC4Ec2V0QwAv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de*16*1.066666667),Je=268435456-65536,Ce="Parameter must be Buffer, ArrayBuffer or Uint8Array",He="Parameter exceeds max size of 255.9 Mbytes";Ae||console.log("WebAssembly not available or WASM module could not be decoded; md5WASM will fall back to JavaScript");function be(i){var e,x,A,d,l,p,E,I,S,P;let U=Ne(),T=Ve(),k={},G=new Date().getTime();return k.then=function(m){return E=m,C(),k},k.catch=function(m){return I=m,k},i&&typeof i=="object"?typeof Buffer=="function"&&i.constructor===Buffer?p=i:i.constructor===Uint8Array||i.constructor===ArrayBuffer?p=i.constructor===ArrayBuffer?new Uint8Array(i):i:Q(new TypeError(Ce)):Q(new TypeError(Ce)),p&&(l=p.length,Ae&&l>We?l>Je?Q(new Error(He)):(e=new WebAssembly.Memory({initial:l>32e6?l>64e6?l>128e6?4096:2048:1024:512}),x=new Uint32Array(e.buffer),d={mem:e,log:console.log},A={imports:d},WebAssembly.instantiate(Ae,A).then(B)):C(U(p))),k;function B(m){C(T(p,m.instance.exports,x))}function C(m){var L=Boolean(m)?m:S;Boolean(m)&&(P=new Date().getTime()),typeof E=="function"?Boolean(L)&&(E(L,P-G),E=I=null):Boolean(m)&&(S=m)}function Q(m){typeof I=="function"&&I(m)}}function Ve(){var i,e,x,A,d,l,p,E,I,S,P,U,T,k=function(G){var B,C,Q,m,L,R,J,H,y,Z,r,t,a,o,D,F,g,b,K,$,w,Oe,_e=new Date().getTime(),Te=0,s=1732584193,n=-271733879,c=-1732584194,f=271733878,h=0,_=G.length*8,ee;for(ee=ke(G,T),T[_>>>5]|=128<<_%32,T[(_+64>>>9<<4)+14]=_,ee=(_+64>>>9<<4)+15,w=T;h<ee;)ee>h+We?(A(s),l(n),E(c),S(f),e(de),h=h+de*16,s=x(),n=d(),c=p(),f=I(),Te++):(g=s,b=n,K=c,$=f,B=w[h+0]>>>0,C=w[h+1]>>>0,Q=w[h+2]>>>0,m=w[h+3]>>>0,L=w[h+4]>>>0,R=w[h+5]>>>0,J=w[h+6]>>>0,H=w[h+7]>>>0,y=w[h+8]>>>0,Z=w[h+9]>>>0,r=w[h+10]>>>0,t=w[h+11]>>>0,a=w[h+12]>>>0,o=w[h+13]>>>0,D=w[h+14]>>>0,F=w[h+15]>>>0,s=u(7,25,s+(n&c|~n&f)+B-680876936)+n,f=u(12,20,f+(s&n|~s&c)+C-389564586)+s,c=u(17,15,c+(f&s|~f&n)+Q+606105819)+f,n=u(22,10,n+(c&f|~c&s)+m-1044525330)+c,s=u(7,25,s+(n&c|~n&f)+L-176418897)+n,f=u(12,20,f+(s&n|~s&c)+R+1200080426)+s,c=u(17,15,c+(f&s|~f&n)+J-1473231341)+f,n=u(22,10,n+(c&f|~c&s)+H-45705983)+c,s=u(7,25,s+(n&c|~n&f)+y+1770035416)+n,f=u(12,20,f+(s&n|~s&c)+Z-1958414417)+s,c=u(17,15,c+(f&s|~f&n)+r-42063)+f,n=u(22,10,n+(c&f|~c&s)+t-1990404162)+c,s=u(7,25,s+(n&c|~n&f)+a+1804603682)+n,f=u(12,20,f+(s&n|~s&c)+o-40341101)+s,c=u(17,15,c+(f&s|~f&n)+D-1502002290)+f,n=u(22,10,n+(c&f|~c&s)+F+1236535329)+c,s=u(5,27,s+(n&f|c&~f)+C-165796510)+n,f=u(9,23,f+(s&c|n&~c)+J-1069501632)+s,c=u(14,18,c+(f&n|s&~n)+t+643717713)+f,n=u(20,12,n+(c&s|f&~s)+B-373897302)+c,s=u(5,27,s+(n&f|c&~f)+R-701558691)+n,f=u(9,23,f+(s&c|n&~c)+r+38016083)+s,c=u(14,18,c+(f&n|s&~n)+F-660478335)+f,n=u(20,12,n+(c&s|f&~s)+L-405537848)+c,s=u(5,27,s+(n&f|c&~f)+Z+568446438)+n,f=u(9,23,f+(s&c|n&~c)+D-1019803690)+s,c=u(14,18,c+(f&n|s&~n)+m-187363961)+f,n=u(20,12,n+(c&s|f&~s)+y+1163531501)+c,s=u(5,27,s+(n&f|c&~f)+o-1444681467)+n,f=u(9,23,f+(s&c|n&~c)+Q-51403784)+s,c=u(14,18,c+(f&n|s&~n)+H+1735328473)+f,n=u(20,12,n+(c&s|f&~s)+a-1926607734)+c,s=u(4,28,s+(n^c^f)+R-378558)+n,f=u(11,21,f+(s^n^c)+y-2022574463)+s,c=u(16,16,c+(f^s^n)+t+1839030562)+f,n=u(23,9,n+(c^f^s)+D-35309556)+c,s=u(4,28,s+(n^c^f)+C-1530992060)+n,f=u(11,21,f+(s^n^c)+L+1272893353)+s,c=u(16,16,c+(f^s^n)+H-155497632)+f,n=u(23,9,n+(c^f^s)+r-1094730640)+c,s=u(4,28,s+(n^c^f)+o+681279174)+n,f=u(11,21,f+(s^n^c)+B-358537222)+s,c=u(16,16,c+(f^s^n)+m-722521979)+f,n=u(23,9,n+(c^f^s)+J+76029189)+c,s=u(4,28,s+(n^c^f)+Z-640364487)+n,f=u(11,21,f+(s^n^c)+a-421815835)+s,c=u(16,16,c+(f^s^n)+F+530742520)+f,n=u(23,9,n+(c^f^s)+Q-995338651)+c,s=u(6,26,s+(c^(n|~f))+B-198630844)+n,f=u(10,22,f+(n^(s|~c))+H+1126891415)+s,c=u(15,17,c+(s^(f|~n))+D-1416354905)+f,n=u(21,11,n+(f^(c|~s))+R-57434055)+c,s=u(6,26,s+(c^(n|~f))+a+1700485571)+n,f=u(10,22,f+(n^(s|~c))+m-1894986606)+s,c=u(15,17,c+(s^(f|~n))+r-1051523)+f,n=u(21,11,n+(f^(c|~s))+C-2054922799)+c,s=u(6,26,s+(c^(n|~f))+y+1873313359)+n,f=u(10,22,f+(n^(s|~c))+F-30611744)+s,c=u(15,17,c+(s^(f|~n))+J-1560198380)+f,n=u(21,11,n+(f^(c|~s))+o+1309151649)+c,s=u(6,26,s+(c^(n|~f))+L-145523070)+n,f=u(10,22,f+(n^(s|~c))+t-1120210379)+s,c=u(15,17,c+(s^(f|~n))+Q+718787259)+f,n=u(21,11,n+(f^(c|~s))+Z-343485551)+c,h=h+16,s=s+g>>>0,n=n+b>>>0,c=c+K>>>0,f=f+$>>>0);return q.endian([s,n,c,f]);function u(M,re,j){return j<<M|j>>>re}function ke(M,re){for(var j=-1,ne=Math.floor((M.length-1)/4),W=0,ue,le,pe,ye;ne-8>j++;)W=j<<2,re[j]=M[W+0]|M[W+1]<<8|M[W+2]<<16|M[W+3]<<24;for(j--;ne>j++;)W=j<<2,ue=typeof M[W+0]>"u"?0:M[W+0],le=typeof M[W+1]>"u"?0:M[W+1],pe=typeof M[W+2]>"u"?0:M[W+2],ye=typeof M[W+3]>"u"?0:M[W+3],re[j]=ue|le<<8|pe<<16|ye<<24;return ne+1}};return function(G,B,C,Q){var m;return e=B.loops,i=B.loop,x=B.getA,d=B.getB,p=B.getC,I=B.getD,P=B.getX,A=B.setA,l=B.setB,E=B.setC,S=B.setD,U=B.setX,T=C,m=q.wordsToBytes(k(G)),Q&&Q.asBytes?m:q.bytesconvertNumberToHex(m)}}function Ne(){var i=function(e,x){var A,d,l,p,E,I,S,P,U,T,k,G,B,C,Q,m,L,R,J,H,y,Z=new Date().getTime(),r=1732584193,t=-271733879,a=-1732584194,o=271733878,D=e.length*8;y=q.bytesToWords(e);for(var F=0;F<y.length;F++)y[F]=(y[F]<<8|y[F]>>>24)&16711935|(y[F]<<24|y[F]>>>8)&4278255360;y[D>>>5]|=128<<D%32,y[(D+64>>>9<<4)+14]=D;for(var g=0;g<y.length;g+=16)L=r,R=t,J=a,H=o,A=y[g+0]>>>0,d=y[g+1]>>>0,l=y[g+2]>>>0,p=y[g+3]>>>0,E=y[g+4]>>>0,I=y[g+5]>>>0,S=y[g+6]>>>0,P=y[g+7]>>>0,U=y[g+8]>>>0,T=y[g+9]>>>0,k=y[g+10]>>>0,G=y[g+11]>>>0,B=y[g+12]>>>0,C=y[g+13]>>>0,Q=y[g+14]>>>0,m=y[g+15]>>>0,r=b(7,25,r+(t&a|~t&o)+A-680876936)+t,o=b(12,20,o+(r&t|~r&a)+d-389564586)+r,a=b(17,15,a+(o&r|~o&t)+l+606105819)+o,t=b(22,10,t+(a&o|~a&r)+p-1044525330)+a,r=b(7,25,r+(t&a|~t&o)+E-176418897)+t,o=b(12,20,o+(r&t|~r&a)+I+1200080426)+r,a=b(17,15,a+(o&r|~o&t)+S-1473231341)+o,t=b(22,10,t+(a&o|~a&r)+P-45705983)+a,r=b(7,25,r+(t&a|~t&o)+U+1770035416)+t,o=b(12,20,o+(r&t|~r&a)+T-1958414417)+r,a=b(17,15,a+(o&r|~o&t)+k-42063)+o,t=b(22,10,t+(a&o|~a&r)+G-1990404162)+a,r=b(7,25,r+(t&a|~t&o)+B+1804603682)+t,o=b(12,20,o+(r&t|~r&a)+C-40341101)+r,a=b(17,15,a+(o&r|~o&t)+Q-1502002290)+o,t=b(22,10,t+(a&o|~a&r)+m+1236535329)+a,r=b(5,27,r+(t&o|a&~o)+d-165796510)+t,o=b(9,23,o+(r&a|t&~a)+S-1069501632)+r,a=b(14,18,a+(o&t|r&~t)+G+643717713)+o,t=b(20,12,t+(a&r|o&~r)+A-373897302)+a,r=b(5,27,r+(t&o|a&~o)+I-701558691)+t,o=b(9,23,o+(r&a|t&~a)+k+38016083)+r,a=b(14,18,a+(o&t|r&~t)+m-660478335)+o,t=b(20,12,t+(a&r|o&~r)+E-405537848)+a,r=b(5,27,r+(t&o|a&~o)+T+568446438)+t,o=b(9,23,o+(r&a|t&~a)+Q-1019803690)+r,a=b(14,18,a+(o&t|r&~t)+p-187363961)+o,t=b(20,12,t+(a&r|o&~r)+U+1163531501)+a,r=b(5,27,r+(t&o|a&~o)+C-1444681467)+t,o=b(9,23,o+(r&a|t&~a)+l-51403784)+r,a=b(14,18,a+(o&t|r&~t)+P+1735328473)+o,t=b(20,12,t+(a&r|o&~r)+B-1926607734)+a,r=b(4,28,r+(t^a^o)+I-378558)+t,o=b(11,21,o+(r^t^a)+U-2022574463)+r,a=b(16,16,a+(o^r^t)+G+1839030562)+o,t=b(23,9,t+(a^o^r)+Q-35309556)+a,r=b(4,28,r+(t^a^o)+d-1530992060)+t,o=b(11,21,o+(r^t^a)+E+1272893353)+r,a=b(16,16,a+(o^r^t)+P-155497632)+o,t=b(23,9,t+(a^o^r)+k-1094730640)+a,r=b(4,28,r+(t^a^o)+C+681279174)+t,o=b(11,21,o+(r^t^a)+A-358537222)+r,a=b(16,16,a+(o^r^t)+p-722521979)+o,t=b(23,9,t+(a^o^r)+S+76029189)+a,r=b(4,28,r+(t^a^o)+T-640364487)+t,o=b(11,21,o+(r^t^a)+B-421815835)+r,a=b(16,16,a+(o^r^t)+m+530742520)+o,t=b(23,9,t+(a^o^r)+l-995338651)+a,r=b(6,26,r+(a^(t|~o))+A-198630844)+t,o=b(10,22,o+(t^(r|~a))+P+1126891415)+r,a=b(15,17,a+(r^(o|~t))+Q-1416354905)+o,t=b(21,11,t+(o^(a|~r))+I-57434055)+a,r=b(6,26,r+(a^(t|~o))+B+1700485571)+t,o=b(10,22,o+(t^(r|~a))+p-1894986606)+r,a=b(15,17,a+(r^(o|~t))+k-1051523)+o,t=b(21,11,t+(o^(a|~r))+d-2054922799)+a,r=b(6,26,r+(a^(t|~o))+U+1873313359)+t,o=b(10,22,o+(t^(r|~a))+m-30611744)+r,a=b(15,17,a+(r^(o|~t))+S-1560198380)+o,t=b(21,11,t+(o^(a|~r))+C+1309151649)+a,r=b(6,26,r+(a^(t|~o))+E-145523070)+t,o=b(10,22,o+(t^(r|~a))+G-1120210379)+r,a=b(15,17,a+(r^(o|~t))+l+718787259)+o,t=b(21,11,t+(o^(a|~r))+T-343485551)+a,r=r+L>>>0,t=t+R>>>0,a=a+J>>>0,o=o+H>>>0;return q.endian([r,t,a,o]);function b(K,$,w){return w<<K|w>>>$}};return function(e,x){var A=q.wordsToBytes(i(e,x)),d=x&&x.asBytes?A:q.bytesconvertNumberToHex(A);return d}}function Ze(i){var e,x,A,d=-1;for(e=i.length-1,x=new ArrayBuffer(i.length),A=new Uint8Array(x);e>d++;)A[d]=i.charCodeAt(d);return A}function Xe(i){return Buffer.from(i,"base64").toString("binary")}function ve(i){return i}function ze(){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return{rotl:function(e,x){return e<<x|e>>>32-x},endian:function(e){if(e.constructor==Number)return q.rotl(e,8)&16711935|q.rotl(e,24)&4278255360;for(var x=0;x<e.length;x++)e[x]=q.endian(e[x]);return e},bytesToWords:function(e){for(var x=[],A=0,d=0;A<e.length;A++,d+=8)x[d>>>5]|=e[A]<<24-d%32;return x},wordsToBytes:function(e){for(var x=[],A=0;A<e.length*32;A+=8)x.push(e[A>>>5]>>>24-A%32&255);return x},bytesconvertNumberToHex:function(e){for(var x=[],A=0;A<e.length;A++)x.push((e[A]>>>4).toString(16)),x.push((e[A]&15).toString(16));return x.join("")}}}var se=class extends V{name="md5";options;constructor(e={}){super(),this.options=e}async hash(e,x){let d=await new Promise((l,p)=>be(e).then(l).catch(p));return Qe(d,x)}};xe(async(i,e={})=>{let{operation:x,encoding:A="base64"}=e;switch(x){case"crc32":return await new ae(e).hash(i,A);case"crc32c":return await new oe(e).hash(i,A);case"md5":return await new se(e).hash(i,A);default:throw new Error(`invalid option: ${x}`)}});})(); | ||
//# sourceMappingURL=crypto-worker.js.map |
@@ -7,4 +7,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
else root['loaders'] = factory();})(globalThis, function () { | ||
"use strict";var __exports__=(()=>{var D0=Object.create;var o0=Object.defineProperty;var H0=Object.getOwnPropertyDescriptor;var k0=Object.getOwnPropertyNames;var q0=Object.getPrototypeOf,U0=Object.prototype.hasOwnProperty;var R0=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),L0=(r,e)=>{for(var d in e)o0(r,d,{get:e[d],enumerable:!0})},t0=(r,e,d,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let b of k0(e))!U0.call(r,b)&&b!==d&&o0(r,b,{get:()=>e[b],enumerable:!(s=H0(e,b))||s.enumerable});return r},a0=(r,e,d)=>(t0(r,e,"default"),d&&t0(d,e,"default")),N0=(r,e,d)=>(d=r!=null?D0(q0(r)):{},t0(e||!r||!r.__esModule?o0(d,"default",{value:r,enumerable:!0}):d,r)),Z0=r=>t0(o0({},"__esModule",{value:!0}),r);var g0=R0((ie,C0)=>{C0.exports=globalThis.loaders});var _={};L0(_,{CRC32CHash:()=>A0,CRC32Hash:()=>n0,CryptoHash:()=>Y,CryptoJSWorker:()=>Ae,CryptoWorker:()=>ne,Hash:()=>G,MD5Hash:()=>d0,NodeHash:()=>b0,SHA256Hash:()=>s0,asciiToBase64:()=>c0,base64ToAscii:()=>x0,encodeBase64:()=>M0,encodeHex:()=>f0,encodeNumber:()=>Z});a0(_,N0(g0(),1));function u0(r){globalThis.loaders||={},globalThis.loaders.modules||={},Object.assign(globalThis.loaders.modules,r)}function K(r,e){let d=globalThis.loaders?.modules?.[r];if(!d)throw new Error(`${e}: ${r} library not installed`);return d}function w0(...r){return V0(r)}function V0(r){let e=r.map(h=>h instanceof ArrayBuffer?new Uint8Array(h):h),d=e.reduce((h,l)=>h+l.byteLength,0),s=new Uint8Array(d),b=0;for(let h of e)s.set(h,b),b+=h.byteLength;return s.buffer}async function h0(r){let e=[];for await(let d of r)e.push(d);return w0(...e)}var G=class{constructor(e={}){this.hashBatches=this.hashBatches.bind(this)}async preload(){}async*hashBatches(e,d="base64"){let s=[];for await(let l of e)s.push(l),yield l;let b=await this.concatenate(s),h=await this.hash(b,d);this.options.crypto?.onEnd?.({hash:h})}async concatenate(e){return await h0(e)}};var X=class{crc;constructor(){this.crc=-1}update(e){let d=z0(),s=new Uint8Array(e);for(let b=0;b<s.byteLength;b++)this.crc=this.crc>>>8^d[(this.crc^s[b])&255];return this}finalize(){return this.crc=(this.crc^-1)>>>0,this.crc}},X0=Uint32Array.of(0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117);function z0(){return X0}function c0(r){r=`${r}`;for(let d=0;d<r.length;d++)if(r.charCodeAt(d)>255)return null;let e="";for(let d=0;d<r.length;d+=3){let s=[void 0,void 0,void 0,void 0];s[0]=r.charCodeAt(d)>>2,s[1]=(r.charCodeAt(d)&3)<<4,r.length>d+1&&(s[1]|=r.charCodeAt(d+1)>>4,s[2]=(r.charCodeAt(d+1)&15)<<2),r.length>d+2&&(s[2]|=r.charCodeAt(d+2)>>6,s[3]=r.charCodeAt(d+2)&63);for(let b=0;b<s.length;b++)typeof s[b]>"u"?e+="=":e+=K0(s[b])}return e}function x0(r){if(r=`${r}`,r=r.replace(/[ \t\n\f\r]/g,""),r.length%4===0&&(r=r.replace(/[=]=?$/,"")),r.length%4===1||/[^+/0-9A-Za-z]/.test(r))return"";let e="",d=0,s=0;for(let b=0;b<r.length;b++)d<<=6,d|=P0(r[b]),s+=6,s===24&&(e+=String.fromCharCode((d&16711680)>>16),e+=String.fromCharCode((d&65280)>>8),e+=String.fromCharCode(d&255),d=s=0);return s===12?(d>>=4,e+=String.fromCharCode(d)):s===18&&(d>>=2,e+=String.fromCharCode((d&65280)>>8),e+=String.fromCharCode(d&255)),e}var Y0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function P0(r){let e=Y0.indexOf(r);return e<0?void 0:e}function K0(r){if(r<26)return String.fromCharCode(r+"A".charCodeAt(0));if(r<52)return String.fromCharCode(r-26+"a".charCodeAt(0));if(r<62)return String.fromCharCode(r-52+"0".charCodeAt(0));if(r===62)return"+";if(r===63)return"/"}function Z(r,e){switch(e){case"hex":return I0(r);case"base64":return F0(I0(r));default:throw new Error(e)}}function f0(r,e){switch(e){case"hex":return r;case"base64":return F0(r);default:throw new Error(e)}}function M0(r,e){switch(e){case"hex":return _0(r);case"base64":return r;default:throw new Error(e)}}function F0(r){r.length%2!==0&&(r=`0${r}`);let d=(r.match(/\w{2}/g)||[]).map(s=>String.fromCharCode(parseInt(s,16))).join("");return c0(d)||""}function _0(r){return[...x0(r)].map(e=>e.charCodeAt(0).toString(16).padStart(2,"0")).join("")}function I0(r){let e=r.toString(16);return e==="0"?`0${e}`:e}var n0=class extends G{name="crc32";options;constructor(e={}){super(),this.options={crypto:{},...e},this.hashBatches=this.hashBatches.bind(this)}async hash(e,d){return this.hashSync(e,d)}hashSync(e,d){let s=new X;s.update(e);let b=s.finalize();return Z(b,d)}async*hashBatches(e,d="base64"){let s=new X;for await(let h of e)s.update(h),yield h;let b=s.finalize();this.options.crypto?.onEnd?.({hash:Z(b,d)})}};var z=class{options;crc;constructor(e={}){this.options=e,this.crc=-1}update(e){let d=new Uint8Array(e),s=$0();for(let b=0;b<d.length;b++)this.crc=s[(this.crc^d[b])&255]^this.crc>>>8;return this}finalize(){return this.crc=(this.crc^-1)>>>0,this.crc}},O0=Int32Array.of(0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697);function $0(){return O0}var A0=class extends G{name="crc32c";options;constructor(e={}){super(),this.options={crypto:{},...e}}async hash(e,d){return this.hashSync(e,d)}hashSync(e,d){let s=new z(this.options);s.update(e);let b=s.finalize();return Z(b,d)}async*hashBatches(e,d="base64"){let s=new z(this.options);for await(let h of e)s.update(h),yield h;let b=s.finalize();this.options.crypto?.onEnd?.({hash:Z(b,d)})}};var v0=typeof atob=="function"?atob:typeof Buffer=="function"?xe:W0,ee=v0("AGFzbQEAAAABDANgAX8AYAAAYAABfwIeAgdpbXBvcnRzA2xvZwAAB2ltcG9ydHMDbWVtAgABAzIxAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAA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nVsbEIaCG9uZUZ1bGxDGwhvbmVGdWxsRBwIdHdvRnVsbEEdCHR3b0Z1bGxCHgh0d29GdWxsQx8IdHdvRnVsbEQgCHRyZUZ1bGxBIQh0cmVGdWxsQiIIdHJlRnVsbEMjCHRyZUZ1bGxEJAhxdWFGdWxsQSUIcXVhRnVsbEImCHF1YUZ1bGxDJwhxdWFGdWxsRCgEZ2V0QSkEZ2V0QioEZ2V0QysEZ2V0RCwEZ2V0WC0Ec2V0QS4Ec2V0Qi8Ec2V0QzAEc2V0RDEEc2V0WALNATIAAQAAAQIAAAEIbnVtbG9vcHMCAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgCAAABAW4ZAgAAAQFuGgIAAAEBbhsCAAABAW4cAgAAAQFuHQIAAAEBbh4CAAABAW4fAgAAAQFuIAIAAAEBbiECAAABAW4iAgAAAQFuIwIAAAEBbiQCAAABAW4lAgAAAQFuJgIAAAEBbicCAAABAW4oACkAKgArACwALQEAAC4BAAAvAQAAMAEAADEBAAA="),B0=WebAssembly&&v0!==W0?ce(ee).buffer:!1,q=fe(),m0=240*16*16,S0=Math.floor(m0*16*1.066666667),re=268435456-65536,G0="Parameter must be Buffer, ArrayBuffer or Uint8Array",te="Parameter exceeds max size of 255.9 Mbytes";B0||console.log("WebAssembly not available or WASM module could not be decoded; md5WASM will fall back to JavaScript");function l0(r){var e,d,s,b,h,l,w,I,J,D;let U=ae(),v=oe(),S={},j=new Date().getTime();return S.then=function(m){return w=m,g(),S},S.catch=function(m){return I=m,S},r&&typeof r=="object"?typeof Buffer=="function"&&r.constructor===Buffer?l=r:r.constructor===Uint8Array||r.constructor===ArrayBuffer?l=r.constructor===ArrayBuffer?new Uint8Array(r):r:C(new TypeError(G0)):C(new TypeError(G0)),l&&(h=l.length,B0&&h>S0?h>re?C(new Error(te)):(e=new WebAssembly.Memory({initial:h>32e6?h>64e6?h>128e6?4096:2048:1024:512}),d=new Uint32Array(e.buffer),b={mem:e,log:console.log},s={imports:b},WebAssembly.instantiate(B0,s).then(p)):g(U(l))),S;function p(m){g(v(l,m.instance.exports,d))}function g(m){var T=Boolean(m)?m:J;Boolean(m)&&(D=new Date().getTime()),typeof w=="function"?Boolean(T)&&(w(T,D-j),w=I=null):Boolean(m)&&(J=m)}function C(m){typeof I=="function"&&I(m)}}function oe(){var r,e,d,s,b,h,l,w,I,J,D,U,v,S=function(j){var p,g,C,m,T,R,L,N,B,V,t,o,a,c,H,W,Q,i,O,$,E,de,se=new Date().getTime(),J0=0,x=1732584193,f=-271733879,n=-1732584194,A=271733878,y=0,P=j.length*8,e0;for(e0=T0(j,v),v[P>>>5]|=128<<P%32,v[(P+64>>>9<<4)+14]=P,e0=(P+64>>>9<<4)+15,E=v;y<e0;)e0>y+S0?(s(x),h(f),w(n),J(A),e(m0),y=y+m0*16,x=d(),f=b(),n=l(),A=I(),J0++):(Q=x,i=f,O=n,$=A,p=E[y+0]>>>0,g=E[y+1]>>>0,C=E[y+2]>>>0,m=E[y+3]>>>0,T=E[y+4]>>>0,R=E[y+5]>>>0,L=E[y+6]>>>0,N=E[y+7]>>>0,B=E[y+8]>>>0,V=E[y+9]>>>0,t=E[y+10]>>>0,o=E[y+11]>>>0,a=E[y+12]>>>0,c=E[y+13]>>>0,H=E[y+14]>>>0,W=E[y+15]>>>0,x=u(7,25,x+(f&n|~f&A)+p-680876936)+f,A=u(12,20,A+(x&f|~x&n)+g-389564586)+x,n=u(17,15,n+(A&x|~A&f)+C+606105819)+A,f=u(22,10,f+(n&A|~n&x)+m-1044525330)+n,x=u(7,25,x+(f&n|~f&A)+T-176418897)+f,A=u(12,20,A+(x&f|~x&n)+R+1200080426)+x,n=u(17,15,n+(A&x|~A&f)+L-1473231341)+A,f=u(22,10,f+(n&A|~n&x)+N-45705983)+n,x=u(7,25,x+(f&n|~f&A)+B+1770035416)+f,A=u(12,20,A+(x&f|~x&n)+V-1958414417)+x,n=u(17,15,n+(A&x|~A&f)+t-42063)+A,f=u(22,10,f+(n&A|~n&x)+o-1990404162)+n,x=u(7,25,x+(f&n|~f&A)+a+1804603682)+f,A=u(12,20,A+(x&f|~x&n)+c-40341101)+x,n=u(17,15,n+(A&x|~A&f)+H-1502002290)+A,f=u(22,10,f+(n&A|~n&x)+W+1236535329)+n,x=u(5,27,x+(f&A|n&~A)+g-165796510)+f,A=u(9,23,A+(x&n|f&~n)+L-1069501632)+x,n=u(14,18,n+(A&f|x&~f)+o+643717713)+A,f=u(20,12,f+(n&x|A&~x)+p-373897302)+n,x=u(5,27,x+(f&A|n&~A)+R-701558691)+f,A=u(9,23,A+(x&n|f&~n)+t+38016083)+x,n=u(14,18,n+(A&f|x&~f)+W-660478335)+A,f=u(20,12,f+(n&x|A&~x)+T-405537848)+n,x=u(5,27,x+(f&A|n&~A)+V+568446438)+f,A=u(9,23,A+(x&n|f&~n)+H-1019803690)+x,n=u(14,18,n+(A&f|x&~f)+m-187363961)+A,f=u(20,12,f+(n&x|A&~x)+B+1163531501)+n,x=u(5,27,x+(f&A|n&~A)+c-1444681467)+f,A=u(9,23,A+(x&n|f&~n)+C-51403784)+x,n=u(14,18,n+(A&f|x&~f)+N+1735328473)+A,f=u(20,12,f+(n&x|A&~x)+a-1926607734)+n,x=u(4,28,x+(f^n^A)+R-378558)+f,A=u(11,21,A+(x^f^n)+B-2022574463)+x,n=u(16,16,n+(A^x^f)+o+1839030562)+A,f=u(23,9,f+(n^A^x)+H-35309556)+n,x=u(4,28,x+(f^n^A)+g-1530992060)+f,A=u(11,21,A+(x^f^n)+T+1272893353)+x,n=u(16,16,n+(A^x^f)+N-155497632)+A,f=u(23,9,f+(n^A^x)+t-1094730640)+n,x=u(4,28,x+(f^n^A)+c+681279174)+f,A=u(11,21,A+(x^f^n)+p-358537222)+x,n=u(16,16,n+(A^x^f)+m-722521979)+A,f=u(23,9,f+(n^A^x)+L+76029189)+n,x=u(4,28,x+(f^n^A)+V-640364487)+f,A=u(11,21,A+(x^f^n)+a-421815835)+x,n=u(16,16,n+(A^x^f)+W+530742520)+A,f=u(23,9,f+(n^A^x)+C-995338651)+n,x=u(6,26,x+(n^(f|~A))+p-198630844)+f,A=u(10,22,A+(f^(x|~n))+N+1126891415)+x,n=u(15,17,n+(x^(A|~f))+H-1416354905)+A,f=u(21,11,f+(A^(n|~x))+R-57434055)+n,x=u(6,26,x+(n^(f|~A))+a+1700485571)+f,A=u(10,22,A+(f^(x|~n))+m-1894986606)+x,n=u(15,17,n+(x^(A|~f))+t-1051523)+A,f=u(21,11,f+(A^(n|~x))+g-2054922799)+n,x=u(6,26,x+(n^(f|~A))+B+1873313359)+f,A=u(10,22,A+(f^(x|~n))+W-30611744)+x,n=u(15,17,n+(x^(A|~f))+L-1560198380)+A,f=u(21,11,f+(A^(n|~x))+c+1309151649)+n,x=u(6,26,x+(n^(f|~A))+T-145523070)+f,A=u(10,22,A+(f^(x|~n))+o-1120210379)+x,n=u(15,17,n+(x^(A|~f))+C+718787259)+A,f=u(21,11,f+(A^(n|~x))+V-343485551)+n,y=y+16,x=x+Q>>>0,f=f+i>>>0,n=n+O>>>0,A=A+$>>>0);return q.endian([x,f,n,A]);function u(M,r0,k){return k<<M|k>>>r0}function T0(M,r0){for(var k=-1,i0=Math.floor((M.length-1)/4),F=0,p0,y0,Q0,E0;i0-8>k++;)F=k<<2,r0[k]=M[F+0]|M[F+1]<<8|M[F+2]<<16|M[F+3]<<24;for(k--;i0>k++;)F=k<<2,p0=typeof M[F+0]>"u"?0:M[F+0],y0=typeof M[F+1]>"u"?0:M[F+1],Q0=typeof M[F+2]>"u"?0:M[F+2],E0=typeof M[F+3]>"u"?0:M[F+3],r0[k]=p0|y0<<8|Q0<<16|E0<<24;return i0+1}};return function(j,p,g,C){var m;return e=p.loops,r=p.loop,d=p.getA,b=p.getB,l=p.getC,I=p.getD,D=p.getX,s=p.setA,h=p.setB,w=p.setC,J=p.setD,U=p.setX,v=g,m=q.wordsToBytes(S(j)),C&&C.asBytes?m:q.bytesconvertNumberToHex(m)}}function ae(){var r=function(e,d){var s,b,h,l,w,I,J,D,U,v,S,j,p,g,C,m,T,R,L,N,B,V=new Date().getTime(),t=1732584193,o=-271733879,a=-1732584194,c=271733878,H=e.length*8;B=q.bytesToWords(e);for(var W=0;W<B.length;W++)B[W]=(B[W]<<8|B[W]>>>24)&16711935|(B[W]<<24|B[W]>>>8)&4278255360;B[H>>>5]|=128<<H%32,B[(H+64>>>9<<4)+14]=H;for(var Q=0;Q<B.length;Q+=16)T=t,R=o,L=a,N=c,s=B[Q+0]>>>0,b=B[Q+1]>>>0,h=B[Q+2]>>>0,l=B[Q+3]>>>0,w=B[Q+4]>>>0,I=B[Q+5]>>>0,J=B[Q+6]>>>0,D=B[Q+7]>>>0,U=B[Q+8]>>>0,v=B[Q+9]>>>0,S=B[Q+10]>>>0,j=B[Q+11]>>>0,p=B[Q+12]>>>0,g=B[Q+13]>>>0,C=B[Q+14]>>>0,m=B[Q+15]>>>0,t=i(7,25,t+(o&a|~o&c)+s-680876936)+o,c=i(12,20,c+(t&o|~t&a)+b-389564586)+t,a=i(17,15,a+(c&t|~c&o)+h+606105819)+c,o=i(22,10,o+(a&c|~a&t)+l-1044525330)+a,t=i(7,25,t+(o&a|~o&c)+w-176418897)+o,c=i(12,20,c+(t&o|~t&a)+I+1200080426)+t,a=i(17,15,a+(c&t|~c&o)+J-1473231341)+c,o=i(22,10,o+(a&c|~a&t)+D-45705983)+a,t=i(7,25,t+(o&a|~o&c)+U+1770035416)+o,c=i(12,20,c+(t&o|~t&a)+v-1958414417)+t,a=i(17,15,a+(c&t|~c&o)+S-42063)+c,o=i(22,10,o+(a&c|~a&t)+j-1990404162)+a,t=i(7,25,t+(o&a|~o&c)+p+1804603682)+o,c=i(12,20,c+(t&o|~t&a)+g-40341101)+t,a=i(17,15,a+(c&t|~c&o)+C-1502002290)+c,o=i(22,10,o+(a&c|~a&t)+m+1236535329)+a,t=i(5,27,t+(o&c|a&~c)+b-165796510)+o,c=i(9,23,c+(t&a|o&~a)+J-1069501632)+t,a=i(14,18,a+(c&o|t&~o)+j+643717713)+c,o=i(20,12,o+(a&t|c&~t)+s-373897302)+a,t=i(5,27,t+(o&c|a&~c)+I-701558691)+o,c=i(9,23,c+(t&a|o&~a)+S+38016083)+t,a=i(14,18,a+(c&o|t&~o)+m-660478335)+c,o=i(20,12,o+(a&t|c&~t)+w-405537848)+a,t=i(5,27,t+(o&c|a&~c)+v+568446438)+o,c=i(9,23,c+(t&a|o&~a)+C-1019803690)+t,a=i(14,18,a+(c&o|t&~o)+l-187363961)+c,o=i(20,12,o+(a&t|c&~t)+U+1163531501)+a,t=i(5,27,t+(o&c|a&~c)+g-1444681467)+o,c=i(9,23,c+(t&a|o&~a)+h-51403784)+t,a=i(14,18,a+(c&o|t&~o)+D+1735328473)+c,o=i(20,12,o+(a&t|c&~t)+p-1926607734)+a,t=i(4,28,t+(o^a^c)+I-378558)+o,c=i(11,21,c+(t^o^a)+U-2022574463)+t,a=i(16,16,a+(c^t^o)+j+1839030562)+c,o=i(23,9,o+(a^c^t)+C-35309556)+a,t=i(4,28,t+(o^a^c)+b-1530992060)+o,c=i(11,21,c+(t^o^a)+w+1272893353)+t,a=i(16,16,a+(c^t^o)+D-155497632)+c,o=i(23,9,o+(a^c^t)+S-1094730640)+a,t=i(4,28,t+(o^a^c)+g+681279174)+o,c=i(11,21,c+(t^o^a)+s-358537222)+t,a=i(16,16,a+(c^t^o)+l-722521979)+c,o=i(23,9,o+(a^c^t)+J+76029189)+a,t=i(4,28,t+(o^a^c)+v-640364487)+o,c=i(11,21,c+(t^o^a)+p-421815835)+t,a=i(16,16,a+(c^t^o)+m+530742520)+c,o=i(23,9,o+(a^c^t)+h-995338651)+a,t=i(6,26,t+(a^(o|~c))+s-198630844)+o,c=i(10,22,c+(o^(t|~a))+D+1126891415)+t,a=i(15,17,a+(t^(c|~o))+C-1416354905)+c,o=i(21,11,o+(c^(a|~t))+I-57434055)+a,t=i(6,26,t+(a^(o|~c))+p+1700485571)+o,c=i(10,22,c+(o^(t|~a))+l-1894986606)+t,a=i(15,17,a+(t^(c|~o))+S-1051523)+c,o=i(21,11,o+(c^(a|~t))+b-2054922799)+a,t=i(6,26,t+(a^(o|~c))+U+1873313359)+o,c=i(10,22,c+(o^(t|~a))+m-30611744)+t,a=i(15,17,a+(t^(c|~o))+J-1560198380)+c,o=i(21,11,o+(c^(a|~t))+g+1309151649)+a,t=i(6,26,t+(a^(o|~c))+w-145523070)+o,c=i(10,22,c+(o^(t|~a))+j-1120210379)+t,a=i(15,17,a+(t^(c|~o))+h+718787259)+c,o=i(21,11,o+(c^(a|~t))+v-343485551)+a,t=t+T>>>0,o=o+R>>>0,a=a+L>>>0,c=c+N>>>0;return q.endian([t,o,a,c]);function i(O,$,E){return E<<O|E>>>$}};return function(e,d){var s=q.wordsToBytes(r(e,d)),b=d&&d.asBytes?s:q.bytesconvertNumberToHex(s);return b}}function ce(r){var e,d,s,b=-1;for(e=r.length-1,d=new ArrayBuffer(r.length),s=new Uint8Array(d);e>b++;)s[b]=r.charCodeAt(b);return s}function xe(r){return Buffer.from(r,"base64").toString("binary")}function W0(r){return r}function fe(){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return{rotl:function(e,d){return e<<d|e>>>32-d},endian:function(e){if(e.constructor==Number)return q.rotl(e,8)&16711935|q.rotl(e,24)&4278255360;for(var d=0;d<e.length;d++)e[d]=q.endian(e[d]);return e},bytesToWords:function(e){for(var d=[],s=0,b=0;s<e.length;s++,b+=8)d[b>>>5]|=e[s]<<24-b%32;return d},wordsToBytes:function(e){for(var d=[],s=0;s<e.length*32;s+=8)d.push(e[s>>>5]>>>24-s%32&255);return d},bytesconvertNumberToHex:function(e){for(var d=[],s=0;s<e.length;s++)d.push((e[s]>>>4).toString(16)),d.push((e[s]&15).toString(16));return d.join("")}}}var d0=class extends G{name="md5";options;constructor(e={}){super(),this.options=e}async hash(e,d){let b=await new Promise((h,l)=>l0(e).then(h).catch(l));return f0(b,d)}};var Y=class extends G{name;options;_algorithm;_algo;constructor(e){if(super(),this.options=e,u0(e?.modules),this._algorithm=this.options?.crypto?.algorithm,!this._algorithm)throw new Error(this.name);this.name=this._algorithm.toLowerCase()}async preload(){let e=K("CryptoJS",this.name);this._algo=e.algo[this._algorithm]}async hash(e,d){await this.preload();let s=this._algo.create();if(!s)throw new Error(this.name);let b=K("CryptoJS",this.name),h=b.lib.WordArray.create(e),l=d==="base64"?b.enc.Base64:b.enc.Hex;return s.update(h).finalize().toString(l)}async*hashBatches(e,d="base64"){await this.preload();let s=K("CryptoJS",this.name),b=this._algo.create();if(!b)throw new Error(this.name);for await(let w of e){let I=s.lib.WordArray.create(w);b.update(I),yield w}let h=d==="base64"?s.enc.Base64:s.enc.Hex,l=b.finalize().toString(h);this.options?.crypto?.onEnd?.({hash:l})}};var s0=class extends Y{constructor(e){super({...e,crypto:{...e.crypto,algorithm:"SHA256"}})}};var b0=class extends G{name;options;constructor(e){if(super(),this.options=e,!globalThis.loaders.NodeHash)throw new Error("install @loaders.gl/crypto on Node.js to use NodeHash");return new globalThis.loaders.NodeHash(e)}async hash(e,d){throw new Error("Not implemented")}};var j0="4.3.0-alpha.7",ne={id:"crypto",name:"CRC32, CRC32c and MD5 Hashes",module:"crypto",version:j0,options:{crypto:{}}},Ae={id:"cryptojs",name:"Cryptographic Hashes",module:"crypto",version:j0,options:{cryptojs:{}}};return Z0(_);})(); | ||
"use strict";var __exports__=(()=>{var D0=Object.create;var o0=Object.defineProperty;var H0=Object.getOwnPropertyDescriptor;var k0=Object.getOwnPropertyNames;var q0=Object.getPrototypeOf,U0=Object.prototype.hasOwnProperty;var R0=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),L0=(r,e)=>{for(var d in e)o0(r,d,{get:e[d],enumerable:!0})},t0=(r,e,d,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let b of k0(e))!U0.call(r,b)&&b!==d&&o0(r,b,{get:()=>e[b],enumerable:!(s=H0(e,b))||s.enumerable});return r},a0=(r,e,d)=>(t0(r,e,"default"),d&&t0(d,e,"default")),N0=(r,e,d)=>(d=r!=null?D0(q0(r)):{},t0(e||!r||!r.__esModule?o0(d,"default",{value:r,enumerable:!0}):d,r)),Z0=r=>t0(o0({},"__esModule",{value:!0}),r);var g0=R0((ie,C0)=>{C0.exports=globalThis.loaders});var _={};L0(_,{CRC32CHash:()=>A0,CRC32Hash:()=>n0,CryptoHash:()=>Y,CryptoJSWorker:()=>Ae,CryptoWorker:()=>ne,Hash:()=>G,MD5Hash:()=>d0,NodeHash:()=>b0,SHA256Hash:()=>s0,asciiToBase64:()=>c0,base64ToAscii:()=>x0,encodeBase64:()=>M0,encodeHex:()=>f0,encodeNumber:()=>Z});a0(_,N0(g0(),1));function u0(r){globalThis.loaders||={},globalThis.loaders.modules||={},Object.assign(globalThis.loaders.modules,r)}function K(r,e){let d=globalThis.loaders?.modules?.[r];if(!d)throw new Error(`${e}: ${r} library not installed`);return d}function w0(...r){return V0(r)}function V0(r){let e=r.map(h=>h instanceof ArrayBuffer?new Uint8Array(h):h),d=e.reduce((h,l)=>h+l.byteLength,0),s=new Uint8Array(d),b=0;for(let h of e)s.set(h,b),b+=h.byteLength;return s.buffer}async function h0(r){let e=[];for await(let d of r)e.push(d);return w0(...e)}var G=class{constructor(e={}){this.hashBatches=this.hashBatches.bind(this)}async preload(){}async*hashBatches(e,d="base64"){let s=[];for await(let l of e)s.push(l),yield l;let b=await this.concatenate(s),h=await this.hash(b,d);this.options.crypto?.onEnd?.({hash:h})}async concatenate(e){return await h0(e)}};var X=class{crc;constructor(){this.crc=-1}update(e){let d=z0(),s=new Uint8Array(e);for(let b=0;b<s.byteLength;b++)this.crc=this.crc>>>8^d[(this.crc^s[b])&255];return this}finalize(){return this.crc=(this.crc^-1)>>>0,this.crc}},X0=Uint32Array.of(0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117);function z0(){return X0}function c0(r){r=`${r}`;for(let d=0;d<r.length;d++)if(r.charCodeAt(d)>255)return null;let e="";for(let d=0;d<r.length;d+=3){let s=[void 0,void 0,void 0,void 0];s[0]=r.charCodeAt(d)>>2,s[1]=(r.charCodeAt(d)&3)<<4,r.length>d+1&&(s[1]|=r.charCodeAt(d+1)>>4,s[2]=(r.charCodeAt(d+1)&15)<<2),r.length>d+2&&(s[2]|=r.charCodeAt(d+2)>>6,s[3]=r.charCodeAt(d+2)&63);for(let b=0;b<s.length;b++)typeof s[b]>"u"?e+="=":e+=K0(s[b])}return e}function x0(r){if(r=`${r}`,r=r.replace(/[ \t\n\f\r]/g,""),r.length%4===0&&(r=r.replace(/[=]=?$/,"")),r.length%4===1||/[^+/0-9A-Za-z]/.test(r))return"";let e="",d=0,s=0;for(let b=0;b<r.length;b++)d<<=6,d|=P0(r[b]),s+=6,s===24&&(e+=String.fromCharCode((d&16711680)>>16),e+=String.fromCharCode((d&65280)>>8),e+=String.fromCharCode(d&255),d=s=0);return s===12?(d>>=4,e+=String.fromCharCode(d)):s===18&&(d>>=2,e+=String.fromCharCode((d&65280)>>8),e+=String.fromCharCode(d&255)),e}var Y0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function P0(r){let e=Y0.indexOf(r);return e<0?void 0:e}function K0(r){if(r<26)return String.fromCharCode(r+"A".charCodeAt(0));if(r<52)return String.fromCharCode(r-26+"a".charCodeAt(0));if(r<62)return String.fromCharCode(r-52+"0".charCodeAt(0));if(r===62)return"+";if(r===63)return"/"}function Z(r,e){switch(e){case"hex":return I0(r);case"base64":return F0(I0(r));default:throw new Error(e)}}function f0(r,e){switch(e){case"hex":return r;case"base64":return F0(r);default:throw new Error(e)}}function M0(r,e){switch(e){case"hex":return _0(r);case"base64":return r;default:throw new Error(e)}}function F0(r){r.length%2!==0&&(r=`0${r}`);let d=(r.match(/\w{2}/g)||[]).map(s=>String.fromCharCode(parseInt(s,16))).join("");return c0(d)||""}function _0(r){return[...x0(r)].map(e=>e.charCodeAt(0).toString(16).padStart(2,"0")).join("")}function I0(r){let e=r.toString(16);return e==="0"?`0${e}`:e}var n0=class extends G{name="crc32";options;constructor(e={}){super(),this.options={crypto:{},...e},this.hashBatches=this.hashBatches.bind(this)}async hash(e,d){return this.hashSync(e,d)}hashSync(e,d){let s=new X;s.update(e);let b=s.finalize();return Z(b,d)}async*hashBatches(e,d="base64"){let s=new X;for await(let h of e)s.update(h),yield h;let b=s.finalize();this.options.crypto?.onEnd?.({hash:Z(b,d)})}};var z=class{options;crc;constructor(e={}){this.options=e,this.crc=-1}update(e){let d=new Uint8Array(e),s=$0();for(let b=0;b<d.length;b++)this.crc=s[(this.crc^d[b])&255]^this.crc>>>8;return this}finalize(){return this.crc=(this.crc^-1)>>>0,this.crc}},O0=Int32Array.of(0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697);function $0(){return O0}var A0=class extends G{name="crc32c";options;constructor(e={}){super(),this.options={crypto:{},...e}}async hash(e,d){return this.hashSync(e,d)}hashSync(e,d){let s=new z(this.options);s.update(e);let b=s.finalize();return Z(b,d)}async*hashBatches(e,d="base64"){let s=new z(this.options);for await(let h of e)s.update(h),yield h;let b=s.finalize();this.options.crypto?.onEnd?.({hash:Z(b,d)})}};var v0=typeof atob=="function"?atob:typeof Buffer=="function"?xe:W0,ee=v0("AGFzbQEAAAABDANgAX8AYAAAYAABfwIeAgdpbX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cEM0EwVsb29wRBQGbG9vcEQxFQZsb29wRDIWBmxvb3BEMxcGbG9vcEQ0GAhvbmVGdWxsQRkIb25lRnVsbEIaCG9uZUZ1bGxDGwhvbmVGdWxsRBwIdHdvRnVsbEEdCHR3b0Z1bGxCHgh0d29GdWxsQx8IdHdvRnVsbEQgCHRyZUZ1bGxBIQh0cmVGdWxsQiIIdHJlRnVsbEMjCHRyZUZ1bGxEJAhxdWFGdWxsQSUIcXVhRnVsbEImCHF1YUZ1bGxDJwhxdWFGdWxsRCgEZ2V0QSkEZ2V0QioEZ2V0QysEZ2V0RCwEZ2V0WC0Ec2V0QS4Ec2V0Qi8Ec2V0QzAEc2V0RDEEc2V0WALNATIAAQAAAQIAAAEIbnVtbG9vcHMCAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgCAAABAW4ZAgAAAQFuGgIAAAEBbhsCAAABAW4cAgAAAQFuHQIAAAEBbh4CAAABAW4fAgAAAQFuIAIAAAEBbiECAAABAW4iAgAAAQFuIwIAAAEBbiQCAAABAW4lAgAAAQFuJgIAAAEBbicCAAABAW4oACkAKgArACwALQEAAC4BAAAvAQAAMAEAADEBAAA="),B0=WebAssembly&&v0!==W0?ce(ee).buffer:!1,q=fe(),m0=240*16*16,S0=Math.floor(m0*16*1.066666667),re=268435456-65536,G0="Parameter must be Buffer, ArrayBuffer or Uint8Array",te="Parameter exceeds max size of 255.9 Mbytes";B0||console.log("WebAssembly not available or WASM module could not be decoded; md5WASM will fall back to JavaScript");function l0(r){var e,d,s,b,h,l,w,I,J,D;let U=ae(),v=oe(),S={},j=new Date().getTime();return S.then=function(m){return w=m,g(),S},S.catch=function(m){return I=m,S},r&&typeof r=="object"?typeof Buffer=="function"&&r.constructor===Buffer?l=r:r.constructor===Uint8Array||r.constructor===ArrayBuffer?l=r.constructor===ArrayBuffer?new Uint8Array(r):r:C(new TypeError(G0)):C(new TypeError(G0)),l&&(h=l.length,B0&&h>S0?h>re?C(new Error(te)):(e=new WebAssembly.Memory({initial:h>32e6?h>64e6?h>128e6?4096:2048:1024:512}),d=new Uint32Array(e.buffer),b={mem:e,log:console.log},s={imports:b},WebAssembly.instantiate(B0,s).then(p)):g(U(l))),S;function p(m){g(v(l,m.instance.exports,d))}function g(m){var T=Boolean(m)?m:J;Boolean(m)&&(D=new Date().getTime()),typeof w=="function"?Boolean(T)&&(w(T,D-j),w=I=null):Boolean(m)&&(J=m)}function C(m){typeof I=="function"&&I(m)}}function oe(){var r,e,d,s,b,h,l,w,I,J,D,U,v,S=function(j){var p,g,C,m,T,R,L,N,B,V,t,o,a,c,H,W,Q,i,O,$,E,de,se=new Date().getTime(),J0=0,x=1732584193,f=-271733879,n=-1732584194,A=271733878,y=0,P=j.length*8,e0;for(e0=T0(j,v),v[P>>>5]|=128<<P%32,v[(P+64>>>9<<4)+14]=P,e0=(P+64>>>9<<4)+15,E=v;y<e0;)e0>y+S0?(s(x),h(f),w(n),J(A),e(m0),y=y+m0*16,x=d(),f=b(),n=l(),A=I(),J0++):(Q=x,i=f,O=n,$=A,p=E[y+0]>>>0,g=E[y+1]>>>0,C=E[y+2]>>>0,m=E[y+3]>>>0,T=E[y+4]>>>0,R=E[y+5]>>>0,L=E[y+6]>>>0,N=E[y+7]>>>0,B=E[y+8]>>>0,V=E[y+9]>>>0,t=E[y+10]>>>0,o=E[y+11]>>>0,a=E[y+12]>>>0,c=E[y+13]>>>0,H=E[y+14]>>>0,W=E[y+15]>>>0,x=u(7,25,x+(f&n|~f&A)+p-680876936)+f,A=u(12,20,A+(x&f|~x&n)+g-389564586)+x,n=u(17,15,n+(A&x|~A&f)+C+606105819)+A,f=u(22,10,f+(n&A|~n&x)+m-1044525330)+n,x=u(7,25,x+(f&n|~f&A)+T-176418897)+f,A=u(12,20,A+(x&f|~x&n)+R+1200080426)+x,n=u(17,15,n+(A&x|~A&f)+L-1473231341)+A,f=u(22,10,f+(n&A|~n&x)+N-45705983)+n,x=u(7,25,x+(f&n|~f&A)+B+1770035416)+f,A=u(12,20,A+(x&f|~x&n)+V-1958414417)+x,n=u(17,15,n+(A&x|~A&f)+t-42063)+A,f=u(22,10,f+(n&A|~n&x)+o-1990404162)+n,x=u(7,25,x+(f&n|~f&A)+a+1804603682)+f,A=u(12,20,A+(x&f|~x&n)+c-40341101)+x,n=u(17,15,n+(A&x|~A&f)+H-1502002290)+A,f=u(22,10,f+(n&A|~n&x)+W+1236535329)+n,x=u(5,27,x+(f&A|n&~A)+g-165796510)+f,A=u(9,23,A+(x&n|f&~n)+L-1069501632)+x,n=u(14,18,n+(A&f|x&~f)+o+643717713)+A,f=u(20,12,f+(n&x|A&~x)+p-373897302)+n,x=u(5,27,x+(f&A|n&~A)+R-701558691)+f,A=u(9,23,A+(x&n|f&~n)+t+38016083)+x,n=u(14,18,n+(A&f|x&~f)+W-660478335)+A,f=u(20,12,f+(n&x|A&~x)+T-405537848)+n,x=u(5,27,x+(f&A|n&~A)+V+568446438)+f,A=u(9,23,A+(x&n|f&~n)+H-1019803690)+x,n=u(14,18,n+(A&f|x&~f)+m-187363961)+A,f=u(20,12,f+(n&x|A&~x)+B+1163531501)+n,x=u(5,27,x+(f&A|n&~A)+c-1444681467)+f,A=u(9,23,A+(x&n|f&~n)+C-51403784)+x,n=u(14,18,n+(A&f|x&~f)+N+1735328473)+A,f=u(20,12,f+(n&x|A&~x)+a-1926607734)+n,x=u(4,28,x+(f^n^A)+R-378558)+f,A=u(11,21,A+(x^f^n)+B-2022574463)+x,n=u(16,16,n+(A^x^f)+o+1839030562)+A,f=u(23,9,f+(n^A^x)+H-35309556)+n,x=u(4,28,x+(f^n^A)+g-1530992060)+f,A=u(11,21,A+(x^f^n)+T+1272893353)+x,n=u(16,16,n+(A^x^f)+N-155497632)+A,f=u(23,9,f+(n^A^x)+t-1094730640)+n,x=u(4,28,x+(f^n^A)+c+681279174)+f,A=u(11,21,A+(x^f^n)+p-358537222)+x,n=u(16,16,n+(A^x^f)+m-722521979)+A,f=u(23,9,f+(n^A^x)+L+76029189)+n,x=u(4,28,x+(f^n^A)+V-640364487)+f,A=u(11,21,A+(x^f^n)+a-421815835)+x,n=u(16,16,n+(A^x^f)+W+530742520)+A,f=u(23,9,f+(n^A^x)+C-995338651)+n,x=u(6,26,x+(n^(f|~A))+p-198630844)+f,A=u(10,22,A+(f^(x|~n))+N+1126891415)+x,n=u(15,17,n+(x^(A|~f))+H-1416354905)+A,f=u(21,11,f+(A^(n|~x))+R-57434055)+n,x=u(6,26,x+(n^(f|~A))+a+1700485571)+f,A=u(10,22,A+(f^(x|~n))+m-1894986606)+x,n=u(15,17,n+(x^(A|~f))+t-1051523)+A,f=u(21,11,f+(A^(n|~x))+g-2054922799)+n,x=u(6,26,x+(n^(f|~A))+B+1873313359)+f,A=u(10,22,A+(f^(x|~n))+W-30611744)+x,n=u(15,17,n+(x^(A|~f))+L-1560198380)+A,f=u(21,11,f+(A^(n|~x))+c+1309151649)+n,x=u(6,26,x+(n^(f|~A))+T-145523070)+f,A=u(10,22,A+(f^(x|~n))+o-1120210379)+x,n=u(15,17,n+(x^(A|~f))+C+718787259)+A,f=u(21,11,f+(A^(n|~x))+V-343485551)+n,y=y+16,x=x+Q>>>0,f=f+i>>>0,n=n+O>>>0,A=A+$>>>0);return q.endian([x,f,n,A]);function u(M,r0,k){return k<<M|k>>>r0}function T0(M,r0){for(var k=-1,i0=Math.floor((M.length-1)/4),F=0,p0,y0,Q0,E0;i0-8>k++;)F=k<<2,r0[k]=M[F+0]|M[F+1]<<8|M[F+2]<<16|M[F+3]<<24;for(k--;i0>k++;)F=k<<2,p0=typeof M[F+0]>"u"?0:M[F+0],y0=typeof M[F+1]>"u"?0:M[F+1],Q0=typeof M[F+2]>"u"?0:M[F+2],E0=typeof M[F+3]>"u"?0:M[F+3],r0[k]=p0|y0<<8|Q0<<16|E0<<24;return i0+1}};return function(j,p,g,C){var m;return e=p.loops,r=p.loop,d=p.getA,b=p.getB,l=p.getC,I=p.getD,D=p.getX,s=p.setA,h=p.setB,w=p.setC,J=p.setD,U=p.setX,v=g,m=q.wordsToBytes(S(j)),C&&C.asBytes?m:q.bytesconvertNumberToHex(m)}}function ae(){var r=function(e,d){var s,b,h,l,w,I,J,D,U,v,S,j,p,g,C,m,T,R,L,N,B,V=new Date().getTime(),t=1732584193,o=-271733879,a=-1732584194,c=271733878,H=e.length*8;B=q.bytesToWords(e);for(var W=0;W<B.length;W++)B[W]=(B[W]<<8|B[W]>>>24)&16711935|(B[W]<<24|B[W]>>>8)&4278255360;B[H>>>5]|=128<<H%32,B[(H+64>>>9<<4)+14]=H;for(var Q=0;Q<B.length;Q+=16)T=t,R=o,L=a,N=c,s=B[Q+0]>>>0,b=B[Q+1]>>>0,h=B[Q+2]>>>0,l=B[Q+3]>>>0,w=B[Q+4]>>>0,I=B[Q+5]>>>0,J=B[Q+6]>>>0,D=B[Q+7]>>>0,U=B[Q+8]>>>0,v=B[Q+9]>>>0,S=B[Q+10]>>>0,j=B[Q+11]>>>0,p=B[Q+12]>>>0,g=B[Q+13]>>>0,C=B[Q+14]>>>0,m=B[Q+15]>>>0,t=i(7,25,t+(o&a|~o&c)+s-680876936)+o,c=i(12,20,c+(t&o|~t&a)+b-389564586)+t,a=i(17,15,a+(c&t|~c&o)+h+606105819)+c,o=i(22,10,o+(a&c|~a&t)+l-1044525330)+a,t=i(7,25,t+(o&a|~o&c)+w-176418897)+o,c=i(12,20,c+(t&o|~t&a)+I+1200080426)+t,a=i(17,15,a+(c&t|~c&o)+J-1473231341)+c,o=i(22,10,o+(a&c|~a&t)+D-45705983)+a,t=i(7,25,t+(o&a|~o&c)+U+1770035416)+o,c=i(12,20,c+(t&o|~t&a)+v-1958414417)+t,a=i(17,15,a+(c&t|~c&o)+S-42063)+c,o=i(22,10,o+(a&c|~a&t)+j-1990404162)+a,t=i(7,25,t+(o&a|~o&c)+p+1804603682)+o,c=i(12,20,c+(t&o|~t&a)+g-40341101)+t,a=i(17,15,a+(c&t|~c&o)+C-1502002290)+c,o=i(22,10,o+(a&c|~a&t)+m+1236535329)+a,t=i(5,27,t+(o&c|a&~c)+b-165796510)+o,c=i(9,23,c+(t&a|o&~a)+J-1069501632)+t,a=i(14,18,a+(c&o|t&~o)+j+643717713)+c,o=i(20,12,o+(a&t|c&~t)+s-373897302)+a,t=i(5,27,t+(o&c|a&~c)+I-701558691)+o,c=i(9,23,c+(t&a|o&~a)+S+38016083)+t,a=i(14,18,a+(c&o|t&~o)+m-660478335)+c,o=i(20,12,o+(a&t|c&~t)+w-405537848)+a,t=i(5,27,t+(o&c|a&~c)+v+568446438)+o,c=i(9,23,c+(t&a|o&~a)+C-1019803690)+t,a=i(14,18,a+(c&o|t&~o)+l-187363961)+c,o=i(20,12,o+(a&t|c&~t)+U+1163531501)+a,t=i(5,27,t+(o&c|a&~c)+g-1444681467)+o,c=i(9,23,c+(t&a|o&~a)+h-51403784)+t,a=i(14,18,a+(c&o|t&~o)+D+1735328473)+c,o=i(20,12,o+(a&t|c&~t)+p-1926607734)+a,t=i(4,28,t+(o^a^c)+I-378558)+o,c=i(11,21,c+(t^o^a)+U-2022574463)+t,a=i(16,16,a+(c^t^o)+j+1839030562)+c,o=i(23,9,o+(a^c^t)+C-35309556)+a,t=i(4,28,t+(o^a^c)+b-1530992060)+o,c=i(11,21,c+(t^o^a)+w+1272893353)+t,a=i(16,16,a+(c^t^o)+D-155497632)+c,o=i(23,9,o+(a^c^t)+S-1094730640)+a,t=i(4,28,t+(o^a^c)+g+681279174)+o,c=i(11,21,c+(t^o^a)+s-358537222)+t,a=i(16,16,a+(c^t^o)+l-722521979)+c,o=i(23,9,o+(a^c^t)+J+76029189)+a,t=i(4,28,t+(o^a^c)+v-640364487)+o,c=i(11,21,c+(t^o^a)+p-421815835)+t,a=i(16,16,a+(c^t^o)+m+530742520)+c,o=i(23,9,o+(a^c^t)+h-995338651)+a,t=i(6,26,t+(a^(o|~c))+s-198630844)+o,c=i(10,22,c+(o^(t|~a))+D+1126891415)+t,a=i(15,17,a+(t^(c|~o))+C-1416354905)+c,o=i(21,11,o+(c^(a|~t))+I-57434055)+a,t=i(6,26,t+(a^(o|~c))+p+1700485571)+o,c=i(10,22,c+(o^(t|~a))+l-1894986606)+t,a=i(15,17,a+(t^(c|~o))+S-1051523)+c,o=i(21,11,o+(c^(a|~t))+b-2054922799)+a,t=i(6,26,t+(a^(o|~c))+U+1873313359)+o,c=i(10,22,c+(o^(t|~a))+m-30611744)+t,a=i(15,17,a+(t^(c|~o))+J-1560198380)+c,o=i(21,11,o+(c^(a|~t))+g+1309151649)+a,t=i(6,26,t+(a^(o|~c))+w-145523070)+o,c=i(10,22,c+(o^(t|~a))+j-1120210379)+t,a=i(15,17,a+(t^(c|~o))+h+718787259)+c,o=i(21,11,o+(c^(a|~t))+v-343485551)+a,t=t+T>>>0,o=o+R>>>0,a=a+L>>>0,c=c+N>>>0;return q.endian([t,o,a,c]);function i(O,$,E){return E<<O|E>>>$}};return function(e,d){var s=q.wordsToBytes(r(e,d)),b=d&&d.asBytes?s:q.bytesconvertNumberToHex(s);return b}}function ce(r){var e,d,s,b=-1;for(e=r.length-1,d=new ArrayBuffer(r.length),s=new Uint8Array(d);e>b++;)s[b]=r.charCodeAt(b);return s}function xe(r){return Buffer.from(r,"base64").toString("binary")}function W0(r){return r}function fe(){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return{rotl:function(e,d){return e<<d|e>>>32-d},endian:function(e){if(e.constructor==Number)return q.rotl(e,8)&16711935|q.rotl(e,24)&4278255360;for(var d=0;d<e.length;d++)e[d]=q.endian(e[d]);return e},bytesToWords:function(e){for(var d=[],s=0,b=0;s<e.length;s++,b+=8)d[b>>>5]|=e[s]<<24-b%32;return d},wordsToBytes:function(e){for(var d=[],s=0;s<e.length*32;s+=8)d.push(e[s>>>5]>>>24-s%32&255);return d},bytesconvertNumberToHex:function(e){for(var d=[],s=0;s<e.length;s++)d.push((e[s]>>>4).toString(16)),d.push((e[s]&15).toString(16));return d.join("")}}}var d0=class extends G{name="md5";options;constructor(e={}){super(),this.options=e}async hash(e,d){let b=await new Promise((h,l)=>l0(e).then(h).catch(l));return f0(b,d)}};var Y=class extends G{name;options;_algorithm;_algo;constructor(e){if(super(),this.options=e,u0(e?.modules),this._algorithm=this.options?.crypto?.algorithm,!this._algorithm)throw new Error(this.name);this.name=this._algorithm.toLowerCase()}async preload(){let e=K("CryptoJS",this.name);this._algo=e.algo[this._algorithm]}async hash(e,d){await this.preload();let s=this._algo.create();if(!s)throw new Error(this.name);let b=K("CryptoJS",this.name),h=b.lib.WordArray.create(e),l=d==="base64"?b.enc.Base64:b.enc.Hex;return s.update(h).finalize().toString(l)}async*hashBatches(e,d="base64"){await this.preload();let s=K("CryptoJS",this.name),b=this._algo.create();if(!b)throw new Error(this.name);for await(let w of e){let I=s.lib.WordArray.create(w);b.update(I),yield w}let h=d==="base64"?s.enc.Base64:s.enc.Hex,l=b.finalize().toString(h);this.options?.crypto?.onEnd?.({hash:l})}};var s0=class extends Y{constructor(e){super({...e,crypto:{...e.crypto,algorithm:"SHA256"}})}};var b0=class extends G{name;options;constructor(e){if(super(),this.options=e,!globalThis.loaders.NodeHash)throw new Error("install @loaders.gl/crypto on Node.js to use NodeHash");return new globalThis.loaders.NodeHash(e)}async hash(e,d){throw new Error("Not implemented")}};var j0="4.3.0-alpha.8",ne={id:"crypto",name:"CRC32, CRC32c and MD5 Hashes",module:"crypto",version:j0,options:{crypto:{}}},Ae={id:"cryptojs",name:"Cryptographic Hashes",module:"crypto",version:j0,options:{cryptojs:{}}};return Z0(_);})(); | ||
return __exports__; | ||
}); |
@@ -6,3 +6,3 @@ // loaders.gl | ||
// @ts-ignore TS2304: Cannot find name '__VERSION__'. | ||
const VERSION = typeof "4.3.0-alpha.7" !== 'undefined' ? "4.3.0-alpha.7" : 'latest'; | ||
const VERSION = typeof "4.3.0-alpha.8" !== 'undefined' ? "4.3.0-alpha.8" : 'latest'; | ||
export { Hash } from "./lib/hash.js"; | ||
@@ -9,0 +9,0 @@ export { CRC32Hash } from "./lib/crc32-hash.js"; |
{ | ||
"name": "@loaders.gl/crypto", | ||
"version": "4.3.0-alpha.8", | ||
"version": "4.3.0-beta.1", | ||
"description": "Cryptographic/hashing plugins for loaders.gl", | ||
@@ -49,4 +49,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@loaders.gl/loader-utils": "4.3.0-alpha.8", | ||
"@loaders.gl/worker-utils": "4.3.0-alpha.8", | ||
"@loaders.gl/loader-utils": "4.3.0-beta.1", | ||
"@loaders.gl/worker-utils": "4.3.0-beta.1", | ||
"@types/crypto-js": "^4.0.2" | ||
@@ -64,3 +64,3 @@ }, | ||
}, | ||
"gitHead": "c458e0c3a09543cd7c4a293d3c3f08c12acf78c0" | ||
"gitHead": "992d24e7d4e3015a91fa1cbfe87ee7dc1b333322" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
440876
+ Added@loaders.gl/loader-utils@4.3.0-beta.1(transitive)
+ Added@loaders.gl/schema@4.3.0-beta.1(transitive)
+ Added@loaders.gl/worker-utils@4.3.0-beta.1(transitive)
- Removed@loaders.gl/loader-utils@4.3.0-alpha.8(transitive)
- Removed@loaders.gl/schema@4.3.0-alpha.8(transitive)
- Removed@loaders.gl/worker-utils@4.3.0-alpha.8(transitive)