@duckdb/duckdb-wasm 1.17.0 → 1.20.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 +3 -3
- package/dist/duckdb-browser-blocking.mjs +11 -11
- package/dist/duckdb-browser-blocking.mjs.map +3 -3
- package/dist/duckdb-browser-coi.pthread.worker.js +10 -10
- package/dist/duckdb-browser-coi.pthread.worker.js.map +3 -3
- package/dist/duckdb-browser-coi.worker.js +10 -10
- package/dist/duckdb-browser-coi.worker.js.map +3 -3
- package/dist/duckdb-browser-eh.worker.js +8 -8
- package/dist/duckdb-browser-eh.worker.js.map +3 -3
- package/dist/duckdb-browser-mvp.worker.js +8 -8
- package/dist/duckdb-browser-mvp.worker.js.map +3 -3
- package/dist/duckdb-browser.cjs +1 -1
- package/dist/duckdb-browser.cjs.map +4 -4
- package/dist/duckdb-browser.mjs +1 -1
- package/dist/duckdb-browser.mjs.map +4 -4
- 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 +4 -4
- package/dist/img/duckdb_version_badge.svg +1 -1
- package/dist/tests-browser.js +1454 -1333
- package/dist/tests-browser.js.map +3 -3
- package/dist/tests-node.cjs +1482 -1345
- package/dist/tests-node.cjs.map +4 -4
- package/dist/types/src/bindings/bindings_base.d.ts +4 -4
- package/dist/types/src/bindings/bindings_interface.d.ts +3 -3
- package/dist/types/src/bindings/runtime.d.ts +6 -4
- package/dist/types/src/bindings/runtime_node.d.ts +1 -0
- package/dist/types/src/bindings/web_file.d.ts +2 -6
- package/dist/types/src/parallel/async_bindings.d.ts +3 -2
- package/dist/types/src/parallel/async_bindings_interface.d.ts +3 -2
- package/dist/types/src/parallel/worker_request.d.ts +3 -2
- package/dist/types/src/targets/duckdb-browser-blocking.d.ts +1 -0
- package/dist/types/src/targets/duckdb-node-blocking.d.ts +1 -0
- package/dist/types/src/targets/duckdb.d.ts +1 -1
- package/package.json +11 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var zv=Object.create;var mr=Object.defineProperty;var Xv=Object.getOwnPropertyDescriptor;var Jv=Object.getOwnPropertyNames;var Zv=Object.getPrototypeOf,eg=Object.prototype.hasOwnProperty;var Q=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),tg=(r,t)=>{for(var e in t)mr(r,e,{get:t[e],enumerable:!0})},df=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of Jv(t))!eg.call(r,d)&&d!==e&&mr(r,d,{get:()=>t[d],enumerable:!(o=Xv(t,d))||o.enumerable});return r};var Ni=(r,t,e)=>(e=r!=null?zv(Zv(r)):{},df(t||!r||!r.__esModule?mr(e,"default",{value:r,enumerable:!0}):e,r)),ig=r=>df(mr({},"__esModule",{value:!0}),r);var Cf=Q(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.splitWhen=_i.flatten=void 0;function og(r){return r.reduce((t,e)=>[].concat(t,e),[])}_i.flatten=og;function lg(r,t){let e=[[]],o=0;for(let d of r)t(d)?(o++,e[o]=[]):e[o].push(d);return e}_i.splitWhen=lg});var kf=Q(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.isEnoentCodeError=void 0;function cg(r){return r.code==="ENOENT"}Ar.isEnoentCodeError=cg});var Sf=Q(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.createDirentFromStats=void 0;var Xa=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 fg(r,t){return new Xa(r,t)}Rr.createDirentFromStats=fg});var Ef=Q(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.removeLeadingDotSegment=ht.escape=ht.makeAbsolute=ht.unixify=void 0;var _g=require("path"),dg=2,pg=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function hg(r){return r.replace(/\\/g,"/")}ht.unixify=hg;function yg(r,t){return _g.resolve(r,t)}ht.makeAbsolute=yg;function mg(r){return r.replace(pg,"\\$2")}ht.escape=mg;function vg(r){if(r.charAt(0)==="."){let t=r.charAt(1);if(t==="/"||t==="\\")return r.slice(dg)}return r}ht.removeLeadingDotSegment=vg});var Rf=Q((Iw,Af)=>{Af.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 Pf=Q((Fw,Df)=>{var gg=Rf(),Tf={"{":"}","(":")","[":"]"},bg=function(r){if(r[0]==="!")return!0;for(var t=0,e=-2,o=-2,d=-2,m=-2,g=-2;t<r.length;){if(r[t]==="*"||r[t+1]==="?"&&/[\].+)]/.test(r[t])||o!==-1&&r[t]==="["&&r[t+1]!=="]"&&(o<t&&(o=r.indexOf("]",t)),o>t&&(g===-1||g>o||(g=r.indexOf("\\",t),g===-1||g>o)))||d!==-1&&r[t]==="{"&&r[t+1]!=="}"&&(d=r.indexOf("}",t),d>t&&(g=r.indexOf("\\",t),g===-1||g>d))||m!==-1&&r[t]==="("&&r[t+1]==="?"&&/[:!=]/.test(r[t+2])&&r[t+3]!==")"&&(m=r.indexOf(")",t),m>t&&(g=r.indexOf("\\",t),g===-1||g>m))||e!==-1&&r[t]==="("&&r[t+1]!=="|"&&(e<t&&(e=r.indexOf("|",t)),e!==-1&&r[e+1]!==")"&&(m=r.indexOf(")",e),m>e&&(g=r.indexOf("\\",e),g===-1||g>m))))return!0;if(r[t]==="\\"){var S=r[t+1];t+=2;var A=Tf[S];if(A){var N=r.indexOf(A,t);N!==-1&&(t=N+1)}if(r[t]==="!")return!0}else t++}return!1},jg=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 o=Tf[e];if(o){var d=r.indexOf(o,t);d!==-1&&(t=d+1)}if(r[t]==="!")return!0}else t++}return!1};Df.exports=function(t,e){if(typeof t!="string"||t==="")return!1;if(gg(t))return!0;var o=bg;return e&&e.strict===!1&&(o=jg),o(t)}});var Ff=Q((Mw,If)=>{"use strict";var wg=Pf(),Cg=require("path").posix.dirname,kg=require("os").platform()==="win32",Ja="/",Sg=/\\/g,Eg=/[\{\[].*[\}\]]$/,Ag=/(^|[^\\])([\{\[]|\([^\)]+$)/,Rg=/\\([\!\*\?\|\[\]\(\)\{\}])/g;If.exports=function(t,e){var o=Object.assign({flipBackslashes:!0},e);o.flipBackslashes&&kg&&t.indexOf(Ja)<0&&(t=t.replace(Sg,Ja)),Eg.test(t)&&(t+=Ja),t+="a";do t=Cg(t);while(wg(t)||Ag.test(t));return t.replace(Rg,"$1")}});var Tr=Q(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,o)=>o===!1||!lt.isInteger(r)||!lt.isInteger(t)?!1:(Number(t)-Number(r))/Number(e)>=o;lt.escapeNode=(r,t=0,e)=>{let o=r.nodes[t];!o||(e&&o.type===e||o.type==="open"||o.type==="close")&&o.escaped!==!0&&(o.value="\\"+o.value,o.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=o=>{for(let d=0;d<o.length;d++){let m=o[d];Array.isArray(m)?e(m,t):m!==void 0&&t.push(m)}return t};return e(r),t}});var Dr=Q((Ow,xf)=>{"use strict";var Mf=Tr();xf.exports=(r,t={})=>{let e=(o,d={})=>{let m=t.escapeInvalid&&Mf.isInvalidBrace(d),g=o.invalid===!0&&t.escapeInvalid===!0,S="";if(o.value)return(m||g)&&Mf.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let A of o.nodes)S+=e(A);return S};return e(r)}});var Nf=Q((Nw,Of)=>{"use strict";Of.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}});var Gf=Q((Lw,Kf)=>{"use strict";var Lf=Nf(),$t=(r,t,e)=>{if(Lf(r)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||r===t)return String(r);if(Lf(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...e};typeof o.strictZeros=="boolean"&&(o.relaxZeros=o.strictZeros===!1);let d=String(o.relaxZeros),m=String(o.shorthand),g=String(o.capture),S=String(o.wrap),A=r+":"+t+"="+d+m+g+S;if($t.cache.hasOwnProperty(A))return $t.cache[A].result;let N=Math.min(r,t),R=Math.max(r,t);if(Math.abs(N-R)===1){let z=r+"|"+t;return o.capture?`(${z})`:o.wrap===!1?z:`(?:${z})`}let U=Wf(r)||Wf(t),P={min:r,max:t,a:N,b:R},fe=[],G=[];if(U&&(P.isPadded=U,P.maxLen=String(P.max).length),N<0){let z=R<0?Math.abs(R):1;G=Bf(z,Math.abs(N),P,o),N=P.a=0}return R>=0&&(fe=Bf(N,R,P,o)),P.negatives=G,P.positives=fe,P.result=Tg(G,fe,o),o.capture===!0?P.result=`(${P.result})`:o.wrap!==!1&&fe.length+G.length>1&&(P.result=`(?:${P.result})`),$t.cache[A]=P,P.result};function Tg(r,t,e){let o=Za(r,t,"-",!1,e)||[],d=Za(t,r,"",!1,e)||[],m=Za(r,t,"-?",!0,e)||[];return o.concat(m).concat(d).join("|")}function Dg(r,t){let e=1,o=1,d=Hf(r,e),m=new Set([t]);for(;r<=d&&d<=t;)m.add(d),e+=1,d=Hf(r,e);for(d=qf(t+1,o)-1;r<d&&d<=t;)m.add(d),o+=1,d=qf(t+1,o)-1;return m=[...m],m.sort(Fg),m}function Pg(r,t,e){if(r===t)return{pattern:r,count:[],digits:0};let o=Ig(r,t),d=o.length,m="",g=0;for(let S=0;S<d;S++){let[A,N]=o[S];A===N?m+=A:A!=="0"||N!=="9"?m+=Mg(A,N,e):g++}return g&&(m+=e.shorthand===!0?"\\d":"[0-9]"),{pattern:m,count:[g],digits:d}}function Bf(r,t,e,o){let d=Dg(r,t),m=[],g=r,S;for(let A=0;A<d.length;A++){let N=d[A],R=Pg(String(g),String(N),o),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+$f(S.count),g=N+1;continue}e.isPadded&&(U=xg(N,e,o)),R.string=U+R.pattern+$f(R.count),m.push(R),g=N+1,S=R}return m}function Za(r,t,e,o,d){let m=[];for(let g of r){let{string:S}=g;!o&&!Uf(t,"string",S)&&m.push(e+S),o&&Uf(t,"string",S)&&m.push(e+S)}return m}function Ig(r,t){let e=[];for(let o=0;o<r.length;o++)e.push([r[o],t[o]]);return e}function Fg(r,t){return r>t?1:t>r?-1:0}function Uf(r,t,e){return r.some(o=>o[t]===e)}function Hf(r,t){return Number(String(r).slice(0,-t)+"9".repeat(t))}function qf(r,t){return r-r%Math.pow(10,t)}function $f(r){let[t=0,e=""]=r;return e||t>1?`{${t+(e?","+e:"")}}`:""}function Mg(r,t,e){return`[${r}${t-r===1?"":"-"}${t}]`}function Wf(r){return/^-?(0+)\d/.test(r)}function xg(r,t,e){if(!t.isPadded)return r;let o=Math.abs(t.maxLen-String(r).length),d=e.relaxZeros!==!1;switch(o){case 0:return"";case 1:return d?"0?":"0";case 2:return d?"0{0,2}":"00";default:return d?`0{0,${o}}`:`0{${o}}`}}$t.cache={};$t.clearCache=()=>$t.cache={};Kf.exports=$t});var is=Q((Bw,e_)=>{"use strict";var Og=require("util"),Qf=Gf(),Vf=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),Ng=r=>t=>r===!0?Number(t):String(t),es=r=>typeof r=="number"||typeof r=="string"&&r!=="",Li=r=>Number.isInteger(+r),ts=r=>{let t=`${r}`,e=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++e]==="0";);return e>0},Lg=(r,t,e)=>typeof r=="string"||typeof t=="string"?!0:e.stringify===!0,Bg=(r,t,e)=>{if(t>0){let o=r[0]==="-"?"-":"";o&&(r=r.slice(1)),r=o+r.padStart(o?t-1:t,"0")}return e===!1?String(r):r},Yf=(r,t)=>{let e=r[0]==="-"?"-":"";for(e&&(r=r.slice(1),t--);r.length<t;)r="0"+r;return e?"-"+r:r},Ug=(r,t)=>{r.negatives.sort((g,S)=>g<S?-1:g>S?1:0),r.positives.sort((g,S)=>g<S?-1:g>S?1:0);let e=t.capture?"":"?:",o="",d="",m;return r.positives.length&&(o=r.positives.join("|")),r.negatives.length&&(d=`-(${e}${r.negatives.join("|")})`),o&&d?m=`${o}|${d}`:m=o||d,t.wrap?`(${e}${m})`:m},zf=(r,t,e,o)=>{if(e)return Qf(r,t,{wrap:!1,...o});let d=String.fromCharCode(r);if(r===t)return d;let m=String.fromCharCode(t);return`[${d}-${m}]`},Xf=(r,t,e)=>{if(Array.isArray(r)){let o=e.wrap===!0,d=e.capture?"":"?:";return o?`(${d}${r.join("|")})`:r.join("|")}return Qf(r,t,e)},Jf=(...r)=>new RangeError("Invalid range arguments: "+Og.inspect(...r)),Zf=(r,t,e)=>{if(e.strictRanges===!0)throw Jf([r,t]);return[]},Hg=(r,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${r}" to be a number`);return[]},qg=(r,t,e=1,o={})=>{let d=Number(r),m=Number(t);if(!Number.isInteger(d)||!Number.isInteger(m)){if(o.strictRanges===!0)throw Jf([r,t]);return[]}d===0&&(d=0),m===0&&(m=0);let g=d>m,S=String(r),A=String(t),N=String(e);e=Math.max(Math.abs(e),1);let R=ts(S)||ts(A)||ts(N),U=R?Math.max(S.length,A.length,N.length):0,P=R===!1&&Lg(r,t,o)===!1,fe=o.transform||Ng(P);if(o.toRegex&&e===1)return zf(Yf(r,U),Yf(t,U),!0,o);let G={negatives:[],positives:[]},z=be=>G[be<0?"negatives":"positives"].push(Math.abs(be)),Z=[],ue=0;for(;g?d>=m:d<=m;)o.toRegex===!0&&e>1?z(d):Z.push(Bg(fe(d,ue),U,P)),d=g?d-e:d+e,ue++;return o.toRegex===!0?e>1?Ug(G,o):Xf(Z,null,{wrap:!1,...o}):Z},$g=(r,t,e=1,o={})=>{if(!Li(r)&&r.length>1||!Li(t)&&t.length>1)return Zf(r,t,o);let d=o.transform||(P=>String.fromCharCode(P)),m=`${r}`.charCodeAt(0),g=`${t}`.charCodeAt(0),S=m>g,A=Math.min(m,g),N=Math.max(m,g);if(o.toRegex&&e===1)return zf(A,N,!1,o);let R=[],U=0;for(;S?m>=g:m<=g;)R.push(d(m,U)),m=S?m-e:m+e,U++;return o.toRegex===!0?Xf(R,null,{wrap:!1,options:o}):R},Pr=(r,t,e,o={})=>{if(t==null&&es(r))return[r];if(!es(r)||!es(t))return Zf(r,t,o);if(typeof e=="function")return Pr(r,t,1,{transform:e});if(Vf(e))return Pr(r,t,0,e);let d={...o};return d.capture===!0&&(d.wrap=!0),e=e||d.step||1,Li(e)?Li(r)&&Li(t)?qg(r,t,e,d):$g(r,t,Math.max(Math.abs(e),1),d):e!=null&&!Vf(e)?Hg(e,d):Pr(r,t,1,e)};e_.exports=Pr});var r_=Q((Uw,i_)=>{"use strict";var Wg=is(),t_=Tr(),Kg=(r,t={})=>{let e=(o,d={})=>{let m=t_.isInvalidBrace(d),g=o.invalid===!0&&t.escapeInvalid===!0,S=m===!0||g===!0,A=t.escapeInvalid===!0?"\\":"",N="";if(o.isOpen===!0||o.isClose===!0)return A+o.value;if(o.type==="open")return S?A+o.value:"(";if(o.type==="close")return S?A+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":S?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let R=t_.reduce(o.nodes),U=Wg(...R,{...t,wrap:!1,toRegex:!0});if(U.length!==0)return R.length>1&&U.length>1?`(${U})`:U}if(o.nodes)for(let R of o.nodes)N+=e(R,o);return N};return e(r)};i_.exports=Kg});var s_=Q((Hw,a_)=>{"use strict";var Gg=is(),n_=Dr(),di=Tr(),Wt=(r="",t="",e=!1)=>{let o=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return e?di.flatten(t).map(d=>`{${d}}`):t;for(let d of r)if(Array.isArray(d))for(let m of d)o.push(Wt(m,t,e));else for(let m of t)e===!0&&typeof m=="string"&&(m=`{${m}}`),o.push(Array.isArray(m)?Wt(d,m,e):d+m);return di.flatten(o)},Vg=(r,t={})=>{let e=t.rangeLimit===void 0?1e3:t.rangeLimit,o=(d,m={})=>{d.queue=[];let g=m,S=m.queue;for(;g.type!=="brace"&&g.type!=="root"&&g.parent;)g=g.parent,S=g.queue;if(d.invalid||d.dollar){S.push(Wt(S.pop(),n_(d,t)));return}if(d.type==="brace"&&d.invalid!==!0&&d.nodes.length===2){S.push(Wt(S.pop(),["{}"]));return}if(d.nodes&&d.ranges>0){let U=di.reduce(d.nodes);if(di.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=Gg(...U,t);P.length===0&&(P=n_(d,t)),S.push(Wt(S.pop(),P)),d.nodes=[];return}let A=di.encloseBrace(d),N=d.queue,R=d;for(;R.type!=="brace"&&R.type!=="root"&&R.parent;)R=R.parent,N=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&&N.push(""),N.push("");continue}if(P.type==="close"){S.push(Wt(S.pop(),N,A));continue}if(P.value&&P.type!=="open"){N.push(Wt(N.pop(),P.value));continue}P.nodes&&o(P,d)}return N};return di.flatten(o(r))};a_.exports=Vg});var o_=Q((qw,u_)=>{"use strict";u_.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 d_=Q(($w,__)=>{"use strict";var Yg=Dr(),{MAX_LENGTH:l_,CHAR_BACKSLASH:rs,CHAR_BACKTICK:Qg,CHAR_COMMA:zg,CHAR_DOT:Xg,CHAR_LEFT_PARENTHESES:Jg,CHAR_RIGHT_PARENTHESES:Zg,CHAR_LEFT_CURLY_BRACE:eb,CHAR_RIGHT_CURLY_BRACE:tb,CHAR_LEFT_SQUARE_BRACKET:c_,CHAR_RIGHT_SQUARE_BRACKET:f_,CHAR_DOUBLE_QUOTE:ib,CHAR_SINGLE_QUOTE:rb,CHAR_NO_BREAK_SPACE:nb,CHAR_ZERO_WIDTH_NOBREAK_SPACE:ab}=o_(),sb=(r,t={})=>{if(typeof r!="string")throw new TypeError("Expected a string");let e=t||{},o=typeof e.maxLength=="number"?Math.min(l_,e.maxLength):l_;if(r.length>o)throw new SyntaxError(`Input length (${r.length}), exceeds max characters (${o})`);let d={type:"root",input:r,nodes:[]},m=[d],g=d,S=d,A=0,N=r.length,R=0,U=0,P,fe={},G=()=>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 g.nodes.push(Z),Z.parent=g,Z.prev=S,S=Z,Z};for(z({type:"bos"});R<N;)if(g=m[m.length-1],P=G(),!(P===ab||P===nb)){if(P===rs){z({type:"text",value:(t.keepEscaping?P:"")+G()});continue}if(P===f_){z({type:"text",value:"\\"+P});continue}if(P===c_){A++;let Z=!0,ue;for(;R<N&&(ue=G());){if(P+=ue,ue===c_){A++;continue}if(ue===rs){P+=G();continue}if(ue===f_&&(A--,A===0))break}z({type:"text",value:P});continue}if(P===Jg){g=z({type:"paren",nodes:[]}),m.push(g),z({type:"text",value:P});continue}if(P===Zg){if(g.type!=="paren"){z({type:"text",value:P});continue}g=m.pop(),z({type:"text",value:P}),g=m[m.length-1];continue}if(P===ib||P===rb||P===Qg){let Z=P,ue;for(t.keepQuotes!==!0&&(P="");R<N&&(ue=G());){if(ue===rs){P+=ue+G();continue}if(ue===Z){t.keepQuotes===!0&&(P+=ue);break}P+=ue}z({type:"text",value:P});continue}if(P===eb){U++;let Z=S.value&&S.value.slice(-1)==="$"||g.dollar===!0;g=z({type:"brace",open:!0,close:!1,dollar:Z,depth:U,commas:0,ranges:0,nodes:[]}),m.push(g),z({type:"open",value:P});continue}if(P===tb){if(g.type!=="brace"){z({type:"text",value:P});continue}let Z="close";g=m.pop(),g.close=!0,z({type:Z,value:P}),U--,g=m[m.length-1];continue}if(P===zg&&U>0){if(g.ranges>0){g.ranges=0;let Z=g.nodes.shift();g.nodes=[Z,{type:"text",value:Yg(g)}]}z({type:"comma",value:P}),g.commas++;continue}if(P===Xg&&U>0&&g.commas===0){let Z=g.nodes;if(U===0||Z.length===0){z({type:"text",value:P});continue}if(S.type==="dot"){if(g.range=[],S.value+=P,S.type="range",g.nodes.length!==3&&g.nodes.length!==5){g.invalid=!0,g.ranges=0,S.type="text";continue}g.ranges++,g.args=[];continue}if(S.type==="range"){Z.pop();let ue=Z[Z.length-1];ue.value+=S.value+P,S=ue,g.ranges--;continue}z({type:"dot",value:P});continue}z({type:"text",value:P})}do if(g=m.pop(),g.type!=="root"){g.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=m[m.length-1],ue=Z.nodes.indexOf(g);Z.nodes.splice(ue,1,...g.nodes)}while(m.length>0);return z({type:"eos"}),d};__.exports=sb});var y_=Q((Ww,h_)=>{"use strict";var p_=Dr(),ub=r_(),ob=s_(),lb=d_(),ut=(r,t={})=>{let e=[];if(Array.isArray(r))for(let o of r){let d=ut.create(o,t);Array.isArray(d)?e.push(...d):e.push(d)}else e=[].concat(ut.create(r,t));return t&&t.expand===!0&&t.nodupes===!0&&(e=[...new Set(e)]),e};ut.parse=(r,t={})=>lb(r,t);ut.stringify=(r,t={})=>p_(typeof r=="string"?ut.parse(r,t):r,t);ut.compile=(r,t={})=>(typeof r=="string"&&(r=ut.parse(r,t)),ub(r,t));ut.expand=(r,t={})=>{typeof r=="string"&&(r=ut.parse(r,t));let e=ob(r,t);return t.noempty===!0&&(e=e.filter(Boolean)),t.nodupes===!0&&(e=[...new Set(e)]),e};ut.create=(r,t={})=>r===""||r.length<3?[r]:t.expand!==!0?ut.compile(r,t):ut.expand(r,t);h_.exports=ut});var Bi=Q((Kw,j_)=>{"use strict";var cb=require("path"),yt="\\\\/",m_=`[^${yt}]`,kt="\\.",fb="\\+",_b="\\?",Ir="\\/",db="(?=.)",v_="[^/]",ns=`(?:${Ir}|$)`,g_=`(?:^|${Ir})`,as=`${kt}{1,2}${ns}`,pb=`(?!${kt})`,hb=`(?!${g_}${as})`,yb=`(?!${kt}{0,1}${ns})`,mb=`(?!${as})`,vb=`[^.${Ir}]`,gb=`${v_}*?`,b_={DOT_LITERAL:kt,PLUS_LITERAL:fb,QMARK_LITERAL:_b,SLASH_LITERAL:Ir,ONE_CHAR:db,QMARK:v_,END_ANCHOR:ns,DOTS_SLASH:as,NO_DOT:pb,NO_DOTS:hb,NO_DOT_SLASH:yb,NO_DOTS_SLASH:mb,QMARK_NO_DOT:vb,STAR:gb,START_ANCHOR:g_},bb={...b_,SLASH_LITERAL:`[${yt}]`,QMARK:m_,STAR:`${m_}*?`,DOTS_SLASH:`${kt}{1,2}(?:[${yt}]|$)`,NO_DOT:`(?!${kt})`,NO_DOTS:`(?!(?:^|[${yt}])${kt}{1,2}(?:[${yt}]|$))`,NO_DOT_SLASH:`(?!${kt}{0,1}(?:[${yt}]|$))`,NO_DOTS_SLASH:`(?!${kt}{1,2}(?:[${yt}]|$))`,QMARK_NO_DOT:`[^.${yt}]`,START_ANCHOR:`(?:^|[${yt}])`,END_ANCHOR:`(?:[${yt}]|$)`},jb={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"};j_.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:jb,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:cb.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?bb:b_}}});var Ui=Q(at=>{"use strict";var wb=require("path"),Cb=process.platform==="win32",{REGEX_BACKSLASH:kb,REGEX_REMOVE_BACKSLASH:Sb,REGEX_SPECIAL_CHARS:Eb,REGEX_SPECIAL_CHARS_GLOBAL:Ab}=Bi();at.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r);at.hasRegexChars=r=>Eb.test(r);at.isRegexChar=r=>r.length===1&&at.hasRegexChars(r);at.escapeRegex=r=>r.replace(Ab,"\\$1");at.toPosixSlashes=r=>r.replace(kb,"/");at.removeBackslashes=r=>r.replace(Sb,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:Cb===!0||wb.sep==="\\";at.escapeLast=(r,t,e)=>{let o=r.lastIndexOf(t,e);return o===-1?r:r[o-1]==="\\"?at.escapeLast(r,t,o-1):`${r.slice(0,o)}\\${r.slice(o)}`};at.removePrefix=(r,t={})=>{let e=r;return e.startsWith("./")&&(e=e.slice(2),t.prefix="./"),e};at.wrapOutput=(r,t={},e={})=>{let o=e.contains?"":"^",d=e.contains?"":"$",m=`${o}(?:${r})${d}`;return t.negated===!0&&(m=`(?:^(?!${m}).*$)`),m}});var T_=Q((Vw,R_)=>{"use strict";var w_=Ui(),{CHAR_ASTERISK:ss,CHAR_AT:Rb,CHAR_BACKWARD_SLASH:Hi,CHAR_COMMA:Tb,CHAR_DOT:us,CHAR_EXCLAMATION_MARK:os,CHAR_FORWARD_SLASH:A_,CHAR_LEFT_CURLY_BRACE:ls,CHAR_LEFT_PARENTHESES:cs,CHAR_LEFT_SQUARE_BRACKET:Db,CHAR_PLUS:Pb,CHAR_QUESTION_MARK:C_,CHAR_RIGHT_CURLY_BRACE:Ib,CHAR_RIGHT_PARENTHESES:k_,CHAR_RIGHT_SQUARE_BRACKET:Fb}=Bi(),S_=r=>r===A_||r===Hi,E_=r=>{r.isPrefix!==!0&&(r.depth=r.isGlobstar?1/0:1)},Mb=(r,t)=>{let e=t||{},o=r.length-1,d=e.parts===!0||e.scanToEnd===!0,m=[],g=[],S=[],A=r,N=-1,R=0,U=0,P=!1,fe=!1,G=!1,z=!1,Z=!1,ue=!1,be=!1,ye=!1,Ae=!1,ne=!1,we=0,J,ee,H={value:"",depth:0,isGlob:!1},pe=()=>N>=o,M=()=>A.charCodeAt(N+1),oe=()=>(J=ee,A.charCodeAt(++N));for(;N<o;){ee=oe();let De;if(ee===Hi){be=H.backslashes=!0,ee=oe(),ee===ls&&(ue=!0);continue}if(ue===!0||ee===ls){for(we++;pe()!==!0&&(ee=oe());){if(ee===Hi){be=H.backslashes=!0,oe();continue}if(ee===ls){we++;continue}if(ue!==!0&&ee===us&&(ee=oe())===us){if(P=H.isBrace=!0,G=H.isGlob=!0,ne=!0,d===!0)continue;break}if(ue!==!0&&ee===Tb){if(P=H.isBrace=!0,G=H.isGlob=!0,ne=!0,d===!0)continue;break}if(ee===Ib&&(we--,we===0)){ue=!1,P=H.isBrace=!0,ne=!0;break}}if(d===!0)continue;break}if(ee===A_){if(m.push(N),g.push(H),H={value:"",depth:0,isGlob:!1},ne===!0)continue;if(J===us&&N===R+1){R+=2;continue}U=N+1;continue}if(e.noext!==!0&&(ee===Pb||ee===Rb||ee===ss||ee===C_||ee===os)===!0&&M()===cs){if(G=H.isGlob=!0,z=H.isExtglob=!0,ne=!0,ee===os&&N===R&&(Ae=!0),d===!0){for(;pe()!==!0&&(ee=oe());){if(ee===Hi){be=H.backslashes=!0,ee=oe();continue}if(ee===k_){G=H.isGlob=!0,ne=!0;break}}continue}break}if(ee===ss){if(J===ss&&(Z=H.isGlobstar=!0),G=H.isGlob=!0,ne=!0,d===!0)continue;break}if(ee===C_){if(G=H.isGlob=!0,ne=!0,d===!0)continue;break}if(ee===Db){for(;pe()!==!0&&(De=oe());){if(De===Hi){be=H.backslashes=!0,oe();continue}if(De===Fb){fe=H.isBracket=!0,G=H.isGlob=!0,ne=!0;break}}if(d===!0)continue;break}if(e.nonegate!==!0&&ee===os&&N===R){ye=H.negated=!0,R++;continue}if(e.noparen!==!0&&ee===cs){if(G=H.isGlob=!0,d===!0){for(;pe()!==!0&&(ee=oe());){if(ee===cs){be=H.backslashes=!0,ee=oe();continue}if(ee===k_){ne=!0;break}}continue}break}if(G===!0){if(ne=!0,d===!0)continue;break}}e.noext===!0&&(z=!1,G=!1);let ae=A,Ce="",D="";R>0&&(Ce=A.slice(0,R),A=A.slice(R),U-=R),ae&&G===!0&&U>0?(ae=A.slice(0,U),D=A.slice(U)):G===!0?(ae="",D=A):ae=A,ae&&ae!==""&&ae!=="/"&&ae!==A&&S_(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),e.unescape===!0&&(D&&(D=w_.removeBackslashes(D)),ae&&be===!0&&(ae=w_.removeBackslashes(ae)));let I={prefix:Ce,input:r,start:R,base:ae,glob:D,isBrace:P,isBracket:fe,isGlob:G,isExtglob:z,isGlobstar:Z,negated:ye,negatedExtglob:Ae};if(e.tokens===!0&&(I.maxDepth=0,S_(ee)||g.push(H),I.tokens=g),e.parts===!0||e.tokens===!0){let De;for(let le=0;le<m.length;le++){let Qe=De?De+1:R,We=m[le],Pe=r.slice(Qe,We);e.tokens&&(le===0&&R!==0?(g[le].isPrefix=!0,g[le].value=Ce):g[le].value=Pe,E_(g[le]),I.maxDepth+=g[le].depth),(le!==0||Pe!=="")&&S.push(Pe),De=We}if(De&&De+1<r.length){let le=r.slice(De+1);S.push(le),e.tokens&&(g[g.length-1].value=le,E_(g[g.length-1]),I.maxDepth+=g[g.length-1].depth)}I.slashes=m,I.parts=S}return I};R_.exports=Mb});var F_=Q((Yw,I_)=>{"use strict";var Fr=Bi(),ot=Ui(),{MAX_LENGTH:Mr,POSIX_REGEX_SOURCE:xb,REGEX_NON_SPECIAL_CHARS:Ob,REGEX_SPECIAL_CHARS_BACKREF:Nb,REPLACEMENTS:D_}=Fr,Lb=(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},pi=(r,t)=>`Missing ${r}: "${t}" - use "\\\\${t}" to match literal characters`,P_=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");r=D_[r]||r;let e={...t},o=typeof e.maxLength=="number"?Math.min(Mr,e.maxLength):Mr,d=r.length;if(d>o)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${o}`);let m={type:"bos",value:"",output:e.prepend||""},g=[m],S=e.capture?"":"?:",A=ot.isWindows(t),N=Fr.globChars(A),R=Fr.extglobChars(N),{DOT_LITERAL:U,PLUS_LITERAL:P,SLASH_LITERAL:fe,ONE_CHAR:G,DOTS_SLASH:z,NO_DOT:Z,NO_DOT_SLASH:ue,NO_DOTS_SLASH:be,QMARK:ye,QMARK_NO_DOT:Ae,STAR:ne,START_ANCHOR:we}=N,J=F=>`(${S}(?:(?!${we}${F.dot?z:U}).)*?)`,ee=e.dot?"":Z,H=e.dot?ye:Ae,pe=e.bash===!0?J(e):ne;e.capture&&(pe=`(${pe})`),typeof e.noext=="boolean"&&(e.noextglob=e.noext);let M={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:g};r=ot.removePrefix(r,M),d=r.length;let oe=[],ae=[],Ce=[],D=m,I,De=()=>M.index===d-1,le=M.peek=(F=1)=>r[M.index+F],Qe=M.advance=()=>r[++M.index]||"",We=()=>r.slice(M.index+1),Pe=(F="",ge=0)=>{M.consumed+=F,M.index+=ge},_t=F=>{M.output+=F.output!=null?F.output:F.value,Pe(F.value)},Mt=()=>{let F=1;for(;le()==="!"&&(le(2)!=="("||le(3)==="?");)Qe(),M.start++,F++;return F%2===0?!1:(M.negated=!0,M.start++,!0)},bt=F=>{M[F]++,Ce.push(F)},ze=F=>{M[F]--,Ce.pop()},se=F=>{if(D.type==="globstar"){let ge=M.braces>0&&(F.type==="comma"||F.type==="brace"),W=F.extglob===!0||oe.length&&(F.type==="pipe"||F.type==="paren");F.type!=="slash"&&F.type!=="paren"&&!ge&&!W&&(M.output=M.output.slice(0,-D.output.length),D.type="star",D.value="*",D.output=pe,M.output+=D.output)}if(oe.length&&F.type!=="paren"&&(oe[oe.length-1].inner+=F.value),(F.value||F.output)&&_t(F),D&&D.type==="text"&&F.type==="text"){D.value+=F.value,D.output=(D.output||"")+F.value;return}F.prev=D,g.push(F),D=F},st=(F,ge)=>{let W={...R[ge],conditions:1,inner:""};W.prev=D,W.parens=M.parens,W.output=M.output;let x=(e.capture?"(":"")+W.open;bt("parens"),se({type:F,value:ge,output:M.output?"":G}),se({type:"paren",extglob:!0,value:Qe(),output:x}),oe.push(W)},et=F=>{let ge=F.close+(e.capture?")":""),W;if(F.type==="negate"){let x=pe;F.inner&&F.inner.length>1&&F.inner.includes("/")&&(x=J(e)),(x!==pe||De()||/^\)+$/.test(We()))&&(ge=F.close=`)$))${x}`),F.inner.includes("*")&&(W=We())&&/^\.[^\\/.]+$/.test(W)&&(ge=F.close=`)${W})${x})`),F.prev.type==="bos"&&(M.negatedExtglob=!0)}se({type:"paren",extglob:!0,value:I,output:ge}),ze("parens")};if(e.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let F=!1,ge=r.replace(Nb,(W,x,Re,qe,Me,jt)=>qe==="\\"?(F=!0,W):qe==="?"?x?x+qe+(Me?ye.repeat(Me.length):""):jt===0?H+(Me?ye.repeat(Me.length):""):ye.repeat(Re.length):qe==="."?U.repeat(Re.length):qe==="*"?x?x+qe+(Me?pe:""):pe:x?W:`\\${W}`);return F===!0&&(e.unescape===!0?ge=ge.replace(/\\/g,""):ge=ge.replace(/\\+/g,W=>W.length%2===0?"\\\\":W?"\\":"")),ge===r&&e.contains===!0?(M.output=r,M):(M.output=ot.wrapOutput(ge,M,t),M)}for(;!De();){if(I=Qe(),I==="\0")continue;if(I==="\\"){let W=le();if(W==="/"&&e.bash!==!0||W==="."||W===";")continue;if(!W){I+="\\",se({type:"text",value:I});continue}let x=/^\\+/.exec(We()),Re=0;if(x&&x[0].length>2&&(Re=x[0].length,M.index+=Re,Re%2!==0&&(I+="\\")),e.unescape===!0?I=Qe():I+=Qe(),M.brackets===0){se({type:"text",value:I});continue}}if(M.brackets>0&&(I!=="]"||D.value==="["||D.value==="[^")){if(e.posix!==!1&&I===":"){let W=D.value.slice(1);if(W.includes("[")&&(D.posix=!0,W.includes(":"))){let x=D.value.lastIndexOf("["),Re=D.value.slice(0,x),qe=D.value.slice(x+2),Me=xb[qe];if(Me){D.value=Re+Me,M.backtrack=!0,Qe(),!m.output&&g.indexOf(D)===1&&(m.output=G);continue}}}(I==="["&&le()!==":"||I==="-"&&le()==="]")&&(I=`\\${I}`),I==="]"&&(D.value==="["||D.value==="[^")&&(I=`\\${I}`),e.posix===!0&&I==="!"&&D.value==="["&&(I="^"),D.value+=I,_t({value:I});continue}if(M.quotes===1&&I!=='"'){I=ot.escapeRegex(I),D.value+=I,_t({value:I});continue}if(I==='"'){M.quotes=M.quotes===1?0:1,e.keepQuotes===!0&&se({type:"text",value:I});continue}if(I==="("){bt("parens"),se({type:"paren",value:I});continue}if(I===")"){if(M.parens===0&&e.strictBrackets===!0)throw new SyntaxError(pi("opening","("));let W=oe[oe.length-1];if(W&&M.parens===W.parens+1){et(oe.pop());continue}se({type:"paren",value:I,output:M.parens?")":"\\)"}),ze("parens");continue}if(I==="["){if(e.nobracket===!0||!We().includes("]")){if(e.nobracket!==!0&&e.strictBrackets===!0)throw new SyntaxError(pi("closing","]"));I=`\\${I}`}else bt("brackets");se({type:"bracket",value:I});continue}if(I==="]"){if(e.nobracket===!0||D&&D.type==="bracket"&&D.value.length===1){se({type:"text",value:I,output:`\\${I}`});continue}if(M.brackets===0){if(e.strictBrackets===!0)throw new SyntaxError(pi("opening","["));se({type:"text",value:I,output:`\\${I}`});continue}ze("brackets");let W=D.value.slice(1);if(D.posix!==!0&&W[0]==="^"&&!W.includes("/")&&(I=`/${I}`),D.value+=I,_t({value:I}),e.literalBrackets===!1||ot.hasRegexChars(W))continue;let x=ot.escapeRegex(D.value);if(M.output=M.output.slice(0,-D.value.length),e.literalBrackets===!0){M.output+=x,D.value=x;continue}D.value=`(${S}${x}|${D.value})`,M.output+=D.value;continue}if(I==="{"&&e.nobrace!==!0){bt("braces");let W={type:"brace",value:I,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};ae.push(W),se(W);continue}if(I==="}"){let W=ae[ae.length-1];if(e.nobrace===!0||!W){se({type:"text",value:I,output:I});continue}let x=")";if(W.dots===!0){let Re=g.slice(),qe=[];for(let Me=Re.length-1;Me>=0&&(g.pop(),Re[Me].type!=="brace");Me--)Re[Me].type!=="dots"&&qe.unshift(Re[Me].value);x=Lb(qe,e),M.backtrack=!0}if(W.comma!==!0&&W.dots!==!0){let Re=M.output.slice(0,W.outputIndex),qe=M.tokens.slice(W.tokensIndex);W.value=W.output="\\{",I=x="\\}",M.output=Re;for(let Me of qe)M.output+=Me.output||Me.value}se({type:"brace",value:I,output:x}),ze("braces"),ae.pop();continue}if(I==="|"){oe.length>0&&oe[oe.length-1].conditions++,se({type:"text",value:I});continue}if(I===","){let W=I,x=ae[ae.length-1];x&&Ce[Ce.length-1]==="braces"&&(x.comma=!0,W="|"),se({type:"comma",value:I,output:W});continue}if(I==="/"){if(D.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",g.pop(),D=m;continue}se({type:"slash",value:I,output:fe});continue}if(I==="."){if(M.braces>0&&D.type==="dot"){D.value==="."&&(D.output=U);let W=ae[ae.length-1];D.type="dots",D.output+=I,D.value+=I,W.dots=!0;continue}if(M.braces+M.parens===0&&D.type!=="bos"&&D.type!=="slash"){se({type:"text",value:I,output:U});continue}se({type:"dot",value:I,output:U});continue}if(I==="?"){if(!(D&&D.value==="(")&&e.noextglob!==!0&&le()==="("&&le(2)!=="?"){st("qmark",I);continue}if(D&&D.type==="paren"){let x=le(),Re=I;if(x==="<"&&!ot.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(D.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(We()))&&(Re=`\\${I}`),se({type:"text",value:I,output:Re});continue}if(e.dot!==!0&&(D.type==="slash"||D.type==="bos")){se({type:"qmark",value:I,output:Ae});continue}se({type:"qmark",value:I,output:ye});continue}if(I==="!"){if(e.noextglob!==!0&&le()==="("&&(le(2)!=="?"||!/[!=<:]/.test(le(3)))){st("negate",I);continue}if(e.nonegate!==!0&&M.index===0){Mt();continue}}if(I==="+"){if(e.noextglob!==!0&&le()==="("&&le(2)!=="?"){st("plus",I);continue}if(D&&D.value==="("||e.regex===!1){se({type:"plus",value:I,output:P});continue}if(D&&(D.type==="bracket"||D.type==="paren"||D.type==="brace")||M.parens>0){se({type:"plus",value:I});continue}se({type:"plus",value:P});continue}if(I==="@"){if(e.noextglob!==!0&&le()==="("&&le(2)!=="?"){se({type:"at",extglob:!0,value:I,output:""});continue}se({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let W=Ob.exec(We());W&&(I+=W[0],M.index+=W[0].length),se({type:"text",value:I});continue}if(D&&(D.type==="globstar"||D.star===!0)){D.type="star",D.star=!0,D.value+=I,D.output=pe,M.backtrack=!0,M.globstar=!0,Pe(I);continue}let F=We();if(e.noextglob!==!0&&/^\([^?]/.test(F)){st("star",I);continue}if(D.type==="star"){if(e.noglobstar===!0){Pe(I);continue}let W=D.prev,x=W.prev,Re=W.type==="slash"||W.type==="bos",qe=x&&(x.type==="star"||x.type==="globstar");if(e.bash===!0&&(!Re||F[0]&&F[0]!=="/")){se({type:"star",value:I,output:""});continue}let Me=M.braces>0&&(W.type==="comma"||W.type==="brace"),jt=oe.length&&(W.type==="pipe"||W.type==="paren");if(!Re&&W.type!=="paren"&&!Me&&!jt){se({type:"star",value:I,output:""});continue}for(;F.slice(0,3)==="/**";){let At=r[M.index+4];if(At&&At!=="/")break;F=F.slice(3),Pe("/**",3)}if(W.type==="bos"&&De()){D.type="globstar",D.value+=I,D.output=J(e),M.output=D.output,M.globstar=!0,Pe(I);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&!qe&&De()){M.output=M.output.slice(0,-(W.output+D.output).length),W.output=`(?:${W.output}`,D.type="globstar",D.output=J(e)+(e.strictSlashes?")":"|$)"),D.value+=I,M.globstar=!0,M.output+=W.output+D.output,Pe(I);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&F[0]==="/"){let At=F[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(W.output+D.output).length),W.output=`(?:${W.output}`,D.type="globstar",D.output=`${J(e)}${fe}|${fe}${At})`,D.value+=I,M.output+=W.output+D.output,M.globstar=!0,Pe(I+Qe()),se({type:"slash",value:"/",output:""});continue}if(W.type==="bos"&&F[0]==="/"){D.type="globstar",D.value+=I,D.output=`(?:^|${fe}|${J(e)}${fe})`,M.output=D.output,M.globstar=!0,Pe(I+Qe()),se({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-D.output.length),D.type="globstar",D.output=J(e),D.value+=I,M.output+=D.output,M.globstar=!0,Pe(I);continue}let ge={type:"star",value:I,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=I,se(ge);continue}(M.index===M.start||D.type==="slash"||D.type==="dot")&&(D.type==="dot"?(M.output+=ue,D.output+=ue):e.dot===!0?(M.output+=be,D.output+=be):(M.output+=ee,D.output+=ee),le()!=="*"&&(M.output+=G,D.output+=G)),se(ge)}for(;M.brackets>0;){if(e.strictBrackets===!0)throw new SyntaxError(pi("closing","]"));M.output=ot.escapeLast(M.output,"["),ze("brackets")}for(;M.parens>0;){if(e.strictBrackets===!0)throw new SyntaxError(pi("closing",")"));M.output=ot.escapeLast(M.output,"("),ze("parens")}for(;M.braces>0;){if(e.strictBrackets===!0)throw new SyntaxError(pi("closing","}"));M.output=ot.escapeLast(M.output,"{"),ze("braces")}if(e.strictSlashes!==!0&&(D.type==="star"||D.type==="bracket")&&se({type:"maybe_slash",value:"",output:`${fe}?`}),M.backtrack===!0){M.output="";for(let F of M.tokens)M.output+=F.output!=null?F.output:F.value,F.suffix&&(M.output+=F.suffix)}return M};P_.fastpaths=(r,t)=>{let e={...t},o=typeof e.maxLength=="number"?Math.min(Mr,e.maxLength):Mr,d=r.length;if(d>o)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${o}`);r=D_[r]||r;let m=ot.isWindows(t),{DOT_LITERAL:g,SLASH_LITERAL:S,ONE_CHAR:A,DOTS_SLASH:N,NO_DOT:R,NO_DOTS:U,NO_DOTS_SLASH:P,STAR:fe,START_ANCHOR:G}=Fr.globChars(m),z=e.dot?U:R,Z=e.dot?P:R,ue=e.capture?"":"?:",be={negated:!1,prefix:""},ye=e.bash===!0?".*?":fe;e.capture&&(ye=`(${ye})`);let Ae=ee=>ee.noglobstar===!0?ye:`(${ue}(?:(?!${G}${ee.dot?N:g}).)*?)`,ne=ee=>{switch(ee){case"*":return`${z}${A}${ye}`;case".*":return`${g}${A}${ye}`;case"*.*":return`${z}${ye}${g}${A}${ye}`;case"*/*":return`${z}${ye}${S}${A}${Z}${ye}`;case"**":return z+Ae(e);case"**/*":return`(?:${z}${Ae(e)}${S})?${Z}${A}${ye}`;case"**/*.*":return`(?:${z}${Ae(e)}${S})?${Z}${ye}${g}${A}${ye}`;case"**/.*":return`(?:${z}${Ae(e)}${S})?${g}${A}${ye}`;default:{let H=/^(.*?)\.(\w+)$/.exec(ee);if(!H)return;let pe=ne(H[1]);return pe?pe+g+H[2]:void 0}}},we=ot.removePrefix(r,be),J=ne(we);return J&&e.strictSlashes!==!0&&(J+=`${S}?`),J};I_.exports=P_});var x_=Q((Qw,M_)=>{"use strict";var Bb=require("path"),Ub=T_(),fs=F_(),_s=Ui(),Hb=Bi(),qb=r=>r&&typeof r=="object"&&!Array.isArray(r),Be=(r,t,e=!1)=>{if(Array.isArray(r)){let R=r.map(P=>Be(P,t,e));return P=>{for(let fe of R){let G=fe(P);if(G)return G}return!1}}let o=qb(r)&&r.tokens&&r.input;if(r===""||typeof r!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let d=t||{},m=_s.isWindows(t),g=o?Be.compileRe(r,t):Be.makeRe(r,t,!1,!0),S=g.state;delete g.state;let A=()=>!1;if(d.ignore){let R={...t,ignore:null,onMatch:null,onResult:null};A=Be(d.ignore,R,e)}let N=(R,U=!1)=>{let{isMatch:P,match:fe,output:G}=Be.test(R,g,t,{glob:r,posix:m}),z={glob:r,state:S,regex:g,posix:m,input:R,output:G,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&&(N.state=S),N};Be.test=(r,t,e,{glob:o,posix:d}={})=>{if(typeof r!="string")throw new TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let m=e||{},g=m.format||(d?_s.toPosixSlashes:null),S=r===o,A=S&&g?g(r):r;return S===!1&&(A=g?g(r):r,S=A===o),(S===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?S=Be.matchBase(r,t,e,d):S=t.exec(A)),{isMatch:Boolean(S),match:S,output:A}};Be.matchBase=(r,t,e,o=_s.isWindows(e))=>(t instanceof RegExp?t:Be.makeRe(t,e)).test(Bb.basename(r));Be.isMatch=(r,t,e)=>Be(t,e)(r);Be.parse=(r,t)=>Array.isArray(r)?r.map(e=>Be.parse(e,t)):fs(r,{...t,fastpaths:!1});Be.scan=(r,t)=>Ub(r,t);Be.compileRe=(r,t,e=!1,o=!1)=>{if(e===!0)return r.output;let d=t||{},m=d.contains?"":"^",g=d.contains?"":"$",S=`${m}(?:${r.output})${g}`;r&&r.negated===!0&&(S=`^(?!${S}).*$`);let A=Be.toRegex(S,t);return o===!0&&(A.state=r),A};Be.makeRe=(r,t={},e=!1,o=!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=fs.fastpaths(r,t)),d.output||(d=fs(r,t)),Be.compileRe(d,t,e,o)};Be.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/$^/}};Be.constants=Hb;M_.exports=Be});var N_=Q((zw,O_)=>{"use strict";O_.exports=x_()});var q_=Q((Xw,H_)=>{"use strict";var B_=require("util"),U_=y_(),mt=N_(),ds=Ui(),L_=r=>r===""||r==="./",xe=(r,t,e)=>{t=[].concat(t),r=[].concat(r);let o=new Set,d=new Set,m=new Set,g=0,S=R=>{m.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&&g++;for(let fe of r){let G=U(fe,!0);!(P?!G.isMatch:G.isMatch)||(P?o.add(G.output):(o.delete(G.output),d.add(G.output)))}}let N=(g===t.length?[...m]:[...d]).filter(R=>!o.has(R));if(e&&N.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 N};xe.match=xe;xe.matcher=(r,t)=>mt(r,t);xe.isMatch=(r,t,e)=>mt(t,e)(r);xe.any=xe.isMatch;xe.not=(r,t,e={})=>{t=[].concat(t).map(String);let o=new Set,d=[],g=xe(r,t,{...e,onResult:S=>{e.onResult&&e.onResult(S),d.push(S.output)}});for(let S of d)g.includes(S)||o.add(S);return[...o]};xe.contains=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${B_.inspect(r)}"`);if(Array.isArray(t))return t.some(o=>xe.contains(r,o,e));if(typeof t=="string"){if(L_(r)||L_(t))return!1;if(r.includes(t)||r.startsWith("./")&&r.slice(2).includes(t))return!0}return xe.isMatch(r,t,{...e,contains:!0})};xe.matchKeys=(r,t,e)=>{if(!ds.isObject(r))throw new TypeError("Expected the first argument to be an object");let o=xe(Object.keys(r),t,e),d={};for(let m of o)d[m]=r[m];return d};xe.some=(r,t,e)=>{let o=[].concat(r);for(let d of[].concat(t)){let m=mt(String(d),e);if(o.some(g=>m(g)))return!0}return!1};xe.every=(r,t,e)=>{let o=[].concat(r);for(let d of[].concat(t)){let m=mt(String(d),e);if(!o.every(g=>m(g)))return!1}return!0};xe.all=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${B_.inspect(r)}"`);return[].concat(t).every(o=>mt(o,e)(r))};xe.capture=(r,t,e)=>{let o=ds.isWindows(e),m=mt.makeRe(String(r),{...e,capture:!0}).exec(o?ds.toPosixSlashes(t):t);if(m)return m.slice(1).map(g=>g===void 0?"":g)};xe.makeRe=(...r)=>mt.makeRe(...r);xe.scan=(...r)=>mt.scan(...r);xe.parse=(r,t)=>{let e=[];for(let o of[].concat(r||[]))for(let d of U_(String(o),t))e.push(mt.parse(d,t));return e};xe.braces=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(r)?[r]:U_(r,t)};xe.braceExpand=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return xe.braces(r,{...t,expand:!0})};H_.exports=xe});var z_=Q(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 $b=require("path"),Wb=Ff(),ps=q_(),$_="**",Kb="\\",Gb=/[*?]|^!/,Vb=/\[[^[]*]/,Yb=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Qb=/[!*+?@]\([^(]*\)/,zb=/,|\.\./;function W_(r,t={}){return!K_(r,t)}ce.isStaticPattern=W_;function K_(r,t={}){return r===""?!1:!!(t.caseSensitiveMatch===!1||r.includes(Kb)||Gb.test(r)||Vb.test(r)||Yb.test(r)||t.extglob!==!1&&Qb.test(r)||t.braceExpansion!==!1&&Xb(r))}ce.isDynamicPattern=K_;function Xb(r){let t=r.indexOf("{");if(t===-1)return!1;let e=r.indexOf("}",t+1);if(e===-1)return!1;let o=r.slice(t,e);return zb.test(o)}function Jb(r){return xr(r)?r.slice(1):r}ce.convertToPositivePattern=Jb;function Zb(r){return"!"+r}ce.convertToNegativePattern=Zb;function xr(r){return r.startsWith("!")&&r[1]!=="("}ce.isNegativePattern=xr;function G_(r){return!xr(r)}ce.isPositivePattern=G_;function ej(r){return r.filter(xr)}ce.getNegativePatterns=ej;function tj(r){return r.filter(G_)}ce.getPositivePatterns=tj;function ij(r){return r.filter(t=>!hs(t))}ce.getPatternsInsideCurrentDirectory=ij;function rj(r){return r.filter(hs)}ce.getPatternsOutsideCurrentDirectory=rj;function hs(r){return r.startsWith("..")||r.startsWith("./..")}ce.isPatternRelatedToParentDirectory=hs;function nj(r){return Wb(r,{flipBackslashes:!1})}ce.getBaseDirectory=nj;function aj(r){return r.includes($_)}ce.hasGlobStar=aj;function V_(r){return r.endsWith("/"+$_)}ce.endsWithSlashGlobStar=V_;function sj(r){let t=$b.basename(r);return V_(r)||W_(t)}ce.isAffectDepthOfReadingPattern=sj;function uj(r){return r.reduce((t,e)=>t.concat(Y_(e)),[])}ce.expandPatternsWithBraceExpansion=uj;function Y_(r){return ps.braces(r,{expand:!0,nodupes:!0})}ce.expandBraceExpansion=Y_;function oj(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=oj;function Q_(r,t){return ps.makeRe(r,t)}ce.makeRe=Q_;function lj(r,t){return r.map(e=>Q_(e,t))}ce.convertPatternsToRe=lj;function cj(r,t){return t.some(e=>e.test(r))}ce.matchAny=cj});var ed=Q((Zw,Z_)=>{"use strict";var fj=require("stream"),X_=fj.PassThrough,_j=Array.prototype.slice;Z_.exports=dj;function dj(){let r=[],t=_j.call(arguments),e=!1,o=t[t.length-1];o&&!Array.isArray(o)&&o.pipe==null?t.pop():o={};let d=o.end!==!1,m=o.pipeError===!0;o.objectMode==null&&(o.objectMode=!0),o.highWaterMark==null&&(o.highWaterMark=64*1024);let g=X_(o);function S(){for(let R=0,U=arguments.length;R<U;R++)r.push(J_(arguments[R],o));return A(),this}function A(){if(e)return;e=!0;let R=r.shift();if(!R){process.nextTick(N);return}Array.isArray(R)||(R=[R]);let U=R.length+1;function P(){--U>0||(e=!1,A())}function fe(G){function z(){G.removeListener("merge2UnpipeEnd",z),G.removeListener("end",z),m&&G.removeListener("error",Z),P()}function Z(ue){g.emit("error",ue)}if(G._readableState.endEmitted)return P();G.on("merge2UnpipeEnd",z),G.on("end",z),m&&G.on("error",Z),G.pipe(g,{end:!1}),G.resume()}for(let G=0;G<R.length;G++)fe(R[G]);P()}function N(){e=!1,g.emit("queueDrain"),d&&g.end()}return g.setMaxListeners(0),g.add=S,g.on("unpipe",function(R){R.emit("merge2UnpipeEnd")}),t.length&&S.apply(null,t),g}function J_(r,t){if(Array.isArray(r))for(let e=0,o=r.length;e<o;e++)r[e]=J_(r[e],t);else{if(!r._readableState&&r.pipe&&(r=r.pipe(X_(t))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}});var id=Q(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.merge=void 0;var pj=ed();function hj(r){let t=pj(r);return r.forEach(e=>{e.once("error",o=>t.emit("error",o))}),t.once("close",()=>td(r)),t.once("end",()=>td(r)),t}Or.merge=hj;function td(r){r.forEach(t=>t.emit("close"))}});var rd=Q(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.isEmpty=hi.isString=void 0;function yj(r){return typeof r=="string"}hi.isString=yj;function mj(r){return r===""}hi.isEmpty=mj});var St=Q(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 vj=Cf();Je.array=vj;var gj=kf();Je.errno=gj;var bj=Sf();Je.fs=bj;var jj=Ef();Je.path=jj;var wj=z_();Je.pattern=wj;var Cj=id();Je.stream=Cj;var kj=rd();Je.string=kj});var sd=Q(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 Sj(r,t){let e=nd(r),o=ad(r,t.ignore),d=e.filter(A=>Et.pattern.isStaticPattern(A,t)),m=e.filter(A=>Et.pattern.isDynamicPattern(A,t)),g=ys(d,o,!1),S=ys(m,o,!0);return g.concat(S)}Ze.generate=Sj;function ys(r,t,e){let o=[],d=Et.pattern.getPatternsOutsideCurrentDirectory(r),m=Et.pattern.getPatternsInsideCurrentDirectory(r),g=ms(d),S=ms(m);return o.push(...vs(g,t,e)),"."in S?o.push(gs(".",m,t,e)):o.push(...vs(S,t,e)),o}Ze.convertPatternsToTasks=ys;function nd(r){return Et.pattern.getPositivePatterns(r)}Ze.getPositivePatterns=nd;function ad(r,t){return Et.pattern.getNegativePatterns(r).concat(t).map(Et.pattern.convertToPositivePattern)}Ze.getNegativePatternsAsPositive=ad;function ms(r){let t={};return r.reduce((e,o)=>{let d=Et.pattern.getBaseDirectory(o);return d in e?e[d].push(o):e[d]=[o],e},t)}Ze.groupPatternsByBaseDirectory=ms;function vs(r,t,e){return Object.keys(r).map(o=>gs(o,r[o],t,e))}Ze.convertPatternGroupsToTasks=vs;function gs(r,t,e,o){return{dynamic:o,positive:t,negative:e,base:r,patterns:[].concat(t,e.map(Et.pattern.convertToNegativePattern))}}Ze.convertPatternGroupToTask=gs});var od=Q(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.removeDuplicateSlashes=yi.transform=void 0;var Ej=/(?!^)\/{2,}/g;function Aj(r){return r.map(t=>ud(t))}yi.transform=Aj;function ud(r){return r.replace(Ej,"/")}yi.removeDuplicateSlashes=ud});var cd=Q(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.read=void 0;function Rj(r,t,e){t.fs.lstat(r,(o,d)=>{if(o!==null){ld(e,o);return}if(!d.isSymbolicLink()||!t.followSymbolicLink){bs(e,d);return}t.fs.stat(r,(m,g)=>{if(m!==null){if(t.throwErrorOnBrokenSymbolicLink){ld(e,m);return}bs(e,d);return}t.markSymbolicLink&&(g.isSymbolicLink=()=>!0),bs(e,g)})})}Nr.read=Rj;function ld(r,t){r(t)}function bs(r,t){r(null,t)}});var fd=Q(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.read=void 0;function Tj(r,t){let e=t.fs.lstatSync(r);if(!e.isSymbolicLink()||!t.followSymbolicLink)return e;try{let o=t.fs.statSync(r);return t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!t.throwErrorOnBrokenSymbolicLink)return e;throw o}}Lr.read=Tj});var _d=Q(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.createFileSystemAdapter=Rt.FILE_SYSTEM_ADAPTER=void 0;var Br=require("fs");Rt.FILE_SYSTEM_ADAPTER={lstat:Br.lstat,stat:Br.stat,lstatSync:Br.lstatSync,statSync:Br.statSync};function Dj(r){return r===void 0?Rt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Rt.FILE_SYSTEM_ADAPTER),r)}Rt.createFileSystemAdapter=Dj});var dd=Q(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});var Pj=_d(),js=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Pj.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}};ws.default=js});var Kt=Q(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.statSync=Tt.stat=Tt.Settings=void 0;var pd=cd(),Ij=fd(),Cs=dd();Tt.Settings=Cs.default;function Fj(r,t,e){if(typeof t=="function"){pd.read(r,ks(),t);return}pd.read(r,ks(t),e)}Tt.stat=Fj;function Mj(r,t){let e=ks(t);return Ij.read(r,e)}Tt.statSync=Mj;function ks(r={}){return r instanceof Cs.default?r:new Cs.default(r)}});var md=Q((cC,yd)=>{var hd;yd.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):r=>(hd||(hd=Promise.resolve())).then(r).catch(t=>setTimeout(()=>{throw t},0))});var gd=Q((fC,vd)=>{vd.exports=Oj;var xj=md();function Oj(r,t){let e,o,d,m=!0;Array.isArray(r)?(e=[],o=r.length):(d=Object.keys(r),e={},o=d.length);function g(A){function N(){t&&t(A,e),t=null}m?xj(N):N()}function S(A,N,R){e[A]=R,(--o===0||N)&&g(N)}o?d?d.forEach(function(A){r[A](function(N,R){S(A,N,R)})}):r.forEach(function(A,N){A(function(R,U){S(N,R,U)})}):g(null),m=!1}});var Ss=Q(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Ur=process.versions.node.split(".");if(Ur[0]===void 0||Ur[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var bd=Number.parseInt(Ur[0],10),Nj=Number.parseInt(Ur[1],10),jd=10,Lj=10,Bj=bd>jd,Uj=bd===jd&&Nj>=Lj;Hr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Bj||Uj});var wd=Q(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.createDirentFromStats=void 0;var Es=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 Hj(r,t){return new Es(r,t)}qr.createDirentFromStats=Hj});var As=Q($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.fs=void 0;var qj=wd();$r.fs=qj});var Rs=Q(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.joinPathSegments=void 0;function $j(r,t,e){return r.endsWith(e)?r+t:r+e+t}Wr.joinPathSegments=$j});var Rd=Q(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.readdir=Dt.readdirWithFileTypes=Dt.read=void 0;var Wj=Kt(),Cd=gd(),Kj=Ss(),kd=As(),Sd=Rs();function Gj(r,t,e){if(!t.stats&&Kj.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ed(r,t,e);return}Ad(r,t,e)}Dt.read=Gj;function Ed(r,t,e){t.fs.readdir(r,{withFileTypes:!0},(o,d)=>{if(o!==null){Kr(e,o);return}let m=d.map(S=>({dirent:S,name:S.name,path:Sd.joinPathSegments(r,S.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ts(e,m);return}let g=m.map(S=>Vj(S,t));Cd(g,(S,A)=>{if(S!==null){Kr(e,S);return}Ts(e,A)})})}Dt.readdirWithFileTypes=Ed;function Vj(r,t){return e=>{if(!r.dirent.isSymbolicLink()){e(null,r);return}t.fs.stat(r.path,(o,d)=>{if(o!==null){if(t.throwErrorOnBrokenSymbolicLink){e(o);return}e(null,r);return}r.dirent=kd.fs.createDirentFromStats(r.name,d),e(null,r)})}}function Ad(r,t,e){t.fs.readdir(r,(o,d)=>{if(o!==null){Kr(e,o);return}let m=d.map(g=>{let S=Sd.joinPathSegments(r,g,t.pathSegmentSeparator);return A=>{Wj.stat(S,t.fsStatSettings,(N,R)=>{if(N!==null){A(N);return}let U={name:g,path:S,dirent:kd.fs.createDirentFromStats(g,R)};t.stats&&(U.stats=R),A(null,U)})}});Cd(m,(g,S)=>{if(g!==null){Kr(e,g);return}Ts(e,S)})})}Dt.readdir=Ad;function Kr(r,t){r(t)}function Ts(r,t){r(null,t)}});var Fd=Q(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.readdir=Pt.readdirWithFileTypes=Pt.read=void 0;var Yj=Kt(),Qj=Ss(),Td=As(),Dd=Rs();function zj(r,t){return!t.stats&&Qj.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Pd(r,t):Id(r,t)}Pt.read=zj;function Pd(r,t){return t.fs.readdirSync(r,{withFileTypes:!0}).map(o=>{let d={dirent:o,name:o.name,path:Dd.joinPathSegments(r,o.name,t.pathSegmentSeparator)};if(d.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let m=t.fs.statSync(d.path);d.dirent=Td.fs.createDirentFromStats(d.name,m)}catch(m){if(t.throwErrorOnBrokenSymbolicLink)throw m}return d})}Pt.readdirWithFileTypes=Pd;function Id(r,t){return t.fs.readdirSync(r).map(o=>{let d=Dd.joinPathSegments(r,o,t.pathSegmentSeparator),m=Yj.statSync(d,t.fsStatSettings),g={name:o,path:d,dirent:Td.fs.createDirentFromStats(o,m)};return t.stats&&(g.stats=m),g})}Pt.readdir=Id});var Md=Q(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.createFileSystemAdapter=It.FILE_SYSTEM_ADAPTER=void 0;var mi=require("fs");It.FILE_SYSTEM_ADAPTER={lstat:mi.lstat,stat:mi.stat,lstatSync:mi.lstatSync,statSync:mi.statSync,readdir:mi.readdir,readdirSync:mi.readdirSync};function Xj(r){return r===void 0?It.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},It.FILE_SYSTEM_ADAPTER),r)}It.createFileSystemAdapter=Xj});var xd=Q(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var Jj=require("path"),Zj=Kt(),e0=Md(),Ds=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=e0.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Jj.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Zj.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};Ps.default=Ds});var Gr=Q(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.Settings=Ft.scandirSync=Ft.scandir=void 0;var Od=Rd(),t0=Fd(),Is=xd();Ft.Settings=Is.default;function i0(r,t,e){if(typeof t=="function"){Od.read(r,Fs(),t);return}Od.read(r,Fs(t),e)}Ft.scandir=i0;function r0(r,t){let e=Fs(t);return t0.read(r,e)}Ft.scandirSync=r0;function Fs(r={}){return r instanceof Is.default?r:new Is.default(r)}});var Ld=Q((jC,Nd)=>{"use strict";function n0(r){var t=new r,e=t;function o(){var m=t;return m.next?t=m.next:(t=new r,e=t),m.next=null,m}function d(m){e.next=m,e=m}return{get:o,release:d}}Nd.exports=n0});var Ud=Q((wC,Ms)=>{"use strict";var a0=Ld();function Bd(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 o=a0(s0),d=null,m=null,g=0,S=null,A={push:z,drain:ct,saturated:ct,pause:R,paused:!1,concurrency:e,running:N,resume:fe,idle:G,length:U,getQueue:P,unshift:Z,empty:ct,kill:be,killAndDrain:ye,error:Ae};return A;function N(){return g}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++)g++,ue()}}function G(){return g===0&&A.length()===0}function z(ne,we){var J=o.get();J.context=r,J.release=ue,J.value=ne,J.callback=we||ct,J.errorHandler=S,g===A.concurrency||A.paused?m?(m.next=J,m=J):(d=J,m=J,A.saturated()):(g++,t.call(r,J.value,J.worked))}function Z(ne,we){var J=o.get();J.context=r,J.release=ue,J.value=ne,J.callback=we||ct,g===A.concurrency||A.paused?d?(J.next=d,d=J):(d=J,m=J,A.saturated()):(g++,t.call(r,J.value,J.worked))}function ue(ne){ne&&o.release(ne);var we=d;we?A.paused?g--:(m===d&&(m=null),d=we.next,we.next=null,t.call(r,we.value,we.worked),m===null&&A.empty()):--g===0&&A.drain()}function be(){d=null,m=null,A.drain=ct}function ye(){d=null,m=null,A.drain(),A.drain=ct}function Ae(ne){S=ne}}function ct(){}function s0(){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,o){var d=r.callback,m=r.errorHandler,g=r.value;r.value=null,r.callback=ct,r.errorHandler&&m(e,g),d.call(r.context,e,o),r.release(r)}}function u0(r,t,e){typeof r=="function"&&(e=t,t=r,r=null);function o(R,U){t.call(this,R).then(function(P){U(null,P)},U)}var d=Bd(r,o,e),m=d.push,g=d.unshift;return d.push=S,d.unshift=A,d.drained=N,d;function S(R){var U=new Promise(function(P,fe){m(R,function(G,z){if(G){fe(G);return}P(z)})});return U.catch(ct),U}function A(R){var U=new Promise(function(P,fe){g(R,function(G,z){if(G){fe(G);return}P(z)})});return U.catch(ct),U}function N(){var R=d.drain,U=new Promise(function(P){d.drain=function(){R(),P()}});return U}}Ms.exports=Bd;Ms.exports.promise=u0});var Vr=Q(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.joinPathSegments=vt.replacePathSegmentSeparator=vt.isAppliedFilter=vt.isFatalError=void 0;function o0(r,t){return r.errorFilter===null?!0:!r.errorFilter(t)}vt.isFatalError=o0;function l0(r,t){return r===null||r(t)}vt.isAppliedFilter=l0;function c0(r,t){return r.split(/[/\\]/).join(t)}vt.replacePathSegmentSeparator=c0;function f0(r,t,e){return r===""?t:r.endsWith(e)?r+t:r+e+t}vt.joinPathSegments=f0});var Ns=Q(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var _0=Vr(),xs=class{constructor(t,e){this._root=t,this._settings=e,this._root=_0.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}};Os.default=xs});var Us=Q(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var d0=require("events"),p0=Gr(),h0=Ud(),Yr=Vr(),y0=Ns(),Ls=class extends y0.default{constructor(t,e){super(t,e),this._settings=e,this._scandir=p0.scandir,this._emitter=new d0.EventEmitter,this._queue=h0(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 o={directory:t,base:e};this._queue.push(o,d=>{d!==null&&this._handleError(d)})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(o,d)=>{if(o!==null){e(o,void 0);return}for(let m of d)this._handleEntry(m,t.base);e(null,void 0)})}_handleError(t){this._isDestroyed||!Yr.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 o=t.path;e!==void 0&&(t.path=Yr.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Yr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Yr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(o,e===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Bs.default=Ls});var Hd=Q(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var m0=Us(),Hs=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new m0.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(e=>{v0(t,e)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{g0(t,this._storage)}),this._reader.read()}};qs.default=Hs;function v0(r,t){r(t)}function g0(r,t){r(null,t)}});var qd=Q(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var b0=require("stream"),j0=Us(),$s=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new j0.default(this._root,this._settings),this._stream=new b0.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}};Ws.default=$s});var $d=Q(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var w0=Gr(),Qr=Vr(),C0=Ns(),Ks=class extends C0.default{constructor(){super(...arguments),this._scandir=w0.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 o=this._scandir(t,this._settings.fsScandirSettings);for(let d of o)this._handleEntry(d,e)}catch(o){this._handleError(o)}}_handleError(t){if(!!Qr.isFatalError(this._settings,t))throw t}_handleEntry(t,e){let o=t.path;e!==void 0&&(t.path=Qr.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Qr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Qr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(o,e===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Gs.default=Ks});var Wd=Q(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});var k0=$d(),Vs=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new k0.default(this._root,this._settings)}read(){return this._reader.read()}};Ys.default=Vs});var Kd=Q(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var S0=require("path"),E0=Gr(),Qs=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,S0.sep),this.fsScandirSettings=new E0.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}};zs.default=Qs});var Js=Q(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.Settings=gt.walkStream=gt.walkSync=gt.walk=void 0;var Gd=Hd(),A0=qd(),R0=Wd(),Xs=Kd();gt.Settings=Xs.default;function T0(r,t,e){if(typeof t=="function"){new Gd.default(r,zr()).read(t);return}new Gd.default(r,zr(t)).read(e)}gt.walk=T0;function D0(r,t){let e=zr(t);return new R0.default(r,e).read()}gt.walkSync=D0;function P0(r,t){let e=zr(t);return new A0.default(r,e).read()}gt.walkStream=P0;function zr(r={}){return r instanceof Xs.default?r:new Xs.default(r)}});var tu=Q(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var I0=require("path"),F0=Kt(),Vd=St(),Zs=class{constructor(t){this._settings=t,this._fsStatSettings=new F0.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return I0.resolve(this._settings.cwd,t)}_makeEntry(t,e){let o={name:e,path:e,dirent:Vd.fs.createDirentFromStats(e,t)};return this._settings.stats&&(o.stats=t),o}_isFatalError(t){return!Vd.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};eu.default=Zs});var nu=Q(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});var M0=require("stream"),x0=Kt(),O0=Js(),N0=tu(),iu=class extends N0.default{constructor(){super(...arguments),this._walkStream=O0.walkStream,this._stat=x0.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){let o=t.map(this._getFullEntryPath,this),d=new M0.PassThrough({objectMode:!0});d._write=(m,g,S)=>this._getEntry(o[m],t[m],e).then(A=>{A!==null&&e.entryFilter(A)&&d.push(A),m===o.length-1&&d.end(),S()}).catch(S);for(let m=0;m<o.length;m++)d.write(m);return d}_getEntry(t,e,o){return this._getStat(t).then(d=>this._makeEntry(d,e)).catch(d=>{if(o.errorFilter(d))return null;throw d})}_getStat(t){return new Promise((e,o)=>{this._stat(t,this._fsStatSettings,(d,m)=>d===null?e(m):o(d))})}};ru.default=iu});var Yd=Q(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var vi=St(),au=class{constructor(t,e,o){this._patterns=t,this._settings=e,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){let t=vi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let e of t){let o=this._getPatternSegments(e),d=this._splitSegmentsIntoSections(o);this._storage.push({complete:d.length<=1,pattern:e,segments:o,sections:d})}}_getPatternSegments(t){return vi.pattern.getPatternParts(t,this._micromatchOptions).map(o=>vi.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:vi.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(t){return vi.array.splitWhen(t,e=>e.dynamic&&vi.pattern.hasGlobStar(e.pattern))}};su.default=au});var Qd=Q(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var L0=Yd(),uu=class extends L0.default{match(t){let e=t.split("/"),o=e.length,d=this._storage.filter(m=>!m.complete||m.segments.length>o);for(let m of d){let g=m.sections[0];if(!m.complete&&o>g.length||e.every((A,N)=>{let R=m.segments[N];return!!(R.dynamic&&R.patternRe.test(A)||!R.dynamic&&R.pattern===A)}))return!0}return!1}};ou.default=uu});var zd=Q(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var Xr=St(),B0=Qd(),lu=class{constructor(t,e){this._settings=t,this._micromatchOptions=e}getFilter(t,e,o){let d=this._getMatcher(e),m=this._getNegativePatternsRe(o);return g=>this._filter(t,g,d,m)}_getMatcher(t){return new B0.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let e=t.filter(Xr.pattern.isAffectDepthOfReadingPattern);return Xr.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,o,d){if(this._isSkippedByDeep(t,e.path)||this._isSkippedSymbolicLink(e))return!1;let m=Xr.path.removeLeadingDotSegment(e.path);return this._isSkippedByPositivePatterns(m,o)?!1:this._isSkippedByNegativePatterns(m,d)}_isSkippedByDeep(t,e){return this._settings.deep===1/0?!1:this._getEntryLevel(t,e)>=this._settings.deep}_getEntryLevel(t,e){let o=e.split("/").length;if(t==="")return o;let d=t.split("/").length;return o-d}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!Xr.pattern.matchAny(t,e)}};cu.default=lu});var Xd=Q(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var Gt=St(),fu=class{constructor(t,e){this._settings=t,this._micromatchOptions=e,this.index=new Map}getFilter(t,e){let o=Gt.pattern.convertPatternsToRe(t,this._micromatchOptions),d=Gt.pattern.convertPatternsToRe(e,this._micromatchOptions);return m=>this._filter(m,o,d)}_filter(t,e,o){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,o))return!1;let d=this._settings.baseNameMatch?t.name:t.path,m=this._isMatchToPatterns(d,e)&&!this._isMatchToPatterns(t.path,o);return this._settings.unique&&m&&this._createIndexRecord(t),m}_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 o=Gt.path.makeAbsolute(this._settings.cwd,t);return Gt.pattern.matchAny(o,e)}_isMatchToPatterns(t,e){let o=Gt.path.removeLeadingDotSegment(t);return Gt.pattern.matchAny(o,e)||Gt.pattern.matchAny(o+"/",e)}};_u.default=fu});var Jd=Q(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});var U0=St(),du=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return U0.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};pu.default=du});var ep=Q(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});var Zd=St(),hu=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;return this._settings.absolute&&(e=Zd.path.makeAbsolute(this._settings.cwd,e),e=Zd.path.unixify(e)),this._settings.markDirectories&&t.dirent.isDirectory()&&(e+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:e}):e}};yu.default=hu});var Jr=Q(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var H0=require("path"),q0=zd(),$0=Xd(),W0=Jd(),K0=ep(),mu=class{constructor(t){this._settings=t,this.errorFilter=new W0.default(this._settings),this.entryFilter=new $0.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new q0.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new K0.default(this._settings)}_getRootDirectory(t){return H0.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}}};vu.default=mu});var tp=Q(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});var G0=nu(),V0=Jr(),gu=class extends V0.default{constructor(){super(...arguments),this._reader=new G0.default(this._settings)}read(t){let e=this._getRootDirectory(t),o=this._getReaderOptions(t),d=[];return new Promise((m,g)=>{let S=this.api(e,t,o);S.once("error",g),S.on("data",A=>d.push(o.transform(A))),S.once("end",()=>m(d))})}api(t,e,o){return e.dynamic?this._reader.dynamic(t,o):this._reader.static(e.patterns,o)}};bu.default=gu});var ip=Q(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var Y0=require("stream"),Q0=nu(),z0=Jr(),ju=class extends z0.default{constructor(){super(...arguments),this._reader=new Q0.default(this._settings)}read(t){let e=this._getRootDirectory(t),o=this._getReaderOptions(t),d=this.api(e,t,o),m=new Y0.Readable({objectMode:!0,read:()=>{}});return d.once("error",g=>m.emit("error",g)).on("data",g=>m.emit("data",o.transform(g))).once("end",()=>m.emit("end")),m.once("close",()=>d.destroy()),m}api(t,e,o){return e.dynamic?this._reader.dynamic(t,o):this._reader.static(e.patterns,o)}};wu.default=ju});var rp=Q(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var X0=Kt(),J0=Js(),Z0=tu(),Cu=class extends Z0.default{constructor(){super(...arguments),this._walkSync=J0.walkSync,this._statSync=X0.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){let o=[];for(let d of t){let m=this._getFullEntryPath(d),g=this._getEntry(m,d,e);g===null||!e.entryFilter(g)||o.push(g)}return o}_getEntry(t,e,o){try{let d=this._getStat(t);return this._makeEntry(d,e)}catch(d){if(o.errorFilter(d))return null;throw d}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};ku.default=Cu});var np=Q(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});var ew=rp(),tw=Jr(),Su=class extends tw.default{constructor(){super(...arguments),this._reader=new ew.default(this._settings)}read(t){let e=this._getRootDirectory(t),o=this._getReaderOptions(t);return this.api(e,t,o).map(o.transform)}api(t,e,o){return e.dynamic?this._reader.dynamic(t,o):this._reader.static(e.patterns,o)}};Eu.default=Su});var ap=Q(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gi=require("fs"),iw=require("os"),rw=Math.max(iw.cpus().length,1);bi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gi.lstat,lstatSync:gi.lstatSync,stat:gi.stat,statSync:gi.statSync,readdir:gi.readdir,readdirSync:gi.readdirSync};var Au=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,rw),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({},bi.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};bi.default=Au});var lp=Q((GC,op)=>{"use strict";var sp=sd(),up=od(),nw=tp(),aw=ip(),sw=np(),Ru=ap(),Vt=St();async function Tu(r,t){ji(r);let e=Du(r,nw.default,t),o=await Promise.all(e);return Vt.array.flatten(o)}(function(r){function t(g,S){ji(g);let A=Du(g,sw.default,S);return Vt.array.flatten(A)}r.sync=t;function e(g,S){ji(g);let A=Du(g,aw.default,S);return Vt.stream.merge(A)}r.stream=e;function o(g,S){ji(g);let A=up.transform([].concat(g)),N=new Ru.default(S);return sp.generate(A,N)}r.generateTasks=o;function d(g,S){ji(g);let A=new Ru.default(S);return Vt.pattern.isDynamicPattern(g,A)}r.isDynamicPattern=d;function m(g){return ji(g),Vt.path.escape(g)}r.escapePath=m})(Tu||(Tu={}));function Du(r,t,e){let o=up.transform([].concat(r)),d=new Ru.default(e),m=sp.generate(o,d),g=new t(d);return m.map(g.read,g)}function ji(r){if(![].concat(r).every(o=>Vt.string.isString(o)&&!Vt.string.isEmpty(o)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}op.exports=Tu});var uw={};tg(uw,{registerWorker:()=>fp});module.exports=ig(uw);var he=Ni(require("apache-arrow"));function fi(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:fi(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=>vr(e.name,e.type))};case he.Type.Map:{let t=r;return{sqlType:"map",keyType:fi(t.keyType),valueType:fi(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 vr(r,t){let e=fi(t);return e.name=r,e}var gr=class{constructor(){this._bindings=null;this._nextMessageId=0}log(t){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:t},[])}sendOK(t){this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"OK",data:null},[])}failWith(t,e){let o={name:e.name,message:e.message,stack:e.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"ERROR",data:o},[])}async onMessage(t){switch(t.type){case"PING":this.sendOK(t);return;case"INSTANTIATE":this._bindings!=null&&this.failWith(t,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(t.data[0],t.data[1],e=>{this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"INSTANTIATE_PROGRESS",data:e},[])}),this.sendOK(t)}catch(e){this._bindings=null,this.failWith(t,e)}return;default:break}if(!this._bindings)return this.failWith(t,new Error("duckdb is not initialized"));try{switch(t.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(t);break;case"OPEN":this._bindings.open(t.data),this.sendOK(t);break;case"DROP_FILE":this._bindings.dropFile(t.data),this.sendOK(t);break;case"DROP_FILES":this._bindings.dropFiles(),this.sendOK(t);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(t);break;case"CONNECT":{let e=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"CONNECTION_INFO",data:e.useUnsafe((o,d)=>d)},[]);break}case"DISCONNECT":this._bindings.disconnect(t.data),this.sendOK(t);break;case"CREATE_PREPARED":{let e=this._bindings.createPrepared(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"PREPARED_STATEMENT_ID",data:e},[]);break}case"CLOSE_PREPARED":{this._bindings.closePrepared(t.data[0],t.data[1]),this.sendOK(t);break}case"RUN_PREPARED":{let e=this._bindings.runPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:e},[e.buffer]);break}case"RUN_QUERY":{let e=this._bindings.runQuery(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:e},[e.buffer]);break}case"SEND_PREPARED":{let e=this._bindings.sendPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER",data:e},[e.buffer]);break}case"START_PENDING_QUERY":{let e=this._bindings.startPendingQuery(t.data[0],t.data[1]),o=[];e&&o.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},o);break}case"POLL_PENDING_QUERY":{let e=this._bindings.pollPendingQuery(t.data),o=[];e&&o.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},o);break}case"CANCEL_PENDING_QUERY":{let e=this._bindings.cancelPendingQuery(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SUCCESS",data:e},[]);break}case"FETCH_QUERY_RESULTS":{let e=this._bindings.fetchQueryResults(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_CHUNK",data:e},[e.buffer]);break}case"GET_TABLE_NAMES":{let e=this._bindings.getTableNames(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"TABLE_NAMES",data:e},[]);break}case"GLOB_FILE_INFOS":{let e=this._bindings.globFiles(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_INFOS",data:e},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(t.data[0],t.data[1]),this.sendOK(t);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(t.data[0],t.data[1]),this.sendOK(t);break;case"REGISTER_FILE_HANDLE":this._bindings.registerFileHandle(t.data[0],t.data[1]),this.sendOK(t);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(t.data[0],t.data[1]),this.sendOK(t);break;case"COPY_FILE_TO_BUFFER":{let e=this._bindings.copyFileToBuffer(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_BUFFER",data:e},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(t.data[0],t.data[1]),this.sendOK(t);break;case"EXPORT_FILE_STATISTICS":{this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(t.data)},[]);break}case"INSERT_ARROW_FROM_IPC_STREAM":{this._bindings.insertArrowFromIPCStream(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"IMPORT_CSV_FROM_PATH":{this._bindings.insertCSVFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"IMPORT_JSON_FROM_PATH":{this._bindings.insertJSONFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"TOKENIZE":{let e=this._bindings.tokenize(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SCRIPT_TOKENS",data:e},[]);break}}}catch(e){return this.failWith(t,e)}}};var pf={},rg=(()=>{var r=pf.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},o,d;e.ready=new Promise(function(h,v){o=h,d=v});var m=Object.assign({},e),g=[],S="./this.program",A=(h,v)=>{throw v},N=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 G,z,Z,ue;function be(h){if(h instanceof ci)return;J("exiting due to exception: "+h)}var ye,Ae,ne;U?(R?P=require("path").dirname(P)+"/":P=__dirname+"/",ne=()=>{Ae||(ye=require("fs"),Ae=require("path"))},G=function(v,k){return ne(),v=Ae.normalize(v),ye.readFileSync(v,k?void 0:"utf8")},Z=h=>{var v=G(h,!0);return v.buffer||(v=new Uint8Array(v)),v},z=(h,v,k)=>{ne(),h=Ae.normalize(h),ye.readFile(h,function(T,O){T?k(T):v(O.buffer)})},process.argv.length>1&&(S=process.argv[1].replace(/\\/g,"/")),g=process.argv.slice(2),process.on("uncaughtException",function(h){if(!(h instanceof ci))throw h}),process.on("unhandledRejection",function(h){throw h}),A=(h,v)=>{if(Wi())throw process.exitCode=h,v;be(v),process.exit(h)},e.inspect=function(){return"[Emscripten Module object]"}):(N||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="",G=h=>{var v=new XMLHttpRequest;return v.open("GET",h,!1),v.send(null),v.responseText},R&&(Z=h=>{var v=new XMLHttpRequest;return v.open("GET",h,!1),v.responseType="arraybuffer",v.send(null),new Uint8Array(v.response)}),z=(h,v,k)=>{var T=new XMLHttpRequest;T.open("GET",h,!0),T.responseType="arraybuffer",T.onload=()=>{if(T.status==200||T.status==0&&T.response){v(T.response);return}k()},T.onerror=k,T.send(null)},ue=h=>document.title=h);var we=e.print||console.log.bind(console),J=e.printErr||console.warn.bind(console);Object.assign(e,m),m=null,e.arguments&&(g=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"&&Ke("no native wasm support detected");var pe,M=!1,oe;function ae(h,v){h||Ke(v)}function Ce(h){var v=e["_"+h];return v}function D(h,v,k,T,O){var X={string:function(Ne){var b=0;if(Ne!=null&&Ne!==0){var j=(Ne.length<<2)+1;b=xi(j),We(Ne,b,j)}return b},array:function(Ne){var b=xi(Ne.length);return _t(Ne,b),b}};function K(Ne){return v==="string"?le(Ne):v==="boolean"?Boolean(Ne):Ne}var q=Ce(h),te=[],me=0;if(T)for(var ve=0;ve<T.length;ve++){var Ge=X[k[ve]];Ge?(me===0&&(me=cr()),te[ve]=Ge(T[ve])):te[ve]=T[ve]}var Se=q.apply(null,te);function ft(Ne){return me!==0&&fr(me),K(Ne)}return Se=ft(Se),Se}var I=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function De(h,v,k){v>>>=0;for(var T=v+k,O=v;h[O]&&!(O>=T);)++O;if(O-v>16&&h.buffer&&I)return I.decode(h.subarray(v,O));for(var X="";v<O;){var K=h[v++];if(!(K&128)){X+=String.fromCharCode(K);continue}var q=h[v++]&63;if((K&224)==192){X+=String.fromCharCode((K&31)<<6|q);continue}var te=h[v++]&63;if((K&240)==224?K=(K&15)<<12|q<<6|te:K=(K&7)<<18|q<<12|te<<6|h[v++]&63,K<65536)X+=String.fromCharCode(K);else{var me=K-65536;X+=String.fromCharCode(55296|me>>10,56320|me&1023)}}return X}function le(h,v){return h>>>=0,h?De(se,h,v):""}function Qe(h,v,k,T){if(k>>>=0,!(T>0))return 0;for(var O=k,X=k+T-1,K=0;K<h.length;++K){var q=h.charCodeAt(K);if(q>=55296&&q<=57343){var te=h.charCodeAt(++K);q=65536+((q&1023)<<10)|te&1023}if(q<=127){if(k>=X)break;v[k++>>>0]=q}else if(q<=2047){if(k+1>=X)break;v[k++>>>0]=192|q>>6,v[k++>>>0]=128|q&63}else if(q<=65535){if(k+2>=X)break;v[k++>>>0]=224|q>>12,v[k++>>>0]=128|q>>6&63,v[k++>>>0]=128|q&63}else{if(k+3>=X)break;v[k++>>>0]=240|q>>18,v[k++>>>0]=128|q>>12&63,v[k++>>>0]=128|q>>6&63,v[k++>>>0]=128|q&63}}return v[k>>>0]=0,k-O}function We(h,v,k){return Qe(h,se,v,k)}function Pe(h){for(var v=0,k=0;k<h.length;++k){var T=h.charCodeAt(k);T>=55296&&T<=57343&&(T=65536+((T&1023)<<10)|h.charCodeAt(++k)&1023),T<=127?++v:T<=2047?v+=2:T<=65535?v+=3:v+=4}return v}function _t(h,v){ze.set(h,v>>>0)}function Mt(h,v,k){for(var T=0;T<h.length;++T)ze[v++>>>0]=h.charCodeAt(T);k||(ze[v>>>0]=0)}var bt,ze,se,st,et,F,ge,W,x;function Re(h){bt=h,e.HEAP8=ze=new Int8Array(h),e.HEAP16=st=new Int16Array(h),e.HEAP32=F=new Int32Array(h),e.HEAPU8=se=new Uint8Array(h),e.HEAPU16=et=new Uint16Array(h),e.HEAPU32=ge=new Uint32Array(h),e.HEAPF32=W=new Float32Array(h),e.HEAPF64=x=new Float64Array(h)}var qe=e.INITIAL_MEMORY||16777216,Me,jt=[],At=[],qi=[],wi=[],$i=!1;function Wi(){return H}function Ki(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)tn(e.preRun.shift());Ot(jt)}function Zr(){$i=!0,Ot(At)}function Gi(){Ot(qi)}function en(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)nn(e.postRun.shift());Ot(wi)}function tn(h){jt.unshift(h)}function rn(h){At.unshift(h)}function nn(h){wi.unshift(h)}var wt=0,Ci=null,xt=null;function Ct(h){wt++,e.monitorRunDependencies&&e.monitorRunDependencies(wt)}function ki(h){if(wt--,e.monitorRunDependencies&&e.monitorRunDependencies(wt),wt==0&&(Ci!==null&&(clearInterval(Ci),Ci=null),xt)){var v=xt;xt=null,v()}}function Ke(h){e.onAbort&&e.onAbort(h),h="Aborted("+h+")",J(h),M=!0,oe=1,h+=". Build with -sASSERTIONS for more info.";var v=new WebAssembly.RuntimeError(h);throw d(v),v}var an="data:application/octet-stream;base64,";function Vi(h){return h.startsWith(an)}var Ie;e.locateFile?(Ie="./duckdb-eh.wasm",Vi(Ie)||(Ie=fe(Ie))):Ie=new URL("./duckdb-eh.wasm",pf.url).toString();function Yi(h){try{if(h==Ie&&ee)return new Uint8Array(ee);if(Z)return Z(h);throw"both async and sync fetching of the wasm failed"}catch(v){Ke(v)}}function Qi(){return!ee&&(N||R)&&typeof fetch=="function"?fetch(Ie,{credentials:"same-origin"}).then(function(h){if(!h.ok)throw"failed to load wasm binary file at '"+Ie+"'";return h.arrayBuffer()}).catch(function(){return Yi(Ie)}):Promise.resolve().then(function(){return Yi(Ie)})}function tt(){var h={a:na};function v(K,q){var te=K.exports;e.asm=te,pe=e.asm.ha,Re(pe.buffer),Me=e.asm.db,rn(e.asm.ia),ki("wasm-instantiate")}Ct("wasm-instantiate");function k(K){v(K.instance)}function T(K){return Qi().then(function(q){return WebAssembly.instantiate(q,h)}).then(function(q){return q}).then(K,function(q){J("failed to asynchronously prepare wasm: "+q),Ke(q)})}function O(){return!ee&&typeof WebAssembly.instantiateStreaming=="function"&&!Vi(Ie)&&typeof fetch=="function"?fetch(Ie,{credentials:"same-origin"}).then(function(K){var q=WebAssembly.instantiateStreaming(K,h);return q.then(k,function(te){return J("wasm streaming compile failed: "+te),J("falling back to ArrayBuffer instantiation"),T(k)})}):T(k)}if(e.instantiateWasm)try{var X=e.instantiateWasm(h,v);return X}catch(K){return J("Module.instantiateWasm callback failed with error: "+K),!1}return O().catch(d),{}}function Ot(h){for(;h.length>0;){var v=h.shift();if(typeof v=="function"){v(e);continue}var k=v.func;typeof k=="number"?v.arg===void 0?zi(k)():zi(k)(v.arg):k(v.arg===void 0?null:v.arg)}}var Yt=[];function zi(h){var v=Yt[h];return v||(h>=Yt.length&&(Yt.length=h+1),Yt[h]=v=Me.get(h)),v}function Qt(h){if(h instanceof ci||h=="unwind")return oe;A(1,h)}function zt(h,v,k,T){Ke("Assertion failed: "+le(h)+", at: "+[v?le(v):"unknown filename",k,T?le(T):"unknown function"])}var V={buffers:[null,[],[]],printChar:function(h,v){var k=V.buffers[h];v===0||v===10?((h===1?we:J)(De(k,0)),k.length=0):k.push(v)},varargs:void 0,get:function(){V.varargs+=4;var h=F[V.varargs-4>>>2];return h},getStr:function(h){var v=le(h);return v}};function sn(h,v,k,T,O){}function un(){J("missing function: $SOCKFS"),Ke(-1)}function Xi(){J("missing function: $FS"),Ke(-1)}function dt(h){var v=un.getSocket(h);if(!v)throw new Xi.ErrnoError(8);return v}function Si(h){return(h&255)+"."+(h>>8&255)+"."+(h>>16&255)+"."+(h>>24&255)}function Nt(h){var v="",k=0,T=0,O=0,X=0,K=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=Si(te[6]|te[7]<<16),te[5]===-1)return v="::ffff:",v+=ve,v;if(te[5]===0)return v="::",ve==="0.0.0.0"&&(ve=""),ve==="0.0.0.1"&&(ve="1"),v+=ve,v}for(k=0;k<8;k++)te[k]===0&&(k-O>1&&(K=0),O=k,K++),K>T&&(T=K,X=k-T+1);for(k=0;k<8;k++){if(T>1&&te[k]===0&&k>=X&&k<X+T){k===X&&(v+=":",X===0&&(v+=":"));continue}v+=Number(Fi(te[k]&65535)).toString(16),v+=k<7?":":""}return v}function Ji(h,v){var k=st[h>>>1],T=Fi(et[h+2>>>1]),O;switch(k){case 2:if(v!==16)return{errno:28};O=F[h+4>>>2],O=Si(O);break;case 10:if(v!==28)return{errno:28};O=[F[h+8>>>2],F[h+12>>>2],F[h+16>>>2],F[h+20>>>2]],O=Nt(O);break;default:return{errno:5}}return{family:k,addr:O,port:T}}function Xe(h){for(var v=h.split("."),k=0;k<4;k++){var T=Number(v[k]);if(isNaN(T))return null;v[k]=T}return(v[0]|v[1]<<8|v[2]<<16|v[3]<<24)>>>0}function it(h){return parseInt(h)}function Xt(h){var v,k,T,O,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,K=[];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"),":"),v=h.split(":"),v[v.length-4]=it(v[v.length-4])+it(v[v.length-3])*256,v[v.length-3]=it(v[v.length-2])+it(v[v.length-1])*256,v=v.slice(0,v.length-2)):v=h.split(":"),T=0,O=0,k=0;k<v.length;k++)if(typeof v[k]=="string")if(v[k]==="Z"){for(O=0;O<8-v.length+1;O++)K[k+O]=0;T=O-1}else K[k+T]=oi(parseInt(v[k],16));else K[k+T]=v[k];return[K[1]<<16|K[0],K[3]<<16|K[2],K[5]<<16|K[4],K[7]<<16|K[6]]}var rt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(h){var v=Xe(h);if(v!==null||(v=Xt(h),v!==null))return h;var k;if(rt.address_map.addrs[h])k=rt.address_map.addrs[h];else{var T=rt.address_map.id++;ae(T<65535,"exceeded max address mappings of 65535"),k="172.29."+(T&255)+"."+(T&65280),rt.address_map.names[k]=h,rt.address_map.addrs[h]=k}return k},lookup_addr:function(h){return rt.address_map.names[h]?rt.address_map.names[h]:null}};function Zi(h,v,k){if(k&&h===0)return null;var T=Ji(h,v);if(T.errno)throw new Xi.ErrnoError(T.errno);return T.addr=rt.lookup_addr(T.addr)||T.addr,T}function on(h,v,k){var T=dt(h),O=Zi(v,k);return T.sock_ops.bind(T,O.addr,O.port),0}function ln(h,v,k){var T=dt(h),O=Zi(v,k);return T.sock_ops.connect(T,O.addr,O.port),0}function cn(h,v,k,T){return v=V.getStr(v),v=V.calculateAt(h,v),V.doAccess(v,k)}function fn(h,v,k){return V.varargs=k,0}function _n(h,v){}function dn(h,v,k){}function pn(h,v,k){}function er(h,v){se.fill(0,h,h+v)}function Ei(h,v,k,T,O){switch(v){case 2:k=Xe(k),er(h,16),O&&(F[O>>>2]=16),st[h>>>1]=v,F[h+4>>>2]=k,st[h+2>>>1]=oi(T);break;case 10:k=Xt(k),er(h,28),O&&(F[O>>>2]=28),F[h>>>2]=v,F[h+8>>>2]=k[0],F[h+12>>>2]=k[1],F[h+16>>>2]=k[2],F[h+20>>>2]=k[3],st[h+2>>>1]=oi(T);break;default:return 5}return 0}function hn(h,v,k){var T=dt(h);if(!T.daddr)return-53;var O=Ei(v,T.family,rt.lookup_name(T.daddr),T.dport,k);return 0}function He(h,v,k,T,O){var X=dt(h);return v===1&&k===4?(F[T>>>2]=X.error,F[O>>>2]=4,X.error=null,0):-50}function yn(h,v,k){return V.varargs=k,0}function mn(h,v){}function tr(h,v,k){}function Lt(h,v,k,T){}function Ai(h,v,k,T){V.varargs=T}function ir(h,v,k,T,O,X){var K=dt(h),q=K.sock_ops.recvmsg(K,k);if(!q)return 0;if(O)var te=Ei(O,K.family,rt.lookup_name(q.addr),q.port,X);return se.set(q.buffer,v>>>0),q.buffer.byteLength}function rr(h,v,k,T){}function Jt(h){}function Zt(h,v,k,T,O,X){}function Ri(h,v,k){}function nt(h,v){}function nr(h,v,k){}function vn(h){}var ar="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function gn(h,v){Ke(ar)}function bn(h,v){Ke(ar)}function jn(){return Date.now()}var wn=!0;function Cn(){return wn}function sr(){Ke("")}function Ti(h,v){return globalThis.DUCKDB_RUNTIME.createDirectory(e,h,v)}function kn(h,v){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,h,v)}function Sn(h,v){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,h,v)}function En(h,v){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,h,v)}function An(h){return globalThis.DUCKDB_RUNTIME.closeFile(e,h)}function Rn(h,v){return globalThis.DUCKDB_RUNTIME.checkFile(e,h,v)}function Tn(h){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,h)}function Dn(h,v,k,T){return globalThis.DUCKDB_RUNTIME.moveFile(e,h,v,k,T)}function Pn(h,v){return globalThis.DUCKDB_RUNTIME.openFile(e,h,v)}function In(h,v,k,T){return globalThis.DUCKDB_RUNTIME.readFile(e,h,v,k,T)}function Fn(h,v){return globalThis.DUCKDB_RUNTIME.truncateFile(e,h,v)}function Mn(h,v,k,T){return globalThis.DUCKDB_RUNTIME.writeFile(e,h,v,k,T)}function xn(h,v){return globalThis.DUCKDB_RUNTIME.glob(e,h,v)}function On(h){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,h)}function Nn(h,v,k,T,O,X){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,h,v,k,T,O,X)}function ur(){return 4294901760}var ei;U?ei=()=>{var h=process.hrtime();return h[0]*1e3+h[1]/1e6}:ei=()=>performance.now();function Ln(h,v,k){se.copyWithin(h>>>0,v>>>0,v+k>>>0)}function Bn(h){try{return pe.grow(h-bt.byteLength+65535>>>16),Re(pe.buffer),1}catch{}}function Un(h){var v=se.length;h=h>>>0;var k=ur();if(h>k)return!1;let T=(te,me)=>te+(me-te%me)%me;for(var O=1;O<=4;O*=2){var X=v*(1+.2/O);X=Math.min(X,h+100663296);var K=Math.min(k,T(Math.max(h,X),65536)),q=Bn(K);if(q)return!0}return!1}var Di={};function Hn(){return S||"./this.program"}function Bt(){if(!Bt.strings){var h=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",v={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:h,_:Hn()};for(var k in Di)Di[k]===void 0?delete v[k]:v[k]=Di[k];var T=[];for(var k in v)T.push(k+"="+v[k]);Bt.strings=T}return Bt.strings}function qn(h,v){var k=0;return Bt().forEach(function(T,O){var X=v+k;F[h+O*4>>>2]=X,Mt(T,X),k+=T.length+1}),0}function $n(h,v){var k=Bt();F[h>>>2]=k.length;var T=0;return k.forEach(function(O){T+=O.length+1}),F[v>>>2]=T,0}function Wn(h){return 0}function Kn(h,v,k,T,O,X){var K=V.getStreamFromFD(h),q=V.doReadv(K,v,k,T);return F[X>>>2]=q,0}function Gn(h,v,k,T,O,X){var K=V.getStreamFromFD(h),q=V.doWritev(K,v,k,T);return F[X>>>2]=q,0}function Vn(h,v,k,T){var O=V.getStreamFromFD(h),X=V.doReadv(O,v,k);return F[T>>>2]=X,0}function Yn(h,v,k,T,O){}function Qn(h){var v=V.getStreamFromFD(h);return v.stream_ops&&v.stream_ops.fsync?-v.stream_ops.fsync(v):0}function zn(h,v,k,T){for(var O=0,X=0;X<k;X++){var K=F[v>>>2],q=F[v+4>>>2];v+=8;for(var te=0;te<q;te++)V.printChar(h,se[K+te>>>0]);O+=q}return F[T>>>2]=O,0}function Xn(h,v,k,T){var O=0,X=0,K=0,q=0,te=0,me=0,ve;function Ge(Se,ft,Ne,b,j,w){var B,ie,Te,Ue;return ie=Se===10?28:16,j=Se===10?Nt(j):Si(j),B=Mi(ie),Ue=Ei(B,Se,j,w),ae(!Ue),Te=Mi(32),F[Te+4>>>2]=Se,F[Te+8>>>2]=ft,F[Te+12>>>2]=Ne,F[Te+24>>>2]=b,F[Te+20>>>2]=B,Se===10?F[Te+16>>>2]=28:F[Te+16>>>2]=16,F[Te+28>>>2]=0,Te}if(k&&(K=F[k>>>2],q=F[k+4>>>2],te=F[k+8>>>2],me=F[k+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&&!v)return-2;if(K&-1088||k!==0&&F[k>>>2]&2&&!h)return-1;if(K&32)return-2;if(te!==0&&te!==1&&te!==2)return-7;if(q!==0&&q!==2&&q!==10)return-6;if(v&&(v=le(v),X=parseInt(v,10),isNaN(X)))return K&1024?-2:-8;if(!h)return q===0&&(q=2),(K&1)===0&&(q===2?O=ui(2130706433):O=[0,0,0,1]),ve=Ge(q,te,me,null,O,X),F[T>>>2]=ve,0;if(h=le(h),O=Xe(h),O!==null)if(q===0||q===2)q=2;else if(q===10&&K&8)O=[0,0,ui(65535),O],q=10;else return-2;else if(O=Xt(h),O!==null)if(q===0||q===10)q=10;else return-2;return O!=null?(ve=Ge(q,te,me,h,O,X),F[T>>>2]=ve,0):K&4?-2:(h=rt.lookup_name(h),O=Xe(h),q===0?q=2:q===10&&(O=[0,0,ui(65535),O]),ve=Ge(q,te,me,null,O,X),F[T>>>2]=ve,0)}function Jn(){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 v=require("crypto");return function(){return v.randomBytes(1)[0]}}catch{}return function(){Ke("randomDevice")}}function ti(h,v){ti.randomDevice||(ti.randomDevice=Jn());for(var k=0;k<v;k++)ze[h+k>>>0]=ti.randomDevice();return 0}function Zn(h,v,k,T,O,X,K){var q=Ji(h,v);if(q.errno)return-6;var te=q.port,me=q.addr,ve=!1;if(k&&T){var Ge;if(K&1||!(Ge=rt.lookup_addr(me))){if(K&8)return-2}else me=Ge;var Se=We(me,k,T);Se+1>=T&&(ve=!0)}if(O&&X){te=""+te;var Se=We(te,O,X);Se+1>=X&&(ve=!0)}return ve?-12:0}function ii(h){return h%4===0&&(h%100!==0||h%400===0)}function ea(h,v){for(var k=0,T=0;T<=v;k+=h[T++]);return k}var Pi=[31,29,31,30,31,30,31,31,30,31,30,31],ri=[31,28,31,30,31,30,31,31,30,31,30,31];function ta(h,v){for(var k=new Date(h.getTime());v>0;){var T=ii(k.getFullYear()),O=k.getMonth(),X=(T?Pi:ri)[O];if(v>X-k.getDate())v-=X-k.getDate()+1,k.setDate(1),O<11?k.setMonth(O+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else return k.setDate(k.getDate()+v),k}return k}function ia(h,v,k,T){var O=F[T+40>>>2],X={tm_sec:F[T>>>2],tm_min:F[T+4>>>2],tm_hour:F[T+8>>>2],tm_mday:F[T+12>>>2],tm_mon:F[T+16>>>2],tm_year:F[T+20>>>2],tm_wday:F[T+24>>>2],tm_yday:F[T+28>>>2],tm_isdst:F[T+32>>>2],tm_gmtoff:F[T+36>>>2],tm_zone:O?le(O):""},K=le(k),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)K=K.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 Ge(B,ie,Te){for(var Ue=typeof B=="number"?B.toString():B||"";Ue.length<ie;)Ue=Te[0]+Ue;return Ue}function Se(B,ie){return Ge(B,ie,"0")}function ft(B,ie){function Te(Ut){return Ut<0?-1:Ut>0?1:0}var Ue;return(Ue=Te(B.getFullYear()-ie.getFullYear()))===0&&(Ue=Te(B.getMonth()-ie.getMonth()))===0&&(Ue=Te(B.getDate()-ie.getDate())),Ue}function Ne(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 b(B){var ie=ta(new Date(B.tm_year+1900,0,1),B.tm_yday),Te=new Date(ie.getFullYear(),0,4),Ue=new Date(ie.getFullYear()+1,0,4),Ut=Ne(Te),dr=Ne(Ue);return ft(Ut,ie)<=0?ft(dr,ie)<=0?ie.getFullYear()+1:ie.getFullYear():ie.getFullYear()-1}var j={"%a":function(B){return me[B.tm_wday].substring(0,3)},"%A":function(B){return me[B.tm_wday]},"%b":function(B){return ve[B.tm_mon].substring(0,3)},"%B":function(B){return ve[B.tm_mon]},"%C":function(B){var ie=B.tm_year+1900;return Se(ie/100|0,2)},"%d":function(B){return Se(B.tm_mday,2)},"%e":function(B){return Ge(B.tm_mday,2," ")},"%g":function(B){return b(B).toString().substring(2)},"%G":function(B){return b(B)},"%H":function(B){return Se(B.tm_hour,2)},"%I":function(B){var ie=B.tm_hour;return ie==0?ie=12:ie>12&&(ie-=12),Se(ie,2)},"%j":function(B){return Se(B.tm_mday+ea(ii(B.tm_year+1900)?Pi:ri,B.tm_mon-1),3)},"%m":function(B){return Se(B.tm_mon+1,2)},"%M":function(B){return Se(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 Se(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 Se(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 Ue=(B.tm_wday+371-B.tm_yday)%7;Ue!=4&&(Ue!=3||!ii(B.tm_year))&&(ie=1)}}else{ie=52;var Te=(B.tm_wday+7-B.tm_yday-1)%7;(Te==4||Te==5&&ii(B.tm_year%400-1))&&ie++}return Se(ie,2)},"%w":function(B){return B.tm_wday},"%W":function(B){var ie=B.tm_yday+7-(B.tm_wday+6)%7;return Se(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,Te=ie>=0;return ie=Math.abs(ie)/60,ie=ie/60*100+ie%60,(Te?"+":"-")+String("0000"+ie).slice(-4)},"%Z":function(B){return B.tm_zone},"%%":function(){return"%"}};K=K.replace(/%%/g,"\0\0");for(var te in j)K.includes(te)&&(K=K.replace(new RegExp(te,"g"),j[te](X)));K=K.replace(/\0\0/g,"%");var w=Ii(K,!1);return w.length>v?0:(_t(w,h),w.length-1)}function ra(h,v,k,T){return ia(h,v,k,T)}function Ii(h,v,k){var T=k>0?k:Pe(h)+1,O=new Array(T),X=Qe(h,O,0,O.length);return v&&(O.length=X),O}var na={a:zt,P:sn,R:on,Q:ln,J:cn,b:fn,$:_n,u:dn,X:pn,L:hn,O:He,ba:yn,Y:mn,aa:tr,Z:Lt,o:Ai,M:ir,H:rr,m:Jt,N:Zt,k:Ri,_:nt,n:nr,T:vn,V:gn,U:bn,da:jn,ca:Cn,d:sr,B:Ti,C:kn,z:Sn,A:En,i:An,x:Rn,E:Tn,y:Dn,F:Pn,f:In,D:Fn,j:Mn,w:xn,g:On,G:Nn,ea:ur,S:ei,fa:Ln,ga:Un,q:qn,r:$n,c:Wn,t:Kn,s:Gn,h:Vn,v:Yn,I:Qn,e:zn,l:Xn,W:ti,K:Zn,p:ra},ni=tt(),aa=e.___wasm_call_ctors=function(){return(aa=e.___wasm_call_ctors=e.asm.ia).apply(null,arguments)},sa=e._main=function(){return(sa=e._main=e.asm.ja).apply(null,arguments)},ua=e._duckdb_web_fs_glob_add_path=function(){return(ua=e._duckdb_web_fs_glob_add_path=e.asm.ka).apply(null,arguments)},oa=e._duckdb_web_clear_response=function(){return(oa=e._duckdb_web_clear_response=e.asm.la).apply(null,arguments)},la=e._duckdb_web_fail_with=function(){return(la=e._duckdb_web_fail_with=e.asm.ma).apply(null,arguments)},ca=e._duckdb_web_reset=function(){return(ca=e._duckdb_web_reset=e.asm.na).apply(null,arguments)},fa=e._duckdb_web_connect=function(){return(fa=e._duckdb_web_connect=e.asm.oa).apply(null,arguments)},_a=e._duckdb_web_disconnect=function(){return(_a=e._duckdb_web_disconnect=e.asm.pa).apply(null,arguments)},da=e._duckdb_web_flush_files=function(){return(da=e._duckdb_web_flush_files=e.asm.qa).apply(null,arguments)},pa=e._duckdb_web_flush_file=function(){return(pa=e._duckdb_web_flush_file=e.asm.ra).apply(null,arguments)},ha=e._duckdb_web_open=function(){return(ha=e._duckdb_web_open=e.asm.sa).apply(null,arguments)},ya=e._duckdb_web_get_global_file_info=function(){return(ya=e._duckdb_web_get_global_file_info=e.asm.ta).apply(null,arguments)},ai=e._duckdb_web_collect_file_stats=function(){return(ai=e._duckdb_web_collect_file_stats=e.asm.ua).apply(null,arguments)},ma=e._duckdb_web_export_file_stats=function(){return(ma=e._duckdb_web_export_file_stats=e.asm.va).apply(null,arguments)},va=e._duckdb_web_fs_drop_file=function(){return(va=e._duckdb_web_fs_drop_file=e.asm.wa).apply(null,arguments)},ga=e._duckdb_web_fs_drop_files=function(){return(ga=e._duckdb_web_fs_drop_files=e.asm.xa).apply(null,arguments)},si=e._duckdb_web_fs_glob_file_infos=function(){return(si=e._duckdb_web_fs_glob_file_infos=e.asm.ya).apply(null,arguments)},ba=e._duckdb_web_fs_get_file_info_by_id=function(){return(ba=e._duckdb_web_fs_get_file_info_by_id=e.asm.za).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.Aa).apply(null,arguments)},lr=e._duckdb_web_fs_set_file_descriptor=function(){return(lr=e._duckdb_web_fs_set_file_descriptor=e.asm.Ba).apply(null,arguments)},ja=e._duckdb_web_fs_register_file_url=function(){return(ja=e._duckdb_web_fs_register_file_url=e.asm.Ca).apply(null,arguments)},wa=e._duckdb_web_fs_register_file_buffer=function(){return(wa=e._duckdb_web_fs_register_file_buffer=e.asm.Da).apply(null,arguments)},Ca=e._duckdb_web_copy_file_to_buffer=function(){return(Ca=e._duckdb_web_copy_file_to_buffer=e.asm.Ea).apply(null,arguments)},ka=e._duckdb_web_copy_file_to_path=function(){return(ka=e._duckdb_web_copy_file_to_path=e.asm.Fa).apply(null,arguments)},Sa=e._duckdb_web_get_version=function(){return(Sa=e._duckdb_web_get_version=e.asm.Ga).apply(null,arguments)},Iu=e._duckdb_web_get_feature_flags=function(){return(Iu=e._duckdb_web_get_feature_flags=e.asm.Ha).apply(null,arguments)},Ea=e._duckdb_web_tokenize=function(){return(Ea=e._duckdb_web_tokenize=e.asm.Ia).apply(null,arguments)},Aa=e._duckdb_web_udf_scalar_create=function(){return(Aa=e._duckdb_web_udf_scalar_create=e.asm.Ja).apply(null,arguments)},Ra=e._duckdb_web_prepared_create=function(){return(Ra=e._duckdb_web_prepared_create=e.asm.Ka).apply(null,arguments)},Ta=e._duckdb_web_prepared_close=function(){return(Ta=e._duckdb_web_prepared_close=e.asm.La).apply(null,arguments)},Da=e._duckdb_web_prepared_run=function(){return(Da=e._duckdb_web_prepared_run=e.asm.Ma).apply(null,arguments)},Pa=e._duckdb_web_prepared_send=function(){return(Pa=e._duckdb_web_prepared_send=e.asm.Na).apply(null,arguments)},Ia=e._duckdb_web_query_run=function(){return(Ia=e._duckdb_web_query_run=e.asm.Oa).apply(null,arguments)},Fa=e._duckdb_web_pending_query_start=function(){return(Fa=e._duckdb_web_pending_query_start=e.asm.Pa).apply(null,arguments)},Ma=e._duckdb_web_pending_query_poll=function(){return(Ma=e._duckdb_web_pending_query_poll=e.asm.Qa).apply(null,arguments)},xa=e._duckdb_web_pending_query_cancel=function(){return(xa=e._duckdb_web_pending_query_cancel=e.asm.Ra).apply(null,arguments)},Oa=e._duckdb_web_query_fetch_results=function(){return(Oa=e._duckdb_web_query_fetch_results=e.asm.Sa).apply(null,arguments)},Na=e._duckdb_web_get_tablenames=function(){return(Na=e._duckdb_web_get_tablenames=e.asm.Ta).apply(null,arguments)},La=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(La=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Ua).apply(null,arguments)},Ba=e._duckdb_web_insert_csv_from_path=function(){return(Ba=e._duckdb_web_insert_csv_from_path=e.asm.Va).apply(null,arguments)},Ua=e._duckdb_web_insert_json_from_path=function(){return(Ua=e._duckdb_web_insert_json_from_path=e.asm.Wa).apply(null,arguments)},ui=e._htonl=function(){return(ui=e._htonl=e.asm.Xa).apply(null,arguments)},oi=e._htons=function(){return(oi=e._htons=e.asm.Ya).apply(null,arguments)},Fi=e._ntohs=function(){return(Fi=e._ntohs=e.asm.Za).apply(null,arguments)},Mi=e._malloc=function(){return(Mi=e._malloc=e.asm._a).apply(null,arguments)},Ha=e._free=function(){return(Ha=e._free=e.asm.$a).apply(null,arguments)},cr=e.stackSave=function(){return(cr=e.stackSave=e.asm.ab).apply(null,arguments)},fr=e.stackRestore=function(){return(fr=e.stackRestore=e.asm.bb).apply(null,arguments)},xi=e.stackAlloc=function(){return(xi=e.stackAlloc=e.asm.cb).apply(null,arguments)};e.ccall=D;var li;function ci(h){this.name="ExitStatus",this.message="Program terminated with exit("+h+")",this.status=h}var qa=!1;xt=function h(){li||Oi(),li||(xt=h)};function $a(h){var v=e._main,k=0,T=0;try{var O=v(k,T);return Wa(O,!0),O}catch(X){return Qt(X)}finally{qa=!0}}function Oi(h){if(h=h||g,wt>0||(Ki(),wt>0))return;function v(){li||(li=!0,e.calledRun=!0,!M&&(Zr(),Gi(),o(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),_r&&$a(h),en()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),v()},1)):v()}e.run=Oi;function Wa(h,v){oe=h,Ka(h)}function Ka(h){oe=h,Wi()||(e.onExit&&e.onExit(h),M=!0),A(h,new ci(h))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var _r=!0;return e.noInitialRun&&(_r=!1),Oi(),t.ready}})(),hf=rg;var yf={},ng=(()=>{var r=yf.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},o,d;e.ready=new Promise(function(i,n){o=i,d=n});var m=Object.assign({},e),g=[],S="./this.program",A=(i,n)=>{throw n},N=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 G,z,Z,ue;function be(i){if(i instanceof hr)return;J("exiting due to exception: "+i)}var ye,Ae,ne;U?(R?P=require("path").dirname(P)+"/":P=__dirname+"/",ne=()=>{Ae||(ye=require("fs"),Ae=require("path"))},G=function(n,a){return ne(),n=Ae.normalize(n),ye.readFileSync(n,a?void 0:"utf8")},Z=i=>{var n=G(i,!0);return n.buffer||(n=new Uint8Array(n)),n},z=(i,n,a)=>{ne(),i=Ae.normalize(i),ye.readFile(i,function(s,u){s?a(s):n(u.buffer)})},process.argv.length>1&&(S=process.argv[1].replace(/\\/g,"/")),g=process.argv.slice(2),process.on("uncaughtException",function(i){if(!(i instanceof hr))throw i}),process.on("unhandledRejection",function(i){throw i}),A=(i,n)=>{if(Gi())throw process.exitCode=i,n;be(n),process.exit(i)},e.inspect=function(){return"[Emscripten Module object]"}):(N||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="",G=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)},ue=i=>document.title=i);var we=e.print||console.log.bind(console),J=e.printErr||console.warn.bind(console);Object.assign(e,m),m=null,e.arguments&&(g=e.arguments),e.thisProgram&&(S=e.thisProgram),e.quit&&(A=e.quit);var ee=0,H=i=>{ee=i},pe=()=>ee,M;e.wasmBinary&&(M=e.wasmBinary);var oe=e.noExitRuntime||!0;typeof WebAssembly!="object"&&Ie("no native wasm support detected");var ae,Ce=!1,D;function I(i,n){i||Ie(n)}function De(i){var n=e["_"+i];return n}function le(i,n,a,s,u){var l={string:function(Y){var _e=0;if(Y!=null&&Y!==0){var ke=(Y.length<<2)+1;_e=B(ke),Mt(Y,_e,ke)}return _e},array:function(Y){var _e=B(Y.length);return ze(Y,_e),_e}};function c(Y){return n==="string"?Pe(Y):n==="boolean"?Boolean(Y):Y}var f=De(i),_=[],p=0;if(s)for(var y=0;y<s.length;y++){var C=l[a[y]];C?(p===0&&(p=j()),_[y]=C(s[y])):_[y]=s[y]}var E=f.apply(null,_);function $(Y){return p!==0&&w(p),c(Y)}return E=$(E),E}var Qe=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function We(i,n,a){n>>>=0;for(var s=n+a,u=n;i[u]&&!(u>=s);)++u;if(u-n>16&&i.buffer&&Qe)return Qe.decode(i.subarray(n,u));for(var l="";n<u;){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 Pe(i,n){return i>>>=0,i?We(F,i,n):""}function _t(i,n,a,s){if(a>>>=0,!(s>0))return 0;for(var u=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-u}function Mt(i,n,a){return _t(i,F,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,F,ge,W,x,Re,qe,Me;function jt(i){st=i,e.HEAP8=et=new Int8Array(i),e.HEAP16=ge=new Int16Array(i),e.HEAP32=x=new Int32Array(i),e.HEAPU8=F=new Uint8Array(i),e.HEAPU16=W=new Uint16Array(i),e.HEAPU32=Re=new Uint32Array(i),e.HEAPF32=qe=new Float32Array(i),e.HEAPF64=Me=new Float64Array(i)}var At=e.INITIAL_MEMORY||16777216,qi,wi=[],$i=[],Wi=[],Ki=[],Zr=!1;function Gi(){return oe}function en(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)wt(e.preRun.shift());Qt(wi)}function tn(){Zr=!0,Qt($i)}function rn(){Qt(Wi)}function nn(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)xt(e.postRun.shift());Qt(Ki)}function wt(i){wi.unshift(i)}function Ci(i){$i.unshift(i)}function xt(i){Ki.unshift(i)}var Ct=0,ki=null,Ke=null;function an(i){Ct++,e.monitorRunDependencies&&e.monitorRunDependencies(Ct)}function Vi(i){if(Ct--,e.monitorRunDependencies&&e.monitorRunDependencies(Ct),Ct==0&&(ki!==null&&(clearInterval(ki),ki=null),Ke)){var n=Ke;Ke=null,n()}}function Ie(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 Yi="data:application/octet-stream;base64,";function Qi(i){return i.startsWith(Yi)}var tt;e.locateFile?(tt="./duckdb-mvp.wasm",Qi(tt)||(tt=fe(tt))):tt=new URL("./duckdb-mvp.wasm",yf.url).toString();function Ot(i){try{if(i==tt&&M)return new Uint8Array(M);if(Z)return Z(i);throw"both async and sync fetching of the wasm failed"}catch(n){Ie(n)}}function Yt(){return!M&&(N||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 Ot(tt)}):Promise.resolve().then(function(){return Ot(tt)})}function zi(){var i={a:Sa};function n(c,f){var _=c.exports;e.asm=_,ae=e.asm.df,jt(ae.buffer),qi=e.asm.dg,Ci(e.asm.ef),Vi("wasm-instantiate")}an("wasm-instantiate");function a(c){n(c.instance)}function s(c){return Yt().then(function(f){return WebAssembly.instantiate(f,i)}).then(function(f){return f}).then(c,function(f){J("failed to asynchronously prepare wasm: "+f),Ie(f)})}function u(){return!M&&typeof WebAssembly.instantiateStreaming=="function"&&!Qi(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 u().catch(d),{}}function Qt(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 zt=[];function V(i){var n=zt[i];return n||(i>=zt.length&&(zt.length=i+1),zt[i]=n=qi.get(i)),n}function sn(i){if(i instanceof hr||i=="unwind")return D;A(1,i)}function un(i,n,a,s){Ie("Assertion failed: "+Pe(i)+", at: "+[n?Pe(n):"unknown filename",a,s?Pe(s):"unknown function"])}function Xi(i){return ft(i+24)+24}var dt=[];function Si(i){i.add_ref()}var Nt=0;function Ji(i){var n=new it(i);return n.get_caught()||(n.set_caught(!0),Nt--),n.set_rethrown(!1),dt.push(n),Si(n),n.get_exception_ptr()}var Xe=0;function it(i){this.excPtr=i,this.ptr=i-24,this.set_type=function(n){x[this.ptr+4>>>2]=n},this.get_type=function(){return x[this.ptr+4>>>2]},this.set_destructor=function(n){x[this.ptr+8>>>2]=n},this.get_destructor=function(){return x[this.ptr+8>>>2]},this.set_refcount=function(n){x[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=x[this.ptr>>>2];x[this.ptr>>>2]=n+1},this.release_ref=function(){var n=x[this.ptr>>>2];return x[this.ptr>>>2]=n-1,n===1},this.set_adjusted_ptr=function(n){x[this.ptr+16>>>2]=n},this.get_adjusted_ptr=function(){return x[this.ptr+16>>>2]},this.get_exception_ptr=function(){var n=Te(this.get_type());if(n)return x[this.excPtr>>>2];var a=this.get_adjusted_ptr();return a!==0?a:this.excPtr}}function Xt(i){return Ne(new it(i).ptr)}function rt(i){if(i.release_ref()&&!i.get_rethrown()){var n=i.get_destructor();n&&V(n)(i.excPtr),Xt(i.excPtr)}}function Zi(){b(0);var i=dt.pop();rt(i),Xe=0}function on(i){throw Xe||(Xe=i),i}function ln(){var i=Xe;if(!i)return H(0),0;var n=new it(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),u=0;u<s.length;u++){var l=s[u];if(l===0||l===a)break;var c=n.ptr+16;if(ie(l,a,c))return H(l),i|0}return H(a),i|0}function cn(){var i=Xe;if(!i)return H(0),0;var n=new it(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),u=0;u<s.length;u++){var l=s[u];if(l===0||l===a)break;var c=n.ptr+16;if(ie(l,a,c))return H(l),i|0}return H(a),i|0}function fn(){var i=Xe;if(!i)return H(0),0;var n=new it(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),u=0;u<s.length;u++){var l=s[u];if(l===0||l===a)break;var c=n.ptr+16;if(ie(l,a,c))return H(l),i|0}return H(a),i|0}function _n(){var i=Xe;if(!i)return H(0),0;var n=new it(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),u=0;u<s.length;u++){var l=s[u];if(l===0||l===a)break;var c=n.ptr+16;if(ie(l,a,c))return H(l),i|0}return H(a),i|0}function dn(){var i=Xe;if(!i)return H(0),0;var n=new it(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),u=0;u<s.length;u++){var l=s[u];if(l===0||l===a)break;var c=n.ptr+16;if(ie(l,a,c))return H(l),i|0}return H(a),i|0}function pn(){var i=Xe;if(!i)return H(0),0;var n=new it(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),u=0;u<s.length;u++){var l=s[u];if(l===0||l===a)break;var c=n.ptr+16;if(ie(l,a,c))return H(l),i|0}return H(a),i|0}function er(){var i=dt.pop();i||Ie("no exception to throw");var n=i.excPtr;throw i.get_rethrown()||(dt.push(i),i.set_rethrown(!0),i.set_caught(!1),Nt++),Xe=n,n}function Ei(i,n,a){var s=new it(i);throw s.init(n,a),Xe=i,Nt++,i}function hn(){return Nt}var He={buffers:[null,[],[]],printChar:function(i,n){var a=He.buffers[i];n===0||n===10?((i===1?we:J)(We(a,0)),a.length=0):a.push(n)},varargs:void 0,get:function(){He.varargs+=4;var i=x[He.varargs-4>>>2];return i},getStr:function(i){var n=Pe(i);return n}};function yn(i,n,a,s,u){}function mn(){J("missing function: $SOCKFS"),Ie(-1)}function tr(){J("missing function: $FS"),Ie(-1)}function Lt(i){var n=mn.getSocket(i);if(!n)throw new tr.ErrnoError(8);return n}function Ai(i){return(i&255)+"."+(i>>8&255)+"."+(i>>16&255)+"."+(i>>24&255)}function ir(i){var n="",a=0,s=0,u=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,y="";for(f=0;f<5;f++)if(_[f]!==0){p=!1;break}if(p){if(y=Ai(_[6]|_[7]<<16),_[5]===-1)return n="::ffff:",n+=y,n;if(_[5]===0)return n="::",y==="0.0.0.0"&&(y=""),y==="0.0.0.1"&&(y="1"),n+=y,n}for(a=0;a<8;a++)_[a]===0&&(a-u>1&&(c=0),u=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 rr(i,n){var a=ge[i>>>1],s=Se(W[i+2>>>1]),u;switch(a){case 2:if(n!==16)return{errno:28};u=x[i+4>>>2],u=Ai(u);break;case 10:if(n!==28)return{errno:28};u=[x[i+8>>>2],x[i+12>>>2],x[i+16>>>2],x[i+20>>>2]],u=ir(u);break;default:return{errno:5}}return{family:a,addr:u,port:s}}function Jt(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 Zt(i){return parseInt(i)}function Ri(i){var n,a,s,u,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]=Zt(n[n.length-4])+Zt(n[n.length-3])*256,n[n.length-3]=Zt(n[n.length-2])+Zt(n[n.length-1])*256,n=n.slice(0,n.length-2)):n=i.split(":"),s=0,u=0,a=0;a<n.length;a++)if(typeof n[a]=="string")if(n[a]==="Z"){for(u=0;u<8-n.length+1;u++)c[a+u]=0;s=u-1}else c[a+s]=Ge(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=Jt(i);if(n!==null||(n=Ri(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++;I(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 nr(i,n,a){if(a&&i===0)return null;var s=rr(i,n);if(s.errno)throw new tr.ErrnoError(s.errno);return s.addr=nt.lookup_addr(s.addr)||s.addr,s}function vn(i,n,a){var s=Lt(i),u=nr(n,a);return s.sock_ops.bind(s,u.addr,u.port),0}function ar(i,n,a){var s=Lt(i),u=nr(n,a);return s.sock_ops.connect(s,u.addr,u.port),0}function gn(i,n,a,s){return n=He.getStr(n),n=He.calculateAt(i,n),He.doAccess(n,a)}function bn(i,n,a){return He.varargs=a,0}function jn(i,n){}function wn(i,n,a){}function Cn(i,n,a){}function sr(i,n){F.fill(0,i,i+n)}function Ti(i,n,a,s,u){switch(n){case 2:a=Jt(a),sr(i,16),u&&(x[u>>>2]=16),ge[i>>>1]=n,x[i+4>>>2]=a,ge[i+2>>>1]=Ge(s);break;case 10:a=Ri(a),sr(i,28),u&&(x[u>>>2]=28),x[i>>>2]=n,x[i+8>>>2]=a[0],x[i+12>>>2]=a[1],x[i+16>>>2]=a[2],x[i+20>>>2]=a[3],ge[i+2>>>1]=Ge(s);break;default:return 5}return 0}function kn(i,n,a){var s=Lt(i);if(!s.daddr)return-53;var u=Ti(n,s.family,nt.lookup_name(s.daddr),s.dport,a);return 0}function Sn(i,n,a,s,u){var l=Lt(i);return n===1&&a===4?(x[s>>>2]=l.error,x[u>>>2]=4,l.error=null,0):-50}function En(i,n,a){return He.varargs=a,0}function An(i,n){}function Rn(i,n,a){}function Tn(i,n,a,s){}function Dn(i,n,a,s){He.varargs=s}function Pn(i,n,a,s,u,l){var c=Lt(i),f=c.sock_ops.recvmsg(c,a);if(!f)return 0;if(u)var _=Ti(u,c.family,nt.lookup_name(f.addr),f.port,l);return F.set(f.buffer,n>>>0),f.buffer.byteLength}function In(i,n,a,s){}function Fn(i){}function Mn(i,n,a,s,u,l){}function xn(i,n,a){}function On(i,n){}function Nn(i,n,a){}function ur(i){}var ei="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function Ln(i,n){Ie(ei)}function Bn(i,n){Ie(ei)}function Un(){return Date.now()}var Di=!0;function Hn(){return Di}function Bt(){Ie("")}function qn(i,n){return globalThis.DUCKDB_RUNTIME.createDirectory(e,i,n)}function $n(i,n){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,i,n)}function Wn(i,n){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,i,n)}function Kn(i,n){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,i,n)}function Gn(i){return globalThis.DUCKDB_RUNTIME.closeFile(e,i)}function Vn(i,n){return globalThis.DUCKDB_RUNTIME.checkFile(e,i,n)}function Yn(i){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,i)}function Qn(i,n,a,s){return globalThis.DUCKDB_RUNTIME.moveFile(e,i,n,a,s)}function zn(i,n){return globalThis.DUCKDB_RUNTIME.openFile(e,i,n)}function Xn(i,n,a,s){return globalThis.DUCKDB_RUNTIME.readFile(e,i,n,a,s)}function Jn(i,n){return globalThis.DUCKDB_RUNTIME.truncateFile(e,i,n)}function ti(i,n,a,s){return globalThis.DUCKDB_RUNTIME.writeFile(e,i,n,a,s)}function Zn(i,n){return globalThis.DUCKDB_RUNTIME.glob(e,i,n)}function ii(i){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,i)}function ea(i,n,a,s,u,l){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,i,n,a,s,u,l)}function Pi(){return 4294901760}var ri;U?ri=()=>{var i=process.hrtime();return i[0]*1e3+i[1]/1e6}:ri=()=>performance.now();function ta(i,n,a){F.copyWithin(i>>>0,n>>>0,n+a>>>0)}function ia(i){try{return ae.grow(i-st.byteLength+65535>>>16),jt(ae.buffer),1}catch{}}function ra(i){var n=F.length;i=i>>>0;var a=Pi();if(i>a)return!1;let s=(_,p)=>_+(p-_%p)%p;for(var u=1;u<=4;u*=2){var l=n*(1+.2/u);l=Math.min(l,i+100663296);var c=Math.min(a,s(Math.max(i,l),65536)),f=ia(c);if(f)return!0}return!1}var Ii={};function na(){return S||"./this.program"}function ni(){if(!ni.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,_:na()};for(var a in Ii)Ii[a]===void 0?delete n[a]:n[a]=Ii[a];var s=[];for(var a in n)s.push(a+"="+n[a]);ni.strings=s}return ni.strings}function aa(i,n){var a=0;return ni().forEach(function(s,u){var l=n+a;x[i+u*4>>>2]=l,se(s,l),a+=s.length+1}),0}function sa(i,n){var a=ni();x[i>>>2]=a.length;var s=0;return a.forEach(function(u){s+=u.length+1}),x[n>>>2]=s,0}function ua(i){return 0}function oa(i,n,a,s,u,l){var c=He.getStreamFromFD(i),f=He.doReadv(c,n,a,s);return x[l>>>2]=f,0}function la(i,n,a,s,u,l){var c=He.getStreamFromFD(i),f=He.doWritev(c,n,a,s);return x[l>>>2]=f,0}function ca(i,n,a,s){var u=He.getStreamFromFD(i),l=He.doReadv(u,n,a);return x[s>>>2]=l,0}function fa(i,n,a,s,u){}function _a(i){var n=He.getStreamFromFD(i);return n.stream_ops&&n.stream_ops.fsync?-n.stream_ops.fsync(n):0}function da(i,n,a,s){for(var u=0,l=0;l<a;l++){var c=x[n>>>2],f=x[n+4>>>2];n+=8;for(var _=0;_<f;_++)He.printChar(i,F[c+_>>>0]);u+=f}return x[s>>>2]=u,0}function pa(){return pe()}function ha(i,n,a,s){var u=0,l=0,c=0,f=0,_=0,p=0,y;function C(E,$,Y,_e,ke,Le){var L,re,Oe,Ve;return re=E===10?28:16,ke=E===10?ir(ke):Ai(ke),L=ft(re),Ve=Ti(L,E,ke,Le),I(!Ve),Oe=ft(32),x[Oe+4>>>2]=E,x[Oe+8>>>2]=$,x[Oe+12>>>2]=Y,x[Oe+24>>>2]=_e,x[Oe+20>>>2]=L,E===10?x[Oe+16>>>2]=28:x[Oe+16>>>2]=16,x[Oe+28>>>2]=0,Oe}if(a&&(c=x[a>>>2],f=x[a+4>>>2],_=x[a+8>>>2],p=x[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&&x[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=Pe(n),l=parseInt(n,10),isNaN(l)))return c&1024?-2:-8;if(!i)return f===0&&(f=2),(c&1)===0&&(f===2?u=ve(2130706433):u=[0,0,0,1]),y=C(f,_,p,null,u,l),x[s>>>2]=y,0;if(i=Pe(i),u=Jt(i),u!==null)if(f===0||f===2)f=2;else if(f===10&&c&8)u=[0,0,ve(65535),u],f=10;else return-2;else if(u=Ri(i),u!==null)if(f===0||f===10)f=10;else return-2;return u!=null?(y=C(f,_,p,i,u,l),x[s>>>2]=y,0):c&4?-2:(i=nt.lookup_name(i),u=Jt(i),f===0?f=2:f===10&&(u=[0,0,ve(65535),u]),y=C(f,_,p,null,u,l),x[s>>>2]=y,0)}function ya(){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(){Ie("randomDevice")}}function ai(i,n){ai.randomDevice||(ai.randomDevice=ya());for(var a=0;a<n;a++)et[i+a>>>0]=ai.randomDevice();return 0}function ma(i,n,a,s,u,l,c){var f=rr(i,n);if(f.errno)return-6;var _=f.port,p=f.addr,y=!1;if(a&&s){var C;if(c&1||!(C=nt.lookup_addr(p))){if(c&8)return-2}else p=C;var E=Mt(p,a,s);E+1>=s&&(y=!0)}if(u&&l){_=""+_;var E=Mt(_,u,l);E+1>=l&&(y=!0)}return y?-12:0}function va(i){return i}function ga(i){H(i)}function si(i){return i%4===0&&(i%100!==0||i%400===0)}function ba(i,n){for(var a=0,s=0;s<=n;a+=i[s++]);return a}var or=[31,29,31,30,31,30,31,31,30,31,30,31],lr=[31,28,31,30,31,30,31,31,30,31,30,31];function ja(i,n){for(var a=new Date(i.getTime());n>0;){var s=si(a.getFullYear()),u=a.getMonth(),l=(s?or:lr)[u];if(n>l-a.getDate())n-=l-a.getDate()+1,a.setDate(1),u<11?a.setMonth(u+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else return a.setDate(a.getDate()+n),a}return a}function wa(i,n,a,s){var u=x[s+40>>>2],l={tm_sec:x[s>>>2],tm_min:x[s+4>>>2],tm_hour:x[s+8>>>2],tm_mday:x[s+12>>>2],tm_mon:x[s+16>>>2],tm_year:x[s+20>>>2],tm_wday:x[s+24>>>2],tm_yday:x[s+28>>>2],tm_isdst:x[s+32>>>2],tm_gmtoff:x[s+36>>>2],tm_zone:u?Pe(u):""},c=Pe(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"],y=["January","February","March","April","May","June","July","August","September","October","November","December"];function C(L,re,Oe){for(var Ve=typeof L=="number"?L.toString():L||"";Ve.length<re;)Ve=Oe[0]+Ve;return Ve}function E(L,re){return C(L,re,"0")}function $(L,re){function Oe(yr){return yr<0?-1:yr>0?1:0}var Ve;return(Ve=Oe(L.getFullYear()-re.getFullYear()))===0&&(Ve=Oe(L.getMonth()-re.getMonth()))===0&&(Ve=Oe(L.getDate()-re.getDate())),Ve}function Y(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 _e(L){var re=ja(new Date(L.tm_year+1900,0,1),L.tm_yday),Oe=new Date(re.getFullYear(),0,4),Ve=new Date(re.getFullYear()+1,0,4),yr=Y(Oe),Qv=Y(Ve);return $(yr,re)<=0?$(Qv,re)<=0?re.getFullYear()+1:re.getFullYear():re.getFullYear()-1}var ke={"%a":function(L){return p[L.tm_wday].substring(0,3)},"%A":function(L){return p[L.tm_wday]},"%b":function(L){return y[L.tm_mon].substring(0,3)},"%B":function(L){return y[L.tm_mon]},"%C":function(L){var re=L.tm_year+1900;return E(re/100|0,2)},"%d":function(L){return E(L.tm_mday,2)},"%e":function(L){return C(L.tm_mday,2," ")},"%g":function(L){return _e(L).toString().substring(2)},"%G":function(L){return _e(L)},"%H":function(L){return E(L.tm_hour,2)},"%I":function(L){var re=L.tm_hour;return re==0?re=12:re>12&&(re-=12),E(re,2)},"%j":function(L){return E(L.tm_mday+ba(si(L.tm_year+1900)?or:lr,L.tm_mon-1),3)},"%m":function(L){return E(L.tm_mon+1,2)},"%M":function(L){return E(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 E(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 E(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 Ve=(L.tm_wday+371-L.tm_yday)%7;Ve!=4&&(Ve!=3||!si(L.tm_year))&&(re=1)}}else{re=52;var Oe=(L.tm_wday+7-L.tm_yday-1)%7;(Oe==4||Oe==5&&si(L.tm_year%400-1))&&re++}return E(re,2)},"%w":function(L){return L.tm_wday},"%W":function(L){var re=L.tm_yday+7-(L.tm_wday+6)%7;return E(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,Oe=re>=0;return re=Math.abs(re)/60,re=re/60*100+re%60,(Oe?"+":"-")+String("0000"+re).slice(-4)},"%Z":function(L){return L.tm_zone},"%%":function(){return"%"}};c=c.replace(/%%/g,"\0\0");for(var _ in ke)c.includes(_)&&(c=c.replace(new RegExp(_,"g"),ke[_](l)));c=c.replace(/\0\0/g,"%");var Le=ka(c,!1);return Le.length>n?0:(ze(Le,i),Le.length-1)}function Ca(i,n,a,s){return wa(i,n,a,s)}function ka(i,n,a){var s=a>0?a:bt(i)+1,u=new Array(s),l=_t(i,u,0,u.length);return n&&(u.length=l),u}var Sa={p:un,j:Xi,C:Ji,H:Zi,b:ln,n:cn,G:fn,U:_n,Z:dn,ya:pn,i:Xt,ja:er,w:Ei,J:hn,e:on,Fa:yn,Ha:vn,Ga:ar,cf:gn,V:bn,Ua:jn,Fe:wn,Qa:Cn,Ba:kn,Ea:Sn,Wa:En,Ra:An,Va:Rn,Sa:Tn,pa:Dn,Ca:Pn,af:In,na:Fn,Da:Mn,ma:xn,Ta:On,oa:Nn,Ja:ur,La:Ln,Ka:Bn,Ya:Un,Xa:Hn,ea:Bt,Ve:qn,We:$n,Te:Wn,Ue:Kn,wa:Gn,Re:Vn,Ye:Yn,Se:Qn,Ze:zn,la:Xn,Xe:Jn,xa:ti,Qe:Zn,va:ii,_e:ea,Za:Pi,Ce:ri,Cb:ta,vd:ra,$a:aa,ab:sa,aa:ua,Ee:oa,Ab:la,ra:ca,Ne:fa,bf:_a,ka:da,a:pa,Ia:ha,Pa:ai,Aa:ma,ta:ch,O:qp,$:wp,T:rh,Yb:Xm,ua:lh,ba:Lp,sa:jp,Zb:zm,x:Rp,ha:Hp,t:Wp,ca:eh,ia:Up,u:$p,d:pp,ga:ah,R:Vp,c:hp,X:Jp,Qb:av,Nb:ov,h:mp,Ma:nh,Lb:cv,m:bp,qa:xp,o:vp,Na:Zp,y:Dp,z:Sp,Q:Yp,Y:Bp,fa:Ep,A:Pp,B:Ap,I:ih,r:Gp,$b:Ym,gc:Hm,Fc:ym,ne:xh,ac:Vm,Mb:lv,Xb:Jm,hc:Um,oe:Mh,_d:zh,gb:Bv,Je:yh,$d:Qh,Wd:ey,cc:Km,Ie:mh,Vb:ev,Ed:vy,cb:$v,bb:Wv,me:Oh,ae:Yh,Db:vv,bd:Gy,pe:Fh,Jc:_m,Wb:Zm,Kb:fv,te:Th,je:Bh,be:Vh,Xd:Zh,Td:ry,ge:qh,sb:Av,le:Nh,ze:Ch,ee:Wh,Dd:gy,Ob:uv,Pb:sv,Eb:mv,he:Hh,fb:Uv,Gd:yy,He:vh,ke:Lh,Ud:iy,se:Dh,qd:Py,ob:Pv,ic:Bm,ce:Gh,ie:Uh,Cd:by,pd:Iy,od:Fy,id:By,Xc:Jy,xc:km,jd:Ly,uc:Am,fd:qy,yc:Cm,Be:jh,Mc:lm,Lc:cm,Me:dh,Le:ph,cd:Ky,Pe:fh,Nd:ly,Hc:pm,bc:Gm,Kc:fm,Ib:dv,Zc:zy,dc:Wm,Jb:_v,Pd:uy,Jd:dy,Sc:rm,Hb:pv,zc:wm,fc:qm,_b:Qm,Ld:fy,zd:Cy,Tc:im,Gc:hm,Qd:sy,wd:Ey,db:qv,Bc:bm,Ac:jm,td:Ry,ue:Rh,jc:Lm,Cc:gm,qc:Pm,kc:Nm,lc:Om,pc:Im,v:_p,k:yp,D:Kp,wb:Cv,L:Qp,xb:wv,f:dp,S:Cp,_:th,g:kp,l:gp,$e:oh,s:Np,q:Mp,za:sh,F:Tp,M:Op,W:Xp,N:Ip,P:uh,Oa:zp,da:Fp,nd:My,vb:kv,Fd:my,sc:Tm,vc:Em,zb:bv,Rb:nv,qb:Tv,xe:Sh,Ic:dm,dd:Wy,mb:Fv,gd:Hy,hd:Uy,rc:Dm,_c:Qy,Uc:tm,rd:Dy,Tb:iv,Sb:rv,we:Eh,ed:$y,md:xy,ad:Vy,Qc:am,Fb:yv,eb:Hv,Gb:hv,ec:$m,pb:Dv,qe:Ih,Sd:ny,Ub:tv,Oc:um,Wc:Zy,kd:Ny,Yc:Xy,nb:Iv,De:bh,Ge:gh,Ke:hh,Vd:ty,lb:Mv,yd:ky,mc:xm,Rc:nm,xd:Sy,sd:Ty,Kd:_y,rb:Rv,de:Kh,kb:xv,Pc:sm,tb:Ev,Oe:_h,ye:kh,Ad:wy,nc:Mm,fe:$h,ve:Ah,re:Ph,Bd:jy,Zd:Xh,Yd:Jh,ud:Ay,yb:jv,Hd:hy,Ec:mm,Nc:om,ld:Oy,jb:Ov,Vc:em,ub:Sv,Id:py,$c:Yy,hb:Lv,ib:Nv,Dc:vm,Ae:wh,Od:oy,Bb:gv,tc:Rm,wc:Sm,oc:Fm,Rd:ay,Md:cy,E:va,K:ga,_a:Ca},Iu=zi(),Ea=e.___wasm_call_ctors=function(){return(Ea=e.___wasm_call_ctors=e.asm.ef).apply(null,arguments)},Aa=e._main=function(){return(Aa=e._main=e.asm.ff).apply(null,arguments)},Ra=e._duckdb_web_fs_glob_add_path=function(){return(Ra=e._duckdb_web_fs_glob_add_path=e.asm.gf).apply(null,arguments)},Ta=e._duckdb_web_clear_response=function(){return(Ta=e._duckdb_web_clear_response=e.asm.hf).apply(null,arguments)},Da=e._duckdb_web_fail_with=function(){return(Da=e._duckdb_web_fail_with=e.asm.jf).apply(null,arguments)},Pa=e._duckdb_web_reset=function(){return(Pa=e._duckdb_web_reset=e.asm.kf).apply(null,arguments)},Ia=e._duckdb_web_connect=function(){return(Ia=e._duckdb_web_connect=e.asm.lf).apply(null,arguments)},Fa=e._duckdb_web_disconnect=function(){return(Fa=e._duckdb_web_disconnect=e.asm.mf).apply(null,arguments)},Ma=e._duckdb_web_flush_files=function(){return(Ma=e._duckdb_web_flush_files=e.asm.nf).apply(null,arguments)},xa=e._duckdb_web_flush_file=function(){return(xa=e._duckdb_web_flush_file=e.asm.of).apply(null,arguments)},Oa=e._duckdb_web_open=function(){return(Oa=e._duckdb_web_open=e.asm.pf).apply(null,arguments)},Na=e._duckdb_web_get_global_file_info=function(){return(Na=e._duckdb_web_get_global_file_info=e.asm.qf).apply(null,arguments)},La=e._duckdb_web_collect_file_stats=function(){return(La=e._duckdb_web_collect_file_stats=e.asm.rf).apply(null,arguments)},Ba=e._duckdb_web_export_file_stats=function(){return(Ba=e._duckdb_web_export_file_stats=e.asm.sf).apply(null,arguments)},Ua=e._duckdb_web_fs_drop_file=function(){return(Ua=e._duckdb_web_fs_drop_file=e.asm.tf).apply(null,arguments)},ui=e._duckdb_web_fs_drop_files=function(){return(ui=e._duckdb_web_fs_drop_files=e.asm.uf).apply(null,arguments)},oi=e._duckdb_web_fs_glob_file_infos=function(){return(oi=e._duckdb_web_fs_glob_file_infos=e.asm.vf).apply(null,arguments)},Fi=e._duckdb_web_fs_get_file_info_by_id=function(){return(Fi=e._duckdb_web_fs_get_file_info_by_id=e.asm.wf).apply(null,arguments)},Mi=e._duckdb_web_fs_get_file_info_by_name=function(){return(Mi=e._duckdb_web_fs_get_file_info_by_name=e.asm.xf).apply(null,arguments)},Ha=e._duckdb_web_fs_set_file_descriptor=function(){return(Ha=e._duckdb_web_fs_set_file_descriptor=e.asm.yf).apply(null,arguments)},cr=e._duckdb_web_fs_register_file_url=function(){return(cr=e._duckdb_web_fs_register_file_url=e.asm.zf).apply(null,arguments)},fr=e._duckdb_web_fs_register_file_buffer=function(){return(fr=e._duckdb_web_fs_register_file_buffer=e.asm.Af).apply(null,arguments)},xi=e._duckdb_web_copy_file_to_buffer=function(){return(xi=e._duckdb_web_copy_file_to_buffer=e.asm.Bf).apply(null,arguments)},li=e._duckdb_web_copy_file_to_path=function(){return(li=e._duckdb_web_copy_file_to_path=e.asm.Cf).apply(null,arguments)},ci=e._duckdb_web_get_version=function(){return(ci=e._duckdb_web_get_version=e.asm.Df).apply(null,arguments)},qa=e._duckdb_web_get_feature_flags=function(){return(qa=e._duckdb_web_get_feature_flags=e.asm.Ef).apply(null,arguments)},$a=e._duckdb_web_tokenize=function(){return($a=e._duckdb_web_tokenize=e.asm.Ff).apply(null,arguments)},Oi=e._duckdb_web_udf_scalar_create=function(){return(Oi=e._duckdb_web_udf_scalar_create=e.asm.Gf).apply(null,arguments)},Wa=e._duckdb_web_prepared_create=function(){return(Wa=e._duckdb_web_prepared_create=e.asm.Hf).apply(null,arguments)},Ka=e._duckdb_web_prepared_close=function(){return(Ka=e._duckdb_web_prepared_close=e.asm.If).apply(null,arguments)},_r=e._duckdb_web_prepared_run=function(){return(_r=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)},v=e._duckdb_web_query_run=function(){return(v=e._duckdb_web_query_run=e.asm.Lf).apply(null,arguments)},k=e._duckdb_web_pending_query_start=function(){return(k=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)},O=e._duckdb_web_pending_query_cancel=function(){return(O=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)},K=e._duckdb_web_get_tablenames=function(){return(K=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)},Ge=e._htons=function(){return(Ge=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)},Ne=e._free=function(){return(Ne=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)},B=e.stackAlloc=function(){return(B=e.stackAlloc=e.asm.ag).apply(null,arguments)},ie=e.___cxa_can_catch=function(){return(ie=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)},Ut=e.dynCall_iiiiij=function(){return(Ut=e.dynCall_iiiiij=e.asm.fg).apply(null,arguments)},dr=e.dynCall_iiiiijj=function(){return(dr=e.dynCall_iiiiijj=e.asm.gg).apply(null,arguments)},Fu=e.dynCall_iiiiiijj=function(){return(Fu=e.dynCall_iiiiiijj=e.asm.hg).apply(null,arguments)},Mu=e.dynCall_viijii=function(){return(Mu=e.dynCall_viijii=e.asm.ig).apply(null,arguments)},xu=e.dynCall_j=function(){return(xu=e.dynCall_j=e.asm.jg).apply(null,arguments)},Ou=e.dynCall_ji=function(){return(Ou=e.dynCall_ji=e.asm.kg).apply(null,arguments)},Nu=e.dynCall_iij=function(){return(Nu=e.dynCall_iij=e.asm.lg).apply(null,arguments)},Lu=e.dynCall_viij=function(){return(Lu=e.dynCall_viij=e.asm.mg).apply(null,arguments)},Bu=e.dynCall_viijji=function(){return(Bu=e.dynCall_viijji=e.asm.ng).apply(null,arguments)},Uu=e.dynCall_viijj=function(){return(Uu=e.dynCall_viijj=e.asm.og).apply(null,arguments)},Hu=e.dynCall_viiijj=function(){return(Hu=e.dynCall_viiijj=e.asm.pg).apply(null,arguments)},qu=e.dynCall_viiji=function(){return(qu=e.dynCall_viiji=e.asm.qg).apply(null,arguments)},$u=e.dynCall_vijjj=function(){return($u=e.dynCall_vijjj=e.asm.rg).apply(null,arguments)},Wu=e.dynCall_iiijj=function(){return(Wu=e.dynCall_iiijj=e.asm.sg).apply(null,arguments)},Ku=e.dynCall_viiij=function(){return(Ku=e.dynCall_viiij=e.asm.tg).apply(null,arguments)},Gu=e.dynCall_viijij=function(){return(Gu=e.dynCall_viijij=e.asm.ug).apply(null,arguments)},Vu=e.dynCall_viiiij=function(){return(Vu=e.dynCall_viiiij=e.asm.vg).apply(null,arguments)},Yu=e.dynCall_jj=function(){return(Yu=e.dynCall_jj=e.asm.wg).apply(null,arguments)},Qu=e.dynCall_viji=function(){return(Qu=e.dynCall_viji=e.asm.xg).apply(null,arguments)},zu=e.dynCall_iiij=function(){return(zu=e.dynCall_iiij=e.asm.yg).apply(null,arguments)},Xu=e.dynCall_vij=function(){return(Xu=e.dynCall_vij=e.asm.zg).apply(null,arguments)},Ju=e.dynCall_iiiij=function(){return(Ju=e.dynCall_iiiij=e.asm.Ag).apply(null,arguments)},Zu=e.dynCall_jii=function(){return(Zu=e.dynCall_jii=e.asm.Bg).apply(null,arguments)},eo=e.dynCall_iiiji=function(){return(eo=e.dynCall_iiiji=e.asm.Cg).apply(null,arguments)},to=e.dynCall_iijj=function(){return(to=e.dynCall_iijj=e.asm.Dg).apply(null,arguments)},io=e.dynCall_iiijii=function(){return(io=e.dynCall_iiijii=e.asm.Eg).apply(null,arguments)},ro=e.dynCall_iiiiji=function(){return(ro=e.dynCall_iiiiji=e.asm.Fg).apply(null,arguments)},no=e.dynCall_iiiiiji=function(){return(no=e.dynCall_iiiiiji=e.asm.Gg).apply(null,arguments)},ao=e.dynCall_jiii=function(){return(ao=e.dynCall_jiii=e.asm.Hg).apply(null,arguments)},so=e.dynCall_jij=function(){return(so=e.dynCall_jij=e.asm.Ig).apply(null,arguments)},uo=e.dynCall_vijj=function(){return(uo=e.dynCall_vijj=e.asm.Jg).apply(null,arguments)},oo=e.dynCall_vijij=function(){return(oo=e.dynCall_vijij=e.asm.Kg).apply(null,arguments)},lo=e.dynCall_iiijjjj=function(){return(lo=e.dynCall_iiijjjj=e.asm.Lg).apply(null,arguments)},co=e.dynCall_iiijiiii=function(){return(co=e.dynCall_iiijiiii=e.asm.Mg).apply(null,arguments)},fo=e.dynCall_jiiij=function(){return(fo=e.dynCall_jiiij=e.asm.Ng).apply(null,arguments)},_o=e.dynCall_jiiiii=function(){return(_o=e.dynCall_jiiiii=e.asm.Og).apply(null,arguments)},po=e.dynCall_iiiiijjiijj=function(){return(po=e.dynCall_iiiiijjiijj=e.asm.Pg).apply(null,arguments)},ho=e.dynCall_viijiiji=function(){return(ho=e.dynCall_viijiiji=e.asm.Qg).apply(null,arguments)},yo=e.dynCall_iiijjii=function(){return(yo=e.dynCall_iiijjii=e.asm.Rg).apply(null,arguments)},mo=e.dynCall_iiijji=function(){return(mo=e.dynCall_iiijji=e.asm.Sg).apply(null,arguments)},vo=e.dynCall_iijjii=function(){return(vo=e.dynCall_iijjii=e.asm.Tg).apply(null,arguments)},go=e.dynCall_vijii=function(){return(go=e.dynCall_vijii=e.asm.Ug).apply(null,arguments)},bo=e.dynCall_vjjijij=function(){return(bo=e.dynCall_vjjijij=e.asm.Vg).apply(null,arguments)},jo=e.dynCall_vijjji=function(){return(jo=e.dynCall_vijjji=e.asm.Wg).apply(null,arguments)},wo=e.dynCall_vjjii=function(){return(wo=e.dynCall_vjjii=e.asm.Xg).apply(null,arguments)},Co=e.dynCall_viiiiiji=function(){return(Co=e.dynCall_viiiiiji=e.asm.Yg).apply(null,arguments)},ko=e.dynCall_jiiiji=function(){return(ko=e.dynCall_jiiiji=e.asm.Zg).apply(null,arguments)},So=e.dynCall_viijjii=function(){return(So=e.dynCall_viijjii=e.asm._g).apply(null,arguments)},Eo=e.dynCall_iiiijj=function(){return(Eo=e.dynCall_iiiijj=e.asm.$g).apply(null,arguments)},Ao=e.dynCall_viiiijj=function(){return(Ao=e.dynCall_viiiijj=e.asm.ah).apply(null,arguments)},Ro=e.dynCall_jijjij=function(){return(Ro=e.dynCall_jijjij=e.asm.bh).apply(null,arguments)},To=e.dynCall_jiijii=function(){return(To=e.dynCall_jiijii=e.asm.ch).apply(null,arguments)},Do=e.dynCall_jijiii=function(){return(Do=e.dynCall_jijiii=e.asm.dh).apply(null,arguments)},Po=e.dynCall_viijiiiii=function(){return(Po=e.dynCall_viijiiiii=e.asm.eh).apply(null,arguments)},Io=e.dynCall_viijiiij=function(){return(Io=e.dynCall_viijiiij=e.asm.fh).apply(null,arguments)},Fo=e.dynCall_vijiiiji=function(){return(Fo=e.dynCall_vijiiiji=e.asm.gh).apply(null,arguments)},Mo=e.dynCall_jiiji=function(){return(Mo=e.dynCall_jiiji=e.asm.hh).apply(null,arguments)},xo=e.dynCall_viiijij=function(){return(xo=e.dynCall_viiijij=e.asm.ih).apply(null,arguments)},Oo=e.dynCall_viijiij=function(){return(Oo=e.dynCall_viijiij=e.asm.jh).apply(null,arguments)},No=e.dynCall_viiiiijj=function(){return(No=e.dynCall_viiiiijj=e.asm.kh).apply(null,arguments)},Lo=e.dynCall_viiijji=function(){return(Lo=e.dynCall_viiijji=e.asm.lh).apply(null,arguments)},Bo=e.dynCall_iijji=function(){return(Bo=e.dynCall_iijji=e.asm.mh).apply(null,arguments)},Uo=e.dynCall_iijii=function(){return(Uo=e.dynCall_iijii=e.asm.nh).apply(null,arguments)},Ho=e.dynCall_iiji=function(){return(Ho=e.dynCall_iiji=e.asm.oh).apply(null,arguments)},qo=e.dynCall_vijijj=function(){return(qo=e.dynCall_vijijj=e.asm.ph).apply(null,arguments)},$o=e.dynCall_viiijjj=function(){return($o=e.dynCall_viiijjj=e.asm.qh).apply(null,arguments)},Wo=e.dynCall_iji=function(){return(Wo=e.dynCall_iji=e.asm.rh).apply(null,arguments)},Ko=e.dynCall_vijiiii=function(){return(Ko=e.dynCall_vijiiii=e.asm.sh).apply(null,arguments)},Go=e.dynCall_iijjijj=function(){return(Go=e.dynCall_iijjijj=e.asm.th).apply(null,arguments)},Vo=e.dynCall_viiijii=function(){return(Vo=e.dynCall_viiijii=e.asm.uh).apply(null,arguments)},Yo=e.dynCall_viiiiiij=function(){return(Yo=e.dynCall_viiiiiij=e.asm.vh).apply(null,arguments)},Qo=e.dynCall_viiiijiiiii=function(){return(Qo=e.dynCall_viiiijiiiii=e.asm.wh).apply(null,arguments)},zo=e.dynCall_viiiijiiii=function(){return(zo=e.dynCall_viiiijiiii=e.asm.xh).apply(null,arguments)},Xo=e.dynCall_ijji=function(){return(Xo=e.dynCall_ijji=e.asm.yh).apply(null,arguments)},Jo=e.dynCall_iiijiii=function(){return(Jo=e.dynCall_iiijiii=e.asm.zh).apply(null,arguments)},Zo=e.dynCall_iiiiijii=function(){return(Zo=e.dynCall_iiiiijii=e.asm.Ah).apply(null,arguments)},el=e.dynCall_viijiii=function(){return(el=e.dynCall_viijiii=e.asm.Bh).apply(null,arguments)},tl=e.dynCall_iiijiij=function(){return(tl=e.dynCall_iiijiij=e.asm.Ch).apply(null,arguments)},il=e.dynCall_vijiii=function(){return(il=e.dynCall_vijiii=e.asm.Dh).apply(null,arguments)},rl=e.dynCall_iijjiii=function(){return(rl=e.dynCall_iijjiii=e.asm.Eh).apply(null,arguments)},nl=e.dynCall_iijjiiii=function(){return(nl=e.dynCall_iijjiiii=e.asm.Fh).apply(null,arguments)},al=e.dynCall_viiiji=function(){return(al=e.dynCall_viiiji=e.asm.Gh).apply(null,arguments)},sl=e.dynCall_iijiiii=function(){return(sl=e.dynCall_iijiiii=e.asm.Hh).apply(null,arguments)},ul=e.dynCall_viiiijii=function(){return(ul=e.dynCall_viiiijii=e.asm.Ih).apply(null,arguments)},ol=e.dynCall_iiiijiii=function(){return(ol=e.dynCall_iiiijiii=e.asm.Jh).apply(null,arguments)},ll=e.dynCall_iiijij=function(){return(ll=e.dynCall_iiijij=e.asm.Kh).apply(null,arguments)},cl=e.dynCall_iiijjji=function(){return(cl=e.dynCall_iiijjji=e.asm.Lh).apply(null,arguments)},fl=e.dynCall_viijjji=function(){return(fl=e.dynCall_viijjji=e.asm.Mh).apply(null,arguments)},_l=e.dynCall_viiijjji=function(){return(_l=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)},hl=e.dynCall_viiiijij=function(){return(hl=e.dynCall_viiiijij=e.asm.Qh).apply(null,arguments)},yl=e.dynCall_jiiiij=function(){return(yl=e.dynCall_jiiiij=e.asm.Rh).apply(null,arguments)},ml=e.dynCall_jiiijii=function(){return(ml=e.dynCall_jiiijii=e.asm.Sh).apply(null,arguments)},vl=e.dynCall_jiijiii=function(){return(vl=e.dynCall_jiijiii=e.asm.Th).apply(null,arguments)},gl=e.dynCall_viiijjij=function(){return(gl=e.dynCall_viiijjij=e.asm.Uh).apply(null,arguments)},bl=e.dynCall_vijijjiij=function(){return(bl=e.dynCall_vijijjiij=e.asm.Vh).apply(null,arguments)},jl=e.dynCall_viiijjiij=function(){return(jl=e.dynCall_viiijjiij=e.asm.Wh).apply(null,arguments)},wl=e.dynCall_viiiijijji=function(){return(wl=e.dynCall_viiiijijji=e.asm.Xh).apply(null,arguments)},Cl=e.dynCall_viijiiiij=function(){return(Cl=e.dynCall_viijiiiij=e.asm.Yh).apply(null,arguments)},kl=e.dynCall_viiijiiiijjj=function(){return(kl=e.dynCall_viiijiiiijjj=e.asm.Zh).apply(null,arguments)},Sl=e.dynCall_viijijiiiijjj=function(){return(Sl=e.dynCall_viijijiiiijjj=e.asm._h).apply(null,arguments)},El=e.dynCall_iijjj=function(){return(El=e.dynCall_iijjj=e.asm.$h).apply(null,arguments)},Al=e.dynCall_vijijiiiijjj=function(){return(Al=e.dynCall_vijijiiiijjj=e.asm.ai).apply(null,arguments)},Rl=e.dynCall_jd=function(){return(Rl=e.dynCall_jd=e.asm.bi).apply(null,arguments)},Tl=e.dynCall_jf=function(){return(Tl=e.dynCall_jf=e.asm.ci).apply(null,arguments)},Dl=e.dynCall_iiiiiiji=function(){return(Dl=e.dynCall_iiiiiiji=e.asm.di).apply(null,arguments)},Pl=e.dynCall_iiiiiiiiji=function(){return(Pl=e.dynCall_iiiiiiiiji=e.asm.ei).apply(null,arguments)},Il=e.dynCall_vijiji=function(){return(Il=e.dynCall_vijiji=e.asm.fi).apply(null,arguments)},Fl=e.dynCall_vijjij=function(){return(Fl=e.dynCall_vijjij=e.asm.gi).apply(null,arguments)},Ml=e.dynCall_viiiijiiiiiiii=function(){return(Ml=e.dynCall_viiiijiiiiiiii=e.asm.hi).apply(null,arguments)},xl=e.dynCall_ij=function(){return(xl=e.dynCall_ij=e.asm.ii).apply(null,arguments)},Ol=e.dynCall_jjj=function(){return(Ol=e.dynCall_jjj=e.asm.ji).apply(null,arguments)},Nl=e.dynCall_jjiji=function(){return(Nl=e.dynCall_jjiji=e.asm.ki).apply(null,arguments)},Ll=e.dynCall_jijij=function(){return(Ll=e.dynCall_jijij=e.asm.li).apply(null,arguments)},Bl=e.dynCall_jijj=function(){return(Bl=e.dynCall_jijj=e.asm.mi).apply(null,arguments)},Ul=e.dynCall_jiiijj=function(){return(Ul=e.dynCall_jiiijj=e.asm.ni).apply(null,arguments)},Hl=e.dynCall_vjii=function(){return(Hl=e.dynCall_vjii=e.asm.oi).apply(null,arguments)},ql=e.dynCall_jjjjjjd=function(){return(ql=e.dynCall_jjjjjjd=e.asm.pi).apply(null,arguments)},$l=e.dynCall_ijii=function(){return($l=e.dynCall_ijii=e.asm.qi).apply(null,arguments)},Wl=e.dynCall_vjiiii=function(){return(Wl=e.dynCall_vjiiii=e.asm.ri).apply(null,arguments)},Kl=e.dynCall_viiiiijiiii=function(){return(Kl=e.dynCall_viiiiijiiii=e.asm.si).apply(null,arguments)},Gl=e.dynCall_viiiiijiii=function(){return(Gl=e.dynCall_viiiiijiii=e.asm.ti).apply(null,arguments)},Vl=e.dynCall_vjiiiji=function(){return(Vl=e.dynCall_vjiiiji=e.asm.ui).apply(null,arguments)},Yl=e.dynCall_viijjj=function(){return(Yl=e.dynCall_viijjj=e.asm.vi).apply(null,arguments)},Ql=e.dynCall_viijiiiiii=function(){return(Ql=e.dynCall_viijiiiiii=e.asm.wi).apply(null,arguments)},zl=e.dynCall_jjjji=function(){return(zl=e.dynCall_jjjji=e.asm.xi).apply(null,arguments)},Xl=e.dynCall_jjjii=function(){return(Xl=e.dynCall_jjjii=e.asm.yi).apply(null,arguments)},Jl=e.dynCall_jji=function(){return(Jl=e.dynCall_jji=e.asm.zi).apply(null,arguments)},Zl=e.dynCall_viiiiji=function(){return(Zl=e.dynCall_viiiiji=e.asm.Ai).apply(null,arguments)},ec=e.dynCall_iijiji=function(){return(ec=e.dynCall_iijiji=e.asm.Bi).apply(null,arguments)},tc=e.dynCall_iiiiiij=function(){return(tc=e.dynCall_iiiiiij=e.asm.Ci).apply(null,arguments)},ic=e.dynCall_iiiiiiiiiiji=function(){return(ic=e.dynCall_iiiiiiiiiiji=e.asm.Di).apply(null,arguments)},rc=e.dynCall_iiiiiiiij=function(){return(rc=e.dynCall_iiiiiiiij=e.asm.Ei).apply(null,arguments)},nc=e.dynCall_jiiijjj=function(){return(nc=e.dynCall_jiiijjj=e.asm.Fi).apply(null,arguments)},ac=e.dynCall_viiijijj=function(){return(ac=e.dynCall_viiijijj=e.asm.Gi).apply(null,arguments)},sc=e.dynCall_jiiiiji=function(){return(sc=e.dynCall_jiiiiji=e.asm.Hi).apply(null,arguments)},uc=e.dynCall_iiiiijij=function(){return(uc=e.dynCall_iiiiijij=e.asm.Ii).apply(null,arguments)},oc=e.dynCall_jiiiiiii=function(){return(oc=e.dynCall_jiiiiiii=e.asm.Ji).apply(null,arguments)},lc=e.dynCall_fiijii=function(){return(lc=e.dynCall_fiijii=e.asm.Ki).apply(null,arguments)},cc=e.dynCall_diijii=function(){return(cc=e.dynCall_diijii=e.asm.Li).apply(null,arguments)},fc=e.dynCall_iiiiiiijii=function(){return(fc=e.dynCall_iiiiiiijii=e.asm.Mi).apply(null,arguments)},_c=e.dynCall_jiij=function(){return(_c=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)},hc=e.dynCall_viiijjii=function(){return(hc=e.dynCall_viiijjii=e.asm.Qi).apply(null,arguments)},yc=e.dynCall_viiiijji=function(){return(yc=e.dynCall_viiiijji=e.asm.Ri).apply(null,arguments)},mc=e.dynCall_viiiijjii=function(){return(mc=e.dynCall_viiiijjii=e.asm.Si).apply(null,arguments)},vc=e.dynCall_viiiiijji=function(){return(vc=e.dynCall_viiiiijji=e.asm.Ti).apply(null,arguments)},gc=e.dynCall_iiidj=function(){return(gc=e.dynCall_iiidj=e.asm.Ui).apply(null,arguments)},bc=e.dynCall_iiiiiiij=function(){return(bc=e.dynCall_iiiiiiij=e.asm.Vi).apply(null,arguments)},jc=e.dynCall_iiiiiiiiiiiij=function(){return(jc=e.dynCall_iiiiiiiiiiiij=e.asm.Wi).apply(null,arguments)},wc=e.dynCall_iiijjiiji=function(){return(wc=e.dynCall_iiijjiiji=e.asm.Xi).apply(null,arguments)},Cc=e.dynCall_iiijjiij=function(){return(Cc=e.dynCall_iiijjiij=e.asm.Yi).apply(null,arguments)},kc=e.dynCall_iiidjiij=function(){return(kc=e.dynCall_iiidjiij=e.asm.Zi).apply(null,arguments)},Sc=e.dynCall_iiiiiiiji=function(){return(Sc=e.dynCall_iiiiiiiji=e.asm._i).apply(null,arguments)},Ec=e.dynCall_iiiidjj=function(){return(Ec=e.dynCall_iiiidjj=e.asm.$i).apply(null,arguments)},Ac=e.dynCall_iiiijjj=function(){return(Ac=e.dynCall_iiiijjj=e.asm.aj).apply(null,arguments)},Rc=e.dynCall_jiiiiiijii=function(){return(Rc=e.dynCall_jiiiiiijii=e.asm.bj).apply(null,arguments)},Tc=e.dynCall_iiiijji=function(){return(Tc=e.dynCall_iiiijji=e.asm.cj).apply(null,arguments)},Dc=e.dynCall_jiiiiii=function(){return(Dc=e.dynCall_jiiiiii=e.asm.dj).apply(null,arguments)},Pc=e.dynCall_jiijjjii=function(){return(Pc=e.dynCall_jiijjjii=e.asm.ej).apply(null,arguments)},Ic=e.dynCall_jiiiijii=function(){return(Ic=e.dynCall_jiiiijii=e.asm.fj).apply(null,arguments)},Fc=e.dynCall_jiiiiijiiii=function(){return(Fc=e.dynCall_jiiiiijiiii=e.asm.gj).apply(null,arguments)},Mc=e.dynCall_jiiijiii=function(){return(Mc=e.dynCall_jiiijiii=e.asm.hj).apply(null,arguments)},xc=e.dynCall_viiijijiji=function(){return(xc=e.dynCall_viiijijiji=e.asm.ij).apply(null,arguments)},Oc=e.dynCall_iiijjj=function(){return(Oc=e.dynCall_iiijjj=e.asm.jj).apply(null,arguments)},Nc=e.dynCall_iiiijii=function(){return(Nc=e.dynCall_iiiijii=e.asm.kj).apply(null,arguments)},Lc=e.dynCall_vj=function(){return(Lc=e.dynCall_vj=e.asm.lj).apply(null,arguments)},Bc=e.dynCall_iijiii=function(){return(Bc=e.dynCall_iijiii=e.asm.mj).apply(null,arguments)},Uc=e.dynCall_vijiijj=function(){return(Uc=e.dynCall_vijiijj=e.asm.nj).apply(null,arguments)},Hc=e.dynCall_vifiijj=function(){return(Hc=e.dynCall_vifiijj=e.asm.oj).apply(null,arguments)},qc=e.dynCall_vidiijj=function(){return(qc=e.dynCall_vidiijj=e.asm.pj).apply(null,arguments)},$c=e.dynCall_viiiiij=function(){return($c=e.dynCall_viiiiij=e.asm.qj).apply(null,arguments)},Wc=e.dynCall_ijjiii=function(){return(Wc=e.dynCall_ijjiii=e.asm.rj).apply(null,arguments)},Kc=e.dynCall_vijijjji=function(){return(Kc=e.dynCall_vijijjji=e.asm.sj).apply(null,arguments)},Gc=e.dynCall_viijiijj=function(){return(Gc=e.dynCall_viijiijj=e.asm.tj).apply(null,arguments)},Vc=e.dynCall_viijijj=function(){return(Vc=e.dynCall_viijijj=e.asm.uj).apply(null,arguments)},Yc=e.dynCall_viiiiijjji=function(){return(Yc=e.dynCall_viiiiijjji=e.asm.vj).apply(null,arguments)},Qc=e.dynCall_iiijiijj=function(){return(Qc=e.dynCall_iiijiijj=e.asm.wj).apply(null,arguments)},zc=e.dynCall_viiijijjj=function(){return(zc=e.dynCall_viiijijjj=e.asm.xj).apply(null,arguments)},Xc=e.dynCall_iijiijj=function(){return(Xc=e.dynCall_iijiijj=e.asm.yj).apply(null,arguments)},Jc=e.dynCall_viiijjjji=function(){return(Jc=e.dynCall_viiijjjji=e.asm.zj).apply(null,arguments)},Zc=e.dynCall_viiiijiii=function(){return(Zc=e.dynCall_viiiijiii=e.asm.Aj).apply(null,arguments)},ef=e.dynCall_viijiiii=function(){return(ef=e.dynCall_viijiiii=e.asm.Bj).apply(null,arguments)},tf=e.dynCall_vijjiiii=function(){return(tf=e.dynCall_vijjiiii=e.asm.Cj).apply(null,arguments)},rf=e.dynCall_vijijjiiiii=function(){return(rf=e.dynCall_vijijjiiiii=e.asm.Dj).apply(null,arguments)},nf=e.dynCall_vijjiiiii=function(){return(nf=e.dynCall_vijjiiiii=e.asm.Ej).apply(null,arguments)},af=e.dynCall_iiiiiijji=function(){return(af=e.dynCall_iiiiiijji=e.asm.Fj).apply(null,arguments)},sf=e.dynCall_iiiiijjj=function(){return(sf=e.dynCall_iiiiijjj=e.asm.Gj).apply(null,arguments)},uf=e.dynCall_jijiiii=function(){return(uf=e.dynCall_jijiiii=e.asm.Hj).apply(null,arguments)},of=e.dynCall_viiijiji=function(){return(of=e.dynCall_viiijiji=e.asm.Ij).apply(null,arguments)},lf=e.dynCall_iiijjjii=function(){return(lf=e.dynCall_iiijjjii=e.asm.Jj).apply(null,arguments)},cf=e.dynCall_iiiiijjji=function(){return(cf=e.dynCall_iiiiijjji=e.asm.Kj).apply(null,arguments)},ff=e.dynCall_viijiji=function(){return(ff=e.dynCall_viijiji=e.asm.Lj).apply(null,arguments)};function _p(i){var n=j();try{V(i)()}catch(a){if(w(n),a!==a+0)throw a;b(1,0)}}function dp(i,n,a){var s=j();try{V(i)(n,a)}catch(u){if(w(s),u!==u+0)throw u;b(1,0)}}function pp(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(u){if(w(s),u!==u+0)throw u;b(1,0)}}function yp(i,n){var a=j();try{V(i)(n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function mp(i,n,a,s){var u=j();try{return V(i)(n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function vp(i,n,a,s,u,l){var c=j();try{return V(i)(n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function gp(i,n,a,s,u){var l=j();try{V(i)(n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function bp(i,n,a,s,u){var l=j();try{return V(i)(n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function jp(i,n,a,s){var u=j();try{return V(i)(n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function wp(i,n,a,s){var u=j();try{return V(i)(n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function Cp(i,n,a,s){var u=j();try{V(i)(n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function kp(i,n,a,s){var u=j();try{V(i)(n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function Sp(i,n,a,s,u,l,c,f){var _=j();try{return V(i)(n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Ep(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return V(i)(n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Ap(i,n,a,s,u,l,c,f,_,p,y,C,E){var $=j();try{return V(i)(n,a,s,u,l,c,f,_,p,y,C,E)}catch(Y){if(w($),Y!==Y+0)throw Y;b(1,0)}}function Rp(i){var n=j();try{return V(i)()}catch(a){if(w(n),a!==a+0)throw a;b(1,0)}}function Tp(i,n,a,s,u,l,c,f){var _=j();try{V(i)(n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Dp(i,n,a,s,u,l,c){var f=j();try{return V(i)(n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Pp(i,n,a,s,u,l,c,f,_,p,y,C){var E=j();try{return V(i)(n,a,s,u,l,c,f,_,p,y,C)}catch($){if(w(E),$!==$+0)throw $;b(1,0)}}function Ip(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{V(i)(n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Fp(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e){var ke=j();try{V(i)(n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e)}catch(Le){if(w(ke),Le!==Le+0)throw Le;b(1,0)}}function Mp(i,n,a,s,u,l,c){var f=j();try{V(i)(n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function xp(i,n,a,s,u,l){var c=j();try{return V(i)(n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Op(i,n,a,s,u,l,c,f,_){var p=j();try{V(i)(n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Np(i,n,a,s,u,l){var c=j();try{V(i)(n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Lp(i,n){var a=j();try{return V(i)(n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function Bp(i,n,a,s,u,l,c,f,_,p){var y=j();try{return V(i)(n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;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){var a=j();try{return V(i)(n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function qp(i,n){var a=j();try{return V(i)(n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function $p(i,n,a){var s=j();try{return V(i)(n,a)}catch(u){if(w(s),u!==u+0)throw u;b(1,0)}}function Wp(i,n,a){var s=j();try{return V(i)(n,a)}catch(u){if(w(s),u!==u+0)throw u;b(1,0)}}function Kp(i,n,a){var s=j();try{V(i)(n,a)}catch(u){if(w(s),u!==u+0)throw u;b(1,0)}}function Gp(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e,ke,Le){var L=j();try{return V(i)(n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e,ke,Le)}catch(re){if(w(L),re!==re+0)throw re;b(1,0)}}function Vp(i,n,a,s,u){var l=j();try{return V(i)(n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Yp(i,n,a,s,u,l,c,f,_){var p=j();try{return V(i)(n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Qp(i,n,a){var s=j();try{V(i)(n,a)}catch(u){if(w(s),u!==u+0)throw u;b(1,0)}}function zp(i,n,a,s,u,l,c,f,_,p,y,C,E,$){var Y=j();try{V(i)(n,a,s,u,l,c,f,_,p,y,C,E,$)}catch(_e){if(w(Y),_e!==_e+0)throw _e;b(1,0)}}function Xp(i,n,a,s,u,l,c,f,_,p){var y=j();try{V(i)(n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Jp(i,n,a,s){var u=j();try{return V(i)(n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function Zp(i,n,a,s,u,l,c,f){var _=j();try{return V(i)(n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function eh(i,n,a,s,u){var l=j();try{return V(i)(n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function th(i,n,a,s,u,l){var c=j();try{V(i)(n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function ih(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e,ke){var Le=j();try{return V(i)(n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e,ke)}catch(L){if(w(Le),L!==L+0)throw L;b(1,0)}}function rh(i,n,a,s,u,l,c){var f=j();try{return V(i)(n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function nh(i,n,a,s,u){var l=j();try{return V(i)(n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function ah(i,n,a){var s=j();try{return V(i)(n,a)}catch(u){if(w(s),u!==u+0)throw u;b(1,0)}}function sh(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{V(i)(n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function uh(i,n,a,s,u,l,c,f,_,p,y,C){var E=j();try{V(i)(n,a,s,u,l,c,f,_,p,y,C)}catch($){if(w(E),$!==$+0)throw $;b(1,0)}}function oh(i,n,a,s,u,l,c,f,_,p){var y=j();try{V(i)(n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function lh(i){var n=j();try{return V(i)()}catch(a){if(w(n),a!==a+0)throw a;b(1,0)}}function ch(i){var n=j();try{return V(i)()}catch(a){if(w(n),a!==a+0)throw a;b(1,0)}}function fh(i,n,a,s,u){var l=j();try{return Ue(i,n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function _h(i,n,a,s,u,l,c){var f=j();try{Uu(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function dh(i,n){var a=j();try{return Ou(i,n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function ph(i,n,a){var s=j();try{return Zu(i,n,a)}catch(u){if(w(s),u!==u+0)throw u;b(1,0)}}function hh(i,n,a,s,u,l,c){var f=j();try{Mu(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function yh(i,n,a,s,u,l,c){var f=j();try{return Ut(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function mh(i,n,a,s,u,l,c,f,_){var p=j();try{return dr(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function vh(i,n,a,s){var u=j();try{return Nu(i,n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function gh(i,n,a,s,u,l){var c=j();try{qu(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function bh(i,n,a,s,u){var l=j();try{Lu(i,n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function jh(i){var n=j();try{return xu(i)}catch(a){if(w(n),a!==a+0)throw a;b(1,0)}}function wh(i,n,a,s,u,l,c,f){var _=j();try{$u(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Ch(i,n,a,s,u,l,c){var f=j();try{return Wu(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function kh(i,n,a,s,u,l,c,f){var _=j();try{Bu(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Sh(i,n,a,s,u,l,c){var f=j();try{Vu(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Eh(i,n,a,s,u,l){var c=j();try{Ku(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Ah(i,n,a,s){var u=j();try{Xu(i,n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function Rh(i,n,a){var s=j();try{return Yu(i,n,a)}catch(u){if(w(s),u!==u+0)throw u;b(1,0)}}function Th(i,n,a,s,u){var l=j();try{return zu(i,n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Dh(i,n,a,s,u,l,c){var f=j();try{return Bc(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Ph(i,n,a,s,u){var l=j();try{Qu(i,n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Ih(i,n,a,s,u,l,c,f){var _=j();try{Hu(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Fh(i,n,a,s,u,l,c,f){var _=j();try{return Eo(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Mh(i,n,a,s,u,l,c,f,_){var p=j();try{return Dl(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function xh(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return Pl(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Oh(i,n,a,s,u,l){var c=j();try{return Ju(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Nh(i,n,a,s,u,l,c,f){var _=j();try{return ll(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Lh(i,n,a,s,u){var l=j();try{return Ho(i,n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Bh(i,n,a,s,u,l){var c=j();try{return eo(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Uh(i,n,a,s,u,l,c){var f=j();try{return Bo(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Hh(i,n,a,s,u,l,c,f,_,p){var y=j();try{return cl(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function qh(i,n,a,s,u,l,c,f,_){var p=j();try{return tl(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function $h(i,n,a,s,u,l,c,f,_,p){var y=j();try{fl(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Wh(i,n,a,s,u,l,c,f){var _=j();try{return mo(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Kh(i,n,a,s,u,l,c,f){var _=j();try{Gu(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Gh(i,n,a,s,u,l){var c=j();try{return to(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function Vh(i,n,a,s,u,l,c){var f=j();try{return io(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Yh(i,n,a,s,u,l,c){var f=j();try{return ro(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Qh(i,n,a,s,u,l,c,f){var _=j();try{return no(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function zh(i,n,a,s,u,l,c,f,_,p){var y=j();try{return Fu(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Xh(i,n,a,s,u,l,c){var f=j();try{il(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Jh(i,n,a,s,u,l,c,f){var _=j();try{Ko(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Zh(i,n,a,s,u,l,c,f){var _=j();try{return Jo(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function ey(i,n,a,s,u,l,c,f,_){var p=j();try{return Zo(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function ty(i,n,a,s,u,l,c,f){var _=j();try{el(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function iy(i,n,a,s,u,l){var c=j();try{return Uo(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function ry(i,n,a,s,u,l,c,f,_){var p=j();try{return co(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function ny(i,n,a,s,u,l,c,f,_){var p=j();try{Lo(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function ay(i,n,a,s,u,l,c){var f=j();try{wo(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function sy(i,n,a,s){var u=j();try{return so(i,n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function uy(i,n,a,s,u,l){var c=j();try{return fo(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function oy(i,n,a,s,u,l,c,f,_){var p=j();try{jo(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function ly(i,n,a,s,u,l){var c=j();try{return _o(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function cy(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{bo(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function fy(i,n,a,s,u,l){var c=j();try{return Mo(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function _y(i,n,a,s,u,l,c,f,_,p){var y=j();try{ho(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function dy(i,n,a,s,u,l,c){var f=j();try{return ko(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function py(i,n,a,s,u,l){var c=j();try{uo(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function hy(i,n,a,s,u,l,c){var f=j();try{oo(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function yy(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return lo(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function my(i,n,a,s,u,l,c,f,_){var p=j();try{Co(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function vy(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y){var _e=j();try{return po(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y)}catch(ke){if(w(_e),ke!==ke+0)throw ke;b(1,0)}}function gy(i,n,a,s,u,l,c,f,_){var p=j();try{return yo(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function by(i,n,a,s,u,l,c,f){var _=j();try{return vo(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function jy(i,n,a,s,u,l){var c=j();try{go(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function wy(i,n,a,s,u,l,c,f,_){var p=j();try{So(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Cy(i,n,a,s,u,l,c){var f=j();try{return To(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function ky(i,n,a,s,u,l,c,f,_,p){var y=j();try{Po(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Sy(i,n,a,s,u,l,c,f,_,p){var y=j();try{Io(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Ey(i,n,a,s,u,l,c){var f=j();try{return Do(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Ay(i,n,a,s,u,l,c,f,_,p){var y=j();try{Fo(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Ry(i,n,a,s,u,l,c,f,_){var p=j();try{return Ro(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Ty(i,n,a,s,u,l,c,f,_){var p=j();try{Oo(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Dy(i,n,a,s,u,l,c,f,_){var p=j();try{Ao(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Py(i,n,a,s,u,l,c,f){var _=j();try{return sl(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Iy(i,n,a,s,u,l,c,f,_){var p=j();try{return rl(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Fy(i,n,a,s,u,l,c,f,_,p){var y=j();try{return nl(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function My(i,n,a,s,u,l,c,f,_){var p=j();try{Yo(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function xy(i,n,a,s,u,l,c,f){var _=j();try{Vo(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Oy(i,n,a,s,u,l,c,f,_){var p=j();try{qo(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Ny(i,n,a,s,u,l,c,f,_,p){var y=j();try{$o(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Ly(i,n,a,s){var u=j();try{return Wo(i,n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function By(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return Go(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Uy(i,n,a,s,u,l,c,f,_,p,y,C){var E=j();try{Qo(i,n,a,s,u,l,c,f,_,p,y,C)}catch($){if(w(E),$!==$+0)throw $;b(1,0)}}function Hy(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{zo(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function qy(i,n,a,s,u,l){var c=j();try{return Xo(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function $y(i,n,a,s,u,l,c){var f=j();try{al(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Wy(i,n,a,s,u,l,c,f,_){var p=j();try{ul(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Ky(i,n,a,s){var u=j();try{return ao(i,n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function Gy(i,n,a,s,u,l,c,f,_){var p=j();try{return ol(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Vy(i,n,a,s,u,l,c,f,_){var p=j();try{dl(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Yy(i,n,a,s,u,l,c){var f=j();try{pl(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Qy(i,n,a,s,u,l,c,f,_,p){var y=j();try{hl(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function zy(i,n,a,s,u,l,c){var f=j();try{return yl(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Xy(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{_l(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Jy(i,n,a,s,u,l,c,f){var _=j();try{return El(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Zy(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{gl(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function em(i,n,a,s,u,l,c,f,_,p,y,C,E){var $=j();try{bl(i,n,a,s,u,l,c,f,_,p,y,C,E)}catch(Y){if(w($),Y!==Y+0)throw Y;b(1,0)}}function tm(i,n,a,s,u,l,c,f,_,p,y,C,E){var $=j();try{wl(i,n,a,s,u,l,c,f,_,p,y,C,E)}catch(Y){if(w($),Y!==Y+0)throw Y;b(1,0)}}function im(i,n,a,s,u,l,c,f){var _=j();try{return vl(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function rm(i,n,a,s,u,l,c,f){var _=j();try{return ml(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function nm(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{Cl(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function am(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e){var ke=j();try{kl(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e)}catch(Le){if(w(ke),Le!==Le+0)throw Le;b(1,0)}}function sm(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e,ke,Le){var L=j();try{Sl(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e,ke,Le)}catch(re){if(w(L),re!==re+0)throw re;b(1,0)}}function um(i,n,a,s,u,l,c,f,_,p,y,C){var E=j();try{jl(i,n,a,s,u,l,c,f,_,p,y,C)}catch($){if(w(E),$!==$+0)throw $;b(1,0)}}function om(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e,ke){var Le=j();try{Al(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y,_e,ke)}catch(L){if(w(Le),L!==L+0)throw L;b(1,0)}}function lm(i,n){var a=j();try{return Rl(i,n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function cm(i,n){var a=j();try{return Tl(i,n)}catch(s){if(w(a),s!==s+0)throw s;b(1,0)}}function fm(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return Rc(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function _m(i,n,a,s,u,l,c,f,_){var p=j();try{return Tc(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function dm(i,n,a,s,u,l,c,f){var _=j();try{Zl(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function pm(i,n,a,s,u,l,c){var f=j();try{return Dc(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function hm(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return Pc(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function ym(i,n,a,s,u,l,c,f,_,p){var y=j();try{return rc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function mm(i,n,a,s,u,l,c,f){var _=j();try{Il(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function vm(i,n,a,s,u,l,c,f,_){var p=j();try{Fl(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function gm(i,n,a,s,u,l,c){var f=j();try{return Nl(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function bm(i,n,a,s,u,l,c){var f=j();try{return Ll(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function jm(i,n,a,s,u,l){var c=j();try{return Bl(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function wm(i,n,a,s,u,l,c,f){var _=j();try{return Ul(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Cm(i,n,a,s,u,l,c,f){var _=j();try{return Wc(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function km(i,n,a){var s=j();try{return xl(i,n,a)}catch(u){if(w(s),u!==u+0)throw u;b(1,0)}}function Sm(i,n,a,s,u,l,c){var f=j();try{Wl(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Em(i,n,a,s,u,l,c,f,_,p,y,C){var E=j();try{Kl(i,n,a,s,u,l,c,f,_,p,y,C)}catch($){if(w(E),$!==$+0)throw $;b(1,0)}}function Am(i,n,a,s,u){var l=j();try{return $l(i,n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Rm(i,n,a,s,u){var l=j();try{Hl(i,n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Tm(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{Gl(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Dm(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y){var _e=j();try{Ml(i,n,a,s,u,l,c,f,_,p,y,C,E,$,Y)}catch(ke){if(w(_e),ke!==ke+0)throw ke;b(1,0)}}function Pm(i,n,a,s,u){var l=j();try{return Ol(i,n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function Im(i,n,a,s,u,l,c,f,_,p,y,C){var E=j();try{return ql(i,n,a,s,u,l,c,f,_,p,y,C)}catch($){if(w(E),$!==$+0)throw $;b(1,0)}}function Fm(i,n,a,s,u,l,c,f,_){var p=j();try{Vl(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Mm(i,n,a,s,u,l,c,f,_){var p=j();try{Yl(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function xm(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{Ql(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Om(i,n,a,s,u,l,c,f){var _=j();try{return zl(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Nm(i,n,a,s,u,l,c){var f=j();try{return Xl(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Lm(i,n,a,s){var u=j();try{return Jl(i,n,a,s)}catch(l){if(w(u),l!==l+0)throw l;b(1,0)}}function Bm(i,n,a,s,u,l,c,f){var _=j();try{return ec(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Um(i,n,a,s,u,l,c,f){var _=j();try{return tc(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Hm(i,n,a,s,u,l,c,f,_,p,y,C,E){var $=j();try{return ic(i,n,a,s,u,l,c,f,_,p,y,C,E)}catch(Y){if(w($),Y!==Y+0)throw Y;b(1,0)}}function qm(i,n,a,s,u,l,c,f,_,p){var y=j();try{return nc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function $m(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{ac(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Wm(i,n,a,s,u,l,c,f){var _=j();try{return sc(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Km(i,n,a,s,u,l,c,f,_,p){var y=j();try{return uc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Gm(i,n,a,s,u,l,c,f){var _=j();try{return oc(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Vm(i,n,a,s,u,l,c,f,_){var p=j();try{return bc(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Ym(i,n,a,s,u,l,c,f,_,p,y,C,E,$){var Y=j();try{return jc(i,n,a,s,u,l,c,f,_,p,y,C,E,$)}catch(_e){if(w(Y),_e!==_e+0)throw _e;b(1,0)}}function Qm(i,n,a,s,u){var l=j();try{return _c(i,n,a,s,u)}catch(c){if(w(l),c!==c+0)throw c;b(1,0)}}function zm(i,n,a,s,u,l,c){var f=j();try{return lc(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Xm(i,n,a,s,u,l,c){var f=j();try{return cc(i,n,a,s,u,l,c)}catch(_){if(w(f),_!==_+0)throw _;b(1,0)}}function Jm(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return fc(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Zm(i,n,a,s,u,l,c,f,_,p){var y=j();try{return dc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function ev(i,n,a,s,u,l,c,f,_,p){var y=j();try{return pc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function tv(i,n,a,s,u,l,c,f,_,p){var y=j();try{hc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function iv(i,n,a,s,u,l,c,f,_,p){var y=j();try{yc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function rv(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{mc(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function nv(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{vc(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function av(i,n,a,s,u,l){var c=j();try{return gc(i,n,a,s,u,l)}catch(f){if(w(c),f!==f+0)throw f;b(1,0)}}function sv(i,n,a,s,u,l,c,f,_,p,y,C){var E=j();try{return wc(i,n,a,s,u,l,c,f,_,p,y,C)}catch($){if(w(E),$!==$+0)throw $;b(1,0)}}function uv(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return Cc(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function ov(i,n,a,s,u,l,c,f,_,p){var y=j();try{return kc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function lv(i,n,a,s,u,l,c,f,_,p){var y=j();try{return Sc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function cv(i,n,a,s,u,l,c,f,_){var p=j();try{return Ec(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function fv(i,n,a,s,u,l,c,f,_,p){var y=j();try{return Ac(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function _v(i,n,a,s,u,l,c,f,_){var p=j();try{return Ic(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function dv(i,n,a,s,u,l,c,f,_,p,y,C){var E=j();try{return Fc(i,n,a,s,u,l,c,f,_,p,y,C)}catch($){if(w(E),$!==$+0)throw $;b(1,0)}}function pv(i,n,a,s,u,l,c,f,_){var p=j();try{return Mc(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function hv(i,n,a,s,u,l,c,f,_,p,y,C,E){var $=j();try{xc(i,n,a,s,u,l,c,f,_,p,y,C,E)}catch(Y){if(w($),Y!==Y+0)throw Y;b(1,0)}}function yv(i,n,a,s,u,l,c,f,_){var p=j();try{xo(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function mv(i,n,a,s,u,l,c,f,_){var p=j();try{return Oc(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function vv(i,n,a,s,u,l,c,f){var _=j();try{return Nc(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function gv(i,n,a){var s=j();try{Lc(i,n,a)}catch(u){if(w(s),u!==u+0)throw u;b(1,0)}}function bv(i,n,a,s,u,l,c,f,_,p){var y=j();try{No(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function jv(i,n,a,s,u,l,c,f,_,p){var y=j();try{Uc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function wv(i,n,a,s,u,l,c,f,_){var p=j();try{Hc(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Cv(i,n,a,s,u,l,c,f,_){var p=j();try{qc(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function kv(i,n,a,s,u,l,c,f){var _=j();try{$c(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function Sv(i,n,a,s,u,l,c,f,_,p,y,C){var E=j();try{Kc(i,n,a,s,u,l,c,f,_,p,y,C)}catch($){if(w(E),$!==$+0)throw $;b(1,0)}}function Ev(i,n,a,s,u,l,c,f,_,p){var y=j();try{Vc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Av(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return Qc(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Rv(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{Gc(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Tv(i,n,a,s,u,l,c,f,_,p,y,C,E){var $=j();try{Yc(i,n,a,s,u,l,c,f,_,p,y,C,E)}catch(Y){if(w($),Y!==Y+0)throw Y;b(1,0)}}function Dv(i,n,a,s,u,l,c,f,_,p,y,C,E){var $=j();try{zc(i,n,a,s,u,l,c,f,_,p,y,C,E)}catch(Y){if(w($),Y!==Y+0)throw Y;b(1,0)}}function Pv(i,n,a,s,u,l,c,f,_,p){var y=j();try{return Xc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Iv(i,n,a,s,u,l,c,f,_,p,y,C,E){var $=j();try{Jc(i,n,a,s,u,l,c,f,_,p,y,C,E)}catch(Y){if(w($),Y!==Y+0)throw Y;b(1,0)}}function Fv(i,n,a,s,u,l,c,f,_,p){var y=j();try{Zc(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Mv(i,n,a,s,u,l,c,f,_){var p=j();try{ef(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function xv(i,n,a,s,u,l,c,f,_){var p=j();try{ff(i,n,a,s,u,l,c,f,_)}catch(y){if(w(p),y!==y+0)throw y;b(1,0)}}function Ov(i,n,a,s,u,l,c,f,_,p,y,C,E,$){var Y=j();try{rf(i,n,a,s,u,l,c,f,_,p,y,C,E,$)}catch(_e){if(w(Y),_e!==_e+0)throw _e;b(1,0)}}function Nv(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{nf(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Lv(i,n,a,s,u,l,c,f,_,p){var y=j();try{tf(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function Bv(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return af(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Uv(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return lf(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Hv(i,n,a,s,u,l,c,f,_,p){var y=j();try{of(i,n,a,s,u,l,c,f,_,p)}catch(C){if(w(y),C!==C+0)throw C;b(1,0)}}function qv(i,n,a,s,u,l,c,f){var _=j();try{return uf(i,n,a,s,u,l,c,f)}catch(p){if(w(_),p!==p+0)throw p;b(1,0)}}function $v(i,n,a,s,u,l,c,f,_,p,y){var C=j();try{return sf(i,n,a,s,u,l,c,f,_,p,y)}catch(E){if(w(C),E!==E+0)throw E;b(1,0)}}function Wv(i,n,a,s,u,l,c,f,_,p,y,C){var E=j();try{return cf(i,n,a,s,u,l,c,f,_,p,y,C)}catch($){if(w(E),$!==$+0)throw $;b(1,0)}}e.ccall=le;var pr;function hr(i){this.name="ExitStatus",this.message="Program terminated with exit("+i+")",this.status=i}var Kv=!1;Ke=function i(){pr||Ga(),pr||(Ke=i)};function Gv(i){var n=e._main,a=0,s=0;try{var u=n(a,s);return Vv(u,!0),u}catch(l){return sn(l)}finally{Kv=!0}}function Ga(i){if(i=i||g,Ct>0||(en(),Ct>0))return;function n(){pr||(pr=!0,e.calledRun=!0,!Ce&&(tn(),rn(),o(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),_f&&Gv(i),nn()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),n()},1)):n()}e.run=Ga;function Vv(i,n){D=i,Yv(i)}function Yv(i){D=i,Gi()||(e.onExit&&e.onExit(i),Ce=!0),A(i,new hr(i))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var _f=!0;return e.noInitialRun&&(_f=!1),Ga(),t.ready}})(),mf=ng;var pt=Ni(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),o=pt.RecordBatchReader.from(e);return console.assert(o.isSync()),console.assert(o.isFile()),new pt.Table(o)}async send(t){let e=this._bindings.startPendingQuery(this._conn,t);for(;e==null;)e=await new Promise((m,g)=>{try{m(this._bindings.pollPendingQuery(this._conn))}catch(S){g(S)}});let o=new jr(this._bindings,this._conn,e),d=pt.RecordBatchReader.from(o);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 Va(this._bindings,this._conn,e)}createScalarFunction(t,e,o){this._bindings.createScalarFunction(this._conn,t,e,o)}insertArrowTable(t,e){let o=pt.tableToIPC(t,"stream");this.insertArrowFromIPCStream(o,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)}},jr=class{constructor(t,e,o){this.bindings=t;this.conn=e;this.header=o;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}},Va=class{constructor(t,e,o){this.bindings=t,this.connectionId=e,this.statementId=o}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),o=pt.RecordBatchReader.from(e);return console.assert(o.isSync()),console.assert(o.isFile()),new pt.Table(o)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),o=new jr(this.bindings,this.connectionId,e),d=pt.RecordBatchReader.from(o);return console.assert(d.isSync()),console.assert(d.isStream()),d}};var bf=new TextEncoder,vf=new TextDecoder("utf-8");function Ya(r,t,e){let o=bf.encode(e),d=r._malloc(o.byteLength),m=r.HEAPU8.subarray(d,d+o.byteLength);m.set(o),r.HEAPF64[(t>>3)+0]=1,r.HEAPF64[(t>>3)+1]=d,r.HEAPF64[(t>>3)+2]=m.byteLength}function za(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 Qa(r,t,e,o){let d=r.HEAPU8.subarray(t,t+o*za(e));switch(e){case"UINT8":return new Uint8Array(d.buffer,d.byteOffset,o);case"INT8":return new Int8Array(d.buffer,d.byteOffset,o);case"INT32":return new Int32Array(d.buffer,d.byteOffset,o);case"FLOAT":return new Float32Array(d.buffer,d.byteOffset,o);case"DOUBLE":return new Float64Array(d.buffer,d.byteOffset,o);case"VARCHAR":return new Float64Array(d.buffer,d.byteOffset,o);default:return new Array(0)}}function gf(r,t,e){let o=r.HEAPU8.subarray(t,t+e);return new Uint8Array(o.buffer,o.byteOffset,e)}function wr(r,t,e){let o=r.HEAPU8.subarray(t,t+e*8);return new Float64Array(o.buffer,o.byteOffset,e)}function jf(r,t,e,o,d,m,g,S){try{let A=r._udfFunctions.get(o);if(!A){Ya(t,e,"Unknown UDF with id: "+o);return}let N=vf.decode(t.HEAPU8.subarray(d,d+m)),R=JSON.parse(N),U=wr(t,g,S/8),P=H=>{var M;let pe=null;switch(H.validityBuffer!==void 0&&(pe=gf(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 oe=Qa(t,U[H.dataBuffer],H.physicalType,R.rows),ae=[],Ce=wr(t,U[H.lengthBuffer],R.rows);for(let D=0;D<R.rows;++D){if(pe!=null&&!pe[D]){ae.push(null);continue}let I=t.HEAPU8.subarray(oe[D],oe[D]+Ce[D]),De=vf.decode(I);ae.push(De)}return D=>ae[D]}case"STRUCT":{let oe={},ae=[];for(let Ce=0;Ce<(((M=H.children)==null?void 0:M.length)||0);++Ce){let D=H.children[Ce],I=P(D);ae.push(De=>{oe[D.name]=I(De)})}return pe!=null?Ce=>{if(!pe[Ce])return null;for(let D of ae)D(Ce);return oe}:Ce=>{for(let D of ae)D(Ce);return oe}}default:{if(H.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for argument of type: "+H.physicalType);let oe=Qa(t,U[H.dataBuffer],H.physicalType,R.rows);return pe!=null?ae=>pe[ae]?oe[ae]:null:ae=>oe[ae]}}},fe=[];for(let H=0;H<R.args.length;++H)fe.push(P(R.args[H]));let G=R.rows*za(R.ret.physicalType),z=t._malloc(G),Z=Qa(t,z,R.ret.physicalType,R.rows),ue=t._malloc(R.rows),be=gf(t,ue,R.rows);if(Z.length==0||be.length==0){Ya(t,e,"Can't create physical arrays for result");return}let ye=Z;R.ret.physicalType=="VARCHAR"&&(ye=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 M=0;M<R.args.length;++M)Ae[M]=fe[M](H);let pe=A.func(...Ae);ye[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*za("DOUBLE"));let pe=wr(t,ne,R.rows),M=0;for(let D=0;D<R.rows;++D){let I=bf.encode(ye[D]||"");H.push(I),pe[D]=I.length,M+=I.length}let oe=t._malloc(M),ae=t.HEAPU8.subarray(oe,oe+M),Ce=0;for(let D=0;D<R.rows;++D){Z[D]=Ce;let I=H[D];ae.subarray(Ce,Ce+I.length).set(I),Ce+=I.length}}}let we=3*8,J=t._malloc(we),ee=wr(t,J,3);ee[0]=z,ee[1]=ue,ee[2]=ne,t.HEAPF64[(e>>3)+0]=0,t.HEAPF64[(e>>3)+1]=J,t.HEAPF64[(e>>3)+2]=0}catch(A){Ya(t,e,A.toString())}}function sg(){let r=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),r.decode(t))}var Ht=sg();function Ee(r,t){r.ccall("duckdb_web_fail_with",null,["string"],[t])}function qt(r,t,e){let o=r.HEAPU8.subarray(t,t+e),d=new Uint8Array(new ArrayBuffer(o.byteLength));return d.set(o),d}function de(r,t,e){return Ht(r.HEAPU8.subarray(t,t+e))}function je(r,t,e,o){let d=r.stackSave(),m=r.stackAlloc(3*8);e.unshift("number"),o.unshift(m),r.ccall(t,null,e,o);let g=r.HEAPF64[(m>>3)+0],S=r.HEAPF64[(m>>3)+1],A=r.HEAPF64[(m>>3)+2];return r.stackRestore(d),[g,S,A]}function Fe(r){r.ccall("duckdb_web_clear_response",null,[],[])}var Cr=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),o=new Uint8Array(new ArrayBuffer(t.byteLength));o.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=o}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 ug=new TextEncoder;var kr=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,o,d]=je(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(e!==0)throw new Error(de(this.mod,o,d));Fe(this.mod)}reset(){let[t,e,o]=je(this.mod,"duckdb_web_reset",[],[]);if(t!==0)throw new Error(de(this.mod,e,o));Fe(this.mod)}getVersion(){let[t,e,o]=je(this.mod,"duckdb_web_get_version",[],[]);if(t!==0)throw new Error(de(this.mod,e,o));let d=de(this.mod,e,o);return Fe(this.mod),d}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,o,d]=je(this.mod,"duckdb_web_tokenize",["string"],[t]);if(e!==0)throw new Error(de(this.mod,o,d));let m=de(this.mod,o,d);return Fe(this.mod),JSON.parse(m)}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[o,d,m]=je(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(o!==0)throw new Error(de(this.mod,d,m));let g=qt(this.mod,d,m);return Fe(this.mod),g}startPendingQuery(t,e){let[o,d,m]=je(this.mod,"duckdb_web_pending_query_start",["number","string"],[t,e]);if(o!==0)throw new Error(de(this.mod,d,m));if(d==0)return null;let g=qt(this.mod,d,m);return Fe(this.mod),g}pollPendingQuery(t){let[e,o,d]=je(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(e!==0)throw new Error(de(this.mod,o,d));if(o==0)return null;let m=qt(this.mod,o,d);return Fe(this.mod),m}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[e,o,d]=je(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(e!==0)throw new Error(de(this.mod,o,d));let m=qt(this.mod,o,d);return Fe(this.mod),m}getTableNames(t,e){let[o,d,m]=je(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(o!==0)throw new Error(de(this.mod,d,m));let g=de(this.mod,d,m);return Fe(this.mod),JSON.parse(g)}createScalarFunction(t,e,o,d){let m={functionId:this._nextUDFId,name:e,returnType:fi(o)},g={functionId:m.functionId,connectionId:t,name:e,returnType:o,func:d};this._nextUDFId+=1;let[S,A,N]=je(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(m)]);if(S!==0)throw new Error(de(this.mod,A,N));if(Fe(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(g.functionId,g),this.pthread)for(let R of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])R.postMessage({cmd:"registerUDFFunction",udf:g})}createPrepared(t,e){let[o,d,m]=je(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(o!==0)throw new Error(de(this.mod,d,m));return Fe(this.mod),d}closePrepared(t,e){let[o,d,m]=je(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(o!==0)throw new Error(de(this.mod,d,m));Fe(this.mod)}runPrepared(t,e,o){let[d,m,g]=je(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(o)]);if(d!==0)throw new Error(de(this.mod,m,g));let S=qt(this.mod,m,g);return Fe(this.mod),S}sendPrepared(t,e,o){let[d,m,g]=je(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(o)]);if(d!==0)throw new Error(de(this.mod,m,g));let S=qt(this.mod,m,g);return Fe(this.mod),S}insertArrowFromIPCStream(t,e,o){if(e.length==0)return;let d=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(d,d+e.length).set(e);let g=o?JSON.stringify(o):"",[S,A,N]=je(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,d,e.length,g]);if(S!==0)throw new Error(de(this.mod,A,N))}insertCSVFromPath(t,e,o){if(o.columns!==void 0){o.columnsFlat=[];for(let N in o.columns)o.columnsFlat.push(vr(N,o.columns[N]))}let d={...o};d.columns=d.columnsFlat,delete d.columnsFlat;let m=JSON.stringify(d),[g,S,A]=je(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,m]);if(g!==0)throw new Error(de(this.mod,S,A))}insertJSONFromPath(t,e,o){if(o.columns!==void 0){o.columnsFlat=[];for(let N in o.columns)o.columnsFlat.push(vr(N,o.columns[N]))}let d={...o};d.columns=d.columnsFlat,delete d.columnsFlat;let m=JSON.stringify(d),[g,S,A]=je(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,m]);if(g!==0)throw new Error(de(this.mod,S,A))}globFiles(t){let[e,o,d]=je(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(e!==0)throw new Error(de(this.mod,o,d));let m=de(this.mod,o,d);Fe(this.mod);let g=JSON.parse(m);return g??[]}registerFileURL(t,e){e===void 0&&(e=t);let[o,d,m]=je(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,e,-1]);if(o!==0)throw new Error(de(this.mod,d,m));Fe(this.mod)}registerFileText(t,e){let o=ug.encode(e);this.registerFileBuffer(t,o)}registerFileBuffer(t,e){let o=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(o,o+e.length).set(e);let[m,g,S]=je(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,o,e.length]);if(m!==0)throw new Error(de(this.mod,g,S));Fe(this.mod)}registerFileHandle(t,e){let[o,d,m]=je(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,t,-1]);if(o!==0)throw new Error(de(this.mod,d,m));if(Fe(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,e),this.pthread){for(let g of this.pthread.runningWorkers)g.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let g of this.pthread.unusedWorkers)g.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,o,d]=je(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(e!==0)throw new Error(de(this.mod,o,d));Fe(this.mod)}dropFiles(){let[t,e,o]=je(this.mod,"duckdb_web_fs_drop_files",[],[]);if(t!==0)throw new Error(de(this.mod,e,o));Fe(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[o,d,m]=je(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(o!==0)throw new Error(de(this.mod,d,m));Fe(this.mod)}copyFileToBuffer(t){let[e,o,d]=je(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(e!==0)throw new Error(de(this.mod,o,d));let m=this.mod.HEAPU8.subarray(o,o+d),g=new Uint8Array(m.length);return g.set(m),Fe(this.mod),g}collectFileStatistics(t,e){let[o,d,m]=je(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(o!==0)throw new Error(de(this.mod,d,m))}exportFileStatistics(t){let[e,o,d]=je(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(e!==0)throw new Error(de(this.mod,o,d));return new Cr(this.mod.HEAPU8.subarray(o,o+d))}};var wf=Ni(require("fs")),Sr=class extends kr{constructor(e,o,d,m){super(e,o);this.mainModulePath=d,this.pthreadWorkerPath=m}locateFile(e,o){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=${o} path=${e}`)}instantiateWasm(e,o){globalThis.DUCKDB_RUNTIME={};for(let m of Object.getOwnPropertyNames(this._runtime))m!="constructor"&&(globalThis.DUCKDB_RUNTIME[m]=Object.getOwnPropertyDescriptor(this._runtime,m).value);let d=wf.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(d,e).then(m=>{o(m.instance,m.module)}),[]}instantiateImpl(e){return mf({...e,instantiateWasm:this.instantiateWasm.bind(this)})}};var Er=class extends Sr{constructor(t,e,o,d=null){super(t,e,o,d)}instantiateImpl(t){return hf({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var Ye=Ni(require("fs"));var cp=Ni(lp());var $e={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(r,t){try{let e=$e._fileInfoCache.get(t),[o,d,m]=je(r,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(e==null?void 0:e.cacheEpoch)||0]);if(o!==0)return Ee(r,de(r,d,m)),null;if(m===0)return e;let g=de(r,d,m);Fe(r);let S=JSON.parse(g);return S==null?null:($e._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{$e._fileInfoCache.delete(t);let o=$e.resolveFileInfo(r,t);switch(o==null?void 0:o.dataProtocol){case 1:{o.dataNativeFd=Ye.default.openSync(o.dataUrl,Ye.default.constants.O_CREAT|Ye.default.constants.O_RDWR,Ye.default.constants.S_IRUSR|Ye.default.constants.S_IWUSR);let[d,m,g]=je(r,"duckdb_web_fs_set_file_descriptor",["number","number"],[t,o.dataNativeFd]);d!==0&&Ee(r,de(r,m,g));let S=Ye.default.fstatSync(o.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(o){Ee(r,o.toString())}return 0},syncFile:(r,t)=>{},closeFile:(r,t)=>{try{let e=$e.resolveFileInfo(r,t);switch($e._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 o=$e.resolveFileInfo(r,t);switch(o==null?void 0:o.dataProtocol){case 1:{if(!o.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;Ye.default.truncateSync(o.dataUrl,e);break}case 3:case 4:Ee(r,"Not implemented")}}catch(o){Ee(r,o.toString())}return 0},readFile:(r,t,e,o,d)=>{try{let m=$e.resolveFileInfo(r,t);switch(m==null?void 0:m.dataProtocol){case 1:return m.dataNativeFd?Ye.default.readSync(m.dataNativeFd,r.HEAPU8,e,o,d):(Ee(r,`File ${t} is missing a file descriptor`),0);case 3:case 4:Ee(r,"Not implemented")}}catch(m){Ee(r,m.toString())}return 0},writeFile:(r,t,e,o,d)=>{try{let m=$e.resolveFileInfo(r,t);switch(m==null?void 0:m.dataProtocol){case 1:{if(!m.dataNativeFd)return Ee(r,`File ${t} is missing a file descriptor`),0;let g=r.HEAPU8.subarray(e,e+o);return Ye.default.writeSync(m.dataNativeFd,g,0,g.length,d)}}}catch(m){Ee(r,m.toString())}return 0},getLastFileModificationTime:(r,t)=>{try{let e=$e.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 o=Ht(r.HEAPU8.subarray(t,t+e));return Ye.default.existsSync(o)}catch(o){return Ee(r,o.toString()),!1}},createDirectory:(r,t,e)=>{try{let o=Ht(r.HEAPU8.subarray(t,t+e));return Ye.default.mkdirSync(o)}catch(o){return Ee(r,o.toString()),0}},removeDirectory:(r,t,e)=>{try{let o=Ht(r.HEAPU8.subarray(t,t+e));return Ye.default.rmdirSync(o)}catch(o){return Ee(r,o.toString()),0}},listDirectoryEntries:(r,t,e)=>(Ee(r,"Not Implemented"),!1),glob:(r,t,e)=>{try{let o=de(r,t,e),d=cp.sync([o],{dot:!0});for(let m of d)r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[m])}catch(o){return Ee(r,o.toString()),0}},moveFile:(r,t,e,o,d)=>{var A,N;let m=de(r,t,e),g=de(r,o,d),S=(A=$e._files)==null?void 0:A.get(m);S!==void 0&&($e._files.delete(S),$e._files.set(g,S));for(let[R,U]of((N=$e._fileInfoCache)==null?void 0:N.entries())||[])if(U.dataUrl==m){$e._fileInfoCache.delete(R);break}return!0},checkFile:(r,t,e)=>{try{let o=Ht(r.HEAPU8.subarray(t,t+e));return Ye.default.existsSync(o)}catch(o){return Ee(r,o.toString()),!1}},removeFile:(r,t,e)=>{try{let o=Ht(r.HEAPU8.subarray(t,t+e));return Ye.default.rmSync(o)}catch(o){return Ee(r,o.toString()),0}},callScalarUDF:(r,t,e,o,d,m,g)=>{jf($e,r,t,e,o,d,m,g)}};var Pu=class extends gr{postMessage(t,e){globalThis.postMessage(t,e)}async instantiate(t,e,o){return await new Er(this,$e,t,e).instantiate(o)}};function fp(){let r=new Pu;globalThis.onmessage=async t=>{await r.onMessage(t.data)}}fp();0&&(module.exports={registerWorker});
|
|
1
|
+
"use strict";var fg=Object.create;var hr=Object.defineProperty;var dg=Object.getOwnPropertyDescriptor;var pg=Object.getOwnPropertyNames;var hg=Object.getPrototypeOf,yg=Object.prototype.hasOwnProperty;var K=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),mg=(r,t)=>{for(var e in t)hr(r,e,{get:t[e],enumerable:!0})},j_=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of pg(t))!yg.call(r,d)&&d!==e&&hr(r,d,{get:()=>t[d],enumerable:!(o=dg(t,d))||o.enumerable});return r};var Bi=(r,t,e)=>(e=r!=null?fg(hg(r)):{},j_(t||!r||!r.__esModule?hr(e,"default",{value:r,enumerable:!0}):e,r)),vg=r=>j_(hr({},"__esModule",{value:!0}),r);var P_=K(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.splitWhen=fi.flatten=void 0;function kg(r){return r.reduce((t,e)=>[].concat(t,e),[])}fi.flatten=kg;function Sg(r,t){let e=[[]],o=0;for(let d of r)t(d)?(o++,e[o]=[]):e[o].push(d);return e}fi.splitWhen=Sg});var I_=K(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.isEnoentCodeError=void 0;function Eg(r){return r.code==="ENOENT"}Sr.isEnoentCodeError=Eg});var M_=K(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.createDirentFromStats=void 0;var rs=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 Rg(r,t){return new rs(r,t)}Er.createDirentFromStats=Rg});var F_=K(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.removeLeadingDotSegment=ht.escape=ht.makeAbsolute=ht.unixify=void 0;var Ag=require("path"),Tg=2,Dg=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Pg(r){return r.replace(/\\/g,"/")}ht.unixify=Pg;function Ig(r,t){return Ag.resolve(r,t)}ht.makeAbsolute=Ig;function Mg(r){return r.replace(Dg,"\\$2")}ht.escape=Mg;function Fg(r){if(r.charAt(0)==="."){let t=r.charAt(1);if(t==="/"||t==="\\")return r.slice(Tg)}return r}ht.removeLeadingDotSegment=Fg});var x_=K((Jw,O_)=>{O_.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 N_=K((Zw,B_)=>{var Og=x_(),L_={"{":"}","(":")","[":"]"},xg=function(r){if(r[0]==="!")return!0;for(var t=0,e=-2,o=-2,d=-2,m=-2,g=-2;t<r.length;){if(r[t]==="*"||r[t+1]==="?"&&/[\].+)]/.test(r[t])||o!==-1&&r[t]==="["&&r[t+1]!=="]"&&(o<t&&(o=r.indexOf("]",t)),o>t&&(g===-1||g>o||(g=r.indexOf("\\",t),g===-1||g>o)))||d!==-1&&r[t]==="{"&&r[t+1]!=="}"&&(d=r.indexOf("}",t),d>t&&(g=r.indexOf("\\",t),g===-1||g>d))||m!==-1&&r[t]==="("&&r[t+1]==="?"&&/[:!=]/.test(r[t+2])&&r[t+3]!==")"&&(m=r.indexOf(")",t),m>t&&(g=r.indexOf("\\",t),g===-1||g>m))||e!==-1&&r[t]==="("&&r[t+1]!=="|"&&(e<t&&(e=r.indexOf("|",t)),e!==-1&&r[e+1]!==")"&&(m=r.indexOf(")",e),m>e&&(g=r.indexOf("\\",e),g===-1||g>m))))return!0;if(r[t]==="\\"){var E=r[t+1];t+=2;var A=L_[E];if(A){var x=r.indexOf(A,t);x!==-1&&(t=x+1)}if(r[t]==="!")return!0}else t++}return!1},Lg=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 o=L_[e];if(o){var d=r.indexOf(o,t);d!==-1&&(t=d+1)}if(r[t]==="!")return!0}else t++}return!1};B_.exports=function(t,e){if(typeof t!="string"||t==="")return!1;if(Og(t))return!0;var o=xg;return e&&e.strict===!1&&(o=Lg),o(t)}});var H_=K((eC,U_)=>{"use strict";var Bg=N_(),Ng=require("path").posix.dirname,Ug=require("os").platform()==="win32",ns="/",Hg=/\\/g,qg=/[\{\[].*[\}\]]$/,Wg=/(^|[^\\])([\{\[]|\([^\)]+$)/,$g=/\\([\!\*\?\|\[\]\(\)\{\}])/g;U_.exports=function(t,e){var o=Object.assign({flipBackslashes:!0},e);o.flipBackslashes&&Ug&&t.indexOf(ns)<0&&(t=t.replace(Hg,ns)),qg.test(t)&&(t+=ns),t+="a";do t=Ng(t);while(Bg(t)||Wg.test(t));return t.replace($g,"$1")}});var Rr=K(_t=>{"use strict";_t.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1;_t.find=(r,t)=>r.nodes.find(e=>e.type===t);_t.exceedsLimit=(r,t,e=1,o)=>o===!1||!_t.isInteger(r)||!_t.isInteger(t)?!1:(Number(t)-Number(r))/Number(e)>=o;_t.escapeNode=(r,t=0,e)=>{let o=r.nodes[t];!o||(e&&o.type===e||o.type==="open"||o.type==="close")&&o.escaped!==!0&&(o.value="\\"+o.value,o.escaped=!0)};_t.encloseBrace=r=>r.type!=="brace"?!1:r.commas>>0+r.ranges>>0===0?(r.invalid=!0,!0):!1;_t.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;_t.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0;_t.reduce=r=>r.reduce((t,e)=>(e.type==="text"&&t.push(e.value),e.type==="range"&&(e.type="text"),t),[]);_t.flatten=(...r)=>{let t=[],e=o=>{for(let d=0;d<o.length;d++){let m=o[d];Array.isArray(m)?e(m,t):m!==void 0&&t.push(m)}return t};return e(r),t}});var Ar=K((iC,W_)=>{"use strict";var q_=Rr();W_.exports=(r,t={})=>{let e=(o,d={})=>{let m=t.escapeInvalid&&q_.isInvalidBrace(d),g=o.invalid===!0&&t.escapeInvalid===!0,E="";if(o.value)return(m||g)&&q_.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let A of o.nodes)E+=e(A);return E};return e(r)}});var K_=K((rC,$_)=>{"use strict";$_.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}});var ef=K((nC,Z_)=>{"use strict";var G_=K_(),Qt=(r,t,e)=>{if(G_(r)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||r===t)return String(r);if(G_(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...e};typeof o.strictZeros=="boolean"&&(o.relaxZeros=o.strictZeros===!1);let d=String(o.relaxZeros),m=String(o.shorthand),g=String(o.capture),E=String(o.wrap),A=r+":"+t+"="+d+m+g+E;if(Qt.cache.hasOwnProperty(A))return Qt.cache[A].result;let x=Math.min(r,t),D=Math.max(r,t);if(Math.abs(x-D)===1){let Y=r+"|"+t;return o.capture?`(${Y})`:o.wrap===!1?Y:`(?:${Y})`}let N=J_(r)||J_(t),P={min:r,max:t,a:x,b:D},_e=[],$=[];if(N&&(P.isPadded=N,P.maxLen=String(P.max).length),x<0){let Y=D<0?Math.abs(D):1;$=Y_(Y,Math.abs(x),P,o),x=P.a=0}return D>=0&&(_e=Y_(x,D,P,o)),P.negatives=$,P.positives=_e,P.result=Kg($,_e,o),o.capture===!0?P.result=`(${P.result})`:o.wrap!==!1&&_e.length+$.length>1&&(P.result=`(?:${P.result})`),Qt.cache[A]=P,P.result};function Kg(r,t,e){let o=as(r,t,"-",!1,e)||[],d=as(t,r,"",!1,e)||[],m=as(r,t,"-?",!0,e)||[];return o.concat(m).concat(d).join("|")}function Gg(r,t){let e=1,o=1,d=Q_(r,e),m=new Set([t]);for(;r<=d&&d<=t;)m.add(d),e+=1,d=Q_(r,e);for(d=z_(t+1,o)-1;r<d&&d<=t;)m.add(d),o+=1,d=z_(t+1,o)-1;return m=[...m],m.sort(Qg),m}function Yg(r,t,e){if(r===t)return{pattern:r,count:[],digits:0};let o=Vg(r,t),d=o.length,m="",g=0;for(let E=0;E<d;E++){let[A,x]=o[E];A===x?m+=A:A!=="0"||x!=="9"?m+=zg(A,x,e):g++}return g&&(m+=e.shorthand===!0?"\\d":"[0-9]"),{pattern:m,count:[g],digits:d}}function Y_(r,t,e,o){let d=Gg(r,t),m=[],g=r,E;for(let A=0;A<d.length;A++){let x=d[A],D=Yg(String(g),String(x),o),N="";if(!e.isPadded&&E&&E.pattern===D.pattern){E.count.length>1&&E.count.pop(),E.count.push(D.count[0]),E.string=E.pattern+X_(E.count),g=x+1;continue}e.isPadded&&(N=Xg(x,e,o)),D.string=N+D.pattern+X_(D.count),m.push(D),g=x+1,E=D}return m}function as(r,t,e,o,d){let m=[];for(let g of r){let{string:E}=g;!o&&!V_(t,"string",E)&&m.push(e+E),o&&V_(t,"string",E)&&m.push(e+E)}return m}function Vg(r,t){let e=[];for(let o=0;o<r.length;o++)e.push([r[o],t[o]]);return e}function Qg(r,t){return r>t?1:t>r?-1:0}function V_(r,t,e){return r.some(o=>o[t]===e)}function Q_(r,t){return Number(String(r).slice(0,-t)+"9".repeat(t))}function z_(r,t){return r-r%Math.pow(10,t)}function X_(r){let[t=0,e=""]=r;return e||t>1?`{${t+(e?","+e:"")}}`:""}function zg(r,t,e){return`[${r}${t-r===1?"":"-"}${t}]`}function J_(r){return/^-?(0+)\d/.test(r)}function Xg(r,t,e){if(!t.isPadded)return r;let o=Math.abs(t.maxLen-String(r).length),d=e.relaxZeros!==!1;switch(o){case 0:return"";case 1:return d?"0?":"0";case 2:return d?"0{0,2}":"00";default:return d?`0{0,${o}}`:`0{${o}}`}}Qt.cache={};Qt.clearCache=()=>Qt.cache={};Z_.exports=Qt});var os=K((aC,lf)=>{"use strict";var Jg=require("util"),nf=ef(),tf=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),Zg=r=>t=>r===!0?Number(t):String(t),ss=r=>typeof r=="number"||typeof r=="string"&&r!=="",Ni=r=>Number.isInteger(+r),us=r=>{let t=`${r}`,e=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++e]==="0";);return e>0},eb=(r,t,e)=>typeof r=="string"||typeof t=="string"?!0:e.stringify===!0,tb=(r,t,e)=>{if(t>0){let o=r[0]==="-"?"-":"";o&&(r=r.slice(1)),r=o+r.padStart(o?t-1:t,"0")}return e===!1?String(r):r},rf=(r,t)=>{let e=r[0]==="-"?"-":"";for(e&&(r=r.slice(1),t--);r.length<t;)r="0"+r;return e?"-"+r:r},ib=(r,t)=>{r.negatives.sort((g,E)=>g<E?-1:g>E?1:0),r.positives.sort((g,E)=>g<E?-1:g>E?1:0);let e=t.capture?"":"?:",o="",d="",m;return r.positives.length&&(o=r.positives.join("|")),r.negatives.length&&(d=`-(${e}${r.negatives.join("|")})`),o&&d?m=`${o}|${d}`:m=o||d,t.wrap?`(${e}${m})`:m},af=(r,t,e,o)=>{if(e)return nf(r,t,{wrap:!1,...o});let d=String.fromCharCode(r);if(r===t)return d;let m=String.fromCharCode(t);return`[${d}-${m}]`},sf=(r,t,e)=>{if(Array.isArray(r)){let o=e.wrap===!0,d=e.capture?"":"?:";return o?`(${d}${r.join("|")})`:r.join("|")}return nf(r,t,e)},uf=(...r)=>new RangeError("Invalid range arguments: "+Jg.inspect(...r)),of=(r,t,e)=>{if(e.strictRanges===!0)throw uf([r,t]);return[]},rb=(r,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${r}" to be a number`);return[]},nb=(r,t,e=1,o={})=>{let d=Number(r),m=Number(t);if(!Number.isInteger(d)||!Number.isInteger(m)){if(o.strictRanges===!0)throw uf([r,t]);return[]}d===0&&(d=0),m===0&&(m=0);let g=d>m,E=String(r),A=String(t),x=String(e);e=Math.max(Math.abs(e),1);let D=us(E)||us(A)||us(x),N=D?Math.max(E.length,A.length,x.length):0,P=D===!1&&eb(r,t,o)===!1,_e=o.transform||Zg(P);if(o.toRegex&&e===1)return af(rf(r,N),rf(t,N),!0,o);let $={negatives:[],positives:[]},Y=Se=>$[Se<0?"negatives":"positives"].push(Math.abs(Se)),Z=[],re=0;for(;g?d>=m:d<=m;)o.toRegex===!0&&e>1?Y(d):Z.push(tb(_e(d,re),N,P)),d=g?d-e:d+e,re++;return o.toRegex===!0?e>1?ib($,o):sf(Z,null,{wrap:!1,...o}):Z},ab=(r,t,e=1,o={})=>{if(!Ni(r)&&r.length>1||!Ni(t)&&t.length>1)return of(r,t,o);let d=o.transform||(P=>String.fromCharCode(P)),m=`${r}`.charCodeAt(0),g=`${t}`.charCodeAt(0),E=m>g,A=Math.min(m,g),x=Math.max(m,g);if(o.toRegex&&e===1)return af(A,x,!1,o);let D=[],N=0;for(;E?m>=g:m<=g;)D.push(d(m,N)),m=E?m-e:m+e,N++;return o.toRegex===!0?sf(D,null,{wrap:!1,options:o}):D},Tr=(r,t,e,o={})=>{if(t==null&&ss(r))return[r];if(!ss(r)||!ss(t))return of(r,t,o);if(typeof e=="function")return Tr(r,t,1,{transform:e});if(tf(e))return Tr(r,t,0,e);let d={...o};return d.capture===!0&&(d.wrap=!0),e=e||d.step||1,Ni(e)?Ni(r)&&Ni(t)?nb(r,t,e,d):ab(r,t,Math.max(Math.abs(e),1),d):e!=null&&!tf(e)?rb(e,d):Tr(r,t,1,e)};lf.exports=Tr});var ff=K((sC,_f)=>{"use strict";var sb=os(),cf=Rr(),ub=(r,t={})=>{let e=(o,d={})=>{let m=cf.isInvalidBrace(d),g=o.invalid===!0&&t.escapeInvalid===!0,E=m===!0||g===!0,A=t.escapeInvalid===!0?"\\":"",x="";if(o.isOpen===!0||o.isClose===!0)return A+o.value;if(o.type==="open")return E?A+o.value:"(";if(o.type==="close")return E?A+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":E?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let D=cf.reduce(o.nodes),N=sb(...D,{...t,wrap:!1,toRegex:!0});if(N.length!==0)return D.length>1&&N.length>1?`(${N})`:N}if(o.nodes)for(let D of o.nodes)x+=e(D,o);return x};return e(r)};_f.exports=ub});var hf=K((uC,pf)=>{"use strict";var ob=os(),df=Ar(),di=Rr(),zt=(r="",t="",e=!1)=>{let o=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return e?di.flatten(t).map(d=>`{${d}}`):t;for(let d of r)if(Array.isArray(d))for(let m of d)o.push(zt(m,t,e));else for(let m of t)e===!0&&typeof m=="string"&&(m=`{${m}}`),o.push(Array.isArray(m)?zt(d,m,e):d+m);return di.flatten(o)},lb=(r,t={})=>{let e=t.rangeLimit===void 0?1e3:t.rangeLimit,o=(d,m={})=>{d.queue=[];let g=m,E=m.queue;for(;g.type!=="brace"&&g.type!=="root"&&g.parent;)g=g.parent,E=g.queue;if(d.invalid||d.dollar){E.push(zt(E.pop(),df(d,t)));return}if(d.type==="brace"&&d.invalid!==!0&&d.nodes.length===2){E.push(zt(E.pop(),["{}"]));return}if(d.nodes&&d.ranges>0){let N=di.reduce(d.nodes);if(di.exceedsLimit(...N,t.step,e))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=ob(...N,t);P.length===0&&(P=df(d,t)),E.push(zt(E.pop(),P)),d.nodes=[];return}let A=di.encloseBrace(d),x=d.queue,D=d;for(;D.type!=="brace"&&D.type!=="root"&&D.parent;)D=D.parent,x=D.queue;for(let N=0;N<d.nodes.length;N++){let P=d.nodes[N];if(P.type==="comma"&&d.type==="brace"){N===1&&x.push(""),x.push("");continue}if(P.type==="close"){E.push(zt(E.pop(),x,A));continue}if(P.value&&P.type!=="open"){x.push(zt(x.pop(),P.value));continue}P.nodes&&o(P,d)}return x};return di.flatten(o(r))};pf.exports=lb});var mf=K((oC,yf)=>{"use strict";yf.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 wf=K((lC,jf)=>{"use strict";var cb=Ar(),{MAX_LENGTH:vf,CHAR_BACKSLASH:ls,CHAR_BACKTICK:_b,CHAR_COMMA:fb,CHAR_DOT:db,CHAR_LEFT_PARENTHESES:pb,CHAR_RIGHT_PARENTHESES:hb,CHAR_LEFT_CURLY_BRACE:yb,CHAR_RIGHT_CURLY_BRACE:mb,CHAR_LEFT_SQUARE_BRACKET:gf,CHAR_RIGHT_SQUARE_BRACKET:bf,CHAR_DOUBLE_QUOTE:vb,CHAR_SINGLE_QUOTE:gb,CHAR_NO_BREAK_SPACE:bb,CHAR_ZERO_WIDTH_NOBREAK_SPACE:jb}=mf(),wb=(r,t={})=>{if(typeof r!="string")throw new TypeError("Expected a string");let e=t||{},o=typeof e.maxLength=="number"?Math.min(vf,e.maxLength):vf;if(r.length>o)throw new SyntaxError(`Input length (${r.length}), exceeds max characters (${o})`);let d={type:"root",input:r,nodes:[]},m=[d],g=d,E=d,A=0,x=r.length,D=0,N=0,P,_e={},$=()=>r[D++],Y=Z=>{if(Z.type==="text"&&E.type==="dot"&&(E.type="text"),E&&E.type==="text"&&Z.type==="text"){E.value+=Z.value;return}return g.nodes.push(Z),Z.parent=g,Z.prev=E,E=Z,Z};for(Y({type:"bos"});D<x;)if(g=m[m.length-1],P=$(),!(P===jb||P===bb)){if(P===ls){Y({type:"text",value:(t.keepEscaping?P:"")+$()});continue}if(P===bf){Y({type:"text",value:"\\"+P});continue}if(P===gf){A++;let Z=!0,re;for(;D<x&&(re=$());){if(P+=re,re===gf){A++;continue}if(re===ls){P+=$();continue}if(re===bf&&(A--,A===0))break}Y({type:"text",value:P});continue}if(P===pb){g=Y({type:"paren",nodes:[]}),m.push(g),Y({type:"text",value:P});continue}if(P===hb){if(g.type!=="paren"){Y({type:"text",value:P});continue}g=m.pop(),Y({type:"text",value:P}),g=m[m.length-1];continue}if(P===vb||P===gb||P===_b){let Z=P,re;for(t.keepQuotes!==!0&&(P="");D<x&&(re=$());){if(re===ls){P+=re+$();continue}if(re===Z){t.keepQuotes===!0&&(P+=re);break}P+=re}Y({type:"text",value:P});continue}if(P===yb){N++;let re={type:"brace",open:!0,close:!1,dollar:E.value&&E.value.slice(-1)==="$"||g.dollar===!0,depth:N,commas:0,ranges:0,nodes:[]};g=Y(re),m.push(g),Y({type:"open",value:P});continue}if(P===mb){if(g.type!=="brace"){Y({type:"text",value:P});continue}let Z="close";g=m.pop(),g.close=!0,Y({type:Z,value:P}),N--,g=m[m.length-1];continue}if(P===fb&&N>0){if(g.ranges>0){g.ranges=0;let Z=g.nodes.shift();g.nodes=[Z,{type:"text",value:cb(g)}]}Y({type:"comma",value:P}),g.commas++;continue}if(P===db&&N>0&&g.commas===0){let Z=g.nodes;if(N===0||Z.length===0){Y({type:"text",value:P});continue}if(E.type==="dot"){if(g.range=[],E.value+=P,E.type="range",g.nodes.length!==3&&g.nodes.length!==5){g.invalid=!0,g.ranges=0,E.type="text";continue}g.ranges++,g.args=[];continue}if(E.type==="range"){Z.pop();let re=Z[Z.length-1];re.value+=E.value+P,E=re,g.ranges--;continue}Y({type:"dot",value:P});continue}Y({type:"text",value:P})}do if(g=m.pop(),g.type!=="root"){g.nodes.forEach(Se=>{Se.nodes||(Se.type==="open"&&(Se.isOpen=!0),Se.type==="close"&&(Se.isClose=!0),Se.nodes||(Se.type="text"),Se.invalid=!0)});let Z=m[m.length-1],re=Z.nodes.indexOf(g);Z.nodes.splice(re,1,...g.nodes)}while(m.length>0);return Y({type:"eos"}),d};jf.exports=wb});var Sf=K((cC,kf)=>{"use strict";var Cf=Ar(),Cb=ff(),kb=hf(),Sb=wf(),ot=(r,t={})=>{let e=[];if(Array.isArray(r))for(let o of r){let d=ot.create(o,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={})=>Sb(r,t);ot.stringify=(r,t={})=>Cf(typeof r=="string"?ot.parse(r,t):r,t);ot.compile=(r,t={})=>(typeof r=="string"&&(r=ot.parse(r,t)),Cb(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);kf.exports=ot});var Ui=K((_C,Df)=>{"use strict";var Eb=require("path"),yt="\\\\/",Ef=`[^${yt}]`,Et="\\.",Rb="\\+",Ab="\\?",Dr="\\/",Tb="(?=.)",Rf="[^/]",cs=`(?:${Dr}|$)`,Af=`(?:^|${Dr})`,_s=`${Et}{1,2}${cs}`,Db=`(?!${Et})`,Pb=`(?!${Af}${_s})`,Ib=`(?!${Et}{0,1}${cs})`,Mb=`(?!${_s})`,Fb=`[^.${Dr}]`,Ob=`${Rf}*?`,Tf={DOT_LITERAL:Et,PLUS_LITERAL:Rb,QMARK_LITERAL:Ab,SLASH_LITERAL:Dr,ONE_CHAR:Tb,QMARK:Rf,END_ANCHOR:cs,DOTS_SLASH:_s,NO_DOT:Db,NO_DOTS:Pb,NO_DOT_SLASH:Ib,NO_DOTS_SLASH:Mb,QMARK_NO_DOT:Fb,STAR:Ob,START_ANCHOR:Af},xb={...Tf,SLASH_LITERAL:`[${yt}]`,QMARK:Ef,STAR:`${Ef}*?`,DOTS_SLASH:`${Et}{1,2}(?:[${yt}]|$)`,NO_DOT:`(?!${Et})`,NO_DOTS:`(?!(?:^|[${yt}])${Et}{1,2}(?:[${yt}]|$))`,NO_DOT_SLASH:`(?!${Et}{0,1}(?:[${yt}]|$))`,NO_DOTS_SLASH:`(?!${Et}{1,2}(?:[${yt}]|$))`,QMARK_NO_DOT:`[^.${yt}]`,START_ANCHOR:`(?:^|[${yt}])`,END_ANCHOR:`(?:[${yt}]|$)`},Lb={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"};Df.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Lb,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:Eb.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?xb:Tf}}});var Hi=K(ut=>{"use strict";var Bb=require("path"),Nb=process.platform==="win32",{REGEX_BACKSLASH:Ub,REGEX_REMOVE_BACKSLASH:Hb,REGEX_SPECIAL_CHARS:qb,REGEX_SPECIAL_CHARS_GLOBAL:Wb}=Ui();ut.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r);ut.hasRegexChars=r=>qb.test(r);ut.isRegexChar=r=>r.length===1&&ut.hasRegexChars(r);ut.escapeRegex=r=>r.replace(Wb,"\\$1");ut.toPosixSlashes=r=>r.replace(Ub,"/");ut.removeBackslashes=r=>r.replace(Hb,t=>t==="\\"?"":t);ut.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10};ut.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:Nb===!0||Bb.sep==="\\";ut.escapeLast=(r,t,e)=>{let o=r.lastIndexOf(t,e);return o===-1?r:r[o-1]==="\\"?ut.escapeLast(r,t,o-1):`${r.slice(0,o)}\\${r.slice(o)}`};ut.removePrefix=(r,t={})=>{let e=r;return e.startsWith("./")&&(e=e.slice(2),t.prefix="./"),e};ut.wrapOutput=(r,t={},e={})=>{let o=e.contains?"":"^",d=e.contains?"":"$",m=`${o}(?:${r})${d}`;return t.negated===!0&&(m=`(?:^(?!${m}).*$)`),m}});var Bf=K((dC,Lf)=>{"use strict";var Pf=Hi(),{CHAR_ASTERISK:fs,CHAR_AT:$b,CHAR_BACKWARD_SLASH:qi,CHAR_COMMA:Kb,CHAR_DOT:ds,CHAR_EXCLAMATION_MARK:ps,CHAR_FORWARD_SLASH:xf,CHAR_LEFT_CURLY_BRACE:hs,CHAR_LEFT_PARENTHESES:ys,CHAR_LEFT_SQUARE_BRACKET:Gb,CHAR_PLUS:Yb,CHAR_QUESTION_MARK:If,CHAR_RIGHT_CURLY_BRACE:Vb,CHAR_RIGHT_PARENTHESES:Mf,CHAR_RIGHT_SQUARE_BRACKET:Qb}=Ui(),Ff=r=>r===xf||r===qi,Of=r=>{r.isPrefix!==!0&&(r.depth=r.isGlobstar?1/0:1)},zb=(r,t)=>{let e=t||{},o=r.length-1,d=e.parts===!0||e.scanToEnd===!0,m=[],g=[],E=[],A=r,x=-1,D=0,N=0,P=!1,_e=!1,$=!1,Y=!1,Z=!1,re=!1,Se=!1,ve=!1,He=!1,se=!1,ne=0,ee,te,G={value:"",depth:0,isGlob:!1},pe=()=>x>=o,M=()=>A.charCodeAt(x+1),ce=()=>(ee=te,A.charCodeAt(++x));for(;x<o;){te=ce();let Ie;if(te===qi){Se=G.backslashes=!0,te=ce(),te===hs&&(re=!0);continue}if(re===!0||te===hs){for(ne++;pe()!==!0&&(te=ce());){if(te===qi){Se=G.backslashes=!0,ce();continue}if(te===hs){ne++;continue}if(re!==!0&&te===ds&&(te=ce())===ds){if(P=G.isBrace=!0,$=G.isGlob=!0,se=!0,d===!0)continue;break}if(re!==!0&&te===Kb){if(P=G.isBrace=!0,$=G.isGlob=!0,se=!0,d===!0)continue;break}if(te===Vb&&(ne--,ne===0)){re=!1,P=G.isBrace=!0,se=!0;break}}if(d===!0)continue;break}if(te===xf){if(m.push(x),g.push(G),G={value:"",depth:0,isGlob:!1},se===!0)continue;if(ee===ds&&x===D+1){D+=2;continue}N=x+1;continue}if(e.noext!==!0&&(te===Yb||te===$b||te===fs||te===If||te===ps)===!0&&M()===ys){if($=G.isGlob=!0,Y=G.isExtglob=!0,se=!0,te===ps&&x===D&&(He=!0),d===!0){for(;pe()!==!0&&(te=ce());){if(te===qi){Se=G.backslashes=!0,te=ce();continue}if(te===Mf){$=G.isGlob=!0,se=!0;break}}continue}break}if(te===fs){if(ee===fs&&(Z=G.isGlobstar=!0),$=G.isGlob=!0,se=!0,d===!0)continue;break}if(te===If){if($=G.isGlob=!0,se=!0,d===!0)continue;break}if(te===Gb){for(;pe()!==!0&&(Ie=ce());){if(Ie===qi){Se=G.backslashes=!0,ce();continue}if(Ie===Qb){_e=G.isBracket=!0,$=G.isGlob=!0,se=!0;break}}if(d===!0)continue;break}if(e.nonegate!==!0&&te===ps&&x===D){ve=G.negated=!0,D++;continue}if(e.noparen!==!0&&te===ys){if($=G.isGlob=!0,d===!0){for(;pe()!==!0&&(te=ce());){if(te===ys){Se=G.backslashes=!0,te=ce();continue}if(te===Mf){se=!0;break}}continue}break}if($===!0){if(se=!0,d===!0)continue;break}}e.noext===!0&&(Y=!1,$=!1);let ae=A,Ae="",R="";D>0&&(Ae=A.slice(0,D),A=A.slice(D),N-=D),ae&&$===!0&&N>0?(ae=A.slice(0,N),R=A.slice(N)):$===!0?(ae="",R=A):ae=A,ae&&ae!==""&&ae!=="/"&&ae!==A&&Ff(ae.charCodeAt(ae.length-1))&&(ae=ae.slice(0,-1)),e.unescape===!0&&(R&&(R=Pf.removeBackslashes(R)),ae&&Se===!0&&(ae=Pf.removeBackslashes(ae)));let I={prefix:Ae,input:r,start:D,base:ae,glob:R,isBrace:P,isBracket:_e,isGlob:$,isExtglob:Y,isGlobstar:Z,negated:ve,negatedExtglob:He};if(e.tokens===!0&&(I.maxDepth=0,Ff(te)||g.push(G),I.tokens=g),e.parts===!0||e.tokens===!0){let Ie;for(let ge=0;ge<m.length;ge++){let Xe=Ie?Ie+1:D,Oe=m[ge],Re=r.slice(Xe,Oe);e.tokens&&(ge===0&&D!==0?(g[ge].isPrefix=!0,g[ge].value=Ae):g[ge].value=Re,Of(g[ge]),I.maxDepth+=g[ge].depth),(ge!==0||Re!=="")&&E.push(Re),Ie=Oe}if(Ie&&Ie+1<r.length){let ge=r.slice(Ie+1);E.push(ge),e.tokens&&(g[g.length-1].value=ge,Of(g[g.length-1]),I.maxDepth+=g[g.length-1].depth)}I.slashes=m,I.parts=E}return I};Lf.exports=zb});var qf=K((pC,Hf)=>{"use strict";var Pr=Ui(),lt=Hi(),{MAX_LENGTH:Ir,POSIX_REGEX_SOURCE:Xb,REGEX_NON_SPECIAL_CHARS:Jb,REGEX_SPECIAL_CHARS_BACKREF:Zb,REPLACEMENTS:Nf}=Pr,ej=(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=>lt.escapeRegex(d)).join("..")}return e},pi=(r,t)=>`Missing ${r}: "${t}" - use "\\\\${t}" to match literal characters`,Uf=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");r=Nf[r]||r;let e={...t},o=typeof e.maxLength=="number"?Math.min(Ir,e.maxLength):Ir,d=r.length;if(d>o)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${o}`);let m={type:"bos",value:"",output:e.prepend||""},g=[m],E=e.capture?"":"?:",A=lt.isWindows(t),x=Pr.globChars(A),D=Pr.extglobChars(x),{DOT_LITERAL:N,PLUS_LITERAL:P,SLASH_LITERAL:_e,ONE_CHAR:$,DOTS_SLASH:Y,NO_DOT:Z,NO_DOT_SLASH:re,NO_DOTS_SLASH:Se,QMARK:ve,QMARK_NO_DOT:He,STAR:se,START_ANCHOR:ne}=x,ee=V=>`(${E}(?:(?!${ne}${V.dot?Y:N}).)*?)`,te=e.dot?"":Z,G=e.dot?ve:He,pe=e.bash===!0?ee(e):se;e.capture&&(pe=`(${pe})`),typeof e.noext=="boolean"&&(e.noextglob=e.noext);let M={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:g};r=lt.removePrefix(r,M),d=r.length;let ce=[],ae=[],Ae=[],R=m,I,Ie=()=>M.index===d-1,ge=M.peek=(V=1)=>r[M.index+V],Xe=M.advance=()=>r[++M.index]||"",Oe=()=>r.slice(M.index+1),Re=(V="",Te=0)=>{M.consumed+=V,M.index+=Te},Je=V=>{M.output+=V.output!=null?V.output:V.value,Re(V.value)},Bt=()=>{let V=1;for(;ge()==="!"&&(ge(2)!=="("||ge(3)==="?");)Xe(),M.start++,V++;return V%2===0?!1:(M.negated=!0,M.start++,!0)},F=V=>{M[V]++,Ae.push(V)},he=V=>{M[V]--,Ae.pop()},fe=V=>{if(R.type==="globstar"){let Te=M.braces>0&&(V.type==="comma"||V.type==="brace"),U=V.extglob===!0||ce.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!Te&&!U&&(M.output=M.output.slice(0,-R.output.length),R.type="star",R.value="*",R.output=pe,M.output+=R.output)}if(ce.length&&V.type!=="paren"&&(ce[ce.length-1].inner+=V.value),(V.value||V.output)&&Je(V),R&&R.type==="text"&&V.type==="text"){R.value+=V.value,R.output=(R.output||"")+V.value;return}V.prev=R,g.push(V),R=V},Tt=(V,Te)=>{let U={...D[Te],conditions:1,inner:""};U.prev=R,U.parens=M.parens,U.output=M.output;let oe=(e.capture?"(":"")+U.open;F("parens"),fe({type:V,value:Te,output:M.output?"":$}),fe({type:"paren",extglob:!0,value:Xe(),output:oe}),ce.push(U)},Nt=V=>{let Te=V.close+(e.capture?")":""),U;if(V.type==="negate"){let oe=pe;V.inner&&V.inner.length>1&&V.inner.includes("/")&&(oe=ee(e)),(oe!==pe||Ie()||/^\)+$/.test(Oe()))&&(Te=V.close=`)$))${oe}`),V.inner.includes("*")&&(U=Oe())&&/^\.[^\\/.]+$/.test(U)&&(Te=V.close=`)${U})${oe})`),V.prev.type==="bos"&&(M.negatedExtglob=!0)}fe({type:"paren",extglob:!0,value:I,output:Te}),he("parens")};if(e.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let V=!1,Te=r.replace(Zb,(U,oe,Be,Ge,Ke,bt)=>Ge==="\\"?(V=!0,U):Ge==="?"?oe?oe+Ge+(Ke?ve.repeat(Ke.length):""):bt===0?G+(Ke?ve.repeat(Ke.length):""):ve.repeat(Be.length):Ge==="."?N.repeat(Be.length):Ge==="*"?oe?oe+Ge+(Ke?pe:""):pe:oe?U:`\\${U}`);return V===!0&&(e.unescape===!0?Te=Te.replace(/\\/g,""):Te=Te.replace(/\\+/g,U=>U.length%2===0?"\\\\":U?"\\":"")),Te===r&&e.contains===!0?(M.output=r,M):(M.output=lt.wrapOutput(Te,M,t),M)}for(;!Ie();){if(I=Xe(),I==="\0")continue;if(I==="\\"){let U=ge();if(U==="/"&&e.bash!==!0||U==="."||U===";")continue;if(!U){I+="\\",fe({type:"text",value:I});continue}let oe=/^\\+/.exec(Oe()),Be=0;if(oe&&oe[0].length>2&&(Be=oe[0].length,M.index+=Be,Be%2!==0&&(I+="\\")),e.unescape===!0?I=Xe():I+=Xe(),M.brackets===0){fe({type:"text",value:I});continue}}if(M.brackets>0&&(I!=="]"||R.value==="["||R.value==="[^")){if(e.posix!==!1&&I===":"){let U=R.value.slice(1);if(U.includes("[")&&(R.posix=!0,U.includes(":"))){let oe=R.value.lastIndexOf("["),Be=R.value.slice(0,oe),Ge=R.value.slice(oe+2),Ke=Xb[Ge];if(Ke){R.value=Be+Ke,M.backtrack=!0,Xe(),!m.output&&g.indexOf(R)===1&&(m.output=$);continue}}}(I==="["&&ge()!==":"||I==="-"&&ge()==="]")&&(I=`\\${I}`),I==="]"&&(R.value==="["||R.value==="[^")&&(I=`\\${I}`),e.posix===!0&&I==="!"&&R.value==="["&&(I="^"),R.value+=I,Je({value:I});continue}if(M.quotes===1&&I!=='"'){I=lt.escapeRegex(I),R.value+=I,Je({value:I});continue}if(I==='"'){M.quotes=M.quotes===1?0:1,e.keepQuotes===!0&&fe({type:"text",value:I});continue}if(I==="("){F("parens"),fe({type:"paren",value:I});continue}if(I===")"){if(M.parens===0&&e.strictBrackets===!0)throw new SyntaxError(pi("opening","("));let U=ce[ce.length-1];if(U&&M.parens===U.parens+1){Nt(ce.pop());continue}fe({type:"paren",value:I,output:M.parens?")":"\\)"}),he("parens");continue}if(I==="["){if(e.nobracket===!0||!Oe().includes("]")){if(e.nobracket!==!0&&e.strictBrackets===!0)throw new SyntaxError(pi("closing","]"));I=`\\${I}`}else F("brackets");fe({type:"bracket",value:I});continue}if(I==="]"){if(e.nobracket===!0||R&&R.type==="bracket"&&R.value.length===1){fe({type:"text",value:I,output:`\\${I}`});continue}if(M.brackets===0){if(e.strictBrackets===!0)throw new SyntaxError(pi("opening","["));fe({type:"text",value:I,output:`\\${I}`});continue}he("brackets");let U=R.value.slice(1);if(R.posix!==!0&&U[0]==="^"&&!U.includes("/")&&(I=`/${I}`),R.value+=I,Je({value:I}),e.literalBrackets===!1||lt.hasRegexChars(U))continue;let oe=lt.escapeRegex(R.value);if(M.output=M.output.slice(0,-R.value.length),e.literalBrackets===!0){M.output+=oe,R.value=oe;continue}R.value=`(${E}${oe}|${R.value})`,M.output+=R.value;continue}if(I==="{"&&e.nobrace!==!0){F("braces");let U={type:"brace",value:I,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};ae.push(U),fe(U);continue}if(I==="}"){let U=ae[ae.length-1];if(e.nobrace===!0||!U){fe({type:"text",value:I,output:I});continue}let oe=")";if(U.dots===!0){let Be=g.slice(),Ge=[];for(let Ke=Be.length-1;Ke>=0&&(g.pop(),Be[Ke].type!=="brace");Ke--)Be[Ke].type!=="dots"&&Ge.unshift(Be[Ke].value);oe=ej(Ge,e),M.backtrack=!0}if(U.comma!==!0&&U.dots!==!0){let Be=M.output.slice(0,U.outputIndex),Ge=M.tokens.slice(U.tokensIndex);U.value=U.output="\\{",I=oe="\\}",M.output=Be;for(let Ke of Ge)M.output+=Ke.output||Ke.value}fe({type:"brace",value:I,output:oe}),he("braces"),ae.pop();continue}if(I==="|"){ce.length>0&&ce[ce.length-1].conditions++,fe({type:"text",value:I});continue}if(I===","){let U=I,oe=ae[ae.length-1];oe&&Ae[Ae.length-1]==="braces"&&(oe.comma=!0,U="|"),fe({type:"comma",value:I,output:U});continue}if(I==="/"){if(R.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",g.pop(),R=m;continue}fe({type:"slash",value:I,output:_e});continue}if(I==="."){if(M.braces>0&&R.type==="dot"){R.value==="."&&(R.output=N);let U=ae[ae.length-1];R.type="dots",R.output+=I,R.value+=I,U.dots=!0;continue}if(M.braces+M.parens===0&&R.type!=="bos"&&R.type!=="slash"){fe({type:"text",value:I,output:N});continue}fe({type:"dot",value:I,output:N});continue}if(I==="?"){if(!(R&&R.value==="(")&&e.noextglob!==!0&&ge()==="("&&ge(2)!=="?"){Tt("qmark",I);continue}if(R&&R.type==="paren"){let oe=ge(),Be=I;if(oe==="<"&&!lt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(R.value==="("&&!/[!=<:]/.test(oe)||oe==="<"&&!/<([!=]|\w+>)/.test(Oe()))&&(Be=`\\${I}`),fe({type:"text",value:I,output:Be});continue}if(e.dot!==!0&&(R.type==="slash"||R.type==="bos")){fe({type:"qmark",value:I,output:He});continue}fe({type:"qmark",value:I,output:ve});continue}if(I==="!"){if(e.noextglob!==!0&&ge()==="("&&(ge(2)!=="?"||!/[!=<:]/.test(ge(3)))){Tt("negate",I);continue}if(e.nonegate!==!0&&M.index===0){Bt();continue}}if(I==="+"){if(e.noextglob!==!0&&ge()==="("&&ge(2)!=="?"){Tt("plus",I);continue}if(R&&R.value==="("||e.regex===!1){fe({type:"plus",value:I,output:P});continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")||M.parens>0){fe({type:"plus",value:I});continue}fe({type:"plus",value:P});continue}if(I==="@"){if(e.noextglob!==!0&&ge()==="("&&ge(2)!=="?"){fe({type:"at",extglob:!0,value:I,output:""});continue}fe({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let U=Jb.exec(Oe());U&&(I+=U[0],M.index+=U[0].length),fe({type:"text",value:I});continue}if(R&&(R.type==="globstar"||R.star===!0)){R.type="star",R.star=!0,R.value+=I,R.output=pe,M.backtrack=!0,M.globstar=!0,Re(I);continue}let V=Oe();if(e.noextglob!==!0&&/^\([^?]/.test(V)){Tt("star",I);continue}if(R.type==="star"){if(e.noglobstar===!0){Re(I);continue}let U=R.prev,oe=U.prev,Be=U.type==="slash"||U.type==="bos",Ge=oe&&(oe.type==="star"||oe.type==="globstar");if(e.bash===!0&&(!Be||V[0]&&V[0]!=="/")){fe({type:"star",value:I,output:""});continue}let Ke=M.braces>0&&(U.type==="comma"||U.type==="brace"),bt=ce.length&&(U.type==="pipe"||U.type==="paren");if(!Be&&U.type!=="paren"&&!Ke&&!bt){fe({type:"star",value:I,output:""});continue}for(;V.slice(0,3)==="/**";){let Dt=r[M.index+4];if(Dt&&Dt!=="/")break;V=V.slice(3),Re("/**",3)}if(U.type==="bos"&&Ie()){R.type="globstar",R.value+=I,R.output=ee(e),M.output=R.output,M.globstar=!0,Re(I);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&!Ge&&Ie()){M.output=M.output.slice(0,-(U.output+R.output).length),U.output=`(?:${U.output}`,R.type="globstar",R.output=ee(e)+(e.strictSlashes?")":"|$)"),R.value+=I,M.globstar=!0,M.output+=U.output+R.output,Re(I);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&V[0]==="/"){let Dt=V[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(U.output+R.output).length),U.output=`(?:${U.output}`,R.type="globstar",R.output=`${ee(e)}${_e}|${_e}${Dt})`,R.value+=I,M.output+=U.output+R.output,M.globstar=!0,Re(I+Xe()),fe({type:"slash",value:"/",output:""});continue}if(U.type==="bos"&&V[0]==="/"){R.type="globstar",R.value+=I,R.output=`(?:^|${_e}|${ee(e)}${_e})`,M.output=R.output,M.globstar=!0,Re(I+Xe()),fe({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-R.output.length),R.type="globstar",R.output=ee(e),R.value+=I,M.output+=R.output,M.globstar=!0,Re(I);continue}let Te={type:"star",value:I,output:pe};if(e.bash===!0){Te.output=".*?",(R.type==="bos"||R.type==="slash")&&(Te.output=te+Te.output),fe(Te);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&e.regex===!0){Te.output=I,fe(Te);continue}(M.index===M.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(M.output+=re,R.output+=re):e.dot===!0?(M.output+=Se,R.output+=Se):(M.output+=te,R.output+=te),ge()!=="*"&&(M.output+=$,R.output+=$)),fe(Te)}for(;M.brackets>0;){if(e.strictBrackets===!0)throw new SyntaxError(pi("closing","]"));M.output=lt.escapeLast(M.output,"["),he("brackets")}for(;M.parens>0;){if(e.strictBrackets===!0)throw new SyntaxError(pi("closing",")"));M.output=lt.escapeLast(M.output,"("),he("parens")}for(;M.braces>0;){if(e.strictBrackets===!0)throw new SyntaxError(pi("closing","}"));M.output=lt.escapeLast(M.output,"{"),he("braces")}if(e.strictSlashes!==!0&&(R.type==="star"||R.type==="bracket")&&fe({type:"maybe_slash",value:"",output:`${_e}?`}),M.backtrack===!0){M.output="";for(let V of M.tokens)M.output+=V.output!=null?V.output:V.value,V.suffix&&(M.output+=V.suffix)}return M};Uf.fastpaths=(r,t)=>{let e={...t},o=typeof e.maxLength=="number"?Math.min(Ir,e.maxLength):Ir,d=r.length;if(d>o)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${o}`);r=Nf[r]||r;let m=lt.isWindows(t),{DOT_LITERAL:g,SLASH_LITERAL:E,ONE_CHAR:A,DOTS_SLASH:x,NO_DOT:D,NO_DOTS:N,NO_DOTS_SLASH:P,STAR:_e,START_ANCHOR:$}=Pr.globChars(m),Y=e.dot?N:D,Z=e.dot?P:D,re=e.capture?"":"?:",Se={negated:!1,prefix:""},ve=e.bash===!0?".*?":_e;e.capture&&(ve=`(${ve})`);let He=te=>te.noglobstar===!0?ve:`(${re}(?:(?!${$}${te.dot?x:g}).)*?)`,se=te=>{switch(te){case"*":return`${Y}${A}${ve}`;case".*":return`${g}${A}${ve}`;case"*.*":return`${Y}${ve}${g}${A}${ve}`;case"*/*":return`${Y}${ve}${E}${A}${Z}${ve}`;case"**":return Y+He(e);case"**/*":return`(?:${Y}${He(e)}${E})?${Z}${A}${ve}`;case"**/*.*":return`(?:${Y}${He(e)}${E})?${Z}${ve}${g}${A}${ve}`;case"**/.*":return`(?:${Y}${He(e)}${E})?${g}${A}${ve}`;default:{let G=/^(.*?)\.(\w+)$/.exec(te);if(!G)return;let pe=se(G[1]);return pe?pe+g+G[2]:void 0}}},ne=lt.removePrefix(r,Se),ee=se(ne);return ee&&e.strictSlashes!==!0&&(ee+=`${E}?`),ee};Hf.exports=Uf});var $f=K((hC,Wf)=>{"use strict";var tj=require("path"),ij=Bf(),ms=qf(),vs=Hi(),rj=Ui(),nj=r=>r&&typeof r=="object"&&!Array.isArray(r),Ye=(r,t,e=!1)=>{if(Array.isArray(r)){let D=r.map(P=>Ye(P,t,e));return P=>{for(let _e of D){let $=_e(P);if($)return $}return!1}}let o=nj(r)&&r.tokens&&r.input;if(r===""||typeof r!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let d=t||{},m=vs.isWindows(t),g=o?Ye.compileRe(r,t):Ye.makeRe(r,t,!1,!0),E=g.state;delete g.state;let A=()=>!1;if(d.ignore){let D={...t,ignore:null,onMatch:null,onResult:null};A=Ye(d.ignore,D,e)}let x=(D,N=!1)=>{let{isMatch:P,match:_e,output:$}=Ye.test(D,g,t,{glob:r,posix:m}),Y={glob:r,state:E,regex:g,posix:m,input:D,output:$,match:_e,isMatch:P};return typeof d.onResult=="function"&&d.onResult(Y),P===!1?(Y.isMatch=!1,N?Y:!1):A(D)?(typeof d.onIgnore=="function"&&d.onIgnore(Y),Y.isMatch=!1,N?Y:!1):(typeof d.onMatch=="function"&&d.onMatch(Y),N?Y:!0)};return e&&(x.state=E),x};Ye.test=(r,t,e,{glob:o,posix:d}={})=>{if(typeof r!="string")throw new TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let m=e||{},g=m.format||(d?vs.toPosixSlashes:null),E=r===o,A=E&&g?g(r):r;return E===!1&&(A=g?g(r):r,E=A===o),(E===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?E=Ye.matchBase(r,t,e,d):E=t.exec(A)),{isMatch:Boolean(E),match:E,output:A}};Ye.matchBase=(r,t,e,o=vs.isWindows(e))=>(t instanceof RegExp?t:Ye.makeRe(t,e)).test(tj.basename(r));Ye.isMatch=(r,t,e)=>Ye(t,e)(r);Ye.parse=(r,t)=>Array.isArray(r)?r.map(e=>Ye.parse(e,t)):ms(r,{...t,fastpaths:!1});Ye.scan=(r,t)=>ij(r,t);Ye.compileRe=(r,t,e=!1,o=!1)=>{if(e===!0)return r.output;let d=t||{},m=d.contains?"":"^",g=d.contains?"":"$",E=`${m}(?:${r.output})${g}`;r&&r.negated===!0&&(E=`^(?!${E}).*$`);let A=Ye.toRegex(E,t);return o===!0&&(A.state=r),A};Ye.makeRe=(r,t={},e=!1,o=!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=ms.fastpaths(r,t)),d.output||(d=ms(r,t)),Ye.compileRe(d,t,e,o)};Ye.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/$^/}};Ye.constants=rj;Wf.exports=Ye});var Gf=K((yC,Kf)=>{"use strict";Kf.exports=$f()});var Xf=K((mC,zf)=>{"use strict";var Vf=require("util"),Qf=Sf(),mt=Gf(),gs=Hi(),Yf=r=>r===""||r==="./",$e=(r,t,e)=>{t=[].concat(t),r=[].concat(r);let o=new Set,d=new Set,m=new Set,g=0,E=D=>{m.add(D.output),e&&e.onResult&&e.onResult(D)};for(let D=0;D<t.length;D++){let N=mt(String(t[D]),{...e,onResult:E},!0),P=N.state.negated||N.state.negatedExtglob;P&&g++;for(let _e of r){let $=N(_e,!0);!(P?!$.isMatch:$.isMatch)||(P?o.add($.output):(o.delete($.output),d.add($.output)))}}let x=(g===t.length?[...m]:[...d]).filter(D=>!o.has(D));if(e&&x.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(D=>D.replace(/\\/g,"")):t}return x};$e.match=$e;$e.matcher=(r,t)=>mt(r,t);$e.isMatch=(r,t,e)=>mt(t,e)(r);$e.any=$e.isMatch;$e.not=(r,t,e={})=>{t=[].concat(t).map(String);let o=new Set,d=[],g=$e(r,t,{...e,onResult:E=>{e.onResult&&e.onResult(E),d.push(E.output)}});for(let E of d)g.includes(E)||o.add(E);return[...o]};$e.contains=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${Vf.inspect(r)}"`);if(Array.isArray(t))return t.some(o=>$e.contains(r,o,e));if(typeof t=="string"){if(Yf(r)||Yf(t))return!1;if(r.includes(t)||r.startsWith("./")&&r.slice(2).includes(t))return!0}return $e.isMatch(r,t,{...e,contains:!0})};$e.matchKeys=(r,t,e)=>{if(!gs.isObject(r))throw new TypeError("Expected the first argument to be an object");let o=$e(Object.keys(r),t,e),d={};for(let m of o)d[m]=r[m];return d};$e.some=(r,t,e)=>{let o=[].concat(r);for(let d of[].concat(t)){let m=mt(String(d),e);if(o.some(g=>m(g)))return!0}return!1};$e.every=(r,t,e)=>{let o=[].concat(r);for(let d of[].concat(t)){let m=mt(String(d),e);if(!o.every(g=>m(g)))return!1}return!0};$e.all=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${Vf.inspect(r)}"`);return[].concat(t).every(o=>mt(o,e)(r))};$e.capture=(r,t,e)=>{let o=gs.isWindows(e),m=mt.makeRe(String(r),{...e,capture:!0}).exec(o?gs.toPosixSlashes(t):t);if(m)return m.slice(1).map(g=>g===void 0?"":g)};$e.makeRe=(...r)=>mt.makeRe(...r);$e.scan=(...r)=>mt.scan(...r);$e.parse=(r,t)=>{let e=[];for(let o of[].concat(r||[]))for(let d of Qf(String(o),t))e.push(mt.parse(d,t));return e};$e.braces=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(r)?[r]:Qf(r,t)};$e.braceExpand=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return $e.braces(r,{...t,expand:!0})};zf.exports=$e});var ad=K(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.matchAny=le.convertPatternsToRe=le.makeRe=le.getPatternParts=le.expandBraceExpansion=le.expandPatternsWithBraceExpansion=le.isAffectDepthOfReadingPattern=le.endsWithSlashGlobStar=le.hasGlobStar=le.getBaseDirectory=le.isPatternRelatedToParentDirectory=le.getPatternsOutsideCurrentDirectory=le.getPatternsInsideCurrentDirectory=le.getPositivePatterns=le.getNegativePatterns=le.isPositivePattern=le.isNegativePattern=le.convertToNegativePattern=le.convertToPositivePattern=le.isDynamicPattern=le.isStaticPattern=void 0;var aj=require("path"),sj=H_(),bs=Xf(),Jf="**",uj="\\",oj=/[*?]|^!/,lj=/\[[^[]*]/,cj=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,_j=/[!*+?@]\([^(]*\)/,fj=/,|\.\./;function Zf(r,t={}){return!ed(r,t)}le.isStaticPattern=Zf;function ed(r,t={}){return r===""?!1:!!(t.caseSensitiveMatch===!1||r.includes(uj)||oj.test(r)||lj.test(r)||cj.test(r)||t.extglob!==!1&&_j.test(r)||t.braceExpansion!==!1&&dj(r))}le.isDynamicPattern=ed;function dj(r){let t=r.indexOf("{");if(t===-1)return!1;let e=r.indexOf("}",t+1);if(e===-1)return!1;let o=r.slice(t,e);return fj.test(o)}function pj(r){return Mr(r)?r.slice(1):r}le.convertToPositivePattern=pj;function hj(r){return"!"+r}le.convertToNegativePattern=hj;function Mr(r){return r.startsWith("!")&&r[1]!=="("}le.isNegativePattern=Mr;function td(r){return!Mr(r)}le.isPositivePattern=td;function yj(r){return r.filter(Mr)}le.getNegativePatterns=yj;function mj(r){return r.filter(td)}le.getPositivePatterns=mj;function vj(r){return r.filter(t=>!js(t))}le.getPatternsInsideCurrentDirectory=vj;function gj(r){return r.filter(js)}le.getPatternsOutsideCurrentDirectory=gj;function js(r){return r.startsWith("..")||r.startsWith("./..")}le.isPatternRelatedToParentDirectory=js;function bj(r){return sj(r,{flipBackslashes:!1})}le.getBaseDirectory=bj;function jj(r){return r.includes(Jf)}le.hasGlobStar=jj;function id(r){return r.endsWith("/"+Jf)}le.endsWithSlashGlobStar=id;function wj(r){let t=aj.basename(r);return id(r)||Zf(t)}le.isAffectDepthOfReadingPattern=wj;function Cj(r){return r.reduce((t,e)=>t.concat(rd(e)),[])}le.expandPatternsWithBraceExpansion=Cj;function rd(r){return bs.braces(r,{expand:!0,nodupes:!0})}le.expandBraceExpansion=rd;function kj(r,t){let{parts:e}=bs.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}le.getPatternParts=kj;function nd(r,t){return bs.makeRe(r,t)}le.makeRe=nd;function Sj(r,t){return r.map(e=>nd(e,t))}le.convertPatternsToRe=Sj;function Ej(r,t){return t.some(e=>e.test(r))}le.matchAny=Ej});var ld=K((gC,od)=>{"use strict";var Rj=require("stream"),sd=Rj.PassThrough,Aj=Array.prototype.slice;od.exports=Tj;function Tj(){let r=[],t=Aj.call(arguments),e=!1,o=t[t.length-1];o&&!Array.isArray(o)&&o.pipe==null?t.pop():o={};let d=o.end!==!1,m=o.pipeError===!0;o.objectMode==null&&(o.objectMode=!0),o.highWaterMark==null&&(o.highWaterMark=64*1024);let g=sd(o);function E(){for(let D=0,N=arguments.length;D<N;D++)r.push(ud(arguments[D],o));return A(),this}function A(){if(e)return;e=!0;let D=r.shift();if(!D){process.nextTick(x);return}Array.isArray(D)||(D=[D]);let N=D.length+1;function P(){--N>0||(e=!1,A())}function _e($){function Y(){$.removeListener("merge2UnpipeEnd",Y),$.removeListener("end",Y),m&&$.removeListener("error",Z),P()}function Z(re){g.emit("error",re)}if($._readableState.endEmitted)return P();$.on("merge2UnpipeEnd",Y),$.on("end",Y),m&&$.on("error",Z),$.pipe(g,{end:!1}),$.resume()}for(let $=0;$<D.length;$++)_e(D[$]);P()}function x(){e=!1,g.emit("queueDrain"),d&&g.end()}return g.setMaxListeners(0),g.add=E,g.on("unpipe",function(D){D.emit("merge2UnpipeEnd")}),t.length&&E.apply(null,t),g}function ud(r,t){if(Array.isArray(r))for(let e=0,o=r.length;e<o;e++)r[e]=ud(r[e],t);else{if(!r._readableState&&r.pipe&&(r=r.pipe(sd(t))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}});var _d=K(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.merge=void 0;var Dj=ld();function Pj(r){let t=Dj(r);return r.forEach(e=>{e.once("error",o=>t.emit("error",o))}),t.once("close",()=>cd(r)),t.once("end",()=>cd(r)),t}Fr.merge=Pj;function cd(r){r.forEach(t=>t.emit("close"))}});var fd=K(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.isEmpty=hi.isString=void 0;function Ij(r){return typeof r=="string"}hi.isString=Ij;function Mj(r){return r===""}hi.isEmpty=Mj});var Rt=K(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 Fj=P_();Ze.array=Fj;var Oj=I_();Ze.errno=Oj;var xj=M_();Ze.fs=xj;var Lj=F_();Ze.path=Lj;var Bj=ad();Ze.pattern=Bj;var Nj=_d();Ze.stream=Nj;var Uj=fd();Ze.string=Uj});var hd=K(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.convertPatternGroupToTask=et.convertPatternGroupsToTasks=et.groupPatternsByBaseDirectory=et.getNegativePatternsAsPositive=et.getPositivePatterns=et.convertPatternsToTasks=et.generate=void 0;var At=Rt();function Hj(r,t){let e=dd(r),o=pd(r,t.ignore),d=e.filter(A=>At.pattern.isStaticPattern(A,t)),m=e.filter(A=>At.pattern.isDynamicPattern(A,t)),g=ws(d,o,!1),E=ws(m,o,!0);return g.concat(E)}et.generate=Hj;function ws(r,t,e){let o=[],d=At.pattern.getPatternsOutsideCurrentDirectory(r),m=At.pattern.getPatternsInsideCurrentDirectory(r),g=Cs(d),E=Cs(m);return o.push(...ks(g,t,e)),"."in E?o.push(Ss(".",m,t,e)):o.push(...ks(E,t,e)),o}et.convertPatternsToTasks=ws;function dd(r){return At.pattern.getPositivePatterns(r)}et.getPositivePatterns=dd;function pd(r,t){return At.pattern.getNegativePatterns(r).concat(t).map(At.pattern.convertToPositivePattern)}et.getNegativePatternsAsPositive=pd;function Cs(r){let t={};return r.reduce((e,o)=>{let d=At.pattern.getBaseDirectory(o);return d in e?e[d].push(o):e[d]=[o],e},t)}et.groupPatternsByBaseDirectory=Cs;function ks(r,t,e){return Object.keys(r).map(o=>Ss(o,r[o],t,e))}et.convertPatternGroupsToTasks=ks;function Ss(r,t,e,o){return{dynamic:o,positive:t,negative:e,base:r,patterns:[].concat(t,e.map(At.pattern.convertToNegativePattern))}}et.convertPatternGroupToTask=Ss});var md=K(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.removeDuplicateSlashes=yi.transform=void 0;var qj=/(?!^)\/{2,}/g;function Wj(r){return r.map(t=>yd(t))}yi.transform=Wj;function yd(r){return r.replace(qj,"/")}yi.removeDuplicateSlashes=yd});var gd=K(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.read=void 0;function $j(r,t,e){t.fs.lstat(r,(o,d)=>{if(o!==null){vd(e,o);return}if(!d.isSymbolicLink()||!t.followSymbolicLink){Es(e,d);return}t.fs.stat(r,(m,g)=>{if(m!==null){if(t.throwErrorOnBrokenSymbolicLink){vd(e,m);return}Es(e,d);return}t.markSymbolicLink&&(g.isSymbolicLink=()=>!0),Es(e,g)})})}Or.read=$j;function vd(r,t){r(t)}function Es(r,t){r(null,t)}});var bd=K(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.read=void 0;function Kj(r,t){let e=t.fs.lstatSync(r);if(!e.isSymbolicLink()||!t.followSymbolicLink)return e;try{let o=t.fs.statSync(r);return t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!t.throwErrorOnBrokenSymbolicLink)return e;throw o}}xr.read=Kj});var jd=K(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.createFileSystemAdapter=It.FILE_SYSTEM_ADAPTER=void 0;var Lr=require("fs");It.FILE_SYSTEM_ADAPTER={lstat:Lr.lstat,stat:Lr.stat,lstatSync:Lr.lstatSync,statSync:Lr.statSync};function Gj(r){return r===void 0?It.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},It.FILE_SYSTEM_ADAPTER),r)}It.createFileSystemAdapter=Gj});var wd=K(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var Yj=jd(),Rs=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Yj.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}};As.default=Rs});var Xt=K(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.statSync=Mt.stat=Mt.Settings=void 0;var Cd=gd(),Vj=bd(),Ts=wd();Mt.Settings=Ts.default;function Qj(r,t,e){if(typeof t=="function"){Cd.read(r,Ds(),t);return}Cd.read(r,Ds(t),e)}Mt.stat=Qj;function zj(r,t){let e=Ds(t);return Vj.read(r,e)}Mt.statSync=zj;function Ds(r={}){return r instanceof Ts.default?r:new Ts.default(r)}});var Ed=K((DC,Sd)=>{var kd;Sd.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):r=>(kd||(kd=Promise.resolve())).then(r).catch(t=>setTimeout(()=>{throw t},0))});var Ad=K((PC,Rd)=>{Rd.exports=Jj;var Xj=Ed();function Jj(r,t){let e,o,d,m=!0;Array.isArray(r)?(e=[],o=r.length):(d=Object.keys(r),e={},o=d.length);function g(A){function x(){t&&t(A,e),t=null}m?Xj(x):x()}function E(A,x,D){e[A]=D,(--o===0||x)&&g(x)}o?d?d.forEach(function(A){r[A](function(x,D){E(A,x,D)})}):r.forEach(function(A,x){A(function(D,N){E(x,D,N)})}):g(null),m=!1}});var Ps=K(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Br=process.versions.node.split(".");if(Br[0]===void 0||Br[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Td=Number.parseInt(Br[0],10),Zj=Number.parseInt(Br[1],10),Dd=10,e0=10,t0=Td>Dd,i0=Td===Dd&&Zj>=e0;Nr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=t0||i0});var Pd=K(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.createDirentFromStats=void 0;var Is=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 r0(r,t){return new Is(r,t)}Ur.createDirentFromStats=r0});var Ms=K(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.fs=void 0;var n0=Pd();Hr.fs=n0});var Fs=K(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.joinPathSegments=void 0;function a0(r,t,e){return r.endsWith(e)?r+t:r+e+t}qr.joinPathSegments=a0});var Ld=K(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.readdir=Ft.readdirWithFileTypes=Ft.read=void 0;var s0=Xt(),Id=Ad(),u0=Ps(),Md=Ms(),Fd=Fs();function o0(r,t,e){if(!t.stats&&u0.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Od(r,t,e);return}xd(r,t,e)}Ft.read=o0;function Od(r,t,e){t.fs.readdir(r,{withFileTypes:!0},(o,d)=>{if(o!==null){Wr(e,o);return}let m=d.map(E=>({dirent:E,name:E.name,path:Fd.joinPathSegments(r,E.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Os(e,m);return}let g=m.map(E=>l0(E,t));Id(g,(E,A)=>{if(E!==null){Wr(e,E);return}Os(e,A)})})}Ft.readdirWithFileTypes=Od;function l0(r,t){return e=>{if(!r.dirent.isSymbolicLink()){e(null,r);return}t.fs.stat(r.path,(o,d)=>{if(o!==null){if(t.throwErrorOnBrokenSymbolicLink){e(o);return}e(null,r);return}r.dirent=Md.fs.createDirentFromStats(r.name,d),e(null,r)})}}function xd(r,t,e){t.fs.readdir(r,(o,d)=>{if(o!==null){Wr(e,o);return}let m=d.map(g=>{let E=Fd.joinPathSegments(r,g,t.pathSegmentSeparator);return A=>{s0.stat(E,t.fsStatSettings,(x,D)=>{if(x!==null){A(x);return}let N={name:g,path:E,dirent:Md.fs.createDirentFromStats(g,D)};t.stats&&(N.stats=D),A(null,N)})}});Id(m,(g,E)=>{if(g!==null){Wr(e,g);return}Os(e,E)})})}Ft.readdir=xd;function Wr(r,t){r(t)}function Os(r,t){r(null,t)}});var qd=K(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.readdir=Ot.readdirWithFileTypes=Ot.read=void 0;var c0=Xt(),_0=Ps(),Bd=Ms(),Nd=Fs();function f0(r,t){return!t.stats&&_0.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Ud(r,t):Hd(r,t)}Ot.read=f0;function Ud(r,t){return t.fs.readdirSync(r,{withFileTypes:!0}).map(o=>{let d={dirent:o,name:o.name,path:Nd.joinPathSegments(r,o.name,t.pathSegmentSeparator)};if(d.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let m=t.fs.statSync(d.path);d.dirent=Bd.fs.createDirentFromStats(d.name,m)}catch(m){if(t.throwErrorOnBrokenSymbolicLink)throw m}return d})}Ot.readdirWithFileTypes=Ud;function Hd(r,t){return t.fs.readdirSync(r).map(o=>{let d=Nd.joinPathSegments(r,o,t.pathSegmentSeparator),m=c0.statSync(d,t.fsStatSettings),g={name:o,path:d,dirent:Bd.fs.createDirentFromStats(o,m)};return t.stats&&(g.stats=m),g})}Ot.readdir=Hd});var Wd=K(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.createFileSystemAdapter=xt.FILE_SYSTEM_ADAPTER=void 0;var mi=require("fs");xt.FILE_SYSTEM_ADAPTER={lstat:mi.lstat,stat:mi.stat,lstatSync:mi.lstatSync,statSync:mi.statSync,readdir:mi.readdir,readdirSync:mi.readdirSync};function d0(r){return r===void 0?xt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xt.FILE_SYSTEM_ADAPTER),r)}xt.createFileSystemAdapter=d0});var $d=K(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var p0=require("path"),h0=Xt(),y0=Wd(),xs=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=y0.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,p0.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new h0.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};Ls.default=xs});var $r=K(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.Settings=Lt.scandirSync=Lt.scandir=void 0;var Kd=Ld(),m0=qd(),Bs=$d();Lt.Settings=Bs.default;function v0(r,t,e){if(typeof t=="function"){Kd.read(r,Ns(),t);return}Kd.read(r,Ns(t),e)}Lt.scandir=v0;function g0(r,t){let e=Ns(t);return m0.read(r,e)}Lt.scandirSync=g0;function Ns(r={}){return r instanceof Bs.default?r:new Bs.default(r)}});var Yd=K((HC,Gd)=>{"use strict";function b0(r){var t=new r,e=t;function o(){var m=t;return m.next?t=m.next:(t=new r,e=t),m.next=null,m}function d(m){e.next=m,e=m}return{get:o,release:d}}Gd.exports=b0});var Qd=K((qC,Us)=>{"use strict";var j0=Yd();function Vd(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 o=j0(w0),d=null,m=null,g=0,E=null,A={push:Y,drain:ft,saturated:ft,pause:D,paused:!1,concurrency:e,running:x,resume:_e,idle:$,length:N,getQueue:P,unshift:Z,empty:ft,kill:Se,killAndDrain:ve,error:He};return A;function x(){return g}function D(){A.paused=!0}function N(){for(var se=d,ne=0;se;)se=se.next,ne++;return ne}function P(){for(var se=d,ne=[];se;)ne.push(se.value),se=se.next;return ne}function _e(){if(!!A.paused){A.paused=!1;for(var se=0;se<A.concurrency;se++)g++,re()}}function $(){return g===0&&A.length()===0}function Y(se,ne){var ee=o.get();ee.context=r,ee.release=re,ee.value=se,ee.callback=ne||ft,ee.errorHandler=E,g===A.concurrency||A.paused?m?(m.next=ee,m=ee):(d=ee,m=ee,A.saturated()):(g++,t.call(r,ee.value,ee.worked))}function Z(se,ne){var ee=o.get();ee.context=r,ee.release=re,ee.value=se,ee.callback=ne||ft,g===A.concurrency||A.paused?d?(ee.next=d,d=ee):(d=ee,m=ee,A.saturated()):(g++,t.call(r,ee.value,ee.worked))}function re(se){se&&o.release(se);var ne=d;ne?A.paused?g--:(m===d&&(m=null),d=ne.next,ne.next=null,t.call(r,ne.value,ne.worked),m===null&&A.empty()):--g===0&&A.drain()}function Se(){d=null,m=null,A.drain=ft}function ve(){d=null,m=null,A.drain(),A.drain=ft}function He(se){E=se}}function ft(){}function w0(){this.value=null,this.callback=ft,this.next=null,this.release=ft,this.context=null,this.errorHandler=null;var r=this;this.worked=function(e,o){var d=r.callback,m=r.errorHandler,g=r.value;r.value=null,r.callback=ft,r.errorHandler&&m(e,g),d.call(r.context,e,o),r.release(r)}}function C0(r,t,e){typeof r=="function"&&(e=t,t=r,r=null);function o(D,N){t.call(this,D).then(function(P){N(null,P)},N)}var d=Vd(r,o,e),m=d.push,g=d.unshift;return d.push=E,d.unshift=A,d.drained=x,d;function E(D){var N=new Promise(function(P,_e){m(D,function($,Y){if($){_e($);return}P(Y)})});return N.catch(ft),N}function A(D){var N=new Promise(function(P,_e){g(D,function($,Y){if($){_e($);return}P(Y)})});return N.catch(ft),N}function x(){var D=d.drain,N=new Promise(function(P){d.drain=function(){D(),P()}});return N}}Us.exports=Vd;Us.exports.promise=C0});var Kr=K(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 S0(r,t){return r===null||r(t)}vt.isAppliedFilter=S0;function E0(r,t){return r.split(/[/\\]/).join(t)}vt.replacePathSegmentSeparator=E0;function R0(r,t,e){return r===""?t:r.endsWith(e)?r+t:r+e+t}vt.joinPathSegments=R0});var Ws=K(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var A0=Kr(),Hs=class{constructor(t,e){this._root=t,this._settings=e,this._root=A0.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}};qs.default=Hs});var Gs=K(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var T0=require("events"),D0=$r(),P0=Qd(),Gr=Kr(),I0=Ws(),$s=class extends I0.default{constructor(t,e){super(t,e),this._settings=e,this._scandir=D0.scandir,this._emitter=new T0.EventEmitter,this._queue=P0(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 o={directory:t,base:e};this._queue.push(o,d=>{d!==null&&this._handleError(d)})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(o,d)=>{if(o!==null){e(o,void 0);return}for(let m of d)this._handleEntry(m,t.base);e(null,void 0)})}_handleError(t){this._isDestroyed||!Gr.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 o=t.path;e!==void 0&&(t.path=Gr.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Gr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Gr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(o,e===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Ks.default=$s});var zd=K(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});var M0=Gs(),Ys=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new M0.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(e=>{F0(t,e)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{O0(t,this._storage)}),this._reader.read()}};Vs.default=Ys;function F0(r,t){r(t)}function O0(r,t){r(null,t)}});var Xd=K(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var x0=require("stream"),L0=Gs(),Qs=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new L0.default(this._root,this._settings),this._stream=new x0.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}};zs.default=Qs});var Jd=K(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var B0=$r(),Yr=Kr(),N0=Ws(),Xs=class extends N0.default{constructor(){super(...arguments),this._scandir=B0.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 o=this._scandir(t,this._settings.fsScandirSettings);for(let d of o)this._handleEntry(d,e)}catch(o){this._handleError(o)}}_handleError(t){if(!!Yr.isFatalError(this._settings,t))throw t}_handleEntry(t,e){let o=t.path;e!==void 0&&(t.path=Yr.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Yr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Yr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(o,e===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Js.default=Xs});var Zd=K(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var U0=Jd(),Zs=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new U0.default(this._root,this._settings)}read(){return this._reader.read()}};eu.default=Zs});var ep=K(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});var H0=require("path"),q0=$r(),tu=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,H0.sep),this.fsScandirSettings=new q0.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}};iu.default=tu});var Qr=K(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.Settings=gt.walkStream=gt.walkSync=gt.walk=void 0;var tp=zd(),W0=Xd(),$0=Zd(),ru=ep();gt.Settings=ru.default;function K0(r,t,e){if(typeof t=="function"){new tp.default(r,Vr()).read(t);return}new tp.default(r,Vr(t)).read(e)}gt.walk=K0;function G0(r,t){let e=Vr(t);return new $0.default(r,e).read()}gt.walkSync=G0;function Y0(r,t){let e=Vr(t);return new W0.default(r,e).read()}gt.walkStream=Y0;function Vr(r={}){return r instanceof ru.default?r:new ru.default(r)}});var zr=K(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var V0=require("path"),Q0=Xt(),ip=Rt(),nu=class{constructor(t){this._settings=t,this._fsStatSettings=new Q0.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return V0.resolve(this._settings.cwd,t)}_makeEntry(t,e){let o={name:e,path:e,dirent:ip.fs.createDirentFromStats(e,t)};return this._settings.stats&&(o.stats=t),o}_isFatalError(t){return!ip.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};au.default=nu});var ou=K(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});var z0=require("stream"),X0=Xt(),J0=Qr(),Z0=zr(),su=class extends Z0.default{constructor(){super(...arguments),this._walkStream=J0.walkStream,this._stat=X0.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){let o=t.map(this._getFullEntryPath,this),d=new z0.PassThrough({objectMode:!0});d._write=(m,g,E)=>this._getEntry(o[m],t[m],e).then(A=>{A!==null&&e.entryFilter(A)&&d.push(A),m===o.length-1&&d.end(),E()}).catch(E);for(let m=0;m<o.length;m++)d.write(m);return d}_getEntry(t,e,o){return this._getStat(t).then(d=>this._makeEntry(d,e)).catch(d=>{if(o.errorFilter(d))return null;throw d})}_getStat(t){return new Promise((e,o)=>{this._stat(t,this._fsStatSettings,(d,m)=>d===null?e(m):o(d))})}};uu.default=su});var rp=K(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var ew=Qr(),tw=zr(),iw=ou(),lu=class extends tw.default{constructor(){super(...arguments),this._walkAsync=ew.walk,this._readerStream=new iw.default(this._settings)}dynamic(t,e){return new Promise((o,d)=>{this._walkAsync(t,e,(m,g)=>{m===null?o(g):d(m)})})}async static(t,e){let o=[],d=this._readerStream.static(t,e);return new Promise((m,g)=>{d.once("error",g),d.on("data",E=>o.push(E)),d.once("end",()=>m(o))})}};cu.default=lu});var np=K(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var vi=Rt(),_u=class{constructor(t,e,o){this._patterns=t,this._settings=e,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){let t=vi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let e of t){let o=this._getPatternSegments(e),d=this._splitSegmentsIntoSections(o);this._storage.push({complete:d.length<=1,pattern:e,segments:o,sections:d})}}_getPatternSegments(t){return vi.pattern.getPatternParts(t,this._micromatchOptions).map(o=>vi.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:vi.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(t){return vi.array.splitWhen(t,e=>e.dynamic&&vi.pattern.hasGlobStar(e.pattern))}};fu.default=_u});var ap=K(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});var rw=np(),du=class extends rw.default{match(t){let e=t.split("/"),o=e.length,d=this._storage.filter(m=>!m.complete||m.segments.length>o);for(let m of d){let g=m.sections[0];if(!m.complete&&o>g.length||e.every((A,x)=>{let D=m.segments[x];return!!(D.dynamic&&D.patternRe.test(A)||!D.dynamic&&D.pattern===A)}))return!0}return!1}};pu.default=du});var sp=K(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});var Xr=Rt(),nw=ap(),hu=class{constructor(t,e){this._settings=t,this._micromatchOptions=e}getFilter(t,e,o){let d=this._getMatcher(e),m=this._getNegativePatternsRe(o);return g=>this._filter(t,g,d,m)}_getMatcher(t){return new nw.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let e=t.filter(Xr.pattern.isAffectDepthOfReadingPattern);return Xr.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,o,d){if(this._isSkippedByDeep(t,e.path)||this._isSkippedSymbolicLink(e))return!1;let m=Xr.path.removeLeadingDotSegment(e.path);return this._isSkippedByPositivePatterns(m,o)?!1:this._isSkippedByNegativePatterns(m,d)}_isSkippedByDeep(t,e){return this._settings.deep===1/0?!1:this._getEntryLevel(t,e)>=this._settings.deep}_getEntryLevel(t,e){let o=e.split("/").length;if(t==="")return o;let d=t.split("/").length;return o-d}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!Xr.pattern.matchAny(t,e)}};yu.default=hu});var up=K(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var Jt=Rt(),mu=class{constructor(t,e){this._settings=t,this._micromatchOptions=e,this.index=new Map}getFilter(t,e){let o=Jt.pattern.convertPatternsToRe(t,this._micromatchOptions),d=Jt.pattern.convertPatternsToRe(e,this._micromatchOptions);return m=>this._filter(m,o,d)}_filter(t,e,o){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,o))return!1;let d=this._settings.baseNameMatch?t.name:t.path,m=t.dirent.isDirectory(),g=this._isMatchToPatterns(d,e,m)&&!this._isMatchToPatterns(t.path,o,m);return this._settings.unique&&g&&this._createIndexRecord(t),g}_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 o=Jt.path.makeAbsolute(this._settings.cwd,t);return Jt.pattern.matchAny(o,e)}_isMatchToPatterns(t,e,o){let d=Jt.path.removeLeadingDotSegment(t),m=Jt.pattern.matchAny(d,e);return!m&&o?Jt.pattern.matchAny(d+"/",e):m}};vu.default=mu});var op=K(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});var aw=Rt(),gu=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return aw.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};bu.default=gu});var cp=K(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var lp=Rt(),ju=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;return this._settings.absolute&&(e=lp.path.makeAbsolute(this._settings.cwd,e),e=lp.path.unixify(e)),this._settings.markDirectories&&t.dirent.isDirectory()&&(e+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:e}):e}};wu.default=ju});var Jr=K(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var sw=require("path"),uw=sp(),ow=up(),lw=op(),cw=cp(),Cu=class{constructor(t){this._settings=t,this.errorFilter=new lw.default(this._settings),this.entryFilter=new ow.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new uw.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new cw.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}}};ku.default=Cu});var _p=K(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});var _w=rp(),fw=Jr(),Su=class extends fw.default{constructor(){super(...arguments),this._reader=new _w.default(this._settings)}async read(t){let e=this._getRootDirectory(t),o=this._getReaderOptions(t);return(await this.api(e,t,o)).map(m=>o.transform(m))}api(t,e,o){return e.dynamic?this._reader.dynamic(t,o):this._reader.static(e.patterns,o)}};Eu.default=Su});var fp=K(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});var dw=require("stream"),pw=ou(),hw=Jr(),Ru=class extends hw.default{constructor(){super(...arguments),this._reader=new pw.default(this._settings)}read(t){let e=this._getRootDirectory(t),o=this._getReaderOptions(t),d=this.api(e,t,o),m=new dw.Readable({objectMode:!0,read:()=>{}});return d.once("error",g=>m.emit("error",g)).on("data",g=>m.emit("data",o.transform(g))).once("end",()=>m.emit("end")),m.once("close",()=>d.destroy()),m}api(t,e,o){return e.dynamic?this._reader.dynamic(t,o):this._reader.static(e.patterns,o)}};Au.default=Ru});var dp=K(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var yw=Xt(),mw=Qr(),vw=zr(),Tu=class extends vw.default{constructor(){super(...arguments),this._walkSync=mw.walkSync,this._statSync=yw.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){let o=[];for(let d of t){let m=this._getFullEntryPath(d),g=this._getEntry(m,d,e);g===null||!e.entryFilter(g)||o.push(g)}return o}_getEntry(t,e,o){try{let d=this._getStat(t);return this._makeEntry(d,e)}catch(d){if(o.errorFilter(d))return null;throw d}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Du.default=Tu});var pp=K(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var gw=dp(),bw=Jr(),Pu=class extends bw.default{constructor(){super(...arguments),this._reader=new gw.default(this._settings)}read(t){let e=this._getRootDirectory(t),o=this._getReaderOptions(t);return this.api(e,t,o).map(o.transform)}api(t,e,o){return e.dynamic?this._reader.dynamic(t,o):this._reader.static(e.patterns,o)}};Iu.default=Pu});var hp=K(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var gi=require("fs"),jw=require("os"),ww=Math.max(jw.cpus().length,1);bi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:gi.lstat,lstatSync:gi.lstatSync,stat:gi.stat,statSync:gi.statSync,readdir:gi.readdir,readdirSync:gi.readdirSync};var Mu=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,ww),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({},bi.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};bi.default=Mu});var gp=K((dk,vp)=>{"use strict";var yp=hd(),mp=md(),Cw=_p(),kw=fp(),Sw=pp(),Fu=hp(),Zt=Rt();async function Ou(r,t){ji(r);let e=xu(r,Cw.default,t),o=await Promise.all(e);return Zt.array.flatten(o)}(function(r){function t(g,E){ji(g);let A=xu(g,Sw.default,E);return Zt.array.flatten(A)}r.sync=t;function e(g,E){ji(g);let A=xu(g,kw.default,E);return Zt.stream.merge(A)}r.stream=e;function o(g,E){ji(g);let A=mp.transform([].concat(g)),x=new Fu.default(E);return yp.generate(A,x)}r.generateTasks=o;function d(g,E){ji(g);let A=new Fu.default(E);return Zt.pattern.isDynamicPattern(g,A)}r.isDynamicPattern=d;function m(g){return ji(g),Zt.path.escape(g)}r.escapePath=m})(Ou||(Ou={}));function xu(r,t,e){let o=mp.transform([].concat(r)),d=new Fu.default(e),m=yp.generate(o,d),g=new t(d);return m.map(g.read,g)}function ji(r){if(![].concat(r).every(o=>Zt.string.isString(o)&&!Zt.string.isEmpty(o)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}vp.exports=Ou});var Ew={};mg(Ew,{registerWorker:()=>jp});module.exports=vg(Ew);var me=Bi(require("apache-arrow"));function _i(r){switch(r.typeId){case me.Type.Binary:return{sqlType:"binary"};case me.Type.Bool:return{sqlType:"bool"};case me.Type.Date:return{sqlType:"date"};case me.Type.DateDay:return{sqlType:"date32[d]"};case me.Type.DateMillisecond:return{sqlType:"date64[ms]"};case me.Type.Decimal:{let t=r;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case me.Type.Float:return{sqlType:"float"};case me.Type.Float16:return{sqlType:"float16"};case me.Type.Float32:return{sqlType:"float32"};case me.Type.Float64:return{sqlType:"float64"};case me.Type.Int:return{sqlType:"int32"};case me.Type.Int16:return{sqlType:"int16"};case me.Type.Int32:return{sqlType:"int32"};case me.Type.Int64:return{sqlType:"int64"};case me.Type.Uint16:return{sqlType:"uint16"};case me.Type.Uint32:return{sqlType:"uint32"};case me.Type.Uint64:return{sqlType:"uint64"};case me.Type.Uint8:return{sqlType:"uint8"};case me.Type.IntervalDayTime:return{sqlType:"interval[dt]"};case me.Type.IntervalYearMonth:return{sqlType:"interval[m]"};case me.Type.List:return{sqlType:"list",valueType:_i(r.valueType)};case me.Type.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:r.byteWidth};case me.Type.Null:return{sqlType:"null"};case me.Type.Utf8:return{sqlType:"utf8"};case me.Type.Struct:return{sqlType:"struct",fields:r.children.map(e=>yr(e.name,e.type))};case me.Type.Map:{let t=r;return{sqlType:"map",keyType:_i(t.keyType),valueType:_i(t.valueType)}}case me.Type.Time:return{sqlType:"time[s]"};case me.Type.TimeMicrosecond:return{sqlType:"time[us]"};case me.Type.TimeMillisecond:return{sqlType:"time[ms]"};case me.Type.TimeNanosecond:return{sqlType:"time[ns]"};case me.Type.TimeSecond:return{sqlType:"time[s]"};case me.Type.Timestamp:return{sqlType:"timestamp",timezone:r.timezone||void 0};case me.Type.TimestampSecond:return{sqlType:"timestamp[s]",timezone:r.timezone||void 0};case me.Type.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:r.timezone||void 0};case me.Type.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:r.timezone||void 0};case me.Type.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:r.timezone||void 0}}throw new Error(`unsupported arrow type: ${r.toString()}`)}function yr(r,t){let e=_i(t);return e.name=r,e}var mr=class{constructor(){this._bindings=null;this._nextMessageId=0}log(t){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:t},[])}sendOK(t){this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"OK",data:null},[])}failWith(t,e){let o={name:e.name,message:e.message,stack:e.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"ERROR",data:o},[])}async onMessage(t){switch(t.type){case"PING":this.sendOK(t);return;case"INSTANTIATE":this._bindings!=null&&this.failWith(t,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(t.data[0],t.data[1],e=>{this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"INSTANTIATE_PROGRESS",data:e},[])}),this.sendOK(t)}catch(e){this._bindings=null,this.failWith(t,e)}return;default:break}if(!this._bindings)return this.failWith(t,new Error("duckdb is not initialized"));try{switch(t.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(t);break;case"OPEN":this._bindings.open(t.data),this.sendOK(t);break;case"DROP_FILE":this._bindings.dropFile(t.data),this.sendOK(t);break;case"DROP_FILES":this._bindings.dropFiles(),this.sendOK(t);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(t);break;case"CONNECT":{let e=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"CONNECTION_INFO",data:e.useUnsafe((o,d)=>d)},[]);break}case"DISCONNECT":this._bindings.disconnect(t.data),this.sendOK(t);break;case"CREATE_PREPARED":{let e=this._bindings.createPrepared(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"PREPARED_STATEMENT_ID",data:e},[]);break}case"CLOSE_PREPARED":{this._bindings.closePrepared(t.data[0],t.data[1]),this.sendOK(t);break}case"RUN_PREPARED":{let e=this._bindings.runPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:e},[e.buffer]);break}case"RUN_QUERY":{let e=this._bindings.runQuery(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:e},[e.buffer]);break}case"SEND_PREPARED":{let e=this._bindings.sendPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER",data:e},[e.buffer]);break}case"START_PENDING_QUERY":{let e=this._bindings.startPendingQuery(t.data[0],t.data[1]),o=[];e&&o.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},o);break}case"POLL_PENDING_QUERY":{let e=this._bindings.pollPendingQuery(t.data),o=[];e&&o.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},o);break}case"CANCEL_PENDING_QUERY":{let e=this._bindings.cancelPendingQuery(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SUCCESS",data:e},[]);break}case"FETCH_QUERY_RESULTS":{let e=this._bindings.fetchQueryResults(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_CHUNK",data:e},[e.buffer]);break}case"GET_TABLE_NAMES":{let e=this._bindings.getTableNames(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"TABLE_NAMES",data:e},[]);break}case"GLOB_FILE_INFOS":{let e=this._bindings.globFiles(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_INFOS",data:e},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(t.data[0],t.data[1],t.data[2],t.data[3]),this.sendOK(t);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(t.data[0],t.data[1]),this.sendOK(t);break;case"REGISTER_FILE_HANDLE":this._bindings.registerFileHandle(t.data[0],t.data[1],t.data[2],t.data[3]),this.sendOK(t);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(t.data[0],t.data[1]),this.sendOK(t);break;case"COPY_FILE_TO_BUFFER":{let e=this._bindings.copyFileToBuffer(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_BUFFER",data:e},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(t.data[0],t.data[1]),this.sendOK(t);break;case"EXPORT_FILE_STATISTICS":{this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(t.data)},[]);break}case"INSERT_ARROW_FROM_IPC_STREAM":{this._bindings.insertArrowFromIPCStream(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"IMPORT_CSV_FROM_PATH":{this._bindings.insertCSVFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"IMPORT_JSON_FROM_PATH":{this._bindings.insertJSONFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"TOKENIZE":{let e=this._bindings.tokenize(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SCRIPT_TOKENS",data:e},[]);break}}}catch(e){return this.failWith(t,e)}}};var w_={},gg=(()=>{var r=w_.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},o,d;e.ready=new Promise(function(v,j){o=v,d=j});var m=Object.assign({},e),g=[],E="./this.program",A=(v,j)=>{throw j},x=typeof window=="object",D=typeof importScripts=="function",N=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",P="";function _e(v){return e.locateFile?e.locateFile(v,P):P+v}var $,Y,Z,re;function Se(v){if(v instanceof jt)return;ne("exiting due to exception: "+v)}if(N){D?P=require("path").dirname(P)+"/":P=__dirname+"/";var ve,He;typeof require=="function"&&(ve=require("fs"),He=require("path")),$=(v,j)=>(v=He.normalize(v),ve.readFileSync(v,j?void 0:"utf8")),Z=v=>{var j=$(v,!0);return j.buffer||(j=new Uint8Array(j)),j},Y=(v,j,k)=>{v=He.normalize(v),ve.readFile(v,function(T,L){T?k(T):j(L.buffer)})},process.argv.length>1&&(E=process.argv[1].replace(/\\/g,"/")),g=process.argv.slice(2),process.on("uncaughtException",function(v){if(!(v instanceof jt))throw v}),process.on("unhandledRejection",function(v){throw v}),A=(v,j)=>{if(bt())throw process.exitCode=v,j;Se(j),process.exit(v)},e.inspect=function(){return"[Emscripten Module object]"}}else(x||D)&&(D?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="",$=v=>{var j=new XMLHttpRequest;return j.open("GET",v,!1),j.send(null),j.responseText},D&&(Z=v=>{var j=new XMLHttpRequest;return j.open("GET",v,!1),j.responseType="arraybuffer",j.send(null),new Uint8Array(j.response)}),Y=(v,j,k)=>{var T=new XMLHttpRequest;T.open("GET",v,!0),T.responseType="arraybuffer",T.onload=()=>{if(T.status==200||T.status==0&&T.response){j(T.response);return}k()},T.onerror=k,T.send(null)},re=v=>document.title=v);var se=e.print||console.log.bind(console),ne=e.printErr||console.warn.bind(console);Object.assign(e,m),m=null,e.arguments&&(g=e.arguments),e.thisProgram&&(E=e.thisProgram),e.quit&&(A=e.quit);var ee;e.wasmBinary&&(ee=e.wasmBinary);var te=e.noExitRuntime||!0;typeof WebAssembly!="object"&&qe("no native wasm support detected");var G,pe=!1,M;function ce(v,j){v||qe(j)}var ae=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Ae(v,j,k){j>>>=0;for(var T=j+k,L=j;v[L]&&!(L>=T);)++L;if(L-j>16&&v.buffer&&ae)return ae.decode(v.subarray(j,L));for(var Q="";j<L;){var W=v[j++];if(!(W&128)){Q+=String.fromCharCode(W);continue}var q=v[j++]&63;if((W&224)==192){Q+=String.fromCharCode((W&31)<<6|q);continue}var J=v[j++]&63;if((W&240)==224?W=(W&15)<<12|q<<6|J:W=(W&7)<<18|q<<12|J<<6|v[j++]&63,W<65536)Q+=String.fromCharCode(W);else{var be=W-65536;Q+=String.fromCharCode(55296|be>>10,56320|be&1023)}}return Q}function R(v,j){return v>>>=0,v?Ae(Re,v,j):""}function I(v,j,k,T){if(k>>>=0,!(T>0))return 0;for(var L=k,Q=k+T-1,W=0;W<v.length;++W){var q=v.charCodeAt(W);if(q>=55296&&q<=57343){var J=v.charCodeAt(++W);q=65536+((q&1023)<<10)|J&1023}if(q<=127){if(k>=Q)break;j[k++>>>0]=q}else if(q<=2047){if(k+1>=Q)break;j[k++>>>0]=192|q>>6,j[k++>>>0]=128|q&63}else if(q<=65535){if(k+2>=Q)break;j[k++>>>0]=224|q>>12,j[k++>>>0]=128|q>>6&63,j[k++>>>0]=128|q&63}else{if(k+3>=Q)break;j[k++>>>0]=240|q>>18,j[k++>>>0]=128|q>>12&63,j[k++>>>0]=128|q>>6&63,j[k++>>>0]=128|q&63}}return j[k>>>0]=0,k-L}function Ie(v,j,k){return I(v,Re,j,k)}function ge(v){for(var j=0,k=0;k<v.length;++k){var T=v.charCodeAt(k);T<=127?j++:T<=2047?j+=2:T>=55296&&T<=57343?(j+=4,++k):j+=3}return j}var Xe,Oe,Re,Je,Bt,F,he,fe,Tt;function Nt(v){Xe=v,e.HEAP8=Oe=new Int8Array(v),e.HEAP16=Je=new Int16Array(v),e.HEAP32=F=new Int32Array(v),e.HEAPU8=Re=new Uint8Array(v),e.HEAPU16=Bt=new Uint16Array(v),e.HEAPU32=he=new Uint32Array(v),e.HEAPF32=fe=new Float32Array(v),e.HEAPF64=Tt=new Float64Array(v)}var V=e.INITIAL_MEMORY||16777216,Te,U=[],oe=[],Be=[],Ge=[],Ke=!1;function bt(){return te}function Dt(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)rn(e.preRun.shift());wt(U)}function Zr(){Ke=!0,wt(oe)}function en(){wt(Be)}function tn(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)an(e.postRun.shift());wt(Ge)}function rn(v){U.unshift(v)}function nn(v){oe.unshift(v)}function an(v){Ge.unshift(v)}var tt=0,Ut=null,dt=null;function sn(v){tt++,e.monitorRunDependencies&&e.monitorRunDependencies(tt)}function un(v){if(tt--,e.monitorRunDependencies&&e.monitorRunDependencies(tt),tt==0&&(Ut!==null&&(clearInterval(Ut),Ut=null),dt)){var j=dt;dt=null,j()}}function qe(v){e.onAbort&&e.onAbort(v),v="Aborted("+v+")",ne(v),pe=!0,M=1,v+=". Build with -sASSERTIONS for more info.",ar()}var on="data:application/octet-stream;base64,";function wi(v){return v.startsWith(on)}var Ne;e.locateFile?(Ne="./duckdb-eh.wasm",wi(Ne)||(Ne=_e(Ne))):Ne=new URL("./duckdb-eh.wasm",w_.url).toString();function Ci(v){try{if(v==Ne&&ee)return new Uint8Array(ee);if(Z)return Z(v);throw"both async and sync fetching of the wasm failed"}catch(j){qe(j)}}function ln(){return!ee&&(x||D)&&typeof fetch=="function"?fetch(Ne,{credentials:"same-origin"}).then(function(v){if(!v.ok)throw"failed to load wasm binary file at '"+Ne+"'";return v.arrayBuffer()}).catch(function(){return Ci(Ne)}):Promise.resolve().then(function(){return Ci(Ne)})}function cn(){var v={a:ya};function j(W,q){var J=W.exports;e.asm=J,G=e.asm.ia,Nt(G.buffer),Te=e.asm.la,nn(e.asm.ja),un("wasm-instantiate")}sn("wasm-instantiate");function k(W){j(W.instance)}function T(W){return ln().then(function(q){return WebAssembly.instantiate(q,v)}).then(function(q){return q}).then(W,function(q){ne("failed to asynchronously prepare wasm: "+q),qe(q)})}function L(){return!ee&&typeof WebAssembly.instantiateStreaming=="function"&&!wi(Ne)&&!N&&typeof fetch=="function"?fetch(Ne,{credentials:"same-origin"}).then(function(W){var q=WebAssembly.instantiateStreaming(W,v);return q.then(k,function(J){return ne("wasm streaming compile failed: "+J),ne("falling back to ArrayBuffer instantiation"),T(k)})}):T(k)}if(e.instantiateWasm)try{var Q=e.instantiateWasm(v,j);return Q}catch(W){ne("Module.instantiateWasm callback failed with error: "+W),d(W)}return L().catch(d),{}}function jt(v){this.name="ExitStatus",this.message="Program terminated with exit("+v+")",this.status=v}function wt(v){for(;v.length>0;)v.shift()(e)}function _n(v,j,k,T){qe("Assertion failed: "+R(v)+", at: "+[j?R(j):"unknown filename",k,T?R(T):"unknown function"])}var Ct={varargs:void 0,get:function(){Ct.varargs+=4;var v=F[Ct.varargs-4>>>2];return v},getStr:function(v){var j=R(v);return j}};function ei(v,j,k,T,L){for(var Q=0,W=j?F[j>>>2]:0,q=j?F[j+4>>>2]:0,J=k?F[k>>>2]:0,be=k?F[k+4>>>2]:0,je=T?F[T>>>2]:0,Ve=T?F[T+4>>>2]:0,ke=0,rt=0,xe=0,b=0,de=0,w=0,y=(j?F[j>>>2]:0)|(k?F[k>>>2]:0)|(T?F[T>>>2]:0),ie=(j?F[j+4>>>2]:0)|(k?F[k+4>>>2]:0)|(T?F[T+4>>>2]:0),we=function(cr,_r,fr,xi){return cr<32?_r&xi:fr&xi},Ee=0;Ee<v;Ee++){var Qe=1<<Ee%32;if(!!we(Ee,y,ie,Qe)){var Pt=Ct.getStreamFromFD(Ee),Gt=Ct.DEFAULT_POLLMASK;Pt.stream_ops.poll&&(Gt=Pt.stream_ops.poll(Pt)),Gt&1&&we(Ee,W,q,Qe)&&(Ee<32?ke=ke|Qe:rt=rt|Qe,Q++),Gt&4&&we(Ee,J,be,Qe)&&(Ee<32?xe=xe|Qe:b=b|Qe,Q++),Gt&2&&we(Ee,je,Ve,Qe)&&(Ee<32?de=de|Qe:w=w|Qe,Q++)}}return j&&(F[j>>>2]=ke,F[j+4>>>2]=rt),k&&(F[k>>>2]=xe,F[k+4>>>2]=b),T&&(F[T>>>2]=de,F[T+4>>>2]=w),Q}function fn(){ne("missing function: $SOCKFS"),qe(-1)}function Ht(){ne("missing function: $FS"),qe(-1)}function qt(v){var j=fn.getSocket(v);if(!j)throw new Ht.ErrnoError(8);return j}function it(v){return(v&255)+"."+(v>>8&255)+"."+(v>>16&255)+"."+(v>>24&255)}function ct(v){var j="",k=0,T=0,L=0,Q=0,W=0,q=0,J=[v[0]&65535,v[0]>>16,v[1]&65535,v[1]>>16,v[2]&65535,v[2]>>16,v[3]&65535,v[3]>>16],be=!0,je="";for(q=0;q<5;q++)if(J[q]!==0){be=!1;break}if(be){if(je=it(J[6]|J[7]<<16),J[5]===-1)return j="::ffff:",j+=je,j;if(J[5]===0)return j="::",je==="0.0.0.0"&&(je=""),je==="0.0.0.1"&&(je="1"),j+=je,j}for(k=0;k<8;k++)J[k]===0&&(k-L>1&&(W=0),L=k,W++),W>T&&(T=W,Q=k-T+1);for(k=0;k<8;k++){if(T>1&&J[k]===0&&k>=Q&&k<Q+T){k===Q&&(j+=":",Q===0&&(j+=":"));continue}j+=Number(Mi(J[k]&65535)).toString(16),j+=k<7?":":""}return j}function ki(v,j){var k=Je[v>>>1],T=Mi(Bt[v+2>>>1]),L;switch(k){case 2:if(j!==16)return{errno:28};L=F[v+4>>>2],L=it(L);break;case 10:if(j!==28)return{errno:28};L=[F[v+8>>>2],F[v+12>>>2],F[v+16>>>2],F[v+20>>>2]],L=ct(L);break;default:return{errno:5}}return{family:k,addr:L,port:T}}function kt(v){for(var j=v.split("."),k=0;k<4;k++){var T=Number(j[k]);if(isNaN(T))return null;j[k]=T}return(j[0]|j[1]<<8|j[2]<<16|j[3]<<24)>>>0}function z(v){return parseInt(v)}function Si(v){var j,k,T,L,Q=/^((?=.*::)(?!.*::.+::)(::)?([\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,W=[];if(!Q.test(v))return null;if(v==="::")return[0,0,0,0,0,0,0,0];for(v.startsWith("::")?v=v.replace("::","Z:"):v=v.replace("::",":Z:"),v.indexOf(".")>0?(v=v.replace(new RegExp("[.]","g"),":"),j=v.split(":"),j[j.length-4]=z(j[j.length-4])+z(j[j.length-3])*256,j[j.length-3]=z(j[j.length-2])+z(j[j.length-1])*256,j=j.slice(0,j.length-2)):j=v.split(":"),T=0,L=0,k=0;k<j.length;k++)if(typeof j[k]=="string")if(j[k]==="Z"){for(L=0;L<8-j.length+1;L++)W[k+L]=0;T=L-1}else W[k+T]=li(parseInt(j[k],16));else W[k+T]=j[k];return[W[1]<<16|W[0],W[3]<<16|W[2],W[5]<<16|W[4],W[7]<<16|W[6]]}var at={address_map:{id:1,addrs:{},names:{}},lookup_name:function(v){var j=kt(v);if(j!==null||(j=Si(v),j!==null))return v;var k;if(at.address_map.addrs[v])k=at.address_map.addrs[v];else{var T=at.address_map.id++;ce(T<65535,"exceeded max address mappings of 65535"),k="172.29."+(T&255)+"."+(T&65280),at.address_map.names[k]=v,at.address_map.addrs[v]=k}return k},lookup_addr:function(v){return at.address_map.names[v]?at.address_map.names[v]:null}};function Wi(v,j,k){if(k&&v===0)return null;var T=ki(v,j);if(T.errno)throw new Ht.ErrnoError(T.errno);return T.addr=at.lookup_addr(T.addr)||T.addr,T}function dn(v,j,k){var T=qt(v),L=Wi(j,k);return T.sock_ops.bind(T,L.addr,L.port),0}function pn(v,j,k){var T=qt(v),L=Wi(j,k);return T.sock_ops.connect(T,L.addr,L.port),0}function hn(v,j,k,T){}function yn(v,j,k){return Ct.varargs=k,0}function mn(v,j){}function vn(v,j,k){}function gn(v,j,k){}function $i(v,j){return Re.fill(0,v,v+j),v}function Ei(v,j,k,T,L){switch(j){case 2:k=kt(k),$i(v,16),L&&(F[L>>>2]=16),Je[v>>>1]=j,F[v+4>>>2]=k,Je[v+2>>>1]=li(T);break;case 10:k=Si(k),$i(v,28),L&&(F[L>>>2]=28),F[v>>>2]=j,F[v+8>>>2]=k[0],F[v+12>>>2]=k[1],F[v+16>>>2]=k[2],F[v+20>>>2]=k[3],Je[v+2>>>1]=li(T);break;default:return 5}return 0}function St(v,j,k){var T=qt(v);if(!T.daddr)return-53;var L=Ei(j,T.family,at.lookup_name(T.daddr),T.dport,k);return 0}function bn(v,j,k,T,L){var Q=qt(v);return j===1&&k===4?(F[T>>>2]=Q.error,F[L>>>2]=4,Q.error=null,0):-50}function jn(v,j,k){return Ct.varargs=k,0}function Ki(v,j){}function Wt(v,j,k){}function Ri(v,j,k,T){}function Gi(v,j,k,T){Ct.varargs=T}function Yi(v,j,k,T,L,Q){var W=qt(v),q=W.sock_ops.recvmsg(W,k);if(!q)return 0;if(L)var J=Ei(L,W.family,at.lookup_name(q.addr),q.port,Q);return Re.set(q.buffer,j>>>0),q.buffer.byteLength}function ti(v,j,k,T){}function ii(v){}function Ai(v,j,k,T,L,Q){}function st(v,j,k){}function Vi(v,j){}function wn(v,j,k){}function Cn(v){}var Qi="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function kn(v,j){qe(Qi)}function Sn(v,j){qe(Qi)}var En=!0;function Rn(){return En}function zi(){qe("")}function Ti(v,j){return globalThis.DUCKDB_RUNTIME.createDirectory(e,v,j)}function An(v,j){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,v,j)}function Tn(v,j){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,v,j)}function Dn(v,j){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,v,j)}function Pn(v){return globalThis.DUCKDB_RUNTIME.closeFile(e,v)}function In(v,j){return globalThis.DUCKDB_RUNTIME.checkFile(e,v,j)}function Mn(v){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,v)}function Fn(v,j,k,T){return globalThis.DUCKDB_RUNTIME.moveFile(e,v,j,k,T)}function On(v,j){return globalThis.DUCKDB_RUNTIME.openFile(e,v,j)}function xn(v,j,k,T){return globalThis.DUCKDB_RUNTIME.readFile(e,v,j,k,T)}function Ln(v,j){return globalThis.DUCKDB_RUNTIME.truncateFile(e,v,j)}function Bn(v,j,k,T){return globalThis.DUCKDB_RUNTIME.writeFile(e,v,j,k,T)}function Nn(v){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(v)}function Un(v,j){return globalThis.DUCKDB_RUNTIME.glob(e,v,j)}function Hn(v){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,v)}function qn(v,j,k,T,L,Q){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,v,j,k,T,L,Q)}function Xi(){return Date.now()}function Ji(){return 4294901760}function Wn(){return Ji()}var Di;N?Di=()=>{var v=process.hrtime();return v[0]*1e3+v[1]/1e6}:Di=()=>performance.now();function $n(v,j,k){Re.copyWithin(v>>>0,j>>>0,j+k>>>0)}function Kn(v){try{return G.grow(v-Xe.byteLength+65535>>>16),Nt(G.buffer),1}catch{}}function Gn(v){var j=Re.length;v=v>>>0;var k=Ji();if(v>k)return!1;let T=(J,be)=>J+(be-J%be)%be;for(var L=1;L<=4;L*=2){var Q=j*(1+.2/L);Q=Math.min(Q,v+100663296);var W=Math.min(k,T(Math.max(v,Q),65536)),q=Kn(W);if(q)return!0}return!1}var Pi={};function Yn(){return E||"./this.program"}function $t(){if(!$t.strings){var v=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",j={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:v,_:Yn()};for(var k in Pi)Pi[k]===void 0?delete j[k]:j[k]=Pi[k];var T=[];for(var k in j)T.push(k+"="+j[k]);$t.strings=T}return $t.strings}function Vn(v,j,k){for(var T=0;T<v.length;++T)Oe[j++>>>0]=v.charCodeAt(T);k||(Oe[j>>>0]=0)}function Qn(v,j){var k=0;return $t().forEach(function(T,L){var Q=j+k;he[v+L*4>>>2]=Q,Vn(T,Q),k+=T.length+1}),0}function zn(v,j){var k=$t();he[v>>>2]=k.length;var T=0;return k.forEach(function(L){T+=L.length+1}),he[j>>>2]=T,0}function Xn(v){return 52}function Jn(v,j,k,T,L,Q){return 52}function Zn(v,j,k,T,L,Q){return 52}function ea(v,j,k,T){return 52}function ta(v,j,k,T,L){return 70}function ia(v){return 52}var ra=[null,[],[]];function na(v,j){var k=ra[v];j===0||j===10?((v===1?se:ne)(Ae(k,0)),k.length=0):k.push(j)}function aa(v,j,k,T){for(var L=0,Q=0;Q<k;Q++){var W=he[j>>>2],q=he[j+4>>>2];j+=8;for(var J=0;J<q;J++)na(v,Re[W+J>>>0]);L+=q}return he[T>>>2]=L,0}function sa(v,j,k,T){var L=0,Q=0,W=0,q=0,J=0,be=0,je;function Ve(ke,rt,xe,b,de,w){var y,ie,we,Ee;return ie=ke===10?28:16,de=ke===10?ct(de):it(de),y=Fi(ie),Ee=Ei(y,ke,de,w),ce(!Ee),we=Fi(32),F[we+4>>>2]=ke,F[we+8>>>2]=rt,F[we+12>>>2]=xe,F[we+24>>>2]=b,he[we+20>>>2]=y,ke===10?F[we+16>>>2]=28:F[we+16>>>2]=16,F[we+28>>>2]=0,we}if(k&&(W=F[k>>>2],q=F[k+4>>>2],J=F[k+8>>>2],be=F[k+12>>>2]),J&&!be&&(be=J===2?17:6),!J&&be&&(J=be===17?2:1),be===0&&(be=6),J===0&&(J=1),!v&&!j)return-2;if(W&-1088||k!==0&&F[k>>>2]&2&&!v)return-1;if(W&32)return-2;if(J!==0&&J!==1&&J!==2)return-7;if(q!==0&&q!==2&&q!==10)return-6;if(j&&(j=R(j),Q=parseInt(j,10),isNaN(Q)))return W&1024?-2:-8;if(!v)return q===0&&(q=2),(W&1)===0&&(q===2?L=oi(2130706433):L=[0,0,0,1]),je=Ve(q,J,be,null,L,Q),he[T>>>2]=je,0;if(v=R(v),L=kt(v),L!==null)if(q===0||q===2)q=2;else if(q===10&&W&8)L=[0,0,oi(65535),L],q=10;else return-2;else if(L=Si(v),L!==null)if(q===0||q===10)q=10;else return-2;return L!=null?(je=Ve(q,J,be,v,L,Q),he[T>>>2]=je,0):W&4?-2:(v=at.lookup_name(v),L=kt(v),q===0?q=2:q===10&&(L=[0,0,oi(65535),L]),je=Ve(q,J,be,null,L,Q),he[T>>>2]=je,0)}function Zi(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var v=new Uint8Array(1);return()=>(crypto.getRandomValues(v),v[0])}else if(N)try{var j=require("crypto");return()=>j.randomBytes(1)[0]}catch{}return()=>qe("randomDevice")}function ri(v,j){ri.randomDevice||(ri.randomDevice=Zi());for(var k=0;k<j;k++)Oe[v+k>>>0]=ri.randomDevice();return 0}function Ii(v,j,k,T,L,Q,W){var q=ki(v,j);if(q.errno)return-6;var J=q.port,be=q.addr,je=!1;if(k&&T){var Ve;if(W&1||!(Ve=at.lookup_addr(be))){if(W&8)return-2}else be=Ve;var ke=Ie(be,k,T);ke+1>=T&&(je=!0)}if(L&&Q){J=""+J;var ke=Ie(J,L,Q);ke+1>=Q&&(je=!0)}return je?-12:0}function ni(v){return v%4===0&&(v%100!==0||v%400===0)}function ua(v,j){for(var k=0,T=0;T<=j;k+=v[T++]);return k}var er=[31,29,31,30,31,30,31,31,30,31,30,31],ai=[31,28,31,30,31,30,31,31,30,31,30,31];function oa(v,j){for(var k=new Date(v.getTime());j>0;){var T=ni(k.getFullYear()),L=k.getMonth(),Q=(T?er:ai)[L];if(j>Q-k.getDate())j-=Q-k.getDate()+1,k.setDate(1),L<11?k.setMonth(L+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else return k.setDate(k.getDate()+j),k}return k}function Kt(v,j,k){var T=k>0?k:ge(v)+1,L=new Array(T),Q=I(v,L,0,L.length);return j&&(L.length=Q),L}function tr(v,j){Oe.set(v,j>>>0)}function la(v,j,k,T){var L=F[T+40>>>2],Q={tm_sec:F[T>>>2],tm_min:F[T+4>>>2],tm_hour:F[T+8>>>2],tm_mday:F[T+12>>>2],tm_mon:F[T+16>>>2],tm_year:F[T+20>>>2],tm_wday:F[T+24>>>2],tm_yday:F[T+28>>>2],tm_isdst:F[T+32>>>2],tm_gmtoff:F[T+36>>>2],tm_zone:L?R(L):""},W=R(k),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 J in q)W=W.replace(new RegExp(J,"g"),q[J]);var be=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],je=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ve(y,ie,we){for(var Ee=typeof y=="number"?y.toString():y||"";Ee.length<ie;)Ee=we[0]+Ee;return Ee}function ke(y,ie){return Ve(y,ie,"0")}function rt(y,ie){function we(Qe){return Qe<0?-1:Qe>0?1:0}var Ee;return(Ee=we(y.getFullYear()-ie.getFullYear()))===0&&(Ee=we(y.getMonth()-ie.getMonth()))===0&&(Ee=we(y.getDate()-ie.getDate())),Ee}function xe(y){switch(y.getDay()){case 0:return new Date(y.getFullYear()-1,11,29);case 1:return y;case 2:return new Date(y.getFullYear(),0,3);case 3:return new Date(y.getFullYear(),0,2);case 4:return new Date(y.getFullYear(),0,1);case 5:return new Date(y.getFullYear()-1,11,31);case 6:return new Date(y.getFullYear()-1,11,30)}}function b(y){var ie=oa(new Date(y.tm_year+1900,0,1),y.tm_yday),we=new Date(ie.getFullYear(),0,4),Ee=new Date(ie.getFullYear()+1,0,4),Qe=xe(we),Pt=xe(Ee);return rt(Qe,ie)<=0?rt(Pt,ie)<=0?ie.getFullYear()+1:ie.getFullYear():ie.getFullYear()-1}var de={"%a":function(y){return be[y.tm_wday].substring(0,3)},"%A":function(y){return be[y.tm_wday]},"%b":function(y){return je[y.tm_mon].substring(0,3)},"%B":function(y){return je[y.tm_mon]},"%C":function(y){var ie=y.tm_year+1900;return ke(ie/100|0,2)},"%d":function(y){return ke(y.tm_mday,2)},"%e":function(y){return Ve(y.tm_mday,2," ")},"%g":function(y){return b(y).toString().substring(2)},"%G":function(y){return b(y)},"%H":function(y){return ke(y.tm_hour,2)},"%I":function(y){var ie=y.tm_hour;return ie==0?ie=12:ie>12&&(ie-=12),ke(ie,2)},"%j":function(y){return ke(y.tm_mday+ua(ni(y.tm_year+1900)?er:ai,y.tm_mon-1),3)},"%m":function(y){return ke(y.tm_mon+1,2)},"%M":function(y){return ke(y.tm_min,2)},"%n":function(){return`
|
|
3
|
+
`},"%p":function(y){return y.tm_hour>=0&&y.tm_hour<12?"AM":"PM"},"%S":function(y){return ke(y.tm_sec,2)},"%t":function(){return" "},"%u":function(y){return y.tm_wday||7},"%U":function(y){var ie=y.tm_yday+7-y.tm_wday;return ke(Math.floor(ie/7),2)},"%V":function(y){var ie=Math.floor((y.tm_yday+7-(y.tm_wday+6)%7)/7);if((y.tm_wday+371-y.tm_yday-2)%7<=2&&ie++,ie){if(ie==53){var Ee=(y.tm_wday+371-y.tm_yday)%7;Ee!=4&&(Ee!=3||!ni(y.tm_year))&&(ie=1)}}else{ie=52;var we=(y.tm_wday+7-y.tm_yday-1)%7;(we==4||we==5&&ni(y.tm_year%400-1))&&ie++}return ke(ie,2)},"%w":function(y){return y.tm_wday},"%W":function(y){var ie=y.tm_yday+7-(y.tm_wday+6)%7;return ke(Math.floor(ie/7),2)},"%y":function(y){return(y.tm_year+1900).toString().substring(2)},"%Y":function(y){return y.tm_year+1900},"%z":function(y){var ie=y.tm_gmtoff,we=ie>=0;return ie=Math.abs(ie)/60,ie=ie/60*100+ie%60,(we?"+":"-")+String("0000"+ie).slice(-4)},"%Z":function(y){return y.tm_zone},"%%":function(){return"%"}};W=W.replace(/%%/g,"\0\0");for(var J in de)W.includes(J)&&(W=W.replace(new RegExp(J,"g"),de[J](Q)));W=W.replace(/\0\0/g,"%");var w=Kt(W,!1);return w.length>j?0:(tr(w,v),w.length-1)}function ca(v,j,k,T,L){return la(v,j,k,T)}function _a(v){M=v,bt()||(e.onExit&&e.onExit(v),pe=!0),A(v,new jt(v))}function fa(v,j){M=v,_a(v)}function da(v){if(v instanceof jt||v=="unwind")return M;A(1,v)}function pa(v){var j=e["_"+v];return j}function ha(v,j,k,T,L){var Q={string:xe=>{var b=0;if(xe!=null&&xe!==0){var de=(xe.length<<2)+1;b=Oi(de),Ie(xe,b,de)}return b},array:xe=>{var b=Oi(xe.length);return tr(xe,b),b}};function W(xe){return j==="string"?R(xe):j==="boolean"?Boolean(xe):xe}var q=pa(v),J=[],be=0;if(T)for(var je=0;je<T.length;je++){var Ve=Q[k[je]];Ve?(be===0&&(be=sr()),J[je]=Ve(T[je])):J[je]=T[je]}var ke=q.apply(null,J);function rt(xe){return be!==0&&ur(be),W(xe)}return ke=rt(ke),ke}var ya={a:_n,O:ei,S:dn,R:pn,K:hn,b:yn,aa:mn,v:vn,Y:gn,M:St,N:bn,ca:jn,Z:Ki,ba:Wt,_:Ri,o:Gi,P:Yi,I:ti,m:ii,Q:Ai,k:st,$:Vi,n:wn,U:Cn,W:kn,V:Sn,da:Rn,d:zi,C:Ti,D:An,A:Tn,B:Dn,i:Pn,y:In,s:Mn,z:Fn,F:On,e:xn,E:Ln,j:Bn,G:Nn,x:Un,g:Hn,H:qn,ea:Xi,fa:Wn,T:Di,ga:$n,ha:Gn,q:Qn,r:zn,c:Xn,u:Jn,t:Zn,h:ea,w:ta,J:ia,f:aa,l:sa,X:ri,L:Ii,p:ca},Bu=cn(),ma=e.___wasm_call_ctors=function(){return(ma=e.___wasm_call_ctors=e.asm.ja).apply(null,arguments)},va=e._main=function(){return(va=e._main=e.asm.ka).apply(null,arguments)},ga=e._duckdb_web_fs_glob_add_path=function(){return(ga=e._duckdb_web_fs_glob_add_path=e.asm.ma).apply(null,arguments)},ba=e._duckdb_web_clear_response=function(){return(ba=e._duckdb_web_clear_response=e.asm.na).apply(null,arguments)},si=e._duckdb_web_fail_with=function(){return(si=e._duckdb_web_fail_with=e.asm.oa).apply(null,arguments)},ja=e._duckdb_web_reset=function(){return(ja=e._duckdb_web_reset=e.asm.pa).apply(null,arguments)},wa=e._duckdb_web_connect=function(){return(wa=e._duckdb_web_connect=e.asm.qa).apply(null,arguments)},ui=e._duckdb_web_disconnect=function(){return(ui=e._duckdb_web_disconnect=e.asm.ra).apply(null,arguments)},Ca=e._duckdb_web_flush_files=function(){return(Ca=e._duckdb_web_flush_files=e.asm.sa).apply(null,arguments)},ir=e._duckdb_web_flush_file=function(){return(ir=e._duckdb_web_flush_file=e.asm.ta).apply(null,arguments)},rr=e._duckdb_web_open=function(){return(rr=e._duckdb_web_open=e.asm.ua).apply(null,arguments)},ka=e._duckdb_web_get_global_file_info=function(){return(ka=e._duckdb_web_get_global_file_info=e.asm.va).apply(null,arguments)},Sa=e._duckdb_web_collect_file_stats=function(){return(Sa=e._duckdb_web_collect_file_stats=e.asm.wa).apply(null,arguments)},nr=e._duckdb_web_export_file_stats=function(){return(nr=e._duckdb_web_export_file_stats=e.asm.xa).apply(null,arguments)},Ea=e._duckdb_web_fs_drop_file=function(){return(Ea=e._duckdb_web_fs_drop_file=e.asm.ya).apply(null,arguments)},Ra=e._duckdb_web_fs_drop_files=function(){return(Ra=e._duckdb_web_fs_drop_files=e.asm.za).apply(null,arguments)},Aa=e._duckdb_web_fs_glob_file_infos=function(){return(Aa=e._duckdb_web_fs_glob_file_infos=e.asm.Aa).apply(null,arguments)},Ta=e._duckdb_web_fs_get_file_info_by_id=function(){return(Ta=e._duckdb_web_fs_get_file_info_by_id=e.asm.Ba).apply(null,arguments)},Da=e._duckdb_web_fs_get_file_info_by_name=function(){return(Da=e._duckdb_web_fs_get_file_info_by_name=e.asm.Ca).apply(null,arguments)},Pa=e._duckdb_web_fs_register_file_url=function(){return(Pa=e._duckdb_web_fs_register_file_url=e.asm.Da).apply(null,arguments)},Ia=e._duckdb_web_fs_register_file_buffer=function(){return(Ia=e._duckdb_web_fs_register_file_buffer=e.asm.Ea).apply(null,arguments)},Ma=e._duckdb_web_copy_file_to_buffer=function(){return(Ma=e._duckdb_web_copy_file_to_buffer=e.asm.Fa).apply(null,arguments)},Nu=e._duckdb_web_copy_file_to_path=function(){return(Nu=e._duckdb_web_copy_file_to_path=e.asm.Ga).apply(null,arguments)},Fa=e._duckdb_web_get_version=function(){return(Fa=e._duckdb_web_get_version=e.asm.Ha).apply(null,arguments)},Oa=e._duckdb_web_get_feature_flags=function(){return(Oa=e._duckdb_web_get_feature_flags=e.asm.Ia).apply(null,arguments)},xa=e._duckdb_web_tokenize=function(){return(xa=e._duckdb_web_tokenize=e.asm.Ja).apply(null,arguments)},La=e._duckdb_web_udf_scalar_create=function(){return(La=e._duckdb_web_udf_scalar_create=e.asm.Ka).apply(null,arguments)},Ba=e._duckdb_web_prepared_create=function(){return(Ba=e._duckdb_web_prepared_create=e.asm.La).apply(null,arguments)},Na=e._duckdb_web_prepared_close=function(){return(Na=e._duckdb_web_prepared_close=e.asm.Ma).apply(null,arguments)},Ua=e._duckdb_web_prepared_run=function(){return(Ua=e._duckdb_web_prepared_run=e.asm.Na).apply(null,arguments)},Ha=e._duckdb_web_prepared_send=function(){return(Ha=e._duckdb_web_prepared_send=e.asm.Oa).apply(null,arguments)},qa=e._duckdb_web_query_run=function(){return(qa=e._duckdb_web_query_run=e.asm.Pa).apply(null,arguments)},Wa=e._duckdb_web_pending_query_start=function(){return(Wa=e._duckdb_web_pending_query_start=e.asm.Qa).apply(null,arguments)},$a=e._duckdb_web_pending_query_poll=function(){return($a=e._duckdb_web_pending_query_poll=e.asm.Ra).apply(null,arguments)},Ka=e._duckdb_web_pending_query_cancel=function(){return(Ka=e._duckdb_web_pending_query_cancel=e.asm.Sa).apply(null,arguments)},Ga=e._duckdb_web_query_fetch_results=function(){return(Ga=e._duckdb_web_query_fetch_results=e.asm.Ta).apply(null,arguments)},Ya=e._duckdb_web_get_tablenames=function(){return(Ya=e._duckdb_web_get_tablenames=e.asm.Ua).apply(null,arguments)},Va=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(Va=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Va).apply(null,arguments)},Qa=e._duckdb_web_insert_csv_from_path=function(){return(Qa=e._duckdb_web_insert_csv_from_path=e.asm.Wa).apply(null,arguments)},za=e._duckdb_web_insert_json_from_path=function(){return(za=e._duckdb_web_insert_json_from_path=e.asm.Xa).apply(null,arguments)},oi=e._htonl=function(){return(oi=e._htonl=e.asm.Ya).apply(null,arguments)},li=e._htons=function(){return(li=e._htons=e.asm.Za).apply(null,arguments)},Mi=e._ntohs=function(){return(Mi=e._ntohs=e.asm._a).apply(null,arguments)},Fi=e._malloc=function(){return(Fi=e._malloc=e.asm.$a).apply(null,arguments)},Xa=e._free=function(){return(Xa=e._free=e.asm.ab).apply(null,arguments)},ar=e.___trap=function(){return(ar=e.___trap=e.asm.bb).apply(null,arguments)},sr=e.stackSave=function(){return(sr=e.stackSave=e.asm.cb).apply(null,arguments)},ur=e.stackRestore=function(){return(ur=e.stackRestore=e.asm.db).apply(null,arguments)},Oi=e.stackAlloc=function(){return(Oi=e.stackAlloc=e.asm.eb).apply(null,arguments)};e.ccall=ha;var ci;dt=function v(){ci||or(),ci||(dt=v)};function Ja(v){var j=e._main,k=0,T=0;try{var L=j(k,T);return fa(L,!0),L}catch(Q){return da(Q)}}function or(v){if(v=v||g,tt>0||(Dt(),tt>0))return;function j(){ci||(ci=!0,e.calledRun=!0,!pe&&(Zr(),en(),o(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),lr&&Ja(v),tn()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),j()},1)):j()}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var lr=!0;return e.noInitialRun&&(lr=!1),or(),t.ready}})(),C_=gg;var k_={},bg=(()=>{var r=k_.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},o,d;e.ready=new Promise(function(i,n){o=i,d=n});var m=Object.assign({},e),g=[],E="./this.program",A=(i,n)=>{throw n},x=typeof window=="object",D=typeof importScripts=="function",N=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",P="";function _e(i){return e.locateFile?e.locateFile(i,P):P+i}var $,Y,Z,re;function Se(i){if(i instanceof jt)return;ne("exiting due to exception: "+i)}if(N){D?P=require("path").dirname(P)+"/":P=__dirname+"/";var ve,He;typeof require=="function"&&(ve=require("fs"),He=require("path")),$=(i,n)=>(i=He.normalize(i),ve.readFileSync(i,n?void 0:"utf8")),Z=i=>{var n=$(i,!0);return n.buffer||(n=new Uint8Array(n)),n},Y=(i,n,a)=>{i=He.normalize(i),ve.readFile(i,function(s,u){s?a(s):n(u.buffer)})},process.argv.length>1&&(E=process.argv[1].replace(/\\/g,"/")),g=process.argv.slice(2),process.on("uncaughtException",function(i){if(!(i instanceof jt))throw i}),process.on("unhandledRejection",function(i){throw i}),A=(i,n)=>{if(bt())throw process.exitCode=i,n;Se(n),process.exit(i)},e.inspect=function(){return"[Emscripten Module object]"}}else(x||D)&&(D?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="",$=i=>{var n=new XMLHttpRequest;return n.open("GET",i,!1),n.send(null),n.responseText},D&&(Z=i=>{var n=new XMLHttpRequest;return n.open("GET",i,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}),Y=(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)},re=i=>document.title=i);var se=e.print||console.log.bind(console),ne=e.printErr||console.warn.bind(console);Object.assign(e,m),m=null,e.arguments&&(g=e.arguments),e.thisProgram&&(E=e.thisProgram),e.quit&&(A=e.quit);var ee;e.wasmBinary&&(ee=e.wasmBinary);var te=e.noExitRuntime||!0;typeof WebAssembly!="object"&&qe("no native wasm support detected");var G,pe=!1,M;function ce(i,n){i||qe(n)}var ae=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Ae(i,n,a){n>>>=0;for(var s=n+a,u=n;i[u]&&!(u>=s);)++u;if(u-n>16&&i.buffer&&ae)return ae.decode(i.subarray(n,u));for(var l="";n<u;){var c=i[n++];if(!(c&128)){l+=String.fromCharCode(c);continue}var _=i[n++]&63;if((c&224)==192){l+=String.fromCharCode((c&31)<<6|_);continue}var f=i[n++]&63;if((c&240)==224?c=(c&15)<<12|_<<6|f:c=(c&7)<<18|_<<12|f<<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 R(i,n){return i>>>=0,i?Ae(Re,i,n):""}function I(i,n,a,s){if(a>>>=0,!(s>0))return 0;for(var u=a,l=a+s-1,c=0;c<i.length;++c){var _=i.charCodeAt(c);if(_>=55296&&_<=57343){var f=i.charCodeAt(++c);_=65536+((_&1023)<<10)|f&1023}if(_<=127){if(a>=l)break;n[a++>>>0]=_}else if(_<=2047){if(a+1>=l)break;n[a++>>>0]=192|_>>6,n[a++>>>0]=128|_&63}else if(_<=65535){if(a+2>=l)break;n[a++>>>0]=224|_>>12,n[a++>>>0]=128|_>>6&63,n[a++>>>0]=128|_&63}else{if(a+3>=l)break;n[a++>>>0]=240|_>>18,n[a++>>>0]=128|_>>12&63,n[a++>>>0]=128|_>>6&63,n[a++>>>0]=128|_&63}}return n[a>>>0]=0,a-u}function Ie(i,n,a){return I(i,Re,n,a)}function ge(i){for(var n=0,a=0;a<i.length;++a){var s=i.charCodeAt(a);s<=127?n++:s<=2047?n+=2:s>=55296&&s<=57343?(n+=4,++a):n+=3}return n}var Xe,Oe,Re,Je,Bt,F,he,fe,Tt;function Nt(i){Xe=i,e.HEAP8=Oe=new Int8Array(i),e.HEAP16=Je=new Int16Array(i),e.HEAP32=F=new Int32Array(i),e.HEAPU8=Re=new Uint8Array(i),e.HEAPU16=Bt=new Uint16Array(i),e.HEAPU32=he=new Uint32Array(i),e.HEAPF32=fe=new Float32Array(i),e.HEAPF64=Tt=new Float64Array(i)}var V=e.INITIAL_MEMORY||16777216,Te,U=[],oe=[],Be=[],Ge=[],Ke=!1;function bt(){return te}function Dt(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)rn(e.preRun.shift());wt(U)}function Zr(){Ke=!0,wt(oe)}function en(){wt(Be)}function tn(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)an(e.postRun.shift());wt(Ge)}function rn(i){U.unshift(i)}function nn(i){oe.unshift(i)}function an(i){Ge.unshift(i)}var tt=0,Ut=null,dt=null;function sn(i){tt++,e.monitorRunDependencies&&e.monitorRunDependencies(tt)}function un(i){if(tt--,e.monitorRunDependencies&&e.monitorRunDependencies(tt),tt==0&&(Ut!==null&&(clearInterval(Ut),Ut=null),dt)){var n=dt;dt=null,n()}}function qe(i){e.onAbort&&e.onAbort(i),i="Aborted("+i+")",ne(i),pe=!0,M=1,i+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(i);throw d(n),n}var on="data:application/octet-stream;base64,";function wi(i){return i.startsWith(on)}var Ne;e.locateFile?(Ne="./duckdb-mvp.wasm",wi(Ne)||(Ne=_e(Ne))):Ne=new URL("./duckdb-mvp.wasm",k_.url).toString();function Ci(i){try{if(i==Ne&&ee)return new Uint8Array(ee);if(Z)return Z(i);throw"both async and sync fetching of the wasm failed"}catch(n){qe(n)}}function ln(){return!ee&&(x||D)&&typeof fetch=="function"?fetch(Ne,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load wasm binary file at '"+Ne+"'";return i.arrayBuffer()}).catch(function(){return Ci(Ne)}):Promise.resolve().then(function(){return Ci(Ne)})}function cn(){var i={a:Ma};function n(c,_){var f=c.exports;e.asm=f,G=e.asm.kf,Nt(G.buffer),Te=e.asm.nf,nn(e.asm.lf),un("wasm-instantiate")}sn("wasm-instantiate");function a(c){n(c.instance)}function s(c){return ln().then(function(_){return WebAssembly.instantiate(_,i)}).then(function(_){return _}).then(c,function(_){ne("failed to asynchronously prepare wasm: "+_),qe(_)})}function u(){return!ee&&typeof WebAssembly.instantiateStreaming=="function"&&!wi(Ne)&&!N&&typeof fetch=="function"?fetch(Ne,{credentials:"same-origin"}).then(function(c){var _=WebAssembly.instantiateStreaming(c,i);return _.then(a,function(f){return ne("wasm streaming compile failed: "+f),ne("falling back to ArrayBuffer instantiation"),s(a)})}):s(a)}if(e.instantiateWasm)try{var l=e.instantiateWasm(i,n);return l}catch(c){ne("Module.instantiateWasm callback failed with error: "+c),d(c)}return u().catch(d),{}}function jt(i){this.name="ExitStatus",this.message="Program terminated with exit("+i+")",this.status=i}function wt(i){for(;i.length>0;)i.shift()(e)}function _n(i,n,a,s){qe("Assertion failed: "+R(i)+", at: "+[n?R(n):"unknown filename",a,s?R(s):"unknown function"])}function Ct(i){return rt(i+24)+24}var ei=[];function fn(i){i.add_ref()}var Ht=0;function qt(i){var n=new ct(i);return n.get_caught()||(n.set_caught(!0),Ht--),n.set_rethrown(!1),ei.push(n),fn(n),n.get_exception_ptr()}var it=0;function ct(i){this.excPtr=i,this.ptr=i-24,this.set_type=function(n){he[this.ptr+4>>>2]=n},this.get_type=function(){return he[this.ptr+4>>>2]},this.set_destructor=function(n){he[this.ptr+8>>>2]=n},this.get_destructor=function(){return he[this.ptr+8>>>2]},this.set_refcount=function(n){F[this.ptr>>>2]=n},this.set_caught=function(n){n=n?1:0,Oe[this.ptr+12>>>0]=n},this.get_caught=function(){return Oe[this.ptr+12>>>0]!=0},this.set_rethrown=function(n){n=n?1:0,Oe[this.ptr+13>>>0]=n},this.get_rethrown=function(){return Oe[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=F[this.ptr>>>2];F[this.ptr>>>2]=n+1},this.release_ref=function(){var n=F[this.ptr>>>2];return F[this.ptr>>>2]=n-1,n===1},this.set_adjusted_ptr=function(n){he[this.ptr+16>>>2]=n},this.get_adjusted_ptr=function(){return he[this.ptr+16>>>2]},this.get_exception_ptr=function(){var n=Ee(this.get_type());if(n)return he[this.excPtr>>>2];var a=this.get_adjusted_ptr();return a!==0?a:this.excPtr}}function ki(i){return xe(new ct(i).ptr)}var kt=[];function z(i){var n=kt[i];return n||(i>=kt.length&&(kt.length=i+1),kt[i]=n=Te.get(i)),n}function Si(i){if(i.release_ref()&&!i.get_rethrown()){var n=i.get_destructor();n&&z(n)(i.excPtr),ki(i.excPtr)}}function at(){b(0);var i=ei.pop();Si(i),it=0}function Wi(i){throw it||(it=i),i}function dn(){var i=it;if(!i)return de(0),0;var n=new ct(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return de(0),i;for(var s=0;s<arguments.length;s++){var u=arguments[s];if(u===0||u===a)break;var l=n.ptr+16;if(we(u,a,l))return de(u),i}return de(a),i}function pn(){var i=it;if(!i)return de(0),0;var n=new ct(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return de(0),i;for(var s=0;s<arguments.length;s++){var u=arguments[s];if(u===0||u===a)break;var l=n.ptr+16;if(we(u,a,l))return de(u),i}return de(a),i}function hn(){var i=it;if(!i)return de(0),0;var n=new ct(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return de(0),i;for(var s=0;s<arguments.length;s++){var u=arguments[s];if(u===0||u===a)break;var l=n.ptr+16;if(we(u,a,l))return de(u),i}return de(a),i}function yn(){var i=it;if(!i)return de(0),0;var n=new ct(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return de(0),i;for(var s=0;s<arguments.length;s++){var u=arguments[s];if(u===0||u===a)break;var l=n.ptr+16;if(we(u,a,l))return de(u),i}return de(a),i}function mn(){var i=it;if(!i)return de(0),0;var n=new ct(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return de(0),i;for(var s=0;s<arguments.length;s++){var u=arguments[s];if(u===0||u===a)break;var l=n.ptr+16;if(we(u,a,l))return de(u),i}return de(a),i}function vn(){var i=it;if(!i)return de(0),0;var n=new ct(i);n.set_adjusted_ptr(i);var a=n.get_type();if(!a)return de(0),i;for(var s=0;s<arguments.length;s++){var u=arguments[s];if(u===0||u===a)break;var l=n.ptr+16;if(we(u,a,l))return de(u),i}return de(a),i}function gn(){var i=ei.pop();i||qe("no exception to throw");var n=i.excPtr;throw i.get_rethrown()||(ei.push(i),i.set_rethrown(!0),i.set_caught(!1),Ht++),it=n,n}function $i(i,n,a){var s=new ct(i);throw s.init(n,a),it=i,Ht++,i}function Ei(){return Ht}var St={varargs:void 0,get:function(){St.varargs+=4;var i=F[St.varargs-4>>>2];return i},getStr:function(i){var n=R(i);return n}};function bn(i,n,a,s,u){for(var l=0,c=n?F[n>>>2]:0,_=n?F[n+4>>>2]:0,f=a?F[a>>>2]:0,p=a?F[a+4>>>2]:0,h=s?F[s>>>2]:0,C=s?F[s+4>>>2]:0,S=0,B=0,H=0,ue=0,Ce=0,Fe=0,O=(n?F[n>>>2]:0)|(a?F[a>>>2]:0)|(s?F[s>>>2]:0),X=(n?F[n+4>>>2]:0)|(a?F[a+4>>>2]:0)|(s?F[s+4>>>2]:0),Me=function(lg,cg,_g,b_){return lg<32?cg&b_:_g&b_},Pe=0;Pe<i;Pe++){var nt=1<<Pe%32;if(!!Me(Pe,O,X,nt)){var Li=St.getStreamFromFD(Pe),pr=St.DEFAULT_POLLMASK;Li.stream_ops.poll&&(pr=Li.stream_ops.poll(Li)),pr&1&&Me(Pe,c,_,nt)&&(Pe<32?S=S|nt:B=B|nt,l++),pr&4&&Me(Pe,f,p,nt)&&(Pe<32?H=H|nt:ue=ue|nt,l++),pr&2&&Me(Pe,h,C,nt)&&(Pe<32?Ce=Ce|nt:Fe=Fe|nt,l++)}}return n&&(F[n>>>2]=S,F[n+4>>>2]=B),a&&(F[a>>>2]=H,F[a+4>>>2]=ue),s&&(F[s>>>2]=Ce,F[s+4>>>2]=Fe),l}function jn(){ne("missing function: $SOCKFS"),qe(-1)}function Ki(){ne("missing function: $FS"),qe(-1)}function Wt(i){var n=jn.getSocket(i);if(!n)throw new Ki.ErrnoError(8);return n}function Ri(i){return(i&255)+"."+(i>>8&255)+"."+(i>>16&255)+"."+(i>>24&255)}function Gi(i){var n="",a=0,s=0,u=0,l=0,c=0,_=0,f=[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,h="";for(_=0;_<5;_++)if(f[_]!==0){p=!1;break}if(p){if(h=Ri(f[6]|f[7]<<16),f[5]===-1)return n="::ffff:",n+=h,n;if(f[5]===0)return n="::",h==="0.0.0.0"&&(h=""),h==="0.0.0.1"&&(h="1"),n+=h,n}for(a=0;a<8;a++)f[a]===0&&(a-u>1&&(c=0),u=a,c++),c>s&&(s=c,l=a-s+1);for(a=0;a<8;a++){if(s>1&&f[a]===0&&a>=l&&a<l+s){a===l&&(n+=":",l===0&&(n+=":"));continue}n+=Number(ke(f[a]&65535)).toString(16),n+=a<7?":":""}return n}function Yi(i,n){var a=Je[i>>>1],s=ke(Bt[i+2>>>1]),u;switch(a){case 2:if(n!==16)return{errno:28};u=F[i+4>>>2],u=Ri(u);break;case 10:if(n!==28)return{errno:28};u=[F[i+8>>>2],F[i+12>>>2],F[i+16>>>2],F[i+20>>>2]],u=Gi(u);break;default:return{errno:5}}return{family:a,addr:u,port:s}}function ti(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 ii(i){return parseInt(i)}function Ai(i){var n,a,s,u,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]=ii(n[n.length-4])+ii(n[n.length-3])*256,n[n.length-3]=ii(n[n.length-2])+ii(n[n.length-1])*256,n=n.slice(0,n.length-2)):n=i.split(":"),s=0,u=0,a=0;a<n.length;a++)if(typeof n[a]=="string")if(n[a]==="Z"){for(u=0;u<8-n.length+1;u++)c[a+u]=0;s=u-1}else c[a+s]=Ve(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 st={address_map:{id:1,addrs:{},names:{}},lookup_name:function(i){var n=ti(i);if(n!==null||(n=Ai(i),n!==null))return i;var a;if(st.address_map.addrs[i])a=st.address_map.addrs[i];else{var s=st.address_map.id++;ce(s<65535,"exceeded max address mappings of 65535"),a="172.29."+(s&255)+"."+(s&65280),st.address_map.names[a]=i,st.address_map.addrs[i]=a}return a},lookup_addr:function(i){return st.address_map.names[i]?st.address_map.names[i]:null}};function Vi(i,n,a){if(a&&i===0)return null;var s=Yi(i,n);if(s.errno)throw new Ki.ErrnoError(s.errno);return s.addr=st.lookup_addr(s.addr)||s.addr,s}function wn(i,n,a){var s=Wt(i),u=Vi(n,a);return s.sock_ops.bind(s,u.addr,u.port),0}function Cn(i,n,a){var s=Wt(i),u=Vi(n,a);return s.sock_ops.connect(s,u.addr,u.port),0}function Qi(i,n,a,s){}function kn(i,n,a){return St.varargs=a,0}function Sn(i,n){}function En(i,n,a){}function Rn(i,n,a){}function zi(i,n){return Re.fill(0,i,i+n),i}function Ti(i,n,a,s,u){switch(n){case 2:a=ti(a),zi(i,16),u&&(F[u>>>2]=16),Je[i>>>1]=n,F[i+4>>>2]=a,Je[i+2>>>1]=Ve(s);break;case 10:a=Ai(a),zi(i,28),u&&(F[u>>>2]=28),F[i>>>2]=n,F[i+8>>>2]=a[0],F[i+12>>>2]=a[1],F[i+16>>>2]=a[2],F[i+20>>>2]=a[3],Je[i+2>>>1]=Ve(s);break;default:return 5}return 0}function An(i,n,a){var s=Wt(i);if(!s.daddr)return-53;var u=Ti(n,s.family,st.lookup_name(s.daddr),s.dport,a);return 0}function Tn(i,n,a,s,u){var l=Wt(i);return n===1&&a===4?(F[s>>>2]=l.error,F[u>>>2]=4,l.error=null,0):-50}function Dn(i,n,a){return St.varargs=a,0}function Pn(i,n){}function In(i,n,a){}function Mn(i,n,a,s){}function Fn(i,n,a,s){St.varargs=s}function On(i,n,a,s,u,l){var c=Wt(i),_=c.sock_ops.recvmsg(c,a);if(!_)return 0;if(u)var f=Ti(u,c.family,st.lookup_name(_.addr),_.port,l);return Re.set(_.buffer,n>>>0),_.buffer.byteLength}function xn(i,n,a,s){}function Ln(i){}function Bn(i,n,a,s,u,l){}function Nn(i,n,a){}function Un(i,n){}function Hn(i,n,a){}function qn(i){}var Xi="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function Ji(i,n){qe(Xi)}function Wn(i,n){qe(Xi)}var Di=!0;function $n(){return Di}function Kn(){qe("")}function Gn(i,n){return globalThis.DUCKDB_RUNTIME.createDirectory(e,i,n)}function Pi(i,n){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,i,n)}function Yn(i,n){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,i,n)}function $t(i,n){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,i,n)}function Vn(i){return globalThis.DUCKDB_RUNTIME.closeFile(e,i)}function Qn(i,n){return globalThis.DUCKDB_RUNTIME.checkFile(e,i,n)}function zn(i){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,i)}function Xn(i,n,a,s){return globalThis.DUCKDB_RUNTIME.moveFile(e,i,n,a,s)}function Jn(i,n){return globalThis.DUCKDB_RUNTIME.openFile(e,i,n)}function Zn(i,n,a,s){return globalThis.DUCKDB_RUNTIME.readFile(e,i,n,a,s)}function ea(i,n){return globalThis.DUCKDB_RUNTIME.truncateFile(e,i,n)}function ta(i,n,a,s){return globalThis.DUCKDB_RUNTIME.writeFile(e,i,n,a,s)}function ia(i){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(i)}function ra(i,n){return globalThis.DUCKDB_RUNTIME.glob(e,i,n)}function na(i){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,i)}function aa(i,n,a,s,u,l){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,i,n,a,s,u,l)}function sa(){return Date.now()}function Zi(){return 4294901760}function ri(){return Zi()}var Ii;N?Ii=()=>{var i=process.hrtime();return i[0]*1e3+i[1]/1e6}:Ii=()=>performance.now();function ni(i,n,a){Re.copyWithin(i>>>0,n>>>0,n+a>>>0)}function ua(i){try{return G.grow(i-Xe.byteLength+65535>>>16),Nt(G.buffer),1}catch{}}function er(i){var n=Re.length;i=i>>>0;var a=Zi();if(i>a)return!1;let s=(f,p)=>f+(p-f%p)%p;for(var u=1;u<=4;u*=2){var l=n*(1+.2/u);l=Math.min(l,i+100663296);var c=Math.min(a,s(Math.max(i,l),65536)),_=ua(c);if(_)return!0}return!1}var ai={};function oa(){return E||"./this.program"}function Kt(){if(!Kt.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,_:oa()};for(var a in ai)ai[a]===void 0?delete n[a]:n[a]=ai[a];var s=[];for(var a in n)s.push(a+"="+n[a]);Kt.strings=s}return Kt.strings}function tr(i,n,a){for(var s=0;s<i.length;++s)Oe[n++>>>0]=i.charCodeAt(s);a||(Oe[n>>>0]=0)}function la(i,n){var a=0;return Kt().forEach(function(s,u){var l=n+a;he[i+u*4>>>2]=l,tr(s,l),a+=s.length+1}),0}function ca(i,n){var a=Kt();he[i>>>2]=a.length;var s=0;return a.forEach(function(u){s+=u.length+1}),he[n>>>2]=s,0}function _a(i){return 52}function fa(i,n,a,s,u,l){return 52}function da(i,n,a,s,u,l){return 52}function pa(i,n,a,s){return 52}function ha(i,n,a,s,u){return 70}function ya(i){return 52}var Bu=[null,[],[]];function ma(i,n){var a=Bu[i];n===0||n===10?((i===1?se:ne)(Ae(a,0)),a.length=0):a.push(n)}function va(i,n,a,s){for(var u=0,l=0;l<a;l++){var c=he[n>>>2],_=he[n+4>>>2];n+=8;for(var f=0;f<_;f++)ma(i,Re[c+f>>>0]);u+=_}return he[s>>>2]=u,0}function ga(i,n,a,s){var u=0,l=0,c=0,_=0,f=0,p=0,h;function C(S,B,H,ue,Ce,Fe){var O,X,Me,Pe;return X=S===10?28:16,Ce=S===10?Gi(Ce):Ri(Ce),O=rt(X),Pe=Ti(O,S,Ce,Fe),ce(!Pe),Me=rt(32),F[Me+4>>>2]=S,F[Me+8>>>2]=B,F[Me+12>>>2]=H,F[Me+24>>>2]=ue,he[Me+20>>>2]=O,S===10?F[Me+16>>>2]=28:F[Me+16>>>2]=16,F[Me+28>>>2]=0,Me}if(a&&(c=F[a>>>2],_=F[a+4>>>2],f=F[a+8>>>2],p=F[a+12>>>2]),f&&!p&&(p=f===2?17:6),!f&&p&&(f=p===17?2:1),p===0&&(p=6),f===0&&(f=1),!i&&!n)return-2;if(c&-1088||a!==0&&F[a>>>2]&2&&!i)return-1;if(c&32)return-2;if(f!==0&&f!==1&&f!==2)return-7;if(_!==0&&_!==2&&_!==10)return-6;if(n&&(n=R(n),l=parseInt(n,10),isNaN(l)))return c&1024?-2:-8;if(!i)return _===0&&(_=2),(c&1)===0&&(_===2?u=je(2130706433):u=[0,0,0,1]),h=C(_,f,p,null,u,l),he[s>>>2]=h,0;if(i=R(i),u=ti(i),u!==null)if(_===0||_===2)_=2;else if(_===10&&c&8)u=[0,0,je(65535),u],_=10;else return-2;else if(u=Ai(i),u!==null)if(_===0||_===10)_=10;else return-2;return u!=null?(h=C(_,f,p,i,u,l),he[s>>>2]=h,0):c&4?-2:(i=st.lookup_name(i),u=ti(i),_===0?_=2:_===10&&(u=[0,0,je(65535),u]),h=C(_,f,p,null,u,l),he[s>>>2]=h,0)}function ba(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var i=new Uint8Array(1);return()=>(crypto.getRandomValues(i),i[0])}else if(N)try{var n=require("crypto");return()=>n.randomBytes(1)[0]}catch{}return()=>qe("randomDevice")}function si(i,n){si.randomDevice||(si.randomDevice=ba());for(var a=0;a<n;a++)Oe[i+a>>>0]=si.randomDevice();return 0}function ja(i,n,a,s,u,l,c){var _=Yi(i,n);if(_.errno)return-6;var f=_.port,p=_.addr,h=!1;if(a&&s){var C;if(c&1||!(C=st.lookup_addr(p))){if(c&8)return-2}else p=C;var S=Ie(p,a,s);S+1>=s&&(h=!0)}if(u&&l){f=""+f;var S=Ie(f,u,l);S+1>=l&&(h=!0)}return h?-12:0}function wa(i){return i}function ui(i){return i%4===0&&(i%100!==0||i%400===0)}function Ca(i,n){for(var a=0,s=0;s<=n;a+=i[s++]);return a}var ir=[31,29,31,30,31,30,31,31,30,31,30,31],rr=[31,28,31,30,31,30,31,31,30,31,30,31];function ka(i,n){for(var a=new Date(i.getTime());n>0;){var s=ui(a.getFullYear()),u=a.getMonth(),l=(s?ir:rr)[u];if(n>l-a.getDate())n-=l-a.getDate()+1,a.setDate(1),u<11?a.setMonth(u+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else return a.setDate(a.getDate()+n),a}return a}function Sa(i,n,a){var s=a>0?a:ge(i)+1,u=new Array(s),l=I(i,u,0,u.length);return n&&(u.length=l),u}function nr(i,n){Oe.set(i,n>>>0)}function Ea(i,n,a,s){var u=F[s+40>>>2],l={tm_sec:F[s>>>2],tm_min:F[s+4>>>2],tm_hour:F[s+8>>>2],tm_mday:F[s+12>>>2],tm_mon:F[s+16>>>2],tm_year:F[s+20>>>2],tm_wday:F[s+24>>>2],tm_yday:F[s+28>>>2],tm_isdst:F[s+32>>>2],tm_gmtoff:F[s+36>>>2],tm_zone:u?R(u):""},c=R(a),_={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var f in _)c=c.replace(new RegExp(f,"g"),_[f]);var p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"];function C(O,X,Me){for(var Pe=typeof O=="number"?O.toString():O||"";Pe.length<X;)Pe=Me[0]+Pe;return Pe}function S(O,X){return C(O,X,"0")}function B(O,X){function Me(nt){return nt<0?-1:nt>0?1:0}var Pe;return(Pe=Me(O.getFullYear()-X.getFullYear()))===0&&(Pe=Me(O.getMonth()-X.getMonth()))===0&&(Pe=Me(O.getDate()-X.getDate())),Pe}function H(O){switch(O.getDay()){case 0:return new Date(O.getFullYear()-1,11,29);case 1:return O;case 2:return new Date(O.getFullYear(),0,3);case 3:return new Date(O.getFullYear(),0,2);case 4:return new Date(O.getFullYear(),0,1);case 5:return new Date(O.getFullYear()-1,11,31);case 6:return new Date(O.getFullYear()-1,11,30)}}function ue(O){var X=ka(new Date(O.tm_year+1900,0,1),O.tm_yday),Me=new Date(X.getFullYear(),0,4),Pe=new Date(X.getFullYear()+1,0,4),nt=H(Me),Li=H(Pe);return B(nt,X)<=0?B(Li,X)<=0?X.getFullYear()+1:X.getFullYear():X.getFullYear()-1}var Ce={"%a":function(O){return p[O.tm_wday].substring(0,3)},"%A":function(O){return p[O.tm_wday]},"%b":function(O){return h[O.tm_mon].substring(0,3)},"%B":function(O){return h[O.tm_mon]},"%C":function(O){var X=O.tm_year+1900;return S(X/100|0,2)},"%d":function(O){return S(O.tm_mday,2)},"%e":function(O){return C(O.tm_mday,2," ")},"%g":function(O){return ue(O).toString().substring(2)},"%G":function(O){return ue(O)},"%H":function(O){return S(O.tm_hour,2)},"%I":function(O){var X=O.tm_hour;return X==0?X=12:X>12&&(X-=12),S(X,2)},"%j":function(O){return S(O.tm_mday+Ca(ui(O.tm_year+1900)?ir:rr,O.tm_mon-1),3)},"%m":function(O){return S(O.tm_mon+1,2)},"%M":function(O){return S(O.tm_min,2)},"%n":function(){return`
|
|
4
|
+
`},"%p":function(O){return O.tm_hour>=0&&O.tm_hour<12?"AM":"PM"},"%S":function(O){return S(O.tm_sec,2)},"%t":function(){return" "},"%u":function(O){return O.tm_wday||7},"%U":function(O){var X=O.tm_yday+7-O.tm_wday;return S(Math.floor(X/7),2)},"%V":function(O){var X=Math.floor((O.tm_yday+7-(O.tm_wday+6)%7)/7);if((O.tm_wday+371-O.tm_yday-2)%7<=2&&X++,X){if(X==53){var Pe=(O.tm_wday+371-O.tm_yday)%7;Pe!=4&&(Pe!=3||!ui(O.tm_year))&&(X=1)}}else{X=52;var Me=(O.tm_wday+7-O.tm_yday-1)%7;(Me==4||Me==5&&ui(O.tm_year%400-1))&&X++}return S(X,2)},"%w":function(O){return O.tm_wday},"%W":function(O){var X=O.tm_yday+7-(O.tm_wday+6)%7;return S(Math.floor(X/7),2)},"%y":function(O){return(O.tm_year+1900).toString().substring(2)},"%Y":function(O){return O.tm_year+1900},"%z":function(O){var X=O.tm_gmtoff,Me=X>=0;return X=Math.abs(X)/60,X=X/60*100+X%60,(Me?"+":"-")+String("0000"+X).slice(-4)},"%Z":function(O){return O.tm_zone},"%%":function(){return"%"}};c=c.replace(/%%/g,"\0\0");for(var f in Ce)c.includes(f)&&(c=c.replace(new RegExp(f,"g"),Ce[f](l)));c=c.replace(/\0\0/g,"%");var Fe=Sa(c,!1);return Fe.length>n?0:(nr(Fe,i),Fe.length-1)}function Ra(i,n,a,s,u){return Ea(i,n,a,s)}function Aa(i){M=i,bt()||(e.onExit&&e.onExit(i),pe=!0),A(i,new jt(i))}function Ta(i,n){M=i,Aa(i)}function Da(i){if(i instanceof jt||i=="unwind")return M;A(1,i)}function Pa(i){var n=e["_"+i];return n}function Ia(i,n,a,s,u){var l={string:H=>{var ue=0;if(H!=null&&H!==0){var Ce=(H.length<<2)+1;ue=ie(Ce),Ie(H,ue,Ce)}return ue},array:H=>{var ue=ie(H.length);return nr(H,ue),ue}};function c(H){return n==="string"?R(H):n==="boolean"?Boolean(H):H}var _=Pa(i),f=[],p=0;if(s)for(var h=0;h<s.length;h++){var C=l[a[h]];C?(p===0&&(p=w()),f[h]=C(s[h])):f[h]=s[h]}var S=_.apply(null,f);function B(H){return p!==0&&y(p),c(H)}return S=B(S),S}var Ma={p:_n,i:Ct,B:qt,G:at,a:dn,m:pn,F:hn,R:yn,V:mn,xa:vn,h:ki,ga:gn,w:$i,I:Ei,d:Wi,Ca:bn,Ga:wn,Fa:Cn,gf:Qi,T:kn,Ta:Sn,Ie:En,Pa:Rn,Aa:An,Ba:Tn,Va:Dn,Qa:Pn,Ua:In,Ra:Mn,oa:Fn,Da:On,ef:xn,ma:Ln,Ea:Bn,ja:Nn,Sa:Un,na:Hn,Ia:qn,Ka:Ji,Ja:Wn,Wa:$n,ba:Kn,Ze:Gn,_e:Pi,Xe:Yn,Ye:$t,va:Vn,Ve:Qn,eb:zn,We:Xn,af:Jn,ea:Zn,$e:ea,wa:ta,bf:ia,Ue:ra,ua:na,cf:aa,Xa:sa,Ya:ri,Re:Ii,Hb:ni,Ad:er,bb:la,mb:ca,Z:_a,He:fa,yb:da,qa:pa,Qe:ha,ff:ya,ha:va,Ha:ga,Oa:si,za:ja,sa:Ch,M:Zp,_:dh,ia:Ip,S:ph,Zb:dv,ta:wh,$:Vp,ra:Pp,_b:fv,v:Bp,ka:Jp,t:ih,aa:ch,la:Xp,u:th,c:kp,fa:yh,P:rh,b:Sp,X:oh,Ub:vv,Pb:Cv,g:Rp,La:hh,Nb:Sv,l:Dp,pa:Kp,n:Ap,Ma:lh,x:Up,y:Op,O:Qp,U:zp,da:xp,z:Hp,A:Lp,H:fh,s:eh,bc:lv,Tb:gv,jc:tv,qe:Qh,Lb:Rv,cc:ov,Ob:kv,$b:_v,_d:dy,re:Vh,Hc:Pm,Sb:bv,db:rg,jd:tm,Me:Th,Yb:pv,Qd:Cy,Yc:pm,fc:av,Le:Dh,Cb:Ov,_a:ug,pe:zh,ac:cv,Xb:hv,vd:Wy,se:Yh,hd:rm,id:im,Mb:Ev,Db:Fv,we:Wh,fe:sy,Zd:py,Rd:wy,Nd:Ey,ke:ty,pb:Yv,De:xh,ge:ay,gd:nm,Qb:wv,Rb:jv,Bb:xv,je:iy,cb:ng,sd:Gy,Ke:Ph,ne:Jh,me:Zh,ve:$h,Vd:vy,kb:Xv,kc:ev,$d:fy,Xd:yy,Wd:my,Md:Ry,Ld:Ay,Ed:Oy,Uc:vm,yc:Um,Gd:My,vc:Wm,Bd:By,zc:Nm,Ge:Mh,Jc:Tm,Ic:Dm,Pe:Eh,Oe:Rh,oe:Xh,Te:kh,xd:Hy,Ec:Fm,dc:uv,Gc:Im,Ib:Dv,Wc:ym,gc:nv,Jb:Tv,rd:Yy,ld:Zy,Pc:Cm,Gb:Pv,Ab:Lv,ic:iv,be:cy,nd:Xy,ed:sm,Qc:wm,Dc:Om,ae:_y,bd:lm,$a:sg,_c:fm,rb:Kv,ad:cm,xe:qh,lc:Zm,Ac:Bm,rc:Ym,mc:Jm,nc:Xm,qc:Vm,o:wp,hf:gh,jf:vh,j:Ep,D:ah,ub:qv,J:nh,vb:Hv,e:Cp,Q:Mp,Y:_h,f:Fp,k:Tp,df:jh,r:Yp,q:$p,ya:mh,C:Np,L:Gp,W:uh,K:qp,N:bh,Na:sh,ca:Wp,Kd:Ty,Wb:yv,tb:Wv,kd:em,tc:Km,wc:qm,xb:Nv,nb:Qv,ze:Uh,Fc:Mm,wd:qy,Vb:mv,Cd:Ly,Dd:xy,sc:Gm,Rc:jm,Ae:Nh,Kb:Av,ye:Hh,zd:Ny,Jd:Dy,Zc:dm,Nc:Sm,Eb:Mv,ab:ag,Fb:Iv,hc:rv,lb:zv,te:Gh,de:oy,fd:am,Lc:Rm,Tc:gm,Hd:Iy,Vc:mm,jb:Jv,Fe:Fh,Je:Ih,Ne:Ah,yd:Uy,Pd:ky,Od:Sy,oc:zm,Oc:km,dd:um,$c:_m,md:Jy,ob:Vv,ee:uy,ib:Zv,Mc:Em,qb:Gv,Se:Sh,Ce:Lh,ec:sv,le:ey,he:ny,ie:ry,pd:Qy,Fd:Fy,Be:Bh,ue:Kh,ud:$y,Yd:hy,Sd:jy,Td:by,cd:om,wb:Uv,td:Ky,Cc:xm,Kc:Am,Id:Py,hb:eg,Sc:bm,sb:$v,Ud:gy,Xc:hm,fb:ig,gb:tg,Bc:Lm,Ee:Oh,qd:Vy,zb:Bv,uc:$m,xc:Hm,pc:Qm,ce:ly,od:zy,E:wa,Za:Ra},Nu=cn(),Fa=e.___wasm_call_ctors=function(){return(Fa=e.___wasm_call_ctors=e.asm.lf).apply(null,arguments)},Oa=e._main=function(){return(Oa=e._main=e.asm.mf).apply(null,arguments)},xa=e._duckdb_web_fs_glob_add_path=function(){return(xa=e._duckdb_web_fs_glob_add_path=e.asm.of).apply(null,arguments)},La=e._duckdb_web_clear_response=function(){return(La=e._duckdb_web_clear_response=e.asm.pf).apply(null,arguments)},Ba=e._duckdb_web_fail_with=function(){return(Ba=e._duckdb_web_fail_with=e.asm.qf).apply(null,arguments)},Na=e._duckdb_web_reset=function(){return(Na=e._duckdb_web_reset=e.asm.rf).apply(null,arguments)},Ua=e._duckdb_web_connect=function(){return(Ua=e._duckdb_web_connect=e.asm.sf).apply(null,arguments)},Ha=e._duckdb_web_disconnect=function(){return(Ha=e._duckdb_web_disconnect=e.asm.tf).apply(null,arguments)},qa=e._duckdb_web_flush_files=function(){return(qa=e._duckdb_web_flush_files=e.asm.uf).apply(null,arguments)},Wa=e._duckdb_web_flush_file=function(){return(Wa=e._duckdb_web_flush_file=e.asm.vf).apply(null,arguments)},$a=e._duckdb_web_open=function(){return($a=e._duckdb_web_open=e.asm.wf).apply(null,arguments)},Ka=e._duckdb_web_get_global_file_info=function(){return(Ka=e._duckdb_web_get_global_file_info=e.asm.xf).apply(null,arguments)},Ga=e._duckdb_web_collect_file_stats=function(){return(Ga=e._duckdb_web_collect_file_stats=e.asm.yf).apply(null,arguments)},Ya=e._duckdb_web_export_file_stats=function(){return(Ya=e._duckdb_web_export_file_stats=e.asm.zf).apply(null,arguments)},Va=e._duckdb_web_fs_drop_file=function(){return(Va=e._duckdb_web_fs_drop_file=e.asm.Af).apply(null,arguments)},Qa=e._duckdb_web_fs_drop_files=function(){return(Qa=e._duckdb_web_fs_drop_files=e.asm.Bf).apply(null,arguments)},za=e._duckdb_web_fs_glob_file_infos=function(){return(za=e._duckdb_web_fs_glob_file_infos=e.asm.Cf).apply(null,arguments)},oi=e._duckdb_web_fs_get_file_info_by_id=function(){return(oi=e._duckdb_web_fs_get_file_info_by_id=e.asm.Df).apply(null,arguments)},li=e._duckdb_web_fs_get_file_info_by_name=function(){return(li=e._duckdb_web_fs_get_file_info_by_name=e.asm.Ef).apply(null,arguments)},Mi=e._duckdb_web_fs_register_file_url=function(){return(Mi=e._duckdb_web_fs_register_file_url=e.asm.Ff).apply(null,arguments)},Fi=e._duckdb_web_fs_register_file_buffer=function(){return(Fi=e._duckdb_web_fs_register_file_buffer=e.asm.Gf).apply(null,arguments)},Xa=e._duckdb_web_copy_file_to_buffer=function(){return(Xa=e._duckdb_web_copy_file_to_buffer=e.asm.Hf).apply(null,arguments)},ar=e._duckdb_web_copy_file_to_path=function(){return(ar=e._duckdb_web_copy_file_to_path=e.asm.If).apply(null,arguments)},sr=e._duckdb_web_get_version=function(){return(sr=e._duckdb_web_get_version=e.asm.Jf).apply(null,arguments)},ur=e._duckdb_web_get_feature_flags=function(){return(ur=e._duckdb_web_get_feature_flags=e.asm.Kf).apply(null,arguments)},Oi=e._duckdb_web_tokenize=function(){return(Oi=e._duckdb_web_tokenize=e.asm.Lf).apply(null,arguments)},ci=e._duckdb_web_udf_scalar_create=function(){return(ci=e._duckdb_web_udf_scalar_create=e.asm.Mf).apply(null,arguments)},Ja=e._duckdb_web_prepared_create=function(){return(Ja=e._duckdb_web_prepared_create=e.asm.Nf).apply(null,arguments)},or=e._duckdb_web_prepared_close=function(){return(or=e._duckdb_web_prepared_close=e.asm.Of).apply(null,arguments)},lr=e._duckdb_web_prepared_run=function(){return(lr=e._duckdb_web_prepared_run=e.asm.Pf).apply(null,arguments)},v=e._duckdb_web_prepared_send=function(){return(v=e._duckdb_web_prepared_send=e.asm.Qf).apply(null,arguments)},j=e._duckdb_web_query_run=function(){return(j=e._duckdb_web_query_run=e.asm.Rf).apply(null,arguments)},k=e._duckdb_web_pending_query_start=function(){return(k=e._duckdb_web_pending_query_start=e.asm.Sf).apply(null,arguments)},T=e._duckdb_web_pending_query_poll=function(){return(T=e._duckdb_web_pending_query_poll=e.asm.Tf).apply(null,arguments)},L=e._duckdb_web_pending_query_cancel=function(){return(L=e._duckdb_web_pending_query_cancel=e.asm.Uf).apply(null,arguments)},Q=e._duckdb_web_query_fetch_results=function(){return(Q=e._duckdb_web_query_fetch_results=e.asm.Vf).apply(null,arguments)},W=e._duckdb_web_get_tablenames=function(){return(W=e._duckdb_web_get_tablenames=e.asm.Wf).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.Xf).apply(null,arguments)},J=e._duckdb_web_insert_csv_from_path=function(){return(J=e._duckdb_web_insert_csv_from_path=e.asm.Yf).apply(null,arguments)},be=e._duckdb_web_insert_json_from_path=function(){return(be=e._duckdb_web_insert_json_from_path=e.asm.Zf).apply(null,arguments)},je=e._htonl=function(){return(je=e._htonl=e.asm._f).apply(null,arguments)},Ve=e._htons=function(){return(Ve=e._htons=e.asm.$f).apply(null,arguments)},ke=e._ntohs=function(){return(ke=e._ntohs=e.asm.ag).apply(null,arguments)},rt=e._malloc=function(){return(rt=e._malloc=e.asm.bg).apply(null,arguments)},xe=e._free=function(){return(xe=e._free=e.asm.cg).apply(null,arguments)},b=e._setThrew=function(){return(b=e._setThrew=e.asm.dg).apply(null,arguments)},de=e.setTempRet0=function(){return(de=e.setTempRet0=e.asm.eg).apply(null,arguments)},w=e.stackSave=function(){return(w=e.stackSave=e.asm.fg).apply(null,arguments)},y=e.stackRestore=function(){return(y=e.stackRestore=e.asm.gg).apply(null,arguments)},ie=e.stackAlloc=function(){return(ie=e.stackAlloc=e.asm.hg).apply(null,arguments)},we=e.___cxa_can_catch=function(){return(we=e.___cxa_can_catch=e.asm.ig).apply(null,arguments)},Ee=e.___cxa_is_pointer_type=function(){return(Ee=e.___cxa_is_pointer_type=e.asm.jg).apply(null,arguments)},Qe=e.dynCall_jiiii=function(){return(Qe=e.dynCall_jiiii=e.asm.kg).apply(null,arguments)},Pt=e.dynCall_iiiiij=function(){return(Pt=e.dynCall_iiiiij=e.asm.lg).apply(null,arguments)},Gt=e.dynCall_iiiiijj=function(){return(Gt=e.dynCall_iiiiijj=e.asm.mg).apply(null,arguments)},cr=e.dynCall_viijii=function(){return(cr=e.dynCall_viijii=e.asm.ng).apply(null,arguments)},_r=e.dynCall_j=function(){return(_r=e.dynCall_j=e.asm.og).apply(null,arguments)},fr=e.dynCall_ji=function(){return(fr=e.dynCall_ji=e.asm.pg).apply(null,arguments)},xi=e.dynCall_iij=function(){return(xi=e.dynCall_iij=e.asm.qg).apply(null,arguments)},Uu=e.dynCall_viij=function(){return(Uu=e.dynCall_viij=e.asm.rg).apply(null,arguments)},Hu=e.dynCall_viijji=function(){return(Hu=e.dynCall_viijji=e.asm.sg).apply(null,arguments)},qu=e.dynCall_viijj=function(){return(qu=e.dynCall_viijj=e.asm.tg).apply(null,arguments)},Wu=e.dynCall_viiijj=function(){return(Wu=e.dynCall_viiijj=e.asm.ug).apply(null,arguments)},$u=e.dynCall_viiji=function(){return($u=e.dynCall_viiji=e.asm.vg).apply(null,arguments)},Ku=e.dynCall_vijjj=function(){return(Ku=e.dynCall_vijjj=e.asm.wg).apply(null,arguments)},Gu=e.dynCall_iiijj=function(){return(Gu=e.dynCall_iiijj=e.asm.xg).apply(null,arguments)},Yu=e.dynCall_viiij=function(){return(Yu=e.dynCall_viiij=e.asm.yg).apply(null,arguments)},Vu=e.dynCall_viijij=function(){return(Vu=e.dynCall_viijij=e.asm.zg).apply(null,arguments)},Qu=e.dynCall_viiiij=function(){return(Qu=e.dynCall_viiiij=e.asm.Ag).apply(null,arguments)},zu=e.dynCall_jj=function(){return(zu=e.dynCall_jj=e.asm.Bg).apply(null,arguments)},Xu=e.dynCall_viji=function(){return(Xu=e.dynCall_viji=e.asm.Cg).apply(null,arguments)},Ju=e.dynCall_iiij=function(){return(Ju=e.dynCall_iiij=e.asm.Dg).apply(null,arguments)},Zu=e.dynCall_vij=function(){return(Zu=e.dynCall_vij=e.asm.Eg).apply(null,arguments)},eo=e.dynCall_iiiij=function(){return(eo=e.dynCall_iiiij=e.asm.Fg).apply(null,arguments)},to=e.dynCall_iiji=function(){return(to=e.dynCall_iiji=e.asm.Gg).apply(null,arguments)},io=e.dynCall_iiiji=function(){return(io=e.dynCall_iiiji=e.asm.Hg).apply(null,arguments)},ro=e.dynCall_iijj=function(){return(ro=e.dynCall_iijj=e.asm.Ig).apply(null,arguments)},no=e.dynCall_iiiiiiijj=function(){return(no=e.dynCall_iiiiiiijj=e.asm.Jg).apply(null,arguments)},ao=e.dynCall_iiiijj=function(){return(ao=e.dynCall_iiiijj=e.asm.Kg).apply(null,arguments)},so=e.dynCall_iiijii=function(){return(so=e.dynCall_iiijii=e.asm.Lg).apply(null,arguments)},uo=e.dynCall_jii=function(){return(uo=e.dynCall_jii=e.asm.Mg).apply(null,arguments)},oo=e.dynCall_jiii=function(){return(oo=e.dynCall_jiii=e.asm.Ng).apply(null,arguments)},lo=e.dynCall_jij=function(){return(lo=e.dynCall_jij=e.asm.Og).apply(null,arguments)},co=e.dynCall_iiiiiji=function(){return(co=e.dynCall_iiiiiji=e.asm.Pg).apply(null,arguments)},_o=e.dynCall_iijji=function(){return(_o=e.dynCall_iijji=e.asm.Qg).apply(null,arguments)},fo=e.dynCall_iijii=function(){return(fo=e.dynCall_iijii=e.asm.Rg).apply(null,arguments)},po=e.dynCall_iijjii=function(){return(po=e.dynCall_iijjii=e.asm.Sg).apply(null,arguments)},ho=e.dynCall_vijj=function(){return(ho=e.dynCall_vijj=e.asm.Tg).apply(null,arguments)},yo=e.dynCall_vijijj=function(){return(yo=e.dynCall_vijijj=e.asm.Ug).apply(null,arguments)},mo=e.dynCall_viiijjj=function(){return(mo=e.dynCall_viiijjj=e.asm.Vg).apply(null,arguments)},vo=e.dynCall_iji=function(){return(vo=e.dynCall_iji=e.asm.Wg).apply(null,arguments)},go=e.dynCall_viijjji=function(){return(go=e.dynCall_viijjji=e.asm.Xg).apply(null,arguments)},bo=e.dynCall_vijiiii=function(){return(bo=e.dynCall_vijiiii=e.asm.Yg).apply(null,arguments)},jo=e.dynCall_viiijii=function(){return(jo=e.dynCall_viiijii=e.asm.Zg).apply(null,arguments)},wo=e.dynCall_viiiiiij=function(){return(wo=e.dynCall_viiiiiij=e.asm._g).apply(null,arguments)},Co=e.dynCall_iijjijj=function(){return(Co=e.dynCall_iijjijj=e.asm.$g).apply(null,arguments)},ko=e.dynCall_viiiijiiiii=function(){return(ko=e.dynCall_viiiijiiiii=e.asm.ah).apply(null,arguments)},So=e.dynCall_viiiijiiii=function(){return(So=e.dynCall_viiiijiiii=e.asm.bh).apply(null,arguments)},Eo=e.dynCall_ijji=function(){return(Eo=e.dynCall_ijji=e.asm.ch).apply(null,arguments)},Ro=e.dynCall_iiijiii=function(){return(Ro=e.dynCall_iiijiii=e.asm.dh).apply(null,arguments)},Ao=e.dynCall_iiiiijii=function(){return(Ao=e.dynCall_iiiiijii=e.asm.eh).apply(null,arguments)},To=e.dynCall_viijiiii=function(){return(To=e.dynCall_viijiiii=e.asm.fh).apply(null,arguments)},Do=e.dynCall_viijiiiii=function(){return(Do=e.dynCall_viijiiiii=e.asm.gh).apply(null,arguments)},Po=e.dynCall_iiijiij=function(){return(Po=e.dynCall_iiijiij=e.asm.hh).apply(null,arguments)},Io=e.dynCall_vijiii=function(){return(Io=e.dynCall_vijiii=e.asm.ih).apply(null,arguments)},Mo=e.dynCall_iijjiii=function(){return(Mo=e.dynCall_iijjiii=e.asm.jh).apply(null,arguments)},Fo=e.dynCall_iijjiiii=function(){return(Fo=e.dynCall_iijjiiii=e.asm.kh).apply(null,arguments)},Oo=e.dynCall_viiiji=function(){return(Oo=e.dynCall_viiiji=e.asm.lh).apply(null,arguments)},xo=e.dynCall_viijiii=function(){return(xo=e.dynCall_viijiii=e.asm.mh).apply(null,arguments)},Lo=e.dynCall_vijiiiii=function(){return(Lo=e.dynCall_vijiiiii=e.asm.nh).apply(null,arguments)},Bo=e.dynCall_jiiiii=function(){return(Bo=e.dynCall_jiiiii=e.asm.oh).apply(null,arguments)},No=e.dynCall_iijiiii=function(){return(No=e.dynCall_iijiiii=e.asm.ph).apply(null,arguments)},Uo=e.dynCall_vjjii=function(){return(Uo=e.dynCall_vjjii=e.asm.qh).apply(null,arguments)},Ho=e.dynCall_viiiijii=function(){return(Ho=e.dynCall_viiiijii=e.asm.rh).apply(null,arguments)},qo=e.dynCall_iiiijiii=function(){return(qo=e.dynCall_iiiijiii=e.asm.sh).apply(null,arguments)},Wo=e.dynCall_vijii=function(){return(Wo=e.dynCall_vijii=e.asm.th).apply(null,arguments)},$o=e.dynCall_vijij=function(){return($o=e.dynCall_vijij=e.asm.uh).apply(null,arguments)},Ko=e.dynCall_iiijjjj=function(){return(Ko=e.dynCall_iiijjjj=e.asm.vh).apply(null,arguments)},Go=e.dynCall_jiij=function(){return(Go=e.dynCall_jiij=e.asm.wh).apply(null,arguments)},Yo=e.dynCall_viijjj=function(){return(Yo=e.dynCall_viijjj=e.asm.xh).apply(null,arguments)},Vo=e.dynCall_jiiij=function(){return(Vo=e.dynCall_jiiij=e.asm.yh).apply(null,arguments)},Qo=e.dynCall_iiiiiijjiijjj=function(){return(Qo=e.dynCall_iiiiiijjiijjj=e.asm.zh).apply(null,arguments)},zo=e.dynCall_viijiiji=function(){return(zo=e.dynCall_viijiiji=e.asm.Ah).apply(null,arguments)},Xo=e.dynCall_iiiijjii=function(){return(Xo=e.dynCall_iiiijjii=e.asm.Bh).apply(null,arguments)},Jo=e.dynCall_iiiijji=function(){return(Jo=e.dynCall_iiiijji=e.asm.Ch).apply(null,arguments)},Zo=e.dynCall_iiijjii=function(){return(Zo=e.dynCall_iiijjii=e.asm.Dh).apply(null,arguments)},el=e.dynCall_vjjijij=function(){return(el=e.dynCall_vjjijij=e.asm.Eh).apply(null,arguments)},tl=e.dynCall_vijjji=function(){return(tl=e.dynCall_vijjji=e.asm.Fh).apply(null,arguments)},il=e.dynCall_viiiiiji=function(){return(il=e.dynCall_viiiiiji=e.asm.Gh).apply(null,arguments)},rl=e.dynCall_jiiiji=function(){return(rl=e.dynCall_jiiiji=e.asm.Hh).apply(null,arguments)},nl=e.dynCall_viiijjii=function(){return(nl=e.dynCall_viiijjii=e.asm.Ih).apply(null,arguments)},al=e.dynCall_jijij=function(){return(al=e.dynCall_jijij=e.asm.Jh).apply(null,arguments)},sl=e.dynCall_viiiijj=function(){return(sl=e.dynCall_viiiijj=e.asm.Kh).apply(null,arguments)},ul=e.dynCall_jijjij=function(){return(ul=e.dynCall_jijjij=e.asm.Lh).apply(null,arguments)},ol=e.dynCall_jiijii=function(){return(ol=e.dynCall_jiijii=e.asm.Mh).apply(null,arguments)},ll=e.dynCall_jijiii=function(){return(ll=e.dynCall_jijiii=e.asm.Nh).apply(null,arguments)},cl=e.dynCall_viijiiij=function(){return(cl=e.dynCall_viijiiij=e.asm.Oh).apply(null,arguments)},_l=e.dynCall_vijiiiji=function(){return(_l=e.dynCall_vijiiiji=e.asm.Ph).apply(null,arguments)},fl=e.dynCall_jiiji=function(){return(fl=e.dynCall_jiiji=e.asm.Qh).apply(null,arguments)},dl=e.dynCall_viiijij=function(){return(dl=e.dynCall_viiijij=e.asm.Rh).apply(null,arguments)},pl=e.dynCall_viijiij=function(){return(pl=e.dynCall_viijiij=e.asm.Sh).apply(null,arguments)},hl=e.dynCall_viiiiijj=function(){return(hl=e.dynCall_viiiiijj=e.asm.Th).apply(null,arguments)},yl=e.dynCall_viiijji=function(){return(yl=e.dynCall_viiijji=e.asm.Uh).apply(null,arguments)},ml=e.dynCall_viijjiij=function(){return(ml=e.dynCall_viijjiij=e.asm.Vh).apply(null,arguments)},vl=e.dynCall_iiijiiji=function(){return(vl=e.dynCall_iiijiiji=e.asm.Wh).apply(null,arguments)},gl=e.dynCall_iiijjji=function(){return(gl=e.dynCall_iiijjji=e.asm.Xh).apply(null,arguments)},bl=e.dynCall_viijjiijjj=function(){return(bl=e.dynCall_viijjiijjj=e.asm.Yh).apply(null,arguments)},jl=e.dynCall_viijjiijj=function(){return(jl=e.dynCall_viijjiijj=e.asm.Zh).apply(null,arguments)},wl=e.dynCall_iiijji=function(){return(wl=e.dynCall_iiijji=e.asm._h).apply(null,arguments)},Cl=e.dynCall_viiijiii=function(){return(Cl=e.dynCall_viiijiii=e.asm.$h).apply(null,arguments)},kl=e.dynCall_iiiiijiii=function(){return(kl=e.dynCall_iiiiijiii=e.asm.ai).apply(null,arguments)},Sl=e.dynCall_vijji=function(){return(Sl=e.dynCall_vijji=e.asm.bi).apply(null,arguments)},El=e.dynCall_jiiiij=function(){return(El=e.dynCall_jiiiij=e.asm.ci).apply(null,arguments)},Rl=e.dynCall_viiijjji=function(){return(Rl=e.dynCall_viiijjji=e.asm.di).apply(null,arguments)},Al=e.dynCall_jiiijii=function(){return(Al=e.dynCall_jiiijii=e.asm.ei).apply(null,arguments)},Tl=e.dynCall_jiijiii=function(){return(Tl=e.dynCall_jiijiii=e.asm.fi).apply(null,arguments)},Dl=e.dynCall_viiijjij=function(){return(Dl=e.dynCall_viiijjij=e.asm.gi).apply(null,arguments)},Pl=e.dynCall_vijijjiij=function(){return(Pl=e.dynCall_vijijjiij=e.asm.hi).apply(null,arguments)},Il=e.dynCall_viiijjiij=function(){return(Il=e.dynCall_viiijjiij=e.asm.ii).apply(null,arguments)},Ml=e.dynCall_viiiijijji=function(){return(Ml=e.dynCall_viiiijijji=e.asm.ji).apply(null,arguments)},Fl=e.dynCall_viijiiiij=function(){return(Fl=e.dynCall_viijiiiij=e.asm.ki).apply(null,arguments)},Ol=e.dynCall_viiijiiiijjj=function(){return(Ol=e.dynCall_viiijiiiijjj=e.asm.li).apply(null,arguments)},xl=e.dynCall_viijijiiiijjj=function(){return(xl=e.dynCall_viijijiiiijjj=e.asm.mi).apply(null,arguments)},Ll=e.dynCall_iijjj=function(){return(Ll=e.dynCall_iijjj=e.asm.ni).apply(null,arguments)},Bl=e.dynCall_vijijiiiijjj=function(){return(Bl=e.dynCall_vijijiiiijjj=e.asm.oi).apply(null,arguments)},Nl=e.dynCall_jd=function(){return(Nl=e.dynCall_jd=e.asm.pi).apply(null,arguments)},Ul=e.dynCall_jf=function(){return(Ul=e.dynCall_jf=e.asm.qi).apply(null,arguments)},Hl=e.dynCall_iiiiiij=function(){return(Hl=e.dynCall_iiiiiij=e.asm.ri).apply(null,arguments)},ql=e.dynCall_iiiiiiiij=function(){return(ql=e.dynCall_iiiiiiiij=e.asm.si).apply(null,arguments)},Wl=e.dynCall_iiiiiiji=function(){return(Wl=e.dynCall_iiiiiiji=e.asm.ti).apply(null,arguments)},$l=e.dynCall_vijiji=function(){return($l=e.dynCall_vijiji=e.asm.ui).apply(null,arguments)},Kl=e.dynCall_vijjij=function(){return(Kl=e.dynCall_vijjij=e.asm.vi).apply(null,arguments)},Gl=e.dynCall_viiiijiiiiiiii=function(){return(Gl=e.dynCall_viiiijiiiiiiii=e.asm.wi).apply(null,arguments)},Yl=e.dynCall_ij=function(){return(Yl=e.dynCall_ij=e.asm.xi).apply(null,arguments)},Vl=e.dynCall_jjj=function(){return(Vl=e.dynCall_jjj=e.asm.yi).apply(null,arguments)},Ql=e.dynCall_jjiji=function(){return(Ql=e.dynCall_jjiji=e.asm.zi).apply(null,arguments)},zl=e.dynCall_vjii=function(){return(zl=e.dynCall_vjii=e.asm.Ai).apply(null,arguments)},Xl=e.dynCall_jjjjjjd=function(){return(Xl=e.dynCall_jjjjjjd=e.asm.Bi).apply(null,arguments)},Jl=e.dynCall_ijii=function(){return(Jl=e.dynCall_ijii=e.asm.Ci).apply(null,arguments)},Zl=e.dynCall_vjiiii=function(){return(Zl=e.dynCall_vjiiii=e.asm.Di).apply(null,arguments)},ec=e.dynCall_viiiiijiiii=function(){return(ec=e.dynCall_viiiiijiiii=e.asm.Ei).apply(null,arguments)},tc=e.dynCall_viiiiijiii=function(){return(tc=e.dynCall_viiiiijiii=e.asm.Fi).apply(null,arguments)},ic=e.dynCall_vjiiiji=function(){return(ic=e.dynCall_vjiiiji=e.asm.Gi).apply(null,arguments)},rc=e.dynCall_viijiiiiii=function(){return(rc=e.dynCall_viijiiiiii=e.asm.Hi).apply(null,arguments)},nc=e.dynCall_jjjji=function(){return(nc=e.dynCall_jjjji=e.asm.Ii).apply(null,arguments)},ac=e.dynCall_jjjii=function(){return(ac=e.dynCall_jjjii=e.asm.Ji).apply(null,arguments)},sc=e.dynCall_jji=function(){return(sc=e.dynCall_jji=e.asm.Ki).apply(null,arguments)},uc=e.dynCall_viiiiji=function(){return(uc=e.dynCall_viiiiji=e.asm.Li).apply(null,arguments)},oc=e.dynCall_iijiji=function(){return(oc=e.dynCall_iijiji=e.asm.Mi).apply(null,arguments)},lc=e.dynCall_viijjii=function(){return(lc=e.dynCall_viijjii=e.asm.Ni).apply(null,arguments)},cc=e.dynCall_iiiiiiiiiiji=function(){return(cc=e.dynCall_iiiiiiiiiiji=e.asm.Oi).apply(null,arguments)},_c=e.dynCall_jiiijjj=function(){return(_c=e.dynCall_jiiijjj=e.asm.Pi).apply(null,arguments)},fc=e.dynCall_viiijijj=function(){return(fc=e.dynCall_viiijijj=e.asm.Qi).apply(null,arguments)},dc=e.dynCall_jiiiiji=function(){return(dc=e.dynCall_jiiiiji=e.asm.Ri).apply(null,arguments)},pc=e.dynCall_iiiiijij=function(){return(pc=e.dynCall_iiiiijij=e.asm.Si).apply(null,arguments)},hc=e.dynCall_jiiiiiii=function(){return(hc=e.dynCall_jiiiiiii=e.asm.Ti).apply(null,arguments)},yc=e.dynCall_fiijii=function(){return(yc=e.dynCall_fiijii=e.asm.Ui).apply(null,arguments)},mc=e.dynCall_diijii=function(){return(mc=e.dynCall_diijii=e.asm.Vi).apply(null,arguments)},vc=e.dynCall_iiiiiiijii=function(){return(vc=e.dynCall_iiiiiiijii=e.asm.Wi).apply(null,arguments)},gc=e.dynCall_iiiiji=function(){return(gc=e.dynCall_iiiiji=e.asm.Xi).apply(null,arguments)},bc=e.dynCall_iiiijii=function(){return(bc=e.dynCall_iiiijii=e.asm.Yi).apply(null,arguments)},jc=e.dynCall_viiiiiiji=function(){return(jc=e.dynCall_viiiiiiji=e.asm.Zi).apply(null,arguments)},wc=e.dynCall_viiiijiii=function(){return(wc=e.dynCall_viiiijiii=e.asm._i).apply(null,arguments)},Cc=e.dynCall_iiidj=function(){return(Cc=e.dynCall_iiidj=e.asm.$i).apply(null,arguments)},kc=e.dynCall_iiiiiiij=function(){return(kc=e.dynCall_iiiiiiij=e.asm.aj).apply(null,arguments)},Sc=e.dynCall_iiiiiiiiiiiij=function(){return(Sc=e.dynCall_iiiiiiiiiiiij=e.asm.bj).apply(null,arguments)},Ec=e.dynCall_iiiiiiiiiij=function(){return(Ec=e.dynCall_iiiiiiiiiij=e.asm.cj).apply(null,arguments)},Rc=e.dynCall_iiiiiijii=function(){return(Rc=e.dynCall_iiiiiijii=e.asm.dj).apply(null,arguments)},Ac=e.dynCall_iiijjiiji=function(){return(Ac=e.dynCall_iiijjiiji=e.asm.ej).apply(null,arguments)},Tc=e.dynCall_iiijjiij=function(){return(Tc=e.dynCall_iiijjiij=e.asm.fj).apply(null,arguments)},Dc=e.dynCall_iiidjiij=function(){return(Dc=e.dynCall_iiidjiij=e.asm.gj).apply(null,arguments)},Pc=e.dynCall_iiiiiiiji=function(){return(Pc=e.dynCall_iiiiiiiji=e.asm.hj).apply(null,arguments)},Ic=e.dynCall_iiiidjj=function(){return(Ic=e.dynCall_iiiidjj=e.asm.ij).apply(null,arguments)},Mc=e.dynCall_iiiijjj=function(){return(Mc=e.dynCall_iiiijjj=e.asm.jj).apply(null,arguments)},Fc=e.dynCall_iiiiiiiiji=function(){return(Fc=e.dynCall_iiiiiiiiji=e.asm.kj).apply(null,arguments)},Oc=e.dynCall_jiiiiiijii=function(){return(Oc=e.dynCall_jiiiiiijii=e.asm.lj).apply(null,arguments)},xc=e.dynCall_viiiijji=function(){return(xc=e.dynCall_viiiijji=e.asm.mj).apply(null,arguments)},Lc=e.dynCall_jiiiiii=function(){return(Lc=e.dynCall_jiiiiii=e.asm.nj).apply(null,arguments)},Bc=e.dynCall_jiijjjii=function(){return(Bc=e.dynCall_jiijjjii=e.asm.oj).apply(null,arguments)},Nc=e.dynCall_jiiiijii=function(){return(Nc=e.dynCall_jiiiijii=e.asm.pj).apply(null,arguments)},Uc=e.dynCall_jiiiiijiiii=function(){return(Uc=e.dynCall_jiiiiijiiii=e.asm.qj).apply(null,arguments)},Hc=e.dynCall_jiiijiii=function(){return(Hc=e.dynCall_jiiijiii=e.asm.rj).apply(null,arguments)},qc=e.dynCall_viiijijiji=function(){return(qc=e.dynCall_viiijijiji=e.asm.sj).apply(null,arguments)},Wc=e.dynCall_iiiiijjj=function(){return(Wc=e.dynCall_iiiiijjj=e.asm.tj).apply(null,arguments)},$c=e.dynCall_iiiijjjj=function(){return($c=e.dynCall_iiiijjjj=e.asm.uj).apply(null,arguments)},Kc=e.dynCall_iiijjj=function(){return(Kc=e.dynCall_iiijjj=e.asm.vj).apply(null,arguments)},Gc=e.dynCall_jiiijj=function(){return(Gc=e.dynCall_jiiijj=e.asm.wj).apply(null,arguments)},Yc=e.dynCall_vj=function(){return(Yc=e.dynCall_vj=e.asm.xj).apply(null,arguments)},Vc=e.dynCall_ijjiii=function(){return(Vc=e.dynCall_ijjiii=e.asm.yj).apply(null,arguments)},Qc=e.dynCall_iijiii=function(){return(Qc=e.dynCall_iijiii=e.asm.zj).apply(null,arguments)},zc=e.dynCall_vijiijj=function(){return(zc=e.dynCall_vijiijj=e.asm.Aj).apply(null,arguments)},Xc=e.dynCall_vifiijj=function(){return(Xc=e.dynCall_vifiijj=e.asm.Bj).apply(null,arguments)},Jc=e.dynCall_vidiijj=function(){return(Jc=e.dynCall_vidiijj=e.asm.Cj).apply(null,arguments)},Zc=e.dynCall_viiiiij=function(){return(Zc=e.dynCall_viiiiij=e.asm.Dj).apply(null,arguments)},e_=e.dynCall_vijijjji=function(){return(e_=e.dynCall_vijijjji=e.asm.Ej).apply(null,arguments)},t_=e.dynCall_jijj=function(){return(t_=e.dynCall_jijj=e.asm.Fj).apply(null,arguments)},i_=e.dynCall_viijiijj=function(){return(i_=e.dynCall_viijiijj=e.asm.Gj).apply(null,arguments)},r_=e.dynCall_viijijj=function(){return(r_=e.dynCall_viijijj=e.asm.Hj).apply(null,arguments)},n_=e.dynCall_viiiiijjji=function(){return(n_=e.dynCall_viiiiijjji=e.asm.Ij).apply(null,arguments)},a_=e.dynCall_iiijiijj=function(){return(a_=e.dynCall_iiijiijj=e.asm.Jj).apply(null,arguments)},s_=e.dynCall_viiijijjj=function(){return(s_=e.dynCall_viiijijjj=e.asm.Kj).apply(null,arguments)},u_=e.dynCall_iijiijj=function(){return(u_=e.dynCall_iijiijj=e.asm.Lj).apply(null,arguments)},o_=e.dynCall_viiijjjji=function(){return(o_=e.dynCall_viiijjjji=e.asm.Mj).apply(null,arguments)},l_=e.dynCall_vijjiii=function(){return(l_=e.dynCall_vijjiii=e.asm.Nj).apply(null,arguments)},c_=e.dynCall_vijijjiiiii=function(){return(c_=e.dynCall_vijijjiiiii=e.asm.Oj).apply(null,arguments)},__=e.dynCall_vijjiiiii=function(){return(__=e.dynCall_vijjiiiii=e.asm.Pj).apply(null,arguments)},f_=e.dynCall_iiiiiijji=function(){return(f_=e.dynCall_iiiiiijji=e.asm.Qj).apply(null,arguments)},d_=e.dynCall_jijiiii=function(){return(d_=e.dynCall_jijiiii=e.asm.Rj).apply(null,arguments)},p_=e.dynCall_viiijiji=function(){return(p_=e.dynCall_viiijiji=e.asm.Sj).apply(null,arguments)},h_=e.dynCall_iiijjjii=function(){return(h_=e.dynCall_iiijjjii=e.asm.Tj).apply(null,arguments)},y_=e.dynCall_iiiiijjji=function(){return(y_=e.dynCall_iiiiijjji=e.asm.Uj).apply(null,arguments)},m_=e.dynCall_viijiji=function(){return(m_=e.dynCall_viijiji=e.asm.Vj).apply(null,arguments)};function wp(i){var n=w();try{z(i)()}catch(a){if(y(n),a!==a+0)throw a;b(1,0)}}function Cp(i,n,a){var s=w();try{z(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function kp(i,n){var a=w();try{return z(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Sp(i,n,a){var s=w();try{return z(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function Ep(i,n){var a=w();try{z(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Rp(i,n,a,s){var u=w();try{return z(i)(n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function Ap(i,n,a,s,u,l){var c=w();try{return z(i)(n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Tp(i,n,a,s,u){var l=w();try{z(i)(n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function Dp(i,n,a,s,u){var l=w();try{return z(i)(n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function Pp(i,n,a,s){var u=w();try{return z(i)(n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function Ip(i,n,a,s){var u=w();try{return z(i)(n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function Mp(i,n,a,s){var u=w();try{z(i)(n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function Fp(i,n,a,s){var u=w();try{z(i)(n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function Op(i,n,a,s,u,l,c,_){var f=w();try{return z(i)(n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function xp(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return z(i)(n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Lp(i,n,a,s,u,l,c,_,f,p,h,C,S){var B=w();try{return z(i)(n,a,s,u,l,c,_,f,p,h,C,S)}catch(H){if(y(B),H!==H+0)throw H;b(1,0)}}function Bp(i){var n=w();try{return z(i)()}catch(a){if(y(n),a!==a+0)throw a;b(1,0)}}function Np(i,n,a,s,u,l,c,_){var f=w();try{z(i)(n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Up(i,n,a,s,u,l,c){var _=w();try{return z(i)(n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Hp(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{return z(i)(n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}function qp(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{z(i)(n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Wp(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue){var Ce=w();try{z(i)(n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue)}catch(Fe){if(y(Ce),Fe!==Fe+0)throw Fe;b(1,0)}}function $p(i,n,a,s,u,l,c){var _=w();try{z(i)(n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Kp(i,n,a,s,u,l){var c=w();try{return z(i)(n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Gp(i,n,a,s,u,l,c,_,f){var p=w();try{z(i)(n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Yp(i,n,a,s,u,l){var c=w();try{z(i)(n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Vp(i,n){var a=w();try{return z(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Qp(i,n,a,s,u,l,c,_,f){var p=w();try{return z(i)(n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function zp(i,n,a,s,u,l,c,_,f,p){var h=w();try{return z(i)(n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Xp(i,n){var a=w();try{return z(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Jp(i,n){var a=w();try{return z(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Zp(i,n){var a=w();try{return z(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function eh(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue,Ce,Fe){var O=w();try{return z(i)(n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue,Ce,Fe)}catch(X){if(y(O),X!==X+0)throw X;b(1,0)}}function th(i,n,a){var s=w();try{return z(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function ih(i,n,a){var s=w();try{return z(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function rh(i,n,a,s,u){var l=w();try{return z(i)(n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function nh(i,n,a){var s=w();try{z(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function ah(i,n,a){var s=w();try{z(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function sh(i,n,a,s,u,l,c,_,f,p,h,C,S,B){var H=w();try{z(i)(n,a,s,u,l,c,_,f,p,h,C,S,B)}catch(ue){if(y(H),ue!==ue+0)throw ue;b(1,0)}}function uh(i,n,a,s,u,l,c,_,f,p){var h=w();try{z(i)(n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function oh(i,n,a,s){var u=w();try{return z(i)(n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function lh(i,n,a,s,u,l,c,_){var f=w();try{return z(i)(n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function ch(i,n,a,s,u){var l=w();try{return z(i)(n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function _h(i,n,a,s,u,l){var c=w();try{z(i)(n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function fh(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue,Ce){var Fe=w();try{return z(i)(n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue,Ce)}catch(O){if(y(Fe),O!==O+0)throw O;b(1,0)}}function dh(i,n,a){var s=w();try{return z(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function ph(i,n,a,s,u,l,c){var _=w();try{return z(i)(n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function hh(i,n,a,s,u){var l=w();try{return z(i)(n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function yh(i,n,a){var s=w();try{return z(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function mh(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{z(i)(n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function vh(i,n,a,s){var u=w();try{z(i)(n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function gh(i,n,a,s){var u=w();try{z(i)(n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function bh(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{z(i)(n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}function jh(i,n,a,s,u,l,c,_,f,p){var h=w();try{z(i)(n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function wh(i){var n=w();try{return z(i)()}catch(a){if(y(n),a!==a+0)throw a;b(1,0)}}function Ch(i){var n=w();try{return z(i)()}catch(a){if(y(n),a!==a+0)throw a;b(1,0)}}function kh(i,n,a,s,u){var l=w();try{return Qe(i,n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function Sh(i,n,a,s,u,l,c){var _=w();try{qu(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Eh(i,n){var a=w();try{return fr(i,n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Rh(i,n,a){var s=w();try{return uo(i,n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function Ah(i,n,a,s,u,l,c){var _=w();try{cr(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Th(i,n,a,s,u,l,c){var _=w();try{return Pt(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Dh(i,n,a,s,u,l,c,_,f){var p=w();try{return Gt(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Ph(i,n,a,s){var u=w();try{return xi(i,n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function Ih(i,n,a,s,u,l){var c=w();try{$u(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Mh(i){var n=w();try{return _r(i)}catch(a){if(y(n),a!==a+0)throw a;b(1,0)}}function Fh(i,n,a,s,u){var l=w();try{Uu(i,n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function Oh(i,n,a,s,u,l,c,_){var f=w();try{Ku(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function xh(i,n,a,s,u,l,c){var _=w();try{return Gu(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Lh(i,n,a,s,u,l,c,_){var f=w();try{Hu(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Bh(i,n,a,s){var u=w();try{Zu(i,n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function Nh(i,n,a,s,u,l,c,_,f){var p=w();try{sl(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Uh(i,n,a,s,u,l,c){var _=w();try{Qu(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Hh(i,n,a,s,u,l){var c=w();try{Yu(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function qh(i,n,a){var s=w();try{return zu(i,n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function Wh(i,n,a,s,u){var l=w();try{return Ju(i,n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function $h(i,n,a,s,u,l,c){var _=w();try{return Qc(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Kh(i,n,a,s,u){var l=w();try{Xu(i,n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function Gh(i,n,a,s,u,l,c,_){var f=w();try{Wu(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Yh(i,n,a,s,u,l,c,_){var f=w();try{return ao(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Vh(i,n,a,s,u,l,c,_){var f=w();try{return Hl(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Qh(i,n,a,s,u,l,c,_,f,p){var h=w();try{return ql(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function zh(i,n,a,s,u,l){var c=w();try{return eo(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Xh(i,n,a,s){var u=w();try{return oo(i,n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function Jh(i,n,a,s,u){var l=w();try{return to(i,n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function Zh(i,n,a,s,u,l){var c=w();try{return fo(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function ey(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{ml(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function ty(i,n,a,s,u,l,c,_,f,p){var h=w();try{return vl(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function iy(i,n,a,s,u,l,c,_,f,p){var h=w();try{return gl(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function ry(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H){var ue=w();try{bl(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H)}catch(Ce){if(y(ue),Ce!==Ce+0)throw Ce;b(1,0)}}function ny(i,n,a,s,u,l,c,_,f,p,h,C,S){var B=w();try{jl(i,n,a,s,u,l,c,_,f,p,h,C,S)}catch(H){if(y(B),H!==H+0)throw H;b(1,0)}}function ay(i,n,a,s,u,l,c,_){var f=w();try{return wl(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function sy(i,n,a,s,u,l){var c=w();try{return io(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function uy(i,n,a,s,u,l,c,_){var f=w();try{Vu(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function oy(i,n,a,s,u,l,c,_,f){var p=w();try{yl(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function ly(i,n,a,s,u,l,c){var _=w();try{Uo(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function cy(i,n,a,s,u){var l=w();try{return Go(i,n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function _y(i,n,a,s){var u=w();try{return lo(i,n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function fy(i,n,a,s,u,l){var c=w();try{return ro(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function dy(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return no(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function py(i,n,a,s,u,l,c){var _=w();try{return so(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function hy(i,n,a,s,u,l,c){var _=w();try{Io(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function yy(i,n,a,s,u,l,c){var _=w();try{return _o(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function my(i,n,a,s,u,l,c,_){var f=w();try{return po(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function vy(i,n,a,s,u,l,c,_){var f=w();try{return No(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function gy(i,n,a,s,u,l){var c=w();try{ho(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function by(i,n,a,s,u,l,c,_,f){var p=w();try{Lo(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function jy(i,n,a,s,u,l,c,_){var f=w();try{bo(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function wy(i,n,a,s,u,l,c,_){var f=w();try{return Ro(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Cy(i,n,a,s,u,l,c,_,f){var p=w();try{return Ao(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function ky(i,n,a,s,u,l,c,_,f){var p=w();try{To(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Sy(i,n,a,s,u,l,c,_,f,p){var h=w();try{Do(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Ey(i,n,a,s,u,l,c,_,f){var p=w();try{return Po(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Ry(i,n,a,s,u,l,c,_,f){var p=w();try{return Mo(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Ay(i,n,a,s,u,l,c,_,f,p){var h=w();try{return Fo(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Ty(i,n,a,s,u,l,c,_,f){var p=w();try{wo(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Dy(i,n,a,s,u,l,c,_){var f=w();try{jo(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Py(i,n,a,s,u,l,c,_,f){var p=w();try{yo(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Iy(i,n,a,s,u,l,c,_,f,p){var h=w();try{mo(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function My(i,n,a,s){var u=w();try{return vo(i,n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function Fy(i,n,a,s,u,l,c,_,f,p){var h=w();try{go(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Oy(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return Co(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function xy(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{ko(i,n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}function Ly(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{So(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function By(i,n,a,s,u,l){var c=w();try{return Eo(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Ny(i,n,a,s,u,l,c){var _=w();try{Oo(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Uy(i,n,a,s,u,l,c,_){var f=w();try{xo(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Hy(i,n,a,s,u,l){var c=w();try{return Bo(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function qy(i,n,a,s,u,l,c,_,f){var p=w();try{Ho(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Wy(i,n,a,s,u,l,c,_,f){var p=w();try{return qo(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function $y(i,n,a,s,u,l){var c=w();try{Wo(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Ky(i,n,a,s,u,l,c){var _=w();try{$o(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Gy(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return Ko(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Yy(i,n,a,s,u,l){var c=w();try{return Vo(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Vy(i,n,a,s,u,l,c,_,f){var p=w();try{tl(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Qy(i,n,a,s,u,l,c,_,f){var p=w();try{Yo(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function zy(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{el(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Xy(i,n,a,s,u,l){var c=w();try{return fl(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Jy(i,n,a,s,u,l,c,_,f,p){var h=w();try{zo(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Zy(i,n,a,s,u,l,c){var _=w();try{return rl(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function em(i,n,a,s,u,l,c,_,f){var p=w();try{il(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function tm(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue,Ce,Fe){var O=w();try{return Qo(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue,Ce,Fe)}catch(X){if(y(O),X!==X+0)throw X;b(1,0)}}function im(i,n,a,s,u,l,c,_,f,p){var h=w();try{return Xo(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function rm(i,n,a,s,u,l,c,_,f){var p=w();try{return Jo(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function nm(i,n,a,s,u,l,c,_,f){var p=w();try{return Zo(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function am(i,n,a,s,u,l,c,_,f,p){var h=w();try{nl(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function sm(i,n,a,s,u,l,c){var _=w();try{return ol(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function um(i,n,a,s,u,l,c,_,f,p){var h=w();try{cl(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function om(i,n,a,s,u,l,c,_,f,p){var h=w();try{_l(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function lm(i,n,a,s,u,l,c){var _=w();try{return ll(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function cm(i,n,a,s,u,l,c,_,f){var p=w();try{return ul(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function _m(i,n,a,s,u,l,c,_,f){var p=w();try{pl(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function fm(i,n,a,s,u,l,c){var _=w();try{return al(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function dm(i,n,a,s,u,l,c,_,f){var p=w();try{Cl(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function pm(i,n,a,s,u,l,c,_,f,p){var h=w();try{return kl(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function hm(i,n,a,s,u,l,c){var _=w();try{Sl(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function ym(i,n,a,s,u,l,c){var _=w();try{return El(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function mm(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{Rl(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function vm(i,n,a,s,u,l,c,_){var f=w();try{return Ll(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function gm(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{Dl(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function bm(i,n,a,s,u,l,c,_,f,p,h,C,S){var B=w();try{Pl(i,n,a,s,u,l,c,_,f,p,h,C,S)}catch(H){if(y(B),H!==H+0)throw H;b(1,0)}}function jm(i,n,a,s,u,l,c,_,f,p,h,C,S){var B=w();try{Ml(i,n,a,s,u,l,c,_,f,p,h,C,S)}catch(H){if(y(B),H!==H+0)throw H;b(1,0)}}function wm(i,n,a,s,u,l,c,_){var f=w();try{return Tl(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Cm(i,n,a,s,u,l,c,_){var f=w();try{return Al(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function km(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{Fl(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Sm(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue){var Ce=w();try{Ol(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue)}catch(Fe){if(y(Ce),Fe!==Fe+0)throw Fe;b(1,0)}}function Em(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue,Ce,Fe){var O=w();try{xl(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue,Ce,Fe)}catch(X){if(y(O),X!==X+0)throw X;b(1,0)}}function Rm(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{Il(i,n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}function Am(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue,Ce){var Fe=w();try{Bl(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H,ue,Ce)}catch(O){if(y(Fe),O!==O+0)throw O;b(1,0)}}function Tm(i,n){var a=w();try{return Nl(i,n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Dm(i,n){var a=w();try{return Ul(i,n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Pm(i,n,a,s,u,l,c,_,f){var p=w();try{return Wl(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Im(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return Oc(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Mm(i,n,a,s,u,l,c,_){var f=w();try{uc(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Fm(i,n,a,s,u,l,c){var _=w();try{return Lc(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Om(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return Bc(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function xm(i,n,a,s,u,l,c,_){var f=w();try{$l(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Lm(i,n,a,s,u,l,c,_,f){var p=w();try{Kl(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Bm(i,n,a,s,u,l,c){var _=w();try{return Ql(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Nm(i,n,a,s,u,l,c,_){var f=w();try{return Vc(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Um(i,n,a){var s=w();try{return Yl(i,n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function Hm(i,n,a,s,u,l,c){var _=w();try{Zl(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function qm(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{ec(i,n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}function Wm(i,n,a,s,u){var l=w();try{return Jl(i,n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function $m(i,n,a,s,u){var l=w();try{zl(i,n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function Km(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{tc(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Gm(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H){var ue=w();try{Gl(i,n,a,s,u,l,c,_,f,p,h,C,S,B,H)}catch(Ce){if(y(ue),Ce!==Ce+0)throw Ce;b(1,0)}}function Ym(i,n,a,s,u){var l=w();try{return Vl(i,n,a,s,u)}catch(c){if(y(l),c!==c+0)throw c;b(1,0)}}function Vm(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{return Xl(i,n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}function Qm(i,n,a,s,u,l,c,_,f){var p=w();try{ic(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function zm(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{rc(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Xm(i,n,a,s,u,l,c,_){var f=w();try{return nc(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Jm(i,n,a,s,u,l,c){var _=w();try{return ac(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Zm(i,n,a,s){var u=w();try{return sc(i,n,a,s)}catch(l){if(y(u),l!==l+0)throw l;b(1,0)}}function ev(i,n,a,s,u,l,c,_){var f=w();try{return oc(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function tv(i,n,a,s,u,l,c,_,f,p,h,C,S){var B=w();try{return cc(i,n,a,s,u,l,c,_,f,p,h,C,S)}catch(H){if(y(B),H!==H+0)throw H;b(1,0)}}function iv(i,n,a,s,u,l,c,_,f,p){var h=w();try{return _c(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function rv(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{fc(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function nv(i,n,a,s,u,l,c,_){var f=w();try{return dc(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function av(i,n,a,s,u,l,c,_,f,p){var h=w();try{return pc(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function sv(i,n,a,s,u,l,c,_,f){var p=w();try{lc(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function uv(i,n,a,s,u,l,c,_){var f=w();try{return hc(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function ov(i,n,a,s,u,l,c,_,f){var p=w();try{return kc(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function lv(i,n,a,s,u,l,c,_,f,p,h,C,S,B){var H=w();try{return Sc(i,n,a,s,u,l,c,_,f,p,h,C,S,B)}catch(ue){if(y(H),ue!==ue+0)throw ue;b(1,0)}}function cv(i,n,a,s,u,l,c){var _=w();try{return gc(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function _v(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return vc(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function fv(i,n,a,s,u,l,c){var _=w();try{return yc(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function dv(i,n,a,s,u,l,c){var _=w();try{return mc(i,n,a,s,u,l,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function pv(i,n,a,s,u,l,c,_){var f=w();try{return co(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function hv(i,n,a,s,u,l,c,_){var f=w();try{return bc(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function yv(i,n,a,s,u,l,c,_,f,p){var h=w();try{jc(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function mv(i,n,a,s,u,l,c,_,f,p){var h=w();try{wc(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function vv(i,n,a,s,u,l){var c=w();try{return Cc(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function gv(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{return Ec(i,n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}function bv(i,n,a,s,u,l,c,_,f,p){var h=w();try{return Rc(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function jv(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{return Ac(i,n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}function wv(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return Tc(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Cv(i,n,a,s,u,l,c,_,f,p){var h=w();try{return Dc(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function kv(i,n,a,s,u,l,c,_,f,p){var h=w();try{return Pc(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Sv(i,n,a,s,u,l,c,_,f){var p=w();try{return Ic(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Ev(i,n,a,s,u,l,c,_,f,p){var h=w();try{return Mc(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Rv(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return Fc(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Av(i,n,a,s,u,l,c,_,f,p){var h=w();try{xc(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Tv(i,n,a,s,u,l,c,_,f){var p=w();try{return Nc(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Dv(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{return Uc(i,n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}function Pv(i,n,a,s,u,l,c,_,f){var p=w();try{return Hc(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Iv(i,n,a,s,u,l,c,_,f,p,h,C,S){var B=w();try{qc(i,n,a,s,u,l,c,_,f,p,h,C,S)}catch(H){if(y(B),H!==H+0)throw H;b(1,0)}}function Mv(i,n,a,s,u,l,c,_,f){var p=w();try{dl(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Fv(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{return $c(i,n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}function Ov(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return Wc(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function xv(i,n,a,s,u,l,c,_,f){var p=w();try{return Kc(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Lv(i,n,a,s,u,l,c,_){var f=w();try{return Gc(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Bv(i,n,a){var s=w();try{Yc(i,n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function Nv(i,n,a,s,u,l,c,_,f,p){var h=w();try{hl(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Uv(i,n,a,s,u,l,c,_,f,p){var h=w();try{zc(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Hv(i,n,a,s,u,l,c,_,f){var p=w();try{Xc(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function qv(i,n,a,s,u,l,c,_,f){var p=w();try{Jc(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Wv(i,n,a,s,u,l,c,_){var f=w();try{Zc(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function $v(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{e_(i,n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}function Kv(i,n,a,s,u,l){var c=w();try{return t_(i,n,a,s,u,l)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Gv(i,n,a,s,u,l,c,_,f,p){var h=w();try{r_(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Yv(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return a_(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Vv(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{i_(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function Qv(i,n,a,s,u,l,c,_,f,p,h,C,S){var B=w();try{n_(i,n,a,s,u,l,c,_,f,p,h,C,S)}catch(H){if(y(B),H!==H+0)throw H;b(1,0)}}function zv(i,n,a,s,u,l,c,_,f,p,h,C,S){var B=w();try{s_(i,n,a,s,u,l,c,_,f,p,h,C,S)}catch(H){if(y(B),H!==H+0)throw H;b(1,0)}}function Xv(i,n,a,s,u,l,c,_,f,p){var h=w();try{return u_(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function Jv(i,n,a,s,u,l,c,_,f,p,h,C,S){var B=w();try{o_(i,n,a,s,u,l,c,_,f,p,h,C,S)}catch(H){if(y(B),H!==H+0)throw H;b(1,0)}}function Zv(i,n,a,s,u,l,c,_,f){var p=w();try{m_(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function eg(i,n,a,s,u,l,c,_,f,p,h,C,S,B){var H=w();try{c_(i,n,a,s,u,l,c,_,f,p,h,C,S,B)}catch(ue){if(y(H),ue!==ue+0)throw ue;b(1,0)}}function tg(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{__(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function ig(i,n,a,s,u,l,c,_,f){var p=w();try{l_(i,n,a,s,u,l,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function rg(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return f_(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function ng(i,n,a,s,u,l,c,_,f,p,h){var C=w();try{return h_(i,n,a,s,u,l,c,_,f,p,h)}catch(S){if(y(C),S!==S+0)throw S;b(1,0)}}function ag(i,n,a,s,u,l,c,_,f,p){var h=w();try{p_(i,n,a,s,u,l,c,_,f,p)}catch(C){if(y(h),C!==C+0)throw C;b(1,0)}}function sg(i,n,a,s,u,l,c,_){var f=w();try{return d_(i,n,a,s,u,l,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function ug(i,n,a,s,u,l,c,_,f,p,h,C){var S=w();try{return y_(i,n,a,s,u,l,c,_,f,p,h,C)}catch(B){if(y(S),B!==B+0)throw B;b(1,0)}}e.ccall=Ia;var dr;dt=function i(){dr||v_(),dr||(dt=i)};function og(i){var n=e._main,a=0,s=0;try{var u=n(a,s);return Ta(u,!0),u}catch(l){return Da(l)}}function v_(i){if(i=i||g,tt>0||(Dt(),tt>0))return;function n(){dr||(dr=!0,e.calledRun=!0,!pe&&(Zr(),en(),o(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),g_&&og(i),tn()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),n()},1)):n()}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var g_=!0;return e.noInitialRun&&(g_=!1),v_(),t.ready}})(),S_=bg;var pt=Bi(require("apache-arrow")),vr=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),o=pt.RecordBatchReader.from(e);return console.assert(o.isSync()),console.assert(o.isFile()),new pt.Table(o)}async send(t){let e=this._bindings.startPendingQuery(this._conn,t);for(;e==null;)e=await new Promise((m,g)=>{try{m(this._bindings.pollPendingQuery(this._conn))}catch(E){g(E)}});let o=new gr(this._bindings,this._conn,e),d=pt.RecordBatchReader.from(o);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 Za(this._bindings,this._conn,e)}createScalarFunction(t,e,o){this._bindings.createScalarFunction(this._conn,t,e,o)}insertArrowTable(t,e){let o=pt.tableToIPC(t,"stream");this.insertArrowFromIPCStream(o,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)}},gr=class{constructor(t,e,o){this.bindings=t;this.conn=e;this.header=o;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}},Za=class{constructor(t,e,o){this.bindings=t,this.connectionId=e,this.statementId=o}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),o=pt.RecordBatchReader.from(e);return console.assert(o.isSync()),console.assert(o.isFile()),new pt.Table(o)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),o=new gr(this.bindings,this.connectionId,e),d=pt.RecordBatchReader.from(o);return console.assert(d.isSync()),console.assert(d.isStream()),d}};var A_=new TextEncoder,E_=new TextDecoder("utf-8");function es(r,t,e){let o=A_.encode(e),d=r._malloc(o.byteLength),m=r.HEAPU8.subarray(d,d+o.byteLength);m.set(o),r.HEAPF64[(t>>3)+0]=1,r.HEAPF64[(t>>3)+1]=d,r.HEAPF64[(t>>3)+2]=m.byteLength}function is(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 ts(r,t,e,o){let d=r.HEAPU8.subarray(t,t+o*is(e));switch(e){case"UINT8":return new Uint8Array(d.buffer,d.byteOffset,o);case"INT8":return new Int8Array(d.buffer,d.byteOffset,o);case"INT32":return new Int32Array(d.buffer,d.byteOffset,o);case"FLOAT":return new Float32Array(d.buffer,d.byteOffset,o);case"DOUBLE":return new Float64Array(d.buffer,d.byteOffset,o);case"VARCHAR":return new Float64Array(d.buffer,d.byteOffset,o);default:return new Array(0)}}function R_(r,t,e){let o=r.HEAPU8.subarray(t,t+e);return new Uint8Array(o.buffer,o.byteOffset,e)}function br(r,t,e){let o=r.HEAPU8.subarray(t,t+e*8);return new Float64Array(o.buffer,o.byteOffset,e)}function T_(r,t,e,o,d,m,g,E){try{let A=r._udfFunctions.get(o);if(!A){es(t,e,"Unknown UDF with id: "+o);return}let x=E_.decode(t.HEAPU8.subarray(d,d+m)),D=JSON.parse(x),N=br(t,g,E/8),P=G=>{var M;let pe=null;switch(G.validityBuffer!==void 0&&(pe=R_(t,N[G.validityBuffer],D.rows)),G.physicalType){case"VARCHAR":{if(G.dataBuffer===null||G.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(G.lengthBuffer===null||G.lengthBuffer===void 0)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let ce=ts(t,N[G.dataBuffer],G.physicalType,D.rows),ae=[],Ae=br(t,N[G.lengthBuffer],D.rows);for(let R=0;R<D.rows;++R){if(pe!=null&&!pe[R]){ae.push(null);continue}let I=t.HEAPU8.subarray(ce[R],ce[R]+Ae[R]),Ie=E_.decode(I);ae.push(Ie)}return R=>ae[R]}case"STRUCT":{let ce={},ae=[];for(let Ae=0;Ae<(((M=G.children)==null?void 0:M.length)||0);++Ae){let R=G.children[Ae],I=P(R);ae.push(Ie=>{ce[R.name]=I(Ie)})}return pe!=null?Ae=>{if(!pe[Ae])return null;for(let R of ae)R(Ae);return ce}:Ae=>{for(let R of ae)R(Ae);return ce}}default:{if(G.dataBuffer===void 0)throw new Error("malformed data view, expected data buffer for argument of type: "+G.physicalType);let ce=ts(t,N[G.dataBuffer],G.physicalType,D.rows);return pe!=null?ae=>pe[ae]?ce[ae]:null:ae=>ce[ae]}}},_e=[];for(let G=0;G<D.args.length;++G)_e.push(P(D.args[G]));let $=D.rows*is(D.ret.physicalType),Y=t._malloc($),Z=ts(t,Y,D.ret.physicalType,D.rows),re=t._malloc(D.rows),Se=R_(t,re,D.rows);if(Z.length==0||Se.length==0){es(t,e,"Can't create physical arrays for result");return}let ve=Z;D.ret.physicalType=="VARCHAR"&&(ve=new Array(D.rows));let He=[];for(let G=0;G<D.args.length;++G)He.push(null);for(let G=0;G<D.rows;++G){for(let M=0;M<D.args.length;++M)He[M]=_e[M](G);let pe=A.func(...He);ve[G]=pe,Se[G]=pe==null?0:1}let se=0;switch(D.ret.physicalType){case"VARCHAR":{let G=new Array(0);se=t._malloc(D.rows*is("DOUBLE"));let pe=br(t,se,D.rows),M=0;for(let R=0;R<D.rows;++R){let I=A_.encode(ve[R]||"");G.push(I),pe[R]=I.length,M+=I.length}let ce=t._malloc(M),ae=t.HEAPU8.subarray(ce,ce+M),Ae=0;for(let R=0;R<D.rows;++R){Z[R]=Ae;let I=G[R];ae.subarray(Ae,Ae+I.length).set(I),Ae+=I.length}}}let ne=3*8,ee=t._malloc(ne),te=br(t,ee,3);te[0]=Y,te[1]=re,te[2]=se,t.HEAPF64[(e>>3)+0]=0,t.HEAPF64[(e>>3)+1]=ee,t.HEAPF64[(e>>3)+2]=0}catch(A){es(t,e,A.toString())}}function wg(){let r=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),r.decode(t))}var Yt=wg();function We(r,t){console.error(`FAIL WITH: ${t}`),r.ccall("duckdb_web_fail_with",null,["string"],[t])}function Vt(r,t,e){let o=r.HEAPU8.subarray(t,t+e),d=new Uint8Array(new ArrayBuffer(o.byteLength));return d.set(o),d}function ye(r,t,e){return Yt(r.HEAPU8.subarray(t,t+e))}function De(r,t,e,o){let d=r.stackSave(),m=r.stackAlloc(3*8);e.unshift("number"),o.unshift(m),r.ccall(t,null,e,o);let g=r.HEAPF64[(m>>3)+0],E=r.HEAPF64[(m>>3)+1],A=r.HEAPF64[(m>>3)+2];return r.stackRestore(d),[g,E,A]}function Le(r){r.ccall("duckdb_web_clear_response",null,[],[])}var jr=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),o=new Uint8Array(new ArrayBuffer(t.byteLength));o.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=o}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 Cg=new TextEncoder;var 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,o,d]=De(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(e!==0)throw new Error(ye(this.mod,o,d));Le(this.mod)}reset(){let[t,e,o]=De(this.mod,"duckdb_web_reset",[],[]);if(t!==0)throw new Error(ye(this.mod,e,o));Le(this.mod)}getVersion(){let[t,e,o]=De(this.mod,"duckdb_web_get_version",[],[]);if(t!==0)throw new Error(ye(this.mod,e,o));let d=ye(this.mod,e,o);return Le(this.mod),d}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,o,d]=De(this.mod,"duckdb_web_tokenize",["string"],[t]);if(e!==0)throw new Error(ye(this.mod,o,d));let m=ye(this.mod,o,d);return Le(this.mod),JSON.parse(m)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new vr(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[o,d,m]=De(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(o!==0)throw new Error(ye(this.mod,d,m));let g=Vt(this.mod,d,m);return Le(this.mod),g}startPendingQuery(t,e){let[o,d,m]=De(this.mod,"duckdb_web_pending_query_start",["number","string"],[t,e]);if(o!==0)throw new Error(ye(this.mod,d,m));if(d==0)return null;let g=Vt(this.mod,d,m);return Le(this.mod),g}pollPendingQuery(t){let[e,o,d]=De(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(e!==0)throw new Error(ye(this.mod,o,d));if(o==0)return null;let m=Vt(this.mod,o,d);return Le(this.mod),m}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[e,o,d]=De(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(e!==0)throw new Error(ye(this.mod,o,d));let m=Vt(this.mod,o,d);return Le(this.mod),m}getTableNames(t,e){let[o,d,m]=De(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(o!==0)throw new Error(ye(this.mod,d,m));let g=ye(this.mod,d,m);return Le(this.mod),JSON.parse(g)}createScalarFunction(t,e,o,d){let m={functionId:this._nextUDFId,name:e,returnType:_i(o)},g={functionId:m.functionId,connectionId:t,name:e,returnType:o,func:d};this._nextUDFId+=1;let[E,A,x]=De(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(m)]);if(E!==0)throw new Error(ye(this.mod,A,x));if(Le(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(g.functionId,g),this.pthread)for(let D of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])D.postMessage({cmd:"registerUDFFunction",udf:g})}createPrepared(t,e){let[o,d,m]=De(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(o!==0)throw new Error(ye(this.mod,d,m));return Le(this.mod),d}closePrepared(t,e){let[o,d,m]=De(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(o!==0)throw new Error(ye(this.mod,d,m));Le(this.mod)}runPrepared(t,e,o){let[d,m,g]=De(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(o)]);if(d!==0)throw new Error(ye(this.mod,m,g));let E=Vt(this.mod,m,g);return Le(this.mod),E}sendPrepared(t,e,o){let[d,m,g]=De(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(o)]);if(d!==0)throw new Error(ye(this.mod,m,g));let E=Vt(this.mod,m,g);return Le(this.mod),E}insertArrowFromIPCStream(t,e,o){if(e.length==0)return;let d=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(d,d+e.length).set(e);let g=o?JSON.stringify(o):"",[E,A,x]=De(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,d,e.length,g]);if(E!==0)throw new Error(ye(this.mod,A,x))}insertCSVFromPath(t,e,o){if(o.columns!==void 0){o.columnsFlat=[];for(let x in o.columns)o.columnsFlat.push(yr(x,o.columns[x]))}let d={...o};d.columns=d.columnsFlat,delete d.columnsFlat;let m=JSON.stringify(d),[g,E,A]=De(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,m]);if(g!==0)throw new Error(ye(this.mod,E,A))}insertJSONFromPath(t,e,o){if(o.columns!==void 0){o.columnsFlat=[];for(let x in o.columns)o.columnsFlat.push(yr(x,o.columns[x]))}let d={...o};d.columns=d.columnsFlat,delete d.columnsFlat;let m=JSON.stringify(d),[g,E,A]=De(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,m]);if(g!==0)throw new Error(ye(this.mod,E,A))}globFiles(t){let[e,o,d]=De(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(e!==0)throw new Error(ye(this.mod,o,d));let m=ye(this.mod,o,d);Le(this.mod);let g=JSON.parse(m);return g??[]}registerFileURL(t,e,o,d=!1){e===void 0&&(e=t);let[m,g,E]=De(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[t,e,o,d]);if(m!==0)throw new Error(ye(this.mod,g,E));Le(this.mod)}registerFileText(t,e){let o=Cg.encode(e);this.registerFileBuffer(t,o)}registerFileBuffer(t,e){let o=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(o,o+e.length).set(e);let[m,g,E]=De(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,o,e.length]);if(m!==0)throw new Error(ye(this.mod,g,E));Le(this.mod)}registerFileHandle(t,e,o,d){let[m,g,E]=De(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[t,t,o,d]);if(m!==0)throw new Error(ye(this.mod,g,E));if(Le(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,e),this.pthread){for(let A of this.pthread.runningWorkers)A.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let A of this.pthread.unusedWorkers)A.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,o,d]=De(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(e!==0)throw new Error(ye(this.mod,o,d));Le(this.mod)}dropFiles(){let[t,e,o]=De(this.mod,"duckdb_web_fs_drop_files",[],[]);if(t!==0)throw new Error(ye(this.mod,e,o));Le(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[o,d,m]=De(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(o!==0)throw new Error(ye(this.mod,d,m));Le(this.mod)}copyFileToBuffer(t){let[e,o,d]=De(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(e!==0)throw new Error(ye(this.mod,o,d));let m=this.mod.HEAPU8.subarray(o,o+d),g=new Uint8Array(m.length);return g.set(m),Le(this.mod),g}collectFileStatistics(t,e){let[o,d,m]=De(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(o!==0)throw new Error(ye(this.mod,d,m))}exportFileStatistics(t){let[e,o,d]=De(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(e!==0)throw new Error(ye(this.mod,o,d));return new jr(this.mod.HEAPU8.subarray(o,o+d))}};var D_=Bi(require("fs")),Cr=class extends wr{constructor(e,o,d,m){super(e,o);this.mainModulePath=d,this.pthreadWorkerPath=m}locateFile(e,o){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=${o} path=${e}`)}instantiateWasm(e,o){globalThis.DUCKDB_RUNTIME={};for(let m of Object.getOwnPropertyNames(this._runtime))m!="constructor"&&(globalThis.DUCKDB_RUNTIME[m]=Object.getOwnPropertyDescriptor(this._runtime,m).value);let d=D_.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(d,e).then(m=>{o(m.instance,m.module)}),[]}instantiateImpl(e){return S_({...e,instantiateWasm:this.instantiateWasm.bind(this)})}};var kr=class extends Cr{constructor(t,e,o,d=null){super(t,e,o,d)}instantiateImpl(t){return C_({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var ze=Bi(require("fs"));var bp=Bi(gp());var Ue={_files:new Map,_filesById:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(r,t){try{let e=Ue._fileInfoCache.get(t),[o,d,m]=De(r,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(e==null?void 0:e.cacheEpoch)||0]);if(o!==0)return We(r,ye(r,d,m)),null;if(m===0)return Le(r),e;let g=ye(r,d,m);Le(r);let E=JSON.parse(g);return E==null?null:(Ue._fileInfoCache.set(t,E),E)}catch(e){return We(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}},getDefaultDataProtocol(r){return 1},openFile(r,t,e){var o,d;try{Ue._fileInfoCache.delete(t);let m=Ue.resolveFileInfo(r,t);switch(m==null?void 0:m.dataProtocol){case 1:{let g=(o=Ue._files)==null?void 0:o.get(m.dataUrl);g==null&&(g=ze.default.openSync(m.dataUrl,ze.default.constants.O_CREAT|ze.default.constants.O_RDWR,ze.default.constants.S_IRUSR|ze.default.constants.S_IWUSR),(d=Ue._filesById)==null||d.set(m.fileId,g));let E=ze.default.fstatSync(g).size,A=r._malloc(2*8);return r.HEAPF64[(A>>3)+0]=+E,r.HEAPF64[(A>>3)+1]=0,A}case 2:case 3:case 4:case 5:We(r,"Unsupported data protocol")}}catch(m){We(r,m.toString())}return 0},syncFile:(r,t)=>{},closeFile:(r,t)=>{try{let e=Ue._fileInfoCache.get(t);switch(Ue._fileInfoCache.delete(t),e==null?void 0:e.dataProtocol){case 1:{let o=Ue._filesById.get(t);Ue._filesById.delete(t),o!=null&&ze.default.closeSync(o);break}case 2:case 3:case 4:case 5:break}}catch(e){We(r,e.toString())}return 0},truncateFile:(r,t,e)=>{try{let o=Ue.resolveFileInfo(r,t);switch(o==null?void 0:o.dataProtocol){case 1:{ze.default.truncateSync(o.dataUrl,e);break}case 2:case 3:case 4:case 5:We(r,"Unsupported data protocol")}}catch(o){We(r,o.toString())}return 0},readFile:(r,t,e,o,d)=>{try{let m=Ue.resolveFileInfo(r,t);switch(m==null?void 0:m.dataProtocol){case 1:{let g=Ue._filesById.get(t);return g==null?(We(r,`File ${t} is missing a file descriptor`),0):ze.default.readSync(g,r.HEAPU8,e,o,d)}case 2:case 3:case 4:case 5:We(r,"Unsupported data protocol")}}catch(m){We(r,m.toString())}return 0},writeFile:(r,t,e,o,d)=>{try{let m=Ue.resolveFileInfo(r,t);switch(m==null?void 0:m.dataProtocol){case 1:{let g=Ue._filesById.get(t);if(g==null)return We(r,`File ${t} is missing a file descriptor`),0;let E=r.HEAPU8.subarray(e,e+o);return ze.default.writeSync(g,E,0,E.length,d)}case 2:case 3:case 4:case 5:We(r,"Unsupported data protocol")}}catch(m){We(r,m.toString())}return 0},getLastFileModificationTime:(r,t)=>{try{let e=Ue.resolveFileInfo(r,t);switch(e==null?void 0:e.dataProtocol){case 1:{let o=Ue._filesById.get(t);return o==null?(We(r,`File ${t} is missing a file descriptor`),0):ze.default.fstatSync(o).mtime.getTime()}case 2:case 3:case 4:case 5:We(r,"Unsupported data protocol")}}catch(e){We(r,e.toString())}return 0},checkDirectory:(r,t,e)=>{try{let o=Yt(r.HEAPU8.subarray(t,t+e));return ze.default.existsSync(o)}catch(o){return We(r,o.toString()),!1}},createDirectory:(r,t,e)=>{try{let o=Yt(r.HEAPU8.subarray(t,t+e));return ze.default.mkdirSync(o)}catch(o){return We(r,o.toString()),0}},removeDirectory:(r,t,e)=>{try{let o=Yt(r.HEAPU8.subarray(t,t+e));return ze.default.rmdirSync(o)}catch(o){return We(r,o.toString()),0}},listDirectoryEntries:(r,t,e)=>(We(r,"Not Implemented"),!1),glob:(r,t,e)=>{try{let o=ye(r,t,e),d=bp.sync([o],{dot:!0});for(let m of d)r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[m])}catch(o){return We(r,o.toString()),0}},moveFile:(r,t,e,o,d)=>{var A,x;let m=ye(r,t,e),g=ye(r,o,d),E=(A=Ue._files)==null?void 0:A.get(m);E!==void 0&&(Ue._files.delete(E),Ue._files.set(g,E));for(let[D,N]of((x=Ue._fileInfoCache)==null?void 0:x.entries())||[])if(N.dataUrl==m){Ue._fileInfoCache.delete(D);break}return!0},checkFile:(r,t,e)=>{try{let o=Yt(r.HEAPU8.subarray(t,t+e));return ze.default.existsSync(o)}catch(o){return We(r,o.toString()),!1}},removeFile:(r,t,e)=>{try{let o=Yt(r.HEAPU8.subarray(t,t+e));return ze.default.rmSync(o)}catch(o){return We(r,o.toString()),0}},callScalarUDF:(r,t,e,o,d,m,g)=>{T_(Ue,r,t,e,o,d,m,g)}};var Lu=class extends mr{postMessage(t,e){globalThis.postMessage(t,e)}async instantiate(t,e,o){return await new kr(this,Ue,t,e).instantiate(o)}};function jp(){let r=new Lu;globalThis.onmessage=async t=>{await r.onMessage(t.data)}}jp();0&&(module.exports={registerWorker});
|
|
5
5
|
/*!
|
|
6
6
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
7
7
|
*
|