tangled
alpha
login
or
join now
nonbinary.computer
/
weaver
atproto blogging
24
fork
atom
overview
issues
2
pulls
pipelines
bit of styling fixes
Orual
1 month ago
6eafc129
3c83bb11
+48
-877
7 changed files
expand all
collapse all
unified
split
crates
weaver-app
.env-dev
.env-prod
assets
styling
entry.css
public
editor_worker.js
embed_worker.js
src
components
entry.rs
env.rs
+10
crates/weaver-app/.env-dev
···
1
1
+
WEAVER_APP_ENV="dev"
2
2
+
WEAVER_APP_HOST="http://localhost"
3
3
+
WEAVER_APP_DOMAIN=""
4
4
+
WEAVER_PORT=8080
5
5
+
WEAVER_APP_SCOPES="atproto transition:generic"
6
6
+
WEAVER_CLIENT_NAME="Weaver"
7
7
+
8
8
+
WEAVER_LOGO_URI=""
9
9
+
WEAVER_TOS_URI=""
10
10
+
WEAVER_PRIVACY_POLICY_URI=""
-10
crates/weaver-app/.env-prod
···
1
1
-
WEAVER_APP_ENV="prod"
2
2
-
WEAVER_APP_HOST="https://alpha.weaver.sh"
3
3
-
WEAVER_APP_DOMAIN="https://alpha.weaver.sh"
4
4
-
WEAVER_PORT=8080
5
5
-
WEAVER_APP_SCOPES="atproto transition:generic"
6
6
-
WEAVER_CLIENT_NAME="Weaver"
7
7
-
8
8
-
WEAVER_LOGO_URI="https://alpha.weaver.sh/favicon.ico"
9
9
-
WEAVER_TOS_URI=""
10
10
-
WEAVER_PRIVACY_POLICY_URI=""
+3
-2
crates/weaver-app/assets/styling/entry.css
···
166
166
}
167
167
168
168
.entry-tag {
169
169
-
padding: 0.25rem 0.5rem 0.25rem 0;
169
169
+
padding: 0.25rem 0.5rem;
170
170
font-size: 0.85rem;
171
171
color: var(--color-subtle);
172
172
-
border-bottom: 1px solid var(--color-border);
172
172
+
background-color: var(--color-surface);
173
173
+
border: 1px solid var(--color-border);
173
174
text-decoration: none;
174
175
transition:
175
176
color 0.2s ease,
+12
-646
crates/weaver-app/public/editor_worker.js
···
17
17
? { register: () => {}, unregister: () => {} }
18
18
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
19
19
20
20
-
function debugString(val) {
21
21
-
// primitive types
22
22
-
const type = typeof val;
23
23
-
if (type == 'number' || type == 'boolean' || val == null) {
24
24
-
return `${val}`;
25
25
-
}
26
26
-
if (type == 'string') {
27
27
-
return `"${val}"`;
28
28
-
}
29
29
-
if (type == 'symbol') {
30
30
-
const description = val.description;
31
31
-
if (description == null) {
32
32
-
return 'Symbol';
33
33
-
} else {
34
34
-
return `Symbol(${description})`;
35
35
-
}
36
36
-
}
37
37
-
if (type == 'function') {
38
38
-
const name = val.name;
39
39
-
if (typeof name == 'string' && name.length > 0) {
40
40
-
return `Function(${name})`;
41
41
-
} else {
42
42
-
return 'Function';
43
43
-
}
44
44
-
}
45
45
-
// objects
46
46
-
if (Array.isArray(val)) {
47
47
-
const length = val.length;
48
48
-
let debug = '[';
49
49
-
if (length > 0) {
50
50
-
debug += debugString(val[0]);
51
51
-
}
52
52
-
for(let i = 1; i < length; i++) {
53
53
-
debug += ', ' + debugString(val[i]);
54
54
-
}
55
55
-
debug += ']';
56
56
-
return debug;
57
57
-
}
58
58
-
// Test for built-in
59
59
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
60
60
-
let className;
61
61
-
if (builtInMatches && builtInMatches.length > 1) {
62
62
-
className = builtInMatches[1];
63
63
-
} else {
64
64
-
// Failed to match the standard '[object ClassName]'
65
65
-
return toString.call(val);
66
66
-
}
67
67
-
if (className == 'Object') {
68
68
-
// we're a user defined class or Object
69
69
-
// JSON.stringify avoids problems with cycles, and is generally much
70
70
-
// easier than looping through ownProperties of `val`.
71
71
-
try {
72
72
-
return 'Object(' + JSON.stringify(val) + ')';
73
73
-
} catch (_) {
74
74
-
return 'Object';
75
75
-
}
76
76
-
}
77
77
-
// errors
78
78
-
if (val instanceof Error) {
79
79
-
return `${val.name}: ${val.message}\n${val.stack}`;
80
80
-
}
81
81
-
// TODO we could test for more things here, like `Set`s and `Map`s.
82
82
-
return className;
83
83
-
}
84
84
-
85
20
function getArrayU8FromWasm0(ptr, len) {
86
21
ptr = ptr >>> 0;
87
22
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
···
232
167
233
168
let WASM_VECTOR_LEN = 0;
234
169
235
235
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2) {
236
236
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2);
237
237
-
}
238
238
-
239
239
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______3_(arg0, arg1) {
240
240
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______3_(arg0, arg1);
241
241
-
}
242
242
-
243
243
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_(arg0, arg1) {
244
244
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_(arg0, arg1);
170
170
+
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) {
171
171
+
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2);
245
172
}
246
173
247
247
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______(arg0, arg1) {
248
248
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______(arg0, arg1);
174
174
+
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2) {
175
175
+
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2);
249
176
}
250
177
251
251
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) {
252
252
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2);
253
253
-
}
254
254
-
255
255
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent______1_(arg0, arg1, arg2) {
256
256
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent______1_(arg0, arg1, arg2);
257
257
-
}
258
258
-
259
259
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______2_(arg0, arg1) {
260
260
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______2_(arg0, arg1);
261
261
-
}
262
262
-
263
263
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_CloseEvent__CloseEvent_____(arg0, arg1, arg2) {
264
264
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_CloseEvent__CloseEvent_____(arg0, arg1, arg2);
265
265
-
}
266
266
-
267
267
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2, arg3) {
268
268
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2, arg3);
269
269
-
}
270
270
-
271
271
-
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
272
272
-
273
273
-
const __wbindgen_enum_ReadableStreamType = ["bytes"];
274
274
-
275
275
-
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
276
276
-
277
277
-
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
278
278
-
279
279
-
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
280
280
-
281
281
-
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
282
282
-
? { register: () => {}, unregister: () => {} }
283
283
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
284
284
-
285
285
-
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
286
286
-
? { register: () => {}, unregister: () => {} }
287
287
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
288
288
-
289
289
-
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
290
290
-
? { register: () => {}, unregister: () => {} }
291
291
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
292
292
-
293
178
const JSOwnerFinalization = (typeof FinalizationRegistry === 'undefined')
294
179
? { register: () => {}, unregister: () => {} }
295
180
: new FinalizationRegistry(ptr => wasm.__wbg_jsowner_free(ptr >>> 0, 1));
296
181
297
297
-
class IntoUnderlyingByteSource {
298
298
-
__destroy_into_raw() {
299
299
-
const ptr = this.__wbg_ptr;
300
300
-
this.__wbg_ptr = 0;
301
301
-
IntoUnderlyingByteSourceFinalization.unregister(this);
302
302
-
return ptr;
303
303
-
}
304
304
-
free() {
305
305
-
const ptr = this.__destroy_into_raw();
306
306
-
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
307
307
-
}
308
308
-
/**
309
309
-
* @returns {number}
310
310
-
*/
311
311
-
get autoAllocateChunkSize() {
312
312
-
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
313
313
-
return ret >>> 0;
314
314
-
}
315
315
-
/**
316
316
-
* @param {ReadableByteStreamController} controller
317
317
-
* @returns {Promise<any>}
318
318
-
*/
319
319
-
pull(controller) {
320
320
-
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
321
321
-
return ret;
322
322
-
}
323
323
-
/**
324
324
-
* @param {ReadableByteStreamController} controller
325
325
-
*/
326
326
-
start(controller) {
327
327
-
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
328
328
-
}
329
329
-
/**
330
330
-
* @returns {ReadableStreamType}
331
331
-
*/
332
332
-
get type() {
333
333
-
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
334
334
-
return __wbindgen_enum_ReadableStreamType[ret];
335
335
-
}
336
336
-
cancel() {
337
337
-
const ptr = this.__destroy_into_raw();
338
338
-
wasm.intounderlyingbytesource_cancel(ptr);
339
339
-
}
340
340
-
}
341
341
-
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
342
342
-
__exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource;
343
343
-
344
344
-
class IntoUnderlyingSink {
345
345
-
__destroy_into_raw() {
346
346
-
const ptr = this.__wbg_ptr;
347
347
-
this.__wbg_ptr = 0;
348
348
-
IntoUnderlyingSinkFinalization.unregister(this);
349
349
-
return ptr;
350
350
-
}
351
351
-
free() {
352
352
-
const ptr = this.__destroy_into_raw();
353
353
-
wasm.__wbg_intounderlyingsink_free(ptr, 0);
354
354
-
}
355
355
-
/**
356
356
-
* @param {any} reason
357
357
-
* @returns {Promise<any>}
358
358
-
*/
359
359
-
abort(reason) {
360
360
-
const ptr = this.__destroy_into_raw();
361
361
-
const ret = wasm.intounderlyingsink_abort(ptr, reason);
362
362
-
return ret;
363
363
-
}
364
364
-
/**
365
365
-
* @returns {Promise<any>}
366
366
-
*/
367
367
-
close() {
368
368
-
const ptr = this.__destroy_into_raw();
369
369
-
const ret = wasm.intounderlyingsink_close(ptr);
370
370
-
return ret;
371
371
-
}
372
372
-
/**
373
373
-
* @param {any} chunk
374
374
-
* @returns {Promise<any>}
375
375
-
*/
376
376
-
write(chunk) {
377
377
-
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
378
378
-
return ret;
379
379
-
}
380
380
-
}
381
381
-
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
382
382
-
__exports.IntoUnderlyingSink = IntoUnderlyingSink;
383
383
-
384
384
-
class IntoUnderlyingSource {
385
385
-
__destroy_into_raw() {
386
386
-
const ptr = this.__wbg_ptr;
387
387
-
this.__wbg_ptr = 0;
388
388
-
IntoUnderlyingSourceFinalization.unregister(this);
389
389
-
return ptr;
390
390
-
}
391
391
-
free() {
392
392
-
const ptr = this.__destroy_into_raw();
393
393
-
wasm.__wbg_intounderlyingsource_free(ptr, 0);
394
394
-
}
395
395
-
/**
396
396
-
* @param {ReadableStreamDefaultController} controller
397
397
-
* @returns {Promise<any>}
398
398
-
*/
399
399
-
pull(controller) {
400
400
-
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
401
401
-
return ret;
402
402
-
}
403
403
-
cancel() {
404
404
-
const ptr = this.__destroy_into_raw();
405
405
-
wasm.intounderlyingsource_cancel(ptr);
406
406
-
}
407
407
-
}
408
408
-
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
409
409
-
__exports.IntoUnderlyingSource = IntoUnderlyingSource;
410
410
-
411
182
class JSOwner {
412
183
__destroy_into_raw() {
413
184
const ptr = this.__wbg_ptr;
···
458
229
function __wbg_get_imports() {
459
230
const imports = {};
460
231
imports.wbg = {};
461
461
-
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
462
462
-
const v = arg0;
463
463
-
const ret = typeof(v) === 'boolean' ? v : undefined;
464
464
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
465
465
-
};
466
466
-
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
467
467
-
const ret = debugString(arg1);
468
468
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
469
469
-
const len1 = WASM_VECTOR_LEN;
470
470
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
471
471
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
472
472
-
};
473
232
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
474
233
const ret = typeof(arg0) === 'function';
475
234
return ret;
···
487
246
const ret = arg0 === undefined;
488
247
return ret;
489
248
};
490
490
-
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
491
491
-
const obj = arg1;
492
492
-
const ret = typeof(obj) === 'string' ? obj : undefined;
493
493
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
494
494
-
var len1 = WASM_VECTOR_LEN;
495
495
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
496
496
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
497
497
-
};
498
249
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
499
250
throw new Error(getStringFromWasm0(arg0, arg1));
500
251
};
501
252
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
502
253
arg0._wbg_cb_unref();
503
254
};
504
504
-
imports.wbg.__wbg_abort_07646c894ebbf2bd = function(arg0) {
505
505
-
arg0.abort();
506
506
-
};
507
507
-
imports.wbg.__wbg_abort_399ecbcfd6ef3c8e = function(arg0, arg1) {
508
508
-
arg0.abort(arg1);
509
509
-
};
510
510
-
imports.wbg.__wbg_addEventListener_e792423147a80626 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
511
511
-
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
512
512
-
}, arguments) };
513
513
-
imports.wbg.__wbg_append_c5cbdf46455cc776 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
514
514
-
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
515
515
-
}, arguments) };
516
516
-
imports.wbg.__wbg_arrayBuffer_c04af4fce566092d = function() { return handleError(function (arg0) {
517
517
-
const ret = arg0.arrayBuffer();
518
518
-
return ret;
519
519
-
}, arguments) };
520
520
-
imports.wbg.__wbg_body_947b901c33f7fe32 = function(arg0) {
521
521
-
const ret = arg0.body;
522
522
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
523
523
-
};
524
524
-
imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) {
525
525
-
const ret = arg0.buffer;
526
526
-
return ret;
527
527
-
};
528
528
-
imports.wbg.__wbg_byobRequest_f8e3517f5f8ad284 = function(arg0) {
529
529
-
const ret = arg0.byobRequest;
530
530
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
531
531
-
};
532
532
-
imports.wbg.__wbg_byteLength_faa9938885bdeee6 = function(arg0) {
533
533
-
const ret = arg0.byteLength;
534
534
-
return ret;
535
535
-
};
536
536
-
imports.wbg.__wbg_byteOffset_3868b6a19ba01dea = function(arg0) {
537
537
-
const ret = arg0.byteOffset;
538
538
-
return ret;
539
539
-
};
540
255
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
541
256
const ret = arg0.call(arg1, arg2);
542
257
return ret;
···
545
260
const ret = arg0.call(arg1);
546
261
return ret;
547
262
}, arguments) };
548
548
-
imports.wbg.__wbg_cancel_a65cf45dca50ba4c = function(arg0) {
549
549
-
const ret = arg0.cancel();
550
550
-
return ret;
551
551
-
};
552
552
-
imports.wbg.__wbg_catch_b9db41d97d42bd02 = function(arg0, arg1) {
553
553
-
const ret = arg0.catch(arg1);
554
554
-
return ret;
555
555
-
};
556
556
-
imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
557
557
-
const ret = clearTimeout(arg0);
558
558
-
return ret;
559
559
-
};
560
560
-
imports.wbg.__wbg_clearTimeout_f7a6c75a3d228439 = function() { return handleError(function (arg0, arg1) {
561
561
-
arg0.clearTimeout(arg1);
562
562
-
}, arguments) };
563
563
-
imports.wbg.__wbg_close_0af5661bf3d335f2 = function() { return handleError(function (arg0) {
564
564
-
arg0.close();
565
565
-
}, arguments) };
566
263
imports.wbg.__wbg_close_0b472ca2d13f54f7 = function(arg0) {
567
264
arg0.close();
568
265
};
569
569
-
imports.wbg.__wbg_close_1db3952de1b5b1cf = function() { return handleError(function (arg0) {
570
570
-
arg0.close();
571
571
-
}, arguments) };
572
572
-
imports.wbg.__wbg_close_3ec111e7b23d94d8 = function() { return handleError(function (arg0) {
573
573
-
arg0.close();
574
574
-
}, arguments) };
575
575
-
imports.wbg.__wbg_code_85a811fe6ca962be = function(arg0) {
576
576
-
const ret = arg0.code;
577
577
-
return ret;
578
578
-
};
579
579
-
imports.wbg.__wbg_code_c2a85f2863ec11b3 = function(arg0) {
580
580
-
const ret = arg0.code;
581
581
-
return ret;
582
582
-
};
583
266
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
584
267
const ret = arg0.crypto;
585
268
return ret;
···
588
271
const ret = arg0.data;
589
272
return ret;
590
273
};
591
591
-
imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
592
592
-
const ret = arg0.done;
593
593
-
return ret;
594
594
-
};
595
595
-
imports.wbg.__wbg_enqueue_a7e6b1ee87963aad = function() { return handleError(function (arg0, arg1) {
596
596
-
arg0.enqueue(arg1);
597
597
-
}, arguments) };
598
274
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
599
275
let deferred0_0;
600
276
let deferred0_1;
···
606
282
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
607
283
}
608
284
};
609
609
-
imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
610
610
-
const ret = fetch(arg0);
611
611
-
return ret;
612
612
-
};
613
613
-
imports.wbg.__wbg_fetch_90447c28cc0b095e = function(arg0, arg1) {
614
614
-
const ret = arg0.fetch(arg1);
615
615
-
return ret;
616
616
-
};
617
617
-
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
618
618
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
619
619
-
}, arguments) };
620
285
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
621
286
arg0.getRandomValues(arg1);
622
287
}, arguments) };
623
623
-
imports.wbg.__wbg_getReader_48e00749fe3f6089 = function() { return handleError(function (arg0) {
624
624
-
const ret = arg0.getReader();
625
625
-
return ret;
626
626
-
}, arguments) };
627
627
-
imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
628
628
-
const ret = Reflect.get(arg0, arg1);
629
629
-
return ret;
630
630
-
}, arguments) };
631
631
-
imports.wbg.__wbg_get_done_f98a6e62c4e18fb9 = function(arg0) {
632
632
-
const ret = arg0.done;
633
633
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
634
634
-
};
635
635
-
imports.wbg.__wbg_get_value_63e39884ef11812e = function(arg0) {
636
636
-
const ret = arg0.value;
637
637
-
return ret;
638
638
-
};
639
639
-
imports.wbg.__wbg_has_0e670569d65d3a45 = function() { return handleError(function (arg0, arg1) {
640
640
-
const ret = Reflect.has(arg0, arg1);
641
641
-
return ret;
642
642
-
}, arguments) };
643
643
-
imports.wbg.__wbg_headers_654c30e1bcccc552 = function(arg0) {
644
644
-
const ret = arg0.headers;
645
645
-
return ret;
646
646
-
};
647
647
-
imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
648
648
-
let result;
649
649
-
try {
650
650
-
result = arg0 instanceof ArrayBuffer;
651
651
-
} catch (_) {
652
652
-
result = false;
653
653
-
}
654
654
-
const ret = result;
655
655
-
return ret;
656
656
-
};
657
657
-
imports.wbg.__wbg_instanceof_Blob_e9c51ce33a4b6181 = function(arg0) {
658
658
-
let result;
659
659
-
try {
660
660
-
result = arg0 instanceof Blob;
661
661
-
} catch (_) {
662
662
-
result = false;
663
663
-
}
664
664
-
const ret = result;
665
665
-
return ret;
666
666
-
};
667
667
-
imports.wbg.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function(arg0) {
668
668
-
let result;
669
669
-
try {
670
670
-
result = arg0 instanceof Response;
671
671
-
} catch (_) {
672
672
-
result = false;
673
673
-
}
674
674
-
const ret = result;
675
675
-
return ret;
676
676
-
};
677
288
imports.wbg.__wbg_instanceof_Window_b5cf7783caa68180 = function(arg0) {
678
289
let result;
679
290
try {
···
682
293
result = false;
683
294
}
684
295
const ret = result;
685
685
-
return ret;
686
686
-
};
687
687
-
imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() {
688
688
-
const ret = Symbol.iterator;
689
296
return ret;
690
297
};
691
298
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
···
733
340
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
734
341
}
735
342
}, arguments) };
736
736
-
imports.wbg.__wbg_message_a4e9a39ee8f92b17 = function(arg0, arg1) {
737
737
-
const ret = arg1.message;
738
738
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
739
739
-
const len1 = WASM_VECTOR_LEN;
740
740
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
741
741
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
742
742
-
};
743
343
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
744
344
const ret = arg0.msCrypto;
745
345
return ret;
746
346
};
747
747
-
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
748
748
-
const ret = new Object();
749
749
-
return ret;
750
750
-
};
751
751
-
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
752
752
-
const ret = new Array();
753
753
-
return ret;
754
754
-
};
755
755
-
imports.wbg.__wbg_new_3c79b3bb1b32b7d3 = function() { return handleError(function () {
756
756
-
const ret = new Headers();
757
757
-
return ret;
758
758
-
}, arguments) };
759
759
-
imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
760
760
-
const ret = new Uint8Array(arg0);
761
761
-
return ret;
762
762
-
};
763
763
-
imports.wbg.__wbg_new_7c30d1f874652e62 = function() { return handleError(function (arg0, arg1) {
764
764
-
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
765
765
-
return ret;
766
766
-
}, arguments) };
767
767
-
imports.wbg.__wbg_new_881a222c65f168fc = function() { return handleError(function () {
768
768
-
const ret = new AbortController();
769
769
-
return ret;
770
770
-
}, arguments) };
771
347
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
772
348
const ret = new Error();
773
349
return ret;
774
350
};
775
775
-
imports.wbg.__wbg_new_df1173567d5ff028 = function(arg0, arg1) {
776
776
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
777
777
-
return ret;
778
778
-
};
779
779
-
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
780
780
-
try {
781
781
-
var state0 = {a: arg0, b: arg1};
782
782
-
var cb0 = (arg0, arg1) => {
783
783
-
const a = state0.a;
784
784
-
state0.a = 0;
785
785
-
try {
786
786
-
return wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(a, state0.b, arg0, arg1);
787
787
-
} finally {
788
788
-
state0.a = a;
789
789
-
}
790
790
-
};
791
791
-
const ret = new Promise(cb0);
792
792
-
return ret;
793
793
-
} finally {
794
794
-
state0.a = state0.b = 0;
795
795
-
}
796
796
-
};
797
351
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
798
352
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
799
353
return ret;
···
802
356
const ret = new Function(getStringFromWasm0(arg0, arg1));
803
357
return ret;
804
358
};
805
805
-
imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) {
806
806
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
807
807
-
return ret;
808
808
-
};
809
359
imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
810
360
const ret = new Uint8Array(arg0 >>> 0);
811
361
return ret;
812
362
};
813
813
-
imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function() { return handleError(function (arg0, arg1, arg2) {
814
814
-
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
815
815
-
return ret;
816
816
-
}, arguments) };
817
817
-
imports.wbg.__wbg_new_with_str_sequence_073466a4a5387941 = function() { return handleError(function (arg0, arg1, arg2) {
818
818
-
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2);
819
819
-
return ret;
820
820
-
}, arguments) };
821
821
-
imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) {
822
822
-
const ret = arg0.next;
823
823
-
return ret;
824
824
-
};
825
825
-
imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
826
826
-
const ret = arg0.next();
827
827
-
return ret;
828
828
-
}, arguments) };
829
363
imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
830
364
const ret = arg0.node;
831
365
return ret;
832
366
};
833
833
-
imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
834
834
-
const ret = arg0.now();
835
835
-
return ret;
836
836
-
};
837
837
-
imports.wbg.__wbg_now_69d776cd24f5215b = function() {
838
838
-
const ret = Date.now();
839
839
-
return ret;
840
840
-
};
841
367
imports.wbg.__wbg_now_8a87c5466cc7d560 = function() {
842
368
const ret = Date.now();
843
369
return ret;
···
846
372
const ret = arg0.now();
847
373
return ret;
848
374
};
849
849
-
imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
850
850
-
const ret = arg0.performance;
851
851
-
return ret;
852
852
-
};
853
375
imports.wbg.__wbg_performance_c77a440eff2efd9b = function(arg0) {
854
376
const ret = arg0.performance;
855
377
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
···
864
386
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
865
387
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
866
388
};
867
867
-
imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
868
868
-
const ret = arg0.push(arg1);
869
869
-
return ret;
870
870
-
};
871
389
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
872
390
const ret = arg0.queueMicrotask;
873
391
return ret;
···
878
396
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
879
397
arg0.randomFillSync(arg1);
880
398
}, arguments) };
881
881
-
imports.wbg.__wbg_read_39c4b35efcd03c25 = function(arg0) {
882
882
-
const ret = arg0.read();
883
883
-
return ret;
884
884
-
};
885
885
-
imports.wbg.__wbg_readyState_9d0976dcad561aa9 = function(arg0) {
886
886
-
const ret = arg0.readyState;
887
887
-
return ret;
888
888
-
};
889
889
-
imports.wbg.__wbg_reason_d4eb9e40592438c2 = function(arg0, arg1) {
890
890
-
const ret = arg1.reason;
891
891
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
892
892
-
const len1 = WASM_VECTOR_LEN;
893
893
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
894
894
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
895
895
-
};
896
896
-
imports.wbg.__wbg_releaseLock_a5912f590b185180 = function(arg0) {
897
897
-
arg0.releaseLock();
898
898
-
};
899
899
-
imports.wbg.__wbg_removeEventListener_54bf92f4a849bd7d = function() { return handleError(function (arg0, arg1, arg2, arg3) {
900
900
-
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
901
901
-
}, arguments) };
902
399
imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
903
400
const ret = module.require;
904
401
return ret;
···
907
404
const ret = Promise.resolve(arg0);
908
405
return ret;
909
406
};
910
910
-
imports.wbg.__wbg_respond_9f7fc54636c4a3af = function() { return handleError(function (arg0, arg1) {
911
911
-
arg0.respond(arg1 >>> 0);
912
912
-
}, arguments) };
913
913
-
imports.wbg.__wbg_send_7cc36bb628044281 = function() { return handleError(function (arg0, arg1, arg2) {
914
914
-
arg0.send(getStringFromWasm0(arg1, arg2));
915
915
-
}, arguments) };
916
916
-
imports.wbg.__wbg_send_ea59e150ab5ebe08 = function() { return handleError(function (arg0, arg1, arg2) {
917
917
-
arg0.send(getArrayU8FromWasm0(arg1, arg2));
918
918
-
}, arguments) };
919
919
-
imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
920
920
-
const ret = setTimeout(arg0, arg1);
921
921
-
return ret;
922
922
-
};
923
923
-
imports.wbg.__wbg_setTimeout_ceaa8eadc563d26e = function() { return handleError(function (arg0, arg1, arg2) {
924
924
-
const ret = arg0.setTimeout(arg1, arg2);
925
925
-
return ret;
926
926
-
}, arguments) };
927
927
-
imports.wbg.__wbg_set_169e13b608078b7b = function(arg0, arg1, arg2) {
928
928
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
929
929
-
};
930
930
-
imports.wbg.__wbg_set_binaryType_73e8c75df97825f8 = function(arg0, arg1) {
931
931
-
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
932
932
-
};
933
933
-
imports.wbg.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) {
934
934
-
arg0.body = arg1;
935
935
-
};
936
936
-
imports.wbg.__wbg_set_cache_0e437c7c8e838b9b = function(arg0, arg1) {
937
937
-
arg0.cache = __wbindgen_enum_RequestCache[arg1];
938
938
-
};
939
939
-
imports.wbg.__wbg_set_credentials_55ae7c3c106fd5be = function(arg0, arg1) {
940
940
-
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
941
941
-
};
942
942
-
imports.wbg.__wbg_set_handle_event_14baa3949ef6909d = function(arg0, arg1) {
943
943
-
arg0.handleEvent = arg1;
944
944
-
};
945
945
-
imports.wbg.__wbg_set_headers_5671cf088e114d2b = function(arg0, arg1) {
946
946
-
arg0.headers = arg1;
947
947
-
};
948
948
-
imports.wbg.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) {
949
949
-
arg0.method = getStringFromWasm0(arg1, arg2);
950
950
-
};
951
951
-
imports.wbg.__wbg_set_mode_611016a6818fc690 = function(arg0, arg1) {
952
952
-
arg0.mode = __wbindgen_enum_RequestMode[arg1];
953
953
-
};
954
954
-
imports.wbg.__wbg_set_onclose_032729b3d7ed7a9e = function(arg0, arg1) {
955
955
-
arg0.onclose = arg1;
956
956
-
};
957
957
-
imports.wbg.__wbg_set_onerror_7819daa6af176ddb = function(arg0, arg1) {
958
958
-
arg0.onerror = arg1;
959
959
-
};
960
407
imports.wbg.__wbg_set_onmessage_5fe29d0fb54cb575 = function(arg0, arg1) {
961
408
arg0.onmessage = arg1;
962
962
-
};
963
963
-
imports.wbg.__wbg_set_onmessage_71321d0bed69856c = function(arg0, arg1) {
964
964
-
arg0.onmessage = arg1;
965
965
-
};
966
966
-
imports.wbg.__wbg_set_onopen_6d4abedb27ba5656 = function(arg0, arg1) {
967
967
-
arg0.onopen = arg1;
968
968
-
};
969
969
-
imports.wbg.__wbg_set_signal_e89be862d0091009 = function(arg0, arg1) {
970
970
-
arg0.signal = arg1;
971
971
-
};
972
972
-
imports.wbg.__wbg_signal_3c14fbdc89694b39 = function(arg0) {
973
973
-
const ret = arg0.signal;
974
974
-
return ret;
975
409
};
976
410
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
977
411
const ret = arg1.stack;
···
996
430
const ret = typeof window === 'undefined' ? null : window;
997
431
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
998
432
};
999
999
-
imports.wbg.__wbg_status_9bfc680efca4bdfd = function(arg0) {
1000
1000
-
const ret = arg0.status;
1001
1001
-
return ret;
1002
1002
-
};
1003
1003
-
imports.wbg.__wbg_stringify_655a6390e1f5eb6b = function() { return handleError(function (arg0) {
1004
1004
-
const ret = JSON.stringify(arg0);
1005
1005
-
return ret;
1006
1006
-
}, arguments) };
1007
433
imports.wbg.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) {
1008
434
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1009
435
return ret;
1010
436
};
1011
1011
-
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
1012
1012
-
const ret = arg0.then(arg1, arg2);
1013
1013
-
return ret;
1014
1014
-
};
1015
437
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
1016
438
const ret = arg0.then(arg1);
1017
439
return ret;
1018
440
};
1019
1019
-
imports.wbg.__wbg_url_b6d11838a4f95198 = function(arg0, arg1) {
1020
1020
-
const ret = arg1.url;
1021
1021
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1022
1022
-
const len1 = WASM_VECTOR_LEN;
1023
1023
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1024
1024
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1025
1025
-
};
1026
1026
-
imports.wbg.__wbg_url_df28eef824b04410 = function(arg0, arg1) {
1027
1027
-
const ret = arg1.url;
1028
1028
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1029
1029
-
const len1 = WASM_VECTOR_LEN;
1030
1030
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1031
1031
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1032
1032
-
};
1033
1033
-
imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
1034
1034
-
const ret = arg0.value;
1035
1035
-
return ret;
1036
1036
-
};
1037
441
imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
1038
442
const ret = arg0.versions;
1039
443
return ret;
1040
444
};
1041
1041
-
imports.wbg.__wbg_view_788aaf149deefd2f = function(arg0) {
1042
1042
-
const ret = arg0.view;
1043
1043
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1044
1044
-
};
1045
1045
-
imports.wbg.__wbg_wasClean_4154a2d59fdb4dd7 = function(arg0) {
1046
1046
-
const ret = arg0.wasClean;
1047
1047
-
return ret;
1048
1048
-
};
1049
1049
-
imports.wbg.__wbindgen_cast_0040fcf5dbb58dd5 = function(arg0, arg1) {
1050
1050
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 5300, function: Function { arguments: [Externref], shim_idx: 5301, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1051
1051
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__wasm_bindgen_1add006a0ed82fd3___JsValue____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____);
1052
1052
-
return ret;
1053
1053
-
};
1054
1054
-
imports.wbg.__wbindgen_cast_12196eb5081a2539 = function(arg0, arg1) {
1055
1055
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 3492, function: Function { arguments: [], shim_idx: 3493, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1056
1056
-
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn_____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_);
1057
1057
-
return ret;
1058
1058
-
};
1059
1059
-
imports.wbg.__wbindgen_cast_19a2ac9a2d117d63 = function(arg0, arg1) {
1060
1060
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 3436, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 3437, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1061
1061
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__web_sys_1984c39bba2ffe3a___features__gen_CloseEvent__CloseEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_CloseEvent__CloseEvent_____);
1062
1062
-
return ret;
1063
1063
-
};
1064
445
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1065
446
// Cast intrinsic for `Ref(String) -> Externref`.
1066
447
const ret = getStringFromWasm0(arg0, arg1);
1067
448
return ret;
1068
449
};
1069
1069
-
imports.wbg.__wbindgen_cast_349b5f2a8c1e5597 = function(arg0, arg1) {
1070
1070
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 3990, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3991, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1071
1071
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent______1_);
1072
1072
-
return ret;
1073
1073
-
};
1074
1074
-
imports.wbg.__wbindgen_cast_82f5386d361eee3f = function(arg0, arg1) {
1075
1075
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 441, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 442, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1076
1076
-
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn__web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____);
1077
1077
-
return ret;
1078
1078
-
};
1079
1079
-
imports.wbg.__wbindgen_cast_89505235e1110442 = function(arg0, arg1) {
1080
1080
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 3469, function: Function { arguments: [], shim_idx: 3470, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1081
1081
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______);
1082
1082
-
return ret;
1083
1083
-
};
1084
1084
-
imports.wbg.__wbindgen_cast_9ce2f96e3ea0b3c4 = function(arg0, arg1) {
1085
1085
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 5120, function: Function { arguments: [], shim_idx: 5121, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1086
1086
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output________2_, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______3_);
1087
1087
-
return ret;
1088
1088
-
};
1089
1089
-
imports.wbg.__wbindgen_cast_b5e2cf29d57ca6af = function(arg0, arg1) {
1090
1090
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 5007, function: Function { arguments: [], shim_idx: 5008, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1091
1091
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output________1_, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______2_);
450
450
+
imports.wbg.__wbindgen_cast_3fda284bdcf7704e = function(arg0, arg1) {
451
451
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 941, function: Function { arguments: [Externref], shim_idx: 942, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
452
452
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__wasm_bindgen_1add006a0ed82fd3___JsValue____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____);
1092
453
return ret;
1093
454
};
1094
455
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
1095
456
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1096
457
const ret = getArrayU8FromWasm0(arg0, arg1);
458
458
+
return ret;
459
459
+
};
460
460
+
imports.wbg.__wbindgen_cast_e969152242ffebd9 = function(arg0, arg1) {
461
461
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 104, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 105, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
462
462
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn__web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____);
1097
463
return ret;
1098
464
};
1099
465
imports.wbg.__wbindgen_init_externref_table = function() {
+16
-213
crates/weaver-app/public/embed_worker.js
···
232
232
233
233
let WASM_VECTOR_LEN = 0;
234
234
235
235
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2) {
236
236
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2);
235
235
+
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) {
236
236
+
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2);
237
237
}
238
238
239
239
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_(arg0, arg1) {
240
240
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_(arg0, arg1);
241
241
-
}
242
242
-
243
243
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) {
244
244
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2);
245
241
}
246
242
247
243
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______(arg0, arg1) {
248
244
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______(arg0, arg1);
249
245
}
250
246
251
251
-
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2, arg3) {
252
252
-
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2, arg3);
247
247
+
function wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2) {
248
248
+
wasm.wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____(arg0, arg1, arg2);
253
249
}
254
254
-
255
255
-
const __wbindgen_enum_ReadableStreamType = ["bytes"];
256
250
257
251
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
258
252
···
260
254
261
255
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
262
256
263
263
-
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
264
264
-
? { register: () => {}, unregister: () => {} }
265
265
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
266
266
-
267
267
-
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
268
268
-
? { register: () => {}, unregister: () => {} }
269
269
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
270
270
-
271
271
-
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
272
272
-
? { register: () => {}, unregister: () => {} }
273
273
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
274
274
-
275
257
const JSOwnerFinalization = (typeof FinalizationRegistry === 'undefined')
276
258
? { register: () => {}, unregister: () => {} }
277
259
: new FinalizationRegistry(ptr => wasm.__wbg_jsowner_free(ptr >>> 0, 1));
278
260
279
279
-
class IntoUnderlyingByteSource {
280
280
-
__destroy_into_raw() {
281
281
-
const ptr = this.__wbg_ptr;
282
282
-
this.__wbg_ptr = 0;
283
283
-
IntoUnderlyingByteSourceFinalization.unregister(this);
284
284
-
return ptr;
285
285
-
}
286
286
-
free() {
287
287
-
const ptr = this.__destroy_into_raw();
288
288
-
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
289
289
-
}
290
290
-
/**
291
291
-
* @returns {number}
292
292
-
*/
293
293
-
get autoAllocateChunkSize() {
294
294
-
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
295
295
-
return ret >>> 0;
296
296
-
}
297
297
-
/**
298
298
-
* @param {ReadableByteStreamController} controller
299
299
-
* @returns {Promise<any>}
300
300
-
*/
301
301
-
pull(controller) {
302
302
-
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
303
303
-
return ret;
304
304
-
}
305
305
-
/**
306
306
-
* @param {ReadableByteStreamController} controller
307
307
-
*/
308
308
-
start(controller) {
309
309
-
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
310
310
-
}
311
311
-
/**
312
312
-
* @returns {ReadableStreamType}
313
313
-
*/
314
314
-
get type() {
315
315
-
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
316
316
-
return __wbindgen_enum_ReadableStreamType[ret];
317
317
-
}
318
318
-
cancel() {
319
319
-
const ptr = this.__destroy_into_raw();
320
320
-
wasm.intounderlyingbytesource_cancel(ptr);
321
321
-
}
322
322
-
}
323
323
-
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
324
324
-
__exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource;
325
325
-
326
326
-
class IntoUnderlyingSink {
327
327
-
__destroy_into_raw() {
328
328
-
const ptr = this.__wbg_ptr;
329
329
-
this.__wbg_ptr = 0;
330
330
-
IntoUnderlyingSinkFinalization.unregister(this);
331
331
-
return ptr;
332
332
-
}
333
333
-
free() {
334
334
-
const ptr = this.__destroy_into_raw();
335
335
-
wasm.__wbg_intounderlyingsink_free(ptr, 0);
336
336
-
}
337
337
-
/**
338
338
-
* @param {any} reason
339
339
-
* @returns {Promise<any>}
340
340
-
*/
341
341
-
abort(reason) {
342
342
-
const ptr = this.__destroy_into_raw();
343
343
-
const ret = wasm.intounderlyingsink_abort(ptr, reason);
344
344
-
return ret;
345
345
-
}
346
346
-
/**
347
347
-
* @returns {Promise<any>}
348
348
-
*/
349
349
-
close() {
350
350
-
const ptr = this.__destroy_into_raw();
351
351
-
const ret = wasm.intounderlyingsink_close(ptr);
352
352
-
return ret;
353
353
-
}
354
354
-
/**
355
355
-
* @param {any} chunk
356
356
-
* @returns {Promise<any>}
357
357
-
*/
358
358
-
write(chunk) {
359
359
-
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
360
360
-
return ret;
361
361
-
}
362
362
-
}
363
363
-
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
364
364
-
__exports.IntoUnderlyingSink = IntoUnderlyingSink;
365
365
-
366
366
-
class IntoUnderlyingSource {
367
367
-
__destroy_into_raw() {
368
368
-
const ptr = this.__wbg_ptr;
369
369
-
this.__wbg_ptr = 0;
370
370
-
IntoUnderlyingSourceFinalization.unregister(this);
371
371
-
return ptr;
372
372
-
}
373
373
-
free() {
374
374
-
const ptr = this.__destroy_into_raw();
375
375
-
wasm.__wbg_intounderlyingsource_free(ptr, 0);
376
376
-
}
377
377
-
/**
378
378
-
* @param {ReadableStreamDefaultController} controller
379
379
-
* @returns {Promise<any>}
380
380
-
*/
381
381
-
pull(controller) {
382
382
-
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
383
383
-
return ret;
384
384
-
}
385
385
-
cancel() {
386
386
-
const ptr = this.__destroy_into_raw();
387
387
-
wasm.intounderlyingsource_cancel(ptr);
388
388
-
}
389
389
-
}
390
390
-
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
391
391
-
__exports.IntoUnderlyingSource = IntoUnderlyingSource;
392
392
-
393
261
class JSOwner {
394
262
__destroy_into_raw() {
395
263
const ptr = this.__wbg_ptr;
···
487
355
const ret = arg0.arrayBuffer();
488
356
return ret;
489
357
}, arguments) };
490
490
-
imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) {
491
491
-
const ret = arg0.buffer;
492
492
-
return ret;
493
493
-
};
494
494
-
imports.wbg.__wbg_byobRequest_f8e3517f5f8ad284 = function(arg0) {
495
495
-
const ret = arg0.byobRequest;
496
496
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
497
497
-
};
498
498
-
imports.wbg.__wbg_byteLength_faa9938885bdeee6 = function(arg0) {
499
499
-
const ret = arg0.byteLength;
500
500
-
return ret;
501
501
-
};
502
502
-
imports.wbg.__wbg_byteOffset_3868b6a19ba01dea = function(arg0) {
503
503
-
const ret = arg0.byteOffset;
504
504
-
return ret;
505
505
-
};
506
506
-
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
507
507
-
const ret = arg0.call(arg1, arg2);
508
508
-
return ret;
509
509
-
}, arguments) };
510
358
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
511
359
const ret = arg0.call(arg1);
512
360
return ret;
···
518
366
const ret = clearTimeout(arg0);
519
367
return ret;
520
368
};
521
521
-
imports.wbg.__wbg_close_0af5661bf3d335f2 = function() { return handleError(function (arg0) {
522
522
-
arg0.close();
523
523
-
}, arguments) };
524
369
imports.wbg.__wbg_close_0b472ca2d13f54f7 = function(arg0) {
525
370
arg0.close();
526
371
};
527
527
-
imports.wbg.__wbg_close_3ec111e7b23d94d8 = function() { return handleError(function (arg0) {
528
528
-
arg0.close();
529
529
-
}, arguments) };
530
372
imports.wbg.__wbg_data_8bf4ae669a78a688 = function(arg0) {
531
373
const ret = arg0.data;
532
374
return ret;
···
535
377
const ret = arg0.done;
536
378
return ret;
537
379
};
538
538
-
imports.wbg.__wbg_enqueue_a7e6b1ee87963aad = function() { return handleError(function (arg0, arg1) {
539
539
-
arg0.enqueue(arg1);
540
540
-
}, arguments) };
541
380
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
542
381
let deferred0_0;
543
382
let deferred0_1;
···
625
464
const ret = new Error();
626
465
return ret;
627
466
};
628
628
-
imports.wbg.__wbg_new_df1173567d5ff028 = function(arg0, arg1) {
629
629
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
630
630
-
return ret;
631
631
-
};
632
632
-
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
633
633
-
try {
634
634
-
var state0 = {a: arg0, b: arg1};
635
635
-
var cb0 = (arg0, arg1) => {
636
636
-
const a = state0.a;
637
637
-
state0.a = 0;
638
638
-
try {
639
639
-
return wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue__wasm_bindgen_1add006a0ed82fd3___JsValue_____(a, state0.b, arg0, arg1);
640
640
-
} finally {
641
641
-
state0.a = a;
642
642
-
}
643
643
-
};
644
644
-
const ret = new Promise(cb0);
645
645
-
return ret;
646
646
-
} finally {
647
647
-
state0.a = state0.b = 0;
648
648
-
}
649
649
-
};
650
467
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
651
468
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
652
469
return ret;
653
470
};
654
471
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
655
472
const ret = new Function(getStringFromWasm0(arg0, arg1));
656
656
-
return ret;
657
657
-
};
658
658
-
imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) {
659
659
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
660
473
return ret;
661
474
};
662
475
imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function() { return handleError(function (arg0, arg1, arg2) {
···
704
517
const ret = Promise.resolve(arg0);
705
518
return ret;
706
519
};
707
707
-
imports.wbg.__wbg_respond_9f7fc54636c4a3af = function() { return handleError(function (arg0, arg1) {
708
708
-
arg0.respond(arg1 >>> 0);
709
709
-
}, arguments) };
710
520
imports.wbg.__wbg_setTimeout_4eb823e8b72fbe79 = function() { return handleError(function (arg0, arg1, arg2) {
711
521
const ret = arg0.setTimeout(arg1, arg2);
712
522
return ret;
···
714
524
imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
715
525
const ret = setTimeout(arg0, arg1);
716
526
return ret;
717
717
-
};
718
718
-
imports.wbg.__wbg_set_169e13b608078b7b = function(arg0, arg1, arg2) {
719
719
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
720
527
};
721
528
imports.wbg.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) {
722
529
arg0.body = arg1;
···
800
607
const ret = arg0.value;
801
608
return ret;
802
609
};
803
803
-
imports.wbg.__wbg_view_788aaf149deefd2f = function(arg0) {
804
804
-
const ret = arg0.view;
805
805
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
806
806
-
};
807
610
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
808
611
// Cast intrinsic for `Ref(String) -> Externref`.
809
612
const ret = getStringFromWasm0(arg0, arg1);
810
613
return ret;
811
614
};
812
812
-
imports.wbg.__wbindgen_cast_b44cc294b43af732 = function(arg0, arg1) {
813
813
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1192, function: Function { arguments: [], shim_idx: 1193, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
814
814
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______);
615
615
+
imports.wbg.__wbindgen_cast_82f5386d361eee3f = function(arg0, arg1) {
616
616
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 441, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 442, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
617
617
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn__web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_8b37e013ecf136cb___features__gen_MessageEvent__MessageEvent_____);
815
618
return ret;
816
619
};
817
817
-
imports.wbg.__wbindgen_cast_c8f3d1634b3b2a31 = function(arg0, arg1) {
818
818
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 335, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 336, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
819
819
-
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn__web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___web_sys_1984c39bba2ffe3a___features__gen_MessageEvent__MessageEvent_____);
620
620
+
imports.wbg.__wbindgen_cast_bc7590ff5cbfa2f9 = function(arg0, arg1) {
621
621
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2214, function: Function { arguments: [Externref], shim_idx: 2215, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
622
622
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__wasm_bindgen_1add006a0ed82fd3___JsValue____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____);
820
623
return ret;
821
624
};
822
822
-
imports.wbg.__wbindgen_cast_e60e2a067b8a256d = function(arg0, arg1) {
823
823
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1452, function: Function { arguments: [], shim_idx: 1453, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
824
824
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output________1_, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_);
625
625
+
imports.wbg.__wbindgen_cast_c2fcf804dba34eff = function(arg0, arg1) {
626
626
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1186, function: Function { arguments: [], shim_idx: 1187, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
627
627
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke______);
825
628
return ret;
826
629
};
827
827
-
imports.wbg.__wbindgen_cast_e76354026ca30a8f = function(arg0, arg1) {
828
828
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 2274, function: Function { arguments: [Externref], shim_idx: 2275, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
829
829
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__wasm_bindgen_1add006a0ed82fd3___JsValue____Output_______, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke___wasm_bindgen_1add006a0ed82fd3___JsValue_____);
630
630
+
imports.wbg.__wbindgen_cast_fbdf1c7b4b56bb43 = function(arg0, arg1) {
631
631
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1446, function: Function { arguments: [], shim_idx: 1447, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
632
632
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_1add006a0ed82fd3___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output________1_, wasm_bindgen_1add006a0ed82fd3___convert__closures_____invoke_______1_);
830
633
return ret;
831
634
};
832
635
imports.wbg.__wbindgen_init_externref_table = function() {
+3
-2
crates/weaver-app/src/components/entry.rs
···
402
402
#[props(default = false)] is_pinned: bool,
403
403
#[props(default = true)] show_author: bool,
404
404
/// Profile identity for context-aware author visibility (hides single author on their own profile)
405
405
-
#[props(default)] profile_ident: Option<AtIdentifier<'static>>,
405
405
+
#[props(default)]
406
406
+
profile_ident: Option<AtIdentifier<'static>>,
406
407
#[props(default)] on_pinned_changed: Option<EventHandler<bool>>,
407
408
) -> Element {
408
409
use crate::Route;
···
597
598
// TODO: Parse tags structure
598
599
span { class: "meta-label", "Tags:" }
599
600
for tag in tags.iter() {
600
600
-
span { class: "meta-label", "{tag}" }
601
601
+
span { class: "entry-tag", "{tag}" }
601
602
}
602
603
}
603
604
}
+4
-4
crates/weaver-app/src/env.rs
···
1
1
// This file is automatically generated by build.rs
2
2
3
3
#[allow(unused)]
4
4
-
pub const WEAVER_APP_ENV: &'static str = "dev";
4
4
+
pub const WEAVER_APP_ENV: &'static str = "prod";
5
5
#[allow(unused)]
6
6
-
pub const WEAVER_APP_HOST: &'static str = "http://localhost";
6
6
+
pub const WEAVER_APP_HOST: &'static str = "https://alpha.weaver.sh";
7
7
#[allow(unused)]
8
8
-
pub const WEAVER_APP_DOMAIN: &'static str = "";
8
8
+
pub const WEAVER_APP_DOMAIN: &'static str = "https://alpha.weaver.sh";
9
9
#[allow(unused)]
10
10
pub const WEAVER_PORT: &'static str = "8080";
11
11
#[allow(unused)]
···
13
13
#[allow(unused)]
14
14
pub const WEAVER_CLIENT_NAME: &'static str = "Weaver";
15
15
#[allow(unused)]
16
16
-
pub const WEAVER_LOGO_URI: &'static str = "";
16
16
+
pub const WEAVER_LOGO_URI: &'static str = "https://alpha.weaver.sh/favicon.ico";
17
17
#[allow(unused)]
18
18
pub const WEAVER_TOS_URI: &'static str = "";
19
19
#[allow(unused)]