motoko
Version:
Compile and run Motoko smart contracts in Node.js or the browser.
1 lines • 1.19 MB
JavaScript
!function(r){function e(){var e=this||self;e.globalThis=e,delete r.prototype._T_}"object"!=typeof globalThis&&(this?e():(r.defineProperty(r.prototype,"_T_",{configurable:!0,get:e}),_T_))}(Object),function(r){"use strict";var e="object"==typeof module&&module.exports||r,n="<imp>",t="misplaced stability modifier: allowed on var or simple let declarations only",a="int_of_string",u=255,c="while",i="pipeline/pipeline.ml",f=787,s="mo_frontend/bi_match.ml",o="<pat_bin>",l='" not defined',v=218,b="ignore",p="a shared function is only allowed as a public field of an actor",h="shared function has non-async result type%a",d="Out_of_memory",m="win32",k="Failure",y="Unix.Unix_error",x="Int16",w=1348,_="unop",N="EOVERFLOW",g=1e9,I="false",T=", characters ",M="query",A=452,E="Value.compare",B="Match_failure",P="Nat8",R=280,C="%s",L=109,S="EMLINK",$=310,D="M0017",H="None",J=460,O="object",U="@[<2>async@ %a@]",j="EDESTADDRREQ",F="overwrite field to resolve error",z="EEXIST",q="ENOMEM",V="EBUSY",G=224,X="shared function cannot take a context pattern",Q=192,W="arithmetic overflow",Y="<",Z=": No such file or directory",K="!",rr="EPFNOSUPPORT",er="principal",nr=7950,tr="<bl>",ar="of_string",ur="mo_frontend/parsing.ml",cr=":",ir="<float>",fr=7983,sr="Printexc.handle_uncaught_exception",or=" : flags Open_rdonly and Open_wronly are not compatible",lr="ENETUNREACH",vr=8040,br="EINPROGRESS",pr=937,hr="settings",dr="class",mr="actors cannot serve as bases in record extensions",kr="unbound variable ",yr="actor class has non-async return type",xr=65535,wr=1350,_r="prelude",Nr="M0086",gr="EXDEV",Ir="_",Tr="checking",Mr=1058,Ar=-2147483648,Er="List.nth",Br="compare: functional value",Pr="<dec>",Rr="@;<0 0>",Cr=491,Lr="ETOOMANYREFS",Sr=1e3,$r="@[<1>?%a@]",Dr="migration",Hr="variant",Jr="/static/",Or="<id>",Ur="as_obj",jr=" : ",Fr="service constructor not supported",zr=" does not match pattern",qr="continue",Vr="expression of type",Gr="shared",Xr="nan:0x",Qr="OCAMLRUNPARAM",Wr=8043,Yr=1057,Zr="ENOPROTOOPT",Kr=122,re=7978,ee="EPIPE",ne="ENXIO",te="in",ae=7949,ue="cannot infer type of variable",ce="as_tup",ie="actor",fe="malformed operator",se="bad import: imported actor class cannot be anonymous",oe="EFAULT",le="debug",ve="=",be="<typ_dec>",pe="M0096",he=323,de="get",me="shared function has non-shared parameter type",ke="\nand",ye="ESPIPE",xe="\n scope ",we="postupgrade",_e=" or ",Ne=372,ge="ENOTEMPTY",Ie=1255,Te="Shared",Me="@ ",Ae="case",Ee=453,Be=": calling convention ",Pe="this pattern is never matched",Re="flexible",Ce=7947,Le="ObjE",Se=8042,$e="unrecognised attribute ",De="ENOTSOCK",He=-48,Je="func",Oe=57344,Ue=16777215,je=400,Fe=455,ze="EPROTONOSUPPORT",qe="ECONNREFUSED",Ve="lib/lib.ml",Ge="/",Xe="mo_frontend/parser.ml",Qe=149,We=1067124520,Ye="mo_types/type.ml",Ze="ghnfiix2-gkdj7c5j-mwr7mcb4-ymavr6j7",Ke="Int",rn="Principal",en="reserved",nn="\nwhere",tn="actor reference must have an actor type",an="debug_show",un="#%s",cn="async expressions are not supported",fn=" in ",sn=7946,on=7944,ln="shared function has non-shared parameter type%a",vn="mo_frontend/menhir_error_reporting.ml",bn="variable ",pn="ENAMETOOLONG",hn="shared functions are not supported",dn="ESOCKTNOSUPPORT",mn="type parameter ",kn="EMSGSIZE",yn="prim",xn="ELOOP",wn="parsing",_n="var",Nn="int64",gn="composite send capability required, but not available\n (cannot call a `composite query` function from a non-`composite query` function)",In="M0077",Tn="EADDRINUSE",Mn="cannot decide type constructor equality",An=136,En="ENOTDIR",Bn="<= %s",Pn="malformed UTF-8 encoding",Rn="{}",Cn="from_candid requires but is missing a known type (from context)",Ln="+",Sn="oneway function has non-unit return type",$n="send capability required, but not available\n (cannot call a `shared` function from a `query` function)",Dn=395,Hn=125,Jn="blob index out of bounds",On="Pervasives.do_at_exit",Un="expected mutable assignment target",jn="<typ_item>",Fn="lsh_Nat",zn="TryE",qn=301,Vn=1333,Gn=154,Xn=454,Qn="package",Wn="else",Yn="M0212",Zn="unclosed text literal",Kn="EDEADLK",rt="Composite",et="Local",nt=290,tt="misplaced parenthetical (this call does not send a message)",at="blob too long for actor principal",ut="\n",ct="e",it="redundant empty parenthetical note",ft="assert",st="mo_values/operator.ml",ot="ENOENT",lt="Division_by_zero",vt="EOPNOTSUPP",bt="x",pt=119,ht="mo_frontend/typing.ml",dt=101,mt="%.*g",kt="send capability required, but not available\n (need an enclosing async expression or function body)",yt="cannot infer type of wildcard",xt=255,wt=100,_t="actor classes with non non-async return types are deprecated; please declare the return type as 'async ...'",Nt=171,gt="<exp_field>",It=8047,Tt=-97,Mt="deprecated syntax: an imported library should be a module or named actor class",At="EINVAL",Et=437,Bt="unknown primitive type",Pt="Nat",Rt="transient",Ct="shared query function must have syntactic return type 'async <typ>'",Lt="([^/]+)",St="\0\0\0\0\0\0ÿÿÿÿÿÿÿÿÿ\0\0\0\0\0\0\0\0\0\0\0\0\0\0",$t="unexpected call_conv ",Dt="\ndoes not match expected type",Ht="\\n",Jt=" ",Ot="illegal escape",Ut=7982,jt="actor class configuration unsupported in interpreter",Ft="cannot infer type of primitive",zt="Bool",qt="cannot compute intersection of types containing recursive or forward references to other type definitions",Vt=919,Gt="0x",Xt="LoopE",Qt="M0215",Wt="as_mut",Yt=201,Zt=933,Kt="to_candid",ra=": closedir failed",ea="canister_reject",na="ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ\0\0\0\0\0\0\0\0",ta=384,aa=223,ua="Not_found",ca="EHOSTUNREACH",ia=-798940232,fa="M0200",sa=" must not depend on itself",oa=254,la="empty",va="label",ba=388,pa="value %s does not match pattern",ha="mo_frontend/coverage.ml",da="ENOBUFS",ma=7951,ka=430,ya="misplaced %s",xa="cannot have more than one mode",wa=", ",_a=380,Na="EAGAIN",ga="import",Ia=416,Ta="<dec_field>",Ma="`system` capability required, but not available\n (need an enclosing async expression or function body or explicit `system` type parameter)",Aa="EDOM",Ea="var ",Ba="@prim",Pa="operator is not defined for operand type",Ra="file %s must not depend on itself",Ca="\nright operand is",La=7948,Sa=500,$a="EAFNOSUPPORT",Da="EMFILE",Ha=126,Ja=7976,Oa="int64_of_big_int",Ua=" : flags Open_text and Open_binary are not compatible",ja=" <: ",Fa="call ",za=": Not a directory",qa=8041,Va="` is provided but not expected in object of type",Ga=7945,Xa="<exp_nonvar(ob)>",Qa="error",Wa=363,Ya=302,Za="<nat>",Ka="type field",ru=433,eu="shared function has non-shared return type%a",nu="actor classes are not supported",tu="EHOSTDOWN",au="expected object type, but expression produces type%a",uu="composite",cu="Win32",iu="ERANGE",fu="a shared function cannot be private",su=252,ou="binop",lu="-",vu=": file descriptor already closed",bu="EROFS",pu="Region",hu="values",du="..",mu=" mentioned in error at ",ku=8046,yu=" or\n ",xu="mo_values/show.ml",wu='"',_u="system",Nu="non-actor class cannot take a context pattern",gu=105,Iu="Float",Tu="buffer.ml",Mu="to_candid argument must have shared type, but instead has non-shared type%a",Au="idllib/arrange_idl.ml",Eu="ETIMEDOUT",Bu="cannot import canister urls without --actor-idl param",Pu=408,Ru="async",Cu=240,Lu="@;<0 -2>",Su="operator may trap for inferred type",$u=1000000009,Du="no type can be inferred for actor reference",Hu=";",Ju=8044,Ou="record",Uu="(%s%s)",ju=" :",Fu="with",zu="persistent",qu=7981,Vu="Nat64",Gu="Int64",Xu="int",Qu="misplaced stability declaration on field of non-actor",Wu="<2>",Yu="` of type",Zu="Map.bal",Ku="finally",rc="as_variant",ec="shared function must have syntactic return type '()' or 'async <typ>'",nc="closedir",tc="nat16",ac="inner actor classes are not supported yet; any actor class must come last in your program",uc="Error",cc="timer",ic="",fc="%lx",sc="nat",oc=": ",lc="timeout",vc=371,bc="cannot infer return type",pc=107,hc="rsh_Nat",dc="mo_types/expansive.ml",mc="<:",kc="Undefined_recursive_module",yc=2147483647,xc="\\t",wc=-1073741824,_c="Null",Nc="<typ_bind>",gc=63,Ic=114,Tc="accessing identifier before its definition",Mc="E2BIG",Ac="@[<1>(%a%s)@]",Ec=113,Bc="@[<hv 2>{@;<0 0>%a@;<0 -2>}@]",Pc="[var ",Rc="non-",Cc="float64",Lc="variable",Sc=256,$c=327,Dc=111,Hc="Invalid UTF-8",Jc="blob",Oc="cannot infer type of forward field reference %s",Uc="?",jc="int32",Fc=")",zc="field ",qc="public actor field needs to be a manifest function",Vc="EALREADY",Gc="<case>",Xc="EWOULDBLOCK",Qc=123,Wc=834,Yc=499,Zc="async expression",Kc="ENOSPC",ri="bool",ei="class cannot be a query",ni=">",ti="object type",ai="}",ui="unexpected `system` capability (try deleting it)",ci=127,ii="module",fi="Sys_blocked_io",si="<typ>",oi="mo_frontend/parser.mly",li=1/0,vi="ENETRESET",bi="preupgrade",pi="try",hi="_bigarr02",di=373,mi="BoolLit",ki="to_candid argument must have shared type, but instead has non-shared type",yi="mkdir",xi="@[",wi="stable",_i="Assert_failure",Ni=497,gi="M0168",Ii="menhir-recovery-lib/menhirRecoveryLib.ml",Ti=253,Mi="nat64",Ai="unclosed comment",Ei="different set of bindings in pattern alternatives",Bi="ENOTTY",Pi="as_func",Ri=" = ",Ci="nat8",Li="Char",Si=391,$i=124,Di="uncaught throw",Hi="Set.bal",Ji="<typ_tag>",Oi=120,Ui=1024,ji=1027,Fi=236,zi=246,qi="(",Vi="@anon-",Gi="LetD",Xi="Int8",Qi="misplaced system visibility, did you mean private?",Wi="migration expression consumes field `",Yi="Fatal error: exception ",Zi=118,Ki=" <: ",rf="camlinternalFormat.ml",ef="M0033",nf="expected object type, but expression produces type",tf=781116926,af="\ncannot produce expected type",uf="this looks like an unintended function call, perhaps a missing ';'?",cf=913,ff="relop",sf="ECONNABORTED",of="#",lf="Stack_overflow",vf="@;<0 1>",bf=" of type",pf=7979,hf="assertion failure",df="shared function has non-shared return type",mf=65535,kf=-10,yf="EACCES",xf="redundant ignore, operand already has type ()",wf="Text",_f="EINTR",Nf=776,gf="duplicate binding for %s in pattern",If=921,Tf="type ",Mf="operator may trap for inferred type%a",Af="M0064",Ef="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ÿ\0\0\0\0\0\0\0\0\0\0\0\0",Bf="Fatal error: exception %s\n",Pf="ENOEXEC",Rf="jsError",Cf="int16",Lf=115,Sf="ENODEV",$f=" does not exist in ",Df=104,Hf="M0059",Jf="shared function with () result type has unexpected body:\n the body must either be of sugared form '{ ... }' \n or explicit form '= ignore ((async ...) : async ())'",Of="await",Uf="shared function has non-async result type",jf="0",Ff="shared function with async result type has non-async body",zf="vals",qf="type",Vf="cannot infer type of forward field reference ",Gf="field",Xf="%Lx",Qf="cannot compute union of types containing recursive or forward references to other type definitions",Wf=146,Yf=423,Zf="syntax",Kf="system function timer is present but -no-timer flag is specified",rs="End_of_file",es="lib/pack/menhirLib.ml",ns="caller",ts="field %s does not exist in %a%s",as="M0032",us="<- await",cs="@[<1>(%a)@]",is="Query",fs="@[<2>async%s@ %a@]",ss="Public",os="mo_values/prim.ml",ls="text",vs="null",bs="M0039",ps="<exp(ob)>",hs="M0041",ds="<any>",ms=1023,ks="ENOTCONN",ys="await*",xs="return",ws="Any",_s=65536,Ns="nat32",gs="catch",Is="continue ",Ts="<1>",Ms=328,As="illegal control character in text literal",Es="infinity",Bs="<v 2>",Ps="ENOSYS",Rs="chars",Cs=128,Ls="Sys_error",Ss="\nLast environment:\n",$s="this function has the name of a system method, but is declared without system visibility and will not be called by the system",Ds=1073741823,Hs="actor classes with type parameters are not supported yet",Js="compiler bug: expected a module or actor class but found a program, i.e. a sequence of declarations",Os="mo_idl/idl_to_mo.ml",Us=929,js="mo_interpreter/interpret.ml",Fs=32768,zs="@{",qs="(Program not linked with -g, cannot print stack backtrace)\n",Vs=55296,Gs="non-toplevel actor; an actor can only be declared at the toplevel of a program",Xs="ESRCH",Qs=462,Ws="ESHUTDOWN",Ys="float32",Zs='file "',Ks=110,ro=" : file already exists",eo="EPROTOTYPE",no=128,to="Array.init",ao="<hv 2>",uo="M0038",co=1121,io=7977,fo="true",so="Principal too long",oo="value ",lo="size",vo=102,bo="EADDRNOTAVAIL",po="int8",ho="Blob",mo="expression of type%a\ncannot produce expected type%a",ko="misplaced ",yo="public",xo=334,wo="sys_big_int_of_string",_o="M0037",No="misplaced '!' (no enclosing 'do ? { ... }' expression)",go=1073741824,Io=4294967296,To="\nbecause operand types are inconsistent,\nleft operand is",Mo="throw",Ao="typ_field",Eo=116,Bo="actor class cannot take a context pattern",Po="EISDIR",Ro=259,Co=8045,Lo="file ",So=401,$o="EFBIG",Do="this code is (or uses) the deprecated library `ExperimentalStableMemory`.\nPlease use the `Region` library instead: https://internetcomputer.org/docs/current/motoko/main/stable-memory/stable-regions/#the-region-library or compile with flag `--experimental-stable-memory 1` to suppress this message.",Ho="ECONNRESET",Jo=" and ",Oo=412,Uo=121,jo="codegen/compile_classical.ml",Fo="bad import: expected a module or actor class but found an actor",zo="idllib/typing.ml",qo="cannot infer the type of this or-pattern, please add a type annotation",Vo="ENETDOWN",Go="Invalid_argument",Xo="Nat16",Qo=16777215,Wo=1114112,Yo=1000000010,Zo=471,Ko="shared function has unexpected type parameters",rl="duplicate binding for ",el=512,nl="try handler",tl=1026,al="Nat32",ul="from_candid",cl="parenthetical notes aren't allowed on shared functions",il=112,fl="M0155",sl="private",ol="next",ll="EPERM",vl="nan",bl="rmdir",pl="operator is not defined for operand type%a",hl=198,dl="ENOLCK",ml="mo_def/compUnit.ml",kl=248,yl="array index out of bounds",xl="M0031",wl="break",_l="actor import",Nl="implicit instantiation of type parameter ",gl="stable variable",Il=" in pattern",Tl=7980,Ml=108,Al=" : is a directory",El=".",Bl="keys",Pl="ECHILD",Rl="\ninstead of expected type",Cl=457,Ll="misplaced actor migration expression on module or object",Sl="mo_types/productive.ml",$l="actors are not supported",Dl="unicode escape out of range",Hl=",",Jl="send capability required, but not available\n (cannot call a `shared` function from a `composite query` function; only calls to `query` and `composite query` functions are allowed)",Ol="index out of bounds",Ul=106,jl="unbound variable %s%a%s",Fl="%d",zl=117,ql="EBADF",Vl=353,Gl="loop",Xl="misplaced return",Ql="async*",Wl="switch",Yl=458,Zl="Int32",Kl="ENFILE",rv=250,ev="cycles",nv=286,tv=103,av=420,uv="EISCONN",cv=769;function iv(r,e,n,t){for(var a=t,u=0;u<n;u++){var c=(r.data[e+u]>>>0)+a;if(r.data[e+u]=0|c,c===c>>>0){a=0;break}a=1}return a}function fv(r,e,n,t,a,u,c){for(var i=c,f=0;f<u;f++){var s=(r.data[e+f]>>>0)+(t.data[a+f]>>>0)+i;r.data[e+f]=s,i=s===s>>>0?0:1}return iv(r,e+u,n-u,i)}function sv(r,e,n,t,a){for(var u=0;u<a;u++)r.data[e+u]=n.data[t+u];return 0}function ov(r,e,n,t,a){if(t<=e)for(var u=1;u<=a;u++)n[t+u]=r[e+u];else for(u=a;u>=1;u--)n[t+u]=r[e+u];return 0}var lv={};function vv(e){if(lv[e])return lv[e];var n=r.process;return n&&n.env&&void 0!==n.env[e]?n.env[e]:r.jsoo_env&&"string"==typeof r.jsoo_env[e]?r.jsoo_env[e]:void 0}var bv=0;!function(){var r=vv(Qr);if(void 0!==r)for(var e=r.split(Hl),n=0;n<e.length;n++){if("b"===e[n]){bv=1;break}if(!e[n].startsWith("b="))continue;bv=+e[n].slice(2)}}();var pv=bv,hv=[0];function dv(e,n){return bv&&pv?function(e,n){return e.js_error&&!n&&e[0]!==kl||(e.js_error=new r.Error("Js exception containing backtrace")),e}(e,n):e}function mv(r,e){!function(r,e){throw dv([0,r,e])}(r,e)}function kv(r){mv(hv.Invalid_argument,r)}function yv(r){switch(r){case 7:case 10:case 11:return 2;default:return 1}}function xv(r,e){var n;switch(r){case 0:case 10:n=Float32Array;break;case 1:case 11:n=Float64Array;break;case 2:n=Int8Array;break;case 3:case 12:n=Uint8Array;break;case 4:n=Int16Array;break;case 5:n=Uint16Array;break;case 6:case 7:case 8:case 9:n=Int32Array}return n||kv("Bigarray.create: unsupported kind"),new n(e*yv(r))}function wv(r){for(var e=r.length,n=1,t=0;t<e;t++)r[t]<0&&kv("Bigarray.create: negative dimension"),n*=r[t];return n}var _v=Math.pow(2,-24);function Nv(r){throw r}function gv(){Nv(hv.Division_by_zero)}function Iv(r,e,n){this.lo=r&Qo,this.mi=e&Qo,this.hi=n&xr}function Tv(r){return r.hi32()}function Mv(r){return r.lo32()}function Av(){kv(Ol)}Iv.prototype.caml_custom="_j",Iv.prototype.copy=function(){return new Iv(this.lo,this.mi,this.hi)},Iv.prototype.ucompare=function(r){return this.hi>r.hi?1:this.hi<r.hi?-1:this.mi>r.mi?1:this.mi<r.mi?-1:this.lo>r.lo?1:this.lo<r.lo?-1:0},Iv.prototype.compare=function(r){var e=this.hi<<16,n=r.hi<<16;return e>n?1:e<n?-1:this.mi>r.mi?1:this.mi<r.mi?-1:this.lo>r.lo?1:this.lo<r.lo?-1:0},Iv.prototype.neg=function(){var r=-this.lo,e=-this.mi+(r>>24);return new Iv(r,e,-this.hi+(e>>24))},Iv.prototype.add=function(r){var e=this.lo+r.lo,n=this.mi+r.mi+(e>>24);return new Iv(e,n,this.hi+r.hi+(n>>24))},Iv.prototype.sub=function(r){var e=this.lo-r.lo,n=this.mi-r.mi+(e>>24);return new Iv(e,n,this.hi-r.hi+(n>>24))},Iv.prototype.mul=function(r){var e=this.lo*r.lo,n=(e*_v|0)+this.mi*r.lo+this.lo*r.mi;return new Iv(e,n,(n*_v|0)+this.hi*r.lo+this.mi*r.mi+this.lo*r.hi)},Iv.prototype.isZero=function(){return!(this.lo|this.mi|this.hi)},Iv.prototype.isNeg=function(){return this.hi<<16<0},Iv.prototype.and=function(r){return new Iv(this.lo&r.lo,this.mi&r.mi,this.hi&r.hi)},Iv.prototype.or=function(r){return new Iv(this.lo|r.lo,this.mi|r.mi,this.hi|r.hi)},Iv.prototype.xor=function(r){return new Iv(this.lo^r.lo,this.mi^r.mi,this.hi^r.hi)},Iv.prototype.shift_left=function(r){return 0===(r&=63)?this:r<24?new Iv(this.lo<<r,this.mi<<r|this.lo>>24-r,this.hi<<r|this.mi>>24-r):r<48?new Iv(0,this.lo<<r-24,this.mi<<r-24|this.lo>>48-r):new Iv(0,0,this.lo<<r-48)},Iv.prototype.shift_right_unsigned=function(r){return 0===(r&=63)?this:r<24?new Iv(this.lo>>r|this.mi<<24-r,this.mi>>r|this.hi<<24-r,this.hi>>r):r<48?new Iv(this.mi>>r-24|this.hi<<48-r,this.hi>>r-24,0):new Iv(this.hi>>r-48,0,0)},Iv.prototype.shift_right=function(r){if(0===(r&=63))return this;var e=this.hi<<16>>16;if(r<24)return new Iv(this.lo>>r|this.mi<<24-r,this.mi>>r|e<<24-r,this.hi<<16>>r>>>16);var n=this.hi<<16>>31;return r<48?new Iv(this.mi>>r-24|this.hi<<48-r,this.hi<<16>>r-24>>16,n&xr):new Iv(this.hi<<16>>r-32,n,n)},Iv.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23,this.mi=(this.mi<<1|this.lo>>23)&Qo,this.lo=this.lo<<1&Qo},Iv.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&Qo,this.mi=(this.mi>>>1|this.hi<<23)&Qo,this.hi=this.hi>>>1},Iv.prototype.udivmod=function(r){for(var e=0,n=this.copy(),t=r.copy(),a=new Iv(0,0,0);n.ucompare(t)>0;)e++,t.lsl1();for(;e>=0;)e--,a.lsl1(),n.ucompare(t)>=0&&(a.lo++,n=n.sub(t)),t.lsr1();return{quotient:a,modulus:n}},Iv.prototype.div=function(r){var e=this;r.isZero()&&gv();var n=e.hi^r.hi;e.hi&Fs&&(e=e.neg()),r.hi&Fs&&(r=r.neg());var t=e.udivmod(r).quotient;return n&Fs&&(t=t.neg()),t},Iv.prototype.mod=function(r){var e=this;r.isZero()&&gv();var n=e.hi;e.hi&Fs&&(e=e.neg()),r.hi&Fs&&(r=r.neg());var t=e.udivmod(r).modulus;return n&Fs&&(t=t.neg()),t},Iv.prototype.toInt=function(){return this.lo|this.mi<<24},Iv.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo},Iv.prototype.toArray=function(){return[this.hi>>8,this.hi&u,this.mi>>16,this.mi>>8&u,this.mi&u,this.lo>>16,this.lo>>8&u,this.lo&u]},Iv.prototype.lo32=function(){return this.lo|(this.mi&u)<<24},Iv.prototype.hi32=function(){return this.mi>>>8&xr|this.hi<<16};var Ev=hi;function Bv(r,e,n,t){this.kind=r,this.layout=e,this.dims=n,this.data=t}function Pv(r,e,n,t){this.kind=r,this.layout=e,this.dims=n,this.data=t}function Rv(r,e,n,t){var a=yv(r);return wv(n)*a!==t.length&&kv("length doesn't match dims"),0===e&&1===n.length&&1===a?new Pv(r,e,n,t):new Bv(r,e,n,t)}function Cv(r){return r.slice(1)}function Lv(r,e,n){var t=String.fromCharCode;if(0===e&&n<=4096&&n===r.length)return t.apply(null,r);for(var a=ic;0<n;e+=Ui,n-=Ui)a+=t.apply(null,r.slice(e,e+Math.min(n,Ui)));return a}function Sv(r){for(var e=new Uint8Array(r.l),n=r.c,t=n.length,a=0;a<t;a++)e[a]=n.charCodeAt(a);for(t=r.l;a<t;a++)e[a]=0;return r.c=e,r.t=4,e}function $v(r,e,n,t,a){if(0===a)return 0;if(0===t&&(a>=n.l||2===n.t&&a>=n.c.length))n.c=4===r.t?Lv(r.c,e,a):0===e&&r.c.length===a?r.c:r.c.slice(e,e+a),n.t=n.c.length===n.l?0:2;else if(2===n.t&&t===n.c.length)n.c+=4===r.t?Lv(r.c,e,a):0===e&&r.c.length===a?r.c:r.c.slice(e,e+a),n.t=n.c.length===n.l?0:2;else{4!==n.t&&Sv(n);var u=r.c,c=n.c;if(4===r.t)if(t<=e)for(var i=0;i<a;i++)c[t+i]=u[e+i];else for(i=a-1;i>=0;i--)c[t+i]=u[e+i];else{var f=Math.min(a,u.length-e);for(i=0;i<f;i++)c[t+i]=u.charCodeAt(e+i);for(;i<a;i++)c[t+i]=0}}return 0}function Dv(r,e){if(0===r)return ic;if(e.repeat)return e.repeat(r);for(var n=ic,t=0;;){if(1&r&&(n+=e),0===(r>>=1))return n;e+=e,9===++t&&e.slice(0,1)}}function Hv(r){2===r.t?r.c+=Dv(r.l-r.c.length,"\0"):r.c=Lv(r.c,0,r.c.length),r.t=0}function Jv(r){if(r.length<24){for(var e=0;e<r.length;e++)if(r.charCodeAt(e)>ci)return!1;return!0}return!/[^\x00-\x7f]/.test(r)}function Ov(r){for(var e,n,t,a,u=ic,c=ic,i=0,f=r.length;i<f;i++){if((n=r.charCodeAt(i))<Cs){for(var s=i+1;s<f&&(n=r.charCodeAt(s))<Cs;s++);if(s-i>el?(c.slice(0,1),u+=c,c=ic,u+=r.slice(i,s)):c+=r.slice(i,s),s===f)break;i=s}a=1,++i<f&&(-64&(t=r.charCodeAt(i)))===no&&(e=t+(n<<6),n<224?(a=e-12416)<Cs&&(a=1):(a=2,++i<f&&(-64&(t=r.charCodeAt(i)))===no&&(e=t+(e<<6),n<240?((a=e-925824)<2048||a>=55295&&a<57344)&&(a=2):(a=3,++i<f&&(-64&(t=r.charCodeAt(i)))===no&&n<245&&((a=t-63447168+(e<<6))<65536||a>1114111)&&(a=3))))),a<4?(i-=a,c+="�"):c+=a>xr?String.fromCharCode(55232+(a>>10),56320+(1023&a)):String.fromCharCode(a),c.length>Ui&&(c.slice(0,1),u+=c,c=ic)}return u+c}function Uv(r,e,n){this.t=r,this.c=e,this.l=n}function jv(r){return new Uv(0,r,r.length)}function Fv(r){return jv(r)}function zv(r,e,n,t,a){return $v(Fv(r),e,n,t,a),0}function qv(){kv(Ol)}function Vv(r,e){switch(6&r.t){case 0:return r.c.charCodeAt(e);case 2:return e>=r.c.length?0:r.c.charCodeAt(e);case 4:return r.c[e]}}function Gv(r,e){return e>>>0>=r.l&&qv(),Vv(r,e)}function Xv(r,e,n){if(n&=u,4!==r.t){if(e===r.c.length)return r.c+=String.fromCharCode(n),e+1===r.l&&(r.t=0),0;Sv(r)}return r.c[e]=n,0}function Qv(r,e,n){return e>>>0>=r.l&&qv(),Xv(r,e,n)}function Wv(r){return r.toArray()}function Yv(r,e){var n=r.l>=0?r.l:r.l=r.length,t=e.length,a=n-t;if(0===a)return r.apply(null,e);if(a<0)return"function"!=typeof(u=r.apply(null,e.slice(0,n)))?u:Yv(u,e.slice(n));switch(a){case 1:var u=function(n){for(var a=new Array(t+1),u=0;u<t;u++)a[u]=e[u];return a[t]=n,r.apply(null,a)};break;case 2:u=function(n,a){for(var u=new Array(t+2),c=0;c<t;c++)u[c]=e[c];return u[t]=n,u[t+1]=a,r.apply(null,u)};break;default:u=function(){for(var n=0===arguments.length?1:arguments.length,t=new Array(e.length+n),a=0;a<e.length;a++)t[a]=e[a];for(a=0;a<arguments.length;a++)t[e.length+a]=arguments[a];return Yv(r,t)}}return u.l=a,u}function Zv(r,e){return e>>>0>=r.length-1&&Av(),r}Bv.prototype.caml_custom=Ev,Bv.prototype.offset=function(r){var e=0;if("number"==typeof r&&(r=[r]),Array.isArray(r)||kv("bigarray.js: invalid offset"),this.dims.length!==r.length&&kv("Bigarray.get/set: bad number of dimensions"),0===this.layout)for(var n=0;n<this.dims.length;n++)(r[n]<0||r[n]>=this.dims[n])&&Av(),e=e*this.dims[n]+r[n];else for(n=this.dims.length-1;n>=0;n--)(r[n]<1||r[n]>this.dims[n])&&Av(),e=e*this.dims[n]+(r[n]-1);return e},Bv.prototype.get=function(r){switch(this.kind){case 7:return function(r,e){return new Iv(r&Qo,r>>>24&u|(e&xr)<<8,e>>>16&xr)}(this.data[2*r+0],this.data[2*r+1]);case 10:case 11:var e=this.data[2*r+0],n=this.data[2*r+1];return[oa,e,n];default:return this.data[r]}},Bv.prototype.set=function(r,e){switch(this.kind){case 7:this.data[2*r+0]=Mv(e),this.data[2*r+1]=Tv(e);break;case 10:case 11:this.data[2*r+0]=e[1],this.data[2*r+1]=e[2];break;default:this.data[r]=e}return 0},Bv.prototype.fill=function(r){switch(this.kind){case 7:var e=Mv(r),n=Tv(r);if(e===n)this.data.fill(e);else for(var t=0;t<this.data.length;t++)this.data[t]=t%2==0?e:n;break;case 10:case 11:var a=r[1],u=r[2];if(a===u)this.data.fill(a);else for(t=0;t<this.data.length;t++)this.data[t]=t%2==0?a:u;break;default:this.data.fill(r)}},Bv.prototype.compare=function(r,e){if(this.layout!==r.layout||this.kind!==r.kind){var n=this.kind|this.layout<<8;return(r.kind|r.layout<<8)-n}if(this.dims.length!==r.dims.length)return r.dims.length-this.dims.length;for(var t=0;t<this.dims.length;t++)if(this.dims[t]!==r.dims[t])return this.dims[t]<r.dims[t]?-1:1;switch(this.kind){case 0:case 1:case 10:case 11:var a,u;for(t=0;t<this.data.length;t++){if((a=this.data[t])<(u=r.data[t]))return-1;if(a>u)return 1;if(a!==u){if(!e)return Number.NaN;if(!Number.isNaN(a))return 1;if(!Number.isNaN(u))return-1}}break;case 7:for(t=0;t<this.data.length;t+=2){if(this.data[t+1]<r.data[t+1])return-1;if(this.data[t+1]>r.data[t+1])return 1;if(this.data[t]>>>0<r.data[t]>>>0)return-1;if(this.data[t]>>>0>r.data[t]>>>0)return 1}break;case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 12:for(t=0;t<this.data.length;t++){if(this.data[t]<r.data[t])return-1;if(this.data[t]>r.data[t])return 1}}return 0},Pv.prototype=new Bv,Pv.prototype.offset=function(r){return"number"!=typeof r&&(Array.isArray(r)&&1===r.length?r=r[0]:kv("Ml_Bigarray_c_1_1.offset")),(r<0||r>=this.dims[0])&&Av(),r},Pv.prototype.get=function(r){return this.data[r]},Pv.prototype.set=function(r,e){return this.data[r]=e,0},Pv.prototype.fill=function(r){return this.data.fill(r),0},Uv.prototype.toString=function(){switch(this.t){case 9:case 8:return this.c;case 4:case 2:Hv(this);case 0:return Jv(this.c)?this.t=9:this.t=8,this.c}},Uv.prototype.toUtf16=function(){var r=this.toString();return 9===this.t?r:Ov(r)},Uv.prototype.slice=function(){var r=4===this.t?this.c.slice():this.c;return new Uv(this.t,r,this.l)};var Kv=Math.log2&&1020===Math.log2(11235582092889474e291);function rb(r){var e=new Float32Array(1);return e[0]=r,0|new Int32Array(e.buffer)[0]}function eb(r,e,n){return new Iv(r,e,n)}function nb(r){if(!Number.isFinite(r))return Number.isNaN(r)?eb(1,0,32752):eb(0,0,r>0?32752:65520);var e=0===r&&1/r===Number.NEGATIVE_INFINITY?Fs:r>=0?0:Fs;e&&(r=-r);var n=function(r){if(Kv)return Math.floor(Math.log2(r));var e=0;if(0===r)return Number.NEGATIVE_INFINITY;if(r>=1)for(;r>=2;)r/=2,e++;else for(;r<1;)r*=2,e--;return e}(r)+ms;n<=0?(n=0,r/=Math.pow(2,-tl)):((r/=Math.pow(2,n-ji))<16&&(r*=2,n-=1),0===n&&(r/=2));var t=Math.pow(2,24),a=0|r,u=0|(r=(r-a)*t);return eb(0|(r=(r-u)*t),u,a=15&a|e|n<<4)}function tb(r,e,n){if(r.write(32,e.dims.length),r.write(32,e.kind|e.layout<<8),e.caml_custom===hi)for(var t=0;t<e.dims.length;t++)e.dims[t]<xr?r.write(16,e.dims[t]):(r.write(16,xr),r.write(32,0),r.write(32,e.dims[t]));else for(t=0;t<e.dims.length;t++)r.write(32,e.dims[t]);switch(e.kind){case 2:case 3:case 12:for(t=0;t<e.data.length;t++)r.write(8,e.data[t]);break;case 4:case 5:for(t=0;t<e.data.length;t++)r.write(16,e.data[t]);break;case 6:for(t=0;t<e.data.length;t++)r.write(32,e.data[t]);break;case 8:case 9:r.write(8,0);for(t=0;t<e.data.length;t++)r.write(32,e.data[t]);break;case 7:for(t=0;t<e.data.length/2;t++)for(var a=Wv(e.get(t)),u=0;u<8;u++)r.write(8,a[u]);break;case 1:for(t=0;t<e.data.length;t++)for(a=Wv(nb(e.get(t))),u=0;u<8;u++)r.write(8,a[u]);break;case 0:for(t=0;t<e.data.length;t++){a=rb(e.get(t));r.write(32,a)}break;case 10:for(t=0;t<e.data.length/2;t++){u=e.get(t);r.write(32,rb(u[1])),r.write(32,rb(u[2]))}break;case 11:for(t=0;t<e.data.length/2;t++){var c=e.get(t);for(a=Wv(nb(c[1])),u=0;u<8;u++)r.write(8,a[u]);for(a=Wv(nb(c[2])),u=0;u<8;u++)r.write(8,a[u])}}n[0]=4*(4+e.dims.length),n[1]=8*(4+e.dims.length)}function ab(r){var e=new Int32Array(1);return e[0]=r,new Float32Array(e.buffer)[0]}function ub(r){return new Iv(r[7]|r[6]<<8|r[5]<<16,r[4]|r[3]<<8|r[2]<<16,r[1]|r[0]<<8)}function cb(r){var e=r.lo,n=r.mi,t=r.hi,a=(32767&t)>>4;if(2047===a)return e|n|15&t?Number.NaN:t&Fs?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;var u=Math.pow(2,-24),c=(e*u+n)*u+(15&t);return a>0?(c+=16,c*=Math.pow(2,a-ji)):c*=Math.pow(2,-tl),t&Fs&&(c=-c),c}function ib(r){hv.Failure||(hv.Failure=[kl,k,-3]),mv(hv.Failure,r)}function fb(r,e,n){var t=r.read32s();(t<0||t>16)&&ib("input_value: wrong number of bigarray dimensions");var a=r.read32s(),c=a&u,i=a>>8&1,f=[];if(n===hi)for(var s=0;s<t;s++){var o=r.read16u();if(o===xr){var l=r.read32u(),v=r.read32u();0!==l&&ib("input_value: bigarray dimension overflow in 32bit"),o=v}f.push(o)}else for(s=0;s<t;s++)f.push(r.read32u());var b=wv(f),p=xv(c,b),h=Rv(c,i,f,p);switch(c){case 2:for(s=0;s<b;s++)p[s]=r.read8s();break;case 3:case 12:for(s=0;s<b;s++)p[s]=r.read8u();break;case 4:for(s=0;s<b;s++)p[s]=r.read16s();break;case 5:for(s=0;s<b;s++)p[s]=r.read16u();break;case 6:for(s=0;s<b;s++)p[s]=r.read32s();break;case 8:case 9:r.read8u()&&ib("input_value: cannot read bigarray with 64-bit OCaml ints");for(s=0;s<b;s++)p[s]=r.read32s();break;case 7:var d=new Array(8);for(s=0;s<b;s++){for(var m=0;m<8;m++)d[m]=r.read8u();var k=ub(d);h.set(s,k)}break;case 1:for(d=new Array(8),s=0;s<b;s++){for(m=0;m<8;m++)d[m]=r.read8u();var y=cb(ub(d));h.set(s,y)}break;case 0:for(s=0;s<b;s++){y=ab(r.read32s());h.set(s,y)}break;case 10:for(s=0;s<b;s++){var x=ab(r.read32s()),w=ab(r.read32s());h.set(s,[oa,x,w])}break;case 11:for(d=new Array(8),s=0;s<b;s++){for(m=0;m<8;m++)d[m]=r.read8u();for(x=cb(ub(d)),m=0;m<8;m++)d[m]=r.read8u();w=cb(ub(d));h.set(s,[oa,x,w])}}return e[0]=4*(4+t),Rv(c,i,f,p)}function sb(r,e,n){return r.compare(e,n)}function ob(r,e){return Math.imul(r,e)}function lb(r,e){return e=ob(e,-862048943),((r=(r^=e=ob(e=e<<15|e>>>17,461845907))<<13|r>>>19)+(r<<2)|0)-430675100|0}function vb(r,e){return function(r,e){return r=lb(r,Mv(e)),lb(r,Tv(e))}(r,nb(e))}function bb(r){var e=wv(r.dims),n=0;switch(r.kind){case 2:case 3:case 12:e>Sc&&(e=Sc);var t=0,a=0;for(a=0;a+4<=r.data.length;a+=4)n=lb(n,t=r.data[a+0]|r.data[a+1]<<8|r.data[a+2]<<16|r.data[a+3]<<24);switch(t=0,3&e){case 3:t=r.data[a+2]<<16;case 2:t|=r.data[a+1]<<8;case 1:n=lb(n,t|=r.data[a+0])}break;case 4:case 5:e>no&&(e=no);t=0,a=0;for(a=0;a+2<=r.data.length;a+=2)n=lb(n,t=r.data[a+0]|r.data[a+1]<<16);1&e&&(n=lb(n,r.data[a]));break;case 6:e>64&&(e=64);for(a=0;a<e;a++)n=lb(n,r.data[a]);break;case 8:case 9:e>64&&(e=64);for(a=0;a<e;a++)n=lb(n,r.data[a]);break;case 7:e>32&&(e=32),e*=2;for(a=0;a<e;a++)n=lb(n,r.data[a]);break;case 10:e*=2;case 0:e>64&&(e=64);for(a=0;a<e;a++)n=vb(n,r.data[a]);break;case 11:e*=2;case 1:e>32&&(e=32);for(a=0;a<e;a++)n=vb(n,r.data[a])}return n}function pb(r,e,n){return r.compare(e)}var hb={_j:{deserialize:function(r,e){for(var n=new Array(8),t=0;t<8;t++)n[t]=r.read8u();return e[0]=8,ub(n)},serialize:function(r,e,n){for(var t=Wv(e),a=0;a<8;a++)r.write(8,t[a]);n[0]=8,n[1]=8},fixed_length:8,compare:pb,hash:function(r){return r.lo32()^r.hi32()}},_i:{deserialize:function(r,e){return e[0]=4,r.read32s()},fixed_length:4},_n:{deserialize:function(r,e){switch(r.read8u()){case 1:return e[0]=4,r.read32s();case 2:ib("input_value: native integer value too large");break;default:ib("input_value: ill-formed native integer")}},fixed_length:4},_bigarray:{deserialize:function(r,e){return fb(r,e,"_bigarray")},serialize:tb,compare:sb,hash:bb},_bigarr02:{deserialize:function(r,e){return fb(r,e,hi)},serialize:tb,compare:sb,hash:bb}};function db(r){return hb[r.caml_custom]&&hb[r.caml_custom].compare}function mb(r,e,n,t){var a=db(e);if(a){var u=n>0?a(e,r,t):a(r,e,t);if(t&&Number.isNaN(u))return n;if(Number.isNaN(+u))return+u;if(0|u)return 0|u}return n}function kb(r){return"string"==typeof r&&!/[^\x00-\xff]/.test(r)}function yb(r){return r instanceof Uv}function xb(r){if("number"==typeof r)return Sr;if(yb(r))return su;if(kb(r))return 1252;if(Array.isArray(r)&&r[0]===r[0]>>>0&&r[0]<=xt){var e=0|r[0];return e===oa?0:e}return r instanceof String||"string"==typeof r?12520:r instanceof Number?Sr:r&&r.caml_custom?Ie:r&&r.compare?1256:"function"==typeof r?1247:"symbol"==typeof r?1251:1001}function wb(r,e){return r<e?-1:r===e?0:1}function _b(r,e){return r<e?-1:r>e?1:0}function Nb(r,e){return 6&r.t&&Hv(r),6&e.t&&Hv(e),r.c<e.c?-1:r.c>e.c?1:0}function gb(r,e,n){for(var t=[];;){if(!n||r!==e){var a=xb(r);if(a===rv){r=r[1];continue}var u=xb(e);if(u===rv){e=e[1];continue}if(a!==u)return a===Sr?u===Ie?mb(r,e,-1,n):-1:u===Sr?a===Ie?mb(e,r,1,n):1:a<u?-1:1;switch(a){case 247:case 249:case 1247:kv(Br);break;case 248:if(0!==(i=0|wb(r[2],e[2])))return i;break;case 250:kv("equal: got Forward_tag, should not happen");break;case 251:kv("equal: abstract value");break;case 252:if(r!==e)if(0!==(i=0|Nb(r,e)))return i;break;case 253:kv("equal: got Double_tag, should not happen");break;case 254:kv("equal: got Double_array_tag, should not happen");break;case 255:kv("equal: got Custom_tag, should not happen");break;case 1255:var c=db(r);if(c!==db(e))return r.caml_custom<e.caml_custom?-1:1;c||kv("compare: abstract value");var i=c(r,e,n);if(Number.isNaN(i))return n?-1:i;if(i!==(0|i))return-1;if(0!==i)return 0|i;break;case 1256:i=r.compare(e,n);if(Number.isNaN(i))return n?-1:i;if(i!==(0|i))return-1;if(0!==i)return 0|i;break;case 1e3:if((r=+r)<(e=+e))return-1;if(r>e)return 1;if(r!==e){if(!n)return Number.NaN;if(!Number.isNaN(r))return 1;if(!Number.isNaN(e))return-1}break;case 1001:if(r<e)return-1;if(r>e)return 1;if(r!==e)return n?1:Number.NaN;break;case 1251:if(r!==e)return n?1:Number.NaN;break;case 1252:if((r=r)!==(e=e)){if(r<e)return-1;if(r>e)return 1}break;case 12520:if((r=r.toString())!==(e=e.toString())){if(r<e)return-1;if(r>e)return 1}break;default:if(r.length!==e.length)return r.length<e.length?-1:1;r.length>1&&t.push(r,e,1)}}if(0===t.length)return 0;var f=t.pop();e=t.pop(),f+1<(r=t.pop()).length&&t.push(r,e,f+1),r=r[f],e=e[f]}}function Ib(r,e){return gb(r,e,!0)}function Tb(r){return r<0&&kv("Bytes.create"),new Uv(r?2:9,ic,r)}function Mb(r){return Jv(r)?r:Ov(r)}var Ab,Eb=function(){function r(r){if(r.charAt(0)===Ge)return[ic,r.slice(1)]}return r}();function Bb(r){return r.slice(-1)!==Ge?r+Ge:r}function Pb(r){return Jv(r)?r:function(r){for(var e,n,t=ic,a=t,u=0,c=r.length;u<c;u++){if((e=r.charCodeAt(u))<Cs){for(var i=u+1;i<c&&(e=r.charCodeAt(i))<Cs;i++);if(i-u>el?(a.slice(0,1),t+=a,a=ic,t+=r.slice(u,i)):a+=r.slice(u,i),i===c)break;u=i}e<2048?(a+=String.fromCharCode(192|e>>6),a+=String.fromCharCode(Cs|e&gc)):e<55296||e>=57343?a+=String.fromCharCode(224|e>>12,Cs|e>>6&gc,Cs|e&gc):e>=56319||u+1===c||(n=r.charCodeAt(u+1))<56320||n>57343?a+="�":(u++,e=(e<<10)+n-56613888,a+=String.fromCharCode(240|e>>18,Cs|e>>12&gc,Cs|e>>6&gc,Cs|e&gc)),a.length>Ui&&(a.slice(0,1),t+=a,a=ic)}return t+a}(r)}Ab=Bb(Ab="/static");var Rb=[Mc,yf,Na,ql,V,Pl,Kn,Aa,z,oe,$o,_f,At,"EIO",Po,Da,S,pn,Kl,Sf,ot,Pf,dl,q,Kc,Ps,En,ge,Bi,ne,ll,ee,iu,bu,ye,Xs,gr,Xc,br,Vc,De,j,kn,eo,Zr,ze,dn,vt,rr,$a,Tn,bo,Vo,lr,vi,sf,Ho,da,uv,ks,Ws,Lr,Eu,qe,tu,ca,xn,N];function Cb(r,e,n,t){var a=Rb.indexOf(r);return a<0&&(null==t&&(t=-9999),a=[0,t]),[a,Pb(e||ic),Pb(n||ic)]}var Lb={};function Sb(r){return Lb[r]}function $b(r,e){throw dv([0,r].concat(e))}function Db(r){return r instanceof Uint8Array||(r=new Uint8Array(r)),new Uv(4,r,r.length)}function Hb(r){mv(hv.Sys_error,r)}function Jb(r){Hb(r+Z)}function Ob(r){return 4!==r.t&&Sv(r),r.c}function Ub(r){return r.l}function jb(r){this.data=r}function Fb(r,e,n){this.file=e,this.name=r,this.flags=n}function zb(r,e){this.content={},this.root=r,this.lookupFun=e}function qb(r){var e=Eb(r);if(e)return e[0]+Ge}jb.prototype=new function(){},jb.prototype.constructor=jb,jb.prototype.truncate=function(r){var e=this.data;this.data=Tb(0|r),$v(e,0,this.data,0,r)},jb.prototype.length=function(){return Ub(this.data)},jb.prototype.write=function(r,e,n,t){var a=this.length();if(r+t>=a){var u=Tb(r+t),c=this.data;this.data=u,$v(c,0,this.data,0,a)}return $v(Db(e),n,this.data,r,t),0},jb.prototype.read=function(r,e,n,t){var a=this.length();if(r+t>=a&&(t=a-r),t){var u=Tb(0|t);$v(this.data,r,u,0,t),e.set(Ob(u),n)}return t},Fb.prototype.err_closed=function(){Hb(this.name+vu)},Fb.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()},Fb.prototype.write=function(r,e,n,t){if(this.file)return this.file.write(r,e,n,t);this.err_closed()},Fb.prototype.read=function(r,e,n,t){if(this.file)return this.file.read(r,e,n,t);this.err_closed()},Fb.prototype.close=function(){this.file=void 0},zb.prototype.nm=function(r){return this.root+r},zb.prototype.create_dir_if_needed=function(r){for(var e=r.split(Ge),n=ic,t=0;t<e.length-1;t++)n+=e[t]+Ge,this.content[n]||(this.content[n]=Symbol("directory"))},zb.prototype.slash=function(r){return/\/$/.test(r)?r:r+Ge},zb.prototype.lookup=function(r){if(!this.content[r]&&this.lookupFun){var e=this.lookupFun(this.root,r);0!==e&&(this.create_dir_if_needed(r),this.content[r]=new jb(Fv(e[1])))}},zb.prototype.exists=function(r,e){if(r===ic)return 1;var n=this.slash(r);return this.content[n]?1:(e||this.lookup(r),this.content[r]?1:0)},zb.prototype.isFile=function(r){return this.exists(r)&&!this.is_dir(r)?1:0},zb.prototype.mkdir=function(r,e,n){var t=n&&Sb(y);this.exists(r)&&(t?$b(t,Cb(z,yi,this.nm(r))):Hb(r+": File exists"));var a=/^(.*)\/[^/]+/.exec(r);a=a&&a[1]||ic,this.exists(a)||(t?$b(t,Cb(ot,yi,this.nm(a))):Hb(a+Z)),this.is_dir(a)||(t?$b(t,Cb(En,yi,this.nm(a))):Hb(a+za)),this.create_dir_if_needed(this.slash(r))},zb.prototype.rmdir=function(r,e){var n=e&&Sb(y),t=r===ic?ic:this.slash(r),a=new RegExp("^"+t+Lt);for(var u in this.exists(r)||(n?$b(n,Cb(ot,bl,this.nm(r))):Hb(r+Z)),this.is_dir(r)||(n?$b(n,Cb(En,bl,this.nm(r))):Hb(r+za)),this.content)u.match(a)&&(n?$b(n,Cb(ge,bl,this.nm(r))):Hb(this.nm(r)+": Directory not empty"));delete this.content[t]},zb.prototype.readdir=function(r){var e=r===ic?ic:this.slash(r);this.exists(r)||Hb(r+Z),this.is_dir(r)||Hb(r+za);var n=new RegExp("^"+e+Lt),t={},a=[];for(var u in this.content){var c=u.match(n);c&&!t[c[1]]&&(t[c[1]]=!0,a.push(c[1]))}return a},zb.prototype.opendir=function(r,e){var n=e&&Sb(y),t=this.readdir(r),a=!1,u=0;return{readSync:function(){if(a&&(n?$b(n,Cb(ql,nc,this.nm(r))):Hb(r+ra)),u===t.length)return null;var e=t[u];return u++,{name:e}},closeSync:function(){a&&(n?$b(n,Cb(ql,nc,this.nm(r))):Hb(r+ra)),a=!0,t=[]}}},zb.prototype.is_dir=function(r){if(r===ic)return!0;var e=this.slash(r);return this.content[e]?1:0},zb.prototype.unlink=function(r){return this.exists(r,!0)||Hb(r+Z),delete this.content[r],0},zb.prototype.open=function(r,e){var n;return e.rdonly&&e.wronly&&Hb(this.nm(r)+or),e.text&&e.binary&&Hb(this.nm(r)+Ua),this.lookup(r),this.content[r]?(this.is_dir(r)&&Hb(this.nm(r)+Al),e.create&&e.excl&&Hb(this.nm(r)+ro),n=this.content[r],e.truncate&&n.truncate()):e.create?(this.create_dir_if_needed(r),this.content[r]=new jb(Tb(0)),n=this.content[r]):Jb(this.nm(r)),new Fb(this.nm(r),n,e)},zb.prototype.open=function(r,e){var n;return e.rdonly&&e.wronly&&Hb(this.nm(r)+or),e.text&&e.binary&&Hb(this.nm(r)+Ua),this.lookup(r),this.content[r]?(this.is_dir(r)&&Hb(this.nm(r)+Al),e.create&&e.excl&&Hb(this.nm(r)+ro),n=this.content[r],e.truncate&&n.truncate()):e.create?(this.create_dir_if_needed(r),this.content[r]=new jb(Tb(0)),n=this.content[r]):Jb(this.nm(r)),new Fb(this.nm(r),n,e)},zb.prototype.register=function(r,e){var n;if(this.content[r]&&Hb(this.nm(r)+ro),yb(e)&&(n=new jb(e)),kb(e))n=new jb(Fv(e));else if(Array.isArray(e))n=new jb(Db(e));else if("string"==typeof e)n=new jb(jv(e));else if(e.toString){n=new jb(Fv(Pb(e.toString())))}n?(this.create_dir_if_needed(r),this.content[r]=n):Hb(this.nm(r)+" : registering file with invalid content type")},zb.prototype.constructor=zb;var Vb=qb(Ab)||ib("unable to compute caml_root"),Gb=[];function Xb(r){for(var e,n=function(r){r=Mb(r),Eb(r)||(r=Ab+r);for(var e=Eb(r),n=e[1].split(/[/\\]/),t=[],a=0;a<n.length;a++)switch(n[a]){case"..":t.length>1&&t.pop();break;case".":case"":break;default:t.push(n[a])}return t.unshift(e[0]),t.orig=r,t}(r),t=Bb(r=n.join(Ge)),a=0;a<Gb.length;a++){var u=Gb[a];0===t.search(u.path)&&(!e||e.path.length<u.path.length)&&(e={path:u.path,device:u.device,rest:r.slice(u.path.length,r.length)})}if(e)return e;Hb("no device found for "+t)}function Qb(r,e){return 0===e&&gv(),r/e|0}function Wb(r,e){return+(0===gb(r,e,!1))}function Yb(r){var e,n=/^ *[-+]?(?:\d*\.?\d+|\d+\.?\d*)(?:[eE][-+]?\d+)?$/;if(e=+r,!Number.isNaN(e)&&n.test(r))return e;if(e=+(r=r.replace(/_/g,ic)),!Number.isNaN(e)&&n.test(r)||/^[+-]?nan$/i.test(r))return e;var t=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)(p([+-]?[0-9]+))?$/i.exec(r);if(t){var a=t[3].replace(/0+$/,ic),u=Number.parseInt(t[1]+t[2]+a,16),c=(0|t[5])-4*a.length;return e=u*Math.pow(2,c)}return/^\+?inf(inity)?$/i.test(r)?Number.POSITIVE_INFINITY:/^-inf(inity)?$/i.test(r)?Number.NEGATIVE_INFINITY:void ib("float_of_string")}function Zb(r){var e=r.length;e>31&&kv("format_int: format too long");for(var n={justify:Ln,signstyle:lu,filler:Jt,alternate:!1,base:0,signedconv:!1,width:0,uppercase:!1,sign:1,prec:-1,conv:"f"},t=0;t<e;t++){var a=r.charAt(t);switch(a){case"-":n.justify=lu;break;case"+":case" ":n.signstyle=a;break;case"0":n.filler=jf;break;case"#":n.alternate=!0;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(n.width=0;(a=r.charCodeAt(t)-48)>=0&&a<=9;)n.width=10*n.width+a,t++;t--;break;case".":for(n.prec=0,t++;(a=r.charCodeAt(t)-48)>=0&&a<=9;)n.prec=10*n.prec+a,t++;t--;break;case"d":case"i":n.signedconv=!0,n.base=10;break;case"u":n.base=10;break;case"x":n.base=16;break;case"X":n.base=16,n.uppercase=!0;break;case"o":n.base=8;break;case"e":case"f":case"g":n.signedconv=!0,n.conv=a;break;case"E":case"F":case"G":n.signedconv=!0,n.uppercase=!0,n.conv=a.toLowerCase()}}return n}function Kb(r,e){r.uppercase&&(e=e.toUpperCase());var n=e.length;r.signedconv&&(r.sign<0||r.signstyle!==lu)&&n++,r.alternate&&(8===r.base&&(n+=1),16===r.base&&(n+=2));var t=ic;if(r.justify===Ln&&r.filler===Jt)for(var a=n;a<r.width;a++)t+=Jt;if(r.signedconv&&(r.sign<0?t+=lu:r.signstyle!==lu&&(t+=r.signstyle)),r.alternate&&8===r.base&&(t+=jf),r.alternate&&16===r.base&&(t+=r.uppercase?"0X":Gt),r.justify===Ln&&r.filler===jf)for(a=n;a<r.width;a++)t+=jf;if(t+=e,r.justify===lu)for(a=n;a<r.width;a++)t+=Jt;return t}function rp(r,e){var n=Zb(r),t=n.prec<0?6:n.prec;if((e<0||0===e&&1/e===Number.NEGATIVE_INFINITY)&&(n.sign=-1,e=-e),Number.isNaN(e))a=vl,n.filler=Jt;else if(Number.isFinite(e))switch(n.conv){case"e":var a,u=(a=e.toExponential(t)).length;a.charAt(u-3)===ct&&(a=a.slice(0,u-1)+jf+a.slice(u-1));break;case"f":a=function(r,e){if(Math.abs(r)<1)return r.toFixed(e);var n=Number.parseInt(r.toString().split(Ln)[1]);return n>20?(n-=20,r/=Math.pow(10,n),r+=new Array(n+1).join(jf),e>0&&(r=r+El+new Array(e+1).join(jf)),r):r.toFixed(e)}(e,t);break;case"g":t=t||1;var c=(a=e.toExponential(t-1)).indexOf(ct),i=+a.slice(c+1);if(i<-4||e>=1e21||e.toFixed(0).length>t){for(u=c-1;a.charAt(u)===jf;)u--;a.charAt(u)===El&&u--,u=(a=a.slice(0,u+1)+a.slice(c)).length,a.charAt(u-3)===ct&&(a=a.slice(0,u-1)+jf+a.slice(u-1));break}var f=t;if(i<0)f-=i+1,a=e.toFixed(f);else for(;(a=e.toFixed(f)).length>t+1;)f--;if(f){for(u=a.length-1;a.charAt(u)===jf;)u--;a.charAt(u)===El&&u--,a=a.slice(0,u+1)}}else a="inf",n.filler=Jt;return Kb(n,a)}function ep(r,e){if(r===Fl)return ic+e;var n=Zb(r);e<0&&(n.signedconv?(n.sign=-1,e=-e):e>>>=0);var t=e.toString(n.base);if(n.prec>=0){n.filler=Jt;var a=n.prec-t.length;a>0&&(t=Dv(a,jf)+t)}return Kb(n,t)}Gb.push({path:Vb,device:new zb(Vb)}),Gb.push({path:Jr,device:new zb(Jr)});var np=0;function tp(){return np++}function ap(r,e){return+(gb(r,e,!1)>=0)}function up(r,e){return+(gb(r,e,!1)>0)}function cp(r,e){var n,t,a=e.length;for(n=0;n+4<=a;n+=4)r=lb(r,t=e.charCodeAt(n)|e.charCodeAt(n+1)<<8|e.charCodeAt(n+2)<<16|e.charCodeAt(n+3)<<24);switch(t=0,3&a){case 3:t=e.charCodeAt(n+2)<<16;case 2:t|=e.charCodeAt(n+1)<<8;case 1:r=lb(r,t|=e.charCodeAt(n))}return r^=a}function ip(r,e){return cp(r,e)}function fp(r,e){var n=function(r){return 2==(6&r.t)?(Hv(r),r.c):r.c}(e);return"string"==typeof n?cp(r,n):function(r,e){var n,t,a=e.length;for(n=0;n+4<=a;n+=4)r=lb(r,t=e[n]|e[n+1]<<8|e[n+2]<<16|e[n+3]<<24);switch(t=0,3&a){case 3:t=e[n+2]<<16;case 2:t|=e[n+1]<<8;case 1:r=lb(r,t|=e[n])}return r^a}(r,n)}function sp(r,e,n,t){var a,u,c,i,f,s,o,l,v;for(((i=e)<0||i>Sc)&&(i=Sc),f=r,s=n,a=[t],u=0,c=1;u<c&&f>0;){if((o=a[u++])&&o.caml_custom){if(hb[o.caml_custom]&&hb[o.caml_custom].hash)s=lb(s,hb[o.caml_custom].hash(o)),f--}else if(Array.isArray(o)&&o[0]===(0|o[0]))switch(o[0]){case 248:s=lb(s,o[2]),f--;break;case 250:a[--u]=o[1];break;default:for(o[0],s=lb(s,o.length-1<<10|o[0]),l=1,v=o.length;l<v&&!(c>=i);l++)a[c++]=o[l]}else yb(o)?(s=fp(s,o),f--):kb(o)?(s=ip(s,o),f--):"string"==typeof o?(s=cp(s,o),f--):o===(0|o)?(s=lb(s,o+o+1),f--):"number"==typeof o&&(s=vb(s,o),f--)}return s=function(r){return r=ob(r^=r>>>16,-2048144789),r=ob(r^=r>>>13,-1028477387),r^r>>>16}(s),1073741823&s}function op(r,e,n){if(!Number.isFinite(r))return Number.isNaN(r)?Pb(vl):Pb(r>0?Es:"-infinity");var t=0===r&&1/r===Number.NEGATIVE_INFINITY?1:r>=0?0:1;t&&(r=-r);var a=0;if(0===r);else if(r<1)for(;r<1&&a>-1022;)r*=2,a--;else for(;r>=2;)r/=2,a++;var u=a<0?ic:Ln,c=ic;if(t)c=lu;else switch(n){case 43:c=Ln;break;case 32:c=Jt}if(e>=0&&e<13){var i=Math.pow(2,4*e);r=Math.round(r*i)/i}var f=r.toString(16);if(e>=0){var s=f.indexOf(El);if(s<0)f+=El+Dv(e,jf);else{var o=s+1+e;f.length<o?f+=Dv(o-f.length,jf):f=f.slice(0,o)}}return Pb(c+Gt+f+"p"+u+a.toString(10))}function lp(r,e){return r.add(e)}function vp(r,e){return r.and(e)}function bp(r,e){return r.div(e)}function pp(r){return+r.isZero()}function hp(r){return new Iv(r&Qo,r>>24&Qo,r>>31&xr)}function dp(r){return r.toInt()}function mp(r){return r.neg()}function kp(r,e){var n=Zb(r);n.signedconv&&function(r){return+r.isNeg()}(e)&&(n.sign=-1,e=mp(e));var t=ic,a=hp(n.base);do{var u=e.udivmod(a);e=u.quotient,t="0123456789abcdef".charAt(dp(u.modulus))+t}while(!pp(e));if(n.prec>=0){n.filler=Jt;var c=n.prec-t.length;c>0&&(t=Dv(c,jf)+t)}return Kb(n,t)}function yp(r,e){return r.mod(e)}function xp(r,e){return r.mul(e)}function wp(r){return r.length}function _p(r,e){return r.charCodeAt(e)}function Np(r,e){return r.ucompare(e)<0}function gp(r){var e=0,n=wp(r),t=10,a=1,u=1;if(n>0)switch(_p(r,e)){case 45:e++,a=-1;break;case 43:e++,a=1}if(e+1<n&&48===_p(r,e))switch(_p(r,e+1)){case 120:case 88:u=0,t=16,e+=2;break;case 111:case 79:u=0,t=8,e+=2;break;case 98:case 66:u=0,t=2,e+=2;break;case 117:case 85:u=0,e+=2}return[e,a,t,u]}function Ip(r){return r>=48&&r<=57?r-48:r>=65&&r<=90?r-55:r>=97&&r<=Kr?r-87:-1}function Tp(r,e){return r.or(e)}function Mp(r,e){return r.shift_left(e)}function Ap(r,e){return r.shift_right(e)}function Ep(r,e){return r.shift_right_unsigned(e)}function Bp(r,e){return r.sub(e)}function Pp(r){return r.toFloat()}function Rp(r,e){return r.xor(e)}function Cp(r){var e=gp(r),n=e[0],t=e[1],u=e[2],c=e[3],i=wp(r),f=n<i?_p(r,n):0,s=Ip(f);(s<0||s>=u)&&ib(a);var o=s;for(n++;n<i;n++)if(95!==(f=_p(r,n))){if((s=Ip(f))<0||s>=u)break;(o=u*o+s)>4294967295&&ib(a)}return n!==i&&ib(a),o*=t,c&&(0|o)!==o&&ib(a),0|o}function Lp(r){var e=r.length,n=new Array(e+1);n[0]=0;for(var t=0;t<e;t++)n[t+1]=r[t];return n}var Sp=Yv;function $p(r){return function(){var e=arguments.length;if(e>0)for(var n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];else n=[void 0];var a=Sp(r,n);return a instanceof Function?$p(a):a}}function Dp(r){return function(){var e=arguments.length,n=new Array(e+1);n[0]=this;for(var t=0;t<e;t++)n[t+1]=arguments[t];var a=Sp(r,n);return a instanceof Function?$p(a):a}}function Hp(r,e){return(e|=0)>ms&&(e-=ms,r*=Math.pow(2,ms),e>ms&&(e-=ms,r*=Math.pow(2,ms))),e<-ms&&(e+=ms,r*=Math.pow(2,-ms)),r*=Math.pow(2,e)}function Jp(r,e){return+(gb(r,e,!1)<=0)}function Op(r,e){return+(gb(r,e,!1)<0)}function Up(r){for(var e=r.length/2,n=new Array(e),t=0;t<e;t++)n[t]=(r.charCodeAt(2*t)|r.charCodeAt(2*t+1)<<8)<<16>>16;return n}function jp(r,e){return function(r,e){r<0&&Av(),r=r+1|0;var n=new Array(r);n[0]=0;for(var t=1;t<r;t++)n[t]=e;return n}(r,e)}var Fp=function(){function r(r,e){return r+e|0}function e(e,n,t,a,u,c){return n=r(r(n,e),r(a,c)),r(n<<u|n>>>32-u,t)}function n(r,n,t,a,u,c,i){return e(n&t|~n&a,r,n,u,c,i)}function t(r,n,t,a,u,c,i){return e(n&a|t&~a,r,n,u,c,i)}function a(r,n,t,a,u,c,i){return e(n^t^a,r,n,u,c,i)}function u(r,n,t,a,u,c,i){return e(t^(n|~a),r,n,u,c,i)}return function(e,c){var i=e[0],f=e[1],s=e[2],o=e[3];i=n(i,f,s,o,c[0],7,3614090360),o=n(o,i,f,s,c[1],12,3905402710),s=n(s,o,i,f,c[2],17,606105819),f=n(f,s,o,i,c[3],22,3250441966),i=n(i,f,s,o,c[4],7,4118548399),o=n(o,i,f,s,c[5],12,1200080426),s=n(s,o,i,f,c[6],17,2821735955),f=n(f,s,o,i,c[7],22,4249261313),i=n(i,f,s,o,c[8],7,1770035416),o=n(o,i,f,s,c[9],12,2336552879),s=n(s,o,i,f,c[10],17,4294925233),f=n(f,s,o,i,c[11],22,2304563134),i=n(i,f,s,o,c[12],7,1804603682),o=n(o,i,f,s,c[13],12,4254626195),s=n(s,o,i,f,c[14],17,2792965006),i=t(i,f=n(f,s,o,i,c[15],22,1236535329),s,o,c[1],5,4129170786),o=t(o,i,f,s,c[6],9,3225465664),s=t(s,o,i,f,c[11],14,643717713),f=t(f,s,o,i,c[0],20,3921069994),i=t(i,f,s,o,c[5],5,3593408605),o=t(o,i,f,s,c[10],9,38016083),s=t(s,o,i,f,c[15],14,3634488961),f=t(f,s,o,i,c[4],20,3889429448),i=t(i,f,s,o,c[9],5,568446438),o=t(o,i,f,s,c[14],9,3275163606),s=t(s,o,i,f,c[3],14,4107603335),f=t(f,s,o,i,c[8],20,1163531501),i=t(i,f,s,o,c[13],5,2850285829),o=t(o,i,f,s,c[2],9,4243563512),s=t(s,o,i,f,c[7],14,1735328473),i=a(i,f=t(f,s,o,i,c[12],20,2368359562),s,o,c[5],4,4294588738),o=a(o,i,f,s,c[8],11,2272392833),s=a(s,o,i,f,c[11],16,1839030562),f=a(f,s,o,i,c[14],23,4259657740),i=a(i,f,s,o,c[1],4,2763975236),o=a(o,i,f,s,c[4],11,1272893353),s=a(s,o,i,f,c[7],16,4139469664),f=a(f,s,o,i,c[10],23,3200236656),i=a(i,f,s,o,c[13],4,681279174),o=a(o,i,f,s,c[0],11,3936430074),s=a(s,o,i,f,c[3],16,3572445317),f=a(f,s,o,i,c[6],23,76029189),i=a(i,f,s,o,c[9],4,3654602809),o=a(o,i,f,s,c[12],11,3873151461),s=a(s,o,i,f,c[15],16,530742520),i=u(i,f=a(f,s,o,i,c[2],23,3299628645),s,o,c[0],6,4096336452),o=u(o,i,f,s,c[7],10,1126891415),s=u(s,o,i,f,c[14],15,2878612391),f=u(f,s,o,i,c[5],21,4237533241),i=u(i,f,s,o,c[12],6,1700485571),o=u(o,i,f,s,c[3],10,2399980690),s=u(s,o,i,f,c[10],15,4293915773),f=u(f,s,o,i,c[1],21,2240044497),i=u(i,f,s,o,c[8],6,1873313359),o=u(o,i,f,s,