Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aduh95/viz.js

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aduh95/viz.js - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

7

CHANGELOG.md
# Changelog
### @aduh95/Viz.js v3.3.1 (2021-02-17)
- Fix image support in `@aduh95/viz.js/sync`
([#16](https://github.com/aduh95/viz.js/issues/16)).
- Bump Emscripten version to
[2.0.14](https://github.com/emscripten-core/emscripten/blob/master/ChangeLog.md#2014-02142021).
### @aduh95/Viz.js v3.3.0 (2021-01-19)

@@ -4,0 +11,0 @@

2

dist/render_async.js
/**
* Viz.js 3.3.0 (Graphviz 2.46.0, Expat 2.2.10, Emscripten 2.0.12)
* Viz.js 3.3.1 (Graphviz 2.46.0, Expat 2.2.10, Emscripten 2.0.14)
* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT licensed

@@ -4,0 +4,0 @@ *

@@ -8,2 +8,2 @@ import type { RenderOptions } from "./types";

*/
export default function renderStringSync(src: string, options?: RenderOptions): string;
export default function renderStringSync(src: string, { format, engine, files, images, yInvert, nop, }?: RenderOptions): string;
/**
* Viz.js 3.3.0 (Graphviz 2.46.0, Expat 2.2.10, Emscripten 2.0.12)
* Viz.js 3.3.1 (Graphviz 2.46.0, Expat 2.2.10, Emscripten 2.0.14)
* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT licensed

@@ -10,2 +10,2 @@ *

*/
var n=function(n){var t,r,e;n=n||{},t||(t=void 0!==n?n:{}),t.ready=new Promise((function(n,t){r=n,e=t}));var a,i={};for(a in t)t.hasOwnProperty(a)&&(i[a]=t[a]);var o="./this.program";function u(n,t){throw t}var f,c="";c=0!==(c=self.location.href).indexOf("blob:")?c.substr(0,c.lastIndexOf("/")+1):"",f=function(n){var t=new XMLHttpRequest;return t.open("GET",n,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)};var s=t.print||console.log.bind(console),l=t.printErr||console.warn.bind(console);for(a in i)i.hasOwnProperty(a)&&(t[a]=i[a]);i=null,t.thisProgram&&(o=t.thisProgram),t.quit&&(u=t.quit);var h,d,v=0;t.wasmBinary&&(h=t.wasmBinary),t.noExitRuntime&&(d=t.noExitRuntime),"object"!=typeof WebAssembly&&J("no native wasm support detected");var p,w=!1,y="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function m(n,t,r){var e=t+r;for(r=t;n[r]&&!(r>=e);)++r;if(16<r-t&&n.subarray&&y)return y.decode(n.subarray(t,r));for(e="";t<r;){var a=n[t++];if(128&a){var i=63&n[t++];if(192==(224&a))e+=String.fromCharCode((31&a)<<6|i);else{var o=63&n[t++];65536>(a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&n[t++])?e+=String.fromCharCode(a):(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else e+=String.fromCharCode(a)}return e}function g(n,t){return n?m(C,n,t):""}function b(n,t,r,e){if(!(0<e))return 0;var a=r;e=r+e-1;for(var i=0;i<n.length;++i){var o=n.charCodeAt(i);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&n.charCodeAt(++i)),127>=o){if(r>=e)break;t[r++]=o}else{if(2047>=o){if(r+1>=e)break;t[r++]=192|o>>6}else{if(65535>=o){if(r+2>=e)break;t[r++]=224|o>>12}else{if(r+3>=e)break;t[r++]=240|o>>18,t[r++]=128|o>>12&63}t[r++]=128|o>>6&63}t[r++]=128|63&o}}return t[r]=0,r-a}function A(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&(e=65536+((1023&e)<<10)|1023&n.charCodeAt(++r)),127>=e?++t:t=2047>=e?t+2:65535>=e?t+3:t+4}return t}var D,x,C,_,k,E,F,T,M,P="undefined"==typeof TextDecoder&&void 0;function S(n,t){for(var r=n>>1,e=r+t/2;!(r>=e)&&k[r];)++r;if(32<(r<<=1)-n&&P)return P.decode(C.subarray(n,r));for(r="",e=0;!(e>=t/2);++e){var a=_[n+2*e>>1];if(0==a)break;r+=String.fromCharCode(a)}return r}function O(n,t,r){if(void 0===r&&(r=2147483647),2>r)return 0;var e=t;r=(r-=2)<2*n.length?r/2:n.length;for(var a=0;a<r;++a)_[t>>1]=n.charCodeAt(a),t+=2;return _[t>>1]=0,t-e}function j(n){return 2*n.length}function W(n,t){for(var r=0,e="";!(r>=t/4);){var a=E[n+4*r>>2];if(0==a)break;++r,65536<=a?(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a)):e+=String.fromCharCode(a)}return e}function R(n,t,r){if(void 0===r&&(r=2147483647),4>r)return 0;var e=t;r=e+r-4;for(var a=0;a<n.length;++a){var i=n.charCodeAt(a);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&n.charCodeAt(++a)),E[t>>2]=i,(t+=4)+4>r)break}return E[t>>2]=0,t-e}function z(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&++r,t+=4}return t}function I(){var n=p.buffer;D=n,t.HEAP8=x=new Int8Array(n),t.HEAP16=_=new Int16Array(n),t.HEAP32=E=new Int32Array(n),t.HEAPU8=C=new Uint8Array(n),t.HEAPU16=k=new Uint16Array(n),t.HEAPU32=F=new Uint32Array(n),t.HEAPF32=T=new Float32Array(n),t.HEAPF64=M=new Float64Array(n)}var U,H=[],Y=[],B=[],N=[];function V(){var n=t.preRun.shift();H.unshift(n)}Y.push({zb:function(){Nt()}});var G=0,L=null;function J(n){throw t.onAbort&&t.onAbort(n),l(n),w=!0,n=new WebAssembly.RuntimeError("abort("+n+"). Build with -s ASSERTIONS=1 for more info."),e(n),n}function K(){var n=X;return String.prototype.startsWith?n.startsWith("data:application/octet-stream;base64,"):0===n.indexOf("data:application/octet-stream;base64,")}t.preloadedImages={},t.preloadedAudios={};var X="render.wasm";if(!K()){var $=X;X=t.locateFile?t.locateFile($,c):c+$}function q(){var n=X;try{if(n==X&&h)return new Uint8Array(h);if(f)return f(n);throw"both async and sync fetching of the wasm failed"}catch(n){J(n)}}var Q,Z,nn,tn={1025:function(n,t){n=g(n),t=g(t);var r="/";r="string"==typeof r?r:kn(r);for(var e=un(n).split("/").reverse();e.length;){var a=e.pop();if(a){r=on(r+"/"+a);try{Hn(r)}catch(n){}}}n=function(){return on(Array.prototype.slice.call(arguments,0).join("/"))}("/",n);var i=i||{};if(i.flags=i.flags||577,n=Vn(n,i.flags,i.mode),"string"==typeof t)Jn(n,e=new Uint8Array(A(t)+1),0,t=b(t,e,0,e.length),i.wb);else{if(!ArrayBuffer.isView(t))throw Error("Unsupported data type");Jn(n,t,0,t.byteLength,i.wb)}Gn(n)}};function rn(n){for(;0<n.length;){var r=n.shift();if("function"==typeof r)r(t);else{var e=r.zb;"number"==typeof e?void 0===r.eb?U.get(e)():U.get(e)(r.eb):e(void 0===r.eb?null:r.eb)}}}function en(n){this.La=n-16,this.Rb=function(n){E[this.La+8>>2]=n},this.Ob=function(n){E[this.La+0>>2]=n},this.Pb=function(){E[this.La+4>>2]=0},this.Nb=function(){x[this.La+12>>0]=0},this.Qb=function(){x[this.La+13>>0]=0},this.Cb=function(n,t){this.Rb(n),this.Ob(t),this.Pb(),this.Nb(),this.Qb()}}function an(n,t){for(var r=0,e=n.length-1;0<=e;e--){var a=n[e];"."===a?n.splice(e,1):".."===a?(n.splice(e,1),r++):r&&(n.splice(e,1),r--)}if(t)for(;r;r--)n.unshift("..");return n}function on(n){var t="/"===n.charAt(0),r="/"===n.substr(-1);return(n=an(n.split("/").filter((function(n){return!!n})),!t).join("/"))||t||(n="."),n&&r&&(n+="/"),(t?"/":"")+n}function un(n){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(n).slice(1);return n=t[0],t=t[1],n||t?(t&&(t=t.substr(0,t.length-1)),n+t):"."}function fn(n){if("/"===n)return"/";var t=(n=(n=on(n)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?n:n.substr(t+1)}function cn(){for(var n="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";n=t+"/"+n,t="/"===t.charAt(0)}return(t?"/":"")+(n=an(n.split("/").filter((function(n){return!!n})),!t).join("/"))||"."}nn=function(){return performance.now()};var sn=[];function ln(n,t){sn[n]={input:[],Ba:[],Na:t},zn(n,hn)}var hn={open:function(n){var t=sn[n.node.Ra];if(!t)throw new xn(43);n.za=t,n.seekable=!1},close:function(n){n.za.Na.flush(n.za)},flush:function(n){n.za.Na.flush(n.za)},read:function(n,t,r,e){if(!n.za||!n.za.Na.nb)throw new xn(60);for(var a=0,i=0;i<e;i++){try{var o=n.za.Na.nb(n.za)}catch(n){throw new xn(29)}if(void 0===o&&0===a)throw new xn(6);if(null==o)break;a++,t[r+i]=o}return a&&(n.node.timestamp=Date.now()),a},write:function(n,t,r,e){if(!n.za||!n.za.Na.hb)throw new xn(60);try{for(var a=0;a<e;a++)n.za.Na.hb(n.za,t[r+a])}catch(n){throw new xn(29)}return e&&(n.node.timestamp=Date.now()),a}},dn={nb:function(n){if(!n.input.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n"),!t)return null;n.input=Yt(t,!0)}return n.input.shift()},hb:function(n,t){null===t||10===t?(s(m(n.Ba,0)),n.Ba=[]):0!=t&&n.Ba.push(t)},flush:function(n){n.Ba&&0<n.Ba.length&&(s(m(n.Ba,0)),n.Ba=[])}},vn={hb:function(n,t){null===t||10===t?(l(m(n.Ba,0)),n.Ba=[]):0!=t&&n.Ba.push(t)},flush:function(n){n.Ba&&0<n.Ba.length&&(l(m(n.Ba,0)),n.Ba=[])}},pn={Fa:null,Ia:function(){return pn.createNode(null,"/",16895,0)},createNode:function(n,t,r,e){if(24576==(61440&r)||4096==(61440&r))throw new xn(63);return pn.Fa||(pn.Fa={dir:{node:{Ea:pn.wa.Ea,Ha:pn.wa.Ha,Pa:pn.wa.Pa,Va:pn.wa.Va,qb:pn.wa.qb,bb:pn.wa.bb,rb:pn.wa.rb,pb:pn.wa.pb,Ya:pn.wa.Ya},stream:{Ka:pn.xa.Ka}},file:{node:{Ea:pn.wa.Ea,Ha:pn.wa.Ha},stream:{Ka:pn.xa.Ka,read:pn.xa.read,write:pn.xa.write,jb:pn.xa.jb,Wa:pn.xa.Wa,Xa:pn.xa.Xa}},link:{node:{Ea:pn.wa.Ea,Ha:pn.wa.Ha,Sa:pn.wa.Sa},stream:{}},kb:{node:{Ea:pn.wa.Ea,Ha:pn.wa.Ha},stream:Rn}}),16384==(61440&(r=Tn(n,t,r,e)).mode)?(r.wa=pn.Fa.dir.node,r.xa=pn.Fa.dir.stream,r.va={}):32768==(61440&r.mode)?(r.wa=pn.Fa.file.node,r.xa=pn.Fa.file.stream,r.ya=0,r.va=null):40960==(61440&r.mode)?(r.wa=pn.Fa.link.node,r.xa=pn.Fa.link.stream):8192==(61440&r.mode)&&(r.wa=pn.Fa.kb.node,r.xa=pn.Fa.kb.stream),r.timestamp=Date.now(),n&&(n.va[t]=r,n.timestamp=r.timestamp),r},Xb:function(n){if(n.va&&n.va.subarray){for(var t=[],r=0;r<n.ya;++r)t.push(n.va[r]);return t}return n.va},Yb:function(n){return n.va?n.va.subarray?n.va.subarray(0,n.ya):new Uint8Array(n.va):new Uint8Array(0)},lb:function(n,t){var r=n.va?n.va.length:0;r>=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=n.va,n.va=new Uint8Array(t),0<n.ya&&n.va.set(r.subarray(0,n.ya),0))},Lb:function(n,t){if(n.ya!=t)if(0==t)n.va=null,n.ya=0;else{if(!n.va||n.va.subarray){var r=n.va;n.va=new Uint8Array(t),r&&n.va.set(r.subarray(0,Math.min(t,n.ya)))}else if(n.va||(n.va=[]),n.va.length>t)n.va.length=t;else for(;n.va.length<t;)n.va.push(0);n.ya=t}},wa:{Ea:function(n){var t={};return t.yb=8192==(61440&n.mode)?n.id:1,t.gb=n.id,t.mode=n.mode,t.Ib=1,t.uid=0,t.Ab=0,t.Ra=n.Ra,16384==(61440&n.mode)?t.size=4096:32768==(61440&n.mode)?t.size=n.ya:40960==(61440&n.mode)?t.size=n.link.length:t.size=0,t.tb=new Date(n.timestamp),t.Hb=new Date(n.timestamp),t.xb=new Date(n.timestamp),t.ub=4096,t.vb=Math.ceil(t.size/t.ub),t},Ha:function(n,t){void 0!==t.mode&&(n.mode=t.mode),void 0!==t.timestamp&&(n.timestamp=t.timestamp),void 0!==t.size&&pn.Lb(n,t.size)},Pa:function(){throw Cn[44]},Va:function(n,t,r,e){return pn.createNode(n,t,r,e)},qb:function(n,t,r){if(16384==(61440&n.mode)){try{var e=Fn(t,r)}catch(n){}if(e)for(var a in e.va)throw new xn(55)}delete n.parent.va[n.name],n.parent.timestamp=Date.now(),n.name=r,t.va[r]=n,t.timestamp=n.parent.timestamp,n.parent=t},bb:function(n,t){delete n.va[t],n.timestamp=Date.now()},rb:function(n,t){var r,e=Fn(n,t);for(r in e.va)throw new xn(55);delete n.va[t],n.timestamp=Date.now()},pb:function(n){var t,r=[".",".."];for(t in n.va)n.va.hasOwnProperty(t)&&r.push(t);return r},Ya:function(n,t,r){return(n=pn.createNode(n,t,41471,0)).link=r,n},Sa:function(n){if(40960!=(61440&n.mode))throw new xn(28);return n.link}},xa:{read:function(n,t,r,e,a){var i=n.node.va;if(a>=n.node.ya)return 0;if(8<(n=Math.min(n.node.ya-a,e))&&i.subarray)t.set(i.subarray(a,a+n),r);else for(e=0;e<n;e++)t[r+e]=i[a+e];return n},write:function(n,t,r,e,a,i){if(t.buffer===x.buffer&&(i=!1),!e)return 0;if((n=n.node).timestamp=Date.now(),t.subarray&&(!n.va||n.va.subarray)){if(i)return n.va=t.subarray(r,r+e),n.ya=e;if(0===n.ya&&0===a)return n.va=t.slice(r,r+e),n.ya=e;if(a+e<=n.ya)return n.va.set(t.subarray(r,r+e),a),e}if(pn.lb(n,a+e),n.va.subarray&&t.subarray)n.va.set(t.subarray(r,r+e),a);else for(i=0;i<e;i++)n.va[a+i]=t[r+i];return n.ya=Math.max(n.ya,a+e),e},Ka:function(n,t,r){if(1===r?t+=n.position:2===r&&32768==(61440&n.node.mode)&&(t+=n.node.ya),0>t)throw new xn(28);return t},jb:function(n,t,r){pn.lb(n.node,t+r),n.node.ya=Math.max(n.node.ya,t+r)},Wa:function(n,t,r,e,a,i){if(0!==t)throw new xn(28);if(32768!=(61440&n.node.mode))throw new xn(43);if(n=n.node.va,2&i||n.buffer!==D){for((0<e||e+r<n.length)&&(n=n.subarray?n.subarray(e,e+r):Array.prototype.slice.call(n,e,e+r)),e=!0,i=16384*Math.ceil(r/16384),t=Vt(i);r<i;)x[t+r++]=0;if(!(r=t))throw new xn(48);x.set(n,r)}else e=!1,r=n.byteOffset;return{La:r,cb:e}},Xa:function(n,t,r,e,a){if(32768!=(61440&n.node.mode))throw new xn(43);return 2&a||pn.xa.write(n,t,0,e,r,!1),0}}},wn=null,yn={},mn=[],gn=1,bn=null,An=!0,Dn={},xn=null,Cn={};function _n(n,t){if(t=t||{},!(n=cn("/",n)))return{path:"",node:null};var r,e={mb:!0,ib:0};for(r in e)void 0===t[r]&&(t[r]=e[r]);if(8<t.ib)throw new xn(32);n=an(n.split("/").filter((function(n){return!!n})),!1);var a=wn;for(e="/",r=0;r<n.length;r++){var i=r===n.length-1;if(i&&t.parent)break;if(a=Fn(a,n[r]),e=on(e+"/"+n[r]),a.Qa&&(!i||i&&t.mb)&&(a=a.Qa.root),!i||t.Ua)for(i=0;40960==(61440&a.mode);)if(a=Nn(e),a=_n(e=cn(un(e),a),{ib:t.ib}).node,40<i++)throw new xn(32)}return{path:e,node:a}}function kn(n){for(var t;;){if(n===n.parent)return n=n.Ia.ob,t?"/"!==n[n.length-1]?n+"/"+t:n+t:n;t=t?n.name+"/"+t:n.name,n=n.parent}}function En(n,t){for(var r=0,e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return(n+r>>>0)%bn.length}function Fn(n,t){var r;if(r=(r=Sn(n,"x"))?r:n.wa.Pa?0:2)throw new xn(r,n);for(r=bn[En(n.id,t)];r;r=r.Ma){var e=r.name;if(r.parent.id===n.id&&e===t)return r}return n.wa.Pa(n,t)}function Tn(n,t,r,e){return t=En((n=new It(n,t,r,e)).parent.id,n.name),n.Ma=bn[t],bn[t]=n}var Mn={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090};function Pn(n){var t=["r","w","rw"][3&n];return 512&n&&(t+="w"),t}function Sn(n,t){return An||(-1===t.indexOf("r")||292&n.mode)&&(-1===t.indexOf("w")||146&n.mode)&&(-1===t.indexOf("x")||73&n.mode)?0:2}function On(n,t){try{return Fn(n,t),20}catch(n){}return Sn(n,"wx")}function jn(n,t){qn||((qn=function(){}).prototype={});var r,e=new qn;for(r in n)e[r]=n[r];return n=e,t=function(n){for(n=n||0;n<=4096;n++)if(!mn[n])return n;throw new xn(33)}(t),n.Da=t,mn[t]=n}var Wn,Rn={open:function(n){n.xa=yn[n.node.Ra].xa,n.xa.open&&n.xa.open(n)},Ka:function(){throw new xn(70)}};function zn(n,t){yn[n]={xa:t}}function In(n,t){var r="/"===t,e=!t;if(r&&wn)throw new xn(10);if(!r&&!e){var a=_n(t,{mb:!1});if(t=a.path,(a=a.node).Qa)throw new xn(10);if(16384!=(61440&a.mode))throw new xn(54)}t={type:n,ac:{},ob:t,Gb:[]},(n=n.Ia(t)).Ia=t,t.root=n,r?wn=n:a&&(a.Qa=t,a.Ia&&a.Ia.Gb.push(t))}function Un(n,t,r){var e=_n(n,{parent:!0}).node;if(!(n=fn(n))||"."===n||".."===n)throw new xn(28);var a=On(e,n);if(a)throw new xn(a);if(!e.wa.Va)throw new xn(63);return e.wa.Va(e,n,t,r)}function Hn(n){return Un(n,16895,0)}function Yn(n,t,r){void 0===r&&(r=t,t=438),Un(n,8192|t,r)}function Bn(n,t){if(!cn(n))throw new xn(44);var r=_n(t,{parent:!0}).node;if(!r)throw new xn(44);var e=On(r,t=fn(t));if(e)throw new xn(e);if(!r.wa.Ya)throw new xn(63);r.wa.Ya(r,t,n)}function Nn(n){if(!(n=_n(n).node))throw new xn(44);if(!n.wa.Sa)throw new xn(28);return cn(kn(n.parent),n.wa.Sa(n))}function Vn(n,r,e,a){if(""===n)throw new xn(44);if("string"==typeof r){var i=Mn[r];if(void 0===i)throw Error("Unknown file open mode: "+r);r=i}if(e=64&r?4095&(void 0===e?438:e)|32768:0,"object"==typeof n)var o=n;else{n=on(n);try{o=_n(n,{Ua:!(131072&r)}).node}catch(n){}}if(i=!1,64&r)if(o){if(128&r)throw new xn(20)}else o=Un(n,e,0),i=!0;if(!o)throw new xn(44);if(8192==(61440&o.mode)&&(r&=-513),65536&r&&16384!=(61440&o.mode))throw new xn(54);if(!i&&(e=o?40960==(61440&o.mode)?32:16384==(61440&o.mode)&&("r"!==Pn(r)||512&r)?31:Sn(o,Pn(r)):44))throw new xn(e);if(512&r){var u;if(!(u="string"==typeof(e=o)?_n(e,{Ua:!0}).node:e).wa.Ha)throw new xn(63);if(16384==(61440&u.mode))throw new xn(31);if(32768!=(61440&u.mode))throw new xn(28);if(e=Sn(u,"w"))throw new xn(e);u.wa.Ha(u,{size:0,timestamp:Date.now()})}r&=-131713,(a=jn({node:o,path:kn(o),flags:r,seekable:!0,position:0,xa:o.xa,Wb:[],error:!1},a)).xa.open&&a.xa.open(a),!t.logReadFiles||1&r||(Qn||(Qn={}),n in Qn||(Qn[n]=1,l("FS.trackingDelegate error on read file: "+n)));try{Dn.onOpenFile&&(o=0,1!=(2097155&r)&&(o|=1),0!=(2097155&r)&&(o|=2),Dn.onOpenFile(n,o))}catch(t){l("FS.trackingDelegate['onOpenFile']('"+n+"', flags) threw an exception: "+t.message)}return a}function Gn(n){if(null===n.Da)throw new xn(8);n.fb&&(n.fb=null);try{n.xa.close&&n.xa.close(n)}catch(n){throw n}finally{mn[n.Da]=null}n.Da=null}function Ln(n,t,r){if(null===n.Da)throw new xn(8);if(!n.seekable||!n.xa.Ka)throw new xn(70);if(0!=r&&1!=r&&2!=r)throw new xn(28);n.position=n.xa.Ka(n,t,r),n.Wb=[]}function Jn(n,t,r,e,a){var i=void 0;if(0>e||0>i)throw new xn(28);if(null===n.Da)throw new xn(8);if(0==(2097155&n.flags))throw new xn(8);if(16384==(61440&n.node.mode))throw new xn(31);if(!n.xa.write)throw new xn(28);n.seekable&&1024&n.flags&&Ln(n,0,2);var o=void 0!==i;if(o){if(!n.seekable)throw new xn(70)}else i=n.position;t=n.xa.write(n,t,r,e,i,a),o||(n.position+=t);try{n.path&&Dn.onWriteToFile&&Dn.onWriteToFile(n.path)}catch(t){l("FS.trackingDelegate['onWriteToFile']('"+n.path+"') threw an exception: "+t.message)}return t}function Kn(){xn||((xn=function(n,t){this.node=t,this.Mb=function(n){this.Aa=n},this.Mb(n),this.message="FS error"}).prototype=Error(),xn.prototype.constructor=xn,[44].forEach((function(n){Cn[n]=new xn(n),Cn[n].stack="<generic error, no stack>"})))}function Xn(n,t,r){n=on("/dev/"+n);var e=function(n,t){var r=0;return n&&(r|=365),t&&(r|=146),r}(!!t,!!r);$n||($n=64);var a=$n++<<8|0;zn(a,{open:function(n){n.seekable=!1},close:function(){r&&r.buffer&&r.buffer.length&&r(10)},read:function(n,r,e,a){for(var i=0,o=0;o<a;o++){try{var u=t()}catch(n){throw new xn(29)}if(void 0===u&&0===i)throw new xn(6);if(null==u)break;i++,r[e+o]=u}return i&&(n.node.timestamp=Date.now()),i},write:function(n,t,e,a){for(var i=0;i<a;i++)try{r(t[e+i])}catch(n){throw new xn(29)}return a&&(n.node.timestamp=Date.now()),i}}),Yn(n,e,a)}var $n,qn,Qn,Zn={},nt={};function tt(n,t){try{var r=_n(n,{Ua:!0}).node;if(!r)throw new xn(44);if(!r.wa.Ea)throw new xn(63);var e=r.wa.Ea(r)}catch(t){if(t&&t.node&&on(n)!==on(kn(t.node)))return-54;throw t}return E[t>>2]=e.yb,E[t+4>>2]=0,E[t+8>>2]=e.gb,E[t+12>>2]=e.mode,E[t+16>>2]=e.Ib,E[t+20>>2]=e.uid,E[t+24>>2]=e.Ab,E[t+28>>2]=e.Ra,E[t+32>>2]=0,Z=[e.size>>>0,(Q=e.size,1<=+Math.abs(Q)?0<Q?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[t+40>>2]=Z[0],E[t+44>>2]=Z[1],E[t+48>>2]=4096,E[t+52>>2]=e.vb,E[t+56>>2]=e.tb.getTime()/1e3|0,E[t+60>>2]=0,E[t+64>>2]=e.Hb.getTime()/1e3|0,E[t+68>>2]=0,E[t+72>>2]=e.xb.getTime()/1e3|0,E[t+76>>2]=0,Z=[e.gb>>>0,(Q=e.gb,1<=+Math.abs(Q)?0<Q?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[t+80>>2]=Z[0],E[t+84>>2]=Z[1],0}var rt=void 0;function et(){return E[(rt+=4)-4>>2]}function at(n){if(!(n=mn[n]))throw new xn(8);return n}function it(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+n)}}var ot=void 0;function ut(n){for(var t="";C[n];)t+=ot[C[n++]];return t}var ft={},ct={},st={};function lt(n){if(void 0===n)return"_unknown";var t=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?"_"+n:n}function ht(n,t){return n=lt(n),new Function("body","return function "+n+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function dt(n){var t=Error,r=ht(n,(function(t){this.name=n,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var vt=void 0;function pt(n){throw new vt(n)}var wt=void 0;function yt(n,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var e=t.name;if(n||pt('type "'+e+'" must have a positive integer typeid pointer'),ct.hasOwnProperty(n)){if(r.Bb)return;pt("Cannot register type '"+e+"' twice")}ct[n]=t,delete st[n],ft.hasOwnProperty(n)&&(t=ft[n],delete ft[n],t.forEach((function(n){n()})))}var mt=[],gt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function bt(n){return this.fromWireType(F[n>>2])}function At(n){if(null===n)return"null";var t=typeof n;return"object"===t||"array"===t||"function"===t?n.toString():""+n}function Dt(n,t){switch(t){case 2:return function(n){return this.fromWireType(T[n>>2])};case 3:return function(n){return this.fromWireType(M[n>>3])};default:throw new TypeError("Unknown float type: "+n)}}function xt(n){for(;n.length;){var t=n.pop();n.pop()(t)}}function Ct(n,r,e){t.hasOwnProperty(n)?((void 0===e||void 0!==t[n].Ga&&void 0!==t[n].Ga[e])&&pt("Cannot register public name '"+n+"' twice"),function(n,r){var e=t;if(void 0===e[n].Ga){var a=e[n];e[n]=function(){return e[n].Ga.hasOwnProperty(arguments.length)||pt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[n].Ga+")!"),e[n].Ga[arguments.length].apply(this,arguments)},e[n].Ga=[],e[n].Ga[a.sb]=a}}(n,n),t.hasOwnProperty(e)&&pt("Cannot register multiple overloads of a function with the same number of arguments ("+e+")!"),t[n].Ga[e]=r):(t[n]=r,void 0!==e&&(t[n].$b=e))}function _t(n,r){var e=-1!=(n=ut(n)).indexOf("j")?function(n,r){0<=n.indexOf("j")||J("Assertion failed: getDynCaller should only be called with i64 sigs");var e=[];return function(){e.length=arguments.length;for(var a=0;a<arguments.length;a++)e[a]=arguments[a];return-1!=n.indexOf("j")?e&&e.length?t["dynCall_"+n].apply(null,[r].concat(e)):t["dynCall_"+n].call(null,r):U.get(r).apply(null,e)}}(n,r):U.get(r);return"function"!=typeof e&&pt("unknown function pointer with signature "+n+": "+r),e}var kt=void 0;function Et(n){var t=ut(n=Kt(n));return Gt(n),t}function Ft(n,t,r){switch(t){case 0:return r?function(n){return x[n]}:function(n){return C[n]};case 1:return r?function(n){return _[n>>1]}:function(n){return k[n>>1]};case 2:return r?function(n){return E[n>>2]}:function(n){return F[n>>2]};default:throw new TypeError("Unknown integer type: "+n)}}var Tt,Mt={};function Pt(){if(!Tt){var n,t={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",_:o||"./this.program"};for(n in Mt)t[n]=Mt[n];var r=[];for(n in t)r.push(n+"="+t[n]);Tt=r}return Tt}function St(n){return 0==n%4&&(0!=n%100||0==n%400)}function Ot(n,t){for(var r=0,e=0;e<=t;r+=n[e++]);return r}var jt=[31,29,31,30,31,30,31,31,30,31,30,31],Wt=[31,28,31,30,31,30,31,31,30,31,30,31];function Rt(n,t){for(n=new Date(n.getTime());0<t;){var r=n.getMonth(),e=(St(n.getFullYear())?jt:Wt)[r];if(!(t>e-n.getDate())){n.setDate(n.getDate()+t);break}t-=e-n.getDate()+1,n.setDate(1),11>r?n.setMonth(r+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}var zt=[];function It(n,t,r,e){n||(n=this),this.parent=n,this.Ia=n.Ia,this.Qa=null,this.id=gn++,this.name=t,this.mode=r,this.wa={},this.xa={},this.Ra=e}Object.defineProperties(It.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(n){n?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(n){n?this.mode|=146:this.mode&=-147}}}),Kn(),bn=Array(4096),In(pn,"/"),Hn("/tmp"),Hn("/home"),Hn("/home/web_user"),function(){Hn("/dev"),zn(259,{read:function(){return 0},write:function(n,t,r,e){return e}}),Yn("/dev/null",259),ln(1280,dn),ln(1536,vn),Yn("/dev/tty",1280),Yn("/dev/tty1",1536);var n=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var n=new Uint8Array(1);return function(){return crypto.getRandomValues(n),n[0]}}return function(){J("randomDevice")}}();Xn("random",n),Xn("urandom",n),Hn("/dev/shm"),Hn("/dev/shm/tmp")}(),function(){Hn("/proc");var n=Hn("/proc/self");Hn("/proc/self/fd"),In({Ia:function(){var t=Tn(n,"fd",16895,73);return t.wa={Pa:function(n,t){var r=mn[+t];if(!r)throw new xn(8);return(n={parent:null,Ia:{ob:"fake"},wa:{Sa:function(){return r.path}}}).parent=n}},t}},"/proc/self/fd")}();for(var Ut=Array(256),Ht=0;256>Ht;++Ht)Ut[Ht]=String.fromCharCode(Ht);function Yt(n,t){var r=Array(A(n)+1);return n=b(n,r,0,r.length),t&&(r.length=n),r}ot=Ut,vt=t.BindingError=dt("BindingError"),wt=t.InternalError=dt("InternalError"),t.count_emval_handles=function(){for(var n=0,t=5;t<gt.length;++t)void 0!==gt[t]&&++n;return n},t.get_first_emval=function(){for(var n=5;n<gt.length;++n)if(void 0!==gt[n])return gt[n];return null},kt=t.UnboundTypeError=dt("UnboundTypeError");var Bt={a:function(n,t,r,e){J("Assertion failed: "+g(n)+", at: "+[t?g(t):"unknown filename",r,e?g(e):"unknown function"])},T:function(n,t){n:{if(0===n)n=Date.now();else{if(1!==n&&4!==n){E[Lt()>>2]=28,t=-1;break n}n=nn()}E[t>>2]=n/1e3|0,E[t+4>>2]=n%1e3*1e6|0,t=0}return t},k:function(n){return Vt(n+16)+16},j:function(n,t,r){throw new en(n).Cb(t,r),n},U:function(n,t){try{var r;if(n=g(n),-8&t)var e=-28;else(r=_n(n,{Ua:!0}).node)?(n="",4&t&&(n+="r"),2&t&&(n+="w"),1&t&&(n+="x"),e=n&&Sn(r,n)?-2:0):e=-44;return e}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},y:function(n,t,r){rt=r;try{var e=at(n);switch(t){case 0:var a=et();return 0>a?-28:Vn(e.path,e.flags,0,a).Da;case 1:case 2:return 0;case 3:return e.flags;case 4:return a=et(),e.flags|=a,0;case 12:return a=et(),_[a+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return E[Lt()>>2]=28,-1;default:return-28}}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},Q:function(n,t){try{return tt(at(n).path,t)}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},s:function(){return 42},R:function(n,t,r){rt=r;try{var e=at(n);switch(t){case 21509:case 21505:return e.za?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return e.za?0:-59;case 21519:if(!e.za)return-59;var a=et();return E[a>>2]=0;case 21520:return e.za?-28:-59;case 21531:if(n=a=et(),!e.xa.Db)throw new xn(59);return e.xa.Db(e,t,n);case 21523:case 21524:return e.za?0:-59;default:J("bad ioctl syscall "+t)}}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},O:function(n,t,r,e,a,i){try{n:{i<<=12;var o=!1;if(0!=(16&e)&&0!=n%16384)var u=-28;else{if(0!=(32&e)){var f=Zt(16384,t);if(!f){u=-48;break n}Jt(f,0,t),o=!0}else{var c=mn[a];if(!c){u=-8;break n}var s=i;if(0!=(2&r)&&0==(2&e)&&2!=(2097155&c.flags))throw new xn(2);if(1==(2097155&c.flags))throw new xn(2);if(!c.xa.Wa)throw new xn(43);var l=c.xa.Wa(c,n,t,s,r,e);f=l.La,o=l.cb}nt[f]={Fb:f,Eb:t,cb:o,Da:a,Jb:r,flags:e,offset:i},u=f}}return u}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},N:function(n,t){try{if(-1==(0|n)||0===t)var r=-28;else{var e=nt[n];if(e&&t===e.Eb){var a=mn[e.Da];a&&2&e.Jb&&a&&a.xa.Xa&&a.xa.Xa(a,C.slice(n,n+t),e.offset,t,e.flags),nt[n]=null,e.cb&&Gt(e.Fb)}r=0}return r}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},r:function(n,t,r){rt=r;try{return Vn(g(n),t,r?et():0).Da}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},P:function(n,t){try{return tt(n=g(n),t)}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},S:function(n){try{var t=_n(n=g(n),{parent:!0}).node,r=fn(n),e=Fn(t,r);n:{try{var a=Fn(t,r)}catch(n){var i=n.Aa;break n}var o=Sn(t,"wx");i=o||(16384==(61440&a.mode)?31:0)}if(i)throw new xn(i);if(!t.wa.bb)throw new xn(63);if(e.Qa)throw new xn(10);try{Dn.willDeletePath&&Dn.willDeletePath(n)}catch(t){l("FS.trackingDelegate['willDeletePath']('"+n+"') threw an exception: "+t.message)}t.wa.bb(t,r);var u=En(e.parent.id,e.name);if(bn[u]===e)bn[u]=e.Ma;else for(var f=bn[u];f;){if(f.Ma===e){f.Ma=e.Ma;break}f=f.Ma}try{Dn.onDeletePath&&Dn.onDeletePath(n)}catch(t){l("FS.trackingDelegate['onDeletePath']('"+n+"') threw an exception: "+t.message)}return 0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),-n.Aa}},W:function(n,t,r,e,a){var i=it(r);yt(n,{name:t=ut(t),fromWireType:function(n){return!!n},toWireType:function(n,t){return t?e:a},argPackAdvance:8,readValueFromPointer:function(n){if(1===r)var e=x;else if(2===r)e=_;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);e=E}return this.fromWireType(e[n>>i])},Ja:null})},V:function(n,t){yt(n,{name:t=ut(t),fromWireType:function(n){var t=gt[n].value;return 4<n&&0==--gt[n].Kb&&(gt[n]=void 0,mt.push(n)),t},toWireType:function(n,t){return function(n){switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=mt.length?mt.pop():gt.length;return gt[t]={Kb:1,value:n},t}}(t)},argPackAdvance:8,readValueFromPointer:bt,Ja:null})},B:function(n,t,r){r=it(r),yt(n,{name:t=ut(t),fromWireType:function(n){return n},toWireType:function(n,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+At(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:Dt(t,r),Ja:null})},p:function(n,r,e,a,i,o){var u=function(n,t){for(var r=[],e=0;e<n;e++)r.push(E[(t>>2)+e]);return r}(r,e);n=ut(n),i=_t(a,i),Ct(n,(function(){!function(n,t){var r=[],e={};throw t.forEach((function n(t){e[t]||ct[t]||(st[t]?st[t].forEach(n):(r.push(t),e[t]=!0))})),new kt(n+": "+r.map(Et).join([", "]))}("Cannot call "+n+" due to unbound types",u)}),r-1),function(n,t){function r(n){if((n=t(n)).length!==e.length)throw new wt("Mismatched type converter count");for(var r=0;r<e.length;++r)yt(e[r],n[r])}var e=[];e.forEach((function(t){st[t]=n}));var a=Array(n.length),i=[],o=0;n.forEach((function(n,t){ct.hasOwnProperty(n)?a[t]=ct[n]:(i.push(n),ft.hasOwnProperty(n)||(ft[n]=[]),ft[n].push((function(){a[t]=ct[n],++o===i.length&&r(a)})))})),0===i.length&&r(a)}(u,(function(e){var a=n,u=n;e=[e[0],null].concat(e.slice(1));var f=i,c=e.length;2>c&&pt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==e[1]&&!1,l=!1,h=1;h<e.length;++h)if(null!==e[h]&&void 0===e[h].Ja){l=!0;break}var d="void"!==e[0].name,v="",p="";for(h=0;h<c-2;++h)v+=(0!==h?", ":"")+"arg"+h,p+=(0!==h?", ":"")+"arg"+h+"Wired";u="return function "+lt(u)+"("+v+") {\nif (arguments.length !== "+(c-2)+") {\nthrowBindingError('function "+u+" called with ' + arguments.length + ' arguments, expected "+(c-2)+" args!');\n}\n",l&&(u+="var destructors = [];\n");var w=l?"destructors":"null";for(v="throwBindingError invoker fn runDestructors retType classParam".split(" "),f=[pt,f,o,xt,e[0],e[1]],s&&(u+="var thisWired = classParam.toWireType("+w+", this);\n"),h=0;h<c-2;++h)u+="var arg"+h+"Wired = argType"+h+".toWireType("+w+", arg"+h+"); // "+e[h+2].name+"\n",v.push("argType"+h),f.push(e[h+2]);if(s&&(p="thisWired"+(0<p.length?", ":"")+p),u+=(d?"var rv = ":"")+"invoker(fn"+(0<p.length?", ":"")+p+");\n",l)u+="runDestructors(destructors);\n";else for(h=s?1:2;h<e.length;++h)c=1===h?"thisWired":"arg"+(h-2)+"Wired",null!==e[h].Ja&&(u+=c+"_dtor("+c+"); // "+e[h].name+"\n",v.push(c+"_dtor"),f.push(e[h].Ja));if(d&&(u+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),v.push(u+"}\n"),e=function(n){var t=Function;if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=ht(t.name||"unknownFunctionName",(function(){}));return r.prototype=t.prototype,r=new r,(n=t.apply(r,n))instanceof Object?n:r}(v).apply(null,f),h=r-1,!t.hasOwnProperty(a))throw new wt("Replacing nonexistant public symbol");return void 0!==t[a].Ga&&void 0!==h?t[a].Ga[h]=e:(t[a]=e,t[a].sb=h),[]}))},h:function(n,t,r,e,a){function i(n){return n}t=ut(t),-1===a&&(a=4294967295);var o=it(r);if(0===e){var u=32-8*r;i=function(n){return n<<u>>>u}}var f=-1!=t.indexOf("unsigned");yt(n,{name:t,fromWireType:i,toWireType:function(n,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+At(r)+'" to '+this.name);if(r<e||r>a)throw new TypeError('Passing a number "'+At(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+e+", "+a+"]!");return f?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:Ft(t,o,0!==e),Ja:null})},g:function(n,t,r){function e(n){var t=F;return new a(D,t[1+(n>>=2)],t[n])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];yt(n,{name:r=ut(r),fromWireType:e,argPackAdvance:8,readValueFromPointer:e},{Bb:!0})},C:function(n,t){var r="std::string"===(t=ut(t));yt(n,{name:t,fromWireType:function(n){var t=F[n>>2];if(r)for(var e=n+4,a=0;a<=t;++a){var i=n+4+a;if(a==t||0==C[i]){if(e=g(e,i-e),void 0===o)var o=e;else o+=String.fromCharCode(0),o+=e;e=i+1}}else{for(o=Array(t),a=0;a<t;++a)o[a]=String.fromCharCode(C[n+4+a]);o=o.join("")}return Gt(n),o},toWireType:function(n,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e="string"==typeof t;e||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||pt("Cannot pass non-string to std::string");var a=(r&&e?function(){return A(t)}:function(){return t.length})(),i=Vt(4+a+1);if(F[i>>2]=a,r&&e)b(t,C,i+4,a+1);else if(e)for(e=0;e<a;++e){var o=t.charCodeAt(e);255<o&&(Gt(i),pt("String has UTF-16 code units that do not fit in 8 bits")),C[i+4+e]=o}else for(e=0;e<a;++e)C[i+4+e]=t[e];return null!==n&&n.push(Gt,i),i},argPackAdvance:8,readValueFromPointer:bt,Ja:function(n){Gt(n)}})},t:function(n,t,r){if(r=ut(r),2===t)var e=S,a=O,i=j,o=function(){return k},u=1;else 4===t&&(e=W,a=R,i=z,o=function(){return F},u=2);yt(n,{name:r,fromWireType:function(n){for(var r,a=F[n>>2],i=o(),f=n+4,c=0;c<=a;++c){var s=n+4+c*t;c!=a&&0!=i[s>>u]||(f=e(f,s-f),void 0===r?r=f:(r+=String.fromCharCode(0),r+=f),f=s+t)}return Gt(n),r},toWireType:function(n,e){"string"!=typeof e&&pt("Cannot pass non-string to C++ string type "+r);var o=i(e),f=Vt(4+o+t);return F[f>>2]=o>>u,a(e,f+4,o+t),null!==n&&n.push(Gt,f),f},argPackAdvance:8,readValueFromPointer:bt,Ja:function(n){Gt(n)}})},X:function(n,t){yt(n,{Zb:!0,name:t=ut(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},x:function(){J()},aa:function(n,t,r){var e;for(zt.length=0,r>>=2;e=C[t++];)(e=105>e)&&1&r&&r++,zt.push(e?M[r++>>1]:E[r]),++r;return tn[n].apply(null,zt)},d:function(n,t){throw Qt(n,t||1),"longjmp"},H:function(n,t,r){C.copyWithin(n,t,t+r)},I:function(n){n>>>=0;var t=C.length;if(2147483648<n)return!1;for(var r=1;4>=r;r*=2){var e=t*(1+.2/r);e=Math.min(e,n+100663296),0<(e=Math.max(16777216,n,e))%65536&&(e+=65536-e%65536);n:{try{p.grow(Math.min(2147483648,e)-D.byteLength+65535>>>16),I();var a=1;break n}catch(n){}a=void 0}if(a)return!0}return!1},L:function(n,t){try{var r=0;return Pt().forEach((function(e,a){var i=t+r;for(a=E[n+4*a>>2]=i,i=0;i<e.length;++i)x[a++>>0]=e.charCodeAt(i);x[a>>0]=0,r+=e.length+1})),0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},M:function(n,t){try{var r=Pt();E[n>>2]=r.length;var e=0;return r.forEach((function(n){e+=n.length+1})),E[t>>2]=e,0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},f:function(n){d||(t.onExit&&t.onExit(n),w=!0),u(n,new nr(n))},n:function(n){try{return Gn(at(n)),0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},K:function(n,t){try{var r=at(n);return x[t>>0]=r.za?2:16384==(61440&r.mode)?3:40960==(61440&r.mode)?7:4,0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},A:function(n,t,r,e){try{n:{for(var a=at(n),i=n=0;i<r;i++){var o=E[t+(8*i+4)>>2],u=a,f=E[t+8*i>>2],c=o,s=void 0,l=x;if(0>c||0>s)throw new xn(28);if(null===u.Da)throw new xn(8);if(1==(2097155&u.flags))throw new xn(8);if(16384==(61440&u.node.mode))throw new xn(31);if(!u.xa.read)throw new xn(28);var h=void 0!==s;if(h){if(!u.seekable)throw new xn(70)}else s=u.position;var d=u.xa.read(u,l,f,c,s);h||(u.position+=d);var v=d;if(0>v){var p=-1;break n}if(n+=v,v<o)break}p=n}return E[e>>2]=p,0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},G:function(n,t,r,e,a){try{var i=at(n);return-9007199254740992>=(n=4294967296*r+(t>>>0))||9007199254740992<=n?-61:(Ln(i,n,e),Z=[i.position>>>0,(Q=i.position,1<=+Math.abs(Q)?0<Q?(0|Math.min(+Math.floor(Q/4294967296),4294967295))>>>0:~~+Math.ceil((Q-+(~~Q>>>0))/4294967296)>>>0:0)],E[a>>2]=Z[0],E[a+4>>2]=Z[1],i.fb&&0===n&&0===e&&(i.fb=null),0)}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},z:function(n,t,r,e){try{n:{for(var a=at(n),i=n=0;i<r;i++){var o=Jn(a,x,E[t+8*i>>2],E[t+(8*i+4)>>2]);if(0>o){var u=-1;break n}n+=o}u=n}return E[e>>2]=u,0}catch(n){return void 0!==Zn&&n instanceof xn||J(n),n.Aa}},b:function(){return 0|v},Y:function(n){var t=Date.now();return E[n>>2]=t/1e3|0,E[n+4>>2]=t%1e3*1e3|0,0},_:function(n){var t=$t();try{return U.get(n)()}catch(n){if(qt(t),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},$:function(n,t){var r=$t();try{return U.get(n)(t)}catch(n){if(qt(r),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},E:function(n){var t=$t();try{return U.get(n)()}catch(n){if(qt(t),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},m:function(n,t){var r=$t();try{return U.get(n)(t)}catch(n){if(qt(r),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},e:function(n,t,r){var e=$t();try{return U.get(n)(t,r)}catch(n){if(qt(e),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},l:function(n,t,r,e){var a=$t();try{return U.get(n)(t,r,e)}catch(n){if(qt(a),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},Z:function(n,t,r,e,a,i,o){var u=$t();try{return U.get(n)(t,r,e,a,i,o)}catch(n){if(qt(u),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},v:function(n){var t=$t();try{U.get(n)()}catch(n){if(qt(t),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},i:function(n,t){var r=$t();try{U.get(n)(t)}catch(n){if(qt(r),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},o:function(n,t,r){var e=$t();try{U.get(n)(t,r)}catch(n){if(qt(e),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},w:function(n,t,r,e){var a=$t();try{U.get(n)(t,r,e)}catch(n){if(qt(a),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},u:function(n,t,r,e,a){var i=$t();try{U.get(n)(t,r,e,a)}catch(n){if(qt(i),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},q:function(n,t,r,e,a,i){var o=$t();try{U.get(n)(t,r,e,a,i)}catch(n){if(qt(o),n!==n+0&&"longjmp"!==n)throw n;Qt(1,0)}},c:function(n){v=0|n},J:function(n,t,r,e){return function(n,t,r,e){function a(n,t,r){for(n="number"==typeof n?n.toString():n||"";n.length<t;)n=r[0]+n;return n}function i(n,t){return a(n,t,"0")}function o(n,t){function r(n){return 0>n?-1:0<n?1:0}var e;return 0===(e=r(n.getFullYear()-t.getFullYear()))&&0===(e=r(n.getMonth()-t.getMonth()))&&(e=r(n.getDate()-t.getDate())),e}function u(n){switch(n.getDay()){case 0:return new Date(n.getFullYear()-1,11,29);case 1:return n;case 2:return new Date(n.getFullYear(),0,3);case 3:return new Date(n.getFullYear(),0,2);case 4:return new Date(n.getFullYear(),0,1);case 5:return new Date(n.getFullYear()-1,11,31);case 6:return new Date(n.getFullYear()-1,11,30)}}function f(n){n=Rt(new Date(n.Ca+1900,0,1),n.ab);var t=new Date(n.getFullYear()+1,0,4),r=u(new Date(n.getFullYear(),0,4));return t=u(t),0>=o(r,n)?0>=o(t,n)?n.getFullYear()+1:n.getFullYear():n.getFullYear()-1}var c=E[e+40>>2];for(var s in e={Ub:E[e>>2],Tb:E[e+4>>2],Za:E[e+8>>2],Ta:E[e+12>>2],Oa:E[e+16>>2],Ca:E[e+20>>2],$a:E[e+24>>2],ab:E[e+28>>2],bc:E[e+32>>2],Sb:E[e+36>>2],Vb:c?g(c):""},r=g(r),c={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})r=r.replace(new RegExp(s,"g"),c[s]);var l="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(s in c={"%a":function(n){return l[n.$a].substring(0,3)},"%A":function(n){return l[n.$a]},"%b":function(n){return h[n.Oa].substring(0,3)},"%B":function(n){return h[n.Oa]},"%C":function(n){return i((n.Ca+1900)/100|0,2)},"%d":function(n){return i(n.Ta,2)},"%e":function(n){return a(n.Ta,2," ")},"%g":function(n){return f(n).toString().substring(2)},"%G":function(n){return f(n)},"%H":function(n){return i(n.Za,2)},"%I":function(n){return 0==(n=n.Za)?n=12:12<n&&(n-=12),i(n,2)},"%j":function(n){return i(n.Ta+Ot(St(n.Ca+1900)?jt:Wt,n.Oa-1),3)},"%m":function(n){return i(n.Oa+1,2)},"%M":function(n){return i(n.Tb,2)},"%n":function(){return"\n"},"%p":function(n){return 0<=n.Za&&12>n.Za?"AM":"PM"},"%S":function(n){return i(n.Ub,2)},"%t":function(){return"\t"},"%u":function(n){return n.$a||7},"%U":function(n){var t=new Date(n.Ca+1900,0,1),r=0===t.getDay()?t:Rt(t,7-t.getDay());return 0>o(r,n=new Date(n.Ca+1900,n.Oa,n.Ta))?i(Math.ceil((31-r.getDate()+(Ot(St(n.getFullYear())?jt:Wt,n.getMonth()-1)-31)+n.getDate())/7),2):0===o(r,t)?"01":"00"},"%V":function(n){var t=new Date(n.Ca+1901,0,4),r=u(new Date(n.Ca+1900,0,4));t=u(t);var e=Rt(new Date(n.Ca+1900,0,1),n.ab);return 0>o(e,r)?"53":0>=o(t,e)?"01":i(Math.ceil((r.getFullYear()<n.Ca+1900?n.ab+32-r.getDate():n.ab+1-r.getDate())/7),2)},"%w":function(n){return n.$a},"%W":function(n){var t=new Date(n.Ca,0,1),r=1===t.getDay()?t:Rt(t,0===t.getDay()?1:7-t.getDay()+1);return 0>o(r,n=new Date(n.Ca+1900,n.Oa,n.Ta))?i(Math.ceil((31-r.getDate()+(Ot(St(n.getFullYear())?jt:Wt,n.getMonth()-1)-31)+n.getDate())/7),2):0===o(r,t)?"01":"00"},"%y":function(n){return(n.Ca+1900).toString().substring(2)},"%Y":function(n){return n.Ca+1900},"%z":function(n){var t=0<=(n=n.Sb);return n=Math.abs(n)/60,(t?"+":"-")+String("0000"+(n/60*100+n%60)).slice(-4)},"%Z":function(n){return n.Vb},"%%":function(){return"%"}})0<=r.indexOf(s)&&(r=r.replace(new RegExp(s,"g"),c[s](e)));return(s=Yt(r,!1)).length>t?0:(x.set(s,n),s.length-1)}(n,t,r,e)},F:function(n){var t=Date.now()/1e3|0;return n&&(E[n>>2]=t),t},D:function(n){return 0!==n&&Jt(n,0,16),0}};!function(){function n(n){t.asm=n.exports,p=t.asm.ba,I(),U=t.asm.ca,G--,t.monitorRunDependencies&&t.monitorRunDependencies(G),0==G&&L&&(n=L,L=null,n())}function r(t){n(t.instance)}function a(n){return(h||"function"!=typeof fetch?Promise.resolve().then((function(){return q()})):fetch(X,{credentials:"same-origin"}).then((function(n){if(!n.ok)throw"failed to load wasm binary file at '"+X+"'";return n.arrayBuffer()})).catch((function(){return q()}))).then((function(n){return WebAssembly.instantiate(n,i)})).then(n,(function(n){l("failed to asynchronously prepare wasm: "+n),J(n)}))}var i={a:Bt};if(G++,t.monitorRunDependencies&&t.monitorRunDependencies(G),t.instantiateWasm)try{return t.instantiateWasm(i,n)}catch(n){return l("Module.instantiateWasm callback failed with error: "+n),!1}(h||"function"!=typeof WebAssembly.instantiateStreaming||K()||"function"!=typeof fetch?a(r):fetch(X,{credentials:"same-origin"}).then((function(n){return WebAssembly.instantiateStreaming(n,i).then(r,(function(n){return l("wasm streaming compile failed: "+n),l("falling back to ArrayBuffer instantiation"),a(r)}))}))).catch(e)}();var Nt=t.___wasm_call_ctors=function(){return(Nt=t.___wasm_call_ctors=t.asm.da).apply(null,arguments)},Vt=t._malloc=function(){return(Vt=t._malloc=t.asm.ea).apply(null,arguments)},Gt=t._free=function(){return(Gt=t._free=t.asm.fa).apply(null,arguments)},Lt=t.___errno_location=function(){return(Lt=t.___errno_location=t.asm.ga).apply(null,arguments)},Jt=t._memset=function(){return(Jt=t._memset=t.asm.ha).apply(null,arguments)},Kt=t.___getTypeName=function(){return(Kt=t.___getTypeName=t.asm.ia).apply(null,arguments)};t.___embind_register_native_and_builtin_types=function(){return(t.___embind_register_native_and_builtin_types=t.asm.ja).apply(null,arguments)};var Xt,$t=t.stackSave=function(){return($t=t.stackSave=t.asm.ka).apply(null,arguments)},qt=t.stackRestore=function(){return(qt=t.stackRestore=t.asm.la).apply(null,arguments)},Qt=t._setThrew=function(){return(Qt=t._setThrew=t.asm.ma).apply(null,arguments)},Zt=t._memalign=function(){return(Zt=t._memalign=t.asm.na).apply(null,arguments)};function nr(n){this.name="ExitStatus",this.message="Program terminated with exit("+n+")",this.status=n}function tr(){function n(){if(!Xt&&(Xt=!0,t.calledRun=!0,!w)){if(t.noFSInit||Wn||(Wn=!0,Kn(),t.stdin=t.stdin,t.stdout=t.stdout,t.stderr=t.stderr,t.stdin?Xn("stdin",t.stdin):Bn("/dev/tty","/dev/stdin"),t.stdout?Xn("stdout",null,t.stdout):Bn("/dev/tty","/dev/stdout"),t.stderr?Xn("stderr",null,t.stderr):Bn("/dev/tty1","/dev/stderr"),Vn("/dev/stdin",0),Vn("/dev/stdout",1),Vn("/dev/stderr",1)),rn(Y),An=!1,rn(B),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var n=t.postRun.shift();N.unshift(n)}rn(N)}}if(!(0<G)){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)V();rn(H),0<G||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),n()}),1)):n())}}if(t.dynCall_viijii=function(){return(t.dynCall_viijii=t.asm.oa).apply(null,arguments)},t.dynCall_iiij=function(){return(t.dynCall_iiij=t.asm.pa).apply(null,arguments)},t.dynCall_viij=function(){return(t.dynCall_viij=t.asm.qa).apply(null,arguments)},t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.ra).apply(null,arguments)},t.dynCall_iiiiij=function(){return(t.dynCall_iiiiij=t.asm.sa).apply(null,arguments)},t.dynCall_iiiiijj=function(){return(t.dynCall_iiiiijj=t.asm.ta).apply(null,arguments)},t.dynCall_iiiiiijj=function(){return(t.dynCall_iiiiiijj=t.asm.ua).apply(null,arguments)},L=function n(){Xt||tr(),Xt||(L=n)},t.run=tr,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return d=!0,tr(),n.ready};let t,r,e;function a(t){const{id:a,src:i,options:o}=t.data;return async function(){return void 0===e&&(e=await r.then(n)),e}().then((n=>{const t=function(n,t,r){for(const{path:t,data:e}of r.files)n.vizCreateFile(t,e);n.vizSetY_invert(r.yInvert?1:0),n.vizSetNop(r.nop||0);const e=n.vizRenderFromString(t,r.format,r.engine),a=n.vizLastErrorMessage();if(""!==a)throw new Error(a);return e}(n,i,o);postMessage({id:a,result:t})})).catch((n=>{const t=n instanceof Error?{message:n.message,fileName:n.fileName,lineNumber:n.lineNumber}:{message:n.toString()};postMessage({id:a,error:t})}))}r=Promise.resolve({}),t=n=>r=Promise.resolve(n),addEventListener("message",a);var i=t;export default i;export{a as onmessage};
var n=function(n){var t,r,e;n=n||{},t||(t=void 0!==n?n:{}),t.ready=new Promise((function(n,t){r=n,e=t}));var a,i={};for(a in t)t.hasOwnProperty(a)&&(i[a]=t[a]);var o="./this.program";function u(n,t){throw t}var f,c="";c=0!==(c=self.location.href).indexOf("blob:")?c.substr(0,c.lastIndexOf("/")+1):"",f=function(n){var t=new XMLHttpRequest;return t.open("GET",n,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)};var s=t.print||console.log.bind(console),l=t.printErr||console.warn.bind(console);for(a in i)i.hasOwnProperty(a)&&(t[a]=i[a]);i=null,t.thisProgram&&(o=t.thisProgram),t.quit&&(u=t.quit);var h,d=0;t.wasmBinary&&(h=t.wasmBinary);var v=t.noExitRuntime||!0;"object"!=typeof WebAssembly&&L("no native wasm support detected");var p,w,y,m,g,b,A,D,_,x,k=!1,E=new TextDecoder("utf8");function F(n){for(var t=0;n[t]&&!(NaN<=t);)++t;return E.decode(n.subarray?n.subarray(0,t):new Uint8Array(n.slice(0,t)))}function C(n,t){if(!n)return"";t=n+t;for(var r=n;!(r>=t)&&m[r];)++r;return E.decode(m.subarray(n,r))}function T(n,t,r,e){if(!(0<e))return 0;var a=r;e=r+e-1;for(var i=0;i<n.length;++i){var o=n.charCodeAt(i);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&n.charCodeAt(++i)),127>=o){if(r>=e)break;t[r++]=o}else{if(2047>=o){if(r+1>=e)break;t[r++]=192|o>>6}else{if(65535>=o){if(r+2>=e)break;t[r++]=224|o>>12}else{if(r+3>=e)break;t[r++]=240|o>>18,t[r++]=128|o>>12&63}t[r++]=128|o>>6&63}t[r++]=128|63&o}}return t[r]=0,r-a}function M(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&(e=65536+((1023&e)<<10)|1023&n.charCodeAt(++r)),127>=e?++t:t=2047>=e?t+2:65535>=e?t+3:t+4}return t}function P(n,t){var r=n>>1;for(t=r+t/2;!(r>=t)&&b[r];)++r;return(!1).decode(m.subarray(n,r<<1))}function S(n,t,r){if(void 0===r&&(r=2147483647),2>r)return 0;var e=t;r=(r-=2)<2*n.length?r/2:n.length;for(var a=0;a<r;++a)g[t>>1]=n.charCodeAt(a),t+=2;return g[t>>1]=0,t-e}function O(n){return 2*n.length}function j(n,t){for(var r=0,e="";!(r>=t/4);){var a=A[n+4*r>>2];if(0==a)break;++r,65536<=a?(a-=65536,e+=String.fromCharCode(55296|a>>10,56320|1023&a)):e+=String.fromCharCode(a)}return e}function W(n,t,r){if(void 0===r&&(r=2147483647),4>r)return 0;var e=t;r=e+r-4;for(var a=0;a<n.length;++a){var i=n.charCodeAt(a);if(55296<=i&&57343>=i&&(i=65536+((1023&i)<<10)|1023&n.charCodeAt(++a)),A[t>>2]=i,(t+=4)+4>r)break}return A[t>>2]=0,t-e}function z(n){for(var t=0,r=0;r<n.length;++r){var e=n.charCodeAt(r);55296<=e&&57343>=e&&++r,t+=4}return t}function R(){var n=p.buffer;w=n,t.HEAP8=y=new Int8Array(n),t.HEAP16=g=new Int16Array(n),t.HEAP32=A=new Int32Array(n),t.HEAPU8=m=new Uint8Array(n),t.HEAPU16=b=new Uint16Array(n),t.HEAPU32=D=new Uint32Array(n),t.HEAPF32=_=new Float32Array(n),t.HEAPF64=x=new Float64Array(n)}var U,I=[],H=[],Y=[],B=[];function N(){var n=t.preRun.shift();I.unshift(n)}H.push({zb:function(){Bt()}});var V=0,G=null;function L(n){throw t.onAbort&&t.onAbort(n),l(n),k=!0,n=new WebAssembly.RuntimeError("abort("+n+"). Build with -s ASSERTIONS=1 for more info."),e(n),n}function J(){var n=K;return String.prototype.startsWith?n.startsWith("data:application/octet-stream;base64,"):0===n.indexOf("data:application/octet-stream;base64,")}t.preloadedImages={},t.preloadedAudios={};var K="render.wasm";if(!J()){var X=K;K=t.locateFile?t.locateFile(X,c):c+X}function $(){var n=K;try{if(n==K&&h)return new Uint8Array(h);if(f)return f(n);throw"both async and sync fetching of the wasm failed"}catch(n){L(n)}}var q,Q,Z,nn={1025:function(n,t){n=C(n),t=C(t);var r="/";r="string"==typeof r?r:kn(r);for(var e=on(n).split("/").reverse();e.length;){var a=e.pop();if(a){r=an(r+"/"+a);try{In(r)}catch(n){}}}n=function(){return an(Array.prototype.slice.call(arguments,0).join("/"))}("/",n);var i=i||{};if(i.flags=i.flags||577,n=Nn(n,i.flags,i.mode),"string"==typeof t)Ln(n,e=new Uint8Array(M(t)+1),0,t=T(t,e,0,e.length),i.wb);else{if(!ArrayBuffer.isView(t))throw Error("Unsupported data type");Ln(n,t,0,t.byteLength,i.wb)}Vn(n)}};function tn(n){for(;0<n.length;){var r=n.shift();if("function"==typeof r)r(t);else{var e=r.zb;"number"==typeof e?void 0===r.eb?U.get(e)():U.get(e)(r.eb):e(void 0===r.eb?null:r.eb)}}}function rn(n){this.La=n-16,this.Rb=function(n){A[this.La+8>>2]=n},this.Ob=function(n){A[this.La+0>>2]=n},this.Pb=function(){A[this.La+4>>2]=0},this.Nb=function(){y[this.La+12>>0]=0},this.Qb=function(){y[this.La+13>>0]=0},this.Cb=function(n,t){this.Rb(n),this.Ob(t),this.Pb(),this.Nb(),this.Qb()}}function en(n,t){for(var r=0,e=n.length-1;0<=e;e--){var a=n[e];"."===a?n.splice(e,1):".."===a?(n.splice(e,1),r++):r&&(n.splice(e,1),r--)}if(t)for(;r;r--)n.unshift("..");return n}function an(n){var t="/"===n.charAt(0),r="/"===n.substr(-1);return(n=en(n.split("/").filter((function(n){return!!n})),!t).join("/"))||t||(n="."),n&&r&&(n+="/"),(t?"/":"")+n}function on(n){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(n).slice(1);return n=t[0],t=t[1],n||t?(t&&(t=t.substr(0,t.length-1)),n+t):"."}function un(n){if("/"===n)return"/";var t=(n=(n=an(n)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?n:n.substr(t+1)}function fn(){for(var n="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";n=t+"/"+n,t="/"===t.charAt(0)}return(t?"/":"")+(n=en(n.split("/").filter((function(n){return!!n})),!t).join("/"))||"."}Z=function(){return performance.now()};var cn=[];function sn(n,t){cn[n]={input:[],Ba:[],Na:t},zn(n,ln)}var ln={open:function(n){var t=cn[n.node.Ra];if(!t)throw new Dn(43);n.ya=t,n.seekable=!1},close:function(n){n.ya.Na.flush(n.ya)},flush:function(n){n.ya.Na.flush(n.ya)},read:function(n,t,r,e){if(!n.ya||!n.ya.Na.nb)throw new Dn(60);for(var a=0,i=0;i<e;i++){try{var o=n.ya.Na.nb(n.ya)}catch(n){throw new Dn(29)}if(void 0===o&&0===a)throw new Dn(6);if(null==o)break;a++,t[r+i]=o}return a&&(n.node.timestamp=Date.now()),a},write:function(n,t,r,e){if(!n.ya||!n.ya.Na.hb)throw new Dn(60);try{for(var a=0;a<e;a++)n.ya.Na.hb(n.ya,t[r+a])}catch(n){throw new Dn(29)}return e&&(n.node.timestamp=Date.now()),a}},hn={nb:function(n){if(!n.input.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n"),!t)return null;n.input=Ht(t,!0)}return n.input.shift()},hb:function(n,t){null===t||10===t?(s(F(n.Ba)),n.Ba=[]):0!=t&&n.Ba.push(t)},flush:function(n){n.Ba&&0<n.Ba.length&&(s(F(n.Ba)),n.Ba=[])}},dn={hb:function(n,t){null===t||10===t?(l(F(n.Ba)),n.Ba=[]):0!=t&&n.Ba.push(t)},flush:function(n){n.Ba&&0<n.Ba.length&&(l(F(n.Ba)),n.Ba=[])}},vn={Fa:null,Ia:function(){return vn.createNode(null,"/",16895,0)},createNode:function(n,t,r,e){if(24576==(61440&r)||4096==(61440&r))throw new Dn(63);return vn.Fa||(vn.Fa={dir:{node:{Ea:vn.va.Ea,Ha:vn.va.Ha,Pa:vn.va.Pa,Va:vn.va.Va,qb:vn.va.qb,bb:vn.va.bb,rb:vn.va.rb,pb:vn.va.pb,Ya:vn.va.Ya},stream:{Ka:vn.wa.Ka}},file:{node:{Ea:vn.va.Ea,Ha:vn.va.Ha},stream:{Ka:vn.wa.Ka,read:vn.wa.read,write:vn.wa.write,jb:vn.wa.jb,Wa:vn.wa.Wa,Xa:vn.wa.Xa}},link:{node:{Ea:vn.va.Ea,Ha:vn.va.Ha,Sa:vn.va.Sa},stream:{}},kb:{node:{Ea:vn.va.Ea,Ha:vn.va.Ha},stream:Wn}}),16384==(61440&(r=Cn(n,t,r,e)).mode)?(r.va=vn.Fa.dir.node,r.wa=vn.Fa.dir.stream,r.xa={}):32768==(61440&r.mode)?(r.va=vn.Fa.file.node,r.wa=vn.Fa.file.stream,r.za=0,r.xa=null):40960==(61440&r.mode)?(r.va=vn.Fa.link.node,r.wa=vn.Fa.link.stream):8192==(61440&r.mode)&&(r.va=vn.Fa.kb.node,r.wa=vn.Fa.kb.stream),r.timestamp=Date.now(),n&&(n.xa[t]=r,n.timestamp=r.timestamp),r},Xb:function(n){return n.xa?n.xa.subarray?n.xa.subarray(0,n.za):new Uint8Array(n.xa):new Uint8Array(0)},lb:function(n,t){var r=n.xa?n.xa.length:0;r>=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=n.xa,n.xa=new Uint8Array(t),0<n.za&&n.xa.set(r.subarray(0,n.za),0))},Lb:function(n,t){if(n.za!=t)if(0==t)n.xa=null,n.za=0;else{var r=n.xa;n.xa=new Uint8Array(t),r&&n.xa.set(r.subarray(0,Math.min(t,n.za))),n.za=t}},va:{Ea:function(n){var t={};return t.yb=8192==(61440&n.mode)?n.id:1,t.gb=n.id,t.mode=n.mode,t.Ib=1,t.uid=0,t.Ab=0,t.Ra=n.Ra,16384==(61440&n.mode)?t.size=4096:32768==(61440&n.mode)?t.size=n.za:40960==(61440&n.mode)?t.size=n.link.length:t.size=0,t.tb=new Date(n.timestamp),t.Hb=new Date(n.timestamp),t.xb=new Date(n.timestamp),t.ub=4096,t.vb=Math.ceil(t.size/t.ub),t},Ha:function(n,t){void 0!==t.mode&&(n.mode=t.mode),void 0!==t.timestamp&&(n.timestamp=t.timestamp),void 0!==t.size&&vn.Lb(n,t.size)},Pa:function(){throw _n[44]},Va:function(n,t,r,e){return vn.createNode(n,t,r,e)},qb:function(n,t,r){if(16384==(61440&n.mode)){try{var e=Fn(t,r)}catch(n){}if(e)for(var a in e.xa)throw new Dn(55)}delete n.parent.xa[n.name],n.parent.timestamp=Date.now(),n.name=r,t.xa[r]=n,t.timestamp=n.parent.timestamp,n.parent=t},bb:function(n,t){delete n.xa[t],n.timestamp=Date.now()},rb:function(n,t){var r,e=Fn(n,t);for(r in e.xa)throw new Dn(55);delete n.xa[t],n.timestamp=Date.now()},pb:function(n){var t,r=[".",".."];for(t in n.xa)n.xa.hasOwnProperty(t)&&r.push(t);return r},Ya:function(n,t,r){return(n=vn.createNode(n,t,41471,0)).link=r,n},Sa:function(n){if(40960!=(61440&n.mode))throw new Dn(28);return n.link}},wa:{read:function(n,t,r,e,a){var i=n.node.xa;if(a>=n.node.za)return 0;if(8<(n=Math.min(n.node.za-a,e))&&i.subarray)t.set(i.subarray(a,a+n),r);else for(e=0;e<n;e++)t[r+e]=i[a+e];return n},write:function(n,t,r,e,a,i){if(t.buffer===y.buffer&&(i=!1),!e)return 0;if((n=n.node).timestamp=Date.now(),t.subarray&&(!n.xa||n.xa.subarray)){if(i)return n.xa=t.subarray(r,r+e),n.za=e;if(0===n.za&&0===a)return n.xa=t.slice(r,r+e),n.za=e;if(a+e<=n.za)return n.xa.set(t.subarray(r,r+e),a),e}if(vn.lb(n,a+e),n.xa.subarray&&t.subarray)n.xa.set(t.subarray(r,r+e),a);else for(i=0;i<e;i++)n.xa[a+i]=t[r+i];return n.za=Math.max(n.za,a+e),e},Ka:function(n,t,r){if(1===r?t+=n.position:2===r&&32768==(61440&n.node.mode)&&(t+=n.node.za),0>t)throw new Dn(28);return t},jb:function(n,t,r){vn.lb(n.node,t+r),n.node.za=Math.max(n.node.za,t+r)},Wa:function(n,t,r,e,a,i){if(0!==t)throw new Dn(28);if(32768!=(61440&n.node.mode))throw new Dn(43);if(n=n.node.xa,2&i||n.buffer!==w){for((0<e||e+r<n.length)&&(n=n.subarray?n.subarray(e,e+r):Array.prototype.slice.call(n,e,e+r)),e=!0,i=16384*Math.ceil(r/16384),t=Nt(i);r<i;)y[t+r++]=0;if(!(r=t))throw new Dn(48);y.set(n,r)}else e=!1,r=n.byteOffset;return{La:r,cb:e}},Xa:function(n,t,r,e,a){if(32768!=(61440&n.node.mode))throw new Dn(43);return 2&a||vn.wa.write(n,t,0,e,r,!1),0}}},pn=null,wn={},yn=[],mn=1,gn=null,bn=!0,An={},Dn=null,_n={};function xn(n,t){if(t=t||{},!(n=fn("/",n)))return{path:"",node:null};var r,e={mb:!0,ib:0};for(r in e)void 0===t[r]&&(t[r]=e[r]);if(8<t.ib)throw new Dn(32);n=en(n.split("/").filter((function(n){return!!n})),!1);var a=pn;for(e="/",r=0;r<n.length;r++){var i=r===n.length-1;if(i&&t.parent)break;if(a=Fn(a,n[r]),e=an(e+"/"+n[r]),a.Qa&&(!i||i&&t.mb)&&(a=a.Qa.root),!i||t.Ua)for(i=0;40960==(61440&a.mode);)if(a=Bn(e),a=xn(e=fn(on(e),a),{ib:t.ib}).node,40<i++)throw new Dn(32)}return{path:e,node:a}}function kn(n){for(var t;;){if(n===n.parent)return n=n.Ia.ob,t?"/"!==n[n.length-1]?n+"/"+t:n+t:n;t=t?n.name+"/"+t:n.name,n=n.parent}}function En(n,t){for(var r=0,e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return(n+r>>>0)%gn.length}function Fn(n,t){var r;if(r=(r=Pn(n,"x"))?r:n.va.Pa?0:2)throw new Dn(r,n);for(r=gn[En(n.id,t)];r;r=r.Ma){var e=r.name;if(r.parent.id===n.id&&e===t)return r}return n.va.Pa(n,t)}function Cn(n,t,r,e){return t=En((n=new Rt(n,t,r,e)).parent.id,n.name),n.Ma=gn[t],gn[t]=n}var Tn={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090};function Mn(n){var t=["r","w","rw"][3&n];return 512&n&&(t+="w"),t}function Pn(n,t){return bn||(-1===t.indexOf("r")||292&n.mode)&&(-1===t.indexOf("w")||146&n.mode)&&(-1===t.indexOf("x")||73&n.mode)?0:2}function Sn(n,t){try{return Fn(n,t),20}catch(n){}return Pn(n,"wx")}function On(n,t){$n||(($n=function(){}).prototype={});var r,e=new $n;for(r in n)e[r]=n[r];return n=e,t=function(n){for(n=n||0;n<=4096;n++)if(!yn[n])return n;throw new Dn(33)}(t),n.Da=t,yn[t]=n}var jn,Wn={open:function(n){n.wa=wn[n.node.Ra].wa,n.wa.open&&n.wa.open(n)},Ka:function(){throw new Dn(70)}};function zn(n,t){wn[n]={wa:t}}function Rn(n,t){var r="/"===t,e=!t;if(r&&pn)throw new Dn(10);if(!r&&!e){var a=xn(t,{mb:!1});if(t=a.path,(a=a.node).Qa)throw new Dn(10);if(16384!=(61440&a.mode))throw new Dn(54)}t={type:n,$b:{},ob:t,Gb:[]},(n=n.Ia(t)).Ia=t,t.root=n,r?pn=n:a&&(a.Qa=t,a.Ia&&a.Ia.Gb.push(t))}function Un(n,t,r){var e=xn(n,{parent:!0}).node;if(!(n=un(n))||"."===n||".."===n)throw new Dn(28);var a=Sn(e,n);if(a)throw new Dn(a);if(!e.va.Va)throw new Dn(63);return e.va.Va(e,n,t,r)}function In(n){return Un(n,16895,0)}function Hn(n,t,r){void 0===r&&(r=t,t=438),Un(n,8192|t,r)}function Yn(n,t){if(!fn(n))throw new Dn(44);var r=xn(t,{parent:!0}).node;if(!r)throw new Dn(44);var e=Sn(r,t=un(t));if(e)throw new Dn(e);if(!r.va.Ya)throw new Dn(63);r.va.Ya(r,t,n)}function Bn(n){if(!(n=xn(n).node))throw new Dn(44);if(!n.va.Sa)throw new Dn(28);return fn(kn(n.parent),n.va.Sa(n))}function Nn(n,r,e,a){if(""===n)throw new Dn(44);if("string"==typeof r){var i=Tn[r];if(void 0===i)throw Error("Unknown file open mode: "+r);r=i}if(e=64&r?4095&(void 0===e?438:e)|32768:0,"object"==typeof n)var o=n;else{n=an(n);try{o=xn(n,{Ua:!(131072&r)}).node}catch(n){}}if(i=!1,64&r)if(o){if(128&r)throw new Dn(20)}else o=Un(n,e,0),i=!0;if(!o)throw new Dn(44);if(8192==(61440&o.mode)&&(r&=-513),65536&r&&16384!=(61440&o.mode))throw new Dn(54);if(!i&&(e=o?40960==(61440&o.mode)?32:16384==(61440&o.mode)&&("r"!==Mn(r)||512&r)?31:Pn(o,Mn(r)):44))throw new Dn(e);if(512&r){var u;if(!(u="string"==typeof(e=o)?xn(e,{Ua:!0}).node:e).va.Ha)throw new Dn(63);if(16384==(61440&u.mode))throw new Dn(31);if(32768!=(61440&u.mode))throw new Dn(28);if(e=Pn(u,"w"))throw new Dn(e);u.va.Ha(u,{size:0,timestamp:Date.now()})}r&=-131713,(a=On({node:o,path:kn(o),flags:r,seekable:!0,position:0,wa:o.wa,Wb:[],error:!1},a)).wa.open&&a.wa.open(a),!t.logReadFiles||1&r||(qn||(qn={}),n in qn||(qn[n]=1,l("FS.trackingDelegate error on read file: "+n)));try{An.onOpenFile&&(o=0,1!=(2097155&r)&&(o|=1),0!=(2097155&r)&&(o|=2),An.onOpenFile(n,o))}catch(t){l("FS.trackingDelegate['onOpenFile']('"+n+"', flags) threw an exception: "+t.message)}return a}function Vn(n){if(null===n.Da)throw new Dn(8);n.fb&&(n.fb=null);try{n.wa.close&&n.wa.close(n)}catch(n){throw n}finally{yn[n.Da]=null}n.Da=null}function Gn(n,t,r){if(null===n.Da)throw new Dn(8);if(!n.seekable||!n.wa.Ka)throw new Dn(70);if(0!=r&&1!=r&&2!=r)throw new Dn(28);n.position=n.wa.Ka(n,t,r),n.Wb=[]}function Ln(n,t,r,e,a){var i=void 0;if(0>e||0>i)throw new Dn(28);if(null===n.Da)throw new Dn(8);if(0==(2097155&n.flags))throw new Dn(8);if(16384==(61440&n.node.mode))throw new Dn(31);if(!n.wa.write)throw new Dn(28);n.seekable&&1024&n.flags&&Gn(n,0,2);var o=void 0!==i;if(o){if(!n.seekable)throw new Dn(70)}else i=n.position;t=n.wa.write(n,t,r,e,i,a),o||(n.position+=t);try{n.path&&An.onWriteToFile&&An.onWriteToFile(n.path)}catch(t){l("FS.trackingDelegate['onWriteToFile']('"+n.path+"') threw an exception: "+t.message)}return t}function Jn(){Dn||((Dn=function(n,t){this.node=t,this.Mb=function(n){this.Aa=n},this.Mb(n),this.message="FS error"}).prototype=Error(),Dn.prototype.constructor=Dn,[44].forEach((function(n){_n[n]=new Dn(n),_n[n].stack="<generic error, no stack>"})))}function Kn(n,t,r){n=an("/dev/"+n);var e=function(n,t){var r=0;return n&&(r|=365),t&&(r|=146),r}(!!t,!!r);Xn||(Xn=64);var a=Xn++<<8|0;zn(a,{open:function(n){n.seekable=!1},close:function(){r&&r.buffer&&r.buffer.length&&r(10)},read:function(n,r,e,a){for(var i=0,o=0;o<a;o++){try{var u=t()}catch(n){throw new Dn(29)}if(void 0===u&&0===i)throw new Dn(6);if(null==u)break;i++,r[e+o]=u}return i&&(n.node.timestamp=Date.now()),i},write:function(n,t,e,a){for(var i=0;i<a;i++)try{r(t[e+i])}catch(n){throw new Dn(29)}return a&&(n.node.timestamp=Date.now()),i}}),Hn(n,e,a)}var Xn,$n,qn,Qn={},Zn={};function nt(n,t){try{var r=xn(n,{Ua:!0}).node;if(!r)throw new Dn(44);if(!r.va.Ea)throw new Dn(63);var e=r.va.Ea(r)}catch(t){if(t&&t.node&&an(n)!==an(kn(t.node)))return-54;throw t}return A[t>>2]=e.yb,A[t+4>>2]=0,A[t+8>>2]=e.gb,A[t+12>>2]=e.mode,A[t+16>>2]=e.Ib,A[t+20>>2]=e.uid,A[t+24>>2]=e.Ab,A[t+28>>2]=e.Ra,A[t+32>>2]=0,Q=[e.size>>>0,(q=e.size,1<=+Math.abs(q)?0<q?(0|Math.min(+Math.floor(q/4294967296),4294967295))>>>0:~~+Math.ceil((q-+(~~q>>>0))/4294967296)>>>0:0)],A[t+40>>2]=Q[0],A[t+44>>2]=Q[1],A[t+48>>2]=4096,A[t+52>>2]=e.vb,A[t+56>>2]=e.tb.getTime()/1e3|0,A[t+60>>2]=0,A[t+64>>2]=e.Hb.getTime()/1e3|0,A[t+68>>2]=0,A[t+72>>2]=e.xb.getTime()/1e3|0,A[t+76>>2]=0,Q=[e.gb>>>0,(q=e.gb,1<=+Math.abs(q)?0<q?(0|Math.min(+Math.floor(q/4294967296),4294967295))>>>0:~~+Math.ceil((q-+(~~q>>>0))/4294967296)>>>0:0)],A[t+80>>2]=Q[0],A[t+84>>2]=Q[1],0}var tt=void 0;function rt(){return A[(tt+=4)-4>>2]}function et(n){if(!(n=yn[n]))throw new Dn(8);return n}function at(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+n)}}var it=void 0;function ot(n){for(var t="";m[n];)t+=it[m[n++]];return t}var ut={},ft={},ct={};function st(n){if(void 0===n)return"_unknown";var t=(n=n.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?"_"+n:n}function lt(n,t){return n=st(n),new Function("body","return function "+n+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function ht(n){var t=Error,r=lt(n,(function(t){this.name=n,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var dt=void 0;function vt(n){throw new dt(n)}var pt=void 0;function wt(n,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var e=t.name;if(n||vt('type "'+e+'" must have a positive integer typeid pointer'),ft.hasOwnProperty(n)){if(r.Bb)return;vt("Cannot register type '"+e+"' twice")}ft[n]=t,delete ct[n],ut.hasOwnProperty(n)&&(t=ut[n],delete ut[n],t.forEach((function(n){n()})))}var yt=[],mt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function gt(n){return this.fromWireType(D[n>>2])}function bt(n){if(null===n)return"null";var t=typeof n;return"object"===t||"array"===t||"function"===t?n.toString():""+n}function At(n,t){switch(t){case 2:return function(n){return this.fromWireType(_[n>>2])};case 3:return function(n){return this.fromWireType(x[n>>3])};default:throw new TypeError("Unknown float type: "+n)}}function Dt(n){for(;n.length;){var t=n.pop();n.pop()(t)}}function _t(n,r,e){t.hasOwnProperty(n)?((void 0===e||void 0!==t[n].Ga&&void 0!==t[n].Ga[e])&&vt("Cannot register public name '"+n+"' twice"),function(n,r){var e=t;if(void 0===e[n].Ga){var a=e[n];e[n]=function(){return e[n].Ga.hasOwnProperty(arguments.length)||vt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[n].Ga+")!"),e[n].Ga[arguments.length].apply(this,arguments)},e[n].Ga=[],e[n].Ga[a.sb]=a}}(n,n),t.hasOwnProperty(e)&&vt("Cannot register multiple overloads of a function with the same number of arguments ("+e+")!"),t[n].Ga[e]=r):(t[n]=r,void 0!==e&&(t[n].Zb=e))}function xt(n,r){var e=-1!=(n=ot(n)).indexOf("j")?function(n,r){var e=[];return function(){e.length=arguments.length;for(var a=0;a<arguments.length;a++)e[a]=arguments[a];return-1!=n.indexOf("j")?(a=t["dynCall_"+n],a=e&&e.length?a.apply(null,[r].concat(e)):a.call(null,r)):a=U.get(r).apply(null,e),a}}(n,r):U.get(r);return"function"!=typeof e&&vt("unknown function pointer with signature "+n+": "+r),e}var kt=void 0;function Et(n){var t=ot(n=Jt(n));return Vt(n),t}function Ft(n,t,r){switch(t){case 0:return r?function(n){return y[n]}:function(n){return m[n]};case 1:return r?function(n){return g[n>>1]}:function(n){return b[n>>1]};case 2:return r?function(n){return A[n>>2]}:function(n){return D[n>>2]};default:throw new TypeError("Unknown integer type: "+n)}}var Ct,Tt={};function Mt(){if(!Ct){var n,t={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",_:o||"./this.program"};for(n in Tt)t[n]=Tt[n];var r=[];for(n in t)r.push(n+"="+t[n]);Ct=r}return Ct}function Pt(n){return 0==n%4&&(0!=n%100||0==n%400)}function St(n,t){for(var r=0,e=0;e<=t;r+=n[e++]);return r}var Ot=[31,29,31,30,31,30,31,31,30,31,30,31],jt=[31,28,31,30,31,30,31,31,30,31,30,31];function Wt(n,t){for(n=new Date(n.getTime());0<t;){var r=n.getMonth(),e=(Pt(n.getFullYear())?Ot:jt)[r];if(!(t>e-n.getDate())){n.setDate(n.getDate()+t);break}t-=e-n.getDate()+1,n.setDate(1),11>r?n.setMonth(r+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n}var zt=[];function Rt(n,t,r,e){n||(n=this),this.parent=n,this.Ia=n.Ia,this.Qa=null,this.id=mn++,this.name=t,this.mode=r,this.va={},this.wa={},this.Ra=e}Object.defineProperties(Rt.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(n){n?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(n){n?this.mode|=146:this.mode&=-147}}}),Jn(),gn=Array(4096),Rn(vn,"/"),In("/tmp"),In("/home"),In("/home/web_user"),function(){In("/dev"),zn(259,{read:function(){return 0},write:function(n,t,r,e){return e}}),Hn("/dev/null",259),sn(1280,hn),sn(1536,dn),Hn("/dev/tty",1280),Hn("/dev/tty1",1536);var n=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var n=new Uint8Array(1);return function(){return crypto.getRandomValues(n),n[0]}}return function(){L("randomDevice")}}();Kn("random",n),Kn("urandom",n),In("/dev/shm"),In("/dev/shm/tmp")}(),function(){In("/proc");var n=In("/proc/self");In("/proc/self/fd"),Rn({Ia:function(){var t=Cn(n,"fd",16895,73);return t.va={Pa:function(n,t){var r=yn[+t];if(!r)throw new Dn(8);return(n={parent:null,Ia:{ob:"fake"},va:{Sa:function(){return r.path}}}).parent=n}},t}},"/proc/self/fd")}();for(var Ut=Array(256),It=0;256>It;++It)Ut[It]=String.fromCharCode(It);function Ht(n,t){var r=Array(M(n)+1);return n=T(n,r,0,r.length),t&&(r.length=n),r}it=Ut,dt=t.BindingError=ht("BindingError"),pt=t.InternalError=ht("InternalError"),t.count_emval_handles=function(){for(var n=0,t=5;t<mt.length;++t)void 0!==mt[t]&&++n;return n},t.get_first_emval=function(){for(var n=5;n<mt.length;++n)if(void 0!==mt[n])return mt[n];return null},kt=t.UnboundTypeError=ht("UnboundTypeError");var Yt={a:function(n,t,r,e){L("Assertion failed: "+C(n)+", at: "+[t?C(t):"unknown filename",r,e?C(e):"unknown function"])},T:function(n,t){n:{if(0===n)n=Date.now();else{if(1!==n&&4!==n){A[Gt()>>2]=28,t=-1;break n}n=Z()}A[t>>2]=n/1e3|0,A[t+4>>2]=n%1e3*1e6|0,t=0}return t},k:function(n){return Nt(n+16)+16},j:function(n,t,r){throw new rn(n).Cb(t,r),n},U:function(n,t){try{var r;if(n=C(n),-8&t)var e=-28;else(r=xn(n,{Ua:!0}).node)?(n="",4&t&&(n+="r"),2&t&&(n+="w"),1&t&&(n+="x"),e=n&&Pn(r,n)?-2:0):e=-44;return e}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),-n.Aa}},y:function(n,t,r){tt=r;try{var e=et(n);switch(t){case 0:var a=rt();return 0>a?-28:Nn(e.path,e.flags,0,a).Da;case 1:case 2:return 0;case 3:return e.flags;case 4:return a=rt(),e.flags|=a,0;case 12:return a=rt(),g[a+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return A[Gt()>>2]=28,-1;default:return-28}}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),-n.Aa}},Q:function(n,t){try{return nt(et(n).path,t)}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),-n.Aa}},s:function(){return 42},R:function(n,t,r){tt=r;try{var e=et(n);switch(t){case 21509:case 21505:return e.ya?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return e.ya?0:-59;case 21519:if(!e.ya)return-59;var a=rt();return A[a>>2]=0;case 21520:return e.ya?-28:-59;case 21531:if(n=a=rt(),!e.wa.Db)throw new Dn(59);return e.wa.Db(e,t,n);case 21523:case 21524:return e.ya?0:-59;default:L("bad ioctl syscall "+t)}}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),-n.Aa}},O:function(n,t,r,e,a,i){try{n:{i<<=12;var o=!1;if(0!=(16&e)&&0!=n%16384)var u=-28;else{if(0!=(32&e)){var f=Qt(16384,t);if(!f){u=-48;break n}Lt(f,0,t),o=!0}else{var c=yn[a];if(!c){u=-8;break n}var s=i;if(0!=(2&r)&&0==(2&e)&&2!=(2097155&c.flags))throw new Dn(2);if(1==(2097155&c.flags))throw new Dn(2);if(!c.wa.Wa)throw new Dn(43);var l=c.wa.Wa(c,n,t,s,r,e);f=l.La,o=l.cb}Zn[f]={Fb:f,Eb:t,cb:o,Da:a,Jb:r,flags:e,offset:i},u=f}}return u}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),-n.Aa}},N:function(n,t){try{if(-1==(0|n)||0===t)var r=-28;else{var e=Zn[n];if(e&&t===e.Eb){var a=yn[e.Da];a&&2&e.Jb&&a&&a.wa.Xa&&a.wa.Xa(a,m.slice(n,n+t),e.offset,t,e.flags),Zn[n]=null,e.cb&&Vt(e.Fb)}r=0}return r}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),-n.Aa}},r:function(n,t,r){tt=r;try{return Nn(C(n),t,r?rt():0).Da}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),-n.Aa}},P:function(n,t){try{return nt(n=C(n),t)}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),-n.Aa}},S:function(n){try{var t=xn(n=C(n),{parent:!0}).node,r=un(n),e=Fn(t,r);n:{try{var a=Fn(t,r)}catch(n){var i=n.Aa;break n}var o=Pn(t,"wx");i=o||(16384==(61440&a.mode)?31:0)}if(i)throw new Dn(i);if(!t.va.bb)throw new Dn(63);if(e.Qa)throw new Dn(10);try{An.willDeletePath&&An.willDeletePath(n)}catch(t){l("FS.trackingDelegate['willDeletePath']('"+n+"') threw an exception: "+t.message)}t.va.bb(t,r);var u=En(e.parent.id,e.name);if(gn[u]===e)gn[u]=e.Ma;else for(var f=gn[u];f;){if(f.Ma===e){f.Ma=e.Ma;break}f=f.Ma}try{An.onDeletePath&&An.onDeletePath(n)}catch(t){l("FS.trackingDelegate['onDeletePath']('"+n+"') threw an exception: "+t.message)}return 0}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),-n.Aa}},W:function(n,t,r,e,a){var i=at(r);wt(n,{name:t=ot(t),fromWireType:function(n){return!!n},toWireType:function(n,t){return t?e:a},argPackAdvance:8,readValueFromPointer:function(n){if(1===r)var e=y;else if(2===r)e=g;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);e=A}return this.fromWireType(e[n>>i])},Ja:null})},V:function(n,t){wt(n,{name:t=ot(t),fromWireType:function(n){var t=mt[n].value;return 4<n&&0==--mt[n].Kb&&(mt[n]=void 0,yt.push(n)),t},toWireType:function(n,t){return function(n){switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=yt.length?yt.pop():mt.length;return mt[t]={Kb:1,value:n},t}}(t)},argPackAdvance:8,readValueFromPointer:gt,Ja:null})},B:function(n,t,r){r=at(r),wt(n,{name:t=ot(t),fromWireType:function(n){return n},toWireType:function(n,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+bt(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:At(t,r),Ja:null})},p:function(n,r,e,a,i,o){var u=function(n,t){for(var r=[],e=0;e<n;e++)r.push(A[(t>>2)+e]);return r}(r,e);n=ot(n),i=xt(a,i),_t(n,(function(){!function(n,t){var r=[],e={};throw t.forEach((function n(t){e[t]||ft[t]||(ct[t]?ct[t].forEach(n):(r.push(t),e[t]=!0))})),new kt(n+": "+r.map(Et).join([", "]))}("Cannot call "+n+" due to unbound types",u)}),r-1),function(n,t){function r(n){if((n=t(n)).length!==e.length)throw new pt("Mismatched type converter count");for(var r=0;r<e.length;++r)wt(e[r],n[r])}var e=[];e.forEach((function(t){ct[t]=n}));var a=Array(n.length),i=[],o=0;n.forEach((function(n,t){ft.hasOwnProperty(n)?a[t]=ft[n]:(i.push(n),ut.hasOwnProperty(n)||(ut[n]=[]),ut[n].push((function(){a[t]=ft[n],++o===i.length&&r(a)})))})),0===i.length&&r(a)}(u,(function(e){var a=n,u=n;e=[e[0],null].concat(e.slice(1));var f=i,c=e.length;2>c&&vt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==e[1]&&!1,l=!1,h=1;h<e.length;++h)if(null!==e[h]&&void 0===e[h].Ja){l=!0;break}var d="void"!==e[0].name,v="",p="";for(h=0;h<c-2;++h)v+=(0!==h?", ":"")+"arg"+h,p+=(0!==h?", ":"")+"arg"+h+"Wired";u="return function "+st(u)+"("+v+") {\nif (arguments.length !== "+(c-2)+") {\nthrowBindingError('function "+u+" called with ' + arguments.length + ' arguments, expected "+(c-2)+" args!');\n}\n",l&&(u+="var destructors = [];\n");var w=l?"destructors":"null";for(v="throwBindingError invoker fn runDestructors retType classParam".split(" "),f=[vt,f,o,Dt,e[0],e[1]],s&&(u+="var thisWired = classParam.toWireType("+w+", this);\n"),h=0;h<c-2;++h)u+="var arg"+h+"Wired = argType"+h+".toWireType("+w+", arg"+h+"); // "+e[h+2].name+"\n",v.push("argType"+h),f.push(e[h+2]);if(s&&(p="thisWired"+(0<p.length?", ":"")+p),u+=(d?"var rv = ":"")+"invoker(fn"+(0<p.length?", ":"")+p+");\n",l)u+="runDestructors(destructors);\n";else for(h=s?1:2;h<e.length;++h)c=1===h?"thisWired":"arg"+(h-2)+"Wired",null!==e[h].Ja&&(u+=c+"_dtor("+c+"); // "+e[h].name+"\n",v.push(c+"_dtor"),f.push(e[h].Ja));if(d&&(u+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),v.push(u+"}\n"),e=function(n){var t=Function;if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=lt(t.name||"unknownFunctionName",(function(){}));return r.prototype=t.prototype,r=new r,(n=t.apply(r,n))instanceof Object?n:r}(v).apply(null,f),h=r-1,!t.hasOwnProperty(a))throw new pt("Replacing nonexistant public symbol");return void 0!==t[a].Ga&&void 0!==h?t[a].Ga[h]=e:(t[a]=e,t[a].sb=h),[]}))},h:function(n,t,r,e,a){function i(n){return n}t=ot(t),-1===a&&(a=4294967295);var o=at(r);if(0===e){var u=32-8*r;i=function(n){return n<<u>>>u}}var f=-1!=t.indexOf("unsigned");wt(n,{name:t,fromWireType:i,toWireType:function(n,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+bt(r)+'" to '+this.name);if(r<e||r>a)throw new TypeError('Passing a number "'+bt(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+e+", "+a+"]!");return f?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:Ft(t,o,0!==e),Ja:null})},g:function(n,t,r){function e(n){var t=D;return new a(w,t[1+(n>>=2)],t[n])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];wt(n,{name:r=ot(r),fromWireType:e,argPackAdvance:8,readValueFromPointer:e},{Bb:!0})},C:function(n,t){var r="std::string"===(t=ot(t));wt(n,{name:t,fromWireType:function(n){var t=D[n>>2];if(r)for(var e=n+4,a=0;a<=t;++a){var i=n+4+a;if(a==t||0==m[i]){if(e=C(e,i-e),void 0===o)var o=e;else o+=String.fromCharCode(0),o+=e;e=i+1}}else{for(o=Array(t),a=0;a<t;++a)o[a]=String.fromCharCode(m[n+4+a]);o=o.join("")}return Vt(n),o},toWireType:function(n,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e="string"==typeof t;e||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||vt("Cannot pass non-string to std::string");var a=(r&&e?function(){return M(t)}:function(){return t.length})(),i=Nt(4+a+1);if(D[i>>2]=a,r&&e)T(t,m,i+4,a+1);else if(e)for(e=0;e<a;++e){var o=t.charCodeAt(e);255<o&&(Vt(i),vt("String has UTF-16 code units that do not fit in 8 bits")),m[i+4+e]=o}else for(e=0;e<a;++e)m[i+4+e]=t[e];return null!==n&&n.push(Vt,i),i},argPackAdvance:8,readValueFromPointer:gt,Ja:function(n){Vt(n)}})},t:function(n,t,r){if(r=ot(r),2===t)var e=P,a=S,i=O,o=function(){return b},u=1;else 4===t&&(e=j,a=W,i=z,o=function(){return D},u=2);wt(n,{name:r,fromWireType:function(n){for(var r,a=D[n>>2],i=o(),f=n+4,c=0;c<=a;++c){var s=n+4+c*t;c!=a&&0!=i[s>>u]||(f=e(f,s-f),void 0===r?r=f:(r+=String.fromCharCode(0),r+=f),f=s+t)}return Vt(n),r},toWireType:function(n,e){"string"!=typeof e&&vt("Cannot pass non-string to C++ string type "+r);var o=i(e),f=Nt(4+o+t);return D[f>>2]=o>>u,a(e,f+4,o+t),null!==n&&n.push(Vt,f),f},argPackAdvance:8,readValueFromPointer:gt,Ja:function(n){Vt(n)}})},X:function(n,t){wt(n,{Yb:!0,name:t=ot(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},x:function(){L()},aa:function(n,t,r){var e;for(zt.length=0,r>>=2;e=m[t++];)(e=105>e)&&1&r&&r++,zt.push(e?x[r++>>1]:A[r]),++r;return nn[n].apply(null,zt)},d:function(n,t){throw qt(n,t||1),"longjmp"},H:function(n,t,r){m.copyWithin(n,t,t+r)},I:function(n){var t=m.length;if(2147483648<n)return!1;for(var r=1;4>=r;r*=2){var e=t*(1+.2/r);e=Math.min(e,n+100663296),0<(e=Math.max(n,e))%65536&&(e+=65536-e%65536);n:{try{p.grow(Math.min(2147483648,e)-w.byteLength+65535>>>16),R();var a=1;break n}catch(n){}a=void 0}if(a)return!0}return!1},L:function(n,t){try{var r=0;return Mt().forEach((function(e,a){var i=t+r;for(a=A[n+4*a>>2]=i,i=0;i<e.length;++i)y[a++>>0]=e.charCodeAt(i);y[a>>0]=0,r+=e.length+1})),0}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),n.Aa}},M:function(n,t){try{var r=Mt();A[n>>2]=r.length;var e=0;return r.forEach((function(n){e+=n.length+1})),A[t>>2]=e,0}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),n.Aa}},f:function(n){v||(t.onExit&&t.onExit(n),k=!0),u(n,new Zt(n))},n:function(n){try{return Vn(et(n)),0}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),n.Aa}},K:function(n,t){try{var r=et(n);return y[t>>0]=r.ya?2:16384==(61440&r.mode)?3:40960==(61440&r.mode)?7:4,0}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),n.Aa}},A:function(n,t,r,e){try{n:{for(var a=et(n),i=n=0;i<r;i++){var o=A[t+(8*i+4)>>2],u=a,f=A[t+8*i>>2],c=o,s=void 0,l=y;if(0>c||0>s)throw new Dn(28);if(null===u.Da)throw new Dn(8);if(1==(2097155&u.flags))throw new Dn(8);if(16384==(61440&u.node.mode))throw new Dn(31);if(!u.wa.read)throw new Dn(28);var h=void 0!==s;if(h){if(!u.seekable)throw new Dn(70)}else s=u.position;var d=u.wa.read(u,l,f,c,s);h||(u.position+=d);var v=d;if(0>v){var p=-1;break n}if(n+=v,v<o)break}p=n}return A[e>>2]=p,0}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),n.Aa}},G:function(n,t,r,e,a){try{var i=et(n);return-9007199254740992>=(n=4294967296*r+(t>>>0))||9007199254740992<=n?-61:(Gn(i,n,e),Q=[i.position>>>0,(q=i.position,1<=+Math.abs(q)?0<q?(0|Math.min(+Math.floor(q/4294967296),4294967295))>>>0:~~+Math.ceil((q-+(~~q>>>0))/4294967296)>>>0:0)],A[a>>2]=Q[0],A[a+4>>2]=Q[1],i.fb&&0===n&&0===e&&(i.fb=null),0)}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),n.Aa}},z:function(n,t,r,e){try{n:{for(var a=et(n),i=n=0;i<r;i++){var o=Ln(a,y,A[t+8*i>>2],A[t+(8*i+4)>>2]);if(0>o){var u=-1;break n}n+=o}u=n}return A[e>>2]=u,0}catch(n){return void 0!==Qn&&n instanceof Dn||L(n),n.Aa}},b:function(){return 0|d},Y:function(n){var t=Date.now();return A[n>>2]=t/1e3|0,A[n+4>>2]=t%1e3*1e3|0,0},_:function(n){var t=Xt();try{return U.get(n)()}catch(n){if($t(t),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},$:function(n,t){var r=Xt();try{return U.get(n)(t)}catch(n){if($t(r),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},E:function(n){var t=Xt();try{return U.get(n)()}catch(n){if($t(t),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},m:function(n,t){var r=Xt();try{return U.get(n)(t)}catch(n){if($t(r),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},e:function(n,t,r){var e=Xt();try{return U.get(n)(t,r)}catch(n){if($t(e),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},l:function(n,t,r,e){var a=Xt();try{return U.get(n)(t,r,e)}catch(n){if($t(a),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},Z:function(n,t,r,e,a,i,o){var u=Xt();try{return U.get(n)(t,r,e,a,i,o)}catch(n){if($t(u),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},v:function(n){var t=Xt();try{U.get(n)()}catch(n){if($t(t),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},i:function(n,t){var r=Xt();try{U.get(n)(t)}catch(n){if($t(r),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},o:function(n,t,r){var e=Xt();try{U.get(n)(t,r)}catch(n){if($t(e),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},w:function(n,t,r,e){var a=Xt();try{U.get(n)(t,r,e)}catch(n){if($t(a),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},u:function(n,t,r,e,a){var i=Xt();try{U.get(n)(t,r,e,a)}catch(n){if($t(i),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},q:function(n,t,r,e,a,i){var o=Xt();try{U.get(n)(t,r,e,a,i)}catch(n){if($t(o),n!==n+0&&"longjmp"!==n)throw n;qt(1,0)}},c:function(n){d=0|n},J:function(n,t,r,e){return function(n,t,r,e){function a(n,t,r){for(n="number"==typeof n?n.toString():n||"";n.length<t;)n=r[0]+n;return n}function i(n,t){return a(n,t,"0")}function o(n,t){function r(n){return 0>n?-1:0<n?1:0}var e;return 0===(e=r(n.getFullYear()-t.getFullYear()))&&0===(e=r(n.getMonth()-t.getMonth()))&&(e=r(n.getDate()-t.getDate())),e}function u(n){switch(n.getDay()){case 0:return new Date(n.getFullYear()-1,11,29);case 1:return n;case 2:return new Date(n.getFullYear(),0,3);case 3:return new Date(n.getFullYear(),0,2);case 4:return new Date(n.getFullYear(),0,1);case 5:return new Date(n.getFullYear()-1,11,31);case 6:return new Date(n.getFullYear()-1,11,30)}}function f(n){n=Wt(new Date(n.Ca+1900,0,1),n.ab);var t=new Date(n.getFullYear()+1,0,4),r=u(new Date(n.getFullYear(),0,4));return t=u(t),0>=o(r,n)?0>=o(t,n)?n.getFullYear()+1:n.getFullYear():n.getFullYear()-1}var c=A[e+40>>2];for(var s in e={Ub:A[e>>2],Tb:A[e+4>>2],Za:A[e+8>>2],Ta:A[e+12>>2],Oa:A[e+16>>2],Ca:A[e+20>>2],$a:A[e+24>>2],ab:A[e+28>>2],ac:A[e+32>>2],Sb:A[e+36>>2],Vb:c?C(c):""},r=C(r),c={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})r=r.replace(new RegExp(s,"g"),c[s]);var l="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(s in c={"%a":function(n){return l[n.$a].substring(0,3)},"%A":function(n){return l[n.$a]},"%b":function(n){return h[n.Oa].substring(0,3)},"%B":function(n){return h[n.Oa]},"%C":function(n){return i((n.Ca+1900)/100|0,2)},"%d":function(n){return i(n.Ta,2)},"%e":function(n){return a(n.Ta,2," ")},"%g":function(n){return f(n).toString().substring(2)},"%G":function(n){return f(n)},"%H":function(n){return i(n.Za,2)},"%I":function(n){return 0==(n=n.Za)?n=12:12<n&&(n-=12),i(n,2)},"%j":function(n){return i(n.Ta+St(Pt(n.Ca+1900)?Ot:jt,n.Oa-1),3)},"%m":function(n){return i(n.Oa+1,2)},"%M":function(n){return i(n.Tb,2)},"%n":function(){return"\n"},"%p":function(n){return 0<=n.Za&&12>n.Za?"AM":"PM"},"%S":function(n){return i(n.Ub,2)},"%t":function(){return"\t"},"%u":function(n){return n.$a||7},"%U":function(n){var t=new Date(n.Ca+1900,0,1),r=0===t.getDay()?t:Wt(t,7-t.getDay());return 0>o(r,n=new Date(n.Ca+1900,n.Oa,n.Ta))?i(Math.ceil((31-r.getDate()+(St(Pt(n.getFullYear())?Ot:jt,n.getMonth()-1)-31)+n.getDate())/7),2):0===o(r,t)?"01":"00"},"%V":function(n){var t=new Date(n.Ca+1901,0,4),r=u(new Date(n.Ca+1900,0,4));t=u(t);var e=Wt(new Date(n.Ca+1900,0,1),n.ab);return 0>o(e,r)?"53":0>=o(t,e)?"01":i(Math.ceil((r.getFullYear()<n.Ca+1900?n.ab+32-r.getDate():n.ab+1-r.getDate())/7),2)},"%w":function(n){return n.$a},"%W":function(n){var t=new Date(n.Ca,0,1),r=1===t.getDay()?t:Wt(t,0===t.getDay()?1:7-t.getDay()+1);return 0>o(r,n=new Date(n.Ca+1900,n.Oa,n.Ta))?i(Math.ceil((31-r.getDate()+(St(Pt(n.getFullYear())?Ot:jt,n.getMonth()-1)-31)+n.getDate())/7),2):0===o(r,t)?"01":"00"},"%y":function(n){return(n.Ca+1900).toString().substring(2)},"%Y":function(n){return n.Ca+1900},"%z":function(n){var t=0<=(n=n.Sb);return n=Math.abs(n)/60,(t?"+":"-")+String("0000"+(n/60*100+n%60)).slice(-4)},"%Z":function(n){return n.Vb},"%%":function(){return"%"}})0<=r.indexOf(s)&&(r=r.replace(new RegExp(s,"g"),c[s](e)));return(s=Ht(r,!1)).length>t?0:(y.set(s,n),s.length-1)}(n,t,r,e)},F:function(n){var t=Date.now()/1e3|0;return n&&(A[n>>2]=t),t},D:function(n){return 0!==n&&Lt(n,0,16),0}};!function(){function n(n){t.asm=n.exports,p=t.asm.ba,R(),U=t.asm.ea,V--,t.monitorRunDependencies&&t.monitorRunDependencies(V),0==V&&G&&(n=G,G=null,n())}function r(t){n(t.instance)}function a(n){return(h||"function"!=typeof fetch?Promise.resolve().then((function(){return $()})):fetch(K,{credentials:"same-origin"}).then((function(n){if(!n.ok)throw"failed to load wasm binary file at '"+K+"'";return n.arrayBuffer()})).catch((function(){return $()}))).then((function(n){return WebAssembly.instantiate(n,i)})).then(n,(function(n){l("failed to asynchronously prepare wasm: "+n),L(n)}))}var i={a:Yt};if(V++,t.monitorRunDependencies&&t.monitorRunDependencies(V),t.instantiateWasm)try{return t.instantiateWasm(i,n)}catch(n){return l("Module.instantiateWasm callback failed with error: "+n),!1}(h||"function"!=typeof WebAssembly.instantiateStreaming||J()||"function"!=typeof fetch?a(r):fetch(K,{credentials:"same-origin"}).then((function(n){return WebAssembly.instantiateStreaming(n,i).then(r,(function(n){return l("wasm streaming compile failed: "+n),l("falling back to ArrayBuffer instantiation"),a(r)}))}))).catch(e)}();var Bt=t.___wasm_call_ctors=function(){return(Bt=t.___wasm_call_ctors=t.asm.ca).apply(null,arguments)},Nt=t._malloc=function(){return(Nt=t._malloc=t.asm.da).apply(null,arguments)},Vt=t._free=function(){return(Vt=t._free=t.asm.fa).apply(null,arguments)},Gt=t.___errno_location=function(){return(Gt=t.___errno_location=t.asm.ga).apply(null,arguments)},Lt=t._memset=function(){return(Lt=t._memset=t.asm.ha).apply(null,arguments)},Jt=t.___getTypeName=function(){return(Jt=t.___getTypeName=t.asm.ia).apply(null,arguments)};t.___embind_register_native_and_builtin_types=function(){return(t.___embind_register_native_and_builtin_types=t.asm.ja).apply(null,arguments)};var Kt,Xt=t.stackSave=function(){return(Xt=t.stackSave=t.asm.ka).apply(null,arguments)},$t=t.stackRestore=function(){return($t=t.stackRestore=t.asm.la).apply(null,arguments)},qt=t._setThrew=function(){return(qt=t._setThrew=t.asm.ma).apply(null,arguments)},Qt=t._memalign=function(){return(Qt=t._memalign=t.asm.na).apply(null,arguments)};function Zt(n){this.name="ExitStatus",this.message="Program terminated with exit("+n+")",this.status=n}function nr(){function n(){if(!Kt&&(Kt=!0,t.calledRun=!0,!k)){if(t.noFSInit||jn||(jn=!0,Jn(),t.stdin=t.stdin,t.stdout=t.stdout,t.stderr=t.stderr,t.stdin?Kn("stdin",t.stdin):Yn("/dev/tty","/dev/stdin"),t.stdout?Kn("stdout",null,t.stdout):Yn("/dev/tty","/dev/stdout"),t.stderr?Kn("stderr",null,t.stderr):Yn("/dev/tty1","/dev/stderr"),Nn("/dev/stdin",0),Nn("/dev/stdout",1),Nn("/dev/stderr",1)),tn(H),bn=!1,tn(Y),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var n=t.postRun.shift();B.unshift(n)}tn(B)}}if(!(0<V)){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)N();tn(I),0<V||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),n()}),1)):n())}}if(t.dynCall_viijii=function(){return(t.dynCall_viijii=t.asm.oa).apply(null,arguments)},t.dynCall_iiij=function(){return(t.dynCall_iiij=t.asm.pa).apply(null,arguments)},t.dynCall_viij=function(){return(t.dynCall_viij=t.asm.qa).apply(null,arguments)},t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.ra).apply(null,arguments)},t.dynCall_iiiiij=function(){return(t.dynCall_iiiiij=t.asm.sa).apply(null,arguments)},t.dynCall_iiiiijj=function(){return(t.dynCall_iiiiijj=t.asm.ta).apply(null,arguments)},t.dynCall_iiiiiijj=function(){return(t.dynCall_iiiiiijj=t.asm.ua).apply(null,arguments)},G=function n(){Kt||nr(),Kt||(G=n)},t.run=nr,t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();return nr(),n.ready};let t,r,e;function a(t){const{id:a,src:i,options:o}=t.data;return async function(){return void 0===e&&(e=await r.then(n)),e}().then((n=>{const t=function(n,t,r){for(const{path:t,data:e}of r.files)n.vizCreateFile(t,e);n.vizSetY_invert(r.yInvert?1:0),n.vizSetNop(r.nop||0);const e=n.vizRenderFromString(t,r.format,r.engine),a=n.vizLastErrorMessage();if(""!==a)throw new Error(a);return e}(n,i,o);postMessage({id:a,result:t})})).catch((n=>{const t=n instanceof Error?{message:n.message,fileName:n.fileName,lineNumber:n.lineNumber}:{message:n.toString()};postMessage({id:a,error:t})}))}r=Promise.resolve({}),t=n=>r=Promise.resolve(n),addEventListener("message",a);var i=t;export default i;export{a as onmessage};
{
"name": "@aduh95/viz.js",
"version": "3.3.0",
"version": "3.3.1",
"description": "A hack to put Graphviz on the web.",

@@ -68,3 +68,3 @@ "main": "./dist/index.cjs",

"prettier": "^2.0.4",
"puppeteer": "^5.0.0",
"puppeteer": "^7.1.0",
"rollup": "^2.4.0",

@@ -71,0 +71,0 @@ "semver": "^7.3.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc