diff --git a/assets/image/asset.aseprite b/assets/image/asset.aseprite index 690d28a..0c7144c 100644 Binary files a/assets/image/asset.aseprite and b/assets/image/asset.aseprite differ diff --git a/docs/assets/image/asset.aseprite b/docs/assets/image/asset.aseprite index 690d28a..0c7144c 100644 Binary files a/docs/assets/image/asset.aseprite and b/docs/assets/image/asset.aseprite differ diff --git a/docs/index.html b/docs/index.html index 9b58a72..a29d7b7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,8 +1,8 @@ -Magia Boost 0.1 \ No newline at end of file +dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}}));Magia Boost 0.1 \ No newline at end of file diff --git a/docs/magiaboost-5bdd60a7011b2e87.js b/docs/magiaboost-5541238713fcb20e.js similarity index 88% rename from docs/magiaboost-5bdd60a7011b2e87.js rename to docs/magiaboost-5541238713fcb20e.js index 24801b2..f684d35 100644 --- a/docs/magiaboost-5bdd60a7011b2e87.js +++ b/docs/magiaboost-5541238713fcb20e.js @@ -1 +1 @@ -let aJ=`none`,ap=`undefined`,aL=`nearest`,aM=`linear`,aN=`uint32`,at=null,ay=`function`,aA=3,az=1,aB=`number`,aK=`depth32float-stencil8`,aP=`2d`,aC=`boolean`,aw=`utf-8`,aI=`zero`,aO=`1d`,aT=4361,aH=4,aU=3179,aD=`string`,aQ=`3d`,aE=`Object`,au=0,ar=Array,aS=Array.of,ax=Error,aG=FinalizationRegistry,aF=JSON.stringify,aR=Object,aV=Object.getPrototypeOf,av=Uint8Array,aq=undefined;var am=((a,c)=>{b=a.exports;ao.__wbindgen_wasm_module=c;o=at;C=at;G=at;i=at;b.__wbindgen_start();return b});var al=((a,b)=>{});var I=((a,b)=>{a=a>>>au;return H().subarray(a/aH,a/aH+ b)});var F=((a,b)=>{a=a>>>au;return j().subarray(a/az,a/az+ b)});function B(a,c){try{return a.apply(this,c)}catch(a){b.__wbindgen_export_8(q(a))}}var v=((a,c,d,e)=>{const f={a:a,b:c,cnt:az,dtor:d};const g=(...a)=>{f.cnt++;const c=f.a;f.a=au;try{return e(c,f.b,...a)}finally{if(--f.cnt===au){b.__wbindgen_export_2.get(f.dtor)(c,f.b);u.unregister(f)}else{f.a=c}}};g.original=f;u.register(g,f,f);return g});var E=((a,b)=>{a=a>>>au;return D().subarray(a/aH,a/aH+ b)});var D=(()=>{if(C===at||C.byteLength===au){C=new Float32Array(b.memory.buffer)};return C});var A=((a,c,d,e)=>{b.__wbindgen_export_6(a,c,q(d),q(e))});var q=(a=>{if(e===c.length)c.push(c.length+ az);const b=e;e=c[b];c[b]=a;return b});var z=((a,c,d)=>{b.__wbindgen_export_5(a,c,q(d))});var m=((a,b,c)=>{if(c===aq){const c=k.encode(a);const d=b(c.length,az)>>>au;j().subarray(d,d+ c.length).set(c);h=c.length;return d};let d=a.length;let e=b(d,az)>>>au;const f=j();let g=au;for(;g127)break;f[e+ g]=b};if(g!==d){if(g!==au){a=a.slice(g)};e=c(e,d,d=g+ a.length*aA,az)>>>au;const b=j().subarray(e+ g,e+ d);const f=l(a,b);g+=f.written;e=c(e,d,g,az)>>>au};h=g;return e});var y=((a,c)=>{b.__wbindgen_export_4(a,c)});var x=((a,c,d,e)=>{const f={a:a,b:c,cnt:az,dtor:d};const g=(...a)=>{f.cnt++;try{return e(f.a,f.b,...a)}finally{if(--f.cnt===au){b.__wbindgen_export_2.get(f.dtor)(f.a,f.b);f.a=au;u.unregister(f)}}};g.original=f;u.register(g,f,f);return g});var d=(a=>c[a]);var t=(a=>{const b=typeof a;if(b==aB||b==aC||a==at){return `${a}`};if(b==aD){return `"${a}"`};if(b==`symbol`){const b=a.description;if(b==at){return `Symbol`}else{return `Symbol(${b})`}};if(b==ay){const b=a.name;if(typeof b==aD&&b.length>au){return `Function(${b})`}else{return `Function`}};if(ar.isArray(a)){const b=a.length;let c=`[`;if(b>au){c+=t(a[au])};for(let d=az;daz){d=c[az]}else{return toString.call(a)};if(d==aE){try{return `Object(`+ aF(a)+ `)`}catch(a){return aE}};if(a instanceof ax){return `${a.name}: ${a.message}\n${a.stack}`};return d});var aj=(async(a,b)=>{if(typeof Response===ay&&a instanceof Response){if(typeof WebAssembly.instantiateStreaming===ay){try{return await WebAssembly.instantiateStreaming(a,b)}catch(b){if(a.headers.get(`Content-Type`)!=`application/wasm`){console.warn(`\`WebAssembly.instantiateStreaming\` failed because your server does not serve Wasm with \`application/wasm\` MIME type. Falling back to \`WebAssembly.instantiate\` which is slower. Original error:\\n`,b)}else{throw b}}};const c=await a.arrayBuffer();return await WebAssembly.instantiate(c,b)}else{const c=await WebAssembly.instantiate(a,b);if(c instanceof WebAssembly.Instance){return {instance:c,module:a}}else{return c}}});var g=(a=>{const b=d(a);f(a);return b});var w=((a,c)=>{b.__wbindgen_export_3(a,c)});var p=(()=>{if(o===at||o.buffer.detached===!0||o.buffer.detached===aq&&o.buffer!==b.memory.buffer){o=new DataView(b.memory.buffer)};return o});var n=(a=>a===aq||a===at);var H=(()=>{if(G===at||G.byteLength===au){G=new Uint32Array(b.memory.buffer)};return G});var ao=(async(a)=>{if(b!==aq)return b;if(typeof a!==ap){if(aV(a)===aR.prototype){({module_or_path:a}=a)}else{console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)}};if(typeof a===ap){a=new URL(`magiaboost_bg.wasm`,import.meta.url)};const c=ak();if(typeof a===aD||typeof Request===ay&&a instanceof Request||typeof URL===ay&&a instanceof URL){a=fetch(a)};al(c);const {instance:d,module:e}=await aj(await a,c);return am(d,e)});var s=((a,b)=>{a=a>>>au;return r.decode(j().subarray(a,a+ b))});var f=(a=>{if(a<132)return;c[a]=e;e=a});var j=(()=>{if(i===at||i.byteLength===au){i=new av(b.memory.buffer)};return i});var an=(a=>{if(b!==aq)return b;if(typeof a!==ap){if(aV(a)===aR.prototype){({module:a}=a)}else{console.warn(`using deprecated parameters for \`initSync()\`; pass a single object instead`)}};const c=ak();al(c);if(!(a instanceof WebAssembly.Module)){a=new WebAssembly.Module(a)};const d=new WebAssembly.Instance(a,c);return am(d,a)});var ak=(()=>{const c={};c.wbg={};c.wbg.__wbindgen_object_drop_ref=(a=>{g(a)});c.wbg.__wbg_getItem_cc312d333f535f07=function(){return B(((a,c,e,f)=>{const g=d(c).getItem(s(e,f));var i=n(g)?au:m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);var j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbg_Window_f4441e69cbceafcc=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbindgen_is_undefined=(a=>{const b=d(a)===aq;return b});c.wbg.__wbg_fetch_bfd3aa46955593c3=((a,b,c)=>{const e=d(a).fetch(s(b,c));return q(e)});c.wbg.__wbg_WorkerGlobalScope_2500166acca3df02=(a=>{const b=d(a).WorkerGlobalScope;return q(b)});c.wbg.__wbg_fetch_896e530c3d511c11=((a,b,c)=>{const e=d(a).fetch(s(b,c));return q(e)});c.wbg.__wbg_instanceof_Response_3c0e210a57ff751d=(a=>{let b;try{b=d(a) instanceof Response}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_status_5f4e900d22140a18=(a=>{const b=d(a).status;return b});c.wbg.__wbg_arrayBuffer_144729e09879650e=function(){return B((a=>{const b=d(a).arrayBuffer();return q(b)}),arguments)};c.wbg.__wbg_new_fec2611eb9180f95=(a=>{const b=new av(d(a));return q(b)});c.wbg.__wbg_stringify_eead5648c09faaf8=function(){return B((a=>{const b=aF(d(a));return q(b)}),arguments)};c.wbg.__wbindgen_string_get=((a,c)=>{const e=d(c);const f=typeof e===aD?e:aq;var g=n(f)?au:m(f,b.__wbindgen_export_0,b.__wbindgen_export_1);var i=h;p().setInt32(a+ aH*az,i,!0);p().setInt32(a+ aH*au,g,!0)});c.wbg.__wbg_now_70af4fe37a792251=(()=>{const a=Date.now();return a});c.wbg.__wbg_isSecureContext_8a5cdec3d92171bf=(a=>{const b=d(a).isSecureContext;return b});c.wbg.__wbg_document_d7fa2c739c2b191a=(a=>{const b=d(a).document;return n(b)?au:q(b)});c.wbg.__wbg_querySelector_e4353fe90bee0601=function(){return B(((a,b,c)=>{const e=d(a).querySelector(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_instanceof_HtmlCanvasElement_022ad88c76df9031=(a=>{let b;try{b=d(a) instanceof HTMLCanvasElement}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_devicePixelRatio_5d0556383aa83231=(a=>{const b=d(a).devicePixelRatio;return b});c.wbg.__wbindgen_object_clone_ref=(a=>{const b=d(a);return q(b)});c.wbg.__wbg_style_04eb1488bc2ceffc=(a=>{const b=d(a).style;return q(b)});c.wbg.__wbg_eval_1bab7c4fbae3b3d6=function(){return B(((a,b)=>{const c=eval(s(a,b));return q(c)}),arguments)};c.wbg.__wbindgen_boolean_get=(a=>{const b=d(a);const c=typeof b===aC?(b?az:au):2;return c});c.wbg.__wbg_new_e69b5f66fda8f13c=(()=>{const a=new aR();return q(a)});c.wbg.__wbg_setsamplerate_8b48d6e377fe52c9=((a,b)=>{d(a).sampleRate=b});c.wbg.__wbg_newwithcontextoptions_f939c627726d873f=function(){return B((b=>{const c=new a(d(b));return q(c)}),arguments)};c.wbg.__wbg_destination_f7f82a0a30ca8bba=(a=>{const b=d(a).destination;return q(b)});c.wbg.__wbg_maxChannelCount_af37d88907a11748=(a=>{const b=d(a).maxChannelCount;return b});c.wbg.__wbg_setchannelCount_84446ba10ba82eb1=((a,b)=>{d(a).channelCount=b>>>au});c.wbg.__wbg_createBuffer_8acdf99f8dc5d697=function(){return B(((a,b,c,e)=>{const f=d(a).createBuffer(b>>>au,c>>>au,e);return q(f)}),arguments)};c.wbg.__wbg_resume_9c4295ca96d8c40a=function(){return B((a=>{const b=d(a).resume();return q(b)}),arguments)};c.wbg.__wbg_mark_40e050a77cc39fea=((a,b)=>{performance.mark(s(a,b))});c.wbg.__wbg_log_c9486ca5d8e2cbe8=((a,c)=>{let d;let e;try{d=a;e=c;console.log(s(a,c))}finally{b.__wbindgen_export_7(d,e,az)}});c.wbg.__wbg_log_aba5996d9bde071f=((a,c,d,e,f,g,h,i)=>{let j;let k;try{j=a;k=c;console.log(s(a,c),s(d,e),s(f,g),s(h,i))}finally{b.__wbindgen_export_7(j,k,az)}});c.wbg.__wbg_localStorage_6026615061e890bf=function(){return B((a=>{const b=d(a).localStorage;return n(b)?au:q(b)}),arguments)};c.wbg.__wbg_instanceof_MessageEvent_a025220a70647214=(a=>{let b;try{b=d(a) instanceof MessageEvent}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_data_134d3a704b9fca32=(a=>{const b=d(a).data;return q(b)});c.wbg.__wbindgen_is_string=(a=>{const b=typeof d(a)===aD;return b});c.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7=(a=>{let b;try{b=d(a) instanceof ArrayBuffer}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_readyState_bc0231e8c43b0907=(a=>{const b=d(a).readyState;return b});c.wbg.__wbg_send_f308b110e144e90d=function(){return B(((a,b,c)=>{d(a).send(s(b,c))}),arguments)};c.wbg.__wbg_send_fe006eb24f5e2694=function(){return B(((a,b,c)=>{d(a).send(F(b,c))}),arguments)};c.wbg.__wbg_new_d550f7a7120dd942=function(){return B(((a,b)=>{const c=new WebSocket(s(a,b));return q(c)}),arguments)};c.wbg.__wbg_setbinaryType_2befea8ba88b61e2=((a,b)=>{d(a).binaryType=K[b]});c.wbg.__wbg_setonerror_e16deca7fd15a59c=((a,b)=>{d(a).onerror=d(b)});c.wbg.__wbg_setonopen_c0e1464e3ea28727=((a,b)=>{d(a).onopen=d(b)});c.wbg.__wbg_setonmessage_84cd941c1df08da7=((a,b)=>{d(a).onmessage=d(b)});c.wbg.__wbg_setonclose_9a28780f7d46ed03=((a,b)=>{d(a).onclose=d(b)});c.wbg.__wbg_exitPointerLock_42de2c91cfcc3203=(a=>{d(a).exitPointerLock()});c.wbg.__wbg_requestPointerLock_322607e3bc628f7a=(a=>{d(a).requestPointerLock()});c.wbg.__wbg_new_abda76e883ba8a5f=(()=>{const a=new ax();return q(a)});c.wbg.__wbg_stack_658279fe44541cf6=((a,c)=>{const e=d(c).stack;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_error_f851667af71bcfc6=((a,c)=>{let d;let e;try{d=a;e=c;console.error(s(a,c))}finally{b.__wbindgen_export_7(d,e,az)}});c.wbg.__wbg_crypto_1d1f22824a6a080c=(a=>{const b=d(a).crypto;return q(b)});c.wbg.__wbindgen_is_object=(a=>{const b=d(a);const c=typeof b===`object`&&b!==at;return c});c.wbg.__wbg_process_4a72847cc503995b=(a=>{const b=d(a).process;return q(b)});c.wbg.__wbg_versions_f686565e586dd935=(a=>{const b=d(a).versions;return q(b)});c.wbg.__wbg_node_104a2ff8d6ea03a2=(a=>{const b=d(a).node;return q(b)});c.wbg.__wbg_require_cca90b1a94a0255b=function(){return B((()=>{const a=module.require;return q(a)}),arguments)};c.wbg.__wbindgen_is_function=(a=>{const b=typeof d(a)===ay;return b});c.wbg.__wbindgen_string_new=((a,b)=>{const c=s(a,b);return q(c)});c.wbg.__wbg_msCrypto_eb05e62b530a1508=(a=>{const b=d(a).msCrypto;return q(b)});c.wbg.__wbg_newwithlength_76462a666eca145f=(a=>{const b=new av(a>>>au);return q(b)});c.wbg.__wbg_subarray_975a06f9dbd16995=((a,b,c)=>{const e=d(a).subarray(b>>>au,c>>>au);return q(e)});c.wbg.__wbg_getRandomValues_3aa56aa6edec874c=function(){return B(((a,b)=>{d(a).getRandomValues(d(b))}),arguments)};c.wbg.__wbindgen_memory=(()=>{const a=b.memory;return q(a)});c.wbg.__wbg_buffer_ccaed51a635d8a2d=(a=>{const b=d(a).buffer;return q(b)});c.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730=((a,b,c)=>{const e=new av(d(a),b>>>au,c>>>au);return q(e)});c.wbg.__wbg_randomFillSync_5c9c955aa56b6049=function(){return B(((a,b)=>{d(a).randomFillSync(g(b))}),arguments)};c.wbg.__wbg_navigator_3d3836196a5d8e62=(a=>{const b=d(a).navigator;return q(b)});c.wbg.__wbg_getGamepads_e54b0e9135685af3=function(){return B((a=>{const b=d(a).getGamepads();return q(b)}),arguments)};c.wbg.__wbg_length_f217bbbf7e8e4df4=(a=>{const b=d(a).length;return b});c.wbg.__wbg_index_8cbd5ff3bd795787=(a=>{const b=d(a).index;return b});c.wbg.__wbg_buttons_eb461fd639ddcc20=(a=>{const b=d(a).buttons;return q(b)});c.wbg.__wbg_get_5419cf6b954aa11d=((a,b)=>{const c=d(a)[b>>>au];return q(c)});c.wbg.__wbg_pressed_90d9818eedea0eef=(a=>{const b=d(a).pressed;return b});c.wbg.__wbg_value_9792b33c816e47af=(a=>{const b=d(a).value;return b});c.wbg.__wbg_axes_2a36e14aa82eefc9=(a=>{const b=d(a).axes;return q(b)});c.wbg.__wbindgen_number_get=((a,b)=>{const c=d(b);const e=typeof c===aB?c:aq;p().setFloat64(a+ 8*az,n(e)?au:e,!0);p().setInt32(a+ aH*au,!n(e),!0)});c.wbg.__wbindgen_is_null=(a=>{const b=d(a)===at;return b});c.wbg.__wbg_instanceof_DomException_9c87cb6f93f43379=(a=>{let b;try{b=d(a) instanceof DOMException}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_message_c7a4c5995cc33e84=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_id_8c477b5e4084ecfb=((a,c)=>{const e=d(c).id;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_new_800498ec872f75d4=((a,b,c,d)=>{const e=new RegExp(s(a,b),s(c,d));return q(e)});c.wbg.__wbg_exec_c872ad5c15e456ad=((a,b,c)=>{const e=d(a).exec(s(b,c));return n(e)?au:q(e)});c.wbg.__wbg_mapping_bbf7356861bbea3a=(a=>{const b=d(a).mapping;return (L.indexOf(b)+ az||aA)- az});c.wbg.__wbg_connected_db62337c768c2467=(a=>{const b=d(a).connected;return b});c.wbg.__wbg_self_bf91bf94d9e04084=function(){return B((()=>{const a=self.self;return q(a)}),arguments)};c.wbg.__wbg_window_52dd9f07d03fd5f8=function(){return B((()=>{const a=window.window;return q(a)}),arguments)};c.wbg.__wbg_globalThis_05c129bf37fcf1be=function(){return B((()=>{const a=globalThis.globalThis;return q(a)}),arguments)};c.wbg.__wbg_global_3eca19bb09e9c484=function(){return B((()=>{const a=global.global;return q(a)}),arguments)};c.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43=((a,b)=>{const c=new Function(s(a,b));return q(c)});c.wbg.__wbg_call_a9ef466721e824f2=function(){return B(((a,b)=>{const c=d(a).call(d(b));return q(c)}),arguments)};c.wbg.__wbg_call_3bfa248576352471=function(){return B(((a,b,c)=>{const e=d(a).call(d(b),d(c));return q(e)}),arguments)};c.wbg.__wbg_set_e864d25d9b399c9f=function(){return B(((a,b,c)=>{const e=Reflect.set(d(a),d(b),d(c));return e}),arguments)};c.wbg.__wbg_set_ec2fcf81bc573fd9=((a,b,c)=>{d(a).set(d(b),c>>>au)});c.wbg.__wbg_length_9254c4bd3b9f23c4=(a=>{const b=d(a).length;return b});c.wbg.__wbindgen_cb_drop=(a=>{const b=g(a).original;if(b.cnt--==az){b.a=au;return !0};const c=!1;return c});c.wbg.__wbg_currentTime_a3102f1ef74fca96=(a=>{const b=d(a).currentTime;return b});c.wbg.__wbg_createBufferSource_ed2df6b1d0df0f14=function(){return B((a=>{const b=d(a).createBufferSource();return q(b)}),arguments)};c.wbg.__wbg_setbuffer_f4457f8f6a733e5a=((a,b)=>{d(a).buffer=d(b)});c.wbg.__wbg_connect_9a09c3bcaa0c9d22=function(){return B(((a,b)=>{const c=d(a).connect(d(b));return q(c)}),arguments)};c.wbg.__wbg_setonended_95d7e5856cbda569=((a,b)=>{d(a).onended=d(b)});c.wbg.__wbg_start_c5bab011493fb2be=function(){return B(((a,b)=>{d(a).start(b)}),arguments)};c.wbg.__wbg_copyToChannel_4f1f6f3395215459=function(){return B(((a,b,c,e)=>{d(a).copyToChannel(E(b,c),e)}),arguments)};c.wbg.__wbg_close_a65253886601b1ee=function(){return B((a=>{const b=d(a).close();return q(b)}),arguments)};c.wbg.__wbg_measure_aa7a73f17813f708=function(){return B(((a,c,d,e)=>{let f;let g;let h;let i;try{f=a;g=c;h=d;i=e;performance.measure(s(a,c),s(d,e))}finally{b.__wbindgen_export_7(f,g,az);b.__wbindgen_export_7(h,i,az)}}),arguments)};c.wbg.__wbindgen_throw=((a,b)=>{throw new ax(s(a,b))});c.wbg.__wbindgen_debug_string=((a,c)=>{const e=t(d(c));const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_queueMicrotask_848aa4969108a57e=(a=>{const b=d(a).queueMicrotask;return q(b)});c.wbg.__wbg_resolve_0aad7c1484731c99=(a=>{const b=Promise.resolve(d(a));return q(b)});c.wbg.__wbg_then_748f75edfb032440=((a,b)=>{const c=d(a).then(d(b));return q(c)});c.wbg.__wbg_queueMicrotask_c5419c06eab41e73=(a=>{queueMicrotask(d(a))});c.wbg.__wbg_then_4866a7d9f55d8f3e=((a,b,c)=>{const e=d(a).then(d(b),d(c));return q(e)});c.wbg.__wbg_instanceof_Window_6575cd7f1322f82f=(a=>{let b;try{b=d(a) instanceof Window}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_new_75169ae5a9683c55=function(){return B((()=>{const a=new AbortController();return q(a)}),arguments)};c.wbg.__wbg_setProperty_b9a2384cbfb499fb=function(){return B(((a,b,c,e,f)=>{d(a).setProperty(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_visibilityState_5e9ade0fb5df3c9c=(a=>{const b=d(a).visibilityState;return (ai.indexOf(b)+ az||aA)- az});c.wbg.__wbg_setAttribute_2a8f647a8d92c712=function(){return B(((a,b,c,e,f)=>{d(a).setAttribute(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_addEventListener_4357f9b7b3826784=function(){return B(((a,b,c,e)=>{d(a).addEventListener(s(b,c),d(e))}),arguments)};c.wbg.__wbg_removeEventListener_4c13d11156153514=function(){return B(((a,b,c,e)=>{d(a).removeEventListener(s(b,c),d(e))}),arguments)};c.wbg.__wbg_focus_6b6181f7644f6dbc=function(){return B((a=>{d(a).focus()}),arguments)};c.wbg.__wbg_addListener_503d439bc3f84ff3=function(){return B(((a,b)=>{d(a).addListener(d(b))}),arguments)};c.wbg.__wbg_new_e207405ddca58ee2=function(){return B((()=>{const a=new MessageChannel();return q(a)}),arguments)};c.wbg.__wbg_postMessage_5109299871335137=function(){return B(((a,b)=>{d(a).postMessage(d(b))}),arguments)};c.wbg.__wbg_setItem_5afc04d5b6287c76=function(){return B(((a,b,c,e,f)=>{d(a).setItem(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_revokeObjectURL_8e72bad4541bdca0=function(){return B(((a,b)=>{URL.revokeObjectURL(s(a,b))}),arguments)};c.wbg.__wbg_close_9e3b743c528a8d31=function(){return B((a=>{d(a).close()}),arguments)};c.wbg.__wbg_matchMedia_2c5a513148e49e4a=function(){return B(((a,b,c)=>{const e=d(a).matchMedia(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_cancelAnimationFrame_f802bc3f3a9b2e5c=function(){return B(((a,b)=>{d(a).cancelAnimationFrame(b)}),arguments)};c.wbg.__wbg_setTimeout_e5d5b865335ce177=function(){return B(((a,b,c)=>{const e=d(a).setTimeout(d(b),c);return e}),arguments)};c.wbg.__wbg_performance_a1b8bde2ee512264=(a=>{const b=d(a).performance;return q(b)});c.wbg.__wbg_now_abd80e969af37148=(a=>{const b=d(a).now();return b});c.wbg.__wbg_instanceof_GpuDeviceLostInfo_22f963b61044b3b1=(a=>{let b;try{b=d(a) instanceof GPUDeviceLostInfo}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_reason_3af8e4afbe0efdd8=(a=>{const b=d(a).reason;return (W.indexOf(b)+ az||aA)- az});c.wbg.__wbg_message_3bef8c43f84eab9c=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbindgen_number_new=(a=>{const b=a;return q(b)});c.wbg.__wbg_Window_94d759f1f207a15b=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbg_gpu_1f3675e2d4aa88f4=(a=>{const b=d(a).gpu;return q(b)});c.wbg.__wbg_WorkerGlobalScope_b13c8cef62388de9=(a=>{const b=d(a).WorkerGlobalScope;return q(b)});c.wbg.__wbg_navigator_4093e51a109a906e=(a=>{const b=d(a).navigator;return q(b)});c.wbg.__wbg_instanceof_GpuCanvasContext_b3bff0de75efe6fd=(a=>{let b;try{b=d(a) instanceof GPUCanvasContext}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_instanceof_GpuAdapter_32bc80c8c30adaa0=(a=>{let b;try{b=d(a) instanceof GPUAdapter}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_queue_2bddd1700cb0bec2=(a=>{const b=d(a).queue;return q(b)});c.wbg.__wbg_has_1509b2ce6759dc2a=((a,b,c)=>{const e=d(a).has(s(b,c));return e});c.wbg.__wbg_maxTextureDimension1D_ea59b0f0cc2e29cd=(a=>{const b=d(a).maxTextureDimension1D;return b});c.wbg.__wbg_maxTextureDimension2D_00984ba245729ced=(a=>{const b=d(a).maxTextureDimension2D;return b});c.wbg.__wbg_maxTextureDimension3D_95c3d3adb6d66ec5=(a=>{const b=d(a).maxTextureDimension3D;return b});c.wbg.__wbg_maxTextureArrayLayers_68f4a1218a54fa93=(a=>{const b=d(a).maxTextureArrayLayers;return b});c.wbg.__wbg_maxBindGroups_e76fb8650a4459d7=(a=>{const b=d(a).maxBindGroups;return b});c.wbg.__wbg_maxBindingsPerBindGroup_2af20f39aef3fd86=(a=>{const b=d(a).maxBindingsPerBindGroup;return b});c.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_074c891075b375b7=(a=>{const b=d(a).maxDynamicUniformBuffersPerPipelineLayout;return b});c.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_b91e3e6efb7b7a8c=(a=>{const b=d(a).maxDynamicStorageBuffersPerPipelineLayout;return b});c.wbg.__wbg_maxSampledTexturesPerShaderStage_76354979d03a2b27=(a=>{const b=d(a).maxSampledTexturesPerShaderStage;return b});c.wbg.__wbg_maxSamplersPerShaderStage_fe8d223de90e5459=(a=>{const b=d(a).maxSamplersPerShaderStage;return b});c.wbg.__wbg_maxStorageBuffersPerShaderStage_bced69629145d26d=(a=>{const b=d(a).maxStorageBuffersPerShaderStage;return b});c.wbg.__wbg_maxStorageTexturesPerShaderStage_fcf51f22620c0092=(a=>{const b=d(a).maxStorageTexturesPerShaderStage;return b});c.wbg.__wbg_maxUniformBuffersPerShaderStage_b3b013238400f0c0=(a=>{const b=d(a).maxUniformBuffersPerShaderStage;return b});c.wbg.__wbg_maxUniformBufferBindingSize_194fd7147cf2e95a=(a=>{const b=d(a).maxUniformBufferBindingSize;return b});c.wbg.__wbg_maxStorageBufferBindingSize_78504383af63ac53=(a=>{const b=d(a).maxStorageBufferBindingSize;return b});c.wbg.__wbg_maxVertexBuffers_78c71ff19beac74b=(a=>{const b=d(a).maxVertexBuffers;return b});c.wbg.__wbg_maxBufferSize_0c7ed57407582d40=(a=>{const b=d(a).maxBufferSize;return b});c.wbg.__wbg_maxVertexAttributes_c11cb018a9c5a224=(a=>{const b=d(a).maxVertexAttributes;return b});c.wbg.__wbg_maxVertexBufferArrayStride_c53560cc036cb477=(a=>{const b=d(a).maxVertexBufferArrayStride;return b});c.wbg.__wbg_minUniformBufferOffsetAlignment_4880e6786cb7ec5d=(a=>{const b=d(a).minUniformBufferOffsetAlignment;return b});c.wbg.__wbg_minStorageBufferOffsetAlignment_9913f200aee2c749=(a=>{const b=d(a).minStorageBufferOffsetAlignment;return b});c.wbg.__wbg_maxInterStageShaderComponents_f9243ac86242eb18=(a=>{const b=d(a).maxInterStageShaderComponents;return b});c.wbg.__wbg_maxColorAttachments_d33b1d22c06a6fc5=(a=>{const b=d(a).maxColorAttachments;return b});c.wbg.__wbg_maxColorAttachmentBytesPerSample_637fd3ac394c14ee=(a=>{const b=d(a).maxColorAttachmentBytesPerSample;return b});c.wbg.__wbg_maxComputeWorkgroupStorageSize_7e5bc378e5a62367=(a=>{const b=d(a).maxComputeWorkgroupStorageSize;return b});c.wbg.__wbg_maxComputeInvocationsPerWorkgroup_1ed5b24d52720f8a=(a=>{const b=d(a).maxComputeInvocationsPerWorkgroup;return b});c.wbg.__wbg_maxComputeWorkgroupSizeX_56b713fb17f8c261=(a=>{const b=d(a).maxComputeWorkgroupSizeX;return b});c.wbg.__wbg_maxComputeWorkgroupSizeY_13040bdf12fd4e65=(a=>{const b=d(a).maxComputeWorkgroupSizeY;return b});c.wbg.__wbg_maxComputeWorkgroupSizeZ_8c8594730967472d=(a=>{const b=d(a).maxComputeWorkgroupSizeZ;return b});c.wbg.__wbg_maxComputeWorkgroupsPerDimension_4094c8501eea36ce=(a=>{const b=d(a).maxComputeWorkgroupsPerDimension;return b});c.wbg.__wbg_new_034f913e7636e987=(()=>{const a=new ar();return q(a)});c.wbg.__wbg_push_36cf4d81d7da33d1=((a,b)=>{const c=d(a).push(d(b));return c});c.wbg.__wbg_createRenderPipeline_2bfc852ce09914fc=((a,b)=>{const c=d(a).createRenderPipeline(d(b));return q(c)});c.wbg.__wbg_error_c4453561fa6c2209=(a=>{const b=d(a).error;return q(b)});c.wbg.__wbg_valueOf_caadbb280a0b350a=(a=>{const b=d(a).valueOf();return q(b)});c.wbg.__wbg_instanceof_GpuValidationError_776dc042f9752ecb=(a=>{let b;try{b=d(a) instanceof GPUValidationError}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_message_e73620d927b54373=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_instanceof_GpuOutOfMemoryError_3621d9e8ec05691e=(a=>{let b;try{b=d(a) instanceof GPUOutOfMemoryError}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_instanceof_Object_4bbac482eda9b711=(a=>{let b;try{b=d(a) instanceof aR}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_buffer_95102df5554646dc=(a=>{const b=d(a).buffer;return q(b)});c.wbg.__wbg_writeBuffer_4245ce84e6d772c9=((a,b,c,e,f,g)=>{d(a).writeBuffer(d(b),c,d(e),f,g)});c.wbg.__wbg_querySelectorAll_28e417f74795a70f=function(){return B(((a,b,c)=>{const e=d(a).querySelectorAll(s(b,c));return q(e)}),arguments)};c.wbg.__wbg_get_602f2a39a831c929=((a,b)=>{const c=d(a)[b>>>au];return n(c)?au:q(c)});c.wbg.__wbg_getContext_211e7f0e615215a4=function(){return B(((a,b,c)=>{const e=d(a).getContext(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_getContext_bf8985355a4d22ca=function(){return B(((a,b,c)=>{const e=d(a).getContext(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_requestAdapter_e6f12701c7a38391=((a,b)=>{const c=d(a).requestAdapter(d(b));return q(c)});c.wbg.__wbg_requestDevice_727ad8687b0d6553=((a,b)=>{const c=d(a).requestDevice(d(b));return q(c)});c.wbg.__wbg_features_b56ebab8f515839e=(a=>{const b=d(a).features;return q(b)});c.wbg.__wbg_limits_be2f592b5e154a3d=(a=>{const b=d(a).limits;return q(b)});c.wbg.__wbg_getPreferredCanvasFormat_012ef9f3b0238ffa=(a=>{const b=d(a).getPreferredCanvasFormat();return (ab.indexOf(b)+ az||96)- az});c.wbg.__wbg_setwidth_23bf2deedd907275=((a,b)=>{d(a).width=b>>>au});c.wbg.__wbg_setheight_239dc283bbe50da4=((a,b)=>{d(a).height=b>>>au});c.wbg.__wbg_setwidth_e02ce7ae3e45c1b6=((a,b)=>{d(a).width=b>>>au});c.wbg.__wbg_setheight_45e518143d1ca78f=((a,b)=>{d(a).height=b>>>au});c.wbg.__wbg_configure_6cde48f0c99a3497=((a,b)=>{d(a).configure(d(b))});c.wbg.__wbg_getCurrentTexture_95b5b88416fdb0c2=(a=>{const b=d(a).getCurrentTexture();return q(b)});c.wbg.__wbg_features_4991b2a28904a253=(a=>{const b=d(a).features;return q(b)});c.wbg.__wbg_limits_1aa8a49e0a8442cc=(a=>{const b=d(a).limits;return q(b)});c.wbg.__wbg_createShaderModule_036b780a18124d9e=((a,b)=>{const c=d(a).createShaderModule(d(b));return q(c)});c.wbg.__wbg_createBindGroupLayout_313b4151e718ff1f=((a,b)=>{const c=d(a).createBindGroupLayout(d(b));return q(c)});c.wbg.__wbg_createBindGroup_2d6778f92445c8bf=((a,b)=>{const c=d(a).createBindGroup(d(b));return q(c)});c.wbg.__wbg_createPipelineLayout_9134c6c32c505ec8=((a,b)=>{const c=d(a).createPipelineLayout(d(b));return q(c)});c.wbg.__wbg_createComputePipeline_02674342979c6288=((a,b)=>{const c=d(a).createComputePipeline(d(b));return q(c)});c.wbg.__wbg_createBuffer_65c2fc555c46aa07=((a,b)=>{const c=d(a).createBuffer(d(b));return q(c)});c.wbg.__wbg_createTexture_5adbcf0db3fd41b4=((a,b)=>{const c=d(a).createTexture(d(b));return q(c)});c.wbg.__wbg_createSampler_942022241ecf4277=((a,b)=>{const c=d(a).createSampler(d(b));return q(c)});c.wbg.__wbg_createQuerySet_424dbf8130140914=((a,b)=>{const c=d(a).createQuerySet(d(b));return q(c)});c.wbg.__wbg_createCommandEncoder_1db1770ea9eab9af=((a,b)=>{const c=d(a).createCommandEncoder(d(b));return q(c)});c.wbg.__wbg_createRenderBundleEncoder_32896e68340fabc6=((a,b)=>{const c=d(a).createRenderBundleEncoder(d(b));return q(c)});c.wbg.__wbg_lost_42410660a8cd8819=(a=>{const b=d(a).lost;return q(b)});c.wbg.__wbg_destroy_4f7ed2bbb4742899=(a=>{d(a).destroy()});c.wbg.__wbg_setonuncapturederror_4e4946a65c61f3ef=((a,b)=>{d(a).onuncapturederror=d(b)});c.wbg.__wbg_pushErrorScope_a09c8b037ab27e15=((a,b)=>{d(a).pushErrorScope(X[b])});c.wbg.__wbg_popErrorScope_f8f0d4b6d5c635f9=(a=>{const b=d(a).popErrorScope();return q(b)});c.wbg.__wbg_mapAsync_3b0a03a892fb22b3=((a,b,c,e)=>{const f=d(a).mapAsync(b>>>au,c,e);return q(f)});c.wbg.__wbg_getMappedRange_1216b00d6d7803de=((a,b,c)=>{const e=d(a).getMappedRange(b,c);return q(e)});c.wbg.__wbg_unmap_7a0dddee82ac6ed3=(a=>{d(a).unmap()});c.wbg.__wbg_createView_0ab0576f1665c9ad=((a,b)=>{const c=d(a).createView(d(b));return q(c)});c.wbg.__wbg_destroy_199808599201ee27=(a=>{d(a).destroy()});c.wbg.__wbg_destroy_57694ff5aabbf32d=(a=>{d(a).destroy()});c.wbg.__wbg_getBindGroupLayout_a0d36a72bd39bb04=((a,b)=>{const c=d(a).getBindGroupLayout(b>>>au);return q(c)});c.wbg.__wbg_getBindGroupLayout_abc654a192f85d5e=((a,b)=>{const c=d(a).getBindGroupLayout(b>>>au);return q(c)});c.wbg.__wbg_copyBufferToBuffer_667953bc6dccb6b4=((a,b,c,e,f,g)=>{d(a).copyBufferToBuffer(d(b),c,d(e),f,g)});c.wbg.__wbg_copyBufferToTexture_ca5b298687bed60a=((a,b,c,e)=>{d(a).copyBufferToTexture(d(b),d(c),d(e))});c.wbg.__wbg_copyTextureToBuffer_cdf8118386295eb4=((a,b,c,e)=>{d(a).copyTextureToBuffer(d(b),d(c),d(e))});c.wbg.__wbg_copyTextureToTexture_67678f03fd20bd23=((a,b,c,e)=>{d(a).copyTextureToTexture(d(b),d(c),d(e))});c.wbg.__wbg_beginComputePass_a148b983810f6795=((a,b)=>{const c=d(a).beginComputePass(d(b));return q(c)});c.wbg.__wbg_end_28d311f5d435aa6d=(a=>{d(a).end()});c.wbg.__wbg_beginRenderPass_0b83360fd99b5810=((a,b)=>{const c=d(a).beginRenderPass(d(b));return q(c)});c.wbg.__wbg_end_e3cea1776c95d64f=(a=>{d(a).end()});c.wbg.__wbg_label_175c4f59b3eca611=((a,c)=>{const e=d(c).label;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_finish_d1d9eb9915c96a79=((a,b)=>{const c=d(a).finish(d(b));return q(c)});c.wbg.__wbg_finish_ce7d5c15fce975aa=(a=>{const b=d(a).finish();return q(b)});c.wbg.__wbg_clearBuffer_2cc723ab6b818737=((a,b,c)=>{d(a).clearBuffer(d(b),c)});c.wbg.__wbg_clearBuffer_78a94a2eda97eb5a=((a,b,c,e)=>{d(a).clearBuffer(d(b),c,e)});c.wbg.__wbg_resolveQuerySet_22e31015a36a09d5=((a,b,c,e,f,g)=>{d(a).resolveQuerySet(d(b),c>>>au,e>>>au,d(f),g>>>au)});c.wbg.__wbg_finish_2115db9e679c5aae=(a=>{const b=d(a).finish();return q(b)});c.wbg.__wbg_finish_4a754149a60eddc0=((a,b)=>{const c=d(a).finish(d(b));return q(c)});c.wbg.__wbg_usage_5e9a3548afbc3ebb=(a=>{const b=d(a).usage;return b});c.wbg.__wbg_size_fc880d60ff425a47=(a=>{const b=d(a).size;return b});c.wbg.__wbg_writeTexture_686a8160c3c5ddbb=((a,b,c,e,f)=>{d(a).writeTexture(d(b),d(c),d(e),d(f))});c.wbg.__wbg_copyExternalImageToTexture_87bdcc3260c6efba=((a,b,c,e)=>{d(a).copyExternalImageToTexture(d(b),d(c),d(e))});c.wbg.__wbg_submit_afbd82b0d5056194=((a,b)=>{d(a).submit(d(b))});c.wbg.__wbg_setPipeline_8630b264a9c4ec4b=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_5a450a0e97199c15=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_17e73587d3c1be08=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_dispatchWorkgroups_4bc133944e89d5e0=((a,b,c,e)=>{d(a).dispatchWorkgroups(b>>>au,c>>>au,e>>>au)});c.wbg.__wbg_dispatchWorkgroupsIndirect_8050acb60dd74a34=((a,b,c)=>{d(a).dispatchWorkgroupsIndirect(d(b),c)});c.wbg.__wbg_setPipeline_a95b89d99620ba34=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_f70bb0d0a5ace56d=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_58e27d4cd266f187=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_setIndexBuffer_747e1ba3f58d7227=((a,b,c,e)=>{d(a).setIndexBuffer(d(b),$[c],e)});c.wbg.__wbg_setIndexBuffer_3f1635c89f72d661=((a,b,c,e,f)=>{d(a).setIndexBuffer(d(b),$[c],e,f)});c.wbg.__wbg_setVertexBuffer_94a88edbfb4b07f8=((a,b,c,e)=>{d(a).setVertexBuffer(b>>>au,d(c),e)});c.wbg.__wbg_setVertexBuffer_407067a9522118df=((a,b,c,e,f)=>{d(a).setVertexBuffer(b>>>au,d(c),e,f)});c.wbg.__wbg_draw_60508d893ce4e012=((a,b,c,e,f)=>{d(a).draw(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_drawIndexed_d5c5dff02437a4f0=((a,b,c,e,f,g)=>{d(a).drawIndexed(b>>>au,c>>>au,e>>>au,f,g>>>au)});c.wbg.__wbg_drawIndirect_54f93ae4ccc85358=((a,b,c)=>{d(a).drawIndirect(d(b),c)});c.wbg.__wbg_drawIndexedIndirect_bf668464170261b3=((a,b,c)=>{d(a).drawIndexedIndirect(d(b),c)});c.wbg.__wbg_setPipeline_d7c9c55035f118a6=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_0bf976b9657f99bd=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_c6ab2e9583489b58=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_setIndexBuffer_ea39707d8842fe03=((a,b,c,e)=>{d(a).setIndexBuffer(d(b),$[c],e)});c.wbg.__wbg_setIndexBuffer_04ba4ea48c8f80be=((a,b,c,e,f)=>{d(a).setIndexBuffer(d(b),$[c],e,f)});c.wbg.__wbg_setVertexBuffer_907c60acf6dca161=((a,b,c,e)=>{d(a).setVertexBuffer(b>>>au,d(c),e)});c.wbg.__wbg_setVertexBuffer_9a336bb112a33317=((a,b,c,e,f)=>{d(a).setVertexBuffer(b>>>au,d(c),e,f)});c.wbg.__wbg_draw_540a514f996a5d0d=((a,b,c,e,f)=>{d(a).draw(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_drawIndexed_f717a07602ee2d18=((a,b,c,e,f,g)=>{d(a).drawIndexed(b>>>au,c>>>au,e>>>au,f,g>>>au)});c.wbg.__wbg_drawIndirect_c588ff54fb149aee=((a,b,c)=>{d(a).drawIndirect(d(b),c)});c.wbg.__wbg_drawIndexedIndirect_bb5585ec7f45d269=((a,b,c)=>{d(a).drawIndexedIndirect(d(b),c)});c.wbg.__wbg_setBlendConstant_496a0b5cc772c236=((a,b)=>{d(a).setBlendConstant(d(b))});c.wbg.__wbg_setScissorRect_9b7e673d03036c37=((a,b,c,e,f)=>{d(a).setScissorRect(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_setViewport_85d18ceefd5180eb=((a,b,c,e,f,g,h)=>{d(a).setViewport(b,c,e,f,g,h)});c.wbg.__wbg_setStencilReference_b4b1f7e586967a4d=((a,b)=>{d(a).setStencilReference(b>>>au)});c.wbg.__wbg_executeBundles_16985086317c358a=((a,b)=>{d(a).executeBundles(d(b))});c.wbg.__wbg_movementX_468fdc7a7281744b=(a=>{const b=d(a).movementX;return b});c.wbg.__wbg_movementY_8bbbf8c3bffd1fce=(a=>{const b=d(a).movementY;return b});c.wbg.__wbg_offsetX_294898d040917c6b=(a=>{const b=d(a).offsetX;return b});c.wbg.__wbg_offsetY_f484804b7b03dd86=(a=>{const b=d(a).offsetY;return b});c.wbg.__wbg_error_e297661c1014a1cc=((a,b)=>{console.error(d(a),d(b))});c.wbg.__wbg_removeListener_0e5684bf9a4fe773=function(){return B(((a,b)=>{d(a).removeListener(d(b))}),arguments)};c.wbg.__wbg_disconnect_91f6e3e629264c78=(a=>{d(a).disconnect()});c.wbg.__wbg_disconnect_8d41ebc92b193580=(a=>{d(a).disconnect()});c.wbg.__wbg_cancel_cba86749f45f30ae=(a=>{d(a).cancel()});c.wbg.__wbg_Window_bd9ec3fee5f673ee=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbg_clearTimeout_8567b0ecb6ec5d60=((a,b)=>{d(a).clearTimeout(b)});c.wbg.__wbg_close_8356c7a6c6893135=(a=>{d(a).close()});c.wbg.__wbg_setonmessage_81b2f44fc2b4b0a4=((a,b)=>{d(a).onmessage=d(b)});c.wbg.__wbg_cancelIdleCallback_7e85ac94feec1b33=((a,b)=>{d(a).cancelIdleCallback(b>>>au)});c.wbg.__wbg_abort_c57daab47a6c1215=(a=>{d(a).abort()});c.wbg.__wbg_scheduler_7ccf2d3b362018c4=(a=>{const b=d(a).scheduler;return q(b)});c.wbg.__wbg_signal_9acfcec9e7dffc22=(a=>{const b=d(a).signal;return q(b)});c.wbg.__wbg_postTask_99464245f349be5a=((a,b,c)=>{const e=d(a).postTask(d(b),d(c));return q(e)});c.wbg.__wbg_catch_8097da4375a5dd1b=((a,b)=>{const c=d(a).catch(d(b));return q(c)});c.wbg.__wbg_port1_a6e649ef4f3886f3=(a=>{const b=d(a).port1;return q(b)});c.wbg.__wbg_start_818baa7ac87fe59f=(a=>{d(a).start()});c.wbg.__wbg_port2_6fdacea6fa8e446e=(a=>{const b=d(a).port2;return q(b)});c.wbg.__wbg_setTimeout_c9db6bce0a6bb71c=function(){return B(((a,b)=>{const c=d(a).setTimeout(d(b));return c}),arguments)};c.wbg.__wbg_of_7e03bb557d6a64cc=((a,b)=>{const c=aS(d(a),d(b));return q(c)});c.wbg.__wbg_of_064d1507296514c2=(a=>{const b=aS(d(a));return q(b)});c.wbg.__wbg_postMessage_857ce8a4ab57c841=function(){return B(((a,b,c)=>{d(a).postMessage(d(b),d(c))}),arguments)};c.wbg.__wbg_requestIdleCallback_effe682e9df1695f=function(){return B(((a,b)=>{const c=d(a).requestIdleCallback(d(b));return c}),arguments)};c.wbg.__wbg_new_00d033f8a8736a28=function(){return B(((a,b)=>{const c=new Worker(s(a,b));return q(c)}),arguments)};c.wbg.__wbg_settype_623d2ee701e6310a=((a,b,c)=>{d(a).type=s(b,c)});c.wbg.__wbg_newwithstrsequenceandoptions_3d581ce16ca52c44=function(){return B(((a,b)=>{const c=new Blob(d(a),d(b));return q(c)}),arguments)};c.wbg.__wbg_createObjectURL_11804d71ac214694=function(){return B(((a,c)=>{const e=URL.createObjectURL(d(c));const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)}),arguments)};c.wbg.__wbg_requestIdleCallback_86b728660e0547ef=(a=>{const b=d(a).requestIdleCallback;return q(b)});c.wbg.__wbg_scheduler_f38a681d98b5a776=(a=>{const b=d(a).scheduler;return q(b)});c.wbg.__wbg_contains_a28a8f7c01e4c130=((a,b)=>{const c=d(a).contains(d(b));return c});c.wbg.__wbg_unobserve_79fd6473e7891735=((a,b)=>{d(a).unobserve(d(b))});c.wbg.__wbg_observe_51c387de0413edcf=((a,b)=>{d(a).observe(d(b))});c.wbg.__wbg_getPropertyValue_b199c95cfeadebdf=function(){return B(((a,c,e,f)=>{const g=d(c).getPropertyValue(s(e,f));const i=m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);const j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbg_prototype_d33365945f23f380=(()=>{const a=ResizeObserverEntry.prototype;return q(a)});c.wbg.__wbg_getOwnPropertyDescriptor_419345cdc0d1ec14=((a,b)=>{const c=aR.getOwnPropertyDescriptor(d(a),d(b));return q(c)});c.wbg.__wbg_pointerId_93f7e5e10bb641ad=(a=>{const b=d(a).pointerId;return b});c.wbg.__wbg_buttons_2cb9e49b40e20105=(a=>{const b=d(a).buttons;return b});c.wbg.__wbg_button_d8226b772c8cf494=(a=>{const b=d(a).button;return b});c.wbg.__wbg_getCoalescedEvents_8f8920b382098ac5=(a=>{const b=d(a).getCoalescedEvents();return q(b)});c.wbg.__wbg_getCoalescedEvents_85701851c470c4e6=(a=>{const b=d(a).getCoalescedEvents;return q(b)});c.wbg.__wbg_userAgentData_85a8393570ab7dee=(a=>{const b=d(a).userAgentData;return n(b)?au:q(b)});c.wbg.__wbg_brands_982de08b35281a98=(a=>{const b=d(a).brands;return q(b)});c.wbg.__wbg_brand_cdcf0249d44027a8=((a,c)=>{const e=d(c).brand;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_userAgent_b433f0f22dfedec5=function(){return B(((a,c)=>{const e=d(c).userAgent;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)}),arguments)};c.wbg.__wbg_persisted_af13b0ad7952721a=(a=>{const b=d(a).persisted;return b});c.wbg.__wbg_matches_7df350fbe7beb09f=(a=>{const b=d(a).matches;return b});c.wbg.__wbg_pointerType_6d91ef0da43639d3=((a,c)=>{const e=d(c).pointerType;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_pressure_ad8dacbd14c9076f=(a=>{const b=d(a).pressure;return b});c.wbg.__wbg_preventDefault_eecc4a63e64c4526=(a=>{d(a).preventDefault()});c.wbg.__wbg_deltaX_10154f810008c0a0=(a=>{const b=d(a).deltaX;return b});c.wbg.__wbg_deltaY_afd77a1b9e0d9ccd=(a=>{const b=d(a).deltaY;return b});c.wbg.__wbg_deltaMode_f31810d86a9defec=(a=>{const b=d(a).deltaMode;return b});c.wbg.__wbg_shiftKey_6d843f3032fd0366=(a=>{const b=d(a).shiftKey;return b});c.wbg.__wbg_ctrlKey_4015247a39aa9410=(a=>{const b=d(a).ctrlKey;return b});c.wbg.__wbg_altKey_c9401b041949ea90=(a=>{const b=d(a).altKey;return b});c.wbg.__wbg_metaKey_5d680933661ea1ea=(a=>{const b=d(a).metaKey;return b});c.wbg.__wbg_media_80aa0a213cbd9b0b=((a,c)=>{const e=d(c).media;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_repeat_1f81f308f5d8d519=(a=>{const b=d(a).repeat;return b});c.wbg.__wbg_key_001eb20ba3b3d2fd=((a,c)=>{const e=d(c).key;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_shiftKey_cb120edc9c25950d=(a=>{const b=d(a).shiftKey;return b});c.wbg.__wbg_ctrlKey_f592192d87040d94=(a=>{const b=d(a).ctrlKey;return b});c.wbg.__wbg_altKey_ebf03e2308f51c08=(a=>{const b=d(a).altKey;return b});c.wbg.__wbg_metaKey_0735ca81e2ec6c72=(a=>{const b=d(a).metaKey;return b});c.wbg.__wbg_code_bec0d5222298000e=((a,c)=>{const e=d(c).code;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_location_a7e2614c5720fcd7=(a=>{const b=d(a).location;return b});c.wbg.__wbg_isIntersecting_57d03835f2fb0c18=(a=>{const b=d(a).isIntersecting;return b});c.wbg.__wbg_setPointerCapture_739b13a4c8b0c2b0=function(){return B(((a,b)=>{d(a).setPointerCapture(b)}),arguments)};c.wbg.__wbg_contentRect_0ff902e25b5b4c7a=(a=>{const b=d(a).contentRect;return q(b)});c.wbg.__wbg_width_45de62653cf1c40c=(a=>{const b=d(a).width;return b});c.wbg.__wbg_height_333816c9b207333d=(a=>{const b=d(a).height;return b});c.wbg.__wbg_devicePixelContentBoxSize_67d2874a12290f0b=(a=>{const b=d(a).devicePixelContentBoxSize;return q(b)});c.wbg.__wbg_inlineSize_bdd9c1683673d79e=(a=>{const b=d(a).inlineSize;return b});c.wbg.__wbg_blockSize_5d28da4852a3728e=(a=>{const b=d(a).blockSize;return b});c.wbg.__wbg_requestFullscreen_8a94df4e7f757077=(a=>{const b=d(a).requestFullscreen;return q(b)});c.wbg.__wbg_requestAnimationFrame_8c3436f4ac89bc48=function(){return B(((a,b)=>{const c=d(a).requestAnimationFrame(d(b));return c}),arguments)};c.wbg.__wbg_queueMicrotask_693514e3dcae83e6=(a=>{queueMicrotask(g(a))});c.wbg.__wbg_play_5896e5851ba90aa2=(a=>{d(a).play()});c.wbg.__wbg_removeProperty_5acbca68235d0706=function(){return B(((a,c,e,f)=>{const g=d(c).removeProperty(s(e,f));const i=m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);const j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbg_webkitFullscreenElement_a02341d57a641b43=(a=>{const b=d(a).webkitFullscreenElement;return n(b)?au:q(b)});c.wbg.__wbg_fullscreenElement_d39685ee9d78d455=(a=>{const b=d(a).fullscreenElement;return n(b)?au:q(b)});c.wbg.__wbg_is_4b64bc96710d6a0f=((a,b)=>{const c=aR.is(d(a),d(b));return c});c.wbg.__wbg_animate_b321da85ed3f2b4a=((a,b,c)=>{const e=d(a).animate(d(b),d(c));return q(e)});c.wbg.__wbg_webkitRequestFullscreen_42ba1c34171febc6=(a=>{d(a).webkitRequestFullscreen()});c.wbg.__wbg_requestFullscreen_24891df6120b675d=(a=>{const b=d(a).requestFullscreen();return q(b)});c.wbg.__wbg_webkitExitFullscreen_77a6c8d07ec6ee46=(a=>{d(a).webkitExitFullscreen()});c.wbg.__wbg_exitFullscreen_9eef33d4b314e087=(a=>{d(a).exitFullscreen()});c.wbg.__wbg_createElement_e4523490bd0ae51d=function(){return B(((a,b,c)=>{const e=d(a).createElement(s(b,c));return q(e)}),arguments)};c.wbg.__wbg_body_8e909b791b1745d3=(a=>{const b=d(a).body;return n(b)?au:q(b)});c.wbg.__wbg_appendChild_bc4a0deae90a5164=function(){return B(((a,b)=>{const c=d(a).appendChild(d(b));return q(c)}),arguments)};c.wbg.__wbg_getComputedStyle_ec7e113b79b74e98=function(){return B(((a,b)=>{const c=d(a).getComputedStyle(d(b));return n(c)?au:q(c)}),arguments)};c.wbg.__wbg_activeElement_4ab2bc6dcf8da330=(a=>{const b=d(a).activeElement;return n(b)?au:q(b)});c.wbg.__wbg_new_bc395d17a25f9f2f=function(){return B((a=>{const b=new ResizeObserver(d(a));return q(b)}),arguments)};c.wbg.__wbg_setbox_0540f4f0ed4733b6=((a,b)=>{d(a).box=ah[b]});c.wbg.__wbg_observe_e05a589c42476328=((a,b,c)=>{d(a).observe(d(b),d(c))});c.wbg.__wbg_new_4422dda84db10905=function(){return B((a=>{const b=new IntersectionObserver(d(a));return q(b)}),arguments)};c.wbg.__wbg_observe_6f2910a25347a592=((a,b)=>{d(a).observe(d(b))});c.wbg.__wbg_getBoundingClientRect_5ad16be1e2955e83=(a=>{const b=d(a).getBoundingClientRect();return q(b)});c.wbg.__wbg_x_a9a34a1bc15c8dea=(a=>{const b=d(a).x;return b});c.wbg.__wbg_y_4926ebe58a2a92c8=(a=>{const b=d(a).y;return b});c.wbg.__wbindgen_closure_wrapper17159=((a,b,c)=>{const d=v(a,b,aT,w);return q(d)});c.wbg.__wbindgen_closure_wrapper29583=((a,b,c)=>{const d=x(a,b,aU,y);return q(d)});c.wbg.__wbindgen_closure_wrapper29613=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper43411=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper44507=((a,b,c)=>{const d=v(a,b,aU,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45027=((a,b,c)=>{const d=v(a,b,aT,w);return q(d)});c.wbg.__wbindgen_closure_wrapper45112=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45124=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45137=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45154=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45171=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45200=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45216=((a,b,c)=>{const d=v(a,b,aT,A);return q(d)});return c});const a=typeof AudioContext!==ap?AudioContext:(typeof webkitAudioContext!==ap?webkitAudioContext:aq);let b;const c=new ar(128).fill(aq);c.push(aq,at,!0,!1);let e=c.length;let h=au;let i=at;const k=typeof TextEncoder!==ap?new TextEncoder(aw):{encode:()=>{throw ax(`TextEncoder not available`)}};const l=typeof k.encodeInto===ay?((a,b)=>k.encodeInto(a,b)):((a,b)=>{const c=k.encode(a);b.set(c);return {read:a.length,written:c.length}});let o=at;const r=typeof TextDecoder!==ap?new TextDecoder(aw,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw ax(`TextDecoder not available`)}};if(typeof TextDecoder!==ap){r.decode()};const u=typeof aG===ap?{register:()=>{},unregister:()=>{}}:new aG(a=>{b.__wbindgen_export_2.get(a.dtor)(a.a,a.b)});let C=at;let G=at;const J=[`suspended`,`running`,`closed`];const K=[`blob`,`arraybuffer`];const L=[``,`standard`];const M=[`clamp-to-edge`,`repeat`,`mirror-repeat`];const N=[`auto`];const O=[aI,`one`,`src`,`one-minus-src`,`src-alpha`,`one-minus-src-alpha`,`dst`,`one-minus-dst`,`dst-alpha`,`one-minus-dst-alpha`,`src-alpha-saturated`,`constant`,`one-minus-constant`];const P=[`add`,`subtract`,`reverse-subtract`,`min`,`max`];const Q=[`uniform`,`storage`,`read-only-storage`];const R=[`unmapped`,`pending`,`mapped`];const S=[`opaque`,`premultiplied`];const T=[`never`,`less`,`equal`,`less-equal`,`greater`,`not-equal`,`greater-equal`,`always`];const U=[`error`,`warning`,`info`];const V=[aJ,`front`,`back`];const W=[`unknown`,`destroyed`];const X=[`validation`,`out-of-memory`,`internal`];const Y=[`depth-clip-control`,aK,`texture-compression-bc`,`texture-compression-etc2`,`texture-compression-astc`,`timestamp-query`,`indirect-first-instance`,`shader-f16`,`rg11b10ufloat-renderable`,`bgra8unorm-storage`,`float32-filterable`];const Z=[aL,aM];const _=[`ccw`,`cw`];const $=[`uint16`,aN];const a0=[`load`,`clear`];const a1=[aL,aM];const a2=[`low-power`,`high-performance`];const a3=[`point-list`,`line-list`,`line-strip`,`triangle-list`,`triangle-strip`];const a4=[`occlusion`,`timestamp`];const a5=[`filtering`,`non-filtering`,`comparison`];const a6=[`keep`,aI,`replace`,`invert`,`increment-clamp`,`decrement-clamp`,`increment-wrap`,`decrement-wrap`];const a7=[`write-only`,`read-only`,`read-write`];const a8=[`store`,`discard`];const a9=[`all`,`stencil-only`,`depth-only`];const aa=[aO,aP,aQ];const ab=[`r8unorm`,`r8snorm`,`r8uint`,`r8sint`,`r16uint`,`r16sint`,`r16float`,`rg8unorm`,`rg8snorm`,`rg8uint`,`rg8sint`,`r32uint`,`r32sint`,`r32float`,`rg16uint`,`rg16sint`,`rg16float`,`rgba8unorm`,`rgba8unorm-srgb`,`rgba8snorm`,`rgba8uint`,`rgba8sint`,`bgra8unorm`,`bgra8unorm-srgb`,`rgb9e5ufloat`,`rgb10a2uint`,`rgb10a2unorm`,`rg11b10ufloat`,`rg32uint`,`rg32sint`,`rg32float`,`rgba16uint`,`rgba16sint`,`rgba16float`,`rgba32uint`,`rgba32sint`,`rgba32float`,`stencil8`,`depth16unorm`,`depth24plus`,`depth24plus-stencil8`,`depth32float`,aK,`bc1-rgba-unorm`,`bc1-rgba-unorm-srgb`,`bc2-rgba-unorm`,`bc2-rgba-unorm-srgb`,`bc3-rgba-unorm`,`bc3-rgba-unorm-srgb`,`bc4-r-unorm`,`bc4-r-snorm`,`bc5-rg-unorm`,`bc5-rg-snorm`,`bc6h-rgb-ufloat`,`bc6h-rgb-float`,`bc7-rgba-unorm`,`bc7-rgba-unorm-srgb`,`etc2-rgb8unorm`,`etc2-rgb8unorm-srgb`,`etc2-rgb8a1unorm`,`etc2-rgb8a1unorm-srgb`,`etc2-rgba8unorm`,`etc2-rgba8unorm-srgb`,`eac-r11unorm`,`eac-r11snorm`,`eac-rg11unorm`,`eac-rg11snorm`,`astc-4x4-unorm`,`astc-4x4-unorm-srgb`,`astc-5x4-unorm`,`astc-5x4-unorm-srgb`,`astc-5x5-unorm`,`astc-5x5-unorm-srgb`,`astc-6x5-unorm`,`astc-6x5-unorm-srgb`,`astc-6x6-unorm`,`astc-6x6-unorm-srgb`,`astc-8x5-unorm`,`astc-8x5-unorm-srgb`,`astc-8x6-unorm`,`astc-8x6-unorm-srgb`,`astc-8x8-unorm`,`astc-8x8-unorm-srgb`,`astc-10x5-unorm`,`astc-10x5-unorm-srgb`,`astc-10x6-unorm`,`astc-10x6-unorm-srgb`,`astc-10x8-unorm`,`astc-10x8-unorm-srgb`,`astc-10x10-unorm`,`astc-10x10-unorm-srgb`,`astc-12x10-unorm`,`astc-12x10-unorm-srgb`,`astc-12x12-unorm`,`astc-12x12-unorm-srgb`];const ac=[`float`,`unfilterable-float`,`depth`,`sint`,`uint`];const ad=[aO,aP,`2d-array`,`cube`,`cube-array`,aQ];const ae=[`uint8x2`,`uint8x4`,`sint8x2`,`sint8x4`,`unorm8x2`,`unorm8x4`,`snorm8x2`,`snorm8x4`,`uint16x2`,`uint16x4`,`sint16x2`,`sint16x4`,`unorm16x2`,`unorm16x4`,`snorm16x2`,`snorm16x4`,`float16x2`,`float16x4`,`float32`,`float32x2`,`float32x3`,`float32x4`,aN,`uint32x2`,`uint32x3`,`uint32x4`,`sint32`,`sint32x2`,`sint32x3`,`sint32x4`,`unorm10-10-10-2`];const af=[`vertex`,`instance`];const ag=[aJ,`premultiply`,`default`];const ah=[`border-box`,`content-box`,`device-pixel-content-box`];const ai=[`hidden`,`visible`];export default ao;export{an as initSync} \ No newline at end of file +let aw=`utf-8`,aE=`Object`,aH=4,aN=`uint32`,aB=`number`,aA=3,aP=`2d`,aL=`nearest`,aO=`1d`,aQ=`3d`,aK=`depth32float-stencil8`,az=1,aC=`boolean`,aD=`string`,aM=`linear`,aJ=`none`,at=null,aU=3180,aI=`zero`,ap=`undefined`,ay=`function`,au=0,aT=4362,ar=Array,aS=Array.of,ax=Error,aG=FinalizationRegistry,aF=JSON.stringify,aR=Object,aV=Object.getPrototypeOf,av=Uint8Array,aq=undefined;var I=((a,b)=>{a=a>>>au;return H().subarray(a/aH,a/aH+ b)});var F=((a,b)=>{a=a>>>au;return j().subarray(a/az,a/az+ b)});var E=((a,b)=>{a=a>>>au;return D().subarray(a/aH,a/aH+ b)});var A=((a,c,d,e)=>{b.__wbindgen_export_6(a,c,q(d),q(e))});var z=((a,c,d)=>{b.__wbindgen_export_5(a,c,q(d))});var w=((a,c)=>{b.__wbindgen_export_3(a,c)});var y=((a,c)=>{b.__wbindgen_export_4(a,c)});var t=(a=>{const b=typeof a;if(b==aB||b==aC||a==at){return `${a}`};if(b==aD){return `"${a}"`};if(b==`symbol`){const b=a.description;if(b==at){return `Symbol`}else{return `Symbol(${b})`}};if(b==ay){const b=a.name;if(typeof b==aD&&b.length>au){return `Function(${b})`}else{return `Function`}};if(ar.isArray(a)){const b=a.length;let c=`[`;if(b>au){c+=t(a[au])};for(let d=az;daz){d=c[az]}else{return toString.call(a)};if(d==aE){try{return `Object(`+ aF(a)+ `)`}catch(a){return aE}};if(a instanceof ax){return `${a.name}: ${a.message}\n${a.stack}`};return d});var x=((a,c,d,e)=>{const f={a:a,b:c,cnt:az,dtor:d};const g=(...a)=>{f.cnt++;try{return e(f.a,f.b,...a)}finally{if(--f.cnt===au){b.__wbindgen_export_2.get(f.dtor)(f.a,f.b);f.a=au;u.unregister(f)}}};g.original=f;u.register(g,f,f);return g});var v=((a,c,d,e)=>{const f={a:a,b:c,cnt:az,dtor:d};const g=(...a)=>{f.cnt++;const c=f.a;f.a=au;try{return e(c,f.b,...a)}finally{if(--f.cnt===au){b.__wbindgen_export_2.get(f.dtor)(c,f.b);u.unregister(f)}else{f.a=c}}};g.original=f;u.register(g,f,f);return g});var s=((a,b)=>{a=a>>>au;return r.decode(j().subarray(a,a+ b))});var d=(a=>c[a]);var n=(a=>a===aq||a===at);var f=(a=>{if(a<132)return;c[a]=e;e=a});var g=(a=>{const b=d(a);f(a);return b});var j=(()=>{if(i===at||i.byteLength===au){i=new av(b.memory.buffer)};return i});var H=(()=>{if(G===at||G.byteLength===au){G=new Uint32Array(b.memory.buffer)};return G});var aj=(async(a,b)=>{if(typeof Response===ay&&a instanceof Response){if(typeof WebAssembly.instantiateStreaming===ay){try{return await WebAssembly.instantiateStreaming(a,b)}catch(b){if(a.headers.get(`Content-Type`)!=`application/wasm`){console.warn(`\`WebAssembly.instantiateStreaming\` failed because your server does not serve Wasm with \`application/wasm\` MIME type. Falling back to \`WebAssembly.instantiate\` which is slower. Original error:\\n`,b)}else{throw b}}};const c=await a.arrayBuffer();return await WebAssembly.instantiate(c,b)}else{const c=await WebAssembly.instantiate(a,b);if(c instanceof WebAssembly.Instance){return {instance:c,module:a}}else{return c}}});var q=(a=>{if(e===c.length)c.push(c.length+ az);const b=e;e=c[b];c[b]=a;return b});var m=((a,b,c)=>{if(c===aq){const c=k.encode(a);const d=b(c.length,az)>>>au;j().subarray(d,d+ c.length).set(c);h=c.length;return d};let d=a.length;let e=b(d,az)>>>au;const f=j();let g=au;for(;g127)break;f[e+ g]=b};if(g!==d){if(g!==au){a=a.slice(g)};e=c(e,d,d=g+ a.length*aA,az)>>>au;const b=j().subarray(e+ g,e+ d);const f=l(a,b);g+=f.written;e=c(e,d,g,az)>>>au};h=g;return e});var p=(()=>{if(o===at||o.buffer.detached===!0||o.buffer.detached===aq&&o.buffer!==b.memory.buffer){o=new DataView(b.memory.buffer)};return o});function B(a,c){try{return a.apply(this,c)}catch(a){b.__wbindgen_export_8(q(a))}}var ao=(async(a)=>{if(b!==aq)return b;if(typeof a!==ap){if(aV(a)===aR.prototype){({module_or_path:a}=a)}else{console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)}};if(typeof a===ap){a=new URL(`magiaboost_bg.wasm`,import.meta.url)};const c=ak();if(typeof a===aD||typeof Request===ay&&a instanceof Request||typeof URL===ay&&a instanceof URL){a=fetch(a)};al(c);const {instance:d,module:e}=await aj(await a,c);return am(d,e)});var D=(()=>{if(C===at||C.byteLength===au){C=new Float32Array(b.memory.buffer)};return C});var an=(a=>{if(b!==aq)return b;if(typeof a!==ap){if(aV(a)===aR.prototype){({module:a}=a)}else{console.warn(`using deprecated parameters for \`initSync()\`; pass a single object instead`)}};const c=ak();al(c);if(!(a instanceof WebAssembly.Module)){a=new WebAssembly.Module(a)};const d=new WebAssembly.Instance(a,c);return am(d,a)});var am=((a,c)=>{b=a.exports;ao.__wbindgen_wasm_module=c;o=at;C=at;G=at;i=at;b.__wbindgen_start();return b});var al=((a,b)=>{});var ak=(()=>{const c={};c.wbg={};c.wbg.__wbindgen_object_drop_ref=(a=>{g(a)});c.wbg.__wbg_getItem_cc312d333f535f07=function(){return B(((a,c,e,f)=>{const g=d(c).getItem(s(e,f));var i=n(g)?au:m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);var j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbg_Window_f4441e69cbceafcc=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbindgen_is_undefined=(a=>{const b=d(a)===aq;return b});c.wbg.__wbg_fetch_bfd3aa46955593c3=((a,b,c)=>{const e=d(a).fetch(s(b,c));return q(e)});c.wbg.__wbg_WorkerGlobalScope_2500166acca3df02=(a=>{const b=d(a).WorkerGlobalScope;return q(b)});c.wbg.__wbg_fetch_896e530c3d511c11=((a,b,c)=>{const e=d(a).fetch(s(b,c));return q(e)});c.wbg.__wbg_instanceof_Response_3c0e210a57ff751d=(a=>{let b;try{b=d(a) instanceof Response}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_status_5f4e900d22140a18=(a=>{const b=d(a).status;return b});c.wbg.__wbg_arrayBuffer_144729e09879650e=function(){return B((a=>{const b=d(a).arrayBuffer();return q(b)}),arguments)};c.wbg.__wbg_new_fec2611eb9180f95=(a=>{const b=new av(d(a));return q(b)});c.wbg.__wbg_stringify_eead5648c09faaf8=function(){return B((a=>{const b=aF(d(a));return q(b)}),arguments)};c.wbg.__wbindgen_string_get=((a,c)=>{const e=d(c);const f=typeof e===aD?e:aq;var g=n(f)?au:m(f,b.__wbindgen_export_0,b.__wbindgen_export_1);var i=h;p().setInt32(a+ aH*az,i,!0);p().setInt32(a+ aH*au,g,!0)});c.wbg.__wbg_now_70af4fe37a792251=(()=>{const a=Date.now();return a});c.wbg.__wbg_isSecureContext_8a5cdec3d92171bf=(a=>{const b=d(a).isSecureContext;return b});c.wbg.__wbg_document_d7fa2c739c2b191a=(a=>{const b=d(a).document;return n(b)?au:q(b)});c.wbg.__wbg_querySelector_e4353fe90bee0601=function(){return B(((a,b,c)=>{const e=d(a).querySelector(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_instanceof_HtmlCanvasElement_022ad88c76df9031=(a=>{let b;try{b=d(a) instanceof HTMLCanvasElement}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_devicePixelRatio_5d0556383aa83231=(a=>{const b=d(a).devicePixelRatio;return b});c.wbg.__wbindgen_object_clone_ref=(a=>{const b=d(a);return q(b)});c.wbg.__wbg_style_04eb1488bc2ceffc=(a=>{const b=d(a).style;return q(b)});c.wbg.__wbg_eval_1bab7c4fbae3b3d6=function(){return B(((a,b)=>{const c=eval(s(a,b));return q(c)}),arguments)};c.wbg.__wbindgen_boolean_get=(a=>{const b=d(a);const c=typeof b===aC?(b?az:au):2;return c});c.wbg.__wbg_new_e69b5f66fda8f13c=(()=>{const a=new aR();return q(a)});c.wbg.__wbg_setsamplerate_8b48d6e377fe52c9=((a,b)=>{d(a).sampleRate=b});c.wbg.__wbg_newwithcontextoptions_f939c627726d873f=function(){return B((b=>{const c=new a(d(b));return q(c)}),arguments)};c.wbg.__wbg_destination_f7f82a0a30ca8bba=(a=>{const b=d(a).destination;return q(b)});c.wbg.__wbg_maxChannelCount_af37d88907a11748=(a=>{const b=d(a).maxChannelCount;return b});c.wbg.__wbg_setchannelCount_84446ba10ba82eb1=((a,b)=>{d(a).channelCount=b>>>au});c.wbg.__wbg_createBuffer_8acdf99f8dc5d697=function(){return B(((a,b,c,e)=>{const f=d(a).createBuffer(b>>>au,c>>>au,e);return q(f)}),arguments)};c.wbg.__wbg_resume_9c4295ca96d8c40a=function(){return B((a=>{const b=d(a).resume();return q(b)}),arguments)};c.wbg.__wbg_mark_40e050a77cc39fea=((a,b)=>{performance.mark(s(a,b))});c.wbg.__wbg_log_c9486ca5d8e2cbe8=((a,c)=>{let d;let e;try{d=a;e=c;console.log(s(a,c))}finally{b.__wbindgen_export_7(d,e,az)}});c.wbg.__wbg_log_aba5996d9bde071f=((a,c,d,e,f,g,h,i)=>{let j;let k;try{j=a;k=c;console.log(s(a,c),s(d,e),s(f,g),s(h,i))}finally{b.__wbindgen_export_7(j,k,az)}});c.wbg.__wbg_localStorage_6026615061e890bf=function(){return B((a=>{const b=d(a).localStorage;return n(b)?au:q(b)}),arguments)};c.wbg.__wbg_instanceof_MessageEvent_a025220a70647214=(a=>{let b;try{b=d(a) instanceof MessageEvent}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_data_134d3a704b9fca32=(a=>{const b=d(a).data;return q(b)});c.wbg.__wbindgen_is_string=(a=>{const b=typeof d(a)===aD;return b});c.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7=(a=>{let b;try{b=d(a) instanceof ArrayBuffer}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_readyState_bc0231e8c43b0907=(a=>{const b=d(a).readyState;return b});c.wbg.__wbg_send_f308b110e144e90d=function(){return B(((a,b,c)=>{d(a).send(s(b,c))}),arguments)};c.wbg.__wbg_send_fe006eb24f5e2694=function(){return B(((a,b,c)=>{d(a).send(F(b,c))}),arguments)};c.wbg.__wbg_new_d550f7a7120dd942=function(){return B(((a,b)=>{const c=new WebSocket(s(a,b));return q(c)}),arguments)};c.wbg.__wbg_setbinaryType_2befea8ba88b61e2=((a,b)=>{d(a).binaryType=K[b]});c.wbg.__wbg_setonerror_e16deca7fd15a59c=((a,b)=>{d(a).onerror=d(b)});c.wbg.__wbg_setonopen_c0e1464e3ea28727=((a,b)=>{d(a).onopen=d(b)});c.wbg.__wbg_setonmessage_84cd941c1df08da7=((a,b)=>{d(a).onmessage=d(b)});c.wbg.__wbg_setonclose_9a28780f7d46ed03=((a,b)=>{d(a).onclose=d(b)});c.wbg.__wbg_exitPointerLock_42de2c91cfcc3203=(a=>{d(a).exitPointerLock()});c.wbg.__wbg_requestPointerLock_322607e3bc628f7a=(a=>{d(a).requestPointerLock()});c.wbg.__wbg_new_abda76e883ba8a5f=(()=>{const a=new ax();return q(a)});c.wbg.__wbg_stack_658279fe44541cf6=((a,c)=>{const e=d(c).stack;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_error_f851667af71bcfc6=((a,c)=>{let d;let e;try{d=a;e=c;console.error(s(a,c))}finally{b.__wbindgen_export_7(d,e,az)}});c.wbg.__wbg_crypto_1d1f22824a6a080c=(a=>{const b=d(a).crypto;return q(b)});c.wbg.__wbindgen_is_object=(a=>{const b=d(a);const c=typeof b===`object`&&b!==at;return c});c.wbg.__wbg_process_4a72847cc503995b=(a=>{const b=d(a).process;return q(b)});c.wbg.__wbg_versions_f686565e586dd935=(a=>{const b=d(a).versions;return q(b)});c.wbg.__wbg_node_104a2ff8d6ea03a2=(a=>{const b=d(a).node;return q(b)});c.wbg.__wbg_require_cca90b1a94a0255b=function(){return B((()=>{const a=module.require;return q(a)}),arguments)};c.wbg.__wbindgen_is_function=(a=>{const b=typeof d(a)===ay;return b});c.wbg.__wbindgen_string_new=((a,b)=>{const c=s(a,b);return q(c)});c.wbg.__wbg_msCrypto_eb05e62b530a1508=(a=>{const b=d(a).msCrypto;return q(b)});c.wbg.__wbg_newwithlength_76462a666eca145f=(a=>{const b=new av(a>>>au);return q(b)});c.wbg.__wbg_subarray_975a06f9dbd16995=((a,b,c)=>{const e=d(a).subarray(b>>>au,c>>>au);return q(e)});c.wbg.__wbg_getRandomValues_3aa56aa6edec874c=function(){return B(((a,b)=>{d(a).getRandomValues(d(b))}),arguments)};c.wbg.__wbindgen_memory=(()=>{const a=b.memory;return q(a)});c.wbg.__wbg_buffer_ccaed51a635d8a2d=(a=>{const b=d(a).buffer;return q(b)});c.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730=((a,b,c)=>{const e=new av(d(a),b>>>au,c>>>au);return q(e)});c.wbg.__wbg_randomFillSync_5c9c955aa56b6049=function(){return B(((a,b)=>{d(a).randomFillSync(g(b))}),arguments)};c.wbg.__wbg_navigator_3d3836196a5d8e62=(a=>{const b=d(a).navigator;return q(b)});c.wbg.__wbg_getGamepads_e54b0e9135685af3=function(){return B((a=>{const b=d(a).getGamepads();return q(b)}),arguments)};c.wbg.__wbg_length_f217bbbf7e8e4df4=(a=>{const b=d(a).length;return b});c.wbg.__wbg_index_8cbd5ff3bd795787=(a=>{const b=d(a).index;return b});c.wbg.__wbg_buttons_eb461fd639ddcc20=(a=>{const b=d(a).buttons;return q(b)});c.wbg.__wbg_get_5419cf6b954aa11d=((a,b)=>{const c=d(a)[b>>>au];return q(c)});c.wbg.__wbg_pressed_90d9818eedea0eef=(a=>{const b=d(a).pressed;return b});c.wbg.__wbg_value_9792b33c816e47af=(a=>{const b=d(a).value;return b});c.wbg.__wbg_axes_2a36e14aa82eefc9=(a=>{const b=d(a).axes;return q(b)});c.wbg.__wbindgen_number_get=((a,b)=>{const c=d(b);const e=typeof c===aB?c:aq;p().setFloat64(a+ 8*az,n(e)?au:e,!0);p().setInt32(a+ aH*au,!n(e),!0)});c.wbg.__wbindgen_is_null=(a=>{const b=d(a)===at;return b});c.wbg.__wbg_instanceof_DomException_9c87cb6f93f43379=(a=>{let b;try{b=d(a) instanceof DOMException}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_message_c7a4c5995cc33e84=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_id_8c477b5e4084ecfb=((a,c)=>{const e=d(c).id;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_new_800498ec872f75d4=((a,b,c,d)=>{const e=new RegExp(s(a,b),s(c,d));return q(e)});c.wbg.__wbg_exec_c872ad5c15e456ad=((a,b,c)=>{const e=d(a).exec(s(b,c));return n(e)?au:q(e)});c.wbg.__wbg_mapping_bbf7356861bbea3a=(a=>{const b=d(a).mapping;return (L.indexOf(b)+ az||aA)- az});c.wbg.__wbg_connected_db62337c768c2467=(a=>{const b=d(a).connected;return b});c.wbg.__wbg_self_bf91bf94d9e04084=function(){return B((()=>{const a=self.self;return q(a)}),arguments)};c.wbg.__wbg_window_52dd9f07d03fd5f8=function(){return B((()=>{const a=window.window;return q(a)}),arguments)};c.wbg.__wbg_globalThis_05c129bf37fcf1be=function(){return B((()=>{const a=globalThis.globalThis;return q(a)}),arguments)};c.wbg.__wbg_global_3eca19bb09e9c484=function(){return B((()=>{const a=global.global;return q(a)}),arguments)};c.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43=((a,b)=>{const c=new Function(s(a,b));return q(c)});c.wbg.__wbg_call_a9ef466721e824f2=function(){return B(((a,b)=>{const c=d(a).call(d(b));return q(c)}),arguments)};c.wbg.__wbg_call_3bfa248576352471=function(){return B(((a,b,c)=>{const e=d(a).call(d(b),d(c));return q(e)}),arguments)};c.wbg.__wbg_set_e864d25d9b399c9f=function(){return B(((a,b,c)=>{const e=Reflect.set(d(a),d(b),d(c));return e}),arguments)};c.wbg.__wbg_set_ec2fcf81bc573fd9=((a,b,c)=>{d(a).set(d(b),c>>>au)});c.wbg.__wbg_length_9254c4bd3b9f23c4=(a=>{const b=d(a).length;return b});c.wbg.__wbindgen_cb_drop=(a=>{const b=g(a).original;if(b.cnt--==az){b.a=au;return !0};const c=!1;return c});c.wbg.__wbg_currentTime_a3102f1ef74fca96=(a=>{const b=d(a).currentTime;return b});c.wbg.__wbg_createBufferSource_ed2df6b1d0df0f14=function(){return B((a=>{const b=d(a).createBufferSource();return q(b)}),arguments)};c.wbg.__wbg_setbuffer_f4457f8f6a733e5a=((a,b)=>{d(a).buffer=d(b)});c.wbg.__wbg_connect_9a09c3bcaa0c9d22=function(){return B(((a,b)=>{const c=d(a).connect(d(b));return q(c)}),arguments)};c.wbg.__wbg_setonended_95d7e5856cbda569=((a,b)=>{d(a).onended=d(b)});c.wbg.__wbg_start_c5bab011493fb2be=function(){return B(((a,b)=>{d(a).start(b)}),arguments)};c.wbg.__wbg_copyToChannel_4f1f6f3395215459=function(){return B(((a,b,c,e)=>{d(a).copyToChannel(E(b,c),e)}),arguments)};c.wbg.__wbg_close_a65253886601b1ee=function(){return B((a=>{const b=d(a).close();return q(b)}),arguments)};c.wbg.__wbg_measure_aa7a73f17813f708=function(){return B(((a,c,d,e)=>{let f;let g;let h;let i;try{f=a;g=c;h=d;i=e;performance.measure(s(a,c),s(d,e))}finally{b.__wbindgen_export_7(f,g,az);b.__wbindgen_export_7(h,i,az)}}),arguments)};c.wbg.__wbindgen_throw=((a,b)=>{throw new ax(s(a,b))});c.wbg.__wbindgen_debug_string=((a,c)=>{const e=t(d(c));const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_queueMicrotask_848aa4969108a57e=(a=>{const b=d(a).queueMicrotask;return q(b)});c.wbg.__wbg_resolve_0aad7c1484731c99=(a=>{const b=Promise.resolve(d(a));return q(b)});c.wbg.__wbg_then_748f75edfb032440=((a,b)=>{const c=d(a).then(d(b));return q(c)});c.wbg.__wbg_queueMicrotask_c5419c06eab41e73=(a=>{queueMicrotask(d(a))});c.wbg.__wbg_then_4866a7d9f55d8f3e=((a,b,c)=>{const e=d(a).then(d(b),d(c));return q(e)});c.wbg.__wbg_instanceof_Window_6575cd7f1322f82f=(a=>{let b;try{b=d(a) instanceof Window}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_new_75169ae5a9683c55=function(){return B((()=>{const a=new AbortController();return q(a)}),arguments)};c.wbg.__wbg_setProperty_b9a2384cbfb499fb=function(){return B(((a,b,c,e,f)=>{d(a).setProperty(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_visibilityState_5e9ade0fb5df3c9c=(a=>{const b=d(a).visibilityState;return (ai.indexOf(b)+ az||aA)- az});c.wbg.__wbg_setAttribute_2a8f647a8d92c712=function(){return B(((a,b,c,e,f)=>{d(a).setAttribute(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_addEventListener_4357f9b7b3826784=function(){return B(((a,b,c,e)=>{d(a).addEventListener(s(b,c),d(e))}),arguments)};c.wbg.__wbg_removeEventListener_4c13d11156153514=function(){return B(((a,b,c,e)=>{d(a).removeEventListener(s(b,c),d(e))}),arguments)};c.wbg.__wbg_focus_6b6181f7644f6dbc=function(){return B((a=>{d(a).focus()}),arguments)};c.wbg.__wbg_addListener_503d439bc3f84ff3=function(){return B(((a,b)=>{d(a).addListener(d(b))}),arguments)};c.wbg.__wbg_new_e207405ddca58ee2=function(){return B((()=>{const a=new MessageChannel();return q(a)}),arguments)};c.wbg.__wbg_postMessage_5109299871335137=function(){return B(((a,b)=>{d(a).postMessage(d(b))}),arguments)};c.wbg.__wbg_setItem_5afc04d5b6287c76=function(){return B(((a,b,c,e,f)=>{d(a).setItem(s(b,c),s(e,f))}),arguments)};c.wbg.__wbg_revokeObjectURL_8e72bad4541bdca0=function(){return B(((a,b)=>{URL.revokeObjectURL(s(a,b))}),arguments)};c.wbg.__wbg_close_9e3b743c528a8d31=function(){return B((a=>{d(a).close()}),arguments)};c.wbg.__wbg_matchMedia_2c5a513148e49e4a=function(){return B(((a,b,c)=>{const e=d(a).matchMedia(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_cancelAnimationFrame_f802bc3f3a9b2e5c=function(){return B(((a,b)=>{d(a).cancelAnimationFrame(b)}),arguments)};c.wbg.__wbg_setTimeout_e5d5b865335ce177=function(){return B(((a,b,c)=>{const e=d(a).setTimeout(d(b),c);return e}),arguments)};c.wbg.__wbg_performance_a1b8bde2ee512264=(a=>{const b=d(a).performance;return q(b)});c.wbg.__wbg_now_abd80e969af37148=(a=>{const b=d(a).now();return b});c.wbg.__wbg_instanceof_GpuDeviceLostInfo_22f963b61044b3b1=(a=>{let b;try{b=d(a) instanceof GPUDeviceLostInfo}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_reason_3af8e4afbe0efdd8=(a=>{const b=d(a).reason;return (W.indexOf(b)+ az||aA)- az});c.wbg.__wbg_message_3bef8c43f84eab9c=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbindgen_number_new=(a=>{const b=a;return q(b)});c.wbg.__wbg_Window_94d759f1f207a15b=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbg_gpu_1f3675e2d4aa88f4=(a=>{const b=d(a).gpu;return q(b)});c.wbg.__wbg_WorkerGlobalScope_b13c8cef62388de9=(a=>{const b=d(a).WorkerGlobalScope;return q(b)});c.wbg.__wbg_navigator_4093e51a109a906e=(a=>{const b=d(a).navigator;return q(b)});c.wbg.__wbg_instanceof_GpuCanvasContext_b3bff0de75efe6fd=(a=>{let b;try{b=d(a) instanceof GPUCanvasContext}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_instanceof_GpuAdapter_32bc80c8c30adaa0=(a=>{let b;try{b=d(a) instanceof GPUAdapter}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_queue_2bddd1700cb0bec2=(a=>{const b=d(a).queue;return q(b)});c.wbg.__wbg_has_1509b2ce6759dc2a=((a,b,c)=>{const e=d(a).has(s(b,c));return e});c.wbg.__wbg_maxTextureDimension1D_ea59b0f0cc2e29cd=(a=>{const b=d(a).maxTextureDimension1D;return b});c.wbg.__wbg_maxTextureDimension2D_00984ba245729ced=(a=>{const b=d(a).maxTextureDimension2D;return b});c.wbg.__wbg_maxTextureDimension3D_95c3d3adb6d66ec5=(a=>{const b=d(a).maxTextureDimension3D;return b});c.wbg.__wbg_maxTextureArrayLayers_68f4a1218a54fa93=(a=>{const b=d(a).maxTextureArrayLayers;return b});c.wbg.__wbg_maxBindGroups_e76fb8650a4459d7=(a=>{const b=d(a).maxBindGroups;return b});c.wbg.__wbg_maxBindingsPerBindGroup_2af20f39aef3fd86=(a=>{const b=d(a).maxBindingsPerBindGroup;return b});c.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_074c891075b375b7=(a=>{const b=d(a).maxDynamicUniformBuffersPerPipelineLayout;return b});c.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_b91e3e6efb7b7a8c=(a=>{const b=d(a).maxDynamicStorageBuffersPerPipelineLayout;return b});c.wbg.__wbg_maxSampledTexturesPerShaderStage_76354979d03a2b27=(a=>{const b=d(a).maxSampledTexturesPerShaderStage;return b});c.wbg.__wbg_maxSamplersPerShaderStage_fe8d223de90e5459=(a=>{const b=d(a).maxSamplersPerShaderStage;return b});c.wbg.__wbg_maxStorageBuffersPerShaderStage_bced69629145d26d=(a=>{const b=d(a).maxStorageBuffersPerShaderStage;return b});c.wbg.__wbg_maxStorageTexturesPerShaderStage_fcf51f22620c0092=(a=>{const b=d(a).maxStorageTexturesPerShaderStage;return b});c.wbg.__wbg_maxUniformBuffersPerShaderStage_b3b013238400f0c0=(a=>{const b=d(a).maxUniformBuffersPerShaderStage;return b});c.wbg.__wbg_maxUniformBufferBindingSize_194fd7147cf2e95a=(a=>{const b=d(a).maxUniformBufferBindingSize;return b});c.wbg.__wbg_maxStorageBufferBindingSize_78504383af63ac53=(a=>{const b=d(a).maxStorageBufferBindingSize;return b});c.wbg.__wbg_maxVertexBuffers_78c71ff19beac74b=(a=>{const b=d(a).maxVertexBuffers;return b});c.wbg.__wbg_maxBufferSize_0c7ed57407582d40=(a=>{const b=d(a).maxBufferSize;return b});c.wbg.__wbg_maxVertexAttributes_c11cb018a9c5a224=(a=>{const b=d(a).maxVertexAttributes;return b});c.wbg.__wbg_maxVertexBufferArrayStride_c53560cc036cb477=(a=>{const b=d(a).maxVertexBufferArrayStride;return b});c.wbg.__wbg_minUniformBufferOffsetAlignment_4880e6786cb7ec5d=(a=>{const b=d(a).minUniformBufferOffsetAlignment;return b});c.wbg.__wbg_minStorageBufferOffsetAlignment_9913f200aee2c749=(a=>{const b=d(a).minStorageBufferOffsetAlignment;return b});c.wbg.__wbg_maxInterStageShaderComponents_f9243ac86242eb18=(a=>{const b=d(a).maxInterStageShaderComponents;return b});c.wbg.__wbg_maxColorAttachments_d33b1d22c06a6fc5=(a=>{const b=d(a).maxColorAttachments;return b});c.wbg.__wbg_maxColorAttachmentBytesPerSample_637fd3ac394c14ee=(a=>{const b=d(a).maxColorAttachmentBytesPerSample;return b});c.wbg.__wbg_maxComputeWorkgroupStorageSize_7e5bc378e5a62367=(a=>{const b=d(a).maxComputeWorkgroupStorageSize;return b});c.wbg.__wbg_maxComputeInvocationsPerWorkgroup_1ed5b24d52720f8a=(a=>{const b=d(a).maxComputeInvocationsPerWorkgroup;return b});c.wbg.__wbg_maxComputeWorkgroupSizeX_56b713fb17f8c261=(a=>{const b=d(a).maxComputeWorkgroupSizeX;return b});c.wbg.__wbg_maxComputeWorkgroupSizeY_13040bdf12fd4e65=(a=>{const b=d(a).maxComputeWorkgroupSizeY;return b});c.wbg.__wbg_maxComputeWorkgroupSizeZ_8c8594730967472d=(a=>{const b=d(a).maxComputeWorkgroupSizeZ;return b});c.wbg.__wbg_maxComputeWorkgroupsPerDimension_4094c8501eea36ce=(a=>{const b=d(a).maxComputeWorkgroupsPerDimension;return b});c.wbg.__wbg_new_034f913e7636e987=(()=>{const a=new ar();return q(a)});c.wbg.__wbg_push_36cf4d81d7da33d1=((a,b)=>{const c=d(a).push(d(b));return c});c.wbg.__wbg_createRenderPipeline_2bfc852ce09914fc=((a,b)=>{const c=d(a).createRenderPipeline(d(b));return q(c)});c.wbg.__wbg_error_c4453561fa6c2209=(a=>{const b=d(a).error;return q(b)});c.wbg.__wbg_valueOf_caadbb280a0b350a=(a=>{const b=d(a).valueOf();return q(b)});c.wbg.__wbg_instanceof_GpuValidationError_776dc042f9752ecb=(a=>{let b;try{b=d(a) instanceof GPUValidationError}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_message_e73620d927b54373=((a,c)=>{const e=d(c).message;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_instanceof_GpuOutOfMemoryError_3621d9e8ec05691e=(a=>{let b;try{b=d(a) instanceof GPUOutOfMemoryError}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_instanceof_Object_4bbac482eda9b711=(a=>{let b;try{b=d(a) instanceof aR}catch(a){b=!1}const c=b;return c});c.wbg.__wbg_buffer_95102df5554646dc=(a=>{const b=d(a).buffer;return q(b)});c.wbg.__wbg_writeBuffer_4245ce84e6d772c9=((a,b,c,e,f,g)=>{d(a).writeBuffer(d(b),c,d(e),f,g)});c.wbg.__wbg_querySelectorAll_28e417f74795a70f=function(){return B(((a,b,c)=>{const e=d(a).querySelectorAll(s(b,c));return q(e)}),arguments)};c.wbg.__wbg_get_602f2a39a831c929=((a,b)=>{const c=d(a)[b>>>au];return n(c)?au:q(c)});c.wbg.__wbg_getContext_211e7f0e615215a4=function(){return B(((a,b,c)=>{const e=d(a).getContext(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_getContext_bf8985355a4d22ca=function(){return B(((a,b,c)=>{const e=d(a).getContext(s(b,c));return n(e)?au:q(e)}),arguments)};c.wbg.__wbg_requestAdapter_e6f12701c7a38391=((a,b)=>{const c=d(a).requestAdapter(d(b));return q(c)});c.wbg.__wbg_requestDevice_727ad8687b0d6553=((a,b)=>{const c=d(a).requestDevice(d(b));return q(c)});c.wbg.__wbg_features_b56ebab8f515839e=(a=>{const b=d(a).features;return q(b)});c.wbg.__wbg_limits_be2f592b5e154a3d=(a=>{const b=d(a).limits;return q(b)});c.wbg.__wbg_getPreferredCanvasFormat_012ef9f3b0238ffa=(a=>{const b=d(a).getPreferredCanvasFormat();return (ab.indexOf(b)+ az||96)- az});c.wbg.__wbg_setwidth_23bf2deedd907275=((a,b)=>{d(a).width=b>>>au});c.wbg.__wbg_setheight_239dc283bbe50da4=((a,b)=>{d(a).height=b>>>au});c.wbg.__wbg_setwidth_e02ce7ae3e45c1b6=((a,b)=>{d(a).width=b>>>au});c.wbg.__wbg_setheight_45e518143d1ca78f=((a,b)=>{d(a).height=b>>>au});c.wbg.__wbg_configure_6cde48f0c99a3497=((a,b)=>{d(a).configure(d(b))});c.wbg.__wbg_getCurrentTexture_95b5b88416fdb0c2=(a=>{const b=d(a).getCurrentTexture();return q(b)});c.wbg.__wbg_features_4991b2a28904a253=(a=>{const b=d(a).features;return q(b)});c.wbg.__wbg_limits_1aa8a49e0a8442cc=(a=>{const b=d(a).limits;return q(b)});c.wbg.__wbg_createShaderModule_036b780a18124d9e=((a,b)=>{const c=d(a).createShaderModule(d(b));return q(c)});c.wbg.__wbg_createBindGroupLayout_313b4151e718ff1f=((a,b)=>{const c=d(a).createBindGroupLayout(d(b));return q(c)});c.wbg.__wbg_createBindGroup_2d6778f92445c8bf=((a,b)=>{const c=d(a).createBindGroup(d(b));return q(c)});c.wbg.__wbg_createPipelineLayout_9134c6c32c505ec8=((a,b)=>{const c=d(a).createPipelineLayout(d(b));return q(c)});c.wbg.__wbg_createComputePipeline_02674342979c6288=((a,b)=>{const c=d(a).createComputePipeline(d(b));return q(c)});c.wbg.__wbg_createBuffer_65c2fc555c46aa07=((a,b)=>{const c=d(a).createBuffer(d(b));return q(c)});c.wbg.__wbg_createTexture_5adbcf0db3fd41b4=((a,b)=>{const c=d(a).createTexture(d(b));return q(c)});c.wbg.__wbg_createSampler_942022241ecf4277=((a,b)=>{const c=d(a).createSampler(d(b));return q(c)});c.wbg.__wbg_createQuerySet_424dbf8130140914=((a,b)=>{const c=d(a).createQuerySet(d(b));return q(c)});c.wbg.__wbg_createCommandEncoder_1db1770ea9eab9af=((a,b)=>{const c=d(a).createCommandEncoder(d(b));return q(c)});c.wbg.__wbg_createRenderBundleEncoder_32896e68340fabc6=((a,b)=>{const c=d(a).createRenderBundleEncoder(d(b));return q(c)});c.wbg.__wbg_lost_42410660a8cd8819=(a=>{const b=d(a).lost;return q(b)});c.wbg.__wbg_destroy_4f7ed2bbb4742899=(a=>{d(a).destroy()});c.wbg.__wbg_setonuncapturederror_4e4946a65c61f3ef=((a,b)=>{d(a).onuncapturederror=d(b)});c.wbg.__wbg_pushErrorScope_a09c8b037ab27e15=((a,b)=>{d(a).pushErrorScope(X[b])});c.wbg.__wbg_popErrorScope_f8f0d4b6d5c635f9=(a=>{const b=d(a).popErrorScope();return q(b)});c.wbg.__wbg_mapAsync_3b0a03a892fb22b3=((a,b,c,e)=>{const f=d(a).mapAsync(b>>>au,c,e);return q(f)});c.wbg.__wbg_getMappedRange_1216b00d6d7803de=((a,b,c)=>{const e=d(a).getMappedRange(b,c);return q(e)});c.wbg.__wbg_unmap_7a0dddee82ac6ed3=(a=>{d(a).unmap()});c.wbg.__wbg_createView_0ab0576f1665c9ad=((a,b)=>{const c=d(a).createView(d(b));return q(c)});c.wbg.__wbg_destroy_199808599201ee27=(a=>{d(a).destroy()});c.wbg.__wbg_destroy_57694ff5aabbf32d=(a=>{d(a).destroy()});c.wbg.__wbg_getBindGroupLayout_a0d36a72bd39bb04=((a,b)=>{const c=d(a).getBindGroupLayout(b>>>au);return q(c)});c.wbg.__wbg_getBindGroupLayout_abc654a192f85d5e=((a,b)=>{const c=d(a).getBindGroupLayout(b>>>au);return q(c)});c.wbg.__wbg_copyBufferToBuffer_667953bc6dccb6b4=((a,b,c,e,f,g)=>{d(a).copyBufferToBuffer(d(b),c,d(e),f,g)});c.wbg.__wbg_copyBufferToTexture_ca5b298687bed60a=((a,b,c,e)=>{d(a).copyBufferToTexture(d(b),d(c),d(e))});c.wbg.__wbg_copyTextureToBuffer_cdf8118386295eb4=((a,b,c,e)=>{d(a).copyTextureToBuffer(d(b),d(c),d(e))});c.wbg.__wbg_copyTextureToTexture_67678f03fd20bd23=((a,b,c,e)=>{d(a).copyTextureToTexture(d(b),d(c),d(e))});c.wbg.__wbg_beginComputePass_a148b983810f6795=((a,b)=>{const c=d(a).beginComputePass(d(b));return q(c)});c.wbg.__wbg_end_28d311f5d435aa6d=(a=>{d(a).end()});c.wbg.__wbg_beginRenderPass_0b83360fd99b5810=((a,b)=>{const c=d(a).beginRenderPass(d(b));return q(c)});c.wbg.__wbg_end_e3cea1776c95d64f=(a=>{d(a).end()});c.wbg.__wbg_label_175c4f59b3eca611=((a,c)=>{const e=d(c).label;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_finish_d1d9eb9915c96a79=((a,b)=>{const c=d(a).finish(d(b));return q(c)});c.wbg.__wbg_finish_ce7d5c15fce975aa=(a=>{const b=d(a).finish();return q(b)});c.wbg.__wbg_clearBuffer_2cc723ab6b818737=((a,b,c)=>{d(a).clearBuffer(d(b),c)});c.wbg.__wbg_clearBuffer_78a94a2eda97eb5a=((a,b,c,e)=>{d(a).clearBuffer(d(b),c,e)});c.wbg.__wbg_resolveQuerySet_22e31015a36a09d5=((a,b,c,e,f,g)=>{d(a).resolveQuerySet(d(b),c>>>au,e>>>au,d(f),g>>>au)});c.wbg.__wbg_finish_2115db9e679c5aae=(a=>{const b=d(a).finish();return q(b)});c.wbg.__wbg_finish_4a754149a60eddc0=((a,b)=>{const c=d(a).finish(d(b));return q(c)});c.wbg.__wbg_usage_5e9a3548afbc3ebb=(a=>{const b=d(a).usage;return b});c.wbg.__wbg_size_fc880d60ff425a47=(a=>{const b=d(a).size;return b});c.wbg.__wbg_writeTexture_686a8160c3c5ddbb=((a,b,c,e,f)=>{d(a).writeTexture(d(b),d(c),d(e),d(f))});c.wbg.__wbg_copyExternalImageToTexture_87bdcc3260c6efba=((a,b,c,e)=>{d(a).copyExternalImageToTexture(d(b),d(c),d(e))});c.wbg.__wbg_submit_afbd82b0d5056194=((a,b)=>{d(a).submit(d(b))});c.wbg.__wbg_setPipeline_8630b264a9c4ec4b=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_5a450a0e97199c15=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_17e73587d3c1be08=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_dispatchWorkgroups_4bc133944e89d5e0=((a,b,c,e)=>{d(a).dispatchWorkgroups(b>>>au,c>>>au,e>>>au)});c.wbg.__wbg_dispatchWorkgroupsIndirect_8050acb60dd74a34=((a,b,c)=>{d(a).dispatchWorkgroupsIndirect(d(b),c)});c.wbg.__wbg_setPipeline_a95b89d99620ba34=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_f70bb0d0a5ace56d=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_58e27d4cd266f187=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_setIndexBuffer_747e1ba3f58d7227=((a,b,c,e)=>{d(a).setIndexBuffer(d(b),$[c],e)});c.wbg.__wbg_setIndexBuffer_3f1635c89f72d661=((a,b,c,e,f)=>{d(a).setIndexBuffer(d(b),$[c],e,f)});c.wbg.__wbg_setVertexBuffer_94a88edbfb4b07f8=((a,b,c,e)=>{d(a).setVertexBuffer(b>>>au,d(c),e)});c.wbg.__wbg_setVertexBuffer_407067a9522118df=((a,b,c,e,f)=>{d(a).setVertexBuffer(b>>>au,d(c),e,f)});c.wbg.__wbg_draw_60508d893ce4e012=((a,b,c,e,f)=>{d(a).draw(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_drawIndexed_d5c5dff02437a4f0=((a,b,c,e,f,g)=>{d(a).drawIndexed(b>>>au,c>>>au,e>>>au,f,g>>>au)});c.wbg.__wbg_drawIndirect_54f93ae4ccc85358=((a,b,c)=>{d(a).drawIndirect(d(b),c)});c.wbg.__wbg_drawIndexedIndirect_bf668464170261b3=((a,b,c)=>{d(a).drawIndexedIndirect(d(b),c)});c.wbg.__wbg_setPipeline_d7c9c55035f118a6=((a,b)=>{d(a).setPipeline(d(b))});c.wbg.__wbg_setBindGroup_0bf976b9657f99bd=((a,b,c,e,f,g,h)=>{d(a).setBindGroup(b>>>au,d(c),I(e,f),g,h>>>au)});c.wbg.__wbg_setBindGroup_c6ab2e9583489b58=((a,b,c)=>{d(a).setBindGroup(b>>>au,d(c))});c.wbg.__wbg_setIndexBuffer_ea39707d8842fe03=((a,b,c,e)=>{d(a).setIndexBuffer(d(b),$[c],e)});c.wbg.__wbg_setIndexBuffer_04ba4ea48c8f80be=((a,b,c,e,f)=>{d(a).setIndexBuffer(d(b),$[c],e,f)});c.wbg.__wbg_setVertexBuffer_907c60acf6dca161=((a,b,c,e)=>{d(a).setVertexBuffer(b>>>au,d(c),e)});c.wbg.__wbg_setVertexBuffer_9a336bb112a33317=((a,b,c,e,f)=>{d(a).setVertexBuffer(b>>>au,d(c),e,f)});c.wbg.__wbg_draw_540a514f996a5d0d=((a,b,c,e,f)=>{d(a).draw(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_drawIndexed_f717a07602ee2d18=((a,b,c,e,f,g)=>{d(a).drawIndexed(b>>>au,c>>>au,e>>>au,f,g>>>au)});c.wbg.__wbg_drawIndirect_c588ff54fb149aee=((a,b,c)=>{d(a).drawIndirect(d(b),c)});c.wbg.__wbg_drawIndexedIndirect_bb5585ec7f45d269=((a,b,c)=>{d(a).drawIndexedIndirect(d(b),c)});c.wbg.__wbg_setBlendConstant_496a0b5cc772c236=((a,b)=>{d(a).setBlendConstant(d(b))});c.wbg.__wbg_setScissorRect_9b7e673d03036c37=((a,b,c,e,f)=>{d(a).setScissorRect(b>>>au,c>>>au,e>>>au,f>>>au)});c.wbg.__wbg_setViewport_85d18ceefd5180eb=((a,b,c,e,f,g,h)=>{d(a).setViewport(b,c,e,f,g,h)});c.wbg.__wbg_setStencilReference_b4b1f7e586967a4d=((a,b)=>{d(a).setStencilReference(b>>>au)});c.wbg.__wbg_executeBundles_16985086317c358a=((a,b)=>{d(a).executeBundles(d(b))});c.wbg.__wbg_movementX_468fdc7a7281744b=(a=>{const b=d(a).movementX;return b});c.wbg.__wbg_movementY_8bbbf8c3bffd1fce=(a=>{const b=d(a).movementY;return b});c.wbg.__wbg_offsetX_294898d040917c6b=(a=>{const b=d(a).offsetX;return b});c.wbg.__wbg_offsetY_f484804b7b03dd86=(a=>{const b=d(a).offsetY;return b});c.wbg.__wbg_error_e297661c1014a1cc=((a,b)=>{console.error(d(a),d(b))});c.wbg.__wbg_removeListener_0e5684bf9a4fe773=function(){return B(((a,b)=>{d(a).removeListener(d(b))}),arguments)};c.wbg.__wbg_disconnect_91f6e3e629264c78=(a=>{d(a).disconnect()});c.wbg.__wbg_disconnect_8d41ebc92b193580=(a=>{d(a).disconnect()});c.wbg.__wbg_cancel_cba86749f45f30ae=(a=>{d(a).cancel()});c.wbg.__wbg_Window_bd9ec3fee5f673ee=(a=>{const b=d(a).Window;return q(b)});c.wbg.__wbg_clearTimeout_8567b0ecb6ec5d60=((a,b)=>{d(a).clearTimeout(b)});c.wbg.__wbg_close_8356c7a6c6893135=(a=>{d(a).close()});c.wbg.__wbg_setonmessage_81b2f44fc2b4b0a4=((a,b)=>{d(a).onmessage=d(b)});c.wbg.__wbg_cancelIdleCallback_7e85ac94feec1b33=((a,b)=>{d(a).cancelIdleCallback(b>>>au)});c.wbg.__wbg_abort_c57daab47a6c1215=(a=>{d(a).abort()});c.wbg.__wbg_scheduler_7ccf2d3b362018c4=(a=>{const b=d(a).scheduler;return q(b)});c.wbg.__wbg_signal_9acfcec9e7dffc22=(a=>{const b=d(a).signal;return q(b)});c.wbg.__wbg_postTask_99464245f349be5a=((a,b,c)=>{const e=d(a).postTask(d(b),d(c));return q(e)});c.wbg.__wbg_catch_8097da4375a5dd1b=((a,b)=>{const c=d(a).catch(d(b));return q(c)});c.wbg.__wbg_port1_a6e649ef4f3886f3=(a=>{const b=d(a).port1;return q(b)});c.wbg.__wbg_start_818baa7ac87fe59f=(a=>{d(a).start()});c.wbg.__wbg_port2_6fdacea6fa8e446e=(a=>{const b=d(a).port2;return q(b)});c.wbg.__wbg_setTimeout_c9db6bce0a6bb71c=function(){return B(((a,b)=>{const c=d(a).setTimeout(d(b));return c}),arguments)};c.wbg.__wbg_of_7e03bb557d6a64cc=((a,b)=>{const c=aS(d(a),d(b));return q(c)});c.wbg.__wbg_of_064d1507296514c2=(a=>{const b=aS(d(a));return q(b)});c.wbg.__wbg_postMessage_857ce8a4ab57c841=function(){return B(((a,b,c)=>{d(a).postMessage(d(b),d(c))}),arguments)};c.wbg.__wbg_requestIdleCallback_effe682e9df1695f=function(){return B(((a,b)=>{const c=d(a).requestIdleCallback(d(b));return c}),arguments)};c.wbg.__wbg_new_00d033f8a8736a28=function(){return B(((a,b)=>{const c=new Worker(s(a,b));return q(c)}),arguments)};c.wbg.__wbg_settype_623d2ee701e6310a=((a,b,c)=>{d(a).type=s(b,c)});c.wbg.__wbg_newwithstrsequenceandoptions_3d581ce16ca52c44=function(){return B(((a,b)=>{const c=new Blob(d(a),d(b));return q(c)}),arguments)};c.wbg.__wbg_createObjectURL_11804d71ac214694=function(){return B(((a,c)=>{const e=URL.createObjectURL(d(c));const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)}),arguments)};c.wbg.__wbg_requestIdleCallback_86b728660e0547ef=(a=>{const b=d(a).requestIdleCallback;return q(b)});c.wbg.__wbg_scheduler_f38a681d98b5a776=(a=>{const b=d(a).scheduler;return q(b)});c.wbg.__wbg_contains_a28a8f7c01e4c130=((a,b)=>{const c=d(a).contains(d(b));return c});c.wbg.__wbg_unobserve_79fd6473e7891735=((a,b)=>{d(a).unobserve(d(b))});c.wbg.__wbg_observe_51c387de0413edcf=((a,b)=>{d(a).observe(d(b))});c.wbg.__wbg_getPropertyValue_b199c95cfeadebdf=function(){return B(((a,c,e,f)=>{const g=d(c).getPropertyValue(s(e,f));const i=m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);const j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbg_prototype_d33365945f23f380=(()=>{const a=ResizeObserverEntry.prototype;return q(a)});c.wbg.__wbg_getOwnPropertyDescriptor_419345cdc0d1ec14=((a,b)=>{const c=aR.getOwnPropertyDescriptor(d(a),d(b));return q(c)});c.wbg.__wbg_pointerId_93f7e5e10bb641ad=(a=>{const b=d(a).pointerId;return b});c.wbg.__wbg_buttons_2cb9e49b40e20105=(a=>{const b=d(a).buttons;return b});c.wbg.__wbg_button_d8226b772c8cf494=(a=>{const b=d(a).button;return b});c.wbg.__wbg_getCoalescedEvents_8f8920b382098ac5=(a=>{const b=d(a).getCoalescedEvents();return q(b)});c.wbg.__wbg_getCoalescedEvents_85701851c470c4e6=(a=>{const b=d(a).getCoalescedEvents;return q(b)});c.wbg.__wbg_userAgentData_85a8393570ab7dee=(a=>{const b=d(a).userAgentData;return n(b)?au:q(b)});c.wbg.__wbg_brands_982de08b35281a98=(a=>{const b=d(a).brands;return q(b)});c.wbg.__wbg_brand_cdcf0249d44027a8=((a,c)=>{const e=d(c).brand;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_userAgent_b433f0f22dfedec5=function(){return B(((a,c)=>{const e=d(c).userAgent;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)}),arguments)};c.wbg.__wbg_persisted_af13b0ad7952721a=(a=>{const b=d(a).persisted;return b});c.wbg.__wbg_matches_7df350fbe7beb09f=(a=>{const b=d(a).matches;return b});c.wbg.__wbg_pointerType_6d91ef0da43639d3=((a,c)=>{const e=d(c).pointerType;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_pressure_ad8dacbd14c9076f=(a=>{const b=d(a).pressure;return b});c.wbg.__wbg_preventDefault_eecc4a63e64c4526=(a=>{d(a).preventDefault()});c.wbg.__wbg_deltaX_10154f810008c0a0=(a=>{const b=d(a).deltaX;return b});c.wbg.__wbg_deltaY_afd77a1b9e0d9ccd=(a=>{const b=d(a).deltaY;return b});c.wbg.__wbg_deltaMode_f31810d86a9defec=(a=>{const b=d(a).deltaMode;return b});c.wbg.__wbg_shiftKey_6d843f3032fd0366=(a=>{const b=d(a).shiftKey;return b});c.wbg.__wbg_ctrlKey_4015247a39aa9410=(a=>{const b=d(a).ctrlKey;return b});c.wbg.__wbg_altKey_c9401b041949ea90=(a=>{const b=d(a).altKey;return b});c.wbg.__wbg_metaKey_5d680933661ea1ea=(a=>{const b=d(a).metaKey;return b});c.wbg.__wbg_media_80aa0a213cbd9b0b=((a,c)=>{const e=d(c).media;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_repeat_1f81f308f5d8d519=(a=>{const b=d(a).repeat;return b});c.wbg.__wbg_key_001eb20ba3b3d2fd=((a,c)=>{const e=d(c).key;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_shiftKey_cb120edc9c25950d=(a=>{const b=d(a).shiftKey;return b});c.wbg.__wbg_ctrlKey_f592192d87040d94=(a=>{const b=d(a).ctrlKey;return b});c.wbg.__wbg_altKey_ebf03e2308f51c08=(a=>{const b=d(a).altKey;return b});c.wbg.__wbg_metaKey_0735ca81e2ec6c72=(a=>{const b=d(a).metaKey;return b});c.wbg.__wbg_code_bec0d5222298000e=((a,c)=>{const e=d(c).code;const f=m(e,b.__wbindgen_export_0,b.__wbindgen_export_1);const g=h;p().setInt32(a+ aH*az,g,!0);p().setInt32(a+ aH*au,f,!0)});c.wbg.__wbg_location_a7e2614c5720fcd7=(a=>{const b=d(a).location;return b});c.wbg.__wbg_isIntersecting_57d03835f2fb0c18=(a=>{const b=d(a).isIntersecting;return b});c.wbg.__wbg_setPointerCapture_739b13a4c8b0c2b0=function(){return B(((a,b)=>{d(a).setPointerCapture(b)}),arguments)};c.wbg.__wbg_contentRect_0ff902e25b5b4c7a=(a=>{const b=d(a).contentRect;return q(b)});c.wbg.__wbg_width_45de62653cf1c40c=(a=>{const b=d(a).width;return b});c.wbg.__wbg_height_333816c9b207333d=(a=>{const b=d(a).height;return b});c.wbg.__wbg_devicePixelContentBoxSize_67d2874a12290f0b=(a=>{const b=d(a).devicePixelContentBoxSize;return q(b)});c.wbg.__wbg_inlineSize_bdd9c1683673d79e=(a=>{const b=d(a).inlineSize;return b});c.wbg.__wbg_blockSize_5d28da4852a3728e=(a=>{const b=d(a).blockSize;return b});c.wbg.__wbg_requestFullscreen_8a94df4e7f757077=(a=>{const b=d(a).requestFullscreen;return q(b)});c.wbg.__wbg_requestAnimationFrame_8c3436f4ac89bc48=function(){return B(((a,b)=>{const c=d(a).requestAnimationFrame(d(b));return c}),arguments)};c.wbg.__wbg_queueMicrotask_693514e3dcae83e6=(a=>{queueMicrotask(g(a))});c.wbg.__wbg_play_5896e5851ba90aa2=(a=>{d(a).play()});c.wbg.__wbg_removeProperty_5acbca68235d0706=function(){return B(((a,c,e,f)=>{const g=d(c).removeProperty(s(e,f));const i=m(g,b.__wbindgen_export_0,b.__wbindgen_export_1);const j=h;p().setInt32(a+ aH*az,j,!0);p().setInt32(a+ aH*au,i,!0)}),arguments)};c.wbg.__wbg_webkitFullscreenElement_a02341d57a641b43=(a=>{const b=d(a).webkitFullscreenElement;return n(b)?au:q(b)});c.wbg.__wbg_fullscreenElement_d39685ee9d78d455=(a=>{const b=d(a).fullscreenElement;return n(b)?au:q(b)});c.wbg.__wbg_is_4b64bc96710d6a0f=((a,b)=>{const c=aR.is(d(a),d(b));return c});c.wbg.__wbg_animate_b321da85ed3f2b4a=((a,b,c)=>{const e=d(a).animate(d(b),d(c));return q(e)});c.wbg.__wbg_webkitRequestFullscreen_42ba1c34171febc6=(a=>{d(a).webkitRequestFullscreen()});c.wbg.__wbg_requestFullscreen_24891df6120b675d=(a=>{const b=d(a).requestFullscreen();return q(b)});c.wbg.__wbg_webkitExitFullscreen_77a6c8d07ec6ee46=(a=>{d(a).webkitExitFullscreen()});c.wbg.__wbg_exitFullscreen_9eef33d4b314e087=(a=>{d(a).exitFullscreen()});c.wbg.__wbg_createElement_e4523490bd0ae51d=function(){return B(((a,b,c)=>{const e=d(a).createElement(s(b,c));return q(e)}),arguments)};c.wbg.__wbg_body_8e909b791b1745d3=(a=>{const b=d(a).body;return n(b)?au:q(b)});c.wbg.__wbg_appendChild_bc4a0deae90a5164=function(){return B(((a,b)=>{const c=d(a).appendChild(d(b));return q(c)}),arguments)};c.wbg.__wbg_getComputedStyle_ec7e113b79b74e98=function(){return B(((a,b)=>{const c=d(a).getComputedStyle(d(b));return n(c)?au:q(c)}),arguments)};c.wbg.__wbg_activeElement_4ab2bc6dcf8da330=(a=>{const b=d(a).activeElement;return n(b)?au:q(b)});c.wbg.__wbg_new_bc395d17a25f9f2f=function(){return B((a=>{const b=new ResizeObserver(d(a));return q(b)}),arguments)};c.wbg.__wbg_setbox_0540f4f0ed4733b6=((a,b)=>{d(a).box=ah[b]});c.wbg.__wbg_observe_e05a589c42476328=((a,b,c)=>{d(a).observe(d(b),d(c))});c.wbg.__wbg_new_4422dda84db10905=function(){return B((a=>{const b=new IntersectionObserver(d(a));return q(b)}),arguments)};c.wbg.__wbg_observe_6f2910a25347a592=((a,b)=>{d(a).observe(d(b))});c.wbg.__wbg_getBoundingClientRect_5ad16be1e2955e83=(a=>{const b=d(a).getBoundingClientRect();return q(b)});c.wbg.__wbg_x_a9a34a1bc15c8dea=(a=>{const b=d(a).x;return b});c.wbg.__wbg_y_4926ebe58a2a92c8=(a=>{const b=d(a).y;return b});c.wbg.__wbindgen_closure_wrapper17161=((a,b,c)=>{const d=v(a,b,aT,w);return q(d)});c.wbg.__wbindgen_closure_wrapper29585=((a,b,c)=>{const d=x(a,b,aU,y);return q(d)});c.wbg.__wbindgen_closure_wrapper29615=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper43413=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper44509=((a,b,c)=>{const d=v(a,b,aU,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45029=((a,b,c)=>{const d=v(a,b,aT,w);return q(d)});c.wbg.__wbindgen_closure_wrapper45114=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45126=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45139=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45156=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45173=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45202=((a,b,c)=>{const d=v(a,b,aT,z);return q(d)});c.wbg.__wbindgen_closure_wrapper45218=((a,b,c)=>{const d=v(a,b,aT,A);return q(d)});return c});const a=typeof AudioContext!==ap?AudioContext:(typeof webkitAudioContext!==ap?webkitAudioContext:aq);let b;const c=new ar(128).fill(aq);c.push(aq,at,!0,!1);let e=c.length;let h=au;let i=at;const k=typeof TextEncoder!==ap?new TextEncoder(aw):{encode:()=>{throw ax(`TextEncoder not available`)}};const l=typeof k.encodeInto===ay?((a,b)=>k.encodeInto(a,b)):((a,b)=>{const c=k.encode(a);b.set(c);return {read:a.length,written:c.length}});let o=at;const r=typeof TextDecoder!==ap?new TextDecoder(aw,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw ax(`TextDecoder not available`)}};if(typeof TextDecoder!==ap){r.decode()};const u=typeof aG===ap?{register:()=>{},unregister:()=>{}}:new aG(a=>{b.__wbindgen_export_2.get(a.dtor)(a.a,a.b)});let C=at;let G=at;const J=[`suspended`,`running`,`closed`];const K=[`blob`,`arraybuffer`];const L=[``,`standard`];const M=[`clamp-to-edge`,`repeat`,`mirror-repeat`];const N=[`auto`];const O=[aI,`one`,`src`,`one-minus-src`,`src-alpha`,`one-minus-src-alpha`,`dst`,`one-minus-dst`,`dst-alpha`,`one-minus-dst-alpha`,`src-alpha-saturated`,`constant`,`one-minus-constant`];const P=[`add`,`subtract`,`reverse-subtract`,`min`,`max`];const Q=[`uniform`,`storage`,`read-only-storage`];const R=[`unmapped`,`pending`,`mapped`];const S=[`opaque`,`premultiplied`];const T=[`never`,`less`,`equal`,`less-equal`,`greater`,`not-equal`,`greater-equal`,`always`];const U=[`error`,`warning`,`info`];const V=[aJ,`front`,`back`];const W=[`unknown`,`destroyed`];const X=[`validation`,`out-of-memory`,`internal`];const Y=[`depth-clip-control`,aK,`texture-compression-bc`,`texture-compression-etc2`,`texture-compression-astc`,`timestamp-query`,`indirect-first-instance`,`shader-f16`,`rg11b10ufloat-renderable`,`bgra8unorm-storage`,`float32-filterable`];const Z=[aL,aM];const _=[`ccw`,`cw`];const $=[`uint16`,aN];const a0=[`load`,`clear`];const a1=[aL,aM];const a2=[`low-power`,`high-performance`];const a3=[`point-list`,`line-list`,`line-strip`,`triangle-list`,`triangle-strip`];const a4=[`occlusion`,`timestamp`];const a5=[`filtering`,`non-filtering`,`comparison`];const a6=[`keep`,aI,`replace`,`invert`,`increment-clamp`,`decrement-clamp`,`increment-wrap`,`decrement-wrap`];const a7=[`write-only`,`read-only`,`read-write`];const a8=[`store`,`discard`];const a9=[`all`,`stencil-only`,`depth-only`];const aa=[aO,aP,aQ];const ab=[`r8unorm`,`r8snorm`,`r8uint`,`r8sint`,`r16uint`,`r16sint`,`r16float`,`rg8unorm`,`rg8snorm`,`rg8uint`,`rg8sint`,`r32uint`,`r32sint`,`r32float`,`rg16uint`,`rg16sint`,`rg16float`,`rgba8unorm`,`rgba8unorm-srgb`,`rgba8snorm`,`rgba8uint`,`rgba8sint`,`bgra8unorm`,`bgra8unorm-srgb`,`rgb9e5ufloat`,`rgb10a2uint`,`rgb10a2unorm`,`rg11b10ufloat`,`rg32uint`,`rg32sint`,`rg32float`,`rgba16uint`,`rgba16sint`,`rgba16float`,`rgba32uint`,`rgba32sint`,`rgba32float`,`stencil8`,`depth16unorm`,`depth24plus`,`depth24plus-stencil8`,`depth32float`,aK,`bc1-rgba-unorm`,`bc1-rgba-unorm-srgb`,`bc2-rgba-unorm`,`bc2-rgba-unorm-srgb`,`bc3-rgba-unorm`,`bc3-rgba-unorm-srgb`,`bc4-r-unorm`,`bc4-r-snorm`,`bc5-rg-unorm`,`bc5-rg-snorm`,`bc6h-rgb-ufloat`,`bc6h-rgb-float`,`bc7-rgba-unorm`,`bc7-rgba-unorm-srgb`,`etc2-rgb8unorm`,`etc2-rgb8unorm-srgb`,`etc2-rgb8a1unorm`,`etc2-rgb8a1unorm-srgb`,`etc2-rgba8unorm`,`etc2-rgba8unorm-srgb`,`eac-r11unorm`,`eac-r11snorm`,`eac-rg11unorm`,`eac-rg11snorm`,`astc-4x4-unorm`,`astc-4x4-unorm-srgb`,`astc-5x4-unorm`,`astc-5x4-unorm-srgb`,`astc-5x5-unorm`,`astc-5x5-unorm-srgb`,`astc-6x5-unorm`,`astc-6x5-unorm-srgb`,`astc-6x6-unorm`,`astc-6x6-unorm-srgb`,`astc-8x5-unorm`,`astc-8x5-unorm-srgb`,`astc-8x6-unorm`,`astc-8x6-unorm-srgb`,`astc-8x8-unorm`,`astc-8x8-unorm-srgb`,`astc-10x5-unorm`,`astc-10x5-unorm-srgb`,`astc-10x6-unorm`,`astc-10x6-unorm-srgb`,`astc-10x8-unorm`,`astc-10x8-unorm-srgb`,`astc-10x10-unorm`,`astc-10x10-unorm-srgb`,`astc-12x10-unorm`,`astc-12x10-unorm-srgb`,`astc-12x12-unorm`,`astc-12x12-unorm-srgb`];const ac=[`float`,`unfilterable-float`,`depth`,`sint`,`uint`];const ad=[aO,aP,`2d-array`,`cube`,`cube-array`,aQ];const ae=[`uint8x2`,`uint8x4`,`sint8x2`,`sint8x4`,`unorm8x2`,`unorm8x4`,`snorm8x2`,`snorm8x4`,`uint16x2`,`uint16x4`,`sint16x2`,`sint16x4`,`unorm16x2`,`unorm16x4`,`snorm16x2`,`snorm16x4`,`float16x2`,`float16x4`,`float32`,`float32x2`,`float32x3`,`float32x4`,aN,`uint32x2`,`uint32x3`,`uint32x4`,`sint32`,`sint32x2`,`sint32x3`,`sint32x4`,`unorm10-10-10-2`];const af=[`vertex`,`instance`];const ag=[aJ,`premultiply`,`default`];const ah=[`border-box`,`content-box`,`device-pixel-content-box`];const ai=[`hidden`,`visible`];export default ao;export{an as initSync} \ No newline at end of file diff --git a/docs/magiaboost-5bdd60a7011b2e87_bg.wasm b/docs/magiaboost-5541238713fcb20e_bg.wasm similarity index 70% rename from docs/magiaboost-5bdd60a7011b2e87_bg.wasm rename to docs/magiaboost-5541238713fcb20e_bg.wasm index 32a4dfc..7e4bbad 100644 Binary files a/docs/magiaboost-5bdd60a7011b2e87_bg.wasm and b/docs/magiaboost-5541238713fcb20e_bg.wasm differ diff --git a/src/controller/remote.rs b/src/controller/remote.rs index c02d77c..655e56d 100644 --- a/src/controller/remote.rs +++ b/src/controller/remote.rs @@ -217,6 +217,7 @@ fn receive_events( golds, last_update: *frame_count, }, + true, ); info!("Remote player spawned: {}", uuid); } diff --git a/src/entity.rs b/src/entity.rs index 5004edd..98ff8a0 100644 --- a/src/entity.rs +++ b/src/entity.rs @@ -1,6 +1,7 @@ pub mod actor; pub mod book_shelf; pub mod breakable; +pub mod broken_magic_circle; pub mod bullet; pub mod chest; pub mod gold; @@ -22,6 +23,7 @@ pub enum GameEntity { Chest, BookShelf, MagicCircle, + BrokenMagicCircle, } #[derive(Component)] diff --git a/src/entity/broken_magic_circle.rs b/src/entity/broken_magic_circle.rs new file mode 100644 index 0000000..40bc816 --- /dev/null +++ b/src/entity/broken_magic_circle.rs @@ -0,0 +1,25 @@ +use crate::{constant::*, states::GameState}; +use bevy::prelude::*; +use bevy_aseprite_ultra::prelude::*; + +#[derive(Component)] +pub struct BrokenMagicCircle; + +pub fn spawn_broken_magic_circle( + commands: &mut Commands, + aseprite: Handle, + x: f32, + y: f32, +) { + commands.spawn(( + Name::new("broken_magic_circle"), + StateScoped(GameState::InGame), + BrokenMagicCircle, + AsepriteSliceBundle { + aseprite: aseprite, + slice: "broken_magic_circle".into(), + transform: Transform::from_translation(Vec3::new(x, y, PAINT_LAYER_Z)), + ..default() + }, + )); +} diff --git a/src/entity/chest.rs b/src/entity/chest.rs index b724315..9ccabc4 100644 --- a/src/entity/chest.rs +++ b/src/entity/chest.rs @@ -51,7 +51,7 @@ fn break_chest( commands.entity(entity).despawn_recursive(); play_se(&audio, &config, assets.kuzureru.clone()); - for _ in 0..(1 + random::() % 10) { + for _ in 0..(3 + random::().abs() % 10) { spawn_gold( &mut commands, &assets, diff --git a/src/entity/witch.rs b/src/entity/witch.rs index 53fc186..ebce9a5 100644 --- a/src/entity/witch.rs +++ b/src/entity/witch.rs @@ -28,6 +28,7 @@ pub fn spawn_witch( max_life: i32, res: &Res, controller: T, + life_bar: bool, ) { let mut entity = commands.spawn(( Name::new("witch"), @@ -96,10 +97,9 @@ pub fn spawn_witch( }); } - // リモートプレイヤーのライフバー - // spawn_actor_life_bar(spawn_children, &mut meshes, &mut materials); - - spawn_life_bar(spawn_children, &res); + if life_bar { + spawn_life_bar(spawn_children, &res); + } }); // SpriteBundle に PointLight2d を追加すると、画面外に出た時に Sprite が描画されなくなり、 diff --git a/src/ui/player_list.rs b/src/ui/player_list.rs index 846254b..06e07c0 100644 --- a/src/ui/player_list.rs +++ b/src/ui/player_list.rs @@ -15,9 +15,6 @@ struct PlayerList; #[derive(Component)] struct PlayersLabel; -#[derive(Component)] -struct SelfPlayerLabel; - #[derive(Component)] struct RemotePlayerListItem; diff --git a/src/world.rs b/src/world.rs index 591040c..d9b5e93 100644 --- a/src/world.rs +++ b/src/world.rs @@ -18,6 +18,7 @@ use super::world::map::image_to_tilemap; use super::world::map::LevelTileMap; use super::world::tile::*; use crate::config::GameConfig; +use crate::entity::broken_magic_circle::spawn_broken_magic_circle; use crate::entity::magic_circle::spawn_magic_circle; use bevy::asset::*; use bevy::core::FrameCount; @@ -109,8 +110,8 @@ fn spawn_level( respawn_world(&mut commands, &assets, collider_query, &chunk, &world_tile); spawn_entities(&mut commands, &assets, &chunk); - let player_x = TILE_SIZE * chunk.entry_point.x as f32; - let player_y = -TILE_SIZE * chunk.entry_point.y as f32; + let player_x = TILE_SIZE * chunk.entry_point.x as f32 + TILE_HALF; + let player_y = -TILE_SIZE * chunk.entry_point.y as f32 - TILE_HALF; if let Ok(mut camera) = camera.get_single_mut() { camera.translation.x = player_x; @@ -144,6 +145,7 @@ fn spawn_level( last_idle_life: life, last_idle_max_life: max_life, }, + false, ); for _ in 0..10 { @@ -281,6 +283,14 @@ fn spawn_entities(mut commands: &mut Commands, assets: &Res, chunk: ty - TILE_HALF, ); } + GameEntity::BrokenMagicCircle => { + spawn_broken_magic_circle( + &mut commands, + assets.asset.clone(), + tx + TILE_HALF, + ty - TILE_HALF, + ); + } } } } diff --git a/src/world/map.rs b/src/world/map.rs index 2742717..33ce0bb 100644 --- a/src/world/map.rs +++ b/src/world/map.rs @@ -107,6 +107,7 @@ pub fn image_to_tilemap( tile: Tile::StoneTile, }); entry_point = Vec2::new(x as f64, y as f64); + entities.push((GameEntity::BrokenMagicCircle, x, y)); } _ => { tiles.push(LevelTileMapile { tile: Tile::Blank });