1 line
34 KiB
JavaScript
1 line
34 KiB
JavaScript
|
"use strict";(self.webpackChunkruffle_selfhosted=self.webpackChunkruffle_selfhosted||[]).push([[966],{762:(e,n,t)=>{function _(e,n){const t=e.length,_=e.getChannelData(0),r=e.getChannelData(1);let b=0,c=0;for(;c<t;)_[c]=n[b],r[c]=n[b+1],c++,b+=2}t.d(n,{tM:()=>_})},966:(e,n,t)=>{t.r(n),t.d(n,{Ruffle:()=>W,default:()=>j,initSync:()=>V});var _=t(762);e=t.hmd(e);const r="undefined"!=typeof AudioContext?AudioContext:"undefined"!=typeof webkitAudioContext?webkitAudioContext:void 0;let b;const c=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});c.decode();let f=new Uint8Array;function o(){return 0===f.byteLength&&(f=new Uint8Array(b.memory.buffer)),f}function i(e,n){return c.decode(o().subarray(e,e+n))}let u=0;const a=new TextEncoder("utf-8"),g="function"==typeof a.encodeInto?function(e,n){return a.encodeInto(e,n)}:function(e,n){const t=a.encode(e);return n.set(t),{read:e.length,written:t.length}};function w(e,n,t){if(void 0===t){const t=a.encode(e),_=n(t.length);return o().subarray(_,_+t.length).set(t),u=t.length,_}let _=e.length,r=n(_);const b=o();let c=0;for(;c<_;c++){const n=e.charCodeAt(c);if(n>127)break;b[r+c]=n}if(c!==_){0!==c&&(e=e.slice(c)),r=t(r,_,_=c+3*e.length);const n=o().subarray(r+c,r+_);c+=g(e,n).written}return u=c,r}function d(e){return null==e}let s=new Int32Array;function l(){return 0===s.byteLength&&(s=new Int32Array(b.memory.buffer)),s}let m=new Float64Array;function y(){return 0===m.byteLength&&(m=new Float64Array(b.memory.buffer)),m}let p=new BigInt64Array;function h(e){const n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){const n=e.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=e.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(e)){const n=e.length;let t="[";n>0&&(t+=h(e[0]));for(let _=1;_<n;_++)t+=", "+h(e[_]);return t+="]",t}const t=/\[object ([^\]]+)\]/.exec(toString.call(e));let _;if(!(t.length>1))return toString.call(e);if(_=t[1],"Object"==_)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:_}function x(e,n,t,_){const r={a:e,b:n,cnt:1,dtor:t},c=(...e)=>{r.cnt++;const n=r.a;r.a=0;try{return _(n,r.b,...e)}finally{0==--r.cnt?b.__wbindgen_export_3.get(r.dtor)(n,r.b):r.a=n}};return c.original=r,c}function v(e,n){b._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h873a50ca316a3269(e,n)}function A(e,n,t){b.closure287_externref_shim(e,n,t)}function S(e,n,t){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h290fb0fdd8b6051e(e,n,t)}function C(e,n,t){b.closure3018_externref_shim(e,n,t)}let R=new Float32Array;function T(e,n){return(0===R.byteLength&&(R=new Float32Array(b.memory.buffer)),R).subarray(e/4,e/4+n)}function E(e){const n=b.__externref_table_alloc();return b.__wbindgen_export_2.set(n,e),n}function F(e,n){try{return e.apply(this,n)}catch(e){const n=E(e);b.__wbindgen_exn_store(n)}}function P(e){const n=b.__wbindgen_export_2.get(e);return b.__externref_table_dealloc(e),n}let k=new Uint32Array;function M(e,n){return o().subarray(e/1,e/1+n)}function L(e,n){return y().subarray(e/8,e/8+n)}let I=new Uint8ClampedArray;function O(e,n){return(0===I.byteLength&&(I=new Uint8ClampedArray(b.memory.buffer)),I).subarray(e/1,e/1+n)}function B(e){return()=>{throw new Error(`${e} is not defined`)}}class W{static __wrap(e){const n=Object.create(W.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();b.__wbg_ruffle_free(e)}constructor(e,n,t){return b.ruffle_new(e,n,t)}stream_from(e,n){try{const _=b.__wbindgen_add_to_stack_pointer(-16),r=w(e,b.__wbindgen_malloc,b.__wbindgen_realloc),c=u;b.ruffle_stream_from(_,this.ptr,r,c,n);var t=l()[_/4+0];if(l()[_/4+1])throw P(t)}finally{b.__wbindgen_add_to_stack_pointer(16)}}load_data(e,n){try{const _=b.__wbindgen_add_to_stack_pointer(-16);b.ruffle_load_data(_,this.ptr,e,n);var t=l()[_/4+0];if(l()[
|