"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>>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;x255)return null;let e="";for(let x=0;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"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>>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/AUEAC38BQQALB7oCJQhvbmVGdWxsQQAYCG9uZUZ1bGxCABkIb25lRnVsbEMAGghvbmVGdWxsRAAbBWxvb3BzAAEEbG9vcAACBXByaW1lAAMFbG9vcEEABAZsb29wQTEABQZsb29wQTIABgZsb29wQTMABwZsb29wQTQACAVsb29wQgAJBmxvb3BCMQAKBmxvb3BCMgALBmxvb3BCMwAMBmxvb3BCNAANBWxvb3BDAA4GbG9vcEMxAA8GbG9vcEMyABAGbG9vcEMzABEGbG9vcEM0ABIFbG9vcEQAEwZsb29wRDEAFAZsb29wRDIAFQZsb29wRDMAFgZsb29wRDQAFwRnZXRBACgEZ2V0Qg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ae=WebAssembly&&Me!==ve?Ze(Re).buffer:!1,q=ze(),de=240*16*16,We=Math.floor(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;hh+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<>>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>>24)&16711935|(y[F]<<24|y[F]>>>8)&4278255360;y[D>>>5]|=128<>>9<<4)+14]=D;for(var g=0;g>>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<>>$}};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<>>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>>5]|=e[A]<<24-d%32;return x},wordsToBytes:function(e){for(var x=[],A=0;A>>5]>>>24-A%32&255);return x},bytesconvertNumberToHex:function(e){for(var x=[],A=0;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