Clearwake / website / app / clearwake.js
| 1 | export function start() { |
| 2 | wasm.start(); |
| 3 | } |
| 4 | function __wbg_get_imports() { |
| 5 | const import0 = { |
| 6 | __proto__: null, |
| 7 | __wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) { |
| 8 | const v = arg0; |
| 9 | const ret = typeof(v) === 'boolean' ? v : undefined; |
| 10 | return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0; |
| 11 | }, |
| 12 | __wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) { |
| 13 | const ret = debugString(arg1); |
| 14 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 15 | const len1 = WASM_VECTOR_LEN; |
| 16 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 17 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 18 | }, |
| 19 | __wbg___wbindgen_in_3f58a9d3b3a7eed2: function(arg0, arg1) { |
| 20 | const ret = arg0 in arg1; |
| 21 | return ret; |
| 22 | }, |
| 23 | __wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) { |
| 24 | const ret = typeof(arg0) === 'function'; |
| 25 | return ret; |
| 26 | }, |
| 27 | __wbg___wbindgen_is_object_8b968c3ab8e96595: function(arg0) { |
| 28 | const val = arg0; |
| 29 | const ret = typeof(val) === 'object' && val !== null; |
| 30 | return ret; |
| 31 | }, |
| 32 | __wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) { |
| 33 | const ret = arg0 === undefined; |
| 34 | return ret; |
| 35 | }, |
| 36 | __wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) { |
| 37 | const obj = arg1; |
| 38 | const ret = typeof(obj) === 'number' ? obj : undefined; |
| 39 | getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true); |
| 40 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true); |
| 41 | }, |
| 42 | __wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) { |
| 43 | const obj = arg1; |
| 44 | const ret = typeof(obj) === 'string' ? obj : undefined; |
| 45 | var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 46 | var len1 = WASM_VECTOR_LEN; |
| 47 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 48 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 49 | }, |
| 50 | __wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) { |
| 51 | throw new Error(getStringFromWasm0(arg0, arg1)); |
| 52 | }, |
| 53 | __wbg__wbg_cb_unref_09736879a3f67559: function(arg0) { |
| 54 | arg0._wbg_cb_unref(); |
| 55 | }, |
| 56 | __wbg_activeElement_6c30fe7fda33ef51: function(arg0) { |
| 57 | const ret = arg0.activeElement; |
| 58 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 59 | }, |
| 60 | __wbg_activeElement_f9fa238dd2650f32: function(arg0) { |
| 61 | const ret = arg0.activeElement; |
| 62 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 63 | }, |
| 64 | __wbg_activeTexture_45b425a49df733ce: function(arg0, arg1) { |
| 65 | arg0.activeTexture(arg1 >>> 0); |
| 66 | }, |
| 67 | __wbg_activeTexture_89cef8c297ad0698: function(arg0, arg1) { |
| 68 | arg0.activeTexture(arg1 >>> 0); |
| 69 | }, |
| 70 | __wbg_actualBoundingBoxAscent_912cb885174c5be4: function(arg0) { |
| 71 | const ret = arg0.actualBoundingBoxAscent; |
| 72 | return ret; |
| 73 | }, |
| 74 | __wbg_actualBoundingBoxDescent_150b2f20afdb7deb: function(arg0) { |
| 75 | const ret = arg0.actualBoundingBoxDescent; |
| 76 | return ret; |
| 77 | }, |
| 78 | __wbg_actualBoundingBoxLeft_5b7399df025870ae: function(arg0) { |
| 79 | const ret = arg0.actualBoundingBoxLeft; |
| 80 | return ret; |
| 81 | }, |
| 82 | __wbg_actualBoundingBoxRight_4efd3051aac85474: function(arg0) { |
| 83 | const ret = arg0.actualBoundingBoxRight; |
| 84 | return ret; |
| 85 | }, |
| 86 | __wbg_addEventListener_f2d27251d333a631: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { |
| 87 | arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4); |
| 88 | }, arguments); }, |
| 89 | __wbg_altKey_423da1d67b588078: function(arg0) { |
| 90 | const ret = arg0.altKey; |
| 91 | return ret; |
| 92 | }, |
| 93 | __wbg_altKey_f158b37d4bccf5ff: function(arg0) { |
| 94 | const ret = arg0.altKey; |
| 95 | return ret; |
| 96 | }, |
| 97 | __wbg_appendChild_dbf7ad2f48413560: function() { return handleError(function (arg0, arg1) { |
| 98 | const ret = arg0.appendChild(arg1); |
| 99 | return ret; |
| 100 | }, arguments); }, |
| 101 | __wbg_arrayBuffer_2c99a9ba14ba536c: function() { return handleError(function (arg0) { |
| 102 | const ret = arg0.arrayBuffer(); |
| 103 | return ret; |
| 104 | }, arguments); }, |
| 105 | __wbg_arrayBuffer_5abbcb61bd48f427: function(arg0) { |
| 106 | const ret = arg0.arrayBuffer(); |
| 107 | return ret; |
| 108 | }, |
| 109 | __wbg_at_3e5065dbded96e2e: function(arg0, arg1) { |
| 110 | const ret = arg0.at(arg1); |
| 111 | return ret; |
| 112 | }, |
| 113 | __wbg_attachShader_3ed301cc92db59f6: function(arg0, arg1, arg2) { |
| 114 | arg0.attachShader(arg1, arg2); |
| 115 | }, |
| 116 | __wbg_attachShader_817dcec9e79fd18f: function(arg0, arg1, arg2) { |
| 117 | arg0.attachShader(arg1, arg2); |
| 118 | }, |
| 119 | __wbg_bindBuffer_b3bb001fdbee089a: function(arg0, arg1, arg2) { |
| 120 | arg0.bindBuffer(arg1 >>> 0, arg2); |
| 121 | }, |
| 122 | __wbg_bindBuffer_cbc9075f76fffa51: function(arg0, arg1, arg2) { |
| 123 | arg0.bindBuffer(arg1 >>> 0, arg2); |
| 124 | }, |
| 125 | __wbg_bindTexture_6f822943b2790466: function(arg0, arg1, arg2) { |
| 126 | arg0.bindTexture(arg1 >>> 0, arg2); |
| 127 | }, |
| 128 | __wbg_bindTexture_a23350e1b573ddfd: function(arg0, arg1, arg2) { |
| 129 | arg0.bindTexture(arg1 >>> 0, arg2); |
| 130 | }, |
| 131 | __wbg_bindVertexArrayOES_5161c1f5b1fea3f9: function(arg0, arg1) { |
| 132 | arg0.bindVertexArrayOES(arg1); |
| 133 | }, |
| 134 | __wbg_bindVertexArray_cc64c48bf67ab8d4: function(arg0, arg1) { |
| 135 | arg0.bindVertexArray(arg1); |
| 136 | }, |
| 137 | __wbg_blendEquationSeparate_0dceb23863585a87: function(arg0, arg1, arg2) { |
| 138 | arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0); |
| 139 | }, |
| 140 | __wbg_blendEquationSeparate_156fe040a9aebfd6: function(arg0, arg1, arg2) { |
| 141 | arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0); |
| 142 | }, |
| 143 | __wbg_blendFuncSeparate_6db2212299fd7f1e: function(arg0, arg1, arg2, arg3, arg4) { |
| 144 | arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); |
| 145 | }, |
| 146 | __wbg_blendFuncSeparate_eb9098d760f4a25c: function(arg0, arg1, arg2, arg3, arg4) { |
| 147 | arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0); |
| 148 | }, |
| 149 | __wbg_blockSize_4a396ef99671a8a3: function(arg0) { |
| 150 | const ret = arg0.blockSize; |
| 151 | return ret; |
| 152 | }, |
| 153 | __wbg_blur_c2856e0bcfec2cc0: function() { return handleError(function (arg0) { |
| 154 | arg0.blur(); |
| 155 | }, arguments); }, |
| 156 | __wbg_body_5f971cbc6950ca4f: function(arg0) { |
| 157 | const ret = arg0.body; |
| 158 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 159 | }, |
| 160 | __wbg_bottom_fd840749aac1de6e: function(arg0) { |
| 161 | const ret = arg0.bottom; |
| 162 | return ret; |
| 163 | }, |
| 164 | __wbg_bufferData_2fb8740d60478bf0: function(arg0, arg1, arg2, arg3) { |
| 165 | arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0); |
| 166 | }, |
| 167 | __wbg_bufferData_9eb9c4c5053ac480: function(arg0, arg1, arg2, arg3) { |
| 168 | arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0); |
| 169 | }, |
| 170 | __wbg_button_653210370515dd71: function(arg0) { |
| 171 | const ret = arg0.button; |
| 172 | return ret; |
| 173 | }, |
| 174 | __wbg_call_40b008ba32f73991: function() { return handleError(function (arg0, arg1) { |
| 175 | const ret = arg0.call(arg1); |
| 176 | return ret; |
| 177 | }, arguments); }, |
| 178 | __wbg_cancelAnimationFrame_c0d19c5f7cfd7aae: function() { return handleError(function (arg0, arg1) { |
| 179 | arg0.cancelAnimationFrame(arg1); |
| 180 | }, arguments); }, |
| 181 | __wbg_changedTouches_133917dec6f0866e: function(arg0) { |
| 182 | const ret = arg0.changedTouches; |
| 183 | return ret; |
| 184 | }, |
| 185 | __wbg_clearColor_0a9b08857907c212: function(arg0, arg1, arg2, arg3, arg4) { |
| 186 | arg0.clearColor(arg1, arg2, arg3, arg4); |
| 187 | }, |
| 188 | __wbg_clearColor_195b5a731bca5836: function(arg0, arg1, arg2, arg3, arg4) { |
| 189 | arg0.clearColor(arg1, arg2, arg3, arg4); |
| 190 | }, |
| 191 | __wbg_clearInterval_75e54e39df78e754: function(arg0, arg1) { |
| 192 | arg0.clearInterval(arg1); |
| 193 | }, |
| 194 | __wbg_clearRect_428f96a6ba73b2f4: function(arg0, arg1, arg2, arg3, arg4) { |
| 195 | arg0.clearRect(arg1, arg2, arg3, arg4); |
| 196 | }, |
| 197 | __wbg_clearTimeout_fd2c5dfcf4c67f84: function(arg0, arg1) { |
| 198 | arg0.clearTimeout(arg1); |
| 199 | }, |
| 200 | __wbg_clear_3ffa1ed794f92a04: function(arg0, arg1) { |
| 201 | arg0.clear(arg1 >>> 0); |
| 202 | }, |
| 203 | __wbg_clear_ccb3d618da90fea3: function(arg0, arg1) { |
| 204 | arg0.clear(arg1 >>> 0); |
| 205 | }, |
| 206 | __wbg_clientX_7207eed549b03753: function(arg0) { |
| 207 | const ret = arg0.clientX; |
| 208 | return ret; |
| 209 | }, |
| 210 | __wbg_clientX_8c315b448e031608: function(arg0) { |
| 211 | const ret = arg0.clientX; |
| 212 | return ret; |
| 213 | }, |
| 214 | __wbg_clientY_3371139730cd6f74: function(arg0) { |
| 215 | const ret = arg0.clientY; |
| 216 | return ret; |
| 217 | }, |
| 218 | __wbg_clientY_864eb3eff334b02a: function(arg0) { |
| 219 | const ret = arg0.clientY; |
| 220 | return ret; |
| 221 | }, |
| 222 | __wbg_clipboardData_40289949920202d6: function(arg0) { |
| 223 | const ret = arg0.clipboardData; |
| 224 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 225 | }, |
| 226 | __wbg_clipboard_047ad3d952a13066: function(arg0) { |
| 227 | const ret = arg0.clipboard; |
| 228 | return ret; |
| 229 | }, |
| 230 | __wbg_code_f0359f3273037430: function(arg0, arg1) { |
| 231 | const ret = arg1.code; |
| 232 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 233 | const len1 = WASM_VECTOR_LEN; |
| 234 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 235 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 236 | }, |
| 237 | __wbg_colorMask_24c1b6c3ec53f8c8: function(arg0, arg1, arg2, arg3, arg4) { |
| 238 | arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0); |
| 239 | }, |
| 240 | __wbg_colorMask_cfc2d619716d01ed: function(arg0, arg1, arg2, arg3, arg4) { |
| 241 | arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0); |
| 242 | }, |
| 243 | __wbg_compileShader_11eb6754e9b15970: function(arg0, arg1) { |
| 244 | arg0.compileShader(arg1); |
| 245 | }, |
| 246 | __wbg_compileShader_54c3771819e6caba: function(arg0, arg1) { |
| 247 | arg0.compileShader(arg1); |
| 248 | }, |
| 249 | __wbg_contains_743aa7c94499c269: function(arg0, arg1) { |
| 250 | const ret = arg0.contains(arg1); |
| 251 | return ret; |
| 252 | }, |
| 253 | __wbg_contentBoxSize_d394eb8fa40e0155: function(arg0) { |
| 254 | const ret = arg0.contentBoxSize; |
| 255 | return ret; |
| 256 | }, |
| 257 | __wbg_contentRect_efd2ab04babd2afb: function(arg0) { |
| 258 | const ret = arg0.contentRect; |
| 259 | return ret; |
| 260 | }, |
| 261 | __wbg_createBuffer_2c27ad5f899d418d: function(arg0) { |
| 262 | const ret = arg0.createBuffer(); |
| 263 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 264 | }, |
| 265 | __wbg_createBuffer_ca6ca40e9fb13678: function(arg0) { |
| 266 | const ret = arg0.createBuffer(); |
| 267 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 268 | }, |
| 269 | __wbg_createElement_de4a31ed2fb252be: function() { return handleError(function (arg0, arg1, arg2) { |
| 270 | const ret = arg0.createElement(getStringFromWasm0(arg1, arg2)); |
| 271 | return ret; |
| 272 | }, arguments); }, |
| 273 | __wbg_createProgram_de0881c688a8e43b: function(arg0) { |
| 274 | const ret = arg0.createProgram(); |
| 275 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 276 | }, |
| 277 | __wbg_createProgram_ea784724f6f0074f: function(arg0) { |
| 278 | const ret = arg0.createProgram(); |
| 279 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 280 | }, |
| 281 | __wbg_createShader_9754a1e4ef374e84: function(arg0, arg1) { |
| 282 | const ret = arg0.createShader(arg1 >>> 0); |
| 283 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 284 | }, |
| 285 | __wbg_createShader_d2d90020273cef2b: function(arg0, arg1) { |
| 286 | const ret = arg0.createShader(arg1 >>> 0); |
| 287 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 288 | }, |
| 289 | __wbg_createTexture_3287f26407473071: function(arg0) { |
| 290 | const ret = arg0.createTexture(); |
| 291 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 292 | }, |
| 293 | __wbg_createTexture_eec9a1994aabeca7: function(arg0) { |
| 294 | const ret = arg0.createTexture(); |
| 295 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 296 | }, |
| 297 | __wbg_createVertexArrayOES_3eaf087ef22da1cb: function(arg0) { |
| 298 | const ret = arg0.createVertexArrayOES(); |
| 299 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 300 | }, |
| 301 | __wbg_createVertexArray_1293d2ffa8346be2: function(arg0) { |
| 302 | const ret = arg0.createVertexArray(); |
| 303 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 304 | }, |
| 305 | __wbg_ctrlKey_97b77227d0599549: function(arg0) { |
| 306 | const ret = arg0.ctrlKey; |
| 307 | return ret; |
| 308 | }, |
| 309 | __wbg_ctrlKey_b7978e4cf78dc62b: function(arg0) { |
| 310 | const ret = arg0.ctrlKey; |
| 311 | return ret; |
| 312 | }, |
| 313 | __wbg_dataTransfer_3f478a3e477952f6: function(arg0) { |
| 314 | const ret = arg0.dataTransfer; |
| 315 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 316 | }, |
| 317 | __wbg_data_bf4b5c8a5fc46441: function(arg0, arg1) { |
| 318 | const ret = arg1.data; |
| 319 | const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_export); |
| 320 | const len1 = WASM_VECTOR_LEN; |
| 321 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 322 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 323 | }, |
| 324 | __wbg_deleteBuffer_673584ba5a55669d: function(arg0, arg1) { |
| 325 | arg0.deleteBuffer(arg1); |
| 326 | }, |
| 327 | __wbg_deleteBuffer_ffa760fd3b0b5ef1: function(arg0, arg1) { |
| 328 | arg0.deleteBuffer(arg1); |
| 329 | }, |
| 330 | __wbg_deleteProgram_8c38fff0f4a88dea: function(arg0, arg1) { |
| 331 | arg0.deleteProgram(arg1); |
| 332 | }, |
| 333 | __wbg_deleteProgram_c07d952a1b0c1cb6: function(arg0, arg1) { |
| 334 | arg0.deleteProgram(arg1); |
| 335 | }, |
| 336 | __wbg_deleteShader_320530dd636bc187: function(arg0, arg1) { |
| 337 | arg0.deleteShader(arg1); |
| 338 | }, |
| 339 | __wbg_deleteShader_ac74568b64a1c3c7: function(arg0, arg1) { |
| 340 | arg0.deleteShader(arg1); |
| 341 | }, |
| 342 | __wbg_deleteTexture_1653a9994a44215e: function(arg0, arg1) { |
| 343 | arg0.deleteTexture(arg1); |
| 344 | }, |
| 345 | __wbg_deleteTexture_89bd1d49ae4fb309: function(arg0, arg1) { |
| 346 | arg0.deleteTexture(arg1); |
| 347 | }, |
| 348 | __wbg_deltaMode_d2ba7673c0228446: function(arg0) { |
| 349 | const ret = arg0.deltaMode; |
| 350 | return ret; |
| 351 | }, |
| 352 | __wbg_deltaX_6ad2483f3f4c0349: function(arg0) { |
| 353 | const ret = arg0.deltaX; |
| 354 | return ret; |
| 355 | }, |
| 356 | __wbg_deltaY_37dc0a54748a91f4: function(arg0) { |
| 357 | const ret = arg0.deltaY; |
| 358 | return ret; |
| 359 | }, |
| 360 | __wbg_detachShader_c85365fd7844e9b3: function(arg0, arg1, arg2) { |
| 361 | arg0.detachShader(arg1, arg2); |
| 362 | }, |
| 363 | __wbg_detachShader_f1bbf36cb414e038: function(arg0, arg1, arg2) { |
| 364 | arg0.detachShader(arg1, arg2); |
| 365 | }, |
| 366 | __wbg_devicePixelContentBoxSize_762c920a20c8b97f: function(arg0) { |
| 367 | const ret = arg0.devicePixelContentBoxSize; |
| 368 | return ret; |
| 369 | }, |
| 370 | __wbg_devicePixelRatio_90ee4024cee5d5f4: function(arg0) { |
| 371 | const ret = arg0.devicePixelRatio; |
| 372 | return ret; |
| 373 | }, |
| 374 | __wbg_disableVertexAttribArray_011898581287ef1e: function(arg0, arg1) { |
| 375 | arg0.disableVertexAttribArray(arg1 >>> 0); |
| 376 | }, |
| 377 | __wbg_disableVertexAttribArray_5c66375eba552ee7: function(arg0, arg1) { |
| 378 | arg0.disableVertexAttribArray(arg1 >>> 0); |
| 379 | }, |
| 380 | __wbg_disable_2ead6c11cefd0322: function(arg0, arg1) { |
| 381 | arg0.disable(arg1 >>> 0); |
| 382 | }, |
| 383 | __wbg_disable_8a9e81e6d64d046b: function(arg0, arg1) { |
| 384 | arg0.disable(arg1 >>> 0); |
| 385 | }, |
| 386 | __wbg_disconnect_cfb0d06aca1c1b50: function(arg0) { |
| 387 | arg0.disconnect(); |
| 388 | }, |
| 389 | __wbg_document_3b5c3071b43e97ee: function(arg0) { |
| 390 | const ret = arg0.document; |
| 391 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 392 | }, |
| 393 | __wbg_done_57e08d0be6e30c02: function(arg0) { |
| 394 | const ret = arg0.done; |
| 395 | return ret; |
| 396 | }, |
| 397 | __wbg_drawElements_c70e0887282fa70e: function(arg0, arg1, arg2, arg3, arg4) { |
| 398 | arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4); |
| 399 | }, |
| 400 | __wbg_drawElements_d76df94ac144b73b: function(arg0, arg1, arg2, arg3, arg4) { |
| 401 | arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4); |
| 402 | }, |
| 403 | __wbg_elementFromPoint_980d6f496a4e8662: function(arg0, arg1, arg2) { |
| 404 | const ret = arg0.elementFromPoint(arg1, arg2); |
| 405 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 406 | }, |
| 407 | __wbg_elementFromPoint_d54699de5ca534da: function(arg0, arg1, arg2) { |
| 408 | const ret = arg0.elementFromPoint(arg1, arg2); |
| 409 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 410 | }, |
| 411 | __wbg_enableVertexAttribArray_d485706ade6bebf8: function(arg0, arg1) { |
| 412 | arg0.enableVertexAttribArray(arg1 >>> 0); |
| 413 | }, |
| 414 | __wbg_enableVertexAttribArray_eeecc6185af24227: function(arg0, arg1) { |
| 415 | arg0.enableVertexAttribArray(arg1 >>> 0); |
| 416 | }, |
| 417 | __wbg_enable_c3c00565c89d3175: function(arg0, arg1) { |
| 418 | arg0.enable(arg1 >>> 0); |
| 419 | }, |
| 420 | __wbg_enable_e955d456ef6b93f7: function(arg0, arg1) { |
| 421 | arg0.enable(arg1 >>> 0); |
| 422 | }, |
| 423 | __wbg_error_4846905c32aefae2: function(arg0, arg1) { |
| 424 | let deferred0_0; |
| 425 | let deferred0_1; |
| 426 | try { |
| 427 | deferred0_0 = arg0; |
| 428 | deferred0_1 = arg1; |
| 429 | console.error(getStringFromWasm0(arg0, arg1)); |
| 430 | } finally { |
| 431 | wasm.__wbindgen_export3(deferred0_0, deferred0_1, 1); |
| 432 | } |
| 433 | }, |
| 434 | __wbg_error_d1fc0193610e0e39: function(arg0) { |
| 435 | console.error(arg0); |
| 436 | }, |
| 437 | __wbg_fetch_073e6e0d64ee3266: function(arg0) { |
| 438 | const ret = fetch(arg0); |
| 439 | return ret; |
| 440 | }, |
| 441 | __wbg_files_2d8b9138ca028e2c: function(arg0) { |
| 442 | const ret = arg0.files; |
| 443 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 444 | }, |
| 445 | __wbg_fillText_89d353a9ad9f4a1a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { |
| 446 | arg0.fillText(getStringFromWasm0(arg1, arg2), arg3, arg4); |
| 447 | }, arguments); }, |
| 448 | __wbg_focus_0a8d513ea5d8338e: function() { return handleError(function (arg0, arg1) { |
| 449 | arg0.focus(arg1); |
| 450 | }, arguments); }, |
| 451 | __wbg_force_f08aaeb22f5ab738: function(arg0) { |
| 452 | const ret = arg0.force; |
| 453 | return ret; |
| 454 | }, |
| 455 | __wbg_generateMipmap_41bc066b35a6cd3d: function(arg0, arg1) { |
| 456 | arg0.generateMipmap(arg1 >>> 0); |
| 457 | }, |
| 458 | __wbg_generateMipmap_e1a3b00736bb27bf: function(arg0, arg1) { |
| 459 | arg0.generateMipmap(arg1 >>> 0); |
| 460 | }, |
| 461 | __wbg_getAttribLocation_239fdc3b9bf96547: function(arg0, arg1, arg2, arg3) { |
| 462 | const ret = arg0.getAttribLocation(arg1, getStringFromWasm0(arg2, arg3)); |
| 463 | return ret; |
| 464 | }, |
| 465 | __wbg_getAttribLocation_8e502cd753de95f7: function(arg0, arg1, arg2, arg3) { |
| 466 | const ret = arg0.getAttribLocation(arg1, getStringFromWasm0(arg2, arg3)); |
| 467 | return ret; |
| 468 | }, |
| 469 | __wbg_getBoundingClientRect_329ca748ec918b0c: function(arg0) { |
| 470 | const ret = arg0.getBoundingClientRect(); |
| 471 | return ret; |
| 472 | }, |
| 473 | __wbg_getComputedStyle_3be93eadae0000a9: function() { return handleError(function (arg0, arg1) { |
| 474 | const ret = arg0.getComputedStyle(arg1); |
| 475 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 476 | }, arguments); }, |
| 477 | __wbg_getContext_d93f904b714852ae: function() { return handleError(function (arg0, arg1, arg2) { |
| 478 | const ret = arg0.getContext(getStringFromWasm0(arg1, arg2)); |
| 479 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 480 | }, arguments); }, |
| 481 | __wbg_getData_a7ee5645c60062ce: function() { return handleError(function (arg0, arg1, arg2, arg3) { |
| 482 | const ret = arg1.getData(getStringFromWasm0(arg2, arg3)); |
| 483 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 484 | const len1 = WASM_VECTOR_LEN; |
| 485 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 486 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 487 | }, arguments); }, |
| 488 | __wbg_getElementById_7ee213db584f37b0: function(arg0, arg1, arg2) { |
| 489 | const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2)); |
| 490 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 491 | }, |
| 492 | __wbg_getError_8687e93ec4a1d62e: function(arg0) { |
| 493 | const ret = arg0.getError(); |
| 494 | return ret; |
| 495 | }, |
| 496 | __wbg_getError_bb38cafe57b0913f: function(arg0) { |
| 497 | const ret = arg0.getError(); |
| 498 | return ret; |
| 499 | }, |
| 500 | __wbg_getExtension_30c10f49f67eb05d: function() { return handleError(function (arg0, arg1, arg2) { |
| 501 | const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2)); |
| 502 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 503 | }, arguments); }, |
| 504 | __wbg_getExtension_6b9dbc54fff39405: function() { return handleError(function (arg0, arg1, arg2) { |
| 505 | const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2)); |
| 506 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 507 | }, arguments); }, |
| 508 | __wbg_getImageData_284584d5017b9f60: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { |
| 509 | const ret = arg0.getImageData(arg1, arg2, arg3, arg4); |
| 510 | return ret; |
| 511 | }, arguments); }, |
| 512 | __wbg_getItem_49556a3e59cfb688: function() { return handleError(function (arg0, arg1, arg2, arg3) { |
| 513 | const ret = arg1.getItem(getStringFromWasm0(arg2, arg3)); |
| 514 | var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 515 | var len1 = WASM_VECTOR_LEN; |
| 516 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 517 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 518 | }, arguments); }, |
| 519 | __wbg_getParameter_4c67158a3cef7a34: function() { return handleError(function (arg0, arg1) { |
| 520 | const ret = arg0.getParameter(arg1 >>> 0); |
| 521 | return ret; |
| 522 | }, arguments); }, |
| 523 | __wbg_getParameter_7fbe79a0114e119f: function() { return handleError(function (arg0, arg1) { |
| 524 | const ret = arg0.getParameter(arg1 >>> 0); |
| 525 | return ret; |
| 526 | }, arguments); }, |
| 527 | __wbg_getProgramInfoLog_01799fd7b07b7f3c: function(arg0, arg1, arg2) { |
| 528 | const ret = arg1.getProgramInfoLog(arg2); |
| 529 | var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 530 | var len1 = WASM_VECTOR_LEN; |
| 531 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 532 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 533 | }, |
| 534 | __wbg_getProgramInfoLog_92d61551e1ab39ea: function(arg0, arg1, arg2) { |
| 535 | const ret = arg1.getProgramInfoLog(arg2); |
| 536 | var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 537 | var len1 = WASM_VECTOR_LEN; |
| 538 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 539 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 540 | }, |
| 541 | __wbg_getProgramParameter_1e7562e7d66170c3: function(arg0, arg1, arg2) { |
| 542 | const ret = arg0.getProgramParameter(arg1, arg2 >>> 0); |
| 543 | return ret; |
| 544 | }, |
| 545 | __wbg_getProgramParameter_3edd526f9e5f6c10: function(arg0, arg1, arg2) { |
| 546 | const ret = arg0.getProgramParameter(arg1, arg2 >>> 0); |
| 547 | return ret; |
| 548 | }, |
| 549 | __wbg_getPropertyValue_c0aae8b8341401f1: function() { return handleError(function (arg0, arg1, arg2, arg3) { |
| 550 | const ret = arg1.getPropertyValue(getStringFromWasm0(arg2, arg3)); |
| 551 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 552 | const len1 = WASM_VECTOR_LEN; |
| 553 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 554 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 555 | }, arguments); }, |
| 556 | __wbg_getRootNode_6de097189559981d: function(arg0) { |
| 557 | const ret = arg0.getRootNode(); |
| 558 | return ret; |
| 559 | }, |
| 560 | __wbg_getShaderInfoLog_3cfe5b3e097d0f2d: function(arg0, arg1, arg2) { |
| 561 | const ret = arg1.getShaderInfoLog(arg2); |
| 562 | var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 563 | var len1 = WASM_VECTOR_LEN; |
| 564 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 565 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 566 | }, |
| 567 | __wbg_getShaderInfoLog_8758e8aea7960121: function(arg0, arg1, arg2) { |
| 568 | const ret = arg1.getShaderInfoLog(arg2); |
| 569 | var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 570 | var len1 = WASM_VECTOR_LEN; |
| 571 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 572 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 573 | }, |
| 574 | __wbg_getShaderParameter_a346f74d5ba41c4b: function(arg0, arg1, arg2) { |
| 575 | const ret = arg0.getShaderParameter(arg1, arg2 >>> 0); |
| 576 | return ret; |
| 577 | }, |
| 578 | __wbg_getShaderParameter_fc64069fbc010d19: function(arg0, arg1, arg2) { |
| 579 | const ret = arg0.getShaderParameter(arg1, arg2 >>> 0); |
| 580 | return ret; |
| 581 | }, |
| 582 | __wbg_getSupportedExtensions_3cf028ec80655a75: function(arg0) { |
| 583 | const ret = arg0.getSupportedExtensions(); |
| 584 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 585 | }, |
| 586 | __wbg_getSupportedExtensions_f48b337512e8f8ce: function(arg0) { |
| 587 | const ret = arg0.getSupportedExtensions(); |
| 588 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 589 | }, |
| 590 | __wbg_getUniformLocation_6352e0669c8f5393: function(arg0, arg1, arg2, arg3) { |
| 591 | const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3)); |
| 592 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 593 | }, |
| 594 | __wbg_getUniformLocation_e0d11c86376cdd26: function(arg0, arg1, arg2, arg3) { |
| 595 | const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3)); |
| 596 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 597 | }, |
| 598 | __wbg_get_2080c49015e35254: function() { return handleError(function (arg0, arg1) { |
| 599 | const ret = Reflect.get(arg0, arg1); |
| 600 | return ret; |
| 601 | }, arguments); }, |
| 602 | __wbg_get_635eea311fa1a291: function() { return handleError(function (arg0, arg1) { |
| 603 | const ret = Reflect.get(arg0, arg1); |
| 604 | return ret; |
| 605 | }, arguments); }, |
| 606 | __wbg_get_955bde2b2fe2defa: function(arg0, arg1) { |
| 607 | const ret = arg0[arg1 >>> 0]; |
| 608 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 609 | }, |
| 610 | __wbg_get_a1361571ec6a08ad: function(arg0, arg1) { |
| 611 | const ret = arg0[arg1 >>> 0]; |
| 612 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 613 | }, |
| 614 | __wbg_get_c69af7448e1ad5c0: function(arg0, arg1) { |
| 615 | const ret = arg0[arg1 >>> 0]; |
| 616 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 617 | }, |
| 618 | __wbg_get_unchecked_e6325ad374eff861: function(arg0, arg1) { |
| 619 | const ret = arg0[arg1 >>> 0]; |
| 620 | return ret; |
| 621 | }, |
| 622 | __wbg_hash_20c2dd23244d8e75: function() { return handleError(function (arg0, arg1) { |
| 623 | const ret = arg1.hash; |
| 624 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 625 | const len1 = WASM_VECTOR_LEN; |
| 626 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 627 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 628 | }, arguments); }, |
| 629 | __wbg_headers_5fc0106c076eb731: function(arg0) { |
| 630 | const ret = arg0.headers; |
| 631 | return ret; |
| 632 | }, |
| 633 | __wbg_headers_9ef80dd266706f48: function(arg0) { |
| 634 | const ret = arg0.headers; |
| 635 | return ret; |
| 636 | }, |
| 637 | __wbg_height_4e985809fcad22ec: function(arg0) { |
| 638 | const ret = arg0.height; |
| 639 | return ret; |
| 640 | }, |
| 641 | __wbg_height_ac6f1c3f49c13fe2: function(arg0) { |
| 642 | const ret = arg0.height; |
| 643 | return ret; |
| 644 | }, |
| 645 | __wbg_height_ce5f2b5901ba05ab: function(arg0) { |
| 646 | const ret = arg0.height; |
| 647 | return ret; |
| 648 | }, |
| 649 | __wbg_hidden_34dfd3711ef53b31: function(arg0) { |
| 650 | const ret = arg0.hidden; |
| 651 | return ret; |
| 652 | }, |
| 653 | __wbg_host_0832e2670dc79e53: function() { return handleError(function (arg0, arg1) { |
| 654 | const ret = arg1.host; |
| 655 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 656 | const len1 = WASM_VECTOR_LEN; |
| 657 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 658 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 659 | }, arguments); }, |
| 660 | __wbg_hostname_e42e6cb425d7924e: function() { return handleError(function (arg0, arg1) { |
| 661 | const ret = arg1.hostname; |
| 662 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 663 | const len1 = WASM_VECTOR_LEN; |
| 664 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 665 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 666 | }, arguments); }, |
| 667 | __wbg_href_a0128fb7c568d8e5: function() { return handleError(function (arg0, arg1) { |
| 668 | const ret = arg1.href; |
| 669 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 670 | const len1 = WASM_VECTOR_LEN; |
| 671 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 672 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 673 | }, arguments); }, |
| 674 | __wbg_id_2aec05cae0b5abeb: function(arg0, arg1) { |
| 675 | const ret = arg1.id; |
| 676 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 677 | const len1 = WASM_VECTOR_LEN; |
| 678 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 679 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 680 | }, |
| 681 | __wbg_identifier_a3f04561174d66d3: function(arg0) { |
| 682 | const ret = arg0.identifier; |
| 683 | return ret; |
| 684 | }, |
| 685 | __wbg_inlineSize_0be24bd91656e021: function(arg0) { |
| 686 | const ret = arg0.inlineSize; |
| 687 | return ret; |
| 688 | }, |
| 689 | __wbg_inputType_871ec3c14b5b9f6a: function(arg0, arg1) { |
| 690 | const ret = arg1.inputType; |
| 691 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 692 | const len1 = WASM_VECTOR_LEN; |
| 693 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 694 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 695 | }, |
| 696 | __wbg_insertBefore_10ab0c19b463c12b: function() { return handleError(function (arg0, arg1, arg2) { |
| 697 | const ret = arg0.insertBefore(arg1, arg2); |
| 698 | return ret; |
| 699 | }, arguments); }, |
| 700 | __wbg_instanceof_CanvasRenderingContext2d_72a60be8aaadecab: function(arg0) { |
| 701 | let result; |
| 702 | try { |
| 703 | result = arg0 instanceof CanvasRenderingContext2D; |
| 704 | } catch (_) { |
| 705 | result = false; |
| 706 | } |
| 707 | const ret = result; |
| 708 | return ret; |
| 709 | }, |
| 710 | __wbg_instanceof_Document_b3d3a5e7905b4a2f: function(arg0) { |
| 711 | let result; |
| 712 | try { |
| 713 | result = arg0 instanceof Document; |
| 714 | } catch (_) { |
| 715 | result = false; |
| 716 | } |
| 717 | const ret = result; |
| 718 | return ret; |
| 719 | }, |
| 720 | __wbg_instanceof_Element_05dbb22ded594343: function(arg0) { |
| 721 | let result; |
| 722 | try { |
| 723 | result = arg0 instanceof Element; |
| 724 | } catch (_) { |
| 725 | result = false; |
| 726 | } |
| 727 | const ret = result; |
| 728 | return ret; |
| 729 | }, |
| 730 | __wbg_instanceof_HtmlCanvasElement_89f280683e987b9e: function(arg0) { |
| 731 | let result; |
| 732 | try { |
| 733 | result = arg0 instanceof HTMLCanvasElement; |
| 734 | } catch (_) { |
| 735 | result = false; |
| 736 | } |
| 737 | const ret = result; |
| 738 | return ret; |
| 739 | }, |
| 740 | __wbg_instanceof_HtmlInputElement_28751c98d77a5a65: function(arg0) { |
| 741 | let result; |
| 742 | try { |
| 743 | result = arg0 instanceof HTMLInputElement; |
| 744 | } catch (_) { |
| 745 | result = false; |
| 746 | } |
| 747 | const ret = result; |
| 748 | return ret; |
| 749 | }, |
| 750 | __wbg_instanceof_ResizeObserverEntry_a0c6243afc3437cc: function(arg0) { |
| 751 | let result; |
| 752 | try { |
| 753 | result = arg0 instanceof ResizeObserverEntry; |
| 754 | } catch (_) { |
| 755 | result = false; |
| 756 | } |
| 757 | const ret = result; |
| 758 | return ret; |
| 759 | }, |
| 760 | __wbg_instanceof_ResizeObserverSize_f8702ac4737486d8: function(arg0) { |
| 761 | let result; |
| 762 | try { |
| 763 | result = arg0 instanceof ResizeObserverSize; |
| 764 | } catch (_) { |
| 765 | result = false; |
| 766 | } |
| 767 | const ret = result; |
| 768 | return ret; |
| 769 | }, |
| 770 | __wbg_instanceof_Response_5b0b4f7f1daeae51: function(arg0) { |
| 771 | let result; |
| 772 | try { |
| 773 | result = arg0 instanceof Response; |
| 774 | } catch (_) { |
| 775 | result = false; |
| 776 | } |
| 777 | const ret = result; |
| 778 | return ret; |
| 779 | }, |
| 780 | __wbg_instanceof_ShadowRoot_cd78159e03fed884: function(arg0) { |
| 781 | let result; |
| 782 | try { |
| 783 | result = arg0 instanceof ShadowRoot; |
| 784 | } catch (_) { |
| 785 | result = false; |
| 786 | } |
| 787 | const ret = result; |
| 788 | return ret; |
| 789 | }, |
| 790 | __wbg_instanceof_TypeError_c5c1ddf07436286a: function(arg0) { |
| 791 | let result; |
| 792 | try { |
| 793 | result = arg0 instanceof TypeError; |
| 794 | } catch (_) { |
| 795 | result = false; |
| 796 | } |
| 797 | const ret = result; |
| 798 | return ret; |
| 799 | }, |
| 800 | __wbg_instanceof_WebGl2RenderingContext_de6feb460369d6c6: function(arg0) { |
| 801 | let result; |
| 802 | try { |
| 803 | result = arg0 instanceof WebGL2RenderingContext; |
| 804 | } catch (_) { |
| 805 | result = false; |
| 806 | } |
| 807 | const ret = result; |
| 808 | return ret; |
| 809 | }, |
| 810 | __wbg_instanceof_WebGlRenderingContext_6e70e224f022d27a: function(arg0) { |
| 811 | let result; |
| 812 | try { |
| 813 | result = arg0 instanceof WebGLRenderingContext; |
| 814 | } catch (_) { |
| 815 | result = false; |
| 816 | } |
| 817 | const ret = result; |
| 818 | return ret; |
| 819 | }, |
| 820 | __wbg_instanceof_Window_5cf453f5639aa1a2: function(arg0) { |
| 821 | let result; |
| 822 | try { |
| 823 | result = arg0 instanceof Window; |
| 824 | } catch (_) { |
| 825 | result = false; |
| 826 | } |
| 827 | const ret = result; |
| 828 | return ret; |
| 829 | }, |
| 830 | __wbg_isComposing_4b9450ae90c4e806: function(arg0) { |
| 831 | const ret = arg0.isComposing; |
| 832 | return ret; |
| 833 | }, |
| 834 | __wbg_isComposing_b1e74068b6ff27e2: function(arg0) { |
| 835 | const ret = arg0.isComposing; |
| 836 | return ret; |
| 837 | }, |
| 838 | __wbg_isConnected_c529655b02d009e7: function(arg0) { |
| 839 | const ret = arg0.isConnected; |
| 840 | return ret; |
| 841 | }, |
| 842 | __wbg_isSecureContext_6b3c96e6b1051931: function(arg0) { |
| 843 | const ret = arg0.isSecureContext; |
| 844 | return ret; |
| 845 | }, |
| 846 | __wbg_is_2248ff2b575d60c7: function(arg0, arg1) { |
| 847 | const ret = Object.is(arg0, arg1); |
| 848 | return ret; |
| 849 | }, |
| 850 | __wbg_item_18c413e928250a06: function(arg0, arg1) { |
| 851 | const ret = arg0.item(arg1 >>> 0); |
| 852 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 853 | }, |
| 854 | __wbg_items_37c99e94f307e5a6: function(arg0) { |
| 855 | const ret = arg0.items; |
| 856 | return ret; |
| 857 | }, |
| 858 | __wbg_iterator_e4c5e8f68ada7b58: function() { |
| 859 | const ret = Symbol.iterator; |
| 860 | return ret; |
| 861 | }, |
| 862 | __wbg_keyCode_8de649c9821071f4: function(arg0) { |
| 863 | const ret = arg0.keyCode; |
| 864 | return ret; |
| 865 | }, |
| 866 | __wbg_key_76125a528069feff: function(arg0, arg1) { |
| 867 | const ret = arg1.key; |
| 868 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 869 | const len1 = WASM_VECTOR_LEN; |
| 870 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 871 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 872 | }, |
| 873 | __wbg_left_9df47701ff317a35: function(arg0) { |
| 874 | const ret = arg0.left; |
| 875 | return ret; |
| 876 | }, |
| 877 | __wbg_length_186163212ffe79c3: function(arg0) { |
| 878 | const ret = arg0.length; |
| 879 | return ret; |
| 880 | }, |
| 881 | __wbg_length_5031527eccbd59fd: function(arg0) { |
| 882 | const ret = arg0.length; |
| 883 | return ret; |
| 884 | }, |
| 885 | __wbg_length_694310723930d77e: function(arg0) { |
| 886 | const ret = arg0.length; |
| 887 | return ret; |
| 888 | }, |
| 889 | __wbg_length_b03a0fabb109b1e9: function(arg0) { |
| 890 | const ret = arg0.length; |
| 891 | return ret; |
| 892 | }, |
| 893 | __wbg_length_ee846b4d1e8404a8: function(arg0) { |
| 894 | const ret = arg0.length; |
| 895 | return ret; |
| 896 | }, |
| 897 | __wbg_linkProgram_99848b73f1ebab5f: function(arg0, arg1) { |
| 898 | arg0.linkProgram(arg1); |
| 899 | }, |
| 900 | __wbg_linkProgram_dee7cda98bacb12f: function(arg0, arg1) { |
| 901 | arg0.linkProgram(arg1); |
| 902 | }, |
| 903 | __wbg_localStorage_6827cfe6db14a9f6: function() { return handleError(function (arg0) { |
| 904 | const ret = arg0.localStorage; |
| 905 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 906 | }, arguments); }, |
| 907 | __wbg_location_7320782274fc691b: function(arg0) { |
| 908 | const ret = arg0.location; |
| 909 | return ret; |
| 910 | }, |
| 911 | __wbg_matchMedia_b53687d22ec43649: function() { return handleError(function (arg0, arg1, arg2) { |
| 912 | const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2)); |
| 913 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 914 | }, arguments); }, |
| 915 | __wbg_matches_a47c420646498c64: function(arg0) { |
| 916 | const ret = arg0.matches; |
| 917 | return ret; |
| 918 | }, |
| 919 | __wbg_measureText_d831259b682a3f7d: function() { return handleError(function (arg0, arg1, arg2) { |
| 920 | const ret = arg0.measureText(getStringFromWasm0(arg1, arg2)); |
| 921 | return ret; |
| 922 | }, arguments); }, |
| 923 | __wbg_metaKey_33c588e07fd74724: function(arg0) { |
| 924 | const ret = arg0.metaKey; |
| 925 | return ret; |
| 926 | }, |
| 927 | __wbg_metaKey_34b378e7ba352fd6: function(arg0) { |
| 928 | const ret = arg0.metaKey; |
| 929 | return ret; |
| 930 | }, |
| 931 | __wbg_name_f721590be23206c9: function(arg0, arg1) { |
| 932 | const ret = arg1.name; |
| 933 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 934 | const len1 = WASM_VECTOR_LEN; |
| 935 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 936 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 937 | }, |
| 938 | __wbg_navigator_c17f443a6fe5d38d: function(arg0) { |
| 939 | const ret = arg0.navigator; |
| 940 | return ret; |
| 941 | }, |
| 942 | __wbg_new_13de428334042d26: function(arg0) { |
| 943 | const ret = new Uint8Array(arg0); |
| 944 | return ret; |
| 945 | }, |
| 946 | __wbg_new_37eb45aaf5eeb820: function() { |
| 947 | const ret = new Array(); |
| 948 | return ret; |
| 949 | }, |
| 950 | __wbg_new_a74ad27926e5c1d8: function() { |
| 951 | const ret = new Error(); |
| 952 | return ret; |
| 953 | }, |
| 954 | __wbg_new_bdf613c6b0b3d702: function() { return handleError(function (arg0) { |
| 955 | const ret = new ResizeObserver(arg0); |
| 956 | return ret; |
| 957 | }, arguments); }, |
| 958 | __wbg_new_cd4348290afae586: function() { |
| 959 | const ret = new Object(); |
| 960 | return ret; |
| 961 | }, |
| 962 | __wbg_new_from_slice_b8daf545a41c6aa0: function(arg0, arg1) { |
| 963 | const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1)); |
| 964 | return ret; |
| 965 | }, |
| 966 | __wbg_new_with_record_from_str_to_blob_promise_ecd5efb169d8daf2: function() { return handleError(function (arg0) { |
| 967 | const ret = new ClipboardItem(arg0); |
| 968 | return ret; |
| 969 | }, arguments); }, |
| 970 | __wbg_new_with_str_and_init_d9f6b5611184e16b: function() { return handleError(function (arg0, arg1, arg2) { |
| 971 | const ret = new Request(getStringFromWasm0(arg0, arg1), arg2); |
| 972 | return ret; |
| 973 | }, arguments); }, |
| 974 | __wbg_new_with_u8_array_sequence_and_options_ca80bf9b8bbc67cf: function() { return handleError(function (arg0, arg1) { |
| 975 | const ret = new Blob(arg0, arg1); |
| 976 | return ret; |
| 977 | }, arguments); }, |
| 978 | __wbg_nextSibling_91136dc7a8ec9b09: function(arg0) { |
| 979 | const ret = arg0.nextSibling; |
| 980 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 981 | }, |
| 982 | __wbg_next_178c1651c11432b3: function(arg0) { |
| 983 | const ret = arg0.next; |
| 984 | return ret; |
| 985 | }, |
| 986 | __wbg_next_af5ac6a08bb0a717: function() { return handleError(function (arg0) { |
| 987 | const ret = arg0.next(); |
| 988 | return ret; |
| 989 | }, arguments); }, |
| 990 | __wbg_now_043d245551b22f9c: function(arg0) { |
| 991 | const ret = arg0.now(); |
| 992 | return ret; |
| 993 | }, |
| 994 | __wbg_now_e7c6795a7f81e10f: function(arg0) { |
| 995 | const ret = arg0.now(); |
| 996 | return ret; |
| 997 | }, |
| 998 | __wbg_observe_2ffc8a70dc1147d1: function(arg0, arg1, arg2) { |
| 999 | arg0.observe(arg1, arg2); |
| 1000 | }, |
| 1001 | __wbg_of_027eb15371aac932: function(arg0) { |
| 1002 | const ret = Array.of(arg0); |
| 1003 | return ret; |
| 1004 | }, |
| 1005 | __wbg_offsetLeft_92a24794573f070b: function(arg0) { |
| 1006 | const ret = arg0.offsetLeft; |
| 1007 | return ret; |
| 1008 | }, |
| 1009 | __wbg_offsetTop_18b5450f7d71de7f: function(arg0) { |
| 1010 | const ret = arg0.offsetTop; |
| 1011 | return ret; |
| 1012 | }, |
| 1013 | __wbg_ok_670a05555db5f713: function(arg0) { |
| 1014 | const ret = arg0.ok; |
| 1015 | return ret; |
| 1016 | }, |
| 1017 | __wbg_open_25109992994e4492: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { |
| 1018 | const ret = arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); |
| 1019 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 1020 | }, arguments); }, |
| 1021 | __wbg_origin_dafa41a3ee9236b1: function() { return handleError(function (arg0, arg1) { |
| 1022 | const ret = arg1.origin; |
| 1023 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1024 | const len1 = WASM_VECTOR_LEN; |
| 1025 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1026 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1027 | }, arguments); }, |
| 1028 | __wbg_ownerDocument_adefd47fd596fe80: function(arg0) { |
| 1029 | const ret = arg0.ownerDocument; |
| 1030 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 1031 | }, |
| 1032 | __wbg_parentNode_fe15bcc26df42856: function(arg0) { |
| 1033 | const ret = arg0.parentNode; |
| 1034 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 1035 | }, |
| 1036 | __wbg_performance_50e6a3f8dc80bbca: function(arg0) { |
| 1037 | const ret = arg0.performance; |
| 1038 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 1039 | }, |
| 1040 | __wbg_performance_7e4e4494fdc9d07a: function(arg0) { |
| 1041 | const ret = arg0.performance; |
| 1042 | return ret; |
| 1043 | }, |
| 1044 | __wbg_pixelStorei_43dc7945a0d4d49c: function(arg0, arg1, arg2) { |
| 1045 | arg0.pixelStorei(arg1 >>> 0, arg2); |
| 1046 | }, |
| 1047 | __wbg_pixelStorei_6dd56b4da047c480: function(arg0, arg1, arg2) { |
| 1048 | arg0.pixelStorei(arg1 >>> 0, arg2); |
| 1049 | }, |
| 1050 | __wbg_port_114bc900ca0e4c6d: function() { return handleError(function (arg0, arg1) { |
| 1051 | const ret = arg1.port; |
| 1052 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1053 | const len1 = WASM_VECTOR_LEN; |
| 1054 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1055 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1056 | }, arguments); }, |
| 1057 | __wbg_preventDefault_cfb06b02e7406899: function(arg0) { |
| 1058 | arg0.preventDefault(); |
| 1059 | }, |
| 1060 | __wbg_protocol_c60aedf8a6fa9fca: function() { return handleError(function (arg0, arg1) { |
| 1061 | const ret = arg1.protocol; |
| 1062 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1063 | const len1 = WASM_VECTOR_LEN; |
| 1064 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1065 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1066 | }, arguments); }, |
| 1067 | __wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) { |
| 1068 | Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2); |
| 1069 | }, |
| 1070 | __wbg_push_c9f4893fc209f768: function(arg0, arg1) { |
| 1071 | const ret = arg0.push(arg1); |
| 1072 | return ret; |
| 1073 | }, |
| 1074 | __wbg_queueMicrotask_1e8503a8a690f0a3: function(arg0) { |
| 1075 | const ret = arg0.queueMicrotask; |
| 1076 | return ret; |
| 1077 | }, |
| 1078 | __wbg_queueMicrotask_4a1a4d8dd332373b: function(arg0) { |
| 1079 | queueMicrotask(arg0); |
| 1080 | }, |
| 1081 | __wbg_readPixels_22316d250d820aff: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { |
| 1082 | arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7); |
| 1083 | }, arguments); }, |
| 1084 | __wbg_readPixels_56a96c4d106afcbc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { |
| 1085 | arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7); |
| 1086 | }, arguments); }, |
| 1087 | __wbg_readPixels_7c7b54a733248182: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) { |
| 1088 | arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7); |
| 1089 | }, arguments); }, |
| 1090 | __wbg_removeEventListener_4e20bd5fac3de092: function() { return handleError(function (arg0, arg1, arg2, arg3) { |
| 1091 | arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3); |
| 1092 | }, arguments); }, |
| 1093 | __wbg_removeItem_6db621e167d16a1c: function() { return handleError(function (arg0, arg1, arg2) { |
| 1094 | arg0.removeItem(getStringFromWasm0(arg1, arg2)); |
| 1095 | }, arguments); }, |
| 1096 | __wbg_removeProperty_24e2a492b137f2d7: function() { return handleError(function (arg0, arg1, arg2, arg3) { |
| 1097 | const ret = arg1.removeProperty(getStringFromWasm0(arg2, arg3)); |
| 1098 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1099 | const len1 = WASM_VECTOR_LEN; |
| 1100 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1101 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1102 | }, arguments); }, |
| 1103 | __wbg_remove_8228e91d7ddbc755: function(arg0) { |
| 1104 | arg0.remove(); |
| 1105 | }, |
| 1106 | __wbg_requestAnimationFrame_9ba49d36a19ca83c: function() { return handleError(function (arg0, arg1) { |
| 1107 | const ret = arg0.requestAnimationFrame(arg1); |
| 1108 | return ret; |
| 1109 | }, arguments); }, |
| 1110 | __wbg_resolve_dbf78ab4942478b0: function(arg0) { |
| 1111 | const ret = Promise.resolve(arg0); |
| 1112 | return ret; |
| 1113 | }, |
| 1114 | __wbg_right_87f14139bda7986d: function(arg0) { |
| 1115 | const ret = arg0.right; |
| 1116 | return ret; |
| 1117 | }, |
| 1118 | __wbg_scissor_17956d9d23dfe025: function(arg0, arg1, arg2, arg3, arg4) { |
| 1119 | arg0.scissor(arg1, arg2, arg3, arg4); |
| 1120 | }, |
| 1121 | __wbg_scissor_bb7201f050f220ac: function(arg0, arg1, arg2, arg3, arg4) { |
| 1122 | arg0.scissor(arg1, arg2, arg3, arg4); |
| 1123 | }, |
| 1124 | __wbg_search_b8ba44c19bb02b19: function() { return handleError(function (arg0, arg1) { |
| 1125 | const ret = arg1.search; |
| 1126 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1127 | const len1 = WASM_VECTOR_LEN; |
| 1128 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1129 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1130 | }, arguments); }, |
| 1131 | __wbg_selectionEnd_785eea54e3259c55: function() { return handleError(function (arg0) { |
| 1132 | const ret = arg0.selectionEnd; |
| 1133 | return isLikeNone(ret) ? Number.MAX_SAFE_INTEGER : (ret) >>> 0; |
| 1134 | }, arguments); }, |
| 1135 | __wbg_selectionStart_e1929323816eb3da: function() { return handleError(function (arg0) { |
| 1136 | const ret = arg0.selectionStart; |
| 1137 | return isLikeNone(ret) ? Number.MAX_SAFE_INTEGER : (ret) >>> 0; |
| 1138 | }, arguments); }, |
| 1139 | __wbg_setAttribute_f75317b2b5cabfb4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { |
| 1140 | arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); |
| 1141 | }, arguments); }, |
| 1142 | __wbg_setItem_cfa3cb31f271776a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { |
| 1143 | arg0.setItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); |
| 1144 | }, arguments); }, |
| 1145 | __wbg_setProperty_3fe74e09d53acb0b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { |
| 1146 | arg0.setProperty(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); |
| 1147 | }, arguments); }, |
| 1148 | __wbg_setTimeout_9ef22b48643bd7de: function() { return handleError(function (arg0, arg1, arg2) { |
| 1149 | const ret = arg0.setTimeout(arg1, arg2); |
| 1150 | return ret; |
| 1151 | }, arguments); }, |
| 1152 | __wbg_set_2793479888329cb6: function() { return handleError(function (arg0, arg1, arg2) { |
| 1153 | const ret = Reflect.set(arg0, arg1, arg2); |
| 1154 | return ret; |
| 1155 | }, arguments); }, |
| 1156 | __wbg_set_bcb0ec2400cfa22e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { |
| 1157 | arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); |
| 1158 | }, arguments); }, |
| 1159 | __wbg_set_body_877d5251e78ca815: function(arg0, arg1) { |
| 1160 | arg0.body = arg1; |
| 1161 | }, |
| 1162 | __wbg_set_box_fc386a28d2eedbf8: function(arg0, arg1) { |
| 1163 | arg0.box = __wbindgen_enum_ResizeObserverBoxOptions[arg1]; |
| 1164 | }, |
| 1165 | __wbg_set_credentials_bb5277b4006149d4: function(arg0, arg1) { |
| 1166 | arg0.credentials = __wbindgen_enum_RequestCredentials[arg1]; |
| 1167 | }, |
| 1168 | __wbg_set_fillStyle_95fde67582a9c695: function(arg0, arg1, arg2) { |
| 1169 | arg0.fillStyle = getStringFromWasm0(arg1, arg2); |
| 1170 | }, |
| 1171 | __wbg_set_font_aa0c0c514c73a5fa: function(arg0, arg1, arg2) { |
| 1172 | arg0.font = getStringFromWasm0(arg1, arg2); |
| 1173 | }, |
| 1174 | __wbg_set_height_ae0610d318c3428c: function(arg0, arg1) { |
| 1175 | arg0.height = arg1 >>> 0; |
| 1176 | }, |
| 1177 | __wbg_set_method_639e69af35614d36: function(arg0, arg1, arg2) { |
| 1178 | arg0.method = getStringFromWasm0(arg1, arg2); |
| 1179 | }, |
| 1180 | __wbg_set_mode_07e051ad8b4e2126: function(arg0, arg1) { |
| 1181 | arg0.mode = __wbindgen_enum_RequestMode[arg1]; |
| 1182 | }, |
| 1183 | __wbg_set_once_ee3e8ed5823add1f: function(arg0, arg1) { |
| 1184 | arg0.once = arg1 !== 0; |
| 1185 | }, |
| 1186 | __wbg_set_prevent_scroll_1d8392770c4be456: function(arg0, arg1) { |
| 1187 | arg0.preventScroll = arg1 !== 0; |
| 1188 | }, |
| 1189 | __wbg_set_tabIndex_38e2c0c2e76c66c5: function(arg0, arg1) { |
| 1190 | arg0.tabIndex = arg1; |
| 1191 | }, |
| 1192 | __wbg_set_textBaseline_ff2e3c5c84684b23: function(arg0, arg1, arg2) { |
| 1193 | arg0.textBaseline = getStringFromWasm0(arg1, arg2); |
| 1194 | }, |
| 1195 | __wbg_set_type_609b0cea6429d7bb: function(arg0, arg1, arg2) { |
| 1196 | arg0.type = getStringFromWasm0(arg1, arg2); |
| 1197 | }, |
| 1198 | __wbg_set_type_9f32b0fcce9b6bbd: function(arg0, arg1, arg2) { |
| 1199 | arg0.type = getStringFromWasm0(arg1, arg2); |
| 1200 | }, |
| 1201 | __wbg_set_value_cb7e77c93a95e491: function(arg0, arg1, arg2) { |
| 1202 | arg0.value = getStringFromWasm0(arg1, arg2); |
| 1203 | }, |
| 1204 | __wbg_set_width_5f89a551b5472887: function(arg0, arg1) { |
| 1205 | arg0.width = arg1 >>> 0; |
| 1206 | }, |
| 1207 | __wbg_shaderSource_519d0f56b613b2f9: function(arg0, arg1, arg2, arg3) { |
| 1208 | arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3)); |
| 1209 | }, |
| 1210 | __wbg_shaderSource_c4c06a3cbc2e7bf3: function(arg0, arg1, arg2, arg3) { |
| 1211 | arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3)); |
| 1212 | }, |
| 1213 | __wbg_shiftKey_6a84be2563ae8a55: function(arg0) { |
| 1214 | const ret = arg0.shiftKey; |
| 1215 | return ret; |
| 1216 | }, |
| 1217 | __wbg_shiftKey_a6ce93ef743d5834: function(arg0) { |
| 1218 | const ret = arg0.shiftKey; |
| 1219 | return ret; |
| 1220 | }, |
| 1221 | __wbg_size_9d1084e29743663c: function(arg0) { |
| 1222 | const ret = arg0.size; |
| 1223 | return ret; |
| 1224 | }, |
| 1225 | __wbg_slice_984d22ab53865879: function(arg0, arg1) { |
| 1226 | const ret = arg1.slice(); |
| 1227 | const ptr1 = passArrayJsValueToWasm0(ret, wasm.__wbindgen_export); |
| 1228 | const len1 = WASM_VECTOR_LEN; |
| 1229 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1230 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1231 | }, |
| 1232 | __wbg_stack_7621a5539ce0a6a8: function(arg0, arg1) { |
| 1233 | const ret = arg1.stack; |
| 1234 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1235 | const len1 = WASM_VECTOR_LEN; |
| 1236 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1237 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1238 | }, |
| 1239 | __wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc: function() { |
| 1240 | const ret = typeof globalThis === 'undefined' ? undefined : globalThis; |
| 1241 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 1242 | }, |
| 1243 | __wbg_static_accessor_GLOBAL_e4293fb22cbe77da: function() { |
| 1244 | const ret = typeof global === 'undefined' ? undefined : global; |
| 1245 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 1246 | }, |
| 1247 | __wbg_static_accessor_SELF_53bb20457401453d: function() { |
| 1248 | const ret = typeof self === 'undefined' ? undefined : self; |
| 1249 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 1250 | }, |
| 1251 | __wbg_static_accessor_WINDOW_b5e0810bfecb7feb: function() { |
| 1252 | const ret = typeof window === 'undefined' ? undefined : window; |
| 1253 | return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); |
| 1254 | }, |
| 1255 | __wbg_statusText_f5d9635edef1913e: function(arg0, arg1) { |
| 1256 | const ret = arg1.statusText; |
| 1257 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1258 | const len1 = WASM_VECTOR_LEN; |
| 1259 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1260 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1261 | }, |
| 1262 | __wbg_status_cb85b6c8d1769fa1: function(arg0) { |
| 1263 | const ret = arg0.status; |
| 1264 | return ret; |
| 1265 | }, |
| 1266 | __wbg_stopPropagation_e4181c041abda4c3: function(arg0) { |
| 1267 | arg0.stopPropagation(); |
| 1268 | }, |
| 1269 | __wbg_style_f499e599ac70277f: function(arg0) { |
| 1270 | const ret = arg0.style; |
| 1271 | return ret; |
| 1272 | }, |
| 1273 | __wbg_tagName_775bb05619a5c52f: function(arg0, arg1) { |
| 1274 | const ret = arg1.tagName; |
| 1275 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1276 | const len1 = WASM_VECTOR_LEN; |
| 1277 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1278 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1279 | }, |
| 1280 | __wbg_texImage2D_20b5002326193fe6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { |
| 1281 | arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); |
| 1282 | }, arguments); }, |
| 1283 | __wbg_texImage2D_5048d2cd8540da16: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { |
| 1284 | arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); |
| 1285 | }, arguments); }, |
| 1286 | __wbg_texImage2D_84bdef619a1ea935: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { |
| 1287 | arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); |
| 1288 | }, arguments); }, |
| 1289 | __wbg_texParameteri_0afc5d515132fed2: function(arg0, arg1, arg2, arg3) { |
| 1290 | arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3); |
| 1291 | }, |
| 1292 | __wbg_texParameteri_e24e4fdc17153838: function(arg0, arg1, arg2, arg3) { |
| 1293 | arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3); |
| 1294 | }, |
| 1295 | __wbg_texSubImage2D_4343af4633b8b8f8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { |
| 1296 | arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); |
| 1297 | }, arguments); }, |
| 1298 | __wbg_texSubImage2D_4aef07460a86c81e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { |
| 1299 | arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); |
| 1300 | }, arguments); }, |
| 1301 | __wbg_texSubImage2D_a26a8700e734449a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) { |
| 1302 | arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9); |
| 1303 | }, arguments); }, |
| 1304 | __wbg_then_656f253a5dd7d8ea: function(arg0, arg1, arg2) { |
| 1305 | const ret = arg0.then(arg1, arg2); |
| 1306 | return ret; |
| 1307 | }, |
| 1308 | __wbg_then_e3f7f2d365708be8: function(arg0, arg1) { |
| 1309 | const ret = arg0.then(arg1); |
| 1310 | return ret; |
| 1311 | }, |
| 1312 | __wbg_top_2d45cda4e060d8bf: function(arg0) { |
| 1313 | const ret = arg0.top; |
| 1314 | return ret; |
| 1315 | }, |
| 1316 | __wbg_touches_3e4459518c751cbf: function(arg0) { |
| 1317 | const ret = arg0.touches; |
| 1318 | return ret; |
| 1319 | }, |
| 1320 | __wbg_type_7fa681d1ded98131: function(arg0, arg1) { |
| 1321 | const ret = arg1.type; |
| 1322 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1323 | const len1 = WASM_VECTOR_LEN; |
| 1324 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1325 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1326 | }, |
| 1327 | __wbg_uniform1i_385ebc488d4d763f: function(arg0, arg1, arg2) { |
| 1328 | arg0.uniform1i(arg1, arg2); |
| 1329 | }, |
| 1330 | __wbg_uniform1i_778a02a48ecdceed: function(arg0, arg1, arg2) { |
| 1331 | arg0.uniform1i(arg1, arg2); |
| 1332 | }, |
| 1333 | __wbg_uniform2f_6bd82d6e7f81060b: function(arg0, arg1, arg2, arg3) { |
| 1334 | arg0.uniform2f(arg1, arg2, arg3); |
| 1335 | }, |
| 1336 | __wbg_uniform2f_7e4c627c4106dd3f: function(arg0, arg1, arg2, arg3) { |
| 1337 | arg0.uniform2f(arg1, arg2, arg3); |
| 1338 | }, |
| 1339 | __wbg_url_9fadea28ec624f1d: function(arg0, arg1) { |
| 1340 | const ret = arg1.url; |
| 1341 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1342 | const len1 = WASM_VECTOR_LEN; |
| 1343 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1344 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1345 | }, |
| 1346 | __wbg_useProgram_d9c24a7d8632c4c1: function(arg0, arg1) { |
| 1347 | arg0.useProgram(arg1); |
| 1348 | }, |
| 1349 | __wbg_useProgram_f6341ea2eeea1e5a: function(arg0, arg1) { |
| 1350 | arg0.useProgram(arg1); |
| 1351 | }, |
| 1352 | __wbg_userAgent_a20b4771d027eeaa: function() { return handleError(function (arg0, arg1) { |
| 1353 | const ret = arg1.userAgent; |
| 1354 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1355 | const len1 = WASM_VECTOR_LEN; |
| 1356 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1357 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1358 | }, arguments); }, |
| 1359 | __wbg_value_df0a0e29a4d182fe: function(arg0, arg1) { |
| 1360 | const ret = arg1.value; |
| 1361 | const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2); |
| 1362 | const len1 = WASM_VECTOR_LEN; |
| 1363 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true); |
| 1364 | getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true); |
| 1365 | }, |
| 1366 | __wbg_value_e0f328965e184931: function(arg0) { |
| 1367 | const ret = arg0.value; |
| 1368 | return ret; |
| 1369 | }, |
| 1370 | __wbg_vertexAttribPointer_39b706eb26c50057: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { |
| 1371 | arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6); |
| 1372 | }, |
| 1373 | __wbg_vertexAttribPointer_9e0e4517b8d274bd: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) { |
| 1374 | arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6); |
| 1375 | }, |
| 1376 | __wbg_viewport_aaac6dd8cff1831a: function(arg0, arg1, arg2, arg3, arg4) { |
| 1377 | arg0.viewport(arg1, arg2, arg3, arg4); |
| 1378 | }, |
| 1379 | __wbg_viewport_cdae9e8b2f33343d: function(arg0, arg1, arg2, arg3, arg4) { |
| 1380 | arg0.viewport(arg1, arg2, arg3, arg4); |
| 1381 | }, |
| 1382 | __wbg_width_28f5533f1b3b5abc: function(arg0) { |
| 1383 | const ret = arg0.width; |
| 1384 | return ret; |
| 1385 | }, |
| 1386 | __wbg_width_b81b030bc60498d5: function(arg0) { |
| 1387 | const ret = arg0.width; |
| 1388 | return ret; |
| 1389 | }, |
| 1390 | __wbg_width_babc5dc7654771b1: function(arg0) { |
| 1391 | const ret = arg0.width; |
| 1392 | return ret; |
| 1393 | }, |
| 1394 | __wbg_width_d3c8d417d821d2fd: function(arg0) { |
| 1395 | const ret = arg0.width; |
| 1396 | return ret; |
| 1397 | }, |
| 1398 | __wbg_writeText_6b6a85b68a7dd3eb: function(arg0, arg1, arg2) { |
| 1399 | const ret = arg0.writeText(getStringFromWasm0(arg1, arg2)); |
| 1400 | return ret; |
| 1401 | }, |
| 1402 | __wbg_write_e913e5c019572491: function(arg0, arg1) { |
| 1403 | const ret = arg0.write(arg1); |
| 1404 | return ret; |
| 1405 | }, |
| 1406 | __wbindgen_generic_0000000000000001: function(arg0, arg1) { |
| 1407 | // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 864, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`. |
| 1408 | const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4344); |
| 1409 | return ret; |
| 1410 | }, |
| 1411 | __wbindgen_generic_0000000000000002: function(arg0, arg1) { |
| 1412 | // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 96, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. |
| 1413 | const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_635); |
| 1414 | return ret; |
| 1415 | }, |
| 1416 | __wbindgen_generic_0000000000000003: function(arg0, arg1) { |
| 1417 | // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 96, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. |
| 1418 | const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_635_3); |
| 1419 | return ret; |
| 1420 | }, |
| 1421 | __wbindgen_generic_0000000000000004: function(arg0, arg1) { |
| 1422 | // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 120, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`. |
| 1423 | const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_637); |
| 1424 | return ret; |
| 1425 | }, |
| 1426 | __wbindgen_generic_0000000000000005: function(arg0, arg1) { |
| 1427 | // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`. |
| 1428 | const ret = getArrayF32FromWasm0(arg0, arg1); |
| 1429 | return ret; |
| 1430 | }, |
| 1431 | __wbindgen_generic_0000000000000006: function(arg0, arg1) { |
| 1432 | // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`. |
| 1433 | const ret = getArrayI16FromWasm0(arg0, arg1); |
| 1434 | return ret; |
| 1435 | }, |
| 1436 | __wbindgen_generic_0000000000000007: function(arg0, arg1) { |
| 1437 | // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`. |
| 1438 | const ret = getArrayI32FromWasm0(arg0, arg1); |
| 1439 | return ret; |
| 1440 | }, |
| 1441 | __wbindgen_generic_0000000000000008: function(arg0, arg1) { |
| 1442 | // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`. |
| 1443 | const ret = getArrayI8FromWasm0(arg0, arg1); |
| 1444 | return ret; |
| 1445 | }, |
| 1446 | __wbindgen_generic_0000000000000009: function(arg0, arg1) { |
| 1447 | // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`. |
| 1448 | const ret = getArrayU16FromWasm0(arg0, arg1); |
| 1449 | return ret; |
| 1450 | }, |
| 1451 | __wbindgen_generic_000000000000000a: function(arg0, arg1) { |
| 1452 | // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`. |
| 1453 | const ret = getArrayU32FromWasm0(arg0, arg1); |
| 1454 | return ret; |
| 1455 | }, |
| 1456 | __wbindgen_generic_000000000000000b: function(arg0, arg1) { |
| 1457 | // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`. |
| 1458 | const ret = getArrayU8FromWasm0(arg0, arg1); |
| 1459 | return ret; |
| 1460 | }, |
| 1461 | __wbindgen_generic_000000000000000c: function(arg0, arg1) { |
| 1462 | // Cast intrinsic for `Ref(String) -> Externref`. |
| 1463 | const ret = getStringFromWasm0(arg0, arg1); |
| 1464 | return ret; |
| 1465 | }, |
| 1466 | __wbindgen_init_externref_table: function() { |
| 1467 | const table = wasm.__wbindgen_externrefs; |
| 1468 | table.set(0, undefined); |
| 1469 | table.set(1024, undefined); |
| 1470 | table.set(1025, null); |
| 1471 | table.set(1026, true); |
| 1472 | table.set(1027, false); |
| 1473 | }, |
| 1474 | }; |
| 1475 | return { |
| 1476 | __proto__: null, |
| 1477 | "./clearwake_bg.js": import0, |
| 1478 | }; |
| 1479 | } |
| 1480 | |
| 1481 | function __wasm_bindgen_func_elem_635(arg0, arg1, arg2) { |
| 1482 | wasm.__wasm_bindgen_func_elem_635(arg0, arg1, arg2); |
| 1483 | } |
| 1484 | |
| 1485 | function __wasm_bindgen_func_elem_635_3(arg0, arg1, arg2) { |
| 1486 | wasm.__wasm_bindgen_func_elem_635_3(arg0, arg1, arg2); |
| 1487 | } |
| 1488 | |
| 1489 | function __wasm_bindgen_func_elem_637(arg0, arg1) { |
| 1490 | try { |
| 1491 | const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0; |
| 1492 | wasm.__wasm_bindgen_func_elem_637(retptr, arg0, arg1); |
| 1493 | var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); |
| 1494 | var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); |
| 1495 | if (r1) { |
| 1496 | throw takeFromExternrefTable0(r0); |
| 1497 | } |
| 1498 | } finally { |
| 1499 | wasm.__wbindgen_add_to_stack_pointer(16); |
| 1500 | } |
| 1501 | } |
| 1502 | |
| 1503 | function __wasm_bindgen_func_elem_4344(arg0, arg1, arg2) { |
| 1504 | try { |
| 1505 | const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0; |
| 1506 | wasm.__wasm_bindgen_func_elem_4344(retptr, arg0, arg1, arg2); |
| 1507 | var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); |
| 1508 | var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); |
| 1509 | if (r1) { |
| 1510 | throw takeFromExternrefTable0(r0); |
| 1511 | } |
| 1512 | } finally { |
| 1513 | wasm.__wbindgen_add_to_stack_pointer(16); |
| 1514 | } |
| 1515 | } |
| 1516 | |
| 1517 | |
| 1518 | const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"]; |
| 1519 | |
| 1520 | |
| 1521 | const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"]; |
| 1522 | |
| 1523 | |
| 1524 | const __wbindgen_enum_ResizeObserverBoxOptions = ["border-box", "content-box", "device-pixel-content-box"]; |
| 1525 | |
| 1526 | function addToExternrefTable0(obj) { |
| 1527 | const idx = wasm.__wbindgen_export4(); |
| 1528 | wasm.__wbindgen_externrefs.set(idx, obj); |
| 1529 | return idx; |
| 1530 | } |
| 1531 | |
| 1532 | const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') |
| 1533 | ? { register: () => {}, unregister: () => {} } |
| 1534 | : new FinalizationRegistry(state => wasm.__wbindgen_export7(state.a, state.b)); |
| 1535 | |
| 1536 | function debugString(val) { |
| 1537 | switch (typeof val) { |
| 1538 | // primitive types |
| 1539 | case 'number': |
| 1540 | case 'boolean': |
| 1541 | case 'undefined': |
| 1542 | return `${val}`; |
| 1543 | case 'string': |
| 1544 | return JSON.stringify(val); |
| 1545 | case 'bigint': |
| 1546 | return `${val}n`; |
| 1547 | case 'symbol': |
| 1548 | return val.description !== undefined |
| 1549 | ? `Symbol(${val.description})` |
| 1550 | : 'Symbol'; |
| 1551 | case 'function': |
| 1552 | return typeof val.name === 'string' && val.name !== '' |
| 1553 | ? `Function(${val.name})` |
| 1554 | : 'Function'; |
| 1555 | case 'object': { |
| 1556 | if (val === null) { |
| 1557 | return 'null'; |
| 1558 | } |
| 1559 | // objects |
| 1560 | if (Array.isArray(val)) { |
| 1561 | return '[' + Array.from(val, debugString).join(', ') + ']'; |
| 1562 | } |
| 1563 | // errors |
| 1564 | if (val instanceof Error) { |
| 1565 | return `${val.name}: ${val.message}\n${val.stack}`; |
| 1566 | } |
| 1567 | |
| 1568 | const toStringOutput = toString.call(val); |
| 1569 | // Test for built-in |
| 1570 | const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1]; |
| 1571 | |
| 1572 | // Failed to match the standard '[object ClassName]' |
| 1573 | if (className === undefined) { |
| 1574 | return toStringOutput; |
| 1575 | } |
| 1576 | if (className === 'Object') { |
| 1577 | // we're a user defined class or Object |
| 1578 | // JSON.stringify avoids problems with cycles, and is generally much |
| 1579 | // easier than looping through ownProperties of `val`. |
| 1580 | try { |
| 1581 | return 'Object(' + JSON.stringify(val) + ')'; |
| 1582 | } catch (_) { |
| 1583 | return 'Object'; |
| 1584 | } |
| 1585 | } |
| 1586 | // TODO we could test for more things here, like `Set`s and `Map`s. |
| 1587 | return className; |
| 1588 | } |
| 1589 | // Per MDN: 'This list of values is exhaustive.' |
| 1590 | // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description |
| 1591 | } |
| 1592 | } |
| 1593 | |
| 1594 | function getArrayF32FromWasm0(ptr, len) { |
| 1595 | ptr = ptr >>> 0; |
| 1596 | return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len); |
| 1597 | } |
| 1598 | |
| 1599 | function getArrayI16FromWasm0(ptr, len) { |
| 1600 | ptr = ptr >>> 0; |
| 1601 | return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len); |
| 1602 | } |
| 1603 | |
| 1604 | function getArrayI32FromWasm0(ptr, len) { |
| 1605 | ptr = ptr >>> 0; |
| 1606 | return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len); |
| 1607 | } |
| 1608 | |
| 1609 | function getArrayI8FromWasm0(ptr, len) { |
| 1610 | ptr = ptr >>> 0; |
| 1611 | return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); |
| 1612 | } |
| 1613 | |
| 1614 | function getArrayU16FromWasm0(ptr, len) { |
| 1615 | ptr = ptr >>> 0; |
| 1616 | return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len); |
| 1617 | } |
| 1618 | |
| 1619 | function getArrayU32FromWasm0(ptr, len) { |
| 1620 | ptr = ptr >>> 0; |
| 1621 | return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len); |
| 1622 | } |
| 1623 | |
| 1624 | function getArrayU8FromWasm0(ptr, len) { |
| 1625 | ptr = ptr >>> 0; |
| 1626 | return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); |
| 1627 | } |
| 1628 | |
| 1629 | let cachedDataViewMemory0 = null; |
| 1630 | function getDataViewMemory0() { |
| 1631 | if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { |
| 1632 | cachedDataViewMemory0 = new DataView(wasm.memory.buffer); |
| 1633 | } |
| 1634 | return cachedDataViewMemory0; |
| 1635 | } |
| 1636 | |
| 1637 | let cachedFloat32ArrayMemory0 = null; |
| 1638 | function getFloat32ArrayMemory0() { |
| 1639 | if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) { |
| 1640 | cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer); |
| 1641 | } |
| 1642 | return cachedFloat32ArrayMemory0; |
| 1643 | } |
| 1644 | |
| 1645 | let cachedInt16ArrayMemory0 = null; |
| 1646 | function getInt16ArrayMemory0() { |
| 1647 | if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) { |
| 1648 | cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer); |
| 1649 | } |
| 1650 | return cachedInt16ArrayMemory0; |
| 1651 | } |
| 1652 | |
| 1653 | let cachedInt32ArrayMemory0 = null; |
| 1654 | function getInt32ArrayMemory0() { |
| 1655 | if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) { |
| 1656 | cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer); |
| 1657 | } |
| 1658 | return cachedInt32ArrayMemory0; |
| 1659 | } |
| 1660 | |
| 1661 | let cachedInt8ArrayMemory0 = null; |
| 1662 | function getInt8ArrayMemory0() { |
| 1663 | if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) { |
| 1664 | cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer); |
| 1665 | } |
| 1666 | return cachedInt8ArrayMemory0; |
| 1667 | } |
| 1668 | |
| 1669 | function getStringFromWasm0(ptr, len) { |
| 1670 | ptr = ptr >>> 0; |
| 1671 | return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len)); |
| 1672 | } |
| 1673 | |
| 1674 | let cachedUint16ArrayMemory0 = null; |
| 1675 | function getUint16ArrayMemory0() { |
| 1676 | if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) { |
| 1677 | cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer); |
| 1678 | } |
| 1679 | return cachedUint16ArrayMemory0; |
| 1680 | } |
| 1681 | |
| 1682 | let cachedUint32ArrayMemory0 = null; |
| 1683 | function getUint32ArrayMemory0() { |
| 1684 | if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) { |
| 1685 | cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer); |
| 1686 | } |
| 1687 | return cachedUint32ArrayMemory0; |
| 1688 | } |
| 1689 | |
| 1690 | let cachedUint8ArrayMemory0 = null; |
| 1691 | function getUint8ArrayMemory0() { |
| 1692 | if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { |
| 1693 | cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); |
| 1694 | } |
| 1695 | return cachedUint8ArrayMemory0; |
| 1696 | } |
| 1697 | |
| 1698 | function handleError(f, args) { |
| 1699 | try { |
| 1700 | return f.apply(this, args); |
| 1701 | } catch (e) { |
| 1702 | const idx = addToExternrefTable0(e); |
| 1703 | wasm.__wbindgen_export5(idx); |
| 1704 | } |
| 1705 | } |
| 1706 | |
| 1707 | function isLikeNone(x) { |
| 1708 | return x === undefined || x === null; |
| 1709 | } |
| 1710 | |
| 1711 | function makeMutClosure(arg0, arg1, f) { |
| 1712 | const state = { a: arg0, b: arg1, cnt: 1 }; |
| 1713 | const real = (...args) => { |
| 1714 | |
| 1715 | // First up with a closure we increment the internal reference |
| 1716 | // count. This ensures that the Rust closure environment won't |
| 1717 | // be deallocated while we're invoking it. |
| 1718 | state.cnt++; |
| 1719 | const a = state.a; |
| 1720 | state.a = 0; |
| 1721 | try { |
| 1722 | return f(a, state.b, ...args); |
| 1723 | } finally { |
| 1724 | state.a = a; |
| 1725 | real._wbg_cb_unref(); |
| 1726 | } |
| 1727 | }; |
| 1728 | real._wbg_cb_unref = () => { |
| 1729 | if (--state.cnt === 0) { |
| 1730 | wasm.__wbindgen_export7(state.a, state.b); |
| 1731 | state.a = 0; |
| 1732 | CLOSURE_DTORS.unregister(state); |
| 1733 | } |
| 1734 | }; |
| 1735 | CLOSURE_DTORS.register(real, state, state); |
| 1736 | return real; |
| 1737 | } |
| 1738 | |
| 1739 | function passArray8ToWasm0(arg, malloc) { |
| 1740 | const ptr = malloc(arg.length * 1, 1) >>> 0; |
| 1741 | getUint8ArrayMemory0().set(arg, ptr / 1); |
| 1742 | WASM_VECTOR_LEN = arg.length; |
| 1743 | return ptr; |
| 1744 | } |
| 1745 | |
| 1746 | function passArrayJsValueToWasm0(array, malloc) { |
| 1747 | const ptr = malloc(array.length * 4, 4) >>> 0; |
| 1748 | for (let i = 0; i < array.length; i++) { |
| 1749 | const add = addToExternrefTable0(array[i]); |
| 1750 | getDataViewMemory0().setUint32(ptr + 4 * i, add, true); |
| 1751 | } |
| 1752 | WASM_VECTOR_LEN = array.length; |
| 1753 | return ptr; |
| 1754 | } |
| 1755 | |
| 1756 | function passStringToWasm0(arg, malloc, realloc) { |
| 1757 | if (realloc === undefined) { |
| 1758 | const buf = cachedTextEncoder.encode(arg); |
| 1759 | const ptr = malloc(buf.length, 1) >>> 0; |
| 1760 | getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf); |
| 1761 | WASM_VECTOR_LEN = buf.length; |
| 1762 | return ptr; |
| 1763 | } |
| 1764 | |
| 1765 | let len = arg.length; |
| 1766 | let ptr = malloc(len, 1) >>> 0; |
| 1767 | |
| 1768 | const mem = getUint8ArrayMemory0(); |
| 1769 | |
| 1770 | let offset = 0; |
| 1771 | |
| 1772 | for (; offset < len; offset++) { |
| 1773 | const code = arg.charCodeAt(offset); |
| 1774 | if (code > 0x7F) break; |
| 1775 | mem[ptr + offset] = code; |
| 1776 | } |
| 1777 | if (offset !== len) { |
| 1778 | if (offset !== 0) { |
| 1779 | arg = arg.slice(offset); |
| 1780 | } |
| 1781 | ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; |
| 1782 | const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); |
| 1783 | const ret = cachedTextEncoder.encodeInto(arg, view); |
| 1784 | |
| 1785 | offset += ret.written; |
| 1786 | ptr = realloc(ptr, len, offset, 1) >>> 0; |
| 1787 | } |
| 1788 | |
| 1789 | WASM_VECTOR_LEN = offset; |
| 1790 | return ptr; |
| 1791 | } |
| 1792 | |
| 1793 | function takeFromExternrefTable0(idx) { |
| 1794 | const value = wasm.__wbindgen_externrefs.get(idx); |
| 1795 | wasm.__wbindgen_export8(idx); |
| 1796 | return value; |
| 1797 | } |
| 1798 | |
| 1799 | let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true }); |
| 1800 | cachedTextDecoder.decode(); |
| 1801 | const MAX_SAFARI_DECODE_BYTES = 2146435072; |
| 1802 | let numBytesDecoded = 0; |
| 1803 | function decodeText(bytes) { |
| 1804 | numBytesDecoded += bytes.length; |
| 1805 | if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) { |
| 1806 | cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true }); |
| 1807 | cachedTextDecoder.decode(); |
| 1808 | numBytesDecoded = bytes.length; |
| 1809 | } |
| 1810 | return cachedTextDecoder.decode(bytes); |
| 1811 | } |
| 1812 | |
| 1813 | const cachedTextEncoder = new TextEncoder(); |
| 1814 | |
| 1815 | if (!('encodeInto' in cachedTextEncoder)) { |
| 1816 | cachedTextEncoder.encodeInto = function (arg, view) { |
| 1817 | const buf = cachedTextEncoder.encode(arg); |
| 1818 | view.set(buf); |
| 1819 | return { |
| 1820 | read: arg.length, |
| 1821 | written: buf.length |
| 1822 | }; |
| 1823 | }; |
| 1824 | } |
| 1825 | |
| 1826 | let WASM_VECTOR_LEN = 0; |
| 1827 | |
| 1828 | let wasmModule, wasmInstance, wasm; |
| 1829 | function __wbg_finalize_init(instance, module) { |
| 1830 | wasmInstance = instance; |
| 1831 | wasm = instance.exports; |
| 1832 | wasmModule = module; |
| 1833 | cachedDataViewMemory0 = null; |
| 1834 | cachedFloat32ArrayMemory0 = null; |
| 1835 | cachedInt16ArrayMemory0 = null; |
| 1836 | cachedInt32ArrayMemory0 = null; |
| 1837 | cachedInt8ArrayMemory0 = null; |
| 1838 | cachedUint16ArrayMemory0 = null; |
| 1839 | cachedUint32ArrayMemory0 = null; |
| 1840 | cachedUint8ArrayMemory0 = null; |
| 1841 | wasm.__wbindgen_start(); |
| 1842 | return wasm; |
| 1843 | } |
| 1844 | |
| 1845 | async function __wbg_load(module, imports) { |
| 1846 | if (typeof Response === 'function' && module instanceof Response) { |
| 1847 | if (!module.ok) { |
| 1848 | throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`); |
| 1849 | } |
| 1850 | |
| 1851 | if (typeof WebAssembly.instantiateStreaming === 'function') { |
| 1852 | try { |
| 1853 | return await WebAssembly.instantiateStreaming(module, imports); |
| 1854 | } catch (e) { |
| 1855 | const validResponse = expectedResponseType(module.type); |
| 1856 | |
| 1857 | if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') { |
| 1858 | 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); |
| 1859 | |
| 1860 | } else { throw e; } |
| 1861 | } |
| 1862 | } |
| 1863 | |
| 1864 | const bytes = await module.arrayBuffer(); |
| 1865 | return await WebAssembly.instantiate(bytes, imports); |
| 1866 | } else { |
| 1867 | const instance = await WebAssembly.instantiate(module, imports); |
| 1868 | |
| 1869 | if (instance instanceof WebAssembly.Instance) { |
| 1870 | return { instance, module }; |
| 1871 | } else { |
| 1872 | return instance; |
| 1873 | } |
| 1874 | } |
| 1875 | |
| 1876 | function expectedResponseType(type) { |
| 1877 | switch (type) { |
| 1878 | case 'basic': case 'cors': case 'default': return true; |
| 1879 | } |
| 1880 | return false; |
| 1881 | } |
| 1882 | } |
| 1883 | |
| 1884 | function initSync(module) { |
| 1885 | if (wasm !== undefined) return wasm; |
| 1886 | |
| 1887 | |
| 1888 | if (module !== undefined) { |
| 1889 | if (Object.getPrototypeOf(module) === Object.prototype) { |
| 1890 | ({module} = module) |
| 1891 | } else { |
| 1892 | console.warn('using deprecated parameters for `initSync()`; pass a single object instead') |
| 1893 | } |
| 1894 | } |
| 1895 | |
| 1896 | const imports = __wbg_get_imports(); |
| 1897 | if (!(module instanceof WebAssembly.Module)) { |
| 1898 | module = new WebAssembly.Module(module); |
| 1899 | } |
| 1900 | const instance = new WebAssembly.Instance(module, imports); |
| 1901 | return __wbg_finalize_init(instance, module); |
| 1902 | } |
| 1903 | |
| 1904 | let __wbg_init_promise; |
| 1905 | async function __wbg_init(module_or_path) { |
| 1906 | if (wasm !== undefined) return wasm; |
| 1907 | if (__wbg_init_promise === undefined) { |
| 1908 | __wbg_init_promise = __wbg_init_once(module_or_path); |
| 1909 | __wbg_init_promise.catch(() => { __wbg_init_promise = undefined; }); |
| 1910 | } |
| 1911 | return __wbg_init_promise; |
| 1912 | } |
| 1913 | |
| 1914 | async function __wbg_init_once(module_or_path) { |
| 1915 | |
| 1916 | if (module_or_path !== undefined) { |
| 1917 | if (Object.getPrototypeOf(module_or_path) === Object.prototype) { |
| 1918 | ({module_or_path} = module_or_path) |
| 1919 | } else { |
| 1920 | console.warn('using deprecated parameters for the initialization function; pass a single object instead') |
| 1921 | } |
| 1922 | } |
| 1923 | |
| 1924 | if (module_or_path === undefined) { |
| 1925 | module_or_path = new URL('clearwake_bg.wasm', import.meta.url); |
| 1926 | } |
| 1927 | const imports = __wbg_get_imports(); |
| 1928 | |
| 1929 | if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) { |
| 1930 | module_or_path = fetch(module_or_path); |
| 1931 | } |
| 1932 | |
| 1933 | const { instance, module } = await __wbg_load(await module_or_path, imports); |
| 1934 | |
| 1935 | return __wbg_finalize_init(instance, module); |
| 1936 | } |
| 1937 | |
| 1938 | export { initSync, __wbg_init as default }; |