"use strict";var Z0=Object.create;var Lr=Object.defineProperty;var iv=Object.getOwnPropertyDescriptor;var ev=Object.getOwnPropertyNames;var rv=Object.getPrototypeOf,tv=Object.prototype.hasOwnProperty;var Qe=(f,v)=>()=>(v||f((v={exports:{}}).exports,v),v.exports),nv=(f,v)=>{for(var n in v)Lr(f,n,{get:v[n],enumerable:!0})},uc=(f,v,n,j)=>{if(v&&typeof v=="object"||typeof v=="function")for(let b of ev(v))!tv.call(f,b)&&b!==n&&Lr(f,b,{get:()=>v[b],enumerable:!(j=iv(v,b))||j.enumerable});return f};var Ze=(f,v,n)=>(n=f!=null?Z0(rv(f)):{},uc(v||!f||!f.__esModule?Lr(n,"default",{value:f,enumerable:!0}):n,f)),av=f=>uc(Lr({},"__esModule",{value:!0}),f);var Fc=Qe((exports,module)=>{(function(){"use strict";var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,AMD=typeof define=="function"&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(f){return Object.prototype.toString.call(f)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(f){return typeof f=="object"&&f.buffer&&f.buffer.constructor===ArrayBuffer});var createOutputMethod=function(f,v){return function(n){return new Sha256(v,!0).update(n)[f]()}},createMethod=function(f){var v=createOutputMethod("hex",f);NODE_JS&&(v=nodeWrap(v,f)),v.create=function(){return new Sha256(f)},v.update=function(b){return v.create().update(b)};for(var n=0;n>2]|=f[b]<>2]|=j<>2]|=(192|j>>6)<>2]|=(128|j&63)<=57344?(R[C>>2]|=(224|j>>12)<>2]|=(128|j>>6&63)<>2]|=(128|j&63)<>2]|=(240|j>>18)<>2]|=(128|j>>12&63)<>2]|=(128|j>>6&63)<>2]|=(128|j&63)<=64?(this.block=R[16],this.start=C-64,this.hash(),this.hashed=!0):this.start=C}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var f=this.blocks,v=this.lastByteIndex;f[16]=this.block,f[v>>2]|=EXTRA[v&3],this.block=f[16],v>=56&&(this.hashed||this.hash(),f[0]=this.block,f[16]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=f[8]=f[9]=f[10]=f[11]=f[12]=f[13]=f[14]=f[15]=0),f[14]=this.hBytes<<3|this.bytes>>>29,f[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var f=this.h0,v=this.h1,n=this.h2,j=this.h3,b=this.h4,C=this.h5,S=this.h6,R=this.h7,A=this.blocks,N,P,ri,$,J,bi,wi,pi,Ii,Ri,ki;for(N=16;N<64;++N)J=A[N-15],P=(J>>>7|J<<25)^(J>>>18|J<<14)^J>>>3,J=A[N-2],ri=(J>>>17|J<<15)^(J>>>19|J<<13)^J>>>10,A[N]=A[N-16]+P+A[N-7]+ri<<0;for(ki=v&n,N=0;N<64;N+=4)this.first?(this.is224?(pi=300032,J=A[0]-1413257819,R=J-150054599<<0,j=J+24177077<<0):(pi=704751109,J=A[0]-210244248,R=J-1521486534<<0,j=J+143694565<<0),this.first=!1):(P=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),ri=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7),pi=f&v,$=pi^f&n^ki,wi=b&C^~b&S,J=R+ri+wi+K[N]+A[N],bi=P+$,R=j+J<<0,j=J+bi<<0),P=(j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10),ri=(R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7),Ii=j&f,$=Ii^j&v^pi,wi=R&b^~R&C,J=S+ri+wi+K[N+1]+A[N+1],bi=P+$,S=n+J<<0,n=J+bi<<0,P=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),ri=(S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7),Ri=n&j,$=Ri^n&f^Ii,wi=S&R^~S&b,J=C+ri+wi+K[N+2]+A[N+2],bi=P+$,C=v+J<<0,v=J+bi<<0,P=(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10),ri=(C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7),ki=v&n,$=ki^v&j^Ri,wi=C&S^~C&R,J=b+ri+wi+K[N+3]+A[N+3],bi=P+$,b=f+J<<0,f=J+bi<<0;this.h0=this.h0+f<<0,this.h1=this.h1+v<<0,this.h2=this.h2+n<<0,this.h3=this.h3+j<<0,this.h4=this.h4+b<<0,this.h5=this.h5+C<<0,this.h6=this.h6+S<<0,this.h7=this.h7+R<<0},Sha256.prototype.hex=function(){this.finalize();var f=this.h0,v=this.h1,n=this.h2,j=this.h3,b=this.h4,C=this.h5,S=this.h6,R=this.h7,A=HEX_CHARS[f>>28&15]+HEX_CHARS[f>>24&15]+HEX_CHARS[f>>20&15]+HEX_CHARS[f>>16&15]+HEX_CHARS[f>>12&15]+HEX_CHARS[f>>8&15]+HEX_CHARS[f>>4&15]+HEX_CHARS[f&15]+HEX_CHARS[v>>28&15]+HEX_CHARS[v>>24&15]+HEX_CHARS[v>>20&15]+HEX_CHARS[v>>16&15]+HEX_CHARS[v>>12&15]+HEX_CHARS[v>>8&15]+HEX_CHARS[v>>4&15]+HEX_CHARS[v&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[n&15]+HEX_CHARS[j>>28&15]+HEX_CHARS[j>>24&15]+HEX_CHARS[j>>20&15]+HEX_CHARS[j>>16&15]+HEX_CHARS[j>>12&15]+HEX_CHARS[j>>8&15]+HEX_CHARS[j>>4&15]+HEX_CHARS[j&15]+HEX_CHARS[b>>28&15]+HEX_CHARS[b>>24&15]+HEX_CHARS[b>>20&15]+HEX_CHARS[b>>16&15]+HEX_CHARS[b>>12&15]+HEX_CHARS[b>>8&15]+HEX_CHARS[b>>4&15]+HEX_CHARS[b&15]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[C&15]+HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[S&15];return this.is224||(A+=HEX_CHARS[R>>28&15]+HEX_CHARS[R>>24&15]+HEX_CHARS[R>>20&15]+HEX_CHARS[R>>16&15]+HEX_CHARS[R>>12&15]+HEX_CHARS[R>>8&15]+HEX_CHARS[R>>4&15]+HEX_CHARS[R&15]),A},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var f=this.h0,v=this.h1,n=this.h2,j=this.h3,b=this.h4,C=this.h5,S=this.h6,R=this.h7,A=[f>>24&255,f>>16&255,f>>8&255,f&255,v>>24&255,v>>16&255,v>>8&255,v&255,n>>24&255,n>>16&255,n>>8&255,n&255,j>>24&255,j>>16&255,j>>8&255,j&255,b>>24&255,b>>16&255,b>>8&255,b&255,C>>24&255,C>>16&255,C>>8&255,C&255,S>>24&255,S>>16&255,S>>8&255,S&255];return this.is224||A.push(R>>24&255,R>>16&255,R>>8&255,R&255),A},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var f=new ArrayBuffer(this.is224?28:32),v=new DataView(f);return v.setUint32(0,this.h0),v.setUint32(4,this.h1),v.setUint32(8,this.h2),v.setUint32(12,this.h3),v.setUint32(16,this.h4),v.setUint32(20,this.h5),v.setUint32(24,this.h6),this.is224||v.setUint32(28,this.h7),f};function HmacSha256(f,v,n){var j,b=typeof f;if(b==="string"){var C=[],S=f.length,R=0,A;for(j=0;j>6,C[R++]=128|A&63):A<55296||A>=57344?(C[R++]=224|A>>12,C[R++]=128|A>>6&63,C[R++]=128|A&63):(A=65536+((A&1023)<<10|f.charCodeAt(++j)&1023),C[R++]=240|A>>18,C[R++]=128|A>>12&63,C[R++]=128|A>>6&63,C[R++]=128|A&63);f=C}else if(b==="object"){if(f===null)throw new Error(ERROR);if(ARRAY_BUFFER&&f.constructor===ArrayBuffer)f=new Uint8Array(f);else if(!Array.isArray(f)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(f)))throw new Error(ERROR)}else throw new Error(ERROR);f.length>64&&(f=new Sha256(v,!0).update(f).array());var N=[],P=[];for(j=0;j<64;++j){var ri=f[j]||0;N[j]=92^ri,P[j]=54^ri}Sha256.call(this,v,n),this.update(P),this.oKeyPad=N,this.inner=!0,this.sharedMemory=n}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var f=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(f),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()});var va=Qe(()=>{});var ha=Qe(()=>{});var Nc=Qe((Hc,ya)=>{"use strict";var Bc=(()=>{var f=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(f=f||__filename),function(v={}){var n=v,j,b;n.ready=new Promise((i,e)=>{j=i,b=e});var C=Object.assign({},n),S=[],R="./this.program",A=(i,e)=>{throw e},N=typeof window=="object",P=typeof importScripts=="function",ri=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",$="";function J(i){return n.locateFile?n.locateFile(i,$):$+i}var bi,wi,pi,Ii;if(ri){var Ri=va(),ki=ha();P?$=ki.dirname($)+"/":$=__dirname+"/",bi=(i,e)=>(i=xe(i)?new URL(i):ki.normalize(i),Ri.readFileSync(i,e?void 0:"utf8")),pi=i=>{var e=bi(i,!0);return e.buffer||(e=new Uint8Array(e)),e},wi=(i,e,r,t=!0)=>{i=xe(i)?new URL(i):ki.normalize(i),Ri.readFile(i,t?void 0:"utf8",(a,o)=>{a?r(a):e(t?o.buffer:o)})},!n.thisProgram&&process.argv.length>1&&(R=process.argv[1].replace(/\\/g,"/")),S=process.argv.slice(2),A=(i,e)=>{throw process.exitCode=i,e},n.inspect=()=>"[Emscripten Module object]"}else(N||P)&&(P?$=self.location.href:typeof document<"u"&&document.currentScript&&($=document.currentScript.src),f&&($=f),$.indexOf("blob:")!==0?$=$.substr(0,$.replace(/[?#].*/,"").lastIndexOf("/")+1):$="",bi=i=>{var e=new XMLHttpRequest;return e.open("GET",i,!1),e.send(null),e.responseText},P&&(pi=i=>{var e=new XMLHttpRequest;return e.open("GET",i,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),wi=(i,e,r)=>{var t=new XMLHttpRequest;t.open("GET",i,!0),t.responseType="arraybuffer",t.onload=()=>{if(t.status==200||t.status==0&&t.response){e(t.response);return}r()},t.onerror=r,t.send(null)},Ii=i=>document.title=i);var ee=n.print||console.log.bind(console),Ei=n.printErr||console.error.bind(console);Object.assign(n,C),C=null,n.arguments&&(S=n.arguments),n.thisProgram&&(R=n.thisProgram),n.quit&&(A=n.quit);var Bi;n.wasmBinary&&(Bi=n.wasmBinary);var _e=n.noExitRuntime||!0;typeof WebAssembly!="object"&&Di("no native wasm support detected");var Hi,Z=!1,mi;function Si(i,e){i||Di(e)}var vi,ai,di,_i,F,ii,Jr,Qr;function De(){var i=Hi.buffer;n.HEAP8=vi=new Int8Array(i),n.HEAP16=di=new Int16Array(i),n.HEAPU8=ai=new Uint8Array(i),n.HEAPU16=_i=new Uint16Array(i),n.HEAP32=F=new Int32Array(i),n.HEAPU32=ii=new Uint32Array(i),n.HEAPF32=Jr=new Float32Array(i),n.HEAPF64=Qr=new Float64Array(i)}var nr,Re=[],Ae=[],Zr=[],Te=[],ar=!1,it=0;function et(){return _e||it>0}function rt(){if(n.preRun)for(typeof n.preRun=="function"&&(n.preRun=[n.preRun]);n.preRun.length;)ot(n.preRun.shift());Vi(Re)}function tt(){ar=!0,Vi(Ae)}function nt(){Vi(Zr)}function at(){if(n.postRun)for(typeof n.postRun=="function"&&(n.postRun=[n.postRun]);n.postRun.length;)lt(n.postRun.shift());Vi(Te)}function ot(i){Re.unshift(i)}function st(i){Ae.unshift(i)}function lt(i){Te.unshift(i)}var Ai=0,re=null,qi=null;function ct(i){Ai++,n.monitorRunDependencies&&n.monitorRunDependencies(Ai)}function _t(i){if(Ai--,n.monitorRunDependencies&&n.monitorRunDependencies(Ai),Ai==0&&(re!==null&&(clearInterval(re),re=null),qi)){var e=qi;qi=null,e()}}function Di(i){n.onAbort&&n.onAbort(i),i="Aborted("+i+")",Ei(i),Z=!0,mi=1,i+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(i);throw b(e),e}var ut="data:application/octet-stream;base64,";function Fe(i){return i.startsWith(ut)}function xe(i){return i.startsWith("file://")}var Ni;Ni="./duckdb-mvp.wasm",Fe(Ni)||(Ni=J(Ni));function Ue(i){if(i==Ni&&Bi)return new Uint8Array(Bi);if(pi)return pi(i);throw"both async and sync fetching of the wasm failed"}function dt(i){return!Bi&&(N||P)&&typeof fetch=="function"?fetch(i,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw"failed to load wasm binary file at '"+i+"'";return e.arrayBuffer()}).catch(()=>Ue(i)):Promise.resolve().then(()=>Ue(i))}function Ie(i,e,r){return dt(i).then(t=>WebAssembly.instantiate(t,e)).then(t=>t).then(r,t=>{Ei("failed to asynchronously prepare wasm: ".concat(t)),Di(t)})}function ft(i,e,r,t){return!i&&typeof WebAssembly.instantiateStreaming=="function"&&!Fe(e)&&!ri&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var o=WebAssembly.instantiateStreaming(a,r);return o.then(t,function(s){return Ei("wasm streaming compile failed: ".concat(s)),Ei("falling back to ArrayBuffer instantiation"),Ie(e,r,t)})}):Ie(e,r,t)}function vt(){var i={a:Rn};function e(t,a){var o=t.exports;return o=Y0(o),k=o,Hi=k.vf,De(),nr=k.yf,st(k.wf),_t("wasm-instantiate"),o}ct("wasm-instantiate");function r(t){e(t.instance)}if(n.instantiateWasm)try{return n.instantiateWasm(i,e)}catch(t){Ei("Module.instantiateWasm callback failed with error: ".concat(t)),b(t)}return ft(Bi,Ni,i,r).catch(b),{}}var ji,Mi;function Be(i){this.name="ExitStatus",this.message="Program terminated with exit(".concat(i,")"),this.status=i}var Vi=i=>{for(;i.length>0;)i.shift()(n)},te=[],ne=0,Ki=(i,e)=>e+2097152>>>0<4194305-!!i?(i>>>0)+e*4294967296:NaN;function Xi(i){i>>>=0;var e=new ue(i);return e.get_caught()||(e.set_caught(!0),ne--),e.set_rethrown(!1),te.push(e),Wi(e.excPtr),e.get_exception_ptr()}var Fi=0,ht=()=>{m(0,0);var i=te.pop();B(i.excPtr),Fi=0};function ue(i){this.excPtr=i,this.ptr=i-24,this.set_type=function(e){ii[this.ptr+4>>>2>>>0]=e},this.get_type=function(){return ii[this.ptr+4>>>2>>>0]},this.set_destructor=function(e){ii[this.ptr+8>>>2>>>0]=e},this.get_destructor=function(){return ii[this.ptr+8>>>2>>>0]},this.set_caught=function(e){e=e?1:0,vi[this.ptr+12>>>0>>>0]=e},this.get_caught=function(){return vi[this.ptr+12>>>0>>>0]!=0},this.set_rethrown=function(e){e=e?1:0,vi[this.ptr+13>>>0>>>0]=e},this.get_rethrown=function(){return vi[this.ptr+13>>>0>>>0]!=0},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},this.set_adjusted_ptr=function(e){ii[this.ptr+16>>>2>>>0]=e},this.get_adjusted_ptr=function(){return ii[this.ptr+16>>>2>>>0]},this.get_exception_ptr=function(){var e=ui(this.get_type());if(e)return ii[this.excPtr>>>2>>>0];var r=this.get_adjusted_ptr();return r!==0?r:this.excPtr}}function He(i){throw i>>>=0,Fi||(Fi=i),Fi}var Li=i=>{var e=Fi;if(!e)return ni(0),0;var r=new ue(e);r.set_adjusted_ptr(e);var t=r.get_type();if(!t)return ni(0),e;for(var a in i){var o=i[a];if(o===0||o===t)break;var s=r.ptr+16;if(G(o,t,s))return ni(o),e}return ni(t),e};function Ne(){return Li([])}function or(i){return i>>>=0,Li([i])}function sr(i,e){return i>>>=0,e>>>=0,Li([i,e])}function de(i,e,r){return i>>>=0,e>>>=0,r>>>=0,Li([i,e,r])}function fe(i,e,r,t){return i>>>=0,e>>>=0,r>>>=0,t>>>=0,Li([i,e,r,t])}function Me(i,e,r,t,a){return i>>>=0,e>>>=0,r>>>=0,t>>>=0,a>>>=0,Li([i,e,r,t,a])}var xi=()=>{var i=te.pop();i||Di("no exception to throw");var e=i.excPtr;throw i.get_rethrown()||(te.push(i),i.set_rethrown(!0),i.set_caught(!1),ne++),Fi=e,Fi};function lr(i,e,r){i>>>=0,e>>>=0,r>>>=0;var t=new ue(i);throw t.init(e,r),Fi=i,ne++,Fi}var yt=()=>ne,cr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,_r=(i,e,r)=>{e>>>=0;for(var t=e+r,a=e;i[a]&&!(a>=t);)++a;if(a-e>16&&i.buffer&&cr)return cr.decode(i.subarray(e,a));for(var o="";e>10,56320|_&1023)}}return o},Ji=(i,e)=>(i>>>=0,i?_r(ai,i,e):""),Yi={varargs:void 0,get(){var i=F[Yi.varargs>>>2>>>0];return Yi.varargs+=4,i},getp(){return Yi.get()},getStr(i){var e=Ji(i);return e}};function jt(i,e,r,t,a){e>>>=0,r>>>=0,t>>>=0,a>>>=0;for(var o=0,s=e?F[e>>>2>>>0]:0,l=e?F[e+4>>>2>>>0]:0,c=r?F[r>>>2>>>0]:0,_=r?F[r+4>>>2>>>0]:0,u=t?F[t>>>2>>>0]:0,y=t?F[t+4>>>2>>>0]:0,E=0,T=0,I=0,Y=0,z=0,Q=0,U=(e?F[e>>>2>>>0]:0)|(r?F[r>>>2>>>0]:0)|(t?F[t>>>2>>>0]:0),L=(e?F[e+4>>>2>>>0]:0)|(r?F[r+4>>>2>>>0]:0)|(t?F[t+4>>>2>>>0]:0),hi=function(V0,J0,Q0,_c){return V0<32?J0&_c:Q0&_c},fi=0;fi>>2>>>0]:0,z0=e?F[a+8>>>2>>>0]:0;cc=($0+z0/1e6)*1e3}Pr=Je.stream_ops.poll(Je,cc)}Pr&1&&hi(fi,s,l,Ti)&&(fi<32?E=E|Ti:T=T|Ti,o++),Pr&4&&hi(fi,c,_,Ti)&&(fi<32?I=I|Ti:Y=Y|Ti,o++),Pr&2&&hi(fi,u,y,Ti)&&(fi<32?z=z|Ti:Q=Q|Ti,o++)}}return e&&(F[e>>>2>>>0]=E,F[e+4>>>2>>>0]=T),r&&(F[r>>>2>>>0]=I,F[r+4>>>2>>>0]=Y),t&&(F[t>>>2>>>0]=z,F[t+4>>>2>>>0]=Q),o}function Oe(){Di("missing function: $SOCKFS")}Oe.stub=!0;function ae(){Di("missing function: $FS")}ae.stub=!0;var oe=i=>{var e=Oe.getSocket(i);if(!e)throw new ae.ErrnoError(8);return e},ve=i=>(i&255)+"."+(i>>8&255)+"."+(i>>16&255)+"."+(i>>24&255),he=i=>{var e="",r=0,t=0,a=0,o=0,s=0,l=0,c=[i[0]&65535,i[0]>>16,i[1]&65535,i[1]>>16,i[2]&65535,i[2]>>16,i[3]&65535,i[3]>>16],_=!0,u="";for(l=0;l<5;l++)if(c[l]!==0){_=!1;break}if(_){if(u=ve(c[6]|c[7]<<16),c[5]===-1)return e="::ffff:",e+=u,e;if(c[5]===0)return e="::",u==="0.0.0.0"&&(u=""),u==="0.0.0.1"&&(u="1"),e+=u,e}for(r=0;r<8;r++)c[r]===0&&(r-a>1&&(s=0),a=r,s++),s>t&&(t=s,o=r-t+1);for(r=0;r<8;r++){if(t>1&&c[r]===0&&r>=o&&r{var r=di[i>>>1>>>0],t=X(_i[i+2>>>1>>>0]),a;switch(r){case 2:if(e!==16)return{errno:28};a=F[i+4>>>2>>>0],a=ve(a);break;case 10:if(e!==28)return{errno:28};a=[F[i+8>>>2>>>0],F[i+12>>>2>>>0],F[i+16>>>2>>>0],F[i+20>>>2>>>0]],a=he(a);break;default:return{errno:5}}return{family:r,addr:a,port:t}},ye=i=>{for(var e=i.split("."),r=0;r<4;r++){var t=Number(e[r]);if(isNaN(t))return null;e[r]=t}return(e[0]|e[1]<<8|e[2]<<16|e[3]<<24)>>>0},je=i=>parseInt(i),Pe=i=>{var e,r,t,a,o=/^((?=.*::)(?!.*::.+::)(::)?([\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,s=[];if(!o.test(i))return null;if(i==="::")return[0,0,0,0,0,0,0,0];for(i.startsWith("::")?i=i.replace("::","Z:"):i=i.replace("::",":Z:"),i.indexOf(".")>0?(i=i.replace(new RegExp("[.]","g"),":"),e=i.split(":"),e[e.length-4]=je(e[e.length-4])+je(e[e.length-3])*256,e[e.length-3]=je(e[e.length-2])+je(e[e.length-1])*256,e=e.slice(0,e.length-2)):e=i.split(":"),t=0,a=0,r=0;r{if(r&&i===0)return null;var t=ur(i,e);if(t.errno)throw new ae.ErrnoError(t.errno);return t.addr=Ui.lookup_addr(t.addr)||t.addr,t};function bt(i,e,r,t,a,o){e>>>=0,r>>>=0;var s=oe(i),l=dr(e,r);return s.sock_ops.bind(s,l.addr,l.port),0}function pt(i,e,r,t,a,o){e>>>=0,r>>>=0;var s=oe(i),l=dr(e,r);return s.sock_ops.connect(s,l.addr,l.port),0}function mt(i,e,r,t){e>>>=0}function wt(i,e,r){return r>>>=0,Yi.varargs=r,0}function gt(i,e){e>>>=0}function kt(i,e,r){var t=Ki(e,r)}var fr=(i,e,r,t)=>{if(r>>>=0,!(t>0))return 0;for(var a=r,o=r+t-1,s=0;s=55296&&l<=57343){var c=i.charCodeAt(++s);l=65536+((l&1023)<<10)|c&1023}if(l<=127){if(r>=o)break;e[r++>>>0]=l}else if(l<=2047){if(r+1>=o)break;e[r++>>>0]=192|l>>6,e[r++>>>0]=128|l&63}else if(l<=65535){if(r+2>=o)break;e[r++>>>0]=224|l>>12,e[r++>>>0]=128|l>>6&63,e[r++>>>0]=128|l&63}else{if(r+3>=o)break;e[r++>>>0]=240|l>>18,e[r++>>>0]=128|l>>12&63,e[r++>>>0]=128|l>>6&63,e[r++>>>0]=128|l&63}}return e[r>>>0]=0,r-a},Le=(i,e,r)=>fr(i,ai,e,r);function Ct(i,e,r){e>>>=0,r>>>=0}var vr=(i,e)=>(ai.fill(0,i,i+e),i),We=(i,e,r,t,a)=>{switch(e){case 2:r=ye(r),vr(i,16),a&&(F[a>>>2>>>0]=16),di[i>>>1>>>0]=e,F[i+4>>>2>>>0]=r,di[i+2>>>1>>>0]=O(t);break;case 10:r=Pe(r),vr(i,28),a&&(F[a>>>2>>>0]=28),F[i>>>2>>>0]=e,F[i+8>>>2>>>0]=r[0],F[i+12>>>2>>>0]=r[1],F[i+16>>>2>>>0]=r[2],F[i+20>>>2>>>0]=r[3],di[i+2>>>1>>>0]=O(t);break;default:return 5}return 0};function Et(i,e,r,t,a,o){e>>>=0,r>>>=0;var s=oe(i);if(!s.daddr)return-53;var l=We(e,s.family,Ui.lookup_name(s.daddr),s.dport,r);return 0}function St(i,e,r,t,a,o){t>>>=0,a>>>=0;var s=oe(i);return e===1&&r===4?(F[t>>>2>>>0]=s.error,F[a>>>2>>>0]=4,s.error=null,0):-50}function Dt(i,e,r){return r>>>=0,Yi.varargs=r,0}function Rt(i,e){i>>>=0,e>>>=0}function At(i,e,r){e>>>=0}function Tt(i,e,r,t){e>>>=0,r>>>=0}function Ft(i,e,r,t){e>>>=0,t>>>=0,Yi.varargs=t}function xt(i,e,r,t,a,o){e>>>=0,r>>>=0,a>>>=0,o>>>=0;var s=oe(i),l=s.sock_ops.recvmsg(s,r);if(!l)return 0;if(a)var c=We(a,s.family,Ui.lookup_name(l.addr),l.port,o);return ai.set(l.buffer,e>>>0),l.buffer.byteLength}function Ut(i,e,r,t){e>>>=0,t>>>=0}function It(i){i>>>=0}function Bt(i,e,r,t,a,o){e>>>=0,r>>>=0,a>>>=0,o>>>=0}var Ht=(i,e,r)=>{};function Nt(i,e){i>>>=0,e>>>=0}function Mt(i,e,r){e>>>=0}var Ot=!0,Pt=()=>Ot,Lt=()=>{Di("")};function hr(i,e){return globalThis.DUCKDB_RUNTIME.createDirectory(n,i,e)}function Wt(i,e){return globalThis.DUCKDB_RUNTIME.checkDirectory(n,i,e)}function yr(i,e){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(n,i,e)}function qt(i,e){return globalThis.DUCKDB_RUNTIME.removeDirectory(n,i,e)}function Kt(i){return globalThis.DUCKDB_RUNTIME.closeFile(n,i)}function Xt(i,e){return globalThis.DUCKDB_RUNTIME.checkFile(n,i,e)}function qe(i){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(n,i)}function Yt(i,e,r,t){return globalThis.DUCKDB_RUNTIME.moveFile(n,i,e,r,t)}function se(i,e){return globalThis.DUCKDB_RUNTIME.openFile(n,i,e)}function Gt(i,e,r,t){return globalThis.DUCKDB_RUNTIME.readFile(n,i,e,r,t)}function $t(i,e){return globalThis.DUCKDB_RUNTIME.truncateFile(n,i,e)}function zt(i,e,r,t){return globalThis.DUCKDB_RUNTIME.writeFile(n,i,e,r,t)}function Vt(i){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(i)}function Jt(i,e){return globalThis.DUCKDB_RUNTIME.glob(n,i,e)}function Qt(i){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(n,i)}function Zt(i,e,r,t,a,o){return globalThis.DUCKDB_RUNTIME.callScalarUDF(n,i,e,r,t,a,o)}var en=()=>Date.now(),jr=()=>4294901760;function rn(){return jr()}var br;br=()=>performance.now();function tn(i,e,r){return i>>>=0,e>>>=0,r>>>=0,ai.copyWithin(i>>>0,e>>>0,e+r>>>0)}var nn=i=>{var e=Hi.buffer,r=(i-e.byteLength+65535)/65536;try{return Hi.grow(r),De(),1}catch(t){}};function an(i){i>>>=0;var e=ai.length,r=jr();if(i>r)return!1;for(var t=(c,_)=>c+(_-c%_)%_,a=1;a<=4;a*=2){var o=e*(1+.2/a);o=Math.min(o,i+100663296);var s=Math.min(r,t(Math.max(i,o),65536)),l=nn(s);if(l)return!0}return!1}var Ke={},pr=()=>R||"./this.program",le=()=>{if(!le.strings){var i=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:i,_:pr()};for(var r in Ke)Ke[r]===void 0?delete e[r]:e[r]=Ke[r];var t=[];for(var r in e)t.push("".concat(r,"=").concat(e[r]));le.strings=t}return le.strings},on=(i,e)=>{for(var r=0;r>>0>>>0]=i.charCodeAt(r);vi[e>>>0>>>0]=0},be=function(i,e){i>>>=0,e>>>=0;var r=0;return le().forEach((t,a)=>{var o=e+r;ii[i+a*4>>>2>>>0]=o,on(t,o),r+=t.length+1}),0},sn=function(i,e){i>>>=0,e>>>=0;var r=le();ii[i>>>2>>>0]=r.length;var t=0;return r.forEach(a=>t+=a.length+1),ii[e>>>2>>>0]=t,0},mr=i=>52;function wr(i,e){e>>>=0;var r=0,t=0,a=0;{var o=2;i==0?r=2:(i==1||i==2)&&(r=64),a=1}return vi[e>>>0>>>0]=o,di[e+2>>>1>>>0]=a,Mi=[r>>>0,(ji=r,+Math.abs(ji)>=1?ji>0?+Math.floor(ji/4294967296)>>>0:~~+Math.ceil((ji-+(~~ji>>>0))/4294967296)>>>0:0)],F[e+8>>>2>>>0]=Mi[0],F[e+12>>>2>>>0]=Mi[1],Mi=[t>>>0,(ji=t,+Math.abs(ji)>=1?ji>0?+Math.floor(ji/4294967296)>>>0:~~+Math.ceil((ji-+(~~ji>>>0))/4294967296)>>>0:0)],F[e+16>>>2>>>0]=Mi[0],F[e+20>>>2>>>0]=Mi[1],0}function ln(i,e,r,t,a,o){e>>>=0,r>>>=0;var s=Ki(t,a);return o>>>=0,52}function gr(i,e,r,t,a,o){e>>>=0,r>>>=0;var s=Ki(t,a);return o>>>=0,52}function cn(i,e,r,t){return e>>>=0,r>>>=0,t>>>=0,52}function kr(i,e,r,t,a){var o=Ki(e,r);return a>>>=0,70}var _n=i=>52,un=[null,[],[]],dn=(i,e)=>{var r=un[i];e===0||e===10?((i===1?ee:Ei)(_r(r,0)),r.length=0):r.push(e)};function fn(i,e,r,t){e>>>=0,r>>>=0,t>>>=0;for(var a=0,o=0;o>>2>>>0],l=ii[e+4>>>2>>>0];e+=8;for(var c=0;c>>0]);a+=l}return ii[t>>>2>>>0]=a,0}function vn(i,e,r,t){i>>>=0,e>>>=0,r>>>=0,t>>>=0;var a=0,o=0,s=0,l=0,c=0,_=0,u;function y(E,T,I,Y,z,Q){var U,L,hi,fi;return L=E===10?28:16,z=E===10?he(z):ve(z),U=ei(L),fi=We(U,E,z,Q),Si(!fi),hi=ei(32),F[hi+4>>>2>>>0]=E,F[hi+8>>>2>>>0]=T,F[hi+12>>>2>>>0]=I,ii[hi+24>>>2>>>0]=Y,ii[hi+20>>>2>>>0]=U,E===10?F[hi+16>>>2>>>0]=28:F[hi+16>>>2>>>0]=16,F[hi+28>>>2>>>0]=0,hi}if(r&&(s=F[r>>>2>>>0],l=F[r+4>>>2>>>0],c=F[r+8>>>2>>>0],_=F[r+12>>>2>>>0]),c&&!_&&(_=c===2?17:6),!c&&_&&(c=_===17?2:1),_===0&&(_=6),c===0&&(c=1),!i&&!e)return-2;if(s&-1088||r!==0&&F[r>>>2>>>0]&2&&!i)return-1;if(s&32)return-2;if(c!==0&&c!==1&&c!==2)return-7;if(l!==0&&l!==2&&l!==10)return-6;if(e&&(e=Ji(e),o=parseInt(e,10),isNaN(o)))return s&1024?-2:-8;if(!i)return l===0&&(l=2),s&1||(l===2?a=H(2130706433):a=[0,0,0,1]),u=y(l,c,_,null,a,o),ii[t>>>2>>>0]=u,0;if(i=Ji(i),a=ye(i),a!==null)if(l===0||l===2)l=2;else if(l===10&&s&8)a=[0,0,H(65535),a],l=10;else return-2;else if(a=Pe(i),a!==null)if(l===0||l===10)l=10;else return-2;return a!=null?(u=y(l,c,_,i,a,o),ii[t>>>2>>>0]=u,0):s&4?-2:(i=Ui.lookup_name(i),a=ye(i),l===0?l=2:l===10&&(a=[0,0,H(65535),a]),u=y(l,c,_,null,a,o),ii[t>>>2>>>0]=u,0)}var hn=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return t=>crypto.getRandomValues(t);if(ri)try{var i=require("crypto"),e=i.randomFillSync;if(e)return t=>i.randomFillSync(t);var r=i.randomBytes;return t=>(t.set(r(t.byteLength)),t)}catch(t){}Di("initRandomDevice")},Cr=i=>(Cr=hn())(i);function yn(i,e){return i>>>=0,e>>>=0,Cr(ai.subarray(i>>>0,i+e>>>0)),0}function jn(i,e,r,t,a,o,s){i>>>=0,r>>>=0,a>>>=0;var l=ur(i,e);if(l.errno)return-6;var c=l.port,_=l.addr,u=!1;if(r&&t){var y;if(s&1||!(y=Ui.lookup_addr(_))){if(s&8)return-2}else _=y;var E=Le(_,r,t);E+1>=t&&(u=!0)}if(a&&o){c=""+c;var E=Le(c,a,o);E+1>=o&&(u=!0)}return u?-12:0}function q(i){return i>>>=0,i}var pe=i=>i%4===0&&(i%100!==0||i%400===0),Er=(i,e)=>{for(var r=0,t=0;t<=e;r+=i[t++]);return r},Sr=[31,29,31,30,31,30,31,31,30,31,30,31],Dr=[31,28,31,30,31,30,31,31,30,31,30,31],bn=(i,e)=>{for(var r=new Date(i.getTime());e>0;){var t=pe(r.getFullYear()),a=r.getMonth(),o=(t?Sr:Dr)[a];if(e>o-r.getDate())e-=o-r.getDate()+1,r.setDate(1),a<11?r.setMonth(a+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1));else return r.setDate(r.getDate()+e),r}return r},Rr=i=>{for(var e=0,r=0;r=55296&&t<=57343?(e+=4,++r):e+=3}return e};function pn(i,e,r){var t=r>0?r:Rr(i)+1,a=new Array(t),o=fr(i,a,0,a.length);return e&&(a.length=o),a}var Ar=(i,e)=>{vi.set(i,e>>>0)};function mn(i,e,r,t){i>>>=0,e>>>=0,r>>>=0,t>>>=0;var a=ii[t+40>>>2>>>0],o={tm_sec:F[t>>>2>>>0],tm_min:F[t+4>>>2>>>0],tm_hour:F[t+8>>>2>>>0],tm_mday:F[t+12>>>2>>>0],tm_mon:F[t+16>>>2>>>0],tm_year:F[t+20>>>2>>>0],tm_wday:F[t+24>>>2>>>0],tm_yday:F[t+28>>>2>>>0],tm_isdst:F[t+32>>>2>>>0],tm_gmtoff:F[t+36>>>2>>>0],tm_zone:a?Ji(a):""},s=Ji(r),l={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var c in l)s=s.replace(new RegExp(c,"g"),l[c]);var _=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u=["January","February","March","April","May","June","July","August","September","October","November","December"];function y(U,L,hi){for(var fi=typeof U=="number"?U.toString():U||"";fi.length0?1:0}var fi;return(fi=hi(U.getFullYear()-L.getFullYear()))===0&&(fi=hi(U.getMonth()-L.getMonth()))===0&&(fi=hi(U.getDate()-L.getDate())),fi}function I(U){switch(U.getDay()){case 0:return new Date(U.getFullYear()-1,11,29);case 1:return U;case 2:return new Date(U.getFullYear(),0,3);case 3:return new Date(U.getFullYear(),0,2);case 4:return new Date(U.getFullYear(),0,1);case 5:return new Date(U.getFullYear()-1,11,31);case 6:return new Date(U.getFullYear()-1,11,30)}}function Y(U){var L=bn(new Date(U.tm_year+1900,0,1),U.tm_yday),hi=new Date(L.getFullYear(),0,4),fi=new Date(L.getFullYear()+1,0,4),Ti=I(hi),Je=I(fi);return T(Ti,L)<=0?T(Je,L)<=0?L.getFullYear()+1:L.getFullYear():L.getFullYear()-1}var z={"%a":U=>_[U.tm_wday].substring(0,3),"%A":U=>_[U.tm_wday],"%b":U=>u[U.tm_mon].substring(0,3),"%B":U=>u[U.tm_mon],"%C":U=>{var L=U.tm_year+1900;return E(L/100|0,2)},"%d":U=>E(U.tm_mday,2),"%e":U=>y(U.tm_mday,2," "),"%g":U=>Y(U).toString().substring(2),"%G":U=>Y(U),"%H":U=>E(U.tm_hour,2),"%I":U=>{var L=U.tm_hour;return L==0?L=12:L>12&&(L-=12),E(L,2)},"%j":U=>E(U.tm_mday+Er(pe(U.tm_year+1900)?Sr:Dr,U.tm_mon-1),3),"%m":U=>E(U.tm_mon+1,2),"%M":U=>E(U.tm_min,2),"%n":()=>"\n","%p":U=>U.tm_hour>=0&&U.tm_hour<12?"AM":"PM","%S":U=>E(U.tm_sec,2),"%t":()=>" ","%u":U=>U.tm_wday||7,"%U":U=>{var L=U.tm_yday+7-U.tm_wday;return E(Math.floor(L/7),2)},"%V":U=>{var L=Math.floor((U.tm_yday+7-(U.tm_wday+6)%7)/7);if((U.tm_wday+371-U.tm_yday-2)%7<=2&&L++,L){if(L==53){var fi=(U.tm_wday+371-U.tm_yday)%7;fi!=4&&(fi!=3||!pe(U.tm_year))&&(L=1)}}else{L=52;var hi=(U.tm_wday+7-U.tm_yday-1)%7;(hi==4||hi==5&&pe(U.tm_year%400-1))&&L++}return E(L,2)},"%w":U=>U.tm_wday,"%W":U=>{var L=U.tm_yday+7-(U.tm_wday+6)%7;return E(Math.floor(L/7),2)},"%y":U=>(U.tm_year+1900).toString().substring(2),"%Y":U=>U.tm_year+1900,"%z":U=>{var L=U.tm_gmtoff,hi=L>=0;return L=Math.abs(L)/60,L=L/60*100+L%60,(hi?"+":"-")+("0000"+L).slice(-4)},"%Z":U=>U.tm_zone,"%%":()=>"%"};s=s.replace(/%%/g,"\0\0");for(var c in z)s.includes(c)&&(s=s.replace(new RegExp(c,"g"),z[c](o)));s=s.replace(/\0\0/g,"%");var Q=pn(s,!1);return Q.length>e?0:(Ar(Q,i),Q.length-1)}function wn(i,e,r,t,a){return i>>>=0,e>>>=0,r>>>=0,t>>>=0,a>>>=0,mn(i,e,r,t)}var gn=i=>{mi=i,et()||(n.onExit&&n.onExit(i),Z=!0),A(i,new Be(i))},kn=(i,e)=>{mi=i,gn(i)},Cn=i=>{if(i instanceof Be||i=="unwind")return mi;A(1,i)},me=[],W=i=>{var e=me[i];return e||(i>=me.length&&(me.length=i+1),me[i]=e=nr.get(i)),e},En=i=>{var e=n["_"+i];return e},Sn=i=>{var e=Rr(i)+1,r=gi(e);return Le(i,r,e),r},Dn=(i,e,r,t,a)=>{var o={string:I=>{var Y=0;return I!=null&&I!==0&&(Y=Sn(I)),Y},array:I=>{var Y=gi(I.length);return Ar(I,Y),Y}};function s(I){return e==="string"?Ji(I):e==="boolean"?!!I:I}var l=En(i),c=[],_=0;if(t)for(var u=0;u(An=k.wf)(),Tr=n._main=(i,e)=>(Tr=n._main=k.xf)(i,e),Tn=n._duckdb_web_fs_glob_add_path=i=>(Tn=n._duckdb_web_fs_glob_add_path=k.zf)(i),Fn=n._duckdb_web_clear_response=()=>(Fn=n._duckdb_web_clear_response=k.Af)(),xn=n._duckdb_web_fail_with=i=>(xn=n._duckdb_web_fail_with=k.Bf)(i),Un=n._duckdb_web_reset=i=>(Un=n._duckdb_web_reset=k.Cf)(i),In=n._duckdb_web_connect=()=>(In=n._duckdb_web_connect=k.Df)(),Bn=n._duckdb_web_disconnect=i=>(Bn=n._duckdb_web_disconnect=k.Ef)(i),Hn=n._duckdb_web_flush_files=()=>(Hn=n._duckdb_web_flush_files=k.Ff)(),Nn=n._duckdb_web_flush_file=i=>(Nn=n._duckdb_web_flush_file=k.Gf)(i),Mn=n._duckdb_web_open=(i,e)=>(Mn=n._duckdb_web_open=k.Hf)(i,e),On=n._duckdb_web_get_global_file_info=(i,e)=>(On=n._duckdb_web_get_global_file_info=k.If)(i,e),Pn=n._duckdb_web_collect_file_stats=(i,e,r)=>(Pn=n._duckdb_web_collect_file_stats=k.Jf)(i,e,r),Ln=n._duckdb_web_export_file_stats=(i,e)=>(Ln=n._duckdb_web_export_file_stats=k.Kf)(i,e),Wn=n._duckdb_web_fs_drop_file=(i,e)=>(Wn=n._duckdb_web_fs_drop_file=k.Lf)(i,e),qn=n._duckdb_web_fs_drop_files=i=>(qn=n._duckdb_web_fs_drop_files=k.Mf)(i),Kn=n._duckdb_web_fs_glob_file_infos=(i,e)=>(Kn=n._duckdb_web_fs_glob_file_infos=k.Nf)(i,e),Xn=n._duckdb_web_fs_get_file_info_by_id=(i,e,r)=>(Xn=n._duckdb_web_fs_get_file_info_by_id=k.Of)(i,e,r),Yn=n._duckdb_web_fs_get_file_info_by_name=(i,e,r)=>(Yn=n._duckdb_web_fs_get_file_info_by_name=k.Pf)(i,e,r),Gn=n._duckdb_web_fs_register_file_url=(i,e,r,t,a)=>(Gn=n._duckdb_web_fs_register_file_url=k.Qf)(i,e,r,t,a),$n=n._duckdb_web_fs_register_file_buffer=(i,e,r,t)=>($n=n._duckdb_web_fs_register_file_buffer=k.Rf)(i,e,r,t),we=n._duckdb_web_copy_file_to_buffer=(i,e)=>(we=n._duckdb_web_copy_file_to_buffer=k.Sf)(i,e),ge=n._duckdb_web_copy_file_to_path=(i,e,r)=>(ge=n._duckdb_web_copy_file_to_path=k.Tf)(i,e,r),Xe=n._duckdb_web_get_version=i=>(Xe=n._duckdb_web_get_version=k.Uf)(i),Ye=n._duckdb_web_get_feature_flags=()=>(Ye=n._duckdb_web_get_feature_flags=k.Vf)(),zn=n._duckdb_web_tokenize=(i,e)=>(zn=n._duckdb_web_tokenize=k.Wf)(i,e),Fr=n._duckdb_web_udf_scalar_create=(i,e,r)=>(Fr=n._duckdb_web_udf_scalar_create=k.Xf)(i,e,r),Ge=n._duckdb_web_prepared_create=(i,e,r)=>(Ge=n._duckdb_web_prepared_create=k.Yf)(i,e,r),$e=n._duckdb_web_prepared_close=(i,e,r)=>($e=n._duckdb_web_prepared_close=k.Zf)(i,e,r),ke=n._duckdb_web_prepared_run=(i,e,r,t)=>(ke=n._duckdb_web_prepared_run=k._f)(i,e,r,t),Vn=n._duckdb_web_prepared_send=(i,e,r,t)=>(Vn=n._duckdb_web_prepared_send=k.$f)(i,e,r,t),Ce=n._duckdb_web_query_run=(i,e,r)=>(Ce=n._duckdb_web_query_run=k.ag)(i,e,r),Jn=n._duckdb_web_pending_query_start=(i,e,r)=>(Jn=n._duckdb_web_pending_query_start=k.bg)(i,e,r),xr=n._duckdb_web_pending_query_poll=(i,e,r)=>(xr=n._duckdb_web_pending_query_poll=k.cg)(i,e,r),Ur=n._duckdb_web_pending_query_cancel=(i,e)=>(Ur=n._duckdb_web_pending_query_cancel=k.dg)(i,e),d=n._duckdb_web_query_fetch_results=(i,e)=>(d=n._duckdb_web_query_fetch_results=k.eg)(i,e),h=n._duckdb_web_get_tablenames=(i,e,r)=>(h=n._duckdb_web_get_tablenames=k.fg)(i,e,r),g=n._duckdb_web_insert_arrow_from_ipc_stream=(i,e,r,t,a)=>(g=n._duckdb_web_insert_arrow_from_ipc_stream=k.gg)(i,e,r,t,a),D=n._duckdb_web_insert_csv_from_path=(i,e,r,t)=>(D=n._duckdb_web_insert_csv_from_path=k.hg)(i,e,r,t),x=n._duckdb_web_insert_json_from_path=(i,e,r,t)=>(x=n._duckdb_web_insert_json_from_path=k.ig)(i,e,r,t),M=()=>(M=k.__errno_location)(),H=i=>(H=k.jg)(i),O=i=>(O=k.kg)(i),X=i=>(X=k.lg)(i),ei=n._malloc=i=>(ei=n._malloc=k.mg)(i),oi=n._free=i=>(oi=n._free=k.ng)(i),m=(i,e)=>(m=k.og)(i,e),ni=i=>(ni=k.pg)(i),w=()=>(w=k.qg)(),p=i=>(p=k.rg)(i),gi=i=>(gi=k.sg)(i),Oi=i=>(Oi=k.__cxa_free_exception)(i),Wi=i=>(Wi=k.tg)(i),B=i=>(B=k.ug)(i),G=(i,e,r)=>(G=k.vg)(i,e,r),ui=i=>(ui=k.wg)(i),li=n.dynCall_jiiii=(i,e,r,t,a)=>(li=n.dynCall_jiiii=k.xg)(i,e,r,t,a),Ci=n.dynCall_iiiiij=(i,e,r,t,a,o,s)=>(Ci=n.dynCall_iiiiij=k.yg)(i,e,r,t,a,o,s),Qi=n.dynCall_iiiiijj=(i,e,r,t,a,o,s,l,c)=>(Qi=n.dynCall_iiiiijj=k.zg)(i,e,r,t,a,o,s,l,c),ce=n.dynCall_viijii=(i,e,r,t,a,o,s)=>(ce=n.dynCall_viijii=k.Ag)(i,e,r,t,a,o,s),ze=n.dynCall_viiiij=(i,e,r,t,a,o,s)=>(ze=n.dynCall_viiiij=k.Bg)(i,e,r,t,a,o,s),Ir=n.dynCall_iij=(i,e,r,t)=>(Ir=n.dynCall_iij=k.Cg)(i,e,r,t),Br=n.dynCall_iiji=(i,e,r,t,a)=>(Br=n.dynCall_iiji=k.Dg)(i,e,r,t,a),Hr=n.dynCall_ji=(i,e)=>(Hr=n.dynCall_ji=k.Eg)(i,e),Nr=n.dynCall_iiij=(i,e,r,t,a)=>(Nr=n.dynCall_iiij=k.Fg)(i,e,r,t,a),Mr=n.dynCall_iiijij=(i,e,r,t,a,o,s,l)=>(Mr=n.dynCall_iiijij=k.Gg)(i,e,r,t,a,o,s,l),Ve=n.dynCall_viiji=(i,e,r,t,a,o)=>(Ve=n.dynCall_viiji=k.Hg)(i,e,r,t,a,o),ba=n.dynCall_vij=(i,e,r,t)=>(ba=n.dynCall_vij=k.Ig)(i,e,r,t),pa=n.dynCall_viij=(i,e,r,t,a)=>(pa=n.dynCall_viij=k.Jg)(i,e,r,t,a),ma=n.dynCall_viji=(i,e,r,t,a)=>(ma=n.dynCall_viji=k.Kg)(i,e,r,t,a),wa=n.dynCall_iiiji=(i,e,r,t,a,o)=>(wa=n.dynCall_iiiji=k.Lg)(i,e,r,t,a,o),ga=n.dynCall_viiiji=(i,e,r,t,a,o,s)=>(ga=n.dynCall_viiiji=k.Mg)(i,e,r,t,a,o,s),ka=n.dynCall_viijji=(i,e,r,t,a,o,s,l)=>(ka=n.dynCall_viijji=k.Ng)(i,e,r,t,a,o,s,l),Ca=n.dynCall_viiij=(i,e,r,t,a,o)=>(Ca=n.dynCall_viiij=k.Og)(i,e,r,t,a,o),Ea=n.dynCall_iiiij=(i,e,r,t,a,o)=>(Ea=n.dynCall_iiiij=k.Pg)(i,e,r,t,a,o),Sa=n.dynCall_iiijj=(i,e,r,t,a,o,s)=>(Sa=n.dynCall_iiijj=k.Qg)(i,e,r,t,a,o,s),Da=n.dynCall_viijiiiii=(i,e,r,t,a,o,s,l,c,_)=>(Da=n.dynCall_viijiiiii=k.Rg)(i,e,r,t,a,o,s,l,c,_),Ra=n.dynCall_jiiijii=(i,e,r,t,a,o,s,l)=>(Ra=n.dynCall_jiiijii=k.Sg)(i,e,r,t,a,o,s,l),Aa=n.dynCall_jiijiii=(i,e,r,t,a,o,s,l)=>(Aa=n.dynCall_jiijiii=k.Tg)(i,e,r,t,a,o,s,l),Ta=n.dynCall_jiijii=(i,e,r,t,a,o,s)=>(Ta=n.dynCall_jiijii=k.Ug)(i,e,r,t,a,o,s),Fa=n.dynCall_j=i=>(Fa=n.dynCall_j=k.Vg)(i),xa=n.dynCall_viiiiji=(i,e,r,t,a,o,s,l)=>(xa=n.dynCall_viiiiji=k.Wg)(i,e,r,t,a,o,s,l),Ua=n.dynCall_jiiiijii=(i,e,r,t,a,o,s,l,c)=>(Ua=n.dynCall_jiiiijii=k.Xg)(i,e,r,t,a,o,s,l,c),Ia=n.dynCall_jiiiiijiiii=(i,e,r,t,a,o,s,l,c,_,u,y)=>(Ia=n.dynCall_jiiiiijiiii=k.Yg)(i,e,r,t,a,o,s,l,c,_,u,y),Ba=n.dynCall_jiiijiii=(i,e,r,t,a,o,s,l,c)=>(Ba=n.dynCall_jiiijiii=k.Zg)(i,e,r,t,a,o,s,l,c),Ha=n.dynCall_viiiiijiiii=(i,e,r,t,a,o,s,l,c,_,u,y)=>(Ha=n.dynCall_viiiiijiiii=k._g)(i,e,r,t,a,o,s,l,c,_,u,y),Na=n.dynCall_vijijj=(i,e,r,t,a,o,s,l,c)=>(Na=n.dynCall_vijijj=k.$g)(i,e,r,t,a,o,s,l,c),Ma=n.dynCall_viiijjj=(i,e,r,t,a,o,s,l,c,_)=>(Ma=n.dynCall_viiijjj=k.ah)(i,e,r,t,a,o,s,l,c,_),Oa=n.dynCall_iji=(i,e,r,t)=>(Oa=n.dynCall_iji=k.bh)(i,e,r,t),Pa=n.dynCall_viijjji=(i,e,r,t,a,o,s,l,c,_)=>(Pa=n.dynCall_viijjji=k.ch)(i,e,r,t,a,o,s,l,c,_),La=n.dynCall_viijj=(i,e,r,t,a,o,s)=>(La=n.dynCall_viijj=k.dh)(i,e,r,t,a,o,s),Wa=n.dynCall_viiijj=(i,e,r,t,a,o,s,l)=>(Wa=n.dynCall_viiijj=k.eh)(i,e,r,t,a,o,s,l),qa=n.dynCall_viijjj=(i,e,r,t,a,o,s,l,c)=>(qa=n.dynCall_viijjj=k.fh)(i,e,r,t,a,o,s,l,c),Ka=n.dynCall_vijj=(i,e,r,t,a,o)=>(Ka=n.dynCall_vijj=k.gh)(i,e,r,t,a,o),Xa=n.dynCall_viiijjij=(i,e,r,t,a,o,s,l,c,_,u)=>(Xa=n.dynCall_viiijjij=k.hh)(i,e,r,t,a,o,s,l,c,_,u),Ya=n.dynCall_viijiii=(i,e,r,t,a,o,s,l)=>(Ya=n.dynCall_viijiii=k.ih)(i,e,r,t,a,o,s,l),Ga=n.dynCall_vijijjiij=(i,e,r,t,a,o,s,l,c,_,u,y,E)=>(Ga=n.dynCall_vijijjiij=k.jh)(i,e,r,t,a,o,s,l,c,_,u,y,E),$a=n.dynCall_viiijjiij=(i,e,r,t,a,o,s,l,c,_,u,y)=>($a=n.dynCall_viiijjiij=k.kh)(i,e,r,t,a,o,s,l,c,_,u,y),za=n.dynCall_viiiiiijiij=(i,e,r,t,a,o,s,l,c,_,u,y,E)=>(za=n.dynCall_viiiiiijiij=k.lh)(i,e,r,t,a,o,s,l,c,_,u,y,E),Va=n.dynCall_viiiiiijj=(i,e,r,t,a,o,s,l,c,_,u)=>(Va=n.dynCall_viiiiiijj=k.mh)(i,e,r,t,a,o,s,l,c,_,u),Ja=n.dynCall_viijiiiij=(i,e,r,t,a,o,s,l,c,_,u)=>(Ja=n.dynCall_viijiiiij=k.nh)(i,e,r,t,a,o,s,l,c,_,u),Qa=n.dynCall_viiijiiiijjj=(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y)=>(Qa=n.dynCall_viiijiiiijjj=k.oh)(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y),Za=n.dynCall_viijijiiiijjj=(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q)=>(Za=n.dynCall_viijijiiiijjj=k.ph)(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q),io=n.dynCall_viiiijjij=(i,e,r,t,a,o,s,l,c,_,u,y)=>(io=n.dynCall_viiiijjij=k.qh)(i,e,r,t,a,o,s,l,c,_,u,y),eo=n.dynCall_viiijiiii=(i,e,r,t,a,o,s,l,c,_)=>(eo=n.dynCall_viiijiiii=k.rh)(i,e,r,t,a,o,s,l,c,_),ro=n.dynCall_jiiiiji=(i,e,r,t,a,o,s,l)=>(ro=n.dynCall_jiiiiji=k.sh)(i,e,r,t,a,o,s,l),to=n.dynCall_viiiijijji=(i,e,r,t,a,o,s,l,c,_,u,y,E)=>(to=n.dynCall_viiiijijji=k.th)(i,e,r,t,a,o,s,l,c,_,u,y,E),no=n.dynCall_viiijiiijii=(i,e,r,t,a,o,s,l,c,_,u,y,E)=>(no=n.dynCall_viiijiiijii=k.uh)(i,e,r,t,a,o,s,l,c,_,u,y,E),ao=n.dynCall_viijijiiii=(i,e,r,t,a,o,s,l,c,_,u,y)=>(ao=n.dynCall_viijijiiii=k.vh)(i,e,r,t,a,o,s,l,c,_,u,y),oo=n.dynCall_jj=(i,e,r)=>(oo=n.dynCall_jj=k.wh)(i,e,r),so=n.dynCall_jd=(i,e)=>(so=n.dynCall_jd=k.xh)(i,e),lo=n.dynCall_jf=(i,e)=>(lo=n.dynCall_jf=k.yh)(i,e),co=n.dynCall_iijjj=(i,e,r,t,a,o,s,l)=>(co=n.dynCall_iijjj=k.zh)(i,e,r,t,a,o,s,l),_o=n.dynCall_iiiijj=(i,e,r,t,a,o,s,l)=>(_o=n.dynCall_iiiijj=k.Ah)(i,e,r,t,a,o,s,l),uo=n.dynCall_iiijji=(i,e,r,t,a,o,s,l)=>(uo=n.dynCall_iiijji=k.Bh)(i,e,r,t,a,o,s,l),fo=n.dynCall_vijijiiiijjj=(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z)=>(fo=n.dynCall_vijijiiiijjj=k.Ch)(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z),vo=n.dynCall_viiiiiij=(i,e,r,t,a,o,s,l,c)=>(vo=n.dynCall_viiiiiij=k.Dh)(i,e,r,t,a,o,s,l,c),ho=n.dynCall_jii=(i,e,r)=>(ho=n.dynCall_jii=k.Eh)(i,e,r),yo=n.dynCall_iiiijjiii=(i,e,r,t,a,o,s,l,c,_,u)=>(yo=n.dynCall_iiiijjiii=k.Fh)(i,e,r,t,a,o,s,l,c,_,u),jo=n.dynCall_iiiiiij=(i,e,r,t,a,o,s,l)=>(jo=n.dynCall_iiiiiij=k.Gh)(i,e,r,t,a,o,s,l),bo=n.dynCall_iiiiiiiij=(i,e,r,t,a,o,s,l,c,_)=>(bo=n.dynCall_iiiiiiiij=k.Hh)(i,e,r,t,a,o,s,l,c,_),po=n.dynCall_jiii=(i,e,r,t)=>(po=n.dynCall_jiii=k.Ih)(i,e,r,t),mo=n.dynCall_iiiiiiij=(i,e,r,t,a,o,s,l,c)=>(mo=n.dynCall_iiiiiiij=k.Jh)(i,e,r,t,a,o,s,l,c),wo=n.dynCall_iiiiiiji=(i,e,r,t,a,o,s,l,c)=>(wo=n.dynCall_iiiiiiji=k.Kh)(i,e,r,t,a,o,s,l,c),go=n.dynCall_iiiijiii=(i,e,r,t,a,o,s,l,c)=>(go=n.dynCall_iiiijiii=k.Lh)(i,e,r,t,a,o,s,l,c),ko=n.dynCall_iiiijii=(i,e,r,t,a,o,s,l)=>(ko=n.dynCall_iiiijii=k.Mh)(i,e,r,t,a,o,s,l),Co=n.dynCall_jiiiii=(i,e,r,t,a,o)=>(Co=n.dynCall_jiiiii=k.Nh)(i,e,r,t,a,o),Eo=n.dynCall_iiiiji=(i,e,r,t,a,o,s)=>(Eo=n.dynCall_iiiiji=k.Oh)(i,e,r,t,a,o,s),So=n.dynCall_iiiiiji=(i,e,r,t,a,o,s,l)=>(So=n.dynCall_iiiiiji=k.Ph)(i,e,r,t,a,o,s,l),Do=n.dynCall_iiijii=(i,e,r,t,a,o,s)=>(Do=n.dynCall_iiijii=k.Qh)(i,e,r,t,a,o,s),Ro=n.dynCall_iijj=(i,e,r,t,a,o)=>(Ro=n.dynCall_iijj=k.Rh)(i,e,r,t,a,o),Ao=n.dynCall_iiijjj=(i,e,r,t,a,o,s,l,c)=>(Ao=n.dynCall_iiijjj=k.Sh)(i,e,r,t,a,o,s,l,c),To=n.dynCall_viiiiij=(i,e,r,t,a,o,s,l)=>(To=n.dynCall_viiiiij=k.Th)(i,e,r,t,a,o,s,l),Fo=n.dynCall_iijiji=(i,e,r,t,a,o,s,l)=>(Fo=n.dynCall_iijiji=k.Uh)(i,e,r,t,a,o,s,l),xo=n.dynCall_viiiijiiiiiiii=(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I)=>(xo=n.dynCall_viiiijiiiiiiii=k.Vh)(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I),Uo=n.dynCall_jiij=(i,e,r,t,a)=>(Uo=n.dynCall_jiij=k.Wh)(i,e,r,t,a),Io=n.dynCall_jiiij=(i,e,r,t,a,o)=>(Io=n.dynCall_jiiij=k.Xh)(i,e,r,t,a,o),Bo=n.dynCall_viijiiji=(i,e,r,t,a,o,s,l,c,_)=>(Bo=n.dynCall_viijiiji=k.Yh)(i,e,r,t,a,o,s,l,c,_),Ho=n.dynCall_iiiiiijjiijjj=(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q)=>(Ho=n.dynCall_iiiiiijjiijjj=k.Zh)(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q),No=n.dynCall_iiijjijjii=(i,e,r,t,a,o,s,l,c,_,u,y,E,T)=>(No=n.dynCall_iiijjijjii=k._h)(i,e,r,t,a,o,s,l,c,_,u,y,E,T),Mo=n.dynCall_iiiijjii=(i,e,r,t,a,o,s,l,c,_)=>(Mo=n.dynCall_iiiijjii=k.$h)(i,e,r,t,a,o,s,l,c,_),Oo=n.dynCall_iiiijji=(i,e,r,t,a,o,s,l,c)=>(Oo=n.dynCall_iiiijji=k.ai)(i,e,r,t,a,o,s,l,c),Po=n.dynCall_iiijjii=(i,e,r,t,a,o,s,l,c)=>(Po=n.dynCall_iiijjii=k.bi)(i,e,r,t,a,o,s,l,c),Lo=n.dynCall_vijii=(i,e,r,t,a,o)=>(Lo=n.dynCall_vijii=k.ci)(i,e,r,t,a,o),Wo=n.dynCall_vjjijij=(i,e,r,t,a,o,s,l,c,_,u)=>(Wo=n.dynCall_vjjijij=k.di)(i,e,r,t,a,o,s,l,c,_,u),qo=n.dynCall_vijjji=(i,e,r,t,a,o,s,l,c)=>(qo=n.dynCall_vijjji=k.ei)(i,e,r,t,a,o,s,l,c),Ko=n.dynCall_vjjii=(i,e,r,t,a,o,s)=>(Ko=n.dynCall_vjjii=k.fi)(i,e,r,t,a,o,s),Xo=n.dynCall_viiiiiji=(i,e,r,t,a,o,s,l,c)=>(Xo=n.dynCall_viiiiiji=k.gi)(i,e,r,t,a,o,s,l,c),Yo=n.dynCall_jiiiji=(i,e,r,t,a,o,s)=>(Yo=n.dynCall_jiiiji=k.hi)(i,e,r,t,a,o,s),Go=n.dynCall_viiijjii=(i,e,r,t,a,o,s,l,c,_)=>(Go=n.dynCall_viiijjii=k.ii)(i,e,r,t,a,o,s,l,c,_),$o=n.dynCall_vijjj=(i,e,r,t,a,o,s,l)=>($o=n.dynCall_vijjj=k.ji)(i,e,r,t,a,o,s,l),zo=n.dynCall_jijij=(i,e,r,t,a,o,s)=>(zo=n.dynCall_jijij=k.ki)(i,e,r,t,a,o,s),Vo=n.dynCall_viiiijj=(i,e,r,t,a,o,s,l,c)=>(Vo=n.dynCall_viiiijj=k.li)(i,e,r,t,a,o,s,l,c),Jo=n.dynCall_jijjij=(i,e,r,t,a,o,s,l,c)=>(Jo=n.dynCall_jijjij=k.mi)(i,e,r,t,a,o,s,l,c),Qo=n.dynCall_jij=(i,e,r,t)=>(Qo=n.dynCall_jij=k.ni)(i,e,r,t),Zo=n.dynCall_jijiii=(i,e,r,t,a,o,s)=>(Zo=n.dynCall_jijiii=k.oi)(i,e,r,t,a,o,s),is=n.dynCall_viijiiij=(i,e,r,t,a,o,s,l,c,_)=>(is=n.dynCall_viijiiij=k.pi)(i,e,r,t,a,o,s,l,c,_),es=n.dynCall_vijiiiji=(i,e,r,t,a,o,s,l,c,_)=>(es=n.dynCall_vijiiiji=k.qi)(i,e,r,t,a,o,s,l,c,_),rs=n.dynCall_jiiji=(i,e,r,t,a,o)=>(rs=n.dynCall_jiiji=k.ri)(i,e,r,t,a,o),ts=n.dynCall_viiijij=(i,e,r,t,a,o,s,l,c)=>(ts=n.dynCall_viiijij=k.si)(i,e,r,t,a,o,s,l,c),ns=n.dynCall_viijiij=(i,e,r,t,a,o,s,l,c)=>(ns=n.dynCall_viijiij=k.ti)(i,e,r,t,a,o,s,l,c),as=n.dynCall_viiiiijj=(i,e,r,t,a,o,s,l,c,_)=>(as=n.dynCall_viiiiijj=k.ui)(i,e,r,t,a,o,s,l,c,_),os=n.dynCall_viiijji=(i,e,r,t,a,o,s,l,c)=>(os=n.dynCall_viiijji=k.vi)(i,e,r,t,a,o,s,l,c),ss=n.dynCall_vijij=(i,e,r,t,a,o,s)=>(ss=n.dynCall_vijij=k.wi)(i,e,r,t,a,o,s),ls=n.dynCall_vijiji=(i,e,r,t,a,o,s,l)=>(ls=n.dynCall_vijiji=k.xi)(i,e,r,t,a,o,s,l),cs=n.dynCall_vijjij=(i,e,r,t,a,o,s,l,c)=>(cs=n.dynCall_vijjij=k.yi)(i,e,r,t,a,o,s,l,c),_s=n.dynCall_jiiiij=(i,e,r,t,a,o,s)=>(_s=n.dynCall_jiiiij=k.zi)(i,e,r,t,a,o,s),us=n.dynCall_ij=(i,e,r)=>(us=n.dynCall_ij=k.Ai)(i,e,r),ds=n.dynCall_jjj=(i,e,r,t,a)=>(ds=n.dynCall_jjj=k.Bi)(i,e,r,t,a),fs=n.dynCall_jjiji=(i,e,r,t,a,o,s)=>(fs=n.dynCall_jjiji=k.Ci)(i,e,r,t,a,o,s),vs=n.dynCall_ijjj=(i,e,r,t,a,o,s)=>(vs=n.dynCall_ijjj=k.Di)(i,e,r,t,a,o,s),hs=n.dynCall_jjjd=(i,e,r,t,a,o)=>(hs=n.dynCall_jjjd=k.Ei)(i,e,r,t,a,o),ys=n.dynCall_iiijjjj=(i,e,r,t,a,o,s,l,c,_,u)=>(ys=n.dynCall_iiijjjj=k.Fi)(i,e,r,t,a,o,s,l,c,_,u),js=n.dynCall_jijj=(i,e,r,t,a,o)=>(js=n.dynCall_jijj=k.Gi)(i,e,r,t,a,o),bs=n.dynCall_ijii=(i,e,r,t,a)=>(bs=n.dynCall_ijii=k.Hi)(i,e,r,t,a),ps=n.dynCall_vjii=(i,e,r,t,a)=>(ps=n.dynCall_vjii=k.Ii)(i,e,r,t,a),ms=n.dynCall_vjiiii=(i,e,r,t,a,o,s)=>(ms=n.dynCall_vjiiii=k.Ji)(i,e,r,t,a,o,s),ws=n.dynCall_viiiiijiii=(i,e,r,t,a,o,s,l,c,_,u)=>(ws=n.dynCall_viiiiijiii=k.Ki)(i,e,r,t,a,o,s,l,c,_,u),gs=n.dynCall_viiijjjj=(i,e,r,t,a,o,s,l,c,_,u,y)=>(gs=n.dynCall_viiijjjj=k.Li)(i,e,r,t,a,o,s,l,c,_,u,y),ks=n.dynCall_ijji=(i,e,r,t,a,o)=>(ks=n.dynCall_ijji=k.Mi)(i,e,r,t,a,o),Cs=n.dynCall_iiiiijii=(i,e,r,t,a,o,s,l,c)=>(Cs=n.dynCall_iiiiijii=k.Ni)(i,e,r,t,a,o,s,l,c),Es=n.dynCall_vijji=(i,e,r,t,a,o,s)=>(Es=n.dynCall_vijji=k.Oi)(i,e,r,t,a,o,s),Ss=n.dynCall_viiijiii=(i,e,r,t,a,o,s,l,c)=>(Ss=n.dynCall_viiijiii=k.Pi)(i,e,r,t,a,o,s,l,c),Ds=n.dynCall_viijij=(i,e,r,t,a,o,s,l)=>(Ds=n.dynCall_viijij=k.Qi)(i,e,r,t,a,o,s,l),Rs=n.dynCall_viiiiiiji=(i,e,r,t,a,o,s,l,c,_)=>(Rs=n.dynCall_viiiiiiji=k.Ri)(i,e,r,t,a,o,s,l,c,_),As=n.dynCall_viiijii=(i,e,r,t,a,o,s,l)=>(As=n.dynCall_viiijii=k.Si)(i,e,r,t,a,o,s,l),Ts=n.dynCall_viiiijiii=(i,e,r,t,a,o,s,l,c,_)=>(Ts=n.dynCall_viiiijiii=k.Ti)(i,e,r,t,a,o,s,l,c,_),Fs=n.dynCall_viiiijii=(i,e,r,t,a,o,s,l,c)=>(Fs=n.dynCall_viiiijii=k.Ui)(i,e,r,t,a,o,s,l,c),xs=n.dynCall_iiijiij=(i,e,r,t,a,o,s,l,c)=>(xs=n.dynCall_iiijiij=k.Vi)(i,e,r,t,a,o,s,l,c),Us=n.dynCall_iiiijjj=(i,e,r,t,a,o,s,l,c,_)=>(Us=n.dynCall_iiiijjj=k.Wi)(i,e,r,t,a,o,s,l,c,_),Is=n.dynCall_jijji=(i,e,r,t,a,o,s)=>(Is=n.dynCall_jijji=k.Xi)(i,e,r,t,a,o,s),Bs=n.dynCall_viiijijij=(i,e,r,t,a,o,s,l,c,_,u,y)=>(Bs=n.dynCall_viiijijij=k.Yi)(i,e,r,t,a,o,s,l,c,_,u,y),Hs=n.dynCall_jijjjjii=(i,e,r,t,a,o,s,l,c,_,u,y)=>(Hs=n.dynCall_jijjjjii=k.Zi)(i,e,r,t,a,o,s,l,c,_,u,y),Ns=n.dynCall_iiiiijij=(i,e,r,t,a,o,s,l,c,_)=>(Ns=n.dynCall_iiiiijij=k._i)(i,e,r,t,a,o,s,l,c,_),Ms=n.dynCall_iiiiijiii=(i,e,r,t,a,o,s,l,c,_)=>(Ms=n.dynCall_iiiiijiii=k.$i)(i,e,r,t,a,o,s,l,c,_),Os=n.dynCall_viijjii=(i,e,r,t,a,o,s,l,c)=>(Os=n.dynCall_viijjii=k.aj)(i,e,r,t,a,o,s,l,c),Ps=n.dynCall_iiiiiiiiiiji=(i,e,r,t,a,o,s,l,c,_,u,y,E)=>(Ps=n.dynCall_iiiiiiiiiiji=k.bj)(i,e,r,t,a,o,s,l,c,_,u,y,E),Ls=n.dynCall_iiiiiiijj=(i,e,r,t,a,o,s,l,c,_,u)=>(Ls=n.dynCall_iiiiiiijj=k.cj)(i,e,r,t,a,o,s,l,c,_,u),Ws=n.dynCall_jiiijjj=(i,e,r,t,a,o,s,l,c,_)=>(Ws=n.dynCall_jiiijjj=k.dj)(i,e,r,t,a,o,s,l,c,_),qs=n.dynCall_viiijijj=(i,e,r,t,a,o,s,l,c,_,u)=>(qs=n.dynCall_viiijijj=k.ej)(i,e,r,t,a,o,s,l,c,_,u),Ks=n.dynCall_jiiiiiii=(i,e,r,t,a,o,s,l)=>(Ks=n.dynCall_jiiiiiii=k.fj)(i,e,r,t,a,o,s,l),Xs=n.dynCall_jiijj=(i,e,r,t,a,o,s)=>(Xs=n.dynCall_jiijj=k.gj)(i,e,r,t,a,o,s),Ys=n.dynCall_jiiijj=(i,e,r,t,a,o,s,l)=>(Ys=n.dynCall_jiiijj=k.hj)(i,e,r,t,a,o,s,l),Gs=n.dynCall_iijii=(i,e,r,t,a,o)=>(Gs=n.dynCall_iijii=k.ij)(i,e,r,t,a,o),$s=n.dynCall_iiidj=(i,e,r,t,a,o)=>($s=n.dynCall_iiidj=k.jj)(i,e,r,t,a,o),zs=n.dynCall_iiiiiiiji=(i,e,r,t,a,o,s,l,c,_)=>(zs=n.dynCall_iiiiiiiji=k.kj)(i,e,r,t,a,o,s,l,c,_),Vs=n.dynCall_iiiiiiiiijiiiiiii=(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q)=>(Vs=n.dynCall_iiiiiiiiijiiiiiii=k.lj)(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q),Js=n.dynCall_iiijjiij=(i,e,r,t,a,o,s,l,c,_,u)=>(Js=n.dynCall_iiijjiij=k.mj)(i,e,r,t,a,o,s,l,c,_,u),Qs=n.dynCall_iiijjiiji=(i,e,r,t,a,o,s,l,c,_,u,y)=>(Qs=n.dynCall_iiijjiiji=k.nj)(i,e,r,t,a,o,s,l,c,_,u,y),Zs=n.dynCall_iiiidjj=(i,e,r,t,a,o,s,l,c)=>(Zs=n.dynCall_iiiidjj=k.oj)(i,e,r,t,a,o,s,l,c),il=n.dynCall_iiiiiiiiji=(i,e,r,t,a,o,s,l,c,_,u)=>(il=n.dynCall_iiiiiiiiji=k.pj)(i,e,r,t,a,o,s,l,c,_,u),el=n.dynCall_iiijiiiij=(i,e,r,t,a,o,s,l,c,_,u)=>(el=n.dynCall_iiijiiiij=k.qj)(i,e,r,t,a,o,s,l,c,_,u),rl=n.dynCall_iiijiiij=(i,e,r,t,a,o,s,l,c,_)=>(rl=n.dynCall_iiijiiij=k.rj)(i,e,r,t,a,o,s,l,c,_),tl=n.dynCall_iiiiiiiiiiiij=(i,e,r,t,a,o,s,l,c,_,u,y,E,T)=>(tl=n.dynCall_iiiiiiiiiiiij=k.sj)(i,e,r,t,a,o,s,l,c,_,u,y,E,T),nl=n.dynCall_viiiijji=(i,e,r,t,a,o,s,l,c,_)=>(nl=n.dynCall_viiiijji=k.tj)(i,e,r,t,a,o,s,l,c,_),al=n.dynCall_jiiiiii=(i,e,r,t,a,o,s)=>(al=n.dynCall_jiiiiii=k.uj)(i,e,r,t,a,o,s),ol=n.dynCall_jiiiiiijii=(i,e,r,t,a,o,s,l,c,_,u)=>(ol=n.dynCall_jiiiiiijii=k.vj)(i,e,r,t,a,o,s,l,c,_,u),sl=n.dynCall_jiijjjii=(i,e,r,t,a,o,s,l,c,_,u)=>(sl=n.dynCall_jiijjjii=k.wj)(i,e,r,t,a,o,s,l,c,_,u),ll=n.dynCall_vjiiiji=(i,e,r,t,a,o,s,l,c)=>(ll=n.dynCall_vjiiiji=k.xj)(i,e,r,t,a,o,s,l,c),cl=n.dynCall_fiijii=(i,e,r,t,a,o,s)=>(cl=n.dynCall_fiijii=k.yj)(i,e,r,t,a,o,s),_l=n.dynCall_diijii=(i,e,r,t,a,o,s)=>(_l=n.dynCall_diijii=k.zj)(i,e,r,t,a,o,s),ul=n.dynCall_iiiiiiijii=(i,e,r,t,a,o,s,l,c,_,u)=>(ul=n.dynCall_iiiiiiijii=k.Aj)(i,e,r,t,a,o,s,l,c,_,u),dl=n.dynCall_iijji=(i,e,r,t,a,o,s)=>(dl=n.dynCall_iijji=k.Bj)(i,e,r,t,a,o,s),fl=n.dynCall_iijjiii=(i,e,r,t,a,o,s,l,c)=>(fl=n.dynCall_iijjiii=k.Cj)(i,e,r,t,a,o,s,l,c),vl=n.dynCall_iijiiii=(i,e,r,t,a,o,s,l)=>(vl=n.dynCall_iijiiii=k.Dj)(i,e,r,t,a,o,s,l),hl=n.dynCall_iijjii=(i,e,r,t,a,o,s,l)=>(hl=n.dynCall_iijjii=k.Ej)(i,e,r,t,a,o,s,l),yl=n.dynCall_iiijiii=(i,e,r,t,a,o,s,l)=>(yl=n.dynCall_iiijiii=k.Fj)(i,e,r,t,a,o,s,l),jl=n.dynCall_viijiiii=(i,e,r,t,a,o,s,l,c)=>(jl=n.dynCall_viijiiii=k.Gj)(i,e,r,t,a,o,s,l,c),bl=n.dynCall_vijiii=(i,e,r,t,a,o,s)=>(bl=n.dynCall_vijiii=k.Hj)(i,e,r,t,a,o,s),pl=n.dynCall_iiijjiii=(i,e,r,t,a,o,s,l,c,_)=>(pl=n.dynCall_iiijjiii=k.Ij)(i,e,r,t,a,o,s,l,c,_),ml=n.dynCall_vijiiiiii=(i,e,r,t,a,o,s,l,c,_)=>(ml=n.dynCall_vijiiiiii=k.Jj)(i,e,r,t,a,o,s,l,c,_),wl=n.dynCall_vijiiii=(i,e,r,t,a,o,s,l)=>(wl=n.dynCall_vijiiii=k.Kj)(i,e,r,t,a,o,s,l),gl=n.dynCall_vijiiiii=(i,e,r,t,a,o,s,l,c)=>(gl=n.dynCall_vijiiiii=k.Lj)(i,e,r,t,a,o,s,l,c),kl=n.dynCall_viiiiijii=(i,e,r,t,a,o,s,l,c,_)=>(kl=n.dynCall_viiiiijii=k.Mj)(i,e,r,t,a,o,s,l,c,_),Cl=n.dynCall_viijiiiiii=(i,e,r,t,a,o,s,l,c,_,u)=>(Cl=n.dynCall_viijiiiiii=k.Nj)(i,e,r,t,a,o,s,l,c,_,u),El=n.dynCall_jjjji=(i,e,r,t,a,o,s,l)=>(El=n.dynCall_jjjji=k.Oj)(i,e,r,t,a,o,s,l),Sl=n.dynCall_jjjii=(i,e,r,t,a,o,s)=>(Sl=n.dynCall_jjjii=k.Pj)(i,e,r,t,a,o,s),Dl=n.dynCall_jji=(i,e,r,t)=>(Dl=n.dynCall_jji=k.Qj)(i,e,r,t),Rl=n.dynCall_viiiijiiiii=(i,e,r,t,a,o,s,l,c,_,u,y)=>(Rl=n.dynCall_viiiijiiiii=k.Rj)(i,e,r,t,a,o,s,l,c,_,u,y),Al=n.dynCall_viiiijiiii=(i,e,r,t,a,o,s,l,c,_,u)=>(Al=n.dynCall_viiiijiiii=k.Sj)(i,e,r,t,a,o,s,l,c,_,u),Tl=n.dynCall_iijjijj=(i,e,r,t,a,o,s,l,c,_,u)=>(Tl=n.dynCall_iijjijj=k.Tj)(i,e,r,t,a,o,s,l,c,_,u),Fl=n.dynCall_vj=(i,e,r)=>(Fl=n.dynCall_vj=k.Uj)(i,e,r),xl=n.dynCall_viiiiijjii=(i,e,r,t,a,o,s,l,c,_,u,y)=>(xl=n.dynCall_viiiiijjii=k.Vj)(i,e,r,t,a,o,s,l,c,_,u,y),Ul=n.dynCall_viiiiiijii=(i,e,r,t,a,o,s,l,c,_,u)=>(Ul=n.dynCall_viiiiiijii=k.Wj)(i,e,r,t,a,o,s,l,c,_,u),Il=n.dynCall_viiiiiiijjjji=(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z)=>(Il=n.dynCall_viiiiiiijjjji=k.Xj)(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z),Bl=n.dynCall_vjiii=(i,e,r,t,a,o)=>(Bl=n.dynCall_vjiii=k.Yj)(i,e,r,t,a,o),Hl=n.dynCall_ijjiii=(i,e,r,t,a,o,s,l)=>(Hl=n.dynCall_ijjiii=k.Zj)(i,e,r,t,a,o,s,l),Nl=n.dynCall_iiijiiji=(i,e,r,t,a,o,s,l,c,_)=>(Nl=n.dynCall_iiijiiji=k._j)(i,e,r,t,a,o,s,l,c,_),Ml=n.dynCall_iijiij=(i,e,r,t,a,o,s,l)=>(Ml=n.dynCall_iijiij=k.$j)(i,e,r,t,a,o,s,l),Ol=n.dynCall_iijiii=(i,e,r,t,a,o,s)=>(Ol=n.dynCall_iijiii=k.ak)(i,e,r,t,a,o,s),Pl=n.dynCall_vijijjji=(i,e,r,t,a,o,s,l,c,_,u,y)=>(Pl=n.dynCall_vijijjji=k.bk)(i,e,r,t,a,o,s,l,c,_,u,y),Ll=n.dynCall_viijiijj=(i,e,r,t,a,o,s,l,c,_,u)=>(Ll=n.dynCall_viijiijj=k.ck)(i,e,r,t,a,o,s,l,c,_,u),Wl=n.dynCall_viijijj=(i,e,r,t,a,o,s,l,c,_)=>(Wl=n.dynCall_viijijj=k.dk)(i,e,r,t,a,o,s,l,c,_),ql=n.dynCall_vijiij=(i,e,r,t,a,o,s,l)=>(ql=n.dynCall_vijiij=k.ek)(i,e,r,t,a,o,s,l),Kl=n.dynCall_viiiiijjji=(i,e,r,t,a,o,s,l,c,_,u,y,E)=>(Kl=n.dynCall_viiiiijjji=k.fk)(i,e,r,t,a,o,s,l,c,_,u,y,E),Xl=n.dynCall_iiijiijj=(i,e,r,t,a,o,s,l,c,_,u)=>(Xl=n.dynCall_iiijiijj=k.gk)(i,e,r,t,a,o,s,l,c,_,u),Yl=n.dynCall_viiijijjj=(i,e,r,t,a,o,s,l,c,_,u,y,E)=>(Yl=n.dynCall_viiijijjj=k.hk)(i,e,r,t,a,o,s,l,c,_,u,y,E),Gl=n.dynCall_iijiijj=(i,e,r,t,a,o,s,l,c,_)=>(Gl=n.dynCall_iijiijj=k.ik)(i,e,r,t,a,o,s,l,c,_),$l=n.dynCall_iijiiijj=(i,e,r,t,a,o,s,l,c,_,u)=>($l=n.dynCall_iijiiijj=k.jk)(i,e,r,t,a,o,s,l,c,_,u),zl=n.dynCall_iiijiiijj=(i,e,r,t,a,o,s,l,c,_,u,y)=>(zl=n.dynCall_iiijiiijj=k.kk)(i,e,r,t,a,o,s,l,c,_,u,y),Vl=n.dynCall_iiijiiiijj=(i,e,r,t,a,o,s,l,c,_,u,y,E)=>(Vl=n.dynCall_iiijiiiijj=k.lk)(i,e,r,t,a,o,s,l,c,_,u,y,E),Jl=n.dynCall_viiijjjji=(i,e,r,t,a,o,s,l,c,_,u,y,E)=>(Jl=n.dynCall_viiijjjji=k.mk)(i,e,r,t,a,o,s,l,c,_,u,y,E),Ql=n.dynCall_vijjiii=(i,e,r,t,a,o,s,l,c)=>(Ql=n.dynCall_vijjiii=k.nk)(i,e,r,t,a,o,s,l,c),Zl=n.dynCall_iiijjji=(i,e,r,t,a,o,s,l,c,_)=>(Zl=n.dynCall_iiijjji=k.ok)(i,e,r,t,a,o,s,l,c,_),ic=n.dynCall_iiiiiiijji=(i,e,r,t,a,o,s,l,c,_,u,y)=>(ic=n.dynCall_iiiiiiijji=k.pk)(i,e,r,t,a,o,s,l,c,_,u,y),ec=n.dynCall_iijjjii=(i,e,r,t,a,o,s,l,c,_)=>(ec=n.dynCall_iijjjii=k.qk)(i,e,r,t,a,o,s,l,c,_),rc=n.dynCall_iiiiijjji=(i,e,r,t,a,o,s,l,c,_,u,y)=>(rc=n.dynCall_iiiiijjji=k.rk)(i,e,r,t,a,o,s,l,c,_,u,y),tc=n.dynCall_iiiiijjj=(i,e,r,t,a,o,s,l,c,_,u)=>(tc=n.dynCall_iiiiijjj=k.sk)(i,e,r,t,a,o,s,l,c,_,u),nc=n.dynCall_viiijiji=(i,e,r,t,a,o,s,l,c,_)=>(nc=n.dynCall_viiijiji=k.tk)(i,e,r,t,a,o,s,l,c,_),ac=n.dynCall_jijiiii=(i,e,r,t,a,o,s,l)=>(ac=n.dynCall_jijiiii=k.uk)(i,e,r,t,a,o,s,l),oc=n.dynCall_viijiji=(i,e,r,t,a,o,s,l,c)=>(oc=n.dynCall_viijiji=k.vk)(i,e,r,t,a,o,s,l,c);function qc(i,e){var r=w();try{return W(i)(e)}catch(t){if(p(r),t!==t+0)throw t;m(1,0)}}function Kc(i){var e=w();try{W(i)()}catch(r){if(p(e),r!==r+0)throw r;m(1,0)}}function Xc(i,e,r){var t=w();try{W(i)(e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function Yc(i,e){var r=w();try{W(i)(e)}catch(t){if(p(r),t!==t+0)throw t;m(1,0)}}function Gc(i,e,r){var t=w();try{return W(i)(e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function $c(i,e,r,t){var a=w();try{return W(i)(e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function zc(i,e,r,t,a,o){var s=w();try{return W(i)(e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function Vc(i,e,r,t){var a=w();try{W(i)(e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function Jc(i,e,r,t,a){var o=w();try{return W(i)(e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function Qc(i,e,r,t){var a=w();try{return W(i)(e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function Zc(i,e,r,t){var a=w();try{return W(i)(e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function i_(i,e,r,t,a){var o=w();try{W(i)(e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function e_(i,e,r,t){var a=w();try{W(i)(e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function r_(i,e,r,t,a,o,s){var l=w();try{return W(i)(e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function t_(i,e,r,t,a,o,s){var l=w();try{W(i)(e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function n_(i,e,r,t,a,o){var s=w();try{W(i)(e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function a_(i,e,r,t,a,o,s,l){var c=w();try{return W(i)(e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function o_(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return W(i)(e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function s_(i,e,r,t,a,o,s,l,c,_,u,y,E){var T=w();try{return W(i)(e,r,t,a,o,s,l,c,_,u,y,E)}catch(I){if(p(T),I!==I+0)throw I;m(1,0)}}function l_(i){var e=w();try{return W(i)()}catch(r){if(p(e),r!==r+0)throw r;m(1,0)}}function c_(i,e,r,t,a,o,s,l){var c=w();try{W(i)(e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function __(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{return W(i)(e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function u_(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{W(i)(e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function d_(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y){var z=w();try{W(i)(e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y)}catch(Q){if(p(z),Q!==Q+0)throw Q;m(1,0)}}function f_(i,e,r,t,a,o){var s=w();try{return W(i)(e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function v_(i,e,r,t,a,o,s,l,c){var _=w();try{return W(i)(e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function h_(i,e,r,t,a){var o=w();try{return W(i)(e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function y_(i,e,r){var t=w();try{W(i)(e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function j_(i,e,r,t,a,o,s,l,c,_){var u=w();try{W(i)(e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function b_(i,e){var r=w();try{return W(i)(e)}catch(t){if(p(r),t!==t+0)throw t;m(1,0)}}function p_(i,e){var r=w();try{return W(i)(e)}catch(t){if(p(r),t!==t+0)throw t;m(1,0)}}function m_(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z){var Q=w();try{return W(i)(e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z)}catch(U){if(p(Q),U!==U+0)throw U;m(1,0)}}function w_(i,e,r,t,a,o,s,l,c){var _=w();try{W(i)(e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function g_(i,e,r){var t=w();try{return W(i)(e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function k_(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{W(i)(e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function C_(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q){var U=w();try{return W(i)(e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q)}catch(L){if(p(U),L!==L+0)throw L;m(1,0)}}function E_(i,e,r,t){var a=w();try{W(i)(e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function S_(i,e,r,t){var a=w();try{W(i)(e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function D_(i,e){var r=w();try{return W(i)(e)}catch(t){if(p(r),t!==t+0)throw t;m(1,0)}}function R_(i,e){var r=w();try{return W(i)(e)}catch(t){if(p(r),t!==t+0)throw t;m(1,0)}}function A_(i,e,r,t){var a=w();try{return W(i)(e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function T_(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y){var z=w();try{return W(i)(e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y)}catch(Q){if(p(z),Q!==Q+0)throw Q;m(1,0)}}function F_(i,e,r,t,a){var o=w();try{return W(i)(e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function x_(i,e,r,t,a,o){var s=w();try{W(i)(e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function U_(i,e,r){var t=w();try{W(i)(e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function I_(i,e,r,t,a,o,s,l,c,_){var u=w();try{return W(i)(e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function B_(i,e,r,t,a){var o=w();try{return W(i)(e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function H_(i,e,r,t,a){var o=w();try{return W(i)(e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function N_(i,e,r,t,a,o,s){var l=w();try{W(i)(e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function M_(i,e,r){var t=w();try{return W(i)(e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function O_(i,e,r,t,a,o,s){var l=w();try{return W(i)(e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function P_(i,e,r,t,a){var o=w();try{return W(i)(e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function L_(i,e,r,t,a,o,s){var l=w();try{return W(i)(e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function W_(i,e,r){var t=w();try{return W(i)(e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function q_(i,e,r){var t=w();try{return W(i)(e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function K_(i,e,r,t,a,o,s,l,c,_){var u=w();try{W(i)(e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function X_(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{W(i)(e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function Y_(i,e,r,t,a){var o=w();try{return li(i,e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function G_(i,e,r,t,a,o,s){var l=w();try{La(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function $_(i,e,r,t,a){var o=w();try{pa(i,e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function z_(i,e,r,t,a,o,s){var l=w();try{return Sa(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function V_(i,e,r,t,a){var o=w();try{return Nr(i,e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function J_(i,e,r,t,a,o,s,l){var c=w();try{Wa(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Q_(i,e){var r=w();try{return Hr(i,e)}catch(t){if(p(r),t!==t+0)throw t;m(1,0)}}function Z_(i,e,r){var t=w();try{return ho(i,e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function iu(i,e,r,t,a,o,s){var l=w();try{ce(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function eu(i,e,r,t,a,o,s){var l=w();try{return Ci(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function ru(i,e,r,t,a,o,s,l,c){var _=w();try{return Qi(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function tu(i,e,r,t){var a=w();try{ba(i,e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function nu(i,e,r,t,a,o,s,l,c){var _=w();try{Vo(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function au(i,e,r,t,a,o,s,l,c){var _=w();try{vo(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function ou(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{xl(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function su(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{Ul(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function lu(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z){var Q=w();try{Il(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z)}catch(U){if(p(Q),U!==U+0)throw U;m(1,0)}}function cu(i,e,r,t,a,o,s){var l=w();try{ze(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function _u(i,e,r,t,a){var o=w();try{ma(i,e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function uu(i,e,r,t){var a=w();try{return Ir(i,e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function du(i,e,r,t,a,o){var s=w();try{Ca(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function fu(i,e,r,t,a){var o=w();try{return Br(i,e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function vu(i,e,r,t,a,o,s){var l=w();try{return dl(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function hu(i,e,r,t,a,o,s,l){var c=w();try{return Mr(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function yu(i,e,r,t,a,o){var s=w();try{Ve(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function ju(i,e,r,t,a,o,s,l){var c=w();try{ka(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function bu(i,e,r,t,a,o){var s=w();try{return wa(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function pu(i,e,r,t,a,o,s){var l=w();try{ga(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function mu(i,e,r,t,a,o){var s=w();try{return Gs(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function wu(i,e,r,t,a,o,s,l){var c=w();try{As(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function gu(i,e,r,t,a,o,s,l,c){var _=w();try{return Cs(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function ku(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return ul(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function Cu(i,e,r,t,a,o,s){var l=w();try{return Do(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function Eu(i,e,r,t,a,o,s,l){var c=w();try{return Hl(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Su(i){var e=w();try{return Fa(i)}catch(r){if(p(e),r!==r+0)throw r;m(1,0)}}function Du(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return yo(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function Ru(i,e,r,t,a,o,s,l){var c=w();try{return jo(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Au(i,e,r,t,a,o,s,l,c,_){var u=w();try{return bo(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Tu(i,e,r,t,a,o){var s=w();try{Bl(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function Fu(i,e,r,t,a,o){var s=w();try{return Ea(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function xu(i,e,r,t){var a=w();try{return po(i,e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function Uu(i,e,r,t,a,o,s,l){var c=w();try{Ds(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Iu(i,e,r,t,a,o,s,l,c,_){var u=w();try{Da(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Bu(i,e,r,t,a,o,s,l){var c=w();try{xa(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Hu(i,e,r,t,a,o,s,l,c){var _=w();try{return Ua(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Nu(i,e,r,t,a,o,s,l){var c=w();try{return Ra(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Mu(i,e,r,t,a,o,s){var l=w();try{return Ta(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function Ou(i,e,r,t,a,o,s,l){var c=w();try{return Aa(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Pu(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{return Ia(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function Lu(i,e,r,t,a,o,s,l,c){var _=w();try{return Ba(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Wu(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{Ha(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function qu(i,e,r,t,a,o,s,l){var c=w();try{return co(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Ku(i,e,r,t,a,o,s,l,c){var _=w();try{qa(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Xu(i,e,r,t,a,o,s,l){var c=w();try{return ro(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Yu(i,e,r,t,a,o,s,l,c){var _=w();try{Na(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Gu(i,e,r,t,a,o,s,l,c,_){var u=w();try{Ma(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function $u(i,e,r,t){var a=w();try{return Oa(i,e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function zu(i,e,r,t,a,o,s,l,c,_){var u=w();try{Pa(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Vu(i,e,r,t,a,o){var s=w();try{Ka(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function Ju(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{Xa(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function Qu(i,e,r,t,a,o,s,l){var c=w();try{Ya(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Zu(i,e,r,t,a,o,s,l,c,_,u,y,E){var T=w();try{Ga(i,e,r,t,a,o,s,l,c,_,u,y,E)}catch(I){if(p(T),I!==I+0)throw I;m(1,0)}}function id(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{Ja(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function ed(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y){var z=w();try{Qa(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y)}catch(Q){if(p(z),Q!==Q+0)throw Q;m(1,0)}}function rd(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q){var U=w();try{Za(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q)}catch(L){if(p(U),L!==L+0)throw L;m(1,0)}}function td(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{$a(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function nd(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{ao(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function ad(i,e,r,t,a,o,s,l,c,_,u,y,E){var T=w();try{za(i,e,r,t,a,o,s,l,c,_,u,y,E)}catch(I){if(p(T),I!==I+0)throw I;m(1,0)}}function od(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{Va(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function sd(i,e,r,t,a,o,s,l,c,_,u,y,E){var T=w();try{to(i,e,r,t,a,o,s,l,c,_,u,y,E)}catch(I){if(p(T),I!==I+0)throw I;m(1,0)}}function ld(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{io(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function cd(i,e,r,t,a,o,s,l,c,_){var u=w();try{eo(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function _d(i,e,r,t,a,o,s,l){var c=w();try{To(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function ud(i,e,r,t,a,o,s,l,c,_,u,y,E){var T=w();try{no(i,e,r,t,a,o,s,l,c,_,u,y,E)}catch(I){if(p(T),I!==I+0)throw I;m(1,0)}}function dd(i,e,r){var t=w();try{return oo(i,e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function fd(i,e,r,t,a,o,s,l){var c=w();try{return _o(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function vd(i,e,r,t,a,o,s,l){var c=w();try{return uo(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function hd(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z){var Q=w();try{fo(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z)}catch(U){if(p(Q),U!==U+0)throw U;m(1,0)}}function yd(i,e){var r=w();try{return so(i,e)}catch(t){if(p(r),t!==t+0)throw t;m(1,0)}}function jd(i,e){var r=w();try{return lo(i,e)}catch(t){if(p(r),t!==t+0)throw t;m(1,0)}}function bd(i,e,r,t,a,o,s,l,c){var _=w();try{return wo(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function pd(i,e,r,t,a,o,s,l,c){var _=w();try{return go(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function md(i,e,r,t,a,o,s,l){var c=w();try{return ko(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function wd(i,e,r,t,a,o,s,l,c){var _=w();try{return mo(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function gd(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return Ls(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function kd(i,e,r,t,a,o){var s=w();try{return Co(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function Cd(i,e,r,t,a,o,s,l,c,_){var u=w();try{Go(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Ed(i,e,r,t,a,o,s){var l=w();try{return Eo(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function Sd(i,e,r,t,a,o,s,l){var c=w();try{return So(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Dd(i,e,r,t,a,o){var s=w();try{return Ro(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function Rd(i,e,r,t){var a=w();try{return Qo(i,e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function Ad(i,e,r,t,a,o,s,l){var c=w();try{return yl(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Td(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{Bs(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function Fd(i,e,r,t,a,o,s,l,c){var _=w();try{ts(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function xd(i,e,r,t,a){var o=w();try{return Uo(i,e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function Ud(i,e,r,t,a,o,s,l,c){var _=w();try{return Ao(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Id(i,e,r,t,a,o,s,l){var c=w();try{return Fo(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Bd(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I){var Y=w();try{xo(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I)}catch(z){if(p(Y),z!==z+0)throw z;m(1,0)}}function Hd(i,e,r){var t=w();try{return us(i,e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function Nd(i,e,r,t,a,o,s){var l=w();try{ms(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function Md(i,e,r,t,a,o,s,l){var c=w();try{ls(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Od(i,e,r,t,a,o,s,l,c){var _=w();try{cs(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Pd(i,e,r,t,a,o,s,l,c){var _=w();try{os(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Ld(i,e,r,t,a,o,s){var l=w();try{Ko(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function Wd(i,e,r,t,a,o){var s=w();try{return Io(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function qd(i,e,r,t,a,o,s,l,c){var _=w();try{qo(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Kd(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{Wo(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function Xd(i,e,r,t,a,o){var s=w();try{return rs(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function Yd(i,e,r,t,a,o,s,l,c,_){var u=w();try{Bo(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Gd(i,e,r,t,a,o,s){var l=w();try{return Yo(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function $d(i,e,r,t,a,o,s,l,c){var _=w();try{Xo(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function zd(i,e,r,t,a,o,s,l,c,_,u,y,E,T){var I=w();try{return No(i,e,r,t,a,o,s,l,c,_,u,y,E,T)}catch(Y){if(p(I),Y!==Y+0)throw Y;m(1,0)}}function Vd(i,e,r,t,a,o,s,l,c,_){var u=w();try{return Mo(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Jd(i,e,r,t,a,o,s,l,c){var _=w();try{return Oo(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Qd(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q){var U=w();try{return Ho(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q)}catch(L){if(p(U),L!==L+0)throw L;m(1,0)}}function Zd(i,e,r,t,a,o,s,l,c){var _=w();try{return Po(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function ef(i,e,r,t,a,o){var s=w();try{Lo(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function rf(i,e,r,t,a,o,s,l){var c=w();try{$o(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function tf(i,e,r,t,a,o,s,l,c,_){var u=w();try{is(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function nf(i,e,r,t,a,o,s,l,c,_){var u=w();try{es(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function af(i,e,r,t,a,o,s){var l=w();try{return Zo(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function of(i,e,r,t,a,o,s,l,c){var _=w();try{return Jo(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function sf(i,e,r,t,a,o,s,l,c){var _=w();try{ns(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function lf(i,e,r,t,a,o,s){var l=w();try{return zo(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function cf(i,e,r,t,a,o,s){var l=w();try{ss(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function _f(i,e,r,t,a,o,s){var l=w();try{return fs(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function uf(i,e,r,t,a,o){var s=w();try{return hs(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function df(i,e,r,t,a){var o=w();try{return bs(i,e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function ff(i,e,r,t,a){var o=w();try{ps(i,e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function vf(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{ws(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function hf(i,e,r,t,a){var o=w();try{return ds(i,e,r,t,a)}catch(s){if(p(o),s!==s+0)throw s;m(1,0)}}function yf(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return ys(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function jf(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{gs(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function bf(i,e,r,t,a,o){var s=w();try{return ks(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function pf(i,e,r,t,a,o,s){var l=w();try{return Is(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function mf(i,e,r,t,a,o,s){var l=w();try{Es(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function wf(i,e,r,t,a,o,s){var l=w();try{return _s(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function gf(i,e,r,t,a,o,s,l,c){var _=w();try{Ss(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function kf(i,e,r,t,a,o,s,l,c,_){var u=w();try{return Us(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Cf(i,e,r,t,a,o,s,l,c){var _=w();try{return xs(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Ef(i,e,r,t,a,o,s,l,c,_){var u=w();try{Rs(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Sf(i,e,r,t,a,o,s,l,c,_){var u=w();try{Ts(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Df(i,e,r,t,a,o,s,l,c){var _=w();try{Fs(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Rf(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{return Hs(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function Af(i,e,r,t,a,o,s,l,c,_){var u=w();try{return Ns(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Tf(i,e,r,t,a,o,s,l,c,_){var u=w();try{return Ms(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Ff(i,e,r,t,a,o,s){var l=w();try{return al(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function xf(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return ol(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function Uf(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return sl(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function If(i,e,r,t,a,o,s,l,c,_,u,y,E){var T=w();try{return Ps(i,e,r,t,a,o,s,l,c,_,u,y,E)}catch(I){if(p(T),I!==I+0)throw I;m(1,0)}}function Bf(i,e,r,t,a,o,s,l,c,_){var u=w();try{return Ws(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Hf(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{qs(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function Nf(i,e,r,t,a,o,s,l,c){var _=w();try{Os(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Mf(i,e,r,t,a,o,s,l){var c=w();try{return Ks(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Of(i,e,r,t,a,o,s){var l=w();try{return Xs(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function Pf(i,e,r,t,a,o,s,l){var c=w();try{return Ys(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function Lf(i,e,r,t,a,o,s,l,c,_){var u=w();try{return zs(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Wf(i,e,r,t,a,o){var s=w();try{return $s(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function qf(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q){var U=w();try{return Vs(i,e,r,t,a,o,s,l,c,_,u,y,E,T,I,Y,z,Q)}catch(L){if(p(U),L!==L+0)throw L;m(1,0)}}function Kf(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return Js(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function Xf(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{return Qs(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function Yf(i,e,r,t,a,o,s,l,c){var _=w();try{return Zs(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Gf(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return il(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function $f(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return el(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function zf(i,e,r,t,a,o,s,l,c,_){var u=w();try{return rl(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Vf(i,e,r,t,a,o,s,l,c,_,u,y,E,T){var I=w();try{return tl(i,e,r,t,a,o,s,l,c,_,u,y,E,T)}catch(Y){if(p(I),Y!==Y+0)throw Y;m(1,0)}}function Jf(i,e,r,t,a,o,s,l,c,_){var u=w();try{nl(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function Qf(i,e,r,t,a,o,s,l,c){var _=w();try{ll(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function Zf(i,e,r,t,a,o,s){var l=w();try{return cl(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function i0(i,e,r,t,a,o,s){var l=w();try{return _l(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function e0(i,e,r,t,a,o,s,l,c){var _=w();try{return fl(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function r0(i,e,r,t,a,o,s,l){var c=w();try{return vl(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function t0(i,e,r,t,a,o,s,l){var c=w();try{return hl(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function n0(i,e,r,t,a,o,s){var l=w();try{bl(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function a0(i,e,r,t,a,o,s,l,c,_){var u=w();try{ml(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function o0(i,e,r,t,a,o,s,l){var c=w();try{wl(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function s0(i,e,r,t,a,o,s,l,c){var _=w();try{jl(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function l0(i,e,r,t,a,o,s,l,c,_){var u=w();try{return pl(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function c0(i,e,r,t,a,o,s,l,c){var _=w();try{gl(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function _0(i,e,r,t,a,o,s,l,c,_){var u=w();try{kl(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function u0(i,e,r,t,a,o,s){var l=w();try{return vs(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function d0(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{Cl(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function f0(i,e,r,t,a,o,s,l){var c=w();try{return El(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function v0(i,e,r,t,a,o,s){var l=w();try{return Sl(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function h0(i,e,r,t){var a=w();try{return Dl(i,e,r,t)}catch(o){if(p(a),o!==o+0)throw o;m(1,0)}}function y0(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{Rl(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function j0(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{Al(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function b0(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return Tl(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function p0(i,e,r){var t=w();try{Fl(i,e,r)}catch(a){if(p(t),a!==a+0)throw a;m(1,0)}}function m0(i,e,r,t,a,o,s,l,c,_){var u=w();try{return Nl(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function w0(i,e,r,t,a,o,s,l){var c=w();try{return Ml(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function g0(i,e,r,t,a,o,s,l,c,_){var u=w();try{as(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function k0(i,e,r,t,a,o,s){var l=w();try{return Ol(i,e,r,t,a,o,s)}catch(c){if(p(l),c!==c+0)throw c;m(1,0)}}function C0(i,e,r,t,a,o){var s=w();try{return js(i,e,r,t,a,o)}catch(l){if(p(s),l!==l+0)throw l;m(1,0)}}function E0(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{Pl(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function S0(i,e,r,t,a,o,s,l,c,_){var u=w();try{Wl(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function D0(i,e,r,t,a,o,s,l,c,_,u,y,E){var T=w();try{Kl(i,e,r,t,a,o,s,l,c,_,u,y,E)}catch(I){if(p(T),I!==I+0)throw I;m(1,0)}}function R0(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{Ll(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function A0(i,e,r,t,a,o,s,l){var c=w();try{ql(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function T0(i,e,r,t,a,o,s,l,c,_,u,y,E){var T=w();try{return Vl(i,e,r,t,a,o,s,l,c,_,u,y,E)}catch(I){if(p(T),I!==I+0)throw I;m(1,0)}}function F0(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return Xl(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function x0(i,e,r,t,a,o,s,l,c,_,u,y,E){var T=w();try{Yl(i,e,r,t,a,o,s,l,c,_,u,y,E)}catch(I){if(p(T),I!==I+0)throw I;m(1,0)}}function U0(i,e,r,t,a,o,s,l,c,_){var u=w();try{return Gl(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function I0(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return $l(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function B0(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{return zl(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function H0(i,e,r,t,a,o,s,l,c,_){var u=w();try{return Zl(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function N0(i,e,r,t,a,o,s,l,c,_,u,y,E){var T=w();try{Jl(i,e,r,t,a,o,s,l,c,_,u,y,E)}catch(I){if(p(T),I!==I+0)throw I;m(1,0)}}function M0(i,e,r,t,a,o,s,l,c){var _=w();try{oc(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function O0(i,e,r,t,a,o,s,l,c){var _=w();try{Ql(i,e,r,t,a,o,s,l,c)}catch(u){if(p(_),u!==u+0)throw u;m(1,0)}}function P0(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{return ic(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function L0(i,e,r,t,a,o,s,l,c,_){var u=w();try{nc(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function W0(i,e,r,t,a,o,s,l){var c=w();try{return ac(i,e,r,t,a,o,s,l)}catch(_){if(p(c),_!==_+0)throw _;m(1,0)}}function q0(i,e,r,t,a,o,s,l,c,_,u){var y=w();try{return tc(i,e,r,t,a,o,s,l,c,_,u)}catch(E){if(p(y),E!==E+0)throw E;m(1,0)}}function K0(i,e,r,t,a,o,s,l,c,_){var u=w();try{return ec(i,e,r,t,a,o,s,l,c,_)}catch(y){if(p(u),y!==y+0)throw y;m(1,0)}}function X0(i,e,r,t,a,o,s,l,c,_,u,y){var E=w();try{return rc(i,e,r,t,a,o,s,l,c,_,u,y)}catch(T){if(p(E),T!==T+0)throw T;m(1,0)}}function Y0(i){i=Object.assign({},i);var e=t=>()=>t()>>>0,r=t=>a=>t(a)>>>0;return i.__errno_location=e(i.__errno_location),i.mg=r(i.mg),i.qg=e(i.qg),i.sg=r(i.sg),i}n.stackAlloc=gi,n.stackSave=w,n.stackRestore=p,n.ccall=Dn;var Or;qi=function i(){Or||sc(),Or||(qi=i)};function G0(){var i=Tr,e=0,r=0;try{var t=i(e,r);return kn(t,!0),t}catch(a){return Cn(a)}}function sc(){if(Ai>0||(rt(),Ai>0))return;function i(){Or||(Or=!0,n.calledRun=!0,!Z&&(tt(),nt(),j(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),lc&&G0(),at()))}n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),i()},1)):i()}if(n.preInit)for(typeof n.preInit=="function"&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var lc=!0;return n.noInitialRun&&(lc=!1),sc(),v.ready}})();typeof Hc=="object"&&typeof ya=="object"?ya.exports=Bc:typeof define=="function"&&define.amd&&define([],()=>Bc)});var Lc=Qe((Pc,ja)=>{"use strict";var Oc=(()=>{var f=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(f=f||__filename),function(v={}){var n=v,j,b;n.ready=new Promise((d,h)=>{j=d,b=h});var C=Object.assign({},n),S=[],R="./this.program",A=(d,h)=>{throw h},N=typeof window=="object",P=typeof importScripts=="function",ri=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",$="";function J(d){return n.locateFile?n.locateFile(d,$):$+d}var bi,wi,pi,Ii;if(ri){var Ri=va(),ki=ha();P?$=ki.dirname($)+"/":$=__dirname+"/",bi=(d,h)=>(d=xe(d)?new URL(d):ki.normalize(d),Ri.readFileSync(d,h?void 0:"utf8")),pi=d=>{var h=bi(d,!0);return h.buffer||(h=new Uint8Array(h)),h},wi=(d,h,g,D=!0)=>{d=xe(d)?new URL(d):ki.normalize(d),Ri.readFile(d,D?void 0:"utf8",(x,M)=>{x?g(x):h(D?M.buffer:M)})},!n.thisProgram&&process.argv.length>1&&(R=process.argv[1].replace(/\\/g,"/")),S=process.argv.slice(2),A=(d,h)=>{throw process.exitCode=d,h},n.inspect=()=>"[Emscripten Module object]"}else(N||P)&&(P?$=self.location.href:typeof document<"u"&&document.currentScript&&($=document.currentScript.src),f&&($=f),$.indexOf("blob:")!==0?$=$.substr(0,$.replace(/[?#].*/,"").lastIndexOf("/")+1):$="",bi=d=>{var h=new XMLHttpRequest;return h.open("GET",d,!1),h.send(null),h.responseText},P&&(pi=d=>{var h=new XMLHttpRequest;return h.open("GET",d,!1),h.responseType="arraybuffer",h.send(null),new Uint8Array(h.response)}),wi=(d,h,g)=>{var D=new XMLHttpRequest;D.open("GET",d,!0),D.responseType="arraybuffer",D.onload=()=>{if(D.status==200||D.status==0&&D.response){h(D.response);return}g()},D.onerror=g,D.send(null)},Ii=d=>document.title=d);var ee=n.print||console.log.bind(console),Ei=n.printErr||console.error.bind(console);Object.assign(n,C),C=null,n.arguments&&(S=n.arguments),n.thisProgram&&(R=n.thisProgram),n.quit&&(A=n.quit);var Bi;n.wasmBinary&&(Bi=n.wasmBinary);var _e=n.noExitRuntime||!0;typeof WebAssembly!="object"&&Di("no native wasm support detected");var Hi,Z=!1,mi;function Si(d,h){d||Di(h)}var vi,ai,di,_i,F,ii,Jr,Qr;function De(){var d=Hi.buffer;n.HEAP8=vi=new Int8Array(d),n.HEAP16=di=new Int16Array(d),n.HEAPU8=ai=new Uint8Array(d),n.HEAPU16=_i=new Uint16Array(d),n.HEAP32=F=new Int32Array(d),n.HEAPU32=ii=new Uint32Array(d),n.HEAPF32=Jr=new Float32Array(d),n.HEAPF64=Qr=new Float64Array(d)}var nr,Re=[],Ae=[],Zr=[],Te=[],ar=!1,it=0;function et(){return _e||it>0}function rt(){if(n.preRun)for(typeof n.preRun=="function"&&(n.preRun=[n.preRun]);n.preRun.length;)ot(n.preRun.shift());Vi(Re)}function tt(){ar=!0,Vi(Ae)}function nt(){Vi(Zr)}function at(){if(n.postRun)for(typeof n.postRun=="function"&&(n.postRun=[n.postRun]);n.postRun.length;)lt(n.postRun.shift());Vi(Te)}function ot(d){Re.unshift(d)}function st(d){Ae.unshift(d)}function lt(d){Te.unshift(d)}var Ai=0,re=null,qi=null;function ct(d){Ai++,n.monitorRunDependencies&&n.monitorRunDependencies(Ai)}function _t(d){if(Ai--,n.monitorRunDependencies&&n.monitorRunDependencies(Ai),Ai==0&&(re!==null&&(clearInterval(re),re=null),qi)){var h=qi;qi=null,h()}}function Di(d){n.onAbort&&n.onAbort(d),d="Aborted("+d+")",Ei(d),Z=!0,mi=1,d+=". Build with -sASSERTIONS for more info.",ar&&Fr();var h=new WebAssembly.RuntimeError(d);throw b(h),h}var ut="data:application/octet-stream;base64,";function Fe(d){return d.startsWith(ut)}function xe(d){return d.startsWith("file://")}var Ni;Ni="./duckdb-eh.wasm",Fe(Ni)||(Ni=J(Ni));function Ue(d){if(d==Ni&&Bi)return new Uint8Array(Bi);if(pi)return pi(d);throw"both async and sync fetching of the wasm failed"}function dt(d){return!Bi&&(N||P)&&typeof fetch=="function"?fetch(d,{credentials:"same-origin"}).then(h=>{if(!h.ok)throw"failed to load wasm binary file at '"+d+"'";return h.arrayBuffer()}).catch(()=>Ue(d)):Promise.resolve().then(()=>Ue(d))}function Ie(d,h,g){return dt(d).then(D=>WebAssembly.instantiate(D,h)).then(D=>D).then(g,D=>{Ei("failed to asynchronously prepare wasm: ".concat(D)),Di(D)})}function ft(d,h,g,D){return!d&&typeof WebAssembly.instantiateStreaming=="function"&&!Fe(h)&&!ri&&typeof fetch=="function"?fetch(h,{credentials:"same-origin"}).then(x=>{var M=WebAssembly.instantiateStreaming(x,g);return M.then(D,function(H){return Ei("wasm streaming compile failed: ".concat(H)),Ei("falling back to ArrayBuffer instantiation"),Ie(h,g,D)})}):Ie(h,g,D)}function vt(){var d={a:jn};function h(D,x){var M=D.exports;return M=Vn(M),q=M,Hi=q.fa,De(),nr=q.ia,st(q.ga),_t("wasm-instantiate"),M}ct("wasm-instantiate");function g(D){h(D.instance)}if(n.instantiateWasm)try{return n.instantiateWasm(d,h)}catch(D){Ei("Module.instantiateWasm callback failed with error: ".concat(D)),b(D)}return ft(Bi,Ni,d,g).catch(b),{}}var ji,Mi;function Be(d){this.name="ExitStatus",this.message="Program terminated with exit(".concat(d,")"),this.status=d}var Vi=d=>{for(;d.length>0;)d.shift()(n)},te=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,ne=(d,h,g)=>{h>>>=0;for(var D=h+g,x=h;d[x]&&!(x>=D);)++x;if(x-h>16&&d.buffer&&te)return te.decode(d.subarray(h,x));for(var M="";h>10,56320|ei&1023)}}return M},Ki=(d,h)=>(d>>>=0,d?ne(ai,d,h):""),Xi={varargs:void 0,get(){var d=F[Xi.varargs>>>2>>>0];return Xi.varargs+=4,d},getp(){return Xi.get()},getStr(d){var h=Ki(d);return h}},Fi=(d,h)=>h+2097152>>>0<4194305-!!d?(d>>>0)+h*4294967296:NaN;function ht(d,h,g,D,x){h>>>=0,g>>>=0,D>>>=0,x>>>=0;for(var M=0,H=h?F[h>>>2>>>0]:0,O=h?F[h+4>>>2>>>0]:0,X=g?F[g>>>2>>>0]:0,ei=g?F[g+4>>>2>>>0]:0,oi=D?F[D>>>2>>>0]:0,m=D?F[D+4>>>2>>>0]:0,ni=0,w=0,p=0,gi=0,Oi=0,Wi=0,B=(h?F[h>>>2>>>0]:0)|(g?F[g>>>2>>>0]:0)|(D?F[D>>>2>>>0]:0),G=(h?F[h+4>>>2>>>0]:0)|(g?F[g+4>>>2>>>0]:0)|(D?F[D+4>>>2>>>0]:0),ui=function(Hr,Nr,Mr,Ve){return Hr<32?Nr&Ve:Mr&Ve},li=0;li>>2>>>0]:0,Br=h?F[x+8>>>2>>>0]:0;ze=(Ir+Br/1e6)*1e3}ce=Qi.stream_ops.poll(Qi,ze)}ce&1&&ui(li,H,O,Ci)&&(li<32?ni=ni|Ci:w=w|Ci,M++),ce&4&&ui(li,X,ei,Ci)&&(li<32?p=p|Ci:gi=gi|Ci,M++),ce&2&&ui(li,oi,m,Ci)&&(li<32?Oi=Oi|Ci:Wi=Wi|Ci,M++)}}return h&&(F[h>>>2>>>0]=ni,F[h+4>>>2>>>0]=w),g&&(F[g>>>2>>>0]=p,F[g+4>>>2>>>0]=gi),D&&(F[D>>>2>>>0]=Oi,F[D+4>>>2>>>0]=Wi),M}function ue(){Di("missing function: $SOCKFS")}ue.stub=!0;function He(){Di("missing function: $FS")}He.stub=!0;var Li=d=>{var h=ue.getSocket(d);if(!h)throw new He.ErrnoError(8);return h},Ne=d=>(d&255)+"."+(d>>8&255)+"."+(d>>16&255)+"."+(d>>24&255),or=d=>{var h="",g=0,D=0,x=0,M=0,H=0,O=0,X=[d[0]&65535,d[0]>>16,d[1]&65535,d[1]>>16,d[2]&65535,d[2]>>16,d[3]&65535,d[3]>>16],ei=!0,oi="";for(O=0;O<5;O++)if(X[O]!==0){ei=!1;break}if(ei){if(oi=Ne(X[6]|X[7]<<16),X[5]===-1)return h="::ffff:",h+=oi,h;if(X[5]===0)return h="::",oi==="0.0.0.0"&&(oi=""),oi==="0.0.0.1"&&(oi="1"),h+=oi,h}for(g=0;g<8;g++)X[g]===0&&(g-x>1&&(H=0),x=g,H++),H>D&&(D=H,M=g-D+1);for(g=0;g<8;g++){if(D>1&&X[g]===0&&g>=M&&g{var g=di[d>>>1>>>0],D=Xe(_i[d+2>>>1>>>0]),x;switch(g){case 2:if(h!==16)return{errno:28};x=F[d+4>>>2>>>0],x=Ne(x);break;case 10:if(h!==28)return{errno:28};x=[F[d+8>>>2>>>0],F[d+12>>>2>>>0],F[d+16>>>2>>>0],F[d+20>>>2>>>0]],x=or(x);break;default:return{errno:5}}return{family:g,addr:x,port:D}},de=d=>{for(var h=d.split("."),g=0;g<4;g++){var D=Number(h[g]);if(isNaN(D))return null;h[g]=D}return(h[0]|h[1]<<8|h[2]<<16|h[3]<<24)>>>0},fe=d=>parseInt(d),Me=d=>{var h,g,D,x,M=/^((?=.*::)(?!.*::.+::)(::)?([\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,H=[];if(!M.test(d))return null;if(d==="::")return[0,0,0,0,0,0,0,0];for(d.startsWith("::")?d=d.replace("::","Z:"):d=d.replace("::",":Z:"),d.indexOf(".")>0?(d=d.replace(new RegExp("[.]","g"),":"),h=d.split(":"),h[h.length-4]=fe(h[h.length-4])+fe(h[h.length-3])*256,h[h.length-3]=fe(h[h.length-2])+fe(h[h.length-1])*256,h=h.slice(0,h.length-2)):h=d.split(":"),D=0,x=0,g=0;g{if(g&&d===0)return null;var D=sr(d,h);if(D.errno)throw new He.ErrnoError(D.errno);return D.addr=xi.lookup_addr(D.addr)||D.addr,D};function yt(d,h,g,D,x,M){h>>>=0,g>>>=0;var H=Li(d),O=lr(h,g);return H.sock_ops.bind(H,O.addr,O.port),0}function cr(d,h,g,D,x,M){h>>>=0,g>>>=0;var H=Li(d),O=lr(h,g);return H.sock_ops.connect(H,O.addr,O.port),0}function _r(d,h,g,D){h>>>=0}function Ji(d,h,g){return g>>>=0,Xi.varargs=g,0}function Yi(d,h){h>>>=0}function jt(d,h,g){var D=Fi(h,g)}var Oe=(d,h,g,D)=>{if(g>>>=0,!(D>0))return 0;for(var x=g,M=g+D-1,H=0;H=55296&&O<=57343){var X=d.charCodeAt(++H);O=65536+((O&1023)<<10)|X&1023}if(O<=127){if(g>=M)break;h[g++>>>0]=O}else if(O<=2047){if(g+1>=M)break;h[g++>>>0]=192|O>>6,h[g++>>>0]=128|O&63}else if(O<=65535){if(g+2>=M)break;h[g++>>>0]=224|O>>12,h[g++>>>0]=128|O>>6&63,h[g++>>>0]=128|O&63}else{if(g+3>=M)break;h[g++>>>0]=240|O>>18,h[g++>>>0]=128|O>>12&63,h[g++>>>0]=128|O>>6&63,h[g++>>>0]=128|O&63}}return h[g>>>0]=0,g-x},ae=(d,h,g)=>Oe(d,ai,h,g);function oe(d,h,g){h>>>=0,g>>>=0}var ve=(d,h)=>(ai.fill(0,d,d+h),d),he=(d,h,g,D,x)=>{switch(h){case 2:g=de(g),ve(d,16),x&&(F[x>>>2>>>0]=16),di[d>>>1>>>0]=h,F[d+4>>>2>>>0]=g,di[d+2>>>1>>>0]=ge(D);break;case 10:g=Me(g),ve(d,28),x&&(F[x>>>2>>>0]=28),F[d>>>2>>>0]=h,F[d+8>>>2>>>0]=g[0],F[d+12>>>2>>>0]=g[1],F[d+16>>>2>>>0]=g[2],F[d+20>>>2>>>0]=g[3],di[d+2>>>1>>>0]=ge(D);break;default:return 5}return 0};function ur(d,h,g,D,x,M){h>>>=0,g>>>=0;var H=Li(d);if(!H.daddr)return-53;var O=he(h,H.family,xi.lookup_name(H.daddr),H.dport,g);return 0}function ye(d,h,g,D,x,M){D>>>=0,x>>>=0;var H=Li(d);return h===1&&g===4?(F[D>>>2>>>0]=H.error,F[x>>>2>>>0]=4,H.error=null,0):-50}function je(d,h,g){return g>>>=0,Xi.varargs=g,0}function Pe(d,h){d>>>=0,h>>>=0}function Ui(d,h,g){h>>>=0}function dr(d,h,g,D){h>>>=0,g>>>=0}function bt(d,h,g,D){h>>>=0,D>>>=0,Xi.varargs=D}function pt(d,h,g,D,x,M){h>>>=0,g>>>=0,x>>>=0,M>>>=0;var H=Li(d),O=H.sock_ops.recvmsg(H,g);if(!O)return 0;if(x)var X=he(x,H.family,xi.lookup_name(O.addr),O.port,M);return ai.set(O.buffer,h>>>0),O.buffer.byteLength}function mt(d,h,g,D){h>>>=0,D>>>=0}function wt(d){d>>>=0}function gt(d,h,g,D,x,M){h>>>=0,g>>>=0,x>>>=0,M>>>=0}var kt=(d,h,g)=>{};function fr(d,h){d>>>=0,h>>>=0}function Le(d,h,g){h>>>=0}var Ct=!0,vr=()=>Ct,We=()=>{Di("")};function Et(d,h){return globalThis.DUCKDB_RUNTIME.createDirectory(n,d,h)}function St(d,h){return globalThis.DUCKDB_RUNTIME.checkDirectory(n,d,h)}function Dt(d,h){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(n,d,h)}function Rt(d,h){return globalThis.DUCKDB_RUNTIME.removeDirectory(n,d,h)}function At(d){return globalThis.DUCKDB_RUNTIME.closeFile(n,d)}function Tt(d,h){return globalThis.DUCKDB_RUNTIME.checkFile(n,d,h)}function Ft(d){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(n,d)}function xt(d,h,g,D){return globalThis.DUCKDB_RUNTIME.moveFile(n,d,h,g,D)}function Ut(d,h){return globalThis.DUCKDB_RUNTIME.openFile(n,d,h)}function It(d,h,g,D){return globalThis.DUCKDB_RUNTIME.readFile(n,d,h,g,D)}function Bt(d,h){return globalThis.DUCKDB_RUNTIME.truncateFile(n,d,h)}function Ht(d,h,g,D){return globalThis.DUCKDB_RUNTIME.writeFile(n,d,h,g,D)}function Nt(d){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(d)}function Mt(d,h){return globalThis.DUCKDB_RUNTIME.glob(n,d,h)}function Ot(d){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(n,d)}function Pt(d,h,g,D,x,M){return globalThis.DUCKDB_RUNTIME.callScalarUDF(n,d,h,g,D,x,M)}var Lt=()=>Date.now(),hr=()=>4294901760;function Wt(){return hr()}var yr;yr=()=>performance.now();function qt(d,h,g){return d>>>=0,h>>>=0,g>>>=0,ai.copyWithin(d>>>0,h>>>0,h+g>>>0)}var Kt=d=>{var h=Hi.buffer,g=(d-h.byteLength+65535)/65536;try{return Hi.grow(g),De(),1}catch(D){}};function Xt(d){d>>>=0;var h=ai.length,g=hr();if(d>g)return!1;for(var D=(X,ei)=>X+(ei-X%ei)%ei,x=1;x<=4;x*=2){var M=h*(1+.2/x);M=Math.min(M,d+100663296);var H=Math.min(g,D(Math.max(d,M),65536)),O=Kt(H);if(O)return!0}return!1}var qe={},Yt=()=>R||"./this.program",se=()=>{if(!se.strings){var d=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",h={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:d,_:Yt()};for(var g in qe)qe[g]===void 0?delete h[g]:h[g]=qe[g];var D=[];for(var g in h)D.push("".concat(g,"=").concat(h[g]));se.strings=D}return se.strings},Gt=(d,h)=>{for(var g=0;g>>0>>>0]=d.charCodeAt(g);vi[h>>>0>>>0]=0},$t=function(d,h){d>>>=0,h>>>=0;var g=0;return se().forEach((D,x)=>{var M=h+g;ii[d+x*4>>>2>>>0]=M,Gt(D,M),g+=D.length+1}),0},zt=function(d,h){d>>>=0,h>>>=0;var g=se();ii[d>>>2>>>0]=g.length;var D=0;return g.forEach(x=>D+=x.length+1),ii[h>>>2>>>0]=D,0},Vt=d=>52;function Jt(d,h){h>>>=0;var g=0,D=0,x=0;{var M=2;d==0?g=2:(d==1||d==2)&&(g=64),x=1}return vi[h>>>0>>>0]=M,di[h+2>>>1>>>0]=x,Mi=[g>>>0,(ji=g,+Math.abs(ji)>=1?ji>0?+Math.floor(ji/4294967296)>>>0:~~+Math.ceil((ji-+(~~ji>>>0))/4294967296)>>>0:0)],F[h+8>>>2>>>0]=Mi[0],F[h+12>>>2>>>0]=Mi[1],Mi=[D>>>0,(ji=D,+Math.abs(ji)>=1?ji>0?+Math.floor(ji/4294967296)>>>0:~~+Math.ceil((ji-+(~~ji>>>0))/4294967296)>>>0:0)],F[h+16>>>2>>>0]=Mi[0],F[h+20>>>2>>>0]=Mi[1],0}function Qt(d,h,g,D,x,M){h>>>=0,g>>>=0;var H=Fi(D,x);return M>>>=0,52}function Zt(d,h,g,D,x,M){h>>>=0,g>>>=0;var H=Fi(D,x);return M>>>=0,52}function en(d,h,g,D){return h>>>=0,g>>>=0,D>>>=0,52}function jr(d,h,g,D,x){var M=Fi(h,g);return x>>>=0,70}var rn=d=>52,br=[null,[],[]],tn=(d,h)=>{var g=br[d];h===0||h===10?((d===1?ee:Ei)(ne(g,0)),g.length=0):g.push(h)};function nn(d,h,g,D){h>>>=0,g>>>=0,D>>>=0;for(var x=0,M=0;M>>2>>>0],O=ii[h+4>>>2>>>0];h+=8;for(var X=0;X>>0]);x+=O}return ii[D>>>2>>>0]=x,0}function an(d,h,g,D){d>>>=0,h>>>=0,g>>>=0,D>>>=0;var x=0,M=0,H=0,O=0,X=0,ei=0,oi;function m(ni,w,p,gi,Oi,Wi){var B,G,ui,li;return G=ni===10?28:16,Oi=ni===10?or(Oi):Ne(Oi),B=Ye(G),li=he(B,ni,Oi,Wi),Si(!li),ui=Ye(32),F[ui+4>>>2>>>0]=ni,F[ui+8>>>2>>>0]=w,F[ui+12>>>2>>>0]=p,ii[ui+24>>>2>>>0]=gi,ii[ui+20>>>2>>>0]=B,ni===10?F[ui+16>>>2>>>0]=28:F[ui+16>>>2>>>0]=16,F[ui+28>>>2>>>0]=0,ui}if(g&&(H=F[g>>>2>>>0],O=F[g+4>>>2>>>0],X=F[g+8>>>2>>>0],ei=F[g+12>>>2>>>0]),X&&!ei&&(ei=X===2?17:6),!X&&ei&&(X=ei===17?2:1),ei===0&&(ei=6),X===0&&(X=1),!d&&!h)return-2;if(H&-1088||g!==0&&F[g>>>2>>>0]&2&&!d)return-1;if(H&32)return-2;if(X!==0&&X!==1&&X!==2)return-7;if(O!==0&&O!==2&&O!==10)return-6;if(h&&(h=Ki(h),M=parseInt(h,10),isNaN(M)))return H&1024?-2:-8;if(!d)return O===0&&(O=2),H&1||(O===2?x=we(2130706433):x=[0,0,0,1]),oi=m(O,X,ei,null,x,M),ii[D>>>2>>>0]=oi,0;if(d=Ki(d),x=de(d),x!==null)if(O===0||O===2)O=2;else if(O===10&&H&8)x=[0,0,we(65535),x],O=10;else return-2;else if(x=Me(d),x!==null)if(O===0||O===10)O=10;else return-2;return x!=null?(oi=m(O,X,ei,d,x,M),ii[D>>>2>>>0]=oi,0):H&4?-2:(d=xi.lookup_name(d),x=de(d),O===0?O=2:O===10&&(x=[0,0,we(65535),x]),oi=m(O,X,ei,null,x,M),ii[D>>>2>>>0]=oi,0)}var Ke=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return D=>crypto.getRandomValues(D);if(ri)try{var d=require("crypto"),h=d.randomFillSync;if(h)return D=>d.randomFillSync(D);var g=d.randomBytes;return D=>(D.set(g(D.byteLength)),D)}catch(D){}Di("initRandomDevice")},pr=d=>(pr=Ke())(d);function le(d,h){return d>>>=0,h>>>=0,pr(ai.subarray(d>>>0,d+h>>>0)),0}function on(d,h,g,D,x,M,H){d>>>=0,g>>>=0,x>>>=0;var O=sr(d,h);if(O.errno)return-6;var X=O.port,ei=O.addr,oi=!1;if(g&&D){var m;if(H&1||!(m=xi.lookup_addr(ei))){if(H&8)return-2}else ei=m;var ni=ae(ei,g,D);ni+1>=D&&(oi=!0)}if(x&&M){X=""+X;var ni=ae(X,x,M);ni+1>=M&&(oi=!0)}return oi?-12:0}var be=d=>d%4===0&&(d%100!==0||d%400===0),sn=(d,h)=>{for(var g=0,D=0;D<=h;g+=d[D++]);return g},mr=[31,29,31,30,31,30,31,31,30,31,30,31],wr=[31,28,31,30,31,30,31,31,30,31,30,31],ln=(d,h)=>{for(var g=new Date(d.getTime());h>0;){var D=be(g.getFullYear()),x=g.getMonth(),M=(D?mr:wr)[x];if(h>M-g.getDate())h-=M-g.getDate()+1,g.setDate(1),x<11?g.setMonth(x+1):(g.setMonth(0),g.setFullYear(g.getFullYear()+1));else return g.setDate(g.getDate()+h),g}return g},gr=d=>{for(var h=0,g=0;g=55296&&D<=57343?(h+=4,++g):h+=3}return h};function cn(d,h,g){var D=g>0?g:gr(d)+1,x=new Array(D),M=Oe(d,x,0,x.length);return h&&(x.length=M),x}var kr=(d,h)=>{vi.set(d,h>>>0)};function _n(d,h,g,D){d>>>=0,h>>>=0,g>>>=0,D>>>=0;var x=ii[D+40>>>2>>>0],M={tm_sec:F[D>>>2>>>0],tm_min:F[D+4>>>2>>>0],tm_hour:F[D+8>>>2>>>0],tm_mday:F[D+12>>>2>>>0],tm_mon:F[D+16>>>2>>>0],tm_year:F[D+20>>>2>>>0],tm_wday:F[D+24>>>2>>>0],tm_yday:F[D+28>>>2>>>0],tm_isdst:F[D+32>>>2>>>0],tm_gmtoff:F[D+36>>>2>>>0],tm_zone:x?Ki(x):""},H=Ki(g),O={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var X in O)H=H.replace(new RegExp(X,"g"),O[X]);var ei=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],oi=["January","February","March","April","May","June","July","August","September","October","November","December"];function m(B,G,ui){for(var li=typeof B=="number"?B.toString():B||"";li.length0?1:0}var li;return(li=ui(B.getFullYear()-G.getFullYear()))===0&&(li=ui(B.getMonth()-G.getMonth()))===0&&(li=ui(B.getDate()-G.getDate())),li}function p(B){switch(B.getDay()){case 0:return new Date(B.getFullYear()-1,11,29);case 1:return B;case 2:return new Date(B.getFullYear(),0,3);case 3:return new Date(B.getFullYear(),0,2);case 4:return new Date(B.getFullYear(),0,1);case 5:return new Date(B.getFullYear()-1,11,31);case 6:return new Date(B.getFullYear()-1,11,30)}}function gi(B){var G=ln(new Date(B.tm_year+1900,0,1),B.tm_yday),ui=new Date(G.getFullYear(),0,4),li=new Date(G.getFullYear()+1,0,4),Ci=p(ui),Qi=p(li);return w(Ci,G)<=0?w(Qi,G)<=0?G.getFullYear()+1:G.getFullYear():G.getFullYear()-1}var Oi={"%a":B=>ei[B.tm_wday].substring(0,3),"%A":B=>ei[B.tm_wday],"%b":B=>oi[B.tm_mon].substring(0,3),"%B":B=>oi[B.tm_mon],"%C":B=>{var G=B.tm_year+1900;return ni(G/100|0,2)},"%d":B=>ni(B.tm_mday,2),"%e":B=>m(B.tm_mday,2," "),"%g":B=>gi(B).toString().substring(2),"%G":B=>gi(B),"%H":B=>ni(B.tm_hour,2),"%I":B=>{var G=B.tm_hour;return G==0?G=12:G>12&&(G-=12),ni(G,2)},"%j":B=>ni(B.tm_mday+sn(be(B.tm_year+1900)?mr:wr,B.tm_mon-1),3),"%m":B=>ni(B.tm_mon+1,2),"%M":B=>ni(B.tm_min,2),"%n":()=>"\n","%p":B=>B.tm_hour>=0&&B.tm_hour<12?"AM":"PM","%S":B=>ni(B.tm_sec,2),"%t":()=>" ","%u":B=>B.tm_wday||7,"%U":B=>{var G=B.tm_yday+7-B.tm_wday;return ni(Math.floor(G/7),2)},"%V":B=>{var G=Math.floor((B.tm_yday+7-(B.tm_wday+6)%7)/7);if((B.tm_wday+371-B.tm_yday-2)%7<=2&&G++,G){if(G==53){var li=(B.tm_wday+371-B.tm_yday)%7;li!=4&&(li!=3||!be(B.tm_year))&&(G=1)}}else{G=52;var ui=(B.tm_wday+7-B.tm_yday-1)%7;(ui==4||ui==5&&be(B.tm_year%400-1))&&G++}return ni(G,2)},"%w":B=>B.tm_wday,"%W":B=>{var G=B.tm_yday+7-(B.tm_wday+6)%7;return ni(Math.floor(G/7),2)},"%y":B=>(B.tm_year+1900).toString().substring(2),"%Y":B=>B.tm_year+1900,"%z":B=>{var G=B.tm_gmtoff,ui=G>=0;return G=Math.abs(G)/60,G=G/60*100+G%60,(ui?"+":"-")+("0000"+G).slice(-4)},"%Z":B=>B.tm_zone,"%%":()=>"%"};H=H.replace(/%%/g,"\0\0");for(var X in Oi)H.includes(X)&&(H=H.replace(new RegExp(X,"g"),Oi[X](M)));H=H.replace(/\0\0/g,"%");var Wi=cn(H,!1);return Wi.length>h?0:(kr(Wi,d),Wi.length-1)}function un(d,h,g,D,x){return d>>>=0,h>>>=0,g>>>=0,D>>>=0,x>>>=0,_n(d,h,g,D)}var dn=d=>{mi=d,et()||(n.onExit&&n.onExit(d),Z=!0),A(d,new Be(d))},fn=(d,h)=>{mi=d,dn(d)},vn=d=>{if(d instanceof Be||d=="unwind")return mi;A(1,d)},hn=d=>{var h=n["_"+d];return h},Cr=d=>{var h=gr(d)+1,g=ke(h);return ae(d,g,h),g},yn=(d,h,g,D,x)=>{var M={string:p=>{var gi=0;return p!=null&&p!==0&&(gi=Cr(p)),gi},array:p=>{var gi=ke(p.length);return kr(p,gi),gi}};function H(p){return h==="string"?Ki(p):h==="boolean"?!!p:p}var O=hn(d),X=[],ei=0;if(D)for(var oi=0;oi(pe=q.ga)(),Er=n._main=(d,h)=>(Er=n._main=q.ha)(d,h),Sr=n._duckdb_web_fs_glob_add_path=d=>(Sr=n._duckdb_web_fs_glob_add_path=q.ja)(d),Dr=n._duckdb_web_clear_response=()=>(Dr=n._duckdb_web_clear_response=q.ka)(),bn=n._duckdb_web_fail_with=d=>(bn=n._duckdb_web_fail_with=q.la)(d),Rr=n._duckdb_web_reset=d=>(Rr=n._duckdb_web_reset=q.ma)(d),pn=n._duckdb_web_connect=()=>(pn=n._duckdb_web_connect=q.na)(),Ar=n._duckdb_web_disconnect=d=>(Ar=n._duckdb_web_disconnect=q.oa)(d),mn=n._duckdb_web_flush_files=()=>(mn=n._duckdb_web_flush_files=q.pa)(),wn=n._duckdb_web_flush_file=d=>(wn=n._duckdb_web_flush_file=q.qa)(d),gn=n._duckdb_web_open=(d,h)=>(gn=n._duckdb_web_open=q.ra)(d,h),kn=n._duckdb_web_get_global_file_info=(d,h)=>(kn=n._duckdb_web_get_global_file_info=q.sa)(d,h),Cn=n._duckdb_web_collect_file_stats=(d,h,g)=>(Cn=n._duckdb_web_collect_file_stats=q.ta)(d,h,g),me=n._duckdb_web_export_file_stats=(d,h)=>(me=n._duckdb_web_export_file_stats=q.ua)(d,h),W=n._duckdb_web_fs_drop_file=(d,h)=>(W=n._duckdb_web_fs_drop_file=q.va)(d,h),En=n._duckdb_web_fs_drop_files=d=>(En=n._duckdb_web_fs_drop_files=q.wa)(d),Sn=n._duckdb_web_fs_glob_file_infos=(d,h)=>(Sn=n._duckdb_web_fs_glob_file_infos=q.xa)(d,h),Dn=n._duckdb_web_fs_get_file_info_by_id=(d,h,g)=>(Dn=n._duckdb_web_fs_get_file_info_by_id=q.ya)(d,h,g),Rn=n._duckdb_web_fs_get_file_info_by_name=(d,h,g)=>(Rn=n._duckdb_web_fs_get_file_info_by_name=q.za)(d,h,g),k=n._duckdb_web_fs_register_file_url=(d,h,g,D,x)=>(k=n._duckdb_web_fs_register_file_url=q.Aa)(d,h,g,D,x),An=n._duckdb_web_fs_register_file_buffer=(d,h,g,D)=>(An=n._duckdb_web_fs_register_file_buffer=q.Ba)(d,h,g,D),Tr=n._duckdb_web_copy_file_to_buffer=(d,h)=>(Tr=n._duckdb_web_copy_file_to_buffer=q.Ca)(d,h),Tn=n._duckdb_web_copy_file_to_path=(d,h,g)=>(Tn=n._duckdb_web_copy_file_to_path=q.Da)(d,h,g),Fn=n._duckdb_web_get_version=d=>(Fn=n._duckdb_web_get_version=q.Ea)(d),xn=n._duckdb_web_get_feature_flags=()=>(xn=n._duckdb_web_get_feature_flags=q.Fa)(),Un=n._duckdb_web_tokenize=(d,h)=>(Un=n._duckdb_web_tokenize=q.Ga)(d,h),In=n._duckdb_web_udf_scalar_create=(d,h,g)=>(In=n._duckdb_web_udf_scalar_create=q.Ha)(d,h,g),Bn=n._duckdb_web_prepared_create=(d,h,g)=>(Bn=n._duckdb_web_prepared_create=q.Ia)(d,h,g),Hn=n._duckdb_web_prepared_close=(d,h,g)=>(Hn=n._duckdb_web_prepared_close=q.Ja)(d,h,g),Nn=n._duckdb_web_prepared_run=(d,h,g,D)=>(Nn=n._duckdb_web_prepared_run=q.Ka)(d,h,g,D),Mn=n._duckdb_web_prepared_send=(d,h,g,D)=>(Mn=n._duckdb_web_prepared_send=q.La)(d,h,g,D),On=n._duckdb_web_query_run=(d,h,g)=>(On=n._duckdb_web_query_run=q.Ma)(d,h,g),Pn=n._duckdb_web_pending_query_start=(d,h,g)=>(Pn=n._duckdb_web_pending_query_start=q.Na)(d,h,g),Ln=n._duckdb_web_pending_query_poll=(d,h,g)=>(Ln=n._duckdb_web_pending_query_poll=q.Oa)(d,h,g),Wn=n._duckdb_web_pending_query_cancel=(d,h)=>(Wn=n._duckdb_web_pending_query_cancel=q.Pa)(d,h),qn=n._duckdb_web_query_fetch_results=(d,h)=>(qn=n._duckdb_web_query_fetch_results=q.Qa)(d,h),Kn=n._duckdb_web_get_tablenames=(d,h,g)=>(Kn=n._duckdb_web_get_tablenames=q.Ra)(d,h,g),Xn=n._duckdb_web_insert_arrow_from_ipc_stream=(d,h,g,D,x)=>(Xn=n._duckdb_web_insert_arrow_from_ipc_stream=q.Sa)(d,h,g,D,x),Yn=n._duckdb_web_insert_csv_from_path=(d,h,g,D)=>(Yn=n._duckdb_web_insert_csv_from_path=q.Ta)(d,h,g,D),Gn=n._duckdb_web_insert_json_from_path=(d,h,g,D)=>(Gn=n._duckdb_web_insert_json_from_path=q.Ua)(d,h,g,D),$n=()=>($n=q.__errno_location)(),we=d=>(we=q.Va)(d),ge=d=>(ge=q.Wa)(d),Xe=d=>(Xe=q.Xa)(d),Ye=n._malloc=d=>(Ye=n._malloc=q.Ya)(d),zn=n._free=d=>(zn=n._free=q.Za)(d),Fr=()=>(Fr=q._a)(),Ge=()=>(Ge=q.$a)(),$e=d=>($e=q.ab)(d),ke=d=>(ke=q.bb)(d);function Vn(d){d=Object.assign({},d);var h=D=>()=>D()>>>0,g=D=>x=>D(x)>>>0;return d.__errno_location=h(d.__errno_location),d.Ya=g(d.Ya),d.$a=h(d.$a),d.bb=g(d.bb),d}n.stackAlloc=ke,n.stackSave=Ge,n.stackRestore=$e,n.ccall=yn;var Ce;qi=function d(){Ce||xr(),Ce||(qi=d)};function Jn(){var d=Er,h=0,g=0;try{var D=d(h,g);return fn(D,!0),D}catch(x){return vn(x)}}function xr(){if(Ai>0||(rt(),Ai>0))return;function d(){Ce||(Ce=!0,n.calledRun=!0,!Z&&(tt(),nt(),j(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Ur&&Jn(),at()))}n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),d()},1)):d()}if(n.preInit)for(typeof n.preInit=="function"&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Ur=!0;return n.noInitialRun&&(Ur=!1),xr(),v.ready}})();typeof Pc=="object"&&typeof ja=="object"?ja.exports=Oc:typeof define=="function"&&define.amd&&define([],()=>Oc)});var Sv={};nv(Sv,{BROWSER_RUNTIME:()=>si,ConsoleLogger:()=>na,DEFAULT_RUNTIME:()=>ra,DuckDBAccessMode:()=>pc,DuckDBBindingsBase:()=>tr,DuckDBConnection:()=>ir,DuckDBDataProtocol:()=>Xr,DuckDBFeature:()=>bc,FileFlags:()=>ea,FileStatistics:()=>rr,JSONTableShape:()=>mc,LogEvent:()=>Cc,LogLevel:()=>gc,LogOrigin:()=>Ec,LogTopic:()=>kc,PACKAGE_NAME:()=>aa,PACKAGE_VERSION:()=>oa,PACKAGE_VERSION_MAJOR:()=>vv,PACKAGE_VERSION_MINOR:()=>hv,PACKAGE_VERSION_PATCH:()=>yv,PreparedStatement:()=>Wr,ResultStreamIterator:()=>er,StatusCode:()=>dc,TokenType:()=>wc,VoidLogger:()=>ta,callSRet:()=>ci,copyBuffer:()=>Zi,createDuckDB:()=>Ev,decodeText:()=>jc,dropResponseBuffers:()=>yi,failWith:()=>Pi,getJsDelivrBundles:()=>pv,getLogEventLabel:()=>cv,getLogLevelLabel:()=>lv,getLogOriginLabel:()=>uv,getLogTopicLabel:()=>_v,getPlatformFeatures:()=>$r,isFirefox:()=>jv,isNode:()=>fa,isSafari:()=>bv,readString:()=>V,selectBundle:()=>mv});module.exports=av(Sv);var Gi=Ze(require("apache-arrow")),ir=class{constructor(v,n){this._bindings=v,this._conn=n}close(){this._bindings.disconnect(this._conn)}useUnsafe(v){return v(this._bindings,this._conn)}query(v){let n=this._bindings.runQuery(this._conn,v),j=Gi.RecordBatchReader.from(n);return console.assert(j.isSync()),console.assert(j.isFile()),new Gi.Table(j)}async send(v){let n=this._bindings.startPendingQuery(this._conn,v);for(;n==null;)n=await new Promise((C,S)=>{try{C(this._bindings.pollPendingQuery(this._conn))}catch(R){console.log(R),S(R)}});let j=new er(this._bindings,this._conn,n),b=Gi.RecordBatchReader.from(j);return console.assert(b.isSync()),console.assert(b.isStream()),b}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(v){return this._bindings.getTableNames(this._conn,v)}prepare(v){let n=this._bindings.createPrepared(this._conn,v);return new Wr(this._bindings,this._conn,n)}createScalarFunction(v,n,j){this._bindings.createScalarFunction(this._conn,v,n,j)}insertArrowTable(v,n){let j=Gi.tableToIPC(v,"stream");this.insertArrowFromIPCStream(j,n)}insertArrowFromIPCStream(v,n){this._bindings.insertArrowFromIPCStream(this._conn,v,n)}insertCSVFromPath(v,n){this._bindings.insertCSVFromPath(this._conn,v,n)}insertJSONFromPath(v,n){this._bindings.insertJSONFromPath(this._conn,v,n)}},er=class{constructor(v,n,j){this.bindings=v;this.conn=n;this.header=j;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 v=this.bindings.fetchQueryResults(this.conn);return this._depleted=v.length==0,{done:this._depleted,value:v}}[Symbol.iterator](){return this}},Wr=class{constructor(v,n,j){this.bindings=v,this.connectionId=n,this.statementId=j}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...v){let n=this.bindings.runPrepared(this.connectionId,this.statementId,v),j=Gi.RecordBatchReader.from(n);return console.assert(j.isSync()),console.assert(j.isFile()),new Gi.Table(j)}send(...v){let n=this.bindings.sendPrepared(this.connectionId,this.statementId,v),j=new er(this.bindings,this.connectionId,n),b=Gi.RecordBatchReader.from(j);return console.assert(b.isSync()),console.assert(b.isStream()),b}};var dc=(v=>(v[v.SUCCESS=0]="SUCCESS",v))(dc||{});var hc=new TextEncoder,fc=new TextDecoder("utf-8");function Qn(f,v,n){let j=hc.encode(n),b=f._malloc(j.byteLength),C=f.HEAPU8.subarray(b,b+j.byteLength);C.set(j),f.HEAPF64[(v>>3)+0]=1,f.HEAPF64[(v>>3)+1]=b,f.HEAPF64[(v>>3)+2]=C.byteLength}function ia(f){switch(f){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 Zn(f,v,n,j){let b=f.HEAPU8.subarray(v,v+j*ia(n));switch(n){case"UINT8":return new Uint8Array(b.buffer,b.byteOffset,j);case"INT8":return new Int8Array(b.buffer,b.byteOffset,j);case"INT32":return new Int32Array(b.buffer,b.byteOffset,j);case"FLOAT":return new Float32Array(b.buffer,b.byteOffset,j);case"DOUBLE":return new Float64Array(b.buffer,b.byteOffset,j);case"VARCHAR":return new Float64Array(b.buffer,b.byteOffset,j);default:return new Array(0)}}function vc(f,v,n){let j=f.HEAPU8.subarray(v,v+n);return new Uint8Array(j.buffer,j.byteOffset,n)}function qr(f,v,n){let j=f.HEAPU8.subarray(v,v+n*8);return new Float64Array(j.buffer,j.byteOffset,n)}function Kr(f,v,n,j,b,C,S,R){try{let A=f._udfFunctions.get(j);if(!A){Qn(v,n,"Unknown UDF with id: "+j);return}let N=fc.decode(v.HEAPU8.subarray(b,b+C)),P=JSON.parse(N),ri=qr(v,S,R/8),$=Z=>{var Si;let mi=null;switch(Z.validityBuffer!==void 0&&(mi=vc(v,ri[Z.validityBuffer],P.rows)),Z.physicalType){case"VARCHAR":{if(Z.dataBuffer===null||Z.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(Z.lengthBuffer===null||Z.lengthBuffer===void 0)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let vi=Zn(v,ri[Z.dataBuffer],Z.physicalType,P.rows),ai=[],di=qr(v,ri[Z.lengthBuffer],P.rows);for(let _i=0;_iai[_i]}case"STRUCT":{let vi={},ai=[];for(let di=0;di<(((Si=Z.children)==null?void 0:Si.length)||0);++di){let _i=Z.children[di],F=$(_i);ai.push(ii=>{vi[_i.name]=F(ii)})}return mi!=null?di=>{if(!mi[di])return null;for(let _i of ai)_i(di);return vi}:di=>{for(let _i of ai)_i(di);return vi}}default:{if(Z.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for argument of type: "+Z.physicalType);let vi=Zn(v,ri[Z.dataBuffer],Z.physicalType,P.rows);return mi!=null?ai=>mi[ai]?vi[ai]:null:ai=>vi[ai]}}},J=[];for(let Z=0;Z>3)+0]=0,v.HEAPF64[(n>>3)+1]=_e,v.HEAPF64[(n>>3)+2]=0}catch(A){Qn(v,n,A.toString())}}function ov(){let f=new TextDecoder;return v=>(typeof SharedArrayBuffer<"u"&&v.buffer instanceof SharedArrayBuffer&&(v=new Uint8Array(v)),f.decode(v))}var jc=ov();function Pi(f,v){console.error("FAIL WITH: ".concat(v)),f.ccall("duckdb_web_fail_with",null,["string"],[v])}function Zi(f,v,n){let j=f.HEAPU8.subarray(v,v+n),b=new Uint8Array(new ArrayBuffer(j.byteLength));return b.set(j),b}function V(f,v,n){return jc(f.HEAPU8.subarray(v,v+n))}var Xr=(S=>(S[S.BUFFER=0]="BUFFER",S[S.NODE_FS=1]="NODE_FS",S[S.BROWSER_FILEREADER=2]="BROWSER_FILEREADER",S[S.BROWSER_FSACCESS=3]="BROWSER_FSACCESS",S[S.HTTP=4]="HTTP",S[S.S3=5]="S3",S))(Xr||{}),ea=(S=>(S[S.FILE_FLAGS_READ=1]="FILE_FLAGS_READ",S[S.FILE_FLAGS_WRITE=2]="FILE_FLAGS_WRITE",S[S.FILE_FLAGS_DIRECT_IO=4]="FILE_FLAGS_DIRECT_IO",S[S.FILE_FLAGS_FILE_CREATE=8]="FILE_FLAGS_FILE_CREATE",S[S.FILE_FLAGS_FILE_CREATE_NEW=16]="FILE_FLAGS_FILE_CREATE_NEW",S[S.FILE_FLAGS_APPEND=32]="FILE_FLAGS_APPEND",S))(ea||{});function ci(f,v,n,j){let b=f.stackSave(),C=f.stackAlloc(3*8);n.unshift("number"),j.unshift(C),f.ccall(v,null,n,j);let S=f.HEAPF64[(C>>3)+0],R=f.HEAPF64[(C>>3)+1],A=f.HEAPF64[(C>>3)+2];return f.stackRestore(b),[S,R,A]}function yi(f){f.ccall("duckdb_web_clear_response",null,[],[])}var ra={_udfFunctions:new Map,testPlatformFeature:(f,v)=>!1,getDefaultDataProtocol:f=>0,openFile:(f,v,n)=>{},syncFile:(f,v)=>{},closeFile:(f,v)=>{},getLastFileModificationTime:(f,v)=>0,truncateFile:(f,v,n)=>{},readFile:(f,v,n,j,b)=>0,writeFile:(f,v,n,j,b)=>0,removeDirectory:(f,v,n)=>{},checkDirectory:(f,v,n)=>!1,createDirectory:(f,v,n)=>{},listDirectoryEntries:(f,v,n)=>!1,glob:(f,v,n)=>{},moveFile:(f,v,n,j,b)=>{},checkFile:(f,v,n)=>!1,removeFile:(f,v,n)=>{},callScalarUDF:(f,v,n,j,b,C,S)=>{Kr(ra,f,v,n,j,b,C,S)}};var rr=class{constructor(v){let n=new Float64Array(v.buffer,v.byteOffset,v.byteLength/8),j=new Uint8Array(new ArrayBuffer(v.byteLength));j.set(v.subarray(7*8)),this.totalFileReadsCold=n[0],this.totalFileReadsAhead=n[1],this.totalFileReadsCached=n[2],this.totalFileWrites=n[3],this.totalPageAccesses=n[4],this.totalPageLoads=n[5],this.blockSize=n[6],this.blockStats=j}getBlockStats(v,n){return n=n||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},n.file_writes=this.blockStats[v*3+0]&15,n.file_reads_cold=this.blockStats[v*3+0]>>4,n.file_reads_ahead=this.blockStats[v*3+1]&15,n.file_reads_cached=this.blockStats[v*3+1]>>4,n.page_accesses=this.blockStats[v*3+1]&15,n.page_loads=this.blockStats[v*3+1]>>4,n}};var ti=Ze(require("apache-arrow"));function Ee(f){switch(f.typeId){case ti.Type.Binary:return{sqlType:"binary"};case ti.Type.Bool:return{sqlType:"bool"};case ti.Type.Date:return{sqlType:"date"};case ti.Type.DateDay:return{sqlType:"date32[d]"};case ti.Type.DateMillisecond:return{sqlType:"date64[ms]"};case ti.Type.Decimal:{let v=f;return{sqlType:"decimal",precision:v.precision,scale:v.scale}}case ti.Type.Float:return{sqlType:"float"};case ti.Type.Float16:return{sqlType:"float16"};case ti.Type.Float32:return{sqlType:"float32"};case ti.Type.Float64:return{sqlType:"float64"};case ti.Type.Int:return{sqlType:"int32"};case ti.Type.Int16:return{sqlType:"int16"};case ti.Type.Int32:return{sqlType:"int32"};case ti.Type.Int64:return{sqlType:"int64"};case ti.Type.Uint16:return{sqlType:"uint16"};case ti.Type.Uint32:return{sqlType:"uint32"};case ti.Type.Uint64:return{sqlType:"uint64"};case ti.Type.Uint8:return{sqlType:"uint8"};case ti.Type.IntervalDayTime:return{sqlType:"interval[dt]"};case ti.Type.IntervalYearMonth:return{sqlType:"interval[m]"};case ti.Type.List:return{sqlType:"list",valueType:Ee(f.valueType)};case ti.Type.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:f.byteWidth};case ti.Type.Null:return{sqlType:"null"};case ti.Type.Utf8:return{sqlType:"utf8"};case ti.Type.Struct:return{sqlType:"struct",fields:f.children.map(n=>Yr(n.name,n.type))};case ti.Type.Map:{let v=f;return{sqlType:"map",keyType:Ee(v.keyType),valueType:Ee(v.valueType)}}case ti.Type.Time:return{sqlType:"time[s]"};case ti.Type.TimeMicrosecond:return{sqlType:"time[us]"};case ti.Type.TimeMillisecond:return{sqlType:"time[ms]"};case ti.Type.TimeNanosecond:return{sqlType:"time[ns]"};case ti.Type.TimeSecond:return{sqlType:"time[s]"};case ti.Type.Timestamp:return{sqlType:"timestamp",timezone:f.timezone||void 0};case ti.Type.TimestampSecond:return{sqlType:"timestamp[s]",timezone:f.timezone||void 0};case ti.Type.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:f.timezone||void 0};case ti.Type.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:f.timezone||void 0};case ti.Type.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:f.timezone||void 0}}throw new Error("unsupported arrow type: ".concat(f.toString()))}function Yr(f,v){let n=Ee(v);return n.name=f,n}var sv=new TextEncoder,bc=(C=>(C[C.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",C[C.WASM_THREADS=2]="WASM_THREADS",C[C.WASM_SIMD=4]="WASM_SIMD",C[C.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",C[C.EMIT_BIGINT=16]="EMIT_BIGINT",C))(bc||{}),tr=class{constructor(v,n){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=v,this._runtime=n,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(v=n=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(v),await this._initPromise),this._initPromise=new Promise(n=>{this._initPromiseResolver=n}),this.onInstantiationProgress=[v],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(n=>n!=v),this)}open(v){let[n,j,b]=ci(this.mod,"duckdb_web_open",["string"],[JSON.stringify(v)]);if(n!==0)throw new Error(V(this.mod,j,b));yi(this.mod)}reset(){let[v,n,j]=ci(this.mod,"duckdb_web_reset",[],[]);if(v!==0)throw new Error(V(this.mod,n,j));yi(this.mod)}getVersion(){let[v,n,j]=ci(this.mod,"duckdb_web_get_version",[],[]);if(v!==0)throw new Error(V(this.mod,n,j));let b=V(this.mod,n,j);return yi(this.mod),b}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(v){let[n,j,b]=ci(this.mod,"duckdb_web_tokenize",["string"],[v]);if(n!==0)throw new Error(V(this.mod,j,b));let C=V(this.mod,j,b);return yi(this.mod),JSON.parse(C)}connect(){let v=this.mod.ccall("duckdb_web_connect","number",[],[]);return new ir(this,v)}disconnect(v){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[v]),this.pthread)for(let n of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])n.postMessage({cmd:"dropUDFFunctions",connectionId:v})}runQuery(v,n){let[j,b,C]=ci(this.mod,"duckdb_web_query_run",["number","string"],[v,n]);if(j!==0)throw new Error(V(this.mod,b,C));let S=Zi(this.mod,b,C);return yi(this.mod),S}startPendingQuery(v,n){let[j,b,C]=ci(this.mod,"duckdb_web_pending_query_start",["number","string"],[v,n]);if(j!==0)throw new Error(V(this.mod,b,C));if(b==0)return null;let S=Zi(this.mod,b,C);return yi(this.mod),S}pollPendingQuery(v){let[n,j,b]=ci(this.mod,"duckdb_web_pending_query_poll",["number"],[v]);if(n!==0)throw new Error(V(this.mod,j,b));if(j==0)return null;let C=Zi(this.mod,j,b);return yi(this.mod),C}cancelPendingQuery(v){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[v])}fetchQueryResults(v){let[n,j,b]=ci(this.mod,"duckdb_web_query_fetch_results",["number"],[v]);if(n!==0)throw new Error(V(this.mod,j,b));let C=Zi(this.mod,j,b);return yi(this.mod),C}getTableNames(v,n){let[j,b,C]=ci(this.mod,"duckdb_web_get_tablenames",["number","string"],[v,n]);if(j!==0)throw new Error(V(this.mod,b,C));let S=V(this.mod,b,C);return yi(this.mod),JSON.parse(S)}createScalarFunction(v,n,j,b){let C={functionId:this._nextUDFId,name:n,returnType:Ee(j)},S={functionId:C.functionId,connectionId:v,name:n,returnType:j,func:b};this._nextUDFId+=1;let[R,A,N]=ci(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[v,JSON.stringify(C)]);if(R!==0)throw new Error(V(this.mod,A,N));if(yi(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(S.functionId,S),this.pthread)for(let P of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])P.postMessage({cmd:"registerUDFFunction",udf:S})}createPrepared(v,n){let[j,b,C]=ci(this.mod,"duckdb_web_prepared_create",["number","string"],[v,n]);if(j!==0)throw new Error(V(this.mod,b,C));return yi(this.mod),b}closePrepared(v,n){let[j,b,C]=ci(this.mod,"duckdb_web_prepared_close",["number","number"],[v,n]);if(j!==0)throw new Error(V(this.mod,b,C));yi(this.mod)}runPrepared(v,n,j){let[b,C,S]=ci(this.mod,"duckdb_web_prepared_run",["number","number","string"],[v,n,JSON.stringify(j)]);if(b!==0)throw new Error(V(this.mod,C,S));let R=Zi(this.mod,C,S);return yi(this.mod),R}sendPrepared(v,n,j){let[b,C,S]=ci(this.mod,"duckdb_web_prepared_send",["number","number","string"],[v,n,JSON.stringify(j)]);if(b!==0)throw new Error(V(this.mod,C,S));let R=Zi(this.mod,C,S);return yi(this.mod),R}insertArrowFromIPCStream(v,n,j){if(n.length==0)return;let b=this.mod._malloc(n.length);this.mod.HEAPU8.subarray(b,b+n.length).set(n);let S=j?JSON.stringify(j):"",[R,A,N]=ci(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[v,b,n.length,S]);if(R!==0)throw new Error(V(this.mod,A,N))}insertCSVFromPath(v,n,j){if(j.columns!==void 0){j.columnsFlat=[];for(let N in j.columns)j.columnsFlat.push(Yr(N,j.columns[N]))}let b={...j};b.columns=b.columnsFlat,delete b.columnsFlat;let C=JSON.stringify(b),[S,R,A]=ci(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[v,n,C]);if(S!==0)throw new Error(V(this.mod,R,A))}insertJSONFromPath(v,n,j){if(j.columns!==void 0){j.columnsFlat=[];for(let N in j.columns)j.columnsFlat.push(Yr(N,j.columns[N]))}let b={...j};b.columns=b.columnsFlat,delete b.columnsFlat;let C=JSON.stringify(b),[S,R,A]=ci(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[v,n,C]);if(S!==0)throw new Error(V(this.mod,R,A))}globFiles(v){let[n,j,b]=ci(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[v]);if(n!==0)throw new Error(V(this.mod,j,b));let C=V(this.mod,j,b);yi(this.mod);let S=JSON.parse(C);return S==null?[]:S}registerFileURL(v,n,j,b=!1){n===void 0&&(n=v);let[C,S,R]=ci(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[v,n,j,b]);if(C!==0)throw new Error(V(this.mod,S,R));yi(this.mod)}registerFileText(v,n){let j=sv.encode(n);this.registerFileBuffer(v,j)}registerFileBuffer(v,n){let j=this.mod._malloc(n.length);this.mod.HEAPU8.subarray(j,j+n.length).set(n);let[C,S,R]=ci(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[v,j,n.length]);if(C!==0)throw new Error(V(this.mod,S,R));yi(this.mod)}registerFileHandle(v,n,j,b){let[C,S,R]=ci(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[v,v,j,b]);if(C!==0)throw new Error(V(this.mod,S,R));if(yi(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(v,n),this.pthread){for(let A of this.pthread.runningWorkers)A.postMessage({cmd:"registerFileHandle",fileName:v,fileHandle:n});for(let A of this.pthread.unusedWorkers)A.postMessage({cmd:"dropFileHandle",fileName:v})}}dropFile(v){let[n,j,b]=ci(this.mod,"duckdb_web_fs_drop_file",["string"],[v]);if(n!==0)throw new Error(V(this.mod,j,b));yi(this.mod)}dropFiles(){let[v,n,j]=ci(this.mod,"duckdb_web_fs_drop_files",[],[]);if(v!==0)throw new Error(V(this.mod,n,j));yi(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(v,n){let[j,b,C]=ci(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[v,n]);if(j!==0)throw new Error(V(this.mod,b,C));yi(this.mod)}copyFileToBuffer(v){let[n,j,b]=ci(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[v]);if(n!==0)throw new Error(V(this.mod,j,b));let C=this.mod.HEAPU8.subarray(j,j+b),S=new Uint8Array(C.length);return S.set(C),yi(this.mod),S}collectFileStatistics(v,n){let[j,b,C]=ci(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[v,n]);if(j!==0)throw new Error(V(this.mod,b,C))}exportFileStatistics(v){let[n,j,b]=ci(this.mod,"duckdb_web_export_file_stats",["string"],[v]);if(n!==0)throw new Error(V(this.mod,j,b));return new rr(this.mod.HEAPU8.subarray(j,j+b))}};var pc=(b=>(b[b.UNDEFINED=0]="UNDEFINED",b[b.AUTOMATIC=1]="AUTOMATIC",b[b.READ_ONLY=2]="READ_ONLY",b[b.READ_WRITE=3]="READ_WRITE",b))(pc||{});var mc=(n=>(n.ROW_ARRAY="row-array",n.COLUMN_OBJECT="column-object",n))(mc||{});var wc=(S=>(S[S.IDENTIFIER=0]="IDENTIFIER",S[S.NUMERIC_CONSTANT=1]="NUMERIC_CONSTANT",S[S.STRING_CONSTANT=2]="STRING_CONSTANT",S[S.OPERATOR=3]="OPERATOR",S[S.KEYWORD=4]="KEYWORD",S[S.COMMENT=5]="COMMENT",S))(wc||{});var gc=(C=>(C[C.NONE=0]="NONE",C[C.DEBUG=1]="DEBUG",C[C.INFO=2]="INFO",C[C.WARNING=3]="WARNING",C[C.ERROR=4]="ERROR",C))(gc||{}),kc=(S=>(S[S.NONE=0]="NONE",S[S.CONNECT=1]="CONNECT",S[S.DISCONNECT=2]="DISCONNECT",S[S.OPEN=3]="OPEN",S[S.QUERY=4]="QUERY",S[S.INSTANTIATE=5]="INSTANTIATE",S))(kc||{}),Cc=(S=>(S[S.NONE=0]="NONE",S[S.OK=1]="OK",S[S.ERROR=2]="ERROR",S[S.START=3]="START",S[S.RUN=4]="RUN",S[S.CAPTURE=5]="CAPTURE",S))(Cc||{}),Ec=(C=>(C[C.NONE=0]="NONE",C[C.WEB_WORKER=1]="WEB_WORKER",C[C.NODE_WORKER=2]="NODE_WORKER",C[C.BINDINGS=3]="BINDINGS",C[C.ASYNC_DUCKDB=4]="ASYNC_DUCKDB",C))(Ec||{}),ta=class{log(v){}},na=class{constructor(v=2){this.level=v}log(v){v.level>=this.level&&console.log(v)}};function lv(f){switch(f){case 0:return"NONE";case 1:return"DEBUG";case 2:return"INFO";case 3:return"WARNING";case 4:return"ERROR";default:return"?"}}function cv(f){switch(f){case 0:return"NONE";case 1:return"OK";case 2:return"ERROR";case 3:return"START";case 4:return"RUN";case 5:return"CAPTURE";default:return"?"}}function _v(f){switch(f){case 1:return"CONNECT";case 2:return"DISCONNECT";case 5:return"INSTANTIATE";case 3:return"OPEN";case 4:return"QUERY";default:return"?"}}function uv(f){switch(f){case 0:return"NONE";case 1:return"WEB WORKER";case 2:return"NODE WORKER";case 3:return"DUCKDB BINDINGS";case 4:return"DUCKDB";default:return"?"}}var Sc=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),Dc=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11]));var Rc=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]));var Ac=()=>(async f=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(f)}catch(v){return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]));var Gr={name:"@duckdb/duckdb-wasm",version:"1.27.1-dev114.0",description:"DuckDB powered by WebAssembly",license:"MIT",repository:{type:"git",url:"https://github.com/duckdb/duckdb-wasm.git"},keywords:["sql","duckdb","relational","database","data","query","wasm","analytics","olap","arrow","parquet","json","csv"],dependencies:{"apache-arrow":"^13.0.0"},devDependencies:{"@types/emscripten":"^1.39.7","@types/jasmine":"^4.3.1","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.4.1",esbuild:"^0.18.13",eslint:"^8.47.0","eslint-plugin-jasmine":"^4.1.3","eslint-plugin-react":"^7.33.2","fast-glob":"^3.3.1",jasmine:"^5.1.0","jasmine-core":"^5.0.0","jasmine-spec-reporter":"^7.0.0","js-sha256":"^0.9.0",karma:"^6.4.2","karma-chrome-launcher":"^3.2.0","karma-coverage":"^2.2.1","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.1.0","karma-sourcemap-loader":"^0.4.0","karma-spec-reporter":"^0.0.36","make-dir":"^4.0.0",nyc:"^15.1.0",prettier:"^3.0.2",puppeteer:"^21.1.1",rimraf:"^5.0.1",s3rver:"^3.7.1",typedoc:"^0.25.0",typescript:"^5.1.6","wasm-feature-detect":"^1.5.1","web-worker":"^1.2.0"},scripts:{"build:debug":"node bundle.mjs debug && tsc --emitDeclarationOnly","build:release":"node bundle.mjs release && tsc --emitDeclarationOnly",docs:"typedoc",report:"node ./coverage.mjs","test:node":"node --enable-source-maps ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:debug":"node --inspect-brk --enable-source-maps ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:coverage":"nyc -r json --report-dir ./coverage/node node ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:firefox":"karma start ./karma/tests-firefox.cjs","test:chrome":"karma start ./karma/tests-chrome.cjs","test:chrome:eh":"karma start ./karma/tests-chrome-eh.cjs","test:chrome:coverage":"karma start ./karma/tests-chrome-coverage.cjs","test:browser":"karma start ./karma/tests-all.cjs","test:browser:debug":"karma start ./karma/tests-debug.cjs",test:"npm run test:chrome && npm run test:node","test:coverage":"npm run test:chrome:coverage && npm run test:node:coverage && npm run report",lint:"eslint src test"},files:["dist","!dist/types/test"],main:"dist/duckdb-browser.cjs",module:"dist/duckdb-browser.mjs",types:"dist/duckdb-browser.d.ts",jsdelivr:"dist/duckdb-browser.cjs",unpkg:"dist/duckdb-browser.mjs",sideEffects:!1,browser:{fs:!1,path:!1,perf_hooks:!1,os:!1,worker_threads:!1},exports:{"./dist/duckdb-mvp.wasm":"./dist/duckdb-mvp.wasm","./dist/duckdb-eh.wasm":"./dist/duckdb-eh.wasm","./dist/duckdb-coi.wasm":"./dist/duckdb-coi.wasm","./dist/duckdb-browser":"./dist/duckdb-browser.mjs","./dist/duckdb-browser.cjs":"./dist/duckdb-browser.cjs","./dist/duckdb-browser.mjs":"./dist/duckdb-browser.mjs","./dist/duckdb-browser-blocking":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.mjs":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.cjs":"./dist/duckdb-browser-blocking.cjs","./dist/duckdb-browser-coi.pthread.worker.js":"./dist/duckdb-browser-coi.pthread.worker.js","./dist/duckdb-browser-coi.worker.js":"./dist/duckdb-browser-coi.worker.js","./dist/duckdb-browser-eh.worker.js":"./dist/duckdb-browser-eh.worker.js","./dist/duckdb-browser-mvp.worker.js":"./dist/duckdb-browser-mvp.worker.js","./dist/duckdb-node":"./dist/duckdb-node.cjs","./dist/duckdb-node.cjs":"./dist/duckdb-node.cjs","./dist/duckdb-node-blocking":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-blocking.cjs":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-eh.worker.cjs":"./dist/duckdb-node-eh.worker.cjs","./dist/duckdb-node-mvp.worker.cjs":"./dist/duckdb-node-mvp.worker.cjs","./blocking":{browser:{types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},node:{types:"./dist/duckdb-node-blocking.d.ts",require:"./dist/duckdb-node-blocking.cjs",import:"./dist/duckdb-node-blocking.cjs"},types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},".":{browser:{types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"},node:{types:"./dist/duckdb-node.d.ts",import:"./dist/duckdb-node.cjs",require:"./dist/duckdb-node.cjs"},types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"}}};var aa=Gr.name,oa=Gr.version,sa=Gr.version.split("."),vv=sa[0],hv=sa[1],yv=sa[2];var fa=()=>typeof navigator>"u",Tc=()=>fa()?"node":navigator.userAgent,jv=()=>Tc().includes("Firefox"),bv=()=>/^((?!chrome|android).)*safari/i.test(Tc());function pv(){let f="https://cdn.jsdelivr.net/npm/".concat(aa,"@").concat(oa,"/dist/");return{mvp:{mainModule:"".concat(f,"duckdb-mvp.wasm"),mainWorker:"".concat(f,"duckdb-browser-mvp.worker.js")},eh:{mainModule:"".concat(f,"duckdb-eh.wasm"),mainWorker:"".concat(f,"duckdb-browser-eh.worker.js")}}}var la=null,ca=null,_a=null,ua=null,da=null;async function $r(){return la==null&&(la=typeof BigInt64Array<"u"),ca==null&&(ca=await Dc()),_a==null&&(_a=await Ac()),ua==null&&(ua=await Rc()),da==null&&(da=await Sc()),{bigInt64Array:la,crossOriginIsolated:fa()||globalThis.crossOriginIsolated||!1,wasmExceptions:ca,wasmSIMD:ua,wasmThreads:_a,wasmBulkMemory:da}}async function mv(f){let v=await $r();if(v.wasmExceptions){if(v.wasmSIMD&&v.wasmThreads&&v.crossOriginIsolated&&f.coi)return{mainModule:f.coi.mainModule,mainWorker:f.coi.mainWorker,pthreadWorker:f.coi.pthreadWorker};if(f.eh)return{mainModule:f.eh.mainModule,mainWorker:f.eh.mainWorker,pthreadWorker:null}}return{mainModule:f.mvp.mainModule,mainWorker:f.mvp.mainWorker,pthreadWorker:null}}var ie=Ze(Fc()),xc=function(f,v,n){var j;if((j=f==null?void 0:f.endpoint)!=null&&j.startsWith("http")){let b="".concat(f==null?void 0:f.endpoint),C=b.indexOf("://")+3;return b.substring(C)}else return f!=null&&f.endpoint?"".concat(n,".").concat(f==null?void 0:f.endpoint):"".concat(n,".s3.amazonaws.com")};function wv(f,v,n){var C,S,R,A;let j=Uc(v),b=j.path;return Ic(f)&&(b="/".concat(j.bucket).concat(b)),{url:b,query:"",host:xc(f,v,j.bucket),region:(C=f==null?void 0:f.region)!=null?C:"",service:"s3",method:n,accessKeyId:(S=f==null?void 0:f.accessKeyId)!=null?S:"",secretAccessKey:(R=f==null?void 0:f.secretAccessKey)!=null?R:"",sessionToken:(A=f==null?void 0:f.sessionToken)!=null?A:"",dateNow:new Date().toISOString().replace(/-/g,"").split("T")[0],datetimeNow:new Date().toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function gv(f,v=!1){let n="0123456789ABCDEF",j="";for(let b=0;b="A"&&C<="Z"||C>="a"&&C<="z"||C>="0"&&C<="9"||C=="_"||C=="-"||C=="~"||C=="."?j+=C:C=="/"?v?j+="%2F":j+=C:(j+="%",j+=n[C.charCodeAt(0)>>4],j+=n[C.charCodeAt(0)&15])}return j}function kv(f,v=null){var bi;let n=(bi=v==null?void 0:v.contentHash)!=null?bi:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",j=new Map;j.set("x-amz-date",f.datetimeNow),j.set("x-amz-content-sha256",n),f.sessionToken&&j.set("x-amz-security-token",f.sessionToken);let b="";v!=null&&v.contentType&&(b+="content-type;"),b+="host;x-amz-content-sha256;x-amz-date",f.sessionToken&&(b+=";x-amz-security-token");let C=f.method+"\n"+gv(f.url)+"\n"+f.query;v!=null&&v.contentType&&(C+="\ncontent-type:"+(v==null?void 0:v.contentType)),C+="\nhost:"+f.host+"\nx-amz-content-sha256:"+n+"\nx-amz-date:"+f.datetimeNow,f.sessionToken&&f.sessionToken.length>0&&(C+="\nx-amz-security-token:"+f.sessionToken),C+="\n\n"+b+"\n"+n;let S=(0,ie.sha256)(C),R="AWS4-HMAC-SHA256\n"+f.datetimeNow+"\n"+f.dateNow+"/"+f.region+"/"+f.service+"/aws4_request\n"+S,A="AWS4"+f.secretAccessKey,N=ie.sha256.hmac.arrayBuffer(A,f.dateNow),P=ie.sha256.hmac.arrayBuffer(N,f.region),ri=ie.sha256.hmac.arrayBuffer(P,f.service),$=ie.sha256.hmac.arrayBuffer(ri,"aws4_request"),J=ie.sha256.hmac($,R);return j.set("Authorization","AWS4-HMAC-SHA256 Credential="+f.accessKeyId+"/"+f.dateNow+"/"+f.region+"/"+f.service+"/aws4_request, SignedHeaders="+b+", Signature="+J),j}var Cv=function(f,v,n,j=null,b=null){let C=wv(f,v,n),S={contentType:j,contentHash:b?ie.sha256.hex(b):null};return kv(C,S)};function $i(f,v,n,j,b=null,C=null){(v!=null&&v.accessKeyId||v!=null&&v.sessionToken)&&(Cv(v,n,j,b,C).forEach((R,A)=>{f.setRequestHeader(A,R)}),b&&f.setRequestHeader("content-type",b))}function Uc(f){if(f.indexOf("s3://")!=0)throw new Error("URL needs to start with s3://");let v=f.indexOf("/",5);if(v==-1)throw new Error("URL needs to contain a '/' after the host");let n=f.substring(5,v);if(!n)throw new Error("URL needs to contain a bucket name");let j=f.substring(v);if(!j)throw new Error("URL needs to contain key");return{bucket:n,path:j}}function Ic(f){var v;return!!((v=f==null?void 0:f.endpoint)!=null&&v.startsWith("http"))}function zi(f,v){let n=Uc(v);return Ic(f)?"".concat(f==null?void 0:f.endpoint,"/").concat(n.bucket)+n.path:"https://"+xc(f,v,n.bucket)+n.path}var si={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,_globalFileInfo:null,getFileInfo(f,v){try{let n=si._fileInfoCache.get(v),[j,b,C]=ci(f,"duckdb_web_fs_get_file_info_by_id",["number","number"],[v,(n==null?void 0:n.cacheEpoch)||0]);if(j!==0)return null;if(C===0)return n;let S=V(f,b,C);yi(f);let R=JSON.parse(S);if(R==null)return null;let A={...R,blob:null};return si._fileInfoCache.set(v,A),A}catch(n){return console.log(n),null}},getGlobalFileInfo(f){var v;try{let[n,j,b]=ci(f,"duckdb_web_get_global_file_info",["number"],[((v=si._globalFileInfo)==null?void 0:v.cacheEpoch)||0]);if(n!==0)return null;if(b===0)return si._globalFileInfo;let C=V(f,j,b);yi(f);let S=JSON.parse(C);return S==null?null:(si._globalFileInfo={...S,blob:null},si._globalFileInfo)}catch(n){return console.log(n),null}},testPlatformFeature:(f,v)=>{switch(v){case 1:return typeof BigInt64Array<"u";default:return console.warn("test for unknown feature: ".concat(v)),!1}},getDefaultDataProtocol(f){return 2},openFile:(f,v,n)=>{var j;try{si._fileInfoCache.delete(v);let b=si.getFileInfo(f,v);switch(b==null?void 0:b.dataProtocol){case 4:case 5:{if(n&1&&n&2)throw new Error("Opening file ".concat(b.fileName," failed: cannot open file with both read and write flags set"));if(n&32)throw new Error("Opening file ".concat(b.fileName," failed: appending to HTTP/S3 files is not supported"));if(n&2){let R=new XMLHttpRequest;if(b.dataProtocol==5?(R.open("HEAD",zi(b.s3Config,b.dataUrl),!1),$i(R,b.s3Config,b.dataUrl,"HEAD")):R.open("HEAD",b.dataUrl,!1),R.send(null),R.status!=200&&R.status!=404)throw new Error("Opening file ".concat(b.fileName," failed: Unexpected return status from server (").concat(R.status,")"));if(R.status==404&&!(n&8||n&16))throw new Error("Opening file ".concat(b.fileName," failed: Cannot write to non-existent file without FILE_FLAGS_FILE_CREATE or FILE_FLAGS_FILE_CREATE_NEW flag."));let A=f._malloc(1),N=new Uint8Array;f.HEAPU8.set(N,A);let P=f._malloc(2*8);return f.HEAPF64[(P>>3)+0]=1,f.HEAPF64[(P>>3)+1]=A,P}else if(n!=1)throw new Error("Opening file ".concat(b.fileName," failed: unsupported file flags: ").concat(n));let C=null,S=null;try{let R=new XMLHttpRequest;if(b.dataProtocol==5?(R.open("HEAD",zi(b.s3Config,b.dataUrl),!1),$i(R,b.s3Config,b.dataUrl,"HEAD")):R.open("HEAD",b.dataUrl,!1),R.setRequestHeader("Range","bytes=0-"),R.send(null),C=R.getResponseHeader("Content-Length"),C!==null&&R.status==206){let A=f._malloc(16);return f.HEAPF64[(A>>3)+0]=+C,f.HEAPF64[(A>>3)+1]=0,A}}catch(R){S=R,console.warn("HEAD request with range header failed: ".concat(R))}if(b.allowFullHttpReads){if(C!==null&&+C>1){let A=new XMLHttpRequest;b.dataProtocol==5?(A.open("GET",zi(b.s3Config,b.dataUrl),!1),$i(A,b.s3Config,b.dataUrl,"GET")):A.open("GET",b.dataUrl,!1),A.setRequestHeader("Range","bytes=0-0"),A.send(null);let N=A.getResponseHeader("Content-Length");if(A.status==206&&N!==null&&+N==1){let P=f._malloc(16);return f.HEAPF64[(P>>3)+0]=+C,f.HEAPF64[(P>>3)+1]=0,P}if(A.status==200&&N!==null&&+N==+C){console.warn("fall back to full HTTP read for: ".concat(b.dataUrl));let P=f._malloc(A.response.byteLength),ri=new Uint8Array(A.response,0,A.response.byteLength);f.HEAPU8.set(ri,P);let $=f._malloc(2*8);return f.HEAPF64[($>>3)+0]=A.response.byteLength,f.HEAPF64[($>>3)+1]=P,$}}console.warn("falling back to full HTTP read for: ".concat(b.dataUrl));let R=new XMLHttpRequest;if(b.dataProtocol==5?(R.open("GET",zi(b.s3Config,b.dataUrl),!1),$i(R,b.s3Config,b.dataUrl,"GET")):R.open("GET",b.dataUrl,!1),R.responseType="arraybuffer",R.send(null),R.status==200){let A=f._malloc(R.response.byteLength),N=new Uint8Array(R.response,0,R.response.byteLength);f.HEAPU8.set(N,A);let P=f._malloc(2*8);return f.HEAPF64[(P>>3)+0]=R.response.byteLength,f.HEAPF64[(P>>3)+1]=A,P}}if(S!=null)throw new Error("Reading file ".concat(b.fileName," failed with error: ").concat(S));return 0}case 2:{let C=(j=si._files)==null?void 0:j.get(b.fileName);if(C){let A=f._malloc(16);return f.HEAPF64[(A>>3)+0]=C.size,f.HEAPF64[(A>>3)+1]=0,A}console.warn("Buffering missing file: ".concat(b.fileName));let S=f._malloc(2*8),R=f._malloc(1);return f.HEAPF64[(S>>3)+0]=1,f.HEAPF64[(S>>3)+1]=R,S}}}catch(b){console.error(b.toString()),Pi(f,b.toString())}return 0},glob:(f,v,n)=>{var j;try{let b=V(f,v,n);if(b.startsWith("http")||b.startsWith("s3://")){let C=new XMLHttpRequest;if(b.startsWith("s3://")){let S=si.getGlobalFileInfo(f);C.open("HEAD",zi(S==null?void 0:S.s3Config,b),!1),$i(C,S==null?void 0:S.s3Config,b,"HEAD")}else C.open("HEAD",b,!1);if(C.send(null),C.status!=200&&C.status!==206){if(!((j=si.getGlobalFileInfo(f))!=null&&j.allowFullHttpReads)){Pi(f,"HEAD request failed: ".concat(b,", with full http reads are disabled"));return}let S=new XMLHttpRequest;if(b.startsWith("s3://")){let A=si.getGlobalFileInfo(f);S.open("GET",zi(A==null?void 0:A.s3Config,b),!1),$i(S,A==null?void 0:A.s3Config,b,"HEAD")}else S.open("GET",b,!1);if(S.setRequestHeader("Range","bytes=0-0"),S.send(null),S.status!=200&&S.status!==206){Pi(f,"HEAD and GET requests failed: ".concat(b));return}let R=S.getResponseHeader("Content-Length");R&&+R>1&&console.warn("Range request for ".concat(b," did not return a partial response: ").concat(S.status,' "').concat(S.statusText,'"'))}f.ccall("duckdb_web_fs_glob_add_path",null,["string"],[b])}}catch(b){return console.log(b),Pi(f,b.toString()),0}},checkFile:(f,v,n)=>{try{let j=V(f,v,n);if(j.startsWith("http")||j.startsWith("s3://")){let b=new XMLHttpRequest;if(j.startsWith("s3://")){let C=si.getGlobalFileInfo(f);b.open("HEAD",zi(C==null?void 0:C.s3Config,j),!1),$i(b,C==null?void 0:C.s3Config,j,"HEAD")}else b.open("HEAD",j,!1);return b.send(null),b.status==206||b.status==200}}catch(j){return console.log(j),!1}return!1},syncFile:(f,v)=>{},closeFile:(f,v)=>{var j;let n=si.getFileInfo(f,v);switch(si._fileInfoCache.delete(v),n==null?void 0:n.dataProtocol){case 0:case 4:case 5:break;case 1:case 2:return;case 3:{let b=(j=si._files)==null?void 0:j.get(n.fileName);if(!b)throw new Error("No OPFS access handle registered with name: ".concat(n.fileName));return b.flush()}}},truncateFile:(f,v,n)=>{var b;let j=si.getFileInfo(f,v);switch(j==null?void 0:j.dataProtocol){case 4:Pi(f,"Cannot truncate a http file");return;case 5:Pi(f,"Cannot truncate an s3 file");return;case 0:case 1:case 2:Pi(f,"truncateFile not implemented");return;case 3:{let C=(b=si._files)==null?void 0:b.get(j.fileName);if(!C)throw new Error("No OPFS access handle registered with name: ".concat(j.fileName));return C.truncate(n)}}return 0},readFile(f,v,n,j,b){var C,S;if(j==0)return 0;try{let R=si.getFileInfo(f,v);switch(R==null?void 0:R.dataProtocol){case 4:case 5:{if(!R.dataUrl)throw new Error("Missing data URL for file ".concat(v));try{let A=new XMLHttpRequest;if(R.dataProtocol==5?(A.open("GET",zi(R==null?void 0:R.s3Config,R.dataUrl),!1),$i(A,R==null?void 0:R.s3Config,R.dataUrl,"GET")):A.open("GET",R.dataUrl,!1),A.responseType="arraybuffer",A.setRequestHeader("Range","bytes=".concat(b,"-").concat(b+j-1)),A.send(null),A.status==206||A.status==200&&j==A.response.byteLength&&b==0){let N=new Uint8Array(A.response,0,Math.min(A.response.byteLength,j));return f.HEAPU8.set(N,n),N.byteLength}else if(A.status==200){console.warn("Range request for ".concat(R.dataUrl," did not return a partial response: ").concat(A.status,' "').concat(A.statusText,'"'));let N=new Uint8Array(A.response,b,Math.min(A.response.byteLength-b,j));return f.HEAPU8.set(N,n),N.byteLength}else throw new Error("Range request for ".concat(R.dataUrl," did returned non-success status: ").concat(A.status,' "').concat(A.statusText,'"'))}catch(A){throw console.log(A),new Error("Range request for ".concat(R.dataUrl," failed with error: ").concat(A,'"'))}}case 2:{let A=(C=si._files)==null?void 0:C.get(R.fileName);if(!A)throw new Error("No HTML5 file registered with name: ".concat(R.fileName));let N=A.slice(b,b+j),P=new Uint8Array(new FileReaderSync().readAsArrayBuffer(N));return f.HEAPU8.set(P,n),P.byteLength}case 3:{let A=(S=si._files)==null?void 0:S.get(R.fileName);if(!A)throw new Error("No OPFS access handle registered with name: ".concat(R.fileName));let N=f.HEAPU8.subarray(n,n+j);return A.read(N,{at:b})}}return 0}catch(R){return console.log(R),Pi(f,R.toString()),0}},writeFile:(f,v,n,j,b)=>{var S;let C=si.getFileInfo(f,v);switch(C==null?void 0:C.dataProtocol){case 4:return Pi(f,"Cannot write to HTTP file"),0;case 5:{let R=f.HEAPU8.subarray(n,n+j),A=new XMLHttpRequest;return A.open("PUT",zi(C==null?void 0:C.s3Config,C.dataUrl),!1),$i(A,C==null?void 0:C.s3Config,C.dataUrl,"PUT","",R),A.send(R),A.status!==200?(Pi(f,"Failed writing file: HTTP "+A.status),0):j}case 2:return Pi(f,"cannot write using the html5 file reader api"),0;case 3:{let R=(S=si._files)==null?void 0:S.get(C.fileName);if(!R)throw new Error("No OPFS access handle registered with name: ".concat(C.fileName));let A=f.HEAPU8.subarray(n,n+j);return R.write(A,{at:b})}}return 0},getLastFileModificationTime:(f,v)=>{var j;let n=si.getFileInfo(f,v);switch(n==null?void 0:n.dataProtocol){case 2:{if(!((j=si._files)==null?void 0:j.get(n.fileName)))throw Error("No handle available for file: ".concat(n.fileName));return 0}case 4:case 5:return new Date().getTime()}return 0},checkDirectory:(f,v,n)=>{let j=V(f,v,n);return console.log("checkDirectory: ".concat(j)),!1},createDirectory:(f,v,n)=>{let j=V(f,v,n);console.log("createDirectory: ".concat(j))},removeDirectory:(f,v,n)=>{let j=V(f,v,n);console.log("removeDirectory: ".concat(j))},listDirectoryEntries:(f,v,n)=>{let j=V(f,v,n);return console.log("listDirectoryEntries: ".concat(j)),!1},moveFile:(f,v,n,j,b)=>{var A,N;let C=V(f,v,n),S=V(f,j,b),R=(A=si._files)==null?void 0:A.get(C);R!==void 0&&(si._files.delete(R),si._files.set(S,R));for(let[P,ri]of((N=si._fileInfoCache)==null?void 0:N.entries())||[])if(ri.dataUrl==C){si._fileInfoCache.delete(P);break}return!0},removeFile:(f,v,n)=>{},callScalarUDF:(f,v,n,j,b,C,S)=>{Kr(si,f,v,n,j,b,C,S)}};var Mc=Ze(Nc());var Se=class extends tr{constructor(n,j,b,C){super(n,j);this.mainModuleURL=b,this.pthreadWorkerURL=C}locateFile(n,j){if(n.endsWith(".wasm"))return this.mainModuleURL;if(n.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error("WASM instantiation requested unexpected file: prefix=".concat(j," path=").concat(n))}instantiateWasm(n,j){globalThis.DUCKDB_RUNTIME=this._runtime;let b=this.onInstantiationProgress;if(WebAssembly.instantiateStreaming)if(typeof TransformStream=="function"){let S=(async()=>{var wi;let R=new Request(this.mainModuleURL),A=await fetch(R),N=A.headers.get("content-length"),P=N&&parseInt(N,10)||0,ri=new Date,$={startedAt:ri,updatedAt:ri,bytesTotal:P||0,bytesLoaded:0},J={transform(pi,Ii){$.bytesLoaded+=pi.byteLength;let Ri=new Date;if(Ri.getTime()-$.updatedAt.getTime()<20){$.updatedAt=Ri,Ii.enqueue(pi);return}for(let ki of b)ki($);Ii.enqueue(pi)}},bi=new TransformStream(J);return new Response((wi=A.body)==null?void 0:wi.pipeThrough(bi),A)})();WebAssembly.instantiateStreaming(S,n).then(R=>{j(R.instance,R.module)})}else{console.warn("instantiating without progress handler since transform streams are unavailable");let C=new Request(this.mainModuleURL);WebAssembly.instantiateStreaming(fetch(C),n).then(S=>{j(S.instance,S.module)})}else if(typeof XMLHttpRequest=="function"){let C=new XMLHttpRequest,S=this.mainModuleURL,R=new Date,A={startedAt:R,updatedAt:R,bytesTotal:0,bytesLoaded:0};C.open("GET",S),C.responseType="arraybuffer",C.onerror=N=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to load WASM: "+N}),new Error(N.toString())},C.onprogress=N=>{A.bytesTotal=N.total,A.bytesLoaded=N.loaded;let P=new Date;if(P.getTime()-A.updatedAt.getTime()<20){A.updatedAt=P;return}for(let ri of b)ri(A)},C.onload=()=>{WebAssembly.instantiate(C.response,n).then(N=>{j(N.instance,N.module)}).catch(N=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to instantiate WASM: "+N}),new Error(N)})},C.send()}else console.warn("instantiating with manual fetch since streaming instantiation and xhrs are unavailable"),(async()=>{let S=new Request(this.mainModuleURL),A=await(await fetch(S)).arrayBuffer();WebAssembly.instantiate(A,n).then(N=>{j(N.instance,N.module)})})();return[]}};var zr=class extends Se{constructor(v,n,j,b=null){super(v,n,j,b)}instantiateImpl(v){return(0,Mc.default)({...v,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var Wc=Ze(Lc());var Vr=class extends Se{constructor(v,n,j,b=null){super(v,n,j,b)}instantiateImpl(v){return(0,Wc.default)({...v,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};async function Ev(f,v,n){return(await $r()).wasmExceptions&&f.eh?new Vr(v,n,f.eh.mainModule):new zr(v,n,f.mvp.mainModule)} /*! Bundled license information: js-sha256/src/sha256.js: (** * [js-sha256]{@link https://github.com/emn178/js-sha256} * * @version 0.9.0 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT *) */ //# sourceMappingURL=duckdb-browser-blocking.cjs.map