var $n=function(){var be=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(t){t=t||{};var t=typeof t<"u"?t:{},he,se;t.ready=new Promise(function(e,r){he=e,se=r});var I={},z;for(z in t)t.hasOwnProperty(z)&&(I[z]=t[z]);var ve="./this.program",nn=!0,F="";function _n(e){return t.locateFile?t.locateFile(e,F):F+e}var on;typeof document<"u"&&document.currentScript&&(F=document.currentScript.src),be&&(F=be),F.indexOf("blob:")!==0?F=F.substr(0,F.replace(/[?#].*/,"").lastIndexOf("/")+1):F="";var an=t.print||console.log.bind(console),L=t.printErr||console.warn.bind(console);for(z in I)I.hasOwnProperty(z)&&(t[z]=I[z]);I=null,t.arguments&&t.arguments,t.thisProgram&&(ve=t.thisProgram),t.quit&&t.quit;function pn(e,r){if(typeof WebAssembly.Function=="function"){for(var n={i:"i32",j:"i64",f:"f32",d:"f64"},i={parameters:[],results:r[0]=="v"?[]:[n[r[0]]]},p=1;p=i);)++p;if(p-r>16&&e.subarray&&Ae)return Ae.decode(e.subarray(r,p));for(var d="";r>10,56320|Y&1023)}}return d}function ee(e,r){return e?Pe(G,e,r):""}function ln(e,r,n,i){if(!(i>0))return 0;for(var p=n,d=n+i-1,m=0;m=55296&&f<=57343){var w=e.charCodeAt(++m);f=65536+((f&1023)<<10)|w&1023}if(f<=127){if(n>=d)break;r[n++]=f}else if(f<=2047){if(n+1>=d)break;r[n++]=192|f>>6,r[n++]=128|f&63}else if(f<=65535){if(n+2>=d)break;r[n++]=224|f>>12,r[n++]=128|f>>6&63,r[n++]=128|f&63}else{if(n+3>=d)break;r[n++]=240|f>>18,r[n++]=128|f>>12&63,r[n++]=128|f>>6&63,r[n++]=128|f&63}}return r[n]=0,n-p}function mn(e){for(var r=0,n=0;n=55296&&i<=57343&&(i=65536+((i&1023)<<10)|e.charCodeAt(++n)&1023),i<=127?++r:i<=2047?r+=2:i<=65535?r+=3:r+=4}return r}function fn(e,r){V.set(e,r)}function dn(e,r,n){for(var i=0;i>0]=e.charCodeAt(i);n||(V[r>>0]=0)}function yn(e,r){return e%r>0&&(e+=r-e%r),e}var Ne,V,G,y,ue;function De(e){Ne=e,t.HEAP8=V=new Int8Array(e),t.HEAP16=new Int16Array(e),t.HEAP32=y=new Int32Array(e),t.HEAPU8=G=new Uint8Array(e),t.HEAPU16=new Uint16Array(e),t.HEAPU32=new Uint32Array(e),t.HEAPF32=ue=new Float32Array(e),t.HEAPF64=new Float64Array(e)}t.INITIAL_MEMORY;var U,Se=[],Me=[],je=[];function gn(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)vn(t.preRun.shift());le(Se)}function bn(){le(Me)}function hn(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)wn(t.postRun.shift());le(je)}function vn(e){Se.unshift(e)}function Cn(e){Me.unshift(e)}function wn(e){je.unshift(e)}var W=0,J=null;function An(e){W++,t.monitorRunDependencies&&t.monitorRunDependencies(W)}function Pn(e){if(W--,t.monitorRunDependencies&&t.monitorRunDependencies(W),W==0&&J){var r=J;J=null,r()}}t.preloadedImages={},t.preloadedAudios={};function X(e){t.onAbort&&t.onAbort(e),e="Aborted("+e+")",L(e),we=!0,e+=". Build with -s ASSERTIONS=1 for more info.";var r=new WebAssembly.RuntimeError(e);throw se(r),r}var Nn="data:application/octet-stream;base64,";function Oe(e){return e.startsWith(Nn)}var j;j="navmesh.wasm",Oe(j)||(j=_n(j));function Re(e){try{if(e==j&&q)return new Uint8Array(q);if(!on)throw"both async and sync fetching of the wasm failed"}catch(r){X(r)}}function Dn(){return!q&&nn&&typeof fetch=="function"?fetch(j,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+j+"'";return e.arrayBuffer()}).catch(function(){return Re(j)}):Promise.resolve().then(function(){return Re(j)})}function Sn(){var e={a:Bn};function r(m,f){var w=m.exports;t.asm=w,$=t.asm.m,De($.buffer),U=t.asm.Jb,Cn(t.asm.n),Pn()}An();function n(m){r(m.instance)}function i(m){return Dn().then(function(f){return WebAssembly.instantiate(f,e)}).then(function(f){return f}).then(m,function(f){L("failed to asynchronously prepare wasm: "+f),X(f)})}function p(){return!q&&typeof WebAssembly.instantiateStreaming=="function"&&!Oe(j)&&typeof fetch=="function"?fetch(j,{credentials:"same-origin"}).then(function(m){var f=WebAssembly.instantiateStreaming(m,e);return f.then(n,function(w){return L("wasm streaming compile failed: "+w),L("falling back to ArrayBuffer instantiation"),i(n)})}):i(n)}if(t.instantiateWasm)try{var d=t.instantiateWasm(e,r);return d}catch(m){return L("Module.instantiateWasm callback failed with error: "+m),!1}return p().catch(se),{}}function le(e){for(;e.length>0;){var r=e.shift();if(typeof r=="function"){r(t);continue}var n=r.func;typeof n=="number"?r.arg===void 0?me(n)():me(n)(r.arg):n(r.arg===void 0?null:r.arg)}}var K=[];function me(e){var r=K[e];return r||(e>=K.length&&(K.length=e+1),K[e]=r=U.get(e)),r}function Ee(e,r){U.set(e,r),K[e]=r}function Mn(e){return en(e+16)+16}function jn(e){this.excPtr=e,this.ptr=e-16,this.set_type=function(r){y[this.ptr+4>>2]=r},this.get_type=function(){return y[this.ptr+4>>2]},this.set_destructor=function(r){y[this.ptr+8>>2]=r},this.get_destructor=function(){return y[this.ptr+8>>2]},this.set_refcount=function(r){y[this.ptr>>2]=r},this.set_caught=function(r){r=r?1:0,V[this.ptr+12>>0]=r},this.get_caught=function(){return V[this.ptr+12>>0]!=0},this.set_rethrown=function(r){r=r?1:0,V[this.ptr+13>>0]=r},this.get_rethrown=function(){return V[this.ptr+13>>0]!=0},this.init=function(r,n){this.set_type(r),this.set_destructor(n),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var r=y[this.ptr>>2];y[this.ptr>>2]=r+1},this.release_ref=function(){var r=y[this.ptr>>2];return y[this.ptr>>2]=r-1,r===1}}function On(e,r,n){var i=new jn(e);throw i.init(r,n),e}function Rn(){X("")}function En(e,r,n){G.copyWithin(e,r,r+n)}function Tn(e){try{return $.grow(e-Ne.byteLength+65535>>>16),De($.buffer),1}catch{}}function Fn(e){var r=G.length;e=e>>>0;var n=2147483648;if(e>n)return!1;for(var i=1;i<=4;i*=2){var p=r*(1+.2/i);p=Math.min(p,e+100663296);var d=Math.min(n,yn(Math.max(e,p),65536)),m=Tn(d);if(m)return!0}return!1}var fe={};function zn(){return ve||"./this.program"}function Z(){if(!Z.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:zn()};for(var n in fe)fe[n]===void 0?delete r[n]:r[n]=fe[n];var i=[];for(var n in r)i.push(n+"="+r[n]);Z.strings=i}return Z.strings}var B={mappings:{},buffers:[null,[],[]],printChar:function(e,r){var n=B.buffers[e];r===0||r===10?((e===1?an:L)(Pe(n,0)),n.length=0):n.push(r)},varargs:void 0,get:function(){B.varargs+=4;var e=y[B.varargs-4>>2];return e},getStr:function(e){var r=ee(e);return r},get64:function(e,r){return e}};function Vn(e,r){var n=0;return Z().forEach(function(i,p){var d=r+n;y[e+p*4>>2]=d,dn(i,d),n+=i.length+1}),0}function kn(e,r){var n=Z();y[e>>2]=n.length;var i=0;return n.forEach(function(p){i+=p.length+1}),y[r>>2]=i,0}function xn(e){return 0}function Wn(e,r,n,i){var p=B.getStreamFromFD(e),d=B.doReadv(p,r,n);return y[i>>2]=d,0}function Yn(e,r,n,i,p){}function Hn(e,r,n,i){for(var p=0,d=0;d>2],f=y[r+4>>2];r+=8;for(var w=0;w>2]=p,0}function te(e){return e%4===0&&(e%100!==0||e%400===0)}function de(e,r){for(var n=0,i=0;i<=r;n+=e[i++]);return n}var re=[31,29,31,30,31,30,31,31,30,31,30,31],ne=[31,28,31,30,31,30,31,31,30,31,30,31];function _e(e,r){for(var n=new Date(e.getTime());r>0;){var i=te(n.getFullYear()),p=n.getMonth(),d=(i?re:ne)[p];if(r>d-n.getDate())r-=d-n.getDate()+1,n.setDate(1),p<11?n.setMonth(p+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1));else return n.setDate(n.getDate()+r),n}return n}function Ln(e,r,n,i){var p=y[i+40>>2],d={tm_sec:y[i>>2],tm_min:y[i+4>>2],tm_hour:y[i+8>>2],tm_mday:y[i+12>>2],tm_mon:y[i+16>>2],tm_year:y[i+20>>2],tm_wday:y[i+24>>2],tm_yday:y[i+28>>2],tm_isdst:y[i+32>>2],tm_gmtoff:y[i+36>>2],tm_zone:p?ee(p):""},m=ee(n),f={"%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"};for(var w in f)m=m.replace(new RegExp(w,"g"),f[w]);var Y=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],oe=["January","February","March","April","May","June","July","August","September","October","November","December"];function ae(a,s,A){for(var b=typeof a=="number"?a.toString():a||"";b.length0?1:0}var b;return(b=A(a.getFullYear()-s.getFullYear()))===0&&(b=A(a.getMonth()-s.getMonth()))===0&&(b=A(a.getDate()-s.getDate())),b}function pe(a){switch(a.getDay()){case 0:return new Date(a.getFullYear()-1,11,29);case 1:return a;case 2:return new Date(a.getFullYear(),0,3);case 3:return new Date(a.getFullYear(),0,2);case 4:return new Date(a.getFullYear(),0,1);case 5:return new Date(a.getFullYear()-1,11,31);case 6:return new Date(a.getFullYear()-1,11,30)}}function tn(a){var s=_e(new Date(a.tm_year+1900,0,1),a.tm_yday),A=new Date(s.getFullYear(),0,4),b=new Date(s.getFullYear()+1,0,4),T=pe(A),x=pe(b);return k(T,s)<=0?k(x,s)<=0?s.getFullYear()+1:s.getFullYear():s.getFullYear()-1}var rn={"%a":function(a){return Y[a.tm_wday].substring(0,3)},"%A":function(a){return Y[a.tm_wday]},"%b":function(a){return oe[a.tm_mon].substring(0,3)},"%B":function(a){return oe[a.tm_mon]},"%C":function(a){var s=a.tm_year+1900;return M(s/100|0,2)},"%d":function(a){return M(a.tm_mday,2)},"%e":function(a){return ae(a.tm_mday,2," ")},"%g":function(a){return tn(a).toString().substring(2)},"%G":function(a){return tn(a)},"%H":function(a){return M(a.tm_hour,2)},"%I":function(a){var s=a.tm_hour;return s==0?s=12:s>12&&(s-=12),M(s,2)},"%j":function(a){return M(a.tm_mday+de(te(a.tm_year+1900)?re:ne,a.tm_mon-1),3)},"%m":function(a){return M(a.tm_mon+1,2)},"%M":function(a){return M(a.tm_min,2)},"%n":function(){return` `},"%p":function(a){return a.tm_hour>=0&&a.tm_hour<12?"AM":"PM"},"%S":function(a){return M(a.tm_sec,2)},"%t":function(){return" "},"%u":function(a){return a.tm_wday||7},"%U":function(a){var s=new Date(a.tm_year+1900,0,1),A=s.getDay()===0?s:_e(s,7-s.getDay()),b=new Date(a.tm_year+1900,a.tm_mon,a.tm_mday);if(k(A,b)<0){var T=de(te(b.getFullYear())?re:ne,b.getMonth()-1)-31,x=31-A.getDate(),H=x+T+b.getDate();return M(Math.ceil(H/7),2)}return k(A,s)===0?"01":"00"},"%V":function(a){var s=new Date(a.tm_year+1900,0,4),A=new Date(a.tm_year+1901,0,4),b=pe(s),T=pe(A),x=_e(new Date(a.tm_year+1900,0,1),a.tm_yday);if(k(x,b)<0)return"53";if(k(T,x)<=0)return"01";var H;return b.getFullYear()=0;return s=Math.abs(s)/60,s=s/60*100+s%60,(A?"+":"-")+("0000"+s).slice(-4)},"%Z":function(a){return a.tm_zone},"%%":function(){return"%"}};for(var w in rn)m.includes(w)&&(m=m.replace(new RegExp(w,"g"),rn[w](d)));var ge=Un(m,!1);return ge.length>r?0:(fn(ge,e),ge.length-1)}function Qn(e,r,n,i){return Ln(e,r,n,i)}function Un(e,r,n){var i=n>0?n:mn(e)+1,p=new Array(i),d=ln(e,p,0,p.length);return r&&(p.length=d),p}var Bn={l:Mn,k:On,b:Rn,j:En,a:Fn,g:Vn,h:kn,c:xn,e:Wn,i:Yn,d:Hn,f:Qn};Sn(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.n).apply(null,arguments)};var Te=t._emscripten_bind_VoidPtr___destroy___0=function(){return(Te=t._emscripten_bind_VoidPtr___destroy___0=t.asm.o).apply(null,arguments)},Fe=t._emscripten_bind_rcConfig_rcConfig_0=function(){return(Fe=t._emscripten_bind_rcConfig_rcConfig_0=t.asm.p).apply(null,arguments)},ze=t._emscripten_bind_rcConfig_get_width_0=function(){return(ze=t._emscripten_bind_rcConfig_get_width_0=t.asm.q).apply(null,arguments)},Ve=t._emscripten_bind_rcConfig_set_width_1=function(){return(Ve=t._emscripten_bind_rcConfig_set_width_1=t.asm.r).apply(null,arguments)},ke=t._emscripten_bind_rcConfig_get_height_0=function(){return(ke=t._emscripten_bind_rcConfig_get_height_0=t.asm.s).apply(null,arguments)},xe=t._emscripten_bind_rcConfig_set_height_1=function(){return(xe=t._emscripten_bind_rcConfig_set_height_1=t.asm.t).apply(null,arguments)},We=t._emscripten_bind_rcConfig_get_tileSize_0=function(){return(We=t._emscripten_bind_rcConfig_get_tileSize_0=t.asm.u).apply(null,arguments)},Ye=t._emscripten_bind_rcConfig_set_tileSize_1=function(){return(Ye=t._emscripten_bind_rcConfig_set_tileSize_1=t.asm.v).apply(null,arguments)},He=t._emscripten_bind_rcConfig_get_borderSize_0=function(){return(He=t._emscripten_bind_rcConfig_get_borderSize_0=t.asm.w).apply(null,arguments)},Le=t._emscripten_bind_rcConfig_set_borderSize_1=function(){return(Le=t._emscripten_bind_rcConfig_set_borderSize_1=t.asm.x).apply(null,arguments)},Qe=t._emscripten_bind_rcConfig_get_cs_0=function(){return(Qe=t._emscripten_bind_rcConfig_get_cs_0=t.asm.y).apply(null,arguments)},Ue=t._emscripten_bind_rcConfig_set_cs_1=function(){return(Ue=t._emscripten_bind_rcConfig_set_cs_1=t.asm.z).apply(null,arguments)},Be=t._emscripten_bind_rcConfig_get_ch_0=function(){return(Be=t._emscripten_bind_rcConfig_get_ch_0=t.asm.A).apply(null,arguments)},Ie=t._emscripten_bind_rcConfig_set_ch_1=function(){return(Ie=t._emscripten_bind_rcConfig_set_ch_1=t.asm.B).apply(null,arguments)},qe=t._emscripten_bind_rcConfig_get_bmin_1=function(){return(qe=t._emscripten_bind_rcConfig_get_bmin_1=t.asm.C).apply(null,arguments)},Ge=t._emscripten_bind_rcConfig_set_bmin_2=function(){return(Ge=t._emscripten_bind_rcConfig_set_bmin_2=t.asm.D).apply(null,arguments)},Je=t._emscripten_bind_rcConfig_get_bmax_1=function(){return(Je=t._emscripten_bind_rcConfig_get_bmax_1=t.asm.E).apply(null,arguments)},Xe=t._emscripten_bind_rcConfig_set_bmax_2=function(){return(Xe=t._emscripten_bind_rcConfig_set_bmax_2=t.asm.F).apply(null,arguments)},Ke=t._emscripten_bind_rcConfig_get_walkableSlopeAngle_0=function(){return(Ke=t._emscripten_bind_rcConfig_get_walkableSlopeAngle_0=t.asm.G).apply(null,arguments)},Ze=t._emscripten_bind_rcConfig_set_walkableSlopeAngle_1=function(){return(Ze=t._emscripten_bind_rcConfig_set_walkableSlopeAngle_1=t.asm.H).apply(null,arguments)},$e=t._emscripten_bind_rcConfig_get_walkableHeight_0=function(){return($e=t._emscripten_bind_rcConfig_get_walkableHeight_0=t.asm.I).apply(null,arguments)},et=t._emscripten_bind_rcConfig_set_walkableHeight_1=function(){return(et=t._emscripten_bind_rcConfig_set_walkableHeight_1=t.asm.J).apply(null,arguments)},tt=t._emscripten_bind_rcConfig_get_walkableClimb_0=function(){return(tt=t._emscripten_bind_rcConfig_get_walkableClimb_0=t.asm.K).apply(null,arguments)},rt=t._emscripten_bind_rcConfig_set_walkableClimb_1=function(){return(rt=t._emscripten_bind_rcConfig_set_walkableClimb_1=t.asm.L).apply(null,arguments)},nt=t._emscripten_bind_rcConfig_get_walkableRadius_0=function(){return(nt=t._emscripten_bind_rcConfig_get_walkableRadius_0=t.asm.M).apply(null,arguments)},_t=t._emscripten_bind_rcConfig_set_walkableRadius_1=function(){return(_t=t._emscripten_bind_rcConfig_set_walkableRadius_1=t.asm.N).apply(null,arguments)},it=t._emscripten_bind_rcConfig_get_maxEdgeLen_0=function(){return(it=t._emscripten_bind_rcConfig_get_maxEdgeLen_0=t.asm.O).apply(null,arguments)},ot=t._emscripten_bind_rcConfig_set_maxEdgeLen_1=function(){return(ot=t._emscripten_bind_rcConfig_set_maxEdgeLen_1=t.asm.P).apply(null,arguments)},at=t._emscripten_bind_rcConfig_get_maxSimplificationError_0=function(){return(at=t._emscripten_bind_rcConfig_get_maxSimplificationError_0=t.asm.Q).apply(null,arguments)},pt=t._emscripten_bind_rcConfig_set_maxSimplificationError_1=function(){return(pt=t._emscripten_bind_rcConfig_set_maxSimplificationError_1=t.asm.R).apply(null,arguments)},st=t._emscripten_bind_rcConfig_get_minRegionArea_0=function(){return(st=t._emscripten_bind_rcConfig_get_minRegionArea_0=t.asm.S).apply(null,arguments)},ct=t._emscripten_bind_rcConfig_set_minRegionArea_1=function(){return(ct=t._emscripten_bind_rcConfig_set_minRegionArea_1=t.asm.T).apply(null,arguments)},ut=t._emscripten_bind_rcConfig_get_mergeRegionArea_0=function(){return(ut=t._emscripten_bind_rcConfig_get_mergeRegionArea_0=t.asm.U).apply(null,arguments)},lt=t._emscripten_bind_rcConfig_set_mergeRegionArea_1=function(){return(lt=t._emscripten_bind_rcConfig_set_mergeRegionArea_1=t.asm.V).apply(null,arguments)},mt=t._emscripten_bind_rcConfig_get_maxVertsPerPoly_0=function(){return(mt=t._emscripten_bind_rcConfig_get_maxVertsPerPoly_0=t.asm.W).apply(null,arguments)},ft=t._emscripten_bind_rcConfig_set_maxVertsPerPoly_1=function(){return(ft=t._emscripten_bind_rcConfig_set_maxVertsPerPoly_1=t.asm.X).apply(null,arguments)},dt=t._emscripten_bind_rcConfig_get_detailSampleDist_0=function(){return(dt=t._emscripten_bind_rcConfig_get_detailSampleDist_0=t.asm.Y).apply(null,arguments)},yt=t._emscripten_bind_rcConfig_set_detailSampleDist_1=function(){return(yt=t._emscripten_bind_rcConfig_set_detailSampleDist_1=t.asm.Z).apply(null,arguments)},gt=t._emscripten_bind_rcConfig_get_detailSampleMaxError_0=function(){return(gt=t._emscripten_bind_rcConfig_get_detailSampleMaxError_0=t.asm._).apply(null,arguments)},bt=t._emscripten_bind_rcConfig_set_detailSampleMaxError_1=function(){return(bt=t._emscripten_bind_rcConfig_set_detailSampleMaxError_1=t.asm.$).apply(null,arguments)},ht=t._emscripten_bind_rcConfig___destroy___0=function(){return(ht=t._emscripten_bind_rcConfig___destroy___0=t.asm.aa).apply(null,arguments)},vt=t._emscripten_bind_Vec3_Vec3_0=function(){return(vt=t._emscripten_bind_Vec3_Vec3_0=t.asm.ba).apply(null,arguments)},Ct=t._emscripten_bind_Vec3_Vec3_3=function(){return(Ct=t._emscripten_bind_Vec3_Vec3_3=t.asm.ca).apply(null,arguments)},wt=t._emscripten_bind_Vec3_get_x_0=function(){return(wt=t._emscripten_bind_Vec3_get_x_0=t.asm.da).apply(null,arguments)},At=t._emscripten_bind_Vec3_set_x_1=function(){return(At=t._emscripten_bind_Vec3_set_x_1=t.asm.ea).apply(null,arguments)},Pt=t._emscripten_bind_Vec3_get_y_0=function(){return(Pt=t._emscripten_bind_Vec3_get_y_0=t.asm.fa).apply(null,arguments)},Nt=t._emscripten_bind_Vec3_set_y_1=function(){return(Nt=t._emscripten_bind_Vec3_set_y_1=t.asm.ga).apply(null,arguments)},Dt=t._emscripten_bind_Vec3_get_z_0=function(){return(Dt=t._emscripten_bind_Vec3_get_z_0=t.asm.ha).apply(null,arguments)},St=t._emscripten_bind_Vec3_set_z_1=function(){return(St=t._emscripten_bind_Vec3_set_z_1=t.asm.ia).apply(null,arguments)},Mt=t._emscripten_bind_Vec3___destroy___0=function(){return(Mt=t._emscripten_bind_Vec3___destroy___0=t.asm.ja).apply(null,arguments)},jt=t._emscripten_bind_Triangle_Triangle_0=function(){return(jt=t._emscripten_bind_Triangle_Triangle_0=t.asm.ka).apply(null,arguments)},Ot=t._emscripten_bind_Triangle_getPoint_1=function(){return(Ot=t._emscripten_bind_Triangle_getPoint_1=t.asm.la).apply(null,arguments)},Rt=t._emscripten_bind_Triangle___destroy___0=function(){return(Rt=t._emscripten_bind_Triangle___destroy___0=t.asm.ma).apply(null,arguments)},Et=t._emscripten_bind_DebugNavMesh_DebugNavMesh_0=function(){return(Et=t._emscripten_bind_DebugNavMesh_DebugNavMesh_0=t.asm.na).apply(null,arguments)},Tt=t._emscripten_bind_DebugNavMesh_getTriangleCount_0=function(){return(Tt=t._emscripten_bind_DebugNavMesh_getTriangleCount_0=t.asm.oa).apply(null,arguments)},Ft=t._emscripten_bind_DebugNavMesh_getTriangle_1=function(){return(Ft=t._emscripten_bind_DebugNavMesh_getTriangle_1=t.asm.pa).apply(null,arguments)},zt=t._emscripten_bind_DebugNavMesh___destroy___0=function(){return(zt=t._emscripten_bind_DebugNavMesh___destroy___0=t.asm.qa).apply(null,arguments)},Vt=t._emscripten_bind_dtNavMesh___destroy___0=function(){return(Vt=t._emscripten_bind_dtNavMesh___destroy___0=t.asm.ra).apply(null,arguments)},kt=t._emscripten_bind_NavmeshData_NavmeshData_0=function(){return(kt=t._emscripten_bind_NavmeshData_NavmeshData_0=t.asm.sa).apply(null,arguments)},xt=t._emscripten_bind_NavmeshData_get_dataPointer_0=function(){return(xt=t._emscripten_bind_NavmeshData_get_dataPointer_0=t.asm.ta).apply(null,arguments)},Wt=t._emscripten_bind_NavmeshData_set_dataPointer_1=function(){return(Wt=t._emscripten_bind_NavmeshData_set_dataPointer_1=t.asm.ua).apply(null,arguments)},Yt=t._emscripten_bind_NavmeshData_get_size_0=function(){return(Yt=t._emscripten_bind_NavmeshData_get_size_0=t.asm.va).apply(null,arguments)},Ht=t._emscripten_bind_NavmeshData_set_size_1=function(){return(Ht=t._emscripten_bind_NavmeshData_set_size_1=t.asm.wa).apply(null,arguments)},Lt=t._emscripten_bind_NavmeshData___destroy___0=function(){return(Lt=t._emscripten_bind_NavmeshData___destroy___0=t.asm.xa).apply(null,arguments)},Qt=t._emscripten_bind_NavPath_getPointCount_0=function(){return(Qt=t._emscripten_bind_NavPath_getPointCount_0=t.asm.ya).apply(null,arguments)},Ut=t._emscripten_bind_NavPath_getPoint_1=function(){return(Ut=t._emscripten_bind_NavPath_getPoint_1=t.asm.za).apply(null,arguments)},Bt=t._emscripten_bind_NavPath___destroy___0=function(){return(Bt=t._emscripten_bind_NavPath___destroy___0=t.asm.Aa).apply(null,arguments)},It=t._emscripten_bind_dtObstacleRef___destroy___0=function(){return(It=t._emscripten_bind_dtObstacleRef___destroy___0=t.asm.Ba).apply(null,arguments)},qt=t._emscripten_bind_dtCrowdAgentParams_dtCrowdAgentParams_0=function(){return(qt=t._emscripten_bind_dtCrowdAgentParams_dtCrowdAgentParams_0=t.asm.Ca).apply(null,arguments)},Gt=t._emscripten_bind_dtCrowdAgentParams_get_radius_0=function(){return(Gt=t._emscripten_bind_dtCrowdAgentParams_get_radius_0=t.asm.Da).apply(null,arguments)},Jt=t._emscripten_bind_dtCrowdAgentParams_set_radius_1=function(){return(Jt=t._emscripten_bind_dtCrowdAgentParams_set_radius_1=t.asm.Ea).apply(null,arguments)},Xt=t._emscripten_bind_dtCrowdAgentParams_get_height_0=function(){return(Xt=t._emscripten_bind_dtCrowdAgentParams_get_height_0=t.asm.Fa).apply(null,arguments)},Kt=t._emscripten_bind_dtCrowdAgentParams_set_height_1=function(){return(Kt=t._emscripten_bind_dtCrowdAgentParams_set_height_1=t.asm.Ga).apply(null,arguments)},Zt=t._emscripten_bind_dtCrowdAgentParams_get_maxAcceleration_0=function(){return(Zt=t._emscripten_bind_dtCrowdAgentParams_get_maxAcceleration_0=t.asm.Ha).apply(null,arguments)},$t=t._emscripten_bind_dtCrowdAgentParams_set_maxAcceleration_1=function(){return($t=t._emscripten_bind_dtCrowdAgentParams_set_maxAcceleration_1=t.asm.Ia).apply(null,arguments)},er=t._emscripten_bind_dtCrowdAgentParams_get_maxSpeed_0=function(){return(er=t._emscripten_bind_dtCrowdAgentParams_get_maxSpeed_0=t.asm.Ja).apply(null,arguments)},tr=t._emscripten_bind_dtCrowdAgentParams_set_maxSpeed_1=function(){return(tr=t._emscripten_bind_dtCrowdAgentParams_set_maxSpeed_1=t.asm.Ka).apply(null,arguments)},rr=t._emscripten_bind_dtCrowdAgentParams_get_collisionQueryRange_0=function(){return(rr=t._emscripten_bind_dtCrowdAgentParams_get_collisionQueryRange_0=t.asm.La).apply(null,arguments)},nr=t._emscripten_bind_dtCrowdAgentParams_set_collisionQueryRange_1=function(){return(nr=t._emscripten_bind_dtCrowdAgentParams_set_collisionQueryRange_1=t.asm.Ma).apply(null,arguments)},_r=t._emscripten_bind_dtCrowdAgentParams_get_pathOptimizationRange_0=function(){return(_r=t._emscripten_bind_dtCrowdAgentParams_get_pathOptimizationRange_0=t.asm.Na).apply(null,arguments)},ir=t._emscripten_bind_dtCrowdAgentParams_set_pathOptimizationRange_1=function(){return(ir=t._emscripten_bind_dtCrowdAgentParams_set_pathOptimizationRange_1=t.asm.Oa).apply(null,arguments)},or=t._emscripten_bind_dtCrowdAgentParams_get_separationWeight_0=function(){return(or=t._emscripten_bind_dtCrowdAgentParams_get_separationWeight_0=t.asm.Pa).apply(null,arguments)},ar=t._emscripten_bind_dtCrowdAgentParams_set_separationWeight_1=function(){return(ar=t._emscripten_bind_dtCrowdAgentParams_set_separationWeight_1=t.asm.Qa).apply(null,arguments)},pr=t._emscripten_bind_dtCrowdAgentParams_get_updateFlags_0=function(){return(pr=t._emscripten_bind_dtCrowdAgentParams_get_updateFlags_0=t.asm.Ra).apply(null,arguments)},sr=t._emscripten_bind_dtCrowdAgentParams_set_updateFlags_1=function(){return(sr=t._emscripten_bind_dtCrowdAgentParams_set_updateFlags_1=t.asm.Sa).apply(null,arguments)},cr=t._emscripten_bind_dtCrowdAgentParams_get_obstacleAvoidanceType_0=function(){return(cr=t._emscripten_bind_dtCrowdAgentParams_get_obstacleAvoidanceType_0=t.asm.Ta).apply(null,arguments)},ur=t._emscripten_bind_dtCrowdAgentParams_set_obstacleAvoidanceType_1=function(){return(ur=t._emscripten_bind_dtCrowdAgentParams_set_obstacleAvoidanceType_1=t.asm.Ua).apply(null,arguments)},lr=t._emscripten_bind_dtCrowdAgentParams_get_queryFilterType_0=function(){return(lr=t._emscripten_bind_dtCrowdAgentParams_get_queryFilterType_0=t.asm.Va).apply(null,arguments)},mr=t._emscripten_bind_dtCrowdAgentParams_set_queryFilterType_1=function(){return(mr=t._emscripten_bind_dtCrowdAgentParams_set_queryFilterType_1=t.asm.Wa).apply(null,arguments)},fr=t._emscripten_bind_dtCrowdAgentParams_get_userData_0=function(){return(fr=t._emscripten_bind_dtCrowdAgentParams_get_userData_0=t.asm.Xa).apply(null,arguments)},dr=t._emscripten_bind_dtCrowdAgentParams_set_userData_1=function(){return(dr=t._emscripten_bind_dtCrowdAgentParams_set_userData_1=t.asm.Ya).apply(null,arguments)},yr=t._emscripten_bind_dtCrowdAgentParams___destroy___0=function(){return(yr=t._emscripten_bind_dtCrowdAgentParams___destroy___0=t.asm.Za).apply(null,arguments)},gr=t._emscripten_bind_NavMesh_NavMesh_0=function(){return(gr=t._emscripten_bind_NavMesh_NavMesh_0=t.asm._a).apply(null,arguments)},br=t._emscripten_bind_NavMesh_destroy_0=function(){return(br=t._emscripten_bind_NavMesh_destroy_0=t.asm.$a).apply(null,arguments)},hr=t._emscripten_bind_NavMesh_build_5=function(){return(hr=t._emscripten_bind_NavMesh_build_5=t.asm.ab).apply(null,arguments)},vr=t._emscripten_bind_NavMesh_buildFromNavmeshData_1=function(){return(vr=t._emscripten_bind_NavMesh_buildFromNavmeshData_1=t.asm.bb).apply(null,arguments)},Cr=t._emscripten_bind_NavMesh_getNavmeshData_0=function(){return(Cr=t._emscripten_bind_NavMesh_getNavmeshData_0=t.asm.cb).apply(null,arguments)},wr=t._emscripten_bind_NavMesh_freeNavmeshData_1=function(){return(wr=t._emscripten_bind_NavMesh_freeNavmeshData_1=t.asm.db).apply(null,arguments)},Ar=t._emscripten_bind_NavMesh_getDebugNavMesh_0=function(){return(Ar=t._emscripten_bind_NavMesh_getDebugNavMesh_0=t.asm.eb).apply(null,arguments)},Pr=t._emscripten_bind_NavMesh_getClosestPoint_1=function(){return(Pr=t._emscripten_bind_NavMesh_getClosestPoint_1=t.asm.fb).apply(null,arguments)},Nr=t._emscripten_bind_NavMesh_getRandomPointAround_2=function(){return(Nr=t._emscripten_bind_NavMesh_getRandomPointAround_2=t.asm.gb).apply(null,arguments)},Dr=t._emscripten_bind_NavMesh_moveAlong_2=function(){return(Dr=t._emscripten_bind_NavMesh_moveAlong_2=t.asm.hb).apply(null,arguments)},Sr=t._emscripten_bind_NavMesh_getNavMesh_0=function(){return(Sr=t._emscripten_bind_NavMesh_getNavMesh_0=t.asm.ib).apply(null,arguments)},Mr=t._emscripten_bind_NavMesh_computePath_2=function(){return(Mr=t._emscripten_bind_NavMesh_computePath_2=t.asm.jb).apply(null,arguments)},jr=t._emscripten_bind_NavMesh_setDefaultQueryExtent_1=function(){return(jr=t._emscripten_bind_NavMesh_setDefaultQueryExtent_1=t.asm.kb).apply(null,arguments)},Or=t._emscripten_bind_NavMesh_getDefaultQueryExtent_0=function(){return(Or=t._emscripten_bind_NavMesh_getDefaultQueryExtent_0=t.asm.lb).apply(null,arguments)},Rr=t._emscripten_bind_NavMesh_addCylinderObstacle_3=function(){return(Rr=t._emscripten_bind_NavMesh_addCylinderObstacle_3=t.asm.mb).apply(null,arguments)},Er=t._emscripten_bind_NavMesh_addBoxObstacle_3=function(){return(Er=t._emscripten_bind_NavMesh_addBoxObstacle_3=t.asm.nb).apply(null,arguments)},Tr=t._emscripten_bind_NavMesh_removeObstacle_1=function(){return(Tr=t._emscripten_bind_NavMesh_removeObstacle_1=t.asm.ob).apply(null,arguments)},Fr=t._emscripten_bind_NavMesh_update_0=function(){return(Fr=t._emscripten_bind_NavMesh_update_0=t.asm.pb).apply(null,arguments)},zr=t._emscripten_bind_NavMesh___destroy___0=function(){return(zr=t._emscripten_bind_NavMesh___destroy___0=t.asm.qb).apply(null,arguments)},Vr=t._emscripten_bind_Crowd_Crowd_3=function(){return(Vr=t._emscripten_bind_Crowd_Crowd_3=t.asm.rb).apply(null,arguments)},kr=t._emscripten_bind_Crowd_destroy_0=function(){return(kr=t._emscripten_bind_Crowd_destroy_0=t.asm.sb).apply(null,arguments)},xr=t._emscripten_bind_Crowd_addAgent_2=function(){return(xr=t._emscripten_bind_Crowd_addAgent_2=t.asm.tb).apply(null,arguments)},Wr=t._emscripten_bind_Crowd_removeAgent_1=function(){return(Wr=t._emscripten_bind_Crowd_removeAgent_1=t.asm.ub).apply(null,arguments)},Yr=t._emscripten_bind_Crowd_update_1=function(){return(Yr=t._emscripten_bind_Crowd_update_1=t.asm.vb).apply(null,arguments)},Hr=t._emscripten_bind_Crowd_getAgentPosition_1=function(){return(Hr=t._emscripten_bind_Crowd_getAgentPosition_1=t.asm.wb).apply(null,arguments)},Lr=t._emscripten_bind_Crowd_getAgentVelocity_1=function(){return(Lr=t._emscripten_bind_Crowd_getAgentVelocity_1=t.asm.xb).apply(null,arguments)},Qr=t._emscripten_bind_Crowd_getAgentNextTargetPath_1=function(){return(Qr=t._emscripten_bind_Crowd_getAgentNextTargetPath_1=t.asm.yb).apply(null,arguments)},Ur=t._emscripten_bind_Crowd_getAgentState_1=function(){return(Ur=t._emscripten_bind_Crowd_getAgentState_1=t.asm.zb).apply(null,arguments)},Br=t._emscripten_bind_Crowd_overOffmeshConnection_1=function(){return(Br=t._emscripten_bind_Crowd_overOffmeshConnection_1=t.asm.Ab).apply(null,arguments)},Ir=t._emscripten_bind_Crowd_agentGoto_2=function(){return(Ir=t._emscripten_bind_Crowd_agentGoto_2=t.asm.Bb).apply(null,arguments)},qr=t._emscripten_bind_Crowd_agentTeleport_2=function(){return(qr=t._emscripten_bind_Crowd_agentTeleport_2=t.asm.Cb).apply(null,arguments)},Gr=t._emscripten_bind_Crowd_getAgentParameters_1=function(){return(Gr=t._emscripten_bind_Crowd_getAgentParameters_1=t.asm.Db).apply(null,arguments)},Jr=t._emscripten_bind_Crowd_setAgentParameters_2=function(){return(Jr=t._emscripten_bind_Crowd_setAgentParameters_2=t.asm.Eb).apply(null,arguments)},Xr=t._emscripten_bind_Crowd_setDefaultQueryExtent_1=function(){return(Xr=t._emscripten_bind_Crowd_setDefaultQueryExtent_1=t.asm.Fb).apply(null,arguments)},Kr=t._emscripten_bind_Crowd_getDefaultQueryExtent_0=function(){return(Kr=t._emscripten_bind_Crowd_getDefaultQueryExtent_0=t.asm.Gb).apply(null,arguments)},Zr=t._emscripten_bind_Crowd_getCorners_1=function(){return(Zr=t._emscripten_bind_Crowd_getCorners_1=t.asm.Hb).apply(null,arguments)},$r=t._emscripten_bind_Crowd___destroy___0=function(){return($r=t._emscripten_bind_Crowd___destroy___0=t.asm.Ib).apply(null,arguments)},en=t._malloc=function(){return(en=t._malloc=t.asm.Kb).apply(null,arguments)};t._free=function(){return(t._free=t.asm.Lb).apply(null,arguments)},t.UTF8ToString=ee,t.addFunction=un;var ie;J=function e(){ie||ye(),ie||(J=e)};function ye(e){if(W>0||(gn(),W>0))return;function r(){ie||(ie=!0,t.calledRun=!0,!we&&(bn(),he(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),hn()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),r()},1)):r()}if(t.run=ye,t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();ye();function C(){}C.prototype=Object.create(C.prototype),C.prototype.constructor=C,C.prototype.__class__=C,C.__cache__={},t.WrapperObject=C;function D(e){return(e||C).__cache__}t.getCache=D;function v(e,r){var n=D(r),i=n[e];return i||(i=Object.create((r||C).prototype),i.ptr=e,n[e]=i)}t.wrapPointer=v;function In(e,r){return v(e.ptr,r)}t.castObject=In,t.NULL=v(0);function qn(e){if(!e.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";e.__destroy__(),delete D(e.__class__)[e.ptr]}t.destroy=qn;function Gn(e,r){return e.ptr===r.ptr}t.compare=Gn;function Jn(e){return e.ptr}t.getPointer=Jn;function Xn(e){return e.__class__}t.getClass=Xn;var g={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(g.needed){for(var e=0;e=g.size?(ce(i>0),g.needed+=i,p=t._malloc(i),g.temps.push(p)):(p=g.buffer+g.pos,g.pos+=i),p},copy:function(e,r,n){n>>>=0;var i=r.BYTES_PER_ELEMENT;switch(i){case 2:n>>>=1;break;case 4:n>>>=2;break;case 8:n>>>=3;break}for(var p=0;p