SOURCE / PINNED RELEASE
Made of little things.
Atlas map viewer
- Release
- 1d2807e80b44…
- Author-recorded commit
- 43810ed2b368…
- License
- LICENSE
- Author’s source reference
- nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-4757dbabc86
Archive hash verified: 8db6876d96c460ac…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
/* @ts-self-types="./atlas_renderer.d.ts" */
export class Renderer {
__destroy_into_raw() {
const ptr = this.__wbg_ptr;
this.__wbg_ptr = 0;
RendererFinalization.unregister(this);
return ptr;
}
free() {
const ptr = this.__destroy_into_raw();
wasm.__wbg_renderer_free(ptr, 0);
}
/**
* @param {number} z
* @param {number} x
* @param {number} y
* @param {Uint8Array} bytes
* @returns {number}
*/
add_tile(z, x, y, bytes) {
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
const ret = wasm.renderer_add_tile(this.__wbg_ptr, z, x, y, ptr0, len0);
if (ret[2]) {
throw takeFromExternrefTable0(ret[1]);
}
return ret[0] >>> 0;
}
/**
* @param {string} key
* @param {number} z
* @param {number} x
* @param {number} y
* @param {Uint8Array} bytes
* @returns {number}
*/
add_tile_part(key, z, x, y, bytes) {
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
const len1 = WASM_VECTOR_LEN;
const ret = wasm.renderer_add_tile_part(this.__wbg_ptr, ptr0, len0, z, x, y, ptr1, len1);
if (ret[2]) {
throw takeFromExternrefTable0(ret[1]);
}
return ret[0] >>> 0;
}
clear_clips() {
wasm.renderer_clear_clips(this.__wbg_ptr);
}
clear() {
wasm.renderer_clear(this.__wbg_ptr);
}
/**
* @param {HTMLCanvasElement} canvas
*/
constructor(canvas) {
const ret = wasm.renderer_new(canvas);
if (ret[2]) {
throw takeFromExternrefTable0(ret[1]);
}
this.__wbg_ptr = ret[0];
RendererFinalization.register(this, this.__wbg_ptr, this);
return this;
}
/**
* @param {string} key
*/
remove_tile(key) {
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.renderer_remove_tile(this.__wbg_ptr, ptr0, len0);
}
/**
* @param {number} cx
* @param {number} cy
* @param {number} zoom
* @param {number} width
* @param {number} height
* @param {number} pixel_ratio
* @param {number} pitch
* @param {number} bearing
* @param {number} height_scale
* @param {number} fallback_height
* @param {number} shading
* @returns {number}
*/
render(cx, cy, zoom, width, height, pixel_ratio, pitch, bearing, height_scale, fallback_height, shading) {
const ret = wasm.renderer_render(this.__wbg_ptr, cx, cy, zoom, width, height, pixel_ratio, pitch, bearing, height_scale, fallback_height, shading);
return ret >>> 0;
}
/**
* A composition owns coverage per source/layer. Coordinates are normalized
* Mercator; subtract the origin in f64 before uploading to preserve detail.
* @param {number} id
* @param {Float64Array} coordinates
* @param {Uint32Array} rings
* @param {Uint32Array} polygons
*/
set_clip(id, coordinates, rings, polygons) {
const ptr0 = passArrayF64ToWasm0(coordinates, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passArray32ToWasm0(rings, wasm.__wbindgen_malloc);
const len1 = WASM_VECTOR_LEN;
const ptr2 = passArray32ToWasm0(polygons, wasm.__wbindgen_malloc);
const len2 = WASM_VECTOR_LEN;
const ret = wasm.renderer_set_clip(this.__wbg_ptr, id, ptr0, len0, ptr1, len1, ptr2, len2);
if (ret[1]) {
throw takeFromExternrefTable0(ret[0]);
}
}
/**
* @param {number} mask
*/
set_layers(mask) {
wasm.renderer_set_layers(this.__wbg_ptr, mask);
}
/**
* @param {Float32Array} background
* @param {Float32Array} colors
* @param {Float32Array} widths
*/
set_style(background, colors, widths) {
const ptr0 = passArrayF32ToWasm0(background, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passArrayF32ToWasm0(colors, wasm.__wbindgen_malloc);
const len1 = WASM_VECTOR_LEN;
const ptr2 = passArrayF32ToWasm0(widths, wasm.__wbindgen_malloc);
const len2 = WASM_VECTOR_LEN;
const ret = wasm.renderer_set_style(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
if (ret[1]) {
throw takeFromExternrefTable0(ret[0]);
}
}
/**
* @param {string} key
* @param {number} clip
*/
set_tile_clip(key, clip) {
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.renderer_set_tile_clip(this.__wbg_ptr, ptr0, len0, clip);
}
/**
* @param {string} keys
*/
set_visible(keys) {
const ptr0 = passStringToWasm0(keys, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.renderer_set_visible(this.__wbg_ptr, ptr0, len0);
}
/**
* Exact vertex-buffer bytes retained on the GPU (driver overhead excluded).
* @param {string} key
* @returns {number}
*/
tile_bytes(key) {
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ret = wasm.renderer_tile_bytes(this.__wbg_ptr, ptr0, len0);
return ret >>> 0;
}
}
if (Symbol.dispose) Renderer.prototype[Symbol.dispose] = Renderer.prototype.free;
function __wbg_get_imports() {
const import0 = {
__proto__: null,
__wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
const v = arg0;
const ret = typeof(v) === 'boolean' ? v : undefined;
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
},
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
throw new Error(getStringFromWasm0(arg0, arg1));
},
__wbg_attachShader_9567ae57af6746d5: function(arg0, arg1, arg2) {
arg0.attachShader(arg1, arg2);
},
__wbg_bindBuffer_0324f62b876c4403: function(arg0, arg1, arg2) {
arg0.bindBuffer(arg1 >>> 0, arg2);
},
__wbg_bufferData_5fa44d94fe7a3878: function(arg0, arg1, arg2, arg3) {
arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
},
__wbg_clearColor_796427e8ac60fe14: function(arg0, arg1, arg2, arg3, arg4) {
arg0.clearColor(arg1, arg2, arg3, arg4);
},
__wbg_clearStencil_e4383e4a543e7997: function(arg0, arg1) {
arg0.clearStencil(arg1);
},
__wbg_clear_cb96796cc568b7c8: function(arg0, arg1) {
arg0.clear(arg1 >>> 0);
},
__wbg_colorMask_4d6afbbbc3022fbe: function(arg0, arg1, arg2, arg3, arg4) {
arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
},
__wbg_compileShader_c2b53ff3a8851f60: function(arg0, arg1) {
arg0.compileShader(arg1);
},
__wbg_createBuffer_ffe613371d42cfd3: function(arg0) {
const ret = arg0.createBuffer();
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
},
__wbg_createProgram_cbf448e6f18a9402: function(arg0) {
const ret = arg0.createProgram();
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
},
__wbg_createShader_6c1a2295587878a5: function(arg0, arg1) {
const ret = arg0.createShader(arg1 >>> 0);
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
},
__wbg_deleteBuffer_070e58aaaf2a7a8b: function(arg0, arg1) {
arg0.deleteBuffer(arg1);
},
__wbg_deleteProgram_b524b30ad176cdb4: function(arg0, arg1) {
arg0.deleteProgram(arg1);
},
__wbg_deleteShader_a70f6cc1918d67eb: function(arg0, arg1) {
arg0.deleteShader(arg1);
},
__wbg_depthFunc_a41fb5adacb22e09: function(arg0, arg1) {
arg0.depthFunc(arg1 >>> 0);
},
__wbg_depthMask_06ecff4d4514c38f: function(arg0, arg1) {
arg0.depthMask(arg1 !== 0);
},
__wbg_disable_19fe787eccdf0272: function(arg0, arg1) {
arg0.disable(arg1 >>> 0);
},
__wbg_drawArrays_08872e02fb57b847: function(arg0, arg1, arg2, arg3) {
arg0.drawArrays(arg1 >>> 0, arg2, arg3);
},
__wbg_enableVertexAttribArray_d52693866bc8b8dd: function(arg0, arg1) {
arg0.enableVertexAttribArray(arg1 >>> 0);
},
__wbg_enable_cb4fc19b51148c37: function(arg0, arg1) {
arg0.enable(arg1 >>> 0);
},
__wbg_getContext_051324720aa5b7e8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
}, arguments); },
__wbg_getProgramInfoLog_3276b294d6d42fe2: function(arg0, arg1, arg2) {
const ret = arg1.getProgramInfoLog(arg2);
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len1 = WASM_VECTOR_LEN;
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
},
__wbg_getProgramParameter_fc7124bb9fb7c675: function(arg0, arg1, arg2) {
const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
return ret;
},
__wbg_getShaderInfoLog_7e0cbba353ca95da: function(arg0, arg1, arg2) {
const ret = arg1.getShaderInfoLog(arg2);
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len1 = WASM_VECTOR_LEN;
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
},
__wbg_getShaderParameter_745acf10b8e45e31: function(arg0, arg1, arg2) {
const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
return ret;
},
__wbg_getUniformLocation_50ba45dade572703: function(arg0, arg1, arg2, arg3) {
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
},
__wbg_instanceof_WebGl2RenderingContext_64c994c14c0790fb: function(arg0) {
let result;
try {
result = arg0 instanceof WebGL2RenderingContext;
} catch (_) {
result = false;
}
const ret = result;
return ret;
},
__wbg_isEnabled_acb9d89bd88c16bd: function(arg0, arg1) {
const ret = arg0.isEnabled(arg1 >>> 0);
return ret;
},
__wbg_linkProgram_acdc299c43d734a0: function(arg0, arg1) {
arg0.linkProgram(arg1);
},
__wbg_new_617a8cdb8bb1130e: function() {
const ret = new Object();
return ret;
},
__wbg_new_from_slice_ca6ad97db1f4779a: function(arg0, arg1) {
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
return ret;
},
__wbg_polygonOffset_81dc8ca84e29572b: function(arg0, arg1, arg2) {
arg0.polygonOffset(arg1, arg2);
},
__wbg_set_145a351398b48c65: function() { return handleError(function (arg0, arg1, arg2) {
const ret = Reflect.set(arg0, arg1, arg2);
return ret;
}, arguments); },
__wbg_shaderSource_c8812639b47d87b9: function(arg0, arg1, arg2, arg3) {
arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
},
__wbg_stencilFunc_bab7e0b7c443f093: function(arg0, arg1, arg2, arg3) {
arg0.stencilFunc(arg1 >>> 0, arg2, arg3 >>> 0);
},
__wbg_stencilMask_a22be64c66abd825: function(arg0, arg1) {
arg0.stencilMask(arg1 >>> 0);
},
__wbg_stencilOp_2697194654fee819: function(arg0, arg1, arg2, arg3) {
arg0.stencilOp(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
},
__wbg_uniform1f_b5856e35a43b65a1: function(arg0, arg1, arg2) {
arg0.uniform1f(arg1, arg2);
},
__wbg_uniform2f_a92b5bb95dc5b4d9: function(arg0, arg1, arg2, arg3) {
arg0.uniform2f(arg1, arg2, arg3);
},
__wbg_uniform3f_1211579ff87ccfad: function(arg0, arg1, arg2, arg3, arg4) {
arg0.uniform3f(arg1, arg2, arg3, arg4);
},
__wbg_uniform4f_8dd8f311e656ca0d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
},
__wbg_useProgram_e075c2902e420761: function(arg0, arg1) {
arg0.useProgram(arg1);
},
__wbg_vertexAttribPointer_24b495e18df325dc: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
},
__wbg_viewport_16936692526e2ce6: function(arg0, arg1, arg2, arg3, arg4) {
arg0.viewport(arg1, arg2, arg3, arg4);
},
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
// Cast intrinsic for `Ref(String) -> Externref`.
const ret = getStringFromWasm0(arg0, arg1);
return ret;
},
__wbindgen_init_externref_table: function() {
const table = wasm.__wbindgen_externrefs;
const offset = table.grow(4);
table.set(0, undefined);
table.set(offset + 0, undefined);
table.set(offset + 1, null);
table.set(offset + 2, true);
table.set(offset + 3, false);
},
};
return {
__proto__: null,
"./atlas_renderer_bg.js": import0,
};
}
const RendererFinalization = (typeof FinalizationRegistry === 'undefined')
? { register: () => {}, unregister: () => {} }
: new FinalizationRegistry(ptr => wasm.__wbg_renderer_free(ptr, 1));
function addToExternrefTable0(obj) {
const idx = wasm.__externref_table_alloc();
wasm.__wbindgen_externrefs.set(idx, obj);
return idx;
}
function getArrayF32FromWasm0(ptr, len) {
ptr = ptr >>> 0;
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
}
let cachedDataViewMemory0 = null;
function getDataViewMemory0() {
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
}
return cachedDataViewMemory0;
}
let cachedFloat32ArrayMemory0 = null;
function getFloat32ArrayMemory0() {
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
}
return cachedFloat32ArrayMemory0;
}
let cachedFloat64ArrayMemory0 = null;
function getFloat64ArrayMemory0() {
if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
}
return cachedFloat64ArrayMemory0;
}
function getStringFromWasm0(ptr, len) {
return decodeText(ptr >>> 0, len);
}
let cachedUint32ArrayMemory0 = null;
function getUint32ArrayMemory0() {
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
}
return cachedUint32ArrayMemory0;
}
let cachedUint8ArrayMemory0 = null;
function getUint8ArrayMemory0() {
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
}
return cachedUint8ArrayMemory0;
}
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
const idx = addToExternrefTable0(e);
wasm.__wbindgen_exn_store(idx);
}
}
function isLikeNone(x) {
return x === undefined || x === null;
}
function passArray32ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 4, 4) >>> 0;
getUint32ArrayMemory0().set(arg, ptr / 4);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function passArray8ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 1, 1) >>> 0;
getUint8ArrayMemory0().set(arg, ptr / 1);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function passArrayF32ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 4, 4) >>> 0;
getFloat32ArrayMemory0().set(arg, ptr / 4);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function passArrayF64ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 8, 8) >>> 0;
getFloat64ArrayMemory0().set(arg, ptr / 8);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function passStringToWasm0(arg, malloc, realloc) {
if (realloc === undefined) {
const buf = cachedTextEncoder.encode(arg);
const ptr = malloc(buf.length, 1) >>> 0;
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
WASM_VECTOR_LEN = buf.length;
return ptr;
}
let len = arg.length;
let ptr = malloc(len, 1) >>> 0;
const mem = getUint8ArrayMemory0();
let offset = 0;
for (; offset < len; offset++) {
const code = arg.charCodeAt(offset);
if (code > 0x7F) break;
mem[ptr + offset] = code;
}
if (offset !== len) {
if (offset !== 0) {
arg = arg.slice(offset);
}
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
const ret = cachedTextEncoder.encodeInto(arg, view);
offset += ret.written;
ptr = realloc(ptr, len, offset, 1) >>> 0;
}
WASM_VECTOR_LEN = offset;
return ptr;
}
function takeFromExternrefTable0(idx) {
const value = wasm.__wbindgen_externrefs.get(idx);
wasm.__externref_table_dealloc(idx);
return value;
}
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
const MAX_SAFARI_DECODE_BYTES = 2146435072;
let numBytesDecoded = 0;
function decodeText(ptr, len) {
numBytesDecoded += len;
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
numBytesDecoded = len;
}
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
}
const cachedTextEncoder = new TextEncoder();
if (!('encodeInto' in cachedTextEncoder)) {
cachedTextEncoder.encodeInto = function (arg, view) {
const buf = cachedTextEncoder.encode(arg);
view.set(buf);
return {
read: arg.length,
written: buf.length
};
};
}
let WASM_VECTOR_LEN = 0;
let wasmModule, wasmInstance, wasm;
function __wbg_finalize_init(instance, module) {
wasmInstance = instance;
wasm = instance.exports;
wasmModule = module;
cachedDataViewMemory0 = null;
cachedFloat32ArrayMemory0 = null;
cachedFloat64ArrayMemory0 = null;
cachedUint32ArrayMemory0 = null;
cachedUint8ArrayMemory0 = null;
wasm.__wbindgen_start();
return wasm;
}
async function __wbg_load(module, imports) {
if (typeof Response === 'function' && module instanceof Response) {
if (!module.ok) {
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
}
if (typeof WebAssembly.instantiateStreaming === 'function') {
try {
return await WebAssembly.instantiateStreaming(module, imports);
} catch (e) {
const validResponse = expectedResponseType(module.type);
if (validResponse && module.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", e);
} else { throw e; }
}
}
const bytes = await module.arrayBuffer();
return await WebAssembly.instantiate(bytes, imports);
} else {
const instance = await WebAssembly.instantiate(module, imports);
if (instance instanceof WebAssembly.Instance) {
return { instance, module };
} else {
return instance;
}
}
function expectedResponseType(type) {
switch (type) {
case 'basic': case 'cors': case 'default': return true;
}
return false;
}
}
function initSync(module) {
if (wasm !== undefined) return wasm;
if (module !== undefined) {
if (Object.getPrototypeOf(module) === Object.prototype) {
({module} = module)
} else {
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
}
}
const imports = __wbg_get_imports();
if (!(module instanceof WebAssembly.Module)) {
module = new WebAssembly.Module(module);
}
const instance = new WebAssembly.Instance(module, imports);
return __wbg_finalize_init(instance, module);
}
async function __wbg_init(module_or_path) {
if (wasm !== undefined) return wasm;
if (module_or_path !== undefined) {
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
({module_or_path} = module_or_path)
} else {
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
}
}
if (module_or_path === undefined) {
module_or_path = new URL('atlas_renderer_bg.wasm', import.meta.url);
}
const imports = __wbg_get_imports();
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
module_or_path = fetch(module_or_path);
}
const { instance, module } = await __wbg_load(await module_or_path, imports);
return __wbg_finalize_init(instance, module);
}
export { initSync, __wbg_init as default };
