@rive-app/flutter-wasm
Advanced tools
Comparing version 18.0.0 to 19.0.0
@@ -11,89 +11,89 @@ | ||
var d=m.fontFeatures;m.fontFeatures=function(e){e=d(e);var f=new DataView(m.HEAPU8.buffer,m.HEAPU8.byteOffset+e),g=f.getUint32(0,!0);f=f.getUint32(4,!0);g=new DataView(m.HEAPU8.buffer,m.HEAPU8.byteOffset+g);for(var k=[],l=0;l<f;l++){var h=g.getUint32(4*l,!0);k.push(h)}m.deleteFontFeatures(e);return k}}; | ||
var ca=Object.assign({},m),da="./this.program",ea="object"==typeof window,n="function"==typeof importScripts,fa="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,t="",ha,ia,ja; | ||
if(fa){var fs=require("fs"),ka=require("path");t=n?ka.dirname(t)+"/":__dirname+"/";ha=(a,b)=>{a=la(a)?new URL(a):ka.normalize(a);return fs.readFileSync(a,b?void 0:"utf8")};ja=a=>{a=ha(a,!0);a.buffer||(a=new Uint8Array(a));return a};ia=(a,b,c,d=!0)=>{a=la(a)?new URL(a):ka.normalize(a);fs.readFile(a,d?void 0:"utf8",(e,f)=>{e?c(e):b(d?f.buffer:f)})};!m.thisProgram&&1<process.argv.length&&(da=process.argv[1].replace(/\\/g,"/"));process.argv.slice(2);m.inspect=()=>"[Emscripten Module object]"}else if(ea|| | ||
n)n?t=self.location.href:"undefined"!=typeof document&&document.currentScript&&(t=document.currentScript.src),_scriptDir&&(t=_scriptDir),0!==t.indexOf("blob:")?t=t.substr(0,t.replace(/[?#].*/,"").lastIndexOf("/")+1):t="",ha=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText},n&&(ja=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),ia=(a,b,c)=>{var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType= | ||
"arraybuffer";d.onload=()=>{200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)};var ma=console.log.bind(console),v=console.error.bind(console);Object.assign(m,ca);ca=null;"object"!=typeof WebAssembly&&na("no native wasm support detected");var oa,pa=!1,w,B,C,qa,D,E,ra,F,sa,ta; | ||
function ua(){var a=oa.buffer;m.HEAP8=w=new Int8Array(a);m.HEAP16=C=new Int16Array(a);m.HEAPU8=B=new Uint8Array(a);m.HEAPU16=qa=new Uint16Array(a);m.HEAP32=D=new Int32Array(a);m.HEAPU32=E=new Uint32Array(a);m.HEAPF32=ra=new Float32Array(a);m.HEAPF64=ta=new Float64Array(a);m.HEAP64=F=new BigInt64Array(a);m.HEAPU64=sa=new BigUint64Array(a)}var va=[],wa=[],xa=[],ya=0,za=null,Aa=null; | ||
function na(a){a="Aborted("+a+")";v(a);pa=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}var Ba=a=>a.startsWith("data:application/octet-stream;base64,"),la=a=>a.startsWith("file://"),Ca;Ca="rive_text.wasm";Ba(Ca)||(Ca=t+Ca);function Da(a){if(ja)return ja(a);throw"both async and sync fetching of the wasm failed";} | ||
function Ea(a){if(ea||n){if("function"==typeof fetch&&!la(a))return fetch(a,{credentials:"same-origin"}).then(b=>{if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(()=>Da(a));if(ia)return new Promise((b,c)=>{ia(a,d=>b(new Uint8Array(d)),c)})}return Promise.resolve().then(()=>Da(a))}function Fa(a,b,c){return Ea(a).then(d=>WebAssembly.instantiate(d,b)).then(d=>d).then(c,d=>{v(`failed to asynchronously prepare wasm: ${d}`);na(d)})} | ||
function Ga(a,b){var c=Ca;return"function"!=typeof WebAssembly.instantiateStreaming||Ba(c)||la(c)||fa||"function"!=typeof fetch?Fa(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(e){v(`wasm streaming compile failed: ${e}`);v("falling back to ArrayBuffer instantiation");return Fa(c,a,b)}))} | ||
var Ka={148456:(a,b,c,d,e)=>{if("undefined"===typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if("undefined"===typeof window.$){window.$={Aa:0};window.$.ha={};window.$.ha.za=a;window.$.ha.capture=b;window.$.ha.Ca=c;window.$.ta={};window.$.ta.stopped=d;window.$.ta.Za=e;let f=window.$;f.fa=[];f.pb=function(g){for(var k=0;k<f.fa.length;++k)if(null==f.fa[k])return f.fa[k]=g,k;f.fa.push(g);return f.fa.length-1};f.ab=function(g){for(f.fa[g]=null;0<f.fa.length;)if(null== | ||
f.fa[f.fa.length-1])f.fa.pop();else break};f.Ab=function(g){for(var k=0;k<f.fa.length;++k)if(f.fa[k]==g)return f.ab(k)};f.va=function(g){return f.fa[g]};f.$a=["touchend","click"];f.unlock=function(){for(var g=0;g<f.fa.length;++g){var k=f.fa[g];null!=k&&null!=k.ia&&k.state===f.ta.Za&&k.ia.resume().then(()=>{Ha(k.Xa)},l=>{console.error("Failed to resume audiocontext",l)})}f.$a.map(function(l){document.removeEventListener(l,f.unlock,!0)})};f.$a.map(function(g){document.addEventListener(g,f.unlock,!0)})}window.$.Aa+= | ||
1;return 1},150634:()=>{"undefined"!==typeof window.$&&(--window.$.Aa,0===window.$.Aa&&delete window.$)},150798:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,150902:()=>{try{var a=new (window.AudioContext||window.webkitAudioContext),b=a.sampleRate;a.close();return b}catch(c){return 0}},151073:(a,b,c,d,e,f)=>{if("undefined"===typeof window.$)return-1;var g={},k={};a==window.$.ha.za&&0!=c&&(k.sampleRate=c);g.ia=new (window.AudioContext||window.webkitAudioContext)(k); | ||
g.ia.suspend();g.state=window.$.ta.stopped;c=0;a!=window.$.ha.za&&(c=b);g.ra=g.ia.createScriptProcessor(d,c,b);g.ra.onaudioprocess=function(l){if(null==g.wa||0==g.wa.length)g.wa=new Float32Array(ra.buffer,e,d*b);if(a==window.$.ha.capture||a==window.$.ha.Ca){for(var h=0;h<b;h+=1)for(var q=l.inputBuffer.getChannelData(h),r=g.wa,p=0;p<d;p+=1)r[p*b+h]=q[p];Ia(f,d,e)}if(a==window.$.ha.za||a==window.$.ha.Ca)for(Ja(f,d,e),h=0;h<l.outputBuffer.numberOfChannels;++h)for(q=l.outputBuffer.getChannelData(h),r= | ||
g.wa,p=0;p<d;p+=1)q[p]=r[p*b+h];else for(h=0;h<l.outputBuffer.numberOfChannels;++h)l.outputBuffer.getChannelData(h).fill(0)};a!=window.$.ha.capture&&a!=window.$.ha.Ca||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(l){g.Ba=g.ia.createMediaStreamSource(l);g.Ba.connect(g.ra);g.ra.connect(g.ia.destination)}).catch(function(l){console.log("Failed to get user media: "+l)});a==window.$.ha.za&&g.ra.connect(g.ia.destination);g.Xa=f;return window.$.pb(g)},153950:a=>window.$.va(a).ia.sampleRate, | ||
154023:a=>{a=window.$.va(a);void 0!==a.ra&&(a.ra.onaudioprocess=function(){},a.ra.disconnect(),a.ra=void 0);void 0!==a.Ba&&(a.Ba.disconnect(),a.Ba=void 0);a.ia.close();a.ia=void 0;a.Xa=void 0},154423:a=>{window.$.ab(a)},154473:a=>{a=window.$.va(a);a.ia.resume();a.state=window.$.ta.Za},154612:a=>{a=window.$.va(a);a.ia.suspend();a.state=window.$.ta.stopped}},La=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift(".."); | ||
return a},G=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=La(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Ma=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},Na=a=>{if("/"===a)return"/";a=G(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},Oa=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return c=> | ||
crypto.getRandomValues(c);if(fa)try{var a=require("crypto");if(a.randomFillSync)return c=>a.randomFillSync(c);var b=a.randomBytes;return c=>(c.set(b(c.byteLength)),c)}catch(c){}na("initRandomDevice")},Pa=a=>(Pa=Oa())(a); | ||
function Qa(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:"/";if("string"!=typeof b)throw new TypeError("Arguments to path.resolve must be strings");if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=La(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."} | ||
var Ra="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,I=(a,b,c)=>{var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.buffer&&Ra)return Ra.decode(a.subarray(b,c));for(d="";b<c;){var e=a[b++];if(e&128){var f=a[b++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|f);else{var g=a[b++]&63;e=224==(e&240)?(e&15)<<12|f<<6|g:(e&7)<<18|f<<12|g<<6|a[b++]&63;65536>e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d}, | ||
Sa=[],Ta=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);127>=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b},Ua=(a,b,c,d)=>{if(!(0<d))return 0;var e=c;d=c+d-1;for(var f=0;f<a.length;++f){var g=a.charCodeAt(f);if(55296<=g&&57343>=g){var k=a.charCodeAt(++f);g=65536+((g&1023)<<10)|k&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12& | ||
63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0;return c-e},Va=[];function Wa(a,b){Va[a]={input:[],output:[],pa:b};Xa(a,Ya)} | ||
var Ya={open(a){var b=Va[a.node.rdev];if(!b)throw new J(43);a.tty=b;a.seekable=!1},close(a){a.tty.pa.fsync(a.tty)},fsync(a){a.tty.pa.fsync(a.tty)},read(a,b,c,d){if(!a.tty||!a.tty.pa.Ta)throw new J(60);for(var e=0,f=0;f<d;f++){try{var g=a.tty.pa.Ta(a.tty)}catch(k){throw new J(29);}if(void 0===g&&0===e)throw new J(6);if(null===g||void 0===g)break;e++;b[c+f]=g}e&&(a.node.timestamp=Date.now());return e},write(a,b,c,d){if(!a.tty||!a.tty.pa.Ia)throw new J(60);try{for(var e=0;e<d;e++)a.tty.pa.Ia(a.tty,b[c+ | ||
e])}catch(f){throw new J(29);}d&&(a.node.timestamp=Date.now());return e}},Za={Ta(){a:{if(!Sa.length){var a=null;if(fa){var b=Buffer.alloc(256),c=0,d=process.stdin.fd;try{c=fs.readSync(d,b)}catch(e){if(e.toString().includes("EOF"))c=0;else throw e;}0<c?a=b.slice(0,c).toString("utf-8"):a=null}else"undefined"!=typeof window&&"function"==typeof window.prompt?(a=window.prompt("Input: "),null!==a&&(a+="\n")):"function"==typeof readline&&(a=readline(),null!==a&&(a+="\n"));if(!a){a=null;break a}b=Array(Ta(a)+ | ||
1);a=Ua(a,b,0,b.length);b.length=a;Sa=b}a=Sa.shift()}return a},Ia(a,b){null===b||10===b?(ma(I(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},fsync(a){a.output&&0<a.output.length&&(ma(I(a.output,0)),a.output=[])},ib(){return{tb:25856,vb:5,sb:191,ub:35387,rb:[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]}},jb(){return 0},kb(){return[24,80]}},$a={Ia(a,b){null===b||10===b?(v(I(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},fsync(a){a.output&&0<a.output.length&&(v(I(a.output, | ||
0)),a.output=[])}};function ab(a,b){var c=a.ba?a.ba.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.ba,a.ba=new Uint8Array(b),0<a.ea&&a.ba.set(c.subarray(0,a.ea),0))} | ||
var K={la:null,oa(){return K.createNode(null,"/",16895,0)},createNode(a,b,c,d){if(24576===(c&61440)||4096===(c&61440))throw new J(63);K.la||(K.la={dir:{node:{ka:K.aa.ka,na:K.aa.na,lookup:K.aa.lookup,xa:K.aa.xa,rename:K.aa.rename,unlink:K.aa.unlink,rmdir:K.aa.rmdir,readdir:K.aa.readdir,symlink:K.aa.symlink},stream:{sa:K.da.sa}},file:{node:{ka:K.aa.ka,na:K.aa.na},stream:{sa:K.da.sa,read:K.da.read,write:K.da.write,ua:K.da.ua,Ua:K.da.Ua,Wa:K.da.Wa}},link:{node:{ka:K.aa.ka,na:K.aa.na,readlink:K.aa.readlink}, | ||
stream:{}},Pa:{node:{ka:K.aa.ka,na:K.aa.na},stream:cb}});c=db(a,b,c,d);16384===(c.mode&61440)?(c.aa=K.la.dir.node,c.da=K.la.dir.stream,c.ba={}):32768===(c.mode&61440)?(c.aa=K.la.file.node,c.da=K.la.file.stream,c.ea=0,c.ba=null):40960===(c.mode&61440)?(c.aa=K.la.link.node,c.da=K.la.link.stream):8192===(c.mode&61440)&&(c.aa=K.la.Pa.node,c.da=K.la.Pa.stream);c.timestamp=Date.now();a&&(a.ba[b]=c,a.timestamp=c.timestamp);return c},wb(a){return a.ba?a.ba.subarray?a.ba.subarray(0,a.ea):new Uint8Array(a.ba): | ||
new Uint8Array(0)},aa:{ka(a){var b={};b.dev=8192===(a.mode&61440)?a.id:1;b.ino=a.id;b.mode=a.mode;b.nlink=1;b.uid=0;b.gid=0;b.rdev=a.rdev;16384===(a.mode&61440)?b.size=4096:32768===(a.mode&61440)?b.size=a.ea:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.atime=new Date(a.timestamp);b.mtime=new Date(a.timestamp);b.ctime=new Date(a.timestamp);b.eb=4096;b.blocks=Math.ceil(b.size/b.eb);return b},na(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.ea!=b))if(0==b)a.ba=null,a.ea=0;else{var c=a.ba;a.ba=new Uint8Array(b);c&&a.ba.set(c.subarray(0,Math.min(b,a.ea)));a.ea=b}},lookup(){throw eb[44];},xa(a,b,c,d){return K.createNode(a,b,c,d)},rename(a,b,c){if(16384===(a.mode&61440)){try{var d=fb(b,c)}catch(f){}if(d)for(var e in d.ba)throw new J(55);}delete a.parent.ba[a.name];a.parent.timestamp=Date.now();a.name=c;b.ba[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},unlink(a,b){delete a.ba[b];a.timestamp=Date.now()},rmdir(a,b){var c= | ||
fb(a,b),d;for(d in c.ba)throw new J(55);delete a.ba[b];a.timestamp=Date.now()},readdir(a){var b=[".",".."],c;for(c of Object.keys(a.ba))b.push(c);return b},symlink(a,b,c){a=K.createNode(a,b,41471,0);a.link=c;return a},readlink(a){if(40960!==(a.mode&61440))throw new J(28);return a.link}},da:{read(a,b,c,d,e){var f=a.node.ba;if(e>=a.node.ea)return 0;a=Math.min(a.node.ea-e,d);if(8<a&&f.subarray)b.set(f.subarray(e,e+a),c);else for(d=0;d<a;d++)b[c+d]=f[e+d];return a},write(a,b,c,d,e,f){b.buffer===w.buffer&& | ||
(f=!1);if(!d)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.ba||a.ba.subarray)){if(f)return a.ba=b.subarray(c,c+d),a.ea=d;if(0===a.ea&&0===e)return a.ba=b.slice(c,c+d),a.ea=d;if(e+d<=a.ea)return a.ba.set(b.subarray(c,c+d),e),d}ab(a,e+d);if(a.ba.subarray&&b.subarray)a.ba.set(b.subarray(c,c+d),e);else for(f=0;f<d;f++)a.ba[e+f]=b[c+f];a.ea=Math.max(a.ea,e+d);return d},sa(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.ea);if(0>b)throw new J(28);return b},ua(a,b, | ||
c){ab(a.node,b+c);a.node.ea=Math.max(a.node.ea,b+c)},Ua(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new J(43);a=a.node.ba;if(e&2||a.buffer!==w.buffer){if(0<c||c+b<a.length)a.subarray?a=a.subarray(c,c+b):a=Array.prototype.slice.call(a,c,c+b);c=!0;na();b=void 0;if(!b)throw new J(48);w.set(a,b)}else c=!1,b=a.byteOffset;return{zb:b,ja:c}},Wa(a,b,c,d){K.da.write(a,b,0,d,c,!1);return 0}}},gb=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},hb=null,ib={},jb=[],kb=1,lb=null,mb=!0,J=null,eb={}; | ||
function L(a,b={}){a=Qa(a);if(!a)return{path:"",node:null};b=Object.assign({Ra:!0,La:0},b);if(8<b.La)throw new J(32);a=a.split("/").filter(g=>!!g);for(var c=hb,d="/",e=0;e<a.length;e++){var f=e===a.length-1;if(f&&b.parent)break;c=fb(c,a[e]);d=G(d+"/"+a[e]);c.ya&&(!f||f&&b.Ra)&&(c=c.ya.root);if(!f||b.Da)for(f=0;40960===(c.mode&61440);)if(c=nb(d),d=Qa(Ma(d),c),c=L(d,{La:b.La+1}).node,40<f++)throw new J(32);}return{path:d,node:c}} | ||
function ob(a){for(var b;;){if(a===a.parent)return a=a.oa.Va,b?"/"!==a[a.length-1]?`${a}/${b}`:a+b:a;b=b?`${a.name}/${b}`:a.name;a=a.parent}}function pb(a,b){for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%lb.length}function fb(a,b){var c;if(c=(c=qb(a,"x"))?c:a.aa.lookup?0:2)throw new J(c,a);for(c=lb[pb(a.id,b)];c;c=c.nb){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.aa.lookup(a,b)} | ||
function db(a,b,c,d){a=new rb(a,b,c,d);b=pb(a.parent.id,a.name);a.nb=lb[b];return lb[b]=a}function sb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b}function qb(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 tb(a,b){try{return fb(a,b),20}catch(c){}return qb(a,"wx")}function ub(){for(var a=0;4096>=a;a++)if(!jb[a])return a;throw new J(33);} | ||
function M(a){a=jb[a];if(!a)throw new J(8);return a}function vb(a,b=-1){wb||(wb=function(){this.$={}},wb.prototype={},Object.defineProperties(wb.prototype,{object:{get(){return this.node},set(c){this.node=c}},flags:{get(){return this.$.flags},set(c){this.$.flags=c}},position:{get(){return this.$.position},set(c){this.$.position=c}}}));a=Object.assign(new wb,a);-1==b&&(b=ub());a.fd=b;return jb[b]=a}var cb={open(a){a.da=ib[a.node.rdev].da;a.da.open?.(a)},sa(){throw new J(70);}}; | ||
function Xa(a,b){ib[a]={da:b}}function xb(a,b){var c="/"===b,d=!b;if(c&&hb)throw new J(10);if(!c&&!d){var e=L(b,{Ra:!1});b=e.path;e=e.node;if(e.ya)throw new J(10);if(16384!==(e.mode&61440))throw new J(54);}b={type:a,yb:{},Va:b,mb:[]};a=a.oa(b);a.oa=b;b.root=a;c?hb=a:e&&(e.ya=b,e.oa&&e.oa.mb.push(b))}function yb(a,b,c){var d=L(a,{parent:!0}).node;a=Na(a);if(!a||"."===a||".."===a)throw new J(28);var e=tb(d,a);if(e)throw new J(e);if(!d.aa.xa)throw new J(63);return d.aa.xa(d,a,b,c)} | ||
function N(a){return yb(a,16895,0)}function zb(a,b,c){"undefined"==typeof c&&(c=b,b=438);yb(a,b|8192,c)}function Ab(a,b){if(!Qa(a))throw new J(44);var c=L(b,{parent:!0}).node;if(!c)throw new J(44);b=Na(b);var d=tb(c,b);if(d)throw new J(d);if(!c.aa.symlink)throw new J(63);c.aa.symlink(c,b,a)}function nb(a){a=L(a).node;if(!a)throw new J(44);if(!a.aa.readlink)throw new J(28);return Qa(ob(a.parent),a.aa.readlink(a))} | ||
function Bb(a,b,c){if(""===a)throw new J(44);if("string"==typeof b){var d={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[b];if("undefined"==typeof d)throw Error(`Unknown file open mode: ${b}`);b=d}c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var e=a;else{a=G(a);try{e=L(a,{Da:!(b&131072)}).node}catch(f){}}d=!1;if(b&64)if(e){if(b&128)throw new J(20);}else e=yb(a,c,0),d=!0;if(!e)throw new J(44);8192===(e.mode&61440)&&(b&=-513);if(b&65536&&16384!==(e.mode&61440))throw new J(54); | ||
if(!d&&(c=e?40960===(e.mode&61440)?32:16384===(e.mode&61440)&&("r"!==sb(b)||b&512)?31:qb(e,sb(b)):44))throw new J(c);if(b&512&&!d){c=e;c="string"==typeof c?L(c,{Da:!0}).node:c;if(!c.aa.na)throw new J(63);if(16384===(c.mode&61440))throw new J(31);if(32768!==(c.mode&61440))throw new J(28);if(d=qb(c,"w"))throw new J(d);c.aa.na(c,{size:0,timestamp:Date.now()})}b&=-131713;e=vb({node:e,path:ob(e),flags:b,seekable:!0,position:0,da:e.da,qb:[],error:!1});e.da.open&&e.da.open(e);!m.logReadFiles||b&1||(Cb||= | ||
{},a in Cb||(Cb[a]=1));return e}function Db(a,b,c){if(null===a.fd)throw new J(8);if(!a.seekable||!a.da.sa)throw new J(70);if(0!=c&&1!=c&&2!=c)throw new J(28);a.position=a.da.sa(a,b,c);a.qb=[]}function Eb(){J||(J=function(a,b){this.name="ErrnoError";this.node=b;this.ob=function(c){this.qa=c};this.ob(a);this.message="FS error"},J.prototype=Error(),J.prototype.constructor=J,[44].forEach(a=>{eb[a]=new J(a);eb[a].stack="<generic error, no stack>"}))}var Fb; | ||
function Gb(a,b,c){a=G("/dev/"+a);var d=gb(!!b,!!c);Hb||=64;var e=Hb++<<8|0;Xa(e,{open(f){f.seekable=!1},close(){c?.buffer?.length&&c(10)},read(f,g,k,l){for(var h=0,q=0;q<l;q++){try{var r=b()}catch(p){throw new J(29);}if(void 0===r&&0===h)throw new J(6);if(null===r||void 0===r)break;h++;g[k+q]=r}h&&(f.node.timestamp=Date.now());return h},write(f,g,k,l){for(var h=0;h<l;h++)try{c(g[k+h])}catch(q){throw new J(29);}l&&(f.node.timestamp=Date.now());return h}});zb(a,d,e)}var Hb,O={},wb,Cb,Ib=void 0; | ||
function P(){var a=D[+Ib>>2];Ib+=4;return a}var Jb={},Kb=a=>{for(;a.length;){var b=a.pop();a.pop()(b)}};function Lb(a){return this.fromWireType(D[a>>2])} | ||
var Q={},R={},Mb={},Nb,Ob=(a,b,c)=>{function d(k){k=c(k);if(k.length!==a.length)throw new Nb("Mismatched type converter count");for(var l=0;l<a.length;++l)S(a[l],k[l])}a.forEach(function(k){Mb[k]=b});var e=Array(b.length),f=[],g=0;b.forEach((k,l)=>{R.hasOwnProperty(k)?e[l]=R[k]:(f.push(k),Q.hasOwnProperty(k)||(Q[k]=[]),Q[k].push(()=>{e[l]=R[k];++g;g===f.length&&d(e)}))});0===f.length&&d(e)},Pb={},Qb=a=>{if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"===b?a.toString(): | ||
""+a},Rb,T=a=>{for(var b="";B[a];)b+=Rb[B[a++]];return b},U,Sb=a=>{throw new U(a);};function Tb(a,b,c={}){var d=b.name;if(!a)throw new U(`type "${d}" must have a positive integer typeid pointer`);if(R.hasOwnProperty(a)){if(c.gb)return;throw new U(`Cannot register type '${d}' twice`);}R[a]=b;delete Mb[a];Q.hasOwnProperty(a)&&(b=Q[a],delete Q[a],b.forEach(e=>e()))} | ||
function S(a,b,c={}){if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");Tb(a,b,c)}var Ub=(a,b,c)=>{switch(b){case 1:return c?d=>w[d>>0]:d=>B[d>>0];case 2:return c?d=>C[d>>1]:d=>qa[d>>1];case 4:return c?d=>D[d>>2]:d=>E[d>>2];case 8:return c?d=>F[d>>3]:d=>sa[d>>3];default:throw new TypeError(`invalid integer width (${b}): ${a}`);}};function Vb(){this.ja=[void 0];this.Sa=[]} | ||
var V=new Vb,Wb=a=>{a>=V.$&&0===--V.get(a).Ya&&V.bb(a)},W=a=>{if(!a)throw new U("Cannot use deleted val. handle = "+a);return V.get(a).value},Xb=a=>{switch(a){case void 0:return 1;case null:return 2;case !0:return 3;case !1:return 4;default:return V.ua({Ya:1,value:a})}},Yb=(a,b)=>{switch(b){case 4:return function(c){return this.fromWireType(ra[c>>2])};case 8:return function(c){return this.fromWireType(ta[c>>3])};default:throw new TypeError(`invalid float width (${b}): ${a}`);}},Zb=(a,b)=>Object.defineProperty(b, | ||
"name",{value:a});function $b(a){for(var b=1;b<a.length;++b)if(null!==a[b]&&void 0===a[b].ga)return!0;return!1}function ac(a){var b=Function;if(!(b instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof b} which is not a function`);var c=Zb(b.name||"unknownFunctionName",function(){});c.prototype=b.prototype;c=new c;a=b.apply(c,a);return a instanceof Object?a:c} | ||
var bc=(a,b)=>{if(void 0===m[a].ma){var c=m[a];m[a]=function(){if(!m[a].ma.hasOwnProperty(arguments.length))throw new U(`Function '${b}' called with an invalid number of arguments (${arguments.length}) - expects one of (${m[a].ma})!`);return m[a].ma[arguments.length].apply(this,arguments)};m[a].ma=[];m[a].ma[c.cb]=c}},cc=(a,b,c)=>{if(m.hasOwnProperty(a)){if(void 0===c||void 0!==m[a].ma&&void 0!==m[a].ma[c])throw new U(`Cannot register public name '${a}' twice`);bc(a,a);if(m.hasOwnProperty(c))throw new U(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`); | ||
m[a].ma[c]=b}else m[a]=b,void 0!==c&&(m[a].xb=c)},fc=(a,b)=>{for(var c=[],d=0;d<a;d++)c.push(E[b+4*d>>2]);return c},gc,X=(a,b)=>{a=T(a);var c=gc.get(b);if("function"!=typeof c)throw new U(`unknown function pointer with signature ${a}: ${b}`);return c},hc,jc=a=>{a=ic(a);var b=T(a);Y(a);return b},kc=(a,b)=>{function c(f){e[f]||R[f]||(Mb[f]?Mb[f].forEach(c):(d.push(f),e[f]=!0))}var d=[],e={};b.forEach(c);throw new hc(`${a}: `+d.map(jc).join([", "]));},lc=a=>{a=a.trim();const b=a.indexOf("(");return-1!== | ||
b?a.substr(0,b):a};function mc(a){return this.fromWireType(E[a>>2])} | ||
var nc="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,oc=(a,b)=>{var c=a>>1;for(var d=c+b/2;!(c>=d)&&qa[c];)++c;c<<=1;if(32<c-a&&nc)return nc.decode(B.subarray(a,c));c="";for(d=0;!(d>=b/2);++d){var e=C[a+2*d>>1];if(0==e)break;c+=String.fromCharCode(e)}return c},pc=(a,b,c)=>{c??=2147483647;if(2>c)return 0;c-=2;var d=b;c=c<2*a.length?c/2:a.length;for(var e=0;e<c;++e)C[b>>1]=a.charCodeAt(e),b+=2;C[b>>1]=0;return b-d},qc=a=>2*a.length,rc=(a,b)=>{for(var c=0,d="";!(c>=b/4);){var e= | ||
D[a+4*c>>2];if(0==e)break;++c;65536<=e?(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023)):d+=String.fromCharCode(e)}return d},sc=(a,b,c)=>{c??=2147483647;if(4>c)return 0;var d=b;c=d+c-4;for(var e=0;e<a.length;++e){var f=a.charCodeAt(e);if(55296<=f&&57343>=f){var g=a.charCodeAt(++e);f=65536+((f&1023)<<10)|g&1023}D[b>>2]=f;b+=4;if(b+4>c)break}D[b>>2]=0;return b-d},tc=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&++c;b+=4}return b},uc=(a,b)=>{var c=R[a];if(void 0=== | ||
c)throw a=b+" has unknown type "+jc(a),new U(a);return c},vc=(a,b,c)=>{var d=[];a=a.toWireType(d,c);d.length&&(E[b>>2]=Xb(d));return a},wc=[],xc={},yc=a=>{var b=xc[a];return void 0===b?T(a):b},zc=a=>{var b=wc.length;wc.push(a);return b},Ac=(a,b)=>{for(var c=Array(a),d=0;d<a;++d)c[d]=uc(E[b+4*d>>2],"parameter "+d);return c},Bc=[],Cc={},Ec=()=>{if(!Dc){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",_:da||"./this.program"},b;for(b in Cc)void 0===Cc[b]?delete a[b]:a[b]=Cc[b];var c=[];for(b in a)c.push(`${b}=${a[b]}`);Dc=c}return Dc},Dc;function rb(a,b,c,d){a||=this;this.parent=a;this.oa=a.oa;this.ya=null;this.id=kb++;this.name=b;this.mode=c;this.aa={};this.da={};this.rdev=d} | ||
Object.defineProperties(rb.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}}});Eb();lb=Array(4096);xb(K,"/");N("/tmp");N("/home");N("/home/web_user"); | ||
(function(){N("/dev");Xa(259,{read:()=>0,write:(d,e,f,g)=>g});zb("/dev/null",259);Wa(1280,Za);Wa(1536,$a);zb("/dev/tty",1280);zb("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Pa(a).byteLength);return a[--b]};Gb("random",c);Gb("urandom",c);N("/dev/shm");N("/dev/shm/tmp")})(); | ||
(function(){N("/proc");var a=N("/proc/self");N("/proc/self/fd");xb({oa(){var b=db(a,"fd",16895,73);b.aa={lookup(c,d){var e=M(+d);c={parent:null,oa:{Va:"fake"},aa:{readlink:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})();Nb=m.InternalError=class extends Error{constructor(a){super(a);this.name="InternalError"}};for(var Fc=Array(256),Gc=0;256>Gc;++Gc)Fc[Gc]=String.fromCharCode(Gc);Rb=Fc;U=m.BindingError=class extends Error{constructor(a){super(a);this.name="BindingError"}}; | ||
Object.assign(Vb.prototype,{get(a){return this.ja[a]},has(a){return void 0!==this.ja[a]},ua(a){var b=this.Sa.pop()||this.ja.length;this.ja[b]=a;return b},bb(a){this.ja[a]=void 0;this.Sa.push(a)}});V.ja.push({value:void 0},{value:null},{value:!0},{value:!1});V.$=V.ja.length;m.count_emval_handles=()=>{for(var a=0,b=V.$;b<V.ja.length;++b)void 0!==V.ja[b]&&++a;return a}; | ||
hc=m.UnboundTypeError=((a,b)=>{var c=Zb(b,function(d){this.name=b;this.message=d;d=Error(d).stack;void 0!==d&&(this.stack=this.toString()+"\n"+d.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(a.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`};return c})(Error,"UnboundTypeError"); | ||
var Jc={r:function(a,b,c){Ib=c;try{var d=M(a);switch(b){case 0:var e=P();if(0>e)return-28;for(;jb[e];)e++;return vb(d,e).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=P(),d.flags|=e,0;case 5:return e=P(),C[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return D[Hc()>>2]=28,-1;default:return-28}}catch(f){if("undefined"==typeof O||"ErrnoError"!==f.name)throw f;return-f.qa}},D:function(a,b){try{a:{var c=M(a).path;try{var d=L(c,{Da:!0}).node;if(!d)throw new J(44); | ||
if(!d.aa.ka)throw new J(63);var e=d.aa.ka(d)}catch(h){if(h&&h.node&&G(c)!==G(ob(h.node))){var f=-54;break a}throw h;}D[b>>2]=e.dev;D[b+4>>2]=e.mode;E[b+8>>2]=e.nlink;D[b+12>>2]=e.uid;D[b+16>>2]=e.gid;D[b+20>>2]=e.rdev;F[b+24>>3]=BigInt(e.size);D[b+32>>2]=4096;D[b+36>>2]=e.blocks;var g=e.atime.getTime(),k=e.mtime.getTime(),l=e.ctime.getTime();F[b+40>>3]=BigInt(Math.floor(g/1E3));E[b+48>>2]=g%1E3*1E3;F[b+56>>3]=BigInt(Math.floor(k/1E3));E[b+64>>2]=k%1E3*1E3;F[b+72>>3]=BigInt(Math.floor(l/1E3));E[b+ | ||
80>>2]=l%1E3*1E3;F[b+88>>3]=BigInt(e.ino);f=0}return f}catch(h){if("undefined"==typeof O||"ErrnoError"!==h.name)throw h;return-h.qa}},F:function(a,b,c){Ib=c;try{var d=M(a);switch(b){case 21509:return d.tty?0:-59;case 21505:if(!d.tty)return-59;if(d.tty.pa.ib){b=[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];var e=P();D[e>>2]=25856;D[e+4>>2]=5;D[e+8>>2]=191;D[e+12>>2]=35387;for(var f=0;32>f;f++)w[e+f+17>>0]=b[f]||0}return 0;case 21510:case 21511:case 21512:return d.tty? | ||
0:-59;case 21506:case 21507:case 21508:if(!d.tty)return-59;if(d.tty.pa.jb)for(e=P(),b=[],f=0;32>f;f++)b.push(w[e+f+17>>0]);return 0;case 21519:if(!d.tty)return-59;e=P();return D[e>>2]=0;case 21520:return d.tty?-28:-59;case 21531:e=P();if(!d.da.hb)throw new J(59);return d.da.hb(d,b,e);case 21523:if(!d.tty)return-59;d.tty.pa.kb&&(f=[24,80],e=P(),C[e>>1]=f[0],C[e+2>>1]=f[1]);return 0;case 21524:return d.tty?0:-59;case 21515:return d.tty?0:-59;default:return-28}}catch(g){if("undefined"==typeof O||"ErrnoError"!== | ||
g.name)throw g;return-g.qa}},G:function(a,b,c,d){Ib=d;try{b=b?I(B,b):"";var e=b;if("/"===e.charAt(0))b=e;else{var f=-100===a?"/":M(a).path;if(0==e.length)throw new J(44);b=G(f+"/"+e)}var g=d?P():0;return Bb(b,c,g).fd}catch(k){if("undefined"==typeof O||"ErrnoError"!==k.name)throw k;return-k.qa}},w:a=>{var b=Jb[a];delete Jb[a];var c=b.elements,d=c.length,e=c.map(k=>k.Ha).concat(c.map(k=>k.Na)),f=b.Ja,g=b.Ka;Ob([a],e,function(k){c.forEach((l,h)=>{var q=k[h],r=l.Fa,p=l.Ga,x=k[h+d],A=l.Ma,H=l.Oa;l.read= | ||
u=>q.fromWireType(r(p,u));l.write=(u,y)=>{var z=[];A(H,u,x.toWireType(z,y));Kb(z)}});return[{name:b.name,fromWireType:l=>{for(var h=Array(d),q=0;q<d;++q)h[q]=c[q].read(l);g(l);return h},toWireType:(l,h)=>{if(d!==h.length)throw new TypeError(`Incorrect number of tuple elements for ${b.name}: expected=${d}, actual=${h.length}`);for(var q=f(),r=0;r<d;++r)c[r].write(q,h[r]);null!==l&&l.push(g,q);return q},argPackAdvance:8,readValueFromPointer:Lb,ga:g}]})},c:a=>{var b=Pb[a];delete Pb[a];var c=b.Ja,d=b.Ka, | ||
e=b.Qa,f=e.map(g=>g.Ha).concat(e.map(g=>g.Na));Ob([a],f,g=>{var k={};e.forEach((l,h)=>{var q=g[h],r=l.Fa,p=l.Ga,x=g[h+e.length],A=l.Ma,H=l.Oa;k[l.fb]={read:u=>q.fromWireType(r(p,u)),write:(u,y)=>{var z=[];A(H,u,x.toWireType(z,y));Kb(z)}}});return[{name:b.name,fromWireType:l=>{var h={},q;for(q in k)h[q]=k[q].read(l);d(l);return h},toWireType:(l,h)=>{for(var q in k)if(!(q in h))throw new TypeError(`Missing field: "${q}"`);var r=c();for(q in k)k[q].write(r,h[q]);null!==l&&l.push(d,r);return r},argPackAdvance:8, | ||
readValueFromPointer:Lb,ga:d}]})},u:(a,b,c,d,e)=>{b=T(b);var f=-1!=b.indexOf("u");f&&(e=(1n<<64n)-1n);S(a,{name:b,fromWireType:g=>g,toWireType:function(g,k){if("bigint"!=typeof k&&"number"!=typeof k)throw new TypeError(`Cannot convert "${Qb(k)}" to ${this.name}`);if(k<d||k>e)throw new TypeError(`Passing a number "${Qb(k)}" from JS side to C/C++ side to an argument of type "${b}", which is outside the valid range [${d}, ${e}]!`);return k},argPackAdvance:8,readValueFromPointer:Ub(b,c,!f),ga:null})}, | ||
I:(a,b,c,d)=>{b=T(b);S(a,{name:b,fromWireType:function(e){return!!e},toWireType:function(e,f){return f?c:d},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(B[e])},ga:null})},H:(a,b)=>{b=T(b);S(a,{name:b,fromWireType:c=>{var d=W(c);Wb(c);return d},toWireType:(c,d)=>Xb(d),argPackAdvance:8,readValueFromPointer:Lb,ga:null})},t:(a,b,c)=>{b=T(b);S(a,{name:b,fromWireType:d=>d,toWireType:(d,e)=>e,argPackAdvance:8,readValueFromPointer:Yb(b,c),ga:null})},b:(a,b,c,d,e,f,g)=>{var k= | ||
fc(b,c);a=T(a);a=lc(a);e=X(d,e);cc(a,function(){kc(`Cannot call ${a} due to unbound types`,k)},b-1);Ob([],k,function(l){var h=[l[0],null].concat(l.slice(1));l=a;var q=a;var r=e,p=h.length;if(2>p)throw new U("argTypes array size mismatch! Must at least get return value and 'this' types!");var x=null!==h[1]&&!1,A=$b(h),H="void"!==h[0].name;r=[Sb,r,f,Kb,h[0],h[1]];for(var u=0;u<p-2;++u)r.push(h[u+2]);if(!A)for(u=x?1:2;u<h.length;++u)null!==h[u].ga&&r.push(h[u].ga);A=$b(h);u=h.length;var y="",z="";for(p= | ||
0;p<u-2;++p)y+=(0!==p?", ":"")+"arg"+p,z+=(0!==p?", ":"")+"arg"+p+"Wired";y=`\n return function (${y}) {\n if (arguments.length !== ${u-2}) {\n throwBindingError('function ${q} called with ' + arguments.length + ' arguments, expected ${u-2}');\n }`;A&&(y+="var destructors = [];\n");var dc=A?"destructors":"null",bb="throwBindingError invoker fn runDestructors retType classParam".split(" ");x&&(y+="var thisWired = classParam['toWireType']("+dc+", this);\n");for(p=0;p<u- | ||
2;++p)y+="var arg"+p+"Wired = argType"+p+"['toWireType']("+dc+", arg"+p+"); // "+h[p+2].name+"\n",bb.push("argType"+p);x&&(z="thisWired"+(0<z.length?", ":"")+z);y+=(H||g?"var rv = ":"")+"invoker(fn"+(0<z.length?", ":"")+z+");\n";if(A)y+="runDestructors(destructors);\n";else for(p=x?1:2;p<h.length;++p)x=1===p?"thisWired":"arg"+(p-2)+"Wired",null!==h[p].ga&&(y+=x+"_dtor("+x+"); // "+h[p].name+"\n",bb.push(x+"_dtor"));H&&(y+="var ret = retType['fromWireType'](rv);\nreturn ret;\n");let [ec,Lc]=[bb,y+ | ||
"}\n"];ec.push(Lc);h=ac(ec).apply(null,r);q=Zb(q,h);h=b-1;if(!m.hasOwnProperty(l))throw new Nb("Replacing nonexistant public symbol");void 0!==m[l].ma&&void 0!==h?m[l].ma[h]=q:(m[l]=q,m[l].cb=h);return[]})},h:(a,b,c,d,e)=>{b=T(b);-1===e&&(e=4294967295);e=k=>k;if(0===d){var f=32-8*c;e=k=>k<<f>>>f}var g=b.includes("unsigned")?function(k,l){return l>>>0}:function(k,l){return l};S(a,{name:b,fromWireType:e,toWireType:g,argPackAdvance:8,readValueFromPointer:Ub(b,c,0!==d),ga:null})},e:(a,b,c)=>{function d(f){return new e(w.buffer, | ||
E[f+4>>2],E[f>>2])}var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][b];c=T(c);S(a,{name:c,fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{gb:!0})},v:(a,b)=>{b=T(b);var c="std::string"===b;S(a,{name:b,fromWireType:function(d){var e=E[d>>2],f=d+4;if(c)for(var g=f,k=0;k<=e;++k){var l=f+k;if(k==e||0==B[l]){g=g?I(B,g,l-g):"";if(void 0===h)var h=g;else h+=String.fromCharCode(0),h+=g;g=l+1}}else{h=Array(e);for(k=0;k< | ||
e;++k)h[k]=String.fromCharCode(B[f+k]);h=h.join("")}Y(d);return h},toWireType:function(d,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var f="string"==typeof e;if(!(f||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array))throw new U("Cannot pass non-string to std::string");var g=c&&f?Ta(e):e.length;var k=Ic(4+g+1),l=k+4;E[k>>2]=g;if(c&&f)Ua(e,B,l,g+1);else if(f)for(f=0;f<g;++f){var h=e.charCodeAt(f);if(255<h)throw Y(l),new U("String has UTF-16 code units that do not fit in 8 bits"); | ||
B[l+f]=h}else for(f=0;f<g;++f)B[l+f]=e[f];null!==d&&d.push(Y,k);return k},argPackAdvance:8,readValueFromPointer:mc,ga(d){Y(d)}})},l:(a,b,c)=>{c=T(c);if(2===b){var d=oc;var e=pc;var f=qc;var g=()=>qa;var k=1}else 4===b&&(d=rc,e=sc,f=tc,g=()=>E,k=2);S(a,{name:c,fromWireType:l=>{for(var h=E[l>>2],q=g(),r,p=l+4,x=0;x<=h;++x){var A=l+4+x*b;if(x==h||0==q[A>>k])p=d(p,A-p),void 0===r?r=p:(r+=String.fromCharCode(0),r+=p),p=A+b}Y(l);return r},toWireType:(l,h)=>{if("string"!=typeof h)throw new U(`Cannot pass non-string to C++ string type ${c}`); | ||
var q=f(h),r=Ic(4+q+b);E[r>>2]=q>>k;e(h,r+4,q+b);null!==l&&l.push(Y,r);return r},argPackAdvance:8,readValueFromPointer:Lb,ga(l){Y(l)}})},x:(a,b,c,d,e,f)=>{Jb[a]={name:T(b),Ja:X(c,d),Ka:X(e,f),elements:[]}},i:(a,b,c,d,e,f,g,k,l)=>{Jb[a].elements.push({Ha:b,Fa:X(c,d),Ga:e,Na:f,Ma:X(g,k),Oa:l})},d:(a,b,c,d,e,f)=>{Pb[a]={name:T(b),Ja:X(c,d),Ka:X(e,f),Qa:[]}},a:(a,b,c,d,e,f,g,k,l,h)=>{Pb[a].Qa.push({fb:T(b),Ha:c,Fa:X(d,e),Ga:f,Na:g,Ma:X(k,l),Oa:h})},J:(a,b)=>{b=T(b);S(a,{lb:!0,name:b,argPackAdvance:0, | ||
fromWireType:()=>{},toWireType:()=>{}})},m:(a,b,c)=>{a=W(a);b=uc(b,"emval::as");return vc(b,c,a)},o:(a,b,c,d)=>{a=wc[a];b=W(b);return a(null,b,c,d)},M:(a,b,c,d,e)=>{a=wc[a];b=W(b);c=yc(c);return a(b,b[c],d,e)},K:Wb,k:(a,b,c)=>{b=Ac(a,b);var d=b.shift();a--;var e="return function (obj, func, destructorsRef, args) {\n",f=0,g=[];0===c&&g.push("obj");for(var k=["retType"],l=[d],h=0;h<a;++h)g.push("arg"+h),k.push("argType"+h),l.push(b[h]),e+=` var arg${h} = argType${h}.readValueFromPointer(args${f?"+"+ | ||
f:""});\n`,f+=b[h].argPackAdvance;e+=` var rv = ${1===c?"new func":"func.call"}(${g.join(", ")});\n`;for(h=0;h<a;++h)b[h].deleteObject&&(e+=` argType${h}.deleteObject(arg${h});\n`);d.lb||(k.push("emval_returnValue"),l.push(vc),e+=" return emval_returnValue(retType, destructorsRef, rv);\n");k.push(e+"};\n");a=ac(k).apply(null,l);c=`methodCaller<(${b.map(q=>q.name).join(", ")}) => ${d.name}>`;return zc(Zb(c,a))},n:(a,b)=>{a=W(a);b=W(b);return Xb(a[b])},s:a=>{4<a&&(V.get(a).Ya+=1)},N:a=>Xb(yc(a)), | ||
y:a=>{var b=W(a);Kb(b);Wb(a)},j:(a,b)=>{a=uc(a,"_emval_take_value");a=a.readValueFromPointer(b);return Xb(a)},f:()=>{na("")},g:(a,b,c)=>{Bc.length=0;for(var d;d=B[b++];){var e=105!=d;e&=112!=d;c+=e&&c%8?4:0;Bc.push(112==d?E[c>>2]:106==d?F[c>>3]:105==d?D[c>>2]:ta[c>>3]);c+=e?8:4}return Ka[a].apply(null,Bc)},z:a=>{var b=B.length;a>>>=0;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);var e=Math;d=Math.max(a,d);a:{e=(e.min.call(e,2147483648,d+(65536-d%65536)% | ||
65536)-oa.buffer.byteLength+65535)/65536;try{oa.grow(e);ua();var f=1;break a}catch(g){}f=void 0}if(f)return!0}return!1},B:(a,b)=>{var c=0;Ec().forEach((d,e)=>{var f=b+c;e=E[a+4*e>>2]=f;for(f=0;f<d.length;++f)w[e++>>0]=d.charCodeAt(f);w[e>>0]=0;c+=d.length+1});return 0},C:(a,b)=>{var c=Ec();E[a>>2]=c.length;var d=0;c.forEach(e=>d+=e.length+1);E[b>>2]=d;return 0},p:function(a){try{var b=M(a);if(null===b.fd)throw new J(8);b.Ea&&(b.Ea=null);try{b.da.close&&b.da.close(b)}catch(c){throw c;}finally{jb[b.fd]= | ||
null}b.fd=null;return 0}catch(c){if("undefined"==typeof O||"ErrnoError"!==c.name)throw c;return c.qa}},E:function(a,b,c,d){try{a:{var e=M(a);a=b;for(var f,g=b=0;g<c;g++){var k=E[a>>2],l=E[a+4>>2];a+=8;var h=e,q=k,r=l,p=f,x=w;if(0>r||0>p)throw new J(28);if(null===h.fd)throw new J(8);if(1===(h.flags&2097155))throw new J(8);if(16384===(h.node.mode&61440))throw new J(31);if(!h.da.read)throw new J(28);var A="undefined"!=typeof p;if(!A)p=h.position;else if(!h.seekable)throw new J(70);var H=h.da.read(h, | ||
x,q,r,p);A||(h.position+=H);var u=H;if(0>u){var y=-1;break a}b+=u;if(u<l)break;"undefined"!==typeof f&&(f+=u)}y=b}E[d>>2]=y;return 0}catch(z){if("undefined"==typeof O||"ErrnoError"!==z.name)throw z;return z.qa}},A:function(a,b,c,d){b=-9007199254740992>b||9007199254740992<b?NaN:Number(b);try{if(isNaN(b))return 61;var e=M(a);Db(e,b,c);F[d>>3]=BigInt(e.position);e.Ea&&0===b&&0===c&&(e.Ea=null);return 0}catch(f){if("undefined"==typeof O||"ErrnoError"!==f.name)throw f;return f.qa}},q:function(a,b,c,d){try{a:{var e= | ||
M(a);a=b;for(var f,g=b=0;g<c;g++){var k=E[a>>2],l=E[a+4>>2];a+=8;var h=e,q=k,r=l,p=f,x=w;if(0>r||0>p)throw new J(28);if(null===h.fd)throw new J(8);if(0===(h.flags&2097155))throw new J(8);if(16384===(h.node.mode&61440))throw new J(31);if(!h.da.write)throw new J(28);h.seekable&&h.flags&1024&&Db(h,0,2);var A="undefined"!=typeof p;if(!A)p=h.position;else if(!h.seekable)throw new J(70);var H=h.da.write(h,x,q,r,p,void 0);A||(h.position+=H);var u=H;if(0>u){var y=-1;break a}b+=u;"undefined"!==typeof f&&(f+= | ||
u)}y=b}E[d>>2]=y;return 0}catch(z){if("undefined"==typeof O||"ErrnoError"!==z.name)throw z;return z.qa}},L:(a,b)=>{Pa(B.subarray(a,a+b));return 0}},Z=function(){var a={a:Jc};ya++;Ga(a,function(b){Z=b.instance.exports;oa=Z.O;ua();gc=Z.Z;wa.unshift(Z.P);ya--;0==ya&&(null!==za&&(clearInterval(za),za=null),Aa&&(b=Aa,Aa=null,b()))}).catch(ba);return{}}(),Hc=()=>(Hc=Z.Q)(),Ha=m._ma_device__on_notification_unlocked=a=>(Ha=m._ma_device__on_notification_unlocked=Z.R)(a); | ||
m._ma_malloc_emscripten=(a,b)=>(m._ma_malloc_emscripten=Z.S)(a,b);m._ma_free_emscripten=(a,b)=>(m._ma_free_emscripten=Z.T)(a,b);var Ia=m._ma_device_process_pcm_frames_capture__webaudio=(a,b,c)=>(Ia=m._ma_device_process_pcm_frames_capture__webaudio=Z.U)(a,b,c),Ja=m._ma_device_process_pcm_frames_playback__webaudio=(a,b,c)=>(Ja=m._ma_device_process_pcm_frames_playback__webaudio=Z.V)(a,b,c),Ic=a=>(Ic=Z.W)(a),Y=a=>(Y=Z.X)(a),ic=a=>(ic=Z.Y)(a),Kc;Aa=function Mc(){Kc||Nc();Kc||(Aa=Mc)}; | ||
function Nc(){if(!(0<ya)){for(;0<va.length;)va.shift()(m);if(!(0<ya||Kc||(Kc=!0,m.calledRun=!0,pa))){m.noFSInit||Fb||(Fb=!0,Eb(),m.stdin=m.stdin,m.stdout=m.stdout,m.stderr=m.stderr,m.stdin?Gb("stdin",m.stdin):Ab("/dev/tty","/dev/stdin"),m.stdout?Gb("stdout",null,m.stdout):Ab("/dev/tty","/dev/stdout"),m.stderr?Gb("stderr",null,m.stderr):Ab("/dev/tty1","/dev/stderr"),Bb("/dev/stdin",0),Bb("/dev/stdout",1),Bb("/dev/stderr",1));for(mb=!1;0<wa.length;)wa.shift()(m);aa(m);if(m.onRuntimeInitialized)m.onRuntimeInitialized(); | ||
for(;0<xa.length;)xa.shift()(m)}}}Nc(); | ||
var ca=Object.assign({},m),da="./this.program",ea="object"==typeof window,fa="function"==typeof importScripts,ha="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,n="",ia,ja,ka; | ||
if(ha){var fs=require("fs"),la=require("path");n=fa?la.dirname(n)+"/":__dirname+"/";ia=(a,b)=>{a=ma(a)?new URL(a):la.normalize(a);return fs.readFileSync(a,b?void 0:"utf8")};ka=a=>{a=ia(a,!0);a.buffer||(a=new Uint8Array(a));return a};ja=(a,b,c,d=!0)=>{a=ma(a)?new URL(a):la.normalize(a);fs.readFile(a,d?void 0:"utf8",(e,f)=>{e?c(e):b(d?f.buffer:f)})};!m.thisProgram&&1<process.argv.length&&(da=process.argv[1].replace(/\\/g,"/"));process.argv.slice(2);m.inspect=()=>"[Emscripten Module object]"}else if(ea|| | ||
fa)fa?n=self.location.href:"undefined"!=typeof document&&document.currentScript&&(n=document.currentScript.src),_scriptDir&&(n=_scriptDir),0!==n.indexOf("blob:")?n=n.substr(0,n.replace(/[?#].*/,"").lastIndexOf("/")+1):n="",ia=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText},fa&&(ka=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),ja=(a,b,c)=>{var d=new XMLHttpRequest;d.open("GET",a,!0); | ||
d.responseType="arraybuffer";d.onload=()=>{200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)};var na=console.log.bind(console),t=console.error.bind(console);Object.assign(m,ca);ca=null;"object"!=typeof WebAssembly&&oa("no native wasm support detected");var pa,qa=!1,v,w,B,ra,C,D,sa,E,ta,ua; | ||
function va(){var a=pa.buffer;m.HEAP8=v=new Int8Array(a);m.HEAP16=B=new Int16Array(a);m.HEAPU8=w=new Uint8Array(a);m.HEAPU16=ra=new Uint16Array(a);m.HEAP32=C=new Int32Array(a);m.HEAPU32=D=new Uint32Array(a);m.HEAPF32=sa=new Float32Array(a);m.HEAPF64=ua=new Float64Array(a);m.HEAP64=E=new BigInt64Array(a);m.HEAPU64=ta=new BigUint64Array(a)}var wa=[],xa=[],ya=[],za=0,Aa=null,Ba=null; | ||
function oa(a){a="Aborted("+a+")";t(a);qa=!0;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,"),ma=a=>a.startsWith("file://"),Da;Da="rive_text.wasm";Ca(Da)||(Da=n+Da);function Ea(a){if(ka)return ka(a);throw"both async and sync fetching of the wasm failed";} | ||
function Fa(a){if(ea||fa){if("function"==typeof fetch&&!ma(a))return fetch(a,{credentials:"same-origin"}).then(b=>{if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(()=>Ea(a));if(ja)return new Promise((b,c)=>{ja(a,d=>b(new Uint8Array(d)),c)})}return Promise.resolve().then(()=>Ea(a))}function Ga(a,b,c){return Fa(a).then(d=>WebAssembly.instantiate(d,b)).then(d=>d).then(c,d=>{t(`failed to asynchronously prepare wasm: ${d}`);oa(d)})} | ||
function Ha(a,b){var c=Da;return"function"!=typeof WebAssembly.instantiateStreaming||Ca(c)||ma(c)||ha||"function"!=typeof fetch?Ga(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(e){t(`wasm streaming compile failed: ${e}`);t("falling back to ArrayBuffer instantiation");return Ga(c,a,b)}))} | ||
var La={147208:(a,b,c,d,e)=>{if("undefined"===typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if("undefined"===typeof window.Z){window.Z={za:0};window.Z.ga={};window.Z.ga.ya=a;window.Z.ga.capture=b;window.Z.ga.Ba=c;window.Z.sa={};window.Z.sa.stopped=d;window.Z.sa.Ya=e;let f=window.Z;f.ea=[];f.ob=function(g){for(var k=0;k<f.ea.length;++k)if(null==f.ea[k])return f.ea[k]=g,k;f.ea.push(g);return f.ea.length-1};f.$a=function(g){for(f.ea[g]=null;0<f.ea.length;)if(null== | ||
f.ea[f.ea.length-1])f.ea.pop();else break};f.zb=function(g){for(var k=0;k<f.ea.length;++k)if(f.ea[k]==g)return f.$a(k)};f.ua=function(g){return f.ea[g]};f.Za=["touchend","click"];f.unlock=function(){for(var g=0;g<f.ea.length;++g){var k=f.ea[g];null!=k&&null!=k.ha&&k.state===f.sa.Ya&&k.ha.resume().then(()=>{Ia(k.Wa)},l=>{console.error("Failed to resume audiocontext",l)})}f.Za.map(function(l){document.removeEventListener(l,f.unlock,!0)})};f.Za.map(function(g){document.addEventListener(g,f.unlock,!0)})}window.Z.za+= | ||
1;return 1},149386:()=>{"undefined"!==typeof window.Z&&(--window.Z.za,0===window.Z.za&&delete window.Z)},149550:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,149654:()=>{try{var a=new (window.AudioContext||window.webkitAudioContext),b=a.sampleRate;a.close();return b}catch(c){return 0}},149825:(a,b,c,d,e,f)=>{if("undefined"===typeof window.Z)return-1;var g={},k={};a==window.Z.ga.ya&&0!=c&&(k.sampleRate=c);g.ha=new (window.AudioContext||window.webkitAudioContext)(k); | ||
g.ha.suspend();g.state=window.Z.sa.stopped;c=0;a!=window.Z.ga.ya&&(c=b);g.qa=g.ha.createScriptProcessor(d,c,b);g.qa.onaudioprocess=function(l){if(null==g.va||0==g.va.length)g.va=new Float32Array(sa.buffer,e,d*b);if(a==window.Z.ga.capture||a==window.Z.ga.Ba){for(var h=0;h<b;h+=1)for(var q=l.inputBuffer.getChannelData(h),r=g.va,p=0;p<d;p+=1)r[p*b+h]=q[p];Ja(f,d,e)}if(a==window.Z.ga.ya||a==window.Z.ga.Ba)for(Ka(f,d,e),h=0;h<l.outputBuffer.numberOfChannels;++h)for(q=l.outputBuffer.getChannelData(h),r= | ||
g.va,p=0;p<d;p+=1)q[p]=r[p*b+h];else for(h=0;h<l.outputBuffer.numberOfChannels;++h)l.outputBuffer.getChannelData(h).fill(0)};a!=window.Z.ga.capture&&a!=window.Z.ga.Ba||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(l){g.Aa=g.ha.createMediaStreamSource(l);g.Aa.connect(g.qa);g.qa.connect(g.ha.destination)}).catch(function(l){console.log("Failed to get user media: "+l)});a==window.Z.ga.ya&&g.qa.connect(g.ha.destination);g.Wa=f;return window.Z.ob(g)},152702:a=>window.Z.ua(a).ha.sampleRate, | ||
152775:a=>{a=window.Z.ua(a);void 0!==a.qa&&(a.qa.onaudioprocess=function(){},a.qa.disconnect(),a.qa=void 0);void 0!==a.Aa&&(a.Aa.disconnect(),a.Aa=void 0);a.ha.close();a.ha=void 0;a.Wa=void 0},153175:a=>{window.Z.$a(a)},153225:a=>{a=window.Z.ua(a);a.ha.resume();a.state=window.Z.sa.Ya},153364:a=>{a=window.Z.ua(a);a.ha.suspend();a.state=window.Z.sa.stopped}},Ma=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift(".."); | ||
return a},F=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ma(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Na=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},Oa=a=>{if("/"===a)return"/";a=F(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},Pa=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return c=> | ||
crypto.getRandomValues(c);if(ha)try{var a=require("crypto");if(a.randomFillSync)return c=>a.randomFillSync(c);var b=a.randomBytes;return c=>(c.set(b(c.byteLength)),c)}catch(c){}oa("initRandomDevice")},Qa=a=>(Qa=Pa())(a); | ||
function Ra(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:"/";if("string"!=typeof b)throw new TypeError("Arguments to path.resolve must be strings");if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=Ma(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."} | ||
var Sa="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,G=(a,b,c)=>{var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.buffer&&Sa)return Sa.decode(a.subarray(b,c));for(d="";b<c;){var e=a[b++];if(e&128){var f=a[b++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|f);else{var g=a[b++]&63;e=224==(e&240)?(e&15)<<12|f<<6|g:(e&7)<<18|f<<12|g<<6|a[b++]&63;65536>e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d}, | ||
Ta=[],Ua=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);127>=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b},Va=(a,b,c,d)=>{if(!(0<d))return 0;var e=c;d=c+d-1;for(var f=0;f<a.length;++f){var g=a.charCodeAt(f);if(55296<=g&&57343>=g){var k=a.charCodeAt(++f);g=65536+((g&1023)<<10)|k&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12& | ||
63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0;return c-e},Wa=[];function Xa(a,b){Wa[a]={input:[],output:[],oa:b};Ya(a,Za)} | ||
var Za={open(a){var b=Wa[a.node.rdev];if(!b)throw new I(43);a.tty=b;a.seekable=!1},close(a){a.tty.oa.fsync(a.tty)},fsync(a){a.tty.oa.fsync(a.tty)},read(a,b,c,d){if(!a.tty||!a.tty.oa.Sa)throw new I(60);for(var e=0,f=0;f<d;f++){try{var g=a.tty.oa.Sa(a.tty)}catch(k){throw new I(29);}if(void 0===g&&0===e)throw new I(6);if(null===g||void 0===g)break;e++;b[c+f]=g}e&&(a.node.timestamp=Date.now());return e},write(a,b,c,d){if(!a.tty||!a.tty.oa.Ha)throw new I(60);try{for(var e=0;e<d;e++)a.tty.oa.Ha(a.tty,b[c+ | ||
e])}catch(f){throw new I(29);}d&&(a.node.timestamp=Date.now());return e}},$a={Sa(){a:{if(!Ta.length){var a=null;if(ha){var b=Buffer.alloc(256),c=0,d=process.stdin.fd;try{c=fs.readSync(d,b)}catch(e){if(e.toString().includes("EOF"))c=0;else throw e;}0<c?a=b.slice(0,c).toString("utf-8"):a=null}else"undefined"!=typeof window&&"function"==typeof window.prompt?(a=window.prompt("Input: "),null!==a&&(a+="\n")):"function"==typeof readline&&(a=readline(),null!==a&&(a+="\n"));if(!a){a=null;break a}b=Array(Ua(a)+ | ||
1);a=Va(a,b,0,b.length);b.length=a;Ta=b}a=Ta.shift()}return a},Ha(a,b){null===b||10===b?(na(G(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},fsync(a){a.output&&0<a.output.length&&(na(G(a.output,0)),a.output=[])},hb(){return{sb:25856,ub:5,rb:191,tb:35387,qb:[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]}},ib(){return 0},jb(){return[24,80]}},ab={Ha(a,b){null===b||10===b?(t(G(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},fsync(a){a.output&&0<a.output.length&&(t(G(a.output, | ||
0)),a.output=[])}};function cb(a,b){var c=a.aa?a.aa.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.aa,a.aa=new Uint8Array(b),0<a.da&&a.aa.set(c.subarray(0,a.da),0))} | ||
var J={ka:null,na(){return J.createNode(null,"/",16895,0)},createNode(a,b,c,d){if(24576===(c&61440)||4096===(c&61440))throw new I(63);J.ka||(J.ka={dir:{node:{ja:J.$.ja,ma:J.$.ma,lookup:J.$.lookup,wa:J.$.wa,rename:J.$.rename,unlink:J.$.unlink,rmdir:J.$.rmdir,readdir:J.$.readdir,symlink:J.$.symlink},stream:{ra:J.ba.ra}},file:{node:{ja:J.$.ja,ma:J.$.ma},stream:{ra:J.ba.ra,read:J.ba.read,write:J.ba.write,ta:J.ba.ta,Ta:J.ba.Ta,Va:J.ba.Va}},link:{node:{ja:J.$.ja,ma:J.$.ma,readlink:J.$.readlink},stream:{}}, | ||
Oa:{node:{ja:J.$.ja,ma:J.$.ma},stream:db}});c=eb(a,b,c,d);16384===(c.mode&61440)?(c.$=J.ka.dir.node,c.ba=J.ka.dir.stream,c.aa={}):32768===(c.mode&61440)?(c.$=J.ka.file.node,c.ba=J.ka.file.stream,c.da=0,c.aa=null):40960===(c.mode&61440)?(c.$=J.ka.link.node,c.ba=J.ka.link.stream):8192===(c.mode&61440)&&(c.$=J.ka.Oa.node,c.ba=J.ka.Oa.stream);c.timestamp=Date.now();a&&(a.aa[b]=c,a.timestamp=c.timestamp);return c},vb(a){return a.aa?a.aa.subarray?a.aa.subarray(0,a.da):new Uint8Array(a.aa):new Uint8Array(0)}, | ||
$:{ja(a){var b={};b.dev=8192===(a.mode&61440)?a.id:1;b.ino=a.id;b.mode=a.mode;b.nlink=1;b.uid=0;b.gid=0;b.rdev=a.rdev;16384===(a.mode&61440)?b.size=4096:32768===(a.mode&61440)?b.size=a.da:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.atime=new Date(a.timestamp);b.mtime=new Date(a.timestamp);b.ctime=new Date(a.timestamp);b.cb=4096;b.blocks=Math.ceil(b.size/b.cb);return b},ma(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.da!=b))if(0==b)a.aa=null,a.da=0;else{var c=a.aa;a.aa=new Uint8Array(b);c&&a.aa.set(c.subarray(0,Math.min(b,a.da)));a.da=b}},lookup(){throw fb[44];},wa(a,b,c,d){return J.createNode(a,b,c,d)},rename(a,b,c){if(16384===(a.mode&61440)){try{var d=gb(b,c)}catch(f){}if(d)for(var e in d.aa)throw new I(55);}delete a.parent.aa[a.name];a.parent.timestamp=Date.now();a.name=c;b.aa[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},unlink(a,b){delete a.aa[b];a.timestamp=Date.now()},rmdir(a,b){var c=gb(a,b),d;for(d in c.aa)throw new I(55); | ||
delete a.aa[b];a.timestamp=Date.now()},readdir(a){var b=[".",".."],c;for(c of Object.keys(a.aa))b.push(c);return b},symlink(a,b,c){a=J.createNode(a,b,41471,0);a.link=c;return a},readlink(a){if(40960!==(a.mode&61440))throw new I(28);return a.link}},ba:{read(a,b,c,d,e){var f=a.node.aa;if(e>=a.node.da)return 0;a=Math.min(a.node.da-e,d);if(8<a&&f.subarray)b.set(f.subarray(e,e+a),c);else for(d=0;d<a;d++)b[c+d]=f[e+d];return a},write(a,b,c,d,e,f){b.buffer===v.buffer&&(f=!1);if(!d)return 0;a=a.node;a.timestamp= | ||
Date.now();if(b.subarray&&(!a.aa||a.aa.subarray)){if(f)return a.aa=b.subarray(c,c+d),a.da=d;if(0===a.da&&0===e)return a.aa=b.slice(c,c+d),a.da=d;if(e+d<=a.da)return a.aa.set(b.subarray(c,c+d),e),d}cb(a,e+d);if(a.aa.subarray&&b.subarray)a.aa.set(b.subarray(c,c+d),e);else for(f=0;f<d;f++)a.aa[e+f]=b[c+f];a.da=Math.max(a.da,e+d);return d},ra(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.da);if(0>b)throw new I(28);return b},ta(a,b,c){cb(a.node,b+c);a.node.da=Math.max(a.node.da, | ||
b+c)},Ta(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new I(43);a=a.node.aa;if(e&2||a.buffer!==v.buffer){if(0<c||c+b<a.length)a.subarray?a=a.subarray(c,c+b):a=Array.prototype.slice.call(a,c,c+b);c=!0;oa();b=void 0;if(!b)throw new I(48);v.set(a,b)}else c=!1,b=a.byteOffset;return{yb:b,ia:c}},Va(a,b,c,d){J.ba.write(a,b,0,d,c,!1);return 0}}},hb=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},ib=null,jb={},kb=[],lb=1,mb=null,nb=!0,I=null,fb={}; | ||
function K(a,b={}){a=Ra(a);if(!a)return{path:"",node:null};b=Object.assign({Qa:!0,Ka:0},b);if(8<b.Ka)throw new I(32);a=a.split("/").filter(g=>!!g);for(var c=ib,d="/",e=0;e<a.length;e++){var f=e===a.length-1;if(f&&b.parent)break;c=gb(c,a[e]);d=F(d+"/"+a[e]);c.xa&&(!f||f&&b.Qa)&&(c=c.xa.root);if(!f||b.Ca)for(f=0;40960===(c.mode&61440);)if(c=ob(d),d=Ra(Na(d),c),c=K(d,{Ka:b.Ka+1}).node,40<f++)throw new I(32);}return{path:d,node:c}} | ||
function pb(a){for(var b;;){if(a===a.parent)return a=a.na.Ua,b?"/"!==a[a.length-1]?`${a}/${b}`:a+b:a;b=b?`${a.name}/${b}`:a.name;a=a.parent}}function qb(a,b){for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%mb.length}function gb(a,b){var c;if(c=(c=rb(a,"x"))?c:a.$.lookup?0:2)throw new I(c,a);for(c=mb[qb(a.id,b)];c;c=c.mb){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.$.lookup(a,b)} | ||
function eb(a,b,c,d){a=new sb(a,b,c,d);b=qb(a.parent.id,a.name);a.mb=mb[b];return mb[b]=a}function tb(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b}function rb(a,b){if(nb)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 ub(a,b){try{return gb(a,b),20}catch(c){}return rb(a,"wx")}function vb(){for(var a=0;4096>=a;a++)if(!kb[a])return a;throw new I(33);} | ||
function L(a){a=kb[a];if(!a)throw new I(8);return a}function wb(a,b=-1){xb||(xb=function(){this.Z={}},xb.prototype={},Object.defineProperties(xb.prototype,{object:{get(){return this.node},set(c){this.node=c}},flags:{get(){return this.Z.flags},set(c){this.Z.flags=c}},position:{get(){return this.Z.position},set(c){this.Z.position=c}}}));a=Object.assign(new xb,a);-1==b&&(b=vb());a.fd=b;return kb[b]=a}var db={open(a){a.ba=jb[a.node.rdev].ba;a.ba.open?.(a)},ra(){throw new I(70);}}; | ||
function Ya(a,b){jb[a]={ba:b}}function yb(a,b){var c="/"===b,d=!b;if(c&&ib)throw new I(10);if(!c&&!d){var e=K(b,{Qa:!1});b=e.path;e=e.node;if(e.xa)throw new I(10);if(16384!==(e.mode&61440))throw new I(54);}b={type:a,xb:{},Ua:b,lb:[]};a=a.na(b);a.na=b;b.root=a;c?ib=a:e&&(e.xa=b,e.na&&e.na.lb.push(b))}function zb(a,b,c){var d=K(a,{parent:!0}).node;a=Oa(a);if(!a||"."===a||".."===a)throw new I(28);var e=ub(d,a);if(e)throw new I(e);if(!d.$.wa)throw new I(63);return d.$.wa(d,a,b,c)} | ||
function M(a){return zb(a,16895,0)}function Ab(a,b,c){"undefined"==typeof c&&(c=b,b=438);zb(a,b|8192,c)}function Bb(a,b){if(!Ra(a))throw new I(44);var c=K(b,{parent:!0}).node;if(!c)throw new I(44);b=Oa(b);var d=ub(c,b);if(d)throw new I(d);if(!c.$.symlink)throw new I(63);c.$.symlink(c,b,a)}function ob(a){a=K(a).node;if(!a)throw new I(44);if(!a.$.readlink)throw new I(28);return Ra(pb(a.parent),a.$.readlink(a))} | ||
function Cb(a,b,c){if(""===a)throw new I(44);if("string"==typeof b){var d={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[b];if("undefined"==typeof d)throw Error(`Unknown file open mode: ${b}`);b=d}c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var e=a;else{a=F(a);try{e=K(a,{Ca:!(b&131072)}).node}catch(f){}}d=!1;if(b&64)if(e){if(b&128)throw new I(20);}else e=zb(a,c,0),d=!0;if(!e)throw new I(44);8192===(e.mode&61440)&&(b&=-513);if(b&65536&&16384!==(e.mode&61440))throw new I(54); | ||
if(!d&&(c=e?40960===(e.mode&61440)?32:16384===(e.mode&61440)&&("r"!==tb(b)||b&512)?31:rb(e,tb(b)):44))throw new I(c);if(b&512&&!d){c=e;c="string"==typeof c?K(c,{Ca:!0}).node:c;if(!c.$.ma)throw new I(63);if(16384===(c.mode&61440))throw new I(31);if(32768!==(c.mode&61440))throw new I(28);if(d=rb(c,"w"))throw new I(d);c.$.ma(c,{size:0,timestamp:Date.now()})}b&=-131713;e=wb({node:e,path:pb(e),flags:b,seekable:!0,position:0,ba:e.ba,pb:[],error:!1});e.ba.open&&e.ba.open(e);!m.logReadFiles||b&1||(Db||={}, | ||
a in Db||(Db[a]=1));return e}function Eb(a,b,c){if(null===a.fd)throw new I(8);if(!a.seekable||!a.ba.ra)throw new I(70);if(0!=c&&1!=c&&2!=c)throw new I(28);a.position=a.ba.ra(a,b,c);a.pb=[]}function Fb(){I||(I=function(a,b){this.name="ErrnoError";this.node=b;this.nb=function(c){this.pa=c};this.nb(a);this.message="FS error"},I.prototype=Error(),I.prototype.constructor=I,[44].forEach(a=>{fb[a]=new I(a);fb[a].stack="<generic error, no stack>"}))}var Gb; | ||
function Hb(a,b,c){a=F("/dev/"+a);var d=hb(!!b,!!c);Ib||=64;var e=Ib++<<8|0;Ya(e,{open(f){f.seekable=!1},close(){c?.buffer?.length&&c(10)},read(f,g,k,l){for(var h=0,q=0;q<l;q++){try{var r=b()}catch(p){throw new I(29);}if(void 0===r&&0===h)throw new I(6);if(null===r||void 0===r)break;h++;g[k+q]=r}h&&(f.node.timestamp=Date.now());return h},write(f,g,k,l){for(var h=0;h<l;h++)try{c(g[k+h])}catch(q){throw new I(29);}l&&(f.node.timestamp=Date.now());return h}});Ab(a,d,e)}var Ib,N={},xb,Db,Jb=void 0; | ||
function O(){var a=C[+Jb>>2];Jb+=4;return a}var Kb={},Lb=a=>{for(;a.length;){var b=a.pop();a.pop()(b)}};function Mb(a){return this.fromWireType(C[a>>2])} | ||
var P={},Q={},Nb={},Ob,Pb=(a,b,c)=>{function d(k){k=c(k);if(k.length!==a.length)throw new Ob("Mismatched type converter count");for(var l=0;l<a.length;++l)R(a[l],k[l])}a.forEach(function(k){Nb[k]=b});var e=Array(b.length),f=[],g=0;b.forEach((k,l)=>{Q.hasOwnProperty(k)?e[l]=Q[k]:(f.push(k),P.hasOwnProperty(k)||(P[k]=[]),P[k].push(()=>{e[l]=Q[k];++g;g===f.length&&d(e)}))});0===f.length&&d(e)},Qb={},Rb=a=>{if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"===b?a.toString(): | ||
""+a},Sb,S=a=>{for(var b="";w[a];)b+=Sb[w[a++]];return b},T,Tb=a=>{throw new T(a);};function Ub(a,b,c={}){var d=b.name;if(!a)throw new T(`type "${d}" must have a positive integer typeid pointer`);if(Q.hasOwnProperty(a)){if(c.fb)return;throw new T(`Cannot register type '${d}' twice`);}Q[a]=b;delete Nb[a];P.hasOwnProperty(a)&&(b=P[a],delete P[a],b.forEach(e=>e()))} | ||
function R(a,b,c={}){if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");Ub(a,b,c)}var Vb=(a,b,c)=>{switch(b){case 1:return c?d=>v[d>>0]:d=>w[d>>0];case 2:return c?d=>B[d>>1]:d=>ra[d>>1];case 4:return c?d=>C[d>>2]:d=>D[d>>2];case 8:return c?d=>E[d>>3]:d=>ta[d>>3];default:throw new TypeError(`invalid integer width (${b}): ${a}`);}};function Wb(){this.ia=[void 0];this.Ra=[]} | ||
var U=new Wb,Xb=a=>{a>=U.Z&&0===--U.get(a).Xa&&U.ab(a)},V=a=>{if(!a)throw new T("Cannot use deleted val. handle = "+a);return U.get(a).value},Yb=a=>{switch(a){case void 0:return 1;case null:return 2;case !0:return 3;case !1:return 4;default:return U.ta({Xa:1,value:a})}},Zb=(a,b)=>{switch(b){case 4:return function(c){return this.fromWireType(sa[c>>2])};case 8:return function(c){return this.fromWireType(ua[c>>3])};default:throw new TypeError(`invalid float width (${b}): ${a}`);}},$b=(a,b)=>Object.defineProperty(b, | ||
"name",{value:a});function ac(a){for(var b=1;b<a.length;++b)if(null!==a[b]&&void 0===a[b].fa)return!0;return!1}function bc(a){var b=Function;if(!(b instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof b} which is not a function`);var c=$b(b.name||"unknownFunctionName",function(){});c.prototype=b.prototype;c=new c;a=b.apply(c,a);return a instanceof Object?a:c} | ||
var cc=(a,b)=>{if(void 0===m[a].la){var c=m[a];m[a]=function(){if(!m[a].la.hasOwnProperty(arguments.length))throw new T(`Function '${b}' called with an invalid number of arguments (${arguments.length}) - expects one of (${m[a].la})!`);return m[a].la[arguments.length].apply(this,arguments)};m[a].la=[];m[a].la[c.bb]=c}},dc=(a,b,c)=>{if(m.hasOwnProperty(a)){if(void 0===c||void 0!==m[a].la&&void 0!==m[a].la[c])throw new T(`Cannot register public name '${a}' twice`);cc(a,a);if(m.hasOwnProperty(c))throw new T(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`); | ||
m[a].la[c]=b}else m[a]=b,void 0!==c&&(m[a].wb=c)},gc=(a,b)=>{for(var c=[],d=0;d<a;d++)c.push(D[b+4*d>>2]);return c},hc,W=(a,b)=>{a=S(a);var c=hc.get(b);if("function"!=typeof c)throw new T(`unknown function pointer with signature ${a}: ${b}`);return c},ic,kc=a=>{a=jc(a);var b=S(a);X(a);return b},lc=(a,b)=>{function c(f){e[f]||Q[f]||(Nb[f]?Nb[f].forEach(c):(d.push(f),e[f]=!0))}var d=[],e={};b.forEach(c);throw new ic(`${a}: `+d.map(kc).join([", "]));},mc=a=>{a=a.trim();const b=a.indexOf("(");return-1!== | ||
b?a.substr(0,b):a};function nc(a){return this.fromWireType(D[a>>2])} | ||
var oc="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,pc=(a,b)=>{var c=a>>1;for(var d=c+b/2;!(c>=d)&&ra[c];)++c;c<<=1;if(32<c-a&&oc)return oc.decode(w.subarray(a,c));c="";for(d=0;!(d>=b/2);++d){var e=B[a+2*d>>1];if(0==e)break;c+=String.fromCharCode(e)}return c},qc=(a,b,c)=>{c??=2147483647;if(2>c)return 0;c-=2;var d=b;c=c<2*a.length?c/2:a.length;for(var e=0;e<c;++e)B[b>>1]=a.charCodeAt(e),b+=2;B[b>>1]=0;return b-d},rc=a=>2*a.length,sc=(a,b)=>{for(var c=0,d="";!(c>=b/4);){var e= | ||
C[a+4*c>>2];if(0==e)break;++c;65536<=e?(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023)):d+=String.fromCharCode(e)}return d},tc=(a,b,c)=>{c??=2147483647;if(4>c)return 0;var d=b;c=d+c-4;for(var e=0;e<a.length;++e){var f=a.charCodeAt(e);if(55296<=f&&57343>=f){var g=a.charCodeAt(++e);f=65536+((f&1023)<<10)|g&1023}C[b>>2]=f;b+=4;if(b+4>c)break}C[b>>2]=0;return b-d},uc=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&++c;b+=4}return b},vc=(a,b)=>{var c=Q[a];if(void 0=== | ||
c)throw a=b+" has unknown type "+kc(a),new T(a);return c},wc=(a,b,c)=>{var d=[];a=a.toWireType(d,c);d.length&&(D[b>>2]=Yb(d));return a},xc=[],yc={},zc=a=>{var b=yc[a];return void 0===b?S(a):b},Ac=a=>{var b=xc.length;xc.push(a);return b},Bc=(a,b)=>{for(var c=Array(a),d=0;d<a;++d)c[d]=vc(D[b+4*d>>2],"parameter "+d);return c},Cc=[],Dc={},Fc=()=>{if(!Ec){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",_:da||"./this.program"},b;for(b in Dc)void 0===Dc[b]?delete a[b]:a[b]=Dc[b];var c=[];for(b in a)c.push(`${b}=${a[b]}`);Ec=c}return Ec},Ec;function sb(a,b,c,d){a||=this;this.parent=a;this.na=a.na;this.xa=null;this.id=lb++;this.name=b;this.mode=c;this.$={};this.ba={};this.rdev=d} | ||
Object.defineProperties(sb.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}}});Fb();mb=Array(4096);yb(J,"/");M("/tmp");M("/home");M("/home/web_user"); | ||
(function(){M("/dev");Ya(259,{read:()=>0,write:(d,e,f,g)=>g});Ab("/dev/null",259);Xa(1280,$a);Xa(1536,ab);Ab("/dev/tty",1280);Ab("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Qa(a).byteLength);return a[--b]};Hb("random",c);Hb("urandom",c);M("/dev/shm");M("/dev/shm/tmp")})(); | ||
(function(){M("/proc");var a=M("/proc/self");M("/proc/self/fd");yb({na(){var b=eb(a,"fd",16895,73);b.$={lookup(c,d){var e=L(+d);c={parent:null,na:{Ua:"fake"},$:{readlink:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})();Ob=m.InternalError=class extends Error{constructor(a){super(a);this.name="InternalError"}};for(var Gc=Array(256),Hc=0;256>Hc;++Hc)Gc[Hc]=String.fromCharCode(Hc);Sb=Gc;T=m.BindingError=class extends Error{constructor(a){super(a);this.name="BindingError"}}; | ||
Object.assign(Wb.prototype,{get(a){return this.ia[a]},has(a){return void 0!==this.ia[a]},ta(a){var b=this.Ra.pop()||this.ia.length;this.ia[b]=a;return b},ab(a){this.ia[a]=void 0;this.Ra.push(a)}});U.ia.push({value:void 0},{value:null},{value:!0},{value:!1});U.Z=U.ia.length;m.count_emval_handles=()=>{for(var a=0,b=U.Z;b<U.ia.length;++b)void 0!==U.ia[b]&&++a;return a}; | ||
ic=m.UnboundTypeError=((a,b)=>{var c=$b(b,function(d){this.name=b;this.message=d;d=Error(d).stack;void 0!==d&&(this.stack=this.toString()+"\n"+d.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(a.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`};return c})(Error,"UnboundTypeError"); | ||
var Kc={r:function(a,b,c){Jb=c;try{var d=L(a);switch(b){case 0:var e=O();if(0>e)return-28;for(;kb[e];)e++;return wb(d,e).fd;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=O(),d.flags|=e,0;case 5:return e=O(),B[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return C[Ic()>>2]=28,-1;default:return-28}}catch(f){if("undefined"==typeof N||"ErrnoError"!==f.name)throw f;return-f.pa}},C:function(a,b){try{a:{var c=L(a).path;try{var d=K(c,{Ca:!0}).node;if(!d)throw new I(44); | ||
if(!d.$.ja)throw new I(63);var e=d.$.ja(d)}catch(h){if(h&&h.node&&F(c)!==F(pb(h.node))){var f=-54;break a}throw h;}C[b>>2]=e.dev;C[b+4>>2]=e.mode;D[b+8>>2]=e.nlink;C[b+12>>2]=e.uid;C[b+16>>2]=e.gid;C[b+20>>2]=e.rdev;E[b+24>>3]=BigInt(e.size);C[b+32>>2]=4096;C[b+36>>2]=e.blocks;var g=e.atime.getTime(),k=e.mtime.getTime(),l=e.ctime.getTime();E[b+40>>3]=BigInt(Math.floor(g/1E3));D[b+48>>2]=g%1E3*1E3;E[b+56>>3]=BigInt(Math.floor(k/1E3));D[b+64>>2]=k%1E3*1E3;E[b+72>>3]=BigInt(Math.floor(l/1E3));D[b+80>> | ||
2]=l%1E3*1E3;E[b+88>>3]=BigInt(e.ino);f=0}return f}catch(h){if("undefined"==typeof N||"ErrnoError"!==h.name)throw h;return-h.pa}},F:function(a,b,c){Jb=c;try{var d=L(a);switch(b){case 21509:return d.tty?0:-59;case 21505:if(!d.tty)return-59;if(d.tty.oa.hb){b=[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];var e=O();C[e>>2]=25856;C[e+4>>2]=5;C[e+8>>2]=191;C[e+12>>2]=35387;for(var f=0;32>f;f++)v[e+f+17>>0]=b[f]||0}return 0;case 21510:case 21511:case 21512:return d.tty?0:-59; | ||
case 21506:case 21507:case 21508:if(!d.tty)return-59;if(d.tty.oa.ib)for(e=O(),b=[],f=0;32>f;f++)b.push(v[e+f+17>>0]);return 0;case 21519:if(!d.tty)return-59;e=O();return C[e>>2]=0;case 21520:return d.tty?-28:-59;case 21531:e=O();if(!d.ba.gb)throw new I(59);return d.ba.gb(d,b,e);case 21523:if(!d.tty)return-59;d.tty.oa.jb&&(f=[24,80],e=O(),B[e>>1]=f[0],B[e+2>>1]=f[1]);return 0;case 21524:return d.tty?0:-59;case 21515:return d.tty?0:-59;default:return-28}}catch(g){if("undefined"==typeof N||"ErrnoError"!== | ||
g.name)throw g;return-g.pa}},G:function(a,b,c,d){Jb=d;try{b=b?G(w,b):"";var e=b;if("/"===e.charAt(0))b=e;else{var f=-100===a?"/":L(a).path;if(0==e.length)throw new I(44);b=F(f+"/"+e)}var g=d?O():0;return Cb(b,c,g).fd}catch(k){if("undefined"==typeof N||"ErrnoError"!==k.name)throw k;return-k.pa}},v:a=>{var b=Kb[a];delete Kb[a];var c=b.elements,d=c.length,e=c.map(k=>k.Ga).concat(c.map(k=>k.Ma)),f=b.Ia,g=b.Ja;Pb([a],e,function(k){c.forEach((l,h)=>{var q=k[h],r=l.Ea,p=l.Fa,x=k[h+d],A=l.La,H=l.Na;l.read= | ||
u=>q.fromWireType(r(p,u));l.write=(u,y)=>{var z=[];A(H,u,x.toWireType(z,y));Lb(z)}});return[{name:b.name,fromWireType:l=>{for(var h=Array(d),q=0;q<d;++q)h[q]=c[q].read(l);g(l);return h},toWireType:(l,h)=>{if(d!==h.length)throw new TypeError(`Incorrect number of tuple elements for ${b.name}: expected=${d}, actual=${h.length}`);for(var q=f(),r=0;r<d;++r)c[r].write(q,h[r]);null!==l&&l.push(g,q);return q},argPackAdvance:8,readValueFromPointer:Mb,fa:g}]})},k:a=>{var b=Qb[a];delete Qb[a];var c=b.Ia,d=b.Ja, | ||
e=b.Pa,f=e.map(g=>g.Ga).concat(e.map(g=>g.Ma));Pb([a],f,g=>{var k={};e.forEach((l,h)=>{var q=g[h],r=l.Ea,p=l.Fa,x=g[h+e.length],A=l.La,H=l.Na;k[l.eb]={read:u=>q.fromWireType(r(p,u)),write:(u,y)=>{var z=[];A(H,u,x.toWireType(z,y));Lb(z)}}});return[{name:b.name,fromWireType:l=>{var h={},q;for(q in k)h[q]=k[q].read(l);d(l);return h},toWireType:(l,h)=>{for(var q in k)if(!(q in h))throw new TypeError(`Missing field: "${q}"`);var r=c();for(q in k)k[q].write(r,h[q]);null!==l&&l.push(d,r);return r},argPackAdvance:8, | ||
readValueFromPointer:Mb,fa:d}]})},t:(a,b,c,d,e)=>{b=S(b);var f=-1!=b.indexOf("u");f&&(e=(1n<<64n)-1n);R(a,{name:b,fromWireType:g=>g,toWireType:function(g,k){if("bigint"!=typeof k&&"number"!=typeof k)throw new TypeError(`Cannot convert "${Rb(k)}" to ${this.name}`);if(k<d||k>e)throw new TypeError(`Passing a number "${Rb(k)}" from JS side to C/C++ side to an argument of type "${b}", which is outside the valid range [${d}, ${e}]!`);return k},argPackAdvance:8,readValueFromPointer:Vb(b,c,!f),fa:null})}, | ||
I:(a,b,c,d)=>{b=S(b);R(a,{name:b,fromWireType:function(e){return!!e},toWireType:function(e,f){return f?c:d},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(w[e])},fa:null})},H:(a,b)=>{b=S(b);R(a,{name:b,fromWireType:c=>{var d=V(c);Xb(c);return d},toWireType:(c,d)=>Yb(d),argPackAdvance:8,readValueFromPointer:Mb,fa:null})},s:(a,b,c)=>{b=S(b);R(a,{name:b,fromWireType:d=>d,toWireType:(d,e)=>e,argPackAdvance:8,readValueFromPointer:Zb(b,c),fa:null})},a:(a,b,c,d,e,f,g)=>{var k= | ||
gc(b,c);a=S(a);a=mc(a);e=W(d,e);dc(a,function(){lc(`Cannot call ${a} due to unbound types`,k)},b-1);Pb([],k,function(l){var h=[l[0],null].concat(l.slice(1));l=a;var q=a;var r=e,p=h.length;if(2>p)throw new T("argTypes array size mismatch! Must at least get return value and 'this' types!");var x=null!==h[1]&&!1,A=ac(h),H="void"!==h[0].name;r=[Tb,r,f,Lb,h[0],h[1]];for(var u=0;u<p-2;++u)r.push(h[u+2]);if(!A)for(u=x?1:2;u<h.length;++u)null!==h[u].fa&&r.push(h[u].fa);A=ac(h);u=h.length;var y="",z="";for(p= | ||
0;p<u-2;++p)y+=(0!==p?", ":"")+"arg"+p,z+=(0!==p?", ":"")+"arg"+p+"Wired";y=`\n return function (${y}) {\n if (arguments.length !== ${u-2}) {\n throwBindingError('function ${q} called with ' + arguments.length + ' arguments, expected ${u-2}');\n }`;A&&(y+="var destructors = [];\n");var ec=A?"destructors":"null",bb="throwBindingError invoker fn runDestructors retType classParam".split(" ");x&&(y+="var thisWired = classParam['toWireType']("+ec+", this);\n");for(p=0;p<u- | ||
2;++p)y+="var arg"+p+"Wired = argType"+p+"['toWireType']("+ec+", arg"+p+"); // "+h[p+2].name+"\n",bb.push("argType"+p);x&&(z="thisWired"+(0<z.length?", ":"")+z);y+=(H||g?"var rv = ":"")+"invoker(fn"+(0<z.length?", ":"")+z+");\n";if(A)y+="runDestructors(destructors);\n";else for(p=x?1:2;p<h.length;++p)x=1===p?"thisWired":"arg"+(p-2)+"Wired",null!==h[p].fa&&(y+=x+"_dtor("+x+"); // "+h[p].name+"\n",bb.push(x+"_dtor"));H&&(y+="var ret = retType['fromWireType'](rv);\nreturn ret;\n");let [fc,Mc]=[bb,y+ | ||
"}\n"];fc.push(Mc);h=bc(fc).apply(null,r);q=$b(q,h);h=b-1;if(!m.hasOwnProperty(l))throw new Ob("Replacing nonexistant public symbol");void 0!==m[l].la&&void 0!==h?m[l].la[h]=q:(m[l]=q,m[l].bb=h);return[]})},e:(a,b,c,d,e)=>{b=S(b);-1===e&&(e=4294967295);e=k=>k;if(0===d){var f=32-8*c;e=k=>k<<f>>>f}var g=b.includes("unsigned")?function(k,l){return l>>>0}:function(k,l){return l};R(a,{name:b,fromWireType:e,toWireType:g,argPackAdvance:8,readValueFromPointer:Vb(b,c,0!==d),fa:null})},b:(a,b,c)=>{function d(f){return new e(v.buffer, | ||
D[f+4>>2],D[f>>2])}var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][b];c=S(c);R(a,{name:c,fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{fb:!0})},u:(a,b)=>{b=S(b);var c="std::string"===b;R(a,{name:b,fromWireType:function(d){var e=D[d>>2],f=d+4;if(c)for(var g=f,k=0;k<=e;++k){var l=f+k;if(k==e||0==w[l]){g=g?G(w,g,l-g):"";if(void 0===h)var h=g;else h+=String.fromCharCode(0),h+=g;g=l+1}}else{h=Array(e);for(k=0;k< | ||
e;++k)h[k]=String.fromCharCode(w[f+k]);h=h.join("")}X(d);return h},toWireType:function(d,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var f="string"==typeof e;if(!(f||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array))throw new T("Cannot pass non-string to std::string");var g=c&&f?Ua(e):e.length;var k=Jc(4+g+1),l=k+4;D[k>>2]=g;if(c&&f)Va(e,w,l,g+1);else if(f)for(f=0;f<g;++f){var h=e.charCodeAt(f);if(255<h)throw X(l),new T("String has UTF-16 code units that do not fit in 8 bits"); | ||
w[l+f]=h}else for(f=0;f<g;++f)w[l+f]=e[f];null!==d&&d.push(X,k);return k},argPackAdvance:8,readValueFromPointer:nc,fa(d){X(d)}})},j:(a,b,c)=>{c=S(c);if(2===b){var d=pc;var e=qc;var f=rc;var g=()=>ra;var k=1}else 4===b&&(d=sc,e=tc,f=uc,g=()=>D,k=2);R(a,{name:c,fromWireType:l=>{for(var h=D[l>>2],q=g(),r,p=l+4,x=0;x<=h;++x){var A=l+4+x*b;if(x==h||0==q[A>>k])p=d(p,A-p),void 0===r?r=p:(r+=String.fromCharCode(0),r+=p),p=A+b}X(l);return r},toWireType:(l,h)=>{if("string"!=typeof h)throw new T(`Cannot pass non-string to C++ string type ${c}`); | ||
var q=f(h),r=Jc(4+q+b);D[r>>2]=q>>k;e(h,r+4,q+b);null!==l&&l.push(X,r);return r},argPackAdvance:8,readValueFromPointer:Mb,fa(l){X(l)}})},w:(a,b,c,d,e,f)=>{Kb[a]={name:S(b),Ia:W(c,d),Ja:W(e,f),elements:[]}},g:(a,b,c,d,e,f,g,k,l)=>{Kb[a].elements.push({Ga:b,Ea:W(c,d),Fa:e,Ma:f,La:W(g,k),Na:l})},l:(a,b,c,d,e,f)=>{Qb[a]={name:S(b),Ia:W(c,d),Ja:W(e,f),Pa:[]}},h:(a,b,c,d,e,f,g,k,l,h)=>{Qb[a].Pa.push({eb:S(b),Ga:c,Ea:W(d,e),Fa:f,Ma:g,La:W(k,l),Na:h})},K:(a,b)=>{b=S(b);R(a,{kb:!0,name:b,argPackAdvance:0, | ||
fromWireType:()=>{},toWireType:()=>{}})},m:(a,b,c)=>{a=V(a);b=vc(b,"emval::as");return wc(b,c,a)},o:(a,b,c,d)=>{a=xc[a];b=V(b);return a(null,b,c,d)},L:(a,b,c,d,e)=>{a=xc[a];b=V(b);c=zc(c);return a(b,b[c],d,e)},J:Xb,i:(a,b,c)=>{b=Bc(a,b);var d=b.shift();a--;var e="return function (obj, func, destructorsRef, args) {\n",f=0,g=[];0===c&&g.push("obj");for(var k=["retType"],l=[d],h=0;h<a;++h)g.push("arg"+h),k.push("argType"+h),l.push(b[h]),e+=` var arg${h} = argType${h}.readValueFromPointer(args${f?"+"+ | ||
f:""});\n`,f+=b[h].argPackAdvance;e+=` var rv = ${1===c?"new func":"func.call"}(${g.join(", ")});\n`;for(h=0;h<a;++h)b[h].deleteObject&&(e+=` argType${h}.deleteObject(arg${h});\n`);d.kb||(k.push("emval_returnValue"),l.push(wc),e+=" return emval_returnValue(retType, destructorsRef, rv);\n");k.push(e+"};\n");a=bc(k).apply(null,l);c=`methodCaller<(${b.map(q=>q.name).join(", ")}) => ${d.name}>`;return Ac($b(c,a))},n:(a,b)=>{a=V(a);b=V(b);return Yb(a[b])},q:a=>{4<a&&(U.get(a).Xa+=1)},M:a=>Yb(zc(a)), | ||
x:a=>{var b=V(a);Lb(b);Xb(a)},f:(a,b)=>{a=vc(a,"_emval_take_value");a=a.readValueFromPointer(b);return Yb(a)},c:()=>{oa("")},d:(a,b,c)=>{Cc.length=0;for(var d;d=w[b++];){var e=105!=d;e&=112!=d;c+=e&&c%8?4:0;Cc.push(112==d?D[c>>2]:106==d?E[c>>3]:105==d?C[c>>2]:ua[c>>3]);c+=e?8:4}return La[a].apply(null,Cc)},y:a=>{var b=w.length;a>>>=0;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);var e=Math;d=Math.max(a,d);a:{e=(e.min.call(e,2147483648,d+(65536-d%65536)% | ||
65536)-pa.buffer.byteLength+65535)/65536;try{pa.grow(e);va();var f=1;break a}catch(g){}f=void 0}if(f)return!0}return!1},A:(a,b)=>{var c=0;Fc().forEach((d,e)=>{var f=b+c;e=D[a+4*e>>2]=f;for(f=0;f<d.length;++f)v[e++>>0]=d.charCodeAt(f);v[e>>0]=0;c+=d.length+1});return 0},B:(a,b)=>{var c=Fc();D[a>>2]=c.length;var d=0;c.forEach(e=>d+=e.length+1);D[b>>2]=d;return 0},p:function(a){try{var b=L(a);if(null===b.fd)throw new I(8);b.Da&&(b.Da=null);try{b.ba.close&&b.ba.close(b)}catch(c){throw c;}finally{kb[b.fd]= | ||
null}b.fd=null;return 0}catch(c){if("undefined"==typeof N||"ErrnoError"!==c.name)throw c;return c.pa}},E:function(a,b,c,d){try{a:{var e=L(a);a=b;for(var f,g=b=0;g<c;g++){var k=D[a>>2],l=D[a+4>>2];a+=8;var h=e,q=k,r=l,p=f,x=v;if(0>r||0>p)throw new I(28);if(null===h.fd)throw new I(8);if(1===(h.flags&2097155))throw new I(8);if(16384===(h.node.mode&61440))throw new I(31);if(!h.ba.read)throw new I(28);var A="undefined"!=typeof p;if(!A)p=h.position;else if(!h.seekable)throw new I(70);var H=h.ba.read(h, | ||
x,q,r,p);A||(h.position+=H);var u=H;if(0>u){var y=-1;break a}b+=u;if(u<l)break;"undefined"!==typeof f&&(f+=u)}y=b}D[d>>2]=y;return 0}catch(z){if("undefined"==typeof N||"ErrnoError"!==z.name)throw z;return z.pa}},z:function(a,b,c,d){b=-9007199254740992>b||9007199254740992<b?NaN:Number(b);try{if(isNaN(b))return 61;var e=L(a);Eb(e,b,c);E[d>>3]=BigInt(e.position);e.Da&&0===b&&0===c&&(e.Da=null);return 0}catch(f){if("undefined"==typeof N||"ErrnoError"!==f.name)throw f;return f.pa}},D:function(a,b,c,d){try{a:{var e= | ||
L(a);a=b;for(var f,g=b=0;g<c;g++){var k=D[a>>2],l=D[a+4>>2];a+=8;var h=e,q=k,r=l,p=f,x=v;if(0>r||0>p)throw new I(28);if(null===h.fd)throw new I(8);if(0===(h.flags&2097155))throw new I(8);if(16384===(h.node.mode&61440))throw new I(31);if(!h.ba.write)throw new I(28);h.seekable&&h.flags&1024&&Eb(h,0,2);var A="undefined"!=typeof p;if(!A)p=h.position;else if(!h.seekable)throw new I(70);var H=h.ba.write(h,x,q,r,p,void 0);A||(h.position+=H);var u=H;if(0>u){var y=-1;break a}b+=u;"undefined"!==typeof f&&(f+= | ||
u)}y=b}D[d>>2]=y;return 0}catch(z){if("undefined"==typeof N||"ErrnoError"!==z.name)throw z;return z.pa}}},Y=function(){var a={a:Kc};za++;Ha(a,function(b){Y=b.instance.exports;pa=Y.N;va();hc=Y.Y;xa.unshift(Y.O);za--;0==za&&(null!==Aa&&(clearInterval(Aa),Aa=null),Ba&&(b=Ba,Ba=null,b()))}).catch(ba);return{}}(),Ic=()=>(Ic=Y.P)(),Ia=m._ma_device__on_notification_unlocked=a=>(Ia=m._ma_device__on_notification_unlocked=Y.Q)(a);m._ma_malloc_emscripten=(a,b)=>(m._ma_malloc_emscripten=Y.R)(a,b); | ||
m._ma_free_emscripten=(a,b)=>(m._ma_free_emscripten=Y.S)(a,b);var Ja=m._ma_device_process_pcm_frames_capture__webaudio=(a,b,c)=>(Ja=m._ma_device_process_pcm_frames_capture__webaudio=Y.T)(a,b,c),Ka=m._ma_device_process_pcm_frames_playback__webaudio=(a,b,c)=>(Ka=m._ma_device_process_pcm_frames_playback__webaudio=Y.U)(a,b,c),Jc=a=>(Jc=Y.V)(a),X=a=>(X=Y.W)(a),jc=a=>(jc=Y.X)(a),Lc;Ba=function Nc(){Lc||Oc();Lc||(Ba=Nc)}; | ||
function Oc(){if(!(0<za)){for(;0<wa.length;)wa.shift()(m);if(!(0<za||Lc||(Lc=!0,m.calledRun=!0,qa))){m.noFSInit||Gb||(Gb=!0,Fb(),m.stdin=m.stdin,m.stdout=m.stdout,m.stderr=m.stderr,m.stdin?Hb("stdin",m.stdin):Bb("/dev/tty","/dev/stdin"),m.stdout?Hb("stdout",null,m.stdout):Bb("/dev/tty","/dev/stdout"),m.stderr?Hb("stderr",null,m.stderr):Bb("/dev/tty1","/dev/stderr"),Cb("/dev/stdin",0),Cb("/dev/stdout",1),Cb("/dev/stderr",1));for(nb=!1;0<xa.length;)xa.shift()(m);aa(m);if(m.onRuntimeInitialized)m.onRuntimeInitialized(); | ||
for(;0<ya.length;)ya.shift()(m)}}}Oc(); | ||
@@ -100,0 +100,0 @@ |
{ | ||
"name": "@rive-app/flutter-wasm", | ||
"version": "18.0.0", | ||
"version": "19.0.0", | ||
"description": "WASM portion of Rive's Flutter runtime.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://rive.app", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
779085