navmesh-D1xgHkvw.js 54 KB

12
  1. 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<r.length;++p)i.parameters.push(n[r[p]]);return new WebAssembly.Function(i,e)}var d=[1,0,1,96],m=r.slice(0,1),f=r.slice(1),w={i:127,j:126,f:125,d:124};d.push(f.length);for(var p=0;p<f.length;++p)d.push(w[f[p]]);m=="v"?d.push(0):d=d.concat([1,w[m]]),d[1]=d.length-2;var Y=new Uint8Array([0,97,115,109,1,0,0,0].concat(d,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),oe=new WebAssembly.Module(Y),ae=new WebAssembly.Instance(oe,{e:{f:e}}),M=ae.exports.f;return M}var Ce=[],Q;function sn(){if(Ce.length)return Ce.pop();try{U.grow(1)}catch(e){throw e instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":e}return U.length-1}function cn(e,r){for(var n=e;n<e+r;n++){var i=me(n);i&&Q.set(i,n)}}function un(e,r){if(Q||(Q=new WeakMap,cn(0,U.length)),Q.has(e))return Q.get(e);var n=sn();try{Ee(n,e)}catch(p){if(!(p instanceof TypeError))throw p;var i=pn(e,r);Ee(n,i)}return Q.set(e,n),n}var q;t.wasmBinary&&(q=t.wasmBinary),t.noExitRuntime,typeof WebAssembly!="object"&&X("no native wasm support detected");var $,we=!1;function ce(e,r){e||X("Assertion failed: "+r)}var Ae=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Pe(e,r,n){for(var i=r+n,p=r;e[p]&&!(p>=i);)++p;if(p-r>16&&e.subarray&&Ae)return Ae.decode(e.subarray(r,p));for(var d="";r<p;){var m=e[r++];if(!(m&128)){d+=String.fromCharCode(m);continue}var f=e[r++]&63;if((m&224)==192){d+=String.fromCharCode((m&31)<<6|f);continue}var w=e[r++]&63;if((m&240)==224?m=(m&15)<<12|f<<6|w:m=(m&7)<<18|f<<12|w<<6|e[r++]&63,m<65536)d+=String.fromCharCode(m);else{var Y=m-65536;d+=String.fromCharCode(55296|Y>>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<e.length;++m){var f=e.charCodeAt(m);if(f>=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<e.length;++n){var i=e.charCodeAt(n);i>=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<e.length;++i)V[r++>>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<n;d++){var m=y[r>>2],f=y[r+4>>2];r+=8;for(var w=0;w<f;w++)B.printChar(e,G[m+w]);p+=f}return y[i>>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.length<s;)b=A[0]+b;return b}function M(a,s){return ae(a,s,"0")}function k(a,s){function A(T){return T<0?-1:T>0?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`
  2. `},"%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()<a.tm_year+1900?H=a.tm_yday+32-b.getDate():H=a.tm_yday+1-b.getDate(),M(Math.ceil(H/7),2)},"%w":function(a){return a.tm_wday},"%W":function(a){var s=new Date(a.tm_year,0,1),A=s.getDay()===1?s:_e(s,s.getDay()===0?1:7-s.getDay()+1),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"},"%y":function(a){return(a.tm_year+1900).toString().substring(2)},"%Y":function(a){return a.tm_year+1900},"%z":function(a){var s=a.tm_gmtoff,A=s>=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.temps.length;e++)t._free(g.temps[e]);g.temps.length=0,t._free(g.buffer),g.buffer=0,g.size+=g.needed,g.needed=0}g.buffer||(g.size+=128,g.buffer=t._malloc(g.size),ce(g.buffer)),g.pos=0},alloc:function(e,r){ce(g.buffer);var n=r.BYTES_PER_ELEMENT,i=e.length*n;i=i+7&-8;var p;return g.pos+i>=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<e.length;p++)r[n+p]=e[p]}};function Kn(e){if(typeof e=="object"){var r=g.alloc(e,y);return g.copy(e,y,r),r}return e}function Zn(e){if(typeof e=="object"){var r=g.alloc(e,ue);return g.copy(e,ue,r),r}return e}function R(){throw"cannot construct a VoidPtr, no constructor in IDL"}R.prototype=Object.create(C.prototype),R.prototype.constructor=R,R.prototype.__class__=R,R.__cache__={},t.VoidPtr=R,R.prototype.__destroy__=R.prototype.__destroy__=function(){var e=this.ptr;Te(e)};function _(){this.ptr=Fe(),D(_)[this.ptr]=this}_.prototype=Object.create(C.prototype),_.prototype.constructor=_,_.prototype.__class__=_,_.__cache__={},t.rcConfig=_,_.prototype.get_width=_.prototype.get_width=function(){var e=this.ptr;return ze(e)},_.prototype.set_width=_.prototype.set_width=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Ve(r,e)},Object.defineProperty(_.prototype,"width",{get:_.prototype.get_width,set:_.prototype.set_width}),_.prototype.get_height=_.prototype.get_height=function(){var e=this.ptr;return ke(e)},_.prototype.set_height=_.prototype.set_height=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),xe(r,e)},Object.defineProperty(_.prototype,"height",{get:_.prototype.get_height,set:_.prototype.set_height}),_.prototype.get_tileSize=_.prototype.get_tileSize=function(){var e=this.ptr;return We(e)},_.prototype.set_tileSize=_.prototype.set_tileSize=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Ye(r,e)},Object.defineProperty(_.prototype,"tileSize",{get:_.prototype.get_tileSize,set:_.prototype.set_tileSize}),_.prototype.get_borderSize=_.prototype.get_borderSize=function(){var e=this.ptr;return He(e)},_.prototype.set_borderSize=_.prototype.set_borderSize=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Le(r,e)},Object.defineProperty(_.prototype,"borderSize",{get:_.prototype.get_borderSize,set:_.prototype.set_borderSize}),_.prototype.get_cs=_.prototype.get_cs=function(){var e=this.ptr;return Qe(e)},_.prototype.set_cs=_.prototype.set_cs=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Ue(r,e)},Object.defineProperty(_.prototype,"cs",{get:_.prototype.get_cs,set:_.prototype.set_cs}),_.prototype.get_ch=_.prototype.get_ch=function(){var e=this.ptr;return Be(e)},_.prototype.set_ch=_.prototype.set_ch=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Ie(r,e)},Object.defineProperty(_.prototype,"ch",{get:_.prototype.get_ch,set:_.prototype.set_ch}),_.prototype.get_bmin=_.prototype.get_bmin=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),qe(r,e)},_.prototype.set_bmin=_.prototype.set_bmin=function(e,r){var n=this.ptr;g.prepare(),e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),Ge(n,e,r)},Object.defineProperty(_.prototype,"bmin",{get:_.prototype.get_bmin,set:_.prototype.set_bmin}),_.prototype.get_bmax=_.prototype.get_bmax=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),Je(r,e)},_.prototype.set_bmax=_.prototype.set_bmax=function(e,r){var n=this.ptr;g.prepare(),e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),Xe(n,e,r)},Object.defineProperty(_.prototype,"bmax",{get:_.prototype.get_bmax,set:_.prototype.set_bmax}),_.prototype.get_walkableSlopeAngle=_.prototype.get_walkableSlopeAngle=function(){var e=this.ptr;return Ke(e)},_.prototype.set_walkableSlopeAngle=_.prototype.set_walkableSlopeAngle=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Ze(r,e)},Object.defineProperty(_.prototype,"walkableSlopeAngle",{get:_.prototype.get_walkableSlopeAngle,set:_.prototype.set_walkableSlopeAngle}),_.prototype.get_walkableHeight=_.prototype.get_walkableHeight=function(){var e=this.ptr;return $e(e)},_.prototype.set_walkableHeight=_.prototype.set_walkableHeight=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),et(r,e)},Object.defineProperty(_.prototype,"walkableHeight",{get:_.prototype.get_walkableHeight,set:_.prototype.set_walkableHeight}),_.prototype.get_walkableClimb=_.prototype.get_walkableClimb=function(){var e=this.ptr;return tt(e)},_.prototype.set_walkableClimb=_.prototype.set_walkableClimb=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),rt(r,e)},Object.defineProperty(_.prototype,"walkableClimb",{get:_.prototype.get_walkableClimb,set:_.prototype.set_walkableClimb}),_.prototype.get_walkableRadius=_.prototype.get_walkableRadius=function(){var e=this.ptr;return nt(e)},_.prototype.set_walkableRadius=_.prototype.set_walkableRadius=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),_t(r,e)},Object.defineProperty(_.prototype,"walkableRadius",{get:_.prototype.get_walkableRadius,set:_.prototype.set_walkableRadius}),_.prototype.get_maxEdgeLen=_.prototype.get_maxEdgeLen=function(){var e=this.ptr;return it(e)},_.prototype.set_maxEdgeLen=_.prototype.set_maxEdgeLen=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),ot(r,e)},Object.defineProperty(_.prototype,"maxEdgeLen",{get:_.prototype.get_maxEdgeLen,set:_.prototype.set_maxEdgeLen}),_.prototype.get_maxSimplificationError=_.prototype.get_maxSimplificationError=function(){var e=this.ptr;return at(e)},_.prototype.set_maxSimplificationError=_.prototype.set_maxSimplificationError=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),pt(r,e)},Object.defineProperty(_.prototype,"maxSimplificationError",{get:_.prototype.get_maxSimplificationError,set:_.prototype.set_maxSimplificationError}),_.prototype.get_minRegionArea=_.prototype.get_minRegionArea=function(){var e=this.ptr;return st(e)},_.prototype.set_minRegionArea=_.prototype.set_minRegionArea=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),ct(r,e)},Object.defineProperty(_.prototype,"minRegionArea",{get:_.prototype.get_minRegionArea,set:_.prototype.set_minRegionArea}),_.prototype.get_mergeRegionArea=_.prototype.get_mergeRegionArea=function(){var e=this.ptr;return ut(e)},_.prototype.set_mergeRegionArea=_.prototype.set_mergeRegionArea=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),lt(r,e)},Object.defineProperty(_.prototype,"mergeRegionArea",{get:_.prototype.get_mergeRegionArea,set:_.prototype.set_mergeRegionArea}),_.prototype.get_maxVertsPerPoly=_.prototype.get_maxVertsPerPoly=function(){var e=this.ptr;return mt(e)},_.prototype.set_maxVertsPerPoly=_.prototype.set_maxVertsPerPoly=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),ft(r,e)},Object.defineProperty(_.prototype,"maxVertsPerPoly",{get:_.prototype.get_maxVertsPerPoly,set:_.prototype.set_maxVertsPerPoly}),_.prototype.get_detailSampleDist=_.prototype.get_detailSampleDist=function(){var e=this.ptr;return dt(e)},_.prototype.set_detailSampleDist=_.prototype.set_detailSampleDist=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),yt(r,e)},Object.defineProperty(_.prototype,"detailSampleDist",{get:_.prototype.get_detailSampleDist,set:_.prototype.set_detailSampleDist}),_.prototype.get_detailSampleMaxError=_.prototype.get_detailSampleMaxError=function(){var e=this.ptr;return gt(e)},_.prototype.set_detailSampleMaxError=_.prototype.set_detailSampleMaxError=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),bt(r,e)},Object.defineProperty(_.prototype,"detailSampleMaxError",{get:_.prototype.get_detailSampleMaxError,set:_.prototype.set_detailSampleMaxError}),_.prototype.__destroy__=_.prototype.__destroy__=function(){var e=this.ptr;ht(e)};function c(e,r,n){if(e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),e===void 0){this.ptr=vt(),D(c)[this.ptr]=this;return}if(r===void 0){this.ptr=_emscripten_bind_Vec3_Vec3_1(e),D(c)[this.ptr]=this;return}if(n===void 0){this.ptr=_emscripten_bind_Vec3_Vec3_2(e,r),D(c)[this.ptr]=this;return}this.ptr=Ct(e,r,n),D(c)[this.ptr]=this}c.prototype=Object.create(C.prototype),c.prototype.constructor=c,c.prototype.__class__=c,c.__cache__={},t.Vec3=c,c.prototype.get_x=c.prototype.get_x=function(){var e=this.ptr;return wt(e)},c.prototype.set_x=c.prototype.set_x=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),At(r,e)},Object.defineProperty(c.prototype,"x",{get:c.prototype.get_x,set:c.prototype.set_x}),c.prototype.get_y=c.prototype.get_y=function(){var e=this.ptr;return Pt(e)},c.prototype.set_y=c.prototype.set_y=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Nt(r,e)},Object.defineProperty(c.prototype,"y",{get:c.prototype.get_y,set:c.prototype.set_y}),c.prototype.get_z=c.prototype.get_z=function(){var e=this.ptr;return Dt(e)},c.prototype.set_z=c.prototype.set_z=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),St(r,e)},Object.defineProperty(c.prototype,"z",{get:c.prototype.get_z,set:c.prototype.set_z}),c.prototype.__destroy__=c.prototype.__destroy__=function(){var e=this.ptr;Mt(e)};function S(){this.ptr=jt(),D(S)[this.ptr]=this}S.prototype=Object.create(C.prototype),S.prototype.constructor=S,S.prototype.__class__=S,S.__cache__={},t.Triangle=S,S.prototype.getPoint=S.prototype.getPoint=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),v(Ot(r,e),c)},S.prototype.__destroy__=S.prototype.__destroy__=function(){var e=this.ptr;Rt(e)};function P(){this.ptr=Et(),D(P)[this.ptr]=this}P.prototype=Object.create(C.prototype),P.prototype.constructor=P,P.prototype.__class__=P,P.__cache__={},t.DebugNavMesh=P,P.prototype.getTriangleCount=P.prototype.getTriangleCount=function(){var e=this.ptr;return Tt(e)},P.prototype.getTriangle=P.prototype.getTriangle=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),v(Ft(r,e),S)},P.prototype.__destroy__=P.prototype.__destroy__=function(){var e=this.ptr;zt(e)};function E(){throw"cannot construct a dtNavMesh, no constructor in IDL"}E.prototype=Object.create(C.prototype),E.prototype.constructor=E,E.prototype.__class__=E,E.__cache__={},t.dtNavMesh=E,E.prototype.__destroy__=E.prototype.__destroy__=function(){var e=this.ptr;Vt(e)};function h(){this.ptr=kt(),D(h)[this.ptr]=this}h.prototype=Object.create(C.prototype),h.prototype.constructor=h,h.prototype.__class__=h,h.__cache__={},t.NavmeshData=h,h.prototype.get_dataPointer=h.prototype.get_dataPointer=function(){var e=this.ptr;return xt(e)},h.prototype.set_dataPointer=h.prototype.set_dataPointer=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Wt(r,e)},Object.defineProperty(h.prototype,"dataPointer",{get:h.prototype.get_dataPointer,set:h.prototype.set_dataPointer}),h.prototype.get_size=h.prototype.get_size=function(){var e=this.ptr;return Yt(e)},h.prototype.set_size=h.prototype.set_size=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Ht(r,e)},Object.defineProperty(h.prototype,"size",{get:h.prototype.get_size,set:h.prototype.set_size}),h.prototype.__destroy__=h.prototype.__destroy__=function(){var e=this.ptr;Lt(e)};function N(){throw"cannot construct a NavPath, no constructor in IDL"}N.prototype=Object.create(C.prototype),N.prototype.constructor=N,N.prototype.__class__=N,N.__cache__={},t.NavPath=N,N.prototype.getPointCount=N.prototype.getPointCount=function(){var e=this.ptr;return Qt(e)},N.prototype.getPoint=N.prototype.getPoint=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),v(Ut(r,e),c)},N.prototype.__destroy__=N.prototype.__destroy__=function(){var e=this.ptr;Bt(e)};function O(){throw"cannot construct a dtObstacleRef, no constructor in IDL"}O.prototype=Object.create(C.prototype),O.prototype.constructor=O,O.prototype.__class__=O,O.__cache__={},t.dtObstacleRef=O,O.prototype.__destroy__=O.prototype.__destroy__=function(){var e=this.ptr;It(e)};function o(){this.ptr=qt(),D(o)[this.ptr]=this}o.prototype=Object.create(C.prototype),o.prototype.constructor=o,o.prototype.__class__=o,o.__cache__={},t.dtCrowdAgentParams=o,o.prototype.get_radius=o.prototype.get_radius=function(){var e=this.ptr;return Gt(e)},o.prototype.set_radius=o.prototype.set_radius=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Jt(r,e)},Object.defineProperty(o.prototype,"radius",{get:o.prototype.get_radius,set:o.prototype.set_radius}),o.prototype.get_height=o.prototype.get_height=function(){var e=this.ptr;return Xt(e)},o.prototype.set_height=o.prototype.set_height=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Kt(r,e)},Object.defineProperty(o.prototype,"height",{get:o.prototype.get_height,set:o.prototype.set_height}),o.prototype.get_maxAcceleration=o.prototype.get_maxAcceleration=function(){var e=this.ptr;return Zt(e)},o.prototype.set_maxAcceleration=o.prototype.set_maxAcceleration=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),$t(r,e)},Object.defineProperty(o.prototype,"maxAcceleration",{get:o.prototype.get_maxAcceleration,set:o.prototype.set_maxAcceleration}),o.prototype.get_maxSpeed=o.prototype.get_maxSpeed=function(){var e=this.ptr;return er(e)},o.prototype.set_maxSpeed=o.prototype.set_maxSpeed=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),tr(r,e)},Object.defineProperty(o.prototype,"maxSpeed",{get:o.prototype.get_maxSpeed,set:o.prototype.set_maxSpeed}),o.prototype.get_collisionQueryRange=o.prototype.get_collisionQueryRange=function(){var e=this.ptr;return rr(e)},o.prototype.set_collisionQueryRange=o.prototype.set_collisionQueryRange=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),nr(r,e)},Object.defineProperty(o.prototype,"collisionQueryRange",{get:o.prototype.get_collisionQueryRange,set:o.prototype.set_collisionQueryRange}),o.prototype.get_pathOptimizationRange=o.prototype.get_pathOptimizationRange=function(){var e=this.ptr;return _r(e)},o.prototype.set_pathOptimizationRange=o.prototype.set_pathOptimizationRange=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),ir(r,e)},Object.defineProperty(o.prototype,"pathOptimizationRange",{get:o.prototype.get_pathOptimizationRange,set:o.prototype.set_pathOptimizationRange}),o.prototype.get_separationWeight=o.prototype.get_separationWeight=function(){var e=this.ptr;return or(e)},o.prototype.set_separationWeight=o.prototype.set_separationWeight=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),ar(r,e)},Object.defineProperty(o.prototype,"separationWeight",{get:o.prototype.get_separationWeight,set:o.prototype.set_separationWeight}),o.prototype.get_updateFlags=o.prototype.get_updateFlags=function(){var e=this.ptr;return pr(e)},o.prototype.set_updateFlags=o.prototype.set_updateFlags=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),sr(r,e)},Object.defineProperty(o.prototype,"updateFlags",{get:o.prototype.get_updateFlags,set:o.prototype.set_updateFlags}),o.prototype.get_obstacleAvoidanceType=o.prototype.get_obstacleAvoidanceType=function(){var e=this.ptr;return cr(e)},o.prototype.set_obstacleAvoidanceType=o.prototype.set_obstacleAvoidanceType=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),ur(r,e)},Object.defineProperty(o.prototype,"obstacleAvoidanceType",{get:o.prototype.get_obstacleAvoidanceType,set:o.prototype.set_obstacleAvoidanceType}),o.prototype.get_queryFilterType=o.prototype.get_queryFilterType=function(){var e=this.ptr;return lr(e)},o.prototype.set_queryFilterType=o.prototype.set_queryFilterType=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),mr(r,e)},Object.defineProperty(o.prototype,"queryFilterType",{get:o.prototype.get_queryFilterType,set:o.prototype.set_queryFilterType}),o.prototype.get_userData=o.prototype.get_userData=function(){var e=this.ptr;return v(fr(e),R)},o.prototype.set_userData=o.prototype.set_userData=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),dr(r,e)},Object.defineProperty(o.prototype,"userData",{get:o.prototype.get_userData,set:o.prototype.set_userData}),o.prototype.__destroy__=o.prototype.__destroy__=function(){var e=this.ptr;yr(e)};function u(){this.ptr=gr(),D(u)[this.ptr]=this}u.prototype=Object.create(C.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},t.NavMesh=u,u.prototype.destroy=u.prototype.destroy=function(){var e=this.ptr;br(e)},u.prototype.build=u.prototype.build=function(e,r,n,i,p){var d=this.ptr;g.prepare(),typeof e=="object"&&(e=Zn(e)),r&&typeof r=="object"&&(r=r.ptr),typeof n=="object"&&(n=Kn(n)),i&&typeof i=="object"&&(i=i.ptr),p&&typeof p=="object"&&(p=p.ptr),hr(d,e,r,n,i,p)},u.prototype.buildFromNavmeshData=u.prototype.buildFromNavmeshData=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),vr(r,e)},u.prototype.getNavmeshData=u.prototype.getNavmeshData=function(){var e=this.ptr;return v(Cr(e),h)},u.prototype.freeNavmeshData=u.prototype.freeNavmeshData=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),wr(r,e)},u.prototype.getDebugNavMesh=u.prototype.getDebugNavMesh=function(){var e=this.ptr;return v(Ar(e),P)},u.prototype.getClosestPoint=u.prototype.getClosestPoint=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),v(Pr(r,e),c)},u.prototype.getRandomPointAround=u.prototype.getRandomPointAround=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),v(Nr(n,e,r),c)},u.prototype.moveAlong=u.prototype.moveAlong=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),v(Dr(n,e,r),c)},u.prototype.getNavMesh=u.prototype.getNavMesh=function(){var e=this.ptr;return v(Sr(e),E)},u.prototype.computePath=u.prototype.computePath=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),v(Mr(n,e,r),N)},u.prototype.setDefaultQueryExtent=u.prototype.setDefaultQueryExtent=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),jr(r,e)},u.prototype.getDefaultQueryExtent=u.prototype.getDefaultQueryExtent=function(){var e=this.ptr;return v(Or(e),c)},u.prototype.addCylinderObstacle=u.prototype.addCylinderObstacle=function(e,r,n){var i=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),v(Rr(i,e,r,n),O)},u.prototype.addBoxObstacle=u.prototype.addBoxObstacle=function(e,r,n){var i=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),v(Er(i,e,r,n),O)},u.prototype.removeObstacle=u.prototype.removeObstacle=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Tr(r,e)},u.prototype.update=u.prototype.update=function(){var e=this.ptr;Fr(e)},u.prototype.__destroy__=u.prototype.__destroy__=function(){var e=this.ptr;zr(e)};function l(e,r,n){e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),n&&typeof n=="object"&&(n=n.ptr),this.ptr=Vr(e,r,n),D(l)[this.ptr]=this}return l.prototype=Object.create(C.prototype),l.prototype.constructor=l,l.prototype.__class__=l,l.__cache__={},t.Crowd=l,l.prototype.destroy=l.prototype.destroy=function(){var e=this.ptr;kr(e)},l.prototype.addAgent=l.prototype.addAgent=function(e,r){var n=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),xr(n,e,r)},l.prototype.removeAgent=l.prototype.removeAgent=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Wr(r,e)},l.prototype.update=l.prototype.update=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Yr(r,e)},l.prototype.getAgentPosition=l.prototype.getAgentPosition=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),v(Hr(r,e),c)},l.prototype.getAgentVelocity=l.prototype.getAgentVelocity=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),v(Lr(r,e),c)},l.prototype.getAgentNextTargetPath=l.prototype.getAgentNextTargetPath=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),v(Qr(r,e),c)},l.prototype.getAgentState=l.prototype.getAgentState=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),Ur(r,e)},l.prototype.overOffmeshConnection=l.prototype.overOffmeshConnection=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),!!Br(r,e)},l.prototype.agentGoto=l.prototype.agentGoto=function(e,r){var n=this.ptr;e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),Ir(n,e,r)},l.prototype.agentTeleport=l.prototype.agentTeleport=function(e,r){var n=this.ptr;e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),qr(n,e,r)},l.prototype.getAgentParameters=l.prototype.getAgentParameters=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),v(Gr(r,e),o)},l.prototype.setAgentParameters=l.prototype.setAgentParameters=function(e,r){var n=this.ptr;e&&typeof e=="object"&&(e=e.ptr),r&&typeof r=="object"&&(r=r.ptr),Jr(n,e,r)},l.prototype.setDefaultQueryExtent=l.prototype.setDefaultQueryExtent=function(e){var r=this.ptr;e&&typeof e=="object"&&(e=e.ptr),Xr(r,e)},l.prototype.getDefaultQueryExtent=l.prototype.getDefaultQueryExtent=function(){var e=this.ptr;return v(Kr(e),c)},l.prototype.getCorners=l.prototype.getCorners=function(e){var r=this.ptr;return e&&typeof e=="object"&&(e=e.ptr),v(Zr(r,e),N)},l.prototype.__destroy__=l.prototype.__destroy__=function(){var e=this.ptr;$r(e)},t.ready}}();export{$n as default};