@powersync/web 1.8.2 → 1.9.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.
@@ -7,7 +7,7 @@
7
7
  \***************************************************************************/
8
8
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9
9
 
10
- module.exports = __webpack_require__.p + "fe5d98632ac68b2022d7.wasm";
10
+ module.exports = __webpack_require__.p + "d96c8ebf66d665ac9ff6.wasm";
11
11
 
12
12
  /***/ }),
13
13
 
@@ -151,7 +151,7 @@ d._sqlite3_extended_result_codes=(a,b)=>(d._sqlite3_extended_result_codes=V.Le)(
151
151
  d._sqlite3_uri_boolean=(a,b,c)=>(d._sqlite3_uri_boolean=V.Se)(a,b,c);d._sqlite3_uri_int64=(a,b,c,e)=>(d._sqlite3_uri_int64=V.Te)(a,b,c,e);d._sqlite3_filename_database=a=>(d._sqlite3_filename_database=V.Ue)(a);d._sqlite3_filename_journal=a=>(d._sqlite3_filename_journal=V.Ve)(a);d._sqlite3_filename_wal=a=>(d._sqlite3_filename_wal=V.We)(a);d._sqlite3_db_name=(a,b)=>(d._sqlite3_db_name=V.Xe)(a,b);d._sqlite3_db_filename=(a,b)=>(d._sqlite3_db_filename=V.Ye)(a,b);
152
152
  d._sqlite3_db_readonly=(a,b)=>(d._sqlite3_db_readonly=V.Ze)(a,b);d._sqlite3_compileoption_used=a=>(d._sqlite3_compileoption_used=V._e)(a);d._sqlite3_compileoption_get=a=>(d._sqlite3_compileoption_get=V.$e)(a);d._sqlite3_sourceid=()=>(d._sqlite3_sourceid=V.af)();var $c=d._malloc=a=>($c=d._malloc=V.bf)(a),ed=d._free=a=>(ed=d._free=V.cf)(a);d._RegisterExtensionFunctions=a=>(d._RegisterExtensionFunctions=V.df)(a);d._set_authorizer=a=>(d._set_authorizer=V.ef)(a);
153
153
  d._create_function=(a,b,c,e,f,h)=>(d._create_function=V.ff)(a,b,c,e,f,h);d._on_tables_changed=(a,b,c,e,f,h)=>(d._on_tables_changed=V.gf)(a,b,c,e,f,h);d._register_table_update_hook=a=>(d._register_table_update_hook=V.hf)(a);d._create_module=(a,b,c,e)=>(d._create_module=V.jf)(a,b,c,e);d._progress_handler=(a,b)=>(d._progress_handler=V.kf)(a,b);d._register_vfs=(a,b,c,e)=>(d._register_vfs=V.lf)(a,b,c,e);d._getSqliteFree=()=>(d._getSqliteFree=V.mf)();var qd=d._main=(a,b)=>(qd=d._main=V.nf)(a,b);
154
- d._setup_powersync=()=>(d._setup_powersync=V.of)();var gb=(a,b)=>(gb=V.qf)(a,b),rd=()=>(rd=V.rf)(),ld=a=>(ld=V.sf)(a),md=a=>(md=V.tf)(a),nd=()=>(nd=V.uf)(),cd=a=>(cd=V.vf)(a),Rc=()=>(Rc=V.wf)(),bd=a=>(bd=V.xf)(a),dd=()=>(dd=V.yf)();d._sqlite3_version=46872;d.getTempRet0=()=>rd();d.ccall=Z;d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&f&&!e?d["_"+a]:(...h)=>Z(a,b,c,h,e)};
154
+ d._setup_powersync=()=>(d._setup_powersync=V.of)();var gb=(a,b)=>(gb=V.qf)(a,b),rd=()=>(rd=V.rf)(),ld=a=>(ld=V.sf)(a),md=a=>(md=V.tf)(a),nd=()=>(nd=V.uf)(),cd=a=>(cd=V.vf)(a),Rc=()=>(Rc=V.wf)(),bd=a=>(bd=V.xf)(a),dd=()=>(dd=V.yf)();d._sqlite3_version=50840;d.getTempRet0=()=>rd();d.ccall=Z;d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>"number"===h||"boolean"===h);return"string"!==b&&f&&!e?d["_"+a]:(...h)=>Z(a,b,c,h,e)};
155
155
  d.addFunction=(a,b)=>{if(!jd){jd=new WeakMap;var c=hd.length;if(jd)for(var e=0;e<0+c;e++){var f=hd.get(e);f&&jd.set(f,e)}}if(c=jd.get(a)||0)return c;if(kd.length)c=kd.pop();else{try{hd.grow(1)}catch(n){if(!(n instanceof RangeError))throw n;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.";}c=hd.length-1}try{hd.set(c,a)}catch(n){if(!(n instanceof TypeError))throw n;if("function"==typeof WebAssembly.Function){e=WebAssembly.Function;f={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"};for(var h=
156
156
  {parameters:[],results:"v"==b[0]?[]:[f[b[0]]]},k=1;k<b.length;++k)h.parameters.push(f[b[k]]);b=new e(h,a)}else{e=[1];f=b.slice(0,1);b=b.slice(1);h={i:127,p:127,j:126,f:125,d:124,e:111};e.push(96);k=b.length;128>k?e.push(k):e.push(k%128|128,k>>7);for(k=0;k<b.length;++k)e.push(h[b[k]]);"v"==f?e.push(0):e.push(1,h[f]);b=[0,97,115,109,1,0,0,0,1];f=e.length;128>f?b.push(f):b.push(f%128|128,f>>7);b.push(...e);b.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);b=new WebAssembly.Module(new Uint8Array(b));b=(new WebAssembly.Instance(b,
157
157
  {e:{f:a}})).exports.f}hd.set(c,b)}jd.set(a,c);return c};d.setValue=I;d.getValue=H;d.UTF8ToString=(a,b)=>a?J(w,a,b):"";d.stringToUTF8=(a,b,c)=>K(a,w,b,c);d.lengthBytesUTF8=Ua;d.intArrayFromString=Va;d.intArrayToString=function(a){for(var b=[],c=0;c<a.length;c++){var e=a[c];255<e&&(e&=255);b.push(String.fromCharCode(e))}return b.join("")};d.AsciiToString=a=>{for(var b="";;){var c=w[a++];if(!c)return b;b+=String.fromCharCode(c)}};
