@run-trace/duckdb-wasm 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -1,51 +0,0 @@
1
- "use strict";var ry=Object.create;var Qt=Object.defineProperty;var ny=Object.getOwnPropertyDescriptor;var sy=Object.getOwnPropertyNames;var ay=Object.getPrototypeOf,oy=Object.prototype.hasOwnProperty;var B=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),cy=(n,t)=>{for(var s in t)Qt(n,s,{get:t[s],enumerable:!0})},is=(n,t,s,_)=>{if(t&&typeof t=="object"||typeof t=="function")for(let h of sy(t))!oy.call(n,h)&&h!==s&&Qt(n,h,{get:()=>t[h],enumerable:!(_=ny(t,h))||_.enumerable});return n};var ht=(n,t,s)=>(s=n!=null?ry(ay(n)):{},is(t||!n||!n.__esModule?Qt(s,"default",{value:n,enumerable:!0}):s,n)),uy=n=>is(Qt({},"__esModule",{value:!0}),n);var Vi=B((us,ii)=>{"use strict";var Gi=(()=>{var t;var n=typeof document<"u"?(t=document.currentScript)==null?void 0:t.src:void 0;return typeof __filename<"u"&&(n=n||__filename),async function(s={}){var _,h=s,w,m,T=new Promise((e,i)=>{w=e,m=i}),k=typeof window=="object",D=typeof WorkerGlobalScope<"u",E=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",F=Object.assign({},h),P=[],ee="./this.program",L=(e,i)=>{throw i},M="";function K(e){return h.locateFile?h.locateFile(e,M):M+e}var V,oe;if(E){var ue=require("fs"),ke=require("path");M=__dirname+"/",oe=e=>{e=Ae(e)?new URL(e):e;var i=ue.readFileSync(e);return i},V=async(e,i=!0)=>{e=Ae(e)?new URL(e):e;var r=ue.readFileSync(e,i?void 0:"utf8");return r},!h.thisProgram&&process.argv.length>1&&(ee=process.argv[1].replace(/\\/g,"/")),P=process.argv.slice(2),L=(e,i)=>{throw process.exitCode=e,i}}else(k||D)&&(D?M=self.location.href:typeof document<"u"&&document.currentScript&&(M=document.currentScript.src),n&&(M=n),M.startsWith("blob:")?M="":M=M.slice(0,M.replace(/[?#].*/,"").lastIndexOf("/")+1),D&&(oe=e=>{var i=new XMLHttpRequest;return i.open("GET",e,!1),i.responseType="arraybuffer",i.send(null),new Uint8Array(i.response)}),V=async e=>{var i=await fetch(e,{credentials:"same-origin"});if(i.ok)return i.arrayBuffer();throw new Error(i.status+" : "+i.url)});var z=h.print||console.log.bind(console),ce=h.printErr||console.error.bind(console);Object.assign(h,F),F=null,h.arguments&&(P=h.arguments),h.thisProgram&&(ee=h.thisProgram);var Q=h.wasmBinary,q,U=!1,se;function I(e,i){e||O(i)}var G,$,le,C,S,Z,ae,Ie,Me=!1,Ae=e=>e.startsWith("file://");function lt(){var e=q.buffer;h.HEAP8=G=new Int8Array(e),h.HEAP16=le=new Int16Array(e),h.HEAPU8=$=new Uint8Array(e),h.HEAPU16=C=new Uint16Array(e),h.HEAP32=S=new Int32Array(e),h.HEAPU32=Z=new Uint32Array(e),h.HEAPF32=ae=new Float32Array(e),h.HEAPF64=Ie=new Float64Array(e)}function Fi(){if(h.preRun)for(typeof h.preRun=="function"&&(h.preRun=[h.preRun]);h.preRun.length;)uc(h.preRun.shift());Fn(xn)}function mt(){Me=!0,N.vh()}function Ze(){}function ie(){if(h.postRun)for(typeof h.postRun=="function"&&(h.postRun=[h.postRun]);h.postRun.length;)cc(h.postRun.shift());Fn(On)}var Le=0,ft=null;function H(e){var i;Le++,(i=h.monitorRunDependencies)==null||i.call(h,Le)}function he(e){var r;if(Le--,(r=h.monitorRunDependencies)==null||r.call(h,Le),Le==0&&ft){var i=ft;ft=null,i()}}function O(e){var r;(r=h.onAbort)==null||r.call(h,e),e="Aborted("+e+")",ce(e),U=!0,e+=". Build with -sASSERTIONS for more info.";var i=new WebAssembly.RuntimeError(e);throw m(i),i}var J;function ge(){return K("./duckdb-mvp.wasm")}function Ee(e){if(e==J&&Q)return new Uint8Array(Q);if(oe)return oe(e);throw"both async and sync fetching of the wasm failed"}async function we(e){if(!Q)try{var i=await V(e);return new Uint8Array(i)}catch{}return Ee(e)}async function It(e,i){try{var r=await we(e),a=await WebAssembly.instantiate(r,i);return a}catch(o){ce(`failed to asynchronously prepare wasm: ${o}`),O(o)}}async function bt(e,i,r){if(!e&&typeof WebAssembly.instantiateStreaming=="function"&&!E)try{var a=fetch(i,{credentials:"same-origin"}),o=await WebAssembly.instantiateStreaming(a,r);return o}catch(c){ce(`wasm streaming compile failed: ${c}`),ce("falling back to ArrayBuffer instantiation")}return It(i,r)}function sc(){return{a:ol}}async function ac(){function e(c,u){return N=c.exports,N=ty(N),q=N.uh,lt(),ts=N.xh,he("wasm-instantiate"),N}H("wasm-instantiate");function i(c){return e(c.instance)}var r=sc();if(h.instantiateWasm)return new Promise((c,u)=>{h.instantiateWasm(r,(l,f)=>{e(l,f),c(l.exports)})});J??(J=ge());try{var a=await bt(Q,J,r),o=i(a);return o}catch(c){return m(c),Promise.reject(c)}}var Se,Xe,oc={10165216:(e,i,r,a)=>{var o=fe(e);if(typeof XMLHttpRequest>"u")return 0;let c=new XMLHttpRequest;c.open(fe(a),o,!1),c.responseType="arraybuffer";for(var u=0,v=i;u<v*2;){var l=S[r/4+u>>>0],f=S[r/4+u+1>>>0];try{var d=encodeURI(fe(l));d==="Host"&&(d="X-Host-Override"),d==="User-Agent"&&(d="X-user-agent"),d==="Authorization"?c.setRequestHeader(d,fe(f)):c.setRequestHeader(d,encodeURI(fe(f)))}catch(W){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",W)}u+=2}try{c.send(null)}catch{return 0}if(c.status>=400)return 0;for(var p=c.response,v=p.byteLength,b=rt(v+4),j=new Uint8Array(p),R=0;R<v;R++)h.HEAPU8[R+b+4]=j[R];var A=new Uint8Array(4);return A[0]=v%256,v-=A[0],v/=256,A[1]=v%256,v-=A[1],v/=256,A[2]=v%256,v-=A[2],v/=256,A[3]=v%256,v-=A[3],v/=256,h.HEAPU8.set(A,b),b},10166623:(e,i,r,a,o,c)=>{var u=fe(e);if(typeof XMLHttpRequest>"u")return 0;let l=new XMLHttpRequest;l.open(fe(a),u,!1),l.responseType="arraybuffer";for(var f=0,A=i;f<A*2;){var d=S[r/4+f>>>0],p=S[r/4+f+1>>>0];try{var v=encodeURI(fe(d));v==="Host"&&(v="X-Host-Override"),v==="User-Agent"&&(v="X-user-agent"),v==="Authorization"?l.setRequestHeader(v,fe(p)):l.setRequestHeader(v,encodeURI(fe(p)))}catch(be){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",be)}f+=2}try{for(var b=new Uint8Array(c),j=0;j<c;j++)b[j]=h.HEAPU8[j+o];l.send(b)}catch{return 0}if(l.status>=400)return 0;for(var R=Uint8Array.from(Array.from(l.getResponseHeader("Etag")).map(be=>be.charCodeAt(0))),A=R.byteLength,W=rt(A+4),re=new Uint8Array(R),j=0;j<A;j++)h.HEAPU8[j+W+4]=re[j];var Y=new Uint8Array(4);return Y[0]=A%256,A-=Y[0],A/=256,Y[1]=A%256,A-=Y[1],A/=256,Y[2]=A%256,A-=Y[2],A/=256,Y[3]=A%256,A-=Y[3],A/=256,h.HEAPU8.set(Y,W),W},10168243:(e,i,r,a)=>{var o=fe(e);if(typeof XMLHttpRequest>"u")return 0;let c=new XMLHttpRequest;c.open(fe(a),o,!1),c.responseType="arraybuffer";for(var u=0,v=i;u<v*2;){var l=S[r/4+u>>>0],f=S[r/4+u+1>>>0];console.log("HEAD",fe(l),fe(f));try{var d=encodeURI(fe(l));d==="Host"&&(d="X-Host-Override"),d==="User-Agent"&&(d="X-user-agent"),d==="Authorization"?c.setRequestHeader(d,fe(f)):c.setRequestHeader(d,encodeURI(fe(f)))}catch(Y){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",Y)}u+=2}try{c.send(null)}catch{return 0}if(c.status>=400)return 0;for(var p=c.response,v=p.byteLength,b=rt(v+8),j=new Uint8Array(p),R=0;R<v;R++)h.HEAPU8[R+b+8]=j[R];var A=new Uint8Array(4);A[0]=v%256,v-=A[0],v/=256,A[1]=v%256,v-=A[1],v/=256,A[2]=v%256,v-=A[2],v/=256,A[3]=v%256,v-=A[3],v/=256,h.HEAPU8.set(A,b+4);var W=Uint8Array.from(Array.from(c.getAllResponseHeaders()).map(Y=>Y.charCodeAt(0)));v=W.byteLength;for(var re=rt(v+8),R=0;R<v;R++)h.HEAPU8[R+re+8]=W[R];return A=new Uint8Array(4),A[0]=v%256,v-=A[0],v/=256,A[1]=v%256,v-=A[1],v/=256,A[2]=v%256,v-=A[2],v/=256,A[3]=v%256,v-=A[3],v/=256,h.HEAPU8.set(A,re+4),v=re,A=new Uint8Array(4),A[0]=v%256,v-=A[0],v/=256,A[1]=v%256,v-=A[1],v/=256,A[2]=v%256,v-=A[2],v/=256,A[3]=v%256,v-=A[3],v/=256,h.HEAPU8.set(A,b),b},10170588:(e,i,r,a)=>{var o=fe(e);if(typeof XMLHttpRequest>"u")return 0;let c=new XMLHttpRequest;c.open(fe(a),o,!1),c.responseType="arraybuffer";for(var u=0,v=i;u<v*2;){var l=S[r/4+u>>>0],f=S[r/4+u+1>>>0];try{var d=encodeURI(fe(l));d==="Host"&&(d="X-Host-Override"),d==="User-Agent"&&(d="X-user-agent"),d==="Authorization"?c.setRequestHeader(d,fe(f)):c.setRequestHeader(d,encodeURI(fe(f)))}catch(W){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",W)}u+=2}try{c.send(null)}catch{return 0}if(c.status>=400)return 0;for(var p=c.response,v=p.byteLength,b=rt(v+4),j=new Uint8Array(p),R=0;R<v;R++)h.HEAPU8[R+b+4]=j[R];var A=new Uint8Array(4);return A[0]=v%256,v-=A[0],v/=256,A[1]=v%256,v-=A[1],v/=256,A[2]=v%256,v-=A[2],v/=256,A[3]=v%256,v-=A[3],v/=256,h.HEAPU8.set(A,b),b},10171995:(e,i,r,a,o,c)=>{var u=fe(e);if(typeof XMLHttpRequest>"u")return 0;let l=new XMLHttpRequest;l.open(fe(a),u,!1),l.responseType="arraybuffer";for(var f=0,A=i;f<A*2;){var d=S[r/4+f>>>0],p=S[r/4+f+1>>>0];try{var v=encodeURI(fe(d));v==="Host"&&(v="X-Host-Override"),v==="User-Agent"&&(v="X-user-agent"),v==="Authorization"?l.setRequestHeader(v,fe(p)):l.setRequestHeader(v,encodeURI(fe(p)))}catch(be){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",be)}f+=2}try{for(var b=new Uint8Array(c),j=0;j<c;j++)b[j]=h.HEAPU8[j+o];l.send(b)}catch{return 0}if(l.status>=400)return 0;for(var R=l.response,A=R.byteLength,W=rt(A+4),re=new Uint8Array(R),j=0;j<A;j++)h.HEAPU8[j+W+4]=re[j];var Y=new Uint8Array(4);return Y[0]=A%256,A-=Y[0],A/=256,Y[1]=A%256,A-=Y[1],A/=256,Y[2]=A%256,A-=Y[2],A/=256,Y[3]=A%256,A-=Y[3],A/=256,h.HEAPU8.set(Y,W),W}};class In{name="ExitStatus";constructor(i){this.message=`Program terminated with exit(${i})`,this.status=i}}var Fn=e=>{for(;e.length>0;)e.shift()(h)},On=[],cc=e=>On.unshift(e),xn=[],uc=e=>xn.unshift(e),lc=h.noExitRuntime||!0,y=e=>fl(e),g=()=>hl(),et=[],Ut=0,tt=(e,i)=>i+2097152>>>0<4194305-!!e?(e>>>0)+i*4294967296:NaN;function fc(e){e>>>=0;var i=new Nt(e);return i.get_caught()||(i.set_caught(!0),Ut--),i.set_rethrown(!1),et.push(i),___cxa_increment_exception_refcount(e),___cxa_get_exception_ptr(e)}function _c(){if(!et.length)return 0;var e=et[et.length-1];return ___cxa_increment_exception_refcount(e.excPtr),e.excPtr}var Ye=0,hc=()=>{_setThrew(0,0);var e=et.pop();___cxa_decrement_exception_refcount(e.excPtr),Ye=0};class Nt{constructor(i){this.excPtr=i,this.ptr=i-24}set_type(i){Z[this.ptr+4>>>2>>>0]=i}get_type(){return Z[this.ptr+4>>>2>>>0]}set_destructor(i){Z[this.ptr+8>>>2>>>0]=i}get_destructor(){return Z[this.ptr+8>>>2>>>0]}set_caught(i){i=i?1:0,G[this.ptr+12>>>0]=i}get_caught(){return G[this.ptr+12>>>0]!=0}set_rethrown(i){i=i?1:0,G[this.ptr+13>>>0]=i}get_rethrown(){return G[this.ptr+13>>>0]!=0}init(i,r){this.set_adjusted_ptr(0),this.set_type(i),this.set_destructor(r)}set_adjusted_ptr(i){Z[this.ptr+16>>>2>>>0]=i}get_adjusted_ptr(){return Z[this.ptr+16>>>2>>>0]}}function dc(e){throw e>>>=0,Ye||(Ye=e),Ye}var Ft=e=>ul(e),Wt=e=>{var i=Ye;if(!i)return Ft(0),0;var r=new Nt(i);r.set_adjusted_ptr(i);var a=r.get_type();if(!a)return Ft(0),i;for(var o of e){if(o===0||o===a)break;var c=r.ptr+16;if(___cxa_can_catch(o,a,c))return Ft(o),i}return Ft(a),i};function pc(){return Wt([])}function vc(e){return e>>>=0,Wt([e])}function yc(e,i){return e>>>=0,i>>>=0,Wt([e,i])}function gc(e,i,r){return e>>>=0,i>>>=0,r>>>=0,Wt([e,i,r])}var Mn=()=>{var e=et.pop();e||O("no exception to throw");var i=e.excPtr;throw e.get_rethrown()||(et.push(e),e.set_rethrown(!0),e.set_caught(!1),Ut++),Ye=i,Ye};function wc(e){if(e>>>=0,!!e){var i=new Nt(e);et.push(i),i.set_rethrown(!0),Mn()}}function mc(e,i,r){e>>>=0,i>>>=0,r>>>=0;var a=new Nt(e);throw a.init(i,r),Ye=e,Ut++,Ye}var bc=()=>Ut;function Ln(){O("missing function: $SOCKFS")}Ln.stub=!0;function Oi(){O("missing function: $FS")}Oi.stub=!0;var jt=e=>{var i=Ln.getSocket(e);if(!i)throw new Oi.ErrnoError(8);return i},xi=e=>(e&255)+"."+(e>>8&255)+"."+(e>>16&255)+"."+(e>>24&255),Bn=e=>{var i="",r=0,a=0,o=0,c=0,u=0,l=0,f=[e[0]&65535,e[0]>>16,e[1]&65535,e[1]>>16,e[2]&65535,e[2]>>16,e[3]&65535,e[3]>>16],d=!0,p="";for(l=0;l<5;l++)if(f[l]!==0){d=!1;break}if(d){if(p=xi(f[6]|f[7]<<16),f[5]===-1)return i="::ffff:",i+=p,i;if(f[5]===0)return i="::",p==="0.0.0.0"&&(p=""),p==="0.0.0.1"&&(p="1"),i+=p,i}for(r=0;r<8;r++)f[r]===0&&(r-o>1&&(u=0),o=r,u++),u>a&&(a=u,c=r-a+1);for(r=0;r<8;r++){if(a>1&&f[r]===0&&r>=c&&r<c+a){r===c&&(i+=":",c===0&&(i+=":"));continue}i+=Number(_ntohs(f[r]&65535)).toString(16),i+=r<7?":":""}return i},Hn=(e,i)=>{var r=le[e>>>1>>>0],a=_ntohs(C[e+2>>>1>>>0]),o;switch(r){case 2:if(i!==16)return{errno:28};o=S[e+4>>>2>>>0],o=xi(o);break;case 10:if(i!==28)return{errno:28};o=[S[e+8>>>2>>>0],S[e+12>>>2>>>0],S[e+16>>>2>>>0],S[e+20>>>2>>>0]],o=Bn(o);break;default:return{errno:5}}return{family:r,addr:o,port:a}},qt=e=>{for(var i=e.split("."),r=0;r<4;r++){var a=Number(i[r]);if(isNaN(a))return null;i[r]=a}return(i[0]|i[1]<<8|i[2]<<16|i[3]<<24)>>>0},$t=e=>parseInt(e),Mi=e=>{var i,r,a,o,c=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,u=[];if(!c.test(e))return null;if(e==="::")return[0,0,0,0,0,0,0,0];for(e.startsWith("::")?e=e.replace("::","Z:"):e=e.replace("::",":Z:"),e.indexOf(".")>0?(e=e.replace(new RegExp("[.]","g"),":"),i=e.split(":"),i[i.length-4]=$t(i[i.length-4])+$t(i[i.length-3])*256,i[i.length-3]=$t(i[i.length-2])+$t(i[i.length-1])*256,i=i.slice(0,i.length-2)):i=e.split(":"),a=0,o=0,r=0;r<i.length;r++)if(typeof i[r]=="string")if(i[r]==="Z"){for(o=0;o<8-i.length+1;o++)u[r+o]=0;a=o-1}else u[r+a]=_htons(parseInt(i[r],16));else u[r+a]=i[r];return[u[1]<<16|u[0],u[3]<<16|u[2],u[5]<<16|u[4],u[7]<<16|u[6]]},Fe={address_map:{id:1,addrs:{},names:{}},lookup_name(e){var i=qt(e);if(i!==null||(i=Mi(e),i!==null))return e;var r;if(Fe.address_map.addrs[e])r=Fe.address_map.addrs[e];else{var a=Fe.address_map.id++;I(a<65535,"exceeded max address mappings of 65535"),r="172.29."+(a&255)+"."+(a&65280),Fe.address_map.names[r]=e,Fe.address_map.addrs[e]=r}return r},lookup_addr(e){return Fe.address_map.names[e]?Fe.address_map.names[e]:null}},Un=(e,i)=>{var r=Hn(e,i);if(r.errno)throw new Oi.ErrnoError(r.errno);return r.addr=Fe.lookup_addr(r.addr)||r.addr,r};function jc(e,i,r,a,o,c){i>>>=0,r>>>=0;var u=jt(e),l=Un(i,r);return u.sock_ops.bind(u,l.addr,l.port),0}function Tc(e,i,r,a,o,c){i>>>=0,r>>>=0;var u=jt(e),l=Un(i,r);return u.sock_ops.connect(u,l.addr,l.port),0}var Sc=(e,i,r)=>{};function kc(e,i,r,a){i>>>=0}var Nn=typeof TextDecoder<"u"?new TextDecoder:void 0,Wn=(e,i=0,r=NaN)=>{i>>>=0;for(var a=i+r,o=i;e[o]&&!(o>=a);)++o;if(o-i>16&&e.buffer&&Nn)return Nn.decode(e.subarray(i,o));for(var c="";i<o;){var u=e[i++];if(!(u&128)){c+=String.fromCharCode(u);continue}var l=e[i++]&63;if((u&224)==192){c+=String.fromCharCode((u&31)<<6|l);continue}var f=e[i++]&63;if((u&240)==224?u=(u&15)<<12|l<<6|f:u=(u&7)<<18|l<<12|f<<6|e[i++]&63,u<65536)c+=String.fromCharCode(u);else{var d=u-65536;c+=String.fromCharCode(55296|d>>10,56320|d&1023)}}return c},fe=(e,i)=>(e>>>=0,e?Wn($,e,i):""),Li={varargs:void 0,getStr(e){var i=fe(e);return i}};function Ec(e,i,r){return r>>>=0,Li.varargs=r,0}function Rc(e,i){i>>>=0}function Ac(e,i,r){var a=tt(i,r)}var qn=e=>{for(var i=0,r=0;r<e.length;++r){var a=e.charCodeAt(r);a<=127?i++:a<=2047?i+=2:a>=55296&&a<=57343?(i+=4,++r):i+=3}return i};h.lengthBytesUTF8=qn;var Cc=(e,i,r,a)=>{if(r>>>=0,!(a>0))return 0;for(var o=r,c=r+a-1,u=0;u<e.length;++u){var l=e.charCodeAt(u);if(l>=55296&&l<=57343){var f=e.charCodeAt(++u);l=65536+((l&1023)<<10)|f&1023}if(l<=127){if(r>=c)break;i[r++>>>0]=l}else if(l<=2047){if(r+1>=c)break;i[r++>>>0]=192|l>>6,i[r++>>>0]=128|l&63}else if(l<=65535){if(r+2>=c)break;i[r++>>>0]=224|l>>12,i[r++>>>0]=128|l>>6&63,i[r++>>>0]=128|l&63}else{if(r+3>=c)break;i[r++>>>0]=240|l>>18,i[r++>>>0]=128|l>>12&63,i[r++>>>0]=128|l>>6&63,i[r++>>>0]=128|l&63}}return i[r>>>0]=0,r-o},it=(e,i,r)=>Cc(e,$,i,r);h.stringToUTF8=it;function Dc(e,i){e>>>=0,i>>>=0}function Pc(e,i,r){i>>>=0,r>>>=0}var $n=(e,i)=>{$.fill(0,e,e+i)},Kt=(e,i,r,a,o)=>{switch(i){case 2:r=qt(r),$n(e,16),o&&(S[o>>>2>>>0]=16),le[e>>>1>>>0]=i,S[e+4>>>2>>>0]=r,le[e+2>>>1>>>0]=_htons(a);break;case 10:r=Mi(r),$n(e,28),o&&(S[o>>>2>>>0]=28),S[e>>>2>>>0]=i,S[e+8>>>2>>>0]=r[0],S[e+12>>>2>>>0]=r[1],S[e+16>>>2>>>0]=r[2],S[e+20>>>2>>>0]=r[3],le[e+2>>>1>>>0]=_htons(a);break;default:return 5}return 0};function Ic(e,i,r,a,o,c){i>>>=0,r>>>=0;var u=jt(e);if(!u.daddr)return-53;var l=Kt(i,u.family,Fe.lookup_name(u.daddr),u.dport,r);return 0}function Fc(e,i,r,a,o,c){i>>>=0,r>>>=0;var u=jt(e),l=Kt(i,u.family,Fe.lookup_name(u.saddr||"0.0.0.0"),u.sport,r);return 0}function Oc(e,i,r,a,o,c){a>>>=0,o>>>=0;var u=jt(e);return i===1&&r===4?(S[a>>>2>>>0]=u.error,S[o>>>2>>>0]=4,u.error=null,0):-50}function xc(e,i,r){return r>>>=0,Li.varargs=r,0}function Mc(e,i){e>>>=0,i>>>=0}function Lc(e,i,r){i>>>=0}function Bc(e,i,r,a){i>>>=0,r>>>=0}function Hc(e,i,r,a){i>>>=0,a>>>=0,Li.varargs=a}function Uc(e,i,r){e>>>=0}function Nc(e,i,r,a){i>>>=0,r>>>=0,a>>>=0}function Wc(e,i,r,a,o,c){i>>>=0,r>>>=0,o>>>=0,c>>>=0;var u=jt(e),l=u.sock_ops.recvmsg(u,r);if(!l)return 0;if(o)var f=Kt(o,u.family,Fe.lookup_name(l.addr),l.port,c);return $.set(l.buffer,i>>>0),l.buffer.byteLength}function qc(e,i,r,a){i>>>=0,a>>>=0}function $c(e){e>>>=0}function Kc(e,i,r,a,o,c){i>>>=0,r>>>=0,o>>>=0,c>>>=0}var Gc=(e,i,r)=>{};function Vc(e,i){e>>>=0,i>>>=0}function Qc(e,i,r){e>>>=0,i>>>=0,r>>>=0}function Xc(e,i,r){i>>>=0}var Yc=()=>O(""),zc=()=>{throw 1/0};function Kn(){O("missing function: _emval_call_method")}Kn.stub=!0;function Gn(){O("missing function: _emval_decref")}Gn.stub=!0;function Vn(){O("missing function: _emval_get_global")}Vn.stub=!0;function Qn(){O("missing function: _emval_get_method_caller")}Qn.stub=!0;function Xn(){O("missing function: _emval_run_destructors")}Xn.stub=!0;var Jc=e=>e%4===0&&(e%100!==0||e%400===0),Zc=[0,31,60,91,121,152,182,213,244,274,305,335],eu=[0,31,59,90,120,151,181,212,243,273,304,334],tu=e=>{var i=Jc(e.getFullYear()),r=i?Zc:eu,a=r[e.getMonth()]+e.getDate()-1;return a};function iu(e,i,r){var a=tt(e,i);r>>>=0;var o=new Date(a*1e3);S[r>>>2>>>0]=o.getSeconds(),S[r+4>>>2>>>0]=o.getMinutes(),S[r+8>>>2>>>0]=o.getHours(),S[r+12>>>2>>>0]=o.getDate(),S[r+16>>>2>>>0]=o.getMonth(),S[r+20>>>2>>>0]=o.getFullYear()-1900,S[r+24>>>2>>>0]=o.getDay();var c=tu(o)|0;S[r+28>>>2>>>0]=c,S[r+36>>>2>>>0]=-(o.getTimezoneOffset()*60);var u=new Date(o.getFullYear(),0,1),l=new Date(o.getFullYear(),6,1).getTimezoneOffset(),f=u.getTimezoneOffset(),d=(l!=f&&o.getTimezoneOffset()==Math.min(f,l))|0;S[r+32>>>2>>>0]=d}function ru(e,i,r,a,o,c,u,l){e>>>=0;var f=tt(o,c);return u>>>=0,l>>>=0,-52}function nu(e,i,r,a,o,c,u){e>>>=0,i>>>=0;var l=tt(c,u)}var su=function(e,i,r,a){e>>>=0,i>>>=0,r>>>=0,a>>>=0;var o=new Date().getFullYear(),c=new Date(o,0,1),u=new Date(o,6,1),l=c.getTimezoneOffset(),f=u.getTimezoneOffset(),d=Math.max(l,f);Z[e>>>2>>>0]=d*60,S[i>>>2>>>0]=+(l!=f);var p=j=>{var R=j>=0?"-":"+",A=Math.abs(j),W=String(Math.floor(A/60)).padStart(2,"0"),re=String(A%60).padStart(2,"0");return`UTC${R}${W}${re}`},v=p(l),b=p(f);f<l?(it(v,r,17),it(b,a,17)):(it(v,a,17),it(b,r,17))},Yn=()=>performance.now(),zn=()=>Date.now(),au=1,ou=e=>e>=0&&e<=3;function cu(e,i,r,a){var o=tt(i,r);if(a>>>=0,!ou(e))return 28;var c;if(e===0)c=zn();else if(au)c=Yn();else return 52;var u=Math.round(c*1e3*1e3);return Xe=[u>>>0,(Se=u,+Math.abs(Se)>=1?Se>0?+Math.floor(Se/4294967296)>>>0:~~+Math.ceil((Se-+(~~Se>>>0))/4294967296)>>>0:0)],S[a>>>2>>>0]=Xe[0],S[a+4>>>2>>>0]=Xe[1],0}function uu(e,i){return e>>>=0,globalThis.DUCKDB_RUNTIME.createDirectory(h,e,i)}function lu(e,i){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkDirectory(h,e,i)}function fu(e,i){return e>>>=0,globalThis.DUCKDB_RUNTIME.listDirectoryEntries(h,e,i)}function _u(e,i){return e>>>=0,globalThis.DUCKDB_RUNTIME.removeDirectory(h,e,i)}function hu(e){return globalThis.DUCKDB_RUNTIME.closeFile(h,e)}function du(e,i){return e>>>=0,globalThis.DUCKDB_RUNTIME.dropFile(h,e,i)}function pu(e,i){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkFile(h,e,i)}function vu(e,i,r,a){return e>>>=0,r>>>=0,globalThis.DUCKDB_RUNTIME.moveFile(h,e,i,r,a)}function yu(e,i){return globalThis.DUCKDB_RUNTIME.openFile(h,e,i)}function gu(e,i,r,a){return i>>>=0,globalThis.DUCKDB_RUNTIME.readFile(h,e,i,r,a)}function wu(e,i){return globalThis.DUCKDB_RUNTIME.truncateFile(h,e,i)}function mu(e,i,r,a){return i>>>=0,globalThis.DUCKDB_RUNTIME.writeFile(h,e,i,r,a)}function bu(e){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(e)}function ju(e,i){return e>>>=0,globalThis.DUCKDB_RUNTIME.glob(h,e,i)}function Tu(e){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(h,e)}function Su(e,i,r,a,o,c){return e>>>=0,r>>>=0,o>>>=0,globalThis.DUCKDB_RUNTIME.callScalarUDF(h,e,i,r,a,o,c)}var Bi=[],ku=(e,i)=>{Bi.length=0;for(var r;r=$[e++>>>0];){var a=r!=105;a&=r!=112,i+=a&&i%8?4:0,Bi.push(r==112?Z[i>>>2>>>0]:r==105?S[i>>>2>>>0]:Ie[i>>>3>>>0]),i+=a?8:4}return Bi},Eu=(e,i,r)=>{var a=ku(i,r);return oc[e](...a)};function Ru(e,i,r){return e>>>=0,i>>>=0,r>>>=0,Eu(e,i,r)}var Jn=()=>4294901760;function Au(){return Jn()}var Cu=(e,i)=>Math.ceil(e/i)*i,Du=e=>{var i=q.buffer,r=(e-i.byteLength+65535)/65536|0;try{return q.grow(r),lt(),1}catch{}};function Pu(e){e>>>=0;var i=$.length,r=Jn();if(e>r)return!1;for(var a=1;a<=4;a*=2){var o=i*(1+.2/a);o=Math.min(o,e+100663296);var c=Math.min(r,Cu(Math.max(e,o),65536)),u=Du(c);if(u)return!0}return!1}var Hi={},Iu=()=>ee||"./this.program",Ot=()=>{if(!Ot.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",i={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:Iu()};for(var r in Hi)Hi[r]===void 0?delete i[r]:i[r]=Hi[r];var a=[];for(var r in i)a.push(`${r}=${i[r]}`);Ot.strings=a}return Ot.strings},Fu=(e,i)=>{for(var r=0;r<e.length;++r)G[i++>>>0]=e.charCodeAt(r);G[i>>>0]=0},Ou=function(e,i){e>>>=0,i>>>=0;var r=0;return Ot().forEach((a,o)=>{var c=i+r;Z[e+o*4>>>2>>>0]=c,Fu(a,c),r+=a.length+1}),0},xu=function(e,i){e>>>=0,i>>>=0;var r=Ot();Z[e>>>2>>>0]=r.length;var a=0;return r.forEach(o=>a+=o.length+1),Z[i>>>2>>>0]=a,0},Mu=0,Lu=()=>lc||Mu>0,Bu=e=>{var i;se=e,Lu()||((i=h.onExit)==null||i.call(h,e),U=!0),L(e,new In(e))},Zn=(e,i)=>{se=e,Bu(e)},Hu=Zn,Uu=e=>52;function Nu(e,i){i>>>=0;var r=0,a=0,o=0;{var c=2;e==0?r=2:(e==1||e==2)&&(r=64),o=1}return G[i>>>0]=c,le[i+2>>>1>>>0]=o,Xe=[r>>>0,(Se=r,+Math.abs(Se)>=1?Se>0?+Math.floor(Se/4294967296)>>>0:~~+Math.ceil((Se-+(~~Se>>>0))/4294967296)>>>0:0)],S[i+8>>>2>>>0]=Xe[0],S[i+12>>>2>>>0]=Xe[1],Xe=[a>>>0,(Se=a,+Math.abs(Se)>=1?Se>0?+Math.floor(Se/4294967296)>>>0:~~+Math.ceil((Se-+(~~Se>>>0))/4294967296)>>>0:0)],S[i+16>>>2>>>0]=Xe[0],S[i+20>>>2>>>0]=Xe[1],0}function Wu(e,i,r,a,o,c){i>>>=0,r>>>=0;var u=tt(a,o);return c>>>=0,52}function qu(e,i,r,a,o,c){i>>>=0,r>>>=0;var u=tt(a,o);return c>>>=0,52}function $u(e,i,r,a){return i>>>=0,r>>>=0,a>>>=0,52}function Ku(e,i,r,a,o){var c=tt(i,r);return o>>>=0,70}var Gu=e=>52,Vu=[null,[],[]],Qu=(e,i)=>{var r=Vu[e];i===0||i===10?((e===1?z:ce)(Wn(r)),r.length=0):r.push(i)};function Xu(e,i,r,a){i>>>=0,r>>>=0,a>>>=0;for(var o=0,c=0;c<r;c++){var u=Z[i>>>2>>>0],l=Z[i+4>>>2>>>0];i+=8;for(var f=0;f<l;f++)Qu(e,$[u+f>>>0]);o+=l}return Z[a>>>2>>>0]=o,0}function Yu(e,i,r,a){e>>>=0,i>>>=0,r>>>=0,a>>>=0;var o=0,c=0,u=0,l=0,f=0,d=0,p;function v(b,j,R,A,W,re){var Y,be,je,qe;return be=b===10?28:16,W=b===10?Bn(W):xi(W),Y=rt(be),qe=Kt(Y,b,W,re),I(!qe),je=rt(32),S[je+4>>>2>>>0]=b,S[je+8>>>2>>>0]=j,S[je+12>>>2>>>0]=R,Z[je+24>>>2>>>0]=A,Z[je+20>>>2>>>0]=Y,b===10?S[je+16>>>2>>>0]=28:S[je+16>>>2>>>0]=16,S[je+28>>>2>>>0]=0,je}if(r&&(u=S[r>>>2>>>0],l=S[r+4>>>2>>>0],f=S[r+8>>>2>>>0],d=S[r+12>>>2>>>0]),f&&!d&&(d=f===2?17:6),!f&&d&&(f=d===17?2:1),d===0&&(d=6),f===0&&(f=1),!e&&!i)return-2;if(u&-1088||r!==0&&S[r>>>2>>>0]&2&&!e)return-1;if(u&32)return-2;if(f!==0&&f!==1&&f!==2)return-7;if(l!==0&&l!==2&&l!==10)return-6;if(i&&(i=fe(i),c=parseInt(i,10),isNaN(c)))return u&1024?-2:-8;if(!e)return l===0&&(l=2),u&1||(l===2?o=_htonl(2130706433):o=[0,0,0,_htonl(1)]),p=v(l,f,d,null,o,c),Z[a>>>2>>>0]=p,0;if(e=fe(e),o=qt(e),o!==null)if(l===0||l===2)l=2;else if(l===10&&u&8)o=[0,0,_htonl(65535),o],l=10;else return-2;else if(o=Mi(e),o!==null)if(l===0||l===10)l=10;else return-2;return o!=null?(p=v(l,f,d,e,o,c),Z[a>>>2>>>0]=p,0):u&4?-2:(e=Fe.lookup_name(e),o=qt(e),l===0?l=2:l===10&&(o=[0,0,_htonl(65535),o]),p=v(l,f,d,null,o,c),Z[a>>>2>>>0]=p,0)}function zu(e,i,r,a,o,c,u){e>>>=0,r>>>=0,o>>>=0;var l=Hn(e,i);if(l.errno)return-6;var f=l.port,d=l.addr,p=!1;if(r&&a){var v;if(u&1||!(v=Fe.lookup_addr(d))){if(u&8)return-2}else d=v;var b=it(d,r,a);b+1>=a&&(p=!0)}if(o&&c){f=""+f;var b=it(f,o,c);b+1>=c&&(p=!0)}return p?-12:0}function Ju(e){return e>>>=0,e}var Zu=()=>{if(E){var e=["crypto"].map(require).pop();return i=>e.randomFillSync(i)}return i=>crypto.getRandomValues(i)},es=e=>{(es=Zu())(e)};function el(e,i){return e>>>=0,i>>>=0,es($.subarray(e>>>0,e+i>>>0)),0}var tl=e=>{if(e instanceof In||e=="unwind")return se;L(1,e)},Gt=[],ts,x=e=>{var i=Gt[e];return i||(e>=Gt.length&&(Gt.length=e+1),Gt[e]=i=ts.get(e)),i},il=e=>{var i=h["_"+e];return i},rl=(e,i)=>{G.set(e,i>>>0)},Vt=e=>_l(e);h.stackAlloc=Vt;var nl=e=>{var i=qn(e)+1,r=Vt(i);return it(e,r,i),r},sl=(e,i,r,a,o)=>{var c={string:R=>{var A=0;return R!=null&&R!==0&&(A=nl(R)),A},array:R=>{var A=Vt(R.length);return rl(R,A),A}};function u(R){return i==="string"?fe(R):i==="boolean"?!!R:R}var l=il(e),f=[],d=0;if(a)for(var p=0;p<a.length;p++){var v=c[r[p]];v?(d===0&&(d=g()),f[p]=v(a[p])):f[p]=a[p]}var b=l(...f);function j(R){return d!==0&&y(d),u(R)}return b=j(b),b},al=e=>ll(),ol={q:fc,Sb:_c,u:hc,a:pc,k:vc,B:yc,ka:gc,Ma:Mn,Hb:wc,s:mc,K:bc,c:dc,fb:jc,kb:Tc,Kg:Sc,mh:kc,aa:Ec,lh:Rc,Zb:Ac,nh:Dc,gh:Pc,eb:Ic,db:Fc,ib:Oc,xa:xc,ih:Mc,hh:Lc,jh:Bc,Ka:Hc,jb:Uc,dh:Nc,gb:Wc,eh:qc,Za:$c,hb:Kc,Ja:Gc,kh:Vc,oh:Qc,_a:Xc,sh:Yc,Lg:zc,Hg:Kn,Fg:Gn,Jg:Vn,Ig:Qn,Gg:Xn,cc:iu,Pc:ru,Qc:nu,hd:su,og:cu,Xg:uu,Yg:lu,Vg:fu,Wg:_u,Wa:hu,$g:du,Tg:pu,Ug:vu,_g:yu,sa:gu,Zg:wu,Xa:mu,ah:bu,Sg:ju,Va:Tu,bh:Su,oa:Ru,Ua:zn,lb:Au,Ca:Yn,th:Pu,Md:Ou,Xd:xu,Y:Hu,la:Uu,mf:Nu,$b:Wu,_b:qu,Na:$u,Cg:Ku,fh:Gu,ya:Xu,Ia:Yu,Ha:zu,P:xf,I:lf,ea:wf,D:$l,Ga:ef,_:nf,Ta:Of,ma:Sl,Pa:$f,ga:of,ba:_f,Qa:Hf,T:hf,pc:rv,jc:uv,Hf:K_,qb:Yv,Ic:Bp,Pd:xd,hc:fv,ic:lv,V:zl,Oa:Tl,ta:Ff,qc:iv,If:$_,p:Dl,E:Xl,ph:kf,rh:jf,S:pf,fa:Kl,wa:Tf,R:Ql,qh:Sf,$a:bf,Z:mf,d:vl,N:yf,G:gf,Ya:Rf,C:tf,pa:Af,ja:Cf,xc:Xp,Da:Ef,na:Df,b:gl,Ba:Wf,xd:Jd,Ue:Ph,g:wl,ab:df,Aa:Kf,za:Gf,j:jl,La:Ll,Qg:Uf,ia:qf,o:ml,bb:cf,v:Il,w:Rl,H:ql,Q:Wl,X:Al,ha:Fl,r:Cl,A:Hl,Og:Vf,U:Zl,x:Jl,tb:Vv,Nd:Ld,wd:Zd,Ge:Kh,ud:tp,yd:zd,Id:Nd,Ud:Dd,vd:ep,vb:Kv,ce:bd,Hd:Wd,zd:Yd,Yd:Rd,He:$h,Vd:Cd,_d:kd,Ld:Bd,Te:Ih,qf:ch,Lf:N_,te:nd,we:td,fd:pp,Ag:Zf,of:lh,Mf:U_,Gf:G_,nf:fh,Ae:zh,zg:e_,td:ip,sd:rp,ke:hd,qg:u_,rf:oh,ze:Jh,re:ad,fe:gd,rd:np,qd:sp,ld:lp,Rc:Pp,Re:Oh,Jd:Ud,Wd:Ad,Vf:P_,pg:l_,kg:d_,Ef:Q_,Uf:I_,sb:Qv,Ib:Fv,Fb:xv,Wc:Ep,Qb:kv,Tb:Tv,Pb:Ev,ng:f_,wf:ih,vf:rh,Ke:Nh,se:sd,pb:zv,tc:Zp,Kb:Pv,vg:n_,ub:Gv,ue:rd,lg:h_,Tf:F_,Wf:D_,Pe:Mh,De:Qh,Jc:Lp,kd:fp,Gb:Ov,Jb:Iv,Nf:H_,$c:bp,hg:y_,Oe:Lh,Mc:Op,yc:Qp,Ne:Bh,Le:Uh,uc:Jp,vc:zp,rc:tv,Rf:x_,bg:T_,ve:id,lc:ov,dd:yp,Df:X_,Je:Wh,xf:th,Ve:Ch,We:Ah,wg:r_,tg:a_,Qf:M_,Eg:Yf,Qe:xh,lf:_h,Ed:Kd,wc:Yp,Ye:Eh,zc:Vp,Gd:qd,Xe:Rh,Bd:Qd,Bc:Kp,Ec:Wp,Tc:Cp,kf:hh,df:wh,Sd:Id,Td:Pd,Fc:Np,$e:Th,xe:ed,hf:ph,Jf:q_,Bf:z_,Xb:wv,Ac:Gp,Yb:gv,cf:mh,Ad:Xd,Cc:$p,yf:eh,Oc:Ip,Db:Lv,le:_d,Xc:kp,zb:Nv,mb:ey,Qd:Od,Eb:Mv,nb:Zv,sg:o_,ad:mp,mc:av,ob:Jv,bd:wp,gc:_v,Gc:Up,Yc:Sp,sc:ev,l:dl,Ng:Qf,Rg:Mf,Sa:Lf,h:yl,F:Nl,Ea:ff,J:sf,ua:If,Ra:Bf,Mg:Xf,W:Ul,M:uf,va:Pf,e:pl,ra:El,cb:af,f:bl,Pg:Nf,i:kl,m:Bl,n:Ml,y:Pl,t:Gl,O:Yl,L:Ol,$:Vl,Fa:rf,ca:vf,qa:xl,fg:w_,jf:dh,pf:uh,Hc:Hp,Nc:Fp,me:fd,zf:Z_,Be:Yh,Ie:qh,sf:ah,Zc:Tp,af:jh,he:vd,Vb:bv,ug:s_,Af:J_,Cd:Vd,Nb:Av,dc:pv,ec:dv,_c:jp,gd:dp,qe:od,Kd:Hd,Sc:Dp,Zd:Ed,be:jd,Cb:Bv,gg:g_,yg:t_,da:Dh,rb:Xv,Pf:L_,tf:sh,uf:nh,Dc:qp,bc:vv,ae:Td,ef:gh,ne:ld,ge:yd,Rd:Fd,ie:pd,Ob:Rv,_f:E_,Vc:Rp,Uc:Ap,Dd:Gd,ag:S_,wb:$v,cg:j_,od:op,xg:i_,Kc:Mp,Yf:A_,Bg:Jf,ig:v_,ed:vp,Kf:W_,pe:cd,oe:ud,Rb:Sv,Ub:jv,id:hp,eg:m_,Mb:Cv,$d:Sd,md:up,pd:ap,bf:bh,Dg:zf,je:dd,Fd:$d,jd:_p,Zf:R_,$f:k_,Bb:Hv,nd:cp,Ab:Uv,rg:c_,jg:p_,Xf:C_,Me:Hh,mg:__,Fe:Gh,Ee:Vh,ye:Zh,yb:Wv,xb:qv,Lb:Dv,de:md,Sf:O_,kc:cv,oc:nv,dg:b_,Od:Md,Wb:mv,Se:Fh,_e:Sh,ee:wd,nc:sv,Of:B_,Ze:kh,Ff:V_,ac:yv,cd:gp,Cf:Y_,Ce:Xh,fc:hv,Lc:xp,gf:vh,ff:yh,z:Ju,ch:el},N=await ac(),cl=h._main=N.wh,wm=h._duckdb_web_fs_glob_add_path=N.yh,mm=h._duckdb_web_clear_response=N.zh,bm=h._duckdb_web_fail_with=N.Ah,jm=h._duckdb_web_reset=N.Bh,Tm=h._duckdb_web_connect=N.Ch,Sm=h._duckdb_web_disconnect=N.Dh,km=h._duckdb_web_flush_files=N.Eh,Em=h._duckdb_web_flush_file=N.Fh,Rm=h._duckdb_web_open=N.Gh,Am=h._duckdb_web_get_global_file_info=N.Hh,Cm=h._duckdb_web_collect_file_stats=N.Ih,Dm=h._duckdb_web_export_file_stats=N.Jh,Pm=h._duckdb_web_fs_drop_file=N.Kh,Im=h._duckdb_web_fs_drop_files=N.Lh,Fm=h._duckdb_web_fs_glob_file_infos=N.Mh,Om=h._duckdb_web_fs_get_file_info_by_id=N.Nh,xm=h._duckdb_web_fs_get_file_info_by_name=N.Oh,Mm=h._duckdb_web_fs_register_file_url=N.Ph,Lm=h._duckdb_web_fs_register_file_buffer=N.Qh,Bm=h._duckdb_web_copy_file_to_buffer=N.Rh,Hm=h._duckdb_web_copy_file_to_path=N.Sh,Um=h._duckdb_web_get_version=N.Th,Nm=h._duckdb_web_get_feature_flags=N.Uh,Wm=h._duckdb_web_tokenize=N.Vh,qm=h._duckdb_web_tokenize_buffer=N.Wh,$m=h._duckdb_web_udf_scalar_create=N.Xh,Km=h._duckdb_web_prepared_create=N.Yh,Gm=h._duckdb_web_prepared_create_buffer=N.Zh,Vm=h._duckdb_web_prepared_close=N._h,Qm=h._duckdb_web_prepared_run=N.$h,Xm=h._duckdb_web_prepared_send=N.ai,Ym=h._duckdb_web_query_run=N.bi,zm=h._duckdb_web_query_run_buffer=N.ci,Jm=h._duckdb_web_pending_query_start=N.di,Zm=h._duckdb_web_pending_query_start_buffer=N.ei,eb=h._duckdb_web_pending_query_poll=N.fi,tb=h._duckdb_web_pending_query_cancel=N.gi,ib=h._duckdb_web_query_fetch_results=N.hi,rb=h._duckdb_web_get_tablenames=N.ii,nb=h._duckdb_web_get_tablenames_buffer=N.ji,sb=h._duckdb_web_insert_arrow_from_ipc_stream=N.ki,ab=h._duckdb_web_insert_csv_from_path=N.li,ob=h._duckdb_web_insert_json_from_path=N.mi,rt=h._malloc=N.qi,cb=h._free=N.ri,ub=h._calloc=N.si,ul=N.ui,ll=N.vi,fl=N.wi,_l=N.xi,hl=N.yi;function dl(e){var i=g();try{x(e)()}catch(r){if(y(i),r!==r+0)throw r;_setThrew(1,0)}}function pl(e,i,r){var a=g();try{x(e)(i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function vl(e,i){var r=g();try{return x(e)(i)}catch(a){if(y(r),a!==a+0)throw a;_setThrew(1,0)}}function yl(e,i){var r=g();try{x(e)(i)}catch(a){if(y(r),a!==a+0)throw a;_setThrew(1,0)}}function gl(e,i,r){var a=g();try{return x(e)(i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function wl(e,i,r,a){var o=g();try{return x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function ml(e,i,r,a,o,c){var u=g();try{return x(e)(i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function bl(e,i,r,a){var o=g();try{x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function jl(e,i,r,a,o){var c=g();try{return x(e)(i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function Tl(e,i,r,a){var o=g();try{return x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function Sl(e,i,r,a){var o=g();try{return x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function kl(e,i,r,a,o){var c=g();try{x(e)(i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function El(e,i,r,a){var o=g();try{x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function Rl(e,i,r,a,o,c,u,l){var f=g();try{return x(e)(i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Al(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return x(e)(i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Cl(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{return x(e)(i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Dl(e){var i=g();try{return x(e)()}catch(r){if(y(i),r!==r+0)throw r;_setThrew(1,0)}}function Pl(e,i,r,a,o,c,u,l){var f=g();try{x(e)(i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Il(e,i,r,a,o,c,u){var l=g();try{return x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Fl(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return x(e)(i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Ol(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{x(e)(i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function xl(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A){var W=g();try{x(e)(i,r,a,o,c,u,l,f,d,p,v,b,j,R,A)}catch(re){if(y(W),re!==re+0)throw re;_setThrew(1,0)}}function Ml(e,i,r,a,o,c,u){var l=g();try{x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Ll(e,i,r,a,o,c){var u=g();try{return x(e)(i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Bl(e,i,r,a,o,c){var u=g();try{x(e)(i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Hl(e,i,r,a,o,c,u,l,f,d,p,v,b,j){var R=g();try{return x(e)(i,r,a,o,c,u,l,f,d,p,v,b,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function Ul(e,i,r){var a=g();try{x(e)(i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function Nl(e,i,r){var a=g();try{x(e)(i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function Wl(e,i,r,a,o,c,u,l,f,d){var p=g();try{return x(e)(i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function ql(e,i,r,a,o,c,u,l,f){var d=g();try{return x(e)(i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function $l(e,i){var r=g();try{return x(e)(i)}catch(a){if(y(r),a!==a+0)throw a;_setThrew(1,0)}}function Kl(e,i,r,a,o){var c=g();try{return x(e)(i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function Gl(e,i,r,a,o,c,u,l,f){var d=g();try{x(e)(i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Vl(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{x(e)(i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Ql(e,i){var r=g();try{return x(e)(i)}catch(a){if(y(r),a!==a+0)throw a;_setThrew(1,0)}}function Xl(e,i){var r=g();try{return x(e)(i)}catch(a){if(y(r),a!==a+0)throw a;_setThrew(1,0)}}function Yl(e,i,r,a,o,c,u,l,f,d){var p=g();try{x(e)(i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function zl(e,i){var r=g();try{return x(e)(i)}catch(a){if(y(r),a!==a+0)throw a;_setThrew(1,0)}}function Jl(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W,re){var Y=g();try{return x(e)(i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W,re)}catch(be){if(y(Y),be!==be+0)throw be;_setThrew(1,0)}}function Zl(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W){var re=g();try{return x(e)(i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W)}catch(Y){if(y(re),Y!==Y+0)throw Y;_setThrew(1,0)}}function ef(e,i,r,a){var o=g();try{return x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function tf(e,i,r,a,o){var c=g();try{return x(e)(i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function rf(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{x(e)(i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function nf(e,i,r){var a=g();try{return x(e)(i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function sf(e,i,r,a){var o=g();try{x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function af(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{x(e)(i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function of(e,i,r,a,o){var c=g();try{return x(e)(i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function cf(e,i,r,a,o,c,u){var l=g();try{return x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function uf(e,i,r,a){var o=g();try{x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function lf(e,i){var r=g();try{return x(e)(i)}catch(a){if(y(r),a!==a+0)throw a;_setThrew(1,0)}}function ff(e,i,r,a,o,c,u){var l=g();try{x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function _f(e,i,r,a,o,c){var u=g();try{return x(e)(i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function hf(e,i,r,a,o,c,u){var l=g();try{return x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function df(e,i,r,a,o){var c=g();try{return x(e)(i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function pf(e,i,r,a){var o=g();try{return x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function vf(e,i,r,a,o,c,u,l,f,d,p,v,b,j){var R=g();try{x(e)(i,r,a,o,c,u,l,f,d,p,v,b,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function yf(e,i,r){var a=g();try{return x(e)(i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function gf(e,i,r,a){var o=g();try{return x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function wf(e,i){var r=g();try{return x(e)(i)}catch(a){if(y(r),a!==a+0)throw a;_setThrew(1,0)}}function mf(e,i,r,a){var o=g();try{return x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function bf(e,i,r){var a=g();try{return x(e)(i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function jf(e,i,r){var a=g();try{return x(e)(i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function Tf(e,i,r,a,o,c){var u=g();try{return x(e)(i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Sf(e,i,r){var a=g();try{return x(e)(i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function kf(e,i,r){var a=g();try{return x(e)(i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function Ef(e,i,r){var a=g();try{return x(e)(i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function Rf(e,i,r,a){var o=g();try{return x(e)(i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function Af(e,i,r,a,o,c){var u=g();try{return x(e)(i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Cf(e,i,r,a,o,c,u){var l=g();try{return x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Df(e,i,r,a,o){var c=g();try{return x(e)(i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function Pf(e,i,r,a,o){var c=g();try{x(e)(i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function If(e,i,r,a,o){var c=g();try{x(e)(i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function Ff(e,i,r,a,o){var c=g();try{return x(e)(i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function Of(e,i,r,a,o,c,u){var l=g();try{return x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function xf(e){var i=g();try{return x(e)()}catch(r){if(y(i),r!==r+0)throw r;_setThrew(1,0)}}function Mf(e,i,r,a,o,c,u){var l=g();try{x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Lf(e,i,r,a,o,c,u,l){var f=g();try{x(e)(i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Bf(e,i,r,a,o,c,u){var l=g();try{x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Hf(e,i,r,a,o,c){var u=g();try{return x(e)(i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Uf(e,i,r,a,o,c,u){var l=g();try{return x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Nf(e,i,r,a,o,c){var u=g();try{x(e)(i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Wf(e,i,r,a,o,c,u){var l=g();try{return x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function qf(e,i,r,a,o,c,u,l){var f=g();try{return x(e)(i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function $f(e,i,r,a,o,c,u,l,f,d){var p=g();try{return x(e)(i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Kf(e,i,r,a,o,c,u,l,f){var d=g();try{return x(e)(i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Gf(e,i,r,a,o,c,u){var l=g();try{return x(e)(i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Vf(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A){var W=g();try{return x(e)(i,r,a,o,c,u,l,f,d,p,v,b,j,R,A)}catch(re){if(y(W),re!==re+0)throw re;_setThrew(1,0)}}function Qf(e,i,r,a,o,c){var u=g();try{x(e)(i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Xf(e,i,r,a,o,c,u,l){var f=g();try{x(e)(i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Yf(e,i,r,a,o){var c=g();try{return dynCall_jiiii(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function zf(e,i,r,a,o,c,u){var l=g();try{dynCall_viijj(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Jf(e,i,r,a,o,c,u){var l=g();try{dynCall_viijii(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Zf(e,i,r,a,o,c,u){var l=g();try{return dynCall_iiiiij(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function e_(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iiiiijj(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function t_(e,i,r,a,o,c){var u=g();try{dynCall_viiij(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function i_(e,i,r,a,o){var c=g();try{dynCall_viij(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function r_(e,i){var r=g();try{return dynCall_ji(e,i)}catch(a){if(y(r),a!==a+0)throw a;_setThrew(1,0)}}function n_(e,i,r,a){var o=g();try{return dynCall_iij(e,i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function s_(e,i,r,a,o,c,u){var l=g();try{dynCall_viiiij(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function a_(e,i,r){var a=g();try{return dynCall_jii(e,i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function o_(e,i,r){var a=g();try{return dynCall_jj(e,i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function c_(e,i,r,a){var o=g();try{dynCall_vij(e,i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function u_(e,i,r,a,o,c){var u=g();try{return dynCall_iiiij(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function l_(e,i,r,a,o){var c=g();try{return dynCall_iiij(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function f_(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_iiijij(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function __(e,i,r,a,o,c,u,l){var f=g();try{dynCall_vijiiii(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function h_(e,i,r,a,o){var c=g();try{return dynCall_iiji(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function d_(e,i,r,a,o,c){var u=g();try{return dynCall_iiiji(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function p_(e,i,r,a,o){var c=g();try{dynCall_viji(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function v_(e,i,r,a,o,c,u,l){var f=g();try{dynCall_viijiii(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function y_(e,i,r,a,o,c){var u=g();try{return dynCall_iijj(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function g_(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{dynCall_viiiijjjii(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function w_(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viiiiiiij(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function m_(e,i,r,a,o,c,u,l){var f=g();try{dynCall_viijij(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function b_(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_vijijj(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function j_(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viiijjjj(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function T_(e,i,r,a){var o=g();try{return dynCall_iji(e,i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function S_(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viiijjj(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function k_(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viijjji(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function E_(e,i,r,a,o,c,u,l){var f=g();try{dynCall_viiijj(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function R_(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viijjj(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function A_(e,i,r,a,o,c){var u=g();try{dynCall_viiji(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function C_(e,i,r,a,o,c){var u=g();try{dynCall_vijii(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function D_(e,i,r,a,o,c,u){var l=g();try{return dynCall_iijiii(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function P_(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iiiijjj(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function I_(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_iiijiii(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function F_(e,i,r,a,o,c){var u=g();try{return dynCall_iijii(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function O_(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_vijiiji(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function x_(e,i,r){var a=g();try{return dynCall_ij(e,i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function M_(e,i,r,a){var o=g();try{return dynCall_jiii(e,i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function L_(e,i,r,a,o,c,u){var l=g();try{dynCall_viiiji(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function B_(e,i,r,a,o,c,u,l){var f=g();try{dynCall_vijjj(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function H_(e,i,r,a,o,c,u){var l=g();try{return dynCall_iijij(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function U_(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iiiiijii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function N_(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iiiiiijii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function W_(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viijiiiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function q_(e,i,r,a,o,c){var u=g();try{return dynCall_jiiji(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function $_(e,i,r,a,o,c){var u=g();try{return dynCall_fiiji(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function K_(e,i,r,a,o,c){var u=g();try{return dynCall_diiji(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function G_(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iiiiijiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function V_(e,i,r){var a=g();try{dynCall_vj(e,i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function Q_(e,i,r,a,o,c,u){var l=g();try{return dynCall_iiijii(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function X_(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_ijjiii(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Y_(e,i,r,a,o,c,u){var l=g();try{dynCall_vjiiii(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function z_(e,i,r,a,o,c,u){var l=g();try{return dynCall_jiijii(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function J_(e,i,r,a,o,c,u,l){var f=g();try{dynCall_viiiiji(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Z_(e,i,r,a,o,c,u,l){var f=g();try{dynCall_viiiiij(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function eh(e,i,r,a){var o=g();try{return dynCall_jij(e,i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function th(e){var i=g();try{return dynCall_j(e)}catch(r){if(y(i),r!==r+0)throw r;_setThrew(1,0)}}function ih(e,i,r,a,o,c,u){var l=g();try{return dynCall_iiijj(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function rh(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_iiijji(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function nh(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viiijiii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function sh(e,i,r,a,o,c,u,l){var f=g();try{dynCall_viiijii(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function ah(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_viiiiijiii(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function oh(e,i,r,a,o,c,u){var l=g();try{return dynCall_iiiiji(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function ch(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iiiiiiji(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function uh(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viiiiiij(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function lh(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_iiiiiji(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function fh(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iiiiijiiii(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function _h(e,i,r,a,o,c,u){var l=g();try{return dynCall_jiiiiii(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function hh(e,i,r,a,o,c){var u=g();try{return dynCall_jiiij(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function dh(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{dynCall_viiiiiiijij(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function ph(e,i,r,a,o){var c=g();try{return dynCall_jiij(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function vh(e,i,r,a,o,c,u){var l=g();try{dynCall_vjjii(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function yh(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_vjjijij(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function gh(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{dynCall_viiijiijij(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function wh(e,i,r,a,o,c,u){var l=g();try{return dynCall_jiiiji(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function mh(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_jiijiij(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function bh(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viijijj(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function jh(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_viiiiijij(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Th(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_jiiijij(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Sh(e,i,r,a,o,c,u){var l=g();try{dynCall_vijji(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function kh(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_vijjji(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Eh(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_jiiiiiji(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Rh(e,i,r,a,o,c,u){var l=g();try{return dynCall_jiiiij(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Ah(e,i){var r=g();try{return dynCall_jf(e,i)}catch(a){if(y(r),a!==a+0)throw a;_setThrew(1,0)}}function Ch(e,i){var r=g();try{return dynCall_jd(e,i)}catch(a){if(y(r),a!==a+0)throw a;_setThrew(1,0)}}function Dh(e,i,r,a,o,c,u){var l=g();try{dynCall_viiijd(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Ph(e,i,r,a,o,c){var u=g();try{return dynCall_iiifj(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Ih(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_iiiiiij(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Fh(e,i,r,a,o,c){var u=g();try{dynCall_vijj(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Oh(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_iiiijj(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function xh(e,i,r,a,o,c){var u=g();try{return dynCall_jiiiii(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Mh(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_iijiiii(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Lh(e,i,r,a,o,c,u){var l=g();try{return dynCall_iijji(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Bh(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iijjiiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Hh(e,i,r,a,o,c,u){var l=g();try{dynCall_vijiii(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Uh(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iijjiiiii(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Nh(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iiijjiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Wh(e,i,r,a,o,c,u){var l=g();try{return dynCall_ijjj(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function qh(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viiiiijii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function $h(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W,re,Y,be,je,qe){var Ni=g();try{return dynCall_iiiiiiiijjjjjjii(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W,re,Y,be,je,qe)}catch(_t){if(y(Ni),_t!==_t+0)throw _t;_setThrew(1,0)}}function Kh(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return dynCall_iiiiiiiiiij(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Gh(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_vijiiiii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Vh(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_vijiiiiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Qh(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iijiiiii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Xh(e,i,r,a,o,c,u,l){var f=g();try{dynCall_vjiiij(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Yh(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viiiiiji(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function zh(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return dynCall_iiiiijiiiii(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Jh(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_iiiijii(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Zh(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_vijiiiiiii(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function ed(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_jiiijj(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function td(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iiiiiijji(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function id(e,i,r,a,o){var c=g();try{return dynCall_ijii(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function rd(e,i,r,a,o){var c=g();try{return dynCall_iijf(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function nd(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W){var re=g();try{return dynCall_iiiiiijiijjji(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W)}catch(Y){if(y(re),Y!==Y+0)throw Y;_setThrew(1,0)}}function sd(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{return dynCall_iiijjijiii(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function ad(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iiiijiii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function od(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viiiijij(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function cd(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_viijiiiiii(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function ud(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viijiiij(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function ld(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viiijiijj(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function fd(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{dynCall_viiiiiijjj(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function _d(e,i,r,a,o,c,u){var l=g();try{return dynCall_jijij(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function hd(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iiiiijjj(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function dd(e,i,r,a,o,c,u,l){var f=g();try{dynCall_viijji(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function pd(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_viiijijj(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function vd(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{dynCall_viiiiijjij(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function yd(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viiijij(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function gd(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iiiijiiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function wd(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_vijjiii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function md(e,i,r,a,o,c,u,l){var f=g();try{dynCall_vijiij(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function bd(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iiiiiiiij(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function jd(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viiiijjij(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Td(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{dynCall_viiijiiijii(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Sd(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viijijiiii(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function kd(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iiiiiiiji(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Ed(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_viiiijjii(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Rd(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return dynCall_iiiiiiiijj(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Ad(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iiiijjiii(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Cd(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iiiiiiij(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Dd(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{return dynCall_iiiiiiiiijii(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Pd(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_jiiijiii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Id(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_jiiijii(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Fd(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viiijiji(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Od(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_jijjj(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function xd(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_dijjj(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Md(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_vijijjd(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Ld(e,i,r,a,o,c,u,l,f,d,p,v,b,j){var R=g();try{return dynCall_iiiiiiiiiiiji(e,i,r,a,o,c,u,l,f,d,p,v,b,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function Bd(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return dynCall_iiiiiiijji(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Hd(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viiiijj(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Ud(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iiiijji(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Nd(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return dynCall_iiiiiiiiiji(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Wd(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iiiiiiiiji(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function qd(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_jiiiiijji(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function $d(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viijjii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Kd(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_jiiiiiii(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Gd(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_viiijjiii(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Vd(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viiiijii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Qd(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_jiiiiji(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function Xd(e,i,r,a,o,c,u){var l=g();try{return dynCall_jiijj(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Yd(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{return dynCall_iiiiiiiijiii(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function zd(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iiiiiiiiij(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Jd(e,i,r,a,o,c){var u=g();try{return dynCall_iiidj(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Zd(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A){var W=g();try{return dynCall_iiiiiiiiiiijiii(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A)}catch(re){if(y(W),re!==re+0)throw re;_setThrew(1,0)}}function ep(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W,re,Y){var be=g();try{return dynCall_iiiiiiiiijiiiiiiii(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W,re,Y)}catch(je){if(y(be),je!==je+0)throw je;_setThrew(1,0)}}function tp(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{return dynCall_iiiiiiiiiiji(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function ip(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iiiiijjii(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function rp(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return dynCall_iiiiijjij(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function np(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return dynCall_iiiijiiiij(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function sp(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iiiijiiij(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function ap(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R){var A=g();try{dynCall_viijijijiji(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R)}catch(W){if(y(A),W!==W+0)throw W;_setThrew(1,0)}}function op(e,i,r,a,o,c,u,l,f,d,p,v,b,j){var R=g();try{dynCall_viiijjjjii(e,i,r,a,o,c,u,l,f,d,p,v,b,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function cp(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viijjjji(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function up(e,i,r,a,o,c,u,l,f,d,p,v,b,j){var R=g();try{dynCall_viijijijij(e,i,r,a,o,c,u,l,f,d,p,v,b,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function lp(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R){var A=g();try{return dynCall_iiiijiijjiii(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R)}catch(W){if(y(A),W!==W+0)throw W;_setThrew(1,0)}}function fp(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return dynCall_iijiiiiiij(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function _p(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viijjiiij(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function hp(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viijiijji(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function dp(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R){var A=g();try{dynCall_viiiijiijjii(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R)}catch(W){if(y(A),W!==W+0)throw W;_setThrew(1,0)}}function pp(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W,re,Y,be){var je=g();try{return dynCall_iiiiiijjiiiiiiiji(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W,re,Y,be)}catch(qe){if(y(je),qe!==qe+0)throw qe;_setThrew(1,0)}}function vp(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viijiiii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function yp(e,i,r,a,o,c){var u=g();try{return dynCall_ijji(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function gp(e,i,r,a,o){var c=g();try{dynCall_vjii(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function wp(e,i,r,a,o){var c=g();try{return dynCall_jjj(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function mp(e,i,r,a){var o=g();try{return dynCall_jji(e,i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function bp(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_iijiji(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function jp(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R){var A=g();try{dynCall_viiiijiiiiiiii(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R)}catch(W){if(y(A),W!==W+0)throw W;_setThrew(1,0)}}function Tp(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viiiiijiiii(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Sp(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_jjjij(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function kp(e,i,r,a,o,c){var u=g();try{return dynCall_jijj(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Ep(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iiijiiiji(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Rp(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viiijji(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Ap(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viiijjii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Cp(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_jiiiijji(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Dp(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viiiijji(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Pp(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iiiijij(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Ip(e,i,r,a,o){var c=g();try{return dynCall_jiji(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function Fp(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viiiiiijij(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Op(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_iijjii(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function xp(e,i,r,a,o){var c=g();try{dynCall_vjj(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function Mp(e,i,r,a,o,c){var u=g();try{dynCall_viijd(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function Lp(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iijiiiiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Bp(e,i,r,a){var o=g();try{return dynCall_dij(e,i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function Hp(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viiiiiiji(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Up(e,i,r,a,o,c,u){var l=g();try{return dynCall_jjjii(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Np(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{return dynCall_jiiijiijiii(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Wp(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_jiiiijiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function qp(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viiijiiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function $p(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_jiijjiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Kp(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_jiiiijii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Gp(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_jiijiiii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Vp(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return dynCall_jiiiiijiiii(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Qp(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iijjiii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Xp(e,i,r,a,o){var c=g();try{return dynCall_iidj(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function Yp(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_jiiiiiiii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function zp(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iijjjii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Jp(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iijjji(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Zp(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iiijjj(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function ev(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_jjjji(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function tv(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iijjjj(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function iv(e,i,r,a,o,c,u){var l=g();try{return dynCall_fiiiij(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function rv(e,i,r,a,o,c,u){var l=g();try{return dynCall_diiiij(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function nv(e,i,r,a,o,c,u,l){var f=g();try{dynCall_vijiji(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function sv(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_vijjij(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function av(e,i,r,a,o,c){var u=g();try{return dynCall_jjij(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function ov(e,i,r,a,o,c){var u=g();try{return dynCall_ijij(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function cv(e,i,r,a,o,c,u){var l=g();try{dynCall_vijij(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function uv(e,i,r,a,o){var c=g();try{return dynCall_diij(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function lv(e,i,r,a,o,c){var u=g();try{return dynCall_djij(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function fv(e,i,r){var a=g();try{return dynCall_dj(e,i,r)}catch(o){if(y(a),o!==o+0)throw o;_setThrew(1,0)}}function _v(e,i,r,a,o,c){var u=g();try{return dynCall_jjjd(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function hv(e,i,r,a,o,c){var u=g();try{dynCall_vjij(e,i,r,a,o,c)}catch(l){if(y(u),l!==l+0)throw l;_setThrew(1,0)}}function dv(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viiiijiiiii(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function pv(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_viiiijiiii(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function vv(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viiijiiiji(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function yv(e,i,r,a){var o=g();try{dynCall_vji(e,i,r,a)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function gv(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_jiijiiiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function wv(e,i,r,a,o,c,u,l){var f=g();try{return dynCall_jiijiii(e,i,r,a,o,c,u,l)}catch(d){if(y(f),d!==d+0)throw d;_setThrew(1,0)}}function mv(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_vijijjji(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function bv(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{dynCall_viiiiijjji(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function jv(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_viijiijj(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Tv(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_iiijiij(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Sv(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viijiij(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function kv(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return dynCall_iiijiiijj(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Ev(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iiijiijj(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Rv(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{dynCall_viiijijjj(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Av(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_viiiijiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Cv(e,i,r,a,o,c,u,l,f){var d=g();try{dynCall_viijiji(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Dv(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_vijiiiiji(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Pv(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iiijjji(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Iv(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iijiijj(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Fv(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{return dynCall_iiijiiiijj(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Ov(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{return dynCall_iijiiijj(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function xv(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iiijiiij(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Mv(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_jijjjj(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Lv(e,i,r,a,o,c,u){var l=g();try{return dynCall_jijiii(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Bv(e,i,r,a,o,c,u,l,f,d,p){var v=g();try{dynCall_viiiijjj(e,i,r,a,o,c,u,l,f,d,p)}catch(b){if(y(v),b!==b+0)throw b;_setThrew(1,0)}}function Hv(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viijjjiii(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Uv(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{dynCall_viijjjjii(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Nv(e,i,r,a,o,c,u){var l=g();try{return dynCall_jijji(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Wv(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_vijiiiiiiii(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function qv(e,i,r,a,o,c,u,l,f,d){var p=g();try{dynCall_vijiiiij(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function $v(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{dynCall_viiijjjiii(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Kv(e,i,r,a,o,c,u,l,f,d,p,v,b,j){var R=g();try{return dynCall_iiiiiiiiijji(e,i,r,a,o,c,u,l,f,d,p,v,b,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function Gv(e,i,r,a,o){var c=g();try{return dynCall_iijd(e,i,r,a,o)}catch(u){if(y(c),u!==u+0)throw u;_setThrew(1,0)}}function Vv(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W,re,Y,be,je,qe){var Ni=g();try{return dynCall_iiiiiiiiiiiijjidjii(e,i,r,a,o,c,u,l,f,d,p,v,b,j,R,A,W,re,Y,be,je,qe)}catch(_t){if(y(Ni),_t!==_t+0)throw _t;_setThrew(1,0)}}function Qv(e,i,r,a,o,c,u,l,f,d){var p=g();try{return dynCall_iiijiiiii(e,i,r,a,o,c,u,l,f,d)}catch(v){if(y(p),v!==v+0)throw v;_setThrew(1,0)}}function Xv(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{dynCall_viiijdjji(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Yv(e,i,r,a,o,c,u){var l=g();try{return dynCall_diijj(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function zv(e,i,r,a,o,c,u,l,f,d,p,v){var b=g();try{return dynCall_iiijjijj(e,i,r,a,o,c,u,l,f,d,p,v)}catch(j){if(y(b),j!==j+0)throw j;_setThrew(1,0)}}function Jv(e,i,r,a,o,c,u){var l=g();try{return dynCall_jjiji(e,i,r,a,o,c,u)}catch(f){if(y(l),f!==f+0)throw f;_setThrew(1,0)}}function Zv(e,i,r,a,o,c,u,l,f,d,p,v,b){var j=g();try{return dynCall_jijjjjjd(e,i,r,a,o,c,u,l,f,d,p,v,b)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function ey(e,i,r,a,o,c,u,l,f){var d=g();try{return dynCall_jijjiii(e,i,r,a,o,c,u,l,f)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function ty(e){e=Object.assign({},e);var i=o=>c=>o(c)>>>0,r=o=>(c,u)=>o(c,u)>>>0,a=o=>()=>o()>>>0;return e.qi=i(e.qi),e.si=r(e.si),e.xi=i(e.xi),e.yi=a(e.yi),e.Ci=i(e.Ci),e}h.stackSave=g,h.stackRestore=y,h.stackAlloc=Vt,h.getTempRet0=al,h.setTempRet0=Ft,h.ccall=sl;function iy(){var e=cl,i=0,r=0;try{var a=e(i,r);return Zn(a,!0),a}catch(o){return tl(o)}}function Ui(){if(Le>0){ft=Ui;return}if(Fi(),Le>0){ft=Ui;return}function e(){var r;if(h.calledRun=!0,!U){mt(),w(h),(r=h.onRuntimeInitialized)==null||r.call(h);var i=h.noInitialRun;i||iy(),ie()}}h.setStatus?(h.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>h.setStatus(""),1),e()},1)):e()}if(h.preInit)for(typeof h.preInit=="function"&&(h.preInit=[h.preInit]);h.preInit.length>0;)h.preInit.pop()();return Ui(),_=T,_}})();typeof us=="object"&&typeof ii=="object"?(ii.exports=Gi,ii.exports.default=Gi):typeof define=="function"&&define.amd&&define([],()=>Gi)});var hs=B(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.splitWhen=kt.flatten=void 0;function hy(n){return n.reduce((t,s)=>[].concat(t,s),[])}kt.flatten=hy;function dy(n,t){let s=[[]],_=0;for(let h of n)t(h)?(_++,s[_]=[]):s[_].push(h);return s}kt.splitWhen=dy});var ds=B(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.isEnoentCodeError=void 0;function py(n){return n.code==="ENOENT"}si.isEnoentCodeError=py});var ps=B(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.createDirentFromStats=void 0;var Qi=class{constructor(t,s){this.name=t,this.isBlockDevice=s.isBlockDevice.bind(s),this.isCharacterDevice=s.isCharacterDevice.bind(s),this.isDirectory=s.isDirectory.bind(s),this.isFIFO=s.isFIFO.bind(s),this.isFile=s.isFile.bind(s),this.isSocket=s.isSocket.bind(s),this.isSymbolicLink=s.isSymbolicLink.bind(s)}};function vy(n,t){return new Qi(n,t)}ai.createDirentFromStats=vy});var ws=B(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.convertPosixPathToPattern=Te.convertWindowsPathToPattern=Te.convertPathToPattern=Te.escapePosixPath=Te.escapeWindowsPath=Te.escape=Te.removeLeadingDotSegment=Te.makeAbsolute=Te.unixify=void 0;var yy=require("os"),gy=require("path"),vs=yy.platform()==="win32",wy=2,my=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,by=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,jy=/^\\\\([.?])/,Ty=/\\(?![!()+@[\]{}])/g;function Sy(n){return n.replace(/\\/g,"/")}Te.unixify=Sy;function ky(n,t){return gy.resolve(n,t)}Te.makeAbsolute=ky;function Ey(n){if(n.charAt(0)==="."){let t=n.charAt(1);if(t==="/"||t==="\\")return n.slice(wy)}return n}Te.removeLeadingDotSegment=Ey;Te.escape=vs?Xi:Yi;function Xi(n){return n.replace(by,"\\$2")}Te.escapeWindowsPath=Xi;function Yi(n){return n.replace(my,"\\$2")}Te.escapePosixPath=Yi;Te.convertPathToPattern=vs?ys:gs;function ys(n){return Xi(n).replace(jy,"//$1").replace(Ty,"/")}Te.convertWindowsPathToPattern=ys;function gs(n){return Yi(n)}Te.convertPosixPathToPattern=gs});var bs=B((Fb,ms)=>{ms.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var s;s=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(s[2])return!0;t=t.slice(s.index+s[0].length)}return!1}});var Ss=B((Ob,Ts)=>{var Ry=bs(),js={"{":"}","(":")","[":"]"},Ay=function(n){if(n[0]==="!")return!0;for(var t=0,s=-2,_=-2,h=-2,w=-2,m=-2;t<n.length;){if(n[t]==="*"||n[t+1]==="?"&&/[\].+)]/.test(n[t])||_!==-1&&n[t]==="["&&n[t+1]!=="]"&&(_<t&&(_=n.indexOf("]",t)),_>t&&(m===-1||m>_||(m=n.indexOf("\\",t),m===-1||m>_)))||h!==-1&&n[t]==="{"&&n[t+1]!=="}"&&(h=n.indexOf("}",t),h>t&&(m=n.indexOf("\\",t),m===-1||m>h))||w!==-1&&n[t]==="("&&n[t+1]==="?"&&/[:!=]/.test(n[t+2])&&n[t+3]!==")"&&(w=n.indexOf(")",t),w>t&&(m=n.indexOf("\\",t),m===-1||m>w))||s!==-1&&n[t]==="("&&n[t+1]!=="|"&&(s<t&&(s=n.indexOf("|",t)),s!==-1&&n[s+1]!==")"&&(w=n.indexOf(")",s),w>s&&(m=n.indexOf("\\",s),m===-1||m>w))))return!0;if(n[t]==="\\"){var T=n[t+1];t+=2;var k=js[T];if(k){var D=n.indexOf(k,t);D!==-1&&(t=D+1)}if(n[t]==="!")return!0}else t++}return!1},Cy=function(n){if(n[0]==="!")return!0;for(var t=0;t<n.length;){if(/[*?{}()[\]]/.test(n[t]))return!0;if(n[t]==="\\"){var s=n[t+1];t+=2;var _=js[s];if(_){var h=n.indexOf(_,t);h!==-1&&(t=h+1)}if(n[t]==="!")return!0}else t++}return!1};Ts.exports=function(t,s){if(typeof t!="string"||t==="")return!1;if(Ry(t))return!0;var _=Ay;return s&&s.strict===!1&&(_=Cy),_(t)}});var Es=B((xb,ks)=>{"use strict";var Dy=Ss(),Py=require("path").posix.dirname,Iy=require("os").platform()==="win32",zi="/",Fy=/\\/g,Oy=/[\{\[].*[\}\]]$/,xy=/(^|[^\\])([\{\[]|\([^\)]+$)/,My=/\\([\!\*\?\|\[\]\(\)\{\}])/g;ks.exports=function(t,s){var _=Object.assign({flipBackslashes:!0},s);_.flipBackslashes&&Iy&&t.indexOf(zi)<0&&(t=t.replace(Fy,zi)),Oy.test(t)&&(t+=zi),t+="a";do t=Py(t);while(Dy(t)||xy.test(t));return t.replace(My,"$1")}});var oi=B(Be=>{"use strict";Be.isInteger=n=>typeof n=="number"?Number.isInteger(n):typeof n=="string"&&n.trim()!==""?Number.isInteger(Number(n)):!1;Be.find=(n,t)=>n.nodes.find(s=>s.type===t);Be.exceedsLimit=(n,t,s=1,_)=>_===!1||!Be.isInteger(n)||!Be.isInteger(t)?!1:(Number(t)-Number(n))/Number(s)>=_;Be.escapeNode=(n,t=0,s)=>{let _=n.nodes[t];_&&(s&&_.type===s||_.type==="open"||_.type==="close")&&_.escaped!==!0&&(_.value="\\"+_.value,_.escaped=!0)};Be.encloseBrace=n=>n.type!=="brace"||n.commas>>0+n.ranges>>0?!1:(n.invalid=!0,!0);Be.isInvalidBrace=n=>n.type!=="brace"?!1:n.invalid===!0||n.dollar?!0:!(n.commas>>0+n.ranges>>0)||n.open!==!0||n.close!==!0?(n.invalid=!0,!0):!1;Be.isOpenOrClose=n=>n.type==="open"||n.type==="close"?!0:n.open===!0||n.close===!0;Be.reduce=n=>n.reduce((t,s)=>(s.type==="text"&&t.push(s.value),s.type==="range"&&(s.type="text"),t),[]);Be.flatten=(...n)=>{let t=[],s=_=>{for(let h=0;h<_.length;h++){let w=_[h];Array.isArray(w)?s(w,t):w!==void 0&&t.push(w)}return t};return s(n),t}});var ci=B((Lb,As)=>{"use strict";var Rs=oi();As.exports=(n,t={})=>{let s=(_,h={})=>{let w=t.escapeInvalid&&Rs.isInvalidBrace(h),m=_.invalid===!0&&t.escapeInvalid===!0,T="";if(_.value)return(w||m)&&Rs.isOpenOrClose(_)?"\\"+_.value:_.value;if(_.value)return _.value;if(_.nodes)for(let k of _.nodes)T+=s(k);return T};return s(n)}});var Ds=B((Bb,Cs)=>{"use strict";Cs.exports=function(n){return typeof n=="number"?n-n===0:typeof n=="string"&&n.trim()!==""?Number.isFinite?Number.isFinite(+n):isFinite(+n):!1}});var Hs=B((Hb,Bs)=>{"use strict";var Ps=Ds(),vt=(n,t,s)=>{if(Ps(n)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||n===t)return String(n);if(Ps(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let _={relaxZeros:!0,...s};typeof _.strictZeros=="boolean"&&(_.relaxZeros=_.strictZeros===!1);let h=String(_.relaxZeros),w=String(_.shorthand),m=String(_.capture),T=String(_.wrap),k=n+":"+t+"="+h+w+m+T;if(vt.cache.hasOwnProperty(k))return vt.cache[k].result;let D=Math.min(n,t),E=Math.max(n,t);if(Math.abs(D-E)===1){let M=n+"|"+t;return _.capture?`(${M})`:_.wrap===!1?M:`(?:${M})`}let F=Ls(n)||Ls(t),P={min:n,max:t,a:D,b:E},ee=[],L=[];if(F&&(P.isPadded=F,P.maxLen=String(P.max).length),D<0){let M=E<0?Math.abs(E):1;L=Is(M,Math.abs(D),P,_),D=P.a=0}return E>=0&&(ee=Is(D,E,P,_)),P.negatives=L,P.positives=ee,P.result=Ly(L,ee,_),_.capture===!0?P.result=`(${P.result})`:_.wrap!==!1&&ee.length+L.length>1&&(P.result=`(?:${P.result})`),vt.cache[k]=P,P.result};function Ly(n,t,s){let _=Ji(n,t,"-",!1,s)||[],h=Ji(t,n,"",!1,s)||[],w=Ji(n,t,"-?",!0,s)||[];return _.concat(w).concat(h).join("|")}function By(n,t){let s=1,_=1,h=Os(n,s),w=new Set([t]);for(;n<=h&&h<=t;)w.add(h),s+=1,h=Os(n,s);for(h=xs(t+1,_)-1;n<h&&h<=t;)w.add(h),_+=1,h=xs(t+1,_)-1;return w=[...w],w.sort(Ny),w}function Hy(n,t,s){if(n===t)return{pattern:n,count:[],digits:0};let _=Uy(n,t),h=_.length,w="",m=0;for(let T=0;T<h;T++){let[k,D]=_[T];k===D?w+=k:k!=="0"||D!=="9"?w+=Wy(k,D,s):m++}return m&&(w+=s.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[m],digits:h}}function Is(n,t,s,_){let h=By(n,t),w=[],m=n,T;for(let k=0;k<h.length;k++){let D=h[k],E=Hy(String(m),String(D),_),F="";if(!s.isPadded&&T&&T.pattern===E.pattern){T.count.length>1&&T.count.pop(),T.count.push(E.count[0]),T.string=T.pattern+Ms(T.count),m=D+1;continue}s.isPadded&&(F=qy(D,s,_)),E.string=F+E.pattern+Ms(E.count),w.push(E),m=D+1,T=E}return w}function Ji(n,t,s,_,h){let w=[];for(let m of n){let{string:T}=m;!_&&!Fs(t,"string",T)&&w.push(s+T),_&&Fs(t,"string",T)&&w.push(s+T)}return w}function Uy(n,t){let s=[];for(let _=0;_<n.length;_++)s.push([n[_],t[_]]);return s}function Ny(n,t){return n>t?1:t>n?-1:0}function Fs(n,t,s){return n.some(_=>_[t]===s)}function Os(n,t){return Number(String(n).slice(0,-t)+"9".repeat(t))}function xs(n,t){return n-n%Math.pow(10,t)}function Ms(n){let[t=0,s=""]=n;return s||t>1?`{${t+(s?","+s:"")}}`:""}function Wy(n,t,s){return`[${n}${t-n===1?"":"-"}${t}]`}function Ls(n){return/^-?(0+)\d/.test(n)}function qy(n,t,s){if(!t.isPadded)return n;let _=Math.abs(t.maxLen-String(n).length),h=s.relaxZeros!==!1;switch(_){case 0:return"";case 1:return h?"0?":"0";case 2:return h?"0{0,2}":"00";default:return h?`0{0,${_}}`:`0{${_}}`}}vt.cache={};vt.clearCache=()=>vt.cache={};Bs.exports=vt});var tr=B((Ub,Vs)=>{"use strict";var $y=require("util"),Ws=Hs(),Us=n=>n!==null&&typeof n=="object"&&!Array.isArray(n),Ky=n=>t=>n===!0?Number(t):String(t),Zi=n=>typeof n=="number"||typeof n=="string"&&n!=="",xt=n=>Number.isInteger(+n),er=n=>{let t=`${n}`,s=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++s]==="0";);return s>0},Gy=(n,t,s)=>typeof n=="string"||typeof t=="string"?!0:s.stringify===!0,Vy=(n,t,s)=>{if(t>0){let _=n[0]==="-"?"-":"";_&&(n=n.slice(1)),n=_+n.padStart(_?t-1:t,"0")}return s===!1?String(n):n},Ns=(n,t)=>{let s=n[0]==="-"?"-":"";for(s&&(n=n.slice(1),t--);n.length<t;)n="0"+n;return s?"-"+n:n},Qy=(n,t)=>{n.negatives.sort((m,T)=>m<T?-1:m>T?1:0),n.positives.sort((m,T)=>m<T?-1:m>T?1:0);let s=t.capture?"":"?:",_="",h="",w;return n.positives.length&&(_=n.positives.join("|")),n.negatives.length&&(h=`-(${s}${n.negatives.join("|")})`),_&&h?w=`${_}|${h}`:w=_||h,t.wrap?`(${s}${w})`:w},qs=(n,t,s,_)=>{if(s)return Ws(n,t,{wrap:!1,..._});let h=String.fromCharCode(n);if(n===t)return h;let w=String.fromCharCode(t);return`[${h}-${w}]`},$s=(n,t,s)=>{if(Array.isArray(n)){let _=s.wrap===!0,h=s.capture?"":"?:";return _?`(${h}${n.join("|")})`:n.join("|")}return Ws(n,t,s)},Ks=(...n)=>new RangeError("Invalid range arguments: "+$y.inspect(...n)),Gs=(n,t,s)=>{if(s.strictRanges===!0)throw Ks([n,t]);return[]},Xy=(n,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${n}" to be a number`);return[]},Yy=(n,t,s=1,_={})=>{let h=Number(n),w=Number(t);if(!Number.isInteger(h)||!Number.isInteger(w)){if(_.strictRanges===!0)throw Ks([n,t]);return[]}h===0&&(h=0),w===0&&(w=0);let m=h>w,T=String(n),k=String(t),D=String(s);s=Math.max(Math.abs(s),1);let E=er(T)||er(k)||er(D),F=E?Math.max(T.length,k.length,D.length):0,P=E===!1&&Gy(n,t,_)===!1,ee=_.transform||Ky(P);if(_.toRegex&&s===1)return qs(Ns(n,F),Ns(t,F),!0,_);let L={negatives:[],positives:[]},M=oe=>L[oe<0?"negatives":"positives"].push(Math.abs(oe)),K=[],V=0;for(;m?h>=w:h<=w;)_.toRegex===!0&&s>1?M(h):K.push(Vy(ee(h,V),F,P)),h=m?h-s:h+s,V++;return _.toRegex===!0?s>1?Qy(L,_):$s(K,null,{wrap:!1,..._}):K},zy=(n,t,s=1,_={})=>{if(!xt(n)&&n.length>1||!xt(t)&&t.length>1)return Gs(n,t,_);let h=_.transform||(P=>String.fromCharCode(P)),w=`${n}`.charCodeAt(0),m=`${t}`.charCodeAt(0),T=w>m,k=Math.min(w,m),D=Math.max(w,m);if(_.toRegex&&s===1)return qs(k,D,!1,_);let E=[],F=0;for(;T?w>=m:w<=m;)E.push(h(w,F)),w=T?w-s:w+s,F++;return _.toRegex===!0?$s(E,null,{wrap:!1,options:_}):E},ui=(n,t,s,_={})=>{if(t==null&&Zi(n))return[n];if(!Zi(n)||!Zi(t))return Gs(n,t,_);if(typeof s=="function")return ui(n,t,1,{transform:s});if(Us(s))return ui(n,t,0,s);let h={..._};return h.capture===!0&&(h.wrap=!0),s=s||h.step||1,xt(s)?xt(n)&&xt(t)?Yy(n,t,s,h):zy(n,t,Math.max(Math.abs(s),1),h):s!=null&&!Us(s)?Xy(s,h):ui(n,t,1,s)};Vs.exports=ui});var Ys=B((Nb,Xs)=>{"use strict";var Jy=tr(),Qs=oi(),Zy=(n,t={})=>{let s=(_,h={})=>{let w=Qs.isInvalidBrace(h),m=_.invalid===!0&&t.escapeInvalid===!0,T=w===!0||m===!0,k=t.escapeInvalid===!0?"\\":"",D="";if(_.isOpen===!0||_.isClose===!0)return k+_.value;if(_.type==="open")return T?k+_.value:"(";if(_.type==="close")return T?k+_.value:")";if(_.type==="comma")return _.prev.type==="comma"?"":T?_.value:"|";if(_.value)return _.value;if(_.nodes&&_.ranges>0){let E=Qs.reduce(_.nodes),F=Jy(...E,{...t,wrap:!1,toRegex:!0});if(F.length!==0)return E.length>1&&F.length>1?`(${F})`:F}if(_.nodes)for(let E of _.nodes)D+=s(E,_);return D};return s(n)};Xs.exports=Zy});var Zs=B((Wb,Js)=>{"use strict";var eg=tr(),zs=ci(),Et=oi(),yt=(n="",t="",s=!1)=>{let _=[];if(n=[].concat(n),t=[].concat(t),!t.length)return n;if(!n.length)return s?Et.flatten(t).map(h=>`{${h}}`):t;for(let h of n)if(Array.isArray(h))for(let w of h)_.push(yt(w,t,s));else for(let w of t)s===!0&&typeof w=="string"&&(w=`{${w}}`),_.push(Array.isArray(w)?yt(h,w,s):h+w);return Et.flatten(_)},tg=(n,t={})=>{let s=t.rangeLimit===void 0?1e3:t.rangeLimit,_=(h,w={})=>{h.queue=[];let m=w,T=w.queue;for(;m.type!=="brace"&&m.type!=="root"&&m.parent;)m=m.parent,T=m.queue;if(h.invalid||h.dollar){T.push(yt(T.pop(),zs(h,t)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){T.push(yt(T.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let F=Et.reduce(h.nodes);if(Et.exceedsLimit(...F,t.step,s))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=eg(...F,t);P.length===0&&(P=zs(h,t)),T.push(yt(T.pop(),P)),h.nodes=[];return}let k=Et.encloseBrace(h),D=h.queue,E=h;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,D=E.queue;for(let F=0;F<h.nodes.length;F++){let P=h.nodes[F];if(P.type==="comma"&&h.type==="brace"){F===1&&D.push(""),D.push("");continue}if(P.type==="close"){T.push(yt(T.pop(),D,k));continue}if(P.value&&P.type!=="open"){D.push(yt(D.pop(),P.value));continue}P.nodes&&_(P,h)}return D};return Et.flatten(_(n))};Js.exports=tg});var ta=B((qb,ea)=>{"use strict";ea.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var aa=B(($b,sa)=>{"use strict";var ig=ci(),{MAX_LENGTH:ia,CHAR_BACKSLASH:ir,CHAR_BACKTICK:rg,CHAR_COMMA:ng,CHAR_DOT:sg,CHAR_LEFT_PARENTHESES:ag,CHAR_RIGHT_PARENTHESES:og,CHAR_LEFT_CURLY_BRACE:cg,CHAR_RIGHT_CURLY_BRACE:ug,CHAR_LEFT_SQUARE_BRACKET:ra,CHAR_RIGHT_SQUARE_BRACKET:na,CHAR_DOUBLE_QUOTE:lg,CHAR_SINGLE_QUOTE:fg,CHAR_NO_BREAK_SPACE:_g,CHAR_ZERO_WIDTH_NOBREAK_SPACE:hg}=ta(),dg=(n,t={})=>{if(typeof n!="string")throw new TypeError("Expected a string");let s=t||{},_=typeof s.maxLength=="number"?Math.min(ia,s.maxLength):ia;if(n.length>_)throw new SyntaxError(`Input length (${n.length}), exceeds max characters (${_})`);let h={type:"root",input:n,nodes:[]},w=[h],m=h,T=h,k=0,D=n.length,E=0,F=0,P,ee={},L=()=>n[E++],M=K=>{if(K.type==="text"&&T.type==="dot"&&(T.type="text"),T&&T.type==="text"&&K.type==="text"){T.value+=K.value;return}return m.nodes.push(K),K.parent=m,K.prev=T,T=K,K};for(M({type:"bos"});E<D;)if(m=w[w.length-1],P=L(),!(P===hg||P===_g)){if(P===ir){M({type:"text",value:(t.keepEscaping?P:"")+L()});continue}if(P===na){M({type:"text",value:"\\"+P});continue}if(P===ra){k++;let K=!0,V;for(;E<D&&(V=L());){if(P+=V,V===ra){k++;continue}if(V===ir){P+=L();continue}if(V===na&&(k--,k===0))break}M({type:"text",value:P});continue}if(P===ag){m=M({type:"paren",nodes:[]}),w.push(m),M({type:"text",value:P});continue}if(P===og){if(m.type!=="paren"){M({type:"text",value:P});continue}m=w.pop(),M({type:"text",value:P}),m=w[w.length-1];continue}if(P===lg||P===fg||P===rg){let K=P,V;for(t.keepQuotes!==!0&&(P="");E<D&&(V=L());){if(V===ir){P+=V+L();continue}if(V===K){t.keepQuotes===!0&&(P+=V);break}P+=V}M({type:"text",value:P});continue}if(P===cg){F++;let V={type:"brace",open:!0,close:!1,dollar:T.value&&T.value.slice(-1)==="$"||m.dollar===!0,depth:F,commas:0,ranges:0,nodes:[]};m=M(V),w.push(m),M({type:"open",value:P});continue}if(P===ug){if(m.type!=="brace"){M({type:"text",value:P});continue}let K="close";m=w.pop(),m.close=!0,M({type:K,value:P}),F--,m=w[w.length-1];continue}if(P===ng&&F>0){if(m.ranges>0){m.ranges=0;let K=m.nodes.shift();m.nodes=[K,{type:"text",value:ig(m)}]}M({type:"comma",value:P}),m.commas++;continue}if(P===sg&&F>0&&m.commas===0){let K=m.nodes;if(F===0||K.length===0){M({type:"text",value:P});continue}if(T.type==="dot"){if(m.range=[],T.value+=P,T.type="range",m.nodes.length!==3&&m.nodes.length!==5){m.invalid=!0,m.ranges=0,T.type="text";continue}m.ranges++,m.args=[];continue}if(T.type==="range"){K.pop();let V=K[K.length-1];V.value+=T.value+P,T=V,m.ranges--;continue}M({type:"dot",value:P});continue}M({type:"text",value:P})}do if(m=w.pop(),m.type!=="root"){m.nodes.forEach(oe=>{oe.nodes||(oe.type==="open"&&(oe.isOpen=!0),oe.type==="close"&&(oe.isClose=!0),oe.nodes||(oe.type="text"),oe.invalid=!0)});let K=w[w.length-1],V=K.nodes.indexOf(m);K.nodes.splice(V,1,...m.nodes)}while(w.length>0);return M({type:"eos"}),h};sa.exports=dg});var ua=B((Kb,ca)=>{"use strict";var oa=ci(),pg=Ys(),vg=Zs(),yg=aa(),Oe=(n,t={})=>{let s=[];if(Array.isArray(n))for(let _ of n){let h=Oe.create(_,t);Array.isArray(h)?s.push(...h):s.push(h)}else s=[].concat(Oe.create(n,t));return t&&t.expand===!0&&t.nodupes===!0&&(s=[...new Set(s)]),s};Oe.parse=(n,t={})=>yg(n,t);Oe.stringify=(n,t={})=>oa(typeof n=="string"?Oe.parse(n,t):n,t);Oe.compile=(n,t={})=>(typeof n=="string"&&(n=Oe.parse(n,t)),pg(n,t));Oe.expand=(n,t={})=>{typeof n=="string"&&(n=Oe.parse(n,t));let s=vg(n,t);return t.noempty===!0&&(s=s.filter(Boolean)),t.nodupes===!0&&(s=[...new Set(s)]),s};Oe.create=(n,t={})=>n===""||n.length<3?[n]:t.expand!==!0?Oe.compile(n,t):Oe.expand(n,t);ca.exports=Oe});var Mt=B((Gb,da)=>{"use strict";var gg=require("path"),Ke="\\\\/",la=`[^${Ke}]`,ze="\\.",wg="\\+",mg="\\?",li="\\/",bg="(?=.)",fa="[^/]",rr=`(?:${li}|$)`,_a=`(?:^|${li})`,nr=`${ze}{1,2}${rr}`,jg=`(?!${ze})`,Tg=`(?!${_a}${nr})`,Sg=`(?!${ze}{0,1}${rr})`,kg=`(?!${nr})`,Eg=`[^.${li}]`,Rg=`${fa}*?`,ha={DOT_LITERAL:ze,PLUS_LITERAL:wg,QMARK_LITERAL:mg,SLASH_LITERAL:li,ONE_CHAR:bg,QMARK:fa,END_ANCHOR:rr,DOTS_SLASH:nr,NO_DOT:jg,NO_DOTS:Tg,NO_DOT_SLASH:Sg,NO_DOTS_SLASH:kg,QMARK_NO_DOT:Eg,STAR:Rg,START_ANCHOR:_a},Ag={...ha,SLASH_LITERAL:`[${Ke}]`,QMARK:la,STAR:`${la}*?`,DOTS_SLASH:`${ze}{1,2}(?:[${Ke}]|$)`,NO_DOT:`(?!${ze})`,NO_DOTS:`(?!(?:^|[${Ke}])${ze}{1,2}(?:[${Ke}]|$))`,NO_DOT_SLASH:`(?!${ze}{0,1}(?:[${Ke}]|$))`,NO_DOTS_SLASH:`(?!${ze}{1,2}(?:[${Ke}]|$))`,QMARK_NO_DOT:`[^.${Ke}]`,START_ANCHOR:`(?:^|[${Ke}])`,END_ANCHOR:`(?:[${Ke}]|$)`},Cg={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};da.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Cg,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:gg.sep,extglobChars(n){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${n.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(n){return n===!0?Ag:ha}}});var Lt=B(Pe=>{"use strict";var Dg=require("path"),Pg=process.platform==="win32",{REGEX_BACKSLASH:Ig,REGEX_REMOVE_BACKSLASH:Fg,REGEX_SPECIAL_CHARS:Og,REGEX_SPECIAL_CHARS_GLOBAL:xg}=Mt();Pe.isObject=n=>n!==null&&typeof n=="object"&&!Array.isArray(n);Pe.hasRegexChars=n=>Og.test(n);Pe.isRegexChar=n=>n.length===1&&Pe.hasRegexChars(n);Pe.escapeRegex=n=>n.replace(xg,"\\$1");Pe.toPosixSlashes=n=>n.replace(Ig,"/");Pe.removeBackslashes=n=>n.replace(Fg,t=>t==="\\"?"":t);Pe.supportsLookbehinds=()=>{let n=process.version.slice(1).split(".").map(Number);return n.length===3&&n[0]>=9||n[0]===8&&n[1]>=10};Pe.isWindows=n=>n&&typeof n.windows=="boolean"?n.windows:Pg===!0||Dg.sep==="\\";Pe.escapeLast=(n,t,s)=>{let _=n.lastIndexOf(t,s);return _===-1?n:n[_-1]==="\\"?Pe.escapeLast(n,t,_-1):`${n.slice(0,_)}\\${n.slice(_)}`};Pe.removePrefix=(n,t={})=>{let s=n;return s.startsWith("./")&&(s=s.slice(2),t.prefix="./"),s};Pe.wrapOutput=(n,t={},s={})=>{let _=s.contains?"":"^",h=s.contains?"":"$",w=`${_}(?:${n})${h}`;return t.negated===!0&&(w=`(?:^(?!${w}).*$)`),w}});var ja=B((Qb,ba)=>{"use strict";var pa=Lt(),{CHAR_ASTERISK:sr,CHAR_AT:Mg,CHAR_BACKWARD_SLASH:Bt,CHAR_COMMA:Lg,CHAR_DOT:ar,CHAR_EXCLAMATION_MARK:or,CHAR_FORWARD_SLASH:ma,CHAR_LEFT_CURLY_BRACE:cr,CHAR_LEFT_PARENTHESES:ur,CHAR_LEFT_SQUARE_BRACKET:Bg,CHAR_PLUS:Hg,CHAR_QUESTION_MARK:va,CHAR_RIGHT_CURLY_BRACE:Ug,CHAR_RIGHT_PARENTHESES:ya,CHAR_RIGHT_SQUARE_BRACKET:Ng}=Mt(),ga=n=>n===ma||n===Bt,wa=n=>{n.isPrefix!==!0&&(n.depth=n.isGlobstar?1/0:1)},Wg=(n,t)=>{let s=t||{},_=n.length-1,h=s.parts===!0||s.scanToEnd===!0,w=[],m=[],T=[],k=n,D=-1,E=0,F=0,P=!1,ee=!1,L=!1,M=!1,K=!1,V=!1,oe=!1,ue=!1,ke=!1,z=!1,ce=0,Q,q,U={value:"",depth:0,isGlob:!1},se=()=>D>=_,I=()=>k.charCodeAt(D+1),G=()=>(Q=q,k.charCodeAt(++D));for(;D<_;){q=G();let Z;if(q===Bt){oe=U.backslashes=!0,q=G(),q===cr&&(V=!0);continue}if(V===!0||q===cr){for(ce++;se()!==!0&&(q=G());){if(q===Bt){oe=U.backslashes=!0,G();continue}if(q===cr){ce++;continue}if(V!==!0&&q===ar&&(q=G())===ar){if(P=U.isBrace=!0,L=U.isGlob=!0,z=!0,h===!0)continue;break}if(V!==!0&&q===Lg){if(P=U.isBrace=!0,L=U.isGlob=!0,z=!0,h===!0)continue;break}if(q===Ug&&(ce--,ce===0)){V=!1,P=U.isBrace=!0,z=!0;break}}if(h===!0)continue;break}if(q===ma){if(w.push(D),m.push(U),U={value:"",depth:0,isGlob:!1},z===!0)continue;if(Q===ar&&D===E+1){E+=2;continue}F=D+1;continue}if(s.noext!==!0&&(q===Hg||q===Mg||q===sr||q===va||q===or)===!0&&I()===ur){if(L=U.isGlob=!0,M=U.isExtglob=!0,z=!0,q===or&&D===E&&(ke=!0),h===!0){for(;se()!==!0&&(q=G());){if(q===Bt){oe=U.backslashes=!0,q=G();continue}if(q===ya){L=U.isGlob=!0,z=!0;break}}continue}break}if(q===sr){if(Q===sr&&(K=U.isGlobstar=!0),L=U.isGlob=!0,z=!0,h===!0)continue;break}if(q===va){if(L=U.isGlob=!0,z=!0,h===!0)continue;break}if(q===Bg){for(;se()!==!0&&(Z=G());){if(Z===Bt){oe=U.backslashes=!0,G();continue}if(Z===Ng){ee=U.isBracket=!0,L=U.isGlob=!0,z=!0;break}}if(h===!0)continue;break}if(s.nonegate!==!0&&q===or&&D===E){ue=U.negated=!0,E++;continue}if(s.noparen!==!0&&q===ur){if(L=U.isGlob=!0,h===!0){for(;se()!==!0&&(q=G());){if(q===ur){oe=U.backslashes=!0,q=G();continue}if(q===ya){z=!0;break}}continue}break}if(L===!0){if(z=!0,h===!0)continue;break}}s.noext===!0&&(M=!1,L=!1);let $=k,le="",C="";E>0&&(le=k.slice(0,E),k=k.slice(E),F-=E),$&&L===!0&&F>0?($=k.slice(0,F),C=k.slice(F)):L===!0?($="",C=k):$=k,$&&$!==""&&$!=="/"&&$!==k&&ga($.charCodeAt($.length-1))&&($=$.slice(0,-1)),s.unescape===!0&&(C&&(C=pa.removeBackslashes(C)),$&&oe===!0&&($=pa.removeBackslashes($)));let S={prefix:le,input:n,start:E,base:$,glob:C,isBrace:P,isBracket:ee,isGlob:L,isExtglob:M,isGlobstar:K,negated:ue,negatedExtglob:ke};if(s.tokens===!0&&(S.maxDepth=0,ga(q)||m.push(U),S.tokens=m),s.parts===!0||s.tokens===!0){let Z;for(let ae=0;ae<w.length;ae++){let Ie=Z?Z+1:E,Me=w[ae],Ae=n.slice(Ie,Me);s.tokens&&(ae===0&&E!==0?(m[ae].isPrefix=!0,m[ae].value=le):m[ae].value=Ae,wa(m[ae]),S.maxDepth+=m[ae].depth),(ae!==0||Ae!=="")&&T.push(Ae),Z=Me}if(Z&&Z+1<n.length){let ae=n.slice(Z+1);T.push(ae),s.tokens&&(m[m.length-1].value=ae,wa(m[m.length-1]),S.maxDepth+=m[m.length-1].depth)}S.slashes=w,S.parts=T}return S};ba.exports=Wg});var Ea=B((Xb,ka)=>{"use strict";var fi=Mt(),xe=Lt(),{MAX_LENGTH:_i,POSIX_REGEX_SOURCE:qg,REGEX_NON_SPECIAL_CHARS:$g,REGEX_SPECIAL_CHARS_BACKREF:Kg,REPLACEMENTS:Ta}=fi,Gg=(n,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...n,t);n.sort();let s=`[${n.join("-")}]`;try{new RegExp(s)}catch{return n.map(h=>xe.escapeRegex(h)).join("..")}return s},Rt=(n,t)=>`Missing ${n}: "${t}" - use "\\\\${t}" to match literal characters`,Sa=(n,t)=>{if(typeof n!="string")throw new TypeError("Expected a string");n=Ta[n]||n;let s={...t},_=typeof s.maxLength=="number"?Math.min(_i,s.maxLength):_i,h=n.length;if(h>_)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${_}`);let w={type:"bos",value:"",output:s.prepend||""},m=[w],T=s.capture?"":"?:",k=xe.isWindows(t),D=fi.globChars(k),E=fi.extglobChars(D),{DOT_LITERAL:F,PLUS_LITERAL:P,SLASH_LITERAL:ee,ONE_CHAR:L,DOTS_SLASH:M,NO_DOT:K,NO_DOT_SLASH:V,NO_DOTS_SLASH:oe,QMARK:ue,QMARK_NO_DOT:ke,STAR:z,START_ANCHOR:ce}=D,Q=H=>`(${T}(?:(?!${ce}${H.dot?M:F}).)*?)`,q=s.dot?"":K,U=s.dot?ue:ke,se=s.bash===!0?Q(s):z;s.capture&&(se=`(${se})`),typeof s.noext=="boolean"&&(s.noextglob=s.noext);let I={input:n,index:-1,start:0,dot:s.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:m};n=xe.removePrefix(n,I),h=n.length;let G=[],$=[],le=[],C=w,S,Z=()=>I.index===h-1,ae=I.peek=(H=1)=>n[I.index+H],Ie=I.advance=()=>n[++I.index]||"",Me=()=>n.slice(I.index+1),Ae=(H="",he=0)=>{I.consumed+=H,I.index+=he},lt=H=>{I.output+=H.output!=null?H.output:H.value,Ae(H.value)},Fi=()=>{let H=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)Ie(),I.start++,H++;return H%2===0?!1:(I.negated=!0,I.start++,!0)},mt=H=>{I[H]++,le.push(H)},Ze=H=>{I[H]--,le.pop()},ie=H=>{if(C.type==="globstar"){let he=I.braces>0&&(H.type==="comma"||H.type==="brace"),O=H.extglob===!0||G.length&&(H.type==="pipe"||H.type==="paren");H.type!=="slash"&&H.type!=="paren"&&!he&&!O&&(I.output=I.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=se,I.output+=C.output)}if(G.length&&H.type!=="paren"&&(G[G.length-1].inner+=H.value),(H.value||H.output)&&lt(H),C&&C.type==="text"&&H.type==="text"){C.value+=H.value,C.output=(C.output||"")+H.value;return}H.prev=C,m.push(H),C=H},Le=(H,he)=>{let O={...E[he],conditions:1,inner:""};O.prev=C,O.parens=I.parens,O.output=I.output;let J=(s.capture?"(":"")+O.open;mt("parens"),ie({type:H,value:he,output:I.output?"":L}),ie({type:"paren",extglob:!0,value:Ie(),output:J}),G.push(O)},ft=H=>{let he=H.close+(s.capture?")":""),O;if(H.type==="negate"){let J=se;H.inner&&H.inner.length>1&&H.inner.includes("/")&&(J=Q(s)),(J!==se||Z()||/^\)+$/.test(Me()))&&(he=H.close=`)$))${J}`),H.inner.includes("*")&&(O=Me())&&/^\.[^\\/.]+$/.test(O)&&(he=H.close=`)${O})${J})`),H.prev.type==="bos"&&(I.negatedExtglob=!0)}ie({type:"paren",extglob:!0,value:S,output:he}),Ze("parens")};if(s.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(n)){let H=!1,he=n.replace(Kg,(O,J,ge,Ee,we,It)=>Ee==="\\"?(H=!0,O):Ee==="?"?J?J+Ee+(we?ue.repeat(we.length):""):It===0?U+(we?ue.repeat(we.length):""):ue.repeat(ge.length):Ee==="."?F.repeat(ge.length):Ee==="*"?J?J+Ee+(we?se:""):se:J?O:`\\${O}`);return H===!0&&(s.unescape===!0?he=he.replace(/\\/g,""):he=he.replace(/\\+/g,O=>O.length%2===0?"\\\\":O?"\\":"")),he===n&&s.contains===!0?(I.output=n,I):(I.output=xe.wrapOutput(he,I,t),I)}for(;!Z();){if(S=Ie(),S==="\0")continue;if(S==="\\"){let O=ae();if(O==="/"&&s.bash!==!0||O==="."||O===";")continue;if(!O){S+="\\",ie({type:"text",value:S});continue}let J=/^\\+/.exec(Me()),ge=0;if(J&&J[0].length>2&&(ge=J[0].length,I.index+=ge,ge%2!==0&&(S+="\\")),s.unescape===!0?S=Ie():S+=Ie(),I.brackets===0){ie({type:"text",value:S});continue}}if(I.brackets>0&&(S!=="]"||C.value==="["||C.value==="[^")){if(s.posix!==!1&&S===":"){let O=C.value.slice(1);if(O.includes("[")&&(C.posix=!0,O.includes(":"))){let J=C.value.lastIndexOf("["),ge=C.value.slice(0,J),Ee=C.value.slice(J+2),we=qg[Ee];if(we){C.value=ge+we,I.backtrack=!0,Ie(),!w.output&&m.indexOf(C)===1&&(w.output=L);continue}}}(S==="["&&ae()!==":"||S==="-"&&ae()==="]")&&(S=`\\${S}`),S==="]"&&(C.value==="["||C.value==="[^")&&(S=`\\${S}`),s.posix===!0&&S==="!"&&C.value==="["&&(S="^"),C.value+=S,lt({value:S});continue}if(I.quotes===1&&S!=='"'){S=xe.escapeRegex(S),C.value+=S,lt({value:S});continue}if(S==='"'){I.quotes=I.quotes===1?0:1,s.keepQuotes===!0&&ie({type:"text",value:S});continue}if(S==="("){mt("parens"),ie({type:"paren",value:S});continue}if(S===")"){if(I.parens===0&&s.strictBrackets===!0)throw new SyntaxError(Rt("opening","("));let O=G[G.length-1];if(O&&I.parens===O.parens+1){ft(G.pop());continue}ie({type:"paren",value:S,output:I.parens?")":"\\)"}),Ze("parens");continue}if(S==="["){if(s.nobracket===!0||!Me().includes("]")){if(s.nobracket!==!0&&s.strictBrackets===!0)throw new SyntaxError(Rt("closing","]"));S=`\\${S}`}else mt("brackets");ie({type:"bracket",value:S});continue}if(S==="]"){if(s.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){ie({type:"text",value:S,output:`\\${S}`});continue}if(I.brackets===0){if(s.strictBrackets===!0)throw new SyntaxError(Rt("opening","["));ie({type:"text",value:S,output:`\\${S}`});continue}Ze("brackets");let O=C.value.slice(1);if(C.posix!==!0&&O[0]==="^"&&!O.includes("/")&&(S=`/${S}`),C.value+=S,lt({value:S}),s.literalBrackets===!1||xe.hasRegexChars(O))continue;let J=xe.escapeRegex(C.value);if(I.output=I.output.slice(0,-C.value.length),s.literalBrackets===!0){I.output+=J,C.value=J;continue}C.value=`(${T}${J}|${C.value})`,I.output+=C.value;continue}if(S==="{"&&s.nobrace!==!0){mt("braces");let O={type:"brace",value:S,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};$.push(O),ie(O);continue}if(S==="}"){let O=$[$.length-1];if(s.nobrace===!0||!O){ie({type:"text",value:S,output:S});continue}let J=")";if(O.dots===!0){let ge=m.slice(),Ee=[];for(let we=ge.length-1;we>=0&&(m.pop(),ge[we].type!=="brace");we--)ge[we].type!=="dots"&&Ee.unshift(ge[we].value);J=Gg(Ee,s),I.backtrack=!0}if(O.comma!==!0&&O.dots!==!0){let ge=I.output.slice(0,O.outputIndex),Ee=I.tokens.slice(O.tokensIndex);O.value=O.output="\\{",S=J="\\}",I.output=ge;for(let we of Ee)I.output+=we.output||we.value}ie({type:"brace",value:S,output:J}),Ze("braces"),$.pop();continue}if(S==="|"){G.length>0&&G[G.length-1].conditions++,ie({type:"text",value:S});continue}if(S===","){let O=S,J=$[$.length-1];J&&le[le.length-1]==="braces"&&(J.comma=!0,O="|"),ie({type:"comma",value:S,output:O});continue}if(S==="/"){if(C.type==="dot"&&I.index===I.start+1){I.start=I.index+1,I.consumed="",I.output="",m.pop(),C=w;continue}ie({type:"slash",value:S,output:ee});continue}if(S==="."){if(I.braces>0&&C.type==="dot"){C.value==="."&&(C.output=F);let O=$[$.length-1];C.type="dots",C.output+=S,C.value+=S,O.dots=!0;continue}if(I.braces+I.parens===0&&C.type!=="bos"&&C.type!=="slash"){ie({type:"text",value:S,output:F});continue}ie({type:"dot",value:S,output:F});continue}if(S==="?"){if(!(C&&C.value==="(")&&s.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){Le("qmark",S);continue}if(C&&C.type==="paren"){let J=ae(),ge=S;if(J==="<"&&!xe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(C.value==="("&&!/[!=<:]/.test(J)||J==="<"&&!/<([!=]|\w+>)/.test(Me()))&&(ge=`\\${S}`),ie({type:"text",value:S,output:ge});continue}if(s.dot!==!0&&(C.type==="slash"||C.type==="bos")){ie({type:"qmark",value:S,output:ke});continue}ie({type:"qmark",value:S,output:ue});continue}if(S==="!"){if(s.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){Le("negate",S);continue}if(s.nonegate!==!0&&I.index===0){Fi();continue}}if(S==="+"){if(s.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){Le("plus",S);continue}if(C&&C.value==="("||s.regex===!1){ie({type:"plus",value:S,output:P});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||I.parens>0){ie({type:"plus",value:S});continue}ie({type:"plus",value:P});continue}if(S==="@"){if(s.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ie({type:"at",extglob:!0,value:S,output:""});continue}ie({type:"text",value:S});continue}if(S!=="*"){(S==="$"||S==="^")&&(S=`\\${S}`);let O=$g.exec(Me());O&&(S+=O[0],I.index+=O[0].length),ie({type:"text",value:S});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=S,C.output=se,I.backtrack=!0,I.globstar=!0,Ae(S);continue}let H=Me();if(s.noextglob!==!0&&/^\([^?]/.test(H)){Le("star",S);continue}if(C.type==="star"){if(s.noglobstar===!0){Ae(S);continue}let O=C.prev,J=O.prev,ge=O.type==="slash"||O.type==="bos",Ee=J&&(J.type==="star"||J.type==="globstar");if(s.bash===!0&&(!ge||H[0]&&H[0]!=="/")){ie({type:"star",value:S,output:""});continue}let we=I.braces>0&&(O.type==="comma"||O.type==="brace"),It=G.length&&(O.type==="pipe"||O.type==="paren");if(!ge&&O.type!=="paren"&&!we&&!It){ie({type:"star",value:S,output:""});continue}for(;H.slice(0,3)==="/**";){let bt=n[I.index+4];if(bt&&bt!=="/")break;H=H.slice(3),Ae("/**",3)}if(O.type==="bos"&&Z()){C.type="globstar",C.value+=S,C.output=Q(s),I.output=C.output,I.globstar=!0,Ae(S);continue}if(O.type==="slash"&&O.prev.type!=="bos"&&!Ee&&Z()){I.output=I.output.slice(0,-(O.output+C.output).length),O.output=`(?:${O.output}`,C.type="globstar",C.output=Q(s)+(s.strictSlashes?")":"|$)"),C.value+=S,I.globstar=!0,I.output+=O.output+C.output,Ae(S);continue}if(O.type==="slash"&&O.prev.type!=="bos"&&H[0]==="/"){let bt=H[1]!==void 0?"|$":"";I.output=I.output.slice(0,-(O.output+C.output).length),O.output=`(?:${O.output}`,C.type="globstar",C.output=`${Q(s)}${ee}|${ee}${bt})`,C.value+=S,I.output+=O.output+C.output,I.globstar=!0,Ae(S+Ie()),ie({type:"slash",value:"/",output:""});continue}if(O.type==="bos"&&H[0]==="/"){C.type="globstar",C.value+=S,C.output=`(?:^|${ee}|${Q(s)}${ee})`,I.output=C.output,I.globstar=!0,Ae(S+Ie()),ie({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-C.output.length),C.type="globstar",C.output=Q(s),C.value+=S,I.output+=C.output,I.globstar=!0,Ae(S);continue}let he={type:"star",value:S,output:se};if(s.bash===!0){he.output=".*?",(C.type==="bos"||C.type==="slash")&&(he.output=q+he.output),ie(he);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&s.regex===!0){he.output=S,ie(he);continue}(I.index===I.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(I.output+=V,C.output+=V):s.dot===!0?(I.output+=oe,C.output+=oe):(I.output+=q,C.output+=q),ae()!=="*"&&(I.output+=L,C.output+=L)),ie(he)}for(;I.brackets>0;){if(s.strictBrackets===!0)throw new SyntaxError(Rt("closing","]"));I.output=xe.escapeLast(I.output,"["),Ze("brackets")}for(;I.parens>0;){if(s.strictBrackets===!0)throw new SyntaxError(Rt("closing",")"));I.output=xe.escapeLast(I.output,"("),Ze("parens")}for(;I.braces>0;){if(s.strictBrackets===!0)throw new SyntaxError(Rt("closing","}"));I.output=xe.escapeLast(I.output,"{"),Ze("braces")}if(s.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&ie({type:"maybe_slash",value:"",output:`${ee}?`}),I.backtrack===!0){I.output="";for(let H of I.tokens)I.output+=H.output!=null?H.output:H.value,H.suffix&&(I.output+=H.suffix)}return I};Sa.fastpaths=(n,t)=>{let s={...t},_=typeof s.maxLength=="number"?Math.min(_i,s.maxLength):_i,h=n.length;if(h>_)throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${_}`);n=Ta[n]||n;let w=xe.isWindows(t),{DOT_LITERAL:m,SLASH_LITERAL:T,ONE_CHAR:k,DOTS_SLASH:D,NO_DOT:E,NO_DOTS:F,NO_DOTS_SLASH:P,STAR:ee,START_ANCHOR:L}=fi.globChars(w),M=s.dot?F:E,K=s.dot?P:E,V=s.capture?"":"?:",oe={negated:!1,prefix:""},ue=s.bash===!0?".*?":ee;s.capture&&(ue=`(${ue})`);let ke=q=>q.noglobstar===!0?ue:`(${V}(?:(?!${L}${q.dot?D:m}).)*?)`,z=q=>{switch(q){case"*":return`${M}${k}${ue}`;case".*":return`${m}${k}${ue}`;case"*.*":return`${M}${ue}${m}${k}${ue}`;case"*/*":return`${M}${ue}${T}${k}${K}${ue}`;case"**":return M+ke(s);case"**/*":return`(?:${M}${ke(s)}${T})?${K}${k}${ue}`;case"**/*.*":return`(?:${M}${ke(s)}${T})?${K}${ue}${m}${k}${ue}`;case"**/.*":return`(?:${M}${ke(s)}${T})?${m}${k}${ue}`;default:{let U=/^(.*?)\.(\w+)$/.exec(q);if(!U)return;let se=z(U[1]);return se?se+m+U[2]:void 0}}},ce=xe.removePrefix(n,oe),Q=z(ce);return Q&&s.strictSlashes!==!0&&(Q+=`${T}?`),Q};ka.exports=Sa});var Aa=B((Yb,Ra)=>{"use strict";var Vg=require("path"),Qg=ja(),lr=Ea(),fr=Lt(),Xg=Mt(),Yg=n=>n&&typeof n=="object"&&!Array.isArray(n),me=(n,t,s=!1)=>{if(Array.isArray(n)){let E=n.map(P=>me(P,t,s));return P=>{for(let ee of E){let L=ee(P);if(L)return L}return!1}}let _=Yg(n)&&n.tokens&&n.input;if(n===""||typeof n!="string"&&!_)throw new TypeError("Expected pattern to be a non-empty string");let h=t||{},w=fr.isWindows(t),m=_?me.compileRe(n,t):me.makeRe(n,t,!1,!0),T=m.state;delete m.state;let k=()=>!1;if(h.ignore){let E={...t,ignore:null,onMatch:null,onResult:null};k=me(h.ignore,E,s)}let D=(E,F=!1)=>{let{isMatch:P,match:ee,output:L}=me.test(E,m,t,{glob:n,posix:w}),M={glob:n,state:T,regex:m,posix:w,input:E,output:L,match:ee,isMatch:P};return typeof h.onResult=="function"&&h.onResult(M),P===!1?(M.isMatch=!1,F?M:!1):k(E)?(typeof h.onIgnore=="function"&&h.onIgnore(M),M.isMatch=!1,F?M:!1):(typeof h.onMatch=="function"&&h.onMatch(M),F?M:!0)};return s&&(D.state=T),D};me.test=(n,t,s,{glob:_,posix:h}={})=>{if(typeof n!="string")throw new TypeError("Expected input to be a string");if(n==="")return{isMatch:!1,output:""};let w=s||{},m=w.format||(h?fr.toPosixSlashes:null),T=n===_,k=T&&m?m(n):n;return T===!1&&(k=m?m(n):n,T=k===_),(T===!1||w.capture===!0)&&(w.matchBase===!0||w.basename===!0?T=me.matchBase(n,t,s,h):T=t.exec(k)),{isMatch:!!T,match:T,output:k}};me.matchBase=(n,t,s,_=fr.isWindows(s))=>(t instanceof RegExp?t:me.makeRe(t,s)).test(Vg.basename(n));me.isMatch=(n,t,s)=>me(t,s)(n);me.parse=(n,t)=>Array.isArray(n)?n.map(s=>me.parse(s,t)):lr(n,{...t,fastpaths:!1});me.scan=(n,t)=>Qg(n,t);me.compileRe=(n,t,s=!1,_=!1)=>{if(s===!0)return n.output;let h=t||{},w=h.contains?"":"^",m=h.contains?"":"$",T=`${w}(?:${n.output})${m}`;n&&n.negated===!0&&(T=`^(?!${T}).*$`);let k=me.toRegex(T,t);return _===!0&&(k.state=n),k};me.makeRe=(n,t={},s=!1,_=!1)=>{if(!n||typeof n!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(n[0]==="."||n[0]==="*")&&(h.output=lr.fastpaths(n,t)),h.output||(h=lr(n,t)),me.compileRe(h,t,s,_)};me.toRegex=(n,t)=>{try{let s=t||{};return new RegExp(n,s.flags||(s.nocase?"i":""))}catch(s){if(t&&t.debug===!0)throw s;return/$^/}};me.constants=Xg;Ra.exports=me});var Da=B((zb,Ca)=>{"use strict";Ca.exports=Aa()});var xa=B((Jb,Oa)=>{"use strict";var Ia=require("util"),Fa=ua(),Ge=Da(),_r=Lt(),Pa=n=>n===""||n==="./",ye=(n,t,s)=>{t=[].concat(t),n=[].concat(n);let _=new Set,h=new Set,w=new Set,m=0,T=E=>{w.add(E.output),s&&s.onResult&&s.onResult(E)};for(let E=0;E<t.length;E++){let F=Ge(String(t[E]),{...s,onResult:T},!0),P=F.state.negated||F.state.negatedExtglob;P&&m++;for(let ee of n){let L=F(ee,!0);(P?!L.isMatch:L.isMatch)&&(P?_.add(L.output):(_.delete(L.output),h.add(L.output)))}}let D=(m===t.length?[...w]:[...h]).filter(E=>!_.has(E));if(s&&D.length===0){if(s.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(s.nonull===!0||s.nullglob===!0)return s.unescape?t.map(E=>E.replace(/\\/g,"")):t}return D};ye.match=ye;ye.matcher=(n,t)=>Ge(n,t);ye.isMatch=(n,t,s)=>Ge(t,s)(n);ye.any=ye.isMatch;ye.not=(n,t,s={})=>{t=[].concat(t).map(String);let _=new Set,h=[],m=ye(n,t,{...s,onResult:T=>{s.onResult&&s.onResult(T),h.push(T.output)}});for(let T of h)m.includes(T)||_.add(T);return[..._]};ye.contains=(n,t,s)=>{if(typeof n!="string")throw new TypeError(`Expected a string: "${Ia.inspect(n)}"`);if(Array.isArray(t))return t.some(_=>ye.contains(n,_,s));if(typeof t=="string"){if(Pa(n)||Pa(t))return!1;if(n.includes(t)||n.startsWith("./")&&n.slice(2).includes(t))return!0}return ye.isMatch(n,t,{...s,contains:!0})};ye.matchKeys=(n,t,s)=>{if(!_r.isObject(n))throw new TypeError("Expected the first argument to be an object");let _=ye(Object.keys(n),t,s),h={};for(let w of _)h[w]=n[w];return h};ye.some=(n,t,s)=>{let _=[].concat(n);for(let h of[].concat(t)){let w=Ge(String(h),s);if(_.some(m=>w(m)))return!0}return!1};ye.every=(n,t,s)=>{let _=[].concat(n);for(let h of[].concat(t)){let w=Ge(String(h),s);if(!_.every(m=>w(m)))return!1}return!0};ye.all=(n,t,s)=>{if(typeof n!="string")throw new TypeError(`Expected a string: "${Ia.inspect(n)}"`);return[].concat(t).every(_=>Ge(_,s)(n))};ye.capture=(n,t,s)=>{let _=_r.isWindows(s),w=Ge.makeRe(String(n),{...s,capture:!0}).exec(_?_r.toPosixSlashes(t):t);if(w)return w.slice(1).map(m=>m===void 0?"":m)};ye.makeRe=(...n)=>Ge.makeRe(...n);ye.scan=(...n)=>Ge.scan(...n);ye.parse=(n,t)=>{let s=[];for(let _ of[].concat(n||[]))for(let h of Fa(String(_),t))s.push(Ge.parse(h,t));return s};ye.braces=(n,t)=>{if(typeof n!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(n)?[n]:Fa(n,t)};ye.braceExpand=(n,t)=>{if(typeof n!="string")throw new TypeError("Expected a string");return ye.braces(n,{...t,expand:!0})};Oa.exports=ye});var qa=B(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.removeDuplicateSlashes=X.matchAny=X.convertPatternsToRe=X.makeRe=X.getPatternParts=X.expandBraceExpansion=X.expandPatternsWithBraceExpansion=X.isAffectDepthOfReadingPattern=X.endsWithSlashGlobStar=X.hasGlobStar=X.getBaseDirectory=X.isPatternRelatedToParentDirectory=X.getPatternsOutsideCurrentDirectory=X.getPatternsInsideCurrentDirectory=X.getPositivePatterns=X.getNegativePatterns=X.isPositivePattern=X.isNegativePattern=X.convertToNegativePattern=X.convertToPositivePattern=X.isDynamicPattern=X.isStaticPattern=void 0;var zg=require("path"),Jg=Es(),hr=xa(),Ma="**",Zg="\\",ew=/[*?]|^!/,tw=/\[[^[]*]/,iw=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,rw=/[!*+?@]\([^(]*\)/,nw=/,|\.\./,sw=/(?!^)\/{2,}/g;function La(n,t={}){return!Ba(n,t)}X.isStaticPattern=La;function Ba(n,t={}){return n===""?!1:!!(t.caseSensitiveMatch===!1||n.includes(Zg)||ew.test(n)||tw.test(n)||iw.test(n)||t.extglob!==!1&&rw.test(n)||t.braceExpansion!==!1&&aw(n))}X.isDynamicPattern=Ba;function aw(n){let t=n.indexOf("{");if(t===-1)return!1;let s=n.indexOf("}",t+1);if(s===-1)return!1;let _=n.slice(t,s);return nw.test(_)}function ow(n){return hi(n)?n.slice(1):n}X.convertToPositivePattern=ow;function cw(n){return"!"+n}X.convertToNegativePattern=cw;function hi(n){return n.startsWith("!")&&n[1]!=="("}X.isNegativePattern=hi;function Ha(n){return!hi(n)}X.isPositivePattern=Ha;function uw(n){return n.filter(hi)}X.getNegativePatterns=uw;function lw(n){return n.filter(Ha)}X.getPositivePatterns=lw;function fw(n){return n.filter(t=>!dr(t))}X.getPatternsInsideCurrentDirectory=fw;function _w(n){return n.filter(dr)}X.getPatternsOutsideCurrentDirectory=_w;function dr(n){return n.startsWith("..")||n.startsWith("./..")}X.isPatternRelatedToParentDirectory=dr;function hw(n){return Jg(n,{flipBackslashes:!1})}X.getBaseDirectory=hw;function dw(n){return n.includes(Ma)}X.hasGlobStar=dw;function Ua(n){return n.endsWith("/"+Ma)}X.endsWithSlashGlobStar=Ua;function pw(n){let t=zg.basename(n);return Ua(n)||La(t)}X.isAffectDepthOfReadingPattern=pw;function vw(n){return n.reduce((t,s)=>t.concat(Na(s)),[])}X.expandPatternsWithBraceExpansion=vw;function Na(n){let t=hr.braces(n,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((s,_)=>s.length-_.length),t.filter(s=>s!=="")}X.expandBraceExpansion=Na;function yw(n,t){let{parts:s}=hr.scan(n,Object.assign(Object.assign({},t),{parts:!0}));return s.length===0&&(s=[n]),s[0].startsWith("/")&&(s[0]=s[0].slice(1),s.unshift("")),s}X.getPatternParts=yw;function Wa(n,t){return hr.makeRe(n,t)}X.makeRe=Wa;function gw(n,t){return n.map(s=>Wa(s,t))}X.convertPatternsToRe=gw;function ww(n,t){return t.some(s=>s.test(n))}X.matchAny=ww;function mw(n){return n.replace(sw,"/")}X.removeDuplicateSlashes=mw});var Va=B((ej,Ga)=>{"use strict";var bw=require("stream"),$a=bw.PassThrough,jw=Array.prototype.slice;Ga.exports=Tw;function Tw(){let n=[],t=jw.call(arguments),s=!1,_=t[t.length-1];_&&!Array.isArray(_)&&_.pipe==null?t.pop():_={};let h=_.end!==!1,w=_.pipeError===!0;_.objectMode==null&&(_.objectMode=!0),_.highWaterMark==null&&(_.highWaterMark=64*1024);let m=$a(_);function T(){for(let E=0,F=arguments.length;E<F;E++)n.push(Ka(arguments[E],_));return k(),this}function k(){if(s)return;s=!0;let E=n.shift();if(!E){process.nextTick(D);return}Array.isArray(E)||(E=[E]);let F=E.length+1;function P(){--F>0||(s=!1,k())}function ee(L){function M(){L.removeListener("merge2UnpipeEnd",M),L.removeListener("end",M),w&&L.removeListener("error",K),P()}function K(V){m.emit("error",V)}if(L._readableState.endEmitted)return P();L.on("merge2UnpipeEnd",M),L.on("end",M),w&&L.on("error",K),L.pipe(m,{end:!1}),L.resume()}for(let L=0;L<E.length;L++)ee(E[L]);P()}function D(){s=!1,m.emit("queueDrain"),h&&m.end()}return m.setMaxListeners(0),m.add=T,m.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),t.length&&T.apply(null,t),m}function Ka(n,t){if(Array.isArray(n))for(let s=0,_=n.length;s<_;s++)n[s]=Ka(n[s],t);else{if(!n._readableState&&n.pipe&&(n=n.pipe($a(t))),!n._readableState||!n.pause||!n.pipe)throw new Error("Only readable stream can be merged.");n.pause()}return n}});var Xa=B(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.merge=void 0;var Sw=Va();function kw(n){let t=Sw(n);return n.forEach(s=>{s.once("error",_=>t.emit("error",_))}),t.once("close",()=>Qa(n)),t.once("end",()=>Qa(n)),t}di.merge=kw;function Qa(n){n.forEach(t=>t.emit("close"))}});var Ya=B(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.isEmpty=At.isString=void 0;function Ew(n){return typeof n=="string"}At.isString=Ew;function Rw(n){return n===""}At.isEmpty=Rw});var Je=B(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.string=Ce.stream=Ce.pattern=Ce.path=Ce.fs=Ce.errno=Ce.array=void 0;var Aw=hs();Ce.array=Aw;var Cw=ds();Ce.errno=Cw;var Dw=ps();Ce.fs=Dw;var Pw=ws();Ce.path=Pw;var Iw=qa();Ce.pattern=Iw;var Fw=Xa();Ce.stream=Fw;var Ow=Ya();Ce.string=Ow});var eo=B(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.convertPatternGroupToTask=De.convertPatternGroupsToTasks=De.groupPatternsByBaseDirectory=De.getNegativePatternsAsPositive=De.getPositivePatterns=De.convertPatternsToTasks=De.generate=void 0;var Ne=Je();function xw(n,t){let s=za(n,t),_=za(t.ignore,t),h=Ja(s),w=Za(s,_),m=h.filter(E=>Ne.pattern.isStaticPattern(E,t)),T=h.filter(E=>Ne.pattern.isDynamicPattern(E,t)),k=pr(m,w,!1),D=pr(T,w,!0);return k.concat(D)}De.generate=xw;function za(n,t){let s=n;return t.braceExpansion&&(s=Ne.pattern.expandPatternsWithBraceExpansion(s)),t.baseNameMatch&&(s=s.map(_=>_.includes("/")?_:`**/${_}`)),s.map(_=>Ne.pattern.removeDuplicateSlashes(_))}function pr(n,t,s){let _=[],h=Ne.pattern.getPatternsOutsideCurrentDirectory(n),w=Ne.pattern.getPatternsInsideCurrentDirectory(n),m=vr(h),T=vr(w);return _.push(...yr(m,t,s)),"."in T?_.push(gr(".",w,t,s)):_.push(...yr(T,t,s)),_}De.convertPatternsToTasks=pr;function Ja(n){return Ne.pattern.getPositivePatterns(n)}De.getPositivePatterns=Ja;function Za(n,t){return Ne.pattern.getNegativePatterns(n).concat(t).map(Ne.pattern.convertToPositivePattern)}De.getNegativePatternsAsPositive=Za;function vr(n){let t={};return n.reduce((s,_)=>{let h=Ne.pattern.getBaseDirectory(_);return h in s?s[h].push(_):s[h]=[_],s},t)}De.groupPatternsByBaseDirectory=vr;function yr(n,t,s){return Object.keys(n).map(_=>gr(_,n[_],t,s))}De.convertPatternGroupsToTasks=yr;function gr(n,t,s,_){return{dynamic:_,positive:t,negative:s,base:n,patterns:[].concat(t,s.map(Ne.pattern.convertToNegativePattern))}}De.convertPatternGroupToTask=gr});var io=B(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.read=void 0;function Mw(n,t,s){t.fs.lstat(n,(_,h)=>{if(_!==null){to(s,_);return}if(!h.isSymbolicLink()||!t.followSymbolicLink){wr(s,h);return}t.fs.stat(n,(w,m)=>{if(w!==null){if(t.throwErrorOnBrokenSymbolicLink){to(s,w);return}wr(s,h);return}t.markSymbolicLink&&(m.isSymbolicLink=()=>!0),wr(s,m)})})}pi.read=Mw;function to(n,t){n(t)}function wr(n,t){n(null,t)}});var ro=B(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.read=void 0;function Lw(n,t){let s=t.fs.lstatSync(n);if(!s.isSymbolicLink()||!t.followSymbolicLink)return s;try{let _=t.fs.statSync(n);return t.markSymbolicLink&&(_.isSymbolicLink=()=>!0),_}catch(_){if(!t.throwErrorOnBrokenSymbolicLink)return s;throw _}}vi.read=Lw});var no=B(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.createFileSystemAdapter=nt.FILE_SYSTEM_ADAPTER=void 0;var yi=require("fs");nt.FILE_SYSTEM_ADAPTER={lstat:yi.lstat,stat:yi.stat,lstatSync:yi.lstatSync,statSync:yi.statSync};function Bw(n){return n===void 0?nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},nt.FILE_SYSTEM_ADAPTER),n)}nt.createFileSystemAdapter=Bw});var so=B(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});var Hw=no(),mr=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Hw.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,s){return t??s}};br.default=mr});var gt=B(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.statSync=st.stat=st.Settings=void 0;var ao=io(),Uw=ro(),jr=so();st.Settings=jr.default;function Nw(n,t,s){if(typeof t=="function"){ao.read(n,Tr(),t);return}ao.read(n,Tr(t),s)}st.stat=Nw;function Ww(n,t){let s=Tr(t);return Uw.read(n,s)}st.statSync=Ww;function Tr(n={}){return n instanceof jr.default?n:new jr.default(n)}});var uo=B((lj,co)=>{var oo;co.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(oo||(oo=Promise.resolve())).then(n).catch(t=>setTimeout(()=>{throw t},0))});var fo=B((fj,lo)=>{lo.exports=$w;var qw=uo();function $w(n,t){let s,_,h,w=!0;Array.isArray(n)?(s=[],_=n.length):(h=Object.keys(n),s={},_=h.length);function m(k){function D(){t&&t(k,s),t=null}w?qw(D):D()}function T(k,D,E){s[k]=E,(--_===0||D)&&m(D)}_?h?h.forEach(function(k){n[k](function(D,E){T(k,D,E)})}):n.forEach(function(k,D){k(function(E,F){T(D,E,F)})}):m(null),w=!1}});var Sr=B(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var gi=process.versions.node.split(".");if(gi[0]===void 0||gi[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var _o=Number.parseInt(gi[0],10),Kw=Number.parseInt(gi[1],10),ho=10,Gw=10,Vw=_o>ho,Qw=_o===ho&&Kw>=Gw;wi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Vw||Qw});var po=B(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.createDirentFromStats=void 0;var kr=class{constructor(t,s){this.name=t,this.isBlockDevice=s.isBlockDevice.bind(s),this.isCharacterDevice=s.isCharacterDevice.bind(s),this.isDirectory=s.isDirectory.bind(s),this.isFIFO=s.isFIFO.bind(s),this.isFile=s.isFile.bind(s),this.isSocket=s.isSocket.bind(s),this.isSymbolicLink=s.isSymbolicLink.bind(s)}};function Xw(n,t){return new kr(n,t)}mi.createDirentFromStats=Xw});var Er=B(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.fs=void 0;var Yw=po();bi.fs=Yw});var Rr=B(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.joinPathSegments=void 0;function zw(n,t,s){return n.endsWith(s)?n+t:n+s+t}ji.joinPathSegments=zw});var bo=B(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.readdir=at.readdirWithFileTypes=at.read=void 0;var Jw=gt(),vo=fo(),Zw=Sr(),yo=Er(),go=Rr();function e0(n,t,s){if(!t.stats&&Zw.IS_SUPPORT_READDIR_WITH_FILE_TYPES){wo(n,t,s);return}mo(n,t,s)}at.read=e0;function wo(n,t,s){t.fs.readdir(n,{withFileTypes:!0},(_,h)=>{if(_!==null){Ti(s,_);return}let w=h.map(T=>({dirent:T,name:T.name,path:go.joinPathSegments(n,T.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ar(s,w);return}let m=w.map(T=>t0(T,t));vo(m,(T,k)=>{if(T!==null){Ti(s,T);return}Ar(s,k)})})}at.readdirWithFileTypes=wo;function t0(n,t){return s=>{if(!n.dirent.isSymbolicLink()){s(null,n);return}t.fs.stat(n.path,(_,h)=>{if(_!==null){if(t.throwErrorOnBrokenSymbolicLink){s(_);return}s(null,n);return}n.dirent=yo.fs.createDirentFromStats(n.name,h),s(null,n)})}}function mo(n,t,s){t.fs.readdir(n,(_,h)=>{if(_!==null){Ti(s,_);return}let w=h.map(m=>{let T=go.joinPathSegments(n,m,t.pathSegmentSeparator);return k=>{Jw.stat(T,t.fsStatSettings,(D,E)=>{if(D!==null){k(D);return}let F={name:m,path:T,dirent:yo.fs.createDirentFromStats(m,E)};t.stats&&(F.stats=E),k(null,F)})}});vo(w,(m,T)=>{if(m!==null){Ti(s,m);return}Ar(s,T)})})}at.readdir=mo;function Ti(n,t){n(t)}function Ar(n,t){n(null,t)}});var Eo=B(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.readdir=ot.readdirWithFileTypes=ot.read=void 0;var i0=gt(),r0=Sr(),jo=Er(),To=Rr();function n0(n,t){return!t.stats&&r0.IS_SUPPORT_READDIR_WITH_FILE_TYPES?So(n,t):ko(n,t)}ot.read=n0;function So(n,t){return t.fs.readdirSync(n,{withFileTypes:!0}).map(_=>{let h={dirent:_,name:_.name,path:To.joinPathSegments(n,_.name,t.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let w=t.fs.statSync(h.path);h.dirent=jo.fs.createDirentFromStats(h.name,w)}catch(w){if(t.throwErrorOnBrokenSymbolicLink)throw w}return h})}ot.readdirWithFileTypes=So;function ko(n,t){return t.fs.readdirSync(n).map(_=>{let h=To.joinPathSegments(n,_,t.pathSegmentSeparator),w=i0.statSync(h,t.fsStatSettings),m={name:_,path:h,dirent:jo.fs.createDirentFromStats(_,w)};return t.stats&&(m.stats=w),m})}ot.readdir=ko});var Ro=B(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.createFileSystemAdapter=ct.FILE_SYSTEM_ADAPTER=void 0;var Ct=require("fs");ct.FILE_SYSTEM_ADAPTER={lstat:Ct.lstat,stat:Ct.stat,lstatSync:Ct.lstatSync,statSync:Ct.statSync,readdir:Ct.readdir,readdirSync:Ct.readdirSync};function s0(n){return n===void 0?ct.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ct.FILE_SYSTEM_ADAPTER),n)}ct.createFileSystemAdapter=s0});var Ao=B(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var a0=require("path"),o0=gt(),c0=Ro(),Cr=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=c0.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,a0.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new o0.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,s){return t??s}};Dr.default=Cr});var Si=B(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Settings=ut.scandirSync=ut.scandir=void 0;var Co=bo(),u0=Eo(),Pr=Ao();ut.Settings=Pr.default;function l0(n,t,s){if(typeof t=="function"){Co.read(n,Ir(),t);return}Co.read(n,Ir(t),s)}ut.scandir=l0;function f0(n,t){let s=Ir(t);return u0.read(n,s)}ut.scandirSync=f0;function Ir(n={}){return n instanceof Pr.default?n:new Pr.default(n)}});var Po=B((bj,Do)=>{"use strict";function _0(n){var t=new n,s=t;function _(){var w=t;return w.next?t=w.next:(t=new n,s=t),w.next=null,w}function h(w){s.next=w,s=w}return{get:_,release:h}}Do.exports=_0});var Fo=B((jj,Fr)=>{"use strict";var h0=Po();function Io(n,t,s){if(typeof n=="function"&&(s=t,t=n,n=null),s<1)throw new Error("fastqueue concurrency must be greater than 1");var _=h0(d0),h=null,w=null,m=0,T=null,k={push:M,drain:He,saturated:He,pause:E,paused:!1,concurrency:s,running:D,resume:ee,idle:L,length:F,getQueue:P,unshift:K,empty:He,kill:oe,killAndDrain:ue,error:ke};return k;function D(){return m}function E(){k.paused=!0}function F(){for(var z=h,ce=0;z;)z=z.next,ce++;return ce}function P(){for(var z=h,ce=[];z;)ce.push(z.value),z=z.next;return ce}function ee(){if(k.paused){k.paused=!1;for(var z=0;z<k.concurrency;z++)m++,V()}}function L(){return m===0&&k.length()===0}function M(z,ce){var Q=_.get();Q.context=n,Q.release=V,Q.value=z,Q.callback=ce||He,Q.errorHandler=T,m===k.concurrency||k.paused?w?(w.next=Q,w=Q):(h=Q,w=Q,k.saturated()):(m++,t.call(n,Q.value,Q.worked))}function K(z,ce){var Q=_.get();Q.context=n,Q.release=V,Q.value=z,Q.callback=ce||He,m===k.concurrency||k.paused?h?(Q.next=h,h=Q):(h=Q,w=Q,k.saturated()):(m++,t.call(n,Q.value,Q.worked))}function V(z){z&&_.release(z);var ce=h;ce?k.paused?m--:(w===h&&(w=null),h=ce.next,ce.next=null,t.call(n,ce.value,ce.worked),w===null&&k.empty()):--m===0&&k.drain()}function oe(){h=null,w=null,k.drain=He}function ue(){h=null,w=null,k.drain(),k.drain=He}function ke(z){T=z}}function He(){}function d0(){this.value=null,this.callback=He,this.next=null,this.release=He,this.context=null,this.errorHandler=null;var n=this;this.worked=function(s,_){var h=n.callback,w=n.errorHandler,m=n.value;n.value=null,n.callback=He,n.errorHandler&&w(s,m),h.call(n.context,s,_),n.release(n)}}function p0(n,t,s){typeof n=="function"&&(s=t,t=n,n=null);function _(E,F){t.call(this,E).then(function(P){F(null,P)},F)}var h=Io(n,_,s),w=h.push,m=h.unshift;return h.push=T,h.unshift=k,h.drained=D,h;function T(E){var F=new Promise(function(P,ee){w(E,function(L,M){if(L){ee(L);return}P(M)})});return F.catch(He),F}function k(E){var F=new Promise(function(P,ee){m(E,function(L,M){if(L){ee(L);return}P(M)})});return F.catch(He),F}function D(){var E=h.drain,F=new Promise(function(P){h.drain=function(){E(),P()}});return F}}Fr.exports=Io;Fr.exports.promise=p0});var ki=B(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.joinPathSegments=Ve.replacePathSegmentSeparator=Ve.isAppliedFilter=Ve.isFatalError=void 0;function v0(n,t){return n.errorFilter===null?!0:!n.errorFilter(t)}Ve.isFatalError=v0;function y0(n,t){return n===null||n(t)}Ve.isAppliedFilter=y0;function g0(n,t){return n.split(/[/\\]/).join(t)}Ve.replacePathSegmentSeparator=g0;function w0(n,t,s){return n===""?t:n.endsWith(s)?n+t:n+s+t}Ve.joinPathSegments=w0});var Mr=B(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});var m0=ki(),Or=class{constructor(t,s){this._root=t,this._settings=s,this._root=m0.replacePathSegmentSeparator(t,s.pathSegmentSeparator)}};xr.default=Or});var Hr=B(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});var b0=require("events"),j0=Si(),T0=Fo(),Ei=ki(),S0=Mr(),Lr=class extends S0.default{constructor(t,s){super(t,s),this._settings=s,this._scandir=j0.scandir,this._emitter=new b0.EventEmitter,this._queue=T0(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,s){let _={directory:t,base:s};this._queue.push(_,h=>{h!==null&&this._handleError(h)})}_worker(t,s){this._scandir(t.directory,this._settings.fsScandirSettings,(_,h)=>{if(_!==null){s(_,void 0);return}for(let w of h)this._handleEntry(w,t.base);s(null,void 0)})}_handleError(t){this._isDestroyed||!Ei.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,s){if(this._isDestroyed||this._isFatalError)return;let _=t.path;s!==void 0&&(t.path=Ei.joinPathSegments(s,t.name,this._settings.pathSegmentSeparator)),Ei.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Ei.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(_,s===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Br.default=Lr});var Oo=B(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});var k0=Hr(),Ur=class{constructor(t,s){this._root=t,this._settings=s,this._reader=new k0.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(s=>{E0(t,s)}),this._reader.onEntry(s=>{this._storage.push(s)}),this._reader.onEnd(()=>{R0(t,this._storage)}),this._reader.read()}};Nr.default=Ur;function E0(n,t){n(t)}function R0(n,t){n(null,t)}});var xo=B(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});var A0=require("stream"),C0=Hr(),Wr=class{constructor(t,s){this._root=t,this._settings=s,this._reader=new C0.default(this._root,this._settings),this._stream=new A0.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};qr.default=Wr});var Mo=B(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});var D0=Si(),Ri=ki(),P0=Mr(),$r=class extends P0.default{constructor(){super(...arguments),this._scandir=D0.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,s){this._queue.add({directory:t,base:s})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,s){try{let _=this._scandir(t,this._settings.fsScandirSettings);for(let h of _)this._handleEntry(h,s)}catch(_){this._handleError(_)}}_handleError(t){if(Ri.isFatalError(this._settings,t))throw t}_handleEntry(t,s){let _=t.path;s!==void 0&&(t.path=Ri.joinPathSegments(s,t.name,this._settings.pathSegmentSeparator)),Ri.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Ri.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(_,s===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Kr.default=$r});var Lo=B(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});var I0=Mo(),Gr=class{constructor(t,s){this._root=t,this._settings=s,this._reader=new I0.default(this._root,this._settings)}read(){return this._reader.read()}};Vr.default=Gr});var Bo=B(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});var F0=require("path"),O0=Si(),Qr=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,F0.sep),this.fsScandirSettings=new O0.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,s){return t??s}};Xr.default=Qr});var Ci=B(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.Settings=Qe.walkStream=Qe.walkSync=Qe.walk=void 0;var Ho=Oo(),x0=xo(),M0=Lo(),Yr=Bo();Qe.Settings=Yr.default;function L0(n,t,s){if(typeof t=="function"){new Ho.default(n,Ai()).read(t);return}new Ho.default(n,Ai(t)).read(s)}Qe.walk=L0;function B0(n,t){let s=Ai(t);return new M0.default(n,s).read()}Qe.walkSync=B0;function H0(n,t){let s=Ai(t);return new x0.default(n,s).read()}Qe.walkStream=H0;function Ai(n={}){return n instanceof Yr.default?n:new Yr.default(n)}});var Di=B(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});var U0=require("path"),N0=gt(),Uo=Je(),zr=class{constructor(t){this._settings=t,this._fsStatSettings=new N0.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return U0.resolve(this._settings.cwd,t)}_makeEntry(t,s){let _={name:s,path:s,dirent:Uo.fs.createDirentFromStats(s,t)};return this._settings.stats&&(_.stats=t),_}_isFatalError(t){return!Uo.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Jr.default=zr});var tn=B(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});var W0=require("stream"),q0=gt(),$0=Ci(),K0=Di(),Zr=class extends K0.default{constructor(){super(...arguments),this._walkStream=$0.walkStream,this._stat=q0.stat}dynamic(t,s){return this._walkStream(t,s)}static(t,s){let _=t.map(this._getFullEntryPath,this),h=new W0.PassThrough({objectMode:!0});h._write=(w,m,T)=>this._getEntry(_[w],t[w],s).then(k=>{k!==null&&s.entryFilter(k)&&h.push(k),w===_.length-1&&h.end(),T()}).catch(T);for(let w=0;w<_.length;w++)h.write(w);return h}_getEntry(t,s,_){return this._getStat(t).then(h=>this._makeEntry(h,s)).catch(h=>{if(_.errorFilter(h))return null;throw h})}_getStat(t){return new Promise((s,_)=>{this._stat(t,this._fsStatSettings,(h,w)=>h===null?s(w):_(h))})}};en.default=Zr});var No=B(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});var G0=Ci(),V0=Di(),Q0=tn(),rn=class extends V0.default{constructor(){super(...arguments),this._walkAsync=G0.walk,this._readerStream=new Q0.default(this._settings)}dynamic(t,s){return new Promise((_,h)=>{this._walkAsync(t,s,(w,m)=>{w===null?_(m):h(w)})})}async static(t,s){let _=[],h=this._readerStream.static(t,s);return new Promise((w,m)=>{h.once("error",m),h.on("data",T=>_.push(T)),h.once("end",()=>w(_))})}};nn.default=rn});var Wo=B(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});var Ht=Je(),sn=class{constructor(t,s,_){this._patterns=t,this._settings=s,this._micromatchOptions=_,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let s=this._getPatternSegments(t),_=this._splitSegmentsIntoSections(s);this._storage.push({complete:_.length<=1,pattern:t,segments:s,sections:_})}}_getPatternSegments(t){return Ht.pattern.getPatternParts(t,this._micromatchOptions).map(_=>Ht.pattern.isDynamicPattern(_,this._settings)?{dynamic:!0,pattern:_,patternRe:Ht.pattern.makeRe(_,this._micromatchOptions)}:{dynamic:!1,pattern:_})}_splitSegmentsIntoSections(t){return Ht.array.splitWhen(t,s=>s.dynamic&&Ht.pattern.hasGlobStar(s.pattern))}};an.default=sn});var qo=B(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});var X0=Wo(),on=class extends X0.default{match(t){let s=t.split("/"),_=s.length,h=this._storage.filter(w=>!w.complete||w.segments.length>_);for(let w of h){let m=w.sections[0];if(!w.complete&&_>m.length||s.every((k,D)=>{let E=w.segments[D];return!!(E.dynamic&&E.patternRe.test(k)||!E.dynamic&&E.pattern===k)}))return!0}return!1}};cn.default=on});var $o=B(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});var Pi=Je(),Y0=qo(),un=class{constructor(t,s){this._settings=t,this._micromatchOptions=s}getFilter(t,s,_){let h=this._getMatcher(s),w=this._getNegativePatternsRe(_);return m=>this._filter(t,m,h,w)}_getMatcher(t){return new Y0.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let s=t.filter(Pi.pattern.isAffectDepthOfReadingPattern);return Pi.pattern.convertPatternsToRe(s,this._micromatchOptions)}_filter(t,s,_,h){if(this._isSkippedByDeep(t,s.path)||this._isSkippedSymbolicLink(s))return!1;let w=Pi.path.removeLeadingDotSegment(s.path);return this._isSkippedByPositivePatterns(w,_)?!1:this._isSkippedByNegativePatterns(w,h)}_isSkippedByDeep(t,s){return this._settings.deep===1/0?!1:this._getEntryLevel(t,s)>=this._settings.deep}_getEntryLevel(t,s){let _=s.split("/").length;if(t==="")return _;let h=t.split("/").length;return _-h}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,s){return!this._settings.baseNameMatch&&!s.match(t)}_isSkippedByNegativePatterns(t,s){return!Pi.pattern.matchAny(t,s)}};ln.default=un});var Ko=B(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});var wt=Je(),fn=class{constructor(t,s){this._settings=t,this._micromatchOptions=s,this.index=new Map}getFilter(t,s){let _=wt.pattern.convertPatternsToRe(t,this._micromatchOptions),h=wt.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return w=>this._filter(w,_,h)}_filter(t,s,_){let h=wt.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(h)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(h,_))return!1;let w=t.dirent.isDirectory(),m=this._isMatchToPatterns(h,s,w)&&!this._isMatchToPatterns(h,_,w);return this._settings.unique&&m&&this._createIndexRecord(h),m}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,s){if(!this._settings.absolute)return!1;let _=wt.path.makeAbsolute(this._settings.cwd,t);return wt.pattern.matchAny(_,s)}_isMatchToPatterns(t,s,_){let h=wt.pattern.matchAny(t,s);return!h&&_?wt.pattern.matchAny(t+"/",s):h}};_n.default=fn});var Go=B(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});var z0=Je(),hn=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return z0.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};dn.default=hn});var Qo=B(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});var Vo=Je(),pn=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let s=t.path;return this._settings.absolute&&(s=Vo.path.makeAbsolute(this._settings.cwd,s),s=Vo.path.unixify(s)),this._settings.markDirectories&&t.dirent.isDirectory()&&(s+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:s}):s}};vn.default=pn});var Ii=B(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});var J0=require("path"),Z0=$o(),em=Ko(),tm=Go(),im=Qo(),yn=class{constructor(t){this._settings=t,this.errorFilter=new tm.default(this._settings),this.entryFilter=new em.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Z0.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new im.default(this._settings)}_getRootDirectory(t){return J0.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let s=t.base==="."?"":t.base;return{basePath:s,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(s,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};gn.default=yn});var Xo=B(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});var rm=No(),nm=Ii(),wn=class extends nm.default{constructor(){super(...arguments),this._reader=new rm.default(this._settings)}async read(t){let s=this._getRootDirectory(t),_=this._getReaderOptions(t);return(await this.api(s,t,_)).map(w=>_.transform(w))}api(t,s,_){return s.dynamic?this._reader.dynamic(t,_):this._reader.static(s.patterns,_)}};mn.default=wn});var Yo=B(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});var sm=require("stream"),am=tn(),om=Ii(),bn=class extends om.default{constructor(){super(...arguments),this._reader=new am.default(this._settings)}read(t){let s=this._getRootDirectory(t),_=this._getReaderOptions(t),h=this.api(s,t,_),w=new sm.Readable({objectMode:!0,read:()=>{}});return h.once("error",m=>w.emit("error",m)).on("data",m=>w.emit("data",_.transform(m))).once("end",()=>w.emit("end")),w.once("close",()=>h.destroy()),w}api(t,s,_){return s.dynamic?this._reader.dynamic(t,_):this._reader.static(s.patterns,_)}};jn.default=bn});var zo=B(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});var cm=gt(),um=Ci(),lm=Di(),Tn=class extends lm.default{constructor(){super(...arguments),this._walkSync=um.walkSync,this._statSync=cm.statSync}dynamic(t,s){return this._walkSync(t,s)}static(t,s){let _=[];for(let h of t){let w=this._getFullEntryPath(h),m=this._getEntry(w,h,s);m===null||!s.entryFilter(m)||_.push(m)}return _}_getEntry(t,s,_){try{let h=this._getStat(t);return this._makeEntry(h,s)}catch(h){if(_.errorFilter(h))return null;throw h}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Sn.default=Tn});var Jo=B(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});var fm=zo(),_m=Ii(),kn=class extends _m.default{constructor(){super(...arguments),this._reader=new fm.default(this._settings)}read(t){let s=this._getRootDirectory(t),_=this._getReaderOptions(t);return this.api(s,t,_).map(_.transform)}api(t,s,_){return s.dynamic?this._reader.dynamic(t,_):this._reader.static(s.patterns,_)}};En.default=kn});var Zo=B(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Dt=require("fs"),hm=require("os"),dm=Math.max(hm.cpus().length,1);Pt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Dt.lstat,lstatSync:Dt.lstatSync,stat:Dt.stat,statSync:Dt.statSync,readdir:Dt.readdir,readdirSync:Dt.readdirSync};var Rn=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,dm),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,s){return t===void 0?s:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},Pt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Pt.default=Rn});var ic=B((Vj,tc)=>{"use strict";var ec=eo(),pm=Xo(),vm=Yo(),ym=Jo(),An=Zo(),Ue=Je();async function Cn(n,t){We(n);let s=Dn(n,pm.default,t),_=await Promise.all(s);return Ue.array.flatten(_)}(function(n){n.glob=n,n.globSync=t,n.globStream=s,n.async=n;function t(D,E){We(D);let F=Dn(D,ym.default,E);return Ue.array.flatten(F)}n.sync=t;function s(D,E){We(D);let F=Dn(D,vm.default,E);return Ue.stream.merge(F)}n.stream=s;function _(D,E){We(D);let F=[].concat(D),P=new An.default(E);return ec.generate(F,P)}n.generateTasks=_;function h(D,E){We(D);let F=new An.default(E);return Ue.pattern.isDynamicPattern(D,F)}n.isDynamicPattern=h;function w(D){return We(D),Ue.path.escape(D)}n.escapePath=w;function m(D){return We(D),Ue.path.convertPathToPattern(D)}n.convertPathToPattern=m;let T;(function(D){function E(P){return We(P),Ue.path.escapePosixPath(P)}D.escapePath=E;function F(P){return We(P),Ue.path.convertPosixPathToPattern(P)}D.convertPathToPattern=F})(T=n.posix||(n.posix={}));let k;(function(D){function E(P){return We(P),Ue.path.escapeWindowsPath(P)}D.escapePath=E;function F(P){return We(P),Ue.path.convertWindowsPathToPattern(P)}D.convertPathToPattern=F})(k=n.win32||(n.win32={}))})(Cn||(Cn={}));function Dn(n,t,s){let _=[].concat(n),h=new An.default(s),w=ec.generate(_,h),m=new t(h);return w.map(m.read,m)}function We(n){if(![].concat(n).every(_=>Ue.string.isString(_)&&!Ue.string.isEmpty(_)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}tc.exports=Cn});var gm={};cy(gm,{registerWorker:()=>nc});module.exports=uy(gm);var ne=ht(require("apache-arrow"));function Tt(n){switch(n.typeId){case ne.Type.Binary:return{sqlType:"binary"};case ne.Type.Bool:return{sqlType:"bool"};case ne.Type.Date:return{sqlType:"date"};case ne.Type.DateDay:return{sqlType:"date32[d]"};case ne.Type.DateMillisecond:return{sqlType:"date64[ms]"};case ne.Type.Decimal:{let t=n;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case ne.Type.Float:return{sqlType:"float"};case ne.Type.Float16:return{sqlType:"float16"};case ne.Type.Float32:return{sqlType:"float32"};case ne.Type.Float64:return{sqlType:"float64"};case ne.Type.Int:return{sqlType:"int32"};case ne.Type.Int16:return{sqlType:"int16"};case ne.Type.Int32:return{sqlType:"int32"};case ne.Type.Int64:return{sqlType:"int64"};case ne.Type.Uint16:return{sqlType:"uint16"};case ne.Type.Uint32:return{sqlType:"uint32"};case ne.Type.Uint64:return{sqlType:"uint64"};case ne.Type.Uint8:return{sqlType:"uint8"};case ne.Type.IntervalDayTime:return{sqlType:"interval[dt]"};case ne.Type.IntervalYearMonth:return{sqlType:"interval[m]"};case ne.Type.List:return{sqlType:"list",valueType:Tt(n.valueType)};case ne.Type.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:n.byteWidth};case ne.Type.Null:return{sqlType:"null"};case ne.Type.Utf8:return{sqlType:"utf8"};case ne.Type.Struct:return{sqlType:"struct",fields:n.children.map(s=>Xt(s.name,s.type))};case ne.Type.Map:{let t=n;return{sqlType:"map",keyType:Tt(t.keyType),valueType:Tt(t.valueType)}}case ne.Type.Time:return{sqlType:"time[s]"};case ne.Type.TimeMicrosecond:return{sqlType:"time[us]"};case ne.Type.TimeMillisecond:return{sqlType:"time[ms]"};case ne.Type.TimeNanosecond:return{sqlType:"time[ns]"};case ne.Type.TimeSecond:return{sqlType:"time[s]"};case ne.Type.Timestamp:return{sqlType:"timestamp",timezone:n.timezone||void 0};case ne.Type.TimestampSecond:return{sqlType:"timestamp[s]",timezone:n.timezone||void 0};case ne.Type.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:n.timezone||void 0};case ne.Type.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:n.timezone||void 0};case ne.Type.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:n.timezone||void 0}}throw new Error(`unsupported arrow type: ${n.toString()}`)}function Xt(n,t){let s=Tt(t);return s.name=n,s}var $e=ht(require("apache-arrow")),Yt=class{constructor(t,s){this._bindings=t,this._conn=s}close(){this._bindings.disconnect(this._conn)}useUnsafe(t){return t(this._bindings,this._conn)}query(t){let s=this._bindings.runQuery(this._conn,t),_=$e.RecordBatchReader.from(s);return console.assert(_.isSync()),console.assert(_.isFile()),new $e.Table(_)}async send(t,s=!1){let _=this._bindings.startPendingQuery(this._conn,t,s);for(;_==null;)_=await new Promise((m,T)=>{try{m(this._bindings.pollPendingQuery(this._conn))}catch(k){console.log(k),k.message.includes("worker is not set!")?T(new Error("Worker has been terminated")):T(k)}});let h=new zt(this._bindings,this._conn,_),w=$e.RecordBatchReader.from(h);return console.assert(w.isSync()),console.assert(w.isStream()),w}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(t){return this._bindings.getTableNames(this._conn,t)}prepare(t){let s=this._bindings.createPrepared(this._conn,t);return new Wi(this._bindings,this._conn,s)}createScalarFunction(t,s,_){this._bindings.createScalarFunction(this._conn,t,s,_)}insertArrowTable(t,s){let _=$e.tableToIPC(t,"stream");this.insertArrowFromIPCStream(_,s)}insertArrowFromIPCStream(t,s){this._bindings.insertArrowFromIPCStream(this._conn,t,s)}insertCSVFromPath(t,s){this._bindings.insertCSVFromPath(this._conn,t,s)}insertJSONFromPath(t,s){this._bindings.insertJSONFromPath(this._conn,t,s)}},zt=class{constructor(t,s,_){this.bindings=t;this.conn=s;this.header=_;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let t=null;do t=this.bindings.fetchQueryResults(this.conn);while(t==null);return this._depleted=t.length==0,{done:this._depleted,value:t}}[Symbol.iterator](){return this}},Wi=class{constructor(t,s,_){this.bindings=t,this.connectionId=s,this.statementId=_}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let s=this.bindings.runPrepared(this.connectionId,this.statementId,t),_=$e.RecordBatchReader.from(s);return console.assert(_.isSync()),console.assert(_.isFile()),new $e.Table(_)}send(...t){let s=this.bindings.sendPrepared(this.connectionId,this.statementId,t),_=new zt(this.bindings,this.connectionId,s),h=$e.RecordBatchReader.from(_);return console.assert(h.isSync()),console.assert(h.isStream()),h}};function rs(n){return n<=255}function ns(n){return n===256}var os=new TextEncoder,ss=new TextDecoder("utf-8");function qi(n,t,s){let _=os.encode(s),h=n._malloc(_.byteLength),w=n.HEAPU8.subarray(h,h+_.byteLength);w.set(_),n.HEAPF64[(t>>3)+0]=1,n.HEAPF64[(t>>3)+1]=h,n.HEAPF64[(t>>3)+2]=w.byteLength}function Ki(n){switch(n){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function $i(n,t,s,_){let h=n.HEAPU8.subarray(t,t+_*Ki(s));switch(s){case"UINT8":return new Uint8Array(h.buffer,h.byteOffset,_);case"INT8":return new Int8Array(h.buffer,h.byteOffset,_);case"INT32":return new Int32Array(h.buffer,h.byteOffset,_);case"FLOAT":return new Float32Array(h.buffer,h.byteOffset,_);case"DOUBLE":return new Float64Array(h.buffer,h.byteOffset,_);case"VARCHAR":return new Float64Array(h.buffer,h.byteOffset,_);default:return new Array(0)}}function as(n,t,s){let _=n.HEAPU8.subarray(t,t+s);return new Uint8Array(_.buffer,_.byteOffset,s)}function Jt(n,t,s){let _=n.HEAPU8.subarray(t,t+s*8);return new Float64Array(_.buffer,_.byteOffset,s)}function cs(n,t,s,_,h,w,m,T){try{let k=n._udfFunctions.get(_);if(!k){qi(t,s,"Unknown UDF with id: "+_);return}let D=ss.decode(t.HEAPU8.subarray(h,h+w)),E=JSON.parse(D),F=Jt(t,m,T/8),P=U=>{var I;let se=null;switch(U.validityBuffer!==void 0&&(se=as(t,F[U.validityBuffer],E.rows)),U.physicalType){case"VARCHAR":{if(U.dataBuffer===null||U.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(U.lengthBuffer===null||U.lengthBuffer===void 0)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let G=$i(t,F[U.dataBuffer],U.physicalType,E.rows),$=[],le=Jt(t,F[U.lengthBuffer],E.rows);for(let C=0;C<E.rows;++C){if(se!=null&&!se[C]){$.push(null);continue}let S=t.HEAPU8.subarray(G[C],G[C]+le[C]),Z=ss.decode(S);$.push(Z)}return C=>$[C]}case"STRUCT":{let G={},$=[];for(let le=0;le<(((I=U.children)==null?void 0:I.length)||0);++le){let C=U.children[le],S=P(C);$.push(Z=>{G[C.name]=S(Z)})}return se!=null?le=>{if(!se[le])return null;for(let C of $)C(le);return G}:le=>{for(let C of $)C(le);return G}}default:{if(U.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for argument of type: "+U.physicalType);let G=$i(t,F[U.dataBuffer],U.physicalType,E.rows);return se!=null?$=>se[$]?G[$]:null:$=>G[$]}}},ee=[];for(let U=0;U<E.args.length;++U)ee.push(P(E.args[U]));let L=E.rows*Ki(E.ret.physicalType),M=t._malloc(L),K=$i(t,M,E.ret.physicalType,E.rows),V=t._malloc(E.rows),oe=as(t,V,E.rows);if(K.length==0||oe.length==0){qi(t,s,"Can't create physical arrays for result");return}let ue=K;E.ret.physicalType=="VARCHAR"&&(ue=new Array(E.rows));let ke=[];for(let U=0;U<E.args.length;++U)ke.push(null);for(let U=0;U<E.rows;++U){for(let I=0;I<E.args.length;++I)ke[I]=ee[I](U);let se=k.func(...ke);ue[U]=se,oe[U]=se==null?0:1}let z=0;switch(E.ret.physicalType){case"VARCHAR":{let U=new Array(0);z=t._malloc(E.rows*Ki("DOUBLE"));let se=Jt(t,z,E.rows),I=0;for(let C=0;C<E.rows;++C){let S=os.encode(ue[C]||"");U.push(S),se[C]=S.length,I+=S.length}let G=t._malloc(I),$=t.HEAPU8.subarray(G,G+I),le=0;for(let C=0;C<E.rows;++C){K[C]=le;let S=U[C];$.subarray(le,le+S.length).set(S),le+=S.length}}}let ce=3*8,Q=t._malloc(ce),q=Jt(t,Q,3);q[0]=M,q[1]=V,q[2]=z,t.HEAPF64[(s>>3)+0]=0,t.HEAPF64[(s>>3)+1]=Q,t.HEAPF64[(s>>3)+2]=0}catch(k){qi(t,s,k.toString())}}function fy(){let n=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),n.decode(t))}var dt=fy();function ve(n,t){console.error(`FAIL WITH: ${t}`),n.ccall("duckdb_web_fail_with",null,["string"],[t])}function pt(n,t,s){let _=new Uint8Array(n.HEAPU8.buffer,t>>>0,s),h=new Uint8Array(new ArrayBuffer(_.byteLength));return h.set(_),h}function te(n,t,s){return dt(new Uint8Array(n.HEAPU8.buffer,t>>>0,s))}function _e(n,t,s,_){let h=n.stackSave(),w=n.stackAlloc(3*8);s.unshift("number"),_.unshift(w),n.ccall(t,null,s,_);let m=n.HEAPF64[(w>>3)+0],T=n.HEAPF64[(w>>3)+1],k=n.HEAPF64[(w>>3)+2];return n.stackRestore(h),[m,T,k]}function de(n){n.ccall("duckdb_web_clear_response",null,[],[])}var Zt=class{constructor(t){let s=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),_=new Uint8Array(new ArrayBuffer(t.byteLength));_.set(t.subarray(7*8)),this.totalFileReadsCold=s[0],this.totalFileReadsAhead=s[1],this.totalFileReadsCached=s[2],this.totalFileWrites=s[3],this.totalPageAccesses=s[4],this.totalPageLoads=s[5],this.blockSize=s[6],this.blockStats=_}getBlockStats(t,s){return s=s||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},s.file_writes=this.blockStats[t*3+0]&15,s.file_reads_cold=this.blockStats[t*3+0]>>4,s.file_reads_ahead=this.blockStats[t*3+1]&15,s.file_reads_cached=this.blockStats[t*3+1]>>4,s.page_accesses=this.blockStats[t*3+1]&15,s.page_loads=this.blockStats[t*3+1]>>4,s}};var St=new TextEncoder;var ei=class{constructor(t,s){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=t,this._runtime=s,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(t=s=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(t),await this._initPromise),this._initPromise=new Promise(s=>{this._initPromiseResolver=s}),this.onInstantiationProgress=[t],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter(s=>s!=t),globalThis.DUCKDB_BINDINGS=this,this)}open(t){let[s,_,h]=_e(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(s!==0)throw new Error(te(this.mod,_,h));de(this.mod)}reset(){let[t,s,_]=_e(this.mod,"duckdb_web_reset",[],[]);if(t!==0)throw new Error(te(this.mod,s,_));de(this.mod)}getVersion(){let[t,s,_]=_e(this.mod,"duckdb_web_get_version",[],[]);if(t!==0)throw new Error(te(this.mod,s,_));let h=te(this.mod,s,_);return de(this.mod),h}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let s=St.encode(t),_=this.mod._malloc(s.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,_,s.length).set(s);let[w,m,T]=_e(this.mod,"duckdb_web_tokenize_buffer",["number","number"],[_,s.length]);if(this.mod._free(_),w!==0)throw new Error(te(this.mod,m,T));let k=te(this.mod,m,T);return de(this.mod),JSON.parse(k)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new Yt(this,t)}disconnect(t){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[t]),this.pthread)for(let s of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])s.postMessage({cmd:"dropUDFFunctions",connectionId:t})}runQuery(t,s){let _=St.encode(s),h=this.mod._malloc(_.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,h,_.length).set(_);let[m,T,k]=_e(this.mod,"duckdb_web_query_run_buffer",["number","number","number"],[t,h,_.length]);if(this.mod._free(h),m!==0)throw new Error(te(this.mod,T,k));let D=pt(this.mod,T,k);return de(this.mod),D}startPendingQuery(t,s,_=!1){let h=St.encode(s),w=this.mod._malloc(h.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,w,h.length).set(h);let[T,k,D]=_e(this.mod,"duckdb_web_pending_query_start_buffer",["number","number","number","boolean"],[t,w,h.length,_]);if(this.mod._free(w),T!==0)throw new Error(te(this.mod,k,D));if(k==0)return null;let E=pt(this.mod,k,D);return de(this.mod),E}pollPendingQuery(t){let[s,_,h]=_e(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(s!==0)throw new Error(te(this.mod,_,h));if(_==0)return null;let w=pt(this.mod,_,h);return de(this.mod),w}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[s,_,h]=_e(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(ns(s))return de(this.mod),null;if(!rs(s))throw new Error("Unexpected StatusCode from duckdb_web_query_fetch_results ("+s+") and with self reported error as"+te(this.mod,_,h));if(s!==0)throw new Error(te(this.mod,_,h));let w=pt(this.mod,_,h);return de(this.mod),w}getTableNames(t,s){let _=St.encode(s),h=this.mod._malloc(_.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,h,_.length).set(_);let[m,T,k]=_e(this.mod,"duckdb_web_get_tablenames_buffer",["number","number","number"],[t,h,_.length]);if(this.mod._free(h),m!==0)throw new Error(te(this.mod,T,k));let D=te(this.mod,T,k);return de(this.mod),JSON.parse(D)}createScalarFunction(t,s,_,h){let w={functionId:this._nextUDFId,name:s,returnType:Tt(_)},m={functionId:w.functionId,connectionId:t,name:s,returnType:_,func:h};this._nextUDFId+=1;let[T,k,D]=_e(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(w)]);if(T!==0)throw new Error(te(this.mod,k,D));if(de(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(m.functionId,m),this.pthread)for(let E of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])E.postMessage({cmd:"registerUDFFunction",udf:m})}createPrepared(t,s){let _=St.encode(s),h=this.mod._malloc(_.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,h,_.length).set(_);let[m,T,k]=_e(this.mod,"duckdb_web_prepared_create_buffer",["number","number","number"],[t,h,_.length]);if(this.mod._free(h),m!==0)throw new Error(te(this.mod,T,k));return de(this.mod),T}closePrepared(t,s){let[_,h,w]=_e(this.mod,"duckdb_web_prepared_close",["number","number"],[t,s]);if(_!==0)throw new Error(te(this.mod,h,w));de(this.mod)}runPrepared(t,s,_){let[h,w,m]=_e(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,s,JSON.stringify(_)]);if(h!==0)throw new Error(te(this.mod,w,m));let T=pt(this.mod,w,m);return de(this.mod),T}sendPrepared(t,s,_){let[h,w,m]=_e(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,s,JSON.stringify(_)]);if(h!==0)throw new Error(te(this.mod,w,m));let T=pt(this.mod,w,m);return de(this.mod),T}insertArrowFromIPCStream(t,s,_){if(s.length==0)return;let h=this.mod._malloc(s.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,h,s.length).set(s);let m=_?JSON.stringify(_):"",[T,k,D]=_e(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,h,s.length,m]);if(this.mod._free(h),T!==0)throw new Error(te(this.mod,k,D))}insertCSVFromPath(t,s,_){if(_.columns!==void 0){_.columnsFlat=[];for(let D in _.columns)_.columnsFlat.push(Xt(D,_.columns[D]))}let h={..._};h.columns=h.columnsFlat,delete h.columnsFlat;let w=JSON.stringify(h),[m,T,k]=_e(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,s,w]);if(m!==0)throw new Error(te(this.mod,T,k))}insertJSONFromPath(t,s,_){if(_.columns!==void 0){_.columnsFlat=[];for(let D in _.columns)_.columnsFlat.push(Xt(D,_.columns[D]))}let h={..._};h.columns=h.columnsFlat,delete h.columnsFlat;let w=JSON.stringify(h),[m,T,k]=_e(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,s,w]);if(m!==0)throw new Error(te(this.mod,T,k))}globFiles(t){let[s,_,h]=_e(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(s!==0)throw new Error(te(this.mod,_,h));let w=te(this.mod,_,h);de(this.mod);let m=JSON.parse(w);return m??[]}registerFileURL(t,s,_,h=!1){s===void 0&&(s=t);let[w,m,T]=_e(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[t,s,_,h]);if(w!==0)throw new Error(te(this.mod,m,T));de(this.mod)}registerFileText(t,s){let _=St.encode(s);this.registerFileBuffer(t,_)}registerFileBuffer(t,s){let _=this.mod._malloc(s.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,_,s.length).set(s);let[w,m,T]=_e(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,_,s.length]);if(w!==0)throw new Error(te(this.mod,m,T));de(this.mod)}async prepareFileHandle(t,s){if(s===3&&this._runtime.prepareFileHandles){let _=await this._runtime.prepareFileHandles([t],3);for(let h of _){let{handle:w,path:m,fromCached:T}=h;!T&&w.getSize()&&await this.registerFileHandleAsync(m,w,3,!0)}return}throw new Error(`prepareFileHandle: unsupported protocol ${s}`)}async prepareDBFileHandle(t,s){if(s===3&&this._runtime.prepareDBFileHandle){let _=await this._runtime.prepareDBFileHandle(t,3);for(let h of _){let{handle:w,path:m,fromCached:T}=h;!T&&w.getSize()&&await this.registerFileHandleAsync(m,w,3,!0)}return}throw new Error(`prepareDBFileHandle: unsupported protocol ${s}`)}async prepareFileHandleAsync(t,s,_,h){if(_===3&&!(s instanceof FileSystemSyncAccessHandle)){if(s instanceof FileSystemFileHandle){let w=s;try{s=await w.createSyncAccessHandle()}catch(m){throw new Error(m.message+":"+t)}}else if(t!=null)try{s=await(await(await navigator.storage.getDirectory()).getFileHandle(t)).createSyncAccessHandle()}catch(w){throw new Error(w.message+":"+t)}}return s}async registerFileHandleAsync(t,s,_,h){let w=await this.prepareFileHandleAsync(t,s,_,h);this.registerFileHandle(t,w,_,h)}registerFileHandle(t,s,_,h){var k;let[w,m,T]=_e(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[t,t,_,h]);if(w!==0)throw new Error(te(this.mod,m,T));if(de(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,s),(k=globalThis.DUCKDB_RUNTIME._preparedHandles)!=null&&k[t]&&delete globalThis.DUCKDB_RUNTIME._preparedHandles[t],this.pthread){for(let D of this.pthread.runningWorkers)D.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:s});for(let D of this.pthread.unusedWorkers)D.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[s,_,h]=_e(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(s!==0)throw new Error(te(this.mod,_,h));de(this.mod)}dropFiles(t){let s=[],_=-1;try{for(let T of t??[])if(T!=null&&T.length>0){let k=this.mod.lengthBytesUTF8(T)+1,D=this.mod._malloc(k);if(!D)throw new Error(`Failed to allocate memory for string: ${T}`);this.mod.stringToUTF8(T,D,k),s.push(D)}if(_=this.mod._malloc(s.length*4),!_)throw new Error("Failed to allocate memory for pointers array");for(let T=0;T<s.length;T++)this.mod.HEAP32[(_>>2)+T]=s[T];let[h,w,m]=_e(this.mod,"duckdb_web_fs_drop_files",["number","number"],[_,s.length]);if(h!==0)throw new Error(te(this.mod,w,m));de(this.mod)}finally{for(let h of s)this.mod._free(h);_>0&&this.mod._free(_)}}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,s){let[_,h,w]=_e(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,s]);if(_!==0)throw new Error(te(this.mod,h,w));de(this.mod)}copyFileToBuffer(t){let[s,_,h]=_e(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(s!==0)throw new Error(te(this.mod,_,h));let w=new Uint8Array(this.mod.HEAPU8.buffer,_>>>0,h),m=new Uint8Array(w.length);return m.set(w),de(this.mod),m}async registerOPFSFileName(t){if(t.startsWith("opfs://"))return this.prepareFileHandle(t,3);throw new Error("Not an OPFS file name: "+t)}collectFileStatistics(t,s){let[_,h,w]=_e(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,s]);if(_!==0)throw new Error(te(this.mod,h,w))}exportFileStatistics(t){let[s,_,h]=_e(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(s!==0)throw new Error(te(this.mod,_,h));return new Zt(new Uint8Array(this.mod.HEAPU8.buffer,_>>>0,h))}};var ti=class{constructor(){this._bindings=null;this._nextMessageId=0}log(t){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:t},[])}sendOK(t){this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"OK",data:null},[])}failWith(t,s){let _={name:s.name,message:s.message,stack:s.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"ERROR",data:_},[])}async onMessage(t){switch(t.type){case"PING":this.sendOK(t);return;case"INSTANTIATE":this._bindings!=null&&this.failWith(t,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(t.data[0],t.data[1],s=>{this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"INSTANTIATE_PROGRESS",data:s},[])}),this.sendOK(t)}catch(s){console.log(s),this._bindings=null,this.failWith(t,s)}return;default:break}if(!this._bindings)return this.failWith(t,new Error("duckdb is not initialized"));try{switch(t.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(t);break;case"OPEN":{let s=t.data.path,_=!!(this._bindings.getFeatureFlags()&32);s!=null&&s.startsWith("opfs://")&&!_&&(await this._bindings.prepareDBFileHandle(s,3),t.data.useDirectIO=!0),this._bindings.open(t.data),this.sendOK(t);break}case"DROP_FILE":this._bindings.dropFile(t.data),this.sendOK(t);break;case"DROP_FILES":this._bindings.dropFiles(t.data),this.sendOK(t);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(t);break;case"CONNECT":{let s=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"CONNECTION_INFO",data:s.useUnsafe((_,h)=>h)},[]);break}case"DISCONNECT":this._bindings.disconnect(t.data),this.sendOK(t);break;case"CREATE_PREPARED":{let s=this._bindings.createPrepared(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"PREPARED_STATEMENT_ID",data:s},[]);break}case"CLOSE_PREPARED":{this._bindings.closePrepared(t.data[0],t.data[1]),this.sendOK(t);break}case"RUN_PREPARED":{let s=this._bindings.runPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:s},[s.buffer]);break}case"RUN_QUERY":{let s=this._bindings.runQuery(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:s},[s.buffer]);break}case"SEND_PREPARED":{let s=this._bindings.sendPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER",data:s},[s.buffer]);break}case"START_PENDING_QUERY":{let s=this._bindings.startPendingQuery(t.data[0],t.data[1],t.data[2]),_=[];s&&_.push(s.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:s},_);break}case"POLL_PENDING_QUERY":{let s=this._bindings.pollPendingQuery(t.data),_=[];s&&_.push(s.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:s},_);break}case"CANCEL_PENDING_QUERY":{let s=this._bindings.cancelPendingQuery(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SUCCESS",data:s},[]);break}case"FETCH_QUERY_RESULTS":{let s=this._bindings.fetchQueryResults(t.data),_=s?[s.buffer]:[];this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_CHUNK",data:s},_);break}case"GET_TABLE_NAMES":{let s=this._bindings.getTableNames(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"TABLE_NAMES",data:s},[]);break}case"GLOB_FILE_INFOS":{let s=this._bindings.globFiles(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_INFOS",data:s},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(t.data[0],t.data[1],t.data[2],t.data[3]),this.sendOK(t);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(t.data[0],t.data[1]),this.sendOK(t);break;case"REGISTER_FILE_HANDLE":await this._bindings.registerFileHandleAsync(t.data[0],t.data[1],t.data[2],t.data[3]),this.sendOK(t);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(t.data[0],t.data[1]),this.sendOK(t);break;case"COPY_FILE_TO_BUFFER":{let s=this._bindings.copyFileToBuffer(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_BUFFER",data:s},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(t.data[0],t.data[1]),this.sendOK(t);break;case"REGISTER_OPFS_FILE_NAME":{!!(this._bindings.getFeatureFlags()&32)||await this._bindings.registerOPFSFileName(t.data[0]),this.sendOK(t);break}case"EXPORT_FILE_STATISTICS":{this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(t.data)},[]);break}case"INSERT_ARROW_FROM_IPC_STREAM":{this._bindings.insertArrowFromIPCStream(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"IMPORT_CSV_FROM_PATH":{this._bindings.insertCSVFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"IMPORT_JSON_FROM_PATH":{this._bindings.insertJSONFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"TOKENIZE":{let s=this._bindings.tokenize(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SCRIPT_TOKENS",data:s},[]);break}}}catch(s){return console.log(s),this.failWith(t,s)}}};var _s=ht(Vi());var ls=ht(Vi());var fs=ht(require("fs")),ri=class extends ei{constructor(t,s,_,h){super(t,s),this.mainModulePath=_,this.pthreadWorkerPath=h}locateFile(t,s){if(t.endsWith(".wasm"))return this.mainModulePath;if(t.endsWith(".worker.js")){if(!this.pthreadWorkerPath)throw new Error("Missing DuckDB worker path!");return this.pthreadWorkerPath}throw new Error(`WASM instantiation requested unexpected file: prefix=${s} path=${t}`)}instantiateWasm(t,s){globalThis.DUCKDB_RUNTIME={};for(let h of Object.getOwnPropertyNames(this._runtime))h!="constructor"&&(globalThis.DUCKDB_RUNTIME[h]=Object.getOwnPropertyDescriptor(this._runtime,h).value);let _=fs.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(_,t).then(h=>{s(h.instance,h.module)}),[]}instantiateImpl(t){return(0,ls.default)({...t,instantiateWasm:this.instantiateWasm.bind(this)})}};var ni=class extends ri{constructor(t,s,_,h=null){super(t,s,_,h)}instantiateImpl(t){return(0,_s.default)({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var Re=ht(require("fs"));var rc=ht(ic());var pe={_files:new Map,_filesById:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(n,t){try{let s=pe._fileInfoCache.get(t),[_,h,w]=_e(n,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(s==null?void 0:s.cacheEpoch)||0]);if(_!==0)return ve(n,te(n,h,w)),null;if(w===0)return de(n),s;let m=te(n,h,w);de(n);let T=JSON.parse(m);return T==null?null:(pe._fileInfoCache.set(t,T),T)}catch(s){return console.log(s),ve(n,s.toString()),null}},testPlatformFeature:(n,t)=>{switch(t){case 1:return typeof BigInt64Array<"u";default:return console.warn(`test for unknown feature: ${t}`),!1}},getDefaultDataProtocol(n){return 1},openFile(n,t,s){var _,h;try{pe._fileInfoCache.delete(t);let w=pe.resolveFileInfo(n,t);switch(w==null?void 0:w.dataProtocol){case 1:{let m=(_=pe._files)==null?void 0:_.get(w.dataUrl);if(m==null){if(s&128)return 0;m=Re.default.openSync(w.dataUrl,Re.default.constants.O_CREAT|Re.default.constants.O_RDWR,Re.default.constants.S_IRUSR|Re.default.constants.S_IWUSR),(h=pe._filesById)==null||h.set(w.fileId,m)}let T=Re.default.fstatSync(m).size,k=n._malloc(2*8);return n.HEAPF64[(k>>3)+0]=+T,n.HEAPF64[(k>>3)+1]=0,k}case 2:case 3:case 4:case 5:ve(n,"Unsupported data protocol")}}catch(w){console.log(w),ve(n,w.toString())}return 0},syncFile:(n,t)=>{},closeFile:(n,t)=>{try{let s=pe._fileInfoCache.get(t);switch(pe._fileInfoCache.delete(t),s==null?void 0:s.dataProtocol){case 1:{let _=pe._filesById.get(t);pe._filesById.delete(t),_!=null&&Re.default.closeSync(_);break}case 2:case 3:case 4:case 5:break}}catch(s){console.log(s),ve(n,s.toString())}return 0},dropFile:(n,t,s)=>{},truncateFile:(n,t,s)=>{try{let _=pe.resolveFileInfo(n,t);switch(_==null?void 0:_.dataProtocol){case 1:{Re.default.truncateSync(_.dataUrl,s);break}case 2:case 3:case 4:case 5:ve(n,"Unsupported data protocol")}}catch(_){console.log(_),ve(n,_.toString())}return 0},readFile:(n,t,s,_,h)=>{try{let w=pe.resolveFileInfo(n,t);switch(w==null?void 0:w.dataProtocol){case 1:{let m=pe._filesById.get(t);return m==null?(ve(n,`File ${t} is missing a file descriptor`),0):Re.default.readSync(m,n.HEAPU8,s,_,h)}case 2:case 3:case 4:case 5:ve(n,"Unsupported data protocol")}}catch(w){console.log(w),ve(n,w.toString())}return 0},writeFile:(n,t,s,_,h)=>{try{let w=pe.resolveFileInfo(n,t);switch(w==null?void 0:w.dataProtocol){case 1:{let m=pe._filesById.get(t);if(m==null)return ve(n,`File ${t} is missing a file descriptor`),0;let T=n.HEAPU8.subarray(s,s+_);return Re.default.writeSync(m,T,0,T.length,h)}case 2:case 3:case 4:case 5:ve(n,"Unsupported data protocol")}}catch(w){console.log(w),ve(n,w.toString())}return 0},progressUpdate:(n,t,s)=>{},getLastFileModificationTime:(n,t)=>{try{let s=pe.resolveFileInfo(n,t);switch(s==null?void 0:s.dataProtocol){case 1:{let _=pe._filesById.get(t);return _==null?(ve(n,`File ${t} is missing a file descriptor`),0):Re.default.fstatSync(_).mtime.getTime()/1e3}case 2:case 3:case 4:case 5:ve(n,"Unsupported data protocol")}}catch(s){console.log(s),ve(n,s.toString())}return 0},checkDirectory:(n,t,s)=>{try{let _=dt(n.HEAPU8.subarray(t,t+s));return Re.default.existsSync(_)}catch(_){return console.log(_),ve(n,_.toString()),!1}},createDirectory:(n,t,s)=>{try{let _=dt(n.HEAPU8.subarray(t,t+s));return Re.default.mkdirSync(_)}catch(_){return console.log(_),ve(n,_.toString()),0}},removeDirectory:(n,t,s)=>{try{let _=dt(n.HEAPU8.subarray(t,t+s));return Re.default.rmdirSync(_)}catch(_){return console.log(_),ve(n,_.toString()),0}},listDirectoryEntries:(n,t,s)=>(ve(n,"Not Implemented"),!1),glob:(n,t,s)=>{try{let _=te(n,t,s),h=rc.sync([_],{dot:!0});for(let w of h)n.ccall("duckdb_web_fs_glob_add_path",null,["string"],[w])}catch(_){return console.log(_),ve(n,_.toString()),0}},moveFile:(n,t,s,_,h)=>{var k,D;let w=te(n,t,s),m=te(n,_,h),T=(k=pe._files)==null?void 0:k.get(w);T!==void 0&&(pe._files.delete(T),pe._files.set(m,T));for(let[E,F]of((D=pe._fileInfoCache)==null?void 0:D.entries())||[])if(F.dataUrl==w){pe._fileInfoCache.delete(E);break}return!0},checkFile:(n,t,s)=>{try{let _=dt(n.HEAPU8.subarray(t,t+s));return Re.default.existsSync(_)}catch(_){return console.log(_),ve(n,_.toString()),!1}},removeFile:(n,t,s)=>{try{let _=dt(n.HEAPU8.subarray(t,t+s));return Re.default.rmSync(_)}catch(_){return console.log(_),ve(n,_.toString()),0}},callScalarUDF:(n,t,s,_,h,w,m)=>{cs(pe,n,t,s,_,h,w,m)}};var Pn=class extends ti{postMessage(t,s){globalThis.postMessage(t,s)}async instantiate(t,s,_){return await new ni(this,pe,t,s).instantiate(_)}};function nc(){let n=new Pn;globalThis.onmessage=async t=>{await n.onMessage(t.data)}}nc();0&&(module.exports={registerWorker});
3
- /*! Bundled license information:
4
-
5
- is-extglob/index.js:
6
- (*!
7
- * is-extglob <https://github.com/jonschlinkert/is-extglob>
8
- *
9
- * Copyright (c) 2014-2016, Jon Schlinkert.
10
- * Licensed under the MIT License.
11
- *)
12
-
13
- is-glob/index.js:
14
- (*!
15
- * is-glob <https://github.com/jonschlinkert/is-glob>
16
- *
17
- * Copyright (c) 2014-2017, Jon Schlinkert.
18
- * Released under the MIT License.
19
- *)
20
-
21
- is-number/index.js:
22
- (*!
23
- * is-number <https://github.com/jonschlinkert/is-number>
24
- *
25
- * Copyright (c) 2014-present, Jon Schlinkert.
26
- * Released under the MIT License.
27
- *)
28
-
29
- to-regex-range/index.js:
30
- (*!
31
- * to-regex-range <https://github.com/micromatch/to-regex-range>
32
- *
33
- * Copyright (c) 2015-present, Jon Schlinkert.
34
- * Released under the MIT License.
35
- *)
36
-
37
- fill-range/index.js:
38
- (*!
39
- * fill-range <https://github.com/jonschlinkert/fill-range>
40
- *
41
- * Copyright (c) 2014-present, Jon Schlinkert.
42
- * Licensed under the MIT License.
43
- *)
44
-
45
- queue-microtask/index.js:
46
- (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
47
-
48
- run-parallel/index.js:
49
- (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
50
- */
51
- //# sourceMappingURL=duckdb-node-mvp.worker.cjs.map