function R(e){let n,t;try{const r=A(e,i.__wbindgen_malloc,i.__wbindgen_realloc),s=w,a=i.render(r,s);return n=a[0],t=a[1],m(a[0],a[1])}finally{i.__wbindgen_free(n,t,1)}}function p(){return{__proto__:null,"./catrender_wasm_bg.js":{__proto__:null,__wbg_error_a6fa202b58aa1cd3:function(n,t){let r,s;try{r=n,s=t,console.error(m(n,t))}finally{i.__wbindgen_free(r,s,1)}},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_stack_3b0d974bbf31e44f:function(n,t){const r=t.stack,s=A(r,i.__wbindgen_malloc,i.__wbindgen_realloc),a=w;g().setInt32(n+4,a,!0),g().setInt32(n+0,s,!0)},__wbindgen_init_externref_table:function(){const n=i.__wbindgen_externrefs,t=n.grow(4);n.set(0,void 0),n.set(t+0,void 0),n.set(t+1,null),n.set(t+2,!0),n.set(t+3,!1)}}}}let f=null;function g(){return(f===null||f.buffer.detached===!0||f.buffer.detached===void 0&&f.buffer!==i.memory.buffer)&&(f=new DataView(i.memory.buffer)),f}function m(e,n){return x(e>>>0,n)}let b=null;function l(){return(b===null||b.byteLength===0)&&(b=new Uint8Array(i.memory.buffer)),b}function A(e,n,t){if(t===void 0){const o=d.encode(e),u=n(o.length,1)>>>0;return l().subarray(u,u+o.length).set(o),w=o.length,u}let r=e.length,s=n(r,1)>>>0;const a=l();let c=0;for(;c<r;c++){const o=e.charCodeAt(c);if(o>127)break;a[s+c]=o}if(c!==r){c!==0&&(e=e.slice(c)),s=t(s,r,r=c+e.length*3,1)>>>0;const o=l().subarray(s+c,s+r),u=d.encodeInto(e,o);c+=u.written,s=t(s,r,c,1)>>>0}return w=c,s}let _=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});_.decode();const h=2146435072;let y=0;function x(e,n){return y+=n,y>=h&&(_=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),_.decode(),y=n),_.decode(l().subarray(e,e+n))}const d=new TextEncoder;"encodeInto"in d||(d.encodeInto=function(e,n){const t=d.encode(e);return n.set(t),{read:e.length,written:t.length}});let w=0,i;function W(e,n){return i=e.exports,f=null,b=null,i.__wbindgen_start(),i}async function M(e,n){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,n)}catch(s){if(e.ok&&t(e.type)&&e.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",s);else throw s}const r=await e.arrayBuffer();return await WebAssembly.instantiate(r,n)}else{const r=await WebAssembly.instantiate(e,n);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}function t(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}function O(e){if(i!==void 0)return i;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const n=p();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));const t=new WebAssembly.Instance(e,n);return W(t)}async function T(e){if(i!==void 0)return i;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL("/assets/catrender_wasm_bg-DkYAx-Av.wasm",import.meta.url));const n=p();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:t,module:r}=await M(await e,n);return W(t)}export{T as default,O as initSync,R as render};
