flash/js/core.ruffle.ece9e8fa5a7d72d73689.js

2 lines
37 KiB
JavaScript
Raw Normal View History

2022-03-11 20:28:29 -05:00
"use strict";(self.webpackChunkruffle_selfhosted=self.webpackChunkruffle_selfhosted||[]).push([[966],{762:(e,n,_)=>{function t(e,n,_){n&&e.getChannelData(0).set(n),_&&e.getChannelData(1).set(_)}function r(e){var n,_;const t=null===(n=e.getOutputTimestamp)||void 0===n?void 0:n.call(e);return null!==(_=null==t?void 0:t.contextTime)&&void 0!==_?_:e.currentTime-e.baseLatency}_.d(n,{K:()=>t,T:()=>r})},966:(e,n,_)=>{_.r(n),_.d(n,{Ruffle:()=>G,default:()=>H});var t=_(762);const r="undefined"!=typeof AudioContext?AudioContext:"undefined"!=typeof webkitAudioContext?webkitAudioContext:void 0;let b;const c=new Array(32).fill(void 0);function f(e){return c[e]}c.push(void 0,null,!0,!1);let u=c.length;function o(e){const n=f(e);return function(e){e<36||(c[e]=u,u=e)}(e),n}let a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});a.decode();let i=null;function g(){return null!==i&&i.buffer===b.memory.buffer||(i=new Uint8Array(b.memory.buffer)),i}function w(e,n){return a.decode(g().subarray(e,e+n))}function d(e){u===c.length&&c.push(c.length+1);const n=u;return u=c[n],c[n]=e,n}let s=0,l=new TextEncoder("utf-8");const m="function"==typeof l.encodeInto?function(e,n){return l.encodeInto(e,n)}:function(e,n){const _=l.encode(e);return n.set(_),{read:e.length,written:_.length}};function p(e,n,_){if(void 0===_){const _=l.encode(e),t=n(_.length);return g().subarray(t,t+_.length).set(_),s=_.length,t}let t=e.length,r=n(t);const b=g();let c=0;for(;c<t;c++){const n=e.charCodeAt(c);if(n>127)break;b[r+c]=n}if(c!==t){0!==c&&(e=e.slice(c)),r=_(r,t,t=c+3*e.length);const n=g().subarray(r+c,r+t);c+=m(e,n).written}return s=c,r}let y=null;function h(){return null!==y&&y.buffer===b.memory.buffer||(y=new Int32Array(b.memory.buffer)),y}function v(e){return null==e}let x=null;function A(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 _="[";n>0&&(_+=A(e[0]));for(let t=1;t<n;t++)_+=", "+A(e[t]);return _+="]",_}const _=/\[object ([^\]]+)\]/.exec(toString.call(e));let t;if(!(_.length>1))return toString.call(e);if(t=_[1],"Object"==t)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:t}function S(e,n,_,t){const r={a:e,b:n,cnt:1,dtor:_},c=(...e)=>{r.cnt++;const n=r.a;r.a=0;try{return t(n,r.b,...e)}finally{0==--r.cnt?b.__wbindgen_export_2.get(r.dtor)(n,r.b):r.a=n}};return c.original=r,c}function C(e,n,_){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0354b9286f1ca118(e,n,d(_))}function T(e,n,_){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0354b9286f1ca118(e,n,d(_))}function R(e,n){b._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2b29ce5f03a3005f(e,n)}function E(e,n,_){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0354b9286f1ca118(e,n,d(_))}function F(e,n,_){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h14840cb9b3b797cb(e,n,_)}function P(e,n,_){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0354b9286f1ca118(e,n,d(_))}function k(e,n,_){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0354b9286f1ca118(e,n,d(_))}function M(e,n,_){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0354b9286f1ca118(e,n,d(_))}function O(e,n,_){b._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6769736ffe94a981(e,n,d(_))}let L=null;function W(e,n){return(null!==L&&L.buffer===b.memory.buffer||(L=new Float32Ar
//# sourceMappingURL=core.ruffle.ece9e8fa5a7d72d73689.js.map