|
|
|
@@ -95,8 +95,24 @@ export const instantiate = async (modulePromise, importObjectPromise) => {
|
|
|
|
|
// Imports
|
|
|
|
|
const dart2wasm = {
|
|
|
|
|
|
|
|
|
|
_48: v => stringToDartString(v.toString()),
|
|
|
|
|
_64: () => {
|
|
|
|
|
_18: f => finalizeWrapper(f,x0 => dartInstance.exports._18(f,x0)),
|
|
|
|
|
_19: f => finalizeWrapper(f,x0 => dartInstance.exports._19(f,x0)),
|
|
|
|
|
_75: (x0,x1) => x0.getElementById(x1),
|
|
|
|
|
_76: f => finalizeWrapper(f,x0 => dartInstance.exports._76(f,x0)),
|
|
|
|
|
_77: (x0,x1,x2) => x0.addEventListener(x1,x2),
|
|
|
|
|
_78: f => finalizeWrapper(f,x0 => dartInstance.exports._78(f,x0)),
|
|
|
|
|
_79: f => finalizeWrapper(f,x0 => dartInstance.exports._79(f,x0)),
|
|
|
|
|
_1499: (x0,x1) => x0.width = x1,
|
|
|
|
|
_1501: (x0,x1) => x0.height = x1,
|
|
|
|
|
_1878: () => globalThis.window,
|
|
|
|
|
_1920: x0 => x0.innerWidth,
|
|
|
|
|
_1921: x0 => x0.innerHeight,
|
|
|
|
|
_6854: () => globalThis.document,
|
|
|
|
|
_12721: () => globalThis.createBoolCallback(),
|
|
|
|
|
_12722: () => globalThis.createVoidPointerCallback(),
|
|
|
|
|
_12723: () => globalThis.createVoidCallback(),
|
|
|
|
|
_12727: v => stringToDartString(v.toString()),
|
|
|
|
|
_12743: () => {
|
|
|
|
|
let stackString = new Error().stack.toString();
|
|
|
|
|
let frames = stackString.split('\n');
|
|
|
|
|
let drop = 2;
|
|
|
|
@@ -105,85 +121,87 @@ _64: () => {
|
|
|
|
|
}
|
|
|
|
|
return frames.slice(drop).join('\n');
|
|
|
|
|
},
|
|
|
|
|
_83: s => stringToDartString(JSON.stringify(stringFromDartString(s))),
|
|
|
|
|
_84: s => printToConsole(stringFromDartString(s)),
|
|
|
|
|
_98: (ms, c) =>
|
|
|
|
|
_12762: s => stringToDartString(JSON.stringify(stringFromDartString(s))),
|
|
|
|
|
_12763: s => printToConsole(stringFromDartString(s)),
|
|
|
|
|
_12777: (ms, c) =>
|
|
|
|
|
setTimeout(() => dartInstance.exports.$invokeCallback(c),ms),
|
|
|
|
|
_102: (c) =>
|
|
|
|
|
_12781: (c) =>
|
|
|
|
|
queueMicrotask(() => dartInstance.exports.$invokeCallback(c)),
|
|
|
|
|
_104: (a, i) => a.push(i),
|
|
|
|
|
_115: a => a.length,
|
|
|
|
|
_117: (a, i) => a[i],
|
|
|
|
|
_118: (a, i, v) => a[i] = v,
|
|
|
|
|
_120: a => a.join(''),
|
|
|
|
|
_130: (s, p, i) => s.indexOf(p, i),
|
|
|
|
|
_133: (o, start, length) => new Uint8Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_134: (o, start, length) => new Int8Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_135: (o, start, length) => new Uint8ClampedArray(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_136: (o, start, length) => new Uint16Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_137: (o, start, length) => new Int16Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_138: (o, start, length) => new Uint32Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_139: (o, start, length) => new Int32Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_142: (o, start, length) => new Float32Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_143: (o, start, length) => new Float64Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_148: (o) => new DataView(o.buffer, o.byteOffset, o.byteLength),
|
|
|
|
|
_152: Function.prototype.call.bind(Object.getOwnPropertyDescriptor(DataView.prototype, 'byteLength').get),
|
|
|
|
|
_153: (b, o) => new DataView(b, o),
|
|
|
|
|
_155: Function.prototype.call.bind(DataView.prototype.getUint8),
|
|
|
|
|
_157: Function.prototype.call.bind(DataView.prototype.getInt8),
|
|
|
|
|
_159: Function.prototype.call.bind(DataView.prototype.getUint16),
|
|
|
|
|
_161: Function.prototype.call.bind(DataView.prototype.getInt16),
|
|
|
|
|
_163: Function.prototype.call.bind(DataView.prototype.getUint32),
|
|
|
|
|
_165: Function.prototype.call.bind(DataView.prototype.getInt32),
|
|
|
|
|
_171: Function.prototype.call.bind(DataView.prototype.getFloat32),
|
|
|
|
|
_173: Function.prototype.call.bind(DataView.prototype.getFloat64),
|
|
|
|
|
_194: o => o === undefined,
|
|
|
|
|
_195: o => typeof o === 'boolean',
|
|
|
|
|
_196: o => typeof o === 'number',
|
|
|
|
|
_198: o => typeof o === 'string',
|
|
|
|
|
_201: o => o instanceof Int8Array,
|
|
|
|
|
_202: o => o instanceof Uint8Array,
|
|
|
|
|
_203: o => o instanceof Uint8ClampedArray,
|
|
|
|
|
_204: o => o instanceof Int16Array,
|
|
|
|
|
_205: o => o instanceof Uint16Array,
|
|
|
|
|
_206: o => o instanceof Int32Array,
|
|
|
|
|
_207: o => o instanceof Uint32Array,
|
|
|
|
|
_208: o => o instanceof Float32Array,
|
|
|
|
|
_209: o => o instanceof Float64Array,
|
|
|
|
|
_210: o => o instanceof ArrayBuffer,
|
|
|
|
|
_211: o => o instanceof DataView,
|
|
|
|
|
_212: o => o instanceof Array,
|
|
|
|
|
_213: o => typeof o === 'function' && o[jsWrappedDartFunctionSymbol] === true,
|
|
|
|
|
_217: (l, r) => l === r,
|
|
|
|
|
_218: o => o,
|
|
|
|
|
_219: o => o,
|
|
|
|
|
_220: o => o,
|
|
|
|
|
_221: b => !!b,
|
|
|
|
|
_222: o => o.length,
|
|
|
|
|
_225: (o, i) => o[i],
|
|
|
|
|
_226: f => f.dartFunction,
|
|
|
|
|
_227: l => arrayFromDartList(Int8Array, l),
|
|
|
|
|
_228: l => arrayFromDartList(Uint8Array, l),
|
|
|
|
|
_229: l => arrayFromDartList(Uint8ClampedArray, l),
|
|
|
|
|
_230: l => arrayFromDartList(Int16Array, l),
|
|
|
|
|
_231: l => arrayFromDartList(Uint16Array, l),
|
|
|
|
|
_232: l => arrayFromDartList(Int32Array, l),
|
|
|
|
|
_233: l => arrayFromDartList(Uint32Array, l),
|
|
|
|
|
_234: l => arrayFromDartList(Float32Array, l),
|
|
|
|
|
_235: l => arrayFromDartList(Float64Array, l),
|
|
|
|
|
_236: (data, length) => {
|
|
|
|
|
_12783: (a, i) => a.push(i),
|
|
|
|
|
_12794: a => a.length,
|
|
|
|
|
_12796: (a, i) => a[i],
|
|
|
|
|
_12797: (a, i, v) => a[i] = v,
|
|
|
|
|
_12799: a => a.join(''),
|
|
|
|
|
_12809: (s, p, i) => s.indexOf(p, i),
|
|
|
|
|
_12812: (o, start, length) => new Uint8Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_12813: (o, start, length) => new Int8Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_12814: (o, start, length) => new Uint8ClampedArray(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_12815: (o, start, length) => new Uint16Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_12816: (o, start, length) => new Int16Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_12817: (o, start, length) => new Uint32Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_12818: (o, start, length) => new Int32Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_12821: (o, start, length) => new Float32Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_12822: (o, start, length) => new Float64Array(o.buffer, o.byteOffset + start, length),
|
|
|
|
|
_12827: (o) => new DataView(o.buffer, o.byteOffset, o.byteLength),
|
|
|
|
|
_12831: Function.prototype.call.bind(Object.getOwnPropertyDescriptor(DataView.prototype, 'byteLength').get),
|
|
|
|
|
_12832: (b, o) => new DataView(b, o),
|
|
|
|
|
_12834: Function.prototype.call.bind(DataView.prototype.getUint8),
|
|
|
|
|
_12836: Function.prototype.call.bind(DataView.prototype.getInt8),
|
|
|
|
|
_12838: Function.prototype.call.bind(DataView.prototype.getUint16),
|
|
|
|
|
_12840: Function.prototype.call.bind(DataView.prototype.getInt16),
|
|
|
|
|
_12842: Function.prototype.call.bind(DataView.prototype.getUint32),
|
|
|
|
|
_12844: Function.prototype.call.bind(DataView.prototype.getInt32),
|
|
|
|
|
_12850: Function.prototype.call.bind(DataView.prototype.getFloat32),
|
|
|
|
|
_12852: Function.prototype.call.bind(DataView.prototype.getFloat64),
|
|
|
|
|
_12873: o => o === undefined,
|
|
|
|
|
_12874: o => typeof o === 'boolean',
|
|
|
|
|
_12875: o => typeof o === 'number',
|
|
|
|
|
_12877: o => typeof o === 'string',
|
|
|
|
|
_12880: o => o instanceof Int8Array,
|
|
|
|
|
_12881: o => o instanceof Uint8Array,
|
|
|
|
|
_12882: o => o instanceof Uint8ClampedArray,
|
|
|
|
|
_12883: o => o instanceof Int16Array,
|
|
|
|
|
_12884: o => o instanceof Uint16Array,
|
|
|
|
|
_12885: o => o instanceof Int32Array,
|
|
|
|
|
_12886: o => o instanceof Uint32Array,
|
|
|
|
|
_12887: o => o instanceof Float32Array,
|
|
|
|
|
_12888: o => o instanceof Float64Array,
|
|
|
|
|
_12889: o => o instanceof ArrayBuffer,
|
|
|
|
|
_12890: o => o instanceof DataView,
|
|
|
|
|
_12891: o => o instanceof Array,
|
|
|
|
|
_12892: o => typeof o === 'function' && o[jsWrappedDartFunctionSymbol] === true,
|
|
|
|
|
_12896: (l, r) => l === r,
|
|
|
|
|
_12897: o => o,
|
|
|
|
|
_12898: o => o,
|
|
|
|
|
_12899: o => o,
|
|
|
|
|
_12900: b => !!b,
|
|
|
|
|
_12901: o => o.length,
|
|
|
|
|
_12904: (o, i) => o[i],
|
|
|
|
|
_12905: f => f.dartFunction,
|
|
|
|
|
_12906: l => arrayFromDartList(Int8Array, l),
|
|
|
|
|
_12907: l => arrayFromDartList(Uint8Array, l),
|
|
|
|
|
_12908: l => arrayFromDartList(Uint8ClampedArray, l),
|
|
|
|
|
_12909: l => arrayFromDartList(Int16Array, l),
|
|
|
|
|
_12910: l => arrayFromDartList(Uint16Array, l),
|
|
|
|
|
_12911: l => arrayFromDartList(Int32Array, l),
|
|
|
|
|
_12912: l => arrayFromDartList(Uint32Array, l),
|
|
|
|
|
_12913: l => arrayFromDartList(Float32Array, l),
|
|
|
|
|
_12914: l => arrayFromDartList(Float64Array, l),
|
|
|
|
|
_12915: (data, length) => {
|
|
|
|
|
const view = new DataView(new ArrayBuffer(length));
|
|
|
|
|
for (let i = 0; i < length; i++) {
|
|
|
|
|
view.setUint8(i, dartInstance.exports.$byteDataGetUint8(data, i));
|
|
|
|
|
}
|
|
|
|
|
return view;
|
|
|
|
|
},
|
|
|
|
|
_237: l => arrayFromDartList(Array, l),
|
|
|
|
|
_238: stringFromDartString,
|
|
|
|
|
_239: stringToDartString,
|
|
|
|
|
_242: l => new Array(l),
|
|
|
|
|
_246: (o, p) => o[p],
|
|
|
|
|
_250: o => String(o)
|
|
|
|
|
_12916: l => arrayFromDartList(Array, l),
|
|
|
|
|
_12917: stringFromDartString,
|
|
|
|
|
_12918: stringToDartString,
|
|
|
|
|
_12921: l => new Array(l),
|
|
|
|
|
_12925: (o, p) => o[p],
|
|
|
|
|
_12929: o => String(o),
|
|
|
|
|
_12930: (p, s, f) => p.then(s, f),
|
|
|
|
|
_12949: (o, p) => o[p]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const baseImports = {
|
|
|
|
|