@run-trace/duckdb-wasm 0.1.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.md +24 -20
  2. package/dist/duckdb-browser-blocking.cjs +14 -0
  3. package/dist/duckdb-browser-blocking.cjs.map +7 -0
  4. package/dist/duckdb-browser-blocking.d.ts +1 -0
  5. package/dist/duckdb-browser-blocking.mjs +14 -0
  6. package/dist/duckdb-browser-blocking.mjs.map +7 -0
  7. package/dist/duckdb-browser-coi.pthread.worker.js +1 -18
  8. package/dist/duckdb-browser-coi.pthread.worker.js.map +4 -4
  9. package/dist/duckdb-browser-coi.worker.js +1 -18
  10. package/dist/duckdb-browser-coi.worker.js.map +4 -4
  11. package/dist/duckdb-browser-eh.worker.js +1 -14
  12. package/dist/duckdb-browser-eh.worker.js.map +4 -4
  13. package/dist/duckdb-browser-mvp.worker.js +1 -14
  14. package/dist/duckdb-browser.cjs +2 -0
  15. package/dist/duckdb-browser.cjs.map +7 -0
  16. package/dist/duckdb-browser.d.ts +1 -1
  17. package/dist/duckdb-browser.mjs +2 -0
  18. package/dist/duckdb-browser.mjs.map +7 -0
  19. package/dist/duckdb-coi.wasm +0 -0
  20. package/dist/duckdb-eh.wasm +0 -0
  21. package/dist/duckdb-mvp.wasm +0 -0
  22. package/dist/duckdb-node-blocking.cjs +53 -0
  23. package/dist/duckdb-node-blocking.cjs.map +7 -0
  24. package/dist/duckdb-node-blocking.d.ts +1 -0
  25. package/dist/duckdb-node-eh.worker.cjs +4 -2
  26. package/dist/duckdb-node-eh.worker.cjs.map +4 -4
  27. package/dist/duckdb-node-mvp.worker.cjs +3 -2
  28. package/dist/duckdb-node-mvp.worker.cjs.map +4 -4
  29. package/dist/duckdb-node.cjs +2 -0
  30. package/dist/duckdb-node.cjs.map +7 -0
  31. package/dist/duckdb-node.d.ts +1 -1
  32. package/dist/types/{bindings → src/bindings}/bindings_base.d.ts +3 -2
  33. package/dist/types/{bindings → src/bindings}/bindings_browser_base.d.ts +2 -1
  34. package/dist/types/{bindings → src/bindings}/bindings_interface.d.ts +2 -0
  35. package/dist/types/{bindings → src/bindings}/bindings_node_base.d.ts +2 -1
  36. package/dist/types/{bindings → src/bindings}/connection.d.ts +18 -6
  37. package/dist/types/{bindings → src/bindings}/duckdb_module.d.ts +1 -3
  38. package/dist/types/src/bindings/index.d.ts +11 -0
  39. package/dist/types/{bindings → src/bindings}/insert_options.d.ts +10 -3
  40. package/dist/types/{bindings → src/bindings}/runtime.d.ts +1 -7
  41. package/dist/types/{bindings → src/bindings}/udf_function.d.ts +3 -2
  42. package/dist/types/src/index.d.ts +7 -0
  43. package/dist/types/{sql_field.d.ts → src/json_typedef.d.ts} +6 -3
  44. package/dist/types/{parallel → src/parallel}/async_bindings_interface.d.ts +2 -2
  45. package/dist/types/{parallel → src/parallel}/async_connection.d.ts +17 -6
  46. package/dist/types/src/parallel/index.d.ts +5 -0
  47. package/dist/types/{platform.d.ts → src/platform.d.ts} +1 -0
  48. package/dist/types/src/targets/duckdb-browser-blocking.d.ts +12 -0
  49. package/dist/types/src/targets/duckdb-browser-coi.pthread.worker.d.ts +1 -0
  50. package/dist/types/src/targets/duckdb-node-blocking.d.ts +13 -0
  51. package/dist/types/src/targets/duckdb.d.ts +9 -0
  52. package/dist/types/src/version.d.ts +5 -0
  53. package/package.json +97 -42
  54. package/dist/duckdb-browser-mvp.worker.js.map +0 -7
  55. package/dist/duckdb-node.mjs +0 -8
  56. package/dist/duckdb-node.mjs.map +0 -7
  57. package/dist/duckdb-wasm.mjs +0 -1160
  58. package/dist/duckdb-wasm.umd.js +0 -1
  59. package/dist/types/bindings/index.d.ts +0 -11
  60. package/dist/types/duckdb.d.ts +0 -8
  61. package/dist/types/index.d.ts +0 -11
  62. package/dist/types/parallel/index.d.ts +0 -5
  63. package/dist/types/targets/duckdb.d.ts +0 -10
  64. package/dist/types/worker_node.d.ts +0 -6
  65. /package/dist/types/{bindings → src/bindings}/bindings_browser_coi.d.ts +0 -0
  66. /package/dist/types/{bindings → src/bindings}/bindings_browser_eh.d.ts +0 -0
  67. /package/dist/types/{bindings → src/bindings}/bindings_browser_mvp.d.ts +0 -0
  68. /package/dist/types/{bindings → src/bindings}/bindings_node_eh.d.ts +0 -0
  69. /package/dist/types/{bindings → src/bindings}/bindings_node_mvp.d.ts +0 -0
  70. /package/dist/types/{bindings → src/bindings}/config.d.ts +0 -0
  71. /package/dist/types/{bindings → src/bindings}/file_stats.d.ts +0 -0
  72. /package/dist/types/{bindings → src/bindings}/progress.d.ts +0 -0
  73. /package/dist/types/{bindings → src/bindings}/runtime_browser.d.ts +0 -0
  74. /package/dist/types/{bindings → src/bindings}/runtime_node.d.ts +0 -0
  75. /package/dist/types/{bindings → src/bindings}/tokens.d.ts +0 -0
  76. /package/dist/types/{bindings → src/bindings}/udf_runtime.d.ts +0 -0
  77. /package/dist/types/{bindings → src/bindings}/web_file.d.ts +0 -0
  78. /package/dist/types/{targets/duckdb-browser-coi.pthread.worker.d.ts → src/index_docs.d.ts} +0 -0
  79. /package/dist/types/{log.d.ts → src/log.d.ts} +0 -0
  80. /package/dist/types/{parallel → src/parallel}/async_bindings.d.ts +0 -0
  81. /package/dist/types/{parallel → src/parallel}/worker_dispatcher.d.ts +0 -0
  82. /package/dist/types/{parallel → src/parallel}/worker_request.d.ts +0 -0
  83. /package/dist/types/{status.d.ts → src/status.d.ts} +0 -0
  84. /package/dist/types/{targets → src/targets}/duckdb-browser-coi.worker.d.ts +0 -0
  85. /package/dist/types/{targets → src/targets}/duckdb-browser-eh.worker.d.ts +0 -0
  86. /package/dist/types/{targets → src/targets}/duckdb-browser-mvp.worker.d.ts +0 -0
  87. /package/dist/types/{targets → src/targets}/duckdb-node-eh.worker.d.ts +0 -0
  88. /package/dist/types/{targets → src/targets}/duckdb-node-mvp.worker.d.ts +0 -0
  89. /package/dist/types/{utils → src/utils}/binary_dump.d.ts +0 -0
  90. /package/dist/types/{utils → src/utils}/index.d.ts +0 -0
  91. /package/dist/types/{utils → src/utils}/opfs_util.d.ts +0 -0
  92. /package/dist/types/{utils → src/utils}/s3_helper.d.ts +0 -0
  93. /package/dist/types/{worker.d.ts → src/worker.d.ts} +0 -0
@@ -1,5 +1,6 @@
1
- "use strict";var M0=Object.create;var $t=Object.defineProperty;var B0=Object.getOwnPropertyDescriptor;var L0=Object.getOwnPropertyNames;var H0=Object.getPrototypeOf,U0=Object.prototype.hasOwnProperty;var U=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports),N0=(o,r)=>{for(var a in r)$t(o,a,{get:r[a],enumerable:!0})},zn=(o,r,a,h)=>{if(r&&typeof r=="object"||typeof r=="function")for(let _ of L0(r))!U0.call(o,_)&&_!==a&&$t(o,_,{get:()=>r[_],enumerable:!(h=B0(r,_))||h.enumerable});return o};var Dt=(o,r,a)=>(a=o!=null?M0(H0(o)):{},zn(r||!o||!o.__esModule?$t(a,"default",{value:o,enumerable:!0}):a,o)),W0=o=>zn($t({},"__esModule",{value:!0}),o);var Nr=U((os,Yt)=>{"use strict";var Ur=(()=>{var r;var o=typeof document<"u"?(r=document.currentScript)==null?void 0:r.src:void 0;return typeof __filename<"u"&&(o=o||__filename),async function(a={}){var h,_=a,m,k,S=new Promise((e,t)=>{m=e,k=t}),R=typeof window=="object",T=typeof WorkerGlobalScope<"u",A=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",F=Object.assign({},_),I=[],X="./this.program",B=(e,t)=>{throw t},M="";function re(e){return _.locateFile?_.locateFile(e,M):M+e}var ie,ge;if(A){var ce=require("fs"),Ee=require("path");M=__dirname+"/",ge=e=>{e=xt(e)?new URL(e):e;var t=ce.readFileSync(e);return t},ie=async(e,t=!0)=>{e=xt(e)?new URL(e):e;var i=ce.readFileSync(e,t?void 0:"utf8");return i},!_.thisProgram&&process.argv.length>1&&(X=process.argv[1].replace(/\\/g,"/")),I=process.argv.slice(2),B=(e,t)=>{throw process.exitCode=e,t}}else(R||T)&&(T?M=self.location.href:typeof document<"u"&&document.currentScript&&(M=document.currentScript.src),o&&(M=o),M.startsWith("blob:")?M="":M=M.slice(0,M.replace(/[?#].*/,"").lastIndexOf("/")+1),T&&(ge=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),ie=async e=>{var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw new Error(t.status+" : "+t.url)});var Q=_.print||console.log.bind(console),ae=_.printErr||console.error.bind(console);Object.assign(_,F),F=null,_.arguments&&(I=_.arguments),_.thisProgram&&(X=_.thisProgram);var K=_.wasmBinary,$,N=!1,ne;function C(e,t){e||se(t)}var V,q,ue,P,E,J,oe,Re,Me,je,_t=!1,xt=e=>e.startsWith("file://");function at(){var e=$.buffer;_.HEAP8=V=new Int8Array(e),_.HEAP16=ue=new Int16Array(e),_.HEAPU8=q=new Uint8Array(e),_.HEAPU16=P=new Uint16Array(e),_.HEAP32=E=new Int32Array(e),_.HEAPU32=J=new Uint32Array(e),_.HEAPF32=oe=new Float32Array(e),_.HEAPF64=je=new Float64Array(e),_.HEAP64=Re=new BigInt64Array(e),_.HEAPU64=Me=new BigUint64Array(e)}function Ke(){if(_.preRun)for(typeof _.preRun=="function"&&(_.preRun=[_.preRun]);_.preRun.length;)uc(_.preRun.shift());Pn(Tn)}function ee(){_t=!0,W.Xh()}function At(){}function Pr(){if(_.postRun)for(typeof _.postRun=="function"&&(_.postRun=[_.postRun]);_.postRun.length;)cc(_.postRun.shift());Pn(Dn)}var H=0,fe=null;function L(e){var t;H++,(t=_.monitorRunDependencies)==null||t.call(_,H)}function z(e){var i;if(H--,(i=_.monitorRunDependencies)==null||i.call(_,H),H==0&&fe){var t=fe;fe=null,t()}}function se(e){var i;(i=_.onAbort)==null||i.call(_,e),e="Aborted("+e+")",ae(e),N=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw k(t),t}var ke;function be(){return re("./duckdb-mvp.wasm")}function Rt(e){if(e==ke&&K)return new Uint8Array(K);if(ge)return ge(e);throw"both async and sync fetching of the wasm failed"}async function dt(e){if(!K)try{var t=await ie(e);return new Uint8Array(t)}catch{}return Rt(e)}async function ic(e,t){try{var i=await dt(e),n=await WebAssembly.instantiate(i,t);return n}catch(s){ae(`failed to asynchronously prepare wasm: ${s}`),se(s)}}async function nc(e,t,i){if(!e&&typeof WebAssembly.instantiateStreaming=="function"&&!A)try{var n=fetch(t,{credentials:"same-origin"}),s=await WebAssembly.instantiateStreaming(n,i);return s}catch(c){ae(`wasm streaming compile failed: ${c}`),ae("falling back to ArrayBuffer instantiation")}return ic(t,i)}function sc(){return{a:uf}}async function oc(){function e(c,u){return W=c.exports,W=F0(W),$=W.Wh,at(),Yn=W.Zh,z("wasm-instantiate"),W}L("wasm-instantiate");function t(c){return e(c.instance)}var i=sc();if(_.instantiateWasm)return new Promise((c,u)=>{_.instantiateWasm(i,(f,l)=>{e(f,l),c(f.exports)})});ke??(ke=be());try{var n=await nc(K,ke,i),s=t(n);return s}catch(c){return k(c),Promise.reject(c)}}var ac={10314049:(e,t,i,n)=>{var s=le(e);if(typeof XMLHttpRequest>"u")return 0;let c=new XMLHttpRequest;c.open(le(n),s,!1),c.responseType="arraybuffer";for(var u=0,w=t;u<w*2;){var f=E[i/4+u>>>0],l=E[i/4+u+1>>>0];try{var d=encodeURI(le(f));d==="Host"&&(d="X-Host-Override"),d==="User-Agent"&&(d="X-user-agent"),d==="Authorization"?c.setRequestHeader(d,le(l)):c.setRequestHeader(d,encodeURI(le(l)))}catch(Y){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",Y)}u+=2}try{c.send(null)}catch{return 0}if(c.status>=400)return 0;for(var b=c.response,w=b.byteLength,j=ze(w+4),O=new Uint8Array(b),x=0;x<w;x++)_.HEAPU8[x+j+4]=O[x];var D=new Uint8Array(4);return D[0]=w%256,w-=D[0],w/=256,D[1]=w%256,w-=D[1],w/=256,D[2]=w%256,w-=D[2],w/=256,D[3]=w%256,w-=D[3],w/=256,_.HEAPU8.set(D,j),j},10315456:(e,t,i,n,s,c)=>{var u=le(e);if(typeof XMLHttpRequest>"u")return 0;let f=new XMLHttpRequest;f.open(le(n),u,!1),f.responseType="arraybuffer";for(var l=0,D=t;l<D*2;){var d=E[i/4+l>>>0],b=E[i/4+l+1>>>0];try{var w=encodeURI(le(d));w==="Host"&&(w="X-Host-Override"),w==="User-Agent"&&(w="X-user-agent"),w==="Authorization"?f.setRequestHeader(w,le(b)):f.setRequestHeader(w,encodeURI(le(b)))}catch(Se){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",Se)}l+=2}try{for(var j=new Uint8Array(c),O=0;O<c;O++)j[O]=_.HEAPU8[O+s];f.send(j)}catch{return 0}if(f.status>=400)return 0;for(var x=Uint8Array.from(Array.from(f.getResponseHeader("Etag")).map(Se=>Se.charCodeAt(0))),D=x.byteLength,Y=ze(D+4),he=new Uint8Array(x),O=0;O<D;O++)_.HEAPU8[O+Y+4]=he[O];var Z=new Uint8Array(4);return Z[0]=D%256,D-=Z[0],D/=256,Z[1]=D%256,D-=Z[1],D/=256,Z[2]=D%256,D-=Z[2],D/=256,Z[3]=D%256,D-=Z[3],D/=256,_.HEAPU8.set(Z,Y),Y},10317076:(e,t,i,n)=>{var s=le(e);if(typeof XMLHttpRequest>"u")return 0;let c=new XMLHttpRequest;c.open(le(n),s,!1),c.responseType="arraybuffer";for(var u=0,w=t;u<w*2;){var f=E[i/4+u>>>0],l=E[i/4+u+1>>>0];try{var d=encodeURI(le(f));d==="Host"&&(d="X-Host-Override"),d==="User-Agent"&&(d="X-user-agent"),d==="Authorization"?c.setRequestHeader(d,le(l)):c.setRequestHeader(d,encodeURI(le(l)))}catch(Z){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",Z)}u+=2}try{c.send(null)}catch{return 0}if(c.status>=400)return 0;for(var b=c.response,w=b.byteLength,j=ze(w+8),O=new Uint8Array(b),x=0;x<w;x++)_.HEAPU8[x+j+8]=O[x];var D=new Uint8Array(4);D[0]=w%256,w-=D[0],w/=256,D[1]=w%256,w-=D[1],w/=256,D[2]=w%256,w-=D[2],w/=256,D[3]=w%256,w-=D[3],w/=256,_.HEAPU8.set(D,j+4);var Y=Uint8Array.from(Array.from(c.getAllResponseHeaders()).map(Z=>Z.charCodeAt(0)));w=Y.byteLength;for(var he=ze(w+8),x=0;x<w;x++)_.HEAPU8[x+he+8]=Y[x];return D=new Uint8Array(4),D[0]=w%256,w-=D[0],w/=256,D[1]=w%256,w-=D[1],w/=256,D[2]=w%256,w-=D[2],w/=256,D[3]=w%256,w-=D[3],w/=256,_.HEAPU8.set(D,he+4),w=he,D=new Uint8Array(4),D[0]=w%256,w-=D[0],w/=256,D[1]=w%256,w-=D[1],w/=256,D[2]=w%256,w-=D[2],w/=256,D[3]=w%256,w-=D[3],w/=256,_.HEAPU8.set(D,j),j},10319360:(e,t,i,n)=>{var s=le(e);if(typeof XMLHttpRequest>"u")return 0;let c=new XMLHttpRequest;c.open(le(n),s,!1),c.responseType="arraybuffer";for(var u=0,w=t;u<w*2;){var f=E[i/4+u>>>0],l=E[i/4+u+1>>>0];try{var d=encodeURI(le(f));d==="Host"&&(d="X-Host-Override"),d==="User-Agent"&&(d="X-user-agent"),d==="Authorization"?c.setRequestHeader(d,le(l)):c.setRequestHeader(d,encodeURI(le(l)))}catch(Y){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",Y)}u+=2}try{c.send(null)}catch{return 0}if(c.status>=400)return 0;for(var b=c.response,w=b.byteLength,j=ze(w+4),O=new Uint8Array(b),x=0;x<w;x++)_.HEAPU8[x+j+4]=O[x];var D=new Uint8Array(4);return D[0]=w%256,w-=D[0],w/=256,D[1]=w%256,w-=D[1],w/=256,D[2]=w%256,w-=D[2],w/=256,D[3]=w%256,w-=D[3],w/=256,_.HEAPU8.set(D,j),j},10320767:(e,t,i,n,s,c)=>{var u=le(e);if(typeof XMLHttpRequest>"u")return 0;let f=new XMLHttpRequest;f.open(le(n),u,!1),f.responseType="arraybuffer";for(var l=0,D=t;l<D*2;){var d=E[i/4+l>>>0],b=E[i/4+l+1>>>0];try{var w=encodeURI(le(d));w==="Host"&&(w="X-Host-Override"),w==="User-Agent"&&(w="X-user-agent"),w==="Authorization"?f.setRequestHeader(w,le(b)):f.setRequestHeader(w,encodeURI(le(b)))}catch(Se){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",Se)}l+=2}try{for(var j=new Uint8Array(c),O=0;O<c;O++)j[O]=_.HEAPU8[O+s];f.send(j)}catch{return 0}if(f.status>=400)return 0;for(var x=f.response,D=x.byteLength,Y=ze(D+4),he=new Uint8Array(x),O=0;O<D;O++)_.HEAPU8[O+Y+4]=he[O];var Z=new Uint8Array(4);return Z[0]=D%256,D-=Z[0],D/=256,Z[1]=D%256,D-=Z[1],D/=256,Z[2]=D%256,D-=Z[2],D/=256,Z[3]=D%256,D-=Z[3],D/=256,_.HEAPU8.set(Z,Y),Y}};class jn{name="ExitStatus";constructor(t){this.message=`Program terminated with exit(${t})`,this.status=t}}var Pn=e=>{for(;e.length>0;)e.shift()(_)},Dn=[],cc=e=>Dn.unshift(e),Tn=[],uc=e=>Tn.unshift(e),fc=_.noExitRuntime||!0,p=e=>_f(e),v=()=>pf(),Ye=[],Mt=0,lc=9007199254740992,hc=-9007199254740992,Je=e=>e<hc||e>lc?NaN:Number(e);function _c(e){e>>>=0;var t=new Bt(e);return t.get_caught()||(t.set_caught(!0),Mt--),t.set_rethrown(!1),Ye.push(t),Jn(e),yf(e)}function dc(){if(!Ye.length)return 0;var e=Ye[Ye.length-1];return Jn(e.excPtr),e.excPtr}var Ve=0,pc=()=>{g(0,0);var e=Ye.pop();vf(e.excPtr),Ve=0};class Bt{constructor(t){this.excPtr=t,this.ptr=t-24}set_type(t){J[this.ptr+4>>>2>>>0]=t}get_type(){return J[this.ptr+4>>>2>>>0]}set_destructor(t){J[this.ptr+8>>>2>>>0]=t}get_destructor(){return J[this.ptr+8>>>2>>>0]}set_caught(t){t=t?1:0,V[this.ptr+12>>>0]=t}get_caught(){return V[this.ptr+12>>>0]!=0}set_rethrown(t){t=t?1:0,V[this.ptr+13>>>0]=t}get_rethrown(){return V[this.ptr+13>>>0]!=0}init(t,i){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(i)}set_adjusted_ptr(t){J[this.ptr+16>>>2>>>0]=t}get_adjusted_ptr(){return J[this.ptr+16>>>2>>>0]}}function vc(e){throw e>>>=0,Ve||(Ve=e),Ve}var jt=e=>lf(e),Lt=e=>{var t=Ve;if(!t)return jt(0),0;var i=new Bt(t);i.set_adjusted_ptr(t);var n=i.get_type();if(!n)return jt(0),t;for(var s of e){if(s===0||s===n)break;var c=i.ptr+16;if(gf(s,n,c))return jt(s),t}return jt(n),t};function gc(){return Lt([])}function yc(e){return e>>>=0,Lt([e])}function bc(e,t){return e>>>=0,t>>>=0,Lt([e,t])}function mc(e,t,i){return e>>>=0,t>>>=0,i>>>=0,Lt([e,t,i])}var In=()=>{var e=Ye.pop();e||se("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(Ye.push(e),e.set_rethrown(!0),e.set_caught(!1),Mt++),Ve=t,Ve};function wc(e){if(e>>>=0,!!e){var t=new Bt(e);Ye.push(t),t.set_rethrown(!0),In()}}function kc(e,t,i){e>>>=0,t>>>=0,i>>>=0;var n=new Bt(e);throw n.init(t,i),Ve=e,Mt++,Ve}var Sc=()=>Mt;function Cn(){se("missing function: $SOCKFS")}Cn.stub=!0;function Dr(){se("missing function: $FS")}Dr.stub=!0;var pt=e=>{var t=Cn.getSocket(e);if(!t)throw new Dr.ErrnoError(8);return t},Tr=e=>(e&255)+"."+(e>>8&255)+"."+(e>>16&255)+"."+(e>>24&255),On=e=>{var t="",i=0,n=0,s=0,c=0,u=0,f=0,l=[e[0]&65535,e[0]>>16,e[1]&65535,e[1]>>16,e[2]&65535,e[2]>>16,e[3]&65535,e[3]>>16],d=!0,b="";for(f=0;f<5;f++)if(l[f]!==0){d=!1;break}if(d){if(b=Tr(l[6]|l[7]<<16),l[5]===-1)return t="::ffff:",t+=b,t;if(l[5]===0)return t="::",b==="0.0.0.0"&&(b=""),b==="0.0.0.1"&&(b="1"),t+=b,t}for(i=0;i<8;i++)l[i]===0&&(i-s>1&&(u=0),s=i,u++),u>n&&(n=u,c=i-n+1);for(i=0;i<8;i++){if(n>1&&l[i]===0&&i>=c&&i<c+n){i===c&&(t+=":",c===0&&(t+=":"));continue}t+=Number(_ntohs(l[i]&65535)).toString(16),t+=i<7?":":""}return t},Fn=(e,t)=>{var i=ue[e>>>1>>>0],n=_ntohs(P[e+2>>>1>>>0]),s;switch(i){case 2:if(t!==16)return{errno:28};s=E[e+4>>>2>>>0],s=Tr(s);break;case 10:if(t!==28)return{errno:28};s=[E[e+8>>>2>>>0],E[e+12>>>2>>>0],E[e+16>>>2>>>0],E[e+20>>>2>>>0]],s=On(s);break;default:return{errno:5}}return{family:i,addr:s,port:n}},Ht=e=>{for(var t=e.split("."),i=0;i<4;i++){var n=Number(t[i]);if(isNaN(n))return null;t[i]=n}return(t[0]|t[1]<<8|t[2]<<16|t[3]<<24)>>>0},Ut=e=>parseInt(e),Ir=e=>{var t,i,n,s,c=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,u=[];if(!c.test(e))return null;if(e==="::")return[0,0,0,0,0,0,0,0];for(e.startsWith("::")?e=e.replace("::","Z:"):e=e.replace("::",":Z:"),e.indexOf(".")>0?(e=e.replace(new RegExp("[.]","g"),":"),t=e.split(":"),t[t.length-4]=Ut(t[t.length-4])+Ut(t[t.length-3])*256,t[t.length-3]=Ut(t[t.length-2])+Ut(t[t.length-1])*256,t=t.slice(0,t.length-2)):t=e.split(":"),n=0,s=0,i=0;i<t.length;i++)if(typeof t[i]=="string")if(t[i]==="Z"){for(s=0;s<8-t.length+1;s++)u[i+s]=0;n=s-1}else u[i+n]=_htons(parseInt(t[i],16));else u[i+n]=t[i];return[u[1]<<16|u[0],u[3]<<16|u[2],u[5]<<16|u[4],u[7]<<16|u[6]]},Oe={address_map:{id:1,addrs:{},names:{}},lookup_name(e){var t=Ht(e);if(t!==null||(t=Ir(e),t!==null))return e;var i;if(Oe.address_map.addrs[e])i=Oe.address_map.addrs[e];else{var n=Oe.address_map.id++;C(n<65535,"exceeded max address mappings of 65535"),i="172.29."+(n&255)+"."+(n&65280),Oe.address_map.names[i]=e,Oe.address_map.addrs[e]=i}return i},lookup_addr(e){return Oe.address_map.names[e]?Oe.address_map.names[e]:null}},xn=(e,t)=>{var i=Fn(e,t);if(i.errno)throw new Dr.ErrnoError(i.errno);return i.addr=Oe.lookup_addr(i.addr)||i.addr,i};function Ec(e,t,i,n,s,c){t>>>=0,i>>>=0;var u=pt(e),f=xn(t,i);return u.sock_ops.bind(u,f.addr,f.port),0}function Ac(e,t,i,n,s,c){t>>>=0,i>>>=0;var u=pt(e),f=xn(t,i);return u.sock_ops.connect(u,f.addr,f.port),0}var Rc=(e,t,i)=>{};function jc(e,t,i,n){t>>>=0}var Mn=typeof TextDecoder<"u"?new TextDecoder:void 0,Bn=(e,t=0,i=NaN)=>{t>>>=0;for(var n=t+i,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.buffer&&Mn)return Mn.decode(e.subarray(t,s));for(var c="";t<s;){var u=e[t++];if(!(u&128)){c+=String.fromCharCode(u);continue}var f=e[t++]&63;if((u&224)==192){c+=String.fromCharCode((u&31)<<6|f);continue}var l=e[t++]&63;if((u&240)==224?u=(u&15)<<12|f<<6|l:u=(u&7)<<18|f<<12|l<<6|e[t++]&63,u<65536)c+=String.fromCharCode(u);else{var d=u-65536;c+=String.fromCharCode(55296|d>>10,56320|d&1023)}}return c},le=(e,t)=>(e>>>=0,e?Bn(q,e,t):""),Cr={varargs:void 0,getStr(e){var t=le(e);return t}};function Pc(e,t,i){return i>>>=0,Cr.varargs=i,0}function Dc(e,t){t>>>=0}function Tc(e,t){t=Je(t)}var Ln=e=>{for(var t=0,i=0;i<e.length;++i){var n=e.charCodeAt(i);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++i):t+=3}return t};_.lengthBytesUTF8=Ln;var Ic=(e,t,i,n)=>{if(i>>>=0,!(n>0))return 0;for(var s=i,c=i+n-1,u=0;u<e.length;++u){var f=e.charCodeAt(u);if(f>=55296&&f<=57343){var l=e.charCodeAt(++u);f=65536+((f&1023)<<10)|l&1023}if(f<=127){if(i>=c)break;t[i++>>>0]=f}else if(f<=2047){if(i+1>=c)break;t[i++>>>0]=192|f>>6,t[i++>>>0]=128|f&63}else if(f<=65535){if(i+2>=c)break;t[i++>>>0]=224|f>>12,t[i++>>>0]=128|f>>6&63,t[i++>>>0]=128|f&63}else{if(i+3>=c)break;t[i++>>>0]=240|f>>18,t[i++>>>0]=128|f>>12&63,t[i++>>>0]=128|f>>6&63,t[i++>>>0]=128|f&63}}return t[i>>>0]=0,i-s},Ze=(e,t,i)=>Ic(e,q,t,i);_.stringToUTF8=Ze;function Cc(e,t){e>>>=0,t>>>=0}function Oc(e,t,i){t>>>=0,i>>>=0}var Hn=(e,t)=>{q.fill(0,e,e+t)},Nt=(e,t,i,n,s)=>{switch(t){case 2:i=Ht(i),Hn(e,16),s&&(E[s>>>2>>>0]=16),ue[e>>>1>>>0]=t,E[e+4>>>2>>>0]=i,ue[e+2>>>1>>>0]=_htons(n);break;case 10:i=Ir(i),Hn(e,28),s&&(E[s>>>2>>>0]=28),E[e>>>2>>>0]=t,E[e+8>>>2>>>0]=i[0],E[e+12>>>2>>>0]=i[1],E[e+16>>>2>>>0]=i[2],E[e+20>>>2>>>0]=i[3],ue[e+2>>>1>>>0]=_htons(n);break;default:return 5}return 0};function Fc(e,t,i,n,s,c){t>>>=0,i>>>=0;var u=pt(e);if(!u.daddr)return-53;var f=Nt(t,u.family,Oe.lookup_name(u.daddr),u.dport,i);return 0}function xc(e,t,i,n,s,c){t>>>=0,i>>>=0;var u=pt(e),f=Nt(t,u.family,Oe.lookup_name(u.saddr||"0.0.0.0"),u.sport,i);return 0}function Mc(e,t,i,n,s,c){n>>>=0,s>>>=0;var u=pt(e);return t===1&&i===4?(E[n>>>2>>>0]=u.error,E[s>>>2>>>0]=4,u.error=null,0):-50}function Bc(e,t,i){return i>>>=0,Cr.varargs=i,0}function Lc(e,t){e>>>=0,t>>>=0}function Hc(e,t,i){t>>>=0}function Uc(e,t,i,n){t>>>=0,i>>>=0}function Nc(e,t,i,n){t>>>=0,n>>>=0,Cr.varargs=n}function Wc(e,t,i){e>>>=0}function $c(e,t,i,n,s,c){t>>>=0,i>>>=0,s>>>=0,c>>>=0;var u=pt(e),f=u.sock_ops.recvmsg(u,i);if(!f)return 0;if(s)var l=Nt(s,u.family,Oe.lookup_name(f.addr),f.port,c);return q.set(f.buffer,t>>>0),f.buffer.byteLength}function qc(e,t,i,n){t>>>=0,n>>>=0}function Gc(e){e>>>=0}function Kc(e,t,i,n,s,c){t>>>=0,i>>>=0,s>>>=0,c>>>=0}var Vc=(e,t,i)=>{};function Xc(e,t){e>>>=0,t>>>=0}function Qc(e,t,i){e>>>=0,t>>>=0,i>>>=0}function Yc(e,t,i){t>>>=0}var Jc=()=>se(""),Zc=()=>{throw 1/0};function Un(){se("missing function: _emval_call_method")}Un.stub=!0;function Nn(){se("missing function: _emval_decref")}Nn.stub=!0;function Wn(){se("missing function: _emval_get_global")}Wn.stub=!0;function $n(){se("missing function: _emval_get_method_caller")}$n.stub=!0;function qn(){se("missing function: _emval_run_destructors")}qn.stub=!0;var zc=e=>e%4===0&&(e%100!==0||e%400===0),eu=[0,31,60,91,121,152,182,213,244,274,305,335],tu=[0,31,59,90,120,151,181,212,243,273,304,334],ru=e=>{var t=zc(e.getFullYear()),i=t?eu:tu,n=i[e.getMonth()]+e.getDate()-1;return n};function iu(e,t){e=Je(e),t>>>=0;var i=new Date(e*1e3);E[t>>>2>>>0]=i.getSeconds(),E[t+4>>>2>>>0]=i.getMinutes(),E[t+8>>>2>>>0]=i.getHours(),E[t+12>>>2>>>0]=i.getDate(),E[t+16>>>2>>>0]=i.getMonth(),E[t+20>>>2>>>0]=i.getFullYear()-1900,E[t+24>>>2>>>0]=i.getDay();var n=ru(i)|0;E[t+28>>>2>>>0]=n,E[t+36>>>2>>>0]=-(i.getTimezoneOffset()*60);var s=new Date(i.getFullYear(),0,1),c=new Date(i.getFullYear(),6,1).getTimezoneOffset(),u=s.getTimezoneOffset(),f=(c!=u&&i.getTimezoneOffset()==Math.min(u,c))|0;E[t+32>>>2>>>0]=f}function nu(e,t,i,n,s,c,u){return e>>>=0,s=Je(s),c>>>=0,u>>>=0,-52}function su(e,t,i,n,s,c){e>>>=0,t>>>=0,c=Je(c)}var ou=function(e,t,i,n){e>>>=0,t>>>=0,i>>>=0,n>>>=0;var s=new Date().getFullYear(),c=new Date(s,0,1),u=new Date(s,6,1),f=c.getTimezoneOffset(),l=u.getTimezoneOffset(),d=Math.max(f,l);J[e>>>2>>>0]=d*60,E[t>>>2>>>0]=+(f!=l);var b=O=>{var x=O>=0?"-":"+",D=Math.abs(O),Y=String(Math.floor(D/60)).padStart(2,"0"),he=String(D%60).padStart(2,"0");return`UTC${x}${Y}${he}`},w=b(f),j=b(l);l<f?(Ze(w,i,17),Ze(j,n,17)):(Ze(w,n,17),Ze(j,i,17))},Gn=()=>performance.now(),Kn=()=>Date.now(),au=1,cu=e=>e>=0&&e<=3;function uu(e,t,i){if(t=Je(t),i>>>=0,!cu(e))return 28;var n;if(e===0)n=Kn();else if(au)n=Gn();else return 52;var s=Math.round(n*1e3*1e3);return Re[i>>>3]=BigInt(s),0}function fu(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.createDirectory(_,e,t)}function lu(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkDirectory(_,e,t)}function hu(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.listDirectoryEntries(_,e,t)}function _u(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.removeDirectory(_,e,t)}function du(e){return globalThis.DUCKDB_RUNTIME.closeFile(_,e)}function pu(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.dropFile(_,e,t)}function vu(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkFile(_,e,t)}function gu(e,t,i,n){return e>>>=0,i>>>=0,globalThis.DUCKDB_RUNTIME.moveFile(_,e,t,i,n)}function yu(e,t){return globalThis.DUCKDB_RUNTIME.openFile(_,e,t)}function bu(e,t,i,n){return t>>>=0,globalThis.DUCKDB_RUNTIME.readFile(_,e,t,i,n)}function mu(e,t){return globalThis.DUCKDB_RUNTIME.truncateFile(_,e,t)}function wu(e,t,i,n){return t>>>=0,globalThis.DUCKDB_RUNTIME.writeFile(_,e,t,i,n)}function ku(e){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(e)}function Su(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.glob(_,e,t)}function Eu(e){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(_,e)}function Au(e,t,i,n,s,c){return e>>>=0,i>>>=0,s>>>=0,globalThis.DUCKDB_RUNTIME.callScalarUDF(_,e,t,i,n,s,c)}var Or=[],Ru=(e,t)=>{Or.length=0;for(var i;i=q[e++>>>0];){var n=i!=105;n&=i!=112,t+=n&&t%8?4:0,Or.push(i==112?J[t>>>2>>>0]:i==106?Re[t>>>3]:i==105?E[t>>>2>>>0]:je[t>>>3>>>0]),t+=n?8:4}return Or},ju=(e,t,i)=>{var n=Ru(t,i);return ac[e](...n)};function Pu(e,t,i){return e>>>=0,t>>>=0,i>>>=0,ju(e,t,i)}var Vn=()=>4294901760;function Du(){return Vn()}var Tu=(e,t)=>Math.ceil(e/t)*t,Iu=e=>{var t=$.buffer,i=(e-t.byteLength+65535)/65536|0;try{return $.grow(i),at(),1}catch{}};function Cu(e){e>>>=0;var t=q.length,i=Vn();if(e>i)return!1;for(var n=1;n<=4;n*=2){var s=t*(1+.2/n);s=Math.min(s,e+100663296);var c=Math.min(i,Tu(Math.max(e,s),65536)),u=Iu(c);if(u)return!0}return!1}var Fr={},Ou=()=>X||"./this.program",Pt=()=>{if(!Pt.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:Ou()};for(var i in Fr)Fr[i]===void 0?delete t[i]:t[i]=Fr[i];var n=[];for(var i in t)n.push(`${i}=${t[i]}`);Pt.strings=n}return Pt.strings},Fu=(e,t)=>{for(var i=0;i<e.length;++i)V[t++>>>0]=e.charCodeAt(i);V[t>>>0]=0},xu=function(e,t){e>>>=0,t>>>=0;var i=0;return Pt().forEach((n,s)=>{var c=t+i;J[e+s*4>>>2>>>0]=c,Fu(n,c),i+=n.length+1}),0},Mu=function(e,t){e>>>=0,t>>>=0;var i=Pt();J[e>>>2>>>0]=i.length;var n=0;return i.forEach(s=>n+=s.length+1),J[t>>>2>>>0]=n,0},Bu=0,Lu=()=>fc||Bu>0,Hu=e=>{var t;ne=e,Lu()||((t=_.onExit)==null||t.call(_,e),N=!0),B(e,new jn(e))},Xn=(e,t)=>{ne=e,Hu(e)},Uu=Xn,Nu=e=>52;function Wu(e,t){t>>>=0;var i=0,n=0,s=0;{var c=2;e==0?i=2:(e==1||e==2)&&(i=64),s=1}return V[t>>>0]=c,ue[t+2>>>1>>>0]=s,Re[t+8>>>3]=BigInt(i),Re[t+16>>>3]=BigInt(n),0}function $u(e,t,i,n,s){return t>>>=0,i>>>=0,n=Je(n),s>>>=0,52}function qu(e,t,i,n,s){return t>>>=0,i>>>=0,n=Je(n),s>>>=0,52}function Gu(e,t,i,n){return t>>>=0,i>>>=0,n>>>=0,52}function Ku(e,t,i,n){return t=Je(t),n>>>=0,70}var Vu=e=>52,Xu=[null,[],[]],Qu=(e,t)=>{var i=Xu[e];t===0||t===10?((e===1?Q:ae)(Bn(i)),i.length=0):i.push(t)};function Yu(e,t,i,n){t>>>=0,i>>>=0,n>>>=0;for(var s=0,c=0;c<i;c++){var u=J[t>>>2>>>0],f=J[t+4>>>2>>>0];t+=8;for(var l=0;l<f;l++)Qu(e,q[u+l>>>0]);s+=f}return J[n>>>2>>>0]=s,0}function Ju(e,t,i,n){e>>>=0,t>>>=0,i>>>=0,n>>>=0;var s=0,c=0,u=0,f=0,l=0,d=0,b;function w(j,O,x,D,Y,he){var Z,Se,Ie,Zn;return Se=j===10?28:16,Y=j===10?On(Y):Tr(Y),Z=ze(Se),Zn=Nt(Z,j,Y,he),C(!Zn),Ie=ze(32),E[Ie+4>>>2>>>0]=j,E[Ie+8>>>2>>>0]=O,E[Ie+12>>>2>>>0]=x,J[Ie+24>>>2>>>0]=D,J[Ie+20>>>2>>>0]=Z,j===10?E[Ie+16>>>2>>>0]=28:E[Ie+16>>>2>>>0]=16,E[Ie+28>>>2>>>0]=0,Ie}if(i&&(u=E[i>>>2>>>0],f=E[i+4>>>2>>>0],l=E[i+8>>>2>>>0],d=E[i+12>>>2>>>0]),l&&!d&&(d=l===2?17:6),!l&&d&&(l=d===17?2:1),d===0&&(d=6),l===0&&(l=1),!e&&!t)return-2;if(u&-1088||i!==0&&E[i>>>2>>>0]&2&&!e)return-1;if(u&32)return-2;if(l!==0&&l!==1&&l!==2)return-7;if(f!==0&&f!==2&&f!==10)return-6;if(t&&(t=le(t),c=parseInt(t,10),isNaN(c)))return u&1024?-2:-8;if(!e)return f===0&&(f=2),(u&1)===0&&(f===2?s=_htonl(2130706433):s=[0,0,0,_htonl(1)]),b=w(f,l,d,null,s,c),J[n>>>2>>>0]=b,0;if(e=le(e),s=Ht(e),s!==null)if(f===0||f===2)f=2;else if(f===10&&u&8)s=[0,0,_htonl(65535),s],f=10;else return-2;else if(s=Ir(e),s!==null)if(f===0||f===10)f=10;else return-2;return s!=null?(b=w(f,l,d,e,s,c),J[n>>>2>>>0]=b,0):u&4?-2:(e=Oe.lookup_name(e),s=Ht(e),f===0?f=2:f===10&&(s=[0,0,_htonl(65535),s]),b=w(f,l,d,null,s,c),J[n>>>2>>>0]=b,0)}function Zu(e,t,i,n,s,c,u){e>>>=0,i>>>=0,s>>>=0;var f=Fn(e,t);if(f.errno)return-6;var l=f.port,d=f.addr,b=!1;if(i&&n){var w;if(u&1||!(w=Oe.lookup_addr(d))){if(u&8)return-2}else d=w;var j=Ze(d,i,n);j+1>=n&&(b=!0)}if(s&&c){l=""+l;var j=Ze(l,s,c);j+1>=c&&(b=!0)}return b?-12:0}function zu(e){return e>>>=0,e}var ef=()=>{if(A){var e=["crypto"].map(require)[0];return t=>e.randomFillSync(t)}return t=>crypto.getRandomValues(t)},Qn=e=>{(Qn=ef())(e)};function tf(e,t){return e>>>=0,t>>>=0,Qn(q.subarray(e>>>0,e+t>>>0)),0}var rf=e=>{if(e instanceof jn||e=="unwind")return ne;B(1,e)},Yn,y=e=>Yn.get(e),nf=e=>{var t=_["_"+e];return t},sf=(e,t)=>{V.set(e,t>>>0)},Wt=e=>df(e);_.stackAlloc=Wt;var of=e=>{var t=Ln(e)+1,i=Wt(t);return Ze(e,i,t),i},af=(e,t,i,n,s)=>{var c={string:x=>{var D=0;return x!=null&&x!==0&&(D=of(x)),D},array:x=>{var D=Wt(x.length);return sf(x,D),D}};function u(x){return t==="string"?le(x):t==="boolean"?!!x:x}var f=nf(e),l=[],d=0;if(n)for(var b=0;b<n.length;b++){var w=c[i[b]];w?(d===0&&(d=v()),l[b]=w(n[b])):l[b]=n[b]}var j=f(...l);function O(x){return d!==0&&p(d),u(x)}return j=O(j),j},cf=e=>hf(),uf={z:_c,Bf:dc,D:pc,a:gc,m:yc,ha:bc,qc:mc,ye:In,sf:wc,B:kc,La:Sc,d:vc,Th:Ec,Sh:Ac,yf:Rc,Bg:jc,yb:Pc,Ag:Dc,ug:Tc,Cg:Cc,sg:Oc,Nh:Fc,Mh:xc,Qh:Mc,Gd:Bc,xg:Lc,tg:Hc,yg:Uc,ne:Nc,Rh:Wc,Oh:$c,qg:qc,Ee:Gc,Ph:Kc,mf:Vc,zg:Xc,Dg:Qc,Fe:Yc,eh:Jc,zf:Zc,vf:Un,wf:Nn,xf:Wn,uf:$n,tf:qn,og:iu,hg:nu,jg:su,ig:ou,qf:uu,Wf:fu,Xf:lu,Uf:hu,Vf:_u,ze:du,_f:pu,Sf:vu,Tf:gu,Zf:yu,$c:bu,Yf:mu,Md:wu,$f:ku,Rf:Su,xe:Eu,ag:Au,Hc:Pu,te:Kn,rf:Du,he:Gn,Ch:Cu,Fg:xu,Mg:Mu,vb:Uu,vc:Nu,qh:Wu,wg:$u,vg:qu,Pe:Gu,ih:Ku,rg:Vu,rd:Yu,Uh:Ju,kf:Zu,Xa:v0,Ga:dh,Xc:ph,pa:_l,Ze:$_,Db:v_,se:p0,je:Pf,pe:A0,gc:rv,Kb:b_,Hf:m0,pb:k_,Ac:I_,kb:zp,ue:d0,hd:tv,ff:Xh,qb:__,Vb:p_,$e:F_,zc:O_,xb:hl,lf:jf,bd:Vv,fb:Zp,rb:h_,Wb:d_,u:Lf,Na:Ql,mg:mv,kg:Sv,ub:R_,Zc:kl,ed:Ev,db:vh,ng:bv,lg:kv,Jb:wv,c:Of,Ia:C_,Be:Mv,fa:W_,Kc:Wv,fc:$v,Kg:uv,Rd:Dv,nc:qv,b:bf,Mb:Hl,Kd:S0,Te:Bd,g:Sf,Dh:S_,Jd:R0,Id:j0,l:Af,oe:Vf,Gf:w0,ec:E0,t:mf,Ng:iv,F:Uf,I:xf,ma:Cl,bb:Il,Ab:Mf,oc:Nf,G:Bf,Y:yl,Ef:P0,Gb:Zl,P:Jl,We:Sd,Se:Hd,Jf:l0,Qe:Nd,ph:Fd,Ve:jd,gf:Nh,Re:Ud,_d:yd,yd:Pd,wh:hd,Zd:kd,Vc:Uh,xd:Ld,uc:Ed,nf:_h,ka:ql,xc:nd,ge:l_,$d:cd,hh:rp,Me:gp,O:Kf,Za:Yh,Yc:Yl,Fd:Tl,Ye:id,vh:pd,th:Td,Nb:Xf,nh:Wd,mh:$d,Ke:jp,E:rl,Ja:qh,sb:$h,Rc:vd,lh:qd,kh:Gd,ic:Yd,Mf:c0,ga:xl,Rb:Ad,nb:bp,hf:Hh,lc:Al,Nf:a0,Ob:t0,w:Jf,A:pl,za:Bl,Ea:Xp,ve:h0,Nd:Xv,cg:Yv,Ie:Up,Qd:Ov,De:Tv,Ib:Fv,gb:ed,Gh:Jh,C:Yf,ib:z_,Le:mp,of:oh,Ue:xd,_g:yp,cb:Kl,He:Wp,ae:od,Zg:kp,zd:ad,dh:up,p:el,Ic:o0,W:vl,ca:Ol,Da:gl,cc:th,ce:J_,ud:Jd,dg:Qv,Od:Nv,jd:Jp,Kh:Mh,Ha:wl,Gc:ah,Pc:Hp,ke:sh,Xe:bd,Ig:hv,Jg:lv,Fb:Sh,Q:Rl,Ua:Dh,ba:x_,ee:D_,rc:np,me:Sl,Vh:fh,ea:bl,Va:ll,Wa:fl,n:zf,T:nl,sa:Wh,ya:Rf,eb:eh,Sc:dd,rh:Cd,Ge:fv,ob:ld,Ca:cv,Pa:xh,Ec:Lh,fd:av,Nc:nv,Je:xp,R:lh,ah:_p,Xb:Gh,qa:Ah,Bd:s_,qd:pp,Ad:sd,Yd:Dd,ia:L_,Z:vp,wc:gd,zb:yv,gd:ov,$a:gv,$g:dp,Qb:Od,Lg:sv,da:ml,od:Bp,Ld:Zv,lb:y_,dc:El,Pf:r0,Df:I0,Xg:Rp,Hh:Vh,bg:Jv,_c:T0,K:sl,wb:kh,ja:P_,Hd:D0,ua:gh,jf:wh,U:B_,ac:mh,_e:U_,k:wf,Cf:C0,If:g0,re:y0,h:Ff,aa:Ul,af:g_,ab:K_,cd:Kv,qe:b0,Af:O0,la:G_,Cb:q_,dd:Gv,e:kf,Bc:If,Jh:Tf,f:Ef,Ed:Nl,Ff:k0,md:Vp,nd:Kp,j:Df,r:il,s:qf,_:Hf,H:$l,Qa:wd,ta:Wf,Hb:dl,Oe:zd,Tc:j_,ad:$f,Eg:pv,pf:nh,fh:ap,Sa:Oh,Pg:Lp,Gg:dv,Wg:Pp,Ne:op,Jc:s0,jb:Ch,Sb:_d,Fc:hh,M:m_,Wd:cp,Dd:Wl,Hg:_v,Sd:jv,S:tl,va:Ih,gh:sp,Pd:Bv,Ah:X_,Bh:V_,Ya:Bh,td:tp,Vg:Dp,Lf:u0,cf:a_,na:Ml,Ud:Mp,Ra:f_,bf:c_,_a:zv,ld:Qp,Kf:f0,x:al,bc:uh,mc:_0,L:ul,xa:jl,hb:rd,Td:Np,Qg:Fp,Fh:r_,Eh:u_,Cd:n_,Qc:hp,jc:td,Ih:Kh,Dc:Zh,fg:xv,N:Zf,Zb:Pl,hc:wp,tc:Rd,Rg:Op,Cc:zh,oh:Md,Lb:Vl,Oc:Gp,Sg:Cp,yh:ud,Wc:Ph,Xd:Vd,Tg:Ip,xh:fd,Ug:Tp,q:Qf,id:ev,J:Fl,Ta:Gf,wa:rh,sd:ip,y:yh,pd:Sp,Eb:t_,Yg:Ep,gg:Iv,mb:Pv,Bb:ep,Aa:Eh,Ae:Lv,$b:o_,df:i_,Pb:$p,sc:Qd,wd:Kd,Ba:Rv,V:Cf,Fa:Rh,sh:Id,jh:Zd,Ma:Fh,ie:Th,Qf:e0,vd:Xd,ch:fp,o:ol,i:cl,$:zl,oa:ih,Yb:Dl,zh:Q_,yc:Y_,we:i0,Of:n0,eg:Hv,Vd:Ap,Ce:Cv,kd:Yp,kc:T_,fe:E_,uh:md,Uc:e_,Lh:jh,ef:Qh,pc:Av,ra:Gl,v:ch,Lc:Uv,_b:A_,Oa:w_,Tb:N_,Ka:Ll,Mc:vv,Ub:M_,tb:bh,be:Z_,de:H_,Og:qp,le:Xl,bh:lp,X:zu,pg:tf},W=await oc(),ff=_._main=W.Yh,Zm=_._duckdb_web_fs_glob_add_path=W._h,zm=_._duckdb_web_clear_response=W.$h,ew=_._duckdb_web_fail_with=W.ai,tw=_._duckdb_web_reset=W.bi,rw=_._duckdb_web_connect=W.ci,iw=_._duckdb_web_disconnect=W.di,nw=_._duckdb_web_flush_files=W.ei,sw=_._duckdb_web_flush_file=W.fi,ow=_._duckdb_web_open=W.gi,aw=_._duckdb_web_get_global_file_info=W.hi,cw=_._duckdb_web_collect_file_stats=W.ii,uw=_._duckdb_web_export_file_stats=W.ji,fw=_._duckdb_web_fs_drop_file=W.ki,lw=_._duckdb_web_fs_drop_files=W.li,hw=_._duckdb_web_fs_glob_file_infos=W.mi,_w=_._duckdb_web_fs_get_file_info_by_id=W.ni,dw=_._duckdb_web_fs_get_file_info_by_name=W.oi,pw=_._duckdb_web_fs_register_file_url=W.pi,vw=_._duckdb_web_fs_register_file_buffer=W.qi,gw=_._duckdb_web_copy_file_to_buffer=W.ri,yw=_._duckdb_web_copy_file_to_path=W.si,bw=_._duckdb_web_get_version=W.ti,mw=_._duckdb_web_get_feature_flags=W.ui,ww=_._duckdb_web_tokenize=W.vi,kw=_._duckdb_web_tokenize_buffer=W.wi,Sw=_._duckdb_web_udf_scalar_create=W.xi,Ew=_._duckdb_web_prepared_create=W.yi,Aw=_._duckdb_web_prepared_create_buffer=W.zi,Rw=_._duckdb_web_prepared_close=W.Ai,jw=_._duckdb_web_prepared_run=W.Bi,Pw=_._duckdb_web_prepared_send=W.Ci,Dw=_._duckdb_web_query_run=W.Di,Tw=_._duckdb_web_query_run_buffer=W.Ei,Iw=_._duckdb_web_pending_query_start=W.Fi,Cw=_._duckdb_web_pending_query_start_buffer=W.Gi,Ow=_._duckdb_web_pending_query_poll=W.Hi,Fw=_._duckdb_web_pending_query_cancel=W.Ii,xw=_._duckdb_web_query_fetch_results=W.Ji,Mw=_._duckdb_web_get_tablenames=W.Ki,Bw=_._duckdb_web_get_tablenames_buffer=W.Li,Lw=_._duckdb_web_insert_arrow_from_ipc_stream=W.Mi,Hw=_._duckdb_web_insert_csv_from_path=W.Ni,Uw=_._duckdb_web_insert_json_from_path=W.Oi,ze=_._malloc=W.Si,Nw=_._free=W.Ti,Ww=_._calloc=W.Ui,g=W.Vi,lf=W.Wi,hf=W.Xi,_f=W.Yi,df=W.Zi,pf=W._i,Jn=W.$i,vf=W.aj,gf=W.bj,yf=W.cj;function bf(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function mf(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function wf(e){var t=v();try{y(e)()}catch(i){if(p(t),i!==i+0)throw i;g(1,0)}}function kf(e,t,i){var n=v();try{y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function Sf(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function Ef(e,t,i,n){var s=v();try{y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function Af(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Rf(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;return g(1,0),0n}}function jf(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function Pf(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function Df(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Tf(e,t,i,n){var s=v();try{y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function If(e,t,i,n){var s=v();try{y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function Cf(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Of(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;g(1,0)}}function Ff(e,t){var i=v();try{y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;g(1,0)}}function xf(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Mf(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function Bf(e,t,i,n,s,c,u,f,l,d,b,w,j){var O=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j)}catch(x){if(p(O),x!==x+0)throw x;g(1,0)}}function Lf(e){var t=v();try{return y(e)()}catch(i){if(p(t),i!==i+0)throw i;g(1,0)}}function Hf(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Uf(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Nf(e,t,i,n,s,c,u,f,l,d,b,w){var j=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w)}catch(O){if(p(j),O!==O+0)throw O;g(1,0)}}function Wf(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function $f(e,t,i,n,s,c,u,f,l,d,b,w,j,O,x,D){var Y=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O,x,D)}catch(he){if(p(Y),he!==he+0)throw he;g(1,0)}}function qf(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Gf(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Kf(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Vf(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Xf(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Qf(e,t,i,n){var s=v();try{y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function Yf(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Jf(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function Zf(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function zf(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;return g(1,0),0n}}function el(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function tl(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function rl(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function il(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function nl(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;return g(1,0),0n}}function sl(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;return g(1,0),0n}}function ol(e,t,i){var n=v();try{y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function al(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function cl(e,t,i,n){var s=v();try{y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function ul(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function fl(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;return g(1,0),0n}}function ll(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;return g(1,0),0n}}function hl(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;g(1,0)}}function _l(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;g(1,0)}}function dl(e,t,i,n,s,c,u,f,l,d,b,w){var j=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w)}catch(O){if(p(j),O!==O+0)throw O;g(1,0)}}function pl(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function vl(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function gl(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function yl(e,t,i,n,s,c,u,f,l,d,b,w,j,O){var x=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O)}catch(D){if(p(x),D!==D+0)throw D;g(1,0)}}function bl(e){var t=v();try{return y(e)()}catch(i){if(p(t),i!==i+0)throw i;return g(1,0),0n}}function ml(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;return g(1,0),0n}}function wl(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function kl(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Sl(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function El(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;return g(1,0),0n}}function Al(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Rl(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;g(1,0)}}function jl(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Pl(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Dl(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Tl(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Il(e,t,i,n,s,c,u,f,l,d){var b=v();try{return y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Cl(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Ol(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Fl(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function xl(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Ml(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Bl(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Ll(e,t){var i=v();try{y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;g(1,0)}}function Hl(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function Ul(e,t,i){var n=v();try{y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function Nl(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Wl(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function $l(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function ql(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Gl(e,t,i,n){var s=v();try{y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function Kl(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Vl(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Xl(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Ql(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;g(1,0)}}function Yl(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Jl(e,t,i,n,s,c,u,f,l,d,b,w,j,O,x,D,Y,he){var Z=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O,x,D,Y,he)}catch(Se){if(p(Z),Se!==Se+0)throw Se;g(1,0)}}function Zl(e,t,i,n,s,c,u,f,l,d,b,w,j,O,x,D,Y){var he=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O,x,D,Y)}catch(Z){if(p(he),Z!==Z+0)throw Z;g(1,0)}}function zl(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function eh(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;return g(1,0),0n}}function th(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function rh(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function ih(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function nh(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function sh(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function oh(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function ah(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function ch(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function uh(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function fh(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function lh(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;return g(1,0),0n}}function hh(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function _h(e,t,i,n,s,c,u,f,l,d,b,w,j,O,x){var D=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O,x)}catch(Y){if(p(D),Y!==Y+0)throw Y;g(1,0)}}function dh(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;g(1,0)}}function ph(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function vh(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;g(1,0)}}function gh(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;return g(1,0),0n}}function yh(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function bh(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function mh(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;return g(1,0),0n}}function wh(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;return g(1,0),0n}}function kh(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;return g(1,0),0n}}function Sh(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Eh(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Ah(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;return g(1,0),0n}}function Rh(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function jh(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Ph(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Dh(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function Th(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Ih(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Ch(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Oh(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Fh(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function xh(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;return g(1,0),0n}}function Mh(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Bh(e,t,i,n,s,c,u,f,l,d,b,w,j,O){var x=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O)}catch(D){if(p(x),D!==D+0)throw D;g(1,0)}}function Lh(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;return g(1,0),0n}}function Hh(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Uh(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Nh(e,t,i,n,s,c,u,f,l,d,b,w){var j=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w)}catch(O){if(p(j),O!==O+0)throw O;g(1,0)}}function Wh(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;return g(1,0),0n}}function $h(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function qh(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Gh(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;return g(1,0),0n}}function Kh(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Vh(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;return g(1,0),0n}}function Xh(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Qh(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Yh(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Jh(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Zh(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function zh(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function e_(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function t_(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function r_(e,t,i,n,s,c,u,f,l,d,b,w){var j=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w)}catch(O){if(p(j),O!==O+0)throw O;g(1,0)}}function i_(e,t,i,n,s,c,u,f,l,d,b,w,j){var O=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w,j)}catch(x){if(p(O),x!==x+0)throw x;g(1,0)}}function n_(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function s_(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;return g(1,0),0n}}function o_(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function a_(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function c_(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function u_(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function f_(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function l_(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function h_(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function __(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function d_(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function p_(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function v_(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function g_(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function y_(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;return g(1,0),0n}}function b_(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function m_(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function w_(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function k_(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function S_(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function E_(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function A_(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function R_(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function j_(e,t,i,n,s,c,u,f,l,d,b,w,j,O){var x=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O)}catch(D){if(p(x),D!==D+0)throw D;g(1,0)}}function P_(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;return g(1,0),0n}}function D_(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function T_(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function I_(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function C_(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function O_(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function F_(e,t){var i=v();try{return y(e)(t)}catch(n){if(p(i),n!==n+0)throw n;g(1,0)}}function x_(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function M_(e,t,i,n){var s=v();try{y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function B_(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;return g(1,0),0n}}function L_(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;return g(1,0),0n}}function H_(e,t,i,n){var s=v();try{y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function U_(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;return g(1,0),0n}}function N_(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function W_(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function $_(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function q_(e,t,i,n){var s=v();try{y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function G_(e,t,i){var n=v();try{y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function K_(e,t,i,n){var s=v();try{y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function V_(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function X_(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Q_(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Y_(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function J_(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Z_(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function z_(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function ed(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function td(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function rd(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function id(e,t,i,n,s,c,u,f,l,d){var b=v();try{return y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function nd(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function sd(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;return g(1,0),0n}}function od(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function ad(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function cd(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function ud(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function fd(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function ld(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;return g(1,0),0n}}function hd(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function _d(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function dd(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;return g(1,0),0n}}function pd(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function vd(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function gd(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;return g(1,0),0n}}function yd(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function bd(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function md(e,t,i,n,s,c,u,f,l,d,b,w){var j=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w)}catch(O){if(p(j),O!==O+0)throw O;g(1,0)}}function wd(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function kd(e,t,i,n,s,c,u,f,l,d){var b=v();try{return y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Sd(e,t,i,n,s,c,u,f,l,d,b,w,j){var O=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j)}catch(x){if(p(O),x!==x+0)throw x;g(1,0)}}function Ed(e,t,i,n,s,c,u,f,l,d){var b=v();try{return y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Ad(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Rd(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function jd(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function Pd(e,t,i,n,s,c,u,f,l,d){var b=v();try{return y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Dd(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;return g(1,0),0n}}function Td(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Id(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Cd(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;return g(1,0),0n}}function Od(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;return g(1,0),0n}}function Fd(e,t,i,n,s,c,u,f,l,d){var b=v();try{return y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function xd(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Md(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Bd(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Ld(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Hd(e,t,i,n,s,c,u,f,l,d,b,w,j,O,x){var D=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O,x)}catch(Y){if(p(D),Y!==Y+0)throw Y;g(1,0)}}function Ud(e,t,i,n,s,c,u,f,l,d,b,w,j,O,x,D,Y,he){var Z=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O,x,D,Y,he)}catch(Se){if(p(Z),Se!==Se+0)throw Se;g(1,0)}}function Nd(e,t,i,n,s,c,u,f,l,d,b,w){var j=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w)}catch(O){if(p(j),O!==O+0)throw O;g(1,0)}}function Wd(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function $d(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function qd(e,t,i,n,s,c,u,f,l,d){var b=v();try{return y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Gd(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Kd(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function Vd(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Xd(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Qd(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Yd(e,t,i,n,s,c,u,f,l,d,b,w){var j=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w)}catch(O){if(p(j),O!==O+0)throw O;g(1,0)}}function Jd(e,t,i,n,s,c,u,f,l,d){var b=v();try{return y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Zd(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function zd(e,t,i,n,s,c,u,f,l,d,b,w,j){var O=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w,j)}catch(x){if(p(O),x!==x+0)throw x;g(1,0)}}function ep(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function tp(e,t,i,n,s,c,u,f,l,d,b,w){var j=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w)}catch(O){if(p(j),O!==O+0)throw O;g(1,0)}}function rp(e,t,i,n,s,c,u,f,l,d,b,w,j,O,x,D,Y){var he=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O,x,D,Y)}catch(Z){if(p(he),Z!==Z+0)throw Z;g(1,0)}}function ip(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function np(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function sp(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function op(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function ap(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function cp(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function up(e,t,i,n,s,c,u,f,l,d,b,w,j){var O=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j)}catch(x){if(p(O),x!==x+0)throw x;g(1,0)}}function fp(e,t,i,n,s,c,u,f,l,d,b,w,j){var O=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w,j)}catch(x){if(p(O),x!==x+0)throw x;g(1,0)}}function lp(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function hp(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function _p(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;return g(1,0),0n}}function dp(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;return g(1,0),0n}}function pp(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;return g(1,0),0n}}function vp(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;return g(1,0),0n}}function gp(e,t,i,n,s,c,u,f,l,d,b,w,j,O){var x=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O)}catch(D){if(p(x),D!==D+0)throw D;g(1,0)}}function yp(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function bp(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function mp(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function wp(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function kp(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Sp(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Ep(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Ap(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Rp(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;return g(1,0),0n}}function jp(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Pp(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Dp(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Tp(e,t,i,n,s,c,u,f,l,d,b,w,j,O){var x=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O)}catch(D){if(p(x),D!==D+0)throw D;g(1,0)}}function Ip(e,t,i,n,s,c,u,f,l,d,b,w,j){var O=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w,j)}catch(x){if(p(O),x!==x+0)throw x;g(1,0)}}function Cp(e,t,i,n,s,c,u,f,l,d,b,w){var j=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w)}catch(O){if(p(j),O!==O+0)throw O;g(1,0)}}function Op(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function Fp(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function xp(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;return g(1,0),0n}}function Mp(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Bp(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;return g(1,0),0n}}function Lp(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Hp(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Up(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Np(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Wp(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function $p(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function qp(e,t,i){var n=v();try{y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function Gp(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Kp(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Vp(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Xp(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Qp(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Yp(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Jp(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Zp(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function zp(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function ev(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function tv(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function rv(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function iv(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function nv(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;return g(1,0),0n}}function sv(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;return g(1,0),0n}}function ov(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;return g(1,0),0n}}function av(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;return g(1,0),0n}}function cv(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;return g(1,0),0n}}function uv(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function fv(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;return g(1,0),0n}}function lv(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function hv(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function _v(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function dv(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function pv(e,t,i,n,s,c,u,f,l,d,b,w,j,O){var x=v();try{y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O)}catch(D){if(p(x),D!==D+0)throw D;g(1,0)}}function vv(e,t,i){var n=v();try{y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function gv(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;return g(1,0),0n}}function yv(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;return g(1,0),0n}}function bv(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function mv(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function wv(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function kv(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function Sv(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function Ev(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Av(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Rv(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function jv(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Pv(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Dv(e,t,i){var n=v();try{return y(e)(t,i)}catch(s){if(p(n),s!==s+0)throw s;g(1,0)}}function Tv(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Iv(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Cv(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function Ov(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Fv(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function xv(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Mv(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function Bv(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Lv(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Hv(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function Uv(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Nv(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function Wv(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function $v(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function qv(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Gv(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Kv(e,t,i,n,s){var c=v();try{y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Vv(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function Xv(e,t,i,n,s,c,u,f,l,d){var b=v();try{return y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function Qv(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Yv(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function Jv(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;return g(1,0),0n}}function Zv(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;return g(1,0),0n}}function zv(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function e0(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function t0(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function r0(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;return g(1,0),0n}}function i0(e,t,i,n,s,c,u,f,l,d,b){var w=v();try{y(e)(t,i,n,s,c,u,f,l,d,b)}catch(j){if(p(w),j!==j+0)throw j;g(1,0)}}function n0(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function s0(e,t,i,n,s,c,u,f,l,d){var b=v();try{y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function o0(e,t,i,n){var s=v();try{return y(e)(t,i,n)}catch(c){if(p(s),c!==c+0)throw c;g(1,0)}}function a0(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function c0(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function u0(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function f0(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function l0(e,t,i,n,s,c,u,f,l,d,b,w,j,O,x,D,Y,he,Z){var Se=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O,x,D,Y,he,Z)}catch(Ie){if(p(Se),Ie!==Ie+0)throw Ie;g(1,0)}}function h0(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function _0(e,t,i,n,s,c,u,f,l){var d=v();try{y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function d0(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;g(1,0)}}function p0(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function v0(e){var t=v();try{return y(e)()}catch(i){if(p(t),i!==i+0)throw i;g(1,0)}}function g0(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function y0(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function b0(e,t,i,n,s,c,u){var f=v();try{y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function m0(e,t,i,n,s,c){var u=v();try{return y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function w0(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function k0(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function S0(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function E0(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function A0(e,t,i,n,s,c,u,f,l,d){var b=v();try{return y(e)(t,i,n,s,c,u,f,l,d)}catch(w){if(p(b),w!==w+0)throw w;g(1,0)}}function R0(e,t,i,n,s,c,u,f,l){var d=v();try{return y(e)(t,i,n,s,c,u,f,l)}catch(b){if(p(d),b!==b+0)throw b;g(1,0)}}function j0(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;g(1,0)}}function P0(e,t,i,n,s,c,u,f,l,d,b,w,j,O,x,D){var Y=v();try{return y(e)(t,i,n,s,c,u,f,l,d,b,w,j,O,x,D)}catch(he){if(p(Y),he!==he+0)throw he;g(1,0)}}function D0(e,t,i,n,s){var c=v();try{return y(e)(t,i,n,s)}catch(u){if(p(c),u!==u+0)throw u;return g(1,0),0n}}function T0(e,t,i,n,s,c,u,f){var l=v();try{return y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;return g(1,0),0n}}function I0(e,t,i,n,s,c,u){var f=v();try{return y(e)(t,i,n,s,c,u)}catch(l){if(p(f),l!==l+0)throw l;return g(1,0),0n}}function C0(e,t,i,n,s,c){var u=v();try{y(e)(t,i,n,s,c)}catch(f){if(p(u),f!==f+0)throw f;g(1,0)}}function O0(e,t,i,n,s,c,u,f){var l=v();try{y(e)(t,i,n,s,c,u,f)}catch(d){if(p(l),d!==d+0)throw d;g(1,0)}}function F0(e){e=Object.assign({},e);var t=s=>c=>s(c)>>>0,i=s=>(c,u)=>s(c,u)>>>0,n=s=>()=>s()>>>0;return e.Si=t(e.Si),e.Ui=i(e.Ui),e.Zi=t(e.Zi),e._i=n(e._i),e.cj=t(e.cj),e}_.stackSave=v,_.stackRestore=p,_.stackAlloc=Wt,_.getTempRet0=cf,_.setTempRet0=jt,_.ccall=af;function x0(){var e=ff,t=0,i=0;try{var n=e(t,i);return Xn(n,!0),n}catch(s){return rf(s)}}function xr(){if(H>0){fe=xr;return}if(Ke(),H>0){fe=xr;return}function e(){var i;if(_.calledRun=!0,!N){ee(),m(_),(i=_.onRuntimeInitialized)==null||i.call(_);var t=_.noInitialRun;t||x0(),Pr()}}_.setStatus?(_.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>_.setStatus(""),1),e()},1)):e()}if(_.preInit)for(typeof _.preInit=="function"&&(_.preInit=[_.preInit]);_.preInit.length>0;)_.preInit.pop()();return xr(),h=S,h}})();typeof os=="object"&&typeof Yt=="object"?(Yt.exports=Ur,Yt.exports.default=Ur):typeof define=="function"&&define.amd&&define([],()=>Ur)});var fs=U(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.splitWhen=yt.flatten=void 0;function K0(o){return o.reduce((r,a)=>[].concat(r,a),[])}yt.flatten=K0;function V0(o,r){let a=[[]],h=0;for(let _ of o)r(_)?(h++,a[h]=[]):a[h].push(_);return a}yt.splitWhen=V0});var ls=U(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.isEnoentCodeError=void 0;function X0(o){return o.code==="ENOENT"}zt.isEnoentCodeError=X0});var hs=U(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.createDirentFromStats=void 0;var Wr=class{constructor(r,a){this.name=r,this.isBlockDevice=a.isBlockDevice.bind(a),this.isCharacterDevice=a.isCharacterDevice.bind(a),this.isDirectory=a.isDirectory.bind(a),this.isFIFO=a.isFIFO.bind(a),this.isFile=a.isFile.bind(a),this.isSocket=a.isSocket.bind(a),this.isSymbolicLink=a.isSymbolicLink.bind(a)}};function Q0(o,r){return new Wr(o,r)}er.createDirentFromStats=Q0});var vs=U(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.convertPosixPathToPattern=we.convertWindowsPathToPattern=we.convertPathToPattern=we.escapePosixPath=we.escapeWindowsPath=we.escape=we.removeLeadingDotSegment=we.makeAbsolute=we.unixify=void 0;var Y0=require("os"),J0=require("path"),_s=Y0.platform()==="win32",Z0=2,z0=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,eg=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,tg=/^\\\\([.?])/,rg=/\\(?![!()+@[\]{}])/g;function ig(o){return o.replace(/\\/g,"/")}we.unixify=ig;function ng(o,r){return J0.resolve(o,r)}we.makeAbsolute=ng;function sg(o){if(o.charAt(0)==="."){let r=o.charAt(1);if(r==="/"||r==="\\")return o.slice(Z0)}return o}we.removeLeadingDotSegment=sg;we.escape=_s?$r:qr;function $r(o){return o.replace(eg,"\\$2")}we.escapeWindowsPath=$r;function qr(o){return o.replace(z0,"\\$2")}we.escapePosixPath=qr;we.convertPathToPattern=_s?ds:ps;function ds(o){return $r(o).replace(tg,"//$1").replace(rg,"/")}we.convertWindowsPathToPattern=ds;function ps(o){return qr(o)}we.convertPosixPathToPattern=ps});var ys=U((fk,gs)=>{gs.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var a;a=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(a[2])return!0;r=r.slice(a.index+a[0].length)}return!1}});var ws=U((lk,ms)=>{var og=ys(),bs={"{":"}","(":")","[":"]"},ag=function(o){if(o[0]==="!")return!0;for(var r=0,a=-2,h=-2,_=-2,m=-2,k=-2;r<o.length;){if(o[r]==="*"||o[r+1]==="?"&&/[\].+)]/.test(o[r])||h!==-1&&o[r]==="["&&o[r+1]!=="]"&&(h<r&&(h=o.indexOf("]",r)),h>r&&(k===-1||k>h||(k=o.indexOf("\\",r),k===-1||k>h)))||_!==-1&&o[r]==="{"&&o[r+1]!=="}"&&(_=o.indexOf("}",r),_>r&&(k=o.indexOf("\\",r),k===-1||k>_))||m!==-1&&o[r]==="("&&o[r+1]==="?"&&/[:!=]/.test(o[r+2])&&o[r+3]!==")"&&(m=o.indexOf(")",r),m>r&&(k=o.indexOf("\\",r),k===-1||k>m))||a!==-1&&o[r]==="("&&o[r+1]!=="|"&&(a<r&&(a=o.indexOf("|",r)),a!==-1&&o[a+1]!==")"&&(m=o.indexOf(")",a),m>a&&(k=o.indexOf("\\",a),k===-1||k>m))))return!0;if(o[r]==="\\"){var S=o[r+1];r+=2;var R=bs[S];if(R){var T=o.indexOf(R,r);T!==-1&&(r=T+1)}if(o[r]==="!")return!0}else r++}return!1},cg=function(o){if(o[0]==="!")return!0;for(var r=0;r<o.length;){if(/[*?{}()[\]]/.test(o[r]))return!0;if(o[r]==="\\"){var a=o[r+1];r+=2;var h=bs[a];if(h){var _=o.indexOf(h,r);_!==-1&&(r=_+1)}if(o[r]==="!")return!0}else r++}return!1};ms.exports=function(r,a){if(typeof r!="string"||r==="")return!1;if(og(r))return!0;var h=ag;return a&&a.strict===!1&&(h=cg),h(r)}});var Ss=U((hk,ks)=>{"use strict";var ug=ws(),fg=require("path").posix.dirname,lg=require("os").platform()==="win32",Gr="/",hg=/\\/g,_g=/[\{\[].*[\}\]]$/,dg=/(^|[^\\])([\{\[]|\([^\)]+$)/,pg=/\\([\!\*\?\|\[\]\(\)\{\}])/g;ks.exports=function(r,a){var h=Object.assign({flipBackslashes:!0},a);h.flipBackslashes&&lg&&r.indexOf(Gr)<0&&(r=r.replace(hg,Gr)),_g.test(r)&&(r+=Gr),r+="a";do r=fg(r);while(ug(r)||dg.test(r));return r.replace(pg,"$1")}});var tr=U(Be=>{"use strict";Be.isInteger=o=>typeof o=="number"?Number.isInteger(o):typeof o=="string"&&o.trim()!==""?Number.isInteger(Number(o)):!1;Be.find=(o,r)=>o.nodes.find(a=>a.type===r);Be.exceedsLimit=(o,r,a=1,h)=>h===!1||!Be.isInteger(o)||!Be.isInteger(r)?!1:(Number(r)-Number(o))/Number(a)>=h;Be.escapeNode=(o,r=0,a)=>{let h=o.nodes[r];h&&(a&&h.type===a||h.type==="open"||h.type==="close")&&h.escaped!==!0&&(h.value="\\"+h.value,h.escaped=!0)};Be.encloseBrace=o=>o.type!=="brace"?!1:o.commas>>0+o.ranges>>0===0?(o.invalid=!0,!0):!1;Be.isInvalidBrace=o=>o.type!=="brace"?!1:o.invalid===!0||o.dollar?!0:o.commas>>0+o.ranges>>0===0||o.open!==!0||o.close!==!0?(o.invalid=!0,!0):!1;Be.isOpenOrClose=o=>o.type==="open"||o.type==="close"?!0:o.open===!0||o.close===!0;Be.reduce=o=>o.reduce((r,a)=>(a.type==="text"&&r.push(a.value),a.type==="range"&&(a.type="text"),r),[]);Be.flatten=(...o)=>{let r=[],a=h=>{for(let _=0;_<h.length;_++){let m=h[_];if(Array.isArray(m)){a(m);continue}m!==void 0&&r.push(m)}return r};return a(o),r}});var rr=U((dk,As)=>{"use strict";var Es=tr();As.exports=(o,r={})=>{let a=(h,_={})=>{let m=r.escapeInvalid&&Es.isInvalidBrace(_),k=h.invalid===!0&&r.escapeInvalid===!0,S="";if(h.value)return(m||k)&&Es.isOpenOrClose(h)?"\\"+h.value:h.value;if(h.value)return h.value;if(h.nodes)for(let R of h.nodes)S+=a(R);return S};return a(o)}});var js=U((pk,Rs)=>{"use strict";Rs.exports=function(o){return typeof o=="number"?o-o===0:typeof o=="string"&&o.trim()!==""?Number.isFinite?Number.isFinite(+o):isFinite(+o):!1}});var Ms=U((vk,xs)=>{"use strict";var Ps=js(),ft=(o,r,a)=>{if(Ps(o)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(r===void 0||o===r)return String(o);if(Ps(r)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let h={relaxZeros:!0,...a};typeof h.strictZeros=="boolean"&&(h.relaxZeros=h.strictZeros===!1);let _=String(h.relaxZeros),m=String(h.shorthand),k=String(h.capture),S=String(h.wrap),R=o+":"+r+"="+_+m+k+S;if(ft.cache.hasOwnProperty(R))return ft.cache[R].result;let T=Math.min(o,r),A=Math.max(o,r);if(Math.abs(T-A)===1){let M=o+"|"+r;return h.capture?`(${M})`:h.wrap===!1?M:`(?:${M})`}let F=Fs(o)||Fs(r),I={min:o,max:r,a:T,b:A},X=[],B=[];if(F&&(I.isPadded=F,I.maxLen=String(I.max).length),T<0){let M=A<0?Math.abs(A):1;B=Ds(M,Math.abs(T),I,h),T=I.a=0}return A>=0&&(X=Ds(T,A,I,h)),I.negatives=B,I.positives=X,I.result=vg(B,X,h),h.capture===!0?I.result=`(${I.result})`:h.wrap!==!1&&X.length+B.length>1&&(I.result=`(?:${I.result})`),ft.cache[R]=I,I.result};function vg(o,r,a){let h=Kr(o,r,"-",!1,a)||[],_=Kr(r,o,"",!1,a)||[],m=Kr(o,r,"-?",!0,a)||[];return h.concat(m).concat(_).join("|")}function gg(o,r){let a=1,h=1,_=Is(o,a),m=new Set([r]);for(;o<=_&&_<=r;)m.add(_),a+=1,_=Is(o,a);for(_=Cs(r+1,h)-1;o<_&&_<=r;)m.add(_),h+=1,_=Cs(r+1,h)-1;return m=[...m],m.sort(mg),m}function yg(o,r,a){if(o===r)return{pattern:o,count:[],digits:0};let h=bg(o,r),_=h.length,m="",k=0;for(let S=0;S<_;S++){let[R,T]=h[S];R===T?m+=R:R!=="0"||T!=="9"?m+=wg(R,T,a):k++}return k&&(m+=a.shorthand===!0?"\\d":"[0-9]"),{pattern:m,count:[k],digits:_}}function Ds(o,r,a,h){let _=gg(o,r),m=[],k=o,S;for(let R=0;R<_.length;R++){let T=_[R],A=yg(String(k),String(T),h),F="";if(!a.isPadded&&S&&S.pattern===A.pattern){S.count.length>1&&S.count.pop(),S.count.push(A.count[0]),S.string=S.pattern+Os(S.count),k=T+1;continue}a.isPadded&&(F=kg(T,a,h)),A.string=F+A.pattern+Os(A.count),m.push(A),k=T+1,S=A}return m}function Kr(o,r,a,h,_){let m=[];for(let k of o){let{string:S}=k;!h&&!Ts(r,"string",S)&&m.push(a+S),h&&Ts(r,"string",S)&&m.push(a+S)}return m}function bg(o,r){let a=[];for(let h=0;h<o.length;h++)a.push([o[h],r[h]]);return a}function mg(o,r){return o>r?1:r>o?-1:0}function Ts(o,r,a){return o.some(h=>h[r]===a)}function Is(o,r){return Number(String(o).slice(0,-r)+"9".repeat(r))}function Cs(o,r){return o-o%Math.pow(10,r)}function Os(o){let[r=0,a=""]=o;return a||r>1?`{${r+(a?","+a:"")}}`:""}function wg(o,r,a){return`[${o}${r-o===1?"":"-"}${r}]`}function Fs(o){return/^-?(0+)\d/.test(o)}function kg(o,r,a){if(!r.isPadded)return o;let h=Math.abs(r.maxLen-String(o).length),_=a.relaxZeros!==!1;switch(h){case 0:return"";case 1:return _?"0?":"0";case 2:return _?"0{0,2}":"00";default:return _?`0{0,${h}}`:`0{${h}}`}}ft.cache={};ft.clearCache=()=>ft.cache={};xs.exports=ft});var Qr=U((gk,$s)=>{"use strict";var Sg=require("util"),Ls=Ms(),Bs=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),Eg=o=>r=>o===!0?Number(r):String(r),Vr=o=>typeof o=="number"||typeof o=="string"&&o!=="",Tt=o=>Number.isInteger(+o),Xr=o=>{let r=`${o}`,a=-1;if(r[0]==="-"&&(r=r.slice(1)),r==="0")return!1;for(;r[++a]==="0";);return a>0},Ag=(o,r,a)=>typeof o=="string"||typeof r=="string"?!0:a.stringify===!0,Rg=(o,r,a)=>{if(r>0){let h=o[0]==="-"?"-":"";h&&(o=o.slice(1)),o=h+o.padStart(h?r-1:r,"0")}return a===!1?String(o):o},nr=(o,r)=>{let a=o[0]==="-"?"-":"";for(a&&(o=o.slice(1),r--);o.length<r;)o="0"+o;return a?"-"+o:o},jg=(o,r,a)=>{o.negatives.sort((S,R)=>S<R?-1:S>R?1:0),o.positives.sort((S,R)=>S<R?-1:S>R?1:0);let h=r.capture?"":"?:",_="",m="",k;return o.positives.length&&(_=o.positives.map(S=>nr(String(S),a)).join("|")),o.negatives.length&&(m=`-(${h}${o.negatives.map(S=>nr(String(S),a)).join("|")})`),_&&m?k=`${_}|${m}`:k=_||m,r.wrap?`(${h}${k})`:k},Hs=(o,r,a,h)=>{if(a)return Ls(o,r,{wrap:!1,...h});let _=String.fromCharCode(o);if(o===r)return _;let m=String.fromCharCode(r);return`[${_}-${m}]`},Us=(o,r,a)=>{if(Array.isArray(o)){let h=a.wrap===!0,_=a.capture?"":"?:";return h?`(${_}${o.join("|")})`:o.join("|")}return Ls(o,r,a)},Ns=(...o)=>new RangeError("Invalid range arguments: "+Sg.inspect(...o)),Ws=(o,r,a)=>{if(a.strictRanges===!0)throw Ns([o,r]);return[]},Pg=(o,r)=>{if(r.strictRanges===!0)throw new TypeError(`Expected step "${o}" to be a number`);return[]},Dg=(o,r,a=1,h={})=>{let _=Number(o),m=Number(r);if(!Number.isInteger(_)||!Number.isInteger(m)){if(h.strictRanges===!0)throw Ns([o,r]);return[]}_===0&&(_=0),m===0&&(m=0);let k=_>m,S=String(o),R=String(r),T=String(a);a=Math.max(Math.abs(a),1);let A=Xr(S)||Xr(R)||Xr(T),F=A?Math.max(S.length,R.length,T.length):0,I=A===!1&&Ag(o,r,h)===!1,X=h.transform||Eg(I);if(h.toRegex&&a===1)return Hs(nr(o,F),nr(r,F),!0,h);let B={negatives:[],positives:[]},M=ge=>B[ge<0?"negatives":"positives"].push(Math.abs(ge)),re=[],ie=0;for(;k?_>=m:_<=m;)h.toRegex===!0&&a>1?M(_):re.push(Rg(X(_,ie),F,I)),_=k?_-a:_+a,ie++;return h.toRegex===!0?a>1?jg(B,h,F):Us(re,null,{wrap:!1,...h}):re},Tg=(o,r,a=1,h={})=>{if(!Tt(o)&&o.length>1||!Tt(r)&&r.length>1)return Ws(o,r,h);let _=h.transform||(I=>String.fromCharCode(I)),m=`${o}`.charCodeAt(0),k=`${r}`.charCodeAt(0),S=m>k,R=Math.min(m,k),T=Math.max(m,k);if(h.toRegex&&a===1)return Hs(R,T,!1,h);let A=[],F=0;for(;S?m>=k:m<=k;)A.push(_(m,F)),m=S?m-a:m+a,F++;return h.toRegex===!0?Us(A,null,{wrap:!1,options:h}):A},ir=(o,r,a,h={})=>{if(r==null&&Vr(o))return[o];if(!Vr(o)||!Vr(r))return Ws(o,r,h);if(typeof a=="function")return ir(o,r,1,{transform:a});if(Bs(a))return ir(o,r,0,a);let _={...h};return _.capture===!0&&(_.wrap=!0),a=a||_.step||1,Tt(a)?Tt(o)&&Tt(r)?Dg(o,r,a,_):Tg(o,r,Math.max(Math.abs(a),1),_):a!=null&&!Bs(a)?Pg(a,_):ir(o,r,1,a)};$s.exports=ir});var Ks=U((yk,Gs)=>{"use strict";var Ig=Qr(),qs=tr(),Cg=(o,r={})=>{let a=(h,_={})=>{let m=qs.isInvalidBrace(_),k=h.invalid===!0&&r.escapeInvalid===!0,S=m===!0||k===!0,R=r.escapeInvalid===!0?"\\":"",T="";if(h.isOpen===!0)return R+h.value;if(h.isClose===!0)return console.log("node.isClose",R,h.value),R+h.value;if(h.type==="open")return S?R+h.value:"(";if(h.type==="close")return S?R+h.value:")";if(h.type==="comma")return h.prev.type==="comma"?"":S?h.value:"|";if(h.value)return h.value;if(h.nodes&&h.ranges>0){let A=qs.reduce(h.nodes),F=Ig(...A,{...r,wrap:!1,toRegex:!0,strictZeros:!0});if(F.length!==0)return A.length>1&&F.length>1?`(${F})`:F}if(h.nodes)for(let A of h.nodes)T+=a(A,h);return T};return a(o)};Gs.exports=Cg});var Qs=U((bk,Xs)=>{"use strict";var Og=Qr(),Vs=rr(),bt=tr(),lt=(o="",r="",a=!1)=>{let h=[];if(o=[].concat(o),r=[].concat(r),!r.length)return o;if(!o.length)return a?bt.flatten(r).map(_=>`{${_}}`):r;for(let _ of o)if(Array.isArray(_))for(let m of _)h.push(lt(m,r,a));else for(let m of r)a===!0&&typeof m=="string"&&(m=`{${m}}`),h.push(Array.isArray(m)?lt(_,m,a):_+m);return bt.flatten(h)},Fg=(o,r={})=>{let a=r.rangeLimit===void 0?1e3:r.rangeLimit,h=(_,m={})=>{_.queue=[];let k=m,S=m.queue;for(;k.type!=="brace"&&k.type!=="root"&&k.parent;)k=k.parent,S=k.queue;if(_.invalid||_.dollar){S.push(lt(S.pop(),Vs(_,r)));return}if(_.type==="brace"&&_.invalid!==!0&&_.nodes.length===2){S.push(lt(S.pop(),["{}"]));return}if(_.nodes&&_.ranges>0){let F=bt.reduce(_.nodes);if(bt.exceedsLimit(...F,r.step,a))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=Og(...F,r);I.length===0&&(I=Vs(_,r)),S.push(lt(S.pop(),I)),_.nodes=[];return}let R=bt.encloseBrace(_),T=_.queue,A=_;for(;A.type!=="brace"&&A.type!=="root"&&A.parent;)A=A.parent,T=A.queue;for(let F=0;F<_.nodes.length;F++){let I=_.nodes[F];if(I.type==="comma"&&_.type==="brace"){F===1&&T.push(""),T.push("");continue}if(I.type==="close"){S.push(lt(S.pop(),T,R));continue}if(I.value&&I.type!=="open"){T.push(lt(T.pop(),I.value));continue}I.nodes&&h(I,_)}return T};return bt.flatten(h(o))};Xs.exports=Fg});var Js=U((mk,Ys)=>{"use strict";Ys.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var ro=U((wk,to)=>{"use strict";var xg=rr(),{MAX_LENGTH:Zs,CHAR_BACKSLASH:Yr,CHAR_BACKTICK:Mg,CHAR_COMMA:Bg,CHAR_DOT:Lg,CHAR_LEFT_PARENTHESES:Hg,CHAR_RIGHT_PARENTHESES:Ug,CHAR_LEFT_CURLY_BRACE:Ng,CHAR_RIGHT_CURLY_BRACE:Wg,CHAR_LEFT_SQUARE_BRACKET:zs,CHAR_RIGHT_SQUARE_BRACKET:eo,CHAR_DOUBLE_QUOTE:$g,CHAR_SINGLE_QUOTE:qg,CHAR_NO_BREAK_SPACE:Gg,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Kg}=Js(),Vg=(o,r={})=>{if(typeof o!="string")throw new TypeError("Expected a string");let a=r||{},h=typeof a.maxLength=="number"?Math.min(Zs,a.maxLength):Zs;if(o.length>h)throw new SyntaxError(`Input length (${o.length}), exceeds max characters (${h})`);let _={type:"root",input:o,nodes:[]},m=[_],k=_,S=_,R=0,T=o.length,A=0,F=0,I,X=()=>o[A++],B=M=>{if(M.type==="text"&&S.type==="dot"&&(S.type="text"),S&&S.type==="text"&&M.type==="text"){S.value+=M.value;return}return k.nodes.push(M),M.parent=k,M.prev=S,S=M,M};for(B({type:"bos"});A<T;)if(k=m[m.length-1],I=X(),!(I===Kg||I===Gg)){if(I===Yr){B({type:"text",value:(r.keepEscaping?I:"")+X()});continue}if(I===eo){B({type:"text",value:"\\"+I});continue}if(I===zs){R++;let M;for(;A<T&&(M=X());){if(I+=M,M===zs){R++;continue}if(M===Yr){I+=X();continue}if(M===eo&&(R--,R===0))break}B({type:"text",value:I});continue}if(I===Hg){k=B({type:"paren",nodes:[]}),m.push(k),B({type:"text",value:I});continue}if(I===Ug){if(k.type!=="paren"){B({type:"text",value:I});continue}k=m.pop(),B({type:"text",value:I}),k=m[m.length-1];continue}if(I===$g||I===qg||I===Mg){let M=I,re;for(r.keepQuotes!==!0&&(I="");A<T&&(re=X());){if(re===Yr){I+=re+X();continue}if(re===M){r.keepQuotes===!0&&(I+=re);break}I+=re}B({type:"text",value:I});continue}if(I===Ng){F++;let re={type:"brace",open:!0,close:!1,dollar:S.value&&S.value.slice(-1)==="$"||k.dollar===!0,depth:F,commas:0,ranges:0,nodes:[]};k=B(re),m.push(k),B({type:"open",value:I});continue}if(I===Wg){if(k.type!=="brace"){B({type:"text",value:I});continue}let M="close";k=m.pop(),k.close=!0,B({type:M,value:I}),F--,k=m[m.length-1];continue}if(I===Bg&&F>0){if(k.ranges>0){k.ranges=0;let M=k.nodes.shift();k.nodes=[M,{type:"text",value:xg(k)}]}B({type:"comma",value:I}),k.commas++;continue}if(I===Lg&&F>0&&k.commas===0){let M=k.nodes;if(F===0||M.length===0){B({type:"text",value:I});continue}if(S.type==="dot"){if(k.range=[],S.value+=I,S.type="range",k.nodes.length!==3&&k.nodes.length!==5){k.invalid=!0,k.ranges=0,S.type="text";continue}k.ranges++,k.args=[];continue}if(S.type==="range"){M.pop();let re=M[M.length-1];re.value+=S.value+I,S=re,k.ranges--;continue}B({type:"dot",value:I});continue}B({type:"text",value:I})}do if(k=m.pop(),k.type!=="root"){k.nodes.forEach(ie=>{ie.nodes||(ie.type==="open"&&(ie.isOpen=!0),ie.type==="close"&&(ie.isClose=!0),ie.nodes||(ie.type="text"),ie.invalid=!0)});let M=m[m.length-1],re=M.nodes.indexOf(k);M.nodes.splice(re,1,...k.nodes)}while(m.length>0);return B({type:"eos"}),_};to.exports=Vg});var so=U((kk,no)=>{"use strict";var io=rr(),Xg=Ks(),Qg=Qs(),Yg=ro(),Fe=(o,r={})=>{let a=[];if(Array.isArray(o))for(let h of o){let _=Fe.create(h,r);Array.isArray(_)?a.push(..._):a.push(_)}else a=[].concat(Fe.create(o,r));return r&&r.expand===!0&&r.nodupes===!0&&(a=[...new Set(a)]),a};Fe.parse=(o,r={})=>Yg(o,r);Fe.stringify=(o,r={})=>io(typeof o=="string"?Fe.parse(o,r):o,r);Fe.compile=(o,r={})=>(typeof o=="string"&&(o=Fe.parse(o,r)),Xg(o,r));Fe.expand=(o,r={})=>{typeof o=="string"&&(o=Fe.parse(o,r));let a=Qg(o,r);return r.noempty===!0&&(a=a.filter(Boolean)),r.nodupes===!0&&(a=[...new Set(a)]),a};Fe.create=(o,r={})=>o===""||o.length<3?[o]:r.expand!==!0?Fe.compile(o,r):Fe.expand(o,r);no.exports=Fe});var It=U((Sk,fo)=>{"use strict";var Jg=require("path"),We="\\\\/",oo=`[^${We}]`,Xe="\\.",Zg="\\+",zg="\\?",sr="\\/",ey="(?=.)",ao="[^/]",Jr=`(?:${sr}|$)`,co=`(?:^|${sr})`,Zr=`${Xe}{1,2}${Jr}`,ty=`(?!${Xe})`,ry=`(?!${co}${Zr})`,iy=`(?!${Xe}{0,1}${Jr})`,ny=`(?!${Zr})`,sy=`[^.${sr}]`,oy=`${ao}*?`,uo={DOT_LITERAL:Xe,PLUS_LITERAL:Zg,QMARK_LITERAL:zg,SLASH_LITERAL:sr,ONE_CHAR:ey,QMARK:ao,END_ANCHOR:Jr,DOTS_SLASH:Zr,NO_DOT:ty,NO_DOTS:ry,NO_DOT_SLASH:iy,NO_DOTS_SLASH:ny,QMARK_NO_DOT:sy,STAR:oy,START_ANCHOR:co},ay={...uo,SLASH_LITERAL:`[${We}]`,QMARK:oo,STAR:`${oo}*?`,DOTS_SLASH:`${Xe}{1,2}(?:[${We}]|$)`,NO_DOT:`(?!${Xe})`,NO_DOTS:`(?!(?:^|[${We}])${Xe}{1,2}(?:[${We}]|$))`,NO_DOT_SLASH:`(?!${Xe}{0,1}(?:[${We}]|$))`,NO_DOTS_SLASH:`(?!${Xe}{1,2}(?:[${We}]|$))`,QMARK_NO_DOT:`[^.${We}]`,START_ANCHOR:`(?:^|[${We}])`,END_ANCHOR:`(?:[${We}]|$)`},cy={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};fo.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:cy,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Jg.sep,extglobChars(o){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${o.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(o){return o===!0?ay:uo}}});var Ct=U(Ce=>{"use strict";var uy=require("path"),fy=process.platform==="win32",{REGEX_BACKSLASH:ly,REGEX_REMOVE_BACKSLASH:hy,REGEX_SPECIAL_CHARS:_y,REGEX_SPECIAL_CHARS_GLOBAL:dy}=It();Ce.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o);Ce.hasRegexChars=o=>_y.test(o);Ce.isRegexChar=o=>o.length===1&&Ce.hasRegexChars(o);Ce.escapeRegex=o=>o.replace(dy,"\\$1");Ce.toPosixSlashes=o=>o.replace(ly,"/");Ce.removeBackslashes=o=>o.replace(hy,r=>r==="\\"?"":r);Ce.supportsLookbehinds=()=>{let o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10};Ce.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:fy===!0||uy.sep==="\\";Ce.escapeLast=(o,r,a)=>{let h=o.lastIndexOf(r,a);return h===-1?o:o[h-1]==="\\"?Ce.escapeLast(o,r,h-1):`${o.slice(0,h)}\\${o.slice(h)}`};Ce.removePrefix=(o,r={})=>{let a=o;return a.startsWith("./")&&(a=a.slice(2),r.prefix="./"),a};Ce.wrapOutput=(o,r={},a={})=>{let h=a.contains?"":"^",_=a.contains?"":"$",m=`${h}(?:${o})${_}`;return r.negated===!0&&(m=`(?:^(?!${m}).*$)`),m}});var bo=U((Ak,yo)=>{"use strict";var lo=Ct(),{CHAR_ASTERISK:zr,CHAR_AT:py,CHAR_BACKWARD_SLASH:Ot,CHAR_COMMA:vy,CHAR_DOT:ei,CHAR_EXCLAMATION_MARK:ti,CHAR_FORWARD_SLASH:go,CHAR_LEFT_CURLY_BRACE:ri,CHAR_LEFT_PARENTHESES:ii,CHAR_LEFT_SQUARE_BRACKET:gy,CHAR_PLUS:yy,CHAR_QUESTION_MARK:ho,CHAR_RIGHT_CURLY_BRACE:by,CHAR_RIGHT_PARENTHESES:_o,CHAR_RIGHT_SQUARE_BRACKET:my}=It(),po=o=>o===go||o===Ot,vo=o=>{o.isPrefix!==!0&&(o.depth=o.isGlobstar?1/0:1)},wy=(o,r)=>{let a=r||{},h=o.length-1,_=a.parts===!0||a.scanToEnd===!0,m=[],k=[],S=[],R=o,T=-1,A=0,F=0,I=!1,X=!1,B=!1,M=!1,re=!1,ie=!1,ge=!1,ce=!1,Ee=!1,Q=!1,ae=0,K,$,N={value:"",depth:0,isGlob:!1},ne=()=>T>=h,C=()=>R.charCodeAt(T+1),V=()=>(K=$,R.charCodeAt(++T));for(;T<h;){$=V();let J;if($===Ot){ge=N.backslashes=!0,$=V(),$===ri&&(ie=!0);continue}if(ie===!0||$===ri){for(ae++;ne()!==!0&&($=V());){if($===Ot){ge=N.backslashes=!0,V();continue}if($===ri){ae++;continue}if(ie!==!0&&$===ei&&($=V())===ei){if(I=N.isBrace=!0,B=N.isGlob=!0,Q=!0,_===!0)continue;break}if(ie!==!0&&$===vy){if(I=N.isBrace=!0,B=N.isGlob=!0,Q=!0,_===!0)continue;break}if($===by&&(ae--,ae===0)){ie=!1,I=N.isBrace=!0,Q=!0;break}}if(_===!0)continue;break}if($===go){if(m.push(T),k.push(N),N={value:"",depth:0,isGlob:!1},Q===!0)continue;if(K===ei&&T===A+1){A+=2;continue}F=T+1;continue}if(a.noext!==!0&&($===yy||$===py||$===zr||$===ho||$===ti)===!0&&C()===ii){if(B=N.isGlob=!0,M=N.isExtglob=!0,Q=!0,$===ti&&T===A&&(Ee=!0),_===!0){for(;ne()!==!0&&($=V());){if($===Ot){ge=N.backslashes=!0,$=V();continue}if($===_o){B=N.isGlob=!0,Q=!0;break}}continue}break}if($===zr){if(K===zr&&(re=N.isGlobstar=!0),B=N.isGlob=!0,Q=!0,_===!0)continue;break}if($===ho){if(B=N.isGlob=!0,Q=!0,_===!0)continue;break}if($===gy){for(;ne()!==!0&&(J=V());){if(J===Ot){ge=N.backslashes=!0,V();continue}if(J===my){X=N.isBracket=!0,B=N.isGlob=!0,Q=!0;break}}if(_===!0)continue;break}if(a.nonegate!==!0&&$===ti&&T===A){ce=N.negated=!0,A++;continue}if(a.noparen!==!0&&$===ii){if(B=N.isGlob=!0,_===!0){for(;ne()!==!0&&($=V());){if($===ii){ge=N.backslashes=!0,$=V();continue}if($===_o){Q=!0;break}}continue}break}if(B===!0){if(Q=!0,_===!0)continue;break}}a.noext===!0&&(M=!1,B=!1);let q=R,ue="",P="";A>0&&(ue=R.slice(0,A),R=R.slice(A),F-=A),q&&B===!0&&F>0?(q=R.slice(0,F),P=R.slice(F)):B===!0?(q="",P=R):q=R,q&&q!==""&&q!=="/"&&q!==R&&po(q.charCodeAt(q.length-1))&&(q=q.slice(0,-1)),a.unescape===!0&&(P&&(P=lo.removeBackslashes(P)),q&&ge===!0&&(q=lo.removeBackslashes(q)));let E={prefix:ue,input:o,start:A,base:q,glob:P,isBrace:I,isBracket:X,isGlob:B,isExtglob:M,isGlobstar:re,negated:ce,negatedExtglob:Ee};if(a.tokens===!0&&(E.maxDepth=0,po($)||k.push(N),E.tokens=k),a.parts===!0||a.tokens===!0){let J;for(let oe=0;oe<m.length;oe++){let Re=J?J+1:A,Me=m[oe],je=o.slice(Re,Me);a.tokens&&(oe===0&&A!==0?(k[oe].isPrefix=!0,k[oe].value=ue):k[oe].value=je,vo(k[oe]),E.maxDepth+=k[oe].depth),(oe!==0||je!=="")&&S.push(je),J=Me}if(J&&J+1<o.length){let oe=o.slice(J+1);S.push(oe),a.tokens&&(k[k.length-1].value=oe,vo(k[k.length-1]),E.maxDepth+=k[k.length-1].depth)}E.slashes=m,E.parts=S}return E};yo.exports=wy});var ko=U((Rk,wo)=>{"use strict";var or=It(),xe=Ct(),{MAX_LENGTH:ar,POSIX_REGEX_SOURCE:ky,REGEX_NON_SPECIAL_CHARS:Sy,REGEX_SPECIAL_CHARS_BACKREF:Ey,REPLACEMENTS:mo}=or,Ay=(o,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...o,r);o.sort();let a=`[${o.join("-")}]`;try{new RegExp(a)}catch{return o.map(_=>xe.escapeRegex(_)).join("..")}return a},mt=(o,r)=>`Missing ${o}: "${r}" - use "\\\\${r}" to match literal characters`,ni=(o,r)=>{if(typeof o!="string")throw new TypeError("Expected a string");o=mo[o]||o;let a={...r},h=typeof a.maxLength=="number"?Math.min(ar,a.maxLength):ar,_=o.length;if(_>h)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${h}`);let m={type:"bos",value:"",output:a.prepend||""},k=[m],S=a.capture?"":"?:",R=xe.isWindows(r),T=or.globChars(R),A=or.extglobChars(T),{DOT_LITERAL:F,PLUS_LITERAL:I,SLASH_LITERAL:X,ONE_CHAR:B,DOTS_SLASH:M,NO_DOT:re,NO_DOT_SLASH:ie,NO_DOTS_SLASH:ge,QMARK:ce,QMARK_NO_DOT:Ee,STAR:Q,START_ANCHOR:ae}=T,K=H=>`(${S}(?:(?!${ae}${H.dot?M:F}).)*?)`,$=a.dot?"":re,N=a.dot?ce:Ee,ne=a.bash===!0?K(a):Q;a.capture&&(ne=`(${ne})`),typeof a.noext=="boolean"&&(a.noextglob=a.noext);let C={input:o,index:-1,start:0,dot:a.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:k};o=xe.removePrefix(o,C),_=o.length;let V=[],q=[],ue=[],P=m,E,J=()=>C.index===_-1,oe=C.peek=(H=1)=>o[C.index+H],Re=C.advance=()=>o[++C.index]||"",Me=()=>o.slice(C.index+1),je=(H="",fe=0)=>{C.consumed+=H,C.index+=fe},_t=H=>{C.output+=H.output!=null?H.output:H.value,je(H.value)},xt=()=>{let H=1;for(;oe()==="!"&&(oe(2)!=="("||oe(3)==="?");)Re(),C.start++,H++;return H%2===0?!1:(C.negated=!0,C.start++,!0)},at=H=>{C[H]++,ue.push(H)},Ke=H=>{C[H]--,ue.pop()},ee=H=>{if(P.type==="globstar"){let fe=C.braces>0&&(H.type==="comma"||H.type==="brace"),L=H.extglob===!0||V.length&&(H.type==="pipe"||H.type==="paren");H.type!=="slash"&&H.type!=="paren"&&!fe&&!L&&(C.output=C.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=ne,C.output+=P.output)}if(V.length&&H.type!=="paren"&&(V[V.length-1].inner+=H.value),(H.value||H.output)&&_t(H),P&&P.type==="text"&&H.type==="text"){P.value+=H.value,P.output=(P.output||"")+H.value;return}H.prev=P,k.push(H),P=H},At=(H,fe)=>{let L={...A[fe],conditions:1,inner:""};L.prev=P,L.parens=C.parens,L.output=C.output;let z=(a.capture?"(":"")+L.open;at("parens"),ee({type:H,value:fe,output:C.output?"":B}),ee({type:"paren",extglob:!0,value:Re(),output:z}),V.push(L)},Pr=H=>{let fe=H.close+(a.capture?")":""),L;if(H.type==="negate"){let z=ne;if(H.inner&&H.inner.length>1&&H.inner.includes("/")&&(z=K(a)),(z!==ne||J()||/^\)+$/.test(Me()))&&(fe=H.close=`)$))${z}`),H.inner.includes("*")&&(L=Me())&&/^\.[^\\/.]+$/.test(L)){let se=ni(L,{...r,fastpaths:!1}).output;fe=H.close=`)${se})${z})`}H.prev.type==="bos"&&(C.negatedExtglob=!0)}ee({type:"paren",extglob:!0,value:E,output:fe}),Ke("parens")};if(a.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(o)){let H=!1,fe=o.replace(Ey,(L,z,se,ke,be,Rt)=>ke==="\\"?(H=!0,L):ke==="?"?z?z+ke+(be?ce.repeat(be.length):""):Rt===0?N+(be?ce.repeat(be.length):""):ce.repeat(se.length):ke==="."?F.repeat(se.length):ke==="*"?z?z+ke+(be?ne:""):ne:z?L:`\\${L}`);return H===!0&&(a.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,L=>L.length%2===0?"\\\\":L?"\\":"")),fe===o&&a.contains===!0?(C.output=o,C):(C.output=xe.wrapOutput(fe,C,r),C)}for(;!J();){if(E=Re(),E==="\0")continue;if(E==="\\"){let L=oe();if(L==="/"&&a.bash!==!0||L==="."||L===";")continue;if(!L){E+="\\",ee({type:"text",value:E});continue}let z=/^\\+/.exec(Me()),se=0;if(z&&z[0].length>2&&(se=z[0].length,C.index+=se,se%2!==0&&(E+="\\")),a.unescape===!0?E=Re():E+=Re(),C.brackets===0){ee({type:"text",value:E});continue}}if(C.brackets>0&&(E!=="]"||P.value==="["||P.value==="[^")){if(a.posix!==!1&&E===":"){let L=P.value.slice(1);if(L.includes("[")&&(P.posix=!0,L.includes(":"))){let z=P.value.lastIndexOf("["),se=P.value.slice(0,z),ke=P.value.slice(z+2),be=ky[ke];if(be){P.value=se+be,C.backtrack=!0,Re(),!m.output&&k.indexOf(P)===1&&(m.output=B);continue}}}(E==="["&&oe()!==":"||E==="-"&&oe()==="]")&&(E=`\\${E}`),E==="]"&&(P.value==="["||P.value==="[^")&&(E=`\\${E}`),a.posix===!0&&E==="!"&&P.value==="["&&(E="^"),P.value+=E,_t({value:E});continue}if(C.quotes===1&&E!=='"'){E=xe.escapeRegex(E),P.value+=E,_t({value:E});continue}if(E==='"'){C.quotes=C.quotes===1?0:1,a.keepQuotes===!0&&ee({type:"text",value:E});continue}if(E==="("){at("parens"),ee({type:"paren",value:E});continue}if(E===")"){if(C.parens===0&&a.strictBrackets===!0)throw new SyntaxError(mt("opening","("));let L=V[V.length-1];if(L&&C.parens===L.parens+1){Pr(V.pop());continue}ee({type:"paren",value:E,output:C.parens?")":"\\)"}),Ke("parens");continue}if(E==="["){if(a.nobracket===!0||!Me().includes("]")){if(a.nobracket!==!0&&a.strictBrackets===!0)throw new SyntaxError(mt("closing","]"));E=`\\${E}`}else at("brackets");ee({type:"bracket",value:E});continue}if(E==="]"){if(a.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){ee({type:"text",value:E,output:`\\${E}`});continue}if(C.brackets===0){if(a.strictBrackets===!0)throw new SyntaxError(mt("opening","["));ee({type:"text",value:E,output:`\\${E}`});continue}Ke("brackets");let L=P.value.slice(1);if(P.posix!==!0&&L[0]==="^"&&!L.includes("/")&&(E=`/${E}`),P.value+=E,_t({value:E}),a.literalBrackets===!1||xe.hasRegexChars(L))continue;let z=xe.escapeRegex(P.value);if(C.output=C.output.slice(0,-P.value.length),a.literalBrackets===!0){C.output+=z,P.value=z;continue}P.value=`(${S}${z}|${P.value})`,C.output+=P.value;continue}if(E==="{"&&a.nobrace!==!0){at("braces");let L={type:"brace",value:E,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};q.push(L),ee(L);continue}if(E==="}"){let L=q[q.length-1];if(a.nobrace===!0||!L){ee({type:"text",value:E,output:E});continue}let z=")";if(L.dots===!0){let se=k.slice(),ke=[];for(let be=se.length-1;be>=0&&(k.pop(),se[be].type!=="brace");be--)se[be].type!=="dots"&&ke.unshift(se[be].value);z=Ay(ke,a),C.backtrack=!0}if(L.comma!==!0&&L.dots!==!0){let se=C.output.slice(0,L.outputIndex),ke=C.tokens.slice(L.tokensIndex);L.value=L.output="\\{",E=z="\\}",C.output=se;for(let be of ke)C.output+=be.output||be.value}ee({type:"brace",value:E,output:z}),Ke("braces"),q.pop();continue}if(E==="|"){V.length>0&&V[V.length-1].conditions++,ee({type:"text",value:E});continue}if(E===","){let L=E,z=q[q.length-1];z&&ue[ue.length-1]==="braces"&&(z.comma=!0,L="|"),ee({type:"comma",value:E,output:L});continue}if(E==="/"){if(P.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",k.pop(),P=m;continue}ee({type:"slash",value:E,output:X});continue}if(E==="."){if(C.braces>0&&P.type==="dot"){P.value==="."&&(P.output=F);let L=q[q.length-1];P.type="dots",P.output+=E,P.value+=E,L.dots=!0;continue}if(C.braces+C.parens===0&&P.type!=="bos"&&P.type!=="slash"){ee({type:"text",value:E,output:F});continue}ee({type:"dot",value:E,output:F});continue}if(E==="?"){if(!(P&&P.value==="(")&&a.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){At("qmark",E);continue}if(P&&P.type==="paren"){let z=oe(),se=E;if(z==="<"&&!xe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(z)||z==="<"&&!/<([!=]|\w+>)/.test(Me()))&&(se=`\\${E}`),ee({type:"text",value:E,output:se});continue}if(a.dot!==!0&&(P.type==="slash"||P.type==="bos")){ee({type:"qmark",value:E,output:Ee});continue}ee({type:"qmark",value:E,output:ce});continue}if(E==="!"){if(a.noextglob!==!0&&oe()==="("&&(oe(2)!=="?"||!/[!=<:]/.test(oe(3)))){At("negate",E);continue}if(a.nonegate!==!0&&C.index===0){xt();continue}}if(E==="+"){if(a.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){At("plus",E);continue}if(P&&P.value==="("||a.regex===!1){ee({type:"plus",value:E,output:I});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||C.parens>0){ee({type:"plus",value:E});continue}ee({type:"plus",value:I});continue}if(E==="@"){if(a.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){ee({type:"at",extglob:!0,value:E,output:""});continue}ee({type:"text",value:E});continue}if(E!=="*"){(E==="$"||E==="^")&&(E=`\\${E}`);let L=Sy.exec(Me());L&&(E+=L[0],C.index+=L[0].length),ee({type:"text",value:E});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=E,P.output=ne,C.backtrack=!0,C.globstar=!0,je(E);continue}let H=Me();if(a.noextglob!==!0&&/^\([^?]/.test(H)){At("star",E);continue}if(P.type==="star"){if(a.noglobstar===!0){je(E);continue}let L=P.prev,z=L.prev,se=L.type==="slash"||L.type==="bos",ke=z&&(z.type==="star"||z.type==="globstar");if(a.bash===!0&&(!se||H[0]&&H[0]!=="/")){ee({type:"star",value:E,output:""});continue}let be=C.braces>0&&(L.type==="comma"||L.type==="brace"),Rt=V.length&&(L.type==="pipe"||L.type==="paren");if(!se&&L.type!=="paren"&&!be&&!Rt){ee({type:"star",value:E,output:""});continue}for(;H.slice(0,3)==="/**";){let dt=o[C.index+4];if(dt&&dt!=="/")break;H=H.slice(3),je("/**",3)}if(L.type==="bos"&&J()){P.type="globstar",P.value+=E,P.output=K(a),C.output=P.output,C.globstar=!0,je(E);continue}if(L.type==="slash"&&L.prev.type!=="bos"&&!ke&&J()){C.output=C.output.slice(0,-(L.output+P.output).length),L.output=`(?:${L.output}`,P.type="globstar",P.output=K(a)+(a.strictSlashes?")":"|$)"),P.value+=E,C.globstar=!0,C.output+=L.output+P.output,je(E);continue}if(L.type==="slash"&&L.prev.type!=="bos"&&H[0]==="/"){let dt=H[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(L.output+P.output).length),L.output=`(?:${L.output}`,P.type="globstar",P.output=`${K(a)}${X}|${X}${dt})`,P.value+=E,C.output+=L.output+P.output,C.globstar=!0,je(E+Re()),ee({type:"slash",value:"/",output:""});continue}if(L.type==="bos"&&H[0]==="/"){P.type="globstar",P.value+=E,P.output=`(?:^|${X}|${K(a)}${X})`,C.output=P.output,C.globstar=!0,je(E+Re()),ee({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-P.output.length),P.type="globstar",P.output=K(a),P.value+=E,C.output+=P.output,C.globstar=!0,je(E);continue}let fe={type:"star",value:E,output:ne};if(a.bash===!0){fe.output=".*?",(P.type==="bos"||P.type==="slash")&&(fe.output=$+fe.output),ee(fe);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&a.regex===!0){fe.output=E,ee(fe);continue}(C.index===C.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?(C.output+=ie,P.output+=ie):a.dot===!0?(C.output+=ge,P.output+=ge):(C.output+=$,P.output+=$),oe()!=="*"&&(C.output+=B,P.output+=B)),ee(fe)}for(;C.brackets>0;){if(a.strictBrackets===!0)throw new SyntaxError(mt("closing","]"));C.output=xe.escapeLast(C.output,"["),Ke("brackets")}for(;C.parens>0;){if(a.strictBrackets===!0)throw new SyntaxError(mt("closing",")"));C.output=xe.escapeLast(C.output,"("),Ke("parens")}for(;C.braces>0;){if(a.strictBrackets===!0)throw new SyntaxError(mt("closing","}"));C.output=xe.escapeLast(C.output,"{"),Ke("braces")}if(a.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&ee({type:"maybe_slash",value:"",output:`${X}?`}),C.backtrack===!0){C.output="";for(let H of C.tokens)C.output+=H.output!=null?H.output:H.value,H.suffix&&(C.output+=H.suffix)}return C};ni.fastpaths=(o,r)=>{let a={...r},h=typeof a.maxLength=="number"?Math.min(ar,a.maxLength):ar,_=o.length;if(_>h)throw new SyntaxError(`Input length: ${_}, exceeds maximum allowed length: ${h}`);o=mo[o]||o;let m=xe.isWindows(r),{DOT_LITERAL:k,SLASH_LITERAL:S,ONE_CHAR:R,DOTS_SLASH:T,NO_DOT:A,NO_DOTS:F,NO_DOTS_SLASH:I,STAR:X,START_ANCHOR:B}=or.globChars(m),M=a.dot?F:A,re=a.dot?I:A,ie=a.capture?"":"?:",ge={negated:!1,prefix:""},ce=a.bash===!0?".*?":X;a.capture&&(ce=`(${ce})`);let Ee=$=>$.noglobstar===!0?ce:`(${ie}(?:(?!${B}${$.dot?T:k}).)*?)`,Q=$=>{switch($){case"*":return`${M}${R}${ce}`;case".*":return`${k}${R}${ce}`;case"*.*":return`${M}${ce}${k}${R}${ce}`;case"*/*":return`${M}${ce}${S}${R}${re}${ce}`;case"**":return M+Ee(a);case"**/*":return`(?:${M}${Ee(a)}${S})?${re}${R}${ce}`;case"**/*.*":return`(?:${M}${Ee(a)}${S})?${re}${ce}${k}${R}${ce}`;case"**/.*":return`(?:${M}${Ee(a)}${S})?${k}${R}${ce}`;default:{let N=/^(.*?)\.(\w+)$/.exec($);if(!N)return;let ne=Q(N[1]);return ne?ne+k+N[2]:void 0}}},ae=xe.removePrefix(o,ge),K=Q(ae);return K&&a.strictSlashes!==!0&&(K+=`${S}?`),K};wo.exports=ni});var Eo=U((jk,So)=>{"use strict";var Ry=require("path"),jy=bo(),si=ko(),oi=Ct(),Py=It(),Dy=o=>o&&typeof o=="object"&&!Array.isArray(o),me=(o,r,a=!1)=>{if(Array.isArray(o)){let A=o.map(I=>me(I,r,a));return I=>{for(let X of A){let B=X(I);if(B)return B}return!1}}let h=Dy(o)&&o.tokens&&o.input;if(o===""||typeof o!="string"&&!h)throw new TypeError("Expected pattern to be a non-empty string");let _=r||{},m=oi.isWindows(r),k=h?me.compileRe(o,r):me.makeRe(o,r,!1,!0),S=k.state;delete k.state;let R=()=>!1;if(_.ignore){let A={...r,ignore:null,onMatch:null,onResult:null};R=me(_.ignore,A,a)}let T=(A,F=!1)=>{let{isMatch:I,match:X,output:B}=me.test(A,k,r,{glob:o,posix:m}),M={glob:o,state:S,regex:k,posix:m,input:A,output:B,match:X,isMatch:I};return typeof _.onResult=="function"&&_.onResult(M),I===!1?(M.isMatch=!1,F?M:!1):R(A)?(typeof _.onIgnore=="function"&&_.onIgnore(M),M.isMatch=!1,F?M:!1):(typeof _.onMatch=="function"&&_.onMatch(M),F?M:!0)};return a&&(T.state=S),T};me.test=(o,r,a,{glob:h,posix:_}={})=>{if(typeof o!="string")throw new TypeError("Expected input to be a string");if(o==="")return{isMatch:!1,output:""};let m=a||{},k=m.format||(_?oi.toPosixSlashes:null),S=o===h,R=S&&k?k(o):o;return S===!1&&(R=k?k(o):o,S=R===h),(S===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?S=me.matchBase(o,r,a,_):S=r.exec(R)),{isMatch:!!S,match:S,output:R}};me.matchBase=(o,r,a,h=oi.isWindows(a))=>(r instanceof RegExp?r:me.makeRe(r,a)).test(Ry.basename(o));me.isMatch=(o,r,a)=>me(r,a)(o);me.parse=(o,r)=>Array.isArray(o)?o.map(a=>me.parse(a,r)):si(o,{...r,fastpaths:!1});me.scan=(o,r)=>jy(o,r);me.compileRe=(o,r,a=!1,h=!1)=>{if(a===!0)return o.output;let _=r||{},m=_.contains?"":"^",k=_.contains?"":"$",S=`${m}(?:${o.output})${k}`;o&&o.negated===!0&&(S=`^(?!${S}).*$`);let R=me.toRegex(S,r);return h===!0&&(R.state=o),R};me.makeRe=(o,r={},a=!1,h=!1)=>{if(!o||typeof o!="string")throw new TypeError("Expected a non-empty string");let _={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(o[0]==="."||o[0]==="*")&&(_.output=si.fastpaths(o,r)),_.output||(_=si(o,r)),me.compileRe(_,r,a,h)};me.toRegex=(o,r)=>{try{let a=r||{};return new RegExp(o,a.flags||(a.nocase?"i":""))}catch(a){if(r&&r.debug===!0)throw a;return/$^/}};me.constants=Py;So.exports=me});var Ro=U((Pk,Ao)=>{"use strict";Ao.exports=Eo()});var Co=U((Dk,Io)=>{"use strict";var Po=require("util"),Do=so(),$e=Ro(),ai=Ct(),jo=o=>o===""||o==="./",To=o=>{let r=o.indexOf("{");return r>-1&&o.indexOf("}",r)>-1},pe=(o,r,a)=>{r=[].concat(r),o=[].concat(o);let h=new Set,_=new Set,m=new Set,k=0,S=A=>{m.add(A.output),a&&a.onResult&&a.onResult(A)};for(let A=0;A<r.length;A++){let F=$e(String(r[A]),{...a,onResult:S},!0),I=F.state.negated||F.state.negatedExtglob;I&&k++;for(let X of o){let B=F(X,!0);(I?!B.isMatch:B.isMatch)&&(I?h.add(B.output):(h.delete(B.output),_.add(B.output)))}}let T=(k===r.length?[...m]:[..._]).filter(A=>!h.has(A));if(a&&T.length===0){if(a.failglob===!0)throw new Error(`No matches found for "${r.join(", ")}"`);if(a.nonull===!0||a.nullglob===!0)return a.unescape?r.map(A=>A.replace(/\\/g,"")):r}return T};pe.match=pe;pe.matcher=(o,r)=>$e(o,r);pe.isMatch=(o,r,a)=>$e(r,a)(o);pe.any=pe.isMatch;pe.not=(o,r,a={})=>{r=[].concat(r).map(String);let h=new Set,_=[],m=S=>{a.onResult&&a.onResult(S),_.push(S.output)},k=new Set(pe(o,r,{...a,onResult:m}));for(let S of _)k.has(S)||h.add(S);return[...h]};pe.contains=(o,r,a)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${Po.inspect(o)}"`);if(Array.isArray(r))return r.some(h=>pe.contains(o,h,a));if(typeof r=="string"){if(jo(o)||jo(r))return!1;if(o.includes(r)||o.startsWith("./")&&o.slice(2).includes(r))return!0}return pe.isMatch(o,r,{...a,contains:!0})};pe.matchKeys=(o,r,a)=>{if(!ai.isObject(o))throw new TypeError("Expected the first argument to be an object");let h=pe(Object.keys(o),r,a),_={};for(let m of h)_[m]=o[m];return _};pe.some=(o,r,a)=>{let h=[].concat(o);for(let _ of[].concat(r)){let m=$e(String(_),a);if(h.some(k=>m(k)))return!0}return!1};pe.every=(o,r,a)=>{let h=[].concat(o);for(let _ of[].concat(r)){let m=$e(String(_),a);if(!h.every(k=>m(k)))return!1}return!0};pe.all=(o,r,a)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${Po.inspect(o)}"`);return[].concat(r).every(h=>$e(h,a)(o))};pe.capture=(o,r,a)=>{let h=ai.isWindows(a),m=$e.makeRe(String(o),{...a,capture:!0}).exec(h?ai.toPosixSlashes(r):r);if(m)return m.slice(1).map(k=>k===void 0?"":k)};pe.makeRe=(...o)=>$e.makeRe(...o);pe.scan=(...o)=>$e.scan(...o);pe.parse=(o,r)=>{let a=[];for(let h of[].concat(o||[]))for(let _ of Do(String(h),r))a.push($e.parse(_,r));return a};pe.braces=(o,r)=>{if(typeof o!="string")throw new TypeError("Expected a string");return r&&r.nobrace===!0||!To(o)?[o]:Do(o,r)};pe.braceExpand=(o,r)=>{if(typeof o!="string")throw new TypeError("Expected a string");return pe.braces(o,{...r,expand:!0})};pe.hasBraces=To;Io.exports=pe});var Wo=U(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.isAbsolute=G.partitionAbsoluteAndRelative=G.removeDuplicateSlashes=G.matchAny=G.convertPatternsToRe=G.makeRe=G.getPatternParts=G.expandBraceExpansion=G.expandPatternsWithBraceExpansion=G.isAffectDepthOfReadingPattern=G.endsWithSlashGlobStar=G.hasGlobStar=G.getBaseDirectory=G.isPatternRelatedToParentDirectory=G.getPatternsOutsideCurrentDirectory=G.getPatternsInsideCurrentDirectory=G.getPositivePatterns=G.getNegativePatterns=G.isPositivePattern=G.isNegativePattern=G.convertToNegativePattern=G.convertToPositivePattern=G.isDynamicPattern=G.isStaticPattern=void 0;var Oo=require("path"),Ty=Ss(),ci=Co(),Fo="**",Iy="\\",Cy=/[*?]|^!/,Oy=/\[[^[]*]/,Fy=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,xy=/[!*+?@]\([^(]*\)/,My=/,|\.\./,By=/(?!^)\/{2,}/g;function xo(o,r={}){return!Mo(o,r)}G.isStaticPattern=xo;function Mo(o,r={}){return o===""?!1:!!(r.caseSensitiveMatch===!1||o.includes(Iy)||Cy.test(o)||Oy.test(o)||Fy.test(o)||r.extglob!==!1&&xy.test(o)||r.braceExpansion!==!1&&Ly(o))}G.isDynamicPattern=Mo;function Ly(o){let r=o.indexOf("{");if(r===-1)return!1;let a=o.indexOf("}",r+1);if(a===-1)return!1;let h=o.slice(r,a);return My.test(h)}function Hy(o){return cr(o)?o.slice(1):o}G.convertToPositivePattern=Hy;function Uy(o){return"!"+o}G.convertToNegativePattern=Uy;function cr(o){return o.startsWith("!")&&o[1]!=="("}G.isNegativePattern=cr;function Bo(o){return!cr(o)}G.isPositivePattern=Bo;function Ny(o){return o.filter(cr)}G.getNegativePatterns=Ny;function Wy(o){return o.filter(Bo)}G.getPositivePatterns=Wy;function $y(o){return o.filter(r=>!ui(r))}G.getPatternsInsideCurrentDirectory=$y;function qy(o){return o.filter(ui)}G.getPatternsOutsideCurrentDirectory=qy;function ui(o){return o.startsWith("..")||o.startsWith("./..")}G.isPatternRelatedToParentDirectory=ui;function Gy(o){return Ty(o,{flipBackslashes:!1})}G.getBaseDirectory=Gy;function Ky(o){return o.includes(Fo)}G.hasGlobStar=Ky;function Lo(o){return o.endsWith("/"+Fo)}G.endsWithSlashGlobStar=Lo;function Vy(o){let r=Oo.basename(o);return Lo(o)||xo(r)}G.isAffectDepthOfReadingPattern=Vy;function Xy(o){return o.reduce((r,a)=>r.concat(Ho(a)),[])}G.expandPatternsWithBraceExpansion=Xy;function Ho(o){let r=ci.braces(o,{expand:!0,nodupes:!0,keepEscaping:!0});return r.sort((a,h)=>a.length-h.length),r.filter(a=>a!=="")}G.expandBraceExpansion=Ho;function Qy(o,r){let{parts:a}=ci.scan(o,Object.assign(Object.assign({},r),{parts:!0}));return a.length===0&&(a=[o]),a[0].startsWith("/")&&(a[0]=a[0].slice(1),a.unshift("")),a}G.getPatternParts=Qy;function Uo(o,r){return ci.makeRe(o,r)}G.makeRe=Uo;function Yy(o,r){return o.map(a=>Uo(a,r))}G.convertPatternsToRe=Yy;function Jy(o,r){return r.some(a=>a.test(o))}G.matchAny=Jy;function Zy(o){return o.replace(By,"/")}G.removeDuplicateSlashes=Zy;function zy(o){let r=[],a=[];for(let h of o)No(h)?r.push(h):a.push(h);return[r,a]}G.partitionAbsoluteAndRelative=zy;function No(o){return Oo.isAbsolute(o)}G.isAbsolute=No});var Ko=U((Ik,Go)=>{"use strict";var eb=require("stream"),$o=eb.PassThrough,tb=Array.prototype.slice;Go.exports=rb;function rb(){let o=[],r=tb.call(arguments),a=!1,h=r[r.length-1];h&&!Array.isArray(h)&&h.pipe==null?r.pop():h={};let _=h.end!==!1,m=h.pipeError===!0;h.objectMode==null&&(h.objectMode=!0),h.highWaterMark==null&&(h.highWaterMark=64*1024);let k=$o(h);function S(){for(let A=0,F=arguments.length;A<F;A++)o.push(qo(arguments[A],h));return R(),this}function R(){if(a)return;a=!0;let A=o.shift();if(!A){process.nextTick(T);return}Array.isArray(A)||(A=[A]);let F=A.length+1;function I(){--F>0||(a=!1,R())}function X(B){function M(){B.removeListener("merge2UnpipeEnd",M),B.removeListener("end",M),m&&B.removeListener("error",re),I()}function re(ie){k.emit("error",ie)}if(B._readableState.endEmitted)return I();B.on("merge2UnpipeEnd",M),B.on("end",M),m&&B.on("error",re),B.pipe(k,{end:!1}),B.resume()}for(let B=0;B<A.length;B++)X(A[B]);I()}function T(){a=!1,k.emit("queueDrain"),_&&k.end()}return k.setMaxListeners(0),k.add=S,k.on("unpipe",function(A){A.emit("merge2UnpipeEnd")}),r.length&&S.apply(null,r),k}function qo(o,r){if(Array.isArray(o))for(let a=0,h=o.length;a<h;a++)o[a]=qo(o[a],r);else{if(!o._readableState&&o.pipe&&(o=o.pipe($o(r))),!o._readableState||!o.pause||!o.pipe)throw new Error("Only readable stream can be merged.");o.pause()}return o}});var Xo=U(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.merge=void 0;var ib=Ko();function nb(o){let r=ib(o);return o.forEach(a=>{a.once("error",h=>r.emit("error",h))}),r.once("close",()=>Vo(o)),r.once("end",()=>Vo(o)),r}ur.merge=nb;function Vo(o){o.forEach(r=>r.emit("close"))}});var Qo=U(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.isEmpty=wt.isString=void 0;function sb(o){return typeof o=="string"}wt.isString=sb;function ob(o){return o===""}wt.isEmpty=ob});var Qe=U(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.string=Pe.stream=Pe.pattern=Pe.path=Pe.fs=Pe.errno=Pe.array=void 0;var ab=fs();Pe.array=ab;var cb=ls();Pe.errno=cb;var ub=hs();Pe.fs=ub;var fb=vs();Pe.path=fb;var lb=Wo();Pe.pattern=lb;var hb=Xo();Pe.stream=hb;var _b=Qo();Pe.string=_b});var zo=U(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.convertPatternGroupToTask=De.convertPatternGroupsToTasks=De.groupPatternsByBaseDirectory=De.getNegativePatternsAsPositive=De.getPositivePatterns=De.convertPatternsToTasks=De.generate=void 0;var Ue=Qe();function db(o,r){let a=Yo(o,r),h=Yo(r.ignore,r),_=Jo(a),m=Zo(a,h),k=_.filter(A=>Ue.pattern.isStaticPattern(A,r)),S=_.filter(A=>Ue.pattern.isDynamicPattern(A,r)),R=fi(k,m,!1),T=fi(S,m,!0);return R.concat(T)}De.generate=db;function Yo(o,r){let a=o;return r.braceExpansion&&(a=Ue.pattern.expandPatternsWithBraceExpansion(a)),r.baseNameMatch&&(a=a.map(h=>h.includes("/")?h:`**/${h}`)),a.map(h=>Ue.pattern.removeDuplicateSlashes(h))}function fi(o,r,a){let h=[],_=Ue.pattern.getPatternsOutsideCurrentDirectory(o),m=Ue.pattern.getPatternsInsideCurrentDirectory(o),k=li(_),S=li(m);return h.push(...hi(k,r,a)),"."in S?h.push(_i(".",m,r,a)):h.push(...hi(S,r,a)),h}De.convertPatternsToTasks=fi;function Jo(o){return Ue.pattern.getPositivePatterns(o)}De.getPositivePatterns=Jo;function Zo(o,r){return Ue.pattern.getNegativePatterns(o).concat(r).map(Ue.pattern.convertToPositivePattern)}De.getNegativePatternsAsPositive=Zo;function li(o){let r={};return o.reduce((a,h)=>{let _=Ue.pattern.getBaseDirectory(h);return _ in a?a[_].push(h):a[_]=[h],a},r)}De.groupPatternsByBaseDirectory=li;function hi(o,r,a){return Object.keys(o).map(h=>_i(h,o[h],r,a))}De.convertPatternGroupsToTasks=hi;function _i(o,r,a,h){return{dynamic:h,positive:r,negative:a,base:o,patterns:[].concat(r,a.map(Ue.pattern.convertToNegativePattern))}}De.convertPatternGroupToTask=_i});var ta=U(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.read=void 0;function pb(o,r,a){r.fs.lstat(o,(h,_)=>{if(h!==null){ea(a,h);return}if(!_.isSymbolicLink()||!r.followSymbolicLink){di(a,_);return}r.fs.stat(o,(m,k)=>{if(m!==null){if(r.throwErrorOnBrokenSymbolicLink){ea(a,m);return}di(a,_);return}r.markSymbolicLink&&(k.isSymbolicLink=()=>!0),di(a,k)})})}fr.read=pb;function ea(o,r){o(r)}function di(o,r){o(null,r)}});var ra=U(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.read=void 0;function vb(o,r){let a=r.fs.lstatSync(o);if(!a.isSymbolicLink()||!r.followSymbolicLink)return a;try{let h=r.fs.statSync(o);return r.markSymbolicLink&&(h.isSymbolicLink=()=>!0),h}catch(h){if(!r.throwErrorOnBrokenSymbolicLink)return a;throw h}}lr.read=vb});var ia=U(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.createFileSystemAdapter=et.FILE_SYSTEM_ADAPTER=void 0;var hr=require("fs");et.FILE_SYSTEM_ADAPTER={lstat:hr.lstat,stat:hr.stat,lstatSync:hr.lstatSync,statSync:hr.statSync};function gb(o){return o===void 0?et.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},et.FILE_SYSTEM_ADAPTER),o)}et.createFileSystemAdapter=gb});var na=U(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});var yb=ia(),pi=class{constructor(r={}){this._options=r,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=yb.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(r,a){return r??a}};vi.default=pi});var ht=U(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.statSync=tt.stat=tt.Settings=void 0;var sa=ta(),bb=ra(),gi=na();tt.Settings=gi.default;function mb(o,r,a){if(typeof r=="function"){sa.read(o,yi(),r);return}sa.read(o,yi(r),a)}tt.stat=mb;function wb(o,r){let a=yi(r);return bb.read(o,a)}tt.statSync=wb;function yi(o={}){return o instanceof gi.default?o:new gi.default(o)}});var ca=U((Nk,aa)=>{var oa;aa.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):o=>(oa||(oa=Promise.resolve())).then(o).catch(r=>setTimeout(()=>{throw r},0))});var fa=U((Wk,ua)=>{ua.exports=Sb;var kb=ca();function Sb(o,r){let a,h,_,m=!0;Array.isArray(o)?(a=[],h=o.length):(_=Object.keys(o),a={},h=_.length);function k(R){function T(){r&&r(R,a),r=null}m?kb(T):T()}function S(R,T,A){a[R]=A,(--h===0||T)&&k(T)}h?_?_.forEach(function(R){o[R](function(T,A){S(R,T,A)})}):o.forEach(function(R,T){R(function(A,F){S(T,A,F)})}):k(null),m=!1}});var bi=U(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var _r=process.versions.node.split(".");if(_r[0]===void 0||_r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var la=Number.parseInt(_r[0],10),Eb=Number.parseInt(_r[1],10),ha=10,Ab=10,Rb=la>ha,jb=la===ha&&Eb>=Ab;dr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Rb||jb});var _a=U(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.createDirentFromStats=void 0;var mi=class{constructor(r,a){this.name=r,this.isBlockDevice=a.isBlockDevice.bind(a),this.isCharacterDevice=a.isCharacterDevice.bind(a),this.isDirectory=a.isDirectory.bind(a),this.isFIFO=a.isFIFO.bind(a),this.isFile=a.isFile.bind(a),this.isSocket=a.isSocket.bind(a),this.isSymbolicLink=a.isSymbolicLink.bind(a)}};function Pb(o,r){return new mi(o,r)}pr.createDirentFromStats=Pb});var wi=U(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.fs=void 0;var Db=_a();vr.fs=Db});var ki=U(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.joinPathSegments=void 0;function Tb(o,r,a){return o.endsWith(a)?o+r:o+a+r}gr.joinPathSegments=Tb});var ba=U(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.readdir=rt.readdirWithFileTypes=rt.read=void 0;var Ib=ht(),da=fa(),Cb=bi(),pa=wi(),va=ki();function Ob(o,r,a){if(!r.stats&&Cb.IS_SUPPORT_READDIR_WITH_FILE_TYPES){ga(o,r,a);return}ya(o,r,a)}rt.read=Ob;function ga(o,r,a){r.fs.readdir(o,{withFileTypes:!0},(h,_)=>{if(h!==null){yr(a,h);return}let m=_.map(S=>({dirent:S,name:S.name,path:va.joinPathSegments(o,S.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks){Si(a,m);return}let k=m.map(S=>Fb(S,r));da(k,(S,R)=>{if(S!==null){yr(a,S);return}Si(a,R)})})}rt.readdirWithFileTypes=ga;function Fb(o,r){return a=>{if(!o.dirent.isSymbolicLink()){a(null,o);return}r.fs.stat(o.path,(h,_)=>{if(h!==null){if(r.throwErrorOnBrokenSymbolicLink){a(h);return}a(null,o);return}o.dirent=pa.fs.createDirentFromStats(o.name,_),a(null,o)})}}function ya(o,r,a){r.fs.readdir(o,(h,_)=>{if(h!==null){yr(a,h);return}let m=_.map(k=>{let S=va.joinPathSegments(o,k,r.pathSegmentSeparator);return R=>{Ib.stat(S,r.fsStatSettings,(T,A)=>{if(T!==null){R(T);return}let F={name:k,path:S,dirent:pa.fs.createDirentFromStats(k,A)};r.stats&&(F.stats=A),R(null,F)})}});da(m,(k,S)=>{if(k!==null){yr(a,k);return}Si(a,S)})})}rt.readdir=ya;function yr(o,r){o(r)}function Si(o,r){o(null,r)}});var Ea=U(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.readdir=it.readdirWithFileTypes=it.read=void 0;var xb=ht(),Mb=bi(),ma=wi(),wa=ki();function Bb(o,r){return!r.stats&&Mb.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ka(o,r):Sa(o,r)}it.read=Bb;function ka(o,r){return r.fs.readdirSync(o,{withFileTypes:!0}).map(h=>{let _={dirent:h,name:h.name,path:wa.joinPathSegments(o,h.name,r.pathSegmentSeparator)};if(_.dirent.isSymbolicLink()&&r.followSymbolicLinks)try{let m=r.fs.statSync(_.path);_.dirent=ma.fs.createDirentFromStats(_.name,m)}catch(m){if(r.throwErrorOnBrokenSymbolicLink)throw m}return _})}it.readdirWithFileTypes=ka;function Sa(o,r){return r.fs.readdirSync(o).map(h=>{let _=wa.joinPathSegments(o,h,r.pathSegmentSeparator),m=xb.statSync(_,r.fsStatSettings),k={name:h,path:_,dirent:ma.fs.createDirentFromStats(h,m)};return r.stats&&(k.stats=m),k})}it.readdir=Sa});var Aa=U(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.createFileSystemAdapter=nt.FILE_SYSTEM_ADAPTER=void 0;var kt=require("fs");nt.FILE_SYSTEM_ADAPTER={lstat:kt.lstat,stat:kt.stat,lstatSync:kt.lstatSync,statSync:kt.statSync,readdir:kt.readdir,readdirSync:kt.readdirSync};function Lb(o){return o===void 0?nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},nt.FILE_SYSTEM_ADAPTER),o)}nt.createFileSystemAdapter=Lb});var Ra=U(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var Hb=require("path"),Ub=ht(),Nb=Aa(),Ei=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Nb.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Hb.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Ub.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,a){return r??a}};Ai.default=Ei});var br=U(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.Settings=st.scandirSync=st.scandir=void 0;var ja=ba(),Wb=Ea(),Ri=Ra();st.Settings=Ri.default;function $b(o,r,a){if(typeof r=="function"){ja.read(o,ji(),r);return}ja.read(o,ji(r),a)}st.scandir=$b;function qb(o,r){let a=ji(r);return Wb.read(o,a)}st.scandirSync=qb;function ji(o={}){return o instanceof Ri.default?o:new Ri.default(o)}});var Da=U((Zk,Pa)=>{"use strict";function Gb(o){var r=new o,a=r;function h(){var m=r;return m.next?r=m.next:(r=new o,a=r),m.next=null,m}function _(m){a.next=m,a=m}return{get:h,release:_}}Pa.exports=Gb});var Ia=U((zk,Pi)=>{"use strict";var Kb=Da();function Ta(o,r,a){if(typeof o=="function"&&(a=r,r=o,o=null),!(a>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var h=Kb(Vb),_=null,m=null,k=0,S=null,R={push:M,drain:Le,saturated:Le,pause:A,paused:!1,get concurrency(){return a},set concurrency(Q){if(!(Q>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(a=Q,!R.paused)for(;_&&k<a;)k++,ie()},running:T,resume:X,idle:B,length:F,getQueue:I,unshift:re,empty:Le,kill:ge,killAndDrain:ce,error:Ee};return R;function T(){return k}function A(){R.paused=!0}function F(){for(var Q=_,ae=0;Q;)Q=Q.next,ae++;return ae}function I(){for(var Q=_,ae=[];Q;)ae.push(Q.value),Q=Q.next;return ae}function X(){if(R.paused){if(R.paused=!1,_===null){k++,ie();return}for(;_&&k<a;)k++,ie()}}function B(){return k===0&&R.length()===0}function M(Q,ae){var K=h.get();K.context=o,K.release=ie,K.value=Q,K.callback=ae||Le,K.errorHandler=S,k>=a||R.paused?m?(m.next=K,m=K):(_=K,m=K,R.saturated()):(k++,r.call(o,K.value,K.worked))}function re(Q,ae){var K=h.get();K.context=o,K.release=ie,K.value=Q,K.callback=ae||Le,K.errorHandler=S,k>=a||R.paused?_?(K.next=_,_=K):(_=K,m=K,R.saturated()):(k++,r.call(o,K.value,K.worked))}function ie(Q){Q&&h.release(Q);var ae=_;ae&&k<=a?R.paused?k--:(m===_&&(m=null),_=ae.next,ae.next=null,r.call(o,ae.value,ae.worked),m===null&&R.empty()):--k===0&&R.drain()}function ge(){_=null,m=null,R.drain=Le}function ce(){_=null,m=null,R.drain(),R.drain=Le}function Ee(Q){S=Q}}function Le(){}function Vb(){this.value=null,this.callback=Le,this.next=null,this.release=Le,this.context=null,this.errorHandler=null;var o=this;this.worked=function(a,h){var _=o.callback,m=o.errorHandler,k=o.value;o.value=null,o.callback=Le,o.errorHandler&&m(a,k),_.call(o.context,a,h),o.release(o)}}function Xb(o,r,a){typeof o=="function"&&(a=r,r=o,o=null);function h(A,F){r.call(this,A).then(function(I){F(null,I)},F)}var _=Ta(o,h,a),m=_.push,k=_.unshift;return _.push=S,_.unshift=R,_.drained=T,_;function S(A){var F=new Promise(function(I,X){m(A,function(B,M){if(B){X(B);return}I(M)})});return F.catch(Le),F}function R(A){var F=new Promise(function(I,X){k(A,function(B,M){if(B){X(B);return}I(M)})});return F.catch(Le),F}function T(){var A=new Promise(function(F){process.nextTick(function(){if(_.idle())F();else{var I=_.drain;_.drain=function(){typeof I=="function"&&I(),F(),_.drain=I}}})});return A}}Pi.exports=Ta;Pi.exports.promise=Xb});var mr=U(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.joinPathSegments=qe.replacePathSegmentSeparator=qe.isAppliedFilter=qe.isFatalError=void 0;function Qb(o,r){return o.errorFilter===null?!0:!o.errorFilter(r)}qe.isFatalError=Qb;function Yb(o,r){return o===null||o(r)}qe.isAppliedFilter=Yb;function Jb(o,r){return o.split(/[/\\]/).join(r)}qe.replacePathSegmentSeparator=Jb;function Zb(o,r,a){return o===""?r:o.endsWith(a)?o+r:o+a+r}qe.joinPathSegments=Zb});var Ii=U(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});var zb=mr(),Di=class{constructor(r,a){this._root=r,this._settings=a,this._root=zb.replacePathSegmentSeparator(r,a.pathSegmentSeparator)}};Ti.default=Di});var Fi=U(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});var em=require("events"),tm=br(),rm=Ia(),wr=mr(),im=Ii(),Ci=class extends im.default{constructor(r,a){super(r,a),this._settings=a,this._scandir=tm.scandir,this._emitter=new em.EventEmitter,this._queue=rm(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,a){let h={directory:r,base:a};this._queue.push(h,_=>{_!==null&&this._handleError(_)})}_worker(r,a){this._scandir(r.directory,this._settings.fsScandirSettings,(h,_)=>{if(h!==null){a(h,void 0);return}for(let m of _)this._handleEntry(m,r.base);a(null,void 0)})}_handleError(r){this._isDestroyed||!wr.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,a){if(this._isDestroyed||this._isFatalError)return;let h=r.path;a!==void 0&&(r.path=wr.joinPathSegments(a,r.name,this._settings.pathSegmentSeparator)),wr.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&wr.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(h,a===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};Oi.default=Ci});var Ca=U(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});var nm=Fi(),xi=class{constructor(r,a){this._root=r,this._settings=a,this._reader=new nm.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(a=>{sm(r,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{om(r,this._storage)}),this._reader.read()}};Mi.default=xi;function sm(o,r){o(r)}function om(o,r){o(null,r)}});var Oa=U(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});var am=require("stream"),cm=Fi(),Bi=class{constructor(r,a){this._root=r,this._settings=a,this._reader=new cm.default(this._root,this._settings),this._stream=new am.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Li.default=Bi});var Fa=U(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});var um=br(),kr=mr(),fm=Ii(),Hi=class extends fm.default{constructor(){super(...arguments),this._scandir=um.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(r,a){this._queue.add({directory:r,base:a})}_handleQueue(){for(let r of this._queue.values())this._handleDirectory(r.directory,r.base)}_handleDirectory(r,a){try{let h=this._scandir(r,this._settings.fsScandirSettings);for(let _ of h)this._handleEntry(_,a)}catch(h){this._handleError(h)}}_handleError(r){if(kr.isFatalError(this._settings,r))throw r}_handleEntry(r,a){let h=r.path;a!==void 0&&(r.path=kr.joinPathSegments(a,r.name,this._settings.pathSegmentSeparator)),kr.isAppliedFilter(this._settings.entryFilter,r)&&this._pushToStorage(r),r.dirent.isDirectory()&&kr.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(h,a===void 0?void 0:r.path)}_pushToStorage(r){this._storage.push(r)}};Ui.default=Hi});var xa=U(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var lm=Fa(),Ni=class{constructor(r,a){this._root=r,this._settings=a,this._reader=new lm.default(this._root,this._settings)}read(){return this._reader.read()}};Wi.default=Ni});var Ma=U(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var hm=require("path"),_m=br(),$i=class{constructor(r={}){this._options=r,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,hm.sep),this.fsScandirSettings=new _m.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,a){return r??a}};qi.default=$i});var Er=U(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.Settings=Ge.walkStream=Ge.walkSync=Ge.walk=void 0;var Ba=Ca(),dm=Oa(),pm=xa(),Gi=Ma();Ge.Settings=Gi.default;function vm(o,r,a){if(typeof r=="function"){new Ba.default(o,Sr()).read(r);return}new Ba.default(o,Sr(r)).read(a)}Ge.walk=vm;function gm(o,r){let a=Sr(r);return new pm.default(o,a).read()}Ge.walkSync=gm;function ym(o,r){let a=Sr(r);return new dm.default(o,a).read()}Ge.walkStream=ym;function Sr(o={}){return o instanceof Gi.default?o:new Gi.default(o)}});var Ar=U(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});var bm=require("path"),mm=ht(),La=Qe(),Ki=class{constructor(r){this._settings=r,this._fsStatSettings=new mm.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return bm.resolve(this._settings.cwd,r)}_makeEntry(r,a){let h={name:a,path:a,dirent:La.fs.createDirentFromStats(a,r)};return this._settings.stats&&(h.stats=r),h}_isFatalError(r){return!La.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}};Vi.default=Ki});var Yi=U(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});var wm=require("stream"),km=ht(),Sm=Er(),Em=Ar(),Xi=class extends Em.default{constructor(){super(...arguments),this._walkStream=Sm.walkStream,this._stat=km.stat}dynamic(r,a){return this._walkStream(r,a)}static(r,a){let h=r.map(this._getFullEntryPath,this),_=new wm.PassThrough({objectMode:!0});_._write=(m,k,S)=>this._getEntry(h[m],r[m],a).then(R=>{R!==null&&a.entryFilter(R)&&_.push(R),m===h.length-1&&_.end(),S()}).catch(S);for(let m=0;m<h.length;m++)_.write(m);return _}_getEntry(r,a,h){return this._getStat(r).then(_=>this._makeEntry(_,a)).catch(_=>{if(h.errorFilter(_))return null;throw _})}_getStat(r){return new Promise((a,h)=>{this._stat(r,this._fsStatSettings,(_,m)=>_===null?a(m):h(_))})}};Qi.default=Xi});var Ha=U(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});var Am=Er(),Rm=Ar(),jm=Yi(),Ji=class extends Rm.default{constructor(){super(...arguments),this._walkAsync=Am.walk,this._readerStream=new jm.default(this._settings)}dynamic(r,a){return new Promise((h,_)=>{this._walkAsync(r,a,(m,k)=>{m===null?h(k):_(m)})})}async static(r,a){let h=[],_=this._readerStream.static(r,a);return new Promise((m,k)=>{_.once("error",k),_.on("data",S=>h.push(S)),_.once("end",()=>m(h))})}};Zi.default=Ji});var Ua=U(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});var Ft=Qe(),zi=class{constructor(r,a,h){this._patterns=r,this._settings=a,this._micromatchOptions=h,this._storage=[],this._fillStorage()}_fillStorage(){for(let r of this._patterns){let a=this._getPatternSegments(r),h=this._splitSegmentsIntoSections(a);this._storage.push({complete:h.length<=1,pattern:r,segments:a,sections:h})}}_getPatternSegments(r){return Ft.pattern.getPatternParts(r,this._micromatchOptions).map(h=>Ft.pattern.isDynamicPattern(h,this._settings)?{dynamic:!0,pattern:h,patternRe:Ft.pattern.makeRe(h,this._micromatchOptions)}:{dynamic:!1,pattern:h})}_splitSegmentsIntoSections(r){return Ft.array.splitWhen(r,a=>a.dynamic&&Ft.pattern.hasGlobStar(a.pattern))}};en.default=zi});var Na=U(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});var Pm=Ua(),tn=class extends Pm.default{match(r){let a=r.split("/"),h=a.length,_=this._storage.filter(m=>!m.complete||m.segments.length>h);for(let m of _){let k=m.sections[0];if(!m.complete&&h>k.length||a.every((R,T)=>{let A=m.segments[T];return!!(A.dynamic&&A.patternRe.test(R)||!A.dynamic&&A.pattern===R)}))return!0}return!1}};rn.default=tn});var Wa=U(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});var Rr=Qe(),Dm=Na(),nn=class{constructor(r,a){this._settings=r,this._micromatchOptions=a}getFilter(r,a,h){let _=this._getMatcher(a),m=this._getNegativePatternsRe(h);return k=>this._filter(r,k,_,m)}_getMatcher(r){return new Dm.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let a=r.filter(Rr.pattern.isAffectDepthOfReadingPattern);return Rr.pattern.convertPatternsToRe(a,this._micromatchOptions)}_filter(r,a,h,_){if(this._isSkippedByDeep(r,a.path)||this._isSkippedSymbolicLink(a))return!1;let m=Rr.path.removeLeadingDotSegment(a.path);return this._isSkippedByPositivePatterns(m,h)?!1:this._isSkippedByNegativePatterns(m,_)}_isSkippedByDeep(r,a){return this._settings.deep===1/0?!1:this._getEntryLevel(r,a)>=this._settings.deep}_getEntryLevel(r,a){let h=a.split("/").length;if(r==="")return h;let _=r.split("/").length;return h-_}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,a){return!this._settings.baseNameMatch&&!a.match(r)}_isSkippedByNegativePatterns(r,a){return!Rr.pattern.matchAny(r,a)}};sn.default=nn});var $a=U(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});var ot=Qe(),on=class{constructor(r,a){this._settings=r,this._micromatchOptions=a,this.index=new Map}getFilter(r,a){let[h,_]=ot.pattern.partitionAbsoluteAndRelative(a),m={positive:{all:ot.pattern.convertPatternsToRe(r,this._micromatchOptions)},negative:{absolute:ot.pattern.convertPatternsToRe(h,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:ot.pattern.convertPatternsToRe(_,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return k=>this._filter(k,m)}_filter(r,a){let h=ot.path.removeLeadingDotSegment(r.path);if(this._settings.unique&&this._isDuplicateEntry(h)||this._onlyFileFilter(r)||this._onlyDirectoryFilter(r))return!1;let _=this._isMatchToPatternsSet(h,a,r.dirent.isDirectory());return this._settings.unique&&_&&this._createIndexRecord(h),_}_isDuplicateEntry(r){return this.index.has(r)}_createIndexRecord(r){this.index.set(r,void 0)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isMatchToPatternsSet(r,a,h){return!(!this._isMatchToPatterns(r,a.positive.all,h)||this._isMatchToPatterns(r,a.negative.relative,h)||this._isMatchToAbsoluteNegative(r,a.negative.absolute,h))}_isMatchToAbsoluteNegative(r,a,h){if(a.length===0)return!1;let _=ot.path.makeAbsolute(this._settings.cwd,r);return this._isMatchToPatterns(_,a,h)}_isMatchToPatterns(r,a,h){if(a.length===0)return!1;let _=ot.pattern.matchAny(r,a);return!_&&h?ot.pattern.matchAny(r+"/",a):_}};an.default=on});var qa=U(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});var Tm=Qe(),cn=class{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return Tm.errno.isEnoentCodeError(r)||this._settings.suppressErrors}};un.default=cn});var Ka=U(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});var Ga=Qe(),fn=class{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let a=r.path;return this._settings.absolute&&(a=Ga.path.makeAbsolute(this._settings.cwd,a),a=Ga.path.unixify(a)),this._settings.markDirectories&&r.dirent.isDirectory()&&(a+="/"),this._settings.objectMode?Object.assign(Object.assign({},r),{path:a}):a}};ln.default=fn});var jr=U(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});var Im=require("path"),Cm=Wa(),Om=$a(),Fm=qa(),xm=Ka(),hn=class{constructor(r){this._settings=r,this.errorFilter=new Fm.default(this._settings),this.entryFilter=new Om.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Cm.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new xm.default(this._settings)}_getRootDirectory(r){return Im.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let a=r.base==="."?"":r.base;return{basePath:a,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(a,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};_n.default=hn});var Va=U(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});var Mm=Ha(),Bm=jr(),dn=class extends Bm.default{constructor(){super(...arguments),this._reader=new Mm.default(this._settings)}async read(r){let a=this._getRootDirectory(r),h=this._getReaderOptions(r);return(await this.api(a,r,h)).map(m=>h.transform(m))}api(r,a,h){return a.dynamic?this._reader.dynamic(r,h):this._reader.static(a.patterns,h)}};pn.default=dn});var Xa=U(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});var Lm=require("stream"),Hm=Yi(),Um=jr(),vn=class extends Um.default{constructor(){super(...arguments),this._reader=new Hm.default(this._settings)}read(r){let a=this._getRootDirectory(r),h=this._getReaderOptions(r),_=this.api(a,r,h),m=new Lm.Readable({objectMode:!0,read:()=>{}});return _.once("error",k=>m.emit("error",k)).on("data",k=>m.emit("data",h.transform(k))).once("end",()=>m.emit("end")),m.once("close",()=>_.destroy()),m}api(r,a,h){return a.dynamic?this._reader.dynamic(r,h):this._reader.static(a.patterns,h)}};gn.default=vn});var Qa=U(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});var Nm=ht(),Wm=Er(),$m=Ar(),yn=class extends $m.default{constructor(){super(...arguments),this._walkSync=Wm.walkSync,this._statSync=Nm.statSync}dynamic(r,a){return this._walkSync(r,a)}static(r,a){let h=[];for(let _ of r){let m=this._getFullEntryPath(_),k=this._getEntry(m,_,a);k===null||!a.entryFilter(k)||h.push(k)}return h}_getEntry(r,a,h){try{let _=this._getStat(r);return this._makeEntry(_,a)}catch(_){if(h.errorFilter(_))return null;throw _}}_getStat(r){return this._statSync(r,this._fsStatSettings)}};bn.default=yn});var Ya=U(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});var qm=Qa(),Gm=jr(),mn=class extends Gm.default{constructor(){super(...arguments),this._reader=new qm.default(this._settings)}read(r){let a=this._getRootDirectory(r),h=this._getReaderOptions(r);return this.api(a,r,h).map(h.transform)}api(r,a,h){return a.dynamic?this._reader.dynamic(r,h):this._reader.static(a.patterns,h)}};wn.default=mn});var Ja=U(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var St=require("fs"),Km=require("os"),Vm=Math.max(Km.cpus().length,1);Et.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:St.lstat,lstatSync:St.lstatSync,stat:St.stat,statSync:St.statSync,readdir:St.readdir,readdirSync:St.readdirSync};var kn=class{constructor(r={}){this._options=r,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Vm),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(r,a){return r===void 0?a:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},Et.DEFAULT_FILE_SYSTEM_ADAPTER),r)}};Et.default=kn});var ec=U((ES,za)=>{"use strict";var Za=zo(),Xm=Va(),Qm=Xa(),Ym=Ya(),Sn=Ja(),He=Qe();async function En(o,r){Ne(o);let a=An(o,Xm.default,r),h=await Promise.all(a);return He.array.flatten(h)}(function(o){o.glob=o,o.globSync=r,o.globStream=a,o.async=o;function r(T,A){Ne(T);let F=An(T,Ym.default,A);return He.array.flatten(F)}o.sync=r;function a(T,A){Ne(T);let F=An(T,Qm.default,A);return He.stream.merge(F)}o.stream=a;function h(T,A){Ne(T);let F=[].concat(T),I=new Sn.default(A);return Za.generate(F,I)}o.generateTasks=h;function _(T,A){Ne(T);let F=new Sn.default(A);return He.pattern.isDynamicPattern(T,F)}o.isDynamicPattern=_;function m(T){return Ne(T),He.path.escape(T)}o.escapePath=m;function k(T){return Ne(T),He.path.convertPathToPattern(T)}o.convertPathToPattern=k;let S;(function(T){function A(I){return Ne(I),He.path.escapePosixPath(I)}T.escapePath=A;function F(I){return Ne(I),He.path.convertPosixPathToPattern(I)}T.convertPathToPattern=F})(S=o.posix||(o.posix={}));let R;(function(T){function A(I){return Ne(I),He.path.escapeWindowsPath(I)}T.escapePath=A;function F(I){return Ne(I),He.path.convertWindowsPathToPattern(I)}T.convertPathToPattern=F})(R=o.win32||(o.win32={}))})(En||(En={}));function An(o,r,a){let h=[].concat(o),_=new Sn.default(a),m=Za.generate(h,_),k=new r(_);return m.map(k.read,k)}function Ne(o){if(![].concat(o).every(h=>He.string.isString(h)&&!He.string.isEmpty(h)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}za.exports=En});var Jm={};N0(Jm,{registerWorker:()=>rc});module.exports=W0(Jm);var qt=class{constructor(r,a){this._bindings=r,this._conn=a}close(){this._bindings.disconnect(this._conn)}useUnsafe(r){return r(this._bindings,this._conn)}query(r){return this._bindings.runQuery(this._conn,r)}async send(r,a=!1){let h=this._bindings.startPendingQuery(this._conn,r,a);for(;h==null;)h=await new Promise((_,m)=>{try{_(this._bindings.pollPendingQuery(this._conn))}catch(k){console.log(k),k.message.includes("worker is not set!")?m(new Error("Worker has been terminated")):m(k)}});return new Gt(this._bindings,this._conn,h)}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(r){return this._bindings.getTableNames(this._conn,r)}prepare(r){let a=this._bindings.createPrepared(this._conn,r);return new Mr(this._bindings,this._conn,a)}insertArrowFromIPCStream(r,a){this._bindings.insertArrowFromIPCStream(this._conn,r,a)}insertCSVFromPath(r,a){this._bindings.insertCSVFromPath(this._conn,r,a)}insertJSONFromPath(r,a){this._bindings.insertJSONFromPath(this._conn,r,a)}},Gt=class{constructor(r,a,h){this.bindings=r;this.conn=a;this.header=h;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 r=null;do r=this.bindings.fetchQueryResults(this.conn);while(r==null);return this._depleted=r.length==0,{done:this._depleted,value:r}}[Symbol.iterator](){return this}},Mr=class{constructor(r,a,h){this.bindings=r,this.connectionId=a,this.statementId=h}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...r){return this.bindings.runPrepared(this.connectionId,this.statementId,r)}send(...r){let a=this.bindings.sendPrepared(this.connectionId,this.statementId,r);return new Gt(this.bindings,this.connectionId,a)}};function es(o){return o<=255}function ts(o){return o===256}var ns=new TextEncoder,rs=new TextDecoder("utf-8");function Br(o,r,a){let h=ns.encode(a),_=o._malloc(h.byteLength),m=o.HEAPU8.subarray(_,_+h.byteLength);m.set(h),o.HEAPF64[(r>>3)+0]=1,o.HEAPF64[(r>>3)+1]=_,o.HEAPF64[(r>>3)+2]=m.byteLength}function Hr(o){switch(o){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 Lr(o,r,a,h){let _=o.HEAPU8.subarray(r,r+h*Hr(a));switch(a){case"UINT8":return new Uint8Array(_.buffer,_.byteOffset,h);case"INT8":return new Int8Array(_.buffer,_.byteOffset,h);case"INT32":return new Int32Array(_.buffer,_.byteOffset,h);case"FLOAT":return new Float32Array(_.buffer,_.byteOffset,h);case"DOUBLE":return new Float64Array(_.buffer,_.byteOffset,h);case"VARCHAR":return new Float64Array(_.buffer,_.byteOffset,h);default:return new Array(0)}}function is(o,r,a){let h=o.HEAPU8.subarray(r,r+a);return new Uint8Array(h.buffer,h.byteOffset,a)}function Kt(o,r,a){let h=o.HEAPU8.subarray(r,r+a*8);return new Float64Array(h.buffer,h.byteOffset,a)}function ss(o,r,a,h,_,m,k,S){try{let R=o._udfFunctions.get(h);if(!R){Br(r,a,"Unknown UDF with id: "+h);return}let T=rs.decode(r.HEAPU8.subarray(_,_+m)),A=JSON.parse(T),F=Kt(r,k,S/8),I=N=>{var C;let ne=null;switch(N.validityBuffer!==void 0&&(ne=is(r,F[N.validityBuffer],A.rows)),N.physicalType){case"VARCHAR":{if(N.dataBuffer===null||N.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(N.lengthBuffer===null||N.lengthBuffer===void 0)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let V=Lr(r,F[N.dataBuffer],N.physicalType,A.rows),q=[],ue=Kt(r,F[N.lengthBuffer],A.rows);for(let P=0;P<A.rows;++P){if(ne!=null&&!ne[P]){q.push(null);continue}let E=r.HEAPU8.subarray(V[P],V[P]+ue[P]),J=rs.decode(E);q.push(J)}return P=>q[P]}case"STRUCT":{let V={},q=[];for(let ue=0;ue<(((C=N.children)==null?void 0:C.length)||0);++ue){let P=N.children[ue],E=I(P);q.push(J=>{V[P.name]=E(J)})}return ne!=null?ue=>{if(!ne[ue])return null;for(let P of q)P(ue);return V}:ue=>{for(let P of q)P(ue);return V}}default:{if(N.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for argument of type: "+N.physicalType);let V=Lr(r,F[N.dataBuffer],N.physicalType,A.rows);return ne!=null?q=>ne[q]?V[q]:null:q=>V[q]}}},X=[];for(let N=0;N<A.args.length;++N)X.push(I(A.args[N]));let B=A.rows*Hr(A.ret.physicalType),M=r._malloc(B),re=Lr(r,M,A.ret.physicalType,A.rows),ie=r._malloc(A.rows),ge=is(r,ie,A.rows);if(re.length==0||ge.length==0){Br(r,a,"Can't create physical arrays for result");return}let ce=re;A.ret.physicalType=="VARCHAR"&&(ce=new Array(A.rows));let Ee=[];for(let N=0;N<A.args.length;++N)Ee.push(null);for(let N=0;N<A.rows;++N){for(let C=0;C<A.args.length;++C)Ee[C]=X[C](N);let ne=R.func(...Ee);ce[N]=ne,ge[N]=ne==null?0:1}let Q=0;switch(A.ret.physicalType){case"VARCHAR":{let N=new Array(0);Q=r._malloc(A.rows*Hr("DOUBLE"));let ne=Kt(r,Q,A.rows),C=0;for(let P=0;P<A.rows;++P){let E=ns.encode(ce[P]||"");N.push(E),ne[P]=E.length,C+=E.length}let V=r._malloc(C),q=r.HEAPU8.subarray(V,V+C),ue=0;for(let P=0;P<A.rows;++P){re[P]=ue;let E=N[P];q.subarray(ue,ue+E.length).set(E),ue+=E.length}}}let ae=3*8,K=r._malloc(ae),$=Kt(r,K,3);$[0]=M,$[1]=ie,$[2]=Q,r.HEAPF64[(a>>3)+0]=0,r.HEAPF64[(a>>3)+1]=K,r.HEAPF64[(a>>3)+2]=0}catch(R){Br(r,a,R.toString())}}function q0(){let o=new TextDecoder;return r=>(typeof SharedArrayBuffer<"u"&&r.buffer instanceof SharedArrayBuffer&&(r=new Uint8Array(r)),o.decode(r))}var ct=q0();function ye(o,r){console.error(`FAIL WITH: ${r}`),o.ccall("duckdb_web_fail_with",null,["string"],[r])}function vt(o){let r=o.wasmMemory;if(r&&r.buffer!==o.HEAPU8.buffer){let a=r.buffer;o.HEAPU8=new Uint8Array(a),o.HEAPF64=new Float64Array(a)}}function ut(o,r,a){vt(o);let h=new Uint8Array(o.HEAPU8.buffer,r,a),_=new Uint8Array(new ArrayBuffer(h.byteLength));return _.set(h),_}function te(o,r,a){return vt(o),ct(new Uint8Array(o.HEAPU8.buffer,r,a))}function _e(o,r,a,h){let _=o.stackSave(),m=o.stackAlloc(3*8);a.unshift("number"),h.unshift(m),o.ccall(r,null,a,h),vt(o);let k=o.HEAPF64[(m>>3)+0],S=o.HEAPF64[(m>>3)+1],R=o.HEAPF64[(m>>3)+2];return o.stackRestore(_),[k,S,R]}function de(o){o.ccall("duckdb_web_clear_response",null,[],[])}var Vt=class{constructor(r){let a=new Float64Array(r.buffer,r.byteOffset,r.byteLength/8),h=new Uint8Array(new ArrayBuffer(r.byteLength));h.set(r.subarray(7*8)),this.totalFileReadsCold=a[0],this.totalFileReadsAhead=a[1],this.totalFileReadsCached=a[2],this.totalFileWrites=a[3],this.totalPageAccesses=a[4],this.totalPageLoads=a[5],this.blockSize=a[6],this.blockStats=h}getBlockStats(r,a){return a=a||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},a.file_writes=this.blockStats[r*3+0]&15,a.file_reads_cold=this.blockStats[r*3+0]>>4,a.file_reads_ahead=this.blockStats[r*3+1]&15,a.file_reads_cached=this.blockStats[r*3+1]>>4,a.page_accesses=this.blockStats[r*3+1]&15,a.page_loads=this.blockStats[r*3+1]>>4,a}};var gt=new TextEncoder;function Te(o){return o!==0}var Xt=class{constructor(r,a){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=r,this._runtime=a,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(r=a=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(r),await this._initPromise),this._initPromise=new Promise(a=>{this._initPromiseResolver=a}),this.onInstantiationProgress=[r],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(a=>a!=r),globalThis.DUCKDB_BINDINGS=this,this)}open(r){let[a,h,_]=_e(this.mod,"duckdb_web_open",["string"],[JSON.stringify(r)]);if(a!==0)throw new Error(te(this.mod,h,_));de(this.mod)}reset(){let[r,a,h]=_e(this.mod,"duckdb_web_reset",[],[]);if(r!==0)throw new Error(te(this.mod,a,h));de(this.mod)}getVersion(){let[r,a,h]=_e(this.mod,"duckdb_web_get_version",[],[]);if(r!==0)throw new Error(te(this.mod,a,h));let _=te(this.mod,a,h);return de(this.mod),_}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(r){let a=gt.encode(r),h=this.mod._malloc(a.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,h,a.length).set(a);let[m,k,S]=_e(this.mod,"duckdb_web_tokenize_buffer",["number","number"],[h,a.length]);if(this.mod._free(h),m!==0)throw new Error(te(this.mod,k,S));let R=te(this.mod,k,S);return de(this.mod),JSON.parse(R)}connect(){let r=this.mod.ccall("duckdb_web_connect","number",[],[]);return new qt(this,r)}disconnect(r){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[r]),this.pthread)for(let a of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])a.postMessage({cmd:"dropUDFFunctions",connectionId:r})}runQuery(r,a){let h=gt.encode(a),_=this.mod._malloc(h.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,_,h.length).set(h);let[k,S,R]=_e(this.mod,"duckdb_web_query_run_buffer",["number","number","number"],[r,_,h.length]);if(this.mod._free(_),k!==0)throw new Error(te(this.mod,S,R));let T=ut(this.mod,S,R);return de(this.mod),T}startPendingQuery(r,a,h=!1){let _=gt.encode(a),m=this.mod._malloc(_.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,m,_.length).set(_);let[S,R,T]=_e(this.mod,"duckdb_web_pending_query_start_buffer",["number","number","number","boolean"],[r,m,_.length,h]);if(this.mod._free(m),S!==0)throw new Error(te(this.mod,R,T));if(R==0)return null;let A=ut(this.mod,R,T);return de(this.mod),A}pollPendingQuery(r){let[a,h,_]=_e(this.mod,"duckdb_web_pending_query_poll",["number"],[r]);if(a!==0)throw new Error(te(this.mod,h,_));if(h==0)return null;let m=ut(this.mod,h,_);return de(this.mod),m}cancelPendingQuery(r){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[r])}fetchQueryResults(r){let[a,h,_]=_e(this.mod,"duckdb_web_query_fetch_results",["number"],[r]);if(ts(a))return de(this.mod),null;if(!es(a))throw new Error("Unexpected StatusCode from duckdb_web_query_fetch_results ("+a+") and with self reported error as"+te(this.mod,h,_));if(a!==0)throw new Error(te(this.mod,h,_));let m=ut(this.mod,h,_);return de(this.mod),m}getTableNames(r,a){let h=gt.encode(a),_=this.mod._malloc(h.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,_,h.length).set(h);let[k,S,R]=_e(this.mod,"duckdb_web_get_tablenames_buffer",["number","number","number"],[r,_,h.length]);if(this.mod._free(_),k!==0)throw new Error(te(this.mod,S,R));let T=te(this.mod,S,R);return de(this.mod),JSON.parse(T)}createPrepared(r,a){let h=gt.encode(a),_=this.mod._malloc(h.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,_,h.length).set(h);let[k,S,R]=_e(this.mod,"duckdb_web_prepared_create_buffer",["number","number","number"],[r,_,h.length]);if(this.mod._free(_),Te(k))throw new Error(te(this.mod,S,R));return de(this.mod),S}closePrepared(r,a){let[h,_,m]=_e(this.mod,"duckdb_web_prepared_close",["number","number"],[r,a]);if(Te(h))throw new Error(te(this.mod,_,m));de(this.mod)}runPrepared(r,a,h){let[_,m,k]=_e(this.mod,"duckdb_web_prepared_run",["number","number","string"],[r,a,JSON.stringify(h)]);if(Te(_))throw new Error(te(this.mod,m,k));let S=ut(this.mod,m,k);return de(this.mod),S}sendPrepared(r,a,h){let[_,m,k]=_e(this.mod,"duckdb_web_prepared_send",["number","number","string"],[r,a,JSON.stringify(h)]);if(Te(_))throw new Error(te(this.mod,m,k));let S=ut(this.mod,m,k);return de(this.mod),S}insertArrowFromIPCStream(r,a,h){if(a.length==0)return;let _=this.mod._malloc(a.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,_,a.length).set(a);let k=h?JSON.stringify(h):"",[S,R,T]=_e(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[r,_,a.length,k]);if(this.mod._free(_),S!==0)throw new Error(te(this.mod,R,T))}insertCSVFromPath(r,a,h){let _=JSON.stringify(h),[m,k,S]=_e(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[r,a,_]);if(Te(m))throw new Error(te(this.mod,k,S))}insertJSONFromPath(r,a,h){let _=JSON.stringify(h),[m,k,S]=_e(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[r,a,_]);if(Te(m))throw new Error(te(this.mod,k,S))}globFiles(r){let[a,h,_]=_e(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[r]);if(Te(a))throw new Error(te(this.mod,h,_));let m=te(this.mod,h,_);de(this.mod);let k=JSON.parse(m);return k??[]}registerFileURL(r,a,h,_=!1){a===void 0&&(a=r);let[m,k,S]=_e(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[r,a,h,_]);if(Te(m))throw new Error(te(this.mod,k,S));de(this.mod)}registerFileText(r,a){let h=gt.encode(a);this.registerFileBuffer(r,h)}registerFileBuffer(r,a){let h=this.mod._malloc(a.length)>>>0;new Uint8Array(this.mod.HEAPU8.buffer,h,a.length).set(a);let[m,k,S]=_e(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[r,h,a.length]);if(Te(m))throw new Error(te(this.mod,k,S));de(this.mod)}async prepareFileHandle(r,a){if(a===3&&this._runtime.prepareFileHandles){let h=await this._runtime.prepareFileHandles([r],3);for(let _ of h){let{handle:m,path:k,fromCached:S}=_;!S&&m.getSize()&&await this.registerFileHandleAsync(k,m,3,!0)}return}throw new Error(`prepareFileHandle: unsupported protocol ${a}`)}async prepareDBFileHandle(r,a){if(a===3&&this._runtime.prepareDBFileHandle){let h=await this._runtime.prepareDBFileHandle(r,3);for(let _ of h){let{handle:m,path:k,fromCached:S}=_;!S&&m.getSize()&&await this.registerFileHandleAsync(k,m,3,!0)}return}throw new Error(`prepareDBFileHandle: unsupported protocol ${a}`)}async prepareFileHandleAsync(r,a,h,_){if(h===3&&!(a instanceof FileSystemSyncAccessHandle)){if(a instanceof FileSystemFileHandle){let m=a;try{a=await m.createSyncAccessHandle()}catch(k){throw new Error(k.message+":"+r)}}else if(r!=null)try{a=await(await(await navigator.storage.getDirectory()).getFileHandle(r)).createSyncAccessHandle()}catch(m){throw new Error(m.message+":"+r)}}return a}async registerFileHandleAsync(r,a,h,_){let m=await this.prepareFileHandleAsync(r,a,h,_);this.registerFileHandle(r,m,h,_)}registerFileHandle(r,a,h,_){var R;let[m,k,S]=_e(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[r,r,h,_]);if(Te(m))throw new Error(te(this.mod,k,S));if(de(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(r,a),(R=globalThis.DUCKDB_RUNTIME._preparedHandles)!=null&&R[r]&&delete globalThis.DUCKDB_RUNTIME._preparedHandles[r],this.pthread){for(let T of this.pthread.runningWorkers)T.postMessage({cmd:"registerFileHandle",fileName:r,fileHandle:a});for(let T of this.pthread.unusedWorkers)T.postMessage({cmd:"dropFileHandle",fileName:r})}}dropFile(r){let[a,h,_]=_e(this.mod,"duckdb_web_fs_drop_file",["string"],[r]);if(Te(a))throw new Error(te(this.mod,h,_));de(this.mod)}dropFiles(r){let a=[],h=-1;try{for(let S of r??[])if(S!=null&&S.length>0){let R=this.mod.lengthBytesUTF8(S)+1,T=this.mod._malloc(R)>>>0;if(!T)throw new Error(`Failed to allocate memory for string: ${S}`);this.mod.stringToUTF8(S,T,R),a.push(T)}if(h=this.mod._malloc(a.length*4)>>>0,!h)throw new Error("Failed to allocate memory for pointers array");for(let S=0;S<a.length;S++)this.mod.HEAP32[(h>>2)+S]=a[S];let[_,m,k]=_e(this.mod,"duckdb_web_fs_drop_files",["number","number"],[h,a.length]);if(_!==0)throw new Error(te(this.mod,m,k));de(this.mod)}finally{for(let _ of a)this.mod._free(_);h>0&&this.mod._free(h)}}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(r,a){let[h,_,m]=_e(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[r,a]);if(Te(h))throw new Error(te(this.mod,_,m));de(this.mod)}copyFileToBuffer(r){let[a,h,_]=_e(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[r]);if(Te(a))throw new Error(te(this.mod,h,_));vt(this.mod);let m=new Uint8Array(this.mod.HEAPU8.buffer,h,_),k=new Uint8Array(m.length);return k.set(m),de(this.mod),k}async registerOPFSFileName(r){if(r.startsWith("opfs://"))return this.prepareFileHandle(r,3);throw new Error("Not an OPFS file name: "+r)}collectFileStatistics(r,a){let[h,_,m]=_e(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[r,a]);if(Te(h))throw new Error(te(this.mod,_,m))}exportFileStatistics(r){let[a,h,_]=_e(this.mod,"duckdb_web_export_file_stats",["string"],[r]);if(Te(a))throw new Error(te(this.mod,h,_));return vt(this.mod),new Vt(new Uint8Array(this.mod.HEAPU8.buffer,h,_))}};var Qt=class{constructor(){this._bindings=null;this._nextMessageId=0}log(r){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:r},[])}sendOK(r){this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"OK",data:null},[])}failWith(r,a){let h={name:a.name,message:a.message,stack:a.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"ERROR",data:h},[])}async onMessage(r){switch(r.type){case"PING":this.sendOK(r);return;case"INSTANTIATE":this._bindings!=null&&this.failWith(r,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(r.data[0],r.data[1],a=>{this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"INSTANTIATE_PROGRESS",data:a},[])}),this.sendOK(r)}catch(a){console.log(a),this._bindings=null,this.failWith(r,a)}return;default:break}if(!this._bindings)return this.failWith(r,new Error("duckdb is not initialized"));try{switch(r.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(r);break;case"OPEN":{let a=r.data.path,h=!!(this._bindings.getFeatureFlags()&2);if(a!=null&&a.startsWith("opfs://")&&!h){let _=globalThis.DUCKDB_RUNTIME;_!=null&&_.prepareDBFileHandle&&await _.prepareDBFileHandle(a,3),r.data.useDirectIO=!0}this._bindings.open(r.data),this.sendOK(r);break}case"DROP_FILE":this._bindings.dropFile(r.data),this.sendOK(r);break;case"DROP_FILES":this._bindings.dropFiles(r.data),this.sendOK(r);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(r);break;case"CONNECT":{let a=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"CONNECTION_INFO",data:a.useUnsafe((h,_)=>_)},[]);break}case"DISCONNECT":this._bindings.disconnect(r.data),this.sendOK(r);break;case"CREATE_PREPARED":{let a=this._bindings.createPrepared(r.data[0],r.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"PREPARED_STATEMENT_ID",data:a},[]);break}case"CLOSE_PREPARED":{this._bindings.closePrepared(r.data[0],r.data[1]),this.sendOK(r);break}case"RUN_PREPARED":{let a=this._bindings.runPrepared(r.data[0],r.data[1],r.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT",data:a},[a.buffer]);break}case"RUN_QUERY":{let a=this._bindings.runQuery(r.data[0],r.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT",data:a},[a.buffer]);break}case"SEND_PREPARED":{let a=this._bindings.sendPrepared(r.data[0],r.data[1],r.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT_HEADER",data:a},[a.buffer]);break}case"START_PENDING_QUERY":{let a=this._bindings.startPendingQuery(r.data[0],r.data[1],r.data[2]),h=[];a&&h.push(a.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:a},h);break}case"POLL_PENDING_QUERY":{let a=this._bindings.pollPendingQuery(r.data),h=[];a&&h.push(a.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:a},h);break}case"CANCEL_PENDING_QUERY":{let a=this._bindings.cancelPendingQuery(r.data);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"SUCCESS",data:a},[]);break}case"FETCH_QUERY_RESULTS":{let a=this._bindings.fetchQueryResults(r.data),h=a?[a.buffer]:[];this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT_CHUNK",data:a},h);break}case"GET_TABLE_NAMES":{let a=this._bindings.getTableNames(r.data[0],r.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"TABLE_NAMES",data:a},[]);break}case"GLOB_FILE_INFOS":{let a=this._bindings.globFiles(r.data);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"FILE_INFOS",data:a},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(r.data[0],r.data[1],r.data[2],r.data[3]),this.sendOK(r);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(r.data[0],r.data[1]),this.sendOK(r);break;case"REGISTER_FILE_HANDLE":await this._bindings.registerFileHandleAsync(r.data[0],r.data[1],r.data[2],r.data[3]),this.sendOK(r);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(r.data[0],r.data[1]),this.sendOK(r);break;case"COPY_FILE_TO_BUFFER":{let a=this._bindings.copyFileToBuffer(r.data);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"FILE_BUFFER",data:a},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(r.data[0],r.data[1]),this.sendOK(r);break;case"REGISTER_OPFS_FILE_NAME":await this._bindings.registerOPFSFileName(r.data[0]),this.sendOK(r);break;case"EXPORT_FILE_STATISTICS":{this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(r.data)},[]);break}case"INSERT_ARROW_FROM_IPC_STREAM":{this._bindings.insertArrowFromIPCStream(r.data[0],r.data[1],r.data[2]),this.sendOK(r);break}case"IMPORT_CSV_FROM_PATH":{this._bindings.insertCSVFromPath(r.data[0],r.data[1],r.data[2]),this.sendOK(r);break}case"IMPORT_JSON_FROM_PATH":{this._bindings.insertJSONFromPath(r.data[0],r.data[1],r.data[2]),this.sendOK(r);break}case"TOKENIZE":{let a=this._bindings.tokenize(r.data);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"SCRIPT_TOKENS",data:a},[]);break}}}catch(a){return console.log(a),this.failWith(r,a)}}};var us=Dt(Nr());var as=Dt(Nr());var cs=Dt(require("fs")),Jt=class extends Xt{constructor(r,a,h,_){super(r,a),this.mainModulePath=h,this.pthreadWorkerPath=_}locateFile(r,a){if(r.endsWith(".wasm"))return this.mainModulePath;if(r.endsWith(".worker.js")){if(!this.pthreadWorkerPath)throw new Error("Missing DuckDB worker path!");return this.pthreadWorkerPath}throw new Error(`WASM instantiation requested unexpected file: prefix=${a} path=${r}`)}instantiateWasm(r,a){globalThis.DUCKDB_RUNTIME={};for(let _ of Object.getOwnPropertyNames(this._runtime))_!="constructor"&&(globalThis.DUCKDB_RUNTIME[_]=Object.getOwnPropertyDescriptor(this._runtime,_).value);let h=cs.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(h,r).then(_=>{a(_.instance,_.module)}),{}}instantiateImpl(r){return(0,as.default)({...r,instantiateWasm:this.instantiateWasm.bind(this)})}};var Zt=class extends Jt{constructor(r,a,h,_=null){super(r,a,h,_)}instantiateImpl(r){return(0,us.default)({...r,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var Ae=Dt(require("fs"));var tc=Dt(ec());var ve={_files:new Map,_filesById:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(o,r){try{let a=ve._fileInfoCache.get(r),[h,_,m]=_e(o,"duckdb_web_fs_get_file_info_by_id",["number","number"],[r,(a==null?void 0:a.cacheEpoch)||0]);if(h!==0)return ye(o,te(o,_,m)),null;if(m===0)return de(o),a;let k=te(o,_,m);de(o);let S=JSON.parse(k);return S==null?null:(ve._fileInfoCache.set(r,S),S)}catch(a){return console.log(a),ye(o,a.toString()),null}},testPlatformFeature:(o,r)=>{switch(r){case 1:return typeof BigInt64Array<"u";default:return console.warn(`test for unknown feature: ${r}`),!1}},getDefaultDataProtocol(o){return 1},openFile(o,r,a){var h,_;try{ve._fileInfoCache.delete(r);let m=ve.resolveFileInfo(o,r);switch(m==null?void 0:m.dataProtocol){case 1:{let k=(h=ve._files)==null?void 0:h.get(m.dataUrl);if(k==null){if(a&128)return 0;k=Ae.default.openSync(m.dataUrl,Ae.default.constants.O_CREAT|Ae.default.constants.O_RDWR,Ae.default.constants.S_IRUSR|Ae.default.constants.S_IWUSR),(_=ve._filesById)==null||_.set(m.fileId,k)}let S=Ae.default.fstatSync(k).size,R=o._malloc(2*8);return o.HEAPF64[(R>>3)+0]=+S,o.HEAPF64[(R>>3)+1]=0,R}case 2:case 3:case 4:case 5:ye(o,"Unsupported data protocol")}}catch(m){console.log(m),ye(o,m.toString())}return 0},syncFile:(o,r)=>{},closeFile:(o,r)=>{try{let a=ve._fileInfoCache.get(r);switch(ve._fileInfoCache.delete(r),a==null?void 0:a.dataProtocol){case 1:{let h=ve._filesById.get(r);ve._filesById.delete(r),h!=null&&Ae.default.closeSync(h);break}case 2:case 3:case 4:case 5:break}}catch(a){console.log(a),ye(o,a.toString())}return 0},dropFile:(o,r,a)=>{},truncateFile:(o,r,a)=>{try{let h=ve.resolveFileInfo(o,r);switch(h==null?void 0:h.dataProtocol){case 1:{Ae.default.truncateSync(h.dataUrl,a);break}case 2:case 3:case 4:case 5:ye(o,"Unsupported data protocol")}}catch(h){console.log(h),ye(o,h.toString())}return 0},readFile:(o,r,a,h,_)=>{try{let m=ve.resolveFileInfo(o,r);switch(m==null?void 0:m.dataProtocol){case 1:{let k=ve._filesById.get(r);return k==null?(ye(o,`File ${r} is missing a file descriptor`),0):Ae.default.readSync(k,o.HEAPU8,a,h,_)}case 2:case 3:case 4:case 5:ye(o,"Unsupported data protocol")}}catch(m){console.log(m),ye(o,m.toString())}return 0},writeFile:(o,r,a,h,_)=>{try{let m=ve.resolveFileInfo(o,r);switch(m==null?void 0:m.dataProtocol){case 1:{let k=ve._filesById.get(r);if(k==null)return ye(o,`File ${r} is missing a file descriptor`),0;let S=o.HEAPU8.subarray(a,a+h);return Ae.default.writeSync(k,S,0,S.length,_)}case 2:case 3:case 4:case 5:ye(o,"Unsupported data protocol")}}catch(m){console.log(m),ye(o,m.toString())}return 0},progressUpdate:(o,r,a)=>{},getLastFileModificationTime:(o,r)=>{try{let a=ve.resolveFileInfo(o,r);switch(a==null?void 0:a.dataProtocol){case 1:{let h=ve._filesById.get(r);return h==null?(ye(o,`File ${r} is missing a file descriptor`),0):Ae.default.fstatSync(h).mtime.getTime()/1e3}case 2:case 3:case 4:case 5:ye(o,"Unsupported data protocol")}}catch(a){console.log(a),ye(o,a.toString())}return 0},checkDirectory:(o,r,a)=>{try{let h=ct(o.HEAPU8.subarray(r,r+a));return Ae.default.existsSync(h)}catch(h){return console.log(h),ye(o,h.toString()),!1}},createDirectory:(o,r,a)=>{try{let h=ct(o.HEAPU8.subarray(r,r+a));return Ae.default.mkdirSync(h)}catch(h){return console.log(h),ye(o,h.toString()),0}},removeDirectory:(o,r,a)=>{try{let h=ct(o.HEAPU8.subarray(r,r+a));return Ae.default.rmdirSync(h)}catch(h){return console.log(h),ye(o,h.toString()),0}},listDirectoryEntries:(o,r,a)=>(ye(o,"Not Implemented"),!1),glob:(o,r,a)=>{try{let h=te(o,r,a),_=tc.sync([h],{dot:!0});for(let m of _)o.ccall("duckdb_web_fs_glob_add_path",null,["string"],[m])}catch(h){return console.log(h),ye(o,h.toString()),0}},moveFile:(o,r,a,h,_)=>{var R,T;let m=te(o,r,a),k=te(o,h,_),S=(R=ve._files)==null?void 0:R.get(m);S!==void 0&&(ve._files.delete(S),ve._files.set(k,S));for(let[A,F]of((T=ve._fileInfoCache)==null?void 0:T.entries())||[])if(F.dataUrl==m){ve._fileInfoCache.delete(A);break}return!0},checkFile:(o,r,a)=>{try{let h=ct(o.HEAPU8.subarray(r,r+a));return Ae.default.existsSync(h)}catch(h){return console.log(h),ye(o,h.toString()),!1}},removeFile:(o,r,a)=>{try{let h=ct(o.HEAPU8.subarray(r,r+a));return Ae.default.rmSync(h)}catch(h){return console.log(h),ye(o,h.toString()),0}},callScalarUDF:(o,r,a,h,_,m,k)=>{ss(ve,o,r,a,h,_,m,k)}};var Rn=class extends Qt{postMessage(r,a){globalThis.postMessage(r,a)}async instantiate(r,a,h){return await new Zt(this,ve,r,a).instantiate(h)}};function rc(){let o=new Rn;globalThis.onmessage=async r=>{await o.onMessage(r.data)}}rc();0&&(module.exports={registerWorker});
1
+ "use strict";var cg=Object.create;var er=Object.defineProperty;var ug=Object.getOwnPropertyDescriptor;var lg=Object.getOwnPropertyNames;var _g=Object.getPrototypeOf,fg=Object.prototype.hasOwnProperty;var B=(s,r)=>()=>(r||s((r={exports:{}}).exports,r),r.exports),hg=(s,r)=>{for(var a in r)er(s,a,{get:r[a],enumerable:!0})},ms=(s,r,a,u)=>{if(r&&typeof r=="object"||typeof r=="function")for(let v of lg(r))!fg.call(s,v)&&v!==a&&er(s,v,{get:()=>r[v],enumerable:!(u=ug(r,v))||u.enumerable});return s};var ht=(s,r,a)=>(a=s!=null?cg(_g(s)):{},ms(r||!s||!s.__esModule?er(a,"default",{value:s,enumerable:!0}):a,s)),dg=s=>ms(er({},"__esModule",{value:!0}),s);var ei=B((Rs,Zr)=>{"use strict";var Es=(()=>{var r;var s=typeof document<"u"?(r=document.currentScript)==null?void 0:r.src:void 0;return typeof __filename<"u"&&(s||(s=__filename)),function(a={}){var u=a,v,m,b=new Promise((e,t)=>{v=e,m=t}),T=Object.assign({},u),k=[],D="./this.program",E=(e,t)=>{throw t},F=typeof window=="object",I=typeof importScripts=="function",te=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",M="";function U(e){return u.locateFile?u.locateFile(e,M):M+e}var K,z,ce;if(te){var fe=require("fs"),Se=require("path");I?M=Se.dirname(M)+"/":M=__dirname+"/",K=(e,t)=>(e=Un(e)?new URL(e):Se.normalize(e),fe.readFileSync(e,t?void 0:"utf8")),ce=e=>{var t=K(e,!0);return t.buffer||(t=new Uint8Array(t)),t},z=(e,t,i,n=!0)=>{e=Un(e)?new URL(e):Se.normalize(e),fe.readFile(e,n?void 0:"utf8",(o,c)=>{o?i(o):t(n?c.buffer:c)})},!u.thisProgram&&process.argv.length>1&&(D=process.argv[1].replace(/\\/g,"/")),k=process.argv.slice(2),E=(e,t)=>{throw process.exitCode=e,t}}else(F||I)&&(I?M=self.location.href:typeof document<"u"&&document.currentScript&&(M=document.currentScript.src),s&&(M=s),M.startsWith("blob:")?M="":M=M.substr(0,M.replace(/[?#].*/,"").lastIndexOf("/")+1),K=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},I&&(ce=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),z=(e,t,i)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{if(n.status==200||n.status==0&&n.response){t(n.response);return}i()},n.onerror=i,n.send(null)});var J=u.print||console.log.bind(console),ue=u.printErr||console.error.bind(console);Object.assign(u,T),T=null,u.arguments&&(k=u.arguments),u.thisProgram&&(D=u.thisProgram),u.quit&&(E=u.quit);var Y;u.wasmBinary&&(Y=u.wasmBinary);var G,N=!1,ae;function O(e,t){e||Le(t)}var Q,V,he,C,S,Z,oe,Ie;function Oe(){var e=G.buffer;u.HEAP8=Q=new Int8Array(e),u.HEAP16=he=new Int16Array(e),u.HEAPU8=V=new Uint8Array(e),u.HEAPU16=C=new Uint16Array(e),u.HEAP32=S=new Int32Array(e),u.HEAPU32=Z=new Uint32Array(e),u.HEAPF32=oe=new Float32Array(e),u.HEAPF64=Ie=new Float64Array(e)}var Ae=[],lt=[],Br=[],_t=[],Qe=!1;function ne(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)ve(u.preRun.shift());$t(Ae)}function wt(){Qe=!0,$t(lt)}function Hr(){$t(Br)}function H(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)re(u.postRun.shift());$t(_t)}function ve(e){Ae.unshift(e)}function L(e){lt.unshift(e)}function re(e){_t.unshift(e)}var pe=0,Ee=null,ge=null;function Mt(e){var t;pe++,(t=u.monitorRunDependencies)==null||t.call(u,pe)}function bt(e){var i;if(pe--,(i=u.monitorRunDependencies)==null||i.call(u,pe),pe==0&&(Ee!==null&&(clearInterval(Ee),Ee=null),ge)){var t=ge;ge=null,t()}}function Le(e){var i;(i=u.onAbort)==null||i.call(u,e),e="Aborted("+e+")",ue(e),N=!0,ae=1,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw m(t),t}var Tc="data:application/octet-stream;base64,",Hn=e=>e.startsWith(Tc),Un=e=>e.startsWith("file://"),jt;jt="./duckdb-mvp.wasm",Hn(jt)||(jt=U(jt));function Nn(e){if(e==jt&&Y)return new Uint8Array(Y);if(ce)return ce(e);throw"both async and sync fetching of the wasm failed"}function Sc(e){return!Y&&(F||I)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw`failed to load wasm binary file at '${e}'`;return t.arrayBuffer()}).catch(()=>Nn(e)):Promise.resolve().then(()=>Nn(e))}function Wn(e,t,i){return Sc(e).then(n=>WebAssembly.instantiate(n,t)).then(i,n=>{ue(`failed to asynchronously prepare wasm: ${n}`),Le(n)})}function kc(e,t,i,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!Hn(t)&&!te&&typeof fetch=="function"?fetch(t,{credentials:"same-origin"}).then(o=>{var c=WebAssembly.instantiateStreaming(o,i);return c.then(n,function(l){return ue(`wasm streaming compile failed: ${l}`),ue("falling back to ArrayBuffer instantiation"),Wn(t,i,n)})}):Wn(t,i,n)}function Ec(){var e={a:Rl};function t(n,o){return $=n.exports,$=ag($),G=$.vh,Oe(),Vr=$.yh,L($.wh),bt("wasm-instantiate"),$}Mt("wasm-instantiate");function i(n){t(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(e,t)}catch(n){ue(`Module.instantiateWasm callback failed with error: ${n}`),m(n)}return kc(Y,jt,e,i).catch(m),{}}var Be,Tt,Rc={10164832:(e,t,i,n)=>{var o=le(e);if(typeof XMLHttpRequest>"u")return 0;let c=new XMLHttpRequest;c.open(le(n),o,!1),c.responseType="arraybuffer";for(var l=0,p=t;l<p*2;){var _=S[i/4+l>>>0],f=S[i/4+l+1>>>0];try{var h=encodeURI(le(_));h==="Host"&&(h="X-Host-Override"),h==="User-Agent"&&(h="X-user-agent"),h==="Authorization"?c.setRequestHeader(h,le(f)):c.setRequestHeader(h,encodeURI(le(f)))}catch(q){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",q)}l+=2}try{c.send(null)}catch{return 0}if(c.status>=400)return 0;for(var d=c.response,p=d.byteLength,w=ze(p+4),j=new Uint8Array(d),R=0;R<p;R++)u.HEAPU8[R+w+4]=j[R];var A=new Uint8Array(4);return A[0]=p%256,p-=A[0],p/=256,A[1]=p%256,p-=A[1],p/=256,A[2]=p%256,p-=A[2],p/=256,A[3]=p%256,p-=A[3],p/=256,u.HEAPU8.set(A,w),w},10166239:(e,t,i,n,o,c)=>{var l=le(e);if(typeof XMLHttpRequest>"u")return 0;let _=new XMLHttpRequest;_.open(le(n),l,!1),_.responseType="arraybuffer";for(var f=0,A=t;f<A*2;){var h=S[i/4+f>>>0],d=S[i/4+f+1>>>0];try{var p=encodeURI(le(h));p==="Host"&&(p="X-Host-Override"),p==="User-Agent"&&(p="X-user-agent"),p==="Authorization"?_.setRequestHeader(p,le(d)):_.setRequestHeader(p,encodeURI(le(d)))}catch(W){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",W)}f+=2}try{for(var w=new Uint8Array(c),j=0;j<c;j++)w[j]=u.HEAPU8[j+o];_.send(w)}catch{return 0}if(_.status>=400)return 0;for(var R=Uint8Array.from(Array.from(_.getResponseHeader("Etag")).map(W=>W.charCodeAt(0))),A=R.byteLength,q=ze(A+4),ee=new Uint8Array(R),j=0;j<A;j++)u.HEAPU8[j+q+4]=ee[j];var P=new Uint8Array(4);return P[0]=A%256,A-=P[0],A/=256,P[1]=A%256,A-=P[1],A/=256,P[2]=A%256,A-=P[2],A/=256,P[3]=A%256,A-=P[3],A/=256,u.HEAPU8.set(P,q),q},10167859:(e,t,i,n)=>{var o=le(e);if(typeof XMLHttpRequest>"u")return 0;let c=new XMLHttpRequest;c.open(le(n),o,!1),c.responseType="arraybuffer";for(var l=0,p=t;l<p*2;){var _=S[i/4+l>>>0],f=S[i/4+l+1>>>0];console.log("HEAD",le(_),le(f));try{var h=encodeURI(le(_));h==="Host"&&(h="X-Host-Override"),h==="User-Agent"&&(h="X-user-agent"),h==="Authorization"?c.setRequestHeader(h,le(f)):c.setRequestHeader(h,encodeURI(le(f)))}catch(P){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",P)}l+=2}try{c.send(null)}catch{return 0}if(c.status>=400)return 0;for(var d=c.response,p=d.byteLength,w=ze(p+8),j=new Uint8Array(d),R=0;R<p;R++)u.HEAPU8[R+w+8]=j[R];var A=new Uint8Array(4);A[0]=p%256,p-=A[0],p/=256,A[1]=p%256,p-=A[1],p/=256,A[2]=p%256,p-=A[2],p/=256,A[3]=p%256,p-=A[3],p/=256,u.HEAPU8.set(A,w+4);var q=Uint8Array.from(Array.from(c.getAllResponseHeaders()).map(P=>P.charCodeAt(0)));p=q.byteLength;for(var ee=ze(p+8),R=0;R<p;R++)u.HEAPU8[R+ee+8]=q[R];return A=new Uint8Array(4),A[0]=p%256,p-=A[0],p/=256,A[1]=p%256,p-=A[1],p/=256,A[2]=p%256,p-=A[2],p/=256,A[3]=p%256,p-=A[3],p/=256,u.HEAPU8.set(A,ee+4),p=ee,A=new Uint8Array(4),A[0]=p%256,p-=A[0],p/=256,A[1]=p%256,p-=A[1],p/=256,A[2]=p%256,p-=A[2],p/=256,A[3]=p%256,p-=A[3],p/=256,u.HEAPU8.set(A,w),w},10170204:(e,t,i,n)=>{var o=le(e);if(typeof XMLHttpRequest>"u")return 0;let c=new XMLHttpRequest;c.open(le(n),o,!1),c.responseType="arraybuffer";for(var l=0,p=t;l<p*2;){var _=S[i/4+l>>>0],f=S[i/4+l+1>>>0];try{var h=encodeURI(le(_));h==="Host"&&(h="X-Host-Override"),h==="User-Agent"&&(h="X-user-agent"),h==="Authorization"?c.setRequestHeader(h,le(f)):c.setRequestHeader(h,encodeURI(le(f)))}catch(q){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",q)}l+=2}try{c.send(null)}catch{return 0}if(c.status>=400)return 0;for(var d=c.response,p=d.byteLength,w=ze(p+4),j=new Uint8Array(d),R=0;R<p;R++)u.HEAPU8[R+w+4]=j[R];var A=new Uint8Array(4);return A[0]=p%256,p-=A[0],p/=256,A[1]=p%256,p-=A[1],p/=256,A[2]=p%256,p-=A[2],p/=256,A[3]=p%256,p-=A[3],p/=256,u.HEAPU8.set(A,w),w},10171611:(e,t,i,n,o,c)=>{var l=le(e);if(typeof XMLHttpRequest>"u")return 0;let _=new XMLHttpRequest;_.open(le(n),l,!1),_.responseType="arraybuffer";for(var f=0,A=t;f<A*2;){var h=S[i/4+f>>>0],d=S[i/4+f+1>>>0];try{var p=encodeURI(le(h));p==="Host"&&(p="X-Host-Override"),p==="User-Agent"&&(p="X-user-agent"),p==="Authorization"?_.setRequestHeader(p,le(d)):_.setRequestHeader(p,encodeURI(le(d)))}catch(W){console.warn("Error while performing XMLHttpRequest.setRequestHeader()",W)}f+=2}try{for(var w=new Uint8Array(c),j=0;j<c;j++)w[j]=u.HEAPU8[j+o];_.send(w)}catch{return 0}if(_.status>=400)return 0;for(var R=_.response,A=R.byteLength,q=ze(A+4),ee=new Uint8Array(R),j=0;j<A;j++)u.HEAPU8[j+q+4]=ee[j];var P=new Uint8Array(4);return P[0]=A%256,A-=P[0],A/=256,P[1]=A%256,A-=P[1],A/=256,P[2]=A%256,A-=P[2],A/=256,P[3]=A%256,A-=P[3],A/=256,u.HEAPU8.set(P,q),q}};function qn(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var $t=e=>{for(;e.length>0;)e.shift()(u)},Ac=u.noExitRuntime||!0,y=e=>ds(e),g=()=>vs(),tt=[],Gt=0,ft=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+t*4294967296:NaN;function Cc(e){e>>>=0;var t=new Kt(e);return t.get_caught()||(t.set_caught(!0),Gt--),t.set_rethrown(!1),tt.push(t),___cxa_increment_exception_refcount(t.excPtr),t.get_exception_ptr()}function Dc(){if(!tt.length)return 0;var e=tt[tt.length-1];return ___cxa_increment_exception_refcount(e.excPtr),e.excPtr}var Xe=0,Pc=()=>{_setThrew(0,0);var e=tt.pop();___cxa_decrement_exception_refcount(e.excPtr),Xe=0};class Kt{constructor(t){this.excPtr=t,this.ptr=t-24}set_type(t){Z[this.ptr+4>>>2>>>0]=t}get_type(){return Z[this.ptr+4>>>2>>>0]}set_destructor(t){Z[this.ptr+8>>>2>>>0]=t}get_destructor(){return Z[this.ptr+8>>>2>>>0]}set_caught(t){t=t?1:0,Q[this.ptr+12>>>0]=t}get_caught(){return Q[this.ptr+12>>>0]!=0}set_rethrown(t){t=t?1:0,Q[this.ptr+13>>>0]=t}get_rethrown(){return Q[this.ptr+13>>>0]!=0}init(t,i){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(i)}set_adjusted_ptr(t){Z[this.ptr+16>>>2>>>0]=t}get_adjusted_ptr(){return Z[this.ptr+16>>>2>>>0]}get_exception_ptr(){var t=___cxa_is_pointer_type(this.get_type());if(t)return Z[this.excPtr>>>2>>>0];var i=this.get_adjusted_ptr();return i!==0?i:this.excPtr}}function Ic(e){throw e>>>=0,Xe||(Xe=e),Xe}var St=e=>fs(e),Vt=e=>{var t=Xe;if(!t)return St(0),0;var i=new Kt(t);i.set_adjusted_ptr(t);var n=i.get_type();if(!n)return St(0),t;for(var o in e){var c=e[o];if(c===0||c===n)break;var l=i.ptr+16;if(___cxa_can_catch(c,n,l))return St(c),t}return St(n),t};function Oc(){return Vt([])}function Fc(e){return e>>>=0,Vt([e])}function xc(e,t){return e>>>=0,t>>>=0,Vt([e,t])}function Mc(e,t,i){return e>>>=0,t>>>=0,i>>>=0,Vt([e,t,i])}var $n=()=>{var e=tt.pop();e||Le("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(tt.push(e),e.set_rethrown(!0),e.set_caught(!1),Gt++),Xe=t,Xe};function Lc(e){if(e>>>=0,!!e){var t=new Kt(e);tt.push(t),t.set_rethrown(!0),$n()}}function Bc(e,t,i){e>>>=0,t>>>=0,i>>>=0;var n=new Kt(e);throw n.init(t,i),Xe=e,Gt++,Xe}var Hc=()=>Gt;function Gn(){Le("missing function: $SOCKFS")}Gn.stub=!0;function Ur(){Le("missing function: $FS")}Ur.stub=!0;var kt=e=>{var t=Gn.getSocket(e);if(!t)throw new Ur.ErrnoError(8);return t},Nr=e=>(e&255)+"."+(e>>8&255)+"."+(e>>16&255)+"."+(e>>24&255),Kn=e=>{var t="",i=0,n=0,o=0,c=0,l=0,_=0,f=[e[0]&65535,e[0]>>16,e[1]&65535,e[1]>>16,e[2]&65535,e[2]>>16,e[3]&65535,e[3]>>16],h=!0,d="";for(_=0;_<5;_++)if(f[_]!==0){h=!1;break}if(h){if(d=Nr(f[6]|f[7]<<16),f[5]===-1)return t="::ffff:",t+=d,t;if(f[5]===0)return t="::",d==="0.0.0.0"&&(d=""),d==="0.0.0.1"&&(d="1"),t+=d,t}for(i=0;i<8;i++)f[i]===0&&(i-o>1&&(l=0),o=i,l++),l>n&&(n=l,c=i-n+1);for(i=0;i<8;i++){if(n>1&&f[i]===0&&i>=c&&i<c+n){i===c&&(t+=":",c===0&&(t+=":"));continue}t+=Number(_ntohs(f[i]&65535)).toString(16),t+=i<7?":":""}return t},Vn=(e,t)=>{var i=he[e>>>1>>>0],n=_ntohs(C[e+2>>>1>>>0]),o;switch(i){case 2:if(t!==16)return{errno:28};o=S[e+4>>>2>>>0],o=Nr(o);break;case 10:if(t!==28)return{errno:28};o=[S[e+8>>>2>>>0],S[e+12>>>2>>>0],S[e+16>>>2>>>0],S[e+20>>>2>>>0]],o=Kn(o);break;default:return{errno:5}}return{family:i,addr:o,port:n}},Yt=e=>{for(var t=e.split("."),i=0;i<4;i++){var n=Number(t[i]);if(isNaN(n))return null;t[i]=n}return(t[0]|t[1]<<8|t[2]<<16|t[3]<<24)>>>0},Qt=e=>parseInt(e),Wr=e=>{var t,i,n,o,c=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,l=[];if(!c.test(e))return null;if(e==="::")return[0,0,0,0,0,0,0,0];for(e.startsWith("::")?e=e.replace("::","Z:"):e=e.replace("::",":Z:"),e.indexOf(".")>0?(e=e.replace(new RegExp("[.]","g"),":"),t=e.split(":"),t[t.length-4]=Qt(t[t.length-4])+Qt(t[t.length-3])*256,t[t.length-3]=Qt(t[t.length-2])+Qt(t[t.length-1])*256,t=t.slice(0,t.length-2)):t=e.split(":"),n=0,o=0,i=0;i<t.length;i++)if(typeof t[i]=="string")if(t[i]==="Z"){for(o=0;o<8-t.length+1;o++)l[i+o]=0;n=o-1}else l[i+n]=_htons(parseInt(t[i],16));else l[i+n]=t[i];return[l[1]<<16|l[0],l[3]<<16|l[2],l[5]<<16|l[4],l[7]<<16|l[6]]},Fe={address_map:{id:1,addrs:{},names:{}},lookup_name(e){var t=Yt(e);if(t!==null||(t=Wr(e),t!==null))return e;var i;if(Fe.address_map.addrs[e])i=Fe.address_map.addrs[e];else{var n=Fe.address_map.id++;O(n<65535,"exceeded max address mappings of 65535"),i="172.29."+(n&255)+"."+(n&65280),Fe.address_map.names[i]=e,Fe.address_map.addrs[e]=i}return i},lookup_addr(e){return Fe.address_map.names[e]?Fe.address_map.names[e]:null}},Yn=(e,t,i)=>{if(i&&e===0)return null;var n=Vn(e,t);if(n.errno)throw new Ur.ErrnoError(n.errno);return n.addr=Fe.lookup_addr(n.addr)||n.addr,n};function Uc(e,t,i,n,o,c){t>>>=0,i>>>=0;var l=kt(e),_=Yn(t,i);return l.sock_ops.bind(l,_.addr,_.port),0}function Nc(e,t,i,n,o,c){t>>>=0,i>>>=0;var l=kt(e),_=Yn(t,i);return l.sock_ops.connect(l,_.addr,_.port),0}var Wc=(e,t,i)=>{};function qc(e,t,i,n){t>>>=0}var Qn=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Xn=(e,t,i)=>{t>>>=0;for(var n=t+i,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.buffer&&Qn)return Qn.decode(e.subarray(t,o));for(var c="";t<o;){var l=e[t++];if(!(l&128)){c+=String.fromCharCode(l);continue}var _=e[t++]&63;if((l&224)==192){c+=String.fromCharCode((l&31)<<6|_);continue}var f=e[t++]&63;if((l&240)==224?l=(l&15)<<12|_<<6|f:l=(l&7)<<18|_<<12|f<<6|e[t++]&63,l<65536)c+=String.fromCharCode(l);else{var h=l-65536;c+=String.fromCharCode(55296|h>>10,56320|h&1023)}}return c},le=(e,t)=>(e>>>=0,e?Xn(V,e,t):""),qr={varargs:void 0,getStr(e){var t=le(e);return t}};function $c(e,t,i){return i>>>=0,qr.varargs=i,0}function Gc(e,t){t>>>=0}function Kc(e,t,i){var n=ft(t,i)}var $r=e=>{for(var t=0,i=0;i<e.length;++i){var n=e.charCodeAt(i);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++i):t+=3}return t};u.lengthBytesUTF8=$r;var zn=(e,t,i,n)=>{if(i>>>=0,!(n>0))return 0;for(var o=i,c=i+n-1,l=0;l<e.length;++l){var _=e.charCodeAt(l);if(_>=55296&&_<=57343){var f=e.charCodeAt(++l);_=65536+((_&1023)<<10)|f&1023}if(_<=127){if(i>=c)break;t[i++>>>0]=_}else if(_<=2047){if(i+1>=c)break;t[i++>>>0]=192|_>>6,t[i++>>>0]=128|_&63}else if(_<=65535){if(i+2>=c)break;t[i++>>>0]=224|_>>12,t[i++>>>0]=128|_>>6&63,t[i++>>>0]=128|_&63}else{if(i+3>=c)break;t[i++>>>0]=240|_>>18,t[i++>>>0]=128|_>>12&63,t[i++>>>0]=128|_>>6&63,t[i++>>>0]=128|_&63}}return t[i>>>0]=0,i-o},rt=(e,t,i)=>zn(e,V,t,i);u.stringToUTF8=rt;function Vc(e,t){e>>>=0,t>>>=0}function Yc(e,t,i){t>>>=0,i>>>=0}var Jn=(e,t)=>(V.fill(0,e,e+t),e),Xt=(e,t,i,n,o)=>{switch(t){case 2:i=Yt(i),Jn(e,16),o&&(S[o>>>2>>>0]=16),he[e>>>1>>>0]=t,S[e+4>>>2>>>0]=i,he[e+2>>>1>>>0]=_htons(n);break;case 10:i=Wr(i),Jn(e,28),o&&(S[o>>>2>>>0]=28),S[e>>>2>>>0]=t,S[e+8>>>2>>>0]=i[0],S[e+12>>>2>>>0]=i[1],S[e+16>>>2>>>0]=i[2],S[e+20>>>2>>>0]=i[3],he[e+2>>>1>>>0]=_htons(n);break;default:return 5}return 0};function Qc(e,t,i,n,o,c){t>>>=0,i>>>=0;var l=kt(e);if(!l.daddr)return-53;var _=Xt(t,l.family,Fe.lookup_name(l.daddr),l.dport,i);return 0}function Xc(e,t,i,n,o,c){t>>>=0,i>>>=0;var l=kt(e),_=Xt(t,l.family,Fe.lookup_name(l.saddr||"0.0.0.0"),l.sport,i);return 0}function zc(e,t,i,n,o,c){n>>>=0,o>>>=0;var l=kt(e);return t===1&&i===4?(S[n>>>2>>>0]=l.error,S[o>>>2>>>0]=4,l.error=null,0):-50}function Jc(e,t,i){return i>>>=0,qr.varargs=i,0}function Zc(e,t){e>>>=0,t>>>=0}function eu(e,t,i){t>>>=0}function tu(e,t,i,n){t>>>=0,i>>>=0}function ru(e,t,i,n){t>>>=0,n>>>=0,qr.varargs=n}function iu(e,t,i){e>>>=0}function nu(e,t,i,n){t>>>=0,i>>>=0,n>>>=0}function su(e,t,i,n,o,c){t>>>=0,i>>>=0,o>>>=0,c>>>=0;var l=kt(e),_=l.sock_ops.recvmsg(l,i);if(!_)return 0;if(o)var f=Xt(o,l.family,Fe.lookup_name(_.addr),_.port,c);return V.set(_.buffer,t>>>0),_.buffer.byteLength}function au(e,t,i,n){t>>>=0,n>>>=0}function ou(e){e>>>=0}function cu(e,t,i,n,o,c){t>>>=0,i>>>=0,o>>>=0,c>>>=0}var uu=(e,t,i)=>{};function lu(e,t){e>>>=0,t>>>=0}function _u(e,t,i){e>>>=0,t>>>=0,i>>>=0}function fu(e,t,i){t>>>=0}var hu=1,du=()=>hu,pu=()=>{throw 1/0};function Zn(){Le("missing function: _emval_call_method")}Zn.stub=!0;function es(){Le("missing function: _emval_decref")}es.stub=!0;function ts(){Le("missing function: _emval_get_global")}ts.stub=!0;function rs(){Le("missing function: _emval_get_method_caller")}rs.stub=!0;function is(){Le("missing function: _emval_run_destructors")}is.stub=!0;var Lt=e=>e%4===0&&(e%100!==0||e%400===0),vu=[0,31,60,91,121,152,182,213,244,274,305,335],yu=[0,31,59,90,120,151,181,212,243,273,304,334],gu=e=>{var t=Lt(e.getFullYear()),i=t?vu:yu,n=i[e.getMonth()]+e.getDate()-1;return n};function mu(e,t,i){var n=ft(e,t);i>>>=0;var o=new Date(n*1e3);S[i>>>2>>>0]=o.getSeconds(),S[i+4>>>2>>>0]=o.getMinutes(),S[i+8>>>2>>>0]=o.getHours(),S[i+12>>>2>>>0]=o.getDate(),S[i+16>>>2>>>0]=o.getMonth(),S[i+20>>>2>>>0]=o.getFullYear()-1900,S[i+24>>>2>>>0]=o.getDay();var c=gu(o)|0;S[i+28>>>2>>>0]=c,S[i+36>>>2>>>0]=-(o.getTimezoneOffset()*60);var l=new Date(o.getFullYear(),0,1),_=new Date(o.getFullYear(),6,1).getTimezoneOffset(),f=l.getTimezoneOffset(),h=(_!=f&&o.getTimezoneOffset()==Math.min(f,_))|0;S[i+32>>>2>>>0]=h}function wu(e,t,i,n,o,c,l,_){e>>>=0;var f=ft(o,c);return l>>>=0,_>>>=0,-52}function bu(e,t,i,n,o,c,l){e>>>=0,t>>>=0;var _=ft(c,l)}var ju=function(e,t,i,n){e>>>=0,t>>>=0,i>>>=0,n>>>=0;var o=new Date().getFullYear(),c=new Date(o,0,1),l=new Date(o,6,1),_=c.getTimezoneOffset(),f=l.getTimezoneOffset(),h=Math.max(_,f);Z[e>>>2>>>0]=h*60,S[t>>>2>>>0]=+(_!=f);var d=j=>j.toLocaleTimeString(void 0,{hour12:!1,timeZoneName:"short"}).split(" ")[1],p=d(c),w=d(l);f<_?(rt(p,i,17),rt(w,n,17)):(rt(p,n,17),rt(w,i,17))},Tu=()=>{Le("")};function Su(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.createDirectory(u,e,t)}function ku(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkDirectory(u,e,t)}function Eu(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.listDirectoryEntries(u,e,t)}function Ru(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.removeDirectory(u,e,t)}function Au(e){return globalThis.DUCKDB_RUNTIME.closeFile(u,e)}function Cu(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.dropFile(u,e,t)}function Du(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkFile(u,e,t)}function Pu(e,t,i,n){return e>>>=0,i>>>=0,globalThis.DUCKDB_RUNTIME.moveFile(u,e,t,i,n)}function Iu(e,t){return globalThis.DUCKDB_RUNTIME.openFile(u,e,t)}function Ou(e,t,i,n){return t>>>=0,globalThis.DUCKDB_RUNTIME.readFile(u,e,t,i,n)}function Fu(e,t){return globalThis.DUCKDB_RUNTIME.truncateFile(u,e,t)}function xu(e,t,i,n){return t>>>=0,globalThis.DUCKDB_RUNTIME.writeFile(u,e,t,i,n)}function Mu(e){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(e)}function Lu(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.glob(u,e,t)}function Bu(e){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(u,e)}function Hu(e,t,i,n,o,c){return e>>>=0,i>>>=0,o>>>=0,globalThis.DUCKDB_RUNTIME.callScalarUDF(u,e,t,i,n,o,c)}var Gr=[],Uu=(e,t)=>{Gr.length=0;for(var i;i=V[e++>>>0];){var n=i!=105;n&=i!=112,t+=n&&t%8?4:0,Gr.push(i==112?Z[t>>>2>>>0]:i==105?S[t>>>2>>>0]:Ie[t>>>3>>>0]),t+=n?8:4}return Gr},Nu=(e,t,i)=>{var n=Uu(t,i);return Rc[e](...n)};function Wu(e,t,i){return e>>>=0,t>>>=0,i>>>=0,Nu(e,t,i)}var qu=()=>Date.now(),ns=()=>4294901760;function $u(){return ns()}var ss;ss=()=>performance.now();var Gu=e=>{var t=G.buffer,i=(e-t.byteLength+65535)/65536;try{return G.grow(i),Oe(),1}catch{}};function Ku(e){e>>>=0;var t=V.length,i=ns();if(e>i)return!1;for(var n=(f,h)=>f+(h-f%h)%h,o=1;o<=4;o*=2){var c=t*(1+.2/o);c=Math.min(c,e+100663296);var l=Math.min(i,n(Math.max(e,c),65536)),_=Gu(l);if(_)return!0}return!1}var Kr={},Vu=()=>D||"./this.program",Bt=()=>{if(!Bt.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:Vu()};for(var i in Kr)Kr[i]===void 0?delete t[i]:t[i]=Kr[i];var n=[];for(var i in t)n.push(`${i}=${t[i]}`);Bt.strings=n}return Bt.strings},Yu=(e,t)=>{for(var i=0;i<e.length;++i)Q[t++>>>0]=e.charCodeAt(i);Q[t>>>0]=0},Qu=function(e,t){e>>>=0,t>>>=0;var i=0;return Bt().forEach((n,o)=>{var c=t+i;Z[e+o*4>>>2>>>0]=c,Yu(n,c),i+=n.length+1}),0},Xu=function(e,t){e>>>=0,t>>>=0;var i=Bt();Z[e>>>2>>>0]=i.length;var n=0;return i.forEach(o=>n+=o.length+1),Z[t>>>2>>>0]=n,0},zu=0,Ju=()=>Ac||zu>0,Zu=e=>{var t;ae=e,Ju()||((t=u.onExit)==null||t.call(u,e),N=!0),E(e,new qn(e))},as=(e,t)=>{ae=e,Zu(e)},el=as,tl=e=>52;function rl(e,t){t>>>=0;var i=0,n=0,o=0;{var c=2;e==0?i=2:(e==1||e==2)&&(i=64),o=1}return Q[t>>>0]=c,he[t+2>>>1>>>0]=o,Tt=[i>>>0,(Be=i,+Math.abs(Be)>=1?Be>0?+Math.floor(Be/4294967296)>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],S[t+8>>>2>>>0]=Tt[0],S[t+12>>>2>>>0]=Tt[1],Tt=[n>>>0,(Be=n,+Math.abs(Be)>=1?Be>0?+Math.floor(Be/4294967296)>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],S[t+16>>>2>>>0]=Tt[0],S[t+20>>>2>>>0]=Tt[1],0}function il(e,t,i,n,o,c){t>>>=0,i>>>=0;var l=ft(n,o);return c>>>=0,52}function nl(e,t,i,n,o,c){t>>>=0,i>>>=0;var l=ft(n,o);return c>>>=0,52}function sl(e,t,i,n){return t>>>=0,i>>>=0,n>>>=0,52}function al(e,t,i,n,o){var c=ft(t,i);return o>>>=0,70}var ol=e=>52,cl=[null,[],[]],ul=(e,t)=>{var i=cl[e];t===0||t===10?((e===1?J:ue)(Xn(i,0)),i.length=0):i.push(t)};function ll(e,t,i,n){t>>>=0,i>>>=0,n>>>=0;for(var o=0,c=0;c<i;c++){var l=Z[t>>>2>>>0],_=Z[t+4>>>2>>>0];t+=8;for(var f=0;f<_;f++)ul(e,V[l+f>>>0]);o+=_}return Z[n>>>2>>>0]=o,0}function _l(e,t,i,n){e>>>=0,t>>>=0,i>>>=0,n>>>=0;var o=0,c=0,l=0,_=0,f=0,h=0,d;function p(w,j,R,A,q,ee){var P,W,_e,me;return W=w===10?28:16,q=w===10?Kn(q):Nr(q),P=ze(W),me=Xt(P,w,q,ee),O(!me),_e=ze(32),S[_e+4>>>2>>>0]=w,S[_e+8>>>2>>>0]=j,S[_e+12>>>2>>>0]=R,Z[_e+24>>>2>>>0]=A,Z[_e+20>>>2>>>0]=P,w===10?S[_e+16>>>2>>>0]=28:S[_e+16>>>2>>>0]=16,S[_e+28>>>2>>>0]=0,_e}if(i&&(l=S[i>>>2>>>0],_=S[i+4>>>2>>>0],f=S[i+8>>>2>>>0],h=S[i+12>>>2>>>0]),f&&!h&&(h=f===2?17:6),!f&&h&&(f=h===17?2:1),h===0&&(h=6),f===0&&(f=1),!e&&!t)return-2;if(l&-1088||i!==0&&S[i>>>2>>>0]&2&&!e)return-1;if(l&32)return-2;if(f!==0&&f!==1&&f!==2)return-7;if(_!==0&&_!==2&&_!==10)return-6;if(t&&(t=le(t),c=parseInt(t,10),isNaN(c)))return l&1024?-2:-8;if(!e)return _===0&&(_=2),l&1||(_===2?o=_htonl(2130706433):o=[0,0,0,1]),d=p(_,f,h,null,o,c),Z[n>>>2>>>0]=d,0;if(e=le(e),o=Yt(e),o!==null)if(_===0||_===2)_=2;else if(_===10&&l&8)o=[0,0,_htonl(65535),o],_=10;else return-2;else if(o=Wr(e),o!==null)if(_===0||_===10)_=10;else return-2;return o!=null?(d=p(_,f,h,e,o,c),Z[n>>>2>>>0]=d,0):l&4?-2:(e=Fe.lookup_name(e),o=Yt(e),_===0?_=2:_===10&&(o=[0,0,_htonl(65535),o]),d=p(_,f,h,null,o,c),Z[n>>>2>>>0]=d,0)}var fl=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return n=>crypto.getRandomValues(n);if(te)try{var e=require("crypto"),t=e.randomFillSync;if(t)return n=>e.randomFillSync(n);var i=e.randomBytes;return n=>(n.set(i(n.byteLength)),n)}catch{}Le("initRandomDevice")},os=e=>(os=fl())(e);function hl(e,t){return e>>>=0,t>>>=0,os(V.subarray(e>>>0,e+t>>>0)),0}function dl(e,t,i,n,o,c,l){e>>>=0,i>>>=0,o>>>=0;var _=Vn(e,t);if(_.errno)return-6;var f=_.port,h=_.addr,d=!1;if(i&&n){var p;if(l&1||!(p=Fe.lookup_addr(h))){if(l&8)return-2}else h=p;var w=rt(h,i,n);w+1>=n&&(d=!0)}if(o&&c){f=""+f;var w=rt(f,o,c);w+1>=c&&(d=!0)}return d?-12:0}function pl(e){return e>>>=0,e}var vl=(e,t)=>{for(var i=0,n=0;n<=t;i+=e[n++]);return i},cs=[31,29,31,30,31,30,31,31,30,31,30,31],us=[31,28,31,30,31,30,31,31,30,31,30,31],yl=(e,t)=>{for(var i=new Date(e.getTime());t>0;){var n=Lt(i.getFullYear()),o=i.getMonth(),c=(n?cs:us)[o];if(t>c-i.getDate())t-=c-i.getDate()+1,i.setDate(1),o<11?i.setMonth(o+1):(i.setMonth(0),i.setFullYear(i.getFullYear()+1));else return i.setDate(i.getDate()+t),i}return i};function gl(e,t,i){var n=i>0?i:$r(e)+1,o=new Array(n),c=zn(e,o,0,o.length);return t&&(o.length=c),o}var ls=(e,t)=>{Q.set(e,t>>>0)};function ml(e,t,i,n){e>>>=0,t>>>=0,i>>>=0,n>>>=0;var o=Z[n+40>>>2>>>0],c={tm_sec:S[n>>>2>>>0],tm_min:S[n+4>>>2>>>0],tm_hour:S[n+8>>>2>>>0],tm_mday:S[n+12>>>2>>>0],tm_mon:S[n+16>>>2>>>0],tm_year:S[n+20>>>2>>>0],tm_wday:S[n+24>>>2>>>0],tm_yday:S[n+28>>>2>>>0],tm_isdst:S[n+32>>>2>>>0],tm_gmtoff:S[n+36>>>2>>>0],tm_zone:o?le(o):""},l=le(i),_={"%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 f in _)l=l.replace(new RegExp(f,"g"),_[f]);var h=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"];function p(P,W,_e){for(var me=typeof P=="number"?P.toString():P||"";me.length<W;)me=_e[0]+me;return me}function w(P,W){return p(P,W,"0")}function j(P,W){function _e(it){return it<0?-1:it>0?1:0}var me;return(me=_e(P.getFullYear()-W.getFullYear()))===0&&(me=_e(P.getMonth()-W.getMonth()))===0&&(me=_e(P.getDate()-W.getDate())),me}function R(P){switch(P.getDay()){case 0:return new Date(P.getFullYear()-1,11,29);case 1:return P;case 2:return new Date(P.getFullYear(),0,3);case 3:return new Date(P.getFullYear(),0,2);case 4:return new Date(P.getFullYear(),0,1);case 5:return new Date(P.getFullYear()-1,11,31);case 6:return new Date(P.getFullYear()-1,11,30)}}function A(P){var W=yl(new Date(P.tm_year+1900,0,1),P.tm_yday),_e=new Date(W.getFullYear(),0,4),me=new Date(W.getFullYear()+1,0,4),it=R(_e),Je=R(me);return j(it,W)<=0?j(Je,W)<=0?W.getFullYear()+1:W.getFullYear():W.getFullYear()-1}var q={"%a":P=>h[P.tm_wday].substring(0,3),"%A":P=>h[P.tm_wday],"%b":P=>d[P.tm_mon].substring(0,3),"%B":P=>d[P.tm_mon],"%C":P=>{var W=P.tm_year+1900;return w(W/100|0,2)},"%d":P=>w(P.tm_mday,2),"%e":P=>p(P.tm_mday,2," "),"%g":P=>A(P).toString().substring(2),"%G":A,"%H":P=>w(P.tm_hour,2),"%I":P=>{var W=P.tm_hour;return W==0?W=12:W>12&&(W-=12),w(W,2)},"%j":P=>w(P.tm_mday+vl(Lt(P.tm_year+1900)?cs:us,P.tm_mon-1),3),"%m":P=>w(P.tm_mon+1,2),"%M":P=>w(P.tm_min,2),"%n":()=>`
2
+ `,"%p":P=>P.tm_hour>=0&&P.tm_hour<12?"AM":"PM","%S":P=>w(P.tm_sec,2),"%t":()=>" ","%u":P=>P.tm_wday||7,"%U":P=>{var W=P.tm_yday+7-P.tm_wday;return w(Math.floor(W/7),2)},"%V":P=>{var W=Math.floor((P.tm_yday+7-(P.tm_wday+6)%7)/7);if((P.tm_wday+371-P.tm_yday-2)%7<=2&&W++,W){if(W==53){var me=(P.tm_wday+371-P.tm_yday)%7;me!=4&&(me!=3||!Lt(P.tm_year))&&(W=1)}}else{W=52;var _e=(P.tm_wday+7-P.tm_yday-1)%7;(_e==4||_e==5&&Lt(P.tm_year%400-1))&&W++}return w(W,2)},"%w":P=>P.tm_wday,"%W":P=>{var W=P.tm_yday+7-(P.tm_wday+6)%7;return w(Math.floor(W/7),2)},"%y":P=>(P.tm_year+1900).toString().substring(2),"%Y":P=>P.tm_year+1900,"%z":P=>{var W=P.tm_gmtoff,_e=W>=0;return W=Math.abs(W)/60,W=W/60*100+W%60,(_e?"+":"-")+("0000"+W).slice(-4)},"%Z":P=>P.tm_zone,"%%":()=>"%"};l=l.replace(/%%/g,"\0\0");for(var f in q)l.includes(f)&&(l=l.replace(new RegExp(f,"g"),q[f](c)));l=l.replace(/\0\0/g,"%");var ee=gl(l,!1);return ee.length>t?0:(ls(ee,e),ee.length-1)}function wl(e,t,i,n,o){return e>>>=0,t>>>=0,i>>>=0,n>>>=0,o>>>=0,ml(e,t,i,n)}var bl=e=>{if(e instanceof qn||e=="unwind")return ae;E(1,e)},zt=[],Vr,x=e=>{var t=zt[e];return t||(e>=zt.length&&(zt.length=e+1),zt[e]=t=Vr.get(e)),t},jl=e=>{var t=u["_"+e];return t},Jt=e=>ps(e);u.stackAlloc=Jt;var Tl=e=>{var t=$r(e)+1,i=Jt(t);return rt(e,i,t),i},Sl=(e,t,i,n,o)=>{var c={string:R=>{var A=0;return R!=null&&R!==0&&(A=Tl(R)),A},array:R=>{var A=Jt(R.length);return ls(R,A),A}};function l(R){return t==="string"?le(R):t==="boolean"?!!R:R}var _=jl(e),f=[],h=0;if(n)for(var d=0;d<n.length;d++){var p=c[i[d]];p?(h===0&&(h=g()),f[d]=p(n[d])):f[d]=n[d]}var w=_(...f);function j(R){return h!==0&&y(h),l(R)}return w=j(w),w},Et=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},Yr=(e,t)=>{var i=e.slice(0,1),n=e.slice(1),o={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),Et(n.length,t);for(var c=0;c<n.length;++c)t.push(o[n[c]]);i=="v"?t.push(0):t.push(1,o[i])},kl=e=>{var t=[],i=[0,97,115,109,1,0,0,0];t.push(i);var n=[e[0].replace("j","i"),"i",e.slice(1).replace(/j/g,"ii")].join(""),o=[3];Yr(n,o),Yr(e,o),Yr("vi",o);var c=[1];Et(o.length,c),c.push(...o),t.push(c);var l=[2,15,2,1,101,1,116,1,112,0,0,1,101,1,114,0,2];t.push(l);var _=[3,2,1,0];t.push(_);var f=[7,5,1,1,102,0,1];t.push(f);var h=[];e[0]==="j"?h=[1,1,126]:h.push(0);function d(W){h.push(32),Et(W,h)}for(var p=1,w=1;w<e.length;w++)e[w]=="j"?(d(p+1),h.push(173,66,32,134),d(p),h.push(172,132),p+=2):(d(p),p++);h.push(32,0,17,1,0),e[0]==="j"&&(h.push(34),Et(p,h),h.push(66,32,136,167,16,0),d(p),h.push(167)),h.push(11);var j=[1];Et(h.length,j),j.push(...h);var R=[10];Et(j.length,R),R.push(...j),t.push(R);var A=new Uint8Array([].concat.apply([],t)),q=new WebAssembly.Module(A),ee=new WebAssembly.Instance(q,{e:{t:Vr,r:St}}),P=ee.exports.f;return P},El=e=>hs(),Rl={q:Cc,Vb:Dc,u:Pc,a:Oc,k:Fc,B:xc,ma:Mc,Pa:$n,Kb:Lc,s:Bc,L:Hc,c:Ic,gb:Uc,lb:Nc,Kg:Wc,mh:qc,ba:$c,lh:Gc,$b:Kc,nh:Vc,gh:Yc,fb:Qc,eb:Xc,jb:zc,Aa:Jc,ih:Zc,hh:eu,jh:tu,Na:ru,kb:iu,dh:nu,hb:su,eh:au,$a:ou,ib:cu,Ma:uu,kh:lu,oh:_u,ab:fu,mb:du,Lg:pu,Hg:Zn,Fg:es,Jg:ts,Ig:rs,Gg:is,ec:mu,Rc:wu,Sc:bu,rh:ju,F:Tu,Xg:Su,Yg:ku,Vg:Eu,Wg:Ru,Ya:Au,$g:Cu,Tg:Du,Ug:Pu,_g:Iu,ua:Ou,Zg:Fu,Za:xu,ah:Mu,Sg:Lu,Xa:Bu,bh:Hu,ra:Wu,qa:qu,nb:$u,ya:ss,uh:Ku,Od:Qu,Zd:Xu,_:el,na:tl,df:rl,bc:il,ac:nl,Qa:sl,Cg:al,fh:ol,Ba:ll,La:_l,ch:hl,Ka:dl,Q:Uf,J:pf,ga:Sf,D:Q_,Ja:af,$:uf,Wa:Hf,oa:C_,Sa:Qf,ia:ff,da:yf,Ta:$f,U:gf,rc:cy,lc:dy,If:Xh,sb:tg,Kc:qv,Qd:Up,jc:vy,kc:py,X:rf,Ra:A_,va:Bf,sc:oy,Jf:Qh,p:x_,E:ef,ph:Df,sh:Rf,T:wf,ha:X_,za:Af,S:Z_,qh:Cf,th:Ef,ca:kf,d:b_,O:jf,H:Tf,_a:If,C:of,sa:Of,la:Ff,zc:ey,Ga:Pf,pa:xf,b:T_,Fa:Vf,yd:iv,Ve:Md,g:S_,bb:mf,Ea:Xf,Da:zf,j:R_,Oa:W_,Qg:Gf,ka:Yf,o:k_,cb:hf,v:L_,w:I_,I:Y_,R:V_,Z:O_,ja:B_,r:F_,A:$_,Og:Jf,W:sf,x:nf,vb:Jy,Nd:Wp,xd:nv,He:Xd,vd:av,zd:rv,Jd:Kp,Vd:xp,wd:sv,xb:Xy,de:Ep,Id:Vp,Ad:tv,Yd:Ip,Ie:Qd,Wd:Fp,$d:Dp,Md:qp,Ue:Ld,rf:hd,Mf:Kh,ue:up,xe:ap,hd:wv,Ag:nh,pf:pd,Nf:Gh,Hf:zh,of:vd,Be:rp,zg:sh,ud:ov,td:cv,le:gp,qg:dh,sf:fd,Ae:ip,se:_p,ge:Tp,sd:uv,rd:lv,md:pv,Tc:Mv,Se:Hd,Kd:Gp,Xd:Op,Wf:Mh,pg:ph,lg:mh,Ff:Zh,Vf:Lh,ub:Zy,Jb:By,Hb:Uy,Yc:Pv,Sb:Dy,Ub:Ay,Rb:Py,og:vh,xf:od,wf:cd,Le:Kd,te:lp,rb:rg,vc:ny,Mb:My,vg:uh,wb:zy,ve:cp,mg:gh,Uf:Bh,Xf:xh,Qe:Nd,Ee:Zd,Lc:Wv,ld:vv,Ib:Hy,Lb:Ly,Of:$h,bd:Ev,ig:jh,Pe:Wd,Oc:Hv,Ac:Zv,Oe:qd,Me:Gd,wc:iy,xc:ry,tc:ay,Sf:Uh,cg:Ah,we:op,nc:fy,fd:jv,Ef:ed,Ke:Vd,yf:ad,We:Fd,Xe:Od,wg:ch,tg:_h,Rf:Nh,Eg:th,Re:Ud,nf:yd,Fd:Xp,yc:ty,Ze:Pd,Bc:Jv,Hd:Yp,Ye:Id,Cd:Zp,Dc:Xv,Gc:Vv,Vc:Fv,mf:gd,ff:Sd,Td:Lp,Ud:Mp,Hc:Kv,af:Ad,ye:sp,kf:wd,Kf:Yh,Cf:rd,Zb:Sy,Cc:zv,_b:Ty,ef:kd,Bd:ev,Ec:Qv,zf:sd,Qc:Lv,Fb:Wy,me:yp,Zc:Dv,Bb:Ky,ob:sg,Rd:Hp,Gb:Ny,pb:ng,sg:fh,cd:kv,oc:_y,qb:ig,dd:Sv,ic:yy,Ic:Gv,_c:Cv,uc:sy,l:m_,Ng:Zf,Rg:Nf,Va:Wf,h:j_,G:K_,Ha:vf,K:lf,wa:Lf,Ua:qf,Mg:eh,Y:G_,N:df,xa:Mf,e:w_,Ca:P_,db:_f,f:E_,Pg:Kf,i:D_,m:q_,n:N_,y:M_,t:z_,P:tf,M:H_,aa:J_,Ia:cf,ea:bf,ta:U_,gg:Sh,lf:md,qf:dd,Jc:$v,Pc:Bv,ne:vp,Af:nd,Ce:tp,Je:Yd,tf:_d,$c:Av,bf:Rd,ie:bp,Xb:Ey,ug:lh,Bf:id,Dd:Jp,Pb:Oy,fc:wy,gc:my,ad:Rv,id:mv,re:fp,Ld:$p,Uc:xv,_d:Pp,ce:Rp,Eb:qy,hg:Th,yg:ah,fa:xd,tb:eg,Qf:Wh,uf:ld,vf:ud,Fc:Yv,dc:by,be:Ap,gf:Td,oe:pp,he:jp,Sd:Bp,je:wp,Qb:Iy,$f:Ph,Xc:Iv,Wc:Ov,Ed:zp,bg:Ch,yb:Qy,dg:Rh,pd:fv,xg:oh,Mc:Nv,Zf:Oh,Bg:ih,jg:bh,gd:bv,Lf:Vh,qe:hp,pe:dp,Tb:Cy,Wb:Ry,jd:gv,fg:kh,Ob:Fy,ae:Cp,nd:dv,qd:_v,cf:Ed,Dg:rh,ke:mp,Gd:Qp,kd:yv,_f:Ih,ag:Dh,Db:$y,od:hv,Cb:Gy,rg:hh,kg:wh,Yf:Fh,Ne:$d,ng:yh,Ge:zd,Fe:Jd,ze:np,Ab:Vy,zb:Yy,Nb:xy,ee:kp,Tf:Hh,mc:hy,qc:uy,eg:Eh,Pd:Np,Yb:ky,Te:Bd,$e:Cd,fe:Sp,pc:ly,Pf:qh,_e:Dd,Gf:Jh,cc:jy,ed:Tv,Df:td,De:ep,hc:gy,Nc:Uv,jf:bd,hf:jd,z:pl,V:wl},$=Ec(),_s=u._main=(e,t)=>(_s=u._main=$.xh)(e,t),Al=u._duckdb_web_fs_glob_add_path=e=>(Al=u._duckdb_web_fs_glob_add_path=$.zh)(e),Cl=u._duckdb_web_clear_response=()=>(Cl=u._duckdb_web_clear_response=$.Ah)(),Dl=u._duckdb_web_fail_with=e=>(Dl=u._duckdb_web_fail_with=$.Bh)(e),Pl=u._duckdb_web_reset=e=>(Pl=u._duckdb_web_reset=$.Ch)(e),Il=u._duckdb_web_connect=()=>(Il=u._duckdb_web_connect=$.Dh)(),Ol=u._duckdb_web_disconnect=e=>(Ol=u._duckdb_web_disconnect=$.Eh)(e),Fl=u._duckdb_web_flush_files=()=>(Fl=u._duckdb_web_flush_files=$.Fh)(),xl=u._duckdb_web_flush_file=e=>(xl=u._duckdb_web_flush_file=$.Gh)(e),Ml=u._duckdb_web_open=(e,t)=>(Ml=u._duckdb_web_open=$.Hh)(e,t),Ll=u._duckdb_web_get_global_file_info=(e,t)=>(Ll=u._duckdb_web_get_global_file_info=$.Ih)(e,t),Bl=u._duckdb_web_collect_file_stats=(e,t,i)=>(Bl=u._duckdb_web_collect_file_stats=$.Jh)(e,t,i),Hl=u._duckdb_web_export_file_stats=(e,t)=>(Hl=u._duckdb_web_export_file_stats=$.Kh)(e,t),Ul=u._duckdb_web_fs_drop_file=(e,t)=>(Ul=u._duckdb_web_fs_drop_file=$.Lh)(e,t),Nl=u._duckdb_web_fs_drop_files=(e,t,i)=>(Nl=u._duckdb_web_fs_drop_files=$.Mh)(e,t,i),Wl=u._duckdb_web_fs_glob_file_infos=(e,t)=>(Wl=u._duckdb_web_fs_glob_file_infos=$.Nh)(e,t),ql=u._duckdb_web_fs_get_file_info_by_id=(e,t,i)=>(ql=u._duckdb_web_fs_get_file_info_by_id=$.Oh)(e,t,i),$l=u._duckdb_web_fs_get_file_info_by_name=(e,t,i)=>($l=u._duckdb_web_fs_get_file_info_by_name=$.Ph)(e,t,i),Gl=u._duckdb_web_fs_register_file_url=(e,t,i,n,o)=>(Gl=u._duckdb_web_fs_register_file_url=$.Qh)(e,t,i,n,o),Kl=u._duckdb_web_fs_register_file_buffer=(e,t,i,n)=>(Kl=u._duckdb_web_fs_register_file_buffer=$.Rh)(e,t,i,n),Vl=u._duckdb_web_copy_file_to_buffer=(e,t)=>(Vl=u._duckdb_web_copy_file_to_buffer=$.Sh)(e,t),Yl=u._duckdb_web_copy_file_to_path=(e,t,i)=>(Yl=u._duckdb_web_copy_file_to_path=$.Th)(e,t,i),Ql=u._duckdb_web_get_version=e=>(Ql=u._duckdb_web_get_version=$.Uh)(e),Xl=u._duckdb_web_get_feature_flags=()=>(Xl=u._duckdb_web_get_feature_flags=$.Vh)(),zl=u._duckdb_web_tokenize=(e,t)=>(zl=u._duckdb_web_tokenize=$.Wh)(e,t),Jl=u._duckdb_web_tokenize_buffer=(e,t,i)=>(Jl=u._duckdb_web_tokenize_buffer=$.Xh)(e,t,i),Zl=u._duckdb_web_udf_scalar_create=(e,t,i)=>(Zl=u._duckdb_web_udf_scalar_create=$.Yh)(e,t,i),e_=u._duckdb_web_prepared_create=(e,t,i)=>(e_=u._duckdb_web_prepared_create=$.Zh)(e,t,i),t_=u._duckdb_web_prepared_create_buffer=(e,t,i,n)=>(t_=u._duckdb_web_prepared_create_buffer=$._h)(e,t,i,n),r_=u._duckdb_web_prepared_close=(e,t,i)=>(r_=u._duckdb_web_prepared_close=$.$h)(e,t,i),i_=u._duckdb_web_prepared_run=(e,t,i,n)=>(i_=u._duckdb_web_prepared_run=$.ai)(e,t,i,n),n_=u._duckdb_web_prepared_send=(e,t,i,n)=>(n_=u._duckdb_web_prepared_send=$.bi)(e,t,i,n),s_=u._duckdb_web_query_run=(e,t,i)=>(s_=u._duckdb_web_query_run=$.ci)(e,t,i),a_=u._duckdb_web_query_run_buffer=(e,t,i,n)=>(a_=u._duckdb_web_query_run_buffer=$.di)(e,t,i,n),o_=u._duckdb_web_pending_query_start=(e,t,i,n)=>(o_=u._duckdb_web_pending_query_start=$.ei)(e,t,i,n),c_=u._duckdb_web_pending_query_start_buffer=(e,t,i,n,o)=>(c_=u._duckdb_web_pending_query_start_buffer=$.fi)(e,t,i,n,o),u_=u._duckdb_web_pending_query_poll=(e,t,i)=>(u_=u._duckdb_web_pending_query_poll=$.gi)(e,t,i),l_=u._duckdb_web_pending_query_cancel=(e,t)=>(l_=u._duckdb_web_pending_query_cancel=$.hi)(e,t),__=u._duckdb_web_query_fetch_results=(e,t)=>(__=u._duckdb_web_query_fetch_results=$.ii)(e,t),f_=u._duckdb_web_get_tablenames=(e,t,i)=>(f_=u._duckdb_web_get_tablenames=$.ji)(e,t,i),h_=u._duckdb_web_get_tablenames_buffer=(e,t,i,n)=>(h_=u._duckdb_web_get_tablenames_buffer=$.ki)(e,t,i,n),d_=u._duckdb_web_insert_arrow_from_ipc_stream=(e,t,i,n,o)=>(d_=u._duckdb_web_insert_arrow_from_ipc_stream=$.li)(e,t,i,n,o),p_=u._duckdb_web_insert_csv_from_path=(e,t,i,n)=>(p_=u._duckdb_web_insert_csv_from_path=$.mi)(e,t,i,n),v_=u._duckdb_web_insert_json_from_path=(e,t,i,n)=>(v_=u._duckdb_web_insert_json_from_path=$.ni)(e,t,i,n),ze=u._malloc=e=>(ze=u._malloc=$.ri)(e),y_=u._free=e=>(y_=u._free=$.si)(e),g_=u._calloc=(e,t)=>(g_=u._calloc=$.ti)(e,t),fs=e=>(fs=$.vi)(e),hs=()=>(hs=$.wi)(),ds=e=>(ds=$.xi)(e),ps=e=>(ps=$.yi)(e),vs=()=>(vs=$.zi)();function m_(e){var t=g();try{x(e)()}catch(i){if(y(t),i!==i+0)throw i;_setThrew(1,0)}}function w_(e,t,i){var n=g();try{x(e)(t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function b_(e,t){var i=g();try{return x(e)(t)}catch(n){if(y(i),n!==n+0)throw n;_setThrew(1,0)}}function j_(e,t){var i=g();try{x(e)(t)}catch(n){if(y(i),n!==n+0)throw n;_setThrew(1,0)}}function T_(e,t,i){var n=g();try{return x(e)(t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function S_(e,t,i,n){var o=g();try{return x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function k_(e,t,i,n,o,c){var l=g();try{return x(e)(t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function E_(e,t,i,n){var o=g();try{x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function R_(e,t,i,n,o){var c=g();try{return x(e)(t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function A_(e,t,i,n){var o=g();try{return x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function C_(e,t,i,n){var o=g();try{return x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function D_(e,t,i,n,o){var c=g();try{x(e)(t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function P_(e,t,i,n){var o=g();try{x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function I_(e,t,i,n,o,c,l,_){var f=g();try{return x(e)(t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function O_(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return x(e)(t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function F_(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{return x(e)(t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function x_(e){var t=g();try{return x(e)()}catch(i){if(y(t),i!==i+0)throw i;_setThrew(1,0)}}function M_(e,t,i,n,o,c,l,_){var f=g();try{x(e)(t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function L_(e,t,i,n,o,c,l){var _=g();try{return x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function B_(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return x(e)(t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function H_(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{x(e)(t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function U_(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A){var q=g();try{x(e)(t,i,n,o,c,l,_,f,h,d,p,w,j,R,A)}catch(ee){if(y(q),ee!==ee+0)throw ee;_setThrew(1,0)}}function N_(e,t,i,n,o,c,l){var _=g();try{x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function W_(e,t,i,n,o,c){var l=g();try{return x(e)(t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function q_(e,t,i,n,o,c){var l=g();try{x(e)(t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function $_(e,t,i,n,o,c,l,_,f,h,d,p,w,j){var R=g();try{return x(e)(t,i,n,o,c,l,_,f,h,d,p,w,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function G_(e,t,i){var n=g();try{x(e)(t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function K_(e,t,i){var n=g();try{x(e)(t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function V_(e,t,i,n,o,c,l,_,f,h){var d=g();try{return x(e)(t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Y_(e,t,i,n,o,c,l,_,f){var h=g();try{return x(e)(t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Q_(e,t){var i=g();try{return x(e)(t)}catch(n){if(y(i),n!==n+0)throw n;_setThrew(1,0)}}function X_(e,t,i,n,o){var c=g();try{return x(e)(t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function z_(e,t,i,n,o,c,l,_,f){var h=g();try{x(e)(t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function J_(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{x(e)(t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Z_(e,t){var i=g();try{return x(e)(t)}catch(n){if(y(i),n!==n+0)throw n;_setThrew(1,0)}}function ef(e,t){var i=g();try{return x(e)(t)}catch(n){if(y(i),n!==n+0)throw n;_setThrew(1,0)}}function tf(e,t,i,n,o,c,l,_,f,h){var d=g();try{x(e)(t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function rf(e,t){var i=g();try{return x(e)(t)}catch(n){if(y(i),n!==n+0)throw n;_setThrew(1,0)}}function nf(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q,ee){var P=g();try{return x(e)(t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q,ee)}catch(W){if(y(P),W!==W+0)throw W;_setThrew(1,0)}}function sf(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q){var ee=g();try{return x(e)(t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q)}catch(P){if(y(ee),P!==P+0)throw P;_setThrew(1,0)}}function af(e,t,i,n){var o=g();try{return x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function of(e,t,i,n,o){var c=g();try{return x(e)(t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function cf(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{x(e)(t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function uf(e,t,i){var n=g();try{return x(e)(t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function lf(e,t,i,n){var o=g();try{x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function _f(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{x(e)(t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function ff(e,t,i,n,o){var c=g();try{return x(e)(t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function hf(e,t,i,n,o,c,l){var _=g();try{return x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function df(e,t,i,n){var o=g();try{x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function pf(e,t){var i=g();try{return x(e)(t)}catch(n){if(y(i),n!==n+0)throw n;_setThrew(1,0)}}function vf(e,t,i,n,o,c,l){var _=g();try{x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function yf(e,t,i,n,o,c){var l=g();try{return x(e)(t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function gf(e,t,i,n,o,c,l){var _=g();try{return x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function mf(e,t,i,n,o){var c=g();try{return x(e)(t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function wf(e,t,i,n){var o=g();try{return x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function bf(e,t,i,n,o,c,l,_,f,h,d,p,w,j){var R=g();try{x(e)(t,i,n,o,c,l,_,f,h,d,p,w,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function jf(e,t,i){var n=g();try{return x(e)(t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function Tf(e,t,i,n){var o=g();try{return x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function Sf(e,t){var i=g();try{return x(e)(t)}catch(n){if(y(i),n!==n+0)throw n;_setThrew(1,0)}}function kf(e,t,i,n){var o=g();try{return x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function Ef(e,t,i){var n=g();try{return x(e)(t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function Rf(e,t,i){var n=g();try{return x(e)(t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function Af(e,t,i,n,o,c){var l=g();try{return x(e)(t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Cf(e,t,i){var n=g();try{return x(e)(t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function Df(e,t,i){var n=g();try{return x(e)(t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function Pf(e,t,i){var n=g();try{return x(e)(t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function If(e,t,i,n){var o=g();try{return x(e)(t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function Of(e,t,i,n,o,c){var l=g();try{return x(e)(t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Ff(e,t,i,n,o,c,l){var _=g();try{return x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function xf(e,t,i,n,o){var c=g();try{return x(e)(t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function Mf(e,t,i,n,o){var c=g();try{x(e)(t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function Lf(e,t,i,n,o){var c=g();try{x(e)(t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function Bf(e,t,i,n,o){var c=g();try{return x(e)(t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function Hf(e,t,i,n,o,c,l){var _=g();try{return x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Uf(e){var t=g();try{return x(e)()}catch(i){if(y(t),i!==i+0)throw i;_setThrew(1,0)}}function Nf(e,t,i,n,o,c,l){var _=g();try{x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Wf(e,t,i,n,o,c,l,_){var f=g();try{x(e)(t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function qf(e,t,i,n,o,c,l){var _=g();try{x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function $f(e,t,i,n,o,c){var l=g();try{return x(e)(t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Gf(e,t,i,n,o,c,l){var _=g();try{return x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Kf(e,t,i,n,o,c){var l=g();try{x(e)(t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Vf(e,t,i,n,o,c,l){var _=g();try{return x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Yf(e,t,i,n,o,c,l,_){var f=g();try{return x(e)(t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Qf(e,t,i,n,o,c,l,_,f,h){var d=g();try{return x(e)(t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Xf(e,t,i,n,o,c,l,_,f){var h=g();try{return x(e)(t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function zf(e,t,i,n,o,c,l){var _=g();try{return x(e)(t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Jf(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A){var q=g();try{return x(e)(t,i,n,o,c,l,_,f,h,d,p,w,j,R,A)}catch(ee){if(y(q),ee!==ee+0)throw ee;_setThrew(1,0)}}function Zf(e,t,i,n,o,c){var l=g();try{x(e)(t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function eh(e,t,i,n,o,c,l,_){var f=g();try{x(e)(t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function th(e,t,i,n,o){var c=g();try{return dynCall_jiiii(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function rh(e,t,i,n,o,c,l){var _=g();try{dynCall_viijj(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function ih(e,t,i,n,o,c,l){var _=g();try{dynCall_viijii(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function nh(e,t,i,n,o,c,l){var _=g();try{return dynCall_iiiiij(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function sh(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iiiiijj(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function ah(e,t,i,n,o,c){var l=g();try{dynCall_viiij(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function oh(e,t,i,n,o){var c=g();try{dynCall_viij(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function ch(e,t){var i=g();try{return dynCall_ji(e,t)}catch(n){if(y(i),n!==n+0)throw n;_setThrew(1,0)}}function uh(e,t,i,n){var o=g();try{return dynCall_iij(e,t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function lh(e,t,i,n,o,c,l){var _=g();try{dynCall_viiiij(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function _h(e,t,i){var n=g();try{return dynCall_jii(e,t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function fh(e,t,i){var n=g();try{return dynCall_jj(e,t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function hh(e,t,i,n){var o=g();try{dynCall_vij(e,t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function dh(e,t,i,n,o,c){var l=g();try{return dynCall_iiiij(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function ph(e,t,i,n,o){var c=g();try{return dynCall_iiij(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function vh(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_iiijij(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function yh(e,t,i,n,o,c,l,_){var f=g();try{dynCall_vijiiii(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function gh(e,t,i,n,o){var c=g();try{return dynCall_iiji(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function mh(e,t,i,n,o,c){var l=g();try{return dynCall_iiiji(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function wh(e,t,i,n,o){var c=g();try{dynCall_viji(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function bh(e,t,i,n,o,c,l,_){var f=g();try{dynCall_viijiii(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function jh(e,t,i,n,o,c){var l=g();try{return dynCall_iijj(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Th(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{dynCall_viiiijjjii(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Sh(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viiiiiiij(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function kh(e,t,i,n,o,c,l,_){var f=g();try{dynCall_viijij(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Eh(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_vijijj(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Rh(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viiijjjj(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Ah(e,t,i,n){var o=g();try{return dynCall_iji(e,t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function Ch(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viiijjj(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Dh(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viijjji(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Ph(e,t,i,n,o,c,l,_){var f=g();try{dynCall_viiijj(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Ih(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viijjj(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Oh(e,t,i,n,o,c){var l=g();try{dynCall_viiji(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Fh(e,t,i,n,o,c){var l=g();try{dynCall_vijii(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function xh(e,t,i,n,o,c,l){var _=g();try{return dynCall_iijiii(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Mh(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iiiijjj(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Lh(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_iiijiii(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Bh(e,t,i,n,o,c){var l=g();try{return dynCall_iijii(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Hh(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_vijiiji(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Uh(e,t,i){var n=g();try{return dynCall_ij(e,t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function Nh(e,t,i,n){var o=g();try{return dynCall_jiii(e,t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function Wh(e,t,i,n,o,c,l){var _=g();try{dynCall_viiiji(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function qh(e,t,i,n,o,c,l,_){var f=g();try{dynCall_vijjj(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function $h(e,t,i,n,o,c,l){var _=g();try{return dynCall_iijij(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Gh(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iiiiijii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Kh(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iiiiiijii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Vh(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viijiiiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Yh(e,t,i,n,o,c){var l=g();try{return dynCall_jiiji(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Qh(e,t,i,n,o,c){var l=g();try{return dynCall_fiiji(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Xh(e,t,i,n,o,c){var l=g();try{return dynCall_diiji(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function zh(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iiiiijiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Jh(e,t,i){var n=g();try{dynCall_vj(e,t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function Zh(e,t,i,n,o,c,l){var _=g();try{return dynCall_iiijii(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function ed(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_ijjiii(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function td(e,t,i,n,o,c,l){var _=g();try{dynCall_vjiiii(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function rd(e,t,i,n,o,c,l){var _=g();try{return dynCall_jiijii(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function id(e,t,i,n,o,c,l,_){var f=g();try{dynCall_viiiiji(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function nd(e,t,i,n,o,c,l,_){var f=g();try{dynCall_viiiiij(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function sd(e,t,i,n){var o=g();try{return dynCall_jij(e,t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function ad(e){var t=g();try{return dynCall_j(e)}catch(i){if(y(t),i!==i+0)throw i;_setThrew(1,0)}}function od(e,t,i,n,o,c,l){var _=g();try{return dynCall_iiijj(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function cd(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_iiijji(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function ud(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viiijiii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function ld(e,t,i,n,o,c,l,_){var f=g();try{dynCall_viiijii(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function _d(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_viiiiijiii(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function fd(e,t,i,n,o,c,l){var _=g();try{return dynCall_iiiiji(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function hd(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iiiiiiji(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function dd(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viiiiiij(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function pd(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_iiiiiji(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function vd(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iiiiijiiii(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function yd(e,t,i,n,o,c,l){var _=g();try{return dynCall_jiiiiii(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function gd(e,t,i,n,o,c){var l=g();try{return dynCall_jiiij(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function md(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{dynCall_viiiiiiijij(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function wd(e,t,i,n,o){var c=g();try{return dynCall_jiij(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function bd(e,t,i,n,o,c,l){var _=g();try{dynCall_vjjii(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function jd(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_vjjijij(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Td(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{dynCall_viiijiijij(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Sd(e,t,i,n,o,c,l){var _=g();try{return dynCall_jiiiji(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function kd(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_jiijiij(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Ed(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viijijj(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Rd(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_viiiiijij(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Ad(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_jiiijij(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Cd(e,t,i,n,o,c,l){var _=g();try{dynCall_vijji(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Dd(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_vijjji(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Pd(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_jiiiiiji(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Id(e,t,i,n,o,c,l){var _=g();try{return dynCall_jiiiij(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Od(e,t){var i=g();try{return dynCall_jf(e,t)}catch(n){if(y(i),n!==n+0)throw n;_setThrew(1,0)}}function Fd(e,t){var i=g();try{return dynCall_jd(e,t)}catch(n){if(y(i),n!==n+0)throw n;_setThrew(1,0)}}function xd(e,t,i,n,o,c,l){var _=g();try{dynCall_viiijd(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Md(e,t,i,n,o,c){var l=g();try{return dynCall_iiifj(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Ld(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_iiiiiij(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Bd(e,t,i,n,o,c){var l=g();try{dynCall_vijj(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Hd(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_iiiijj(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Ud(e,t,i,n,o,c){var l=g();try{return dynCall_jiiiii(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Nd(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_iijiiii(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Wd(e,t,i,n,o,c,l){var _=g();try{return dynCall_iijji(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function qd(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iijjiiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function $d(e,t,i,n,o,c,l){var _=g();try{dynCall_vijiii(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Gd(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iijjiiiii(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Kd(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iiijjiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Vd(e,t,i,n,o,c,l){var _=g();try{return dynCall_ijjj(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Yd(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viiiiijii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Qd(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q,ee,P,W,_e,me){var it=g();try{return dynCall_iiiiiiiijjjjjjii(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q,ee,P,W,_e,me)}catch(Je){if(y(it),Je!==Je+0)throw Je;_setThrew(1,0)}}function Xd(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return dynCall_iiiiiiiiiij(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function zd(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_vijiiiii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Jd(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_vijiiiiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Zd(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iijiiiii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function ep(e,t,i,n,o,c,l,_){var f=g();try{dynCall_vjiiij(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function tp(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viiiiiji(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function rp(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return dynCall_iiiiijiiiii(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function ip(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_iiiijii(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function np(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_vijiiiiiii(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function sp(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_jiiijj(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function ap(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iiiiiijji(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function op(e,t,i,n,o){var c=g();try{return dynCall_ijii(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function cp(e,t,i,n,o){var c=g();try{return dynCall_iijf(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function up(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q){var ee=g();try{return dynCall_iiiiiijiijjji(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q)}catch(P){if(y(ee),P!==P+0)throw P;_setThrew(1,0)}}function lp(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{return dynCall_iiijjijiii(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function _p(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iiiijiii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function fp(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viiiijij(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function hp(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_viijiiiiii(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function dp(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viijiiij(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function pp(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viiijiijj(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function vp(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{dynCall_viiiiiijjj(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function yp(e,t,i,n,o,c,l){var _=g();try{return dynCall_jijij(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function gp(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iiiiijjj(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function mp(e,t,i,n,o,c,l,_){var f=g();try{dynCall_viijji(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function wp(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_viiijijj(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function bp(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{dynCall_viiiiijjij(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function jp(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viiijij(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Tp(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iiiijiiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Sp(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_vijjiii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function kp(e,t,i,n,o,c,l,_){var f=g();try{dynCall_vijiij(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Ep(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iiiiiiiij(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Rp(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viiiijjij(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Ap(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{dynCall_viiijiiijii(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Cp(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viijijiiii(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Dp(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iiiiiiiji(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Pp(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_viiiijjii(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Ip(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return dynCall_iiiiiiiijj(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Op(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iiiijjiii(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Fp(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iiiiiiij(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function xp(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{return dynCall_iiiiiiiiijii(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Mp(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_jiiijiii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Lp(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_jiiijii(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Bp(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viiijiji(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Hp(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_jijjj(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Up(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_dijjj(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Np(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_vijijjd(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Wp(e,t,i,n,o,c,l,_,f,h,d,p,w,j){var R=g();try{return dynCall_iiiiiiiiiiiji(e,t,i,n,o,c,l,_,f,h,d,p,w,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function qp(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return dynCall_iiiiiiijji(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function $p(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viiiijj(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Gp(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iiiijji(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Kp(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return dynCall_iiiiiiiiiji(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Vp(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iiiiiiiiji(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Yp(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_jiiiiijji(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Qp(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viijjii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Xp(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_jiiiiiii(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function zp(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_viiijjiii(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Jp(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viiiijii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Zp(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_jiiiiji(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function ev(e,t,i,n,o,c,l){var _=g();try{return dynCall_jiijj(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function tv(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{return dynCall_iiiiiiiijiii(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function rv(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iiiiiiiiij(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function iv(e,t,i,n,o,c){var l=g();try{return dynCall_iiidj(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function nv(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A){var q=g();try{return dynCall_iiiiiiiiiiijiii(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A)}catch(ee){if(y(q),ee!==ee+0)throw ee;_setThrew(1,0)}}function sv(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q,ee,P){var W=g();try{return dynCall_iiiiiiiiijiiiiiiii(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q,ee,P)}catch(_e){if(y(W),_e!==_e+0)throw _e;_setThrew(1,0)}}function av(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{return dynCall_iiiiiiiiiiji(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function ov(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iiiiijjii(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function cv(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return dynCall_iiiiijjij(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function uv(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return dynCall_iiiijiiiij(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function lv(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iiiijiiij(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function _v(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R){var A=g();try{dynCall_viijijijiji(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R)}catch(q){if(y(A),q!==q+0)throw q;_setThrew(1,0)}}function fv(e,t,i,n,o,c,l,_,f,h,d,p,w,j){var R=g();try{dynCall_viiijjjjii(e,t,i,n,o,c,l,_,f,h,d,p,w,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function hv(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viijjjji(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function dv(e,t,i,n,o,c,l,_,f,h,d,p,w,j){var R=g();try{dynCall_viijijijij(e,t,i,n,o,c,l,_,f,h,d,p,w,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function pv(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R){var A=g();try{return dynCall_iiiijiijjiii(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R)}catch(q){if(y(A),q!==q+0)throw q;_setThrew(1,0)}}function vv(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return dynCall_iijiiiiiij(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function yv(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viijjiiij(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function gv(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viijiijji(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function mv(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R){var A=g();try{dynCall_viiiijiijjii(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R)}catch(q){if(y(A),q!==q+0)throw q;_setThrew(1,0)}}function wv(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q,ee,P,W){var _e=g();try{return dynCall_iiiiiijjiiiiiiiji(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q,ee,P,W)}catch(me){if(y(_e),me!==me+0)throw me;_setThrew(1,0)}}function bv(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viijiiii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function jv(e,t,i,n,o,c){var l=g();try{return dynCall_ijji(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Tv(e,t,i,n,o){var c=g();try{dynCall_vjii(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function Sv(e,t,i,n,o){var c=g();try{return dynCall_jjj(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function kv(e,t,i,n){var o=g();try{return dynCall_jji(e,t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function Ev(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_iijiji(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Rv(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R){var A=g();try{dynCall_viiiijiiiiiiii(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R)}catch(q){if(y(A),q!==q+0)throw q;_setThrew(1,0)}}function Av(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viiiiijiiii(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Cv(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_jjjij(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Dv(e,t,i,n,o,c){var l=g();try{return dynCall_jijj(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Pv(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iiijiiiji(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Iv(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viiijji(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Ov(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viiijjii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Fv(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_jiiiijji(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function xv(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viiiijji(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Mv(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iiiijij(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Lv(e,t,i,n,o){var c=g();try{return dynCall_jiji(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function Bv(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viiiiiijij(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Hv(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_iijjii(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function Uv(e,t,i,n,o){var c=g();try{dynCall_vjj(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function Nv(e,t,i,n,o,c){var l=g();try{dynCall_viijd(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function Wv(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iijiiiiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function qv(e,t,i,n){var o=g();try{return dynCall_dij(e,t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function $v(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viiiiiiji(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Gv(e,t,i,n,o,c,l){var _=g();try{return dynCall_jjjii(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Kv(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{return dynCall_jiiijiijiii(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Vv(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_jiiiijiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Yv(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viiijiiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Qv(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_jiijjiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Xv(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_jiiiijii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function zv(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_jiijiiii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Jv(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return dynCall_jiiiiijiiii(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Zv(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iijjiii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function ey(e,t,i,n,o){var c=g();try{return dynCall_iidj(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function ty(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_jiiiiiiii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function ry(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iijjjii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function iy(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iijjji(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function ny(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iiijjj(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function sy(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_jjjji(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function ay(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iijjjj(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function oy(e,t,i,n,o,c,l){var _=g();try{return dynCall_fiiiij(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function cy(e,t,i,n,o,c,l){var _=g();try{return dynCall_diiiij(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function uy(e,t,i,n,o,c,l,_){var f=g();try{dynCall_vijiji(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function ly(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_vijjij(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function _y(e,t,i,n,o,c){var l=g();try{return dynCall_jjij(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function fy(e,t,i,n,o,c){var l=g();try{return dynCall_ijij(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function hy(e,t,i,n,o,c,l){var _=g();try{dynCall_vijij(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function dy(e,t,i,n,o){var c=g();try{return dynCall_diij(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function py(e,t,i,n,o,c){var l=g();try{return dynCall_djij(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function vy(e,t,i){var n=g();try{return dynCall_dj(e,t,i)}catch(o){if(y(n),o!==o+0)throw o;_setThrew(1,0)}}function yy(e,t,i,n,o,c){var l=g();try{return dynCall_jjjd(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function gy(e,t,i,n,o,c){var l=g();try{dynCall_vjij(e,t,i,n,o,c)}catch(_){if(y(l),_!==_+0)throw _;_setThrew(1,0)}}function my(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viiiijiiiii(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function wy(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_viiiijiiii(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function by(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viiijiiiji(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function jy(e,t,i,n){var o=g();try{dynCall_vji(e,t,i,n)}catch(c){if(y(o),c!==c+0)throw c;_setThrew(1,0)}}function Ty(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_jiijiiiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Sy(e,t,i,n,o,c,l,_){var f=g();try{return dynCall_jiijiii(e,t,i,n,o,c,l,_)}catch(h){if(y(f),h!==h+0)throw h;_setThrew(1,0)}}function ky(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_vijijjji(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Ey(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{dynCall_viiiiijjji(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Ry(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_viijiijj(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Ay(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_iiijiij(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Cy(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viijiij(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function Dy(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return dynCall_iiijiiijj(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Py(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iiijiijj(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Iy(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{dynCall_viiijijjj(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Oy(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_viiiijiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Fy(e,t,i,n,o,c,l,_,f){var h=g();try{dynCall_viijiji(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function xy(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_vijiiiiji(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function My(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iiijjji(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Ly(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iijiijj(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function By(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{return dynCall_iiijiiiijj(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Hy(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{return dynCall_iijiiijj(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function Uy(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iiijiiij(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Ny(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_jijjjj(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Wy(e,t,i,n,o,c,l){var _=g();try{return dynCall_jijiii(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function qy(e,t,i,n,o,c,l,_,f,h,d){var p=g();try{dynCall_viiiijjj(e,t,i,n,o,c,l,_,f,h,d)}catch(w){if(y(p),w!==w+0)throw w;_setThrew(1,0)}}function $y(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viijjjiii(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Gy(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{dynCall_viijjjjii(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Ky(e,t,i,n,o,c,l){var _=g();try{return dynCall_jijji(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function Vy(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_vijiiiiiiii(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function Yy(e,t,i,n,o,c,l,_,f,h){var d=g();try{dynCall_vijiiiij(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function Qy(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{dynCall_viiijjjiii(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function Xy(e,t,i,n,o,c,l,_,f,h,d,p,w,j){var R=g();try{return dynCall_iiiiiiiiijji(e,t,i,n,o,c,l,_,f,h,d,p,w,j)}catch(A){if(y(R),A!==A+0)throw A;_setThrew(1,0)}}function zy(e,t,i,n,o){var c=g();try{return dynCall_iijd(e,t,i,n,o)}catch(l){if(y(c),l!==l+0)throw l;_setThrew(1,0)}}function Jy(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q,ee,P,W,_e,me){var it=g();try{return dynCall_iiiiiiiiiiiijjidjii(e,t,i,n,o,c,l,_,f,h,d,p,w,j,R,A,q,ee,P,W,_e,me)}catch(Je){if(y(it),Je!==Je+0)throw Je;_setThrew(1,0)}}function Zy(e,t,i,n,o,c,l,_,f,h){var d=g();try{return dynCall_iiijiiiii(e,t,i,n,o,c,l,_,f,h)}catch(p){if(y(d),p!==p+0)throw p;_setThrew(1,0)}}function eg(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{dynCall_viiijdjji(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function tg(e,t,i,n,o,c,l){var _=g();try{return dynCall_diijj(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function rg(e,t,i,n,o,c,l,_,f,h,d,p){var w=g();try{return dynCall_iiijjijj(e,t,i,n,o,c,l,_,f,h,d,p)}catch(j){if(y(w),j!==j+0)throw j;_setThrew(1,0)}}function ig(e,t,i,n,o,c,l){var _=g();try{return dynCall_jjiji(e,t,i,n,o,c,l)}catch(f){if(y(_),f!==f+0)throw f;_setThrew(1,0)}}function ng(e,t,i,n,o,c,l,_,f,h,d,p,w){var j=g();try{return dynCall_jijjjjjd(e,t,i,n,o,c,l,_,f,h,d,p,w)}catch(R){if(y(j),R!==R+0)throw R;_setThrew(1,0)}}function sg(e,t,i,n,o,c,l,_,f){var h=g();try{return dynCall_jijjiii(e,t,i,n,o,c,l,_,f)}catch(d){if(y(h),d!==d+0)throw d;_setThrew(1,0)}}function ag(e){e=Object.assign({},e);var t=n=>o=>n(o)>>>0,i=n=>()=>n()>>>0;return e.ri=t(e.ri),e.yi=t(e.yi),e.zi=i(e.zi),e}u.stackSave=g,u.stackRestore=y,u.stackAlloc=Jt,u.getTempRet0=El,u.setTempRet0=St,u.ccall=Sl,u.createDyncallWrapper=kl;var Zt;ge=function e(){Zt||ys(),Zt||(ge=e)};function og(){var e=_s,t=0,i=0;try{var n=e(t,i);return as(n,!0),n}catch(o){return bl(o)}}function ys(){if(pe>0||(ne(),pe>0))return;function e(){Zt||(Zt=!0,u.calledRun=!0,!N&&(wt(),Hr(),v(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),gs&&og(),H()))}u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),e()},1)):e()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();var gs=!0;return u.noInitialRun&&(gs=!1),ys(),b}})();typeof Rs=="object"&&typeof Zr=="object"?Zr.exports=Es:typeof define=="function"&&define.amd&&define([],()=>Es)});var Ps=B(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.splitWhen=Ct.flatten=void 0;function gg(s){return s.reduce((r,a)=>[].concat(r,a),[])}Ct.flatten=gg;function mg(s,r){let a=[[]],u=0;for(let v of s)r(v)?(u++,a[u]=[]):a[u].push(v);return a}Ct.splitWhen=mg});var Is=B(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.isEnoentCodeError=void 0;function wg(s){return s.code==="ENOENT"}lr.isEnoentCodeError=wg});var Os=B(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.createDirentFromStats=void 0;var ti=class{constructor(r,a){this.name=r,this.isBlockDevice=a.isBlockDevice.bind(a),this.isCharacterDevice=a.isCharacterDevice.bind(a),this.isDirectory=a.isDirectory.bind(a),this.isFIFO=a.isFIFO.bind(a),this.isFile=a.isFile.bind(a),this.isSocket=a.isSocket.bind(a),this.isSymbolicLink=a.isSymbolicLink.bind(a)}};function bg(s,r){return new ti(s,r)}_r.createDirentFromStats=bg});var Ls=B(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.convertPosixPathToPattern=ke.convertWindowsPathToPattern=ke.convertPathToPattern=ke.escapePosixPath=ke.escapeWindowsPath=ke.escape=ke.removeLeadingDotSegment=ke.makeAbsolute=ke.unixify=void 0;var jg=require("os"),Tg=require("path"),Fs=jg.platform()==="win32",Sg=2,kg=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Eg=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Rg=/^\\\\([.?])/,Ag=/\\(?![!()+@[\]{}])/g;function Cg(s){return s.replace(/\\/g,"/")}ke.unixify=Cg;function Dg(s,r){return Tg.resolve(s,r)}ke.makeAbsolute=Dg;function Pg(s){if(s.charAt(0)==="."){let r=s.charAt(1);if(r==="/"||r==="\\")return s.slice(Sg)}return s}ke.removeLeadingDotSegment=Pg;ke.escape=Fs?ri:ii;function ri(s){return s.replace(Eg,"\\$2")}ke.escapeWindowsPath=ri;function ii(s){return s.replace(kg,"\\$2")}ke.escapePosixPath=ii;ke.convertPathToPattern=Fs?xs:Ms;function xs(s){return ri(s).replace(Rg,"//$1").replace(Ag,"/")}ke.convertWindowsPathToPattern=xs;function Ms(s){return ii(s)}ke.convertPosixPathToPattern=Ms});var Hs=B((Vb,Bs)=>{Bs.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var a;a=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(a[2])return!0;r=r.slice(a.index+a[0].length)}return!1}});var Ws=B((Yb,Ns)=>{var Ig=Hs(),Us={"{":"}","(":")","[":"]"},Og=function(s){if(s[0]==="!")return!0;for(var r=0,a=-2,u=-2,v=-2,m=-2,b=-2;r<s.length;){if(s[r]==="*"||s[r+1]==="?"&&/[\].+)]/.test(s[r])||u!==-1&&s[r]==="["&&s[r+1]!=="]"&&(u<r&&(u=s.indexOf("]",r)),u>r&&(b===-1||b>u||(b=s.indexOf("\\",r),b===-1||b>u)))||v!==-1&&s[r]==="{"&&s[r+1]!=="}"&&(v=s.indexOf("}",r),v>r&&(b=s.indexOf("\\",r),b===-1||b>v))||m!==-1&&s[r]==="("&&s[r+1]==="?"&&/[:!=]/.test(s[r+2])&&s[r+3]!==")"&&(m=s.indexOf(")",r),m>r&&(b=s.indexOf("\\",r),b===-1||b>m))||a!==-1&&s[r]==="("&&s[r+1]!=="|"&&(a<r&&(a=s.indexOf("|",r)),a!==-1&&s[a+1]!==")"&&(m=s.indexOf(")",a),m>a&&(b=s.indexOf("\\",a),b===-1||b>m))))return!0;if(s[r]==="\\"){var T=s[r+1];r+=2;var k=Us[T];if(k){var D=s.indexOf(k,r);D!==-1&&(r=D+1)}if(s[r]==="!")return!0}else r++}return!1},Fg=function(s){if(s[0]==="!")return!0;for(var r=0;r<s.length;){if(/[*?{}()[\]]/.test(s[r]))return!0;if(s[r]==="\\"){var a=s[r+1];r+=2;var u=Us[a];if(u){var v=s.indexOf(u,r);v!==-1&&(r=v+1)}if(s[r]==="!")return!0}else r++}return!1};Ns.exports=function(r,a){if(typeof r!="string"||r==="")return!1;if(Ig(r))return!0;var u=Og;return a&&a.strict===!1&&(u=Fg),u(r)}});var $s=B((Qb,qs)=>{"use strict";var xg=Ws(),Mg=require("path").posix.dirname,Lg=require("os").platform()==="win32",ni="/",Bg=/\\/g,Hg=/[\{\[].*[\}\]]$/,Ug=/(^|[^\\])([\{\[]|\([^\)]+$)/,Ng=/\\([\!\*\?\|\[\]\(\)\{\}])/g;qs.exports=function(r,a){var u=Object.assign({flipBackslashes:!0},a);u.flipBackslashes&&Lg&&r.indexOf(ni)<0&&(r=r.replace(Bg,ni)),Hg.test(r)&&(r+=ni),r+="a";do r=Mg(r);while(xg(r)||Ug.test(r));return r.replace(Ng,"$1")}});var fr=B(He=>{"use strict";He.isInteger=s=>typeof s=="number"?Number.isInteger(s):typeof s=="string"&&s.trim()!==""?Number.isInteger(Number(s)):!1;He.find=(s,r)=>s.nodes.find(a=>a.type===r);He.exceedsLimit=(s,r,a=1,u)=>u===!1||!He.isInteger(s)||!He.isInteger(r)?!1:(Number(r)-Number(s))/Number(a)>=u;He.escapeNode=(s,r=0,a)=>{let u=s.nodes[r];u&&(a&&u.type===a||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)};He.encloseBrace=s=>s.type!=="brace"||s.commas>>0+s.ranges>>0?!1:(s.invalid=!0,!0);He.isInvalidBrace=s=>s.type!=="brace"?!1:s.invalid===!0||s.dollar?!0:!(s.commas>>0+s.ranges>>0)||s.open!==!0||s.close!==!0?(s.invalid=!0,!0):!1;He.isOpenOrClose=s=>s.type==="open"||s.type==="close"?!0:s.open===!0||s.close===!0;He.reduce=s=>s.reduce((r,a)=>(a.type==="text"&&r.push(a.value),a.type==="range"&&(a.type="text"),r),[]);He.flatten=(...s)=>{let r=[],a=u=>{for(let v=0;v<u.length;v++){let m=u[v];Array.isArray(m)?a(m,r):m!==void 0&&r.push(m)}return r};return a(s),r}});var hr=B((zb,Ks)=>{"use strict";var Gs=fr();Ks.exports=(s,r={})=>{let a=(u,v={})=>{let m=r.escapeInvalid&&Gs.isInvalidBrace(v),b=u.invalid===!0&&r.escapeInvalid===!0,T="";if(u.value)return(m||b)&&Gs.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let k of u.nodes)T+=a(k);return T};return a(s)}});var Ys=B((Jb,Vs)=>{"use strict";Vs.exports=function(s){return typeof s=="number"?s-s===0:typeof s=="string"&&s.trim()!==""?Number.isFinite?Number.isFinite(+s):isFinite(+s):!1}});var ia=B((Zb,ra)=>{"use strict";var Qs=Ys(),vt=(s,r,a)=>{if(Qs(s)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(r===void 0||s===r)return String(s);if(Qs(r)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let u={relaxZeros:!0,...a};typeof u.strictZeros=="boolean"&&(u.relaxZeros=u.strictZeros===!1);let v=String(u.relaxZeros),m=String(u.shorthand),b=String(u.capture),T=String(u.wrap),k=s+":"+r+"="+v+m+b+T;if(vt.cache.hasOwnProperty(k))return vt.cache[k].result;let D=Math.min(s,r),E=Math.max(s,r);if(Math.abs(D-E)===1){let U=s+"|"+r;return u.capture?`(${U})`:u.wrap===!1?U:`(?:${U})`}let F=ta(s)||ta(r),I={min:s,max:r,a:D,b:E},te=[],M=[];if(F&&(I.isPadded=F,I.maxLen=String(I.max).length),D<0){let U=E<0?Math.abs(E):1;M=Xs(U,Math.abs(D),I,u),D=I.a=0}return E>=0&&(te=Xs(D,E,I,u)),I.negatives=M,I.positives=te,I.result=Wg(M,te,u),u.capture===!0?I.result=`(${I.result})`:u.wrap!==!1&&te.length+M.length>1&&(I.result=`(?:${I.result})`),vt.cache[k]=I,I.result};function Wg(s,r,a){let u=si(s,r,"-",!1,a)||[],v=si(r,s,"",!1,a)||[],m=si(s,r,"-?",!0,a)||[];return u.concat(m).concat(v).join("|")}function qg(s,r){let a=1,u=1,v=Js(s,a),m=new Set([r]);for(;s<=v&&v<=r;)m.add(v),a+=1,v=Js(s,a);for(v=Zs(r+1,u)-1;s<v&&v<=r;)m.add(v),u+=1,v=Zs(r+1,u)-1;return m=[...m],m.sort(Kg),m}function $g(s,r,a){if(s===r)return{pattern:s,count:[],digits:0};let u=Gg(s,r),v=u.length,m="",b=0;for(let T=0;T<v;T++){let[k,D]=u[T];k===D?m+=k:k!=="0"||D!=="9"?m+=Vg(k,D,a):b++}return b&&(m+=a.shorthand===!0?"\\d":"[0-9]"),{pattern:m,count:[b],digits:v}}function Xs(s,r,a,u){let v=qg(s,r),m=[],b=s,T;for(let k=0;k<v.length;k++){let D=v[k],E=$g(String(b),String(D),u),F="";if(!a.isPadded&&T&&T.pattern===E.pattern){T.count.length>1&&T.count.pop(),T.count.push(E.count[0]),T.string=T.pattern+ea(T.count),b=D+1;continue}a.isPadded&&(F=Yg(D,a,u)),E.string=F+E.pattern+ea(E.count),m.push(E),b=D+1,T=E}return m}function si(s,r,a,u,v){let m=[];for(let b of s){let{string:T}=b;!u&&!zs(r,"string",T)&&m.push(a+T),u&&zs(r,"string",T)&&m.push(a+T)}return m}function Gg(s,r){let a=[];for(let u=0;u<s.length;u++)a.push([s[u],r[u]]);return a}function Kg(s,r){return s>r?1:r>s?-1:0}function zs(s,r,a){return s.some(u=>u[r]===a)}function Js(s,r){return Number(String(s).slice(0,-r)+"9".repeat(r))}function Zs(s,r){return s-s%Math.pow(10,r)}function ea(s){let[r=0,a=""]=s;return a||r>1?`{${r+(a?","+a:"")}}`:""}function Vg(s,r,a){return`[${s}${r-s===1?"":"-"}${r}]`}function ta(s){return/^-?(0+)\d/.test(s)}function Yg(s,r,a){if(!r.isPadded)return s;let u=Math.abs(r.maxLen-String(s).length),v=a.relaxZeros!==!1;switch(u){case 0:return"";case 1:return v?"0?":"0";case 2:return v?"0{0,2}":"00";default:return v?`0{0,${u}}`:`0{${u}}`}}vt.cache={};vt.clearCache=()=>vt.cache={};ra.exports=vt});var ci=B((ej,_a)=>{"use strict";var Qg=require("util"),aa=ia(),na=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),Xg=s=>r=>s===!0?Number(r):String(r),ai=s=>typeof s=="number"||typeof s=="string"&&s!=="",Ht=s=>Number.isInteger(+s),oi=s=>{let r=`${s}`,a=-1;if(r[0]==="-"&&(r=r.slice(1)),r==="0")return!1;for(;r[++a]==="0";);return a>0},zg=(s,r,a)=>typeof s=="string"||typeof r=="string"?!0:a.stringify===!0,Jg=(s,r,a)=>{if(r>0){let u=s[0]==="-"?"-":"";u&&(s=s.slice(1)),s=u+s.padStart(u?r-1:r,"0")}return a===!1?String(s):s},sa=(s,r)=>{let a=s[0]==="-"?"-":"";for(a&&(s=s.slice(1),r--);s.length<r;)s="0"+s;return a?"-"+s:s},Zg=(s,r)=>{s.negatives.sort((b,T)=>b<T?-1:b>T?1:0),s.positives.sort((b,T)=>b<T?-1:b>T?1:0);let a=r.capture?"":"?:",u="",v="",m;return s.positives.length&&(u=s.positives.join("|")),s.negatives.length&&(v=`-(${a}${s.negatives.join("|")})`),u&&v?m=`${u}|${v}`:m=u||v,r.wrap?`(${a}${m})`:m},oa=(s,r,a,u)=>{if(a)return aa(s,r,{wrap:!1,...u});let v=String.fromCharCode(s);if(s===r)return v;let m=String.fromCharCode(r);return`[${v}-${m}]`},ca=(s,r,a)=>{if(Array.isArray(s)){let u=a.wrap===!0,v=a.capture?"":"?:";return u?`(${v}${s.join("|")})`:s.join("|")}return aa(s,r,a)},ua=(...s)=>new RangeError("Invalid range arguments: "+Qg.inspect(...s)),la=(s,r,a)=>{if(a.strictRanges===!0)throw ua([s,r]);return[]},e0=(s,r)=>{if(r.strictRanges===!0)throw new TypeError(`Expected step "${s}" to be a number`);return[]},t0=(s,r,a=1,u={})=>{let v=Number(s),m=Number(r);if(!Number.isInteger(v)||!Number.isInteger(m)){if(u.strictRanges===!0)throw ua([s,r]);return[]}v===0&&(v=0),m===0&&(m=0);let b=v>m,T=String(s),k=String(r),D=String(a);a=Math.max(Math.abs(a),1);let E=oi(T)||oi(k)||oi(D),F=E?Math.max(T.length,k.length,D.length):0,I=E===!1&&zg(s,r,u)===!1,te=u.transform||Xg(I);if(u.toRegex&&a===1)return oa(sa(s,F),sa(r,F),!0,u);let M={negatives:[],positives:[]},U=ce=>M[ce<0?"negatives":"positives"].push(Math.abs(ce)),K=[],z=0;for(;b?v>=m:v<=m;)u.toRegex===!0&&a>1?U(v):K.push(Jg(te(v,z),F,I)),v=b?v-a:v+a,z++;return u.toRegex===!0?a>1?Zg(M,u):ca(K,null,{wrap:!1,...u}):K},r0=(s,r,a=1,u={})=>{if(!Ht(s)&&s.length>1||!Ht(r)&&r.length>1)return la(s,r,u);let v=u.transform||(I=>String.fromCharCode(I)),m=`${s}`.charCodeAt(0),b=`${r}`.charCodeAt(0),T=m>b,k=Math.min(m,b),D=Math.max(m,b);if(u.toRegex&&a===1)return oa(k,D,!1,u);let E=[],F=0;for(;T?m>=b:m<=b;)E.push(v(m,F)),m=T?m-a:m+a,F++;return u.toRegex===!0?ca(E,null,{wrap:!1,options:u}):E},dr=(s,r,a,u={})=>{if(r==null&&ai(s))return[s];if(!ai(s)||!ai(r))return la(s,r,u);if(typeof a=="function")return dr(s,r,1,{transform:a});if(na(a))return dr(s,r,0,a);let v={...u};return v.capture===!0&&(v.wrap=!0),a=a||v.step||1,Ht(a)?Ht(s)&&Ht(r)?t0(s,r,a,v):r0(s,r,Math.max(Math.abs(a),1),v):a!=null&&!na(a)?e0(a,v):dr(s,r,1,a)};_a.exports=dr});var da=B((tj,ha)=>{"use strict";var i0=ci(),fa=fr(),n0=(s,r={})=>{let a=(u,v={})=>{let m=fa.isInvalidBrace(v),b=u.invalid===!0&&r.escapeInvalid===!0,T=m===!0||b===!0,k=r.escapeInvalid===!0?"\\":"",D="";if(u.isOpen===!0||u.isClose===!0)return k+u.value;if(u.type==="open")return T?k+u.value:"(";if(u.type==="close")return T?k+u.value:")";if(u.type==="comma")return u.prev.type==="comma"?"":T?u.value:"|";if(u.value)return u.value;if(u.nodes&&u.ranges>0){let E=fa.reduce(u.nodes),F=i0(...E,{...r,wrap:!1,toRegex:!0});if(F.length!==0)return E.length>1&&F.length>1?`(${F})`:F}if(u.nodes)for(let E of u.nodes)D+=a(E,u);return D};return a(s)};ha.exports=n0});var ya=B((rj,va)=>{"use strict";var s0=ci(),pa=hr(),Dt=fr(),yt=(s="",r="",a=!1)=>{let u=[];if(s=[].concat(s),r=[].concat(r),!r.length)return s;if(!s.length)return a?Dt.flatten(r).map(v=>`{${v}}`):r;for(let v of s)if(Array.isArray(v))for(let m of v)u.push(yt(m,r,a));else for(let m of r)a===!0&&typeof m=="string"&&(m=`{${m}}`),u.push(Array.isArray(m)?yt(v,m,a):v+m);return Dt.flatten(u)},a0=(s,r={})=>{let a=r.rangeLimit===void 0?1e3:r.rangeLimit,u=(v,m={})=>{v.queue=[];let b=m,T=m.queue;for(;b.type!=="brace"&&b.type!=="root"&&b.parent;)b=b.parent,T=b.queue;if(v.invalid||v.dollar){T.push(yt(T.pop(),pa(v,r)));return}if(v.type==="brace"&&v.invalid!==!0&&v.nodes.length===2){T.push(yt(T.pop(),["{}"]));return}if(v.nodes&&v.ranges>0){let F=Dt.reduce(v.nodes);if(Dt.exceedsLimit(...F,r.step,a))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=s0(...F,r);I.length===0&&(I=pa(v,r)),T.push(yt(T.pop(),I)),v.nodes=[];return}let k=Dt.encloseBrace(v),D=v.queue,E=v;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,D=E.queue;for(let F=0;F<v.nodes.length;F++){let I=v.nodes[F];if(I.type==="comma"&&v.type==="brace"){F===1&&D.push(""),D.push("");continue}if(I.type==="close"){T.push(yt(T.pop(),D,k));continue}if(I.value&&I.type!=="open"){D.push(yt(D.pop(),I.value));continue}I.nodes&&u(I,v)}return D};return Dt.flatten(u(s))};va.exports=a0});var ma=B((ij,ga)=>{"use strict";ga.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
3
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Sa=B((nj,Ta)=>{"use strict";var o0=hr(),{MAX_LENGTH:wa,CHAR_BACKSLASH:ui,CHAR_BACKTICK:c0,CHAR_COMMA:u0,CHAR_DOT:l0,CHAR_LEFT_PARENTHESES:_0,CHAR_RIGHT_PARENTHESES:f0,CHAR_LEFT_CURLY_BRACE:h0,CHAR_RIGHT_CURLY_BRACE:d0,CHAR_LEFT_SQUARE_BRACKET:ba,CHAR_RIGHT_SQUARE_BRACKET:ja,CHAR_DOUBLE_QUOTE:p0,CHAR_SINGLE_QUOTE:v0,CHAR_NO_BREAK_SPACE:y0,CHAR_ZERO_WIDTH_NOBREAK_SPACE:g0}=ma(),m0=(s,r={})=>{if(typeof s!="string")throw new TypeError("Expected a string");let a=r||{},u=typeof a.maxLength=="number"?Math.min(wa,a.maxLength):wa;if(s.length>u)throw new SyntaxError(`Input length (${s.length}), exceeds max characters (${u})`);let v={type:"root",input:s,nodes:[]},m=[v],b=v,T=v,k=0,D=s.length,E=0,F=0,I,te={},M=()=>s[E++],U=K=>{if(K.type==="text"&&T.type==="dot"&&(T.type="text"),T&&T.type==="text"&&K.type==="text"){T.value+=K.value;return}return b.nodes.push(K),K.parent=b,K.prev=T,T=K,K};for(U({type:"bos"});E<D;)if(b=m[m.length-1],I=M(),!(I===g0||I===y0)){if(I===ui){U({type:"text",value:(r.keepEscaping?I:"")+M()});continue}if(I===ja){U({type:"text",value:"\\"+I});continue}if(I===ba){k++;let K=!0,z;for(;E<D&&(z=M());){if(I+=z,z===ba){k++;continue}if(z===ui){I+=M();continue}if(z===ja&&(k--,k===0))break}U({type:"text",value:I});continue}if(I===_0){b=U({type:"paren",nodes:[]}),m.push(b),U({type:"text",value:I});continue}if(I===f0){if(b.type!=="paren"){U({type:"text",value:I});continue}b=m.pop(),U({type:"text",value:I}),b=m[m.length-1];continue}if(I===p0||I===v0||I===c0){let K=I,z;for(r.keepQuotes!==!0&&(I="");E<D&&(z=M());){if(z===ui){I+=z+M();continue}if(z===K){r.keepQuotes===!0&&(I+=z);break}I+=z}U({type:"text",value:I});continue}if(I===h0){F++;let z={type:"brace",open:!0,close:!1,dollar:T.value&&T.value.slice(-1)==="$"||b.dollar===!0,depth:F,commas:0,ranges:0,nodes:[]};b=U(z),m.push(b),U({type:"open",value:I});continue}if(I===d0){if(b.type!=="brace"){U({type:"text",value:I});continue}let K="close";b=m.pop(),b.close=!0,U({type:K,value:I}),F--,b=m[m.length-1];continue}if(I===u0&&F>0){if(b.ranges>0){b.ranges=0;let K=b.nodes.shift();b.nodes=[K,{type:"text",value:o0(b)}]}U({type:"comma",value:I}),b.commas++;continue}if(I===l0&&F>0&&b.commas===0){let K=b.nodes;if(F===0||K.length===0){U({type:"text",value:I});continue}if(T.type==="dot"){if(b.range=[],T.value+=I,T.type="range",b.nodes.length!==3&&b.nodes.length!==5){b.invalid=!0,b.ranges=0,T.type="text";continue}b.ranges++,b.args=[];continue}if(T.type==="range"){K.pop();let z=K[K.length-1];z.value+=T.value+I,T=z,b.ranges--;continue}U({type:"dot",value:I});continue}U({type:"text",value:I})}do if(b=m.pop(),b.type!=="root"){b.nodes.forEach(ce=>{ce.nodes||(ce.type==="open"&&(ce.isOpen=!0),ce.type==="close"&&(ce.isClose=!0),ce.nodes||(ce.type="text"),ce.invalid=!0)});let K=m[m.length-1],z=K.nodes.indexOf(b);K.nodes.splice(z,1,...b.nodes)}while(m.length>0);return U({type:"eos"}),v};Ta.exports=m0});var Ra=B((sj,Ea)=>{"use strict";var ka=hr(),w0=da(),b0=ya(),j0=Sa(),xe=(s,r={})=>{let a=[];if(Array.isArray(s))for(let u of s){let v=xe.create(u,r);Array.isArray(v)?a.push(...v):a.push(v)}else a=[].concat(xe.create(s,r));return r&&r.expand===!0&&r.nodupes===!0&&(a=[...new Set(a)]),a};xe.parse=(s,r={})=>j0(s,r);xe.stringify=(s,r={})=>ka(typeof s=="string"?xe.parse(s,r):s,r);xe.compile=(s,r={})=>(typeof s=="string"&&(s=xe.parse(s,r)),w0(s,r));xe.expand=(s,r={})=>{typeof s=="string"&&(s=xe.parse(s,r));let a=b0(s,r);return r.noempty===!0&&(a=a.filter(Boolean)),r.nodupes===!0&&(a=[...new Set(a)]),a};xe.create=(s,r={})=>s===""||s.length<3?[s]:r.expand!==!0?xe.compile(s,r):xe.expand(s,r);Ea.exports=xe});var Ut=B((aj,Ia)=>{"use strict";var T0=require("path"),Ge="\\\\/",Aa=`[^${Ge}]`,Ze="\\.",S0="\\+",k0="\\?",pr="\\/",E0="(?=.)",Ca="[^/]",li=`(?:${pr}|$)`,Da=`(?:^|${pr})`,_i=`${Ze}{1,2}${li}`,R0=`(?!${Ze})`,A0=`(?!${Da}${_i})`,C0=`(?!${Ze}{0,1}${li})`,D0=`(?!${_i})`,P0=`[^.${pr}]`,I0=`${Ca}*?`,Pa={DOT_LITERAL:Ze,PLUS_LITERAL:S0,QMARK_LITERAL:k0,SLASH_LITERAL:pr,ONE_CHAR:E0,QMARK:Ca,END_ANCHOR:li,DOTS_SLASH:_i,NO_DOT:R0,NO_DOTS:A0,NO_DOT_SLASH:C0,NO_DOTS_SLASH:D0,QMARK_NO_DOT:P0,STAR:I0,START_ANCHOR:Da},O0={...Pa,SLASH_LITERAL:`[${Ge}]`,QMARK:Aa,STAR:`${Aa}*?`,DOTS_SLASH:`${Ze}{1,2}(?:[${Ge}]|$)`,NO_DOT:`(?!${Ze})`,NO_DOTS:`(?!(?:^|[${Ge}])${Ze}{1,2}(?:[${Ge}]|$))`,NO_DOT_SLASH:`(?!${Ze}{0,1}(?:[${Ge}]|$))`,NO_DOTS_SLASH:`(?!${Ze}{1,2}(?:[${Ge}]|$))`,QMARK_NO_DOT:`[^.${Ge}]`,START_ANCHOR:`(?:^|[${Ge}])`,END_ANCHOR:`(?:[${Ge}]|$)`},F0={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Ia.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:F0,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:T0.sep,extglobChars(s){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${s.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(s){return s===!0?O0:Pa}}});var Nt=B(Pe=>{"use strict";var x0=require("path"),M0=process.platform==="win32",{REGEX_BACKSLASH:L0,REGEX_REMOVE_BACKSLASH:B0,REGEX_SPECIAL_CHARS:H0,REGEX_SPECIAL_CHARS_GLOBAL:U0}=Ut();Pe.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s);Pe.hasRegexChars=s=>H0.test(s);Pe.isRegexChar=s=>s.length===1&&Pe.hasRegexChars(s);Pe.escapeRegex=s=>s.replace(U0,"\\$1");Pe.toPosixSlashes=s=>s.replace(L0,"/");Pe.removeBackslashes=s=>s.replace(B0,r=>r==="\\"?"":r);Pe.supportsLookbehinds=()=>{let s=process.version.slice(1).split(".").map(Number);return s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10};Pe.isWindows=s=>s&&typeof s.windows=="boolean"?s.windows:M0===!0||x0.sep==="\\";Pe.escapeLast=(s,r,a)=>{let u=s.lastIndexOf(r,a);return u===-1?s:s[u-1]==="\\"?Pe.escapeLast(s,r,u-1):`${s.slice(0,u)}\\${s.slice(u)}`};Pe.removePrefix=(s,r={})=>{let a=s;return a.startsWith("./")&&(a=a.slice(2),r.prefix="./"),a};Pe.wrapOutput=(s,r={},a={})=>{let u=a.contains?"":"^",v=a.contains?"":"$",m=`${u}(?:${s})${v}`;return r.negated===!0&&(m=`(?:^(?!${m}).*$)`),m}});var Ua=B((cj,Ha)=>{"use strict";var Oa=Nt(),{CHAR_ASTERISK:fi,CHAR_AT:N0,CHAR_BACKWARD_SLASH:Wt,CHAR_COMMA:W0,CHAR_DOT:hi,CHAR_EXCLAMATION_MARK:di,CHAR_FORWARD_SLASH:Ba,CHAR_LEFT_CURLY_BRACE:pi,CHAR_LEFT_PARENTHESES:vi,CHAR_LEFT_SQUARE_BRACKET:q0,CHAR_PLUS:$0,CHAR_QUESTION_MARK:Fa,CHAR_RIGHT_CURLY_BRACE:G0,CHAR_RIGHT_PARENTHESES:xa,CHAR_RIGHT_SQUARE_BRACKET:K0}=Ut(),Ma=s=>s===Ba||s===Wt,La=s=>{s.isPrefix!==!0&&(s.depth=s.isGlobstar?1/0:1)},V0=(s,r)=>{let a=r||{},u=s.length-1,v=a.parts===!0||a.scanToEnd===!0,m=[],b=[],T=[],k=s,D=-1,E=0,F=0,I=!1,te=!1,M=!1,U=!1,K=!1,z=!1,ce=!1,fe=!1,Se=!1,J=!1,ue=0,Y,G,N={value:"",depth:0,isGlob:!1},ae=()=>D>=u,O=()=>k.charCodeAt(D+1),Q=()=>(Y=G,k.charCodeAt(++D));for(;D<u;){G=Q();let Z;if(G===Wt){ce=N.backslashes=!0,G=Q(),G===pi&&(z=!0);continue}if(z===!0||G===pi){for(ue++;ae()!==!0&&(G=Q());){if(G===Wt){ce=N.backslashes=!0,Q();continue}if(G===pi){ue++;continue}if(z!==!0&&G===hi&&(G=Q())===hi){if(I=N.isBrace=!0,M=N.isGlob=!0,J=!0,v===!0)continue;break}if(z!==!0&&G===W0){if(I=N.isBrace=!0,M=N.isGlob=!0,J=!0,v===!0)continue;break}if(G===G0&&(ue--,ue===0)){z=!1,I=N.isBrace=!0,J=!0;break}}if(v===!0)continue;break}if(G===Ba){if(m.push(D),b.push(N),N={value:"",depth:0,isGlob:!1},J===!0)continue;if(Y===hi&&D===E+1){E+=2;continue}F=D+1;continue}if(a.noext!==!0&&(G===$0||G===N0||G===fi||G===Fa||G===di)===!0&&O()===vi){if(M=N.isGlob=!0,U=N.isExtglob=!0,J=!0,G===di&&D===E&&(Se=!0),v===!0){for(;ae()!==!0&&(G=Q());){if(G===Wt){ce=N.backslashes=!0,G=Q();continue}if(G===xa){M=N.isGlob=!0,J=!0;break}}continue}break}if(G===fi){if(Y===fi&&(K=N.isGlobstar=!0),M=N.isGlob=!0,J=!0,v===!0)continue;break}if(G===Fa){if(M=N.isGlob=!0,J=!0,v===!0)continue;break}if(G===q0){for(;ae()!==!0&&(Z=Q());){if(Z===Wt){ce=N.backslashes=!0,Q();continue}if(Z===K0){te=N.isBracket=!0,M=N.isGlob=!0,J=!0;break}}if(v===!0)continue;break}if(a.nonegate!==!0&&G===di&&D===E){fe=N.negated=!0,E++;continue}if(a.noparen!==!0&&G===vi){if(M=N.isGlob=!0,v===!0){for(;ae()!==!0&&(G=Q());){if(G===vi){ce=N.backslashes=!0,G=Q();continue}if(G===xa){J=!0;break}}continue}break}if(M===!0){if(J=!0,v===!0)continue;break}}a.noext===!0&&(U=!1,M=!1);let V=k,he="",C="";E>0&&(he=k.slice(0,E),k=k.slice(E),F-=E),V&&M===!0&&F>0?(V=k.slice(0,F),C=k.slice(F)):M===!0?(V="",C=k):V=k,V&&V!==""&&V!=="/"&&V!==k&&Ma(V.charCodeAt(V.length-1))&&(V=V.slice(0,-1)),a.unescape===!0&&(C&&(C=Oa.removeBackslashes(C)),V&&ce===!0&&(V=Oa.removeBackslashes(V)));let S={prefix:he,input:s,start:E,base:V,glob:C,isBrace:I,isBracket:te,isGlob:M,isExtglob:U,isGlobstar:K,negated:fe,negatedExtglob:Se};if(a.tokens===!0&&(S.maxDepth=0,Ma(G)||b.push(N),S.tokens=b),a.parts===!0||a.tokens===!0){let Z;for(let oe=0;oe<m.length;oe++){let Ie=Z?Z+1:E,Oe=m[oe],Ae=s.slice(Ie,Oe);a.tokens&&(oe===0&&E!==0?(b[oe].isPrefix=!0,b[oe].value=he):b[oe].value=Ae,La(b[oe]),S.maxDepth+=b[oe].depth),(oe!==0||Ae!=="")&&T.push(Ae),Z=Oe}if(Z&&Z+1<s.length){let oe=s.slice(Z+1);T.push(oe),a.tokens&&(b[b.length-1].value=oe,La(b[b.length-1]),S.maxDepth+=b[b.length-1].depth)}S.slashes=m,S.parts=T}return S};Ha.exports=V0});var $a=B((uj,qa)=>{"use strict";var vr=Ut(),Me=Nt(),{MAX_LENGTH:yr,POSIX_REGEX_SOURCE:Y0,REGEX_NON_SPECIAL_CHARS:Q0,REGEX_SPECIAL_CHARS_BACKREF:X0,REPLACEMENTS:Na}=vr,z0=(s,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...s,r);s.sort();let a=`[${s.join("-")}]`;try{new RegExp(a)}catch{return s.map(v=>Me.escapeRegex(v)).join("..")}return a},Pt=(s,r)=>`Missing ${s}: "${r}" - use "\\\\${r}" to match literal characters`,Wa=(s,r)=>{if(typeof s!="string")throw new TypeError("Expected a string");s=Na[s]||s;let a={...r},u=typeof a.maxLength=="number"?Math.min(yr,a.maxLength):yr,v=s.length;if(v>u)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${u}`);let m={type:"bos",value:"",output:a.prepend||""},b=[m],T=a.capture?"":"?:",k=Me.isWindows(r),D=vr.globChars(k),E=vr.extglobChars(D),{DOT_LITERAL:F,PLUS_LITERAL:I,SLASH_LITERAL:te,ONE_CHAR:M,DOTS_SLASH:U,NO_DOT:K,NO_DOT_SLASH:z,NO_DOTS_SLASH:ce,QMARK:fe,QMARK_NO_DOT:Se,STAR:J,START_ANCHOR:ue}=D,Y=H=>`(${T}(?:(?!${ue}${H.dot?U:F}).)*?)`,G=a.dot?"":K,N=a.dot?fe:Se,ae=a.bash===!0?Y(a):J;a.capture&&(ae=`(${ae})`),typeof a.noext=="boolean"&&(a.noextglob=a.noext);let O={input:s,index:-1,start:0,dot:a.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:b};s=Me.removePrefix(s,O),v=s.length;let Q=[],V=[],he=[],C=m,S,Z=()=>O.index===v-1,oe=O.peek=(H=1)=>s[O.index+H],Ie=O.advance=()=>s[++O.index]||"",Oe=()=>s.slice(O.index+1),Ae=(H="",ve=0)=>{O.consumed+=H,O.index+=ve},lt=H=>{O.output+=H.output!=null?H.output:H.value,Ae(H.value)},Br=()=>{let H=1;for(;oe()==="!"&&(oe(2)!=="("||oe(3)==="?");)Ie(),O.start++,H++;return H%2===0?!1:(O.negated=!0,O.start++,!0)},_t=H=>{O[H]++,he.push(H)},Qe=H=>{O[H]--,he.pop()},ne=H=>{if(C.type==="globstar"){let ve=O.braces>0&&(H.type==="comma"||H.type==="brace"),L=H.extglob===!0||Q.length&&(H.type==="pipe"||H.type==="paren");H.type!=="slash"&&H.type!=="paren"&&!ve&&!L&&(O.output=O.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=ae,O.output+=C.output)}if(Q.length&&H.type!=="paren"&&(Q[Q.length-1].inner+=H.value),(H.value||H.output)&&lt(H),C&&C.type==="text"&&H.type==="text"){C.value+=H.value,C.output=(C.output||"")+H.value;return}H.prev=C,b.push(H),C=H},wt=(H,ve)=>{let L={...E[ve],conditions:1,inner:""};L.prev=C,L.parens=O.parens,L.output=O.output;let re=(a.capture?"(":"")+L.open;_t("parens"),ne({type:H,value:ve,output:O.output?"":M}),ne({type:"paren",extglob:!0,value:Ie(),output:re}),Q.push(L)},Hr=H=>{let ve=H.close+(a.capture?")":""),L;if(H.type==="negate"){let re=ae;H.inner&&H.inner.length>1&&H.inner.includes("/")&&(re=Y(a)),(re!==ae||Z()||/^\)+$/.test(Oe()))&&(ve=H.close=`)$))${re}`),H.inner.includes("*")&&(L=Oe())&&/^\.[^\\/.]+$/.test(L)&&(ve=H.close=`)${L})${re})`),H.prev.type==="bos"&&(O.negatedExtglob=!0)}ne({type:"paren",extglob:!0,value:S,output:ve}),Qe("parens")};if(a.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(s)){let H=!1,ve=s.replace(X0,(L,re,pe,Ee,ge,Mt)=>Ee==="\\"?(H=!0,L):Ee==="?"?re?re+Ee+(ge?fe.repeat(ge.length):""):Mt===0?N+(ge?fe.repeat(ge.length):""):fe.repeat(pe.length):Ee==="."?F.repeat(pe.length):Ee==="*"?re?re+Ee+(ge?ae:""):ae:re?L:`\\${L}`);return H===!0&&(a.unescape===!0?ve=ve.replace(/\\/g,""):ve=ve.replace(/\\+/g,L=>L.length%2===0?"\\\\":L?"\\":"")),ve===s&&a.contains===!0?(O.output=s,O):(O.output=Me.wrapOutput(ve,O,r),O)}for(;!Z();){if(S=Ie(),S==="\0")continue;if(S==="\\"){let L=oe();if(L==="/"&&a.bash!==!0||L==="."||L===";")continue;if(!L){S+="\\",ne({type:"text",value:S});continue}let re=/^\\+/.exec(Oe()),pe=0;if(re&&re[0].length>2&&(pe=re[0].length,O.index+=pe,pe%2!==0&&(S+="\\")),a.unescape===!0?S=Ie():S+=Ie(),O.brackets===0){ne({type:"text",value:S});continue}}if(O.brackets>0&&(S!=="]"||C.value==="["||C.value==="[^")){if(a.posix!==!1&&S===":"){let L=C.value.slice(1);if(L.includes("[")&&(C.posix=!0,L.includes(":"))){let re=C.value.lastIndexOf("["),pe=C.value.slice(0,re),Ee=C.value.slice(re+2),ge=Y0[Ee];if(ge){C.value=pe+ge,O.backtrack=!0,Ie(),!m.output&&b.indexOf(C)===1&&(m.output=M);continue}}}(S==="["&&oe()!==":"||S==="-"&&oe()==="]")&&(S=`\\${S}`),S==="]"&&(C.value==="["||C.value==="[^")&&(S=`\\${S}`),a.posix===!0&&S==="!"&&C.value==="["&&(S="^"),C.value+=S,lt({value:S});continue}if(O.quotes===1&&S!=='"'){S=Me.escapeRegex(S),C.value+=S,lt({value:S});continue}if(S==='"'){O.quotes=O.quotes===1?0:1,a.keepQuotes===!0&&ne({type:"text",value:S});continue}if(S==="("){_t("parens"),ne({type:"paren",value:S});continue}if(S===")"){if(O.parens===0&&a.strictBrackets===!0)throw new SyntaxError(Pt("opening","("));let L=Q[Q.length-1];if(L&&O.parens===L.parens+1){Hr(Q.pop());continue}ne({type:"paren",value:S,output:O.parens?")":"\\)"}),Qe("parens");continue}if(S==="["){if(a.nobracket===!0||!Oe().includes("]")){if(a.nobracket!==!0&&a.strictBrackets===!0)throw new SyntaxError(Pt("closing","]"));S=`\\${S}`}else _t("brackets");ne({type:"bracket",value:S});continue}if(S==="]"){if(a.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){ne({type:"text",value:S,output:`\\${S}`});continue}if(O.brackets===0){if(a.strictBrackets===!0)throw new SyntaxError(Pt("opening","["));ne({type:"text",value:S,output:`\\${S}`});continue}Qe("brackets");let L=C.value.slice(1);if(C.posix!==!0&&L[0]==="^"&&!L.includes("/")&&(S=`/${S}`),C.value+=S,lt({value:S}),a.literalBrackets===!1||Me.hasRegexChars(L))continue;let re=Me.escapeRegex(C.value);if(O.output=O.output.slice(0,-C.value.length),a.literalBrackets===!0){O.output+=re,C.value=re;continue}C.value=`(${T}${re}|${C.value})`,O.output+=C.value;continue}if(S==="{"&&a.nobrace!==!0){_t("braces");let L={type:"brace",value:S,output:"(",outputIndex:O.output.length,tokensIndex:O.tokens.length};V.push(L),ne(L);continue}if(S==="}"){let L=V[V.length-1];if(a.nobrace===!0||!L){ne({type:"text",value:S,output:S});continue}let re=")";if(L.dots===!0){let pe=b.slice(),Ee=[];for(let ge=pe.length-1;ge>=0&&(b.pop(),pe[ge].type!=="brace");ge--)pe[ge].type!=="dots"&&Ee.unshift(pe[ge].value);re=z0(Ee,a),O.backtrack=!0}if(L.comma!==!0&&L.dots!==!0){let pe=O.output.slice(0,L.outputIndex),Ee=O.tokens.slice(L.tokensIndex);L.value=L.output="\\{",S=re="\\}",O.output=pe;for(let ge of Ee)O.output+=ge.output||ge.value}ne({type:"brace",value:S,output:re}),Qe("braces"),V.pop();continue}if(S==="|"){Q.length>0&&Q[Q.length-1].conditions++,ne({type:"text",value:S});continue}if(S===","){let L=S,re=V[V.length-1];re&&he[he.length-1]==="braces"&&(re.comma=!0,L="|"),ne({type:"comma",value:S,output:L});continue}if(S==="/"){if(C.type==="dot"&&O.index===O.start+1){O.start=O.index+1,O.consumed="",O.output="",b.pop(),C=m;continue}ne({type:"slash",value:S,output:te});continue}if(S==="."){if(O.braces>0&&C.type==="dot"){C.value==="."&&(C.output=F);let L=V[V.length-1];C.type="dots",C.output+=S,C.value+=S,L.dots=!0;continue}if(O.braces+O.parens===0&&C.type!=="bos"&&C.type!=="slash"){ne({type:"text",value:S,output:F});continue}ne({type:"dot",value:S,output:F});continue}if(S==="?"){if(!(C&&C.value==="(")&&a.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){wt("qmark",S);continue}if(C&&C.type==="paren"){let re=oe(),pe=S;if(re==="<"&&!Me.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(C.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(Oe()))&&(pe=`\\${S}`),ne({type:"text",value:S,output:pe});continue}if(a.dot!==!0&&(C.type==="slash"||C.type==="bos")){ne({type:"qmark",value:S,output:Se});continue}ne({type:"qmark",value:S,output:fe});continue}if(S==="!"){if(a.noextglob!==!0&&oe()==="("&&(oe(2)!=="?"||!/[!=<:]/.test(oe(3)))){wt("negate",S);continue}if(a.nonegate!==!0&&O.index===0){Br();continue}}if(S==="+"){if(a.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){wt("plus",S);continue}if(C&&C.value==="("||a.regex===!1){ne({type:"plus",value:S,output:I});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||O.parens>0){ne({type:"plus",value:S});continue}ne({type:"plus",value:I});continue}if(S==="@"){if(a.noextglob!==!0&&oe()==="("&&oe(2)!=="?"){ne({type:"at",extglob:!0,value:S,output:""});continue}ne({type:"text",value:S});continue}if(S!=="*"){(S==="$"||S==="^")&&(S=`\\${S}`);let L=Q0.exec(Oe());L&&(S+=L[0],O.index+=L[0].length),ne({type:"text",value:S});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=S,C.output=ae,O.backtrack=!0,O.globstar=!0,Ae(S);continue}let H=Oe();if(a.noextglob!==!0&&/^\([^?]/.test(H)){wt("star",S);continue}if(C.type==="star"){if(a.noglobstar===!0){Ae(S);continue}let L=C.prev,re=L.prev,pe=L.type==="slash"||L.type==="bos",Ee=re&&(re.type==="star"||re.type==="globstar");if(a.bash===!0&&(!pe||H[0]&&H[0]!=="/")){ne({type:"star",value:S,output:""});continue}let ge=O.braces>0&&(L.type==="comma"||L.type==="brace"),Mt=Q.length&&(L.type==="pipe"||L.type==="paren");if(!pe&&L.type!=="paren"&&!ge&&!Mt){ne({type:"star",value:S,output:""});continue}for(;H.slice(0,3)==="/**";){let bt=s[O.index+4];if(bt&&bt!=="/")break;H=H.slice(3),Ae("/**",3)}if(L.type==="bos"&&Z()){C.type="globstar",C.value+=S,C.output=Y(a),O.output=C.output,O.globstar=!0,Ae(S);continue}if(L.type==="slash"&&L.prev.type!=="bos"&&!Ee&&Z()){O.output=O.output.slice(0,-(L.output+C.output).length),L.output=`(?:${L.output}`,C.type="globstar",C.output=Y(a)+(a.strictSlashes?")":"|$)"),C.value+=S,O.globstar=!0,O.output+=L.output+C.output,Ae(S);continue}if(L.type==="slash"&&L.prev.type!=="bos"&&H[0]==="/"){let bt=H[1]!==void 0?"|$":"";O.output=O.output.slice(0,-(L.output+C.output).length),L.output=`(?:${L.output}`,C.type="globstar",C.output=`${Y(a)}${te}|${te}${bt})`,C.value+=S,O.output+=L.output+C.output,O.globstar=!0,Ae(S+Ie()),ne({type:"slash",value:"/",output:""});continue}if(L.type==="bos"&&H[0]==="/"){C.type="globstar",C.value+=S,C.output=`(?:^|${te}|${Y(a)}${te})`,O.output=C.output,O.globstar=!0,Ae(S+Ie()),ne({type:"slash",value:"/",output:""});continue}O.output=O.output.slice(0,-C.output.length),C.type="globstar",C.output=Y(a),C.value+=S,O.output+=C.output,O.globstar=!0,Ae(S);continue}let ve={type:"star",value:S,output:ae};if(a.bash===!0){ve.output=".*?",(C.type==="bos"||C.type==="slash")&&(ve.output=G+ve.output),ne(ve);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&a.regex===!0){ve.output=S,ne(ve);continue}(O.index===O.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(O.output+=z,C.output+=z):a.dot===!0?(O.output+=ce,C.output+=ce):(O.output+=G,C.output+=G),oe()!=="*"&&(O.output+=M,C.output+=M)),ne(ve)}for(;O.brackets>0;){if(a.strictBrackets===!0)throw new SyntaxError(Pt("closing","]"));O.output=Me.escapeLast(O.output,"["),Qe("brackets")}for(;O.parens>0;){if(a.strictBrackets===!0)throw new SyntaxError(Pt("closing",")"));O.output=Me.escapeLast(O.output,"("),Qe("parens")}for(;O.braces>0;){if(a.strictBrackets===!0)throw new SyntaxError(Pt("closing","}"));O.output=Me.escapeLast(O.output,"{"),Qe("braces")}if(a.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&ne({type:"maybe_slash",value:"",output:`${te}?`}),O.backtrack===!0){O.output="";for(let H of O.tokens)O.output+=H.output!=null?H.output:H.value,H.suffix&&(O.output+=H.suffix)}return O};Wa.fastpaths=(s,r)=>{let a={...r},u=typeof a.maxLength=="number"?Math.min(yr,a.maxLength):yr,v=s.length;if(v>u)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${u}`);s=Na[s]||s;let m=Me.isWindows(r),{DOT_LITERAL:b,SLASH_LITERAL:T,ONE_CHAR:k,DOTS_SLASH:D,NO_DOT:E,NO_DOTS:F,NO_DOTS_SLASH:I,STAR:te,START_ANCHOR:M}=vr.globChars(m),U=a.dot?F:E,K=a.dot?I:E,z=a.capture?"":"?:",ce={negated:!1,prefix:""},fe=a.bash===!0?".*?":te;a.capture&&(fe=`(${fe})`);let Se=G=>G.noglobstar===!0?fe:`(${z}(?:(?!${M}${G.dot?D:b}).)*?)`,J=G=>{switch(G){case"*":return`${U}${k}${fe}`;case".*":return`${b}${k}${fe}`;case"*.*":return`${U}${fe}${b}${k}${fe}`;case"*/*":return`${U}${fe}${T}${k}${K}${fe}`;case"**":return U+Se(a);case"**/*":return`(?:${U}${Se(a)}${T})?${K}${k}${fe}`;case"**/*.*":return`(?:${U}${Se(a)}${T})?${K}${fe}${b}${k}${fe}`;case"**/.*":return`(?:${U}${Se(a)}${T})?${b}${k}${fe}`;default:{let N=/^(.*?)\.(\w+)$/.exec(G);if(!N)return;let ae=J(N[1]);return ae?ae+b+N[2]:void 0}}},ue=Me.removePrefix(s,ce),Y=J(ue);return Y&&a.strictSlashes!==!0&&(Y+=`${T}?`),Y};qa.exports=Wa});var Ka=B((lj,Ga)=>{"use strict";var J0=require("path"),Z0=Ua(),yi=$a(),gi=Nt(),em=Ut(),tm=s=>s&&typeof s=="object"&&!Array.isArray(s),Te=(s,r,a=!1)=>{if(Array.isArray(s)){let E=s.map(I=>Te(I,r,a));return I=>{for(let te of E){let M=te(I);if(M)return M}return!1}}let u=tm(s)&&s.tokens&&s.input;if(s===""||typeof s!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let v=r||{},m=gi.isWindows(r),b=u?Te.compileRe(s,r):Te.makeRe(s,r,!1,!0),T=b.state;delete b.state;let k=()=>!1;if(v.ignore){let E={...r,ignore:null,onMatch:null,onResult:null};k=Te(v.ignore,E,a)}let D=(E,F=!1)=>{let{isMatch:I,match:te,output:M}=Te.test(E,b,r,{glob:s,posix:m}),U={glob:s,state:T,regex:b,posix:m,input:E,output:M,match:te,isMatch:I};return typeof v.onResult=="function"&&v.onResult(U),I===!1?(U.isMatch=!1,F?U:!1):k(E)?(typeof v.onIgnore=="function"&&v.onIgnore(U),U.isMatch=!1,F?U:!1):(typeof v.onMatch=="function"&&v.onMatch(U),F?U:!0)};return a&&(D.state=T),D};Te.test=(s,r,a,{glob:u,posix:v}={})=>{if(typeof s!="string")throw new TypeError("Expected input to be a string");if(s==="")return{isMatch:!1,output:""};let m=a||{},b=m.format||(v?gi.toPosixSlashes:null),T=s===u,k=T&&b?b(s):s;return T===!1&&(k=b?b(s):s,T=k===u),(T===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?T=Te.matchBase(s,r,a,v):T=r.exec(k)),{isMatch:!!T,match:T,output:k}};Te.matchBase=(s,r,a,u=gi.isWindows(a))=>(r instanceof RegExp?r:Te.makeRe(r,a)).test(J0.basename(s));Te.isMatch=(s,r,a)=>Te(r,a)(s);Te.parse=(s,r)=>Array.isArray(s)?s.map(a=>Te.parse(a,r)):yi(s,{...r,fastpaths:!1});Te.scan=(s,r)=>Z0(s,r);Te.compileRe=(s,r,a=!1,u=!1)=>{if(a===!0)return s.output;let v=r||{},m=v.contains?"":"^",b=v.contains?"":"$",T=`${m}(?:${s.output})${b}`;s&&s.negated===!0&&(T=`^(?!${T}).*$`);let k=Te.toRegex(T,r);return u===!0&&(k.state=s),k};Te.makeRe=(s,r={},a=!1,u=!1)=>{if(!s||typeof s!="string")throw new TypeError("Expected a non-empty string");let v={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(s[0]==="."||s[0]==="*")&&(v.output=yi.fastpaths(s,r)),v.output||(v=yi(s,r)),Te.compileRe(v,r,a,u)};Te.toRegex=(s,r)=>{try{let a=r||{};return new RegExp(s,a.flags||(a.nocase?"i":""))}catch(a){if(r&&r.debug===!0)throw a;return/$^/}};Te.constants=em;Ga.exports=Te});var Ya=B((_j,Va)=>{"use strict";Va.exports=Ka()});var Za=B((fj,Ja)=>{"use strict";var Xa=require("util"),za=Ra(),Ke=Ya(),mi=Nt(),Qa=s=>s===""||s==="./",je=(s,r,a)=>{r=[].concat(r),s=[].concat(s);let u=new Set,v=new Set,m=new Set,b=0,T=E=>{m.add(E.output),a&&a.onResult&&a.onResult(E)};for(let E=0;E<r.length;E++){let F=Ke(String(r[E]),{...a,onResult:T},!0),I=F.state.negated||F.state.negatedExtglob;I&&b++;for(let te of s){let M=F(te,!0);(I?!M.isMatch:M.isMatch)&&(I?u.add(M.output):(u.delete(M.output),v.add(M.output)))}}let D=(b===r.length?[...m]:[...v]).filter(E=>!u.has(E));if(a&&D.length===0){if(a.failglob===!0)throw new Error(`No matches found for "${r.join(", ")}"`);if(a.nonull===!0||a.nullglob===!0)return a.unescape?r.map(E=>E.replace(/\\/g,"")):r}return D};je.match=je;je.matcher=(s,r)=>Ke(s,r);je.isMatch=(s,r,a)=>Ke(r,a)(s);je.any=je.isMatch;je.not=(s,r,a={})=>{r=[].concat(r).map(String);let u=new Set,v=[],b=je(s,r,{...a,onResult:T=>{a.onResult&&a.onResult(T),v.push(T.output)}});for(let T of v)b.includes(T)||u.add(T);return[...u]};je.contains=(s,r,a)=>{if(typeof s!="string")throw new TypeError(`Expected a string: "${Xa.inspect(s)}"`);if(Array.isArray(r))return r.some(u=>je.contains(s,u,a));if(typeof r=="string"){if(Qa(s)||Qa(r))return!1;if(s.includes(r)||s.startsWith("./")&&s.slice(2).includes(r))return!0}return je.isMatch(s,r,{...a,contains:!0})};je.matchKeys=(s,r,a)=>{if(!mi.isObject(s))throw new TypeError("Expected the first argument to be an object");let u=je(Object.keys(s),r,a),v={};for(let m of u)v[m]=s[m];return v};je.some=(s,r,a)=>{let u=[].concat(s);for(let v of[].concat(r)){let m=Ke(String(v),a);if(u.some(b=>m(b)))return!0}return!1};je.every=(s,r,a)=>{let u=[].concat(s);for(let v of[].concat(r)){let m=Ke(String(v),a);if(!u.every(b=>m(b)))return!1}return!0};je.all=(s,r,a)=>{if(typeof s!="string")throw new TypeError(`Expected a string: "${Xa.inspect(s)}"`);return[].concat(r).every(u=>Ke(u,a)(s))};je.capture=(s,r,a)=>{let u=mi.isWindows(a),m=Ke.makeRe(String(s),{...a,capture:!0}).exec(u?mi.toPosixSlashes(r):r);if(m)return m.slice(1).map(b=>b===void 0?"":b)};je.makeRe=(...s)=>Ke.makeRe(...s);je.scan=(...s)=>Ke.scan(...s);je.parse=(s,r)=>{let a=[];for(let u of[].concat(s||[]))for(let v of za(String(u),r))a.push(Ke.parse(v,r));return a};je.braces=(s,r)=>{if(typeof s!="string")throw new TypeError("Expected a string");return r&&r.nobrace===!0||!/\{.*\}/.test(s)?[s]:za(s,r)};je.braceExpand=(s,r)=>{if(typeof s!="string")throw new TypeError("Expected a string");return je.braces(s,{...r,expand:!0})};Ja.exports=je});var oo=B(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.removeDuplicateSlashes=X.matchAny=X.convertPatternsToRe=X.makeRe=X.getPatternParts=X.expandBraceExpansion=X.expandPatternsWithBraceExpansion=X.isAffectDepthOfReadingPattern=X.endsWithSlashGlobStar=X.hasGlobStar=X.getBaseDirectory=X.isPatternRelatedToParentDirectory=X.getPatternsOutsideCurrentDirectory=X.getPatternsInsideCurrentDirectory=X.getPositivePatterns=X.getNegativePatterns=X.isPositivePattern=X.isNegativePattern=X.convertToNegativePattern=X.convertToPositivePattern=X.isDynamicPattern=X.isStaticPattern=void 0;var rm=require("path"),im=$s(),wi=Za(),eo="**",nm="\\",sm=/[*?]|^!/,am=/\[[^[]*]/,om=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,cm=/[!*+?@]\([^(]*\)/,um=/,|\.\./,lm=/(?!^)\/{2,}/g;function to(s,r={}){return!ro(s,r)}X.isStaticPattern=to;function ro(s,r={}){return s===""?!1:!!(r.caseSensitiveMatch===!1||s.includes(nm)||sm.test(s)||am.test(s)||om.test(s)||r.extglob!==!1&&cm.test(s)||r.braceExpansion!==!1&&_m(s))}X.isDynamicPattern=ro;function _m(s){let r=s.indexOf("{");if(r===-1)return!1;let a=s.indexOf("}",r+1);if(a===-1)return!1;let u=s.slice(r,a);return um.test(u)}function fm(s){return gr(s)?s.slice(1):s}X.convertToPositivePattern=fm;function hm(s){return"!"+s}X.convertToNegativePattern=hm;function gr(s){return s.startsWith("!")&&s[1]!=="("}X.isNegativePattern=gr;function io(s){return!gr(s)}X.isPositivePattern=io;function dm(s){return s.filter(gr)}X.getNegativePatterns=dm;function pm(s){return s.filter(io)}X.getPositivePatterns=pm;function vm(s){return s.filter(r=>!bi(r))}X.getPatternsInsideCurrentDirectory=vm;function ym(s){return s.filter(bi)}X.getPatternsOutsideCurrentDirectory=ym;function bi(s){return s.startsWith("..")||s.startsWith("./..")}X.isPatternRelatedToParentDirectory=bi;function gm(s){return im(s,{flipBackslashes:!1})}X.getBaseDirectory=gm;function mm(s){return s.includes(eo)}X.hasGlobStar=mm;function no(s){return s.endsWith("/"+eo)}X.endsWithSlashGlobStar=no;function wm(s){let r=rm.basename(s);return no(s)||to(r)}X.isAffectDepthOfReadingPattern=wm;function bm(s){return s.reduce((r,a)=>r.concat(so(a)),[])}X.expandPatternsWithBraceExpansion=bm;function so(s){let r=wi.braces(s,{expand:!0,nodupes:!0,keepEscaping:!0});return r.sort((a,u)=>a.length-u.length),r.filter(a=>a!=="")}X.expandBraceExpansion=so;function jm(s,r){let{parts:a}=wi.scan(s,Object.assign(Object.assign({},r),{parts:!0}));return a.length===0&&(a=[s]),a[0].startsWith("/")&&(a[0]=a[0].slice(1),a.unshift("")),a}X.getPatternParts=jm;function ao(s,r){return wi.makeRe(s,r)}X.makeRe=ao;function Tm(s,r){return s.map(a=>ao(a,r))}X.convertPatternsToRe=Tm;function Sm(s,r){return r.some(a=>a.test(s))}X.matchAny=Sm;function km(s){return s.replace(lm,"/")}X.removeDuplicateSlashes=km});var _o=B((dj,lo)=>{"use strict";var Em=require("stream"),co=Em.PassThrough,Rm=Array.prototype.slice;lo.exports=Am;function Am(){let s=[],r=Rm.call(arguments),a=!1,u=r[r.length-1];u&&!Array.isArray(u)&&u.pipe==null?r.pop():u={};let v=u.end!==!1,m=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);let b=co(u);function T(){for(let E=0,F=arguments.length;E<F;E++)s.push(uo(arguments[E],u));return k(),this}function k(){if(a)return;a=!0;let E=s.shift();if(!E){process.nextTick(D);return}Array.isArray(E)||(E=[E]);let F=E.length+1;function I(){--F>0||(a=!1,k())}function te(M){function U(){M.removeListener("merge2UnpipeEnd",U),M.removeListener("end",U),m&&M.removeListener("error",K),I()}function K(z){b.emit("error",z)}if(M._readableState.endEmitted)return I();M.on("merge2UnpipeEnd",U),M.on("end",U),m&&M.on("error",K),M.pipe(b,{end:!1}),M.resume()}for(let M=0;M<E.length;M++)te(E[M]);I()}function D(){a=!1,b.emit("queueDrain"),v&&b.end()}return b.setMaxListeners(0),b.add=T,b.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),r.length&&T.apply(null,r),b}function uo(s,r){if(Array.isArray(s))for(let a=0,u=s.length;a<u;a++)s[a]=uo(s[a],r);else{if(!s._readableState&&s.pipe&&(s=s.pipe(co(r))),!s._readableState||!s.pause||!s.pipe)throw new Error("Only readable stream can be merged.");s.pause()}return s}});var ho=B(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.merge=void 0;var Cm=_o();function Dm(s){let r=Cm(s);return s.forEach(a=>{a.once("error",u=>r.emit("error",u))}),r.once("close",()=>fo(s)),r.once("end",()=>fo(s)),r}mr.merge=Dm;function fo(s){s.forEach(r=>r.emit("close"))}});var po=B(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.isEmpty=It.isString=void 0;function Pm(s){return typeof s=="string"}It.isString=Pm;function Im(s){return s===""}It.isEmpty=Im});var et=B(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.string=Ce.stream=Ce.pattern=Ce.path=Ce.fs=Ce.errno=Ce.array=void 0;var Om=Ps();Ce.array=Om;var Fm=Is();Ce.errno=Fm;var xm=Os();Ce.fs=xm;var Mm=Ls();Ce.path=Mm;var Lm=oo();Ce.pattern=Lm;var Bm=ho();Ce.stream=Bm;var Hm=po();Ce.string=Hm});var mo=B(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.convertPatternGroupToTask=De.convertPatternGroupsToTasks=De.groupPatternsByBaseDirectory=De.getNegativePatternsAsPositive=De.getPositivePatterns=De.convertPatternsToTasks=De.generate=void 0;var We=et();function Um(s,r){let a=vo(s,r),u=vo(r.ignore,r),v=yo(a),m=go(a,u),b=v.filter(E=>We.pattern.isStaticPattern(E,r)),T=v.filter(E=>We.pattern.isDynamicPattern(E,r)),k=ji(b,m,!1),D=ji(T,m,!0);return k.concat(D)}De.generate=Um;function vo(s,r){let a=s;return r.braceExpansion&&(a=We.pattern.expandPatternsWithBraceExpansion(a)),r.baseNameMatch&&(a=a.map(u=>u.includes("/")?u:`**/${u}`)),a.map(u=>We.pattern.removeDuplicateSlashes(u))}function ji(s,r,a){let u=[],v=We.pattern.getPatternsOutsideCurrentDirectory(s),m=We.pattern.getPatternsInsideCurrentDirectory(s),b=Ti(v),T=Ti(m);return u.push(...Si(b,r,a)),"."in T?u.push(ki(".",m,r,a)):u.push(...Si(T,r,a)),u}De.convertPatternsToTasks=ji;function yo(s){return We.pattern.getPositivePatterns(s)}De.getPositivePatterns=yo;function go(s,r){return We.pattern.getNegativePatterns(s).concat(r).map(We.pattern.convertToPositivePattern)}De.getNegativePatternsAsPositive=go;function Ti(s){let r={};return s.reduce((a,u)=>{let v=We.pattern.getBaseDirectory(u);return v in a?a[v].push(u):a[v]=[u],a},r)}De.groupPatternsByBaseDirectory=Ti;function Si(s,r,a){return Object.keys(s).map(u=>ki(u,s[u],r,a))}De.convertPatternGroupsToTasks=Si;function ki(s,r,a,u){return{dynamic:u,positive:r,negative:a,base:s,patterns:[].concat(r,a.map(We.pattern.convertToNegativePattern))}}De.convertPatternGroupToTask=ki});var bo=B(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.read=void 0;function Nm(s,r,a){r.fs.lstat(s,(u,v)=>{if(u!==null){wo(a,u);return}if(!v.isSymbolicLink()||!r.followSymbolicLink){Ei(a,v);return}r.fs.stat(s,(m,b)=>{if(m!==null){if(r.throwErrorOnBrokenSymbolicLink){wo(a,m);return}Ei(a,v);return}r.markSymbolicLink&&(b.isSymbolicLink=()=>!0),Ei(a,b)})})}wr.read=Nm;function wo(s,r){s(r)}function Ei(s,r){s(null,r)}});var jo=B(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.read=void 0;function Wm(s,r){let a=r.fs.lstatSync(s);if(!a.isSymbolicLink()||!r.followSymbolicLink)return a;try{let u=r.fs.statSync(s);return r.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!r.throwErrorOnBrokenSymbolicLink)return a;throw u}}br.read=Wm});var To=B(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.createFileSystemAdapter=nt.FILE_SYSTEM_ADAPTER=void 0;var jr=require("fs");nt.FILE_SYSTEM_ADAPTER={lstat:jr.lstat,stat:jr.stat,lstatSync:jr.lstatSync,statSync:jr.statSync};function qm(s){return s===void 0?nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},nt.FILE_SYSTEM_ADAPTER),s)}nt.createFileSystemAdapter=qm});var So=B(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var $m=To(),Ri=class{constructor(r={}){this._options=r,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=$m.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(r,a){return r??a}};Ai.default=Ri});var gt=B(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.statSync=st.stat=st.Settings=void 0;var ko=bo(),Gm=jo(),Ci=So();st.Settings=Ci.default;function Km(s,r,a){if(typeof r=="function"){ko.read(s,Di(),r);return}ko.read(s,Di(r),a)}st.stat=Km;function Vm(s,r){let a=Di(r);return Gm.read(s,a)}st.statSync=Vm;function Di(s={}){return s instanceof Ci.default?s:new Ci.default(s)}});var Ao=B((Sj,Ro)=>{var Eo;Ro.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):s=>(Eo||(Eo=Promise.resolve())).then(s).catch(r=>setTimeout(()=>{throw r},0))});var Do=B((kj,Co)=>{Co.exports=Qm;var Ym=Ao();function Qm(s,r){let a,u,v,m=!0;Array.isArray(s)?(a=[],u=s.length):(v=Object.keys(s),a={},u=v.length);function b(k){function D(){r&&r(k,a),r=null}m?Ym(D):D()}function T(k,D,E){a[k]=E,(--u===0||D)&&b(D)}u?v?v.forEach(function(k){s[k](function(D,E){T(k,D,E)})}):s.forEach(function(k,D){k(function(E,F){T(D,E,F)})}):b(null),m=!1}});var Pi=B(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Tr=process.versions.node.split(".");if(Tr[0]===void 0||Tr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Po=Number.parseInt(Tr[0],10),Xm=Number.parseInt(Tr[1],10),Io=10,zm=10,Jm=Po>Io,Zm=Po===Io&&Xm>=zm;Sr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Jm||Zm});var Oo=B(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.createDirentFromStats=void 0;var Ii=class{constructor(r,a){this.name=r,this.isBlockDevice=a.isBlockDevice.bind(a),this.isCharacterDevice=a.isCharacterDevice.bind(a),this.isDirectory=a.isDirectory.bind(a),this.isFIFO=a.isFIFO.bind(a),this.isFile=a.isFile.bind(a),this.isSocket=a.isSocket.bind(a),this.isSymbolicLink=a.isSymbolicLink.bind(a)}};function ew(s,r){return new Ii(s,r)}kr.createDirentFromStats=ew});var Oi=B(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.fs=void 0;var tw=Oo();Er.fs=tw});var Fi=B(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.joinPathSegments=void 0;function rw(s,r,a){return s.endsWith(a)?s+r:s+a+r}Rr.joinPathSegments=rw});var Ho=B(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.readdir=at.readdirWithFileTypes=at.read=void 0;var iw=gt(),Fo=Do(),nw=Pi(),xo=Oi(),Mo=Fi();function sw(s,r,a){if(!r.stats&&nw.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Lo(s,r,a);return}Bo(s,r,a)}at.read=sw;function Lo(s,r,a){r.fs.readdir(s,{withFileTypes:!0},(u,v)=>{if(u!==null){Ar(a,u);return}let m=v.map(T=>({dirent:T,name:T.name,path:Mo.joinPathSegments(s,T.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks){xi(a,m);return}let b=m.map(T=>aw(T,r));Fo(b,(T,k)=>{if(T!==null){Ar(a,T);return}xi(a,k)})})}at.readdirWithFileTypes=Lo;function aw(s,r){return a=>{if(!s.dirent.isSymbolicLink()){a(null,s);return}r.fs.stat(s.path,(u,v)=>{if(u!==null){if(r.throwErrorOnBrokenSymbolicLink){a(u);return}a(null,s);return}s.dirent=xo.fs.createDirentFromStats(s.name,v),a(null,s)})}}function Bo(s,r,a){r.fs.readdir(s,(u,v)=>{if(u!==null){Ar(a,u);return}let m=v.map(b=>{let T=Mo.joinPathSegments(s,b,r.pathSegmentSeparator);return k=>{iw.stat(T,r.fsStatSettings,(D,E)=>{if(D!==null){k(D);return}let F={name:b,path:T,dirent:xo.fs.createDirentFromStats(b,E)};r.stats&&(F.stats=E),k(null,F)})}});Fo(m,(b,T)=>{if(b!==null){Ar(a,b);return}xi(a,T)})})}at.readdir=Bo;function Ar(s,r){s(r)}function xi(s,r){s(null,r)}});var $o=B(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.readdir=ot.readdirWithFileTypes=ot.read=void 0;var ow=gt(),cw=Pi(),Uo=Oi(),No=Fi();function uw(s,r){return!r.stats&&cw.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Wo(s,r):qo(s,r)}ot.read=uw;function Wo(s,r){return r.fs.readdirSync(s,{withFileTypes:!0}).map(u=>{let v={dirent:u,name:u.name,path:No.joinPathSegments(s,u.name,r.pathSegmentSeparator)};if(v.dirent.isSymbolicLink()&&r.followSymbolicLinks)try{let m=r.fs.statSync(v.path);v.dirent=Uo.fs.createDirentFromStats(v.name,m)}catch(m){if(r.throwErrorOnBrokenSymbolicLink)throw m}return v})}ot.readdirWithFileTypes=Wo;function qo(s,r){return r.fs.readdirSync(s).map(u=>{let v=No.joinPathSegments(s,u,r.pathSegmentSeparator),m=ow.statSync(v,r.fsStatSettings),b={name:u,path:v,dirent:Uo.fs.createDirentFromStats(u,m)};return r.stats&&(b.stats=m),b})}ot.readdir=qo});var Go=B(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.createFileSystemAdapter=ct.FILE_SYSTEM_ADAPTER=void 0;var Ot=require("fs");ct.FILE_SYSTEM_ADAPTER={lstat:Ot.lstat,stat:Ot.stat,lstatSync:Ot.lstatSync,statSync:Ot.statSync,readdir:Ot.readdir,readdirSync:Ot.readdirSync};function lw(s){return s===void 0?ct.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ct.FILE_SYSTEM_ADAPTER),s)}ct.createFileSystemAdapter=lw});var Ko=B(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});var _w=require("path"),fw=gt(),hw=Go(),Mi=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=hw.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,_w.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new fw.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,a){return r??a}};Li.default=Mi});var Cr=B(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Settings=ut.scandirSync=ut.scandir=void 0;var Vo=Ho(),dw=$o(),Bi=Ko();ut.Settings=Bi.default;function pw(s,r,a){if(typeof r=="function"){Vo.read(s,Hi(),r);return}Vo.read(s,Hi(r),a)}ut.scandir=pw;function vw(s,r){let a=Hi(r);return dw.read(s,a)}ut.scandirSync=vw;function Hi(s={}){return s instanceof Bi.default?s:new Bi.default(s)}});var Qo=B((xj,Yo)=>{"use strict";function yw(s){var r=new s,a=r;function u(){var m=r;return m.next?r=m.next:(r=new s,a=r),m.next=null,m}function v(m){a.next=m,a=m}return{get:u,release:v}}Yo.exports=yw});var zo=B((Mj,Ui)=>{"use strict";var gw=Qo();function Xo(s,r,a){if(typeof s=="function"&&(a=r,r=s,s=null),a<1)throw new Error("fastqueue concurrency must be greater than 1");var u=gw(mw),v=null,m=null,b=0,T=null,k={push:U,drain:Ue,saturated:Ue,pause:E,paused:!1,concurrency:a,running:D,resume:te,idle:M,length:F,getQueue:I,unshift:K,empty:Ue,kill:ce,killAndDrain:fe,error:Se};return k;function D(){return b}function E(){k.paused=!0}function F(){for(var J=v,ue=0;J;)J=J.next,ue++;return ue}function I(){for(var J=v,ue=[];J;)ue.push(J.value),J=J.next;return ue}function te(){if(k.paused){k.paused=!1;for(var J=0;J<k.concurrency;J++)b++,z()}}function M(){return b===0&&k.length()===0}function U(J,ue){var Y=u.get();Y.context=s,Y.release=z,Y.value=J,Y.callback=ue||Ue,Y.errorHandler=T,b===k.concurrency||k.paused?m?(m.next=Y,m=Y):(v=Y,m=Y,k.saturated()):(b++,r.call(s,Y.value,Y.worked))}function K(J,ue){var Y=u.get();Y.context=s,Y.release=z,Y.value=J,Y.callback=ue||Ue,b===k.concurrency||k.paused?v?(Y.next=v,v=Y):(v=Y,m=Y,k.saturated()):(b++,r.call(s,Y.value,Y.worked))}function z(J){J&&u.release(J);var ue=v;ue?k.paused?b--:(m===v&&(m=null),v=ue.next,ue.next=null,r.call(s,ue.value,ue.worked),m===null&&k.empty()):--b===0&&k.drain()}function ce(){v=null,m=null,k.drain=Ue}function fe(){v=null,m=null,k.drain(),k.drain=Ue}function Se(J){T=J}}function Ue(){}function mw(){this.value=null,this.callback=Ue,this.next=null,this.release=Ue,this.context=null,this.errorHandler=null;var s=this;this.worked=function(a,u){var v=s.callback,m=s.errorHandler,b=s.value;s.value=null,s.callback=Ue,s.errorHandler&&m(a,b),v.call(s.context,a,u),s.release(s)}}function ww(s,r,a){typeof s=="function"&&(a=r,r=s,s=null);function u(E,F){r.call(this,E).then(function(I){F(null,I)},F)}var v=Xo(s,u,a),m=v.push,b=v.unshift;return v.push=T,v.unshift=k,v.drained=D,v;function T(E){var F=new Promise(function(I,te){m(E,function(M,U){if(M){te(M);return}I(U)})});return F.catch(Ue),F}function k(E){var F=new Promise(function(I,te){b(E,function(M,U){if(M){te(M);return}I(U)})});return F.catch(Ue),F}function D(){var E=v.drain,F=new Promise(function(I){v.drain=function(){E(),I()}});return F}}Ui.exports=Xo;Ui.exports.promise=ww});var Dr=B(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.joinPathSegments=Ve.replacePathSegmentSeparator=Ve.isAppliedFilter=Ve.isFatalError=void 0;function bw(s,r){return s.errorFilter===null?!0:!s.errorFilter(r)}Ve.isFatalError=bw;function jw(s,r){return s===null||s(r)}Ve.isAppliedFilter=jw;function Tw(s,r){return s.split(/[/\\]/).join(r)}Ve.replacePathSegmentSeparator=Tw;function Sw(s,r,a){return s===""?r:s.endsWith(a)?s+r:s+a+r}Ve.joinPathSegments=Sw});var qi=B(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var kw=Dr(),Ni=class{constructor(r,a){this._root=r,this._settings=a,this._root=kw.replacePathSegmentSeparator(r,a.pathSegmentSeparator)}};Wi.default=Ni});var Ki=B(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});var Ew=require("events"),Rw=Cr(),Aw=zo(),Pr=Dr(),Cw=qi(),$i=class extends Cw.default{constructor(r,a){super(r,a),this._settings=a,this._scandir=Rw.scandir,this._emitter=new Ew.EventEmitter,this._queue=Aw(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,a){let u={directory:r,base:a};this._queue.push(u,v=>{v!==null&&this._handleError(v)})}_worker(r,a){this._scandir(r.directory,this._settings.fsScandirSettings,(u,v)=>{if(u!==null){a(u,void 0);return}for(let m of v)this._handleEntry(m,r.base);a(null,void 0)})}_handleError(r){this._isDestroyed||!Pr.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,a){if(this._isDestroyed||this._isFatalError)return;let u=r.path;a!==void 0&&(r.path=Pr.joinPathSegments(a,r.name,this._settings.pathSegmentSeparator)),Pr.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&Pr.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(u,a===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};Gi.default=$i});var Jo=B(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});var Dw=Ki(),Vi=class{constructor(r,a){this._root=r,this._settings=a,this._reader=new Dw.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(a=>{Pw(r,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{Iw(r,this._storage)}),this._reader.read()}};Yi.default=Vi;function Pw(s,r){s(r)}function Iw(s,r){s(null,r)}});var Zo=B(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});var Ow=require("stream"),Fw=Ki(),Qi=class{constructor(r,a){this._root=r,this._settings=a,this._reader=new Fw.default(this._root,this._settings),this._stream=new Ow.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Xi.default=Qi});var ec=B(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var xw=Cr(),Ir=Dr(),Mw=qi(),zi=class extends Mw.default{constructor(){super(...arguments),this._scandir=xw.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(r,a){this._queue.add({directory:r,base:a})}_handleQueue(){for(let r of this._queue.values())this._handleDirectory(r.directory,r.base)}_handleDirectory(r,a){try{let u=this._scandir(r,this._settings.fsScandirSettings);for(let v of u)this._handleEntry(v,a)}catch(u){this._handleError(u)}}_handleError(r){if(Ir.isFatalError(this._settings,r))throw r}_handleEntry(r,a){let u=r.path;a!==void 0&&(r.path=Ir.joinPathSegments(a,r.name,this._settings.pathSegmentSeparator)),Ir.isAppliedFilter(this._settings.entryFilter,r)&&this._pushToStorage(r),r.dirent.isDirectory()&&Ir.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(u,a===void 0?void 0:r.path)}_pushToStorage(r){this._storage.push(r)}};Ji.default=zi});var tc=B(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});var Lw=ec(),Zi=class{constructor(r,a){this._root=r,this._settings=a,this._reader=new Lw.default(this._root,this._settings)}read(){return this._reader.read()}};en.default=Zi});var rc=B(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});var Bw=require("path"),Hw=Cr(),tn=class{constructor(r={}){this._options=r,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Bw.sep),this.fsScandirSettings=new Hw.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,a){return r??a}};rn.default=tn});var Fr=B(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Settings=Ye.walkStream=Ye.walkSync=Ye.walk=void 0;var ic=Jo(),Uw=Zo(),Nw=tc(),nn=rc();Ye.Settings=nn.default;function Ww(s,r,a){if(typeof r=="function"){new ic.default(s,Or()).read(r);return}new ic.default(s,Or(r)).read(a)}Ye.walk=Ww;function qw(s,r){let a=Or(r);return new Nw.default(s,a).read()}Ye.walkSync=qw;function $w(s,r){let a=Or(r);return new Uw.default(s,a).read()}Ye.walkStream=$w;function Or(s={}){return s instanceof nn.default?s:new nn.default(s)}});var xr=B(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});var Gw=require("path"),Kw=gt(),nc=et(),sn=class{constructor(r){this._settings=r,this._fsStatSettings=new Kw.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return Gw.resolve(this._settings.cwd,r)}_makeEntry(r,a){let u={name:a,path:a,dirent:nc.fs.createDirentFromStats(a,r)};return this._settings.stats&&(u.stats=r),u}_isFatalError(r){return!nc.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}};an.default=sn});var un=B(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});var Vw=require("stream"),Yw=gt(),Qw=Fr(),Xw=xr(),on=class extends Xw.default{constructor(){super(...arguments),this._walkStream=Qw.walkStream,this._stat=Yw.stat}dynamic(r,a){return this._walkStream(r,a)}static(r,a){let u=r.map(this._getFullEntryPath,this),v=new Vw.PassThrough({objectMode:!0});v._write=(m,b,T)=>this._getEntry(u[m],r[m],a).then(k=>{k!==null&&a.entryFilter(k)&&v.push(k),m===u.length-1&&v.end(),T()}).catch(T);for(let m=0;m<u.length;m++)v.write(m);return v}_getEntry(r,a,u){return this._getStat(r).then(v=>this._makeEntry(v,a)).catch(v=>{if(u.errorFilter(v))return null;throw v})}_getStat(r){return new Promise((a,u)=>{this._stat(r,this._fsStatSettings,(v,m)=>v===null?a(m):u(v))})}};cn.default=on});var sc=B(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});var zw=Fr(),Jw=xr(),Zw=un(),ln=class extends Jw.default{constructor(){super(...arguments),this._walkAsync=zw.walk,this._readerStream=new Zw.default(this._settings)}dynamic(r,a){return new Promise((u,v)=>{this._walkAsync(r,a,(m,b)=>{m===null?u(b):v(m)})})}async static(r,a){let u=[],v=this._readerStream.static(r,a);return new Promise((m,b)=>{v.once("error",b),v.on("data",T=>u.push(T)),v.once("end",()=>m(u))})}};_n.default=ln});var ac=B(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});var qt=et(),fn=class{constructor(r,a,u){this._patterns=r,this._settings=a,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){for(let r of this._patterns){let a=this._getPatternSegments(r),u=this._splitSegmentsIntoSections(a);this._storage.push({complete:u.length<=1,pattern:r,segments:a,sections:u})}}_getPatternSegments(r){return qt.pattern.getPatternParts(r,this._micromatchOptions).map(u=>qt.pattern.isDynamicPattern(u,this._settings)?{dynamic:!0,pattern:u,patternRe:qt.pattern.makeRe(u,this._micromatchOptions)}:{dynamic:!1,pattern:u})}_splitSegmentsIntoSections(r){return qt.array.splitWhen(r,a=>a.dynamic&&qt.pattern.hasGlobStar(a.pattern))}};hn.default=fn});var oc=B(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});var eb=ac(),dn=class extends eb.default{match(r){let a=r.split("/"),u=a.length,v=this._storage.filter(m=>!m.complete||m.segments.length>u);for(let m of v){let b=m.sections[0];if(!m.complete&&u>b.length||a.every((k,D)=>{let E=m.segments[D];return!!(E.dynamic&&E.patternRe.test(k)||!E.dynamic&&E.pattern===k)}))return!0}return!1}};pn.default=dn});var cc=B(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});var Mr=et(),tb=oc(),vn=class{constructor(r,a){this._settings=r,this._micromatchOptions=a}getFilter(r,a,u){let v=this._getMatcher(a),m=this._getNegativePatternsRe(u);return b=>this._filter(r,b,v,m)}_getMatcher(r){return new tb.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let a=r.filter(Mr.pattern.isAffectDepthOfReadingPattern);return Mr.pattern.convertPatternsToRe(a,this._micromatchOptions)}_filter(r,a,u,v){if(this._isSkippedByDeep(r,a.path)||this._isSkippedSymbolicLink(a))return!1;let m=Mr.path.removeLeadingDotSegment(a.path);return this._isSkippedByPositivePatterns(m,u)?!1:this._isSkippedByNegativePatterns(m,v)}_isSkippedByDeep(r,a){return this._settings.deep===1/0?!1:this._getEntryLevel(r,a)>=this._settings.deep}_getEntryLevel(r,a){let u=a.split("/").length;if(r==="")return u;let v=r.split("/").length;return u-v}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,a){return!this._settings.baseNameMatch&&!a.match(r)}_isSkippedByNegativePatterns(r,a){return!Mr.pattern.matchAny(r,a)}};yn.default=vn});var uc=B(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});var mt=et(),gn=class{constructor(r,a){this._settings=r,this._micromatchOptions=a,this.index=new Map}getFilter(r,a){let u=mt.pattern.convertPatternsToRe(r,this._micromatchOptions),v=mt.pattern.convertPatternsToRe(a,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return m=>this._filter(m,u,v)}_filter(r,a,u){let v=mt.path.removeLeadingDotSegment(r.path);if(this._settings.unique&&this._isDuplicateEntry(v)||this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)||this._isSkippedByAbsoluteNegativePatterns(v,u))return!1;let m=r.dirent.isDirectory(),b=this._isMatchToPatterns(v,a,m)&&!this._isMatchToPatterns(v,u,m);return this._settings.unique&&b&&this._createIndexRecord(v),b}_isDuplicateEntry(r){return this.index.has(r)}_createIndexRecord(r){this.index.set(r,void 0)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(r,a){if(!this._settings.absolute)return!1;let u=mt.path.makeAbsolute(this._settings.cwd,r);return mt.pattern.matchAny(u,a)}_isMatchToPatterns(r,a,u){let v=mt.pattern.matchAny(r,a);return!v&&u?mt.pattern.matchAny(r+"/",a):v}};mn.default=gn});var lc=B(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});var rb=et(),wn=class{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return rb.errno.isEnoentCodeError(r)||this._settings.suppressErrors}};bn.default=wn});var fc=B(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});var _c=et(),jn=class{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let a=r.path;return this._settings.absolute&&(a=_c.path.makeAbsolute(this._settings.cwd,a),a=_c.path.unixify(a)),this._settings.markDirectories&&r.dirent.isDirectory()&&(a+="/"),this._settings.objectMode?Object.assign(Object.assign({},r),{path:a}):a}};Tn.default=jn});var Lr=B(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});var ib=require("path"),nb=cc(),sb=uc(),ab=lc(),ob=fc(),Sn=class{constructor(r){this._settings=r,this.errorFilter=new ab.default(this._settings),this.entryFilter=new sb.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new nb.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new ob.default(this._settings)}_getRootDirectory(r){return ib.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let a=r.base==="."?"":r.base;return{basePath:a,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(a,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};kn.default=Sn});var hc=B(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});var cb=sc(),ub=Lr(),En=class extends ub.default{constructor(){super(...arguments),this._reader=new cb.default(this._settings)}async read(r){let a=this._getRootDirectory(r),u=this._getReaderOptions(r);return(await this.api(a,r,u)).map(m=>u.transform(m))}api(r,a,u){return a.dynamic?this._reader.dynamic(r,u):this._reader.static(a.patterns,u)}};Rn.default=En});var dc=B(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});var lb=require("stream"),_b=un(),fb=Lr(),An=class extends fb.default{constructor(){super(...arguments),this._reader=new _b.default(this._settings)}read(r){let a=this._getRootDirectory(r),u=this._getReaderOptions(r),v=this.api(a,r,u),m=new lb.Readable({objectMode:!0,read:()=>{}});return v.once("error",b=>m.emit("error",b)).on("data",b=>m.emit("data",u.transform(b))).once("end",()=>m.emit("end")),m.once("close",()=>v.destroy()),m}api(r,a,u){return a.dynamic?this._reader.dynamic(r,u):this._reader.static(a.patterns,u)}};Cn.default=An});var pc=B(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});var hb=gt(),db=Fr(),pb=xr(),Dn=class extends pb.default{constructor(){super(...arguments),this._walkSync=db.walkSync,this._statSync=hb.statSync}dynamic(r,a){return this._walkSync(r,a)}static(r,a){let u=[];for(let v of r){let m=this._getFullEntryPath(v),b=this._getEntry(m,v,a);b===null||!a.entryFilter(b)||u.push(b)}return u}_getEntry(r,a,u){try{let v=this._getStat(r);return this._makeEntry(v,a)}catch(v){if(u.errorFilter(v))return null;throw v}}_getStat(r){return this._statSync(r,this._fsStatSettings)}};Pn.default=Dn});var vc=B(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});var vb=pc(),yb=Lr(),In=class extends yb.default{constructor(){super(...arguments),this._reader=new vb.default(this._settings)}read(r){let a=this._getRootDirectory(r),u=this._getReaderOptions(r);return this.api(a,r,u).map(u.transform)}api(r,a,u){return a.dynamic?this._reader.dynamic(r,u):this._reader.static(a.patterns,u)}};On.default=In});var yc=B(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ft=require("fs"),gb=require("os"),mb=Math.max(gb.cpus().length,1);xt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ft.lstat,lstatSync:Ft.lstatSync,stat:Ft.stat,statSync:Ft.statSync,readdir:Ft.readdir,readdirSync:Ft.readdirSync};var Fn=class{constructor(r={}){this._options=r,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,mb),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(r,a){return r===void 0?a:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},xt.DEFAULT_FILE_SYSTEM_ADAPTER),r)}};xt.default=Fn});var wc=B((oT,mc)=>{"use strict";var gc=mo(),wb=hc(),bb=dc(),jb=vc(),xn=yc(),Ne=et();async function Mn(s,r){qe(s);let a=Ln(s,wb.default,r),u=await Promise.all(a);return Ne.array.flatten(u)}(function(s){s.glob=s,s.globSync=r,s.globStream=a,s.async=s;function r(D,E){qe(D);let F=Ln(D,jb.default,E);return Ne.array.flatten(F)}s.sync=r;function a(D,E){qe(D);let F=Ln(D,bb.default,E);return Ne.stream.merge(F)}s.stream=a;function u(D,E){qe(D);let F=[].concat(D),I=new xn.default(E);return gc.generate(F,I)}s.generateTasks=u;function v(D,E){qe(D);let F=new xn.default(E);return Ne.pattern.isDynamicPattern(D,F)}s.isDynamicPattern=v;function m(D){return qe(D),Ne.path.escape(D)}s.escapePath=m;function b(D){return qe(D),Ne.path.convertPathToPattern(D)}s.convertPathToPattern=b;let T;(function(D){function E(I){return qe(I),Ne.path.escapePosixPath(I)}D.escapePath=E;function F(I){return qe(I),Ne.path.convertPosixPathToPattern(I)}D.convertPathToPattern=F})(T=s.posix||(s.posix={}));let k;(function(D){function E(I){return qe(I),Ne.path.escapeWindowsPath(I)}D.escapePath=E;function F(I){return qe(I),Ne.path.convertWindowsPathToPattern(I)}D.convertPathToPattern=F})(k=s.win32||(s.win32={}))})(Mn||(Mn={}));function Ln(s,r,a){let u=[].concat(s),v=new xn.default(a),m=gc.generate(u,v),b=new r(v);return m.map(b.read,b)}function qe(s){if(![].concat(s).every(u=>Ne.string.isString(u)&&!Ne.string.isEmpty(u)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}mc.exports=Mn});var Tb={};hg(Tb,{registerWorker:()=>jc});module.exports=dg(Tb);var se=ht(require("apache-arrow"));function Rt(s){switch(s.typeId){case se.Type.Binary:return{sqlType:"binary"};case se.Type.Bool:return{sqlType:"bool"};case se.Type.Date:return{sqlType:"date"};case se.Type.DateDay:return{sqlType:"date32[d]"};case se.Type.DateMillisecond:return{sqlType:"date64[ms]"};case se.Type.Decimal:{let r=s;return{sqlType:"decimal",precision:r.precision,scale:r.scale}}case se.Type.Float:return{sqlType:"float"};case se.Type.Float16:return{sqlType:"float16"};case se.Type.Float32:return{sqlType:"float32"};case se.Type.Float64:return{sqlType:"float64"};case se.Type.Int:return{sqlType:"int32"};case se.Type.Int16:return{sqlType:"int16"};case se.Type.Int32:return{sqlType:"int32"};case se.Type.Int64:return{sqlType:"int64"};case se.Type.Uint16:return{sqlType:"uint16"};case se.Type.Uint32:return{sqlType:"uint32"};case se.Type.Uint64:return{sqlType:"uint64"};case se.Type.Uint8:return{sqlType:"uint8"};case se.Type.IntervalDayTime:return{sqlType:"interval[dt]"};case se.Type.IntervalYearMonth:return{sqlType:"interval[m]"};case se.Type.List:return{sqlType:"list",valueType:Rt(s.valueType)};case se.Type.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:s.byteWidth};case se.Type.Null:return{sqlType:"null"};case se.Type.Utf8:return{sqlType:"utf8"};case se.Type.Struct:return{sqlType:"struct",fields:s.children.map(a=>tr(a.name,a.type))};case se.Type.Map:{let r=s;return{sqlType:"map",keyType:Rt(r.keyType),valueType:Rt(r.valueType)}}case se.Type.Time:return{sqlType:"time[s]"};case se.Type.TimeMicrosecond:return{sqlType:"time[us]"};case se.Type.TimeMillisecond:return{sqlType:"time[ms]"};case se.Type.TimeNanosecond:return{sqlType:"time[ns]"};case se.Type.TimeSecond:return{sqlType:"time[s]"};case se.Type.Timestamp:return{sqlType:"timestamp",timezone:s.timezone||void 0};case se.Type.TimestampSecond:return{sqlType:"timestamp[s]",timezone:s.timezone||void 0};case se.Type.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:s.timezone||void 0};case se.Type.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:s.timezone||void 0};case se.Type.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:s.timezone||void 0}}throw new Error(`unsupported arrow type: ${s.toString()}`)}function tr(s,r){let a=Rt(r);return a.name=s,a}var $e=ht(require("apache-arrow")),rr=class{constructor(r,a){this._bindings=r,this._conn=a}close(){this._bindings.disconnect(this._conn)}useUnsafe(r){return r(this._bindings,this._conn)}query(r){let a=this._bindings.runQuery(this._conn,r),u=$e.RecordBatchReader.from(a);return console.assert(u.isSync()),console.assert(u.isFile()),new $e.Table(u)}async send(r,a=!1){let u=this._bindings.startPendingQuery(this._conn,r,a);for(;u==null;)u=await new Promise((b,T)=>{try{b(this._bindings.pollPendingQuery(this._conn))}catch(k){console.log(k),k.message.includes("worker is not set!")?T(new Error("Worker has been terminated")):T(k)}});let v=new ir(this._bindings,this._conn,u),m=$e.RecordBatchReader.from(v);return console.assert(m.isSync()),console.assert(m.isStream()),m}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(r){return this._bindings.getTableNames(this._conn,r)}prepare(r){let a=this._bindings.createPrepared(this._conn,r);return new Qr(this._bindings,this._conn,a)}createScalarFunction(r,a,u){this._bindings.createScalarFunction(this._conn,r,a,u)}insertArrowTable(r,a){let u=$e.tableToIPC(r,"stream");this.insertArrowFromIPCStream(u,a)}insertArrowFromIPCStream(r,a){this._bindings.insertArrowFromIPCStream(this._conn,r,a)}insertCSVFromPath(r,a){this._bindings.insertCSVFromPath(this._conn,r,a)}insertJSONFromPath(r,a){this._bindings.insertJSONFromPath(this._conn,r,a)}},ir=class{constructor(r,a,u){this.bindings=r;this.conn=a;this.header=u;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 r=null;do r=this.bindings.fetchQueryResults(this.conn);while(r==null);return this._depleted=r.length==0,{done:this._depleted,value:r}}[Symbol.iterator](){return this}},Qr=class{constructor(r,a,u){this.bindings=r,this.connectionId=a,this.statementId=u}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...r){let a=this.bindings.runPrepared(this.connectionId,this.statementId,r),u=$e.RecordBatchReader.from(a);return console.assert(u.isSync()),console.assert(u.isFile()),new $e.Table(u)}send(...r){let a=this.bindings.sendPrepared(this.connectionId,this.statementId,r),u=new ir(this.bindings,this.connectionId,a),v=$e.RecordBatchReader.from(u);return console.assert(v.isSync()),console.assert(v.isStream()),v}};function ws(s){return s<=255}function bs(s){return s===256}var Ss=new TextEncoder,js=new TextDecoder("utf-8");function Xr(s,r,a){let u=Ss.encode(a),v=s._malloc(u.byteLength),m=s.HEAPU8.subarray(v,v+u.byteLength);m.set(u),s.HEAPF64[(r>>3)+0]=1,s.HEAPF64[(r>>3)+1]=v,s.HEAPF64[(r>>3)+2]=m.byteLength}function Jr(s){switch(s){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 zr(s,r,a,u){let v=s.HEAPU8.subarray(r,r+u*Jr(a));switch(a){case"UINT8":return new Uint8Array(v.buffer,v.byteOffset,u);case"INT8":return new Int8Array(v.buffer,v.byteOffset,u);case"INT32":return new Int32Array(v.buffer,v.byteOffset,u);case"FLOAT":return new Float32Array(v.buffer,v.byteOffset,u);case"DOUBLE":return new Float64Array(v.buffer,v.byteOffset,u);case"VARCHAR":return new Float64Array(v.buffer,v.byteOffset,u);default:return new Array(0)}}function Ts(s,r,a){let u=s.HEAPU8.subarray(r,r+a);return new Uint8Array(u.buffer,u.byteOffset,a)}function nr(s,r,a){let u=s.HEAPU8.subarray(r,r+a*8);return new Float64Array(u.buffer,u.byteOffset,a)}function ks(s,r,a,u,v,m,b,T){try{let k=s._udfFunctions.get(u);if(!k){Xr(r,a,"Unknown UDF with id: "+u);return}let D=js.decode(r.HEAPU8.subarray(v,v+m)),E=JSON.parse(D),F=nr(r,b,T/8),I=N=>{var O;let ae=null;switch(N.validityBuffer!==void 0&&(ae=Ts(r,F[N.validityBuffer],E.rows)),N.physicalType){case"VARCHAR":{if(N.dataBuffer===null||N.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(N.lengthBuffer===null||N.lengthBuffer===void 0)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let Q=zr(r,F[N.dataBuffer],N.physicalType,E.rows),V=[],he=nr(r,F[N.lengthBuffer],E.rows);for(let C=0;C<E.rows;++C){if(ae!=null&&!ae[C]){V.push(null);continue}let S=r.HEAPU8.subarray(Q[C],Q[C]+he[C]),Z=js.decode(S);V.push(Z)}return C=>V[C]}case"STRUCT":{let Q={},V=[];for(let he=0;he<(((O=N.children)==null?void 0:O.length)||0);++he){let C=N.children[he],S=I(C);V.push(Z=>{Q[C.name]=S(Z)})}return ae!=null?he=>{if(!ae[he])return null;for(let C of V)C(he);return Q}:he=>{for(let C of V)C(he);return Q}}default:{if(N.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for argument of type: "+N.physicalType);let Q=zr(r,F[N.dataBuffer],N.physicalType,E.rows);return ae!=null?V=>ae[V]?Q[V]:null:V=>Q[V]}}},te=[];for(let N=0;N<E.args.length;++N)te.push(I(E.args[N]));let M=E.rows*Jr(E.ret.physicalType),U=r._malloc(M),K=zr(r,U,E.ret.physicalType,E.rows),z=r._malloc(E.rows),ce=Ts(r,z,E.rows);if(K.length==0||ce.length==0){Xr(r,a,"Can't create physical arrays for result");return}let fe=K;E.ret.physicalType=="VARCHAR"&&(fe=new Array(E.rows));let Se=[];for(let N=0;N<E.args.length;++N)Se.push(null);for(let N=0;N<E.rows;++N){for(let O=0;O<E.args.length;++O)Se[O]=te[O](N);let ae=k.func(...Se);fe[N]=ae,ce[N]=ae==null?0:1}let J=0;switch(E.ret.physicalType){case"VARCHAR":{let N=new Array(0);J=r._malloc(E.rows*Jr("DOUBLE"));let ae=nr(r,J,E.rows),O=0;for(let C=0;C<E.rows;++C){let S=Ss.encode(fe[C]||"");N.push(S),ae[C]=S.length,O+=S.length}let Q=r._malloc(O),V=r.HEAPU8.subarray(Q,Q+O),he=0;for(let C=0;C<E.rows;++C){K[C]=he;let S=N[C];V.subarray(he,he+S.length).set(S),he+=S.length}}}let ue=3*8,Y=r._malloc(ue),G=nr(r,Y,3);G[0]=U,G[1]=z,G[2]=J,r.HEAPF64[(a>>3)+0]=0,r.HEAPF64[(a>>3)+1]=Y,r.HEAPF64[(a>>3)+2]=0}catch(k){Xr(r,a,k.toString())}}function vg(){let s=new TextDecoder;return r=>(typeof SharedArrayBuffer<"u"&&r.buffer instanceof SharedArrayBuffer&&(r=new Uint8Array(r)),s.decode(r))}var dt=vg();function be(s,r){console.error(`FAIL WITH: ${r}`),s.ccall("duckdb_web_fail_with",null,["string"],[r])}function pt(s,r,a){let u=s.HEAPU8.subarray(r,r+a),v=new Uint8Array(new ArrayBuffer(u.byteLength));return v.set(u),v}function ie(s,r,a){return dt(s.HEAPU8.subarray(r,r+a))}function de(s,r,a,u){let v=s.stackSave(),m=s.stackAlloc(3*8);a.unshift("number"),u.unshift(m),s.ccall(r,null,a,u);let b=s.HEAPF64[(m>>3)+0],T=s.HEAPF64[(m>>3)+1],k=s.HEAPF64[(m>>3)+2];return s.stackRestore(v),[b,T,k]}function ye(s){s.ccall("duckdb_web_clear_response",null,[],[])}var sr=class{constructor(r){let a=new Float64Array(r.buffer,r.byteOffset,r.byteLength/8),u=new Uint8Array(new ArrayBuffer(r.byteLength));u.set(r.subarray(7*8)),this.totalFileReadsCold=a[0],this.totalFileReadsAhead=a[1],this.totalFileReadsCached=a[2],this.totalFileWrites=a[3],this.totalPageAccesses=a[4],this.totalPageLoads=a[5],this.blockSize=a[6],this.blockStats=u}getBlockStats(r,a){return a=a||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},a.file_writes=this.blockStats[r*3+0]&15,a.file_reads_cold=this.blockStats[r*3+0]>>4,a.file_reads_ahead=this.blockStats[r*3+1]&15,a.file_reads_cached=this.blockStats[r*3+1]>>4,a.page_accesses=this.blockStats[r*3+1]&15,a.page_loads=this.blockStats[r*3+1]>>4,a}};var At=new TextEncoder;var ar=class{constructor(r,a){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=r,this._runtime=a,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(r=a=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(r),await this._initPromise),this._initPromise=new Promise(a=>{this._initPromiseResolver=a}),this.onInstantiationProgress=[r],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(a=>a!=r),globalThis.DUCKDB_BINDINGS=this,this)}open(r){let[a,u,v]=de(this.mod,"duckdb_web_open",["string"],[JSON.stringify(r)]);if(a!==0)throw new Error(ie(this.mod,u,v));ye(this.mod)}reset(){let[r,a,u]=de(this.mod,"duckdb_web_reset",[],[]);if(r!==0)throw new Error(ie(this.mod,a,u));ye(this.mod)}getVersion(){let[r,a,u]=de(this.mod,"duckdb_web_get_version",[],[]);if(r!==0)throw new Error(ie(this.mod,a,u));let v=ie(this.mod,a,u);return ye(this.mod),v}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(r){let a=At.encode(r),u=this.mod._malloc(a.length);this.mod.HEAPU8.subarray(u,u+a.length).set(a);let[m,b,T]=de(this.mod,"duckdb_web_tokenize_buffer",["number","number"],[u,a.length]);if(this.mod._free(u),m!==0)throw new Error(ie(this.mod,b,T));let k=ie(this.mod,b,T);return ye(this.mod),JSON.parse(k)}connect(){let r=this.mod.ccall("duckdb_web_connect","number",[],[]);return new rr(this,r)}disconnect(r){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[r]),this.pthread)for(let a of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])a.postMessage({cmd:"dropUDFFunctions",connectionId:r})}runQuery(r,a){let u=At.encode(a),v=this.mod._malloc(u.length);this.mod.HEAPU8.subarray(v,v+u.length).set(u);let[b,T,k]=de(this.mod,"duckdb_web_query_run_buffer",["number","number","number"],[r,v,u.length]);if(this.mod._free(v),b!==0)throw new Error(ie(this.mod,T,k));let D=pt(this.mod,T,k);return ye(this.mod),D}startPendingQuery(r,a,u=!1){let v=At.encode(a),m=this.mod._malloc(v.length);this.mod.HEAPU8.subarray(m,m+v.length).set(v);let[T,k,D]=de(this.mod,"duckdb_web_pending_query_start_buffer",["number","number","number","boolean"],[r,m,v.length,u]);if(this.mod._free(m),T!==0)throw new Error(ie(this.mod,k,D));if(k==0)return null;let E=pt(this.mod,k,D);return ye(this.mod),E}pollPendingQuery(r){let[a,u,v]=de(this.mod,"duckdb_web_pending_query_poll",["number"],[r]);if(a!==0)throw new Error(ie(this.mod,u,v));if(u==0)return null;let m=pt(this.mod,u,v);return ye(this.mod),m}cancelPendingQuery(r){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[r])}fetchQueryResults(r){let[a,u,v]=de(this.mod,"duckdb_web_query_fetch_results",["number"],[r]);if(bs(a))return ye(this.mod),null;if(!ws(a))throw new Error("Unexpected StatusCode from duckdb_web_query_fetch_results ("+a+") and with self reported error as"+ie(this.mod,u,v));if(a!==0)throw new Error(ie(this.mod,u,v));let m=pt(this.mod,u,v);return ye(this.mod),m}getTableNames(r,a){let u=At.encode(a),v=this.mod._malloc(u.length);this.mod.HEAPU8.subarray(v,v+u.length).set(u);let[b,T,k]=de(this.mod,"duckdb_web_get_tablenames_buffer",["number","number","number"],[r,v,u.length]);if(this.mod._free(v),b!==0)throw new Error(ie(this.mod,T,k));let D=ie(this.mod,T,k);return ye(this.mod),JSON.parse(D)}createScalarFunction(r,a,u,v){let m={functionId:this._nextUDFId,name:a,returnType:Rt(u)},b={functionId:m.functionId,connectionId:r,name:a,returnType:u,func:v};this._nextUDFId+=1;let[T,k,D]=de(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[r,JSON.stringify(m)]);if(T!==0)throw new Error(ie(this.mod,k,D));if(ye(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(b.functionId,b),this.pthread)for(let E of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])E.postMessage({cmd:"registerUDFFunction",udf:b})}createPrepared(r,a){let u=At.encode(a),v=this.mod._malloc(u.length);this.mod.HEAPU8.subarray(v,v+u.length).set(u);let[b,T,k]=de(this.mod,"duckdb_web_prepared_create_buffer",["number","number","number"],[r,v,u.length]);if(this.mod._free(v),b!==0)throw new Error(ie(this.mod,T,k));return ye(this.mod),T}closePrepared(r,a){let[u,v,m]=de(this.mod,"duckdb_web_prepared_close",["number","number"],[r,a]);if(u!==0)throw new Error(ie(this.mod,v,m));ye(this.mod)}runPrepared(r,a,u){let[v,m,b]=de(this.mod,"duckdb_web_prepared_run",["number","number","string"],[r,a,JSON.stringify(u)]);if(v!==0)throw new Error(ie(this.mod,m,b));let T=pt(this.mod,m,b);return ye(this.mod),T}sendPrepared(r,a,u){let[v,m,b]=de(this.mod,"duckdb_web_prepared_send",["number","number","string"],[r,a,JSON.stringify(u)]);if(v!==0)throw new Error(ie(this.mod,m,b));let T=pt(this.mod,m,b);return ye(this.mod),T}insertArrowFromIPCStream(r,a,u){if(a.length==0)return;let v=this.mod._malloc(a.length);this.mod.HEAPU8.subarray(v,v+a.length).set(a);let b=u?JSON.stringify(u):"",[T,k,D]=de(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[r,v,a.length,b]);if(this.mod._free(v),T!==0)throw new Error(ie(this.mod,k,D))}insertCSVFromPath(r,a,u){if(u.columns!==void 0){u.columnsFlat=[];for(let D in u.columns)u.columnsFlat.push(tr(D,u.columns[D]))}let v={...u};v.columns=v.columnsFlat,delete v.columnsFlat;let m=JSON.stringify(v),[b,T,k]=de(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[r,a,m]);if(b!==0)throw new Error(ie(this.mod,T,k))}insertJSONFromPath(r,a,u){if(u.columns!==void 0){u.columnsFlat=[];for(let D in u.columns)u.columnsFlat.push(tr(D,u.columns[D]))}let v={...u};v.columns=v.columnsFlat,delete v.columnsFlat;let m=JSON.stringify(v),[b,T,k]=de(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[r,a,m]);if(b!==0)throw new Error(ie(this.mod,T,k))}globFiles(r){let[a,u,v]=de(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[r]);if(a!==0)throw new Error(ie(this.mod,u,v));let m=ie(this.mod,u,v);ye(this.mod);let b=JSON.parse(m);return b??[]}registerFileURL(r,a,u,v=!1){a===void 0&&(a=r);let[m,b,T]=de(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[r,a,u,v]);if(m!==0)throw new Error(ie(this.mod,b,T));ye(this.mod)}registerFileText(r,a){let u=At.encode(a);this.registerFileBuffer(r,u)}registerFileBuffer(r,a){let u=this.mod._malloc(a.length);this.mod.HEAPU8.subarray(u,u+a.length).set(a);let[m,b,T]=de(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[r,u,a.length]);if(m!==0)throw new Error(ie(this.mod,b,T));ye(this.mod)}async prepareFileHandle(r,a){if(a===3&&this._runtime.prepareFileHandles){let u=await this._runtime.prepareFileHandles([r],3);for(let v of u){let{handle:m,path:b,fromCached:T}=v;!T&&m.getSize()&&await this.registerFileHandleAsync(b,m,3,!0)}return}throw new Error(`prepareFileHandle: unsupported protocol ${a}`)}async prepareDBFileHandle(r,a){if(a===3&&this._runtime.prepareDBFileHandle){let u=await this._runtime.prepareDBFileHandle(r,3);for(let v of u){let{handle:m,path:b,fromCached:T}=v;!T&&m.getSize()&&await this.registerFileHandleAsync(b,m,3,!0)}return}throw new Error(`prepareDBFileHandle: unsupported protocol ${a}`)}async prepareFileHandleAsync(r,a,u,v){if(u===3&&!(a instanceof FileSystemSyncAccessHandle)){if(a instanceof FileSystemFileHandle){let m=a;try{a=await m.createSyncAccessHandle()}catch(b){throw new Error(b.message+":"+r)}}else if(r!=null)try{a=await(await(await navigator.storage.getDirectory()).getFileHandle(r)).createSyncAccessHandle()}catch(m){throw new Error(m.message+":"+r)}}return a}async registerFileHandleAsync(r,a,u,v){let m=await this.prepareFileHandleAsync(r,a,u,v);this.registerFileHandle(r,m,u,v)}registerFileHandle(r,a,u,v){var k;let[m,b,T]=de(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[r,r,u,v]);if(m!==0)throw new Error(ie(this.mod,b,T));if(ye(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(r,a),(k=globalThis.DUCKDB_RUNTIME._preparedHandles)!=null&&k[r]&&delete globalThis.DUCKDB_RUNTIME._preparedHandles[r],this.pthread){for(let D of this.pthread.runningWorkers)D.postMessage({cmd:"registerFileHandle",fileName:r,fileHandle:a});for(let D of this.pthread.unusedWorkers)D.postMessage({cmd:"dropFileHandle",fileName:r})}}dropFile(r){let[a,u,v]=de(this.mod,"duckdb_web_fs_drop_file",["string"],[r]);if(a!==0)throw new Error(ie(this.mod,u,v));ye(this.mod)}dropFiles(r){let a=[],u=-1;try{for(let T of r??[])if(T!=null&&T.length>0){let k=this.mod.lengthBytesUTF8(T)+1,D=this.mod._malloc(k);if(!D)throw new Error(`Failed to allocate memory for string: ${T}`);this.mod.stringToUTF8(T,D,k),a.push(D)}if(u=this.mod._malloc(a.length*4),!u)throw new Error("Failed to allocate memory for pointers array");for(let T=0;T<a.length;T++)this.mod.HEAP32[(u>>2)+T]=a[T];let[v,m,b]=de(this.mod,"duckdb_web_fs_drop_files",["number","number"],[u,a.length]);if(v!==0)throw new Error(ie(this.mod,m,b));ye(this.mod)}finally{for(let v of a)this.mod._free(v);u>0&&this.mod._free(u)}}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(r,a){let[u,v,m]=de(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[r,a]);if(u!==0)throw new Error(ie(this.mod,v,m));ye(this.mod)}copyFileToBuffer(r){let[a,u,v]=de(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[r]);if(a!==0)throw new Error(ie(this.mod,u,v));let m=this.mod.HEAPU8.subarray(u,u+v),b=new Uint8Array(m.length);return b.set(m),ye(this.mod),b}async registerOPFSFileName(r){if(r.startsWith("opfs://"))return this.prepareFileHandle(r,3);throw new Error("Not an OPFS file name: "+r)}collectFileStatistics(r,a){let[u,v,m]=de(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[r,a]);if(u!==0)throw new Error(ie(this.mod,v,m))}exportFileStatistics(r){let[a,u,v]=de(this.mod,"duckdb_web_export_file_stats",["string"],[r]);if(a!==0)throw new Error(ie(this.mod,u,v));return new sr(this.mod.HEAPU8.subarray(u,u+v))}};var or=class{constructor(){this._bindings=null;this._nextMessageId=0}log(r){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:r},[])}sendOK(r){this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"OK",data:null},[])}failWith(r,a){let u={name:a.name,message:a.message,stack:a.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"ERROR",data:u},[])}async onMessage(r){switch(r.type){case"PING":this.sendOK(r);return;case"INSTANTIATE":this._bindings!=null&&this.failWith(r,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(r.data[0],r.data[1],a=>{this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"INSTANTIATE_PROGRESS",data:a},[])}),this.sendOK(r)}catch(a){console.log(a),this._bindings=null,this.failWith(r,a)}return;default:break}if(!this._bindings)return this.failWith(r,new Error("duckdb is not initialized"));try{switch(r.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(r);break;case"OPEN":{let a=r.data.path;a!=null&&a.startsWith("opfs://")&&(await this._bindings.prepareDBFileHandle(a,3),r.data.useDirectIO=!0),this._bindings.open(r.data),this.sendOK(r);break}case"DROP_FILE":this._bindings.dropFile(r.data),this.sendOK(r);break;case"DROP_FILES":this._bindings.dropFiles(r.data),this.sendOK(r);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(r);break;case"CONNECT":{let a=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"CONNECTION_INFO",data:a.useUnsafe((u,v)=>v)},[]);break}case"DISCONNECT":this._bindings.disconnect(r.data),this.sendOK(r);break;case"CREATE_PREPARED":{let a=this._bindings.createPrepared(r.data[0],r.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"PREPARED_STATEMENT_ID",data:a},[]);break}case"CLOSE_PREPARED":{this._bindings.closePrepared(r.data[0],r.data[1]),this.sendOK(r);break}case"RUN_PREPARED":{let a=this._bindings.runPrepared(r.data[0],r.data[1],r.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT",data:a},[a.buffer]);break}case"RUN_QUERY":{let a=this._bindings.runQuery(r.data[0],r.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT",data:a},[a.buffer]);break}case"SEND_PREPARED":{let a=this._bindings.sendPrepared(r.data[0],r.data[1],r.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT_HEADER",data:a},[a.buffer]);break}case"START_PENDING_QUERY":{let a=this._bindings.startPendingQuery(r.data[0],r.data[1],r.data[2]),u=[];a&&u.push(a.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:a},u);break}case"POLL_PENDING_QUERY":{let a=this._bindings.pollPendingQuery(r.data),u=[];a&&u.push(a.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:a},u);break}case"CANCEL_PENDING_QUERY":{let a=this._bindings.cancelPendingQuery(r.data);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"SUCCESS",data:a},[]);break}case"FETCH_QUERY_RESULTS":{let a=this._bindings.fetchQueryResults(r.data),u=a?[a.buffer]:[];this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"QUERY_RESULT_CHUNK",data:a},u);break}case"GET_TABLE_NAMES":{let a=this._bindings.getTableNames(r.data[0],r.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"TABLE_NAMES",data:a},[]);break}case"GLOB_FILE_INFOS":{let a=this._bindings.globFiles(r.data);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"FILE_INFOS",data:a},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(r.data[0],r.data[1],r.data[2],r.data[3]),this.sendOK(r);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(r.data[0],r.data[1]),this.sendOK(r);break;case"REGISTER_FILE_HANDLE":await this._bindings.registerFileHandleAsync(r.data[0],r.data[1],r.data[2],r.data[3]),this.sendOK(r);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(r.data[0],r.data[1]),this.sendOK(r);break;case"COPY_FILE_TO_BUFFER":{let a=this._bindings.copyFileToBuffer(r.data);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"FILE_BUFFER",data:a},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(r.data[0],r.data[1]),this.sendOK(r);break;case"REGISTER_OPFS_FILE_NAME":await this._bindings.registerOPFSFileName(r.data[0]),this.sendOK(r);break;case"EXPORT_FILE_STATISTICS":{this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(r.data)},[]);break}case"INSERT_ARROW_FROM_IPC_STREAM":{this._bindings.insertArrowFromIPCStream(r.data[0],r.data[1],r.data[2]),this.sendOK(r);break}case"IMPORT_CSV_FROM_PATH":{this._bindings.insertCSVFromPath(r.data[0],r.data[1],r.data[2]),this.sendOK(r);break}case"IMPORT_JSON_FROM_PATH":{this._bindings.insertJSONFromPath(r.data[0],r.data[1],r.data[2]),this.sendOK(r);break}case"TOKENIZE":{let a=this._bindings.tokenize(r.data);this.postMessage({messageId:this._nextMessageId++,requestId:r.messageId,type:"SCRIPT_TOKENS",data:a},[]);break}}}catch(a){return console.log(a),this.failWith(r,a)}}};var Ds=ht(ei());var As=ht(ei());var Cs=ht(require("fs")),cr=class extends ar{constructor(r,a,u,v){super(r,a),this.mainModulePath=u,this.pthreadWorkerPath=v}locateFile(r,a){if(r.endsWith(".wasm"))return this.mainModulePath;if(r.endsWith(".worker.js")){if(!this.pthreadWorkerPath)throw new Error("Missing DuckDB worker path!");return this.pthreadWorkerPath}throw new Error(`WASM instantiation requested unexpected file: prefix=${a} path=${r}`)}instantiateWasm(r,a){globalThis.DUCKDB_RUNTIME={};for(let v of Object.getOwnPropertyNames(this._runtime))v!="constructor"&&(globalThis.DUCKDB_RUNTIME[v]=Object.getOwnPropertyDescriptor(this._runtime,v).value);let u=Cs.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(u,r).then(v=>{a(v.instance,v.module)}),[]}instantiateImpl(r){return(0,As.default)({...r,instantiateWasm:this.instantiateWasm.bind(this)})}};var ur=class extends cr{constructor(r,a,u,v=null){super(r,a,u,v)}instantiateImpl(r){return(0,Ds.default)({...r,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var Re=ht(require("fs"));var bc=ht(wc());var we={_files:new Map,_filesById:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(s,r){try{let a=we._fileInfoCache.get(r),[u,v,m]=de(s,"duckdb_web_fs_get_file_info_by_id",["number","number"],[r,(a==null?void 0:a.cacheEpoch)||0]);if(u!==0)return be(s,ie(s,v,m)),null;if(m===0)return ye(s),a;let b=ie(s,v,m);ye(s);let T=JSON.parse(b);return T==null?null:(we._fileInfoCache.set(r,T),T)}catch(a){return console.log(a),be(s,a.toString()),null}},testPlatformFeature:(s,r)=>{switch(r){case 1:return typeof BigInt64Array<"u";default:return console.warn(`test for unknown feature: ${r}`),!1}},getDefaultDataProtocol(s){return 1},openFile(s,r,a){var u,v;try{we._fileInfoCache.delete(r);let m=we.resolveFileInfo(s,r);switch(m==null?void 0:m.dataProtocol){case 1:{let b=(u=we._files)==null?void 0:u.get(m.dataUrl);if(b==null){if(a&128)return 0;b=Re.default.openSync(m.dataUrl,Re.default.constants.O_CREAT|Re.default.constants.O_RDWR,Re.default.constants.S_IRUSR|Re.default.constants.S_IWUSR),(v=we._filesById)==null||v.set(m.fileId,b)}let T=Re.default.fstatSync(b).size,k=s._malloc(2*8);return s.HEAPF64[(k>>3)+0]=+T,s.HEAPF64[(k>>3)+1]=0,k}case 2:case 3:case 4:case 5:be(s,"Unsupported data protocol")}}catch(m){console.log(m),be(s,m.toString())}return 0},syncFile:(s,r)=>{},closeFile:(s,r)=>{try{let a=we._fileInfoCache.get(r);switch(we._fileInfoCache.delete(r),a==null?void 0:a.dataProtocol){case 1:{let u=we._filesById.get(r);we._filesById.delete(r),u!=null&&Re.default.closeSync(u);break}case 2:case 3:case 4:case 5:break}}catch(a){console.log(a),be(s,a.toString())}return 0},dropFile:(s,r,a)=>{},truncateFile:(s,r,a)=>{try{let u=we.resolveFileInfo(s,r);switch(u==null?void 0:u.dataProtocol){case 1:{Re.default.truncateSync(u.dataUrl,a);break}case 2:case 3:case 4:case 5:be(s,"Unsupported data protocol")}}catch(u){console.log(u),be(s,u.toString())}return 0},readFile:(s,r,a,u,v)=>{try{let m=we.resolveFileInfo(s,r);switch(m==null?void 0:m.dataProtocol){case 1:{let b=we._filesById.get(r);return b==null?(be(s,`File ${r} is missing a file descriptor`),0):Re.default.readSync(b,s.HEAPU8,a,u,v)}case 2:case 3:case 4:case 5:be(s,"Unsupported data protocol")}}catch(m){console.log(m),be(s,m.toString())}return 0},writeFile:(s,r,a,u,v)=>{try{let m=we.resolveFileInfo(s,r);switch(m==null?void 0:m.dataProtocol){case 1:{let b=we._filesById.get(r);if(b==null)return be(s,`File ${r} is missing a file descriptor`),0;let T=s.HEAPU8.subarray(a,a+u);return Re.default.writeSync(b,T,0,T.length,v)}case 2:case 3:case 4:case 5:be(s,"Unsupported data protocol")}}catch(m){console.log(m),be(s,m.toString())}return 0},progressUpdate:(s,r,a)=>{},getLastFileModificationTime:(s,r)=>{try{let a=we.resolveFileInfo(s,r);switch(a==null?void 0:a.dataProtocol){case 1:{let u=we._filesById.get(r);return u==null?(be(s,`File ${r} is missing a file descriptor`),0):Re.default.fstatSync(u).mtime.getTime()/1e3}case 2:case 3:case 4:case 5:be(s,"Unsupported data protocol")}}catch(a){console.log(a),be(s,a.toString())}return 0},checkDirectory:(s,r,a)=>{try{let u=dt(s.HEAPU8.subarray(r,r+a));return Re.default.existsSync(u)}catch(u){return console.log(u),be(s,u.toString()),!1}},createDirectory:(s,r,a)=>{try{let u=dt(s.HEAPU8.subarray(r,r+a));return Re.default.mkdirSync(u)}catch(u){return console.log(u),be(s,u.toString()),0}},removeDirectory:(s,r,a)=>{try{let u=dt(s.HEAPU8.subarray(r,r+a));return Re.default.rmdirSync(u)}catch(u){return console.log(u),be(s,u.toString()),0}},listDirectoryEntries:(s,r,a)=>(be(s,"Not Implemented"),!1),glob:(s,r,a)=>{try{let u=ie(s,r,a),v=bc.sync([u],{dot:!0});for(let m of v)s.ccall("duckdb_web_fs_glob_add_path",null,["string"],[m])}catch(u){return console.log(u),be(s,u.toString()),0}},moveFile:(s,r,a,u,v)=>{var k,D;let m=ie(s,r,a),b=ie(s,u,v),T=(k=we._files)==null?void 0:k.get(m);T!==void 0&&(we._files.delete(T),we._files.set(b,T));for(let[E,F]of((D=we._fileInfoCache)==null?void 0:D.entries())||[])if(F.dataUrl==m){we._fileInfoCache.delete(E);break}return!0},checkFile:(s,r,a)=>{try{let u=dt(s.HEAPU8.subarray(r,r+a));return Re.default.existsSync(u)}catch(u){return console.log(u),be(s,u.toString()),!1}},removeFile:(s,r,a)=>{try{let u=dt(s.HEAPU8.subarray(r,r+a));return Re.default.rmSync(u)}catch(u){return console.log(u),be(s,u.toString()),0}},callScalarUDF:(s,r,a,u,v,m,b)=>{ks(we,s,r,a,u,v,m,b)}};var Bn=class extends or{postMessage(r,a){globalThis.postMessage(r,a)}async instantiate(r,a,u){return await new ur(this,we,r,a).instantiate(u)}};function jc(){let s=new Bn;globalThis.onmessage=async r=>{await s.onMessage(r.data)}}jc();0&&(module.exports={registerWorker});
3
4
  /*! Bundled license information:
4
5
 
5
6
  is-extglob/index.js: