1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="71c93c5b-bc9d-41a2-907f-eeb198e677fe",e._sentryDebugIdIdentifier="sentry-dbid-71c93c5b-bc9d-41a2-907f-eeb198e677fe")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9275],{25584:(e,r,t)=>{e.exports=t.p+"static/media/wa-sqlite.aca54392.wasm"},69275:(e,r,t)=>{t.d(r,{default:()=>n});let n=async function(e={}){var r,n,o,i,a,s,l,_,u,c,d,f,m,h,p,v,w,b,g,y,q,E,k,x,S,M,D,A,F,C=!!globalThis.window,P=!!globalThis.WorkerGlobalScope;globalThis.process?.versions?.node&&globalThis.process?.type;var T="./this.program",j=(e,r)=>{throw r},z="";if(C||P){try{z=new URL(".","file:///vercel/path0/node_modules/.pnpm/@[email protected]/node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite.mjs").href}catch{}P&&(o=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),n=async e=>{var r=await fetch(e,{credentials:"same-origin"});if(r.ok)return r.arrayBuffer();throw Error(r.status+" : "+r.url)}}var R=console.log.bind(console),N=console.error.bind(console),O=!1,L=!1;function U(){var r=D.buffer;_=new Int8Array(r),c=new Int16Array(r),e.HEAPU8=u=new Uint8Array(r),d=new Uint16Array(r),e.HEAP32=f=new Int32Array(r),m=new Uint32Array(r),h=new Float32Array(r),p=new Float64Array(r)}function I(r){e.onAbort?.(r),N(r="Aborted("+r+")"),O=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw l?.(t),t}async function B(e){if(!i)try{var r=await n(e);return new Uint8Array(r)}catch{}if(e==v&&i)return new Uint8Array(i);if(o)return o(e);throw"both async and sync fetching of the wasm failed"}async function $(e,r){try{var t=await B(e);return await WebAssembly.instantiate(t,r)}catch(e){N(`failed to asynchronously prepare wasm: ${e}`),I(e)}}async function H(e,r,t){if(!e)try{var n=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(e){N(`wasm streaming compile failed: ${e}`),N("falling back to ArrayBuffer instantiation")}return $(r,t)}async function W(){function r(r,t){var n;return e._powersync_init_static=(n=F=r.exports).ra,e._sqlite3_status64=n.sa,e._sqlite3_status=n.ta,e._sqlite3_msize=n.ua,e._sqlite3_db_status=n.va,e._sqlite3_vfs_find=n.wa,e._sqlite3_vfs_register=n.xa,e._sqlite3_vfs_unregister=n.ya,e._sqlite3_release_memory=n.za,e._sqlite3_soft_heap_limit64=n.Aa,e._sqlite3_memory_used=n.Ba,e._sqlite3_hard_heap_limit64=n.Ca,e._sqlite3_memory_highwater=n.Da,e._sqlite3_malloc=n.Ea,e._sqlite3_malloc64=n.Fa,e._sqlite3_free=n.Ga,e._sqlite3_realloc=n.Ha,e._sqlite3_realloc64=n.Ia,e._sqlite3_str_vappendf=n.Ja,e._sqlite3_str_append=n.Ka,e._sqlite3_str_appendchar=n.La,e._sqlite3_str_appendall=n.Ma,e._sqlite3_str_appendf=n.Na,e._sqlite3_str_finish=n.Oa,e._sqlite3_str_errcode=n.Pa,e._sqlite3_str_length=n.Qa,e._sqlite3_str_value=n.Ra,e._sqlite3_str_reset=n.Sa,e._sqlite3_str_new=n.Ta,e._sqlite3_vmprintf=n.Ua,e._sqlite3_mprintf=n.Va,e._sqlite3_vsnprintf=n.Wa,e._sqlite3_snprintf=n.Xa,e._sqlite3_log=n.Ya,e._sqlite3_randomness=n.Za,e._sqlite3_stricmp=n._a,e._sqlite3_strnicmp=n.$a,e._sqlite3_os_init=n.ab,e._sqlite3_os_end=n.bb,e._sqlite3_serialize=n.cb,e._sqlite3_prepare_v2=n.db,e._sqlite3_step=n.eb,e._sqlite3_column_int64=n.fb,e._sqlite3_reset=n.gb,e._sqlite3_exec=n.hb,e._sqlite3_column_int=n.ib,e._sqlite3_finalize=n.jb,e._sqlite3_deserialize=n.kb,e._sqlite3_database_file_object=n.lb,e._sqlite3_backup_init=n.mb,e._sqlite3_backup_step=n.nb,e._sqlite3_backup_finish=n.ob,e._sqlite3_backup_remaining=n.pb,e._sqlite3_backup_pagecount=n.qb,e._sqlite3_clear_bindings=n.rb,e._sqlite3_value_blob=n.sb,e._sqlite3_value_text=n.tb,e._sqlite3_value_bytes=n.ub,e._sqlite3_value_bytes16=n.vb,e._sqlite3_value_double=n.wb,e._sqlite3_value_int=n.xb,e._sqlite3_value_int64=n.yb,e._sqlite3_value_subtype=n.zb,e._sqlite3_value_pointer=n.Ab,e._sqlite3_value_text16=n.Bb,e._sqlite3_value_text16be=n.Cb,e._sqlite3_value_text16le=n.Db,e._sqlite3_value_type=n.Eb,e._sqlite3_value_encoding=n.Fb,e._sqlite3_value_nochange=n.Gb,e._sqlite3_value_frombind=n.Hb,e._sqlite3_value_dup=n.Ib,e._sqlite3_value_free=n.Jb,e._sqlite3_result_blob=n.Kb,e._sqlite3_result_blob64=n.Lb,e._sqlite3_result_double=n.Mb,e._sqlite3_result_error=n.Nb,e._sqlite3_result_error16=n.Ob,e._sqlite3_result_int=n.Pb,e._sqlite3_result_int64=n.Qb,e._sqlite3_result_null=n.Rb,e._sqlite3_result_pointer=n.Sb,e._sqlite3_result_subtype=n.Tb,e._sqlite3_result_text=n.Ub,e._sqlite3_result_text64=n.Vb,e._sqlite3_result_text16=n.Wb,e._sqlite3_result_text16be=n.Xb,e._sqlite3_result_text16le=n.Yb,e._sqlite3_result_value=n.Zb,e._sqlite3_result_error_toobig=n._b,e._sqlite3_result_zeroblob=n.$b,e._sqlite3_result_zeroblob64=n.ac,e._sqlite3_result_error_code=n.bc,e._sqlite3_result_error_nomem=n.cc,e._sqlite3_user_data=n.dc,e._sqlite3_context_db_handle=n.ec,e._sqlite3_vtab_nochange=n.fc,e._sqlite3_vtab_in_first=n.gc,e._sqlite3_vtab_in_next=n.hc,e._sqlite3_aggregate_context=n.ic,e._sqlite3_get_auxdata=n.jc,e._sqlite3_set_auxdata=n.kc,e._sqlite3_column_count=n.lc,e._sqlite3_data_count=n.mc,e._sqlite3_column_blob=n.nc,e._sqlite3_column_bytes=n.oc,e._sqlite3_column_bytes16=n.pc,e._sqlite3_column_double=n.qc,e._sqlite3_column_text=n.rc,e._sqlite3_column_value=n.sc,e._sqlite3_column_text16=n.tc,e._sqlite3_column_type=n.uc,e._sqlite3_column_name=n.vc,e._sqlite3_column_name16=n.wc,e._sqlite3_bind_blob=n.xc,e._sqlite3_bind_blob64=n.yc,e._sqlite3_bind_double=n.zc,e._sqlite3_bind_int=n.Ac,e._sqlite3_bind_int64=n.Bc,e._sqlite3_bind_null=n.Cc,e._sqlite3_bind_pointer=n.Dc,e._sqlite3_bind_text=n.Ec,e._sqlite3_bind_text64=n.Fc,e._sqlite3_bind_text16=n.Gc,e._sqlite3_bind_value=n.Hc,e._sqlite3_bind_zeroblob=n.Ic,e._sqlite3_bind_zeroblob64=n.Jc,e._sqlite3_bind_parameter_count=n.Kc,e._sqlite3_bind_parameter_name=n.Lc,e._sqlite3_bind_parameter_index=n.Mc,e._sqlite3_db_handle=n.Nc,e._sqlite3_stmt_readonly=n.Oc,e._sqlite3_stmt_isexplain=n.Pc,e._sqlite3_stmt_explain=n.Qc,e._sqlite3_stmt_busy=n.Rc,e._sqlite3_next_stmt=n.Sc,e._sqlite3_stmt_status=n.Tc,e._sqlite3_sql=n.Uc,e._sqlite3_expanded_sql=n.Vc,e._sqlite3_value_numeric_type=n.Wc,e._sqlite3_blob_open=n.Xc,e._sqlite3_blob_close=n.Yc,e._sqlite3_blob_read=n.Zc,e._sqlite3_blob_write=n._c,e._sqlite3_blob_bytes=n.$c,e._sqlite3_blob_reopen=n.ad,e._sqlite3_set_authorizer=n.bd,e._sqlite3_strglob=n.cd,e._sqlite3_strlike=n.dd,e._sqlite3_errmsg=n.ed,e._sqlite3_load_extension=n.fd,e._sqlite3_enable_load_extension=n.gd,e._sqlite3_auto_extension=n.hd,e._sqlite3_cancel_auto_extension=n.id,e._sqlite3_reset_auto_extension=n.jd,e._sqlite3_prepare=n.kd,e._sqlite3_prepare_v3=n.ld,e._sqlite3_prepare16=n.md,e._sqlite3_prepare16_v2=n.nd,e._sqlite3_prepare16_v3=n.od,e._sqlite3_get_table=n.pd,e._sqlite3_free_table=n.qd,e._sqlite3_create_module=n.rd,e._sqlite3_create_module_v2=n.sd,e._sqlite3_drop_modules=n.td,e._sqlite3_declare_vtab=n.ud,e._sqlite3_vtab_on_conflict=n.vd,e._sqlite3_vtab_config=n.wd,e._sqlite3_vtab_collation=n.xd,e._sqlite3_vtab_in=n.yd,e._sqlite3_vtab_rhs_value=n.zd,e._sqlite3_vtab_distinct=n.Ad,e._sqlite3_keyword_name=n.Bd,e._sqlite3_keyword_count=n.Cd,e._sqlite3_keyword_check=n.Dd,e._sqlite3_complete=n.Ed,e._sqlite3_complete16=n.Fd,e._sqlite3_libversion=n.Gd,e._sqlite3_libversion_number=n.Hd,e._sqlite3_threadsafe=n.Id,e._sqlite3_initialize=n.Jd,e._sqlite3_shutdown=n.Kd,e._sqlite3_config=n.Ld,e._sqlite3_db_mutex=n.Md,e._sqlite3_db_release_memory=n.Nd,e._sqlite3_db_cacheflush=n.Od,e._sqlite3_db_config=n.Pd,e._sqlite3_last_insert_rowid=n.Qd,e._sqlite3_set_last_insert_rowid=n.Rd,e._sqlite3_changes64=n.Sd,e._sqlite3_changes=n.Td,e._sqlite3_total_changes64=n.Ud,e._sqlite3_total_changes=n.V
1d,e._sqlite3_txn_state=n.Wd,e._sqlite3_close=n.Xd,e._sqlite3_close_v2=n.Yd,e._sqlite3_busy_handler=n.Zd,e._sqlite3_progress_handler=n._d,e._sqlite3_busy_timeout=n.$d,e._sqlite3_interrupt=n.ae,e._sqlite3_is_interrupted=n.be,e._sqlite3_create_function=n.ce,e._sqlite3_create_function_v2=n.de,e._sqlite3_create_window_function=n.ee,e._sqlite3_create_function16=n.fe,e._sqlite3_overload_function=n.ge,e._sqlite3_trace_v2=n.he,e._sqlite3_commit_hook=n.ie,e._sqlite3_update_hook=n.je,e._sqlite3_rollback_hook=n.ke,e._sqlite3_autovacuum_pages=n.le,e._sqlite3_wal_autocheckpoint=n.me,e._sqlite3_wal_hook=n.ne,e._sqlite3_wal_checkpoint_v2=n.oe,e._sqlite3_wal_checkpoint=n.pe,e._sqlite3_error_offset=n.qe,e._sqlite3_errmsg16=n.re,e._sqlite3_errcode=n.se,e._sqlite3_extended_errcode=n.te,e._sqlite3_system_errno=n.ue,e._sqlite3_errstr=n.ve,e._sqlite3_limit=n.we,e._sqlite3_open=n.xe,e._sqlite3_open_v2=n.ye,e._sqlite3_open16=n.ze,e._sqlite3_create_collation=n.Ae,e._sqlite3_create_collation_v2=n.Be,e._sqlite3_create_collation16=n.Ce,e._sqlite3_collation_needed=n.De,e._sqlite3_collation_needed16=n.Ee,e._sqlite3_get_clientdata=n.Fe,e._sqlite3_set_clientdata=n.Ge,e._sqlite3_get_autocommit=n.He,e._sqlite3_table_column_metadata=n.Ie,e._sqlite3_sleep=n.Je,e._sqlite3_extended_result_codes=n.Ke,e._sqlite3_file_control=n.Le,e._sqlite3_test_control=n.Me,e._sqlite3_create_filename=n.Ne,e._sqlite3_free_filename=n.Oe,e._sqlite3_uri_parameter=n.Pe,e._sqlite3_uri_key=n.Qe,e._sqlite3_uri_boolean=n.Re,e._sqlite3_uri_int64=n.Se,e._sqlite3_filename_database=n.Te,e._sqlite3_filename_journal=n.Ue,e._sqlite3_filename_wal=n.Ve,e._sqlite3_db_name=n.We,e._sqlite3_db_filename=n.Xe,e._sqlite3_db_readonly=n.Ye,e._sqlite3_compileoption_used=n.Ze,e._sqlite3_compileoption_get=n._e,e._sqlite3_sourceid=n.$e,e._memcmp=n.af,e._malloc=n.bf,e._free=n.cf,e._RegisterExtensionFunctions=n.ef,e._getSqliteFree=n.ff,y=e._main=n.gf,e._libauthorizer_set_authorizer=n.hf,e._libfunction_create_function=n.jf,e._libhook_commit_hook=n.kf,e._libhook_update_hook=n.lf,e._libprogress_progress_handler=n.mf,e._libvfs_vfs_register=n.nf,e._memcpy=n.of,e._memset=n.pf,q=n.rf,E=n.sf,k=n.tf,x=n.uf,S=n.vf,M=n.wf,n.dynCall_viiiij,n.dynCall_vijii,n.dynCall_iiiij,n.dynCall_viji,n.dynCall_iij,n.dynCall_iijii,n.dynCall_iiji,n.dynCall_iiiiiij,n.dynCall_iiij,n.dynCall_jii,n.dynCall_ji,n.dynCall_vij,n.dynCall_iiiiijii,n.dynCall_j,n.dynCall_jj,n.dynCall_jiij,n.dynCall_iiiiji,n.dynCall_iiiijii,n.dynCall_ij,n.dynCall_viiji,n.dynCall_viijii,n.dynCall_iiiijji,D=n.pa,e._sqlite3_version=n.df.value,A=n.qf,U(),F}var n={a:rf};return e.instantiateWasm?new Promise((t,o)=>{e.instantiateWasm(n,(e,n)=>{t(r(e,n))})}):(v??=function(){if(e.locateFile){var r;return r="wa-sqlite.wasm",e.locateFile?e.locateFile(r,z):z+r}return new t.U(t(25584)).href}(),r((await H(i,v,n)).instance))}class G{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var X=r=>{for(;r.length>0;)r.shift()(e)},V=[],Y=e=>V.push(e),K=[],J=e=>K.push(e);function Q(e,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":return _[e];case"i16":return c[e>>1];case"i32":return f[e>>2];case"i64":I("to do getValue(i64) use WASM_BIGINT");case"float":return h[e>>2];case"double":return p[e>>3];case"*":return m[e>>2];default:I(`invalid type for getValue: ${r}`)}}var Z=!0;function ee(e,r,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":_[e]=r;break;case"i16":c[e>>1]=r;break;case"i32":f[e>>2]=r;break;case"i64":I("to do setValue(i64) use WASM_BIGINT");case"float":h[e>>2]=r;break;case"double":p[e>>3]=r;break;case"*":m[e>>2]=r;break;default:I(`invalid type for setValue: ${t}`)}}var er=e=>x(e),et=()=>M(),en=new TextDecoder,eo=(e,r,t,n)=>{var o=r+t;if(n)return o;for(;e[r]&&!(r>=o);)++r;return r},ei=(e,r,t)=>{if(!e)return"";var n=eo(u,e,r,t);return en.decode(u.subarray(e,n))},ea={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=ea.isAbs(e),t="/"===e.slice(-1);return(e=ea.normalizeArray(e.split("/").filter(e=>!!e),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=ea.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.slice(0,-1)),t+n):"."},basename:e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],join:(...e)=>ea.normalize(e.join("/")),join2:(e,r)=>ea.normalize(e+"/"+r)},es=()=>e=>crypto.getRandomValues(e),el=e=>{(el=es())(e)},e_={resolve:(...e)=>
1{for(var r="",t=!1,n=e.length-1;n>=-1&&!t;n--){var o=n>=0?e[n]:eT.cwd();if("string"!=typeof o)throw TypeError("Arguments to path.resolve must be strings");if(!o)return"";r=o+"/"+r,t=ea.isAbs(o)}return r=ea.normalizeArray(r.split("/").filter(e=>!!e),!t).join("/"),(t?"/":"")+r||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=e_.resolve(e).slice(1),r=e_.resolve(r).slice(1);for(var n=t(e.split("/")),o=t(r.split("/")),i=Math.min(n.length,o.length),a=i,s=0;s<i;s++)if(n[s]!==o[s]){a=s;break}for(var l=[],s=a;s<n.length;s++)l.push("..");return(l=l.concat(o.slice(a))).join("/")}},eu=(e,r=0,t,n)=>{var o=eo(e,r,t,n);return en.decode(e.buffer?e.subarray(r,o):new Uint8Array(e.slice(r,o)))},ec=[],ed=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},ef=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,i=t+n-1,a=0;a<e.length;++a){var s=e.codePointAt(a);if(s<=127){if(t>=i)break;r[t++]=s}else if(s<=2047){if(t+1>=i)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=i)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=i)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s,a++}}return r[t]=0,t-o},em=(e,r,t)=>{var n=Array(t>0?t:ed(e)+1),o=ef(e,n,0,n.length);return r&&(n.length=o),n},eh=()=>{if(!ec.length){var e=null;if(globalThis.window?.prompt&&null!==(e=window.prompt("Input: "))&&(e+="\n"),!e)return null;ec=em(e,!0)}return ec.shift()},ep={ttys:[],init(){},shutdown(){},register(e,r){ep.ttys[e]={input:[],output:[],ops:r},eT.registerDevice(e,ep.stream_ops)},stream_ops:{open(e){var r=ep.ttys[e.node.rdev];if(!r)throw new eT.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new eT.ErrnoError(60);for(var i,a=0,s=0;s<n;s++){try{i=e.tty.ops.get_char(e.tty)}catch(e){throw new eT.ErrnoError(29)}if(void 0===i&&0===a)throw new eT.ErrnoError(6);if(null==i)break;a++,r[t+s]=i}return a&&(e.node.atime=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new eT.ErrnoError(60);try{for(var i=0;i<n;i++)e.tty.ops.put_char(e.tty,r[t+i])}catch(e){throw new eT.ErrnoError(29)}return n&&(e.node.mtime=e.node.ctime=Date.now()),i}},default_tty_ops:{get_char:e=>eh(),put_char(e,r){null===r||10===r?(R(eu(e.output)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output?.length>0&&(R(eu(e.output)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[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]}),ioctl_tcsets:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(N(eu(e.output)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output?.length>0&&(N(eu(e.output)),e.output=[])}}},ev=(e,r)=>u.fill(0,e,e+r),ew=(e,r)=>Math.ceil(e/r)*r,eb=e=>{e=ew(e,65536);var r=q(65536,e);return r&&ev(r,e),r},eg={ops_table:null,mount:e=>eg.createNode(null,"/",16895,0),createNode(e,r,t,n){if(eT.isBlkdev(t)||eT.isFIFO(t))throw new eT.ErrnoError(63);eg.ops_table||={dir:{node:{getattr:eg.node_ops.getattr,setattr:eg.node_ops.setattr,lookup:eg.node_ops.lookup,mknod:eg.node_ops.mknod,rename:eg.node_ops.rename,unlink:eg.node_ops.unlink,rmdir:eg.node_ops.rmdir,readdir:eg.node_ops.readdir,symlink:eg.node_ops.symlink},stream:{llseek:eg.stream_ops.llseek}},file:{node:{getattr:eg.node_ops.getattr,setattr:eg.node_ops.setattr},stream:{llseek:eg.stream_ops.llseek,read:eg.stream_ops.read,write:eg.stream_ops.write,mmap:eg.stream_ops.mmap,msync:eg.stream_ops.msync}},link:{node:{getattr:eg.node_ops.getattr,setattr:eg.node_ops.setattr,readlink:eg.node_ops.readlink},stream:{}},chrdev:{node:{getattr:eg.node_ops.getattr,setattr:eg.node_ops.setattr},stream:eT.chrdev_stream_ops}};var o=eT.createNode(e,r,t,n);return eT.isDir(o.mode)?(o.node_ops=eg.ops_table.dir.node,o.stream_ops=eg.ops_table.dir.stream,o.contents={}):eT.isFile(o.mode)?(o.node_ops=eg.ops_table.file.node,o.stream_ops=eg.ops_table.file.stream,o.usedBytes=0,o.contents=null):eT.isLink(o.mode)?(o.node_ops=eg.ops_table.link.node,o.stream_ops=eg.ops_table.link.stream):eT.isChrdev(o.mode)&&(o.node_ops=eg.ops_table.chrdev.node,o.stream_ops=eg.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),e&&(e.contents[r]=o,e.atime=e.mtime=e.ctime=o.atime),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=eT.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,eT.
vendor: 1,515 bytes, line 1
1isDir(e.mode)?r.size=4096:eT.isFile(e.mode)?r.size=e.usedBytes:eT.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.atime),r.mtime=new Date(e.mtime),r.ctime=new Date(e.ctime),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){for(let t of["mode","atime","mtime","ctime"])null!=r[t]&&(e[t]=r[t]);void 0!==r.size&&eg.resizeFileStorage(e,r.size)},lookup(e,r){throw eg.doesNotExistError||(eg.doesNotExistError=new eT.ErrnoError(44),eg.doesNotExistError.stack="<generic error, no stack>"),eg.doesNotExistError},mknod:(e,r,t,n)=>eg.createNode(e,r,t,n),rename(e,r,t){var n;try{n=eT.lookupNode(r,t)}catch(e){}if(n){if(eT.isDir(e.mode))for(var o in n.contents)throw new eT.ErrnoError(55);eT.hashRemoveNode(n)}delete e.parent.contents[e.name],r.contents[t]=e,e.name=t,r.ctime=r.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,r){delete e.contents[r],e.ctime=e.mtime=Date.now()},rmdir(e,r){var t=eT.lookupNode(e,r);for(var n in t.contents)throw new eT.ErrnoError(55);delete e.contents[r],e.ctime=e.mtime=Date.now()},readdir:e=>[".","..",...Object.keys(e.contents)],symlink(e,r,t){var n=eg.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!eT.isLink(e.mode))throw new eT.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,n,o){var i=e.node.contents;if(o>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-o,n);if(a>8&&i.subarray)r.set(i.subarray(o,o+a),t);else for(var s=0;s<a;s++)r[t+s]=i[o+s];return a},write(e,r,t,n,o,i){if(r.buffer===_.buffer&&(i=!1),!n)return 0;
1var a=e.node;if(a.mtime=a.ctime=Date.now(),r.subarray&&(!a.contents||a.contents.subarray)){if(i)return a.contents=r.subarray(t,t+n),a.usedBytes=n,n;else if(0===a.usedBytes&&0===o)return a.contents=r.slice(t,t+n),a.usedBytes=n,n;else if(o+n<=a.usedBytes)return a.contents.set(r.subarray(t,t+n),o),n}if(eg.expandFileStorage(a,o+n),a.contents.subarray&&r.subarray)a.contents.set(r.subarray(t,t+n),o);else for(var s=0;s<n;s++)a.contents[o+s]=r[t+s];return a.usedBytes=Math.max(a.usedBytes,o+n),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&eT.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new eT.ErrnoError(28);return n},mmap(e,r,t,n,o){if(!eT.isFile(e.node.mode))throw new eT.ErrnoError(43);var i,a,s=e.node.contents;if(!(2&o)&&s&&s.buffer===_.buffer)a=!1,i=s.byteOffset;else{if(a=!0,!(i=eb(r)))throw new eT.ErrnoError(48);s&&((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),_.set(s,i))}return{ptr:i,allocated:a}},msync:(e,r,t,n,o)=>(eg.stream_ops.write(e,r,0,n,t,!1),0)}},ey=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw Error(`Unknown file open mode: ${e}`);return r},eq=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},eE=async e=>new Uint8Array(await n(e)),ek=(...e)=>eT.createDataFile(...e),ex=e=>e,eS=0,eM=null,eD=r=>{if(eS--,e.monitorRunDependencies?.(eS),0==eS&&eM){var t=eM;eM=null,t()}},eA=r=>{eS++,e.monitorRunDependencies?.(eS)},eF=[],eC=async(e,r)=>{for(var t of("undefined"!=typeof Browser&&Browser.init(),eF))if(t.canHandle(r))return t.handle(e,r);return e},eP=async(e,r,t,n,o,i,a,s)=>{var l=r?e_.resolve(ea.join2(e,r)):e,_=ex(`cp ${l}`);eA(_);try{var u=t;"string"==typeof t&&(u=await eE(t)),u=await eC(u,l),s?.(),i||ek(e,r,u,n,o,a)}finally{eD(_)}},eT={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,ErrnoError:class{name="ErrnoError";constructor(e){this.errno=e}},FSStream:class{shared={};get object(){return this.node}set object(e){this.node=e}get isRead(){return(2097155&this.flags)!=1}get isWrite(){return(2097155&this.flags)!=0}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.id=eT.nextInode++,this.name=r,this.mode=t,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return eT.isDir(this.mode)}get isDevice(){return eT.isChrdev(this.mode)}},lookupPath(e,r={}){if(!e)throw new eT.ErrnoError(44);r.follow_mount??=!0,ea.isAbs(e)||(e=eT.cwd()+"/"+e);e:for(var t=0;t<40;t++){for(var n=e.split("/").filter(e=>!!e),o=eT.root,i="/",a=0;a<n.length;a++){var s=a===n.length-1;if(s&&r.parent)break;if("."!==n[a]){if(".."===n[a]){if(i=ea.dirname(i),eT.isRoot(o)){e=i+"/"+n.slice(a+1).join("/"),t--;continue e}o=o.parent;continue}i=ea.join2(i,n[a]);try{o=eT.lookupNode(o,n[a])}catch(e){if(e?.errno===44&&s&&r.noent_okay)return{path:i};throw e}if(eT.isMountpoint(o)&&(!s||r.follow_mount)&&(o=o.mounted.root),eT.isLink(o.mode)&&(!s||r.follow)){if(!o.node_ops.readlink)throw new eT.ErrnoError(52);var l=o.node_ops.readlink(o);ea.isAbs(l)||(l=ea.dirname(i)+"/"+l),e=l+"/"+n.slice(a+1).join("/");continue e}}}return{path:i,node:o}}throw new eT.ErrnoError(32)},getPath(e){for(var r;;){if(eT.isRoot(e)){var t=e.mount.mountpoint;if(!r)return t;return"/"!==t[t.length-1]?`${t}/${r}`:t+r}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%eT.nameTable.length},hashAddNode(e){var r=eT.hashName(e.parent.id,e.name);e.name_next=eT.nameTable[r],eT.nameTable[r]=e},hashRemoveNode(e){var r=eT.hashName(e.parent.id,e.name);if(eT.nameTable[r]===e)eT.nameTable[r]=e.name_next;else for(var t=eT.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=eT.mayLookup(e);if(t)throw new eT.ErrnoError(t);for(var n=eT.hashName(e.id,r),o=eT.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===e.id&&i===r)return o}return eT.lookup(e,r)},createNode(e,r,t,n){var o=new eT.FSNode(e,r,t,n);return eT.hashAddNode(o),o},destroyNode(e){eT.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>(61440&e)==32768,isDir:e=>(61440&e)==16384,isLink:e=>(61440&e)==40960,isChrdev:e=>(61440&e)==8192,isBlkdev:e=>(61440&e)==24576,isFIFO:e=>(61440&e)==4096,isSocket:e=>(49152&e)==49152,flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>eT.ignorePermissions?0:r.includes("r")&&!(292&e.mode)||r.includes("w")&&!(146&e.mode)||r.includes("x")&&!(73&e.mode)?2:0,mayLookup(e){if(!eT.isDir(e.mode))return 54;var r=eT.nodePermissions(e,"x");return r||2*!e.node_ops.lookup},mayCreate(e,r){if(!eT.isDir(e.mode))return 54;try{return eT.lookupNode(e,r),20}catch(e){}return eT.nodePermissions(e,"wx")},mayDelete(e,r,t){try{n=eT.lookupNode(e,r)}catch(e){return e.errno}
vendor: 8,520 bytes, line 1
1var n,o=eT.nodePermissions(e,"wx");if(o)return o;if(t){if(!eT.isDir(n.mode))return 54;if(eT.isRoot(n)||eT.getPath(n)===eT.cwd())return 10}else if(eT.isDir(n.mode))return 31;return 0},mayOpen(e,r){if(!e)return 44;if(eT.isLink(e.mode))return 32;var t=eT.flagsToPermissionString(r);return eT.isDir(e.mode)&&("r"!==t||576&r)?31:eT.nodePermissions(e,t)},checkOpExists(e,r){if(!e)throw new eT.ErrnoError(r);return e},MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=eT.MAX_OPEN_FDS;e++)if(!eT.streams[e])return e;throw new eT.ErrnoError(33)},getStreamChecked(e){var r=eT.getStream(e);if(!r)throw new eT.ErrnoError(8);return r},getStream:e=>eT.streams[e],createStream:(e,r=-1)=>(e=Object.assign(new eT.FSStream,e),-1==r&&(r=eT.nextfd()),e.fd=r,eT.streams[r]=e,e),closeStream(e){eT.streams[e]=null},dupStream(e,r=-1){var t=eT.createStream(e,r);return t.stream_ops?.dup?.(t),t},doSetAttr(e,r,t){var n=e?.stream_ops.setattr,o=n?e:r;n??=r.node_ops.setattr,eT.checkOpExists(n,63),n(o,t)},chrdev_stream_ops:{open(e){var r=eT.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open?.(e)},llseek(){throw new eT.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){eT.devices[e]={stream_ops:r}},getDevice:e=>eT.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push(...n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),eT.syncFSRequests++,eT.syncFSRequests>1&&N(`warning: ${eT.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=eT.getMounts(eT.root.mount),n=0;function o(e){return eT.syncFSRequests--,r(e)}function i(e){if(e)return i.errored?void 0:(i.errored=!0,o(e));++n>=t.length&&o(null)}for(var a of t)a.type.syncfs?a.type.syncfs(a,e,i):i(null)},mount(e,r,t){var n,o="/"===t,i=!t;if(o&&eT.root)throw new eT.ErrnoError(10);if(!o&&!i){var a=eT.lookupPath(t,{follow_mount:!1});if(t=a.path,n=a.node,eT.isMountpoint(n))throw new eT.ErrnoError(10);if(!eT.isDir(n.mode))throw new eT.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},l=e.mount(s);return l.mount=s,s.root=l,o?eT.root=l:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),l},unmount(e){var r=eT.lookupPath(e,{follow_mount:!1});if(!eT.isMountpoint(r.node))throw new eT.ErrnoError(28);var t=r.node,n=t.mounted,o=eT.getMounts(n);for(var[i,a]of Object.entries(eT.nameTable))for(;a;){var s=a.name_next;o.includes(a.mount)&&eT.destroyNode(a),a=s}t.mounted=null;var l=t.mount.mounts.indexOf(n);t.mount.mounts.splice(l,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=eT.lookupPath(e,{parent:!0}).node,o=ea.basename(e);if(!o)throw new eT.ErrnoError(28);if("."===o||".."===o)throw new eT.ErrnoError(20);var i=eT.mayCreate(n,o);if(i)throw new eT.ErrnoError(i);if(!n.node_ops.mknod)throw new eT.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},statfs:e=>eT.statfsNode(eT.lookupPath(e,{follow:!0}).node),statfsStream:e=>eT.statfsNode(e.node),statfsNode(e){var r={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:eT.nextInode,ffree:eT.nextInode-1,fsid:42,flags:2,namelen:255};return e.node_ops.statfs&&Object.assign(r,e.node_ops.statfs(e.mount.opts.root)),r},create:(e,r=438)=>(r&=4095,r|=32768,eT.mknod(e,r,0)),mkdir:(e,r=511)=>(r&=1023,r|=16384,eT.mknod(e,r,0)),mkdirTree(e,r){var t=e.split("/"),n="";for(var o of t)if(o){(n||ea.isAbs(e))&&(n+="/"),n+=o;try{eT.mkdir(n,r)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,eT.mknod(e,r,t)),symlink(e,r){if(!e_.resolve(e))throw new eT.ErrnoError(44);var t=eT.lookupPath(r,{parent:!0}).node;if(!t)throw new eT.ErrnoError(44);var n=ea.basename(r),o=eT.mayCreate(t,n);if(o)throw new eT.ErrnoError(o);if(!t.node_ops.symlink)throw new eT.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o,i,a=ea.dirname(e),s=ea.dirname(r),l=ea.basename(e),_=ea.basename(r);if(n=eT.lookupPath(e,{parent:!0}).node,o=eT.lookupPath(r,{parent:!0}).node,!n||!o)throw new eT.ErrnoError(44);if(n.mount!==o.mount)throw new eT.ErrnoError(75);var u=eT.lookupNode(n,l),c=e_.relative(e,s);if("."!==c.charAt(0))throw new eT.ErrnoError(28);if("."!==(c=e_.relative(r,a)).charAt(0))throw new eT.ErrnoError(55);try{i=eT.lookupNode(o,_)}catch(e){}if(u!==i){var d=eT.isDir(u.mode),f=eT.mayDelete(n,l,d);if(f||(f=i?eT.mayDelete(o,_,d):eT.mayCreate(o,_)))throw new eT.ErrnoError(f);if(!n.node_ops.rename)throw new eT.ErrnoError(63);if(eT.isMountpoint(u)||i&&eT.isMountpoint(i))throw new eT.ErrnoError(10);if(o!==n&&(f=eT.nodePermissions(n,"w")))throw new eT.ErrnoError(f);eT.hashRemoveNode(u);try{n.node_ops.rename(u,o,_),u.parent=o}catch(e){throw e}finally{eT.hashAddNode(u)}}},rmdir(e){var r=eT.lookupPath(e,{parent:!0}).node,t=ea.basename(e),n=eT.lookupNode(r,t),o=eT.mayDelete(r,t,!0);if(o)throw new eT.ErrnoError(o);if(!r.node_ops.rmdir)throw new eT.ErrnoError(63);if(eT.isMountpoint(n))throw new eT.ErrnoError(10);r.node_ops.rmdir(r,t),eT.destroyNode(n)},readdir(e){var r=eT.lookupPath(e,{follow:!0}).node;return eT.checkOpExists(r.node_ops.readdir,54)(r)},unlink(e){var r=eT.lookupPath(e,{parent:!0}).node;if(!r)throw new eT.ErrnoError(44);var t=ea.basename(e),n=eT.lookupNode(r,t),o=eT.mayDelete(r,t,!1);if(o)throw new eT.ErrnoError(o);if(!r.node_ops.unlink)throw new eT.ErrnoError(63);if(eT.isMountpoint(n))throw new eT.ErrnoError(10);r.node_ops.unlink(r,t),eT.destroyNode(n)},readlink(e){var r=eT.lookupPath(e).node;if(!r)throw new eT.ErrnoError(44);if(!r.node_ops.readlink)throw new eT.ErrnoError(28);return r.node_ops.readlink(r)},stat(e,r){var t=eT.lookupPath(e,{follow:!r}).node;return eT.checkOpExists(t.node_ops.getattr,63)(t)},fstat(e){var r=eT.getStreamChecked(e),t=r.node,n=r.stream_ops.getattr,o=n?r:t;return n??=t.node_ops.getattr,eT.checkOpExists(n,63),n(o)},lstat:e=>eT.stat(e,!0),doChmod(e,r,t,n){eT.doSetAttr(e,r,{mode:4095&t|-4096&r.mode,ctime:Date.now(),dontFollow:n})},chmod(e,r,t){var n;n="string"==typeof e?eT.lookupPath(e,{follow:!t}).node:e,eT.doChmod(null,n,r,t)},lchmod(e,r){eT.chmod(e,r,!0)},fchmod(e,r){var t=eT.getStreamChecked(e);eT.doChmod(t,t.node,r,!1)},doChown(e,r,t){eT.doSetAttr(e,r,{timestamp:Date.now(),dontFollow:t})},chown(e,r,t,n){var o;o="string"==typeof e?eT.lookupPath(e,{follow:!n}).node:e,eT.doChown(null,o,n)},lchown(e,r,t){eT.chown(e,r,t,!0)},fchown(e,r,t){var n=eT.getStreamChecked(e);eT.doChown(n,n.node,!1)},doTruncate(e,r,t){if(eT.isDir(r.mode))throw new eT.ErrnoError(31);if(!eT.isFile(r.mode))throw new eT.ErrnoError(28);var n=eT.nodePermissions(r,"w");if(n)throw new eT.ErrnoError(n);eT.doSetAttr(e,r,{size:t,timestamp:Date.now()})},truncate(e,r){if(r<0)throw new eT.ErrnoError(28);if("string"==typeof e){var t;t=eT.lookupPath(e,{follow:!0}).node}else t=e;eT.doTruncate(null,t,r)},ftruncate(e,r){var t=eT.getStreamChecked(e);if(r<0||(2097155&t.flags)==0)throw new eT.ErrnoError(28);eT.doTruncate(t,t.node,r)},utime(e,r,t){var n=eT.lookupPath(e,{follow:!0}).node;eT.checkOpExists(n.node_ops.setattr,63)(n,{atime:r,mtime:t})},open(e,r,t=438){if(""===e)throw new eT.ErrnoError(44);if(t=64&(r="string"==typeof r?ey(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{var n,o=e.endsWith("/"),i=eT.lookupPath(e,{follow:!(131072&r),noent_okay:!0});n=i.node,e=i.path}var a=!1;if(64&r)if(n){if(128&r)throw new eT.ErrnoError(20)}else if(o)throw new eT.ErrnoError(31);else n=eT.mknod(e,511|t,0),a=!0;if(!n)throw new eT.ErrnoError(44);if(eT.isChrdev(n.mode)&&(r&=-513),65536&r&&!eT.isDir(n.mode))throw new eT.ErrnoError(54);if(!a){var s=eT.mayOpen(n,r);if(s)throw new eT.ErrnoError(s)}512&r&&!a&&eT.truncate(n,0),r&=-131713;var l=eT.createStream({node:n,path:eT.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return l.stream_ops.open&&l.stream_ops.open(l),a&&eT.chmod(n,511&t),l},close(e){if(eT.isClosed(e))throw new eT.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{eT.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(eT.isClosed(e))throw new eT.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new eT.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new eT.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new eT.ErrnoError(28);if(eT.isClosed(e)||(2097155&e.flags)==1)throw new eT.ErrnoError(8);if(eT.isDir(e.node.mode))throw new eT.ErrnoError(31);if(!e.stream_ops.read)throw new eT.ErrnoError(28);var i=void 0!==o;if(i){if(!e.seekable)throw new eT.ErrnoError(70)}else o=e.position;var a=e.stream_ops.read(e,r,t,n,o);
1return i||(e.position+=a),a},write(e,r,t,n,o,i){if(n<0||o<0)throw new eT.ErrnoError(28);if(eT.isClosed(e)||(2097155&e.flags)==0)throw new eT.ErrnoError(8);if(eT.isDir(e.node.mode))throw new eT.ErrnoError(31);if(!e.stream_ops.write)throw new eT.ErrnoError(28);e.seekable&&1024&e.flags&&eT.llseek(e,0,2);var a=void 0!==o;if(a){if(!e.seekable)throw new eT.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,i);return a||(e.position+=s),s},mmap(e,r,t,n,o){if((2&n)!=0&&(2&o)==0&&(2097155&e.flags)!=2||(2097155&e.flags)==1)throw new eT.ErrnoError(2);if(!e.stream_ops.mmap)throw new eT.ErrnoError(43);if(!r)throw new eT.ErrnoError(28);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new eT.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e,r={}){r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding&&I(`Invalid encoding type "${r.encoding}"`);var t=eT.open(e,r.flags),n=eT.stat(e).size,o=new Uint8Array(n);return eT.read(t,o,0,n,0),"utf8"===r.encoding&&(o=eu(o)),eT.close(t),o},writeFile(e,r,t={}){t.flags=t.flags||577;var n=eT.open(e,t.flags,t.mode);"string"==typeof r&&(r=new Uint8Array(em(r,!0))),ArrayBuffer.isView(r)?eT.write(n,r,0,r.byteLength,void 0,t.canOwn):I("Unsupported data type"),eT.close(n)},cwd:()=>eT.currentPath,chdir(e){var r=eT.lookupPath(e,{follow:!0});if(null===r.node)throw new eT.ErrnoError(44);if(!eT.isDir(r.node.mode))throw new eT.ErrnoError(54);
vendor: 4,880 bytes, line 1
1var t=eT.nodePermissions(r.node,"x");if(t)throw new eT.ErrnoError(t);eT.currentPath=r.path},createDefaultDirectories(){eT.mkdir("/tmp"),eT.mkdir("/home"),eT.mkdir("/home/web_user")},createDefaultDevices(){eT.mkdir("/dev"),eT.registerDevice(eT.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n,llseek:()=>0}),eT.mkdev("/dev/null",eT.makedev(1,3)),ep.register(eT.makedev(5,0),ep.default_tty_ops),ep.register(eT.makedev(6,0),ep.default_tty1_ops),eT.mkdev("/dev/tty",eT.makedev(5,0)),eT.mkdev("/dev/tty1",eT.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(el(e),r=e.byteLength),e[--r]);eT.createDevice("/dev","random",t),eT.createDevice("/dev","urandom",t),eT.mkdir("/dev/shm"),eT.mkdir("/dev/shm/tmp")},createSpecialDirectories(){eT.mkdir("/proc");var e=eT.mkdir("/proc/self");eT.mkdir("/proc/self/fd"),eT.mount({mount(){var r=eT.createNode(e,"fd",16895,73);return r.stream_ops={llseek:eg.stream_ops.llseek},r.node_ops={lookup(e,r){var t=+r,n=eT.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path},id:t+1};return o.parent=o,o},readdir:()=>Array.from(eT.streams.entries()).filter(([e,r])=>r).map(([e,r])=>e.toString())},r}},{},"/proc/self/fd")},createStandardStreams(e,r,t){e?eT.createDevice("/dev","stdin",e):eT.symlink("/dev/tty","/dev/stdin"),r?eT.createDevice("/dev","stdout",null,r):eT.symlink("/dev/tty","/dev/stdout"),t?eT.createDevice("/dev","stderr",null,t):eT.symlink("/dev/tty1","/dev/stderr"),eT.open("/dev/stdin",0),eT.open("/dev/stdout",1),eT.open("/dev/stderr",1)},staticInit(){eT.nameTable=Array(4096),eT.mount(eg,{},"/"),eT.createDefaultDirectories(),eT.createDefaultDevices(),eT.createSpecialDirectories(),eT.filesystems={MEMFS:eg}},init(r,t,n){eT.initialized=!0,r??=e.stdin,t??=e.stdout,n??=e.stderr,eT.createStandardStreams(r,t,n)},quit(){for(var e of(eT.initialized=!1,eT.streams))e&&eT.close(e)},findObject(e,r){var t=eT.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{var t=eT.lookupPath(e,{follow:!r});e=t.path}catch(e){}var n={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var t=eT.lookupPath(e,{parent:!0});n.parentExists=!0,n.parentPath=t.path,n.parentObject=t.node,n.name=ea.basename(e),t=eT.lookupPath(e,{follow:!r}),n.exists=!0,n.path=t.path,n.object=t.node,n.name=t.node.name,n.isRoot="/"===t.path}catch(e){n.error=e.errno}return n},createPath(e,r,t,n){e="string"==typeof e?e:eT.getPath(e);for(var o=r.split("/").reverse();o.length;){var i=o.pop();if(i){var a=ea.join2(e,i);try{eT.mkdir(a)}catch(e){if(20!=e.errno)throw e}e=a}}return a},createFile(e,r,t,n,o){var i=ea.join2("string"==typeof e?e:eT.getPath(e),r),a=eq(n,o);return eT.create(i,a)},createDataFile(e,r,t,n,o,i){var a=r;e&&(e="string"==typeof e?e:eT.getPath(e),a=r?ea.join2(e,r):e);var s=eq(n,o),l=eT.create(a,s);if(t){if("string"==typeof t){for(var _=Array(t.length),u=0,c=t.length;u<c;++u)_[u]=t.charCodeAt(u);t=_}eT.chmod(l,146|s);var d=eT.open(l,577);eT.write(d,t,0,t.length,0,i),eT.close(d),eT.chmod(l,s)}},createDevice(e,r,t,n){var o=ea.join2("string"==typeof e?e:eT.getPath(e),r),i=eq(!!t,!!n);eT.createDevice.major??=64;var a=eT.makedev(eT.createDevice.major++,0);return eT.registerDevice(a,{open(e){e.seekable=!1},close(e){n?.buffer?.length&&n(10)},read(e,r,n,o,i){for(var a,s=0,l=0;l<o;l++){try{a=t()}catch(e){throw new eT.ErrnoError(29)}if(void 0===a&&0===s)throw new eT.ErrnoError(6);if(null==a)break;s++,r[n+l]=a}return s&&(e.node.atime=Date.now()),s},write(e,r,t,o,i){for(var a=0;a<o;a++)try{n(r[t+a])}catch(e){throw new eT.ErrnoError(29)}return o&&(e.node.mtime=e.node.ctime=Date.now()),a}}),eT.mkdev(o,i,a)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if(globalThis.XMLHttpRequest)I("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");else try{e.contents=o(e.url)}catch(e){throw new eT.ErrnoError(29)}},createLazyFile(e,r,t,n,o){class i{lengthKnown=!1;chunks=[];get(e){if(!(e>this.length-1)&&!(e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}}setDataGetter(e){this.getter=e}cacheLength(){var e,r=new XMLHttpRequest;r.open("HEAD",t,!1),r.send(null),r.status>=200&&r.status<300||304===r.status||I("Couldn't load "+t+". Status: "+r.status);var n=Number(r.getResponseHeader("Content-length")),o=(e=r.getResponseHeader("Accept-Ranges"))&&"bytes"===e,i=(e=r.getResponseHeader("Content-Encoding"))&&"gzip"===e,a=1048576;o||(a=n);var s=(e,r)=>{e>r&&I("invalid range ("+e+", "+r+") or no bytes requested!"),r>n-1&&I("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;return(o.open("GET",t,!1),n!==a&&o.setRequestHeader("Range","bytes="+e+"-"+r),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain;
1 charset=x-user-defined"),o.send(null),o.status>=200&&o.status<300||304===o.status||I("Couldn't load "+t+". Status: "+o.status),void 0!==o.response)?new Uint8Array(o.response||[]):em(o.responseText||"",!0)},l=this;l.setDataGetter(e=>{var r=e*a,t=(e+1)*a-1;return t=Math.min(t,n-1),void 0===l.chunks[e]&&(l.chunks[e]=s(r,t)),void 0===l.chunks[e]&&I("doXHR failed!"),l.chunks[e]}),(i||!n)&&(a=n=1,a=n=this.getter(0).length,R("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=a,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(globalThis.XMLHttpRequest){P||I("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc");var a={isDevice:!1,contents:new i}}else var a={isDevice:!1,url:t};var s=eT.createFile(e,r,a,n,o);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var l={};for(let[e,r]of Object.entries(s.stream_ops))l[e]=(...e)=>(eT.forceLoadFile(s),r(...e));function u(e,r,t,n,o){var i=e.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(i.slice)for(var s=0;s<a;s++)r[t+s]=i[o+s];else for(var s=0;s<a;s++)r[t+s]=i.get(o+s);return a}return l.read=(e,r,t,n,o)=>(eT.forceLoadFile(s),u(e,r,t,n,o)),l.mmap=(e,r,t,n,o)=>{eT.forceLoadFile(s);var i=eb(r);if(!i)throw new eT.ErrnoError(48);return u(e,_,i,r,t),{ptr:i,allocated:!0}},s.stream_ops=l,s}},ej={calculateAt(e,r,t){if(ea.isAbs(r))return r;if(-100===e)n=eT.cwd();else{var n;n=ej.getStreamFromFD(e).path}if(0==r.length){if(!t)throw new eT.ErrnoError(44);return n}return n+"/"+r},writeStat(e,r){m[e>>2]=r.dev,m[e+4>>2]=r.mode,m[e+8>>2]=r.nlink,m[e+12>>2]=r.uid,m[e+16>>2]=r.gid,m[e+20>>2]=r.rdev,b=[r.size>>>0,+Math.abs(w=r.size)>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0],f[e+24>>2]=b[0],f[e+28>>2]=b[1],f[e+32>>2]=4096,f[e+36>>2]=r.blocks;var t=r.atime.getTime(),n=r.mtime.getTime(),o=r.ctime.getTime();return b=[Math.floor(t/1e3)>>>0,+Math.abs(w=Math.floor(t/1e3))>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0],f[e+40>>2]=b[0],f[e+44>>2]=b[1],m[e+48>>2]=t%1e3*1e6,b=[Math.floor(n/1e3)>>>0,+Math.abs(w=Math.floor(n/1e3))>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0],f[e+56>>2]=b[0],f[e+60>>2]=b[1],m[e+64>>2]=n%1e3*1e6,b=[Math.floor(o/1e3)>>>0,+Math.abs(w=Math.floor(o/1e3))>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0],f[e+72>>2]=b[0],f[e+76>>2]=b[1],m[e+80>>2]=o%1e3*1e6,b=[r.ino>>>0,+Math.abs(w=r.ino)>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0],f[e+88>>2]=b[0],f[e+92>>2]=b[1],0},writeStatFs(e,r){m[e+4>>2]=r.bsize,m[e+60>>2]=r.bsize,b=[r.blocks>>>0,+Math.abs(w=r.blocks)>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0],f[e+8>>2]=b[0],f[e+12>>2]=b[1],b=[r.bfree>>>0,+Math.abs(w=r.bfree)>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0],f[e+16>>2]=b[0],f[e+20>>2]=b[1],b=[r.bavail>>>0,+Math.abs(w=r.bavail)>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0],f[e+24>>2]=b[0],f[e+28>>2]=b[1],b=[r.files>>>0,+Math.abs(w=r.files)>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0],f[e+32>>2]=b[0],f[e+36>>2]=b[1],b=[r.ffree>>>0,+Math.abs(w=r.ffree)>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0],f[e+40>>2]=b[0],f[e+44>>2]=b[1],m[e+48>>2]=r.fsid,m[e+64>>2]=r.flags,m[e+56>>2]=r.namelen},doMsync(e,r,t,n,o){if(!eT.isFile(r.node.mode))throw new eT.ErrnoError(43);if(2&n)return 0;var i=u.slice(e,e+t);eT.msync(r,i,o,t,n)},getStreamFromFD:e=>eT.getStreamChecked(e),varargs:void 0,getStr:e=>ei(e)},ez=()=>{var e=f[+ej.varargs>>2];return ej.varargs+=4,e},eR=(e,r)=>r+2097152>>>0<4194305-!!e?(e>>>0)+0x100000000*r:NaN,eN=(e,r,t)=>ef(e,u,r,t),eO=e=>m[e>>2]+0x100000000*f[e+4>>2],eL=0,eU=e=>e%4==0&&(e%100!=0||e%400==0),eI=[0,31,60,91,121,152,182,213,244,274,305,335],eB=[0,31,59,90,120,151,181,212,243,273,304,334],e$=e=>(eU(e.getFullYear())?eI:eB)[e.getMonth()]+e.getDate()-1,eH={},eW=e=>{if(e instanceof G||"unwind"==e)return a;j(1,e)},eG=()=>Z||eL>0,eX=r=>{a=r,eG()||(e.onExit?.(r),O=!0),j(r,new G(r))},eV=(e,r)=>{a=e,eX(e)},eY=()=>{if(!eG())try{eV(a)}catch(e){eW(e)}},eK=e=>{if(!O)try{return e()}catch(e){eW(e)}finally{eY()}},eJ=()=>performance.now(),eQ=()=>0x80000000,eZ=e=>{var r=D.buffer.byteLength;try{return D.grow((e-r+65535)/65536|0),U(),1}catch(e){}},e0={},e1=()=>T||"./this.program",e3=()=>{if(!e3.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8",_:e1()};for(var r in e0)void 0===e0[r]?delete e[r]:e[r]=e0[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);e3.strings=t}return e3.strings},e2=(e,r,t,n)=>{for(var o=0,i=0;i<t;i++){var a=m[r>>2],s=m[r+4>>2];r+=8;var l=eT.read(e,_,a,s,n);if(l<0)return -1;if(o+=l,l<s)break;void 0!==n&&(n+=l)}return o},e4=(e,r,t,n)=>{for(var o=0,i=0;i<t;i++){var a=m[r>>2],s=m[r+4>>2];r+=8;var l=eT.write(e,_,a,s,n);if(l<0)return -1;if(o+=l,l<s)break;void 0!==n&&(n+=l)}return o},e6=function(){let r="object"==typeof Asyncify?Asyncify.handleAsync.bind(Asyncify):null;e.handleAsync=r;let t=new Map;e.setCallback=(e,r)=>t.set(e,r),e.getCallback=e=>t.get(e),e.deleteCallback=e=>t.delete(e),e6=function(e,n,...o){let i=t.get(n),a=null,s="function"==typeof i?i:i[a=ei(o.shift())];if(e){if(r)return r(()=>s.apply(i,o));throw Error("Synchronous WebAssembly cannot call async function")}let l=s.apply(i,o);if("function"==typeof l?.then)throw console.error("unexpected Promise",s),Error(`${a} unexpectedly returned a Promise`);return l}},e5=e=>A.get(e),e8=(e,r)=>{if(g)for(var t=e;t<e+r;t++){var n=e5(t);n&&g.set(n,t)}}
1,e7=e=>(g||(g=new WeakMap,e8(0,A.length)),g.get(e)||0),e9=[],re=()=>e9.length?e9.pop():A.grow(1),rr=(e,r)=>A.set(e,r),rt=e=>{let r=e.length;return[r%128|128,r>>7,...e]},rn={i:127,p:127,j:126,f:125,d:124,e:111},ro=e=>rt(Array.from(e,e=>rn[e])),ri=(e,r)=>{var t=Uint8Array.of(0,97,115,109,1,0,0,0,1,...rt([1,96,...ro(r.slice(1)),...ro("v"===r[0]?"":r[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),n=new WebAssembly.Module(t);return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},ra=r=>e["_"+r],rs=(e,r)=>{_.set(e,r)},rl=e=>S(e),r_=e=>{var r=ed(e)+1,t=rl(r);return eN(e,t,r),t},ru=(e,r,t,n,o)=>{var i,a={string:e=>{var r=0;return null!=e&&0!==e&&(r=r_(e)),r},array:e=>{var r=rl(e.length);return rs(e,r),r}},s=ra(e),l=[],_=0;if(n)for(var u=0;u<n.length;u++){var c=a[t[u]];c?(0===_&&(_=et()),l[u]=c(n[u])):l[u]=n[u]}var d=s(...l);return i=d,0!==_&&er(_),d="string"===r?ei(i):"boolean"===r?!!i:i},rc=e=>k(),rd=new TextDecoder("utf-16le");if(eT.createPreloadedFile=(e,r,t,n,o,i,a,s,l,_)=>{eP(e,r,t,n,o,s,l,_).then(i).catch(a)},eT.preloadFile=eP,eT.staticInit(),e6(),e.noExitRuntime&&(Z=e.noExitRuntime),e.preloadPlugins&&(eF=e.preloadPlugins),e.print&&(R=e.print),e.printErr&&(N=e.printErr),e.wasmBinary&&(i=e.wasmBinary),e.arguments&&e.arguments,e.thisProgram&&(T=e.thisProgram),e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.shift()();e.getTempRet0=rc,e.ccall=ru,e.cwrap=(e,r,t,n)=>{var o=!t||t.every(e=>"number"===e||"boolean"===e);return"string"!==r&&o&&!n?ra(e):(...o)=>ru(e,r,t,o,n)},e.addFunction=(e,r)=>{var t=e7(e);if(t)return t;var n=re();try{rr(n,e)}catch(t){if(!(t instanceof TypeError))throw t;rr(n,ri(e,r))}return g.set(e,n),n},e.setValue=ee,e.getValue=Q,e.UTF8ToString=ei,e.stringToUTF8=eN,e.lengthBytesUTF8=ed,e.intArrayFromString=em,e.intArrayToString=e=>{for(var r=[],t=0;t<e.length;t++){var n=e[t];n>255&&(n&=255),r.push(String.fromCharCode(n))}return r.join("")},e.AsciiToString=e=>{for(var r="";;){var t=u[e++];if(!t)return r;r+=String.fromCharCode(t)}},e.UTF16ToString=(e,r,t)=>{var n=e>>1,o=eo(d,n,r/2,t);return rd.decode(d.subarray(n,o))},e.stringToUTF16=(e,r,t)=>{if((t??=0x7fffffff)<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,i=0;i<o;++i){var a=e.charCodeAt(i);c[r>>1]=a,r+=2}return c[r>>1]=0,r-n},e.UTF32ToString=(e,r,t)=>{for(var n="",o=e>>2,i=0;!(i>=r/4);i++){var a=m[o+i];if(!a&&!t)break;n+=String.fromCodePoint(a)}return n},e.stringToUTF32=(e,r,t)=>{if((t??=0x7fffffff)<4)return 0;for(var n=r,o=n+t-4,i=0;i<e.length;++i){var a=e.codePointAt(i);if(a>65535&&i++,f[r>>2]=a,(r+=4)+4>o)break}return f[r>>2]=0,r-n},e.writeArrayToMemory=rs,e._getTempRet0=rc;var rf={a:(e,r,t,n)=>I(`Assertion failed: ${ei(e)}, at: `+[r?ei(r):"unknown filename",t,n?ei(n):"unknown function"]),aa:function(e,r){try{return e=ej.getStr(e),eT.chmod(e,r),0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},da:function(e,r,t,n){try{if(r=ej.getStr(r),r=ej.calculateAt(e,r),-8&t)return -28;var o=eT.lookupPath(r,{follow:!0}).node;if(!o)return -44;var i="";if(4&t&&(i+="r"),2&t&&(i+="w"),1&t&&(i+="x"),i&&eT.nodePermissions(o,i))return -2;return 0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},ba:function(e,r){try{return eT.fchmod(e,r),0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},$:function(e,r,t){try{return eT.fchown(e,r,t),0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},b:function(e,r,t){ej.varargs=t;try{var n=ej.getStreamFromFD(e);switch(r){case 0:var o=ez();if(o<0)break;for(;eT.streams[o];)o++;return eT.dupStream(n,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=ez();return n.flags|=o,0;case 12:var o=ez();return c[o+0>>1]=2,0}return -28}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},_:function(e,r){try{return ej.writeStat(r,eT.fstat(e))}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},y:function(e,r,t){var n=eR(r,t);try{if(isNaN(n))return -61;return eT.ftruncate(e,n),0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},U:function(e,r){try{if(0===r)return -28;var t=eT.cwd(),n=ed(t)+1;if(r<n)return -68;return eN(t,e,r),n}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},Y:function(e,r){try{return e=ej.getStr(e),ej.writeStat(r,eT.lstat(e))}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},R:function(e,r,t){try{return r=ej.getStr(r),r=ej.calculateAt(e,r),eT.mkdir(r,t,0),0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},X:function(e,r,t,n){try{r=ej.getStr(r);var o=256&n,i=4096&n;return n&=-6401,r=ej.calculateAt(e,r,i),ej.writeStat(t,o?eT.lstat(r):eT.stat(r))}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},P:function(e,r,t,n){ej.varargs=n;try{r=ej.getStr(r),r=ej.calculateAt(e,r);var o=n?ez():0;return eT.open(r,t,o).fd}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},N:function(e,r,t,n){try{if(r=ej.getStr(r),r=ej.calculateAt(e,r),n<=0)return -28;var o=eT.readlink(r),i=Math.min(n,ed(o)),a=_[t+i];return eN(o,t,n+1),_[t+i]=a,i}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},M:function(e){try{return e=ej.getStr(e),eT.rmdir(e),0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},Z:function(e,r){try{return e=ej.getStr(e),ej.writeStat(r,eT.stat(e))}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},K:function(e,r,t){try{if(r=ej.getStr(r),r=ej.calculateAt(e,r),t)if(512!==t)return -28;else eT.rmdir(r);else eT.unlink(r);return 0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},J:function(e,r,t,n){try{r=ej.getStr(r),r=ej.calculateAt(e,r,!0);var o,i,a=Date.now();if(t){var s=eO(t),l=f[t+8>>2];o=0x3fffffff==l?a:0x3ffffffe==l?null:1e3*s+l/1e6,t+=16,s=eO(t),l=f[t+8>>2],i=0x3fffffff==l?a:0x3ffffffe==l?null:1e3*s+l/1e6}else o=a,i=a;return(i??o)!==null&&eT.utime(r,o,i),0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},F:()=>I(""),E:()=>{Z=!1,eL=0},w:function(e,r,t){var n=new Date(1e3*eR(e,r));f[t>>2]=n.getSeconds(),f[t+4>>2]=n.getMinutes(),f[t+8>>2]=n.getHours(),f[t+12>>2]=n.getDate(),f[t+16>>2]=n.getMonth(),f[t+20>>2]=n.getFullYear()-1900,f[t+24>>2]=n.getDay();var o=0|e$(n);f[t+28>>2]=o,f[t+36>>2]=-(60*n.getTimezoneOffset());var i=new Date(n.getFullYear(),0,1),a=new Date(n.getFullYear(),6,1).getTimezoneOffset(),s=i.getTimezoneOffset(),l=0|(a!=s&&n.getTimezoneOffset()==Math.min(s,a));f[t+32>>2]=l},u:function(e,r,t,n,o,i,a,s){var l=eR(o,i);try{var _=ej.getStreamFromFD(n),u=eT.mmap(_,e,l,r,t),c=u.ptr;return f[a>>2]=u.allocated,m[s>>2]=c,0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},v:function(e,r,t,n,o,i,a){var s=eR(i,a);try{var l=ej.getStreamFromFD(o);2&t&&ej.doMsync(e,l,r,n,s)}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return-e.errno}},G:(e,r)=>{if(eH[e]&&(clearTimeout(eH[e].id),delete eH[e]),!r)return 0;var t=setTimeout(()=>{delete eH[e],eK(()=>E(e,eJ()))},r);return eH[e]={id:t,timeout_ms:r},0},Q:(e,r,t,n)=>{var o=(new Date).getFullYear(),i=new Date(o,0,1),a=new Date(o,6,1),s=i.getTimezoneOffset(),l=a.getTimezoneOffset(),_=Math.max(s,l);m[e>>2]=60*_,f[r>>2]=Number(s!=l);var u=e=>{var r=Math.abs(e),t=String(Math.floor(r/60)).padStart(2,"0"),n=String(r%60).padStart(2,"0");return`UTC${e>=0?"-":"+"}${t}${n}`},c=u(s),d=u(l);l<s?(eN(c,t,17),eN(d,n,17)):(eN(c,n,17),eN(d,t,17))},n:()=>Date.now(),g:eJ,H:e=>{var r=u.length;e>>>=0;var t=eQ();if(e>t)return!1;for(var n=1;n<=4;n*=2){var o=r*(1+.2/n);if(o=Math.min(o,e+0x6000000),eZ(Math.min(t,ew(Math.max(e,o),65536))))return!0}return!1},S:(e,r)=>{var t=0,n=0;for(var o of e3()){var i=r+t;m[e+n>>2]=i,t+=eN(o,i,1/0)+1,n+=4}return 0},T:(e,r)=>{var t=e3();m[e>>2]=t.length;var n=0;for(var o of t)n+=ed(o)+1;return m[r>>2]=n,0},o:function(e){try{var r=ej.getStreamFromFD(e);return eT.close(r),0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return e.errno}},I:function(e,r){try{var t=ej.getStreamFromFD(e),n=t.tty?2:eT.isDir(t.mode)?3:eT.isLink(t.mode)?7:4;return _[r]=n,c[r+2>>1]=0,b=[0,(w=0,+Math.abs(w)>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0)],f[r+8>>2]=b[0],f[r+12>>2]=b[1],b=[0,(w=0,+Math.abs(w)>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0)],f[r+16>>2]=b[0],f[r+20>>2]=b[1],0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return e.errno}},O:function(e,r,t,n){try{var o=ej.getStreamFromFD(e),i=e2(o,r,t);return m[n>>2]=i,0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return e.errno}},x:function(e,r,t,n,o){var i=eR(r,t);try{if(isNaN(i))return 61;var a=ej.getStreamFromFD(e);return eT.llseek(a,i,n),b=[a.position>>>0,(w=a.position,+Math.abs(w)>=1?w>0?+Math.floor(w/0x100000000)>>>0:~~+Math.ceil((w-+(~~w>>>0))/0x100000000)>>>0:0)],f[o>>2]=b[0],f[o+4>>2]=b[1],a.getdents&&0===i&&0===n&&(a.getdents=null),0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return e.errno}},V:function(e){try{var r=ej.getStreamFromFD(e);return r.stream_ops?.fsync?.(r)}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return e.errno}},L:function(e,r,t,n){try{var o=ej.getStreamFromFD(e),i=e4(o,r,t);return m[n>>2]=i,0}catch(e){if(void 0===eT||"ErrnoError"!==e.name)throw e;return e.errno}},s:function(...e){return e6(!1,...e)},t:function(...e){return e6(!0,...e)},ka:function(...e){return e6(!1,...e)},oa:function(...e){return e6(!0,...e)},j:function(...e){return e6(!1,...e)},k:function(...e){return e6(!0,...e)},c:function(...e){return e6(!1,...e)},d:function(...e){return e6(!0,...e)},ga:function(...e){return e6(!1,...e)},ha:function(...e){return e6(!0,...e)},ia:function(...e){return e6(!1,...e)},ja:function(...e){return e6(!0,...e)},h:function(...e){return e6(!1,...e)},i:function(...e){return e6(!0,...e)},z:function(...e){return e6(!1,...e)},A:function(...e){return e6(!0,...e)},e:function(...e){return e6(!1,...e)},f:function(...e){return e6(!0,...e)},ea:function(...e){return e6(!1,...e)},fa:function(...e){return e6(!0,...e)},B:function(...e){return e6(!1,...e)},C:function(...e){return e6(!0,...e)},p:function(...e){return e6(!1,...e)},q:function(...e){return e6(!0,...e)},la:function(...e){return e6(!1,...e)},ma:function(...e){return e6(!0,...e)},D:eX,na:function(...e){return e6(!1,...e)},r:function(...e){return e6(!0,...e)},l:function(...e){return e6(!1,...e)},m:function(...e){return e6(!0,...e)},W:function(...e){return e6(!1,...e)},ca:function(...e){return e6(!0,...e)}};F=await W(),function r(){if(eS>0){eM=r;return}if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)J(e.preRun.shift());if(X(K),eS>0){eM=r;return}function t(){if(e.calledRun=!0,!O){if(L=!0,e.noFSInit||eT.initialized||eT.init(
1),ep.init(),F.qa(),eT.ignorePermissions=!1,s?.(e),e.onRuntimeInitialized?.(),e.noInitialRun||function(){var e=y;try{var r=e(0,0);eV(r,!0)}catch(e){return eW(e)}}(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)Y(e.postRun.shift());X(V)}}e.setStatus?(e.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>e.setStatus(""),1),t()},1)):t()}();let rm=Object.getPrototypeOf(async function(){}).constructor,rh=0;e.set_authorizer=function(r,t,n){rh&&(e.deleteCallback(rh),e._sqlite3_free(rh),rh=0),ee(rh=e._sqlite3_malloc(4),+(t instanceof rm),"i32");let o=ru("libauthorizer_set_authorizer","number",["number","number","number"],[r,+!!t,rh]);return!o&&t&&e.setCallback(rh,(e,r,o,i,a,s)=>t(n,r,o,i,a,s)),o};let rp=Object.getPrototypeOf(async function(){}).constructor,rv=["xFunc","xStep","xFinal"],rw=new Map;e.create_function=function(r,t,n,o,i,a,s,l){let _=e._sqlite3_malloc(4),u={xFunc:a,xStep:s,xFinal:l};ee(_,rv.reduce((e,r,t)=>u[r]instanceof rp?e|1<<t:e,0),"i32");let c=ru("libfunction_create_function","number",["number","string","number","number","number","number","number","number"],[r,t,n,o,_,+!!a,+!!s,+!!l]);if(!c){if(rw.has(t)){let r=rw.get(t);e.deleteCallback(r)}rw.set(t,_),e.setCallback(_,{xFunc:a,xStep:s,xFinal:l})}return c};let rb=Object.getPrototypeOf(async function(){}).constructor,rg=0;e.update_hook=function(r,t){rg&&(e.deleteCallback(rg),e._sqlite3_free(rg),rg=0),ee(rg=e._sqlite3_malloc(4),+(t instanceof rb),"i32"),ru("libhook_update_hook","void",["number","number","number"],[r,+!!t,rg]),t&&e.setCallback(rg,(e,r,n,o,i,a)=>t(r,n,o,i,a))};let ry=Object.getPrototypeOf(async function(){}).constructor,rq=0;e.commit_hook=function(r,t){rq&&(e.deleteCallback(rq),e._sqlite3_free(rq),rq=0),ee(rq=e._sqlite3_malloc(4),+(t instanceof ry),"i32"),ru("libhook_commit_hook","void",["number","number","number"],[r,+!!t,rq]),t&&e.setCallback(rq,e=>t())};let rE=Object.getPrototypeOf(async function(){}).constructor,rk=0;e.progress_handler=function(r,t,n,o){rk&&(e.deleteCallback(rk),e._sqlite3_free(rk),rk=0),ee(rk=e._sqlite3_malloc(4),+(n instanceof rE),"i32"),ru("libprogress_progress_handler","number",["number","number","number","number"],[r,t,+!!n,rk]),n&&e.setCallback(rk,e=>n(o))};let rx=["xOpen","xDelete","xAccess","xFullPathname","xRandomness","xSleep","xCurrentTime","xGetLastError","xCurrentTimeInt64","xClose","xRead","xWrite","xTruncate","xSync","xFileSize","xLock","xUnlock","xCheckReservedLock","xFileControl","xSectorSize","xDeviceCharacteristics","xShmMap","xShmLock","xShmBarrier","xShmUnmap"],rS=new Map;return e.vfs_register=function(r,t){let n=0,o=0;rx.forEach((e,t)=>{r[e]&&(n|=1<<t,r.hasAsyncMethod(e)&&(o|=1<<t))});let i=e._sqlite3_malloc(4);try{let a=ru("libvfs_vfs_register","number",["string","number","number","number","number","number"],[r.name,r.mxPathname,n,o,+!!t,i]);if(!a){if(rS.has(r.name)){let t=rS.get(r.name);e.deleteCallback(t)}let t=Q(i,"*");rS.set(r.name,t),e.setCallback(t,r)}return a}finally{e._sqlite3_free(i)}},L?e:new Promise((e,r)=>{s=e,l=r})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.