@pencil-lang/figure 0.0.0-stage → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3094 @@
1
+ export class Player {
2
+ static __wrap(ptr) {
3
+ const obj = Object.create(Player.prototype);
4
+ obj.__wbg_ptr = ptr;
5
+ PlayerFinalization.register(obj, obj.__wbg_ptr, obj);
6
+ return obj;
7
+ }
8
+ __destroy_into_raw() {
9
+ const ptr = this.__wbg_ptr;
10
+ this.__wbg_ptr = 0;
11
+ PlayerFinalization.unregister(this);
12
+ return ptr;
13
+ }
14
+ free() {
15
+ const ptr = this.__destroy_into_raw();
16
+ wasm.__wbg_player_free(ptr, 0);
17
+ }
18
+ /**
19
+ * The wgpu backend in use: `BrowserWebGpu` or `Gl`.
20
+ * @returns {string}
21
+ */
22
+ get backend() {
23
+ let deferred1_0;
24
+ let deferred1_1;
25
+ try {
26
+ const ret = wasm.player_backend(this.__wbg_ptr);
27
+ deferred1_0 = ret[0];
28
+ deferred1_1 = ret[1];
29
+ return getStringFromWasm0(ret[0], ret[1]);
30
+ } finally {
31
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
32
+ }
33
+ }
34
+ /**
35
+ * Sets up the GPU for a canvas. Takes the canvas's current size. `force_gl`
36
+ * skips WebGPU, for testing the WebGL2 path.
37
+ * @param {HTMLCanvasElement} canvas
38
+ * @param {boolean} force_gl
39
+ * @returns {Promise<Player>}
40
+ */
41
+ static create(canvas, force_gl) {
42
+ const ret = wasm.player_create(canvas, force_gl);
43
+ return ret;
44
+ }
45
+ /**
46
+ * Lets go of the GPU now, rather than whenever the page's garbage collector gets to it:
47
+ * browsers cap how many contexts can be live at once. The player can't be used after.
48
+ */
49
+ destroy() {
50
+ const ptr = this.__destroy_into_raw();
51
+ wasm.player_destroy(ptr);
52
+ }
53
+ /**
54
+ * Moves the grabbed handle to this device pixel, through its inverse. Returns the param it
55
+ * set, if a handle is grabbed.
56
+ * @param {number} time
57
+ * @param {number} x
58
+ * @param {number} y
59
+ * @returns {string | undefined}
60
+ */
61
+ drag(time, x, y) {
62
+ const ret = wasm.player_drag(this.__wbg_ptr, time, x, y);
63
+ if (ret[3]) {
64
+ throw takeFromExternrefTable0(ret[2]);
65
+ }
66
+ let v1;
67
+ if (ret[0] !== 0) {
68
+ v1 = getStringFromWasm0(ret[0], ret[1]);
69
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
70
+ }
71
+ return v1;
72
+ }
73
+ /**
74
+ * Draws a frame, and returns its labels as JSON, for the page's text overlay.
75
+ * @param {number} time
76
+ * @param {number} dpr
77
+ * @returns {string}
78
+ */
79
+ draw(time, dpr) {
80
+ let deferred2_0;
81
+ let deferred2_1;
82
+ try {
83
+ const ret = wasm.player_draw(this.__wbg_ptr, time, dpr);
84
+ var ptr1 = ret[0];
85
+ var len1 = ret[1];
86
+ if (ret[3]) {
87
+ ptr1 = 0; len1 = 0;
88
+ throw takeFromExternrefTable0(ret[2]);
89
+ }
90
+ deferred2_0 = ptr1;
91
+ deferred2_1 = len1;
92
+ return getStringFromWasm0(ptr1, len1);
93
+ } finally {
94
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
95
+ }
96
+ }
97
+ /**
98
+ * Starts a drag if a handle is within `reach` of this device pixel. Returns whether
99
+ * one was.
100
+ * @param {number} time
101
+ * @param {number} x
102
+ * @param {number} y
103
+ * @param {number} reach
104
+ * @returns {boolean}
105
+ */
106
+ grab(time, x, y, reach) {
107
+ const ret = wasm.player_grab(this.__wbg_ptr, time, x, y, reach);
108
+ if (ret[2]) {
109
+ throw takeFromExternrefTable0(ret[1]);
110
+ }
111
+ return ret[0] !== 0;
112
+ }
113
+ /**
114
+ * Which handle is grabbed, counting through every panel's as `info`'s `handles` does, or −1.
115
+ * @returns {number}
116
+ */
117
+ grabbed() {
118
+ const ret = wasm.player_grabbed(this.__wbg_ptr);
119
+ return ret;
120
+ }
121
+ /**
122
+ * Where each handle is this frame, as `x, y` pairs in the canvas's device pixels, in the
123
+ * order of `info`'s `handles`. A handle whose mark doesn't exist this frame is NaN.
124
+ * @param {number} time
125
+ * @returns {Float64Array}
126
+ */
127
+ handle_places(time) {
128
+ const ret = wasm.player_handle_places(this.__wbg_ptr, time);
129
+ if (ret[3]) {
130
+ throw takeFromExternrefTable0(ret[2]);
131
+ }
132
+ var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
133
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
134
+ return v1;
135
+ }
136
+ /**
137
+ * The figure's params and duration, as JSON. `timeDriven` names the bindings whose values
138
+ * change with time, so a page knows whether stepping one seeks time or sets it, and
139
+ * `usesTime` says whether anything does, so a figure that never moves needs no clock.
140
+ * @returns {string}
141
+ */
142
+ info() {
143
+ let deferred1_0;
144
+ let deferred1_1;
145
+ try {
146
+ const ret = wasm.player_info(this.__wbg_ptr);
147
+ deferred1_0 = ret[0];
148
+ deferred1_1 = ret[1];
149
+ return getStringFromWasm0(ret[0], ret[1]);
150
+ } finally {
151
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
152
+ }
153
+ }
154
+ /**
155
+ * Compiles new sources. On an error the previous figure stays on screen, so a
156
+ * half-typed edit doesn't blank the canvas.
157
+ * The error says where it is (see `compile_error`).
158
+ * @param {string} doc
159
+ * @param {string[]} sheets
160
+ * @param {string[]} names
161
+ * @param {any} files
162
+ */
163
+ load(doc, sheets, names, files) {
164
+ let ptr0, len0, ptr1, len1, ptr2, len2;
165
+ try {
166
+ ptr0 = passStringToWasm0(doc, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
167
+ len0 = WASM_VECTOR_LEN;
168
+ ptr1 = passArrayJsValueToWasm0(sheets, wasm.__wbindgen_malloc);
169
+ len1 = WASM_VECTOR_LEN;
170
+ ptr2 = passArrayJsValueToWasm0(names, wasm.__wbindgen_malloc);
171
+ len2 = WASM_VECTOR_LEN;
172
+ } catch (e) {
173
+ if (ptr2) { wasm.__externref_drop_slice(ptr2, len2); wasm.__wbindgen_free(ptr2, len2 * 4, 4); }
174
+ if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
175
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
176
+ throw e;
177
+ }
178
+ const ret = wasm.player_load(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, files);
179
+ if (ret[1]) {
180
+ throw takeFromExternrefTable0(ret[0]);
181
+ }
182
+ }
183
+ /**
184
+ * Takes a figure that `pencil compile` wrote, in place of sources: nothing is parsed. A
185
+ * file from another build of Pencil is an error that says to compile it again, and as with
186
+ * `load`, the previous figure stays on screen.
187
+ * @param {Uint8Array | number[]} bytes
188
+ */
189
+ load_compiled(bytes) {
190
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
191
+ const len0 = WASM_VECTOR_LEN;
192
+ const ret = wasm.player_load_compiled(this.__wbg_ptr, ptr0, len0);
193
+ if (ret[1]) {
194
+ throw takeFromExternrefTable0(ret[0]);
195
+ }
196
+ }
197
+ /**
198
+ * Moves a handle by this many device pixels from where it is, through its inverse, as an
199
+ * arrow key does. Returns the param it set, if the handle's mark exists this frame.
200
+ * @param {number} time
201
+ * @param {number} index
202
+ * @param {number} dx
203
+ * @param {number} dy
204
+ * @returns {string | undefined}
205
+ */
206
+ nudge(time, index, dx, dy) {
207
+ const ret = wasm.player_nudge(this.__wbg_ptr, time, index, dx, dy);
208
+ if (ret[3]) {
209
+ throw takeFromExternrefTable0(ret[2]);
210
+ }
211
+ let v1;
212
+ if (ret[0] !== 0) {
213
+ v1 = getStringFromWasm0(ret[0], ret[1]);
214
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
215
+ }
216
+ return v1;
217
+ }
218
+ /**
219
+ * Computes the CPU side of a frame without drawing, to measure that cost. Returns
220
+ * the number of stroke segments.
221
+ * @param {number} time
222
+ * @param {number} dpr
223
+ * @returns {number}
224
+ */
225
+ prepare_only(time, dpr) {
226
+ const ret = wasm.player_prepare_only(this.__wbg_ptr, time, dpr);
227
+ if (ret[2]) {
228
+ throw takeFromExternrefTable0(ret[1]);
229
+ }
230
+ return ret[0] >>> 0;
231
+ }
232
+ /**
233
+ * A param's range this frame, as `[min, max]`. An end that follows other params is read
234
+ * from them, so a page's control can stop where the figure does.
235
+ * @param {string} name
236
+ * @param {number} time
237
+ * @returns {Float64Array}
238
+ */
239
+ range(name, time) {
240
+ const val2 = +time;
241
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
242
+ const len0 = WASM_VECTOR_LEN;
243
+ const ret = wasm.player_range(this.__wbg_ptr, ptr0, len0, val2);
244
+ if (ret[3]) {
245
+ throw takeFromExternrefTable0(ret[2]);
246
+ }
247
+ var v3 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
248
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
249
+ return v3;
250
+ }
251
+ release() {
252
+ wasm.player_release(this.__wbg_ptr);
253
+ }
254
+ /**
255
+ * Hands a param back to its time binding.
256
+ * @param {string} name
257
+ */
258
+ release_param(name) {
259
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
260
+ const len0 = WASM_VECTOR_LEN;
261
+ wasm.player_release_param(this.__wbg_ptr, ptr0, len0);
262
+ }
263
+ /**
264
+ * Follows the canvas to a new size in device pixels, as the page lays it out again. What
265
+ * depends on the size is made again on the next draw.
266
+ * @param {number} width
267
+ * @param {number} height
268
+ */
269
+ resize(width, height) {
270
+ wasm.player_resize(this.__wbg_ptr, width, height);
271
+ }
272
+ /**
273
+ * The page's text size where the figure is, in CSS pixels, which an `em` is.
274
+ * @param {number} em
275
+ */
276
+ set_em(em) {
277
+ wasm.player_set_em(this.__wbg_ptr, em);
278
+ }
279
+ /**
280
+ * Gives the player the page's way to measure text, for laying out expressions:
281
+ * `(text, size in device pixels, is math) => width in device pixels`.
282
+ * @param {Function} measure
283
+ */
284
+ set_measure(measure) {
285
+ wasm.player_set_measure(this.__wbg_ptr, measure);
286
+ }
287
+ /**
288
+ * Takes a param over from its time binding, at this value.
289
+ * @param {string} name
290
+ * @param {number} value
291
+ */
292
+ set_param(name, value) {
293
+ const val2 = +value;
294
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
295
+ const len0 = WASM_VECTOR_LEN;
296
+ wasm.player_set_param(this.__wbg_ptr, ptr0, len0, val2);
297
+ }
298
+ /**
299
+ * The earliest time a param's own binding reaches a value, so play can carry on
300
+ * from where a reader left it. The binding is sampled, not inverted.
301
+ * @param {string} name
302
+ * @param {number} value
303
+ * @returns {number}
304
+ */
305
+ time_for(name, value) {
306
+ const val2 = +value;
307
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
308
+ const len0 = WASM_VECTOR_LEN;
309
+ const ret = wasm.player_time_for(this.__wbg_ptr, ptr0, len0, val2);
310
+ if (ret[2]) {
311
+ throw takeFromExternrefTable0(ret[1]);
312
+ }
313
+ return ret[0];
314
+ }
315
+ /**
316
+ * A binding's value this frame, or NaN if it doesn't exist this frame.
317
+ * @param {string} name
318
+ * @param {number} time
319
+ * @returns {number}
320
+ */
321
+ value(name, time) {
322
+ const val2 = +time;
323
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
324
+ const len0 = WASM_VECTOR_LEN;
325
+ const ret = wasm.player_value(this.__wbg_ptr, ptr0, len0, val2);
326
+ if (ret[2]) {
327
+ throw takeFromExternrefTable0(ret[1]);
328
+ }
329
+ return ret[0];
330
+ }
331
+ }
332
+ if (Symbol.dispose) Player.prototype[Symbol.dispose] = Player.prototype.free;
333
+
334
+ /**
335
+ * A document's design size, as JSON `[width, height]`, to shape its canvas before a player
336
+ * exists to draw on it.
337
+ * @param {string} doc
338
+ * @param {string[]} sheets
339
+ * @param {string[]} names
340
+ * @param {any} files
341
+ * @returns {string}
342
+ */
343
+ export function figure_size(doc, sheets, names, files) {
344
+ let deferred5_0;
345
+ let deferred5_1;
346
+ try {
347
+ let ptr0, len0, ptr1, len1, ptr2, len2;
348
+ try {
349
+ ptr0 = passStringToWasm0(doc, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
350
+ len0 = WASM_VECTOR_LEN;
351
+ ptr1 = passArrayJsValueToWasm0(sheets, wasm.__wbindgen_malloc);
352
+ len1 = WASM_VECTOR_LEN;
353
+ ptr2 = passArrayJsValueToWasm0(names, wasm.__wbindgen_malloc);
354
+ len2 = WASM_VECTOR_LEN;
355
+ } catch (e) {
356
+ if (ptr2) { wasm.__externref_drop_slice(ptr2, len2); wasm.__wbindgen_free(ptr2, len2 * 4, 4); }
357
+ if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
358
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
359
+ throw e;
360
+ }
361
+ const ret = wasm.figure_size(ptr0, len0, ptr1, len1, ptr2, len2, files);
362
+ var ptr4 = ret[0];
363
+ var len4 = ret[1];
364
+ if (ret[3]) {
365
+ ptr4 = 0; len4 = 0;
366
+ throw takeFromExternrefTable0(ret[2]);
367
+ }
368
+ deferred5_0 = ptr4;
369
+ deferred5_1 = len4;
370
+ return getStringFromWasm0(ptr4, len4);
371
+ } finally {
372
+ wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
373
+ }
374
+ }
375
+
376
+ /**
377
+ * A compiled figure's design size, as `figure_size` gives a document's.
378
+ * @param {Uint8Array | number[]} bytes
379
+ * @returns {string}
380
+ */
381
+ export function figure_size_compiled(bytes) {
382
+ let deferred3_0;
383
+ let deferred3_1;
384
+ try {
385
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
386
+ const len0 = WASM_VECTOR_LEN;
387
+ const ret = wasm.figure_size_compiled(ptr0, len0);
388
+ var ptr2 = ret[0];
389
+ var len2 = ret[1];
390
+ if (ret[3]) {
391
+ ptr2 = 0; len2 = 0;
392
+ throw takeFromExternrefTable0(ret[2]);
393
+ }
394
+ deferred3_0 = ptr2;
395
+ deferred3_1 = len2;
396
+ return getStringFromWasm0(ptr2, len2);
397
+ } finally {
398
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
399
+ }
400
+ }
401
+
402
+ /**
403
+ * Which build of the core this is, as a compiled figure's `.json` writes it under `build`. Only
404
+ * a figure with the same one can be loaded, so a build checks before a reader finds out.
405
+ * @returns {string}
406
+ */
407
+ export function fingerprint() {
408
+ let deferred1_0;
409
+ let deferred1_1;
410
+ try {
411
+ const ret = wasm.fingerprint();
412
+ deferred1_0 = ret[0];
413
+ deferred1_1 = ret[1];
414
+ return getStringFromWasm0(ret[0], ret[1]);
415
+ } finally {
416
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
417
+ }
418
+ }
419
+
420
+ /**
421
+ * LaTeX, as Desmos and MathLive copy it, as Pencil text, or the reason it has no Pencil form.
422
+ * `functions` are the names the figure defines with `fn`, which a letter before parentheses
423
+ * calls rather than multiplies. A page passes pasted text here when `is_latex` says it's LaTeX.
424
+ * @param {string} latex
425
+ * @param {string[]} functions
426
+ * @returns {string}
427
+ */
428
+ export function from_latex(latex, functions) {
429
+ let deferred4_0;
430
+ let deferred4_1;
431
+ try {
432
+ let ptr0, len0, ptr1, len1;
433
+ try {
434
+ ptr0 = passStringToWasm0(latex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
435
+ len0 = WASM_VECTOR_LEN;
436
+ ptr1 = passArrayJsValueToWasm0(functions, wasm.__wbindgen_malloc);
437
+ len1 = WASM_VECTOR_LEN;
438
+ } catch (e) {
439
+ if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
440
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
441
+ throw e;
442
+ }
443
+ const ret = wasm.from_latex(ptr0, len0, ptr1, len1);
444
+ var ptr3 = ret[0];
445
+ var len3 = ret[1];
446
+ if (ret[3]) {
447
+ ptr3 = 0; len3 = 0;
448
+ throw takeFromExternrefTable0(ret[2]);
449
+ }
450
+ deferred4_0 = ptr3;
451
+ deferred4_1 = len3;
452
+ return getStringFromWasm0(ptr3, len3);
453
+ } finally {
454
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
455
+ }
456
+ }
457
+
458
+ /**
459
+ * The built-in functions as JSON pairs of how they're written and their MathJSON heads, so a page
460
+ * can write a head back as Pencil text.
461
+ * @returns {string}
462
+ */
463
+ export function functions() {
464
+ let deferred1_0;
465
+ let deferred1_1;
466
+ try {
467
+ const ret = wasm.functions();
468
+ deferred1_0 = ret[0];
469
+ deferred1_1 = ret[1];
470
+ return getStringFromWasm0(ret[0], ret[1]);
471
+ } finally {
472
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
473
+ }
474
+ }
475
+
476
+ /**
477
+ * How text reads, stage by stage, as JSON: its tokens, then the expression it is or the
478
+ * document's statements and IR. The AST page shows it.
479
+ * @param {string} src
480
+ * @returns {string}
481
+ */
482
+ export function inspect(src) {
483
+ let deferred2_0;
484
+ let deferred2_1;
485
+ try {
486
+ const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
487
+ const len0 = WASM_VECTOR_LEN;
488
+ const ret = wasm.inspect(ptr0, len0);
489
+ deferred2_0 = ret[0];
490
+ deferred2_1 = ret[1];
491
+ return getStringFromWasm0(ret[0], ret[1]);
492
+ } finally {
493
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
494
+ }
495
+ }
496
+
497
+ /**
498
+ * Whether pasted text is LaTeX rather than Pencil.
499
+ * @param {string} text
500
+ * @returns {boolean}
501
+ */
502
+ export function is_latex(text) {
503
+ const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
504
+ const len0 = WASM_VECTOR_LEN;
505
+ const ret = wasm.is_latex(ptr0, len0);
506
+ return ret !== 0;
507
+ }
508
+
509
+ /**
510
+ * The colors these sheets name, as a JSON object of CSS colors, so a page can match the figure
511
+ * it holds without its own copy of the palette.
512
+ * @param {string[]} sheets
513
+ * @param {string[]} names
514
+ * @param {any} files
515
+ * @returns {string}
516
+ */
517
+ export function named_colors(sheets, names, files) {
518
+ let deferred4_0;
519
+ let deferred4_1;
520
+ try {
521
+ let ptr0, len0, ptr1, len1;
522
+ try {
523
+ ptr0 = passArrayJsValueToWasm0(sheets, wasm.__wbindgen_malloc);
524
+ len0 = WASM_VECTOR_LEN;
525
+ ptr1 = passArrayJsValueToWasm0(names, wasm.__wbindgen_malloc);
526
+ len1 = WASM_VECTOR_LEN;
527
+ } catch (e) {
528
+ if (ptr1) { wasm.__externref_drop_slice(ptr1, len1); wasm.__wbindgen_free(ptr1, len1 * 4, 4); }
529
+ if (ptr0) { wasm.__externref_drop_slice(ptr0, len0); wasm.__wbindgen_free(ptr0, len0 * 4, 4); }
530
+ throw e;
531
+ }
532
+ const ret = wasm.named_colors(ptr0, len0, ptr1, len1, files);
533
+ var ptr3 = ret[0];
534
+ var len3 = ret[1];
535
+ if (ret[3]) {
536
+ ptr3 = 0; len3 = 0;
537
+ throw takeFromExternrefTable0(ret[2]);
538
+ }
539
+ deferred4_0 = ptr3;
540
+ deferred4_1 = len3;
541
+ return getStringFromWasm0(ptr3, len3);
542
+ } finally {
543
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
544
+ }
545
+ }
546
+
547
+ /**
548
+ * What an editor writes as symbols are typed, as JSON: `names`, each written for its name after
549
+ * a backslash, as `\to` is `→`, and `digraphs`, each written for what's typed in a label's text,
550
+ * as `->` is. Pencil's text is the symbol, so this is only for a keyboard that lacks it.
551
+ * @returns {string}
552
+ */
553
+ export function symbols() {
554
+ let deferred1_0;
555
+ let deferred1_1;
556
+ try {
557
+ const ret = wasm.symbols();
558
+ deferred1_0 = ret[0];
559
+ deferred1_1 = ret[1];
560
+ return getStringFromWasm0(ret[0], ret[1]);
561
+ } finally {
562
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
563
+ }
564
+ }
565
+
566
+ /**
567
+ * The files a text uses itself, by name, each found from `name`, which is where the text came
568
+ * from. A page fetches them, asks the same of each, and hands them all to `load`.
569
+ * @param {string} name
570
+ * @param {string} text
571
+ * @returns {string[]}
572
+ */
573
+ export function uses(name, text) {
574
+ let ptr0, len0, ptr1, len1;
575
+ try {
576
+ ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
577
+ len0 = WASM_VECTOR_LEN;
578
+ ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
579
+ len1 = WASM_VECTOR_LEN;
580
+ } catch (e) {
581
+ if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
582
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
583
+ throw e;
584
+ }
585
+ const ret = wasm.uses(ptr0, len0, ptr1, len1);
586
+ var v3 = getArrayJsValueFromWasm0(ret[0], ret[1]);
587
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
588
+ return v3;
589
+ }
590
+ function __wbg_get_imports() {
591
+ const import0 = {
592
+ __proto__: null,
593
+ __wbg_Error_208446807d0d1e30: function(arg0, arg1) {
594
+ const ret = Error(getStringFromWasm0(arg0, arg1));
595
+ return ret;
596
+ },
597
+ __wbg_Window_2805651c516cb7aa: function(arg0) {
598
+ const ret = arg0.Window;
599
+ return ret;
600
+ },
601
+ __wbg_WorkerGlobalScope_174390815d0a4893: function(arg0) {
602
+ const ret = arg0.WorkerGlobalScope;
603
+ return ret;
604
+ },
605
+ __wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
606
+ const v = arg0;
607
+ const ret = typeof(v) === 'boolean' ? v : undefined;
608
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
609
+ },
610
+ __wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
611
+ const ret = debugString(arg1);
612
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
613
+ const len1 = WASM_VECTOR_LEN;
614
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
615
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
616
+ },
617
+ __wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) {
618
+ const ret = typeof(arg0) === 'function';
619
+ return ret;
620
+ },
621
+ __wbg___wbindgen_is_null_c22311b1cc228e3a: function(arg0) {
622
+ const ret = arg0 === null;
623
+ return ret;
624
+ },
625
+ __wbg___wbindgen_is_string_fc456fee5d3317de: function(arg0) {
626
+ const ret = typeof(arg0) === 'string';
627
+ return ret;
628
+ },
629
+ __wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
630
+ const ret = arg0 === undefined;
631
+ return ret;
632
+ },
633
+ __wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
634
+ const obj = arg1;
635
+ const ret = typeof(obj) === 'number' ? obj : undefined;
636
+ getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
637
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
638
+ },
639
+ __wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
640
+ const obj = arg1;
641
+ const ret = typeof(obj) === 'string' ? obj : undefined;
642
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
643
+ var len1 = WASM_VECTOR_LEN;
644
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
645
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
646
+ },
647
+ __wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
648
+ throw new Error(getStringFromWasm0(arg0, arg1));
649
+ },
650
+ __wbg__wbg_cb_unref_09736879a3f67559: function(arg0) {
651
+ arg0._wbg_cb_unref();
652
+ },
653
+ __wbg_activeTexture_45b425a49df733ce: function(arg0, arg1) {
654
+ arg0.activeTexture(arg1 >>> 0);
655
+ },
656
+ __wbg_activeTexture_89cef8c297ad0698: function(arg0, arg1) {
657
+ arg0.activeTexture(arg1 >>> 0);
658
+ },
659
+ __wbg_attachShader_3ed301cc92db59f6: function(arg0, arg1, arg2) {
660
+ arg0.attachShader(arg1, arg2);
661
+ },
662
+ __wbg_attachShader_817dcec9e79fd18f: function(arg0, arg1, arg2) {
663
+ arg0.attachShader(arg1, arg2);
664
+ },
665
+ __wbg_beginQuery_f800947e639433e8: function(arg0, arg1, arg2) {
666
+ arg0.beginQuery(arg1 >>> 0, arg2);
667
+ },
668
+ __wbg_beginRenderPass_597e3973321fd369: function() { return handleError(function (arg0, arg1) {
669
+ const ret = arg0.beginRenderPass(arg1);
670
+ return ret;
671
+ }, arguments); },
672
+ __wbg_bindAttribLocation_40c41e6185822b52: function(arg0, arg1, arg2, arg3, arg4) {
673
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
674
+ },
675
+ __wbg_bindAttribLocation_b51bf2d65ded8f70: function(arg0, arg1, arg2, arg3, arg4) {
676
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
677
+ },
678
+ __wbg_bindBufferRange_da5accbcd5d223ad: function(arg0, arg1, arg2, arg3, arg4, arg5) {
679
+ arg0.bindBufferRange(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
680
+ },
681
+ __wbg_bindBuffer_b3bb001fdbee089a: function(arg0, arg1, arg2) {
682
+ arg0.bindBuffer(arg1 >>> 0, arg2);
683
+ },
684
+ __wbg_bindBuffer_cbc9075f76fffa51: function(arg0, arg1, arg2) {
685
+ arg0.bindBuffer(arg1 >>> 0, arg2);
686
+ },
687
+ __wbg_bindFramebuffer_79534f24b57b7b95: function(arg0, arg1, arg2) {
688
+ arg0.bindFramebuffer(arg1 >>> 0, arg2);
689
+ },
690
+ __wbg_bindFramebuffer_b245cd93a150dd96: function(arg0, arg1, arg2) {
691
+ arg0.bindFramebuffer(arg1 >>> 0, arg2);
692
+ },
693
+ __wbg_bindRenderbuffer_3458a69a6dc55057: function(arg0, arg1, arg2) {
694
+ arg0.bindRenderbuffer(arg1 >>> 0, arg2);
695
+ },
696
+ __wbg_bindRenderbuffer_612f27d9b3b97b9f: function(arg0, arg1, arg2) {
697
+ arg0.bindRenderbuffer(arg1 >>> 0, arg2);
698
+ },
699
+ __wbg_bindSampler_0fb033a6ffd5d7b3: function(arg0, arg1, arg2) {
700
+ arg0.bindSampler(arg1 >>> 0, arg2);
701
+ },
702
+ __wbg_bindTexture_6f822943b2790466: function(arg0, arg1, arg2) {
703
+ arg0.bindTexture(arg1 >>> 0, arg2);
704
+ },
705
+ __wbg_bindTexture_a23350e1b573ddfd: function(arg0, arg1, arg2) {
706
+ arg0.bindTexture(arg1 >>> 0, arg2);
707
+ },
708
+ __wbg_bindVertexArrayOES_5161c1f5b1fea3f9: function(arg0, arg1) {
709
+ arg0.bindVertexArrayOES(arg1);
710
+ },
711
+ __wbg_bindVertexArray_cc64c48bf67ab8d4: function(arg0, arg1) {
712
+ arg0.bindVertexArray(arg1);
713
+ },
714
+ __wbg_blendColor_8631cab46394c93b: function(arg0, arg1, arg2, arg3, arg4) {
715
+ arg0.blendColor(arg1, arg2, arg3, arg4);
716
+ },
717
+ __wbg_blendColor_957c8ddad53063a2: function(arg0, arg1, arg2, arg3, arg4) {
718
+ arg0.blendColor(arg1, arg2, arg3, arg4);
719
+ },
720
+ __wbg_blendEquationSeparate_0dceb23863585a87: function(arg0, arg1, arg2) {
721
+ arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
722
+ },
723
+ __wbg_blendEquationSeparate_156fe040a9aebfd6: function(arg0, arg1, arg2) {
724
+ arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
725
+ },
726
+ __wbg_blendEquation_847eb360af3b2786: function(arg0, arg1) {
727
+ arg0.blendEquation(arg1 >>> 0);
728
+ },
729
+ __wbg_blendEquation_cd72c0ac181cd88d: function(arg0, arg1) {
730
+ arg0.blendEquation(arg1 >>> 0);
731
+ },
732
+ __wbg_blendFuncSeparate_6db2212299fd7f1e: function(arg0, arg1, arg2, arg3, arg4) {
733
+ arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
734
+ },
735
+ __wbg_blendFuncSeparate_eb9098d760f4a25c: function(arg0, arg1, arg2, arg3, arg4) {
736
+ arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
737
+ },
738
+ __wbg_blendFunc_378a3be8ab6cb7d0: function(arg0, arg1, arg2) {
739
+ arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
740
+ },
741
+ __wbg_blendFunc_68b4cfb9bd98a13f: function(arg0, arg1, arg2) {
742
+ arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
743
+ },
744
+ __wbg_blitFramebuffer_d17b7bddf5e86dbc: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
745
+ arg0.blitFramebuffer(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0);
746
+ },
747
+ __wbg_bufferData_2fb8740d60478bf0: function(arg0, arg1, arg2, arg3) {
748
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
749
+ },
750
+ __wbg_bufferData_41b591a9f2d502ad: function(arg0, arg1, arg2, arg3) {
751
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
752
+ },
753
+ __wbg_bufferData_9305dba3ba9cba4e: function(arg0, arg1, arg2, arg3) {
754
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
755
+ },
756
+ __wbg_bufferData_9eb9c4c5053ac480: function(arg0, arg1, arg2, arg3) {
757
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
758
+ },
759
+ __wbg_bufferSubData_8acfdcd4b9f7edeb: function(arg0, arg1, arg2, arg3) {
760
+ arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
761
+ },
762
+ __wbg_bufferSubData_9bec93d67e98757e: function(arg0, arg1, arg2, arg3) {
763
+ arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
764
+ },
765
+ __wbg_call_275b78b3b6520b92: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
766
+ const ret = arg0.call(arg1, arg2, arg3, arg4);
767
+ return ret;
768
+ }, arguments); },
769
+ __wbg_call_a410eb4b59ed5965: function() { return handleError(function (arg0, arg1, arg2) {
770
+ const ret = arg0.call(arg1, arg2);
771
+ return ret;
772
+ }, arguments); },
773
+ __wbg_clearBufferfv_474b28c18db287a8: function(arg0, arg1, arg2, arg3, arg4) {
774
+ arg0.clearBufferfv(arg1 >>> 0, arg2, getArrayF32FromWasm0(arg3, arg4));
775
+ },
776
+ __wbg_clearBufferiv_a89cfdf7da6f2819: function(arg0, arg1, arg2, arg3, arg4) {
777
+ arg0.clearBufferiv(arg1 >>> 0, arg2, getArrayI32FromWasm0(arg3, arg4));
778
+ },
779
+ __wbg_clearBufferuiv_e723936f302725de: function(arg0, arg1, arg2, arg3, arg4) {
780
+ arg0.clearBufferuiv(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4));
781
+ },
782
+ __wbg_clearDepth_3417be30229e823a: function(arg0, arg1) {
783
+ arg0.clearDepth(arg1);
784
+ },
785
+ __wbg_clearDepth_3dc1f52f96f29526: function(arg0, arg1) {
786
+ arg0.clearDepth(arg1);
787
+ },
788
+ __wbg_clearStencil_29f687031586f5e6: function(arg0, arg1) {
789
+ arg0.clearStencil(arg1);
790
+ },
791
+ __wbg_clearStencil_59a8a925116b24ec: function(arg0, arg1) {
792
+ arg0.clearStencil(arg1);
793
+ },
794
+ __wbg_clear_3ffa1ed794f92a04: function(arg0, arg1) {
795
+ arg0.clear(arg1 >>> 0);
796
+ },
797
+ __wbg_clear_ccb3d618da90fea3: function(arg0, arg1) {
798
+ arg0.clear(arg1 >>> 0);
799
+ },
800
+ __wbg_clientWaitSync_fee803cb72073198: function(arg0, arg1, arg2, arg3) {
801
+ const ret = arg0.clientWaitSync(arg1, arg2 >>> 0, arg3 >>> 0);
802
+ return ret;
803
+ },
804
+ __wbg_colorMask_24c1b6c3ec53f8c8: function(arg0, arg1, arg2, arg3, arg4) {
805
+ arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
806
+ },
807
+ __wbg_colorMask_cfc2d619716d01ed: function(arg0, arg1, arg2, arg3, arg4) {
808
+ arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
809
+ },
810
+ __wbg_compileShader_11eb6754e9b15970: function(arg0, arg1) {
811
+ arg0.compileShader(arg1);
812
+ },
813
+ __wbg_compileShader_54c3771819e6caba: function(arg0, arg1) {
814
+ arg0.compileShader(arg1);
815
+ },
816
+ __wbg_compressedTexSubImage2D_8706ea3fb9e0180c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
817
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
818
+ },
819
+ __wbg_compressedTexSubImage2D_b6a8807f715c2782: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
820
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8, arg9);
821
+ },
822
+ __wbg_compressedTexSubImage2D_d66b16b23793038b: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
823
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
824
+ },
825
+ __wbg_compressedTexSubImage3D_74b7bfbc9a7fc90f: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
826
+ arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10, arg11);
827
+ },
828
+ __wbg_compressedTexSubImage3D_e1d361485803b713: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
829
+ arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10);
830
+ },
831
+ __wbg_configure_8e04ab1a867d31e1: function() { return handleError(function (arg0, arg1) {
832
+ arg0.configure(arg1);
833
+ }, arguments); },
834
+ __wbg_copyBufferSubData_b10635982222cbc4: function(arg0, arg1, arg2, arg3, arg4, arg5) {
835
+ arg0.copyBufferSubData(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
836
+ },
837
+ __wbg_copyTexSubImage2D_0cc80bc35bca1d8e: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
838
+ arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
839
+ },
840
+ __wbg_copyTexSubImage2D_be50078e0f0575f1: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
841
+ arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
842
+ },
843
+ __wbg_copyTexSubImage3D_e35f615c7c8244ba: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
844
+ arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
845
+ },
846
+ __wbg_createBindGroupLayout_5699617270d84042: function() { return handleError(function (arg0, arg1) {
847
+ const ret = arg0.createBindGroupLayout(arg1);
848
+ return ret;
849
+ }, arguments); },
850
+ __wbg_createBindGroup_f539b26ca341308f: function(arg0, arg1) {
851
+ const ret = arg0.createBindGroup(arg1);
852
+ return ret;
853
+ },
854
+ __wbg_createBuffer_2c27ad5f899d418d: function(arg0) {
855
+ const ret = arg0.createBuffer();
856
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
857
+ },
858
+ __wbg_createBuffer_b8c5b520d2c822b8: function() { return handleError(function (arg0, arg1) {
859
+ const ret = arg0.createBuffer(arg1);
860
+ return ret;
861
+ }, arguments); },
862
+ __wbg_createBuffer_ca6ca40e9fb13678: function(arg0) {
863
+ const ret = arg0.createBuffer();
864
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
865
+ },
866
+ __wbg_createCommandEncoder_3352d1ffc36c6fc0: function(arg0, arg1) {
867
+ const ret = arg0.createCommandEncoder(arg1);
868
+ return ret;
869
+ },
870
+ __wbg_createFramebuffer_cdf686778c61014d: function(arg0) {
871
+ const ret = arg0.createFramebuffer();
872
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
873
+ },
874
+ __wbg_createFramebuffer_f52399034cb1a200: function(arg0) {
875
+ const ret = arg0.createFramebuffer();
876
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
877
+ },
878
+ __wbg_createPipelineLayout_6eab52c327118937: function(arg0, arg1) {
879
+ const ret = arg0.createPipelineLayout(arg1);
880
+ return ret;
881
+ },
882
+ __wbg_createProgram_de0881c688a8e43b: function(arg0) {
883
+ const ret = arg0.createProgram();
884
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
885
+ },
886
+ __wbg_createProgram_ea784724f6f0074f: function(arg0) {
887
+ const ret = arg0.createProgram();
888
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
889
+ },
890
+ __wbg_createQuery_8f0481bdf42276b8: function(arg0) {
891
+ const ret = arg0.createQuery();
892
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
893
+ },
894
+ __wbg_createRenderPipeline_58390ba302107691: function() { return handleError(function (arg0, arg1) {
895
+ const ret = arg0.createRenderPipeline(arg1);
896
+ return ret;
897
+ }, arguments); },
898
+ __wbg_createRenderbuffer_19c2eec619a37a15: function(arg0) {
899
+ const ret = arg0.createRenderbuffer();
900
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
901
+ },
902
+ __wbg_createRenderbuffer_e45c14c918a72668: function(arg0) {
903
+ const ret = arg0.createRenderbuffer();
904
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
905
+ },
906
+ __wbg_createSampler_5bc030b64ed02c52: function(arg0) {
907
+ const ret = arg0.createSampler();
908
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
909
+ },
910
+ __wbg_createShaderModule_cefa51336cb288ae: function(arg0, arg1) {
911
+ const ret = arg0.createShaderModule(arg1);
912
+ return ret;
913
+ },
914
+ __wbg_createShader_9754a1e4ef374e84: function(arg0, arg1) {
915
+ const ret = arg0.createShader(arg1 >>> 0);
916
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
917
+ },
918
+ __wbg_createShader_d2d90020273cef2b: function(arg0, arg1) {
919
+ const ret = arg0.createShader(arg1 >>> 0);
920
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
921
+ },
922
+ __wbg_createTexture_2c95e64f50008aea: function() { return handleError(function (arg0, arg1) {
923
+ const ret = arg0.createTexture(arg1);
924
+ return ret;
925
+ }, arguments); },
926
+ __wbg_createTexture_3287f26407473071: function(arg0) {
927
+ const ret = arg0.createTexture();
928
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
929
+ },
930
+ __wbg_createTexture_eec9a1994aabeca7: function(arg0) {
931
+ const ret = arg0.createTexture();
932
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
933
+ },
934
+ __wbg_createVertexArrayOES_3eaf087ef22da1cb: function(arg0) {
935
+ const ret = arg0.createVertexArrayOES();
936
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
937
+ },
938
+ __wbg_createVertexArray_1293d2ffa8346be2: function(arg0) {
939
+ const ret = arg0.createVertexArray();
940
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
941
+ },
942
+ __wbg_createView_96e5e405cc3c01e8: function() { return handleError(function (arg0, arg1) {
943
+ const ret = arg0.createView(arg1);
944
+ return ret;
945
+ }, arguments); },
946
+ __wbg_cullFace_208151a46885a1fa: function(arg0, arg1) {
947
+ arg0.cullFace(arg1 >>> 0);
948
+ },
949
+ __wbg_cullFace_9eaca57652d7ed37: function(arg0, arg1) {
950
+ arg0.cullFace(arg1 >>> 0);
951
+ },
952
+ __wbg_deleteBuffer_673584ba5a55669d: function(arg0, arg1) {
953
+ arg0.deleteBuffer(arg1);
954
+ },
955
+ __wbg_deleteBuffer_ffa760fd3b0b5ef1: function(arg0, arg1) {
956
+ arg0.deleteBuffer(arg1);
957
+ },
958
+ __wbg_deleteFramebuffer_0ec884f89db72a3e: function(arg0, arg1) {
959
+ arg0.deleteFramebuffer(arg1);
960
+ },
961
+ __wbg_deleteFramebuffer_ffdb1bee4c92ae4c: function(arg0, arg1) {
962
+ arg0.deleteFramebuffer(arg1);
963
+ },
964
+ __wbg_deleteProgram_8c38fff0f4a88dea: function(arg0, arg1) {
965
+ arg0.deleteProgram(arg1);
966
+ },
967
+ __wbg_deleteProgram_c07d952a1b0c1cb6: function(arg0, arg1) {
968
+ arg0.deleteProgram(arg1);
969
+ },
970
+ __wbg_deleteQuery_dfd665f6d8652e22: function(arg0, arg1) {
971
+ arg0.deleteQuery(arg1);
972
+ },
973
+ __wbg_deleteRenderbuffer_3a6e1676ab926e0f: function(arg0, arg1) {
974
+ arg0.deleteRenderbuffer(arg1);
975
+ },
976
+ __wbg_deleteRenderbuffer_895ff607251243a9: function(arg0, arg1) {
977
+ arg0.deleteRenderbuffer(arg1);
978
+ },
979
+ __wbg_deleteSampler_2b73428131e403e1: function(arg0, arg1) {
980
+ arg0.deleteSampler(arg1);
981
+ },
982
+ __wbg_deleteShader_320530dd636bc187: function(arg0, arg1) {
983
+ arg0.deleteShader(arg1);
984
+ },
985
+ __wbg_deleteShader_ac74568b64a1c3c7: function(arg0, arg1) {
986
+ arg0.deleteShader(arg1);
987
+ },
988
+ __wbg_deleteSync_eede535e5826f144: function(arg0, arg1) {
989
+ arg0.deleteSync(arg1);
990
+ },
991
+ __wbg_deleteTexture_1653a9994a44215e: function(arg0, arg1) {
992
+ arg0.deleteTexture(arg1);
993
+ },
994
+ __wbg_deleteTexture_89bd1d49ae4fb309: function(arg0, arg1) {
995
+ arg0.deleteTexture(arg1);
996
+ },
997
+ __wbg_deleteVertexArrayOES_2214ecdf65be031d: function(arg0, arg1) {
998
+ arg0.deleteVertexArrayOES(arg1);
999
+ },
1000
+ __wbg_deleteVertexArray_2589b74b67ba20c8: function(arg0, arg1) {
1001
+ arg0.deleteVertexArray(arg1);
1002
+ },
1003
+ __wbg_depthFunc_04abd9f6ff980ba9: function(arg0, arg1) {
1004
+ arg0.depthFunc(arg1 >>> 0);
1005
+ },
1006
+ __wbg_depthFunc_584bfa0174e7628a: function(arg0, arg1) {
1007
+ arg0.depthFunc(arg1 >>> 0);
1008
+ },
1009
+ __wbg_depthMask_276856a569045897: function(arg0, arg1) {
1010
+ arg0.depthMask(arg1 !== 0);
1011
+ },
1012
+ __wbg_depthMask_2ba7e83178c3cec3: function(arg0, arg1) {
1013
+ arg0.depthMask(arg1 !== 0);
1014
+ },
1015
+ __wbg_depthRange_8b4b69a7c91ff92b: function(arg0, arg1, arg2) {
1016
+ arg0.depthRange(arg1, arg2);
1017
+ },
1018
+ __wbg_depthRange_942825e3232596de: function(arg0, arg1, arg2) {
1019
+ arg0.depthRange(arg1, arg2);
1020
+ },
1021
+ __wbg_description_7a568e202a00293f: function(arg0, arg1) {
1022
+ const ret = arg1.description;
1023
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
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
+ },
1028
+ __wbg_destroy_275564a0a8b8d071: function(arg0) {
1029
+ arg0.destroy();
1030
+ },
1031
+ __wbg_destroy_637537007d9eaa44: function(arg0) {
1032
+ arg0.destroy();
1033
+ },
1034
+ __wbg_disableVertexAttribArray_011898581287ef1e: function(arg0, arg1) {
1035
+ arg0.disableVertexAttribArray(arg1 >>> 0);
1036
+ },
1037
+ __wbg_disableVertexAttribArray_5c66375eba552ee7: function(arg0, arg1) {
1038
+ arg0.disableVertexAttribArray(arg1 >>> 0);
1039
+ },
1040
+ __wbg_disable_2ead6c11cefd0322: function(arg0, arg1) {
1041
+ arg0.disable(arg1 >>> 0);
1042
+ },
1043
+ __wbg_disable_8a9e81e6d64d046b: function(arg0, arg1) {
1044
+ arg0.disable(arg1 >>> 0);
1045
+ },
1046
+ __wbg_document_3b5c3071b43e97ee: function(arg0) {
1047
+ const ret = arg0.document;
1048
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1049
+ },
1050
+ __wbg_drawArraysInstancedANGLE_635e10224985b842: function(arg0, arg1, arg2, arg3, arg4) {
1051
+ arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
1052
+ },
1053
+ __wbg_drawArraysInstanced_762b36f2147c7a85: function(arg0, arg1, arg2, arg3, arg4) {
1054
+ arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
1055
+ },
1056
+ __wbg_drawArrays_a9c18db2e94f4a82: function(arg0, arg1, arg2, arg3) {
1057
+ arg0.drawArrays(arg1 >>> 0, arg2, arg3);
1058
+ },
1059
+ __wbg_drawArrays_fe5a51410bfabb5b: function(arg0, arg1, arg2, arg3) {
1060
+ arg0.drawArrays(arg1 >>> 0, arg2, arg3);
1061
+ },
1062
+ __wbg_drawBuffersWEBGL_49c672d0ddcdfe71: function(arg0, arg1) {
1063
+ arg0.drawBuffersWEBGL(arg1);
1064
+ },
1065
+ __wbg_drawBuffers_e296659ce384e721: function(arg0, arg1) {
1066
+ arg0.drawBuffers(arg1);
1067
+ },
1068
+ __wbg_drawElementsInstancedANGLE_470ce8b489eeafa5: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1069
+ arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1070
+ },
1071
+ __wbg_drawElementsInstanced_3240c0c168d6af87: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1072
+ arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1073
+ },
1074
+ __wbg_draw_086a9578fc9898c2: function(arg0, arg1, arg2, arg3, arg4) {
1075
+ arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1076
+ },
1077
+ __wbg_enableVertexAttribArray_d485706ade6bebf8: function(arg0, arg1) {
1078
+ arg0.enableVertexAttribArray(arg1 >>> 0);
1079
+ },
1080
+ __wbg_enableVertexAttribArray_eeecc6185af24227: function(arg0, arg1) {
1081
+ arg0.enableVertexAttribArray(arg1 >>> 0);
1082
+ },
1083
+ __wbg_enable_c3c00565c89d3175: function(arg0, arg1) {
1084
+ arg0.enable(arg1 >>> 0);
1085
+ },
1086
+ __wbg_enable_e955d456ef6b93f7: function(arg0, arg1) {
1087
+ arg0.enable(arg1 >>> 0);
1088
+ },
1089
+ __wbg_endQuery_f052a8f0f3589d3b: function(arg0, arg1) {
1090
+ arg0.endQuery(arg1 >>> 0);
1091
+ },
1092
+ __wbg_end_b57473834b877409: function(arg0) {
1093
+ arg0.end();
1094
+ },
1095
+ __wbg_error_757e9472f8410341: function(arg0, arg1) {
1096
+ let deferred0_0;
1097
+ let deferred0_1;
1098
+ try {
1099
+ deferred0_0 = arg0;
1100
+ deferred0_1 = arg1;
1101
+ console.error(getStringFromWasm0(arg0, arg1));
1102
+ } finally {
1103
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1104
+ }
1105
+ },
1106
+ __wbg_fenceSync_53f6f24f4bb43d24: function(arg0, arg1, arg2) {
1107
+ const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
1108
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1109
+ },
1110
+ __wbg_finish_09ec094c10f41e7b: function(arg0) {
1111
+ const ret = arg0.finish();
1112
+ return ret;
1113
+ },
1114
+ __wbg_finish_783de9bff3b56540: function(arg0) {
1115
+ arg0.finish();
1116
+ },
1117
+ __wbg_finish_abf9726b03095270: function(arg0) {
1118
+ arg0.finish();
1119
+ },
1120
+ __wbg_finish_ec1c191f66a895b1: function(arg0, arg1) {
1121
+ const ret = arg0.finish(arg1);
1122
+ return ret;
1123
+ },
1124
+ __wbg_flush_4911c503a18d091d: function(arg0) {
1125
+ arg0.flush();
1126
+ },
1127
+ __wbg_flush_a9981e0bd1a44897: function(arg0) {
1128
+ arg0.flush();
1129
+ },
1130
+ __wbg_framebufferRenderbuffer_1c89563506a7d0ac: function(arg0, arg1, arg2, arg3, arg4) {
1131
+ arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
1132
+ },
1133
+ __wbg_framebufferRenderbuffer_ffaba93222aea77c: function(arg0, arg1, arg2, arg3, arg4) {
1134
+ arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
1135
+ },
1136
+ __wbg_framebufferTexture2D_2c69ac0ce67faf7d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1137
+ arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
1138
+ },
1139
+ __wbg_framebufferTexture2D_b6250a0c37eb48c2: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1140
+ arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
1141
+ },
1142
+ __wbg_framebufferTextureLayer_2f6e24e2dbf9b214: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1143
+ arg0.framebufferTextureLayer(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
1144
+ },
1145
+ __wbg_framebufferTextureMultiviewOVR_63308e847d8b8f6c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1146
+ arg0.framebufferTextureMultiviewOVR(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5, arg6);
1147
+ },
1148
+ __wbg_frontFace_124bb11a73cc0dd1: function(arg0, arg1) {
1149
+ arg0.frontFace(arg1 >>> 0);
1150
+ },
1151
+ __wbg_frontFace_8bbd77ca3b8f90a6: function(arg0, arg1) {
1152
+ arg0.frontFace(arg1 >>> 0);
1153
+ },
1154
+ __wbg_getBufferSubData_4a9f8244f0e59e63: function(arg0, arg1, arg2, arg3) {
1155
+ arg0.getBufferSubData(arg1 >>> 0, arg2, arg3);
1156
+ },
1157
+ __wbg_getContext_1938edb9a972f63d: function() { return handleError(function (arg0, arg1, arg2) {
1158
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
1159
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1160
+ }, arguments); },
1161
+ __wbg_getContext_9d32151c28a36ed6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1162
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
1163
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1164
+ }, arguments); },
1165
+ __wbg_getContext_d93f904b714852ae: function() { return handleError(function (arg0, arg1, arg2) {
1166
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
1167
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1168
+ }, arguments); },
1169
+ __wbg_getContext_f2ea37484e3f8ff4: function() { return handleError(function (arg0, arg1, arg2, arg3) {
1170
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
1171
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1172
+ }, arguments); },
1173
+ __wbg_getCurrentTexture_c3b1727224d7f6e6: function() { return handleError(function (arg0) {
1174
+ const ret = arg0.getCurrentTexture();
1175
+ return ret;
1176
+ }, arguments); },
1177
+ __wbg_getExtension_30c10f49f67eb05d: function() { return handleError(function (arg0, arg1, arg2) {
1178
+ const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
1179
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1180
+ }, arguments); },
1181
+ __wbg_getIndexedParameter_5d1c39ef8e171053: function() { return handleError(function (arg0, arg1, arg2) {
1182
+ const ret = arg0.getIndexedParameter(arg1 >>> 0, arg2 >>> 0);
1183
+ return ret;
1184
+ }, arguments); },
1185
+ __wbg_getMappedRange_28e816a763520e01: function() { return handleError(function (arg0, arg1, arg2) {
1186
+ const ret = arg0.getMappedRange(arg1, arg2);
1187
+ return ret;
1188
+ }, arguments); },
1189
+ __wbg_getParameter_4c67158a3cef7a34: function() { return handleError(function (arg0, arg1) {
1190
+ const ret = arg0.getParameter(arg1 >>> 0);
1191
+ return ret;
1192
+ }, arguments); },
1193
+ __wbg_getParameter_7fbe79a0114e119f: function() { return handleError(function (arg0, arg1) {
1194
+ const ret = arg0.getParameter(arg1 >>> 0);
1195
+ return ret;
1196
+ }, arguments); },
1197
+ __wbg_getPreferredCanvasFormat_0ef5034c8902201b: function(arg0) {
1198
+ const ret = arg0.getPreferredCanvasFormat();
1199
+ return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 102) - 1;
1200
+ },
1201
+ __wbg_getProgramInfoLog_01799fd7b07b7f3c: function(arg0, arg1, arg2) {
1202
+ const ret = arg1.getProgramInfoLog(arg2);
1203
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1204
+ var len1 = WASM_VECTOR_LEN;
1205
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
1206
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
1207
+ },
1208
+ __wbg_getProgramInfoLog_92d61551e1ab39ea: function(arg0, arg1, arg2) {
1209
+ const ret = arg1.getProgramInfoLog(arg2);
1210
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1211
+ var len1 = WASM_VECTOR_LEN;
1212
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
1213
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
1214
+ },
1215
+ __wbg_getProgramParameter_1e7562e7d66170c3: function(arg0, arg1, arg2) {
1216
+ const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
1217
+ return ret;
1218
+ },
1219
+ __wbg_getProgramParameter_3edd526f9e5f6c10: function(arg0, arg1, arg2) {
1220
+ const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
1221
+ return ret;
1222
+ },
1223
+ __wbg_getQueryParameter_0beb5dc153d8ca4f: function(arg0, arg1, arg2) {
1224
+ const ret = arg0.getQueryParameter(arg1, arg2 >>> 0);
1225
+ return ret;
1226
+ },
1227
+ __wbg_getShaderInfoLog_3cfe5b3e097d0f2d: function(arg0, arg1, arg2) {
1228
+ const ret = arg1.getShaderInfoLog(arg2);
1229
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1230
+ var len1 = WASM_VECTOR_LEN;
1231
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
1232
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
1233
+ },
1234
+ __wbg_getShaderInfoLog_8758e8aea7960121: function(arg0, arg1, arg2) {
1235
+ const ret = arg1.getShaderInfoLog(arg2);
1236
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1237
+ var len1 = WASM_VECTOR_LEN;
1238
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
1239
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
1240
+ },
1241
+ __wbg_getShaderParameter_a346f74d5ba41c4b: function(arg0, arg1, arg2) {
1242
+ const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
1243
+ return ret;
1244
+ },
1245
+ __wbg_getShaderParameter_fc64069fbc010d19: function(arg0, arg1, arg2) {
1246
+ const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
1247
+ return ret;
1248
+ },
1249
+ __wbg_getSupportedExtensions_f48b337512e8f8ce: function(arg0) {
1250
+ const ret = arg0.getSupportedExtensions();
1251
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1252
+ },
1253
+ __wbg_getSupportedProfiles_b5cc35261935c0c9: function(arg0) {
1254
+ const ret = arg0.getSupportedProfiles();
1255
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1256
+ },
1257
+ __wbg_getSyncParameter_8b7b36e9efd95806: function(arg0, arg1, arg2) {
1258
+ const ret = arg0.getSyncParameter(arg1, arg2 >>> 0);
1259
+ return ret;
1260
+ },
1261
+ __wbg_getUniformBlockIndex_0742ae35f926850a: function(arg0, arg1, arg2, arg3) {
1262
+ const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3));
1263
+ return ret;
1264
+ },
1265
+ __wbg_getUniformLocation_6352e0669c8f5393: function(arg0, arg1, arg2, arg3) {
1266
+ const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
1267
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1268
+ },
1269
+ __wbg_getUniformLocation_e0d11c86376cdd26: function(arg0, arg1, arg2, arg3) {
1270
+ const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
1271
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1272
+ },
1273
+ __wbg_get_0c55869fe53c7d14: function(arg0, arg1) {
1274
+ const ret = arg0[arg1 >>> 0];
1275
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1276
+ },
1277
+ __wbg_get_2080c49015e35254: function() { return handleError(function (arg0, arg1) {
1278
+ const ret = Reflect.get(arg0, arg1);
1279
+ return ret;
1280
+ }, arguments); },
1281
+ __wbg_get_unchecked_e6325ad374eff861: function(arg0, arg1) {
1282
+ const ret = arg0[arg1 >>> 0];
1283
+ return ret;
1284
+ },
1285
+ __wbg_gpu_514705c6dd1f0dab: function(arg0) {
1286
+ const ret = arg0.gpu;
1287
+ return ret;
1288
+ },
1289
+ __wbg_height_ac6f1c3f49c13fe2: function(arg0) {
1290
+ const ret = arg0.height;
1291
+ return ret;
1292
+ },
1293
+ __wbg_includes_40dae55ee37516e5: function(arg0, arg1, arg2) {
1294
+ const ret = arg0.includes(arg1, arg2);
1295
+ return ret;
1296
+ },
1297
+ __wbg_info_8554cb7af37427b6: function(arg0) {
1298
+ const ret = arg0.info;
1299
+ return ret;
1300
+ },
1301
+ __wbg_instanceof_HtmlCanvasElement_89f280683e987b9e: function(arg0) {
1302
+ let result;
1303
+ try {
1304
+ result = arg0 instanceof HTMLCanvasElement;
1305
+ } catch (_) {
1306
+ result = false;
1307
+ }
1308
+ const ret = result;
1309
+ return ret;
1310
+ },
1311
+ __wbg_instanceof_WebGl2RenderingContext_de6feb460369d6c6: function(arg0) {
1312
+ let result;
1313
+ try {
1314
+ result = arg0 instanceof WebGL2RenderingContext;
1315
+ } catch (_) {
1316
+ result = false;
1317
+ }
1318
+ const ret = result;
1319
+ return ret;
1320
+ },
1321
+ __wbg_instanceof_Window_5cf453f5639aa1a2: function(arg0) {
1322
+ let result;
1323
+ try {
1324
+ result = arg0 instanceof Window;
1325
+ } catch (_) {
1326
+ result = false;
1327
+ }
1328
+ const ret = result;
1329
+ return ret;
1330
+ },
1331
+ __wbg_invalidateFramebuffer_33206c632642a1bd: function() { return handleError(function (arg0, arg1, arg2) {
1332
+ arg0.invalidateFramebuffer(arg1 >>> 0, arg2);
1333
+ }, arguments); },
1334
+ __wbg_isFallbackAdapter_6a4fa7356d18310b: function(arg0) {
1335
+ const ret = arg0.isFallbackAdapter;
1336
+ return ret;
1337
+ },
1338
+ __wbg_is_2248ff2b575d60c7: function(arg0, arg1) {
1339
+ const ret = Object.is(arg0, arg1);
1340
+ return ret;
1341
+ },
1342
+ __wbg_label_fceb40a43a358e62: function(arg0, arg1) {
1343
+ const ret = arg1.label;
1344
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1345
+ const len1 = WASM_VECTOR_LEN;
1346
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
1347
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
1348
+ },
1349
+ __wbg_length_186163212ffe79c3: function(arg0) {
1350
+ const ret = arg0.length;
1351
+ return ret;
1352
+ },
1353
+ __wbg_length_b03a0fabb109b1e9: function(arg0) {
1354
+ const ret = arg0.length;
1355
+ return ret;
1356
+ },
1357
+ __wbg_limits_4e444eb8c2e61c45: function(arg0) {
1358
+ const ret = arg0.limits;
1359
+ return ret;
1360
+ },
1361
+ __wbg_limits_98515cc885d709ef: function(arg0) {
1362
+ const ret = arg0.limits;
1363
+ return ret;
1364
+ },
1365
+ __wbg_linkProgram_99848b73f1ebab5f: function(arg0, arg1) {
1366
+ arg0.linkProgram(arg1);
1367
+ },
1368
+ __wbg_linkProgram_dee7cda98bacb12f: function(arg0, arg1) {
1369
+ arg0.linkProgram(arg1);
1370
+ },
1371
+ __wbg_mapAsync_b0597127f5037286: function(arg0, arg1, arg2, arg3) {
1372
+ const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
1373
+ return ret;
1374
+ },
1375
+ __wbg_matchMedia_b53687d22ec43649: function() { return handleError(function (arg0, arg1, arg2) {
1376
+ const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2));
1377
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1378
+ }, arguments); },
1379
+ __wbg_matches_a47c420646498c64: function(arg0) {
1380
+ const ret = arg0.matches;
1381
+ return ret;
1382
+ },
1383
+ __wbg_maxBindGroupsPlusVertexBuffers_1face4afb5363937: function(arg0) {
1384
+ const ret = arg0.maxBindGroupsPlusVertexBuffers;
1385
+ return ret;
1386
+ },
1387
+ __wbg_maxBindGroups_a0b7e55762f095b9: function(arg0) {
1388
+ const ret = arg0.maxBindGroups;
1389
+ return ret;
1390
+ },
1391
+ __wbg_maxBindingsPerBindGroup_ec9067be38d6ec72: function(arg0) {
1392
+ const ret = arg0.maxBindingsPerBindGroup;
1393
+ return ret;
1394
+ },
1395
+ __wbg_maxBufferSize_a9ce15e541c64cd2: function(arg0) {
1396
+ const ret = arg0.maxBufferSize;
1397
+ return ret;
1398
+ },
1399
+ __wbg_maxColorAttachmentBytesPerSample_44089e129e1a2a1d: function(arg0) {
1400
+ const ret = arg0.maxColorAttachmentBytesPerSample;
1401
+ return ret;
1402
+ },
1403
+ __wbg_maxColorAttachments_6bd8156394ba618c: function(arg0) {
1404
+ const ret = arg0.maxColorAttachments;
1405
+ return ret;
1406
+ },
1407
+ __wbg_maxComputeInvocationsPerWorkgroup_7b086f15ef868934: function(arg0) {
1408
+ const ret = arg0.maxComputeInvocationsPerWorkgroup;
1409
+ return ret;
1410
+ },
1411
+ __wbg_maxComputeWorkgroupSizeX_8bbe505e0ac8dc18: function(arg0) {
1412
+ const ret = arg0.maxComputeWorkgroupSizeX;
1413
+ return ret;
1414
+ },
1415
+ __wbg_maxComputeWorkgroupSizeY_7228ed3935eecc31: function(arg0) {
1416
+ const ret = arg0.maxComputeWorkgroupSizeY;
1417
+ return ret;
1418
+ },
1419
+ __wbg_maxComputeWorkgroupSizeZ_6092b56a967f6f8d: function(arg0) {
1420
+ const ret = arg0.maxComputeWorkgroupSizeZ;
1421
+ return ret;
1422
+ },
1423
+ __wbg_maxComputeWorkgroupStorageSize_4773e3bd3936df36: function(arg0) {
1424
+ const ret = arg0.maxComputeWorkgroupStorageSize;
1425
+ return ret;
1426
+ },
1427
+ __wbg_maxComputeWorkgroupsPerDimension_79222bf8e8a90fbd: function(arg0) {
1428
+ const ret = arg0.maxComputeWorkgroupsPerDimension;
1429
+ return ret;
1430
+ },
1431
+ __wbg_maxDynamicStorageBuffersPerPipelineLayout_3ab5762b1b2c7fc2: function(arg0) {
1432
+ const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
1433
+ return ret;
1434
+ },
1435
+ __wbg_maxDynamicUniformBuffersPerPipelineLayout_722da31d0de1c256: function(arg0) {
1436
+ const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
1437
+ return ret;
1438
+ },
1439
+ __wbg_maxInterStageShaderVariables_821096d4b3020715: function(arg0) {
1440
+ const ret = arg0.maxInterStageShaderVariables;
1441
+ return ret;
1442
+ },
1443
+ __wbg_maxSampledTexturesPerShaderStage_c6aea9e05c0a02ca: function(arg0) {
1444
+ const ret = arg0.maxSampledTexturesPerShaderStage;
1445
+ return ret;
1446
+ },
1447
+ __wbg_maxSamplersPerShaderStage_3aa30f6c002d3a99: function(arg0) {
1448
+ const ret = arg0.maxSamplersPerShaderStage;
1449
+ return ret;
1450
+ },
1451
+ __wbg_maxStorageBufferBindingSize_84a2c2433627fca2: function(arg0) {
1452
+ const ret = arg0.maxStorageBufferBindingSize;
1453
+ return ret;
1454
+ },
1455
+ __wbg_maxStorageBuffersPerShaderStage_25b96748df28dc20: function(arg0) {
1456
+ const ret = arg0.maxStorageBuffersPerShaderStage;
1457
+ return ret;
1458
+ },
1459
+ __wbg_maxStorageTexturesPerShaderStage_53ed734f26e6c1ad: function(arg0) {
1460
+ const ret = arg0.maxStorageTexturesPerShaderStage;
1461
+ return ret;
1462
+ },
1463
+ __wbg_maxTextureArrayLayers_9ec487f1ce102992: function(arg0) {
1464
+ const ret = arg0.maxTextureArrayLayers;
1465
+ return ret;
1466
+ },
1467
+ __wbg_maxTextureDimension1D_faef91b2e9fa6740: function(arg0) {
1468
+ const ret = arg0.maxTextureDimension1D;
1469
+ return ret;
1470
+ },
1471
+ __wbg_maxTextureDimension2D_3a923eb2df4d9124: function(arg0) {
1472
+ const ret = arg0.maxTextureDimension2D;
1473
+ return ret;
1474
+ },
1475
+ __wbg_maxTextureDimension3D_943321fe5945464e: function(arg0) {
1476
+ const ret = arg0.maxTextureDimension3D;
1477
+ return ret;
1478
+ },
1479
+ __wbg_maxUniformBufferBindingSize_21e89ff761d576db: function(arg0) {
1480
+ const ret = arg0.maxUniformBufferBindingSize;
1481
+ return ret;
1482
+ },
1483
+ __wbg_maxUniformBuffersPerShaderStage_19a0bfb0189f7254: function(arg0) {
1484
+ const ret = arg0.maxUniformBuffersPerShaderStage;
1485
+ return ret;
1486
+ },
1487
+ __wbg_maxVertexAttributes_49aef6c51d07a280: function(arg0) {
1488
+ const ret = arg0.maxVertexAttributes;
1489
+ return ret;
1490
+ },
1491
+ __wbg_maxVertexBufferArrayStride_f68c4029e6f047ec: function(arg0) {
1492
+ const ret = arg0.maxVertexBufferArrayStride;
1493
+ return ret;
1494
+ },
1495
+ __wbg_maxVertexBuffers_ce9f15a623f9aac7: function(arg0) {
1496
+ const ret = arg0.maxVertexBuffers;
1497
+ return ret;
1498
+ },
1499
+ __wbg_minStorageBufferOffsetAlignment_529f1f52e61188fc: function(arg0) {
1500
+ const ret = arg0.minStorageBufferOffsetAlignment;
1501
+ return ret;
1502
+ },
1503
+ __wbg_minUniformBufferOffsetAlignment_519e26287e1996a3: function(arg0) {
1504
+ const ret = arg0.minUniformBufferOffsetAlignment;
1505
+ return ret;
1506
+ },
1507
+ __wbg_navigator_9641ab32fa612dd1: function(arg0) {
1508
+ const ret = arg0.navigator;
1509
+ return ret;
1510
+ },
1511
+ __wbg_navigator_c17f443a6fe5d38d: function(arg0) {
1512
+ const ret = arg0.navigator;
1513
+ return ret;
1514
+ },
1515
+ __wbg_new_2bfd0f45e60518b1: function() { return handleError(function (arg0, arg1) {
1516
+ const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
1517
+ return ret;
1518
+ }, arguments); },
1519
+ __wbg_new_37eb45aaf5eeb820: function() {
1520
+ const ret = new Array();
1521
+ return ret;
1522
+ },
1523
+ __wbg_new_787b9fb330d55d78: function(arg0, arg1) {
1524
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1525
+ return ret;
1526
+ },
1527
+ __wbg_new_bb74001155cb8ca8: function() {
1528
+ const ret = new Error();
1529
+ return ret;
1530
+ },
1531
+ __wbg_new_cd4348290afae586: function() {
1532
+ const ret = new Object();
1533
+ return ret;
1534
+ },
1535
+ __wbg_new_typed_6b60b99917da27d6: function() {
1536
+ const ret = new Object();
1537
+ return ret;
1538
+ },
1539
+ __wbg_new_typed_e09da9dae6ee5935: function(arg0, arg1) {
1540
+ try {
1541
+ var state0 = {a: arg0, b: arg1};
1542
+ var cb0 = (arg0, arg1) => {
1543
+ const a = state0.a;
1544
+ state0.a = 0;
1545
+ try {
1546
+ return wasm_bindgen__convert__closures_____invoke__h3f9e6c9cb5711c53(a, state0.b, arg0, arg1);
1547
+ } finally {
1548
+ state0.a = a;
1549
+ }
1550
+ };
1551
+ const ret = new Promise(cb0);
1552
+ return ret;
1553
+ } finally {
1554
+ state0.a = 0;
1555
+ }
1556
+ },
1557
+ __wbg_new_with_byte_offset_and_length_3cd32055a417f095: function(arg0, arg1, arg2) {
1558
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1559
+ return ret;
1560
+ },
1561
+ __wbg_of_027eb15371aac932: function(arg0) {
1562
+ const ret = Array.of(arg0);
1563
+ return ret;
1564
+ },
1565
+ __wbg_onSubmittedWorkDone_1190213cee1ecf7e: function(arg0) {
1566
+ const ret = arg0.onSubmittedWorkDone();
1567
+ return ret;
1568
+ },
1569
+ __wbg_pixelStorei_43dc7945a0d4d49c: function(arg0, arg1, arg2) {
1570
+ arg0.pixelStorei(arg1 >>> 0, arg2);
1571
+ },
1572
+ __wbg_pixelStorei_6dd56b4da047c480: function(arg0, arg1, arg2) {
1573
+ arg0.pixelStorei(arg1 >>> 0, arg2);
1574
+ },
1575
+ __wbg_player_new: function(arg0) {
1576
+ const ret = Player.__wrap(arg0);
1577
+ return ret;
1578
+ },
1579
+ __wbg_polygonOffset_41bc1f487e5f53fe: function(arg0, arg1, arg2) {
1580
+ arg0.polygonOffset(arg1, arg2);
1581
+ },
1582
+ __wbg_polygonOffset_acf166e60739dbfa: function(arg0, arg1, arg2) {
1583
+ arg0.polygonOffset(arg1, arg2);
1584
+ },
1585
+ __wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
1586
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1587
+ },
1588
+ __wbg_push_c9f4893fc209f768: function(arg0, arg1) {
1589
+ const ret = arg0.push(arg1);
1590
+ return ret;
1591
+ },
1592
+ __wbg_queryCounterEXT_d43bae4582de7efd: function(arg0, arg1, arg2) {
1593
+ arg0.queryCounterEXT(arg1, arg2 >>> 0);
1594
+ },
1595
+ __wbg_querySelectorAll_6c1bd81d448fb480: function() { return handleError(function (arg0, arg1, arg2) {
1596
+ const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
1597
+ return ret;
1598
+ }, arguments); },
1599
+ __wbg_querySelector_72201b7c62dc196b: function() { return handleError(function (arg0, arg1, arg2) {
1600
+ const ret = arg0.querySelector(getStringFromWasm0(arg1, arg2));
1601
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1602
+ }, arguments); },
1603
+ __wbg_queueMicrotask_1e8503a8a690f0a3: function(arg0) {
1604
+ const ret = arg0.queueMicrotask;
1605
+ return ret;
1606
+ },
1607
+ __wbg_queueMicrotask_4a1a4d8dd332373b: function(arg0) {
1608
+ queueMicrotask(arg0);
1609
+ },
1610
+ __wbg_queue_e250e2ebc49b39e0: function(arg0) {
1611
+ const ret = arg0.queue;
1612
+ return ret;
1613
+ },
1614
+ __wbg_readBuffer_49d4b278b9838d40: function(arg0, arg1) {
1615
+ arg0.readBuffer(arg1 >>> 0);
1616
+ },
1617
+ __wbg_readPixels_22316d250d820aff: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1618
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1619
+ }, arguments); },
1620
+ __wbg_readPixels_56a96c4d106afcbc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1621
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1622
+ }, arguments); },
1623
+ __wbg_readPixels_7c7b54a733248182: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
1624
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
1625
+ }, arguments); },
1626
+ __wbg_renderbufferStorageMultisample_d5b01825cc08514b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
1627
+ arg0.renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1628
+ },
1629
+ __wbg_renderbufferStorage_0d080ee86520d3bd: function(arg0, arg1, arg2, arg3, arg4) {
1630
+ arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
1631
+ },
1632
+ __wbg_renderbufferStorage_ebe429f577dae949: function(arg0, arg1, arg2, arg3, arg4) {
1633
+ arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
1634
+ },
1635
+ __wbg_requestAdapter_a539af006419f2e9: function(arg0, arg1) {
1636
+ const ret = arg0.requestAdapter(arg1);
1637
+ return ret;
1638
+ },
1639
+ __wbg_requestAdapter_b35b01d9a8802935: function(arg0) {
1640
+ const ret = arg0.requestAdapter();
1641
+ return ret;
1642
+ },
1643
+ __wbg_requestDevice_5cb8a582e55d08cb: function(arg0, arg1) {
1644
+ const ret = arg0.requestDevice(arg1);
1645
+ return ret;
1646
+ },
1647
+ __wbg_resolve_dbf78ab4942478b0: function(arg0) {
1648
+ const ret = Promise.resolve(arg0);
1649
+ return ret;
1650
+ },
1651
+ __wbg_samplerParameterf_1fb6c6796e22f10f: function(arg0, arg1, arg2, arg3) {
1652
+ arg0.samplerParameterf(arg1, arg2 >>> 0, arg3);
1653
+ },
1654
+ __wbg_samplerParameteri_defcb3b230e696e7: function(arg0, arg1, arg2, arg3) {
1655
+ arg0.samplerParameteri(arg1, arg2 >>> 0, arg3);
1656
+ },
1657
+ __wbg_scissor_17956d9d23dfe025: function(arg0, arg1, arg2, arg3, arg4) {
1658
+ arg0.scissor(arg1, arg2, arg3, arg4);
1659
+ },
1660
+ __wbg_scissor_bb7201f050f220ac: function(arg0, arg1, arg2, arg3, arg4) {
1661
+ arg0.scissor(arg1, arg2, arg3, arg4);
1662
+ },
1663
+ __wbg_setBindGroup_418c3e0eb6943ce0: function(arg0, arg1, arg2) {
1664
+ arg0.setBindGroup(arg1 >>> 0, arg2);
1665
+ },
1666
+ __wbg_setBindGroup_82d014e8f799f053: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1667
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
1668
+ }, arguments); },
1669
+ __wbg_setPipeline_b6f981027e02cd16: function(arg0, arg1) {
1670
+ arg0.setPipeline(arg1);
1671
+ },
1672
+ __wbg_setScissorRect_889235eeb784732b: function(arg0, arg1, arg2, arg3, arg4) {
1673
+ arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1674
+ },
1675
+ __wbg_setVertexBuffer_6db3b60e99280744: function(arg0, arg1, arg2, arg3) {
1676
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
1677
+ },
1678
+ __wbg_setVertexBuffer_cbf4ca1627c02f4c: function(arg0, arg1, arg2, arg3, arg4) {
1679
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
1680
+ },
1681
+ __wbg_setViewport_c0be08dcc8965ccf: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1682
+ arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
1683
+ },
1684
+ __wbg_set_118fefd528ab0a79: function(arg0, arg1, arg2) {
1685
+ arg0.set(arg1, arg2 >>> 0);
1686
+ },
1687
+ __wbg_set_2793479888329cb6: function() { return handleError(function (arg0, arg1, arg2) {
1688
+ const ret = Reflect.set(arg0, arg1, arg2);
1689
+ return ret;
1690
+ }, arguments); },
1691
+ __wbg_set_a_1c94f1413a06c773: function(arg0, arg1) {
1692
+ arg0.a = arg1;
1693
+ },
1694
+ __wbg_set_access_b0a6fbebfbe53242: function(arg0, arg1) {
1695
+ arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
1696
+ },
1697
+ __wbg_set_alpha_84214d12347c6647: function(arg0, arg1) {
1698
+ arg0.alpha = arg1;
1699
+ },
1700
+ __wbg_set_alpha_mode_278c6649365aff36: function(arg0, arg1) {
1701
+ arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
1702
+ },
1703
+ __wbg_set_alpha_to_coverage_enabled_1e879520cab4bb05: function(arg0, arg1) {
1704
+ arg0.alphaToCoverageEnabled = arg1 !== 0;
1705
+ },
1706
+ __wbg_set_array_layer_count_bd7a074559a0abaa: function(arg0, arg1) {
1707
+ arg0.arrayLayerCount = arg1 >>> 0;
1708
+ },
1709
+ __wbg_set_array_stride_f64_b132c6a79afeae43: function(arg0, arg1) {
1710
+ arg0.arrayStride = arg1;
1711
+ },
1712
+ __wbg_set_aspect_3b0dceed92671cc1: function(arg0, arg1) {
1713
+ arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
1714
+ },
1715
+ __wbg_set_aspect_8c866a3891032753: function(arg0, arg1) {
1716
+ arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
1717
+ },
1718
+ __wbg_set_attributes_67bbc44b08e038d6: function(arg0, arg1, arg2) {
1719
+ arg0.attributes = getArrayJsValueViewFromWasm0(arg1, arg2);
1720
+ },
1721
+ __wbg_set_b_a93bcfdd1c29a0bd: function(arg0, arg1) {
1722
+ arg0.b = arg1;
1723
+ },
1724
+ __wbg_set_base_array_layer_e745f84c2e5437e2: function(arg0, arg1) {
1725
+ arg0.baseArrayLayer = arg1 >>> 0;
1726
+ },
1727
+ __wbg_set_base_mip_level_fe08854fab09de85: function(arg0, arg1) {
1728
+ arg0.baseMipLevel = arg1 >>> 0;
1729
+ },
1730
+ __wbg_set_beginning_of_pass_write_index_a13b608f19d6a2f0: function(arg0, arg1) {
1731
+ arg0.beginningOfPassWriteIndex = arg1 >>> 0;
1732
+ },
1733
+ __wbg_set_bind_group_layouts_383f681565a30d8a: function(arg0, arg1, arg2) {
1734
+ arg0.bindGroupLayouts = getArrayJsValueViewFromWasm0(arg1, arg2);
1735
+ },
1736
+ __wbg_set_binding_bd7d6b01bb08823a: function(arg0, arg1) {
1737
+ arg0.binding = arg1 >>> 0;
1738
+ },
1739
+ __wbg_set_binding_dbed4a234264971a: function(arg0, arg1) {
1740
+ arg0.binding = arg1 >>> 0;
1741
+ },
1742
+ __wbg_set_blend_1f3e5b36f9c246cb: function(arg0, arg1) {
1743
+ arg0.blend = arg1;
1744
+ },
1745
+ __wbg_set_buffer_76841cdbff393f1d: function(arg0, arg1) {
1746
+ arg0.buffer = arg1;
1747
+ },
1748
+ __wbg_set_buffer_91f4e8e05066c37a: function(arg0, arg1) {
1749
+ arg0.buffer = arg1;
1750
+ },
1751
+ __wbg_set_buffers_47665c552e27672c: function(arg0, arg1, arg2) {
1752
+ arg0.buffers = getArrayJsValueViewFromWasm0(arg1, arg2);
1753
+ },
1754
+ __wbg_set_bytes_per_row_75441352f606ebc8: function(arg0, arg1) {
1755
+ arg0.bytesPerRow = arg1 >>> 0;
1756
+ },
1757
+ __wbg_set_clear_value_gpu_color_dict_303e0009591e5d26: function(arg0, arg1) {
1758
+ arg0.clearValue = arg1;
1759
+ },
1760
+ __wbg_set_code_130aebc49c4cadd3: function(arg0, arg1, arg2) {
1761
+ arg0.code = getStringFromWasm0(arg1, arg2);
1762
+ },
1763
+ __wbg_set_color_6d2de56a2224ec57: function(arg0, arg1) {
1764
+ arg0.color = arg1;
1765
+ },
1766
+ __wbg_set_color_attachments_e83f79badceda8b4: function(arg0, arg1, arg2) {
1767
+ arg0.colorAttachments = getArrayJsValueViewFromWasm0(arg1, arg2);
1768
+ },
1769
+ __wbg_set_compare_159af15eb77dbcd2: function(arg0, arg1) {
1770
+ arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
1771
+ },
1772
+ __wbg_set_count_4d1e9559a7f1b993: function(arg0, arg1) {
1773
+ arg0.count = arg1 >>> 0;
1774
+ },
1775
+ __wbg_set_cull_mode_31293d13bc064271: function(arg0, arg1) {
1776
+ arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
1777
+ },
1778
+ __wbg_set_depth_bias_b30728f3ab3f643e: function(arg0, arg1) {
1779
+ arg0.depthBias = arg1;
1780
+ },
1781
+ __wbg_set_depth_bias_clamp_5b58fd4819283038: function(arg0, arg1) {
1782
+ arg0.depthBiasClamp = arg1;
1783
+ },
1784
+ __wbg_set_depth_bias_slope_scale_8b8b20db6b43c43b: function(arg0, arg1) {
1785
+ arg0.depthBiasSlopeScale = arg1;
1786
+ },
1787
+ __wbg_set_depth_clear_value_1165941523836019: function(arg0, arg1) {
1788
+ arg0.depthClearValue = arg1;
1789
+ },
1790
+ __wbg_set_depth_compare_81dd71de7e433cc2: function(arg0, arg1) {
1791
+ arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
1792
+ },
1793
+ __wbg_set_depth_fail_op_ddf822c573cdf0c1: function(arg0, arg1) {
1794
+ arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
1795
+ },
1796
+ __wbg_set_depth_load_op_ca270acab0c1ca69: function(arg0, arg1) {
1797
+ arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
1798
+ },
1799
+ __wbg_set_depth_or_array_layers_e59f3988a095ccac: function(arg0, arg1) {
1800
+ arg0.depthOrArrayLayers = arg1 >>> 0;
1801
+ },
1802
+ __wbg_set_depth_read_only_49ca399f98b97955: function(arg0, arg1) {
1803
+ arg0.depthReadOnly = arg1 !== 0;
1804
+ },
1805
+ __wbg_set_depth_stencil_41e94739225cb2c3: function(arg0, arg1) {
1806
+ arg0.depthStencil = arg1;
1807
+ },
1808
+ __wbg_set_depth_stencil_attachment_36ce3695dfcb6b85: function(arg0, arg1) {
1809
+ arg0.depthStencilAttachment = arg1;
1810
+ },
1811
+ __wbg_set_depth_store_op_6cd6bdde49f9050d: function(arg0, arg1) {
1812
+ arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
1813
+ },
1814
+ __wbg_set_depth_write_enabled_4b5da11c77fbdab7: function(arg0, arg1) {
1815
+ arg0.depthWriteEnabled = arg1 !== 0;
1816
+ },
1817
+ __wbg_set_device_1940fd5f9e2a7fee: function(arg0, arg1) {
1818
+ arg0.device = arg1;
1819
+ },
1820
+ __wbg_set_dimension_88d0c9f16bb079fb: function(arg0, arg1) {
1821
+ arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
1822
+ },
1823
+ __wbg_set_dimension_bab9530fa3e311d8: function(arg0, arg1) {
1824
+ arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
1825
+ },
1826
+ __wbg_set_dst_factor_80c13f29a3e117cb: function(arg0, arg1) {
1827
+ arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
1828
+ },
1829
+ __wbg_set_end_of_pass_write_index_793fcfe3141dc357: function(arg0, arg1) {
1830
+ arg0.endOfPassWriteIndex = arg1 >>> 0;
1831
+ },
1832
+ __wbg_set_entries_552f52b2aa3b346d: function(arg0, arg1, arg2) {
1833
+ arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
1834
+ },
1835
+ __wbg_set_entries_d9929dbfa2aaa9a7: function(arg0, arg1, arg2) {
1836
+ arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
1837
+ },
1838
+ __wbg_set_entry_point_0eacf7b26b3637b0: function(arg0, arg1, arg2) {
1839
+ arg0.entryPoint = getStringFromWasm0(arg1, arg2);
1840
+ },
1841
+ __wbg_set_entry_point_bb3692db4a6065d0: function(arg0, arg1, arg2) {
1842
+ arg0.entryPoint = getStringFromWasm0(arg1, arg2);
1843
+ },
1844
+ __wbg_set_external_texture_1bef5ba626275d0a: function(arg0, arg1) {
1845
+ arg0.externalTexture = arg1;
1846
+ },
1847
+ __wbg_set_fail_op_739cc3815d38c95f: function(arg0, arg1) {
1848
+ arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
1849
+ },
1850
+ __wbg_set_format_1119b9930bd324e1: function(arg0, arg1) {
1851
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1852
+ },
1853
+ __wbg_set_format_443ea19e2d25a1e2: function(arg0, arg1) {
1854
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1855
+ },
1856
+ __wbg_set_format_459792306baadae5: function(arg0, arg1) {
1857
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1858
+ },
1859
+ __wbg_set_format_46b1c6b3acc10b24: function(arg0, arg1) {
1860
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1861
+ },
1862
+ __wbg_set_format_5a62f31a4690f935: function(arg0, arg1) {
1863
+ arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
1864
+ },
1865
+ __wbg_set_format_efec4f7d9471ddbb: function(arg0, arg1) {
1866
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1867
+ },
1868
+ __wbg_set_format_fd579d96fa4e468c: function(arg0, arg1) {
1869
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
1870
+ },
1871
+ __wbg_set_fragment_bea523f8973c326e: function(arg0, arg1) {
1872
+ arg0.fragment = arg1;
1873
+ },
1874
+ __wbg_set_front_face_30951d0404e9e6d4: function(arg0, arg1) {
1875
+ arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
1876
+ },
1877
+ __wbg_set_g_90eacc6608e549f8: function(arg0, arg1) {
1878
+ arg0.g = arg1;
1879
+ },
1880
+ __wbg_set_has_dynamic_offset_6e5f3385eb579529: function(arg0, arg1) {
1881
+ arg0.hasDynamicOffset = arg1 !== 0;
1882
+ },
1883
+ __wbg_set_height_3f64e19acf29f5fb: function(arg0, arg1) {
1884
+ arg0.height = arg1 >>> 0;
1885
+ },
1886
+ __wbg_set_height_ae0610d318c3428c: function(arg0, arg1) {
1887
+ arg0.height = arg1 >>> 0;
1888
+ },
1889
+ __wbg_set_height_ae24c2f7d580ae0a: function(arg0, arg1) {
1890
+ arg0.height = arg1 >>> 0;
1891
+ },
1892
+ __wbg_set_label_08745022b1ec7b66: function(arg0, arg1, arg2) {
1893
+ arg0.label = getStringFromWasm0(arg1, arg2);
1894
+ },
1895
+ __wbg_set_label_11c9eb57693a8459: function(arg0, arg1, arg2) {
1896
+ arg0.label = getStringFromWasm0(arg1, arg2);
1897
+ },
1898
+ __wbg_set_label_20c42b4ebeb250d5: function(arg0, arg1, arg2) {
1899
+ arg0.label = getStringFromWasm0(arg1, arg2);
1900
+ },
1901
+ __wbg_set_label_22e3966c8d513ba6: function(arg0, arg1, arg2) {
1902
+ arg0.label = getStringFromWasm0(arg1, arg2);
1903
+ },
1904
+ __wbg_set_label_5347fc976d15e94c: function(arg0, arg1, arg2) {
1905
+ arg0.label = getStringFromWasm0(arg1, arg2);
1906
+ },
1907
+ __wbg_set_label_644bc1b32c7917b0: function(arg0, arg1, arg2) {
1908
+ arg0.label = getStringFromWasm0(arg1, arg2);
1909
+ },
1910
+ __wbg_set_label_73c99dab6708c962: function(arg0, arg1, arg2) {
1911
+ arg0.label = getStringFromWasm0(arg1, arg2);
1912
+ },
1913
+ __wbg_set_label_85a21b5fdd57fd91: function(arg0, arg1, arg2) {
1914
+ arg0.label = getStringFromWasm0(arg1, arg2);
1915
+ },
1916
+ __wbg_set_label_89d2ffaf598df6a4: function(arg0, arg1, arg2) {
1917
+ arg0.label = getStringFromWasm0(arg1, arg2);
1918
+ },
1919
+ __wbg_set_label_9e68078b9533426b: function(arg0, arg1, arg2) {
1920
+ arg0.label = getStringFromWasm0(arg1, arg2);
1921
+ },
1922
+ __wbg_set_label_cba03ffef7ae90a3: function(arg0, arg1, arg2) {
1923
+ arg0.label = getStringFromWasm0(arg1, arg2);
1924
+ },
1925
+ __wbg_set_label_f654bcb731d4d9ca: function(arg0, arg1, arg2) {
1926
+ arg0.label = getStringFromWasm0(arg1, arg2);
1927
+ },
1928
+ __wbg_set_layout_200fc3b143da0a9e: function(arg0, arg1) {
1929
+ arg0.layout = arg1;
1930
+ },
1931
+ __wbg_set_layout_3f0cb99635c33123: function(arg0, arg1) {
1932
+ arg0.layout = arg1;
1933
+ },
1934
+ __wbg_set_layout_gpu_auto_layout_mode_2e8a53f8643b4f69: function(arg0, arg1) {
1935
+ arg0.layout = __wbindgen_enum_GpuAutoLayoutMode[arg1];
1936
+ },
1937
+ __wbg_set_load_op_e8c33d4bdd2772aa: function(arg0, arg1) {
1938
+ arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
1939
+ },
1940
+ __wbg_set_mapped_at_creation_8af5b87ccb898bbe: function(arg0, arg1) {
1941
+ arg0.mappedAtCreation = arg1 !== 0;
1942
+ },
1943
+ __wbg_set_mask_0de0e782abec3c25: function(arg0, arg1) {
1944
+ arg0.mask = arg1 >>> 0;
1945
+ },
1946
+ __wbg_set_min_binding_size_f64_c6d68d773b7051d3: function(arg0, arg1) {
1947
+ arg0.minBindingSize = arg1;
1948
+ },
1949
+ __wbg_set_mip_level_count_c0ac46de264d83ec: function(arg0, arg1) {
1950
+ arg0.mipLevelCount = arg1 >>> 0;
1951
+ },
1952
+ __wbg_set_mip_level_count_cd650972803ed9eb: function(arg0, arg1) {
1953
+ arg0.mipLevelCount = arg1 >>> 0;
1954
+ },
1955
+ __wbg_set_mip_level_f0c5ed95eedda453: function(arg0, arg1) {
1956
+ arg0.mipLevel = arg1 >>> 0;
1957
+ },
1958
+ __wbg_set_mode_51d2c5a5ac0f7ac9: function(arg0, arg1) {
1959
+ arg0.mode = __wbindgen_enum_GpuCanvasToneMappingMode[arg1];
1960
+ },
1961
+ __wbg_set_module_3dec1a50bca7870a: function(arg0, arg1) {
1962
+ arg0.module = arg1;
1963
+ },
1964
+ __wbg_set_module_b42baf3925e2a94a: function(arg0, arg1) {
1965
+ arg0.module = arg1;
1966
+ },
1967
+ __wbg_set_multisample_6af76792fae6efb1: function(arg0, arg1) {
1968
+ arg0.multisample = arg1;
1969
+ },
1970
+ __wbg_set_multisampled_ae3f9f01a324f57c: function(arg0, arg1) {
1971
+ arg0.multisampled = arg1 !== 0;
1972
+ },
1973
+ __wbg_set_offset_f64_15176b737de7dde0: function(arg0, arg1) {
1974
+ arg0.offset = arg1;
1975
+ },
1976
+ __wbg_set_offset_f64_52f728fc5c98a52c: function(arg0, arg1) {
1977
+ arg0.offset = arg1;
1978
+ },
1979
+ __wbg_set_offset_f64_9374d9e912985773: function(arg0, arg1) {
1980
+ arg0.offset = arg1;
1981
+ },
1982
+ __wbg_set_operation_e103287df7ac9cf6: function(arg0, arg1) {
1983
+ arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
1984
+ },
1985
+ __wbg_set_origin_gpu_origin_3d_dict_26016670147a706c: function(arg0, arg1) {
1986
+ arg0.origin = arg1;
1987
+ },
1988
+ __wbg_set_pass_op_4d08c3105f64a17a: function(arg0, arg1) {
1989
+ arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
1990
+ },
1991
+ __wbg_set_power_preference_6bc1d2697a0e7374: function(arg0, arg1) {
1992
+ arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
1993
+ },
1994
+ __wbg_set_primitive_ef867d733c4efb1c: function(arg0, arg1) {
1995
+ arg0.primitive = arg1;
1996
+ },
1997
+ __wbg_set_query_set_765c4c9ab99342cb: function(arg0, arg1) {
1998
+ arg0.querySet = arg1;
1999
+ },
2000
+ __wbg_set_r_1116d6a5f656263d: function(arg0, arg1) {
2001
+ arg0.r = arg1;
2002
+ },
2003
+ __wbg_set_required_features_5bda1420e19461b2: function(arg0, arg1, arg2) {
2004
+ arg0.requiredFeatures = getArrayJsValueViewFromWasm0(arg1, arg2);
2005
+ },
2006
+ __wbg_set_required_limits_e78b923d73f9b596: function(arg0, arg1) {
2007
+ arg0.requiredLimits = arg1;
2008
+ },
2009
+ __wbg_set_resolve_target_gpu_texture_view_a7a97a7c04d84698: function(arg0, arg1) {
2010
+ arg0.resolveTarget = arg1;
2011
+ },
2012
+ __wbg_set_resource_0f960a4279e7e400: function(arg0, arg1) {
2013
+ arg0.resource = arg1;
2014
+ },
2015
+ __wbg_set_resource_gpu_buffer_binding_53a2189a77dd38be: function(arg0, arg1) {
2016
+ arg0.resource = arg1;
2017
+ },
2018
+ __wbg_set_resource_gpu_texture_view_9153a2356b958667: function(arg0, arg1) {
2019
+ arg0.resource = arg1;
2020
+ },
2021
+ __wbg_set_rows_per_image_11e9552fb5c5c5ab: function(arg0, arg1) {
2022
+ arg0.rowsPerImage = arg1 >>> 0;
2023
+ },
2024
+ __wbg_set_sample_count_8262aacc91878e4d: function(arg0, arg1) {
2025
+ arg0.sampleCount = arg1 >>> 0;
2026
+ },
2027
+ __wbg_set_sample_type_563589178fc892fe: function(arg0, arg1) {
2028
+ arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
2029
+ },
2030
+ __wbg_set_sampler_ccdca76ef8e642ca: function(arg0, arg1) {
2031
+ arg0.sampler = arg1;
2032
+ },
2033
+ __wbg_set_shader_location_31dc427c303a32aa: function(arg0, arg1) {
2034
+ arg0.shaderLocation = arg1 >>> 0;
2035
+ },
2036
+ __wbg_set_size_f64_3ff72c0d736c42a1: function(arg0, arg1) {
2037
+ arg0.size = arg1;
2038
+ },
2039
+ __wbg_set_size_f64_9b65e4916b2eb111: function(arg0, arg1) {
2040
+ arg0.size = arg1;
2041
+ },
2042
+ __wbg_set_size_gpu_extent_3d_dict_bba6669c79c26190: function(arg0, arg1) {
2043
+ arg0.size = arg1;
2044
+ },
2045
+ __wbg_set_src_factor_7e90d4b7d8227fc5: function(arg0, arg1) {
2046
+ arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
2047
+ },
2048
+ __wbg_set_stencil_back_6b5aeefbb90ae3ae: function(arg0, arg1) {
2049
+ arg0.stencilBack = arg1;
2050
+ },
2051
+ __wbg_set_stencil_clear_value_56fa848198a9b430: function(arg0, arg1) {
2052
+ arg0.stencilClearValue = arg1 >>> 0;
2053
+ },
2054
+ __wbg_set_stencil_front_4ffeca9473bca095: function(arg0, arg1) {
2055
+ arg0.stencilFront = arg1;
2056
+ },
2057
+ __wbg_set_stencil_load_op_b7a9fe3ad789b6c6: function(arg0, arg1) {
2058
+ arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
2059
+ },
2060
+ __wbg_set_stencil_read_mask_7cfe0945679de134: function(arg0, arg1) {
2061
+ arg0.stencilReadMask = arg1 >>> 0;
2062
+ },
2063
+ __wbg_set_stencil_read_only_0dde0c073192b5fa: function(arg0, arg1) {
2064
+ arg0.stencilReadOnly = arg1 !== 0;
2065
+ },
2066
+ __wbg_set_stencil_store_op_d320bcbb72456a4c: function(arg0, arg1) {
2067
+ arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
2068
+ },
2069
+ __wbg_set_stencil_write_mask_765017d5830ee98a: function(arg0, arg1) {
2070
+ arg0.stencilWriteMask = arg1 >>> 0;
2071
+ },
2072
+ __wbg_set_step_mode_2b1318f00e2ddc02: function(arg0, arg1) {
2073
+ arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
2074
+ },
2075
+ __wbg_set_storage_texture_b9e95e260c9d49a3: function(arg0, arg1) {
2076
+ arg0.storageTexture = arg1;
2077
+ },
2078
+ __wbg_set_store_op_e2b740eddfd2713f: function(arg0, arg1) {
2079
+ arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
2080
+ },
2081
+ __wbg_set_strip_index_format_22ddab1b8f352c1d: function(arg0, arg1) {
2082
+ arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
2083
+ },
2084
+ __wbg_set_targets_07e15f3cca640faf: function(arg0, arg1, arg2) {
2085
+ arg0.targets = getArrayJsValueViewFromWasm0(arg1, arg2);
2086
+ },
2087
+ __wbg_set_texture_7b9ace323bfe7938: function(arg0, arg1) {
2088
+ arg0.texture = arg1;
2089
+ },
2090
+ __wbg_set_texture_84a5f84f0f451291: function(arg0, arg1) {
2091
+ arg0.texture = arg1;
2092
+ },
2093
+ __wbg_set_timestamp_writes_1d304b9eb09ff227: function(arg0, arg1) {
2094
+ arg0.timestampWrites = arg1;
2095
+ },
2096
+ __wbg_set_tone_mapping_23fcd4f846a61048: function(arg0, arg1) {
2097
+ arg0.toneMapping = arg1;
2098
+ },
2099
+ __wbg_set_topology_b29804e5549370f5: function(arg0, arg1) {
2100
+ arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
2101
+ },
2102
+ __wbg_set_type_ac87cc570da17000: function(arg0, arg1) {
2103
+ arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
2104
+ },
2105
+ __wbg_set_type_f3d1ad35dc7889f9: function(arg0, arg1) {
2106
+ arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
2107
+ },
2108
+ __wbg_set_unclipped_depth_59155eb615f193fe: function(arg0, arg1) {
2109
+ arg0.unclippedDepth = arg1 !== 0;
2110
+ },
2111
+ __wbg_set_usage_5ba672bf81ba9859: function(arg0, arg1) {
2112
+ arg0.usage = arg1 >>> 0;
2113
+ },
2114
+ __wbg_set_usage_b0070c2ce47149a6: function(arg0, arg1) {
2115
+ arg0.usage = arg1 >>> 0;
2116
+ },
2117
+ __wbg_set_usage_bac3cabe90090275: function(arg0, arg1) {
2118
+ arg0.usage = arg1 >>> 0;
2119
+ },
2120
+ __wbg_set_usage_f3e1a48118ff483a: function(arg0, arg1) {
2121
+ arg0.usage = arg1 >>> 0;
2122
+ },
2123
+ __wbg_set_vertex_00b1e17dc3fe7fb3: function(arg0, arg1) {
2124
+ arg0.vertex = arg1;
2125
+ },
2126
+ __wbg_set_view_dimension_e9e9cd07d7ad686d: function(arg0, arg1) {
2127
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
2128
+ },
2129
+ __wbg_set_view_dimension_eb197c35c45e572c: function(arg0, arg1) {
2130
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
2131
+ },
2132
+ __wbg_set_view_formats_2540cdb8dde31055: function(arg0, arg1, arg2) {
2133
+ arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
2134
+ },
2135
+ __wbg_set_view_formats_845b425c1d19e1af: function(arg0, arg1, arg2) {
2136
+ arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
2137
+ },
2138
+ __wbg_set_view_gpu_texture_view_9a3c34ba4d1969b8: function(arg0, arg1) {
2139
+ arg0.view = arg1;
2140
+ },
2141
+ __wbg_set_view_gpu_texture_view_efa644c1ce3c4deb: function(arg0, arg1) {
2142
+ arg0.view = arg1;
2143
+ },
2144
+ __wbg_set_visibility_65413465e7b24eb6: function(arg0, arg1) {
2145
+ arg0.visibility = arg1 >>> 0;
2146
+ },
2147
+ __wbg_set_width_5f89a551b5472887: function(arg0, arg1) {
2148
+ arg0.width = arg1 >>> 0;
2149
+ },
2150
+ __wbg_set_width_a2410cafbdefeb5a: function(arg0, arg1) {
2151
+ arg0.width = arg1 >>> 0;
2152
+ },
2153
+ __wbg_set_width_eb3001e1dcabb909: function(arg0, arg1) {
2154
+ arg0.width = arg1 >>> 0;
2155
+ },
2156
+ __wbg_set_write_mask_39ce121635fd4296: function(arg0, arg1) {
2157
+ arg0.writeMask = arg1 >>> 0;
2158
+ },
2159
+ __wbg_set_x_b078c58009aa57bd: function(arg0, arg1) {
2160
+ arg0.x = arg1 >>> 0;
2161
+ },
2162
+ __wbg_set_y_3df92c4bcff23616: function(arg0, arg1) {
2163
+ arg0.y = arg1 >>> 0;
2164
+ },
2165
+ __wbg_set_z_3633c53887a9ff5e: function(arg0, arg1) {
2166
+ arg0.z = arg1 >>> 0;
2167
+ },
2168
+ __wbg_shaderSource_519d0f56b613b2f9: function(arg0, arg1, arg2, arg3) {
2169
+ arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
2170
+ },
2171
+ __wbg_shaderSource_c4c06a3cbc2e7bf3: function(arg0, arg1, arg2, arg3) {
2172
+ arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
2173
+ },
2174
+ __wbg_stack_575c4e0918581b9c: function(arg0, arg1) {
2175
+ const ret = arg1.stack;
2176
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2177
+ const len1 = WASM_VECTOR_LEN;
2178
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
2179
+ getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
2180
+ },
2181
+ __wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc: function() {
2182
+ const ret = typeof globalThis === 'undefined' ? undefined : globalThis;
2183
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2184
+ },
2185
+ __wbg_static_accessor_GLOBAL_e4293fb22cbe77da: function() {
2186
+ const ret = typeof global === 'undefined' ? undefined : global;
2187
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2188
+ },
2189
+ __wbg_static_accessor_SELF_53bb20457401453d: function() {
2190
+ const ret = typeof self === 'undefined' ? undefined : self;
2191
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2192
+ },
2193
+ __wbg_static_accessor_WINDOW_b5e0810bfecb7feb: function() {
2194
+ const ret = typeof window === 'undefined' ? undefined : window;
2195
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2196
+ },
2197
+ __wbg_stencilFuncSeparate_bd578fbb298ad0e6: function(arg0, arg1, arg2, arg3, arg4) {
2198
+ arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
2199
+ },
2200
+ __wbg_stencilFuncSeparate_c4e19ab2f6a233b9: function(arg0, arg1, arg2, arg3, arg4) {
2201
+ arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
2202
+ },
2203
+ __wbg_stencilMaskSeparate_41c3f5591b508051: function(arg0, arg1, arg2) {
2204
+ arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
2205
+ },
2206
+ __wbg_stencilMaskSeparate_b009d9ab29dc5926: function(arg0, arg1, arg2) {
2207
+ arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
2208
+ },
2209
+ __wbg_stencilMask_1fe24adb96500c11: function(arg0, arg1) {
2210
+ arg0.stencilMask(arg1 >>> 0);
2211
+ },
2212
+ __wbg_stencilMask_6d5dbf91337de94e: function(arg0, arg1) {
2213
+ arg0.stencilMask(arg1 >>> 0);
2214
+ },
2215
+ __wbg_stencilOpSeparate_9a2068a0767d6507: function(arg0, arg1, arg2, arg3, arg4) {
2216
+ arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2217
+ },
2218
+ __wbg_stencilOpSeparate_f4319497016868f8: function(arg0, arg1, arg2, arg3, arg4) {
2219
+ arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2220
+ },
2221
+ __wbg_subgroupMaxSize_3586e822dc3603f6: function(arg0) {
2222
+ const ret = arg0.subgroupMaxSize;
2223
+ return ret;
2224
+ },
2225
+ __wbg_subgroupMinSize_17f758985cdd1dab: function(arg0) {
2226
+ const ret = arg0.subgroupMinSize;
2227
+ return ret;
2228
+ },
2229
+ __wbg_submit_077c85cc28e36892: function(arg0, arg1, arg2) {
2230
+ arg0.submit(getArrayJsValueViewFromWasm0(arg1, arg2));
2231
+ },
2232
+ __wbg_texImage2D_20b5002326193fe6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2233
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2234
+ }, arguments); },
2235
+ __wbg_texImage2D_5048d2cd8540da16: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2236
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2237
+ }, arguments); },
2238
+ __wbg_texImage2D_84bdef619a1ea935: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2239
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2240
+ }, arguments); },
2241
+ __wbg_texImage3D_5b7fe3781e1db22a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
2242
+ arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
2243
+ }, arguments); },
2244
+ __wbg_texImage3D_abf2fdb0f8c4c1b6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
2245
+ arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
2246
+ }, arguments); },
2247
+ __wbg_texParameteri_0afc5d515132fed2: function(arg0, arg1, arg2, arg3) {
2248
+ arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
2249
+ },
2250
+ __wbg_texParameteri_e24e4fdc17153838: function(arg0, arg1, arg2, arg3) {
2251
+ arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
2252
+ },
2253
+ __wbg_texStorage2D_e0ebb5940fa1fc5e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2254
+ arg0.texStorage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2255
+ },
2256
+ __wbg_texStorage3D_a82e5be79cb278dc: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2257
+ arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
2258
+ },
2259
+ __wbg_texSubImage2D_0fed1a7412bc7a63: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2260
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2261
+ }, arguments); },
2262
+ __wbg_texSubImage2D_1434c994889108aa: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2263
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2264
+ }, arguments); },
2265
+ __wbg_texSubImage2D_4343af4633b8b8f8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2266
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2267
+ }, arguments); },
2268
+ __wbg_texSubImage2D_4aef07460a86c81e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2269
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2270
+ }, arguments); },
2271
+ __wbg_texSubImage2D_9c7e2d1250b1f95f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2272
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2273
+ }, arguments); },
2274
+ __wbg_texSubImage2D_a26a8700e734449a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2275
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2276
+ }, arguments); },
2277
+ __wbg_texSubImage2D_a271f112c3b60b18: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2278
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2279
+ }, arguments); },
2280
+ __wbg_texSubImage2D_baff05c8a8de2e17: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2281
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2282
+ }, arguments); },
2283
+ __wbg_texSubImage3D_00e908f23d33228d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2284
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2285
+ }, arguments); },
2286
+ __wbg_texSubImage3D_286489de7bf7239a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2287
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2288
+ }, arguments); },
2289
+ __wbg_texSubImage3D_32223c3dd7dcdd78: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2290
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2291
+ }, arguments); },
2292
+ __wbg_texSubImage3D_5e8b27dc040faf8d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2293
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2294
+ }, arguments); },
2295
+ __wbg_texSubImage3D_b1b631c3011a209e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2296
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2297
+ }, arguments); },
2298
+ __wbg_texSubImage3D_e8f20815b70bc7cb: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2299
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2300
+ }, arguments); },
2301
+ __wbg_texSubImage3D_ed8982daddcccd1e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2302
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2303
+ }, arguments); },
2304
+ __wbg_then_656f253a5dd7d8ea: function(arg0, arg1, arg2) {
2305
+ const ret = arg0.then(arg1, arg2);
2306
+ return ret;
2307
+ },
2308
+ __wbg_then_e3f7f2d365708be8: function(arg0, arg1) {
2309
+ const ret = arg0.then(arg1);
2310
+ return ret;
2311
+ },
2312
+ __wbg_unconfigure_835307f58dc68d80: function(arg0) {
2313
+ arg0.unconfigure();
2314
+ },
2315
+ __wbg_uniform1f_0b36dc15cb2b4991: function(arg0, arg1, arg2) {
2316
+ arg0.uniform1f(arg1, arg2);
2317
+ },
2318
+ __wbg_uniform1f_fe417acc7c7a1dc5: function(arg0, arg1, arg2) {
2319
+ arg0.uniform1f(arg1, arg2);
2320
+ },
2321
+ __wbg_uniform1i_385ebc488d4d763f: function(arg0, arg1, arg2) {
2322
+ arg0.uniform1i(arg1, arg2);
2323
+ },
2324
+ __wbg_uniform1i_778a02a48ecdceed: function(arg0, arg1, arg2) {
2325
+ arg0.uniform1i(arg1, arg2);
2326
+ },
2327
+ __wbg_uniform1ui_79071fccd0396b88: function(arg0, arg1, arg2) {
2328
+ arg0.uniform1ui(arg1, arg2 >>> 0);
2329
+ },
2330
+ __wbg_uniform2fv_486658e6bcddfbaf: function(arg0, arg1, arg2, arg3) {
2331
+ arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2332
+ },
2333
+ __wbg_uniform2fv_71fe605c72879b61: function(arg0, arg1, arg2, arg3) {
2334
+ arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2335
+ },
2336
+ __wbg_uniform2iv_80c1acefe7258756: function(arg0, arg1, arg2, arg3) {
2337
+ arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2338
+ },
2339
+ __wbg_uniform2iv_d6efe574c69f5aed: function(arg0, arg1, arg2, arg3) {
2340
+ arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2341
+ },
2342
+ __wbg_uniform2uiv_f9619772d6706c37: function(arg0, arg1, arg2, arg3) {
2343
+ arg0.uniform2uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
2344
+ },
2345
+ __wbg_uniform3fv_431207a9407b7d29: function(arg0, arg1, arg2, arg3) {
2346
+ arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2347
+ },
2348
+ __wbg_uniform3fv_58fa948c65cb5f6c: function(arg0, arg1, arg2, arg3) {
2349
+ arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2350
+ },
2351
+ __wbg_uniform3iv_11889262cf74698c: function(arg0, arg1, arg2, arg3) {
2352
+ arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2353
+ },
2354
+ __wbg_uniform3iv_e9d02a45a4149457: function(arg0, arg1, arg2, arg3) {
2355
+ arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2356
+ },
2357
+ __wbg_uniform3uiv_b71a1165273e4af4: function(arg0, arg1, arg2, arg3) {
2358
+ arg0.uniform3uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
2359
+ },
2360
+ __wbg_uniform4f_14a3638afe93aa8f: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2361
+ arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
2362
+ },
2363
+ __wbg_uniform4f_5c31fb6dab645ad8: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2364
+ arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
2365
+ },
2366
+ __wbg_uniform4fv_a1415c11925ac651: function(arg0, arg1, arg2, arg3) {
2367
+ arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2368
+ },
2369
+ __wbg_uniform4fv_d3afea28181f5342: function(arg0, arg1, arg2, arg3) {
2370
+ arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2371
+ },
2372
+ __wbg_uniform4iv_c9e8520342091b0a: function(arg0, arg1, arg2, arg3) {
2373
+ arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2374
+ },
2375
+ __wbg_uniform4iv_fa18eabf499f4df7: function(arg0, arg1, arg2, arg3) {
2376
+ arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2377
+ },
2378
+ __wbg_uniform4uiv_7a5b848aa1084b38: function(arg0, arg1, arg2, arg3) {
2379
+ arg0.uniform4uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
2380
+ },
2381
+ __wbg_uniformBlockBinding_61c5a97721e0f36b: function(arg0, arg1, arg2, arg3) {
2382
+ arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0);
2383
+ },
2384
+ __wbg_uniformMatrix2fv_0a42d3c91d7cb169: function(arg0, arg1, arg2, arg3, arg4) {
2385
+ arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2386
+ },
2387
+ __wbg_uniformMatrix2fv_8b3774cc1f2dd2af: function(arg0, arg1, arg2, arg3, arg4) {
2388
+ arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2389
+ },
2390
+ __wbg_uniformMatrix2x3fv_f9e50997fac55ae7: function(arg0, arg1, arg2, arg3, arg4) {
2391
+ arg0.uniformMatrix2x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2392
+ },
2393
+ __wbg_uniformMatrix2x4fv_080d208b4f9c72be: function(arg0, arg1, arg2, arg3, arg4) {
2394
+ arg0.uniformMatrix2x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2395
+ },
2396
+ __wbg_uniformMatrix3fv_15b2b1f5505b8506: function(arg0, arg1, arg2, arg3, arg4) {
2397
+ arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2398
+ },
2399
+ __wbg_uniformMatrix3fv_df1958f8b617c8d6: function(arg0, arg1, arg2, arg3, arg4) {
2400
+ arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2401
+ },
2402
+ __wbg_uniformMatrix3x2fv_6730abc8ef13d7d3: function(arg0, arg1, arg2, arg3, arg4) {
2403
+ arg0.uniformMatrix3x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2404
+ },
2405
+ __wbg_uniformMatrix3x4fv_3eb72e0d85856655: function(arg0, arg1, arg2, arg3, arg4) {
2406
+ arg0.uniformMatrix3x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2407
+ },
2408
+ __wbg_uniformMatrix4fv_cd0ba72d1d780759: function(arg0, arg1, arg2, arg3, arg4) {
2409
+ arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2410
+ },
2411
+ __wbg_uniformMatrix4fv_edd2b51dbb1caffd: function(arg0, arg1, arg2, arg3, arg4) {
2412
+ arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2413
+ },
2414
+ __wbg_uniformMatrix4x2fv_b0c23910facd8e86: function(arg0, arg1, arg2, arg3, arg4) {
2415
+ arg0.uniformMatrix4x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2416
+ },
2417
+ __wbg_uniformMatrix4x3fv_b6f9b241f392f245: function(arg0, arg1, arg2, arg3, arg4) {
2418
+ arg0.uniformMatrix4x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2419
+ },
2420
+ __wbg_unmap_6a96b14c9ef5f7f5: function(arg0) {
2421
+ arg0.unmap();
2422
+ },
2423
+ __wbg_useProgram_d9c24a7d8632c4c1: function(arg0, arg1) {
2424
+ arg0.useProgram(arg1);
2425
+ },
2426
+ __wbg_useProgram_f6341ea2eeea1e5a: function(arg0, arg1) {
2427
+ arg0.useProgram(arg1);
2428
+ },
2429
+ __wbg_vertexAttribDivisorANGLE_5bec9a774ccd1cf8: function(arg0, arg1, arg2) {
2430
+ arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
2431
+ },
2432
+ __wbg_vertexAttribDivisor_5b64fc697c0496e1: function(arg0, arg1, arg2) {
2433
+ arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
2434
+ },
2435
+ __wbg_vertexAttribIPointer_a6240b64263fb63b: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2436
+ arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2437
+ },
2438
+ __wbg_vertexAttribPointer_39b706eb26c50057: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2439
+ arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
2440
+ },
2441
+ __wbg_vertexAttribPointer_9e0e4517b8d274bd: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2442
+ arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
2443
+ },
2444
+ __wbg_viewport_aaac6dd8cff1831a: function(arg0, arg1, arg2, arg3, arg4) {
2445
+ arg0.viewport(arg1, arg2, arg3, arg4);
2446
+ },
2447
+ __wbg_viewport_cdae9e8b2f33343d: function(arg0, arg1, arg2, arg3, arg4) {
2448
+ arg0.viewport(arg1, arg2, arg3, arg4);
2449
+ },
2450
+ __wbg_width_babc5dc7654771b1: function(arg0) {
2451
+ const ret = arg0.width;
2452
+ return ret;
2453
+ },
2454
+ __wbg_writeBuffer_d7640e64ceb69371: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2455
+ arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
2456
+ }, arguments); },
2457
+ __wbg_writeTexture_dba1e801af087dfd: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2458
+ arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
2459
+ }, arguments); },
2460
+ __wbindgen_generic_0000000000000001: function(arg0, arg1) {
2461
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2585, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2462
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c);
2463
+ return ret;
2464
+ },
2465
+ __wbindgen_generic_0000000000000002: function(arg0, arg1) {
2466
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 342, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2467
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab);
2468
+ return ret;
2469
+ },
2470
+ __wbindgen_generic_0000000000000003: function(arg0, arg1) {
2471
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 342, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2472
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_35);
2473
+ return ret;
2474
+ },
2475
+ __wbindgen_generic_0000000000000004: function(arg0, arg1) {
2476
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 342, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2477
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_36);
2478
+ return ret;
2479
+ },
2480
+ __wbindgen_generic_0000000000000005: function(arg0) {
2481
+ // Cast intrinsic for `F64 -> Externref`.
2482
+ const ret = arg0;
2483
+ return ret;
2484
+ },
2485
+ __wbindgen_generic_0000000000000006: function(arg0, arg1) {
2486
+ // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
2487
+ const ret = getArrayF32FromWasm0(arg0, arg1);
2488
+ return ret;
2489
+ },
2490
+ __wbindgen_generic_0000000000000007: function(arg0, arg1) {
2491
+ // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
2492
+ const ret = getArrayI16FromWasm0(arg0, arg1);
2493
+ return ret;
2494
+ },
2495
+ __wbindgen_generic_0000000000000008: function(arg0, arg1) {
2496
+ // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
2497
+ const ret = getArrayI32FromWasm0(arg0, arg1);
2498
+ return ret;
2499
+ },
2500
+ __wbindgen_generic_0000000000000009: function(arg0, arg1) {
2501
+ // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
2502
+ const ret = getArrayI8FromWasm0(arg0, arg1);
2503
+ return ret;
2504
+ },
2505
+ __wbindgen_generic_000000000000000a: function(arg0, arg1) {
2506
+ // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
2507
+ const ret = getArrayU16FromWasm0(arg0, arg1);
2508
+ return ret;
2509
+ },
2510
+ __wbindgen_generic_000000000000000b: function(arg0, arg1) {
2511
+ // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
2512
+ const ret = getArrayU32FromWasm0(arg0, arg1);
2513
+ return ret;
2514
+ },
2515
+ __wbindgen_generic_000000000000000c: function(arg0, arg1) {
2516
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
2517
+ const ret = getArrayU8FromWasm0(arg0, arg1);
2518
+ return ret;
2519
+ },
2520
+ __wbindgen_generic_000000000000000d: function(arg0, arg1) {
2521
+ // Cast intrinsic for `Ref(String) -> Externref`.
2522
+ const ret = getStringFromWasm0(arg0, arg1);
2523
+ return ret;
2524
+ },
2525
+ __wbindgen_init_externref_table: function() {
2526
+ const table = wasm.__wbindgen_externrefs;
2527
+ table.set(0, undefined);
2528
+ table.set(1024, undefined);
2529
+ table.set(1025, null);
2530
+ table.set(1026, true);
2531
+ table.set(1027, false);
2532
+ },
2533
+ };
2534
+ return {
2535
+ __proto__: null,
2536
+ "./pencil_web_bg.js": import0,
2537
+ };
2538
+ }
2539
+
2540
+ function wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c(arg0, arg1, arg2) {
2541
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__hd4acdde59c21f30c(arg0, arg1, arg2);
2542
+ if (ret[1]) {
2543
+ throw takeFromExternrefTable0(ret[0]);
2544
+ }
2545
+ }
2546
+
2547
+ function wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab(arg0, arg1, arg2) {
2548
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab(arg0, arg1, arg2);
2549
+ if (ret[1]) {
2550
+ throw takeFromExternrefTable0(ret[0]);
2551
+ }
2552
+ }
2553
+
2554
+ function wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_35(arg0, arg1, arg2) {
2555
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_35(arg0, arg1, arg2);
2556
+ if (ret[1]) {
2557
+ throw takeFromExternrefTable0(ret[0]);
2558
+ }
2559
+ }
2560
+
2561
+ function wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_36(arg0, arg1, arg2) {
2562
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h0ac39b197b40bdab_36(arg0, arg1, arg2);
2563
+ if (ret[1]) {
2564
+ throw takeFromExternrefTable0(ret[0]);
2565
+ }
2566
+ }
2567
+
2568
+ function wasm_bindgen__convert__closures_____invoke__h3f9e6c9cb5711c53(arg0, arg1, arg2, arg3) {
2569
+ wasm.wasm_bindgen__convert__closures_____invoke__h3f9e6c9cb5711c53(arg0, arg1, arg2, arg3);
2570
+ }
2571
+
2572
+
2573
+ const __wbindgen_enum_GpuAutoLayoutMode = ["auto"];
2574
+
2575
+
2576
+ const __wbindgen_enum_GpuBlendFactor = ["zero", "one", "src", "one-minus-src", "src-alpha", "one-minus-src-alpha", "dst", "one-minus-dst", "dst-alpha", "one-minus-dst-alpha", "src-alpha-saturated", "constant", "one-minus-constant", "src1", "one-minus-src1", "src1-alpha", "one-minus-src1-alpha"];
2577
+
2578
+
2579
+ const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
2580
+
2581
+
2582
+ const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
2583
+
2584
+
2585
+ const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
2586
+
2587
+
2588
+ const __wbindgen_enum_GpuCanvasToneMappingMode = ["standard", "extended"];
2589
+
2590
+
2591
+ const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
2592
+
2593
+
2594
+ const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
2595
+
2596
+
2597
+ const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
2598
+
2599
+
2600
+ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
2601
+
2602
+
2603
+ const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
2604
+
2605
+
2606
+ const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
2607
+
2608
+
2609
+ const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
2610
+
2611
+
2612
+ const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
2613
+
2614
+
2615
+ const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
2616
+
2617
+
2618
+ const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
2619
+
2620
+
2621
+ const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
2622
+
2623
+
2624
+ const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
2625
+
2626
+
2627
+ const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
2628
+
2629
+
2630
+ const __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16unorm", "r16snorm", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16unorm", "rg16snorm", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2uint", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16unorm", "rgba16snorm", "rgba16uint", "rgba16sint", "rgba16float", "rgba32uint", "rgba32sint", "rgba32float", "stencil8", "depth16unorm", "depth24plus", "depth24plus-stencil8", "depth32float", "depth32float-stencil8", "bc1-rgba-unorm", "bc1-rgba-unorm-srgb", "bc2-rgba-unorm", "bc2-rgba-unorm-srgb", "bc3-rgba-unorm", "bc3-rgba-unorm-srgb", "bc4-r-unorm", "bc4-r-snorm", "bc5-rg-unorm", "bc5-rg-snorm", "bc6h-rgb-ufloat", "bc6h-rgb-float", "bc7-rgba-unorm", "bc7-rgba-unorm-srgb", "etc2-rgb8unorm", "etc2-rgb8unorm-srgb", "etc2-rgb8a1unorm", "etc2-rgb8a1unorm-srgb", "etc2-rgba8unorm", "etc2-rgba8unorm-srgb", "eac-r11unorm", "eac-r11snorm", "eac-rg11unorm", "eac-rg11snorm", "astc-4x4-unorm", "astc-4x4-unorm-srgb", "astc-5x4-unorm", "astc-5x4-unorm-srgb", "astc-5x5-unorm", "astc-5x5-unorm-srgb", "astc-6x5-unorm", "astc-6x5-unorm-srgb", "astc-6x6-unorm", "astc-6x6-unorm-srgb", "astc-8x5-unorm", "astc-8x5-unorm-srgb", "astc-8x6-unorm", "astc-8x6-unorm-srgb", "astc-8x8-unorm", "astc-8x8-unorm-srgb", "astc-10x5-unorm", "astc-10x5-unorm-srgb", "astc-10x6-unorm", "astc-10x6-unorm-srgb", "astc-10x8-unorm", "astc-10x8-unorm-srgb", "astc-10x10-unorm", "astc-10x10-unorm-srgb", "astc-12x10-unorm", "astc-12x10-unorm-srgb", "astc-12x12-unorm", "astc-12x12-unorm-srgb"];
2631
+
2632
+
2633
+ const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
2634
+
2635
+
2636
+ const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
2637
+
2638
+
2639
+ const __wbindgen_enum_GpuVertexFormat = ["uint8", "uint8x2", "uint8x4", "sint8", "sint8x2", "sint8x4", "unorm8", "unorm8x2", "unorm8x4", "snorm8", "snorm8x2", "snorm8x4", "uint16", "uint16x2", "uint16x4", "sint16", "sint16x2", "sint16x4", "unorm16", "unorm16x2", "unorm16x4", "snorm16", "snorm16x2", "snorm16x4", "float16", "float16x2", "float16x4", "float32", "float32x2", "float32x3", "float32x4", "uint32", "uint32x2", "uint32x3", "uint32x4", "sint32", "sint32x2", "sint32x3", "sint32x4", "unorm10-10-10-2", "unorm8x4-bgra"];
2640
+
2641
+
2642
+ const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
2643
+ const PlayerFinalization = (typeof FinalizationRegistry === 'undefined')
2644
+ ? { register: () => {}, unregister: () => {} }
2645
+ : new FinalizationRegistry(ptr => wasm.__wbg_player_free(ptr, 1));
2646
+
2647
+ function addToExternrefTable0(obj) {
2648
+ const idx = wasm.__externref_table_alloc();
2649
+ wasm.__wbindgen_externrefs.set(idx, obj);
2650
+ return idx;
2651
+ }
2652
+
2653
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
2654
+ ? { register: () => {}, unregister: () => {} }
2655
+ : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
2656
+
2657
+ function debugString(val) {
2658
+ switch (typeof val) {
2659
+ // primitive types
2660
+ case 'number':
2661
+ case 'boolean':
2662
+ case 'undefined':
2663
+ return `${val}`;
2664
+ case 'string':
2665
+ return JSON.stringify(val);
2666
+ case 'bigint':
2667
+ return `${val}n`;
2668
+ case 'symbol':
2669
+ return val.description !== undefined
2670
+ ? `Symbol(${val.description})`
2671
+ : 'Symbol';
2672
+ case 'function':
2673
+ return typeof val.name === 'string' && val.name !== ''
2674
+ ? `Function(${val.name})`
2675
+ : 'Function';
2676
+ case 'object': {
2677
+ if (val === null) {
2678
+ return 'null';
2679
+ }
2680
+ // objects
2681
+ if (Array.isArray(val)) {
2682
+ return '[' + Array.from(val, debugString).join(', ') + ']';
2683
+ }
2684
+ // errors
2685
+ if (val instanceof Error) {
2686
+ return `${val.name}: ${val.message}\n${val.stack}`;
2687
+ }
2688
+
2689
+ const toStringOutput = toString.call(val);
2690
+ // Test for built-in
2691
+ const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
2692
+
2693
+ // Failed to match the standard '[object ClassName]'
2694
+ if (className === undefined) {
2695
+ return toStringOutput;
2696
+ }
2697
+ if (className === 'Object') {
2698
+ // we're a user defined class or Object
2699
+ // JSON.stringify avoids problems with cycles, and is generally much
2700
+ // easier than looping through ownProperties of `val`.
2701
+ try {
2702
+ return 'Object(' + JSON.stringify(val) + ')';
2703
+ } catch (_) {
2704
+ return 'Object';
2705
+ }
2706
+ }
2707
+ // TODO we could test for more things here, like `Set`s and `Map`s.
2708
+ return className;
2709
+ }
2710
+ // Per MDN: 'This list of values is exhaustive.'
2711
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description
2712
+ }
2713
+ }
2714
+
2715
+ function getArrayF32FromWasm0(ptr, len) {
2716
+ ptr = ptr >>> 0;
2717
+ return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
2718
+ }
2719
+
2720
+ function getArrayF64FromWasm0(ptr, len) {
2721
+ ptr = ptr >>> 0;
2722
+ return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
2723
+ }
2724
+
2725
+ function getArrayI16FromWasm0(ptr, len) {
2726
+ ptr = ptr >>> 0;
2727
+ return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
2728
+ }
2729
+
2730
+ function getArrayI32FromWasm0(ptr, len) {
2731
+ ptr = ptr >>> 0;
2732
+ return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
2733
+ }
2734
+
2735
+ function getArrayI8FromWasm0(ptr, len) {
2736
+ ptr = ptr >>> 0;
2737
+ return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
2738
+ }
2739
+
2740
+ function getArrayJsValueFromWasm0(ptr, len) {
2741
+ ptr = ptr >>> 0;
2742
+ const mem = getDataViewMemory0();
2743
+ const result = [];
2744
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
2745
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
2746
+ }
2747
+ wasm.__externref_drop_slice(ptr, len);
2748
+ return result;
2749
+ }
2750
+
2751
+ function getArrayJsValueViewFromWasm0(ptr, len) {
2752
+ ptr = ptr >>> 0;
2753
+ const mem = getDataViewMemory0();
2754
+ const result = [];
2755
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
2756
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
2757
+ }
2758
+ return result;
2759
+ }
2760
+
2761
+ function getArrayU16FromWasm0(ptr, len) {
2762
+ ptr = ptr >>> 0;
2763
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
2764
+ }
2765
+
2766
+ function getArrayU32FromWasm0(ptr, len) {
2767
+ ptr = ptr >>> 0;
2768
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
2769
+ }
2770
+
2771
+ function getArrayU8FromWasm0(ptr, len) {
2772
+ ptr = ptr >>> 0;
2773
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
2774
+ }
2775
+
2776
+ let cachedDataViewMemory0 = null;
2777
+ function getDataViewMemory0() {
2778
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
2779
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
2780
+ }
2781
+ return cachedDataViewMemory0;
2782
+ }
2783
+
2784
+ let cachedFloat32ArrayMemory0 = null;
2785
+ function getFloat32ArrayMemory0() {
2786
+ if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
2787
+ cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
2788
+ }
2789
+ return cachedFloat32ArrayMemory0;
2790
+ }
2791
+
2792
+ let cachedFloat64ArrayMemory0 = null;
2793
+ function getFloat64ArrayMemory0() {
2794
+ if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
2795
+ cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
2796
+ }
2797
+ return cachedFloat64ArrayMemory0;
2798
+ }
2799
+
2800
+ let cachedInt16ArrayMemory0 = null;
2801
+ function getInt16ArrayMemory0() {
2802
+ if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
2803
+ cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
2804
+ }
2805
+ return cachedInt16ArrayMemory0;
2806
+ }
2807
+
2808
+ let cachedInt32ArrayMemory0 = null;
2809
+ function getInt32ArrayMemory0() {
2810
+ if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
2811
+ cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
2812
+ }
2813
+ return cachedInt32ArrayMemory0;
2814
+ }
2815
+
2816
+ let cachedInt8ArrayMemory0 = null;
2817
+ function getInt8ArrayMemory0() {
2818
+ if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
2819
+ cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
2820
+ }
2821
+ return cachedInt8ArrayMemory0;
2822
+ }
2823
+
2824
+ function getStringFromWasm0(ptr, len) {
2825
+ ptr = ptr >>> 0;
2826
+ return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
2827
+ }
2828
+
2829
+ let cachedUint16ArrayMemory0 = null;
2830
+ function getUint16ArrayMemory0() {
2831
+ if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
2832
+ cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
2833
+ }
2834
+ return cachedUint16ArrayMemory0;
2835
+ }
2836
+
2837
+ let cachedUint32ArrayMemory0 = null;
2838
+ function getUint32ArrayMemory0() {
2839
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
2840
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
2841
+ }
2842
+ return cachedUint32ArrayMemory0;
2843
+ }
2844
+
2845
+ let cachedUint8ArrayMemory0 = null;
2846
+ function getUint8ArrayMemory0() {
2847
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
2848
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
2849
+ }
2850
+ return cachedUint8ArrayMemory0;
2851
+ }
2852
+
2853
+ function handleError(f, args) {
2854
+ try {
2855
+ return f.apply(this, args);
2856
+ } catch (e) {
2857
+ const idx = addToExternrefTable0(e);
2858
+ wasm.__wbindgen_exn_store(idx);
2859
+ }
2860
+ }
2861
+
2862
+ function isLikeNone(x) {
2863
+ return x === undefined || x === null;
2864
+ }
2865
+
2866
+ function makeMutClosure(arg0, arg1, f) {
2867
+ const state = { a: arg0, b: arg1, cnt: 1 };
2868
+ const real = (...args) => {
2869
+
2870
+ // First up with a closure we increment the internal reference
2871
+ // count. This ensures that the Rust closure environment won't
2872
+ // be deallocated while we're invoking it.
2873
+ state.cnt++;
2874
+ const a = state.a;
2875
+ state.a = 0;
2876
+ try {
2877
+ return f(a, state.b, ...args);
2878
+ } finally {
2879
+ state.a = a;
2880
+ real._wbg_cb_unref();
2881
+ }
2882
+ };
2883
+ real._wbg_cb_unref = () => {
2884
+ if (--state.cnt === 0) {
2885
+ wasm.__wbindgen_destroy_closure(state.a, state.b);
2886
+ state.a = 0;
2887
+ CLOSURE_DTORS.unregister(state);
2888
+ }
2889
+ };
2890
+ CLOSURE_DTORS.register(real, state, state);
2891
+ return real;
2892
+ }
2893
+
2894
+ function passArray8ToWasm0(arg, malloc) {
2895
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
2896
+ getUint8ArrayMemory0().set(arg, ptr / 1);
2897
+ WASM_VECTOR_LEN = arg.length;
2898
+ return ptr;
2899
+ }
2900
+
2901
+ function passArrayJsValueToWasm0(array, malloc) {
2902
+ const ptr = malloc(array.length * 4, 4) >>> 0;
2903
+ for (let i = 0; i < array.length; i++) {
2904
+ const add = addToExternrefTable0(array[i]);
2905
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
2906
+ }
2907
+ WASM_VECTOR_LEN = array.length;
2908
+ return ptr;
2909
+ }
2910
+
2911
+ function passStringToWasm0(arg, malloc, realloc) {
2912
+ if (realloc === undefined) {
2913
+ const buf = cachedTextEncoder.encode(arg);
2914
+ const ptr = malloc(buf.length, 1) >>> 0;
2915
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
2916
+ WASM_VECTOR_LEN = buf.length;
2917
+ return ptr;
2918
+ }
2919
+
2920
+ let len = arg.length;
2921
+ let ptr = malloc(len, 1) >>> 0;
2922
+
2923
+ const mem = getUint8ArrayMemory0();
2924
+
2925
+ let offset = 0;
2926
+
2927
+ for (; offset < len; offset++) {
2928
+ const code = arg.charCodeAt(offset);
2929
+ if (code > 0x7F) break;
2930
+ mem[ptr + offset] = code;
2931
+ }
2932
+ if (offset !== len) {
2933
+ if (offset !== 0) {
2934
+ arg = arg.slice(offset);
2935
+ }
2936
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
2937
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
2938
+ const ret = cachedTextEncoder.encodeInto(arg, view);
2939
+
2940
+ offset += ret.written;
2941
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
2942
+ }
2943
+
2944
+ WASM_VECTOR_LEN = offset;
2945
+ return ptr;
2946
+ }
2947
+
2948
+ function takeFromExternrefTable0(idx) {
2949
+ const value = wasm.__wbindgen_externrefs.get(idx);
2950
+ wasm.__externref_table_dealloc(idx);
2951
+ return value;
2952
+ }
2953
+
2954
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
2955
+ cachedTextDecoder.decode();
2956
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
2957
+ let numBytesDecoded = 0;
2958
+ function decodeText(bytes) {
2959
+ numBytesDecoded += bytes.length;
2960
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
2961
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
2962
+ cachedTextDecoder.decode();
2963
+ numBytesDecoded = bytes.length;
2964
+ }
2965
+ return cachedTextDecoder.decode(bytes);
2966
+ }
2967
+
2968
+ const cachedTextEncoder = new TextEncoder();
2969
+
2970
+ if (!('encodeInto' in cachedTextEncoder)) {
2971
+ cachedTextEncoder.encodeInto = function (arg, view) {
2972
+ const buf = cachedTextEncoder.encode(arg);
2973
+ view.set(buf);
2974
+ return {
2975
+ read: arg.length,
2976
+ written: buf.length
2977
+ };
2978
+ };
2979
+ }
2980
+
2981
+ let WASM_VECTOR_LEN = 0;
2982
+
2983
+ let wasmModule, wasmInstance, wasm;
2984
+ function __wbg_finalize_init(instance, module) {
2985
+ wasmInstance = instance;
2986
+ wasm = instance.exports;
2987
+ wasmModule = module;
2988
+ cachedDataViewMemory0 = null;
2989
+ cachedFloat32ArrayMemory0 = null;
2990
+ cachedFloat64ArrayMemory0 = null;
2991
+ cachedInt16ArrayMemory0 = null;
2992
+ cachedInt32ArrayMemory0 = null;
2993
+ cachedInt8ArrayMemory0 = null;
2994
+ cachedUint16ArrayMemory0 = null;
2995
+ cachedUint32ArrayMemory0 = null;
2996
+ cachedUint8ArrayMemory0 = null;
2997
+ wasm.__wbindgen_start();
2998
+ return wasm;
2999
+ }
3000
+
3001
+ async function __wbg_load(module, imports) {
3002
+ if (typeof Response === 'function' && module instanceof Response) {
3003
+ if (!module.ok) {
3004
+ throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
3005
+ }
3006
+
3007
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
3008
+ try {
3009
+ return await WebAssembly.instantiateStreaming(module, imports);
3010
+ } catch (e) {
3011
+ const validResponse = expectedResponseType(module.type);
3012
+
3013
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
3014
+ 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);
3015
+
3016
+ } else { throw e; }
3017
+ }
3018
+ }
3019
+
3020
+ const bytes = await module.arrayBuffer();
3021
+ return await WebAssembly.instantiate(bytes, imports);
3022
+ } else {
3023
+ const instance = await WebAssembly.instantiate(module, imports);
3024
+
3025
+ if (instance instanceof WebAssembly.Instance) {
3026
+ return { instance, module };
3027
+ } else {
3028
+ return instance;
3029
+ }
3030
+ }
3031
+
3032
+ function expectedResponseType(type) {
3033
+ switch (type) {
3034
+ case 'basic': case 'cors': case 'default': return true;
3035
+ }
3036
+ return false;
3037
+ }
3038
+ }
3039
+
3040
+ function initSync(module) {
3041
+ if (wasm !== undefined) return wasm;
3042
+
3043
+
3044
+ if (module !== undefined) {
3045
+ if (Object.getPrototypeOf(module) === Object.prototype) {
3046
+ ({module} = module)
3047
+ } else {
3048
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
3049
+ }
3050
+ }
3051
+
3052
+ const imports = __wbg_get_imports();
3053
+ if (!(module instanceof WebAssembly.Module)) {
3054
+ module = new WebAssembly.Module(module);
3055
+ }
3056
+ const instance = new WebAssembly.Instance(module, imports);
3057
+ return __wbg_finalize_init(instance, module);
3058
+ }
3059
+
3060
+ let __wbg_init_promise;
3061
+ async function __wbg_init(module_or_path) {
3062
+ if (wasm !== undefined) return wasm;
3063
+ if (__wbg_init_promise === undefined) {
3064
+ __wbg_init_promise = __wbg_init_once(module_or_path);
3065
+ __wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
3066
+ }
3067
+ return __wbg_init_promise;
3068
+ }
3069
+
3070
+ async function __wbg_init_once(module_or_path) {
3071
+
3072
+ if (module_or_path !== undefined) {
3073
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
3074
+ ({module_or_path} = module_or_path)
3075
+ } else {
3076
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
3077
+ }
3078
+ }
3079
+
3080
+ if (module_or_path === undefined) {
3081
+ module_or_path = new URL('pencil_web_bg.wasm', import.meta.url);
3082
+ }
3083
+ const imports = __wbg_get_imports();
3084
+
3085
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
3086
+ module_or_path = fetch(module_or_path);
3087
+ }
3088
+
3089
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
3090
+
3091
+ return __wbg_finalize_init(instance, module);
3092
+ }
3093
+
3094
+ export { initSync, __wbg_init as default };