@@ -1 +1 @@
1
- {"version":3,"file":"worker/node_modules_journeyapps_wa-sqlite_dist_wa-sqlite-async_mjs.umd.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://sdk_web/../../node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite-async.mjs"],"sourcesContent":["\nvar Module = (() => {\n var _scriptName = import.meta.url;\n \n return (\nfunction(moduleArg = {}) {\n var moduleRtn;\n\nvar d=moduleArg,aa,ba,ca=new Promise((a,b)=>{aa=a;ba=b}),da=\"object\"==typeof window,ea=\"function\"==typeof importScripts,fa=Object.assign({},d),ha=\"./this.program\",ia=(a,b)=>{throw b;},g=\"\",ka,la;\nif(da||ea)ea?g=self.location.href:\"undefined\"!=typeof document&&document.currentScript&&(g=document.currentScript.src),_scriptName&&(g=_scriptName),g.startsWith(\"blob:\")?g=\"\":g=g.substr(0,g.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1),ea&&(la=a=>{var b=new XMLHttpRequest;b.open(\"GET\",a,!1);b.responseType=\"arraybuffer\";b.send(null);return new Uint8Array(b.response)}),ka=a=>fetch(a,{credentials:\"same-origin\"}).then(b=>b.ok?b.arrayBuffer():Promise.reject(Error(b.status+\" : \"+b.url)));\nvar ma=d.print||console.log.bind(console),r=d.printErr||console.error.bind(console);Object.assign(d,fa);fa=null;d.thisProgram&&(ha=d.thisProgram);d.quit&&(ia=d.quit);var na;d.wasmBinary&&(na=d.wasmBinary);var oa,u=!1,pa,v,w,x,qa,z,B,ra,sa;\nfunction ta(){var a=oa.buffer;d.HEAP8=v=new Int8Array(a);d.HEAP16=x=new Int16Array(a);d.HEAPU8=w=new Uint8Array(a);d.HEAPU16=qa=new Uint16Array(a);d.HEAP32=z=new Int32Array(a);d.HEAPU32=B=new Uint32Array(a);d.HEAPF32=ra=new Float32Array(a);d.HEAPF64=sa=new Float64Array(a)}var ua=[],va=[],wa=[],xa=[];function ya(){var a=d.preRun.shift();ua.unshift(a)}var za=0,Aa=null,Ba=null;\nfunction C(a){d.onAbort?.(a);a=\"Aborted(\"+a+\")\";r(a);u=!0;pa=1;a=new WebAssembly.RuntimeError(a+\". Build with -sASSERTIONS for more info.\");ba(a);throw a;}var Ca=a=>a.startsWith(\"data:application/octet-stream;base64,\"),Da;function Ea(a){if(a==Da&&na)return new Uint8Array(na);if(la)return la(a);throw\"both async and sync fetching of the wasm failed\";}function Fa(a){return na?Promise.resolve().then(()=>Ea(a)):ka(a).then(b=>new Uint8Array(b),()=>Ea(a))}\nfunction Ga(a,b,c){return Fa(a).then(e=>WebAssembly.instantiate(e,b)).then(c,e=>{r(`failed to asynchronously prepare wasm: ${e}`);C(e)})}function Ha(a,b){var c=Da;return na||\"function\"!=typeof WebAssembly.instantiateStreaming||Ca(c)||\"function\"!=typeof fetch?Ga(c,a,b):fetch(c,{credentials:\"same-origin\"}).then(e=>WebAssembly.instantiateStreaming(e,a).then(b,function(f){r(`wasm streaming compile failed: ${f}`);r(\"falling back to ArrayBuffer instantiation\");return Ga(c,a,b)}))}var D,F;\nfunction Ia(a){this.name=\"ExitStatus\";this.message=`Program terminated with exit(${a})`;this.status=a}var Ja=a=>{for(;0<a.length;)a.shift()(d)};function H(a,b=\"i8\"){b.endsWith(\"*\")&&(b=\"*\");switch(b){case \"i1\":return v[a];case \"i8\":return v[a];case \"i16\":return x[a>>1];case \"i32\":return z[a>>2];case \"i64\":C(\"to do getValue(i64) use WASM_BIGINT\");case \"float\":return ra[a>>2];case \"double\":return sa[a>>3];case \"*\":return B[a>>2];default:C(`invalid type for getValue: ${b}`)}}\nvar Ka=d.noExitRuntime||!0;function I(a,b,c=\"i8\"){c.endsWith(\"*\")&&(c=\"*\");switch(c){case \"i1\":v[a]=b;break;case \"i8\":v[a]=b;break;case \"i16\":x[a>>1]=b;break;case \"i32\":z[a>>2]=b;break;case \"i64\":C(\"to do setValue(i64) use WASM_BIGINT\");case \"float\":ra[a>>2]=b;break;case \"double\":sa[a>>3]=b;break;case \"*\":B[a>>2]=b;break;default:C(`invalid type for setValue: ${c}`)}}\nvar La=\"undefined\"!=typeof TextDecoder?new TextDecoder:void 0,J=(a,b,c)=>{var e=b+c;for(c=b;a[c]&&!(c>=e);)++c;if(16<c-b&&a.buffer&&La)return La.decode(a.subarray(b,c));for(e=\"\";b<c;){var f=a[b++];if(f&128){var h=a[b++]&63;if(192==(f&224))e+=String.fromCharCode((f&31)<<6|h);else{var k=a[b++]&63;f=224==(f&240)?(f&15)<<12|h<<6|k:(f&7)<<18|h<<12|k<<6|a[b++]&63;65536>f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e},Ma=(a,\nb)=>{for(var c=0,e=a.length-1;0<=e;e--){var f=a[e];\".\"===f?a.splice(e,1):\"..\"===f?(a.splice(e,1),c++):c&&(a.splice(e,1),c--)}if(b)for(;c;c--)a.unshift(\"..\");return a},Na=a=>{var b=\"/\"===a.charAt(0),c=\"/\"===a.substr(-1);(a=Ma(a.split(\"/\").filter(e=>!!e),!b).join(\"/\"))||b||(a=\".\");a&&c&&(a+=\"/\");return(b?\"/\":\"\")+a},Oa=a=>{var b=/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return\".\";b&&=b.substr(0,b.length-1);return a+b},Pa=a=>{if(\"/\"===a)return\"/\";\na=Na(a);a=a.replace(/\\/$/,\"\");var b=a.lastIndexOf(\"/\");return-1===b?a:a.substr(b+1)},Qa=()=>{if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues)return a=>crypto.getRandomValues(a);C(\"initRandomDevice\")},Ra=a=>(Ra=Qa())(a),Sa=(...a)=>{for(var b=\"\",c=!1,e=a.length-1;-1<=e&&!c;e--){c=0<=e?a[e]:\"/\";if(\"string\"!=typeof c)throw new TypeError(\"Arguments to path.resolve must be strings\");if(!c)return\"\";b=c+\"/\"+b;c=\"/\"===c.charAt(0)}b=Ma(b.split(\"/\").filter(f=>!!f),!c).join(\"/\");return(c?\n\"/\":\"\")+b||\".\"},Ta=[],Ua=a=>{for(var b=0,c=0;c<a.length;++c){var e=a.charCodeAt(c);127>=e?b++:2047>=e?b+=2:55296<=e&&57343>=e?(b+=4,++c):b+=3}return b},K=(a,b,c,e)=>{if(!(0<e))return 0;var f=c;e=c+e-1;for(var h=0;h<a.length;++h){var k=a.charCodeAt(h);if(55296<=k&&57343>=k){var n=a.charCodeAt(++h);k=65536+((k&1023)<<10)|n&1023}if(127>=k){if(c>=e)break;b[c++]=k}else{if(2047>=k){if(c+1>=e)break;b[c++]=192|k>>6}else{if(65535>=k){if(c+2>=e)break;b[c++]=224|k>>12}else{if(c+3>=e)break;b[c++]=240|k>>18;b[c++]=\n128|k>>12&63}b[c++]=128|k>>6&63}b[c++]=128|k&63}}b[c]=0;return c-f};function Va(a,b,c){c=Array(0<c?c:Ua(a)+1);a=K(a,c,0,c.length);b&&(c.length=a);return c}var Wa=[];function Xa(a,b){Wa[a]={input:[],Ff:[],Qf:b};Ya(a,Za)}\nvar Za={open(a){var b=Wa[a.node.Tf];if(!b)throw new N(43);a.Gf=b;a.seekable=!1},close(a){a.Gf.Qf.Vf(a.Gf)},Vf(a){a.Gf.Qf.Vf(a.Gf)},read(a,b,c,e){if(!a.Gf||!a.Gf.Qf.kg)throw new N(60);for(var f=0,h=0;h<e;h++){try{var k=a.Gf.Qf.kg(a.Gf)}catch(n){throw new N(29);}if(void 0===k&&0===f)throw new N(6);if(null===k||void 0===k)break;f++;b[c+h]=k}f&&(a.node.timestamp=Date.now());return f},write(a,b,c,e){if(!a.Gf||!a.Gf.Qf.eg)throw new N(60);try{for(var f=0;f<e;f++)a.Gf.Qf.eg(a.Gf,b[c+f])}catch(h){throw new N(29);\n}e&&(a.node.timestamp=Date.now());return f}},$a={kg(){a:{if(!Ta.length){var a=null;\"undefined\"!=typeof window&&\"function\"==typeof window.prompt&&(a=window.prompt(\"Input: \"),null!==a&&(a+=\"\\n\"));if(!a){a=null;break a}Ta=Va(a,!0)}a=Ta.shift()}return a},eg(a,b){null===b||10===b?(ma(J(a.Ff,0)),a.Ff=[]):0!=b&&a.Ff.push(b)},Vf(a){a.Ff&&0<a.Ff.length&&(ma(J(a.Ff,0)),a.Ff=[])},Lg(){return{Gg:25856,Ig:5,Fg:191,Hg:35387,Eg:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},Mg(){return 0},\nNg(){return[24,80]}},ab={eg(a,b){null===b||10===b?(r(J(a.Ff,0)),a.Ff=[]):0!=b&&a.Ff.push(b)},Vf(a){a.Ff&&0<a.Ff.length&&(r(J(a.Ff,0)),a.Ff=[])}};function bb(a,b){var c=a.Bf?a.Bf.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Bf,a.Bf=new Uint8Array(b),0<a.Df&&a.Bf.set(c.subarray(0,a.Df),0))}\nvar O={Jf:null,If(){return O.createNode(null,\"/\",16895,0)},createNode(a,b,c,e){if(24576===(c&61440)||4096===(c&61440))throw new N(63);O.Jf||(O.Jf={dir:{node:{Hf:O.zf.Hf,Ef:O.zf.Ef,Rf:O.zf.Rf,Wf:O.zf.Wf,og:O.zf.og,ag:O.zf.ag,Zf:O.zf.Zf,ng:O.zf.ng,$f:O.zf.$f},stream:{Nf:O.Af.Nf}},file:{node:{Hf:O.zf.Hf,Ef:O.zf.Ef},stream:{Nf:O.Af.Nf,read:O.Af.read,write:O.Af.write,hg:O.Af.hg,Xf:O.Af.Xf,Yf:O.Af.Yf}},link:{node:{Hf:O.zf.Hf,Ef:O.zf.Ef,Uf:O.zf.Uf},stream:{}},ig:{node:{Hf:O.zf.Hf,Ef:O.zf.Ef},stream:cb}});\nc=db(a,b,c,e);P(c.mode)?(c.zf=O.Jf.dir.node,c.Af=O.Jf.dir.stream,c.Bf={}):32768===(c.mode&61440)?(c.zf=O.Jf.file.node,c.Af=O.Jf.file.stream,c.Df=0,c.Bf=null):40960===(c.mode&61440)?(c.zf=O.Jf.link.node,c.Af=O.Jf.link.stream):8192===(c.mode&61440)&&(c.zf=O.Jf.ig.node,c.Af=O.Jf.ig.stream);c.timestamp=Date.now();a&&(a.Bf[b]=c,a.timestamp=c.timestamp);return c},Kg(a){return a.Bf?a.Bf.subarray?a.Bf.subarray(0,a.Df):new Uint8Array(a.Bf):new Uint8Array(0)},zf:{Hf(a){var b={};b.ug=8192===(a.mode&61440)?a.id:\n1;b.lg=a.id;b.mode=a.mode;b.Ag=1;b.uid=0;b.xg=0;b.Tf=a.Tf;P(a.mode)?b.size=4096:32768===(a.mode&61440)?b.size=a.Df:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.qg=new Date(a.timestamp);b.zg=new Date(a.timestamp);b.tg=new Date(a.timestamp);b.rg=4096;b.sg=Math.ceil(b.size/b.rg);return b},Ef(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);if(void 0!==b.size&&(b=b.size,a.Df!=b))if(0==b)a.Bf=null,a.Df=0;else{var c=a.Bf;a.Bf=new Uint8Array(b);c&&a.Bf.set(c.subarray(0,\nMath.min(b,a.Df)));a.Df=b}},Rf(){throw eb[44];},Wf(a,b,c,e){return O.createNode(a,b,c,e)},og(a,b,c){if(P(a.mode)){try{var e=fb(b,c)}catch(h){}if(e)for(var f in e.Bf)throw new N(55);}delete a.parent.Bf[a.name];a.parent.timestamp=Date.now();a.name=c;b.Bf[c]=a;b.timestamp=a.parent.timestamp},ag(a,b){delete a.Bf[b];a.timestamp=Date.now()},Zf(a,b){var c=fb(a,b),e;for(e in c.Bf)throw new N(55);delete a.Bf[b];a.timestamp=Date.now()},ng(a){var b=[\".\",\"..\"],c;for(c of Object.keys(a.Bf))b.push(c);return b},\n$f(a,b,c){a=O.createNode(a,b,41471,0);a.link=c;return a},Uf(a){if(40960!==(a.mode&61440))throw new N(28);return a.link}},Af:{read(a,b,c,e,f){var h=a.node.Bf;if(f>=a.node.Df)return 0;a=Math.min(a.node.Df-f,e);if(8<a&&h.subarray)b.set(h.subarray(f,f+a),c);else for(e=0;e<a;e++)b[c+e]=h[f+e];return a},write(a,b,c,e,f,h){b.buffer===v.buffer&&(h=!1);if(!e)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.Bf||a.Bf.subarray)){if(h)return a.Bf=b.subarray(c,c+e),a.Df=e;if(0===a.Df&&0===f)return a.Bf=\nb.slice(c,c+e),a.Df=e;if(f+e<=a.Df)return a.Bf.set(b.subarray(c,c+e),f),e}bb(a,f+e);if(a.Bf.subarray&&b.subarray)a.Bf.set(b.subarray(c,c+e),f);else for(h=0;h<e;h++)a.Bf[f+h]=b[c+h];a.Df=Math.max(a.Df,f+e);return e},Nf(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.Df);if(0>b)throw new N(28);return b},hg(a,b,c){bb(a.node,b+c);a.node.Df=Math.max(a.node.Df,b+c)},Xf(a,b,c,e,f){if(32768!==(a.node.mode&61440))throw new N(43);a=a.node.Bf;if(f&2||a.buffer!==v.buffer){if(0<c||c+\nb<a.length)a.subarray?a=a.subarray(c,c+b):a=Array.prototype.slice.call(a,c,c+b);c=!0;b=65536*Math.ceil(b/65536);(f=gb(65536,b))?(w.fill(0,f,f+b),b=f):b=0;if(!b)throw new N(48);v.set(a,b)}else c=!1,b=a.byteOffset;return{Bg:b,pg:c}},Yf(a,b,c,e){O.Af.write(a,b,0,e,c,!1);return 0}}},hb=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},ib=null,jb={},kb=[],lb=1,Q=null,mb=!0,N=class{constructor(a){this.name=\"ErrnoError\";this.Cf=a}},eb={},nb=class{constructor(){this.bg={};this.node=null}get flags(){return this.bg.flags}set flags(a){this.bg.flags=\na}get position(){return this.bg.position}set position(a){this.bg.position=a}},ob=class{constructor(a,b,c,e){a||=this;this.parent=a;this.If=a.If;this.Of=null;this.id=lb++;this.name=b;this.mode=c;this.zf={};this.Af={};this.Tf=e}get read(){return 365===(this.mode&365)}set read(a){a?this.mode|=365:this.mode&=-366}get write(){return 146===(this.mode&146)}set write(a){a?this.mode|=146:this.mode&=-147}};\nfunction R(a,b={}){a=Sa(a);if(!a)return{path:\"\",node:null};b=Object.assign({jg:!0,fg:0},b);if(8<b.fg)throw new N(32);a=a.split(\"/\").filter(k=>!!k);for(var c=ib,e=\"/\",f=0;f<a.length;f++){var h=f===a.length-1;if(h&&b.parent)break;c=fb(c,a[f]);e=Na(e+\"/\"+a[f]);c.Of&&(!h||h&&b.jg)&&(c=c.Of.root);if(!h||b.Mf)for(h=0;40960===(c.mode&61440);)if(c=pb(e),e=Sa(Oa(e),c),c=R(e,{fg:b.fg+1}).node,40<h++)throw new N(32);}return{path:e,node:c}}\nfunction qb(a){for(var b;;){if(a===a.parent)return a=a.If.mg,b?\"/\"!==a[a.length-1]?`${a}/${b}`:a+b:a;b=b?`${a.name}/${b}`:a.name;a=a.parent}}function rb(a,b){for(var c=0,e=0;e<b.length;e++)c=(c<<5)-c+b.charCodeAt(e)|0;return(a+c>>>0)%Q.length}function sb(a){var b=rb(a.parent.id,a.name);if(Q[b]===a)Q[b]=a.Pf;else for(b=Q[b];b;){if(b.Pf===a){b.Pf=a.Pf;break}b=b.Pf}}\nfunction fb(a,b){var c=P(a.mode)?(c=tb(a,\"x\"))?c:a.zf.Rf?0:2:54;if(c)throw new N(c);for(c=Q[rb(a.id,b)];c;c=c.Pf){var e=c.name;if(c.parent.id===a.id&&e===b)return c}return a.zf.Rf(a,b)}function db(a,b,c,e){a=new ob(a,b,c,e);b=rb(a.parent.id,a.name);a.Pf=Q[b];return Q[b]=a}function P(a){return 16384===(a&61440)}function ub(a){var b=[\"r\",\"w\",\"rw\"][a&3];a&512&&(b+=\"w\");return b}\nfunction tb(a,b){if(mb)return 0;if(!b.includes(\"r\")||a.mode&292){if(b.includes(\"w\")&&!(a.mode&146)||b.includes(\"x\")&&!(a.mode&73))return 2}else return 2;return 0}function vb(a,b){try{return fb(a,b),20}catch(c){}return tb(a,\"wx\")}function wb(a,b,c){try{var e=fb(a,b)}catch(f){return f.Cf}if(a=tb(a,\"wx\"))return a;if(c){if(!P(e.mode))return 54;if(e===e.parent||\"/\"===qb(e))return 10}else if(P(e.mode))return 31;return 0}function S(a){a=kb[a];if(!a)throw new N(8);return a}\nfunction xb(a,b=-1){a=Object.assign(new nb,a);if(-1==b)a:{for(b=0;4096>=b;b++)if(!kb[b])break a;throw new N(33);}a.Kf=b;return kb[b]=a}function yb(a,b=-1){a=xb(a,b);a.Af?.Jg?.(a);return a}var cb={open(a){a.Af=jb[a.node.Tf].Af;a.Af.open?.(a)},Nf(){throw new N(70);}};function Ya(a,b){jb[a]={Af:b}}\nfunction zb(a,b){var c=\"/\"===b;if(c&&ib)throw new N(10);if(!c&&b){var e=R(b,{jg:!1});b=e.path;e=e.node;if(e.Of)throw new N(10);if(!P(e.mode))throw new N(54);}b={type:a,Og:{},mg:b,yg:[]};a=a.If(b);a.If=b;b.root=a;c?ib=a:e&&(e.Of=b,e.If&&e.If.yg.push(b))}function Ab(a,b,c){var e=R(a,{parent:!0}).node;a=Pa(a);if(!a||\".\"===a||\"..\"===a)throw new N(28);var f=vb(e,a);if(f)throw new N(f);if(!e.zf.Wf)throw new N(63);return e.zf.Wf(e,a,b,c)}function T(a,b){return Ab(a,(void 0!==b?b:511)&1023|16384,0)}\nfunction Bb(a,b,c){\"undefined\"==typeof c&&(c=b,b=438);Ab(a,b|8192,c)}function Cb(a,b){if(!Sa(a))throw new N(44);var c=R(b,{parent:!0}).node;if(!c)throw new N(44);b=Pa(b);var e=vb(c,b);if(e)throw new N(e);if(!c.zf.$f)throw new N(63);c.zf.$f(c,b,a)}function Db(a){var b=R(a,{parent:!0}).node;a=Pa(a);var c=fb(b,a),e=wb(b,a,!0);if(e)throw new N(e);if(!b.zf.Zf)throw new N(63);if(c.Of)throw new N(10);b.zf.Zf(b,a);sb(c)}\nfunction pb(a){a=R(a).node;if(!a)throw new N(44);if(!a.zf.Uf)throw new N(28);return Sa(qb(a.parent),a.zf.Uf(a))}function Eb(a,b){a=R(a,{Mf:!b}).node;if(!a)throw new N(44);if(!a.zf.Hf)throw new N(63);return a.zf.Hf(a)}function Fb(a){return Eb(a,!0)}function Gb(a,b){a=\"string\"==typeof a?R(a,{Mf:!0}).node:a;if(!a.zf.Ef)throw new N(63);a.zf.Ef(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})}\nfunction Hb(a,b){if(0>b)throw new N(28);a=\"string\"==typeof a?R(a,{Mf:!0}).node:a;if(!a.zf.Ef)throw new N(63);if(P(a.mode))throw new N(31);if(32768!==(a.mode&61440))throw new N(28);var c=tb(a,\"w\");if(c)throw new N(c);a.zf.Ef(a,{size:b,timestamp:Date.now()})}\nfunction Ib(a,b,c){if(\"\"===a)throw new N(44);if(\"string\"==typeof b){var e={r:0,\"r+\":2,w:577,\"w+\":578,a:1089,\"a+\":1090}[b];if(\"undefined\"==typeof e)throw Error(`Unknown file open mode: ${b}`);b=e}c=b&64?(\"undefined\"==typeof c?438:c)&4095|32768:0;if(\"object\"==typeof a)var f=a;else{a=Na(a);try{f=R(a,{Mf:!(b&131072)}).node}catch(h){}}e=!1;if(b&64)if(f){if(b&128)throw new N(20);}else f=Ab(a,c,0),e=!0;if(!f)throw new N(44);8192===(f.mode&61440)&&(b&=-513);if(b&65536&&!P(f.mode))throw new N(54);if(!e&&(c=\nf?40960===(f.mode&61440)?32:P(f.mode)&&(\"r\"!==ub(b)||b&512)?31:tb(f,ub(b)):44))throw new N(c);b&512&&!e&&Hb(f,0);b&=-131713;f=xb({node:f,path:qb(f),flags:b,seekable:!0,position:0,Af:f.Af,Dg:[],error:!1});f.Af.open&&f.Af.open(f);!d.logReadFiles||b&1||(Jb||={},a in Jb||(Jb[a]=1));return f}function Kb(a,b,c){if(null===a.Kf)throw new N(8);if(!a.seekable||!a.Af.Nf)throw new N(70);if(0!=c&&1!=c&&2!=c)throw new N(28);a.position=a.Af.Nf(a,b,c);a.Dg=[]}var Lb;\nfunction Mb(a,b,c){a=Na(\"/dev/\"+a);var e=hb(!!b,!!c);Nb||=64;var f=Nb++<<8|0;Ya(f,{open(h){h.seekable=!1},close(){c?.buffer?.length&&c(10)},read(h,k,n,l){for(var m=0,p=0;p<l;p++){try{var q=b()}catch(t){throw new N(29);}if(void 0===q&&0===m)throw new N(6);if(null===q||void 0===q)break;m++;k[n+p]=q}m&&(h.node.timestamp=Date.now());return m},write(h,k,n,l){for(var m=0;m<l;m++)try{c(k[n+m])}catch(p){throw new N(29);}l&&(h.node.timestamp=Date.now());return m}});Bb(a,e,f)}var Nb,U={},Jb;\nfunction Ob(a,b,c){if(\"/\"===b.charAt(0))return b;a=-100===a?\"/\":S(a).path;if(0==b.length){if(!c)throw new N(44);return a}return Na(a+\"/\"+b)}\nfunction Pb(a,b,c){a=a(b);z[c>>2]=a.ug;z[c+4>>2]=a.mode;B[c+8>>2]=a.Ag;z[c+12>>2]=a.uid;z[c+16>>2]=a.xg;z[c+20>>2]=a.Tf;F=[a.size>>>0,(D=a.size,1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+24>>2]=F[0];z[c+28>>2]=F[1];z[c+32>>2]=4096;z[c+36>>2]=a.sg;b=a.qg.getTime();var e=a.zg.getTime(),f=a.tg.getTime();F=[Math.floor(b/1E3)>>>0,(D=Math.floor(b/1E3),1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:\n0)];z[c+40>>2]=F[0];z[c+44>>2]=F[1];B[c+48>>2]=b%1E3*1E3;F=[Math.floor(e/1E3)>>>0,(D=Math.floor(e/1E3),1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+56>>2]=F[0];z[c+60>>2]=F[1];B[c+64>>2]=e%1E3*1E3;F=[Math.floor(f/1E3)>>>0,(D=Math.floor(f/1E3),1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+72>>2]=F[0];z[c+76>>2]=F[1];B[c+80>>2]=f%1E3*1E3;F=[a.lg>>>0,(D=a.lg,1<=+Math.abs(D)?0<D?+Math.floor(D/\n4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+88>>2]=F[0];z[c+92>>2]=F[1];return 0}var Qb=void 0;function Rb(){var a=z[+Qb>>2];Qb+=4;return a}\nvar Sb=(a,b)=>b+2097152>>>0<4194305-!!a?(a>>>0)+4294967296*b:NaN,Tb=[0,31,60,91,121,152,182,213,244,274,305,335],Ub=[0,31,59,90,120,151,181,212,243,273,304,334],Vb={},Xb=()=>{if(!Wb){var a={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:ha||\"./this.program\"},b;for(b in Vb)void 0===Vb[b]?delete a[b]:a[b]=Vb[b];var c=[];for(b in a)c.push(`${b}=${a[b]}`);Wb=c}return Wb},\nWb;function Yb(){}function Zb(){}function $b(){}function ac(){}function bc(){}function cc(){}function dc(){}function ec(){}function fc(){}function gc(){}function hc(){}function ic(){}function jc(){}function kc(){}function lc(){}function mc(){}function nc(){}function oc(){}function pc(){}function qc(){}function rc(){}function sc(){}function tc(){}function uc(){}function vc(){}function wc(){}function xc(){}function yc(){}function zc(){}function Ac(){}function Bc(){}function Cc(){}function Dc(){}\nfunction Ec(){}function Fc(){}function Gc(){}function Hc(){}function Ic(){}function Jc(){}var Kc=0,Lc=a=>{pa=a;Ka||0<Kc||(d.onExit?.(a),u=!0);ia(a,new Ia(a))},Mc=a=>{a instanceof Ia||\"unwind\"==a||ia(1,a)},Nc=a=>{try{a()}catch(b){C(b)}},Oc=a=>{if(!u)try{if(a(),!(Ka||0<Kc))try{pa=a=pa,Lc(a)}catch(b){Mc(b)}}catch(b){Mc(b)}};\nfunction Pc(){var a=V,b={};for(let [c,e]of Object.entries(a))b[c]=\"function\"==typeof e?(...f)=>{Qc.push(c);try{return e(...f)}finally{u||(Qc.pop(),W&&1===Y&&0===Qc.length&&(Y=0,Nc(Rc),\"undefined\"!=typeof Fibers&&Fibers.Pg()))}}:e;return b}var Y=0,W=null,Sc=0,Qc=[],Tc={},Uc={},Vc=0,Wc=null,Xc=[];function Yc(){return new Promise((a,b)=>{Wc={resolve:a,reject:b}})}\nfunction Zc(){var a=$c(16396),b=a+12;B[a>>2]=b;B[a+4>>2]=b+16384;b=Qc[0];var c=Tc[b];void 0===c&&(c=Vc++,Tc[b]=c,Uc[c]=b);z[a+8>>2]=c;return a}\nfunction ad(a){if(!u){if(0===Y){var b=!1,c=!1;a((e=0)=>{if(!u&&(Sc=e,b=!0,c)){Y=2;Nc(()=>bd(W));\"undefined\"!=typeof Browser&&Browser.dg.wg&&Browser.dg.resume();e=!1;try{var f=(0,V[Uc[z[W+8>>2]]])()}catch(n){f=n,e=!0}var h=!1;if(!W){var k=Wc;k&&(Wc=null,(e?k.reject:k.resolve)(f),h=!0)}if(e&&!h)throw f;}});c=!0;b||(Y=1,W=Zc(),\"undefined\"!=typeof Browser&&Browser.dg.wg&&Browser.dg.pause(),Nc(()=>cd(W)))}else 2===Y?(Y=0,Nc(dd),ed(W),W=null,Xc.forEach(Oc)):C(`invalid state: ${Y}`);return Sc}}\nfunction fd(a){return ad(b=>{a().then(b)})}\nvar gd={},hd,jd,kd=[],Z=(a,b,c,e,f)=>{function h(q){--Kc;0!==l&&ld(l);return\"string\"===b?q?J(w,q):\"\":\"boolean\"===b?!!q:q}var k={string:q=>{var t=0;if(null!==q&&void 0!==q&&0!==q){t=Ua(q)+1;var y=md(t);K(q,w,y,t);t=y}return t},array:q=>{var t=md(q.length);v.set(q,t);return t}};a=d[\"_\"+a];var n=[],l=0;if(e)for(var m=0;m<e.length;m++){var p=k[c[m]];p?(0===l&&(l=nd()),n[m]=p(e[m])):n[m]=e[m]}c=W;e=a(...n);f=f?.async;Kc+=1;if(W!=c)return Yc().then(h);e=h(e);return f?Promise.resolve(e):e},od=\"undefined\"!=\ntypeof TextDecoder?new TextDecoder(\"utf-16le\"):void 0;[44].forEach(a=>{eb[a]=new N(a);eb[a].stack=\"<generic error, no stack>\"});Q=Array(4096);zb(O,\"/\");T(\"/tmp\");T(\"/home\");T(\"/home/web_user\");(function(){T(\"/dev\");Ya(259,{read:()=>0,write:(e,f,h,k)=>k});Bb(\"/dev/null\",259);Xa(1280,$a);Xa(1536,ab);Bb(\"/dev/tty\",1280);Bb(\"/dev/tty1\",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Ra(a).byteLength);return a[--b]};Mb(\"random\",c);Mb(\"urandom\",c);T(\"/dev/shm\");T(\"/dev/shm/tmp\")})();\n(function(){T(\"/proc\");var a=T(\"/proc/self\");T(\"/proc/self/fd\");zb({If(){var b=db(a,\"fd\",16895,73);b.zf={Rf(c,e){var f=S(+e);c={parent:null,If:{mg:\"fake\"},zf:{Uf:()=>f.path}};return c.parent=c}};return b}},\"/proc/self/fd\")})();\n(function(){const a=new Map;d.setAuthorizer=function(b,c,e){c?a.set(b,{f:c,gg:e}):a.delete(b);return Z(\"set_authorizer\",\"number\",[\"number\"],[b])};Yb=function(b,c,e,f,h,k){if(a.has(b)){const {f:n,gg:l}=a.get(b);return n(l,c,e?e?J(w,e):\"\":null,f?f?J(w,f):\"\":null,h?h?J(w,h):\"\":null,k?k?J(w,k):\"\":null)}return 0}})();\n(function(){const a=new Map,b=new Map;d.createFunction=function(c,e,f,h,k,n){const l=a.size;a.set(l,{f:n,Lf:k});return Z(\"create_function\",\"number\",\"number string number number number number\".split(\" \"),[c,e,f,h,l,0])};d.createAggregate=function(c,e,f,h,k,n,l){const m=a.size;a.set(m,{step:n,vg:l,Lf:k});return Z(\"create_function\",\"number\",\"number string number number number number\".split(\" \"),[c,e,f,h,m,1])};d.getFunctionUserData=function(c){return b.get(c)};$b=function(c,e,f,h){c=a.get(c);b.set(e,\nc.Lf);c.f(e,new Uint32Array(w.buffer,h,f));b.delete(e)};bc=function(c,e,f,h){c=a.get(c);b.set(e,c.Lf);c.step(e,new Uint32Array(w.buffer,h,f));b.delete(e)};Zb=function(c,e){c=a.get(c);b.set(e,c.Lf);c.vg(e);b.delete(e)}})();(function(){const a=new Map;d.progressHandler=function(b,c,e,f){e?a.set(b,{f:e,gg:f}):a.delete(b);return Z(\"progress_handler\",null,[\"number\",\"number\"],[b,c])};ac=function(b){if(a.has(b)){const {f:c,gg:e}=a.get(b);return c(e)}return 0}})();\n(function(){function a(l,m){const p=`get${l}`,q=`set${l}`;return new Proxy(new DataView(w.buffer,m,\"Int32\"===l?4:8),{get(t,y){if(y===p)return function(A,G){if(!G)throw Error(\"must be little endian\");return t[y](A,G)};if(y===q)return function(A,G,E){if(!E)throw Error(\"must be little endian\");return t[y](A,G,E)};if(\"string\"===typeof y&&y.match(/^(get)|(set)/))throw Error(\"invalid type\");return t[y]}})}const b=\"object\"===typeof gd,c=new Map,e=new Map,f=new Map,h=b?new Set:null,k=b?new Set:null,n=new Map;\nsc=function(l,m,p,q){n.set(l?J(w,l):\"\",{size:m,Sf:Array.from(new Uint32Array(w.buffer,q,p))})};d.createModule=function(l,m,p,q){b&&(p.handleAsync=fd);const t=c.size;c.set(t,{module:p,Lf:q});q=0;p.xCreate&&(q|=1);p.xConnect&&(q|=2);p.xBestIndex&&(q|=4);p.xDisconnect&&(q|=8);p.xDestroy&&(q|=16);p.xOpen&&(q|=32);p.xClose&&(q|=64);p.xFilter&&(q|=128);p.xNext&&(q|=256);p.xEof&&(q|=512);p.xColumn&&(q|=1024);p.xRowid&&(q|=2048);p.xUpdate&&(q|=4096);p.xBegin&&(q|=8192);p.xSync&&(q|=16384);p.xCommit&&(q|=\n32768);p.xRollback&&(q|=65536);p.xFindFunction&&(q|=131072);p.xRename&&(q|=262144);return Z(\"create_module\",\"number\",[\"number\",\"string\",\"number\",\"number\"],[l,m,t,q])};ic=function(l,m,p,q,t,y){m=c.get(m);e.set(t,m);if(b){h.delete(t);for(const A of h)e.delete(A)}q=Array.from(new Uint32Array(w.buffer,q,p)).map(A=>A?J(w,A):\"\");return m.module.xCreate(l,m.Lf,q,t,a(\"Int32\",y))};hc=function(l,m,p,q,t,y){m=c.get(m);e.set(t,m);if(b){h.delete(t);for(const A of h)e.delete(A)}q=Array.from(new Uint32Array(w.buffer,\nq,p)).map(A=>A?J(w,A):\"\");return m.module.xConnect(l,m.Lf,q,t,a(\"Int32\",y))};dc=function(l,m){var p=e.get(l),q=n.get(\"sqlite3_index_info\").Sf;const t={};t.nConstraint=H(m+q[0],\"i32\");t.aConstraint=[];var y=H(m+q[1],\"*\"),A=n.get(\"sqlite3_index_constraint\").size;for(var G=0;G<t.nConstraint;++G){var E=t.aConstraint,M=E.push,L=y+G*A,ja=n.get(\"sqlite3_index_constraint\").Sf,X={};X.iColumn=H(L+ja[0],\"i32\");X.op=H(L+ja[1],\"i8\");X.usable=!!H(L+ja[2],\"i8\");M.call(E,X)}t.nOrderBy=H(m+q[2],\"i32\");t.aOrderBy=\n[];y=H(m+q[3],\"*\");A=n.get(\"sqlite3_index_orderby\").size;for(G=0;G<t.nOrderBy;++G)E=t.aOrderBy,M=E.push,L=y+G*A,ja=n.get(\"sqlite3_index_orderby\").Sf,X={},X.iColumn=H(L+ja[0],\"i32\"),X.desc=!!H(L+ja[1],\"i8\"),M.call(E,X);t.aConstraintUsage=[];for(y=0;y<t.nConstraint;++y)t.aConstraintUsage.push({argvIndex:0,omit:!1});t.idxNum=H(m+q[5],\"i32\");t.idxStr=null;t.orderByConsumed=!!H(m+q[8],\"i8\");t.estimatedCost=H(m+q[9],\"double\");t.estimatedRows=H(m+q[10],\"i32\");t.idxFlags=H(m+q[11],\"i32\");t.colUsed=H(m+q[12],\n\"i32\");l=p.module.xBestIndex(l,t);p=n.get(\"sqlite3_index_info\").Sf;q=H(m+p[4],\"*\");y=n.get(\"sqlite3_index_constraint_usage\").size;for(M=0;M<t.nConstraint;++M)A=q+M*y,E=t.aConstraintUsage[M],L=n.get(\"sqlite3_index_constraint_usage\").Sf,I(A+L[0],E.argvIndex,\"i32\"),I(A+L[1],E.omit?1:0,\"i8\");I(m+p[5],t.idxNum,\"i32\");\"string\"===typeof t.idxStr&&(q=Ua(t.idxStr),y=Z(\"sqlite3_malloc\",\"number\",[\"number\"],[q+1]),K(t.idxStr,w,y,q+1),I(m+p[6],y,\"*\"),I(m+p[7],1,\"i32\"));I(m+p[8],t.orderByConsumed,\"i32\");I(m+p[9],\nt.estimatedCost,\"double\");I(m+p[10],t.estimatedRows,\"i32\");I(m+p[11],t.idxFlags,\"i32\");return l};kc=function(l){const m=e.get(l);b?h.add(l):e.delete(l);return m.module.xDisconnect(l)};jc=function(l){const m=e.get(l);b?h.add(l):e.delete(l);return m.module.xDestroy(l)};oc=function(l,m){const p=e.get(l);f.set(m,p);if(b){k.delete(m);for(const q of k)f.delete(q)}return p.module.xOpen(l,m)};ec=function(l){const m=f.get(l);b?k.add(l):f.delete(l);return m.module.xClose(l)};lc=function(l){return f.get(l).module.xEof(l)?\n1:0};mc=function(l,m,p,q,t){const y=f.get(l);p=p?p?J(w,p):\"\":null;t=new Uint32Array(w.buffer,t,q);return y.module.xFilter(l,m,p,t)};nc=function(l){return f.get(l).module.xNext(l)};fc=function(l,m,p){return f.get(l).module.xColumn(l,m,p)};rc=function(l,m){return f.get(l).module.xRowid(l,a(\"BigInt64\",m))};uc=function(l,m,p,q){const t=e.get(l);p=new Uint32Array(w.buffer,p,m);return t.module.xUpdate(l,p,a(\"BigInt64\",q))};cc=function(l){return e.get(l).module.xBegin(l)};tc=function(l){return e.get(l).module.xSync(l)};\ngc=function(l){return e.get(l).module.xCommit(l)};qc=function(l){return e.get(l).module.xRollback(l)};pc=function(l,m){const p=e.get(l);m=m?J(w,m):\"\";return p.module.xRename(l,m)}})();\n(function(){function a(h,k){const n=`get${h}`,l=`set${h}`;return new Proxy(new DataView(w.buffer,k,\"Int32\"===h?4:8),{get(m,p){if(p===n)return function(q,t){if(!t)throw Error(\"must be little endian\");return m[p](q,t)};if(p===l)return function(q,t,y){if(!y)throw Error(\"must be little endian\");return m[p](q,t,y)};if(\"string\"===typeof p&&p.match(/^(get)|(set)/))throw Error(\"invalid type\");return m[p]}})}const b=\"object\"===typeof gd;b&&(d.handleAsync=fd);const c=new Map,e=new Map;d.registerVFS=function(h,\nk){if(Z(\"sqlite3_vfs_find\",\"number\",[\"string\"],[h.name]))throw Error(`VFS '${h.name}' already registered`);b&&(h.handleAsync=fd);var n=h.mxPathName??64;const l=d._malloc(4);k=Z(\"register_vfs\",\"number\",[\"string\",\"number\",\"number\",\"number\"],[h.name,n,k?1:0,l]);k||(n=H(l,\"*\"),c.set(n,h));d._free(l);return k};const f=b?new Set:null;xc=function(h){const k=e.get(h);b?f.add(h):e.delete(h);return k.xClose(h)};Ec=function(h,k,n,l,m){return e.get(h).xRead(h,w.subarray(k,k+n),4294967296*m+l+(0>l?2**32:0))};\nJc=function(h,k,n,l,m){return e.get(h).xWrite(h,w.subarray(k,k+n),4294967296*m+l+(0>l?2**32:0))};Hc=function(h,k,n){return e.get(h).xTruncate(h,4294967296*n+k+(0>k?2**32:0))};Gc=function(h,k){return e.get(h).xSync(h,k)};Bc=function(h,k){const n=e.get(h);k=a(\"BigInt64\",k);return n.xFileSize(h,k)};Cc=function(h,k){return e.get(h).xLock(h,k)};Ic=function(h,k){return e.get(h).xUnlock(h,k)};wc=function(h,k){const n=e.get(h);k=a(\"Int32\",k);return n.xCheckReservedLock(h,k)};Ac=function(h,k,n){const l=e.get(h);\nn=new DataView(w.buffer,n);return l.xFileControl(h,k,n)};Fc=function(h){return e.get(h).xSectorSize(h)};zc=function(h){return e.get(h).xDeviceCharacteristics(h)};Dc=function(h,k,n,l,m){h=c.get(h);e.set(n,h);if(b){f.delete(n);for(var p of f)e.delete(p)}p=null;if(l&64){p=1;const q=[];for(;p;){const t=w[k++];if(t)q.push(t);else switch(w[k]||(p=null),p){case 1:q.push(63);p=2;break;case 2:q.push(61);p=3;break;case 3:q.push(38),p=2}}p=(new TextDecoder).decode(new Uint8Array(q))}else k&&(p=k?J(w,k):\"\");\nm=a(\"Int32\",m);return h.xOpen(p,n,l,m)};yc=function(h,k,n){return c.get(h).xDelete(k?J(w,k):\"\",n)};vc=function(h,k,n,l){h=c.get(h);l=a(\"Int32\",l);return h.xAccess(k?J(w,k):\"\",n,l)}})();\nvar pd={a:(a,b,c,e)=>{C(`Assertion failed: ${a?J(w,a):\"\"}, at: `+[b?b?J(w,b):\"\":\"unknown filename\",c,e?e?J(w,e):\"\":\"unknown function\"])},N:function(a,b){try{return a=a?J(w,a):\"\",Gb(a,b),0}catch(c){if(\"undefined\"==typeof U||\"ErrnoError\"!==c.name)throw c;return-c.Cf}},Q:function(a,b,c){try{b=b?J(w,b):\"\";b=Ob(a,b);if(c&-8)return-28;var e=R(b,{Mf:!0}).node;if(!e)return-44;a=\"\";c&4&&(a+=\"r\");c&2&&(a+=\"w\");c&1&&(a+=\"x\");return a&&tb(e,a)?-2:0}catch(f){if(\"undefined\"==typeof U||\"ErrnoError\"!==f.name)throw f;\nreturn-f.Cf}},O:function(a,b){try{var c=S(a);Gb(c.node,b);return 0}catch(e){if(\"undefined\"==typeof U||\"ErrnoError\"!==e.name)throw e;return-e.Cf}},M:function(a){try{var b=S(a).node;var c=\"string\"==typeof b?R(b,{Mf:!0}).node:b;if(!c.zf.Ef)throw new N(63);c.zf.Ef(c,{timestamp:Date.now()});return 0}catch(e){if(\"undefined\"==typeof U||\"ErrnoError\"!==e.name)throw e;return-e.Cf}},b:function(a,b,c){Qb=c;try{var e=S(a);switch(b){case 0:var f=Rb();if(0>f)break;for(;kb[f];)f++;return yb(e,f).Kf;case 1:case 2:return 0;\ncase 3:return e.flags;case 4:return f=Rb(),e.flags|=f,0;case 12:return f=Rb(),x[f+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(h){if(\"undefined\"==typeof U||\"ErrnoError\"!==h.name)throw h;return-h.Cf}},L:function(a,b){try{var c=S(a);return Pb(Eb,c.path,b)}catch(e){if(\"undefined\"==typeof U||\"ErrnoError\"!==e.name)throw e;return-e.Cf}},n:function(a,b,c){b=Sb(b,c);try{if(isNaN(b))return 61;var e=S(a);if(0===(e.flags&2097155))throw new N(28);Hb(e.node,b);return 0}catch(f){if(\"undefined\"==typeof U||\n\"ErrnoError\"!==f.name)throw f;return-f.Cf}},F:function(a,b){try{if(0===b)return-28;var c=Ua(\"/\")+1;if(b<c)return-68;K(\"/\",w,a,b);return c}catch(e){if(\"undefined\"==typeof U||\"ErrnoError\"!==e.name)throw e;return-e.Cf}},J:function(a,b){try{return a=a?J(w,a):\"\",Pb(Fb,a,b)}catch(c){if(\"undefined\"==typeof U||\"ErrnoError\"!==c.name)throw c;return-c.Cf}},C:function(a,b,c){try{return b=b?J(w,b):\"\",b=Ob(a,b),b=Na(b),\"/\"===b[b.length-1]&&(b=b.substr(0,b.length-1)),T(b,c),0}catch(e){if(\"undefined\"==typeof U||\n\"ErrnoError\"!==e.name)throw e;return-e.Cf}},I:function(a,b,c,e){try{b=b?J(w,b):\"\";var f=e&256;b=Ob(a,b,e&4096);return Pb(f?Fb:Eb,b,c)}catch(h){if(\"undefined\"==typeof U||\"ErrnoError\"!==h.name)throw h;return-h.Cf}},A:function(a,b,c,e){Qb=e;try{b=b?J(w,b):\"\";b=Ob(a,b);var f=e?Rb():0;return Ib(b,c,f).Kf}catch(h){if(\"undefined\"==typeof U||\"ErrnoError\"!==h.name)throw h;return-h.Cf}},y:function(a,b,c,e){try{b=b?J(w,b):\"\";b=Ob(a,b);if(0>=e)return-28;var f=pb(b),h=Math.min(e,Ua(f)),k=v[c+h];K(f,w,c,e+1);v[c+\nh]=k;return h}catch(n){if(\"undefined\"==typeof U||\"ErrnoError\"!==n.name)throw n;return-n.Cf}},x:function(a){try{return a=a?J(w,a):\"\",Db(a),0}catch(b){if(\"undefined\"==typeof U||\"ErrnoError\"!==b.name)throw b;return-b.Cf}},K:function(a,b){try{return a=a?J(w,a):\"\",Pb(Eb,a,b)}catch(c){if(\"undefined\"==typeof U||\"ErrnoError\"!==c.name)throw c;return-c.Cf}},u:function(a,b,c){try{b=b?J(w,b):\"\";b=Ob(a,b);if(0===c){a=b;var e=R(a,{parent:!0}).node;if(!e)throw new N(44);var f=Pa(a),h=fb(e,f),k=wb(e,f,!1);if(k)throw new N(k);\nif(!e.zf.ag)throw new N(63);if(h.Of)throw new N(10);e.zf.ag(e,f);sb(h)}else 512===c?Db(b):C(\"Invalid flags passed to unlinkat\");return 0}catch(n){if(\"undefined\"==typeof U||\"ErrnoError\"!==n.name)throw n;return-n.Cf}},t:function(a,b,c){try{b=b?J(w,b):\"\";b=Ob(a,b,!0);if(c){var e=B[c>>2]+4294967296*z[c+4>>2],f=z[c+8>>2];h=1E3*e+f/1E6;c+=16;e=B[c>>2]+4294967296*z[c+4>>2];f=z[c+8>>2];k=1E3*e+f/1E6}else var h=Date.now(),k=h;a=h;var n=R(b,{Mf:!0}).node;n.zf.Ef(n,{timestamp:Math.max(a,k)});return 0}catch(l){if(\"undefined\"==\ntypeof U||\"ErrnoError\"!==l.name)throw l;return-l.Cf}},k:function(a,b,c){a=new Date(1E3*Sb(a,b));z[c>>2]=a.getSeconds();z[c+4>>2]=a.getMinutes();z[c+8>>2]=a.getHours();z[c+12>>2]=a.getDate();z[c+16>>2]=a.getMonth();z[c+20>>2]=a.getFullYear()-1900;z[c+24>>2]=a.getDay();b=a.getFullYear();z[c+28>>2]=(0!==b%4||0===b%100&&0!==b%400?Ub:Tb)[a.getMonth()]+a.getDate()-1|0;z[c+36>>2]=-(60*a.getTimezoneOffset());b=(new Date(a.getFullYear(),6,1)).getTimezoneOffset();var e=(new Date(a.getFullYear(),0,1)).getTimezoneOffset();\nz[c+32>>2]=(b!=e&&a.getTimezoneOffset()==Math.min(e,b))|0},i:function(a,b,c,e,f,h,k,n){f=Sb(f,h);try{if(isNaN(f))return 61;var l=S(e);if(0!==(b&2)&&0===(c&2)&&2!==(l.flags&2097155))throw new N(2);if(1===(l.flags&2097155))throw new N(2);if(!l.Af.Xf)throw new N(43);var m=l.Af.Xf(l,a,f,b,c);var p=m.Bg;z[k>>2]=m.pg;B[n>>2]=p;return 0}catch(q){if(\"undefined\"==typeof U||\"ErrnoError\"!==q.name)throw q;return-q.Cf}},j:function(a,b,c,e,f,h,k){h=Sb(h,k);try{var n=S(f);if(c&2){if(32768!==(n.node.mode&61440))throw new N(43);\ne&2||n.Af.Yf&&n.Af.Yf(n,w.slice(a,a+b),h,b,e)}}catch(l){if(\"undefined\"==typeof U||\"ErrnoError\"!==l.name)throw l;return-l.Cf}},B:(a,b,c,e)=>{var f=(new Date).getFullYear(),h=(new Date(f,0,1)).getTimezoneOffset();f=(new Date(f,6,1)).getTimezoneOffset();B[a>>2]=60*Math.max(h,f);z[b>>2]=Number(h!=f);b=k=>{var n=Math.abs(k);return`UTC${0<=k?\"-\":\"+\"}${String(Math.floor(n/60)).padStart(2,\"0\")}${String(n%60).padStart(2,\"0\")}`};a=b(h);b=b(f);f<h?(K(a,w,c,17),K(b,w,e,17)):(K(a,w,e,17),K(b,w,c,17))},e:()=>Date.now(),\nd:()=>performance.now(),r:a=>{var b=w.length;a>>>=0;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var e=b*(1+.2/c);e=Math.min(e,a+100663296);var f=Math;e=Math.max(a,e);a:{f=(f.min.call(f,2147483648,e+(65536-e%65536)%65536)-oa.buffer.byteLength+65535)/65536;try{oa.grow(f);ta();var h=1;break a}catch(k){}h=void 0}if(h)return!0}return!1},D:(a,b)=>{var c=0;Xb().forEach((e,f)=>{var h=b+c;f=B[a+4*f>>2]=h;for(h=0;h<e.length;++h)v[f++]=e.charCodeAt(h);v[f]=0;c+=e.length+1});return 0},E:(a,b)=>{var c=Xb();\nB[a>>2]=c.length;var e=0;c.forEach(f=>e+=f.length+1);B[b>>2]=e;return 0},f:function(a){try{var b=S(a);if(null===b.Kf)throw new N(8);b.cg&&(b.cg=null);try{b.Af.close&&b.Af.close(b)}catch(c){throw c;}finally{kb[b.Kf]=null}b.Kf=null;return 0}catch(c){if(\"undefined\"==typeof U||\"ErrnoError\"!==c.name)throw c;return c.Cf}},s:function(a,b){try{var c=S(a);v[b]=c.Gf?2:P(c.mode)?3:40960===(c.mode&61440)?7:4;x[b+2>>1]=0;F=[0,(D=0,1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>\n0:0)];z[b+8>>2]=F[0];z[b+12>>2]=F[1];F=[0,(D=0,1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[b+16>>2]=F[0];z[b+20>>2]=F[1];return 0}catch(e){if(\"undefined\"==typeof U||\"ErrnoError\"!==e.name)throw e;return e.Cf}},z:function(a,b,c,e){try{a:{var f=S(a);a=b;for(var h,k=b=0;k<c;k++){var n=B[a>>2],l=B[a+4>>2];a+=8;var m=f,p=h,q=v;if(0>l||0>p)throw new N(28);if(null===m.Kf)throw new N(8);if(1===(m.flags&2097155))throw new N(8);if(P(m.node.mode))throw new N(31);\nif(!m.Af.read)throw new N(28);var t=\"undefined\"!=typeof p;if(!t)p=m.position;else if(!m.seekable)throw new N(70);var y=m.Af.read(m,q,n,l,p);t||(m.position+=y);var A=y;if(0>A){var G=-1;break a}b+=A;if(A<l)break;\"undefined\"!=typeof h&&(h+=A)}G=b}B[e>>2]=G;return 0}catch(E){if(\"undefined\"==typeof U||\"ErrnoError\"!==E.name)throw E;return E.Cf}},m:function(a,b,c,e,f){b=Sb(b,c);try{if(isNaN(b))return 61;var h=S(a);Kb(h,b,e);F=[h.position>>>0,(D=h.position,1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>\n0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[f>>2]=F[0];z[f+4>>2]=F[1];h.cg&&0===b&&0===e&&(h.cg=null);return 0}catch(k){if(\"undefined\"==typeof U||\"ErrnoError\"!==k.name)throw k;return k.Cf}},G:function(a){try{var b=S(a);return ad(c=>{var e=b.node.If;e.type.Cg?e.type.Cg(e,!1,f=>{f?c(29):c(0)}):c(0)})}catch(c){if(\"undefined\"==typeof U||\"ErrnoError\"!==c.name)throw c;return c.Cf}},v:function(a,b,c,e){try{a:{var f=S(a);a=b;for(var h,k=b=0;k<c;k++){var n=B[a>>2],l=B[a+4>>2];a+=8;var m=f,p=n,q=l,\nt=h,y=v;if(0>q||0>t)throw new N(28);if(null===m.Kf)throw new N(8);if(0===(m.flags&2097155))throw new N(8);if(P(m.node.mode))throw new N(31);if(!m.Af.write)throw new N(28);m.seekable&&m.flags&1024&&Kb(m,0,2);var A=\"undefined\"!=typeof t;if(!A)t=m.position;else if(!m.seekable)throw new N(70);var G=m.Af.write(m,y,p,q,t,void 0);A||(m.position+=G);var E=G;if(0>E){var M=-1;break a}b+=E;\"undefined\"!=typeof h&&(h+=E)}M=b}B[e>>2]=M;return 0}catch(L){if(\"undefined\"==typeof U||\"ErrnoError\"!==L.name)throw L;return L.Cf}},\nsa:Yb,P:Zb,ha:$b,ca:ac,Z:bc,la:cc,w:dc,g:ec,oa:fc,ja:gc,ea:hc,fa:ic,h:jc,l:kc,pa:lc,ra:mc,qa:nc,da:oc,ga:pc,ia:qc,na:rc,c:sc,ka:tc,ma:uc,H:function(a,b,c,e){(0,globalThis.__onTablesChanged)?.(a,b,c,e)},aa:vc,V:wc,$:xc,ba:yc,S:zc,U:Ac,Y:Bc,X:Cc,R:Dc,q:Ec,T:Fc,_:Gc,o:Hc,W:Ic,p:Jc},V=function(){function a(c){V=c.exports;V=Pc();oa=V.ta;ta();hd=V.pf;va.unshift(V.ua);za--;d.monitorRunDependencies?.(za);0==za&&(null!==Aa&&(clearInterval(Aa),Aa=null),Ba&&(c=Ba,Ba=null,c()));return V}var b={a:pd};za++;d.monitorRunDependencies?.(za);\nif(d.instantiateWasm)try{return d.instantiateWasm(b,a)}catch(c){r(`Module.instantiateWasm callback failed with error: ${c}`),ba(c)}Da||=d.locateFile?Ca(\"wa-sqlite-async.wasm\")?\"wa-sqlite-async.wasm\":d.locateFile?d.locateFile(\"wa-sqlite-async.wasm\",g):g+\"wa-sqlite-async.wasm\":(new URL(\"wa-sqlite-async.wasm\",import.meta.url)).href;Ha(b,function(c){a(c.instance)}).catch(ba);return{}}();d._sqlite3_auto_extension=a=>(d._sqlite3_auto_extension=V.va)(a);d._sqlite3_free=a=>(d._sqlite3_free=V.wa)(a);\nd._sqlite3_malloc=a=>(d._sqlite3_malloc=V.xa)(a);d._sqlite3_bind_blob=(a,b,c,e,f)=>(d._sqlite3_bind_blob=V.ya)(a,b,c,e,f);d._sqlite3_shutdown=()=>(d._sqlite3_shutdown=V.za)();d._sqlite3_bind_int=(a,b,c)=>(d._sqlite3_bind_int=V.Aa)(a,b,c);d._sqlite3_bind_int64=(a,b,c,e)=>(d._sqlite3_bind_int64=V.Ba)(a,b,c,e);d._sqlite3_bind_double=(a,b,c)=>(d._sqlite3_bind_double=V.Ca)(a,b,c);d._sqlite3_bind_null=(a,b)=>(d._sqlite3_bind_null=V.Da)(a,b);d._sqlite3_clear_bindings=a=>(d._sqlite3_clear_bindings=V.Ea)(a);\nd._sqlite3_bind_text=(a,b,c,e,f)=>(d._sqlite3_bind_text=V.Fa)(a,b,c,e,f);d._sqlite3_bind_pointer=(a,b,c,e,f)=>(d._sqlite3_bind_pointer=V.Ga)(a,b,c,e,f);d._sqlite3_bind_value=(a,b,c)=>(d._sqlite3_bind_value=V.Ha)(a,b,c);d._sqlite3_close=a=>(d._sqlite3_close=V.Ia)(a);d._sqlite3_vtab_config=(a,b,c)=>(d._sqlite3_vtab_config=V.Ja)(a,b,c);d._sqlite3_commit_hook=(a,b,c)=>(d._sqlite3_commit_hook=V.Ka)(a,b,c);d._sqlite3_column_type=(a,b)=>(d._sqlite3_column_type=V.La)(a,b);\nd._sqlite3_column_count=a=>(d._sqlite3_column_count=V.Ma)(a);d._sqlite3_column_text=(a,b)=>(d._sqlite3_column_text=V.Na)(a,b);d._sqlite3_column_blob=(a,b)=>(d._sqlite3_column_blob=V.Oa)(a,b);d._sqlite3_column_bytes=(a,b)=>(d._sqlite3_column_bytes=V.Pa)(a,b);d._sqlite3_column_value=(a,b)=>(d._sqlite3_column_value=V.Qa)(a,b);d._sqlite3_column_double=(a,b)=>(d._sqlite3_column_double=V.Ra)(a,b);d._sqlite3_column_int=(a,b)=>(d._sqlite3_column_int=V.Sa)(a,b);\nd._sqlite3_column_int64=(a,b)=>(d._sqlite3_column_int64=V.Ta)(a,b);d._sqlite3_column_name=(a,b)=>(d._sqlite3_column_name=V.Ua)(a,b);d._sqlite3_context_db_handle=a=>(d._sqlite3_context_db_handle=V.Va)(a);d._sqlite3_create_function_v2=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_create_function_v2=V.Wa)(a,b,c,e,f,h,k,n,l);d._sqlite3_create_module_v2=(a,b,c,e,f)=>(d._sqlite3_create_module_v2=V.Xa)(a,b,c,e,f);d._sqlite3_declare_vtab=(a,b)=>(d._sqlite3_declare_vtab=V.Ya)(a,b);\nd._sqlite3_errcode=a=>(d._sqlite3_errcode=V.Za)(a);d._sqlite3_errmsg=a=>(d._sqlite3_errmsg=V._a)(a);d._sqlite3_exec=(a,b,c,e,f)=>(d._sqlite3_exec=V.$a)(a,b,c,e,f);d._sqlite3_finalize=a=>(d._sqlite3_finalize=V.ab)(a);d._sqlite3_get_auxdata=(a,b)=>(d._sqlite3_get_auxdata=V.bb)(a,b);d._sqlite3_next_stmt=(a,b)=>(d._sqlite3_next_stmt=V.cb)(a,b);d._sqlite3_open=(a,b)=>(d._sqlite3_open=V.db)(a,b);d._sqlite3_prepare_v2=(a,b,c,e,f)=>(d._sqlite3_prepare_v2=V.eb)(a,b,c,e,f);\nd._sqlite3_prepare_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare_v3=V.fb)(a,b,c,e,f,h);d._sqlite3_randomness=(a,b)=>(d._sqlite3_randomness=V.gb)(a,b);d._sqlite3_result_int=(a,b)=>(d._sqlite3_result_int=V.hb)(a,b);d._sqlite3_result_blob=(a,b,c,e)=>(d._sqlite3_result_blob=V.ib)(a,b,c,e);d._sqlite3_result_int64=(a,b,c)=>(d._sqlite3_result_int64=V.jb)(a,b,c);d._sqlite3_result_double=(a,b)=>(d._sqlite3_result_double=V.kb)(a,b);d._sqlite3_result_null=a=>(d._sqlite3_result_null=V.lb)(a);\nd._sqlite3_result_pointer=(a,b,c,e)=>(d._sqlite3_result_pointer=V.mb)(a,b,c,e);d._sqlite3_result_error=(a,b,c)=>(d._sqlite3_result_error=V.nb)(a,b,c);d._sqlite3_result_error_code=(a,b)=>(d._sqlite3_result_error_code=V.ob)(a,b);d._sqlite3_result_value=(a,b)=>(d._sqlite3_result_value=V.pb)(a,b);d._sqlite3_result_text=(a,b,c,e)=>(d._sqlite3_result_text=V.qb)(a,b,c,e);d._sqlite3_result_subtype=(a,b)=>(d._sqlite3_result_subtype=V.rb)(a,b);\nd._sqlite3_set_authorizer=(a,b,c)=>(d._sqlite3_set_authorizer=V.sb)(a,b,c);d._sqlite3_set_auxdata=(a,b,c,e)=>(d._sqlite3_set_auxdata=V.tb)(a,b,c,e);d._sqlite3_sql=a=>(d._sqlite3_sql=V.ub)(a);d._sqlite3_reset=a=>(d._sqlite3_reset=V.vb)(a);d._sqlite3_value_text=a=>(d._sqlite3_value_text=V.wb)(a);d._sqlite3_value_type=a=>(d._sqlite3_value_type=V.xb)(a);d._sqlite3_value_bytes=a=>(d._sqlite3_value_bytes=V.yb)(a);d._sqlite3_value_blob=a=>(d._sqlite3_value_blob=V.zb)(a);\nd._sqlite3_value_int=a=>(d._sqlite3_value_int=V.Ab)(a);d._sqlite3_value_int64=a=>(d._sqlite3_value_int64=V.Bb)(a);d._sqlite3_value_double=a=>(d._sqlite3_value_double=V.Cb)(a);d._sqlite3_value_pointer=(a,b)=>(d._sqlite3_value_pointer=V.Db)(a,b);d._sqlite3_vtab_distinct=a=>(d._sqlite3_vtab_distinct=V.Eb)(a);d._sqlite3_get_autocommit=a=>(d._sqlite3_get_autocommit=V.Fb)(a);d._sqlite3_step=a=>(d._sqlite3_step=V.Gb)(a);d._sqlite3_status64=(a,b,c,e)=>(d._sqlite3_status64=V.Hb)(a,b,c,e);\nd._sqlite3_status=(a,b,c,e)=>(d._sqlite3_status=V.Ib)(a,b,c,e);d._sqlite3_db_status=(a,b,c,e,f)=>(d._sqlite3_db_status=V.Jb)(a,b,c,e,f);d._sqlite3_msize=a=>(d._sqlite3_msize=V.Kb)(a);d._sqlite3_vfs_find=a=>(d._sqlite3_vfs_find=V.Lb)(a);d._sqlite3_vfs_register=(a,b)=>(d._sqlite3_vfs_register=V.Mb)(a,b);d._sqlite3_vfs_unregister=a=>(d._sqlite3_vfs_unregister=V.Nb)(a);d._sqlite3_release_memory=a=>(d._sqlite3_release_memory=V.Ob)(a);\nd._sqlite3_soft_heap_limit64=(a,b)=>(d._sqlite3_soft_heap_limit64=V.Pb)(a,b);d._sqlite3_memory_used=()=>(d._sqlite3_memory_used=V.Qb)();d._sqlite3_hard_heap_limit64=(a,b)=>(d._sqlite3_hard_heap_limit64=V.Rb)(a,b);d._sqlite3_memory_highwater=a=>(d._sqlite3_memory_highwater=V.Sb)(a);d._sqlite3_malloc64=(a,b)=>(d._sqlite3_malloc64=V.Tb)(a,b);d._sqlite3_realloc=(a,b)=>(d._sqlite3_realloc=V.Ub)(a,b);d._sqlite3_realloc64=(a,b,c)=>(d._sqlite3_realloc64=V.Vb)(a,b,c);\nd._sqlite3_str_vappendf=(a,b,c)=>(d._sqlite3_str_vappendf=V.Wb)(a,b,c);d._sqlite3_str_append=(a,b,c)=>(d._sqlite3_str_append=V.Xb)(a,b,c);d._sqlite3_str_appendchar=(a,b,c)=>(d._sqlite3_str_appendchar=V.Yb)(a,b,c);d._sqlite3_str_appendall=(a,b)=>(d._sqlite3_str_appendall=V.Zb)(a,b);d._sqlite3_str_appendf=(a,b,c)=>(d._sqlite3_str_appendf=V._b)(a,b,c);d._sqlite3_str_finish=a=>(d._sqlite3_str_finish=V.$b)(a);d._sqlite3_str_errcode=a=>(d._sqlite3_str_errcode=V.ac)(a);\nd._sqlite3_str_length=a=>(d._sqlite3_str_length=V.bc)(a);d._sqlite3_str_value=a=>(d._sqlite3_str_value=V.cc)(a);d._sqlite3_str_reset=a=>(d._sqlite3_str_reset=V.dc)(a);d._sqlite3_str_new=a=>(d._sqlite3_str_new=V.ec)(a);d._sqlite3_vmprintf=(a,b)=>(d._sqlite3_vmprintf=V.fc)(a,b);d._sqlite3_mprintf=(a,b)=>(d._sqlite3_mprintf=V.gc)(a,b);d._sqlite3_vsnprintf=(a,b,c,e)=>(d._sqlite3_vsnprintf=V.hc)(a,b,c,e);d._sqlite3_snprintf=(a,b,c,e)=>(d._sqlite3_snprintf=V.ic)(a,b,c,e);\nd._sqlite3_log=(a,b,c)=>(d._sqlite3_log=V.jc)(a,b,c);d._sqlite3_stricmp=(a,b)=>(d._sqlite3_stricmp=V.kc)(a,b);d._sqlite3_strnicmp=(a,b,c)=>(d._sqlite3_strnicmp=V.lc)(a,b,c);d._sqlite3_os_init=()=>(d._sqlite3_os_init=V.mc)();d._sqlite3_os_end=()=>(d._sqlite3_os_end=V.nc)();d._sqlite3_serialize=(a,b,c,e)=>(d._sqlite3_serialize=V.oc)(a,b,c,e);d._sqlite3_deserialize=(a,b,c,e,f,h,k,n)=>(d._sqlite3_deserialize=V.pc)(a,b,c,e,f,h,k,n);d._sqlite3_database_file_object=a=>(d._sqlite3_database_file_object=V.qc)(a);\nd._sqlite3_backup_init=(a,b,c,e)=>(d._sqlite3_backup_init=V.rc)(a,b,c,e);d._sqlite3_backup_step=(a,b)=>(d._sqlite3_backup_step=V.sc)(a,b);d._sqlite3_backup_finish=a=>(d._sqlite3_backup_finish=V.tc)(a);d._sqlite3_backup_remaining=a=>(d._sqlite3_backup_remaining=V.uc)(a);d._sqlite3_backup_pagecount=a=>(d._sqlite3_backup_pagecount=V.vc)(a);d._sqlite3_value_bytes16=a=>(d._sqlite3_value_bytes16=V.wc)(a);d._sqlite3_value_subtype=a=>(d._sqlite3_value_subtype=V.xc)(a);\nd._sqlite3_value_text16=a=>(d._sqlite3_value_text16=V.yc)(a);d._sqlite3_value_text16be=a=>(d._sqlite3_value_text16be=V.zc)(a);d._sqlite3_value_text16le=a=>(d._sqlite3_value_text16le=V.Ac)(a);d._sqlite3_value_encoding=a=>(d._sqlite3_value_encoding=V.Bc)(a);d._sqlite3_value_nochange=a=>(d._sqlite3_value_nochange=V.Cc)(a);d._sqlite3_value_frombind=a=>(d._sqlite3_value_frombind=V.Dc)(a);d._sqlite3_value_dup=a=>(d._sqlite3_value_dup=V.Ec)(a);d._sqlite3_value_free=a=>(d._sqlite3_value_free=V.Fc)(a);\nd._sqlite3_result_blob64=(a,b,c,e,f)=>(d._sqlite3_result_blob64=V.Gc)(a,b,c,e,f);d._sqlite3_result_error16=(a,b,c)=>(d._sqlite3_result_error16=V.Hc)(a,b,c);d._sqlite3_result_text64=(a,b,c,e,f,h)=>(d._sqlite3_result_text64=V.Ic)(a,b,c,e,f,h);d._sqlite3_result_text16=(a,b,c,e)=>(d._sqlite3_result_text16=V.Jc)(a,b,c,e);d._sqlite3_result_text16be=(a,b,c,e)=>(d._sqlite3_result_text16be=V.Kc)(a,b,c,e);d._sqlite3_result_text16le=(a,b,c,e)=>(d._sqlite3_result_text16le=V.Lc)(a,b,c,e);\nd._sqlite3_result_error_toobig=a=>(d._sqlite3_result_error_toobig=V.Mc)(a);d._sqlite3_result_zeroblob=(a,b)=>(d._sqlite3_result_zeroblob=V.Nc)(a,b);d._sqlite3_result_zeroblob64=(a,b,c)=>(d._sqlite3_result_zeroblob64=V.Oc)(a,b,c);d._sqlite3_result_error_nomem=a=>(d._sqlite3_result_error_nomem=V.Pc)(a);d._sqlite3_user_data=a=>(d._sqlite3_user_data=V.Qc)(a);d._sqlite3_vtab_nochange=a=>(d._sqlite3_vtab_nochange=V.Rc)(a);d._sqlite3_vtab_in_first=(a,b)=>(d._sqlite3_vtab_in_first=V.Sc)(a,b);\nd._sqlite3_vtab_in_next=(a,b)=>(d._sqlite3_vtab_in_next=V.Tc)(a,b);d._sqlite3_aggregate_context=(a,b)=>(d._sqlite3_aggregate_context=V.Uc)(a,b);d._sqlite3_data_count=a=>(d._sqlite3_data_count=V.Vc)(a);d._sqlite3_column_bytes16=(a,b)=>(d._sqlite3_column_bytes16=V.Wc)(a,b);d._sqlite3_column_text16=(a,b)=>(d._sqlite3_column_text16=V.Xc)(a,b);d._sqlite3_column_name16=(a,b)=>(d._sqlite3_column_name16=V.Yc)(a,b);d._sqlite3_bind_blob64=(a,b,c,e,f,h)=>(d._sqlite3_bind_blob64=V.Zc)(a,b,c,e,f,h);\nd._sqlite3_bind_text64=(a,b,c,e,f,h,k)=>(d._sqlite3_bind_text64=V._c)(a,b,c,e,f,h,k);d._sqlite3_bind_text16=(a,b,c,e,f)=>(d._sqlite3_bind_text16=V.$c)(a,b,c,e,f);d._sqlite3_bind_zeroblob=(a,b,c)=>(d._sqlite3_bind_zeroblob=V.ad)(a,b,c);d._sqlite3_bind_zeroblob64=(a,b,c,e)=>(d._sqlite3_bind_zeroblob64=V.bd)(a,b,c,e);d._sqlite3_bind_parameter_count=a=>(d._sqlite3_bind_parameter_count=V.cd)(a);d._sqlite3_bind_parameter_name=(a,b)=>(d._sqlite3_bind_parameter_name=V.dd)(a,b);\nd._sqlite3_bind_parameter_index=(a,b)=>(d._sqlite3_bind_parameter_index=V.ed)(a,b);d._sqlite3_db_handle=a=>(d._sqlite3_db_handle=V.fd)(a);d._sqlite3_stmt_readonly=a=>(d._sqlite3_stmt_readonly=V.gd)(a);d._sqlite3_stmt_isexplain=a=>(d._sqlite3_stmt_isexplain=V.hd)(a);d._sqlite3_stmt_explain=(a,b)=>(d._sqlite3_stmt_explain=V.id)(a,b);d._sqlite3_stmt_busy=a=>(d._sqlite3_stmt_busy=V.jd)(a);d._sqlite3_stmt_status=(a,b,c)=>(d._sqlite3_stmt_status=V.kd)(a,b,c);\nd._sqlite3_expanded_sql=a=>(d._sqlite3_expanded_sql=V.ld)(a);d._sqlite3_value_numeric_type=a=>(d._sqlite3_value_numeric_type=V.md)(a);d._sqlite3_blob_open=(a,b,c,e,f,h,k,n)=>(d._sqlite3_blob_open=V.nd)(a,b,c,e,f,h,k,n);d._sqlite3_blob_close=a=>(d._sqlite3_blob_close=V.od)(a);d._sqlite3_blob_read=(a,b,c,e)=>(d._sqlite3_blob_read=V.pd)(a,b,c,e);d._sqlite3_blob_write=(a,b,c,e)=>(d._sqlite3_blob_write=V.qd)(a,b,c,e);d._sqlite3_blob_bytes=a=>(d._sqlite3_blob_bytes=V.rd)(a);\nd._sqlite3_blob_reopen=(a,b,c)=>(d._sqlite3_blob_reopen=V.sd)(a,b,c);d._sqlite3_strglob=(a,b)=>(d._sqlite3_strglob=V.td)(a,b);d._sqlite3_strlike=(a,b,c)=>(d._sqlite3_strlike=V.ud)(a,b,c);d._sqlite3_cancel_auto_extension=a=>(d._sqlite3_cancel_auto_extension=V.vd)(a);d._sqlite3_reset_auto_extension=()=>(d._sqlite3_reset_auto_extension=V.wd)();d._sqlite3_prepare=(a,b,c,e,f)=>(d._sqlite3_prepare=V.xd)(a,b,c,e,f);d._sqlite3_prepare16=(a,b,c,e,f)=>(d._sqlite3_prepare16=V.yd)(a,b,c,e,f);\nd._sqlite3_prepare16_v2=(a,b,c,e,f)=>(d._sqlite3_prepare16_v2=V.zd)(a,b,c,e,f);d._sqlite3_prepare16_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare16_v3=V.Ad)(a,b,c,e,f,h);d._sqlite3_get_table=(a,b,c,e,f,h)=>(d._sqlite3_get_table=V.Bd)(a,b,c,e,f,h);d._sqlite3_free_table=a=>(d._sqlite3_free_table=V.Cd)(a);d._sqlite3_create_module=(a,b,c,e)=>(d._sqlite3_create_module=V.Dd)(a,b,c,e);d._sqlite3_drop_modules=(a,b)=>(d._sqlite3_drop_modules=V.Ed)(a,b);d._sqlite3_vtab_on_conflict=a=>(d._sqlite3_vtab_on_conflict=V.Fd)(a);\nd._sqlite3_vtab_collation=(a,b)=>(d._sqlite3_vtab_collation=V.Gd)(a,b);d._sqlite3_vtab_in=(a,b,c)=>(d._sqlite3_vtab_in=V.Hd)(a,b,c);d._sqlite3_vtab_rhs_value=(a,b,c)=>(d._sqlite3_vtab_rhs_value=V.Id)(a,b,c);d._sqlite3_keyword_name=(a,b,c)=>(d._sqlite3_keyword_name=V.Jd)(a,b,c);d._sqlite3_keyword_count=()=>(d._sqlite3_keyword_count=V.Kd)();d._sqlite3_keyword_check=(a,b)=>(d._sqlite3_keyword_check=V.Ld)(a,b);d._sqlite3_complete=a=>(d._sqlite3_complete=V.Md)(a);\nd._sqlite3_complete16=a=>(d._sqlite3_complete16=V.Nd)(a);d._sqlite3_libversion=()=>(d._sqlite3_libversion=V.Od)();d._sqlite3_libversion_number=()=>(d._sqlite3_libversion_number=V.Pd)();d._sqlite3_threadsafe=()=>(d._sqlite3_threadsafe=V.Qd)();d._sqlite3_initialize=()=>(d._sqlite3_initialize=V.Rd)();d._sqlite3_config=(a,b)=>(d._sqlite3_config=V.Sd)(a,b);d._sqlite3_db_mutex=a=>(d._sqlite3_db_mutex=V.Td)(a);d._sqlite3_db_release_memory=a=>(d._sqlite3_db_release_memory=V.Ud)(a);\nd._sqlite3_db_cacheflush=a=>(d._sqlite3_db_cacheflush=V.Vd)(a);d._sqlite3_db_config=(a,b,c)=>(d._sqlite3_db_config=V.Wd)(a,b,c);d._sqlite3_last_insert_rowid=a=>(d._sqlite3_last_insert_rowid=V.Xd)(a);d._sqlite3_set_last_insert_rowid=(a,b,c)=>(d._sqlite3_set_last_insert_rowid=V.Yd)(a,b,c);d._sqlite3_changes64=a=>(d._sqlite3_changes64=V.Zd)(a);d._sqlite3_changes=a=>(d._sqlite3_changes=V._d)(a);d._sqlite3_total_changes64=a=>(d._sqlite3_total_changes64=V.$d)(a);\nd._sqlite3_total_changes=a=>(d._sqlite3_total_changes=V.ae)(a);d._sqlite3_txn_state=(a,b)=>(d._sqlite3_txn_state=V.be)(a,b);d._sqlite3_close_v2=a=>(d._sqlite3_close_v2=V.ce)(a);d._sqlite3_busy_handler=(a,b,c)=>(d._sqlite3_busy_handler=V.de)(a,b,c);d._sqlite3_progress_handler=(a,b,c,e)=>(d._sqlite3_progress_handler=V.ee)(a,b,c,e);d._sqlite3_busy_timeout=(a,b)=>(d._sqlite3_busy_timeout=V.fe)(a,b);d._sqlite3_interrupt=a=>(d._sqlite3_interrupt=V.ge)(a);\nd._sqlite3_is_interrupted=a=>(d._sqlite3_is_interrupted=V.he)(a);d._sqlite3_create_function=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function=V.ie)(a,b,c,e,f,h,k,n);d._sqlite3_create_window_function=(a,b,c,e,f,h,k,n,l,m)=>(d._sqlite3_create_window_function=V.je)(a,b,c,e,f,h,k,n,l,m);d._sqlite3_create_function16=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function16=V.ke)(a,b,c,e,f,h,k,n);d._sqlite3_overload_function=(a,b,c)=>(d._sqlite3_overload_function=V.le)(a,b,c);\nd._sqlite3_trace_v2=(a,b,c,e)=>(d._sqlite3_trace_v2=V.me)(a,b,c,e);d._sqlite3_update_hook=(a,b,c)=>(d._sqlite3_update_hook=V.ne)(a,b,c);d._sqlite3_rollback_hook=(a,b,c)=>(d._sqlite3_rollback_hook=V.oe)(a,b,c);d._sqlite3_autovacuum_pages=(a,b,c,e)=>(d._sqlite3_autovacuum_pages=V.pe)(a,b,c,e);d._sqlite3_wal_autocheckpoint=(a,b)=>(d._sqlite3_wal_autocheckpoint=V.qe)(a,b);d._sqlite3_wal_hook=(a,b,c)=>(d._sqlite3_wal_hook=V.re)(a,b,c);\nd._sqlite3_wal_checkpoint_v2=(a,b,c,e,f)=>(d._sqlite3_wal_checkpoint_v2=V.se)(a,b,c,e,f);d._sqlite3_wal_checkpoint=(a,b)=>(d._sqlite3_wal_checkpoint=V.te)(a,b);d._sqlite3_error_offset=a=>(d._sqlite3_error_offset=V.ue)(a);d._sqlite3_errmsg16=a=>(d._sqlite3_errmsg16=V.ve)(a);d._sqlite3_extended_errcode=a=>(d._sqlite3_extended_errcode=V.we)(a);d._sqlite3_system_errno=a=>(d._sqlite3_system_errno=V.xe)(a);d._sqlite3_errstr=a=>(d._sqlite3_errstr=V.ye)(a);\nd._sqlite3_limit=(a,b,c)=>(d._sqlite3_limit=V.ze)(a,b,c);d._sqlite3_open_v2=(a,b,c,e)=>(d._sqlite3_open_v2=V.Ae)(a,b,c,e);d._sqlite3_open16=(a,b)=>(d._sqlite3_open16=V.Be)(a,b);d._sqlite3_create_collation=(a,b,c,e,f)=>(d._sqlite3_create_collation=V.Ce)(a,b,c,e,f);d._sqlite3_create_collation_v2=(a,b,c,e,f,h)=>(d._sqlite3_create_collation_v2=V.De)(a,b,c,e,f,h);d._sqlite3_create_collation16=(a,b,c,e,f)=>(d._sqlite3_create_collation16=V.Ee)(a,b,c,e,f);\nd._sqlite3_collation_needed=(a,b,c)=>(d._sqlite3_collation_needed=V.Fe)(a,b,c);d._sqlite3_collation_needed16=(a,b,c)=>(d._sqlite3_collation_needed16=V.Ge)(a,b,c);d._sqlite3_get_clientdata=(a,b)=>(d._sqlite3_get_clientdata=V.He)(a,b);d._sqlite3_set_clientdata=(a,b,c,e)=>(d._sqlite3_set_clientdata=V.Ie)(a,b,c,e);d._sqlite3_table_column_metadata=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_table_column_metadata=V.Je)(a,b,c,e,f,h,k,n,l);d._sqlite3_sleep=a=>(d._sqlite3_sleep=V.Ke)(a);\nd._sqlite3_extended_result_codes=(a,b)=>(d._sqlite3_extended_result_codes=V.Le)(a,b);d._sqlite3_file_control=(a,b,c,e)=>(d._sqlite3_file_control=V.Me)(a,b,c,e);d._sqlite3_test_control=(a,b)=>(d._sqlite3_test_control=V.Ne)(a,b);d._sqlite3_create_filename=(a,b,c,e,f)=>(d._sqlite3_create_filename=V.Oe)(a,b,c,e,f);d._sqlite3_free_filename=a=>(d._sqlite3_free_filename=V.Pe)(a);d._sqlite3_uri_parameter=(a,b)=>(d._sqlite3_uri_parameter=V.Qe)(a,b);d._sqlite3_uri_key=(a,b)=>(d._sqlite3_uri_key=V.Re)(a,b);\nd._sqlite3_uri_boolean=(a,b,c)=>(d._sqlite3_uri_boolean=V.Se)(a,b,c);d._sqlite3_uri_int64=(a,b,c,e)=>(d._sqlite3_uri_int64=V.Te)(a,b,c,e);d._sqlite3_filename_database=a=>(d._sqlite3_filename_database=V.Ue)(a);d._sqlite3_filename_journal=a=>(d._sqlite3_filename_journal=V.Ve)(a);d._sqlite3_filename_wal=a=>(d._sqlite3_filename_wal=V.We)(a);d._sqlite3_db_name=(a,b)=>(d._sqlite3_db_name=V.Xe)(a,b);d._sqlite3_db_filename=(a,b)=>(d._sqlite3_db_filename=V.Ye)(a,b);\nd._sqlite3_db_readonly=(a,b)=>(d._sqlite3_db_readonly=V.Ze)(a,b);d._sqlite3_compileoption_used=a=>(d._sqlite3_compileoption_used=V._e)(a);d._sqlite3_compileoption_get=a=>(d._sqlite3_compileoption_get=V.$e)(a);d._sqlite3_sourceid=()=>(d._sqlite3_sourceid=V.af)();var $c=d._malloc=a=>($c=d._malloc=V.bf)(a),ed=d._free=a=>(ed=d._free=V.cf)(a);d._RegisterExtensionFunctions=a=>(d._RegisterExtensionFunctions=V.df)(a);d._set_authorizer=a=>(d._set_authorizer=V.ef)(a);\nd._create_function=(a,b,c,e,f,h)=>(d._create_function=V.ff)(a,b,c,e,f,h);d._on_tables_changed=(a,b,c,e,f,h)=>(d._on_tables_changed=V.gf)(a,b,c,e,f,h);d._register_table_update_hook=a=>(d._register_table_update_hook=V.hf)(a);d._create_module=(a,b,c,e)=>(d._create_module=V.jf)(a,b,c,e);d._progress_handler=(a,b)=>(d._progress_handler=V.kf)(a,b);d._register_vfs=(a,b,c,e)=>(d._register_vfs=V.lf)(a,b,c,e);d._getSqliteFree=()=>(d._getSqliteFree=V.mf)();var qd=d._main=(a,b)=>(qd=d._main=V.nf)(a,b);\nd._setup_powersync=()=>(d._setup_powersync=V.of)();var gb=(a,b)=>(gb=V.qf)(a,b),rd=()=>(rd=V.rf)(),ld=a=>(ld=V.sf)(a),md=a=>(md=V.tf)(a),nd=()=>(nd=V.uf)(),cd=a=>(cd=V.vf)(a),Rc=()=>(Rc=V.wf)(),bd=a=>(bd=V.xf)(a),dd=()=>(dd=V.yf)();d._sqlite3_version=46872;d.getTempRet0=()=>rd();d.ccall=Z;d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>\"number\"===h||\"boolean\"===h);return\"string\"!==b&&f&&!e?d[\"_\"+a]:(...h)=>Z(a,b,c,h,e)};\nd.addFunction=(a,b)=>{if(!jd){jd=new WeakMap;var c=hd.length;if(jd)for(var e=0;e<0+c;e++){var f=hd.get(e);f&&jd.set(f,e)}}if(c=jd.get(a)||0)return c;if(kd.length)c=kd.pop();else{try{hd.grow(1)}catch(n){if(!(n instanceof RangeError))throw n;throw\"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.\";}c=hd.length-1}try{hd.set(c,a)}catch(n){if(!(n instanceof TypeError))throw n;if(\"function\"==typeof WebAssembly.Function){e=WebAssembly.Function;f={i:\"i32\",j:\"i64\",f:\"f32\",d:\"f64\",e:\"externref\",p:\"i32\"};for(var h=\n{parameters:[],results:\"v\"==b[0]?[]:[f[b[0]]]},k=1;k<b.length;++k)h.parameters.push(f[b[k]]);b=new e(h,a)}else{e=[1];f=b.slice(0,1);b=b.slice(1);h={i:127,p:127,j:126,f:125,d:124,e:111};e.push(96);k=b.length;128>k?e.push(k):e.push(k%128|128,k>>7);for(k=0;k<b.length;++k)e.push(h[b[k]]);\"v\"==f?e.push(0):e.push(1,h[f]);b=[0,97,115,109,1,0,0,0,1];f=e.length;128>f?b.push(f):b.push(f%128|128,f>>7);b.push(...e);b.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);b=new WebAssembly.Module(new Uint8Array(b));b=(new WebAssembly.Instance(b,\n{e:{f:a}})).exports.f}hd.set(c,b)}jd.set(a,c);return c};d.setValue=I;d.getValue=H;d.UTF8ToString=(a,b)=>a?J(w,a,b):\"\";d.stringToUTF8=(a,b,c)=>K(a,w,b,c);d.lengthBytesUTF8=Ua;d.intArrayFromString=Va;d.intArrayToString=function(a){for(var b=[],c=0;c<a.length;c++){var e=a[c];255<e&&(e&=255);b.push(String.fromCharCode(e))}return b.join(\"\")};d.AsciiToString=a=>{for(var b=\"\";;){var c=w[a++];if(!c)return b;b+=String.fromCharCode(c)}};\nd.UTF16ToString=(a,b)=>{var c=a>>1;for(var e=c+b/2;!(c>=e)&&qa[c];)++c;c<<=1;if(32<c-a&&od)return od.decode(w.subarray(a,c));c=\"\";for(e=0;!(e>=b/2);++e){var f=x[a+2*e>>1];if(0==f)break;c+=String.fromCharCode(f)}return c};d.stringToUTF16=(a,b,c)=>{c??=2147483647;if(2>c)return 0;c-=2;var e=b;c=c<2*a.length?c/2:a.length;for(var f=0;f<c;++f)x[b>>1]=a.charCodeAt(f),b+=2;x[b>>1]=0;return b-e};\nd.UTF32ToString=(a,b)=>{for(var c=0,e=\"\";!(c>=b/4);){var f=z[a+4*c>>2];if(0==f)break;++c;65536<=f?(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023)):e+=String.fromCharCode(f)}return e};d.stringToUTF32=(a,b,c)=>{c??=2147483647;if(4>c)return 0;var e=b;c=e+c-4;for(var f=0;f<a.length;++f){var h=a.charCodeAt(f);if(55296<=h&&57343>=h){var k=a.charCodeAt(++f);h=65536+((h&1023)<<10)|k&1023}z[b>>2]=h;b+=4;if(b+4>c)break}z[b>>2]=0;return b-e};d.writeArrayToMemory=(a,b)=>{v.set(a,b)};var sd;\nBa=function td(){sd||ud();sd||(Ba=td)};\nfunction ud(){function a(){if(!sd&&(sd=!0,d.calledRun=!0,!u)){d.noFSInit||Lb||(Lb=!0,d.stdin=d.stdin,d.stdout=d.stdout,d.stderr=d.stderr,d.stdin?Mb(\"stdin\",d.stdin):Cb(\"/dev/tty\",\"/dev/stdin\"),d.stdout?Mb(\"stdout\",null,d.stdout):Cb(\"/dev/tty\",\"/dev/stdout\"),d.stderr?Mb(\"stderr\",null,d.stderr):Cb(\"/dev/tty1\",\"/dev/stderr\"),Ib(\"/dev/stdin\",0),Ib(\"/dev/stdout\",1),Ib(\"/dev/stderr\",1));mb=!1;Ja(va);Ja(wa);aa(d);d.onRuntimeInitialized?.();if(vd){var b=qd;try{var c=b(0,0);pa=c;Lc(c)}catch(e){Mc(e)}}if(d.postRun)for(\"function\"==\ntypeof d.postRun&&(d.postRun=[d.postRun]);d.postRun.length;)b=d.postRun.shift(),xa.unshift(b);Ja(xa)}}if(!(0<za)){if(d.preRun)for(\"function\"==typeof d.preRun&&(d.preRun=[d.preRun]);d.preRun.length;)ya();Ja(ua);0<za||(d.setStatus?(d.setStatus(\"Running...\"),setTimeout(function(){setTimeout(function(){d.setStatus(\"\")},1);a()},1)):a())}}if(d.preInit)for(\"function\"==typeof d.preInit&&(d.preInit=[d.preInit]);0<d.preInit.length;)d.preInit.pop()();var vd=!0;d.noInitialRun&&(vd=!1);ud();moduleRtn=ca;\n\n\n return moduleRtn;\n}\n);\n})();\nexport default Module;\n"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"worker/node_modules_journeyapps_wa-sqlite_dist_wa-sqlite-async_mjs.umd.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://sdk_web/../../node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite-async.mjs"],"sourcesContent":["\nvar Module = (() => {\n var _scriptName = import.meta.url;\n \n return (\nfunction(moduleArg = {}) {\n var moduleRtn;\n\nvar d=moduleArg,aa,ba,ca=new Promise((a,b)=>{aa=a;ba=b}),da=\"object\"==typeof window,ea=\"function\"==typeof importScripts,fa=Object.assign({},d),ha=\"./this.program\",ia=(a,b)=>{throw b;},g=\"\",ka,la;\nif(da||ea)ea?g=self.location.href:\"undefined\"!=typeof document&&document.currentScript&&(g=document.currentScript.src),_scriptName&&(g=_scriptName),g.startsWith(\"blob:\")?g=\"\":g=g.substr(0,g.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1),ea&&(la=a=>{var b=new XMLHttpRequest;b.open(\"GET\",a,!1);b.responseType=\"arraybuffer\";b.send(null);return new Uint8Array(b.response)}),ka=a=>fetch(a,{credentials:\"same-origin\"}).then(b=>b.ok?b.arrayBuffer():Promise.reject(Error(b.status+\" : \"+b.url)));\nvar ma=d.print||console.log.bind(console),r=d.printErr||console.error.bind(console);Object.assign(d,fa);fa=null;d.thisProgram&&(ha=d.thisProgram);d.quit&&(ia=d.quit);var na;d.wasmBinary&&(na=d.wasmBinary);var oa,u=!1,pa,v,w,x,qa,z,B,ra,sa;\nfunction ta(){var a=oa.buffer;d.HEAP8=v=new Int8Array(a);d.HEAP16=x=new Int16Array(a);d.HEAPU8=w=new Uint8Array(a);d.HEAPU16=qa=new Uint16Array(a);d.HEAP32=z=new Int32Array(a);d.HEAPU32=B=new Uint32Array(a);d.HEAPF32=ra=new Float32Array(a);d.HEAPF64=sa=new Float64Array(a)}var ua=[],va=[],wa=[],xa=[];function ya(){var a=d.preRun.shift();ua.unshift(a)}var za=0,Aa=null,Ba=null;\nfunction C(a){d.onAbort?.(a);a=\"Aborted(\"+a+\")\";r(a);u=!0;pa=1;a=new WebAssembly.RuntimeError(a+\". Build with -sASSERTIONS for more info.\");ba(a);throw a;}var Ca=a=>a.startsWith(\"data:application/octet-stream;base64,\"),Da;function Ea(a){if(a==Da&&na)return new Uint8Array(na);if(la)return la(a);throw\"both async and sync fetching of the wasm failed\";}function Fa(a){return na?Promise.resolve().then(()=>Ea(a)):ka(a).then(b=>new Uint8Array(b),()=>Ea(a))}\nfunction Ga(a,b,c){return Fa(a).then(e=>WebAssembly.instantiate(e,b)).then(c,e=>{r(`failed to asynchronously prepare wasm: ${e}`);C(e)})}function Ha(a,b){var c=Da;return na||\"function\"!=typeof WebAssembly.instantiateStreaming||Ca(c)||\"function\"!=typeof fetch?Ga(c,a,b):fetch(c,{credentials:\"same-origin\"}).then(e=>WebAssembly.instantiateStreaming(e,a).then(b,function(f){r(`wasm streaming compile failed: ${f}`);r(\"falling back to ArrayBuffer instantiation\");return Ga(c,a,b)}))}var D,F;\nfunction Ia(a){this.name=\"ExitStatus\";this.message=`Program terminated with exit(${a})`;this.status=a}var Ja=a=>{for(;0<a.length;)a.shift()(d)};function H(a,b=\"i8\"){b.endsWith(\"*\")&&(b=\"*\");switch(b){case \"i1\":return v[a];case \"i8\":return v[a];case \"i16\":return x[a>>1];case \"i32\":return z[a>>2];case \"i64\":C(\"to do getValue(i64) use WASM_BIGINT\");case \"float\":return ra[a>>2];case \"double\":return sa[a>>3];case \"*\":return B[a>>2];default:C(`invalid type for getValue: ${b}`)}}\nvar Ka=d.noExitRuntime||!0;function I(a,b,c=\"i8\"){c.endsWith(\"*\")&&(c=\"*\");switch(c){case \"i1\":v[a]=b;break;case \"i8\":v[a]=b;break;case \"i16\":x[a>>1]=b;break;case \"i32\":z[a>>2]=b;break;case \"i64\":C(\"to do setValue(i64) use WASM_BIGINT\");case \"float\":ra[a>>2]=b;break;case \"double\":sa[a>>3]=b;break;case \"*\":B[a>>2]=b;break;default:C(`invalid type for setValue: ${c}`)}}\nvar La=\"undefined\"!=typeof TextDecoder?new TextDecoder:void 0,J=(a,b,c)=>{var e=b+c;for(c=b;a[c]&&!(c>=e);)++c;if(16<c-b&&a.buffer&&La)return La.decode(a.subarray(b,c));for(e=\"\";b<c;){var f=a[b++];if(f&128){var h=a[b++]&63;if(192==(f&224))e+=String.fromCharCode((f&31)<<6|h);else{var k=a[b++]&63;f=224==(f&240)?(f&15)<<12|h<<6|k:(f&7)<<18|h<<12|k<<6|a[b++]&63;65536>f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e},Ma=(a,\nb)=>{for(var c=0,e=a.length-1;0<=e;e--){var f=a[e];\".\"===f?a.splice(e,1):\"..\"===f?(a.splice(e,1),c++):c&&(a.splice(e,1),c--)}if(b)for(;c;c--)a.unshift(\"..\");return a},Na=a=>{var b=\"/\"===a.charAt(0),c=\"/\"===a.substr(-1);(a=Ma(a.split(\"/\").filter(e=>!!e),!b).join(\"/\"))||b||(a=\".\");a&&c&&(a+=\"/\");return(b?\"/\":\"\")+a},Oa=a=>{var b=/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return\".\";b&&=b.substr(0,b.length-1);return a+b},Pa=a=>{if(\"/\"===a)return\"/\";\na=Na(a);a=a.replace(/\\/$/,\"\");var b=a.lastIndexOf(\"/\");return-1===b?a:a.substr(b+1)},Qa=()=>{if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues)return a=>crypto.getRandomValues(a);C(\"initRandomDevice\")},Ra=a=>(Ra=Qa())(a),Sa=(...a)=>{for(var b=\"\",c=!1,e=a.length-1;-1<=e&&!c;e--){c=0<=e?a[e]:\"/\";if(\"string\"!=typeof c)throw new TypeError(\"Arguments to path.resolve must be strings\");if(!c)return\"\";b=c+\"/\"+b;c=\"/\"===c.charAt(0)}b=Ma(b.split(\"/\").filter(f=>!!f),!c).join(\"/\");return(c?\n\"/\":\"\")+b||\".\"},Ta=[],Ua=a=>{for(var b=0,c=0;c<a.length;++c){var e=a.charCodeAt(c);127>=e?b++:2047>=e?b+=2:55296<=e&&57343>=e?(b+=4,++c):b+=3}return b},K=(a,b,c,e)=>{if(!(0<e))return 0;var f=c;e=c+e-1;for(var h=0;h<a.length;++h){var k=a.charCodeAt(h);if(55296<=k&&57343>=k){var n=a.charCodeAt(++h);k=65536+((k&1023)<<10)|n&1023}if(127>=k){if(c>=e)break;b[c++]=k}else{if(2047>=k){if(c+1>=e)break;b[c++]=192|k>>6}else{if(65535>=k){if(c+2>=e)break;b[c++]=224|k>>12}else{if(c+3>=e)break;b[c++]=240|k>>18;b[c++]=\n128|k>>12&63}b[c++]=128|k>>6&63}b[c++]=128|k&63}}b[c]=0;return c-f};function Va(a,b,c){c=Array(0<c?c:Ua(a)+1);a=K(a,c,0,c.length);b&&(c.length=a);return c}var Wa=[];function Xa(a,b){Wa[a]={input:[],Ff:[],Qf:b};Ya(a,Za)}\nvar Za={open(a){var b=Wa[a.node.Tf];if(!b)throw new N(43);a.Gf=b;a.seekable=!1},close(a){a.Gf.Qf.Vf(a.Gf)},Vf(a){a.Gf.Qf.Vf(a.Gf)},read(a,b,c,e){if(!a.Gf||!a.Gf.Qf.kg)throw new N(60);for(var f=0,h=0;h<e;h++){try{var k=a.Gf.Qf.kg(a.Gf)}catch(n){throw new N(29);}if(void 0===k&&0===f)throw new N(6);if(null===k||void 0===k)break;f++;b[c+h]=k}f&&(a.node.timestamp=Date.now());return f},write(a,b,c,e){if(!a.Gf||!a.Gf.Qf.eg)throw new N(60);try{for(var f=0;f<e;f++)a.Gf.Qf.eg(a.Gf,b[c+f])}catch(h){throw new N(29);\n}e&&(a.node.timestamp=Date.now());return f}},$a={kg(){a:{if(!Ta.length){var a=null;\"undefined\"!=typeof window&&\"function\"==typeof window.prompt&&(a=window.prompt(\"Input: \"),null!==a&&(a+=\"\\n\"));if(!a){a=null;break a}Ta=Va(a,!0)}a=Ta.shift()}return a},eg(a,b){null===b||10===b?(ma(J(a.Ff,0)),a.Ff=[]):0!=b&&a.Ff.push(b)},Vf(a){a.Ff&&0<a.Ff.length&&(ma(J(a.Ff,0)),a.Ff=[])},Lg(){return{Gg:25856,Ig:5,Fg:191,Hg:35387,Eg:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},Mg(){return 0},\nNg(){return[24,80]}},ab={eg(a,b){null===b||10===b?(r(J(a.Ff,0)),a.Ff=[]):0!=b&&a.Ff.push(b)},Vf(a){a.Ff&&0<a.Ff.length&&(r(J(a.Ff,0)),a.Ff=[])}};function bb(a,b){var c=a.Bf?a.Bf.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Bf,a.Bf=new Uint8Array(b),0<a.Df&&a.Bf.set(c.subarray(0,a.Df),0))}\nvar O={Jf:null,If(){return O.createNode(null,\"/\",16895,0)},createNode(a,b,c,e){if(24576===(c&61440)||4096===(c&61440))throw new N(63);O.Jf||(O.Jf={dir:{node:{Hf:O.zf.Hf,Ef:O.zf.Ef,Rf:O.zf.Rf,Wf:O.zf.Wf,og:O.zf.og,ag:O.zf.ag,Zf:O.zf.Zf,ng:O.zf.ng,$f:O.zf.$f},stream:{Nf:O.Af.Nf}},file:{node:{Hf:O.zf.Hf,Ef:O.zf.Ef},stream:{Nf:O.Af.Nf,read:O.Af.read,write:O.Af.write,hg:O.Af.hg,Xf:O.Af.Xf,Yf:O.Af.Yf}},link:{node:{Hf:O.zf.Hf,Ef:O.zf.Ef,Uf:O.zf.Uf},stream:{}},ig:{node:{Hf:O.zf.Hf,Ef:O.zf.Ef},stream:cb}});\nc=db(a,b,c,e);P(c.mode)?(c.zf=O.Jf.dir.node,c.Af=O.Jf.dir.stream,c.Bf={}):32768===(c.mode&61440)?(c.zf=O.Jf.file.node,c.Af=O.Jf.file.stream,c.Df=0,c.Bf=null):40960===(c.mode&61440)?(c.zf=O.Jf.link.node,c.Af=O.Jf.link.stream):8192===(c.mode&61440)&&(c.zf=O.Jf.ig.node,c.Af=O.Jf.ig.stream);c.timestamp=Date.now();a&&(a.Bf[b]=c,a.timestamp=c.timestamp);return c},Kg(a){return a.Bf?a.Bf.subarray?a.Bf.subarray(0,a.Df):new Uint8Array(a.Bf):new Uint8Array(0)},zf:{Hf(a){var b={};b.ug=8192===(a.mode&61440)?a.id:\n1;b.lg=a.id;b.mode=a.mode;b.Ag=1;b.uid=0;b.xg=0;b.Tf=a.Tf;P(a.mode)?b.size=4096:32768===(a.mode&61440)?b.size=a.Df:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.qg=new Date(a.timestamp);b.zg=new Date(a.timestamp);b.tg=new Date(a.timestamp);b.rg=4096;b.sg=Math.ceil(b.size/b.rg);return b},Ef(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);if(void 0!==b.size&&(b=b.size,a.Df!=b))if(0==b)a.Bf=null,a.Df=0;else{var c=a.Bf;a.Bf=new Uint8Array(b);c&&a.Bf.set(c.subarray(0,\nMath.min(b,a.Df)));a.Df=b}},Rf(){throw eb[44];},Wf(a,b,c,e){return O.createNode(a,b,c,e)},og(a,b,c){if(P(a.mode)){try{var e=fb(b,c)}catch(h){}if(e)for(var f in e.Bf)throw new N(55);}delete a.parent.Bf[a.name];a.parent.timestamp=Date.now();a.name=c;b.Bf[c]=a;b.timestamp=a.parent.timestamp},ag(a,b){delete a.Bf[b];a.timestamp=Date.now()},Zf(a,b){var c=fb(a,b),e;for(e in c.Bf)throw new N(55);delete a.Bf[b];a.timestamp=Date.now()},ng(a){var b=[\".\",\"..\"],c;for(c of Object.keys(a.Bf))b.push(c);return b},\n$f(a,b,c){a=O.createNode(a,b,41471,0);a.link=c;return a},Uf(a){if(40960!==(a.mode&61440))throw new N(28);return a.link}},Af:{read(a,b,c,e,f){var h=a.node.Bf;if(f>=a.node.Df)return 0;a=Math.min(a.node.Df-f,e);if(8<a&&h.subarray)b.set(h.subarray(f,f+a),c);else for(e=0;e<a;e++)b[c+e]=h[f+e];return a},write(a,b,c,e,f,h){b.buffer===v.buffer&&(h=!1);if(!e)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.Bf||a.Bf.subarray)){if(h)return a.Bf=b.subarray(c,c+e),a.Df=e;if(0===a.Df&&0===f)return a.Bf=\nb.slice(c,c+e),a.Df=e;if(f+e<=a.Df)return a.Bf.set(b.subarray(c,c+e),f),e}bb(a,f+e);if(a.Bf.subarray&&b.subarray)a.Bf.set(b.subarray(c,c+e),f);else for(h=0;h<e;h++)a.Bf[f+h]=b[c+h];a.Df=Math.max(a.Df,f+e);return e},Nf(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.Df);if(0>b)throw new N(28);return b},hg(a,b,c){bb(a.node,b+c);a.node.Df=Math.max(a.node.Df,b+c)},Xf(a,b,c,e,f){if(32768!==(a.node.mode&61440))throw new N(43);a=a.node.Bf;if(f&2||a.buffer!==v.buffer){if(0<c||c+\nb<a.length)a.subarray?a=a.subarray(c,c+b):a=Array.prototype.slice.call(a,c,c+b);c=!0;b=65536*Math.ceil(b/65536);(f=gb(65536,b))?(w.fill(0,f,f+b),b=f):b=0;if(!b)throw new N(48);v.set(a,b)}else c=!1,b=a.byteOffset;return{Bg:b,pg:c}},Yf(a,b,c,e){O.Af.write(a,b,0,e,c,!1);return 0}}},hb=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},ib=null,jb={},kb=[],lb=1,Q=null,mb=!0,N=class{constructor(a){this.name=\"ErrnoError\";this.Cf=a}},eb={},nb=class{constructor(){this.bg={};this.node=null}get flags(){return this.bg.flags}set flags(a){this.bg.flags=\na}get position(){return this.bg.position}set position(a){this.bg.position=a}},ob=class{constructor(a,b,c,e){a||=this;this.parent=a;this.If=a.If;this.Of=null;this.id=lb++;this.name=b;this.mode=c;this.zf={};this.Af={};this.Tf=e}get read(){return 365===(this.mode&365)}set read(a){a?this.mode|=365:this.mode&=-366}get write(){return 146===(this.mode&146)}set write(a){a?this.mode|=146:this.mode&=-147}};\nfunction R(a,b={}){a=Sa(a);if(!a)return{path:\"\",node:null};b=Object.assign({jg:!0,fg:0},b);if(8<b.fg)throw new N(32);a=a.split(\"/\").filter(k=>!!k);for(var c=ib,e=\"/\",f=0;f<a.length;f++){var h=f===a.length-1;if(h&&b.parent)break;c=fb(c,a[f]);e=Na(e+\"/\"+a[f]);c.Of&&(!h||h&&b.jg)&&(c=c.Of.root);if(!h||b.Mf)for(h=0;40960===(c.mode&61440);)if(c=pb(e),e=Sa(Oa(e),c),c=R(e,{fg:b.fg+1}).node,40<h++)throw new N(32);}return{path:e,node:c}}\nfunction qb(a){for(var b;;){if(a===a.parent)return a=a.If.mg,b?\"/\"!==a[a.length-1]?`${a}/${b}`:a+b:a;b=b?`${a.name}/${b}`:a.name;a=a.parent}}function rb(a,b){for(var c=0,e=0;e<b.length;e++)c=(c<<5)-c+b.charCodeAt(e)|0;return(a+c>>>0)%Q.length}function sb(a){var b=rb(a.parent.id,a.name);if(Q[b]===a)Q[b]=a.Pf;else for(b=Q[b];b;){if(b.Pf===a){b.Pf=a.Pf;break}b=b.Pf}}\nfunction fb(a,b){var c=P(a.mode)?(c=tb(a,\"x\"))?c:a.zf.Rf?0:2:54;if(c)throw new N(c);for(c=Q[rb(a.id,b)];c;c=c.Pf){var e=c.name;if(c.parent.id===a.id&&e===b)return c}return a.zf.Rf(a,b)}function db(a,b,c,e){a=new ob(a,b,c,e);b=rb(a.parent.id,a.name);a.Pf=Q[b];return Q[b]=a}function P(a){return 16384===(a&61440)}function ub(a){var b=[\"r\",\"w\",\"rw\"][a&3];a&512&&(b+=\"w\");return b}\nfunction tb(a,b){if(mb)return 0;if(!b.includes(\"r\")||a.mode&292){if(b.includes(\"w\")&&!(a.mode&146)||b.includes(\"x\")&&!(a.mode&73))return 2}else return 2;return 0}function vb(a,b){try{return fb(a,b),20}catch(c){}return tb(a,\"wx\")}function wb(a,b,c){try{var e=fb(a,b)}catch(f){return f.Cf}if(a=tb(a,\"wx\"))return a;if(c){if(!P(e.mode))return 54;if(e===e.parent||\"/\"===qb(e))return 10}else if(P(e.mode))return 31;return 0}function S(a){a=kb[a];if(!a)throw new N(8);return a}\nfunction xb(a,b=-1){a=Object.assign(new nb,a);if(-1==b)a:{for(b=0;4096>=b;b++)if(!kb[b])break a;throw new N(33);}a.Kf=b;return kb[b]=a}function yb(a,b=-1){a=xb(a,b);a.Af?.Jg?.(a);return a}var cb={open(a){a.Af=jb[a.node.Tf].Af;a.Af.open?.(a)},Nf(){throw new N(70);}};function Ya(a,b){jb[a]={Af:b}}\nfunction zb(a,b){var c=\"/\"===b;if(c&&ib)throw new N(10);if(!c&&b){var e=R(b,{jg:!1});b=e.path;e=e.node;if(e.Of)throw new N(10);if(!P(e.mode))throw new N(54);}b={type:a,Og:{},mg:b,yg:[]};a=a.If(b);a.If=b;b.root=a;c?ib=a:e&&(e.Of=b,e.If&&e.If.yg.push(b))}function Ab(a,b,c){var e=R(a,{parent:!0}).node;a=Pa(a);if(!a||\".\"===a||\"..\"===a)throw new N(28);var f=vb(e,a);if(f)throw new N(f);if(!e.zf.Wf)throw new N(63);return e.zf.Wf(e,a,b,c)}function T(a,b){return Ab(a,(void 0!==b?b:511)&1023|16384,0)}\nfunction Bb(a,b,c){\"undefined\"==typeof c&&(c=b,b=438);Ab(a,b|8192,c)}function Cb(a,b){if(!Sa(a))throw new N(44);var c=R(b,{parent:!0}).node;if(!c)throw new N(44);b=Pa(b);var e=vb(c,b);if(e)throw new N(e);if(!c.zf.$f)throw new N(63);c.zf.$f(c,b,a)}function Db(a){var b=R(a,{parent:!0}).node;a=Pa(a);var c=fb(b,a),e=wb(b,a,!0);if(e)throw new N(e);if(!b.zf.Zf)throw new N(63);if(c.Of)throw new N(10);b.zf.Zf(b,a);sb(c)}\nfunction pb(a){a=R(a).node;if(!a)throw new N(44);if(!a.zf.Uf)throw new N(28);return Sa(qb(a.parent),a.zf.Uf(a))}function Eb(a,b){a=R(a,{Mf:!b}).node;if(!a)throw new N(44);if(!a.zf.Hf)throw new N(63);return a.zf.Hf(a)}function Fb(a){return Eb(a,!0)}function Gb(a,b){a=\"string\"==typeof a?R(a,{Mf:!0}).node:a;if(!a.zf.Ef)throw new N(63);a.zf.Ef(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})}\nfunction Hb(a,b){if(0>b)throw new N(28);a=\"string\"==typeof a?R(a,{Mf:!0}).node:a;if(!a.zf.Ef)throw new N(63);if(P(a.mode))throw new N(31);if(32768!==(a.mode&61440))throw new N(28);var c=tb(a,\"w\");if(c)throw new N(c);a.zf.Ef(a,{size:b,timestamp:Date.now()})}\nfunction Ib(a,b,c){if(\"\"===a)throw new N(44);if(\"string\"==typeof b){var e={r:0,\"r+\":2,w:577,\"w+\":578,a:1089,\"a+\":1090}[b];if(\"undefined\"==typeof e)throw Error(`Unknown file open mode: ${b}`);b=e}c=b&64?(\"undefined\"==typeof c?438:c)&4095|32768:0;if(\"object\"==typeof a)var f=a;else{a=Na(a);try{f=R(a,{Mf:!(b&131072)}).node}catch(h){}}e=!1;if(b&64)if(f){if(b&128)throw new N(20);}else f=Ab(a,c,0),e=!0;if(!f)throw new N(44);8192===(f.mode&61440)&&(b&=-513);if(b&65536&&!P(f.mode))throw new N(54);if(!e&&(c=\nf?40960===(f.mode&61440)?32:P(f.mode)&&(\"r\"!==ub(b)||b&512)?31:tb(f,ub(b)):44))throw new N(c);b&512&&!e&&Hb(f,0);b&=-131713;f=xb({node:f,path:qb(f),flags:b,seekable:!0,position:0,Af:f.Af,Dg:[],error:!1});f.Af.open&&f.Af.open(f);!d.logReadFiles||b&1||(Jb||={},a in Jb||(Jb[a]=1));return f}function Kb(a,b,c){if(null===a.Kf)throw new N(8);if(!a.seekable||!a.Af.Nf)throw new N(70);if(0!=c&&1!=c&&2!=c)throw new N(28);a.position=a.Af.Nf(a,b,c);a.Dg=[]}var Lb;\nfunction Mb(a,b,c){a=Na(\"/dev/\"+a);var e=hb(!!b,!!c);Nb||=64;var f=Nb++<<8|0;Ya(f,{open(h){h.seekable=!1},close(){c?.buffer?.length&&c(10)},read(h,k,n,l){for(var m=0,p=0;p<l;p++){try{var q=b()}catch(t){throw new N(29);}if(void 0===q&&0===m)throw new N(6);if(null===q||void 0===q)break;m++;k[n+p]=q}m&&(h.node.timestamp=Date.now());return m},write(h,k,n,l){for(var m=0;m<l;m++)try{c(k[n+m])}catch(p){throw new N(29);}l&&(h.node.timestamp=Date.now());return m}});Bb(a,e,f)}var Nb,U={},Jb;\nfunction Ob(a,b,c){if(\"/\"===b.charAt(0))return b;a=-100===a?\"/\":S(a).path;if(0==b.length){if(!c)throw new N(44);return a}return Na(a+\"/\"+b)}\nfunction Pb(a,b,c){a=a(b);z[c>>2]=a.ug;z[c+4>>2]=a.mode;B[c+8>>2]=a.Ag;z[c+12>>2]=a.uid;z[c+16>>2]=a.xg;z[c+20>>2]=a.Tf;F=[a.size>>>0,(D=a.size,1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+24>>2]=F[0];z[c+28>>2]=F[1];z[c+32>>2]=4096;z[c+36>>2]=a.sg;b=a.qg.getTime();var e=a.zg.getTime(),f=a.tg.getTime();F=[Math.floor(b/1E3)>>>0,(D=Math.floor(b/1E3),1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:\n0)];z[c+40>>2]=F[0];z[c+44>>2]=F[1];B[c+48>>2]=b%1E3*1E3;F=[Math.floor(e/1E3)>>>0,(D=Math.floor(e/1E3),1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+56>>2]=F[0];z[c+60>>2]=F[1];B[c+64>>2]=e%1E3*1E3;F=[Math.floor(f/1E3)>>>0,(D=Math.floor(f/1E3),1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+72>>2]=F[0];z[c+76>>2]=F[1];B[c+80>>2]=f%1E3*1E3;F=[a.lg>>>0,(D=a.lg,1<=+Math.abs(D)?0<D?+Math.floor(D/\n4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[c+88>>2]=F[0];z[c+92>>2]=F[1];return 0}var Qb=void 0;function Rb(){var a=z[+Qb>>2];Qb+=4;return a}\nvar Sb=(a,b)=>b+2097152>>>0<4194305-!!a?(a>>>0)+4294967296*b:NaN,Tb=[0,31,60,91,121,152,182,213,244,274,305,335],Ub=[0,31,59,90,120,151,181,212,243,273,304,334],Vb={},Xb=()=>{if(!Wb){var a={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:ha||\"./this.program\"},b;for(b in Vb)void 0===Vb[b]?delete a[b]:a[b]=Vb[b];var c=[];for(b in a)c.push(`${b}=${a[b]}`);Wb=c}return Wb},\nWb;function Yb(){}function Zb(){}function $b(){}function ac(){}function bc(){}function cc(){}function dc(){}function ec(){}function fc(){}function gc(){}function hc(){}function ic(){}function jc(){}function kc(){}function lc(){}function mc(){}function nc(){}function oc(){}function pc(){}function qc(){}function rc(){}function sc(){}function tc(){}function uc(){}function vc(){}function wc(){}function xc(){}function yc(){}function zc(){}function Ac(){}function Bc(){}function Cc(){}function Dc(){}\nfunction Ec(){}function Fc(){}function Gc(){}function Hc(){}function Ic(){}function Jc(){}var Kc=0,Lc=a=>{pa=a;Ka||0<Kc||(d.onExit?.(a),u=!0);ia(a,new Ia(a))},Mc=a=>{a instanceof Ia||\"unwind\"==a||ia(1,a)},Nc=a=>{try{a()}catch(b){C(b)}},Oc=a=>{if(!u)try{if(a(),!(Ka||0<Kc))try{pa=a=pa,Lc(a)}catch(b){Mc(b)}}catch(b){Mc(b)}};\nfunction Pc(){var a=V,b={};for(let [c,e]of Object.entries(a))b[c]=\"function\"==typeof e?(...f)=>{Qc.push(c);try{return e(...f)}finally{u||(Qc.pop(),W&&1===Y&&0===Qc.length&&(Y=0,Nc(Rc),\"undefined\"!=typeof Fibers&&Fibers.Pg()))}}:e;return b}var Y=0,W=null,Sc=0,Qc=[],Tc={},Uc={},Vc=0,Wc=null,Xc=[];function Yc(){return new Promise((a,b)=>{Wc={resolve:a,reject:b}})}\nfunction Zc(){var a=$c(16396),b=a+12;B[a>>2]=b;B[a+4>>2]=b+16384;b=Qc[0];var c=Tc[b];void 0===c&&(c=Vc++,Tc[b]=c,Uc[c]=b);z[a+8>>2]=c;return a}\nfunction ad(a){if(!u){if(0===Y){var b=!1,c=!1;a((e=0)=>{if(!u&&(Sc=e,b=!0,c)){Y=2;Nc(()=>bd(W));\"undefined\"!=typeof Browser&&Browser.dg.wg&&Browser.dg.resume();e=!1;try{var f=(0,V[Uc[z[W+8>>2]]])()}catch(n){f=n,e=!0}var h=!1;if(!W){var k=Wc;k&&(Wc=null,(e?k.reject:k.resolve)(f),h=!0)}if(e&&!h)throw f;}});c=!0;b||(Y=1,W=Zc(),\"undefined\"!=typeof Browser&&Browser.dg.wg&&Browser.dg.pause(),Nc(()=>cd(W)))}else 2===Y?(Y=0,Nc(dd),ed(W),W=null,Xc.forEach(Oc)):C(`invalid state: ${Y}`);return Sc}}\nfunction fd(a){return ad(b=>{a().then(b)})}\nvar gd={},hd,jd,kd=[],Z=(a,b,c,e,f)=>{function h(q){--Kc;0!==l&&ld(l);return\"string\"===b?q?J(w,q):\"\":\"boolean\"===b?!!q:q}var k={string:q=>{var t=0;if(null!==q&&void 0!==q&&0!==q){t=Ua(q)+1;var y=md(t);K(q,w,y,t);t=y}return t},array:q=>{var t=md(q.length);v.set(q,t);return t}};a=d[\"_\"+a];var n=[],l=0;if(e)for(var m=0;m<e.length;m++){var p=k[c[m]];p?(0===l&&(l=nd()),n[m]=p(e[m])):n[m]=e[m]}c=W;e=a(...n);f=f?.async;Kc+=1;if(W!=c)return Yc().then(h);e=h(e);return f?Promise.resolve(e):e},od=\"undefined\"!=\ntypeof TextDecoder?new TextDecoder(\"utf-16le\"):void 0;[44].forEach(a=>{eb[a]=new N(a);eb[a].stack=\"<generic error, no stack>\"});Q=Array(4096);zb(O,\"/\");T(\"/tmp\");T(\"/home\");T(\"/home/web_user\");(function(){T(\"/dev\");Ya(259,{read:()=>0,write:(e,f,h,k)=>k});Bb(\"/dev/null\",259);Xa(1280,$a);Xa(1536,ab);Bb(\"/dev/tty\",1280);Bb(\"/dev/tty1\",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Ra(a).byteLength);return a[--b]};Mb(\"random\",c);Mb(\"urandom\",c);T(\"/dev/shm\");T(\"/dev/shm/tmp\")})();\n(function(){T(\"/proc\");var a=T(\"/proc/self\");T(\"/proc/self/fd\");zb({If(){var b=db(a,\"fd\",16895,73);b.zf={Rf(c,e){var f=S(+e);c={parent:null,If:{mg:\"fake\"},zf:{Uf:()=>f.path}};return c.parent=c}};return b}},\"/proc/self/fd\")})();\n(function(){const a=new Map;d.setAuthorizer=function(b,c,e){c?a.set(b,{f:c,gg:e}):a.delete(b);return Z(\"set_authorizer\",\"number\",[\"number\"],[b])};Yb=function(b,c,e,f,h,k){if(a.has(b)){const {f:n,gg:l}=a.get(b);return n(l,c,e?e?J(w,e):\"\":null,f?f?J(w,f):\"\":null,h?h?J(w,h):\"\":null,k?k?J(w,k):\"\":null)}return 0}})();\n(function(){const a=new Map,b=new Map;d.createFunction=function(c,e,f,h,k,n){const l=a.size;a.set(l,{f:n,Lf:k});return Z(\"create_function\",\"number\",\"number string number number number number\".split(\" \"),[c,e,f,h,l,0])};d.createAggregate=function(c,e,f,h,k,n,l){const m=a.size;a.set(m,{step:n,vg:l,Lf:k});return Z(\"create_function\",\"number\",\"number string number number number number\".split(\" \"),[c,e,f,h,m,1])};d.getFunctionUserData=function(c){return b.get(c)};$b=function(c,e,f,h){c=a.get(c);b.set(e,\nc.Lf);c.f(e,new Uint32Array(w.buffer,h,f));b.delete(e)};bc=function(c,e,f,h){c=a.get(c);b.set(e,c.Lf);c.step(e,new Uint32Array(w.buffer,h,f));b.delete(e)};Zb=function(c,e){c=a.get(c);b.set(e,c.Lf);c.vg(e);b.delete(e)}})();(function(){const a=new Map;d.progressHandler=function(b,c,e,f){e?a.set(b,{f:e,gg:f}):a.delete(b);return Z(\"progress_handler\",null,[\"number\",\"number\"],[b,c])};ac=function(b){if(a.has(b)){const {f:c,gg:e}=a.get(b);return c(e)}return 0}})();\n(function(){function a(l,m){const p=`get${l}`,q=`set${l}`;return new Proxy(new DataView(w.buffer,m,\"Int32\"===l?4:8),{get(t,y){if(y===p)return function(A,G){if(!G)throw Error(\"must be little endian\");return t[y](A,G)};if(y===q)return function(A,G,E){if(!E)throw Error(\"must be little endian\");return t[y](A,G,E)};if(\"string\"===typeof y&&y.match(/^(get)|(set)/))throw Error(\"invalid type\");return t[y]}})}const b=\"object\"===typeof gd,c=new Map,e=new Map,f=new Map,h=b?new Set:null,k=b?new Set:null,n=new Map;\nsc=function(l,m,p,q){n.set(l?J(w,l):\"\",{size:m,Sf:Array.from(new Uint32Array(w.buffer,q,p))})};d.createModule=function(l,m,p,q){b&&(p.handleAsync=fd);const t=c.size;c.set(t,{module:p,Lf:q});q=0;p.xCreate&&(q|=1);p.xConnect&&(q|=2);p.xBestIndex&&(q|=4);p.xDisconnect&&(q|=8);p.xDestroy&&(q|=16);p.xOpen&&(q|=32);p.xClose&&(q|=64);p.xFilter&&(q|=128);p.xNext&&(q|=256);p.xEof&&(q|=512);p.xColumn&&(q|=1024);p.xRowid&&(q|=2048);p.xUpdate&&(q|=4096);p.xBegin&&(q|=8192);p.xSync&&(q|=16384);p.xCommit&&(q|=\n32768);p.xRollback&&(q|=65536);p.xFindFunction&&(q|=131072);p.xRename&&(q|=262144);return Z(\"create_module\",\"number\",[\"number\",\"string\",\"number\",\"number\"],[l,m,t,q])};ic=function(l,m,p,q,t,y){m=c.get(m);e.set(t,m);if(b){h.delete(t);for(const A of h)e.delete(A)}q=Array.from(new Uint32Array(w.buffer,q,p)).map(A=>A?J(w,A):\"\");return m.module.xCreate(l,m.Lf,q,t,a(\"Int32\",y))};hc=function(l,m,p,q,t,y){m=c.get(m);e.set(t,m);if(b){h.delete(t);for(const A of h)e.delete(A)}q=Array.from(new Uint32Array(w.buffer,\nq,p)).map(A=>A?J(w,A):\"\");return m.module.xConnect(l,m.Lf,q,t,a(\"Int32\",y))};dc=function(l,m){var p=e.get(l),q=n.get(\"sqlite3_index_info\").Sf;const t={};t.nConstraint=H(m+q[0],\"i32\");t.aConstraint=[];var y=H(m+q[1],\"*\"),A=n.get(\"sqlite3_index_constraint\").size;for(var G=0;G<t.nConstraint;++G){var E=t.aConstraint,M=E.push,L=y+G*A,ja=n.get(\"sqlite3_index_constraint\").Sf,X={};X.iColumn=H(L+ja[0],\"i32\");X.op=H(L+ja[1],\"i8\");X.usable=!!H(L+ja[2],\"i8\");M.call(E,X)}t.nOrderBy=H(m+q[2],\"i32\");t.aOrderBy=\n[];y=H(m+q[3],\"*\");A=n.get(\"sqlite3_index_orderby\").size;for(G=0;G<t.nOrderBy;++G)E=t.aOrderBy,M=E.push,L=y+G*A,ja=n.get(\"sqlite3_index_orderby\").Sf,X={},X.iColumn=H(L+ja[0],\"i32\"),X.desc=!!H(L+ja[1],\"i8\"),M.call(E,X);t.aConstraintUsage=[];for(y=0;y<t.nConstraint;++y)t.aConstraintUsage.push({argvIndex:0,omit:!1});t.idxNum=H(m+q[5],\"i32\");t.idxStr=null;t.orderByConsumed=!!H(m+q[8],\"i8\");t.estimatedCost=H(m+q[9],\"double\");t.estimatedRows=H(m+q[10],\"i32\");t.idxFlags=H(m+q[11],\"i32\");t.colUsed=H(m+q[12],\n\"i32\");l=p.module.xBestIndex(l,t);p=n.get(\"sqlite3_index_info\").Sf;q=H(m+p[4],\"*\");y=n.get(\"sqlite3_index_constraint_usage\").size;for(M=0;M<t.nConstraint;++M)A=q+M*y,E=t.aConstraintUsage[M],L=n.get(\"sqlite3_index_constraint_usage\").Sf,I(A+L[0],E.argvIndex,\"i32\"),I(A+L[1],E.omit?1:0,\"i8\");I(m+p[5],t.idxNum,\"i32\");\"string\"===typeof t.idxStr&&(q=Ua(t.idxStr),y=Z(\"sqlite3_malloc\",\"number\",[\"number\"],[q+1]),K(t.idxStr,w,y,q+1),I(m+p[6],y,\"*\"),I(m+p[7],1,\"i32\"));I(m+p[8],t.orderByConsumed,\"i32\");I(m+p[9],\nt.estimatedCost,\"double\");I(m+p[10],t.estimatedRows,\"i32\");I(m+p[11],t.idxFlags,\"i32\");return l};kc=function(l){const m=e.get(l);b?h.add(l):e.delete(l);return m.module.xDisconnect(l)};jc=function(l){const m=e.get(l);b?h.add(l):e.delete(l);return m.module.xDestroy(l)};oc=function(l,m){const p=e.get(l);f.set(m,p);if(b){k.delete(m);for(const q of k)f.delete(q)}return p.module.xOpen(l,m)};ec=function(l){const m=f.get(l);b?k.add(l):f.delete(l);return m.module.xClose(l)};lc=function(l){return f.get(l).module.xEof(l)?\n1:0};mc=function(l,m,p,q,t){const y=f.get(l);p=p?p?J(w,p):\"\":null;t=new Uint32Array(w.buffer,t,q);return y.module.xFilter(l,m,p,t)};nc=function(l){return f.get(l).module.xNext(l)};fc=function(l,m,p){return f.get(l).module.xColumn(l,m,p)};rc=function(l,m){return f.get(l).module.xRowid(l,a(\"BigInt64\",m))};uc=function(l,m,p,q){const t=e.get(l);p=new Uint32Array(w.buffer,p,m);return t.module.xUpdate(l,p,a(\"BigInt64\",q))};cc=function(l){return e.get(l).module.xBegin(l)};tc=function(l){return e.get(l).module.xSync(l)};\ngc=function(l){return e.get(l).module.xCommit(l)};qc=function(l){return e.get(l).module.xRollback(l)};pc=function(l,m){const p=e.get(l);m=m?J(w,m):\"\";return p.module.xRename(l,m)}})();\n(function(){function a(h,k){const n=`get${h}`,l=`set${h}`;return new Proxy(new DataView(w.buffer,k,\"Int32\"===h?4:8),{get(m,p){if(p===n)return function(q,t){if(!t)throw Error(\"must be little endian\");return m[p](q,t)};if(p===l)return function(q,t,y){if(!y)throw Error(\"must be little endian\");return m[p](q,t,y)};if(\"string\"===typeof p&&p.match(/^(get)|(set)/))throw Error(\"invalid type\");return m[p]}})}const b=\"object\"===typeof gd;b&&(d.handleAsync=fd);const c=new Map,e=new Map;d.registerVFS=function(h,\nk){if(Z(\"sqlite3_vfs_find\",\"number\",[\"string\"],[h.name]))throw Error(`VFS '${h.name}' already registered`);b&&(h.handleAsync=fd);var n=h.mxPathName??64;const l=d._malloc(4);k=Z(\"register_vfs\",\"number\",[\"string\",\"number\",\"number\",\"number\"],[h.name,n,k?1:0,l]);k||(n=H(l,\"*\"),c.set(n,h));d._free(l);return k};const f=b?new Set:null;xc=function(h){const k=e.get(h);b?f.add(h):e.delete(h);return k.xClose(h)};Ec=function(h,k,n,l,m){return e.get(h).xRead(h,w.subarray(k,k+n),4294967296*m+l+(0>l?2**32:0))};\nJc=function(h,k,n,l,m){return e.get(h).xWrite(h,w.subarray(k,k+n),4294967296*m+l+(0>l?2**32:0))};Hc=function(h,k,n){return e.get(h).xTruncate(h,4294967296*n+k+(0>k?2**32:0))};Gc=function(h,k){return e.get(h).xSync(h,k)};Bc=function(h,k){const n=e.get(h);k=a(\"BigInt64\",k);return n.xFileSize(h,k)};Cc=function(h,k){return e.get(h).xLock(h,k)};Ic=function(h,k){return e.get(h).xUnlock(h,k)};wc=function(h,k){const n=e.get(h);k=a(\"Int32\",k);return n.xCheckReservedLock(h,k)};Ac=function(h,k,n){const l=e.get(h);\nn=new DataView(w.buffer,n);return l.xFileControl(h,k,n)};Fc=function(h){return e.get(h).xSectorSize(h)};zc=function(h){return e.get(h).xDeviceCharacteristics(h)};Dc=function(h,k,n,l,m){h=c.get(h);e.set(n,h);if(b){f.delete(n);for(var p of f)e.delete(p)}p=null;if(l&64){p=1;const q=[];for(;p;){const t=w[k++];if(t)q.push(t);else switch(w[k]||(p=null),p){case 1:q.push(63);p=2;break;case 2:q.push(61);p=3;break;case 3:q.push(38),p=2}}p=(new TextDecoder).decode(new Uint8Array(q))}else k&&(p=k?J(w,k):\"\");\nm=a(\"Int32\",m);return h.xOpen(p,n,l,m)};yc=function(h,k,n){return c.get(h).xDelete(k?J(w,k):\"\",n)};vc=function(h,k,n,l){h=c.get(h);l=a(\"Int32\",l);return h.xAccess(k?J(w,k):\"\",n,l)}})();\nvar pd={a:(a,b,c,e)=>{C(`Assertion failed: ${a?J(w,a):\"\"}, at: `+[b?b?J(w,b):\"\":\"unknown filename\",c,e?e?J(w,e):\"\":\"unknown function\"])},N:function(a,b){try{return a=a?J(w,a):\"\",Gb(a,b),0}catch(c){if(\"undefined\"==typeof U||\"ErrnoError\"!==c.name)throw c;return-c.Cf}},Q:function(a,b,c){try{b=b?J(w,b):\"\";b=Ob(a,b);if(c&-8)return-28;var e=R(b,{Mf:!0}).node;if(!e)return-44;a=\"\";c&4&&(a+=\"r\");c&2&&(a+=\"w\");c&1&&(a+=\"x\");return a&&tb(e,a)?-2:0}catch(f){if(\"undefined\"==typeof U||\"ErrnoError\"!==f.name)throw f;\nreturn-f.Cf}},O:function(a,b){try{var c=S(a);Gb(c.node,b);return 0}catch(e){if(\"undefined\"==typeof U||\"ErrnoError\"!==e.name)throw e;return-e.Cf}},M:function(a){try{var b=S(a).node;var c=\"string\"==typeof b?R(b,{Mf:!0}).node:b;if(!c.zf.Ef)throw new N(63);c.zf.Ef(c,{timestamp:Date.now()});return 0}catch(e){if(\"undefined\"==typeof U||\"ErrnoError\"!==e.name)throw e;return-e.Cf}},b:function(a,b,c){Qb=c;try{var e=S(a);switch(b){case 0:var f=Rb();if(0>f)break;for(;kb[f];)f++;return yb(e,f).Kf;case 1:case 2:return 0;\ncase 3:return e.flags;case 4:return f=Rb(),e.flags|=f,0;case 12:return f=Rb(),x[f+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(h){if(\"undefined\"==typeof U||\"ErrnoError\"!==h.name)throw h;return-h.Cf}},L:function(a,b){try{var c=S(a);return Pb(Eb,c.path,b)}catch(e){if(\"undefined\"==typeof U||\"ErrnoError\"!==e.name)throw e;return-e.Cf}},n:function(a,b,c){b=Sb(b,c);try{if(isNaN(b))return 61;var e=S(a);if(0===(e.flags&2097155))throw new N(28);Hb(e.node,b);return 0}catch(f){if(\"undefined\"==typeof U||\n\"ErrnoError\"!==f.name)throw f;return-f.Cf}},F:function(a,b){try{if(0===b)return-28;var c=Ua(\"/\")+1;if(b<c)return-68;K(\"/\",w,a,b);return c}catch(e){if(\"undefined\"==typeof U||\"ErrnoError\"!==e.name)throw e;return-e.Cf}},J:function(a,b){try{return a=a?J(w,a):\"\",Pb(Fb,a,b)}catch(c){if(\"undefined\"==typeof U||\"ErrnoError\"!==c.name)throw c;return-c.Cf}},C:function(a,b,c){try{return b=b?J(w,b):\"\",b=Ob(a,b),b=Na(b),\"/\"===b[b.length-1]&&(b=b.substr(0,b.length-1)),T(b,c),0}catch(e){if(\"undefined\"==typeof U||\n\"ErrnoError\"!==e.name)throw e;return-e.Cf}},I:function(a,b,c,e){try{b=b?J(w,b):\"\";var f=e&256;b=Ob(a,b,e&4096);return Pb(f?Fb:Eb,b,c)}catch(h){if(\"undefined\"==typeof U||\"ErrnoError\"!==h.name)throw h;return-h.Cf}},A:function(a,b,c,e){Qb=e;try{b=b?J(w,b):\"\";b=Ob(a,b);var f=e?Rb():0;return Ib(b,c,f).Kf}catch(h){if(\"undefined\"==typeof U||\"ErrnoError\"!==h.name)throw h;return-h.Cf}},y:function(a,b,c,e){try{b=b?J(w,b):\"\";b=Ob(a,b);if(0>=e)return-28;var f=pb(b),h=Math.min(e,Ua(f)),k=v[c+h];K(f,w,c,e+1);v[c+\nh]=k;return h}catch(n){if(\"undefined\"==typeof U||\"ErrnoError\"!==n.name)throw n;return-n.Cf}},x:function(a){try{return a=a?J(w,a):\"\",Db(a),0}catch(b){if(\"undefined\"==typeof U||\"ErrnoError\"!==b.name)throw b;return-b.Cf}},K:function(a,b){try{return a=a?J(w,a):\"\",Pb(Eb,a,b)}catch(c){if(\"undefined\"==typeof U||\"ErrnoError\"!==c.name)throw c;return-c.Cf}},u:function(a,b,c){try{b=b?J(w,b):\"\";b=Ob(a,b);if(0===c){a=b;var e=R(a,{parent:!0}).node;if(!e)throw new N(44);var f=Pa(a),h=fb(e,f),k=wb(e,f,!1);if(k)throw new N(k);\nif(!e.zf.ag)throw new N(63);if(h.Of)throw new N(10);e.zf.ag(e,f);sb(h)}else 512===c?Db(b):C(\"Invalid flags passed to unlinkat\");return 0}catch(n){if(\"undefined\"==typeof U||\"ErrnoError\"!==n.name)throw n;return-n.Cf}},t:function(a,b,c){try{b=b?J(w,b):\"\";b=Ob(a,b,!0);if(c){var e=B[c>>2]+4294967296*z[c+4>>2],f=z[c+8>>2];h=1E3*e+f/1E6;c+=16;e=B[c>>2]+4294967296*z[c+4>>2];f=z[c+8>>2];k=1E3*e+f/1E6}else var h=Date.now(),k=h;a=h;var n=R(b,{Mf:!0}).node;n.zf.Ef(n,{timestamp:Math.max(a,k)});return 0}catch(l){if(\"undefined\"==\ntypeof U||\"ErrnoError\"!==l.name)throw l;return-l.Cf}},k:function(a,b,c){a=new Date(1E3*Sb(a,b));z[c>>2]=a.getSeconds();z[c+4>>2]=a.getMinutes();z[c+8>>2]=a.getHours();z[c+12>>2]=a.getDate();z[c+16>>2]=a.getMonth();z[c+20>>2]=a.getFullYear()-1900;z[c+24>>2]=a.getDay();b=a.getFullYear();z[c+28>>2]=(0!==b%4||0===b%100&&0!==b%400?Ub:Tb)[a.getMonth()]+a.getDate()-1|0;z[c+36>>2]=-(60*a.getTimezoneOffset());b=(new Date(a.getFullYear(),6,1)).getTimezoneOffset();var e=(new Date(a.getFullYear(),0,1)).getTimezoneOffset();\nz[c+32>>2]=(b!=e&&a.getTimezoneOffset()==Math.min(e,b))|0},i:function(a,b,c,e,f,h,k,n){f=Sb(f,h);try{if(isNaN(f))return 61;var l=S(e);if(0!==(b&2)&&0===(c&2)&&2!==(l.flags&2097155))throw new N(2);if(1===(l.flags&2097155))throw new N(2);if(!l.Af.Xf)throw new N(43);var m=l.Af.Xf(l,a,f,b,c);var p=m.Bg;z[k>>2]=m.pg;B[n>>2]=p;return 0}catch(q){if(\"undefined\"==typeof U||\"ErrnoError\"!==q.name)throw q;return-q.Cf}},j:function(a,b,c,e,f,h,k){h=Sb(h,k);try{var n=S(f);if(c&2){if(32768!==(n.node.mode&61440))throw new N(43);\ne&2||n.Af.Yf&&n.Af.Yf(n,w.slice(a,a+b),h,b,e)}}catch(l){if(\"undefined\"==typeof U||\"ErrnoError\"!==l.name)throw l;return-l.Cf}},B:(a,b,c,e)=>{var f=(new Date).getFullYear(),h=(new Date(f,0,1)).getTimezoneOffset();f=(new Date(f,6,1)).getTimezoneOffset();B[a>>2]=60*Math.max(h,f);z[b>>2]=Number(h!=f);b=k=>{var n=Math.abs(k);return`UTC${0<=k?\"-\":\"+\"}${String(Math.floor(n/60)).padStart(2,\"0\")}${String(n%60).padStart(2,\"0\")}`};a=b(h);b=b(f);f<h?(K(a,w,c,17),K(b,w,e,17)):(K(a,w,e,17),K(b,w,c,17))},e:()=>Date.now(),\nd:()=>performance.now(),r:a=>{var b=w.length;a>>>=0;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var e=b*(1+.2/c);e=Math.min(e,a+100663296);var f=Math;e=Math.max(a,e);a:{f=(f.min.call(f,2147483648,e+(65536-e%65536)%65536)-oa.buffer.byteLength+65535)/65536;try{oa.grow(f);ta();var h=1;break a}catch(k){}h=void 0}if(h)return!0}return!1},D:(a,b)=>{var c=0;Xb().forEach((e,f)=>{var h=b+c;f=B[a+4*f>>2]=h;for(h=0;h<e.length;++h)v[f++]=e.charCodeAt(h);v[f]=0;c+=e.length+1});return 0},E:(a,b)=>{var c=Xb();\nB[a>>2]=c.length;var e=0;c.forEach(f=>e+=f.length+1);B[b>>2]=e;return 0},f:function(a){try{var b=S(a);if(null===b.Kf)throw new N(8);b.cg&&(b.cg=null);try{b.Af.close&&b.Af.close(b)}catch(c){throw c;}finally{kb[b.Kf]=null}b.Kf=null;return 0}catch(c){if(\"undefined\"==typeof U||\"ErrnoError\"!==c.name)throw c;return c.Cf}},s:function(a,b){try{var c=S(a);v[b]=c.Gf?2:P(c.mode)?3:40960===(c.mode&61440)?7:4;x[b+2>>1]=0;F=[0,(D=0,1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>\n0:0)];z[b+8>>2]=F[0];z[b+12>>2]=F[1];F=[0,(D=0,1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[b+16>>2]=F[0];z[b+20>>2]=F[1];return 0}catch(e){if(\"undefined\"==typeof U||\"ErrnoError\"!==e.name)throw e;return e.Cf}},z:function(a,b,c,e){try{a:{var f=S(a);a=b;for(var h,k=b=0;k<c;k++){var n=B[a>>2],l=B[a+4>>2];a+=8;var m=f,p=h,q=v;if(0>l||0>p)throw new N(28);if(null===m.Kf)throw new N(8);if(1===(m.flags&2097155))throw new N(8);if(P(m.node.mode))throw new N(31);\nif(!m.Af.read)throw new N(28);var t=\"undefined\"!=typeof p;if(!t)p=m.position;else if(!m.seekable)throw new N(70);var y=m.Af.read(m,q,n,l,p);t||(m.position+=y);var A=y;if(0>A){var G=-1;break a}b+=A;if(A<l)break;\"undefined\"!=typeof h&&(h+=A)}G=b}B[e>>2]=G;return 0}catch(E){if(\"undefined\"==typeof U||\"ErrnoError\"!==E.name)throw E;return E.Cf}},m:function(a,b,c,e,f){b=Sb(b,c);try{if(isNaN(b))return 61;var h=S(a);Kb(h,b,e);F=[h.position>>>0,(D=h.position,1<=+Math.abs(D)?0<D?+Math.floor(D/4294967296)>>>\n0:~~+Math.ceil((D-+(~~D>>>0))/4294967296)>>>0:0)];z[f>>2]=F[0];z[f+4>>2]=F[1];h.cg&&0===b&&0===e&&(h.cg=null);return 0}catch(k){if(\"undefined\"==typeof U||\"ErrnoError\"!==k.name)throw k;return k.Cf}},G:function(a){try{var b=S(a);return ad(c=>{var e=b.node.If;e.type.Cg?e.type.Cg(e,!1,f=>{f?c(29):c(0)}):c(0)})}catch(c){if(\"undefined\"==typeof U||\"ErrnoError\"!==c.name)throw c;return c.Cf}},v:function(a,b,c,e){try{a:{var f=S(a);a=b;for(var h,k=b=0;k<c;k++){var n=B[a>>2],l=B[a+4>>2];a+=8;var m=f,p=n,q=l,\nt=h,y=v;if(0>q||0>t)throw new N(28);if(null===m.Kf)throw new N(8);if(0===(m.flags&2097155))throw new N(8);if(P(m.node.mode))throw new N(31);if(!m.Af.write)throw new N(28);m.seekable&&m.flags&1024&&Kb(m,0,2);var A=\"undefined\"!=typeof t;if(!A)t=m.position;else if(!m.seekable)throw new N(70);var G=m.Af.write(m,y,p,q,t,void 0);A||(m.position+=G);var E=G;if(0>E){var M=-1;break a}b+=E;\"undefined\"!=typeof h&&(h+=E)}M=b}B[e>>2]=M;return 0}catch(L){if(\"undefined\"==typeof U||\"ErrnoError\"!==L.name)throw L;return L.Cf}},\nsa:Yb,P:Zb,ha:$b,ca:ac,Z:bc,la:cc,w:dc,g:ec,oa:fc,ja:gc,ea:hc,fa:ic,h:jc,l:kc,pa:lc,ra:mc,qa:nc,da:oc,ga:pc,ia:qc,na:rc,c:sc,ka:tc,ma:uc,H:function(a,b,c,e){(0,globalThis.__onTablesChanged)?.(a,b,c,e)},aa:vc,V:wc,$:xc,ba:yc,S:zc,U:Ac,Y:Bc,X:Cc,R:Dc,q:Ec,T:Fc,_:Gc,o:Hc,W:Ic,p:Jc},V=function(){function a(c){V=c.exports;V=Pc();oa=V.ta;ta();hd=V.pf;va.unshift(V.ua);za--;d.monitorRunDependencies?.(za);0==za&&(null!==Aa&&(clearInterval(Aa),Aa=null),Ba&&(c=Ba,Ba=null,c()));return V}var b={a:pd};za++;d.monitorRunDependencies?.(za);\nif(d.instantiateWasm)try{return d.instantiateWasm(b,a)}catch(c){r(`Module.instantiateWasm callback failed with error: ${c}`),ba(c)}Da||=d.locateFile?Ca(\"wa-sqlite-async.wasm\")?\"wa-sqlite-async.wasm\":d.locateFile?d.locateFile(\"wa-sqlite-async.wasm\",g):g+\"wa-sqlite-async.wasm\":(new URL(\"wa-sqlite-async.wasm\",import.meta.url)).href;Ha(b,function(c){a(c.instance)}).catch(ba);return{}}();d._sqlite3_auto_extension=a=>(d._sqlite3_auto_extension=V.va)(a);d._sqlite3_free=a=>(d._sqlite3_free=V.wa)(a);\nd._sqlite3_malloc=a=>(d._sqlite3_malloc=V.xa)(a);d._sqlite3_bind_blob=(a,b,c,e,f)=>(d._sqlite3_bind_blob=V.ya)(a,b,c,e,f);d._sqlite3_shutdown=()=>(d._sqlite3_shutdown=V.za)();d._sqlite3_bind_int=(a,b,c)=>(d._sqlite3_bind_int=V.Aa)(a,b,c);d._sqlite3_bind_int64=(a,b,c,e)=>(d._sqlite3_bind_int64=V.Ba)(a,b,c,e);d._sqlite3_bind_double=(a,b,c)=>(d._sqlite3_bind_double=V.Ca)(a,b,c);d._sqlite3_bind_null=(a,b)=>(d._sqlite3_bind_null=V.Da)(a,b);d._sqlite3_clear_bindings=a=>(d._sqlite3_clear_bindings=V.Ea)(a);\nd._sqlite3_bind_text=(a,b,c,e,f)=>(d._sqlite3_bind_text=V.Fa)(a,b,c,e,f);d._sqlite3_bind_pointer=(a,b,c,e,f)=>(d._sqlite3_bind_pointer=V.Ga)(a,b,c,e,f);d._sqlite3_bind_value=(a,b,c)=>(d._sqlite3_bind_value=V.Ha)(a,b,c);d._sqlite3_close=a=>(d._sqlite3_close=V.Ia)(a);d._sqlite3_vtab_config=(a,b,c)=>(d._sqlite3_vtab_config=V.Ja)(a,b,c);d._sqlite3_commit_hook=(a,b,c)=>(d._sqlite3_commit_hook=V.Ka)(a,b,c);d._sqlite3_column_type=(a,b)=>(d._sqlite3_column_type=V.La)(a,b);\nd._sqlite3_column_count=a=>(d._sqlite3_column_count=V.Ma)(a);d._sqlite3_column_text=(a,b)=>(d._sqlite3_column_text=V.Na)(a,b);d._sqlite3_column_blob=(a,b)=>(d._sqlite3_column_blob=V.Oa)(a,b);d._sqlite3_column_bytes=(a,b)=>(d._sqlite3_column_bytes=V.Pa)(a,b);d._sqlite3_column_value=(a,b)=>(d._sqlite3_column_value=V.Qa)(a,b);d._sqlite3_column_double=(a,b)=>(d._sqlite3_column_double=V.Ra)(a,b);d._sqlite3_column_int=(a,b)=>(d._sqlite3_column_int=V.Sa)(a,b);\nd._sqlite3_column_int64=(a,b)=>(d._sqlite3_column_int64=V.Ta)(a,b);d._sqlite3_column_name=(a,b)=>(d._sqlite3_column_name=V.Ua)(a,b);d._sqlite3_context_db_handle=a=>(d._sqlite3_context_db_handle=V.Va)(a);d._sqlite3_create_function_v2=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_create_function_v2=V.Wa)(a,b,c,e,f,h,k,n,l);d._sqlite3_create_module_v2=(a,b,c,e,f)=>(d._sqlite3_create_module_v2=V.Xa)(a,b,c,e,f);d._sqlite3_declare_vtab=(a,b)=>(d._sqlite3_declare_vtab=V.Ya)(a,b);\nd._sqlite3_errcode=a=>(d._sqlite3_errcode=V.Za)(a);d._sqlite3_errmsg=a=>(d._sqlite3_errmsg=V._a)(a);d._sqlite3_exec=(a,b,c,e,f)=>(d._sqlite3_exec=V.$a)(a,b,c,e,f);d._sqlite3_finalize=a=>(d._sqlite3_finalize=V.ab)(a);d._sqlite3_get_auxdata=(a,b)=>(d._sqlite3_get_auxdata=V.bb)(a,b);d._sqlite3_next_stmt=(a,b)=>(d._sqlite3_next_stmt=V.cb)(a,b);d._sqlite3_open=(a,b)=>(d._sqlite3_open=V.db)(a,b);d._sqlite3_prepare_v2=(a,b,c,e,f)=>(d._sqlite3_prepare_v2=V.eb)(a,b,c,e,f);\nd._sqlite3_prepare_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare_v3=V.fb)(a,b,c,e,f,h);d._sqlite3_randomness=(a,b)=>(d._sqlite3_randomness=V.gb)(a,b);d._sqlite3_result_int=(a,b)=>(d._sqlite3_result_int=V.hb)(a,b);d._sqlite3_result_blob=(a,b,c,e)=>(d._sqlite3_result_blob=V.ib)(a,b,c,e);d._sqlite3_result_int64=(a,b,c)=>(d._sqlite3_result_int64=V.jb)(a,b,c);d._sqlite3_result_double=(a,b)=>(d._sqlite3_result_double=V.kb)(a,b);d._sqlite3_result_null=a=>(d._sqlite3_result_null=V.lb)(a);\nd._sqlite3_result_pointer=(a,b,c,e)=>(d._sqlite3_result_pointer=V.mb)(a,b,c,e);d._sqlite3_result_error=(a,b,c)=>(d._sqlite3_result_error=V.nb)(a,b,c);d._sqlite3_result_error_code=(a,b)=>(d._sqlite3_result_error_code=V.ob)(a,b);d._sqlite3_result_value=(a,b)=>(d._sqlite3_result_value=V.pb)(a,b);d._sqlite3_result_text=(a,b,c,e)=>(d._sqlite3_result_text=V.qb)(a,b,c,e);d._sqlite3_result_subtype=(a,b)=>(d._sqlite3_result_subtype=V.rb)(a,b);\nd._sqlite3_set_authorizer=(a,b,c)=>(d._sqlite3_set_authorizer=V.sb)(a,b,c);d._sqlite3_set_auxdata=(a,b,c,e)=>(d._sqlite3_set_auxdata=V.tb)(a,b,c,e);d._sqlite3_sql=a=>(d._sqlite3_sql=V.ub)(a);d._sqlite3_reset=a=>(d._sqlite3_reset=V.vb)(a);d._sqlite3_value_text=a=>(d._sqlite3_value_text=V.wb)(a);d._sqlite3_value_type=a=>(d._sqlite3_value_type=V.xb)(a);d._sqlite3_value_bytes=a=>(d._sqlite3_value_bytes=V.yb)(a);d._sqlite3_value_blob=a=>(d._sqlite3_value_blob=V.zb)(a);\nd._sqlite3_value_int=a=>(d._sqlite3_value_int=V.Ab)(a);d._sqlite3_value_int64=a=>(d._sqlite3_value_int64=V.Bb)(a);d._sqlite3_value_double=a=>(d._sqlite3_value_double=V.Cb)(a);d._sqlite3_value_pointer=(a,b)=>(d._sqlite3_value_pointer=V.Db)(a,b);d._sqlite3_vtab_distinct=a=>(d._sqlite3_vtab_distinct=V.Eb)(a);d._sqlite3_get_autocommit=a=>(d._sqlite3_get_autocommit=V.Fb)(a);d._sqlite3_step=a=>(d._sqlite3_step=V.Gb)(a);d._sqlite3_status64=(a,b,c,e)=>(d._sqlite3_status64=V.Hb)(a,b,c,e);\nd._sqlite3_status=(a,b,c,e)=>(d._sqlite3_status=V.Ib)(a,b,c,e);d._sqlite3_db_status=(a,b,c,e,f)=>(d._sqlite3_db_status=V.Jb)(a,b,c,e,f);d._sqlite3_msize=a=>(d._sqlite3_msize=V.Kb)(a);d._sqlite3_vfs_find=a=>(d._sqlite3_vfs_find=V.Lb)(a);d._sqlite3_vfs_register=(a,b)=>(d._sqlite3_vfs_register=V.Mb)(a,b);d._sqlite3_vfs_unregister=a=>(d._sqlite3_vfs_unregister=V.Nb)(a);d._sqlite3_release_memory=a=>(d._sqlite3_release_memory=V.Ob)(a);\nd._sqlite3_soft_heap_limit64=(a,b)=>(d._sqlite3_soft_heap_limit64=V.Pb)(a,b);d._sqlite3_memory_used=()=>(d._sqlite3_memory_used=V.Qb)();d._sqlite3_hard_heap_limit64=(a,b)=>(d._sqlite3_hard_heap_limit64=V.Rb)(a,b);d._sqlite3_memory_highwater=a=>(d._sqlite3_memory_highwater=V.Sb)(a);d._sqlite3_malloc64=(a,b)=>(d._sqlite3_malloc64=V.Tb)(a,b);d._sqlite3_realloc=(a,b)=>(d._sqlite3_realloc=V.Ub)(a,b);d._sqlite3_realloc64=(a,b,c)=>(d._sqlite3_realloc64=V.Vb)(a,b,c);\nd._sqlite3_str_vappendf=(a,b,c)=>(d._sqlite3_str_vappendf=V.Wb)(a,b,c);d._sqlite3_str_append=(a,b,c)=>(d._sqlite3_str_append=V.Xb)(a,b,c);d._sqlite3_str_appendchar=(a,b,c)=>(d._sqlite3_str_appendchar=V.Yb)(a,b,c);d._sqlite3_str_appendall=(a,b)=>(d._sqlite3_str_appendall=V.Zb)(a,b);d._sqlite3_str_appendf=(a,b,c)=>(d._sqlite3_str_appendf=V._b)(a,b,c);d._sqlite3_str_finish=a=>(d._sqlite3_str_finish=V.$b)(a);d._sqlite3_str_errcode=a=>(d._sqlite3_str_errcode=V.ac)(a);\nd._sqlite3_str_length=a=>(d._sqlite3_str_length=V.bc)(a);d._sqlite3_str_value=a=>(d._sqlite3_str_value=V.cc)(a);d._sqlite3_str_reset=a=>(d._sqlite3_str_reset=V.dc)(a);d._sqlite3_str_new=a=>(d._sqlite3_str_new=V.ec)(a);d._sqlite3_vmprintf=(a,b)=>(d._sqlite3_vmprintf=V.fc)(a,b);d._sqlite3_mprintf=(a,b)=>(d._sqlite3_mprintf=V.gc)(a,b);d._sqlite3_vsnprintf=(a,b,c,e)=>(d._sqlite3_vsnprintf=V.hc)(a,b,c,e);d._sqlite3_snprintf=(a,b,c,e)=>(d._sqlite3_snprintf=V.ic)(a,b,c,e);\nd._sqlite3_log=(a,b,c)=>(d._sqlite3_log=V.jc)(a,b,c);d._sqlite3_stricmp=(a,b)=>(d._sqlite3_stricmp=V.kc)(a,b);d._sqlite3_strnicmp=(a,b,c)=>(d._sqlite3_strnicmp=V.lc)(a,b,c);d._sqlite3_os_init=()=>(d._sqlite3_os_init=V.mc)();d._sqlite3_os_end=()=>(d._sqlite3_os_end=V.nc)();d._sqlite3_serialize=(a,b,c,e)=>(d._sqlite3_serialize=V.oc)(a,b,c,e);d._sqlite3_deserialize=(a,b,c,e,f,h,k,n)=>(d._sqlite3_deserialize=V.pc)(a,b,c,e,f,h,k,n);d._sqlite3_database_file_object=a=>(d._sqlite3_database_file_object=V.qc)(a);\nd._sqlite3_backup_init=(a,b,c,e)=>(d._sqlite3_backup_init=V.rc)(a,b,c,e);d._sqlite3_backup_step=(a,b)=>(d._sqlite3_backup_step=V.sc)(a,b);d._sqlite3_backup_finish=a=>(d._sqlite3_backup_finish=V.tc)(a);d._sqlite3_backup_remaining=a=>(d._sqlite3_backup_remaining=V.uc)(a);d._sqlite3_backup_pagecount=a=>(d._sqlite3_backup_pagecount=V.vc)(a);d._sqlite3_value_bytes16=a=>(d._sqlite3_value_bytes16=V.wc)(a);d._sqlite3_value_subtype=a=>(d._sqlite3_value_subtype=V.xc)(a);\nd._sqlite3_value_text16=a=>(d._sqlite3_value_text16=V.yc)(a);d._sqlite3_value_text16be=a=>(d._sqlite3_value_text16be=V.zc)(a);d._sqlite3_value_text16le=a=>(d._sqlite3_value_text16le=V.Ac)(a);d._sqlite3_value_encoding=a=>(d._sqlite3_value_encoding=V.Bc)(a);d._sqlite3_value_nochange=a=>(d._sqlite3_value_nochange=V.Cc)(a);d._sqlite3_value_frombind=a=>(d._sqlite3_value_frombind=V.Dc)(a);d._sqlite3_value_dup=a=>(d._sqlite3_value_dup=V.Ec)(a);d._sqlite3_value_free=a=>(d._sqlite3_value_free=V.Fc)(a);\nd._sqlite3_result_blob64=(a,b,c,e,f)=>(d._sqlite3_result_blob64=V.Gc)(a,b,c,e,f);d._sqlite3_result_error16=(a,b,c)=>(d._sqlite3_result_error16=V.Hc)(a,b,c);d._sqlite3_result_text64=(a,b,c,e,f,h)=>(d._sqlite3_result_text64=V.Ic)(a,b,c,e,f,h);d._sqlite3_result_text16=(a,b,c,e)=>(d._sqlite3_result_text16=V.Jc)(a,b,c,e);d._sqlite3_result_text16be=(a,b,c,e)=>(d._sqlite3_result_text16be=V.Kc)(a,b,c,e);d._sqlite3_result_text16le=(a,b,c,e)=>(d._sqlite3_result_text16le=V.Lc)(a,b,c,e);\nd._sqlite3_result_error_toobig=a=>(d._sqlite3_result_error_toobig=V.Mc)(a);d._sqlite3_result_zeroblob=(a,b)=>(d._sqlite3_result_zeroblob=V.Nc)(a,b);d._sqlite3_result_zeroblob64=(a,b,c)=>(d._sqlite3_result_zeroblob64=V.Oc)(a,b,c);d._sqlite3_result_error_nomem=a=>(d._sqlite3_result_error_nomem=V.Pc)(a);d._sqlite3_user_data=a=>(d._sqlite3_user_data=V.Qc)(a);d._sqlite3_vtab_nochange=a=>(d._sqlite3_vtab_nochange=V.Rc)(a);d._sqlite3_vtab_in_first=(a,b)=>(d._sqlite3_vtab_in_first=V.Sc)(a,b);\nd._sqlite3_vtab_in_next=(a,b)=>(d._sqlite3_vtab_in_next=V.Tc)(a,b);d._sqlite3_aggregate_context=(a,b)=>(d._sqlite3_aggregate_context=V.Uc)(a,b);d._sqlite3_data_count=a=>(d._sqlite3_data_count=V.Vc)(a);d._sqlite3_column_bytes16=(a,b)=>(d._sqlite3_column_bytes16=V.Wc)(a,b);d._sqlite3_column_text16=(a,b)=>(d._sqlite3_column_text16=V.Xc)(a,b);d._sqlite3_column_name16=(a,b)=>(d._sqlite3_column_name16=V.Yc)(a,b);d._sqlite3_bind_blob64=(a,b,c,e,f,h)=>(d._sqlite3_bind_blob64=V.Zc)(a,b,c,e,f,h);\nd._sqlite3_bind_text64=(a,b,c,e,f,h,k)=>(d._sqlite3_bind_text64=V._c)(a,b,c,e,f,h,k);d._sqlite3_bind_text16=(a,b,c,e,f)=>(d._sqlite3_bind_text16=V.$c)(a,b,c,e,f);d._sqlite3_bind_zeroblob=(a,b,c)=>(d._sqlite3_bind_zeroblob=V.ad)(a,b,c);d._sqlite3_bind_zeroblob64=(a,b,c,e)=>(d._sqlite3_bind_zeroblob64=V.bd)(a,b,c,e);d._sqlite3_bind_parameter_count=a=>(d._sqlite3_bind_parameter_count=V.cd)(a);d._sqlite3_bind_parameter_name=(a,b)=>(d._sqlite3_bind_parameter_name=V.dd)(a,b);\nd._sqlite3_bind_parameter_index=(a,b)=>(d._sqlite3_bind_parameter_index=V.ed)(a,b);d._sqlite3_db_handle=a=>(d._sqlite3_db_handle=V.fd)(a);d._sqlite3_stmt_readonly=a=>(d._sqlite3_stmt_readonly=V.gd)(a);d._sqlite3_stmt_isexplain=a=>(d._sqlite3_stmt_isexplain=V.hd)(a);d._sqlite3_stmt_explain=(a,b)=>(d._sqlite3_stmt_explain=V.id)(a,b);d._sqlite3_stmt_busy=a=>(d._sqlite3_stmt_busy=V.jd)(a);d._sqlite3_stmt_status=(a,b,c)=>(d._sqlite3_stmt_status=V.kd)(a,b,c);\nd._sqlite3_expanded_sql=a=>(d._sqlite3_expanded_sql=V.ld)(a);d._sqlite3_value_numeric_type=a=>(d._sqlite3_value_numeric_type=V.md)(a);d._sqlite3_blob_open=(a,b,c,e,f,h,k,n)=>(d._sqlite3_blob_open=V.nd)(a,b,c,e,f,h,k,n);d._sqlite3_blob_close=a=>(d._sqlite3_blob_close=V.od)(a);d._sqlite3_blob_read=(a,b,c,e)=>(d._sqlite3_blob_read=V.pd)(a,b,c,e);d._sqlite3_blob_write=(a,b,c,e)=>(d._sqlite3_blob_write=V.qd)(a,b,c,e);d._sqlite3_blob_bytes=a=>(d._sqlite3_blob_bytes=V.rd)(a);\nd._sqlite3_blob_reopen=(a,b,c)=>(d._sqlite3_blob_reopen=V.sd)(a,b,c);d._sqlite3_strglob=(a,b)=>(d._sqlite3_strglob=V.td)(a,b);d._sqlite3_strlike=(a,b,c)=>(d._sqlite3_strlike=V.ud)(a,b,c);d._sqlite3_cancel_auto_extension=a=>(d._sqlite3_cancel_auto_extension=V.vd)(a);d._sqlite3_reset_auto_extension=()=>(d._sqlite3_reset_auto_extension=V.wd)();d._sqlite3_prepare=(a,b,c,e,f)=>(d._sqlite3_prepare=V.xd)(a,b,c,e,f);d._sqlite3_prepare16=(a,b,c,e,f)=>(d._sqlite3_prepare16=V.yd)(a,b,c,e,f);\nd._sqlite3_prepare16_v2=(a,b,c,e,f)=>(d._sqlite3_prepare16_v2=V.zd)(a,b,c,e,f);d._sqlite3_prepare16_v3=(a,b,c,e,f,h)=>(d._sqlite3_prepare16_v3=V.Ad)(a,b,c,e,f,h);d._sqlite3_get_table=(a,b,c,e,f,h)=>(d._sqlite3_get_table=V.Bd)(a,b,c,e,f,h);d._sqlite3_free_table=a=>(d._sqlite3_free_table=V.Cd)(a);d._sqlite3_create_module=(a,b,c,e)=>(d._sqlite3_create_module=V.Dd)(a,b,c,e);d._sqlite3_drop_modules=(a,b)=>(d._sqlite3_drop_modules=V.Ed)(a,b);d._sqlite3_vtab_on_conflict=a=>(d._sqlite3_vtab_on_conflict=V.Fd)(a);\nd._sqlite3_vtab_collation=(a,b)=>(d._sqlite3_vtab_collation=V.Gd)(a,b);d._sqlite3_vtab_in=(a,b,c)=>(d._sqlite3_vtab_in=V.Hd)(a,b,c);d._sqlite3_vtab_rhs_value=(a,b,c)=>(d._sqlite3_vtab_rhs_value=V.Id)(a,b,c);d._sqlite3_keyword_name=(a,b,c)=>(d._sqlite3_keyword_name=V.Jd)(a,b,c);d._sqlite3_keyword_count=()=>(d._sqlite3_keyword_count=V.Kd)();d._sqlite3_keyword_check=(a,b)=>(d._sqlite3_keyword_check=V.Ld)(a,b);d._sqlite3_complete=a=>(d._sqlite3_complete=V.Md)(a);\nd._sqlite3_complete16=a=>(d._sqlite3_complete16=V.Nd)(a);d._sqlite3_libversion=()=>(d._sqlite3_libversion=V.Od)();d._sqlite3_libversion_number=()=>(d._sqlite3_libversion_number=V.Pd)();d._sqlite3_threadsafe=()=>(d._sqlite3_threadsafe=V.Qd)();d._sqlite3_initialize=()=>(d._sqlite3_initialize=V.Rd)();d._sqlite3_config=(a,b)=>(d._sqlite3_config=V.Sd)(a,b);d._sqlite3_db_mutex=a=>(d._sqlite3_db_mutex=V.Td)(a);d._sqlite3_db_release_memory=a=>(d._sqlite3_db_release_memory=V.Ud)(a);\nd._sqlite3_db_cacheflush=a=>(d._sqlite3_db_cacheflush=V.Vd)(a);d._sqlite3_db_config=(a,b,c)=>(d._sqlite3_db_config=V.Wd)(a,b,c);d._sqlite3_last_insert_rowid=a=>(d._sqlite3_last_insert_rowid=V.Xd)(a);d._sqlite3_set_last_insert_rowid=(a,b,c)=>(d._sqlite3_set_last_insert_rowid=V.Yd)(a,b,c);d._sqlite3_changes64=a=>(d._sqlite3_changes64=V.Zd)(a);d._sqlite3_changes=a=>(d._sqlite3_changes=V._d)(a);d._sqlite3_total_changes64=a=>(d._sqlite3_total_changes64=V.$d)(a);\nd._sqlite3_total_changes=a=>(d._sqlite3_total_changes=V.ae)(a);d._sqlite3_txn_state=(a,b)=>(d._sqlite3_txn_state=V.be)(a,b);d._sqlite3_close_v2=a=>(d._sqlite3_close_v2=V.ce)(a);d._sqlite3_busy_handler=(a,b,c)=>(d._sqlite3_busy_handler=V.de)(a,b,c);d._sqlite3_progress_handler=(a,b,c,e)=>(d._sqlite3_progress_handler=V.ee)(a,b,c,e);d._sqlite3_busy_timeout=(a,b)=>(d._sqlite3_busy_timeout=V.fe)(a,b);d._sqlite3_interrupt=a=>(d._sqlite3_interrupt=V.ge)(a);\nd._sqlite3_is_interrupted=a=>(d._sqlite3_is_interrupted=V.he)(a);d._sqlite3_create_function=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function=V.ie)(a,b,c,e,f,h,k,n);d._sqlite3_create_window_function=(a,b,c,e,f,h,k,n,l,m)=>(d._sqlite3_create_window_function=V.je)(a,b,c,e,f,h,k,n,l,m);d._sqlite3_create_function16=(a,b,c,e,f,h,k,n)=>(d._sqlite3_create_function16=V.ke)(a,b,c,e,f,h,k,n);d._sqlite3_overload_function=(a,b,c)=>(d._sqlite3_overload_function=V.le)(a,b,c);\nd._sqlite3_trace_v2=(a,b,c,e)=>(d._sqlite3_trace_v2=V.me)(a,b,c,e);d._sqlite3_update_hook=(a,b,c)=>(d._sqlite3_update_hook=V.ne)(a,b,c);d._sqlite3_rollback_hook=(a,b,c)=>(d._sqlite3_rollback_hook=V.oe)(a,b,c);d._sqlite3_autovacuum_pages=(a,b,c,e)=>(d._sqlite3_autovacuum_pages=V.pe)(a,b,c,e);d._sqlite3_wal_autocheckpoint=(a,b)=>(d._sqlite3_wal_autocheckpoint=V.qe)(a,b);d._sqlite3_wal_hook=(a,b,c)=>(d._sqlite3_wal_hook=V.re)(a,b,c);\nd._sqlite3_wal_checkpoint_v2=(a,b,c,e,f)=>(d._sqlite3_wal_checkpoint_v2=V.se)(a,b,c,e,f);d._sqlite3_wal_checkpoint=(a,b)=>(d._sqlite3_wal_checkpoint=V.te)(a,b);d._sqlite3_error_offset=a=>(d._sqlite3_error_offset=V.ue)(a);d._sqlite3_errmsg16=a=>(d._sqlite3_errmsg16=V.ve)(a);d._sqlite3_extended_errcode=a=>(d._sqlite3_extended_errcode=V.we)(a);d._sqlite3_system_errno=a=>(d._sqlite3_system_errno=V.xe)(a);d._sqlite3_errstr=a=>(d._sqlite3_errstr=V.ye)(a);\nd._sqlite3_limit=(a,b,c)=>(d._sqlite3_limit=V.ze)(a,b,c);d._sqlite3_open_v2=(a,b,c,e)=>(d._sqlite3_open_v2=V.Ae)(a,b,c,e);d._sqlite3_open16=(a,b)=>(d._sqlite3_open16=V.Be)(a,b);d._sqlite3_create_collation=(a,b,c,e,f)=>(d._sqlite3_create_collation=V.Ce)(a,b,c,e,f);d._sqlite3_create_collation_v2=(a,b,c,e,f,h)=>(d._sqlite3_create_collation_v2=V.De)(a,b,c,e,f,h);d._sqlite3_create_collation16=(a,b,c,e,f)=>(d._sqlite3_create_collation16=V.Ee)(a,b,c,e,f);\nd._sqlite3_collation_needed=(a,b,c)=>(d._sqlite3_collation_needed=V.Fe)(a,b,c);d._sqlite3_collation_needed16=(a,b,c)=>(d._sqlite3_collation_needed16=V.Ge)(a,b,c);d._sqlite3_get_clientdata=(a,b)=>(d._sqlite3_get_clientdata=V.He)(a,b);d._sqlite3_set_clientdata=(a,b,c,e)=>(d._sqlite3_set_clientdata=V.Ie)(a,b,c,e);d._sqlite3_table_column_metadata=(a,b,c,e,f,h,k,n,l)=>(d._sqlite3_table_column_metadata=V.Je)(a,b,c,e,f,h,k,n,l);d._sqlite3_sleep=a=>(d._sqlite3_sleep=V.Ke)(a);\nd._sqlite3_extended_result_codes=(a,b)=>(d._sqlite3_extended_result_codes=V.Le)(a,b);d._sqlite3_file_control=(a,b,c,e)=>(d._sqlite3_file_control=V.Me)(a,b,c,e);d._sqlite3_test_control=(a,b)=>(d._sqlite3_test_control=V.Ne)(a,b);d._sqlite3_create_filename=(a,b,c,e,f)=>(d._sqlite3_create_filename=V.Oe)(a,b,c,e,f);d._sqlite3_free_filename=a=>(d._sqlite3_free_filename=V.Pe)(a);d._sqlite3_uri_parameter=(a,b)=>(d._sqlite3_uri_parameter=V.Qe)(a,b);d._sqlite3_uri_key=(a,b)=>(d._sqlite3_uri_key=V.Re)(a,b);\nd._sqlite3_uri_boolean=(a,b,c)=>(d._sqlite3_uri_boolean=V.Se)(a,b,c);d._sqlite3_uri_int64=(a,b,c,e)=>(d._sqlite3_uri_int64=V.Te)(a,b,c,e);d._sqlite3_filename_database=a=>(d._sqlite3_filename_database=V.Ue)(a);d._sqlite3_filename_journal=a=>(d._sqlite3_filename_journal=V.Ve)(a);d._sqlite3_filename_wal=a=>(d._sqlite3_filename_wal=V.We)(a);d._sqlite3_db_name=(a,b)=>(d._sqlite3_db_name=V.Xe)(a,b);d._sqlite3_db_filename=(a,b)=>(d._sqlite3_db_filename=V.Ye)(a,b);\nd._sqlite3_db_readonly=(a,b)=>(d._sqlite3_db_readonly=V.Ze)(a,b);d._sqlite3_compileoption_used=a=>(d._sqlite3_compileoption_used=V._e)(a);d._sqlite3_compileoption_get=a=>(d._sqlite3_compileoption_get=V.$e)(a);d._sqlite3_sourceid=()=>(d._sqlite3_sourceid=V.af)();var $c=d._malloc=a=>($c=d._malloc=V.bf)(a),ed=d._free=a=>(ed=d._free=V.cf)(a);d._RegisterExtensionFunctions=a=>(d._RegisterExtensionFunctions=V.df)(a);d._set_authorizer=a=>(d._set_authorizer=V.ef)(a);\nd._create_function=(a,b,c,e,f,h)=>(d._create_function=V.ff)(a,b,c,e,f,h);d._on_tables_changed=(a,b,c,e,f,h)=>(d._on_tables_changed=V.gf)(a,b,c,e,f,h);d._register_table_update_hook=a=>(d._register_table_update_hook=V.hf)(a);d._create_module=(a,b,c,e)=>(d._create_module=V.jf)(a,b,c,e);d._progress_handler=(a,b)=>(d._progress_handler=V.kf)(a,b);d._register_vfs=(a,b,c,e)=>(d._register_vfs=V.lf)(a,b,c,e);d._getSqliteFree=()=>(d._getSqliteFree=V.mf)();var qd=d._main=(a,b)=>(qd=d._main=V.nf)(a,b);\nd._setup_powersync=()=>(d._setup_powersync=V.of)();var gb=(a,b)=>(gb=V.qf)(a,b),rd=()=>(rd=V.rf)(),ld=a=>(ld=V.sf)(a),md=a=>(md=V.tf)(a),nd=()=>(nd=V.uf)(),cd=a=>(cd=V.vf)(a),Rc=()=>(Rc=V.wf)(),bd=a=>(bd=V.xf)(a),dd=()=>(dd=V.yf)();d._sqlite3_version=50840;d.getTempRet0=()=>rd();d.ccall=Z;d.cwrap=(a,b,c,e)=>{var f=!c||c.every(h=>\"number\"===h||\"boolean\"===h);return\"string\"!==b&&f&&!e?d[\"_\"+a]:(...h)=>Z(a,b,c,h,e)};\nd.addFunction=(a,b)=>{if(!jd){jd=new WeakMap;var c=hd.length;if(jd)for(var e=0;e<0+c;e++){var f=hd.get(e);f&&jd.set(f,e)}}if(c=jd.get(a)||0)return c;if(kd.length)c=kd.pop();else{try{hd.grow(1)}catch(n){if(!(n instanceof RangeError))throw n;throw\"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.\";}c=hd.length-1}try{hd.set(c,a)}catch(n){if(!(n instanceof TypeError))throw n;if(\"function\"==typeof WebAssembly.Function){e=WebAssembly.Function;f={i:\"i32\",j:\"i64\",f:\"f32\",d:\"f64\",e:\"externref\",p:\"i32\"};for(var h=\n{parameters:[],results:\"v\"==b[0]?[]:[f[b[0]]]},k=1;k<b.length;++k)h.parameters.push(f[b[k]]);b=new e(h,a)}else{e=[1];f=b.slice(0,1);b=b.slice(1);h={i:127,p:127,j:126,f:125,d:124,e:111};e.push(96);k=b.length;128>k?e.push(k):e.push(k%128|128,k>>7);for(k=0;k<b.length;++k)e.push(h[b[k]]);\"v\"==f?e.push(0):e.push(1,h[f]);b=[0,97,115,109,1,0,0,0,1];f=e.length;128>f?b.push(f):b.push(f%128|128,f>>7);b.push(...e);b.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);b=new WebAssembly.Module(new Uint8Array(b));b=(new WebAssembly.Instance(b,\n{e:{f:a}})).exports.f}hd.set(c,b)}jd.set(a,c);return c};d.setValue=I;d.getValue=H;d.UTF8ToString=(a,b)=>a?J(w,a,b):\"\";d.stringToUTF8=(a,b,c)=>K(a,w,b,c);d.lengthBytesUTF8=Ua;d.intArrayFromString=Va;d.intArrayToString=function(a){for(var b=[],c=0;c<a.length;c++){var e=a[c];255<e&&(e&=255);b.push(String.fromCharCode(e))}return b.join(\"\")};d.AsciiToString=a=>{for(var b=\"\";;){var c=w[a++];if(!c)return b;b+=String.fromCharCode(c)}};\nd.UTF16ToString=(a,b)=>{var c=a>>1;for(var e=c+b/2;!(c>=e)&&qa[c];)++c;c<<=1;if(32<c-a&&od)return od.decode(w.subarray(a,c));c=\"\";for(e=0;!(e>=b/2);++e){var f=x[a+2*e>>1];if(0==f)break;c+=String.fromCharCode(f)}return c};d.stringToUTF16=(a,b,c)=>{c??=2147483647;if(2>c)return 0;c-=2;var e=b;c=c<2*a.length?c/2:a.length;for(var f=0;f<c;++f)x[b>>1]=a.charCodeAt(f),b+=2;x[b>>1]=0;return b-e};\nd.UTF32ToString=(a,b)=>{for(var c=0,e=\"\";!(c>=b/4);){var f=z[a+4*c>>2];if(0==f)break;++c;65536<=f?(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023)):e+=String.fromCharCode(f)}return e};d.stringToUTF32=(a,b,c)=>{c??=2147483647;if(4>c)return 0;var e=b;c=e+c-4;for(var f=0;f<a.length;++f){var h=a.charCodeAt(f);if(55296<=h&&57343>=h){var k=a.charCodeAt(++f);h=65536+((h&1023)<<10)|k&1023}z[b>>2]=h;b+=4;if(b+4>c)break}z[b>>2]=0;return b-e};d.writeArrayToMemory=(a,b)=>{v.set(a,b)};var sd;\nBa=function td(){sd||ud();sd||(Ba=td)};\nfunction ud(){function a(){if(!sd&&(sd=!0,d.calledRun=!0,!u)){d.noFSInit||Lb||(Lb=!0,d.stdin=d.stdin,d.stdout=d.stdout,d.stderr=d.stderr,d.stdin?Mb(\"stdin\",d.stdin):Cb(\"/dev/tty\",\"/dev/stdin\"),d.stdout?Mb(\"stdout\",null,d.stdout):Cb(\"/dev/tty\",\"/dev/stdout\"),d.stderr?Mb(\"stderr\",null,d.stderr):Cb(\"/dev/tty1\",\"/dev/stderr\"),Ib(\"/dev/stdin\",0),Ib(\"/dev/stdout\",1),Ib(\"/dev/stderr\",1));mb=!1;Ja(va);Ja(wa);aa(d);d.onRuntimeInitialized?.();if(vd){var b=qd;try{var c=b(0,0);pa=c;Lc(c)}catch(e){Mc(e)}}if(d.postRun)for(\"function\"==\ntypeof d.postRun&&(d.postRun=[d.postRun]);d.postRun.length;)b=d.postRun.shift(),xa.unshift(b);Ja(xa)}}if(!(0<za)){if(d.preRun)for(\"function\"==typeof d.preRun&&(d.preRun=[d.preRun]);d.preRun.length;)ya();Ja(ua);0<za||(d.setStatus?(d.setStatus(\"Running...\"),setTimeout(function(){setTimeout(function(){d.setStatus(\"\")},1);a()},1)):a())}}if(d.preInit)for(\"function\"==typeof d.preInit&&(d.preInit=[d.preInit]);0<d.preInit.length;)d.preInit.pop()();var vd=!0;d.noInitialRun&&(vd=!1);ud();moduleRtn=ca;\n\n\n return moduleRtn;\n}\n);\n})();\nexport default Module;\n"],"names":[],"sourceRoot":""}
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powersync/web",
3
- "version": "1.8.2",
3
+ "version": "1.9.0",
4
4
  "description": "A Web SDK for JourneyApps PowerSync",
5
5
  "main": "lib/src/index.js",
6
6
  "types": "lib/src/index.d.ts",
@@ -56,8 +56,8 @@
56
56
  "author": "JOURNEYAPPS",
57
57
  "license": "Apache-2.0",
58
58
  "peerDependencies": {
59
- "@journeyapps/wa-sqlite": "^0.3.0",
60
- "@powersync/common": "workspace:^1.19.0"
59
+ "@journeyapps/wa-sqlite": "^0.4.0",
60
+ "@powersync/common": "workspace:^1.20.0"
61
61
  },
62
62
  "dependencies": {
63
63
  "@powersync/common": "workspace:*",
@@ -67,7 +67,7 @@
67
67
  "js-logger": "^1.6.1"
68
68
  },
69
69
  "devDependencies": {
70
- "@journeyapps/wa-sqlite": "^0.3.0",
70
+ "@journeyapps/wa-sqlite": "^0.4.0",
71
71
  "@types/uuid": "^9.0.6",
72
72
  "@vitest/browser": "^1.3.1",
73
73
  "crypto-browserify": "^3.12.0",