@duckdb/duckdb-wasm 1.26.0 → 1.27.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/dist/duckdb-browser-blocking.cjs +10 -10
- package/dist/duckdb-browser-blocking.cjs.map +3 -3
- package/dist/duckdb-browser-blocking.mjs +10 -10
- package/dist/duckdb-browser-blocking.mjs.map +3 -3
- package/dist/duckdb-browser-coi.pthread.worker.js +7 -7
- package/dist/duckdb-browser-coi.pthread.worker.js.map +3 -3
- package/dist/duckdb-browser-coi.worker.js +9 -9
- package/dist/duckdb-browser-coi.worker.js.map +3 -3
- package/dist/duckdb-browser-eh.worker.js +7 -7
- package/dist/duckdb-browser-eh.worker.js.map +3 -3
- package/dist/duckdb-browser-mvp.worker.js +7 -7
- package/dist/duckdb-browser-mvp.worker.js.map +3 -3
- package/dist/duckdb-browser.cjs +1 -1
- package/dist/duckdb-browser.cjs.map +1 -1
- package/dist/duckdb-browser.mjs +1 -1
- package/dist/duckdb-browser.mjs.map +1 -1
- 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 +3 -3
- package/dist/duckdb-node-eh.worker.cjs +4 -4
- package/dist/duckdb-node-eh.worker.cjs.map +3 -3
- package/dist/duckdb-node-mvp.worker.cjs +3 -3
- package/dist/duckdb-node-mvp.worker.cjs.map +3 -3
- package/dist/duckdb-node.cjs +1 -1
- package/dist/duckdb-node.cjs.map +1 -1
- package/dist/img/duckdb_version_badge.svg +1 -1
- package/dist/tests-browser.js +494 -458
- package/dist/tests-browser.js.map +2 -2
- package/dist/tests-node.cjs +494 -458
- package/dist/tests-node.cjs.map +2 -2
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var Fg=Object.create;var pr=Object.defineProperty;var Og=Object.getOwnPropertyDescriptor;var xg=Object.getOwnPropertyNames;var Lg=Object.getPrototypeOf,Bg=Object.prototype.hasOwnProperty;var K=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Ng=(r,t)=>{for(var e in t)pr(r,e,{get:t[e],enumerable:!0})},I_=(r,t,e,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of xg(t))!Bg.call(r,d)&&d!==e&&pr(r,d,{get:()=>t[d],enumerable:!(l=Og(t,d))||l.enumerable});return r};var Ni=(r,t,e)=>(e=r!=null?Fg(Lg(r)):{},I_(t||!r||!r.__esModule?pr(e,"default",{value:r,enumerable:!0}):e,r)),Ug=r=>I_(pr({},"__esModule",{value:!0}),r);var q_=K(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.splitWhen=di.flatten=void 0;function Gg(r){return r.reduce((t,e)=>[].concat(t,e),[])}di.flatten=Gg;function Yg(r,t){let e=[[]],l=0;for(let d of r)t(d)?(l++,e[l]=[]):e[l].push(d);return e}di.splitWhen=Yg});var W_=K(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.isEnoentCodeError=void 0;function Vg(r){return r.code==="ENOENT"}kr.isEnoentCodeError=Vg});var $_=K(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.createDirentFromStats=void 0;var ns=class{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}};function Qg(r,t){return new ns(r,t)}Sr.createDirentFromStats=Qg});var K_=K(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.removeLeadingDotSegment=ht.escape=ht.makeAbsolute=ht.unixify=void 0;var zg=require("path"),Xg=2,Jg=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Zg(r){return r.replace(/\\/g,"/")}ht.unixify=Zg;function eb(r,t){return zg.resolve(r,t)}ht.makeAbsolute=eb;function tb(r){return r.replace(Jg,"\\$2")}ht.escape=tb;function ib(r){if(r.charAt(0)==="."){let t=r.charAt(1);if(t==="/"||t==="\\")return r.slice(Xg)}return r}ht.removeLeadingDotSegment=ib});var Y_=K((bC,G_)=>{G_.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 z_=K((jC,Q_)=>{var rb=Y_(),V_={"{":"}","(":")","[":"]"},nb=function(r){if(r[0]==="!")return!0;for(var t=0,e=-2,l=-2,d=-2,m=-2,g=-2;t<r.length;){if(r[t]==="*"||r[t+1]==="?"&&/[\].+)]/.test(r[t])||l!==-1&&r[t]==="["&&r[t+1]!=="]"&&(l<t&&(l=r.indexOf("]",t)),l>t&&(g===-1||g>l||(g=r.indexOf("\\",t),g===-1||g>l)))||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=V_[E];if(A){var L=r.indexOf(A,t);L!==-1&&(t=L+1)}if(r[t]==="!")return!0}else t++}return!1},ab=function(r){if(r[0]==="!")return!0;for(var t=0;t<r.length;){if(/[*?{}()[\]]/.test(r[t]))return!0;if(r[t]==="\\"){var e=r[t+1];t+=2;var l=V_[e];if(l){var d=r.indexOf(l,t);d!==-1&&(t=d+1)}if(r[t]==="!")return!0}else t++}return!1};Q_.exports=function(t,e){if(typeof t!="string"||t==="")return!1;if(rb(t))return!0;var l=nb;return e&&e.strict===!1&&(l=ab),l(t)}});var J_=K((wC,X_)=>{"use strict";var sb=z_(),ub=require("path").posix.dirname,ob=require("os").platform()==="win32",as="/",lb=/\\/g,cb=/[\{\[].*[\}\]]$/,_b=/(^|[^\\])([\{\[]|\([^\)]+$)/,fb=/\\([\!\*\?\|\[\]\(\)\{\}])/g;X_.exports=function(t,e){var l=Object.assign({flipBackslashes:!0},e);l.flipBackslashes&&ob&&t.indexOf(as)<0&&(t=t.replace(lb,as)),cb.test(t)&&(t+=as),t+="a";do t=ub(t);while(sb(t)||_b.test(t));return t.replace(fb,"$1")}});var Er=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,l)=>l===!1||!_t.isInteger(r)||!_t.isInteger(t)?!1:(Number(t)-Number(r))/Number(e)>=l;_t.escapeNode=(r,t=0,e)=>{let l=r.nodes[t];!l||(e&&l.type===e||l.type==="open"||l.type==="close")&&l.escaped!==!0&&(l.value="\\"+l.value,l.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=l=>{for(let d=0;d<l.length;d++){let m=l[d];Array.isArray(m)?e(m,t):m!==void 0&&t.push(m)}return t};return e(r),t}});var Rr=K((kC,ef)=>{"use strict";var Z_=Er();ef.exports=(r,t={})=>{let e=(l,d={})=>{let m=t.escapeInvalid&&Z_.isInvalidBrace(d),g=l.invalid===!0&&t.escapeInvalid===!0,E="";if(l.value)return(m||g)&&Z_.isOpenOrClose(l)?"\\"+l.value:l.value;if(l.value)return l.value;if(l.nodes)for(let A of l.nodes)E+=e(A);return E};return e(r)}});var rf=K((SC,tf)=>{"use strict";tf.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}});var ff=K((EC,_f)=>{"use strict";var nf=rf(),zt=(r,t,e)=>{if(nf(r)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||r===t)return String(r);if(nf(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let l={relaxZeros:!0,...e};typeof l.strictZeros=="boolean"&&(l.relaxZeros=l.strictZeros===!1);let d=String(l.relaxZeros),m=String(l.shorthand),g=String(l.capture),E=String(l.wrap),A=r+":"+t+"="+d+m+g+E;if(zt.cache.hasOwnProperty(A))return zt.cache[A].result;let L=Math.min(r,t),D=Math.max(r,t);if(Math.abs(L-D)===1){let Y=r+"|"+t;return l.capture?`(${Y})`:l.wrap===!1?Y:`(?:${Y})`}let U=cf(r)||cf(t),P={min:r,max:t,a:L,b:D},_e=[],$=[];if(U&&(P.isPadded=U,P.maxLen=String(P.max).length),L<0){let Y=D<0?Math.abs(D):1;$=af(Y,Math.abs(L),P,l),L=P.a=0}return D>=0&&(_e=af(L,D,P,l)),P.negatives=$,P.positives=_e,P.result=db($,_e,l),l.capture===!0?P.result=`(${P.result})`:l.wrap!==!1&&_e.length+$.length>1&&(P.result=`(?:${P.result})`),zt.cache[A]=P,P.result};function db(r,t,e){let l=ss(r,t,"-",!1,e)||[],d=ss(t,r,"",!1,e)||[],m=ss(r,t,"-?",!0,e)||[];return l.concat(m).concat(d).join("|")}function pb(r,t){let e=1,l=1,d=uf(r,e),m=new Set([t]);for(;r<=d&&d<=t;)m.add(d),e+=1,d=uf(r,e);for(d=of(t+1,l)-1;r<d&&d<=t;)m.add(d),l+=1,d=of(t+1,l)-1;return m=[...m],m.sort(mb),m}function hb(r,t,e){if(r===t)return{pattern:r,count:[],digits:0};let l=yb(r,t),d=l.length,m="",g=0;for(let E=0;E<d;E++){let[A,L]=l[E];A===L?m+=A:A!=="0"||L!=="9"?m+=vb(A,L,e):g++}return g&&(m+=e.shorthand===!0?"\\d":"[0-9]"),{pattern:m,count:[g],digits:d}}function af(r,t,e,l){let d=pb(r,t),m=[],g=r,E;for(let A=0;A<d.length;A++){let L=d[A],D=hb(String(g),String(L),l),U="";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+lf(E.count),g=L+1;continue}e.isPadded&&(U=gb(L,e,l)),D.string=U+D.pattern+lf(D.count),m.push(D),g=L+1,E=D}return m}function ss(r,t,e,l,d){let m=[];for(let g of r){let{string:E}=g;!l&&!sf(t,"string",E)&&m.push(e+E),l&&sf(t,"string",E)&&m.push(e+E)}return m}function yb(r,t){let e=[];for(let l=0;l<r.length;l++)e.push([r[l],t[l]]);return e}function mb(r,t){return r>t?1:t>r?-1:0}function sf(r,t,e){return r.some(l=>l[t]===e)}function uf(r,t){return Number(String(r).slice(0,-t)+"9".repeat(t))}function of(r,t){return r-r%Math.pow(10,t)}function lf(r){let[t=0,e=""]=r;return e||t>1?`{${t+(e?","+e:"")}}`:""}function vb(r,t,e){return`[${r}${t-r===1?"":"-"}${t}]`}function cf(r){return/^-?(0+)\d/.test(r)}function gb(r,t,e){if(!t.isPadded)return r;let l=Math.abs(t.maxLen-String(r).length),d=e.relaxZeros!==!1;switch(l){case 0:return"";case 1:return d?"0?":"0";case 2:return d?"0{0,2}":"00";default:return d?`0{0,${l}}`:`0{${l}}`}}zt.cache={};zt.clearCache=()=>zt.cache={};_f.exports=zt});var ls=K((RC,bf)=>{"use strict";var bb=require("util"),hf=ff(),df=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),jb=r=>t=>r===!0?Number(t):String(t),us=r=>typeof r=="number"||typeof r=="string"&&r!=="",Ui=r=>Number.isInteger(+r),os=r=>{let t=`${r}`,e=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++e]==="0";);return e>0},wb=(r,t,e)=>typeof r=="string"||typeof t=="string"?!0:e.stringify===!0,Cb=(r,t,e)=>{if(t>0){let l=r[0]==="-"?"-":"";l&&(r=r.slice(1)),r=l+r.padStart(l?t-1:t,"0")}return e===!1?String(r):r},pf=(r,t)=>{let e=r[0]==="-"?"-":"";for(e&&(r=r.slice(1),t--);r.length<t;)r="0"+r;return e?"-"+r:r},kb=(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?"":"?:",l="",d="",m;return r.positives.length&&(l=r.positives.join("|")),r.negatives.length&&(d=`-(${e}${r.negatives.join("|")})`),l&&d?m=`${l}|${d}`:m=l||d,t.wrap?`(${e}${m})`:m},yf=(r,t,e,l)=>{if(e)return hf(r,t,{wrap:!1,...l});let d=String.fromCharCode(r);if(r===t)return d;let m=String.fromCharCode(t);return`[${d}-${m}]`},mf=(r,t,e)=>{if(Array.isArray(r)){let l=e.wrap===!0,d=e.capture?"":"?:";return l?`(${d}${r.join("|")})`:r.join("|")}return hf(r,t,e)},vf=(...r)=>new RangeError("Invalid range arguments: "+bb.inspect(...r)),gf=(r,t,e)=>{if(e.strictRanges===!0)throw vf([r,t]);return[]},Sb=(r,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${r}" to be a number`);return[]},Eb=(r,t,e=1,l={})=>{let d=Number(r),m=Number(t);if(!Number.isInteger(d)||!Number.isInteger(m)){if(l.strictRanges===!0)throw vf([r,t]);return[]}d===0&&(d=0),m===0&&(m=0);let g=d>m,E=String(r),A=String(t),L=String(e);e=Math.max(Math.abs(e),1);let D=os(E)||os(A)||os(L),U=D?Math.max(E.length,A.length,L.length):0,P=D===!1&&wb(r,t,l)===!1,_e=l.transform||jb(P);if(l.toRegex&&e===1)return yf(pf(r,U),pf(t,U),!0,l);let $={negatives:[],positives:[]},Y=Ee=>$[Ee<0?"negatives":"positives"].push(Math.abs(Ee)),Z=[],ne=0;for(;g?d>=m:d<=m;)l.toRegex===!0&&e>1?Y(d):Z.push(Cb(_e(d,ne),U,P)),d=g?d-e:d+e,ne++;return l.toRegex===!0?e>1?kb($,l):mf(Z,null,{wrap:!1,...l}):Z},Rb=(r,t,e=1,l={})=>{if(!Ui(r)&&r.length>1||!Ui(t)&&t.length>1)return gf(r,t,l);let d=l.transform||(P=>String.fromCharCode(P)),m=`${r}`.charCodeAt(0),g=`${t}`.charCodeAt(0),E=m>g,A=Math.min(m,g),L=Math.max(m,g);if(l.toRegex&&e===1)return yf(A,L,!1,l);let D=[],U=0;for(;E?m>=g:m<=g;)D.push(d(m,U)),m=E?m-e:m+e,U++;return l.toRegex===!0?mf(D,null,{wrap:!1,options:l}):D},Ar=(r,t,e,l={})=>{if(t==null&&us(r))return[r];if(!us(r)||!us(t))return gf(r,t,l);if(typeof e=="function")return Ar(r,t,1,{transform:e});if(df(e))return Ar(r,t,0,e);let d={...l};return d.capture===!0&&(d.wrap=!0),e=e||d.step||1,Ui(e)?Ui(r)&&Ui(t)?Eb(r,t,e,d):Rb(r,t,Math.max(Math.abs(e),1),d):e!=null&&!df(e)?Sb(e,d):Ar(r,t,1,e)};bf.exports=Ar});var Cf=K((AC,wf)=>{"use strict";var Ab=ls(),jf=Er(),Tb=(r,t={})=>{let e=(l,d={})=>{let m=jf.isInvalidBrace(d),g=l.invalid===!0&&t.escapeInvalid===!0,E=m===!0||g===!0,A=t.escapeInvalid===!0?"\\":"",L="";if(l.isOpen===!0||l.isClose===!0)return A+l.value;if(l.type==="open")return E?A+l.value:"(";if(l.type==="close")return E?A+l.value:")";if(l.type==="comma")return l.prev.type==="comma"?"":E?l.value:"|";if(l.value)return l.value;if(l.nodes&&l.ranges>0){let D=jf.reduce(l.nodes),U=Ab(...D,{...t,wrap:!1,toRegex:!0});if(U.length!==0)return D.length>1&&U.length>1?`(${U})`:U}if(l.nodes)for(let D of l.nodes)L+=e(D,l);return L};return e(r)};wf.exports=Tb});var Ef=K((TC,Sf)=>{"use strict";var Db=ls(),kf=Rr(),pi=Er(),Xt=(r="",t="",e=!1)=>{let l=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return e?pi.flatten(t).map(d=>`{${d}}`):t;for(let d of r)if(Array.isArray(d))for(let m of d)l.push(Xt(m,t,e));else for(let m of t)e===!0&&typeof m=="string"&&(m=`{${m}}`),l.push(Array.isArray(m)?Xt(d,m,e):d+m);return pi.flatten(l)},Pb=(r,t={})=>{let e=t.rangeLimit===void 0?1e3:t.rangeLimit,l=(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(Xt(E.pop(),kf(d,t)));return}if(d.type==="brace"&&d.invalid!==!0&&d.nodes.length===2){E.push(Xt(E.pop(),["{}"]));return}if(d.nodes&&d.ranges>0){let U=pi.reduce(d.nodes);if(pi.exceedsLimit(...U,t.step,e))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let P=Db(...U,t);P.length===0&&(P=kf(d,t)),E.push(Xt(E.pop(),P)),d.nodes=[];return}let A=pi.encloseBrace(d),L=d.queue,D=d;for(;D.type!=="brace"&&D.type!=="root"&&D.parent;)D=D.parent,L=D.queue;for(let U=0;U<d.nodes.length;U++){let P=d.nodes[U];if(P.type==="comma"&&d.type==="brace"){U===1&&L.push(""),L.push("");continue}if(P.type==="close"){E.push(Xt(E.pop(),L,A));continue}if(P.value&&P.type!=="open"){L.push(Xt(L.pop(),P.value));continue}P.nodes&&l(P,d)}return L};return pi.flatten(l(r))};Sf.exports=Pb});var Af=K((DC,Rf)=>{"use strict";Rf.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 Mf=K((PC,If)=>{"use strict";var Ib=Rr(),{MAX_LENGTH:Tf,CHAR_BACKSLASH:cs,CHAR_BACKTICK:Mb,CHAR_COMMA:Fb,CHAR_DOT:Ob,CHAR_LEFT_PARENTHESES:xb,CHAR_RIGHT_PARENTHESES:Lb,CHAR_LEFT_CURLY_BRACE:Bb,CHAR_RIGHT_CURLY_BRACE:Nb,CHAR_LEFT_SQUARE_BRACKET:Df,CHAR_RIGHT_SQUARE_BRACKET:Pf,CHAR_DOUBLE_QUOTE:Ub,CHAR_SINGLE_QUOTE:Hb,CHAR_NO_BREAK_SPACE:qb,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Wb}=Af(),$b=(r,t={})=>{if(typeof r!="string")throw new TypeError("Expected a string");let e=t||{},l=typeof e.maxLength=="number"?Math.min(Tf,e.maxLength):Tf;if(r.length>l)throw new SyntaxError(`Input length (${r.length}), exceeds max characters (${l})`);let d={type:"root",input:r,nodes:[]},m=[d],g=d,E=d,A=0,L=r.length,D=0,U=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<L;)if(g=m[m.length-1],P=$(),!(P===Wb||P===qb)){if(P===cs){Y({type:"text",value:(t.keepEscaping?P:"")+$()});continue}if(P===Pf){Y({type:"text",value:"\\"+P});continue}if(P===Df){A++;let Z=!0,ne;for(;D<L&&(ne=$());){if(P+=ne,ne===Df){A++;continue}if(ne===cs){P+=$();continue}if(ne===Pf&&(A--,A===0))break}Y({type:"text",value:P});continue}if(P===xb){g=Y({type:"paren",nodes:[]}),m.push(g),Y({type:"text",value:P});continue}if(P===Lb){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===Ub||P===Hb||P===Mb){let Z=P,ne;for(t.keepQuotes!==!0&&(P="");D<L&&(ne=$());){if(ne===cs){P+=ne+$();continue}if(ne===Z){t.keepQuotes===!0&&(P+=ne);break}P+=ne}Y({type:"text",value:P});continue}if(P===Bb){U++;let ne={type:"brace",open:!0,close:!1,dollar:E.value&&E.value.slice(-1)==="$"||g.dollar===!0,depth:U,commas:0,ranges:0,nodes:[]};g=Y(ne),m.push(g),Y({type:"open",value:P});continue}if(P===Nb){if(g.type!=="brace"){Y({type:"text",value:P});continue}let Z="close";g=m.pop(),g.close=!0,Y({type:Z,value:P}),U--,g=m[m.length-1];continue}if(P===Fb&&U>0){if(g.ranges>0){g.ranges=0;let Z=g.nodes.shift();g.nodes=[Z,{type:"text",value:Ib(g)}]}Y({type:"comma",value:P}),g.commas++;continue}if(P===Ob&&U>0&&g.commas===0){let Z=g.nodes;if(U===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 ne=Z[Z.length-1];ne.value+=E.value+P,E=ne,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(Ee=>{Ee.nodes||(Ee.type==="open"&&(Ee.isOpen=!0),Ee.type==="close"&&(Ee.isClose=!0),Ee.nodes||(Ee.type="text"),Ee.invalid=!0)});let Z=m[m.length-1],ne=Z.nodes.indexOf(g);Z.nodes.splice(ne,1,...g.nodes)}while(m.length>0);return Y({type:"eos"}),d};If.exports=$b});var xf=K((IC,Of)=>{"use strict";var Ff=Rr(),Kb=Cf(),Gb=Ef(),Yb=Mf(),ot=(r,t={})=>{let e=[];if(Array.isArray(r))for(let l of r){let d=ot.create(l,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={})=>Yb(r,t);ot.stringify=(r,t={})=>Ff(typeof r=="string"?ot.parse(r,t):r,t);ot.compile=(r,t={})=>(typeof r=="string"&&(r=ot.parse(r,t)),Kb(r,t));ot.expand=(r,t={})=>{typeof r=="string"&&(r=ot.parse(r,t));let e=Gb(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);Of.exports=ot});var Hi=K((MC,Hf)=>{"use strict";var Vb=require("path"),yt="\\\\/",Lf=`[^${yt}]`,Et="\\.",Qb="\\+",zb="\\?",Tr="\\/",Xb="(?=.)",Bf="[^/]",_s=`(?:${Tr}|$)`,Nf=`(?:^|${Tr})`,fs=`${Et}{1,2}${_s}`,Jb=`(?!${Et})`,Zb=`(?!${Nf}${fs})`,ej=`(?!${Et}{0,1}${_s})`,tj=`(?!${fs})`,ij=`[^.${Tr}]`,rj=`${Bf}*?`,Uf={DOT_LITERAL:Et,PLUS_LITERAL:Qb,QMARK_LITERAL:zb,SLASH_LITERAL:Tr,ONE_CHAR:Xb,QMARK:Bf,END_ANCHOR:_s,DOTS_SLASH:fs,NO_DOT:Jb,NO_DOTS:Zb,NO_DOT_SLASH:ej,NO_DOTS_SLASH:tj,QMARK_NO_DOT:ij,STAR:rj,START_ANCHOR:Nf},nj={...Uf,SLASH_LITERAL:`[${yt}]`,QMARK:Lf,STAR:`${Lf}*?`,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}]|$)`},aj={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Hf.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:aj,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Vb.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?nj:Uf}}});var qi=K(ut=>{"use strict";var sj=require("path"),uj=process.platform==="win32",{REGEX_BACKSLASH:oj,REGEX_REMOVE_BACKSLASH:lj,REGEX_SPECIAL_CHARS:cj,REGEX_SPECIAL_CHARS_GLOBAL:_j}=Hi();ut.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r);ut.hasRegexChars=r=>cj.test(r);ut.isRegexChar=r=>r.length===1&&ut.hasRegexChars(r);ut.escapeRegex=r=>r.replace(_j,"\\$1");ut.toPosixSlashes=r=>r.replace(oj,"/");ut.removeBackslashes=r=>r.replace(lj,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:uj===!0||sj.sep==="\\";ut.escapeLast=(r,t,e)=>{let l=r.lastIndexOf(t,e);return l===-1?r:r[l-1]==="\\"?ut.escapeLast(r,t,l-1):`${r.slice(0,l)}\\${r.slice(l)}`};ut.removePrefix=(r,t={})=>{let e=r;return e.startsWith("./")&&(e=e.slice(2),t.prefix="./"),e};ut.wrapOutput=(r,t={},e={})=>{let l=e.contains?"":"^",d=e.contains?"":"$",m=`${l}(?:${r})${d}`;return t.negated===!0&&(m=`(?:^(?!${m}).*$)`),m}});var Qf=K((OC,Vf)=>{"use strict";var qf=qi(),{CHAR_ASTERISK:ds,CHAR_AT:fj,CHAR_BACKWARD_SLASH:Wi,CHAR_COMMA:dj,CHAR_DOT:ps,CHAR_EXCLAMATION_MARK:hs,CHAR_FORWARD_SLASH:Yf,CHAR_LEFT_CURLY_BRACE:ys,CHAR_LEFT_PARENTHESES:ms,CHAR_LEFT_SQUARE_BRACKET:pj,CHAR_PLUS:hj,CHAR_QUESTION_MARK:Wf,CHAR_RIGHT_CURLY_BRACE:yj,CHAR_RIGHT_PARENTHESES:$f,CHAR_RIGHT_SQUARE_BRACKET:mj}=Hi(),Kf=r=>r===Yf||r===Wi,Gf=r=>{r.isPrefix!==!0&&(r.depth=r.isGlobstar?1/0:1)},vj=(r,t)=>{let e=t||{},l=r.length-1,d=e.parts===!0||e.scanToEnd===!0,m=[],g=[],E=[],A=r,L=-1,D=0,U=0,P=!1,_e=!1,$=!1,Y=!1,Z=!1,ne=!1,Ee=!1,ge=!1,qe=!1,ue=!1,ae=0,ee,re,G={value:"",depth:0,isGlob:!1},pe=()=>L>=l,M=()=>A.charCodeAt(L+1),ce=()=>(ee=re,A.charCodeAt(++L));for(;L<l;){re=ce();let Me;if(re===Wi){Ee=G.backslashes=!0,re=ce(),re===ys&&(ne=!0);continue}if(ne===!0||re===ys){for(ae++;pe()!==!0&&(re=ce());){if(re===Wi){Ee=G.backslashes=!0,ce();continue}if(re===ys){ae++;continue}if(ne!==!0&&re===ps&&(re=ce())===ps){if(P=G.isBrace=!0,$=G.isGlob=!0,ue=!0,d===!0)continue;break}if(ne!==!0&&re===dj){if(P=G.isBrace=!0,$=G.isGlob=!0,ue=!0,d===!0)continue;break}if(re===yj&&(ae--,ae===0)){ne=!1,P=G.isBrace=!0,ue=!0;break}}if(d===!0)continue;break}if(re===Yf){if(m.push(L),g.push(G),G={value:"",depth:0,isGlob:!1},ue===!0)continue;if(ee===ps&&L===D+1){D+=2;continue}U=L+1;continue}if(e.noext!==!0&&(re===hj||re===fj||re===ds||re===Wf||re===hs)===!0&&M()===ms){if($=G.isGlob=!0,Y=G.isExtglob=!0,ue=!0,re===hs&&L===D&&(qe=!0),d===!0){for(;pe()!==!0&&(re=ce());){if(re===Wi){Ee=G.backslashes=!0,re=ce();continue}if(re===$f){$=G.isGlob=!0,ue=!0;break}}continue}break}if(re===ds){if(ee===ds&&(Z=G.isGlobstar=!0),$=G.isGlob=!0,ue=!0,d===!0)continue;break}if(re===Wf){if($=G.isGlob=!0,ue=!0,d===!0)continue;break}if(re===pj){for(;pe()!==!0&&(Me=ce());){if(Me===Wi){Ee=G.backslashes=!0,ce();continue}if(Me===mj){_e=G.isBracket=!0,$=G.isGlob=!0,ue=!0;break}}if(d===!0)continue;break}if(e.nonegate!==!0&&re===hs&&L===D){ge=G.negated=!0,D++;continue}if(e.noparen!==!0&&re===ms){if($=G.isGlob=!0,d===!0){for(;pe()!==!0&&(re=ce());){if(re===ms){Ee=G.backslashes=!0,re=ce();continue}if(re===$f){ue=!0;break}}continue}break}if($===!0){if(ue=!0,d===!0)continue;break}}e.noext===!0&&(Y=!1,$=!1);let se=A,Te="",R="";D>0&&(Te=A.slice(0,D),A=A.slice(D),U-=D),se&&$===!0&&U>0?(se=A.slice(0,U),R=A.slice(U)):$===!0?(se="",R=A):se=A,se&&se!==""&&se!=="/"&&se!==A&&Kf(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),e.unescape===!0&&(R&&(R=qf.removeBackslashes(R)),se&&Ee===!0&&(se=qf.removeBackslashes(se)));let I={prefix:Te,input:r,start:D,base:se,glob:R,isBrace:P,isBracket:_e,isGlob:$,isExtglob:Y,isGlobstar:Z,negated:ge,negatedExtglob:qe};if(e.tokens===!0&&(I.maxDepth=0,Kf(re)||g.push(G),I.tokens=g),e.parts===!0||e.tokens===!0){let Me;for(let be=0;be<m.length;be++){let Xe=Me?Me+1:D,Fe=m[be],Ae=r.slice(Xe,Fe);e.tokens&&(be===0&&D!==0?(g[be].isPrefix=!0,g[be].value=Te):g[be].value=Ae,Gf(g[be]),I.maxDepth+=g[be].depth),(be!==0||Ae!=="")&&E.push(Ae),Me=Fe}if(Me&&Me+1<r.length){let be=r.slice(Me+1);E.push(be),e.tokens&&(g[g.length-1].value=be,Gf(g[g.length-1]),I.maxDepth+=g[g.length-1].depth)}I.slashes=m,I.parts=E}return I};Vf.exports=vj});var Zf=K((xC,Jf)=>{"use strict";var Dr=Hi(),lt=qi(),{MAX_LENGTH:Pr,POSIX_REGEX_SOURCE:gj,REGEX_NON_SPECIAL_CHARS:bj,REGEX_SPECIAL_CHARS_BACKREF:jj,REPLACEMENTS:zf}=Dr,wj=(r,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...r,t);r.sort();let e=`[${r.join("-")}]`;try{new RegExp(e)}catch{return r.map(d=>lt.escapeRegex(d)).join("..")}return e},hi=(r,t)=>`Missing ${r}: "${t}" - use "\\\\${t}" to match literal characters`,Xf=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");r=zf[r]||r;let e={...t},l=typeof e.maxLength=="number"?Math.min(Pr,e.maxLength):Pr,d=r.length;if(d>l)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${l}`);let m={type:"bos",value:"",output:e.prepend||""},g=[m],E=e.capture?"":"?:",A=lt.isWindows(t),L=Dr.globChars(A),D=Dr.extglobChars(L),{DOT_LITERAL:U,PLUS_LITERAL:P,SLASH_LITERAL:_e,ONE_CHAR:$,DOTS_SLASH:Y,NO_DOT:Z,NO_DOT_SLASH:ne,NO_DOTS_SLASH:Ee,QMARK:ge,QMARK_NO_DOT:qe,STAR:ue,START_ANCHOR:ae}=L,ee=V=>`(${E}(?:(?!${ae}${V.dot?Y:U}).)*?)`,re=e.dot?"":Z,G=e.dot?ge:qe,pe=e.bash===!0?ee(e):ue;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=[],se=[],Te=[],R=m,I,Me=()=>M.index===d-1,be=M.peek=(V=1)=>r[M.index+V],Xe=M.advance=()=>r[++M.index]||"",Fe=()=>r.slice(M.index+1),Ae=(V="",De=0)=>{M.consumed+=V,M.index+=De},Je=V=>{M.output+=V.output!=null?V.output:V.value,Ae(V.value)},Nt=()=>{let V=1;for(;be()==="!"&&(be(2)!=="("||be(3)==="?");)Xe(),M.start++,V++;return V%2===0?!1:(M.negated=!0,M.start++,!0)},F=V=>{M[V]++,Te.push(V)},he=V=>{M[V]--,Te.pop()},fe=V=>{if(R.type==="globstar"){let De=M.braces>0&&(V.type==="comma"||V.type==="brace"),H=V.extglob===!0||ce.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!De&&!H&&(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,De)=>{let H={...D[De],conditions:1,inner:""};H.prev=R,H.parens=M.parens,H.output=M.output;let oe=(e.capture?"(":"")+H.open;F("parens"),fe({type:V,value:De,output:M.output?"":$}),fe({type:"paren",extglob:!0,value:Xe(),output:oe}),ce.push(H)},Ut=V=>{let De=V.close+(e.capture?")":""),H;if(V.type==="negate"){let oe=pe;V.inner&&V.inner.length>1&&V.inner.includes("/")&&(oe=ee(e)),(oe!==pe||Me()||/^\)+$/.test(Fe()))&&(De=V.close=`)$))${oe}`),V.inner.includes("*")&&(H=Fe())&&/^\.[^\\/.]+$/.test(H)&&(De=V.close=`)${H})${oe})`),V.prev.type==="bos"&&(M.negatedExtglob=!0)}fe({type:"paren",extglob:!0,value:I,output:De}),he("parens")};if(e.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let V=!1,De=r.replace(jj,(H,oe,Ne,Ge,Ke,bt)=>Ge==="\\"?(V=!0,H):Ge==="?"?oe?oe+Ge+(Ke?ge.repeat(Ke.length):""):bt===0?G+(Ke?ge.repeat(Ke.length):""):ge.repeat(Ne.length):Ge==="."?U.repeat(Ne.length):Ge==="*"?oe?oe+Ge+(Ke?pe:""):pe:oe?H:`\\${H}`);return V===!0&&(e.unescape===!0?De=De.replace(/\\/g,""):De=De.replace(/\\+/g,H=>H.length%2===0?"\\\\":H?"\\":"")),De===r&&e.contains===!0?(M.output=r,M):(M.output=lt.wrapOutput(De,M,t),M)}for(;!Me();){if(I=Xe(),I==="\0")continue;if(I==="\\"){let H=be();if(H==="/"&&e.bash!==!0||H==="."||H===";")continue;if(!H){I+="\\",fe({type:"text",value:I});continue}let oe=/^\\+/.exec(Fe()),Ne=0;if(oe&&oe[0].length>2&&(Ne=oe[0].length,M.index+=Ne,Ne%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 H=R.value.slice(1);if(H.includes("[")&&(R.posix=!0,H.includes(":"))){let oe=R.value.lastIndexOf("["),Ne=R.value.slice(0,oe),Ge=R.value.slice(oe+2),Ke=gj[Ge];if(Ke){R.value=Ne+Ke,M.backtrack=!0,Xe(),!m.output&&g.indexOf(R)===1&&(m.output=$);continue}}}(I==="["&&be()!==":"||I==="-"&&be()==="]")&&(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(hi("opening","("));let H=ce[ce.length-1];if(H&&M.parens===H.parens+1){Ut(ce.pop());continue}fe({type:"paren",value:I,output:M.parens?")":"\\)"}),he("parens");continue}if(I==="["){if(e.nobracket===!0||!Fe().includes("]")){if(e.nobracket!==!0&&e.strictBrackets===!0)throw new SyntaxError(hi("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(hi("opening","["));fe({type:"text",value:I,output:`\\${I}`});continue}he("brackets");let H=R.value.slice(1);if(R.posix!==!0&&H[0]==="^"&&!H.includes("/")&&(I=`/${I}`),R.value+=I,Je({value:I}),e.literalBrackets===!1||lt.hasRegexChars(H))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 H={type:"brace",value:I,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};se.push(H),fe(H);continue}if(I==="}"){let H=se[se.length-1];if(e.nobrace===!0||!H){fe({type:"text",value:I,output:I});continue}let oe=")";if(H.dots===!0){let Ne=g.slice(),Ge=[];for(let Ke=Ne.length-1;Ke>=0&&(g.pop(),Ne[Ke].type!=="brace");Ke--)Ne[Ke].type!=="dots"&&Ge.unshift(Ne[Ke].value);oe=wj(Ge,e),M.backtrack=!0}if(H.comma!==!0&&H.dots!==!0){let Ne=M.output.slice(0,H.outputIndex),Ge=M.tokens.slice(H.tokensIndex);H.value=H.output="\\{",I=oe="\\}",M.output=Ne;for(let Ke of Ge)M.output+=Ke.output||Ke.value}fe({type:"brace",value:I,output:oe}),he("braces"),se.pop();continue}if(I==="|"){ce.length>0&&ce[ce.length-1].conditions++,fe({type:"text",value:I});continue}if(I===","){let H=I,oe=se[se.length-1];oe&&Te[Te.length-1]==="braces"&&(oe.comma=!0,H="|"),fe({type:"comma",value:I,output:H});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=U);let H=se[se.length-1];R.type="dots",R.output+=I,R.value+=I,H.dots=!0;continue}if(M.braces+M.parens===0&&R.type!=="bos"&&R.type!=="slash"){fe({type:"text",value:I,output:U});continue}fe({type:"dot",value:I,output:U});continue}if(I==="?"){if(!(R&&R.value==="(")&&e.noextglob!==!0&&be()==="("&&be(2)!=="?"){Tt("qmark",I);continue}if(R&&R.type==="paren"){let oe=be(),Ne=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(Fe()))&&(Ne=`\\${I}`),fe({type:"text",value:I,output:Ne});continue}if(e.dot!==!0&&(R.type==="slash"||R.type==="bos")){fe({type:"qmark",value:I,output:qe});continue}fe({type:"qmark",value:I,output:ge});continue}if(I==="!"){if(e.noextglob!==!0&&be()==="("&&(be(2)!=="?"||!/[!=<:]/.test(be(3)))){Tt("negate",I);continue}if(e.nonegate!==!0&&M.index===0){Nt();continue}}if(I==="+"){if(e.noextglob!==!0&&be()==="("&&be(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&&be()==="("&&be(2)!=="?"){fe({type:"at",extglob:!0,value:I,output:""});continue}fe({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let H=bj.exec(Fe());H&&(I+=H[0],M.index+=H[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,Ae(I);continue}let V=Fe();if(e.noextglob!==!0&&/^\([^?]/.test(V)){Tt("star",I);continue}if(R.type==="star"){if(e.noglobstar===!0){Ae(I);continue}let H=R.prev,oe=H.prev,Ne=H.type==="slash"||H.type==="bos",Ge=oe&&(oe.type==="star"||oe.type==="globstar");if(e.bash===!0&&(!Ne||V[0]&&V[0]!=="/")){fe({type:"star",value:I,output:""});continue}let Ke=M.braces>0&&(H.type==="comma"||H.type==="brace"),bt=ce.length&&(H.type==="pipe"||H.type==="paren");if(!Ne&&H.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),Ae("/**",3)}if(H.type==="bos"&&Me()){R.type="globstar",R.value+=I,R.output=ee(e),M.output=R.output,M.globstar=!0,Ae(I);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&!Ge&&Me()){M.output=M.output.slice(0,-(H.output+R.output).length),H.output=`(?:${H.output}`,R.type="globstar",R.output=ee(e)+(e.strictSlashes?")":"|$)"),R.value+=I,M.globstar=!0,M.output+=H.output+R.output,Ae(I);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&V[0]==="/"){let Dt=V[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(H.output+R.output).length),H.output=`(?:${H.output}`,R.type="globstar",R.output=`${ee(e)}${_e}|${_e}${Dt})`,R.value+=I,M.output+=H.output+R.output,M.globstar=!0,Ae(I+Xe()),fe({type:"slash",value:"/",output:""});continue}if(H.type==="bos"&&V[0]==="/"){R.type="globstar",R.value+=I,R.output=`(?:^|${_e}|${ee(e)}${_e})`,M.output=R.output,M.globstar=!0,Ae(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,Ae(I);continue}let De={type:"star",value:I,output:pe};if(e.bash===!0){De.output=".*?",(R.type==="bos"||R.type==="slash")&&(De.output=re+De.output),fe(De);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&e.regex===!0){De.output=I,fe(De);continue}(M.index===M.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(M.output+=ne,R.output+=ne):e.dot===!0?(M.output+=Ee,R.output+=Ee):(M.output+=re,R.output+=re),be()!=="*"&&(M.output+=$,R.output+=$)),fe(De)}for(;M.brackets>0;){if(e.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));M.output=lt.escapeLast(M.output,"["),he("brackets")}for(;M.parens>0;){if(e.strictBrackets===!0)throw new SyntaxError(hi("closing",")"));M.output=lt.escapeLast(M.output,"("),he("parens")}for(;M.braces>0;){if(e.strictBrackets===!0)throw new SyntaxError(hi("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};Xf.fastpaths=(r,t)=>{let e={...t},l=typeof e.maxLength=="number"?Math.min(Pr,e.maxLength):Pr,d=r.length;if(d>l)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${l}`);r=zf[r]||r;let m=lt.isWindows(t),{DOT_LITERAL:g,SLASH_LITERAL:E,ONE_CHAR:A,DOTS_SLASH:L,NO_DOT:D,NO_DOTS:U,NO_DOTS_SLASH:P,STAR:_e,START_ANCHOR:$}=Dr.globChars(m),Y=e.dot?U:D,Z=e.dot?P:D,ne=e.capture?"":"?:",Ee={negated:!1,prefix:""},ge=e.bash===!0?".*?":_e;e.capture&&(ge=`(${ge})`);let qe=re=>re.noglobstar===!0?ge:`(${ne}(?:(?!${$}${re.dot?L:g}).)*?)`,ue=re=>{switch(re){case"*":return`${Y}${A}${ge}`;case".*":return`${g}${A}${ge}`;case"*.*":return`${Y}${ge}${g}${A}${ge}`;case"*/*":return`${Y}${ge}${E}${A}${Z}${ge}`;case"**":return Y+qe(e);case"**/*":return`(?:${Y}${qe(e)}${E})?${Z}${A}${ge}`;case"**/*.*":return`(?:${Y}${qe(e)}${E})?${Z}${ge}${g}${A}${ge}`;case"**/.*":return`(?:${Y}${qe(e)}${E})?${g}${A}${ge}`;default:{let G=/^(.*?)\.(\w+)$/.exec(re);if(!G)return;let pe=ue(G[1]);return pe?pe+g+G[2]:void 0}}},ae=lt.removePrefix(r,Ee),ee=ue(ae);return ee&&e.strictSlashes!==!0&&(ee+=`${E}?`),ee};Jf.exports=Xf});var td=K((LC,ed)=>{"use strict";var Cj=require("path"),kj=Qf(),vs=Zf(),gs=qi(),Sj=Hi(),Ej=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 l=Ej(r)&&r.tokens&&r.input;if(r===""||typeof r!="string"&&!l)throw new TypeError("Expected pattern to be a non-empty string");let d=t||{},m=gs.isWindows(t),g=l?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 L=(D,U=!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,U?Y:!1):A(D)?(typeof d.onIgnore=="function"&&d.onIgnore(Y),Y.isMatch=!1,U?Y:!1):(typeof d.onMatch=="function"&&d.onMatch(Y),U?Y:!0)};return e&&(L.state=E),L};Ye.test=(r,t,e,{glob:l,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?gs.toPosixSlashes:null),E=r===l,A=E&&g?g(r):r;return E===!1&&(A=g?g(r):r,E=A===l),(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,l=gs.isWindows(e))=>(t instanceof RegExp?t:Ye.makeRe(t,e)).test(Cj.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)):vs(r,{...t,fastpaths:!1});Ye.scan=(r,t)=>kj(r,t);Ye.compileRe=(r,t,e=!1,l=!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 l===!0&&(A.state=r),A};Ye.makeRe=(r,t={},e=!1,l=!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=vs.fastpaths(r,t)),d.output||(d=vs(r,t)),Ye.compileRe(d,t,e,l)};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=Sj;ed.exports=Ye});var rd=K((BC,id)=>{"use strict";id.exports=td()});var od=K((NC,ud)=>{"use strict";var ad=require("util"),sd=xf(),mt=rd(),bs=qi(),nd=r=>r===""||r==="./",$e=(r,t,e)=>{t=[].concat(t),r=[].concat(r);let l=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 U=mt(String(t[D]),{...e,onResult:E},!0),P=U.state.negated||U.state.negatedExtglob;P&&g++;for(let _e of r){let $=U(_e,!0);!(P?!$.isMatch:$.isMatch)||(P?l.add($.output):(l.delete($.output),d.add($.output)))}}let L=(g===t.length?[...m]:[...d]).filter(D=>!l.has(D));if(e&&L.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 L};$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 l=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)||l.add(E);return[...l]};$e.contains=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ad.inspect(r)}"`);if(Array.isArray(t))return t.some(l=>$e.contains(r,l,e));if(typeof t=="string"){if(nd(r)||nd(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(!bs.isObject(r))throw new TypeError("Expected the first argument to be an object");let l=$e(Object.keys(r),t,e),d={};for(let m of l)d[m]=r[m];return d};$e.some=(r,t,e)=>{let l=[].concat(r);for(let d of[].concat(t)){let m=mt(String(d),e);if(l.some(g=>m(g)))return!0}return!1};$e.every=(r,t,e)=>{let l=[].concat(r);for(let d of[].concat(t)){let m=mt(String(d),e);if(!l.every(g=>m(g)))return!1}return!0};$e.all=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ad.inspect(r)}"`);return[].concat(t).every(l=>mt(l,e)(r))};$e.capture=(r,t,e)=>{let l=bs.isWindows(e),m=mt.makeRe(String(r),{...e,capture:!0}).exec(l?bs.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 l of[].concat(r||[]))for(let d of sd(String(l),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]:sd(r,t)};$e.braceExpand=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return $e.braces(r,{...t,expand:!0})};ud.exports=$e});var yd=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 Rj=require("path"),Aj=J_(),js=od(),ld="**",Tj="\\",Dj=/[*?]|^!/,Pj=/\[[^[]*]/,Ij=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Mj=/[!*+?@]\([^(]*\)/,Fj=/,|\.\./;function cd(r,t={}){return!_d(r,t)}le.isStaticPattern=cd;function _d(r,t={}){return r===""?!1:!!(t.caseSensitiveMatch===!1||r.includes(Tj)||Dj.test(r)||Pj.test(r)||Ij.test(r)||t.extglob!==!1&&Mj.test(r)||t.braceExpansion!==!1&&Oj(r))}le.isDynamicPattern=_d;function Oj(r){let t=r.indexOf("{");if(t===-1)return!1;let e=r.indexOf("}",t+1);if(e===-1)return!1;let l=r.slice(t,e);return Fj.test(l)}function xj(r){return Ir(r)?r.slice(1):r}le.convertToPositivePattern=xj;function Lj(r){return"!"+r}le.convertToNegativePattern=Lj;function Ir(r){return r.startsWith("!")&&r[1]!=="("}le.isNegativePattern=Ir;function fd(r){return!Ir(r)}le.isPositivePattern=fd;function Bj(r){return r.filter(Ir)}le.getNegativePatterns=Bj;function Nj(r){return r.filter(fd)}le.getPositivePatterns=Nj;function Uj(r){return r.filter(t=>!ws(t))}le.getPatternsInsideCurrentDirectory=Uj;function Hj(r){return r.filter(ws)}le.getPatternsOutsideCurrentDirectory=Hj;function ws(r){return r.startsWith("..")||r.startsWith("./..")}le.isPatternRelatedToParentDirectory=ws;function qj(r){return Aj(r,{flipBackslashes:!1})}le.getBaseDirectory=qj;function Wj(r){return r.includes(ld)}le.hasGlobStar=Wj;function dd(r){return r.endsWith("/"+ld)}le.endsWithSlashGlobStar=dd;function $j(r){let t=Rj.basename(r);return dd(r)||cd(t)}le.isAffectDepthOfReadingPattern=$j;function Kj(r){return r.reduce((t,e)=>t.concat(pd(e)),[])}le.expandPatternsWithBraceExpansion=Kj;function pd(r){return js.braces(r,{expand:!0,nodupes:!0})}le.expandBraceExpansion=pd;function Gj(r,t){let{parts:e}=js.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=Gj;function hd(r,t){return js.makeRe(r,t)}le.makeRe=hd;function Yj(r,t){return r.map(e=>hd(e,t))}le.convertPatternsToRe=Yj;function Vj(r,t){return t.some(e=>e.test(r))}le.matchAny=Vj});var bd=K((HC,gd)=>{"use strict";var Qj=require("stream"),md=Qj.PassThrough,zj=Array.prototype.slice;gd.exports=Xj;function Xj(){let r=[],t=zj.call(arguments),e=!1,l=t[t.length-1];l&&!Array.isArray(l)&&l.pipe==null?t.pop():l={};let d=l.end!==!1,m=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let g=md(l);function E(){for(let D=0,U=arguments.length;D<U;D++)r.push(vd(arguments[D],l));return A(),this}function A(){if(e)return;e=!0;let D=r.shift();if(!D){process.nextTick(L);return}Array.isArray(D)||(D=[D]);let U=D.length+1;function P(){--U>0||(e=!1,A())}function _e($){function Y(){$.removeListener("merge2UnpipeEnd",Y),$.removeListener("end",Y),m&&$.removeListener("error",Z),P()}function Z(ne){g.emit("error",ne)}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 L(){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 vd(r,t){if(Array.isArray(r))for(let e=0,l=r.length;e<l;e++)r[e]=vd(r[e],t);else{if(!r._readableState&&r.pipe&&(r=r.pipe(md(t))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}});var wd=K(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.merge=void 0;var Jj=bd();function Zj(r){let t=Jj(r);return r.forEach(e=>{e.once("error",l=>t.emit("error",l))}),t.once("close",()=>jd(r)),t.once("end",()=>jd(r)),t}Mr.merge=Zj;function jd(r){r.forEach(t=>t.emit("close"))}});var Cd=K(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isEmpty=yi.isString=void 0;function e0(r){return typeof r=="string"}yi.isString=e0;function t0(r){return r===""}yi.isEmpty=t0});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 i0=q_();Ze.array=i0;var r0=W_();Ze.errno=r0;var n0=$_();Ze.fs=n0;var a0=K_();Ze.path=a0;var s0=yd();Ze.pattern=s0;var u0=wd();Ze.stream=u0;var o0=Cd();Ze.string=o0});var Ed=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 l0(r,t){let e=kd(r),l=Sd(r,t.ignore),d=e.filter(A=>At.pattern.isStaticPattern(A,t)),m=e.filter(A=>At.pattern.isDynamicPattern(A,t)),g=Cs(d,l,!1),E=Cs(m,l,!0);return g.concat(E)}et.generate=l0;function Cs(r,t,e){let l=[],d=At.pattern.getPatternsOutsideCurrentDirectory(r),m=At.pattern.getPatternsInsideCurrentDirectory(r),g=ks(d),E=ks(m);return l.push(...Ss(g,t,e)),"."in E?l.push(Es(".",m,t,e)):l.push(...Ss(E,t,e)),l}et.convertPatternsToTasks=Cs;function kd(r){return At.pattern.getPositivePatterns(r)}et.getPositivePatterns=kd;function Sd(r,t){return At.pattern.getNegativePatterns(r).concat(t).map(At.pattern.convertToPositivePattern)}et.getNegativePatternsAsPositive=Sd;function ks(r){let t={};return r.reduce((e,l)=>{let d=At.pattern.getBaseDirectory(l);return d in e?e[d].push(l):e[d]=[l],e},t)}et.groupPatternsByBaseDirectory=ks;function Ss(r,t,e){return Object.keys(r).map(l=>Es(l,r[l],t,e))}et.convertPatternGroupsToTasks=Ss;function Es(r,t,e,l){return{dynamic:l,positive:t,negative:e,base:r,patterns:[].concat(t,e.map(At.pattern.convertToNegativePattern))}}et.convertPatternGroupToTask=Es});var Ad=K(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.removeDuplicateSlashes=mi.transform=void 0;var c0=/(?!^)\/{2,}/g;function _0(r){return r.map(t=>Rd(t))}mi.transform=_0;function Rd(r){return r.replace(c0,"/")}mi.removeDuplicateSlashes=Rd});var Dd=K(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.read=void 0;function f0(r,t,e){t.fs.lstat(r,(l,d)=>{if(l!==null){Td(e,l);return}if(!d.isSymbolicLink()||!t.followSymbolicLink){Rs(e,d);return}t.fs.stat(r,(m,g)=>{if(m!==null){if(t.throwErrorOnBrokenSymbolicLink){Td(e,m);return}Rs(e,d);return}t.markSymbolicLink&&(g.isSymbolicLink=()=>!0),Rs(e,g)})})}Fr.read=f0;function Td(r,t){r(t)}function Rs(r,t){r(null,t)}});var Pd=K(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.read=void 0;function d0(r,t){let e=t.fs.lstatSync(r);if(!e.isSymbolicLink()||!t.followSymbolicLink)return e;try{let l=t.fs.statSync(r);return t.markSymbolicLink&&(l.isSymbolicLink=()=>!0),l}catch(l){if(!t.throwErrorOnBrokenSymbolicLink)return e;throw l}}Or.read=d0});var Id=K(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.createFileSystemAdapter=Mt.FILE_SYSTEM_ADAPTER=void 0;var xr=require("fs");Mt.FILE_SYSTEM_ADAPTER={lstat:xr.lstat,stat:xr.stat,lstatSync:xr.lstatSync,statSync:xr.statSync};function p0(r){return r===void 0?Mt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Mt.FILE_SYSTEM_ADAPTER),r)}Mt.createFileSystemAdapter=p0});var Md=K(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});var h0=Id(),As=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=h0.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}};Ts.default=As});var Jt=K(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.statSync=Ft.stat=Ft.Settings=void 0;var Fd=Dd(),y0=Pd(),Ds=Md();Ft.Settings=Ds.default;function m0(r,t,e){if(typeof t=="function"){Fd.read(r,Ps(),t);return}Fd.read(r,Ps(t),e)}Ft.stat=m0;function v0(r,t){let e=Ps(t);return y0.read(r,e)}Ft.statSync=v0;function Ps(r={}){return r instanceof Ds.default?r:new Ds.default(r)}});var Ld=K((JC,xd)=>{var Od;xd.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):r=>(Od||(Od=Promise.resolve())).then(r).catch(t=>setTimeout(()=>{throw t},0))});var Nd=K((ZC,Bd)=>{Bd.exports=b0;var g0=Ld();function b0(r,t){let e,l,d,m=!0;Array.isArray(r)?(e=[],l=r.length):(d=Object.keys(r),e={},l=d.length);function g(A){function L(){t&&t(A,e),t=null}m?g0(L):L()}function E(A,L,D){e[A]=D,(--l===0||L)&&g(L)}l?d?d.forEach(function(A){r[A](function(L,D){E(A,L,D)})}):r.forEach(function(A,L){A(function(D,U){E(L,D,U)})}):g(null),m=!1}});var Is=K(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Lr=process.versions.node.split(".");if(Lr[0]===void 0||Lr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ud=Number.parseInt(Lr[0],10),j0=Number.parseInt(Lr[1],10),Hd=10,w0=10,C0=Ud>Hd,k0=Ud===Hd&&j0>=w0;Br.IS_SUPPORT_READDIR_WITH_FILE_TYPES=C0||k0});var qd=K(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.createDirentFromStats=void 0;var Ms=class{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}};function S0(r,t){return new Ms(r,t)}Nr.createDirentFromStats=S0});var Fs=K(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.fs=void 0;var E0=qd();Ur.fs=E0});var Os=K(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.joinPathSegments=void 0;function R0(r,t,e){return r.endsWith(e)?r+t:r+e+t}Hr.joinPathSegments=R0});var Vd=K(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.readdir=Ot.readdirWithFileTypes=Ot.read=void 0;var A0=Jt(),Wd=Nd(),T0=Is(),$d=Fs(),Kd=Os();function D0(r,t,e){if(!t.stats&&T0.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Gd(r,t,e);return}Yd(r,t,e)}Ot.read=D0;function Gd(r,t,e){t.fs.readdir(r,{withFileTypes:!0},(l,d)=>{if(l!==null){qr(e,l);return}let m=d.map(E=>({dirent:E,name:E.name,path:Kd.joinPathSegments(r,E.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){xs(e,m);return}let g=m.map(E=>P0(E,t));Wd(g,(E,A)=>{if(E!==null){qr(e,E);return}xs(e,A)})})}Ot.readdirWithFileTypes=Gd;function P0(r,t){return e=>{if(!r.dirent.isSymbolicLink()){e(null,r);return}t.fs.stat(r.path,(l,d)=>{if(l!==null){if(t.throwErrorOnBrokenSymbolicLink){e(l);return}e(null,r);return}r.dirent=$d.fs.createDirentFromStats(r.name,d),e(null,r)})}}function Yd(r,t,e){t.fs.readdir(r,(l,d)=>{if(l!==null){qr(e,l);return}let m=d.map(g=>{let E=Kd.joinPathSegments(r,g,t.pathSegmentSeparator);return A=>{A0.stat(E,t.fsStatSettings,(L,D)=>{if(L!==null){A(L);return}let U={name:g,path:E,dirent:$d.fs.createDirentFromStats(g,D)};t.stats&&(U.stats=D),A(null,U)})}});Wd(m,(g,E)=>{if(g!==null){qr(e,g);return}xs(e,E)})})}Ot.readdir=Yd;function qr(r,t){r(t)}function xs(r,t){r(null,t)}});var Zd=K(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.readdir=xt.readdirWithFileTypes=xt.read=void 0;var I0=Jt(),M0=Is(),Qd=Fs(),zd=Os();function F0(r,t){return!t.stats&&M0.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Xd(r,t):Jd(r,t)}xt.read=F0;function Xd(r,t){return t.fs.readdirSync(r,{withFileTypes:!0}).map(l=>{let d={dirent:l,name:l.name,path:zd.joinPathSegments(r,l.name,t.pathSegmentSeparator)};if(d.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let m=t.fs.statSync(d.path);d.dirent=Qd.fs.createDirentFromStats(d.name,m)}catch(m){if(t.throwErrorOnBrokenSymbolicLink)throw m}return d})}xt.readdirWithFileTypes=Xd;function Jd(r,t){return t.fs.readdirSync(r).map(l=>{let d=zd.joinPathSegments(r,l,t.pathSegmentSeparator),m=I0.statSync(d,t.fsStatSettings),g={name:l,path:d,dirent:Qd.fs.createDirentFromStats(l,m)};return t.stats&&(g.stats=m),g})}xt.readdir=Jd});var ep=K(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.createFileSystemAdapter=Lt.FILE_SYSTEM_ADAPTER=void 0;var vi=require("fs");Lt.FILE_SYSTEM_ADAPTER={lstat:vi.lstat,stat:vi.stat,lstatSync:vi.lstatSync,statSync:vi.statSync,readdir:vi.readdir,readdirSync:vi.readdirSync};function O0(r){return r===void 0?Lt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Lt.FILE_SYSTEM_ADAPTER),r)}Lt.createFileSystemAdapter=O0});var tp=K(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var x0=require("path"),L0=Jt(),B0=ep(),Ls=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=B0.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,x0.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new L0.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};Bs.default=Ls});var Wr=K(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.Settings=Bt.scandirSync=Bt.scandir=void 0;var ip=Vd(),N0=Zd(),Ns=tp();Bt.Settings=Ns.default;function U0(r,t,e){if(typeof t=="function"){ip.read(r,Us(),t);return}ip.read(r,Us(t),e)}Bt.scandir=U0;function H0(r,t){let e=Us(t);return N0.read(r,e)}Bt.scandirSync=H0;function Us(r={}){return r instanceof Ns.default?r:new Ns.default(r)}});var np=K((lk,rp)=>{"use strict";function q0(r){var t=new r,e=t;function l(){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:l,release:d}}rp.exports=q0});var sp=K((ck,Hs)=>{"use strict";var W0=np();function ap(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 l=W0($0),d=null,m=null,g=0,E=null,A={push:Y,drain:ft,saturated:ft,pause:D,paused:!1,concurrency:e,running:L,resume:_e,idle:$,length:U,getQueue:P,unshift:Z,empty:ft,kill:Ee,killAndDrain:ge,error:qe};return A;function L(){return g}function D(){A.paused=!0}function U(){for(var ue=d,ae=0;ue;)ue=ue.next,ae++;return ae}function P(){for(var ue=d,ae=[];ue;)ae.push(ue.value),ue=ue.next;return ae}function _e(){if(!!A.paused){A.paused=!1;for(var ue=0;ue<A.concurrency;ue++)g++,ne()}}function $(){return g===0&&A.length()===0}function Y(ue,ae){var ee=l.get();ee.context=r,ee.release=ne,ee.value=ue,ee.callback=ae||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(ue,ae){var ee=l.get();ee.context=r,ee.release=ne,ee.value=ue,ee.callback=ae||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 ne(ue){ue&&l.release(ue);var ae=d;ae?A.paused?g--:(m===d&&(m=null),d=ae.next,ae.next=null,t.call(r,ae.value,ae.worked),m===null&&A.empty()):--g===0&&A.drain()}function Ee(){d=null,m=null,A.drain=ft}function ge(){d=null,m=null,A.drain(),A.drain=ft}function qe(ue){E=ue}}function ft(){}function $0(){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,l){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,l),r.release(r)}}function K0(r,t,e){typeof r=="function"&&(e=t,t=r,r=null);function l(D,U){t.call(this,D).then(function(P){U(null,P)},U)}var d=ap(r,l,e),m=d.push,g=d.unshift;return d.push=E,d.unshift=A,d.drained=L,d;function E(D){var U=new Promise(function(P,_e){m(D,function($,Y){if($){_e($);return}P(Y)})});return U.catch(ft),U}function A(D){var U=new Promise(function(P,_e){g(D,function($,Y){if($){_e($);return}P(Y)})});return U.catch(ft),U}function L(){var D=d.drain,U=new Promise(function(P){d.drain=function(){D(),P()}});return U}}Hs.exports=ap;Hs.exports.promise=K0});var $r=K(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.joinPathSegments=vt.replacePathSegmentSeparator=vt.isAppliedFilter=vt.isFatalError=void 0;function G0(r,t){return r.errorFilter===null?!0:!r.errorFilter(t)}vt.isFatalError=G0;function Y0(r,t){return r===null||r(t)}vt.isAppliedFilter=Y0;function V0(r,t){return r.split(/[/\\]/).join(t)}vt.replacePathSegmentSeparator=V0;function Q0(r,t,e){return r===""?t:r.endsWith(e)?r+t:r+e+t}vt.joinPathSegments=Q0});var $s=K(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var z0=$r(),qs=class{constructor(t,e){this._root=t,this._settings=e,this._root=z0.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}};Ws.default=qs});var Ys=K(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});var X0=require("events"),J0=Wr(),Z0=sp(),Kr=$r(),ew=$s(),Ks=class extends ew.default{constructor(t,e){super(t,e),this._settings=e,this._scandir=J0.scandir,this._emitter=new X0.EventEmitter,this._queue=Z0(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){let l={directory:t,base:e};this._queue.push(l,d=>{d!==null&&this._handleError(d)})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(l,d)=>{if(l!==null){e(l,void 0);return}for(let m of d)this._handleEntry(m,t.base);e(null,void 0)})}_handleError(t){this._isDestroyed||!Kr.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 l=t.path;e!==void 0&&(t.path=Kr.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Kr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Kr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(l,e===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Gs.default=Ks});var up=K(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});var tw=Ys(),Vs=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new tw.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(e=>{iw(t,e)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{rw(t,this._storage)}),this._reader.read()}};Qs.default=Vs;function iw(r,t){r(t)}function rw(r,t){r(null,t)}});var op=K(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var nw=require("stream"),aw=Ys(),zs=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new aw.default(this._root,this._settings),this._stream=new nw.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Xs.default=zs});var lp=K(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var sw=Wr(),Gr=$r(),uw=$s(),Js=class extends uw.default{constructor(){super(...arguments),this._scandir=sw.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,e){try{let l=this._scandir(t,this._settings.fsScandirSettings);for(let d of l)this._handleEntry(d,e)}catch(l){this._handleError(l)}}_handleError(t){if(!!Gr.isFatalError(this._settings,t))throw t}_handleEntry(t,e){let l=t.path;e!==void 0&&(t.path=Gr.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Gr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Gr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(l,e===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Zs.default=Js});var cp=K(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var ow=lp(),eu=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new ow.default(this._root,this._settings)}read(){return this._reader.read()}};tu.default=eu});var _p=K(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});var lw=require("path"),cw=Wr(),iu=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,lw.sep),this.fsScandirSettings=new cw.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};ru.default=iu});var Vr=K(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.Settings=gt.walkStream=gt.walkSync=gt.walk=void 0;var fp=up(),_w=op(),fw=cp(),nu=_p();gt.Settings=nu.default;function dw(r,t,e){if(typeof t=="function"){new fp.default(r,Yr()).read(t);return}new fp.default(r,Yr(t)).read(e)}gt.walk=dw;function pw(r,t){let e=Yr(t);return new fw.default(r,e).read()}gt.walkSync=pw;function hw(r,t){let e=Yr(t);return new _w.default(r,e).read()}gt.walkStream=hw;function Yr(r={}){return r instanceof nu.default?r:new nu.default(r)}});var Qr=K(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var yw=require("path"),mw=Jt(),dp=Rt(),au=class{constructor(t){this._settings=t,this._fsStatSettings=new mw.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return yw.resolve(this._settings.cwd,t)}_makeEntry(t,e){let l={name:e,path:e,dirent:dp.fs.createDirentFromStats(e,t)};return this._settings.stats&&(l.stats=t),l}_isFatalError(t){return!dp.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};su.default=au});var lu=K(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var vw=require("stream"),gw=Jt(),bw=Vr(),jw=Qr(),uu=class extends jw.default{constructor(){super(...arguments),this._walkStream=bw.walkStream,this._stat=gw.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){let l=t.map(this._getFullEntryPath,this),d=new vw.PassThrough({objectMode:!0});d._write=(m,g,E)=>this._getEntry(l[m],t[m],e).then(A=>{A!==null&&e.entryFilter(A)&&d.push(A),m===l.length-1&&d.end(),E()}).catch(E);for(let m=0;m<l.length;m++)d.write(m);return d}_getEntry(t,e,l){return this._getStat(t).then(d=>this._makeEntry(d,e)).catch(d=>{if(l.errorFilter(d))return null;throw d})}_getStat(t){return new Promise((e,l)=>{this._stat(t,this._fsStatSettings,(d,m)=>d===null?e(m):l(d))})}};ou.default=uu});var pp=K(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});var ww=Vr(),Cw=Qr(),kw=lu(),cu=class extends Cw.default{constructor(){super(...arguments),this._walkAsync=ww.walk,this._readerStream=new kw.default(this._settings)}dynamic(t,e){return new Promise((l,d)=>{this._walkAsync(t,e,(m,g)=>{m===null?l(g):d(m)})})}async static(t,e){let l=[],d=this._readerStream.static(t,e);return new Promise((m,g)=>{d.once("error",g),d.on("data",E=>l.push(E)),d.once("end",()=>m(l))})}};_u.default=cu});var hp=K(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});var gi=Rt(),fu=class{constructor(t,e,l){this._patterns=t,this._settings=e,this._micromatchOptions=l,this._storage=[],this._fillStorage()}_fillStorage(){let t=gi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let e of t){let l=this._getPatternSegments(e),d=this._splitSegmentsIntoSections(l);this._storage.push({complete:d.length<=1,pattern:e,segments:l,sections:d})}}_getPatternSegments(t){return gi.pattern.getPatternParts(t,this._micromatchOptions).map(l=>gi.pattern.isDynamicPattern(l,this._settings)?{dynamic:!0,pattern:l,patternRe:gi.pattern.makeRe(l,this._micromatchOptions)}:{dynamic:!1,pattern:l})}_splitSegmentsIntoSections(t){return gi.array.splitWhen(t,e=>e.dynamic&&gi.pattern.hasGlobStar(e.pattern))}};du.default=fu});var yp=K(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});var Sw=hp(),pu=class extends Sw.default{match(t){let e=t.split("/"),l=e.length,d=this._storage.filter(m=>!m.complete||m.segments.length>l);for(let m of d){let g=m.sections[0];if(!m.complete&&l>g.length||e.every((A,L)=>{let D=m.segments[L];return!!(D.dynamic&&D.patternRe.test(A)||!D.dynamic&&D.pattern===A)}))return!0}return!1}};hu.default=pu});var mp=K(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var zr=Rt(),Ew=yp(),yu=class{constructor(t,e){this._settings=t,this._micromatchOptions=e}getFilter(t,e,l){let d=this._getMatcher(e),m=this._getNegativePatternsRe(l);return g=>this._filter(t,g,d,m)}_getMatcher(t){return new Ew.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let e=t.filter(zr.pattern.isAffectDepthOfReadingPattern);return zr.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,l,d){if(this._isSkippedByDeep(t,e.path)||this._isSkippedSymbolicLink(e))return!1;let m=zr.path.removeLeadingDotSegment(e.path);return this._isSkippedByPositivePatterns(m,l)?!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 l=e.split("/").length;if(t==="")return l;let d=t.split("/").length;return l-d}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!zr.pattern.matchAny(t,e)}};mu.default=yu});var vp=K(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});var Zt=Rt(),vu=class{constructor(t,e){this._settings=t,this._micromatchOptions=e,this.index=new Map}getFilter(t,e){let l=Zt.pattern.convertPatternsToRe(t,this._micromatchOptions),d=Zt.pattern.convertPatternsToRe(e,this._micromatchOptions);return m=>this._filter(m,l,d)}_filter(t,e,l){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,l))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,l,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 l=Zt.path.makeAbsolute(this._settings.cwd,t);return Zt.pattern.matchAny(l,e)}_isMatchToPatterns(t,e,l){let d=Zt.path.removeLeadingDotSegment(t),m=Zt.pattern.matchAny(d,e);return!m&&l?Zt.pattern.matchAny(d+"/",e):m}};gu.default=vu});var gp=K(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});var Rw=Rt(),bu=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Rw.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};ju.default=bu});var jp=K(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});var bp=Rt(),wu=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;return this._settings.absolute&&(e=bp.path.makeAbsolute(this._settings.cwd,e),e=bp.path.unixify(e)),this._settings.markDirectories&&t.dirent.isDirectory()&&(e+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:e}):e}};Cu.default=wu});var Xr=K(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});var Aw=require("path"),Tw=mp(),Dw=vp(),Pw=gp(),Iw=jp(),ku=class{constructor(t){this._settings=t,this.errorFilter=new Pw.default(this._settings),this.entryFilter=new Dw.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Tw.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Iw.default(this._settings)}_getRootDirectory(t){return Aw.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}}};Su.default=ku});var wp=K(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});var Mw=pp(),Fw=Xr(),Eu=class extends Fw.default{constructor(){super(...arguments),this._reader=new Mw.default(this._settings)}async read(t){let e=this._getRootDirectory(t),l=this._getReaderOptions(t);return(await this.api(e,t,l)).map(m=>l.transform(m))}api(t,e,l){return e.dynamic?this._reader.dynamic(t,l):this._reader.static(e.patterns,l)}};Ru.default=Eu});var Cp=K(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});var Ow=require("stream"),xw=lu(),Lw=Xr(),Au=class extends Lw.default{constructor(){super(...arguments),this._reader=new xw.default(this._settings)}read(t){let e=this._getRootDirectory(t),l=this._getReaderOptions(t),d=this.api(e,t,l),m=new Ow.Readable({objectMode:!0,read:()=>{}});return d.once("error",g=>m.emit("error",g)).on("data",g=>m.emit("data",l.transform(g))).once("end",()=>m.emit("end")),m.once("close",()=>d.destroy()),m}api(t,e,l){return e.dynamic?this._reader.dynamic(t,l):this._reader.static(e.patterns,l)}};Tu.default=Au});var kp=K(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var Bw=Jt(),Nw=Vr(),Uw=Qr(),Du=class extends Uw.default{constructor(){super(...arguments),this._walkSync=Nw.walkSync,this._statSync=Bw.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){let l=[];for(let d of t){let m=this._getFullEntryPath(d),g=this._getEntry(m,d,e);g===null||!e.entryFilter(g)||l.push(g)}return l}_getEntry(t,e,l){try{let d=this._getStat(t);return this._makeEntry(d,e)}catch(d){if(l.errorFilter(d))return null;throw d}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Pu.default=Du});var Sp=K(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var Hw=kp(),qw=Xr(),Iu=class extends qw.default{constructor(){super(...arguments),this._reader=new Hw.default(this._settings)}read(t){let e=this._getRootDirectory(t),l=this._getReaderOptions(t);return this.api(e,t,l).map(l.transform)}api(t,e,l){return e.dynamic?this._reader.dynamic(t,l):this._reader.static(e.patterns,l)}};Mu.default=Iu});var Ep=K(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var bi=require("fs"),Ww=require("os"),$w=Math.max(Ww.cpus().length,1);ji.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:bi.lstat,lstatSync:bi.lstatSync,stat:bi.stat,statSync:bi.statSync,readdir:bi.readdir,readdirSync:bi.readdirSync};var Fu=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,$w),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({},ji.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};ji.default=Fu});var Dp=K((Ok,Tp)=>{"use strict";var Rp=Ed(),Ap=Ad(),Kw=wp(),Gw=Cp(),Yw=Sp(),Ou=Ep(),ei=Rt();async function xu(r,t){wi(r);let e=Lu(r,Kw.default,t),l=await Promise.all(e);return ei.array.flatten(l)}(function(r){function t(g,E){wi(g);let A=Lu(g,Yw.default,E);return ei.array.flatten(A)}r.sync=t;function e(g,E){wi(g);let A=Lu(g,Gw.default,E);return ei.stream.merge(A)}r.stream=e;function l(g,E){wi(g);let A=Ap.transform([].concat(g)),L=new Ou.default(E);return Rp.generate(A,L)}r.generateTasks=l;function d(g,E){wi(g);let A=new Ou.default(E);return ei.pattern.isDynamicPattern(g,A)}r.isDynamicPattern=d;function m(g){return wi(g),ei.path.escape(g)}r.escapePath=m})(xu||(xu={}));function Lu(r,t,e){let l=Ap.transform([].concat(r)),d=new Ou.default(e),m=Rp.generate(l,d),g=new t(d);return m.map(g.read,g)}function wi(r){if(![].concat(r).every(l=>ei.string.isString(l)&&!ei.string.isEmpty(l)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Tp.exports=xu});var Vw={};Ng(Vw,{registerWorker:()=>Ip});module.exports=Ug(Vw);var ve=Ni(require("apache-arrow"));function fi(r){switch(r.typeId){case ve.Type.Binary:return{sqlType:"binary"};case ve.Type.Bool:return{sqlType:"bool"};case ve.Type.Date:return{sqlType:"date"};case ve.Type.DateDay:return{sqlType:"date32[d]"};case ve.Type.DateMillisecond:return{sqlType:"date64[ms]"};case ve.Type.Decimal:{let t=r;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case ve.Type.Float:return{sqlType:"float"};case ve.Type.Float16:return{sqlType:"float16"};case ve.Type.Float32:return{sqlType:"float32"};case ve.Type.Float64:return{sqlType:"float64"};case ve.Type.Int:return{sqlType:"int32"};case ve.Type.Int16:return{sqlType:"int16"};case ve.Type.Int32:return{sqlType:"int32"};case ve.Type.Int64:return{sqlType:"int64"};case ve.Type.Uint16:return{sqlType:"uint16"};case ve.Type.Uint32:return{sqlType:"uint32"};case ve.Type.Uint64:return{sqlType:"uint64"};case ve.Type.Uint8:return{sqlType:"uint8"};case ve.Type.IntervalDayTime:return{sqlType:"interval[dt]"};case ve.Type.IntervalYearMonth:return{sqlType:"interval[m]"};case ve.Type.List:return{sqlType:"list",valueType:fi(r.valueType)};case ve.Type.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:r.byteWidth};case ve.Type.Null:return{sqlType:"null"};case ve.Type.Utf8:return{sqlType:"utf8"};case ve.Type.Struct:return{sqlType:"struct",fields:r.children.map(e=>hr(e.name,e.type))};case ve.Type.Map:{let t=r;return{sqlType:"map",keyType:fi(t.keyType),valueType:fi(t.valueType)}}case ve.Type.Time:return{sqlType:"time[s]"};case ve.Type.TimeMicrosecond:return{sqlType:"time[us]"};case ve.Type.TimeMillisecond:return{sqlType:"time[ms]"};case ve.Type.TimeNanosecond:return{sqlType:"time[ns]"};case ve.Type.TimeSecond:return{sqlType:"time[s]"};case ve.Type.Timestamp:return{sqlType:"timestamp",timezone:r.timezone||void 0};case ve.Type.TimestampSecond:return{sqlType:"timestamp[s]",timezone:r.timezone||void 0};case ve.Type.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:r.timezone||void 0};case ve.Type.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:r.timezone||void 0};case ve.Type.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:r.timezone||void 0}}throw new Error(`unsupported arrow type: ${r.toString()}`)}function hr(r,t){let e=fi(t);return e.name=r,e}var yr=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 l={name:e.name,message:e.message,stack:e.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"ERROR",data:l},[])}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((l,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]),l=[];e&&l.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},l);break}case"POLL_PENDING_QUERY":{let e=this._bindings.pollPendingQuery(t.data),l=[];e&&l.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},l);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 M_={},Hg=(()=>{var r=M_.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},l,d;e.ready=new Promise(function(v,w){l=v,d=w});var m=Object.assign({},e),g=[],E="./this.program",A=(v,w)=>{throw w},L=typeof window=="object",D=typeof importScripts=="function",U=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,ne;function Ee(v){if(v instanceof jt)return;ae("exiting due to exception: "+v)}if(U){D?P=require("path").dirname(P)+"/":P=__dirname+"/";var ge,qe;typeof require=="function"&&(ge=require("fs"),qe=require("path")),$=(v,w)=>(v=qe.normalize(v),ge.readFileSync(v,w?void 0:"utf8")),Z=v=>{var w=$(v,!0);return w.buffer||(w=new Uint8Array(w)),w},Y=(v,w,k)=>{v=qe.normalize(v),ge.readFile(v,function(T,B){T?k(T):w(B.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,w)=>{if(bt())throw process.exitCode=v,w;Ee(w),process.exit(v)},e.inspect=function(){return"[Emscripten Module object]"}}else(L||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 w=new XMLHttpRequest;return w.open("GET",v,!1),w.send(null),w.responseText},D&&(Z=v=>{var w=new XMLHttpRequest;return w.open("GET",v,!1),w.responseType="arraybuffer",w.send(null),new Uint8Array(w.response)}),Y=(v,w,k)=>{var T=new XMLHttpRequest;T.open("GET",v,!0),T.responseType="arraybuffer",T.onload=()=>{if(T.status==200||T.status==0&&T.response){w(T.response);return}k()},T.onerror=k,T.send(null)},ne=v=>document.title=v);var ue=e.print||console.log.bind(console),ae=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 re=e.noExitRuntime||!0;typeof WebAssembly!="object"&&xe("no native wasm support detected");var G,pe=!1,M;function ce(v,w){v||xe(w)}var se=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Te(v,w,k){w>>>=0;for(var T=w+k,B=w;v[B]&&!(B>=T);)++B;if(B-w>16&&v.buffer&&se)return se.decode(v.subarray(w,B));for(var Q="";w<B;){var W=v[w++];if(!(W&128)){Q+=String.fromCharCode(W);continue}var q=v[w++]&63;if((W&224)==192){Q+=String.fromCharCode((W&31)<<6|q);continue}var J=v[w++]&63;if((W&240)==224?W=(W&15)<<12|q<<6|J:W=(W&7)<<18|q<<12|J<<6|v[w++]&63,W<65536)Q+=String.fromCharCode(W);else{var je=W-65536;Q+=String.fromCharCode(55296|je>>10,56320|je&1023)}}return Q}function R(v,w){return v>>>=0,v?Te(Ae,v,w):""}function I(v,w,k,T){if(k>>>=0,!(T>0))return 0;for(var B=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;w[k++>>>0]=q}else if(q<=2047){if(k+1>=Q)break;w[k++>>>0]=192|q>>6,w[k++>>>0]=128|q&63}else if(q<=65535){if(k+2>=Q)break;w[k++>>>0]=224|q>>12,w[k++>>>0]=128|q>>6&63,w[k++>>>0]=128|q&63}else{if(k+3>=Q)break;w[k++>>>0]=240|q>>18,w[k++>>>0]=128|q>>12&63,w[k++>>>0]=128|q>>6&63,w[k++>>>0]=128|q&63}}return w[k>>>0]=0,k-B}function Me(v,w,k){return I(v,Ae,w,k)}function be(v){for(var w=0,k=0;k<v.length;++k){var T=v.charCodeAt(k);T<=127?w++:T<=2047?w+=2:T>=55296&&T<=57343?(w+=4,++k):w+=3}return w}var Xe,Fe,Ae,Je,Nt,F,he,fe,Tt;function Ut(v){Xe=v,e.HEAP8=Fe=new Int8Array(v),e.HEAP16=Je=new Int16Array(v),e.HEAP32=F=new Int32Array(v),e.HEAPU8=Ae=new Uint8Array(v),e.HEAPU16=Nt=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,De,H=[],oe=[],Ne=[],Ge=[],Ke=!1;function bt(){return re}function Dt(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)tn(e.preRun.shift());wt(H)}function Jr(){Ke=!0,wt(oe)}function Zr(){wt(Ne)}function en(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)nn(e.postRun.shift());wt(Ge)}function tn(v){H.unshift(v)}function rn(v){oe.unshift(v)}function nn(v){Ge.unshift(v)}var tt=0,Ht=null,dt=null;function an(v){tt++,e.monitorRunDependencies&&e.monitorRunDependencies(tt)}function sn(v){if(tt--,e.monitorRunDependencies&&e.monitorRunDependencies(tt),tt==0&&(Ht!==null&&(clearInterval(Ht),Ht=null),dt)){var w=dt;dt=null,w()}}function xe(v){e.onAbort&&e.onAbort(v),v="Aborted("+v+")",ae(v),pe=!0,M=1,v+=". Build with -sASSERTIONS for more info.",sr()}var un="data:application/octet-stream;base64,";function Ci(v){return v.startsWith(un)}var Ue;e.locateFile?(Ue="./duckdb-eh.wasm",Ci(Ue)||(Ue=_e(Ue))):Ue=new URL("./duckdb-eh.wasm",M_.url).toString();function ki(v){try{if(v==Ue&&ee)return new Uint8Array(ee);if(Z)return Z(v);throw"both async and sync fetching of the wasm failed"}catch(w){xe(w)}}function on(){return!ee&&(L||D)&&typeof fetch=="function"?fetch(Ue,{credentials:"same-origin"}).then(function(v){if(!v.ok)throw"failed to load wasm binary file at '"+Ue+"'";return v.arrayBuffer()}).catch(function(){return ki(Ue)}):Promise.resolve().then(function(){return ki(Ue)})}function ln(){var v={a:ma};function w(W,q){var J=W.exports;e.asm=J,G=e.asm.ja,Ut(G.buffer),De=e.asm.ma,rn(e.asm.ka),sn("wasm-instantiate")}an("wasm-instantiate");function k(W){w(W.instance)}function T(W){return on().then(function(q){return WebAssembly.instantiate(q,v)}).then(function(q){return q}).then(W,function(q){ae("failed to asynchronously prepare wasm: "+q),xe(q)})}function B(){return!ee&&typeof WebAssembly.instantiateStreaming=="function"&&!Ci(Ue)&&!U&&typeof fetch=="function"?fetch(Ue,{credentials:"same-origin"}).then(function(W){var q=WebAssembly.instantiateStreaming(W,v);return q.then(k,function(J){return ae("wasm streaming compile failed: "+J),ae("falling back to ArrayBuffer instantiation"),T(k)})}):T(k)}if(e.instantiateWasm)try{var Q=e.instantiateWasm(v,w);return Q}catch(W){ae("Module.instantiateWasm callback failed with error: "+W),d(W)}return B().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 cn(v,w,k,T){xe("Assertion failed: "+R(v)+", at: "+[w?R(w):"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 w=R(v);return w}};function ti(v,w,k,T,B){for(var Q=0,W=w?F[w>>>2]:0,q=w?F[w+4>>>2]:0,J=k?F[k>>>2]:0,je=k?F[k+4>>>2]:0,we=T?F[T>>>2]:0,Ve=T?F[T+4>>>2]:0,Se=0,rt=0,Le=0,b=0,de=0,j=0,h=(w?F[w>>>2]:0)|(k?F[k>>>2]:0)|(T?F[T>>>2]:0),te=(w?F[w+4>>>2]:0)|(k?F[k+4>>>2]:0)|(T?F[T+4>>>2]:0),Ce=function(lr,cr,_r,Li){return lr<32?cr&Li:_r&Li},Re=0;Re<v;Re++){var Qe=1<<Re%32;if(!!Ce(Re,h,te,Qe)){var It=Ct.getStreamFromFD(Re),Yt=Ct.DEFAULT_POLLMASK;It.stream_ops.poll&&(Yt=It.stream_ops.poll(It)),Yt&1&&Ce(Re,W,q,Qe)&&(Re<32?Se=Se|Qe:rt=rt|Qe,Q++),Yt&4&&Ce(Re,J,je,Qe)&&(Re<32?Le=Le|Qe:b=b|Qe,Q++),Yt&2&&Ce(Re,we,Ve,Qe)&&(Re<32?de=de|Qe:j=j|Qe,Q++)}}return w&&(F[w>>>2]=Se,F[w+4>>>2]=rt),k&&(F[k>>>2]=Le,F[k+4>>>2]=b),T&&(F[T>>>2]=de,F[T+4>>>2]=j),Q}function _n(){ae("missing function: $SOCKFS"),xe(-1)}function qt(){ae("missing function: $FS"),xe(-1)}function Wt(v){var w=_n.getSocket(v);if(!w)throw new qt.ErrnoError(8);return w}function it(v){return(v&255)+"."+(v>>8&255)+"."+(v>>16&255)+"."+(v>>24&255)}function ct(v){var w="",k=0,T=0,B=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],je=!0,we="";for(q=0;q<5;q++)if(J[q]!==0){je=!1;break}if(je){if(we=it(J[6]|J[7]<<16),J[5]===-1)return w="::ffff:",w+=we,w;if(J[5]===0)return w="::",we==="0.0.0.0"&&(we=""),we==="0.0.0.1"&&(we="1"),w+=we,w}for(k=0;k<8;k++)J[k]===0&&(k-B>1&&(W=0),B=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&&(w+=":",Q===0&&(w+=":"));continue}w+=Number(Mi(J[k]&65535)).toString(16),w+=k<7?":":""}return w}function Si(v,w){var k=Je[v>>>1],T=Mi(Nt[v+2>>>1]),B;switch(k){case 2:if(w!==16)return{errno:28};B=F[v+4>>>2],B=it(B);break;case 10:if(w!==28)return{errno:28};B=[F[v+8>>>2],F[v+12>>>2],F[v+16>>>2],F[v+20>>>2]],B=ct(B);break;default:return{errno:5}}return{family:k,addr:B,port:T}}function kt(v){for(var w=v.split("."),k=0;k<4;k++){var T=Number(w[k]);if(isNaN(T))return null;w[k]=T}return(w[0]|w[1]<<8|w[2]<<16|w[3]<<24)>>>0}function X(v){return parseInt(v)}function Ei(v){var w,k,T,B,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"),":"),w=v.split(":"),w[w.length-4]=X(w[w.length-4])+X(w[w.length-3])*256,w[w.length-3]=X(w[w.length-2])+X(w[w.length-1])*256,w=w.slice(0,w.length-2)):w=v.split(":"),T=0,B=0,k=0;k<w.length;k++)if(typeof w[k]=="string")if(w[k]==="Z"){for(B=0;B<8-w.length+1;B++)W[k+B]=0;T=B-1}else W[k+T]=li(parseInt(w[k],16));else W[k+T]=w[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 w=kt(v);if(w!==null||(w=Ei(v),w!==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 $i(v,w,k){if(k&&v===0)return null;var T=Si(v,w);if(T.errno)throw new qt.ErrnoError(T.errno);return T.addr=at.lookup_addr(T.addr)||T.addr,T}function fn(v,w,k){var T=Wt(v),B=$i(w,k);return T.sock_ops.bind(T,B.addr,B.port),0}function dn(v,w,k){var T=Wt(v),B=$i(w,k);return T.sock_ops.connect(T,B.addr,B.port),0}function pn(v,w,k,T){}function hn(v,w,k){return Ct.varargs=k,0}function yn(v,w){}function mn(v,w,k){}function vn(v,w,k){}function Ki(v,w){return Ae.fill(0,v,v+w),v}function Ri(v,w,k,T,B){switch(w){case 2:k=kt(k),Ki(v,16),B&&(F[B>>>2]=16),Je[v>>>1]=w,F[v+4>>>2]=k,Je[v+2>>>1]=li(T);break;case 10:k=Ei(k),Ki(v,28),B&&(F[B>>>2]=28),F[v>>>2]=w,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,w,k){var T=Wt(v);if(!T.daddr)return-53;var B=Ri(w,T.family,at.lookup_name(T.daddr),T.dport,k);return 0}function gn(v,w,k,T,B){var Q=Wt(v);return w===1&&k===4?(F[T>>>2]=Q.error,F[B>>>2]=4,Q.error=null,0):-50}function bn(v,w,k){return Ct.varargs=k,0}function Gi(v,w){}function $t(v,w,k){}function Ai(v,w,k,T){}function Yi(v,w,k,T){Ct.varargs=T}function Vi(v,w,k,T,B,Q){var W=Wt(v),q=W.sock_ops.recvmsg(W,k);if(!q)return 0;if(B)var J=Ri(B,W.family,at.lookup_name(q.addr),q.port,Q);return Ae.set(q.buffer,w>>>0),q.buffer.byteLength}function ii(v,w,k,T){}function ri(v){}function Ti(v,w,k,T,B,Q){}function st(v,w,k){}function Qi(v,w){}function jn(v,w,k){}function wn(v){}var zi="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function Cn(v,w){xe(zi)}function kn(v,w){xe(zi)}var Sn=!0;function En(){return Sn}function Xi(){xe("")}function Di(v,w){return globalThis.DUCKDB_RUNTIME.createDirectory(e,v,w)}function Rn(v,w){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,v,w)}function An(v,w){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,v,w)}function Tn(v,w){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,v,w)}function Dn(v){return globalThis.DUCKDB_RUNTIME.closeFile(e,v)}function Pn(v,w){return globalThis.DUCKDB_RUNTIME.checkFile(e,v,w)}function In(v){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,v)}function Mn(v,w,k,T){return globalThis.DUCKDB_RUNTIME.moveFile(e,v,w,k,T)}function Fn(v,w){return globalThis.DUCKDB_RUNTIME.openFile(e,v,w)}function On(v,w,k,T){return globalThis.DUCKDB_RUNTIME.readFile(e,v,w,k,T)}function xn(v,w){return globalThis.DUCKDB_RUNTIME.truncateFile(e,v,w)}function Ln(v,w,k,T){return globalThis.DUCKDB_RUNTIME.writeFile(e,v,w,k,T)}function Bn(v){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(v)}function Nn(v,w){return globalThis.DUCKDB_RUNTIME.glob(e,v,w)}function Un(v){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,v)}function Hn(v,w,k,T,B,Q){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,v,w,k,T,B,Q)}function Ji(){return Date.now()}function Zi(){return 4294901760}function qn(){return Zi()}var Pi;U?Pi=()=>{var v=process.hrtime();return v[0]*1e3+v[1]/1e6}:Pi=()=>performance.now();function Wn(v,w,k){Ae.copyWithin(v>>>0,w>>>0,w+k>>>0)}function $n(v){try{return G.grow(v-Xe.byteLength+65535>>>16),Ut(G.buffer),1}catch{}}function Kn(v){var w=Ae.length;v=v>>>0;var k=Zi();if(v>k)return!1;let T=(J,je)=>J+(je-J%je)%je;for(var B=1;B<=4;B*=2){var Q=w*(1+.2/B);Q=Math.min(Q,v+100663296);var W=Math.min(k,T(Math.max(v,Q),65536)),q=$n(W);if(q)return!0}return!1}var Ii={};function Gn(){return E||"./this.program"}function Kt(){if(!Kt.strings){var v=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",w={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:v,_:Gn()};for(var k in Ii)Ii[k]===void 0?delete w[k]:w[k]=Ii[k];var T=[];for(var k in w)T.push(k+"="+w[k]);Kt.strings=T}return Kt.strings}function Yn(v,w,k){for(var T=0;T<v.length;++T)Fe[w++>>>0]=v.charCodeAt(T);k||(Fe[w>>>0]=0)}function Vn(v,w){var k=0;return Kt().forEach(function(T,B){var Q=w+k;he[v+B*4>>>2]=Q,Yn(T,Q),k+=T.length+1}),0}function Qn(v,w){var k=Kt();he[v>>>2]=k.length;var T=0;return k.forEach(function(B){T+=B.length+1}),he[w>>>2]=T,0}function zn(v){return 52}function Xn(v,w){var k=v==1||v==2?2:xe();return Fe[w>>>0]=k,0}function Jn(v,w,k,T,B,Q){return 52}function Zn(v,w,k,T,B,Q){return 52}function ea(v,w,k,T){return 52}function ta(v,w,k,T,B){return 70}function ia(v){return 52}var ra=[null,[],[]];function na(v,w){var k=ra[v];w===0||w===10?((v===1?ue:ae)(Te(k,0)),k.length=0):k.push(w)}function aa(v,w,k,T){for(var B=0,Q=0;Q<k;Q++){var W=he[w>>>2],q=he[w+4>>>2];w+=8;for(var J=0;J<q;J++)na(v,Ae[W+J>>>0]);B+=q}return he[T>>>2]=B,0}function er(v,w,k,T){var B=0,Q=0,W=0,q=0,J=0,je=0,we;function Ve(Se,rt,Le,b,de,j){var h,te,Ce,Re;return te=Se===10?28:16,de=Se===10?ct(de):it(de),h=Fi(te),Re=Ri(h,Se,de,j),ce(!Re),Ce=Fi(32),F[Ce+4>>>2]=Se,F[Ce+8>>>2]=rt,F[Ce+12>>>2]=Le,F[Ce+24>>>2]=b,he[Ce+20>>>2]=h,Se===10?F[Ce+16>>>2]=28:F[Ce+16>>>2]=16,F[Ce+28>>>2]=0,Ce}if(k&&(W=F[k>>>2],q=F[k+4>>>2],J=F[k+8>>>2],je=F[k+12>>>2]),J&&!je&&(je=J===2?17:6),!J&&je&&(J=je===17?2:1),je===0&&(je=6),J===0&&(J=1),!v&&!w)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(w&&(w=R(w),Q=parseInt(w,10),isNaN(Q)))return W&1024?-2:-8;if(!v)return q===0&&(q=2),(W&1)===0&&(q===2?B=oi(2130706433):B=[0,0,0,1]),we=Ve(q,J,je,null,B,Q),he[T>>>2]=we,0;if(v=R(v),B=kt(v),B!==null)if(q===0||q===2)q=2;else if(q===10&&W&8)B=[0,0,oi(65535),B],q=10;else return-2;else if(B=Ei(v),B!==null)if(q===0||q===10)q=10;else return-2;return B!=null?(we=Ve(q,J,je,v,B,Q),he[T>>>2]=we,0):W&4?-2:(v=at.lookup_name(v),B=kt(v),q===0?q=2:q===10&&(B=[0,0,oi(65535),B]),we=Ve(q,J,je,null,B,Q),he[T>>>2]=we,0)}function sa(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var v=new Uint8Array(1);return()=>(crypto.getRandomValues(v),v[0])}else if(U)try{var w=require("crypto");return()=>w.randomBytes(1)[0]}catch{}return()=>xe("randomDevice")}function Pt(v,w){Pt.randomDevice||(Pt.randomDevice=sa());for(var k=0;k<w;k++)Fe[v+k>>>0]=Pt.randomDevice();return 0}function ua(v,w,k,T,B,Q,W){var q=Si(v,w);if(q.errno)return-6;var J=q.port,je=q.addr,we=!1;if(k&&T){var Ve;if(W&1||!(Ve=at.lookup_addr(je))){if(W&8)return-2}else je=Ve;var Se=Me(je,k,T);Se+1>=T&&(we=!0)}if(B&&Q){J=""+J;var Se=Me(J,B,Q);Se+1>=Q&&(we=!0)}return we?-12:0}function ni(v){return v%4===0&&(v%100!==0||v%400===0)}function oa(v,w){for(var k=0,T=0;T<=w;k+=v[T++]);return k}var ai=[31,29,31,30,31,30,31,31,30,31,30,31],tr=[31,28,31,30,31,30,31,31,30,31,30,31];function Gt(v,w){for(var k=new Date(v.getTime());w>0;){var T=ni(k.getFullYear()),B=k.getMonth(),Q=(T?ai:tr)[B];if(w>Q-k.getDate())w-=Q-k.getDate()+1,k.setDate(1),B<11?k.setMonth(B+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else return k.setDate(k.getDate()+w),k}return k}function la(v,w,k){var T=k>0?k:be(v)+1,B=new Array(T),Q=I(v,B,0,B.length);return w&&(B.length=Q),B}function ir(v,w){Fe.set(v,w>>>0)}function ca(v,w,k,T){var B=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:B?R(B):""},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 je=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],we=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ve(h,te,Ce){for(var Re=typeof h=="number"?h.toString():h||"";Re.length<te;)Re=Ce[0]+Re;return Re}function Se(h,te){return Ve(h,te,"0")}function rt(h,te){function Ce(Qe){return Qe<0?-1:Qe>0?1:0}var Re;return(Re=Ce(h.getFullYear()-te.getFullYear()))===0&&(Re=Ce(h.getMonth()-te.getMonth()))===0&&(Re=Ce(h.getDate()-te.getDate())),Re}function Le(h){switch(h.getDay()){case 0:return new Date(h.getFullYear()-1,11,29);case 1:return h;case 2:return new Date(h.getFullYear(),0,3);case 3:return new Date(h.getFullYear(),0,2);case 4:return new Date(h.getFullYear(),0,1);case 5:return new Date(h.getFullYear()-1,11,31);case 6:return new Date(h.getFullYear()-1,11,30)}}function b(h){var te=Gt(new Date(h.tm_year+1900,0,1),h.tm_yday),Ce=new Date(te.getFullYear(),0,4),Re=new Date(te.getFullYear()+1,0,4),Qe=Le(Ce),It=Le(Re);return rt(Qe,te)<=0?rt(It,te)<=0?te.getFullYear()+1:te.getFullYear():te.getFullYear()-1}var de={"%a":function(h){return je[h.tm_wday].substring(0,3)},"%A":function(h){return je[h.tm_wday]},"%b":function(h){return we[h.tm_mon].substring(0,3)},"%B":function(h){return we[h.tm_mon]},"%C":function(h){var te=h.tm_year+1900;return Se(te/100|0,2)},"%d":function(h){return Se(h.tm_mday,2)},"%e":function(h){return Ve(h.tm_mday,2," ")},"%g":function(h){return b(h).toString().substring(2)},"%G":function(h){return b(h)},"%H":function(h){return Se(h.tm_hour,2)},"%I":function(h){var te=h.tm_hour;return te==0?te=12:te>12&&(te-=12),Se(te,2)},"%j":function(h){return Se(h.tm_mday+oa(ni(h.tm_year+1900)?ai:tr,h.tm_mon-1),3)},"%m":function(h){return Se(h.tm_mon+1,2)},"%M":function(h){return Se(h.tm_min,2)},"%n":function(){return`
|
|
3
|
-
`},"%p":function(h){return h.tm_hour>=0&&h.tm_hour<12?"AM":"PM"},"%S":function(h){return Se(h.tm_sec,2)},"%t":function(){return" "},"%u":function(h){return h.tm_wday||7},"%U":function(h){var te=h.tm_yday+7-h.tm_wday;return Se(Math.floor(te/7),2)},"%V":function(h){var te=Math.floor((h.tm_yday+7-(h.tm_wday+6)%7)/7);if((h.tm_wday+371-h.tm_yday-2)%7<=2&&te++,te){if(te==53){var Re=(h.tm_wday+371-h.tm_yday)%7;Re!=4&&(Re!=3||!ni(h.tm_year))&&(te=1)}}else{te=52;var Ce=(h.tm_wday+7-h.tm_yday-1)%7;(Ce==4||Ce==5&&ni(h.tm_year%400-1))&&te++}return Se(te,2)},"%w":function(h){return h.tm_wday},"%W":function(h){var te=h.tm_yday+7-(h.tm_wday+6)%7;return Se(Math.floor(te/7),2)},"%y":function(h){return(h.tm_year+1900).toString().substring(2)},"%Y":function(h){return h.tm_year+1900},"%z":function(h){var te=h.tm_gmtoff,Ce=te>=0;return te=Math.abs(te)/60,te=te/60*100+te%60,(Ce?"+":"-")+String("0000"+te).slice(-4)},"%Z":function(h){return h.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 j=la(W,!1);return j.length>w?0:(ir(j,v),j.length-1)}function _a(v,w,k,T,B){return ca(v,w,k,T)}function fa(v){M=v,bt()||(e.onExit&&e.onExit(v),pe=!0),A(v,new jt(v))}function da(v,w){M=v,fa(v)}function pa(v){if(v instanceof jt||v=="unwind")return M;A(1,v)}function ha(v){var w=e["_"+v];return w}function ya(v,w,k,T,B){var Q={string:Le=>{var b=0;if(Le!=null&&Le!==0){var de=(Le.length<<2)+1;b=ci(de),Me(Le,b,de)}return b},array:Le=>{var b=ci(Le.length);return ir(Le,b),b}};function W(Le){return w==="string"?R(Le):w==="boolean"?Boolean(Le):Le}var q=ha(v),J=[],je=0;if(T)for(var we=0;we<T.length;we++){var Ve=Q[k[we]];Ve?(je===0&&(je=Oi()),J[we]=Ve(T[we])):J[we]=T[we]}var Se=q.apply(null,J);function rt(Le){return je!==0&&xi(je),W(Le)}return Se=rt(Se),Se}var ma={a:cn,P:ti,T:fn,S:dn,L:pn,b:hn,ba:yn,w:mn,Z:vn,N:St,O:gn,o:bn,_:Gi,ca:$t,$:Ai,p:Yi,Q:Vi,J:ii,m:ri,R:Ti,k:st,aa:Qi,n:jn,V:wn,X:Cn,W:kn,da:En,d:Xi,D:Di,E:Rn,B:An,C:Tn,i:Dn,z:Pn,s:In,A:Mn,G:Fn,e:On,F:xn,j:Ln,H:Bn,y:Nn,g:Un,I:Hn,ea:Ji,fa:qn,U:Pi,ha:Wn,ia:Kn,q:Vn,r:Qn,c:zn,v:Xn,u:Jn,t:Zn,h:ea,x:ta,K:ia,f:aa,l:er,Y:Pt,M:ua,ga:_a},Nu=ln(),va=e.___wasm_call_ctors=function(){return(va=e.___wasm_call_ctors=e.asm.ka).apply(null,arguments)},ga=e._main=function(){return(ga=e._main=e.asm.la).apply(null,arguments)},ba=e._duckdb_web_fs_glob_add_path=function(){return(ba=e._duckdb_web_fs_glob_add_path=e.asm.na).apply(null,arguments)},ja=e._duckdb_web_clear_response=function(){return(ja=e._duckdb_web_clear_response=e.asm.oa).apply(null,arguments)},si=e._duckdb_web_fail_with=function(){return(si=e._duckdb_web_fail_with=e.asm.pa).apply(null,arguments)},wa=e._duckdb_web_reset=function(){return(wa=e._duckdb_web_reset=e.asm.qa).apply(null,arguments)},Ca=e._duckdb_web_connect=function(){return(Ca=e._duckdb_web_connect=e.asm.ra).apply(null,arguments)},ui=e._duckdb_web_disconnect=function(){return(ui=e._duckdb_web_disconnect=e.asm.sa).apply(null,arguments)},ka=e._duckdb_web_flush_files=function(){return(ka=e._duckdb_web_flush_files=e.asm.ta).apply(null,arguments)},rr=e._duckdb_web_flush_file=function(){return(rr=e._duckdb_web_flush_file=e.asm.ua).apply(null,arguments)},nr=e._duckdb_web_open=function(){return(nr=e._duckdb_web_open=e.asm.va).apply(null,arguments)},Sa=e._duckdb_web_get_global_file_info=function(){return(Sa=e._duckdb_web_get_global_file_info=e.asm.wa).apply(null,arguments)},Ea=e._duckdb_web_collect_file_stats=function(){return(Ea=e._duckdb_web_collect_file_stats=e.asm.xa).apply(null,arguments)},ar=e._duckdb_web_export_file_stats=function(){return(ar=e._duckdb_web_export_file_stats=e.asm.ya).apply(null,arguments)},Ra=e._duckdb_web_fs_drop_file=function(){return(Ra=e._duckdb_web_fs_drop_file=e.asm.za).apply(null,arguments)},Aa=e._duckdb_web_fs_drop_files=function(){return(Aa=e._duckdb_web_fs_drop_files=e.asm.Aa).apply(null,arguments)},Ta=e._duckdb_web_fs_glob_file_infos=function(){return(Ta=e._duckdb_web_fs_glob_file_infos=e.asm.Ba).apply(null,arguments)},Da=e._duckdb_web_fs_get_file_info_by_id=function(){return(Da=e._duckdb_web_fs_get_file_info_by_id=e.asm.Ca).apply(null,arguments)},Pa=e._duckdb_web_fs_get_file_info_by_name=function(){return(Pa=e._duckdb_web_fs_get_file_info_by_name=e.asm.Da).apply(null,arguments)},Ia=e._duckdb_web_fs_register_file_url=function(){return(Ia=e._duckdb_web_fs_register_file_url=e.asm.Ea).apply(null,arguments)},Ma=e._duckdb_web_fs_register_file_buffer=function(){return(Ma=e._duckdb_web_fs_register_file_buffer=e.asm.Fa).apply(null,arguments)},Fa=e._duckdb_web_copy_file_to_buffer=function(){return(Fa=e._duckdb_web_copy_file_to_buffer=e.asm.Ga).apply(null,arguments)},Uu=e._duckdb_web_copy_file_to_path=function(){return(Uu=e._duckdb_web_copy_file_to_path=e.asm.Ha).apply(null,arguments)},Oa=e._duckdb_web_get_version=function(){return(Oa=e._duckdb_web_get_version=e.asm.Ia).apply(null,arguments)},xa=e._duckdb_web_get_feature_flags=function(){return(xa=e._duckdb_web_get_feature_flags=e.asm.Ja).apply(null,arguments)},La=e._duckdb_web_tokenize=function(){return(La=e._duckdb_web_tokenize=e.asm.Ka).apply(null,arguments)},Ba=e._duckdb_web_udf_scalar_create=function(){return(Ba=e._duckdb_web_udf_scalar_create=e.asm.La).apply(null,arguments)},Na=e._duckdb_web_prepared_create=function(){return(Na=e._duckdb_web_prepared_create=e.asm.Ma).apply(null,arguments)},Ua=e._duckdb_web_prepared_close=function(){return(Ua=e._duckdb_web_prepared_close=e.asm.Na).apply(null,arguments)},Ha=e._duckdb_web_prepared_run=function(){return(Ha=e._duckdb_web_prepared_run=e.asm.Oa).apply(null,arguments)},qa=e._duckdb_web_prepared_send=function(){return(qa=e._duckdb_web_prepared_send=e.asm.Pa).apply(null,arguments)},Wa=e._duckdb_web_query_run=function(){return(Wa=e._duckdb_web_query_run=e.asm.Qa).apply(null,arguments)},$a=e._duckdb_web_pending_query_start=function(){return($a=e._duckdb_web_pending_query_start=e.asm.Ra).apply(null,arguments)},Ka=e._duckdb_web_pending_query_poll=function(){return(Ka=e._duckdb_web_pending_query_poll=e.asm.Sa).apply(null,arguments)},Ga=e._duckdb_web_pending_query_cancel=function(){return(Ga=e._duckdb_web_pending_query_cancel=e.asm.Ta).apply(null,arguments)},Ya=e._duckdb_web_query_fetch_results=function(){return(Ya=e._duckdb_web_query_fetch_results=e.asm.Ua).apply(null,arguments)},Va=e._duckdb_web_get_tablenames=function(){return(Va=e._duckdb_web_get_tablenames=e.asm.Va).apply(null,arguments)},Qa=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(Qa=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Wa).apply(null,arguments)},za=e._duckdb_web_insert_csv_from_path=function(){return(za=e._duckdb_web_insert_csv_from_path=e.asm.Xa).apply(null,arguments)},Xa=e._duckdb_web_insert_json_from_path=function(){return(Xa=e._duckdb_web_insert_json_from_path=e.asm.Ya).apply(null,arguments)},oi=e._htonl=function(){return(oi=e._htonl=e.asm.Za).apply(null,arguments)},li=e._htons=function(){return(li=e._htons=e.asm._a).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.ab).apply(null,arguments)},Ja=e._free=function(){return(Ja=e._free=e.asm.bb).apply(null,arguments)},sr=e.___trap=function(){return(sr=e.___trap=e.asm.cb).apply(null,arguments)},Oi=e.stackSave=function(){return(Oi=e.stackSave=e.asm.db).apply(null,arguments)},xi=e.stackRestore=function(){return(xi=e.stackRestore=e.asm.eb).apply(null,arguments)},ci=e.stackAlloc=function(){return(ci=e.stackAlloc=e.asm.fb).apply(null,arguments)};e.stackAlloc=ci,e.stackSave=Oi,e.stackRestore=xi,e.ccall=ya;var _i;dt=function v(){_i||ur(),_i||(dt=v)};function Za(v){var w=e._main,k=0,T=0;try{var B=w(k,T);return da(B,!0),B}catch(Q){return pa(Q)}}function ur(v){if(v=v||g,tt>0||(Dt(),tt>0))return;function w(){_i||(_i=!0,e.calledRun=!0,!pe&&(Jr(),Zr(),l(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),or&&Za(v),en()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),w()},1)):w()}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var or=!0;return e.noInitialRun&&(or=!1),ur(),t.ready}})(),F_=Hg;var O_={},qg=(()=>{var r=O_.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},l,d;e.ready=new Promise(function(i,n){l=i,d=n});var m=Object.assign({},e),g=[],E="./this.program",A=(i,n)=>{throw n},L=typeof window=="object",D=typeof importScripts=="function",U=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,ne;function Ee(i){if(i instanceof jt)return;ae("exiting due to exception: "+i)}if(U){D?P=require("path").dirname(P)+"/":P=__dirname+"/";var ge,qe;typeof require=="function"&&(ge=require("fs"),qe=require("path")),$=(i,n)=>(i=qe.normalize(i),ge.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=qe.normalize(i),ge.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;Ee(n),process.exit(i)},e.inspect=function(){return"[Emscripten Module object]"}}else(L||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)},ne=i=>document.title=i);var ue=e.print||console.log.bind(console),ae=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 re=e.noExitRuntime||!0;typeof WebAssembly!="object"&&xe("no native wasm support detected");var G,pe=!1,M;function ce(i,n){i||xe(n)}var se=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Te(i,n,a){n>>>=0;for(var s=n+a,u=n;i[u]&&!(u>=s);)++u;if(u-n>16&&i.buffer&&se)return se.decode(i.subarray(n,u));for(var o="";n<u;){var c=i[n++];if(!(c&128)){o+=String.fromCharCode(c);continue}var _=i[n++]&63;if((c&224)==192){o+=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)o+=String.fromCharCode(c);else{var p=c-65536;o+=String.fromCharCode(55296|p>>10,56320|p&1023)}}return o}function R(i,n){return i>>>=0,i?Te(Ae,i,n):""}function I(i,n,a,s){if(a>>>=0,!(s>0))return 0;for(var u=a,o=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>=o)break;n[a++>>>0]=_}else if(_<=2047){if(a+1>=o)break;n[a++>>>0]=192|_>>6,n[a++>>>0]=128|_&63}else if(_<=65535){if(a+2>=o)break;n[a++>>>0]=224|_>>12,n[a++>>>0]=128|_>>6&63,n[a++>>>0]=128|_&63}else{if(a+3>=o)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 Me(i,n,a){return I(i,Ae,n,a)}function be(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,Fe,Ae,Je,Nt,F,he,fe,Tt;function Ut(i){Xe=i,e.HEAP8=Fe=new Int8Array(i),e.HEAP16=Je=new Int16Array(i),e.HEAP32=F=new Int32Array(i),e.HEAPU8=Ae=new Uint8Array(i),e.HEAPU16=Nt=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,De,H=[],oe=[],Ne=[],Ge=[],Ke=!1;function bt(){return re}function Dt(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)tn(e.preRun.shift());wt(H)}function Jr(){Ke=!0,wt(oe)}function Zr(){wt(Ne)}function en(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)nn(e.postRun.shift());wt(Ge)}function tn(i){H.unshift(i)}function rn(i){oe.unshift(i)}function nn(i){Ge.unshift(i)}var tt=0,Ht=null,dt=null;function an(i){tt++,e.monitorRunDependencies&&e.monitorRunDependencies(tt)}function sn(i){if(tt--,e.monitorRunDependencies&&e.monitorRunDependencies(tt),tt==0&&(Ht!==null&&(clearInterval(Ht),Ht=null),dt)){var n=dt;dt=null,n()}}function xe(i){e.onAbort&&e.onAbort(i),i="Aborted("+i+")",ae(i),pe=!0,M=1,i+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(i);throw d(n),n}var un="data:application/octet-stream;base64,";function Ci(i){return i.startsWith(un)}var Ue;e.locateFile?(Ue="./duckdb-mvp.wasm",Ci(Ue)||(Ue=_e(Ue))):Ue=new URL("./duckdb-mvp.wasm",O_.url).toString();function ki(i){try{if(i==Ue&&ee)return new Uint8Array(ee);if(Z)return Z(i);throw"both async and sync fetching of the wasm failed"}catch(n){xe(n)}}function on(){return!ee&&(L||D)&&typeof fetch=="function"?fetch(Ue,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load wasm binary file at '"+Ue+"'";return i.arrayBuffer()}).catch(function(){return ki(Ue)}):Promise.resolve().then(function(){return ki(Ue)})}function ln(){var i={a:Fa};function n(c,_){var f=c.exports;e.asm=f,G=e.asm.wf,Ut(G.buffer),De=e.asm.zf,rn(e.asm.xf),sn("wasm-instantiate")}an("wasm-instantiate");function a(c){n(c.instance)}function s(c){return on().then(function(_){return WebAssembly.instantiate(_,i)}).then(function(_){return _}).then(c,function(_){ae("failed to asynchronously prepare wasm: "+_),xe(_)})}function u(){return!ee&&typeof WebAssembly.instantiateStreaming=="function"&&!Ci(Ue)&&!U&&typeof fetch=="function"?fetch(Ue,{credentials:"same-origin"}).then(function(c){var _=WebAssembly.instantiateStreaming(c,i);return _.then(a,function(f){return ae("wasm streaming compile failed: "+f),ae("falling back to ArrayBuffer instantiation"),s(a)})}):s(a)}if(e.instantiateWasm)try{var o=e.instantiateWasm(i,n);return o}catch(c){ae("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 cn(i,n,a,s){xe("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 ti=[];function _n(i){i.add_ref()}var qt=0;function Wt(i){var n=new ct(i);return n.get_caught()||(n.set_caught(!0),qt--),n.set_rethrown(!1),ti.push(n),_n(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,Fe[this.ptr+12>>>0]=n},this.get_caught=function(){return Fe[this.ptr+12>>>0]!=0},this.set_rethrown=function(n){n=n?1:0,Fe[this.ptr+13>>>0]=n},this.get_rethrown=function(){return Fe[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=Re(this.get_type());if(n)return he[this.excPtr>>>2];var a=this.get_adjusted_ptr();return a!==0?a:this.excPtr}}function Si(i){return Le(new ct(i).ptr)}var kt=[];function X(i){var n=kt[i];return n||(i>=kt.length&&(kt.length=i+1),kt[i]=n=De.get(i)),n}function Ei(i){if(i.release_ref()&&!i.get_rethrown()){var n=i.get_destructor();n&&X(n)(i.excPtr),Si(i.excPtr)}}function at(){b(0);var i=ti.pop();Ei(i),it=0}function $i(i){throw it||(it=i),i}function fn(){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 o=n.ptr+16;if(Ce(u,a,o))return de(u),i}return de(a),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 o=n.ptr+16;if(Ce(u,a,o))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 o=n.ptr+16;if(Ce(u,a,o))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 o=n.ptr+16;if(Ce(u,a,o))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 o=n.ptr+16;if(Ce(u,a,o))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 o=n.ptr+16;if(Ce(u,a,o))return de(u),i}return de(a),i}function vn(){var i=ti.pop();i||xe("no exception to throw");var n=i.excPtr;throw i.get_rethrown()||(ti.push(i),i.set_rethrown(!0),i.set_caught(!1),qt++),it=n,n}function Ki(i,n,a){var s=new ct(i);throw s.init(n,a),it=i,qt++,i}function Ri(){return qt}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 gn(i,n,a,s,u){for(var o=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,y=s?F[s>>>2]:0,C=s?F[s+4>>>2]:0,S=0,O=0,N=0,ie=0,ye=0,ke=0,x=(n?F[n>>>2]:0)|(a?F[a>>>2]:0)|(s?F[s>>>2]:0),z=(n?F[n+4>>>2]:0)|(a?F[a+4>>>2]:0)|(s?F[s+4>>>2]:0),Oe=function(Pg,Ig,Mg,P_){return Pg<32?Ig&P_:Mg&P_},Ie=0;Ie<i;Ie++){var nt=1<<Ie%32;if(!!Oe(Ie,x,z,nt)){var Bi=St.getStreamFromFD(Ie),dr=St.DEFAULT_POLLMASK;Bi.stream_ops.poll&&(dr=Bi.stream_ops.poll(Bi)),dr&1&&Oe(Ie,c,_,nt)&&(Ie<32?S=S|nt:O=O|nt,o++),dr&4&&Oe(Ie,f,p,nt)&&(Ie<32?N=N|nt:ie=ie|nt,o++),dr&2&&Oe(Ie,y,C,nt)&&(Ie<32?ye=ye|nt:ke=ke|nt,o++)}}return n&&(F[n>>>2]=S,F[n+4>>>2]=O),a&&(F[a>>>2]=N,F[a+4>>>2]=ie),s&&(F[s>>>2]=ye,F[s+4>>>2]=ke),o}function bn(){ae("missing function: $SOCKFS"),xe(-1)}function Gi(){ae("missing function: $FS"),xe(-1)}function $t(i){var n=bn.getSocket(i);if(!n)throw new Gi.ErrnoError(8);return n}function Ai(i){return(i&255)+"."+(i>>8&255)+"."+(i>>16&255)+"."+(i>>24&255)}function Yi(i){var n="",a=0,s=0,u=0,o=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,y="";for(_=0;_<5;_++)if(f[_]!==0){p=!1;break}if(p){if(y=Ai(f[6]|f[7]<<16),f[5]===-1)return n="::ffff:",n+=y,n;if(f[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++)f[a]===0&&(a-u>1&&(c=0),u=a,c++),c>s&&(s=c,o=a-s+1);for(a=0;a<8;a++){if(s>1&&f[a]===0&&a>=o&&a<o+s){a===o&&(n+=":",o===0&&(n+=":"));continue}n+=Number(Se(f[a]&65535)).toString(16),n+=a<7?":":""}return n}function Vi(i,n){var a=Je[i>>>1],s=Se(Nt[i+2>>>1]),u;switch(a){case 2:if(n!==16)return{errno:28};u=F[i+4>>>2],u=Ai(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=Yi(u);break;default:return{errno:5}}return{family:a,addr:u,port:s}}function ii(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 ri(i){return parseInt(i)}function Ti(i){var n,a,s,u,o=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,c=[];if(!o.test(i))return null;if(i==="::")return[0,0,0,0,0,0,0,0];for(i.startsWith("::")?i=i.replace("::","Z:"):i=i.replace("::",":Z:"),i.indexOf(".")>0?(i=i.replace(new RegExp("[.]","g"),":"),n=i.split(":"),n[n.length-4]=ri(n[n.length-4])+ri(n[n.length-3])*256,n[n.length-3]=ri(n[n.length-2])+ri(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=ii(i);if(n!==null||(n=Ti(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 Qi(i,n,a){if(a&&i===0)return null;var s=Vi(i,n);if(s.errno)throw new Gi.ErrnoError(s.errno);return s.addr=st.lookup_addr(s.addr)||s.addr,s}function jn(i,n,a){var s=$t(i),u=Qi(n,a);return s.sock_ops.bind(s,u.addr,u.port),0}function wn(i,n,a){var s=$t(i),u=Qi(n,a);return s.sock_ops.connect(s,u.addr,u.port),0}function zi(i,n,a,s){}function Cn(i,n,a){return St.varargs=a,0}function kn(i,n){}function Sn(i,n,a){}function En(i,n,a){}function Xi(i,n){return Ae.fill(0,i,i+n),i}function Di(i,n,a,s,u){switch(n){case 2:a=ii(a),Xi(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=Ti(a),Xi(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 Rn(i,n,a){var s=$t(i);if(!s.daddr)return-53;var u=Di(n,s.family,st.lookup_name(s.daddr),s.dport,a);return 0}function An(i,n,a,s,u){var o=$t(i);return n===1&&a===4?(F[s>>>2]=o.error,F[u>>>2]=4,o.error=null,0):-50}function Tn(i,n,a){return St.varargs=a,0}function Dn(i,n){}function Pn(i,n,a){}function In(i,n,a,s){}function Mn(i,n,a,s){St.varargs=s}function Fn(i,n,a,s,u,o){var c=$t(i),_=c.sock_ops.recvmsg(c,a);if(!_)return 0;if(u)var f=Di(u,c.family,st.lookup_name(_.addr),_.port,o);return Ae.set(_.buffer,n>>>0),_.buffer.byteLength}function On(i,n,a,s){}function xn(i){}function Ln(i,n,a,s,u,o){}function Bn(i,n,a){}function Nn(i,n){}function Un(i,n,a){}function Hn(i){}var Ji="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function Zi(i,n){xe(Ji)}function qn(i,n){xe(Ji)}var Pi=!0;function Wn(){return Pi}function $n(){xe("")}function Kn(i,n){return globalThis.DUCKDB_RUNTIME.createDirectory(e,i,n)}function Ii(i,n){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,i,n)}function Gn(i,n){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,i,n)}function Kt(i,n){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,i,n)}function Yn(i){return globalThis.DUCKDB_RUNTIME.closeFile(e,i)}function Vn(i,n){return globalThis.DUCKDB_RUNTIME.checkFile(e,i,n)}function Qn(i){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,i)}function zn(i,n,a,s){return globalThis.DUCKDB_RUNTIME.moveFile(e,i,n,a,s)}function Xn(i,n){return globalThis.DUCKDB_RUNTIME.openFile(e,i,n)}function Jn(i,n,a,s){return globalThis.DUCKDB_RUNTIME.readFile(e,i,n,a,s)}function Zn(i,n){return globalThis.DUCKDB_RUNTIME.truncateFile(e,i,n)}function ea(i,n,a,s){return globalThis.DUCKDB_RUNTIME.writeFile(e,i,n,a,s)}function ta(i){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(i)}function ia(i,n){return globalThis.DUCKDB_RUNTIME.glob(e,i,n)}function ra(i){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,i)}function na(i,n,a,s,u,o){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,i,n,a,s,u,o)}function aa(){return Date.now()}function er(){return 4294901760}function sa(){return er()}var Pt;U?Pt=()=>{var i=process.hrtime();return i[0]*1e3+i[1]/1e6}:Pt=()=>performance.now();function ua(i,n,a){Ae.copyWithin(i>>>0,n>>>0,n+a>>>0)}function ni(i){try{return G.grow(i-Xe.byteLength+65535>>>16),Ut(G.buffer),1}catch{}}function oa(i){var n=Ae.length;i=i>>>0;var a=er();if(i>a)return!1;let s=(f,p)=>f+(p-f%p)%p;for(var u=1;u<=4;u*=2){var o=n*(1+.2/u);o=Math.min(o,i+100663296);var c=Math.min(a,s(Math.max(i,o),65536)),_=ni(c);if(_)return!0}return!1}var ai={};function tr(){return E||"./this.program"}function Gt(){if(!Gt.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,_:tr()};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]);Gt.strings=s}return Gt.strings}function la(i,n,a){for(var s=0;s<i.length;++s)Fe[n++>>>0]=i.charCodeAt(s);a||(Fe[n>>>0]=0)}function ir(i,n){var a=0;return Gt().forEach(function(s,u){var o=n+a;he[i+u*4>>>2]=o,la(s,o),a+=s.length+1}),0}function ca(i,n){var a=Gt();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){var a=i==1||i==2?2:xe();return Fe[n>>>0]=a,0}function da(i,n,a,s,u,o){return 52}function pa(i,n,a,s,u,o){return 52}function ha(i,n,a,s){return 52}function ya(i,n,a,s,u){return 70}function ma(i){return 52}var Nu=[null,[],[]];function va(i,n){var a=Nu[i];n===0||n===10?((i===1?ue:ae)(Te(a,0)),a.length=0):a.push(n)}function ga(i,n,a,s){for(var u=0,o=0;o<a;o++){var c=he[n>>>2],_=he[n+4>>>2];n+=8;for(var f=0;f<_;f++)va(i,Ae[c+f>>>0]);u+=_}return he[s>>>2]=u,0}function ba(i,n,a,s){var u=0,o=0,c=0,_=0,f=0,p=0,y;function C(S,O,N,ie,ye,ke){var x,z,Oe,Ie;return z=S===10?28:16,ye=S===10?Yi(ye):Ai(ye),x=rt(z),Ie=Di(x,S,ye,ke),ce(!Ie),Oe=rt(32),F[Oe+4>>>2]=S,F[Oe+8>>>2]=O,F[Oe+12>>>2]=N,F[Oe+24>>>2]=ie,he[Oe+20>>>2]=x,S===10?F[Oe+16>>>2]=28:F[Oe+16>>>2]=16,F[Oe+28>>>2]=0,Oe}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),o=parseInt(n,10),isNaN(o)))return c&1024?-2:-8;if(!i)return _===0&&(_=2),(c&1)===0&&(_===2?u=we(2130706433):u=[0,0,0,1]),y=C(_,f,p,null,u,o),he[s>>>2]=y,0;if(i=R(i),u=ii(i),u!==null)if(_===0||_===2)_=2;else if(_===10&&c&8)u=[0,0,we(65535),u],_=10;else return-2;else if(u=Ti(i),u!==null)if(_===0||_===10)_=10;else return-2;return u!=null?(y=C(_,f,p,i,u,o),he[s>>>2]=y,0):c&4?-2:(i=st.lookup_name(i),u=ii(i),_===0?_=2:_===10&&(u=[0,0,we(65535),u]),y=C(_,f,p,null,u,o),he[s>>>2]=y,0)}function ja(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var i=new Uint8Array(1);return()=>(crypto.getRandomValues(i),i[0])}else if(U)try{var n=require("crypto");return()=>n.randomBytes(1)[0]}catch{}return()=>xe("randomDevice")}function si(i,n){si.randomDevice||(si.randomDevice=ja());for(var a=0;a<n;a++)Fe[i+a>>>0]=si.randomDevice();return 0}function wa(i,n,a,s,u,o,c){var _=Vi(i,n);if(_.errno)return-6;var f=_.port,p=_.addr,y=!1;if(a&&s){var C;if(c&1||!(C=st.lookup_addr(p))){if(c&8)return-2}else p=C;var S=Me(p,a,s);S+1>=s&&(y=!0)}if(u&&o){f=""+f;var S=Me(f,u,o);S+1>=o&&(y=!0)}return y?-12:0}function Ca(i){return i}function ui(i){return i%4===0&&(i%100!==0||i%400===0)}function ka(i,n){for(var a=0,s=0;s<=n;a+=i[s++]);return a}var rr=[31,29,31,30,31,30,31,31,30,31,30,31],nr=[31,28,31,30,31,30,31,31,30,31,30,31];function Sa(i,n){for(var a=new Date(i.getTime());n>0;){var s=ui(a.getFullYear()),u=a.getMonth(),o=(s?rr:nr)[u];if(n>o-a.getDate())n-=o-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 Ea(i,n,a){var s=a>0?a:be(i)+1,u=new Array(s),o=I(i,u,0,u.length);return n&&(u.length=o),u}function ar(i,n){Fe.set(i,n>>>0)}function Ra(i,n,a,s){var u=F[s+40>>>2],o={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"],y=["January","February","March","April","May","June","July","August","September","October","November","December"];function C(x,z,Oe){for(var Ie=typeof x=="number"?x.toString():x||"";Ie.length<z;)Ie=Oe[0]+Ie;return Ie}function S(x,z){return C(x,z,"0")}function O(x,z){function Oe(nt){return nt<0?-1:nt>0?1:0}var Ie;return(Ie=Oe(x.getFullYear()-z.getFullYear()))===0&&(Ie=Oe(x.getMonth()-z.getMonth()))===0&&(Ie=Oe(x.getDate()-z.getDate())),Ie}function N(x){switch(x.getDay()){case 0:return new Date(x.getFullYear()-1,11,29);case 1:return x;case 2:return new Date(x.getFullYear(),0,3);case 3:return new Date(x.getFullYear(),0,2);case 4:return new Date(x.getFullYear(),0,1);case 5:return new Date(x.getFullYear()-1,11,31);case 6:return new Date(x.getFullYear()-1,11,30)}}function ie(x){var z=Sa(new Date(x.tm_year+1900,0,1),x.tm_yday),Oe=new Date(z.getFullYear(),0,4),Ie=new Date(z.getFullYear()+1,0,4),nt=N(Oe),Bi=N(Ie);return O(nt,z)<=0?O(Bi,z)<=0?z.getFullYear()+1:z.getFullYear():z.getFullYear()-1}var ye={"%a":function(x){return p[x.tm_wday].substring(0,3)},"%A":function(x){return p[x.tm_wday]},"%b":function(x){return y[x.tm_mon].substring(0,3)},"%B":function(x){return y[x.tm_mon]},"%C":function(x){var z=x.tm_year+1900;return S(z/100|0,2)},"%d":function(x){return S(x.tm_mday,2)},"%e":function(x){return C(x.tm_mday,2," ")},"%g":function(x){return ie(x).toString().substring(2)},"%G":function(x){return ie(x)},"%H":function(x){return S(x.tm_hour,2)},"%I":function(x){var z=x.tm_hour;return z==0?z=12:z>12&&(z-=12),S(z,2)},"%j":function(x){return S(x.tm_mday+ka(ui(x.tm_year+1900)?rr:nr,x.tm_mon-1),3)},"%m":function(x){return S(x.tm_mon+1,2)},"%M":function(x){return S(x.tm_min,2)},"%n":function(){return`
|
|
4
|
-
`},"%p":function(x){return x.tm_hour>=0&&x.tm_hour<12?"AM":"PM"},"%S":function(x){return S(x.tm_sec,2)},"%t":function(){return" "},"%u":function(x){return x.tm_wday||7},"%U":function(x){var z=x.tm_yday+7-x.tm_wday;return S(Math.floor(z/7),2)},"%V":function(x){var z=Math.floor((x.tm_yday+7-(x.tm_wday+6)%7)/7);if((x.tm_wday+371-x.tm_yday-2)%7<=2&&z++,z){if(z==53){var Ie=(x.tm_wday+371-x.tm_yday)%7;Ie!=4&&(Ie!=3||!ui(x.tm_year))&&(z=1)}}else{z=52;var Oe=(x.tm_wday+7-x.tm_yday-1)%7;(Oe==4||Oe==5&&ui(x.tm_year%400-1))&&z++}return S(z,2)},"%w":function(x){return x.tm_wday},"%W":function(x){var z=x.tm_yday+7-(x.tm_wday+6)%7;return S(Math.floor(z/7),2)},"%y":function(x){return(x.tm_year+1900).toString().substring(2)},"%Y":function(x){return x.tm_year+1900},"%z":function(x){var z=x.tm_gmtoff,Oe=z>=0;return z=Math.abs(z)/60,z=z/60*100+z%60,(Oe?"+":"-")+String("0000"+z).slice(-4)},"%Z":function(x){return x.tm_zone},"%%":function(){return"%"}};c=c.replace(/%%/g,"\0\0");for(var f in ye)c.includes(f)&&(c=c.replace(new RegExp(f,"g"),ye[f](o)));c=c.replace(/\0\0/g,"%");var ke=Ea(c,!1);return ke.length>n?0:(ar(ke,i),ke.length-1)}function Aa(i,n,a,s,u){return Ra(i,n,a,s)}function Ta(i){M=i,bt()||(e.onExit&&e.onExit(i),pe=!0),A(i,new jt(i))}function Da(i,n){M=i,Ta(i)}function Pa(i){if(i instanceof jt||i=="unwind")return M;A(1,i)}function Ia(i){var n=e["_"+i];return n}function Ma(i,n,a,s,u){var o={string:N=>{var ie=0;if(N!=null&&N!==0){var ye=(N.length<<2)+1;ie=te(ye),Me(N,ie,ye)}return ie},array:N=>{var ie=te(N.length);return ar(N,ie),ie}};function c(N){return n==="string"?R(N):n==="boolean"?Boolean(N):N}var _=Ia(i),f=[],p=0;if(s)for(var y=0;y<s.length;y++){var C=o[a[y]];C?(p===0&&(p=j()),f[y]=C(s[y])):f[y]=s[y]}var S=_.apply(null,f);function O(N){return p!==0&&h(p),c(N)}return S=O(S),S}var Fa={p:cn,i:Ct,y:Wt,G:at,a:fn,n:dn,E:pn,M:hn,R:yn,xa:mn,h:Si,ra:vn,u:Ki,F:Ri,d:$i,Ca:gn,Ga:jn,Fa:wn,rf:zi,Q:Cn,Qa:kn,Pe:Sn,Ma:En,Aa:Rn,Ba:An,oa:Tn,Na:Dn,Ra:Pn,Oa:In,pa:Mn,Da:Fn,pf:On,ma:xn,Ea:Ln,ja:Bn,Pa:Nn,na:Un,Ia:Hn,Ka:Zi,Ja:qn,Sa:Wn,ca:$n,ef:Kn,ff:Ii,cf:Gn,df:Kt,va:Yn,af:Vn,bb:Qn,bf:zn,hf:Xn,da:Jn,gf:Zn,wa:ea,jf:ta,$e:ia,ua:ra,kf:na,Ta:aa,Ua:sa,_e:Pt,Pb:ua,Jd:oa,$a:ir,kb:ca,Z:_a,sc:fa,Oe:da,tb:pa,sa:ha,Xe:ya,qf:ma,fa:ga,Ha:ba,La:si,za:wa,A:vh,_:wh,ga:Wp,O:Rh,P:Ch,ce:Ay,V:Sh,ta:qp,$:Eh,de:Ry,w:Qp,ka:fh,nf:Mh,aa:sh,la:_h,of:Ih,b:Op,ea:yh,U:uh,c:xp,W:bh,Nb:qv,Ib:Yv,g:Bp,ya:kh,Gb:Qv,l:Hp,qa:ih,m:Np,vf:Ah,v:Xp,x:Gp,L:ah,T:hh,Y:Yp,t:Jp,C:Vp,sf:Ph,H:dh,s:gh,Db:Jv,Mb:Wv,Wb:Fv,Lb:$v,Zb:Pv,Eb:Xv,Qb:Uv,Hb:Vv,qe:py,Yd:Fy,Yb:Iv,gd:Cm,ab:kg,ud:lm,Te:Hh,_d:Iy,re:dy,rb:lg,Uc:Lm,Se:qh,Ya:Rg,Wa:Tg,Tc:Bm,je:jy,$d:Py,hd:wm,Vd:Ly,ne:my,vd:om,wd:um,Bb:eg,bd:Am,Fb:zv,Vc:xm,Ie:zh,ve:ly,pe:hy,Oc:Wm,Xc:Fm,sb:og,nb:dg,Wc:Om,Ke:Vh,ic:bv,td:cm,Jb:Gv,Kb:Kv,xd:sm,Md:Gy,hb:vg,Re:Wh,we:oy,te:_y,Sd:Uy,Sc:Nm,ib:mg,ke:by,Zd:My,xe:uy,ae:Dy,Mc:Km,_b:Dv,jc:gv,Xa:Ag,Ld:Yy,Jc:Vm,Ec:Zm,jd:bm,oe:yy,Ne:Kh,gc:wv,fc:Cv,We:Bh,Ve:Nh,Wd:xy,Ze:xh,Nd:Ky,Cb:Zv,Sb:Bv,Ab:tg,wb:ag,$c:Dm,Ac:rv,xb:ng,Hd:zy,zd:nm,qc:fv,vb:sg,Ob:Hv,Vb:Ov,Od:$y,Bd:im,ee:Ey,pc:dv,Rb:Nv,zb:ig,Xd:Oy,od:hm,Za:Eg,ld:vm,id:jm,Xb:Mv,nd:ym,Ud:By,bc:Rv,Fc:Jm,Cc:tv,cc:Ev,dc:Sv,Bc:iv,o:Mp,tf:Dh,uf:Th,j:Lp,B:ch,ha:jh,J:lh,e:Fp,N:$p,X:oh,f:Kp,k:Up,mf:Fh,r:nh,q:th,ia:mh,D:zp,I:rh,S:ph,K:Zp,lf:Oh,ba:eh,Be:ry,Ee:ey,_c:Pm,Ce:iy,tc:cv,oc:pv,ie:wy,yd:am,Gc:Xm,ed:Sm,ge:ky,qb:cg,De:ty,lb:hg,Ae:ny,le:gy,Yc:Mm,Zc:Im,$b:Tv,ac:Av,fe:Sy,nc:hv,Fe:Zh,yb:rg,lc:mv,ye:sy,ue:cy,se:fy,fd:km,mc:yv,wc:uv,kc:vv,Pd:Wy,_a:Sg,Qd:qy,Ub:xv,jb:yg,He:Xh,Fd:Jy,rd:fm,uc:lv,zc:nv,Kc:Ym,gb:gg,Me:Gh,Qe:$h,Ue:Uh,Ic:Qm,Nc:$m,he:Cy,ec:kv,xc:sv,qd:dm,md:mm,Ad:rm,mb:pg,sd:_m,fb:bg,rc:_v,vc:ov,ob:fg,Ye:Lh,Je:Qh,Tb:Lv,Td:Ny,Rd:Hy,Ge:Jh,ze:ay,be:Ty,Rc:Um,Pc:qm,Hc:zm,Qc:Hm,pd:pm,kd:gm,Id:Qy,hc:jv,Lc:Gm,eb:jg,yc:av,pb:_g,Gd:Xy,cd:Rm,cb:Cg,db:wg,dd:Em,Le:Yh,Dd:em,ub:ug,Dc:ev,ad:Tm,Kd:Vy,me:vy,Ed:Zy,Cd:tm,z:Ca,Va:Aa},Uu=ln(),Oa=e.___wasm_call_ctors=function(){return(Oa=e.___wasm_call_ctors=e.asm.xf).apply(null,arguments)},xa=e._main=function(){return(xa=e._main=e.asm.yf).apply(null,arguments)},La=e._duckdb_web_fs_glob_add_path=function(){return(La=e._duckdb_web_fs_glob_add_path=e.asm.Af).apply(null,arguments)},Ba=e._duckdb_web_clear_response=function(){return(Ba=e._duckdb_web_clear_response=e.asm.Bf).apply(null,arguments)},Na=e._duckdb_web_fail_with=function(){return(Na=e._duckdb_web_fail_with=e.asm.Cf).apply(null,arguments)},Ua=e._duckdb_web_reset=function(){return(Ua=e._duckdb_web_reset=e.asm.Df).apply(null,arguments)},Ha=e._duckdb_web_connect=function(){return(Ha=e._duckdb_web_connect=e.asm.Ef).apply(null,arguments)},qa=e._duckdb_web_disconnect=function(){return(qa=e._duckdb_web_disconnect=e.asm.Ff).apply(null,arguments)},Wa=e._duckdb_web_flush_files=function(){return(Wa=e._duckdb_web_flush_files=e.asm.Gf).apply(null,arguments)},$a=e._duckdb_web_flush_file=function(){return($a=e._duckdb_web_flush_file=e.asm.Hf).apply(null,arguments)},Ka=e._duckdb_web_open=function(){return(Ka=e._duckdb_web_open=e.asm.If).apply(null,arguments)},Ga=e._duckdb_web_get_global_file_info=function(){return(Ga=e._duckdb_web_get_global_file_info=e.asm.Jf).apply(null,arguments)},Ya=e._duckdb_web_collect_file_stats=function(){return(Ya=e._duckdb_web_collect_file_stats=e.asm.Kf).apply(null,arguments)},Va=e._duckdb_web_export_file_stats=function(){return(Va=e._duckdb_web_export_file_stats=e.asm.Lf).apply(null,arguments)},Qa=e._duckdb_web_fs_drop_file=function(){return(Qa=e._duckdb_web_fs_drop_file=e.asm.Mf).apply(null,arguments)},za=e._duckdb_web_fs_drop_files=function(){return(za=e._duckdb_web_fs_drop_files=e.asm.Nf).apply(null,arguments)},Xa=e._duckdb_web_fs_glob_file_infos=function(){return(Xa=e._duckdb_web_fs_glob_file_infos=e.asm.Of).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.Pf).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.Qf).apply(null,arguments)},Mi=e._duckdb_web_fs_register_file_url=function(){return(Mi=e._duckdb_web_fs_register_file_url=e.asm.Rf).apply(null,arguments)},Fi=e._duckdb_web_fs_register_file_buffer=function(){return(Fi=e._duckdb_web_fs_register_file_buffer=e.asm.Sf).apply(null,arguments)},Ja=e._duckdb_web_copy_file_to_buffer=function(){return(Ja=e._duckdb_web_copy_file_to_buffer=e.asm.Tf).apply(null,arguments)},sr=e._duckdb_web_copy_file_to_path=function(){return(sr=e._duckdb_web_copy_file_to_path=e.asm.Uf).apply(null,arguments)},Oi=e._duckdb_web_get_version=function(){return(Oi=e._duckdb_web_get_version=e.asm.Vf).apply(null,arguments)},xi=e._duckdb_web_get_feature_flags=function(){return(xi=e._duckdb_web_get_feature_flags=e.asm.Wf).apply(null,arguments)},ci=e._duckdb_web_tokenize=function(){return(ci=e._duckdb_web_tokenize=e.asm.Xf).apply(null,arguments)},_i=e._duckdb_web_udf_scalar_create=function(){return(_i=e._duckdb_web_udf_scalar_create=e.asm.Yf).apply(null,arguments)},Za=e._duckdb_web_prepared_create=function(){return(Za=e._duckdb_web_prepared_create=e.asm.Zf).apply(null,arguments)},ur=e._duckdb_web_prepared_close=function(){return(ur=e._duckdb_web_prepared_close=e.asm._f).apply(null,arguments)},or=e._duckdb_web_prepared_run=function(){return(or=e._duckdb_web_prepared_run=e.asm.$f).apply(null,arguments)},v=e._duckdb_web_prepared_send=function(){return(v=e._duckdb_web_prepared_send=e.asm.ag).apply(null,arguments)},w=e._duckdb_web_query_run=function(){return(w=e._duckdb_web_query_run=e.asm.bg).apply(null,arguments)},k=e._duckdb_web_pending_query_start=function(){return(k=e._duckdb_web_pending_query_start=e.asm.cg).apply(null,arguments)},T=e._duckdb_web_pending_query_poll=function(){return(T=e._duckdb_web_pending_query_poll=e.asm.dg).apply(null,arguments)},B=e._duckdb_web_pending_query_cancel=function(){return(B=e._duckdb_web_pending_query_cancel=e.asm.eg).apply(null,arguments)},Q=e._duckdb_web_query_fetch_results=function(){return(Q=e._duckdb_web_query_fetch_results=e.asm.fg).apply(null,arguments)},W=e._duckdb_web_get_tablenames=function(){return(W=e._duckdb_web_get_tablenames=e.asm.gg).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.hg).apply(null,arguments)},J=e._duckdb_web_insert_csv_from_path=function(){return(J=e._duckdb_web_insert_csv_from_path=e.asm.ig).apply(null,arguments)},je=e._duckdb_web_insert_json_from_path=function(){return(je=e._duckdb_web_insert_json_from_path=e.asm.jg).apply(null,arguments)},we=e._htonl=function(){return(we=e._htonl=e.asm.kg).apply(null,arguments)},Ve=e._htons=function(){return(Ve=e._htons=e.asm.lg).apply(null,arguments)},Se=e._ntohs=function(){return(Se=e._ntohs=e.asm.mg).apply(null,arguments)},rt=e._malloc=function(){return(rt=e._malloc=e.asm.ng).apply(null,arguments)},Le=e._free=function(){return(Le=e._free=e.asm.og).apply(null,arguments)},b=e._setThrew=function(){return(b=e._setThrew=e.asm.pg).apply(null,arguments)},de=e.setTempRet0=function(){return(de=e.setTempRet0=e.asm.qg).apply(null,arguments)},j=e.stackSave=function(){return(j=e.stackSave=e.asm.rg).apply(null,arguments)},h=e.stackRestore=function(){return(h=e.stackRestore=e.asm.sg).apply(null,arguments)},te=e.stackAlloc=function(){return(te=e.stackAlloc=e.asm.tg).apply(null,arguments)},Ce=e.___cxa_can_catch=function(){return(Ce=e.___cxa_can_catch=e.asm.ug).apply(null,arguments)},Re=e.___cxa_is_pointer_type=function(){return(Re=e.___cxa_is_pointer_type=e.asm.vg).apply(null,arguments)},Qe=e.dynCall_jiiii=function(){return(Qe=e.dynCall_jiiii=e.asm.wg).apply(null,arguments)},It=e.dynCall_iiiiij=function(){return(It=e.dynCall_iiiiij=e.asm.xg).apply(null,arguments)},Yt=e.dynCall_iiiiijj=function(){return(Yt=e.dynCall_iiiiijj=e.asm.yg).apply(null,arguments)},lr=e.dynCall_viijii=function(){return(lr=e.dynCall_viijii=e.asm.zg).apply(null,arguments)},cr=e.dynCall_j=function(){return(cr=e.dynCall_j=e.asm.Ag).apply(null,arguments)},_r=e.dynCall_ji=function(){return(_r=e.dynCall_ji=e.asm.Bg).apply(null,arguments)},Li=e.dynCall_iij=function(){return(Li=e.dynCall_iij=e.asm.Cg).apply(null,arguments)},Hu=e.dynCall_viij=function(){return(Hu=e.dynCall_viij=e.asm.Dg).apply(null,arguments)},qu=e.dynCall_viijji=function(){return(qu=e.dynCall_viijji=e.asm.Eg).apply(null,arguments)},Wu=e.dynCall_viijj=function(){return(Wu=e.dynCall_viijj=e.asm.Fg).apply(null,arguments)},$u=e.dynCall_viiijj=function(){return($u=e.dynCall_viiijj=e.asm.Gg).apply(null,arguments)},Ku=e.dynCall_viiji=function(){return(Ku=e.dynCall_viiji=e.asm.Hg).apply(null,arguments)},Gu=e.dynCall_vijjj=function(){return(Gu=e.dynCall_vijjj=e.asm.Ig).apply(null,arguments)},Yu=e.dynCall_iiijj=function(){return(Yu=e.dynCall_iiijj=e.asm.Jg).apply(null,arguments)},Vu=e.dynCall_viiij=function(){return(Vu=e.dynCall_viiij=e.asm.Kg).apply(null,arguments)},Qu=e.dynCall_viijij=function(){return(Qu=e.dynCall_viijij=e.asm.Lg).apply(null,arguments)},zu=e.dynCall_viiiij=function(){return(zu=e.dynCall_viiiij=e.asm.Mg).apply(null,arguments)},Xu=e.dynCall_viji=function(){return(Xu=e.dynCall_viji=e.asm.Ng).apply(null,arguments)},Ju=e.dynCall_iiij=function(){return(Ju=e.dynCall_iiij=e.asm.Og).apply(null,arguments)},Zu=e.dynCall_iiiji=function(){return(Zu=e.dynCall_iiiji=e.asm.Pg).apply(null,arguments)},eo=e.dynCall_viiiji=function(){return(eo=e.dynCall_viiiji=e.asm.Qg).apply(null,arguments)},to=e.dynCall_iiiij=function(){return(to=e.dynCall_iiiij=e.asm.Rg).apply(null,arguments)},io=e.dynCall_vij=function(){return(io=e.dynCall_vij=e.asm.Sg).apply(null,arguments)},ro=e.dynCall_iiji=function(){return(ro=e.dynCall_iiji=e.asm.Tg).apply(null,arguments)},no=e.dynCall_viiiiij=function(){return(no=e.dynCall_viiiiij=e.asm.Ug).apply(null,arguments)},ao=e.dynCall_viijiiiii=function(){return(ao=e.dynCall_viijiiiii=e.asm.Vg).apply(null,arguments)},so=e.dynCall_viiiiji=function(){return(so=e.dynCall_viiiiji=e.asm.Wg).apply(null,arguments)},uo=e.dynCall_iijiji=function(){return(uo=e.dynCall_iijiji=e.asm.Xg).apply(null,arguments)},oo=e.dynCall_viiiijiiiiiiii=function(){return(oo=e.dynCall_viiiijiiiiiiii=e.asm.Yg).apply(null,arguments)},lo=e.dynCall_viiiiijiiii=function(){return(lo=e.dynCall_viiiiijiiii=e.asm.Zg).apply(null,arguments)},co=e.dynCall_vjiiiji=function(){return(co=e.dynCall_vjiiiji=e.asm._g).apply(null,arguments)},_o=e.dynCall_iiiijj=function(){return(_o=e.dynCall_iiiijj=e.asm.$g).apply(null,arguments)},fo=e.dynCall_viiiijj=function(){return(fo=e.dynCall_viiiijj=e.asm.ah).apply(null,arguments)},po=e.dynCall_jii=function(){return(po=e.dynCall_jii=e.asm.bh).apply(null,arguments)},ho=e.dynCall_iiijii=function(){return(ho=e.dynCall_iiijii=e.asm.ch).apply(null,arguments)},yo=e.dynCall_jiijii=function(){return(yo=e.dynCall_jiijii=e.asm.dh).apply(null,arguments)},mo=e.dynCall_viiijii=function(){return(mo=e.dynCall_viiijii=e.asm.eh).apply(null,arguments)},vo=e.dynCall_fiijii=function(){return(vo=e.dynCall_fiijii=e.asm.fh).apply(null,arguments)},go=e.dynCall_diijii=function(){return(go=e.dynCall_diijii=e.asm.gh).apply(null,arguments)},bo=e.dynCall_iiiiijii=function(){return(bo=e.dynCall_iiiiijii=e.asm.hh).apply(null,arguments)},jo=e.dynCall_iiiiiiijii=function(){return(jo=e.dynCall_iiiiiiijii=e.asm.ih).apply(null,arguments)},wo=e.dynCall_vijii=function(){return(wo=e.dynCall_vijii=e.asm.jh).apply(null,arguments)},Co=e.dynCall_iiiiji=function(){return(Co=e.dynCall_iiiiji=e.asm.kh).apply(null,arguments)},ko=e.dynCall_iiiiiji=function(){return(ko=e.dynCall_iiiiiji=e.asm.lh).apply(null,arguments)},So=e.dynCall_iijj=function(){return(So=e.dynCall_iijj=e.asm.mh).apply(null,arguments)},Eo=e.dynCall_viijjj=function(){return(Eo=e.dynCall_viijjj=e.asm.nh).apply(null,arguments)},Ro=e.dynCall_jj=function(){return(Ro=e.dynCall_jj=e.asm.oh).apply(null,arguments)},Ao=e.dynCall_jiiiii=function(){return(Ao=e.dynCall_jiiiii=e.asm.ph).apply(null,arguments)},To=e.dynCall_iiijjj=function(){return(To=e.dynCall_iiijjj=e.asm.qh).apply(null,arguments)},Do=e.dynCall_jiij=function(){return(Do=e.dynCall_jiij=e.asm.rh).apply(null,arguments)},Po=e.dynCall_jiiij=function(){return(Po=e.dynCall_jiiij=e.asm.sh).apply(null,arguments)},Io=e.dynCall_viijiiji=function(){return(Io=e.dynCall_viijiiji=e.asm.th).apply(null,arguments)},Mo=e.dynCall_iiiiiijjiijjj=function(){return(Mo=e.dynCall_iiiiiijjiijjj=e.asm.uh).apply(null,arguments)},Fo=e.dynCall_iiijjijjii=function(){return(Fo=e.dynCall_iiijjijjii=e.asm.vh).apply(null,arguments)},Oo=e.dynCall_iiiijjii=function(){return(Oo=e.dynCall_iiiijjii=e.asm.wh).apply(null,arguments)},xo=e.dynCall_iiiijji=function(){return(xo=e.dynCall_iiiijji=e.asm.xh).apply(null,arguments)},Lo=e.dynCall_iiijjii=function(){return(Lo=e.dynCall_iiijjii=e.asm.yh).apply(null,arguments)},Bo=e.dynCall_vjjijij=function(){return(Bo=e.dynCall_vjjijij=e.asm.zh).apply(null,arguments)},No=e.dynCall_vijjji=function(){return(No=e.dynCall_vijjji=e.asm.Ah).apply(null,arguments)},Uo=e.dynCall_vjjii=function(){return(Uo=e.dynCall_vjjii=e.asm.Bh).apply(null,arguments)},Ho=e.dynCall_viiiiiji=function(){return(Ho=e.dynCall_viiiiiji=e.asm.Ch).apply(null,arguments)},qo=e.dynCall_jiiiji=function(){return(qo=e.dynCall_jiiiji=e.asm.Dh).apply(null,arguments)},Wo=e.dynCall_viiijjii=function(){return(Wo=e.dynCall_viiijjii=e.asm.Eh).apply(null,arguments)},$o=e.dynCall_jijij=function(){return($o=e.dynCall_jijij=e.asm.Fh).apply(null,arguments)},Ko=e.dynCall_iiiijiii=function(){return(Ko=e.dynCall_iiiijiii=e.asm.Gh).apply(null,arguments)},Go=e.dynCall_jijjij=function(){return(Go=e.dynCall_jijjij=e.asm.Hh).apply(null,arguments)},Yo=e.dynCall_vijj=function(){return(Yo=e.dynCall_vijj=e.asm.Ih).apply(null,arguments)},Vo=e.dynCall_jijiii=function(){return(Vo=e.dynCall_jijiii=e.asm.Jh).apply(null,arguments)},Qo=e.dynCall_viijiiij=function(){return(Qo=e.dynCall_viijiiij=e.asm.Kh).apply(null,arguments)},zo=e.dynCall_vijiiiji=function(){return(zo=e.dynCall_vijiiiji=e.asm.Lh).apply(null,arguments)},Xo=e.dynCall_jiiji=function(){return(Xo=e.dynCall_jiiji=e.asm.Mh).apply(null,arguments)},Jo=e.dynCall_viiijij=function(){return(Jo=e.dynCall_viiijij=e.asm.Nh).apply(null,arguments)},Zo=e.dynCall_viijiij=function(){return(Zo=e.dynCall_viijiij=e.asm.Oh).apply(null,arguments)},el=e.dynCall_viiiiijj=function(){return(el=e.dynCall_viiiiijj=e.asm.Ph).apply(null,arguments)},tl=e.dynCall_viiijji=function(){return(tl=e.dynCall_viiijji=e.asm.Qh).apply(null,arguments)},il=e.dynCall_vijij=function(){return(il=e.dynCall_vijij=e.asm.Rh).apply(null,arguments)},rl=e.dynCall_ijji=function(){return(rl=e.dynCall_ijji=e.asm.Sh).apply(null,arguments)},nl=e.dynCall_vijiji=function(){return(nl=e.dynCall_vijiji=e.asm.Th).apply(null,arguments)},al=e.dynCall_iiiijii=function(){return(al=e.dynCall_iiiijii=e.asm.Uh).apply(null,arguments)},sl=e.dynCall_iiiiiiji=function(){return(sl=e.dynCall_iiiiiiji=e.asm.Vh).apply(null,arguments)},ul=e.dynCall_viiiiiiji=function(){return(ul=e.dynCall_viiiiiiji=e.asm.Wh).apply(null,arguments)},ol=e.dynCall_viiijiii=function(){return(ol=e.dynCall_viiijiii=e.asm.Xh).apply(null,arguments)},ll=e.dynCall_viiiijiii=function(){return(ll=e.dynCall_viiiijiii=e.asm.Yh).apply(null,arguments)},cl=e.dynCall_viiiijii=function(){return(cl=e.dynCall_viiiijii=e.asm.Zh).apply(null,arguments)},_l=e.dynCall_viiiiijiii=function(){return(_l=e.dynCall_viiiiijiii=e.asm._h).apply(null,arguments)},fl=e.dynCall_vijjij=function(){return(fl=e.dynCall_vijjij=e.asm.$h).apply(null,arguments)},dl=e.dynCall_vijji=function(){return(dl=e.dynCall_vijji=e.asm.ai).apply(null,arguments)},pl=e.dynCall_iiiijjijj=function(){return(pl=e.dynCall_iiiijjijj=e.asm.bi).apply(null,arguments)},hl=e.dynCall_jiiiij=function(){return(hl=e.dynCall_jiiiij=e.asm.ci).apply(null,arguments)},yl=e.dynCall_jijj=function(){return(yl=e.dynCall_jijj=e.asm.di).apply(null,arguments)},ml=e.dynCall_jij=function(){return(ml=e.dynCall_jij=e.asm.ei).apply(null,arguments)},vl=e.dynCall_ij=function(){return(vl=e.dynCall_ij=e.asm.fi).apply(null,arguments)},gl=e.dynCall_viijjji=function(){return(gl=e.dynCall_viijjji=e.asm.gi).apply(null,arguments)},bl=e.dynCall_viiijijiji=function(){return(bl=e.dynCall_viiijijiji=e.asm.hi).apply(null,arguments)},jl=e.dynCall_iiijiij=function(){return(jl=e.dynCall_iiijiij=e.asm.ii).apply(null,arguments)},wl=e.dynCall_iiijij=function(){return(wl=e.dynCall_iiijij=e.asm.ji).apply(null,arguments)},Cl=e.dynCall_iiiijjjji=function(){return(Cl=e.dynCall_iiiijjjji=e.asm.ki).apply(null,arguments)},kl=e.dynCall_iiiiijij=function(){return(kl=e.dynCall_iiiiijij=e.asm.li).apply(null,arguments)},Sl=e.dynCall_iiiiijjjiii=function(){return(Sl=e.dynCall_iiiiijjjiii=e.asm.mi).apply(null,arguments)},El=e.dynCall_iiiiiiijj=function(){return(El=e.dynCall_iiiiiiijj=e.asm.ni).apply(null,arguments)},Rl=e.dynCall_jiii=function(){return(Rl=e.dynCall_jiii=e.asm.oi).apply(null,arguments)},Al=e.dynCall_iijji=function(){return(Al=e.dynCall_iijji=e.asm.pi).apply(null,arguments)},Tl=e.dynCall_iijii=function(){return(Tl=e.dynCall_iijii=e.asm.qi).apply(null,arguments)},Dl=e.dynCall_iijjii=function(){return(Dl=e.dynCall_iijjii=e.asm.ri).apply(null,arguments)},Pl=e.dynCall_iijiiii=function(){return(Pl=e.dynCall_iijiiii=e.asm.si).apply(null,arguments)},Il=e.dynCall_vijijj=function(){return(Il=e.dynCall_vijijj=e.asm.ti).apply(null,arguments)},Ml=e.dynCall_viiijjj=function(){return(Ml=e.dynCall_viiijjj=e.asm.ui).apply(null,arguments)},Fl=e.dynCall_iji=function(){return(Fl=e.dynCall_iji=e.asm.vi).apply(null,arguments)},Ol=e.dynCall_viiiiiij=function(){return(Ol=e.dynCall_viiiiiij=e.asm.wi).apply(null,arguments)},xl=e.dynCall_iiijiii=function(){return(xl=e.dynCall_iiijiii=e.asm.xi).apply(null,arguments)},Ll=e.dynCall_viijiiii=function(){return(Ll=e.dynCall_viijiiii=e.asm.yi).apply(null,arguments)},Bl=e.dynCall_vijiii=function(){return(Bl=e.dynCall_vijiii=e.asm.zi).apply(null,arguments)},Nl=e.dynCall_iijjiii=function(){return(Nl=e.dynCall_iijjiii=e.asm.Ai).apply(null,arguments)},Ul=e.dynCall_viijiii=function(){return(Ul=e.dynCall_viijiii=e.asm.Bi).apply(null,arguments)},Hl=e.dynCall_vijiiiiii=function(){return(Hl=e.dynCall_vijiiiiii=e.asm.Ci).apply(null,arguments)},ql=e.dynCall_vijiiii=function(){return(ql=e.dynCall_vijiiii=e.asm.Di).apply(null,arguments)},Wl=e.dynCall_vijiiiii=function(){return(Wl=e.dynCall_vijiiiii=e.asm.Ei).apply(null,arguments)},$l=e.dynCall_viiiiijii=function(){return($l=e.dynCall_viiiiijii=e.asm.Fi).apply(null,arguments)},Kl=e.dynCall_jjj=function(){return(Kl=e.dynCall_jjj=e.asm.Gi).apply(null,arguments)},Gl=e.dynCall_jjiji=function(){return(Gl=e.dynCall_jjiji=e.asm.Hi).apply(null,arguments)},Yl=e.dynCall_vjii=function(){return(Yl=e.dynCall_vjii=e.asm.Ii).apply(null,arguments)},Vl=e.dynCall_jjjjjjd=function(){return(Vl=e.dynCall_jjjjjjd=e.asm.Ji).apply(null,arguments)},Ql=e.dynCall_ijii=function(){return(Ql=e.dynCall_ijii=e.asm.Ki).apply(null,arguments)},zl=e.dynCall_vjiiii=function(){return(zl=e.dynCall_vjiiii=e.asm.Li).apply(null,arguments)},Xl=e.dynCall_jiiijii=function(){return(Xl=e.dynCall_jiiijii=e.asm.Mi).apply(null,arguments)},Jl=e.dynCall_jiijiii=function(){return(Jl=e.dynCall_jiijiii=e.asm.Ni).apply(null,arguments)},Zl=e.dynCall_viiijjij=function(){return(Zl=e.dynCall_viiijjij=e.asm.Oi).apply(null,arguments)},ec=e.dynCall_vijijjiij=function(){return(ec=e.dynCall_vijijjiij=e.asm.Pi).apply(null,arguments)},tc=e.dynCall_viiijjiij=function(){return(tc=e.dynCall_viiijjiij=e.asm.Qi).apply(null,arguments)},ic=e.dynCall_viiiiiijiij=function(){return(ic=e.dynCall_viiiiiijiij=e.asm.Ri).apply(null,arguments)},rc=e.dynCall_viiiiiijj=function(){return(rc=e.dynCall_viiiiiijj=e.asm.Si).apply(null,arguments)},nc=e.dynCall_viijiiiij=function(){return(nc=e.dynCall_viijiiiij=e.asm.Ti).apply(null,arguments)},ac=e.dynCall_viiijiiiijjj=function(){return(ac=e.dynCall_viiijiiiijjj=e.asm.Ui).apply(null,arguments)},sc=e.dynCall_viijijiiiijjj=function(){return(sc=e.dynCall_viijijiiiijjj=e.asm.Vi).apply(null,arguments)},uc=e.dynCall_viiijiiii=function(){return(uc=e.dynCall_viiijiiii=e.asm.Wi).apply(null,arguments)},oc=e.dynCall_viiiijjij=function(){return(oc=e.dynCall_viiiijjij=e.asm.Xi).apply(null,arguments)},lc=e.dynCall_jiiiiji=function(){return(lc=e.dynCall_jiiiiji=e.asm.Yi).apply(null,arguments)},cc=e.dynCall_viiiijijji=function(){return(cc=e.dynCall_viiiijijji=e.asm.Zi).apply(null,arguments)},_c=e.dynCall_viiijiiijii=function(){return(_c=e.dynCall_viiijiiijii=e.asm._i).apply(null,arguments)},fc=e.dynCall_viijijiiii=function(){return(fc=e.dynCall_viijijiiii=e.asm.$i).apply(null,arguments)},dc=e.dynCall_jd=function(){return(dc=e.dynCall_jd=e.asm.aj).apply(null,arguments)},pc=e.dynCall_jf=function(){return(pc=e.dynCall_jf=e.asm.bj).apply(null,arguments)},hc=e.dynCall_iijjj=function(){return(hc=e.dynCall_iijjj=e.asm.cj).apply(null,arguments)},yc=e.dynCall_iiijji=function(){return(yc=e.dynCall_iiijji=e.asm.dj).apply(null,arguments)},mc=e.dynCall_vijijiiiijjj=function(){return(mc=e.dynCall_vijijiiiijjj=e.asm.ej).apply(null,arguments)},vc=e.dynCall_viijiiiiii=function(){return(vc=e.dynCall_viijiiiiii=e.asm.fj).apply(null,arguments)},gc=e.dynCall_jjjji=function(){return(gc=e.dynCall_jjjji=e.asm.gj).apply(null,arguments)},bc=e.dynCall_jjjii=function(){return(bc=e.dynCall_jjjii=e.asm.hj).apply(null,arguments)},jc=e.dynCall_jji=function(){return(jc=e.dynCall_jji=e.asm.ij).apply(null,arguments)},wc=e.dynCall_viiiijiiiii=function(){return(wc=e.dynCall_viiiijiiiii=e.asm.jj).apply(null,arguments)},Cc=e.dynCall_viiiijiiii=function(){return(Cc=e.dynCall_viiiijiiii=e.asm.kj).apply(null,arguments)},kc=e.dynCall_iijjijj=function(){return(kc=e.dynCall_iijjijj=e.asm.lj).apply(null,arguments)},Sc=e.dynCall_jijjii=function(){return(Sc=e.dynCall_jijjii=e.asm.mj).apply(null,arguments)},Ec=e.dynCall_viijjii=function(){return(Ec=e.dynCall_viijjii=e.asm.nj).apply(null,arguments)},Rc=e.dynCall_iiiiiij=function(){return(Rc=e.dynCall_iiiiiij=e.asm.oj).apply(null,arguments)},Ac=e.dynCall_iiiiiiij=function(){return(Ac=e.dynCall_iiiiiiij=e.asm.pj).apply(null,arguments)},Tc=e.dynCall_iiiiiiiiiiji=function(){return(Tc=e.dynCall_iiiiiiiiiiji=e.asm.qj).apply(null,arguments)},Dc=e.dynCall_iiiiiiiij=function(){return(Dc=e.dynCall_iiiiiiiij=e.asm.rj).apply(null,arguments)},Pc=e.dynCall_jiiijjj=function(){return(Pc=e.dynCall_jiiijjj=e.asm.sj).apply(null,arguments)},Ic=e.dynCall_viiijijj=function(){return(Ic=e.dynCall_viiijijj=e.asm.tj).apply(null,arguments)},Mc=e.dynCall_jiiiiiii=function(){return(Mc=e.dynCall_jiiiiiii=e.asm.uj).apply(null,arguments)},Fc=e.dynCall_jiijj=function(){return(Fc=e.dynCall_jiijj=e.asm.vj).apply(null,arguments)},Oc=e.dynCall_jiiijj=function(){return(Oc=e.dynCall_jiiijj=e.asm.wj).apply(null,arguments)},xc=e.dynCall_iiidj=function(){return(xc=e.dynCall_iiidj=e.asm.xj).apply(null,arguments)},Lc=e.dynCall_iiiiiiiiiij=function(){return(Lc=e.dynCall_iiiiiiiiiij=e.asm.yj).apply(null,arguments)},Bc=e.dynCall_iiiiiiiiijiiiiiii=function(){return(Bc=e.dynCall_iiiiiiiiijiiiiiii=e.asm.zj).apply(null,arguments)},Nc=e.dynCall_iiijjiiji=function(){return(Nc=e.dynCall_iiijjiiji=e.asm.Aj).apply(null,arguments)},Uc=e.dynCall_iiijjiij=function(){return(Uc=e.dynCall_iiijjiij=e.asm.Bj).apply(null,arguments)},Hc=e.dynCall_iiidjiij=function(){return(Hc=e.dynCall_iiidjiij=e.asm.Cj).apply(null,arguments)},qc=e.dynCall_iiiiiiiji=function(){return(qc=e.dynCall_iiiiiiiji=e.asm.Dj).apply(null,arguments)},Wc=e.dynCall_iiiidjj=function(){return(Wc=e.dynCall_iiiidjj=e.asm.Ej).apply(null,arguments)},$c=e.dynCall_iiiijjj=function(){return($c=e.dynCall_iiiijjj=e.asm.Fj).apply(null,arguments)},Kc=e.dynCall_iiiiiiiiji=function(){return(Kc=e.dynCall_iiiiiiiiji=e.asm.Gj).apply(null,arguments)},Gc=e.dynCall_iiiiiiiiiiiij=function(){return(Gc=e.dynCall_iiiiiiiiiiiij=e.asm.Hj).apply(null,arguments)},Yc=e.dynCall_jiiiiii=function(){return(Yc=e.dynCall_jiiiiii=e.asm.Ij).apply(null,arguments)},Vc=e.dynCall_iiiijjiii=function(){return(Vc=e.dynCall_iiiijjiii=e.asm.Jj).apply(null,arguments)},Qc=e.dynCall_viiiijji=function(){return(Qc=e.dynCall_viiiijji=e.asm.Kj).apply(null,arguments)},zc=e.dynCall_jiiiiiijii=function(){return(zc=e.dynCall_jiiiiiijii=e.asm.Lj).apply(null,arguments)},Xc=e.dynCall_jiijjjii=function(){return(Xc=e.dynCall_jiijjjii=e.asm.Mj).apply(null,arguments)},Jc=e.dynCall_jiiiijii=function(){return(Jc=e.dynCall_jiiiijii=e.asm.Nj).apply(null,arguments)},Zc=e.dynCall_jiiiiijiiii=function(){return(Zc=e.dynCall_jiiiiijiiii=e.asm.Oj).apply(null,arguments)},e_=e.dynCall_jiiijiii=function(){return(e_=e.dynCall_jiiijiii=e.asm.Pj).apply(null,arguments)},t_=e.dynCall_vj=function(){return(t_=e.dynCall_vj=e.asm.Qj).apply(null,arguments)},i_=e.dynCall_viiiiijjii=function(){return(i_=e.dynCall_viiiiijjii=e.asm.Rj).apply(null,arguments)},r_=e.dynCall_viiiiiijii=function(){return(r_=e.dynCall_viiiiiijii=e.asm.Sj).apply(null,arguments)},n_=e.dynCall_viiiiiiijjjji=function(){return(n_=e.dynCall_viiiiiiijjjji=e.asm.Tj).apply(null,arguments)},a_=e.dynCall_vjiii=function(){return(a_=e.dynCall_vjiii=e.asm.Uj).apply(null,arguments)},s_=e.dynCall_ijjiii=function(){return(s_=e.dynCall_ijjiii=e.asm.Vj).apply(null,arguments)},u_=e.dynCall_iiiiijiii=function(){return(u_=e.dynCall_iiiiijiii=e.asm.Wj).apply(null,arguments)},o_=e.dynCall_iiijiiji=function(){return(o_=e.dynCall_iiijiiji=e.asm.Xj).apply(null,arguments)},l_=e.dynCall_iijiii=function(){return(l_=e.dynCall_iijiii=e.asm.Yj).apply(null,arguments)},c_=e.dynCall_vijijjji=function(){return(c_=e.dynCall_vijijjji=e.asm.Zj).apply(null,arguments)},__=e.dynCall_viijiijj=function(){return(__=e.dynCall_viijiijj=e.asm._j).apply(null,arguments)},f_=e.dynCall_viijijj=function(){return(f_=e.dynCall_viijijj=e.asm.$j).apply(null,arguments)},d_=e.dynCall_viiiiijjji=function(){return(d_=e.dynCall_viiiiijjji=e.asm.ak).apply(null,arguments)},p_=e.dynCall_iiijiijj=function(){return(p_=e.dynCall_iiijiijj=e.asm.bk).apply(null,arguments)},h_=e.dynCall_viiijijjj=function(){return(h_=e.dynCall_viiijijjj=e.asm.ck).apply(null,arguments)},y_=e.dynCall_iijiijj=function(){return(y_=e.dynCall_iijiijj=e.asm.dk).apply(null,arguments)},m_=e.dynCall_viiijjjji=function(){return(m_=e.dynCall_viiijjjji=e.asm.ek).apply(null,arguments)},v_=e.dynCall_vijjiii=function(){return(v_=e.dynCall_vijjiii=e.asm.fk).apply(null,arguments)},g_=e.dynCall_vijijjiiiii=function(){return(g_=e.dynCall_vijijjiiiii=e.asm.gk).apply(null,arguments)},b_=e.dynCall_vijjiiiii=function(){return(b_=e.dynCall_vijjiiiii=e.asm.hk).apply(null,arguments)},j_=e.dynCall_iiijjji=function(){return(j_=e.dynCall_iiijjji=e.asm.ik).apply(null,arguments)},w_=e.dynCall_iiiiiijji=function(){return(w_=e.dynCall_iiiiiijji=e.asm.jk).apply(null,arguments)},C_=e.dynCall_iijjjii=function(){return(C_=e.dynCall_iijjjii=e.asm.kk).apply(null,arguments)},k_=e.dynCall_iiiiijjji=function(){return(k_=e.dynCall_iiiiijjji=e.asm.lk).apply(null,arguments)},S_=e.dynCall_iiiiijjj=function(){return(S_=e.dynCall_iiiiijjj=e.asm.mk).apply(null,arguments)},E_=e.dynCall_viiijiji=function(){return(E_=e.dynCall_viiijiji=e.asm.nk).apply(null,arguments)},R_=e.dynCall_jijiiii=function(){return(R_=e.dynCall_jijiiii=e.asm.ok).apply(null,arguments)},A_=e.dynCall_viijiji=function(){return(A_=e.dynCall_viijiji=e.asm.pk).apply(null,arguments)};function Mp(i){var n=j();try{X(i)()}catch(a){if(h(n),a!==a+0)throw a;b(1,0)}}function Fp(i,n,a){var s=j();try{X(i)(n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function Op(i,n){var a=j();try{return X(i)(n)}catch(s){if(h(a),s!==s+0)throw s;b(1,0)}}function xp(i,n,a){var s=j();try{return X(i)(n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function Lp(i,n){var a=j();try{X(i)(n)}catch(s){if(h(a),s!==s+0)throw s;b(1,0)}}function Bp(i,n,a,s){var u=j();try{return X(i)(n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function Np(i,n,a,s,u,o){var c=j();try{return X(i)(n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function Up(i,n,a,s,u){var o=j();try{X(i)(n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function Hp(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function qp(i,n,a,s){var u=j();try{return X(i)(n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function Wp(i,n,a,s){var u=j();try{return X(i)(n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function $p(i,n,a,s){var u=j();try{X(i)(n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function Kp(i,n,a,s){var u=j();try{X(i)(n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function Gp(i,n,a,s,u,o,c,_){var f=j();try{return X(i)(n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Yp(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return X(i)(n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Vp(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{return X(i)(n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function Qp(i){var n=j();try{return X(i)()}catch(a){if(h(n),a!==a+0)throw a;b(1,0)}}function zp(i,n,a,s,u,o,c,_){var f=j();try{X(i)(n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Xp(i,n,a,s,u,o,c){var _=j();try{return X(i)(n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Jp(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{return X(i)(n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function Zp(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{X(i)(n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function eh(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie){var ye=j();try{X(i)(n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie)}catch(ke){if(h(ye),ke!==ke+0)throw ke;b(1,0)}}function th(i,n,a,s,u,o,c){var _=j();try{X(i)(n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function ih(i,n,a,s,u,o){var c=j();try{return X(i)(n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function rh(i,n,a,s,u,o,c,_,f){var p=j();try{X(i)(n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function nh(i,n,a,s,u,o){var c=j();try{X(i)(n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function ah(i,n,a,s,u,o,c,_,f){var p=j();try{return X(i)(n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function sh(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function uh(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function oh(i,n,a,s,u,o){var c=j();try{X(i)(n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function lh(i,n,a){var s=j();try{X(i)(n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function ch(i,n,a){var s=j();try{X(i)(n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function _h(i,n){var a=j();try{return X(i)(n)}catch(s){if(h(a),s!==s+0)throw s;b(1,0)}}function fh(i,n){var a=j();try{return X(i)(n)}catch(s){if(h(a),s!==s+0)throw s;b(1,0)}}function dh(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye){var ke=j();try{return X(i)(n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye)}catch(x){if(h(ke),x!==x+0)throw x;b(1,0)}}function ph(i,n,a,s,u,o,c,_,f,p){var y=j();try{X(i)(n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function hh(i,n,a,s,u,o,c,_,f,p){var y=j();try{return X(i)(n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function yh(i,n,a){var s=j();try{return X(i)(n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function mh(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{X(i)(n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function vh(i,n){var a=j();try{return X(i)(n)}catch(s){if(h(a),s!==s+0)throw s;b(1,0)}}function gh(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye,ke){var x=j();try{return X(i)(n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye,ke)}catch(z){if(h(x),z!==z+0)throw z;b(1,0)}}function bh(i,n,a,s){var u=j();try{return X(i)(n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function jh(i,n,a,s,u,o,c){var _=j();try{X(i)(n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function wh(i,n,a){var s=j();try{return X(i)(n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function Ch(i,n,a,s,u,o,c){var _=j();try{return X(i)(n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function kh(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function Sh(i,n){var a=j();try{return X(i)(n)}catch(s){if(h(a),s!==s+0)throw s;b(1,0)}}function Eh(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function Rh(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function Ah(i,n,a,s,u,o,c,_){var f=j();try{return X(i)(n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Th(i,n,a,s){var u=j();try{X(i)(n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function Dh(i,n,a,s){var u=j();try{X(i)(n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function Ph(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie){var ye=j();try{return X(i)(n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie)}catch(ke){if(h(ye),ke!==ke+0)throw ke;b(1,0)}}function Ih(i,n,a){var s=j();try{return X(i)(n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function Mh(i,n,a){var s=j();try{return X(i)(n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function Fh(i,n,a,s,u,o,c,_,f,p){var y=j();try{X(i)(n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Oh(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{X(i)(n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function xh(i,n,a,s,u){var o=j();try{return Qe(i,n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function Lh(i,n,a,s,u,o,c){var _=j();try{Wu(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Bh(i,n){var a=j();try{return _r(i,n)}catch(s){if(h(a),s!==s+0)throw s;b(1,0)}}function Nh(i,n,a){var s=j();try{return po(i,n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function Uh(i,n,a,s,u,o,c){var _=j();try{lr(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Hh(i,n,a,s,u,o,c){var _=j();try{return It(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function qh(i,n,a,s,u,o,c,_,f){var p=j();try{return Yt(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Wh(i,n,a,s){var u=j();try{return Li(i,n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function $h(i,n,a,s,u,o){var c=j();try{Ku(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function Kh(i){var n=j();try{return cr(i)}catch(a){if(h(n),a!==a+0)throw a;b(1,0)}}function Gh(i,n,a,s,u){var o=j();try{Hu(i,n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function Yh(i,n,a,s,u,o,c,_){var f=j();try{Gu(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Vh(i,n,a,s,u,o,c){var _=j();try{return Yu(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Qh(i,n,a,s,u,o,c,_){var f=j();try{qu(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function zh(i,n,a,s,u){var o=j();try{return Ju(i,n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function Xh(i,n,a,s,u,o,c,_){var f=j();try{$u(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Jh(i,n,a,s){var u=j();try{io(i,n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function Zh(i,n,a,s,u,o,c,_,f){var p=j();try{fo(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function ey(i,n,a,s,u,o,c,_,f){var p=j();try{Ol(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function ty(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{i_(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function iy(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{r_(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function ry(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye){var ke=j();try{n_(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye)}catch(x){if(h(ke),x!==x+0)throw x;b(1,0)}}function ny(i,n,a,s,u,o,c){var _=j();try{zu(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function ay(i,n,a,s,u){var o=j();try{Xu(i,n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function sy(i,n,a,s,u,o){var c=j();try{Vu(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function uy(i,n,a,s,u,o,c){var _=j();try{return Al(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function oy(i,n,a,s,u){var o=j();try{return ro(i,n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function ly(i,n,a,s,u,o){var c=j();try{return Zu(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function cy(i,n,a,s,u,o,c){var _=j();try{eo(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function _y(i,n,a,s,u,o){var c=j();try{return Tl(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function fy(i,n,a,s,u,o,c,_){var f=j();try{mo(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function dy(i,n,a,s,u,o,c,_,f){var p=j();try{return bo(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function py(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return jo(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function hy(i,n,a,s,u,o,c){var _=j();try{return ho(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function yy(i,n,a,s,u,o,c,_){var f=j();try{return s_(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function my(i,n,a,s,u,o,c,_){var f=j();try{return _o(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function vy(i,n,a,s,u,o,c,_,f){var p=j();try{co(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function gy(i,n,a,s,u,o,c,_){var f=j();try{so(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function by(i,n,a,s,u,o,c,_){var f=j();try{return uo(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function jy(i,n,a,s,u,o){var c=j();try{return to(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function wy(i,n,a,s,u,o,c,_){var f=j();try{no(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Cy(i,n,a,s,u,o,c,_,f,p){var y=j();try{ao(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function ky(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{lo(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function Sy(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N){var ie=j();try{oo(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N)}catch(ye){if(h(ie),ye!==ye+0)throw ye;b(1,0)}}function Ey(i,n,a,s,u,o,c){var _=j();try{return yo(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Ry(i,n,a,s,u,o,c){var _=j();try{return vo(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Ay(i,n,a,s,u,o,c){var _=j();try{return go(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Ty(i,n,a,s,u,o){var c=j();try{wo(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function Dy(i,n,a,s,u,o,c,_){var f=j();try{return Dl(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Py(i,n,a,s,u,o,c){var _=j();try{return Co(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Iy(i,n,a,s,u,o,c,_){var f=j();try{return ko(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function My(i,n,a,s,u,o){var c=j();try{return So(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function Fy(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return El(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Oy(i,n,a,s){var u=j();try{return ml(i,n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function xy(i,n,a,s){var u=j();try{return Rl(i,n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function Ly(i,n,a,s,u,o,c,_,f){var p=j();try{return Ko(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function By(i,n,a){var s=j();try{return Ro(i,n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function Ny(i,n,a,s,u,o,c,_,f){var p=j();try{Eo(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Uy(i,n,a,s,u,o,c){var _=j();try{return l_(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Hy(i,n,a,s,u,o,c,_,f,p){var y=j();try{gl(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function qy(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{bl(i,n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function Wy(i,n,a,s,u,o,c,_,f){var p=j();try{Jo(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function $y(i,n,a,s,u){var o=j();try{return Do(i,n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function Ky(i,n,a,s,u,o){var c=j();try{return Ao(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function Gy(i,n,a,s,u,o,c,_,f){var p=j();try{return To(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Yy(i,n,a){var s=j();try{return vl(i,n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function Vy(i,n,a,s,u,o,c){var _=j();try{zl(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Qy(i,n,a,s,u,o,c,_){var f=j();try{nl(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function zy(i,n,a,s,u,o){var c=j();try{return Po(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function Xy(i,n,a,s,u,o){var c=j();try{Yo(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function Jy(i,n,a,s,u,o,c,_,f){var p=j();try{tl(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Zy(i,n,a,s,u,o,c){var _=j();try{Uo(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function em(i,n,a,s,u,o,c,_,f){var p=j();try{No(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function tm(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{Bo(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function im(i,n,a,s,u,o){var c=j();try{return Xo(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function rm(i,n,a,s,u,o,c,_,f,p){var y=j();try{Io(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function nm(i,n,a,s,u,o,c){var _=j();try{return qo(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function am(i,n,a,s,u,o,c,_,f){var p=j();try{Ho(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function sm(i,n,a,s,u,o,c,_,f,p,y,C,S,O){var N=j();try{return Fo(i,n,a,s,u,o,c,_,f,p,y,C,S,O)}catch(ie){if(h(N),ie!==ie+0)throw ie;b(1,0)}}function um(i,n,a,s,u,o,c,_,f,p){var y=j();try{return Oo(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function om(i,n,a,s,u,o,c,_,f){var p=j();try{return xo(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function lm(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye,ke){var x=j();try{return Mo(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye,ke)}catch(z){if(h(x),z!==z+0)throw z;b(1,0)}}function cm(i,n,a,s,u,o,c,_,f){var p=j();try{return Lo(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function _m(i,n,a,s,u,o,c,_){var f=j();try{Qu(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function fm(i,n,a,s,u,o,c,_,f,p){var y=j();try{Wo(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function dm(i,n,a,s,u,o,c,_,f,p){var y=j();try{Qo(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function pm(i,n,a,s,u,o,c,_,f,p){var y=j();try{zo(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function hm(i,n,a,s,u,o,c){var _=j();try{return Vo(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function ym(i,n,a,s,u,o,c,_,f){var p=j();try{return Go(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function mm(i,n,a,s,u,o,c,_,f){var p=j();try{Zo(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function vm(i,n,a,s,u,o,c){var _=j();try{return $o(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function gm(i,n,a,s,u,o,c){var _=j();try{il(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function bm(i,n,a,s,u,o){var c=j();try{return rl(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function jm(i,n,a,s,u,o){var c=j();try{return yl(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function wm(i,n,a,s,u,o,c,_){var f=j();try{return al(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Cm(i,n,a,s,u,o,c,_,f){var p=j();try{return sl(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function km(i,n,a,s,u,o,c,_,f){var p=j();try{ol(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Sm(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{_l(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Em(i,n,a,s,u,o,c,_,f){var p=j();try{fl(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Rm(i,n,a,s,u,o,c){var _=j();try{dl(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Am(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{return pl(i,n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function Tm(i,n,a,s,u,o){var c=j();try{a_(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function Dm(i,n,a,s,u,o,c){var _=j();try{return hl(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Pm(i,n,a,s,u,o,c,_,f,p){var y=j();try{ul(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Im(i,n,a,s,u,o,c,_,f,p){var y=j();try{ll(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Mm(i,n,a,s,u,o,c,_,f){var p=j();try{cl(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Fm(i,n,a,s,u,o,c,_,f){var p=j();try{return jl(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Om(i,n,a,s,u,o,c,_){var f=j();try{return wl(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function xm(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{return Cl(i,n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function Lm(i,n,a,s,u,o,c,_,f,p){var y=j();try{return kl(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Bm(i,n,a,s,u,o,c,_,f,p,y,C,S,O){var N=j();try{return Sl(i,n,a,s,u,o,c,_,f,p,y,C,S,O)}catch(ie){if(h(N),ie!==ie+0)throw ie;b(1,0)}}function Nm(i,n,a,s,u,o,c,_){var f=j();try{return Pl(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Um(i,n,a,s,u,o,c){var _=j();try{Bl(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Hm(i,n,a,s,u,o,c,_,f,p){var y=j();try{Hl(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function qm(i,n,a,s,u,o,c,_){var f=j();try{ql(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Wm(i,n,a,s,u,o,c,_){var f=j();try{return xl(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function $m(i,n,a,s,u,o,c,_,f){var p=j();try{Ll(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Km(i,n,a,s,u,o,c,_,f){var p=j();try{return Nl(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Gm(i,n,a,s,u,o,c,_,f){var p=j();try{Il(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Ym(i,n,a,s,u,o,c,_,f,p){var y=j();try{Ml(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Vm(i,n,a,s){var u=j();try{return Fl(i,n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function Qm(i,n,a,s,u,o,c,_){var f=j();try{Ul(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function zm(i,n,a,s,u,o,c,_,f){var p=j();try{Wl(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Xm(i,n,a,s,u,o,c,_,f,p){var y=j();try{$l(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Jm(i,n,a,s,u,o,c){var _=j();try{return Gl(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Zm(i,n,a,s,u){var o=j();try{return Ql(i,n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function ev(i,n,a,s,u){var o=j();try{Yl(i,n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function tv(i,n,a,s,u){var o=j();try{return Kl(i,n,a,s,u)}catch(c){if(h(o),c!==c+0)throw c;b(1,0)}}function iv(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{return Vl(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function rv(i,n,a,s,u,o,c,_){var f=j();try{return lc(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function nv(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{Zl(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function av(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{ec(i,n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function sv(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{nc(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function uv(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie){var ye=j();try{ac(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie)}catch(ke){if(h(ye),ke!==ke+0)throw ke;b(1,0)}}function ov(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye,ke){var x=j();try{sc(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye,ke)}catch(z){if(h(x),z!==z+0)throw z;b(1,0)}}function lv(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{tc(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function cv(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{ic(i,n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function _v(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{fc(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function fv(i,n,a,s,u,o,c,_){var f=j();try{return Xl(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function dv(i,n,a,s,u,o,c,_){var f=j();try{return Jl(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function pv(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{rc(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function hv(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{cc(i,n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function yv(i,n,a,s,u,o,c,_,f,p){var y=j();try{uc(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function mv(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{oc(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function vv(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{_c(i,n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function gv(i,n,a,s,u,o,c,_){var f=j();try{return hc(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function bv(i,n,a,s,u,o,c,_){var f=j();try{return yc(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function jv(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye){var ke=j();try{mc(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye)}catch(x){if(h(ke),x!==x+0)throw x;b(1,0)}}function wv(i,n){var a=j();try{return dc(i,n)}catch(s){if(h(a),s!==s+0)throw s;b(1,0)}}function Cv(i,n){var a=j();try{return pc(i,n)}catch(s){if(h(a),s!==s+0)throw s;b(1,0)}}function kv(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{vc(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Sv(i,n,a,s,u,o,c,_){var f=j();try{return gc(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Ev(i,n,a,s,u,o,c){var _=j();try{return bc(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Rv(i,n,a,s){var u=j();try{return jc(i,n,a,s)}catch(o){if(h(u),o!==o+0)throw o;b(1,0)}}function Av(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{wc(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function Tv(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{Cc(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Dv(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return kc(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Pv(i,n,a,s,u,o,c,_,f,p){var y=j();try{return Dc(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Iv(i,n,a,s,u,o,c,_){var f=j();try{return Rc(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Mv(i,n,a,s,u,o,c,_){var f=j();try{return Sc(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Fv(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{return Tc(i,n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function Ov(i,n,a,s,u,o,c,_,f,p){var y=j();try{return Pc(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function xv(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{Ic(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Lv(i,n,a,s,u,o,c,_,f){var p=j();try{Ec(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Bv(i,n,a,s,u,o,c,_){var f=j();try{return Mc(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Nv(i,n,a,s,u,o,c){var _=j();try{return Fc(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function Uv(i,n,a,s,u,o,c,_,f){var p=j();try{return Ac(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function Hv(i,n,a,s,u,o,c,_){var f=j();try{return Oc(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function qv(i,n,a,s,u,o){var c=j();try{return xc(i,n,a,s,u,o)}catch(_){if(h(c),_!==_+0)throw _;b(1,0)}}function Wv(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{return Lc(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function $v(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye,ke){var x=j();try{return Bc(i,n,a,s,u,o,c,_,f,p,y,C,S,O,N,ie,ye,ke)}catch(z){if(h(x),z!==z+0)throw z;b(1,0)}}function Kv(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{return Nc(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function Gv(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return Uc(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Yv(i,n,a,s,u,o,c,_,f,p){var y=j();try{return Hc(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Vv(i,n,a,s,u,o,c,_,f,p){var y=j();try{return qc(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Qv(i,n,a,s,u,o,c,_,f){var p=j();try{return Wc(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function zv(i,n,a,s,u,o,c,_,f,p){var y=j();try{return $c(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Xv(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return Kc(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Jv(i,n,a,s,u,o,c,_,f,p,y,C,S,O){var N=j();try{return Gc(i,n,a,s,u,o,c,_,f,p,y,C,S,O)}catch(ie){if(h(N),ie!==ie+0)throw ie;b(1,0)}}function Zv(i,n,a,s,u,o,c){var _=j();try{return Yc(i,n,a,s,u,o,c)}catch(f){if(h(_),f!==f+0)throw f;b(1,0)}}function eg(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return Vc(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function tg(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return zc(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function ig(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return Xc(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function rg(i,n,a,s,u,o,c,_,f,p){var y=j();try{Qc(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function ng(i,n,a,s,u,o,c,_,f){var p=j();try{return Jc(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function ag(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{return Zc(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function sg(i,n,a,s,u,o,c,_,f){var p=j();try{return e_(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function ug(i,n,a){var s=j();try{t_(i,n,a)}catch(u){if(h(s),u!==u+0)throw u;b(1,0)}}function og(i,n,a,s,u,o,c,_,f,p){var y=j();try{return o_(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function lg(i,n,a,s,u,o,c,_,f,p){var y=j();try{return u_(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function cg(i,n,a,s,u,o,c,_,f,p){var y=j();try{el(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function _g(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{c_(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}function fg(i,n,a,s,u,o,c,_,f,p){var y=j();try{f_(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function dg(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return p_(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function pg(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{__(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function hg(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{d_(i,n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function yg(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{h_(i,n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function mg(i,n,a,s,u,o,c,_,f,p){var y=j();try{return y_(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function vg(i,n,a,s,u,o,c,_,f,p){var y=j();try{return j_(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function gg(i,n,a,s,u,o,c,_,f,p,y,C,S){var O=j();try{m_(i,n,a,s,u,o,c,_,f,p,y,C,S)}catch(N){if(h(O),N!==N+0)throw N;b(1,0)}}function bg(i,n,a,s,u,o,c,_,f){var p=j();try{A_(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function jg(i,n,a,s,u,o,c,_,f,p,y,C,S,O){var N=j();try{g_(i,n,a,s,u,o,c,_,f,p,y,C,S,O)}catch(ie){if(h(N),ie!==ie+0)throw ie;b(1,0)}}function wg(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{b_(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Cg(i,n,a,s,u,o,c,_,f){var p=j();try{v_(i,n,a,s,u,o,c,_,f)}catch(y){if(h(p),y!==y+0)throw y;b(1,0)}}function kg(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return w_(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Sg(i,n,a,s,u,o,c,_,f,p){var y=j();try{E_(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Eg(i,n,a,s,u,o,c,_){var f=j();try{return R_(i,n,a,s,u,o,c,_)}catch(p){if(h(f),p!==p+0)throw p;b(1,0)}}function Rg(i,n,a,s,u,o,c,_,f,p,y){var C=j();try{return S_(i,n,a,s,u,o,c,_,f,p,y)}catch(S){if(h(C),S!==S+0)throw S;b(1,0)}}function Ag(i,n,a,s,u,o,c,_,f,p){var y=j();try{return C_(i,n,a,s,u,o,c,_,f,p)}catch(C){if(h(y),C!==C+0)throw C;b(1,0)}}function Tg(i,n,a,s,u,o,c,_,f,p,y,C){var S=j();try{return k_(i,n,a,s,u,o,c,_,f,p,y,C)}catch(O){if(h(S),O!==O+0)throw O;b(1,0)}}e.stackAlloc=te,e.stackSave=j,e.stackRestore=h,e.ccall=Ma;var fr;dt=function i(){fr||T_(),fr||(dt=i)};function Dg(i){var n=e._main,a=0,s=0;try{var u=n(a,s);return Da(u,!0),u}catch(o){return Pa(o)}}function T_(i){if(i=i||g,tt>0||(Dt(),tt>0))return;function n(){fr||(fr=!0,e.calledRun=!0,!pe&&(Jr(),Zr(),l(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),D_&&Dg(i),en()))}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 D_=!0;return e.noInitialRun&&(D_=!1),T_(),t.ready}})(),x_=qg;var pt=Ni(require("apache-arrow")),mr=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),l=pt.RecordBatchReader.from(e);return console.assert(l.isSync()),console.assert(l.isFile()),new pt.Table(l)}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 l=new vr(this._bindings,this._conn,e),d=pt.RecordBatchReader.from(l);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 es(this._bindings,this._conn,e)}createScalarFunction(t,e,l){this._bindings.createScalarFunction(this._conn,t,e,l)}insertArrowTable(t,e){let l=pt.tableToIPC(t,"stream");this.insertArrowFromIPCStream(l,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)}},vr=class{constructor(t,e,l){this.bindings=t;this.conn=e;this.header=l;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}},es=class{constructor(t,e,l){this.bindings=t,this.connectionId=e,this.statementId=l}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),l=pt.RecordBatchReader.from(e);return console.assert(l.isSync()),console.assert(l.isFile()),new pt.Table(l)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),l=new vr(this.bindings,this.connectionId,e),d=pt.RecordBatchReader.from(l);return console.assert(d.isSync()),console.assert(d.isStream()),d}};var N_=new TextEncoder,L_=new TextDecoder("utf-8");function ts(r,t,e){let l=N_.encode(e),d=r._malloc(l.byteLength),m=r.HEAPU8.subarray(d,d+l.byteLength);m.set(l),r.HEAPF64[(t>>3)+0]=1,r.HEAPF64[(t>>3)+1]=d,r.HEAPF64[(t>>3)+2]=m.byteLength}function rs(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 is(r,t,e,l){let d=r.HEAPU8.subarray(t,t+l*rs(e));switch(e){case"UINT8":return new Uint8Array(d.buffer,d.byteOffset,l);case"INT8":return new Int8Array(d.buffer,d.byteOffset,l);case"INT32":return new Int32Array(d.buffer,d.byteOffset,l);case"FLOAT":return new Float32Array(d.buffer,d.byteOffset,l);case"DOUBLE":return new Float64Array(d.buffer,d.byteOffset,l);case"VARCHAR":return new Float64Array(d.buffer,d.byteOffset,l);default:return new Array(0)}}function B_(r,t,e){let l=r.HEAPU8.subarray(t,t+e);return new Uint8Array(l.buffer,l.byteOffset,e)}function gr(r,t,e){let l=r.HEAPU8.subarray(t,t+e*8);return new Float64Array(l.buffer,l.byteOffset,e)}function U_(r,t,e,l,d,m,g,E){try{let A=r._udfFunctions.get(l);if(!A){ts(t,e,"Unknown UDF with id: "+l);return}let L=L_.decode(t.HEAPU8.subarray(d,d+m)),D=JSON.parse(L),U=gr(t,g,E/8),P=G=>{var M;let pe=null;switch(G.validityBuffer!==void 0&&(pe=B_(t,U[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=is(t,U[G.dataBuffer],G.physicalType,D.rows),se=[],Te=gr(t,U[G.lengthBuffer],D.rows);for(let R=0;R<D.rows;++R){if(pe!=null&&!pe[R]){se.push(null);continue}let I=t.HEAPU8.subarray(ce[R],ce[R]+Te[R]),Me=L_.decode(I);se.push(Me)}return R=>se[R]}case"STRUCT":{let ce={},se=[];for(let Te=0;Te<(((M=G.children)==null?void 0:M.length)||0);++Te){let R=G.children[Te],I=P(R);se.push(Me=>{ce[R.name]=I(Me)})}return pe!=null?Te=>{if(!pe[Te])return null;for(let R of se)R(Te);return ce}:Te=>{for(let R of se)R(Te);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=is(t,U[G.dataBuffer],G.physicalType,D.rows);return pe!=null?se=>pe[se]?ce[se]:null:se=>ce[se]}}},_e=[];for(let G=0;G<D.args.length;++G)_e.push(P(D.args[G]));let $=D.rows*rs(D.ret.physicalType),Y=t._malloc($),Z=is(t,Y,D.ret.physicalType,D.rows),ne=t._malloc(D.rows),Ee=B_(t,ne,D.rows);if(Z.length==0||Ee.length==0){ts(t,e,"Can't create physical arrays for result");return}let ge=Z;D.ret.physicalType=="VARCHAR"&&(ge=new Array(D.rows));let qe=[];for(let G=0;G<D.args.length;++G)qe.push(null);for(let G=0;G<D.rows;++G){for(let M=0;M<D.args.length;++M)qe[M]=_e[M](G);let pe=A.func(...qe);ge[G]=pe,Ee[G]=pe==null?0:1}let ue=0;switch(D.ret.physicalType){case"VARCHAR":{let G=new Array(0);ue=t._malloc(D.rows*rs("DOUBLE"));let pe=gr(t,ue,D.rows),M=0;for(let R=0;R<D.rows;++R){let I=N_.encode(ge[R]||"");G.push(I),pe[R]=I.length,M+=I.length}let ce=t._malloc(M),se=t.HEAPU8.subarray(ce,ce+M),Te=0;for(let R=0;R<D.rows;++R){Z[R]=Te;let I=G[R];se.subarray(Te,Te+I.length).set(I),Te+=I.length}}}let ae=3*8,ee=t._malloc(ae),re=gr(t,ee,3);re[0]=Y,re[1]=ne,re[2]=ue,t.HEAPF64[(e>>3)+0]=0,t.HEAPF64[(e>>3)+1]=ee,t.HEAPF64[(e>>3)+2]=0}catch(A){ts(t,e,A.toString())}}function $g(){let r=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),r.decode(t))}var Vt=$g();function We(r,t){console.error(`FAIL WITH: ${t}`),r.ccall("duckdb_web_fail_with",null,["string"],[t])}function Qt(r,t,e){let l=r.HEAPU8.subarray(t,t+e),d=new Uint8Array(new ArrayBuffer(l.byteLength));return d.set(l),d}function me(r,t,e){return Vt(r.HEAPU8.subarray(t,t+e))}function Pe(r,t,e,l){let d=r.stackSave(),m=r.stackAlloc(3*8);e.unshift("number"),l.unshift(m),r.ccall(t,null,e,l);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 Be(r){r.ccall("duckdb_web_clear_response",null,[],[])}var br=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),l=new Uint8Array(new ArrayBuffer(t.byteLength));l.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=l}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 Kg=new TextEncoder;var jr=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,l,d]=Pe(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(e!==0)throw new Error(me(this.mod,l,d));Be(this.mod)}reset(){let[t,e,l]=Pe(this.mod,"duckdb_web_reset",[],[]);if(t!==0)throw new Error(me(this.mod,e,l));Be(this.mod)}getVersion(){let[t,e,l]=Pe(this.mod,"duckdb_web_get_version",[],[]);if(t!==0)throw new Error(me(this.mod,e,l));let d=me(this.mod,e,l);return Be(this.mod),d}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,l,d]=Pe(this.mod,"duckdb_web_tokenize",["string"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));let m=me(this.mod,l,d);return Be(this.mod),JSON.parse(m)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new mr(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[l,d,m]=Pe(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));let g=Qt(this.mod,d,m);return Be(this.mod),g}startPendingQuery(t,e){let[l,d,m]=Pe(this.mod,"duckdb_web_pending_query_start",["number","string"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));if(d==0)return null;let g=Qt(this.mod,d,m);return Be(this.mod),g}pollPendingQuery(t){let[e,l,d]=Pe(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));if(l==0)return null;let m=Qt(this.mod,l,d);return Be(this.mod),m}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[e,l,d]=Pe(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));let m=Qt(this.mod,l,d);return Be(this.mod),m}getTableNames(t,e){let[l,d,m]=Pe(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));let g=me(this.mod,d,m);return Be(this.mod),JSON.parse(g)}createScalarFunction(t,e,l,d){let m={functionId:this._nextUDFId,name:e,returnType:fi(l)},g={functionId:m.functionId,connectionId:t,name:e,returnType:l,func:d};this._nextUDFId+=1;let[E,A,L]=Pe(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(m)]);if(E!==0)throw new Error(me(this.mod,A,L));if(Be(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[l,d,m]=Pe(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));return Be(this.mod),d}closePrepared(t,e){let[l,d,m]=Pe(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));Be(this.mod)}runPrepared(t,e,l){let[d,m,g]=Pe(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(l)]);if(d!==0)throw new Error(me(this.mod,m,g));let E=Qt(this.mod,m,g);return Be(this.mod),E}sendPrepared(t,e,l){let[d,m,g]=Pe(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(l)]);if(d!==0)throw new Error(me(this.mod,m,g));let E=Qt(this.mod,m,g);return Be(this.mod),E}insertArrowFromIPCStream(t,e,l){if(e.length==0)return;let d=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(d,d+e.length).set(e);let g=l?JSON.stringify(l):"",[E,A,L]=Pe(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,d,e.length,g]);if(E!==0)throw new Error(me(this.mod,A,L))}insertCSVFromPath(t,e,l){if(l.columns!==void 0){l.columnsFlat=[];for(let L in l.columns)l.columnsFlat.push(hr(L,l.columns[L]))}let d={...l};d.columns=d.columnsFlat,delete d.columnsFlat;let m=JSON.stringify(d),[g,E,A]=Pe(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,m]);if(g!==0)throw new Error(me(this.mod,E,A))}insertJSONFromPath(t,e,l){if(l.columns!==void 0){l.columnsFlat=[];for(let L in l.columns)l.columnsFlat.push(hr(L,l.columns[L]))}let d={...l};d.columns=d.columnsFlat,delete d.columnsFlat;let m=JSON.stringify(d),[g,E,A]=Pe(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,m]);if(g!==0)throw new Error(me(this.mod,E,A))}globFiles(t){let[e,l,d]=Pe(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));let m=me(this.mod,l,d);Be(this.mod);let g=JSON.parse(m);return g??[]}registerFileURL(t,e,l,d=!1){e===void 0&&(e=t);let[m,g,E]=Pe(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[t,e,l,d]);if(m!==0)throw new Error(me(this.mod,g,E));Be(this.mod)}registerFileText(t,e){let l=Kg.encode(e);this.registerFileBuffer(t,l)}registerFileBuffer(t,e){let l=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(l,l+e.length).set(e);let[m,g,E]=Pe(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,l,e.length]);if(m!==0)throw new Error(me(this.mod,g,E));Be(this.mod)}registerFileHandle(t,e,l,d){let[m,g,E]=Pe(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[t,t,l,d]);if(m!==0)throw new Error(me(this.mod,g,E));if(Be(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,l,d]=Pe(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));Be(this.mod)}dropFiles(){let[t,e,l]=Pe(this.mod,"duckdb_web_fs_drop_files",[],[]);if(t!==0)throw new Error(me(this.mod,e,l));Be(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[l,d,m]=Pe(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));Be(this.mod)}copyFileToBuffer(t){let[e,l,d]=Pe(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));let m=this.mod.HEAPU8.subarray(l,l+d),g=new Uint8Array(m.length);return g.set(m),Be(this.mod),g}collectFileStatistics(t,e){let[l,d,m]=Pe(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m))}exportFileStatistics(t){let[e,l,d]=Pe(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));return new br(this.mod.HEAPU8.subarray(l,l+d))}};var H_=Ni(require("fs")),wr=class extends jr{constructor(e,l,d,m){super(e,l);this.mainModulePath=d,this.pthreadWorkerPath=m}locateFile(e,l){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=${l} path=${e}`)}instantiateWasm(e,l){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=H_.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(d,e).then(m=>{l(m.instance,m.module)}),[]}instantiateImpl(e){return x_({...e,instantiateWasm:this.instantiateWasm.bind(this)})}};var Cr=class extends wr{constructor(t,e,l,d=null){super(t,e,l,d)}instantiateImpl(t){return F_({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var ze=Ni(require("fs"));var Pp=Ni(Dp());var He={_files:new Map,_filesById:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(r,t){try{let e=He._fileInfoCache.get(t),[l,d,m]=Pe(r,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(e==null?void 0:e.cacheEpoch)||0]);if(l!==0)return We(r,me(r,d,m)),null;if(m===0)return Be(r),e;let g=me(r,d,m);Be(r);let E=JSON.parse(g);return E==null?null:(He._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 l,d;try{He._fileInfoCache.delete(t);let m=He.resolveFileInfo(r,t);switch(m==null?void 0:m.dataProtocol){case 1:{let g=(l=He._files)==null?void 0:l.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=He._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=He._fileInfoCache.get(t);switch(He._fileInfoCache.delete(t),e==null?void 0:e.dataProtocol){case 1:{let l=He._filesById.get(t);He._filesById.delete(t),l!=null&&ze.default.closeSync(l);break}case 2:case 3:case 4:case 5:break}}catch(e){We(r,e.toString())}return 0},truncateFile:(r,t,e)=>{try{let l=He.resolveFileInfo(r,t);switch(l==null?void 0:l.dataProtocol){case 1:{ze.default.truncateSync(l.dataUrl,e);break}case 2:case 3:case 4:case 5:We(r,"Unsupported data protocol")}}catch(l){We(r,l.toString())}return 0},readFile:(r,t,e,l,d)=>{try{let m=He.resolveFileInfo(r,t);switch(m==null?void 0:m.dataProtocol){case 1:{let g=He._filesById.get(t);return g==null?(We(r,`File ${t} is missing a file descriptor`),0):ze.default.readSync(g,r.HEAPU8,e,l,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,l,d)=>{try{let m=He.resolveFileInfo(r,t);switch(m==null?void 0:m.dataProtocol){case 1:{let g=He._filesById.get(t);if(g==null)return We(r,`File ${t} is missing a file descriptor`),0;let E=r.HEAPU8.subarray(e,e+l);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=He.resolveFileInfo(r,t);switch(e==null?void 0:e.dataProtocol){case 1:{let l=He._filesById.get(t);return l==null?(We(r,`File ${t} is missing a file descriptor`),0):ze.default.fstatSync(l).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 l=Vt(r.HEAPU8.subarray(t,t+e));return ze.default.existsSync(l)}catch(l){return We(r,l.toString()),!1}},createDirectory:(r,t,e)=>{try{let l=Vt(r.HEAPU8.subarray(t,t+e));return ze.default.mkdirSync(l)}catch(l){return We(r,l.toString()),0}},removeDirectory:(r,t,e)=>{try{let l=Vt(r.HEAPU8.subarray(t,t+e));return ze.default.rmdirSync(l)}catch(l){return We(r,l.toString()),0}},listDirectoryEntries:(r,t,e)=>(We(r,"Not Implemented"),!1),glob:(r,t,e)=>{try{let l=me(r,t,e),d=Pp.sync([l],{dot:!0});for(let m of d)r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[m])}catch(l){return We(r,l.toString()),0}},moveFile:(r,t,e,l,d)=>{var A,L;let m=me(r,t,e),g=me(r,l,d),E=(A=He._files)==null?void 0:A.get(m);E!==void 0&&(He._files.delete(E),He._files.set(g,E));for(let[D,U]of((L=He._fileInfoCache)==null?void 0:L.entries())||[])if(U.dataUrl==m){He._fileInfoCache.delete(D);break}return!0},checkFile:(r,t,e)=>{try{let l=Vt(r.HEAPU8.subarray(t,t+e));return ze.default.existsSync(l)}catch(l){return We(r,l.toString()),!1}},removeFile:(r,t,e)=>{try{let l=Vt(r.HEAPU8.subarray(t,t+e));return ze.default.rmSync(l)}catch(l){return We(r,l.toString()),0}},callScalarUDF:(r,t,e,l,d,m,g)=>{U_(He,r,t,e,l,d,m,g)}};var Bu=class extends yr{postMessage(t,e){globalThis.postMessage(t,e)}async instantiate(t,e,l){return await new Cr(this,He,t,e).instantiate(l)}};function Ip(){let r=new Bu;globalThis.onmessage=async t=>{await r.onMessage(t.data)}}Ip();0&&(module.exports={registerWorker});
|
|
1
|
+
"use strict";var Ng=Object.create;var pr=Object.defineProperty;var Ug=Object.getOwnPropertyDescriptor;var Hg=Object.getOwnPropertyNames;var qg=Object.getPrototypeOf,Wg=Object.prototype.hasOwnProperty;var K=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),$g=(r,t)=>{for(var e in t)pr(r,e,{get:t[e],enumerable:!0})},F_=(r,t,e,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of Hg(t))!Wg.call(r,d)&&d!==e&&pr(r,d,{get:()=>t[d],enumerable:!(l=Ug(t,d))||l.enumerable});return r};var Ni=(r,t,e)=>(e=r!=null?Ng(qg(r)):{},F_(t||!r||!r.__esModule?pr(e,"default",{value:r,enumerable:!0}):e,r)),Kg=r=>F_(pr({},"__esModule",{value:!0}),r);var $_=K(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.splitWhen=di.flatten=void 0;function Xg(r){return r.reduce((t,e)=>[].concat(t,e),[])}di.flatten=Xg;function Jg(r,t){let e=[[]],l=0;for(let d of r)t(d)?(l++,e[l]=[]):e[l].push(d);return e}di.splitWhen=Jg});var K_=K(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.isEnoentCodeError=void 0;function Zg(r){return r.code==="ENOENT"}kr.isEnoentCodeError=Zg});var G_=K(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.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 eb(r,t){return new rs(r,t)}Sr.createDirentFromStats=eb});var Y_=K(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.removeLeadingDotSegment=ht.escape=ht.makeAbsolute=ht.unixify=void 0;var tb=require("path"),ib=2,rb=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function nb(r){return r.replace(/\\/g,"/")}ht.unixify=nb;function ab(r,t){return tb.resolve(r,t)}ht.makeAbsolute=ab;function sb(r){return r.replace(rb,"\\$2")}ht.escape=sb;function ub(r){if(r.charAt(0)==="."){let t=r.charAt(1);if(t==="/"||t==="\\")return r.slice(ib)}return r}ht.removeLeadingDotSegment=ub});var Q_=K((SC,V_)=>{V_.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 J_=K((EC,X_)=>{var ob=Q_(),z_={"{":"}","(":")","[":"]"},lb=function(r){if(r[0]==="!")return!0;for(var t=0,e=-2,l=-2,d=-2,m=-2,g=-2;t<r.length;){if(r[t]==="*"||r[t+1]==="?"&&/[\].+)]/.test(r[t])||l!==-1&&r[t]==="["&&r[t+1]!=="]"&&(l<t&&(l=r.indexOf("]",t)),l>t&&(g===-1||g>l||(g=r.indexOf("\\",t),g===-1||g>l)))||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 R=z_[E];if(R){var L=r.indexOf(R,t);L!==-1&&(t=L+1)}if(r[t]==="!")return!0}else t++}return!1},cb=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 l=z_[e];if(l){var d=r.indexOf(l,t);d!==-1&&(t=d+1)}if(r[t]==="!")return!0}else t++}return!1};X_.exports=function(t,e){if(typeof t!="string"||t==="")return!1;if(ob(t))return!0;var l=lb;return e&&e.strict===!1&&(l=cb),l(t)}});var ef=K((RC,Z_)=>{"use strict";var _b=J_(),fb=require("path").posix.dirname,db=require("os").platform()==="win32",ns="/",pb=/\\/g,hb=/[\{\[].*[\}\]]$/,yb=/(^|[^\\])([\{\[]|\([^\)]+$)/,mb=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Z_.exports=function(t,e){var l=Object.assign({flipBackslashes:!0},e);l.flipBackslashes&&db&&t.indexOf(ns)<0&&(t=t.replace(pb,ns)),hb.test(t)&&(t+=ns),t+="a";do t=fb(t);while(_b(t)||yb.test(t));return t.replace(mb,"$1")}});var Er=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,l)=>l===!1||!_t.isInteger(r)||!_t.isInteger(t)?!1:(Number(t)-Number(r))/Number(e)>=l;_t.escapeNode=(r,t=0,e)=>{let l=r.nodes[t];!l||(e&&l.type===e||l.type==="open"||l.type==="close")&&l.escaped!==!0&&(l.value="\\"+l.value,l.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=l=>{for(let d=0;d<l.length;d++){let m=l[d];Array.isArray(m)?e(m,t):m!==void 0&&t.push(m)}return t};return e(r),t}});var Rr=K((TC,rf)=>{"use strict";var tf=Er();rf.exports=(r,t={})=>{let e=(l,d={})=>{let m=t.escapeInvalid&&tf.isInvalidBrace(d),g=l.invalid===!0&&t.escapeInvalid===!0,E="";if(l.value)return(m||g)&&tf.isOpenOrClose(l)?"\\"+l.value:l.value;if(l.value)return l.value;if(l.nodes)for(let R of l.nodes)E+=e(R);return E};return e(r)}});var af=K((DC,nf)=>{"use strict";nf.exports=function(r){return typeof r=="number"?r-r===0:typeof r=="string"&&r.trim()!==""?Number.isFinite?Number.isFinite(+r):isFinite(+r):!1}});var pf=K((PC,df)=>{"use strict";var sf=af(),zt=(r,t,e)=>{if(sf(r)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||r===t)return String(r);if(sf(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let l={relaxZeros:!0,...e};typeof l.strictZeros=="boolean"&&(l.relaxZeros=l.strictZeros===!1);let d=String(l.relaxZeros),m=String(l.shorthand),g=String(l.capture),E=String(l.wrap),R=r+":"+t+"="+d+m+g+E;if(zt.cache.hasOwnProperty(R))return zt.cache[R].result;let L=Math.min(r,t),D=Math.max(r,t);if(Math.abs(L-D)===1){let Y=r+"|"+t;return l.capture?`(${Y})`:l.wrap===!1?Y:`(?:${Y})`}let U=ff(r)||ff(t),P={min:r,max:t,a:L,b:D},_e=[],$=[];if(U&&(P.isPadded=U,P.maxLen=String(P.max).length),L<0){let Y=D<0?Math.abs(D):1;$=uf(Y,Math.abs(L),P,l),L=P.a=0}return D>=0&&(_e=uf(L,D,P,l)),P.negatives=$,P.positives=_e,P.result=vb($,_e,l),l.capture===!0?P.result=`(${P.result})`:l.wrap!==!1&&_e.length+$.length>1&&(P.result=`(?:${P.result})`),zt.cache[R]=P,P.result};function vb(r,t,e){let l=as(r,t,"-",!1,e)||[],d=as(t,r,"",!1,e)||[],m=as(r,t,"-?",!0,e)||[];return l.concat(m).concat(d).join("|")}function gb(r,t){let e=1,l=1,d=lf(r,e),m=new Set([t]);for(;r<=d&&d<=t;)m.add(d),e+=1,d=lf(r,e);for(d=cf(t+1,l)-1;r<d&&d<=t;)m.add(d),l+=1,d=cf(t+1,l)-1;return m=[...m],m.sort(wb),m}function bb(r,t,e){if(r===t)return{pattern:r,count:[],digits:0};let l=jb(r,t),d=l.length,m="",g=0;for(let E=0;E<d;E++){let[R,L]=l[E];R===L?m+=R:R!=="0"||L!=="9"?m+=Cb(R,L,e):g++}return g&&(m+=e.shorthand===!0?"\\d":"[0-9]"),{pattern:m,count:[g],digits:d}}function uf(r,t,e,l){let d=gb(r,t),m=[],g=r,E;for(let R=0;R<d.length;R++){let L=d[R],D=bb(String(g),String(L),l),U="";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+_f(E.count),g=L+1;continue}e.isPadded&&(U=kb(L,e,l)),D.string=U+D.pattern+_f(D.count),m.push(D),g=L+1,E=D}return m}function as(r,t,e,l,d){let m=[];for(let g of r){let{string:E}=g;!l&&!of(t,"string",E)&&m.push(e+E),l&&of(t,"string",E)&&m.push(e+E)}return m}function jb(r,t){let e=[];for(let l=0;l<r.length;l++)e.push([r[l],t[l]]);return e}function wb(r,t){return r>t?1:t>r?-1:0}function of(r,t,e){return r.some(l=>l[t]===e)}function lf(r,t){return Number(String(r).slice(0,-t)+"9".repeat(t))}function cf(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 Cb(r,t,e){return`[${r}${t-r===1?"":"-"}${t}]`}function ff(r){return/^-?(0+)\d/.test(r)}function kb(r,t,e){if(!t.isPadded)return r;let l=Math.abs(t.maxLen-String(r).length),d=e.relaxZeros!==!1;switch(l){case 0:return"";case 1:return d?"0?":"0";case 2:return d?"0{0,2}":"00";default:return d?`0{0,${l}}`:`0{${l}}`}}zt.cache={};zt.clearCache=()=>zt.cache={};df.exports=zt});var os=K((IC,wf)=>{"use strict";var Sb=require("util"),mf=pf(),hf=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),Eb=r=>t=>r===!0?Number(t):String(t),ss=r=>typeof r=="number"||typeof r=="string"&&r!=="",Ui=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},Rb=(r,t,e)=>typeof r=="string"||typeof t=="string"?!0:e.stringify===!0,Ab=(r,t,e)=>{if(t>0){let l=r[0]==="-"?"-":"";l&&(r=r.slice(1)),r=l+r.padStart(l?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},Tb=(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?"":"?:",l="",d="",m;return r.positives.length&&(l=r.positives.join("|")),r.negatives.length&&(d=`-(${e}${r.negatives.join("|")})`),l&&d?m=`${l}|${d}`:m=l||d,t.wrap?`(${e}${m})`:m},vf=(r,t,e,l)=>{if(e)return mf(r,t,{wrap:!1,...l});let d=String.fromCharCode(r);if(r===t)return d;let m=String.fromCharCode(t);return`[${d}-${m}]`},gf=(r,t,e)=>{if(Array.isArray(r)){let l=e.wrap===!0,d=e.capture?"":"?:";return l?`(${d}${r.join("|")})`:r.join("|")}return mf(r,t,e)},bf=(...r)=>new RangeError("Invalid range arguments: "+Sb.inspect(...r)),jf=(r,t,e)=>{if(e.strictRanges===!0)throw bf([r,t]);return[]},Db=(r,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${r}" to be a number`);return[]},Pb=(r,t,e=1,l={})=>{let d=Number(r),m=Number(t);if(!Number.isInteger(d)||!Number.isInteger(m)){if(l.strictRanges===!0)throw bf([r,t]);return[]}d===0&&(d=0),m===0&&(m=0);let g=d>m,E=String(r),R=String(t),L=String(e);e=Math.max(Math.abs(e),1);let D=us(E)||us(R)||us(L),U=D?Math.max(E.length,R.length,L.length):0,P=D===!1&&Rb(r,t,l)===!1,_e=l.transform||Eb(P);if(l.toRegex&&e===1)return vf(yf(r,U),yf(t,U),!0,l);let $={negatives:[],positives:[]},Y=Ee=>$[Ee<0?"negatives":"positives"].push(Math.abs(Ee)),Z=[],ne=0;for(;g?d>=m:d<=m;)l.toRegex===!0&&e>1?Y(d):Z.push(Ab(_e(d,ne),U,P)),d=g?d-e:d+e,ne++;return l.toRegex===!0?e>1?Tb($,l):gf(Z,null,{wrap:!1,...l}):Z},Ib=(r,t,e=1,l={})=>{if(!Ui(r)&&r.length>1||!Ui(t)&&t.length>1)return jf(r,t,l);let d=l.transform||(P=>String.fromCharCode(P)),m=`${r}`.charCodeAt(0),g=`${t}`.charCodeAt(0),E=m>g,R=Math.min(m,g),L=Math.max(m,g);if(l.toRegex&&e===1)return vf(R,L,!1,l);let D=[],U=0;for(;E?m>=g:m<=g;)D.push(d(m,U)),m=E?m-e:m+e,U++;return l.toRegex===!0?gf(D,null,{wrap:!1,options:l}):D},Ar=(r,t,e,l={})=>{if(t==null&&ss(r))return[r];if(!ss(r)||!ss(t))return jf(r,t,l);if(typeof e=="function")return Ar(r,t,1,{transform:e});if(hf(e))return Ar(r,t,0,e);let d={...l};return d.capture===!0&&(d.wrap=!0),e=e||d.step||1,Ui(e)?Ui(r)&&Ui(t)?Pb(r,t,e,d):Ib(r,t,Math.max(Math.abs(e),1),d):e!=null&&!hf(e)?Db(e,d):Ar(r,t,1,e)};wf.exports=Ar});var Sf=K((MC,kf)=>{"use strict";var Mb=os(),Cf=Er(),Fb=(r,t={})=>{let e=(l,d={})=>{let m=Cf.isInvalidBrace(d),g=l.invalid===!0&&t.escapeInvalid===!0,E=m===!0||g===!0,R=t.escapeInvalid===!0?"\\":"",L="";if(l.isOpen===!0||l.isClose===!0)return R+l.value;if(l.type==="open")return E?R+l.value:"(";if(l.type==="close")return E?R+l.value:")";if(l.type==="comma")return l.prev.type==="comma"?"":E?l.value:"|";if(l.value)return l.value;if(l.nodes&&l.ranges>0){let D=Cf.reduce(l.nodes),U=Mb(...D,{...t,wrap:!1,toRegex:!0});if(U.length!==0)return D.length>1&&U.length>1?`(${U})`:U}if(l.nodes)for(let D of l.nodes)L+=e(D,l);return L};return e(r)};kf.exports=Fb});var Af=K((FC,Rf)=>{"use strict";var Ob=os(),Ef=Rr(),pi=Er(),Xt=(r="",t="",e=!1)=>{let l=[];if(r=[].concat(r),t=[].concat(t),!t.length)return r;if(!r.length)return e?pi.flatten(t).map(d=>`{${d}}`):t;for(let d of r)if(Array.isArray(d))for(let m of d)l.push(Xt(m,t,e));else for(let m of t)e===!0&&typeof m=="string"&&(m=`{${m}}`),l.push(Array.isArray(m)?Xt(d,m,e):d+m);return pi.flatten(l)},xb=(r,t={})=>{let e=t.rangeLimit===void 0?1e3:t.rangeLimit,l=(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(Xt(E.pop(),Ef(d,t)));return}if(d.type==="brace"&&d.invalid!==!0&&d.nodes.length===2){E.push(Xt(E.pop(),["{}"]));return}if(d.nodes&&d.ranges>0){let U=pi.reduce(d.nodes);if(pi.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=Ob(...U,t);P.length===0&&(P=Ef(d,t)),E.push(Xt(E.pop(),P)),d.nodes=[];return}let R=pi.encloseBrace(d),L=d.queue,D=d;for(;D.type!=="brace"&&D.type!=="root"&&D.parent;)D=D.parent,L=D.queue;for(let U=0;U<d.nodes.length;U++){let P=d.nodes[U];if(P.type==="comma"&&d.type==="brace"){U===1&&L.push(""),L.push("");continue}if(P.type==="close"){E.push(Xt(E.pop(),L,R));continue}if(P.value&&P.type!=="open"){L.push(Xt(L.pop(),P.value));continue}P.nodes&&l(P,d)}return L};return pi.flatten(l(r))};Rf.exports=xb});var Df=K((OC,Tf)=>{"use strict";Tf.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 Of=K((xC,Ff)=>{"use strict";var Lb=Rr(),{MAX_LENGTH:Pf,CHAR_BACKSLASH:ls,CHAR_BACKTICK:Bb,CHAR_COMMA:Nb,CHAR_DOT:Ub,CHAR_LEFT_PARENTHESES:Hb,CHAR_RIGHT_PARENTHESES:qb,CHAR_LEFT_CURLY_BRACE:Wb,CHAR_RIGHT_CURLY_BRACE:$b,CHAR_LEFT_SQUARE_BRACKET:If,CHAR_RIGHT_SQUARE_BRACKET:Mf,CHAR_DOUBLE_QUOTE:Kb,CHAR_SINGLE_QUOTE:Gb,CHAR_NO_BREAK_SPACE:Yb,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Vb}=Df(),Qb=(r,t={})=>{if(typeof r!="string")throw new TypeError("Expected a string");let e=t||{},l=typeof e.maxLength=="number"?Math.min(Pf,e.maxLength):Pf;if(r.length>l)throw new SyntaxError(`Input length (${r.length}), exceeds max characters (${l})`);let d={type:"root",input:r,nodes:[]},m=[d],g=d,E=d,R=0,L=r.length,D=0,U=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<L;)if(g=m[m.length-1],P=$(),!(P===Vb||P===Yb)){if(P===ls){Y({type:"text",value:(t.keepEscaping?P:"")+$()});continue}if(P===Mf){Y({type:"text",value:"\\"+P});continue}if(P===If){R++;let Z=!0,ne;for(;D<L&&(ne=$());){if(P+=ne,ne===If){R++;continue}if(ne===ls){P+=$();continue}if(ne===Mf&&(R--,R===0))break}Y({type:"text",value:P});continue}if(P===Hb){g=Y({type:"paren",nodes:[]}),m.push(g),Y({type:"text",value:P});continue}if(P===qb){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===Kb||P===Gb||P===Bb){let Z=P,ne;for(t.keepQuotes!==!0&&(P="");D<L&&(ne=$());){if(ne===ls){P+=ne+$();continue}if(ne===Z){t.keepQuotes===!0&&(P+=ne);break}P+=ne}Y({type:"text",value:P});continue}if(P===Wb){U++;let ne={type:"brace",open:!0,close:!1,dollar:E.value&&E.value.slice(-1)==="$"||g.dollar===!0,depth:U,commas:0,ranges:0,nodes:[]};g=Y(ne),m.push(g),Y({type:"open",value:P});continue}if(P===$b){if(g.type!=="brace"){Y({type:"text",value:P});continue}let Z="close";g=m.pop(),g.close=!0,Y({type:Z,value:P}),U--,g=m[m.length-1];continue}if(P===Nb&&U>0){if(g.ranges>0){g.ranges=0;let Z=g.nodes.shift();g.nodes=[Z,{type:"text",value:Lb(g)}]}Y({type:"comma",value:P}),g.commas++;continue}if(P===Ub&&U>0&&g.commas===0){let Z=g.nodes;if(U===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 ne=Z[Z.length-1];ne.value+=E.value+P,E=ne,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(Ee=>{Ee.nodes||(Ee.type==="open"&&(Ee.isOpen=!0),Ee.type==="close"&&(Ee.isClose=!0),Ee.nodes||(Ee.type="text"),Ee.invalid=!0)});let Z=m[m.length-1],ne=Z.nodes.indexOf(g);Z.nodes.splice(ne,1,...g.nodes)}while(m.length>0);return Y({type:"eos"}),d};Ff.exports=Qb});var Bf=K((LC,Lf)=>{"use strict";var xf=Rr(),zb=Sf(),Xb=Af(),Jb=Of(),ot=(r,t={})=>{let e=[];if(Array.isArray(r))for(let l of r){let d=ot.create(l,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={})=>Jb(r,t);ot.stringify=(r,t={})=>xf(typeof r=="string"?ot.parse(r,t):r,t);ot.compile=(r,t={})=>(typeof r=="string"&&(r=ot.parse(r,t)),zb(r,t));ot.expand=(r,t={})=>{typeof r=="string"&&(r=ot.parse(r,t));let e=Xb(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);Lf.exports=ot});var Hi=K((BC,Wf)=>{"use strict";var Zb=require("path"),yt="\\\\/",Nf=`[^${yt}]`,Et="\\.",ej="\\+",tj="\\?",Tr="\\/",ij="(?=.)",Uf="[^/]",cs=`(?:${Tr}|$)`,Hf=`(?:^|${Tr})`,_s=`${Et}{1,2}${cs}`,rj=`(?!${Et})`,nj=`(?!${Hf}${_s})`,aj=`(?!${Et}{0,1}${cs})`,sj=`(?!${_s})`,uj=`[^.${Tr}]`,oj=`${Uf}*?`,qf={DOT_LITERAL:Et,PLUS_LITERAL:ej,QMARK_LITERAL:tj,SLASH_LITERAL:Tr,ONE_CHAR:ij,QMARK:Uf,END_ANCHOR:cs,DOTS_SLASH:_s,NO_DOT:rj,NO_DOTS:nj,NO_DOT_SLASH:aj,NO_DOTS_SLASH:sj,QMARK_NO_DOT:uj,STAR:oj,START_ANCHOR:Hf},lj={...qf,SLASH_LITERAL:`[${yt}]`,QMARK:Nf,STAR:`${Nf}*?`,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}]|$)`},cj={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"};Wf.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:cj,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:Zb.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?lj:qf}}});var qi=K(ut=>{"use strict";var _j=require("path"),fj=process.platform==="win32",{REGEX_BACKSLASH:dj,REGEX_REMOVE_BACKSLASH:pj,REGEX_SPECIAL_CHARS:hj,REGEX_SPECIAL_CHARS_GLOBAL:yj}=Hi();ut.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r);ut.hasRegexChars=r=>hj.test(r);ut.isRegexChar=r=>r.length===1&&ut.hasRegexChars(r);ut.escapeRegex=r=>r.replace(yj,"\\$1");ut.toPosixSlashes=r=>r.replace(dj,"/");ut.removeBackslashes=r=>r.replace(pj,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:fj===!0||_j.sep==="\\";ut.escapeLast=(r,t,e)=>{let l=r.lastIndexOf(t,e);return l===-1?r:r[l-1]==="\\"?ut.escapeLast(r,t,l-1):`${r.slice(0,l)}\\${r.slice(l)}`};ut.removePrefix=(r,t={})=>{let e=r;return e.startsWith("./")&&(e=e.slice(2),t.prefix="./"),e};ut.wrapOutput=(r,t={},e={})=>{let l=e.contains?"":"^",d=e.contains?"":"$",m=`${l}(?:${r})${d}`;return t.negated===!0&&(m=`(?:^(?!${m}).*$)`),m}});var Xf=K((UC,zf)=>{"use strict";var $f=qi(),{CHAR_ASTERISK:fs,CHAR_AT:mj,CHAR_BACKWARD_SLASH:Wi,CHAR_COMMA:vj,CHAR_DOT:ds,CHAR_EXCLAMATION_MARK:ps,CHAR_FORWARD_SLASH:Qf,CHAR_LEFT_CURLY_BRACE:hs,CHAR_LEFT_PARENTHESES:ys,CHAR_LEFT_SQUARE_BRACKET:gj,CHAR_PLUS:bj,CHAR_QUESTION_MARK:Kf,CHAR_RIGHT_CURLY_BRACE:jj,CHAR_RIGHT_PARENTHESES:Gf,CHAR_RIGHT_SQUARE_BRACKET:wj}=Hi(),Yf=r=>r===Qf||r===Wi,Vf=r=>{r.isPrefix!==!0&&(r.depth=r.isGlobstar?1/0:1)},Cj=(r,t)=>{let e=t||{},l=r.length-1,d=e.parts===!0||e.scanToEnd===!0,m=[],g=[],E=[],R=r,L=-1,D=0,U=0,P=!1,_e=!1,$=!1,Y=!1,Z=!1,ne=!1,Ee=!1,ge=!1,He=!1,ue=!1,ae=0,ee,re,G={value:"",depth:0,isGlob:!1},pe=()=>L>=l,M=()=>R.charCodeAt(L+1),ce=()=>(ee=re,R.charCodeAt(++L));for(;L<l;){re=ce();let Me;if(re===Wi){Ee=G.backslashes=!0,re=ce(),re===hs&&(ne=!0);continue}if(ne===!0||re===hs){for(ae++;pe()!==!0&&(re=ce());){if(re===Wi){Ee=G.backslashes=!0,ce();continue}if(re===hs){ae++;continue}if(ne!==!0&&re===ds&&(re=ce())===ds){if(P=G.isBrace=!0,$=G.isGlob=!0,ue=!0,d===!0)continue;break}if(ne!==!0&&re===vj){if(P=G.isBrace=!0,$=G.isGlob=!0,ue=!0,d===!0)continue;break}if(re===jj&&(ae--,ae===0)){ne=!1,P=G.isBrace=!0,ue=!0;break}}if(d===!0)continue;break}if(re===Qf){if(m.push(L),g.push(G),G={value:"",depth:0,isGlob:!1},ue===!0)continue;if(ee===ds&&L===D+1){D+=2;continue}U=L+1;continue}if(e.noext!==!0&&(re===bj||re===mj||re===fs||re===Kf||re===ps)===!0&&M()===ys){if($=G.isGlob=!0,Y=G.isExtglob=!0,ue=!0,re===ps&&L===D&&(He=!0),d===!0){for(;pe()!==!0&&(re=ce());){if(re===Wi){Ee=G.backslashes=!0,re=ce();continue}if(re===Gf){$=G.isGlob=!0,ue=!0;break}}continue}break}if(re===fs){if(ee===fs&&(Z=G.isGlobstar=!0),$=G.isGlob=!0,ue=!0,d===!0)continue;break}if(re===Kf){if($=G.isGlob=!0,ue=!0,d===!0)continue;break}if(re===gj){for(;pe()!==!0&&(Me=ce());){if(Me===Wi){Ee=G.backslashes=!0,ce();continue}if(Me===wj){_e=G.isBracket=!0,$=G.isGlob=!0,ue=!0;break}}if(d===!0)continue;break}if(e.nonegate!==!0&&re===ps&&L===D){ge=G.negated=!0,D++;continue}if(e.noparen!==!0&&re===ys){if($=G.isGlob=!0,d===!0){for(;pe()!==!0&&(re=ce());){if(re===ys){Ee=G.backslashes=!0,re=ce();continue}if(re===Gf){ue=!0;break}}continue}break}if($===!0){if(ue=!0,d===!0)continue;break}}e.noext===!0&&(Y=!1,$=!1);let se=R,Te="",A="";D>0&&(Te=R.slice(0,D),R=R.slice(D),U-=D),se&&$===!0&&U>0?(se=R.slice(0,U),A=R.slice(U)):$===!0?(se="",A=R):se=R,se&&se!==""&&se!=="/"&&se!==R&&Yf(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),e.unescape===!0&&(A&&(A=$f.removeBackslashes(A)),se&&Ee===!0&&(se=$f.removeBackslashes(se)));let I={prefix:Te,input:r,start:D,base:se,glob:A,isBrace:P,isBracket:_e,isGlob:$,isExtglob:Y,isGlobstar:Z,negated:ge,negatedExtglob:He};if(e.tokens===!0&&(I.maxDepth=0,Yf(re)||g.push(G),I.tokens=g),e.parts===!0||e.tokens===!0){let Me;for(let be=0;be<m.length;be++){let Xe=Me?Me+1:D,Fe=m[be],Ae=r.slice(Xe,Fe);e.tokens&&(be===0&&D!==0?(g[be].isPrefix=!0,g[be].value=Te):g[be].value=Ae,Vf(g[be]),I.maxDepth+=g[be].depth),(be!==0||Ae!=="")&&E.push(Ae),Me=Fe}if(Me&&Me+1<r.length){let be=r.slice(Me+1);E.push(be),e.tokens&&(g[g.length-1].value=be,Vf(g[g.length-1]),I.maxDepth+=g[g.length-1].depth)}I.slashes=m,I.parts=E}return I};zf.exports=Cj});var td=K((HC,ed)=>{"use strict";var Dr=Hi(),lt=qi(),{MAX_LENGTH:Pr,POSIX_REGEX_SOURCE:kj,REGEX_NON_SPECIAL_CHARS:Sj,REGEX_SPECIAL_CHARS_BACKREF:Ej,REPLACEMENTS:Jf}=Dr,Rj=(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},hi=(r,t)=>`Missing ${r}: "${t}" - use "\\\\${t}" to match literal characters`,Zf=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");r=Jf[r]||r;let e={...t},l=typeof e.maxLength=="number"?Math.min(Pr,e.maxLength):Pr,d=r.length;if(d>l)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${l}`);let m={type:"bos",value:"",output:e.prepend||""},g=[m],E=e.capture?"":"?:",R=lt.isWindows(t),L=Dr.globChars(R),D=Dr.extglobChars(L),{DOT_LITERAL:U,PLUS_LITERAL:P,SLASH_LITERAL:_e,ONE_CHAR:$,DOTS_SLASH:Y,NO_DOT:Z,NO_DOT_SLASH:ne,NO_DOTS_SLASH:Ee,QMARK:ge,QMARK_NO_DOT:He,STAR:ue,START_ANCHOR:ae}=L,ee=V=>`(${E}(?:(?!${ae}${V.dot?Y:U}).)*?)`,re=e.dot?"":Z,G=e.dot?ge:He,pe=e.bash===!0?ee(e):ue;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=[],se=[],Te=[],A=m,I,Me=()=>M.index===d-1,be=M.peek=(V=1)=>r[M.index+V],Xe=M.advance=()=>r[++M.index]||"",Fe=()=>r.slice(M.index+1),Ae=(V="",De=0)=>{M.consumed+=V,M.index+=De},Je=V=>{M.output+=V.output!=null?V.output:V.value,Ae(V.value)},Nt=()=>{let V=1;for(;be()==="!"&&(be(2)!=="("||be(3)==="?");)Xe(),M.start++,V++;return V%2===0?!1:(M.negated=!0,M.start++,!0)},F=V=>{M[V]++,Te.push(V)},he=V=>{M[V]--,Te.pop()},fe=V=>{if(A.type==="globstar"){let De=M.braces>0&&(V.type==="comma"||V.type==="brace"),H=V.extglob===!0||ce.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!De&&!H&&(M.output=M.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=pe,M.output+=A.output)}if(ce.length&&V.type!=="paren"&&(ce[ce.length-1].inner+=V.value),(V.value||V.output)&&Je(V),A&&A.type==="text"&&V.type==="text"){A.value+=V.value,A.output=(A.output||"")+V.value;return}V.prev=A,g.push(V),A=V},Tt=(V,De)=>{let H={...D[De],conditions:1,inner:""};H.prev=A,H.parens=M.parens,H.output=M.output;let oe=(e.capture?"(":"")+H.open;F("parens"),fe({type:V,value:De,output:M.output?"":$}),fe({type:"paren",extglob:!0,value:Xe(),output:oe}),ce.push(H)},Ut=V=>{let De=V.close+(e.capture?")":""),H;if(V.type==="negate"){let oe=pe;V.inner&&V.inner.length>1&&V.inner.includes("/")&&(oe=ee(e)),(oe!==pe||Me()||/^\)+$/.test(Fe()))&&(De=V.close=`)$))${oe}`),V.inner.includes("*")&&(H=Fe())&&/^\.[^\\/.]+$/.test(H)&&(De=V.close=`)${H})${oe})`),V.prev.type==="bos"&&(M.negatedExtglob=!0)}fe({type:"paren",extglob:!0,value:I,output:De}),he("parens")};if(e.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let V=!1,De=r.replace(Ej,(H,oe,Be,Ge,Ke,bt)=>Ge==="\\"?(V=!0,H):Ge==="?"?oe?oe+Ge+(Ke?ge.repeat(Ke.length):""):bt===0?G+(Ke?ge.repeat(Ke.length):""):ge.repeat(Be.length):Ge==="."?U.repeat(Be.length):Ge==="*"?oe?oe+Ge+(Ke?pe:""):pe:oe?H:`\\${H}`);return V===!0&&(e.unescape===!0?De=De.replace(/\\/g,""):De=De.replace(/\\+/g,H=>H.length%2===0?"\\\\":H?"\\":"")),De===r&&e.contains===!0?(M.output=r,M):(M.output=lt.wrapOutput(De,M,t),M)}for(;!Me();){if(I=Xe(),I==="\0")continue;if(I==="\\"){let H=be();if(H==="/"&&e.bash!==!0||H==="."||H===";")continue;if(!H){I+="\\",fe({type:"text",value:I});continue}let oe=/^\\+/.exec(Fe()),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!=="]"||A.value==="["||A.value==="[^")){if(e.posix!==!1&&I===":"){let H=A.value.slice(1);if(H.includes("[")&&(A.posix=!0,H.includes(":"))){let oe=A.value.lastIndexOf("["),Be=A.value.slice(0,oe),Ge=A.value.slice(oe+2),Ke=kj[Ge];if(Ke){A.value=Be+Ke,M.backtrack=!0,Xe(),!m.output&&g.indexOf(A)===1&&(m.output=$);continue}}}(I==="["&&be()!==":"||I==="-"&&be()==="]")&&(I=`\\${I}`),I==="]"&&(A.value==="["||A.value==="[^")&&(I=`\\${I}`),e.posix===!0&&I==="!"&&A.value==="["&&(I="^"),A.value+=I,Je({value:I});continue}if(M.quotes===1&&I!=='"'){I=lt.escapeRegex(I),A.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(hi("opening","("));let H=ce[ce.length-1];if(H&&M.parens===H.parens+1){Ut(ce.pop());continue}fe({type:"paren",value:I,output:M.parens?")":"\\)"}),he("parens");continue}if(I==="["){if(e.nobracket===!0||!Fe().includes("]")){if(e.nobracket!==!0&&e.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));I=`\\${I}`}else F("brackets");fe({type:"bracket",value:I});continue}if(I==="]"){if(e.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){fe({type:"text",value:I,output:`\\${I}`});continue}if(M.brackets===0){if(e.strictBrackets===!0)throw new SyntaxError(hi("opening","["));fe({type:"text",value:I,output:`\\${I}`});continue}he("brackets");let H=A.value.slice(1);if(A.posix!==!0&&H[0]==="^"&&!H.includes("/")&&(I=`/${I}`),A.value+=I,Je({value:I}),e.literalBrackets===!1||lt.hasRegexChars(H))continue;let oe=lt.escapeRegex(A.value);if(M.output=M.output.slice(0,-A.value.length),e.literalBrackets===!0){M.output+=oe,A.value=oe;continue}A.value=`(${E}${oe}|${A.value})`,M.output+=A.value;continue}if(I==="{"&&e.nobrace!==!0){F("braces");let H={type:"brace",value:I,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};se.push(H),fe(H);continue}if(I==="}"){let H=se[se.length-1];if(e.nobrace===!0||!H){fe({type:"text",value:I,output:I});continue}let oe=")";if(H.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=Rj(Ge,e),M.backtrack=!0}if(H.comma!==!0&&H.dots!==!0){let Be=M.output.slice(0,H.outputIndex),Ge=M.tokens.slice(H.tokensIndex);H.value=H.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"),se.pop();continue}if(I==="|"){ce.length>0&&ce[ce.length-1].conditions++,fe({type:"text",value:I});continue}if(I===","){let H=I,oe=se[se.length-1];oe&&Te[Te.length-1]==="braces"&&(oe.comma=!0,H="|"),fe({type:"comma",value:I,output:H});continue}if(I==="/"){if(A.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",g.pop(),A=m;continue}fe({type:"slash",value:I,output:_e});continue}if(I==="."){if(M.braces>0&&A.type==="dot"){A.value==="."&&(A.output=U);let H=se[se.length-1];A.type="dots",A.output+=I,A.value+=I,H.dots=!0;continue}if(M.braces+M.parens===0&&A.type!=="bos"&&A.type!=="slash"){fe({type:"text",value:I,output:U});continue}fe({type:"dot",value:I,output:U});continue}if(I==="?"){if(!(A&&A.value==="(")&&e.noextglob!==!0&&be()==="("&&be(2)!=="?"){Tt("qmark",I);continue}if(A&&A.type==="paren"){let oe=be(),Be=I;if(oe==="<"&&!lt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(oe)||oe==="<"&&!/<([!=]|\w+>)/.test(Fe()))&&(Be=`\\${I}`),fe({type:"text",value:I,output:Be});continue}if(e.dot!==!0&&(A.type==="slash"||A.type==="bos")){fe({type:"qmark",value:I,output:He});continue}fe({type:"qmark",value:I,output:ge});continue}if(I==="!"){if(e.noextglob!==!0&&be()==="("&&(be(2)!=="?"||!/[!=<:]/.test(be(3)))){Tt("negate",I);continue}if(e.nonegate!==!0&&M.index===0){Nt();continue}}if(I==="+"){if(e.noextglob!==!0&&be()==="("&&be(2)!=="?"){Tt("plus",I);continue}if(A&&A.value==="("||e.regex===!1){fe({type:"plus",value:I,output:P});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||M.parens>0){fe({type:"plus",value:I});continue}fe({type:"plus",value:P});continue}if(I==="@"){if(e.noextglob!==!0&&be()==="("&&be(2)!=="?"){fe({type:"at",extglob:!0,value:I,output:""});continue}fe({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let H=Sj.exec(Fe());H&&(I+=H[0],M.index+=H[0].length),fe({type:"text",value:I});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=I,A.output=pe,M.backtrack=!0,M.globstar=!0,Ae(I);continue}let V=Fe();if(e.noextglob!==!0&&/^\([^?]/.test(V)){Tt("star",I);continue}if(A.type==="star"){if(e.noglobstar===!0){Ae(I);continue}let H=A.prev,oe=H.prev,Be=H.type==="slash"||H.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&&(H.type==="comma"||H.type==="brace"),bt=ce.length&&(H.type==="pipe"||H.type==="paren");if(!Be&&H.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),Ae("/**",3)}if(H.type==="bos"&&Me()){A.type="globstar",A.value+=I,A.output=ee(e),M.output=A.output,M.globstar=!0,Ae(I);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&!Ge&&Me()){M.output=M.output.slice(0,-(H.output+A.output).length),H.output=`(?:${H.output}`,A.type="globstar",A.output=ee(e)+(e.strictSlashes?")":"|$)"),A.value+=I,M.globstar=!0,M.output+=H.output+A.output,Ae(I);continue}if(H.type==="slash"&&H.prev.type!=="bos"&&V[0]==="/"){let Dt=V[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(H.output+A.output).length),H.output=`(?:${H.output}`,A.type="globstar",A.output=`${ee(e)}${_e}|${_e}${Dt})`,A.value+=I,M.output+=H.output+A.output,M.globstar=!0,Ae(I+Xe()),fe({type:"slash",value:"/",output:""});continue}if(H.type==="bos"&&V[0]==="/"){A.type="globstar",A.value+=I,A.output=`(?:^|${_e}|${ee(e)}${_e})`,M.output=A.output,M.globstar=!0,Ae(I+Xe()),fe({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-A.output.length),A.type="globstar",A.output=ee(e),A.value+=I,M.output+=A.output,M.globstar=!0,Ae(I);continue}let De={type:"star",value:I,output:pe};if(e.bash===!0){De.output=".*?",(A.type==="bos"||A.type==="slash")&&(De.output=re+De.output),fe(De);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&e.regex===!0){De.output=I,fe(De);continue}(M.index===M.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(M.output+=ne,A.output+=ne):e.dot===!0?(M.output+=Ee,A.output+=Ee):(M.output+=re,A.output+=re),be()!=="*"&&(M.output+=$,A.output+=$)),fe(De)}for(;M.brackets>0;){if(e.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));M.output=lt.escapeLast(M.output,"["),he("brackets")}for(;M.parens>0;){if(e.strictBrackets===!0)throw new SyntaxError(hi("closing",")"));M.output=lt.escapeLast(M.output,"("),he("parens")}for(;M.braces>0;){if(e.strictBrackets===!0)throw new SyntaxError(hi("closing","}"));M.output=lt.escapeLast(M.output,"{"),he("braces")}if(e.strictSlashes!==!0&&(A.type==="star"||A.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};Zf.fastpaths=(r,t)=>{let e={...t},l=typeof e.maxLength=="number"?Math.min(Pr,e.maxLength):Pr,d=r.length;if(d>l)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${l}`);r=Jf[r]||r;let m=lt.isWindows(t),{DOT_LITERAL:g,SLASH_LITERAL:E,ONE_CHAR:R,DOTS_SLASH:L,NO_DOT:D,NO_DOTS:U,NO_DOTS_SLASH:P,STAR:_e,START_ANCHOR:$}=Dr.globChars(m),Y=e.dot?U:D,Z=e.dot?P:D,ne=e.capture?"":"?:",Ee={negated:!1,prefix:""},ge=e.bash===!0?".*?":_e;e.capture&&(ge=`(${ge})`);let He=re=>re.noglobstar===!0?ge:`(${ne}(?:(?!${$}${re.dot?L:g}).)*?)`,ue=re=>{switch(re){case"*":return`${Y}${R}${ge}`;case".*":return`${g}${R}${ge}`;case"*.*":return`${Y}${ge}${g}${R}${ge}`;case"*/*":return`${Y}${ge}${E}${R}${Z}${ge}`;case"**":return Y+He(e);case"**/*":return`(?:${Y}${He(e)}${E})?${Z}${R}${ge}`;case"**/*.*":return`(?:${Y}${He(e)}${E})?${Z}${ge}${g}${R}${ge}`;case"**/.*":return`(?:${Y}${He(e)}${E})?${g}${R}${ge}`;default:{let G=/^(.*?)\.(\w+)$/.exec(re);if(!G)return;let pe=ue(G[1]);return pe?pe+g+G[2]:void 0}}},ae=lt.removePrefix(r,Ee),ee=ue(ae);return ee&&e.strictSlashes!==!0&&(ee+=`${E}?`),ee};ed.exports=Zf});var rd=K((qC,id)=>{"use strict";var Aj=require("path"),Tj=Xf(),ms=td(),vs=qi(),Dj=Hi(),Pj=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 l=Pj(r)&&r.tokens&&r.input;if(r===""||typeof r!="string"&&!l)throw new TypeError("Expected pattern to be a non-empty string");let d=t||{},m=vs.isWindows(t),g=l?Ye.compileRe(r,t):Ye.makeRe(r,t,!1,!0),E=g.state;delete g.state;let R=()=>!1;if(d.ignore){let D={...t,ignore:null,onMatch:null,onResult:null};R=Ye(d.ignore,D,e)}let L=(D,U=!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,U?Y:!1):R(D)?(typeof d.onIgnore=="function"&&d.onIgnore(Y),Y.isMatch=!1,U?Y:!1):(typeof d.onMatch=="function"&&d.onMatch(Y),U?Y:!0)};return e&&(L.state=E),L};Ye.test=(r,t,e,{glob:l,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===l,R=E&&g?g(r):r;return E===!1&&(R=g?g(r):r,E=R===l),(E===!1||m.capture===!0)&&(m.matchBase===!0||m.basename===!0?E=Ye.matchBase(r,t,e,d):E=t.exec(R)),{isMatch:Boolean(E),match:E,output:R}};Ye.matchBase=(r,t,e,l=vs.isWindows(e))=>(t instanceof RegExp?t:Ye.makeRe(t,e)).test(Aj.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)=>Tj(r,t);Ye.compileRe=(r,t,e=!1,l=!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 R=Ye.toRegex(E,t);return l===!0&&(R.state=r),R};Ye.makeRe=(r,t={},e=!1,l=!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,l)};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=Dj;id.exports=Ye});var ad=K((WC,nd)=>{"use strict";nd.exports=rd()});var cd=K(($C,ld)=>{"use strict";var ud=require("util"),od=Bf(),mt=ad(),gs=qi(),sd=r=>r===""||r==="./",$e=(r,t,e)=>{t=[].concat(t),r=[].concat(r);let l=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 U=mt(String(t[D]),{...e,onResult:E},!0),P=U.state.negated||U.state.negatedExtglob;P&&g++;for(let _e of r){let $=U(_e,!0);!(P?!$.isMatch:$.isMatch)||(P?l.add($.output):(l.delete($.output),d.add($.output)))}}let L=(g===t.length?[...m]:[...d]).filter(D=>!l.has(D));if(e&&L.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 L};$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 l=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)||l.add(E);return[...l]};$e.contains=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ud.inspect(r)}"`);if(Array.isArray(t))return t.some(l=>$e.contains(r,l,e));if(typeof t=="string"){if(sd(r)||sd(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 l=$e(Object.keys(r),t,e),d={};for(let m of l)d[m]=r[m];return d};$e.some=(r,t,e)=>{let l=[].concat(r);for(let d of[].concat(t)){let m=mt(String(d),e);if(l.some(g=>m(g)))return!0}return!1};$e.every=(r,t,e)=>{let l=[].concat(r);for(let d of[].concat(t)){let m=mt(String(d),e);if(!l.every(g=>m(g)))return!1}return!0};$e.all=(r,t,e)=>{if(typeof r!="string")throw new TypeError(`Expected a string: "${ud.inspect(r)}"`);return[].concat(t).every(l=>mt(l,e)(r))};$e.capture=(r,t,e)=>{let l=gs.isWindows(e),m=mt.makeRe(String(r),{...e,capture:!0}).exec(l?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 l of[].concat(r||[]))for(let d of od(String(l),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]:od(r,t)};$e.braceExpand=(r,t)=>{if(typeof r!="string")throw new TypeError("Expected a string");return $e.braces(r,{...t,expand:!0})};ld.exports=$e});var vd=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 Ij=require("path"),Mj=ef(),bs=cd(),_d="**",Fj="\\",Oj=/[*?]|^!/,xj=/\[[^[]*]/,Lj=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Bj=/[!*+?@]\([^(]*\)/,Nj=/,|\.\./;function fd(r,t={}){return!dd(r,t)}le.isStaticPattern=fd;function dd(r,t={}){return r===""?!1:!!(t.caseSensitiveMatch===!1||r.includes(Fj)||Oj.test(r)||xj.test(r)||Lj.test(r)||t.extglob!==!1&&Bj.test(r)||t.braceExpansion!==!1&&Uj(r))}le.isDynamicPattern=dd;function Uj(r){let t=r.indexOf("{");if(t===-1)return!1;let e=r.indexOf("}",t+1);if(e===-1)return!1;let l=r.slice(t,e);return Nj.test(l)}function Hj(r){return Ir(r)?r.slice(1):r}le.convertToPositivePattern=Hj;function qj(r){return"!"+r}le.convertToNegativePattern=qj;function Ir(r){return r.startsWith("!")&&r[1]!=="("}le.isNegativePattern=Ir;function pd(r){return!Ir(r)}le.isPositivePattern=pd;function Wj(r){return r.filter(Ir)}le.getNegativePatterns=Wj;function $j(r){return r.filter(pd)}le.getPositivePatterns=$j;function Kj(r){return r.filter(t=>!js(t))}le.getPatternsInsideCurrentDirectory=Kj;function Gj(r){return r.filter(js)}le.getPatternsOutsideCurrentDirectory=Gj;function js(r){return r.startsWith("..")||r.startsWith("./..")}le.isPatternRelatedToParentDirectory=js;function Yj(r){return Mj(r,{flipBackslashes:!1})}le.getBaseDirectory=Yj;function Vj(r){return r.includes(_d)}le.hasGlobStar=Vj;function hd(r){return r.endsWith("/"+_d)}le.endsWithSlashGlobStar=hd;function Qj(r){let t=Ij.basename(r);return hd(r)||fd(t)}le.isAffectDepthOfReadingPattern=Qj;function zj(r){return r.reduce((t,e)=>t.concat(yd(e)),[])}le.expandPatternsWithBraceExpansion=zj;function yd(r){return bs.braces(r,{expand:!0,nodupes:!0})}le.expandBraceExpansion=yd;function Xj(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=Xj;function md(r,t){return bs.makeRe(r,t)}le.makeRe=md;function Jj(r,t){return r.map(e=>md(e,t))}le.convertPatternsToRe=Jj;function Zj(r,t){return t.some(e=>e.test(r))}le.matchAny=Zj});var wd=K((GC,jd)=>{"use strict";var e0=require("stream"),gd=e0.PassThrough,t0=Array.prototype.slice;jd.exports=i0;function i0(){let r=[],t=t0.call(arguments),e=!1,l=t[t.length-1];l&&!Array.isArray(l)&&l.pipe==null?t.pop():l={};let d=l.end!==!1,m=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let g=gd(l);function E(){for(let D=0,U=arguments.length;D<U;D++)r.push(bd(arguments[D],l));return R(),this}function R(){if(e)return;e=!0;let D=r.shift();if(!D){process.nextTick(L);return}Array.isArray(D)||(D=[D]);let U=D.length+1;function P(){--U>0||(e=!1,R())}function _e($){function Y(){$.removeListener("merge2UnpipeEnd",Y),$.removeListener("end",Y),m&&$.removeListener("error",Z),P()}function Z(ne){g.emit("error",ne)}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 L(){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 bd(r,t){if(Array.isArray(r))for(let e=0,l=r.length;e<l;e++)r[e]=bd(r[e],t);else{if(!r._readableState&&r.pipe&&(r=r.pipe(gd(t))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}});var kd=K(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.merge=void 0;var r0=wd();function n0(r){let t=r0(r);return r.forEach(e=>{e.once("error",l=>t.emit("error",l))}),t.once("close",()=>Cd(r)),t.once("end",()=>Cd(r)),t}Mr.merge=n0;function Cd(r){r.forEach(t=>t.emit("close"))}});var Sd=K(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isEmpty=yi.isString=void 0;function a0(r){return typeof r=="string"}yi.isString=a0;function s0(r){return r===""}yi.isEmpty=s0});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 u0=$_();Ze.array=u0;var o0=K_();Ze.errno=o0;var l0=G_();Ze.fs=l0;var c0=Y_();Ze.path=c0;var _0=vd();Ze.pattern=_0;var f0=kd();Ze.stream=f0;var d0=Sd();Ze.string=d0});var Ad=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 p0(r,t){let e=Ed(r),l=Rd(r,t.ignore),d=e.filter(R=>At.pattern.isStaticPattern(R,t)),m=e.filter(R=>At.pattern.isDynamicPattern(R,t)),g=ws(d,l,!1),E=ws(m,l,!0);return g.concat(E)}et.generate=p0;function ws(r,t,e){let l=[],d=At.pattern.getPatternsOutsideCurrentDirectory(r),m=At.pattern.getPatternsInsideCurrentDirectory(r),g=Cs(d),E=Cs(m);return l.push(...ks(g,t,e)),"."in E?l.push(Ss(".",m,t,e)):l.push(...ks(E,t,e)),l}et.convertPatternsToTasks=ws;function Ed(r){return At.pattern.getPositivePatterns(r)}et.getPositivePatterns=Ed;function Rd(r,t){return At.pattern.getNegativePatterns(r).concat(t).map(At.pattern.convertToPositivePattern)}et.getNegativePatternsAsPositive=Rd;function Cs(r){let t={};return r.reduce((e,l)=>{let d=At.pattern.getBaseDirectory(l);return d in e?e[d].push(l):e[d]=[l],e},t)}et.groupPatternsByBaseDirectory=Cs;function ks(r,t,e){return Object.keys(r).map(l=>Ss(l,r[l],t,e))}et.convertPatternGroupsToTasks=ks;function Ss(r,t,e,l){return{dynamic:l,positive:t,negative:e,base:r,patterns:[].concat(t,e.map(At.pattern.convertToNegativePattern))}}et.convertPatternGroupToTask=Ss});var Dd=K(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.removeDuplicateSlashes=mi.transform=void 0;var h0=/(?!^)\/{2,}/g;function y0(r){return r.map(t=>Td(t))}mi.transform=y0;function Td(r){return r.replace(h0,"/")}mi.removeDuplicateSlashes=Td});var Id=K(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.read=void 0;function m0(r,t,e){t.fs.lstat(r,(l,d)=>{if(l!==null){Pd(e,l);return}if(!d.isSymbolicLink()||!t.followSymbolicLink){Es(e,d);return}t.fs.stat(r,(m,g)=>{if(m!==null){if(t.throwErrorOnBrokenSymbolicLink){Pd(e,m);return}Es(e,d);return}t.markSymbolicLink&&(g.isSymbolicLink=()=>!0),Es(e,g)})})}Fr.read=m0;function Pd(r,t){r(t)}function Es(r,t){r(null,t)}});var Md=K(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.read=void 0;function v0(r,t){let e=t.fs.lstatSync(r);if(!e.isSymbolicLink()||!t.followSymbolicLink)return e;try{let l=t.fs.statSync(r);return t.markSymbolicLink&&(l.isSymbolicLink=()=>!0),l}catch(l){if(!t.throwErrorOnBrokenSymbolicLink)return e;throw l}}Or.read=v0});var Fd=K(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.createFileSystemAdapter=Mt.FILE_SYSTEM_ADAPTER=void 0;var xr=require("fs");Mt.FILE_SYSTEM_ADAPTER={lstat:xr.lstat,stat:xr.stat,lstatSync:xr.lstatSync,statSync:xr.statSync};function g0(r){return r===void 0?Mt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Mt.FILE_SYSTEM_ADAPTER),r)}Mt.createFileSystemAdapter=g0});var Od=K(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var b0=Fd(),Rs=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=b0.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 Jt=K(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.statSync=Ft.stat=Ft.Settings=void 0;var xd=Id(),j0=Md(),Ts=Od();Ft.Settings=Ts.default;function w0(r,t,e){if(typeof t=="function"){xd.read(r,Ds(),t);return}xd.read(r,Ds(t),e)}Ft.stat=w0;function C0(r,t){let e=Ds(t);return j0.read(r,e)}Ft.statSync=C0;function Ds(r={}){return r instanceof Ts.default?r:new Ts.default(r)}});var Nd=K((rk,Bd)=>{var Ld;Bd.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):r=>(Ld||(Ld=Promise.resolve())).then(r).catch(t=>setTimeout(()=>{throw t},0))});var Hd=K((nk,Ud)=>{Ud.exports=S0;var k0=Nd();function S0(r,t){let e,l,d,m=!0;Array.isArray(r)?(e=[],l=r.length):(d=Object.keys(r),e={},l=d.length);function g(R){function L(){t&&t(R,e),t=null}m?k0(L):L()}function E(R,L,D){e[R]=D,(--l===0||L)&&g(L)}l?d?d.forEach(function(R){r[R](function(L,D){E(R,L,D)})}):r.forEach(function(R,L){R(function(D,U){E(L,D,U)})}):g(null),m=!1}});var Ps=K(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Lr=process.versions.node.split(".");if(Lr[0]===void 0||Lr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var qd=Number.parseInt(Lr[0],10),E0=Number.parseInt(Lr[1],10),Wd=10,R0=10,A0=qd>Wd,T0=qd===Wd&&E0>=R0;Br.IS_SUPPORT_READDIR_WITH_FILE_TYPES=A0||T0});var $d=K(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.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 D0(r,t){return new Is(r,t)}Nr.createDirentFromStats=D0});var Ms=K(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.fs=void 0;var P0=$d();Ur.fs=P0});var Fs=K(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.joinPathSegments=void 0;function I0(r,t,e){return r.endsWith(e)?r+t:r+e+t}Hr.joinPathSegments=I0});var zd=K(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.readdir=Ot.readdirWithFileTypes=Ot.read=void 0;var M0=Jt(),Kd=Hd(),F0=Ps(),Gd=Ms(),Yd=Fs();function O0(r,t,e){if(!t.stats&&F0.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Vd(r,t,e);return}Qd(r,t,e)}Ot.read=O0;function Vd(r,t,e){t.fs.readdir(r,{withFileTypes:!0},(l,d)=>{if(l!==null){qr(e,l);return}let m=d.map(E=>({dirent:E,name:E.name,path:Yd.joinPathSegments(r,E.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Os(e,m);return}let g=m.map(E=>x0(E,t));Kd(g,(E,R)=>{if(E!==null){qr(e,E);return}Os(e,R)})})}Ot.readdirWithFileTypes=Vd;function x0(r,t){return e=>{if(!r.dirent.isSymbolicLink()){e(null,r);return}t.fs.stat(r.path,(l,d)=>{if(l!==null){if(t.throwErrorOnBrokenSymbolicLink){e(l);return}e(null,r);return}r.dirent=Gd.fs.createDirentFromStats(r.name,d),e(null,r)})}}function Qd(r,t,e){t.fs.readdir(r,(l,d)=>{if(l!==null){qr(e,l);return}let m=d.map(g=>{let E=Yd.joinPathSegments(r,g,t.pathSegmentSeparator);return R=>{M0.stat(E,t.fsStatSettings,(L,D)=>{if(L!==null){R(L);return}let U={name:g,path:E,dirent:Gd.fs.createDirentFromStats(g,D)};t.stats&&(U.stats=D),R(null,U)})}});Kd(m,(g,E)=>{if(g!==null){qr(e,g);return}Os(e,E)})})}Ot.readdir=Qd;function qr(r,t){r(t)}function Os(r,t){r(null,t)}});var tp=K(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.readdir=xt.readdirWithFileTypes=xt.read=void 0;var L0=Jt(),B0=Ps(),Xd=Ms(),Jd=Fs();function N0(r,t){return!t.stats&&B0.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Zd(r,t):ep(r,t)}xt.read=N0;function Zd(r,t){return t.fs.readdirSync(r,{withFileTypes:!0}).map(l=>{let d={dirent:l,name:l.name,path:Jd.joinPathSegments(r,l.name,t.pathSegmentSeparator)};if(d.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let m=t.fs.statSync(d.path);d.dirent=Xd.fs.createDirentFromStats(d.name,m)}catch(m){if(t.throwErrorOnBrokenSymbolicLink)throw m}return d})}xt.readdirWithFileTypes=Zd;function ep(r,t){return t.fs.readdirSync(r).map(l=>{let d=Jd.joinPathSegments(r,l,t.pathSegmentSeparator),m=L0.statSync(d,t.fsStatSettings),g={name:l,path:d,dirent:Xd.fs.createDirentFromStats(l,m)};return t.stats&&(g.stats=m),g})}xt.readdir=ep});var ip=K(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.createFileSystemAdapter=Lt.FILE_SYSTEM_ADAPTER=void 0;var vi=require("fs");Lt.FILE_SYSTEM_ADAPTER={lstat:vi.lstat,stat:vi.stat,lstatSync:vi.lstatSync,statSync:vi.statSync,readdir:vi.readdir,readdirSync:vi.readdirSync};function U0(r){return r===void 0?Lt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Lt.FILE_SYSTEM_ADAPTER),r)}Lt.createFileSystemAdapter=U0});var rp=K(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var H0=require("path"),q0=Jt(),W0=ip(),xs=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=W0.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,H0.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new q0.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};Ls.default=xs});var Wr=K(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.Settings=Bt.scandirSync=Bt.scandir=void 0;var np=zd(),$0=tp(),Bs=rp();Bt.Settings=Bs.default;function K0(r,t,e){if(typeof t=="function"){np.read(r,Ns(),t);return}np.read(r,Ns(t),e)}Bt.scandir=K0;function G0(r,t){let e=Ns(t);return $0.read(r,e)}Bt.scandirSync=G0;function Ns(r={}){return r instanceof Bs.default?r:new Bs.default(r)}});var sp=K((pk,ap)=>{"use strict";function Y0(r){var t=new r,e=t;function l(){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:l,release:d}}ap.exports=Y0});var op=K((hk,Us)=>{"use strict";var V0=sp();function up(r,t,e){if(typeof r=="function"&&(e=t,t=r,r=null),e<1)throw new Error("fastqueue concurrency must be greater than 1");var l=V0(Q0),d=null,m=null,g=0,E=null,R={push:Y,drain:ft,saturated:ft,pause:D,paused:!1,concurrency:e,running:L,resume:_e,idle:$,length:U,getQueue:P,unshift:Z,empty:ft,kill:Ee,killAndDrain:ge,error:He};return R;function L(){return g}function D(){R.paused=!0}function U(){for(var ue=d,ae=0;ue;)ue=ue.next,ae++;return ae}function P(){for(var ue=d,ae=[];ue;)ae.push(ue.value),ue=ue.next;return ae}function _e(){if(!!R.paused){R.paused=!1;for(var ue=0;ue<R.concurrency;ue++)g++,ne()}}function $(){return g===0&&R.length()===0}function Y(ue,ae){var ee=l.get();ee.context=r,ee.release=ne,ee.value=ue,ee.callback=ae||ft,ee.errorHandler=E,g===R.concurrency||R.paused?m?(m.next=ee,m=ee):(d=ee,m=ee,R.saturated()):(g++,t.call(r,ee.value,ee.worked))}function Z(ue,ae){var ee=l.get();ee.context=r,ee.release=ne,ee.value=ue,ee.callback=ae||ft,g===R.concurrency||R.paused?d?(ee.next=d,d=ee):(d=ee,m=ee,R.saturated()):(g++,t.call(r,ee.value,ee.worked))}function ne(ue){ue&&l.release(ue);var ae=d;ae?R.paused?g--:(m===d&&(m=null),d=ae.next,ae.next=null,t.call(r,ae.value,ae.worked),m===null&&R.empty()):--g===0&&R.drain()}function Ee(){d=null,m=null,R.drain=ft}function ge(){d=null,m=null,R.drain(),R.drain=ft}function He(ue){E=ue}}function ft(){}function Q0(){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,l){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,l),r.release(r)}}function z0(r,t,e){typeof r=="function"&&(e=t,t=r,r=null);function l(D,U){t.call(this,D).then(function(P){U(null,P)},U)}var d=up(r,l,e),m=d.push,g=d.unshift;return d.push=E,d.unshift=R,d.drained=L,d;function E(D){var U=new Promise(function(P,_e){m(D,function($,Y){if($){_e($);return}P(Y)})});return U.catch(ft),U}function R(D){var U=new Promise(function(P,_e){g(D,function($,Y){if($){_e($);return}P(Y)})});return U.catch(ft),U}function L(){var D=d.drain,U=new Promise(function(P){d.drain=function(){D(),P()}});return U}}Us.exports=up;Us.exports.promise=z0});var $r=K(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.joinPathSegments=vt.replacePathSegmentSeparator=vt.isAppliedFilter=vt.isFatalError=void 0;function X0(r,t){return r.errorFilter===null?!0:!r.errorFilter(t)}vt.isFatalError=X0;function J0(r,t){return r===null||r(t)}vt.isAppliedFilter=J0;function Z0(r,t){return r.split(/[/\\]/).join(t)}vt.replacePathSegmentSeparator=Z0;function ew(r,t,e){return r===""?t:r.endsWith(e)?r+t:r+e+t}vt.joinPathSegments=ew});var Ws=K(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var tw=$r(),Hs=class{constructor(t,e){this._root=t,this._settings=e,this._root=tw.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}};qs.default=Hs});var Gs=K(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var iw=require("events"),rw=Wr(),nw=op(),Kr=$r(),aw=Ws(),$s=class extends aw.default{constructor(t,e){super(t,e),this._settings=e,this._scandir=rw.scandir,this._emitter=new iw.EventEmitter,this._queue=nw(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 l={directory:t,base:e};this._queue.push(l,d=>{d!==null&&this._handleError(d)})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(l,d)=>{if(l!==null){e(l,void 0);return}for(let m of d)this._handleEntry(m,t.base);e(null,void 0)})}_handleError(t){this._isDestroyed||!Kr.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 l=t.path;e!==void 0&&(t.path=Kr.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Kr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Kr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(l,e===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Ks.default=$s});var lp=K(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});var sw=Gs(),Ys=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new sw.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(e=>{uw(t,e)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{ow(t,this._storage)}),this._reader.read()}};Vs.default=Ys;function uw(r,t){r(t)}function ow(r,t){r(null,t)}});var cp=K(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var lw=require("stream"),cw=Gs(),Qs=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new cw.default(this._root,this._settings),this._stream=new lw.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 _p=K(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var _w=Wr(),Gr=$r(),fw=Ws(),Xs=class extends fw.default{constructor(){super(...arguments),this._scandir=_w.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,e){try{let l=this._scandir(t,this._settings.fsScandirSettings);for(let d of l)this._handleEntry(d,e)}catch(l){this._handleError(l)}}_handleError(t){if(!!Gr.isFatalError(this._settings,t))throw t}_handleEntry(t,e){let l=t.path;e!==void 0&&(t.path=Gr.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Gr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Gr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(l,e===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Js.default=Xs});var fp=K(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});var dw=_p(),Zs=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new dw.default(this._root,this._settings)}read(){return this._reader.read()}};eu.default=Zs});var dp=K(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});var pw=require("path"),hw=Wr(),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,pw.sep),this.fsScandirSettings=new hw.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};iu.default=tu});var Vr=K(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.Settings=gt.walkStream=gt.walkSync=gt.walk=void 0;var pp=lp(),yw=cp(),mw=fp(),ru=dp();gt.Settings=ru.default;function vw(r,t,e){if(typeof t=="function"){new pp.default(r,Yr()).read(t);return}new pp.default(r,Yr(t)).read(e)}gt.walk=vw;function gw(r,t){let e=Yr(t);return new mw.default(r,e).read()}gt.walkSync=gw;function bw(r,t){let e=Yr(t);return new yw.default(r,e).read()}gt.walkStream=bw;function Yr(r={}){return r instanceof ru.default?r:new ru.default(r)}});var Qr=K(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var jw=require("path"),ww=Jt(),hp=Rt(),nu=class{constructor(t){this._settings=t,this._fsStatSettings=new ww.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return jw.resolve(this._settings.cwd,t)}_makeEntry(t,e){let l={name:e,path:e,dirent:hp.fs.createDirentFromStats(e,t)};return this._settings.stats&&(l.stats=t),l}_isFatalError(t){return!hp.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};au.default=nu});var ou=K(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});var Cw=require("stream"),kw=Jt(),Sw=Vr(),Ew=Qr(),su=class extends Ew.default{constructor(){super(...arguments),this._walkStream=Sw.walkStream,this._stat=kw.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){let l=t.map(this._getFullEntryPath,this),d=new Cw.PassThrough({objectMode:!0});d._write=(m,g,E)=>this._getEntry(l[m],t[m],e).then(R=>{R!==null&&e.entryFilter(R)&&d.push(R),m===l.length-1&&d.end(),E()}).catch(E);for(let m=0;m<l.length;m++)d.write(m);return d}_getEntry(t,e,l){return this._getStat(t).then(d=>this._makeEntry(d,e)).catch(d=>{if(l.errorFilter(d))return null;throw d})}_getStat(t){return new Promise((e,l)=>{this._stat(t,this._fsStatSettings,(d,m)=>d===null?e(m):l(d))})}};uu.default=su});var yp=K(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var Rw=Vr(),Aw=Qr(),Tw=ou(),lu=class extends Aw.default{constructor(){super(...arguments),this._walkAsync=Rw.walk,this._readerStream=new Tw.default(this._settings)}dynamic(t,e){return new Promise((l,d)=>{this._walkAsync(t,e,(m,g)=>{m===null?l(g):d(m)})})}async static(t,e){let l=[],d=this._readerStream.static(t,e);return new Promise((m,g)=>{d.once("error",g),d.on("data",E=>l.push(E)),d.once("end",()=>m(l))})}};cu.default=lu});var mp=K(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var gi=Rt(),_u=class{constructor(t,e,l){this._patterns=t,this._settings=e,this._micromatchOptions=l,this._storage=[],this._fillStorage()}_fillStorage(){let t=gi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let e of t){let l=this._getPatternSegments(e),d=this._splitSegmentsIntoSections(l);this._storage.push({complete:d.length<=1,pattern:e,segments:l,sections:d})}}_getPatternSegments(t){return gi.pattern.getPatternParts(t,this._micromatchOptions).map(l=>gi.pattern.isDynamicPattern(l,this._settings)?{dynamic:!0,pattern:l,patternRe:gi.pattern.makeRe(l,this._micromatchOptions)}:{dynamic:!1,pattern:l})}_splitSegmentsIntoSections(t){return gi.array.splitWhen(t,e=>e.dynamic&&gi.pattern.hasGlobStar(e.pattern))}};fu.default=_u});var vp=K(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});var Dw=mp(),du=class extends Dw.default{match(t){let e=t.split("/"),l=e.length,d=this._storage.filter(m=>!m.complete||m.segments.length>l);for(let m of d){let g=m.sections[0];if(!m.complete&&l>g.length||e.every((R,L)=>{let D=m.segments[L];return!!(D.dynamic&&D.patternRe.test(R)||!D.dynamic&&D.pattern===R)}))return!0}return!1}};pu.default=du});var gp=K(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});var zr=Rt(),Pw=vp(),hu=class{constructor(t,e){this._settings=t,this._micromatchOptions=e}getFilter(t,e,l){let d=this._getMatcher(e),m=this._getNegativePatternsRe(l);return g=>this._filter(t,g,d,m)}_getMatcher(t){return new Pw.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let e=t.filter(zr.pattern.isAffectDepthOfReadingPattern);return zr.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,l,d){if(this._isSkippedByDeep(t,e.path)||this._isSkippedSymbolicLink(e))return!1;let m=zr.path.removeLeadingDotSegment(e.path);return this._isSkippedByPositivePatterns(m,l)?!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 l=e.split("/").length;if(t==="")return l;let d=t.split("/").length;return l-d}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!zr.pattern.matchAny(t,e)}};yu.default=hu});var bp=K(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});var Zt=Rt(),mu=class{constructor(t,e){this._settings=t,this._micromatchOptions=e,this.index=new Map}getFilter(t,e){let l=Zt.pattern.convertPatternsToRe(t,this._micromatchOptions),d=Zt.pattern.convertPatternsToRe(e,this._micromatchOptions);return m=>this._filter(m,l,d)}_filter(t,e,l){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,l))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,l,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 l=Zt.path.makeAbsolute(this._settings.cwd,t);return Zt.pattern.matchAny(l,e)}_isMatchToPatterns(t,e,l){let d=Zt.path.removeLeadingDotSegment(t),m=Zt.pattern.matchAny(d,e);return!m&&l?Zt.pattern.matchAny(d+"/",e):m}};vu.default=mu});var jp=K(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});var Iw=Rt(),gu=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Iw.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};bu.default=gu});var Cp=K(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});var wp=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=wp.path.makeAbsolute(this._settings.cwd,e),e=wp.path.unixify(e)),this._settings.markDirectories&&t.dirent.isDirectory()&&(e+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:e}):e}};wu.default=ju});var Xr=K(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var Mw=require("path"),Fw=gp(),Ow=bp(),xw=jp(),Lw=Cp(),Cu=class{constructor(t){this._settings=t,this.errorFilter=new xw.default(this._settings),this.entryFilter=new Ow.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Fw.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Lw.default(this._settings)}_getRootDirectory(t){return Mw.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 kp=K(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});var Bw=yp(),Nw=Xr(),Su=class extends Nw.default{constructor(){super(...arguments),this._reader=new Bw.default(this._settings)}async read(t){let e=this._getRootDirectory(t),l=this._getReaderOptions(t);return(await this.api(e,t,l)).map(m=>l.transform(m))}api(t,e,l){return e.dynamic?this._reader.dynamic(t,l):this._reader.static(e.patterns,l)}};Eu.default=Su});var Sp=K(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});var Uw=require("stream"),Hw=ou(),qw=Xr(),Ru=class extends qw.default{constructor(){super(...arguments),this._reader=new Hw.default(this._settings)}read(t){let e=this._getRootDirectory(t),l=this._getReaderOptions(t),d=this.api(e,t,l),m=new Uw.Readable({objectMode:!0,read:()=>{}});return d.once("error",g=>m.emit("error",g)).on("data",g=>m.emit("data",l.transform(g))).once("end",()=>m.emit("end")),m.once("close",()=>d.destroy()),m}api(t,e,l){return e.dynamic?this._reader.dynamic(t,l):this._reader.static(e.patterns,l)}};Au.default=Ru});var Ep=K(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var Ww=Jt(),$w=Vr(),Kw=Qr(),Tu=class extends Kw.default{constructor(){super(...arguments),this._walkSync=$w.walkSync,this._statSync=Ww.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){let l=[];for(let d of t){let m=this._getFullEntryPath(d),g=this._getEntry(m,d,e);g===null||!e.entryFilter(g)||l.push(g)}return l}_getEntry(t,e,l){try{let d=this._getStat(t);return this._makeEntry(d,e)}catch(d){if(l.errorFilter(d))return null;throw d}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Du.default=Tu});var Rp=K(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var Gw=Ep(),Yw=Xr(),Pu=class extends Yw.default{constructor(){super(...arguments),this._reader=new Gw.default(this._settings)}read(t){let e=this._getRootDirectory(t),l=this._getReaderOptions(t);return this.api(e,t,l).map(l.transform)}api(t,e,l){return e.dynamic?this._reader.dynamic(t,l):this._reader.static(e.patterns,l)}};Iu.default=Pu});var Ap=K(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var bi=require("fs"),Vw=require("os"),Qw=Math.max(Vw.cpus().length,1);ji.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:bi.lstat,lstatSync:bi.lstatSync,stat:bi.stat,statSync:bi.statSync,readdir:bi.readdir,readdirSync:bi.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,Qw),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({},ji.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};ji.default=Mu});var Ip=K((Uk,Pp)=>{"use strict";var Tp=Ad(),Dp=Dd(),zw=kp(),Xw=Sp(),Jw=Rp(),Fu=Ap(),ei=Rt();async function Ou(r,t){wi(r);let e=xu(r,zw.default,t),l=await Promise.all(e);return ei.array.flatten(l)}(function(r){function t(g,E){wi(g);let R=xu(g,Jw.default,E);return ei.array.flatten(R)}r.sync=t;function e(g,E){wi(g);let R=xu(g,Xw.default,E);return ei.stream.merge(R)}r.stream=e;function l(g,E){wi(g);let R=Dp.transform([].concat(g)),L=new Fu.default(E);return Tp.generate(R,L)}r.generateTasks=l;function d(g,E){wi(g);let R=new Fu.default(E);return ei.pattern.isDynamicPattern(g,R)}r.isDynamicPattern=d;function m(g){return wi(g),ei.path.escape(g)}r.escapePath=m})(Ou||(Ou={}));function xu(r,t,e){let l=Dp.transform([].concat(r)),d=new Fu.default(e),m=Tp.generate(l,d),g=new t(d);return m.map(g.read,g)}function wi(r){if(![].concat(r).every(l=>ei.string.isString(l)&&!ei.string.isEmpty(l)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Pp.exports=Ou});var Zw={};$g(Zw,{registerWorker:()=>Fp});module.exports=Kg(Zw);var ve=Ni(require("apache-arrow"));function fi(r){switch(r.typeId){case ve.Type.Binary:return{sqlType:"binary"};case ve.Type.Bool:return{sqlType:"bool"};case ve.Type.Date:return{sqlType:"date"};case ve.Type.DateDay:return{sqlType:"date32[d]"};case ve.Type.DateMillisecond:return{sqlType:"date64[ms]"};case ve.Type.Decimal:{let t=r;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case ve.Type.Float:return{sqlType:"float"};case ve.Type.Float16:return{sqlType:"float16"};case ve.Type.Float32:return{sqlType:"float32"};case ve.Type.Float64:return{sqlType:"float64"};case ve.Type.Int:return{sqlType:"int32"};case ve.Type.Int16:return{sqlType:"int16"};case ve.Type.Int32:return{sqlType:"int32"};case ve.Type.Int64:return{sqlType:"int64"};case ve.Type.Uint16:return{sqlType:"uint16"};case ve.Type.Uint32:return{sqlType:"uint32"};case ve.Type.Uint64:return{sqlType:"uint64"};case ve.Type.Uint8:return{sqlType:"uint8"};case ve.Type.IntervalDayTime:return{sqlType:"interval[dt]"};case ve.Type.IntervalYearMonth:return{sqlType:"interval[m]"};case ve.Type.List:return{sqlType:"list",valueType:fi(r.valueType)};case ve.Type.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:r.byteWidth};case ve.Type.Null:return{sqlType:"null"};case ve.Type.Utf8:return{sqlType:"utf8"};case ve.Type.Struct:return{sqlType:"struct",fields:r.children.map(e=>hr(e.name,e.type))};case ve.Type.Map:{let t=r;return{sqlType:"map",keyType:fi(t.keyType),valueType:fi(t.valueType)}}case ve.Type.Time:return{sqlType:"time[s]"};case ve.Type.TimeMicrosecond:return{sqlType:"time[us]"};case ve.Type.TimeMillisecond:return{sqlType:"time[ms]"};case ve.Type.TimeNanosecond:return{sqlType:"time[ns]"};case ve.Type.TimeSecond:return{sqlType:"time[s]"};case ve.Type.Timestamp:return{sqlType:"timestamp",timezone:r.timezone||void 0};case ve.Type.TimestampSecond:return{sqlType:"timestamp[s]",timezone:r.timezone||void 0};case ve.Type.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:r.timezone||void 0};case ve.Type.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:r.timezone||void 0};case ve.Type.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:r.timezone||void 0}}throw new Error(`unsupported arrow type: ${r.toString()}`)}function hr(r,t){let e=fi(t);return e.name=r,e}var yr=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 l={name:e.name,message:e.message,stack:e.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"ERROR",data:l},[])}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((l,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]),l=[];e&&l.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},l);break}case"POLL_PENDING_QUERY":{let e=this._bindings.pollPendingQuery(t.data),l=[];e&&l.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},l);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 O_={},Gg=(()=>{var r=O_.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},l,d;e.ready=new Promise(function(v,C){l=v,d=C});var m=Object.assign({},e),g=[],E="./this.program",R=(v,C)=>{throw C},L=typeof window=="object",D=typeof importScripts=="function",U=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,ne;function Ee(v){if(v instanceof jt)return;ae("exiting due to exception: "+v)}if(U){D?P=require("path").dirname(P)+"/":P=__dirname+"/";var ge,He;typeof require=="function"&&(ge=require("fs"),He=require("path")),$=(v,C)=>(v=He.normalize(v),ge.readFileSync(v,C?void 0:"utf8")),Z=v=>{var C=$(v,!0);return C.buffer||(C=new Uint8Array(C)),C},Y=(v,C,S)=>{v=He.normalize(v),ge.readFile(v,function(T,B){T?S(T):C(B.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}),R=(v,C)=>{if(bt())throw process.exitCode=v,C;Ee(C),process.exit(v)},e.inspect=function(){return"[Emscripten Module object]"}}else(L||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 C=new XMLHttpRequest;return C.open("GET",v,!1),C.send(null),C.responseText},D&&(Z=v=>{var C=new XMLHttpRequest;return C.open("GET",v,!1),C.responseType="arraybuffer",C.send(null),new Uint8Array(C.response)}),Y=(v,C,S)=>{var T=new XMLHttpRequest;T.open("GET",v,!0),T.responseType="arraybuffer",T.onload=()=>{if(T.status==200||T.status==0&&T.response){C(T.response);return}S()},T.onerror=S,T.send(null)},ne=v=>document.title=v);var ue=e.print||console.log.bind(console),ae=e.printErr||console.warn.bind(console);Object.assign(e,m),m=null,e.arguments&&(g=e.arguments),e.thisProgram&&(E=e.thisProgram),e.quit&&(R=e.quit);var ee;e.wasmBinary&&(ee=e.wasmBinary);var re=e.noExitRuntime||!0;typeof WebAssembly!="object"&&qe("no native wasm support detected");var G,pe=!1,M;function ce(v,C){v||qe(C)}var se=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Te(v,C,S){C>>>=0;for(var T=C+S,B=C;v[B]&&!(B>=T);)++B;if(B-C>16&&v.buffer&&se)return se.decode(v.subarray(C,B));for(var Q="";C<B;){var W=v[C++];if(!(W&128)){Q+=String.fromCharCode(W);continue}var q=v[C++]&63;if((W&224)==192){Q+=String.fromCharCode((W&31)<<6|q);continue}var J=v[C++]&63;if((W&240)==224?W=(W&15)<<12|q<<6|J:W=(W&7)<<18|q<<12|J<<6|v[C++]&63,W<65536)Q+=String.fromCharCode(W);else{var je=W-65536;Q+=String.fromCharCode(55296|je>>10,56320|je&1023)}}return Q}function A(v,C){return v>>>=0,v?Te(Ae,v,C):""}function I(v,C,S,T){if(S>>>=0,!(T>0))return 0;for(var B=S,Q=S+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(S>=Q)break;C[S++>>>0]=q}else if(q<=2047){if(S+1>=Q)break;C[S++>>>0]=192|q>>6,C[S++>>>0]=128|q&63}else if(q<=65535){if(S+2>=Q)break;C[S++>>>0]=224|q>>12,C[S++>>>0]=128|q>>6&63,C[S++>>>0]=128|q&63}else{if(S+3>=Q)break;C[S++>>>0]=240|q>>18,C[S++>>>0]=128|q>>12&63,C[S++>>>0]=128|q>>6&63,C[S++>>>0]=128|q&63}}return C[S>>>0]=0,S-B}function Me(v,C,S){return I(v,Ae,C,S)}function be(v){for(var C=0,S=0;S<v.length;++S){var T=v.charCodeAt(S);T<=127?C++:T<=2047?C+=2:T>=55296&&T<=57343?(C+=4,++S):C+=3}return C}var Xe,Fe,Ae,Je,Nt,F,he,fe,Tt;function Ut(v){Xe=v,e.HEAP8=Fe=new Int8Array(v),e.HEAP16=Je=new Int16Array(v),e.HEAP32=F=new Int32Array(v),e.HEAPU8=Ae=new Uint8Array(v),e.HEAPU16=Nt=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,De,H=[],oe=[],Be=[],Ge=[],Ke=!1;function bt(){return re}function Dt(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)tn(e.preRun.shift());wt(H)}function Jr(){Ke=!0,wt(oe)}function Zr(){wt(Be)}function en(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)nn(e.postRun.shift());wt(Ge)}function tn(v){H.unshift(v)}function rn(v){oe.unshift(v)}function nn(v){Ge.unshift(v)}var tt=0,Ht=null,dt=null;function an(v){tt++,e.monitorRunDependencies&&e.monitorRunDependencies(tt)}function sn(v){if(tt--,e.monitorRunDependencies&&e.monitorRunDependencies(tt),tt==0&&(Ht!==null&&(clearInterval(Ht),Ht=null),dt)){var C=dt;dt=null,C()}}function qe(v){e.onAbort&&e.onAbort(v),v="Aborted("+v+")",ae(v),pe=!0,M=1,v+=". Build with -sASSERTIONS for more info.",sr()}var un="data:application/octet-stream;base64,";function Ci(v){return v.startsWith(un)}var Ne;e.locateFile?(Ne="./duckdb-eh.wasm",Ci(Ne)||(Ne=_e(Ne))):Ne=new URL("./duckdb-eh.wasm",O_.url).toString();function ki(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(C){qe(C)}}function on(){return!ee&&(L||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 ki(Ne)}):Promise.resolve().then(function(){return ki(Ne)})}function ln(){var v={a:ya};function C(W,q){var J=W.exports;e.asm=J,G=e.asm.ia,Ut(G.buffer),De=e.asm.la,rn(e.asm.ja),sn("wasm-instantiate")}an("wasm-instantiate");function S(W){C(W.instance)}function T(W){return on().then(function(q){return WebAssembly.instantiate(q,v)}).then(function(q){return q}).then(W,function(q){ae("failed to asynchronously prepare wasm: "+q),qe(q)})}function B(){return!ee&&typeof WebAssembly.instantiateStreaming=="function"&&!Ci(Ne)&&!U&&typeof fetch=="function"?fetch(Ne,{credentials:"same-origin"}).then(function(W){var q=WebAssembly.instantiateStreaming(W,v);return q.then(S,function(J){return ae("wasm streaming compile failed: "+J),ae("falling back to ArrayBuffer instantiation"),T(S)})}):T(S)}if(e.instantiateWasm)try{var Q=e.instantiateWasm(v,C);return Q}catch(W){ae("Module.instantiateWasm callback failed with error: "+W),d(W)}return B().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)}var Ct={varargs:void 0,get:function(){Ct.varargs+=4;var v=F[Ct.varargs-4>>>2];return v},getStr:function(v){var C=A(v);return C}};function ti(v,C,S,T,B){for(var Q=0,W=C?F[C>>>2]:0,q=C?F[C+4>>>2]:0,J=S?F[S>>>2]:0,je=S?F[S+4>>>2]:0,we=T?F[T>>>2]:0,Ve=T?F[T+4>>>2]:0,Se=0,rt=0,xe=0,b=0,de=0,j=0,y=(C?F[C>>>2]:0)|(S?F[S>>>2]:0)|(T?F[T>>>2]:0),te=(C?F[C+4>>>2]:0)|(S?F[S+4>>>2]:0)|(T?F[T+4>>>2]:0),Ce=function(lr,cr,_r,Li){return lr<32?cr&Li:_r&Li},Re=0;Re<v;Re++){var Qe=1<<Re%32;if(!!Ce(Re,y,te,Qe)){var It=Ct.getStreamFromFD(Re),Yt=Ct.DEFAULT_POLLMASK;It.stream_ops.poll&&(Yt=It.stream_ops.poll(It)),Yt&1&&Ce(Re,W,q,Qe)&&(Re<32?Se=Se|Qe:rt=rt|Qe,Q++),Yt&4&&Ce(Re,J,je,Qe)&&(Re<32?xe=xe|Qe:b=b|Qe,Q++),Yt&2&&Ce(Re,we,Ve,Qe)&&(Re<32?de=de|Qe:j=j|Qe,Q++)}}return C&&(F[C>>>2]=Se,F[C+4>>>2]=rt),S&&(F[S>>>2]=xe,F[S+4>>>2]=b),T&&(F[T>>>2]=de,F[T+4>>>2]=j),Q}function cn(){ae("missing function: $SOCKFS"),qe(-1)}function qt(){ae("missing function: $FS"),qe(-1)}function Wt(v){var C=cn.getSocket(v);if(!C)throw new qt.ErrnoError(8);return C}function it(v){return(v&255)+"."+(v>>8&255)+"."+(v>>16&255)+"."+(v>>24&255)}function ct(v){var C="",S=0,T=0,B=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],je=!0,we="";for(q=0;q<5;q++)if(J[q]!==0){je=!1;break}if(je){if(we=it(J[6]|J[7]<<16),J[5]===-1)return C="::ffff:",C+=we,C;if(J[5]===0)return C="::",we==="0.0.0.0"&&(we=""),we==="0.0.0.1"&&(we="1"),C+=we,C}for(S=0;S<8;S++)J[S]===0&&(S-B>1&&(W=0),B=S,W++),W>T&&(T=W,Q=S-T+1);for(S=0;S<8;S++){if(T>1&&J[S]===0&&S>=Q&&S<Q+T){S===Q&&(C+=":",Q===0&&(C+=":"));continue}C+=Number(Mi(J[S]&65535)).toString(16),C+=S<7?":":""}return C}function Si(v,C){var S=Je[v>>>1],T=Mi(Nt[v+2>>>1]),B;switch(S){case 2:if(C!==16)return{errno:28};B=F[v+4>>>2],B=it(B);break;case 10:if(C!==28)return{errno:28};B=[F[v+8>>>2],F[v+12>>>2],F[v+16>>>2],F[v+20>>>2]],B=ct(B);break;default:return{errno:5}}return{family:S,addr:B,port:T}}function kt(v){for(var C=v.split("."),S=0;S<4;S++){var T=Number(C[S]);if(isNaN(T))return null;C[S]=T}return(C[0]|C[1]<<8|C[2]<<16|C[3]<<24)>>>0}function X(v){return parseInt(v)}function Ei(v){var C,S,T,B,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"),":"),C=v.split(":"),C[C.length-4]=X(C[C.length-4])+X(C[C.length-3])*256,C[C.length-3]=X(C[C.length-2])+X(C[C.length-1])*256,C=C.slice(0,C.length-2)):C=v.split(":"),T=0,B=0,S=0;S<C.length;S++)if(typeof C[S]=="string")if(C[S]==="Z"){for(B=0;B<8-C.length+1;B++)W[S+B]=0;T=B-1}else W[S+T]=li(parseInt(C[S],16));else W[S+T]=C[S];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 C=kt(v);if(C!==null||(C=Ei(v),C!==null))return v;var S;if(at.address_map.addrs[v])S=at.address_map.addrs[v];else{var T=at.address_map.id++;ce(T<65535,"exceeded max address mappings of 65535"),S="172.29."+(T&255)+"."+(T&65280),at.address_map.names[S]=v,at.address_map.addrs[v]=S}return S},lookup_addr:function(v){return at.address_map.names[v]?at.address_map.names[v]:null}};function $i(v,C,S){if(S&&v===0)return null;var T=Si(v,C);if(T.errno)throw new qt.ErrnoError(T.errno);return T.addr=at.lookup_addr(T.addr)||T.addr,T}function _n(v,C,S){var T=Wt(v),B=$i(C,S);return T.sock_ops.bind(T,B.addr,B.port),0}function fn(v,C,S){var T=Wt(v),B=$i(C,S);return T.sock_ops.connect(T,B.addr,B.port),0}function dn(v,C,S,T){}function pn(v,C,S){return Ct.varargs=S,0}function hn(v,C){}function yn(v,C,S){}function mn(v,C,S){}function Ki(v,C){return Ae.fill(0,v,v+C),v}function Ri(v,C,S,T,B){switch(C){case 2:S=kt(S),Ki(v,16),B&&(F[B>>>2]=16),Je[v>>>1]=C,F[v+4>>>2]=S,Je[v+2>>>1]=li(T);break;case 10:S=Ei(S),Ki(v,28),B&&(F[B>>>2]=28),F[v>>>2]=C,F[v+8>>>2]=S[0],F[v+12>>>2]=S[1],F[v+16>>>2]=S[2],F[v+20>>>2]=S[3],Je[v+2>>>1]=li(T);break;default:return 5}return 0}function St(v,C,S){var T=Wt(v);if(!T.daddr)return-53;var B=Ri(C,T.family,at.lookup_name(T.daddr),T.dport,S);return 0}function vn(v,C,S,T,B){var Q=Wt(v);return C===1&&S===4?(F[T>>>2]=Q.error,F[B>>>2]=4,Q.error=null,0):-50}function gn(v,C,S){return Ct.varargs=S,0}function Gi(v,C){}function $t(v,C,S){}function Ai(v,C,S,T){}function Yi(v,C,S,T){Ct.varargs=T}function Vi(v,C,S,T,B,Q){var W=Wt(v),q=W.sock_ops.recvmsg(W,S);if(!q)return 0;if(B)var J=Ri(B,W.family,at.lookup_name(q.addr),q.port,Q);return Ae.set(q.buffer,C>>>0),q.buffer.byteLength}function ii(v,C,S,T){}function ri(v){}function Ti(v,C,S,T,B,Q){}function st(v,C,S){}function Qi(v,C){}function bn(v,C,S){}function jn(v){}var zi="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function wn(v,C){qe(zi)}function Cn(v,C){qe(zi)}var kn=!0;function Sn(){return kn}function Xi(){qe("")}function Di(v,C){return globalThis.DUCKDB_RUNTIME.createDirectory(e,v,C)}function En(v,C){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,v,C)}function Rn(v,C){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,v,C)}function An(v,C){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,v,C)}function Tn(v){return globalThis.DUCKDB_RUNTIME.closeFile(e,v)}function Dn(v,C){return globalThis.DUCKDB_RUNTIME.checkFile(e,v,C)}function Pn(v){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,v)}function In(v,C,S,T){return globalThis.DUCKDB_RUNTIME.moveFile(e,v,C,S,T)}function Mn(v,C){return globalThis.DUCKDB_RUNTIME.openFile(e,v,C)}function Fn(v,C,S,T){return globalThis.DUCKDB_RUNTIME.readFile(e,v,C,S,T)}function On(v,C){return globalThis.DUCKDB_RUNTIME.truncateFile(e,v,C)}function xn(v,C,S,T){return globalThis.DUCKDB_RUNTIME.writeFile(e,v,C,S,T)}function Ln(v){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(v)}function Bn(v,C){return globalThis.DUCKDB_RUNTIME.glob(e,v,C)}function Nn(v){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,v)}function Un(v,C,S,T,B,Q){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,v,C,S,T,B,Q)}function Ji(){return Date.now()}function Zi(){return 4294901760}function Hn(){return Zi()}var Pi;U?Pi=()=>{var v=process.hrtime();return v[0]*1e3+v[1]/1e6}:Pi=()=>performance.now();function qn(v,C,S){Ae.copyWithin(v>>>0,C>>>0,C+S>>>0)}function Wn(v){try{return G.grow(v-Xe.byteLength+65535>>>16),Ut(G.buffer),1}catch{}}function $n(v){var C=Ae.length;v=v>>>0;var S=Zi();if(v>S)return!1;let T=(J,je)=>J+(je-J%je)%je;for(var B=1;B<=4;B*=2){var Q=C*(1+.2/B);Q=Math.min(Q,v+100663296);var W=Math.min(S,T(Math.max(v,Q),65536)),q=Wn(W);if(q)return!0}return!1}var Ii={};function Kn(){return E||"./this.program"}function Kt(){if(!Kt.strings){var v=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",C={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:v,_:Kn()};for(var S in Ii)Ii[S]===void 0?delete C[S]:C[S]=Ii[S];var T=[];for(var S in C)T.push(S+"="+C[S]);Kt.strings=T}return Kt.strings}function Gn(v,C,S){for(var T=0;T<v.length;++T)Fe[C++>>>0]=v.charCodeAt(T);S||(Fe[C>>>0]=0)}function Yn(v,C){var S=0;return Kt().forEach(function(T,B){var Q=C+S;he[v+B*4>>>2]=Q,Gn(T,Q),S+=T.length+1}),0}function Vn(v,C){var S=Kt();he[v>>>2]=S.length;var T=0;return S.forEach(function(B){T+=B.length+1}),he[C>>>2]=T,0}function Qn(v){return 52}function zn(v,C){var S=v==1||v==2?2:qe();return Fe[C>>>0]=S,0}function Xn(v,C,S,T,B,Q){return 52}function Jn(v,C,S,T,B,Q){return 52}function Zn(v,C,S,T){return 52}function ea(v,C,S,T,B){return 70}function ta(v){return 52}var ia=[null,[],[]];function ra(v,C){var S=ia[v];C===0||C===10?((v===1?ue:ae)(Te(S,0)),S.length=0):S.push(C)}function na(v,C,S,T){for(var B=0,Q=0;Q<S;Q++){var W=he[C>>>2],q=he[C+4>>>2];C+=8;for(var J=0;J<q;J++)ra(v,Ae[W+J>>>0]);B+=q}return he[T>>>2]=B,0}function er(v,C,S,T){var B=0,Q=0,W=0,q=0,J=0,je=0,we;function Ve(Se,rt,xe,b,de,j){var y,te,Ce,Re;return te=Se===10?28:16,de=Se===10?ct(de):it(de),y=Fi(te),Re=Ri(y,Se,de,j),ce(!Re),Ce=Fi(32),F[Ce+4>>>2]=Se,F[Ce+8>>>2]=rt,F[Ce+12>>>2]=xe,F[Ce+24>>>2]=b,he[Ce+20>>>2]=y,Se===10?F[Ce+16>>>2]=28:F[Ce+16>>>2]=16,F[Ce+28>>>2]=0,Ce}if(S&&(W=F[S>>>2],q=F[S+4>>>2],J=F[S+8>>>2],je=F[S+12>>>2]),J&&!je&&(je=J===2?17:6),!J&&je&&(J=je===17?2:1),je===0&&(je=6),J===0&&(J=1),!v&&!C)return-2;if(W&-1088||S!==0&&F[S>>>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(C&&(C=A(C),Q=parseInt(C,10),isNaN(Q)))return W&1024?-2:-8;if(!v)return q===0&&(q=2),(W&1)===0&&(q===2?B=oi(2130706433):B=[0,0,0,1]),we=Ve(q,J,je,null,B,Q),he[T>>>2]=we,0;if(v=A(v),B=kt(v),B!==null)if(q===0||q===2)q=2;else if(q===10&&W&8)B=[0,0,oi(65535),B],q=10;else return-2;else if(B=Ei(v),B!==null)if(q===0||q===10)q=10;else return-2;return B!=null?(we=Ve(q,J,je,v,B,Q),he[T>>>2]=we,0):W&4?-2:(v=at.lookup_name(v),B=kt(v),q===0?q=2:q===10&&(B=[0,0,oi(65535),B]),we=Ve(q,J,je,null,B,Q),he[T>>>2]=we,0)}function aa(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var v=new Uint8Array(1);return()=>(crypto.getRandomValues(v),v[0])}else if(U)try{var C=require("crypto");return()=>C.randomBytes(1)[0]}catch{}return()=>qe("randomDevice")}function Pt(v,C){Pt.randomDevice||(Pt.randomDevice=aa());for(var S=0;S<C;S++)Fe[v+S>>>0]=Pt.randomDevice();return 0}function sa(v,C,S,T,B,Q,W){var q=Si(v,C);if(q.errno)return-6;var J=q.port,je=q.addr,we=!1;if(S&&T){var Ve;if(W&1||!(Ve=at.lookup_addr(je))){if(W&8)return-2}else je=Ve;var Se=Me(je,S,T);Se+1>=T&&(we=!0)}if(B&&Q){J=""+J;var Se=Me(J,B,Q);Se+1>=Q&&(we=!0)}return we?-12:0}function ni(v){return v%4===0&&(v%100!==0||v%400===0)}function ua(v,C){for(var S=0,T=0;T<=C;S+=v[T++]);return S}var ai=[31,29,31,30,31,30,31,31,30,31,30,31],tr=[31,28,31,30,31,30,31,31,30,31,30,31];function Gt(v,C){for(var S=new Date(v.getTime());C>0;){var T=ni(S.getFullYear()),B=S.getMonth(),Q=(T?ai:tr)[B];if(C>Q-S.getDate())C-=Q-S.getDate()+1,S.setDate(1),B<11?S.setMonth(B+1):(S.setMonth(0),S.setFullYear(S.getFullYear()+1));else return S.setDate(S.getDate()+C),S}return S}function oa(v,C,S){var T=S>0?S:be(v)+1,B=new Array(T),Q=I(v,B,0,B.length);return C&&(B.length=Q),B}function ir(v,C){Fe.set(v,C>>>0)}function la(v,C,S,T){var B=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:B?A(B):""},W=A(S),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 je=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],we=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ve(y,te,Ce){for(var Re=typeof y=="number"?y.toString():y||"";Re.length<te;)Re=Ce[0]+Re;return Re}function Se(y,te){return Ve(y,te,"0")}function rt(y,te){function Ce(Qe){return Qe<0?-1:Qe>0?1:0}var Re;return(Re=Ce(y.getFullYear()-te.getFullYear()))===0&&(Re=Ce(y.getMonth()-te.getMonth()))===0&&(Re=Ce(y.getDate()-te.getDate())),Re}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 te=Gt(new Date(y.tm_year+1900,0,1),y.tm_yday),Ce=new Date(te.getFullYear(),0,4),Re=new Date(te.getFullYear()+1,0,4),Qe=xe(Ce),It=xe(Re);return rt(Qe,te)<=0?rt(It,te)<=0?te.getFullYear()+1:te.getFullYear():te.getFullYear()-1}var de={"%a":function(y){return je[y.tm_wday].substring(0,3)},"%A":function(y){return je[y.tm_wday]},"%b":function(y){return we[y.tm_mon].substring(0,3)},"%B":function(y){return we[y.tm_mon]},"%C":function(y){var te=y.tm_year+1900;return Se(te/100|0,2)},"%d":function(y){return Se(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 Se(y.tm_hour,2)},"%I":function(y){var te=y.tm_hour;return te==0?te=12:te>12&&(te-=12),Se(te,2)},"%j":function(y){return Se(y.tm_mday+ua(ni(y.tm_year+1900)?ai:tr,y.tm_mon-1),3)},"%m":function(y){return Se(y.tm_mon+1,2)},"%M":function(y){return Se(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 Se(y.tm_sec,2)},"%t":function(){return" "},"%u":function(y){return y.tm_wday||7},"%U":function(y){var te=y.tm_yday+7-y.tm_wday;return Se(Math.floor(te/7),2)},"%V":function(y){var te=Math.floor((y.tm_yday+7-(y.tm_wday+6)%7)/7);if((y.tm_wday+371-y.tm_yday-2)%7<=2&&te++,te){if(te==53){var Re=(y.tm_wday+371-y.tm_yday)%7;Re!=4&&(Re!=3||!ni(y.tm_year))&&(te=1)}}else{te=52;var Ce=(y.tm_wday+7-y.tm_yday-1)%7;(Ce==4||Ce==5&&ni(y.tm_year%400-1))&&te++}return Se(te,2)},"%w":function(y){return y.tm_wday},"%W":function(y){var te=y.tm_yday+7-(y.tm_wday+6)%7;return Se(Math.floor(te/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 te=y.tm_gmtoff,Ce=te>=0;return te=Math.abs(te)/60,te=te/60*100+te%60,(Ce?"+":"-")+String("0000"+te).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 j=oa(W,!1);return j.length>C?0:(ir(j,v),j.length-1)}function ca(v,C,S,T,B){return la(v,C,S,T)}function _a(v){M=v,bt()||(e.onExit&&e.onExit(v),pe=!0),R(v,new jt(v))}function fa(v,C){M=v,_a(v)}function da(v){if(v instanceof jt||v=="unwind")return M;R(1,v)}function pa(v){var C=e["_"+v];return C}function ha(v,C,S,T,B){var Q={string:xe=>{var b=0;if(xe!=null&&xe!==0){var de=(xe.length<<2)+1;b=ci(de),Me(xe,b,de)}return b},array:xe=>{var b=ci(xe.length);return ir(xe,b),b}};function W(xe){return C==="string"?A(xe):C==="boolean"?Boolean(xe):xe}var q=pa(v),J=[],je=0;if(T)for(var we=0;we<T.length;we++){var Ve=Q[S[we]];Ve?(je===0&&(je=Oi()),J[we]=Ve(T[we])):J[we]=T[we]}var Se=q.apply(null,J);function rt(xe){return je!==0&&xi(je),W(xe)}return Se=rt(Se),Se}var ya={Z:ti,ba:_n,aa:fn,U:dn,a:pn,T:hn,t:yn,O:mn,X:St,Y:vn,n:gn,Q:Gi,P:$t,R:Ai,o:Yi,_:Vi,L:ii,i:ri,$:Ti,k:st,S:Qi,j:bn,ca:jn,ea:wn,da:Cn,p:Sn,c:Xi,D:Di,F:En,B:Rn,C:An,g:Tn,z:Dn,s:Pn,A:In,H:Mn,d:Fn,G:On,h:xn,I:Ln,y:Bn,f:Nn,J:Un,q:Ji,r:Hn,V:Pi,ga:qn,ha:$n,E:Yn,M:Vn,b:Qn,fa:zn,w:Xn,v:Jn,m:Zn,x:ea,N:ta,e:na,l:er,K:Pt,W:sa,u:ca},Bu=ln(),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)},rr=e._duckdb_web_flush_file=function(){return(rr=e._duckdb_web_flush_file=e.asm.ta).apply(null,arguments)},nr=e._duckdb_web_open=function(){return(nr=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)},ar=e._duckdb_web_export_file_stats=function(){return(ar=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)},sr=e.___trap=function(){return(sr=e.___trap=e.asm.bb).apply(null,arguments)},Oi=e.stackSave=function(){return(Oi=e.stackSave=e.asm.cb).apply(null,arguments)},xi=e.stackRestore=function(){return(xi=e.stackRestore=e.asm.db).apply(null,arguments)},ci=e.stackAlloc=function(){return(ci=e.stackAlloc=e.asm.eb).apply(null,arguments)};e.stackAlloc=ci,e.stackSave=Oi,e.stackRestore=xi,e.ccall=ha;var _i;dt=function v(){_i||ur(),_i||(dt=v)};function Ja(v){var C=e._main,S=0,T=0;try{var B=C(S,T);return fa(B,!0),B}catch(Q){return da(Q)}}function ur(v){if(v=v||g,tt>0||(Dt(),tt>0))return;function C(){_i||(_i=!0,e.calledRun=!0,!pe&&(Jr(),Zr(),l(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),or&&Ja(v),en()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),C()},1)):C()}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var or=!0;return e.noInitialRun&&(or=!1),ur(),t.ready}})(),x_=Gg;var L_={},Yg=(()=>{var r=L_.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},l,d;e.ready=new Promise(function(i,n){l=i,d=n});var m=Object.assign({},e),g=[],E="./this.program",R=(i,n)=>{throw n},L=typeof window=="object",D=typeof importScripts=="function",U=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,ne;function Ee(i){if(i instanceof jt)return;ae("exiting due to exception: "+i)}if(U){D?P=require("path").dirname(P)+"/":P=__dirname+"/";var ge,He;typeof require=="function"&&(ge=require("fs"),He=require("path")),$=(i,n)=>(i=He.normalize(i),ge.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),ge.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}),R=(i,n)=>{if(bt())throw process.exitCode=i,n;Ee(n),process.exit(i)},e.inspect=function(){return"[Emscripten Module object]"}}else(L||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)},ne=i=>document.title=i);var ue=e.print||console.log.bind(console),ae=e.printErr||console.warn.bind(console);Object.assign(e,m),m=null,e.arguments&&(g=e.arguments),e.thisProgram&&(E=e.thisProgram),e.quit&&(R=e.quit);var ee;e.wasmBinary&&(ee=e.wasmBinary);var re=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 se=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Te(i,n,a){n>>>=0;for(var s=n+a,u=n;i[u]&&!(u>=s);)++u;if(u-n>16&&i.buffer&&se)return se.decode(i.subarray(n,u));for(var o="";n<u;){var c=i[n++];if(!(c&128)){o+=String.fromCharCode(c);continue}var _=i[n++]&63;if((c&224)==192){o+=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)o+=String.fromCharCode(c);else{var p=c-65536;o+=String.fromCharCode(55296|p>>10,56320|p&1023)}}return o}function A(i,n){return i>>>=0,i?Te(Ae,i,n):""}function I(i,n,a,s){if(a>>>=0,!(s>0))return 0;for(var u=a,o=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>=o)break;n[a++>>>0]=_}else if(_<=2047){if(a+1>=o)break;n[a++>>>0]=192|_>>6,n[a++>>>0]=128|_&63}else if(_<=65535){if(a+2>=o)break;n[a++>>>0]=224|_>>12,n[a++>>>0]=128|_>>6&63,n[a++>>>0]=128|_&63}else{if(a+3>=o)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 Me(i,n,a){return I(i,Ae,n,a)}function be(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,Fe,Ae,Je,Nt,F,he,fe,Tt;function Ut(i){Xe=i,e.HEAP8=Fe=new Int8Array(i),e.HEAP16=Je=new Int16Array(i),e.HEAP32=F=new Int32Array(i),e.HEAPU8=Ae=new Uint8Array(i),e.HEAPU16=Nt=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,De,H=[],oe=[],Be=[],Ge=[],Ke=!1;function bt(){return re}function Dt(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)tn(e.preRun.shift());wt(H)}function Jr(){Ke=!0,wt(oe)}function Zr(){wt(Be)}function en(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)nn(e.postRun.shift());wt(Ge)}function tn(i){H.unshift(i)}function rn(i){oe.unshift(i)}function nn(i){Ge.unshift(i)}var tt=0,Ht=null,dt=null;function an(i){tt++,e.monitorRunDependencies&&e.monitorRunDependencies(tt)}function sn(i){if(tt--,e.monitorRunDependencies&&e.monitorRunDependencies(tt),tt==0&&(Ht!==null&&(clearInterval(Ht),Ht=null),dt)){var n=dt;dt=null,n()}}function qe(i){e.onAbort&&e.onAbort(i),i="Aborted("+i+")",ae(i),pe=!0,M=1,i+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(i);throw d(n),n}var un="data:application/octet-stream;base64,";function Ci(i){return i.startsWith(un)}var Ne;e.locateFile?(Ne="./duckdb-mvp.wasm",Ci(Ne)||(Ne=_e(Ne))):Ne=new URL("./duckdb-mvp.wasm",L_.url).toString();function ki(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 on(){return!ee&&(L||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 ki(Ne)}):Promise.resolve().then(function(){return ki(Ne)})}function ln(){var i={a:Ma};function n(c,_){var f=c.exports;e.asm=f,G=e.asm.yf,Ut(G.buffer),De=e.asm.Bf,rn(e.asm.zf),sn("wasm-instantiate")}an("wasm-instantiate");function a(c){n(c.instance)}function s(c){return on().then(function(_){return WebAssembly.instantiate(_,i)}).then(function(_){return _}).then(c,function(_){ae("failed to asynchronously prepare wasm: "+_),qe(_)})}function u(){return!ee&&typeof WebAssembly.instantiateStreaming=="function"&&!Ci(Ne)&&!U&&typeof fetch=="function"?fetch(Ne,{credentials:"same-origin"}).then(function(c){var _=WebAssembly.instantiateStreaming(c,i);return _.then(a,function(f){return ae("wasm streaming compile failed: "+f),ae("falling back to ArrayBuffer instantiation"),s(a)})}):s(a)}if(e.instantiateWasm)try{var o=e.instantiateWasm(i,n);return o}catch(c){ae("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 Ct(i){return rt(i+24)+24}var ti=[];function cn(i){i.add_ref()}var qt=0;function Wt(i){var n=new ct(i);return n.get_caught()||(n.set_caught(!0),qt--),n.set_rethrown(!1),ti.push(n),cn(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,Fe[this.ptr+12>>>0]=n},this.get_caught=function(){return Fe[this.ptr+12>>>0]!=0},this.set_rethrown=function(n){n=n?1:0,Fe[this.ptr+13>>>0]=n},this.get_rethrown=function(){return Fe[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=Re(this.get_type());if(n)return he[this.excPtr>>>2];var a=this.get_adjusted_ptr();return a!==0?a:this.excPtr}}function Si(i){return xe(new ct(i).ptr)}var kt=[];function X(i){var n=kt[i];return n||(i>=kt.length&&(kt.length=i+1),kt[i]=n=De.get(i)),n}function Ei(i){if(i.release_ref()&&!i.get_rethrown()){var n=i.get_destructor();n&&X(n)(i.excPtr),Si(i.excPtr)}}function at(){b(0);var i=ti.pop();Ei(i),it=0}function $i(i){throw it||(it=i),i}function _n(){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 o=n.ptr+16;if(Ce(u,a,o))return de(u),i}return de(a),i}function fn(){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 o=n.ptr+16;if(Ce(u,a,o))return de(u),i}return de(a),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 o=n.ptr+16;if(Ce(u,a,o))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 o=n.ptr+16;if(Ce(u,a,o))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 o=n.ptr+16;if(Ce(u,a,o))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 o=n.ptr+16;if(Ce(u,a,o))return de(u),i}return de(a),i}function mn(){var i=ti.pop();i||qe("no exception to throw");var n=i.excPtr;throw i.get_rethrown()||(ti.push(i),i.set_rethrown(!0),i.set_caught(!1),qt++),it=n,n}function Ki(i,n,a){var s=new ct(i);throw s.init(n,a),it=i,qt++,i}function Ri(){return qt}var St={varargs:void 0,get:function(){St.varargs+=4;var i=F[St.varargs-4>>>2];return i},getStr:function(i){var n=A(i);return n}};function vn(i,n,a,s,u){for(var o=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,w=s?F[s+4>>>2]:0,k=0,O=0,N=0,ie=0,ye=0,ke=0,x=(n?F[n>>>2]:0)|(a?F[a>>>2]:0)|(s?F[s>>>2]:0),z=(n?F[n+4>>>2]:0)|(a?F[a+4>>>2]:0)|(s?F[s+4>>>2]:0),Oe=function(xg,Lg,Bg,M_){return xg<32?Lg&M_:Bg&M_},Ie=0;Ie<i;Ie++){var nt=1<<Ie%32;if(!!Oe(Ie,x,z,nt)){var Bi=St.getStreamFromFD(Ie),dr=St.DEFAULT_POLLMASK;Bi.stream_ops.poll&&(dr=Bi.stream_ops.poll(Bi)),dr&1&&Oe(Ie,c,_,nt)&&(Ie<32?k=k|nt:O=O|nt,o++),dr&4&&Oe(Ie,f,p,nt)&&(Ie<32?N=N|nt:ie=ie|nt,o++),dr&2&&Oe(Ie,h,w,nt)&&(Ie<32?ye=ye|nt:ke=ke|nt,o++)}}return n&&(F[n>>>2]=k,F[n+4>>>2]=O),a&&(F[a>>>2]=N,F[a+4>>>2]=ie),s&&(F[s>>>2]=ye,F[s+4>>>2]=ke),o}function gn(){ae("missing function: $SOCKFS"),qe(-1)}function Gi(){ae("missing function: $FS"),qe(-1)}function $t(i){var n=gn.getSocket(i);if(!n)throw new Gi.ErrnoError(8);return n}function Ai(i){return(i&255)+"."+(i>>8&255)+"."+(i>>16&255)+"."+(i>>24&255)}function Yi(i){var n="",a=0,s=0,u=0,o=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=Ai(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,o=a-s+1);for(a=0;a<8;a++){if(s>1&&f[a]===0&&a>=o&&a<o+s){a===o&&(n+=":",o===0&&(n+=":"));continue}n+=Number(Se(f[a]&65535)).toString(16),n+=a<7?":":""}return n}function Vi(i,n){var a=Je[i>>>1],s=Se(Nt[i+2>>>1]),u;switch(a){case 2:if(n!==16)return{errno:28};u=F[i+4>>>2],u=Ai(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=Yi(u);break;default:return{errno:5}}return{family:a,addr:u,port:s}}function ii(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 ri(i){return parseInt(i)}function Ti(i){var n,a,s,u,o=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,c=[];if(!o.test(i))return null;if(i==="::")return[0,0,0,0,0,0,0,0];for(i.startsWith("::")?i=i.replace("::","Z:"):i=i.replace("::",":Z:"),i.indexOf(".")>0?(i=i.replace(new RegExp("[.]","g"),":"),n=i.split(":"),n[n.length-4]=ri(n[n.length-4])+ri(n[n.length-3])*256,n[n.length-3]=ri(n[n.length-2])+ri(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=ii(i);if(n!==null||(n=Ti(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 Qi(i,n,a){if(a&&i===0)return null;var s=Vi(i,n);if(s.errno)throw new Gi.ErrnoError(s.errno);return s.addr=st.lookup_addr(s.addr)||s.addr,s}function bn(i,n,a){var s=$t(i),u=Qi(n,a);return s.sock_ops.bind(s,u.addr,u.port),0}function jn(i,n,a){var s=$t(i),u=Qi(n,a);return s.sock_ops.connect(s,u.addr,u.port),0}function zi(i,n,a,s){}function wn(i,n,a){return St.varargs=a,0}function Cn(i,n){}function kn(i,n,a){}function Sn(i,n,a){}function Xi(i,n){return Ae.fill(0,i,i+n),i}function Di(i,n,a,s,u){switch(n){case 2:a=ii(a),Xi(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=Ti(a),Xi(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 En(i,n,a){var s=$t(i);if(!s.daddr)return-53;var u=Di(n,s.family,st.lookup_name(s.daddr),s.dport,a);return 0}function Rn(i,n,a,s,u){var o=$t(i);return n===1&&a===4?(F[s>>>2]=o.error,F[u>>>2]=4,o.error=null,0):-50}function An(i,n,a){return St.varargs=a,0}function Tn(i,n){}function Dn(i,n,a){}function Pn(i,n,a,s){}function In(i,n,a,s){St.varargs=s}function Mn(i,n,a,s,u,o){var c=$t(i),_=c.sock_ops.recvmsg(c,a);if(!_)return 0;if(u)var f=Di(u,c.family,st.lookup_name(_.addr),_.port,o);return Ae.set(_.buffer,n>>>0),_.buffer.byteLength}function Fn(i,n,a,s){}function On(i){}function xn(i,n,a,s,u,o){}function Ln(i,n,a){}function Bn(i,n){}function Nn(i,n,a){}function Un(i){}var Ji="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function Zi(i,n){qe(Ji)}function Hn(i,n){qe(Ji)}var Pi=!0;function qn(){return Pi}function Wn(){qe("")}function $n(i,n){return globalThis.DUCKDB_RUNTIME.createDirectory(e,i,n)}function Ii(i,n){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,i,n)}function Kn(i,n){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,i,n)}function Kt(i,n){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,i,n)}function Gn(i){return globalThis.DUCKDB_RUNTIME.closeFile(e,i)}function Yn(i,n){return globalThis.DUCKDB_RUNTIME.checkFile(e,i,n)}function Vn(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 Zn(i,n,a,s){return globalThis.DUCKDB_RUNTIME.writeFile(e,i,n,a,s)}function ea(i){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(i)}function ta(i,n){return globalThis.DUCKDB_RUNTIME.glob(e,i,n)}function ia(i){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,i)}function ra(i,n,a,s,u,o){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,i,n,a,s,u,o)}function na(){return Date.now()}function er(){return 4294901760}function aa(){return er()}var Pt;U?Pt=()=>{var i=process.hrtime();return i[0]*1e3+i[1]/1e6}:Pt=()=>performance.now();function sa(i,n,a){Ae.copyWithin(i>>>0,n>>>0,n+a>>>0)}function ni(i){try{return G.grow(i-Xe.byteLength+65535>>>16),Ut(G.buffer),1}catch{}}function ua(i){var n=Ae.length;i=i>>>0;var a=er();if(i>a)return!1;let s=(f,p)=>f+(p-f%p)%p;for(var u=1;u<=4;u*=2){var o=n*(1+.2/u);o=Math.min(o,i+100663296);var c=Math.min(a,s(Math.max(i,o),65536)),_=ni(c);if(_)return!0}return!1}var ai={};function tr(){return E||"./this.program"}function Gt(){if(!Gt.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,_:tr()};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]);Gt.strings=s}return Gt.strings}function oa(i,n,a){for(var s=0;s<i.length;++s)Fe[n++>>>0]=i.charCodeAt(s);a||(Fe[n>>>0]=0)}function ir(i,n){var a=0;return Gt().forEach(function(s,u){var o=n+a;he[i+u*4>>>2]=o,oa(s,o),a+=s.length+1}),0}function la(i,n){var a=Gt();he[i>>>2]=a.length;var s=0;return a.forEach(function(u){s+=u.length+1}),he[n>>>2]=s,0}function ca(i){return 52}function _a(i,n){var a=i==1||i==2?2:qe();return Fe[n>>>0]=a,0}function fa(i,n,a,s,u,o){return 52}function da(i,n,a,s,u,o){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?ue:ae)(Te(a,0)),a.length=0):a.push(n)}function va(i,n,a,s){for(var u=0,o=0;o<a;o++){var c=he[n>>>2],_=he[n+4>>>2];n+=8;for(var f=0;f<_;f++)ma(i,Ae[c+f>>>0]);u+=_}return he[s>>>2]=u,0}function ga(i,n,a,s){var u=0,o=0,c=0,_=0,f=0,p=0,h;function w(k,O,N,ie,ye,ke){var x,z,Oe,Ie;return z=k===10?28:16,ye=k===10?Yi(ye):Ai(ye),x=rt(z),Ie=Di(x,k,ye,ke),ce(!Ie),Oe=rt(32),F[Oe+4>>>2]=k,F[Oe+8>>>2]=O,F[Oe+12>>>2]=N,F[Oe+24>>>2]=ie,he[Oe+20>>>2]=x,k===10?F[Oe+16>>>2]=28:F[Oe+16>>>2]=16,F[Oe+28>>>2]=0,Oe}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=A(n),o=parseInt(n,10),isNaN(o)))return c&1024?-2:-8;if(!i)return _===0&&(_=2),(c&1)===0&&(_===2?u=we(2130706433):u=[0,0,0,1]),h=w(_,f,p,null,u,o),he[s>>>2]=h,0;if(i=A(i),u=ii(i),u!==null)if(_===0||_===2)_=2;else if(_===10&&c&8)u=[0,0,we(65535),u],_=10;else return-2;else if(u=Ti(i),u!==null)if(_===0||_===10)_=10;else return-2;return u!=null?(h=w(_,f,p,i,u,o),he[s>>>2]=h,0):c&4?-2:(i=st.lookup_name(i),u=ii(i),_===0?_=2:_===10&&(u=[0,0,we(65535),u]),h=w(_,f,p,null,u,o),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(U)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++)Fe[i+a>>>0]=si.randomDevice();return 0}function ja(i,n,a,s,u,o,c){var _=Vi(i,n);if(_.errno)return-6;var f=_.port,p=_.addr,h=!1;if(a&&s){var w;if(c&1||!(w=st.lookup_addr(p))){if(c&8)return-2}else p=w;var k=Me(p,a,s);k+1>=s&&(h=!0)}if(u&&o){f=""+f;var k=Me(f,u,o);k+1>=o&&(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 rr=[31,29,31,30,31,30,31,31,30,31,30,31],nr=[31,28,31,30,31,30,31,31,30,31,30,31];function ka(i,n){for(var a=new Date(i.getTime());n>0;){var s=ui(a.getFullYear()),u=a.getMonth(),o=(s?rr:nr)[u];if(n>o-a.getDate())n-=o-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:be(i)+1,u=new Array(s),o=I(i,u,0,u.length);return n&&(u.length=o),u}function ar(i,n){Fe.set(i,n>>>0)}function Ea(i,n,a,s){var u=F[s+40>>>2],o={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?A(u):""},c=A(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 w(x,z,Oe){for(var Ie=typeof x=="number"?x.toString():x||"";Ie.length<z;)Ie=Oe[0]+Ie;return Ie}function k(x,z){return w(x,z,"0")}function O(x,z){function Oe(nt){return nt<0?-1:nt>0?1:0}var Ie;return(Ie=Oe(x.getFullYear()-z.getFullYear()))===0&&(Ie=Oe(x.getMonth()-z.getMonth()))===0&&(Ie=Oe(x.getDate()-z.getDate())),Ie}function N(x){switch(x.getDay()){case 0:return new Date(x.getFullYear()-1,11,29);case 1:return x;case 2:return new Date(x.getFullYear(),0,3);case 3:return new Date(x.getFullYear(),0,2);case 4:return new Date(x.getFullYear(),0,1);case 5:return new Date(x.getFullYear()-1,11,31);case 6:return new Date(x.getFullYear()-1,11,30)}}function ie(x){var z=ka(new Date(x.tm_year+1900,0,1),x.tm_yday),Oe=new Date(z.getFullYear(),0,4),Ie=new Date(z.getFullYear()+1,0,4),nt=N(Oe),Bi=N(Ie);return O(nt,z)<=0?O(Bi,z)<=0?z.getFullYear()+1:z.getFullYear():z.getFullYear()-1}var ye={"%a":function(x){return p[x.tm_wday].substring(0,3)},"%A":function(x){return p[x.tm_wday]},"%b":function(x){return h[x.tm_mon].substring(0,3)},"%B":function(x){return h[x.tm_mon]},"%C":function(x){var z=x.tm_year+1900;return k(z/100|0,2)},"%d":function(x){return k(x.tm_mday,2)},"%e":function(x){return w(x.tm_mday,2," ")},"%g":function(x){return ie(x).toString().substring(2)},"%G":function(x){return ie(x)},"%H":function(x){return k(x.tm_hour,2)},"%I":function(x){var z=x.tm_hour;return z==0?z=12:z>12&&(z-=12),k(z,2)},"%j":function(x){return k(x.tm_mday+Ca(ui(x.tm_year+1900)?rr:nr,x.tm_mon-1),3)},"%m":function(x){return k(x.tm_mon+1,2)},"%M":function(x){return k(x.tm_min,2)},"%n":function(){return`
|
|
4
|
+
`},"%p":function(x){return x.tm_hour>=0&&x.tm_hour<12?"AM":"PM"},"%S":function(x){return k(x.tm_sec,2)},"%t":function(){return" "},"%u":function(x){return x.tm_wday||7},"%U":function(x){var z=x.tm_yday+7-x.tm_wday;return k(Math.floor(z/7),2)},"%V":function(x){var z=Math.floor((x.tm_yday+7-(x.tm_wday+6)%7)/7);if((x.tm_wday+371-x.tm_yday-2)%7<=2&&z++,z){if(z==53){var Ie=(x.tm_wday+371-x.tm_yday)%7;Ie!=4&&(Ie!=3||!ui(x.tm_year))&&(z=1)}}else{z=52;var Oe=(x.tm_wday+7-x.tm_yday-1)%7;(Oe==4||Oe==5&&ui(x.tm_year%400-1))&&z++}return k(z,2)},"%w":function(x){return x.tm_wday},"%W":function(x){var z=x.tm_yday+7-(x.tm_wday+6)%7;return k(Math.floor(z/7),2)},"%y":function(x){return(x.tm_year+1900).toString().substring(2)},"%Y":function(x){return x.tm_year+1900},"%z":function(x){var z=x.tm_gmtoff,Oe=z>=0;return z=Math.abs(z)/60,z=z/60*100+z%60,(Oe?"+":"-")+String("0000"+z).slice(-4)},"%Z":function(x){return x.tm_zone},"%%":function(){return"%"}};c=c.replace(/%%/g,"\0\0");for(var f in ye)c.includes(f)&&(c=c.replace(new RegExp(f,"g"),ye[f](o)));c=c.replace(/\0\0/g,"%");var ke=Sa(c,!1);return ke.length>n?0:(ar(ke,i),ke.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),R(i,new jt(i))}function Ta(i,n){M=i,Aa(i)}function Da(i){if(i instanceof jt||i=="unwind")return M;R(1,i)}function Pa(i){var n=e["_"+i];return n}function Ia(i,n,a,s,u){var o={string:N=>{var ie=0;if(N!=null&&N!==0){var ye=(N.length<<2)+1;ie=te(ye),Me(N,ie,ye)}return ie},array:N=>{var ie=te(N.length);return ar(N,ie),ie}};function c(N){return n==="string"?A(N):n==="boolean"?Boolean(N):N}var _=Pa(i),f=[],p=0;if(s)for(var h=0;h<s.length;h++){var w=o[a[h]];w?(p===0&&(p=j()),f[h]=w(s[h])):f[h]=s[h]}var k=_.apply(null,f);function O(N){return p!==0&&y(p),c(N)}return k=O(k),k}var Ma={i:Ct,x:Wt,F:at,a:_n,n:fn,D:dn,L:pn,Q:hn,ua:yn,h:Si,pa:mn,t:Ki,E:Ri,d:$i,Ja:vn,Na:bn,Ma:jn,Aa:zi,P:wn,za:Cn,tb:kn,vf:Sn,Ha:En,Ia:Rn,ma:An,xf:Tn,wf:Dn,xa:Pn,na:In,Ka:Mn,tf:Fn,va:On,La:xn,ia:Ln,ya:Bn,wa:Nn,Pa:Un,Ra:Zi,Qa:Hn,Ta:qn,aa:Wn,hf:$n,jf:Ii,ff:Kn,gf:Kt,sa:Gn,df:Yn,bb:Vn,ef:Qn,lf:zn,ca:Xn,kf:Jn,ta:Zn,mf:ea,cf:ta,ra:ia,nf:ra,Ua:na,Va:aa,af:Pt,Sb:sa,Ld:ua,mb:ir,xb:la,X:ca,Sa:_a,vb:fa,ub:da,la:pa,Re:ha,uf:ya,ea:va,Oa:ga,sf:si,Ga:ja,y:bh,Z:kh,fa:Kp,N:Th,O:Sh,je:Ay,U:Rh,qa:$p,_:Ah,ke:Ry,u:eh,ja:dh,qf:Oh,$:uh,ka:fh,rf:Fh,c:Lp,da:vh,T:oh,b:Bp,V:wh,Qb:Yv,Lb:Jv,g:Up,Fa:Eh,Jb:eg,l:Wp,oa:ah,m:Hp,Ea:Dh,v:Vp,w:Xp,K:sh,S:mh,Y:Jp,s:ih,B:Zp,Ba:Mh,G:ph,r:jh,Gb:rg,Pb:Vv,Zb:Nv,Ob:Qv,ac:xv,Hb:ig,Tb:Kv,Kb:Zv,xe:py,ee:My,$b:Lv,md:km,ab:Tg,Bd:lm,Te:Yh,ld:Sm,ye:dy,rb:pg,Yc:Um,Se:Vh,Za:Ig,Xa:Fg,Xc:Hm,qe:jy,ge:Py,nd:Cm,be:xy,ue:my,Cd:om,Dd:um,Eb:ag,gd:Dm,Ib:tg,Zc:Nm,Ye:qh,Ce:ly,we:hy,Sc:Gm,$c:Lm,sb:dg,nb:vg,_c:Bm,Ze:Hh,lc:Sv,Ad:cm,Mb:Xv,Nb:zv,Ed:sm,Td:Gy,hb:Cg,Fc:av,Ie:ry,Fe:sy,Ae:_y,_d:Ny,Wc:qm,ib:wg,re:by,fe:Iy,Ge:ay,he:Dy,Qc:Vm,bc:Ov,mc:kv,Ya:Mg,Sd:Yy,Nc:Xm,Ic:iv,pd:jm,ve:yy,Ud:Ky,jc:Rv,ic:Av,We:$h,Ve:Kh,ce:Oy,bf:Bh,Vd:$y,Fb:ng,Vb:Wv,Db:sg,zb:cg,ed:Im,Cc:ov,Ab:lg,Pd:zy,Gd:nm,uc:yv,yb:_g,Rb:Gv,Yb:Uv,Wd:Wy,Id:im,le:Ey,tc:mv,Ub:$v,Cb:ug,de:Fy,ud:ym,_a:Pg,rd:gm,od:wm,_b:Bv,td:mm,ad:xm,ae:Ly,ec:Iv,Jc:tv,Gc:nv,fc:Pv,gc:Dv,Dc:uv,o:Op,Ca:Ih,Da:Ph,j:Np,A:_h,ga:Ch,I:ch,e:xp,M:Gp,W:lh,f:Yp,k:qp,pf:xh,q:zp,p:Qp,ha:gh,C:th,H:hh,R:yh,J:rh,of:Lh,ba:nh,Le:ey,Oe:Xh,dd:Mm,Me:Zh,sc:vv,rc:gv,pe:wy,Fd:am,Kc:ev,jd:Rm,ne:ky,qb:hg,Ne:Jh,kb:bg,Ke:ty,se:gy,bd:Om,cd:Fm,cc:Fv,dc:Mv,me:Sy,qc:bv,Pe:zh,Bb:og,oc:wv,He:ny,Be:cy,ze:fy,kd:Em,pc:jv,yc:fv,nc:Cv,Xd:qy,$a:Dg,Yd:Hy,Xb:Hv,jb:jg,Xe:Wh,Nd:Jy,yd:fm,wc:pv,Bc:lv,Oc:zm,Ec:sv,gb:kg,_e:Uh,Ee:uy,Ue:Gh,Mc:Jm,Rc:Ym,oe:Cy,hc:Tv,zc:_v,wd:pm,sd:vm,Hd:rm,lb:gg,zd:_m,fb:Sg,vc:hv,xc:dv,ob:mg,$e:Nh,De:oy,Wb:qv,$d:By,Zd:Uy,Qe:Qh,Je:iy,ie:Ty,Vc:Wm,Tc:Km,Lc:Zm,Uc:$m,vd:hm,qd:bm,Qd:Qy,kc:Ev,Pc:Qm,eb:Eg,Ac:cv,pb:yg,Od:Xy,hd:Tm,cb:Ag,db:Rg,id:Am,xd:dm,Kd:em,wb:fg,Hc:rv,fd:Pm,Rd:Vy,te:vy,Md:Zy,Jd:tm,z:wa,Wa:Ra},Nu=ln(),Fa=e.___wasm_call_ctors=function(){return(Fa=e.___wasm_call_ctors=e.asm.zf).apply(null,arguments)},Oa=e._main=function(){return(Oa=e._main=e.asm.Af).apply(null,arguments)},xa=e._duckdb_web_fs_glob_add_path=function(){return(xa=e._duckdb_web_fs_glob_add_path=e.asm.Cf).apply(null,arguments)},La=e._duckdb_web_clear_response=function(){return(La=e._duckdb_web_clear_response=e.asm.Df).apply(null,arguments)},Ba=e._duckdb_web_fail_with=function(){return(Ba=e._duckdb_web_fail_with=e.asm.Ef).apply(null,arguments)},Na=e._duckdb_web_reset=function(){return(Na=e._duckdb_web_reset=e.asm.Ff).apply(null,arguments)},Ua=e._duckdb_web_connect=function(){return(Ua=e._duckdb_web_connect=e.asm.Gf).apply(null,arguments)},Ha=e._duckdb_web_disconnect=function(){return(Ha=e._duckdb_web_disconnect=e.asm.Hf).apply(null,arguments)},qa=e._duckdb_web_flush_files=function(){return(qa=e._duckdb_web_flush_files=e.asm.If).apply(null,arguments)},Wa=e._duckdb_web_flush_file=function(){return(Wa=e._duckdb_web_flush_file=e.asm.Jf).apply(null,arguments)},$a=e._duckdb_web_open=function(){return($a=e._duckdb_web_open=e.asm.Kf).apply(null,arguments)},Ka=e._duckdb_web_get_global_file_info=function(){return(Ka=e._duckdb_web_get_global_file_info=e.asm.Lf).apply(null,arguments)},Ga=e._duckdb_web_collect_file_stats=function(){return(Ga=e._duckdb_web_collect_file_stats=e.asm.Mf).apply(null,arguments)},Ya=e._duckdb_web_export_file_stats=function(){return(Ya=e._duckdb_web_export_file_stats=e.asm.Nf).apply(null,arguments)},Va=e._duckdb_web_fs_drop_file=function(){return(Va=e._duckdb_web_fs_drop_file=e.asm.Of).apply(null,arguments)},Qa=e._duckdb_web_fs_drop_files=function(){return(Qa=e._duckdb_web_fs_drop_files=e.asm.Pf).apply(null,arguments)},za=e._duckdb_web_fs_glob_file_infos=function(){return(za=e._duckdb_web_fs_glob_file_infos=e.asm.Qf).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.Rf).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.Sf).apply(null,arguments)},Mi=e._duckdb_web_fs_register_file_url=function(){return(Mi=e._duckdb_web_fs_register_file_url=e.asm.Tf).apply(null,arguments)},Fi=e._duckdb_web_fs_register_file_buffer=function(){return(Fi=e._duckdb_web_fs_register_file_buffer=e.asm.Uf).apply(null,arguments)},Xa=e._duckdb_web_copy_file_to_buffer=function(){return(Xa=e._duckdb_web_copy_file_to_buffer=e.asm.Vf).apply(null,arguments)},sr=e._duckdb_web_copy_file_to_path=function(){return(sr=e._duckdb_web_copy_file_to_path=e.asm.Wf).apply(null,arguments)},Oi=e._duckdb_web_get_version=function(){return(Oi=e._duckdb_web_get_version=e.asm.Xf).apply(null,arguments)},xi=e._duckdb_web_get_feature_flags=function(){return(xi=e._duckdb_web_get_feature_flags=e.asm.Yf).apply(null,arguments)},ci=e._duckdb_web_tokenize=function(){return(ci=e._duckdb_web_tokenize=e.asm.Zf).apply(null,arguments)},_i=e._duckdb_web_udf_scalar_create=function(){return(_i=e._duckdb_web_udf_scalar_create=e.asm._f).apply(null,arguments)},Ja=e._duckdb_web_prepared_create=function(){return(Ja=e._duckdb_web_prepared_create=e.asm.$f).apply(null,arguments)},ur=e._duckdb_web_prepared_close=function(){return(ur=e._duckdb_web_prepared_close=e.asm.ag).apply(null,arguments)},or=e._duckdb_web_prepared_run=function(){return(or=e._duckdb_web_prepared_run=e.asm.bg).apply(null,arguments)},v=e._duckdb_web_prepared_send=function(){return(v=e._duckdb_web_prepared_send=e.asm.cg).apply(null,arguments)},C=e._duckdb_web_query_run=function(){return(C=e._duckdb_web_query_run=e.asm.dg).apply(null,arguments)},S=e._duckdb_web_pending_query_start=function(){return(S=e._duckdb_web_pending_query_start=e.asm.eg).apply(null,arguments)},T=e._duckdb_web_pending_query_poll=function(){return(T=e._duckdb_web_pending_query_poll=e.asm.fg).apply(null,arguments)},B=e._duckdb_web_pending_query_cancel=function(){return(B=e._duckdb_web_pending_query_cancel=e.asm.gg).apply(null,arguments)},Q=e._duckdb_web_query_fetch_results=function(){return(Q=e._duckdb_web_query_fetch_results=e.asm.hg).apply(null,arguments)},W=e._duckdb_web_get_tablenames=function(){return(W=e._duckdb_web_get_tablenames=e.asm.ig).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.jg).apply(null,arguments)},J=e._duckdb_web_insert_csv_from_path=function(){return(J=e._duckdb_web_insert_csv_from_path=e.asm.kg).apply(null,arguments)},je=e._duckdb_web_insert_json_from_path=function(){return(je=e._duckdb_web_insert_json_from_path=e.asm.lg).apply(null,arguments)},we=e._htonl=function(){return(we=e._htonl=e.asm.mg).apply(null,arguments)},Ve=e._htons=function(){return(Ve=e._htons=e.asm.ng).apply(null,arguments)},Se=e._ntohs=function(){return(Se=e._ntohs=e.asm.og).apply(null,arguments)},rt=e._malloc=function(){return(rt=e._malloc=e.asm.pg).apply(null,arguments)},xe=e._free=function(){return(xe=e._free=e.asm.qg).apply(null,arguments)},b=e._setThrew=function(){return(b=e._setThrew=e.asm.rg).apply(null,arguments)},de=e.setTempRet0=function(){return(de=e.setTempRet0=e.asm.sg).apply(null,arguments)},j=e.stackSave=function(){return(j=e.stackSave=e.asm.tg).apply(null,arguments)},y=e.stackRestore=function(){return(y=e.stackRestore=e.asm.ug).apply(null,arguments)},te=e.stackAlloc=function(){return(te=e.stackAlloc=e.asm.vg).apply(null,arguments)},Ce=e.___cxa_can_catch=function(){return(Ce=e.___cxa_can_catch=e.asm.wg).apply(null,arguments)},Re=e.___cxa_is_pointer_type=function(){return(Re=e.___cxa_is_pointer_type=e.asm.xg).apply(null,arguments)},Qe=e.dynCall_jiiii=function(){return(Qe=e.dynCall_jiiii=e.asm.yg).apply(null,arguments)},It=e.dynCall_iiiiij=function(){return(It=e.dynCall_iiiiij=e.asm.zg).apply(null,arguments)},Yt=e.dynCall_iiiiijj=function(){return(Yt=e.dynCall_iiiiijj=e.asm.Ag).apply(null,arguments)},lr=e.dynCall_viijii=function(){return(lr=e.dynCall_viijii=e.asm.Bg).apply(null,arguments)},cr=e.dynCall_viiiij=function(){return(cr=e.dynCall_viiiij=e.asm.Cg).apply(null,arguments)},_r=e.dynCall_ji=function(){return(_r=e.dynCall_ji=e.asm.Dg).apply(null,arguments)},Li=e.dynCall_viji=function(){return(Li=e.dynCall_viji=e.asm.Eg).apply(null,arguments)},Uu=e.dynCall_iiij=function(){return(Uu=e.dynCall_iiij=e.asm.Fg).apply(null,arguments)},Hu=e.dynCall_viiji=function(){return(Hu=e.dynCall_viiji=e.asm.Gg).apply(null,arguments)},qu=e.dynCall_iiiji=function(){return(qu=e.dynCall_iiiji=e.asm.Hg).apply(null,arguments)},Wu=e.dynCall_viiiji=function(){return(Wu=e.dynCall_viiiji=e.asm.Ig).apply(null,arguments)},$u=e.dynCall_viijji=function(){return($u=e.dynCall_viijji=e.asm.Jg).apply(null,arguments)},Ku=e.dynCall_viiijj=function(){return(Ku=e.dynCall_viiijj=e.asm.Kg).apply(null,arguments)},Gu=e.dynCall_iiiij=function(){return(Gu=e.dynCall_iiiij=e.asm.Lg).apply(null,arguments)},Yu=e.dynCall_iij=function(){return(Yu=e.dynCall_iij=e.asm.Mg).apply(null,arguments)},Vu=e.dynCall_vij=function(){return(Vu=e.dynCall_vij=e.asm.Ng).apply(null,arguments)},Qu=e.dynCall_viij=function(){return(Qu=e.dynCall_viij=e.asm.Og).apply(null,arguments)},zu=e.dynCall_iiji=function(){return(zu=e.dynCall_iiji=e.asm.Pg).apply(null,arguments)},Xu=e.dynCall_viiiiij=function(){return(Xu=e.dynCall_viiiiij=e.asm.Qg).apply(null,arguments)},Ju=e.dynCall_viijiiiii=function(){return(Ju=e.dynCall_viijiiiii=e.asm.Rg).apply(null,arguments)},Zu=e.dynCall_viiiiji=function(){return(Zu=e.dynCall_viiiiji=e.asm.Sg).apply(null,arguments)},eo=e.dynCall_iijiji=function(){return(eo=e.dynCall_iijiji=e.asm.Tg).apply(null,arguments)},to=e.dynCall_viiiijiiiiiiii=function(){return(to=e.dynCall_viiiijiiiiiiii=e.asm.Ug).apply(null,arguments)},io=e.dynCall_viiij=function(){return(io=e.dynCall_viiij=e.asm.Vg).apply(null,arguments)},ro=e.dynCall_viiiiijiiii=function(){return(ro=e.dynCall_viiiiijiiii=e.asm.Wg).apply(null,arguments)},no=e.dynCall_vjiiiji=function(){return(no=e.dynCall_vjiiiji=e.asm.Xg).apply(null,arguments)},ao=e.dynCall_iiiijj=function(){return(ao=e.dynCall_iiiijj=e.asm.Yg).apply(null,arguments)},so=e.dynCall_iiijj=function(){return(so=e.dynCall_iiijj=e.asm.Zg).apply(null,arguments)},uo=e.dynCall_viiiijj=function(){return(uo=e.dynCall_viiiijj=e.asm._g).apply(null,arguments)},oo=e.dynCall_jii=function(){return(oo=e.dynCall_jii=e.asm.$g).apply(null,arguments)},lo=e.dynCall_iiijii=function(){return(lo=e.dynCall_iiijii=e.asm.ah).apply(null,arguments)},co=e.dynCall_jiijii=function(){return(co=e.dynCall_jiijii=e.asm.bh).apply(null,arguments)},_o=e.dynCall_viiijii=function(){return(_o=e.dynCall_viiijii=e.asm.ch).apply(null,arguments)},fo=e.dynCall_fiijii=function(){return(fo=e.dynCall_fiijii=e.asm.dh).apply(null,arguments)},po=e.dynCall_diijii=function(){return(po=e.dynCall_diijii=e.asm.eh).apply(null,arguments)},ho=e.dynCall_iiiiijii=function(){return(ho=e.dynCall_iiiiijii=e.asm.fh).apply(null,arguments)},yo=e.dynCall_iiiiiiijii=function(){return(yo=e.dynCall_iiiiiiijii=e.asm.gh).apply(null,arguments)},mo=e.dynCall_vijii=function(){return(mo=e.dynCall_vijii=e.asm.hh).apply(null,arguments)},vo=e.dynCall_iiiiji=function(){return(vo=e.dynCall_iiiiji=e.asm.ih).apply(null,arguments)},go=e.dynCall_iijj=function(){return(go=e.dynCall_iijj=e.asm.jh).apply(null,arguments)},bo=e.dynCall_iiiiiji=function(){return(bo=e.dynCall_iiiiiji=e.asm.kh).apply(null,arguments)},jo=e.dynCall_viijjj=function(){return(jo=e.dynCall_viijjj=e.asm.lh).apply(null,arguments)},wo=e.dynCall_jj=function(){return(wo=e.dynCall_jj=e.asm.mh).apply(null,arguments)},Co=e.dynCall_viijj=function(){return(Co=e.dynCall_viijj=e.asm.nh).apply(null,arguments)},ko=e.dynCall_jiiiii=function(){return(ko=e.dynCall_jiiiii=e.asm.oh).apply(null,arguments)},So=e.dynCall_iiijjj=function(){return(So=e.dynCall_iiijjj=e.asm.ph).apply(null,arguments)},Eo=e.dynCall_j=function(){return(Eo=e.dynCall_j=e.asm.qh).apply(null,arguments)},Ro=e.dynCall_jiij=function(){return(Ro=e.dynCall_jiij=e.asm.rh).apply(null,arguments)},Ao=e.dynCall_jiiij=function(){return(Ao=e.dynCall_jiiij=e.asm.sh).apply(null,arguments)},To=e.dynCall_viijiiji=function(){return(To=e.dynCall_viijiiji=e.asm.th).apply(null,arguments)},Do=e.dynCall_iiiiiijjiijjj=function(){return(Do=e.dynCall_iiiiiijjiijjj=e.asm.uh).apply(null,arguments)},Po=e.dynCall_iiijjijjii=function(){return(Po=e.dynCall_iiijjijjii=e.asm.vh).apply(null,arguments)},Io=e.dynCall_iiiijjii=function(){return(Io=e.dynCall_iiiijjii=e.asm.wh).apply(null,arguments)},Mo=e.dynCall_iiiijji=function(){return(Mo=e.dynCall_iiiijji=e.asm.xh).apply(null,arguments)},Fo=e.dynCall_iiijjii=function(){return(Fo=e.dynCall_iiijjii=e.asm.yh).apply(null,arguments)},Oo=e.dynCall_vjjijij=function(){return(Oo=e.dynCall_vjjijij=e.asm.zh).apply(null,arguments)},xo=e.dynCall_vijjji=function(){return(xo=e.dynCall_vijjji=e.asm.Ah).apply(null,arguments)},Lo=e.dynCall_vjjii=function(){return(Lo=e.dynCall_vjjii=e.asm.Bh).apply(null,arguments)},Bo=e.dynCall_viiiiiji=function(){return(Bo=e.dynCall_viiiiiji=e.asm.Ch).apply(null,arguments)},No=e.dynCall_jiiiji=function(){return(No=e.dynCall_jiiiji=e.asm.Dh).apply(null,arguments)},Uo=e.dynCall_viiijjii=function(){return(Uo=e.dynCall_viiijjii=e.asm.Eh).apply(null,arguments)},Ho=e.dynCall_vijjj=function(){return(Ho=e.dynCall_vijjj=e.asm.Fh).apply(null,arguments)},qo=e.dynCall_jijij=function(){return(qo=e.dynCall_jijij=e.asm.Gh).apply(null,arguments)},Wo=e.dynCall_iiiijiii=function(){return(Wo=e.dynCall_iiiijiii=e.asm.Hh).apply(null,arguments)},$o=e.dynCall_jijjij=function(){return($o=e.dynCall_jijjij=e.asm.Ih).apply(null,arguments)},Ko=e.dynCall_vijj=function(){return(Ko=e.dynCall_vijj=e.asm.Jh).apply(null,arguments)},Go=e.dynCall_jijiii=function(){return(Go=e.dynCall_jijiii=e.asm.Kh).apply(null,arguments)},Yo=e.dynCall_viijiiij=function(){return(Yo=e.dynCall_viijiiij=e.asm.Lh).apply(null,arguments)},Vo=e.dynCall_vijiiiji=function(){return(Vo=e.dynCall_vijiiiji=e.asm.Mh).apply(null,arguments)},Qo=e.dynCall_jiiji=function(){return(Qo=e.dynCall_jiiji=e.asm.Nh).apply(null,arguments)},zo=e.dynCall_viiijij=function(){return(zo=e.dynCall_viiijij=e.asm.Oh).apply(null,arguments)},Xo=e.dynCall_viijiij=function(){return(Xo=e.dynCall_viijiij=e.asm.Ph).apply(null,arguments)},Jo=e.dynCall_viiiiijj=function(){return(Jo=e.dynCall_viiiiijj=e.asm.Qh).apply(null,arguments)},Zo=e.dynCall_viiijji=function(){return(Zo=e.dynCall_viiijji=e.asm.Rh).apply(null,arguments)},el=e.dynCall_vijij=function(){return(el=e.dynCall_vijij=e.asm.Sh).apply(null,arguments)},tl=e.dynCall_ijji=function(){return(tl=e.dynCall_ijji=e.asm.Th).apply(null,arguments)},il=e.dynCall_vijiji=function(){return(il=e.dynCall_vijiji=e.asm.Uh).apply(null,arguments)},rl=e.dynCall_iiiijii=function(){return(rl=e.dynCall_iiiijii=e.asm.Vh).apply(null,arguments)},nl=e.dynCall_viijij=function(){return(nl=e.dynCall_viijij=e.asm.Wh).apply(null,arguments)},al=e.dynCall_iiiiiiji=function(){return(al=e.dynCall_iiiiiiji=e.asm.Xh).apply(null,arguments)},sl=e.dynCall_viiiiiiji=function(){return(sl=e.dynCall_viiiiiiji=e.asm.Yh).apply(null,arguments)},ul=e.dynCall_viiijiii=function(){return(ul=e.dynCall_viiijiii=e.asm.Zh).apply(null,arguments)},ol=e.dynCall_viiiijiii=function(){return(ol=e.dynCall_viiiijiii=e.asm._h).apply(null,arguments)},ll=e.dynCall_viiiijii=function(){return(ll=e.dynCall_viiiijii=e.asm.$h).apply(null,arguments)},cl=e.dynCall_viiiiijiii=function(){return(cl=e.dynCall_viiiiijiii=e.asm.ai).apply(null,arguments)},_l=e.dynCall_vijjij=function(){return(_l=e.dynCall_vijjij=e.asm.bi).apply(null,arguments)},fl=e.dynCall_vijji=function(){return(fl=e.dynCall_vijji=e.asm.ci).apply(null,arguments)},dl=e.dynCall_iiiijjijj=function(){return(dl=e.dynCall_iiiijjijj=e.asm.di).apply(null,arguments)},pl=e.dynCall_jiiiij=function(){return(pl=e.dynCall_jiiiij=e.asm.ei).apply(null,arguments)},hl=e.dynCall_jijj=function(){return(hl=e.dynCall_jijj=e.asm.fi).apply(null,arguments)},yl=e.dynCall_jij=function(){return(yl=e.dynCall_jij=e.asm.gi).apply(null,arguments)},ml=e.dynCall_ij=function(){return(ml=e.dynCall_ij=e.asm.hi).apply(null,arguments)},vl=e.dynCall_viijjji=function(){return(vl=e.dynCall_viijjji=e.asm.ii).apply(null,arguments)},gl=e.dynCall_viiijijiji=function(){return(gl=e.dynCall_viiijijiji=e.asm.ji).apply(null,arguments)},bl=e.dynCall_jijjjji=function(){return(bl=e.dynCall_jijjjji=e.asm.ki).apply(null,arguments)},jl=e.dynCall_iiijiij=function(){return(jl=e.dynCall_iiijiij=e.asm.li).apply(null,arguments)},wl=e.dynCall_iiijij=function(){return(wl=e.dynCall_iiijij=e.asm.mi).apply(null,arguments)},Cl=e.dynCall_iiiijjjji=function(){return(Cl=e.dynCall_iiiijjjji=e.asm.ni).apply(null,arguments)},kl=e.dynCall_iiiiijij=function(){return(kl=e.dynCall_iiiiijij=e.asm.oi).apply(null,arguments)},Sl=e.dynCall_iiiiijjjiii=function(){return(Sl=e.dynCall_iiiiijjjiii=e.asm.pi).apply(null,arguments)},El=e.dynCall_iiiiiiijj=function(){return(El=e.dynCall_iiiiiiijj=e.asm.qi).apply(null,arguments)},Rl=e.dynCall_jiii=function(){return(Rl=e.dynCall_jiii=e.asm.ri).apply(null,arguments)},Al=e.dynCall_iijji=function(){return(Al=e.dynCall_iijji=e.asm.si).apply(null,arguments)},Tl=e.dynCall_iijii=function(){return(Tl=e.dynCall_iijii=e.asm.ti).apply(null,arguments)},Dl=e.dynCall_iijjii=function(){return(Dl=e.dynCall_iijjii=e.asm.ui).apply(null,arguments)},Pl=e.dynCall_iijiiii=function(){return(Pl=e.dynCall_iijiiii=e.asm.vi).apply(null,arguments)},Il=e.dynCall_vijijj=function(){return(Il=e.dynCall_vijijj=e.asm.wi).apply(null,arguments)},Ml=e.dynCall_viiijjj=function(){return(Ml=e.dynCall_viiijjj=e.asm.xi).apply(null,arguments)},Fl=e.dynCall_iji=function(){return(Fl=e.dynCall_iji=e.asm.yi).apply(null,arguments)},Ol=e.dynCall_viiiiiij=function(){return(Ol=e.dynCall_viiiiiij=e.asm.zi).apply(null,arguments)},xl=e.dynCall_iiijiii=function(){return(xl=e.dynCall_iiijiii=e.asm.Ai).apply(null,arguments)},Ll=e.dynCall_viijiiii=function(){return(Ll=e.dynCall_viijiiii=e.asm.Bi).apply(null,arguments)},Bl=e.dynCall_vijiii=function(){return(Bl=e.dynCall_vijiii=e.asm.Ci).apply(null,arguments)},Nl=e.dynCall_iijjiii=function(){return(Nl=e.dynCall_iijjiii=e.asm.Di).apply(null,arguments)},Ul=e.dynCall_viijiii=function(){return(Ul=e.dynCall_viijiii=e.asm.Ei).apply(null,arguments)},Hl=e.dynCall_vijiiiiii=function(){return(Hl=e.dynCall_vijiiiiii=e.asm.Fi).apply(null,arguments)},ql=e.dynCall_vijiiii=function(){return(ql=e.dynCall_vijiiii=e.asm.Gi).apply(null,arguments)},Wl=e.dynCall_vijiiiii=function(){return(Wl=e.dynCall_vijiiiii=e.asm.Hi).apply(null,arguments)},$l=e.dynCall_viiiiijii=function(){return($l=e.dynCall_viiiiijii=e.asm.Ii).apply(null,arguments)},Kl=e.dynCall_jjj=function(){return(Kl=e.dynCall_jjj=e.asm.Ji).apply(null,arguments)},Gl=e.dynCall_jjiji=function(){return(Gl=e.dynCall_jjiji=e.asm.Ki).apply(null,arguments)},Yl=e.dynCall_vjii=function(){return(Yl=e.dynCall_vjii=e.asm.Li).apply(null,arguments)},Vl=e.dynCall_iiijjjj=function(){return(Vl=e.dynCall_iiijjjj=e.asm.Mi).apply(null,arguments)},Ql=e.dynCall_jjjjjjd=function(){return(Ql=e.dynCall_jjjjjjd=e.asm.Ni).apply(null,arguments)},zl=e.dynCall_ijii=function(){return(zl=e.dynCall_ijii=e.asm.Oi).apply(null,arguments)},Xl=e.dynCall_vjiiii=function(){return(Xl=e.dynCall_vjiiii=e.asm.Pi).apply(null,arguments)},Jl=e.dynCall_viiijjjj=function(){return(Jl=e.dynCall_viiijjjj=e.asm.Qi).apply(null,arguments)},Zl=e.dynCall_jiiijii=function(){return(Zl=e.dynCall_jiiijii=e.asm.Ri).apply(null,arguments)},ec=e.dynCall_jiijiii=function(){return(ec=e.dynCall_jiijiii=e.asm.Si).apply(null,arguments)},tc=e.dynCall_viiijjij=function(){return(tc=e.dynCall_viiijjij=e.asm.Ti).apply(null,arguments)},ic=e.dynCall_vijijjiij=function(){return(ic=e.dynCall_vijijjiij=e.asm.Ui).apply(null,arguments)},rc=e.dynCall_viiijjiij=function(){return(rc=e.dynCall_viiijjiij=e.asm.Vi).apply(null,arguments)},nc=e.dynCall_viiiiiijiij=function(){return(nc=e.dynCall_viiiiiijiij=e.asm.Wi).apply(null,arguments)},ac=e.dynCall_viiiiiijj=function(){return(ac=e.dynCall_viiiiiijj=e.asm.Xi).apply(null,arguments)},sc=e.dynCall_viijiiiij=function(){return(sc=e.dynCall_viijiiiij=e.asm.Yi).apply(null,arguments)},uc=e.dynCall_viiijiiiijjj=function(){return(uc=e.dynCall_viiijiiiijjj=e.asm.Zi).apply(null,arguments)},oc=e.dynCall_viijijiiiijjj=function(){return(oc=e.dynCall_viijijiiiijjj=e.asm._i).apply(null,arguments)},lc=e.dynCall_viiijiiii=function(){return(lc=e.dynCall_viiijiiii=e.asm.$i).apply(null,arguments)},cc=e.dynCall_viiiijjij=function(){return(cc=e.dynCall_viiiijjij=e.asm.aj).apply(null,arguments)},_c=e.dynCall_jiiiiji=function(){return(_c=e.dynCall_jiiiiji=e.asm.bj).apply(null,arguments)},fc=e.dynCall_viiiijijji=function(){return(fc=e.dynCall_viiiijijji=e.asm.cj).apply(null,arguments)},dc=e.dynCall_viiijiiijii=function(){return(dc=e.dynCall_viiijiiijii=e.asm.dj).apply(null,arguments)},pc=e.dynCall_viijijiiii=function(){return(pc=e.dynCall_viijijiiii=e.asm.ej).apply(null,arguments)},hc=e.dynCall_jd=function(){return(hc=e.dynCall_jd=e.asm.fj).apply(null,arguments)},yc=e.dynCall_jf=function(){return(yc=e.dynCall_jf=e.asm.gj).apply(null,arguments)},mc=e.dynCall_iijjj=function(){return(mc=e.dynCall_iijjj=e.asm.hj).apply(null,arguments)},vc=e.dynCall_iiijji=function(){return(vc=e.dynCall_iiijji=e.asm.ij).apply(null,arguments)},gc=e.dynCall_vijijiiiijjj=function(){return(gc=e.dynCall_vijijiiiijjj=e.asm.jj).apply(null,arguments)},bc=e.dynCall_viijiiiiii=function(){return(bc=e.dynCall_viijiiiiii=e.asm.kj).apply(null,arguments)},jc=e.dynCall_jjjji=function(){return(jc=e.dynCall_jjjji=e.asm.lj).apply(null,arguments)},wc=e.dynCall_jjjii=function(){return(wc=e.dynCall_jjjii=e.asm.mj).apply(null,arguments)},Cc=e.dynCall_jji=function(){return(Cc=e.dynCall_jji=e.asm.nj).apply(null,arguments)},kc=e.dynCall_viiiijiiiii=function(){return(kc=e.dynCall_viiiijiiiii=e.asm.oj).apply(null,arguments)},Sc=e.dynCall_viiiijiiii=function(){return(Sc=e.dynCall_viiiijiiii=e.asm.pj).apply(null,arguments)},Ec=e.dynCall_iijjijj=function(){return(Ec=e.dynCall_iijjijj=e.asm.qj).apply(null,arguments)},Rc=e.dynCall_jijjii=function(){return(Rc=e.dynCall_jijjii=e.asm.rj).apply(null,arguments)},Ac=e.dynCall_viijjii=function(){return(Ac=e.dynCall_viijjii=e.asm.sj).apply(null,arguments)},Tc=e.dynCall_iiiiiij=function(){return(Tc=e.dynCall_iiiiiij=e.asm.tj).apply(null,arguments)},Dc=e.dynCall_iiiiiiij=function(){return(Dc=e.dynCall_iiiiiiij=e.asm.uj).apply(null,arguments)},Pc=e.dynCall_iiiiiiiiiiji=function(){return(Pc=e.dynCall_iiiiiiiiiiji=e.asm.vj).apply(null,arguments)},Ic=e.dynCall_iiiiiiiij=function(){return(Ic=e.dynCall_iiiiiiiij=e.asm.wj).apply(null,arguments)},Mc=e.dynCall_jiiijjj=function(){return(Mc=e.dynCall_jiiijjj=e.asm.xj).apply(null,arguments)},Fc=e.dynCall_viiijijj=function(){return(Fc=e.dynCall_viiijijj=e.asm.yj).apply(null,arguments)},Oc=e.dynCall_jiiiiiii=function(){return(Oc=e.dynCall_jiiiiiii=e.asm.zj).apply(null,arguments)},xc=e.dynCall_jiijj=function(){return(xc=e.dynCall_jiijj=e.asm.Aj).apply(null,arguments)},Lc=e.dynCall_jiiijj=function(){return(Lc=e.dynCall_jiiijj=e.asm.Bj).apply(null,arguments)},Bc=e.dynCall_iiidj=function(){return(Bc=e.dynCall_iiidj=e.asm.Cj).apply(null,arguments)},Nc=e.dynCall_iiiiiiiiiij=function(){return(Nc=e.dynCall_iiiiiiiiiij=e.asm.Dj).apply(null,arguments)},Uc=e.dynCall_iiiiiiiiijiiiiiii=function(){return(Uc=e.dynCall_iiiiiiiiijiiiiiii=e.asm.Ej).apply(null,arguments)},Hc=e.dynCall_iiijjiiji=function(){return(Hc=e.dynCall_iiijjiiji=e.asm.Fj).apply(null,arguments)},qc=e.dynCall_iiijjiij=function(){return(qc=e.dynCall_iiijjiij=e.asm.Gj).apply(null,arguments)},Wc=e.dynCall_iiidjiij=function(){return(Wc=e.dynCall_iiidjiij=e.asm.Hj).apply(null,arguments)},$c=e.dynCall_iiiiiiiji=function(){return($c=e.dynCall_iiiiiiiji=e.asm.Ij).apply(null,arguments)},Kc=e.dynCall_iiiidjj=function(){return(Kc=e.dynCall_iiiidjj=e.asm.Jj).apply(null,arguments)},Gc=e.dynCall_iiiijjj=function(){return(Gc=e.dynCall_iiiijjj=e.asm.Kj).apply(null,arguments)},Yc=e.dynCall_iiiiiiiiji=function(){return(Yc=e.dynCall_iiiiiiiiji=e.asm.Lj).apply(null,arguments)},Vc=e.dynCall_iiiiiiiiiiiij=function(){return(Vc=e.dynCall_iiiiiiiiiiiij=e.asm.Mj).apply(null,arguments)},Qc=e.dynCall_jiiiiii=function(){return(Qc=e.dynCall_jiiiiii=e.asm.Nj).apply(null,arguments)},zc=e.dynCall_iiiijjiii=function(){return(zc=e.dynCall_iiiijjiii=e.asm.Oj).apply(null,arguments)},Xc=e.dynCall_viiiijji=function(){return(Xc=e.dynCall_viiiijji=e.asm.Pj).apply(null,arguments)},Jc=e.dynCall_jiiiiiijii=function(){return(Jc=e.dynCall_jiiiiiijii=e.asm.Qj).apply(null,arguments)},Zc=e.dynCall_jiijjjii=function(){return(Zc=e.dynCall_jiijjjii=e.asm.Rj).apply(null,arguments)},e_=e.dynCall_jiiiijii=function(){return(e_=e.dynCall_jiiiijii=e.asm.Sj).apply(null,arguments)},t_=e.dynCall_jiiiiijiiii=function(){return(t_=e.dynCall_jiiiiijiiii=e.asm.Tj).apply(null,arguments)},i_=e.dynCall_jiiijiii=function(){return(i_=e.dynCall_jiiijiii=e.asm.Uj).apply(null,arguments)},r_=e.dynCall_vj=function(){return(r_=e.dynCall_vj=e.asm.Vj).apply(null,arguments)},n_=e.dynCall_viiiiijjii=function(){return(n_=e.dynCall_viiiiijjii=e.asm.Wj).apply(null,arguments)},a_=e.dynCall_viiiiiijii=function(){return(a_=e.dynCall_viiiiiijii=e.asm.Xj).apply(null,arguments)},s_=e.dynCall_viiiiiiijjjji=function(){return(s_=e.dynCall_viiiiiiijjjji=e.asm.Yj).apply(null,arguments)},u_=e.dynCall_vjiii=function(){return(u_=e.dynCall_vjiii=e.asm.Zj).apply(null,arguments)},o_=e.dynCall_ijjiii=function(){return(o_=e.dynCall_ijjiii=e.asm._j).apply(null,arguments)},l_=e.dynCall_iiiiijiii=function(){return(l_=e.dynCall_iiiiijiii=e.asm.$j).apply(null,arguments)},c_=e.dynCall_iiijiiji=function(){return(c_=e.dynCall_iiijiiji=e.asm.ak).apply(null,arguments)},__=e.dynCall_iijiii=function(){return(__=e.dynCall_iijiii=e.asm.bk).apply(null,arguments)},f_=e.dynCall_vijijjji=function(){return(f_=e.dynCall_vijijjji=e.asm.ck).apply(null,arguments)},d_=e.dynCall_viijiijj=function(){return(d_=e.dynCall_viijiijj=e.asm.dk).apply(null,arguments)},p_=e.dynCall_viijijj=function(){return(p_=e.dynCall_viijijj=e.asm.ek).apply(null,arguments)},h_=e.dynCall_viiiiijjji=function(){return(h_=e.dynCall_viiiiijjji=e.asm.fk).apply(null,arguments)},y_=e.dynCall_iiijiijj=function(){return(y_=e.dynCall_iiijiijj=e.asm.gk).apply(null,arguments)},m_=e.dynCall_viiijijjj=function(){return(m_=e.dynCall_viiijijjj=e.asm.hk).apply(null,arguments)},v_=e.dynCall_iijiijj=function(){return(v_=e.dynCall_iijiijj=e.asm.ik).apply(null,arguments)},g_=e.dynCall_viiijjjji=function(){return(g_=e.dynCall_viiijjjji=e.asm.jk).apply(null,arguments)},b_=e.dynCall_vijjiii=function(){return(b_=e.dynCall_vijjiii=e.asm.kk).apply(null,arguments)},j_=e.dynCall_vijijjiiiii=function(){return(j_=e.dynCall_vijijjiiiii=e.asm.lk).apply(null,arguments)},w_=e.dynCall_vijjiiiii=function(){return(w_=e.dynCall_vijjiiiii=e.asm.mk).apply(null,arguments)},C_=e.dynCall_iiijjji=function(){return(C_=e.dynCall_iiijjji=e.asm.nk).apply(null,arguments)},k_=e.dynCall_iiiiiijji=function(){return(k_=e.dynCall_iiiiiijji=e.asm.ok).apply(null,arguments)},S_=e.dynCall_iijjjii=function(){return(S_=e.dynCall_iijjjii=e.asm.pk).apply(null,arguments)},E_=e.dynCall_iiiiijjji=function(){return(E_=e.dynCall_iiiiijjji=e.asm.qk).apply(null,arguments)},R_=e.dynCall_iiiiijjj=function(){return(R_=e.dynCall_iiiiijjj=e.asm.rk).apply(null,arguments)},A_=e.dynCall_viiijiji=function(){return(A_=e.dynCall_viiijiji=e.asm.sk).apply(null,arguments)},T_=e.dynCall_jijiiii=function(){return(T_=e.dynCall_jijiiii=e.asm.tk).apply(null,arguments)},D_=e.dynCall_viijiji=function(){return(D_=e.dynCall_viijiji=e.asm.uk).apply(null,arguments)};function Op(i){var n=j();try{X(i)()}catch(a){if(y(n),a!==a+0)throw a;b(1,0)}}function xp(i,n,a){var s=j();try{X(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function Lp(i,n){var a=j();try{return X(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Bp(i,n,a){var s=j();try{return X(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function Np(i,n){var a=j();try{X(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Up(i,n,a,s){var u=j();try{return X(i)(n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function Hp(i,n,a,s,u,o){var c=j();try{return X(i)(n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function qp(i,n,a,s,u){var o=j();try{X(i)(n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function Wp(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function $p(i,n,a,s){var u=j();try{return X(i)(n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function Kp(i,n,a,s){var u=j();try{return X(i)(n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function Gp(i,n,a,s){var u=j();try{X(i)(n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function Yp(i,n,a,s){var u=j();try{X(i)(n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function Vp(i,n,a,s,u,o,c){var _=j();try{return X(i)(n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Qp(i,n,a,s,u,o,c){var _=j();try{X(i)(n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function zp(i,n,a,s,u,o){var c=j();try{X(i)(n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Xp(i,n,a,s,u,o,c,_){var f=j();try{return X(i)(n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Jp(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return X(i)(n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function Zp(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{return X(i)(n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function eh(i){var n=j();try{return X(i)()}catch(a){if(y(n),a!==a+0)throw a;b(1,0)}}function th(i,n,a,s,u,o,c,_){var f=j();try{X(i)(n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function ih(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{return X(i)(n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function rh(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{X(i)(n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function nh(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie){var ye=j();try{X(i)(n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie)}catch(ke){if(y(ye),ke!==ke+0)throw ke;b(1,0)}}function ah(i,n,a,s,u,o){var c=j();try{return X(i)(n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function sh(i,n,a,s,u,o,c,_,f){var p=j();try{return X(i)(n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function uh(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function oh(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function lh(i,n,a,s,u,o){var c=j();try{X(i)(n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function ch(i,n,a){var s=j();try{X(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function _h(i,n,a){var s=j();try{X(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function fh(i,n){var a=j();try{return X(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function dh(i,n){var a=j();try{return X(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function ph(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye){var ke=j();try{return X(i)(n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye)}catch(x){if(y(ke),x!==x+0)throw x;b(1,0)}}function hh(i,n,a,s,u,o,c,_,f){var p=j();try{X(i)(n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function yh(i,n,a,s,u,o,c,_,f,p){var h=j();try{X(i)(n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function mh(i,n,a,s,u,o,c,_,f,p){var h=j();try{return X(i)(n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function vh(i,n,a){var s=j();try{return X(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function gh(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{X(i)(n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function bh(i,n){var a=j();try{return X(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function jh(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye,ke){var x=j();try{return X(i)(n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye,ke)}catch(z){if(y(x),z!==z+0)throw z;b(1,0)}}function wh(i,n,a,s){var u=j();try{return X(i)(n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function Ch(i,n,a,s,u,o,c){var _=j();try{X(i)(n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function kh(i,n,a){var s=j();try{return X(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function Sh(i,n,a,s,u,o,c){var _=j();try{return X(i)(n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Eh(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function Rh(i,n){var a=j();try{return X(i)(n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Ah(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function Th(i,n,a,s,u){var o=j();try{return X(i)(n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function Dh(i,n,a,s,u,o,c,_){var f=j();try{return X(i)(n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Ph(i,n,a,s){var u=j();try{X(i)(n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function Ih(i,n,a,s){var u=j();try{X(i)(n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function Mh(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie){var ye=j();try{return X(i)(n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie)}catch(ke){if(y(ye),ke!==ke+0)throw ke;b(1,0)}}function Fh(i,n,a){var s=j();try{return X(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function Oh(i,n,a){var s=j();try{return X(i)(n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function xh(i,n,a,s,u,o,c,_,f,p){var h=j();try{X(i)(n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Lh(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{X(i)(n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function Bh(i,n,a,s,u){var o=j();try{return Qe(i,n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function Nh(i,n,a,s,u,o,c){var _=j();try{Co(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Uh(i,n,a,s,u){var o=j();try{Qu(i,n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function Hh(i,n,a,s,u,o,c){var _=j();try{return so(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function qh(i,n,a,s,u){var o=j();try{return Uu(i,n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function Wh(i,n,a,s,u,o,c,_){var f=j();try{Ku(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function $h(i,n){var a=j();try{return _r(i,n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Kh(i,n,a){var s=j();try{return oo(i,n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function Gh(i,n,a,s,u,o,c){var _=j();try{lr(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Yh(i,n,a,s,u,o,c){var _=j();try{return It(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Vh(i,n,a,s,u,o,c,_,f){var p=j();try{return Yt(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Qh(i,n,a,s){var u=j();try{Vu(i,n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function zh(i,n,a,s,u,o,c,_,f){var p=j();try{uo(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Xh(i,n,a,s,u,o,c,_,f){var p=j();try{Ol(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Jh(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{n_(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function Zh(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{a_(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function ey(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye){var ke=j();try{s_(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye)}catch(x){if(y(ke),x!==x+0)throw x;b(1,0)}}function ty(i,n,a,s,u,o,c){var _=j();try{cr(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function iy(i,n,a,s,u){var o=j();try{Li(i,n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function ry(i,n,a,s){var u=j();try{return Yu(i,n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function ny(i,n,a,s,u,o){var c=j();try{io(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function ay(i,n,a,s,u,o,c){var _=j();try{return Al(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function sy(i,n,a,s,u){var o=j();try{return zu(i,n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function uy(i,n,a,s,u,o){var c=j();try{Hu(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function oy(i,n,a,s,u,o,c,_){var f=j();try{$u(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function ly(i,n,a,s,u,o){var c=j();try{return qu(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function cy(i,n,a,s,u,o,c){var _=j();try{Wu(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function _y(i,n,a,s,u,o){var c=j();try{return Tl(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function fy(i,n,a,s,u,o,c,_){var f=j();try{_o(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function dy(i,n,a,s,u,o,c,_,f){var p=j();try{return ho(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function py(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return yo(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function hy(i,n,a,s,u,o,c){var _=j();try{return lo(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function yy(i,n,a,s,u,o,c,_){var f=j();try{return o_(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function my(i,n,a,s,u,o,c,_){var f=j();try{return ao(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function vy(i,n,a,s,u,o,c,_,f){var p=j();try{no(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function gy(i,n,a,s,u,o,c,_){var f=j();try{Zu(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function by(i,n,a,s,u,o,c,_){var f=j();try{return eo(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function jy(i,n,a,s,u,o){var c=j();try{return Gu(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function wy(i,n,a,s,u,o,c,_){var f=j();try{Xu(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Cy(i,n,a,s,u,o,c,_,f,p){var h=j();try{Ju(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function ky(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{ro(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function Sy(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N){var ie=j();try{to(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N)}catch(ye){if(y(ie),ye!==ye+0)throw ye;b(1,0)}}function Ey(i,n,a,s,u,o,c){var _=j();try{return co(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Ry(i,n,a,s,u,o,c){var _=j();try{return fo(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Ay(i,n,a,s,u,o,c){var _=j();try{return po(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Ty(i,n,a,s,u,o){var c=j();try{mo(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Dy(i,n,a,s,u,o,c,_){var f=j();try{return Dl(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Py(i,n,a,s,u,o,c){var _=j();try{return vo(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Iy(i,n,a,s,u,o){var c=j();try{return go(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function My(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return El(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function Fy(i,n,a,s){var u=j();try{return yl(i,n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function Oy(i,n,a,s){var u=j();try{return Rl(i,n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function xy(i,n,a,s,u,o,c,_,f){var p=j();try{return Wo(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Ly(i,n,a){var s=j();try{return wo(i,n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function By(i,n,a,s,u,o,c,_,f){var p=j();try{jo(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Ny(i,n,a,s,u,o,c){var _=j();try{return __(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Uy(i,n,a,s,u,o,c,_,f,p){var h=j();try{vl(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Hy(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{gl(i,n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function qy(i,n,a,s,u,o,c,_,f){var p=j();try{zo(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Wy(i,n,a,s,u){var o=j();try{return Ro(i,n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function $y(i,n,a,s,u,o){var c=j();try{return ko(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Ky(i){var n=j();try{return Eo(i)}catch(a){if(y(n),a!==a+0)throw a;b(1,0)}}function Gy(i,n,a,s,u,o,c,_,f){var p=j();try{return So(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Yy(i,n,a){var s=j();try{return ml(i,n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function Vy(i,n,a,s,u,o,c){var _=j();try{Xl(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Qy(i,n,a,s,u,o,c,_){var f=j();try{il(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function zy(i,n,a,s,u,o){var c=j();try{return Ao(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Xy(i,n,a,s,u,o){var c=j();try{Ko(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Jy(i,n,a,s,u,o,c,_,f){var p=j();try{Zo(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Zy(i,n,a,s,u,o,c){var _=j();try{Lo(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function em(i,n,a,s,u,o,c,_,f){var p=j();try{xo(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function tm(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{Oo(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function im(i,n,a,s,u,o){var c=j();try{return Qo(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function rm(i,n,a,s,u,o,c,_,f,p){var h=j();try{To(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function nm(i,n,a,s,u,o,c){var _=j();try{return No(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function am(i,n,a,s,u,o,c,_,f){var p=j();try{Bo(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function sm(i,n,a,s,u,o,c,_,f,p,h,w,k,O){var N=j();try{return Po(i,n,a,s,u,o,c,_,f,p,h,w,k,O)}catch(ie){if(y(N),ie!==ie+0)throw ie;b(1,0)}}function um(i,n,a,s,u,o,c,_,f,p){var h=j();try{return Io(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function om(i,n,a,s,u,o,c,_,f){var p=j();try{return Mo(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function lm(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye,ke){var x=j();try{return Do(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye,ke)}catch(z){if(y(x),z!==z+0)throw z;b(1,0)}}function cm(i,n,a,s,u,o,c,_,f){var p=j();try{return Fo(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function _m(i,n,a,s,u,o,c,_){var f=j();try{nl(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function fm(i,n,a,s,u,o,c,_,f,p){var h=j();try{Uo(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function dm(i,n,a,s,u,o,c,_){var f=j();try{Ho(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function pm(i,n,a,s,u,o,c,_,f,p){var h=j();try{Yo(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function hm(i,n,a,s,u,o,c,_,f,p){var h=j();try{Vo(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function ym(i,n,a,s,u,o,c){var _=j();try{return Go(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function mm(i,n,a,s,u,o,c,_,f){var p=j();try{return $o(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function vm(i,n,a,s,u,o,c,_,f){var p=j();try{Xo(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function gm(i,n,a,s,u,o,c){var _=j();try{return qo(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function bm(i,n,a,s,u,o,c){var _=j();try{el(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function jm(i,n,a,s,u,o){var c=j();try{return tl(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function wm(i,n,a,s,u,o){var c=j();try{return hl(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Cm(i,n,a,s,u,o,c,_){var f=j();try{return rl(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function km(i,n,a,s,u,o,c,_,f){var p=j();try{return al(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Sm(i,n,a,s,u,o,c,_){var f=j();try{return bo(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Em(i,n,a,s,u,o,c,_,f){var p=j();try{ul(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Rm(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{cl(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function Am(i,n,a,s,u,o,c,_,f){var p=j();try{_l(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Tm(i,n,a,s,u,o,c){var _=j();try{fl(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Dm(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{return dl(i,n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function Pm(i,n,a,s,u,o){var c=j();try{u_(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Im(i,n,a,s,u,o,c){var _=j();try{return pl(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Mm(i,n,a,s,u,o,c,_,f,p){var h=j();try{sl(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Fm(i,n,a,s,u,o,c,_,f,p){var h=j();try{ol(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Om(i,n,a,s,u,o,c,_,f){var p=j();try{ll(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function xm(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return bl(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function Lm(i,n,a,s,u,o,c,_,f){var p=j();try{return jl(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Bm(i,n,a,s,u,o,c,_){var f=j();try{return wl(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Nm(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{return Cl(i,n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function Um(i,n,a,s,u,o,c,_,f,p){var h=j();try{return kl(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Hm(i,n,a,s,u,o,c,_,f,p,h,w,k,O){var N=j();try{return Sl(i,n,a,s,u,o,c,_,f,p,h,w,k,O)}catch(ie){if(y(N),ie!==ie+0)throw ie;b(1,0)}}function qm(i,n,a,s,u,o,c,_){var f=j();try{return Pl(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Wm(i,n,a,s,u,o,c){var _=j();try{Bl(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function $m(i,n,a,s,u,o,c,_,f,p){var h=j();try{Hl(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Km(i,n,a,s,u,o,c,_){var f=j();try{ql(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Gm(i,n,a,s,u,o,c,_){var f=j();try{return xl(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Ym(i,n,a,s,u,o,c,_,f){var p=j();try{Ll(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Vm(i,n,a,s,u,o,c,_,f){var p=j();try{return Nl(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Qm(i,n,a,s,u,o,c,_,f){var p=j();try{Il(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function zm(i,n,a,s,u,o,c,_,f,p){var h=j();try{Ml(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Xm(i,n,a,s){var u=j();try{return Fl(i,n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function Jm(i,n,a,s,u,o,c,_){var f=j();try{Ul(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Zm(i,n,a,s,u,o,c,_,f){var p=j();try{Wl(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function ev(i,n,a,s,u,o,c,_,f,p){var h=j();try{$l(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function tv(i,n,a,s,u,o,c){var _=j();try{return Gl(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function iv(i,n,a,s,u){var o=j();try{return zl(i,n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function rv(i,n,a,s,u){var o=j();try{Yl(i,n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function nv(i,n,a,s,u){var o=j();try{return Kl(i,n,a,s,u)}catch(c){if(y(o),c!==c+0)throw c;b(1,0)}}function av(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return Vl(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function sv(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{Jl(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function uv(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{return Ql(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function ov(i,n,a,s,u,o,c,_){var f=j();try{return _c(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function lv(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{tc(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function cv(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{ic(i,n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function _v(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{sc(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function fv(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie){var ye=j();try{uc(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie)}catch(ke){if(y(ye),ke!==ke+0)throw ke;b(1,0)}}function dv(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye,ke){var x=j();try{oc(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye,ke)}catch(z){if(y(x),z!==z+0)throw z;b(1,0)}}function pv(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{rc(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function hv(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{pc(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function yv(i,n,a,s,u,o,c,_){var f=j();try{return Zl(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function mv(i,n,a,s,u,o,c,_){var f=j();try{return ec(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function vv(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{nc(i,n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function gv(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{ac(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function bv(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{fc(i,n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function jv(i,n,a,s,u,o,c,_,f,p){var h=j();try{lc(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function wv(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{cc(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function Cv(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{dc(i,n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function kv(i,n,a,s,u,o,c,_){var f=j();try{return mc(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Sv(i,n,a,s,u,o,c,_){var f=j();try{return vc(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Ev(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye){var ke=j();try{gc(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye)}catch(x){if(y(ke),x!==x+0)throw x;b(1,0)}}function Rv(i,n){var a=j();try{return hc(i,n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Av(i,n){var a=j();try{return yc(i,n)}catch(s){if(y(a),s!==s+0)throw s;b(1,0)}}function Tv(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{bc(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function Dv(i,n,a,s,u,o,c,_){var f=j();try{return jc(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Pv(i,n,a,s,u,o,c){var _=j();try{return wc(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Iv(i,n,a,s){var u=j();try{return Cc(i,n,a,s)}catch(o){if(y(u),o!==o+0)throw o;b(1,0)}}function Mv(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{kc(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function Fv(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{Sc(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function Ov(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return Ec(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function xv(i,n,a,s,u,o,c,_,f,p){var h=j();try{return Ic(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Lv(i,n,a,s,u,o,c,_){var f=j();try{return Tc(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Bv(i,n,a,s,u,o,c,_){var f=j();try{return Rc(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Nv(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{return Pc(i,n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function Uv(i,n,a,s,u,o,c,_,f,p){var h=j();try{return Mc(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Hv(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{Fc(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function qv(i,n,a,s,u,o,c,_,f){var p=j();try{Ac(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Wv(i,n,a,s,u,o,c,_){var f=j();try{return Oc(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function $v(i,n,a,s,u,o,c){var _=j();try{return xc(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function Kv(i,n,a,s,u,o,c,_,f){var p=j();try{return Dc(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Gv(i,n,a,s,u,o,c,_){var f=j();try{return Lc(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Yv(i,n,a,s,u,o){var c=j();try{return Bc(i,n,a,s,u,o)}catch(_){if(y(c),_!==_+0)throw _;b(1,0)}}function Vv(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{return Nc(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function Qv(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye,ke){var x=j();try{return Uc(i,n,a,s,u,o,c,_,f,p,h,w,k,O,N,ie,ye,ke)}catch(z){if(y(x),z!==z+0)throw z;b(1,0)}}function zv(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{return Hc(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function Xv(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return qc(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function Jv(i,n,a,s,u,o,c,_,f,p){var h=j();try{return Wc(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Zv(i,n,a,s,u,o,c,_,f,p){var h=j();try{return $c(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function eg(i,n,a,s,u,o,c,_,f){var p=j();try{return Kc(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function tg(i,n,a,s,u,o,c,_,f,p){var h=j();try{return Gc(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function ig(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return Yc(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function rg(i,n,a,s,u,o,c,_,f,p,h,w,k,O){var N=j();try{return Vc(i,n,a,s,u,o,c,_,f,p,h,w,k,O)}catch(ie){if(y(N),ie!==ie+0)throw ie;b(1,0)}}function ng(i,n,a,s,u,o,c){var _=j();try{return Qc(i,n,a,s,u,o,c)}catch(f){if(y(_),f!==f+0)throw f;b(1,0)}}function ag(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return zc(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function sg(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return Jc(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function ug(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return Zc(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function og(i,n,a,s,u,o,c,_,f,p){var h=j();try{Xc(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function lg(i,n,a,s,u,o,c,_,f){var p=j();try{return e_(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function cg(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{return t_(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function _g(i,n,a,s,u,o,c,_,f){var p=j();try{return i_(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function fg(i,n,a){var s=j();try{r_(i,n,a)}catch(u){if(y(s),u!==u+0)throw u;b(1,0)}}function dg(i,n,a,s,u,o,c,_,f,p){var h=j();try{return c_(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function pg(i,n,a,s,u,o,c,_,f,p){var h=j();try{return l_(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function hg(i,n,a,s,u,o,c,_,f,p){var h=j();try{Jo(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function yg(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{f_(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}function mg(i,n,a,s,u,o,c,_,f,p){var h=j();try{p_(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function vg(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return y_(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function gg(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{d_(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function bg(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{h_(i,n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function jg(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{m_(i,n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function wg(i,n,a,s,u,o,c,_,f,p){var h=j();try{return v_(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Cg(i,n,a,s,u,o,c,_,f,p){var h=j();try{return C_(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function kg(i,n,a,s,u,o,c,_,f,p,h,w,k){var O=j();try{g_(i,n,a,s,u,o,c,_,f,p,h,w,k)}catch(N){if(y(O),N!==N+0)throw N;b(1,0)}}function Sg(i,n,a,s,u,o,c,_,f){var p=j();try{D_(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Eg(i,n,a,s,u,o,c,_,f,p,h,w,k,O){var N=j();try{j_(i,n,a,s,u,o,c,_,f,p,h,w,k,O)}catch(ie){if(y(N),ie!==ie+0)throw ie;b(1,0)}}function Rg(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{w_(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function Ag(i,n,a,s,u,o,c,_,f){var p=j();try{b_(i,n,a,s,u,o,c,_,f)}catch(h){if(y(p),h!==h+0)throw h;b(1,0)}}function Tg(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return k_(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function Dg(i,n,a,s,u,o,c,_,f,p){var h=j();try{A_(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Pg(i,n,a,s,u,o,c,_){var f=j();try{return T_(i,n,a,s,u,o,c,_)}catch(p){if(y(f),p!==p+0)throw p;b(1,0)}}function Ig(i,n,a,s,u,o,c,_,f,p,h){var w=j();try{return R_(i,n,a,s,u,o,c,_,f,p,h)}catch(k){if(y(w),k!==k+0)throw k;b(1,0)}}function Mg(i,n,a,s,u,o,c,_,f,p){var h=j();try{return S_(i,n,a,s,u,o,c,_,f,p)}catch(w){if(y(h),w!==w+0)throw w;b(1,0)}}function Fg(i,n,a,s,u,o,c,_,f,p,h,w){var k=j();try{return E_(i,n,a,s,u,o,c,_,f,p,h,w)}catch(O){if(y(k),O!==O+0)throw O;b(1,0)}}e.stackAlloc=te,e.stackSave=j,e.stackRestore=y,e.ccall=Ia;var fr;dt=function i(){fr||P_(),fr||(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(o){return Da(o)}}function P_(i){if(i=i||g,tt>0||(Dt(),tt>0))return;function n(){fr||(fr=!0,e.calledRun=!0,!pe&&(Jr(),Zr(),l(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),I_&&Og(i),en()))}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 I_=!0;return e.noInitialRun&&(I_=!1),P_(),t.ready}})(),B_=Yg;var pt=Ni(require("apache-arrow")),mr=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),l=pt.RecordBatchReader.from(e);return console.assert(l.isSync()),console.assert(l.isFile()),new pt.Table(l)}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 l=new vr(this._bindings,this._conn,e),d=pt.RecordBatchReader.from(l);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,l){this._bindings.createScalarFunction(this._conn,t,e,l)}insertArrowTable(t,e){let l=pt.tableToIPC(t,"stream");this.insertArrowFromIPCStream(l,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)}},vr=class{constructor(t,e,l){this.bindings=t;this.conn=e;this.header=l;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,l){this.bindings=t,this.connectionId=e,this.statementId=l}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),l=pt.RecordBatchReader.from(e);return console.assert(l.isSync()),console.assert(l.isFile()),new pt.Table(l)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),l=new vr(this.bindings,this.connectionId,e),d=pt.RecordBatchReader.from(l);return console.assert(d.isSync()),console.assert(d.isStream()),d}};var H_=new TextEncoder,N_=new TextDecoder("utf-8");function es(r,t,e){let l=H_.encode(e),d=r._malloc(l.byteLength),m=r.HEAPU8.subarray(d,d+l.byteLength);m.set(l),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,l){let d=r.HEAPU8.subarray(t,t+l*is(e));switch(e){case"UINT8":return new Uint8Array(d.buffer,d.byteOffset,l);case"INT8":return new Int8Array(d.buffer,d.byteOffset,l);case"INT32":return new Int32Array(d.buffer,d.byteOffset,l);case"FLOAT":return new Float32Array(d.buffer,d.byteOffset,l);case"DOUBLE":return new Float64Array(d.buffer,d.byteOffset,l);case"VARCHAR":return new Float64Array(d.buffer,d.byteOffset,l);default:return new Array(0)}}function U_(r,t,e){let l=r.HEAPU8.subarray(t,t+e);return new Uint8Array(l.buffer,l.byteOffset,e)}function gr(r,t,e){let l=r.HEAPU8.subarray(t,t+e*8);return new Float64Array(l.buffer,l.byteOffset,e)}function q_(r,t,e,l,d,m,g,E){try{let R=r._udfFunctions.get(l);if(!R){es(t,e,"Unknown UDF with id: "+l);return}let L=N_.decode(t.HEAPU8.subarray(d,d+m)),D=JSON.parse(L),U=gr(t,g,E/8),P=G=>{var M;let pe=null;switch(G.validityBuffer!==void 0&&(pe=U_(t,U[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,U[G.dataBuffer],G.physicalType,D.rows),se=[],Te=gr(t,U[G.lengthBuffer],D.rows);for(let A=0;A<D.rows;++A){if(pe!=null&&!pe[A]){se.push(null);continue}let I=t.HEAPU8.subarray(ce[A],ce[A]+Te[A]),Me=N_.decode(I);se.push(Me)}return A=>se[A]}case"STRUCT":{let ce={},se=[];for(let Te=0;Te<(((M=G.children)==null?void 0:M.length)||0);++Te){let A=G.children[Te],I=P(A);se.push(Me=>{ce[A.name]=I(Me)})}return pe!=null?Te=>{if(!pe[Te])return null;for(let A of se)A(Te);return ce}:Te=>{for(let A of se)A(Te);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,U[G.dataBuffer],G.physicalType,D.rows);return pe!=null?se=>pe[se]?ce[se]:null:se=>ce[se]}}},_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),ne=t._malloc(D.rows),Ee=U_(t,ne,D.rows);if(Z.length==0||Ee.length==0){es(t,e,"Can't create physical arrays for result");return}let ge=Z;D.ret.physicalType=="VARCHAR"&&(ge=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=R.func(...He);ge[G]=pe,Ee[G]=pe==null?0:1}let ue=0;switch(D.ret.physicalType){case"VARCHAR":{let G=new Array(0);ue=t._malloc(D.rows*is("DOUBLE"));let pe=gr(t,ue,D.rows),M=0;for(let A=0;A<D.rows;++A){let I=H_.encode(ge[A]||"");G.push(I),pe[A]=I.length,M+=I.length}let ce=t._malloc(M),se=t.HEAPU8.subarray(ce,ce+M),Te=0;for(let A=0;A<D.rows;++A){Z[A]=Te;let I=G[A];se.subarray(Te,Te+I.length).set(I),Te+=I.length}}}let ae=3*8,ee=t._malloc(ae),re=gr(t,ee,3);re[0]=Y,re[1]=ne,re[2]=ue,t.HEAPF64[(e>>3)+0]=0,t.HEAPF64[(e>>3)+1]=ee,t.HEAPF64[(e>>3)+2]=0}catch(R){es(t,e,R.toString())}}function Qg(){let r=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),r.decode(t))}var Vt=Qg();function We(r,t){console.error(`FAIL WITH: ${t}`),r.ccall("duckdb_web_fail_with",null,["string"],[t])}function Qt(r,t,e){let l=r.HEAPU8.subarray(t,t+e),d=new Uint8Array(new ArrayBuffer(l.byteLength));return d.set(l),d}function me(r,t,e){return Vt(r.HEAPU8.subarray(t,t+e))}function Pe(r,t,e,l){let d=r.stackSave(),m=r.stackAlloc(3*8);e.unshift("number"),l.unshift(m),r.ccall(t,null,e,l);let g=r.HEAPF64[(m>>3)+0],E=r.HEAPF64[(m>>3)+1],R=r.HEAPF64[(m>>3)+2];return r.stackRestore(d),[g,E,R]}function Le(r){r.ccall("duckdb_web_clear_response",null,[],[])}var br=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),l=new Uint8Array(new ArrayBuffer(t.byteLength));l.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=l}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 zg=new TextEncoder;var jr=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,l,d]=Pe(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(e!==0)throw new Error(me(this.mod,l,d));Le(this.mod)}reset(){let[t,e,l]=Pe(this.mod,"duckdb_web_reset",[],[]);if(t!==0)throw new Error(me(this.mod,e,l));Le(this.mod)}getVersion(){let[t,e,l]=Pe(this.mod,"duckdb_web_get_version",[],[]);if(t!==0)throw new Error(me(this.mod,e,l));let d=me(this.mod,e,l);return Le(this.mod),d}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,l,d]=Pe(this.mod,"duckdb_web_tokenize",["string"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));let m=me(this.mod,l,d);return Le(this.mod),JSON.parse(m)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new mr(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[l,d,m]=Pe(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));let g=Qt(this.mod,d,m);return Le(this.mod),g}startPendingQuery(t,e){let[l,d,m]=Pe(this.mod,"duckdb_web_pending_query_start",["number","string"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));if(d==0)return null;let g=Qt(this.mod,d,m);return Le(this.mod),g}pollPendingQuery(t){let[e,l,d]=Pe(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));if(l==0)return null;let m=Qt(this.mod,l,d);return Le(this.mod),m}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[e,l,d]=Pe(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));let m=Qt(this.mod,l,d);return Le(this.mod),m}getTableNames(t,e){let[l,d,m]=Pe(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));let g=me(this.mod,d,m);return Le(this.mod),JSON.parse(g)}createScalarFunction(t,e,l,d){let m={functionId:this._nextUDFId,name:e,returnType:fi(l)},g={functionId:m.functionId,connectionId:t,name:e,returnType:l,func:d};this._nextUDFId+=1;let[E,R,L]=Pe(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(m)]);if(E!==0)throw new Error(me(this.mod,R,L));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[l,d,m]=Pe(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));return Le(this.mod),d}closePrepared(t,e){let[l,d,m]=Pe(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));Le(this.mod)}runPrepared(t,e,l){let[d,m,g]=Pe(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(l)]);if(d!==0)throw new Error(me(this.mod,m,g));let E=Qt(this.mod,m,g);return Le(this.mod),E}sendPrepared(t,e,l){let[d,m,g]=Pe(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(l)]);if(d!==0)throw new Error(me(this.mod,m,g));let E=Qt(this.mod,m,g);return Le(this.mod),E}insertArrowFromIPCStream(t,e,l){if(e.length==0)return;let d=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(d,d+e.length).set(e);let g=l?JSON.stringify(l):"",[E,R,L]=Pe(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,d,e.length,g]);if(E!==0)throw new Error(me(this.mod,R,L))}insertCSVFromPath(t,e,l){if(l.columns!==void 0){l.columnsFlat=[];for(let L in l.columns)l.columnsFlat.push(hr(L,l.columns[L]))}let d={...l};d.columns=d.columnsFlat,delete d.columnsFlat;let m=JSON.stringify(d),[g,E,R]=Pe(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,m]);if(g!==0)throw new Error(me(this.mod,E,R))}insertJSONFromPath(t,e,l){if(l.columns!==void 0){l.columnsFlat=[];for(let L in l.columns)l.columnsFlat.push(hr(L,l.columns[L]))}let d={...l};d.columns=d.columnsFlat,delete d.columnsFlat;let m=JSON.stringify(d),[g,E,R]=Pe(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,m]);if(g!==0)throw new Error(me(this.mod,E,R))}globFiles(t){let[e,l,d]=Pe(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));let m=me(this.mod,l,d);Le(this.mod);let g=JSON.parse(m);return g??[]}registerFileURL(t,e,l,d=!1){e===void 0&&(e=t);let[m,g,E]=Pe(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[t,e,l,d]);if(m!==0)throw new Error(me(this.mod,g,E));Le(this.mod)}registerFileText(t,e){let l=zg.encode(e);this.registerFileBuffer(t,l)}registerFileBuffer(t,e){let l=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(l,l+e.length).set(e);let[m,g,E]=Pe(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,l,e.length]);if(m!==0)throw new Error(me(this.mod,g,E));Le(this.mod)}registerFileHandle(t,e,l,d){let[m,g,E]=Pe(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[t,t,l,d]);if(m!==0)throw new Error(me(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 R of this.pthread.runningWorkers)R.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let R of this.pthread.unusedWorkers)R.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,l,d]=Pe(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));Le(this.mod)}dropFiles(){let[t,e,l]=Pe(this.mod,"duckdb_web_fs_drop_files",[],[]);if(t!==0)throw new Error(me(this.mod,e,l));Le(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[l,d,m]=Pe(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m));Le(this.mod)}copyFileToBuffer(t){let[e,l,d]=Pe(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));let m=this.mod.HEAPU8.subarray(l,l+d),g=new Uint8Array(m.length);return g.set(m),Le(this.mod),g}collectFileStatistics(t,e){let[l,d,m]=Pe(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(l!==0)throw new Error(me(this.mod,d,m))}exportFileStatistics(t){let[e,l,d]=Pe(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(e!==0)throw new Error(me(this.mod,l,d));return new br(this.mod.HEAPU8.subarray(l,l+d))}};var W_=Ni(require("fs")),wr=class extends jr{constructor(e,l,d,m){super(e,l);this.mainModulePath=d,this.pthreadWorkerPath=m}locateFile(e,l){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=${l} path=${e}`)}instantiateWasm(e,l){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=W_.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(d,e).then(m=>{l(m.instance,m.module)}),[]}instantiateImpl(e){return B_({...e,instantiateWasm:this.instantiateWasm.bind(this)})}};var Cr=class extends wr{constructor(t,e,l,d=null){super(t,e,l,d)}instantiateImpl(t){return x_({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var ze=Ni(require("fs"));var Mp=Ni(Ip());var Ue={_files:new Map,_filesById:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(r,t){try{let e=Ue._fileInfoCache.get(t),[l,d,m]=Pe(r,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(e==null?void 0:e.cacheEpoch)||0]);if(l!==0)return We(r,me(r,d,m)),null;if(m===0)return Le(r),e;let g=me(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 l,d;try{Ue._fileInfoCache.delete(t);let m=Ue.resolveFileInfo(r,t);switch(m==null?void 0:m.dataProtocol){case 1:{let g=(l=Ue._files)==null?void 0:l.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,R=r._malloc(2*8);return r.HEAPF64[(R>>3)+0]=+E,r.HEAPF64[(R>>3)+1]=0,R}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 l=Ue._filesById.get(t);Ue._filesById.delete(t),l!=null&&ze.default.closeSync(l);break}case 2:case 3:case 4:case 5:break}}catch(e){We(r,e.toString())}return 0},truncateFile:(r,t,e)=>{try{let l=Ue.resolveFileInfo(r,t);switch(l==null?void 0:l.dataProtocol){case 1:{ze.default.truncateSync(l.dataUrl,e);break}case 2:case 3:case 4:case 5:We(r,"Unsupported data protocol")}}catch(l){We(r,l.toString())}return 0},readFile:(r,t,e,l,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,l,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,l,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+l);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 l=Ue._filesById.get(t);return l==null?(We(r,`File ${t} is missing a file descriptor`),0):ze.default.fstatSync(l).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 l=Vt(r.HEAPU8.subarray(t,t+e));return ze.default.existsSync(l)}catch(l){return We(r,l.toString()),!1}},createDirectory:(r,t,e)=>{try{let l=Vt(r.HEAPU8.subarray(t,t+e));return ze.default.mkdirSync(l)}catch(l){return We(r,l.toString()),0}},removeDirectory:(r,t,e)=>{try{let l=Vt(r.HEAPU8.subarray(t,t+e));return ze.default.rmdirSync(l)}catch(l){return We(r,l.toString()),0}},listDirectoryEntries:(r,t,e)=>(We(r,"Not Implemented"),!1),glob:(r,t,e)=>{try{let l=me(r,t,e),d=Mp.sync([l],{dot:!0});for(let m of d)r.ccall("duckdb_web_fs_glob_add_path",null,["string"],[m])}catch(l){return We(r,l.toString()),0}},moveFile:(r,t,e,l,d)=>{var R,L;let m=me(r,t,e),g=me(r,l,d),E=(R=Ue._files)==null?void 0:R.get(m);E!==void 0&&(Ue._files.delete(E),Ue._files.set(g,E));for(let[D,U]of((L=Ue._fileInfoCache)==null?void 0:L.entries())||[])if(U.dataUrl==m){Ue._fileInfoCache.delete(D);break}return!0},checkFile:(r,t,e)=>{try{let l=Vt(r.HEAPU8.subarray(t,t+e));return ze.default.existsSync(l)}catch(l){return We(r,l.toString()),!1}},removeFile:(r,t,e)=>{try{let l=Vt(r.HEAPU8.subarray(t,t+e));return ze.default.rmSync(l)}catch(l){return We(r,l.toString()),0}},callScalarUDF:(r,t,e,l,d,m,g)=>{q_(Ue,r,t,e,l,d,m,g)}};var Lu=class extends yr{postMessage(t,e){globalThis.postMessage(t,e)}async instantiate(t,e,l){return await new Cr(this,Ue,t,e).instantiate(l)}};function Fp(){let r=new Lu;globalThis.onmessage=async t=>{await r.onMessage(t.data)}}Fp();0&&(module.exports={registerWorker});
|
|
5
5
|
/*!
|
|
6
6
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
7
7
|
*
|