@duckdb/duckdb-wasm 1.16.0 → 1.17.0
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.
- package/README.md +2 -2
- package/dist/duckdb-browser-blocking.cjs +11 -11
- package/dist/duckdb-browser-blocking.cjs.map +4 -4
- package/dist/duckdb-browser-blocking.mjs +11 -11
- package/dist/duckdb-browser-blocking.mjs.map +4 -4
- package/dist/duckdb-browser-coi.pthread.worker.js +3 -3
- package/dist/duckdb-browser-coi.pthread.worker.js.map +4 -4
- package/dist/duckdb-browser-coi.worker.js +9 -23
- package/dist/duckdb-browser-coi.worker.js.map +4 -4
- package/dist/duckdb-browser-eh.worker.js +8 -22
- package/dist/duckdb-browser-eh.worker.js.map +4 -4
- package/dist/duckdb-browser-mvp.worker.js +8 -22
- package/dist/duckdb-browser-mvp.worker.js.map +4 -4
- package/dist/duckdb-browser.cjs +1 -1
- package/dist/duckdb-browser.cjs.map +3 -3
- package/dist/duckdb-browser.mjs +1 -1
- package/dist/duckdb-browser.mjs.map +3 -3
- package/dist/duckdb-coi.wasm +0 -0
- package/dist/duckdb-eh.wasm +0 -0
- package/dist/duckdb-mvp.wasm +0 -0
- package/dist/duckdb-node-blocking.cjs +4 -4
- package/dist/duckdb-node-blocking.cjs.map +4 -4
- package/dist/duckdb-node-eh.worker.cjs +4 -4
- package/dist/duckdb-node-eh.worker.cjs.map +4 -4
- package/dist/duckdb-node-mvp.worker.cjs +3 -3
- package/dist/duckdb-node-mvp.worker.cjs.map +4 -4
- package/dist/duckdb-node.cjs +1 -1
- package/dist/duckdb-node.cjs.map +3 -3
- package/dist/img/duckdb_version_badge.svg +1 -1
- package/dist/tests-browser.js +1528 -1022
- package/dist/tests-browser.js.map +4 -4
- package/dist/tests-node.cjs +1442 -978
- package/dist/tests-node.cjs.map +4 -4
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var sg=Object.create;var Ci=Object.defineProperty;var og=Object.getOwnPropertyDescriptor;var ug=Object.getOwnPropertyNames;var lg=Object.getPrototypeOf,cg=Object.prototype.hasOwnProperty;var V=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),fg=(r,t)=>{for(var e in t)Ci(r,e,{get:t[e],enumerable:!0})},wf=(r,t,e,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of ug(t))!cg.call(r,d)&&d!==e&&Ci(r,d,{get:()=>t[d],enumerable:!(u=og(t,d))||u.enumerable});return r};var cr=(r,t,e)=>(e=r!=null?sg(lg(r)):{},wf(t||!r||!r.__esModule?Ci(e,"default",{value:r,enumerable:!0}):e,r)),_g=r=>wf(Ci({},"__esModule",{value:!0}),r);var Mf=V((V0,Nf)=>{"use strict";var gg=async r=>{try{return(await WebAssembly.instantiate(r)).instance.exports.b(BigInt(0))===BigInt(0)}catch{return!1}},bg=async r=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(r)}catch{return!1}},jg={bigInt:()=>gg(new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,126,1,126,3,2,1,0,7,5,1,1,98,0,0,10,6,1,4,0,32,0,11])),bulkMemory:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),exceptions:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11])),multiValue:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,0,2,127,127,3,2,1,0,10,8,1,6,0,65,0,65,0,11])),mutableGlobals:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,2,8,1,1,97,1,98,3,127,1,6,6,1,127,1,65,0,11,7,5,1,1,97,3,1])),referenceTypes:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11])),saturatedFloatToInt:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,12,1,10,0,67,0,0,0,0,252,0,26,11])),signExtensions:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,65,0,192,26,11])),simd:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),tailCall:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,6,1,4,0,18,0,11])),threads:()=>bg(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))};Nf.exports=jg});var Bf=V(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.splitWhen=_r.flatten=void 0;function Dg(r){return r.reduce((t,e)=>[].concat(t,e),[])}_r.flatten=Dg;function Pg(r,t){let e=[[]],u=0;for(let d of r)t(d)?(u++,e[u]=[]):e[u].push(d);return e}_r.splitWhen=Pg});var Lf=V(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.isEnoentCodeError=void 0;function xg(r){return r.code==="ENOENT"}Pi.isEnoentCodeError=xg});var Uf=V(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.createDirentFromStats=void 0;var ps=class{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}};function Og(r,t){return new ps(r,t)}xi.createDirentFromStats=Og});var Hf=V(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.removeLeadingDotSegment=yt.escape=yt.makeAbsolute=yt.unixify=void 0;var Fg=require("path"),Ng=2,Mg=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Ig(r){return r.replace(/\\/g,"/")}yt.unixify=Ig;function Bg(r,t){return Fg.resolve(r,t)}yt.makeAbsolute=Bg;function Lg(r){return r.replace(Mg,"\\$2")}yt.escape=Lg;function Ug(r){if(r.charAt(0)==="."){let t=r.charAt(1);if(t==="/"||t==="\\")return r.slice(Ng)}return r}yt.removeLeadingDotSegment=Ug});var Wf=V((ik,qf)=>{qf.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var e;e=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(e[2])return!0;t=t.slice(e.index+e[0].length)}return!1}});var Kf=V((nk,Gf)=>{var Hg=Wf(),$f={"{":"}","(":")","[":"]"},qg=function(r){if(r[0]==="!")return!0;for(var t=0,e=-2,u=-2,d=-2,y=-2,v=-2;t<r.length;){if(r[t]==="*"||r[t+1]==="?"&&/[\].+)]/.test(r[t])||u!==-1&&r[t]==="["&&r[t+1]!=="]"&&(u<t&&(u=r.indexOf("]",t)),u>t&&(v===-1||v>u||(v=r.indexOf("\\",t),v===-1||v>u)))||d!==-1&&r[t]==="{"&&r[t+1]!=="}"&&(d=r.indexOf("}",t),d>t&&(v=r.indexOf("\\",t),v===-1||v>d))||y!==-1&&r[t]==="("&&r[t+1]==="?"&&/[:!=]/.test(r[t+2])&&r[t+3]!==")"&&(y=r.indexOf(")",t),y>t&&(v=r.indexOf("\\",t),v===-1||v>y))||e!==-1&&r[t]==="("&&r[t+1]!=="|"&&(e<t&&(e=r.indexOf("|",t)),e!==-1&&r[e+1]!==")"&&(y=r.indexOf(")",e),y>e&&(v=r.indexOf("\\",e),v===-1||v>y))))return!0;if(r[t]==="\\"){var S=r[t+1];t+=2;var A=$f[S];if(A){var I=r.indexOf(A,t);I!==-1&&(t=I+1)}if(r[t]==="!")return!0}else t++}return!1},Wg=function(r){if(r[0]==="!")return!0;for(var t=0;t<r.length;){if(/[*?{}()[\]]/.test(r[t]))return!0;if(r[t]==="\\"){var e=r[t+1];t+=2;var u=$f[e];if(u){var d=r.indexOf(u,t);d!==-1&&(t=d+1)}if(r[t]==="!")return!0}else t++}return!1};Gf.exports=function(t,e){if(typeof t!="string"||t==="")return!1;if(Hg(t))return!0;var u=qg;return e&&e.strict===!1&&(u=Wg),u(t)}});var Yf=V((ak,Vf)=>{"use strict";var $g=Kf(),Gg=require("path").posix.dirname,Kg=require("os").platform()==="win32",ys="/",Vg=/\\/g,Yg=/[\{\[].*[\}\]]$/,Qg=/(^|[^\\])([\{\[]|\([^\)]+$)/,zg=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Vf.exports=function(t,e){var u=Object.assign({flipBackslashes:!0},e);u.flipBackslashes&&Kg&&t.indexOf(ys)<0&&(t=t.replace(Vg,ys)),Yg.test(t)&&(t+=ys),t+="a";do t=Gg(t);while($g(t)||Qg.test(t));return t.replace(zg,"$1")}});var Oi=V(lt=>{"use strict";lt.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1;lt.find=(r,t)=>r.nodes.find(e=>e.type===t);lt.exceedsLimit=(r,t,e=1,u)=>u===!1||!lt.isInteger(r)||!lt.isInteger(t)?!1:(Number(t)-Number(r))/Number(e)>=u;lt.escapeNode=(r,t=0,e)=>{let u=r.nodes[t];!u||(e&&u.type===e||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)};lt.encloseBrace=r=>r.type!=="brace"?!1:r.commas>>0+r.ranges>>0===0?(r.invalid=!0,!0):!1;lt.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:r.commas>>0+r.ranges>>0===0||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1;lt.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0;lt.reduce=r=>r.reduce((t,e)=>(e.type==="text"&&t.push(e.value),e.type==="range"&&(e.type="text"),t),[]);lt.flatten=(...r)=>{let t=[],e=u=>{for(let d=0;d<u.length;d++){let y=u[d];Array.isArray(y)?e(y,t):y!==void 0&&t.push(y)}return t};return e(r),t}});var Fi=V((ok,zf)=>{"use strict";var Qf=Oi();zf.exports=(r,t={})=>{let e=(u,d={})=>{let y=t.escapeInvalid&&Qf.isInvalidBrace(d),v=u.invalid===!0&&t.escapeInvalid===!0,S="";if(u.value)return(y||v)&&Qf.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let A of u.nodes)S+=e(A);return S};return e(r)}});var Jf=V((uk,Xf)=>{"use strict";Xf.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}});var o_=V((lk,s_)=>{"use strict";var Zf=Jf(),Kt=(r,t,e)=>{if(Zf(r)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||r===t)return String(r);if(Zf(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let u={relaxZeros:!0,...e};typeof u.strictZeros=="boolean"&&(u.relaxZeros=u.strictZeros===!1);let d=String(u.relaxZeros),y=String(u.shorthand),v=String(u.capture),S=String(u.wrap),A=r+":"+t+"="+d+y+v+S;if(Kt.cache.hasOwnProperty(A))return Kt.cache[A].result;let I=Math.min(r,t),R=Math.max(r,t);if(Math.abs(I-R)===1){let z=r+"|"+t;return u.capture?`(${z})`:u.wrap===!1?z:`(?:${z})`}let L=a_(r)||a_(t),P={min:r,max:t,a:I,b:R},fe=[],K=[];if(L&&(P.isPadded=L,P.maxLen=String(P.max).length),I<0){let z=R<0?Math.abs(R):1;K=e_(z,Math.abs(I),P,u),I=P.a=0}return R>=0&&(fe=e_(I,R,P,u)),P.negatives=K,P.positives=fe,P.result=Xg(K,fe,u),u.capture===!0?P.result=`(${P.result})`:u.wrap!==!1&&fe.length+K.length>1&&(P.result=`(?:${P.result})`),Kt.cache[A]=P,P.result};function Xg(r,t,e){let u=hs(r,t,"-",!1,e)||[],d=hs(t,r,"",!1,e)||[],y=hs(r,t,"-?",!0,e)||[];return u.concat(y).concat(d).join("|")}function Jg(r,t){let e=1,u=1,d=r_(r,e),y=new Set([t]);for(;r<=d&&d<=t;)y.add(d),e+=1,d=r_(r,e);for(d=i_(t+1,u)-1;r<d&&d<=t;)y.add(d),u+=1,d=i_(t+1,u)-1;return y=[...y],y.sort(tb),y}function Zg(r,t,e){if(r===t)return{pattern:r,count:[],digits:0};let u=eb(r,t),d=u.length,y="",v=0;for(let S=0;S<d;S++){let[A,I]=u[S];A===I?y+=A:A!=="0"||I!=="9"?y+=rb(A,I,e):v++}return v&&(y+=e.shorthand===!0?"\\d":"[0-9]"),{pattern:y,count:[v],digits:d}}function e_(r,t,e,u){let d=Jg(r,t),y=[],v=r,S;for(let A=0;A<d.length;A++){let I=d[A],R=Zg(String(v),String(I),u),L="";if(!e.isPadded&&S&&S.pattern===R.pattern){S.count.length>1&&S.count.pop(),S.count.push(R.count[0]),S.string=S.pattern+n_(S.count),v=I+1;continue}e.isPadded&&(L=ib(I,e,u)),R.string=L+R.pattern+n_(R.count),y.push(R),v=I+1,S=R}return y}function hs(r,t,e,u,d){let y=[];for(let v of r){let{string:S}=v;!u&&!t_(t,"string",S)&&y.push(e+S),u&&t_(t,"string",S)&&y.push(e+S)}return y}function eb(r,t){let e=[];for(let u=0;u<r.length;u++)e.push([r[u],t[u]]);return e}function tb(r,t){return r>t?1:t>r?-1:0}function t_(r,t,e){return r.some(u=>u[t]===e)}function r_(r,t){return Number(String(r).slice(0,-t)+"9".repeat(t))}function i_(r,t){return r-r%Math.pow(10,t)}function n_(r){let[t=0,e=""]=r;return e||t>1?`{${t+(e?","+e:"")}}`:""}function rb(r,t,e){return`[${r}${t-r===1?"":"-"}${t}]`}function a_(r){return/^-?(0+)\d/.test(r)}function ib(r,t,e){if(!t.isPadded)return r;let u=Math.abs(t.maxLen-String(r).length),d=e.relaxZeros!==!1;switch(u){case 0:return"";case 1:return d?"0?":"0";case 2:return d?"0{0,2}":"00";default:return d?`0{0,${u}}`:`0{${u}}`}}Kt.cache={};Kt.clearCache=()=>Kt.cache={};s_.exports=Kt});var gs=V((ck,y_)=>{"use strict";var nb=require("util"),c_=o_(),u_=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),ab=r=>t=>r===!0?Number(t):String(t),ms=r=>typeof r=="number"||typeof r=="string"&&r!=="",qr=r=>Number.isInteger(+r),vs=r=>{let t=`${r}`,e=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++e]==="0";);return e>0},sb=(r,t,e)=>typeof r=="string"||typeof t=="string"?!0:e.stringify===!0,ob=(r,t,e)=>{if(t>0){let u=r[0]==="-"?"-":"";u&&(r=r.slice(1)),r=u+r.padStart(u?t-1:t,"0")}return e===!1?String(r):r},l_=(r,t)=>{let e=r[0]==="-"?"-":"";for(e&&(r=r.slice(1),t--);r.length<t;)r="0"+r;return e?"-"+r:r},ub=(r,t)=>{r.negatives.sort((v,S)=>v<S?-1:v>S?1:0),r.positives.sort((v,S)=>v<S?-1:v>S?1:0);let e=t.capture?"":"?:",u="",d="",y;return r.positives.length&&(u=r.positives.join("|")),r.negatives.length&&(d=`-(${e}${r.negatives.join("|")})`),u&&d?y=`${u}|${d}`:y=u||d,t.wrap?`(${e}${y})`:y},f_=(r,t,e,u)=>{if(e)return c_(r,t,{wrap:!1,...u});let d=String.fromCharCode(r);if(r===t)return d;let y=String.fromCharCode(t);return`[${d}-${y}]`},__=(r,t,e)=>{if(Array.isArray(r)){let u=e.wrap===!0,d=e.capture?"":"?:";return u?`(${d}${r.join("|")})`:r.join("|")}return c_(r,t,e)},d_=(...r)=>new RangeError("Invalid range arguments: "+nb.inspect(...r)),p_=(r,t,e)=>{if(e.strictRanges===!0)throw d_([r,t]);return[]},lb=(r,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${r}" to be a number`);return[]},cb=(r,t,e=1,u={})=>{let d=Number(r),y=Number(t);if(!Number.isInteger(d)||!Number.isInteger(y)){if(u.strictRanges===!0)throw d_([r,t]);return[]}d===0&&(d=0),y===0&&(y=0);let v=d>y,S=String(r),A=String(t),I=String(e);e=Math.max(Math.abs(e),1);let R=vs(S)||vs(A)||vs(I),L=R?Math.max(S.length,A.length,I.length):0,P=R===!1&&sb(r,t,u)===!1,fe=u.transform||ab(P);if(u.toRegex&&e===1)return f_(l_(r,L),l_(t,L),!0,u);let K={negatives:[],positives:[]},z=be=>K[be<0?"negatives":"positives"].push(Math.abs(be)),ee=[],oe=0;for(;v?d>=y:d<=y;)u.toRegex===!0&&e>1?z(d):ee.push(ob(fe(d,oe),L,P)),d=v?d-e:d+e,oe++;return u.toRegex===!0?e>1?ub(K,u):__(ee,null,{wrap:!1,...u}):ee},fb=(r,t,e=1,u={})=>{if(!qr(r)&&r.length>1||!qr(t)&&t.length>1)return p_(r,t,u);let d=u.transform||(P=>String.fromCharCode(P)),y=`${r}`.charCodeAt(0),v=`${t}`.charCodeAt(0),S=y>v,A=Math.min(y,v),I=Math.max(y,v);if(u.toRegex&&e===1)return f_(A,I,!1,u);let R=[],L=0;for(;S?y>=v:y<=v;)R.push(d(y,L)),y=S?y-e:y+e,L++;return u.toRegex===!0?__(R,null,{wrap:!1,options:u}):R},Ni=(r,t,e,u={})=>{if(t==null&&ms(r))return[r];if(!ms(r)||!ms(t))return p_(r,t,u);if(typeof e=="function")return Ni(r,t,1,{transform:e});if(u_(e))return Ni(r,t,0,e);let d={...u};return d.capture===!0&&(d.wrap=!0),e=e||d.step||1,qr(e)?qr(r)&&qr(t)?cb(r,t,e,d):fb(r,t,Math.max(Math.abs(e),1),d):e!=null&&!u_(e)?lb(e,d):Ni(r,t,1,e)};y_.exports=Ni});var v_=V((fk,m_)=>{"use strict";var _b=gs(),h_=Oi(),db=(r,t={})=>{let e=(u,d={})=>{let y=h_.isInvalidBrace(d),v=u.invalid===!0&&t.escapeInvalid===!0,S=y===!0||v===!0,A=t.escapeInvalid===!0?"\\":"",I="";if(u.isOpen===!0||u.isClose===!0)return A+u.value;if(u.type==="open")return S?A+u.value:"(";if(u.type==="close")return S?A+u.value:")";if(u.type==="comma")return u.prev.type==="comma"?"":S?u.value:"|";if(u.value)return u.value;if(u.nodes&&u.ranges>0){let R=h_.reduce(u.nodes),L=_b(...R,{...t,wrap:!1,toRegex:!0});if(L.length!==0)return R.length>1&&L.length>1?`(${L})`:L}if(u.nodes)for(let R of u.nodes)I+=e(R,u);return I};return e(r)};m_.exports=db});var j_=V((_k,b_)=>{"use strict";var pb=gs(),g_=Fi(),dr=Oi(),Vt=(r="",t="",e=!1)=>{let u=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return e?dr.flatten(t).map(d=>`{${d}}`):t;for(let d of r)if(Array.isArray(d))for(let y of d)u.push(Vt(y,t,e));else for(let y of t)e===!0&&typeof y=="string"&&(y=`{${y}}`),u.push(Array.isArray(y)?Vt(d,y,e):d+y);return dr.flatten(u)},yb=(r,t={})=>{let e=t.rangeLimit===void 0?1e3:t.rangeLimit,u=(d,y={})=>{d.queue=[];let v=y,S=y.queue;for(;v.type!=="brace"&&v.type!=="root"&&v.parent;)v=v.parent,S=v.queue;if(d.invalid||d.dollar){S.push(Vt(S.pop(),g_(d,t)));return}if(d.type==="brace"&&d.invalid!==!0&&d.nodes.length===2){S.push(Vt(S.pop(),["{}"]));return}if(d.nodes&&d.ranges>0){let L=dr.reduce(d.nodes);if(dr.exceedsLimit(...L,t.step,e))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=pb(...L,t);P.length===0&&(P=g_(d,t)),S.push(Vt(S.pop(),P)),d.nodes=[];return}let A=dr.encloseBrace(d),I=d.queue,R=d;for(;R.type!=="brace"&&R.type!=="root"&&R.parent;)R=R.parent,I=R.queue;for(let L=0;L<d.nodes.length;L++){let P=d.nodes[L];if(P.type==="comma"&&d.type==="brace"){L===1&&I.push(""),I.push("");continue}if(P.type==="close"){S.push(Vt(S.pop(),I,A));continue}if(P.value&&P.type!=="open"){I.push(Vt(I.pop(),P.value));continue}P.nodes&&u(P,d)}return I};return dr.flatten(u(r))};b_.exports=yb});var k_=V((dk,w_)=>{"use strict";w_.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
2
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var R_=V((pk,A_)=>{"use strict";var hb=Fi(),{MAX_LENGTH:C_,CHAR_BACKSLASH:bs,CHAR_BACKTICK:mb,CHAR_COMMA:vb,CHAR_DOT:gb,CHAR_LEFT_PARENTHESES:bb,CHAR_RIGHT_PARENTHESES:jb,CHAR_LEFT_CURLY_BRACE:wb,CHAR_RIGHT_CURLY_BRACE:kb,CHAR_LEFT_SQUARE_BRACKET:S_,CHAR_RIGHT_SQUARE_BRACKET:E_,CHAR_DOUBLE_QUOTE:Cb,CHAR_SINGLE_QUOTE:Sb,CHAR_NO_BREAK_SPACE:Eb,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ab}=k_(),Rb=(r,t={})=>{if(typeof r!="string")throw new TypeError("Expected a string");let e=t||{},u=typeof e.maxLength=="number"?Math.min(C_,e.maxLength):C_;if(r.length>u)throw new SyntaxError(`Input length (${r.length}), exceeds max characters (${u})`);let d={type:"root",input:r,nodes:[]},y=[d],v=d,S=d,A=0,I=r.length,R=0,L=0,P,fe={},K=()=>r[R++],z=ee=>{if(ee.type==="text"&&S.type==="dot"&&(S.type="text"),S&&S.type==="text"&&ee.type==="text"){S.value+=ee.value;return}return v.nodes.push(ee),ee.parent=v,ee.prev=S,S=ee,ee};for(z({type:"bos"});R<I;)if(v=y[y.length-1],P=K(),!(P===Ab||P===Eb)){if(P===bs){z({type:"text",value:(t.keepEscaping?P:"")+K()});continue}if(P===E_){z({type:"text",value:"\\"+P});continue}if(P===S_){A++;let ee=!0,oe;for(;R<I&&(oe=K());){if(P+=oe,oe===S_){A++;continue}if(oe===bs){P+=K();continue}if(oe===E_&&(A--,A===0))break}z({type:"text",value:P});continue}if(P===bb){v=z({type:"paren",nodes:[]}),y.push(v),z({type:"text",value:P});continue}if(P===jb){if(v.type!=="paren"){z({type:"text",value:P});continue}v=y.pop(),z({type:"text",value:P}),v=y[y.length-1];continue}if(P===Cb||P===Sb||P===mb){let ee=P,oe;for(t.keepQuotes!==!0&&(P="");R<I&&(oe=K());){if(oe===bs){P+=oe+K();continue}if(oe===ee){t.keepQuotes===!0&&(P+=oe);break}P+=oe}z({type:"text",value:P});continue}if(P===wb){L++;let ee=S.value&&S.value.slice(-1)==="$"||v.dollar===!0;v=z({type:"brace",open:!0,close:!1,dollar:ee,depth:L,commas:0,ranges:0,nodes:[]}),y.push(v),z({type:"open",value:P});continue}if(P===kb){if(v.type!=="brace"){z({type:"text",value:P});continue}let ee="close";v=y.pop(),v.close=!0,z({type:ee,value:P}),L--,v=y[y.length-1];continue}if(P===vb&&L>0){if(v.ranges>0){v.ranges=0;let ee=v.nodes.shift();v.nodes=[ee,{type:"text",value:hb(v)}]}z({type:"comma",value:P}),v.commas++;continue}if(P===gb&&L>0&&v.commas===0){let ee=v.nodes;if(L===0||ee.length===0){z({type:"text",value:P});continue}if(S.type==="dot"){if(v.range=[],S.value+=P,S.type="range",v.nodes.length!==3&&v.nodes.length!==5){v.invalid=!0,v.ranges=0,S.type="text";continue}v.ranges++,v.args=[];continue}if(S.type==="range"){ee.pop();let oe=ee[ee.length-1];oe.value+=S.value+P,S=oe,v.ranges--;continue}z({type:"dot",value:P});continue}z({type:"text",value:P})}do if(v=y.pop(),v.type!=="root"){v.nodes.forEach(be=>{be.nodes||(be.type==="open"&&(be.isOpen=!0),be.type==="close"&&(be.isClose=!0),be.nodes||(be.type="text"),be.invalid=!0)});let ee=y[y.length-1],oe=ee.nodes.indexOf(v);ee.nodes.splice(oe,1,...v.nodes)}while(y.length>0);return z({type:"eos"}),d};A_.exports=Rb});var P_=V((yk,D_)=>{"use strict";var T_=Fi(),Tb=v_(),Db=j_(),Pb=R_(),st=(r,t={})=>{let e=[];if(Array.isArray(r))for(let u of r){let d=st.create(u,t);Array.isArray(d)?e.push(...d):e.push(d)}else e=[].concat(st.create(r,t));return t&&t.expand===!0&&t.nodupes===!0&&(e=[...new Set(e)]),e};st.parse=(r,t={})=>Pb(r,t);st.stringify=(r,t={})=>T_(typeof r=="string"?st.parse(r,t):r,t);st.compile=(r,t={})=>(typeof r=="string"&&(r=st.parse(r,t)),Tb(r,t));st.expand=(r,t={})=>{typeof r=="string"&&(r=st.parse(r,t));let e=Db(r,t);return t.noempty===!0&&(e=e.filter(Boolean)),t.nodupes===!0&&(e=[...new Set(e)]),e};st.create=(r,t={})=>r===""||r.length<3?[r]:t.expand!==!0?st.compile(r,t):st.expand(r,t);D_.exports=st});var Wr=V((hk,M_)=>{"use strict";var xb=require("path"),ht="\\\\/",x_=`[^${ht}]`,Ct="\\.",Ob="\\+",Fb="\\?",Mi="\\/",Nb="(?=.)",O_="[^/]",js=`(?:${Mi}|$)`,F_=`(?:^|${Mi})`,ws=`${Ct}{1,2}${js}`,Mb=`(?!${Ct})`,Ib=`(?!${F_}${ws})`,Bb=`(?!${Ct}{0,1}${js})`,Lb=`(?!${ws})`,Ub=`[^.${Mi}]`,Hb=`${O_}*?`,N_={DOT_LITERAL:Ct,PLUS_LITERAL:Ob,QMARK_LITERAL:Fb,SLASH_LITERAL:Mi,ONE_CHAR:Nb,QMARK:O_,END_ANCHOR:js,DOTS_SLASH:ws,NO_DOT:Mb,NO_DOTS:Ib,NO_DOT_SLASH:Bb,NO_DOTS_SLASH:Lb,QMARK_NO_DOT:Ub,STAR:Hb,START_ANCHOR:F_},qb={...N_,SLASH_LITERAL:`[${ht}]`,QMARK:x_,STAR:`${x_}*?`,DOTS_SLASH:`${Ct}{1,2}(?:[${ht}]|$)`,NO_DOT:`(?!${Ct})`,NO_DOTS:`(?!(?:^|[${ht}])${Ct}{1,2}(?:[${ht}]|$))`,NO_DOT_SLASH:`(?!${Ct}{0,1}(?:[${ht}]|$))`,NO_DOTS_SLASH:`(?!${Ct}{1,2}(?:[${ht}]|$))`,QMARK_NO_DOT:`[^.${ht}]`,START_ANCHOR:`(?:^|[${ht}])`,END_ANCHOR:`(?:[${ht}]|$)`},Wb={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"};M_.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Wb,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:xb.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?qb:N_}}});var $r=V(nt=>{"use strict";var $b=require("path"),Gb=process.platform==="win32",{REGEX_BACKSLASH:Kb,REGEX_REMOVE_BACKSLASH:Vb,REGEX_SPECIAL_CHARS:Yb,REGEX_SPECIAL_CHARS_GLOBAL:Qb}=Wr();nt.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r);nt.hasRegexChars=r=>Yb.test(r);nt.isRegexChar=r=>r.length===1&&nt.hasRegexChars(r);nt.escapeRegex=r=>r.replace(Qb,"\\$1");nt.toPosixSlashes=r=>r.replace(Kb,"/");nt.removeBackslashes=r=>r.replace(Vb,t=>t==="\\"?"":t);nt.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10};nt.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:Gb===!0||$b.sep==="\\";nt.escapeLast=(r,t,e)=>{let u=r.lastIndexOf(t,e);return u===-1?r:r[u-1]==="\\"?nt.escapeLast(r,t,u-1):`${r.slice(0,u)}\\${r.slice(u)}`};nt.removePrefix=(r,t={})=>{let e=r;return e.startsWith("./")&&(e=e.slice(2),t.prefix="./"),e};nt.wrapOutput=(r,t={},e={})=>{let u=e.contains?"":"^",d=e.contains?"":"$",y=`${u}(?:${r})${d}`;return t.negated===!0&&(y=`(?:^(?!${y}).*$)`),y}});var $_=V((vk,W_)=>{"use strict";var I_=$r(),{CHAR_ASTERISK:ks,CHAR_AT:zb,CHAR_BACKWARD_SLASH:Gr,CHAR_COMMA:Xb,CHAR_DOT:Cs,CHAR_EXCLAMATION_MARK:Ss,CHAR_FORWARD_SLASH:q_,CHAR_LEFT_CURLY_BRACE:Es,CHAR_LEFT_PARENTHESES:As,CHAR_LEFT_SQUARE_BRACKET:Jb,CHAR_PLUS:Zb,CHAR_QUESTION_MARK:B_,CHAR_RIGHT_CURLY_BRACE:ej,CHAR_RIGHT_PARENTHESES:L_,CHAR_RIGHT_SQUARE_BRACKET:tj}=Wr(),U_=r=>r===q_||r===Gr,H_=r=>{r.isPrefix!==!0&&(r.depth=r.isGlobstar?1/0:1)},rj=(r,t)=>{let e=t||{},u=r.length-1,d=e.parts===!0||e.scanToEnd===!0,y=[],v=[],S=[],A=r,I=-1,R=0,L=0,P=!1,fe=!1,K=!1,z=!1,ee=!1,oe=!1,be=!1,me=!1,Ae=!1,ie=!1,ke=0,J,te,$={value:"",depth:0,isGlob:!1},pe=()=>I>=u,F=()=>A.charCodeAt(I+1),ue=()=>(J=te,A.charCodeAt(++I));for(;I<u;){te=ue();let Pe;if(te===Gr){be=$.backslashes=!0,te=ue(),te===Es&&(oe=!0);continue}if(oe===!0||te===Es){for(ke++;pe()!==!0&&(te=ue());){if(te===Gr){be=$.backslashes=!0,ue();continue}if(te===Es){ke++;continue}if(oe!==!0&&te===Cs&&(te=ue())===Cs){if(P=$.isBrace=!0,K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(oe!==!0&&te===Xb){if(P=$.isBrace=!0,K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(te===ej&&(ke--,ke===0)){oe=!1,P=$.isBrace=!0,ie=!0;break}}if(d===!0)continue;break}if(te===q_){if(y.push(I),v.push($),$={value:"",depth:0,isGlob:!1},ie===!0)continue;if(J===Cs&&I===R+1){R+=2;continue}L=I+1;continue}if(e.noext!==!0&&(te===Zb||te===zb||te===ks||te===B_||te===Ss)===!0&&F()===As){if(K=$.isGlob=!0,z=$.isExtglob=!0,ie=!0,te===Ss&&I===R&&(Ae=!0),d===!0){for(;pe()!==!0&&(te=ue());){if(te===Gr){be=$.backslashes=!0,te=ue();continue}if(te===L_){K=$.isGlob=!0,ie=!0;break}}continue}break}if(te===ks){if(J===ks&&(ee=$.isGlobstar=!0),K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(te===B_){if(K=$.isGlob=!0,ie=!0,d===!0)continue;break}if(te===Jb){for(;pe()!==!0&&(Pe=ue());){if(Pe===Gr){be=$.backslashes=!0,ue();continue}if(Pe===tj){fe=$.isBracket=!0,K=$.isGlob=!0,ie=!0;break}}if(d===!0)continue;break}if(e.nonegate!==!0&&te===Ss&&I===R){me=$.negated=!0,R++;continue}if(e.noparen!==!0&&te===As){if(K=$.isGlob=!0,d===!0){for(;pe()!==!0&&(te=ue());){if(te===As){be=$.backslashes=!0,te=ue();continue}if(te===L_){ie=!0;break}}continue}break}if(K===!0){if(ie=!0,d===!0)continue;break}}e.noext===!0&&(z=!1,K=!1);let ae=A,Ce="",D="";R>0&&(Ce=A.slice(0,R),A=A.slice(R),L-=R),ae&&K===!0&&L>0?(ae=A.slice(0,L),D=A.slice(L)):K===!0?(ae="",D=A):ae=A,ae&&ae!==""&&ae!=="/"&&ae!==A&&U_(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),e.unescape===!0&&(D&&(D=I_.removeBackslashes(D)),ae&&be===!0&&(ae=I_.removeBackslashes(ae)));let x={prefix:Ce,input:r,start:R,base:ae,glob:D,isBrace:P,isBracket:fe,isGlob:K,isExtglob:z,isGlobstar:ee,negated:me,negatedExtglob:Ae};if(e.tokens===!0&&(x.maxDepth=0,U_(te)||v.push($),x.tokens=v),e.parts===!0||e.tokens===!0){let Pe;for(let le=0;le<y.length;le++){let Ye=Pe?Pe+1:R,We=y[le],xe=r.slice(Ye,We);e.tokens&&(le===0&&R!==0?(v[le].isPrefix=!0,v[le].value=Ce):v[le].value=xe,H_(v[le]),x.maxDepth+=v[le].depth),(le!==0||xe!=="")&&S.push(xe),Pe=We}if(Pe&&Pe+1<r.length){let le=r.slice(Pe+1);S.push(le),e.tokens&&(v[v.length-1].value=le,H_(v[v.length-1]),x.maxDepth+=v[v.length-1].depth)}x.slashes=y,x.parts=S}return x};W_.exports=rj});var Y_=V((gk,V_)=>{"use strict";var Ii=Wr(),ot=$r(),{MAX_LENGTH:Bi,POSIX_REGEX_SOURCE:ij,REGEX_NON_SPECIAL_CHARS:nj,REGEX_SPECIAL_CHARS_BACKREF:aj,REPLACEMENTS:G_}=Ii,sj=(r,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...r,t);r.sort();let e=`[${r.join("-")}]`;try{new RegExp(e)}catch{return r.map(d=>ot.escapeRegex(d)).join("..")}return e},pr=(r,t)=>`Missing ${r}: "${t}" - use "\\\\${t}" to match literal characters`,K_=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");r=G_[r]||r;let e={...t},u=typeof e.maxLength=="number"?Math.min(Bi,e.maxLength):Bi,d=r.length;if(d>u)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${u}`);let y={type:"bos",value:"",output:e.prepend||""},v=[y],S=e.capture?"":"?:",A=ot.isWindows(t),I=Ii.globChars(A),R=Ii.extglobChars(I),{DOT_LITERAL:L,PLUS_LITERAL:P,SLASH_LITERAL:fe,ONE_CHAR:K,DOTS_SLASH:z,NO_DOT:ee,NO_DOT_SLASH:oe,NO_DOTS_SLASH:be,QMARK:me,QMARK_NO_DOT:Ae,STAR:ie,START_ANCHOR:ke}=I,J=O=>`(${S}(?:(?!${ke}${O.dot?z:L}).)*?)`,te=e.dot?"":ee,$=e.dot?me:Ae,pe=e.bash===!0?J(e):ie;e.capture&&(pe=`(${pe})`),typeof e.noext=="boolean"&&(e.noextglob=e.noext);let F={input:r,index:-1,start:0,dot:e.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};r=ot.removePrefix(r,F),d=r.length;let ue=[],ae=[],Ce=[],D=y,x,Pe=()=>F.index===d-1,le=F.peek=(O=1)=>r[F.index+O],Ye=F.advance=()=>r[++F.index]||"",We=()=>r.slice(F.index+1),xe=(O="",ve=0)=>{F.consumed+=O,F.index+=ve},_t=O=>{F.output+=O.output!=null?O.output:O.value,xe(O.value)},It=()=>{let O=1;for(;le()==="!"&&(le(2)!=="("||le(3)==="?");)Ye(),F.start++,O++;return O%2===0?!1:(F.negated=!0,F.start++,!0)},bt=O=>{F[O]++,Ce.push(O)},Qe=O=>{F[O]--,Ce.pop()},se=O=>{if(D.type==="globstar"){let ve=F.braces>0&&(O.type==="comma"||O.type==="brace"),W=O.extglob===!0||ue.length&&(O.type==="pipe"||O.type==="paren");O.type!=="slash"&&O.type!=="paren"&&!ve&&!W&&(F.output=F.output.slice(0,-D.output.length),D.type="star",D.value="*",D.output=pe,F.output+=D.output)}if(ue.length&&O.type!=="paren"&&(ue[ue.length-1].inner+=O.value),(O.value||O.output)&&_t(O),D&&D.type==="text"&&O.type==="text"){D.value+=O.value,D.output=(D.output||"")+O.value;return}O.prev=D,v.push(O),D=O},at=(O,ve)=>{let W={...R[ve],conditions:1,inner:""};W.prev=D,W.parens=F.parens,W.output=F.output;let N=(e.capture?"(":"")+W.open;bt("parens"),se({type:O,value:ve,output:F.output?"":K}),se({type:"paren",extglob:!0,value:Ye(),output:N}),ue.push(W)},Je=O=>{let ve=O.close+(e.capture?")":""),W;if(O.type==="negate"){let N=pe;O.inner&&O.inner.length>1&&O.inner.includes("/")&&(N=J(e)),(N!==pe||Pe()||/^\)+$/.test(We()))&&(ve=O.close=`)$))${N}`),O.inner.includes("*")&&(W=We())&&/^\.[^\\/.]+$/.test(W)&&(ve=O.close=`)${W})${N})`),O.prev.type==="bos"&&(F.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:x,output:ve}),Qe("parens")};if(e.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let O=!1,ve=r.replace(aj,(W,N,Re,He,Fe,jt)=>He==="\\"?(O=!0,W):He==="?"?N?N+He+(Fe?me.repeat(Fe.length):""):jt===0?$+(Fe?me.repeat(Fe.length):""):me.repeat(Re.length):He==="."?L.repeat(Re.length):He==="*"?N?N+He+(Fe?pe:""):pe:N?W:`\\${W}`);return O===!0&&(e.unescape===!0?ve=ve.replace(/\\/g,""):ve=ve.replace(/\\+/g,W=>W.length%2===0?"\\\\":W?"\\":"")),ve===r&&e.contains===!0?(F.output=r,F):(F.output=ot.wrapOutput(ve,F,t),F)}for(;!Pe();){if(x=Ye(),x==="\0")continue;if(x==="\\"){let W=le();if(W==="/"&&e.bash!==!0||W==="."||W===";")continue;if(!W){x+="\\",se({type:"text",value:x});continue}let N=/^\\+/.exec(We()),Re=0;if(N&&N[0].length>2&&(Re=N[0].length,F.index+=Re,Re%2!==0&&(x+="\\")),e.unescape===!0?x=Ye():x+=Ye(),F.brackets===0){se({type:"text",value:x});continue}}if(F.brackets>0&&(x!=="]"||D.value==="["||D.value==="[^")){if(e.posix!==!1&&x===":"){let W=D.value.slice(1);if(W.includes("[")&&(D.posix=!0,W.includes(":"))){let N=D.value.lastIndexOf("["),Re=D.value.slice(0,N),He=D.value.slice(N+2),Fe=ij[He];if(Fe){D.value=Re+Fe,F.backtrack=!0,Ye(),!y.output&&v.indexOf(D)===1&&(y.output=K);continue}}}(x==="["&&le()!==":"||x==="-"&&le()==="]")&&(x=`\\${x}`),x==="]"&&(D.value==="["||D.value==="[^")&&(x=`\\${x}`),e.posix===!0&&x==="!"&&D.value==="["&&(x="^"),D.value+=x,_t({value:x});continue}if(F.quotes===1&&x!=='"'){x=ot.escapeRegex(x),D.value+=x,_t({value:x});continue}if(x==='"'){F.quotes=F.quotes===1?0:1,e.keepQuotes===!0&&se({type:"text",value:x});continue}if(x==="("){bt("parens"),se({type:"paren",value:x});continue}if(x===")"){if(F.parens===0&&e.strictBrackets===!0)throw new SyntaxError(pr("opening","("));let W=ue[ue.length-1];if(W&&F.parens===W.parens+1){Je(ue.pop());continue}se({type:"paren",value:x,output:F.parens?")":"\\)"}),Qe("parens");continue}if(x==="["){if(e.nobracket===!0||!We().includes("]")){if(e.nobracket!==!0&&e.strictBrackets===!0)throw new SyntaxError(pr("closing","]"));x=`\\${x}`}else bt("brackets");se({type:"bracket",value:x});continue}if(x==="]"){if(e.nobracket===!0||D&&D.type==="bracket"&&D.value.length===1){se({type:"text",value:x,output:`\\${x}`});continue}if(F.brackets===0){if(e.strictBrackets===!0)throw new SyntaxError(pr("opening","["));se({type:"text",value:x,output:`\\${x}`});continue}Qe("brackets");let W=D.value.slice(1);if(D.posix!==!0&&W[0]==="^"&&!W.includes("/")&&(x=`/${x}`),D.value+=x,_t({value:x}),e.literalBrackets===!1||ot.hasRegexChars(W))continue;let N=ot.escapeRegex(D.value);if(F.output=F.output.slice(0,-D.value.length),e.literalBrackets===!0){F.output+=N,D.value=N;continue}D.value=`(${S}${N}|${D.value})`,F.output+=D.value;continue}if(x==="{"&&e.nobrace!==!0){bt("braces");let W={type:"brace",value:x,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};ae.push(W),se(W);continue}if(x==="}"){let W=ae[ae.length-1];if(e.nobrace===!0||!W){se({type:"text",value:x,output:x});continue}let N=")";if(W.dots===!0){let Re=v.slice(),He=[];for(let Fe=Re.length-1;Fe>=0&&(v.pop(),Re[Fe].type!=="brace");Fe--)Re[Fe].type!=="dots"&&He.unshift(Re[Fe].value);N=sj(He,e),F.backtrack=!0}if(W.comma!==!0&&W.dots!==!0){let Re=F.output.slice(0,W.outputIndex),He=F.tokens.slice(W.tokensIndex);W.value=W.output="\\{",x=N="\\}",F.output=Re;for(let Fe of He)F.output+=Fe.output||Fe.value}se({type:"brace",value:x,output:N}),Qe("braces"),ae.pop();continue}if(x==="|"){ue.length>0&&ue[ue.length-1].conditions++,se({type:"text",value:x});continue}if(x===","){let W=x,N=ae[ae.length-1];N&&Ce[Ce.length-1]==="braces"&&(N.comma=!0,W="|"),se({type:"comma",value:x,output:W});continue}if(x==="/"){if(D.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",v.pop(),D=y;continue}se({type:"slash",value:x,output:fe});continue}if(x==="."){if(F.braces>0&&D.type==="dot"){D.value==="."&&(D.output=L);let W=ae[ae.length-1];D.type="dots",D.output+=x,D.value+=x,W.dots=!0;continue}if(F.braces+F.parens===0&&D.type!=="bos"&&D.type!=="slash"){se({type:"text",value:x,output:L});continue}se({type:"dot",value:x,output:L});continue}if(x==="?"){if(!(D&&D.value==="(")&&e.noextglob!==!0&&le()==="("&&le(2)!=="?"){at("qmark",x);continue}if(D&&D.type==="paren"){let N=le(),Re=x;if(N==="<"&&!ot.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(D.value==="("&&!/[!=<:]/.test(N)||N==="<"&&!/<([!=]|\w+>)/.test(We()))&&(Re=`\\${x}`),se({type:"text",value:x,output:Re});continue}if(e.dot!==!0&&(D.type==="slash"||D.type==="bos")){se({type:"qmark",value:x,output:Ae});continue}se({type:"qmark",value:x,output:me});continue}if(x==="!"){if(e.noextglob!==!0&&le()==="("&&(le(2)!=="?"||!/[!=<:]/.test(le(3)))){at("negate",x);continue}if(e.nonegate!==!0&&F.index===0){It();continue}}if(x==="+"){if(e.noextglob!==!0&&le()==="("&&le(2)!=="?"){at("plus",x);continue}if(D&&D.value==="("||e.regex===!1){se({type:"plus",value:x,output:P});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||F.parens>0){se({type:"plus",value:x});continue}se({type:"plus",value:P});continue}if(x==="@"){if(e.noextglob!==!0&&le()==="("&&le(2)!=="?"){se({type:"at",extglob:!0,value:x,output:""});continue}se({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let W=nj.exec(We());W&&(x+=W[0],F.index+=W[0].length),se({type:"text",value:x});continue}if(D&&(D.type==="globstar"||D.star===!0)){D.type="star",D.star=!0,D.value+=x,D.output=pe,F.backtrack=!0,F.globstar=!0,xe(x);continue}let O=We();if(e.noextglob!==!0&&/^\([^?]/.test(O)){at("star",x);continue}if(D.type==="star"){if(e.noglobstar===!0){xe(x);continue}let W=D.prev,N=W.prev,Re=W.type==="slash"||W.type==="bos",He=N&&(N.type==="star"||N.type==="globstar");if(e.bash===!0&&(!Re||O[0]&&O[0]!=="/")){se({type:"star",value:x,output:""});continue}let Fe=F.braces>0&&(W.type==="comma"||W.type==="brace"),jt=ue.length&&(W.type==="pipe"||W.type==="paren");if(!Re&&W.type!=="paren"&&!Fe&&!jt){se({type:"star",value:x,output:""});continue}for(;O.slice(0,3)==="/**";){let At=r[F.index+4];if(At&&At!=="/")break;O=O.slice(3),xe("/**",3)}if(W.type==="bos"&&Pe()){D.type="globstar",D.value+=x,D.output=J(e),F.output=D.output,F.globstar=!0,xe(x);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&!He&&Pe()){F.output=F.output.slice(0,-(W.output+D.output).length),W.output=`(?:${W.output}`,D.type="globstar",D.output=J(e)+(e.strictSlashes?")":"|$)"),D.value+=x,F.globstar=!0,F.output+=W.output+D.output,xe(x);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&O[0]==="/"){let At=O[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(W.output+D.output).length),W.output=`(?:${W.output}`,D.type="globstar",D.output=`${J(e)}${fe}|${fe}${At})`,D.value+=x,F.output+=W.output+D.output,F.globstar=!0,xe(x+Ye()),se({type:"slash",value:"/",output:""});continue}if(W.type==="bos"&&O[0]==="/"){D.type="globstar",D.value+=x,D.output=`(?:^|${fe}|${J(e)}${fe})`,F.output=D.output,F.globstar=!0,xe(x+Ye()),se({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-D.output.length),D.type="globstar",D.output=J(e),D.value+=x,F.output+=D.output,F.globstar=!0,xe(x);continue}let ve={type:"star",value:x,output:pe};if(e.bash===!0){ve.output=".*?",(D.type==="bos"||D.type==="slash")&&(ve.output=te+ve.output),se(ve);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&e.regex===!0){ve.output=x,se(ve);continue}(F.index===F.start||D.type==="slash"||D.type==="dot")&&(D.type==="dot"?(F.output+=oe,D.output+=oe):e.dot===!0?(F.output+=be,D.output+=be):(F.output+=te,D.output+=te),le()!=="*"&&(F.output+=K,D.output+=K)),se(ve)}for(;F.brackets>0;){if(e.strictBrackets===!0)throw new SyntaxError(pr("closing","]"));F.output=ot.escapeLast(F.output,"["),Qe("brackets")}for(;F.parens>0;){if(e.strictBrackets===!0)throw new SyntaxError(pr("closing",")"));F.output=ot.escapeLast(F.output,"("),Qe("parens")}for(;F.braces>0;){if(e.strictBrackets===!0)throw new SyntaxError(pr("closing","}"));F.output=ot.escapeLast(F.output,"{"),Qe("braces")}if(e.strictSlashes!==!0&&(D.type==="star"||D.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${fe}?`}),F.backtrack===!0){F.output="";for(let O of F.tokens)F.output+=O.output!=null?O.output:O.value,O.suffix&&(F.output+=O.suffix)}return F};K_.fastpaths=(r,t)=>{let e={...t},u=typeof e.maxLength=="number"?Math.min(Bi,e.maxLength):Bi,d=r.length;if(d>u)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${u}`);r=G_[r]||r;let y=ot.isWindows(t),{DOT_LITERAL:v,SLASH_LITERAL:S,ONE_CHAR:A,DOTS_SLASH:I,NO_DOT:R,NO_DOTS:L,NO_DOTS_SLASH:P,STAR:fe,START_ANCHOR:K}=Ii.globChars(y),z=e.dot?L:R,ee=e.dot?P:R,oe=e.capture?"":"?:",be={negated:!1,prefix:""},me=e.bash===!0?".*?":fe;e.capture&&(me=`(${me})`);let Ae=te=>te.noglobstar===!0?me:`(${oe}(?:(?!${K}${te.dot?I:v}).)*?)`,ie=te=>{switch(te){case"*":return`${z}${A}${me}`;case".*":return`${v}${A}${me}`;case"*.*":return`${z}${me}${v}${A}${me}`;case"*/*":return`${z}${me}${S}${A}${ee}${me}`;case"**":return z+Ae(e);case"**/*":return`(?:${z}${Ae(e)}${S})?${ee}${A}${me}`;case"**/*.*":return`(?:${z}${Ae(e)}${S})?${ee}${me}${v}${A}${me}`;case"**/.*":return`(?:${z}${Ae(e)}${S})?${v}${A}${me}`;default:{let $=/^(.*?)\.(\w+)$/.exec(te);if(!$)return;let pe=ie($[1]);return pe?pe+v+$[2]:void 0}}},ke=ot.removePrefix(r,be),J=ie(ke);return J&&e.strictSlashes!==!0&&(J+=`${S}?`),J};V_.exports=K_});var z_=V((bk,Q_)=>{"use strict";var oj=require("path"),uj=$_(),Rs=Y_(),Ts=$r(),lj=Wr(),cj=r=>r&&typeof r=="object"&&!Array.isArray(r),Le=(r,t,e=!1)=>{if(Array.isArray(r)){let R=r.map(P=>Le(P,t,e));return P=>{for(let fe of R){let K=fe(P);if(K)return K}return!1}}let u=cj(r)&&r.tokens&&r.input;if(r===""||typeof r!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=t||{},y=Ts.isWindows(t),v=u?Le.compileRe(r,t):Le.makeRe(r,t,!1,!0),S=v.state;delete v.state;let A=()=>!1;if(d.ignore){let R={...t,ignore:null,onMatch:null,onResult:null};A=Le(d.ignore,R,e)}let I=(R,L=!1)=>{let{isMatch:P,match:fe,output:K}=Le.test(R,v,t,{glob:r,posix:y}),z={glob:r,state:S,regex:v,posix:y,input:R,output:K,match:fe,isMatch:P};return typeof d.onResult=="function"&&d.onResult(z),P===!1?(z.isMatch=!1,L?z:!1):A(R)?(typeof d.onIgnore=="function"&&d.onIgnore(z),z.isMatch=!1,L?z:!1):(typeof d.onMatch=="function"&&d.onMatch(z),L?z:!0)};return e&&(I.state=S),I};Le.test=(r,t,e,{glob:u,posix:d}={})=>{if(typeof r!="string")throw new TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let y=e||{},v=y.format||(d?Ts.toPosixSlashes:null),S=r===u,A=S&&v?v(r):r;return S===!1&&(A=v?v(r):r,S=A===u),(S===!1||y.capture===!0)&&(y.matchBase===!0||y.basename===!0?S=Le.matchBase(r,t,e,d):S=t.exec(A)),{isMatch:Boolean(S),match:S,output:A}};Le.matchBase=(r,t,e,u=Ts.isWindows(e))=>(t instanceof RegExp?t:Le.makeRe(t,e)).test(oj.basename(r));Le.isMatch=(r,t,e)=>Le(t,e)(r);Le.parse=(r,t)=>Array.isArray(r)?r.map(e=>Le.parse(e,t)):Rs(r,{...t,fastpaths:!1});Le.scan=(r,t)=>uj(r,t);Le.compileRe=(r,t,e=!1,u=!1)=>{if(e===!0)return r.output;let d=t||{},y=d.contains?"":"^",v=d.contains?"":"$",S=`${y}(?:${r.output})${v}`;r&&r.negated===!0&&(S=`^(?!${S}).*$`);let A=Le.toRegex(S,t);return u===!0&&(A.state=r),A};Le.makeRe=(r,t={},e=!1,u=!1)=>{if(!r||typeof r!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(r[0]==="."||r[0]==="*")&&(d.output=Rs.fastpaths(r,t)),d.output||(d=Rs(r,t)),Le.compileRe(d,t,e,u)};Le.toRegex=(r,t)=>{try{let e=t||{};return new RegExp(r,e.flags||(e.nocase?"i":""))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}};Le.constants=lj;Q_.exports=Le});var J_=V((jk,X_)=>{"use strict";X_.exports=z_()});var id=V((wk,rd)=>{"use strict";var ed=require("util"),td=P_(),mt=J_(),Ds=$r(),Z_=r=>r===""||r==="./",Ne=(r,t,e)=>{t=[].concat(t),r=[].concat(r);let u=new Set,d=new Set,y=new Set,v=0,S=R=>{y.add(R.output),e&&e.onResult&&e.onResult(R)};for(let R=0;R<t.length;R++){let L=mt(String(t[R]),{...e,onResult:S},!0),P=L.state.negated||L.state.negatedExtglob;P&&v++;for(let fe of r){let K=L(fe,!0);!(P?!K.isMatch:K.isMatch)||(P?u.add(K.output):(u.delete(K.output),d.add(K.output)))}}let I=(v===t.length?[...y]:[...d]).filter(R=>!u.has(R));if(e&&I.length===0){if(e.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(e.nonull===!0||e.nullglob===!0)return e.unescape?t.map(R=>R.replace(/\\/g,"")):t}return I};Ne.match=Ne;Ne.matcher=(r,t)=>mt(r,t);Ne.isMatch=(r,t,e)=>mt(t,e)(r);Ne.any=Ne.isMatch;Ne.not=(r,t,e={})=>{t=[].concat(t).map(String);let u=new Set,d=[],v=Ne(r,t,{...e,onResult:S=>{e.onResult&&e.onResult(S),d.push(S.output)}});for(let S of d)v.includes(S)||u.add(S);return[...u]};Ne.contains=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ed.inspect(r)}"`);if(Array.isArray(t))return t.some(u=>Ne.contains(r,u,e));if(typeof t=="string"){if(Z_(r)||Z_(t))return!1;if(r.includes(t)||r.startsWith("./")&&r.slice(2).includes(t))return!0}return Ne.isMatch(r,t,{...e,contains:!0})};Ne.matchKeys=(r,t,e)=>{if(!Ds.isObject(r))throw new TypeError("Expected the first argument to be an object");let u=Ne(Object.keys(r),t,e),d={};for(let y of u)d[y]=r[y];return d};Ne.some=(r,t,e)=>{let u=[].concat(r);for(let d of[].concat(t)){let y=mt(String(d),e);if(u.some(v=>y(v)))return!0}return!1};Ne.every=(r,t,e)=>{let u=[].concat(r);for(let d of[].concat(t)){let y=mt(String(d),e);if(!u.every(v=>y(v)))return!1}return!0};Ne.all=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ed.inspect(r)}"`);return[].concat(t).every(u=>mt(u,e)(r))};Ne.capture=(r,t,e)=>{let u=Ds.isWindows(e),y=mt.makeRe(String(r),{...e,capture:!0}).exec(u?Ds.toPosixSlashes(t):t);if(y)return y.slice(1).map(v=>v===void 0?"":v)};Ne.makeRe=(...r)=>mt.makeRe(...r);Ne.scan=(...r)=>mt.scan(...r);Ne.parse=(r,t)=>{let e=[];for(let u of[].concat(r||[]))for(let d of td(String(u),t))e.push(mt.parse(d,t));return e};Ne.braces=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(r)?[r]:td(r,t)};Ne.braceExpand=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return Ne.braces(r,{...t,expand:!0})};rd.exports=Ne});var fd=V(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.matchAny=ce.convertPatternsToRe=ce.makeRe=ce.getPatternParts=ce.expandBraceExpansion=ce.expandPatternsWithBraceExpansion=ce.isAffectDepthOfReadingPattern=ce.endsWithSlashGlobStar=ce.hasGlobStar=ce.getBaseDirectory=ce.isPatternRelatedToParentDirectory=ce.getPatternsOutsideCurrentDirectory=ce.getPatternsInsideCurrentDirectory=ce.getPositivePatterns=ce.getNegativePatterns=ce.isPositivePattern=ce.isNegativePattern=ce.convertToNegativePattern=ce.convertToPositivePattern=ce.isDynamicPattern=ce.isStaticPattern=void 0;var fj=require("path"),_j=Yf(),Ps=id(),nd="**",dj="\\",pj=/[*?]|^!/,yj=/\[[^[]*]/,hj=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,mj=/[!*+?@]\([^(]*\)/,vj=/,|\.\./;function ad(r,t={}){return!sd(r,t)}ce.isStaticPattern=ad;function sd(r,t={}){return r===""?!1:!!(t.caseSensitiveMatch===!1||r.includes(dj)||pj.test(r)||yj.test(r)||hj.test(r)||t.extglob!==!1&&mj.test(r)||t.braceExpansion!==!1&&gj(r))}ce.isDynamicPattern=sd;function gj(r){let t=r.indexOf("{");if(t===-1)return!1;let e=r.indexOf("}",t+1);if(e===-1)return!1;let u=r.slice(t,e);return vj.test(u)}function bj(r){return Li(r)?r.slice(1):r}ce.convertToPositivePattern=bj;function jj(r){return"!"+r}ce.convertToNegativePattern=jj;function Li(r){return r.startsWith("!")&&r[1]!=="("}ce.isNegativePattern=Li;function od(r){return!Li(r)}ce.isPositivePattern=od;function wj(r){return r.filter(Li)}ce.getNegativePatterns=wj;function kj(r){return r.filter(od)}ce.getPositivePatterns=kj;function Cj(r){return r.filter(t=>!xs(t))}ce.getPatternsInsideCurrentDirectory=Cj;function Sj(r){return r.filter(xs)}ce.getPatternsOutsideCurrentDirectory=Sj;function xs(r){return r.startsWith("..")||r.startsWith("./..")}ce.isPatternRelatedToParentDirectory=xs;function Ej(r){return _j(r,{flipBackslashes:!1})}ce.getBaseDirectory=Ej;function Aj(r){return r.includes(nd)}ce.hasGlobStar=Aj;function ud(r){return r.endsWith("/"+nd)}ce.endsWithSlashGlobStar=ud;function Rj(r){let t=fj.basename(r);return ud(r)||ad(t)}ce.isAffectDepthOfReadingPattern=Rj;function Tj(r){return r.reduce((t,e)=>t.concat(ld(e)),[])}ce.expandPatternsWithBraceExpansion=Tj;function ld(r){return Ps.braces(r,{expand:!0,nodupes:!0})}ce.expandBraceExpansion=ld;function Dj(r,t){let{parts:e}=Ps.scan(r,Object.assign(Object.assign({},t),{parts:!0}));return e.length===0&&(e=[r]),e[0].startsWith("/")&&(e[0]=e[0].slice(1),e.unshift("")),e}ce.getPatternParts=Dj;function cd(r,t){return Ps.makeRe(r,t)}ce.makeRe=cd;function Pj(r,t){return r.map(e=>cd(e,t))}ce.convertPatternsToRe=Pj;function xj(r,t){return t.some(e=>e.test(r))}ce.matchAny=xj});var yd=V((Ck,pd)=>{"use strict";var Oj=require("stream"),_d=Oj.PassThrough,Fj=Array.prototype.slice;pd.exports=Nj;function Nj(){let r=[],t=Fj.call(arguments),e=!1,u=t[t.length-1];u&&!Array.isArray(u)&&u.pipe==null?t.pop():u={};let d=u.end!==!1,y=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);let v=_d(u);function S(){for(let R=0,L=arguments.length;R<L;R++)r.push(dd(arguments[R],u));return A(),this}function A(){if(e)return;e=!0;let R=r.shift();if(!R){process.nextTick(I);return}Array.isArray(R)||(R=[R]);let L=R.length+1;function P(){--L>0||(e=!1,A())}function fe(K){function z(){K.removeListener("merge2UnpipeEnd",z),K.removeListener("end",z),y&&K.removeListener("error",ee),P()}function ee(oe){v.emit("error",oe)}if(K._readableState.endEmitted)return P();K.on("merge2UnpipeEnd",z),K.on("end",z),y&&K.on("error",ee),K.pipe(v,{end:!1}),K.resume()}for(let K=0;K<R.length;K++)fe(R[K]);P()}function I(){e=!1,v.emit("queueDrain"),d&&v.end()}return v.setMaxListeners(0),v.add=S,v.on("unpipe",function(R){R.emit("merge2UnpipeEnd")}),t.length&&S.apply(null,t),v}function dd(r,t){if(Array.isArray(r))for(let e=0,u=r.length;e<u;e++)r[e]=dd(r[e],t);else{if(!r._readableState&&r.pipe&&(r=r.pipe(_d(t))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}});var md=V(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.merge=void 0;var Mj=yd();function Ij(r){let t=Mj(r);return r.forEach(e=>{e.once("error",u=>t.emit("error",u))}),t.once("close",()=>hd(r)),t.once("end",()=>hd(r)),t}Ui.merge=Ij;function hd(r){r.forEach(t=>t.emit("close"))}});var vd=V(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.isEmpty=yr.isString=void 0;function Bj(r){return typeof r=="string"}yr.isString=Bj;function Lj(r){return r===""}yr.isEmpty=Lj});var St=V(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.string=ze.stream=ze.pattern=ze.path=ze.fs=ze.errno=ze.array=void 0;var Uj=Bf();ze.array=Uj;var Hj=Lf();ze.errno=Hj;var qj=Uf();ze.fs=qj;var Wj=Hf();ze.path=Wj;var $j=fd();ze.pattern=$j;var Gj=md();ze.stream=Gj;var Kj=vd();ze.string=Kj});var jd=V(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.convertPatternGroupToTask=Xe.convertPatternGroupsToTasks=Xe.groupPatternsByBaseDirectory=Xe.getNegativePatternsAsPositive=Xe.getPositivePatterns=Xe.convertPatternsToTasks=Xe.generate=void 0;var Et=St();function Vj(r,t){let e=gd(r),u=bd(r,t.ignore),d=e.filter(A=>Et.pattern.isStaticPattern(A,t)),y=e.filter(A=>Et.pattern.isDynamicPattern(A,t)),v=Os(d,u,!1),S=Os(y,u,!0);return v.concat(S)}Xe.generate=Vj;function Os(r,t,e){let u=[],d=Et.pattern.getPatternsOutsideCurrentDirectory(r),y=Et.pattern.getPatternsInsideCurrentDirectory(r),v=Fs(d),S=Fs(y);return u.push(...Ns(v,t,e)),"."in S?u.push(Ms(".",y,t,e)):u.push(...Ns(S,t,e)),u}Xe.convertPatternsToTasks=Os;function gd(r){return Et.pattern.getPositivePatterns(r)}Xe.getPositivePatterns=gd;function bd(r,t){return Et.pattern.getNegativePatterns(r).concat(t).map(Et.pattern.convertToPositivePattern)}Xe.getNegativePatternsAsPositive=bd;function Fs(r){let t={};return r.reduce((e,u)=>{let d=Et.pattern.getBaseDirectory(u);return d in e?e[d].push(u):e[d]=[u],e},t)}Xe.groupPatternsByBaseDirectory=Fs;function Ns(r,t,e){return Object.keys(r).map(u=>Ms(u,r[u],t,e))}Xe.convertPatternGroupsToTasks=Ns;function Ms(r,t,e,u){return{dynamic:u,positive:t,negative:e,base:r,patterns:[].concat(t,e.map(Et.pattern.convertToNegativePattern))}}Xe.convertPatternGroupToTask=Ms});var kd=V(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.removeDuplicateSlashes=hr.transform=void 0;var Yj=/(?!^)\/{2,}/g;function Qj(r){return r.map(t=>wd(t))}hr.transform=Qj;function wd(r){return r.replace(Yj,"/")}hr.removeDuplicateSlashes=wd});var Sd=V(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.read=void 0;function zj(r,t,e){t.fs.lstat(r,(u,d)=>{if(u!==null){Cd(e,u);return}if(!d.isSymbolicLink()||!t.followSymbolicLink){Is(e,d);return}t.fs.stat(r,(y,v)=>{if(y!==null){if(t.throwErrorOnBrokenSymbolicLink){Cd(e,y);return}Is(e,d);return}t.markSymbolicLink&&(v.isSymbolicLink=()=>!0),Is(e,v)})})}Hi.read=zj;function Cd(r,t){r(t)}function Is(r,t){r(null,t)}});var Ed=V(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.read=void 0;function Xj(r,t){let e=t.fs.lstatSync(r);if(!e.isSymbolicLink()||!t.followSymbolicLink)return e;try{let u=t.fs.statSync(r);return t.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!t.throwErrorOnBrokenSymbolicLink)return e;throw u}}qi.read=Xj});var Ad=V(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.createFileSystemAdapter=Pt.FILE_SYSTEM_ADAPTER=void 0;var Wi=require("fs");Pt.FILE_SYSTEM_ADAPTER={lstat:Wi.lstat,stat:Wi.stat,lstatSync:Wi.lstatSync,statSync:Wi.statSync};function Jj(r){return r===void 0?Pt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Pt.FILE_SYSTEM_ADAPTER),r)}Pt.createFileSystemAdapter=Jj});var Rd=V(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var Zj=Ad(),Bs=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Zj.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,e){return t??e}};Ls.default=Bs});var Yt=V(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.statSync=xt.stat=xt.Settings=void 0;var Td=Sd(),ew=Ed(),Us=Rd();xt.Settings=Us.default;function tw(r,t,e){if(typeof t=="function"){Td.read(r,Hs(),t);return}Td.read(r,Hs(t),e)}xt.stat=tw;function rw(r,t){let e=Hs(t);return ew.read(r,e)}xt.statSync=rw;function Hs(r={}){return r instanceof Us.default?r:new Us.default(r)}});var xd=V((Nk,Pd)=>{var Dd;Pd.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):r=>(Dd||(Dd=Promise.resolve())).then(r).catch(t=>setTimeout(()=>{throw t},0))});var Fd=V((Mk,Od)=>{Od.exports=nw;var iw=xd();function nw(r,t){let e,u,d,y=!0;Array.isArray(r)?(e=[],u=r.length):(d=Object.keys(r),e={},u=d.length);function v(A){function I(){t&&t(A,e),t=null}y?iw(I):I()}function S(A,I,R){e[A]=R,(--u===0||I)&&v(I)}u?d?d.forEach(function(A){r[A](function(I,R){S(A,I,R)})}):r.forEach(function(A,I){A(function(R,L){S(I,R,L)})}):v(null),y=!1}});var qs=V(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var $i=process.versions.node.split(".");if($i[0]===void 0||$i[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Nd=Number.parseInt($i[0],10),aw=Number.parseInt($i[1],10),Md=10,sw=10,ow=Nd>Md,uw=Nd===Md&&aw>=sw;Gi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=ow||uw});var Id=V(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.createDirentFromStats=void 0;var Ws=class{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}};function lw(r,t){return new Ws(r,t)}Ki.createDirentFromStats=lw});var $s=V(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.fs=void 0;var cw=Id();Vi.fs=cw});var Gs=V(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.joinPathSegments=void 0;function fw(r,t,e){return r.endsWith(e)?r+t:r+e+t}Yi.joinPathSegments=fw});var Wd=V(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.readdir=Ot.readdirWithFileTypes=Ot.read=void 0;var _w=Yt(),Bd=Fd(),dw=qs(),Ld=$s(),Ud=Gs();function pw(r,t,e){if(!t.stats&&dw.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Hd(r,t,e);return}qd(r,t,e)}Ot.read=pw;function Hd(r,t,e){t.fs.readdir(r,{withFileTypes:!0},(u,d)=>{if(u!==null){Qi(e,u);return}let y=d.map(S=>({dirent:S,name:S.name,path:Ud.joinPathSegments(r,S.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ks(e,y);return}let v=y.map(S=>yw(S,t));Bd(v,(S,A)=>{if(S!==null){Qi(e,S);return}Ks(e,A)})})}Ot.readdirWithFileTypes=Hd;function yw(r,t){return e=>{if(!r.dirent.isSymbolicLink()){e(null,r);return}t.fs.stat(r.path,(u,d)=>{if(u!==null){if(t.throwErrorOnBrokenSymbolicLink){e(u);return}e(null,r);return}r.dirent=Ld.fs.createDirentFromStats(r.name,d),e(null,r)})}}function qd(r,t,e){t.fs.readdir(r,(u,d)=>{if(u!==null){Qi(e,u);return}let y=d.map(v=>{let S=Ud.joinPathSegments(r,v,t.pathSegmentSeparator);return A=>{_w.stat(S,t.fsStatSettings,(I,R)=>{if(I!==null){A(I);return}let L={name:v,path:S,dirent:Ld.fs.createDirentFromStats(v,R)};t.stats&&(L.stats=R),A(null,L)})}});Bd(y,(v,S)=>{if(v!==null){Qi(e,v);return}Ks(e,S)})})}Ot.readdir=qd;function Qi(r,t){r(t)}function Ks(r,t){r(null,t)}});var Yd=V(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var hw=Yt(),mw=qs(),$d=$s(),Gd=Gs();function vw(r,t){return!t.stats&&mw.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Kd(r,t):Vd(r,t)}Ft.read=vw;function Kd(r,t){return t.fs.readdirSync(r,{withFileTypes:!0}).map(u=>{let d={dirent:u,name:u.name,path:Gd.joinPathSegments(r,u.name,t.pathSegmentSeparator)};if(d.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let y=t.fs.statSync(d.path);d.dirent=$d.fs.createDirentFromStats(d.name,y)}catch(y){if(t.throwErrorOnBrokenSymbolicLink)throw y}return d})}Ft.readdirWithFileTypes=Kd;function Vd(r,t){return t.fs.readdirSync(r).map(u=>{let d=Gd.joinPathSegments(r,u,t.pathSegmentSeparator),y=hw.statSync(d,t.fsStatSettings),v={name:u,path:d,dirent:$d.fs.createDirentFromStats(u,y)};return t.stats&&(v.stats=y),v})}Ft.readdir=Vd});var Qd=V(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.createFileSystemAdapter=Nt.FILE_SYSTEM_ADAPTER=void 0;var mr=require("fs");Nt.FILE_SYSTEM_ADAPTER={lstat:mr.lstat,stat:mr.stat,lstatSync:mr.lstatSync,statSync:mr.statSync,readdir:mr.readdir,readdirSync:mr.readdirSync};function gw(r){return r===void 0?Nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Nt.FILE_SYSTEM_ADAPTER),r)}Nt.createFileSystemAdapter=gw});var zd=V(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});var bw=require("path"),jw=Yt(),ww=Qd(),Vs=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=ww.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,bw.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new jw.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};Ys.default=Vs});var zi=V(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.Settings=Mt.scandirSync=Mt.scandir=void 0;var Xd=Wd(),kw=Yd(),Qs=zd();Mt.Settings=Qs.default;function Cw(r,t,e){if(typeof t=="function"){Xd.read(r,zs(),t);return}Xd.read(r,zs(t),e)}Mt.scandir=Cw;function Sw(r,t){let e=zs(t);return kw.read(r,e)}Mt.scandirSync=Sw;function zs(r={}){return r instanceof Qs.default?r:new Qs.default(r)}});var Zd=V((Kk,Jd)=>{"use strict";function Ew(r){var t=new r,e=t;function u(){var y=t;return y.next?t=y.next:(t=new r,e=t),y.next=null,y}function d(y){e.next=y,e=y}return{get:u,release:d}}Jd.exports=Ew});var tp=V((Vk,Xs)=>{"use strict";var Aw=Zd();function ep(r,t,e){if(typeof r=="function"&&(e=t,t=r,r=null),e<1)throw new Error("fastqueue concurrency must be greater than 1");var u=Aw(Rw),d=null,y=null,v=0,S=null,A={push:z,drain:ct,saturated:ct,pause:R,paused:!1,concurrency:e,running:I,resume:fe,idle:K,length:L,getQueue:P,unshift:ee,empty:ct,kill:be,killAndDrain:me,error:Ae};return A;function I(){return v}function R(){A.paused=!0}function L(){for(var ie=d,ke=0;ie;)ie=ie.next,ke++;return ke}function P(){for(var ie=d,ke=[];ie;)ke.push(ie.value),ie=ie.next;return ke}function fe(){if(!!A.paused){A.paused=!1;for(var ie=0;ie<A.concurrency;ie++)v++,oe()}}function K(){return v===0&&A.length()===0}function z(ie,ke){var J=u.get();J.context=r,J.release=oe,J.value=ie,J.callback=ke||ct,J.errorHandler=S,v===A.concurrency||A.paused?y?(y.next=J,y=J):(d=J,y=J,A.saturated()):(v++,t.call(r,J.value,J.worked))}function ee(ie,ke){var J=u.get();J.context=r,J.release=oe,J.value=ie,J.callback=ke||ct,v===A.concurrency||A.paused?d?(J.next=d,d=J):(d=J,y=J,A.saturated()):(v++,t.call(r,J.value,J.worked))}function oe(ie){ie&&u.release(ie);var ke=d;ke?A.paused?v--:(y===d&&(y=null),d=ke.next,ke.next=null,t.call(r,ke.value,ke.worked),y===null&&A.empty()):--v===0&&A.drain()}function be(){d=null,y=null,A.drain=ct}function me(){d=null,y=null,A.drain(),A.drain=ct}function Ae(ie){S=ie}}function ct(){}function Rw(){this.value=null,this.callback=ct,this.next=null,this.release=ct,this.context=null,this.errorHandler=null;var r=this;this.worked=function(e,u){var d=r.callback,y=r.errorHandler,v=r.value;r.value=null,r.callback=ct,r.errorHandler&&y(e,v),d.call(r.context,e,u),r.release(r)}}function Tw(r,t,e){typeof r=="function"&&(e=t,t=r,r=null);function u(R,L){t.call(this,R).then(function(P){L(null,P)},L)}var d=ep(r,u,e),y=d.push,v=d.unshift;return d.push=S,d.unshift=A,d.drained=I,d;function S(R){var L=new Promise(function(P,fe){y(R,function(K,z){if(K){fe(K);return}P(z)})});return L.catch(ct),L}function A(R){var L=new Promise(function(P,fe){v(R,function(K,z){if(K){fe(K);return}P(z)})});return L.catch(ct),L}function I(){var R=d.drain,L=new Promise(function(P){d.drain=function(){R(),P()}});return L}}Xs.exports=ep;Xs.exports.promise=Tw});var Xi=V(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.joinPathSegments=vt.replacePathSegmentSeparator=vt.isAppliedFilter=vt.isFatalError=void 0;function Dw(r,t){return r.errorFilter===null?!0:!r.errorFilter(t)}vt.isFatalError=Dw;function Pw(r,t){return r===null||r(t)}vt.isAppliedFilter=Pw;function xw(r,t){return r.split(/[/\\]/).join(t)}vt.replacePathSegmentSeparator=xw;function Ow(r,t,e){return r===""?t:r.endsWith(e)?r+t:r+e+t}vt.joinPathSegments=Ow});var eo=V(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var Fw=Xi(),Js=class{constructor(t,e){this._root=t,this._settings=e,this._root=Fw.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}};Zs.default=Js});var io=V(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});var Nw=require("events"),Mw=zi(),Iw=tp(),Ji=Xi(),Bw=eo(),to=class extends Bw.default{constructor(t,e){super(t,e),this._settings=e,this._scandir=Mw.scandir,this._emitter=new Nw.EventEmitter,this._queue=Iw(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){let u={directory:t,base:e};this._queue.push(u,d=>{d!==null&&this._handleError(d)})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(u,d)=>{if(u!==null){e(u,void 0);return}for(let y of d)this._handleEntry(y,t.base);e(null,void 0)})}_handleError(t){this._isDestroyed||!Ji.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError)return;let u=t.path;e!==void 0&&(t.path=Ji.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Ji.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Ji.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(u,e===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ro.default=to});var rp=V(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var Lw=io(),no=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new Lw.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(e=>{Uw(t,e)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{Hw(t,this._storage)}),this._reader.read()}};ao.default=no;function Uw(r,t){r(t)}function Hw(r,t){r(null,t)}});var ip=V(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});var qw=require("stream"),Ww=io(),so=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new Ww.default(this._root,this._settings),this._stream=new qw.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};oo.default=so});var np=V(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var $w=zi(),Zi=Xi(),Gw=eo(),uo=class extends Gw.default{constructor(){super(...arguments),this._scandir=$w.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,e){try{let u=this._scandir(t,this._settings.fsScandirSettings);for(let d of u)this._handleEntry(d,e)}catch(u){this._handleError(u)}}_handleError(t){if(!!Zi.isFatalError(this._settings,t))throw t}_handleEntry(t,e){let u=t.path;e!==void 0&&(t.path=Zi.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Zi.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Zi.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(u,e===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};lo.default=uo});var ap=V(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});var Kw=np(),co=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new Kw.default(this._root,this._settings)}read(){return this._reader.read()}};fo.default=co});var sp=V(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});var Vw=require("path"),Yw=zi(),_o=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Vw.sep),this.fsScandirSettings=new Yw.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};po.default=_o});var ho=V(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.Settings=gt.walkStream=gt.walkSync=gt.walk=void 0;var op=rp(),Qw=ip(),zw=ap(),yo=sp();gt.Settings=yo.default;function Xw(r,t,e){if(typeof t=="function"){new op.default(r,en()).read(t);return}new op.default(r,en(t)).read(e)}gt.walk=Xw;function Jw(r,t){let e=en(t);return new zw.default(r,e).read()}gt.walkSync=Jw;function Zw(r,t){let e=en(t);return new Qw.default(r,e).read()}gt.walkStream=Zw;function en(r={}){return r instanceof yo.default?r:new yo.default(r)}});var go=V(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});var e0=require("path"),t0=Yt(),up=St(),mo=class{constructor(t){this._settings=t,this._fsStatSettings=new t0.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return e0.resolve(this._settings.cwd,t)}_makeEntry(t,e){let u={name:e,path:e,dirent:up.fs.createDirentFromStats(e,t)};return this._settings.stats&&(u.stats=t),u}_isFatalError(t){return!up.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};vo.default=mo});var wo=V(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});var r0=require("stream"),i0=Yt(),n0=ho(),a0=go(),bo=class extends a0.default{constructor(){super(...arguments),this._walkStream=n0.walkStream,this._stat=i0.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){let u=t.map(this._getFullEntryPath,this),d=new r0.PassThrough({objectMode:!0});d._write=(y,v,S)=>this._getEntry(u[y],t[y],e).then(A=>{A!==null&&e.entryFilter(A)&&d.push(A),y===u.length-1&&d.end(),S()}).catch(S);for(let y=0;y<u.length;y++)d.write(y);return d}_getEntry(t,e,u){return this._getStat(t).then(d=>this._makeEntry(d,e)).catch(d=>{if(u.errorFilter(d))return null;throw d})}_getStat(t){return new Promise((e,u)=>{this._stat(t,this._fsStatSettings,(d,y)=>d===null?e(y):u(d))})}};jo.default=bo});var lp=V(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});var vr=St(),ko=class{constructor(t,e,u){this._patterns=t,this._settings=e,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){let t=vr.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let e of t){let u=this._getPatternSegments(e),d=this._splitSegmentsIntoSections(u);this._storage.push({complete:d.length<=1,pattern:e,segments:u,sections:d})}}_getPatternSegments(t){return vr.pattern.getPatternParts(t,this._micromatchOptions).map(u=>vr.pattern.isDynamicPattern(u,this._settings)?{dynamic:!0,pattern:u,patternRe:vr.pattern.makeRe(u,this._micromatchOptions)}:{dynamic:!1,pattern:u})}_splitSegmentsIntoSections(t){return vr.array.splitWhen(t,e=>e.dynamic&&vr.pattern.hasGlobStar(e.pattern))}};Co.default=ko});var cp=V(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});var s0=lp(),So=class extends s0.default{match(t){let e=t.split("/"),u=e.length,d=this._storage.filter(y=>!y.complete||y.segments.length>u);for(let y of d){let v=y.sections[0];if(!y.complete&&u>v.length||e.every((A,I)=>{let R=y.segments[I];return!!(R.dynamic&&R.patternRe.test(A)||!R.dynamic&&R.pattern===A)}))return!0}return!1}};Eo.default=So});var fp=V(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});var tn=St(),o0=cp(),Ao=class{constructor(t,e){this._settings=t,this._micromatchOptions=e}getFilter(t,e,u){let d=this._getMatcher(e),y=this._getNegativePatternsRe(u);return v=>this._filter(t,v,d,y)}_getMatcher(t){return new o0.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let e=t.filter(tn.pattern.isAffectDepthOfReadingPattern);return tn.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,u,d){if(this._isSkippedByDeep(t,e.path)||this._isSkippedSymbolicLink(e))return!1;let y=tn.path.removeLeadingDotSegment(e.path);return this._isSkippedByPositivePatterns(y,u)?!1:this._isSkippedByNegativePatterns(y,d)}_isSkippedByDeep(t,e){return this._settings.deep===1/0?!1:this._getEntryLevel(t,e)>=this._settings.deep}_getEntryLevel(t,e){let u=e.split("/").length;if(t==="")return u;let d=t.split("/").length;return u-d}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!tn.pattern.matchAny(t,e)}};Ro.default=Ao});var _p=V(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});var Qt=St(),To=class{constructor(t,e){this._settings=t,this._micromatchOptions=e,this.index=new Map}getFilter(t,e){let u=Qt.pattern.convertPatternsToRe(t,this._micromatchOptions),d=Qt.pattern.convertPatternsToRe(e,this._micromatchOptions);return y=>this._filter(y,u,d)}_filter(t,e,u){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,u))return!1;let d=this._settings.baseNameMatch?t.name:t.path,y=this._isMatchToPatterns(d,e)&&!this._isMatchToPatterns(t.path,u);return this._settings.unique&&y&&this._createIndexRecord(t),y}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute)return!1;let u=Qt.path.makeAbsolute(this._settings.cwd,t);return Qt.pattern.matchAny(u,e)}_isMatchToPatterns(t,e){let u=Qt.path.removeLeadingDotSegment(t);return Qt.pattern.matchAny(u,e)||Qt.pattern.matchAny(u+"/",e)}};Do.default=To});var dp=V(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});var u0=St(),Po=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return u0.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};xo.default=Po});var yp=V(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});var pp=St(),Oo=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;return this._settings.absolute&&(e=pp.path.makeAbsolute(this._settings.cwd,e),e=pp.path.unixify(e)),this._settings.markDirectories&&t.dirent.isDirectory()&&(e+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:e}):e}};Fo.default=Oo});var rn=V(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});var l0=require("path"),c0=fp(),f0=_p(),_0=dp(),d0=yp(),No=class{constructor(t){this._settings=t,this.errorFilter=new _0.default(this._settings),this.entryFilter=new f0.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new c0.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new d0.default(this._settings)}_getRootDirectory(t){return l0.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let e=t.base==="."?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Mo.default=No});var hp=V(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});var p0=wo(),y0=rn(),Io=class extends y0.default{constructor(){super(...arguments),this._reader=new p0.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t),d=[];return new Promise((y,v)=>{let S=this.api(e,t,u);S.once("error",v),S.on("data",A=>d.push(u.transform(A))),S.once("end",()=>y(d))})}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};Bo.default=Io});var mp=V(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});var h0=require("stream"),m0=wo(),v0=rn(),Lo=class extends v0.default{constructor(){super(...arguments),this._reader=new m0.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t),d=this.api(e,t,u),y=new h0.Readable({objectMode:!0,read:()=>{}});return d.once("error",v=>y.emit("error",v)).on("data",v=>y.emit("data",u.transform(v))).once("end",()=>y.emit("end")),y.once("close",()=>d.destroy()),y}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};Uo.default=Lo});var vp=V(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});var g0=Yt(),b0=ho(),j0=go(),Ho=class extends j0.default{constructor(){super(...arguments),this._walkSync=b0.walkSync,this._statSync=g0.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){let u=[];for(let d of t){let y=this._getFullEntryPath(d),v=this._getEntry(y,d,e);v===null||!e.entryFilter(v)||u.push(v)}return u}_getEntry(t,e,u){try{let d=this._getStat(t);return this._makeEntry(d,e)}catch(d){if(u.errorFilter(d))return null;throw d}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};qo.default=Ho});var gp=V($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});var w0=vp(),k0=rn(),Wo=class extends k0.default{constructor(){super(...arguments),this._reader=new w0.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t);return this.api(e,t,u).map(u.transform)}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};$o.default=Wo});var bp=V(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gr=require("fs"),C0=require("os"),S0=Math.max(C0.cpus().length,1);br.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gr.lstat,lstatSync:gr.lstatSync,stat:gr.stat,statSync:gr.statSync,readdir:gr.readdir,readdirSync:gr.readdirSync};var Go=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,S0),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)}_getValue(t,e){return t===void 0?e:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},br.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};br.default=Go});var Cp=V((mC,kp)=>{"use strict";var jp=jd(),wp=kd(),E0=hp(),A0=mp(),R0=gp(),Ko=bp(),zt=St();async function Vo(r,t){jr(r);let e=Yo(r,E0.default,t),u=await Promise.all(e);return zt.array.flatten(u)}(function(r){function t(v,S){jr(v);let A=Yo(v,R0.default,S);return zt.array.flatten(A)}r.sync=t;function e(v,S){jr(v);let A=Yo(v,A0.default,S);return zt.stream.merge(A)}r.stream=e;function u(v,S){jr(v);let A=wp.transform([].concat(v)),I=new Ko.default(S);return jp.generate(A,I)}r.generateTasks=u;function d(v,S){jr(v);let A=new Ko.default(S);return zt.pattern.isDynamicPattern(v,A)}r.isDynamicPattern=d;function y(v){return jr(v),zt.path.escape(v)}r.escapePath=y})(Vo||(Vo={}));function Yo(r,t,e){let u=wp.transform([].concat(r)),d=new Ko.default(e),y=jp.generate(u,d),v=new t(d);return y.map(v.read,v)}function jr(r){if(![].concat(r).every(u=>zt.string.isString(u)&&!zt.string.isEmpty(u)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}kp.exports=Vo});var x0={};fg(x0,{ConsoleLogger:()=>ns,DEFAULT_RUNTIME:()=>rs,DuckDBBindingsBase:()=>Hr,DuckDBConnection:()=>Br,DuckDBDataProtocol:()=>ts,DuckDBFeature:()=>Tf,FileFlags:()=>Rf,FileStatistics:()=>Ur,JSONTableShape:()=>Df,LogEvent:()=>Of,LogLevel:()=>Pf,LogOrigin:()=>Ff,LogTopic:()=>xf,NODE_RUNTIME:()=>qe,PACKAGE_NAME:()=>as,PACKAGE_VERSION:()=>ss,PACKAGE_VERSION_MAJOR:()=>kg,PACKAGE_VERSION_MINOR:()=>Cg,PACKAGE_VERSION_PATCH:()=>Sg,PreparedStatement:()=>Si,ResultStreamIterator:()=>Lr,StatusCode:()=>kf,VoidLogger:()=>is,callSRet:()=>we,copyBuffer:()=>Tt,createDuckDB:()=>P0,decodeText:()=>Rt,dropResponseBuffers:()=>De,failWith:()=>Ee,getJsDelivrBundles:()=>Rg,getLogEventLabel:()=>hg,getLogLevelLabel:()=>yg,getLogOriginLabel:()=>vg,getLogTopicLabel:()=>mg,getPlatformFeatures:()=>Di,isFirefox:()=>Eg,isNode:()=>ds,isSafari:()=>Ag,readString:()=>_e,selectBundle:()=>Tg});module.exports=_g(x0);var pt=cr(require("apache-arrow")),Br=class{constructor(t,e){this._bindings=t,this._conn=e}close(){this._bindings.disconnect(this._conn)}useUnsafe(t){return t(this._bindings,this._conn)}query(t){let e=this._bindings.runQuery(this._conn,t),u=pt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),new pt.Table(u)}async send(t){let e=this._bindings.startPendingQuery(this._conn,t);for(;e==null;)e=await new Promise((y,v)=>{try{y(this._bindings.pollPendingQuery(this._conn))}catch(S){v(S)}});let u=new Lr(this._bindings,this._conn,e),d=pt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(t){return this._bindings.getTableNames(this._conn,t)}prepare(t){let e=this._bindings.createPrepared(this._conn,t);return new Si(this._bindings,this._conn,e)}createScalarFunction(t,e,u){this._bindings.createScalarFunction(this._conn,t,e,u)}insertArrowTable(t,e){let u=new pt.RecordBatchStreamWriter;u.writeAll(t);let d=u.toUint8Array(!0);this.insertArrowFromIPCStream(d,e)}insertArrowFromIPCStream(t,e){this._bindings.insertArrowFromIPCStream(this._conn,t,e)}insertCSVFromPath(t,e){this._bindings.insertCSVFromPath(this._conn,t,e)}insertJSONFromPath(t,e){this._bindings.insertJSONFromPath(this._conn,t,e)}},Lr=class{constructor(t,e,u){this.bindings=t;this.conn=e;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 t=this.bindings.fetchQueryResults(this.conn);return this._depleted=t.length==0,{done:this._depleted,value:t}}[Symbol.iterator](){return this}},Si=class{constructor(t,e,u){this.bindings=t,this.connectionId=e,this.statementId=u}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),u=pt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),new pt.Table(u)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),u=new Lr(this.bindings,this.connectionId,e),d=pt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}};var kf=(t=>(t[t.SUCCESS=0]="SUCCESS",t))(kf||{});var Ef=new TextEncoder,Cf=new TextDecoder("utf-8");function Ja(r,t,e){let u=Ef.encode(e),d=r._malloc(u.byteLength),y=r.HEAPU8.subarray(d,d+u.byteLength);y.set(u),r.HEAPF64[(t>>3)+0]=1,r.HEAPF64[(t>>3)+1]=d,r.HEAPF64[(t>>3)+2]=y.byteLength}function es(r){switch(r){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 Za(r,t,e,u){let d=r.HEAPU8.subarray(t,t+u*es(e));switch(e){case"UINT8":return new Uint8Array(d.buffer,d.byteOffset,u);case"INT8":return new Int8Array(d.buffer,d.byteOffset,u);case"INT32":return new Int32Array(d.buffer,d.byteOffset,u);case"FLOAT":return new Float32Array(d.buffer,d.byteOffset,u);case"DOUBLE":return new Float64Array(d.buffer,d.byteOffset,u);case"VARCHAR":return new Float64Array(d.buffer,d.byteOffset,u);default:return new Array(0)}}function Sf(r,t,e){let u=r.HEAPU8.subarray(t,t+e);return new Uint8Array(u.buffer,u.byteOffset,e)}function Ei(r,t,e){let u=r.HEAPU8.subarray(t,t+e*8);return new Float64Array(u.buffer,u.byteOffset,e)}function Ai(r,t,e,u,d,y,v,S){try{let A=r._udfFunctions.get(u);if(!A){Ja(t,e,"Unknown UDF with id: "+u);return}let I=Cf.decode(t.HEAPU8.subarray(d,d+y)),R=JSON.parse(I),L=Ei(t,v,S/8),P=$=>{var F;let pe=null;switch($.validityBuffer!==void 0&&(pe=Sf(t,L[$.validityBuffer],R.rows)),$.physicalType){case"VARCHAR":{if($.dataBuffer===null||$.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if($.lengthBuffer===null||$.lengthBuffer===void 0)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let ue=Za(t,L[$.dataBuffer],$.physicalType,R.rows),ae=[],Ce=Ei(t,L[$.lengthBuffer],R.rows);for(let D=0;D<R.rows;++D){if(pe!=null&&!pe[D]){ae.push(null);continue}let x=t.HEAPU8.subarray(ue[D],ue[D]+Ce[D]),Pe=Cf.decode(x);ae.push(Pe)}return D=>ae[D]}case"STRUCT":{let ue={},ae=[];for(let Ce=0;Ce<(((F=$.children)==null?void 0:F.length)||0);++Ce){let D=$.children[Ce],x=P(D);ae.push(Pe=>{ue[D.name]=x(Pe)})}return pe!=null?Ce=>{if(!pe[Ce])return null;for(let D of ae)D(Ce);return ue}:Ce=>{for(let D of ae)D(Ce);return ue}}default:{if($.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for argument of type: "+$.physicalType);let ue=Za(t,L[$.dataBuffer],$.physicalType,R.rows);return pe!=null?ae=>pe[ae]?ue[ae]:null:ae=>ue[ae]}}},fe=[];for(let $=0;$<R.args.length;++$)fe.push(P(R.args[$]));let K=R.rows*es(R.ret.physicalType),z=t._malloc(K),ee=Za(t,z,R.ret.physicalType,R.rows),oe=t._malloc(R.rows),be=Sf(t,oe,R.rows);if(ee.length==0||be.length==0){Ja(t,e,"Can't create physical arrays for result");return}let me=ee;R.ret.physicalType=="VARCHAR"&&(me=new Array(R.rows));let Ae=[];for(let $=0;$<R.args.length;++$)Ae.push(null);for(let $=0;$<R.rows;++$){for(let F=0;F<R.args.length;++F)Ae[F]=fe[F]($);let pe=A.func(...Ae);me[$]=pe,be[$]=pe==null?0:1}let ie=0;switch(R.ret.physicalType){case"VARCHAR":{let $=new Array(0);ie=t._malloc(R.rows*es("DOUBLE"));let pe=Ei(t,ie,R.rows),F=0;for(let D=0;D<R.rows;++D){let x=Ef.encode(me[D]||"");$.push(x),pe[D]=x.length,F+=x.length}let ue=t._malloc(F),ae=t.HEAPU8.subarray(ue,ue+F),Ce=0;for(let D=0;D<R.rows;++D){ee[D]=Ce;let x=$[D];ae.subarray(Ce,Ce+x.length).set(x),Ce+=x.length}}}let ke=3*8,J=t._malloc(ke),te=Ei(t,J,3);te[0]=z,te[1]=oe,te[2]=ie,t.HEAPF64[(e>>3)+0]=0,t.HEAPF64[(e>>3)+1]=J,t.HEAPF64[(e>>3)+2]=0}catch(A){Ja(t,e,A.toString())}}function dg(){let r=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),r.decode(t))}var Rt=dg();function Ee(r,t){r.ccall("duckdb_web_fail_with",null,["string"],[t])}function Tt(r,t,e){let u=r.HEAPU8.subarray(t,t+e),d=new Uint8Array(new ArrayBuffer(u.byteLength));return d.set(u),d}function _e(r,t,e){return Rt(r.HEAPU8.subarray(t,t+e))}var ts=(d=>(d[d.BUFFER=0]="BUFFER",d[d.NATIVE=1]="NATIVE",d[d.HTTP=3]="HTTP",d[d.S3=4]="S3",d))(ts||{}),Rf=(v=>(v[v.FILE_FLAGS_READ=1]="FILE_FLAGS_READ",v[v.FILE_FLAGS_WRITE=2]="FILE_FLAGS_WRITE",v[v.FILE_FLAGS_DIRECT_IO=4]="FILE_FLAGS_DIRECT_IO",v[v.FILE_FLAGS_FILE_CREATE=8]="FILE_FLAGS_FILE_CREATE",v[v.FILE_FLAGS_FILE_CREATE_NEW=16]="FILE_FLAGS_FILE_CREATE_NEW",v[v.FILE_FLAGS_APPEND=32]="FILE_FLAGS_APPEND",v))(Rf||{});function we(r,t,e,u){let d=r.stackSave(),y=r.stackAlloc(3*8);e.unshift("number"),u.unshift(y),r.ccall(t,null,e,u);let v=r.HEAPF64[(y>>3)+0],S=r.HEAPF64[(y>>3)+1],A=r.HEAPF64[(y>>3)+2];return r.stackRestore(d),[v,S,A]}function De(r){r.ccall("duckdb_web_clear_response",null,[],[])}var rs={_udfFunctions:new Map,testPlatformFeature:(r,t)=>!1,openFile:(r,t,e)=>{},syncFile:(r,t)=>{},closeFile:(r,t)=>{},getLastFileModificationTime:(r,t)=>0,truncateFile:(r,t,e)=>{},readFile:(r,t,e,u,d)=>0,writeFile:(r,t,e,u,d)=>0,removeDirectory:(r,t,e)=>{},checkDirectory:(r,t,e)=>!1,createDirectory:(r,t,e)=>{},listDirectoryEntries:(r,t,e)=>!1,glob:(r,t,e)=>{},moveFile:(r,t,e,u,d)=>{},checkFile:(r,t,e)=>!1,removeFile:(r,t,e)=>{},callScalarUDF:(r,t,e,u,d,y,v)=>{Ai(rs,r,t,e,u,d,y,v)}};var Ur=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),u=new Uint8Array(new ArrayBuffer(t.byteLength));u.set(t.subarray(7*8)),this.totalFileReadsCold=e[0],this.totalFileReadsAhead=e[1],this.totalFileReadsCached=e[2],this.totalFileWrites=e[3],this.totalPageAccesses=e[4],this.totalPageLoads=e[5],this.blockSize=e[6],this.blockStats=u}getBlockStats(t,e){return e=e||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},e.file_writes=this.blockStats[t*3+0]&15,e.file_reads_cold=this.blockStats[t*3+0]>>4,e.file_reads_ahead=this.blockStats[t*3+1]&15,e.file_reads_cached=this.blockStats[t*3+1]>>4,e.page_accesses=this.blockStats[t*3+1]&15,e.page_loads=this.blockStats[t*3+1]>>4,e}};var he=cr(require("apache-arrow"));function fr(r){switch(r.typeId){case he.Type.Binary:return{sqlType:"binary"};case he.Type.Bool:return{sqlType:"bool"};case he.Type.Date:return{sqlType:"date"};case he.Type.DateDay:return{sqlType:"date32[d]"};case he.Type.DateMillisecond:return{sqlType:"date64[ms]"};case he.Type.Decimal:{let t=r;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case he.Type.Float:return{sqlType:"float"};case he.Type.Float16:return{sqlType:"float16"};case he.Type.Float32:return{sqlType:"float32"};case he.Type.Float64:return{sqlType:"float64"};case he.Type.Int:return{sqlType:"int32"};case he.Type.Int16:return{sqlType:"int16"};case he.Type.Int32:return{sqlType:"int32"};case he.Type.Int64:return{sqlType:"int64"};case he.Type.Uint16:return{sqlType:"uint16"};case he.Type.Uint32:return{sqlType:"uint32"};case he.Type.Uint64:return{sqlType:"uint64"};case he.Type.Uint8:return{sqlType:"uint8"};case he.Type.IntervalDayTime:return{sqlType:"interval[dt]"};case he.Type.IntervalYearMonth:return{sqlType:"interval[m]"};case he.Type.List:return{sqlType:"list",valueType:fr(r.valueType)};case he.Type.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:r.byteWidth};case he.Type.Null:return{sqlType:"null"};case he.Type.Utf8:return{sqlType:"utf8"};case he.Type.Struct:return{sqlType:"struct",fields:r.children.map(e=>Ri(e.name,e.type))};case he.Type.Map:{let t=r;return{sqlType:"map",keyType:fr(t.keyType),valueType:fr(t.valueType)}}case he.Type.Time:return{sqlType:"time[s]"};case he.Type.TimeMicrosecond:return{sqlType:"time[us]"};case he.Type.TimeMillisecond:return{sqlType:"time[ms]"};case he.Type.TimeNanosecond:return{sqlType:"time[ns]"};case he.Type.TimeSecond:return{sqlType:"time[s]"};case he.Type.Timestamp:return{sqlType:"timestamp",timezone:r.timezone||void 0};case he.Type.TimestampSecond:return{sqlType:"timestamp[s]",timezone:r.timezone||void 0};case he.Type.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:r.timezone||void 0};case he.Type.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:r.timezone||void 0};case he.Type.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:r.timezone||void 0}}throw new Error(`unsupported arrow type: ${r.toString()}`)}function Ri(r,t){let e=fr(t);return e.name=r,e}var pg=new TextEncoder,Tf=(y=>(y[y.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",y[y.WASM_THREADS=2]="WASM_THREADS",y[y.WASM_SIMD=4]="WASM_SIMD",y[y.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",y[y.EMIT_BIGINT=16]="EMIT_BIGINT",y))(Tf||{}),Hr=class{constructor(t,e){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=t,this._runtime=e,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(t=e=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(t),await this._initPromise),this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this.onInstantiationProgress=[t],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter(e=>e!=t),this)}open(t){let[e,u,d]=we(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(e!==0)throw new Error(_e(this.mod,u,d));De(this.mod)}reset(){let[t,e,u]=we(this.mod,"duckdb_web_reset",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));De(this.mod)}getVersion(){let[t,e,u]=we(this.mod,"duckdb_web_get_version",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));let d=_e(this.mod,e,u);return De(this.mod),d}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,u,d]=we(this.mod,"duckdb_web_tokenize",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=_e(this.mod,u,d);return De(this.mod),JSON.parse(y)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new Br(this,t)}disconnect(t){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[t]),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"dropUDFFunctions",connectionId:t})}runQuery(t,e){let[u,d,y]=we(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));let v=Tt(this.mod,d,y);return De(this.mod),v}startPendingQuery(t,e){let[u,d,y]=we(this.mod,"duckdb_web_pending_query_start",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));if(d==0)return null;let v=Tt(this.mod,d,y);return De(this.mod),v}pollPendingQuery(t){let[e,u,d]=we(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));if(u==0)return null;let y=Tt(this.mod,u,d);return De(this.mod),y}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[e,u,d]=we(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=Tt(this.mod,u,d);return De(this.mod),y}getTableNames(t,e){let[u,d,y]=we(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));let v=_e(this.mod,d,y);return De(this.mod),JSON.parse(v)}createScalarFunction(t,e,u,d){let y={functionId:this._nextUDFId,name:e,returnType:fr(u)},v={functionId:y.functionId,connectionId:t,name:e,returnType:u,func:d};this._nextUDFId+=1;let[S,A,I]=we(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(y)]);if(S!==0)throw new Error(_e(this.mod,A,I));if(De(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(v.functionId,v),this.pthread)for(let R of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])R.postMessage({cmd:"registerUDFFunction",udf:v})}createPrepared(t,e){let[u,d,y]=we(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));return De(this.mod),d}closePrepared(t,e){let[u,d,y]=we(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}runPrepared(t,e,u){let[d,y,v]=we(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(_e(this.mod,y,v));let S=Tt(this.mod,y,v);return De(this.mod),S}sendPrepared(t,e,u){let[d,y,v]=we(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(_e(this.mod,y,v));let S=Tt(this.mod,y,v);return De(this.mod),S}insertArrowFromIPCStream(t,e,u){if(e.length==0)return;let d=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(d,d+e.length).set(e);let v=u?JSON.stringify(u):"",[S,A,I]=we(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,d,e.length,v]);if(S!==0)throw new Error(_e(this.mod,A,I))}insertCSVFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let I in u.columns)u.columnsFlat.push(Ri(I,u.columns[I]))}let d={...u};d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,S,A]=we(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(_e(this.mod,S,A))}insertJSONFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let I in u.columns)u.columnsFlat.push(Ri(I,u.columns[I]))}let d={...u};d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,S,A]=we(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(_e(this.mod,S,A))}globFiles(t){let[e,u,d]=we(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=_e(this.mod,u,d);De(this.mod);let v=JSON.parse(y);return v??[]}registerFileURL(t,e){e===void 0&&(e=t);let[u,d,y]=we(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,e,-1]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}registerFileText(t,e){let u=pg.encode(e);this.registerFileBuffer(t,u)}registerFileBuffer(t,e){let u=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(u,u+e.length).set(e);let[y,v,S]=we(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,u,e.length]);if(y!==0)throw new Error(_e(this.mod,v,S));De(this.mod)}registerFileHandle(t,e){let[u,d,y]=we(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,t,-1]);if(u!==0)throw new Error(_e(this.mod,d,y));if(De(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,e),this.pthread){for(let v of this.pthread.runningWorkers)v.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let v of this.pthread.unusedWorkers)v.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,u,d]=we(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));De(this.mod)}dropFiles(){let[t,e,u]=we(this.mod,"duckdb_web_fs_drop_files",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));De(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[u,d,y]=we(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}copyFileToBuffer(t){let[e,u,d]=we(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=this.mod.HEAPU8.subarray(u,u+d),v=new Uint8Array(y.length);return v.set(y),De(this.mod),v}collectFileStatistics(t,e){let[u,d,y]=we(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y))}exportFileStatistics(t){let[e,u,d]=we(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));return new Ur(this.mod.HEAPU8.subarray(u,u+d))}};var Df=(e=>(e.ROW_ARRAY="row-array",e.COLUMN_OBJECT="column-object",e))(Df||{});var Pf=(y=>(y[y.NONE=0]="NONE",y[y.DEBUG=1]="DEBUG",y[y.INFO=2]="INFO",y[y.WARNING=3]="WARNING",y[y.ERROR=4]="ERROR",y))(Pf||{}),xf=(v=>(v[v.NONE=0]="NONE",v[v.CONNECT=1]="CONNECT",v[v.DISCONNECT=2]="DISCONNECT",v[v.OPEN=3]="OPEN",v[v.QUERY=4]="QUERY",v[v.INSTANTIATE=5]="INSTANTIATE",v))(xf||{}),Of=(v=>(v[v.NONE=0]="NONE",v[v.OK=1]="OK",v[v.ERROR=2]="ERROR",v[v.START=3]="START",v[v.RUN=4]="RUN",v[v.CAPTURE=5]="CAPTURE",v))(Of||{}),Ff=(y=>(y[y.NONE=0]="NONE",y[y.WEB_WORKER=1]="WEB_WORKER",y[y.NODE_WORKER=2]="NODE_WORKER",y[y.BINDINGS=3]="BINDINGS",y[y.ASYNC_DUCKDB=4]="ASYNC_DUCKDB",y))(Ff||{}),is=class{log(t){}},ns=class{constructor(t=2){this.level=t}log(t){t.level>=this.level&&console.log(t)}};function yg(r){switch(r){case 0:return"NONE";case 1:return"DEBUG";case 2:return"INFO";case 3:return"WARNING";case 4:return"ERROR";default:return"?"}}function hg(r){switch(r){case 0:return"NONE";case 1:return"OK";case 2:return"ERROR";case 3:return"START";case 4:return"RUN";case 5:return"CAPTURE";default:return"?"}}function mg(r){switch(r){case 1:return"CONNECT";case 2:return"DISCONNECT";case 5:return"INSTANTIATE";case 3:return"OPEN";case 4:return"QUERY";default:return"?"}}function vg(r){switch(r){case 0:return"NONE";case 1:return"WEB WORKER";case 2:return"NODE WORKER";case 3:return"DUCKDB BINDINGS";case 4:return"DUCKDB";default:return"?"}}var Dt=cr(Mf());var Ti={name:"@duckdb/duckdb-wasm",version:"1.16.0",description:"DuckDB powered by WebAssembly",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/duckdb/duckdb-wasm.git"},keywords:["sql","duckdb","relational","database","data","query","wasm","analytics","olap","arrow","parquet","json","csv"],dependencies:{"apache-arrow":"^8.0.0"},devDependencies:{"@types/emscripten":"^1.39.6","@types/jasmine":"^4.0.3","@typescript-eslint/eslint-plugin":"^5.30.5","@typescript-eslint/parser":"^5.30.5",esbuild:"^0.14.49",eslint:"^8.19.0","eslint-plugin-jasmine":"^4.1.3","eslint-plugin-react":"^7.30.1","fast-glob":"^3.2.11",jasmine:"^4.2.1","jasmine-core":"^4.2.0","jasmine-spec-reporter":"^7.0.0","js-sha256":"^0.9.0",karma:"^6.4.0","karma-chrome-launcher":"^3.1.1","karma-coverage":"^2.2.0","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.0.0","karma-sourcemap-loader":"^0.3.8","karma-spec-reporter":"^0.0.34","make-dir":"^3.1.0",nyc:"^15.1.0",prettier:"^2.7.1",puppeteer:"^15.4.0",rimraf:"^3.0.2",s3rver:"^3.7.1",typedoc:"^0.23.7",typescript:"^4.7.4","wasm-feature-detect":"^1.2.11","web-worker":"^1.2.0"},scripts:{"build:debug":"node bundle.mjs debug && tsc --emitDeclarationOnly","build:release":"node bundle.mjs release && tsc --emitDeclarationOnly",docs:"typedoc",report:"node ./coverage.mjs","test:node":"node --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:debug":"node --inspect-brk --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:coverage":"nyc -r json --report-dir ./coverage/node node --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:firefox":"karma start ./karma/tests-firefox.cjs","test:chrome":"karma start ./karma/tests-chrome.cjs","test:chrome:eh":"karma start ./karma/tests-chrome-eh.cjs","test:chrome:coverage":"karma start ./karma/tests-chrome-coverage.cjs","test:browser":"karma start ./karma/tests-all.cjs","test:browser:debug":"karma start ./karma/tests-debug.cjs",test:"npm run test:chrome && npm run test:node","test:coverage":"npm run test:chrome:coverage && npm run test:node:coverage && npm run report",lint:"eslint src test"},files:["dist","!dist/types/test"],main:"dist/duckdb-browser.cjs",module:"dist/duckdb-browser.mjs",types:"dist/duckdb-browser.d.ts",jsdelivr:"dist/duckdb-browser.cjs",unpkg:"dist/duckdb-browser.mjs",sideEffects:!1,browser:{fs:!1,path:!1,perf_hooks:!1,os:!1,worker_threads:!1},exports:{"./dist/duckdb-mvp.wasm":"./dist/duckdb-mvp.wasm","./dist/duckdb-eh.wasm":"./dist/duckdb-eh.wasm","./dist/duckdb-coi.wasm":"./dist/duckdb-coi.wasm","./dist/duckdb-browser":"./dist/duckdb-browser.mjs","./dist/duckdb-browser.cjs":"./dist/duckdb-browser.cjs","./dist/duckdb-browser.mjs":"./dist/duckdb-browser.mjs","./dist/duckdb-browser-blocking":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.mjs":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.cjs":"./dist/duckdb-browser-blocking.cjs","./dist/duckdb-browser-coi.pthread.worker.js":"./dist/duckdb-browser-coi.pthread.worker.js","./dist/duckdb-browser-coi.worker.js":"./dist/duckdb-browser-coi.worker.js","./dist/duckdb-browser-eh.worker.js":"./dist/duckdb-browser-eh.worker.js","./dist/duckdb-browser-mvp.worker.js":"./dist/duckdb-browser-mvp.worker.js","./dist/duckdb-node":"./dist/duckdb-node.cjs","./dist/duckdb-node.cjs":"./dist/duckdb-node.cjs","./dist/duckdb-node-blocking":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-blocking.cjs":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-eh.worker.cjs":"./dist/duckdb-node-eh.worker.cjs","./dist/duckdb-node-mvp.worker.cjs":"./dist/duckdb-node-mvp.worker.cjs","./blocking":{browser:{types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},node:{types:"./dist/duckdb-node-blocking.d.ts",require:"./dist/duckdb-node-blocking.cjs",import:"./dist/duckdb-node-blocking.cjs"},types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},".":{browser:{types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"},node:{types:"./dist/duckdb-node.d.ts",import:"./dist/duckdb-node.cjs",require:"./dist/duckdb-node.cjs"},types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"}}};var as=Ti.name,ss=Ti.version,os=Ti.version.split("."),kg=os[0],Cg=os[1],Sg=os[2];var ds=()=>typeof navigator>"u",If=()=>ds()?"node":navigator.userAgent,Eg=()=>If().includes("Firefox"),Ag=()=>/^((?!chrome|android).)*safari/i.test(If());function Rg(){let r=`https://cdn.jsdelivr.net/npm/${as}@${ss}/dist/`;return{mvp:{mainModule:`${r}duckdb-mvp.wasm`,mainWorker:`${r}duckdb-browser-mvp.worker.js`},eh:{mainModule:`${r}duckdb-eh.wasm`,mainWorker:`${r}duckdb-browser-eh.worker.js`}}}var us=null,ls=null,cs=null,fs=null,_s=null;async function Di(){return us==null&&(us=typeof BigInt64Array<"u"),ls==null&&(ls=await Dt.exceptions()),cs==null&&(cs=await Dt.threads()),fs==null&&(fs=await Dt.simd()),_s==null&&(_s=await Dt.bulkMemory()),{bigInt64Array:us,crossOriginIsolated:ds()||globalThis.crossOriginIsolated||!1,wasmExceptions:ls,wasmSIMD:fs,wasmThreads:cs,wasmBulkMemory:_s}}async function Tg(r){let t=await Di();if(t.wasmExceptions){if(t.wasmSIMD&&t.wasmThreads&&t.crossOriginIsolated&&r.coi)return{mainModule:r.coi.mainModule,mainWorker:r.coi.mainWorker,pthreadWorker:r.coi.pthreadWorker};if(r.eh)return{mainModule:r.eh.mainModule,mainWorker:r.eh.mainWorker,pthreadWorker:null}}return{mainModule:r.mvp.mainModule,mainWorker:r.mvp.mainWorker,pthreadWorker:null}}var Ve=cr(require("fs"));var Sp=cr(Cp());var qe={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(r,t){try{let e=qe._fileInfoCache.get(t),[u,d,y]=we(r,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(e==null?void 0:e.cacheEpoch)||0]);if(u!==0)return Ee(r,_e(r,d,y)),null;if(y===0)return e;let v=_e(r,d,y);De(r);let S=JSON.parse(v);return S==null?null:(qe._fileInfoCache.set(t,S),S)}catch(e){return Ee(r,e.toString()),null}},testPlatformFeature:(r,t)=>{switch(t){case 1:return typeof BigInt64Array<"u";default:return console.warn(`test for unknown feature: ${t}`),!1}},openFile(r,t,e){try{qe._fileInfoCache.delete(t);let u=qe.resolveFileInfo(r,t);switch(u==null?void 0:u.dataProtocol){case 1:{u.dataNativeFd=Ve.default.openSync(u.dataUrl,Ve.default.constants.O_CREAT|Ve.default.constants.O_RDWR,Ve.default.constants.S_IRUSR|Ve.default.constants.S_IWUSR);let[d,y,v]=we(r,"duckdb_web_fs_set_file_descriptor",["number","number"],[t,u.dataNativeFd]);d!==0&&Ee(r,_e(r,y,v));let S=Ve.default.fstatSync(u.dataNativeFd).size,A=r._malloc(2*8);return r.HEAPF64[(A>>3)+0]=+S,r.HEAPF64[(A>>3)+1]=0,A}case 3:case 4:Ee(r,"Not implemented")}}catch(u){Ee(r,u.toString())}return 0},syncFile:(r,t)=>{},closeFile:(r,t)=>{try{let e=qe.resolveFileInfo(r,t);switch(qe._fileInfoCache.delete(t),e==null?void 0:e.dataProtocol){case 1:{if(!e.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;Ve.default.closeSync(e.dataNativeFd),e.dataNativeFd=null;break}case 3:case 4:Ee(r,"Not implemented")}}catch(e){Ee(r,e.toString())}return 0},truncateFile:(r,t,e)=>{try{let u=qe.resolveFileInfo(r,t);switch(u==null?void 0:u.dataProtocol){case 1:{if(!u.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;Ve.default.truncateSync(u.dataUrl,e);break}case 3:case 4:Ee(r,"Not implemented")}}catch(u){Ee(r,u.toString())}return 0},readFile:(r,t,e,u,d)=>{try{let y=qe.resolveFileInfo(r,t);switch(y==null?void 0:y.dataProtocol){case 1:return y.dataNativeFd?Ve.default.readSync(y.dataNativeFd,r.HEAPU8,e,u,d):(Ee(r,`File ${t} is missing a file descriptor`),0);case 3:case 4:Ee(r,"Not implemented")}}catch(y){Ee(r,y.toString())}return 0},writeFile:(r,t,e,u,d)=>{try{let y=qe.resolveFileInfo(r,t);switch(y==null?void 0:y.dataProtocol){case 1:{if(!y.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;let v=r.HEAPU8.subarray(e,e+u);return Ve.default.writeSync(y.dataNativeFd,v,0,v.length,d)}}}catch(y){Ee(r,y.toString())}return 0},getLastFileModificationTime:(r,t)=>{try{let e=qe.resolveFileInfo(r,t);switch(e==null?void 0:e.dataProtocol){case 1:return e.dataNativeFd?Ve.default.fstatSync(e.dataNativeFd).mtime.getTime():(Ee(r,`File ${t} is missing a file descriptor`),0);case 3:case 4:Ee(r,"Not implemented")}}catch(e){Ee(r,e.toString())}return 0},checkDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.existsSync(u)}catch(u){return Ee(r,u.toString()),!1}},createDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.mkdirSync(u)}catch(u){return Ee(r,u.toString()),0}},removeDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.rmdirSync(u)}catch(u){return Ee(r,u.toString()),0}},listDirectoryEntries:(r,t,e)=>(Ee(r,"Not Implemented"),!1),glob:(r,t,e)=>{try{let u=_e(r,t,e),d=Sp.sync([u],{dot:!0});for(let y of d)r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[y])}catch(u){return Ee(r,u.toString()),0}},moveFile:(r,t,e,u,d)=>{var A,I;let y=_e(r,t,e),v=_e(r,u,d),S=(A=qe._files)==null?void 0:A.get(y);S!==void 0&&(qe._files.delete(S),qe._files.set(v,S));for(let[R,L]of((I=qe._fileInfoCache)==null?void 0:I.entries())||[])if(L.dataUrl==y){qe._fileInfoCache.delete(R);break}return!0},checkFile:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.existsSync(u)}catch(u){return Ee(r,u.toString()),!1}},removeFile:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ve.default.rmSync(u)}catch(u){return Ee(r,u.toString()),0}},callScalarUDF:(r,t,e,u,d,y,v)=>{Ai(qe,r,t,e,u,d,y,v)}};var Ep={},T0=(()=>{var r=Ep.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},u,d;e.ready=new Promise(function(i,n){u=i,d=n});var y=Object.assign({},e),v=[],S="./this.program",A=(i,n)=>{throw n},I=typeof window=="object",R=typeof importScripts=="function",L=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",P="";function fe(i){return e.locateFile?e.locateFile(i,P):P+i}var K,z,ee,oe;function be(i){if(i instanceof wi)return;J("exiting due to exception: "+i)}var me,Ae,ie;L?(R?P=require("path").dirname(P)+"/":P=__dirname+"/",ie=()=>{Ae||(me=require("fs"),Ae=require("path"))},K=function(n,a){return ie(),n=Ae.normalize(n),me.readFileSync(n,a?void 0:"utf8")},ee=i=>{var n=K(i,!0);return n.buffer||(n=new Uint8Array(n)),n},z=(i,n,a)=>{ie(),i=Ae.normalize(i),me.readFile(i,function(s,o){s?a(s):n(o.buffer)})},process.argv.length>1&&(S=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(i){if(!(i instanceof wi))throw i}),process.on("unhandledRejection",function(i){throw i}),A=(i,n)=>{if(zr())throw process.exitCode=i,n;be(n),process.exit(i)},e.inspect=function(){return"[Emscripten Module object]"}):(I||R)&&(R?P=self.location.href:typeof document<"u"&&document.currentScript&&(P=document.currentScript.src),r&&(P=r),P.indexOf("blob:")!==0?P=P.substr(0,P.replace(/[?#].*/,"").lastIndexOf("/")+1):P="",K=i=>{var n=new XMLHttpRequest;return n.open("GET",i,!1),n.send(null),n.responseText},R&&(ee=i=>{var n=new XMLHttpRequest;return n.open("GET",i,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}),z=(i,n,a)=>{var s=new XMLHttpRequest;s.open("GET",i,!0),s.responseType="arraybuffer",s.onload=()=>{if(s.status==200||s.status==0&&s.response){n(s.response);return}a()},s.onerror=a,s.send(null)},oe=i=>document.title=i);var ke=e.print||console.log.bind(console),J=e.printErr||console.warn.bind(console);Object.assign(e,y),y=null,e.arguments&&(v=e.arguments),e.thisProgram&&(S=e.thisProgram),e.quit&&(A=e.quit);var te=0,$=i=>{te=i},pe=()=>te,F;e.wasmBinary&&(F=e.wasmBinary);var ue=e.noExitRuntime||!0;typeof WebAssembly!="object"&&Oe("no native wasm support detected");var ae,Ce=!1,D;function x(i,n){i||Oe(n)}function Pe(i){var n=e["_"+i];return n}function le(i,n,a,s,o){var l={string:function(Y){var de=0;if(Y!=null&&Y!==0){var je=(Y.length<<2)+1;de=it(je),It(Y,de,je)}return de},array:function(Y){var de=it(Y.length);return Qe(Y,de),de}};function c(Y){return n==="string"?xe(Y):n==="boolean"?Boolean(Y):Y}var f=Pe(i),_=[],p=0;if(s)for(var m=0;m<s.length;m++){var k=l[a[m]];k?(p===0&&(p=b()),_[m]=k(s[m])):_[m]=s[m]}var E=f.apply(null,_);function H(Y){return p!==0&&j(p),c(Y)}return E=H(E),E}var Ye=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function We(i,n,a){for(var s=n+a,o=n;i[o]&&!(o>=s);)++o;if(o-n>16&&i.buffer&&Ye)return Ye.decode(i.subarray(n,o));for(var l="";n<o;){var c=i[n++];if(!(c&128)){l+=String.fromCharCode(c);continue}var f=i[n++]&63;if((c&224)==192){l+=String.fromCharCode((c&31)<<6|f);continue}var _=i[n++]&63;if((c&240)==224?c=(c&15)<<12|f<<6|_:c=(c&7)<<18|f<<12|_<<6|i[n++]&63,c<65536)l+=String.fromCharCode(c);else{var p=c-65536;l+=String.fromCharCode(55296|p>>10,56320|p&1023)}}return l}function xe(i,n){return i?We(O,i,n):""}function _t(i,n,a,s){if(!(s>0))return 0;for(var o=a,l=a+s-1,c=0;c<i.length;++c){var f=i.charCodeAt(c);if(f>=55296&&f<=57343){var _=i.charCodeAt(++c);f=65536+((f&1023)<<10)|_&1023}if(f<=127){if(a>=l)break;n[a++]=f}else if(f<=2047){if(a+1>=l)break;n[a++]=192|f>>6,n[a++]=128|f&63}else if(f<=65535){if(a+2>=l)break;n[a++]=224|f>>12,n[a++]=128|f>>6&63,n[a++]=128|f&63}else{if(a+3>=l)break;n[a++]=240|f>>18,n[a++]=128|f>>12&63,n[a++]=128|f>>6&63,n[a++]=128|f&63}}return n[a]=0,a-o}function It(i,n,a){return _t(i,O,n,a)}function bt(i){for(var n=0,a=0;a<i.length;++a){var s=i.charCodeAt(a);s>=55296&&s<=57343&&(s=65536+((s&1023)<<10)|i.charCodeAt(++a)&1023),s<=127?++n:s<=2047?n+=2:s<=65535?n+=3:n+=4}return n}function Qe(i,n){Je.set(i,n)}function se(i,n,a){for(var s=0;s<i.length;++s)Je[n++>>0]=i.charCodeAt(s);a||(Je[n>>0]=0)}var at,Je,O,ve,W,N,Re,He,Fe;function jt(i){at=i,e.HEAP8=Je=new Int8Array(i),e.HEAP16=ve=new Int16Array(i),e.HEAP32=N=new Int32Array(i),e.HEAPU8=O=new Uint8Array(i),e.HEAPU16=W=new Uint16Array(i),e.HEAPU32=Re=new Uint32Array(i),e.HEAPF32=He=new Float32Array(i),e.HEAPF64=Fe=new Float64Array(i)}var At=e.INITIAL_MEMORY||16777216,Kr,kr=[],Vr=[],Yr=[],Qr=[],on=!1;function zr(){return ue}function un(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)wt(e.preRun.shift());Jt(kr)}function ln(){on=!0,Jt(Vr)}function cn(){Jt(Yr)}function fn(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)Bt(e.postRun.shift());Jt(Qr)}function wt(i){kr.unshift(i)}function Cr(i){Vr.unshift(i)}function Bt(i){Qr.unshift(i)}var kt=0,Sr=null,$e=null;function _n(i){kt++,e.monitorRunDependencies&&e.monitorRunDependencies(kt)}function Xr(i){if(kt--,e.monitorRunDependencies&&e.monitorRunDependencies(kt),kt==0&&(Sr!==null&&(clearInterval(Sr),Sr=null),$e)){var n=$e;$e=null,n()}}function Oe(i){e.onAbort&&e.onAbort(i),i="Aborted("+i+")",J(i),Ce=!0,D=1,i+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(i);throw d(n),n}var Jr="data:application/octet-stream;base64,";function Zr(i){return i.startsWith(Jr)}var Ze;e.locateFile?(Ze="./duckdb-mvp.wasm",Zr(Ze)||(Ze=fe(Ze))):Ze=new URL("./duckdb-mvp.wasm",Ep.url).toString();function Lt(i){try{if(i==Ze&&F)return new Uint8Array(F);if(ee)return ee(i);throw"both async and sync fetching of the wasm failed"}catch(n){Oe(n)}}function Xt(){return!F&&(I||R)&&typeof fetch=="function"?fetch(Ze,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load wasm binary file at '"+Ze+"'";return i.arrayBuffer()}).catch(function(){return Lt(Ze)}):Promise.resolve().then(function(){return Lt(Ze)})}function ei(){var i={a:Ra};function n(c,f){var _=c.exports;e.asm=_,ae=e.asm.Ve,jt(ae.buffer),Kr=e.asm.Vf,Cr(e.asm.We),Xr("wasm-instantiate")}_n("wasm-instantiate");function a(c){n(c.instance)}function s(c){return Xt().then(function(f){return WebAssembly.instantiate(f,i)}).then(function(f){return f}).then(c,function(f){J("failed to asynchronously prepare wasm: "+f),Oe(f)})}function o(){return!F&&typeof WebAssembly.instantiateStreaming=="function"&&!Zr(Ze)&&typeof fetch=="function"?fetch(Ze,{credentials:"same-origin"}).then(function(c){var f=WebAssembly.instantiateStreaming(c,i);return f.then(a,function(_){return J("wasm streaming compile failed: "+_),J("falling back to ArrayBuffer instantiation"),s(a)})}):s(a)}if(e.instantiateWasm)try{var l=e.instantiateWasm(i,n);return l}catch(c){return J("Module.instantiateWasm callback failed with error: "+c),!1}return o().catch(d),{}}function Jt(i){for(;i.length>0;){var n=i.shift();if(typeof n=="function"){n(e);continue}var a=n.func;typeof a=="number"?n.arg===void 0?Q(a)():Q(a)(n.arg):a(n.arg===void 0?null:n.arg)}}var Zt=[];function Q(i){var n=Zt[i];return n||(i>=Zt.length&&(Zt.length=i+1),Zt[i]=n=Kr.get(i)),n}function dn(i){if(i instanceof wi||i=="unwind")return D;A(1,i)}function pn(i,n,a,s){Oe("Assertion failed: "+xe(i)+", at: "+[n?xe(n):"unknown filename",a,s?xe(s):"unknown function"])}function ti(i){return Ge(i+24)+24}var dt=[];function Er(i){i.add_ref()}var Ut=0;function ri(i){var n=new ut(i);return n.get_caught()||(n.set_caught(!0),Ut--),n.set_rethrown(!1),dt.push(n),Er(n),n.get_exception_ptr()}var et=0;function ut(i){this.excPtr=i,this.ptr=i-24,this.set_type=function(n){N[this.ptr+4>>2]=n},this.get_type=function(){return N[this.ptr+4>>2]},this.set_destructor=function(n){N[this.ptr+8>>2]=n},this.get_destructor=function(){return N[this.ptr+8>>2]},this.set_refcount=function(n){N[this.ptr>>2]=n},this.set_caught=function(n){n=n?1:0,Je[this.ptr+12>>0]=n},this.get_caught=function(){return Je[this.ptr+12>>0]!=0},this.set_rethrown=function(n){n=n?1:0,Je[this.ptr+13>>0]=n},this.get_rethrown=function(){return Je[this.ptr+13>>0]!=0},this.init=function(n,a){this.set_adjusted_ptr(0),this.set_type(n),this.set_destructor(a),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var n=N[this.ptr>>2];N[this.ptr>>2]=n+1},this.release_ref=function(){var n=N[this.ptr>>2];return N[this.ptr>>2]=n-1,n===1},this.set_adjusted_ptr=function(n){N[this.ptr+16>>2]=n},this.get_adjusted_ptr=function(){return N[this.ptr+16>>2]},this.get_exception_ptr=function(){var n=U(this.get_type());if(n)return N[this.excPtr>>2];var a=this.get_adjusted_ptr();return a!==0?a:this.excPtr}}function er(i){return Se(new ut(i).ptr)}function tt(i){if(i.release_ref()&&!i.get_rethrown()){var n=i.get_destructor();n&&Q(n)(i.excPtr),er(i.excPtr)}}function ii(){w(0);var i=dt.pop();tt(i),et=0}function yn(i){throw et||(et=i),i}function hn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function mn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function vn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function gn(){var i=et;if(!i)return $(0),0;var n=new ut(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return $(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(ft(l,a,c))return $(l),i|0}return $(a),i|0}function bn(){var i=dt.pop();i||Oe("no exception to throw");var n=i.excPtr;throw i.get_rethrown()||(dt.push(i),i.set_rethrown(!0),i.set_caught(!1),Ut++),et=n,n}function jn(i,n,a){var s=new ut(i);throw s.init(n,a),et=i,Ut++,i}function ni(){return Ut}var Ie={buffers:[null,[],[]],printChar:function(i,n){var a=Ie.buffers[i];n===0||n===10?((i===1?ke:J)(We(a,0)),a.length=0):a.push(n)},varargs:void 0,get:function(){Ie.varargs+=4;var i=N[Ie.varargs-4>>2];return i},getStr:function(i){var n=xe(i);return n}};function wn(i,n,a,s,o){}function kn(){J("missing function: $SOCKFS"),Oe(-1)}function ai(){J("missing function: $FS"),Oe(-1)}function Ht(i){var n=kn.getSocket(i);if(!n)throw new ai.ErrnoError(8);return n}function Ar(i){return(i&255)+"."+(i>>8&255)+"."+(i>>16&255)+"."+(i>>24&255)}function si(i){var n="",a=0,s=0,o=0,l=0,c=0,f=0,_=[i[0]&65535,i[0]>>16,i[1]&65535,i[1]>>16,i[2]&65535,i[2]>>16,i[3]&65535,i[3]>>16],p=!0,m="";for(f=0;f<5;f++)if(_[f]!==0){p=!1;break}if(p){if(m=Ar(_[6]|_[7]<<16),_[5]===-1)return n="::ffff:",n+=m,n;if(_[5]===0)return n="::",m==="0.0.0.0"&&(m=""),m==="0.0.0.1"&&(m="1"),n+=m,n}for(a=0;a<8;a++)_[a]===0&&(a-o>1&&(c=0),o=a,c++),c>s&&(s=c,l=a-s+1);for(a=0;a<8;a++){if(s>1&&_[a]===0&&a>=l&&a<l+s){a===l&&(n+=":",l===0&&(n+=":"));continue}n+=Number(ge(_[a]&65535)).toString(16),n+=a<7?":":""}return n}function oi(i,n){var a=ve[i>>1],s=ge(W[i+2>>1]),o;switch(a){case 2:if(n!==16)return{errno:28};o=N[i+4>>2],o=Ar(o);break;case 10:if(n!==28)return{errno:28};o=[N[i+8>>2],N[i+12>>2],N[i+16>>2],N[i+20>>2]],o=si(o);break;default:return{errno:5}}return{family:a,addr:o,port:s}}function tr(i){for(var n=i.split("."),a=0;a<4;a++){var s=Number(n[a]);if(isNaN(s))return null;n[a]=s}return(n[0]|n[1]<<8|n[2]<<16|n[3]<<24)>>>0}function rr(i){return parseInt(i)}function Rr(i){var n,a,s,o,l=/^((?=.*::)(?!.*::.+::)(::)?([\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,c=[];if(!l.test(i))return null;if(i==="::")return[0,0,0,0,0,0,0,0];for(i.startsWith("::")?i=i.replace("::","Z:"):i=i.replace("::",":Z:"),i.indexOf(".")>0?(i=i.replace(new RegExp("[.]","g"),":"),n=i.split(":"),n[n.length-4]=rr(n[n.length-4])+rr(n[n.length-3])*256,n[n.length-3]=rr(n[n.length-2])+rr(n[n.length-1])*256,n=n.slice(0,n.length-2)):n=i.split(":"),s=0,o=0,a=0;a<n.length;a++)if(typeof n[a]=="string")if(n[a]==="Z"){for(o=0;o<8-n.length+1;o++)c[a+o]=0;s=o-1}else c[a+s]=ye(parseInt(n[a],16));else c[a+s]=n[a];return[c[1]<<16|c[0],c[3]<<16|c[2],c[5]<<16|c[4],c[7]<<16|c[6]]}var rt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(i){var n=tr(i);if(n!==null||(n=Rr(i),n!==null))return i;var a;if(rt.address_map.addrs[i])a=rt.address_map.addrs[i];else{var s=rt.address_map.id++;x(s<65535,"exceeded max address mappings of 65535"),a="172.29."+(s&255)+"."+(s&65280),rt.address_map.names[a]=i,rt.address_map.addrs[i]=a}return a},lookup_addr:function(i){return rt.address_map.names[i]?rt.address_map.names[i]:null}};function ui(i,n,a){if(a&&i===0)return null;var s=oi(i,n);if(s.errno)throw new ai.ErrnoError(s.errno);return s.addr=rt.lookup_addr(s.addr)||s.addr,s}function Cn(i,n,a){var s=Ht(i),o=ui(n,a);return s.sock_ops.bind(s,o.addr,o.port),0}function Sn(i,n,a){var s=Ht(i),o=ui(n,a);return s.sock_ops.connect(s,o.addr,o.port),0}function En(i,n,a,s){return n=Ie.getStr(n),n=Ie.calculateAt(i,n),Ie.doAccess(n,a)}function li(i,n,a){return Ie.varargs=a,0}function An(i,n){}function Rn(i,n,a){}function Tn(i,n,a){}function ci(i,n){O.fill(0,i,i+n)}function Tr(i,n,a,s,o){switch(n){case 2:a=tr(a),ci(i,16),o&&(N[o>>2]=16),ve[i>>1]=n,N[i+4>>2]=a,ve[i+2>>1]=ye(s);break;case 10:a=Rr(a),ci(i,28),o&&(N[o>>2]=28),N[i>>2]=n,N[i+8>>2]=a[0],N[i+12>>2]=a[1],N[i+16>>2]=a[2],N[i+20>>2]=a[3],ve[i+2>>1]=ye(s);break;default:return 5}return 0}function Dn(i,n,a){var s=Ht(i);if(!s.daddr)return-53;var o=Tr(n,s.family,rt.lookup_name(s.daddr),s.dport,a);return 0}function Pn(i,n,a,s,o){var l=Ht(i);return n===1&&a===4?(N[s>>2]=l.error,N[o>>2]=4,l.error=null,0):-50}function xn(i,n,a){return Ie.varargs=a,0}function On(i,n){}function Fn(i,n,a){}function Nn(i,n,a,s){}function Mn(i,n,a,s){Ie.varargs=s}function In(i,n,a,s,o,l){var c=Ht(i),f=c.sock_ops.recvmsg(c,a);if(!f)return 0;if(o)var _=Tr(o,c.family,rt.lookup_name(f.addr),f.port,l);return O.set(f.buffer,n),f.buffer.byteLength}function Bn(i,n,a,s){}function Ln(i){}function Un(i,n,a,s,o,l){}function Hn(i,n,a){}function qn(i,n){}function Wn(i,n,a){}function $n(i){}var fi="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function _i(i,n){Oe(fi)}function Dr(i,n){Oe(fi)}function Gn(){return Date.now()}var Kn=!0;function Vn(){return Kn}function Pr(){Oe("")}function Yn(i,n){return globalThis.DUCKDB_RUNTIME.createDirectory(e,i,n)}function qt(i,n){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,i,n)}function Qn(i,n){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,i,n)}function zn(i,n){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,i,n)}function Xn(i){return globalThis.DUCKDB_RUNTIME.closeFile(e,i)}function Jn(i,n){return globalThis.DUCKDB_RUNTIME.checkFile(e,i,n)}function Zn(i){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,i)}function ea(i,n,a,s){return globalThis.DUCKDB_RUNTIME.moveFile(e,i,n,a,s)}function ta(i,n){return globalThis.DUCKDB_RUNTIME.openFile(e,i,n)}function ra(i,n,a,s){return globalThis.DUCKDB_RUNTIME.readFile(e,i,n,a,s)}function ia(i,n){return globalThis.DUCKDB_RUNTIME.truncateFile(e,i,n)}function na(i,n,a,s){return globalThis.DUCKDB_RUNTIME.writeFile(e,i,n,a,s)}function aa(i,n){return globalThis.DUCKDB_RUNTIME.glob(e,i,n)}function ir(i){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,i)}function sa(i,n,a,s,o,l){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,i,n,a,s,o,l)}function Wt(){return 2147483648}var xr;L?xr=()=>{var i=process.hrtime();return i[0]*1e3+i[1]/1e6}:xr=()=>performance.now();function di(i,n,a){O.copyWithin(i,n,n+a)}function pi(i){try{return ae.grow(i-at.byteLength+65535>>>16),jt(ae.buffer),1}catch{}}function oa(i){var n=O.length;i=i>>>0;var a=Wt();if(i>a)return!1;let s=(_,p)=>_+(p-_%p)%p;for(var o=1;o<=4;o*=2){var l=n*(1+.2/o);l=Math.min(l,i+100663296);var c=Math.min(a,s(Math.max(i,l),65536)),f=pi(c);if(f)return!0}return!1}var Or={};function ua(){return S||"./this.program"}function $t(){if(!$t.strings){var i=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",n={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:i,_:ua()};for(var a in Or)Or[a]===void 0?delete n[a]:n[a]=Or[a];var s=[];for(var a in n)s.push(a+"="+n[a]);$t.strings=s}return $t.strings}function la(i,n){var a=0;return $t().forEach(function(s,o){var l=n+a;N[i+o*4>>2]=l,se(s,l),a+=s.length+1}),0}function Qo(i,n){var a=$t();N[i>>2]=a.length;var s=0;return a.forEach(function(o){s+=o.length+1}),N[n>>2]=s,0}function ca(i){return 0}function fa(i,n,a,s,o,l){var c=Ie.getStreamFromFD(i),f=Ie.doReadv(c,n,a,s);return N[l>>2]=f,0}function _a(i,n,a,s,o,l){var c=Ie.getStreamFromFD(i),f=Ie.doWritev(c,n,a,s);return N[l>>2]=f,0}function da(i,n,a,s){var o=Ie.getStreamFromFD(i),l=Ie.doReadv(o,n,a);return N[s>>2]=l,0}function pa(i,n,a,s,o){}function ya(i){var n=Ie.getStreamFromFD(i);return n.stream_ops&&n.stream_ops.fsync?-n.stream_ops.fsync(n):0}function ha(i,n,a,s){for(var o=0,l=0;l<a;l++){var c=N[n>>2],f=N[n+4>>2];n+=8;for(var _=0;_<f;_++)Ie.printChar(i,O[c+_]);o+=f}return N[s>>2]=o,0}function ma(){return pe()}function va(i,n,a,s){var o=0,l=0,c=0,f=0,_=0,p=0,m;function k(E,H,Y,de,je,Be){var B,re,Me,Ke;return re=E===10?28:16,je=E===10?si(je):Ar(je),B=Ge(re),Ke=Tr(B,E,je,Be),x(!Ke),Me=Ge(32),N[Me+4>>2]=E,N[Me+8>>2]=H,N[Me+12>>2]=Y,N[Me+24>>2]=de,N[Me+20>>2]=B,E===10?N[Me+16>>2]=28:N[Me+16>>2]=16,N[Me+28>>2]=0,Me}if(a&&(c=N[a>>2],f=N[a+4>>2],_=N[a+8>>2],p=N[a+12>>2]),_&&!p&&(p=_===2?17:6),!_&&p&&(_=p===17?2:1),p===0&&(p=6),_===0&&(_=1),!i&&!n)return-2;if(c&-1088||a!==0&&N[a>>2]&2&&!i)return-1;if(c&32)return-2;if(_!==0&&_!==1&&_!==2)return-7;if(f!==0&&f!==2&&f!==10)return-6;if(n&&(n=xe(n),l=parseInt(n,10),isNaN(l)))return c&1024?-2:-8;if(!i)return f===0&&(f=2),(c&1)===0&&(f===2?o=Z(2130706433):o=[0,0,0,1]),m=k(f,_,p,null,o,l),N[s>>2]=m,0;if(i=xe(i),o=tr(i),o!==null)if(f===0||f===2)f=2;else if(f===10&&c&8)o=[0,0,Z(65535),o],f=10;else return-2;else if(o=Rr(i),o!==null)if(f===0||f===10)f=10;else return-2;return o!=null?(m=k(f,_,p,i,o,l),N[s>>2]=m,0):c&4?-2:(i=rt.lookup_name(i),o=tr(i),f===0?f=2:f===10&&(o=[0,0,Z(65535),o]),m=k(f,_,p,null,o,l),N[s>>2]=m,0)}function ga(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var i=new Uint8Array(1);return function(){return crypto.getRandomValues(i),i[0]}}else if(L)try{var n=require("crypto");return function(){return n.randomBytes(1)[0]}}catch{}return function(){Oe("randomDevice")}}function nr(i,n){nr.randomDevice||(nr.randomDevice=ga());for(var a=0;a<n;a++)Je[i+a>>0]=nr.randomDevice();return 0}function ba(i,n,a,s,o,l,c){var f=oi(i,n);if(f.errno)return-6;var _=f.port,p=f.addr,m=!1;if(a&&s){var k;if(c&1||!(k=rt.lookup_addr(p))){if(c&8)return-2}else p=k;var E=It(p,a,s);E+1>=s&&(m=!0)}if(o&&l){_=""+_;var E=It(_,o,l);E+1>=l&&(m=!0)}return m?-12:0}function ja(i){return i}function wa(i){$(i)}function ar(i){return i%4===0&&(i%100!==0||i%400===0)}function ka(i,n){for(var a=0,s=0;s<=n;a+=i[s++]);return a}var yi=[31,29,31,30,31,30,31,31,30,31,30,31],hi=[31,28,31,30,31,30,31,31,30,31,30,31];function Ca(i,n){for(var a=new Date(i.getTime());n>0;){var s=ar(a.getFullYear()),o=a.getMonth(),l=(s?yi:hi)[o];if(n>l-a.getDate())n-=l-a.getDate()+1,a.setDate(1),o<11?a.setMonth(o+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else return a.setDate(a.getDate()+n),a}return a}function Sa(i,n,a,s){var o=N[s+40>>2],l={tm_sec:N[s>>2],tm_min:N[s+4>>2],tm_hour:N[s+8>>2],tm_mday:N[s+12>>2],tm_mon:N[s+16>>2],tm_year:N[s+20>>2],tm_wday:N[s+24>>2],tm_yday:N[s+28>>2],tm_isdst:N[s+32>>2],tm_gmtoff:N[s+36>>2],tm_zone:o?xe(o):""},c=xe(a),f={"%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 _ in f)c=c.replace(new RegExp(_,"g"),f[_]);var p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"];function k(B,re,Me){for(var Ke=typeof B=="number"?B.toString():B||"";Ke.length<re;)Ke=Me[0]+Ke;return Ke}function E(B,re){return k(B,re,"0")}function H(B,re){function Me(ki){return ki<0?-1:ki>0?1:0}var Ke;return(Ke=Me(B.getFullYear()-re.getFullYear()))===0&&(Ke=Me(B.getMonth()-re.getMonth()))===0&&(Ke=Me(B.getDate()-re.getDate())),Ke}function Y(B){switch(B.getDay()){case 0:return new Date(B.getFullYear()-1,11,29);case 1:return B;case 2:return new Date(B.getFullYear(),0,3);case 3:return new Date(B.getFullYear(),0,2);case 4:return new Date(B.getFullYear(),0,1);case 5:return new Date(B.getFullYear()-1,11,31);case 6:return new Date(B.getFullYear()-1,11,30)}}function de(B){var re=Ca(new Date(B.tm_year+1900,0,1),B.tm_yday),Me=new Date(re.getFullYear(),0,4),Ke=new Date(re.getFullYear()+1,0,4),ki=Y(Me),ag=Y(Ke);return H(ki,re)<=0?H(ag,re)<=0?re.getFullYear()+1:re.getFullYear():re.getFullYear()-1}var je={"%a":function(B){return p[B.tm_wday].substring(0,3)},"%A":function(B){return p[B.tm_wday]},"%b":function(B){return m[B.tm_mon].substring(0,3)},"%B":function(B){return m[B.tm_mon]},"%C":function(B){var re=B.tm_year+1900;return E(re/100|0,2)},"%d":function(B){return E(B.tm_mday,2)},"%e":function(B){return k(B.tm_mday,2," ")},"%g":function(B){return de(B).toString().substring(2)},"%G":function(B){return de(B)},"%H":function(B){return E(B.tm_hour,2)},"%I":function(B){var re=B.tm_hour;return re==0?re=12:re>12&&(re-=12),E(re,2)},"%j":function(B){return E(B.tm_mday+ka(ar(B.tm_year+1900)?yi:hi,B.tm_mon-1),3)},"%m":function(B){return E(B.tm_mon+1,2)},"%M":function(B){return E(B.tm_min,2)},"%n":function(){return`
|
|
3
|
-
`},"%p":function(B){return B.tm_hour>=0&&B.tm_hour<12?"AM":"PM"},"%S":function(B){return E(B.tm_sec,2)},"%t":function(){return" "},"%u":function(B){return B.tm_wday||7},"%U":function(B){var re=B.tm_yday+7-B.tm_wday;return E(Math.floor(re/7),2)},"%V":function(B){var re=Math.floor((B.tm_yday+7-(B.tm_wday+6)%7)/7);if((B.tm_wday+371-B.tm_yday-2)%7<=2&&re++,re){if(re==53){var Ke=(B.tm_wday+371-B.tm_yday)%7;Ke!=4&&(Ke!=3||!ar(B.tm_year))&&(re=1)}}else{re=52;var Me=(B.tm_wday+7-B.tm_yday-1)%7;(Me==4||Me==5&&ar(B.tm_year%400-1))&&re++}return E(re,2)},"%w":function(B){return B.tm_wday},"%W":function(B){var re=B.tm_yday+7-(B.tm_wday+6)%7;return E(Math.floor(re/7),2)},"%y":function(B){return(B.tm_year+1900).toString().substring(2)},"%Y":function(B){return B.tm_year+1900},"%z":function(B){var re=B.tm_gmtoff,Me=re>=0;return re=Math.abs(re)/60,re=re/60*100+re%60,(Me?"+":"-")+String("0000"+re).slice(-4)},"%Z":function(B){return B.tm_zone},"%%":function(){return"%"}};c=c.replace(/%%/g,"\0\0");for(var _ in je)c.includes(_)&&(c=c.replace(new RegExp(_,"g"),je[_](l)));c=c.replace(/\0\0/g,"%");var Be=Aa(c,!1);return Be.length>n?0:(Qe(Be,i),Be.length-1)}function Ea(i,n,a,s){return Sa(i,n,a,s)}function Aa(i,n,a){var s=a>0?a:bt(i)+1,o=new Array(s),l=_t(i,o,0,o.length);return n&&(o.length=l),o}var Ra={p:pn,j:ti,C:ri,G:ii,b:hn,n:mn,J:vn,_:gn,i:er,fa:bn,w:jn,F:ni,e:yn,Ba:wn,Da:Cn,Ca:Sn,va:En,T:li,Oa:An,ve:Rn,Ka:Tn,xa:Dn,Aa:Pn,Qa:xn,La:On,Pa:Fn,Ma:Nn,ma:Mn,ya:In,Te:Bn,ka:Ln,za:Un,ja:Hn,Na:qn,la:Wn,Fa:$n,Ha:_i,Ga:Dr,Sa:Gn,Ra:Vn,ba:Pr,Le:Yn,Me:qt,Je:Qn,Ke:zn,ta:Xn,He:Jn,Oe:Zn,Ie:ea,Pe:ta,ha:ra,Ne:ia,ua:na,Ge:aa,sa:ir,Qe:sa,Ta:Wt,oe:xr,nb:di,hd:oa,Va:la,Wa:Qo,Y:ca,ue:fa,rb:_a,oa:da,De:pa,Ue:ya,ga:ha,a:ma,Ea:va,Ja:nr,wa:ba,qa:Ey,P:dy,X:Up,Cd:Eh,ra:Sy,Z:_y,pa:Lp,Dd:Sh,x:Vp,da:ly,t:ny,$:oy,ea:uy,u:iy,d:xp,ca:gy,O:my,mc:Um,c:Op,W:vy,h:Np,ic:$m,m:Bp,na:ey,o:Mp,y:Qp,A:$p,Q:sy,U:ay,cb:Gp,z:zp,B:Kp,L:jy,r:hy,Nc:pm,Yc:im,$c:em,ed:Qh,Oc:dm,jc:Wm,Bd:Ah,Zc:rm,fd:Yh,ab:Qv,ze:xy,Td:lh,ec:Ym,Rc:cm,ye:Oy,sc:Fm,Pb:fv,Ya:Zv,Xa:eg,Ud:uh,Sd:ch,xb:Tv,Xb:iv,de:Xy,nd:Hh,tc:Om,hc:Gm,ke:$y,Yd:nh,Hd:jh,fc:Vm,Ub:sv,Xd:ah,pb:Mv,Zd:ih,qe:Ly,Vd:oh,Ob:_v,kc:qm,lc:Hm,zb:Av,jb:Hv,$a:zv,xe:Fy,ce:Jy,_b:ev,wb:Dv,$b:Zm,kb:Uv,Ab:Ev,Wd:sh,ac:Jm,dc:Qm,cc:zm,bc:Xm,Xc:nm,cd:Xh,Fc:wm,he:Vy,Cc:Sm,gd:Vh,be:Zy,se:Iy,ld:Wh,kd:$h,Ce:Ty,Be:Dy,Pd:dh,Fe:Ay,qd:Bh,jd:Gh,Pc:_m,od:Uh,yd:Dh,pc:Im,Sc:lm,Id:bh,Jc:vm,Qb:cv,zd:Th,xd:Ph,Gc:jm,Uc:om,wc:Pm,Lc:hm,Gd:wh,Ad:Rh,Dc:Cm,Lb:yv,Za:Jv,Ic:gm,Hc:bm,Jb:mv,md:qh,Bb:Sv,Kc:mm,yc:Tm,Cb:Cv,Db:kv,xc:Dm,v:Dp,k:Fp,D:fy,tb:Ov,K:cy,ub:xv,f:Pp,R:qp,V:wy,uc:Hp,g:Wp,l:Ip,Se:ky,s:ry,q:Zp,ia:by,E:Yp,N:ty,S:yy,M:Xp,Re:Cy,Ia:py,aa:Jp,pd:Lh,sb:Fv,Qc:fm,Ac:Am,wd:xh,dd:zh,nc:Lm,mb:Bv,me:qy,Jd:gh,Yb:rv,hb:Wv,Vc:sm,Wc:am,zc:Rm,Vb:av,Hb:gv,qc:Mm,oc:Bm,vd:Oh,le:Wy,id:Kh,Fd:kh,Wb:nv,td:Nh,_d:rh,_a:Xv,$d:th,lb:Lv,fe:Qy,ae:eh,rc:Nm,rd:Ih,Nd:yh,ie:Ky,ib:qv,te:My,we:Ny,Ae:Py,Md:hh,gb:$v,Kd:vh,Eb:wv,ud:Fh,Mb:pv,Ib:vv,Rb:lv,ob:Iv,Od:ph,fb:Gv,sd:Mh,Tc:um,Ee:Ry,pe:Uy,Nb:dv,ee:zy,_c:tm,ne:Hy,ge:Yy,gc:Km,Rd:fh,Qd:_h,Kb:hv,vb:Pv,Gb:bv,Mc:ym,bd:Jh,je:Gy,eb:Kv,Ld:mh,qb:Nv,Ed:Ch,vc:xm,bb:Yv,db:Vv,ad:Zh,re:By,Tb:ov,yb:Rv,Bc:Em,Ec:km,Fb:jv,Zb:tv,Sb:uv,I:ja,H:wa,Ua:Ea},zo=ei(),Ta=e.___wasm_call_ctors=function(){return(Ta=e.___wasm_call_ctors=e.asm.We).apply(null,arguments)},Da=e._main=function(){return(Da=e._main=e.asm.Xe).apply(null,arguments)},Pa=e._duckdb_web_fs_glob_add_path=function(){return(Pa=e._duckdb_web_fs_glob_add_path=e.asm.Ye).apply(null,arguments)},xa=e._duckdb_web_clear_response=function(){return(xa=e._duckdb_web_clear_response=e.asm.Ze).apply(null,arguments)},Oa=e._duckdb_web_fail_with=function(){return(Oa=e._duckdb_web_fail_with=e.asm._e).apply(null,arguments)},Fa=e._duckdb_web_reset=function(){return(Fa=e._duckdb_web_reset=e.asm.$e).apply(null,arguments)},Na=e._duckdb_web_connect=function(){return(Na=e._duckdb_web_connect=e.asm.af).apply(null,arguments)},Ma=e._duckdb_web_disconnect=function(){return(Ma=e._duckdb_web_disconnect=e.asm.bf).apply(null,arguments)},Ia=e._duckdb_web_flush_files=function(){return(Ia=e._duckdb_web_flush_files=e.asm.cf).apply(null,arguments)},Ba=e._duckdb_web_flush_file=function(){return(Ba=e._duckdb_web_flush_file=e.asm.df).apply(null,arguments)},La=e._duckdb_web_open=function(){return(La=e._duckdb_web_open=e.asm.ef).apply(null,arguments)},Ua=e._duckdb_web_get_global_file_info=function(){return(Ua=e._duckdb_web_get_global_file_info=e.asm.ff).apply(null,arguments)},Ha=e._duckdb_web_collect_file_stats=function(){return(Ha=e._duckdb_web_collect_file_stats=e.asm.gf).apply(null,arguments)},qa=e._duckdb_web_export_file_stats=function(){return(qa=e._duckdb_web_export_file_stats=e.asm.hf).apply(null,arguments)},Wa=e._duckdb_web_fs_drop_file=function(){return(Wa=e._duckdb_web_fs_drop_file=e.asm.jf).apply(null,arguments)},$a=e._duckdb_web_fs_drop_files=function(){return($a=e._duckdb_web_fs_drop_files=e.asm.kf).apply(null,arguments)},Ga=e._duckdb_web_fs_glob_file_infos=function(){return(Ga=e._duckdb_web_fs_glob_file_infos=e.asm.lf).apply(null,arguments)},sr=e._duckdb_web_fs_get_file_info_by_id=function(){return(sr=e._duckdb_web_fs_get_file_info_by_id=e.asm.mf).apply(null,arguments)},or=e._duckdb_web_fs_get_file_info_by_name=function(){return(or=e._duckdb_web_fs_get_file_info_by_name=e.asm.nf).apply(null,arguments)},Fr=e._duckdb_web_fs_set_file_descriptor=function(){return(Fr=e._duckdb_web_fs_set_file_descriptor=e.asm.of).apply(null,arguments)},Nr=e._duckdb_web_fs_register_file_url=function(){return(Nr=e._duckdb_web_fs_register_file_url=e.asm.pf).apply(null,arguments)},Ka=e._duckdb_web_fs_register_file_buffer=function(){return(Ka=e._duckdb_web_fs_register_file_buffer=e.asm.qf).apply(null,arguments)},mi=e._duckdb_web_copy_file_to_buffer=function(){return(mi=e._duckdb_web_copy_file_to_buffer=e.asm.rf).apply(null,arguments)},vi=e._duckdb_web_copy_file_to_path=function(){return(vi=e._duckdb_web_copy_file_to_path=e.asm.sf).apply(null,arguments)},Mr=e._duckdb_web_get_version=function(){return(Mr=e._duckdb_web_get_version=e.asm.tf).apply(null,arguments)},ur=e._duckdb_web_get_feature_flags=function(){return(ur=e._duckdb_web_get_feature_flags=e.asm.uf).apply(null,arguments)},lr=e._duckdb_web_tokenize=function(){return(lr=e._duckdb_web_tokenize=e.asm.vf).apply(null,arguments)},Va=e._duckdb_web_udf_scalar_create=function(){return(Va=e._duckdb_web_udf_scalar_create=e.asm.wf).apply(null,arguments)},Ya=e._duckdb_web_prepared_create=function(){return(Ya=e._duckdb_web_prepared_create=e.asm.xf).apply(null,arguments)},Ir=e._duckdb_web_prepared_close=function(){return(Ir=e._duckdb_web_prepared_close=e.asm.yf).apply(null,arguments)},Qa=e._duckdb_web_prepared_run=function(){return(Qa=e._duckdb_web_prepared_run=e.asm.zf).apply(null,arguments)},za=e._duckdb_web_prepared_send=function(){return(za=e._duckdb_web_prepared_send=e.asm.Af).apply(null,arguments)},gi=e._duckdb_web_query_run=function(){return(gi=e._duckdb_web_query_run=e.asm.Bf).apply(null,arguments)},h=e._duckdb_web_pending_query_start=function(){return(h=e._duckdb_web_pending_query_start=e.asm.Cf).apply(null,arguments)},g=e._duckdb_web_pending_query_poll=function(){return(g=e._duckdb_web_pending_query_poll=e.asm.Df).apply(null,arguments)},C=e._duckdb_web_pending_query_cancel=function(){return(C=e._duckdb_web_pending_query_cancel=e.asm.Ef).apply(null,arguments)},T=e._duckdb_web_query_fetch_results=function(){return(T=e._duckdb_web_query_fetch_results=e.asm.Ff).apply(null,arguments)},M=e._duckdb_web_get_tablenames=function(){return(M=e._duckdb_web_get_tablenames=e.asm.Gf).apply(null,arguments)},X=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(X=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Hf).apply(null,arguments)},G=e._duckdb_web_insert_csv_from_path=function(){return(G=e._duckdb_web_insert_csv_from_path=e.asm.If).apply(null,arguments)},q=e._duckdb_web_insert_json_from_path=function(){return(q=e._duckdb_web_insert_json_from_path=e.asm.Jf).apply(null,arguments)},Z=e._htonl=function(){return(Z=e._htonl=e.asm.Kf).apply(null,arguments)},ye=e._htons=function(){return(ye=e._htons=e.asm.Lf).apply(null,arguments)},ge=e._ntohs=function(){return(ge=e._ntohs=e.asm.Mf).apply(null,arguments)},Ge=e._malloc=function(){return(Ge=e._malloc=e.asm.Nf).apply(null,arguments)},Se=e._free=function(){return(Se=e._free=e.asm.Of).apply(null,arguments)},w=e._setThrew=function(){return(w=e._setThrew=e.asm.Pf).apply(null,arguments)},b=e.stackSave=function(){return(b=e.stackSave=e.asm.Qf).apply(null,arguments)},j=e.stackRestore=function(){return(j=e.stackRestore=e.asm.Rf).apply(null,arguments)},it=e.stackAlloc=function(){return(it=e.stackAlloc=e.asm.Sf).apply(null,arguments)},ft=e.___cxa_can_catch=function(){return(ft=e.___cxa_can_catch=e.asm.Tf).apply(null,arguments)},U=e.___cxa_is_pointer_type=function(){return(U=e.___cxa_is_pointer_type=e.asm.Uf).apply(null,arguments)},ne=e.dynCall_jiiii=function(){return(ne=e.dynCall_jiiii=e.asm.Wf).apply(null,arguments)},Te=e.dynCall_iiiiij=function(){return(Te=e.dynCall_iiiiij=e.asm.Xf).apply(null,arguments)},Ue=e.dynCall_iiiiijj=function(){return(Ue=e.dynCall_iiiiijj=e.asm.Yf).apply(null,arguments)},Gt=e.dynCall_viijii=function(){return(Gt=e.dynCall_viijii=e.asm.Zf).apply(null,arguments)},bi=e.dynCall_j=function(){return(bi=e.dynCall_j=e.asm._f).apply(null,arguments)},Xo=e.dynCall_ji=function(){return(Xo=e.dynCall_ji=e.asm.$f).apply(null,arguments)},Jo=e.dynCall_iij=function(){return(Jo=e.dynCall_iij=e.asm.ag).apply(null,arguments)},Zo=e.dynCall_viij=function(){return(Zo=e.dynCall_viij=e.asm.bg).apply(null,arguments)},eu=e.dynCall_viijji=function(){return(eu=e.dynCall_viijji=e.asm.cg).apply(null,arguments)},tu=e.dynCall_viijj=function(){return(tu=e.dynCall_viijj=e.asm.dg).apply(null,arguments)},ru=e.dynCall_viiijj=function(){return(ru=e.dynCall_viiijj=e.asm.eg).apply(null,arguments)},iu=e.dynCall_viiji=function(){return(iu=e.dynCall_viiji=e.asm.fg).apply(null,arguments)},nu=e.dynCall_vijjj=function(){return(nu=e.dynCall_vijjj=e.asm.gg).apply(null,arguments)},au=e.dynCall_iiijj=function(){return(au=e.dynCall_iiijj=e.asm.hg).apply(null,arguments)},su=e.dynCall_viiij=function(){return(su=e.dynCall_viiij=e.asm.ig).apply(null,arguments)},ou=e.dynCall_viijij=function(){return(ou=e.dynCall_viijij=e.asm.jg).apply(null,arguments)},uu=e.dynCall_iiij=function(){return(uu=e.dynCall_iiij=e.asm.kg).apply(null,arguments)},lu=e.dynCall_vijijj=function(){return(lu=e.dynCall_vijijj=e.asm.lg).apply(null,arguments)},cu=e.dynCall_viiijjj=function(){return(cu=e.dynCall_viiijjj=e.asm.mg).apply(null,arguments)},fu=e.dynCall_iji=function(){return(fu=e.dynCall_iji=e.asm.ng).apply(null,arguments)},_u=e.dynCall_viji=function(){return(_u=e.dynCall_viji=e.asm.og).apply(null,arguments)},du=e.dynCall_vij=function(){return(du=e.dynCall_vij=e.asm.pg).apply(null,arguments)},pu=e.dynCall_viiiij=function(){return(pu=e.dynCall_viiiij=e.asm.qg).apply(null,arguments)},yu=e.dynCall_jii=function(){return(yu=e.dynCall_jii=e.asm.rg).apply(null,arguments)},hu=e.dynCall_iiji=function(){return(hu=e.dynCall_iiji=e.asm.sg).apply(null,arguments)},mu=e.dynCall_iiiij=function(){return(mu=e.dynCall_iiiij=e.asm.tg).apply(null,arguments)},vu=e.dynCall_iiiiiji=function(){return(vu=e.dynCall_iiiiiji=e.asm.ug).apply(null,arguments)},gu=e.dynCall_iiiji=function(){return(gu=e.dynCall_iiiji=e.asm.vg).apply(null,arguments)},bu=e.dynCall_iiiiji=function(){return(bu=e.dynCall_iiiiji=e.asm.wg).apply(null,arguments)},ju=e.dynCall_jiii=function(){return(ju=e.dynCall_jiii=e.asm.xg).apply(null,arguments)},wu=e.dynCall_jij=function(){return(wu=e.dynCall_jij=e.asm.yg).apply(null,arguments)},ku=e.dynCall_viijiiiii=function(){return(ku=e.dynCall_viijiiiii=e.asm.zg).apply(null,arguments)},Cu=e.dynCall_iiijii=function(){return(Cu=e.dynCall_iiijii=e.asm.Ag).apply(null,arguments)},Su=e.dynCall_jiijii=function(){return(Su=e.dynCall_jiijii=e.asm.Bg).apply(null,arguments)},Eu=e.dynCall_viiijii=function(){return(Eu=e.dynCall_viiijii=e.asm.Cg).apply(null,arguments)},Au=e.dynCall_fiijii=function(){return(Au=e.dynCall_fiijii=e.asm.Dg).apply(null,arguments)},Ru=e.dynCall_diijii=function(){return(Ru=e.dynCall_diijii=e.asm.Eg).apply(null,arguments)},Tu=e.dynCall_iiiiiiijii=function(){return(Tu=e.dynCall_iiiiiiijii=e.asm.Fg).apply(null,arguments)},Du=e.dynCall_vijj=function(){return(Du=e.dynCall_vijj=e.asm.Gg).apply(null,arguments)},Pu=e.dynCall_jiiijii=function(){return(Pu=e.dynCall_jiiijii=e.asm.Hg).apply(null,arguments)},xu=e.dynCall_jiijiii=function(){return(xu=e.dynCall_jiijiii=e.asm.Ig).apply(null,arguments)},Ou=e.dynCall_viiiiji=function(){return(Ou=e.dynCall_viiiiji=e.asm.Jg).apply(null,arguments)},Fu=e.dynCall_jiiiijii=function(){return(Fu=e.dynCall_jiiiijii=e.asm.Kg).apply(null,arguments)},Nu=e.dynCall_jiiiiijiiii=function(){return(Nu=e.dynCall_jiiiiijiiii=e.asm.Lg).apply(null,arguments)},Mu=e.dynCall_jiiijiii=function(){return(Mu=e.dynCall_jiiijiii=e.asm.Mg).apply(null,arguments)},Iu=e.dynCall_viiiiijiiii=function(){return(Iu=e.dynCall_viiiiijiiii=e.asm.Ng).apply(null,arguments)},Bu=e.dynCall_viiijjij=function(){return(Bu=e.dynCall_viiijjij=e.asm.Og).apply(null,arguments)},Lu=e.dynCall_viijiii=function(){return(Lu=e.dynCall_viijiii=e.asm.Pg).apply(null,arguments)},Uu=e.dynCall_vijijjiij=function(){return(Uu=e.dynCall_vijijjiij=e.asm.Qg).apply(null,arguments)},Hu=e.dynCall_viiijjiij=function(){return(Hu=e.dynCall_viiijjiij=e.asm.Rg).apply(null,arguments)},qu=e.dynCall_viiiijjjj=function(){return(qu=e.dynCall_viiiijjjj=e.asm.Sg).apply(null,arguments)},Wu=e.dynCall_viijiiiiij=function(){return(Wu=e.dynCall_viijiiiiij=e.asm.Tg).apply(null,arguments)},$u=e.dynCall_viiijiiiijjj=function(){return($u=e.dynCall_viiijiiiijjj=e.asm.Ug).apply(null,arguments)},Gu=e.dynCall_viijijiiiijjj=function(){return(Gu=e.dynCall_viijijiiiijjj=e.asm.Vg).apply(null,arguments)},Ku=e.dynCall_jj=function(){return(Ku=e.dynCall_jj=e.asm.Wg).apply(null,arguments)},Vu=e.dynCall_jd=function(){return(Vu=e.dynCall_jd=e.asm.Xg).apply(null,arguments)},Yu=e.dynCall_jf=function(){return(Yu=e.dynCall_jf=e.asm.Yg).apply(null,arguments)},Qu=e.dynCall_iijjj=function(){return(Qu=e.dynCall_iijjj=e.asm.Zg).apply(null,arguments)},zu=e.dynCall_iiijji=function(){return(zu=e.dynCall_iiijji=e.asm._g).apply(null,arguments)},Xu=e.dynCall_vijijiiiijjj=function(){return(Xu=e.dynCall_vijijiiiijjj=e.asm.$g).apply(null,arguments)},Ju=e.dynCall_viiiiiij=function(){return(Ju=e.dynCall_viiiiiij=e.asm.ah).apply(null,arguments)},Zu=e.dynCall_iiiiiiji=function(){return(Zu=e.dynCall_iiiiiiji=e.asm.bh).apply(null,arguments)},el=e.dynCall_iiiiiiiiji=function(){return(el=e.dynCall_iiiiiiiiji=e.asm.ch).apply(null,arguments)},tl=e.dynCall_viiiiijj=function(){return(tl=e.dynCall_viiiiijj=e.asm.dh).apply(null,arguments)},rl=e.dynCall_vijiii=function(){return(rl=e.dynCall_vijiii=e.asm.eh).apply(null,arguments)},il=e.dynCall_viijjj=function(){return(il=e.dynCall_viijjj=e.asm.fh).apply(null,arguments)},nl=e.dynCall_vijjij=function(){return(nl=e.dynCall_vijjij=e.asm.gh).apply(null,arguments)},al=e.dynCall_jiiiii=function(){return(al=e.dynCall_jiiiii=e.asm.hh).apply(null,arguments)},sl=e.dynCall_viijjji=function(){return(sl=e.dynCall_viijjji=e.asm.ih).apply(null,arguments)},ol=e.dynCall_vijiiii=function(){return(ol=e.dynCall_vijiiii=e.asm.jh).apply(null,arguments)},ul=e.dynCall_iijjijj=function(){return(ul=e.dynCall_iijjijj=e.asm.kh).apply(null,arguments)},ll=e.dynCall_viiiijiiiii=function(){return(ll=e.dynCall_viiiijiiiii=e.asm.lh).apply(null,arguments)},cl=e.dynCall_viiiijiiii=function(){return(cl=e.dynCall_viiiijiiii=e.asm.mh).apply(null,arguments)},fl=e.dynCall_iiiiiij=function(){return(fl=e.dynCall_iiiiiij=e.asm.nh).apply(null,arguments)},_l=e.dynCall_iiiiiiiiiiji=function(){return(_l=e.dynCall_iiiiiiiiiiji=e.asm.oh).apply(null,arguments)},dl=e.dynCall_iiiiiiiij=function(){return(dl=e.dynCall_iiiiiiiij=e.asm.ph).apply(null,arguments)},pl=e.dynCall_jiiijjj=function(){return(pl=e.dynCall_jiiijjj=e.asm.qh).apply(null,arguments)},yl=e.dynCall_viijijj=function(){return(yl=e.dynCall_viijijj=e.asm.rh).apply(null,arguments)},hl=e.dynCall_jiiiiji=function(){return(hl=e.dynCall_jiiiiji=e.asm.sh).apply(null,arguments)},ml=e.dynCall_iiiiijij=function(){return(ml=e.dynCall_iiiiijij=e.asm.th).apply(null,arguments)},vl=e.dynCall_viiiiiji=function(){return(vl=e.dynCall_viiiiiji=e.asm.uh).apply(null,arguments)},gl=e.dynCall_jiiiiiii=function(){return(gl=e.dynCall_jiiiiiii=e.asm.vh).apply(null,arguments)},bl=e.dynCall_vijiji=function(){return(bl=e.dynCall_vijiji=e.asm.wh).apply(null,arguments)},jl=e.dynCall_jiiiij=function(){return(jl=e.dynCall_jiiiij=e.asm.xh).apply(null,arguments)},wl=e.dynCall_jijjij=function(){return(wl=e.dynCall_jijjij=e.asm.yh).apply(null,arguments)},kl=e.dynCall_viiiijiiiiiiii=function(){return(kl=e.dynCall_viiiijiiiiiiii=e.asm.zh).apply(null,arguments)},Cl=e.dynCall_ij=function(){return(Cl=e.dynCall_ij=e.asm.Ah).apply(null,arguments)},Sl=e.dynCall_jjj=function(){return(Sl=e.dynCall_jjj=e.asm.Bh).apply(null,arguments)},El=e.dynCall_jiiji=function(){return(El=e.dynCall_jiiji=e.asm.Ch).apply(null,arguments)},Al=e.dynCall_jjiji=function(){return(Al=e.dynCall_jjiji=e.asm.Dh).apply(null,arguments)},Rl=e.dynCall_jiiij=function(){return(Rl=e.dynCall_jiiij=e.asm.Eh).apply(null,arguments)},Tl=e.dynCall_jijij=function(){return(Tl=e.dynCall_jijij=e.asm.Fh).apply(null,arguments)},Dl=e.dynCall_jijj=function(){return(Dl=e.dynCall_jijj=e.asm.Gh).apply(null,arguments)},Pl=e.dynCall_jiiijj=function(){return(Pl=e.dynCall_jiiijj=e.asm.Hh).apply(null,arguments)},xl=e.dynCall_vjii=function(){return(xl=e.dynCall_vjii=e.asm.Ih).apply(null,arguments)},Ol=e.dynCall_jjjjjjd=function(){return(Ol=e.dynCall_jjjjjjd=e.asm.Jh).apply(null,arguments)},Fl=e.dynCall_viiiji=function(){return(Fl=e.dynCall_viiiji=e.asm.Kh).apply(null,arguments)},Nl=e.dynCall_ijii=function(){return(Nl=e.dynCall_ijii=e.asm.Lh).apply(null,arguments)},Ml=e.dynCall_vjiiii=function(){return(Ml=e.dynCall_vjiiii=e.asm.Mh).apply(null,arguments)},Il=e.dynCall_viiiiijiii=function(){return(Il=e.dynCall_viiiiijiii=e.asm.Nh).apply(null,arguments)},Bl=e.dynCall_jiij=function(){return(Bl=e.dynCall_jiij=e.asm.Oh).apply(null,arguments)},Ll=e.dynCall_vijji=function(){return(Ll=e.dynCall_vijji=e.asm.Ph).apply(null,arguments)},Ul=e.dynCall_iiiijjii=function(){return(Ul=e.dynCall_iiiijjii=e.asm.Qh).apply(null,arguments)},Hl=e.dynCall_iiiiijji=function(){return(Hl=e.dynCall_iiiiijji=e.asm.Rh).apply(null,arguments)},ql=e.dynCall_viiijjii=function(){return(ql=e.dynCall_viiijjii=e.asm.Sh).apply(null,arguments)},Wl=e.dynCall_viiiijji=function(){return(Wl=e.dynCall_viiiijji=e.asm.Th).apply(null,arguments)},$l=e.dynCall_viiiijjii=function(){return($l=e.dynCall_viiiijjii=e.asm.Uh).apply(null,arguments)},Gl=e.dynCall_viiiiijji=function(){return(Gl=e.dynCall_viiiiijji=e.asm.Vh).apply(null,arguments)},Kl=e.dynCall_iidj=function(){return(Kl=e.dynCall_iidj=e.asm.Wh).apply(null,arguments)},Vl=e.dynCall_ijji=function(){return(Vl=e.dynCall_ijji=e.asm.Xh).apply(null,arguments)},Yl=e.dynCall_iiiiiiij=function(){return(Yl=e.dynCall_iiiiiiij=e.asm.Yh).apply(null,arguments)},Ql=e.dynCall_iiiiiiiiiiiij=function(){return(Ql=e.dynCall_iiiiiiiiiiiij=e.asm.Zh).apply(null,arguments)},zl=e.dynCall_iiijjiiji=function(){return(zl=e.dynCall_iiijjiiji=e.asm._h).apply(null,arguments)},Xl=e.dynCall_iiijjiij=function(){return(Xl=e.dynCall_iiijjiij=e.asm.$h).apply(null,arguments)},Jl=e.dynCall_iiiiiiiji=function(){return(Jl=e.dynCall_iiiiiiiji=e.asm.ai).apply(null,arguments)},Zl=e.dynCall_iiiidjj=function(){return(Zl=e.dynCall_iiiidjj=e.asm.bi).apply(null,arguments)},ec=e.dynCall_iiiijjj=function(){return(ec=e.dynCall_iiiijjj=e.asm.ci).apply(null,arguments)},tc=e.dynCall_vijii=function(){return(tc=e.dynCall_vijii=e.asm.di).apply(null,arguments)},rc=e.dynCall_jiiiiiijii=function(){return(rc=e.dynCall_jiiiiiijii=e.asm.ei).apply(null,arguments)},ic=e.dynCall_iiiijji=function(){return(ic=e.dynCall_iiiijji=e.asm.fi).apply(null,arguments)},nc=e.dynCall_viiijji=function(){return(nc=e.dynCall_viiijji=e.asm.gi).apply(null,arguments)},ac=e.dynCall_jiiiiii=function(){return(ac=e.dynCall_jiiiiii=e.asm.hi).apply(null,arguments)},sc=e.dynCall_iiijiii=function(){return(sc=e.dynCall_iiijiii=e.asm.ii).apply(null,arguments)},oc=e.dynCall_iiiiijii=function(){return(oc=e.dynCall_iiiiijii=e.asm.ji).apply(null,arguments)},uc=e.dynCall_iiijiij=function(){return(uc=e.dynCall_iiijiij=e.asm.ki).apply(null,arguments)},lc=e.dynCall_iijjii=function(){return(lc=e.dynCall_iijjii=e.asm.li).apply(null,arguments)},cc=e.dynCall_iijjiii=function(){return(cc=e.dynCall_iijjiii=e.asm.mi).apply(null,arguments)},fc=e.dynCall_iijjiiii=function(){return(fc=e.dynCall_iijjiiii=e.asm.ni).apply(null,arguments)},_c=e.dynCall_iijji=function(){return(_c=e.dynCall_iijji=e.asm.oi).apply(null,arguments)},dc=e.dynCall_iijiiii=function(){return(dc=e.dynCall_iijiiii=e.asm.pi).apply(null,arguments)},pc=e.dynCall_iijii=function(){return(pc=e.dynCall_iijii=e.asm.qi).apply(null,arguments)},yc=e.dynCall_vjjii=function(){return(yc=e.dynCall_vjjii=e.asm.ri).apply(null,arguments)},hc=e.dynCall_viiiijii=function(){return(hc=e.dynCall_viiiijii=e.asm.si).apply(null,arguments)},mc=e.dynCall_iiiijiii=function(){return(mc=e.dynCall_iiiijiii=e.asm.ti).apply(null,arguments)},vc=e.dynCall_iiijij=function(){return(vc=e.dynCall_iiijij=e.asm.ui).apply(null,arguments)},gc=e.dynCall_iijj=function(){return(gc=e.dynCall_iijj=e.asm.vi).apply(null,arguments)},bc=e.dynCall_iiiijj=function(){return(bc=e.dynCall_iiiijj=e.asm.wi).apply(null,arguments)},jc=e.dynCall_viiijiii=function(){return(jc=e.dynCall_viiijiii=e.asm.xi).apply(null,arguments)},wc=e.dynCall_viiiijij=function(){return(wc=e.dynCall_viiiijij=e.asm.yi).apply(null,arguments)},kc=e.dynCall_iiijiiii=function(){return(kc=e.dynCall_iiijiiii=e.asm.zi).apply(null,arguments)},Cc=e.dynCall_iiiiijjiijj=function(){return(Cc=e.dynCall_iiiiijjiijj=e.asm.Ai).apply(null,arguments)},Sc=e.dynCall_viijiiji=function(){return(Sc=e.dynCall_viijiiji=e.asm.Bi).apply(null,arguments)},Ec=e.dynCall_iiijjii=function(){return(Ec=e.dynCall_iiijjii=e.asm.Ci).apply(null,arguments)},Ac=e.dynCall_vjjijij=function(){return(Ac=e.dynCall_vjjijij=e.asm.Di).apply(null,arguments)},Rc=e.dynCall_vijjji=function(){return(Rc=e.dynCall_vijjji=e.asm.Ei).apply(null,arguments)},Tc=e.dynCall_jiiiji=function(){return(Tc=e.dynCall_jiiiji=e.asm.Fi).apply(null,arguments)},Dc=e.dynCall_viijjii=function(){return(Dc=e.dynCall_viijjii=e.asm.Gi).apply(null,arguments)},Pc=e.dynCall_viiiijj=function(){return(Pc=e.dynCall_viiiijj=e.asm.Hi).apply(null,arguments)},xc=e.dynCall_jijiii=function(){return(xc=e.dynCall_jijiii=e.asm.Ii).apply(null,arguments)},Oc=e.dynCall_viijiiij=function(){return(Oc=e.dynCall_viijiiij=e.asm.Ji).apply(null,arguments)},Fc=e.dynCall_vijiiiji=function(){return(Fc=e.dynCall_vijiiiji=e.asm.Ki).apply(null,arguments)},Nc=e.dynCall_viiijij=function(){return(Nc=e.dynCall_viiijij=e.asm.Li).apply(null,arguments)},Mc=e.dynCall_viijiij=function(){return(Mc=e.dynCall_viijiij=e.asm.Mi).apply(null,arguments)},Ic=e.dynCall_vijij=function(){return(Ic=e.dynCall_vijij=e.asm.Ni).apply(null,arguments)},Bc=e.dynCall_vjiiiji=function(){return(Bc=e.dynCall_vjiiiji=e.asm.Oi).apply(null,arguments)},Lc=e.dynCall_viijiiiiii=function(){return(Lc=e.dynCall_viijiiiiii=e.asm.Pi).apply(null,arguments)},Uc=e.dynCall_jjjji=function(){return(Uc=e.dynCall_jjjji=e.asm.Qi).apply(null,arguments)},Hc=e.dynCall_jjjii=function(){return(Hc=e.dynCall_jjjii=e.asm.Ri).apply(null,arguments)},qc=e.dynCall_jji=function(){return(qc=e.dynCall_jji=e.asm.Si).apply(null,arguments)},Wc=e.dynCall_iijiji=function(){return(Wc=e.dynCall_iijiji=e.asm.Ti).apply(null,arguments)},$c=e.dynCall_viiijijiji=function(){return($c=e.dynCall_viiijijiji=e.asm.Ui).apply(null,arguments)},Gc=e.dynCall_iiijjj=function(){return(Gc=e.dynCall_iiijjj=e.asm.Vi).apply(null,arguments)},Kc=e.dynCall_vj=function(){return(Kc=e.dynCall_vj=e.asm.Wi).apply(null,arguments)},Vc=e.dynCall_iiiijii=function(){return(Vc=e.dynCall_iiiijii=e.asm.Xi).apply(null,arguments)},Yc=e.dynCall_iijiii=function(){return(Yc=e.dynCall_iijiii=e.asm.Yi).apply(null,arguments)},Qc=e.dynCall_vijiijj=function(){return(Qc=e.dynCall_vijiijj=e.asm.Zi).apply(null,arguments)},zc=e.dynCall_vifiijj=function(){return(zc=e.dynCall_vifiijj=e.asm._i).apply(null,arguments)},Xc=e.dynCall_vidiijj=function(){return(Xc=e.dynCall_vidiijj=e.asm.$i).apply(null,arguments)},Jc=e.dynCall_viiiiij=function(){return(Jc=e.dynCall_viiiiij=e.asm.aj).apply(null,arguments)},Zc=e.dynCall_ijjiii=function(){return(Zc=e.dynCall_ijjiii=e.asm.bj).apply(null,arguments)},ef=e.dynCall_vijijjji=function(){return(ef=e.dynCall_vijijjji=e.asm.cj).apply(null,arguments)},tf=e.dynCall_viijiijj=function(){return(tf=e.dynCall_viijiijj=e.asm.dj).apply(null,arguments)},rf=e.dynCall_viiiiijjji=function(){return(rf=e.dynCall_viiiiijjji=e.asm.ej).apply(null,arguments)},nf=e.dynCall_iiijiijj=function(){return(nf=e.dynCall_iiijiijj=e.asm.fj).apply(null,arguments)},af=e.dynCall_viiijijjj=function(){return(af=e.dynCall_viiijijjj=e.asm.gj).apply(null,arguments)},sf=e.dynCall_iijiijj=function(){return(sf=e.dynCall_iijiijj=e.asm.hj).apply(null,arguments)},of=e.dynCall_viiijjjji=function(){return(of=e.dynCall_viiijjjji=e.asm.ij).apply(null,arguments)},uf=e.dynCall_viiiijiii=function(){return(uf=e.dynCall_viiiijiii=e.asm.jj).apply(null,arguments)},lf=e.dynCall_viijiiii=function(){return(lf=e.dynCall_viijiiii=e.asm.kj).apply(null,arguments)},cf=e.dynCall_vijjiiii=function(){return(cf=e.dynCall_vijjiiii=e.asm.lj).apply(null,arguments)},ff=e.dynCall_vijijjiiiii=function(){return(ff=e.dynCall_vijijjiiiii=e.asm.mj).apply(null,arguments)},_f=e.dynCall_vijjiiiii=function(){return(_f=e.dynCall_vijjiiiii=e.asm.nj).apply(null,arguments)},df=e.dynCall_iiijjji=function(){return(df=e.dynCall_iiijjji=e.asm.oj).apply(null,arguments)},pf=e.dynCall_iiiiiijji=function(){return(pf=e.dynCall_iiiiiijji=e.asm.pj).apply(null,arguments)},yf=e.dynCall_iiiiijjj=function(){return(yf=e.dynCall_iiiiijjj=e.asm.qj).apply(null,arguments)},hf=e.dynCall_jijiiii=function(){return(hf=e.dynCall_jijiiii=e.asm.rj).apply(null,arguments)},mf=e.dynCall_viiijiji=function(){return(mf=e.dynCall_viiijiji=e.asm.sj).apply(null,arguments)},vf=e.dynCall_iiijjjii=function(){return(vf=e.dynCall_iiijjjii=e.asm.tj).apply(null,arguments)},gf=e.dynCall_iiiiijjji=function(){return(gf=e.dynCall_iiiiijjji=e.asm.uj).apply(null,arguments)},bf=e.dynCall_viijiji=function(){return(bf=e.dynCall_viijiji=e.asm.vj).apply(null,arguments)};function Dp(i){var n=b();try{Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Pp(i,n,a){var s=b();try{Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function xp(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Op(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Fp(i,n){var a=b();try{Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Np(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Mp(i,n,a,s,o,l){var c=b();try{return Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Ip(i,n,a,s,o){var l=b();try{Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Bp(i,n,a,s,o){var l=b();try{return Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Lp(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Up(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Hp(i,n,a,s){var o=b();try{Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function qp(i,n,a,s){var o=b();try{Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Wp(i,n,a,s){var o=b();try{Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function $p(i,n,a,s,o,l,c,f){var _=b();try{return Q(i)(n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Gp(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Kp(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Vp(i){var n=b();try{return Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Yp(i,n,a,s,o,l,c,f){var _=b();try{Q(i)(n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Qp(i,n,a,s,o,l,c){var f=b();try{return Q(i)(n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function zp(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Xp(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Jp(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de){var je=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de)}catch(Be){if(j(je),Be!==Be+0)throw Be;w(1,0)}}function Zp(i,n,a,s,o,l,c){var f=b();try{Q(i)(n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function ey(i,n,a,s,o,l){var c=b();try{return Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function ty(i,n,a,s,o,l,c,f,_){var p=b();try{Q(i)(n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function ry(i,n,a,s,o,l){var c=b();try{Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function iy(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function ny(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function ay(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Q(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function sy(i,n,a,s,o,l,c,f,_){var p=b();try{return Q(i)(n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function oy(i,n,a,s,o){var l=b();try{return Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function uy(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function ly(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function cy(i,n,a){var s=b();try{Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function fy(i,n,a){var s=b();try{Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function _y(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function dy(i,n){var a=b();try{return Q(i)(n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function py(i,n,a,s,o,l,c,f,_,p,m,k,E,H){var Y=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H)}catch(de){if(j(Y),de!==de+0)throw de;w(1,0)}}function yy(i,n,a,s,o,l,c,f,_,p){var m=b();try{Q(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function hy(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de){var je=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de)}catch(Be){if(j(je),Be!==Be+0)throw Be;w(1,0)}}function my(i,n,a,s,o){var l=b();try{return Q(i)(n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function vy(i,n,a,s){var o=b();try{return Q(i)(n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function gy(i,n,a){var s=b();try{return Q(i)(n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function by(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function jy(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y){var de=b();try{return Q(i)(n,a,s,o,l,c,f,_,p,m,k,E,H,Y)}catch(je){if(j(de),je!==je+0)throw je;w(1,0)}}function wy(i,n,a,s,o,l){var c=b();try{Q(i)(n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function ky(i,n,a,s,o,l,c,f,_,p){var m=b();try{Q(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Cy(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Q(i)(n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Sy(i){var n=b();try{return Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Ey(i){var n=b();try{return Q(i)()}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function Ay(i,n,a,s,o){var l=b();try{return ne(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Ry(i,n,a,s,o,l,c){var f=b();try{tu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Ty(i,n){var a=b();try{return Xo(i,n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Dy(i,n,a){var s=b();try{return yu(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Py(i,n,a,s,o,l,c){var f=b();try{Gt(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function xy(i,n,a,s,o,l,c){var f=b();try{return Te(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Oy(i,n,a,s,o,l,c,f,_){var p=b();try{return Ue(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Fy(i,n,a,s){var o=b();try{return Jo(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Ny(i,n,a,s,o,l){var c=b();try{iu(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function My(i,n,a,s,o){var l=b();try{Zo(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Iy(i){var n=b();try{return bi(i)}catch(a){if(j(n),a!==a+0)throw a;w(1,0)}}function By(i,n,a,s,o,l,c,f){var _=b();try{nu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Ly(i,n,a,s,o,l,c){var f=b();try{return au(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Uy(i,n,a,s,o,l,c,f){var _=b();try{eu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Hy(i,n,a,s){var o=b();try{du(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function qy(i,n,a,s,o,l,c){var f=b();try{pu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Wy(i,n,a,s,o,l){var c=b();try{su(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function $y(i,n,a,s,o){var l=b();try{return uu(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Gy(i,n,a,s,o,l,c,f,_){var p=b();try{lu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Ky(i,n,a,s,o,l,c,f,_,p){var m=b();try{cu(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Vy(i,n,a,s){var o=b();try{return fu(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Yy(i,n,a,s,o){var l=b();try{_u(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Qy(i,n,a,s,o,l,c,f){var _=b();try{ru(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function zy(i,n,a,s,o,l,c,f,_){var p=b();try{il(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Xy(i,n,a,s,o,l,c,f){var _=b();try{return bc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Jy(i,n,a,s,o){var l=b();try{return hu(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Zy(i,n,a,s,o,l,c,f){var _=b();try{return Zc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function eh(i,n,a,s,o,l,c,f,_){var p=b();try{nc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function th(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{$c(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function rh(i,n,a,s,o,l,c,f,_){var p=b();try{Nc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function ih(i,n,a,s,o,l,c,f){var _=b();try{return vc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function nh(i,n,a,s,o,l){var c=b();try{return gu(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function ah(i,n,a,s,o,l,c,f,_){var p=b();try{return uc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function sh(i,n,a,s,o,l){var c=b();try{return gc(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function oh(i,n,a,s,o,l,c,f){var _=b();try{return zu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function uh(i,n,a,s,o,l){var c=b();try{return mu(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function lh(i,n,a,s,o,l,c,f){var _=b();try{return vu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function ch(i,n,a,s,o,l,c){var f=b();try{return bu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function fh(i,n,a,s,o,l,c){var f=b();try{rl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function _h(i,n,a,s,o,l,c,f){var _=b();try{ol(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function dh(i,n,a,s){var o=b();try{return ju(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function ph(i,n,a,s,o,l,c,f){var _=b();try{ou(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function yh(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Bu(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function hh(i,n,a,s,o,l,c,f){var _=b();try{Lu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function mh(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{Uu(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function vh(i,n,a,s,o,l,c,f,_,p){var m=b();try{ku(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function gh(i,n,a,s,o,l,c,f){var _=b();try{Ou(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function bh(i,n,a,s,o,l,c,f,_){var p=b();try{return Fu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function jh(i,n,a,s,o,l,c){var f=b();try{return Cu(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function wh(i,n,a,s,o,l,c){var f=b();try{return Su(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function kh(i,n,a,s,o,l,c,f){var _=b();try{Eu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Ch(i,n,a,s,o,l){var c=b();try{Du(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Sh(i,n,a,s,o,l,c){var f=b();try{return Au(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Eh(i,n,a,s,o,l,c){var f=b();try{return Ru(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Ah(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return Tu(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Rh(i,n,a,s,o,l,c,f){var _=b();try{return xu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Th(i,n,a,s,o,l,c,f){var _=b();try{return Pu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Dh(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return Nu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Ph(i,n,a,s,o,l,c,f,_){var p=b();try{return Mu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function xh(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Iu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Oh(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{qu(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Fh(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Wu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Nh(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de){var je=b();try{$u(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de)}catch(Be){if(j(je),Be!==Be+0)throw Be;w(1,0)}}function Mh(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je,Be){var B=b();try{Gu(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je,Be)}catch(re){if(j(B),re!==re+0)throw re;w(1,0)}}function Ih(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{Hu(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Bh(i,n,a,s,o,l){var c=b();try{return al(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Lh(i,n,a,s,o,l,c,f,_){var p=b();try{Ju(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Uh(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return rc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Hh(i,n,a,s,o,l,c,f,_){var p=b();try{return ic(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function qh(i,n,a){var s=b();try{return Ku(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Wh(i,n){var a=b();try{return Vu(i,n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function $h(i,n){var a=b();try{return Yu(i,n)}catch(s){if(j(a),s!==s+0)throw s;w(1,0)}}function Gh(i,n,a,s,o,l,c){var f=b();try{return ac(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Kh(i,n,a,s,o,l,c){var f=b();try{Fl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Vh(i,n,a,s,o,l){var c=b();try{return Vl(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Yh(i,n,a,s,o,l,c,f,_){var p=b();try{return Zu(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Qh(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return el(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function zh(i,n,a,s,o,l,c,f,_,p){var m=b();try{tl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Xh(i,n,a,s,o,l,c,f){var _=b();try{return Qu(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Jh(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je){var Be=b();try{Xu(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y,de,je)}catch(B){if(j(Be),B!==B+0)throw B;w(1,0)}}function Zh(i,n,a,s,o,l,c,f,_){var p=b();try{nl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function em(i,n,a,s,o,l,c,f,_,p){var m=b();try{return dl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function tm(i,n,a,s,o,l,c,f,_,p){var m=b();try{sl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function rm(i,n,a,s,o,l,c,f){var _=b();try{return fl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function im(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{return _l(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function nm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return ul(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function am(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{ll(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function sm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{cl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function om(i,n,a,s,o,l,c,f,_,p){var m=b();try{return pl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function um(i,n,a,s,o,l,c,f,_,p){var m=b();try{yl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function lm(i,n,a,s,o,l,c,f){var _=b();try{return hl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function cm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return ml(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function fm(i,n,a,s,o,l,c,f,_){var p=b();try{vl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function _m(i,n,a,s,o,l,c,f){var _=b();try{return gl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function dm(i,n,a,s,o,l,c,f,_){var p=b();try{return Yl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function pm(i,n,a,s,o,l,c,f,_,p,m,k,E,H){var Y=b();try{return Ql(i,n,a,s,o,l,c,f,_,p,m,k,E,H)}catch(de){if(j(Y),de!==de+0)throw de;w(1,0)}}function ym(i,n,a,s,o,l,c,f){var _=b();try{bl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function hm(i,n,a,s,o,l){var c=b();try{return El(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function mm(i,n,a,s,o,l,c){var f=b();try{return Al(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function vm(i,n,a,s,o,l){var c=b();try{return Rl(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function gm(i,n,a,s,o,l,c){var f=b();try{return Tl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function bm(i,n,a,s,o,l){var c=b();try{return Dl(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function jm(i,n,a,s,o,l,c,f){var _=b();try{return Pl(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function wm(i,n,a){var s=b();try{return Cl(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function km(i,n,a,s,o,l,c){var f=b();try{Ml(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Cm(i,n,a,s){var o=b();try{return wu(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Sm(i,n,a,s,o){var l=b();try{return Nl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Em(i,n,a,s,o){var l=b();try{xl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Am(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Il(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Rm(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y){var de=b();try{kl(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y)}catch(je){if(j(de),je!==je+0)throw je;w(1,0)}}function Tm(i,n,a,s,o){var l=b();try{return Sl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Dm(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return Ol(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Pm(i,n,a,s,o){var l=b();try{return Bl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function xm(i,n,a,s,o,l,c){var f=b();try{Ll(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Om(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Ul(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Fm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Hl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Nm(i,n,a,s,o,l,c,f,_,p){var m=b();try{ql(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Mm(i,n,a,s,o,l,c,f,_,p){var m=b();try{Wl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Im(i,n,a,s,o,l,c){var f=b();try{return jl(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Bm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{$l(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Lm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Gl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Um(i,n,a,s,o){var l=b();try{return Kl(i,n,a,s,o)}catch(c){if(j(l),c!==c+0)throw c;w(1,0)}}function Hm(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return zl(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function qm(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return Xl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Wm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return Jl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function $m(i,n,a,s,o,l,c,f,_){var p=b();try{return Zl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Gm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return ec(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Km(i,n,a,s,o,l){var c=b();try{tc(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function Vm(i,n,a,s,o,l,c,f){var _=b();try{return sc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Ym(i,n,a,s,o,l,c,f,_){var p=b();try{return oc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Qm(i,n,a,s,o,l,c,f){var _=b();try{return lc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function zm(i,n,a,s,o,l,c,f,_){var p=b();try{return cc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Xm(i,n,a,s,o,l,c,f,_,p){var m=b();try{return fc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Jm(i,n,a,s,o,l,c){var f=b();try{return _c(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Zm(i,n,a,s,o,l,c,f){var _=b();try{return dc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function ev(i,n,a,s,o,l){var c=b();try{return pc(i,n,a,s,o,l)}catch(f){if(j(c),f!==f+0)throw f;w(1,0)}}function tv(i,n,a,s,o,l,c){var f=b();try{yc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function rv(i,n,a,s,o,l,c,f,_){var p=b();try{hc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function iv(i,n,a,s,o,l,c,f,_){var p=b();try{return mc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function nv(i,n,a,s,o,l,c,f,_){var p=b();try{jc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function av(i,n,a,s,o,l,c,f,_,p){var m=b();try{wc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function sv(i,n,a,s,o,l,c,f,_){var p=b();try{return kc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function ov(i,n,a,s,o,l,c,f,_){var p=b();try{Rc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function uv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Ac(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function lv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Sc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function cv(i,n,a,s,o,l,c){var f=b();try{return Tc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function fv(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y){var de=b();try{return Cc(i,n,a,s,o,l,c,f,_,p,m,k,E,H,Y)}catch(je){if(j(de),je!==je+0)throw je;w(1,0)}}function _v(i,n,a,s,o,l,c,f,_){var p=b();try{return Ec(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function dv(i,n,a,s,o,l,c,f,_){var p=b();try{Dc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function pv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Oc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function yv(i,n,a,s,o,l,c){var f=b();try{return xc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function hv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Fc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function mv(i,n,a,s,o,l,c,f,_){var p=b();try{return wl(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function vv(i,n,a,s,o,l,c,f,_){var p=b();try{Mc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function gv(i,n,a,s,o,l,c,f,_){var p=b();try{Pc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function bv(i,n,a,s,o,l,c){var f=b();try{Ic(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function jv(i,n,a,s,o,l,c,f,_){var p=b();try{Bc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function wv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{Lc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function kv(i,n,a,s,o,l,c,f){var _=b();try{return Uc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Cv(i,n,a,s,o,l,c){var f=b();try{return Hc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Sv(i,n,a,s){var o=b();try{return qc(i,n,a,s)}catch(l){if(j(o),l!==l+0)throw l;w(1,0)}}function Ev(i,n,a,s,o,l,c,f){var _=b();try{return Wc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Av(i,n,a,s,o,l,c,f,_){var p=b();try{return Gc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Rv(i,n,a){var s=b();try{Kc(i,n,a)}catch(o){if(j(s),o!==o+0)throw o;w(1,0)}}function Tv(i,n,a,s,o,l,c,f){var _=b();try{return Vc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Dv(i,n,a,s,o,l,c){var f=b();try{return Yc(i,n,a,s,o,l,c)}catch(_){if(j(f),_!==_+0)throw _;w(1,0)}}function Pv(i,n,a,s,o,l,c,f,_,p){var m=b();try{Qc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function xv(i,n,a,s,o,l,c,f,_){var p=b();try{zc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Ov(i,n,a,s,o,l,c,f,_){var p=b();try{Xc(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Fv(i,n,a,s,o,l,c,f){var _=b();try{Jc(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Nv(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{ef(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}function Mv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return nf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Iv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{tf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Bv(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{rf(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Lv(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{af(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Uv(i,n,a,s,o,l,c,f,_,p){var m=b();try{return sf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Hv(i,n,a,s,o,l,c,f,_,p){var m=b();try{return df(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function qv(i,n,a,s,o,l,c,f,_,p,m,k,E){var H=b();try{of(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Y){if(j(H),Y!==Y+0)throw Y;w(1,0)}}function Wv(i,n,a,s,o,l,c,f,_,p){var m=b();try{uf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function $v(i,n,a,s,o,l,c,f,_){var p=b();try{lf(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Gv(i,n,a,s,o,l,c,f,_){var p=b();try{bf(i,n,a,s,o,l,c,f,_)}catch(m){if(j(p),m!==m+0)throw m;w(1,0)}}function Kv(i,n,a,s,o,l,c,f,_,p,m,k,E,H){var Y=b();try{ff(i,n,a,s,o,l,c,f,_,p,m,k,E,H)}catch(de){if(j(Y),de!==de+0)throw de;w(1,0)}}function Vv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{_f(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Yv(i,n,a,s,o,l,c,f,_,p){var m=b();try{cf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Qv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return pf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function zv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return vf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function Xv(i,n,a,s,o,l,c,f,_,p){var m=b();try{mf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(j(m),k!==k+0)throw k;w(1,0)}}function Jv(i,n,a,s,o,l,c,f){var _=b();try{return hf(i,n,a,s,o,l,c,f)}catch(p){if(j(_),p!==p+0)throw p;w(1,0)}}function Zv(i,n,a,s,o,l,c,f,_,p,m){var k=b();try{return yf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(j(k),E!==E+0)throw E;w(1,0)}}function eg(i,n,a,s,o,l,c,f,_,p,m,k){var E=b();try{return gf(i,n,a,s,o,l,c,f,_,p,m,k)}catch(H){if(j(E),H!==H+0)throw H;w(1,0)}}e.ccall=le;var ji;function wi(i){this.name="ExitStatus",this.message="Program terminated with exit("+i+")",this.status=i}var tg=!1;$e=function i(){ji||Xa(),ji||($e=i)};function rg(i){var n=e._main,a=0,s=0;try{var o=n(a,s);return ig(o,!0),o}catch(l){return dn(l)}finally{tg=!0}}function Xa(i){if(i=i||v,kt>0||(un(),kt>0))return;function n(){ji||(ji=!0,e.calledRun=!0,!Ce&&(ln(),cn(),u(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),jf&&rg(i),fn()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),n()},1)):n()}e.run=Xa;function ig(i,n){D=i,ng(i)}function ng(i){D=i,zr()||(e.onExit&&e.onExit(i),Ce=!0),A(i,new wi(i))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var jf=!0;return e.noInitialRun&&(jf=!1),Xa(),t.ready}})(),nn=T0;var Ap=cr(require("fs")),wr=class extends Hr{constructor(e,u,d,y){super(e,u);this.mainModulePath=d,this.pthreadWorkerPath=y}locateFile(e,u){if(e.endsWith(".wasm"))return this.mainModulePath;if(e.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=${u} path=${e}`)}instantiateWasm(e,u){globalThis.DUCKDB_RUNTIME={};for(let y of Object.getOwnPropertyNames(this._runtime))y!="constructor"&&(globalThis.DUCKDB_RUNTIME[y]=Object.getOwnPropertyDescriptor(this._runtime,y).value);let d=Ap.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(d,e).then(y=>{u(y.instance,y.module)}),[]}instantiateImpl(e){return nn({...e,instantiateWasm:this.instantiateWasm.bind(this)})}};var an=class extends wr{constructor(t,e,u,d=null){super(t,e,u,d)}instantiateImpl(t){return nn({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var Rp={},D0=(()=>{var r=Rp.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},u,d;e.ready=new Promise(function(h,g){u=h,d=g});var y=Object.assign({},e),v=[],S="./this.program",A=(h,g)=>{throw g},I=typeof window=="object",R=typeof importScripts=="function",L=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",P="";function fe(h){return e.locateFile?e.locateFile(h,P):P+h}var K,z,ee,oe;function be(h){if(h instanceof lr)return;J("exiting due to exception: "+h)}var me,Ae,ie;L?(R?P=require("path").dirname(P)+"/":P=__dirname+"/",ie=()=>{Ae||(me=require("fs"),Ae=require("path"))},K=function(g,C){return ie(),g=Ae.normalize(g),me.readFileSync(g,C?void 0:"utf8")},ee=h=>{var g=K(h,!0);return g.buffer||(g=new Uint8Array(g)),g},z=(h,g,C)=>{ie(),h=Ae.normalize(h),me.readFile(h,function(T,M){T?C(T):g(M.buffer)})},process.argv.length>1&&(S=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(h){if(!(h instanceof lr))throw h}),process.on("unhandledRejection",function(h){throw h}),A=(h,g)=>{if(Yr())throw process.exitCode=h,g;be(g),process.exit(h)},e.inspect=function(){return"[Emscripten Module object]"}):(I||R)&&(R?P=self.location.href:typeof document<"u"&&document.currentScript&&(P=document.currentScript.src),r&&(P=r),P.indexOf("blob:")!==0?P=P.substr(0,P.replace(/[?#].*/,"").lastIndexOf("/")+1):P="",K=h=>{var g=new XMLHttpRequest;return g.open("GET",h,!1),g.send(null),g.responseText},R&&(ee=h=>{var g=new XMLHttpRequest;return g.open("GET",h,!1),g.responseType="arraybuffer",g.send(null),new Uint8Array(g.response)}),z=(h,g,C)=>{var T=new XMLHttpRequest;T.open("GET",h,!0),T.responseType="arraybuffer",T.onload=()=>{if(T.status==200||T.status==0&&T.response){g(T.response);return}C()},T.onerror=C,T.send(null)},oe=h=>document.title=h);var ke=e.print||console.log.bind(console),J=e.printErr||console.warn.bind(console);Object.assign(e,y),y=null,e.arguments&&(v=e.arguments),e.thisProgram&&(S=e.thisProgram),e.quit&&(A=e.quit);var te;e.wasmBinary&&(te=e.wasmBinary);var $=e.noExitRuntime||!0;typeof WebAssembly!="object"&&$e("no native wasm support detected");var pe,F=!1,ue;function ae(h,g){h||$e(g)}function Ce(h){var g=e["_"+h];return g}function D(h,g,C,T,M){var X={string:function(b){var j=0;if(b!=null&&b!==0){var it=(b.length<<2)+1;j=Mr(it),We(b,j,it)}return j},array:function(b){var j=Mr(b.length);return _t(b,j),j}};function G(b){return g==="string"?le(b):g==="boolean"?Boolean(b):b}var q=Ce(h),Z=[],ye=0;if(T)for(var ge=0;ge<T.length;ge++){var Ge=X[C[ge]];Ge?(ye===0&&(ye=mi()),Z[ge]=Ge(T[ge])):Z[ge]=T[ge]}var Se=q.apply(null,Z);function w(b){return ye!==0&&vi(ye),G(b)}return Se=w(Se),Se}var x=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Pe(h,g,C){for(var T=g+C,M=g;h[M]&&!(M>=T);)++M;if(M-g>16&&h.buffer&&x)return x.decode(h.subarray(g,M));for(var X="";g<M;){var G=h[g++];if(!(G&128)){X+=String.fromCharCode(G);continue}var q=h[g++]&63;if((G&224)==192){X+=String.fromCharCode((G&31)<<6|q);continue}var Z=h[g++]&63;if((G&240)==224?G=(G&15)<<12|q<<6|Z:G=(G&7)<<18|q<<12|Z<<6|h[g++]&63,G<65536)X+=String.fromCharCode(G);else{var ye=G-65536;X+=String.fromCharCode(55296|ye>>10,56320|ye&1023)}}return X}function le(h,g){return h?Pe(se,h,g):""}function Ye(h,g,C,T){if(!(T>0))return 0;for(var M=C,X=C+T-1,G=0;G<h.length;++G){var q=h.charCodeAt(G);if(q>=55296&&q<=57343){var Z=h.charCodeAt(++G);q=65536+((q&1023)<<10)|Z&1023}if(q<=127){if(C>=X)break;g[C++]=q}else if(q<=2047){if(C+1>=X)break;g[C++]=192|q>>6,g[C++]=128|q&63}else if(q<=65535){if(C+2>=X)break;g[C++]=224|q>>12,g[C++]=128|q>>6&63,g[C++]=128|q&63}else{if(C+3>=X)break;g[C++]=240|q>>18,g[C++]=128|q>>12&63,g[C++]=128|q>>6&63,g[C++]=128|q&63}}return g[C]=0,C-M}function We(h,g,C){return Ye(h,se,g,C)}function xe(h){for(var g=0,C=0;C<h.length;++C){var T=h.charCodeAt(C);T>=55296&&T<=57343&&(T=65536+((T&1023)<<10)|h.charCodeAt(++C)&1023),T<=127?++g:T<=2047?g+=2:T<=65535?g+=3:g+=4}return g}function _t(h,g){Qe.set(h,g)}function It(h,g,C){for(var T=0;T<h.length;++T)Qe[g++>>0]=h.charCodeAt(T);C||(Qe[g>>0]=0)}var bt,Qe,se,at,Je,O,ve,W,N;function Re(h){bt=h,e.HEAP8=Qe=new Int8Array(h),e.HEAP16=at=new Int16Array(h),e.HEAP32=O=new Int32Array(h),e.HEAPU8=se=new Uint8Array(h),e.HEAPU16=Je=new Uint16Array(h),e.HEAPU32=ve=new Uint32Array(h),e.HEAPF32=W=new Float32Array(h),e.HEAPF64=N=new Float64Array(h)}var He=e.INITIAL_MEMORY||16777216,Fe,jt=[],At=[],Kr=[],kr=[],Vr=!1;function Yr(){return $}function Qr(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)ln(e.preRun.shift());Lt(jt)}function on(){Vr=!0,Lt(At)}function zr(){Lt(Kr)}function un(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)fn(e.postRun.shift());Lt(kr)}function ln(h){jt.unshift(h)}function cn(h){At.unshift(h)}function fn(h){kr.unshift(h)}var wt=0,Cr=null,Bt=null;function kt(h){wt++,e.monitorRunDependencies&&e.monitorRunDependencies(wt)}function Sr(h){if(wt--,e.monitorRunDependencies&&e.monitorRunDependencies(wt),wt==0&&(Cr!==null&&(clearInterval(Cr),Cr=null),Bt)){var g=Bt;Bt=null,g()}}function $e(h){e.onAbort&&e.onAbort(h),h="Aborted("+h+")",J(h),F=!0,ue=1,h+=". Build with -sASSERTIONS for more info.";var g=new WebAssembly.RuntimeError(h);throw d(g),g}var _n="data:application/octet-stream;base64,";function Xr(h){return h.startsWith(_n)}var Oe;e.locateFile?(Oe="./duckdb-eh.wasm",Xr(Oe)||(Oe=fe(Oe))):Oe=new URL("./duckdb-eh.wasm",Rp.url).toString();function Jr(h){try{if(h==Oe&&te)return new Uint8Array(te);if(ee)return ee(h);throw"both async and sync fetching of the wasm failed"}catch(g){$e(g)}}function Zr(){return!te&&(I||R)&&typeof fetch=="function"?fetch(Oe,{credentials:"same-origin"}).then(function(h){if(!h.ok)throw"failed to load wasm binary file at '"+Oe+"'";return h.arrayBuffer()}).catch(function(){return Jr(Oe)}):Promise.resolve().then(function(){return Jr(Oe)})}function Ze(){var h={a:la};function g(G,q){var Z=G.exports;e.asm=Z,pe=e.asm.ha,Re(pe.buffer),Fe=e.asm.db,cn(e.asm.ia),Sr("wasm-instantiate")}kt("wasm-instantiate");function C(G){g(G.instance)}function T(G){return Zr().then(function(q){return WebAssembly.instantiate(q,h)}).then(function(q){return q}).then(G,function(q){J("failed to asynchronously prepare wasm: "+q),$e(q)})}function M(){return!te&&typeof WebAssembly.instantiateStreaming=="function"&&!Xr(Oe)&&typeof fetch=="function"?fetch(Oe,{credentials:"same-origin"}).then(function(G){var q=WebAssembly.instantiateStreaming(G,h);return q.then(C,function(Z){return J("wasm streaming compile failed: "+Z),J("falling back to ArrayBuffer instantiation"),T(C)})}):T(C)}if(e.instantiateWasm)try{var X=e.instantiateWasm(h,g);return X}catch(G){return J("Module.instantiateWasm callback failed with error: "+G),!1}return M().catch(d),{}}function Lt(h){for(;h.length>0;){var g=h.shift();if(typeof g=="function"){g(e);continue}var C=g.func;typeof C=="number"?g.arg===void 0?ei(C)():ei(C)(g.arg):C(g.arg===void 0?null:g.arg)}}var Xt=[];function ei(h){var g=Xt[h];return g||(h>=Xt.length&&(Xt.length=h+1),Xt[h]=g=Fe.get(h)),g}function Jt(h){if(h instanceof lr||h=="unwind")return ue;A(1,h)}function Zt(h,g,C,T){$e("Assertion failed: "+le(h)+", at: "+[g?le(g):"unknown filename",C,T?le(T):"unknown function"])}var Q={buffers:[null,[],[]],printChar:function(h,g){var C=Q.buffers[h];g===0||g===10?((h===1?ke:J)(Pe(C,0)),C.length=0):C.push(g)},varargs:void 0,get:function(){Q.varargs+=4;var h=O[Q.varargs-4>>2];return h},getStr:function(h){var g=le(h);return g}};function dn(h,g,C,T,M){}function pn(){J("missing function: $SOCKFS"),$e(-1)}function ti(){J("missing function: $FS"),$e(-1)}function dt(h){var g=pn.getSocket(h);if(!g)throw new ti.ErrnoError(8);return g}function Er(h){return(h&255)+"."+(h>>8&255)+"."+(h>>16&255)+"."+(h>>24&255)}function Ut(h){var g="",C=0,T=0,M=0,X=0,G=0,q=0,Z=[h[0]&65535,h[0]>>16,h[1]&65535,h[1]>>16,h[2]&65535,h[2]>>16,h[3]&65535,h[3]>>16],ye=!0,ge="";for(q=0;q<5;q++)if(Z[q]!==0){ye=!1;break}if(ye){if(ge=Er(Z[6]|Z[7]<<16),Z[5]===-1)return g="::ffff:",g+=ge,g;if(Z[5]===0)return g="::",ge==="0.0.0.0"&&(ge=""),ge==="0.0.0.1"&&(ge="1"),g+=ge,g}for(C=0;C<8;C++)Z[C]===0&&(C-M>1&&(G=0),M=C,G++),G>T&&(T=G,X=C-T+1);for(C=0;C<8;C++){if(T>1&&Z[C]===0&&C>=X&&C<X+T){C===X&&(g+=":",X===0&&(g+=":"));continue}g+=Number(Fr(Z[C]&65535)).toString(16),g+=C<7?":":""}return g}function ri(h,g){var C=at[h>>1],T=Fr(Je[h+2>>1]),M;switch(C){case 2:if(g!==16)return{errno:28};M=O[h+4>>2],M=Er(M);break;case 10:if(g!==28)return{errno:28};M=[O[h+8>>2],O[h+12>>2],O[h+16>>2],O[h+20>>2]],M=Ut(M);break;default:return{errno:5}}return{family:C,addr:M,port:T}}function et(h){for(var g=h.split("."),C=0;C<4;C++){var T=Number(g[C]);if(isNaN(T))return null;g[C]=T}return(g[0]|g[1]<<8|g[2]<<16|g[3]<<24)>>>0}function ut(h){return parseInt(h)}function er(h){var g,C,T,M,X=/^((?=.*::)(?!.*::.+::)(::)?([\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,G=[];if(!X.test(h))return null;if(h==="::")return[0,0,0,0,0,0,0,0];for(h.startsWith("::")?h=h.replace("::","Z:"):h=h.replace("::",":Z:"),h.indexOf(".")>0?(h=h.replace(new RegExp("[.]","g"),":"),g=h.split(":"),g[g.length-4]=ut(g[g.length-4])+ut(g[g.length-3])*256,g[g.length-3]=ut(g[g.length-2])+ut(g[g.length-1])*256,g=g.slice(0,g.length-2)):g=h.split(":"),T=0,M=0,C=0;C<g.length;C++)if(typeof g[C]=="string")if(g[C]==="Z"){for(M=0;M<8-g.length+1;M++)G[C+M]=0;T=M-1}else G[C+T]=or(parseInt(g[C],16));else G[C+T]=g[C];return[G[1]<<16|G[0],G[3]<<16|G[2],G[5]<<16|G[4],G[7]<<16|G[6]]}var tt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(h){var g=et(h);if(g!==null||(g=er(h),g!==null))return h;var C;if(tt.address_map.addrs[h])C=tt.address_map.addrs[h];else{var T=tt.address_map.id++;ae(T<65535,"exceeded max address mappings of 65535"),C="172.29."+(T&255)+"."+(T&65280),tt.address_map.names[C]=h,tt.address_map.addrs[h]=C}return C},lookup_addr:function(h){return tt.address_map.names[h]?tt.address_map.names[h]:null}};function ii(h,g,C){if(C&&h===0)return null;var T=ri(h,g);if(T.errno)throw new ti.ErrnoError(T.errno);return T.addr=tt.lookup_addr(T.addr)||T.addr,T}function yn(h,g,C){var T=dt(h),M=ii(g,C);return T.sock_ops.bind(T,M.addr,M.port),0}function hn(h,g,C){var T=dt(h),M=ii(g,C);return T.sock_ops.connect(T,M.addr,M.port),0}function mn(h,g,C,T){return g=Q.getStr(g),g=Q.calculateAt(h,g),Q.doAccess(g,C)}function vn(h,g,C){return Q.varargs=C,0}function gn(h,g){}function bn(h,g,C){}function jn(h,g,C){}function ni(h,g){se.fill(0,h,h+g)}function Ie(h,g,C,T,M){switch(g){case 2:C=et(C),ni(h,16),M&&(O[M>>2]=16),at[h>>1]=g,O[h+4>>2]=C,at[h+2>>1]=or(T);break;case 10:C=er(C),ni(h,28),M&&(O[M>>2]=28),O[h>>2]=g,O[h+8>>2]=C[0],O[h+12>>2]=C[1],O[h+16>>2]=C[2],O[h+20>>2]=C[3],at[h+2>>1]=or(T);break;default:return 5}return 0}function wn(h,g,C){var T=dt(h);if(!T.daddr)return-53;var M=Ie(g,T.family,tt.lookup_name(T.daddr),T.dport,C);return 0}function kn(h,g,C,T,M){var X=dt(h);return g===1&&C===4?(O[T>>2]=X.error,O[M>>2]=4,X.error=null,0):-50}function ai(h,g,C){return Q.varargs=C,0}function Ht(h,g){}function Ar(h,g,C){}function si(h,g,C,T){}function oi(h,g,C,T){Q.varargs=T}function tr(h,g,C,T,M,X){var G=dt(h),q=G.sock_ops.recvmsg(G,C);if(!q)return 0;if(M)var Z=Ie(M,G.family,tt.lookup_name(q.addr),q.port,X);return se.set(q.buffer,g),q.buffer.byteLength}function rr(h,g,C,T){}function Rr(h){}function rt(h,g,C,T,M,X){}function ui(h,g,C){}function Cn(h,g){}function Sn(h,g,C){}function En(h){}var li="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function An(h,g){$e(li)}function Rn(h,g){$e(li)}function Tn(){return Date.now()}var ci=!0;function Tr(){return ci}function Dn(){$e("")}function Pn(h,g){return globalThis.DUCKDB_RUNTIME.createDirectory(e,h,g)}function xn(h,g){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,h,g)}function On(h,g){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,h,g)}function Fn(h,g){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,h,g)}function Nn(h){return globalThis.DUCKDB_RUNTIME.closeFile(e,h)}function Mn(h,g){return globalThis.DUCKDB_RUNTIME.checkFile(e,h,g)}function In(h){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,h)}function Bn(h,g,C,T){return globalThis.DUCKDB_RUNTIME.moveFile(e,h,g,C,T)}function Ln(h,g){return globalThis.DUCKDB_RUNTIME.openFile(e,h,g)}function Un(h,g,C,T){return globalThis.DUCKDB_RUNTIME.readFile(e,h,g,C,T)}function Hn(h,g){return globalThis.DUCKDB_RUNTIME.truncateFile(e,h,g)}function qn(h,g,C,T){return globalThis.DUCKDB_RUNTIME.writeFile(e,h,g,C,T)}function Wn(h,g){return globalThis.DUCKDB_RUNTIME.glob(e,h,g)}function $n(h){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,h)}function fi(h,g,C,T,M,X){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,h,g,C,T,M,X)}function _i(){return 2147483648}var Dr;L?Dr=()=>{var h=process.hrtime();return h[0]*1e3+h[1]/1e6}:Dr=()=>performance.now();function Gn(h,g,C){se.copyWithin(h,g,g+C)}function Kn(h){try{return pe.grow(h-bt.byteLength+65535>>>16),Re(pe.buffer),1}catch{}}function Vn(h){var g=se.length;h=h>>>0;var C=_i();if(h>C)return!1;let T=(Z,ye)=>Z+(ye-Z%ye)%ye;for(var M=1;M<=4;M*=2){var X=g*(1+.2/M);X=Math.min(X,h+100663296);var G=Math.min(C,T(Math.max(h,X),65536)),q=Kn(G);if(q)return!0}return!1}var Pr={};function Yn(){return S||"./this.program"}function qt(){if(!qt.strings){var h=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",g={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:h,_:Yn()};for(var C in Pr)Pr[C]===void 0?delete g[C]:g[C]=Pr[C];var T=[];for(var C in g)T.push(C+"="+g[C]);qt.strings=T}return qt.strings}function Qn(h,g){var C=0;return qt().forEach(function(T,M){var X=g+C;O[h+M*4>>2]=X,It(T,X),C+=T.length+1}),0}function zn(h,g){var C=qt();O[h>>2]=C.length;var T=0;return C.forEach(function(M){T+=M.length+1}),O[g>>2]=T,0}function Xn(h){return 0}function Jn(h,g,C,T,M,X){var G=Q.getStreamFromFD(h),q=Q.doReadv(G,g,C,T);return O[X>>2]=q,0}function Zn(h,g,C,T,M,X){var G=Q.getStreamFromFD(h),q=Q.doWritev(G,g,C,T);return O[X>>2]=q,0}function ea(h,g,C,T){var M=Q.getStreamFromFD(h),X=Q.doReadv(M,g,C);return O[T>>2]=X,0}function ta(h,g,C,T,M){}function ra(h){var g=Q.getStreamFromFD(h);return g.stream_ops&&g.stream_ops.fsync?-g.stream_ops.fsync(g):0}function ia(h,g,C,T){for(var M=0,X=0;X<C;X++){var G=O[g>>2],q=O[g+4>>2];g+=8;for(var Z=0;Z<q;Z++)Q.printChar(h,se[G+Z]);M+=q}return O[T>>2]=M,0}function na(h,g,C,T){var M=0,X=0,G=0,q=0,Z=0,ye=0,ge;function Ge(Se,w,b,j,it,ft){var U,ne,Te,Ue;return ne=Se===10?28:16,it=Se===10?Ut(it):Er(it),U=Nr(ne),Ue=Ie(U,Se,it,ft),ae(!Ue),Te=Nr(32),O[Te+4>>2]=Se,O[Te+8>>2]=w,O[Te+12>>2]=b,O[Te+24>>2]=j,O[Te+20>>2]=U,Se===10?O[Te+16>>2]=28:O[Te+16>>2]=16,O[Te+28>>2]=0,Te}if(C&&(G=O[C>>2],q=O[C+4>>2],Z=O[C+8>>2],ye=O[C+12>>2]),Z&&!ye&&(ye=Z===2?17:6),!Z&&ye&&(Z=ye===17?2:1),ye===0&&(ye=6),Z===0&&(Z=1),!h&&!g)return-2;if(G&-1088||C!==0&&O[C>>2]&2&&!h)return-1;if(G&32)return-2;if(Z!==0&&Z!==1&&Z!==2)return-7;if(q!==0&&q!==2&&q!==10)return-6;if(g&&(g=le(g),X=parseInt(g,10),isNaN(X)))return G&1024?-2:-8;if(!h)return q===0&&(q=2),(G&1)===0&&(q===2?M=sr(2130706433):M=[0,0,0,1]),ge=Ge(q,Z,ye,null,M,X),O[T>>2]=ge,0;if(h=le(h),M=et(h),M!==null)if(q===0||q===2)q=2;else if(q===10&&G&8)M=[0,0,sr(65535),M],q=10;else return-2;else if(M=er(h),M!==null)if(q===0||q===10)q=10;else return-2;return M!=null?(ge=Ge(q,Z,ye,h,M,X),O[T>>2]=ge,0):G&4?-2:(h=tt.lookup_name(h),M=et(h),q===0?q=2:q===10&&(M=[0,0,sr(65535),M]),ge=Ge(q,Z,ye,null,M,X),O[T>>2]=ge,0)}function aa(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var h=new Uint8Array(1);return function(){return crypto.getRandomValues(h),h[0]}}else if(L)try{var g=require("crypto");return function(){return g.randomBytes(1)[0]}}catch{}return function(){$e("randomDevice")}}function ir(h,g){ir.randomDevice||(ir.randomDevice=aa());for(var C=0;C<g;C++)Qe[h+C>>0]=ir.randomDevice();return 0}function sa(h,g,C,T,M,X,G){var q=ri(h,g);if(q.errno)return-6;var Z=q.port,ye=q.addr,ge=!1;if(C&&T){var Ge;if(G&1||!(Ge=tt.lookup_addr(ye))){if(G&8)return-2}else ye=Ge;var Se=We(ye,C,T);Se+1>=T&&(ge=!0)}if(M&&X){Z=""+Z;var Se=We(Z,M,X);Se+1>=X&&(ge=!0)}return ge?-12:0}function Wt(h){return h%4===0&&(h%100!==0||h%400===0)}function xr(h,g){for(var C=0,T=0;T<=g;C+=h[T++]);return C}var di=[31,29,31,30,31,30,31,31,30,31,30,31],pi=[31,28,31,30,31,30,31,31,30,31,30,31];function oa(h,g){for(var C=new Date(h.getTime());g>0;){var T=Wt(C.getFullYear()),M=C.getMonth(),X=(T?di:pi)[M];if(g>X-C.getDate())g-=X-C.getDate()+1,C.setDate(1),M<11?C.setMonth(M+1):(C.setMonth(0),C.setFullYear(C.getFullYear()+1));else return C.setDate(C.getDate()+g),C}return C}function Or(h,g,C,T){var M=O[T+40>>2],X={tm_sec:O[T>>2],tm_min:O[T+4>>2],tm_hour:O[T+8>>2],tm_mday:O[T+12>>2],tm_mon:O[T+16>>2],tm_year:O[T+20>>2],tm_wday:O[T+24>>2],tm_yday:O[T+28>>2],tm_isdst:O[T+32>>2],tm_gmtoff:O[T+36>>2],tm_zone:M?le(M):""},G=le(C),q={"%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 Z in q)G=G.replace(new RegExp(Z,"g"),q[Z]);var ye=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ge=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ge(U,ne,Te){for(var Ue=typeof U=="number"?U.toString():U||"";Ue.length<ne;)Ue=Te[0]+Ue;return Ue}function Se(U,ne){return Ge(U,ne,"0")}function w(U,ne){function Te(Gt){return Gt<0?-1:Gt>0?1:0}var Ue;return(Ue=Te(U.getFullYear()-ne.getFullYear()))===0&&(Ue=Te(U.getMonth()-ne.getMonth()))===0&&(Ue=Te(U.getDate()-ne.getDate())),Ue}function b(U){switch(U.getDay()){case 0:return new Date(U.getFullYear()-1,11,29);case 1:return U;case 2:return new Date(U.getFullYear(),0,3);case 3:return new Date(U.getFullYear(),0,2);case 4:return new Date(U.getFullYear(),0,1);case 5:return new Date(U.getFullYear()-1,11,31);case 6:return new Date(U.getFullYear()-1,11,30)}}function j(U){var ne=oa(new Date(U.tm_year+1900,0,1),U.tm_yday),Te=new Date(ne.getFullYear(),0,4),Ue=new Date(ne.getFullYear()+1,0,4),Gt=b(Te),bi=b(Ue);return w(Gt,ne)<=0?w(bi,ne)<=0?ne.getFullYear()+1:ne.getFullYear():ne.getFullYear()-1}var it={"%a":function(U){return ye[U.tm_wday].substring(0,3)},"%A":function(U){return ye[U.tm_wday]},"%b":function(U){return ge[U.tm_mon].substring(0,3)},"%B":function(U){return ge[U.tm_mon]},"%C":function(U){var ne=U.tm_year+1900;return Se(ne/100|0,2)},"%d":function(U){return Se(U.tm_mday,2)},"%e":function(U){return Ge(U.tm_mday,2," ")},"%g":function(U){return j(U).toString().substring(2)},"%G":function(U){return j(U)},"%H":function(U){return Se(U.tm_hour,2)},"%I":function(U){var ne=U.tm_hour;return ne==0?ne=12:ne>12&&(ne-=12),Se(ne,2)},"%j":function(U){return Se(U.tm_mday+xr(Wt(U.tm_year+1900)?di:pi,U.tm_mon-1),3)},"%m":function(U){return Se(U.tm_mon+1,2)},"%M":function(U){return Se(U.tm_min,2)},"%n":function(){return`
|
|
4
|
-
`},"%p":function(
|
|
1
|
+
"use strict";var wg=Object.create;var ki=Object.defineProperty;var kg=Object.getOwnPropertyDescriptor;var Cg=Object.getOwnPropertyNames;var Sg=Object.getPrototypeOf,Eg=Object.prototype.hasOwnProperty;var Y=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Ag=(r,t)=>{for(var e in t)ki(r,e,{get:t[e],enumerable:!0})},Df=(r,t,e,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of Cg(t))!Eg.call(r,d)&&d!==e&&ki(r,d,{get:()=>t[d],enumerable:!(u=kg(t,d))||u.enumerable});return r};var _r=(r,t,e)=>(e=r!=null?wg(Sg(r)):{},Df(t||!r||!r.__esModule?ki(e,"default",{value:r,enumerable:!0}):e,r)),Rg=r=>Df(ki({},"__esModule",{value:!0}),r);var $f=Y((lk,Wf)=>{"use strict";var Ng=async r=>{try{return(await WebAssembly.instantiate(r)).instance.exports.b(BigInt(0))===BigInt(0)}catch{return!1}},Mg=async r=>{try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(r)}catch{return!1}},Ig={bigInt:()=>Ng(new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,126,1,126,3,2,1,0,7,5,1,1,98,0,0,10,6,1,4,0,32,0,11])),bulkMemory:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),exceptions:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11])),multiValue:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,0,2,127,127,3,2,1,0,10,8,1,6,0,65,0,65,0,11])),mutableGlobals:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,2,8,1,1,97,1,98,3,127,1,6,6,1,127,1,65,0,11,7,5,1,1,97,3,1])),referenceTypes:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11])),saturatedFloatToInt:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,12,1,10,0,67,0,0,0,0,252,0,26,11])),signExtensions:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,65,0,192,26,11])),simd:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])),tailCall:async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,6,1,4,0,18,0,11])),threads:()=>Mg(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))};Wf.exports=Ig});var Kf=Y(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.splitWhen=pr.flatten=void 0;function Kg(r){return r.reduce((t,e)=>[].concat(t,e),[])}pr.flatten=Kg;function Vg(r,t){let e=[[]],u=0;for(let d of r)t(d)?(u++,e[u]=[]):e[u].push(d);return e}pr.splitWhen=Vg});var Vf=Y(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.isEnoentCodeError=void 0;function Yg(r){return r.code==="ENOENT"}Di.isEnoentCodeError=Yg});var Yf=Y(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.createDirentFromStats=void 0;var ys=class{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}};function Qg(r,t){return new ys(r,t)}Pi.createDirentFromStats=Qg});var Qf=Y(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.removeLeadingDotSegment=yt.escape=yt.makeAbsolute=yt.unixify=void 0;var zg=require("path"),Xg=2,Jg=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Zg(r){return r.replace(/\\/g,"/")}yt.unixify=Zg;function eb(r,t){return zg.resolve(r,t)}yt.makeAbsolute=eb;function tb(r){return r.replace(Jg,"\\$2")}yt.escape=tb;function rb(r){if(r.charAt(0)==="."){let t=r.charAt(1);if(t==="/"||t==="\\")return r.slice(Xg)}return r}yt.removeLeadingDotSegment=rb});var Xf=Y((gk,zf)=>{zf.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var e;e=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(e[2])return!0;t=t.slice(e.index+e[0].length)}return!1}});var e_=Y((bk,Zf)=>{var ib=Xf(),Jf={"{":"}","(":")","[":"]"},nb=function(r){if(r[0]==="!")return!0;for(var t=0,e=-2,u=-2,d=-2,y=-2,v=-2;t<r.length;){if(r[t]==="*"||r[t+1]==="?"&&/[\].+)]/.test(r[t])||u!==-1&&r[t]==="["&&r[t+1]!=="]"&&(u<t&&(u=r.indexOf("]",t)),u>t&&(v===-1||v>u||(v=r.indexOf("\\",t),v===-1||v>u)))||d!==-1&&r[t]==="{"&&r[t+1]!=="}"&&(d=r.indexOf("}",t),d>t&&(v=r.indexOf("\\",t),v===-1||v>d))||y!==-1&&r[t]==="("&&r[t+1]==="?"&&/[:!=]/.test(r[t+2])&&r[t+3]!==")"&&(y=r.indexOf(")",t),y>t&&(v=r.indexOf("\\",t),v===-1||v>y))||e!==-1&&r[t]==="("&&r[t+1]!=="|"&&(e<t&&(e=r.indexOf("|",t)),e!==-1&&r[e+1]!==")"&&(y=r.indexOf(")",e),y>e&&(v=r.indexOf("\\",e),v===-1||v>y))))return!0;if(r[t]==="\\"){var S=r[t+1];t+=2;var A=Jf[S];if(A){var I=r.indexOf(A,t);I!==-1&&(t=I+1)}if(r[t]==="!")return!0}else t++}return!1},ab=function(r){if(r[0]==="!")return!0;for(var t=0;t<r.length;){if(/[*?{}()[\]]/.test(r[t]))return!0;if(r[t]==="\\"){var e=r[t+1];t+=2;var u=Jf[e];if(u){var d=r.indexOf(u,t);d!==-1&&(t=d+1)}if(r[t]==="!")return!0}else t++}return!1};Zf.exports=function(t,e){if(typeof t!="string"||t==="")return!1;if(ib(t))return!0;var u=nb;return e&&e.strict===!1&&(u=ab),u(t)}});var r_=Y((jk,t_)=>{"use strict";var sb=e_(),ob=require("path").posix.dirname,ub=require("os").platform()==="win32",hs="/",lb=/\\/g,cb=/[\{\[].*[\}\]]$/,fb=/(^|[^\\])([\{\[]|\([^\)]+$)/,_b=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t_.exports=function(t,e){var u=Object.assign({flipBackslashes:!0},e);u.flipBackslashes&&ub&&t.indexOf(hs)<0&&(t=t.replace(lb,hs)),cb.test(t)&&(t+=hs),t+="a";do t=ob(t);while(sb(t)||fb.test(t));return t.replace(_b,"$1")}});var xi=Y(lt=>{"use strict";lt.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1;lt.find=(r,t)=>r.nodes.find(e=>e.type===t);lt.exceedsLimit=(r,t,e=1,u)=>u===!1||!lt.isInteger(r)||!lt.isInteger(t)?!1:(Number(t)-Number(r))/Number(e)>=u;lt.escapeNode=(r,t=0,e)=>{let u=r.nodes[t];!u||(e&&u.type===e||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)};lt.encloseBrace=r=>r.type!=="brace"?!1:r.commas>>0+r.ranges>>0===0?(r.invalid=!0,!0):!1;lt.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:r.commas>>0+r.ranges>>0===0||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1;lt.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0;lt.reduce=r=>r.reduce((t,e)=>(e.type==="text"&&t.push(e.value),e.type==="range"&&(e.type="text"),t),[]);lt.flatten=(...r)=>{let t=[],e=u=>{for(let d=0;d<u.length;d++){let y=u[d];Array.isArray(y)?e(y,t):y!==void 0&&t.push(y)}return t};return e(r),t}});var Oi=Y((kk,n_)=>{"use strict";var i_=xi();n_.exports=(r,t={})=>{let e=(u,d={})=>{let y=t.escapeInvalid&&i_.isInvalidBrace(d),v=u.invalid===!0&&t.escapeInvalid===!0,S="";if(u.value)return(y||v)&&i_.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let A of u.nodes)S+=e(A);return S};return e(r)}});var s_=Y((Ck,a_)=>{"use strict";a_.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}});var y_=Y((Sk,p_)=>{"use strict";var o_=s_(),$t=(r,t,e)=>{if(o_(r)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||r===t)return String(r);if(o_(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let u={relaxZeros:!0,...e};typeof u.strictZeros=="boolean"&&(u.relaxZeros=u.strictZeros===!1);let d=String(u.relaxZeros),y=String(u.shorthand),v=String(u.capture),S=String(u.wrap),A=r+":"+t+"="+d+y+v+S;if($t.cache.hasOwnProperty(A))return $t.cache[A].result;let I=Math.min(r,t),R=Math.max(r,t);if(Math.abs(I-R)===1){let z=r+"|"+t;return u.capture?`(${z})`:u.wrap===!1?z:`(?:${z})`}let U=d_(r)||d_(t),P={min:r,max:t,a:I,b:R},fe=[],K=[];if(U&&(P.isPadded=U,P.maxLen=String(P.max).length),I<0){let z=R<0?Math.abs(R):1;K=u_(z,Math.abs(I),P,u),I=P.a=0}return R>=0&&(fe=u_(I,R,P,u)),P.negatives=K,P.positives=fe,P.result=db(K,fe,u),u.capture===!0?P.result=`(${P.result})`:u.wrap!==!1&&fe.length+K.length>1&&(P.result=`(?:${P.result})`),$t.cache[A]=P,P.result};function db(r,t,e){let u=ms(r,t,"-",!1,e)||[],d=ms(t,r,"",!1,e)||[],y=ms(r,t,"-?",!0,e)||[];return u.concat(y).concat(d).join("|")}function pb(r,t){let e=1,u=1,d=c_(r,e),y=new Set([t]);for(;r<=d&&d<=t;)y.add(d),e+=1,d=c_(r,e);for(d=f_(t+1,u)-1;r<d&&d<=t;)y.add(d),u+=1,d=f_(t+1,u)-1;return y=[...y],y.sort(mb),y}function yb(r,t,e){if(r===t)return{pattern:r,count:[],digits:0};let u=hb(r,t),d=u.length,y="",v=0;for(let S=0;S<d;S++){let[A,I]=u[S];A===I?y+=A:A!=="0"||I!=="9"?y+=vb(A,I,e):v++}return v&&(y+=e.shorthand===!0?"\\d":"[0-9]"),{pattern:y,count:[v],digits:d}}function u_(r,t,e,u){let d=pb(r,t),y=[],v=r,S;for(let A=0;A<d.length;A++){let I=d[A],R=yb(String(v),String(I),u),U="";if(!e.isPadded&&S&&S.pattern===R.pattern){S.count.length>1&&S.count.pop(),S.count.push(R.count[0]),S.string=S.pattern+__(S.count),v=I+1;continue}e.isPadded&&(U=gb(I,e,u)),R.string=U+R.pattern+__(R.count),y.push(R),v=I+1,S=R}return y}function ms(r,t,e,u,d){let y=[];for(let v of r){let{string:S}=v;!u&&!l_(t,"string",S)&&y.push(e+S),u&&l_(t,"string",S)&&y.push(e+S)}return y}function hb(r,t){let e=[];for(let u=0;u<r.length;u++)e.push([r[u],t[u]]);return e}function mb(r,t){return r>t?1:t>r?-1:0}function l_(r,t,e){return r.some(u=>u[t]===e)}function c_(r,t){return Number(String(r).slice(0,-t)+"9".repeat(t))}function f_(r,t){return r-r%Math.pow(10,t)}function __(r){let[t=0,e=""]=r;return e||t>1?`{${t+(e?","+e:"")}}`:""}function vb(r,t,e){return`[${r}${t-r===1?"":"-"}${t}]`}function d_(r){return/^-?(0+)\d/.test(r)}function gb(r,t,e){if(!t.isPadded)return r;let u=Math.abs(t.maxLen-String(r).length),d=e.relaxZeros!==!1;switch(u){case 0:return"";case 1:return d?"0?":"0";case 2:return d?"0{0,2}":"00";default:return d?`0{0,${u}}`:`0{${u}}`}}$t.cache={};$t.clearCache=()=>$t.cache={};p_.exports=$t});var bs=Y((Ek,k_)=>{"use strict";var bb=require("util"),v_=y_(),h_=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),jb=r=>t=>r===!0?Number(t):String(t),vs=r=>typeof r=="number"||typeof r=="string"&&r!=="",$r=r=>Number.isInteger(+r),gs=r=>{let t=`${r}`,e=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++e]==="0";);return e>0},wb=(r,t,e)=>typeof r=="string"||typeof t=="string"?!0:e.stringify===!0,kb=(r,t,e)=>{if(t>0){let u=r[0]==="-"?"-":"";u&&(r=r.slice(1)),r=u+r.padStart(u?t-1:t,"0")}return e===!1?String(r):r},m_=(r,t)=>{let e=r[0]==="-"?"-":"";for(e&&(r=r.slice(1),t--);r.length<t;)r="0"+r;return e?"-"+r:r},Cb=(r,t)=>{r.negatives.sort((v,S)=>v<S?-1:v>S?1:0),r.positives.sort((v,S)=>v<S?-1:v>S?1:0);let e=t.capture?"":"?:",u="",d="",y;return r.positives.length&&(u=r.positives.join("|")),r.negatives.length&&(d=`-(${e}${r.negatives.join("|")})`),u&&d?y=`${u}|${d}`:y=u||d,t.wrap?`(${e}${y})`:y},g_=(r,t,e,u)=>{if(e)return v_(r,t,{wrap:!1,...u});let d=String.fromCharCode(r);if(r===t)return d;let y=String.fromCharCode(t);return`[${d}-${y}]`},b_=(r,t,e)=>{if(Array.isArray(r)){let u=e.wrap===!0,d=e.capture?"":"?:";return u?`(${d}${r.join("|")})`:r.join("|")}return v_(r,t,e)},j_=(...r)=>new RangeError("Invalid range arguments: "+bb.inspect(...r)),w_=(r,t,e)=>{if(e.strictRanges===!0)throw j_([r,t]);return[]},Sb=(r,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${r}" to be a number`);return[]},Eb=(r,t,e=1,u={})=>{let d=Number(r),y=Number(t);if(!Number.isInteger(d)||!Number.isInteger(y)){if(u.strictRanges===!0)throw j_([r,t]);return[]}d===0&&(d=0),y===0&&(y=0);let v=d>y,S=String(r),A=String(t),I=String(e);e=Math.max(Math.abs(e),1);let R=gs(S)||gs(A)||gs(I),U=R?Math.max(S.length,A.length,I.length):0,P=R===!1&&wb(r,t,u)===!1,fe=u.transform||jb(P);if(u.toRegex&&e===1)return g_(m_(r,U),m_(t,U),!0,u);let K={negatives:[],positives:[]},z=be=>K[be<0?"negatives":"positives"].push(Math.abs(be)),Z=[],oe=0;for(;v?d>=y:d<=y;)u.toRegex===!0&&e>1?z(d):Z.push(kb(fe(d,oe),U,P)),d=v?d-e:d+e,oe++;return u.toRegex===!0?e>1?Cb(K,u):b_(Z,null,{wrap:!1,...u}):Z},Ab=(r,t,e=1,u={})=>{if(!$r(r)&&r.length>1||!$r(t)&&t.length>1)return w_(r,t,u);let d=u.transform||(P=>String.fromCharCode(P)),y=`${r}`.charCodeAt(0),v=`${t}`.charCodeAt(0),S=y>v,A=Math.min(y,v),I=Math.max(y,v);if(u.toRegex&&e===1)return g_(A,I,!1,u);let R=[],U=0;for(;S?y>=v:y<=v;)R.push(d(y,U)),y=S?y-e:y+e,U++;return u.toRegex===!0?b_(R,null,{wrap:!1,options:u}):R},Fi=(r,t,e,u={})=>{if(t==null&&vs(r))return[r];if(!vs(r)||!vs(t))return w_(r,t,u);if(typeof e=="function")return Fi(r,t,1,{transform:e});if(h_(e))return Fi(r,t,0,e);let d={...u};return d.capture===!0&&(d.wrap=!0),e=e||d.step||1,$r(e)?$r(r)&&$r(t)?Eb(r,t,e,d):Ab(r,t,Math.max(Math.abs(e),1),d):e!=null&&!h_(e)?Sb(e,d):Fi(r,t,1,e)};k_.exports=Fi});var E_=Y((Ak,S_)=>{"use strict";var Rb=bs(),C_=xi(),Tb=(r,t={})=>{let e=(u,d={})=>{let y=C_.isInvalidBrace(d),v=u.invalid===!0&&t.escapeInvalid===!0,S=y===!0||v===!0,A=t.escapeInvalid===!0?"\\":"",I="";if(u.isOpen===!0||u.isClose===!0)return A+u.value;if(u.type==="open")return S?A+u.value:"(";if(u.type==="close")return S?A+u.value:")";if(u.type==="comma")return u.prev.type==="comma"?"":S?u.value:"|";if(u.value)return u.value;if(u.nodes&&u.ranges>0){let R=C_.reduce(u.nodes),U=Rb(...R,{...t,wrap:!1,toRegex:!0});if(U.length!==0)return R.length>1&&U.length>1?`(${U})`:U}if(u.nodes)for(let R of u.nodes)I+=e(R,u);return I};return e(r)};S_.exports=Tb});var T_=Y((Rk,R_)=>{"use strict";var Db=bs(),A_=Oi(),yr=xi(),Gt=(r="",t="",e=!1)=>{let u=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return e?yr.flatten(t).map(d=>`{${d}}`):t;for(let d of r)if(Array.isArray(d))for(let y of d)u.push(Gt(y,t,e));else for(let y of t)e===!0&&typeof y=="string"&&(y=`{${y}}`),u.push(Array.isArray(y)?Gt(d,y,e):d+y);return yr.flatten(u)},Pb=(r,t={})=>{let e=t.rangeLimit===void 0?1e3:t.rangeLimit,u=(d,y={})=>{d.queue=[];let v=y,S=y.queue;for(;v.type!=="brace"&&v.type!=="root"&&v.parent;)v=v.parent,S=v.queue;if(d.invalid||d.dollar){S.push(Gt(S.pop(),A_(d,t)));return}if(d.type==="brace"&&d.invalid!==!0&&d.nodes.length===2){S.push(Gt(S.pop(),["{}"]));return}if(d.nodes&&d.ranges>0){let U=yr.reduce(d.nodes);if(yr.exceedsLimit(...U,t.step,e))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=Db(...U,t);P.length===0&&(P=A_(d,t)),S.push(Gt(S.pop(),P)),d.nodes=[];return}let A=yr.encloseBrace(d),I=d.queue,R=d;for(;R.type!=="brace"&&R.type!=="root"&&R.parent;)R=R.parent,I=R.queue;for(let U=0;U<d.nodes.length;U++){let P=d.nodes[U];if(P.type==="comma"&&d.type==="brace"){U===1&&I.push(""),I.push("");continue}if(P.type==="close"){S.push(Gt(S.pop(),I,A));continue}if(P.value&&P.type!=="open"){I.push(Gt(I.pop(),P.value));continue}P.nodes&&u(P,d)}return I};return yr.flatten(u(r))};R_.exports=Pb});var P_=Y((Tk,D_)=>{"use strict";D_.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
2
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var M_=Y((Dk,N_)=>{"use strict";var xb=Oi(),{MAX_LENGTH:x_,CHAR_BACKSLASH:js,CHAR_BACKTICK:Ob,CHAR_COMMA:Fb,CHAR_DOT:Nb,CHAR_LEFT_PARENTHESES:Mb,CHAR_RIGHT_PARENTHESES:Ib,CHAR_LEFT_CURLY_BRACE:Bb,CHAR_RIGHT_CURLY_BRACE:Lb,CHAR_LEFT_SQUARE_BRACKET:O_,CHAR_RIGHT_SQUARE_BRACKET:F_,CHAR_DOUBLE_QUOTE:Ub,CHAR_SINGLE_QUOTE:Hb,CHAR_NO_BREAK_SPACE:qb,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Wb}=P_(),$b=(r,t={})=>{if(typeof r!="string")throw new TypeError("Expected a string");let e=t||{},u=typeof e.maxLength=="number"?Math.min(x_,e.maxLength):x_;if(r.length>u)throw new SyntaxError(`Input length (${r.length}), exceeds max characters (${u})`);let d={type:"root",input:r,nodes:[]},y=[d],v=d,S=d,A=0,I=r.length,R=0,U=0,P,fe={},K=()=>r[R++],z=Z=>{if(Z.type==="text"&&S.type==="dot"&&(S.type="text"),S&&S.type==="text"&&Z.type==="text"){S.value+=Z.value;return}return v.nodes.push(Z),Z.parent=v,Z.prev=S,S=Z,Z};for(z({type:"bos"});R<I;)if(v=y[y.length-1],P=K(),!(P===Wb||P===qb)){if(P===js){z({type:"text",value:(t.keepEscaping?P:"")+K()});continue}if(P===F_){z({type:"text",value:"\\"+P});continue}if(P===O_){A++;let Z=!0,oe;for(;R<I&&(oe=K());){if(P+=oe,oe===O_){A++;continue}if(oe===js){P+=K();continue}if(oe===F_&&(A--,A===0))break}z({type:"text",value:P});continue}if(P===Mb){v=z({type:"paren",nodes:[]}),y.push(v),z({type:"text",value:P});continue}if(P===Ib){if(v.type!=="paren"){z({type:"text",value:P});continue}v=y.pop(),z({type:"text",value:P}),v=y[y.length-1];continue}if(P===Ub||P===Hb||P===Ob){let Z=P,oe;for(t.keepQuotes!==!0&&(P="");R<I&&(oe=K());){if(oe===js){P+=oe+K();continue}if(oe===Z){t.keepQuotes===!0&&(P+=oe);break}P+=oe}z({type:"text",value:P});continue}if(P===Bb){U++;let Z=S.value&&S.value.slice(-1)==="$"||v.dollar===!0;v=z({type:"brace",open:!0,close:!1,dollar:Z,depth:U,commas:0,ranges:0,nodes:[]}),y.push(v),z({type:"open",value:P});continue}if(P===Lb){if(v.type!=="brace"){z({type:"text",value:P});continue}let Z="close";v=y.pop(),v.close=!0,z({type:Z,value:P}),U--,v=y[y.length-1];continue}if(P===Fb&&U>0){if(v.ranges>0){v.ranges=0;let Z=v.nodes.shift();v.nodes=[Z,{type:"text",value:xb(v)}]}z({type:"comma",value:P}),v.commas++;continue}if(P===Nb&&U>0&&v.commas===0){let Z=v.nodes;if(U===0||Z.length===0){z({type:"text",value:P});continue}if(S.type==="dot"){if(v.range=[],S.value+=P,S.type="range",v.nodes.length!==3&&v.nodes.length!==5){v.invalid=!0,v.ranges=0,S.type="text";continue}v.ranges++,v.args=[];continue}if(S.type==="range"){Z.pop();let oe=Z[Z.length-1];oe.value+=S.value+P,S=oe,v.ranges--;continue}z({type:"dot",value:P});continue}z({type:"text",value:P})}do if(v=y.pop(),v.type!=="root"){v.nodes.forEach(be=>{be.nodes||(be.type==="open"&&(be.isOpen=!0),be.type==="close"&&(be.isClose=!0),be.nodes||(be.type="text"),be.invalid=!0)});let Z=y[y.length-1],oe=Z.nodes.indexOf(v);Z.nodes.splice(oe,1,...v.nodes)}while(y.length>0);return z({type:"eos"}),d};N_.exports=$b});var L_=Y((Pk,B_)=>{"use strict";var I_=Oi(),Gb=E_(),Kb=T_(),Vb=M_(),ot=(r,t={})=>{let e=[];if(Array.isArray(r))for(let u of r){let d=ot.create(u,t);Array.isArray(d)?e.push(...d):e.push(d)}else e=[].concat(ot.create(r,t));return t&&t.expand===!0&&t.nodupes===!0&&(e=[...new Set(e)]),e};ot.parse=(r,t={})=>Vb(r,t);ot.stringify=(r,t={})=>I_(typeof r=="string"?ot.parse(r,t):r,t);ot.compile=(r,t={})=>(typeof r=="string"&&(r=ot.parse(r,t)),Gb(r,t));ot.expand=(r,t={})=>{typeof r=="string"&&(r=ot.parse(r,t));let e=Kb(r,t);return t.noempty===!0&&(e=e.filter(Boolean)),t.nodupes===!0&&(e=[...new Set(e)]),e};ot.create=(r,t={})=>r===""||r.length<3?[r]:t.expand!==!0?ot.compile(r,t):ot.expand(r,t);B_.exports=ot});var Gr=Y((xk,$_)=>{"use strict";var Yb=require("path"),ht="\\\\/",U_=`[^${ht}]`,Ct="\\.",Qb="\\+",zb="\\?",Ni="\\/",Xb="(?=.)",H_="[^/]",ws=`(?:${Ni}|$)`,q_=`(?:^|${Ni})`,ks=`${Ct}{1,2}${ws}`,Jb=`(?!${Ct})`,Zb=`(?!${q_}${ks})`,ej=`(?!${Ct}{0,1}${ws})`,tj=`(?!${ks})`,rj=`[^.${Ni}]`,ij=`${H_}*?`,W_={DOT_LITERAL:Ct,PLUS_LITERAL:Qb,QMARK_LITERAL:zb,SLASH_LITERAL:Ni,ONE_CHAR:Xb,QMARK:H_,END_ANCHOR:ws,DOTS_SLASH:ks,NO_DOT:Jb,NO_DOTS:Zb,NO_DOT_SLASH:ej,NO_DOTS_SLASH:tj,QMARK_NO_DOT:rj,STAR:ij,START_ANCHOR:q_},nj={...W_,SLASH_LITERAL:`[${ht}]`,QMARK:U_,STAR:`${U_}*?`,DOTS_SLASH:`${Ct}{1,2}(?:[${ht}]|$)`,NO_DOT:`(?!${Ct})`,NO_DOTS:`(?!(?:^|[${ht}])${Ct}{1,2}(?:[${ht}]|$))`,NO_DOT_SLASH:`(?!${Ct}{0,1}(?:[${ht}]|$))`,NO_DOTS_SLASH:`(?!${Ct}{1,2}(?:[${ht}]|$))`,QMARK_NO_DOT:`[^.${ht}]`,START_ANCHOR:`(?:^|[${ht}])`,END_ANCHOR:`(?:[${ht}]|$)`},aj={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"};$_.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:aj,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:Yb.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?nj:W_}}});var Kr=Y(at=>{"use strict";var sj=require("path"),oj=process.platform==="win32",{REGEX_BACKSLASH:uj,REGEX_REMOVE_BACKSLASH:lj,REGEX_SPECIAL_CHARS:cj,REGEX_SPECIAL_CHARS_GLOBAL:fj}=Gr();at.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r);at.hasRegexChars=r=>cj.test(r);at.isRegexChar=r=>r.length===1&&at.hasRegexChars(r);at.escapeRegex=r=>r.replace(fj,"\\$1");at.toPosixSlashes=r=>r.replace(uj,"/");at.removeBackslashes=r=>r.replace(lj,t=>t==="\\"?"":t);at.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10};at.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:oj===!0||sj.sep==="\\";at.escapeLast=(r,t,e)=>{let u=r.lastIndexOf(t,e);return u===-1?r:r[u-1]==="\\"?at.escapeLast(r,t,u-1):`${r.slice(0,u)}\\${r.slice(u)}`};at.removePrefix=(r,t={})=>{let e=r;return e.startsWith("./")&&(e=e.slice(2),t.prefix="./"),e};at.wrapOutput=(r,t={},e={})=>{let u=e.contains?"":"^",d=e.contains?"":"$",y=`${u}(?:${r})${d}`;return t.negated===!0&&(y=`(?:^(?!${y}).*$)`),y}});var J_=Y((Fk,X_)=>{"use strict";var G_=Kr(),{CHAR_ASTERISK:Cs,CHAR_AT:_j,CHAR_BACKWARD_SLASH:Vr,CHAR_COMMA:dj,CHAR_DOT:Ss,CHAR_EXCLAMATION_MARK:Es,CHAR_FORWARD_SLASH:z_,CHAR_LEFT_CURLY_BRACE:As,CHAR_LEFT_PARENTHESES:Rs,CHAR_LEFT_SQUARE_BRACKET:pj,CHAR_PLUS:yj,CHAR_QUESTION_MARK:K_,CHAR_RIGHT_CURLY_BRACE:hj,CHAR_RIGHT_PARENTHESES:V_,CHAR_RIGHT_SQUARE_BRACKET:mj}=Gr(),Y_=r=>r===z_||r===Vr,Q_=r=>{r.isPrefix!==!0&&(r.depth=r.isGlobstar?1/0:1)},vj=(r,t)=>{let e=t||{},u=r.length-1,d=e.parts===!0||e.scanToEnd===!0,y=[],v=[],S=[],A=r,I=-1,R=0,U=0,P=!1,fe=!1,K=!1,z=!1,Z=!1,oe=!1,be=!1,he=!1,Ae=!1,ne=!1,we=0,J,ee,H={value:"",depth:0,isGlob:!1},pe=()=>I>=u,F=()=>A.charCodeAt(I+1),ue=()=>(J=ee,A.charCodeAt(++I));for(;I<u;){ee=ue();let Pe;if(ee===Vr){be=H.backslashes=!0,ee=ue(),ee===As&&(oe=!0);continue}if(oe===!0||ee===As){for(we++;pe()!==!0&&(ee=ue());){if(ee===Vr){be=H.backslashes=!0,ue();continue}if(ee===As){we++;continue}if(oe!==!0&&ee===Ss&&(ee=ue())===Ss){if(P=H.isBrace=!0,K=H.isGlob=!0,ne=!0,d===!0)continue;break}if(oe!==!0&&ee===dj){if(P=H.isBrace=!0,K=H.isGlob=!0,ne=!0,d===!0)continue;break}if(ee===hj&&(we--,we===0)){oe=!1,P=H.isBrace=!0,ne=!0;break}}if(d===!0)continue;break}if(ee===z_){if(y.push(I),v.push(H),H={value:"",depth:0,isGlob:!1},ne===!0)continue;if(J===Ss&&I===R+1){R+=2;continue}U=I+1;continue}if(e.noext!==!0&&(ee===yj||ee===_j||ee===Cs||ee===K_||ee===Es)===!0&&F()===Rs){if(K=H.isGlob=!0,z=H.isExtglob=!0,ne=!0,ee===Es&&I===R&&(Ae=!0),d===!0){for(;pe()!==!0&&(ee=ue());){if(ee===Vr){be=H.backslashes=!0,ee=ue();continue}if(ee===V_){K=H.isGlob=!0,ne=!0;break}}continue}break}if(ee===Cs){if(J===Cs&&(Z=H.isGlobstar=!0),K=H.isGlob=!0,ne=!0,d===!0)continue;break}if(ee===K_){if(K=H.isGlob=!0,ne=!0,d===!0)continue;break}if(ee===pj){for(;pe()!==!0&&(Pe=ue());){if(Pe===Vr){be=H.backslashes=!0,ue();continue}if(Pe===mj){fe=H.isBracket=!0,K=H.isGlob=!0,ne=!0;break}}if(d===!0)continue;break}if(e.nonegate!==!0&&ee===Es&&I===R){he=H.negated=!0,R++;continue}if(e.noparen!==!0&&ee===Rs){if(K=H.isGlob=!0,d===!0){for(;pe()!==!0&&(ee=ue());){if(ee===Rs){be=H.backslashes=!0,ee=ue();continue}if(ee===V_){ne=!0;break}}continue}break}if(K===!0){if(ne=!0,d===!0)continue;break}}e.noext===!0&&(z=!1,K=!1);let ae=A,ke="",D="";R>0&&(ke=A.slice(0,R),A=A.slice(R),U-=R),ae&&K===!0&&U>0?(ae=A.slice(0,U),D=A.slice(U)):K===!0?(ae="",D=A):ae=A,ae&&ae!==""&&ae!=="/"&&ae!==A&&Y_(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),e.unescape===!0&&(D&&(D=G_.removeBackslashes(D)),ae&&be===!0&&(ae=G_.removeBackslashes(ae)));let x={prefix:ke,input:r,start:R,base:ae,glob:D,isBrace:P,isBracket:fe,isGlob:K,isExtglob:z,isGlobstar:Z,negated:he,negatedExtglob:Ae};if(e.tokens===!0&&(x.maxDepth=0,Y_(ee)||v.push(H),x.tokens=v),e.parts===!0||e.tokens===!0){let Pe;for(let le=0;le<y.length;le++){let Qe=Pe?Pe+1:R,$e=y[le],xe=r.slice(Qe,$e);e.tokens&&(le===0&&R!==0?(v[le].isPrefix=!0,v[le].value=ke):v[le].value=xe,Q_(v[le]),x.maxDepth+=v[le].depth),(le!==0||xe!=="")&&S.push(xe),Pe=$e}if(Pe&&Pe+1<r.length){let le=r.slice(Pe+1);S.push(le),e.tokens&&(v[v.length-1].value=le,Q_(v[v.length-1]),x.maxDepth+=v[v.length-1].depth)}x.slashes=y,x.parts=S}return x};X_.exports=vj});var rd=Y((Nk,td)=>{"use strict";var Mi=Gr(),ut=Kr(),{MAX_LENGTH:Ii,POSIX_REGEX_SOURCE:gj,REGEX_NON_SPECIAL_CHARS:bj,REGEX_SPECIAL_CHARS_BACKREF:jj,REPLACEMENTS:Z_}=Mi,wj=(r,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...r,t);r.sort();let e=`[${r.join("-")}]`;try{new RegExp(e)}catch{return r.map(d=>ut.escapeRegex(d)).join("..")}return e},hr=(r,t)=>`Missing ${r}: "${t}" - use "\\\\${t}" to match literal characters`,ed=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");r=Z_[r]||r;let e={...t},u=typeof e.maxLength=="number"?Math.min(Ii,e.maxLength):Ii,d=r.length;if(d>u)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${u}`);let y={type:"bos",value:"",output:e.prepend||""},v=[y],S=e.capture?"":"?:",A=ut.isWindows(t),I=Mi.globChars(A),R=Mi.extglobChars(I),{DOT_LITERAL:U,PLUS_LITERAL:P,SLASH_LITERAL:fe,ONE_CHAR:K,DOTS_SLASH:z,NO_DOT:Z,NO_DOT_SLASH:oe,NO_DOTS_SLASH:be,QMARK:he,QMARK_NO_DOT:Ae,STAR:ne,START_ANCHOR:we}=I,J=O=>`(${S}(?:(?!${we}${O.dot?z:U}).)*?)`,ee=e.dot?"":Z,H=e.dot?he:Ae,pe=e.bash===!0?J(e):ne;e.capture&&(pe=`(${pe})`),typeof e.noext=="boolean"&&(e.noextglob=e.noext);let F={input:r,index:-1,start:0,dot:e.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};r=ut.removePrefix(r,F),d=r.length;let ue=[],ae=[],ke=[],D=y,x,Pe=()=>F.index===d-1,le=F.peek=(O=1)=>r[F.index+O],Qe=F.advance=()=>r[++F.index]||"",$e=()=>r.slice(F.index+1),xe=(O="",ge=0)=>{F.consumed+=O,F.index+=ge},_t=O=>{F.output+=O.output!=null?O.output:O.value,xe(O.value)},It=()=>{let O=1;for(;le()==="!"&&(le(2)!=="("||le(3)==="?");)Qe(),F.start++,O++;return O%2===0?!1:(F.negated=!0,F.start++,!0)},bt=O=>{F[O]++,ke.push(O)},ze=O=>{F[O]--,ke.pop()},se=O=>{if(D.type==="globstar"){let ge=F.braces>0&&(O.type==="comma"||O.type==="brace"),$=O.extglob===!0||ue.length&&(O.type==="pipe"||O.type==="paren");O.type!=="slash"&&O.type!=="paren"&&!ge&&!$&&(F.output=F.output.slice(0,-D.output.length),D.type="star",D.value="*",D.output=pe,F.output+=D.output)}if(ue.length&&O.type!=="paren"&&(ue[ue.length-1].inner+=O.value),(O.value||O.output)&&_t(O),D&&D.type==="text"&&O.type==="text"){D.value+=O.value,D.output=(D.output||"")+O.value;return}O.prev=D,v.push(O),D=O},st=(O,ge)=>{let $={...R[ge],conditions:1,inner:""};$.prev=D,$.parens=F.parens,$.output=F.output;let N=(e.capture?"(":"")+$.open;bt("parens"),se({type:O,value:ge,output:F.output?"":K}),se({type:"paren",extglob:!0,value:Qe(),output:N}),ue.push($)},et=O=>{let ge=O.close+(e.capture?")":""),$;if(O.type==="negate"){let N=pe;O.inner&&O.inner.length>1&&O.inner.includes("/")&&(N=J(e)),(N!==pe||Pe()||/^\)+$/.test($e()))&&(ge=O.close=`)$))${N}`),O.inner.includes("*")&&($=$e())&&/^\.[^\\/.]+$/.test($)&&(ge=O.close=`)${$})${N})`),O.prev.type==="bos"&&(F.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:x,output:ge}),ze("parens")};if(e.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let O=!1,ge=r.replace(jj,($,N,Re,qe,Fe,jt)=>qe==="\\"?(O=!0,$):qe==="?"?N?N+qe+(Fe?he.repeat(Fe.length):""):jt===0?H+(Fe?he.repeat(Fe.length):""):he.repeat(Re.length):qe==="."?U.repeat(Re.length):qe==="*"?N?N+qe+(Fe?pe:""):pe:N?$:`\\${$}`);return O===!0&&(e.unescape===!0?ge=ge.replace(/\\/g,""):ge=ge.replace(/\\+/g,$=>$.length%2===0?"\\\\":$?"\\":"")),ge===r&&e.contains===!0?(F.output=r,F):(F.output=ut.wrapOutput(ge,F,t),F)}for(;!Pe();){if(x=Qe(),x==="\0")continue;if(x==="\\"){let $=le();if($==="/"&&e.bash!==!0||$==="."||$===";")continue;if(!$){x+="\\",se({type:"text",value:x});continue}let N=/^\\+/.exec($e()),Re=0;if(N&&N[0].length>2&&(Re=N[0].length,F.index+=Re,Re%2!==0&&(x+="\\")),e.unescape===!0?x=Qe():x+=Qe(),F.brackets===0){se({type:"text",value:x});continue}}if(F.brackets>0&&(x!=="]"||D.value==="["||D.value==="[^")){if(e.posix!==!1&&x===":"){let $=D.value.slice(1);if($.includes("[")&&(D.posix=!0,$.includes(":"))){let N=D.value.lastIndexOf("["),Re=D.value.slice(0,N),qe=D.value.slice(N+2),Fe=gj[qe];if(Fe){D.value=Re+Fe,F.backtrack=!0,Qe(),!y.output&&v.indexOf(D)===1&&(y.output=K);continue}}}(x==="["&&le()!==":"||x==="-"&&le()==="]")&&(x=`\\${x}`),x==="]"&&(D.value==="["||D.value==="[^")&&(x=`\\${x}`),e.posix===!0&&x==="!"&&D.value==="["&&(x="^"),D.value+=x,_t({value:x});continue}if(F.quotes===1&&x!=='"'){x=ut.escapeRegex(x),D.value+=x,_t({value:x});continue}if(x==='"'){F.quotes=F.quotes===1?0:1,e.keepQuotes===!0&&se({type:"text",value:x});continue}if(x==="("){bt("parens"),se({type:"paren",value:x});continue}if(x===")"){if(F.parens===0&&e.strictBrackets===!0)throw new SyntaxError(hr("opening","("));let $=ue[ue.length-1];if($&&F.parens===$.parens+1){et(ue.pop());continue}se({type:"paren",value:x,output:F.parens?")":"\\)"}),ze("parens");continue}if(x==="["){if(e.nobracket===!0||!$e().includes("]")){if(e.nobracket!==!0&&e.strictBrackets===!0)throw new SyntaxError(hr("closing","]"));x=`\\${x}`}else bt("brackets");se({type:"bracket",value:x});continue}if(x==="]"){if(e.nobracket===!0||D&&D.type==="bracket"&&D.value.length===1){se({type:"text",value:x,output:`\\${x}`});continue}if(F.brackets===0){if(e.strictBrackets===!0)throw new SyntaxError(hr("opening","["));se({type:"text",value:x,output:`\\${x}`});continue}ze("brackets");let $=D.value.slice(1);if(D.posix!==!0&&$[0]==="^"&&!$.includes("/")&&(x=`/${x}`),D.value+=x,_t({value:x}),e.literalBrackets===!1||ut.hasRegexChars($))continue;let N=ut.escapeRegex(D.value);if(F.output=F.output.slice(0,-D.value.length),e.literalBrackets===!0){F.output+=N,D.value=N;continue}D.value=`(${S}${N}|${D.value})`,F.output+=D.value;continue}if(x==="{"&&e.nobrace!==!0){bt("braces");let $={type:"brace",value:x,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};ae.push($),se($);continue}if(x==="}"){let $=ae[ae.length-1];if(e.nobrace===!0||!$){se({type:"text",value:x,output:x});continue}let N=")";if($.dots===!0){let Re=v.slice(),qe=[];for(let Fe=Re.length-1;Fe>=0&&(v.pop(),Re[Fe].type!=="brace");Fe--)Re[Fe].type!=="dots"&&qe.unshift(Re[Fe].value);N=wj(qe,e),F.backtrack=!0}if($.comma!==!0&&$.dots!==!0){let Re=F.output.slice(0,$.outputIndex),qe=F.tokens.slice($.tokensIndex);$.value=$.output="\\{",x=N="\\}",F.output=Re;for(let Fe of qe)F.output+=Fe.output||Fe.value}se({type:"brace",value:x,output:N}),ze("braces"),ae.pop();continue}if(x==="|"){ue.length>0&&ue[ue.length-1].conditions++,se({type:"text",value:x});continue}if(x===","){let $=x,N=ae[ae.length-1];N&&ke[ke.length-1]==="braces"&&(N.comma=!0,$="|"),se({type:"comma",value:x,output:$});continue}if(x==="/"){if(D.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",v.pop(),D=y;continue}se({type:"slash",value:x,output:fe});continue}if(x==="."){if(F.braces>0&&D.type==="dot"){D.value==="."&&(D.output=U);let $=ae[ae.length-1];D.type="dots",D.output+=x,D.value+=x,$.dots=!0;continue}if(F.braces+F.parens===0&&D.type!=="bos"&&D.type!=="slash"){se({type:"text",value:x,output:U});continue}se({type:"dot",value:x,output:U});continue}if(x==="?"){if(!(D&&D.value==="(")&&e.noextglob!==!0&&le()==="("&&le(2)!=="?"){st("qmark",x);continue}if(D&&D.type==="paren"){let N=le(),Re=x;if(N==="<"&&!ut.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(D.value==="("&&!/[!=<:]/.test(N)||N==="<"&&!/<([!=]|\w+>)/.test($e()))&&(Re=`\\${x}`),se({type:"text",value:x,output:Re});continue}if(e.dot!==!0&&(D.type==="slash"||D.type==="bos")){se({type:"qmark",value:x,output:Ae});continue}se({type:"qmark",value:x,output:he});continue}if(x==="!"){if(e.noextglob!==!0&&le()==="("&&(le(2)!=="?"||!/[!=<:]/.test(le(3)))){st("negate",x);continue}if(e.nonegate!==!0&&F.index===0){It();continue}}if(x==="+"){if(e.noextglob!==!0&&le()==="("&&le(2)!=="?"){st("plus",x);continue}if(D&&D.value==="("||e.regex===!1){se({type:"plus",value:x,output:P});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||F.parens>0){se({type:"plus",value:x});continue}se({type:"plus",value:P});continue}if(x==="@"){if(e.noextglob!==!0&&le()==="("&&le(2)!=="?"){se({type:"at",extglob:!0,value:x,output:""});continue}se({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let $=bj.exec($e());$&&(x+=$[0],F.index+=$[0].length),se({type:"text",value:x});continue}if(D&&(D.type==="globstar"||D.star===!0)){D.type="star",D.star=!0,D.value+=x,D.output=pe,F.backtrack=!0,F.globstar=!0,xe(x);continue}let O=$e();if(e.noextglob!==!0&&/^\([^?]/.test(O)){st("star",x);continue}if(D.type==="star"){if(e.noglobstar===!0){xe(x);continue}let $=D.prev,N=$.prev,Re=$.type==="slash"||$.type==="bos",qe=N&&(N.type==="star"||N.type==="globstar");if(e.bash===!0&&(!Re||O[0]&&O[0]!=="/")){se({type:"star",value:x,output:""});continue}let Fe=F.braces>0&&($.type==="comma"||$.type==="brace"),jt=ue.length&&($.type==="pipe"||$.type==="paren");if(!Re&&$.type!=="paren"&&!Fe&&!jt){se({type:"star",value:x,output:""});continue}for(;O.slice(0,3)==="/**";){let At=r[F.index+4];if(At&&At!=="/")break;O=O.slice(3),xe("/**",3)}if($.type==="bos"&&Pe()){D.type="globstar",D.value+=x,D.output=J(e),F.output=D.output,F.globstar=!0,xe(x);continue}if($.type==="slash"&&$.prev.type!=="bos"&&!qe&&Pe()){F.output=F.output.slice(0,-($.output+D.output).length),$.output=`(?:${$.output}`,D.type="globstar",D.output=J(e)+(e.strictSlashes?")":"|$)"),D.value+=x,F.globstar=!0,F.output+=$.output+D.output,xe(x);continue}if($.type==="slash"&&$.prev.type!=="bos"&&O[0]==="/"){let At=O[1]!==void 0?"|$":"";F.output=F.output.slice(0,-($.output+D.output).length),$.output=`(?:${$.output}`,D.type="globstar",D.output=`${J(e)}${fe}|${fe}${At})`,D.value+=x,F.output+=$.output+D.output,F.globstar=!0,xe(x+Qe()),se({type:"slash",value:"/",output:""});continue}if($.type==="bos"&&O[0]==="/"){D.type="globstar",D.value+=x,D.output=`(?:^|${fe}|${J(e)}${fe})`,F.output=D.output,F.globstar=!0,xe(x+Qe()),se({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-D.output.length),D.type="globstar",D.output=J(e),D.value+=x,F.output+=D.output,F.globstar=!0,xe(x);continue}let ge={type:"star",value:x,output:pe};if(e.bash===!0){ge.output=".*?",(D.type==="bos"||D.type==="slash")&&(ge.output=ee+ge.output),se(ge);continue}if(D&&(D.type==="bracket"||D.type==="paren")&&e.regex===!0){ge.output=x,se(ge);continue}(F.index===F.start||D.type==="slash"||D.type==="dot")&&(D.type==="dot"?(F.output+=oe,D.output+=oe):e.dot===!0?(F.output+=be,D.output+=be):(F.output+=ee,D.output+=ee),le()!=="*"&&(F.output+=K,D.output+=K)),se(ge)}for(;F.brackets>0;){if(e.strictBrackets===!0)throw new SyntaxError(hr("closing","]"));F.output=ut.escapeLast(F.output,"["),ze("brackets")}for(;F.parens>0;){if(e.strictBrackets===!0)throw new SyntaxError(hr("closing",")"));F.output=ut.escapeLast(F.output,"("),ze("parens")}for(;F.braces>0;){if(e.strictBrackets===!0)throw new SyntaxError(hr("closing","}"));F.output=ut.escapeLast(F.output,"{"),ze("braces")}if(e.strictSlashes!==!0&&(D.type==="star"||D.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${fe}?`}),F.backtrack===!0){F.output="";for(let O of F.tokens)F.output+=O.output!=null?O.output:O.value,O.suffix&&(F.output+=O.suffix)}return F};ed.fastpaths=(r,t)=>{let e={...t},u=typeof e.maxLength=="number"?Math.min(Ii,e.maxLength):Ii,d=r.length;if(d>u)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${u}`);r=Z_[r]||r;let y=ut.isWindows(t),{DOT_LITERAL:v,SLASH_LITERAL:S,ONE_CHAR:A,DOTS_SLASH:I,NO_DOT:R,NO_DOTS:U,NO_DOTS_SLASH:P,STAR:fe,START_ANCHOR:K}=Mi.globChars(y),z=e.dot?U:R,Z=e.dot?P:R,oe=e.capture?"":"?:",be={negated:!1,prefix:""},he=e.bash===!0?".*?":fe;e.capture&&(he=`(${he})`);let Ae=ee=>ee.noglobstar===!0?he:`(${oe}(?:(?!${K}${ee.dot?I:v}).)*?)`,ne=ee=>{switch(ee){case"*":return`${z}${A}${he}`;case".*":return`${v}${A}${he}`;case"*.*":return`${z}${he}${v}${A}${he}`;case"*/*":return`${z}${he}${S}${A}${Z}${he}`;case"**":return z+Ae(e);case"**/*":return`(?:${z}${Ae(e)}${S})?${Z}${A}${he}`;case"**/*.*":return`(?:${z}${Ae(e)}${S})?${Z}${he}${v}${A}${he}`;case"**/.*":return`(?:${z}${Ae(e)}${S})?${v}${A}${he}`;default:{let H=/^(.*?)\.(\w+)$/.exec(ee);if(!H)return;let pe=ne(H[1]);return pe?pe+v+H[2]:void 0}}},we=ut.removePrefix(r,be),J=ne(we);return J&&e.strictSlashes!==!0&&(J+=`${S}?`),J};td.exports=ed});var nd=Y((Mk,id)=>{"use strict";var kj=require("path"),Cj=J_(),Ts=rd(),Ds=Kr(),Sj=Gr(),Ej=r=>r&&typeof r=="object"&&!Array.isArray(r),Le=(r,t,e=!1)=>{if(Array.isArray(r)){let R=r.map(P=>Le(P,t,e));return P=>{for(let fe of R){let K=fe(P);if(K)return K}return!1}}let u=Ej(r)&&r.tokens&&r.input;if(r===""||typeof r!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=t||{},y=Ds.isWindows(t),v=u?Le.compileRe(r,t):Le.makeRe(r,t,!1,!0),S=v.state;delete v.state;let A=()=>!1;if(d.ignore){let R={...t,ignore:null,onMatch:null,onResult:null};A=Le(d.ignore,R,e)}let I=(R,U=!1)=>{let{isMatch:P,match:fe,output:K}=Le.test(R,v,t,{glob:r,posix:y}),z={glob:r,state:S,regex:v,posix:y,input:R,output:K,match:fe,isMatch:P};return typeof d.onResult=="function"&&d.onResult(z),P===!1?(z.isMatch=!1,U?z:!1):A(R)?(typeof d.onIgnore=="function"&&d.onIgnore(z),z.isMatch=!1,U?z:!1):(typeof d.onMatch=="function"&&d.onMatch(z),U?z:!0)};return e&&(I.state=S),I};Le.test=(r,t,e,{glob:u,posix:d}={})=>{if(typeof r!="string")throw new TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let y=e||{},v=y.format||(d?Ds.toPosixSlashes:null),S=r===u,A=S&&v?v(r):r;return S===!1&&(A=v?v(r):r,S=A===u),(S===!1||y.capture===!0)&&(y.matchBase===!0||y.basename===!0?S=Le.matchBase(r,t,e,d):S=t.exec(A)),{isMatch:Boolean(S),match:S,output:A}};Le.matchBase=(r,t,e,u=Ds.isWindows(e))=>(t instanceof RegExp?t:Le.makeRe(t,e)).test(kj.basename(r));Le.isMatch=(r,t,e)=>Le(t,e)(r);Le.parse=(r,t)=>Array.isArray(r)?r.map(e=>Le.parse(e,t)):Ts(r,{...t,fastpaths:!1});Le.scan=(r,t)=>Cj(r,t);Le.compileRe=(r,t,e=!1,u=!1)=>{if(e===!0)return r.output;let d=t||{},y=d.contains?"":"^",v=d.contains?"":"$",S=`${y}(?:${r.output})${v}`;r&&r.negated===!0&&(S=`^(?!${S}).*$`);let A=Le.toRegex(S,t);return u===!0&&(A.state=r),A};Le.makeRe=(r,t={},e=!1,u=!1)=>{if(!r||typeof r!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(r[0]==="."||r[0]==="*")&&(d.output=Ts.fastpaths(r,t)),d.output||(d=Ts(r,t)),Le.compileRe(d,t,e,u)};Le.toRegex=(r,t)=>{try{let e=t||{};return new RegExp(r,e.flags||(e.nocase?"i":""))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}};Le.constants=Sj;id.exports=Le});var sd=Y((Ik,ad)=>{"use strict";ad.exports=nd()});var fd=Y((Bk,cd)=>{"use strict";var ud=require("util"),ld=L_(),mt=sd(),Ps=Kr(),od=r=>r===""||r==="./",Ne=(r,t,e)=>{t=[].concat(t),r=[].concat(r);let u=new Set,d=new Set,y=new Set,v=0,S=R=>{y.add(R.output),e&&e.onResult&&e.onResult(R)};for(let R=0;R<t.length;R++){let U=mt(String(t[R]),{...e,onResult:S},!0),P=U.state.negated||U.state.negatedExtglob;P&&v++;for(let fe of r){let K=U(fe,!0);!(P?!K.isMatch:K.isMatch)||(P?u.add(K.output):(u.delete(K.output),d.add(K.output)))}}let I=(v===t.length?[...y]:[...d]).filter(R=>!u.has(R));if(e&&I.length===0){if(e.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(e.nonull===!0||e.nullglob===!0)return e.unescape?t.map(R=>R.replace(/\\/g,"")):t}return I};Ne.match=Ne;Ne.matcher=(r,t)=>mt(r,t);Ne.isMatch=(r,t,e)=>mt(t,e)(r);Ne.any=Ne.isMatch;Ne.not=(r,t,e={})=>{t=[].concat(t).map(String);let u=new Set,d=[],v=Ne(r,t,{...e,onResult:S=>{e.onResult&&e.onResult(S),d.push(S.output)}});for(let S of d)v.includes(S)||u.add(S);return[...u]};Ne.contains=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ud.inspect(r)}"`);if(Array.isArray(t))return t.some(u=>Ne.contains(r,u,e));if(typeof t=="string"){if(od(r)||od(t))return!1;if(r.includes(t)||r.startsWith("./")&&r.slice(2).includes(t))return!0}return Ne.isMatch(r,t,{...e,contains:!0})};Ne.matchKeys=(r,t,e)=>{if(!Ps.isObject(r))throw new TypeError("Expected the first argument to be an object");let u=Ne(Object.keys(r),t,e),d={};for(let y of u)d[y]=r[y];return d};Ne.some=(r,t,e)=>{let u=[].concat(r);for(let d of[].concat(t)){let y=mt(String(d),e);if(u.some(v=>y(v)))return!0}return!1};Ne.every=(r,t,e)=>{let u=[].concat(r);for(let d of[].concat(t)){let y=mt(String(d),e);if(!u.every(v=>y(v)))return!1}return!0};Ne.all=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ud.inspect(r)}"`);return[].concat(t).every(u=>mt(u,e)(r))};Ne.capture=(r,t,e)=>{let u=Ps.isWindows(e),y=mt.makeRe(String(r),{...e,capture:!0}).exec(u?Ps.toPosixSlashes(t):t);if(y)return y.slice(1).map(v=>v===void 0?"":v)};Ne.makeRe=(...r)=>mt.makeRe(...r);Ne.scan=(...r)=>mt.scan(...r);Ne.parse=(r,t)=>{let e=[];for(let u of[].concat(r||[]))for(let d of ld(String(u),t))e.push(mt.parse(d,t));return e};Ne.braces=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(r)?[r]:ld(r,t)};Ne.braceExpand=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return Ne.braces(r,{...t,expand:!0})};cd.exports=Ne});var gd=Y(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.matchAny=ce.convertPatternsToRe=ce.makeRe=ce.getPatternParts=ce.expandBraceExpansion=ce.expandPatternsWithBraceExpansion=ce.isAffectDepthOfReadingPattern=ce.endsWithSlashGlobStar=ce.hasGlobStar=ce.getBaseDirectory=ce.isPatternRelatedToParentDirectory=ce.getPatternsOutsideCurrentDirectory=ce.getPatternsInsideCurrentDirectory=ce.getPositivePatterns=ce.getNegativePatterns=ce.isPositivePattern=ce.isNegativePattern=ce.convertToNegativePattern=ce.convertToPositivePattern=ce.isDynamicPattern=ce.isStaticPattern=void 0;var Aj=require("path"),Rj=r_(),xs=fd(),_d="**",Tj="\\",Dj=/[*?]|^!/,Pj=/\[[^[]*]/,xj=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Oj=/[!*+?@]\([^(]*\)/,Fj=/,|\.\./;function dd(r,t={}){return!pd(r,t)}ce.isStaticPattern=dd;function pd(r,t={}){return r===""?!1:!!(t.caseSensitiveMatch===!1||r.includes(Tj)||Dj.test(r)||Pj.test(r)||xj.test(r)||t.extglob!==!1&&Oj.test(r)||t.braceExpansion!==!1&&Nj(r))}ce.isDynamicPattern=pd;function Nj(r){let t=r.indexOf("{");if(t===-1)return!1;let e=r.indexOf("}",t+1);if(e===-1)return!1;let u=r.slice(t,e);return Fj.test(u)}function Mj(r){return Bi(r)?r.slice(1):r}ce.convertToPositivePattern=Mj;function Ij(r){return"!"+r}ce.convertToNegativePattern=Ij;function Bi(r){return r.startsWith("!")&&r[1]!=="("}ce.isNegativePattern=Bi;function yd(r){return!Bi(r)}ce.isPositivePattern=yd;function Bj(r){return r.filter(Bi)}ce.getNegativePatterns=Bj;function Lj(r){return r.filter(yd)}ce.getPositivePatterns=Lj;function Uj(r){return r.filter(t=>!Os(t))}ce.getPatternsInsideCurrentDirectory=Uj;function Hj(r){return r.filter(Os)}ce.getPatternsOutsideCurrentDirectory=Hj;function Os(r){return r.startsWith("..")||r.startsWith("./..")}ce.isPatternRelatedToParentDirectory=Os;function qj(r){return Rj(r,{flipBackslashes:!1})}ce.getBaseDirectory=qj;function Wj(r){return r.includes(_d)}ce.hasGlobStar=Wj;function hd(r){return r.endsWith("/"+_d)}ce.endsWithSlashGlobStar=hd;function $j(r){let t=Aj.basename(r);return hd(r)||dd(t)}ce.isAffectDepthOfReadingPattern=$j;function Gj(r){return r.reduce((t,e)=>t.concat(md(e)),[])}ce.expandPatternsWithBraceExpansion=Gj;function md(r){return xs.braces(r,{expand:!0,nodupes:!0})}ce.expandBraceExpansion=md;function Kj(r,t){let{parts:e}=xs.scan(r,Object.assign(Object.assign({},t),{parts:!0}));return e.length===0&&(e=[r]),e[0].startsWith("/")&&(e[0]=e[0].slice(1),e.unshift("")),e}ce.getPatternParts=Kj;function vd(r,t){return xs.makeRe(r,t)}ce.makeRe=vd;function Vj(r,t){return r.map(e=>vd(e,t))}ce.convertPatternsToRe=Vj;function Yj(r,t){return t.some(e=>e.test(r))}ce.matchAny=Yj});var kd=Y((Uk,wd)=>{"use strict";var Qj=require("stream"),bd=Qj.PassThrough,zj=Array.prototype.slice;wd.exports=Xj;function Xj(){let r=[],t=zj.call(arguments),e=!1,u=t[t.length-1];u&&!Array.isArray(u)&&u.pipe==null?t.pop():u={};let d=u.end!==!1,y=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);let v=bd(u);function S(){for(let R=0,U=arguments.length;R<U;R++)r.push(jd(arguments[R],u));return A(),this}function A(){if(e)return;e=!0;let R=r.shift();if(!R){process.nextTick(I);return}Array.isArray(R)||(R=[R]);let U=R.length+1;function P(){--U>0||(e=!1,A())}function fe(K){function z(){K.removeListener("merge2UnpipeEnd",z),K.removeListener("end",z),y&&K.removeListener("error",Z),P()}function Z(oe){v.emit("error",oe)}if(K._readableState.endEmitted)return P();K.on("merge2UnpipeEnd",z),K.on("end",z),y&&K.on("error",Z),K.pipe(v,{end:!1}),K.resume()}for(let K=0;K<R.length;K++)fe(R[K]);P()}function I(){e=!1,v.emit("queueDrain"),d&&v.end()}return v.setMaxListeners(0),v.add=S,v.on("unpipe",function(R){R.emit("merge2UnpipeEnd")}),t.length&&S.apply(null,t),v}function jd(r,t){if(Array.isArray(r))for(let e=0,u=r.length;e<u;e++)r[e]=jd(r[e],t);else{if(!r._readableState&&r.pipe&&(r=r.pipe(bd(t))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}});var Sd=Y(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.merge=void 0;var Jj=kd();function Zj(r){let t=Jj(r);return r.forEach(e=>{e.once("error",u=>t.emit("error",u))}),t.once("close",()=>Cd(r)),t.once("end",()=>Cd(r)),t}Li.merge=Zj;function Cd(r){r.forEach(t=>t.emit("close"))}});var Ed=Y(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.isEmpty=mr.isString=void 0;function e0(r){return typeof r=="string"}mr.isString=e0;function t0(r){return r===""}mr.isEmpty=t0});var St=Y(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.string=Je.stream=Je.pattern=Je.path=Je.fs=Je.errno=Je.array=void 0;var r0=Kf();Je.array=r0;var i0=Vf();Je.errno=i0;var n0=Yf();Je.fs=n0;var a0=Qf();Je.path=a0;var s0=gd();Je.pattern=s0;var o0=Sd();Je.stream=o0;var u0=Ed();Je.string=u0});var Td=Y(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.convertPatternGroupToTask=Ze.convertPatternGroupsToTasks=Ze.groupPatternsByBaseDirectory=Ze.getNegativePatternsAsPositive=Ze.getPositivePatterns=Ze.convertPatternsToTasks=Ze.generate=void 0;var Et=St();function l0(r,t){let e=Ad(r),u=Rd(r,t.ignore),d=e.filter(A=>Et.pattern.isStaticPattern(A,t)),y=e.filter(A=>Et.pattern.isDynamicPattern(A,t)),v=Fs(d,u,!1),S=Fs(y,u,!0);return v.concat(S)}Ze.generate=l0;function Fs(r,t,e){let u=[],d=Et.pattern.getPatternsOutsideCurrentDirectory(r),y=Et.pattern.getPatternsInsideCurrentDirectory(r),v=Ns(d),S=Ns(y);return u.push(...Ms(v,t,e)),"."in S?u.push(Is(".",y,t,e)):u.push(...Ms(S,t,e)),u}Ze.convertPatternsToTasks=Fs;function Ad(r){return Et.pattern.getPositivePatterns(r)}Ze.getPositivePatterns=Ad;function Rd(r,t){return Et.pattern.getNegativePatterns(r).concat(t).map(Et.pattern.convertToPositivePattern)}Ze.getNegativePatternsAsPositive=Rd;function Ns(r){let t={};return r.reduce((e,u)=>{let d=Et.pattern.getBaseDirectory(u);return d in e?e[d].push(u):e[d]=[u],e},t)}Ze.groupPatternsByBaseDirectory=Ns;function Ms(r,t,e){return Object.keys(r).map(u=>Is(u,r[u],t,e))}Ze.convertPatternGroupsToTasks=Ms;function Is(r,t,e,u){return{dynamic:u,positive:t,negative:e,base:r,patterns:[].concat(t,e.map(Et.pattern.convertToNegativePattern))}}Ze.convertPatternGroupToTask=Is});var Pd=Y(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.removeDuplicateSlashes=vr.transform=void 0;var c0=/(?!^)\/{2,}/g;function f0(r){return r.map(t=>Dd(t))}vr.transform=f0;function Dd(r){return r.replace(c0,"/")}vr.removeDuplicateSlashes=Dd});var Od=Y(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.read=void 0;function _0(r,t,e){t.fs.lstat(r,(u,d)=>{if(u!==null){xd(e,u);return}if(!d.isSymbolicLink()||!t.followSymbolicLink){Bs(e,d);return}t.fs.stat(r,(y,v)=>{if(y!==null){if(t.throwErrorOnBrokenSymbolicLink){xd(e,y);return}Bs(e,d);return}t.markSymbolicLink&&(v.isSymbolicLink=()=>!0),Bs(e,v)})})}Ui.read=_0;function xd(r,t){r(t)}function Bs(r,t){r(null,t)}});var Fd=Y(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.read=void 0;function d0(r,t){let e=t.fs.lstatSync(r);if(!e.isSymbolicLink()||!t.followSymbolicLink)return e;try{let u=t.fs.statSync(r);return t.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!t.throwErrorOnBrokenSymbolicLink)return e;throw u}}Hi.read=d0});var Nd=Y(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.createFileSystemAdapter=Pt.FILE_SYSTEM_ADAPTER=void 0;var qi=require("fs");Pt.FILE_SYSTEM_ADAPTER={lstat:qi.lstat,stat:qi.stat,lstatSync:qi.lstatSync,statSync:qi.statSync};function p0(r){return r===void 0?Pt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Pt.FILE_SYSTEM_ADAPTER),r)}Pt.createFileSystemAdapter=p0});var Md=Y(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});var y0=Nd(),Ls=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=y0.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,e){return t??e}};Us.default=Ls});var Kt=Y(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.statSync=xt.stat=xt.Settings=void 0;var Id=Od(),h0=Fd(),Hs=Md();xt.Settings=Hs.default;function m0(r,t,e){if(typeof t=="function"){Id.read(r,qs(),t);return}Id.read(r,qs(t),e)}xt.stat=m0;function v0(r,t){let e=qs(t);return h0.read(r,e)}xt.statSync=v0;function qs(r={}){return r instanceof Hs.default?r:new Hs.default(r)}});var Ud=Y((Xk,Ld)=>{var Bd;Ld.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):r=>(Bd||(Bd=Promise.resolve())).then(r).catch(t=>setTimeout(()=>{throw t},0))});var qd=Y((Jk,Hd)=>{Hd.exports=b0;var g0=Ud();function b0(r,t){let e,u,d,y=!0;Array.isArray(r)?(e=[],u=r.length):(d=Object.keys(r),e={},u=d.length);function v(A){function I(){t&&t(A,e),t=null}y?g0(I):I()}function S(A,I,R){e[A]=R,(--u===0||I)&&v(I)}u?d?d.forEach(function(A){r[A](function(I,R){S(A,I,R)})}):r.forEach(function(A,I){A(function(R,U){S(I,R,U)})}):v(null),y=!1}});var Ws=Y($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Wi=process.versions.node.split(".");if(Wi[0]===void 0||Wi[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Wd=Number.parseInt(Wi[0],10),j0=Number.parseInt(Wi[1],10),$d=10,w0=10,k0=Wd>$d,C0=Wd===$d&&j0>=w0;$i.IS_SUPPORT_READDIR_WITH_FILE_TYPES=k0||C0});var Gd=Y(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.createDirentFromStats=void 0;var $s=class{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}};function S0(r,t){return new $s(r,t)}Gi.createDirentFromStats=S0});var Gs=Y(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.fs=void 0;var E0=Gd();Ki.fs=E0});var Ks=Y(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.joinPathSegments=void 0;function A0(r,t,e){return r.endsWith(e)?r+t:r+e+t}Vi.joinPathSegments=A0});var Xd=Y(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.readdir=Ot.readdirWithFileTypes=Ot.read=void 0;var R0=Kt(),Kd=qd(),T0=Ws(),Vd=Gs(),Yd=Ks();function D0(r,t,e){if(!t.stats&&T0.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Qd(r,t,e);return}zd(r,t,e)}Ot.read=D0;function Qd(r,t,e){t.fs.readdir(r,{withFileTypes:!0},(u,d)=>{if(u!==null){Yi(e,u);return}let y=d.map(S=>({dirent:S,name:S.name,path:Yd.joinPathSegments(r,S.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Vs(e,y);return}let v=y.map(S=>P0(S,t));Kd(v,(S,A)=>{if(S!==null){Yi(e,S);return}Vs(e,A)})})}Ot.readdirWithFileTypes=Qd;function P0(r,t){return e=>{if(!r.dirent.isSymbolicLink()){e(null,r);return}t.fs.stat(r.path,(u,d)=>{if(u!==null){if(t.throwErrorOnBrokenSymbolicLink){e(u);return}e(null,r);return}r.dirent=Vd.fs.createDirentFromStats(r.name,d),e(null,r)})}}function zd(r,t,e){t.fs.readdir(r,(u,d)=>{if(u!==null){Yi(e,u);return}let y=d.map(v=>{let S=Yd.joinPathSegments(r,v,t.pathSegmentSeparator);return A=>{R0.stat(S,t.fsStatSettings,(I,R)=>{if(I!==null){A(I);return}let U={name:v,path:S,dirent:Vd.fs.createDirentFromStats(v,R)};t.stats&&(U.stats=R),A(null,U)})}});Kd(y,(v,S)=>{if(v!==null){Yi(e,v);return}Vs(e,S)})})}Ot.readdir=zd;function Yi(r,t){r(t)}function Vs(r,t){r(null,t)}});var rp=Y(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var x0=Kt(),O0=Ws(),Jd=Gs(),Zd=Ks();function F0(r,t){return!t.stats&&O0.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ep(r,t):tp(r,t)}Ft.read=F0;function ep(r,t){return t.fs.readdirSync(r,{withFileTypes:!0}).map(u=>{let d={dirent:u,name:u.name,path:Zd.joinPathSegments(r,u.name,t.pathSegmentSeparator)};if(d.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let y=t.fs.statSync(d.path);d.dirent=Jd.fs.createDirentFromStats(d.name,y)}catch(y){if(t.throwErrorOnBrokenSymbolicLink)throw y}return d})}Ft.readdirWithFileTypes=ep;function tp(r,t){return t.fs.readdirSync(r).map(u=>{let d=Zd.joinPathSegments(r,u,t.pathSegmentSeparator),y=x0.statSync(d,t.fsStatSettings),v={name:u,path:d,dirent:Jd.fs.createDirentFromStats(u,y)};return t.stats&&(v.stats=y),v})}Ft.readdir=tp});var ip=Y(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.createFileSystemAdapter=Nt.FILE_SYSTEM_ADAPTER=void 0;var gr=require("fs");Nt.FILE_SYSTEM_ADAPTER={lstat:gr.lstat,stat:gr.stat,lstatSync:gr.lstatSync,statSync:gr.statSync,readdir:gr.readdir,readdirSync:gr.readdirSync};function N0(r){return r===void 0?Nt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Nt.FILE_SYSTEM_ADAPTER),r)}Nt.createFileSystemAdapter=N0});var np=Y(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});var M0=require("path"),I0=Kt(),B0=ip(),Ys=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=B0.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,M0.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new I0.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};Qs.default=Ys});var Qi=Y(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.Settings=Mt.scandirSync=Mt.scandir=void 0;var ap=Xd(),L0=rp(),zs=np();Mt.Settings=zs.default;function U0(r,t,e){if(typeof t=="function"){ap.read(r,Xs(),t);return}ap.read(r,Xs(t),e)}Mt.scandir=U0;function H0(r,t){let e=Xs(t);return L0.read(r,e)}Mt.scandirSync=H0;function Xs(r={}){return r instanceof zs.default?r:new zs.default(r)}});var op=Y((uC,sp)=>{"use strict";function q0(r){var t=new r,e=t;function u(){var y=t;return y.next?t=y.next:(t=new r,e=t),y.next=null,y}function d(y){e.next=y,e=y}return{get:u,release:d}}sp.exports=q0});var lp=Y((lC,Js)=>{"use strict";var W0=op();function up(r,t,e){if(typeof r=="function"&&(e=t,t=r,r=null),e<1)throw new Error("fastqueue concurrency must be greater than 1");var u=W0($0),d=null,y=null,v=0,S=null,A={push:z,drain:ct,saturated:ct,pause:R,paused:!1,concurrency:e,running:I,resume:fe,idle:K,length:U,getQueue:P,unshift:Z,empty:ct,kill:be,killAndDrain:he,error:Ae};return A;function I(){return v}function R(){A.paused=!0}function U(){for(var ne=d,we=0;ne;)ne=ne.next,we++;return we}function P(){for(var ne=d,we=[];ne;)we.push(ne.value),ne=ne.next;return we}function fe(){if(!!A.paused){A.paused=!1;for(var ne=0;ne<A.concurrency;ne++)v++,oe()}}function K(){return v===0&&A.length()===0}function z(ne,we){var J=u.get();J.context=r,J.release=oe,J.value=ne,J.callback=we||ct,J.errorHandler=S,v===A.concurrency||A.paused?y?(y.next=J,y=J):(d=J,y=J,A.saturated()):(v++,t.call(r,J.value,J.worked))}function Z(ne,we){var J=u.get();J.context=r,J.release=oe,J.value=ne,J.callback=we||ct,v===A.concurrency||A.paused?d?(J.next=d,d=J):(d=J,y=J,A.saturated()):(v++,t.call(r,J.value,J.worked))}function oe(ne){ne&&u.release(ne);var we=d;we?A.paused?v--:(y===d&&(y=null),d=we.next,we.next=null,t.call(r,we.value,we.worked),y===null&&A.empty()):--v===0&&A.drain()}function be(){d=null,y=null,A.drain=ct}function he(){d=null,y=null,A.drain(),A.drain=ct}function Ae(ne){S=ne}}function ct(){}function $0(){this.value=null,this.callback=ct,this.next=null,this.release=ct,this.context=null,this.errorHandler=null;var r=this;this.worked=function(e,u){var d=r.callback,y=r.errorHandler,v=r.value;r.value=null,r.callback=ct,r.errorHandler&&y(e,v),d.call(r.context,e,u),r.release(r)}}function G0(r,t,e){typeof r=="function"&&(e=t,t=r,r=null);function u(R,U){t.call(this,R).then(function(P){U(null,P)},U)}var d=up(r,u,e),y=d.push,v=d.unshift;return d.push=S,d.unshift=A,d.drained=I,d;function S(R){var U=new Promise(function(P,fe){y(R,function(K,z){if(K){fe(K);return}P(z)})});return U.catch(ct),U}function A(R){var U=new Promise(function(P,fe){v(R,function(K,z){if(K){fe(K);return}P(z)})});return U.catch(ct),U}function I(){var R=d.drain,U=new Promise(function(P){d.drain=function(){R(),P()}});return U}}Js.exports=up;Js.exports.promise=G0});var zi=Y(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.joinPathSegments=vt.replacePathSegmentSeparator=vt.isAppliedFilter=vt.isFatalError=void 0;function K0(r,t){return r.errorFilter===null?!0:!r.errorFilter(t)}vt.isFatalError=K0;function V0(r,t){return r===null||r(t)}vt.isAppliedFilter=V0;function Y0(r,t){return r.split(/[/\\]/).join(t)}vt.replacePathSegmentSeparator=Y0;function Q0(r,t,e){return r===""?t:r.endsWith(e)?r+t:r+e+t}vt.joinPathSegments=Q0});var to=Y(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});var z0=zi(),Zs=class{constructor(t,e){this._root=t,this._settings=e,this._root=z0.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}};eo.default=Zs});var no=Y(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});var X0=require("events"),J0=Qi(),Z0=lp(),Xi=zi(),ew=to(),ro=class extends ew.default{constructor(t,e){super(t,e),this._settings=e,this._scandir=J0.scandir,this._emitter=new X0.EventEmitter,this._queue=Z0(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){let u={directory:t,base:e};this._queue.push(u,d=>{d!==null&&this._handleError(d)})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(u,d)=>{if(u!==null){e(u,void 0);return}for(let y of d)this._handleEntry(y,t.base);e(null,void 0)})}_handleError(t){this._isDestroyed||!Xi.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError)return;let u=t.path;e!==void 0&&(t.path=Xi.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Xi.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Xi.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(u,e===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};io.default=ro});var cp=Y(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});var tw=no(),ao=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new tw.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(e=>{rw(t,e)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{iw(t,this._storage)}),this._reader.read()}};so.default=ao;function rw(r,t){r(t)}function iw(r,t){r(null,t)}});var fp=Y(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});var nw=require("stream"),aw=no(),oo=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new aw.default(this._root,this._settings),this._stream=new nw.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};uo.default=oo});var _p=Y(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var sw=Qi(),Ji=zi(),ow=to(),lo=class extends ow.default{constructor(){super(...arguments),this._scandir=sw.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,e){try{let u=this._scandir(t,this._settings.fsScandirSettings);for(let d of u)this._handleEntry(d,e)}catch(u){this._handleError(u)}}_handleError(t){if(!!Ji.isFatalError(this._settings,t))throw t}_handleEntry(t,e){let u=t.path;e!==void 0&&(t.path=Ji.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Ji.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Ji.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(u,e===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};co.default=lo});var dp=Y(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});var uw=_p(),fo=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new uw.default(this._root,this._settings)}read(){return this._reader.read()}};_o.default=fo});var pp=Y(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});var lw=require("path"),cw=Qi(),po=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,lw.sep),this.fsScandirSettings=new cw.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};yo.default=po});var mo=Y(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.Settings=gt.walkStream=gt.walkSync=gt.walk=void 0;var yp=cp(),fw=fp(),_w=dp(),ho=pp();gt.Settings=ho.default;function dw(r,t,e){if(typeof t=="function"){new yp.default(r,Zi()).read(t);return}new yp.default(r,Zi(t)).read(e)}gt.walk=dw;function pw(r,t){let e=Zi(t);return new _w.default(r,e).read()}gt.walkSync=pw;function yw(r,t){let e=Zi(t);return new fw.default(r,e).read()}gt.walkStream=yw;function Zi(r={}){return r instanceof ho.default?r:new ho.default(r)}});var bo=Y(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});var hw=require("path"),mw=Kt(),hp=St(),vo=class{constructor(t){this._settings=t,this._fsStatSettings=new mw.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return hw.resolve(this._settings.cwd,t)}_makeEntry(t,e){let u={name:e,path:e,dirent:hp.fs.createDirentFromStats(e,t)};return this._settings.stats&&(u.stats=t),u}_isFatalError(t){return!hp.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};go.default=vo});var ko=Y(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});var vw=require("stream"),gw=Kt(),bw=mo(),jw=bo(),jo=class extends jw.default{constructor(){super(...arguments),this._walkStream=bw.walkStream,this._stat=gw.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){let u=t.map(this._getFullEntryPath,this),d=new vw.PassThrough({objectMode:!0});d._write=(y,v,S)=>this._getEntry(u[y],t[y],e).then(A=>{A!==null&&e.entryFilter(A)&&d.push(A),y===u.length-1&&d.end(),S()}).catch(S);for(let y=0;y<u.length;y++)d.write(y);return d}_getEntry(t,e,u){return this._getStat(t).then(d=>this._makeEntry(d,e)).catch(d=>{if(u.errorFilter(d))return null;throw d})}_getStat(t){return new Promise((e,u)=>{this._stat(t,this._fsStatSettings,(d,y)=>d===null?e(y):u(d))})}};wo.default=jo});var mp=Y(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var br=St(),Co=class{constructor(t,e,u){this._patterns=t,this._settings=e,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){let t=br.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let e of t){let u=this._getPatternSegments(e),d=this._splitSegmentsIntoSections(u);this._storage.push({complete:d.length<=1,pattern:e,segments:u,sections:d})}}_getPatternSegments(t){return br.pattern.getPatternParts(t,this._micromatchOptions).map(u=>br.pattern.isDynamicPattern(u,this._settings)?{dynamic:!0,pattern:u,patternRe:br.pattern.makeRe(u,this._micromatchOptions)}:{dynamic:!1,pattern:u})}_splitSegmentsIntoSections(t){return br.array.splitWhen(t,e=>e.dynamic&&br.pattern.hasGlobStar(e.pattern))}};So.default=Co});var vp=Y(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});var ww=mp(),Eo=class extends ww.default{match(t){let e=t.split("/"),u=e.length,d=this._storage.filter(y=>!y.complete||y.segments.length>u);for(let y of d){let v=y.sections[0];if(!y.complete&&u>v.length||e.every((A,I)=>{let R=y.segments[I];return!!(R.dynamic&&R.patternRe.test(A)||!R.dynamic&&R.pattern===A)}))return!0}return!1}};Ao.default=Eo});var gp=Y(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});var en=St(),kw=vp(),Ro=class{constructor(t,e){this._settings=t,this._micromatchOptions=e}getFilter(t,e,u){let d=this._getMatcher(e),y=this._getNegativePatternsRe(u);return v=>this._filter(t,v,d,y)}_getMatcher(t){return new kw.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let e=t.filter(en.pattern.isAffectDepthOfReadingPattern);return en.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,u,d){if(this._isSkippedByDeep(t,e.path)||this._isSkippedSymbolicLink(e))return!1;let y=en.path.removeLeadingDotSegment(e.path);return this._isSkippedByPositivePatterns(y,u)?!1:this._isSkippedByNegativePatterns(y,d)}_isSkippedByDeep(t,e){return this._settings.deep===1/0?!1:this._getEntryLevel(t,e)>=this._settings.deep}_getEntryLevel(t,e){let u=e.split("/").length;if(t==="")return u;let d=t.split("/").length;return u-d}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!en.pattern.matchAny(t,e)}};To.default=Ro});var bp=Y(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});var Vt=St(),Do=class{constructor(t,e){this._settings=t,this._micromatchOptions=e,this.index=new Map}getFilter(t,e){let u=Vt.pattern.convertPatternsToRe(t,this._micromatchOptions),d=Vt.pattern.convertPatternsToRe(e,this._micromatchOptions);return y=>this._filter(y,u,d)}_filter(t,e,u){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,u))return!1;let d=this._settings.baseNameMatch?t.name:t.path,y=this._isMatchToPatterns(d,e)&&!this._isMatchToPatterns(t.path,u);return this._settings.unique&&y&&this._createIndexRecord(t),y}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute)return!1;let u=Vt.path.makeAbsolute(this._settings.cwd,t);return Vt.pattern.matchAny(u,e)}_isMatchToPatterns(t,e){let u=Vt.path.removeLeadingDotSegment(t);return Vt.pattern.matchAny(u,e)||Vt.pattern.matchAny(u+"/",e)}};Po.default=Do});var jp=Y(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});var Cw=St(),xo=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Cw.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Oo.default=xo});var kp=Y(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});var wp=St(),Fo=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;return this._settings.absolute&&(e=wp.path.makeAbsolute(this._settings.cwd,e),e=wp.path.unixify(e)),this._settings.markDirectories&&t.dirent.isDirectory()&&(e+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:e}):e}};No.default=Fo});var tn=Y(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});var Sw=require("path"),Ew=gp(),Aw=bp(),Rw=jp(),Tw=kp(),Mo=class{constructor(t){this._settings=t,this.errorFilter=new Rw.default(this._settings),this.entryFilter=new Aw.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Ew.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Tw.default(this._settings)}_getRootDirectory(t){return Sw.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let e=t.base==="."?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Io.default=Mo});var Cp=Y(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});var Dw=ko(),Pw=tn(),Bo=class extends Pw.default{constructor(){super(...arguments),this._reader=new Dw.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t),d=[];return new Promise((y,v)=>{let S=this.api(e,t,u);S.once("error",v),S.on("data",A=>d.push(u.transform(A))),S.once("end",()=>y(d))})}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};Lo.default=Bo});var Sp=Y(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});var xw=require("stream"),Ow=ko(),Fw=tn(),Uo=class extends Fw.default{constructor(){super(...arguments),this._reader=new Ow.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t),d=this.api(e,t,u),y=new xw.Readable({objectMode:!0,read:()=>{}});return d.once("error",v=>y.emit("error",v)).on("data",v=>y.emit("data",u.transform(v))).once("end",()=>y.emit("end")),y.once("close",()=>d.destroy()),y}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};Ho.default=Uo});var Ep=Y(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});var Nw=Kt(),Mw=mo(),Iw=bo(),qo=class extends Iw.default{constructor(){super(...arguments),this._walkSync=Mw.walkSync,this._statSync=Nw.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){let u=[];for(let d of t){let y=this._getFullEntryPath(d),v=this._getEntry(y,d,e);v===null||!e.entryFilter(v)||u.push(v)}return u}_getEntry(t,e,u){try{let d=this._getStat(t);return this._makeEntry(d,e)}catch(d){if(u.errorFilter(d))return null;throw d}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Wo.default=qo});var Ap=Y(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});var Bw=Ep(),Lw=tn(),$o=class extends Lw.default{constructor(){super(...arguments),this._reader=new Bw.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t);return this.api(e,t,u).map(u.transform)}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};Go.default=$o});var Rp=Y(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var jr=require("fs"),Uw=require("os"),Hw=Math.max(Uw.cpus().length,1);wr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:jr.lstat,lstatSync:jr.lstatSync,stat:jr.stat,statSync:jr.statSync,readdir:jr.readdir,readdirSync:jr.readdirSync};var Ko=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Hw),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)}_getValue(t,e){return t===void 0?e:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},wr.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};wr.default=Ko});var xp=Y((OC,Pp)=>{"use strict";var Tp=Td(),Dp=Pd(),qw=Cp(),Ww=Sp(),$w=Ap(),Vo=Rp(),Yt=St();async function Yo(r,t){kr(r);let e=Qo(r,qw.default,t),u=await Promise.all(e);return Yt.array.flatten(u)}(function(r){function t(v,S){kr(v);let A=Qo(v,$w.default,S);return Yt.array.flatten(A)}r.sync=t;function e(v,S){kr(v);let A=Qo(v,Ww.default,S);return Yt.stream.merge(A)}r.stream=e;function u(v,S){kr(v);let A=Dp.transform([].concat(v)),I=new Vo.default(S);return Tp.generate(A,I)}r.generateTasks=u;function d(v,S){kr(v);let A=new Vo.default(S);return Yt.pattern.isDynamicPattern(v,A)}r.isDynamicPattern=d;function y(v){return kr(v),Yt.path.escape(v)}r.escapePath=y})(Yo||(Yo={}));function Qo(r,t,e){let u=Dp.transform([].concat(r)),d=new Vo.default(e),y=Tp.generate(u,d),v=new t(d);return y.map(v.read,v)}function kr(r){if(![].concat(r).every(u=>Yt.string.isString(u)&&!Yt.string.isEmpty(u)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Pp.exports=Yo});var Yw={};Ag(Yw,{ConsoleLogger:()=>as,DEFAULT_RUNTIME:()=>is,DuckDBBindingsBase:()=>Wr,DuckDBConnection:()=>Ur,DuckDBDataProtocol:()=>rs,DuckDBFeature:()=>If,FileFlags:()=>Mf,FileStatistics:()=>qr,JSONTableShape:()=>Bf,LogEvent:()=>Hf,LogLevel:()=>Lf,LogOrigin:()=>qf,LogTopic:()=>Uf,NODE_RUNTIME:()=>We,PACKAGE_NAME:()=>ss,PACKAGE_VERSION:()=>os,PACKAGE_VERSION_MAJOR:()=>Lg,PACKAGE_VERSION_MINOR:()=>Ug,PACKAGE_VERSION_PATCH:()=>Hg,PreparedStatement:()=>Ci,ResultStreamIterator:()=>Hr,StatusCode:()=>Pf,VoidLogger:()=>ns,callSRet:()=>je,copyBuffer:()=>Tt,createDuckDB:()=>Vw,decodeText:()=>Rt,dropResponseBuffers:()=>De,failWith:()=>Ee,getJsDelivrBundles:()=>$g,getLogEventLabel:()=>xg,getLogLevelLabel:()=>Pg,getLogOriginLabel:()=>Fg,getLogTopicLabel:()=>Og,getPlatformFeatures:()=>Ti,isFirefox:()=>qg,isNode:()=>ps,isSafari:()=>Wg,readString:()=>_e,selectBundle:()=>Gg});module.exports=Rg(Yw);var pt=_r(require("apache-arrow")),Ur=class{constructor(t,e){this._bindings=t,this._conn=e}close(){this._bindings.disconnect(this._conn)}useUnsafe(t){return t(this._bindings,this._conn)}query(t){let e=this._bindings.runQuery(this._conn,t),u=pt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),new pt.Table(u)}async send(t){let e=this._bindings.startPendingQuery(this._conn,t);for(;e==null;)e=await new Promise((y,v)=>{try{y(this._bindings.pollPendingQuery(this._conn))}catch(S){v(S)}});let u=new Hr(this._bindings,this._conn,e),d=pt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(t){return this._bindings.getTableNames(this._conn,t)}prepare(t){let e=this._bindings.createPrepared(this._conn,t);return new Ci(this._bindings,this._conn,e)}createScalarFunction(t,e,u){this._bindings.createScalarFunction(this._conn,t,e,u)}insertArrowTable(t,e){let u=pt.tableToIPC(t,"stream");this.insertArrowFromIPCStream(u,e)}insertArrowFromIPCStream(t,e){this._bindings.insertArrowFromIPCStream(this._conn,t,e)}insertCSVFromPath(t,e){this._bindings.insertCSVFromPath(this._conn,t,e)}insertJSONFromPath(t,e){this._bindings.insertJSONFromPath(this._conn,t,e)}},Hr=class{constructor(t,e,u){this.bindings=t;this.conn=e;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 t=this.bindings.fetchQueryResults(this.conn);return this._depleted=t.length==0,{done:this._depleted,value:t}}[Symbol.iterator](){return this}},Ci=class{constructor(t,e,u){this.bindings=t,this.connectionId=e,this.statementId=u}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),u=pt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),new pt.Table(u)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),u=new Hr(this.bindings,this.connectionId,e),d=pt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}};var Pf=(t=>(t[t.SUCCESS=0]="SUCCESS",t))(Pf||{});var Ff=new TextEncoder,xf=new TextDecoder("utf-8");function Za(r,t,e){let u=Ff.encode(e),d=r._malloc(u.byteLength),y=r.HEAPU8.subarray(d,d+u.byteLength);y.set(u),r.HEAPF64[(t>>3)+0]=1,r.HEAPF64[(t>>3)+1]=d,r.HEAPF64[(t>>3)+2]=y.byteLength}function ts(r){switch(r){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 es(r,t,e,u){let d=r.HEAPU8.subarray(t,t+u*ts(e));switch(e){case"UINT8":return new Uint8Array(d.buffer,d.byteOffset,u);case"INT8":return new Int8Array(d.buffer,d.byteOffset,u);case"INT32":return new Int32Array(d.buffer,d.byteOffset,u);case"FLOAT":return new Float32Array(d.buffer,d.byteOffset,u);case"DOUBLE":return new Float64Array(d.buffer,d.byteOffset,u);case"VARCHAR":return new Float64Array(d.buffer,d.byteOffset,u);default:return new Array(0)}}function Of(r,t,e){let u=r.HEAPU8.subarray(t,t+e);return new Uint8Array(u.buffer,u.byteOffset,e)}function Si(r,t,e){let u=r.HEAPU8.subarray(t,t+e*8);return new Float64Array(u.buffer,u.byteOffset,e)}function Ei(r,t,e,u,d,y,v,S){try{let A=r._udfFunctions.get(u);if(!A){Za(t,e,"Unknown UDF with id: "+u);return}let I=xf.decode(t.HEAPU8.subarray(d,d+y)),R=JSON.parse(I),U=Si(t,v,S/8),P=H=>{var F;let pe=null;switch(H.validityBuffer!==void 0&&(pe=Of(t,U[H.validityBuffer],R.rows)),H.physicalType){case"VARCHAR":{if(H.dataBuffer===null||H.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(H.lengthBuffer===null||H.lengthBuffer===void 0)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let ue=es(t,U[H.dataBuffer],H.physicalType,R.rows),ae=[],ke=Si(t,U[H.lengthBuffer],R.rows);for(let D=0;D<R.rows;++D){if(pe!=null&&!pe[D]){ae.push(null);continue}let x=t.HEAPU8.subarray(ue[D],ue[D]+ke[D]),Pe=xf.decode(x);ae.push(Pe)}return D=>ae[D]}case"STRUCT":{let ue={},ae=[];for(let ke=0;ke<(((F=H.children)==null?void 0:F.length)||0);++ke){let D=H.children[ke],x=P(D);ae.push(Pe=>{ue[D.name]=x(Pe)})}return pe!=null?ke=>{if(!pe[ke])return null;for(let D of ae)D(ke);return ue}:ke=>{for(let D of ae)D(ke);return ue}}default:{if(H.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for argument of type: "+H.physicalType);let ue=es(t,U[H.dataBuffer],H.physicalType,R.rows);return pe!=null?ae=>pe[ae]?ue[ae]:null:ae=>ue[ae]}}},fe=[];for(let H=0;H<R.args.length;++H)fe.push(P(R.args[H]));let K=R.rows*ts(R.ret.physicalType),z=t._malloc(K),Z=es(t,z,R.ret.physicalType,R.rows),oe=t._malloc(R.rows),be=Of(t,oe,R.rows);if(Z.length==0||be.length==0){Za(t,e,"Can't create physical arrays for result");return}let he=Z;R.ret.physicalType=="VARCHAR"&&(he=new Array(R.rows));let Ae=[];for(let H=0;H<R.args.length;++H)Ae.push(null);for(let H=0;H<R.rows;++H){for(let F=0;F<R.args.length;++F)Ae[F]=fe[F](H);let pe=A.func(...Ae);he[H]=pe,be[H]=pe==null?0:1}let ne=0;switch(R.ret.physicalType){case"VARCHAR":{let H=new Array(0);ne=t._malloc(R.rows*ts("DOUBLE"));let pe=Si(t,ne,R.rows),F=0;for(let D=0;D<R.rows;++D){let x=Ff.encode(he[D]||"");H.push(x),pe[D]=x.length,F+=x.length}let ue=t._malloc(F),ae=t.HEAPU8.subarray(ue,ue+F),ke=0;for(let D=0;D<R.rows;++D){Z[D]=ke;let x=H[D];ae.subarray(ke,ke+x.length).set(x),ke+=x.length}}}let we=3*8,J=t._malloc(we),ee=Si(t,J,3);ee[0]=z,ee[1]=oe,ee[2]=ne,t.HEAPF64[(e>>3)+0]=0,t.HEAPF64[(e>>3)+1]=J,t.HEAPF64[(e>>3)+2]=0}catch(A){Za(t,e,A.toString())}}function Tg(){let r=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),r.decode(t))}var Rt=Tg();function Ee(r,t){r.ccall("duckdb_web_fail_with",null,["string"],[t])}function Tt(r,t,e){let u=r.HEAPU8.subarray(t,t+e),d=new Uint8Array(new ArrayBuffer(u.byteLength));return d.set(u),d}function _e(r,t,e){return Rt(r.HEAPU8.subarray(t,t+e))}var rs=(d=>(d[d.BUFFER=0]="BUFFER",d[d.NATIVE=1]="NATIVE",d[d.HTTP=3]="HTTP",d[d.S3=4]="S3",d))(rs||{}),Mf=(v=>(v[v.FILE_FLAGS_READ=1]="FILE_FLAGS_READ",v[v.FILE_FLAGS_WRITE=2]="FILE_FLAGS_WRITE",v[v.FILE_FLAGS_DIRECT_IO=4]="FILE_FLAGS_DIRECT_IO",v[v.FILE_FLAGS_FILE_CREATE=8]="FILE_FLAGS_FILE_CREATE",v[v.FILE_FLAGS_FILE_CREATE_NEW=16]="FILE_FLAGS_FILE_CREATE_NEW",v[v.FILE_FLAGS_APPEND=32]="FILE_FLAGS_APPEND",v))(Mf||{});function je(r,t,e,u){let d=r.stackSave(),y=r.stackAlloc(3*8);e.unshift("number"),u.unshift(y),r.ccall(t,null,e,u);let v=r.HEAPF64[(y>>3)+0],S=r.HEAPF64[(y>>3)+1],A=r.HEAPF64[(y>>3)+2];return r.stackRestore(d),[v,S,A]}function De(r){r.ccall("duckdb_web_clear_response",null,[],[])}var is={_udfFunctions:new Map,testPlatformFeature:(r,t)=>!1,openFile:(r,t,e)=>{},syncFile:(r,t)=>{},closeFile:(r,t)=>{},getLastFileModificationTime:(r,t)=>0,truncateFile:(r,t,e)=>{},readFile:(r,t,e,u,d)=>0,writeFile:(r,t,e,u,d)=>0,removeDirectory:(r,t,e)=>{},checkDirectory:(r,t,e)=>!1,createDirectory:(r,t,e)=>{},listDirectoryEntries:(r,t,e)=>!1,glob:(r,t,e)=>{},moveFile:(r,t,e,u,d)=>{},checkFile:(r,t,e)=>!1,removeFile:(r,t,e)=>{},callScalarUDF:(r,t,e,u,d,y,v)=>{Ei(is,r,t,e,u,d,y,v)}};var qr=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),u=new Uint8Array(new ArrayBuffer(t.byteLength));u.set(t.subarray(7*8)),this.totalFileReadsCold=e[0],this.totalFileReadsAhead=e[1],this.totalFileReadsCached=e[2],this.totalFileWrites=e[3],this.totalPageAccesses=e[4],this.totalPageLoads=e[5],this.blockSize=e[6],this.blockStats=u}getBlockStats(t,e){return e=e||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},e.file_writes=this.blockStats[t*3+0]&15,e.file_reads_cold=this.blockStats[t*3+0]>>4,e.file_reads_ahead=this.blockStats[t*3+1]&15,e.file_reads_cached=this.blockStats[t*3+1]>>4,e.page_accesses=this.blockStats[t*3+1]&15,e.page_loads=this.blockStats[t*3+1]>>4,e}};var ye=_r(require("apache-arrow"));function dr(r){switch(r.typeId){case ye.Type.Binary:return{sqlType:"binary"};case ye.Type.Bool:return{sqlType:"bool"};case ye.Type.Date:return{sqlType:"date"};case ye.Type.DateDay:return{sqlType:"date32[d]"};case ye.Type.DateMillisecond:return{sqlType:"date64[ms]"};case ye.Type.Decimal:{let t=r;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case ye.Type.Float:return{sqlType:"float"};case ye.Type.Float16:return{sqlType:"float16"};case ye.Type.Float32:return{sqlType:"float32"};case ye.Type.Float64:return{sqlType:"float64"};case ye.Type.Int:return{sqlType:"int32"};case ye.Type.Int16:return{sqlType:"int16"};case ye.Type.Int32:return{sqlType:"int32"};case ye.Type.Int64:return{sqlType:"int64"};case ye.Type.Uint16:return{sqlType:"uint16"};case ye.Type.Uint32:return{sqlType:"uint32"};case ye.Type.Uint64:return{sqlType:"uint64"};case ye.Type.Uint8:return{sqlType:"uint8"};case ye.Type.IntervalDayTime:return{sqlType:"interval[dt]"};case ye.Type.IntervalYearMonth:return{sqlType:"interval[m]"};case ye.Type.List:return{sqlType:"list",valueType:dr(r.valueType)};case ye.Type.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:r.byteWidth};case ye.Type.Null:return{sqlType:"null"};case ye.Type.Utf8:return{sqlType:"utf8"};case ye.Type.Struct:return{sqlType:"struct",fields:r.children.map(e=>Ai(e.name,e.type))};case ye.Type.Map:{let t=r;return{sqlType:"map",keyType:dr(t.keyType),valueType:dr(t.valueType)}}case ye.Type.Time:return{sqlType:"time[s]"};case ye.Type.TimeMicrosecond:return{sqlType:"time[us]"};case ye.Type.TimeMillisecond:return{sqlType:"time[ms]"};case ye.Type.TimeNanosecond:return{sqlType:"time[ns]"};case ye.Type.TimeSecond:return{sqlType:"time[s]"};case ye.Type.Timestamp:return{sqlType:"timestamp",timezone:r.timezone||void 0};case ye.Type.TimestampSecond:return{sqlType:"timestamp[s]",timezone:r.timezone||void 0};case ye.Type.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:r.timezone||void 0};case ye.Type.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:r.timezone||void 0};case ye.Type.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:r.timezone||void 0}}throw new Error(`unsupported arrow type: ${r.toString()}`)}function Ai(r,t){let e=dr(t);return e.name=r,e}var Dg=new TextEncoder,If=(y=>(y[y.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",y[y.WASM_THREADS=2]="WASM_THREADS",y[y.WASM_SIMD=4]="WASM_SIMD",y[y.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",y[y.EMIT_BIGINT=16]="EMIT_BIGINT",y))(If||{}),Wr=class{constructor(t,e){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=t,this._runtime=e,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(t=e=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(t),await this._initPromise),this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this.onInstantiationProgress=[t],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter(e=>e!=t),this)}open(t){let[e,u,d]=je(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(e!==0)throw new Error(_e(this.mod,u,d));De(this.mod)}reset(){let[t,e,u]=je(this.mod,"duckdb_web_reset",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));De(this.mod)}getVersion(){let[t,e,u]=je(this.mod,"duckdb_web_get_version",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));let d=_e(this.mod,e,u);return De(this.mod),d}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,u,d]=je(this.mod,"duckdb_web_tokenize",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=_e(this.mod,u,d);return De(this.mod),JSON.parse(y)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new Ur(this,t)}disconnect(t){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[t]),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"dropUDFFunctions",connectionId:t})}runQuery(t,e){let[u,d,y]=je(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));let v=Tt(this.mod,d,y);return De(this.mod),v}startPendingQuery(t,e){let[u,d,y]=je(this.mod,"duckdb_web_pending_query_start",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));if(d==0)return null;let v=Tt(this.mod,d,y);return De(this.mod),v}pollPendingQuery(t){let[e,u,d]=je(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));if(u==0)return null;let y=Tt(this.mod,u,d);return De(this.mod),y}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[e,u,d]=je(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=Tt(this.mod,u,d);return De(this.mod),y}getTableNames(t,e){let[u,d,y]=je(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));let v=_e(this.mod,d,y);return De(this.mod),JSON.parse(v)}createScalarFunction(t,e,u,d){let y={functionId:this._nextUDFId,name:e,returnType:dr(u)},v={functionId:y.functionId,connectionId:t,name:e,returnType:u,func:d};this._nextUDFId+=1;let[S,A,I]=je(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(y)]);if(S!==0)throw new Error(_e(this.mod,A,I));if(De(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(v.functionId,v),this.pthread)for(let R of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])R.postMessage({cmd:"registerUDFFunction",udf:v})}createPrepared(t,e){let[u,d,y]=je(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));return De(this.mod),d}closePrepared(t,e){let[u,d,y]=je(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}runPrepared(t,e,u){let[d,y,v]=je(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(_e(this.mod,y,v));let S=Tt(this.mod,y,v);return De(this.mod),S}sendPrepared(t,e,u){let[d,y,v]=je(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(_e(this.mod,y,v));let S=Tt(this.mod,y,v);return De(this.mod),S}insertArrowFromIPCStream(t,e,u){if(e.length==0)return;let d=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(d,d+e.length).set(e);let v=u?JSON.stringify(u):"",[S,A,I]=je(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,d,e.length,v]);if(S!==0)throw new Error(_e(this.mod,A,I))}insertCSVFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let I in u.columns)u.columnsFlat.push(Ai(I,u.columns[I]))}let d={...u};d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,S,A]=je(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(_e(this.mod,S,A))}insertJSONFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let I in u.columns)u.columnsFlat.push(Ai(I,u.columns[I]))}let d={...u};d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,S,A]=je(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(_e(this.mod,S,A))}globFiles(t){let[e,u,d]=je(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=_e(this.mod,u,d);De(this.mod);let v=JSON.parse(y);return v??[]}registerFileURL(t,e){e===void 0&&(e=t);let[u,d,y]=je(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,e,-1]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}registerFileText(t,e){let u=Dg.encode(e);this.registerFileBuffer(t,u)}registerFileBuffer(t,e){let u=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(u,u+e.length).set(e);let[y,v,S]=je(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,u,e.length]);if(y!==0)throw new Error(_e(this.mod,v,S));De(this.mod)}registerFileHandle(t,e){let[u,d,y]=je(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,t,-1]);if(u!==0)throw new Error(_e(this.mod,d,y));if(De(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,e),this.pthread){for(let v of this.pthread.runningWorkers)v.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let v of this.pthread.unusedWorkers)v.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,u,d]=je(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));De(this.mod)}dropFiles(){let[t,e,u]=je(this.mod,"duckdb_web_fs_drop_files",[],[]);if(t!==0)throw new Error(_e(this.mod,e,u));De(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[u,d,y]=je(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y));De(this.mod)}copyFileToBuffer(t){let[e,u,d]=je(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));let y=this.mod.HEAPU8.subarray(u,u+d),v=new Uint8Array(y.length);return v.set(y),De(this.mod),v}collectFileStatistics(t,e){let[u,d,y]=je(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(u!==0)throw new Error(_e(this.mod,d,y))}exportFileStatistics(t){let[e,u,d]=je(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(e!==0)throw new Error(_e(this.mod,u,d));return new qr(this.mod.HEAPU8.subarray(u,u+d))}};var Bf=(e=>(e.ROW_ARRAY="row-array",e.COLUMN_OBJECT="column-object",e))(Bf||{});var Lf=(y=>(y[y.NONE=0]="NONE",y[y.DEBUG=1]="DEBUG",y[y.INFO=2]="INFO",y[y.WARNING=3]="WARNING",y[y.ERROR=4]="ERROR",y))(Lf||{}),Uf=(v=>(v[v.NONE=0]="NONE",v[v.CONNECT=1]="CONNECT",v[v.DISCONNECT=2]="DISCONNECT",v[v.OPEN=3]="OPEN",v[v.QUERY=4]="QUERY",v[v.INSTANTIATE=5]="INSTANTIATE",v))(Uf||{}),Hf=(v=>(v[v.NONE=0]="NONE",v[v.OK=1]="OK",v[v.ERROR=2]="ERROR",v[v.START=3]="START",v[v.RUN=4]="RUN",v[v.CAPTURE=5]="CAPTURE",v))(Hf||{}),qf=(y=>(y[y.NONE=0]="NONE",y[y.WEB_WORKER=1]="WEB_WORKER",y[y.NODE_WORKER=2]="NODE_WORKER",y[y.BINDINGS=3]="BINDINGS",y[y.ASYNC_DUCKDB=4]="ASYNC_DUCKDB",y))(qf||{}),ns=class{log(t){}},as=class{constructor(t=2){this.level=t}log(t){t.level>=this.level&&console.log(t)}};function Pg(r){switch(r){case 0:return"NONE";case 1:return"DEBUG";case 2:return"INFO";case 3:return"WARNING";case 4:return"ERROR";default:return"?"}}function xg(r){switch(r){case 0:return"NONE";case 1:return"OK";case 2:return"ERROR";case 3:return"START";case 4:return"RUN";case 5:return"CAPTURE";default:return"?"}}function Og(r){switch(r){case 1:return"CONNECT";case 2:return"DISCONNECT";case 5:return"INSTANTIATE";case 3:return"OPEN";case 4:return"QUERY";default:return"?"}}function Fg(r){switch(r){case 0:return"NONE";case 1:return"WEB WORKER";case 2:return"NODE WORKER";case 3:return"DUCKDB BINDINGS";case 4:return"DUCKDB";default:return"?"}}var Dt=_r($f());var Ri={name:"@duckdb/duckdb-wasm",version:"1.17.0",description:"DuckDB powered by WebAssembly",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/duckdb/duckdb-wasm.git"},keywords:["sql","duckdb","relational","database","data","query","wasm","analytics","olap","arrow","parquet","json","csv"],dependencies:{"apache-arrow":"^9.0.0"},devDependencies:{"@types/emscripten":"^1.39.6","@types/jasmine":"^4.3.0","@typescript-eslint/eslint-plugin":"^5.36.1","@typescript-eslint/parser":"^5.36.1",esbuild:"^0.15.6",eslint:"^8.23.0","eslint-plugin-jasmine":"^4.1.3","eslint-plugin-react":"^7.31.1","fast-glob":"^3.2.11",jasmine:"^4.4.0","jasmine-core":"^4.3.0","jasmine-spec-reporter":"^7.0.0","js-sha256":"^0.9.0",karma:"^6.4.0","karma-chrome-launcher":"^3.1.1","karma-coverage":"^2.2.0","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.0.0","karma-sourcemap-loader":"^0.3.8","karma-spec-reporter":"^0.0.34","make-dir":"^3.1.0",nyc:"^15.1.0",prettier:"^2.7.1",puppeteer:"^17.1.3",rimraf:"^3.0.2",s3rver:"^3.7.1",typedoc:"^0.23.14",typescript:"^4.7.4","wasm-feature-detect":"^1.2.11","web-worker":"^1.2.0"},scripts:{"build:debug":"node bundle.mjs debug && tsc --emitDeclarationOnly","build:release":"node bundle.mjs release && tsc --emitDeclarationOnly",docs:"typedoc",report:"node ./coverage.mjs","test:node":"node --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:debug":"node --inspect-brk --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:coverage":"nyc -r json --report-dir ./coverage/node node --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:firefox":"karma start ./karma/tests-firefox.cjs","test:chrome":"karma start ./karma/tests-chrome.cjs","test:chrome:eh":"karma start ./karma/tests-chrome-eh.cjs","test:chrome:coverage":"karma start ./karma/tests-chrome-coverage.cjs","test:browser":"karma start ./karma/tests-all.cjs","test:browser:debug":"karma start ./karma/tests-debug.cjs",test:"npm run test:chrome && npm run test:node","test:coverage":"npm run test:chrome:coverage && npm run test:node:coverage && npm run report",lint:"eslint src test"},files:["dist","!dist/types/test"],main:"dist/duckdb-browser.cjs",module:"dist/duckdb-browser.mjs",types:"dist/duckdb-browser.d.ts",jsdelivr:"dist/duckdb-browser.cjs",unpkg:"dist/duckdb-browser.mjs",sideEffects:!1,browser:{fs:!1,path:!1,perf_hooks:!1,os:!1,worker_threads:!1},exports:{"./dist/duckdb-mvp.wasm":"./dist/duckdb-mvp.wasm","./dist/duckdb-eh.wasm":"./dist/duckdb-eh.wasm","./dist/duckdb-coi.wasm":"./dist/duckdb-coi.wasm","./dist/duckdb-browser":"./dist/duckdb-browser.mjs","./dist/duckdb-browser.cjs":"./dist/duckdb-browser.cjs","./dist/duckdb-browser.mjs":"./dist/duckdb-browser.mjs","./dist/duckdb-browser-blocking":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.mjs":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.cjs":"./dist/duckdb-browser-blocking.cjs","./dist/duckdb-browser-coi.pthread.worker.js":"./dist/duckdb-browser-coi.pthread.worker.js","./dist/duckdb-browser-coi.worker.js":"./dist/duckdb-browser-coi.worker.js","./dist/duckdb-browser-eh.worker.js":"./dist/duckdb-browser-eh.worker.js","./dist/duckdb-browser-mvp.worker.js":"./dist/duckdb-browser-mvp.worker.js","./dist/duckdb-node":"./dist/duckdb-node.cjs","./dist/duckdb-node.cjs":"./dist/duckdb-node.cjs","./dist/duckdb-node-blocking":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-blocking.cjs":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-eh.worker.cjs":"./dist/duckdb-node-eh.worker.cjs","./dist/duckdb-node-mvp.worker.cjs":"./dist/duckdb-node-mvp.worker.cjs","./blocking":{browser:{types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},node:{types:"./dist/duckdb-node-blocking.d.ts",require:"./dist/duckdb-node-blocking.cjs",import:"./dist/duckdb-node-blocking.cjs"},types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},".":{browser:{types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"},node:{types:"./dist/duckdb-node.d.ts",import:"./dist/duckdb-node.cjs",require:"./dist/duckdb-node.cjs"},types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"}}};var ss=Ri.name,os=Ri.version,us=Ri.version.split("."),Lg=us[0],Ug=us[1],Hg=us[2];var ps=()=>typeof navigator>"u",Gf=()=>ps()?"node":navigator.userAgent,qg=()=>Gf().includes("Firefox"),Wg=()=>/^((?!chrome|android).)*safari/i.test(Gf());function $g(){let r=`https://cdn.jsdelivr.net/npm/${ss}@${os}/dist/`;return{mvp:{mainModule:`${r}duckdb-mvp.wasm`,mainWorker:`${r}duckdb-browser-mvp.worker.js`},eh:{mainModule:`${r}duckdb-eh.wasm`,mainWorker:`${r}duckdb-browser-eh.worker.js`}}}var ls=null,cs=null,fs=null,_s=null,ds=null;async function Ti(){return ls==null&&(ls=typeof BigInt64Array<"u"),cs==null&&(cs=await Dt.exceptions()),fs==null&&(fs=await Dt.threads()),_s==null&&(_s=await Dt.simd()),ds==null&&(ds=await Dt.bulkMemory()),{bigInt64Array:ls,crossOriginIsolated:ps()||globalThis.crossOriginIsolated||!1,wasmExceptions:cs,wasmSIMD:_s,wasmThreads:fs,wasmBulkMemory:ds}}async function Gg(r){let t=await Ti();if(t.wasmExceptions){if(t.wasmSIMD&&t.wasmThreads&&t.crossOriginIsolated&&r.coi)return{mainModule:r.coi.mainModule,mainWorker:r.coi.mainWorker,pthreadWorker:r.coi.pthreadWorker};if(r.eh)return{mainModule:r.eh.mainModule,mainWorker:r.eh.mainWorker,pthreadWorker:null}}return{mainModule:r.mvp.mainModule,mainWorker:r.mvp.mainWorker,pthreadWorker:null}}var Ye=_r(require("fs"));var Op=_r(xp());var We={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(r,t){try{let e=We._fileInfoCache.get(t),[u,d,y]=je(r,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(e==null?void 0:e.cacheEpoch)||0]);if(u!==0)return Ee(r,_e(r,d,y)),null;if(y===0)return e;let v=_e(r,d,y);De(r);let S=JSON.parse(v);return S==null?null:(We._fileInfoCache.set(t,S),S)}catch(e){return Ee(r,e.toString()),null}},testPlatformFeature:(r,t)=>{switch(t){case 1:return typeof BigInt64Array<"u";default:return console.warn(`test for unknown feature: ${t}`),!1}},openFile(r,t,e){try{We._fileInfoCache.delete(t);let u=We.resolveFileInfo(r,t);switch(u==null?void 0:u.dataProtocol){case 1:{u.dataNativeFd=Ye.default.openSync(u.dataUrl,Ye.default.constants.O_CREAT|Ye.default.constants.O_RDWR,Ye.default.constants.S_IRUSR|Ye.default.constants.S_IWUSR);let[d,y,v]=je(r,"duckdb_web_fs_set_file_descriptor",["number","number"],[t,u.dataNativeFd]);d!==0&&Ee(r,_e(r,y,v));let S=Ye.default.fstatSync(u.dataNativeFd).size,A=r._malloc(2*8);return r.HEAPF64[(A>>3)+0]=+S,r.HEAPF64[(A>>3)+1]=0,A}case 3:case 4:Ee(r,"Not implemented")}}catch(u){Ee(r,u.toString())}return 0},syncFile:(r,t)=>{},closeFile:(r,t)=>{try{let e=We.resolveFileInfo(r,t);switch(We._fileInfoCache.delete(t),e==null?void 0:e.dataProtocol){case 1:{if(!e.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;Ye.default.closeSync(e.dataNativeFd),e.dataNativeFd=null;break}case 3:case 4:Ee(r,"Not implemented")}}catch(e){Ee(r,e.toString())}return 0},truncateFile:(r,t,e)=>{try{let u=We.resolveFileInfo(r,t);switch(u==null?void 0:u.dataProtocol){case 1:{if(!u.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;Ye.default.truncateSync(u.dataUrl,e);break}case 3:case 4:Ee(r,"Not implemented")}}catch(u){Ee(r,u.toString())}return 0},readFile:(r,t,e,u,d)=>{try{let y=We.resolveFileInfo(r,t);switch(y==null?void 0:y.dataProtocol){case 1:return y.dataNativeFd?Ye.default.readSync(y.dataNativeFd,r.HEAPU8,e,u,d):(Ee(r,`File ${t} is missing a file descriptor`),0);case 3:case 4:Ee(r,"Not implemented")}}catch(y){Ee(r,y.toString())}return 0},writeFile:(r,t,e,u,d)=>{try{let y=We.resolveFileInfo(r,t);switch(y==null?void 0:y.dataProtocol){case 1:{if(!y.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;let v=r.HEAPU8.subarray(e,e+u);return Ye.default.writeSync(y.dataNativeFd,v,0,v.length,d)}}}catch(y){Ee(r,y.toString())}return 0},getLastFileModificationTime:(r,t)=>{try{let e=We.resolveFileInfo(r,t);switch(e==null?void 0:e.dataProtocol){case 1:return e.dataNativeFd?Ye.default.fstatSync(e.dataNativeFd).mtime.getTime():(Ee(r,`File ${t} is missing a file descriptor`),0);case 3:case 4:Ee(r,"Not implemented")}}catch(e){Ee(r,e.toString())}return 0},checkDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ye.default.existsSync(u)}catch(u){return Ee(r,u.toString()),!1}},createDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ye.default.mkdirSync(u)}catch(u){return Ee(r,u.toString()),0}},removeDirectory:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ye.default.rmdirSync(u)}catch(u){return Ee(r,u.toString()),0}},listDirectoryEntries:(r,t,e)=>(Ee(r,"Not Implemented"),!1),glob:(r,t,e)=>{try{let u=_e(r,t,e),d=Op.sync([u],{dot:!0});for(let y of d)r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[y])}catch(u){return Ee(r,u.toString()),0}},moveFile:(r,t,e,u,d)=>{var A,I;let y=_e(r,t,e),v=_e(r,u,d),S=(A=We._files)==null?void 0:A.get(y);S!==void 0&&(We._files.delete(S),We._files.set(v,S));for(let[R,U]of((I=We._fileInfoCache)==null?void 0:I.entries())||[])if(U.dataUrl==y){We._fileInfoCache.delete(R);break}return!0},checkFile:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ye.default.existsSync(u)}catch(u){return Ee(r,u.toString()),!1}},removeFile:(r,t,e)=>{try{let u=Rt(r.HEAPU8.subarray(t,t+e));return Ye.default.rmSync(u)}catch(u){return Ee(r,u.toString()),0}},callScalarUDF:(r,t,e,u,d,y,v)=>{Ei(We,r,t,e,u,d,y,v)}};var Fp={},Gw=(()=>{var r=Fp.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},u,d;e.ready=new Promise(function(i,n){u=i,d=n});var y=Object.assign({},e),v=[],S="./this.program",A=(i,n)=>{throw n},I=typeof window=="object",R=typeof importScripts=="function",U=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",P="";function fe(i){return e.locateFile?e.locateFile(i,P):P+i}var K,z,Z,oe;function be(i){if(i instanceof ji)return;J("exiting due to exception: "+i)}var he,Ae,ne;U?(R?P=require("path").dirname(P)+"/":P=__dirname+"/",ne=()=>{Ae||(he=require("fs"),Ae=require("path"))},K=function(n,a){return ne(),n=Ae.normalize(n),he.readFileSync(n,a?void 0:"utf8")},Z=i=>{var n=K(i,!0);return n.buffer||(n=new Uint8Array(n)),n},z=(i,n,a)=>{ne(),i=Ae.normalize(i),he.readFile(i,function(s,o){s?a(s):n(o.buffer)})},process.argv.length>1&&(S=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(i){if(!(i instanceof ji))throw i}),process.on("unhandledRejection",function(i){throw i}),A=(i,n)=>{if(Jr())throw process.exitCode=i,n;be(n),process.exit(i)},e.inspect=function(){return"[Emscripten Module object]"}):(I||R)&&(R?P=self.location.href:typeof document<"u"&&document.currentScript&&(P=document.currentScript.src),r&&(P=r),P.indexOf("blob:")!==0?P=P.substr(0,P.replace(/[?#].*/,"").lastIndexOf("/")+1):P="",K=i=>{var n=new XMLHttpRequest;return n.open("GET",i,!1),n.send(null),n.responseText},R&&(Z=i=>{var n=new XMLHttpRequest;return n.open("GET",i,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}),z=(i,n,a)=>{var s=new XMLHttpRequest;s.open("GET",i,!0),s.responseType="arraybuffer",s.onload=()=>{if(s.status==200||s.status==0&&s.response){n(s.response);return}a()},s.onerror=a,s.send(null)},oe=i=>document.title=i);var we=e.print||console.log.bind(console),J=e.printErr||console.warn.bind(console);Object.assign(e,y),y=null,e.arguments&&(v=e.arguments),e.thisProgram&&(S=e.thisProgram),e.quit&&(A=e.quit);var ee=0,H=i=>{ee=i},pe=()=>ee,F;e.wasmBinary&&(F=e.wasmBinary);var ue=e.noExitRuntime||!0;typeof WebAssembly!="object"&&Oe("no native wasm support detected");var ae,ke=!1,D;function x(i,n){i||Oe(n)}function Pe(i){var n=e["_"+i];return n}function le(i,n,a,s,o){var l={string:function(Q){var de=0;if(Q!=null&&Q!==0){var Ce=(Q.length<<2)+1;de=L(Ce),It(Q,de,Ce)}return de},array:function(Q){var de=L(Q.length);return ze(Q,de),de}};function c(Q){return n==="string"?xe(Q):n==="boolean"?Boolean(Q):Q}var f=Pe(i),_=[],p=0;if(s)for(var m=0;m<s.length;m++){var k=l[a[m]];k?(p===0&&(p=j()),_[m]=k(s[m])):_[m]=s[m]}var E=f.apply(null,_);function W(Q){return p!==0&&w(p),c(Q)}return E=W(E),E}var Qe=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function $e(i,n,a){n>>>=0;for(var s=n+a,o=n;i[o]&&!(o>=s);)++o;if(o-n>16&&i.buffer&&Qe)return Qe.decode(i.subarray(n,o));for(var l="";n<o;){var c=i[n++];if(!(c&128)){l+=String.fromCharCode(c);continue}var f=i[n++]&63;if((c&224)==192){l+=String.fromCharCode((c&31)<<6|f);continue}var _=i[n++]&63;if((c&240)==224?c=(c&15)<<12|f<<6|_:c=(c&7)<<18|f<<12|_<<6|i[n++]&63,c<65536)l+=String.fromCharCode(c);else{var p=c-65536;l+=String.fromCharCode(55296|p>>10,56320|p&1023)}}return l}function xe(i,n){return i>>>=0,i?$e(O,i,n):""}function _t(i,n,a,s){if(a>>>=0,!(s>0))return 0;for(var o=a,l=a+s-1,c=0;c<i.length;++c){var f=i.charCodeAt(c);if(f>=55296&&f<=57343){var _=i.charCodeAt(++c);f=65536+((f&1023)<<10)|_&1023}if(f<=127){if(a>=l)break;n[a++>>>0]=f}else if(f<=2047){if(a+1>=l)break;n[a++>>>0]=192|f>>6,n[a++>>>0]=128|f&63}else if(f<=65535){if(a+2>=l)break;n[a++>>>0]=224|f>>12,n[a++>>>0]=128|f>>6&63,n[a++>>>0]=128|f&63}else{if(a+3>=l)break;n[a++>>>0]=240|f>>18,n[a++>>>0]=128|f>>12&63,n[a++>>>0]=128|f>>6&63,n[a++>>>0]=128|f&63}}return n[a>>>0]=0,a-o}function It(i,n,a){return _t(i,O,n,a)}function bt(i){for(var n=0,a=0;a<i.length;++a){var s=i.charCodeAt(a);s>=55296&&s<=57343&&(s=65536+((s&1023)<<10)|i.charCodeAt(++a)&1023),s<=127?++n:s<=2047?n+=2:s<=65535?n+=3:n+=4}return n}function ze(i,n){et.set(i,n>>>0)}function se(i,n,a){for(var s=0;s<i.length;++s)et[n++>>>0]=i.charCodeAt(s);a||(et[n>>>0]=0)}var st,et,O,ge,$,N,Re,qe,Fe;function jt(i){st=i,e.HEAP8=et=new Int8Array(i),e.HEAP16=ge=new Int16Array(i),e.HEAP32=N=new Int32Array(i),e.HEAPU8=O=new Uint8Array(i),e.HEAPU16=$=new Uint16Array(i),e.HEAPU32=Re=new Uint32Array(i),e.HEAPF32=qe=new Float32Array(i),e.HEAPF64=Fe=new Float64Array(i)}var At=e.INITIAL_MEMORY||16777216,Yr,Sr=[],Qr=[],zr=[],Xr=[],sn=!1;function Jr(){return ue}function on(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)wt(e.preRun.shift());zt(Sr)}function un(){sn=!0,zt(Qr)}function ln(){zt(zr)}function cn(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)Bt(e.postRun.shift());zt(Xr)}function wt(i){Sr.unshift(i)}function Er(i){Qr.unshift(i)}function Bt(i){Xr.unshift(i)}var kt=0,Ar=null,Ge=null;function fn(i){kt++,e.monitorRunDependencies&&e.monitorRunDependencies(kt)}function Zr(i){if(kt--,e.monitorRunDependencies&&e.monitorRunDependencies(kt),kt==0&&(Ar!==null&&(clearInterval(Ar),Ar=null),Ge)){var n=Ge;Ge=null,n()}}function Oe(i){e.onAbort&&e.onAbort(i),i="Aborted("+i+")",J(i),ke=!0,D=1,i+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(i);throw d(n),n}var ei="data:application/octet-stream;base64,";function ti(i){return i.startsWith(ei)}var tt;e.locateFile?(tt="./duckdb-mvp.wasm",ti(tt)||(tt=fe(tt))):tt=new URL("./duckdb-mvp.wasm",Fp.url).toString();function Lt(i){try{if(i==tt&&F)return new Uint8Array(F);if(Z)return Z(i);throw"both async and sync fetching of the wasm failed"}catch(n){Oe(n)}}function Qt(){return!F&&(I||R)&&typeof fetch=="function"?fetch(tt,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load wasm binary file at '"+tt+"'";return i.arrayBuffer()}).catch(function(){return Lt(tt)}):Promise.resolve().then(function(){return Lt(tt)})}function ri(){var i={a:Pa};function n(c,f){var _=c.exports;e.asm=_,ae=e.asm.df,jt(ae.buffer),Yr=e.asm.dg,Er(e.asm.ef),Zr("wasm-instantiate")}fn("wasm-instantiate");function a(c){n(c.instance)}function s(c){return Qt().then(function(f){return WebAssembly.instantiate(f,i)}).then(function(f){return f}).then(c,function(f){J("failed to asynchronously prepare wasm: "+f),Oe(f)})}function o(){return!F&&typeof WebAssembly.instantiateStreaming=="function"&&!ti(tt)&&typeof fetch=="function"?fetch(tt,{credentials:"same-origin"}).then(function(c){var f=WebAssembly.instantiateStreaming(c,i);return f.then(a,function(_){return J("wasm streaming compile failed: "+_),J("falling back to ArrayBuffer instantiation"),s(a)})}):s(a)}if(e.instantiateWasm)try{var l=e.instantiateWasm(i,n);return l}catch(c){return J("Module.instantiateWasm callback failed with error: "+c),!1}return o().catch(d),{}}function zt(i){for(;i.length>0;){var n=i.shift();if(typeof n=="function"){n(e);continue}var a=n.func;typeof a=="number"?n.arg===void 0?V(a)():V(a)(n.arg):a(n.arg===void 0?null:n.arg)}}var Xt=[];function V(i){var n=Xt[i];return n||(i>=Xt.length&&(Xt.length=i+1),Xt[i]=n=Yr.get(i)),n}function _n(i){if(i instanceof ji||i=="unwind")return D;A(1,i)}function dn(i,n,a,s){Oe("Assertion failed: "+xe(i)+", at: "+[n?xe(n):"unknown filename",a,s?xe(s):"unknown function"])}function ii(i){return ft(i+24)+24}var dt=[];function Rr(i){i.add_ref()}var Ut=0;function ni(i){var n=new rt(i);return n.get_caught()||(n.set_caught(!0),Ut--),n.set_rethrown(!1),dt.push(n),Rr(n),n.get_exception_ptr()}var Xe=0;function rt(i){this.excPtr=i,this.ptr=i-24,this.set_type=function(n){N[this.ptr+4>>>2]=n},this.get_type=function(){return N[this.ptr+4>>>2]},this.set_destructor=function(n){N[this.ptr+8>>>2]=n},this.get_destructor=function(){return N[this.ptr+8>>>2]},this.set_refcount=function(n){N[this.ptr>>>2]=n},this.set_caught=function(n){n=n?1:0,et[this.ptr+12>>>0]=n},this.get_caught=function(){return et[this.ptr+12>>>0]!=0},this.set_rethrown=function(n){n=n?1:0,et[this.ptr+13>>>0]=n},this.get_rethrown=function(){return et[this.ptr+13>>>0]!=0},this.init=function(n,a){this.set_adjusted_ptr(0),this.set_type(n),this.set_destructor(a),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var n=N[this.ptr>>>2];N[this.ptr>>>2]=n+1},this.release_ref=function(){var n=N[this.ptr>>>2];return N[this.ptr>>>2]=n-1,n===1},this.set_adjusted_ptr=function(n){N[this.ptr+16>>>2]=n},this.get_adjusted_ptr=function(){return N[this.ptr+16>>>2]},this.get_exception_ptr=function(){var n=Te(this.get_type());if(n)return N[this.excPtr>>>2];var a=this.get_adjusted_ptr();return a!==0?a:this.excPtr}}function Jt(i){return Ie(new rt(i).ptr)}function it(i){if(i.release_ref()&&!i.get_rethrown()){var n=i.get_destructor();n&&V(n)(i.excPtr),Jt(i.excPtr)}}function ai(){b(0);var i=dt.pop();it(i),Xe=0}function pn(i){throw Xe||(Xe=i),i}function yn(){var i=Xe;if(!i)return H(0),0;var n=new rt(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return H(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(re(l,a,c))return H(l),i|0}return H(a),i|0}function hn(){var i=Xe;if(!i)return H(0),0;var n=new rt(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return H(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(re(l,a,c))return H(l),i|0}return H(a),i|0}function mn(){var i=Xe;if(!i)return H(0),0;var n=new rt(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return H(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(re(l,a,c))return H(l),i|0}return H(a),i|0}function vn(){var i=Xe;if(!i)return H(0),0;var n=new rt(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return H(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(re(l,a,c))return H(l),i|0}return H(a),i|0}function gn(){var i=Xe;if(!i)return H(0),0;var n=new rt(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return H(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(re(l,a,c))return H(l),i|0}return H(a),i|0}function bn(){var i=Xe;if(!i)return H(0),0;var n=new rt(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return H(0),i|0;for(var s=Array.prototype.slice.call(arguments),o=0;o<s.length;o++){var l=s[o];if(l===0||l===a)break;var c=n.ptr+16;if(re(l,a,c))return H(l),i|0}return H(a),i|0}function si(){var i=dt.pop();i||Oe("no exception to throw");var n=i.excPtr;throw i.get_rethrown()||(dt.push(i),i.set_rethrown(!0),i.set_caught(!1),Ut++),Xe=n,n}function Tr(i,n,a){var s=new rt(i);throw s.init(n,a),Xe=i,Ut++,i}function jn(){return Ut}var He={buffers:[null,[],[]],printChar:function(i,n){var a=He.buffers[i];n===0||n===10?((i===1?we:J)($e(a,0)),a.length=0):a.push(n)},varargs:void 0,get:function(){He.varargs+=4;var i=N[He.varargs-4>>>2];return i},getStr:function(i){var n=xe(i);return n}};function wn(i,n,a,s,o){}function kn(){J("missing function: $SOCKFS"),Oe(-1)}function oi(){J("missing function: $FS"),Oe(-1)}function Ht(i){var n=kn.getSocket(i);if(!n)throw new oi.ErrnoError(8);return n}function Dr(i){return(i&255)+"."+(i>>8&255)+"."+(i>>16&255)+"."+(i>>24&255)}function ui(i){var n="",a=0,s=0,o=0,l=0,c=0,f=0,_=[i[0]&65535,i[0]>>16,i[1]&65535,i[1]>>16,i[2]&65535,i[2]>>16,i[3]&65535,i[3]>>16],p=!0,m="";for(f=0;f<5;f++)if(_[f]!==0){p=!1;break}if(p){if(m=Dr(_[6]|_[7]<<16),_[5]===-1)return n="::ffff:",n+=m,n;if(_[5]===0)return n="::",m==="0.0.0.0"&&(m=""),m==="0.0.0.1"&&(m="1"),n+=m,n}for(a=0;a<8;a++)_[a]===0&&(a-o>1&&(c=0),o=a,c++),c>s&&(s=c,l=a-s+1);for(a=0;a<8;a++){if(s>1&&_[a]===0&&a>=l&&a<l+s){a===l&&(n+=":",l===0&&(n+=":"));continue}n+=Number(Se(_[a]&65535)).toString(16),n+=a<7?":":""}return n}function li(i,n){var a=ge[i>>>1],s=Se($[i+2>>>1]),o;switch(a){case 2:if(n!==16)return{errno:28};o=N[i+4>>>2],o=Dr(o);break;case 10:if(n!==28)return{errno:28};o=[N[i+8>>>2],N[i+12>>>2],N[i+16>>>2],N[i+20>>>2]],o=ui(o);break;default:return{errno:5}}return{family:a,addr:o,port:s}}function Zt(i){for(var n=i.split("."),a=0;a<4;a++){var s=Number(n[a]);if(isNaN(s))return null;n[a]=s}return(n[0]|n[1]<<8|n[2]<<16|n[3]<<24)>>>0}function er(i){return parseInt(i)}function Pr(i){var n,a,s,o,l=/^((?=.*::)(?!.*::.+::)(::)?([\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,c=[];if(!l.test(i))return null;if(i==="::")return[0,0,0,0,0,0,0,0];for(i.startsWith("::")?i=i.replace("::","Z:"):i=i.replace("::",":Z:"),i.indexOf(".")>0?(i=i.replace(new RegExp("[.]","g"),":"),n=i.split(":"),n[n.length-4]=er(n[n.length-4])+er(n[n.length-3])*256,n[n.length-3]=er(n[n.length-2])+er(n[n.length-1])*256,n=n.slice(0,n.length-2)):n=i.split(":"),s=0,o=0,a=0;a<n.length;a++)if(typeof n[a]=="string")if(n[a]==="Z"){for(o=0;o<8-n.length+1;o++)c[a+o]=0;s=o-1}else c[a+s]=Ke(parseInt(n[a],16));else c[a+s]=n[a];return[c[1]<<16|c[0],c[3]<<16|c[2],c[5]<<16|c[4],c[7]<<16|c[6]]}var nt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(i){var n=Zt(i);if(n!==null||(n=Pr(i),n!==null))return i;var a;if(nt.address_map.addrs[i])a=nt.address_map.addrs[i];else{var s=nt.address_map.id++;x(s<65535,"exceeded max address mappings of 65535"),a="172.29."+(s&255)+"."+(s&65280),nt.address_map.names[a]=i,nt.address_map.addrs[i]=a}return a},lookup_addr:function(i){return nt.address_map.names[i]?nt.address_map.names[i]:null}};function ci(i,n,a){if(a&&i===0)return null;var s=li(i,n);if(s.errno)throw new oi.ErrnoError(s.errno);return s.addr=nt.lookup_addr(s.addr)||s.addr,s}function Cn(i,n,a){var s=Ht(i),o=ci(n,a);return s.sock_ops.bind(s,o.addr,o.port),0}function fi(i,n,a){var s=Ht(i),o=ci(n,a);return s.sock_ops.connect(s,o.addr,o.port),0}function Sn(i,n,a,s){return n=He.getStr(n),n=He.calculateAt(i,n),He.doAccess(n,a)}function En(i,n,a){return He.varargs=a,0}function An(i,n){}function Rn(i,n,a){}function Tn(i,n,a){}function _i(i,n){O.fill(0,i,i+n)}function xr(i,n,a,s,o){switch(n){case 2:a=Zt(a),_i(i,16),o&&(N[o>>>2]=16),ge[i>>>1]=n,N[i+4>>>2]=a,ge[i+2>>>1]=Ke(s);break;case 10:a=Pr(a),_i(i,28),o&&(N[o>>>2]=28),N[i>>>2]=n,N[i+8>>>2]=a[0],N[i+12>>>2]=a[1],N[i+16>>>2]=a[2],N[i+20>>>2]=a[3],ge[i+2>>>1]=Ke(s);break;default:return 5}return 0}function Dn(i,n,a){var s=Ht(i);if(!s.daddr)return-53;var o=xr(n,s.family,nt.lookup_name(s.daddr),s.dport,a);return 0}function Pn(i,n,a,s,o){var l=Ht(i);return n===1&&a===4?(N[s>>>2]=l.error,N[o>>>2]=4,l.error=null,0):-50}function xn(i,n,a){return He.varargs=a,0}function On(i,n){}function Fn(i,n,a){}function Nn(i,n,a,s){}function Mn(i,n,a,s){He.varargs=s}function In(i,n,a,s,o,l){var c=Ht(i),f=c.sock_ops.recvmsg(c,a);if(!f)return 0;if(o)var _=xr(o,c.family,nt.lookup_name(f.addr),f.port,l);return O.set(f.buffer,n>>>0),f.buffer.byteLength}function Bn(i,n,a,s){}function Ln(i){}function Un(i,n,a,s,o,l){}function Hn(i,n,a){}function qn(i,n){}function Wn(i,n,a){}function di(i){}var tr="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function $n(i,n){Oe(tr)}function Gn(i,n){Oe(tr)}function Kn(){return Date.now()}var Or=!0;function Vn(){return Or}function qt(){Oe("")}function Yn(i,n){return globalThis.DUCKDB_RUNTIME.createDirectory(e,i,n)}function Qn(i,n){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,i,n)}function zn(i,n){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,i,n)}function Xn(i,n){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,i,n)}function Jn(i){return globalThis.DUCKDB_RUNTIME.closeFile(e,i)}function Zn(i,n){return globalThis.DUCKDB_RUNTIME.checkFile(e,i,n)}function ea(i){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,i)}function ta(i,n,a,s){return globalThis.DUCKDB_RUNTIME.moveFile(e,i,n,a,s)}function ra(i,n){return globalThis.DUCKDB_RUNTIME.openFile(e,i,n)}function ia(i,n,a,s){return globalThis.DUCKDB_RUNTIME.readFile(e,i,n,a,s)}function na(i,n){return globalThis.DUCKDB_RUNTIME.truncateFile(e,i,n)}function rr(i,n,a,s){return globalThis.DUCKDB_RUNTIME.writeFile(e,i,n,a,s)}function aa(i,n){return globalThis.DUCKDB_RUNTIME.glob(e,i,n)}function ir(i){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,i)}function sa(i,n,a,s,o,l){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,i,n,a,s,o,l)}function Fr(){return 4294901760}var nr;U?nr=()=>{var i=process.hrtime();return i[0]*1e3+i[1]/1e6}:nr=()=>performance.now();function oa(i,n,a){O.copyWithin(i>>>0,n>>>0,n+a>>>0)}function ua(i){try{return ae.grow(i-st.byteLength+65535>>>16),jt(ae.buffer),1}catch{}}function la(i){var n=O.length;i=i>>>0;var a=Fr();if(i>a)return!1;let s=(_,p)=>_+(p-_%p)%p;for(var o=1;o<=4;o*=2){var l=n*(1+.2/o);l=Math.min(l,i+100663296);var c=Math.min(a,s(Math.max(i,l),65536)),f=ua(c);if(f)return!0}return!1}var Nr={};function ca(){return S||"./this.program"}function ar(){if(!ar.strings){var i=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",n={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:i,_:ca()};for(var a in Nr)Nr[a]===void 0?delete n[a]:n[a]=Nr[a];var s=[];for(var a in n)s.push(a+"="+n[a]);ar.strings=s}return ar.strings}function fa(i,n){var a=0;return ar().forEach(function(s,o){var l=n+a;N[i+o*4>>>2]=l,se(s,l),a+=s.length+1}),0}function _a(i,n){var a=ar();N[i>>>2]=a.length;var s=0;return a.forEach(function(o){s+=o.length+1}),N[n>>>2]=s,0}function da(i){return 0}function pa(i,n,a,s,o,l){var c=He.getStreamFromFD(i),f=He.doReadv(c,n,a,s);return N[l>>>2]=f,0}function ya(i,n,a,s,o,l){var c=He.getStreamFromFD(i),f=He.doWritev(c,n,a,s);return N[l>>>2]=f,0}function ha(i,n,a,s){var o=He.getStreamFromFD(i),l=He.doReadv(o,n,a);return N[s>>>2]=l,0}function ma(i,n,a,s,o){}function va(i){var n=He.getStreamFromFD(i);return n.stream_ops&&n.stream_ops.fsync?-n.stream_ops.fsync(n):0}function ga(i,n,a,s){for(var o=0,l=0;l<a;l++){var c=N[n>>>2],f=N[n+4>>>2];n+=8;for(var _=0;_<f;_++)He.printChar(i,O[c+_>>>0]);o+=f}return N[s>>>2]=o,0}function ba(){return pe()}function ja(i,n,a,s){var o=0,l=0,c=0,f=0,_=0,p=0,m;function k(E,W,Q,de,Ce,Be){var B,ie,Me,Ve;return ie=E===10?28:16,Ce=E===10?ui(Ce):Dr(Ce),B=ft(ie),Ve=xr(B,E,Ce,Be),x(!Ve),Me=ft(32),N[Me+4>>>2]=E,N[Me+8>>>2]=W,N[Me+12>>>2]=Q,N[Me+24>>>2]=de,N[Me+20>>>2]=B,E===10?N[Me+16>>>2]=28:N[Me+16>>>2]=16,N[Me+28>>>2]=0,Me}if(a&&(c=N[a>>>2],f=N[a+4>>>2],_=N[a+8>>>2],p=N[a+12>>>2]),_&&!p&&(p=_===2?17:6),!_&&p&&(_=p===17?2:1),p===0&&(p=6),_===0&&(_=1),!i&&!n)return-2;if(c&-1088||a!==0&&N[a>>>2]&2&&!i)return-1;if(c&32)return-2;if(_!==0&&_!==1&&_!==2)return-7;if(f!==0&&f!==2&&f!==10)return-6;if(n&&(n=xe(n),l=parseInt(n,10),isNaN(l)))return c&1024?-2:-8;if(!i)return f===0&&(f=2),(c&1)===0&&(f===2?o=ve(2130706433):o=[0,0,0,1]),m=k(f,_,p,null,o,l),N[s>>>2]=m,0;if(i=xe(i),o=Zt(i),o!==null)if(f===0||f===2)f=2;else if(f===10&&c&8)o=[0,0,ve(65535),o],f=10;else return-2;else if(o=Pr(i),o!==null)if(f===0||f===10)f=10;else return-2;return o!=null?(m=k(f,_,p,i,o,l),N[s>>>2]=m,0):c&4?-2:(i=nt.lookup_name(i),o=Zt(i),f===0?f=2:f===10&&(o=[0,0,ve(65535),o]),m=k(f,_,p,null,o,l),N[s>>>2]=m,0)}function wa(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var i=new Uint8Array(1);return function(){return crypto.getRandomValues(i),i[0]}}else if(U)try{var n=require("crypto");return function(){return n.randomBytes(1)[0]}}catch{}return function(){Oe("randomDevice")}}function sr(i,n){sr.randomDevice||(sr.randomDevice=wa());for(var a=0;a<n;a++)et[i+a>>>0]=sr.randomDevice();return 0}function ka(i,n,a,s,o,l,c){var f=li(i,n);if(f.errno)return-6;var _=f.port,p=f.addr,m=!1;if(a&&s){var k;if(c&1||!(k=nt.lookup_addr(p))){if(c&8)return-2}else p=k;var E=It(p,a,s);E+1>=s&&(m=!0)}if(o&&l){_=""+_;var E=It(_,o,l);E+1>=l&&(m=!0)}return m?-12:0}function Ca(i){return i}function Sa(i){H(i)}function or(i){return i%4===0&&(i%100!==0||i%400===0)}function Ea(i,n){for(var a=0,s=0;s<=n;a+=i[s++]);return a}var pi=[31,29,31,30,31,30,31,31,30,31,30,31],yi=[31,28,31,30,31,30,31,31,30,31,30,31];function Aa(i,n){for(var a=new Date(i.getTime());n>0;){var s=or(a.getFullYear()),o=a.getMonth(),l=(s?pi:yi)[o];if(n>l-a.getDate())n-=l-a.getDate()+1,a.setDate(1),o<11?a.setMonth(o+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else return a.setDate(a.getDate()+n),a}return a}function Ra(i,n,a,s){var o=N[s+40>>>2],l={tm_sec:N[s>>>2],tm_min:N[s+4>>>2],tm_hour:N[s+8>>>2],tm_mday:N[s+12>>>2],tm_mon:N[s+16>>>2],tm_year:N[s+20>>>2],tm_wday:N[s+24>>>2],tm_yday:N[s+28>>>2],tm_isdst:N[s+32>>>2],tm_gmtoff:N[s+36>>>2],tm_zone:o?xe(o):""},c=xe(a),f={"%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 _ in f)c=c.replace(new RegExp(_,"g"),f[_]);var p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],m=["January","February","March","April","May","June","July","August","September","October","November","December"];function k(B,ie,Me){for(var Ve=typeof B=="number"?B.toString():B||"";Ve.length<ie;)Ve=Me[0]+Ve;return Ve}function E(B,ie){return k(B,ie,"0")}function W(B,ie){function Me(wi){return wi<0?-1:wi>0?1:0}var Ve;return(Ve=Me(B.getFullYear()-ie.getFullYear()))===0&&(Ve=Me(B.getMonth()-ie.getMonth()))===0&&(Ve=Me(B.getDate()-ie.getDate())),Ve}function Q(B){switch(B.getDay()){case 0:return new Date(B.getFullYear()-1,11,29);case 1:return B;case 2:return new Date(B.getFullYear(),0,3);case 3:return new Date(B.getFullYear(),0,2);case 4:return new Date(B.getFullYear(),0,1);case 5:return new Date(B.getFullYear()-1,11,31);case 6:return new Date(B.getFullYear()-1,11,30)}}function de(B){var ie=Aa(new Date(B.tm_year+1900,0,1),B.tm_yday),Me=new Date(ie.getFullYear(),0,4),Ve=new Date(ie.getFullYear()+1,0,4),wi=Q(Me),jg=Q(Ve);return W(wi,ie)<=0?W(jg,ie)<=0?ie.getFullYear()+1:ie.getFullYear():ie.getFullYear()-1}var Ce={"%a":function(B){return p[B.tm_wday].substring(0,3)},"%A":function(B){return p[B.tm_wday]},"%b":function(B){return m[B.tm_mon].substring(0,3)},"%B":function(B){return m[B.tm_mon]},"%C":function(B){var ie=B.tm_year+1900;return E(ie/100|0,2)},"%d":function(B){return E(B.tm_mday,2)},"%e":function(B){return k(B.tm_mday,2," ")},"%g":function(B){return de(B).toString().substring(2)},"%G":function(B){return de(B)},"%H":function(B){return E(B.tm_hour,2)},"%I":function(B){var ie=B.tm_hour;return ie==0?ie=12:ie>12&&(ie-=12),E(ie,2)},"%j":function(B){return E(B.tm_mday+Ea(or(B.tm_year+1900)?pi:yi,B.tm_mon-1),3)},"%m":function(B){return E(B.tm_mon+1,2)},"%M":function(B){return E(B.tm_min,2)},"%n":function(){return`
|
|
3
|
+
`},"%p":function(B){return B.tm_hour>=0&&B.tm_hour<12?"AM":"PM"},"%S":function(B){return E(B.tm_sec,2)},"%t":function(){return" "},"%u":function(B){return B.tm_wday||7},"%U":function(B){var ie=B.tm_yday+7-B.tm_wday;return E(Math.floor(ie/7),2)},"%V":function(B){var ie=Math.floor((B.tm_yday+7-(B.tm_wday+6)%7)/7);if((B.tm_wday+371-B.tm_yday-2)%7<=2&&ie++,ie){if(ie==53){var Ve=(B.tm_wday+371-B.tm_yday)%7;Ve!=4&&(Ve!=3||!or(B.tm_year))&&(ie=1)}}else{ie=52;var Me=(B.tm_wday+7-B.tm_yday-1)%7;(Me==4||Me==5&&or(B.tm_year%400-1))&&ie++}return E(ie,2)},"%w":function(B){return B.tm_wday},"%W":function(B){var ie=B.tm_yday+7-(B.tm_wday+6)%7;return E(Math.floor(ie/7),2)},"%y":function(B){return(B.tm_year+1900).toString().substring(2)},"%Y":function(B){return B.tm_year+1900},"%z":function(B){var ie=B.tm_gmtoff,Me=ie>=0;return ie=Math.abs(ie)/60,ie=ie/60*100+ie%60,(Me?"+":"-")+String("0000"+ie).slice(-4)},"%Z":function(B){return B.tm_zone},"%%":function(){return"%"}};c=c.replace(/%%/g,"\0\0");for(var _ in Ce)c.includes(_)&&(c=c.replace(new RegExp(_,"g"),Ce[_](l)));c=c.replace(/\0\0/g,"%");var Be=Da(c,!1);return Be.length>n?0:(ze(Be,i),Be.length-1)}function Ta(i,n,a,s){return Ra(i,n,a,s)}function Da(i,n,a){var s=a>0?a:bt(i)+1,o=new Array(s),l=_t(i,o,0,o.length);return n&&(o.length=l),o}var Pa={p:dn,j:ii,C:ni,H:ai,b:yn,n:hn,G:mn,U:vn,Z:gn,ya:bn,i:Jt,ja:si,w:Tr,J:jn,e:pn,Fa:wn,Ha:Cn,Ga:fi,cf:Sn,V:En,Ua:An,Fe:Rn,Qa:Tn,Ba:Dn,Ea:Pn,Wa:xn,Ra:On,Va:Fn,Sa:Nn,pa:Mn,Ca:In,af:Bn,na:Ln,Da:Un,ma:Hn,Ta:qn,oa:Wn,Ja:di,La:$n,Ka:Gn,Ya:Kn,Xa:Vn,ea:qt,Ve:Yn,We:Qn,Te:zn,Ue:Xn,wa:Jn,Re:Zn,Ye:ea,Se:ta,Ze:ra,la:ia,Xe:na,xa:rr,Qe:aa,va:ir,_e:sa,Za:Fr,Ce:nr,Cb:oa,vd:la,$a:fa,ab:_a,aa:da,Ee:pa,Ab:ya,ra:ha,Ne:ma,bf:va,ka:ga,a:ba,Ia:ja,Pa:sr,Aa:ka,ta:My,O:py,$:Yp,T:Ty,Yb:kv,ua:Ny,ba:cy,sa:Vp,Zb:wv,x:ey,ha:dy,t:hy,ca:Ey,ia:_y,u:yy,d:Up,ga:Py,R:gy,c:Hp,X:Cy,Qb:Pv,Nb:Fv,h:Wp,Ma:Dy,Lb:Mv,m:Kp,qa:oy,o:$p,Na:Sy,y:ry,z:Xp,Q:by,Y:fy,fa:Jp,A:iy,B:Zp,I:Ry,r:vy,$b:bv,gc:dv,Fc:qm,ne:oh,ac:gv,Mb:Nv,Xb:Cv,hc:_v,oe:sh,_d:wh,gb:fg,Je:qy,$d:jh,Wd:Eh,cc:mv,Ie:Wy,Vb:Ev,Ed:$h,cb:yg,bb:hg,me:uh,ae:bh,Db:$v,bd:vm,pe:ah,Jc:Bm,Wb:Sv,Kb:Iv,te:th,je:fh,be:gh,Xd:Sh,Td:Th,ge:ph,sb:Zv,le:lh,ze:Qy,ee:hh,Dd:Gh,Ob:Ov,Pb:xv,Eb:Wv,he:dh,fb:_g,Gd:qh,He:$y,ke:ch,Ud:Rh,se:rh,qd:im,ob:ig,ic:fv,ce:vh,ie:_h,Cd:Kh,pd:nm,od:am,id:fm,Xc:Cm,xc:zm,jd:cm,uc:Zm,fd:pm,yc:Qm,Be:Vy,Mc:Nm,Lc:Mm,Me:Ly,Le:Uy,cd:mm,Pe:Iy,Nd:Nh,Hc:Um,bc:vv,Kc:Im,Ib:Lv,Zc:wm,dc:hv,Jb:Bv,Pd:Oh,Jd:Lh,Sc:Tm,Hb:Uv,zc:Ym,fc:pv,_b:jv,Ld:Ih,zd:Qh,Tc:Rm,Gc:Hm,Qd:xh,wd:Jh,db:pg,Bc:Km,Ac:Vm,td:em,ue:eh,jc:cv,Cc:Gm,qc:iv,kc:lv,lc:uv,pc:nv,v:Bp,k:qp,D:my,wb:Qv,L:jy,xb:Yv,f:Lp,S:Qp,_:Ay,g:zp,l:Gp,$e:Fy,s:ly,q:sy,za:xy,F:ty,M:uy,W:ky,N:ny,P:Oy,Oa:wy,da:ay,nd:sm,vb:zv,Fd:Wh,sc:tv,vc:Jm,zb:Kv,Rb:Dv,qb:tg,xe:Xy,Ic:Lm,dd:hm,mb:ag,gd:dm,hd:_m,rc:rv,_c:jm,Uc:Am,rd:rm,Tb:Rv,Sb:Tv,we:Jy,ed:ym,md:om,ad:gm,Qc:Pm,Fb:qv,eb:dg,Gb:Hv,ec:yv,pb:rg,qe:nh,Sd:Dh,Ub:Av,Oc:Om,Wc:Sm,kd:lm,Yc:km,nb:ng,De:Ky,Ge:Gy,Ke:Hy,Vd:Ah,lb:sg,yd:zh,mc:ov,Rc:Dm,xd:Xh,sd:tm,Kd:Bh,rb:eg,de:mh,kb:og,Pc:xm,tb:Jv,Oe:By,ye:zy,Ad:Yh,nc:sv,fe:yh,ve:Zy,re:ih,Bd:Vh,Zd:kh,Yd:Ch,ud:Zh,yb:Vv,Hd:Hh,Ec:Wm,Nc:Fm,ld:um,jb:ug,Vc:Em,ub:Xv,Id:Uh,$c:bm,hb:cg,ib:lg,Dc:$m,Ae:Yy,Od:Fh,Bb:Gv,tc:ev,wc:Xm,oc:av,Rd:Ph,Md:Mh,E:Ca,K:Sa,_a:Ta},zo=ri(),xa=e.___wasm_call_ctors=function(){return(xa=e.___wasm_call_ctors=e.asm.ef).apply(null,arguments)},Oa=e._main=function(){return(Oa=e._main=e.asm.ff).apply(null,arguments)},Fa=e._duckdb_web_fs_glob_add_path=function(){return(Fa=e._duckdb_web_fs_glob_add_path=e.asm.gf).apply(null,arguments)},Na=e._duckdb_web_clear_response=function(){return(Na=e._duckdb_web_clear_response=e.asm.hf).apply(null,arguments)},Ma=e._duckdb_web_fail_with=function(){return(Ma=e._duckdb_web_fail_with=e.asm.jf).apply(null,arguments)},Ia=e._duckdb_web_reset=function(){return(Ia=e._duckdb_web_reset=e.asm.kf).apply(null,arguments)},Ba=e._duckdb_web_connect=function(){return(Ba=e._duckdb_web_connect=e.asm.lf).apply(null,arguments)},La=e._duckdb_web_disconnect=function(){return(La=e._duckdb_web_disconnect=e.asm.mf).apply(null,arguments)},Ua=e._duckdb_web_flush_files=function(){return(Ua=e._duckdb_web_flush_files=e.asm.nf).apply(null,arguments)},Ha=e._duckdb_web_flush_file=function(){return(Ha=e._duckdb_web_flush_file=e.asm.of).apply(null,arguments)},qa=e._duckdb_web_open=function(){return(qa=e._duckdb_web_open=e.asm.pf).apply(null,arguments)},Wa=e._duckdb_web_get_global_file_info=function(){return(Wa=e._duckdb_web_get_global_file_info=e.asm.qf).apply(null,arguments)},$a=e._duckdb_web_collect_file_stats=function(){return($a=e._duckdb_web_collect_file_stats=e.asm.rf).apply(null,arguments)},Ga=e._duckdb_web_export_file_stats=function(){return(Ga=e._duckdb_web_export_file_stats=e.asm.sf).apply(null,arguments)},Ka=e._duckdb_web_fs_drop_file=function(){return(Ka=e._duckdb_web_fs_drop_file=e.asm.tf).apply(null,arguments)},ur=e._duckdb_web_fs_drop_files=function(){return(ur=e._duckdb_web_fs_drop_files=e.asm.uf).apply(null,arguments)},lr=e._duckdb_web_fs_glob_file_infos=function(){return(lr=e._duckdb_web_fs_glob_file_infos=e.asm.vf).apply(null,arguments)},Mr=e._duckdb_web_fs_get_file_info_by_id=function(){return(Mr=e._duckdb_web_fs_get_file_info_by_id=e.asm.wf).apply(null,arguments)},Ir=e._duckdb_web_fs_get_file_info_by_name=function(){return(Ir=e._duckdb_web_fs_get_file_info_by_name=e.asm.xf).apply(null,arguments)},Va=e._duckdb_web_fs_set_file_descriptor=function(){return(Va=e._duckdb_web_fs_set_file_descriptor=e.asm.yf).apply(null,arguments)},hi=e._duckdb_web_fs_register_file_url=function(){return(hi=e._duckdb_web_fs_register_file_url=e.asm.zf).apply(null,arguments)},mi=e._duckdb_web_fs_register_file_buffer=function(){return(mi=e._duckdb_web_fs_register_file_buffer=e.asm.Af).apply(null,arguments)},Br=e._duckdb_web_copy_file_to_buffer=function(){return(Br=e._duckdb_web_copy_file_to_buffer=e.asm.Bf).apply(null,arguments)},cr=e._duckdb_web_copy_file_to_path=function(){return(cr=e._duckdb_web_copy_file_to_path=e.asm.Cf).apply(null,arguments)},fr=e._duckdb_web_get_version=function(){return(fr=e._duckdb_web_get_version=e.asm.Df).apply(null,arguments)},Ya=e._duckdb_web_get_feature_flags=function(){return(Ya=e._duckdb_web_get_feature_flags=e.asm.Ef).apply(null,arguments)},Qa=e._duckdb_web_tokenize=function(){return(Qa=e._duckdb_web_tokenize=e.asm.Ff).apply(null,arguments)},Lr=e._duckdb_web_udf_scalar_create=function(){return(Lr=e._duckdb_web_udf_scalar_create=e.asm.Gf).apply(null,arguments)},za=e._duckdb_web_prepared_create=function(){return(za=e._duckdb_web_prepared_create=e.asm.Hf).apply(null,arguments)},Xa=e._duckdb_web_prepared_close=function(){return(Xa=e._duckdb_web_prepared_close=e.asm.If).apply(null,arguments)},vi=e._duckdb_web_prepared_run=function(){return(vi=e._duckdb_web_prepared_run=e.asm.Jf).apply(null,arguments)},h=e._duckdb_web_prepared_send=function(){return(h=e._duckdb_web_prepared_send=e.asm.Kf).apply(null,arguments)},g=e._duckdb_web_query_run=function(){return(g=e._duckdb_web_query_run=e.asm.Lf).apply(null,arguments)},C=e._duckdb_web_pending_query_start=function(){return(C=e._duckdb_web_pending_query_start=e.asm.Mf).apply(null,arguments)},T=e._duckdb_web_pending_query_poll=function(){return(T=e._duckdb_web_pending_query_poll=e.asm.Nf).apply(null,arguments)},M=e._duckdb_web_pending_query_cancel=function(){return(M=e._duckdb_web_pending_query_cancel=e.asm.Of).apply(null,arguments)},X=e._duckdb_web_query_fetch_results=function(){return(X=e._duckdb_web_query_fetch_results=e.asm.Pf).apply(null,arguments)},G=e._duckdb_web_get_tablenames=function(){return(G=e._duckdb_web_get_tablenames=e.asm.Qf).apply(null,arguments)},q=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(q=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Rf).apply(null,arguments)},te=e._duckdb_web_insert_csv_from_path=function(){return(te=e._duckdb_web_insert_csv_from_path=e.asm.Sf).apply(null,arguments)},me=e._duckdb_web_insert_json_from_path=function(){return(me=e._duckdb_web_insert_json_from_path=e.asm.Tf).apply(null,arguments)},ve=e._htonl=function(){return(ve=e._htonl=e.asm.Uf).apply(null,arguments)},Ke=e._htons=function(){return(Ke=e._htons=e.asm.Vf).apply(null,arguments)},Se=e._ntohs=function(){return(Se=e._ntohs=e.asm.Wf).apply(null,arguments)},ft=e._malloc=function(){return(ft=e._malloc=e.asm.Xf).apply(null,arguments)},Ie=e._free=function(){return(Ie=e._free=e.asm.Yf).apply(null,arguments)},b=e._setThrew=function(){return(b=e._setThrew=e.asm.Zf).apply(null,arguments)},j=e.stackSave=function(){return(j=e.stackSave=e.asm._f).apply(null,arguments)},w=e.stackRestore=function(){return(w=e.stackRestore=e.asm.$f).apply(null,arguments)},L=e.stackAlloc=function(){return(L=e.stackAlloc=e.asm.ag).apply(null,arguments)},re=e.___cxa_can_catch=function(){return(re=e.___cxa_can_catch=e.asm.bg).apply(null,arguments)},Te=e.___cxa_is_pointer_type=function(){return(Te=e.___cxa_is_pointer_type=e.asm.cg).apply(null,arguments)},Ue=e.dynCall_jiiii=function(){return(Ue=e.dynCall_jiiii=e.asm.eg).apply(null,arguments)},Wt=e.dynCall_iiiiij=function(){return(Wt=e.dynCall_iiiiij=e.asm.fg).apply(null,arguments)},gi=e.dynCall_iiiiijj=function(){return(gi=e.dynCall_iiiiijj=e.asm.gg).apply(null,arguments)},Xo=e.dynCall_iiiiiijj=function(){return(Xo=e.dynCall_iiiiiijj=e.asm.hg).apply(null,arguments)},Jo=e.dynCall_viijii=function(){return(Jo=e.dynCall_viijii=e.asm.ig).apply(null,arguments)},Zo=e.dynCall_j=function(){return(Zo=e.dynCall_j=e.asm.jg).apply(null,arguments)},eu=e.dynCall_ji=function(){return(eu=e.dynCall_ji=e.asm.kg).apply(null,arguments)},tu=e.dynCall_iij=function(){return(tu=e.dynCall_iij=e.asm.lg).apply(null,arguments)},ru=e.dynCall_viij=function(){return(ru=e.dynCall_viij=e.asm.mg).apply(null,arguments)},iu=e.dynCall_viijji=function(){return(iu=e.dynCall_viijji=e.asm.ng).apply(null,arguments)},nu=e.dynCall_viijj=function(){return(nu=e.dynCall_viijj=e.asm.og).apply(null,arguments)},au=e.dynCall_viiijj=function(){return(au=e.dynCall_viiijj=e.asm.pg).apply(null,arguments)},su=e.dynCall_viiji=function(){return(su=e.dynCall_viiji=e.asm.qg).apply(null,arguments)},ou=e.dynCall_vijjj=function(){return(ou=e.dynCall_vijjj=e.asm.rg).apply(null,arguments)},uu=e.dynCall_iiijj=function(){return(uu=e.dynCall_iiijj=e.asm.sg).apply(null,arguments)},lu=e.dynCall_viiij=function(){return(lu=e.dynCall_viiij=e.asm.tg).apply(null,arguments)},cu=e.dynCall_viijij=function(){return(cu=e.dynCall_viijij=e.asm.ug).apply(null,arguments)},fu=e.dynCall_viiiij=function(){return(fu=e.dynCall_viiiij=e.asm.vg).apply(null,arguments)},_u=e.dynCall_jj=function(){return(_u=e.dynCall_jj=e.asm.wg).apply(null,arguments)},du=e.dynCall_viji=function(){return(du=e.dynCall_viji=e.asm.xg).apply(null,arguments)},pu=e.dynCall_iiij=function(){return(pu=e.dynCall_iiij=e.asm.yg).apply(null,arguments)},yu=e.dynCall_vij=function(){return(yu=e.dynCall_vij=e.asm.zg).apply(null,arguments)},hu=e.dynCall_iiiij=function(){return(hu=e.dynCall_iiiij=e.asm.Ag).apply(null,arguments)},mu=e.dynCall_jii=function(){return(mu=e.dynCall_jii=e.asm.Bg).apply(null,arguments)},vu=e.dynCall_iiiji=function(){return(vu=e.dynCall_iiiji=e.asm.Cg).apply(null,arguments)},gu=e.dynCall_iijj=function(){return(gu=e.dynCall_iijj=e.asm.Dg).apply(null,arguments)},bu=e.dynCall_iiijii=function(){return(bu=e.dynCall_iiijii=e.asm.Eg).apply(null,arguments)},ju=e.dynCall_iiiiji=function(){return(ju=e.dynCall_iiiiji=e.asm.Fg).apply(null,arguments)},wu=e.dynCall_iiiiiji=function(){return(wu=e.dynCall_iiiiiji=e.asm.Gg).apply(null,arguments)},ku=e.dynCall_jiii=function(){return(ku=e.dynCall_jiii=e.asm.Hg).apply(null,arguments)},Cu=e.dynCall_jij=function(){return(Cu=e.dynCall_jij=e.asm.Ig).apply(null,arguments)},Su=e.dynCall_vijj=function(){return(Su=e.dynCall_vijj=e.asm.Jg).apply(null,arguments)},Eu=e.dynCall_vijij=function(){return(Eu=e.dynCall_vijij=e.asm.Kg).apply(null,arguments)},Au=e.dynCall_iiijjjj=function(){return(Au=e.dynCall_iiijjjj=e.asm.Lg).apply(null,arguments)},Ru=e.dynCall_iiijiiii=function(){return(Ru=e.dynCall_iiijiiii=e.asm.Mg).apply(null,arguments)},Tu=e.dynCall_jiiij=function(){return(Tu=e.dynCall_jiiij=e.asm.Ng).apply(null,arguments)},Du=e.dynCall_jiiiii=function(){return(Du=e.dynCall_jiiiii=e.asm.Og).apply(null,arguments)},Pu=e.dynCall_iiiiijjiijj=function(){return(Pu=e.dynCall_iiiiijjiijj=e.asm.Pg).apply(null,arguments)},xu=e.dynCall_viijiiji=function(){return(xu=e.dynCall_viijiiji=e.asm.Qg).apply(null,arguments)},Ou=e.dynCall_iiijjii=function(){return(Ou=e.dynCall_iiijjii=e.asm.Rg).apply(null,arguments)},Fu=e.dynCall_iiijji=function(){return(Fu=e.dynCall_iiijji=e.asm.Sg).apply(null,arguments)},Nu=e.dynCall_iijjii=function(){return(Nu=e.dynCall_iijjii=e.asm.Tg).apply(null,arguments)},Mu=e.dynCall_vijii=function(){return(Mu=e.dynCall_vijii=e.asm.Ug).apply(null,arguments)},Iu=e.dynCall_vjjijij=function(){return(Iu=e.dynCall_vjjijij=e.asm.Vg).apply(null,arguments)},Bu=e.dynCall_vijjji=function(){return(Bu=e.dynCall_vijjji=e.asm.Wg).apply(null,arguments)},Lu=e.dynCall_vjjii=function(){return(Lu=e.dynCall_vjjii=e.asm.Xg).apply(null,arguments)},Uu=e.dynCall_viiiiiji=function(){return(Uu=e.dynCall_viiiiiji=e.asm.Yg).apply(null,arguments)},Hu=e.dynCall_jiiiji=function(){return(Hu=e.dynCall_jiiiji=e.asm.Zg).apply(null,arguments)},qu=e.dynCall_viijjii=function(){return(qu=e.dynCall_viijjii=e.asm._g).apply(null,arguments)},Wu=e.dynCall_iiiijj=function(){return(Wu=e.dynCall_iiiijj=e.asm.$g).apply(null,arguments)},$u=e.dynCall_viiiijj=function(){return($u=e.dynCall_viiiijj=e.asm.ah).apply(null,arguments)},Gu=e.dynCall_jijjij=function(){return(Gu=e.dynCall_jijjij=e.asm.bh).apply(null,arguments)},Ku=e.dynCall_jiijii=function(){return(Ku=e.dynCall_jiijii=e.asm.ch).apply(null,arguments)},Vu=e.dynCall_jijiii=function(){return(Vu=e.dynCall_jijiii=e.asm.dh).apply(null,arguments)},Yu=e.dynCall_viijiiiii=function(){return(Yu=e.dynCall_viijiiiii=e.asm.eh).apply(null,arguments)},Qu=e.dynCall_viijiiij=function(){return(Qu=e.dynCall_viijiiij=e.asm.fh).apply(null,arguments)},zu=e.dynCall_vijiiiji=function(){return(zu=e.dynCall_vijiiiji=e.asm.gh).apply(null,arguments)},Xu=e.dynCall_jiiji=function(){return(Xu=e.dynCall_jiiji=e.asm.hh).apply(null,arguments)},Ju=e.dynCall_viiijij=function(){return(Ju=e.dynCall_viiijij=e.asm.ih).apply(null,arguments)},Zu=e.dynCall_viijiij=function(){return(Zu=e.dynCall_viijiij=e.asm.jh).apply(null,arguments)},el=e.dynCall_viiiiijj=function(){return(el=e.dynCall_viiiiijj=e.asm.kh).apply(null,arguments)},tl=e.dynCall_viiijji=function(){return(tl=e.dynCall_viiijji=e.asm.lh).apply(null,arguments)},rl=e.dynCall_iijji=function(){return(rl=e.dynCall_iijji=e.asm.mh).apply(null,arguments)},il=e.dynCall_iijii=function(){return(il=e.dynCall_iijii=e.asm.nh).apply(null,arguments)},nl=e.dynCall_iiji=function(){return(nl=e.dynCall_iiji=e.asm.oh).apply(null,arguments)},al=e.dynCall_vijijj=function(){return(al=e.dynCall_vijijj=e.asm.ph).apply(null,arguments)},sl=e.dynCall_viiijjj=function(){return(sl=e.dynCall_viiijjj=e.asm.qh).apply(null,arguments)},ol=e.dynCall_iji=function(){return(ol=e.dynCall_iji=e.asm.rh).apply(null,arguments)},ul=e.dynCall_vijiiii=function(){return(ul=e.dynCall_vijiiii=e.asm.sh).apply(null,arguments)},ll=e.dynCall_iijjijj=function(){return(ll=e.dynCall_iijjijj=e.asm.th).apply(null,arguments)},cl=e.dynCall_viiijii=function(){return(cl=e.dynCall_viiijii=e.asm.uh).apply(null,arguments)},fl=e.dynCall_viiiiiij=function(){return(fl=e.dynCall_viiiiiij=e.asm.vh).apply(null,arguments)},_l=e.dynCall_viiiijiiiii=function(){return(_l=e.dynCall_viiiijiiiii=e.asm.wh).apply(null,arguments)},dl=e.dynCall_viiiijiiii=function(){return(dl=e.dynCall_viiiijiiii=e.asm.xh).apply(null,arguments)},pl=e.dynCall_ijji=function(){return(pl=e.dynCall_ijji=e.asm.yh).apply(null,arguments)},yl=e.dynCall_iiijiii=function(){return(yl=e.dynCall_iiijiii=e.asm.zh).apply(null,arguments)},hl=e.dynCall_iiiiijii=function(){return(hl=e.dynCall_iiiiijii=e.asm.Ah).apply(null,arguments)},ml=e.dynCall_viijiii=function(){return(ml=e.dynCall_viijiii=e.asm.Bh).apply(null,arguments)},vl=e.dynCall_iiijiij=function(){return(vl=e.dynCall_iiijiij=e.asm.Ch).apply(null,arguments)},gl=e.dynCall_vijiii=function(){return(gl=e.dynCall_vijiii=e.asm.Dh).apply(null,arguments)},bl=e.dynCall_iijjiii=function(){return(bl=e.dynCall_iijjiii=e.asm.Eh).apply(null,arguments)},jl=e.dynCall_iijjiiii=function(){return(jl=e.dynCall_iijjiiii=e.asm.Fh).apply(null,arguments)},wl=e.dynCall_viiiji=function(){return(wl=e.dynCall_viiiji=e.asm.Gh).apply(null,arguments)},kl=e.dynCall_iijiiii=function(){return(kl=e.dynCall_iijiiii=e.asm.Hh).apply(null,arguments)},Cl=e.dynCall_viiiijii=function(){return(Cl=e.dynCall_viiiijii=e.asm.Ih).apply(null,arguments)},Sl=e.dynCall_iiiijiii=function(){return(Sl=e.dynCall_iiiijiii=e.asm.Jh).apply(null,arguments)},El=e.dynCall_iiijij=function(){return(El=e.dynCall_iiijij=e.asm.Kh).apply(null,arguments)},Al=e.dynCall_iiijjji=function(){return(Al=e.dynCall_iiijjji=e.asm.Lh).apply(null,arguments)},Rl=e.dynCall_viijjji=function(){return(Rl=e.dynCall_viijjji=e.asm.Mh).apply(null,arguments)},Tl=e.dynCall_viiijjji=function(){return(Tl=e.dynCall_viiijjji=e.asm.Nh).apply(null,arguments)},Dl=e.dynCall_viiijiii=function(){return(Dl=e.dynCall_viiijiii=e.asm.Oh).apply(null,arguments)},Pl=e.dynCall_vijji=function(){return(Pl=e.dynCall_vijji=e.asm.Ph).apply(null,arguments)},xl=e.dynCall_viiiijij=function(){return(xl=e.dynCall_viiiijij=e.asm.Qh).apply(null,arguments)},Ol=e.dynCall_jiiiij=function(){return(Ol=e.dynCall_jiiiij=e.asm.Rh).apply(null,arguments)},Fl=e.dynCall_jiiijii=function(){return(Fl=e.dynCall_jiiijii=e.asm.Sh).apply(null,arguments)},Nl=e.dynCall_jiijiii=function(){return(Nl=e.dynCall_jiijiii=e.asm.Th).apply(null,arguments)},Ml=e.dynCall_viiijjij=function(){return(Ml=e.dynCall_viiijjij=e.asm.Uh).apply(null,arguments)},Il=e.dynCall_vijijjiij=function(){return(Il=e.dynCall_vijijjiij=e.asm.Vh).apply(null,arguments)},Bl=e.dynCall_viiijjiij=function(){return(Bl=e.dynCall_viiijjiij=e.asm.Wh).apply(null,arguments)},Ll=e.dynCall_viiiijijji=function(){return(Ll=e.dynCall_viiiijijji=e.asm.Xh).apply(null,arguments)},Ul=e.dynCall_viijiiiij=function(){return(Ul=e.dynCall_viijiiiij=e.asm.Yh).apply(null,arguments)},Hl=e.dynCall_viiijiiiijjj=function(){return(Hl=e.dynCall_viiijiiiijjj=e.asm.Zh).apply(null,arguments)},ql=e.dynCall_viijijiiiijjj=function(){return(ql=e.dynCall_viijijiiiijjj=e.asm._h).apply(null,arguments)},Wl=e.dynCall_iijjj=function(){return(Wl=e.dynCall_iijjj=e.asm.$h).apply(null,arguments)},$l=e.dynCall_vijijiiiijjj=function(){return($l=e.dynCall_vijijiiiijjj=e.asm.ai).apply(null,arguments)},Gl=e.dynCall_jd=function(){return(Gl=e.dynCall_jd=e.asm.bi).apply(null,arguments)},Kl=e.dynCall_jf=function(){return(Kl=e.dynCall_jf=e.asm.ci).apply(null,arguments)},Vl=e.dynCall_iiiiiiji=function(){return(Vl=e.dynCall_iiiiiiji=e.asm.di).apply(null,arguments)},Yl=e.dynCall_iiiiiiiiji=function(){return(Yl=e.dynCall_iiiiiiiiji=e.asm.ei).apply(null,arguments)},Ql=e.dynCall_vijiji=function(){return(Ql=e.dynCall_vijiji=e.asm.fi).apply(null,arguments)},zl=e.dynCall_vijjij=function(){return(zl=e.dynCall_vijjij=e.asm.gi).apply(null,arguments)},Xl=e.dynCall_viiiijiiiiiiii=function(){return(Xl=e.dynCall_viiiijiiiiiiii=e.asm.hi).apply(null,arguments)},Jl=e.dynCall_ij=function(){return(Jl=e.dynCall_ij=e.asm.ii).apply(null,arguments)},Zl=e.dynCall_jjj=function(){return(Zl=e.dynCall_jjj=e.asm.ji).apply(null,arguments)},ec=e.dynCall_jjiji=function(){return(ec=e.dynCall_jjiji=e.asm.ki).apply(null,arguments)},tc=e.dynCall_jijij=function(){return(tc=e.dynCall_jijij=e.asm.li).apply(null,arguments)},rc=e.dynCall_jijj=function(){return(rc=e.dynCall_jijj=e.asm.mi).apply(null,arguments)},ic=e.dynCall_jiiijj=function(){return(ic=e.dynCall_jiiijj=e.asm.ni).apply(null,arguments)},nc=e.dynCall_vjii=function(){return(nc=e.dynCall_vjii=e.asm.oi).apply(null,arguments)},ac=e.dynCall_jjjjjjd=function(){return(ac=e.dynCall_jjjjjjd=e.asm.pi).apply(null,arguments)},sc=e.dynCall_ijii=function(){return(sc=e.dynCall_ijii=e.asm.qi).apply(null,arguments)},oc=e.dynCall_vjiiii=function(){return(oc=e.dynCall_vjiiii=e.asm.ri).apply(null,arguments)},uc=e.dynCall_viiiiijiiii=function(){return(uc=e.dynCall_viiiiijiiii=e.asm.si).apply(null,arguments)},lc=e.dynCall_viiiiijiii=function(){return(lc=e.dynCall_viiiiijiii=e.asm.ti).apply(null,arguments)},cc=e.dynCall_vjiiiji=function(){return(cc=e.dynCall_vjiiiji=e.asm.ui).apply(null,arguments)},fc=e.dynCall_viijjj=function(){return(fc=e.dynCall_viijjj=e.asm.vi).apply(null,arguments)},_c=e.dynCall_viijiiiiii=function(){return(_c=e.dynCall_viijiiiiii=e.asm.wi).apply(null,arguments)},dc=e.dynCall_jjjji=function(){return(dc=e.dynCall_jjjji=e.asm.xi).apply(null,arguments)},pc=e.dynCall_jjjii=function(){return(pc=e.dynCall_jjjii=e.asm.yi).apply(null,arguments)},yc=e.dynCall_jji=function(){return(yc=e.dynCall_jji=e.asm.zi).apply(null,arguments)},hc=e.dynCall_viiiiji=function(){return(hc=e.dynCall_viiiiji=e.asm.Ai).apply(null,arguments)},mc=e.dynCall_iijiji=function(){return(mc=e.dynCall_iijiji=e.asm.Bi).apply(null,arguments)},vc=e.dynCall_iiiiiij=function(){return(vc=e.dynCall_iiiiiij=e.asm.Ci).apply(null,arguments)},gc=e.dynCall_iiiiiiiiiiji=function(){return(gc=e.dynCall_iiiiiiiiiiji=e.asm.Di).apply(null,arguments)},bc=e.dynCall_iiiiiiiij=function(){return(bc=e.dynCall_iiiiiiiij=e.asm.Ei).apply(null,arguments)},jc=e.dynCall_jiiijjj=function(){return(jc=e.dynCall_jiiijjj=e.asm.Fi).apply(null,arguments)},wc=e.dynCall_viiijijj=function(){return(wc=e.dynCall_viiijijj=e.asm.Gi).apply(null,arguments)},kc=e.dynCall_jiiiiji=function(){return(kc=e.dynCall_jiiiiji=e.asm.Hi).apply(null,arguments)},Cc=e.dynCall_iiiiijij=function(){return(Cc=e.dynCall_iiiiijij=e.asm.Ii).apply(null,arguments)},Sc=e.dynCall_jiiiiiii=function(){return(Sc=e.dynCall_jiiiiiii=e.asm.Ji).apply(null,arguments)},Ec=e.dynCall_fiijii=function(){return(Ec=e.dynCall_fiijii=e.asm.Ki).apply(null,arguments)},Ac=e.dynCall_diijii=function(){return(Ac=e.dynCall_diijii=e.asm.Li).apply(null,arguments)},Rc=e.dynCall_iiiiiiijii=function(){return(Rc=e.dynCall_iiiiiiijii=e.asm.Mi).apply(null,arguments)},Tc=e.dynCall_jiij=function(){return(Tc=e.dynCall_jiij=e.asm.Ni).apply(null,arguments)},Dc=e.dynCall_iiiijjii=function(){return(Dc=e.dynCall_iiiijjii=e.asm.Oi).apply(null,arguments)},Pc=e.dynCall_iiiiijji=function(){return(Pc=e.dynCall_iiiiijji=e.asm.Pi).apply(null,arguments)},xc=e.dynCall_viiijjii=function(){return(xc=e.dynCall_viiijjii=e.asm.Qi).apply(null,arguments)},Oc=e.dynCall_viiiijji=function(){return(Oc=e.dynCall_viiiijji=e.asm.Ri).apply(null,arguments)},Fc=e.dynCall_viiiijjii=function(){return(Fc=e.dynCall_viiiijjii=e.asm.Si).apply(null,arguments)},Nc=e.dynCall_viiiiijji=function(){return(Nc=e.dynCall_viiiiijji=e.asm.Ti).apply(null,arguments)},Mc=e.dynCall_iiidj=function(){return(Mc=e.dynCall_iiidj=e.asm.Ui).apply(null,arguments)},Ic=e.dynCall_iiiiiiij=function(){return(Ic=e.dynCall_iiiiiiij=e.asm.Vi).apply(null,arguments)},Bc=e.dynCall_iiiiiiiiiiiij=function(){return(Bc=e.dynCall_iiiiiiiiiiiij=e.asm.Wi).apply(null,arguments)},Lc=e.dynCall_iiijjiiji=function(){return(Lc=e.dynCall_iiijjiiji=e.asm.Xi).apply(null,arguments)},Uc=e.dynCall_iiijjiij=function(){return(Uc=e.dynCall_iiijjiij=e.asm.Yi).apply(null,arguments)},Hc=e.dynCall_iiidjiij=function(){return(Hc=e.dynCall_iiidjiij=e.asm.Zi).apply(null,arguments)},qc=e.dynCall_iiiiiiiji=function(){return(qc=e.dynCall_iiiiiiiji=e.asm._i).apply(null,arguments)},Wc=e.dynCall_iiiidjj=function(){return(Wc=e.dynCall_iiiidjj=e.asm.$i).apply(null,arguments)},$c=e.dynCall_iiiijjj=function(){return($c=e.dynCall_iiiijjj=e.asm.aj).apply(null,arguments)},Gc=e.dynCall_jiiiiiijii=function(){return(Gc=e.dynCall_jiiiiiijii=e.asm.bj).apply(null,arguments)},Kc=e.dynCall_iiiijji=function(){return(Kc=e.dynCall_iiiijji=e.asm.cj).apply(null,arguments)},Vc=e.dynCall_jiiiiii=function(){return(Vc=e.dynCall_jiiiiii=e.asm.dj).apply(null,arguments)},Yc=e.dynCall_jiijjjii=function(){return(Yc=e.dynCall_jiijjjii=e.asm.ej).apply(null,arguments)},Qc=e.dynCall_jiiiijii=function(){return(Qc=e.dynCall_jiiiijii=e.asm.fj).apply(null,arguments)},zc=e.dynCall_jiiiiijiiii=function(){return(zc=e.dynCall_jiiiiijiiii=e.asm.gj).apply(null,arguments)},Xc=e.dynCall_jiiijiii=function(){return(Xc=e.dynCall_jiiijiii=e.asm.hj).apply(null,arguments)},Jc=e.dynCall_viiijijiji=function(){return(Jc=e.dynCall_viiijijiji=e.asm.ij).apply(null,arguments)},Zc=e.dynCall_iiijjj=function(){return(Zc=e.dynCall_iiijjj=e.asm.jj).apply(null,arguments)},ef=e.dynCall_iiiijii=function(){return(ef=e.dynCall_iiiijii=e.asm.kj).apply(null,arguments)},tf=e.dynCall_vj=function(){return(tf=e.dynCall_vj=e.asm.lj).apply(null,arguments)},rf=e.dynCall_iijiii=function(){return(rf=e.dynCall_iijiii=e.asm.mj).apply(null,arguments)},nf=e.dynCall_vijiijj=function(){return(nf=e.dynCall_vijiijj=e.asm.nj).apply(null,arguments)},af=e.dynCall_vifiijj=function(){return(af=e.dynCall_vifiijj=e.asm.oj).apply(null,arguments)},sf=e.dynCall_vidiijj=function(){return(sf=e.dynCall_vidiijj=e.asm.pj).apply(null,arguments)},of=e.dynCall_viiiiij=function(){return(of=e.dynCall_viiiiij=e.asm.qj).apply(null,arguments)},uf=e.dynCall_ijjiii=function(){return(uf=e.dynCall_ijjiii=e.asm.rj).apply(null,arguments)},lf=e.dynCall_vijijjji=function(){return(lf=e.dynCall_vijijjji=e.asm.sj).apply(null,arguments)},cf=e.dynCall_viijiijj=function(){return(cf=e.dynCall_viijiijj=e.asm.tj).apply(null,arguments)},ff=e.dynCall_viijijj=function(){return(ff=e.dynCall_viijijj=e.asm.uj).apply(null,arguments)},_f=e.dynCall_viiiiijjji=function(){return(_f=e.dynCall_viiiiijjji=e.asm.vj).apply(null,arguments)},df=e.dynCall_iiijiijj=function(){return(df=e.dynCall_iiijiijj=e.asm.wj).apply(null,arguments)},pf=e.dynCall_viiijijjj=function(){return(pf=e.dynCall_viiijijjj=e.asm.xj).apply(null,arguments)},yf=e.dynCall_iijiijj=function(){return(yf=e.dynCall_iijiijj=e.asm.yj).apply(null,arguments)},hf=e.dynCall_viiijjjji=function(){return(hf=e.dynCall_viiijjjji=e.asm.zj).apply(null,arguments)},mf=e.dynCall_viiiijiii=function(){return(mf=e.dynCall_viiiijiii=e.asm.Aj).apply(null,arguments)},vf=e.dynCall_viijiiii=function(){return(vf=e.dynCall_viijiiii=e.asm.Bj).apply(null,arguments)},gf=e.dynCall_vijjiiii=function(){return(gf=e.dynCall_vijjiiii=e.asm.Cj).apply(null,arguments)},bf=e.dynCall_vijijjiiiii=function(){return(bf=e.dynCall_vijijjiiiii=e.asm.Dj).apply(null,arguments)},jf=e.dynCall_vijjiiiii=function(){return(jf=e.dynCall_vijjiiiii=e.asm.Ej).apply(null,arguments)},wf=e.dynCall_iiiiiijji=function(){return(wf=e.dynCall_iiiiiijji=e.asm.Fj).apply(null,arguments)},kf=e.dynCall_iiiiijjj=function(){return(kf=e.dynCall_iiiiijjj=e.asm.Gj).apply(null,arguments)},Cf=e.dynCall_jijiiii=function(){return(Cf=e.dynCall_jijiiii=e.asm.Hj).apply(null,arguments)},Sf=e.dynCall_viiijiji=function(){return(Sf=e.dynCall_viiijiji=e.asm.Ij).apply(null,arguments)},Ef=e.dynCall_iiijjjii=function(){return(Ef=e.dynCall_iiijjjii=e.asm.Jj).apply(null,arguments)},Af=e.dynCall_iiiiijjji=function(){return(Af=e.dynCall_iiiiijjji=e.asm.Kj).apply(null,arguments)},Rf=e.dynCall_viijiji=function(){return(Rf=e.dynCall_viijiji=e.asm.Lj).apply(null,arguments)};function Bp(i){var n=j();try{V(i)()}catch(a){if(w(n),a!==a+0)throw a;b(1,0)}}function Lp(i,n,a){var s=j();try{V(i)(n,a)}catch(o){if(w(s),o!==o+0)throw o;b(1,0)}}function Up(i,n){var a=j();try{return V(i)(n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function Hp(i,n,a){var s=j();try{return V(i)(n,a)}catch(o){if(w(s),o!==o+0)throw o;b(1,0)}}function qp(i,n){var a=j();try{V(i)(n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function Wp(i,n,a,s){var o=j();try{return V(i)(n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function $p(i,n,a,s,o,l){var c=j();try{return V(i)(n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Gp(i,n,a,s,o){var l=j();try{V(i)(n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Kp(i,n,a,s,o){var l=j();try{return V(i)(n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Vp(i,n,a,s){var o=j();try{return V(i)(n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function Yp(i,n,a,s){var o=j();try{return V(i)(n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function Qp(i,n,a,s){var o=j();try{V(i)(n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function zp(i,n,a,s){var o=j();try{V(i)(n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function Xp(i,n,a,s,o,l,c,f){var _=j();try{return V(i)(n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Jp(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return V(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Zp(i,n,a,s,o,l,c,f,_,p,m,k,E){var W=j();try{return V(i)(n,a,s,o,l,c,f,_,p,m,k,E)}catch(Q){if(w(W),Q!==Q+0)throw Q;b(1,0)}}function ey(i){var n=j();try{return V(i)()}catch(a){if(w(n),a!==a+0)throw a;b(1,0)}}function ty(i,n,a,s,o,l,c,f){var _=j();try{V(i)(n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function ry(i,n,a,s,o,l,c){var f=j();try{return V(i)(n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function iy(i,n,a,s,o,l,c,f,_,p,m,k){var E=j();try{return V(i)(n,a,s,o,l,c,f,_,p,m,k)}catch(W){if(w(E),W!==W+0)throw W;b(1,0)}}function ny(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{V(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function ay(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de){var Ce=j();try{V(i)(n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de)}catch(Be){if(w(Ce),Be!==Be+0)throw Be;b(1,0)}}function sy(i,n,a,s,o,l,c){var f=j();try{V(i)(n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function oy(i,n,a,s,o,l){var c=j();try{return V(i)(n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function uy(i,n,a,s,o,l,c,f,_){var p=j();try{V(i)(n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function ly(i,n,a,s,o,l){var c=j();try{V(i)(n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function cy(i,n){var a=j();try{return V(i)(n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function fy(i,n,a,s,o,l,c,f,_,p){var m=j();try{return V(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function _y(i,n){var a=j();try{return V(i)(n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function dy(i,n){var a=j();try{return V(i)(n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function py(i,n){var a=j();try{return V(i)(n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function yy(i,n,a){var s=j();try{return V(i)(n,a)}catch(o){if(w(s),o!==o+0)throw o;b(1,0)}}function hy(i,n,a){var s=j();try{return V(i)(n,a)}catch(o){if(w(s),o!==o+0)throw o;b(1,0)}}function my(i,n,a){var s=j();try{V(i)(n,a)}catch(o){if(w(s),o!==o+0)throw o;b(1,0)}}function vy(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de,Ce,Be){var B=j();try{return V(i)(n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de,Ce,Be)}catch(ie){if(w(B),ie!==ie+0)throw ie;b(1,0)}}function gy(i,n,a,s,o){var l=j();try{return V(i)(n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function by(i,n,a,s,o,l,c,f,_){var p=j();try{return V(i)(n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function jy(i,n,a){var s=j();try{V(i)(n,a)}catch(o){if(w(s),o!==o+0)throw o;b(1,0)}}function wy(i,n,a,s,o,l,c,f,_,p,m,k,E,W){var Q=j();try{V(i)(n,a,s,o,l,c,f,_,p,m,k,E,W)}catch(de){if(w(Q),de!==de+0)throw de;b(1,0)}}function ky(i,n,a,s,o,l,c,f,_,p){var m=j();try{V(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Cy(i,n,a,s){var o=j();try{return V(i)(n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function Sy(i,n,a,s,o,l,c,f){var _=j();try{return V(i)(n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Ey(i,n,a,s,o){var l=j();try{return V(i)(n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Ay(i,n,a,s,o,l){var c=j();try{V(i)(n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Ry(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de,Ce){var Be=j();try{return V(i)(n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de,Ce)}catch(B){if(w(Be),B!==B+0)throw B;b(1,0)}}function Ty(i,n,a,s,o,l,c){var f=j();try{return V(i)(n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Dy(i,n,a,s,o){var l=j();try{return V(i)(n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Py(i,n,a){var s=j();try{return V(i)(n,a)}catch(o){if(w(s),o!==o+0)throw o;b(1,0)}}function xy(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{V(i)(n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Oy(i,n,a,s,o,l,c,f,_,p,m,k){var E=j();try{V(i)(n,a,s,o,l,c,f,_,p,m,k)}catch(W){if(w(E),W!==W+0)throw W;b(1,0)}}function Fy(i,n,a,s,o,l,c,f,_,p){var m=j();try{V(i)(n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Ny(i){var n=j();try{return V(i)()}catch(a){if(w(n),a!==a+0)throw a;b(1,0)}}function My(i){var n=j();try{return V(i)()}catch(a){if(w(n),a!==a+0)throw a;b(1,0)}}function Iy(i,n,a,s,o){var l=j();try{return Ue(i,n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function By(i,n,a,s,o,l,c){var f=j();try{nu(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Ly(i,n){var a=j();try{return eu(i,n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function Uy(i,n,a){var s=j();try{return mu(i,n,a)}catch(o){if(w(s),o!==o+0)throw o;b(1,0)}}function Hy(i,n,a,s,o,l,c){var f=j();try{Jo(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function qy(i,n,a,s,o,l,c){var f=j();try{return Wt(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Wy(i,n,a,s,o,l,c,f,_){var p=j();try{return gi(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function $y(i,n,a,s){var o=j();try{return tu(i,n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function Gy(i,n,a,s,o,l){var c=j();try{su(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Ky(i,n,a,s,o){var l=j();try{ru(i,n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Vy(i){var n=j();try{return Zo(i)}catch(a){if(w(n),a!==a+0)throw a;b(1,0)}}function Yy(i,n,a,s,o,l,c,f){var _=j();try{ou(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Qy(i,n,a,s,o,l,c){var f=j();try{return uu(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function zy(i,n,a,s,o,l,c,f){var _=j();try{iu(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Xy(i,n,a,s,o,l,c){var f=j();try{fu(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Jy(i,n,a,s,o,l){var c=j();try{lu(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Zy(i,n,a,s){var o=j();try{yu(i,n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function eh(i,n,a){var s=j();try{return _u(i,n,a)}catch(o){if(w(s),o!==o+0)throw o;b(1,0)}}function th(i,n,a,s,o){var l=j();try{return pu(i,n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function rh(i,n,a,s,o,l,c){var f=j();try{return rf(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function ih(i,n,a,s,o){var l=j();try{du(i,n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function nh(i,n,a,s,o,l,c,f){var _=j();try{au(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function ah(i,n,a,s,o,l,c,f){var _=j();try{return Wu(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function sh(i,n,a,s,o,l,c,f,_){var p=j();try{return Vl(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function oh(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return Yl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function uh(i,n,a,s,o,l){var c=j();try{return hu(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function lh(i,n,a,s,o,l,c,f){var _=j();try{return El(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function ch(i,n,a,s,o){var l=j();try{return nl(i,n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function fh(i,n,a,s,o,l){var c=j();try{return vu(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function _h(i,n,a,s,o,l,c){var f=j();try{return rl(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function dh(i,n,a,s,o,l,c,f,_,p){var m=j();try{return Al(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function ph(i,n,a,s,o,l,c,f,_){var p=j();try{return vl(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function yh(i,n,a,s,o,l,c,f,_,p){var m=j();try{Rl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function hh(i,n,a,s,o,l,c,f){var _=j();try{return Fu(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function mh(i,n,a,s,o,l,c,f){var _=j();try{cu(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function vh(i,n,a,s,o,l){var c=j();try{return gu(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function gh(i,n,a,s,o,l,c){var f=j();try{return bu(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function bh(i,n,a,s,o,l,c){var f=j();try{return ju(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function jh(i,n,a,s,o,l,c,f){var _=j();try{return wu(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function wh(i,n,a,s,o,l,c,f,_,p){var m=j();try{return Xo(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function kh(i,n,a,s,o,l,c){var f=j();try{gl(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Ch(i,n,a,s,o,l,c,f){var _=j();try{ul(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Sh(i,n,a,s,o,l,c,f){var _=j();try{return yl(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Eh(i,n,a,s,o,l,c,f,_){var p=j();try{return hl(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Ah(i,n,a,s,o,l,c,f){var _=j();try{ml(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Rh(i,n,a,s,o,l){var c=j();try{return il(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Th(i,n,a,s,o,l,c,f,_){var p=j();try{return Ru(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Dh(i,n,a,s,o,l,c,f,_){var p=j();try{tl(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Ph(i,n,a,s,o,l,c){var f=j();try{Lu(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function xh(i,n,a,s){var o=j();try{return Cu(i,n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function Oh(i,n,a,s,o,l){var c=j();try{return Tu(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Fh(i,n,a,s,o,l,c,f,_){var p=j();try{Bu(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Nh(i,n,a,s,o,l){var c=j();try{return Du(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Mh(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{Iu(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Ih(i,n,a,s,o,l){var c=j();try{return Xu(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Bh(i,n,a,s,o,l,c,f,_,p){var m=j();try{xu(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Lh(i,n,a,s,o,l,c){var f=j();try{return Hu(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Uh(i,n,a,s,o,l){var c=j();try{Su(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Hh(i,n,a,s,o,l,c){var f=j();try{Eu(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function qh(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return Au(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Wh(i,n,a,s,o,l,c,f,_){var p=j();try{Uu(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function $h(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q){var de=j();try{return Pu(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q)}catch(Ce){if(w(de),Ce!==Ce+0)throw Ce;b(1,0)}}function Gh(i,n,a,s,o,l,c,f,_){var p=j();try{return Ou(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Kh(i,n,a,s,o,l,c,f){var _=j();try{return Nu(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Vh(i,n,a,s,o,l){var c=j();try{Mu(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Yh(i,n,a,s,o,l,c,f,_){var p=j();try{qu(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Qh(i,n,a,s,o,l,c){var f=j();try{return Ku(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function zh(i,n,a,s,o,l,c,f,_,p){var m=j();try{Yu(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Xh(i,n,a,s,o,l,c,f,_,p){var m=j();try{Qu(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Jh(i,n,a,s,o,l,c){var f=j();try{return Vu(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Zh(i,n,a,s,o,l,c,f,_,p){var m=j();try{zu(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function em(i,n,a,s,o,l,c,f,_){var p=j();try{return Gu(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function tm(i,n,a,s,o,l,c,f,_){var p=j();try{Zu(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function rm(i,n,a,s,o,l,c,f,_){var p=j();try{$u(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function im(i,n,a,s,o,l,c,f){var _=j();try{return kl(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function nm(i,n,a,s,o,l,c,f,_){var p=j();try{return bl(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function am(i,n,a,s,o,l,c,f,_,p){var m=j();try{return jl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function sm(i,n,a,s,o,l,c,f,_){var p=j();try{fl(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function om(i,n,a,s,o,l,c,f){var _=j();try{cl(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function um(i,n,a,s,o,l,c,f,_){var p=j();try{al(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function lm(i,n,a,s,o,l,c,f,_,p){var m=j();try{sl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function cm(i,n,a,s){var o=j();try{return ol(i,n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function fm(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return ll(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function _m(i,n,a,s,o,l,c,f,_,p,m,k){var E=j();try{_l(i,n,a,s,o,l,c,f,_,p,m,k)}catch(W){if(w(E),W!==W+0)throw W;b(1,0)}}function dm(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{dl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function pm(i,n,a,s,o,l){var c=j();try{return pl(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function ym(i,n,a,s,o,l,c){var f=j();try{wl(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function hm(i,n,a,s,o,l,c,f,_){var p=j();try{Cl(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function mm(i,n,a,s){var o=j();try{return ku(i,n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function vm(i,n,a,s,o,l,c,f,_){var p=j();try{return Sl(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function gm(i,n,a,s,o,l,c,f,_){var p=j();try{Dl(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function bm(i,n,a,s,o,l,c){var f=j();try{Pl(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function jm(i,n,a,s,o,l,c,f,_,p){var m=j();try{xl(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function wm(i,n,a,s,o,l,c){var f=j();try{return Ol(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function km(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{Tl(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Cm(i,n,a,s,o,l,c,f){var _=j();try{return Wl(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Sm(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{Ml(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Em(i,n,a,s,o,l,c,f,_,p,m,k,E){var W=j();try{Il(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Q){if(w(W),Q!==Q+0)throw Q;b(1,0)}}function Am(i,n,a,s,o,l,c,f,_,p,m,k,E){var W=j();try{Ll(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Q){if(w(W),Q!==Q+0)throw Q;b(1,0)}}function Rm(i,n,a,s,o,l,c,f){var _=j();try{return Nl(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Tm(i,n,a,s,o,l,c,f){var _=j();try{return Fl(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Dm(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{Ul(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Pm(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de){var Ce=j();try{Hl(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de)}catch(Be){if(w(Ce),Be!==Be+0)throw Be;b(1,0)}}function xm(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de,Ce,Be){var B=j();try{ql(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de,Ce,Be)}catch(ie){if(w(B),ie!==ie+0)throw ie;b(1,0)}}function Om(i,n,a,s,o,l,c,f,_,p,m,k){var E=j();try{Bl(i,n,a,s,o,l,c,f,_,p,m,k)}catch(W){if(w(E),W!==W+0)throw W;b(1,0)}}function Fm(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de,Ce){var Be=j();try{$l(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q,de,Ce)}catch(B){if(w(Be),B!==B+0)throw B;b(1,0)}}function Nm(i,n){var a=j();try{return Gl(i,n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function Mm(i,n){var a=j();try{return Kl(i,n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function Im(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return Gc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Bm(i,n,a,s,o,l,c,f,_){var p=j();try{return Kc(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Lm(i,n,a,s,o,l,c,f){var _=j();try{hc(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Um(i,n,a,s,o,l,c){var f=j();try{return Vc(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Hm(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return Yc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function qm(i,n,a,s,o,l,c,f,_,p){var m=j();try{return bc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Wm(i,n,a,s,o,l,c,f){var _=j();try{Ql(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function $m(i,n,a,s,o,l,c,f,_){var p=j();try{zl(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Gm(i,n,a,s,o,l,c){var f=j();try{return ec(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Km(i,n,a,s,o,l,c){var f=j();try{return tc(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Vm(i,n,a,s,o,l){var c=j();try{return rc(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Ym(i,n,a,s,o,l,c,f){var _=j();try{return ic(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Qm(i,n,a,s,o,l,c,f){var _=j();try{return uf(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function zm(i,n,a){var s=j();try{return Jl(i,n,a)}catch(o){if(w(s),o!==o+0)throw o;b(1,0)}}function Xm(i,n,a,s,o,l,c){var f=j();try{oc(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Jm(i,n,a,s,o,l,c,f,_,p,m,k){var E=j();try{uc(i,n,a,s,o,l,c,f,_,p,m,k)}catch(W){if(w(E),W!==W+0)throw W;b(1,0)}}function Zm(i,n,a,s,o){var l=j();try{return sc(i,n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function ev(i,n,a,s,o){var l=j();try{nc(i,n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function tv(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{lc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function rv(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q){var de=j();try{Xl(i,n,a,s,o,l,c,f,_,p,m,k,E,W,Q)}catch(Ce){if(w(de),Ce!==Ce+0)throw Ce;b(1,0)}}function iv(i,n,a,s,o){var l=j();try{return Zl(i,n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function nv(i,n,a,s,o,l,c,f,_,p,m,k){var E=j();try{return ac(i,n,a,s,o,l,c,f,_,p,m,k)}catch(W){if(w(E),W!==W+0)throw W;b(1,0)}}function av(i,n,a,s,o,l,c,f,_){var p=j();try{cc(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function sv(i,n,a,s,o,l,c,f,_){var p=j();try{fc(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function ov(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{_c(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function uv(i,n,a,s,o,l,c,f){var _=j();try{return dc(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function lv(i,n,a,s,o,l,c){var f=j();try{return pc(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function cv(i,n,a,s){var o=j();try{return yc(i,n,a,s)}catch(l){if(w(o),l!==l+0)throw l;b(1,0)}}function fv(i,n,a,s,o,l,c,f){var _=j();try{return mc(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function _v(i,n,a,s,o,l,c,f){var _=j();try{return vc(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function dv(i,n,a,s,o,l,c,f,_,p,m,k,E){var W=j();try{return gc(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Q){if(w(W),Q!==Q+0)throw Q;b(1,0)}}function pv(i,n,a,s,o,l,c,f,_,p){var m=j();try{return jc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function yv(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{wc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function hv(i,n,a,s,o,l,c,f){var _=j();try{return kc(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function mv(i,n,a,s,o,l,c,f,_,p){var m=j();try{return Cc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function vv(i,n,a,s,o,l,c,f){var _=j();try{return Sc(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function gv(i,n,a,s,o,l,c,f,_){var p=j();try{return Ic(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function bv(i,n,a,s,o,l,c,f,_,p,m,k,E,W){var Q=j();try{return Bc(i,n,a,s,o,l,c,f,_,p,m,k,E,W)}catch(de){if(w(Q),de!==de+0)throw de;b(1,0)}}function jv(i,n,a,s,o){var l=j();try{return Tc(i,n,a,s,o)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function wv(i,n,a,s,o,l,c){var f=j();try{return Ec(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function kv(i,n,a,s,o,l,c){var f=j();try{return Ac(i,n,a,s,o,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Cv(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return Rc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Sv(i,n,a,s,o,l,c,f,_,p){var m=j();try{return Dc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Ev(i,n,a,s,o,l,c,f,_,p){var m=j();try{return Pc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Av(i,n,a,s,o,l,c,f,_,p){var m=j();try{xc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Rv(i,n,a,s,o,l,c,f,_,p){var m=j();try{Oc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Tv(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{Fc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Dv(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{Nc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Pv(i,n,a,s,o,l){var c=j();try{return Mc(i,n,a,s,o,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function xv(i,n,a,s,o,l,c,f,_,p,m,k){var E=j();try{return Lc(i,n,a,s,o,l,c,f,_,p,m,k)}catch(W){if(w(E),W!==W+0)throw W;b(1,0)}}function Ov(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return Uc(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function Fv(i,n,a,s,o,l,c,f,_,p){var m=j();try{return Hc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Nv(i,n,a,s,o,l,c,f,_,p){var m=j();try{return qc(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Mv(i,n,a,s,o,l,c,f,_){var p=j();try{return Wc(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Iv(i,n,a,s,o,l,c,f,_,p){var m=j();try{return $c(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Bv(i,n,a,s,o,l,c,f,_){var p=j();try{return Qc(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Lv(i,n,a,s,o,l,c,f,_,p,m,k){var E=j();try{return zc(i,n,a,s,o,l,c,f,_,p,m,k)}catch(W){if(w(E),W!==W+0)throw W;b(1,0)}}function Uv(i,n,a,s,o,l,c,f,_){var p=j();try{return Xc(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Hv(i,n,a,s,o,l,c,f,_,p,m,k,E){var W=j();try{Jc(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Q){if(w(W),Q!==Q+0)throw Q;b(1,0)}}function qv(i,n,a,s,o,l,c,f,_){var p=j();try{Ju(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Wv(i,n,a,s,o,l,c,f,_){var p=j();try{return Zc(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function $v(i,n,a,s,o,l,c,f){var _=j();try{return ef(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Gv(i,n,a){var s=j();try{tf(i,n,a)}catch(o){if(w(s),o!==o+0)throw o;b(1,0)}}function Kv(i,n,a,s,o,l,c,f,_,p){var m=j();try{el(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Vv(i,n,a,s,o,l,c,f,_,p){var m=j();try{nf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Yv(i,n,a,s,o,l,c,f,_){var p=j();try{af(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function Qv(i,n,a,s,o,l,c,f,_){var p=j();try{sf(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function zv(i,n,a,s,o,l,c,f){var _=j();try{of(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Xv(i,n,a,s,o,l,c,f,_,p,m,k){var E=j();try{lf(i,n,a,s,o,l,c,f,_,p,m,k)}catch(W){if(w(E),W!==W+0)throw W;b(1,0)}}function Jv(i,n,a,s,o,l,c,f,_,p){var m=j();try{ff(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function Zv(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return df(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function eg(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{cf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function tg(i,n,a,s,o,l,c,f,_,p,m,k,E){var W=j();try{_f(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Q){if(w(W),Q!==Q+0)throw Q;b(1,0)}}function rg(i,n,a,s,o,l,c,f,_,p,m,k,E){var W=j();try{pf(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Q){if(w(W),Q!==Q+0)throw Q;b(1,0)}}function ig(i,n,a,s,o,l,c,f,_,p){var m=j();try{return yf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function ng(i,n,a,s,o,l,c,f,_,p,m,k,E){var W=j();try{hf(i,n,a,s,o,l,c,f,_,p,m,k,E)}catch(Q){if(w(W),Q!==Q+0)throw Q;b(1,0)}}function ag(i,n,a,s,o,l,c,f,_,p){var m=j();try{mf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function sg(i,n,a,s,o,l,c,f,_){var p=j();try{vf(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function og(i,n,a,s,o,l,c,f,_){var p=j();try{Rf(i,n,a,s,o,l,c,f,_)}catch(m){if(w(p),m!==m+0)throw m;b(1,0)}}function ug(i,n,a,s,o,l,c,f,_,p,m,k,E,W){var Q=j();try{bf(i,n,a,s,o,l,c,f,_,p,m,k,E,W)}catch(de){if(w(Q),de!==de+0)throw de;b(1,0)}}function lg(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{jf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function cg(i,n,a,s,o,l,c,f,_,p){var m=j();try{gf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function fg(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return wf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function _g(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return Ef(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function dg(i,n,a,s,o,l,c,f,_,p){var m=j();try{Sf(i,n,a,s,o,l,c,f,_,p)}catch(k){if(w(m),k!==k+0)throw k;b(1,0)}}function pg(i,n,a,s,o,l,c,f){var _=j();try{return Cf(i,n,a,s,o,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function yg(i,n,a,s,o,l,c,f,_,p,m){var k=j();try{return kf(i,n,a,s,o,l,c,f,_,p,m)}catch(E){if(w(k),E!==E+0)throw E;b(1,0)}}function hg(i,n,a,s,o,l,c,f,_,p,m,k){var E=j();try{return Af(i,n,a,s,o,l,c,f,_,p,m,k)}catch(W){if(w(E),W!==W+0)throw W;b(1,0)}}e.ccall=le;var bi;function ji(i){this.name="ExitStatus",this.message="Program terminated with exit("+i+")",this.status=i}var mg=!1;Ge=function i(){bi||Ja(),bi||(Ge=i)};function vg(i){var n=e._main,a=0,s=0;try{var o=n(a,s);return gg(o,!0),o}catch(l){return _n(l)}finally{mg=!0}}function Ja(i){if(i=i||v,kt>0||(on(),kt>0))return;function n(){bi||(bi=!0,e.calledRun=!0,!ke&&(un(),ln(),u(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),Tf&&vg(i),cn()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),n()},1)):n()}e.run=Ja;function gg(i,n){D=i,bg(i)}function bg(i){D=i,Jr()||(e.onExit&&e.onExit(i),ke=!0),A(i,new ji(i))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var Tf=!0;return e.noInitialRun&&(Tf=!1),Ja(),t.ready}})(),rn=Gw;var Np=_r(require("fs")),Cr=class extends Wr{constructor(e,u,d,y){super(e,u);this.mainModulePath=d,this.pthreadWorkerPath=y}locateFile(e,u){if(e.endsWith(".wasm"))return this.mainModulePath;if(e.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=${u} path=${e}`)}instantiateWasm(e,u){globalThis.DUCKDB_RUNTIME={};for(let y of Object.getOwnPropertyNames(this._runtime))y!="constructor"&&(globalThis.DUCKDB_RUNTIME[y]=Object.getOwnPropertyDescriptor(this._runtime,y).value);let d=Np.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(d,e).then(y=>{u(y.instance,y.module)}),[]}instantiateImpl(e){return rn({...e,instantiateWasm:this.instantiateWasm.bind(this)})}};var nn=class extends Cr{constructor(t,e,u,d=null){super(t,e,u,d)}instantiateImpl(t){return rn({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var Mp={},Kw=(()=>{var r=Mp.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},u,d;e.ready=new Promise(function(h,g){u=h,d=g});var y=Object.assign({},e),v=[],S="./this.program",A=(h,g)=>{throw g},I=typeof window=="object",R=typeof importScripts=="function",U=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",P="";function fe(h){return e.locateFile?e.locateFile(h,P):P+h}var K,z,Z,oe;function be(h){if(h instanceof fr)return;J("exiting due to exception: "+h)}var he,Ae,ne;U?(R?P=require("path").dirname(P)+"/":P=__dirname+"/",ne=()=>{Ae||(he=require("fs"),Ae=require("path"))},K=function(g,C){return ne(),g=Ae.normalize(g),he.readFileSync(g,C?void 0:"utf8")},Z=h=>{var g=K(h,!0);return g.buffer||(g=new Uint8Array(g)),g},z=(h,g,C)=>{ne(),h=Ae.normalize(h),he.readFile(h,function(T,M){T?C(T):g(M.buffer)})},process.argv.length>1&&(S=process.argv[1].replace(/\\/g,"/")),v=process.argv.slice(2),process.on("uncaughtException",function(h){if(!(h instanceof fr))throw h}),process.on("unhandledRejection",function(h){throw h}),A=(h,g)=>{if(zr())throw process.exitCode=h,g;be(g),process.exit(h)},e.inspect=function(){return"[Emscripten Module object]"}):(I||R)&&(R?P=self.location.href:typeof document<"u"&&document.currentScript&&(P=document.currentScript.src),r&&(P=r),P.indexOf("blob:")!==0?P=P.substr(0,P.replace(/[?#].*/,"").lastIndexOf("/")+1):P="",K=h=>{var g=new XMLHttpRequest;return g.open("GET",h,!1),g.send(null),g.responseText},R&&(Z=h=>{var g=new XMLHttpRequest;return g.open("GET",h,!1),g.responseType="arraybuffer",g.send(null),new Uint8Array(g.response)}),z=(h,g,C)=>{var T=new XMLHttpRequest;T.open("GET",h,!0),T.responseType="arraybuffer",T.onload=()=>{if(T.status==200||T.status==0&&T.response){g(T.response);return}C()},T.onerror=C,T.send(null)},oe=h=>document.title=h);var we=e.print||console.log.bind(console),J=e.printErr||console.warn.bind(console);Object.assign(e,y),y=null,e.arguments&&(v=e.arguments),e.thisProgram&&(S=e.thisProgram),e.quit&&(A=e.quit);var ee;e.wasmBinary&&(ee=e.wasmBinary);var H=e.noExitRuntime||!0;typeof WebAssembly!="object"&&Ge("no native wasm support detected");var pe,F=!1,ue;function ae(h,g){h||Ge(g)}function ke(h){var g=e["_"+h];return g}function D(h,g,C,T,M){var X={string:function(Ie){var b=0;if(Ie!=null&&Ie!==0){var j=(Ie.length<<2)+1;b=Br(j),$e(Ie,b,j)}return b},array:function(Ie){var b=Br(Ie.length);return _t(Ie,b),b}};function G(Ie){return g==="string"?le(Ie):g==="boolean"?Boolean(Ie):Ie}var q=ke(h),te=[],me=0;if(T)for(var ve=0;ve<T.length;ve++){var Ke=X[C[ve]];Ke?(me===0&&(me=hi()),te[ve]=Ke(T[ve])):te[ve]=T[ve]}var Se=q.apply(null,te);function ft(Ie){return me!==0&&mi(me),G(Ie)}return Se=ft(Se),Se}var x=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Pe(h,g,C){g>>>=0;for(var T=g+C,M=g;h[M]&&!(M>=T);)++M;if(M-g>16&&h.buffer&&x)return x.decode(h.subarray(g,M));for(var X="";g<M;){var G=h[g++];if(!(G&128)){X+=String.fromCharCode(G);continue}var q=h[g++]&63;if((G&224)==192){X+=String.fromCharCode((G&31)<<6|q);continue}var te=h[g++]&63;if((G&240)==224?G=(G&15)<<12|q<<6|te:G=(G&7)<<18|q<<12|te<<6|h[g++]&63,G<65536)X+=String.fromCharCode(G);else{var me=G-65536;X+=String.fromCharCode(55296|me>>10,56320|me&1023)}}return X}function le(h,g){return h>>>=0,h?Pe(se,h,g):""}function Qe(h,g,C,T){if(C>>>=0,!(T>0))return 0;for(var M=C,X=C+T-1,G=0;G<h.length;++G){var q=h.charCodeAt(G);if(q>=55296&&q<=57343){var te=h.charCodeAt(++G);q=65536+((q&1023)<<10)|te&1023}if(q<=127){if(C>=X)break;g[C++>>>0]=q}else if(q<=2047){if(C+1>=X)break;g[C++>>>0]=192|q>>6,g[C++>>>0]=128|q&63}else if(q<=65535){if(C+2>=X)break;g[C++>>>0]=224|q>>12,g[C++>>>0]=128|q>>6&63,g[C++>>>0]=128|q&63}else{if(C+3>=X)break;g[C++>>>0]=240|q>>18,g[C++>>>0]=128|q>>12&63,g[C++>>>0]=128|q>>6&63,g[C++>>>0]=128|q&63}}return g[C>>>0]=0,C-M}function $e(h,g,C){return Qe(h,se,g,C)}function xe(h){for(var g=0,C=0;C<h.length;++C){var T=h.charCodeAt(C);T>=55296&&T<=57343&&(T=65536+((T&1023)<<10)|h.charCodeAt(++C)&1023),T<=127?++g:T<=2047?g+=2:T<=65535?g+=3:g+=4}return g}function _t(h,g){ze.set(h,g>>>0)}function It(h,g,C){for(var T=0;T<h.length;++T)ze[g++>>>0]=h.charCodeAt(T);C||(ze[g>>>0]=0)}var bt,ze,se,st,et,O,ge,$,N;function Re(h){bt=h,e.HEAP8=ze=new Int8Array(h),e.HEAP16=st=new Int16Array(h),e.HEAP32=O=new Int32Array(h),e.HEAPU8=se=new Uint8Array(h),e.HEAPU16=et=new Uint16Array(h),e.HEAPU32=ge=new Uint32Array(h),e.HEAPF32=$=new Float32Array(h),e.HEAPF64=N=new Float64Array(h)}var qe=e.INITIAL_MEMORY||16777216,Fe,jt=[],At=[],Yr=[],Sr=[],Qr=!1;function zr(){return H}function Xr(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)un(e.preRun.shift());Lt(jt)}function sn(){Qr=!0,Lt(At)}function Jr(){Lt(Yr)}function on(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)cn(e.postRun.shift());Lt(Sr)}function un(h){jt.unshift(h)}function ln(h){At.unshift(h)}function cn(h){Sr.unshift(h)}var wt=0,Er=null,Bt=null;function kt(h){wt++,e.monitorRunDependencies&&e.monitorRunDependencies(wt)}function Ar(h){if(wt--,e.monitorRunDependencies&&e.monitorRunDependencies(wt),wt==0&&(Er!==null&&(clearInterval(Er),Er=null),Bt)){var g=Bt;Bt=null,g()}}function Ge(h){e.onAbort&&e.onAbort(h),h="Aborted("+h+")",J(h),F=!0,ue=1,h+=". Build with -sASSERTIONS for more info.";var g=new WebAssembly.RuntimeError(h);throw d(g),g}var fn="data:application/octet-stream;base64,";function Zr(h){return h.startsWith(fn)}var Oe;e.locateFile?(Oe="./duckdb-eh.wasm",Zr(Oe)||(Oe=fe(Oe))):Oe=new URL("./duckdb-eh.wasm",Mp.url).toString();function ei(h){try{if(h==Oe&&ee)return new Uint8Array(ee);if(Z)return Z(h);throw"both async and sync fetching of the wasm failed"}catch(g){Ge(g)}}function ti(){return!ee&&(I||R)&&typeof fetch=="function"?fetch(Oe,{credentials:"same-origin"}).then(function(h){if(!h.ok)throw"failed to load wasm binary file at '"+Oe+"'";return h.arrayBuffer()}).catch(function(){return ei(Oe)}):Promise.resolve().then(function(){return ei(Oe)})}function tt(){var h={a:ca};function g(G,q){var te=G.exports;e.asm=te,pe=e.asm.ha,Re(pe.buffer),Fe=e.asm.db,ln(e.asm.ia),Ar("wasm-instantiate")}kt("wasm-instantiate");function C(G){g(G.instance)}function T(G){return ti().then(function(q){return WebAssembly.instantiate(q,h)}).then(function(q){return q}).then(G,function(q){J("failed to asynchronously prepare wasm: "+q),Ge(q)})}function M(){return!ee&&typeof WebAssembly.instantiateStreaming=="function"&&!Zr(Oe)&&typeof fetch=="function"?fetch(Oe,{credentials:"same-origin"}).then(function(G){var q=WebAssembly.instantiateStreaming(G,h);return q.then(C,function(te){return J("wasm streaming compile failed: "+te),J("falling back to ArrayBuffer instantiation"),T(C)})}):T(C)}if(e.instantiateWasm)try{var X=e.instantiateWasm(h,g);return X}catch(G){return J("Module.instantiateWasm callback failed with error: "+G),!1}return M().catch(d),{}}function Lt(h){for(;h.length>0;){var g=h.shift();if(typeof g=="function"){g(e);continue}var C=g.func;typeof C=="number"?g.arg===void 0?ri(C)():ri(C)(g.arg):C(g.arg===void 0?null:g.arg)}}var Qt=[];function ri(h){var g=Qt[h];return g||(h>=Qt.length&&(Qt.length=h+1),Qt[h]=g=Fe.get(h)),g}function zt(h){if(h instanceof fr||h=="unwind")return ue;A(1,h)}function Xt(h,g,C,T){Ge("Assertion failed: "+le(h)+", at: "+[g?le(g):"unknown filename",C,T?le(T):"unknown function"])}var V={buffers:[null,[],[]],printChar:function(h,g){var C=V.buffers[h];g===0||g===10?((h===1?we:J)(Pe(C,0)),C.length=0):C.push(g)},varargs:void 0,get:function(){V.varargs+=4;var h=O[V.varargs-4>>>2];return h},getStr:function(h){var g=le(h);return g}};function _n(h,g,C,T,M){}function dn(){J("missing function: $SOCKFS"),Ge(-1)}function ii(){J("missing function: $FS"),Ge(-1)}function dt(h){var g=dn.getSocket(h);if(!g)throw new ii.ErrnoError(8);return g}function Rr(h){return(h&255)+"."+(h>>8&255)+"."+(h>>16&255)+"."+(h>>24&255)}function Ut(h){var g="",C=0,T=0,M=0,X=0,G=0,q=0,te=[h[0]&65535,h[0]>>16,h[1]&65535,h[1]>>16,h[2]&65535,h[2]>>16,h[3]&65535,h[3]>>16],me=!0,ve="";for(q=0;q<5;q++)if(te[q]!==0){me=!1;break}if(me){if(ve=Rr(te[6]|te[7]<<16),te[5]===-1)return g="::ffff:",g+=ve,g;if(te[5]===0)return g="::",ve==="0.0.0.0"&&(ve=""),ve==="0.0.0.1"&&(ve="1"),g+=ve,g}for(C=0;C<8;C++)te[C]===0&&(C-M>1&&(G=0),M=C,G++),G>T&&(T=G,X=C-T+1);for(C=0;C<8;C++){if(T>1&&te[C]===0&&C>=X&&C<X+T){C===X&&(g+=":",X===0&&(g+=":"));continue}g+=Number(Mr(te[C]&65535)).toString(16),g+=C<7?":":""}return g}function ni(h,g){var C=st[h>>>1],T=Mr(et[h+2>>>1]),M;switch(C){case 2:if(g!==16)return{errno:28};M=O[h+4>>>2],M=Rr(M);break;case 10:if(g!==28)return{errno:28};M=[O[h+8>>>2],O[h+12>>>2],O[h+16>>>2],O[h+20>>>2]],M=Ut(M);break;default:return{errno:5}}return{family:C,addr:M,port:T}}function Xe(h){for(var g=h.split("."),C=0;C<4;C++){var T=Number(g[C]);if(isNaN(T))return null;g[C]=T}return(g[0]|g[1]<<8|g[2]<<16|g[3]<<24)>>>0}function rt(h){return parseInt(h)}function Jt(h){var g,C,T,M,X=/^((?=.*::)(?!.*::.+::)(::)?([\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,G=[];if(!X.test(h))return null;if(h==="::")return[0,0,0,0,0,0,0,0];for(h.startsWith("::")?h=h.replace("::","Z:"):h=h.replace("::",":Z:"),h.indexOf(".")>0?(h=h.replace(new RegExp("[.]","g"),":"),g=h.split(":"),g[g.length-4]=rt(g[g.length-4])+rt(g[g.length-3])*256,g[g.length-3]=rt(g[g.length-2])+rt(g[g.length-1])*256,g=g.slice(0,g.length-2)):g=h.split(":"),T=0,M=0,C=0;C<g.length;C++)if(typeof g[C]=="string")if(g[C]==="Z"){for(M=0;M<8-g.length+1;M++)G[C+M]=0;T=M-1}else G[C+T]=lr(parseInt(g[C],16));else G[C+T]=g[C];return[G[1]<<16|G[0],G[3]<<16|G[2],G[5]<<16|G[4],G[7]<<16|G[6]]}var it={address_map:{id:1,addrs:{},names:{}},lookup_name:function(h){var g=Xe(h);if(g!==null||(g=Jt(h),g!==null))return h;var C;if(it.address_map.addrs[h])C=it.address_map.addrs[h];else{var T=it.address_map.id++;ae(T<65535,"exceeded max address mappings of 65535"),C="172.29."+(T&255)+"."+(T&65280),it.address_map.names[C]=h,it.address_map.addrs[h]=C}return C},lookup_addr:function(h){return it.address_map.names[h]?it.address_map.names[h]:null}};function ai(h,g,C){if(C&&h===0)return null;var T=ni(h,g);if(T.errno)throw new ii.ErrnoError(T.errno);return T.addr=it.lookup_addr(T.addr)||T.addr,T}function pn(h,g,C){var T=dt(h),M=ai(g,C);return T.sock_ops.bind(T,M.addr,M.port),0}function yn(h,g,C){var T=dt(h),M=ai(g,C);return T.sock_ops.connect(T,M.addr,M.port),0}function hn(h,g,C,T){return g=V.getStr(g),g=V.calculateAt(h,g),V.doAccess(g,C)}function mn(h,g,C){return V.varargs=C,0}function vn(h,g){}function gn(h,g,C){}function bn(h,g,C){}function si(h,g){se.fill(0,h,h+g)}function Tr(h,g,C,T,M){switch(g){case 2:C=Xe(C),si(h,16),M&&(O[M>>>2]=16),st[h>>>1]=g,O[h+4>>>2]=C,st[h+2>>>1]=lr(T);break;case 10:C=Jt(C),si(h,28),M&&(O[M>>>2]=28),O[h>>>2]=g,O[h+8>>>2]=C[0],O[h+12>>>2]=C[1],O[h+16>>>2]=C[2],O[h+20>>>2]=C[3],st[h+2>>>1]=lr(T);break;default:return 5}return 0}function jn(h,g,C){var T=dt(h);if(!T.daddr)return-53;var M=Tr(g,T.family,it.lookup_name(T.daddr),T.dport,C);return 0}function He(h,g,C,T,M){var X=dt(h);return g===1&&C===4?(O[T>>>2]=X.error,O[M>>>2]=4,X.error=null,0):-50}function wn(h,g,C){return V.varargs=C,0}function kn(h,g){}function oi(h,g,C){}function Ht(h,g,C,T){}function Dr(h,g,C,T){V.varargs=T}function ui(h,g,C,T,M,X){var G=dt(h),q=G.sock_ops.recvmsg(G,C);if(!q)return 0;if(M)var te=Tr(M,G.family,it.lookup_name(q.addr),q.port,X);return se.set(q.buffer,g>>>0),q.buffer.byteLength}function li(h,g,C,T){}function Zt(h){}function er(h,g,C,T,M,X){}function Pr(h,g,C){}function nt(h,g){}function ci(h,g,C){}function Cn(h){}var fi="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function Sn(h,g){Ge(fi)}function En(h,g){Ge(fi)}function An(){return Date.now()}var Rn=!0;function Tn(){return Rn}function _i(){Ge("")}function xr(h,g){return globalThis.DUCKDB_RUNTIME.createDirectory(e,h,g)}function Dn(h,g){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,h,g)}function Pn(h,g){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,h,g)}function xn(h,g){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,h,g)}function On(h){return globalThis.DUCKDB_RUNTIME.closeFile(e,h)}function Fn(h,g){return globalThis.DUCKDB_RUNTIME.checkFile(e,h,g)}function Nn(h){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,h)}function Mn(h,g,C,T){return globalThis.DUCKDB_RUNTIME.moveFile(e,h,g,C,T)}function In(h,g){return globalThis.DUCKDB_RUNTIME.openFile(e,h,g)}function Bn(h,g,C,T){return globalThis.DUCKDB_RUNTIME.readFile(e,h,g,C,T)}function Ln(h,g){return globalThis.DUCKDB_RUNTIME.truncateFile(e,h,g)}function Un(h,g,C,T){return globalThis.DUCKDB_RUNTIME.writeFile(e,h,g,C,T)}function Hn(h,g){return globalThis.DUCKDB_RUNTIME.glob(e,h,g)}function qn(h){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,h)}function Wn(h,g,C,T,M,X){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,h,g,C,T,M,X)}function di(){return 4294901760}var tr;U?tr=()=>{var h=process.hrtime();return h[0]*1e3+h[1]/1e6}:tr=()=>performance.now();function $n(h,g,C){se.copyWithin(h>>>0,g>>>0,g+C>>>0)}function Gn(h){try{return pe.grow(h-bt.byteLength+65535>>>16),Re(pe.buffer),1}catch{}}function Kn(h){var g=se.length;h=h>>>0;var C=di();if(h>C)return!1;let T=(te,me)=>te+(me-te%me)%me;for(var M=1;M<=4;M*=2){var X=g*(1+.2/M);X=Math.min(X,h+100663296);var G=Math.min(C,T(Math.max(h,X),65536)),q=Gn(G);if(q)return!0}return!1}var Or={};function Vn(){return S||"./this.program"}function qt(){if(!qt.strings){var h=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",g={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:h,_:Vn()};for(var C in Or)Or[C]===void 0?delete g[C]:g[C]=Or[C];var T=[];for(var C in g)T.push(C+"="+g[C]);qt.strings=T}return qt.strings}function Yn(h,g){var C=0;return qt().forEach(function(T,M){var X=g+C;O[h+M*4>>>2]=X,It(T,X),C+=T.length+1}),0}function Qn(h,g){var C=qt();O[h>>>2]=C.length;var T=0;return C.forEach(function(M){T+=M.length+1}),O[g>>>2]=T,0}function zn(h){return 0}function Xn(h,g,C,T,M,X){var G=V.getStreamFromFD(h),q=V.doReadv(G,g,C,T);return O[X>>>2]=q,0}function Jn(h,g,C,T,M,X){var G=V.getStreamFromFD(h),q=V.doWritev(G,g,C,T);return O[X>>>2]=q,0}function Zn(h,g,C,T){var M=V.getStreamFromFD(h),X=V.doReadv(M,g,C);return O[T>>>2]=X,0}function ea(h,g,C,T,M){}function ta(h){var g=V.getStreamFromFD(h);return g.stream_ops&&g.stream_ops.fsync?-g.stream_ops.fsync(g):0}function ra(h,g,C,T){for(var M=0,X=0;X<C;X++){var G=O[g>>>2],q=O[g+4>>>2];g+=8;for(var te=0;te<q;te++)V.printChar(h,se[G+te>>>0]);M+=q}return O[T>>>2]=M,0}function ia(h,g,C,T){var M=0,X=0,G=0,q=0,te=0,me=0,ve;function Ke(Se,ft,Ie,b,j,w){var L,re,Te,Ue;return re=Se===10?28:16,j=Se===10?Ut(j):Rr(j),L=Ir(re),Ue=Tr(L,Se,j,w),ae(!Ue),Te=Ir(32),O[Te+4>>>2]=Se,O[Te+8>>>2]=ft,O[Te+12>>>2]=Ie,O[Te+24>>>2]=b,O[Te+20>>>2]=L,Se===10?O[Te+16>>>2]=28:O[Te+16>>>2]=16,O[Te+28>>>2]=0,Te}if(C&&(G=O[C>>>2],q=O[C+4>>>2],te=O[C+8>>>2],me=O[C+12>>>2]),te&&!me&&(me=te===2?17:6),!te&&me&&(te=me===17?2:1),me===0&&(me=6),te===0&&(te=1),!h&&!g)return-2;if(G&-1088||C!==0&&O[C>>>2]&2&&!h)return-1;if(G&32)return-2;if(te!==0&&te!==1&&te!==2)return-7;if(q!==0&&q!==2&&q!==10)return-6;if(g&&(g=le(g),X=parseInt(g,10),isNaN(X)))return G&1024?-2:-8;if(!h)return q===0&&(q=2),(G&1)===0&&(q===2?M=ur(2130706433):M=[0,0,0,1]),ve=Ke(q,te,me,null,M,X),O[T>>>2]=ve,0;if(h=le(h),M=Xe(h),M!==null)if(q===0||q===2)q=2;else if(q===10&&G&8)M=[0,0,ur(65535),M],q=10;else return-2;else if(M=Jt(h),M!==null)if(q===0||q===10)q=10;else return-2;return M!=null?(ve=Ke(q,te,me,h,M,X),O[T>>>2]=ve,0):G&4?-2:(h=it.lookup_name(h),M=Xe(h),q===0?q=2:q===10&&(M=[0,0,ur(65535),M]),ve=Ke(q,te,me,null,M,X),O[T>>>2]=ve,0)}function na(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var h=new Uint8Array(1);return function(){return crypto.getRandomValues(h),h[0]}}else if(U)try{var g=require("crypto");return function(){return g.randomBytes(1)[0]}}catch{}return function(){Ge("randomDevice")}}function rr(h,g){rr.randomDevice||(rr.randomDevice=na());for(var C=0;C<g;C++)ze[h+C>>>0]=rr.randomDevice();return 0}function aa(h,g,C,T,M,X,G){var q=ni(h,g);if(q.errno)return-6;var te=q.port,me=q.addr,ve=!1;if(C&&T){var Ke;if(G&1||!(Ke=it.lookup_addr(me))){if(G&8)return-2}else me=Ke;var Se=$e(me,C,T);Se+1>=T&&(ve=!0)}if(M&&X){te=""+te;var Se=$e(te,M,X);Se+1>=X&&(ve=!0)}return ve?-12:0}function ir(h){return h%4===0&&(h%100!==0||h%400===0)}function sa(h,g){for(var C=0,T=0;T<=g;C+=h[T++]);return C}var Fr=[31,29,31,30,31,30,31,31,30,31,30,31],nr=[31,28,31,30,31,30,31,31,30,31,30,31];function oa(h,g){for(var C=new Date(h.getTime());g>0;){var T=ir(C.getFullYear()),M=C.getMonth(),X=(T?Fr:nr)[M];if(g>X-C.getDate())g-=X-C.getDate()+1,C.setDate(1),M<11?C.setMonth(M+1):(C.setMonth(0),C.setFullYear(C.getFullYear()+1));else return C.setDate(C.getDate()+g),C}return C}function ua(h,g,C,T){var M=O[T+40>>>2],X={tm_sec:O[T>>>2],tm_min:O[T+4>>>2],tm_hour:O[T+8>>>2],tm_mday:O[T+12>>>2],tm_mon:O[T+16>>>2],tm_year:O[T+20>>>2],tm_wday:O[T+24>>>2],tm_yday:O[T+28>>>2],tm_isdst:O[T+32>>>2],tm_gmtoff:O[T+36>>>2],tm_zone:M?le(M):""},G=le(C),q={"%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 te in q)G=G.replace(new RegExp(te,"g"),q[te]);var me=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ve=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ke(L,re,Te){for(var Ue=typeof L=="number"?L.toString():L||"";Ue.length<re;)Ue=Te[0]+Ue;return Ue}function Se(L,re){return Ke(L,re,"0")}function ft(L,re){function Te(Wt){return Wt<0?-1:Wt>0?1:0}var Ue;return(Ue=Te(L.getFullYear()-re.getFullYear()))===0&&(Ue=Te(L.getMonth()-re.getMonth()))===0&&(Ue=Te(L.getDate()-re.getDate())),Ue}function Ie(L){switch(L.getDay()){case 0:return new Date(L.getFullYear()-1,11,29);case 1:return L;case 2:return new Date(L.getFullYear(),0,3);case 3:return new Date(L.getFullYear(),0,2);case 4:return new Date(L.getFullYear(),0,1);case 5:return new Date(L.getFullYear()-1,11,31);case 6:return new Date(L.getFullYear()-1,11,30)}}function b(L){var re=oa(new Date(L.tm_year+1900,0,1),L.tm_yday),Te=new Date(re.getFullYear(),0,4),Ue=new Date(re.getFullYear()+1,0,4),Wt=Ie(Te),gi=Ie(Ue);return ft(Wt,re)<=0?ft(gi,re)<=0?re.getFullYear()+1:re.getFullYear():re.getFullYear()-1}var j={"%a":function(L){return me[L.tm_wday].substring(0,3)},"%A":function(L){return me[L.tm_wday]},"%b":function(L){return ve[L.tm_mon].substring(0,3)},"%B":function(L){return ve[L.tm_mon]},"%C":function(L){var re=L.tm_year+1900;return Se(re/100|0,2)},"%d":function(L){return Se(L.tm_mday,2)},"%e":function(L){return Ke(L.tm_mday,2," ")},"%g":function(L){return b(L).toString().substring(2)},"%G":function(L){return b(L)},"%H":function(L){return Se(L.tm_hour,2)},"%I":function(L){var re=L.tm_hour;return re==0?re=12:re>12&&(re-=12),Se(re,2)},"%j":function(L){return Se(L.tm_mday+sa(ir(L.tm_year+1900)?Fr:nr,L.tm_mon-1),3)},"%m":function(L){return Se(L.tm_mon+1,2)},"%M":function(L){return Se(L.tm_min,2)},"%n":function(){return`
|
|
4
|
+
`},"%p":function(L){return L.tm_hour>=0&&L.tm_hour<12?"AM":"PM"},"%S":function(L){return Se(L.tm_sec,2)},"%t":function(){return" "},"%u":function(L){return L.tm_wday||7},"%U":function(L){var re=L.tm_yday+7-L.tm_wday;return Se(Math.floor(re/7),2)},"%V":function(L){var re=Math.floor((L.tm_yday+7-(L.tm_wday+6)%7)/7);if((L.tm_wday+371-L.tm_yday-2)%7<=2&&re++,re){if(re==53){var Ue=(L.tm_wday+371-L.tm_yday)%7;Ue!=4&&(Ue!=3||!ir(L.tm_year))&&(re=1)}}else{re=52;var Te=(L.tm_wday+7-L.tm_yday-1)%7;(Te==4||Te==5&&ir(L.tm_year%400-1))&&re++}return Se(re,2)},"%w":function(L){return L.tm_wday},"%W":function(L){var re=L.tm_yday+7-(L.tm_wday+6)%7;return Se(Math.floor(re/7),2)},"%y":function(L){return(L.tm_year+1900).toString().substring(2)},"%Y":function(L){return L.tm_year+1900},"%z":function(L){var re=L.tm_gmtoff,Te=re>=0;return re=Math.abs(re)/60,re=re/60*100+re%60,(Te?"+":"-")+String("0000"+re).slice(-4)},"%Z":function(L){return L.tm_zone},"%%":function(){return"%"}};G=G.replace(/%%/g,"\0\0");for(var te in j)G.includes(te)&&(G=G.replace(new RegExp(te,"g"),j[te](X)));G=G.replace(/\0\0/g,"%");var w=Nr(G,!1);return w.length>g?0:(_t(w,h),w.length-1)}function la(h,g,C,T){return ua(h,g,C,T)}function Nr(h,g,C){var T=C>0?C:xe(h)+1,M=new Array(T),X=Qe(h,M,0,M.length);return g&&(M.length=X),M}var ca={a:Xt,P:_n,R:pn,Q:yn,J:hn,b:mn,$:vn,u:gn,X:bn,L:jn,O:He,ba:wn,Y:kn,aa:oi,Z:Ht,o:Dr,M:ui,H:li,m:Zt,N:er,k:Pr,_:nt,n:ci,T:Cn,V:Sn,U:En,da:An,ca:Tn,d:_i,B:xr,C:Dn,z:Pn,A:xn,i:On,x:Fn,E:Nn,y:Mn,F:In,f:Bn,D:Ln,j:Un,w:Hn,g:qn,G:Wn,ea:di,S:tr,fa:$n,ga:Kn,q:Yn,r:Qn,c:zn,t:Xn,s:Jn,h:Zn,v:ea,I:ta,e:ra,l:ia,W:rr,K:aa,p:la},ar=tt(),fa=e.___wasm_call_ctors=function(){return(fa=e.___wasm_call_ctors=e.asm.ia).apply(null,arguments)},_a=e._main=function(){return(_a=e._main=e.asm.ja).apply(null,arguments)},da=e._duckdb_web_fs_glob_add_path=function(){return(da=e._duckdb_web_fs_glob_add_path=e.asm.ka).apply(null,arguments)},pa=e._duckdb_web_clear_response=function(){return(pa=e._duckdb_web_clear_response=e.asm.la).apply(null,arguments)},ya=e._duckdb_web_fail_with=function(){return(ya=e._duckdb_web_fail_with=e.asm.ma).apply(null,arguments)},ha=e._duckdb_web_reset=function(){return(ha=e._duckdb_web_reset=e.asm.na).apply(null,arguments)},ma=e._duckdb_web_connect=function(){return(ma=e._duckdb_web_connect=e.asm.oa).apply(null,arguments)},va=e._duckdb_web_disconnect=function(){return(va=e._duckdb_web_disconnect=e.asm.pa).apply(null,arguments)},ga=e._duckdb_web_flush_files=function(){return(ga=e._duckdb_web_flush_files=e.asm.qa).apply(null,arguments)},ba=e._duckdb_web_flush_file=function(){return(ba=e._duckdb_web_flush_file=e.asm.ra).apply(null,arguments)},ja=e._duckdb_web_open=function(){return(ja=e._duckdb_web_open=e.asm.sa).apply(null,arguments)},wa=e._duckdb_web_get_global_file_info=function(){return(wa=e._duckdb_web_get_global_file_info=e.asm.ta).apply(null,arguments)},sr=e._duckdb_web_collect_file_stats=function(){return(sr=e._duckdb_web_collect_file_stats=e.asm.ua).apply(null,arguments)},ka=e._duckdb_web_export_file_stats=function(){return(ka=e._duckdb_web_export_file_stats=e.asm.va).apply(null,arguments)},Ca=e._duckdb_web_fs_drop_file=function(){return(Ca=e._duckdb_web_fs_drop_file=e.asm.wa).apply(null,arguments)},Sa=e._duckdb_web_fs_drop_files=function(){return(Sa=e._duckdb_web_fs_drop_files=e.asm.xa).apply(null,arguments)},or=e._duckdb_web_fs_glob_file_infos=function(){return(or=e._duckdb_web_fs_glob_file_infos=e.asm.ya).apply(null,arguments)},Ea=e._duckdb_web_fs_get_file_info_by_id=function(){return(Ea=e._duckdb_web_fs_get_file_info_by_id=e.asm.za).apply(null,arguments)},pi=e._duckdb_web_fs_get_file_info_by_name=function(){return(pi=e._duckdb_web_fs_get_file_info_by_name=e.asm.Aa).apply(null,arguments)},yi=e._duckdb_web_fs_set_file_descriptor=function(){return(yi=e._duckdb_web_fs_set_file_descriptor=e.asm.Ba).apply(null,arguments)},Aa=e._duckdb_web_fs_register_file_url=function(){return(Aa=e._duckdb_web_fs_register_file_url=e.asm.Ca).apply(null,arguments)},Ra=e._duckdb_web_fs_register_file_buffer=function(){return(Ra=e._duckdb_web_fs_register_file_buffer=e.asm.Da).apply(null,arguments)},Ta=e._duckdb_web_copy_file_to_buffer=function(){return(Ta=e._duckdb_web_copy_file_to_buffer=e.asm.Ea).apply(null,arguments)},Da=e._duckdb_web_copy_file_to_path=function(){return(Da=e._duckdb_web_copy_file_to_path=e.asm.Fa).apply(null,arguments)},Pa=e._duckdb_web_get_version=function(){return(Pa=e._duckdb_web_get_version=e.asm.Ga).apply(null,arguments)},zo=e._duckdb_web_get_feature_flags=function(){return(zo=e._duckdb_web_get_feature_flags=e.asm.Ha).apply(null,arguments)},xa=e._duckdb_web_tokenize=function(){return(xa=e._duckdb_web_tokenize=e.asm.Ia).apply(null,arguments)},Oa=e._duckdb_web_udf_scalar_create=function(){return(Oa=e._duckdb_web_udf_scalar_create=e.asm.Ja).apply(null,arguments)},Fa=e._duckdb_web_prepared_create=function(){return(Fa=e._duckdb_web_prepared_create=e.asm.Ka).apply(null,arguments)},Na=e._duckdb_web_prepared_close=function(){return(Na=e._duckdb_web_prepared_close=e.asm.La).apply(null,arguments)},Ma=e._duckdb_web_prepared_run=function(){return(Ma=e._duckdb_web_prepared_run=e.asm.Ma).apply(null,arguments)},Ia=e._duckdb_web_prepared_send=function(){return(Ia=e._duckdb_web_prepared_send=e.asm.Na).apply(null,arguments)},Ba=e._duckdb_web_query_run=function(){return(Ba=e._duckdb_web_query_run=e.asm.Oa).apply(null,arguments)},La=e._duckdb_web_pending_query_start=function(){return(La=e._duckdb_web_pending_query_start=e.asm.Pa).apply(null,arguments)},Ua=e._duckdb_web_pending_query_poll=function(){return(Ua=e._duckdb_web_pending_query_poll=e.asm.Qa).apply(null,arguments)},Ha=e._duckdb_web_pending_query_cancel=function(){return(Ha=e._duckdb_web_pending_query_cancel=e.asm.Ra).apply(null,arguments)},qa=e._duckdb_web_query_fetch_results=function(){return(qa=e._duckdb_web_query_fetch_results=e.asm.Sa).apply(null,arguments)},Wa=e._duckdb_web_get_tablenames=function(){return(Wa=e._duckdb_web_get_tablenames=e.asm.Ta).apply(null,arguments)},$a=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return($a=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Ua).apply(null,arguments)},Ga=e._duckdb_web_insert_csv_from_path=function(){return(Ga=e._duckdb_web_insert_csv_from_path=e.asm.Va).apply(null,arguments)},Ka=e._duckdb_web_insert_json_from_path=function(){return(Ka=e._duckdb_web_insert_json_from_path=e.asm.Wa).apply(null,arguments)},ur=e._htonl=function(){return(ur=e._htonl=e.asm.Xa).apply(null,arguments)},lr=e._htons=function(){return(lr=e._htons=e.asm.Ya).apply(null,arguments)},Mr=e._ntohs=function(){return(Mr=e._ntohs=e.asm.Za).apply(null,arguments)},Ir=e._malloc=function(){return(Ir=e._malloc=e.asm._a).apply(null,arguments)},Va=e._free=function(){return(Va=e._free=e.asm.$a).apply(null,arguments)},hi=e.stackSave=function(){return(hi=e.stackSave=e.asm.ab).apply(null,arguments)},mi=e.stackRestore=function(){return(mi=e.stackRestore=e.asm.bb).apply(null,arguments)},Br=e.stackAlloc=function(){return(Br=e.stackAlloc=e.asm.cb).apply(null,arguments)};e.ccall=D;var cr;function fr(h){this.name="ExitStatus",this.message="Program terminated with exit("+h+")",this.status=h}var Ya=!1;Bt=function h(){cr||Lr(),cr||(Bt=h)};function Qa(h){var g=e._main,C=0,T=0;try{var M=g(C,T);return za(M,!0),M}catch(X){return zt(X)}finally{Ya=!0}}function Lr(h){if(h=h||v,wt>0||(Xr(),wt>0))return;function g(){cr||(cr=!0,e.calledRun=!0,!F&&(sn(),Jr(),u(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),vi&&Qa(h),on()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),g()},1)):g()}e.run=Lr;function za(h,g){ue=h,Xa(h)}function Xa(h){ue=h,zr()||(e.onExit&&e.onExit(h),F=!0),A(h,new fr(h))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var vi=!0;return e.noInitialRun&&(vi=!1),Lr(),t.ready}})(),Ip=Kw;var an=class extends Cr{constructor(t,e,u,d=null){super(t,e,u,d)}instantiateImpl(t){return Ip({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};async function Vw(r,t,e){return(await Ti()).wasmExceptions&&r.eh?new an(t,e,r.eh.mainModule):new nn(t,e,r.mvp.mainModule)}0&&(module.exports={ConsoleLogger,DEFAULT_RUNTIME,DuckDBBindingsBase,DuckDBConnection,DuckDBDataProtocol,DuckDBFeature,FileFlags,FileStatistics,JSONTableShape,LogEvent,LogLevel,LogOrigin,LogTopic,NODE_RUNTIME,PACKAGE_NAME,PACKAGE_VERSION,PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_PATCH,PreparedStatement,ResultStreamIterator,StatusCode,VoidLogger,callSRet,copyBuffer,createDuckDB,decodeText,dropResponseBuffers,failWith,getJsDelivrBundles,getLogEventLabel,getLogLevelLabel,getLogOriginLabel,getLogTopicLabel,getPlatformFeatures,isFirefox,isNode,isSafari,readString,selectBundle});
|
|
5
5
|
/*!
|
|
6
6
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
7
7
|
*
|