@mermanjs/web-render 0.10.0-alpha.1 → 0.10.0
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.
- package/README.md +13 -7
- package/THIRD_PARTY_LICENSES/d3-path/LICENSE +13 -0
- package/THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md +1 -2
- package/THIRD_PARTY_LICENSES/elkjs/LICENSE.md +1 -2
- package/THIRD_PARTY_LICENSES/rust-cargo-dependencies.json +26 -26
- package/THIRD_PARTY_NOTICES.md +38 -22
- package/artifacts/provenance.json +40 -40
- package/artifacts/wasm/merman_wasm.d.ts +1 -1
- package/artifacts/wasm/merman_wasm.js +457 -251
- package/artifacts/wasm/merman_wasm_bg.wasm +0 -0
- package/artifacts/wasm/merman_wasm_bg.wasm.d.ts +1 -1
- package/dist/generated/binding-contract.d.ts +1 -1
- package/dist/generated/binding-contract.d.ts.map +1 -1
- package/dist/generated/binding-contract.js +1 -1
- package/dist/generated/binding-contract.js.map +1 -1
- package/dist/public-types.d.ts +130 -12
- package/dist/public-types.d.ts.map +1 -1
- package/dist/runtime-analysis.d.ts.map +1 -1
- package/dist/runtime-core.d.ts.map +1 -1
- package/dist/runtime-core.js +145 -11
- package/dist/runtime-core.js.map +1 -1
- package/dist/runtime-render.d.ts +2 -2
- package/dist/runtime-render.d.ts.map +1 -1
- package/dist/runtime-render.js.map +1 -1
- package/dist/svg-safety-policy.js +210 -2
- package/dist/svg-safety-policy.js.map +1 -1
- package/package.json +1 -1
|
@@ -114,10 +114,17 @@ export class PreparedSource {
|
|
|
114
114
|
* @param {string | null} [options_json]
|
|
115
115
|
*/
|
|
116
116
|
constructor(source, options_json) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
117
|
+
let ptr0, len0, ptr1, len1;
|
|
118
|
+
try {
|
|
119
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
120
|
+
len0 = WASM_VECTOR_LEN;
|
|
121
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
122
|
+
len1 = WASM_VECTOR_LEN;
|
|
123
|
+
} catch (e) {
|
|
124
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
125
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
126
|
+
throw e;
|
|
127
|
+
}
|
|
121
128
|
const ret = wasm.preparedsource_new(ptr0, len0, ptr1, len1);
|
|
122
129
|
if (ret[2]) {
|
|
123
130
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -226,10 +233,17 @@ export class RenderSession {
|
|
|
226
233
|
let deferred4_0;
|
|
227
234
|
let deferred4_1;
|
|
228
235
|
try {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
236
|
+
let ptr0, len0, ptr1, len1;
|
|
237
|
+
try {
|
|
238
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
239
|
+
len0 = WASM_VECTOR_LEN;
|
|
240
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
241
|
+
len1 = WASM_VECTOR_LEN;
|
|
242
|
+
} catch (e) {
|
|
243
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
244
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
245
|
+
throw e;
|
|
246
|
+
}
|
|
233
247
|
const ret = wasm.rendersession_edgeGeometryJsonWithTextMeasurer(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
234
248
|
var ptr3 = ret[0];
|
|
235
249
|
var len3 = ret[1];
|
|
@@ -253,10 +267,17 @@ export class RenderSession {
|
|
|
253
267
|
let deferred4_0;
|
|
254
268
|
let deferred4_1;
|
|
255
269
|
try {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
270
|
+
let ptr0, len0, ptr1, len1;
|
|
271
|
+
try {
|
|
272
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
273
|
+
len0 = WASM_VECTOR_LEN;
|
|
274
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
275
|
+
len1 = WASM_VECTOR_LEN;
|
|
276
|
+
} catch (e) {
|
|
277
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
278
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
279
|
+
throw e;
|
|
280
|
+
}
|
|
260
281
|
const ret = wasm.rendersession_edgeGeometryJson(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
261
282
|
var ptr3 = ret[0];
|
|
262
283
|
var len3 = ret[1];
|
|
@@ -281,10 +302,17 @@ export class RenderSession {
|
|
|
281
302
|
let deferred4_0;
|
|
282
303
|
let deferred4_1;
|
|
283
304
|
try {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
305
|
+
let ptr0, len0, ptr1, len1;
|
|
306
|
+
try {
|
|
307
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
308
|
+
len0 = WASM_VECTOR_LEN;
|
|
309
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
310
|
+
len1 = WASM_VECTOR_LEN;
|
|
311
|
+
} catch (e) {
|
|
312
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
313
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
314
|
+
throw e;
|
|
315
|
+
}
|
|
288
316
|
const ret = wasm.rendersession_layoutJsonWithTextMeasurer(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
289
317
|
var ptr3 = ret[0];
|
|
290
318
|
var len3 = ret[1];
|
|
@@ -308,10 +336,17 @@ export class RenderSession {
|
|
|
308
336
|
let deferred4_0;
|
|
309
337
|
let deferred4_1;
|
|
310
338
|
try {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
339
|
+
let ptr0, len0, ptr1, len1;
|
|
340
|
+
try {
|
|
341
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
342
|
+
len0 = WASM_VECTOR_LEN;
|
|
343
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
344
|
+
len1 = WASM_VECTOR_LEN;
|
|
345
|
+
} catch (e) {
|
|
346
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
347
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
348
|
+
throw e;
|
|
349
|
+
}
|
|
315
350
|
const ret = wasm.rendersession_layoutJson(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
316
351
|
var ptr3 = ret[0];
|
|
317
352
|
var len3 = ret[1];
|
|
@@ -347,10 +382,17 @@ export class RenderSession {
|
|
|
347
382
|
* @returns {any}
|
|
348
383
|
*/
|
|
349
384
|
renderSvgResultWithTextMeasurer(source, options_json, callback) {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
385
|
+
let ptr0, len0, ptr1, len1;
|
|
386
|
+
try {
|
|
387
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
388
|
+
len0 = WASM_VECTOR_LEN;
|
|
389
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
390
|
+
len1 = WASM_VECTOR_LEN;
|
|
391
|
+
} catch (e) {
|
|
392
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
393
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
394
|
+
throw e;
|
|
395
|
+
}
|
|
354
396
|
const ret = wasm.rendersession_renderSvgResultWithTextMeasurer(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
355
397
|
if (ret[2]) {
|
|
356
398
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -363,10 +405,17 @@ export class RenderSession {
|
|
|
363
405
|
* @returns {any}
|
|
364
406
|
*/
|
|
365
407
|
renderSvgResult(source, options_json) {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
408
|
+
let ptr0, len0, ptr1, len1;
|
|
409
|
+
try {
|
|
410
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
411
|
+
len0 = WASM_VECTOR_LEN;
|
|
412
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
413
|
+
len1 = WASM_VECTOR_LEN;
|
|
414
|
+
} catch (e) {
|
|
415
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
416
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
417
|
+
throw e;
|
|
418
|
+
}
|
|
370
419
|
const ret = wasm.rendersession_renderSvgResult(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
371
420
|
if (ret[2]) {
|
|
372
421
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -383,10 +432,17 @@ export class RenderSession {
|
|
|
383
432
|
let deferred4_0;
|
|
384
433
|
let deferred4_1;
|
|
385
434
|
try {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
435
|
+
let ptr0, len0, ptr1, len1;
|
|
436
|
+
try {
|
|
437
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
438
|
+
len0 = WASM_VECTOR_LEN;
|
|
439
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
440
|
+
len1 = WASM_VECTOR_LEN;
|
|
441
|
+
} catch (e) {
|
|
442
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
443
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
444
|
+
throw e;
|
|
445
|
+
}
|
|
390
446
|
const ret = wasm.rendersession_renderSvgWithTextMeasurer(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
391
447
|
var ptr3 = ret[0];
|
|
392
448
|
var len3 = ret[1];
|
|
@@ -410,10 +466,17 @@ export class RenderSession {
|
|
|
410
466
|
let deferred4_0;
|
|
411
467
|
let deferred4_1;
|
|
412
468
|
try {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
469
|
+
let ptr0, len0, ptr1, len1;
|
|
470
|
+
try {
|
|
471
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
472
|
+
len0 = WASM_VECTOR_LEN;
|
|
473
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
474
|
+
len1 = WASM_VECTOR_LEN;
|
|
475
|
+
} catch (e) {
|
|
476
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
477
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
478
|
+
throw e;
|
|
479
|
+
}
|
|
417
480
|
const ret = wasm.rendersession_renderSvg(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
418
481
|
var ptr3 = ret[0];
|
|
419
482
|
var len3 = ret[1];
|
|
@@ -437,10 +500,17 @@ if (Symbol.dispose) RenderSession.prototype[Symbol.dispose] = RenderSession.prot
|
|
|
437
500
|
* @returns {any}
|
|
438
501
|
*/
|
|
439
502
|
export function analysisFacts(source, options_json) {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
503
|
+
let ptr0, len0, ptr1, len1;
|
|
504
|
+
try {
|
|
505
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
506
|
+
len0 = WASM_VECTOR_LEN;
|
|
507
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
508
|
+
len1 = WASM_VECTOR_LEN;
|
|
509
|
+
} catch (e) {
|
|
510
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
511
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
512
|
+
throw e;
|
|
513
|
+
}
|
|
444
514
|
const ret = wasm.analysisFacts(ptr0, len0, ptr1, len1);
|
|
445
515
|
if (ret[2]) {
|
|
446
516
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -454,10 +524,17 @@ export function analysisFacts(source, options_json) {
|
|
|
454
524
|
* @returns {any}
|
|
455
525
|
*/
|
|
456
526
|
export function analyze(source, options_json) {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
527
|
+
let ptr0, len0, ptr1, len1;
|
|
528
|
+
try {
|
|
529
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
530
|
+
len0 = WASM_VECTOR_LEN;
|
|
531
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
532
|
+
len1 = WASM_VECTOR_LEN;
|
|
533
|
+
} catch (e) {
|
|
534
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
535
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
536
|
+
throw e;
|
|
537
|
+
}
|
|
461
538
|
const ret = wasm.analyze(ptr0, len0, ptr1, len1);
|
|
462
539
|
if (ret[2]) {
|
|
463
540
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -472,12 +549,20 @@ export function analyze(source, options_json) {
|
|
|
472
549
|
* @returns {any}
|
|
473
550
|
*/
|
|
474
551
|
export function analyzeDocument(source, uri, options_json) {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
552
|
+
let ptr0, len0, ptr1, len1, ptr2, len2;
|
|
553
|
+
try {
|
|
554
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
555
|
+
len0 = WASM_VECTOR_LEN;
|
|
556
|
+
ptr1 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
557
|
+
len1 = WASM_VECTOR_LEN;
|
|
558
|
+
ptr2 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
559
|
+
len2 = WASM_VECTOR_LEN;
|
|
560
|
+
} catch (e) {
|
|
561
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
562
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
563
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
564
|
+
throw e;
|
|
565
|
+
}
|
|
481
566
|
const ret = wasm.analyzeDocument(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
482
567
|
if (ret[2]) {
|
|
483
568
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -492,12 +577,20 @@ export function analyzeDocument(source, uri, options_json) {
|
|
|
492
577
|
* @returns {any}
|
|
493
578
|
*/
|
|
494
579
|
export function analyzeDocumentFacts(source, uri, options_json) {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
580
|
+
let ptr0, len0, ptr1, len1, ptr2, len2;
|
|
581
|
+
try {
|
|
582
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
583
|
+
len0 = WASM_VECTOR_LEN;
|
|
584
|
+
ptr1 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
585
|
+
len1 = WASM_VECTOR_LEN;
|
|
586
|
+
ptr2 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
587
|
+
len2 = WASM_VECTOR_LEN;
|
|
588
|
+
} catch (e) {
|
|
589
|
+
if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
|
|
590
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
591
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
592
|
+
throw e;
|
|
593
|
+
}
|
|
501
594
|
const ret = wasm.analyzeDocumentFacts(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
502
595
|
if (ret[2]) {
|
|
503
596
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -511,10 +604,17 @@ export function analyzeDocumentFacts(source, uri, options_json) {
|
|
|
511
604
|
* @returns {any}
|
|
512
605
|
*/
|
|
513
606
|
export function analyzeJson(source, options_json) {
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
607
|
+
let ptr0, len0, ptr1, len1;
|
|
608
|
+
try {
|
|
609
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
610
|
+
len0 = WASM_VECTOR_LEN;
|
|
611
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
612
|
+
len1 = WASM_VECTOR_LEN;
|
|
613
|
+
} catch (e) {
|
|
614
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
615
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
616
|
+
throw e;
|
|
617
|
+
}
|
|
518
618
|
const ret = wasm.analyzeJson(ptr0, len0, ptr1, len1);
|
|
519
619
|
if (ret[2]) {
|
|
520
620
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -550,10 +650,17 @@ export function asciiSupportedDiagrams() {
|
|
|
550
650
|
* @returns {any}
|
|
551
651
|
*/
|
|
552
652
|
export function describeThemeSupport(query_json, options_json) {
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
653
|
+
let ptr0, len0, ptr1, len1;
|
|
654
|
+
try {
|
|
655
|
+
ptr0 = passStringToWasm0(query_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
656
|
+
len0 = WASM_VECTOR_LEN;
|
|
657
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
658
|
+
len1 = WASM_VECTOR_LEN;
|
|
659
|
+
} catch (e) {
|
|
660
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
661
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
662
|
+
throw e;
|
|
663
|
+
}
|
|
557
664
|
const ret = wasm.describeThemeSupport(ptr0, len0, ptr1, len1);
|
|
558
665
|
if (ret[2]) {
|
|
559
666
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -581,10 +688,17 @@ export function edgeGeometryJson(source, options_json) {
|
|
|
581
688
|
let deferred4_0;
|
|
582
689
|
let deferred4_1;
|
|
583
690
|
try {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
691
|
+
let ptr0, len0, ptr1, len1;
|
|
692
|
+
try {
|
|
693
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
694
|
+
len0 = WASM_VECTOR_LEN;
|
|
695
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
696
|
+
len1 = WASM_VECTOR_LEN;
|
|
697
|
+
} catch (e) {
|
|
698
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
699
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
700
|
+
throw e;
|
|
701
|
+
}
|
|
588
702
|
const ret = wasm.edgeGeometryJson(ptr0, len0, ptr1, len1);
|
|
589
703
|
var ptr3 = ret[0];
|
|
590
704
|
var len3 = ret[1];
|
|
@@ -610,10 +724,17 @@ export function edgeGeometryJsonWithTextMeasurer(source, options_json, callback)
|
|
|
610
724
|
let deferred4_0;
|
|
611
725
|
let deferred4_1;
|
|
612
726
|
try {
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
727
|
+
let ptr0, len0, ptr1, len1;
|
|
728
|
+
try {
|
|
729
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
730
|
+
len0 = WASM_VECTOR_LEN;
|
|
731
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
732
|
+
len1 = WASM_VECTOR_LEN;
|
|
733
|
+
} catch (e) {
|
|
734
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
735
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
736
|
+
throw e;
|
|
737
|
+
}
|
|
617
738
|
const ret = wasm.edgeGeometryJsonWithTextMeasurer(ptr0, len0, ptr1, len1, callback);
|
|
618
739
|
var ptr3 = ret[0];
|
|
619
740
|
var len3 = ret[1];
|
|
@@ -635,10 +756,17 @@ export function edgeGeometryJsonWithTextMeasurer(source, options_json, callback)
|
|
|
635
756
|
* @returns {any}
|
|
636
757
|
*/
|
|
637
758
|
export function exportThemePreset(preset_id, options_json) {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
759
|
+
let ptr0, len0, ptr1, len1;
|
|
760
|
+
try {
|
|
761
|
+
ptr0 = passStringToWasm0(preset_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
762
|
+
len0 = WASM_VECTOR_LEN;
|
|
763
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
764
|
+
len1 = WASM_VECTOR_LEN;
|
|
765
|
+
} catch (e) {
|
|
766
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
767
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
768
|
+
throw e;
|
|
769
|
+
}
|
|
642
770
|
const ret = wasm.exportThemePreset(ptr0, len0, ptr1, len1);
|
|
643
771
|
if (ret[2]) {
|
|
644
772
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -655,10 +783,17 @@ export function layoutJson(source, options_json) {
|
|
|
655
783
|
let deferred4_0;
|
|
656
784
|
let deferred4_1;
|
|
657
785
|
try {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
786
|
+
let ptr0, len0, ptr1, len1;
|
|
787
|
+
try {
|
|
788
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
789
|
+
len0 = WASM_VECTOR_LEN;
|
|
790
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
791
|
+
len1 = WASM_VECTOR_LEN;
|
|
792
|
+
} catch (e) {
|
|
793
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
794
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
795
|
+
throw e;
|
|
796
|
+
}
|
|
662
797
|
const ret = wasm.layoutJson(ptr0, len0, ptr1, len1);
|
|
663
798
|
var ptr3 = ret[0];
|
|
664
799
|
var len3 = ret[1];
|
|
@@ -684,10 +819,17 @@ export function layoutJsonWithTextMeasurer(source, options_json, callback) {
|
|
|
684
819
|
let deferred4_0;
|
|
685
820
|
let deferred4_1;
|
|
686
821
|
try {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
822
|
+
let ptr0, len0, ptr1, len1;
|
|
823
|
+
try {
|
|
824
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
825
|
+
len0 = WASM_VECTOR_LEN;
|
|
826
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
827
|
+
len1 = WASM_VECTOR_LEN;
|
|
828
|
+
} catch (e) {
|
|
829
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
830
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
831
|
+
throw e;
|
|
832
|
+
}
|
|
691
833
|
const ret = wasm.layoutJsonWithTextMeasurer(ptr0, len0, ptr1, len1, callback);
|
|
692
834
|
var ptr3 = ret[0];
|
|
693
835
|
var len3 = ret[1];
|
|
@@ -720,10 +862,17 @@ export function lintRuleCatalog() {
|
|
|
720
862
|
* @returns {any}
|
|
721
863
|
*/
|
|
722
864
|
export function materializeTheme(design_json, options_json) {
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
865
|
+
let ptr0, len0, ptr1, len1;
|
|
866
|
+
try {
|
|
867
|
+
ptr0 = passStringToWasm0(design_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
868
|
+
len0 = WASM_VECTOR_LEN;
|
|
869
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
870
|
+
len1 = WASM_VECTOR_LEN;
|
|
871
|
+
} catch (e) {
|
|
872
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
873
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
874
|
+
throw e;
|
|
875
|
+
}
|
|
727
876
|
const ret = wasm.materializeTheme(ptr0, len0, ptr1, len1);
|
|
728
877
|
if (ret[2]) {
|
|
729
878
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -756,10 +905,17 @@ export function parseJson(source, options_json) {
|
|
|
756
905
|
let deferred4_0;
|
|
757
906
|
let deferred4_1;
|
|
758
907
|
try {
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
908
|
+
let ptr0, len0, ptr1, len1;
|
|
909
|
+
try {
|
|
910
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
911
|
+
len0 = WASM_VECTOR_LEN;
|
|
912
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
913
|
+
len1 = WASM_VECTOR_LEN;
|
|
914
|
+
} catch (e) {
|
|
915
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
916
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
917
|
+
throw e;
|
|
918
|
+
}
|
|
763
919
|
const ret = wasm.parseJson(ptr0, len0, ptr1, len1);
|
|
764
920
|
var ptr3 = ret[0];
|
|
765
921
|
var len3 = ret[1];
|
|
@@ -784,10 +940,17 @@ export function renderAscii(source, options_json) {
|
|
|
784
940
|
let deferred4_0;
|
|
785
941
|
let deferred4_1;
|
|
786
942
|
try {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
943
|
+
let ptr0, len0, ptr1, len1;
|
|
944
|
+
try {
|
|
945
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
946
|
+
len0 = WASM_VECTOR_LEN;
|
|
947
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
948
|
+
len1 = WASM_VECTOR_LEN;
|
|
949
|
+
} catch (e) {
|
|
950
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
951
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
952
|
+
throw e;
|
|
953
|
+
}
|
|
791
954
|
const ret = wasm.renderAscii(ptr0, len0, ptr1, len1);
|
|
792
955
|
var ptr3 = ret[0];
|
|
793
956
|
var len3 = ret[1];
|
|
@@ -812,10 +975,17 @@ export function renderSvg(source, options_json) {
|
|
|
812
975
|
let deferred4_0;
|
|
813
976
|
let deferred4_1;
|
|
814
977
|
try {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
978
|
+
let ptr0, len0, ptr1, len1;
|
|
979
|
+
try {
|
|
980
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
981
|
+
len0 = WASM_VECTOR_LEN;
|
|
982
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
983
|
+
len1 = WASM_VECTOR_LEN;
|
|
984
|
+
} catch (e) {
|
|
985
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
986
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
987
|
+
throw e;
|
|
988
|
+
}
|
|
819
989
|
const ret = wasm.renderSvg(ptr0, len0, ptr1, len1);
|
|
820
990
|
var ptr3 = ret[0];
|
|
821
991
|
var len3 = ret[1];
|
|
@@ -838,10 +1008,17 @@ export function renderSvg(source, options_json) {
|
|
|
838
1008
|
* @returns {any}
|
|
839
1009
|
*/
|
|
840
1010
|
export function renderSvgResult(source, options_json) {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
1011
|
+
let ptr0, len0, ptr1, len1;
|
|
1012
|
+
try {
|
|
1013
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1014
|
+
len0 = WASM_VECTOR_LEN;
|
|
1015
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1016
|
+
len1 = WASM_VECTOR_LEN;
|
|
1017
|
+
} catch (e) {
|
|
1018
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
1019
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1020
|
+
throw e;
|
|
1021
|
+
}
|
|
845
1022
|
const ret = wasm.renderSvgResult(ptr0, len0, ptr1, len1);
|
|
846
1023
|
if (ret[2]) {
|
|
847
1024
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -856,10 +1033,17 @@ export function renderSvgResult(source, options_json) {
|
|
|
856
1033
|
* @returns {any}
|
|
857
1034
|
*/
|
|
858
1035
|
export function renderSvgResultWithTextMeasurer(source, options_json, callback) {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
1036
|
+
let ptr0, len0, ptr1, len1;
|
|
1037
|
+
try {
|
|
1038
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1039
|
+
len0 = WASM_VECTOR_LEN;
|
|
1040
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1041
|
+
len1 = WASM_VECTOR_LEN;
|
|
1042
|
+
} catch (e) {
|
|
1043
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
1044
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1045
|
+
throw e;
|
|
1046
|
+
}
|
|
863
1047
|
const ret = wasm.renderSvgResultWithTextMeasurer(ptr0, len0, ptr1, len1, callback);
|
|
864
1048
|
if (ret[2]) {
|
|
865
1049
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -877,10 +1061,17 @@ export function renderSvgWithTextMeasurer(source, options_json, callback) {
|
|
|
877
1061
|
let deferred4_0;
|
|
878
1062
|
let deferred4_1;
|
|
879
1063
|
try {
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
1064
|
+
let ptr0, len0, ptr1, len1;
|
|
1065
|
+
try {
|
|
1066
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1067
|
+
len0 = WASM_VECTOR_LEN;
|
|
1068
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1069
|
+
len1 = WASM_VECTOR_LEN;
|
|
1070
|
+
} catch (e) {
|
|
1071
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
1072
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1073
|
+
throw e;
|
|
1074
|
+
}
|
|
884
1075
|
const ret = wasm.renderSvgWithTextMeasurer(ptr0, len0, ptr1, len1, callback);
|
|
885
1076
|
var ptr3 = ret[0];
|
|
886
1077
|
var len3 = ret[1];
|
|
@@ -939,10 +1130,17 @@ export function supportedThemes() {
|
|
|
939
1130
|
* @returns {any}
|
|
940
1131
|
*/
|
|
941
1132
|
export function svgPlanJson(source, options_json) {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
1133
|
+
let ptr0, len0, ptr1, len1;
|
|
1134
|
+
try {
|
|
1135
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1136
|
+
len0 = WASM_VECTOR_LEN;
|
|
1137
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1138
|
+
len1 = WASM_VECTOR_LEN;
|
|
1139
|
+
} catch (e) {
|
|
1140
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
1141
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1142
|
+
throw e;
|
|
1143
|
+
}
|
|
946
1144
|
const ret = wasm.svgPlanJson(ptr0, len0, ptr1, len1);
|
|
947
1145
|
if (ret[2]) {
|
|
948
1146
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -975,10 +1173,17 @@ export function transportApiVersion() {
|
|
|
975
1173
|
* @returns {any}
|
|
976
1174
|
*/
|
|
977
1175
|
export function validate(source, options_json) {
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
1176
|
+
let ptr0, len0, ptr1, len1;
|
|
1177
|
+
try {
|
|
1178
|
+
ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1179
|
+
len0 = WASM_VECTOR_LEN;
|
|
1180
|
+
ptr1 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1181
|
+
len1 = WASM_VECTOR_LEN;
|
|
1182
|
+
} catch (e) {
|
|
1183
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
1184
|
+
if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
|
|
1185
|
+
throw e;
|
|
1186
|
+
}
|
|
982
1187
|
const ret = wasm.validate(ptr0, len0, ptr1, len1);
|
|
983
1188
|
if (ret[2]) {
|
|
984
1189
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -988,11 +1193,11 @@ export function validate(source, options_json) {
|
|
|
988
1193
|
function __wbg_get_imports() {
|
|
989
1194
|
const import0 = {
|
|
990
1195
|
__proto__: null,
|
|
991
|
-
|
|
1196
|
+
__wbg_Error_208446807d0d1e30: function(arg0, arg1) {
|
|
992
1197
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
993
1198
|
return ret;
|
|
994
1199
|
},
|
|
995
|
-
|
|
1200
|
+
__wbg_Number_ff192a72a0dcdf6d: function(arg0) {
|
|
996
1201
|
const ret = Number(arg0);
|
|
997
1202
|
return ret;
|
|
998
1203
|
},
|
|
@@ -1000,78 +1205,78 @@ function __wbg_get_imports() {
|
|
|
1000
1205
|
const ret = String(arg1);
|
|
1001
1206
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1002
1207
|
const len1 = WASM_VECTOR_LEN;
|
|
1003
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1004
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1208
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1209
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1005
1210
|
},
|
|
1006
|
-
|
|
1211
|
+
__wbg___wbindgen_bigint_get_as_i64_11da4b52cd0aedef: function(arg0, arg1) {
|
|
1007
1212
|
const v = arg1;
|
|
1008
1213
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1009
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1010
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1214
|
+
getDataViewMemory0().setBigInt64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1215
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
1011
1216
|
},
|
|
1012
|
-
|
|
1217
|
+
__wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
|
|
1013
1218
|
const v = arg0;
|
|
1014
1219
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1015
1220
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1016
1221
|
},
|
|
1017
|
-
|
|
1222
|
+
__wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
|
|
1018
1223
|
const ret = debugString(arg1);
|
|
1019
1224
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1020
1225
|
const len1 = WASM_VECTOR_LEN;
|
|
1021
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1022
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1226
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1227
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1023
1228
|
},
|
|
1024
|
-
|
|
1229
|
+
__wbg___wbindgen_in_3f58a9d3b3a7eed2: function(arg0, arg1) {
|
|
1025
1230
|
const ret = arg0 in arg1;
|
|
1026
1231
|
return ret;
|
|
1027
1232
|
},
|
|
1028
|
-
|
|
1233
|
+
__wbg___wbindgen_is_bigint_5fa10641e039d3ef: function(arg0) {
|
|
1029
1234
|
const ret = typeof(arg0) === 'bigint';
|
|
1030
1235
|
return ret;
|
|
1031
1236
|
},
|
|
1032
|
-
|
|
1237
|
+
__wbg___wbindgen_is_null_c22311b1cc228e3a: function(arg0) {
|
|
1033
1238
|
const ret = arg0 === null;
|
|
1034
1239
|
return ret;
|
|
1035
1240
|
},
|
|
1036
|
-
|
|
1241
|
+
__wbg___wbindgen_is_object_8b968c3ab8e96595: function(arg0) {
|
|
1037
1242
|
const val = arg0;
|
|
1038
1243
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1039
1244
|
return ret;
|
|
1040
1245
|
},
|
|
1041
|
-
|
|
1246
|
+
__wbg___wbindgen_is_string_fc456fee5d3317de: function(arg0) {
|
|
1042
1247
|
const ret = typeof(arg0) === 'string';
|
|
1043
1248
|
return ret;
|
|
1044
1249
|
},
|
|
1045
|
-
|
|
1250
|
+
__wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
|
|
1046
1251
|
const ret = arg0 === undefined;
|
|
1047
1252
|
return ret;
|
|
1048
1253
|
},
|
|
1049
|
-
|
|
1254
|
+
__wbg___wbindgen_jsval_eq_38d7bfbe4cc84039: function(arg0, arg1) {
|
|
1050
1255
|
const ret = arg0 === arg1;
|
|
1051
1256
|
return ret;
|
|
1052
1257
|
},
|
|
1053
|
-
|
|
1258
|
+
__wbg___wbindgen_jsval_loose_eq_b2f214e2e4b30e36: function(arg0, arg1) {
|
|
1054
1259
|
const ret = arg0 == arg1;
|
|
1055
1260
|
return ret;
|
|
1056
1261
|
},
|
|
1057
|
-
|
|
1262
|
+
__wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
|
|
1058
1263
|
const obj = arg1;
|
|
1059
1264
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1060
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1061
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1265
|
+
getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1266
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
1062
1267
|
},
|
|
1063
|
-
|
|
1268
|
+
__wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
|
|
1064
1269
|
const obj = arg1;
|
|
1065
1270
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1066
1271
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1067
1272
|
var len1 = WASM_VECTOR_LEN;
|
|
1068
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1069
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1273
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1274
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1070
1275
|
},
|
|
1071
|
-
|
|
1276
|
+
__wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
|
|
1072
1277
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1073
1278
|
},
|
|
1074
|
-
|
|
1279
|
+
__wbg_call_a410eb4b59ed5965: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1075
1280
|
const ret = arg0.call(arg1, arg2);
|
|
1076
1281
|
return ret;
|
|
1077
1282
|
}, arguments); },
|
|
@@ -1086,15 +1291,15 @@ function __wbg_get_imports() {
|
|
|
1086
1291
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1087
1292
|
}
|
|
1088
1293
|
},
|
|
1089
|
-
|
|
1294
|
+
__wbg_get_2080c49015e35254: function() { return handleError(function (arg0, arg1) {
|
|
1090
1295
|
const ret = Reflect.get(arg0, arg1);
|
|
1091
1296
|
return ret;
|
|
1092
1297
|
}, arguments); },
|
|
1093
|
-
|
|
1298
|
+
__wbg_get_with_ref_key_fc601247060b7204: function(arg0, arg1) {
|
|
1094
1299
|
const ret = arg0[arg1];
|
|
1095
1300
|
return ret;
|
|
1096
1301
|
},
|
|
1097
|
-
|
|
1302
|
+
__wbg_instanceof_ArrayBuffer_12cdaa4161423e6b: function(arg0) {
|
|
1098
1303
|
let result;
|
|
1099
1304
|
try {
|
|
1100
1305
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1104,7 +1309,7 @@ function __wbg_get_imports() {
|
|
|
1104
1309
|
const ret = result;
|
|
1105
1310
|
return ret;
|
|
1106
1311
|
},
|
|
1107
|
-
|
|
1312
|
+
__wbg_instanceof_Uint8Array_d7aeb0dcb3108fea: function(arg0) {
|
|
1108
1313
|
let result;
|
|
1109
1314
|
try {
|
|
1110
1315
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1114,76 +1319,76 @@ function __wbg_get_imports() {
|
|
|
1114
1319
|
const ret = result;
|
|
1115
1320
|
return ret;
|
|
1116
1321
|
},
|
|
1117
|
-
|
|
1322
|
+
__wbg_isSafeInteger_1a35ba4d31e71d38: function(arg0) {
|
|
1118
1323
|
const ret = Number.isSafeInteger(arg0);
|
|
1119
1324
|
return ret;
|
|
1120
1325
|
},
|
|
1121
|
-
|
|
1326
|
+
__wbg_length_186163212ffe79c3: function(arg0) {
|
|
1122
1327
|
const ret = arg0.length;
|
|
1123
1328
|
return ret;
|
|
1124
1329
|
},
|
|
1125
|
-
|
|
1330
|
+
__wbg_new_13de428334042d26: function(arg0) {
|
|
1126
1331
|
const ret = new Uint8Array(arg0);
|
|
1127
1332
|
return ret;
|
|
1128
1333
|
},
|
|
1129
|
-
|
|
1130
|
-
const ret = new
|
|
1334
|
+
__wbg_new_37eb45aaf5eeb820: function() {
|
|
1335
|
+
const ret = new Array();
|
|
1131
1336
|
return ret;
|
|
1132
1337
|
},
|
|
1133
|
-
|
|
1338
|
+
__wbg_new_7075786089b89c5e: function() {
|
|
1134
1339
|
const ret = new Map();
|
|
1135
1340
|
return ret;
|
|
1136
1341
|
},
|
|
1137
|
-
|
|
1138
|
-
const ret = new
|
|
1342
|
+
__wbg_new_bb74001155cb8ca8: function() {
|
|
1343
|
+
const ret = new Error();
|
|
1139
1344
|
return ret;
|
|
1140
1345
|
},
|
|
1141
|
-
|
|
1142
|
-
const ret = new
|
|
1346
|
+
__wbg_new_cd4348290afae586: function() {
|
|
1347
|
+
const ret = new Object();
|
|
1143
1348
|
return ret;
|
|
1144
1349
|
},
|
|
1145
1350
|
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
1146
1351
|
const ret = arg0.now();
|
|
1147
1352
|
return ret;
|
|
1148
1353
|
},
|
|
1149
|
-
|
|
1354
|
+
__wbg_performance_7e4e4494fdc9d07a: function(arg0) {
|
|
1150
1355
|
const ret = arg0.performance;
|
|
1151
1356
|
return ret;
|
|
1152
1357
|
},
|
|
1153
|
-
|
|
1358
|
+
__wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
|
|
1154
1359
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1155
1360
|
},
|
|
1156
|
-
|
|
1361
|
+
__wbg_set_8282f7e0d2d01336: function(arg0, arg1, arg2) {
|
|
1157
1362
|
const ret = arg0.set(arg1, arg2);
|
|
1158
1363
|
return ret;
|
|
1159
1364
|
},
|
|
1160
|
-
|
|
1161
|
-
arg0[arg1] = arg2;
|
|
1162
|
-
},
|
|
1163
|
-
__wbg_set_bea140a88be9b277: function(arg0, arg1, arg2) {
|
|
1365
|
+
__wbg_set_d2d33b52458e984a: function(arg0, arg1, arg2) {
|
|
1164
1366
|
arg0[arg1 >>> 0] = arg2;
|
|
1165
1367
|
},
|
|
1166
|
-
|
|
1368
|
+
__wbg_set_e4b9a833d288759a: function(arg0, arg1, arg2) {
|
|
1369
|
+
arg0[arg1] = arg2;
|
|
1370
|
+
},
|
|
1371
|
+
__wbg_stack_575c4e0918581b9c: function(arg0, arg1) {
|
|
1167
1372
|
const ret = arg1.stack;
|
|
1168
1373
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1169
1374
|
const len1 = WASM_VECTOR_LEN;
|
|
1170
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1171
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1375
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
1376
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
1172
1377
|
},
|
|
1173
|
-
|
|
1174
|
-
const ret = typeof
|
|
1378
|
+
__wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc: function() {
|
|
1379
|
+
const ret = typeof globalThis === 'undefined' ? undefined : globalThis;
|
|
1175
1380
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1176
1381
|
},
|
|
1177
|
-
|
|
1178
|
-
const ret = typeof
|
|
1382
|
+
__wbg_static_accessor_GLOBAL_e4293fb22cbe77da: function() {
|
|
1383
|
+
const ret = typeof global === 'undefined' ? undefined : global;
|
|
1179
1384
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1180
1385
|
},
|
|
1181
|
-
|
|
1182
|
-
const ret = typeof self === 'undefined' ?
|
|
1386
|
+
__wbg_static_accessor_SELF_53bb20457401453d: function() {
|
|
1387
|
+
const ret = typeof self === 'undefined' ? undefined : self;
|
|
1183
1388
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1184
1389
|
},
|
|
1185
|
-
|
|
1186
|
-
const ret = typeof window === 'undefined' ?
|
|
1390
|
+
__wbg_static_accessor_WINDOW_b5e0810bfecb7feb: function() {
|
|
1391
|
+
const ret = typeof window === 'undefined' ? undefined : window;
|
|
1187
1392
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1188
1393
|
},
|
|
1189
1394
|
__wbindgen_generic_0000000000000001: function(arg0) {
|
|
@@ -1208,12 +1413,11 @@ function __wbg_get_imports() {
|
|
|
1208
1413
|
},
|
|
1209
1414
|
__wbindgen_init_externref_table: function() {
|
|
1210
1415
|
const table = wasm.__wbindgen_externrefs;
|
|
1211
|
-
const offset = table.grow(4);
|
|
1212
1416
|
table.set(0, undefined);
|
|
1213
|
-
table.set(
|
|
1214
|
-
table.set(
|
|
1215
|
-
table.set(
|
|
1216
|
-
table.set(
|
|
1417
|
+
table.set(1024, undefined);
|
|
1418
|
+
table.set(1025, null);
|
|
1419
|
+
table.set(1026, true);
|
|
1420
|
+
table.set(1027, false);
|
|
1217
1421
|
},
|
|
1218
1422
|
};
|
|
1219
1423
|
return {
|
|
@@ -1236,68 +1440,61 @@ function addToExternrefTable0(obj) {
|
|
|
1236
1440
|
}
|
|
1237
1441
|
|
|
1238
1442
|
function debugString(val) {
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
1291
|
-
} catch (_) {
|
|
1292
|
-
return 'Object';
|
|
1443
|
+
switch (typeof val) {
|
|
1444
|
+
// primitive types
|
|
1445
|
+
case 'number':
|
|
1446
|
+
case 'boolean':
|
|
1447
|
+
case 'undefined':
|
|
1448
|
+
return `${val}`;
|
|
1449
|
+
case 'string':
|
|
1450
|
+
return JSON.stringify(val);
|
|
1451
|
+
case 'bigint':
|
|
1452
|
+
return `${val}n`;
|
|
1453
|
+
case 'symbol':
|
|
1454
|
+
return val.description !== undefined
|
|
1455
|
+
? `Symbol(${val.description})`
|
|
1456
|
+
: 'Symbol';
|
|
1457
|
+
case 'function':
|
|
1458
|
+
return typeof val.name === 'string' && val.name !== ''
|
|
1459
|
+
? `Function(${val.name})`
|
|
1460
|
+
: 'Function';
|
|
1461
|
+
case 'object': {
|
|
1462
|
+
if (val === null) {
|
|
1463
|
+
return 'null';
|
|
1464
|
+
}
|
|
1465
|
+
// objects
|
|
1466
|
+
if (Array.isArray(val)) {
|
|
1467
|
+
return '[' + Array.from(val, debugString).join(', ') + ']';
|
|
1468
|
+
}
|
|
1469
|
+
// errors
|
|
1470
|
+
if (val instanceof Error) {
|
|
1471
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
const toStringOutput = toString.call(val);
|
|
1475
|
+
// Test for built-in
|
|
1476
|
+
const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
|
|
1477
|
+
|
|
1478
|
+
// Failed to match the standard '[object ClassName]'
|
|
1479
|
+
if (className === undefined) {
|
|
1480
|
+
return toStringOutput;
|
|
1481
|
+
}
|
|
1482
|
+
if (className === 'Object') {
|
|
1483
|
+
// we're a user defined class or Object
|
|
1484
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1485
|
+
// easier than looping through ownProperties of `val`.
|
|
1486
|
+
try {
|
|
1487
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1488
|
+
} catch (_) {
|
|
1489
|
+
return 'Object';
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1493
|
+
return className;
|
|
1293
1494
|
}
|
|
1495
|
+
// Per MDN: 'This list of values is exhaustive.'
|
|
1496
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description
|
|
1294
1497
|
}
|
|
1295
|
-
// errors
|
|
1296
|
-
if (val instanceof Error) {
|
|
1297
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1298
|
-
}
|
|
1299
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1300
|
-
return className;
|
|
1301
1498
|
}
|
|
1302
1499
|
|
|
1303
1500
|
function getArrayU8FromWasm0(ptr, len) {
|
|
@@ -1314,7 +1511,8 @@ function getDataViewMemory0() {
|
|
|
1314
1511
|
}
|
|
1315
1512
|
|
|
1316
1513
|
function getStringFromWasm0(ptr, len) {
|
|
1317
|
-
|
|
1514
|
+
ptr = ptr >>> 0;
|
|
1515
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1318
1516
|
}
|
|
1319
1517
|
|
|
1320
1518
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -1381,18 +1579,18 @@ function takeFromExternrefTable0(idx) {
|
|
|
1381
1579
|
return value;
|
|
1382
1580
|
}
|
|
1383
1581
|
|
|
1384
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
1582
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1385
1583
|
cachedTextDecoder.decode();
|
|
1386
1584
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1387
1585
|
let numBytesDecoded = 0;
|
|
1388
|
-
function decodeText(
|
|
1389
|
-
numBytesDecoded +=
|
|
1586
|
+
function decodeText(bytes) {
|
|
1587
|
+
numBytesDecoded += bytes.length;
|
|
1390
1588
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1391
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
1589
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1392
1590
|
cachedTextDecoder.decode();
|
|
1393
|
-
numBytesDecoded =
|
|
1591
|
+
numBytesDecoded = bytes.length;
|
|
1394
1592
|
}
|
|
1395
|
-
return cachedTextDecoder.decode(
|
|
1593
|
+
return cachedTextDecoder.decode(bytes);
|
|
1396
1594
|
}
|
|
1397
1595
|
|
|
1398
1596
|
const cachedTextEncoder = new TextEncoder();
|
|
@@ -1480,9 +1678,17 @@ function initSync(module) {
|
|
|
1480
1678
|
return __wbg_finalize_init(instance, module);
|
|
1481
1679
|
}
|
|
1482
1680
|
|
|
1681
|
+
let __wbg_init_promise;
|
|
1483
1682
|
async function __wbg_init(module_or_path) {
|
|
1484
1683
|
if (wasm !== undefined) return wasm;
|
|
1684
|
+
if (__wbg_init_promise === undefined) {
|
|
1685
|
+
__wbg_init_promise = __wbg_init_once(module_or_path);
|
|
1686
|
+
__wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
|
|
1687
|
+
}
|
|
1688
|
+
return __wbg_init_promise;
|
|
1689
|
+
}
|
|
1485
1690
|
|
|
1691
|
+
async function __wbg_init_once(module_or_path) {
|
|
1486
1692
|
|
|
1487
1693
|
if (module_or_path !== undefined) {
|
|
1488
1694
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|