@duckdb/duckdb-wasm 1.13.1-dev161.0 → 1.13.1-dev166.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.
@@ -1,7 +1,7 @@
1
1
  var xg=Object.create;var tr=Object.defineProperty,Og=Object.defineProperties,Ng=Object.getOwnPropertyDescriptor,Lg=Object.getOwnPropertyDescriptors,Bg=Object.getOwnPropertyNames,Ic=Object.getOwnPropertySymbols,Ug=Object.getPrototypeOf,xc=Object.prototype.hasOwnProperty,Hg=Object.prototype.propertyIsEnumerable;var Mc=(i,t,e)=>t in i?tr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Re=(i,t)=>{for(var e in t||(t={}))xc.call(t,e)&&Mc(i,e,t[e]);if(Ic)for(var e of Ic(t))Hg.call(t,e)&&Mc(i,e,t[e]);return i},qe=(i,t)=>Og(i,Lg(t)),Oc=i=>tr(i,"__esModule",{value:!0});var z=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),$g=(i,t)=>{for(var e in t)tr(i,e,{get:t[e],enumerable:!0})},Nc=(i,t,e,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let d of Bg(t))!xc.call(i,d)&&(e||d!=="default")&&tr(i,d,{get:()=>t[d],enumerable:!(u=Ng(t,d))||u.enumerable});return i},ir=(i,t)=>Nc(Oc(tr(i!=null?xg(Ug(i)):{},"default",!t&&i&&i.__esModule?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i),Wg=(i=>(t,e)=>i&&i.get(t)||(e=Nc(Oc({}),t,1),i&&i.set(t,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var Yc=z(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.splitWhen=Si.flatten=void 0;function Qg(i){return i.reduce((t,e)=>[].concat(t,e),[])}Si.flatten=Qg;function Xg(i,t){let e=[[]],u=0;for(let d of i)t(d)?(u++,e[u]=[]):e[u].push(d);return e}Si.splitWhen=Xg});var Kc=z(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.isEnoentCodeError=void 0;function Jg(i){return i.code==="ENOENT"}Dr.isEnoentCodeError=Jg});var Vc=z(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.createDirentFromStats=void 0;var Gc=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 Zg(i,t){return new Gc(i,t)}Tr.createDirentFromStats=Zg});var zc=z(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.removeLeadingDotSegment=jt.escape=jt.makeAbsolute=jt.unixify=void 0;var ev=require("path"),tv=2,iv=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function rv(i){return i.replace(/\\/g,"/")}jt.unixify=rv;function nv(i,t){return ev.resolve(i,t)}jt.makeAbsolute=nv;function av(i){return i.replace(iv,"\\$2")}jt.escape=av;function sv(i){if(i.charAt(0)==="."){let t=i.charAt(1);if(t==="/"||t==="\\")return i.slice(tv)}return i}jt.removeLeadingDotSegment=sv});var Xc=z((jw,Qc)=>{Qc.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var e;e=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(e[2])return!0;t=t.slice(e.index+e[0].length)}return!1}});var e_=z((bw,Zc)=>{var ov=Xc(),Jc={"{":"}","(":")","[":"]"},uv=function(i){if(i[0]==="!")return!0;for(var t=0,e=-2,u=-2,d=-2,y=-2,v=-2;t<i.length;){if(i[t]==="*"||i[t+1]==="?"&&/[\].+)]/.test(i[t])||u!==-1&&i[t]==="["&&i[t+1]!=="]"&&(u<t&&(u=i.indexOf("]",t)),u>t&&(v===-1||v>u||(v=i.indexOf("\\",t),v===-1||v>u)))||d!==-1&&i[t]==="{"&&i[t+1]!=="}"&&(d=i.indexOf("}",t),d>t&&(v=i.indexOf("\\",t),v===-1||v>d))||y!==-1&&i[t]==="("&&i[t+1]==="?"&&/[:!=]/.test(i[t+2])&&i[t+3]!==")"&&(y=i.indexOf(")",t),y>t&&(v=i.indexOf("\\",t),v===-1||v>y))||e!==-1&&i[t]==="("&&i[t+1]!=="|"&&(e<t&&(e=i.indexOf("|",t)),e!==-1&&i[e+1]!==")"&&(y=i.indexOf(")",e),y>e&&(v=i.indexOf("\\",e),v===-1||v>y))))return!0;if(i[t]==="\\"){var E=i[t+1];t+=2;var A=Jc[E];if(A){var N=i.indexOf(A,t);N!==-1&&(t=N+1)}if(i[t]==="!")return!0}else t++}return!1},lv=function(i){if(i[0]==="!")return!0;for(var t=0;t<i.length;){if(/[*?{}()[\]]/.test(i[t]))return!0;if(i[t]==="\\"){var e=i[t+1];t+=2;var u=Jc[e];if(u){var d=i.indexOf(u,t);d!==-1&&(t=d+1)}if(i[t]==="!")return!0}else t++}return!1};Zc.exports=function(t,e){if(typeof t!="string"||t==="")return!1;if(ov(t))return!0;var u=uv;return e&&e.strict===!1&&(u=lv),u(t)}});var i_=z((ww,t_)=>{"use strict";var cv=e_(),_v=require("path").posix.dirname,fv=require("os").platform()==="win32",ts="/",dv=/\\/g,pv=/[\{\[].*[\}\]]$/,hv=/(^|[^\\])([\{\[]|\([^\)]+$)/,mv=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t_.exports=function(t,e){var u=Object.assign({flipBackslashes:!0},e);u.flipBackslashes&&fv&&t.indexOf(ts)<0&&(t=t.replace(dv,ts)),pv.test(t)&&(t+=ts),t+="a";do t=_v(t);while(cv(t)||hv.test(t));return t.replace(mv,"$1")}});var Pr=z(dt=>{"use strict";dt.isInteger=i=>typeof i=="number"?Number.isInteger(i):typeof i=="string"&&i.trim()!==""?Number.isInteger(Number(i)):!1;dt.find=(i,t)=>i.nodes.find(e=>e.type===t);dt.exceedsLimit=(i,t,e=1,u)=>u===!1||!dt.isInteger(i)||!dt.isInteger(t)?!1:(Number(t)-Number(i))/Number(e)>=u;dt.escapeNode=(i,t=0,e)=>{let u=i.nodes[t];!u||(e&&u.type===e||u.type==="open"||u.type==="close")&&u.escaped!==!0&&(u.value="\\"+u.value,u.escaped=!0)};dt.encloseBrace=i=>i.type!=="brace"?!1:i.commas>>0+i.ranges>>0===0?(i.invalid=!0,!0):!1;dt.isInvalidBrace=i=>i.type!=="brace"?!1:i.invalid===!0||i.dollar?!0:i.commas>>0+i.ranges>>0===0||i.open!==!0||i.close!==!0?(i.invalid=!0,!0):!1;dt.isOpenOrClose=i=>i.type==="open"||i.type==="close"?!0:i.open===!0||i.close===!0;dt.reduce=i=>i.reduce((t,e)=>(e.type==="text"&&t.push(e.value),e.type==="range"&&(e.type="text"),t),[]);dt.flatten=(...i)=>{let t=[],e=u=>{for(let d=0;d<u.length;d++){let y=u[d];Array.isArray(y)?e(y,t):y!==void 0&&t.push(y)}return t};return e(i),t}});var Fr=z((Cw,n_)=>{"use strict";var r_=Pr();n_.exports=(i,t={})=>{let e=(u,d={})=>{let y=t.escapeInvalid&&r_.isInvalidBrace(d),v=u.invalid===!0&&t.escapeInvalid===!0,E="";if(u.value)return(y||v)&&r_.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let A of u.nodes)E+=e(A);return E};return e(i)}});var s_=z((Sw,a_)=>{"use strict";a_.exports=function(i){return typeof i=="number"?i-i===0:typeof i=="string"&&i.trim()!==""?Number.isFinite?Number.isFinite(+i):isFinite(+i):!1}});var h_=z((Ew,p_)=>{"use strict";var o_=s_(),Jt=(i,t,e)=>{if(o_(i)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||i===t)return String(i);if(o_(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let u=Re({relaxZeros:!0},e);typeof u.strictZeros=="boolean"&&(u.relaxZeros=u.strictZeros===!1);let d=String(u.relaxZeros),y=String(u.shorthand),v=String(u.capture),E=String(u.wrap),A=i+":"+t+"="+d+y+v+E;if(Jt.cache.hasOwnProperty(A))return Jt.cache[A].result;let N=Math.min(i,t),D=Math.max(i,t);if(Math.abs(N-D)===1){let Q=i+"|"+t;return u.capture?`(${Q})`:u.wrap===!1?Q:`(?:${Q})`}let U=d_(i)||d_(t),I={min:i,max:t,a:N,b:D},X=[],V=[];if(U&&(I.isPadded=U,I.maxLen=String(I.max).length),N<0){let Q=D<0?Math.abs(D):1;V=u_(Q,Math.abs(N),I,u),N=I.a=0}return D>=0&&(X=u_(N,D,I,u)),I.negatives=V,I.positives=X,I.result=yv(V,X,u),u.capture===!0?I.result=`(${I.result})`:u.wrap!==!1&&X.length+V.length>1&&(I.result=`(?:${I.result})`),Jt.cache[A]=I,I.result};function yv(i,t,e){let u=is(i,t,"-",!1,e)||[],d=is(t,i,"",!1,e)||[],y=is(i,t,"-?",!0,e)||[];return u.concat(y).concat(d).join("|")}function gv(i,t){let e=1,u=1,d=c_(i,e),y=new Set([t]);for(;i<=d&&d<=t;)y.add(d),e+=1,d=c_(i,e);for(d=__(t+1,u)-1;i<d&&d<=t;)y.add(d),u+=1,d=__(t+1,u)-1;return y=[...y],y.sort(bv),y}function vv(i,t,e){if(i===t)return{pattern:i,count:[],digits:0};let u=jv(i,t),d=u.length,y="",v=0;for(let E=0;E<d;E++){let[A,N]=u[E];A===N?y+=A:A!=="0"||N!=="9"?y+=wv(A,N,e):v++}return v&&(y+=e.shorthand===!0?"\\d":"[0-9]"),{pattern:y,count:[v],digits:d}}function u_(i,t,e,u){let d=gv(i,t),y=[],v=i,E;for(let A=0;A<d.length;A++){let N=d[A],D=vv(String(v),String(N),u),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),v=N+1;continue}e.isPadded&&(U=kv(N,e,u)),D.string=U+D.pattern+f_(D.count),y.push(D),v=N+1,E=D}return y}function is(i,t,e,u,d){let y=[];for(let v of i){let{string:E}=v;!u&&!l_(t,"string",E)&&y.push(e+E),u&&l_(t,"string",E)&&y.push(e+E)}return y}function jv(i,t){let e=[];for(let u=0;u<i.length;u++)e.push([i[u],t[u]]);return e}function bv(i,t){return i>t?1:t>i?-1:0}function l_(i,t,e){return i.some(u=>u[t]===e)}function c_(i,t){return Number(String(i).slice(0,-t)+"9".repeat(t))}function __(i,t){return i-i%Math.pow(10,t)}function f_(i){let[t=0,e=""]=i;return e||t>1?`{${t+(e?","+e:"")}}`:""}function wv(i,t,e){return`[${i}${t-i===1?"":"-"}${t}]`}function d_(i){return/^-?(0+)\d/.test(i)}function kv(i,t,e){if(!t.isPadded)return i;let u=Math.abs(t.maxLen-String(i).length),d=e.relaxZeros!==!1;switch(u){case 0:return"";case 1:return d?"0?":"0";case 2:return d?"0{0,2}":"00";default:return d?`0{0,${u}}`:`0{${u}}`}}Jt.cache={};Jt.clearCache=()=>Jt.cache={};p_.exports=Jt});var as=z((Aw,k_)=>{"use strict";var Cv=require("util"),g_=h_(),m_=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),Sv=i=>t=>i===!0?Number(t):String(t),rs=i=>typeof i=="number"||typeof i=="string"&&i!=="",ar=i=>Number.isInteger(+i),ns=i=>{let t=`${i}`,e=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++e]==="0";);return e>0},Ev=(i,t,e)=>typeof i=="string"||typeof t=="string"?!0:e.stringify===!0,Av=(i,t,e)=>{if(t>0){let u=i[0]==="-"?"-":"";u&&(i=i.slice(1)),i=u+i.padStart(u?t-1:t,"0")}return e===!1?String(i):i},y_=(i,t)=>{let e=i[0]==="-"?"-":"";for(e&&(i=i.slice(1),t--);i.length<t;)i="0"+i;return e?"-"+i:i},Rv=(i,t)=>{i.negatives.sort((v,E)=>v<E?-1:v>E?1:0),i.positives.sort((v,E)=>v<E?-1:v>E?1:0);let e=t.capture?"":"?:",u="",d="",y;return i.positives.length&&(u=i.positives.join("|")),i.negatives.length&&(d=`-(${e}${i.negatives.join("|")})`),u&&d?y=`${u}|${d}`:y=u||d,t.wrap?`(${e}${y})`:y},v_=(i,t,e,u)=>{if(e)return g_(i,t,Re({wrap:!1},u));let d=String.fromCharCode(i);if(i===t)return d;let y=String.fromCharCode(t);return`[${d}-${y}]`},j_=(i,t,e)=>{if(Array.isArray(i)){let u=e.wrap===!0,d=e.capture?"":"?:";return u?`(${d}${i.join("|")})`:i.join("|")}return g_(i,t,e)},b_=(...i)=>new RangeError("Invalid range arguments: "+Cv.inspect(...i)),w_=(i,t,e)=>{if(e.strictRanges===!0)throw b_([i,t]);return[]},Dv=(i,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${i}" to be a number`);return[]},Tv=(i,t,e=1,u={})=>{let d=Number(i),y=Number(t);if(!Number.isInteger(d)||!Number.isInteger(y)){if(u.strictRanges===!0)throw b_([i,t]);return[]}d===0&&(d=0),y===0&&(y=0);let v=d>y,E=String(i),A=String(t),N=String(e);e=Math.max(Math.abs(e),1);let D=ns(E)||ns(A)||ns(N),U=D?Math.max(E.length,A.length,N.length):0,I=D===!1&&Ev(i,t,u)===!1,X=u.transform||Sv(I);if(u.toRegex&&e===1)return v_(y_(i,U),y_(t,U),!0,u);let V={negatives:[],positives:[]},Q=be=>V[be<0?"negatives":"positives"].push(Math.abs(be)),ee=[],ne=0;for(;v?d>=y:d<=y;)u.toRegex===!0&&e>1?Q(d):ee.push(Av(X(d,ne),U,I)),d=v?d-e:d+e,ne++;return u.toRegex===!0?e>1?Rv(V,u):j_(ee,null,Re({wrap:!1},u)):ee},Pv=(i,t,e=1,u={})=>{if(!ar(i)&&i.length>1||!ar(t)&&t.length>1)return w_(i,t,u);let d=u.transform||(I=>String.fromCharCode(I)),y=`${i}`.charCodeAt(0),v=`${t}`.charCodeAt(0),E=y>v,A=Math.min(y,v),N=Math.max(y,v);if(u.toRegex&&e===1)return v_(A,N,!1,u);let D=[],U=0;for(;E?y>=v:y<=v;)D.push(d(y,U)),y=E?y-e:y+e,U++;return u.toRegex===!0?j_(D,null,{wrap:!1,options:u}):D},Ir=(i,t,e,u={})=>{if(t==null&&rs(i))return[i];if(!rs(i)||!rs(t))return w_(i,t,u);if(typeof e=="function")return Ir(i,t,1,{transform:e});if(m_(e))return Ir(i,t,0,e);let d=Re({},u);return d.capture===!0&&(d.wrap=!0),e=e||d.step||1,ar(e)?ar(i)&&ar(t)?Tv(i,t,e,d):Pv(i,t,Math.max(Math.abs(e),1),d):e!=null&&!m_(e)?Dv(e,d):Ir(i,t,1,e)};k_.exports=Ir});var E_=z((Rw,S_)=>{"use strict";var Fv=as(),C_=Pr(),Iv=(i,t={})=>{let e=(u,d={})=>{let y=C_.isInvalidBrace(d),v=u.invalid===!0&&t.escapeInvalid===!0,E=y===!0||v===!0,A=t.escapeInvalid===!0?"\\":"",N="";if(u.isOpen===!0||u.isClose===!0)return A+u.value;if(u.type==="open")return E?A+u.value:"(";if(u.type==="close")return E?A+u.value:")";if(u.type==="comma")return u.prev.type==="comma"?"":E?u.value:"|";if(u.value)return u.value;if(u.nodes&&u.ranges>0){let D=C_.reduce(u.nodes),U=Fv(...D,qe(Re({},t),{wrap:!1,toRegex:!0}));if(U.length!==0)return D.length>1&&U.length>1?`(${U})`:U}if(u.nodes)for(let D of u.nodes)N+=e(D,u);return N};return e(i)};S_.exports=Iv});var D_=z((Dw,R_)=>{"use strict";var Mv=as(),A_=Fr(),Ei=Pr(),Zt=(i="",t="",e=!1)=>{let u=[];if(i=[].concat(i),t=[].concat(t),!t.length)return i;if(!i.length)return e?Ei.flatten(t).map(d=>`{${d}}`):t;for(let d of i)if(Array.isArray(d))for(let y of d)u.push(Zt(y,t,e));else for(let y of t)e===!0&&typeof y=="string"&&(y=`{${y}}`),u.push(Array.isArray(y)?Zt(d,y,e):d+y);return Ei.flatten(u)},xv=(i,t={})=>{let e=t.rangeLimit===void 0?1e3:t.rangeLimit,u=(d,y={})=>{d.queue=[];let v=y,E=y.queue;for(;v.type!=="brace"&&v.type!=="root"&&v.parent;)v=v.parent,E=v.queue;if(d.invalid||d.dollar){E.push(Zt(E.pop(),A_(d,t)));return}if(d.type==="brace"&&d.invalid!==!0&&d.nodes.length===2){E.push(Zt(E.pop(),["{}"]));return}if(d.nodes&&d.ranges>0){let U=Ei.reduce(d.nodes);if(Ei.exceedsLimit(...U,t.step,e))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let I=Mv(...U,t);I.length===0&&(I=A_(d,t)),E.push(Zt(E.pop(),I)),d.nodes=[];return}let A=Ei.encloseBrace(d),N=d.queue,D=d;for(;D.type!=="brace"&&D.type!=="root"&&D.parent;)D=D.parent,N=D.queue;for(let U=0;U<d.nodes.length;U++){let I=d.nodes[U];if(I.type==="comma"&&d.type==="brace"){U===1&&N.push(""),N.push("");continue}if(I.type==="close"){E.push(Zt(E.pop(),N,A));continue}if(I.value&&I.type!=="open"){N.push(Zt(N.pop(),I.value));continue}I.nodes&&u(I,d)}return N};return Ei.flatten(u(i))};R_.exports=xv});var P_=z((Tw,T_)=>{"use strict";T_.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
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 O_=z((Pw,x_)=>{"use strict";var Ov=Fr(),{MAX_LENGTH:F_,CHAR_BACKSLASH:ss,CHAR_BACKTICK:Nv,CHAR_COMMA:Lv,CHAR_DOT:Bv,CHAR_LEFT_PARENTHESES:Uv,CHAR_RIGHT_PARENTHESES:Hv,CHAR_LEFT_CURLY_BRACE:$v,CHAR_RIGHT_CURLY_BRACE:Wv,CHAR_LEFT_SQUARE_BRACKET:I_,CHAR_RIGHT_SQUARE_BRACKET:M_,CHAR_DOUBLE_QUOTE:qv,CHAR_SINGLE_QUOTE:Yv,CHAR_NO_BREAK_SPACE:Kv,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Gv}=P_(),Vv=(i,t={})=>{if(typeof i!="string")throw new TypeError("Expected a string");let e=t||{},u=typeof e.maxLength=="number"?Math.min(F_,e.maxLength):F_;if(i.length>u)throw new SyntaxError(`Input length (${i.length}), exceeds max characters (${u})`);let d={type:"root",input:i,nodes:[]},y=[d],v=d,E=d,A=0,N=i.length,D=0,U=0,I,X={},V=()=>i[D++],Q=ee=>{if(ee.type==="text"&&E.type==="dot"&&(E.type="text"),E&&E.type==="text"&&ee.type==="text"){E.value+=ee.value;return}return v.nodes.push(ee),ee.parent=v,ee.prev=E,E=ee,ee};for(Q({type:"bos"});D<N;)if(v=y[y.length-1],I=V(),!(I===Gv||I===Kv)){if(I===ss){Q({type:"text",value:(t.keepEscaping?I:"")+V()});continue}if(I===M_){Q({type:"text",value:"\\"+I});continue}if(I===I_){A++;let ee=!0,ne;for(;D<N&&(ne=V());){if(I+=ne,ne===I_){A++;continue}if(ne===ss){I+=V();continue}if(ne===M_&&(A--,A===0))break}Q({type:"text",value:I});continue}if(I===Uv){v=Q({type:"paren",nodes:[]}),y.push(v),Q({type:"text",value:I});continue}if(I===Hv){if(v.type!=="paren"){Q({type:"text",value:I});continue}v=y.pop(),Q({type:"text",value:I}),v=y[y.length-1];continue}if(I===qv||I===Yv||I===Nv){let ee=I,ne;for(t.keepQuotes!==!0&&(I="");D<N&&(ne=V());){if(ne===ss){I+=ne+V();continue}if(ne===ee){t.keepQuotes===!0&&(I+=ne);break}I+=ne}Q({type:"text",value:I});continue}if(I===$v){U++;let ee=E.value&&E.value.slice(-1)==="$"||v.dollar===!0;v=Q({type:"brace",open:!0,close:!1,dollar:ee,depth:U,commas:0,ranges:0,nodes:[]}),y.push(v),Q({type:"open",value:I});continue}if(I===Wv){if(v.type!=="brace"){Q({type:"text",value:I});continue}let ee="close";v=y.pop(),v.close=!0,Q({type:ee,value:I}),U--,v=y[y.length-1];continue}if(I===Lv&&U>0){if(v.ranges>0){v.ranges=0;let ee=v.nodes.shift();v.nodes=[ee,{type:"text",value:Ov(v)}]}Q({type:"comma",value:I}),v.commas++;continue}if(I===Bv&&U>0&&v.commas===0){let ee=v.nodes;if(U===0||ee.length===0){Q({type:"text",value:I});continue}if(E.type==="dot"){if(v.range=[],E.value+=I,E.type="range",v.nodes.length!==3&&v.nodes.length!==5){v.invalid=!0,v.ranges=0,E.type="text";continue}v.ranges++,v.args=[];continue}if(E.type==="range"){ee.pop();let ne=ee[ee.length-1];ne.value+=E.value+I,E=ne,v.ranges--;continue}Q({type:"dot",value:I});continue}Q({type:"text",value:I})}do if(v=y.pop(),v.type!=="root"){v.nodes.forEach(be=>{be.nodes||(be.type==="open"&&(be.isOpen=!0),be.type==="close"&&(be.isClose=!0),be.nodes||(be.type="text"),be.invalid=!0)});let ee=y[y.length-1],ne=ee.nodes.indexOf(v);ee.nodes.splice(ne,1,...v.nodes)}while(y.length>0);return Q({type:"eos"}),d};x_.exports=Vv});var B_=z((Fw,L_)=>{"use strict";var N_=Fr(),zv=E_(),Qv=D_(),Xv=O_(),ot=(i,t={})=>{let e=[];if(Array.isArray(i))for(let u of i){let d=ot.create(u,t);Array.isArray(d)?e.push(...d):e.push(d)}else e=[].concat(ot.create(i,t));return t&&t.expand===!0&&t.nodupes===!0&&(e=[...new Set(e)]),e};ot.parse=(i,t={})=>Xv(i,t);ot.stringify=(i,t={})=>N_(typeof i=="string"?ot.parse(i,t):i,t);ot.compile=(i,t={})=>(typeof i=="string"&&(i=ot.parse(i,t)),zv(i,t));ot.expand=(i,t={})=>{typeof i=="string"&&(i=ot.parse(i,t));let e=Qv(i,t);return t.noempty===!0&&(e=e.filter(Boolean)),t.nodupes===!0&&(e=[...new Set(e)]),e};ot.create=(i,t={})=>i===""||i.length<3?[i]:t.expand!==!0?ot.compile(i,t):ot.expand(i,t);L_.exports=ot});var sr=z((Iw,q_)=>{"use strict";var Jv=require("path"),bt="\\\\/",U_=`[^${bt}]`,Dt="\\.",Zv="\\+",ej="\\?",Mr="\\/",tj="(?=.)",H_="[^/]",os=`(?:${Mr}|$)`,$_=`(?:^|${Mr})`,us=`${Dt}{1,2}${os}`,ij=`(?!${Dt})`,rj=`(?!${$_}${us})`,nj=`(?!${Dt}{0,1}${os})`,aj=`(?!${us})`,sj=`[^.${Mr}]`,oj=`${H_}*?`,W_={DOT_LITERAL:Dt,PLUS_LITERAL:Zv,QMARK_LITERAL:ej,SLASH_LITERAL:Mr,ONE_CHAR:tj,QMARK:H_,END_ANCHOR:os,DOTS_SLASH:us,NO_DOT:ij,NO_DOTS:rj,NO_DOT_SLASH:nj,NO_DOTS_SLASH:aj,QMARK_NO_DOT:sj,STAR:oj,START_ANCHOR:$_},uj=qe(Re({},W_),{SLASH_LITERAL:`[${bt}]`,QMARK:U_,STAR:`${U_}*?`,DOTS_SLASH:`${Dt}{1,2}(?:[${bt}]|$)`,NO_DOT:`(?!${Dt})`,NO_DOTS:`(?!(?:^|[${bt}])${Dt}{1,2}(?:[${bt}]|$))`,NO_DOT_SLASH:`(?!${Dt}{0,1}(?:[${bt}]|$))`,NO_DOTS_SLASH:`(?!${Dt}{1,2}(?:[${bt}]|$))`,QMARK_NO_DOT:`[^.${bt}]`,START_ANCHOR:`(?:^|[${bt}])`,END_ANCHOR:`(?:[${bt}]|$)`}),lj={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"};q_.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:lj,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:Jv.sep,extglobChars(i){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${i.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(i){return i===!0?uj:W_}}});var or=z(at=>{"use strict";var cj=require("path"),_j=process.platform==="win32",{REGEX_BACKSLASH:fj,REGEX_REMOVE_BACKSLASH:dj,REGEX_SPECIAL_CHARS:pj,REGEX_SPECIAL_CHARS_GLOBAL:hj}=sr();at.isObject=i=>i!==null&&typeof i=="object"&&!Array.isArray(i);at.hasRegexChars=i=>pj.test(i);at.isRegexChar=i=>i.length===1&&at.hasRegexChars(i);at.escapeRegex=i=>i.replace(hj,"\\$1");at.toPosixSlashes=i=>i.replace(fj,"/");at.removeBackslashes=i=>i.replace(dj,t=>t==="\\"?"":t);at.supportsLookbehinds=()=>{let i=process.version.slice(1).split(".").map(Number);return i.length===3&&i[0]>=9||i[0]===8&&i[1]>=10};at.isWindows=i=>i&&typeof i.windows=="boolean"?i.windows:_j===!0||cj.sep==="\\";at.escapeLast=(i,t,e)=>{let u=i.lastIndexOf(t,e);return u===-1?i:i[u-1]==="\\"?at.escapeLast(i,t,u-1):`${i.slice(0,u)}\\${i.slice(u)}`};at.removePrefix=(i,t={})=>{let e=i;return e.startsWith("./")&&(e=e.slice(2),t.prefix="./"),e};at.wrapOutput=(i,t={},e={})=>{let u=e.contains?"":"^",d=e.contains?"":"$",y=`${u}(?:${i})${d}`;return t.negated===!0&&(y=`(?:^(?!${y}).*$)`),y}});var J_=z((xw,X_)=>{"use strict";var Y_=or(),{CHAR_ASTERISK:ls,CHAR_AT:mj,CHAR_BACKWARD_SLASH:ur,CHAR_COMMA:yj,CHAR_DOT:cs,CHAR_EXCLAMATION_MARK:_s,CHAR_FORWARD_SLASH:Q_,CHAR_LEFT_CURLY_BRACE:fs,CHAR_LEFT_PARENTHESES:ds,CHAR_LEFT_SQUARE_BRACKET:gj,CHAR_PLUS:vj,CHAR_QUESTION_MARK:K_,CHAR_RIGHT_CURLY_BRACE:jj,CHAR_RIGHT_PARENTHESES:G_,CHAR_RIGHT_SQUARE_BRACKET:bj}=sr(),V_=i=>i===Q_||i===ur,z_=i=>{i.isPrefix!==!0&&(i.depth=i.isGlobstar?1/0:1)},wj=(i,t)=>{let e=t||{},u=i.length-1,d=e.parts===!0||e.scanToEnd===!0,y=[],v=[],E=[],A=i,N=-1,D=0,U=0,I=!1,X=!1,V=!1,Q=!1,ee=!1,ne=!1,be=!1,Ae=!1,Ie=!1,ae=!1,je=0,se,H,Z={value:"",depth:0,isGlob:!1},oe=()=>N>=u,M=()=>A.charCodeAt(N+1),fe=()=>(se=H,A.charCodeAt(++N));for(;N<u;){H=fe();let Ne;if(H===ur){be=Z.backslashes=!0,H=fe(),H===fs&&(ne=!0);continue}if(ne===!0||H===fs){for(je++;oe()!==!0&&(H=fe());){if(H===ur){be=Z.backslashes=!0,fe();continue}if(H===fs){je++;continue}if(ne!==!0&&H===cs&&(H=fe())===cs){if(I=Z.isBrace=!0,V=Z.isGlob=!0,ae=!0,d===!0)continue;break}if(ne!==!0&&H===yj){if(I=Z.isBrace=!0,V=Z.isGlob=!0,ae=!0,d===!0)continue;break}if(H===jj&&(je--,je===0)){ne=!1,I=Z.isBrace=!0,ae=!0;break}}if(d===!0)continue;break}if(H===Q_){if(y.push(N),v.push(Z),Z={value:"",depth:0,isGlob:!1},ae===!0)continue;if(se===cs&&N===D+1){D+=2;continue}U=N+1;continue}if(e.noext!==!0&&(H===vj||H===mj||H===ls||H===K_||H===_s)===!0&&M()===ds){if(V=Z.isGlob=!0,Q=Z.isExtglob=!0,ae=!0,H===_s&&N===D&&(Ie=!0),d===!0){for(;oe()!==!0&&(H=fe());){if(H===ur){be=Z.backslashes=!0,H=fe();continue}if(H===G_){V=Z.isGlob=!0,ae=!0;break}}continue}break}if(H===ls){if(se===ls&&(ee=Z.isGlobstar=!0),V=Z.isGlob=!0,ae=!0,d===!0)continue;break}if(H===K_){if(V=Z.isGlob=!0,ae=!0,d===!0)continue;break}if(H===gj){for(;oe()!==!0&&(Ne=fe());){if(Ne===ur){be=Z.backslashes=!0,fe();continue}if(Ne===bj){X=Z.isBracket=!0,V=Z.isGlob=!0,ae=!0;break}}if(d===!0)continue;break}if(e.nonegate!==!0&&H===_s&&N===D){Ae=Z.negated=!0,D++;continue}if(e.noparen!==!0&&H===ds){if(V=Z.isGlob=!0,d===!0){for(;oe()!==!0&&(H=fe());){if(H===ds){be=Z.backslashes=!0,H=fe();continue}if(H===G_){ae=!0;break}}continue}break}if(V===!0){if(ae=!0,d===!0)continue;break}}e.noext===!0&&(Q=!1,V=!1);let de=A,Be="",T="";D>0&&(Be=A.slice(0,D),A=A.slice(D),U-=D),de&&V===!0&&U>0?(de=A.slice(0,U),T=A.slice(U)):V===!0?(de="",T=A):de=A,de&&de!==""&&de!=="/"&&de!==A&&V_(de.charCodeAt(de.length-1))&&(de=de.slice(0,-1)),e.unescape===!0&&(T&&(T=Y_.removeBackslashes(T)),de&&be===!0&&(de=Y_.removeBackslashes(de)));let F={prefix:Be,input:i,start:D,base:de,glob:T,isBrace:I,isBracket:X,isGlob:V,isExtglob:Q,isGlobstar:ee,negated:Ae,negatedExtglob:Ie};if(e.tokens===!0&&(F.maxDepth=0,V_(H)||v.push(Z),F.tokens=v),e.parts===!0||e.tokens===!0){let Ne;for(let he=0;he<y.length;he++){let Ue=Ne?Ne+1:D,Ge=y[he],We=i.slice(Ue,Ge);e.tokens&&(he===0&&D!==0?(v[he].isPrefix=!0,v[he].value=Be):v[he].value=We,z_(v[he]),F.maxDepth+=v[he].depth),(he!==0||We!=="")&&E.push(We),Ne=Ge}if(Ne&&Ne+1<i.length){let he=i.slice(Ne+1);E.push(he),e.tokens&&(v[v.length-1].value=he,z_(v[v.length-1]),F.maxDepth+=v[v.length-1].depth)}F.slashes=y,F.parts=E}return F};X_.exports=wj});var rf=z((Ow,tf)=>{"use strict";var xr=sr(),ut=or(),{MAX_LENGTH:Or,POSIX_REGEX_SOURCE:kj,REGEX_NON_SPECIAL_CHARS:Cj,REGEX_SPECIAL_CHARS_BACKREF:Sj,REPLACEMENTS:Z_}=xr,Ej=(i,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...i,t);i.sort();let e=`[${i.join("-")}]`;try{new RegExp(e)}catch{return i.map(d=>ut.escapeRegex(d)).join("..")}return e},Ai=(i,t)=>`Missing ${i}: "${t}" - use "\\\\${t}" to match literal characters`,ef=(i,t)=>{if(typeof i!="string")throw new TypeError("Expected a string");i=Z_[i]||i;let e=Re({},t),u=typeof e.maxLength=="number"?Math.min(Or,e.maxLength):Or,d=i.length;if(d>u)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${u}`);let y={type:"bos",value:"",output:e.prepend||""},v=[y],E=e.capture?"":"?:",A=ut.isWindows(t),N=xr.globChars(A),D=xr.extglobChars(N),{DOT_LITERAL:U,PLUS_LITERAL:I,SLASH_LITERAL:X,ONE_CHAR:V,DOTS_SLASH:Q,NO_DOT:ee,NO_DOT_SLASH:ne,NO_DOTS_SLASH:be,QMARK:Ae,QMARK_NO_DOT:Ie,STAR:ae,START_ANCHOR:je}=N,se=K=>`(${E}(?:(?!${je}${K.dot?Q:U}).)*?)`,H=e.dot?"":ee,Z=e.dot?Ae:Ie,oe=e.bash===!0?se(e):ae;e.capture&&(oe=`(${oe})`),typeof e.noext=="boolean"&&(e.noextglob=e.noext);let M={input:i,index:-1,start:0,dot:e.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};i=ut.removePrefix(i,M),d=i.length;let fe=[],de=[],Be=[],T=y,F,Ne=()=>M.index===d-1,he=M.peek=(K=1)=>i[M.index+K],Ue=M.advance=()=>i[++M.index]||"",Ge=()=>i.slice(M.index+1),We=(K="",pe=0)=>{M.consumed+=K,M.index+=pe},Ve=K=>{M.output+=K.output!=null?K.output:K.value,We(K.value)},$t=()=>{let K=1;for(;he()==="!"&&(he(2)!=="("||he(3)==="?");)Ue(),M.start++,K++;return K%2===0?!1:(M.negated=!0,M.start++,!0)},yt=K=>{M[K]++,Be.push(K)},ht=K=>{M[K]--,Be.pop()},_e=K=>{if(T.type==="globstar"){let pe=M.braces>0&&(K.type==="comma"||K.type==="brace"),P=K.extglob===!0||fe.length&&(K.type==="pipe"||K.type==="paren");K.type!=="slash"&&K.type!=="paren"&&!pe&&!P&&(M.output=M.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=oe,M.output+=T.output)}if(fe.length&&K.type!=="paren"&&(fe[fe.length-1].inner+=K.value),(K.value||K.output)&&Ve(K),T&&T.type==="text"&&K.type==="text"){T.value+=K.value,T.output=(T.output||"")+K.value;return}K.prev=T,v.push(K),T=K},ct=(K,pe)=>{let P=qe(Re({},D[pe]),{conditions:1,inner:""});P.prev=T,P.parens=M.parens,P.output=M.output;let ue=(e.capture?"(":"")+P.open;yt("parens"),_e({type:K,value:pe,output:M.output?"":V}),_e({type:"paren",extglob:!0,value:Ue(),output:ue}),fe.push(P)},_t=K=>{let pe=K.close+(e.capture?")":""),P;if(K.type==="negate"){let ue=oe;K.inner&&K.inner.length>1&&K.inner.includes("/")&&(ue=se(e)),(ue!==oe||Ne()||/^\)+$/.test(Ge()))&&(pe=K.close=`)$))${ue}`),K.inner.includes("*")&&(P=Ge())&&/^\.[^\\/.]+$/.test(P)&&(pe=K.close=`)${P})${ue})`),K.prev.type==="bos"&&(M.negatedExtglob=!0)}_e({type:"paren",extglob:!0,value:F,output:pe}),ht("parens")};if(e.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(i)){let K=!1,pe=i.replace(Sj,(P,ue,Pe,$,Me,ri)=>$==="\\"?(K=!0,P):$==="?"?ue?ue+$+(Me?Ae.repeat(Me.length):""):ri===0?Z+(Me?Ae.repeat(Me.length):""):Ae.repeat(Pe.length):$==="."?U.repeat(Pe.length):$==="*"?ue?ue+$+(Me?oe:""):oe:ue?P:`\\${P}`);return K===!0&&(e.unescape===!0?pe=pe.replace(/\\/g,""):pe=pe.replace(/\\+/g,P=>P.length%2===0?"\\\\":P?"\\":"")),pe===i&&e.contains===!0?(M.output=i,M):(M.output=ut.wrapOutput(pe,M,t),M)}for(;!Ne();){if(F=Ue(),F==="\0")continue;if(F==="\\"){let P=he();if(P==="/"&&e.bash!==!0||P==="."||P===";")continue;if(!P){F+="\\",_e({type:"text",value:F});continue}let ue=/^\\+/.exec(Ge()),Pe=0;if(ue&&ue[0].length>2&&(Pe=ue[0].length,M.index+=Pe,Pe%2!==0&&(F+="\\")),e.unescape===!0?F=Ue():F+=Ue(),M.brackets===0){_e({type:"text",value:F});continue}}if(M.brackets>0&&(F!=="]"||T.value==="["||T.value==="[^")){if(e.posix!==!1&&F===":"){let P=T.value.slice(1);if(P.includes("[")&&(T.posix=!0,P.includes(":"))){let ue=T.value.lastIndexOf("["),Pe=T.value.slice(0,ue),$=T.value.slice(ue+2),Me=kj[$];if(Me){T.value=Pe+Me,M.backtrack=!0,Ue(),!y.output&&v.indexOf(T)===1&&(y.output=V);continue}}}(F==="["&&he()!==":"||F==="-"&&he()==="]")&&(F=`\\${F}`),F==="]"&&(T.value==="["||T.value==="[^")&&(F=`\\${F}`),e.posix===!0&&F==="!"&&T.value==="["&&(F="^"),T.value+=F,Ve({value:F});continue}if(M.quotes===1&&F!=='"'){F=ut.escapeRegex(F),T.value+=F,Ve({value:F});continue}if(F==='"'){M.quotes=M.quotes===1?0:1,e.keepQuotes===!0&&_e({type:"text",value:F});continue}if(F==="("){yt("parens"),_e({type:"paren",value:F});continue}if(F===")"){if(M.parens===0&&e.strictBrackets===!0)throw new SyntaxError(Ai("opening","("));let P=fe[fe.length-1];if(P&&M.parens===P.parens+1){_t(fe.pop());continue}_e({type:"paren",value:F,output:M.parens?")":"\\)"}),ht("parens");continue}if(F==="["){if(e.nobracket===!0||!Ge().includes("]")){if(e.nobracket!==!0&&e.strictBrackets===!0)throw new SyntaxError(Ai("closing","]"));F=`\\${F}`}else yt("brackets");_e({type:"bracket",value:F});continue}if(F==="]"){if(e.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){_e({type:"text",value:F,output:`\\${F}`});continue}if(M.brackets===0){if(e.strictBrackets===!0)throw new SyntaxError(Ai("opening","["));_e({type:"text",value:F,output:`\\${F}`});continue}ht("brackets");let P=T.value.slice(1);if(T.posix!==!0&&P[0]==="^"&&!P.includes("/")&&(F=`/${F}`),T.value+=F,Ve({value:F}),e.literalBrackets===!1||ut.hasRegexChars(P))continue;let ue=ut.escapeRegex(T.value);if(M.output=M.output.slice(0,-T.value.length),e.literalBrackets===!0){M.output+=ue,T.value=ue;continue}T.value=`(${E}${ue}|${T.value})`,M.output+=T.value;continue}if(F==="{"&&e.nobrace!==!0){yt("braces");let P={type:"brace",value:F,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};de.push(P),_e(P);continue}if(F==="}"){let P=de[de.length-1];if(e.nobrace===!0||!P){_e({type:"text",value:F,output:F});continue}let ue=")";if(P.dots===!0){let Pe=v.slice(),$=[];for(let Me=Pe.length-1;Me>=0&&(v.pop(),Pe[Me].type!=="brace");Me--)Pe[Me].type!=="dots"&&$.unshift(Pe[Me].value);ue=Ej($,e),M.backtrack=!0}if(P.comma!==!0&&P.dots!==!0){let Pe=M.output.slice(0,P.outputIndex),$=M.tokens.slice(P.tokensIndex);P.value=P.output="\\{",F=ue="\\}",M.output=Pe;for(let Me of $)M.output+=Me.output||Me.value}_e({type:"brace",value:F,output:ue}),ht("braces"),de.pop();continue}if(F==="|"){fe.length>0&&fe[fe.length-1].conditions++,_e({type:"text",value:F});continue}if(F===","){let P=F,ue=de[de.length-1];ue&&Be[Be.length-1]==="braces"&&(ue.comma=!0,P="|"),_e({type:"comma",value:F,output:P});continue}if(F==="/"){if(T.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",v.pop(),T=y;continue}_e({type:"slash",value:F,output:X});continue}if(F==="."){if(M.braces>0&&T.type==="dot"){T.value==="."&&(T.output=U);let P=de[de.length-1];T.type="dots",T.output+=F,T.value+=F,P.dots=!0;continue}if(M.braces+M.parens===0&&T.type!=="bos"&&T.type!=="slash"){_e({type:"text",value:F,output:U});continue}_e({type:"dot",value:F,output:U});continue}if(F==="?"){if(!(T&&T.value==="(")&&e.noextglob!==!0&&he()==="("&&he(2)!=="?"){ct("qmark",F);continue}if(T&&T.type==="paren"){let ue=he(),Pe=F;if(ue==="<"&&!ut.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(T.value==="("&&!/[!=<:]/.test(ue)||ue==="<"&&!/<([!=]|\w+>)/.test(Ge()))&&(Pe=`\\${F}`),_e({type:"text",value:F,output:Pe});continue}if(e.dot!==!0&&(T.type==="slash"||T.type==="bos")){_e({type:"qmark",value:F,output:Ie});continue}_e({type:"qmark",value:F,output:Ae});continue}if(F==="!"){if(e.noextglob!==!0&&he()==="("&&(he(2)!=="?"||!/[!=<:]/.test(he(3)))){ct("negate",F);continue}if(e.nonegate!==!0&&M.index===0){$t();continue}}if(F==="+"){if(e.noextglob!==!0&&he()==="("&&he(2)!=="?"){ct("plus",F);continue}if(T&&T.value==="("||e.regex===!1){_e({type:"plus",value:F,output:I});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||M.parens>0){_e({type:"plus",value:F});continue}_e({type:"plus",value:I});continue}if(F==="@"){if(e.noextglob!==!0&&he()==="("&&he(2)!=="?"){_e({type:"at",extglob:!0,value:F,output:""});continue}_e({type:"text",value:F});continue}if(F!=="*"){(F==="$"||F==="^")&&(F=`\\${F}`);let P=Cj.exec(Ge());P&&(F+=P[0],M.index+=P[0].length),_e({type:"text",value:F});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=F,T.output=oe,M.backtrack=!0,M.globstar=!0,We(F);continue}let K=Ge();if(e.noextglob!==!0&&/^\([^?]/.test(K)){ct("star",F);continue}if(T.type==="star"){if(e.noglobstar===!0){We(F);continue}let P=T.prev,ue=P.prev,Pe=P.type==="slash"||P.type==="bos",$=ue&&(ue.type==="star"||ue.type==="globstar");if(e.bash===!0&&(!Pe||K[0]&&K[0]!=="/")){_e({type:"star",value:F,output:""});continue}let Me=M.braces>0&&(P.type==="comma"||P.type==="brace"),ri=fe.length&&(P.type==="pipe"||P.type==="paren");if(!Pe&&P.type!=="paren"&&!Me&&!ri){_e({type:"star",value:F,output:""});continue}for(;K.slice(0,3)==="/**";){let St=i[M.index+4];if(St&&St!=="/")break;K=K.slice(3),We("/**",3)}if(P.type==="bos"&&Ne()){T.type="globstar",T.value+=F,T.output=se(e),M.output=T.output,M.globstar=!0,We(F);continue}if(P.type==="slash"&&P.prev.type!=="bos"&&!$&&Ne()){M.output=M.output.slice(0,-(P.output+T.output).length),P.output=`(?:${P.output}`,T.type="globstar",T.output=se(e)+(e.strictSlashes?")":"|$)"),T.value+=F,M.globstar=!0,M.output+=P.output+T.output,We(F);continue}if(P.type==="slash"&&P.prev.type!=="bos"&&K[0]==="/"){let St=K[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(P.output+T.output).length),P.output=`(?:${P.output}`,T.type="globstar",T.output=`${se(e)}${X}|${X}${St})`,T.value+=F,M.output+=P.output+T.output,M.globstar=!0,We(F+Ue()),_e({type:"slash",value:"/",output:""});continue}if(P.type==="bos"&&K[0]==="/"){T.type="globstar",T.value+=F,T.output=`(?:^|${X}|${se(e)}${X})`,M.output=T.output,M.globstar=!0,We(F+Ue()),_e({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-T.output.length),T.type="globstar",T.output=se(e),T.value+=F,M.output+=T.output,M.globstar=!0,We(F);continue}let pe={type:"star",value:F,output:oe};if(e.bash===!0){pe.output=".*?",(T.type==="bos"||T.type==="slash")&&(pe.output=H+pe.output),_e(pe);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&e.regex===!0){pe.output=F,_e(pe);continue}(M.index===M.start||T.type==="slash"||T.type==="dot")&&(T.type==="dot"?(M.output+=ne,T.output+=ne):e.dot===!0?(M.output+=be,T.output+=be):(M.output+=H,T.output+=H),he()!=="*"&&(M.output+=V,T.output+=V)),_e(pe)}for(;M.brackets>0;){if(e.strictBrackets===!0)throw new SyntaxError(Ai("closing","]"));M.output=ut.escapeLast(M.output,"["),ht("brackets")}for(;M.parens>0;){if(e.strictBrackets===!0)throw new SyntaxError(Ai("closing",")"));M.output=ut.escapeLast(M.output,"("),ht("parens")}for(;M.braces>0;){if(e.strictBrackets===!0)throw new SyntaxError(Ai("closing","}"));M.output=ut.escapeLast(M.output,"{"),ht("braces")}if(e.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket")&&_e({type:"maybe_slash",value:"",output:`${X}?`}),M.backtrack===!0){M.output="";for(let K of M.tokens)M.output+=K.output!=null?K.output:K.value,K.suffix&&(M.output+=K.suffix)}return M};ef.fastpaths=(i,t)=>{let e=Re({},t),u=typeof e.maxLength=="number"?Math.min(Or,e.maxLength):Or,d=i.length;if(d>u)throw new SyntaxError(`Input length: ${d}, exceeds maximum allowed length: ${u}`);i=Z_[i]||i;let y=ut.isWindows(t),{DOT_LITERAL:v,SLASH_LITERAL:E,ONE_CHAR:A,DOTS_SLASH:N,NO_DOT:D,NO_DOTS:U,NO_DOTS_SLASH:I,STAR:X,START_ANCHOR:V}=xr.globChars(y),Q=e.dot?U:D,ee=e.dot?I:D,ne=e.capture?"":"?:",be={negated:!1,prefix:""},Ae=e.bash===!0?".*?":X;e.capture&&(Ae=`(${Ae})`);let Ie=H=>H.noglobstar===!0?Ae:`(${ne}(?:(?!${V}${H.dot?N:v}).)*?)`,ae=H=>{switch(H){case"*":return`${Q}${A}${Ae}`;case".*":return`${v}${A}${Ae}`;case"*.*":return`${Q}${Ae}${v}${A}${Ae}`;case"*/*":return`${Q}${Ae}${E}${A}${ee}${Ae}`;case"**":return Q+Ie(e);case"**/*":return`(?:${Q}${Ie(e)}${E})?${ee}${A}${Ae}`;case"**/*.*":return`(?:${Q}${Ie(e)}${E})?${ee}${Ae}${v}${A}${Ae}`;case"**/.*":return`(?:${Q}${Ie(e)}${E})?${v}${A}${Ae}`;default:{let Z=/^(.*?)\.(\w+)$/.exec(H);if(!Z)return;let oe=ae(Z[1]);return oe?oe+v+Z[2]:void 0}}},je=ut.removePrefix(i,be),se=ae(je);return se&&e.strictSlashes!==!0&&(se+=`${E}?`),se};tf.exports=ef});var af=z((Nw,nf)=>{"use strict";var Aj=require("path"),Rj=J_(),ps=rf(),hs=or(),Dj=sr(),Tj=i=>i&&typeof i=="object"&&!Array.isArray(i),$e=(i,t,e=!1)=>{if(Array.isArray(i)){let D=i.map(I=>$e(I,t,e));return I=>{for(let X of D){let V=X(I);if(V)return V}return!1}}let u=Tj(i)&&i.tokens&&i.input;if(i===""||typeof i!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=t||{},y=hs.isWindows(t),v=u?$e.compileRe(i,t):$e.makeRe(i,t,!1,!0),E=v.state;delete v.state;let A=()=>!1;if(d.ignore){let D=qe(Re({},t),{ignore:null,onMatch:null,onResult:null});A=$e(d.ignore,D,e)}let N=(D,U=!1)=>{let{isMatch:I,match:X,output:V}=$e.test(D,v,t,{glob:i,posix:y}),Q={glob:i,state:E,regex:v,posix:y,input:D,output:V,match:X,isMatch:I};return typeof d.onResult=="function"&&d.onResult(Q),I===!1?(Q.isMatch=!1,U?Q:!1):A(D)?(typeof d.onIgnore=="function"&&d.onIgnore(Q),Q.isMatch=!1,U?Q:!1):(typeof d.onMatch=="function"&&d.onMatch(Q),U?Q:!0)};return e&&(N.state=E),N};$e.test=(i,t,e,{glob:u,posix:d}={})=>{if(typeof i!="string")throw new TypeError("Expected input to be a string");if(i==="")return{isMatch:!1,output:""};let y=e||{},v=y.format||(d?hs.toPosixSlashes:null),E=i===u,A=E&&v?v(i):i;return E===!1&&(A=v?v(i):i,E=A===u),(E===!1||y.capture===!0)&&(y.matchBase===!0||y.basename===!0?E=$e.matchBase(i,t,e,d):E=t.exec(A)),{isMatch:Boolean(E),match:E,output:A}};$e.matchBase=(i,t,e,u=hs.isWindows(e))=>(t instanceof RegExp?t:$e.makeRe(t,e)).test(Aj.basename(i));$e.isMatch=(i,t,e)=>$e(t,e)(i);$e.parse=(i,t)=>Array.isArray(i)?i.map(e=>$e.parse(e,t)):ps(i,qe(Re({},t),{fastpaths:!1}));$e.scan=(i,t)=>Rj(i,t);$e.compileRe=(i,t,e=!1,u=!1)=>{if(e===!0)return i.output;let d=t||{},y=d.contains?"":"^",v=d.contains?"":"$",E=`${y}(?:${i.output})${v}`;i&&i.negated===!0&&(E=`^(?!${E}).*$`);let A=$e.toRegex(E,t);return u===!0&&(A.state=i),A};$e.makeRe=(i,t={},e=!1,u=!1)=>{if(!i||typeof i!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(i[0]==="."||i[0]==="*")&&(d.output=ps.fastpaths(i,t)),d.output||(d=ps(i,t)),$e.compileRe(d,t,e,u)};$e.toRegex=(i,t)=>{try{let e=t||{};return new RegExp(i,e.flags||(e.nocase?"i":""))}catch(e){if(t&&t.debug===!0)throw e;return/$^/}};$e.constants=Dj;nf.exports=$e});var of=z((Lw,sf)=>{"use strict";sf.exports=af()});var ff=z((Bw,_f)=>{"use strict";var lf=require("util"),cf=B_(),wt=of(),ms=or(),uf=i=>i===""||i==="./",Oe=(i,t,e)=>{t=[].concat(t),i=[].concat(i);let u=new Set,d=new Set,y=new Set,v=0,E=D=>{y.add(D.output),e&&e.onResult&&e.onResult(D)};for(let D=0;D<t.length;D++){let U=wt(String(t[D]),qe(Re({},e),{onResult:E}),!0),I=U.state.negated||U.state.negatedExtglob;I&&v++;for(let X of i){let V=U(X,!0);!(I?!V.isMatch:V.isMatch)||(I?u.add(V.output):(u.delete(V.output),d.add(V.output)))}}let N=(v===t.length?[...y]:[...d]).filter(D=>!u.has(D));if(e&&N.length===0){if(e.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(e.nonull===!0||e.nullglob===!0)return e.unescape?t.map(D=>D.replace(/\\/g,"")):t}return N};Oe.match=Oe;Oe.matcher=(i,t)=>wt(i,t);Oe.isMatch=(i,t,e)=>wt(t,e)(i);Oe.any=Oe.isMatch;Oe.not=(i,t,e={})=>{t=[].concat(t).map(String);let u=new Set,d=[],y=E=>{e.onResult&&e.onResult(E),d.push(E.output)},v=Oe(i,t,qe(Re({},e),{onResult:y}));for(let E of d)v.includes(E)||u.add(E);return[...u]};Oe.contains=(i,t,e)=>{if(typeof i!="string")throw new TypeError(`Expected a string: "${lf.inspect(i)}"`);if(Array.isArray(t))return t.some(u=>Oe.contains(i,u,e));if(typeof t=="string"){if(uf(i)||uf(t))return!1;if(i.includes(t)||i.startsWith("./")&&i.slice(2).includes(t))return!0}return Oe.isMatch(i,t,qe(Re({},e),{contains:!0}))};Oe.matchKeys=(i,t,e)=>{if(!ms.isObject(i))throw new TypeError("Expected the first argument to be an object");let u=Oe(Object.keys(i),t,e),d={};for(let y of u)d[y]=i[y];return d};Oe.some=(i,t,e)=>{let u=[].concat(i);for(let d of[].concat(t)){let y=wt(String(d),e);if(u.some(v=>y(v)))return!0}return!1};Oe.every=(i,t,e)=>{let u=[].concat(i);for(let d of[].concat(t)){let y=wt(String(d),e);if(!u.every(v=>y(v)))return!1}return!0};Oe.all=(i,t,e)=>{if(typeof i!="string")throw new TypeError(`Expected a string: "${lf.inspect(i)}"`);return[].concat(t).every(u=>wt(u,e)(i))};Oe.capture=(i,t,e)=>{let u=ms.isWindows(e),y=wt.makeRe(String(i),qe(Re({},e),{capture:!0})).exec(u?ms.toPosixSlashes(t):t);if(y)return y.slice(1).map(v=>v===void 0?"":v)};Oe.makeRe=(...i)=>wt.makeRe(...i);Oe.scan=(...i)=>wt.scan(...i);Oe.parse=(i,t)=>{let e=[];for(let u of[].concat(i||[]))for(let d of cf(String(u),t))e.push(wt.parse(d,t));return e};Oe.braces=(i,t)=>{if(typeof i!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(i)?[i]:cf(i,t)};Oe.braceExpand=(i,t)=>{if(typeof i!="string")throw new TypeError("Expected a string");return Oe.braces(i,qe(Re({},t),{expand:!0}))};_f.exports=Oe});var jf=z(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.matchAny=ce.convertPatternsToRe=ce.makeRe=ce.getPatternParts=ce.expandBraceExpansion=ce.expandPatternsWithBraceExpansion=ce.isAffectDepthOfReadingPattern=ce.endsWithSlashGlobStar=ce.hasGlobStar=ce.getBaseDirectory=ce.isPatternRelatedToParentDirectory=ce.getPatternsOutsideCurrentDirectory=ce.getPatternsInsideCurrentDirectory=ce.getPositivePatterns=ce.getNegativePatterns=ce.isPositivePattern=ce.isNegativePattern=ce.convertToNegativePattern=ce.convertToPositivePattern=ce.isDynamicPattern=ce.isStaticPattern=void 0;var Pj=require("path"),Fj=i_(),ys=ff(),df="**",Ij="\\",Mj=/[*?]|^!/,xj=/\[[^[]*]/,Oj=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Nj=/[!*+?@]\([^(]*\)/,Lj=/,|\.\./;function pf(i,t={}){return!hf(i,t)}ce.isStaticPattern=pf;function hf(i,t={}){return i===""?!1:!!(t.caseSensitiveMatch===!1||i.includes(Ij)||Mj.test(i)||xj.test(i)||Oj.test(i)||t.extglob!==!1&&Nj.test(i)||t.braceExpansion!==!1&&Bj(i))}ce.isDynamicPattern=hf;function Bj(i){let t=i.indexOf("{");if(t===-1)return!1;let e=i.indexOf("}",t+1);if(e===-1)return!1;let u=i.slice(t,e);return Lj.test(u)}function Uj(i){return Nr(i)?i.slice(1):i}ce.convertToPositivePattern=Uj;function Hj(i){return"!"+i}ce.convertToNegativePattern=Hj;function Nr(i){return i.startsWith("!")&&i[1]!=="("}ce.isNegativePattern=Nr;function mf(i){return!Nr(i)}ce.isPositivePattern=mf;function $j(i){return i.filter(Nr)}ce.getNegativePatterns=$j;function Wj(i){return i.filter(mf)}ce.getPositivePatterns=Wj;function qj(i){return i.filter(t=>!gs(t))}ce.getPatternsInsideCurrentDirectory=qj;function Yj(i){return i.filter(gs)}ce.getPatternsOutsideCurrentDirectory=Yj;function gs(i){return i.startsWith("..")||i.startsWith("./..")}ce.isPatternRelatedToParentDirectory=gs;function Kj(i){return Fj(i,{flipBackslashes:!1})}ce.getBaseDirectory=Kj;function Gj(i){return i.includes(df)}ce.hasGlobStar=Gj;function yf(i){return i.endsWith("/"+df)}ce.endsWithSlashGlobStar=yf;function Vj(i){let t=Pj.basename(i);return yf(i)||pf(t)}ce.isAffectDepthOfReadingPattern=Vj;function zj(i){return i.reduce((t,e)=>t.concat(gf(e)),[])}ce.expandPatternsWithBraceExpansion=zj;function gf(i){return ys.braces(i,{expand:!0,nodupes:!0})}ce.expandBraceExpansion=gf;function Qj(i,t){let{parts:e}=ys.scan(i,Object.assign(Object.assign({},t),{parts:!0}));return e.length===0&&(e=[i]),e[0].startsWith("/")&&(e[0]=e[0].slice(1),e.unshift("")),e}ce.getPatternParts=Qj;function vf(i,t){return ys.makeRe(i,t)}ce.makeRe=vf;function Xj(i,t){return i.map(e=>vf(e,t))}ce.convertPatternsToRe=Xj;function Jj(i,t){return t.some(e=>e.test(i))}ce.matchAny=Jj});var Cf=z((Hw,kf)=>{"use strict";var Zj=require("stream"),bf=Zj.PassThrough,eb=Array.prototype.slice;kf.exports=tb;function tb(){let i=[],t=eb.call(arguments),e=!1,u=t[t.length-1];u&&!Array.isArray(u)&&u.pipe==null?t.pop():u={};let d=u.end!==!1,y=u.pipeError===!0;u.objectMode==null&&(u.objectMode=!0),u.highWaterMark==null&&(u.highWaterMark=64*1024);let v=bf(u);function E(){for(let D=0,U=arguments.length;D<U;D++)i.push(wf(arguments[D],u));return A(),this}function A(){if(e)return;e=!0;let D=i.shift();if(!D){process.nextTick(N);return}Array.isArray(D)||(D=[D]);let U=D.length+1;function I(){--U>0||(e=!1,A())}function X(V){function Q(){V.removeListener("merge2UnpipeEnd",Q),V.removeListener("end",Q),y&&V.removeListener("error",ee),I()}function ee(ne){v.emit("error",ne)}if(V._readableState.endEmitted)return I();V.on("merge2UnpipeEnd",Q),V.on("end",Q),y&&V.on("error",ee),V.pipe(v,{end:!1}),V.resume()}for(let V=0;V<D.length;V++)X(D[V]);I()}function N(){e=!1,v.emit("queueDrain"),d&&v.end()}return v.setMaxListeners(0),v.add=E,v.on("unpipe",function(D){D.emit("merge2UnpipeEnd")}),t.length&&E.apply(null,t),v}function wf(i,t){if(Array.isArray(i))for(let e=0,u=i.length;e<u;e++)i[e]=wf(i[e],t);else{if(!i._readableState&&i.pipe&&(i=i.pipe(bf(t))),!i._readableState||!i.pause||!i.pipe)throw new Error("Only readable stream can be merged.");i.pause()}return i}});var Ef=z(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.merge=void 0;var ib=Cf();function rb(i){let t=ib(i);return i.forEach(e=>{e.once("error",u=>t.emit("error",u))}),t.once("close",()=>Sf(i)),t.once("end",()=>Sf(i)),t}Lr.merge=rb;function Sf(i){i.forEach(t=>t.emit("close"))}});var Af=z(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.isEmpty=Ri.isString=void 0;function nb(i){return typeof i=="string"}Ri.isString=nb;function ab(i){return i===""}Ri.isEmpty=ab});var Tt=z(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.string=Xe.stream=Xe.pattern=Xe.path=Xe.fs=Xe.errno=Xe.array=void 0;var sb=Yc();Xe.array=sb;var ob=Kc();Xe.errno=ob;var ub=Vc();Xe.fs=ub;var lb=zc();Xe.path=lb;var cb=jf();Xe.pattern=cb;var _b=Ef();Xe.stream=_b;var fb=Af();Xe.string=fb});var Tf=z(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.convertPatternGroupToTask=Je.convertPatternGroupsToTasks=Je.groupPatternsByBaseDirectory=Je.getNegativePatternsAsPositive=Je.getPositivePatterns=Je.convertPatternsToTasks=Je.generate=void 0;var Pt=Tt();function db(i,t){let e=Rf(i),u=Df(i,t.ignore),d=e.filter(A=>Pt.pattern.isStaticPattern(A,t)),y=e.filter(A=>Pt.pattern.isDynamicPattern(A,t)),v=vs(d,u,!1),E=vs(y,u,!0);return v.concat(E)}Je.generate=db;function vs(i,t,e){let u=[],d=Pt.pattern.getPatternsOutsideCurrentDirectory(i),y=Pt.pattern.getPatternsInsideCurrentDirectory(i),v=js(d),E=js(y);return u.push(...bs(v,t,e)),"."in E?u.push(ws(".",y,t,e)):u.push(...bs(E,t,e)),u}Je.convertPatternsToTasks=vs;function Rf(i){return Pt.pattern.getPositivePatterns(i)}Je.getPositivePatterns=Rf;function Df(i,t){return Pt.pattern.getNegativePatterns(i).concat(t).map(Pt.pattern.convertToPositivePattern)}Je.getNegativePatternsAsPositive=Df;function js(i){let t={};return i.reduce((e,u)=>{let d=Pt.pattern.getBaseDirectory(u);return d in e?e[d].push(u):e[d]=[u],e},t)}Je.groupPatternsByBaseDirectory=js;function bs(i,t,e){return Object.keys(i).map(u=>ws(u,i[u],t,e))}Je.convertPatternGroupsToTasks=bs;function ws(i,t,e,u){return{dynamic:u,positive:t,negative:e,base:i,patterns:[].concat(t,e.map(Pt.pattern.convertToNegativePattern))}}Je.convertPatternGroupToTask=ws});var Ff=z(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.removeDuplicateSlashes=Di.transform=void 0;var pb=/(?!^)\/{2,}/g;function hb(i){return i.map(t=>Pf(t))}Di.transform=hb;function Pf(i){return i.replace(pb,"/")}Di.removeDuplicateSlashes=Pf});var Mf=z(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.read=void 0;function mb(i,t,e){t.fs.lstat(i,(u,d)=>{if(u!==null){If(e,u);return}if(!d.isSymbolicLink()||!t.followSymbolicLink){ks(e,d);return}t.fs.stat(i,(y,v)=>{if(y!==null){if(t.throwErrorOnBrokenSymbolicLink){If(e,y);return}ks(e,d);return}t.markSymbolicLink&&(v.isSymbolicLink=()=>!0),ks(e,v)})})}Br.read=mb;function If(i,t){i(t)}function ks(i,t){i(null,t)}});var xf=z(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.read=void 0;function yb(i,t){let e=t.fs.lstatSync(i);if(!e.isSymbolicLink()||!t.followSymbolicLink)return e;try{let u=t.fs.statSync(i);return t.markSymbolicLink&&(u.isSymbolicLink=()=>!0),u}catch(u){if(!t.throwErrorOnBrokenSymbolicLink)return e;throw u}}Ur.read=yb});var Of=z(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.createFileSystemAdapter=Ot.FILE_SYSTEM_ADAPTER=void 0;var Hr=require("fs");Ot.FILE_SYSTEM_ADAPTER={lstat:Hr.lstat,stat:Hr.stat,lstatSync:Hr.lstatSync,statSync:Hr.statSync};function gb(i){return i===void 0?Ot.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ot.FILE_SYSTEM_ADAPTER),i)}Ot.createFileSystemAdapter=gb});var Lf=z(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});var vb=Of(),Nf=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=vb.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}};Cs.default=Nf});var ei=z(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.statSync=Nt.stat=Nt.Settings=void 0;var Bf=Mf(),jb=xf(),Ss=Lf();Nt.Settings=Ss.default;function bb(i,t,e){if(typeof t=="function"){Bf.read(i,Es(),t);return}Bf.read(i,Es(t),e)}Nt.stat=bb;function wb(i,t){let e=Es(t);return jb.read(i,e)}Nt.statSync=wb;function Es(i={}){return i instanceof Ss.default?i:new Ss.default(i)}});var $f=z((Jw,Hf)=>{var Uf;Hf.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):i=>(Uf||(Uf=Promise.resolve())).then(i).catch(t=>setTimeout(()=>{throw t},0))});var qf=z((Zw,Wf)=>{Wf.exports=Cb;var kb=$f();function Cb(i,t){let e,u,d,y=!0;Array.isArray(i)?(e=[],u=i.length):(d=Object.keys(i),e={},u=d.length);function v(A){function N(){t&&t(A,e),t=null}y?kb(N):N()}function E(A,N,D){e[A]=D,(--u===0||N)&&v(N)}u?d?d.forEach(function(A){i[A](function(N,D){E(A,N,D)})}):i.forEach(function(A,N){A(function(D,U){E(N,D,U)})}):v(null),y=!1}});var As=z(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var $r=process.versions.node.split(".");if($r[0]===void 0||$r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Yf=Number.parseInt($r[0],10),Sb=Number.parseInt($r[1],10),Kf=10,Eb=10,Ab=Yf>Kf,Rb=Yf===Kf&&Sb>=Eb;Wr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Ab||Rb});var Vf=z(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.createDirentFromStats=void 0;var Gf=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 Db(i,t){return new Gf(i,t)}qr.createDirentFromStats=Db});var Rs=z(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.fs=void 0;var Tb=Vf();Yr.fs=Tb});var Ds=z(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.joinPathSegments=void 0;function Pb(i,t,e){return i.endsWith(e)?i+t:i+e+t}Kr.joinPathSegments=Pb});var ed=z(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.readdir=Lt.readdirWithFileTypes=Lt.read=void 0;var Fb=ei(),zf=qf(),Ib=As(),Qf=Rs(),Xf=Ds();function Mb(i,t,e){if(!t.stats&&Ib.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Jf(i,t,e);return}Zf(i,t,e)}Lt.read=Mb;function Jf(i,t,e){t.fs.readdir(i,{withFileTypes:!0},(u,d)=>{if(u!==null){Gr(e,u);return}let y=d.map(E=>({dirent:E,name:E.name,path:Xf.joinPathSegments(i,E.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ts(e,y);return}let v=y.map(E=>xb(E,t));zf(v,(E,A)=>{if(E!==null){Gr(e,E);return}Ts(e,A)})})}Lt.readdirWithFileTypes=Jf;function xb(i,t){return e=>{if(!i.dirent.isSymbolicLink()){e(null,i);return}t.fs.stat(i.path,(u,d)=>{if(u!==null){if(t.throwErrorOnBrokenSymbolicLink){e(u);return}e(null,i);return}i.dirent=Qf.fs.createDirentFromStats(i.name,d),e(null,i)})}}function Zf(i,t,e){t.fs.readdir(i,(u,d)=>{if(u!==null){Gr(e,u);return}let y=d.map(v=>{let E=Xf.joinPathSegments(i,v,t.pathSegmentSeparator);return A=>{Fb.stat(E,t.fsStatSettings,(N,D)=>{if(N!==null){A(N);return}let U={name:v,path:E,dirent:Qf.fs.createDirentFromStats(v,D)};t.stats&&(U.stats=D),A(null,U)})}});zf(y,(v,E)=>{if(v!==null){Gr(e,v);return}Ts(e,E)})})}Lt.readdir=Zf;function Gr(i,t){i(t)}function Ts(i,t){i(null,t)}});var ad=z(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.readdir=Bt.readdirWithFileTypes=Bt.read=void 0;var Ob=ei(),Nb=As(),td=Rs(),id=Ds();function Lb(i,t){return!t.stats&&Nb.IS_SUPPORT_READDIR_WITH_FILE_TYPES?rd(i,t):nd(i,t)}Bt.read=Lb;function rd(i,t){return t.fs.readdirSync(i,{withFileTypes:!0}).map(u=>{let d={dirent:u,name:u.name,path:id.joinPathSegments(i,u.name,t.pathSegmentSeparator)};if(d.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let y=t.fs.statSync(d.path);d.dirent=td.fs.createDirentFromStats(d.name,y)}catch(y){if(t.throwErrorOnBrokenSymbolicLink)throw y}return d})}Bt.readdirWithFileTypes=rd;function nd(i,t){return t.fs.readdirSync(i).map(u=>{let d=id.joinPathSegments(i,u,t.pathSegmentSeparator),y=Ob.statSync(d,t.fsStatSettings),v={name:u,path:d,dirent:td.fs.createDirentFromStats(u,y)};return t.stats&&(v.stats=y),v})}Bt.readdir=nd});var sd=z(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.createFileSystemAdapter=Ut.FILE_SYSTEM_ADAPTER=void 0;var Ti=require("fs");Ut.FILE_SYSTEM_ADAPTER={lstat:Ti.lstat,stat:Ti.stat,lstatSync:Ti.lstatSync,statSync:Ti.statSync,readdir:Ti.readdir,readdirSync:Ti.readdirSync};function Bb(i){return i===void 0?Ut.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ut.FILE_SYSTEM_ADAPTER),i)}Ut.createFileSystemAdapter=Bb});var ud=z(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var Ub=require("path"),Hb=ei(),$b=sd(),od=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=$b.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ub.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Hb.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t??e}};Ps.default=od});var Vr=z(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.Settings=Ht.scandirSync=Ht.scandir=void 0;var ld=ed(),Wb=ad(),Fs=ud();Ht.Settings=Fs.default;function qb(i,t,e){if(typeof t=="function"){ld.read(i,Is(),t);return}ld.read(i,Is(t),e)}Ht.scandir=qb;function Yb(i,t){let e=Is(t);return Wb.read(i,e)}Ht.scandirSync=Yb;function Is(i={}){return i instanceof Fs.default?i:new Fs.default(i)}});var _d=z((lk,cd)=>{"use strict";function Kb(i){var t=new i,e=t;function u(){var y=t;return y.next?t=y.next:(t=new i,e=t),y.next=null,y}function d(y){e.next=y,e=y}return{get:u,release:d}}cd.exports=Kb});var dd=z((ck,Ms)=>{"use strict";var Gb=_d();function fd(i,t,e){if(typeof i=="function"&&(e=t,t=i,i=null),e<1)throw new Error("fastqueue concurrency must be greater than 1");var u=Gb(Vb),d=null,y=null,v=0,E=null,A={push:Q,drain:pt,saturated:pt,pause:D,paused:!1,concurrency:e,running:N,resume:X,idle:V,length:U,getQueue:I,unshift:ee,empty:pt,kill:be,killAndDrain:Ae,error:Ie};return A;function N(){return v}function D(){A.paused=!0}function U(){for(var ae=d,je=0;ae;)ae=ae.next,je++;return je}function I(){for(var ae=d,je=[];ae;)je.push(ae.value),ae=ae.next;return je}function X(){if(!!A.paused){A.paused=!1;for(var ae=0;ae<A.concurrency;ae++)v++,ne()}}function V(){return v===0&&A.length()===0}function Q(ae,je){var se=u.get();se.context=i,se.release=ne,se.value=ae,se.callback=je||pt,se.errorHandler=E,v===A.concurrency||A.paused?y?(y.next=se,y=se):(d=se,y=se,A.saturated()):(v++,t.call(i,se.value,se.worked))}function ee(ae,je){var se=u.get();se.context=i,se.release=ne,se.value=ae,se.callback=je||pt,v===A.concurrency||A.paused?d?(se.next=d,d=se):(d=se,y=se,A.saturated()):(v++,t.call(i,se.value,se.worked))}function ne(ae){ae&&u.release(ae);var je=d;je?A.paused?v--:(y===d&&(y=null),d=je.next,je.next=null,t.call(i,je.value,je.worked),y===null&&A.empty()):--v===0&&A.drain()}function be(){d=null,y=null,A.drain=pt}function Ae(){d=null,y=null,A.drain(),A.drain=pt}function Ie(ae){E=ae}}function pt(){}function Vb(){this.value=null,this.callback=pt,this.next=null,this.release=pt,this.context=null,this.errorHandler=null;var i=this;this.worked=function(e,u){var d=i.callback,y=i.errorHandler,v=i.value;i.value=null,i.callback=pt,i.errorHandler&&y(e,v),d.call(i.context,e,u),i.release(i)}}function zb(i,t,e){typeof i=="function"&&(e=t,t=i,i=null);function u(D,U){t.call(this,D).then(function(I){U(null,I)},U)}var d=fd(i,u,e),y=d.push,v=d.unshift;return d.push=E,d.unshift=A,d.drained=N,d;function E(D){var U=new Promise(function(I,X){y(D,function(V,Q){if(V){X(V);return}I(Q)})});return U.catch(pt),U}function A(D){var U=new Promise(function(I,X){v(D,function(V,Q){if(V){X(V);return}I(Q)})});return U.catch(pt),U}function N(){var D=d.drain,U=new Promise(function(I){d.drain=function(){D(),I()}});return U}}Ms.exports=fd;Ms.exports.promise=zb});var zr=z(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.joinPathSegments=kt.replacePathSegmentSeparator=kt.isAppliedFilter=kt.isFatalError=void 0;function Qb(i,t){return i.errorFilter===null?!0:!i.errorFilter(t)}kt.isFatalError=Qb;function Xb(i,t){return i===null||i(t)}kt.isAppliedFilter=Xb;function Jb(i,t){return i.split(/[/\\]/).join(t)}kt.replacePathSegmentSeparator=Jb;function Zb(i,t,e){return i===""?t:i.endsWith(e)?i+t:i+e+t}kt.joinPathSegments=Zb});var Os=z(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});var e0=zr(),pd=class{constructor(t,e){this._root=t,this._settings=e,this._root=e0.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}};xs.default=pd});var Ls=z(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var t0=require("events"),i0=Vr(),r0=dd(),Qr=zr(),n0=Os(),hd=class extends n0.default{constructor(t,e){super(t,e);this._settings=e,this._scandir=i0.scandir,this._emitter=new t0.EventEmitter,this._queue=r0(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){let u={directory:t,base:e};this._queue.push(u,d=>{d!==null&&this._handleError(d)})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(u,d)=>{if(u!==null){e(u,void 0);return}for(let y of d)this._handleEntry(y,t.base);e(null,void 0)})}_handleError(t){this._isDestroyed||!Qr.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError)return;let u=t.path;e!==void 0&&(t.path=Qr.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Qr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Qr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(u,e===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Ns.default=hd});var yd=z(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var a0=Ls(),md=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new a0.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(e=>{s0(t,e)}),this._reader.onEntry(e=>{this._storage.push(e)}),this._reader.onEnd(()=>{o0(t,this._storage)}),this._reader.read()}};Bs.default=md;function s0(i,t){i(t)}function o0(i,t){i(null,t)}});var vd=z(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});var u0=require("stream"),l0=Ls(),gd=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new l0.default(this._root,this._settings),this._stream=new u0.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}};Us.default=gd});var bd=z(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});var c0=Vr(),Xr=zr(),_0=Os(),jd=class extends _0.default{constructor(){super(...arguments);this._scandir=c0.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,e){try{let u=this._scandir(t,this._settings.fsScandirSettings);for(let d of u)this._handleEntry(d,e)}catch(u){this._handleError(u)}}_handleError(t){if(!!Xr.isFatalError(this._settings,t))throw t}_handleEntry(t,e){let u=t.path;e!==void 0&&(t.path=Xr.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),Xr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Xr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(u,e===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Hs.default=jd});var kd=z($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var f0=bd(),wd=class{constructor(t,e){this._root=t,this._settings=e,this._reader=new f0.default(this._root,this._settings)}read(){return this._reader.read()}};$s.default=wd});var Sd=z(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var d0=require("path"),p0=Vr(),Cd=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,d0.sep),this.fsScandirSettings=new p0.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}};Ws.default=Cd});var Ys=z(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.Settings=Ct.walkStream=Ct.walkSync=Ct.walk=void 0;var Ed=yd(),h0=vd(),m0=kd(),qs=Sd();Ct.Settings=qs.default;function y0(i,t,e){if(typeof t=="function"){new Ed.default(i,Jr()).read(t);return}new Ed.default(i,Jr(t)).read(e)}Ct.walk=y0;function g0(i,t){let e=Jr(t);return new m0.default(i,e).read()}Ct.walkSync=g0;function v0(i,t){let e=Jr(t);return new h0.default(i,e).read()}Ct.walkStream=v0;function Jr(i={}){return i instanceof qs.default?i:new qs.default(i)}});var Gs=z(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var j0=require("path"),b0=ei(),Ad=Tt(),Rd=class{constructor(t){this._settings=t,this._fsStatSettings=new b0.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return j0.resolve(this._settings.cwd,t)}_makeEntry(t,e){let u={name:e,path:e,dirent:Ad.fs.createDirentFromStats(e,t)};return this._settings.stats&&(u.stats=t),u}_isFatalError(t){return!Ad.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Ks.default=Rd});var zs=z(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});var w0=require("stream"),k0=ei(),C0=Ys(),S0=Gs(),Dd=class extends S0.default{constructor(){super(...arguments);this._walkStream=C0.walkStream,this._stat=k0.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){let u=t.map(this._getFullEntryPath,this),d=new w0.PassThrough({objectMode:!0});d._write=(y,v,E)=>this._getEntry(u[y],t[y],e).then(A=>{A!==null&&e.entryFilter(A)&&d.push(A),y===u.length-1&&d.end(),E()}).catch(E);for(let y=0;y<u.length;y++)d.write(y);return d}_getEntry(t,e,u){return this._getStat(t).then(d=>this._makeEntry(d,e)).catch(d=>{if(u.errorFilter(d))return null;throw d})}_getStat(t){return new Promise((e,u)=>{this._stat(t,this._fsStatSettings,(d,y)=>d===null?e(y):u(d))})}};Vs.default=Dd});var Pd=z(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});var Pi=Tt(),Td=class{constructor(t,e,u){this._patterns=t,this._settings=e,this._micromatchOptions=u,this._storage=[],this._fillStorage()}_fillStorage(){let t=Pi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let e of t){let u=this._getPatternSegments(e),d=this._splitSegmentsIntoSections(u);this._storage.push({complete:d.length<=1,pattern:e,segments:u,sections:d})}}_getPatternSegments(t){return Pi.pattern.getPatternParts(t,this._micromatchOptions).map(u=>Pi.pattern.isDynamicPattern(u,this._settings)?{dynamic:!0,pattern:u,patternRe:Pi.pattern.makeRe(u,this._micromatchOptions)}:{dynamic:!1,pattern:u})}_splitSegmentsIntoSections(t){return Pi.array.splitWhen(t,e=>e.dynamic&&Pi.pattern.hasGlobStar(e.pattern))}};Qs.default=Td});var Id=z(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var E0=Pd(),Fd=class extends E0.default{match(t){let e=t.split("/"),u=e.length,d=this._storage.filter(y=>!y.complete||y.segments.length>u);for(let y of d){let v=y.sections[0];if(!y.complete&&u>v.length||e.every((A,N)=>{let D=y.segments[N];return!!(D.dynamic&&D.patternRe.test(A)||!D.dynamic&&D.pattern===A)}))return!0}return!1}};Xs.default=Fd});var xd=z(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var Zr=Tt(),A0=Id(),Md=class{constructor(t,e){this._settings=t,this._micromatchOptions=e}getFilter(t,e,u){let d=this._getMatcher(e),y=this._getNegativePatternsRe(u);return v=>this._filter(t,v,d,y)}_getMatcher(t){return new A0.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,u,d){if(this._isSkippedByDeep(t,e.path)||this._isSkippedSymbolicLink(e))return!1;let y=Zr.path.removeLeadingDotSegment(e.path);return this._isSkippedByPositivePatterns(y,u)?!1:this._isSkippedByNegativePatterns(y,d)}_isSkippedByDeep(t,e){return this._settings.deep===1/0?!1:this._getEntryLevel(t,e)>=this._settings.deep}_getEntryLevel(t,e){let u=e.split("/").length;if(t==="")return u;let d=t.split("/").length;return u-d}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!Zr.pattern.matchAny(t,e)}};Js.default=Md});var Nd=z(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var ti=Tt(),Od=class{constructor(t,e){this._settings=t,this._micromatchOptions=e,this.index=new Map}getFilter(t,e){let u=ti.pattern.convertPatternsToRe(t,this._micromatchOptions),d=ti.pattern.convertPatternsToRe(e,this._micromatchOptions);return y=>this._filter(y,u,d)}_filter(t,e,u){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,u))return!1;let d=this._settings.baseNameMatch?t.name:t.path,y=this._isMatchToPatterns(d,e)&&!this._isMatchToPatterns(t.path,u);return this._settings.unique&&y&&this._createIndexRecord(t),y}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute)return!1;let u=ti.path.makeAbsolute(this._settings.cwd,t);return ti.pattern.matchAny(u,e)}_isMatchToPatterns(t,e){let u=ti.path.removeLeadingDotSegment(t);return ti.pattern.matchAny(u,e)||ti.pattern.matchAny(u+"/",e)}};Zs.default=Od});var Bd=z(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});var R0=Tt(),Ld=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return R0.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};eo.default=Ld});var $d=z(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});var Ud=Tt(),Hd=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;return this._settings.absolute&&(e=Ud.path.makeAbsolute(this._settings.cwd,e),e=Ud.path.unixify(e)),this._settings.markDirectories&&t.dirent.isDirectory()&&(e+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:e}):e}};to.default=Hd});var en=z(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});var D0=require("path"),T0=xd(),P0=Nd(),F0=Bd(),I0=$d(),Wd=class{constructor(t){this._settings=t,this.errorFilter=new F0.default(this._settings),this.entryFilter=new P0.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new T0.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new I0.default(this._settings)}_getRootDirectory(t){return D0.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let e=t.base==="."?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};io.default=Wd});var Yd=z(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});var M0=zs(),x0=en(),qd=class extends x0.default{constructor(){super(...arguments);this._reader=new M0.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t),d=[];return new Promise((y,v)=>{let E=this.api(e,t,u);E.once("error",v),E.on("data",A=>d.push(u.transform(A))),E.once("end",()=>y(d))})}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};ro.default=qd});var Gd=z(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});var O0=require("stream"),N0=zs(),L0=en(),Kd=class extends L0.default{constructor(){super(...arguments);this._reader=new N0.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t),d=this.api(e,t,u),y=new O0.Readable({objectMode:!0,read:()=>{}});return d.once("error",v=>y.emit("error",v)).on("data",v=>y.emit("data",u.transform(v))).once("end",()=>y.emit("end")),y.once("close",()=>d.destroy()),y}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};no.default=Kd});var zd=z(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});var B0=ei(),U0=Ys(),H0=Gs(),Vd=class extends H0.default{constructor(){super(...arguments);this._walkSync=U0.walkSync,this._statSync=B0.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){let u=[];for(let d of t){let y=this._getFullEntryPath(d),v=this._getEntry(y,d,e);v===null||!e.entryFilter(v)||u.push(v)}return u}_getEntry(t,e,u){try{let d=this._getStat(t);return this._makeEntry(d,e)}catch(d){if(u.errorFilter(d))return null;throw d}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};ao.default=Vd});var Xd=z(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});var $0=zd(),W0=en(),Qd=class extends W0.default{constructor(){super(...arguments);this._reader=new $0.default(this._settings)}read(t){let e=this._getRootDirectory(t),u=this._getReaderOptions(t);return this.api(e,t,u).map(u.transform)}api(t,e,u){return e.dynamic?this._reader.dynamic(t,u):this._reader.static(e.patterns,u)}};so.default=Qd});var Zd=z(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Fi=require("fs"),q0=require("os"),Y0=Math.max(q0.cpus().length,1);Ii.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Fi.lstat,lstatSync:Fi.lstatSync,stat:Fi.stat,statSync:Fi.statSync,readdir:Fi.readdir,readdirSync:Fi.readdirSync};var Jd=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,Y0),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({},Ii.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Ii.default=Jd});var rp=z((Mk,ip)=>{"use strict";var ep=Tf(),tp=Ff(),K0=Yd(),G0=Gd(),V0=Xd(),oo=Zd(),ii=Tt();async function uo(i,t){Mi(i);let e=lo(i,K0.default,t),u=await Promise.all(e);return ii.array.flatten(u)}(function(i){function t(v,E){Mi(v);let A=lo(v,V0.default,E);return ii.array.flatten(A)}i.sync=t;function e(v,E){Mi(v);let A=lo(v,G0.default,E);return ii.stream.merge(A)}i.stream=e;function u(v,E){Mi(v);let A=tp.transform([].concat(v)),N=new oo.default(E);return ep.generate(A,N)}i.generateTasks=u;function d(v,E){Mi(v);let A=new oo.default(E);return ii.pattern.isDynamicPattern(v,A)}i.isDynamicPattern=d;function y(v){return Mi(v),ii.path.escape(v)}i.escapePath=y})(uo||(uo={}));function lo(i,t,e){let u=tp.transform([].concat(i)),d=new oo.default(e),y=ep.generate(u,d),v=new t(d);return y.map(v.read,v)}function Mi(i){if(![].concat(i).every(u=>ii.string.isString(u)&&!ii.string.isEmpty(u)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ip.exports=uo});var z0={};$g(z0,{registerWorker:()=>sp});var ge=ir(require("apache-arrow"));function Ka(i){switch(i.typeId){case ge.Type.Binary:return{type:"binary"};case ge.Type.Bool:return{type:"bool"};case ge.Type.Date:return{type:"date"};case ge.Type.DateDay:return{type:"date32[d]"};case ge.Type.DateMillisecond:return{type:"date64[ms]"};case ge.Type.Decimal:{let t=i;return{type:"decimal",precision:t.precision,scale:t.scale}}case ge.Type.Float:return{type:"float"};case ge.Type.Float16:return{type:"float16"};case ge.Type.Float32:return{type:"float32"};case ge.Type.Float64:return{type:"float64"};case ge.Type.Int:return{type:"int32"};case ge.Type.Int16:return{type:"int16"};case ge.Type.Int32:return{type:"int32"};case ge.Type.Int64:return{type:"int64"};case ge.Type.Uint16:return{type:"uint16"};case ge.Type.Uint32:return{type:"uint32"};case ge.Type.Uint64:return{type:"uint64"};case ge.Type.Uint8:return{type:"uint8"};case ge.Type.IntervalDayTime:return{type:"interval[dt]"};case ge.Type.IntervalYearMonth:return{type:"interval[m]"};case ge.Type.List:{let t=i;return{type:"list",children:[rr(t.valueField.name,t.valueField.type)]}}case ge.Type.FixedSizeBinary:return{type:"fixedsizebinary",byteWidth:i.byteWidth};case ge.Type.Null:return{type:"null"};case ge.Type.Utf8:return{type:"utf8"};case ge.Type.Struct:return{type:"struct",children:i.children.map(e=>rr(e.name,e.type))};case ge.Type.Time:return{type:"time[s]"};case ge.Type.TimeMicrosecond:return{type:"time[us]"};case ge.Type.TimeMillisecond:return{type:"time[ms]"};case ge.Type.TimeNanosecond:return{type:"time[ns]"};case ge.Type.TimeSecond:return{type:"time[s]"};case ge.Type.Timestamp:return{type:"timestamp",timezone:i.timezone||void 0};case ge.Type.TimestampSecond:return{type:"timestamp[s]",timezone:i.timezone||void 0};case ge.Type.TimestampMicrosecond:return{type:"timestamp[us]",timezone:i.timezone||void 0};case ge.Type.TimestampNanosecond:return{type:"timestamp[ns]",timezone:i.timezone||void 0};case ge.Type.TimestampMillisecond:return{type:"timestamp[ms]",timezone:i.timezone||void 0}}throw new Error(`unsupported arrow type: ${i.toString()}`)}function rr(i,t){let e=Ka(t);return e.name=i,e}var Ga=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 u={name:e.name,message:e.message,stack:e.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"ERROR",data:u},[])}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((u,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_START",data:e},[e.buffer]);break}case"SEND_QUERY":{let e=this._bindings.sendQuery(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_START",data:e},[e.buffer]);break}case"FETCH_QUERY_RESULTS":{let e=this._bindings.fetchQueryResults(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_CHUNK",data:e},[e.buffer]);break}case"GET_TABLE_NAMES":{let e=this._bindings.getTableNames(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"TABLE_NAMES",data:e},[]);break}case"GLOB_FILE_INFOS":{let e=this._bindings.globFiles(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_INFOS",data:e},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(t.data[0],t.data[1]),this.sendOK(t);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(t.data[0],t.data[1]),this.sendOK(t);break;case"REGISTER_FILE_HANDLE":this._bindings.registerFileHandle(t.data[0],t.data[1]),this.sendOK(t);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(t.data[0],t.data[1]),this.sendOK(t);break;case"COPY_FILE_TO_BUFFER":{let e=this._bindings.copyFileToBuffer(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_BUFFER",data:e},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(t.data[0],t.data[1]),this.sendOK(t);break;case"EXPORT_FILE_STATISTICS":{this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(t.data)},[]);break}case"INSERT_ARROW_FROM_IPC_STREAM":{this._bindings.insertArrowFromIPCStream(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"IMPORT_CSV_FROM_PATH":{this._bindings.insertCSVFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"IMPORT_JSON_FROM_PATH":{this._bindings.insertJSONFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break}case"TOKENIZE":{let e=this._bindings.tokenize(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SCRIPT_TOKENS",data:e},[]);break}}}catch(e){return this.failWith(t,e)}}};var Lc={},qg=(()=>{var i=Lc.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},u=Object.assign,d,y;e.ready=new Promise(function(m,g){d=m,y=g});var v=u({},e),E=[],A="./this.program",N=(m,g)=>{throw g},D=typeof window=="object",U=typeof importScripts=="function",I=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",X="";function V(m){return e.locateFile?e.locateFile(m,X):X+m}var Q,ee,ne,be;function Ae(m){if(m instanceof ki)return;H("exiting due to exception: "+m)}var Ie,ae,je;I?(U?X=require("path").dirname(X)+"/":X=__dirname+"/",je=function(){ae||(Ie=require("fs"),ae=require("path"))},Q=function(g,C){return je(),g=ae.normalize(g),Ie.readFileSync(g,C?null:"utf8")},ne=function(g){var C=Q(g,!0);return C.buffer||(C=new Uint8Array(C)),C},ee=function(g,C,R){je(),g=ae.normalize(g),Ie.readFile(g,function(O,J){O?R(O):C(J.buffer)})},process.argv.length>1&&(A=process.argv[1].replace(/\\/g,"/")),E=process.argv.slice(2),process.on("uncaughtException",function(m){if(!(m instanceof ki))throw m}),process.on("unhandledRejection",function(m){throw m}),N=(m,g)=>{if(Ni())throw process.exitCode=m,g;Ae(g),process.exit(m)},e.inspect=function(){return"[Emscripten Module object]"}):(D||U)&&(U?X=self.location.href:typeof document<"u"&&document.currentScript&&(X=document.currentScript.src),i&&(X=i),X.indexOf("blob:")!==0?X=X.substr(0,X.replace(/[?#].*/,"").lastIndexOf("/")+1):X="",Q=function(m){var g=new XMLHttpRequest;return g.open("GET",m,!1),g.send(null),g.responseText},U&&(ne=function(m){var g=new XMLHttpRequest;return g.open("GET",m,!1),g.responseType="arraybuffer",g.send(null),new Uint8Array(g.response)}),ee=function(m,g,C){var R=new XMLHttpRequest;R.open("GET",m,!0),R.responseType="arraybuffer",R.onload=function(){if(R.status==200||R.status==0&&R.response){g(R.response);return}C()},R.onerror=C,R.send(null)},be=m=>document.title=m);var se=e.print||console.log.bind(console),H=e.printErr||console.warn.bind(console);u(e,v),v=null,e.arguments&&(E=e.arguments),e.thisProgram&&(A=e.thisProgram),e.quit&&(N=e.quit);var Z;e.wasmBinary&&(Z=e.wasmBinary);var oe=e.noExitRuntime||!0;typeof WebAssembly!="object"&&Ke("no native wasm support detected");var M,fe=!1,de;function Be(m,g){m||Ke(g)}function T(m){var g=e["_"+m];return g}function F(m,g,C,R,O){var J={string:function(b){var Ze=0;if(b!=null&&b!==0){var Qe=(b.length<<2)+1;Ze=Ji(Qe),We(b,Ze,Qe)}return Ze},array:function(b){var Ze=Ji(b.length);return $t(b,Ze),Ze}};function Y(b){return g==="string"?Ue(b):g==="boolean"?Boolean(b):b}var q=T(m),ie=[],Ce=0;if(R)for(var we=0;we<R.length;we++){var ze=J[C[we]];ze?(Ce===0&&(Ce=Cr()),ie[we]=ze(R[we])):ie[we]=R[we]}var j=q.apply(null,ie);function k(b){return Ce!==0&&Sr(Ce),Y(b)}return j=k(j),j}var Ne=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function he(m,g,C){for(var R=g+C,O=g;m[O]&&!(O>=R);)++O;if(O-g>16&&m.subarray&&Ne)return Ne.decode(m.subarray(g,O));for(var J="";g<O;){var Y=m[g++];if(!(Y&128)){J+=String.fromCharCode(Y);continue}var q=m[g++]&63;if((Y&224)==192){J+=String.fromCharCode((Y&31)<<6|q);continue}var ie=m[g++]&63;if((Y&240)==224?Y=(Y&15)<<12|q<<6|ie:Y=(Y&7)<<18|q<<12|ie<<6|m[g++]&63,Y<65536)J+=String.fromCharCode(Y);else{var Ce=Y-65536;J+=String.fromCharCode(55296|Ce>>10,56320|Ce&1023)}}return J}function Ue(m,g){return m?he(_t,m,g):""}function Ge(m,g,C,R){if(!(R>0))return 0;for(var O=C,J=C+R-1,Y=0;Y<m.length;++Y){var q=m.charCodeAt(Y);if(q>=55296&&q<=57343){var ie=m.charCodeAt(++Y);q=65536+((q&1023)<<10)|ie&1023}if(q<=127){if(C>=J)break;g[C++]=q}else if(q<=2047){if(C+1>=J)break;g[C++]=192|q>>6,g[C++]=128|q&63}else if(q<=65535){if(C+2>=J)break;g[C++]=224|q>>12,g[C++]=128|q>>6&63,g[C++]=128|q&63}else{if(C+3>=J)break;g[C++]=240|q>>18,g[C++]=128|q>>12&63,g[C++]=128|q>>6&63,g[C++]=128|q&63}}return g[C]=0,C-O}function We(m,g,C){return Ge(m,_t,g,C)}function Ve(m){for(var g=0,C=0;C<m.length;++C){var R=m.charCodeAt(C);R>=55296&&R<=57343&&(R=65536+((R&1023)<<10)|m.charCodeAt(++C)&1023),R<=127?++g:R<=2047?g+=2:R<=65535?g+=3:g+=4}return g}function $t(m,g){ct.set(m,g)}function yt(m,g,C){for(var R=0;R<m.length;++R)ct[g++>>0]=m.charCodeAt(R);C||(ct[g>>0]=0)}function ht(m,g){return m%g>0&&(m+=g-m%g),m}var _e,ct,_t,K,pe,P,ue,Pe,$;function Me(m){_e=m,e.HEAP8=ct=new Int8Array(m),e.HEAP16=K=new Int16Array(m),e.HEAP32=P=new Int32Array(m),e.HEAPU8=_t=new Uint8Array(m),e.HEAPU16=pe=new Uint16Array(m),e.HEAPU32=ue=new Uint32Array(m),e.HEAPF32=Pe=new Float32Array(m),e.HEAPF64=$=new Float64Array(m)}var ri=e.INITIAL_MEMORY||16777216,St,xi=[],tn=[],lr=[],Oi=[],cr=!1,rn=!1,_r=0;function Ni(){return oe||_r>0}function nn(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)un(e.preRun.shift());qt(xi)}function an(){cr=!0,qt(tn)}function Li(){qt(lr)}function sn(){rn=!0}function on(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)cn(e.postRun.shift());qt(Oi)}function un(m){xi.unshift(m)}function ln(m){tn.unshift(m)}function cn(m){Oi.unshift(m)}var Et=0,Bi=null,Wt=null;function At(m){Et++,e.monitorRunDependencies&&e.monitorRunDependencies(Et)}function Ui(m){if(Et--,e.monitorRunDependencies&&e.monitorRunDependencies(Et),Et==0&&(Bi!==null&&(clearInterval(Bi),Bi=null),Wt)){var g=Wt;Wt=null,g()}}e.preloadedImages={},e.preloadedAudios={};function Ke(m){e.onAbort&&e.onAbort(m),m="Aborted("+m+")",H(m),fe=!0,de=1,m+=". Build with -s ASSERTIONS=1 for more info.";var g=new WebAssembly.RuntimeError(m);throw y(g),g}var _n="data:application/octet-stream;base64,";function fr(m){return m.startsWith(_n)}var Fe;e.locateFile?(Fe="./duckdb-eh.wasm",fr(Fe)||(Fe=V(Fe))):Fe=new URL("./duckdb-eh.wasm",Lc.url).toString();function dr(m){try{if(m==Fe&&Z)return new Uint8Array(Z);if(ne)return ne(m);throw"both async and sync fetching of the wasm failed"}catch(g){Ke(g)}}function pr(){return!Z&&(D||U)&&typeof fetch=="function"?fetch(Fe,{credentials:"same-origin"}).then(function(m){if(!m.ok)throw"failed to load wasm binary file at '"+Fe+"'";return m.arrayBuffer()}).catch(function(){return dr(Fe)}):Promise.resolve().then(function(){return dr(Fe)})}function tt(){var m={a:Qt};function g(Y,q){var ie=Y.exports;e.asm=ie,M=e.asm.ea,Me(M.buffer),St=e.asm.ha,ln(e.asm.fa),Ui("wasm-instantiate")}At("wasm-instantiate");function C(Y){g(Y.instance)}function R(Y){return pr().then(function(q){return WebAssembly.instantiate(q,m)}).then(function(q){return q}).then(Y,function(q){H("failed to asynchronously prepare wasm: "+q),Ke(q)})}function O(){return!Z&&typeof WebAssembly.instantiateStreaming=="function"&&!fr(Fe)&&typeof fetch=="function"?fetch(Fe,{credentials:"same-origin"}).then(function(Y){var q=WebAssembly.instantiateStreaming(Y,m);return q.then(C,function(ie){return H("wasm streaming compile failed: "+ie),H("falling back to ArrayBuffer instantiation"),R(C)})}):R(C)}if(e.instantiateWasm)try{var J=e.instantiateWasm(m,g);return J}catch(Y){return H("Module.instantiateWasm callback failed with error: "+Y),!1}return O().catch(y),{}}function qt(m){for(;m.length>0;){var g=m.shift();if(typeof g=="function"){g(e);continue}var C=g.func;typeof C=="number"?g.arg===void 0?hr(C)():hr(C)(g.arg):C(g.arg===void 0?null:g.arg)}}var ni=[];function hr(m){var g=ni[m];return g||(m>=ni.length&&(ni.length=m+1),ni[m]=g=St.get(m)),g}function ai(m){if(m instanceof ki||m=="unwind")return de;N(1,m)}function si(m,g,C,R){Ke("Assertion failed: "+Ue(m)+", at: "+[g?Ue(g):"unknown filename",C,R?Ue(R):"unknown function"])}var G={mappings:{},buffers:[null,[],[]],printChar:function(m,g){var C=G.buffers[m];g===0||g===10?((m===1?se:H)(he(C,0)),C.length=0):C.push(g)},varargs:void 0,get:function(){G.varargs+=4;var m=P[G.varargs-4>>2];return m},getStr:function(m){var g=Ue(m);return g},get64:function(m,g){return m}};function fn(m,g,C,R,O){}function dn(m,g){return m=G.getStr(m),G.doAccess(m,g)}function pn(){H("missing function: $SOCKFS"),Ke(-1)}function gt(){H("missing function: $FS"),Ke(-1)}function ft(m){var g=pn.getSocket(m);if(!g)throw new gt.ErrnoError(8);return g}function oi(m){return P[kr()>>2]=m,m}function Hi(m){return(m&255)+"."+(m>>8&255)+"."+(m>>16&255)+"."+(m>>24&255)}function Yt(m){var g="",C=0,R=0,O=0,J=0,Y=0,q=0,ie=[m[0]&65535,m[0]>>16,m[1]&65535,m[1]>>16,m[2]&65535,m[2]>>16,m[3]&65535,m[3]>>16],Ce=!0,we="";for(q=0;q<5;q++)if(ie[q]!==0){Ce=!1;break}if(Ce){if(we=Hi(ie[6]|ie[7]<<16),ie[5]===-1)return g="::ffff:",g+=we,g;if(ie[5]===0)return g="::",we==="0.0.0.0"&&(we=""),we==="0.0.0.1"&&(we="1"),g+=we,g}for(C=0;C<8;C++)ie[C]===0&&(C-O>1&&(Y=0),O=C,Y++),Y>R&&(R=Y,J=C-R+1);for(C=0;C<8;C++){if(R>1&&ie[C]===0&&C>=J&&C<J+R){C===J&&(g+=":",J===0&&(g+=":"));continue}g+=Number(Xi(ie[C]&65535)).toString(16),g+=C<7?":":""}return g}function mr(m,g){var C=K[m>>1],R=Xi(pe[m+2>>1]),O;switch(C){case 2:if(g!==16)return{errno:28};O=P[m+4>>2],O=Hi(O);break;case 10:if(g!==28)return{errno:28};O=[P[m+8>>2],P[m+12>>2],P[m+16>>2],P[m+20>>2]],O=Yt(O);break;default:return{errno:5}}return{family:C,addr:O,port:R}}function it(m){for(var g=m.split("."),C=0;C<4;C++){var R=Number(g[C]);if(isNaN(R))return null;g[C]=R}return(g[0]|g[1]<<8|g[2]<<16|g[3]<<24)>>>0}function Kt(m){return parseInt(m)}function $i(m){var g,C,R,O,J=/^((?=.*::)(?!.*::.+::)(::)?([\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,Y=[];if(!J.test(m))return null;if(m==="::")return[0,0,0,0,0,0,0,0];for(m.startsWith("::")?m=m.replace("::","Z:"):m=m.replace("::",":Z:"),m.indexOf(".")>0?(m=m.replace(new RegExp("[.]","g"),":"),g=m.split(":"),g[g.length-4]=Kt(g[g.length-4])+Kt(g[g.length-3])*256,g[g.length-3]=Kt(g[g.length-2])+Kt(g[g.length-1])*256,g=g.slice(0,g.length-2)):g=m.split(":"),R=0,O=0,C=0;C<g.length;C++)if(typeof g[C]=="string")if(g[C]==="Z"){for(O=0;O<8-g.length+1;O++)Y[C+O]=0;R=O-1}else Y[C+R]=bi(parseInt(g[C],16));else Y[C+R]=g[C];return[Y[1]<<16|Y[0],Y[3]<<16|Y[2],Y[5]<<16|Y[4],Y[7]<<16|Y[6]]}var rt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(m){var g=it(m);if(g!==null||(g=$i(m),g!==null))return m;var C;if(rt.address_map.addrs[m])C=rt.address_map.addrs[m];else{var R=rt.address_map.id++;Be(R<65535,"exceeded max address mappings of 65535"),C="172.29."+(R&255)+"."+(R&65280),rt.address_map.names[C]=m,rt.address_map.addrs[m]=C}return C},lookup_addr:function(m){return rt.address_map.names[m]?rt.address_map.names[m]:null}};function yr(m,g,C){if(C&&m===0)return null;var R=mr(m,g);if(R.errno)throw new gt.ErrnoError(R.errno);return R.addr=rt.lookup_addr(R.addr)||R.addr,R}function hn(m,g,C){var R=ft(m),O=yr(g,C);return R.sock_ops.bind(R,O.addr,O.port),0}function mn(m,g,C){var R=ft(m),O=yr(g,C);return R.sock_ops.connect(R,O.addr,O.port),0}function yn(m,g,C){return G.varargs=C,0}function gn(m,g){}function vn(m,g,C,R){}function jn(m,g,C){}function bn(m,g,C){}function He(m,g){_t.fill(0,m,m+g)}function Wi(m,g,C,R,O){switch(g){case 2:C=it(C),He(m,16),O&&(P[O>>2]=16),K[m>>1]=g,P[m+4>>2]=C,K[m+2>>1]=bi(R);break;case 10:C=$i(C),He(m,28),O&&(P[O>>2]=28),P[m>>2]=g,P[m+8>>2]=C[0],P[m+12>>2]=C[1],P[m+16>>2]=C[2],P[m+20>>2]=C[3],K[m+2>>1]=bi(R);break;default:return 5}return 0}function wn(m,g,C){var R=ft(m);if(!R.daddr)return-53;var O=Wi(g,R.family,rt.lookup_name(R.daddr),R.dport,C);return 0}function kn(m,g,C,R,O){var J=ft(m);return g===1&&C===4?(P[R>>2]=J.error,P[O>>2]=4,J.error=null,0):-50}function gr(m,g,C){return G.varargs=C,0}function Gt(m,g){}function Cn(m,g){return m=G.getStr(m),G.doMkdir(m,g)}function qi(m,g,C){G.varargs=C}function vr(m,g,C,R,O,J){var Y=ft(m),q=Y.sock_ops.recvmsg(Y,C);if(!q)return 0;if(O)var ie=Wi(O,Y.family,rt.lookup_name(q.addr),q.port,J);return _t.set(q.buffer,g),q.buffer.byteLength}function jr(m,g){}function ui(m){}function li(m,g,C,R,O,J){}function Yi(m,g,C){}function nt(m,g){}function br(m){}function Sn(m,g){Ke("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function En(m,g){Ke("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function An(){Ke("")}var Ki;I?Ki=()=>{var m=process.hrtime();return m[0]*1e3+m[1]/1e6}:Ki=()=>performance.now();var Rn=!0;function Dn(m,g){var C;if(m===0)C=Date.now();else if((m===1||m===4)&&Rn)C=Ki();else return oi(28),-1;return P[g>>2]=C/1e3|0,P[g+4>>2]=C%1e3*1e3*1e3|0,0}function Tn(m,g){return globalThis.DUCKDB_RUNTIME.createDirectory(e,m,g)}function wr(m,g){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,m,g)}function Gi(m,g){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,m,g)}function Pn(m,g){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,m,g)}function Fn(m){return globalThis.DUCKDB_RUNTIME.closeFile(e,m)}function In(m,g){return globalThis.DUCKDB_RUNTIME.checkFile(e,m,g)}function Mn(m){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,m)}function xn(m,g,C,R){return globalThis.DUCKDB_RUNTIME.moveFile(e,m,g,C,R)}function On(m,g){return globalThis.DUCKDB_RUNTIME.openFile(e,m,g)}function Nn(m,g,C,R){return globalThis.DUCKDB_RUNTIME.readFile(e,m,g,C,R)}function Ln(m,g){return globalThis.DUCKDB_RUNTIME.truncateFile(e,m,g)}function Bn(m,g,C,R){return globalThis.DUCKDB_RUNTIME.writeFile(e,m,g,C,R)}function Un(m,g){return globalThis.DUCKDB_RUNTIME.glob(e,m,g)}function Hn(m){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,m)}function $n(m,g,C,R,O,J){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,m,g,C,R,O,J)}function Wn(){return 2147483648}function qn(m,g,C){_t.copyWithin(m,g,g+C)}function Yn(m){try{return M.grow(m-_e.byteLength+65535>>>16),Me(M.buffer),1}catch{}}function Kn(m){var g=_t.length;m=m>>>0;var C=2147483648;if(m>C)return!1;for(var R=1;R<=4;R*=2){var O=g*(1+.2/R);O=Math.min(O,m+100663296);var J=Math.min(C,ht(Math.max(m,O),65536)),Y=Yn(J);if(Y)return!0}return!1}var Vt={};function Gn(){return A||"./this.program"}function zt(){if(!zt.strings){var m=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",g={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:m,_:Gn()};for(var C in Vt)Vt[C]===void 0?delete g[C]:g[C]=Vt[C];var R=[];for(var C in g)R.push(C+"="+g[C]);zt.strings=R}return zt.strings}function Vn(m,g){var C=0;return zt().forEach(function(R,O){var J=g+C;P[m+O*4>>2]=J,yt(R,J),C+=R.length+1}),0}function zn(m,g){var C=zt();P[m>>2]=C.length;var R=0;return C.forEach(function(O){R+=O.length+1}),P[g>>2]=R,0}function Qn(m){return 0}function Xn(m,g,C,R,O,J){var Y=G.getStreamFromFD(m),q=G.doReadv(Y,g,C,R);return P[J>>2]=q,0}function Jn(m,g,C,R,O,J){var Y=G.getStreamFromFD(m),q=G.doWritev(Y,g,C,R);return P[J>>2]=q,0}function Zn(m,g,C,R){var O=G.getStreamFromFD(m),J=G.doReadv(O,g,C);return P[R>>2]=J,0}function ea(m,g,C,R,O){}function ta(m){var g=G.getStreamFromFD(m);return g.stream_ops&&g.stream_ops.fsync?-g.stream_ops.fsync(g):0}function ia(m,g,C,R){for(var O=0,J=0;J<C;J++){var Y=P[g>>2],q=P[g+4>>2];g+=8;for(var ie=0;ie<q;ie++)G.printChar(m,_t[Y+ie]);O+=q}return P[R>>2]=O,0}function ra(m,g,C,R){var O=0,J=0,Y=0,q=0,ie=0,Ce=0,we;function ze(j,k,b,Ze,Qe,Ft){var B,re,Se,Ee;return re=j===10?28:16,Qe=j===10?Yt(Qe):Hi(Qe),B=Zi(re),Ee=Wi(B,j,Qe,Ft),Be(!Ee),Se=Zi(32),P[Se+4>>2]=j,P[Se+8>>2]=k,P[Se+12>>2]=b,P[Se+24>>2]=Ze,P[Se+20>>2]=B,j===10?P[Se+16>>2]=28:P[Se+16>>2]=16,P[Se+28>>2]=0,Se}if(C&&(Y=P[C>>2],q=P[C+4>>2],ie=P[C+8>>2],Ce=P[C+12>>2]),ie&&!Ce&&(Ce=ie===2?17:6),!ie&&Ce&&(ie=Ce===17?2:1),Ce===0&&(Ce=6),ie===0&&(ie=1),!m&&!g)return-2;if(Y&-1088||C!==0&&P[C>>2]&2&&!m)return-1;if(Y&32)return-2;if(ie!==0&&ie!==1&&ie!==2)return-7;if(q!==0&&q!==2&&q!==10)return-6;if(g&&(g=Ue(g),J=parseInt(g,10),isNaN(J)))return Y&1024?-2:-8;if(!m)return q===0&&(q=2),(Y&1)===0&&(q===2?O=ji(2130706433):O=[0,0,0,1]),we=ze(q,ie,Ce,null,O,J),P[R>>2]=we,0;if(m=Ue(m),O=it(m),O!==null)if(q===0||q===2)q=2;else if(q===10&&Y&8)O=[0,0,ji(65535),O],q=10;else return-2;else if(O=$i(m),O!==null)if(q===0||q===10)q=10;else return-2;return O!=null?(we=ze(q,ie,Ce,m,O,J),P[R>>2]=we,0):Y&4?-2:(m=rt.lookup_name(m),O=it(m),q===0?q=2:q===10&&(O=[0,0,ji(65535),O]),we=ze(q,ie,Ce,null,O,J),P[R>>2]=we,0)}function na(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var m=new Uint8Array(1);return function(){return crypto.getRandomValues(m),m[0]}}else if(I)try{var g=require("crypto");return function(){return g.randomBytes(1)[0]}}catch{}return function(){Ke("randomDevice")}}function ci(m,g){ci.randomDevice||(ci.randomDevice=na());for(var C=0;C<g;C++)ct[m+C>>0]=ci.randomDevice();return 0}function aa(m,g,C,R,O,J,Y){var q=mr(m,g);if(q.errno)return-6;var ie=q.port,Ce=q.addr,we=!1;if(C&&R){var ze;if(Y&1||!(ze=rt.lookup_addr(Ce))){if(Y&8)return-2}else Ce=ze;var j=We(Ce,C,R);j+1>=R&&(we=!0)}if(O&&J){ie=""+ie;var j=We(ie,O,J);j+1>=J&&(we=!0)}return we?-12:0}function _i(m){return m%4===0&&(m%100!==0||m%400===0)}function Vi(m,g){for(var C=0,R=0;R<=g;C+=m[R++]);return C}var fi=[31,29,31,30,31,30,31,31,30,31,30,31],di=[31,28,31,30,31,30,31,31,30,31,30,31];function pi(m,g){for(var C=new Date(m.getTime());g>0;){var R=_i(C.getFullYear()),O=C.getMonth(),J=(R?fi:di)[O];if(g>J-C.getDate())g-=J-C.getDate()+1,C.setDate(1),O<11?C.setMonth(O+1):(C.setMonth(0),C.setFullYear(C.getFullYear()+1));else return C.setDate(C.getDate()+g),C}return C}function sa(m,g,C,R){var O=P[R+40>>2],J={tm_sec:P[R>>2],tm_min:P[R+4>>2],tm_hour:P[R+8>>2],tm_mday:P[R+12>>2],tm_mon:P[R+16>>2],tm_year:P[R+20>>2],tm_wday:P[R+24>>2],tm_yday:P[R+28>>2],tm_isdst:P[R+32>>2],tm_gmtoff:P[R+36>>2],tm_zone:O?Ue(O):""},Y=Ue(C),q={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var ie in q)Y=Y.replace(new RegExp(ie,"g"),q[ie]);var Ce=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],we=["January","February","March","April","May","June","July","August","September","October","November","December"];function ze(B,re,Se){for(var Ee=typeof B=="number"?B.toString():B||"";Ee.length<re;)Ee=Se[0]+Ee;return Ee}function j(B,re){return ze(B,re,"0")}function k(B,re){function Se(st){return st<0?-1:st>0?1:0}var Ee;return(Ee=Se(B.getFullYear()-re.getFullYear()))===0&&(Ee=Se(B.getMonth()-re.getMonth()))===0&&(Ee=Se(B.getDate()-re.getDate())),Ee}function b(B){switch(B.getDay()){case 0:return new Date(B.getFullYear()-1,11,29);case 1:return B;case 2:return new Date(B.getFullYear(),0,3);case 3:return new Date(B.getFullYear(),0,2);case 4:return new Date(B.getFullYear(),0,1);case 5:return new Date(B.getFullYear()-1,11,31);case 6:return new Date(B.getFullYear()-1,11,30)}}function Ze(B){var re=pi(new Date(B.tm_year+1900,0,1),B.tm_yday),Se=new Date(re.getFullYear(),0,4),Ee=new Date(re.getFullYear()+1,0,4),st=b(Se),mt=b(Ee);return k(st,re)<=0?k(mt,re)<=0?re.getFullYear()+1:re.getFullYear():re.getFullYear()-1}var Qe={"%a":function(B){return Ce[B.tm_wday].substring(0,3)},"%A":function(B){return Ce[B.tm_wday]},"%b":function(B){return we[B.tm_mon].substring(0,3)},"%B":function(B){return we[B.tm_mon]},"%C":function(B){var re=B.tm_year+1900;return j(re/100|0,2)},"%d":function(B){return j(B.tm_mday,2)},"%e":function(B){return ze(B.tm_mday,2," ")},"%g":function(B){return Ze(B).toString().substring(2)},"%G":function(B){return Ze(B)},"%H":function(B){return j(B.tm_hour,2)},"%I":function(B){var re=B.tm_hour;return re==0?re=12:re>12&&(re-=12),j(re,2)},"%j":function(B){return j(B.tm_mday+Vi(_i(B.tm_year+1900)?fi:di,B.tm_mon-1),3)},"%m":function(B){return j(B.tm_mon+1,2)},"%M":function(B){return j(B.tm_min,2)},"%n":function(){return`
3
3
  `},"%p":function(B){return B.tm_hour>=0&&B.tm_hour<12?"AM":"PM"},"%S":function(B){return j(B.tm_sec,2)},"%t":function(){return" "},"%u":function(B){return B.tm_wday||7},"%U":function(B){var re=new Date(B.tm_year+1900,0,1),Se=re.getDay()===0?re:pi(re,7-re.getDay()),Ee=new Date(B.tm_year+1900,B.tm_mon,B.tm_mday);if(k(Se,Ee)<0){var st=Vi(_i(Ee.getFullYear())?fi:di,Ee.getMonth()-1)-31,mt=31-Se.getDate(),vt=mt+st+Ee.getDate();return j(Math.ceil(vt/7),2)}return k(Se,re)===0?"01":"00"},"%V":function(B){var re=new Date(B.tm_year+1900,0,4),Se=new Date(B.tm_year+1901,0,4),Ee=b(re),st=b(Se),mt=pi(new Date(B.tm_year+1900,0,1),B.tm_yday);if(k(mt,Ee)<0)return"53";if(k(st,mt)<=0)return"01";var vt;return Ee.getFullYear()<B.tm_year+1900?vt=B.tm_yday+32-Ee.getDate():vt=B.tm_yday+1-Ee.getDate(),j(Math.ceil(vt/7),2)},"%w":function(B){return B.tm_wday},"%W":function(B){var re=new Date(B.tm_year,0,1),Se=re.getDay()===1?re:pi(re,re.getDay()===0?1:7-re.getDay()+1),Ee=new Date(B.tm_year+1900,B.tm_mon,B.tm_mday);if(k(Se,Ee)<0){var st=Vi(_i(Ee.getFullYear())?fi:di,Ee.getMonth()-1)-31,mt=31-Se.getDate(),vt=mt+st+Ee.getDate();return j(Math.ceil(vt/7),2)}return k(Se,re)===0?"01":"00"},"%y":function(B){return(B.tm_year+1900).toString().substring(2)},"%Y":function(B){return B.tm_year+1900},"%z":function(B){var re=B.tm_gmtoff,Se=re>=0;return re=Math.abs(re)/60,re=re/60*100+re%60,(Se?"+":"-")+String("0000"+re).slice(-4)},"%Z":function(B){return B.tm_zone},"%%":function(){return"%"}};for(var ie in Qe)Y.includes(ie)&&(Y=Y.replace(new RegExp(ie,"g"),Qe[ie](J)));var Ft=oa(Y,!1);return Ft.length>g?0:($t(Ft,m),Ft.length-1)}function zi(m,g,C,R){return sa(m,g,C,R)}function oa(m,g,C){var R=C>0?C:Ve(m)+1,O=new Array(R),J=Ge(m,O,0,O.length);return g&&(O.length=J),O}var Qt={a:si,R:fn,L:dn,T:hn,S:mn,b:yn,$:gn,Z:vn,W:jn,X:bn,N:wn,Q:kn,ba:gr,Y:Gt,aa:Cn,q:qi,O:vr,J:jr,o:ui,P:li,k:Yi,_:nt,p:br,m:Sn,U:En,d:An,n:Dn,D:Tn,E:wr,B:Gi,C:Pn,h:Fn,z:In,G:Mn,A:xn,H:On,f:Nn,F:Ln,i:Bn,y:Un,g:Hn,I:$n,r:Wn,ca:qn,da:Kn,t:Vn,u:zn,c:Qn,w:Xn,v:Jn,j:Zn,x:ea,K:ta,e:ia,l:ra,V:ci,M:aa,s:zi},co=tt(),ua=e.___wasm_call_ctors=function(){return(ua=e.___wasm_call_ctors=e.asm.fa).apply(null,arguments)},la=e._main=function(){return(la=e._main=e.asm.ga).apply(null,arguments)},ca=e._duckdb_web_fs_glob_add_path=function(){return(ca=e._duckdb_web_fs_glob_add_path=e.asm.ia).apply(null,arguments)},_a=e._duckdb_web_clear_response=function(){return(_a=e._duckdb_web_clear_response=e.asm.ja).apply(null,arguments)},fa=e._duckdb_web_fail_with=function(){return(fa=e._duckdb_web_fail_with=e.asm.ka).apply(null,arguments)},da=e._duckdb_web_reset=function(){return(da=e._duckdb_web_reset=e.asm.la).apply(null,arguments)},pa=e._duckdb_web_connect=function(){return(pa=e._duckdb_web_connect=e.asm.ma).apply(null,arguments)},ha=e._duckdb_web_disconnect=function(){return(ha=e._duckdb_web_disconnect=e.asm.na).apply(null,arguments)},ma=e._duckdb_web_flush_files=function(){return(ma=e._duckdb_web_flush_files=e.asm.oa).apply(null,arguments)},ya=e._duckdb_web_flush_file=function(){return(ya=e._duckdb_web_flush_file=e.asm.pa).apply(null,arguments)},ga=e._duckdb_web_open=function(){return(ga=e._duckdb_web_open=e.asm.qa).apply(null,arguments)},hi=e._duckdb_web_get_global_file_info=function(){return(hi=e._duckdb_web_get_global_file_info=e.asm.ra).apply(null,arguments)},va=e._duckdb_web_collect_file_stats=function(){return(va=e._duckdb_web_collect_file_stats=e.asm.sa).apply(null,arguments)},ja=e._duckdb_web_export_file_stats=function(){return(ja=e._duckdb_web_export_file_stats=e.asm.ta).apply(null,arguments)},ba=e._duckdb_web_fs_drop_file=function(){return(ba=e._duckdb_web_fs_drop_file=e.asm.ua).apply(null,arguments)},mi=e._duckdb_web_fs_drop_files=function(){return(mi=e._duckdb_web_fs_drop_files=e.asm.va).apply(null,arguments)},Qi=e._duckdb_web_fs_glob_file_infos=function(){return(Qi=e._duckdb_web_fs_glob_file_infos=e.asm.wa).apply(null,arguments)},yi=e._duckdb_web_fs_get_file_info_by_id=function(){return(yi=e._duckdb_web_fs_get_file_info_by_id=e.asm.xa).apply(null,arguments)},gi=e._duckdb_web_fs_get_file_info_by_name=function(){return(gi=e._duckdb_web_fs_get_file_info_by_name=e.asm.ya).apply(null,arguments)},vi=e._duckdb_web_fs_set_file_descriptor=function(){return(vi=e._duckdb_web_fs_set_file_descriptor=e.asm.za).apply(null,arguments)},wa=e._duckdb_web_fs_register_file_url=function(){return(wa=e._duckdb_web_fs_register_file_url=e.asm.Aa).apply(null,arguments)},ka=e._duckdb_web_fs_register_file_buffer=function(){return(ka=e._duckdb_web_fs_register_file_buffer=e.asm.Ba).apply(null,arguments)},Ca=e._duckdb_web_copy_file_to_buffer=function(){return(Ca=e._duckdb_web_copy_file_to_buffer=e.asm.Ca).apply(null,arguments)},Sa=e._duckdb_web_copy_file_to_path=function(){return(Sa=e._duckdb_web_copy_file_to_path=e.asm.Da).apply(null,arguments)},_o=e._duckdb_web_get_version=function(){return(_o=e._duckdb_web_get_version=e.asm.Ea).apply(null,arguments)},Ea=e._duckdb_web_get_feature_flags=function(){return(Ea=e._duckdb_web_get_feature_flags=e.asm.Fa).apply(null,arguments)},Aa=e._duckdb_web_tokenize=function(){return(Aa=e._duckdb_web_tokenize=e.asm.Ga).apply(null,arguments)},Ra=e._duckdb_web_udf_scalar_create=function(){return(Ra=e._duckdb_web_udf_scalar_create=e.asm.Ha).apply(null,arguments)},Da=e._duckdb_web_prepared_create=function(){return(Da=e._duckdb_web_prepared_create=e.asm.Ia).apply(null,arguments)},Ta=e._duckdb_web_prepared_close=function(){return(Ta=e._duckdb_web_prepared_close=e.asm.Ja).apply(null,arguments)},Pa=e._duckdb_web_prepared_run=function(){return(Pa=e._duckdb_web_prepared_run=e.asm.Ka).apply(null,arguments)},Fa=e._duckdb_web_prepared_send=function(){return(Fa=e._duckdb_web_prepared_send=e.asm.La).apply(null,arguments)},Ia=e._duckdb_web_query_run=function(){return(Ia=e._duckdb_web_query_run=e.asm.Ma).apply(null,arguments)},Ma=e._duckdb_web_query_send=function(){return(Ma=e._duckdb_web_query_send=e.asm.Na).apply(null,arguments)},xa=e._duckdb_web_query_fetch_results=function(){return(xa=e._duckdb_web_query_fetch_results=e.asm.Oa).apply(null,arguments)},Oa=e._duckdb_web_get_tablenames=function(){return(Oa=e._duckdb_web_get_tablenames=e.asm.Pa).apply(null,arguments)},Na=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(Na=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Qa).apply(null,arguments)},La=e._duckdb_web_insert_csv_from_path=function(){return(La=e._duckdb_web_insert_csv_from_path=e.asm.Ra).apply(null,arguments)},Ba=e._duckdb_web_insert_json_from_path=function(){return(Ba=e._duckdb_web_insert_json_from_path=e.asm.Sa).apply(null,arguments)},kr=e.___errno_location=function(){return(kr=e.___errno_location=e.asm.Ta).apply(null,arguments)},ji=e._htonl=function(){return(ji=e._htonl=e.asm.Ua).apply(null,arguments)},bi=e._htons=function(){return(bi=e._htons=e.asm.Va).apply(null,arguments)},Xi=e._ntohs=function(){return(Xi=e._ntohs=e.asm.Wa).apply(null,arguments)},Cr=e.stackSave=function(){return(Cr=e.stackSave=e.asm.Xa).apply(null,arguments)},Sr=e.stackRestore=function(){return(Sr=e.stackRestore=e.asm.Ya).apply(null,arguments)},Ji=e.stackAlloc=function(){return(Ji=e.stackAlloc=e.asm.Za).apply(null,arguments)},Zi=e._malloc=function(){return(Zi=e._malloc=e.asm._a).apply(null,arguments)},Ua=e._free=function(){return(Ua=e._free=e.asm.$a).apply(null,arguments)};e.ccall=F;var wi;function ki(m){this.name="ExitStatus",this.message="Program terminated with exit("+m+")",this.status=m}var Ha=!1;Wt=function m(){wi||er(),wi||(Wt=m)};function $a(m){var g=e._main,C=0,R=0;try{var O=g(C,R);return Wa(O,!0),O}catch(J){return ai(J)}finally{Ha=!0}}function er(m){if(m=m||E,Et>0||(nn(),Et>0))return;function g(){wi||(wi=!0,e.calledRun=!0,!fe&&(an(),Li(),d(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),Er&&$a(m),on()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),g()},1)):g()}e.run=er;function Wa(m,g){de=m,Ni()||sn(),qa(m)}function qa(m){de=m,Ni()||(e.onExit&&e.onExit(m),fe=!0),N(m,new ki(m))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var Er=!0;return e.noInitialRun&&(Er=!1),er(),t.ready}})(),Bc=qg;var Uc={},Yg=(()=>{var i=Uc.url;return function(t){t=t||{};var e=typeof t<"u"?t:{},u=Object.assign,d,y;e.ready=new Promise(function(r,n){d=r,y=n});var v=u({},e),E=[],A="./this.program",N=(r,n)=>{throw n},D=typeof window=="object",U=typeof importScripts=="function",I=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",X="";function V(r){return e.locateFile?e.locateFile(r,X):X+r}var Q,ee,ne,be;function Ae(r){if(r instanceof Rr)return;H("exiting due to exception: "+r)}var Ie,ae,je;I?(U?X=require("path").dirname(X)+"/":X=__dirname+"/",je=function(){ae||(Ie=require("fs"),ae=require("path"))},Q=function(n,a){return je(),n=ae.normalize(n),Ie.readFileSync(n,a?null:"utf8")},ne=function(n){var a=Q(n,!0);return a.buffer||(a=new Uint8Array(a)),a},ee=function(n,a,s){je(),n=ae.normalize(n),Ie.readFile(n,function(o,l){o?s(o):a(l.buffer)})},process.argv.length>1&&(A=process.argv[1].replace(/\\/g,"/")),E=process.argv.slice(2),process.on("uncaughtException",function(r){if(!(r instanceof Rr))throw r}),process.on("unhandledRejection",function(r){throw r}),N=(r,n)=>{if(Li())throw process.exitCode=r,n;Ae(n),process.exit(r)},e.inspect=function(){return"[Emscripten Module object]"}):(D||U)&&(U?X=self.location.href:typeof document<"u"&&document.currentScript&&(X=document.currentScript.src),i&&(X=i),X.indexOf("blob:")!==0?X=X.substr(0,X.replace(/[?#].*/,"").lastIndexOf("/")+1):X="",Q=function(r){var n=new XMLHttpRequest;return n.open("GET",r,!1),n.send(null),n.responseText},U&&(ne=function(r){var n=new XMLHttpRequest;return n.open("GET",r,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}),ee=function(r,n,a){var s=new XMLHttpRequest;s.open("GET",r,!0),s.responseType="arraybuffer",s.onload=function(){if(s.status==200||s.status==0&&s.response){n(s.response);return}a()},s.onerror=a,s.send(null)},be=r=>document.title=r);var se=e.print||console.log.bind(console),H=e.printErr||console.warn.bind(console);u(e,v),v=null,e.arguments&&(E=e.arguments),e.thisProgram&&(A=e.thisProgram),e.quit&&(N=e.quit);var Z=0,oe=function(r){Z=r},M=function(){return Z},fe;e.wasmBinary&&(fe=e.wasmBinary);var de=e.noExitRuntime||!0;typeof WebAssembly!="object"&&Fe("no native wasm support detected");var Be,T=!1,F;function Ne(r,n){r||Fe(n)}function he(r){var n=e["_"+r];return n}function Ue(r,n,a,s,o){var l={string:function(W){var le=0;if(W!=null&&W!==0){var me=(W.length<<2)+1;le=Ze(me),yt(W,le,me)}return le},array:function(W){var le=Ze(W.length);return _e(W,le),le}};function c(W){return n==="string"?Ve(W):n==="boolean"?Boolean(W):W}var _=he(r),f=[],p=0;if(s)for(var h=0;h<s.length;h++){var w=l[a[h]];w?(p===0&&(p=k()),f[h]=w(s[h])):f[h]=s[h]}var S=_.apply(null,f);function x(W){return p!==0&&b(p),c(W)}return S=x(S),S}var Ge=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function We(r,n,a){for(var s=n+a,o=n;r[o]&&!(o>=s);)++o;if(o-n>16&&r.subarray&&Ge)return Ge.decode(r.subarray(n,o));for(var l="";n<o;){var c=r[n++];if(!(c&128)){l+=String.fromCharCode(c);continue}var _=r[n++]&63;if((c&224)==192){l+=String.fromCharCode((c&31)<<6|_);continue}var f=r[n++]&63;if((c&240)==224?c=(c&15)<<12|_<<6|f:c=(c&7)<<18|_<<12|f<<6|r[n++]&63,c<65536)l+=String.fromCharCode(c);else{var p=c-65536;l+=String.fromCharCode(55296|p>>10,56320|p&1023)}}return l}function Ve(r,n){return r?We(P,r,n):""}function $t(r,n,a,s){if(!(s>0))return 0;for(var o=a,l=a+s-1,c=0;c<r.length;++c){var _=r.charCodeAt(c);if(_>=55296&&_<=57343){var f=r.charCodeAt(++c);_=65536+((_&1023)<<10)|f&1023}if(_<=127){if(a>=l)break;n[a++]=_}else if(_<=2047){if(a+1>=l)break;n[a++]=192|_>>6,n[a++]=128|_&63}else if(_<=65535){if(a+2>=l)break;n[a++]=224|_>>12,n[a++]=128|_>>6&63,n[a++]=128|_&63}else{if(a+3>=l)break;n[a++]=240|_>>18,n[a++]=128|_>>12&63,n[a++]=128|_>>6&63,n[a++]=128|_&63}}return n[a]=0,a-o}function yt(r,n,a){return $t(r,P,n,a)}function ht(r){for(var n=0,a=0;a<r.length;++a){var s=r.charCodeAt(a);s>=55296&&s<=57343&&(s=65536+((s&1023)<<10)|r.charCodeAt(++a)&1023),s<=127?++n:s<=2047?n+=2:s<=65535?n+=3:n+=4}return n}function _e(r,n){pe.set(r,n)}function ct(r,n,a){for(var s=0;s<r.length;++s)pe[n++>>0]=r.charCodeAt(s);a||(pe[n>>0]=0)}function _t(r,n){return r%n>0&&(r+=n-r%n),r}var K,pe,P,ue,Pe,$,Me,ri,St;function xi(r){K=r,e.HEAP8=pe=new Int8Array(r),e.HEAP16=ue=new Int16Array(r),e.HEAP32=$=new Int32Array(r),e.HEAPU8=P=new Uint8Array(r),e.HEAPU16=Pe=new Uint16Array(r),e.HEAPU32=Me=new Uint32Array(r),e.HEAPF32=ri=new Float32Array(r),e.HEAPF64=St=new Float64Array(r)}var tn=e.INITIAL_MEMORY||16777216,lr,Oi=[],cr=[],rn=[],_r=[],Ni=!1,nn=!1,an=0;function Li(){return de||an>0}function sn(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)Et(e.preRun.shift());ai(Oi)}function on(){Ni=!0,ai(cr)}function un(){ai(rn)}function ln(){nn=!0}function cn(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)Wt(e.postRun.shift());ai(_r)}function Et(r){Oi.unshift(r)}function Bi(r){cr.unshift(r)}function Wt(r){_r.unshift(r)}var At=0,Ui=null,Ke=null;function _n(r){At++,e.monitorRunDependencies&&e.monitorRunDependencies(At)}function fr(r){if(At--,e.monitorRunDependencies&&e.monitorRunDependencies(At),At==0&&(Ui!==null&&(clearInterval(Ui),Ui=null),Ke)){var n=Ke;Ke=null,n()}}e.preloadedImages={},e.preloadedAudios={};function Fe(r){e.onAbort&&e.onAbort(r),r="Aborted("+r+")",H(r),T=!0,F=1,r+=". Build with -s ASSERTIONS=1 for more info.";var n=new WebAssembly.RuntimeError(r);throw y(n),n}var dr="data:application/octet-stream;base64,";function pr(r){return r.startsWith(dr)}var tt;e.locateFile?(tt="./duckdb-mvp.wasm",pr(tt)||(tt=V(tt))):tt=new URL("./duckdb-mvp.wasm",Uc.url).toString();function qt(r){try{if(r==tt&&fe)return new Uint8Array(fe);if(ne)return ne(r);throw"both async and sync fetching of the wasm failed"}catch(n){Fe(n)}}function ni(){return!fe&&(D||U)&&typeof fetch=="function"?fetch(tt,{credentials:"same-origin"}).then(function(r){if(!r.ok)throw"failed to load wasm binary file at '"+tt+"'";return r.arrayBuffer()}).catch(function(){return qt(tt)}):Promise.resolve().then(function(){return qt(tt)})}function hr(){var r={a:Sa};function n(c,_){var f=c.exports;e.asm=f,Be=e.asm.Re,xi(Be.buffer),lr=e.asm.Ue,Bi(e.asm.Se),fr("wasm-instantiate")}_n("wasm-instantiate");function a(c){n(c.instance)}function s(c){return ni().then(function(_){return WebAssembly.instantiate(_,r)}).then(function(_){return _}).then(c,function(_){H("failed to asynchronously prepare wasm: "+_),Fe(_)})}function o(){return!fe&&typeof WebAssembly.instantiateStreaming=="function"&&!pr(tt)&&typeof fetch=="function"?fetch(tt,{credentials:"same-origin"}).then(function(c){var _=WebAssembly.instantiateStreaming(c,r);return _.then(a,function(f){return H("wasm streaming compile failed: "+f),H("falling back to ArrayBuffer instantiation"),s(a)})}):s(a)}if(e.instantiateWasm)try{var l=e.instantiateWasm(r,n);return l}catch(c){return H("Module.instantiateWasm callback failed with error: "+c),!1}return o().catch(y),{}}function ai(r){for(;r.length>0;){var n=r.shift();if(typeof n=="function"){n(e);continue}var a=n.func;typeof a=="number"?n.arg===void 0?G(a)():G(a)(n.arg):a(n.arg===void 0?null:n.arg)}}var si=[];function G(r){var n=si[r];return n||(r>=si.length&&(si.length=r+1),si[r]=n=lr.get(r)),n}function fn(r){if(r instanceof Rr||r=="unwind")return F;N(1,r)}function dn(r,n,a,s){Fe("Assertion failed: "+Ve(r)+", at: "+[n?Ve(n):"unknown filename",a,s?Ve(s):"unknown function"])}function pn(r){return B(r+16)+16}function gt(r){this.excPtr=r,this.ptr=r-16,this.set_type=function(n){$[this.ptr+4>>2]=n},this.get_type=function(){return $[this.ptr+4>>2]},this.set_destructor=function(n){$[this.ptr+8>>2]=n},this.get_destructor=function(){return $[this.ptr+8>>2]},this.set_refcount=function(n){$[this.ptr>>2]=n},this.set_caught=function(n){n=n?1:0,pe[this.ptr+12>>0]=n},this.get_caught=function(){return pe[this.ptr+12>>0]!=0},this.set_rethrown=function(n){n=n?1:0,pe[this.ptr+13>>0]=n},this.get_rethrown=function(){return pe[this.ptr+13>>0]!=0},this.init=function(n,a){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=$[this.ptr>>2];$[this.ptr>>2]=n+1},this.release_ref=function(){var n=$[this.ptr>>2];return $[this.ptr>>2]=n-1,n===1}}function ft(r){this.free=function(){re(this.ptr),this.ptr=0},this.set_base_ptr=function(n){$[this.ptr>>2]=n},this.get_base_ptr=function(){return $[this.ptr>>2]},this.set_adjusted_ptr=function(n){$[this.ptr+4>>2]=n},this.get_adjusted_ptr_addr=function(){return this.ptr+4},this.get_adjusted_ptr=function(){return $[this.ptr+4>>2]},this.get_exception_ptr=function(){var n=Ft(this.get_exception_info().get_type());if(n)return $[this.get_base_ptr()>>2];var a=this.get_adjusted_ptr();return a!==0?a:this.get_base_ptr()},this.get_exception_info=function(){return new gt(this.get_base_ptr())},r===void 0?(this.ptr=B(8),this.set_adjusted_ptr(0)):this.ptr=r}var oi=[];function Hi(r){r.add_ref()}var Yt=0;function mr(r){var n=new ft(r),a=n.get_exception_info();return a.get_caught()||(a.set_caught(!0),Yt--),a.set_rethrown(!1),oi.push(n),Hi(a),n.get_exception_ptr()}var it=0;function Kt(r){return re(new gt(r).ptr)}function $i(r){if(r.release_ref()&&!r.get_rethrown()){var n=r.get_destructor();n&&G(n)(r.excPtr),Kt(r.excPtr)}}function rt(){j(0);var r=oi.pop();$i(r.get_exception_info()),r.free(),it=0}function yr(r){var n=new ft(r),a=n.get_base_ptr();throw it||(it=a),n.free(),a}function hn(){var r=it;if(!r)return oe(0),0;var n=new gt(r),a=n.get_type(),s=new ft;if(s.set_base_ptr(r),s.set_adjusted_ptr(r),!a)return oe(0),s.ptr|0;for(var o=Array.prototype.slice.call(arguments),l=0;l<o.length;l++){var c=o[l];if(c===0||c===a)break;if(Qe(c,a,s.get_adjusted_ptr_addr()))return oe(c),s.ptr|0}return oe(a),s.ptr|0}function mn(){var r=it;if(!r)return oe(0),0;var n=new gt(r),a=n.get_type(),s=new ft;if(s.set_base_ptr(r),s.set_adjusted_ptr(r),!a)return oe(0),s.ptr|0;for(var o=Array.prototype.slice.call(arguments),l=0;l<o.length;l++){var c=o[l];if(c===0||c===a)break;if(Qe(c,a,s.get_adjusted_ptr_addr()))return oe(c),s.ptr|0}return oe(a),s.ptr|0}function yn(){var r=it;if(!r)return oe(0),0;var n=new gt(r),a=n.get_type(),s=new ft;if(s.set_base_ptr(r),s.set_adjusted_ptr(r),!a)return oe(0),s.ptr|0;for(var o=Array.prototype.slice.call(arguments),l=0;l<o.length;l++){var c=o[l];if(c===0||c===a)break;if(Qe(c,a,s.get_adjusted_ptr_addr()))return oe(c),s.ptr|0}return oe(a),s.ptr|0}function gn(){var r=it;if(!r)return oe(0),0;var n=new gt(r),a=n.get_type(),s=new ft;if(s.set_base_ptr(r),s.set_adjusted_ptr(r),!a)return oe(0),s.ptr|0;for(var o=Array.prototype.slice.call(arguments),l=0;l<o.length;l++){var c=o[l];if(c===0||c===a)break;if(Qe(c,a,s.get_adjusted_ptr_addr()))return oe(c),s.ptr|0}return oe(a),s.ptr|0}function vn(){var r=oi.pop();r||Fe("no exception to throw");var n=r.get_exception_info(),a=r.get_base_ptr();throw n.get_rethrown()?r.free():(oi.push(r),n.set_rethrown(!0),n.set_caught(!1),Yt++),it=a,a}function jn(r,n,a){var s=new gt(r);throw s.init(n,a),it=r,Yt++,r}function bn(){return Yt}var He={mappings:{},buffers:[null,[],[]],printChar:function(r,n){var a=He.buffers[r];n===0||n===10?((r===1?se:H)(We(a,0)),a.length=0):a.push(n)},varargs:void 0,get:function(){He.varargs+=4;var r=$[He.varargs-4>>2];return r},getStr:function(r){var n=Ve(r);return n},get64:function(r,n){return r}};function Wi(r,n,a,s,o){}function wn(r,n){return r=He.getStr(r),He.doAccess(r,n)}function kn(){H("missing function: $SOCKFS"),Fe(-1)}function gr(){H("missing function: $FS"),Fe(-1)}function Gt(r){var n=kn.getSocket(r);if(!n)throw new gr.ErrnoError(8);return n}function Cn(r){return $[ie()>>2]=r,r}function qi(r){return(r&255)+"."+(r>>8&255)+"."+(r>>16&255)+"."+(r>>24&255)}function vr(r){var n="",a=0,s=0,o=0,l=0,c=0,_=0,f=[r[0]&65535,r[0]>>16,r[1]&65535,r[1]>>16,r[2]&65535,r[2]>>16,r[3]&65535,r[3]>>16],p=!0,h="";for(_=0;_<5;_++)if(f[_]!==0){p=!1;break}if(p){if(h=qi(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-o>1&&(c=0),o=a,c++),c>s&&(s=c,l=a-s+1);for(a=0;a<8;a++){if(s>1&&f[a]===0&&a>=l&&a<l+s){a===l&&(n+=":",l===0&&(n+=":"));continue}n+=Number(ze(f[a]&65535)).toString(16),n+=a<7?":":""}return n}function jr(r,n){var a=ue[r>>1],s=ze(Pe[r+2>>1]),o;switch(a){case 2:if(n!==16)return{errno:28};o=$[r+4>>2],o=qi(o);break;case 10:if(n!==28)return{errno:28};o=[$[r+8>>2],$[r+12>>2],$[r+16>>2],$[r+20>>2]],o=vr(o);break;default:return{errno:5}}return{family:a,addr:o,port:s}}function ui(r){for(var n=r.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 li(r){return parseInt(r)}function Yi(r){var n,a,s,o,l=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,c=[];if(!l.test(r))return null;if(r==="::")return[0,0,0,0,0,0,0,0];for(r.startsWith("::")?r=r.replace("::","Z:"):r=r.replace("::",":Z:"),r.indexOf(".")>0?(r=r.replace(new RegExp("[.]","g"),":"),n=r.split(":"),n[n.length-4]=li(n[n.length-4])+li(n[n.length-3])*256,n[n.length-3]=li(n[n.length-2])+li(n[n.length-1])*256,n=n.slice(0,n.length-2)):n=r.split(":"),s=0,o=0,a=0;a<n.length;a++)if(typeof n[a]=="string")if(n[a]==="Z"){for(o=0;o<8-n.length+1;o++)c[a+o]=0;s=o-1}else c[a+s]=we(parseInt(n[a],16));else c[a+s]=n[a];return[c[1]<<16|c[0],c[3]<<16|c[2],c[5]<<16|c[4],c[7]<<16|c[6]]}var nt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(r){var n=ui(r);if(n!==null||(n=Yi(r),n!==null))return r;var a;if(nt.address_map.addrs[r])a=nt.address_map.addrs[r];else{var s=nt.address_map.id++;Ne(s<65535,"exceeded max address mappings of 65535"),a="172.29."+(s&255)+"."+(s&65280),nt.address_map.names[a]=r,nt.address_map.addrs[r]=a}return a},lookup_addr:function(r){return nt.address_map.names[r]?nt.address_map.names[r]:null}};function br(r,n,a){if(a&&r===0)return null;var s=jr(r,n);if(s.errno)throw new gr.ErrnoError(s.errno);return s.addr=nt.lookup_addr(s.addr)||s.addr,s}function Sn(r,n,a){var s=Gt(r),o=br(n,a);return s.sock_ops.bind(s,o.addr,o.port),0}function En(r,n,a){var s=Gt(r),o=br(n,a);return s.sock_ops.connect(s,o.addr,o.port),0}function An(r,n,a){return He.varargs=a,0}function Ki(r,n){}function Rn(r,n,a,s){}function Dn(r,n,a){}function Tn(r,n,a){}function wr(r,n){P.fill(0,r,r+n)}function Gi(r,n,a,s,o){switch(n){case 2:a=ui(a),wr(r,16),o&&($[o>>2]=16),ue[r>>1]=n,$[r+4>>2]=a,ue[r+2>>1]=we(s);break;case 10:a=Yi(a),wr(r,28),o&&($[o>>2]=28),$[r>>2]=n,$[r+8>>2]=a[0],$[r+12>>2]=a[1],$[r+16>>2]=a[2],$[r+20>>2]=a[3],ue[r+2>>1]=we(s);break;default:return 5}return 0}function Pn(r,n,a){var s=Gt(r);if(!s.daddr)return-53;var o=Gi(n,s.family,nt.lookup_name(s.daddr),s.dport,a);return 0}function Fn(r,n,a,s,o){var l=Gt(r);return n===1&&a===4?($[s>>2]=l.error,$[o>>2]=4,l.error=null,0):-50}function In(r,n,a){return He.varargs=a,0}function Mn(r,n){}function xn(r,n){return r=He.getStr(r),He.doMkdir(r,n)}function On(r,n,a){He.varargs=a}function Nn(r,n,a,s,o,l){var c=Gt(r),_=c.sock_ops.recvmsg(c,a);if(!_)return 0;if(o)var f=Gi(o,c.family,nt.lookup_name(_.addr),_.port,l);return P.set(_.buffer,n),_.buffer.byteLength}function Ln(r,n){}function Bn(r){}function Un(r,n,a,s,o,l){}function Hn(r,n,a){}function $n(r,n){}function Wn(r){}function qn(r,n){Fe("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Yn(r,n){Fe("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Kn(){Fe("")}var Vt;I?Vt=()=>{var r=process.hrtime();return r[0]*1e3+r[1]/1e6}:Vt=()=>performance.now();var Gn=!0;function zt(r,n){var a;if(r===0)a=Date.now();else if((r===1||r===4)&&Gn)a=Vt();else return Cn(28),-1;return $[n>>2]=a/1e3|0,$[n+4>>2]=a%1e3*1e3*1e3|0,0}function Vn(r,n){return globalThis.DUCKDB_RUNTIME.createDirectory(e,r,n)}function zn(r,n){return globalThis.DUCKDB_RUNTIME.checkDirectory(e,r,n)}function Qn(r,n){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(e,r,n)}function Xn(r,n){return globalThis.DUCKDB_RUNTIME.removeDirectory(e,r,n)}function Jn(r){return globalThis.DUCKDB_RUNTIME.closeFile(e,r)}function Zn(r,n){return globalThis.DUCKDB_RUNTIME.checkFile(e,r,n)}function ea(r){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(e,r)}function ta(r,n,a,s){return globalThis.DUCKDB_RUNTIME.moveFile(e,r,n,a,s)}function ia(r,n){return globalThis.DUCKDB_RUNTIME.openFile(e,r,n)}function ra(r,n,a,s){return globalThis.DUCKDB_RUNTIME.readFile(e,r,n,a,s)}function na(r,n){return globalThis.DUCKDB_RUNTIME.truncateFile(e,r,n)}function ci(r,n,a,s){return globalThis.DUCKDB_RUNTIME.writeFile(e,r,n,a,s)}function aa(r,n){return globalThis.DUCKDB_RUNTIME.glob(e,r,n)}function _i(r){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(e,r)}function Vi(r,n,a,s,o,l){return globalThis.DUCKDB_RUNTIME.callScalarUDF(e,r,n,a,s,o,l)}function fi(){return 2147483648}function di(r,n,a){P.copyWithin(r,n,n+a)}function pi(r){try{return Be.grow(r-K.byteLength+65535>>>16),xi(Be.buffer),1}catch{}}function sa(r){var n=P.length;r=r>>>0;var a=2147483648;if(r>a)return!1;for(var s=1;s<=4;s*=2){var o=n*(1+.2/s);o=Math.min(o,r+100663296);var l=Math.min(a,_t(Math.max(r,o),65536)),c=pi(l);if(c)return!0}return!1}var zi={};function oa(){return A||"./this.program"}function Qt(){if(!Qt.strings){var r=(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:r,_:oa()};for(var a in zi)zi[a]===void 0?delete n[a]:n[a]=zi[a];var s=[];for(var a in n)s.push(a+"="+n[a]);Qt.strings=s}return Qt.strings}function co(r,n){var a=0;return Qt().forEach(function(s,o){var l=n+a;$[r+o*4>>2]=l,ct(s,l),a+=s.length+1}),0}function ua(r,n){var a=Qt();$[r>>2]=a.length;var s=0;return a.forEach(function(o){s+=o.length+1}),$[n>>2]=s,0}function la(r){return 0}function ca(r,n,a,s,o,l){var c=He.getStreamFromFD(r),_=He.doReadv(c,n,a,s);return $[l>>2]=_,0}function _a(r,n,a,s,o,l){var c=He.getStreamFromFD(r),_=He.doWritev(c,n,a,s);return $[l>>2]=_,0}function fa(r,n,a,s){var o=He.getStreamFromFD(r),l=He.doReadv(o,n,a);return $[s>>2]=l,0}function da(r,n,a,s,o){}function pa(r){var n=He.getStreamFromFD(r);return n.stream_ops&&n.stream_ops.fsync?-n.stream_ops.fsync(n):0}function ha(r,n,a,s){for(var o=0,l=0;l<a;l++){var c=$[n>>2],_=$[n+4>>2];n+=8;for(var f=0;f<_;f++)He.printChar(r,P[c+f]);o+=_}return $[s>>2]=o,0}function ma(){return M()}function ya(r,n,a,s){var o=0,l=0,c=0,_=0,f=0,p=0,h;function w(S,x,W,le,me,Le){var L,te,ke,ye;return te=S===10?28:16,me=S===10?vr(me):qi(me),L=B(te),ye=Gi(L,S,me,Le),Ne(!ye),ke=B(32),$[ke+4>>2]=S,$[ke+8>>2]=x,$[ke+12>>2]=W,$[ke+24>>2]=le,$[ke+20>>2]=L,S===10?$[ke+16>>2]=28:$[ke+16>>2]=16,$[ke+28>>2]=0,ke}if(a&&(c=$[a>>2],_=$[a+4>>2],f=$[a+8>>2],p=$[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),!r&&!n)return-2;if(c&-1088||a!==0&&$[a>>2]&2&&!r)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=Ve(n),l=parseInt(n,10),isNaN(l)))return c&1024?-2:-8;if(!r)return _===0&&(_=2),(c&1)===0&&(_===2?o=Ce(2130706433):o=[0,0,0,1]),h=w(_,f,p,null,o,l),$[s>>2]=h,0;if(r=Ve(r),o=ui(r),o!==null)if(_===0||_===2)_=2;else if(_===10&&c&8)o=[0,0,Ce(65535),o],_=10;else return-2;else if(o=Yi(r),o!==null)if(_===0||_===10)_=10;else return-2;return o!=null?(h=w(_,f,p,r,o,l),$[s>>2]=h,0):c&4?-2:(r=nt.lookup_name(r),o=ui(r),_===0?_=2:_===10&&(o=[0,0,Ce(65535),o]),h=w(_,f,p,null,o,l),$[s>>2]=h,0)}function ga(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var r=new Uint8Array(1);return function(){return crypto.getRandomValues(r),r[0]}}else if(I)try{var n=require("crypto");return function(){return n.randomBytes(1)[0]}}catch{}return function(){Fe("randomDevice")}}function hi(r,n){hi.randomDevice||(hi.randomDevice=ga());for(var a=0;a<n;a++)pe[r+a>>0]=hi.randomDevice();return 0}function va(r,n,a,s,o,l,c){var _=jr(r,n);if(_.errno)return-6;var f=_.port,p=_.addr,h=!1;if(a&&s){var w;if(c&1||!(w=nt.lookup_addr(p))){if(c&8)return-2}else p=w;var S=yt(p,a,s);S+1>=s&&(h=!0)}if(o&&l){f=""+f;var S=yt(f,o,l);S+1>=l&&(h=!0)}return h?-12:0}function ja(r){return r}function ba(r){oe(r)}function mi(r){return r%4===0&&(r%100!==0||r%400===0)}function Qi(r,n){for(var a=0,s=0;s<=n;a+=r[s++]);return a}var yi=[31,29,31,30,31,30,31,31,30,31,30,31],gi=[31,28,31,30,31,30,31,31,30,31,30,31];function vi(r,n){for(var a=new Date(r.getTime());n>0;){var s=mi(a.getFullYear()),o=a.getMonth(),l=(s?yi:gi)[o];if(n>l-a.getDate())n-=l-a.getDate()+1,a.setDate(1),o<11?a.setMonth(o+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else return a.setDate(a.getDate()+n),a}return a}function wa(r,n,a,s){var o=$[s+40>>2],l={tm_sec:$[s>>2],tm_min:$[s+4>>2],tm_hour:$[s+8>>2],tm_mday:$[s+12>>2],tm_mon:$[s+16>>2],tm_year:$[s+20>>2],tm_wday:$[s+24>>2],tm_yday:$[s+28>>2],tm_isdst:$[s+32>>2],tm_gmtoff:$[s+36>>2],tm_zone:o?Ve(o):""},c=Ve(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(L,te,ke){for(var ye=typeof L=="number"?L.toString():L||"";ye.length<te;)ye=ke[0]+ye;return ye}function S(L,te){return w(L,te,"0")}function x(L,te){function ke(et){return et<0?-1:et>0?1:0}var ye;return(ye=ke(L.getFullYear()-te.getFullYear()))===0&&(ye=ke(L.getMonth()-te.getMonth()))===0&&(ye=ke(L.getDate()-te.getDate())),ye}function W(L){switch(L.getDay()){case 0:return new Date(L.getFullYear()-1,11,29);case 1:return L;case 2:return new Date(L.getFullYear(),0,3);case 3:return new Date(L.getFullYear(),0,2);case 4:return new Date(L.getFullYear(),0,1);case 5:return new Date(L.getFullYear()-1,11,31);case 6:return new Date(L.getFullYear()-1,11,30)}}function le(L){var te=vi(new Date(L.tm_year+1900,0,1),L.tm_yday),ke=new Date(te.getFullYear(),0,4),ye=new Date(te.getFullYear()+1,0,4),et=W(ke),It=W(ye);return x(et,te)<=0?x(It,te)<=0?te.getFullYear()+1:te.getFullYear():te.getFullYear()-1}var me={"%a":function(L){return p[L.tm_wday].substring(0,3)},"%A":function(L){return p[L.tm_wday]},"%b":function(L){return h[L.tm_mon].substring(0,3)},"%B":function(L){return h[L.tm_mon]},"%C":function(L){var te=L.tm_year+1900;return S(te/100|0,2)},"%d":function(L){return S(L.tm_mday,2)},"%e":function(L){return w(L.tm_mday,2," ")},"%g":function(L){return le(L).toString().substring(2)},"%G":function(L){return le(L)},"%H":function(L){return S(L.tm_hour,2)},"%I":function(L){var te=L.tm_hour;return te==0?te=12:te>12&&(te-=12),S(te,2)},"%j":function(L){return S(L.tm_mday+Qi(mi(L.tm_year+1900)?yi:gi,L.tm_mon-1),3)},"%m":function(L){return S(L.tm_mon+1,2)},"%M":function(L){return S(L.tm_min,2)},"%n":function(){return`
4
- `},"%p":function(L){return L.tm_hour>=0&&L.tm_hour<12?"AM":"PM"},"%S":function(L){return S(L.tm_sec,2)},"%t":function(){return" "},"%u":function(L){return L.tm_wday||7},"%U":function(L){var te=new Date(L.tm_year+1900,0,1),ke=te.getDay()===0?te:vi(te,7-te.getDay()),ye=new Date(L.tm_year+1900,L.tm_mon,L.tm_mday);if(x(ke,ye)<0){var et=Qi(mi(ye.getFullYear())?yi:gi,ye.getMonth()-1)-31,It=31-ke.getDate(),Xt=It+et+ye.getDate();return S(Math.ceil(Xt/7),2)}return x(ke,te)===0?"01":"00"},"%V":function(L){var te=new Date(L.tm_year+1900,0,4),ke=new Date(L.tm_year+1901,0,4),ye=W(te),et=W(ke),It=vi(new Date(L.tm_year+1900,0,1),L.tm_yday);if(x(It,ye)<0)return"53";if(x(et,It)<=0)return"01";var Xt;return ye.getFullYear()<L.tm_year+1900?Xt=L.tm_yday+32-ye.getDate():Xt=L.tm_yday+1-ye.getDate(),S(Math.ceil(Xt/7),2)},"%w":function(L){return L.tm_wday},"%W":function(L){var te=new Date(L.tm_year,0,1),ke=te.getDay()===1?te:vi(te,te.getDay()===0?1:7-te.getDay()+1),ye=new Date(L.tm_year+1900,L.tm_mon,L.tm_mday);if(x(ke,ye)<0){var et=Qi(mi(ye.getFullYear())?yi:gi,ye.getMonth()-1)-31,It=31-ke.getDate(),Xt=It+et+ye.getDate();return S(Math.ceil(Xt/7),2)}return x(ke,te)===0?"01":"00"},"%y":function(L){return(L.tm_year+1900).toString().substring(2)},"%Y":function(L){return L.tm_year+1900},"%z":function(L){var te=L.tm_gmtoff,ke=te>=0;return te=Math.abs(te)/60,te=te/60*100+te%60,(ke?"+":"-")+String("0000"+te).slice(-4)},"%Z":function(L){return L.tm_zone},"%%":function(){return"%"}};for(var f in me)c.includes(f)&&(c=c.replace(new RegExp(f,"g"),me[f](l)));var Le=Ca(c,!1);return Le.length>n?0:(_e(Le,r),Le.length-1)}function ka(r,n,a,s){return wa(r,n,a,s)}function Ca(r,n,a){var s=a>0?a:ht(r)+1,o=new Array(s),l=$t(r,o,0,o.length);return n&&(o.length=l),o}var Sa={p:dn,j:pn,A:mr,F:rt,b:hn,n:mn,H:yn,W:gn,i:Kt,da:vn,v:jn,E:bn,e:yr,Ca:Wi,Qe:wn,Ea:Sn,Da:En,Q:An,Sa:Ki,Qa:Rn,Na:Dn,Oa:Tn,ya:Pn,Ba:Fn,Ua:In,Pa:Mn,Ta:xn,oa:On,za:Nn,Oe:Ln,ma:Bn,Aa:Un,ga:Hn,Ra:$n,na:Wn,ha:qn,Ga:Yn,_:Kn,la:zt,Ge:Vn,He:zn,Ee:Qn,Fe:Xn,ta:Jn,Ce:Zn,Je:ea,De:ta,Ke:ia,fa:ra,Ie:na,ua:ci,Be:aa,sa:_i,Le:Vi,Va:fi,kb:di,ed:sa,Xa:co,Ya:ua,U:la,pe:ca,qb:_a,qa:fa,ye:da,Pe:pa,ea:ha,a:ma,Fa:ya,Ma:hi,xa:va,ia:Xp,N:Hp,Ja:Gp,T:yp,yc:ay,ja:Qp,X:Wp,ra:mp,zc:ny,u:kp,Ha:Zp,Ka:Ip,Z:Op,Ia:Jp,La:Fp,d:lp,aa:ih,D:Np,Ib:zy,c:cp,Y:$p,va:nh,h:fp,Gb:Xy,m:hp,pa:Tp,o:dp,w:Sp,z:bp,S:xp,y:wp,x:Ep,q:Kp,O:th,J:eh,cc:Ay,fc:Cy,ic:by,oc:hy,dc:Ey,Hb:Qy,xc:sy,gc:ky,pc:py,Pb:$y,ue:fh,Qd:Wh,Jd:Qh,te:dh,Ub:Ny,jd:wm,Lb:Ky,Kb:Gy,Xd:Oh,Pd:qh,yb:ag,Xc:xm,Wd:Nh,Ec:ey,Vb:Oy,Jb:Vy,ke:bh,Td:Uh,Ac:ry,Kd:zh,vd:cm,Hd:Jh,mb:mg,Ud:Bh,me:vh,Rd:$h,id:km,gb:bg,Ob:Wy,se:ph,Yd:xh,xd:um,wb:og,Ld:Vh,hb:jg,Fb:Jy,Sd:Hh,Dd:im,Gd:Zh,Fd:em,Ed:tm,Ad:am,mc:yy,$b:Ty,ee:Ah,qc:dy,ae:Ph,qe:mh,tc:cy,sc:_y,xe:lh,we:ch,Od:Yh,Ae:oh,qd:hm,rc:fy,ec:Sy,Fc:Zm,vc:uy,Uc:Lm,vb:ug,Cc:iy,sd:dm,md:vm,Mc:Km,wc:oy,zb:ng,ac:Dy,od:ym,dd:Am,Pc:Wm,Oc:qm,Lc:Gm,Nc:Ym,td:fm,ad:Tm,Mb:Yy,kc:vy,ob:pg,_c:Fm,uc:ly,Cb:tg,Yb:Iy,Db:eg,Wb:xy,t:op,k:_p,C:Up,ba:Yp,sb:_g,K:Bp,ca:qp,tb:cg,f:up,V:vp,R:Lp,Bc:gp,g:jp,l:pp,Ne:ah,r:Mp,s:Dp,wa:rh,B:Cp,L:Pp,P:zp,M:Ap,Me:sh,ka:Vp,$:Rp,Cd:rm,rb:fg,kd:bm,bc:Ry,Dc:ty,nc:my,Qb:Hy,Za:Tg,jb:gg,ie:kh,Vd:Lh,xb:sg,eb:kg,yd:om,zd:sm,Zb:Fy,Yc:Mm,Sb:By,Rb:Uy,_a:Dg,Qc:$m,he:Ch,_d:Ih,Bd:nm,Wc:Om,Ic:Qm,Ab:rg,Nb:qy,Bb:ig,ib:vg,ce:Dh,ud:_m,Tb:Ly,Gc:Jm,Tc:Bm,ge:Sh,fb:wg,oe:yh,re:hh,ve:_h,Id:Xh,db:Cg,cd:Rm,Kc:Vm,Jc:zm,bd:Dm,Zc:Im,nd:gm,lb:yg,hd:Cm,cb:Sg,Hc:Xm,nb:hg,ze:uh,le:jh,fd:Em,Rc:Hm,be:Th,hc:wy,je:wh,de:Rh,gd:Sm,Nd:Kh,Md:Gh,$c:Pm,ub:lg,ld:jm,lc:gy,fe:Eh,bb:Eg,Sc:Um,pb:dg,$d:Fh,Vc:Nm,$a:Rg,ab:Ag,jc:jy,ne:gh,rd:pm,Zd:Mh,Xb:My,_b:Py,Eb:Zy,wd:lm,pd:mm,G:ja,I:ba,Wa:ka},_o=hr(),Ea=e.___wasm_call_ctors=function(){return(Ea=e.___wasm_call_ctors=e.asm.Se).apply(null,arguments)},Aa=e._main=function(){return(Aa=e._main=e.asm.Te).apply(null,arguments)},Ra=e._duckdb_web_fs_glob_add_path=function(){return(Ra=e._duckdb_web_fs_glob_add_path=e.asm.Ve).apply(null,arguments)},Da=e._duckdb_web_clear_response=function(){return(Da=e._duckdb_web_clear_response=e.asm.We).apply(null,arguments)},Ta=e._duckdb_web_fail_with=function(){return(Ta=e._duckdb_web_fail_with=e.asm.Xe).apply(null,arguments)},Pa=e._duckdb_web_reset=function(){return(Pa=e._duckdb_web_reset=e.asm.Ye).apply(null,arguments)},Fa=e._duckdb_web_connect=function(){return(Fa=e._duckdb_web_connect=e.asm.Ze).apply(null,arguments)},Ia=e._duckdb_web_disconnect=function(){return(Ia=e._duckdb_web_disconnect=e.asm._e).apply(null,arguments)},Ma=e._duckdb_web_flush_files=function(){return(Ma=e._duckdb_web_flush_files=e.asm.$e).apply(null,arguments)},xa=e._duckdb_web_flush_file=function(){return(xa=e._duckdb_web_flush_file=e.asm.af).apply(null,arguments)},Oa=e._duckdb_web_open=function(){return(Oa=e._duckdb_web_open=e.asm.bf).apply(null,arguments)},Na=e._duckdb_web_get_global_file_info=function(){return(Na=e._duckdb_web_get_global_file_info=e.asm.cf).apply(null,arguments)},La=e._duckdb_web_collect_file_stats=function(){return(La=e._duckdb_web_collect_file_stats=e.asm.df).apply(null,arguments)},Ba=e._duckdb_web_export_file_stats=function(){return(Ba=e._duckdb_web_export_file_stats=e.asm.ef).apply(null,arguments)},kr=e._duckdb_web_fs_drop_file=function(){return(kr=e._duckdb_web_fs_drop_file=e.asm.ff).apply(null,arguments)},ji=e._duckdb_web_fs_drop_files=function(){return(ji=e._duckdb_web_fs_drop_files=e.asm.gf).apply(null,arguments)},bi=e._duckdb_web_fs_glob_file_infos=function(){return(bi=e._duckdb_web_fs_glob_file_infos=e.asm.hf).apply(null,arguments)},Xi=e._duckdb_web_fs_get_file_info_by_id=function(){return(Xi=e._duckdb_web_fs_get_file_info_by_id=e.asm.jf).apply(null,arguments)},Cr=e._duckdb_web_fs_get_file_info_by_name=function(){return(Cr=e._duckdb_web_fs_get_file_info_by_name=e.asm.kf).apply(null,arguments)},Sr=e._duckdb_web_fs_set_file_descriptor=function(){return(Sr=e._duckdb_web_fs_set_file_descriptor=e.asm.lf).apply(null,arguments)},Ji=e._duckdb_web_fs_register_file_url=function(){return(Ji=e._duckdb_web_fs_register_file_url=e.asm.mf).apply(null,arguments)},Zi=e._duckdb_web_fs_register_file_buffer=function(){return(Zi=e._duckdb_web_fs_register_file_buffer=e.asm.nf).apply(null,arguments)},Ua=e._duckdb_web_copy_file_to_buffer=function(){return(Ua=e._duckdb_web_copy_file_to_buffer=e.asm.of).apply(null,arguments)},wi=e._duckdb_web_copy_file_to_path=function(){return(wi=e._duckdb_web_copy_file_to_path=e.asm.pf).apply(null,arguments)},ki=e._duckdb_web_get_version=function(){return(ki=e._duckdb_web_get_version=e.asm.qf).apply(null,arguments)},Ha=e._duckdb_web_get_feature_flags=function(){return(Ha=e._duckdb_web_get_feature_flags=e.asm.rf).apply(null,arguments)},$a=e._duckdb_web_tokenize=function(){return($a=e._duckdb_web_tokenize=e.asm.sf).apply(null,arguments)},er=e._duckdb_web_udf_scalar_create=function(){return(er=e._duckdb_web_udf_scalar_create=e.asm.tf).apply(null,arguments)},Wa=e._duckdb_web_prepared_create=function(){return(Wa=e._duckdb_web_prepared_create=e.asm.uf).apply(null,arguments)},qa=e._duckdb_web_prepared_close=function(){return(qa=e._duckdb_web_prepared_close=e.asm.vf).apply(null,arguments)},Er=e._duckdb_web_prepared_run=function(){return(Er=e._duckdb_web_prepared_run=e.asm.wf).apply(null,arguments)},m=e._duckdb_web_prepared_send=function(){return(m=e._duckdb_web_prepared_send=e.asm.xf).apply(null,arguments)},g=e._duckdb_web_query_run=function(){return(g=e._duckdb_web_query_run=e.asm.yf).apply(null,arguments)},C=e._duckdb_web_query_send=function(){return(C=e._duckdb_web_query_send=e.asm.zf).apply(null,arguments)},R=e._duckdb_web_query_fetch_results=function(){return(R=e._duckdb_web_query_fetch_results=e.asm.Af).apply(null,arguments)},O=e._duckdb_web_get_tablenames=function(){return(O=e._duckdb_web_get_tablenames=e.asm.Bf).apply(null,arguments)},J=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(J=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Cf).apply(null,arguments)},Y=e._duckdb_web_insert_csv_from_path=function(){return(Y=e._duckdb_web_insert_csv_from_path=e.asm.Df).apply(null,arguments)},q=e._duckdb_web_insert_json_from_path=function(){return(q=e._duckdb_web_insert_json_from_path=e.asm.Ef).apply(null,arguments)},ie=e.___errno_location=function(){return(ie=e.___errno_location=e.asm.Ff).apply(null,arguments)},Ce=e._htonl=function(){return(Ce=e._htonl=e.asm.Gf).apply(null,arguments)},we=e._htons=function(){return(we=e._htons=e.asm.Hf).apply(null,arguments)},ze=e._ntohs=function(){return(ze=e._ntohs=e.asm.If).apply(null,arguments)},j=e._setThrew=function(){return(j=e._setThrew=e.asm.Jf).apply(null,arguments)},k=e.stackSave=function(){return(k=e.stackSave=e.asm.Kf).apply(null,arguments)},b=e.stackRestore=function(){return(b=e.stackRestore=e.asm.Lf).apply(null,arguments)},Ze=e.stackAlloc=function(){return(Ze=e.stackAlloc=e.asm.Mf).apply(null,arguments)},Qe=e.___cxa_can_catch=function(){return(Qe=e.___cxa_can_catch=e.asm.Nf).apply(null,arguments)},Ft=e.___cxa_is_pointer_type=function(){return(Ft=e.___cxa_is_pointer_type=e.asm.Of).apply(null,arguments)},B=e._malloc=function(){return(B=e._malloc=e.asm.Pf).apply(null,arguments)},re=e._free=function(){return(re=e._free=e.asm.Qf).apply(null,arguments)},Se=e.dynCall_jiiii=function(){return(Se=e.dynCall_jiiii=e.asm.Rf).apply(null,arguments)},Ee=e.dynCall_iiiiij=function(){return(Ee=e.dynCall_iiiiij=e.asm.Sf).apply(null,arguments)},st=e.dynCall_iiiiijj=function(){return(st=e.dynCall_iiiiijj=e.asm.Tf).apply(null,arguments)},mt=e.dynCall_viijii=function(){return(mt=e.dynCall_viijii=e.asm.Uf).apply(null,arguments)},vt=e.dynCall_j=function(){return(vt=e.dynCall_j=e.asm.Vf).apply(null,arguments)},fo=e.dynCall_ji=function(){return(fo=e.dynCall_ji=e.asm.Wf).apply(null,arguments)},po=e.dynCall_iij=function(){return(po=e.dynCall_iij=e.asm.Xf).apply(null,arguments)},ho=e.dynCall_viij=function(){return(ho=e.dynCall_viij=e.asm.Yf).apply(null,arguments)},mo=e.dynCall_viijji=function(){return(mo=e.dynCall_viijji=e.asm.Zf).apply(null,arguments)},yo=e.dynCall_viijj=function(){return(yo=e.dynCall_viijj=e.asm._f).apply(null,arguments)},go=e.dynCall_viiijj=function(){return(go=e.dynCall_viiijj=e.asm.$f).apply(null,arguments)},vo=e.dynCall_viiji=function(){return(vo=e.dynCall_viiji=e.asm.ag).apply(null,arguments)},jo=e.dynCall_vijjj=function(){return(jo=e.dynCall_vijjj=e.asm.bg).apply(null,arguments)},bo=e.dynCall_iiijj=function(){return(bo=e.dynCall_iiijj=e.asm.cg).apply(null,arguments)},wo=e.dynCall_viiij=function(){return(wo=e.dynCall_viiij=e.asm.dg).apply(null,arguments)},ko=e.dynCall_viijij=function(){return(ko=e.dynCall_viijij=e.asm.eg).apply(null,arguments)},Co=e.dynCall_viiijjj=function(){return(Co=e.dynCall_viiijjj=e.asm.fg).apply(null,arguments)},So=e.dynCall_iiij=function(){return(So=e.dynCall_iiij=e.asm.gg).apply(null,arguments)},Eo=e.dynCall_vijijj=function(){return(Eo=e.dynCall_vijijj=e.asm.hg).apply(null,arguments)},Ao=e.dynCall_iji=function(){return(Ao=e.dynCall_iji=e.asm.ig).apply(null,arguments)},Ro=e.dynCall_viji=function(){return(Ro=e.dynCall_viji=e.asm.jg).apply(null,arguments)},Do=e.dynCall_vij=function(){return(Do=e.dynCall_vij=e.asm.kg).apply(null,arguments)},To=e.dynCall_viiiij=function(){return(To=e.dynCall_viiiij=e.asm.lg).apply(null,arguments)},Po=e.dynCall_jii=function(){return(Po=e.dynCall_jii=e.asm.mg).apply(null,arguments)},Fo=e.dynCall_viiiji=function(){return(Fo=e.dynCall_viiiji=e.asm.ng).apply(null,arguments)},Io=e.dynCall_vijj=function(){return(Io=e.dynCall_vijj=e.asm.og).apply(null,arguments)},Mo=e.dynCall_vj=function(){return(Mo=e.dynCall_vj=e.asm.pg).apply(null,arguments)},xo=e.dynCall_iiji=function(){return(xo=e.dynCall_iiji=e.asm.qg).apply(null,arguments)},Oo=e.dynCall_iiiij=function(){return(Oo=e.dynCall_iiiij=e.asm.rg).apply(null,arguments)},No=e.dynCall_iiiiiji=function(){return(No=e.dynCall_iiiiiji=e.asm.sg).apply(null,arguments)},Lo=e.dynCall_iiiji=function(){return(Lo=e.dynCall_iiiji=e.asm.tg).apply(null,arguments)},Bo=e.dynCall_iiiiji=function(){return(Bo=e.dynCall_iiiiji=e.asm.ug).apply(null,arguments)},Uo=e.dynCall_jiii=function(){return(Uo=e.dynCall_jiii=e.asm.vg).apply(null,arguments)},Ho=e.dynCall_jij=function(){return(Ho=e.dynCall_jij=e.asm.wg).apply(null,arguments)},$o=e.dynCall_iijjijj=function(){return($o=e.dynCall_iijjijj=e.asm.xg).apply(null,arguments)},Wo=e.dynCall_viiiijiiiii=function(){return(Wo=e.dynCall_viiiijiiiii=e.asm.yg).apply(null,arguments)},qo=e.dynCall_viiiijiiii=function(){return(qo=e.dynCall_viiiijiiii=e.asm.zg).apply(null,arguments)},Yo=e.dynCall_viiijii=function(){return(Yo=e.dynCall_viiijii=e.asm.Ag).apply(null,arguments)},Ko=e.dynCall_viiiiiij=function(){return(Ko=e.dynCall_viiiiiij=e.asm.Bg).apply(null,arguments)},Go=e.dynCall_iiijiii=function(){return(Go=e.dynCall_iiijiii=e.asm.Cg).apply(null,arguments)},Vo=e.dynCall_iiiiijii=function(){return(Vo=e.dynCall_iiiiijii=e.asm.Dg).apply(null,arguments)},zo=e.dynCall_viijiii=function(){return(zo=e.dynCall_viijiii=e.asm.Eg).apply(null,arguments)},Qo=e.dynCall_iiijiij=function(){return(Qo=e.dynCall_iiijiij=e.asm.Fg).apply(null,arguments)},Xo=e.dynCall_vijiii=function(){return(Xo=e.dynCall_vijiii=e.asm.Gg).apply(null,arguments)},Jo=e.dynCall_iijjii=function(){return(Jo=e.dynCall_iijjii=e.asm.Hg).apply(null,arguments)},Zo=e.dynCall_iijjiii=function(){return(Zo=e.dynCall_iijjiii=e.asm.Ig).apply(null,arguments)},eu=e.dynCall_iijjiiii=function(){return(eu=e.dynCall_iijjiiii=e.asm.Jg).apply(null,arguments)},tu=e.dynCall_iijji=function(){return(tu=e.dynCall_iijji=e.asm.Kg).apply(null,arguments)},iu=e.dynCall_vijiiii=function(){return(iu=e.dynCall_vijiiii=e.asm.Lg).apply(null,arguments)},ru=e.dynCall_iijiiii=function(){return(ru=e.dynCall_iijiiii=e.asm.Mg).apply(null,arguments)},nu=e.dynCall_iijii=function(){return(nu=e.dynCall_iijii=e.asm.Ng).apply(null,arguments)},au=e.dynCall_vijij=function(){return(au=e.dynCall_vijij=e.asm.Og).apply(null,arguments)},su=e.dynCall_iiijiiii=function(){return(su=e.dynCall_iiijiiii=e.asm.Pg).apply(null,arguments)},ou=e.dynCall_jiiij=function(){return(ou=e.dynCall_jiiij=e.asm.Qg).apply(null,arguments)},uu=e.dynCall_jiiiii=function(){return(uu=e.dynCall_jiiiii=e.asm.Rg).apply(null,arguments)},lu=e.dynCall_iiiiijjiijj=function(){return(lu=e.dynCall_iiiiijjiijj=e.asm.Sg).apply(null,arguments)},cu=e.dynCall_viijiiji=function(){return(cu=e.dynCall_viijiiji=e.asm.Tg).apply(null,arguments)},_u=e.dynCall_vjjijij=function(){return(_u=e.dynCall_vjjijij=e.asm.Ug).apply(null,arguments)},fu=e.dynCall_vijjji=function(){return(fu=e.dynCall_vijjji=e.asm.Vg).apply(null,arguments)},du=e.dynCall_vjjii=function(){return(du=e.dynCall_vjjii=e.asm.Wg).apply(null,arguments)},pu=e.dynCall_viiiiiji=function(){return(pu=e.dynCall_viiiiiji=e.asm.Xg).apply(null,arguments)},hu=e.dynCall_jiiiji=function(){return(hu=e.dynCall_jiiiji=e.asm.Yg).apply(null,arguments)},mu=e.dynCall_iijj=function(){return(mu=e.dynCall_iijj=e.asm.Zg).apply(null,arguments)},yu=e.dynCall_iiijjii=function(){return(yu=e.dynCall_iiijjii=e.asm._g).apply(null,arguments)},gu=e.dynCall_vijii=function(){return(gu=e.dynCall_vijii=e.asm.$g).apply(null,arguments)},vu=e.dynCall_viijjii=function(){return(vu=e.dynCall_viijjii=e.asm.ah).apply(null,arguments)},ju=e.dynCall_viiiijj=function(){return(ju=e.dynCall_viiiijj=e.asm.bh).apply(null,arguments)},bu=e.dynCall_jijjij=function(){return(bu=e.dynCall_jijjij=e.asm.ch).apply(null,arguments)},wu=e.dynCall_jiijii=function(){return(wu=e.dynCall_jiijii=e.asm.dh).apply(null,arguments)},ku=e.dynCall_jijiii=function(){return(ku=e.dynCall_jijiii=e.asm.eh).apply(null,arguments)},Cu=e.dynCall_viijiiiii=function(){return(Cu=e.dynCall_viijiiiii=e.asm.fh).apply(null,arguments)},Su=e.dynCall_viijiiij=function(){return(Su=e.dynCall_viijiiij=e.asm.gh).apply(null,arguments)},Eu=e.dynCall_vijiiiji=function(){return(Eu=e.dynCall_vijiiiji=e.asm.hh).apply(null,arguments)},Au=e.dynCall_jiiji=function(){return(Au=e.dynCall_jiiji=e.asm.ih).apply(null,arguments)},Ru=e.dynCall_viiijij=function(){return(Ru=e.dynCall_viiijij=e.asm.jh).apply(null,arguments)},Du=e.dynCall_viijiij=function(){return(Du=e.dynCall_viijiij=e.asm.kh).apply(null,arguments)},Tu=e.dynCall_viiiiijj=function(){return(Tu=e.dynCall_viiiiijj=e.asm.lh).apply(null,arguments)},Pu=e.dynCall_viiijji=function(){return(Pu=e.dynCall_viiijji=e.asm.mh).apply(null,arguments)},Fu=e.dynCall_iiiijiii=function(){return(Fu=e.dynCall_iiiijiii=e.asm.nh).apply(null,arguments)},Iu=e.dynCall_iiijij=function(){return(Iu=e.dynCall_iiijij=e.asm.oh).apply(null,arguments)},Mu=e.dynCall_iiijji=function(){return(Mu=e.dynCall_iiijji=e.asm.ph).apply(null,arguments)},xu=e.dynCall_iiiijj=function(){return(xu=e.dynCall_iiiijj=e.asm.qh).apply(null,arguments)},Ou=e.dynCall_viiijiii=function(){return(Ou=e.dynCall_viiijiii=e.asm.rh).apply(null,arguments)},Nu=e.dynCall_vijji=function(){return(Nu=e.dynCall_vijji=e.asm.sh).apply(null,arguments)},Lu=e.dynCall_jiiiij=function(){return(Lu=e.dynCall_jiiiij=e.asm.th).apply(null,arguments)},Bu=e.dynCall_jiijiiiii=function(){return(Bu=e.dynCall_jiijiiiii=e.asm.uh).apply(null,arguments)},Uu=e.dynCall_jiijiijiii=function(){return(Uu=e.dynCall_jiijiijiii=e.asm.vh).apply(null,arguments)},Hu=e.dynCall_jiijjiii=function(){return(Hu=e.dynCall_jiijjiii=e.asm.wh).apply(null,arguments)},$u=e.dynCall_jiiijii=function(){return($u=e.dynCall_jiiijii=e.asm.xh).apply(null,arguments)},Wu=e.dynCall_jiijijii=function(){return(Wu=e.dynCall_jiijijii=e.asm.yh).apply(null,arguments)},qu=e.dynCall_viiijjij=function(){return(qu=e.dynCall_viiijjij=e.asm.zh).apply(null,arguments)},Yu=e.dynCall_vijijjiij=function(){return(Yu=e.dynCall_vijijjiij=e.asm.Ah).apply(null,arguments)},Ku=e.dynCall_viijjij=function(){return(Ku=e.dynCall_viijjij=e.asm.Bh).apply(null,arguments)},Gu=e.dynCall_viiijjiij=function(){return(Gu=e.dynCall_viiijjiij=e.asm.Ch).apply(null,arguments)},Vu=e.dynCall_viiiijjjj=function(){return(Vu=e.dynCall_viiiijjjj=e.asm.Dh).apply(null,arguments)},zu=e.dynCall_viijiiiiij=function(){return(zu=e.dynCall_viijiiiiij=e.asm.Eh).apply(null,arguments)},Qu=e.dynCall_viijiiiijj=function(){return(Qu=e.dynCall_viijiiiijj=e.asm.Fh).apply(null,arguments)},Xu=e.dynCall_viiijiiiijjj=function(){return(Xu=e.dynCall_viiijiiiijjj=e.asm.Gh).apply(null,arguments)},Ju=e.dynCall_viijijiiiijjj=function(){return(Ju=e.dynCall_viijijiiiijjj=e.asm.Hh).apply(null,arguments)},Zu=e.dynCall_viiiiijiiii=function(){return(Zu=e.dynCall_viiiiijiiii=e.asm.Ih).apply(null,arguments)},el=e.dynCall_iiijii=function(){return(el=e.dynCall_iiijii=e.asm.Jh).apply(null,arguments)},tl=e.dynCall_fiijii=function(){return(tl=e.dynCall_fiijii=e.asm.Kh).apply(null,arguments)},il=e.dynCall_diijii=function(){return(il=e.dynCall_diijii=e.asm.Lh).apply(null,arguments)},rl=e.dynCall_iiiiiiijii=function(){return(rl=e.dynCall_iiiiiiijii=e.asm.Mh).apply(null,arguments)},nl=e.dynCall_viiiiji=function(){return(nl=e.dynCall_viiiiji=e.asm.Nh).apply(null,arguments)},al=e.dynCall_jiiiijii=function(){return(al=e.dynCall_jiiiijii=e.asm.Oh).apply(null,arguments)},sl=e.dynCall_jiiijiii=function(){return(sl=e.dynCall_jiiijiii=e.asm.Ph).apply(null,arguments)},ol=e.dynCall_jiiiiijiiii=function(){return(ol=e.dynCall_jiiiiijiiii=e.asm.Qh).apply(null,arguments)},ul=e.dynCall_jj=function(){return(ul=e.dynCall_jj=e.asm.Rh).apply(null,arguments)},ll=e.dynCall_jd=function(){return(ll=e.dynCall_jd=e.asm.Sh).apply(null,arguments)},cl=e.dynCall_jf=function(){return(cl=e.dynCall_jf=e.asm.Th).apply(null,arguments)},_l=e.dynCall_iijjj=function(){return(_l=e.dynCall_iijjj=e.asm.Uh).apply(null,arguments)},fl=e.dynCall_vijijiiiijjj=function(){return(fl=e.dynCall_vijijiiiijjj=e.asm.Vh).apply(null,arguments)},dl=e.dynCall_iiiiiiji=function(){return(dl=e.dynCall_iiiiiiji=e.asm.Wh).apply(null,arguments)},pl=e.dynCall_iiiiiiiiji=function(){return(pl=e.dynCall_iiiiiiiiji=e.asm.Xh).apply(null,arguments)},hl=e.dynCall_jijijjij=function(){return(hl=e.dynCall_jijijjij=e.asm.Yh).apply(null,arguments)},ml=e.dynCall_viijjj=function(){return(ml=e.dynCall_viijjj=e.asm.Zh).apply(null,arguments)},yl=e.dynCall_vijjij=function(){return(yl=e.dynCall_vijjij=e.asm._h).apply(null,arguments)},gl=e.dynCall_viijjji=function(){return(gl=e.dynCall_viijjji=e.asm.$h).apply(null,arguments)},vl=e.dynCall_iiiiiij=function(){return(vl=e.dynCall_iiiiiij=e.asm.ai).apply(null,arguments)},jl=e.dynCall_iiiiiiiiiiji=function(){return(jl=e.dynCall_iiiiiiiiiiji=e.asm.bi).apply(null,arguments)},bl=e.dynCall_jiiiiiii=function(){return(bl=e.dynCall_jiiiiiii=e.asm.ci).apply(null,arguments)},wl=e.dynCall_jijj=function(){return(wl=e.dynCall_jijj=e.asm.di).apply(null,arguments)},kl=e.dynCall_viiiijiiiiiiii=function(){return(kl=e.dynCall_viiiijiiiiiiii=e.asm.ei).apply(null,arguments)},Cl=e.dynCall_ij=function(){return(Cl=e.dynCall_ij=e.asm.fi).apply(null,arguments)},Sl=e.dynCall_jjj=function(){return(Sl=e.dynCall_jjj=e.asm.gi).apply(null,arguments)},El=e.dynCall_vjii=function(){return(El=e.dynCall_vjii=e.asm.hi).apply(null,arguments)},Al=e.dynCall_jjjjjjd=function(){return(Al=e.dynCall_jjjjjjd=e.asm.ii).apply(null,arguments)},Rl=e.dynCall_vjiiii=function(){return(Rl=e.dynCall_vjiiii=e.asm.ji).apply(null,arguments)},Dl=e.dynCall_viiiiijiii=function(){return(Dl=e.dynCall_viiiiijiii=e.asm.ki).apply(null,arguments)},Tl=e.dynCall_jiij=function(){return(Tl=e.dynCall_jiij=e.asm.li).apply(null,arguments)},Pl=e.dynCall_iiiijjii=function(){return(Pl=e.dynCall_iiiijjii=e.asm.mi).apply(null,arguments)},Fl=e.dynCall_iiiiijji=function(){return(Fl=e.dynCall_iiiiijji=e.asm.ni).apply(null,arguments)},Il=e.dynCall_viiijjii=function(){return(Il=e.dynCall_viiijjii=e.asm.oi).apply(null,arguments)},Ml=e.dynCall_viiiijji=function(){return(Ml=e.dynCall_viiiijji=e.asm.pi).apply(null,arguments)},xl=e.dynCall_viiiijjii=function(){return(xl=e.dynCall_viiiijjii=e.asm.qi).apply(null,arguments)},Ol=e.dynCall_viiiiijji=function(){return(Ol=e.dynCall_viiiiijji=e.asm.ri).apply(null,arguments)},Nl=e.dynCall_iiiiiijji=function(){return(Nl=e.dynCall_iiiiiijji=e.asm.si).apply(null,arguments)},Ll=e.dynCall_iiiiijjj=function(){return(Ll=e.dynCall_iiiiijjj=e.asm.ti).apply(null,arguments)},Bl=e.dynCall_jijiiii=function(){return(Bl=e.dynCall_jijiiii=e.asm.ui).apply(null,arguments)},Ul=e.dynCall_viiijiji=function(){return(Ul=e.dynCall_viiijiji=e.asm.vi).apply(null,arguments)},Hl=e.dynCall_iiijjjii=function(){return(Hl=e.dynCall_iiijjjii=e.asm.wi).apply(null,arguments)},$l=e.dynCall_iiiiijjji=function(){return($l=e.dynCall_iiiiijjji=e.asm.xi).apply(null,arguments)},Wl=e.dynCall_iiiijjj=function(){return(Wl=e.dynCall_iiiijjj=e.asm.yi).apply(null,arguments)},ql=e.dynCall_iidj=function(){return(ql=e.dynCall_iidj=e.asm.zi).apply(null,arguments)},Yl=e.dynCall_ijji=function(){return(Yl=e.dynCall_ijji=e.asm.Ai).apply(null,arguments)},Kl=e.dynCall_iiiiiiiij=function(){return(Kl=e.dynCall_iiiiiiiij=e.asm.Bi).apply(null,arguments)},Gl=e.dynCall_iiiiiiij=function(){return(Gl=e.dynCall_iiiiiiij=e.asm.Ci).apply(null,arguments)},Vl=e.dynCall_iiiiiiiiiiiij=function(){return(Vl=e.dynCall_iiiiiiiiiiiij=e.asm.Di).apply(null,arguments)},zl=e.dynCall_iiiiiiiji=function(){return(zl=e.dynCall_iiiiiiiji=e.asm.Ei).apply(null,arguments)},Ql=e.dynCall_iiiidjj=function(){return(Ql=e.dynCall_iiiidjj=e.asm.Fi).apply(null,arguments)},Xl=e.dynCall_jiiiiiijii=function(){return(Xl=e.dynCall_jiiiiiijii=e.asm.Gi).apply(null,arguments)},Jl=e.dynCall_iiiijji=function(){return(Jl=e.dynCall_iiiijji=e.asm.Hi).apply(null,arguments)},Zl=e.dynCall_jiiiiii=function(){return(Zl=e.dynCall_jiiiiii=e.asm.Ii).apply(null,arguments)},ec=e.dynCall_iijiji=function(){return(ec=e.dynCall_iijiji=e.asm.Ji).apply(null,arguments)},tc=e.dynCall_vjiiiji=function(){return(tc=e.dynCall_vjiiiji=e.asm.Ki).apply(null,arguments)},ic=e.dynCall_jjjii=function(){return(ic=e.dynCall_jjjii=e.asm.Li).apply(null,arguments)},rc=e.dynCall_jji=function(){return(rc=e.dynCall_jji=e.asm.Mi).apply(null,arguments)},nc=e.dynCall_viiijijiji=function(){return(nc=e.dynCall_viiijijiji=e.asm.Ni).apply(null,arguments)},ac=e.dynCall_jiiijj=function(){return(ac=e.dynCall_jiiijj=e.asm.Oi).apply(null,arguments)},sc=e.dynCall_iiiijii=function(){return(sc=e.dynCall_iiiijii=e.asm.Pi).apply(null,arguments)},oc=e.dynCall_viiiijii=function(){return(oc=e.dynCall_viiiijii=e.asm.Qi).apply(null,arguments)},uc=e.dynCall_iijiii=function(){return(uc=e.dynCall_iijiii=e.asm.Ri).apply(null,arguments)},lc=e.dynCall_jiiiiji=function(){return(lc=e.dynCall_jiiiiji=e.asm.Si).apply(null,arguments)},cc=e.dynCall_vijiijj=function(){return(cc=e.dynCall_vijiijj=e.asm.Ti).apply(null,arguments)},_c=e.dynCall_vifiijj=function(){return(_c=e.dynCall_vifiijj=e.asm.Ui).apply(null,arguments)},fc=e.dynCall_vidiijj=function(){return(fc=e.dynCall_vidiijj=e.asm.Vi).apply(null,arguments)},dc=e.dynCall_viiiiij=function(){return(dc=e.dynCall_viiiiij=e.asm.Wi).apply(null,arguments)},pc=e.dynCall_ijjiii=function(){return(pc=e.dynCall_ijjiii=e.asm.Xi).apply(null,arguments)},hc=e.dynCall_vijijjji=function(){return(hc=e.dynCall_vijijjji=e.asm.Yi).apply(null,arguments)},mc=e.dynCall_viijiijj=function(){return(mc=e.dynCall_viijiijj=e.asm.Zi).apply(null,arguments)},yc=e.dynCall_viijijj=function(){return(yc=e.dynCall_viijijj=e.asm._i).apply(null,arguments)},gc=e.dynCall_viiiiijjji=function(){return(gc=e.dynCall_viiiiijjji=e.asm.$i).apply(null,arguments)},vc=e.dynCall_iiijiijj=function(){return(vc=e.dynCall_iiijiijj=e.asm.aj).apply(null,arguments)},jc=e.dynCall_viiijijjj=function(){return(jc=e.dynCall_viiijijjj=e.asm.bj).apply(null,arguments)},bc=e.dynCall_iijiijj=function(){return(bc=e.dynCall_iijiijj=e.asm.cj).apply(null,arguments)},wc=e.dynCall_viiijjjji=function(){return(wc=e.dynCall_viiijjjji=e.asm.dj).apply(null,arguments)},kc=e.dynCall_viiiijiii=function(){return(kc=e.dynCall_viiiijiii=e.asm.ej).apply(null,arguments)},Cc=e.dynCall_viijiiii=function(){return(Cc=e.dynCall_viijiiii=e.asm.fj).apply(null,arguments)},Sc=e.dynCall_vijjiiii=function(){return(Sc=e.dynCall_vijjiiii=e.asm.gj).apply(null,arguments)},Ec=e.dynCall_vijijjiiiii=function(){return(Ec=e.dynCall_vijijjiiiii=e.asm.hj).apply(null,arguments)},Ac=e.dynCall_vijjiiiii=function(){return(Ac=e.dynCall_vijjiiiii=e.asm.ij).apply(null,arguments)},Rc=e.dynCall_iiijjji=function(){return(Rc=e.dynCall_iiijjji=e.asm.jj).apply(null,arguments)},Dc=e.dynCall_viiiijjj=function(){return(Dc=e.dynCall_viiiijjj=e.asm.kj).apply(null,arguments)},Tc=e.dynCall_viiiiijjj=function(){return(Tc=e.dynCall_viiiiijjj=e.asm.lj).apply(null,arguments)},Pc=e.dynCall_viijiji=function(){return(Pc=e.dynCall_viijiji=e.asm.mj).apply(null,arguments)};function op(r){var n=k();try{G(r)()}catch(a){if(b(n),a!==a+0&&a!=="longjmp")throw a;j(1,0)}}function up(r,n,a){var s=k();try{G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function lp(r,n){var a=k();try{return G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function cp(r,n,a){var s=k();try{return G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function _p(r,n){var a=k();try{G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function fp(r,n,a,s){var o=k();try{return G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function dp(r,n,a,s,o,l){var c=k();try{return G(r)(n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function pp(r,n,a,s,o){var l=k();try{G(r)(n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function hp(r,n,a,s,o){var l=k();try{return G(r)(n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function mp(r,n,a,s){var o=k();try{return G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function yp(r,n,a,s){var o=k();try{return G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function gp(r,n,a,s){var o=k();try{G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function vp(r,n,a,s){var o=k();try{G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function jp(r,n,a,s){var o=k();try{G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function bp(r,n,a,s,o,l,c,_){var f=k();try{return G(r)(n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function wp(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return G(r)(n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function kp(r){var n=k();try{return G(r)()}catch(a){if(b(n),a!==a+0&&a!=="longjmp")throw a;j(1,0)}}function Cp(r,n,a,s,o,l,c,_){var f=k();try{G(r)(n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Sp(r,n,a,s,o,l,c){var _=k();try{return G(r)(n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Ep(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return G(r)(n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function Ap(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{G(r)(n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Rp(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le){var me=k();try{G(r)(n,a,s,o,l,c,_,f,p,h,w,S,x,W,le)}catch(Le){if(b(me),Le!==Le+0&&Le!=="longjmp")throw Le;j(1,0)}}function Dp(r,n,a,s,o,l,c){var _=k();try{G(r)(n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Tp(r,n,a,s,o,l){var c=k();try{return G(r)(n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Pp(r,n,a,s,o,l,c,_,f){var p=k();try{G(r)(n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Fp(r,n,a){var s=k();try{return G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Ip(r,n,a){var s=k();try{return G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Mp(r,n,a,s,o,l){var c=k();try{G(r)(n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function xp(r,n,a,s,o,l,c,_,f){var p=k();try{return G(r)(n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Op(r,n,a,s,o){var l=k();try{return G(r)(n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Np(r,n,a,s,o){var l=k();try{return G(r)(n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Lp(r,n,a,s,o,l){var c=k();try{G(r)(n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Bp(r,n,a){var s=k();try{G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Up(r,n,a){var s=k();try{G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Hp(r,n){var a=k();try{return G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function $p(r,n,a,s){var o=k();try{return G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function Wp(r,n){var a=k();try{return G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function qp(r,n,a,s){var o=k();try{G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function Yp(r,n,a,s){var o=k();try{G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function Kp(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W){var le=k();try{return G(r)(n,a,s,o,l,c,_,f,p,h,w,S,x,W)}catch(me){if(b(le),me!==me+0&&me!=="longjmp")throw me;j(1,0)}}function Gp(r,n,a){var s=k();try{return G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Vp(r,n,a,s,o,l,c,_,f,p,h,w,S,x){var W=k();try{G(r)(n,a,s,o,l,c,_,f,p,h,w,S,x)}catch(le){if(b(W),le!==le+0&&le!=="longjmp")throw le;j(1,0)}}function zp(r,n,a,s,o,l,c,_,f,p){var h=k();try{G(r)(n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Qp(r){var n=k();try{return G(r)()}catch(a){if(b(n),a!==a+0&&a!=="longjmp")throw a;j(1,0)}}function Xp(r){var n=k();try{return G(r)()}catch(a){if(b(n),a!==a+0&&a!=="longjmp")throw a;j(1,0)}}function Jp(r,n){var a=k();try{return G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function Zp(r,n){var a=k();try{return G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function eh(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le,L,te,ke){var ye=k();try{return G(r)(n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le,L,te,ke)}catch(et){if(b(ye),et!==et+0&&et!=="longjmp")throw et;j(1,0)}}function th(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le,L,te){var ke=k();try{return G(r)(n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le,L,te)}catch(ye){if(b(ke),ye!==ye+0&&ye!=="longjmp")throw ye;j(1,0)}}function ih(r,n,a){var s=k();try{return G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function rh(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{G(r)(n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function nh(r,n,a,s){var o=k();try{return G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function ah(r,n,a,s,o,l,c,_,f,p){var h=k();try{G(r)(n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function sh(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{G(r)(n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function oh(r,n,a,s,o){var l=k();try{return Se(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function uh(r,n,a,s,o,l,c){var _=k();try{yo(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function lh(r,n){var a=k();try{return fo(r,n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function ch(r,n,a){var s=k();try{return Po(r,n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function _h(r,n,a,s,o,l,c){var _=k();try{mt(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function fh(r,n,a,s,o,l,c){var _=k();try{return Ee(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function dh(r,n,a,s,o,l,c,_,f){var p=k();try{return st(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function ph(r,n,a,s){var o=k();try{return po(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function hh(r,n,a,s,o,l){var c=k();try{vo(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function mh(r){var n=k();try{return vt(r)}catch(a){if(b(n),a!==a+0&&a!=="longjmp")throw a;j(1,0)}}function yh(r,n,a,s,o){var l=k();try{ho(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function gh(r,n,a,s,o,l,c,_){var f=k();try{jo(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function vh(r,n,a,s,o,l,c){var _=k();try{return bo(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function jh(r,n,a,s,o,l,c,_){var f=k();try{mo(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function bh(r,n,a,s,o){var l=k();try{return So(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function wh(r,n,a,s){var o=k();try{Do(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function kh(r,n,a,s,o,l,c){var _=k();try{To(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Ch(r,n,a,s,o,l){var c=k();try{wo(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Sh(r,n,a,s,o,l,c,_,f,p){var h=k();try{Co(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Eh(r,n,a,s,o,l,c,_,f){var p=k();try{Eo(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Ah(r,n,a,s){var o=k();try{return Ao(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function Rh(r,n,a,s,o){var l=k();try{Ro(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Dh(r,n,a,s,o,l,c,_){var f=k();try{go(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Th(r,n,a,s,o,l,c,_,f){var p=k();try{ml(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Ph(r,n,a,s,o,l,c,_){var f=k();try{return pc(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Fh(r,n,a,s,o,l){var c=k();try{Io(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Ih(r,n,a,s,o,l,c){var _=k();try{Fo(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Mh(r,n,a){var s=k();try{Mo(r,n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function xh(r,n,a,s,o){var l=k();try{return xo(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Oh(r,n,a,s,o,l){var c=k();try{return Oo(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Nh(r,n,a,s,o,l,c,_){var f=k();try{return xu(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Lh(r,n,a,s,o,l,c,_){var f=k();try{nl(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Bh(r,n,a,s,o,l,c,_){var f=k();try{return Iu(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Uh(r,n,a,s,o,l){var c=k();try{return Lo(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Hh(r,n,a,s,o,l){var c=k();try{return mu(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function $h(r,n,a,s,o,l,c,_){var f=k();try{return Mu(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Wh(r,n,a,s,o,l,c,_){var f=k();try{return No(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function qh(r,n,a,s,o,l,c){var _=k();try{return Bo(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Yh(r,n,a,s){var o=k();try{return Uo(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function Kh(r,n,a,s,o,l,c){var _=k();try{Xo(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Gh(r,n,a,s,o,l,c,_){var f=k();try{iu(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Vh(r,n,a,s,o,l,c,_){var f=k();try{return ru(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function zh(r,n,a,s,o,l,c,_){var f=k();try{return Go(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Qh(r,n,a,s,o,l,c,_,f){var p=k();try{return Vo(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Xh(r,n,a,s,o,l,c,_){var f=k();try{zo(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Jh(r,n,a,s,o,l,c,_,f){var p=k();try{return Qo(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Zh(r,n,a,s,o,l,c,_){var f=k();try{return Jo(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function em(r,n,a,s,o,l,c,_,f){var p=k();try{return Zo(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function tm(r,n,a,s,o,l,c,_,f,p){var h=k();try{return eu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function im(r,n,a,s,o,l,c){var _=k();try{return tu(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function rm(r,n,a,s,o,l,c,_,f){var p=k();try{Ko(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function nm(r,n,a,s,o,l,c,_){var f=k();try{Yo(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function am(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return $o(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function sm(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{Wo(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function om(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{qo(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function um(r,n,a,s,o,l){var c=k();try{return nu(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function lm(r,n,a,s,o,l,c){var _=k();try{du(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function cm(r,n,a,s,o,l,c,_,f){var p=k();try{return su(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function _m(r,n,a,s,o,l,c,_,f){var p=k();try{Pu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function fm(r,n,a,s){var o=k();try{return Ho(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function dm(r,n,a,s,o,l){var c=k();try{return ou(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function pm(r,n,a,s,o,l,c,_,f){var p=k();try{fu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function hm(r,n,a,s,o,l){var c=k();try{return uu(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function mm(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{_u(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function ym(r,n,a,s,o,l){var c=k();try{return Au(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function gm(r,n,a,s,o,l,c,_,f,p){var h=k();try{cu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function vm(r,n,a,s,o,l,c){var _=k();try{return hu(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function jm(r,n,a,s,o,l,c){var _=k();try{au(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function bm(r,n,a,s,o,l,c,_,f){var p=k();try{pu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function wm(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W){var le=k();try{return lu(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W)}catch(me){if(b(le),me!==me+0&&me!=="longjmp")throw me;j(1,0)}}function km(r,n,a,s,o,l,c,_,f){var p=k();try{return yu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Cm(r,n,a,s,o,l,c,_){var f=k();try{ko(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Sm(r,n,a,s,o,l){var c=k();try{gu(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Em(r,n,a,s,o,l,c,_,f){var p=k();try{vu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Am(r,n,a,s,o,l,c){var _=k();try{return wu(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Rm(r,n,a,s,o,l,c,_,f,p){var h=k();try{Cu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Dm(r,n,a,s,o,l,c,_,f,p){var h=k();try{Su(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Tm(r,n,a,s,o,l,c){var _=k();try{return ku(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Pm(r,n,a,s,o,l,c,_,f,p){var h=k();try{Eu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Fm(r,n,a,s,o,l,c,_,f){var p=k();try{return bu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Im(r,n,a,s,o,l,c,_,f){var p=k();try{Du(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Mm(r,n,a,s,o,l,c,_,f){var p=k();try{ju(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function xm(r,n,a,s,o,l,c,_,f){var p=k();try{return Fu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Om(r,n,a,s,o,l,c,_,f){var p=k();try{Ou(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Nm(r,n,a,s,o,l,c){var _=k();try{Nu(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Lm(r,n,a,s,o,l,c){var _=k();try{return Lu(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Bm(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{qu(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Um(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{Yu(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function Hm(r,n,a,s,o,l,c,_,f,p){var h=k();try{Ku(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function $m(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{Vu(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function Wm(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Bu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function qm(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return Uu(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function Ym(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Hu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Km(r,n,a,s,o,l,c,_){var f=k();try{return $u(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Gm(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Wu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Vm(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{zu(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function zm(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{Qu(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function Qm(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le){var me=k();try{Xu(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le)}catch(Le){if(b(me),Le!==Le+0&&Le!=="longjmp")throw Le;j(1,0)}}function Xm(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le){var L=k();try{Ju(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le)}catch(te){if(b(L),te!==te+0&&te!=="longjmp")throw te;j(1,0)}}function Jm(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{Gu(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function Zm(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return Xl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function ey(r,n,a,s,o,l,c,_,f){var p=k();try{return Jl(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function ty(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{Zu(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function iy(r,n,a,s,o,l,c,_,f){var p=k();try{return al(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function ry(r,n,a,s,o,l,c){var _=k();try{return el(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function ny(r,n,a,s,o,l,c){var _=k();try{return tl(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function ay(r,n,a,s,o,l,c){var _=k();try{return il(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function sy(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return rl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function oy(r,n,a,s,o,l,c,_,f){var p=k();try{return sl(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function uy(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return ol(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function ly(r,n,a){var s=k();try{return ul(r,n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function cy(r,n){var a=k();try{return ll(r,n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function _y(r,n){var a=k();try{return cl(r,n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function fy(r,n,a,s,o,l,c){var _=k();try{return Zl(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function dy(r,n,a,s,o,l){var c=k();try{return Yl(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function py(r,n,a,s,o,l,c,_,f){var p=k();try{return dl(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function hy(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return pl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function my(r,n,a,s,o,l,c,_,f,p){var h=k();try{Tu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function yy(r,n,a,s,o,l,c,_){var f=k();try{return _l(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function gy(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me){var Le=k();try{fl(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me)}catch(L){if(b(Le),L!==L+0&&L!=="longjmp")throw L;j(1,0)}}function vy(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return hl(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function jy(r,n,a,s,o,l,c,_,f){var p=k();try{yl(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function by(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Kl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function wy(r,n,a,s,o,l,c,_,f,p){var h=k();try{gl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function ky(r,n,a,s,o,l,c,_){var f=k();try{return vl(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Cy(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{return jl(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function Sy(r,n,a,s,o,l,c,_){var f=k();try{return bl(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Ey(r,n,a,s,o,l,c,_,f){var p=k();try{return Gl(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Ay(r,n,a,s,o,l,c,_,f,p,h,w,S,x){var W=k();try{return Vl(r,n,a,s,o,l,c,_,f,p,h,w,S,x)}catch(le){if(b(W),le!==le+0&&le!=="longjmp")throw le;j(1,0)}}function Ry(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{Dl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Dy(r,n,a,s,o){var l=k();try{return Tl(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Ty(r,n,a){var s=k();try{return Cl(r,n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Py(r,n,a,s,o,l,c){var _=k();try{Rl(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Fy(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W){var le=k();try{kl(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W)}catch(me){if(b(le),me!==me+0&&me!=="longjmp")throw me;j(1,0)}}function Iy(r,n,a,s,o){var l=k();try{return Sl(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function My(r,n,a,s,o){var l=k();try{El(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function xy(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return Al(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function Oy(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Pl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Ny(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Fl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Ly(r,n,a,s,o,l,c,_,f,p){var h=k();try{Il(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function By(r,n,a,s,o,l,c,_,f,p){var h=k();try{Ml(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Uy(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{xl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Hy(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{Ol(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function $y(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return Nl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Wy(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return Hl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function qy(r,n,a,s,o,l,c,_,f,p){var h=k();try{Ul(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Yy(r,n,a,s,o,l,c,_){var f=k();try{return Bl(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Ky(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return Ll(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Gy(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return $l(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function Vy(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Wl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function zy(r,n,a,s,o){var l=k();try{return ql(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Qy(r,n,a,s,o,l,c,_,f,p){var h=k();try{return zl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Xy(r,n,a,s,o,l,c,_,f){var p=k();try{return Ql(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Jy(r,n,a,s,o,l,c,_){var f=k();try{return ec(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Zy(r,n,a,s,o,l,c,_,f){var p=k();try{tc(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function eg(r,n,a,s,o,l,c){var _=k();try{return ic(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function tg(r,n,a,s){var o=k();try{return rc(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function ig(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{nc(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function rg(r,n,a,s,o,l,c,_,f){var p=k();try{Ru(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function ng(r,n,a,s,o,l,c,_){var f=k();try{return ac(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function ag(r,n,a,s,o,l,c,_){var f=k();try{return sc(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function sg(r,n,a,s,o,l,c,_,f){var p=k();try{oc(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function og(r,n,a,s,o,l,c){var _=k();try{return uc(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function ug(r,n,a,s,o,l,c,_){var f=k();try{return lc(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function lg(r,n,a,s,o,l,c,_,f,p){var h=k();try{cc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function cg(r,n,a,s,o,l,c,_,f){var p=k();try{_c(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function _g(r,n,a,s,o,l,c,_,f){var p=k();try{fc(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function fg(r,n,a,s,o,l,c,_){var f=k();try{dc(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function dg(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{hc(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function pg(r,n,a,s,o,l){var c=k();try{return wl(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function hg(r,n,a,s,o,l,c,_,f,p){var h=k();try{yc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function mg(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return vc(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function yg(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{mc(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function gg(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{gc(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function vg(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{jc(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function jg(r,n,a,s,o,l,c,_,f,p){var h=k();try{return bc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function bg(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Rc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function wg(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{wc(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function kg(r,n,a,s,o,l,c,_,f,p){var h=k();try{kc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Cg(r,n,a,s,o,l,c,_,f){var p=k();try{Cc(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Sg(r,n,a,s,o,l,c,_,f){var p=k();try{Pc(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Eg(r,n,a,s,o,l,c,_,f,p,h,w,S,x){var W=k();try{Ec(r,n,a,s,o,l,c,_,f,p,h,w,S,x)}catch(le){if(b(W),le!==le+0&&le!=="longjmp")throw le;j(1,0)}}function Ag(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{Ac(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Rg(r,n,a,s,o,l,c,_,f,p){var h=k();try{Sc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Dg(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{Dc(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Tg(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{Tc(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}e.ccall=Ue;var Ar;function Rr(r){this.name="ExitStatus",this.message="Program terminated with exit("+r+")",this.status=r}var Pg=!1;Ke=function r(){Ar||Ya(),Ar||(Ke=r)};function Fg(r){var n=e._main,a=0,s=0;try{var o=n(a,s);return Ig(o,!0),o}catch(l){return fn(l)}finally{Pg=!0}}function Ya(r){if(r=r||E,At>0||(sn(),At>0))return;function n(){Ar||(Ar=!0,e.calledRun=!0,!T&&(on(),un(),d(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),Fc&&Fg(r),cn()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),n()},1)):n()}e.run=Ya;function Ig(r,n){F=r,Li()||ln(),Mg(r)}function Mg(r){F=r,Li()||(e.onExit&&e.onExit(r),T=!0),N(r,new Rr(r))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var Fc=!0;return e.noInitialRun&&(Fc=!1),Ya(),t.ready}})(),Hc=Yg;var Mt=ir(require("apache-arrow")),Va=class{constructor(t,e){this._bindings=t,this._conn=e}close(){this._bindings.disconnect(this._conn)}useUnsafe(t){return t(this._bindings,this._conn)}query(t){let e=this._bindings.runQuery(this._conn,t),u=Mt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),Mt.Table.from(u)}send(t){let e=this._bindings.sendQuery(this._conn,t),u=new za(this._bindings,this._conn,e),d=Mt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}getTableNames(t){return this._bindings.getTableNames(this._conn,t)}prepare(t){let e=this._bindings.createPrepared(this._conn,t);return new $c(this._bindings,this._conn,e)}createScalarFunction(t,e,u){this._bindings.createScalarFunction(this._conn,t,e,u)}insertArrowTable(t,e){let u=t.serialize("binary",!0);this.insertArrowFromIPCStream(u,e)}insertArrowFromIPCStream(t,e){this._bindings.insertArrowFromIPCStream(this._conn,t,e)}insertCSVFromPath(t,e){this._bindings.insertCSVFromPath(this._conn,t,e)}insertJSONFromPath(t,e){this._bindings.insertJSONFromPath(this._conn,t,e)}},za=class{constructor(t,e,u){this.bindings=t;this.conn=e;this.header=u;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let t=this.bindings.fetchQueryResults(this.conn);return this._depleted=t.length==0,{done:this._depleted,value:t}}[Symbol.iterator](){return this}},$c=class{constructor(t,e,u){this.bindings=t,this.connectionId=e,this.statementId=u}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),u=Mt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),Mt.Table.from(u)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),u=new za(this.bindings,this.connectionId,e),d=Mt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}};var Kg=new TextEncoder;function nr(i,t,e){let u=Kg.encode(e),d=i._malloc(u.byteLength),y=i.HEAPU8.subarray(d,d+u.byteLength);y.set(u),i.HEAPF64[(t>>3)+0]=1,i.HEAPF64[(t>>3)+1]=d,i.HEAPF64[(t>>3)+2]=y.byteLength}function Qa(i){switch(i){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 xt(i,t,e,u){let d=i.HEAPU8.subarray(t,t+u*Qa(e));switch(e){case"UINT8":return new Uint8Array(d.buffer,d.byteOffset,u);case"INT8":return new Int8Array(d.buffer,d.byteOffset,u);case"INT32":return new Int32Array(d.buffer,d.byteOffset,u);case"FLOAT":return new Float32Array(d.buffer,d.byteOffset,u);case"DOUBLE":return new Float64Array(d.buffer,d.byteOffset,u);case"VARCHAR":return new Float64Array(d.buffer,d.byteOffset,u);default:return new Array(0)}}function Wc(i,t,e,u,d,y,v,E){try{let A=i._udfFunctions.get(u);if(!A){nr(t,e,"Unknown UDF with id: "+u);return}let N=new TextDecoder().decode(t.HEAPU8.subarray(d,d+y)),D=JSON.parse(N),U=xt(t,v,"DOUBLE",E/8),I=[],X=[];for(let H in D.args){let Z=D.args[H],oe=xt(t,U[Z.data_buffer],Z.physical_type,D.rows),M=xt(t,U[Z.validity_buffer],"UINT8",D.rows);if(oe.length==0||M.length==0){nr(t,e,"Can't create physical arrays for argument "+Z.physical_type);return}if(I.push(M),Z.physical_type=="VARCHAR"){let fe=xt(t,U[Z.length_buffer],"DOUBLE",D.rows),de=[],Be=new TextDecoder;for(let T=0;T<D.rows;++T){if(!M[T]){de.push(void 0);continue}let F=t.HEAPU8.subarray(oe[T],oe[T]+fe[T]),Ne=Be.decode(F);de.push(Ne)}X.push(de)}else X.push(oe)}let V=D.rows*Qa(D.ret.physical_type),Q=t._malloc(V),ee=xt(t,Q,D.ret.physical_type,D.rows),ne=t._malloc(D.rows),be=xt(t,ne,"UINT8",D.rows);if(ee.length==0||be.length==0){nr(t,e,"Can't create physical arrays for result");return}let Ae=ee;switch(D.ret.physical_type=="VARCHAR"&&(ee=new Array(D.rows)),D.args.length){case 0:for(let H=0;H<D.rows;++H){let Z=A.func();ee[H]=Z,be[H]=Z==null?0:1}break;case 1:for(let H=0;H<D.rows;++H){let Z=A.func(I[0][H]?X[0][H]:void 0);ee[H]=Z,be[H]=Z==null?0:1}break;case 2:for(let H=0;H<D.rows;++H){let Z=A.func(I[0][H]?X[0][H]:void 0,I[1][H]?X[1][H]:void 0);ee[H]=Z,be[H]=Z==null?0:1}break;default:nr(t,e,"Can't deal with argument count: "+D.args.length);return}let Ie=0;if(D.ret.physical_type=="VARCHAR"){let H=new TextEncoder,Z=new Array(0),oe=0;Ie=t._malloc(D.rows*Qa("DOUBLE"));let M=xt(t,Ie,"DOUBLE",D.rows);for(let T=0;T<D.rows;++T)Z[T]=H.encode(ee[T]),oe+=Z[T].length,M[T]=Z[T].length;let fe=t._malloc(oe),de=t.HEAPU8.subarray(fe,fe+oe),Be=0;ee=Ae;for(let T=0;T<D.rows;++T){ee[T]=fe+Be;for(let F=0;F<Z[T].length;F++)de[Be+F]=Z[T][F];Be+=Z[T].length}}let ae=3*8,je=t._malloc(ae),se=xt(t,je,"DOUBLE",3);se[0]=Q,se[1]=ne,se[2]=Ie,t.HEAPF64[(e>>3)+0]=0,t.HEAPF64[(e>>3)+1]=je,t.HEAPF64[(e>>3)+2]=0}catch(A){nr(t,e,A.toString())}}function Vg(){let i=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),i.decode(t))}var Rt=Vg();function Te(i,t){i.ccall("duckdb_web_fail_with",null,["string"],[t])}function Ci(i,t,e){let u=i.HEAPU8.subarray(t,t+e),d=new Uint8Array(new ArrayBuffer(u.byteLength));return d.set(u),d}function ve(i,t,e){return Rt(i.HEAPU8.subarray(t,t+e))}function De(i,t,e,u){let d=i.stackSave(),y=i.stackAlloc(3*8);e.unshift("number"),u.unshift(y),i.ccall(t,null,e,u);let v=i.HEAPF64[(y>>3)+0],E=i.HEAPF64[(y>>3)+1],A=i.HEAPF64[(y>>3)+2];return i.stackRestore(d),[v,E,A]}function xe(i){i.ccall("duckdb_web_clear_response",null,[],[])}var Xa=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),u=new Uint8Array(new ArrayBuffer(t.byteLength));u.set(t.subarray(7*8)),this.totalFileReadsCold=e[0],this.totalFileReadsAhead=e[1],this.totalFileReadsCached=e[2],this.totalFileWrites=e[3],this.totalPageAccesses=e[4],this.totalPageLoads=e[5],this.blockSize=e[6],this.blockStats=u}getBlockStats(t,e){return e=e||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},e.file_writes=this.blockStats[t*3+0]&15,e.file_reads_cold=this.blockStats[t*3+0]>>4,e.file_reads_ahead=this.blockStats[t*3+1]&15,e.file_reads_cached=this.blockStats[t*3+1]>>4,e.page_accesses=this.blockStats[t*3+1]&15,e.page_loads=this.blockStats[t*3+1]>>4,e}};var zg=new TextEncoder;var Ja=class{constructor(t,e){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=t,this._runtime=e,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(t=e=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(t),await this._initPromise),this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this.onInstantiationProgress=[t],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter(e=>e!=t),this)}open(t){let[e,u,d]=De(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(e!==0)throw new Error(ve(this.mod,u,d));xe(this.mod)}reset(){let[t,e,u]=De(this.mod,"duckdb_web_reset",[],[]);if(t!==0)throw new Error(ve(this.mod,e,u));xe(this.mod)}getVersion(){let[t,e,u]=De(this.mod,"duckdb_web_get_version",[],[]);if(t!==0)throw new Error(ve(this.mod,e,u));let d=ve(this.mod,e,u);return xe(this.mod),d}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,u,d]=De(this.mod,"duckdb_web_tokenize",["string"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));let y=ve(this.mod,u,d);return xe(this.mod),JSON.parse(y)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new Va(this,t)}disconnect(t){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[t]),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"dropUDFFunctions",connectionId:t})}runQuery(t,e){let[u,d,y]=De(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));let v=Ci(this.mod,d,y);return xe(this.mod),v}sendQuery(t,e){let[u,d,y]=De(this.mod,"duckdb_web_query_send",["number","string"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));let v=Ci(this.mod,d,y);return xe(this.mod),v}fetchQueryResults(t){let[e,u,d]=De(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));let y=Ci(this.mod,u,d);return xe(this.mod),y}getTableNames(t,e){let[u,d,y]=De(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));let v=ve(this.mod,d,y);return xe(this.mod),JSON.parse(v)}createScalarFunction(t,e,u,d){let y={functionId:this._nextUDFId,name:e,returnType:Ka(u)},v={functionId:y.functionId,connectionId:t,name:e,returnType:u,func:d};this._nextUDFId+=1;let[E,A,N]=De(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(y)]);if(E!==0)throw new Error(ve(this.mod,A,N));if(xe(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(v.functionId,v),this.pthread)for(let D of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])D.postMessage({cmd:"registerUDFFunction",udf:v})}createPrepared(t,e){let[u,d,y]=De(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));return xe(this.mod),d}closePrepared(t,e){let[u,d,y]=De(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));xe(this.mod)}runPrepared(t,e,u){let[d,y,v]=De(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(ve(this.mod,y,v));let E=Ci(this.mod,y,v);return xe(this.mod),E}sendPrepared(t,e,u){let[d,y,v]=De(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(ve(this.mod,y,v));let E=Ci(this.mod,y,v);return xe(this.mod),E}insertArrowFromIPCStream(t,e,u){if(e.length==0)return;let d=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(d,d+e.length).set(e);let v=u?JSON.stringify(u):"",[E,A,N]=De(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,d,e.length,v]);if(E!==0)throw new Error(ve(this.mod,A,N))}insertCSVFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let N in u.columns)u.columnsFlat.push(rr(N,u.columns[N]))}let d=Re({},u);d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,E,A]=De(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(ve(this.mod,E,A))}insertJSONFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let N in u.columns)u.columnsFlat.push(rr(N,u.columns[N]))}let d=Re({},u);d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,E,A]=De(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(ve(this.mod,E,A))}globFiles(t){let[e,u,d]=De(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));let y=ve(this.mod,u,d);xe(this.mod);let v=JSON.parse(y);return v??[]}registerFileURL(t,e){e===void 0&&(e=t);let[u,d,y]=De(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,e,-1]);if(u!==0)throw new Error(ve(this.mod,d,y));xe(this.mod)}registerFileText(t,e){let u=zg.encode(e);this.registerFileBuffer(t,u)}registerFileBuffer(t,e){let u=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(u,u+e.length).set(e);let[y,v,E]=De(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,u,e.length]);if(y!==0)throw new Error(ve(this.mod,v,E));xe(this.mod)}registerFileHandle(t,e){let[u,d,y]=De(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,t,-1]);if(u!==0)throw new Error(ve(this.mod,d,y));if(xe(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,e),this.pthread){for(let v of this.pthread.runningWorkers)v.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let v of this.pthread.unusedWorkers)v.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,u,d]=De(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));xe(this.mod)}dropFiles(){let[t,e,u]=De(this.mod,"duckdb_web_fs_drop_files",[],[]);if(t!==0)throw new Error(ve(this.mod,e,u));xe(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[u,d,y]=De(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));xe(this.mod)}copyFileToBuffer(t){let[e,u,d]=De(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));let y=this.mod.HEAPU8.subarray(u,u+d),v=new Uint8Array(y.length);return v.set(y),xe(this.mod),v}collectFileStatistics(t,e){let[u,d,y]=De(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y))}exportFileStatistics(t){let[e,u,d]=De(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));return new Xa(this.mod.HEAPU8.subarray(u,u+d))}};var qc=ir(require("fs")),Za=class extends Ja{constructor(t,e,u,d){super(t,e);this.mainModulePath=u,this.pthreadWorkerPath=d}locateFile(t,e){if(t.endsWith(".wasm"))return this.mainModulePath;if(t.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=${e} path=${t}`)}instantiateWasm(t,e){globalThis.DUCKDB_RUNTIME={};for(let d of Object.getOwnPropertyNames(this._runtime))d!="constructor"&&(globalThis.DUCKDB_RUNTIME[d]=Object.getOwnPropertyDescriptor(this._runtime,d).value);let u=qc.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(u,t).then(d=>{e(d.instance,d.module)}),[]}instantiateImpl(t){return Hc(qe(Re({},t),{instantiateWasm:this.instantiateWasm.bind(this)}))}};var es=class extends Za{constructor(t,e,u,d=null){super(t,e,u,d)}instantiateImpl(t){return Bc(qe(Re({},t),{instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)}))}};var Ye=ir(require("fs"));var np=ir(rp());var lt={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(i,t){try{let e=lt._fileInfoCache.get(t),[u,d,y]=De(i,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(e==null?void 0:e.cacheEpoch)||0]);if(u!==0)return Te(i,ve(i,d,y)),null;if(y===0)return e;let v=ve(i,d,y);xe(i);let E=JSON.parse(v);return E==null?null:(lt._fileInfoCache.set(t,E),E)}catch(e){return Te(i,e.toString()),null}},testPlatformFeature:(i,t)=>{switch(t){case 1:return typeof BigInt64Array<"u";default:return console.warn(`test for unknown feature: ${t}`),!1}},openFile(i,t,e){try{lt._fileInfoCache.delete(t);let u=lt.resolveFileInfo(i,t);switch(u==null?void 0:u.dataProtocol){case 1:{u.dataNativeFd=Ye.default.openSync(u.dataUrl,Ye.default.constants.O_CREAT|Ye.default.constants.O_RDWR,Ye.default.constants.S_IRUSR|Ye.default.constants.S_IWUSR);let[d,y,v]=De(i,"duckdb_web_fs_set_file_descriptor",["number","number"],[t,u.dataNativeFd]);d!==0&&Te(i,ve(i,y,v));let E=Ye.default.fstatSync(u.dataNativeFd).size,A=i._malloc(2*8);return i.HEAPF64[(A>>3)+0]=+E,i.HEAPF64[(A>>3)+1]=0,A}case 3:case 4:Te(i,"Not implemented")}}catch(u){Te(i,u.toString())}return 0},syncFile:(i,t)=>{},closeFile:(i,t)=>{try{let e=lt.resolveFileInfo(i,t);switch(lt._fileInfoCache.delete(t),e==null?void 0:e.dataProtocol){case 1:{if(!e.dataNativeFd)return Te(i,`File ${t} is missing a file descriptor`),0;Ye.default.closeSync(e.dataNativeFd),e.dataNativeFd=null;break}case 3:case 4:Te(i,"Not implemented")}}catch(e){Te(i,e.toString())}return 0},truncateFile:(i,t,e)=>{try{let u=lt.resolveFileInfo(i,t);switch(u==null?void 0:u.dataProtocol){case 1:{if(!u.dataNativeFd)return Te(i,`File ${t} is missing a file descriptor`),0;Ye.default.truncateSync(u.dataUrl,e);break}case 3:case 4:Te(i,"Not implemented")}}catch(u){Te(i,u.toString())}return 0},readFile:(i,t,e,u,d)=>{try{let y=lt.resolveFileInfo(i,t);switch(y==null?void 0:y.dataProtocol){case 1:return y.dataNativeFd?Ye.default.readSync(y.dataNativeFd,i.HEAPU8,e,u,d):(Te(i,`File ${t} is missing a file descriptor`),0);case 3:case 4:Te(i,"Not implemented")}}catch(y){Te(i,y.toString())}return 0},writeFile:(i,t,e,u,d)=>{try{let y=lt.resolveFileInfo(i,t);switch(y==null?void 0:y.dataProtocol){case 1:{if(!y.dataNativeFd)return Te(i,`File ${t} is missing a file descriptor`),0;let v=i.HEAPU8.subarray(e,e+u);return Ye.default.writeSync(y.dataNativeFd,v,0,v.length,d)}}}catch(y){Te(i,y.toString())}return 0},getLastFileModificationTime:(i,t)=>{try{let e=lt.resolveFileInfo(i,t);switch(e==null?void 0:e.dataProtocol){case 1:return e.dataNativeFd?Ye.default.fstatSync(e.dataNativeFd).mtime.getTime():(Te(i,`File ${t} is missing a file descriptor`),0);case 3:case 4:Te(i,"Not implemented")}}catch(e){Te(i,e.toString())}return 0},checkDirectory:(i,t,e)=>{try{let u=Rt(i.HEAPU8.subarray(t,t+e));return Ye.default.existsSync(u)}catch(u){return Te(i,u.toString()),!1}},createDirectory:(i,t,e)=>{try{let u=Rt(i.HEAPU8.subarray(t,t+e));return Ye.default.mkdirSync(u)}catch(u){return Te(i,u.toString()),0}},removeDirectory:(i,t,e)=>{try{let u=Rt(i.HEAPU8.subarray(t,t+e));return Ye.default.rmdirSync(u)}catch(u){return Te(i,u.toString()),0}},listDirectoryEntries:(i,t,e)=>(Te(i,"Not Implemented"),!1),glob:(i,t,e)=>{try{let u=ve(i,t,e),d=np.sync([u],{dot:!0});for(let y of d)i.ccall("duckdb_web_fs_glob_add_path",null,["string"],[y])}catch(u){return Te(i,u.toString()),0}},moveFile:(i,t,e,u,d)=>{try{let y=Rt(i.HEAPU8.subarray(t,t+e)),v=Rt(i.HEAPU8.subarray(u,u+d));return Ye.default.renameSync(y,v)}catch(y){return Te(i,y.toString()),0}},checkFile:(i,t,e)=>{try{let u=Rt(i.HEAPU8.subarray(t,t+e));return Ye.default.existsSync(u)}catch(u){return Te(i,u.toString()),!1}},removeFile:(i,t,e)=>{try{let u=Rt(i.HEAPU8.subarray(t,t+e));return Ye.default.rmSync(u)}catch(u){return Te(i,u.toString()),0}},callScalarUDF:(i,t,e,u,d,y,v)=>{Wc(lt,i,t,e,u,d,y,v)}};var ap=class extends Ga{postMessage(t,e){globalThis.postMessage(t,e)}async instantiate(t,e,u){return await new es(this,lt,t,e).instantiate(u)}};function sp(){let i=new ap;globalThis.onmessage=async t=>{await i.onMessage(t.data)}}sp();module.exports=Wg(z0);0&&(module.exports={registerWorker});
4
+ `},"%p":function(L){return L.tm_hour>=0&&L.tm_hour<12?"AM":"PM"},"%S":function(L){return S(L.tm_sec,2)},"%t":function(){return" "},"%u":function(L){return L.tm_wday||7},"%U":function(L){var te=new Date(L.tm_year+1900,0,1),ke=te.getDay()===0?te:vi(te,7-te.getDay()),ye=new Date(L.tm_year+1900,L.tm_mon,L.tm_mday);if(x(ke,ye)<0){var et=Qi(mi(ye.getFullYear())?yi:gi,ye.getMonth()-1)-31,It=31-ke.getDate(),Xt=It+et+ye.getDate();return S(Math.ceil(Xt/7),2)}return x(ke,te)===0?"01":"00"},"%V":function(L){var te=new Date(L.tm_year+1900,0,4),ke=new Date(L.tm_year+1901,0,4),ye=W(te),et=W(ke),It=vi(new Date(L.tm_year+1900,0,1),L.tm_yday);if(x(It,ye)<0)return"53";if(x(et,It)<=0)return"01";var Xt;return ye.getFullYear()<L.tm_year+1900?Xt=L.tm_yday+32-ye.getDate():Xt=L.tm_yday+1-ye.getDate(),S(Math.ceil(Xt/7),2)},"%w":function(L){return L.tm_wday},"%W":function(L){var te=new Date(L.tm_year,0,1),ke=te.getDay()===1?te:vi(te,te.getDay()===0?1:7-te.getDay()+1),ye=new Date(L.tm_year+1900,L.tm_mon,L.tm_mday);if(x(ke,ye)<0){var et=Qi(mi(ye.getFullYear())?yi:gi,ye.getMonth()-1)-31,It=31-ke.getDate(),Xt=It+et+ye.getDate();return S(Math.ceil(Xt/7),2)}return x(ke,te)===0?"01":"00"},"%y":function(L){return(L.tm_year+1900).toString().substring(2)},"%Y":function(L){return L.tm_year+1900},"%z":function(L){var te=L.tm_gmtoff,ke=te>=0;return te=Math.abs(te)/60,te=te/60*100+te%60,(ke?"+":"-")+String("0000"+te).slice(-4)},"%Z":function(L){return L.tm_zone},"%%":function(){return"%"}};for(var f in me)c.includes(f)&&(c=c.replace(new RegExp(f,"g"),me[f](l)));var Le=Ca(c,!1);return Le.length>n?0:(_e(Le,r),Le.length-1)}function ka(r,n,a,s){return wa(r,n,a,s)}function Ca(r,n,a){var s=a>0?a:ht(r)+1,o=new Array(s),l=$t(r,o,0,o.length);return n&&(o.length=l),o}var Sa={p:dn,j:pn,A:mr,F:rt,b:hn,n:mn,H:yn,W:gn,i:Kt,da:vn,v:jn,E:bn,e:yr,Ca:Wi,Qe:wn,Ea:Sn,Da:En,Q:An,Sa:Ki,Qa:Rn,Na:Dn,Oa:Tn,ya:Pn,Ba:Fn,Ua:In,Pa:Mn,Ta:xn,oa:On,za:Nn,Oe:Ln,ma:Bn,Aa:Un,ga:Hn,Ra:$n,na:Wn,ha:qn,Ga:Yn,_:Kn,la:zt,Ge:Vn,He:zn,Ee:Qn,Fe:Xn,ta:Jn,Ce:Zn,Je:ea,De:ta,Ke:ia,fa:ra,Ie:na,ua:ci,Be:aa,sa:_i,Le:Vi,Va:fi,kb:di,ed:sa,Xa:co,Ya:ua,U:la,pe:ca,qb:_a,qa:fa,ye:da,Pe:pa,ea:ha,a:ma,Fa:ya,Ma:hi,xa:va,ia:Xp,N:Hp,Ja:Gp,T:yp,yc:ay,ja:Qp,X:Wp,ra:mp,zc:ny,u:kp,Ha:Zp,Ka:Ip,Z:Op,Ia:Jp,La:Fp,d:lp,aa:ih,D:Np,Ib:zy,c:cp,Y:$p,va:nh,h:fp,Gb:Xy,m:hp,pa:Tp,o:dp,w:Sp,z:bp,S:xp,y:wp,x:Ep,q:Kp,O:th,J:eh,cc:Ay,fc:Cy,ic:by,oc:hy,dc:Ey,Hb:Qy,xc:sy,gc:ky,pc:py,Pb:$y,ue:fh,Qd:Wh,Jd:Qh,te:dh,Ub:Ny,jd:wm,Lb:Ky,Kb:Gy,Xd:Oh,Pd:qh,yb:ag,Xc:xm,Wd:Nh,Ec:ey,Vb:Oy,Jb:Vy,ke:bh,Td:Uh,Ac:ry,Kd:zh,vd:cm,Hd:Jh,mb:mg,Ud:Bh,me:vh,Rd:$h,id:km,gb:bg,Ob:Wy,se:ph,Yd:xh,xd:um,wb:og,Ld:Vh,hb:jg,Fb:Jy,Sd:Hh,Dd:im,Gd:Zh,Fd:em,Ed:tm,Ad:am,mc:yy,$b:Ty,ee:Ah,qc:dy,ae:Ph,qe:mh,tc:cy,sc:_y,xe:lh,we:ch,Od:Yh,Ae:oh,qd:hm,rc:fy,ec:Sy,Fc:Zm,vc:uy,Uc:Lm,vb:ug,Cc:iy,sd:dm,md:vm,Mc:Km,wc:oy,zb:ng,ac:Dy,od:ym,dd:Am,Pc:Wm,Oc:qm,Lc:Gm,Nc:Ym,td:fm,ad:Tm,Mb:Yy,kc:vy,ob:pg,_c:Fm,uc:ly,Cb:tg,Yb:Iy,Db:eg,Wb:xy,t:op,k:_p,C:Up,ba:Yp,sb:_g,K:Bp,ca:qp,tb:cg,f:up,V:vp,R:Lp,Bc:gp,g:jp,l:pp,Ne:ah,s:Mp,r:Dp,wa:rh,B:Cp,L:Pp,P:zp,M:Ap,Me:sh,ka:Vp,$:Rp,Cd:rm,rb:fg,kd:bm,bc:Ry,Dc:ty,nc:my,Qb:Hy,Za:Tg,jb:gg,ie:kh,Vd:Lh,xb:sg,eb:kg,yd:om,zd:sm,Zb:Fy,Yc:Mm,Sb:By,Rb:Uy,_a:Dg,Qc:$m,he:Ch,_d:Ih,Bd:nm,Wc:Om,Ic:Qm,Ab:rg,Nb:qy,Bb:ig,ib:vg,ce:Dh,ud:_m,Tb:Ly,Gc:Jm,Tc:Bm,ge:Sh,fb:wg,oe:yh,re:hh,ve:_h,Id:Xh,db:Cg,cd:Rm,Kc:Vm,Jc:zm,bd:Dm,Zc:Im,nd:gm,lb:yg,hd:Cm,cb:Sg,Hc:Xm,nb:hg,ze:uh,le:jh,fd:Em,Rc:Hm,be:Th,hc:wy,je:wh,de:Rh,gd:Sm,Nd:Kh,Md:Gh,$c:Pm,ub:lg,ld:jm,lc:gy,fe:Eh,bb:Eg,Sc:Um,pb:dg,$d:Fh,Vc:Nm,$a:Rg,ab:Ag,jc:jy,ne:gh,rd:pm,Zd:Mh,Xb:My,_b:Py,Eb:Zy,wd:lm,pd:mm,G:ja,I:ba,Wa:ka},_o=hr(),Ea=e.___wasm_call_ctors=function(){return(Ea=e.___wasm_call_ctors=e.asm.Se).apply(null,arguments)},Aa=e._main=function(){return(Aa=e._main=e.asm.Te).apply(null,arguments)},Ra=e._duckdb_web_fs_glob_add_path=function(){return(Ra=e._duckdb_web_fs_glob_add_path=e.asm.Ve).apply(null,arguments)},Da=e._duckdb_web_clear_response=function(){return(Da=e._duckdb_web_clear_response=e.asm.We).apply(null,arguments)},Ta=e._duckdb_web_fail_with=function(){return(Ta=e._duckdb_web_fail_with=e.asm.Xe).apply(null,arguments)},Pa=e._duckdb_web_reset=function(){return(Pa=e._duckdb_web_reset=e.asm.Ye).apply(null,arguments)},Fa=e._duckdb_web_connect=function(){return(Fa=e._duckdb_web_connect=e.asm.Ze).apply(null,arguments)},Ia=e._duckdb_web_disconnect=function(){return(Ia=e._duckdb_web_disconnect=e.asm._e).apply(null,arguments)},Ma=e._duckdb_web_flush_files=function(){return(Ma=e._duckdb_web_flush_files=e.asm.$e).apply(null,arguments)},xa=e._duckdb_web_flush_file=function(){return(xa=e._duckdb_web_flush_file=e.asm.af).apply(null,arguments)},Oa=e._duckdb_web_open=function(){return(Oa=e._duckdb_web_open=e.asm.bf).apply(null,arguments)},Na=e._duckdb_web_get_global_file_info=function(){return(Na=e._duckdb_web_get_global_file_info=e.asm.cf).apply(null,arguments)},La=e._duckdb_web_collect_file_stats=function(){return(La=e._duckdb_web_collect_file_stats=e.asm.df).apply(null,arguments)},Ba=e._duckdb_web_export_file_stats=function(){return(Ba=e._duckdb_web_export_file_stats=e.asm.ef).apply(null,arguments)},kr=e._duckdb_web_fs_drop_file=function(){return(kr=e._duckdb_web_fs_drop_file=e.asm.ff).apply(null,arguments)},ji=e._duckdb_web_fs_drop_files=function(){return(ji=e._duckdb_web_fs_drop_files=e.asm.gf).apply(null,arguments)},bi=e._duckdb_web_fs_glob_file_infos=function(){return(bi=e._duckdb_web_fs_glob_file_infos=e.asm.hf).apply(null,arguments)},Xi=e._duckdb_web_fs_get_file_info_by_id=function(){return(Xi=e._duckdb_web_fs_get_file_info_by_id=e.asm.jf).apply(null,arguments)},Cr=e._duckdb_web_fs_get_file_info_by_name=function(){return(Cr=e._duckdb_web_fs_get_file_info_by_name=e.asm.kf).apply(null,arguments)},Sr=e._duckdb_web_fs_set_file_descriptor=function(){return(Sr=e._duckdb_web_fs_set_file_descriptor=e.asm.lf).apply(null,arguments)},Ji=e._duckdb_web_fs_register_file_url=function(){return(Ji=e._duckdb_web_fs_register_file_url=e.asm.mf).apply(null,arguments)},Zi=e._duckdb_web_fs_register_file_buffer=function(){return(Zi=e._duckdb_web_fs_register_file_buffer=e.asm.nf).apply(null,arguments)},Ua=e._duckdb_web_copy_file_to_buffer=function(){return(Ua=e._duckdb_web_copy_file_to_buffer=e.asm.of).apply(null,arguments)},wi=e._duckdb_web_copy_file_to_path=function(){return(wi=e._duckdb_web_copy_file_to_path=e.asm.pf).apply(null,arguments)},ki=e._duckdb_web_get_version=function(){return(ki=e._duckdb_web_get_version=e.asm.qf).apply(null,arguments)},Ha=e._duckdb_web_get_feature_flags=function(){return(Ha=e._duckdb_web_get_feature_flags=e.asm.rf).apply(null,arguments)},$a=e._duckdb_web_tokenize=function(){return($a=e._duckdb_web_tokenize=e.asm.sf).apply(null,arguments)},er=e._duckdb_web_udf_scalar_create=function(){return(er=e._duckdb_web_udf_scalar_create=e.asm.tf).apply(null,arguments)},Wa=e._duckdb_web_prepared_create=function(){return(Wa=e._duckdb_web_prepared_create=e.asm.uf).apply(null,arguments)},qa=e._duckdb_web_prepared_close=function(){return(qa=e._duckdb_web_prepared_close=e.asm.vf).apply(null,arguments)},Er=e._duckdb_web_prepared_run=function(){return(Er=e._duckdb_web_prepared_run=e.asm.wf).apply(null,arguments)},m=e._duckdb_web_prepared_send=function(){return(m=e._duckdb_web_prepared_send=e.asm.xf).apply(null,arguments)},g=e._duckdb_web_query_run=function(){return(g=e._duckdb_web_query_run=e.asm.yf).apply(null,arguments)},C=e._duckdb_web_query_send=function(){return(C=e._duckdb_web_query_send=e.asm.zf).apply(null,arguments)},R=e._duckdb_web_query_fetch_results=function(){return(R=e._duckdb_web_query_fetch_results=e.asm.Af).apply(null,arguments)},O=e._duckdb_web_get_tablenames=function(){return(O=e._duckdb_web_get_tablenames=e.asm.Bf).apply(null,arguments)},J=e._duckdb_web_insert_arrow_from_ipc_stream=function(){return(J=e._duckdb_web_insert_arrow_from_ipc_stream=e.asm.Cf).apply(null,arguments)},Y=e._duckdb_web_insert_csv_from_path=function(){return(Y=e._duckdb_web_insert_csv_from_path=e.asm.Df).apply(null,arguments)},q=e._duckdb_web_insert_json_from_path=function(){return(q=e._duckdb_web_insert_json_from_path=e.asm.Ef).apply(null,arguments)},ie=e.___errno_location=function(){return(ie=e.___errno_location=e.asm.Ff).apply(null,arguments)},Ce=e._htonl=function(){return(Ce=e._htonl=e.asm.Gf).apply(null,arguments)},we=e._htons=function(){return(we=e._htons=e.asm.Hf).apply(null,arguments)},ze=e._ntohs=function(){return(ze=e._ntohs=e.asm.If).apply(null,arguments)},j=e._setThrew=function(){return(j=e._setThrew=e.asm.Jf).apply(null,arguments)},k=e.stackSave=function(){return(k=e.stackSave=e.asm.Kf).apply(null,arguments)},b=e.stackRestore=function(){return(b=e.stackRestore=e.asm.Lf).apply(null,arguments)},Ze=e.stackAlloc=function(){return(Ze=e.stackAlloc=e.asm.Mf).apply(null,arguments)},Qe=e.___cxa_can_catch=function(){return(Qe=e.___cxa_can_catch=e.asm.Nf).apply(null,arguments)},Ft=e.___cxa_is_pointer_type=function(){return(Ft=e.___cxa_is_pointer_type=e.asm.Of).apply(null,arguments)},B=e._malloc=function(){return(B=e._malloc=e.asm.Pf).apply(null,arguments)},re=e._free=function(){return(re=e._free=e.asm.Qf).apply(null,arguments)},Se=e.dynCall_jiiii=function(){return(Se=e.dynCall_jiiii=e.asm.Rf).apply(null,arguments)},Ee=e.dynCall_iiiiij=function(){return(Ee=e.dynCall_iiiiij=e.asm.Sf).apply(null,arguments)},st=e.dynCall_iiiiijj=function(){return(st=e.dynCall_iiiiijj=e.asm.Tf).apply(null,arguments)},mt=e.dynCall_viijii=function(){return(mt=e.dynCall_viijii=e.asm.Uf).apply(null,arguments)},vt=e.dynCall_j=function(){return(vt=e.dynCall_j=e.asm.Vf).apply(null,arguments)},fo=e.dynCall_ji=function(){return(fo=e.dynCall_ji=e.asm.Wf).apply(null,arguments)},po=e.dynCall_iij=function(){return(po=e.dynCall_iij=e.asm.Xf).apply(null,arguments)},ho=e.dynCall_viij=function(){return(ho=e.dynCall_viij=e.asm.Yf).apply(null,arguments)},mo=e.dynCall_viijji=function(){return(mo=e.dynCall_viijji=e.asm.Zf).apply(null,arguments)},yo=e.dynCall_viijj=function(){return(yo=e.dynCall_viijj=e.asm._f).apply(null,arguments)},go=e.dynCall_viiijj=function(){return(go=e.dynCall_viiijj=e.asm.$f).apply(null,arguments)},vo=e.dynCall_viiji=function(){return(vo=e.dynCall_viiji=e.asm.ag).apply(null,arguments)},jo=e.dynCall_vijjj=function(){return(jo=e.dynCall_vijjj=e.asm.bg).apply(null,arguments)},bo=e.dynCall_iiijj=function(){return(bo=e.dynCall_iiijj=e.asm.cg).apply(null,arguments)},wo=e.dynCall_viiij=function(){return(wo=e.dynCall_viiij=e.asm.dg).apply(null,arguments)},ko=e.dynCall_viijij=function(){return(ko=e.dynCall_viijij=e.asm.eg).apply(null,arguments)},Co=e.dynCall_viiijjj=function(){return(Co=e.dynCall_viiijjj=e.asm.fg).apply(null,arguments)},So=e.dynCall_iiij=function(){return(So=e.dynCall_iiij=e.asm.gg).apply(null,arguments)},Eo=e.dynCall_vijijj=function(){return(Eo=e.dynCall_vijijj=e.asm.hg).apply(null,arguments)},Ao=e.dynCall_iji=function(){return(Ao=e.dynCall_iji=e.asm.ig).apply(null,arguments)},Ro=e.dynCall_viji=function(){return(Ro=e.dynCall_viji=e.asm.jg).apply(null,arguments)},Do=e.dynCall_vij=function(){return(Do=e.dynCall_vij=e.asm.kg).apply(null,arguments)},To=e.dynCall_viiiij=function(){return(To=e.dynCall_viiiij=e.asm.lg).apply(null,arguments)},Po=e.dynCall_jii=function(){return(Po=e.dynCall_jii=e.asm.mg).apply(null,arguments)},Fo=e.dynCall_viiiji=function(){return(Fo=e.dynCall_viiiji=e.asm.ng).apply(null,arguments)},Io=e.dynCall_vijj=function(){return(Io=e.dynCall_vijj=e.asm.og).apply(null,arguments)},Mo=e.dynCall_vj=function(){return(Mo=e.dynCall_vj=e.asm.pg).apply(null,arguments)},xo=e.dynCall_iiji=function(){return(xo=e.dynCall_iiji=e.asm.qg).apply(null,arguments)},Oo=e.dynCall_iiiij=function(){return(Oo=e.dynCall_iiiij=e.asm.rg).apply(null,arguments)},No=e.dynCall_iiiiiji=function(){return(No=e.dynCall_iiiiiji=e.asm.sg).apply(null,arguments)},Lo=e.dynCall_iiiji=function(){return(Lo=e.dynCall_iiiji=e.asm.tg).apply(null,arguments)},Bo=e.dynCall_iiiiji=function(){return(Bo=e.dynCall_iiiiji=e.asm.ug).apply(null,arguments)},Uo=e.dynCall_jiii=function(){return(Uo=e.dynCall_jiii=e.asm.vg).apply(null,arguments)},Ho=e.dynCall_jij=function(){return(Ho=e.dynCall_jij=e.asm.wg).apply(null,arguments)},$o=e.dynCall_iijjijj=function(){return($o=e.dynCall_iijjijj=e.asm.xg).apply(null,arguments)},Wo=e.dynCall_viiiijiiiii=function(){return(Wo=e.dynCall_viiiijiiiii=e.asm.yg).apply(null,arguments)},qo=e.dynCall_viiiijiiii=function(){return(qo=e.dynCall_viiiijiiii=e.asm.zg).apply(null,arguments)},Yo=e.dynCall_viiijii=function(){return(Yo=e.dynCall_viiijii=e.asm.Ag).apply(null,arguments)},Ko=e.dynCall_viiiiiij=function(){return(Ko=e.dynCall_viiiiiij=e.asm.Bg).apply(null,arguments)},Go=e.dynCall_iiijiii=function(){return(Go=e.dynCall_iiijiii=e.asm.Cg).apply(null,arguments)},Vo=e.dynCall_iiiiijii=function(){return(Vo=e.dynCall_iiiiijii=e.asm.Dg).apply(null,arguments)},zo=e.dynCall_viijiii=function(){return(zo=e.dynCall_viijiii=e.asm.Eg).apply(null,arguments)},Qo=e.dynCall_iiijiij=function(){return(Qo=e.dynCall_iiijiij=e.asm.Fg).apply(null,arguments)},Xo=e.dynCall_vijiii=function(){return(Xo=e.dynCall_vijiii=e.asm.Gg).apply(null,arguments)},Jo=e.dynCall_iijjii=function(){return(Jo=e.dynCall_iijjii=e.asm.Hg).apply(null,arguments)},Zo=e.dynCall_iijjiii=function(){return(Zo=e.dynCall_iijjiii=e.asm.Ig).apply(null,arguments)},eu=e.dynCall_iijjiiii=function(){return(eu=e.dynCall_iijjiiii=e.asm.Jg).apply(null,arguments)},tu=e.dynCall_iijji=function(){return(tu=e.dynCall_iijji=e.asm.Kg).apply(null,arguments)},iu=e.dynCall_vijiiii=function(){return(iu=e.dynCall_vijiiii=e.asm.Lg).apply(null,arguments)},ru=e.dynCall_iijiiii=function(){return(ru=e.dynCall_iijiiii=e.asm.Mg).apply(null,arguments)},nu=e.dynCall_iijii=function(){return(nu=e.dynCall_iijii=e.asm.Ng).apply(null,arguments)},au=e.dynCall_vijij=function(){return(au=e.dynCall_vijij=e.asm.Og).apply(null,arguments)},su=e.dynCall_iiijiiii=function(){return(su=e.dynCall_iiijiiii=e.asm.Pg).apply(null,arguments)},ou=e.dynCall_jiiij=function(){return(ou=e.dynCall_jiiij=e.asm.Qg).apply(null,arguments)},uu=e.dynCall_jiiiii=function(){return(uu=e.dynCall_jiiiii=e.asm.Rg).apply(null,arguments)},lu=e.dynCall_iiiiijjiijj=function(){return(lu=e.dynCall_iiiiijjiijj=e.asm.Sg).apply(null,arguments)},cu=e.dynCall_viijiiji=function(){return(cu=e.dynCall_viijiiji=e.asm.Tg).apply(null,arguments)},_u=e.dynCall_vjjijij=function(){return(_u=e.dynCall_vjjijij=e.asm.Ug).apply(null,arguments)},fu=e.dynCall_vijjji=function(){return(fu=e.dynCall_vijjji=e.asm.Vg).apply(null,arguments)},du=e.dynCall_vjjii=function(){return(du=e.dynCall_vjjii=e.asm.Wg).apply(null,arguments)},pu=e.dynCall_viiiiiji=function(){return(pu=e.dynCall_viiiiiji=e.asm.Xg).apply(null,arguments)},hu=e.dynCall_jiiiji=function(){return(hu=e.dynCall_jiiiji=e.asm.Yg).apply(null,arguments)},mu=e.dynCall_iijj=function(){return(mu=e.dynCall_iijj=e.asm.Zg).apply(null,arguments)},yu=e.dynCall_iiijjii=function(){return(yu=e.dynCall_iiijjii=e.asm._g).apply(null,arguments)},gu=e.dynCall_vijii=function(){return(gu=e.dynCall_vijii=e.asm.$g).apply(null,arguments)},vu=e.dynCall_viijjii=function(){return(vu=e.dynCall_viijjii=e.asm.ah).apply(null,arguments)},ju=e.dynCall_viiiijj=function(){return(ju=e.dynCall_viiiijj=e.asm.bh).apply(null,arguments)},bu=e.dynCall_jijjij=function(){return(bu=e.dynCall_jijjij=e.asm.ch).apply(null,arguments)},wu=e.dynCall_jiijii=function(){return(wu=e.dynCall_jiijii=e.asm.dh).apply(null,arguments)},ku=e.dynCall_jijiii=function(){return(ku=e.dynCall_jijiii=e.asm.eh).apply(null,arguments)},Cu=e.dynCall_viijiiiii=function(){return(Cu=e.dynCall_viijiiiii=e.asm.fh).apply(null,arguments)},Su=e.dynCall_viijiiij=function(){return(Su=e.dynCall_viijiiij=e.asm.gh).apply(null,arguments)},Eu=e.dynCall_vijiiiji=function(){return(Eu=e.dynCall_vijiiiji=e.asm.hh).apply(null,arguments)},Au=e.dynCall_jiiji=function(){return(Au=e.dynCall_jiiji=e.asm.ih).apply(null,arguments)},Ru=e.dynCall_viiijij=function(){return(Ru=e.dynCall_viiijij=e.asm.jh).apply(null,arguments)},Du=e.dynCall_viijiij=function(){return(Du=e.dynCall_viijiij=e.asm.kh).apply(null,arguments)},Tu=e.dynCall_viiiiijj=function(){return(Tu=e.dynCall_viiiiijj=e.asm.lh).apply(null,arguments)},Pu=e.dynCall_viiijji=function(){return(Pu=e.dynCall_viiijji=e.asm.mh).apply(null,arguments)},Fu=e.dynCall_iiiijiii=function(){return(Fu=e.dynCall_iiiijiii=e.asm.nh).apply(null,arguments)},Iu=e.dynCall_iiijij=function(){return(Iu=e.dynCall_iiijij=e.asm.oh).apply(null,arguments)},Mu=e.dynCall_iiijji=function(){return(Mu=e.dynCall_iiijji=e.asm.ph).apply(null,arguments)},xu=e.dynCall_iiiijj=function(){return(xu=e.dynCall_iiiijj=e.asm.qh).apply(null,arguments)},Ou=e.dynCall_viiijiii=function(){return(Ou=e.dynCall_viiijiii=e.asm.rh).apply(null,arguments)},Nu=e.dynCall_vijji=function(){return(Nu=e.dynCall_vijji=e.asm.sh).apply(null,arguments)},Lu=e.dynCall_jiiiij=function(){return(Lu=e.dynCall_jiiiij=e.asm.th).apply(null,arguments)},Bu=e.dynCall_jiijiiiii=function(){return(Bu=e.dynCall_jiijiiiii=e.asm.uh).apply(null,arguments)},Uu=e.dynCall_jiijiijiii=function(){return(Uu=e.dynCall_jiijiijiii=e.asm.vh).apply(null,arguments)},Hu=e.dynCall_jiijjiii=function(){return(Hu=e.dynCall_jiijjiii=e.asm.wh).apply(null,arguments)},$u=e.dynCall_jiiijii=function(){return($u=e.dynCall_jiiijii=e.asm.xh).apply(null,arguments)},Wu=e.dynCall_jiijijii=function(){return(Wu=e.dynCall_jiijijii=e.asm.yh).apply(null,arguments)},qu=e.dynCall_viiijjij=function(){return(qu=e.dynCall_viiijjij=e.asm.zh).apply(null,arguments)},Yu=e.dynCall_vijijjiij=function(){return(Yu=e.dynCall_vijijjiij=e.asm.Ah).apply(null,arguments)},Ku=e.dynCall_viijjij=function(){return(Ku=e.dynCall_viijjij=e.asm.Bh).apply(null,arguments)},Gu=e.dynCall_viiijjiij=function(){return(Gu=e.dynCall_viiijjiij=e.asm.Ch).apply(null,arguments)},Vu=e.dynCall_viiiijjjj=function(){return(Vu=e.dynCall_viiiijjjj=e.asm.Dh).apply(null,arguments)},zu=e.dynCall_viijiiiiij=function(){return(zu=e.dynCall_viijiiiiij=e.asm.Eh).apply(null,arguments)},Qu=e.dynCall_viijiiiijj=function(){return(Qu=e.dynCall_viijiiiijj=e.asm.Fh).apply(null,arguments)},Xu=e.dynCall_viiijiiiijjj=function(){return(Xu=e.dynCall_viiijiiiijjj=e.asm.Gh).apply(null,arguments)},Ju=e.dynCall_viijijiiiijjj=function(){return(Ju=e.dynCall_viijijiiiijjj=e.asm.Hh).apply(null,arguments)},Zu=e.dynCall_viiiiijiiii=function(){return(Zu=e.dynCall_viiiiijiiii=e.asm.Ih).apply(null,arguments)},el=e.dynCall_iiijii=function(){return(el=e.dynCall_iiijii=e.asm.Jh).apply(null,arguments)},tl=e.dynCall_fiijii=function(){return(tl=e.dynCall_fiijii=e.asm.Kh).apply(null,arguments)},il=e.dynCall_diijii=function(){return(il=e.dynCall_diijii=e.asm.Lh).apply(null,arguments)},rl=e.dynCall_iiiiiiijii=function(){return(rl=e.dynCall_iiiiiiijii=e.asm.Mh).apply(null,arguments)},nl=e.dynCall_viiiiji=function(){return(nl=e.dynCall_viiiiji=e.asm.Nh).apply(null,arguments)},al=e.dynCall_jiiiijii=function(){return(al=e.dynCall_jiiiijii=e.asm.Oh).apply(null,arguments)},sl=e.dynCall_jiiijiii=function(){return(sl=e.dynCall_jiiijiii=e.asm.Ph).apply(null,arguments)},ol=e.dynCall_jiiiiijiiii=function(){return(ol=e.dynCall_jiiiiijiiii=e.asm.Qh).apply(null,arguments)},ul=e.dynCall_jj=function(){return(ul=e.dynCall_jj=e.asm.Rh).apply(null,arguments)},ll=e.dynCall_jd=function(){return(ll=e.dynCall_jd=e.asm.Sh).apply(null,arguments)},cl=e.dynCall_jf=function(){return(cl=e.dynCall_jf=e.asm.Th).apply(null,arguments)},_l=e.dynCall_iijjj=function(){return(_l=e.dynCall_iijjj=e.asm.Uh).apply(null,arguments)},fl=e.dynCall_vijijiiiijjj=function(){return(fl=e.dynCall_vijijiiiijjj=e.asm.Vh).apply(null,arguments)},dl=e.dynCall_iiiiiiji=function(){return(dl=e.dynCall_iiiiiiji=e.asm.Wh).apply(null,arguments)},pl=e.dynCall_iiiiiiiiji=function(){return(pl=e.dynCall_iiiiiiiiji=e.asm.Xh).apply(null,arguments)},hl=e.dynCall_jijijjij=function(){return(hl=e.dynCall_jijijjij=e.asm.Yh).apply(null,arguments)},ml=e.dynCall_viijjj=function(){return(ml=e.dynCall_viijjj=e.asm.Zh).apply(null,arguments)},yl=e.dynCall_vijjij=function(){return(yl=e.dynCall_vijjij=e.asm._h).apply(null,arguments)},gl=e.dynCall_viijjji=function(){return(gl=e.dynCall_viijjji=e.asm.$h).apply(null,arguments)},vl=e.dynCall_iiiiiij=function(){return(vl=e.dynCall_iiiiiij=e.asm.ai).apply(null,arguments)},jl=e.dynCall_iiiiiiiiiiji=function(){return(jl=e.dynCall_iiiiiiiiiiji=e.asm.bi).apply(null,arguments)},bl=e.dynCall_jiiiiiii=function(){return(bl=e.dynCall_jiiiiiii=e.asm.ci).apply(null,arguments)},wl=e.dynCall_jijj=function(){return(wl=e.dynCall_jijj=e.asm.di).apply(null,arguments)},kl=e.dynCall_viiiijiiiiiiii=function(){return(kl=e.dynCall_viiiijiiiiiiii=e.asm.ei).apply(null,arguments)},Cl=e.dynCall_ij=function(){return(Cl=e.dynCall_ij=e.asm.fi).apply(null,arguments)},Sl=e.dynCall_jjj=function(){return(Sl=e.dynCall_jjj=e.asm.gi).apply(null,arguments)},El=e.dynCall_vjii=function(){return(El=e.dynCall_vjii=e.asm.hi).apply(null,arguments)},Al=e.dynCall_jjjjjjd=function(){return(Al=e.dynCall_jjjjjjd=e.asm.ii).apply(null,arguments)},Rl=e.dynCall_vjiiii=function(){return(Rl=e.dynCall_vjiiii=e.asm.ji).apply(null,arguments)},Dl=e.dynCall_viiiiijiii=function(){return(Dl=e.dynCall_viiiiijiii=e.asm.ki).apply(null,arguments)},Tl=e.dynCall_jiij=function(){return(Tl=e.dynCall_jiij=e.asm.li).apply(null,arguments)},Pl=e.dynCall_iiiijjii=function(){return(Pl=e.dynCall_iiiijjii=e.asm.mi).apply(null,arguments)},Fl=e.dynCall_iiiiijji=function(){return(Fl=e.dynCall_iiiiijji=e.asm.ni).apply(null,arguments)},Il=e.dynCall_viiijjii=function(){return(Il=e.dynCall_viiijjii=e.asm.oi).apply(null,arguments)},Ml=e.dynCall_viiiijji=function(){return(Ml=e.dynCall_viiiijji=e.asm.pi).apply(null,arguments)},xl=e.dynCall_viiiijjii=function(){return(xl=e.dynCall_viiiijjii=e.asm.qi).apply(null,arguments)},Ol=e.dynCall_viiiiijji=function(){return(Ol=e.dynCall_viiiiijji=e.asm.ri).apply(null,arguments)},Nl=e.dynCall_iiiiiijji=function(){return(Nl=e.dynCall_iiiiiijji=e.asm.si).apply(null,arguments)},Ll=e.dynCall_iiiiijjj=function(){return(Ll=e.dynCall_iiiiijjj=e.asm.ti).apply(null,arguments)},Bl=e.dynCall_jijiiii=function(){return(Bl=e.dynCall_jijiiii=e.asm.ui).apply(null,arguments)},Ul=e.dynCall_viiijiji=function(){return(Ul=e.dynCall_viiijiji=e.asm.vi).apply(null,arguments)},Hl=e.dynCall_iiijjjii=function(){return(Hl=e.dynCall_iiijjjii=e.asm.wi).apply(null,arguments)},$l=e.dynCall_iiiiijjji=function(){return($l=e.dynCall_iiiiijjji=e.asm.xi).apply(null,arguments)},Wl=e.dynCall_iiiijjj=function(){return(Wl=e.dynCall_iiiijjj=e.asm.yi).apply(null,arguments)},ql=e.dynCall_iidj=function(){return(ql=e.dynCall_iidj=e.asm.zi).apply(null,arguments)},Yl=e.dynCall_ijji=function(){return(Yl=e.dynCall_ijji=e.asm.Ai).apply(null,arguments)},Kl=e.dynCall_iiiiiiiij=function(){return(Kl=e.dynCall_iiiiiiiij=e.asm.Bi).apply(null,arguments)},Gl=e.dynCall_iiiiiiij=function(){return(Gl=e.dynCall_iiiiiiij=e.asm.Ci).apply(null,arguments)},Vl=e.dynCall_iiiiiiiiiiiij=function(){return(Vl=e.dynCall_iiiiiiiiiiiij=e.asm.Di).apply(null,arguments)},zl=e.dynCall_iiiiiiiji=function(){return(zl=e.dynCall_iiiiiiiji=e.asm.Ei).apply(null,arguments)},Ql=e.dynCall_iiiidjj=function(){return(Ql=e.dynCall_iiiidjj=e.asm.Fi).apply(null,arguments)},Xl=e.dynCall_jiiiiiijii=function(){return(Xl=e.dynCall_jiiiiiijii=e.asm.Gi).apply(null,arguments)},Jl=e.dynCall_iiiijji=function(){return(Jl=e.dynCall_iiiijji=e.asm.Hi).apply(null,arguments)},Zl=e.dynCall_jiiiiii=function(){return(Zl=e.dynCall_jiiiiii=e.asm.Ii).apply(null,arguments)},ec=e.dynCall_iijiji=function(){return(ec=e.dynCall_iijiji=e.asm.Ji).apply(null,arguments)},tc=e.dynCall_vjiiiji=function(){return(tc=e.dynCall_vjiiiji=e.asm.Ki).apply(null,arguments)},ic=e.dynCall_jjjii=function(){return(ic=e.dynCall_jjjii=e.asm.Li).apply(null,arguments)},rc=e.dynCall_jji=function(){return(rc=e.dynCall_jji=e.asm.Mi).apply(null,arguments)},nc=e.dynCall_viiijijiji=function(){return(nc=e.dynCall_viiijijiji=e.asm.Ni).apply(null,arguments)},ac=e.dynCall_jiiijj=function(){return(ac=e.dynCall_jiiijj=e.asm.Oi).apply(null,arguments)},sc=e.dynCall_iiiijii=function(){return(sc=e.dynCall_iiiijii=e.asm.Pi).apply(null,arguments)},oc=e.dynCall_viiiijii=function(){return(oc=e.dynCall_viiiijii=e.asm.Qi).apply(null,arguments)},uc=e.dynCall_iijiii=function(){return(uc=e.dynCall_iijiii=e.asm.Ri).apply(null,arguments)},lc=e.dynCall_jiiiiji=function(){return(lc=e.dynCall_jiiiiji=e.asm.Si).apply(null,arguments)},cc=e.dynCall_vijiijj=function(){return(cc=e.dynCall_vijiijj=e.asm.Ti).apply(null,arguments)},_c=e.dynCall_vifiijj=function(){return(_c=e.dynCall_vifiijj=e.asm.Ui).apply(null,arguments)},fc=e.dynCall_vidiijj=function(){return(fc=e.dynCall_vidiijj=e.asm.Vi).apply(null,arguments)},dc=e.dynCall_viiiiij=function(){return(dc=e.dynCall_viiiiij=e.asm.Wi).apply(null,arguments)},pc=e.dynCall_ijjiii=function(){return(pc=e.dynCall_ijjiii=e.asm.Xi).apply(null,arguments)},hc=e.dynCall_vijijjji=function(){return(hc=e.dynCall_vijijjji=e.asm.Yi).apply(null,arguments)},mc=e.dynCall_viijiijj=function(){return(mc=e.dynCall_viijiijj=e.asm.Zi).apply(null,arguments)},yc=e.dynCall_viijijj=function(){return(yc=e.dynCall_viijijj=e.asm._i).apply(null,arguments)},gc=e.dynCall_viiiiijjji=function(){return(gc=e.dynCall_viiiiijjji=e.asm.$i).apply(null,arguments)},vc=e.dynCall_iiijiijj=function(){return(vc=e.dynCall_iiijiijj=e.asm.aj).apply(null,arguments)},jc=e.dynCall_viiijijjj=function(){return(jc=e.dynCall_viiijijjj=e.asm.bj).apply(null,arguments)},bc=e.dynCall_iijiijj=function(){return(bc=e.dynCall_iijiijj=e.asm.cj).apply(null,arguments)},wc=e.dynCall_viiijjjji=function(){return(wc=e.dynCall_viiijjjji=e.asm.dj).apply(null,arguments)},kc=e.dynCall_viiiijiii=function(){return(kc=e.dynCall_viiiijiii=e.asm.ej).apply(null,arguments)},Cc=e.dynCall_viijiiii=function(){return(Cc=e.dynCall_viijiiii=e.asm.fj).apply(null,arguments)},Sc=e.dynCall_vijjiiii=function(){return(Sc=e.dynCall_vijjiiii=e.asm.gj).apply(null,arguments)},Ec=e.dynCall_vijijjiiiii=function(){return(Ec=e.dynCall_vijijjiiiii=e.asm.hj).apply(null,arguments)},Ac=e.dynCall_vijjiiiii=function(){return(Ac=e.dynCall_vijjiiiii=e.asm.ij).apply(null,arguments)},Rc=e.dynCall_iiijjji=function(){return(Rc=e.dynCall_iiijjji=e.asm.jj).apply(null,arguments)},Dc=e.dynCall_viiiijjj=function(){return(Dc=e.dynCall_viiiijjj=e.asm.kj).apply(null,arguments)},Tc=e.dynCall_viiiiijjj=function(){return(Tc=e.dynCall_viiiiijjj=e.asm.lj).apply(null,arguments)},Pc=e.dynCall_viijiji=function(){return(Pc=e.dynCall_viijiji=e.asm.mj).apply(null,arguments)};function op(r){var n=k();try{G(r)()}catch(a){if(b(n),a!==a+0&&a!=="longjmp")throw a;j(1,0)}}function up(r,n,a){var s=k();try{G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function lp(r,n){var a=k();try{return G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function cp(r,n,a){var s=k();try{return G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function _p(r,n){var a=k();try{G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function fp(r,n,a,s){var o=k();try{return G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function dp(r,n,a,s,o,l){var c=k();try{return G(r)(n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function pp(r,n,a,s,o){var l=k();try{G(r)(n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function hp(r,n,a,s,o){var l=k();try{return G(r)(n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function mp(r,n,a,s){var o=k();try{return G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function yp(r,n,a,s){var o=k();try{return G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function gp(r,n,a,s){var o=k();try{G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function vp(r,n,a,s){var o=k();try{G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function jp(r,n,a,s){var o=k();try{G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function bp(r,n,a,s,o,l,c,_){var f=k();try{return G(r)(n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function wp(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return G(r)(n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function kp(r){var n=k();try{return G(r)()}catch(a){if(b(n),a!==a+0&&a!=="longjmp")throw a;j(1,0)}}function Cp(r,n,a,s,o,l,c,_){var f=k();try{G(r)(n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Sp(r,n,a,s,o,l,c){var _=k();try{return G(r)(n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Ep(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return G(r)(n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function Ap(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{G(r)(n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Rp(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le){var me=k();try{G(r)(n,a,s,o,l,c,_,f,p,h,w,S,x,W,le)}catch(Le){if(b(me),Le!==Le+0&&Le!=="longjmp")throw Le;j(1,0)}}function Dp(r,n,a,s,o,l,c){var _=k();try{G(r)(n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Tp(r,n,a,s,o,l){var c=k();try{return G(r)(n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Pp(r,n,a,s,o,l,c,_,f){var p=k();try{G(r)(n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Fp(r,n,a){var s=k();try{return G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Ip(r,n,a){var s=k();try{return G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Mp(r,n,a,s,o,l){var c=k();try{G(r)(n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function xp(r,n,a,s,o,l,c,_,f){var p=k();try{return G(r)(n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Op(r,n,a,s,o){var l=k();try{return G(r)(n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Np(r,n,a,s,o){var l=k();try{return G(r)(n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Lp(r,n,a,s,o,l){var c=k();try{G(r)(n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Bp(r,n,a){var s=k();try{G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Up(r,n,a){var s=k();try{G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Hp(r,n){var a=k();try{return G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function $p(r,n,a,s){var o=k();try{return G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function Wp(r,n){var a=k();try{return G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function qp(r,n,a,s){var o=k();try{G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function Yp(r,n,a,s){var o=k();try{G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function Kp(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W){var le=k();try{return G(r)(n,a,s,o,l,c,_,f,p,h,w,S,x,W)}catch(me){if(b(le),me!==me+0&&me!=="longjmp")throw me;j(1,0)}}function Gp(r,n,a){var s=k();try{return G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Vp(r,n,a,s,o,l,c,_,f,p,h,w,S,x){var W=k();try{G(r)(n,a,s,o,l,c,_,f,p,h,w,S,x)}catch(le){if(b(W),le!==le+0&&le!=="longjmp")throw le;j(1,0)}}function zp(r,n,a,s,o,l,c,_,f,p){var h=k();try{G(r)(n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Qp(r){var n=k();try{return G(r)()}catch(a){if(b(n),a!==a+0&&a!=="longjmp")throw a;j(1,0)}}function Xp(r){var n=k();try{return G(r)()}catch(a){if(b(n),a!==a+0&&a!=="longjmp")throw a;j(1,0)}}function Jp(r,n){var a=k();try{return G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function Zp(r,n){var a=k();try{return G(r)(n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function eh(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le,L,te,ke){var ye=k();try{return G(r)(n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le,L,te,ke)}catch(et){if(b(ye),et!==et+0&&et!=="longjmp")throw et;j(1,0)}}function th(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le,L,te){var ke=k();try{return G(r)(n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le,L,te)}catch(ye){if(b(ke),ye!==ye+0&&ye!=="longjmp")throw ye;j(1,0)}}function ih(r,n,a){var s=k();try{return G(r)(n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function rh(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{G(r)(n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function nh(r,n,a,s){var o=k();try{return G(r)(n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function ah(r,n,a,s,o,l,c,_,f,p){var h=k();try{G(r)(n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function sh(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{G(r)(n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function oh(r,n,a,s,o){var l=k();try{return Se(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function uh(r,n,a,s,o,l,c){var _=k();try{yo(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function lh(r,n){var a=k();try{return fo(r,n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function ch(r,n,a){var s=k();try{return Po(r,n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function _h(r,n,a,s,o,l,c){var _=k();try{mt(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function fh(r,n,a,s,o,l,c){var _=k();try{return Ee(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function dh(r,n,a,s,o,l,c,_,f){var p=k();try{return st(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function ph(r,n,a,s){var o=k();try{return po(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function hh(r,n,a,s,o,l){var c=k();try{vo(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function mh(r){var n=k();try{return vt(r)}catch(a){if(b(n),a!==a+0&&a!=="longjmp")throw a;j(1,0)}}function yh(r,n,a,s,o){var l=k();try{ho(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function gh(r,n,a,s,o,l,c,_){var f=k();try{jo(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function vh(r,n,a,s,o,l,c){var _=k();try{return bo(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function jh(r,n,a,s,o,l,c,_){var f=k();try{mo(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function bh(r,n,a,s,o){var l=k();try{return So(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function wh(r,n,a,s){var o=k();try{Do(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function kh(r,n,a,s,o,l,c){var _=k();try{To(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Ch(r,n,a,s,o,l){var c=k();try{wo(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Sh(r,n,a,s,o,l,c,_,f,p){var h=k();try{Co(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Eh(r,n,a,s,o,l,c,_,f){var p=k();try{Eo(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Ah(r,n,a,s){var o=k();try{return Ao(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function Rh(r,n,a,s,o){var l=k();try{Ro(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Dh(r,n,a,s,o,l,c,_){var f=k();try{go(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Th(r,n,a,s,o,l,c,_,f){var p=k();try{ml(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Ph(r,n,a,s,o,l,c,_){var f=k();try{return pc(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Fh(r,n,a,s,o,l){var c=k();try{Io(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Ih(r,n,a,s,o,l,c){var _=k();try{Fo(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Mh(r,n,a){var s=k();try{Mo(r,n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function xh(r,n,a,s,o){var l=k();try{return xo(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Oh(r,n,a,s,o,l){var c=k();try{return Oo(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Nh(r,n,a,s,o,l,c,_){var f=k();try{return xu(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Lh(r,n,a,s,o,l,c,_){var f=k();try{nl(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Bh(r,n,a,s,o,l,c,_){var f=k();try{return Iu(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Uh(r,n,a,s,o,l){var c=k();try{return Lo(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Hh(r,n,a,s,o,l){var c=k();try{return mu(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function $h(r,n,a,s,o,l,c,_){var f=k();try{return Mu(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Wh(r,n,a,s,o,l,c,_){var f=k();try{return No(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function qh(r,n,a,s,o,l,c){var _=k();try{return Bo(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Yh(r,n,a,s){var o=k();try{return Uo(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function Kh(r,n,a,s,o,l,c){var _=k();try{Xo(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Gh(r,n,a,s,o,l,c,_){var f=k();try{iu(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Vh(r,n,a,s,o,l,c,_){var f=k();try{return ru(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function zh(r,n,a,s,o,l,c,_){var f=k();try{return Go(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Qh(r,n,a,s,o,l,c,_,f){var p=k();try{return Vo(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Xh(r,n,a,s,o,l,c,_){var f=k();try{zo(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Jh(r,n,a,s,o,l,c,_,f){var p=k();try{return Qo(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Zh(r,n,a,s,o,l,c,_){var f=k();try{return Jo(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function em(r,n,a,s,o,l,c,_,f){var p=k();try{return Zo(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function tm(r,n,a,s,o,l,c,_,f,p){var h=k();try{return eu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function im(r,n,a,s,o,l,c){var _=k();try{return tu(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function rm(r,n,a,s,o,l,c,_,f){var p=k();try{Ko(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function nm(r,n,a,s,o,l,c,_){var f=k();try{Yo(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function am(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return $o(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function sm(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{Wo(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function om(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{qo(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function um(r,n,a,s,o,l){var c=k();try{return nu(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function lm(r,n,a,s,o,l,c){var _=k();try{du(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function cm(r,n,a,s,o,l,c,_,f){var p=k();try{return su(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function _m(r,n,a,s,o,l,c,_,f){var p=k();try{Pu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function fm(r,n,a,s){var o=k();try{return Ho(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function dm(r,n,a,s,o,l){var c=k();try{return ou(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function pm(r,n,a,s,o,l,c,_,f){var p=k();try{fu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function hm(r,n,a,s,o,l){var c=k();try{return uu(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function mm(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{_u(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function ym(r,n,a,s,o,l){var c=k();try{return Au(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function gm(r,n,a,s,o,l,c,_,f,p){var h=k();try{cu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function vm(r,n,a,s,o,l,c){var _=k();try{return hu(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function jm(r,n,a,s,o,l,c){var _=k();try{au(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function bm(r,n,a,s,o,l,c,_,f){var p=k();try{pu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function wm(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W){var le=k();try{return lu(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W)}catch(me){if(b(le),me!==me+0&&me!=="longjmp")throw me;j(1,0)}}function km(r,n,a,s,o,l,c,_,f){var p=k();try{return yu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Cm(r,n,a,s,o,l,c,_){var f=k();try{ko(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Sm(r,n,a,s,o,l){var c=k();try{gu(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function Em(r,n,a,s,o,l,c,_,f){var p=k();try{vu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Am(r,n,a,s,o,l,c){var _=k();try{return wu(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Rm(r,n,a,s,o,l,c,_,f,p){var h=k();try{Cu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Dm(r,n,a,s,o,l,c,_,f,p){var h=k();try{Su(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Tm(r,n,a,s,o,l,c){var _=k();try{return ku(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Pm(r,n,a,s,o,l,c,_,f,p){var h=k();try{Eu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Fm(r,n,a,s,o,l,c,_,f){var p=k();try{return bu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Im(r,n,a,s,o,l,c,_,f){var p=k();try{Du(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Mm(r,n,a,s,o,l,c,_,f){var p=k();try{ju(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function xm(r,n,a,s,o,l,c,_,f){var p=k();try{return Fu(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Om(r,n,a,s,o,l,c,_,f){var p=k();try{Ou(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Nm(r,n,a,s,o,l,c){var _=k();try{Nu(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Lm(r,n,a,s,o,l,c){var _=k();try{return Lu(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Bm(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{qu(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Um(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{Yu(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function Hm(r,n,a,s,o,l,c,_,f,p){var h=k();try{Ku(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function $m(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{Vu(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function Wm(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Bu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function qm(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return Uu(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function Ym(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Hu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Km(r,n,a,s,o,l,c,_){var f=k();try{return $u(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Gm(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Wu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Vm(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{zu(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function zm(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{Qu(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function Qm(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le){var me=k();try{Xu(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le)}catch(Le){if(b(me),Le!==Le+0&&Le!=="longjmp")throw Le;j(1,0)}}function Xm(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le){var L=k();try{Ju(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me,Le)}catch(te){if(b(L),te!==te+0&&te!=="longjmp")throw te;j(1,0)}}function Jm(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{Gu(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function Zm(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return Xl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function ey(r,n,a,s,o,l,c,_,f){var p=k();try{return Jl(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function ty(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{Zu(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function iy(r,n,a,s,o,l,c,_,f){var p=k();try{return al(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function ry(r,n,a,s,o,l,c){var _=k();try{return el(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function ny(r,n,a,s,o,l,c){var _=k();try{return tl(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function ay(r,n,a,s,o,l,c){var _=k();try{return il(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function sy(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return rl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function oy(r,n,a,s,o,l,c,_,f){var p=k();try{return sl(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function uy(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return ol(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function ly(r,n,a){var s=k();try{return ul(r,n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function cy(r,n){var a=k();try{return ll(r,n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function _y(r,n){var a=k();try{return cl(r,n)}catch(s){if(b(a),s!==s+0&&s!=="longjmp")throw s;j(1,0)}}function fy(r,n,a,s,o,l,c){var _=k();try{return Zl(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function dy(r,n,a,s,o,l){var c=k();try{return Yl(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function py(r,n,a,s,o,l,c,_,f){var p=k();try{return dl(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function hy(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return pl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function my(r,n,a,s,o,l,c,_,f,p){var h=k();try{Tu(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function yy(r,n,a,s,o,l,c,_){var f=k();try{return _l(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function gy(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me){var Le=k();try{fl(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W,le,me)}catch(L){if(b(Le),L!==L+0&&L!=="longjmp")throw L;j(1,0)}}function vy(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return hl(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function jy(r,n,a,s,o,l,c,_,f){var p=k();try{yl(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function by(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Kl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function wy(r,n,a,s,o,l,c,_,f,p){var h=k();try{gl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function ky(r,n,a,s,o,l,c,_){var f=k();try{return vl(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Cy(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{return jl(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function Sy(r,n,a,s,o,l,c,_){var f=k();try{return bl(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Ey(r,n,a,s,o,l,c,_,f){var p=k();try{return Gl(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Ay(r,n,a,s,o,l,c,_,f,p,h,w,S,x){var W=k();try{return Vl(r,n,a,s,o,l,c,_,f,p,h,w,S,x)}catch(le){if(b(W),le!==le+0&&le!=="longjmp")throw le;j(1,0)}}function Ry(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{Dl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Dy(r,n,a,s,o){var l=k();try{return Tl(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Ty(r,n,a){var s=k();try{return Cl(r,n,a)}catch(o){if(b(s),o!==o+0&&o!=="longjmp")throw o;j(1,0)}}function Py(r,n,a,s,o,l,c){var _=k();try{Rl(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function Fy(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W){var le=k();try{kl(r,n,a,s,o,l,c,_,f,p,h,w,S,x,W)}catch(me){if(b(le),me!==me+0&&me!=="longjmp")throw me;j(1,0)}}function Iy(r,n,a,s,o){var l=k();try{return Sl(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function My(r,n,a,s,o){var l=k();try{El(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function xy(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return Al(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function Oy(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Pl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Ny(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Fl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Ly(r,n,a,s,o,l,c,_,f,p){var h=k();try{Il(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function By(r,n,a,s,o,l,c,_,f,p){var h=k();try{Ml(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Uy(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{xl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Hy(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{Ol(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function $y(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return Nl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Wy(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return Hl(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function qy(r,n,a,s,o,l,c,_,f,p){var h=k();try{Ul(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Yy(r,n,a,s,o,l,c,_){var f=k();try{return Bl(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Ky(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return Ll(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Gy(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{return $l(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function Vy(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Wl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function zy(r,n,a,s,o){var l=k();try{return ql(r,n,a,s,o)}catch(c){if(b(l),c!==c+0&&c!=="longjmp")throw c;j(1,0)}}function Qy(r,n,a,s,o,l,c,_,f,p){var h=k();try{return zl(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Xy(r,n,a,s,o,l,c,_,f){var p=k();try{return Ql(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Jy(r,n,a,s,o,l,c,_){var f=k();try{return ec(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function Zy(r,n,a,s,o,l,c,_,f){var p=k();try{tc(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function eg(r,n,a,s,o,l,c){var _=k();try{return ic(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function tg(r,n,a,s){var o=k();try{return rc(r,n,a,s)}catch(l){if(b(o),l!==l+0&&l!=="longjmp")throw l;j(1,0)}}function ig(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{nc(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function rg(r,n,a,s,o,l,c,_,f){var p=k();try{Ru(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function ng(r,n,a,s,o,l,c,_){var f=k();try{return ac(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function ag(r,n,a,s,o,l,c,_){var f=k();try{return sc(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function sg(r,n,a,s,o,l,c,_,f){var p=k();try{oc(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function og(r,n,a,s,o,l,c){var _=k();try{return uc(r,n,a,s,o,l,c)}catch(f){if(b(_),f!==f+0&&f!=="longjmp")throw f;j(1,0)}}function ug(r,n,a,s,o,l,c,_){var f=k();try{return lc(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function lg(r,n,a,s,o,l,c,_,f,p){var h=k();try{cc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function cg(r,n,a,s,o,l,c,_,f){var p=k();try{_c(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function _g(r,n,a,s,o,l,c,_,f){var p=k();try{fc(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function fg(r,n,a,s,o,l,c,_){var f=k();try{dc(r,n,a,s,o,l,c,_)}catch(p){if(b(f),p!==p+0&&p!=="longjmp")throw p;j(1,0)}}function dg(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{hc(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}function pg(r,n,a,s,o,l){var c=k();try{return wl(r,n,a,s,o,l)}catch(_){if(b(c),_!==_+0&&_!=="longjmp")throw _;j(1,0)}}function hg(r,n,a,s,o,l,c,_,f,p){var h=k();try{yc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function mg(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{return vc(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function yg(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{mc(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function gg(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{gc(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function vg(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{jc(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function jg(r,n,a,s,o,l,c,_,f,p){var h=k();try{return bc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function bg(r,n,a,s,o,l,c,_,f,p){var h=k();try{return Rc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function wg(r,n,a,s,o,l,c,_,f,p,h,w,S){var x=k();try{wc(r,n,a,s,o,l,c,_,f,p,h,w,S)}catch(W){if(b(x),W!==W+0&&W!=="longjmp")throw W;j(1,0)}}function kg(r,n,a,s,o,l,c,_,f,p){var h=k();try{kc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Cg(r,n,a,s,o,l,c,_,f){var p=k();try{Cc(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Sg(r,n,a,s,o,l,c,_,f){var p=k();try{Pc(r,n,a,s,o,l,c,_,f)}catch(h){if(b(p),h!==h+0&&h!=="longjmp")throw h;j(1,0)}}function Eg(r,n,a,s,o,l,c,_,f,p,h,w,S,x){var W=k();try{Ec(r,n,a,s,o,l,c,_,f,p,h,w,S,x)}catch(le){if(b(W),le!==le+0&&le!=="longjmp")throw le;j(1,0)}}function Ag(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{Ac(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Rg(r,n,a,s,o,l,c,_,f,p){var h=k();try{Sc(r,n,a,s,o,l,c,_,f,p)}catch(w){if(b(h),w!==w+0&&w!=="longjmp")throw w;j(1,0)}}function Dg(r,n,a,s,o,l,c,_,f,p,h){var w=k();try{Dc(r,n,a,s,o,l,c,_,f,p,h)}catch(S){if(b(w),S!==S+0&&S!=="longjmp")throw S;j(1,0)}}function Tg(r,n,a,s,o,l,c,_,f,p,h,w){var S=k();try{Tc(r,n,a,s,o,l,c,_,f,p,h,w)}catch(x){if(b(S),x!==x+0&&x!=="longjmp")throw x;j(1,0)}}e.ccall=Ue;var Ar;function Rr(r){this.name="ExitStatus",this.message="Program terminated with exit("+r+")",this.status=r}var Pg=!1;Ke=function r(){Ar||Ya(),Ar||(Ke=r)};function Fg(r){var n=e._main,a=0,s=0;try{var o=n(a,s);return Ig(o,!0),o}catch(l){return fn(l)}finally{Pg=!0}}function Ya(r){if(r=r||E,At>0||(sn(),At>0))return;function n(){Ar||(Ar=!0,e.calledRun=!0,!T&&(on(),un(),d(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),Fc&&Fg(r),cn()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),n()},1)):n()}e.run=Ya;function Ig(r,n){F=r,Li()||ln(),Mg(r)}function Mg(r){F=r,Li()||(e.onExit&&e.onExit(r),T=!0),N(r,new Rr(r))}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();var Fc=!0;return e.noInitialRun&&(Fc=!1),Ya(),t.ready}})(),Hc=Yg;var Mt=ir(require("apache-arrow")),Va=class{constructor(t,e){this._bindings=t,this._conn=e}close(){this._bindings.disconnect(this._conn)}useUnsafe(t){return t(this._bindings,this._conn)}query(t){let e=this._bindings.runQuery(this._conn,t),u=Mt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),Mt.Table.from(u)}send(t){let e=this._bindings.sendQuery(this._conn,t),u=new za(this._bindings,this._conn,e),d=Mt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}getTableNames(t){return this._bindings.getTableNames(this._conn,t)}prepare(t){let e=this._bindings.createPrepared(this._conn,t);return new $c(this._bindings,this._conn,e)}createScalarFunction(t,e,u){this._bindings.createScalarFunction(this._conn,t,e,u)}insertArrowTable(t,e){let u=t.serialize("binary",!0);this.insertArrowFromIPCStream(u,e)}insertArrowFromIPCStream(t,e){this._bindings.insertArrowFromIPCStream(this._conn,t,e)}insertCSVFromPath(t,e){this._bindings.insertCSVFromPath(this._conn,t,e)}insertJSONFromPath(t,e){this._bindings.insertJSONFromPath(this._conn,t,e)}},za=class{constructor(t,e,u){this.bindings=t;this.conn=e;this.header=u;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let t=this.bindings.fetchQueryResults(this.conn);return this._depleted=t.length==0,{done:this._depleted,value:t}}[Symbol.iterator](){return this}},$c=class{constructor(t,e,u){this.bindings=t,this.connectionId=e,this.statementId=u}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),u=Mt.RecordBatchReader.from(e);return console.assert(u.isSync()),console.assert(u.isFile()),Mt.Table.from(u)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),u=new za(this.bindings,this.connectionId,e),d=Mt.RecordBatchReader.from(u);return console.assert(d.isSync()),console.assert(d.isStream()),d}};var Kg=new TextEncoder;function nr(i,t,e){let u=Kg.encode(e),d=i._malloc(u.byteLength),y=i.HEAPU8.subarray(d,d+u.byteLength);y.set(u),i.HEAPF64[(t>>3)+0]=1,i.HEAPF64[(t>>3)+1]=d,i.HEAPF64[(t>>3)+2]=y.byteLength}function Qa(i){switch(i){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 xt(i,t,e,u){let d=i.HEAPU8.subarray(t,t+u*Qa(e));switch(e){case"UINT8":return new Uint8Array(d.buffer,d.byteOffset,u);case"INT8":return new Int8Array(d.buffer,d.byteOffset,u);case"INT32":return new Int32Array(d.buffer,d.byteOffset,u);case"FLOAT":return new Float32Array(d.buffer,d.byteOffset,u);case"DOUBLE":return new Float64Array(d.buffer,d.byteOffset,u);case"VARCHAR":return new Float64Array(d.buffer,d.byteOffset,u);default:return new Array(0)}}function Wc(i,t,e,u,d,y,v,E){try{let A=i._udfFunctions.get(u);if(!A){nr(t,e,"Unknown UDF with id: "+u);return}let N=new TextDecoder().decode(t.HEAPU8.subarray(d,d+y)),D=JSON.parse(N),U=xt(t,v,"DOUBLE",E/8),I=[],X=[];for(let H in D.args){let Z=D.args[H],oe=xt(t,U[Z.data_buffer],Z.physical_type,D.rows),M=xt(t,U[Z.validity_buffer],"UINT8",D.rows);if(oe.length==0||M.length==0){nr(t,e,"Can't create physical arrays for argument "+Z.physical_type);return}if(I.push(M),Z.physical_type=="VARCHAR"){let fe=xt(t,U[Z.length_buffer],"DOUBLE",D.rows),de=[],Be=new TextDecoder;for(let T=0;T<D.rows;++T){if(!M[T]){de.push(void 0);continue}let F=t.HEAPU8.subarray(oe[T],oe[T]+fe[T]),Ne=Be.decode(F);de.push(Ne)}X.push(de)}else X.push(oe)}let V=D.rows*Qa(D.ret.physical_type),Q=t._malloc(V),ee=xt(t,Q,D.ret.physical_type,D.rows),ne=t._malloc(D.rows),be=xt(t,ne,"UINT8",D.rows);if(ee.length==0||be.length==0){nr(t,e,"Can't create physical arrays for result");return}let Ae=ee;switch(D.ret.physical_type=="VARCHAR"&&(ee=new Array(D.rows)),D.args.length){case 0:for(let H=0;H<D.rows;++H){let Z=A.func();ee[H]=Z,be[H]=Z==null?0:1}break;case 1:for(let H=0;H<D.rows;++H){let Z=A.func(I[0][H]?X[0][H]:void 0);ee[H]=Z,be[H]=Z==null?0:1}break;case 2:for(let H=0;H<D.rows;++H){let Z=A.func(I[0][H]?X[0][H]:void 0,I[1][H]?X[1][H]:void 0);ee[H]=Z,be[H]=Z==null?0:1}break;default:nr(t,e,"Can't deal with argument count: "+D.args.length);return}let Ie=0;if(D.ret.physical_type=="VARCHAR"){let H=new TextEncoder,Z=new Array(0),oe=0;Ie=t._malloc(D.rows*Qa("DOUBLE"));let M=xt(t,Ie,"DOUBLE",D.rows);for(let T=0;T<D.rows;++T)Z[T]=H.encode(ee[T]),oe+=Z[T].length,M[T]=Z[T].length;let fe=t._malloc(oe),de=t.HEAPU8.subarray(fe,fe+oe),Be=0;ee=Ae;for(let T=0;T<D.rows;++T){ee[T]=fe+Be;for(let F=0;F<Z[T].length;F++)de[Be+F]=Z[T][F];Be+=Z[T].length}}let ae=3*8,je=t._malloc(ae),se=xt(t,je,"DOUBLE",3);se[0]=Q,se[1]=ne,se[2]=Ie,t.HEAPF64[(e>>3)+0]=0,t.HEAPF64[(e>>3)+1]=je,t.HEAPF64[(e>>3)+2]=0}catch(A){nr(t,e,A.toString())}}function Vg(){let i=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),i.decode(t))}var Rt=Vg();function Te(i,t){i.ccall("duckdb_web_fail_with",null,["string"],[t])}function Ci(i,t,e){let u=i.HEAPU8.subarray(t,t+e),d=new Uint8Array(new ArrayBuffer(u.byteLength));return d.set(u),d}function ve(i,t,e){return Rt(i.HEAPU8.subarray(t,t+e))}function De(i,t,e,u){let d=i.stackSave(),y=i.stackAlloc(3*8);e.unshift("number"),u.unshift(y),i.ccall(t,null,e,u);let v=i.HEAPF64[(y>>3)+0],E=i.HEAPF64[(y>>3)+1],A=i.HEAPF64[(y>>3)+2];return i.stackRestore(d),[v,E,A]}function xe(i){i.ccall("duckdb_web_clear_response",null,[],[])}var Xa=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),u=new Uint8Array(new ArrayBuffer(t.byteLength));u.set(t.subarray(7*8)),this.totalFileReadsCold=e[0],this.totalFileReadsAhead=e[1],this.totalFileReadsCached=e[2],this.totalFileWrites=e[3],this.totalPageAccesses=e[4],this.totalPageLoads=e[5],this.blockSize=e[6],this.blockStats=u}getBlockStats(t,e){return e=e||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},e.file_writes=this.blockStats[t*3+0]&15,e.file_reads_cold=this.blockStats[t*3+0]>>4,e.file_reads_ahead=this.blockStats[t*3+1]&15,e.file_reads_cached=this.blockStats[t*3+1]>>4,e.page_accesses=this.blockStats[t*3+1]&15,e.page_loads=this.blockStats[t*3+1]>>4,e}};var zg=new TextEncoder;var Ja=class{constructor(t,e){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=t,this._runtime=e,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(t=e=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(t),await this._initPromise),this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this.onInstantiationProgress=[t],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter(e=>e!=t),this)}open(t){let[e,u,d]=De(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(e!==0)throw new Error(ve(this.mod,u,d));xe(this.mod)}reset(){let[t,e,u]=De(this.mod,"duckdb_web_reset",[],[]);if(t!==0)throw new Error(ve(this.mod,e,u));xe(this.mod)}getVersion(){let[t,e,u]=De(this.mod,"duckdb_web_get_version",[],[]);if(t!==0)throw new Error(ve(this.mod,e,u));let d=ve(this.mod,e,u);return xe(this.mod),d}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,u,d]=De(this.mod,"duckdb_web_tokenize",["string"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));let y=ve(this.mod,u,d);return xe(this.mod),JSON.parse(y)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new Va(this,t)}disconnect(t){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[t]),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"dropUDFFunctions",connectionId:t})}runQuery(t,e){let[u,d,y]=De(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));let v=Ci(this.mod,d,y);return xe(this.mod),v}sendQuery(t,e){let[u,d,y]=De(this.mod,"duckdb_web_query_send",["number","string"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));let v=Ci(this.mod,d,y);return xe(this.mod),v}fetchQueryResults(t){let[e,u,d]=De(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));let y=Ci(this.mod,u,d);return xe(this.mod),y}getTableNames(t,e){let[u,d,y]=De(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));let v=ve(this.mod,d,y);return xe(this.mod),JSON.parse(v)}createScalarFunction(t,e,u,d){let y={functionId:this._nextUDFId,name:e,returnType:Ka(u)},v={functionId:y.functionId,connectionId:t,name:e,returnType:u,func:d};this._nextUDFId+=1;let[E,A,N]=De(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(y)]);if(E!==0)throw new Error(ve(this.mod,A,N));if(xe(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(v.functionId,v),this.pthread)for(let D of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])D.postMessage({cmd:"registerUDFFunction",udf:v})}createPrepared(t,e){let[u,d,y]=De(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));return xe(this.mod),d}closePrepared(t,e){let[u,d,y]=De(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));xe(this.mod)}runPrepared(t,e,u){let[d,y,v]=De(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(ve(this.mod,y,v));let E=Ci(this.mod,y,v);return xe(this.mod),E}sendPrepared(t,e,u){let[d,y,v]=De(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(u)]);if(d!==0)throw new Error(ve(this.mod,y,v));let E=Ci(this.mod,y,v);return xe(this.mod),E}insertArrowFromIPCStream(t,e,u){if(e.length==0)return;let d=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(d,d+e.length).set(e);let v=u?JSON.stringify(u):"",[E,A,N]=De(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,d,e.length,v]);if(E!==0)throw new Error(ve(this.mod,A,N))}insertCSVFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let N in u.columns)u.columnsFlat.push(rr(N,u.columns[N]))}let d=Re({},u);d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,E,A]=De(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(ve(this.mod,E,A))}insertJSONFromPath(t,e,u){if(u.columns!==void 0){u.columnsFlat=[];for(let N in u.columns)u.columnsFlat.push(rr(N,u.columns[N]))}let d=Re({},u);d.columns=d.columnsFlat,delete d.columnsFlat;let y=JSON.stringify(d),[v,E,A]=De(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,y]);if(v!==0)throw new Error(ve(this.mod,E,A))}globFiles(t){let[e,u,d]=De(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));let y=ve(this.mod,u,d);xe(this.mod);let v=JSON.parse(y);return v??[]}registerFileURL(t,e){e===void 0&&(e=t);let[u,d,y]=De(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,e,-1]);if(u!==0)throw new Error(ve(this.mod,d,y));xe(this.mod)}registerFileText(t,e){let u=zg.encode(e);this.registerFileBuffer(t,u)}registerFileBuffer(t,e){let u=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(u,u+e.length).set(e);let[y,v,E]=De(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,u,e.length]);if(y!==0)throw new Error(ve(this.mod,v,E));xe(this.mod)}registerFileHandle(t,e){let[u,d,y]=De(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[t,t,-1]);if(u!==0)throw new Error(ve(this.mod,d,y));if(xe(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,e),this.pthread){for(let v of this.pthread.runningWorkers)v.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let v of this.pthread.unusedWorkers)v.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,u,d]=De(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));xe(this.mod)}dropFiles(){let[t,e,u]=De(this.mod,"duckdb_web_fs_drop_files",[],[]);if(t!==0)throw new Error(ve(this.mod,e,u));xe(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[u,d,y]=De(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y));xe(this.mod)}copyFileToBuffer(t){let[e,u,d]=De(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));let y=this.mod.HEAPU8.subarray(u,u+d),v=new Uint8Array(y.length);return v.set(y),xe(this.mod),v}collectFileStatistics(t,e){let[u,d,y]=De(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(u!==0)throw new Error(ve(this.mod,d,y))}exportFileStatistics(t){let[e,u,d]=De(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(e!==0)throw new Error(ve(this.mod,u,d));return new Xa(this.mod.HEAPU8.subarray(u,u+d))}};var qc=ir(require("fs")),Za=class extends Ja{constructor(t,e,u,d){super(t,e);this.mainModulePath=u,this.pthreadWorkerPath=d}locateFile(t,e){if(t.endsWith(".wasm"))return this.mainModulePath;if(t.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=${e} path=${t}`)}instantiateWasm(t,e){globalThis.DUCKDB_RUNTIME={};for(let d of Object.getOwnPropertyNames(this._runtime))d!="constructor"&&(globalThis.DUCKDB_RUNTIME[d]=Object.getOwnPropertyDescriptor(this._runtime,d).value);let u=qc.default.readFileSync(this.mainModulePath);return WebAssembly.instantiate(u,t).then(d=>{e(d.instance,d.module)}),[]}instantiateImpl(t){return Hc(qe(Re({},t),{instantiateWasm:this.instantiateWasm.bind(this)}))}};var es=class extends Za{constructor(t,e,u,d=null){super(t,e,u,d)}instantiateImpl(t){return Bc(qe(Re({},t),{instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)}))}};var Ye=ir(require("fs"));var np=ir(rp());var lt={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,resolveFileInfo(i,t){try{let e=lt._fileInfoCache.get(t),[u,d,y]=De(i,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(e==null?void 0:e.cacheEpoch)||0]);if(u!==0)return Te(i,ve(i,d,y)),null;if(y===0)return e;let v=ve(i,d,y);xe(i);let E=JSON.parse(v);return E==null?null:(lt._fileInfoCache.set(t,E),E)}catch(e){return Te(i,e.toString()),null}},testPlatformFeature:(i,t)=>{switch(t){case 1:return typeof BigInt64Array<"u";default:return console.warn(`test for unknown feature: ${t}`),!1}},openFile(i,t,e){try{lt._fileInfoCache.delete(t);let u=lt.resolveFileInfo(i,t);switch(u==null?void 0:u.dataProtocol){case 1:{u.dataNativeFd=Ye.default.openSync(u.dataUrl,Ye.default.constants.O_CREAT|Ye.default.constants.O_RDWR,Ye.default.constants.S_IRUSR|Ye.default.constants.S_IWUSR);let[d,y,v]=De(i,"duckdb_web_fs_set_file_descriptor",["number","number"],[t,u.dataNativeFd]);d!==0&&Te(i,ve(i,y,v));let E=Ye.default.fstatSync(u.dataNativeFd).size,A=i._malloc(2*8);return i.HEAPF64[(A>>3)+0]=+E,i.HEAPF64[(A>>3)+1]=0,A}case 3:case 4:Te(i,"Not implemented")}}catch(u){Te(i,u.toString())}return 0},syncFile:(i,t)=>{},closeFile:(i,t)=>{try{let e=lt.resolveFileInfo(i,t);switch(lt._fileInfoCache.delete(t),e==null?void 0:e.dataProtocol){case 1:{if(!e.dataNativeFd)return Te(i,`File ${t} is missing a file descriptor`),0;Ye.default.closeSync(e.dataNativeFd),e.dataNativeFd=null;break}case 3:case 4:Te(i,"Not implemented")}}catch(e){Te(i,e.toString())}return 0},truncateFile:(i,t,e)=>{try{let u=lt.resolveFileInfo(i,t);switch(u==null?void 0:u.dataProtocol){case 1:{if(!u.dataNativeFd)return Te(i,`File ${t} is missing a file descriptor`),0;Ye.default.truncateSync(u.dataUrl,e);break}case 3:case 4:Te(i,"Not implemented")}}catch(u){Te(i,u.toString())}return 0},readFile:(i,t,e,u,d)=>{try{let y=lt.resolveFileInfo(i,t);switch(y==null?void 0:y.dataProtocol){case 1:return y.dataNativeFd?Ye.default.readSync(y.dataNativeFd,i.HEAPU8,e,u,d):(Te(i,`File ${t} is missing a file descriptor`),0);case 3:case 4:Te(i,"Not implemented")}}catch(y){Te(i,y.toString())}return 0},writeFile:(i,t,e,u,d)=>{try{let y=lt.resolveFileInfo(i,t);switch(y==null?void 0:y.dataProtocol){case 1:{if(!y.dataNativeFd)return Te(i,`File ${t} is missing a file descriptor`),0;let v=i.HEAPU8.subarray(e,e+u);return Ye.default.writeSync(y.dataNativeFd,v,0,v.length,d)}}}catch(y){Te(i,y.toString())}return 0},getLastFileModificationTime:(i,t)=>{try{let e=lt.resolveFileInfo(i,t);switch(e==null?void 0:e.dataProtocol){case 1:return e.dataNativeFd?Ye.default.fstatSync(e.dataNativeFd).mtime.getTime():(Te(i,`File ${t} is missing a file descriptor`),0);case 3:case 4:Te(i,"Not implemented")}}catch(e){Te(i,e.toString())}return 0},checkDirectory:(i,t,e)=>{try{let u=Rt(i.HEAPU8.subarray(t,t+e));return Ye.default.existsSync(u)}catch(u){return Te(i,u.toString()),!1}},createDirectory:(i,t,e)=>{try{let u=Rt(i.HEAPU8.subarray(t,t+e));return Ye.default.mkdirSync(u)}catch(u){return Te(i,u.toString()),0}},removeDirectory:(i,t,e)=>{try{let u=Rt(i.HEAPU8.subarray(t,t+e));return Ye.default.rmdirSync(u)}catch(u){return Te(i,u.toString()),0}},listDirectoryEntries:(i,t,e)=>(Te(i,"Not Implemented"),!1),glob:(i,t,e)=>{try{let u=ve(i,t,e),d=np.sync([u],{dot:!0});for(let y of d)i.ccall("duckdb_web_fs_glob_add_path",null,["string"],[y])}catch(u){return Te(i,u.toString()),0}},moveFile:(i,t,e,u,d)=>{try{let y=Rt(i.HEAPU8.subarray(t,t+e)),v=Rt(i.HEAPU8.subarray(u,u+d));return Ye.default.renameSync(y,v)}catch(y){return Te(i,y.toString()),0}},checkFile:(i,t,e)=>{try{let u=Rt(i.HEAPU8.subarray(t,t+e));return Ye.default.existsSync(u)}catch(u){return Te(i,u.toString()),!1}},removeFile:(i,t,e)=>{try{let u=Rt(i.HEAPU8.subarray(t,t+e));return Ye.default.rmSync(u)}catch(u){return Te(i,u.toString()),0}},callScalarUDF:(i,t,e,u,d,y,v)=>{Wc(lt,i,t,e,u,d,y,v)}};var ap=class extends Ga{postMessage(t,e){globalThis.postMessage(t,e)}async instantiate(t,e,u){return await new es(this,lt,t,e).instantiate(u)}};function sp(){let i=new ap;globalThis.onmessage=async t=>{await i.onMessage(t.data)}}sp();module.exports=Wg(z0);0&&(module.exports={registerWorker});
5
5
  /*!
6
6
  * fill-range <https://github.com/jonschlinkert/fill-range>
7
7
  *